mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
feat: 第一个可以用的 ink 组件抽象 (#158)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
* directly — there is no terminal attached.
|
||||
*/
|
||||
|
||||
import { parseDeepLink } from './parseDeepLink.js'
|
||||
import { homedir } from 'os'
|
||||
import { logForDebugging } from '../debug.js'
|
||||
import {
|
||||
@@ -19,7 +20,7 @@ import {
|
||||
} from '../githubRepoPathMapping.js'
|
||||
import { jsonStringify } from '../slowOperations.js'
|
||||
import { readLastFetchTime } from './banner.js'
|
||||
import { parseDeepLink } from './parseDeepLink.js'
|
||||
|
||||
import { MACOS_BUNDLE_ID } from './registerProtocol.js'
|
||||
import { launchInTerminal } from './terminalLauncher.js'
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
* Windows — Writes registry keys under HKEY_CURRENT_USER\Software\Classes
|
||||
*/
|
||||
|
||||
import { DEEP_LINK_PROTOCOL } from './parseDeepLink.js'
|
||||
import { promises as fs } from 'fs'
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
@@ -28,7 +29,6 @@ import { execFileNoThrow } from '../execFileNoThrow.js'
|
||||
import { getInitialSettings } from '../settings/settings.js'
|
||||
import { which } from '../which.js'
|
||||
import { getUserBinDir, getXDGDataHome } from '../xdg.js'
|
||||
import { DEEP_LINK_PROTOCOL } from './parseDeepLink.js'
|
||||
|
||||
export const MACOS_BUNDLE_ID = 'com.anthropic.claude-code-url-handler'
|
||||
const APP_NAME = 'Claude Code URL Handler'
|
||||
|
||||
Reference in New Issue
Block a user