feat: 第一个可以用的 ink 组件抽象 (#158)

This commit is contained in:
claude-code-best
2026-04-06 23:56:45 +08:00
committed by GitHub
parent 3ea64eeb0f
commit c445f43f8d
645 changed files with 7255 additions and 1214 deletions

View File

@@ -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'

View File

@@ -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'