diff --git a/.gitignore b/.gitignore index cd1e779b..4713b5e6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,11 @@ node_modules .runtime/ extracted-natives/ +# Adapter attachment cache (created at runtime by AttachmentStore when +# running adapter tests or the feishu/telegram adapters locally) +.lark-attachments/ +.tg-attachments/ + # Playwright MCP snapshots & logs .playwright-mcp/ diff --git a/desktop/scripts/build-sidecars.ts b/desktop/scripts/build-sidecars.ts index 3dbd8f67..d98597df 100644 --- a/desktop/scripts/build-sidecars.ts +++ b/desktop/scripts/build-sidecars.ts @@ -12,23 +12,31 @@ const targetTriple = const bunTarget = mapTargetTripleToBun(targetTriple) +// 编译前先扫一遍 src/ 把所有缺失的 ant-internal 模块在磁盘上 stub 出来。 +// 见 desktop/scripts/scan-missing-imports.ts。 +console.log('[build-sidecars] scanning for missing imports...') +const scanProc = Bun.spawn( + ['bun', 'run', path.join(desktopRoot, 'scripts/scan-missing-imports.ts')], + { cwd: repoRoot, stdout: 'inherit', stderr: 'inherit' }, +) +const scanExit = await scanProc.exited +if (scanExit !== 0) { + throw new Error(`[build-sidecars] scan-missing-imports failed (exit ${scanExit})`) +} + await mkdir(binariesDir, { recursive: true }) +// 单一合并 sidecar:server / cli 共享一份 bun runtime + 共享依赖代码。 +// 调用方(Tauri lib.rs / conversationService)通过第一个 positional 参数 +// 选择 'server' 或 'cli' 模式,详见 desktop/sidecars/claude-sidecar.ts。 await compileExecutable({ - entrypoint: path.join(desktopRoot, 'sidecars/server-launcher.ts'), - outfileBase: path.join(binariesDir, `claude-server-${targetTriple}`), - productName: 'Claude Code Server', + entrypoint: path.join(desktopRoot, 'sidecars/claude-sidecar.ts'), + outfileBase: path.join(binariesDir, `claude-sidecar-${targetTriple}`), + productName: 'Claude Code Sidecar', bunTarget, }) -await compileExecutable({ - entrypoint: path.join(desktopRoot, 'sidecars/cli-launcher.ts'), - outfileBase: path.join(binariesDir, `claude-cli-${targetTriple}`), - productName: 'Claude Code CLI', - bunTarget, -}) - -console.log(`[build-sidecars] Built desktop sidecars for ${targetTriple} (${bunTarget})`) +console.log(`[build-sidecars] Built desktop sidecar for ${targetTriple} (${bunTarget})`) async function detectHostTriple() { const proc = Bun.spawn(['rustc', '-vV'], { @@ -93,9 +101,41 @@ async function compileExecutable({ }) { const result = await Bun.build({ entrypoints: [entrypoint], - minify: false, + // minify whitespace + identifiers + dead-code 大概能省 5-15% 的二进制大小, + // 代价是 stack trace 里的函数名变成短名 —— 终端用户场景可接受。 + minify: { whitespace: true, identifiers: true, syntax: true }, sourcemap: 'none', target: 'bun', + // 可选 npm 包:开 telemetry / 用 sharp 图像 / 用 Bedrock/Vertex 等 + // 替代 provider 时才需要,全部不在顶层 package.json 里。标 external + // 让 bun build 跳过解析;运行时 import 在没装时自然失败,由 try/catch + // 或 feature() gate 兜底。 + external: [ + // OpenTelemetry exporters(开 OTEL_* env 时才加载) + '@opentelemetry/exporter-trace-otlp-grpc', + '@opentelemetry/exporter-trace-otlp-http', + '@opentelemetry/exporter-trace-otlp-proto', + '@opentelemetry/exporter-logs-otlp-grpc', + '@opentelemetry/exporter-logs-otlp-http', + '@opentelemetry/exporter-logs-otlp-proto', + '@opentelemetry/exporter-metrics-otlp-grpc', + '@opentelemetry/exporter-metrics-otlp-http', + '@opentelemetry/exporter-metrics-otlp-proto', + '@opentelemetry/exporter-prometheus', + // 替代 LLM provider —— 默认不用,用户自装 + '@aws-sdk/client-bedrock', + '@aws-sdk/client-sts', + '@anthropic-ai/bedrock-sdk', + '@anthropic-ai/foundry-sdk', + '@anthropic-ai/vertex-sdk', + '@azure/identity', + // ant-internal / 可选工具 + '@anthropic-ai/mcpb', + 'fflate', + 'turndown', + 'sharp', + 'react-devtools-core', + ], compile: { target: bunTarget, outfile: outfileBase, diff --git a/desktop/scripts/scan-missing-imports.ts b/desktop/scripts/scan-missing-imports.ts new file mode 100644 index 00000000..9cb4fc58 --- /dev/null +++ b/desktop/scripts/scan-missing-imports.ts @@ -0,0 +1,235 @@ +/** + * scan-missing-imports.ts + * + * 在编译 sidecar 之前,扫描 src/ 里所有相对路径的 import / require / 类型 import + * specifier,找出磁盘上不存在的目标,给它们生成最小 stub 文件。 + * + * 为什么需要:本 fork 的 src/ 大量使用 ant-internal 的 feature() macro 配 + * dynamic require/import,gating 一堆只在 Anthropic 内部 build 才存在的源文件。 + * bun build --compile 在 DCE 之前必须先把所有 import specifier 都 resolve 到 + * 实际文件,找不到就直接 fail。 + * + * Stub 文件内容是一个 Proxy,任何属性读、函数调用、构造调用都返回安全 noop。 + * 由于这些代码路径都被 feature(...) === false 的 DCE 干掉了,stub 在运行时 + * 永远不会真的被求值 —— 它只是给 resolver 的"占位符"。 + * + * 生成的 stub 标记 `// @generated stub from scan-missing-imports` 让脚本可以 + * 安全地覆写它们而不会动到真实代码。 + */ + +import { readdir, stat, readFile, writeFile, mkdir } from 'node:fs/promises' +import { existsSync } from 'node:fs' +import path from 'node:path' + +const repoRoot = path.resolve(import.meta.dir, '../..') +const srcRoot = path.join(repoRoot, 'src') +const adaptersRoot = path.join(repoRoot, 'adapters') + +// 扫描 + 创建 stub 时允许的根目录。stub 写到这些目录之外会被拒绝, +// 防止意外往 node_modules / 系统路径写文件。 +const ALLOWED_STUB_ROOTS = [srcRoot, adaptersRoot] + +const STUB_MARKER_TS = '// @generated stub from scan-missing-imports' +const STUB_MARKER_TEXT = '' + +const TS_STUB_CONTENT = `${STUB_MARKER_TS} +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub +` + +// 文本类资源(.md / .txt / .json 等)通过 Bun 的 text/json loader 内联, +// stub 内容只要是合法的对应格式且非空即可。 +const TEXT_STUB_CONTENT = `${STUB_MARKER_TEXT}\nstub\n` +const JSON_STUB_CONTENT = `{"__stubMissing": true}\n` + +const TEXT_EXTS = new Set(['.md', '.markdown', '.txt']) +const JSON_EXTS = new Set(['.json', '.json5']) + +const IMPORT_PATTERNS = [ + // import X from './foo' + /from\s+['"](\.[^'"]+)['"]/g, + // import('./foo') + /import\s*\(\s*['"](\.[^'"]+)['"]/g, + // require('./foo') + /require\s*\(\s*['"](\.[^'"]+)['"]/g, + // import './foo' (side-effect only) + /import\s+['"](\.[^'"]+)['"]/g, + // typeof import('./foo') + /typeof\s+import\s*\(\s*['"](\.[^'"]+)['"]/g, +] + +const SOURCE_EXT = new Set(['.ts', '.tsx', '.js', '.jsx', '.mts', '.cts', '.mjs', '.cjs']) + +async function* walk(dir: string): AsyncGenerator { + const entries = await readdir(dir, { withFileTypes: true }) + for (const entry of entries) { + if (entry.name.startsWith('.')) continue + if (entry.name === 'node_modules') continue + if (entry.name === '__tests__') continue + const full = path.join(dir, entry.name) + if (entry.isDirectory()) { + yield* walk(full) + } else if (entry.isFile() && SOURCE_EXT.has(path.extname(entry.name))) { + yield full + } + } +} + +function resolveCandidates(importer: string, spec: string): string[] { + const importerDir = path.dirname(importer) + const base = path.resolve(importerDir, spec) + return [ + base, + base + '.ts', + base + '.tsx', + base + '.mts', + base + '.cts', + base + '.js', + base + '.jsx', + base + '.mjs', + base + '.cjs', + base.replace(/\.(m|c)?js$/, '.ts'), + base.replace(/\.(m|c)?js$/, '.tsx'), + path.join(base, 'index.ts'), + path.join(base, 'index.tsx'), + path.join(base, 'index.js'), + ] +} + +function pickStubPath(importer: string, spec: string): string { + const importerDir = path.dirname(importer) + const base = path.resolve(importerDir, spec) + // 把 .js 还原成 .ts —— TS 源里写 .js 是 ESM-on-Node 的惯例 + if (base.endsWith('.js')) return base.slice(0, -3) + '.ts' + if (base.endsWith('.jsx')) return base.slice(0, -4) + '.tsx' + if (path.extname(base) === '') return base + '.ts' + return base +} + +function pickStubContent(stubPath: string): { content: string; marker: string } { + const ext = path.extname(stubPath).toLowerCase() + if (TEXT_EXTS.has(ext)) { + return { content: TEXT_STUB_CONTENT, marker: STUB_MARKER_TEXT } + } + if (JSON_EXTS.has(ext)) { + return { content: JSON_STUB_CONTENT, marker: '"__stubMissing"' } + } + return { content: TS_STUB_CONTENT, marker: STUB_MARKER_TS } +} + +async function* walkRoots(roots: string[]): AsyncGenerator { + for (const root of roots) { + if (!existsSync(root)) continue + yield* walk(root) + } +} + +async function main() { + const missing = new Map>() // stubPath → set of importers + let scannedFiles = 0 + + for await (const file of walkRoots([srcRoot, adaptersRoot])) { + scannedFiles++ + let contents: string + try { + contents = await readFile(file, 'utf8') + } catch { + continue + } + + for (const pattern of IMPORT_PATTERNS) { + pattern.lastIndex = 0 + let match: RegExpExecArray | null + while ((match = pattern.exec(contents)) !== null) { + const spec = match[1]! + if (!spec.startsWith('.')) continue + const candidates = resolveCandidates(file, spec) + let exists = false + for (const c of candidates) { + if (existsSync(c)) { + exists = true + break + } + } + if (exists) continue + const stubPath = pickStubPath(file, spec) + if (!missing.has(stubPath)) missing.set(stubPath, new Set()) + missing.get(stubPath)!.add(path.relative(repoRoot, file)) + } + } + } + + console.log(`[scan] scanned ${scannedFiles} source files`) + console.log(`[scan] missing ${missing.size} stub targets`) + + let createdCount = 0 + let skippedCount = 0 + for (const [stubPath, importers] of missing) { + // 安全检查:只在 ALLOWED_STUB_ROOTS(src/、adapters/)下创建, + // 且如果文件已存在但不是 stub 就跳过 + const isAllowed = ALLOWED_STUB_ROOTS.some( + (root) => stubPath.startsWith(root + path.sep), + ) + if (!isAllowed) { + console.warn(`[scan] skip out-of-tree stub target: ${stubPath}`) + continue + } + const { content, marker } = pickStubContent(stubPath) + if (existsSync(stubPath)) { + try { + const existing = await readFile(stubPath, 'utf8') + if (!existing.includes(marker) && !existing.includes(STUB_MARKER_TS)) { + console.warn( + `[scan] skip non-stub existing file: ${path.relative(repoRoot, stubPath)}`, + ) + skippedCount++ + continue + } + } catch { + // ignore + } + } + await mkdir(path.dirname(stubPath), { recursive: true }) + await writeFile(stubPath, content, 'utf8') + createdCount++ + const rel = path.relative(repoRoot, stubPath) + const sample = [...importers].slice(0, 2).join(', ') + console.log( + `[scan] stub: ${rel} (referenced from ${sample}${importers.size > 2 ? `, +${importers.size - 2}` : ''})`, + ) + } + console.log(`[scan] created ${createdCount} stubs, skipped ${skippedCount}`) +} + +await main() diff --git a/desktop/sidecars/claude-sidecar.ts b/desktop/sidecars/claude-sidecar.ts new file mode 100644 index 00000000..db070432 --- /dev/null +++ b/desktop/sidecars/claude-sidecar.ts @@ -0,0 +1,156 @@ +/** + * Claude Code 桌面端合并 sidecar 入口。 + * + * 历史上 server / cli / IM adapters 是各自独立的进程。每个 bun-compile + * 二进制都要带一份 ~55MB 的 bun runtime,光这一项就重复占了 100MB+。 + * 把所有运行模式合并到同一个二进制里,runtime 只保留一份;调用方通过 + * 第一个 positional 参数选择模式: + * + * claude-sidecar server --app-root --host 127.0.0.1 --port 12345 + * claude-sidecar cli --app-root [其它 CLI 参数...] + * claude-sidecar adapters --app-root [--feishu] [--telegram] + * + * 任何模式都必须先做 process.env / process.argv 设置,再 await 进入相应的 + * 子模块树。原因:src/server/index.ts、src/entrypoints/cli.tsx、以及 + * adapters/feishu/index.ts 等顶层都会立即读 process.argv / process.env, + * 必须在它们求值前 splice 掉 --app-root、mode、--feishu/--telegram 这些 + * launcher-only 参数。 + */ + +const rawArgs = process.argv.slice(2) +if (rawArgs.length === 0) { + console.error('claude-sidecar: missing mode argument (expected "server", "cli" or "adapters")') + process.exit(2) +} +const mode = rawArgs[0]! +const restArgs = rawArgs.slice(1) + +if (mode === 'adapters') { + await runAdapters(restArgs) +} else { + const { appRoot, args } = parseLauncherArgs(restArgs) + + process.env.CLAUDE_APP_ROOT = appRoot + process.env.CALLER_DIR ||= process.cwd() + process.argv = [process.argv[0]!, process.argv[1]!, ...args] + + await import('../../preload.ts') + + if (mode === 'server') { + const { startServer } = await import('../../src/server/index.ts') + startServer() + } else if (mode === 'cli') { + await import('../../src/entrypoints/cli.tsx') + } else { + console.error(`claude-sidecar: unknown mode "${mode}" (expected "server", "cli" or "adapters")`) + process.exit(2) + } +} + +async function runAdapters(rawArgs: string[]): Promise { + // adapters 模式的参数解析独立于 server/cli —— 这里只接受 --feishu / + // --telegram 选择启用哪个适配器,再加可选的 --app-root(透传给 + // adapters/common/config.ts 内的 process.env 读取)。 + let appRoot: string | null = process.env.CLAUDE_APP_ROOT ?? null + let enableFeishu = false + let enableTelegram = false + + for (let i = 0; i < rawArgs.length; i++) { + const arg = rawArgs[i] + if (arg === '--app-root') { + appRoot = rawArgs[i + 1] ?? null + i += 1 + continue + } + if (arg === '--feishu') { + enableFeishu = true + continue + } + if (arg === '--telegram') { + enableTelegram = true + continue + } + console.warn(`claude-sidecar adapters: ignoring unknown arg "${arg}"`) + } + + if (!enableFeishu && !enableTelegram) { + console.error( + 'claude-sidecar adapters: must enable at least one of --feishu / --telegram', + ) + process.exit(2) + } + + if (appRoot) { + process.env.CLAUDE_APP_ROOT = appRoot + } + process.env.CALLER_DIR ||= process.cwd() + + await import('../../preload.ts') + + // 在 import adapter 之前先用同一份 loadConfig() 检查凭据。adapter 的 + // top-level 代码里已经有 if (!cred) process.exit(1),但那会把整个 + // 进程拖死 —— 包括另一个本来正常的 adapter。这里提前 gate 一下, + // 缺凭据的 adapter 直接跳过、不 import。 + const { loadConfig } = await import('../../adapters/common/config.ts') + const config = loadConfig() + + let started = 0 + + if (enableFeishu) { + if (!config.feishu.appId || !config.feishu.appSecret) { + console.warn( + '[claude-sidecar] --feishu requested but FEISHU_APP_ID / FEISHU_APP_SECRET missing in env or ~/.claude/adapters.json — skipping', + ) + } else { + console.log('[claude-sidecar] starting Feishu adapter') + // 副作用 import:feishu/index.ts 顶层会自动 new WSClient + start() + await import('../../adapters/feishu/index.ts') + started += 1 + } + } + + if (enableTelegram) { + if (!config.telegram.botToken) { + console.warn( + '[claude-sidecar] --telegram requested but TELEGRAM_BOT_TOKEN missing in env or ~/.claude/adapters.json — skipping', + ) + } else { + console.log('[claude-sidecar] starting Telegram adapter') + // 副作用 import:telegram/index.ts 顶层会自动 bot.start() + await import('../../adapters/telegram/index.ts') + started += 1 + } + } + + if (started === 0) { + console.error( + '[claude-sidecar] no adapter could be started — check credentials in env or ~/.claude/adapters.json', + ) + process.exit(1) + } + + // 让进程保持存活:两个 adapter 都通过 long-lived WebSocket(Lark WSClient + // / grammY long-polling)持有 event loop,自然不会退出。这里不需要额外 + // setInterval 兜底。两个 adapter 自己注册的 SIGINT handler 都会触发。 +} + +function parseLauncherArgs(rawArgs: string[]): { appRoot: string; args: string[] } { + const nextArgs: string[] = [] + let appRoot: string | null = process.env.CLAUDE_APP_ROOT ?? null + + for (let index = 0; index < rawArgs.length; index++) { + const arg = rawArgs[index] + if (arg === '--app-root') { + appRoot = rawArgs[index + 1] ?? null + index += 1 + continue + } + nextArgs.push(arg!) + } + + if (!appRoot) { + throw new Error('Missing --app-root for claude-sidecar') + } + + return { appRoot, args: nextArgs } +} diff --git a/desktop/sidecars/cli-launcher.ts b/desktop/sidecars/cli-launcher.ts deleted file mode 100644 index 26f48973..00000000 --- a/desktop/sidecars/cli-launcher.ts +++ /dev/null @@ -1,35 +0,0 @@ -import path from 'node:path' -import { pathToFileURL } from 'node:url' - -const { appRoot, args } = parseLauncherArgs() - -process.env.CLAUDE_APP_ROOT = appRoot -process.env.CALLER_DIR ||= process.cwd() -process.argv = [process.argv[0]!, process.argv[1]!, ...args] - -const preloadEntrypoint = pathToFileURL(path.join(appRoot, 'preload.ts')).href -const cliEntrypoint = pathToFileURL(path.join(appRoot, 'src/entrypoints/cli.tsx')).href -await import(preloadEntrypoint) -await import(cliEntrypoint) - -function parseLauncherArgs() { - const rawArgs = process.argv.slice(2) - const nextArgs: string[] = [] - let appRoot: string | null = process.env.CLAUDE_APP_ROOT ?? null - - for (let index = 0; index < rawArgs.length; index++) { - const arg = rawArgs[index] - if (arg === '--app-root') { - appRoot = rawArgs[index + 1] ?? null - index += 1 - continue - } - nextArgs.push(arg) - } - - if (!appRoot) { - throw new Error('Missing --app-root for claude-cli sidecar') - } - - return { appRoot, args: nextArgs } -} diff --git a/desktop/sidecars/server-launcher.ts b/desktop/sidecars/server-launcher.ts deleted file mode 100644 index 31c40f41..00000000 --- a/desktop/sidecars/server-launcher.ts +++ /dev/null @@ -1,37 +0,0 @@ -import path from 'node:path' -import { pathToFileURL } from 'node:url' - -const { appRoot, args } = parseLauncherArgs() - -process.env.CLAUDE_APP_ROOT = appRoot -process.chdir(appRoot) -process.argv = [process.argv[0]!, process.argv[1]!, ...args] - -const preloadEntrypoint = pathToFileURL(path.join(appRoot, 'preload.ts')).href -const serverEntrypoint = pathToFileURL(path.join(appRoot, 'src/server/index.ts')).href -await import(preloadEntrypoint) -const { startServer } = await import(serverEntrypoint) - -startServer() - -function parseLauncherArgs() { - const rawArgs = process.argv.slice(2) - const nextArgs: string[] = [] - let appRoot: string | null = process.env.CLAUDE_APP_ROOT ?? null - - for (let index = 0; index < rawArgs.length; index++) { - const arg = rawArgs[index] - if (arg === '--app-root') { - appRoot = rawArgs[index + 1] ?? null - index += 1 - continue - } - nextArgs.push(arg) - } - - if (!appRoot) { - throw new Error('Missing --app-root for claude-server sidecar') - } - - return { appRoot, args: nextArgs } -} diff --git a/desktop/src-tauri/capabilities/default.json b/desktop/src-tauri/capabilities/default.json index 517e8f52..b445af1e 100644 --- a/desktop/src-tauri/capabilities/default.json +++ b/desktop/src-tauri/capabilities/default.json @@ -12,7 +12,7 @@ "allow": [ { "args": true, - "name": "binaries/claude-server", + "name": "binaries/claude-sidecar", "sidecar": true } ] @@ -22,7 +22,17 @@ "allow": [ { "args": true, - "name": "binaries/claude-server", + "name": "binaries/claude-sidecar", + "sidecar": true + } + ] + }, + { + "identifier": "shell:allow-kill", + "allow": [ + { + "args": true, + "name": "binaries/claude-sidecar", "sidecar": true } ] diff --git a/desktop/src-tauri/src/lib.rs b/desktop/src-tauri/src/lib.rs index a63eddb3..e774dabe 100644 --- a/desktop/src-tauri/src/lib.rs +++ b/desktop/src-tauri/src/lib.rs @@ -6,7 +6,7 @@ use std::{ time::{Duration, Instant}, }; -use tauri::{path::BaseDirectory, AppHandle, Manager, RunEvent, State}; +use tauri::{AppHandle, Manager, RunEvent, State}; use tauri_plugin_shell::{ process::{CommandChild, CommandEvent}, ShellExt, @@ -26,6 +26,15 @@ struct ServerStatus { startup_error: Option, } +/// 与 ServerState 平级的 adapter 子进程状态。 +/// +/// adapter sidecar(claude-sidecar adapters --feishu --telegram)的生命周期 +/// 跟 server 不同:它没有 HTTP 端口可探活,没配凭据时会自己干净退出, +/// 而且需要支持运行时热重启 —— 用户在设置页保存飞书 / Telegram 凭据后, +/// 前端会通过 invoke('restart_adapters_sidecar') 来重启它,让新凭据生效。 +#[derive(Default)] +struct AdapterState(Mutex>); + #[tauri::command] fn get_server_url(state: State<'_, ServerState>) -> Result { let guard = state @@ -43,6 +52,22 @@ fn get_server_url(state: State<'_, ServerState>) -> Result { .unwrap_or_else(|| "desktop server did not start".to_string())) } +/// 前端在设置页保存飞书 / Telegram 凭据后调用,触发 adapter sidecar 热重启。 +/// +/// 流程: +/// 1. kill 当前 adapter 子进程(如果在跑) +/// 2. spawn 新的 adapter 子进程 +/// 3. 新 sidecar 内部的 loadConfig() 会读到最新的 ~/.claude/adapters.json +/// 并重新建立 WebSocket 连接到飞书 / Telegram +/// +/// 凭据缺失时 sidecar 自己会 warn + skip + 退出,所以这里不需要前置检查。 +#[tauri::command] +fn restart_adapters_sidecar(app: AppHandle) -> Result<(), String> { + stop_adapters_sidecar(&app); + spawn_and_track_adapters_sidecar(&app); + Ok(()) +} + fn reserve_local_port() -> Result { let listener = TcpListener::bind("127.0.0.1:0").map_err(|err| format!("bind local port: {err}"))?; @@ -72,17 +97,26 @@ fn wait_for_server(url_host: &str, port: u16) -> Result<(), String> { )) } -fn resolve_app_root(app: &AppHandle) -> Result { - if cfg!(debug_assertions) { - return PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("../..") - .canonicalize() - .map_err(|err| format!("resolve development app root: {err}")); - } - - app.path() - .resolve("app", BaseDirectory::Resource) - .map_err(|err| format!("resolve bundled app root: {err}")) +fn resolve_app_root(_app: &AppHandle) -> Result { + // 历史用途:此前 sidecar launcher 用 dynamic file:// import 加载磁盘上 + // 的 src/server/index.ts 和 preload.ts,所以 Tauri 必须把整个 src/ + + // node_modules/ 当 Resource 一起 ship 到 .app/Contents/Resources/app/。 + // + // 现在 launcher 改成静态 import + bun build --compile 整棵静态打进二进制, + // sidecar 不再读磁盘上的 src/ 或 node_modules/。CLAUDE_APP_ROOT 现在 + // 只剩一个名义上的"app 安装根目录"作用,给 conversationService 在 + // spawn CLI 子进程时通过 --app-root 透传。 + // + // 我们直接用当前可执行文件所在目录作为 app_root: + // Dev: desktop/src-tauri/target// (rust 跑出来的 binary 那一层) + // Prod: .app/Contents/MacOS/ (sidecar 二进制的同级目录) + let exe = std::env::current_exe() + .map_err(|err| format!("resolve current exe path: {err}"))?; + let dir = exe + .parent() + .ok_or_else(|| "current exe has no parent dir".to_string())? + .to_path_buf(); + Ok(dir) } fn start_server_sidecar(app: &AppHandle) -> Result { @@ -92,11 +126,13 @@ fn start_server_sidecar(app: &AppHandle) -> Result { let app_root = resolve_app_root(app)?; let app_root_arg = app_root.to_string_lossy().to_string(); + // 单一合并 sidecar:第一个参数选 server / cli / adapters 模式。 let sidecar = app .shell() - .sidecar("claude-server") - .map_err(|err| format!("resolve server sidecar: {err}"))? + .sidecar("claude-sidecar") + .map_err(|err| format!("resolve sidecar: {err}"))? .args([ + "server", "--app-root", &app_root_arg, "--host", @@ -144,15 +180,128 @@ fn stop_server_sidecar(app: &AppHandle) { } } +/// 启动 adapter sidecar。返回 Result 主要为了把"无法 spawn"和"spawn 后立刻 +/// 退出(凭据缺失)"区分开 —— 后者不算错误,是正常 default 状态。 +fn start_adapters_sidecar(app: &AppHandle) -> Result { + let app_root = resolve_app_root(app)?; + let app_root_arg = app_root.to_string_lossy().to_string(); + + // adapter 内部的 WsBridge 默认连 ws://127.0.0.1:3456,但桌面端的 server + // 用的是 reserve_local_port() 拿到的动态端口。这里把实际端口通过 + // ADAPTER_SERVER_URL env var 传过去 —— adapters/common/config.ts 的 + // loadConfig() 会读它。 + // + // 如果 server 还没起来 / 没拿到 URL,回退到 3456 作为最后兜底(adapter + // 自己有重连逻辑,等 server 上线就能连上)。 + let server_http_url = app + .try_state::() + .and_then(|state| { + state + .0 + .lock() + .ok() + .and_then(|guard| guard.runtime.as_ref().map(|r| r.url.clone())) + }) + .unwrap_or_else(|| "http://127.0.0.1:3456".to_string()); + // WsBridge 直接 `new WebSocket('${serverUrl}/ws/...')`,必须传 ws://; + // 不会自动从 http 转。 + let server_ws_url = if let Some(rest) = server_http_url.strip_prefix("http://") { + format!("ws://{rest}") + } else if let Some(rest) = server_http_url.strip_prefix("https://") { + format!("wss://{rest}") + } else { + server_http_url.clone() + }; + + let sidecar = app + .shell() + .sidecar("claude-sidecar") + .map_err(|err| format!("resolve sidecar: {err}"))? + .env("ADAPTER_SERVER_URL", &server_ws_url) + .args([ + "adapters", + "--app-root", + &app_root_arg, + "--feishu", + "--telegram", + ]); + + let (mut rx, child) = sidecar + .spawn() + .map_err(|err| format!("spawn adapter sidecar: {err}"))?; + + // 用一个 async task 把 sidecar 的 stdout/stderr 转发出来。它退出时 + // 整个 task 也会自然结束。 + tauri::async_runtime::spawn(async move { + while let Some(event) = rx.recv().await { + match event { + CommandEvent::Stdout(line) => { + let line = String::from_utf8_lossy(&line); + println!("[claude-adapters] {}", line.trim_end()); + } + CommandEvent::Stderr(line) => { + let line = String::from_utf8_lossy(&line); + eprintln!("[claude-adapters] {}", line.trim_end()); + } + CommandEvent::Terminated(payload) => { + // exit code != 0 是常态:用户没配凭据时 sidecar 内部会 + // warn + skip + process.exit(1)。这里只 info 一行, + // 不要当错误冒泡。 + println!( + "[claude-adapters] sidecar exited (code={:?}, signal={:?})", + payload.code, payload.signal + ); + } + _ => {} + } + } + }); + + Ok(child) +} + +/// spawn adapter sidecar 并把 child handle 存进 AdapterState。 +/// 在启动 + 重启路径里复用,集中处理"无法 spawn"的日志。 +fn spawn_and_track_adapters_sidecar(app: &AppHandle) { + match start_adapters_sidecar(app) { + Ok(child) => { + if let Some(state) = app.try_state::() { + if let Ok(mut guard) = state.0.lock() { + *guard = Some(child); + } + } + } + Err(err) => { + eprintln!("[desktop] failed to start adapter sidecar: {err}"); + } + } +} + +fn stop_adapters_sidecar(app: &AppHandle) { + let Some(state) = app.try_state::() else { + return; + }; + let Ok(mut guard) = state.0.lock() else { + return; + }; + if let Some(child) = guard.take() { + let _ = child.kill(); + } +} + #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { let app = tauri::Builder::default() .manage(ServerState::default()) + .manage(AdapterState::default()) .plugin(tauri_plugin_shell::init()) .plugin(tauri_plugin_dialog::init()) .plugin(tauri_plugin_process::init()) .plugin(tauri_plugin_updater::Builder::new().build()) - .invoke_handler(tauri::generate_handler![get_server_url]) + .invoke_handler(tauri::generate_handler![ + get_server_url, + restart_adapters_sidecar + ]) .setup(|app| { let state = app.state::(); let mut guard = state @@ -171,6 +320,12 @@ pub fn run() { guard.startup_error = Some(err); } } + drop(guard); + + // server 起来之后再起 adapter sidecar —— start_adapters_sidecar + // 内部会从 ServerState 读 server URL 注入 ADAPTER_SERVER_URL env, + // 让 adapter 连上动态端口。 + spawn_and_track_adapters_sidecar(&app.handle()); let _window = app.get_webview_window("main").unwrap(); Ok(()) @@ -181,6 +336,7 @@ pub fn run() { app.run(|app_handle, event| { if matches!(event, RunEvent::Exit | RunEvent::ExitRequested { .. }) { stop_server_sidecar(app_handle); + stop_adapters_sidecar(app_handle); } }); } diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index 9c11ab61..80c24ddf 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -44,18 +44,9 @@ "targets": "all", "createUpdaterArtifacts": true, "externalBin": [ - "binaries/claude-server", - "binaries/claude-cli" + "binaries/claude-sidecar" ], - "resources": { - "../../src/": "app/src/", - "../../node_modules/": "app/node_modules/", - "../../package.json": "app/package.json", - "../../tsconfig.json": "app/tsconfig.json", - "../../bunfig.toml": "app/bunfig.toml", - "../../preload.ts": "app/preload.ts", - "../../stubs/": "app/stubs/" - }, + "resources": {}, "icon": [ "icons/32x32.png", "icons/128x128.png", diff --git a/desktop/src/pages/AdapterSettings.tsx b/desktop/src/pages/AdapterSettings.tsx index cfa15b62..cec92833 100644 --- a/desktop/src/pages/AdapterSettings.tsx +++ b/desktop/src/pages/AdapterSettings.tsx @@ -9,8 +9,8 @@ export function AdapterSettings() { const t = useTranslation() const { config, isLoading, fetchConfig, updateConfig, generatePairingCode, removePairedUser } = useAdapterStore() - // Server - const [serverUrl, setServerUrl] = useState('') + // Server —— serverUrl 不再暴露在 UI 里(见下方 Server URL 注释), + // 桌面端用 Tauri env var 注入动态端口。 const [defaultProjectDir, setDefaultProjectDir] = useState('') // Telegram @@ -39,7 +39,6 @@ export function AdapterSettings() { // Sync form state when config is loaded useEffect(() => { - setServerUrl(config.serverUrl ?? '') setDefaultProjectDir(config.defaultProjectDir ?? '') setTgBotToken(config.telegram?.botToken ?? '') setTgAllowedUsers(config.telegram?.allowedUsers?.join(', ') ?? '') @@ -58,7 +57,6 @@ export function AdapterSettings() { try { const patch: Record = {} - if (serverUrl) patch.serverUrl = serverUrl if (defaultProjectDir) patch.defaultProjectDir = defaultProjectDir const tgUsers = tgAllowedUsers @@ -212,13 +210,11 @@ export function AdapterSettings() { - {/* Server URL */} - setServerUrl(e.target.value)} - placeholder={t('settings.adapters.serverUrlPlaceholder')} - /> + {/* Server URL —— 之前是个手填字段,但桌面端 Tauri 启动 adapter sidecar + 时已经把 server 的动态端口通过 ADAPTER_SERVER_URL env var 注进去了, + loadConfig() 里 env 优先级高于这里的 file value,所以这个字段在桌面 + 运行时完全不会被读到。用户也根本不知道该填什么端口(每次启动随机)。 + Standalone 模式(直接 bun run adapters/...)保留 file 字段兜底就够了。 */} {/* Default Project */}
diff --git a/desktop/src/stores/adapterStore.ts b/desktop/src/stores/adapterStore.ts index 14a6fa27..41c9ae05 100644 --- a/desktop/src/stores/adapterStore.ts +++ b/desktop/src/stores/adapterStore.ts @@ -2,6 +2,27 @@ import { create } from 'zustand' import { adaptersApi } from '../api/adapters' import type { AdapterFileConfig } from '../types/adapter' +/** + * Tauri command 触发器:让主进程 kill + respawn adapter sidecar, + * 让 ~/.claude/adapters.json 里的最新凭据被新进程读到,建立飞书 / Telegram + * 的 WebSocket 连接。 + * + * 在非 Tauri 环境(纯浏览器调试 / 单元测试)这会安静失败 —— 那种场景下 + * 本来也没有 sidecar 可重启。 + */ +async function notifyTauriRestartAdapters(): Promise { + try { + // 用 dynamic import 避开 SSR / non-tauri 测试环境的硬依赖 + const { invoke } = await import('@tauri-apps/api/core') + await invoke('restart_adapters_sidecar') + } catch (err) { + // 不阻塞保存流程 —— 配置文件已经写入,下次启动 App 也会生效 + if (typeof console !== 'undefined') { + console.warn('[adapterStore] restart_adapters_sidecar failed:', err) + } + } +} + const SAFE_ALPHABET = 'ABCDEFGHJKMNPQRSTUVWXYZ23456789' const CODE_LENGTH = 6 const CODE_TTL_MS = 60 * 60 * 1000 // 60 minutes @@ -49,6 +70,11 @@ export const useAdapterStore = create((set, get) => ({ updateConfig: async (patch) => { const config = await adaptersApi.updateConfig(patch) set({ config }) + // 配置文件已写入磁盘,让 Tauri 主进程 kill + respawn adapter sidecar, + // 触发飞书 / Telegram WebSocket 用新凭据重连。pairing code / paired users + // 这种轻量更新也会触发重启 —— 这是个有意为之的简化:保证"任何配置变更 + // 都立刻生效",比起精细判断哪些字段值得重启更可靠。 + void notifyTauriRestartAdapters() }, generatePairingCode: async () => { diff --git a/src/assistant/AssistantSessionChooser.ts b/src/assistant/AssistantSessionChooser.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/assistant/AssistantSessionChooser.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/assistant/gate.ts b/src/assistant/gate.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/assistant/gate.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/assistant/index.ts b/src/assistant/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/assistant/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/assistant/sessionDiscovery.ts b/src/assistant/sessionDiscovery.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/assistant/sessionDiscovery.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/bridge/peerSessions.ts b/src/bridge/peerSessions.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/bridge/peerSessions.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/bridge/webhookSanitizer.ts b/src/bridge/webhookSanitizer.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/bridge/webhookSanitizer.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/cli/bg.ts b/src/cli/bg.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/cli/bg.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/cli/handlers/ant.ts b/src/cli/handlers/ant.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/cli/handlers/ant.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/cli/handlers/templateJobs.ts b/src/cli/handlers/templateJobs.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/cli/handlers/templateJobs.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/cli/transports/Transport.ts b/src/cli/transports/Transport.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/cli/transports/Transport.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/agents-platform/index.ts b/src/commands/agents-platform/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/agents-platform/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/assistant/assistant.ts b/src/commands/assistant/assistant.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/assistant/assistant.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/assistant/index.ts b/src/commands/assistant/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/assistant/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/clear/clear/caches.ts b/src/commands/clear/clear/caches.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/clear/clear/caches.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/clear/clear/conversation.ts b/src/commands/clear/clear/conversation.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/clear/clear/conversation.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/force-snip.ts b/src/commands/force-snip.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/force-snip.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/fork/index.ts b/src/commands/fork/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/fork/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/install-github-app/types.ts b/src/commands/install-github-app/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/install-github-app/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/peers/index.ts b/src/commands/peers/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/peers/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/plugin/types.ts b/src/commands/plugin/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/plugin/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/plugin/unifiedTypes.ts b/src/commands/plugin/unifiedTypes.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/plugin/unifiedTypes.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/proactive.ts b/src/commands/proactive.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/proactive.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/remoteControlServer/index.ts b/src/commands/remoteControlServer/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/remoteControlServer/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/subscribe-pr.ts b/src/commands/subscribe-pr.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/subscribe-pr.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/torch.ts b/src/commands/torch.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/torch.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/commands/workflows/index.ts b/src/commands/workflows/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/commands/workflows/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/AntModelSwitchCallout.ts b/src/components/AntModelSwitchCallout.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/AntModelSwitchCallout.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/FeedbackSurvey/useFrustrationDetection.ts b/src/components/FeedbackSurvey/useFrustrationDetection.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/FeedbackSurvey/useFrustrationDetection.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/FeedbackSurvey/utils.ts b/src/components/FeedbackSurvey/utils.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/FeedbackSurvey/utils.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/Spinner/types.ts b/src/components/Spinner/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/Spinner/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/UndercoverAutoCallout.ts b/src/components/UndercoverAutoCallout.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/UndercoverAutoCallout.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/agents/SnapshotUpdateDialog.ts b/src/components/agents/SnapshotUpdateDialog.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/agents/SnapshotUpdateDialog.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/agents/new-agent-creation/types.ts b/src/components/agents/new-agent-creation/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/agents/new-agent-creation/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/mcp/types.ts b/src/components/mcp/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/mcp/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/messages/SnipBoundaryMessage.ts b/src/components/messages/SnipBoundaryMessage.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/messages/SnipBoundaryMessage.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/messages/UserCrossSessionMessage.ts b/src/components/messages/UserCrossSessionMessage.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/messages/UserCrossSessionMessage.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/messages/UserForkBoilerplateMessage.ts b/src/components/messages/UserForkBoilerplateMessage.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/messages/UserForkBoilerplateMessage.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/messages/UserGitHubWebhookMessage.ts b/src/components/messages/UserGitHubWebhookMessage.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/messages/UserGitHubWebhookMessage.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts b/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts b/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/tasks/MonitorMcpDetailDialog.ts b/src/components/tasks/MonitorMcpDetailDialog.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/tasks/MonitorMcpDetailDialog.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/tasks/WorkflowDetailDialog.ts b/src/components/tasks/WorkflowDetailDialog.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/tasks/WorkflowDetailDialog.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/ui/option.ts b/src/components/ui/option.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/ui/option.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/components/wizard/types.ts b/src/components/wizard/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/components/wizard/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/constants/querySource.ts b/src/constants/querySource.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/constants/querySource.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/coordinator/workerAgent.ts b/src/coordinator/workerAgent.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/coordinator/workerAgent.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/daemon/main.ts b/src/daemon/main.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/daemon/main.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/daemon/workerRegistry.ts b/src/daemon/workerRegistry.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/daemon/workerRegistry.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/entrypoints/sdk/controlTypes.ts b/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/entrypoints/sdk/sdkUtilityTypes.ts b/src/entrypoints/sdk/sdkUtilityTypes.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/entrypoints/sdk/sdkUtilityTypes.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/environment-runner/main.ts b/src/environment-runner/main.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/environment-runner/main.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/hooks/notifs/useAntOrgWarningNotification.ts b/src/hooks/notifs/useAntOrgWarningNotification.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/hooks/notifs/useAntOrgWarningNotification.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/hooks/useKeybinding.ts b/src/hooks/useKeybinding.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/hooks/useKeybinding.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ink/cursor.ts b/src/ink/cursor.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ink/cursor.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ink/devtools.ts b/src/ink/devtools.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ink/devtools.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ink/events/paste-event.ts b/src/ink/events/paste-event.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ink/events/paste-event.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ink/events/resize-event.ts b/src/ink/events/resize-event.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ink/events/resize-event.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/jobs/classifier.ts b/src/jobs/classifier.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/jobs/classifier.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/keybindings/types.ts b/src/keybindings/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/keybindings/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/memdir/memoryShapeTelemetry.ts b/src/memdir/memoryShapeTelemetry.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/memdir/memoryShapeTelemetry.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/proactive/index.ts b/src/proactive/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/proactive/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/proactive/useProactive.ts b/src/proactive/useProactive.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/proactive/useProactive.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/query/transitions.ts b/src/query/transitions.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/query/transitions.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/self-hosted-runner/main.ts b/src/self-hosted-runner/main.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/self-hosted-runner/main.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/backends/dangerousBackend.ts b/src/server/backends/dangerousBackend.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/backends/dangerousBackend.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/connectHeadless.ts b/src/server/connectHeadless.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/connectHeadless.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/lockfile.ts b/src/server/lockfile.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/lockfile.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/parseConnectUrl.ts b/src/server/parseConnectUrl.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/parseConnectUrl.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/server.ts b/src/server/server.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/server.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/serverBanner.ts b/src/server/serverBanner.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/serverBanner.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/serverLog.ts b/src/server/serverLog.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/serverLog.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/server/services/conversationService.ts b/src/server/services/conversationService.ts index 0fff4098..a7ee07eb 100644 --- a/src/server/services/conversationService.ts +++ b/src/server/services/conversationService.ts @@ -448,19 +448,29 @@ export class ConversationService { } private resolveBundledCliPath(): string | null { + // 桌面端 P0+P2 之后只有一个合并的 sidecar 二进制 —— `claude-sidecar`, + // 它通过第一个 positional 参数 (server / cli) 选模式。当前进程要么 + // 已经是这个 sidecar 自己(spawn 子 CLI 时复用同一个文件),要么是 + // 旧 dev 模式下走 bin/claude-haha。这里支持两种命名: + // - 桌面端 prod build:进程名 claude-sidecar* + // - 旧 server-only 二进制(向后兼容):claude-server* const execPath = process.execPath const execName = path.basename(execPath) - if (!execName.startsWith('claude-server')) { - return null + if (execName.startsWith('claude-sidecar')) { + // 复用同一个二进制,调用 cli 模式 + return execPath } - const bundledCliPath = path.join( - path.dirname(execPath), - execName.replace(/^claude-server/, 'claude-cli'), - ) + if (execName.startsWith('claude-server')) { + const bundledCliPath = path.join( + path.dirname(execPath), + execName.replace(/^claude-server/, 'claude-cli'), + ) + return fs.existsSync(bundledCliPath) ? bundledCliPath : null + } - return fs.existsSync(bundledCliPath) ? bundledCliPath : null + return null } private resolveCliArgs(baseArgs: string[]): string[] { @@ -473,9 +483,21 @@ export class ConversationService { return ['bun', cliCommand, ...baseArgs] } + const cliBaseName = path.basename(cliCommand) + + // 合并 sidecar 模式:第一个参数必须是 'cli',后面跟 --app-root 透传 + if (cliBaseName.startsWith('claude-sidecar')) { + const args = ['cli', ...baseArgs] + if (process.env.CLAUDE_APP_ROOT) { + return [cliCommand, 'cli', '--app-root', process.env.CLAUDE_APP_ROOT, ...baseArgs] + } + return [cliCommand, ...args] + } + + // 旧两段式 sidecar:claude-cli 二进制需要 --app-root if ( process.env.CLAUDE_APP_ROOT && - path.basename(cliCommand).startsWith('claude-cli') + cliBaseName.startsWith('claude-cli') ) { return [ cliCommand, diff --git a/src/server/sessionManager.ts b/src/server/sessionManager.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/server/sessionManager.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/compact/cachedMCConfig.ts b/src/services/compact/cachedMCConfig.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/compact/cachedMCConfig.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/compact/cachedMicrocompact.ts b/src/services/compact/cachedMicrocompact.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/compact/cachedMicrocompact.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/compact/reactiveCompact.ts b/src/services/compact/reactiveCompact.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/compact/reactiveCompact.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/compact/snipCompact.ts b/src/services/compact/snipCompact.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/compact/snipCompact.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/compact/snipProjection.ts b/src/services/compact/snipProjection.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/compact/snipProjection.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/contextCollapse/index.ts b/src/services/contextCollapse/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/contextCollapse/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/contextCollapse/operations.ts b/src/services/contextCollapse/operations.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/contextCollapse/operations.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/contextCollapse/persist.ts b/src/services/contextCollapse/persist.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/contextCollapse/persist.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/lsp/types.ts b/src/services/lsp/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/lsp/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/oauth/types.ts b/src/services/oauth/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/oauth/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/remoteManagedSettings/index.ts b/src/services/remoteManagedSettings/index.ts index 228f2edd..261ccc66 100644 --- a/src/services/remoteManagedSettings/index.ts +++ b/src/services/remoteManagedSettings/index.ts @@ -36,7 +36,7 @@ import { getRetryDelay } from '../api/withRetry.js' import { checkManagedSettingsSecurity, handleSecurityCheckResult, -} from './securityCheck.jsx' +} from './securityCheck.js' import { isRemoteManagedSettingsEligible, resetSyncCache } from './syncCache.js' import { getRemoteManagedSettingsSyncFromCache, diff --git a/src/services/sessionTranscript/sessionTranscript.ts b/src/services/sessionTranscript/sessionTranscript.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/sessionTranscript/sessionTranscript.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/featureCheck.ts b/src/services/skillSearch/featureCheck.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/featureCheck.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/localSearch.ts b/src/services/skillSearch/localSearch.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/localSearch.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/prefetch.ts b/src/services/skillSearch/prefetch.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/prefetch.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/remoteSkillLoader.ts b/src/services/skillSearch/remoteSkillLoader.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/remoteSkillLoader.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/remoteSkillState.ts b/src/services/skillSearch/remoteSkillState.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/remoteSkillState.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/signals.ts b/src/services/skillSearch/signals.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/signals.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/skillSearch/telemetry.ts b/src/services/skillSearch/telemetry.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/skillSearch/telemetry.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/services/tips/types.ts b/src/services/tips/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/services/tips/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/skills/bundled/claude-api/SKILL.md b/src/skills/bundled/claude-api/SKILL.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/SKILL.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/csharp/claude-api.md b/src/skills/bundled/claude-api/csharp/claude-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/csharp/claude-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/curl/examples.md b/src/skills/bundled/claude-api/curl/examples.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/curl/examples.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/go/claude-api.md b/src/skills/bundled/claude-api/go/claude-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/go/claude-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/java/claude-api.md b/src/skills/bundled/claude-api/java/claude-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/java/claude-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/php/claude-api.md b/src/skills/bundled/claude-api/php/claude-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/php/claude-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/agent-sdk/README.md b/src/skills/bundled/claude-api/python/agent-sdk/README.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/agent-sdk/README.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/agent-sdk/patterns.md b/src/skills/bundled/claude-api/python/agent-sdk/patterns.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/agent-sdk/patterns.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/claude-api/README.md b/src/skills/bundled/claude-api/python/claude-api/README.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/claude-api/README.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/claude-api/batches.md b/src/skills/bundled/claude-api/python/claude-api/batches.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/claude-api/batches.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/claude-api/files-api.md b/src/skills/bundled/claude-api/python/claude-api/files-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/claude-api/files-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/claude-api/streaming.md b/src/skills/bundled/claude-api/python/claude-api/streaming.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/claude-api/streaming.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/python/claude-api/tool-use.md b/src/skills/bundled/claude-api/python/claude-api/tool-use.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/python/claude-api/tool-use.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/ruby/claude-api.md b/src/skills/bundled/claude-api/ruby/claude-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/ruby/claude-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/shared/error-codes.md b/src/skills/bundled/claude-api/shared/error-codes.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/shared/error-codes.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/shared/live-sources.md b/src/skills/bundled/claude-api/shared/live-sources.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/shared/live-sources.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/shared/models.md b/src/skills/bundled/claude-api/shared/models.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/shared/models.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/shared/prompt-caching.md b/src/skills/bundled/claude-api/shared/prompt-caching.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/shared/prompt-caching.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/shared/tool-use-concepts.md b/src/skills/bundled/claude-api/shared/tool-use-concepts.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/shared/tool-use-concepts.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/agent-sdk/README.md b/src/skills/bundled/claude-api/typescript/agent-sdk/README.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/agent-sdk/README.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/agent-sdk/patterns.md b/src/skills/bundled/claude-api/typescript/agent-sdk/patterns.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/agent-sdk/patterns.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/claude-api/README.md b/src/skills/bundled/claude-api/typescript/claude-api/README.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/claude-api/README.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/claude-api/batches.md b/src/skills/bundled/claude-api/typescript/claude-api/batches.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/claude-api/batches.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/claude-api/files-api.md b/src/skills/bundled/claude-api/typescript/claude-api/files-api.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/claude-api/files-api.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/claude-api/streaming.md b/src/skills/bundled/claude-api/typescript/claude-api/streaming.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/claude-api/streaming.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/claude-api/typescript/claude-api/tool-use.md b/src/skills/bundled/claude-api/typescript/claude-api/tool-use.md new file mode 100644 index 00000000..7a4d285c --- /dev/null +++ b/src/skills/bundled/claude-api/typescript/claude-api/tool-use.md @@ -0,0 +1,2 @@ + +stub diff --git a/src/skills/bundled/dream.ts b/src/skills/bundled/dream.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/skills/bundled/dream.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/skills/bundled/hunter.ts b/src/skills/bundled/hunter.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/skills/bundled/hunter.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/skills/bundled/runSkillGenerator.ts b/src/skills/bundled/runSkillGenerator.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/skills/bundled/runSkillGenerator.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/skills/mcpSkills.ts b/src/skills/mcpSkills.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/skills/mcpSkills.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ssh/SSHSessionManager.ts b/src/ssh/SSHSessionManager.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ssh/SSHSessionManager.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/ssh/createSSHSession.ts b/src/ssh/createSSHSession.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/ssh/createSSHSession.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts b/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tasks/MonitorMcpTask/MonitorMcpTask.ts b/src/tasks/MonitorMcpTask/MonitorMcpTask.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tasks/MonitorMcpTask/MonitorMcpTask.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/CtxInspectTool/CtxInspectTool.ts b/src/tools/CtxInspectTool/CtxInspectTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/CtxInspectTool/CtxInspectTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/DiscoverSkillsTool/prompt.ts b/src/tools/DiscoverSkillsTool/prompt.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/DiscoverSkillsTool/prompt.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/ListPeersTool/ListPeersTool.ts b/src/tools/ListPeersTool/ListPeersTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/ListPeersTool/ListPeersTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/MonitorTool/MonitorTool.ts b/src/tools/MonitorTool/MonitorTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/MonitorTool/MonitorTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/OverflowTestTool/OverflowTestTool.ts b/src/tools/OverflowTestTool/OverflowTestTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/OverflowTestTool/OverflowTestTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/PushNotificationTool/PushNotificationTool.ts b/src/tools/PushNotificationTool/PushNotificationTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/PushNotificationTool/PushNotificationTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/REPLTool/REPLTool.ts b/src/tools/REPLTool/REPLTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/REPLTool/REPLTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts b/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SendUserFileTool/SendUserFileTool.ts b/src/tools/SendUserFileTool/SendUserFileTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SendUserFileTool/SendUserFileTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SendUserFileTool/prompt.ts b/src/tools/SendUserFileTool/prompt.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SendUserFileTool/prompt.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SleepTool/SleepTool.ts b/src/tools/SleepTool/SleepTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SleepTool/SleepTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SnipTool/SnipTool.ts b/src/tools/SnipTool/SnipTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SnipTool/SnipTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SnipTool/prompt.ts b/src/tools/SnipTool/prompt.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SnipTool/prompt.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SubscribePRTool/SubscribePRTool.ts b/src/tools/SubscribePRTool/SubscribePRTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SubscribePRTool/SubscribePRTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.ts b/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/TerminalCaptureTool/TerminalCaptureTool.ts b/src/tools/TerminalCaptureTool/TerminalCaptureTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/TerminalCaptureTool/TerminalCaptureTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/TerminalCaptureTool/prompt.ts b/src/tools/TerminalCaptureTool/prompt.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/TerminalCaptureTool/prompt.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.ts b/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/VerifyPlanExecutionTool/constants.ts b/src/tools/VerifyPlanExecutionTool/constants.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/VerifyPlanExecutionTool/constants.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WebBrowserTool/WebBrowserPanel.ts b/src/tools/WebBrowserTool/WebBrowserPanel.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WebBrowserTool/WebBrowserPanel.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WebBrowserTool/WebBrowserTool.ts b/src/tools/WebBrowserTool/WebBrowserTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WebBrowserTool/WebBrowserTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WorkflowTool/WorkflowPermissionRequest.ts b/src/tools/WorkflowTool/WorkflowPermissionRequest.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WorkflowTool/WorkflowPermissionRequest.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WorkflowTool/WorkflowTool.ts b/src/tools/WorkflowTool/WorkflowTool.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WorkflowTool/WorkflowTool.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WorkflowTool/bundled/index.ts b/src/tools/WorkflowTool/bundled/index.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WorkflowTool/bundled/index.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/tools/WorkflowTool/createWorkflowCommand.ts b/src/tools/WorkflowTool/createWorkflowCommand.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/tools/WorkflowTool/createWorkflowCommand.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/fileSuggestion.ts b/src/types/fileSuggestion.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/fileSuggestion.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/message.ts b/src/types/message.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/message.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/messageQueueTypes.ts b/src/types/messageQueueTypes.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/messageQueueTypes.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/notebook.ts b/src/types/notebook.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/notebook.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/statusLine.ts b/src/types/statusLine.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/statusLine.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/tools.ts b/src/types/tools.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/tools.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/types/utils.ts b/src/types/utils.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/types/utils.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/attributionHooks.ts b/src/utils/attributionHooks.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/attributionHooks.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/attributionTrailer.ts b/src/utils/attributionTrailer.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/attributionTrailer.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/ccshareResume.ts b/src/utils/ccshareResume.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/ccshareResume.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/eventLoopStallDetector.ts b/src/utils/eventLoopStallDetector.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/eventLoopStallDetector.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/permissions/yolo-classifier-prompts/auto_mode_system_prompt.txt b/src/utils/permissions/yolo-classifier-prompts/auto_mode_system_prompt.txt new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/permissions/yolo-classifier-prompts/auto_mode_system_prompt.txt @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/permissions/yolo-classifier-prompts/permissions_anthropic.txt b/src/utils/permissions/yolo-classifier-prompts/permissions_anthropic.txt new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/permissions/yolo-classifier-prompts/permissions_anthropic.txt @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/permissions/yolo-classifier-prompts/permissions_external.txt b/src/utils/permissions/yolo-classifier-prompts/permissions_external.txt new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/permissions/yolo-classifier-prompts/permissions_external.txt @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/postCommitAttribution.ts b/src/utils/postCommitAttribution.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/postCommitAttribution.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/protectedNamespace.ts b/src/utils/protectedNamespace.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/protectedNamespace.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/sdkHeapDumpMonitor.ts b/src/utils/sdkHeapDumpMonitor.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/sdkHeapDumpMonitor.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/secureStorage/types.ts b/src/utils/secureStorage/types.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/secureStorage/types.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/sessionDataUploader.ts b/src/utils/sessionDataUploader.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/sessionDataUploader.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/systemThemeWatcher.ts b/src/utils/systemThemeWatcher.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/systemThemeWatcher.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/taskSummary.ts b/src/utils/taskSummary.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/taskSummary.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/udsClient.ts b/src/utils/udsClient.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/udsClient.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub diff --git a/src/utils/udsMessaging.ts b/src/utils/udsMessaging.ts new file mode 100644 index 00000000..c170c49a --- /dev/null +++ b/src/utils/udsMessaging.ts @@ -0,0 +1,34 @@ +// @generated stub from scan-missing-imports +// 该文件自动生成,对应 ant-internal 的 feature() gated 模块。 +// 所有外部 build 的代码路径在 DCE 后都不会真的执行这里的代码,这只是 +// bun build resolver 的占位符。 +const __target = function noop() {} +const __handler: ProxyHandler = { + get(_t, prop) { + if (prop === '__esModule') return true + if (prop === 'default') return new Proxy(__target, __handler) + if (prop === Symbol.toPrimitive) return () => undefined + if (prop === Symbol.iterator) return function* () {} + if (prop === Symbol.asyncIterator) return async function* () {} + if (prop === 'then') return undefined + return new Proxy(__target, __handler) + }, + apply() { + return new Proxy(__target, __handler) + }, + construct() { + return new Proxy(__target, __handler) + }, +} +const stub: any = new Proxy(__target, __handler) +export default stub +export const __stubMissing = true +// 兼容常见的命名导出 —— 没列在这里的也会通过 default Proxy 兜底 +export const createCachedMCState = stub +export const isCachedMicrocompactEnabled = stub +export const isModelSupportedForCacheEditing = stub +export const getCachedMCConfig = stub +export const markToolsSentToAPI = stub +export const resetCachedMCState = stub +export const checkProtectedNamespace = stub +export const getCoordinatorUserContext = stub