diff --git a/RECORD.md b/RECORD.md index dd3b510..06bc328 100644 --- a/RECORD.md +++ b/RECORD.md @@ -52,23 +52,32 @@ |------|--------|------| | 初始状态 | ~1800 | 仅缺少 npm 依赖的 TS2307 错误 | | 补全依赖后 | ~1800 | npm 包已安装,开始处理类型 | -| 当前状态 | **2123** | 类型 stub 已创建,但存在质量待修问题 | +| 第一轮 stub 生成 | ~2163 | 自动 stub 生成但质量问题多(全用 `export type`) | +| **第二轮修复后** | **~1341** | 修复了默认导出、补充命名导出、泛型类型 | -### 当前错误分布 +### 当前错误分布(第二轮修复后) -| 错误码 | 数量 | 含义 | -|--------|------|------| -| TS2693 | 727 | `export type X` 被当作值使用(应为 `export const/function`) | -| TS2339 | 537 | 属性不存在(类型收窄、unknown 类型) | -| TS2614 | 468 | 模块只有默认导出,但代码用命名导入 | -| TS2322 | 128 | 类型不匹配 | -| TS2345 | 57 | 参数类型不匹配 | -| TS2300 | 34 | 重复标识符(stub 文件中 export 重复) | -| TS2307 | 29 | 仍有缺失模块 | -| TS2305 | 28 | 缺失导出成员 | -| TS2724 | 21 | 导出名称不匹配(如 HookEvent vs HOOK_EVENTS) | -| TS2367 | 17 | 比较类型无交集(`"external" === "ant"` 等) | -| 其他 | ~100 | TS2578/TS2315/TS2365/TS2741 等 | +| 错误码 | 数量 | 含义 | 性质 | +|--------|------|------|------| +| TS2339 | 701 | 属性不存在 | **主要是源码级问题**(unknown 344, never 121, {} 52) | +| TS2322 | 210 | 类型不匹配 | 源码级 | +| TS2345 | 134 | 参数类型不匹配 | 源码级 | +| TS2367 | 106 | 比较类型无交集 | 源码级(编译时死代码) | +| TS2307 | 29 | 缺失模块 | 可修但收益小 | +| TS2693 | 13 | type 当值用 | 少量残留 | +| TS2300 | 10 | 重复标识符 | 小问题 | +| 其他 | ~138 | TS2365/TS2554/TS2578/TS2538/TS2698 等 | 混合 | + +### 关键发现 + +剩余 1341 个错误中,**绝大多数(~1200+)是源码级别的类型问题**,不是 stub 缺失导致的: + +- `unknown` 类型访问属性 (344) — 反编译产生的 `unknown` 需要断言 +- `never` 类型 (121) — 联合类型穷尽后的死路径 +- `{}` 空对象 (52) — 空 stub 模块的残留影响 +- ComputerUseAPI/ComputerUseInputAPI (42) — 私有包声明不够详细 + +**继续逐个修复类型错误的投入产出比很低。应该改变方向,尝试直接构建运行。** --- @@ -126,111 +135,84 @@ - 自动创建 `export type X = any` stub - 已生成 **1206 个 stub 文件,覆盖 2067 个命名导出** +### 2.5 第二轮修复 — 默认导出 & 缺失导出 (本次会话) + +#### `scripts/fix-default-stubs.mjs` — 修复 120 个 `export default {} as any` 的 stub 文件 + +- 扫描源码中所有 import 语句,区分 `import type {}` vs `import {}` +- 将纯类型导出为 `export type X = any`,值导出为 `export const X: any = (() => {}) as any` +- **效果**: TS2614 从 632 → 0 (完全消除) + +#### `scripts/fix-missing-exports.mjs` — 补全空模块的导出成员 + +- 解析 TS2339 中 `typeof import("...")` 的错误,给 81 个模块添加了 147 个缺失导出 +- 解析 TS2305 添加了 10 个缺失导出 +- 解析 TS2724 添加了 4 个命名不匹配的导出 +- 创建了 2 个新 stub 文件修复 TS2307 + +#### 泛型类型修复 + +将以下类型从非泛型改为泛型(修复 86 个 TS2315): + +- `DeepImmutable`, `Permutations` (`src/types/utils.ts`) +- `AttachmentMessage`, `ProgressMessage`, `NormalizedAssistantMessage` (`src/types/message.ts` 及其多个副本) +- `WizardContextValue` (`src/components/wizard/types.ts`) + +#### 语法修复 + +修复 4 个 `export const default` 非法语法(buddy/fork/peers/workflows 的 index.ts) + --- ## 三、当前问题分析 -### 3.1 TS2693 (727 个) — `export type` 被当作值使用 ⚠️ 关键 +### 3.1 剩余错误已触达 "源码级" 地板 -**原因**: `scripts/create-type-stubs.mjs` 统一使用 `export type X = any` 生成 stub,但代码中很多地方将导入的名称作为**值**使用(如调用函数、渲染 JSX 组件等)。 +剩余 ~1341 个错误绝大多数不是 stub 缺失问题,而是源码本身的类型问题: -**示例**: +- **unknown (344)**: 反编译代码中大量 `unknown` 类型变量直接访问属性 +- **never (121)**: 联合类型穷尽后的 never 路径(通常是 switch/if-else 的 exhaustive check) +- **{} (52)**: 空对象类型 +- **类型比较 (106 TS2367)**: 编译时死代码如 `"external" === "ant"` +- **类型不匹配 (210 TS2322 + 134 TS2345)**: stub 类型不够精确 -```typescript -// stub 中: export type performLogout = any -// 实际使用: performLogout() // TS2693: only refers to a type, but is being used as a value -``` +### 3.2 继续修类型错误的问题 -**修复方案**: 将 `export type X = any` 改为 `declare const X: any` 或 `export const X: any`。需要区分哪些是纯类型、哪些是值/函数/组件。 - -### 3.2 TS2614 (468 个) — 模块只有默认导出 - -**原因**: 部分 stub 文件使用 `export default {} as any`(早期手动创建),但代码用命名导入 `import { Message } from ...`。 - -**示例**: `src/types/message.ts` 当前内容为 `export default {} as any`,但代码 `import type { Message } from '../types/message.js'` - -**修复方案**: 将默认导出改为命名导出。 - -### 3.3 TS2300 (34 个) — 重复标识符 - -**原因**: stub 文件中有 `export type X = any` 行,同时源文件中也存在同名定义,造成冲突。部分 stub 文件路径不正确(如 `src/components/CustomSelect/select.ts` 既有真实代码又有 stub 导出)。 - -**修复方案**: 检查这些文件,如果真实文件存在则删除 stub 中的重复导出。 - -### 3.4 TS2339 (537 个) — 属性不存在 - -**原因**: `any` 类型的 stub 过于宽松时可以正常工作,但部分地方类型收窄后(如联合类型判别、`unknown` 类型)无法访问属性。 - -**分类**: - -- 内部代码中 `unknown` 类型需要类型断言(源码问题) -- `McpServerConfigForProcessTransport` 等类型定义过窄(stub 精度问题) -- `{ ok: true } | { ok: false; error: string }` 联合类型访问 `.error`(源码惯用模式) - -**修复方案**: 调整相关 stub 类型定义使其更精确。 - -### 3.5 TS2307 (29 个) — 仍有缺失模块 - -主要是路径解析问题产生的重复 stub(如 `src/cli/src/` 下的文件已被删除)以及一些深度嵌套的相对路径。 - -### 3.6 路径问题 - -部分 stub 文件被错误创建在 `src/cli/src/` 等嵌套路径下(因为 `import { X } from 'src/something'` 从 `src/cli/handlers/auth.ts` 解析时路径计算错误)。已手动删除部分重复文件,但可能仍有残留。 +1. **投入产出比极低** — 每个 TS2339/TS2322 都需要理解具体上下文 +2. **Bun bundler 不强制要求零 TS 错误** — Bun 可以在有类型错误的情况下成功构建 +3. **大部分是运行时无影响的类型问题** — `unknown as any` 等模式不影响实际执行 --- -## 四、后续处理方案 +## 四、后续方向建议 -### Phase 1: 修复脚本 — 区分类型导出 vs 值导出 (预计解决 ~1200 个错误) +### 方向 A: 直接尝试 `bun build` 构建 ⭐ 推荐 -改进 `scripts/create-type-stubs.mjs`: +Bun bundler 对类型错误比 tsc 宽容得多。应该直接尝试构建: -1. **分析 import 语句上下文**: - - `import type { X }` → 纯类型,用 `export type X = any` - - `import { X }` (无 type) → 可能是值,用 `export const X: any = (() => {}) as any` - - JSX 组件(大写开头 + 在 JSX 中使用)→ `export const X: React.FC = () => null` - -2. **分析使用上下文**: - - `X()` 调用 → 函数/值导出 - - `` → React 组件 - - `X.property` → 对象/命名空间 - -### Phase 2: 修复默认导出问题 (预计解决 ~468 个 TS2614) - -将所有 `export default {} as any` 的 stub 文件替换为带命名导出的版本: - -```typescript -// 之前 -export default {} as any - -// 之后 — 根据导入需求 -export type Message = any -export type NormalizedUserMessage = any -// ... 等 +```bash +bun build src/entrypoints/cli.tsx --target=node --outdir=dist ``` -### Phase 3: 清理冲突和路径问题 (预计解决 ~34 个 TS2300 + 29 个 TS2307) +遇到的构建错误才是真正需要修的问题(缺失模块、语法错误等),而非类型错误。 -1. 检查所有带 `TS2300` 错误的文件,删除与真实代码冲突的 stub -2. 清理 `src/cli/src/`、`src/components/*/src/` 等错误路径下的 stub 残留 -3. 修复 `tsconfig.json` 的 `paths` 配置,确保 `src/*` 映射正确 +### 方向 B: 在 tsconfig 中进一步放宽 -### Phase 4: 精化关键类型定义 (预计解决 ~100+ 个 TS2322/TS2345) +```json +{ + "compilerOptions": { + "strict": false, + "noImplicitAny": false, + "strictNullChecks": false + } +} +``` -对高频使用的类型提供更精确的定义: +已经是 `strict: false`,但可以进一步添加 `"skipLibCheck": true`(已有)。 -1. **SDK 消息类型** — 使 `type` 字段为字面量联合类型,而非 `string` -2. **McpServerConfig** — 改为联合类型(stdio | sse | http | sse-ide) -3. **HookInput** 系列 — 添加 `hook_event_name` 字面量类型 -4. **PermissionResult** — 改为判别联合 `allow | deny` +### 方向 C: 批量 `// @ts-nocheck` -### Phase 5: 处理源码级别的类型问题 (需评估) - -这些是源码本身的问题,不属于 stub 范畴: - -- `TS2367`: `"external" === "ant"` — 构建时消除的死代码 -- `TS2339`: 联合类型属性访问 — 需要类型收窄或断言 -- `TS2322`: 类型字面量不匹配(如 `"result"` vs `"result_success"`) +对有大量源码级类型错误的文件加 `// @ts-nocheck`,快速消除错误。 --- @@ -242,6 +224,9 @@ export type NormalizedUserMessage = any | `src/types/internal-modules.d.ts` | 内部 npm 包类型声明 | | `src/types/react-compiler-runtime.d.ts` | React compiler runtime | | `src/types/sdk-stubs.d.ts` | SDK 通配符类型(备用) | +| `src/types/message.ts` | Message 系列类型 stub (39 types) | +| `src/types/tools.ts` | 工具进度类型 stub | +| `src/types/utils.ts` | DeepImmutable / Permutations 泛型 | | `src/entrypoints/sdk/controlTypes.ts` | SDK 控制类型 stub | | `src/entrypoints/sdk/runtimeTypes.ts` | SDK 运行时类型 stub | | `src/entrypoints/sdk/coreTypes.generated.ts` | SDK 核心类型 stub | @@ -249,6 +234,8 @@ export type NormalizedUserMessage = any | `src/entrypoints/sdk/toolTypes.ts` | SDK 工具类型 stub | | `src/entrypoints/sdk/sdkUtilityTypes.ts` | SDK 工具类型 | | `scripts/create-type-stubs.mjs` | 自动 stub 生成脚本 | +| `scripts/fix-default-stubs.mjs` | 修复 `export default` stub 为命名导出 | +| `scripts/fix-missing-exports.mjs` | 补全空模块缺失的导出成员 | | `tsconfig.json` | TypeScript 配置 | | `package.json` | 依赖配置 | @@ -265,4 +252,13 @@ npx tsc --noEmit 2>&1 | grep "error TS" | sed 's/.*error //' | sed 's/:.*//' | s # 重新生成 stub(修复脚本后) node scripts/create-type-stubs.mjs + +# 修复默认导出 stub +node scripts/fix-default-stubs.mjs + +# 补全缺失导出 +node scripts/fix-missing-exports.mjs + +# 尝试构建(下一步) +bun build src/entrypoints/cli.tsx --target=node --outdir=dist ``` diff --git a/package.json b/package.json index c29994c..2c4c621 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "build": "bun build src/entrypoints/cli.ts --outdir dist --target bun", + "build": "bun build src/entrypoints/cli.tsx --outdir dist --target bun", "dev": "bun run --watch src/entrypoints/cli.tsx" }, "dependencies": { diff --git a/scripts/create-type-stubs.mjs b/scripts/create-type-stubs.mjs new file mode 100644 index 0000000..2176ee5 --- /dev/null +++ b/scripts/create-type-stubs.mjs @@ -0,0 +1,137 @@ +#!/usr/bin/env node +/** + * Analyzes TypeScript errors and creates stub modules with proper named exports. + * Run: node scripts/create-type-stubs.mjs + */ +import { execSync } from 'child_process'; +import { writeFileSync, existsSync, mkdirSync } from 'fs'; +import { dirname, join } from 'path'; + +const ROOT = '/Users/konghayao/code/ai/claude-code'; + +// Run tsc and capture errors (tsc exits non-zero on type errors, that's expected) +let errors; +try { + errors = execSync('npx tsc --noEmit 2>&1', { encoding: 'utf-8', cwd: ROOT }); +} catch (e) { + errors = e.stdout || ''; +} + +// Map: resolved file path -> Set of needed named exports +const stubExports = new Map(); +// Map: resolved file path -> Set of needed default export names +const defaultExports = new Map(); + +for (const line of errors.split('\n')) { + // TS2614: Module '"X"' has no exported member 'Y'. Did you mean to use 'import Y from "X"' instead? + let m = line.match(/error TS2614: Module '"(.+?)"' has no exported member '(.+?)'\. Did you mean to use 'import .* from/); + if (m) { + const [, mod, member] = m; + if (!defaultExports.has(mod)) defaultExports.set(mod, new Set()); + defaultExports.get(mod).add(member); + continue; + } + + // TS2305: Module '"X"' has no exported member 'Y' + m = line.match(/error TS2305: Module '"(.+?)"' has no exported member '(.+?)'/); + if (m) { + const [, mod, member] = m; + if (!stubExports.has(mod)) stubExports.set(mod, new Set()); + stubExports.get(mod).add(member); + } + + // TS2724: '"X"' has no exported member named 'Y'. Did you mean 'Z'? + m = line.match(/error TS2724: '"(.+?)"' has no exported member named '(.+?)'/); + if (m) { + const [, mod, member] = m; + if (!stubExports.has(mod)) stubExports.set(mod, new Set()); + stubExports.get(mod).add(member); + } + + // TS2306: File 'X' is not a module + m = line.match(/error TS2306: File '(.+?)' is not a module/); + if (m) { + const filePath = m[1]; + if (!stubExports.has(filePath)) stubExports.set(filePath, new Set()); + } + + // TS2307: Cannot find module 'X' + m = line.match(/^(.+?)\(\d+,\d+\): error TS2307: Cannot find module '(.+?)'/); + if (m) { + const [srcFile, mod] = [m[1], m[2]]; + if (mod.endsWith('.md')) continue; + if (!mod.startsWith('.') && !mod.startsWith('src/')) continue; + // Will be resolved below + const srcDir = dirname(srcFile); + const resolved = join(ROOT, srcDir, mod).replace(/\.js$/, '.ts'); + if (resolved.startsWith(ROOT + '/') && !existsSync(resolved)) { + if (!stubExports.has(resolved)) stubExports.set(resolved, new Set()); + } + } +} + +// Also parse actual import statements from source files to find what's needed +import { readFileSync } from 'fs'; +const allSourceFiles = execSync('find src -name "*.ts" -o -name "*.tsx"', { encoding: 'utf-8', cwd: ROOT }).trim().split('\n'); + +for (const file of allSourceFiles) { + const content = readFileSync(join(ROOT, file), 'utf-8'); + const srcDir = dirname(file); + + // Find all import { X, Y } from 'module' + const importRegex = /import\s+(?:type\s+)?\{([^}]+)\}\s+from\s+['"](.+?)['"]/g; + let match; + while ((match = importRegex.exec(content)) !== null) { + const members = match[1].split(',').map(s => s.trim().split(/\s+as\s+/)[0].trim()).filter(Boolean); + let mod = match[2]; + if (!mod.startsWith('.') && !mod.startsWith('src/')) continue; + + const resolved = join(ROOT, srcDir, mod).replace(/\.js$/, '.ts'); + if (resolved.startsWith(ROOT + '/') && !existsSync(resolved)) { + if (!stubExports.has(resolved)) stubExports.set(resolved, new Set()); + for (const member of members) { + stubExports.get(resolved).add(member); + } + } + } +} + +// Now create/update all stub files +let created = 0; +for (const [filePath, exports] of stubExports) { + const relPath = filePath.replace(ROOT + '/', ''); + const dir = dirname(filePath); + + if (!existsSync(dir)) { + mkdirSync(dir, { recursive: true }); + } + + const lines = ['// Auto-generated type stub — replace with real implementation']; + + for (const exp of exports) { + lines.push(`export type ${exp} = any;`); + } + + // Check if there are default exports needed + for (const [mod, defs] of defaultExports) { + // Match the module path + const modNorm = mod.replace(/\.js$/, '').replace(/^src\//, ''); + const filePathNorm = relPath.replace(/\.ts$/, ''); + if (modNorm === filePathNorm || mod === relPath) { + for (const def of defs) { + lines.push(`export type ${def} = any;`); + } + } + } + + // Ensure at least export {} + if (exports.size === 0) { + lines.push('export {};'); + } + + writeFileSync(filePath, lines.join('\n') + '\n'); + created++; +} + +console.log(`Created/updated ${created} stub files`); +console.log(`Total named exports resolved: ${[...stubExports.values()].reduce((a, b) => a + b.size, 0)}`); diff --git a/scripts/fix-default-stubs.mjs b/scripts/fix-default-stubs.mjs new file mode 100644 index 0000000..009bcc6 --- /dev/null +++ b/scripts/fix-default-stubs.mjs @@ -0,0 +1,160 @@ +#!/usr/bin/env node +/** + * Finds all stub files with `export default {} as any` and rewrites them + * with proper named exports based on what the source code actually imports. + */ +import { execSync } from 'child_process'; +import { readFileSync, writeFileSync, existsSync } from 'fs'; +import { dirname, join, relative, resolve } from 'path'; + +const ROOT = '/Users/konghayao/code/ai/claude-code'; + +// Step 1: Find all stub files with only `export default {} as any` +const stubFiles = new Set(); +const allTsFiles = execSync('find src -name "*.ts" -o -name "*.tsx"', { + encoding: 'utf-8', cwd: ROOT +}).trim().split('\n'); + +for (const f of allTsFiles) { + const fullPath = join(ROOT, f); + const content = readFileSync(fullPath, 'utf-8').trim(); + if (content === 'export default {} as any') { + stubFiles.add(f); // relative path like src/types/message.ts + } +} + +console.log(`Found ${stubFiles.size} stub files with 'export default {} as any'`); + +// Step 2: Scan all source files for imports from these stub modules +// Map: stub file path -> { types: Set, values: Set } +const stubNeeds = new Map(); +for (const sf of stubFiles) { + stubNeeds.set(sf, { types: new Set(), values: new Set() }); +} + +// Helper: resolve an import path from a source file to a stub file +function resolveImport(srcFile, importPath) { + // Handle src/ prefix imports + if (importPath.startsWith('src/')) { + const resolved = importPath.replace(/\.js$/, '.ts'); + if (stubFiles.has(resolved)) return resolved; + return null; + } + // Handle relative imports + if (importPath.startsWith('.')) { + const srcDir = dirname(srcFile); + const resolved = join(srcDir, importPath).replace(/\.js$/, '.ts'); + if (stubFiles.has(resolved)) return resolved; + // Try .tsx + const resolvedTsx = join(srcDir, importPath).replace(/\.js$/, '.tsx'); + if (stubFiles.has(resolvedTsx)) return resolvedTsx; + return null; + } + return null; +} + +for (const srcFile of allTsFiles) { + if (stubFiles.has(srcFile)) continue; // skip stub files themselves + + const fullPath = join(ROOT, srcFile); + const content = readFileSync(fullPath, 'utf-8'); + + // Match: import type { A, B } from 'path' + const typeImportRegex = /import\s+type\s+\{([^}]+)\}\s+from\s+['"](.+?)['"]/g; + let match; + while ((match = typeImportRegex.exec(content)) !== null) { + const members = match[1].split(',').map(s => { + const parts = s.trim().split(/\s+as\s+/); + return parts[0].trim(); + }).filter(Boolean); + const resolved = resolveImport(srcFile, match[2]); + if (resolved && stubNeeds.has(resolved)) { + for (const m of members) stubNeeds.get(resolved).types.add(m); + } + } + + // Match: import { A, B } from 'path' (NOT import type) + const valueImportRegex = /import\s+(?!type\s)\{([^}]+)\}\s+from\s+['"](.+?)['"]/g; + while ((match = valueImportRegex.exec(content)) !== null) { + const rawMembers = match[1]; + const members = rawMembers.split(',').map(s => { + // Handle `type Foo` inline type imports + const trimmed = s.trim(); + if (trimmed.startsWith('type ')) { + return { name: trimmed.replace(/^type\s+/, '').split(/\s+as\s+/)[0].trim(), isType: true }; + } + return { name: trimmed.split(/\s+as\s+/)[0].trim(), isType: false }; + }).filter(m => m.name); + + const resolved = resolveImport(srcFile, match[2]); + if (resolved && stubNeeds.has(resolved)) { + for (const m of members) { + if (m.isType) { + stubNeeds.get(resolved).types.add(m.name); + } else { + stubNeeds.get(resolved).values.add(m.name); + } + } + } + } + + // Match: import Default from 'path' + const defaultImportRegex = /import\s+(?!type\s)(\w+)\s+from\s+['"](.+?)['"]/g; + while ((match = defaultImportRegex.exec(content)) !== null) { + const name = match[1]; + if (name === 'type') continue; + const resolved = resolveImport(srcFile, match[2]); + if (resolved && stubNeeds.has(resolved)) { + stubNeeds.get(resolved).values.add('__default__:' + name); + } + } +} + +// Step 3: Rewrite stub files +let updated = 0; +for (const [stubFile, needs] of stubNeeds) { + const fullPath = join(ROOT, stubFile); + const lines = ['// Auto-generated stub — replace with real implementation']; + + let hasDefault = false; + + // Add type exports + for (const t of needs.types) { + // Don't add as type if also in values + if (!needs.values.has(t)) { + lines.push(`export type ${t} = any;`); + } + } + + // Add value exports (as const with any type) + for (const v of needs.values) { + if (v.startsWith('__default__:')) { + hasDefault = true; + continue; + } + // Check if it's likely a type (starts with uppercase and not a known function pattern) + // But since it's imported without `type`, treat as value to be safe + lines.push(`export const ${v}: any = (() => {}) as any;`); + } + + // Add default export if needed + if (hasDefault) { + lines.push(`export default {} as any;`); + } + + if (needs.types.size === 0 && needs.values.size === 0) { + lines.push('export {};'); + } + + writeFileSync(fullPath, lines.join('\n') + '\n'); + updated++; +} + +console.log(`Updated ${updated} stub files`); + +// Print summary +for (const [stubFile, needs] of stubNeeds) { + if (needs.types.size > 0 || needs.values.size > 0) { + console.log(` ${stubFile}: ${needs.types.size} types, ${needs.values.size} values`); + } +} diff --git a/scripts/fix-missing-exports.mjs b/scripts/fix-missing-exports.mjs new file mode 100644 index 0000000..0992e73 --- /dev/null +++ b/scripts/fix-missing-exports.mjs @@ -0,0 +1,228 @@ +#!/usr/bin/env node +/** + * Fixes TS2339 "Property X does not exist on type 'typeof import(...)'" + * by adding missing exports to the stub module files. + * Also re-runs TS2305/TS2724 fixes. + */ +import { execSync } from 'child_process'; +import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'fs'; +import { dirname, join } from 'path'; + +const ROOT = '/Users/konghayao/code/ai/claude-code'; + +// Run tsc and capture errors +let errors; +try { + errors = execSync('npx tsc --noEmit 2>&1', { encoding: 'utf-8', cwd: ROOT, maxBuffer: 50 * 1024 * 1024 }); +} catch (e) { + errors = e.stdout || ''; +} + +// ============================================================ +// 1. Fix TS2339 on typeof import(...) - add missing exports +// ============================================================ +// Map: module file path -> Set +const missingExports = new Map(); + +for (const line of errors.split('\n')) { + // TS2339: Property 'X' does not exist on type 'typeof import("path")' + let m = line.match(/error TS2339: Property '(\w+)' does not exist on type 'typeof import\("(.+?)"\)'/); + if (m) { + const [, prop, modPath] = m; + let filePath; + if (modPath.startsWith('/')) { + filePath = modPath; + } else { + continue; // skip non-absolute paths for now + } + // Try .ts then .tsx + for (const ext of ['.ts', '.tsx']) { + const fp = filePath + ext; + if (existsSync(fp)) { + if (!missingExports.has(fp)) missingExports.set(fp, new Set()); + missingExports.get(fp).add(prop); + break; + } + } + } + + // TS2339 on type '{ default: typeof import("...") }' (namespace import) + m = line.match(/error TS2339: Property '(\w+)' does not exist on type '\{ default: typeof import\("(.+?)"\)/); + if (m) { + const [, prop, modPath] = m; + for (const ext of ['.ts', '.tsx']) { + const fp = (modPath.startsWith('/') ? modPath : join(ROOT, modPath)) + ext; + if (existsSync(fp)) { + if (!missingExports.has(fp)) missingExports.set(fp, new Set()); + missingExports.get(fp).add(prop); + break; + } + } + } +} + +console.log(`Found ${missingExports.size} modules needing export additions for TS2339`); + +let ts2339Fixed = 0; +for (const [filePath, props] of missingExports) { + const content = readFileSync(filePath, 'utf-8'); + const existingExports = new Set(); + // Parse existing exports + const exportRegex = /export\s+(?:type|const|function|class|let|var|default)\s+(\w+)/g; + let em; + while ((em = exportRegex.exec(content)) !== null) { + existingExports.add(em[1]); + } + + const newExports = []; + for (const prop of props) { + if (!existingExports.has(prop) && !content.includes(`export { ${prop}`) && !content.includes(`, ${prop}`)) { + newExports.push(`export const ${prop}: any = (() => {}) as any;`); + ts2339Fixed++; + } + } + + if (newExports.length > 0) { + const newContent = content.trimEnd() + '\n' + newExports.join('\n') + '\n'; + writeFileSync(filePath, newContent); + } +} +console.log(`Added ${ts2339Fixed} missing exports for TS2339`); + +// ============================================================ +// 2. Fix TS2305 - Module has no exported member +// ============================================================ +const ts2305Fixes = new Map(); + +for (const line of errors.split('\n')) { + let m = line.match(/^(.+?)\(\d+,\d+\): error TS2305: Module '"(.+?)"' has no exported member '(.+?)'/); + if (!m) continue; + const [, srcFile, mod, member] = m; + + // Resolve module path + let resolvedPath; + if (mod.startsWith('.') || mod.startsWith('src/')) { + const base = mod.startsWith('.') ? join(dirname(srcFile), mod) : mod; + const resolved = join(ROOT, base).replace(/\.js$/, ''); + for (const ext of ['.ts', '.tsx']) { + if (existsSync(resolved + ext)) { + resolvedPath = resolved + ext; + break; + } + } + } + + if (resolvedPath) { + if (!ts2305Fixes.has(resolvedPath)) ts2305Fixes.set(resolvedPath, new Set()); + ts2305Fixes.get(resolvedPath).add(member); + } +} + +let ts2305Fixed = 0; +for (const [filePath, members] of ts2305Fixes) { + const content = readFileSync(filePath, 'utf-8'); + const newExports = []; + + for (const member of members) { + if (!content.includes(`export type ${member}`) && !content.includes(`export const ${member}`) && !content.includes(`export function ${member}`)) { + newExports.push(`export type ${member} = any;`); + ts2305Fixed++; + } + } + + if (newExports.length > 0) { + writeFileSync(filePath, content.trimEnd() + '\n' + newExports.join('\n') + '\n'); + } +} +console.log(`Added ${ts2305Fixed} missing exports for TS2305`); + +// ============================================================ +// 3. Fix TS2724 - no exported member named X. Did you mean Y? +// ============================================================ +const ts2724Fixes = new Map(); + +for (const line of errors.split('\n')) { + let m = line.match(/^(.+?)\(\d+,\d+\): error TS2724: '"(.+?)"' has no exported member named '(.+?)'/); + if (!m) continue; + const [, srcFile, mod, member] = m; + + let resolvedPath; + if (mod.startsWith('.') || mod.startsWith('src/')) { + const base = mod.startsWith('.') ? join(dirname(srcFile), mod) : mod; + const resolved = join(ROOT, base).replace(/\.js$/, ''); + for (const ext of ['.ts', '.tsx']) { + if (existsSync(resolved + ext)) { + resolvedPath = resolved + ext; + break; + } + } + } + + if (resolvedPath) { + if (!ts2724Fixes.has(resolvedPath)) ts2724Fixes.set(resolvedPath, new Set()); + ts2724Fixes.get(resolvedPath).add(member); + } +} + +let ts2724Fixed = 0; +for (const [filePath, members] of ts2724Fixes) { + const content = readFileSync(filePath, 'utf-8'); + const newExports = []; + + for (const member of members) { + if (!content.includes(`export type ${member}`) && !content.includes(`export const ${member}`)) { + newExports.push(`export type ${member} = any;`); + ts2724Fixed++; + } + } + + if (newExports.length > 0) { + writeFileSync(filePath, content.trimEnd() + '\n' + newExports.join('\n') + '\n'); + } +} +console.log(`Added ${ts2724Fixed} missing exports for TS2724`); + +// ============================================================ +// 4. Fix TS2307 - Cannot find module (create stub files) +// ============================================================ +let ts2307Fixed = 0; + +for (const line of errors.split('\n')) { + let m = line.match(/^(.+?)\(\d+,\d+\): error TS2307: Cannot find module '(.+?)'/); + if (!m) continue; + const [, srcFile, mod] = m; + if (mod.endsWith('.md') || mod.endsWith('.css')) continue; + if (!mod.startsWith('.') && !mod.startsWith('src/')) continue; + + const srcDir = dirname(srcFile); + let resolved; + if (mod.startsWith('.')) { + resolved = join(ROOT, srcDir, mod).replace(/\.js$/, '.ts'); + } else { + resolved = join(ROOT, mod).replace(/\.js$/, '.ts'); + } + + if (!existsSync(resolved) && resolved.startsWith(ROOT + '/src/')) { + const dir = dirname(resolved); + if (!existsSync(dir)) mkdirSync(dir, { recursive: true }); + + // Collect imports from the source file for this module + const srcContent = readFileSync(join(ROOT, srcFile), 'utf-8'); + const importRegex = new RegExp(`import\\s+(?:type\\s+)?\\{([^}]+)\\}\\s+from\\s+['"]${mod.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}['"]`, 'g'); + const members = new Set(); + let im; + while ((im = importRegex.exec(srcContent)) !== null) { + im[1].split(',').map(s => s.trim().replace(/^type\s+/, '').split(/\s+as\s+/)[0].trim()).filter(Boolean).forEach(m => members.add(m)); + } + + const lines = ['// Auto-generated stub']; + for (const member of members) { + lines.push(`export type ${member} = any;`); + } + if (members.size === 0) lines.push('export {};'); + + writeFileSync(resolved, lines.join('\n') + '\n'); + ts2307Fixed++; + } +} +console.log(`Created ${ts2307Fixed} new stub files for TS2307`); diff --git a/src/assistant/AssistantSessionChooser.ts b/src/assistant/AssistantSessionChooser.ts new file mode 100644 index 0000000..1ebdf1c --- /dev/null +++ b/src/assistant/AssistantSessionChooser.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const AssistantSessionChooser: any = (() => {}) as any; diff --git a/src/assistant/gate.ts b/src/assistant/gate.ts new file mode 100644 index 0000000..2bb8e34 --- /dev/null +++ b/src/assistant/gate.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isKairosEnabled: any = (() => {}) as any; diff --git a/src/assistant/index.ts b/src/assistant/index.ts new file mode 100644 index 0000000..e7dc0e9 --- /dev/null +++ b/src/assistant/index.ts @@ -0,0 +1,8 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isAssistantMode: any = (() => {}) as any; +export const initializeAssistantTeam: any = (() => {}) as any; +export const markAssistantForced: any = (() => {}) as any; +export const isAssistantForced: any = (() => {}) as any; +export const getAssistantSystemPromptAddendum: any = (() => {}) as any; +export const getAssistantActivationPath: any = (() => {}) as any; diff --git a/src/assistant/sessionDiscovery.ts b/src/assistant/sessionDiscovery.ts new file mode 100644 index 0000000..708cf3c --- /dev/null +++ b/src/assistant/sessionDiscovery.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type AssistantSession = any; +export const discoverAssistantSessions: any = (() => {}) as any; diff --git a/src/bootstrap/src/entrypoints/agentSdkTypes.ts b/src/bootstrap/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..8491988 --- /dev/null +++ b/src/bootstrap/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; +export type ModelUsage = any; diff --git a/src/bootstrap/src/tools/AgentTool/agentColorManager.ts b/src/bootstrap/src/tools/AgentTool/agentColorManager.ts new file mode 100644 index 0000000..b1a565c --- /dev/null +++ b/src/bootstrap/src/tools/AgentTool/agentColorManager.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AgentColorName = any; diff --git a/src/bootstrap/src/types/hooks.ts b/src/bootstrap/src/types/hooks.ts new file mode 100644 index 0000000..ee7a626 --- /dev/null +++ b/src/bootstrap/src/types/hooks.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HookCallbackMatcher = any; diff --git a/src/bootstrap/src/types/ids.ts b/src/bootstrap/src/types/ids.ts new file mode 100644 index 0000000..3429179 --- /dev/null +++ b/src/bootstrap/src/types/ids.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SessionId = any; diff --git a/src/bootstrap/src/utils/crypto.ts b/src/bootstrap/src/utils/crypto.ts new file mode 100644 index 0000000..61e51b7 --- /dev/null +++ b/src/bootstrap/src/utils/crypto.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type randomUUID = any; diff --git a/src/bootstrap/src/utils/model/model.ts b/src/bootstrap/src/utils/model/model.ts new file mode 100644 index 0000000..9821026 --- /dev/null +++ b/src/bootstrap/src/utils/model/model.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ModelSetting = any; diff --git a/src/bootstrap/src/utils/model/modelStrings.ts b/src/bootstrap/src/utils/model/modelStrings.ts new file mode 100644 index 0000000..d632b76 --- /dev/null +++ b/src/bootstrap/src/utils/model/modelStrings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ModelStrings = any; diff --git a/src/bootstrap/src/utils/settings/constants.ts b/src/bootstrap/src/utils/settings/constants.ts new file mode 100644 index 0000000..b82138d --- /dev/null +++ b/src/bootstrap/src/utils/settings/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SettingSource = any; diff --git a/src/bootstrap/src/utils/settings/settingsCache.ts b/src/bootstrap/src/utils/settings/settingsCache.ts new file mode 100644 index 0000000..818a7b1 --- /dev/null +++ b/src/bootstrap/src/utils/settings/settingsCache.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type resetSettingsCache = any; diff --git a/src/bootstrap/src/utils/settings/types.ts b/src/bootstrap/src/utils/settings/types.ts new file mode 100644 index 0000000..dfe971f --- /dev/null +++ b/src/bootstrap/src/utils/settings/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PluginHookMatcher = any; diff --git a/src/bootstrap/src/utils/signal.ts b/src/bootstrap/src/utils/signal.ts new file mode 100644 index 0000000..7c6732c --- /dev/null +++ b/src/bootstrap/src/utils/signal.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createSignal = any; diff --git a/src/bootstrap/state.ts b/src/bootstrap/state.ts index d7199e5..31a3e1c 100644 --- a/src/bootstrap/state.ts +++ b/src/bootstrap/state.ts @@ -1755,4 +1755,4 @@ export function getPromptId(): string | null { export function setPromptId(id: string | null): void { STATE.promptId = id } - +export type isReplBridgeActive = any; diff --git a/src/bridge/peerSessions.ts b/src/bridge/peerSessions.ts new file mode 100644 index 0000000..f9b0336 --- /dev/null +++ b/src/bridge/peerSessions.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const postInterClaudeMessage: any = (() => {}) as any; diff --git a/src/bridge/src/entrypoints/sdk/controlTypes.ts b/src/bridge/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 0000000..bd1b059 --- /dev/null +++ b/src/bridge/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type StdoutMessage = any; diff --git a/src/bridge/webhookSanitizer.ts b/src/bridge/webhookSanitizer.ts new file mode 100644 index 0000000..30d33e6 --- /dev/null +++ b/src/bridge/webhookSanitizer.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const sanitizeInboundWebhookContent: any = (() => {}) as any; diff --git a/src/cli/bg.ts b/src/cli/bg.ts new file mode 100644 index 0000000..3b2ee55 --- /dev/null +++ b/src/cli/bg.ts @@ -0,0 +1,7 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const psHandler: any = (() => {}) as any; +export const logsHandler: any = (() => {}) as any; +export const attachHandler: any = (() => {}) as any; +export const killHandler: any = (() => {}) as any; +export const handleBgFlag: any = (() => {}) as any; diff --git a/src/cli/handlers/ant.ts b/src/cli/handlers/ant.ts new file mode 100644 index 0000000..c6fdee9 --- /dev/null +++ b/src/cli/handlers/ant.ts @@ -0,0 +1,11 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const logHandler: any = (() => {}) as any; +export const errorHandler: any = (() => {}) as any; +export const exportHandler: any = (() => {}) as any; +export const taskCreateHandler: any = (() => {}) as any; +export const taskListHandler: any = (() => {}) as any; +export const taskGetHandler: any = (() => {}) as any; +export const taskUpdateHandler: any = (() => {}) as any; +export const taskDirHandler: any = (() => {}) as any; +export const completionHandler: any = (() => {}) as any; diff --git a/src/cli/handlers/templateJobs.ts b/src/cli/handlers/templateJobs.ts new file mode 100644 index 0000000..261e7da --- /dev/null +++ b/src/cli/handlers/templateJobs.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const templatesMain: any = (() => {}) as any; diff --git a/src/cli/rollback.ts b/src/cli/rollback.ts new file mode 100644 index 0000000..cc15380 --- /dev/null +++ b/src/cli/rollback.ts @@ -0,0 +1,2 @@ +// Auto-generated stub +export {}; diff --git a/src/cli/src/QueryEngine.ts b/src/cli/src/QueryEngine.ts new file mode 100644 index 0000000..4771549 --- /dev/null +++ b/src/cli/src/QueryEngine.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ask = any; diff --git a/src/cli/src/cli/handlers/auth.ts b/src/cli/src/cli/handlers/auth.ts new file mode 100644 index 0000000..c420d94 --- /dev/null +++ b/src/cli/src/cli/handlers/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type installOAuthTokens = any; diff --git a/src/cli/src/cli/remoteIO.ts b/src/cli/src/cli/remoteIO.ts new file mode 100644 index 0000000..0fc9133 --- /dev/null +++ b/src/cli/src/cli/remoteIO.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type RemoteIO = any; diff --git a/src/cli/src/cli/structuredIO.ts b/src/cli/src/cli/structuredIO.ts new file mode 100644 index 0000000..00c29d6 --- /dev/null +++ b/src/cli/src/cli/structuredIO.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type StructuredIO = any; diff --git a/src/cli/src/commands/context/context-noninteractive.ts b/src/cli/src/commands/context/context-noninteractive.ts new file mode 100644 index 0000000..08e0c07 --- /dev/null +++ b/src/cli/src/commands/context/context-noninteractive.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type collectContextData = any; diff --git a/src/cli/src/entrypoints/agentSdkTypes.ts b/src/cli/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..4ac970c --- /dev/null +++ b/src/cli/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,14 @@ +// Auto-generated type stub — replace with real implementation +export type SDKStatus = any; +export type ModelInfo = any; +export type SDKMessage = any; +export type SDKUserMessage = any; +export type SDKUserMessageReplay = any; +export type PermissionResult = any; +export type McpServerConfigForProcessTransport = any; +export type McpServerStatus = any; +export type RewindFilesResult = any; +export type HookEvent = any; +export type HookInput = any; +export type HookJSONOutput = any; +export type PermissionUpdate = any; diff --git a/src/cli/src/entrypoints/sdk/controlSchemas.ts b/src/cli/src/entrypoints/sdk/controlSchemas.ts new file mode 100644 index 0000000..8867582 --- /dev/null +++ b/src/cli/src/entrypoints/sdk/controlSchemas.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SDKControlElicitationResponseSchema = any; diff --git a/src/cli/src/entrypoints/sdk/controlTypes.ts b/src/cli/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 0000000..e78800e --- /dev/null +++ b/src/cli/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,9 @@ +// Auto-generated type stub — replace with real implementation +export type StdoutMessage = any; +export type SDKControlInitializeRequest = any; +export type SDKControlInitializeResponse = any; +export type SDKControlRequest = any; +export type SDKControlResponse = any; +export type SDKControlMcpSetServersResponse = any; +export type SDKControlReloadPluginsResponse = any; +export type StdinMessage = any; diff --git a/src/cli/src/hooks/useCanUseTool.ts b/src/cli/src/hooks/useCanUseTool.ts new file mode 100644 index 0000000..056468f --- /dev/null +++ b/src/cli/src/hooks/useCanUseTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CanUseToolFn = any; diff --git a/src/cli/src/services/PromptSuggestion/promptSuggestion.ts b/src/cli/src/services/PromptSuggestion/promptSuggestion.ts new file mode 100644 index 0000000..2907074 --- /dev/null +++ b/src/cli/src/services/PromptSuggestion/promptSuggestion.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type tryGenerateSuggestion = any; +export type logSuggestionOutcome = any; +export type logSuggestionSuppressed = any; +export type PromptVariant = any; diff --git a/src/cli/src/services/analytics/growthbook.ts b/src/cli/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/cli/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/cli/src/services/analytics/index.ts b/src/cli/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/cli/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/cli/src/services/api/grove.ts b/src/cli/src/services/api/grove.ts new file mode 100644 index 0000000..5a12d8c --- /dev/null +++ b/src/cli/src/services/api/grove.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isQualifiedForGrove = any; +export type checkGroveForNonInteractive = any; diff --git a/src/cli/src/services/api/logging.ts b/src/cli/src/services/api/logging.ts new file mode 100644 index 0000000..2676d9a --- /dev/null +++ b/src/cli/src/services/api/logging.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EMPTY_USAGE = any; diff --git a/src/cli/src/services/claudeAiLimits.ts b/src/cli/src/services/claudeAiLimits.ts new file mode 100644 index 0000000..5d55387 --- /dev/null +++ b/src/cli/src/services/claudeAiLimits.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type statusListeners = any; +export type ClaudeAILimits = any; diff --git a/src/cli/src/services/mcp/auth.ts b/src/cli/src/services/mcp/auth.ts new file mode 100644 index 0000000..dd96658 --- /dev/null +++ b/src/cli/src/services/mcp/auth.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type performMCPOAuthFlow = any; +export type revokeServerTokens = any; diff --git a/src/cli/src/services/mcp/channelAllowlist.ts b/src/cli/src/services/mcp/channelAllowlist.ts new file mode 100644 index 0000000..3bae533 --- /dev/null +++ b/src/cli/src/services/mcp/channelAllowlist.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isChannelAllowlisted = any; +export type isChannelsEnabled = any; diff --git a/src/cli/src/services/mcp/channelNotification.ts b/src/cli/src/services/mcp/channelNotification.ts new file mode 100644 index 0000000..2068b3e --- /dev/null +++ b/src/cli/src/services/mcp/channelNotification.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type ChannelMessageNotificationSchema = any; +export type gateChannelServer = any; +export type wrapChannelMessage = any; +export type findChannelEntry = any; diff --git a/src/cli/src/services/mcp/client.ts b/src/cli/src/services/mcp/client.ts new file mode 100644 index 0000000..845c793 --- /dev/null +++ b/src/cli/src/services/mcp/client.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type setupSdkMcpClients = any; +export type connectToServer = any; +export type clearServerCache = any; +export type fetchToolsForClient = any; +export type areMcpConfigsEqual = any; +export type reconnectMcpServerImpl = any; diff --git a/src/cli/src/services/mcp/config.ts b/src/cli/src/services/mcp/config.ts new file mode 100644 index 0000000..edc224e --- /dev/null +++ b/src/cli/src/services/mcp/config.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type filterMcpServersByPolicy = any; +export type getMcpConfigByName = any; +export type isMcpServerDisabled = any; +export type setMcpServerEnabled = any; +export type getAllMcpConfigs = any; diff --git a/src/cli/src/services/mcp/elicitationHandler.ts b/src/cli/src/services/mcp/elicitationHandler.ts new file mode 100644 index 0000000..2b79177 --- /dev/null +++ b/src/cli/src/services/mcp/elicitationHandler.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type runElicitationHooks = any; +export type runElicitationResultHooks = any; diff --git a/src/cli/src/services/mcp/mcpStringUtils.ts b/src/cli/src/services/mcp/mcpStringUtils.ts new file mode 100644 index 0000000..9391a1b --- /dev/null +++ b/src/cli/src/services/mcp/mcpStringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getMcpPrefix = any; diff --git a/src/cli/src/services/mcp/types.ts b/src/cli/src/services/mcp/types.ts new file mode 100644 index 0000000..9e31999 --- /dev/null +++ b/src/cli/src/services/mcp/types.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type MCPServerConnection = any; +export type McpSdkServerConfig = any; +export type ScopedMcpServerConfig = any; diff --git a/src/cli/src/services/mcp/utils.ts b/src/cli/src/services/mcp/utils.ts new file mode 100644 index 0000000..d77aad0 --- /dev/null +++ b/src/cli/src/services/mcp/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type commandBelongsToServer = any; +export type filterToolsByServer = any; diff --git a/src/cli/src/services/mcp/vscodeSdkMcp.ts b/src/cli/src/services/mcp/vscodeSdkMcp.ts new file mode 100644 index 0000000..acf5f2d --- /dev/null +++ b/src/cli/src/services/mcp/vscodeSdkMcp.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setupVscodeSdkMcp = any; diff --git a/src/cli/src/services/oauth/index.ts b/src/cli/src/services/oauth/index.ts new file mode 100644 index 0000000..81adfa1 --- /dev/null +++ b/src/cli/src/services/oauth/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type OAuthService = any; diff --git a/src/cli/src/services/policyLimits/index.ts b/src/cli/src/services/policyLimits/index.ts new file mode 100644 index 0000000..887817d --- /dev/null +++ b/src/cli/src/services/policyLimits/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isPolicyAllowed = any; diff --git a/src/cli/src/services/remoteManagedSettings/index.ts b/src/cli/src/services/remoteManagedSettings/index.ts new file mode 100644 index 0000000..c062fff --- /dev/null +++ b/src/cli/src/services/remoteManagedSettings/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type waitForRemoteManagedSettingsToLoad = any; diff --git a/src/cli/src/services/settingsSync/index.ts b/src/cli/src/services/settingsSync/index.ts new file mode 100644 index 0000000..2974be7 --- /dev/null +++ b/src/cli/src/services/settingsSync/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type downloadUserSettings = any; +export type redownloadUserSettings = any; diff --git a/src/cli/src/state/AppStateStore.ts b/src/cli/src/state/AppStateStore.ts new file mode 100644 index 0000000..caf2928 --- /dev/null +++ b/src/cli/src/state/AppStateStore.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; diff --git a/src/cli/src/state/onChangeAppState.ts b/src/cli/src/state/onChangeAppState.ts new file mode 100644 index 0000000..676171d --- /dev/null +++ b/src/cli/src/state/onChangeAppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type externalMetadataToAppState = any; diff --git a/src/cli/src/tools.ts b/src/cli/src/tools.ts new file mode 100644 index 0000000..ce74ff7 --- /dev/null +++ b/src/cli/src/tools.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type assembleToolPool = any; +export type filterToolsByDenyRules = any; diff --git a/src/cli/src/utils/abortController.ts b/src/cli/src/utils/abortController.ts new file mode 100644 index 0000000..50ffcbc --- /dev/null +++ b/src/cli/src/utils/abortController.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createAbortController = any; diff --git a/src/cli/src/utils/array.ts b/src/cli/src/utils/array.ts new file mode 100644 index 0000000..6ca22d9 --- /dev/null +++ b/src/cli/src/utils/array.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type uniq = any; diff --git a/src/cli/src/utils/auth.ts b/src/cli/src/utils/auth.ts new file mode 100644 index 0000000..3322df6 --- /dev/null +++ b/src/cli/src/utils/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAccountInformation = any; diff --git a/src/cli/src/utils/autoUpdater.ts b/src/cli/src/utils/autoUpdater.ts new file mode 100644 index 0000000..5241e39 --- /dev/null +++ b/src/cli/src/utils/autoUpdater.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getLatestVersion = any; +export type InstallStatus = any; +export type installGlobalPackage = any; diff --git a/src/cli/src/utils/awsAuthStatusManager.ts b/src/cli/src/utils/awsAuthStatusManager.ts new file mode 100644 index 0000000..d0ba68c --- /dev/null +++ b/src/cli/src/utils/awsAuthStatusManager.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AwsAuthStatusManager = any; diff --git a/src/cli/src/utils/betas.ts b/src/cli/src/utils/betas.ts new file mode 100644 index 0000000..3e452b4 --- /dev/null +++ b/src/cli/src/utils/betas.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type modelSupportsAutoMode = any; diff --git a/src/cli/src/utils/cleanupRegistry.ts b/src/cli/src/utils/cleanupRegistry.ts new file mode 100644 index 0000000..4cbbdec --- /dev/null +++ b/src/cli/src/utils/cleanupRegistry.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type registerCleanup = any; diff --git a/src/cli/src/utils/combinedAbortSignal.ts b/src/cli/src/utils/combinedAbortSignal.ts new file mode 100644 index 0000000..603e78f --- /dev/null +++ b/src/cli/src/utils/combinedAbortSignal.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createCombinedAbortSignal = any; diff --git a/src/cli/src/utils/commandLifecycle.ts b/src/cli/src/utils/commandLifecycle.ts new file mode 100644 index 0000000..d2f2541 --- /dev/null +++ b/src/cli/src/utils/commandLifecycle.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type notifyCommandLifecycle = any; diff --git a/src/cli/src/utils/commitAttribution.ts b/src/cli/src/utils/commitAttribution.ts new file mode 100644 index 0000000..4ee7a47 --- /dev/null +++ b/src/cli/src/utils/commitAttribution.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type incrementPromptCount = any; diff --git a/src/cli/src/utils/completionCache.ts b/src/cli/src/utils/completionCache.ts new file mode 100644 index 0000000..1989a70 --- /dev/null +++ b/src/cli/src/utils/completionCache.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type regenerateCompletionCache = any; diff --git a/src/cli/src/utils/config.ts b/src/cli/src/utils/config.ts new file mode 100644 index 0000000..12caa8e --- /dev/null +++ b/src/cli/src/utils/config.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; +export type InstallMethod = any; +export type saveGlobalConfig = any; diff --git a/src/cli/src/utils/conversationRecovery.ts b/src/cli/src/utils/conversationRecovery.ts new file mode 100644 index 0000000..76a469d --- /dev/null +++ b/src/cli/src/utils/conversationRecovery.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type loadConversationForResume = any; +export type TurnInterruptionState = any; diff --git a/src/cli/src/utils/cwd.ts b/src/cli/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/cli/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/cli/src/utils/debug.ts b/src/cli/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/cli/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/cli/src/utils/diagLogs.ts b/src/cli/src/utils/diagLogs.ts new file mode 100644 index 0000000..35f6099 --- /dev/null +++ b/src/cli/src/utils/diagLogs.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logForDiagnosticsNoPII = any; +export type withDiagnosticsTiming = any; diff --git a/src/cli/src/utils/doctorDiagnostic.ts b/src/cli/src/utils/doctorDiagnostic.ts new file mode 100644 index 0000000..02bff9d --- /dev/null +++ b/src/cli/src/utils/doctorDiagnostic.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDoctorDiagnostic = any; diff --git a/src/cli/src/utils/effort.ts b/src/cli/src/utils/effort.ts new file mode 100644 index 0000000..323def3 --- /dev/null +++ b/src/cli/src/utils/effort.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type modelSupportsEffort = any; +export type modelSupportsMaxEffort = any; +export type EFFORT_LEVELS = any; +export type resolveAppliedEffort = any; diff --git a/src/cli/src/utils/errors.ts b/src/cli/src/utils/errors.ts new file mode 100644 index 0000000..6dd7f87 --- /dev/null +++ b/src/cli/src/utils/errors.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AbortError = any; diff --git a/src/cli/src/utils/fastMode.ts b/src/cli/src/utils/fastMode.ts new file mode 100644 index 0000000..e67ddaf --- /dev/null +++ b/src/cli/src/utils/fastMode.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type isFastModeAvailable = any; +export type isFastModeEnabled = any; +export type isFastModeSupportedByModel = any; +export type getFastModeState = any; diff --git a/src/cli/src/utils/fileHistory.ts b/src/cli/src/utils/fileHistory.ts new file mode 100644 index 0000000..d925e9f --- /dev/null +++ b/src/cli/src/utils/fileHistory.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type fileHistoryRewind = any; +export type fileHistoryCanRestore = any; +export type fileHistoryEnabled = any; +export type fileHistoryGetDiffStats = any; diff --git a/src/cli/src/utils/filePersistence/filePersistence.ts b/src/cli/src/utils/filePersistence/filePersistence.ts new file mode 100644 index 0000000..57d7cf7 --- /dev/null +++ b/src/cli/src/utils/filePersistence/filePersistence.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type executeFilePersistence = any; diff --git a/src/cli/src/utils/fileStateCache.ts b/src/cli/src/utils/fileStateCache.ts new file mode 100644 index 0000000..eca7afc --- /dev/null +++ b/src/cli/src/utils/fileStateCache.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type createFileStateCacheWithSizeLimit = any; +export type mergeFileStateCaches = any; +export type READ_FILE_STATE_CACHE_SIZE = any; diff --git a/src/cli/src/utils/forkedAgent.ts b/src/cli/src/utils/forkedAgent.ts new file mode 100644 index 0000000..fa626ee --- /dev/null +++ b/src/cli/src/utils/forkedAgent.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getLastCacheSafeParams = any; diff --git a/src/cli/src/utils/generators.ts b/src/cli/src/utils/generators.ts new file mode 100644 index 0000000..c9f2bd6 --- /dev/null +++ b/src/cli/src/utils/generators.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type fromArray = any; diff --git a/src/cli/src/utils/gracefulShutdown.ts b/src/cli/src/utils/gracefulShutdown.ts new file mode 100644 index 0000000..c7e6f98 --- /dev/null +++ b/src/cli/src/utils/gracefulShutdown.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type gracefulShutdown = any; +export type gracefulShutdownSync = any; +export type isShuttingDown = any; diff --git a/src/cli/src/utils/headlessProfiler.ts b/src/cli/src/utils/headlessProfiler.ts new file mode 100644 index 0000000..3028607 --- /dev/null +++ b/src/cli/src/utils/headlessProfiler.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type headlessProfilerStartTurn = any; +export type headlessProfilerCheckpoint = any; +export type logHeadlessProfilerTurn = any; diff --git a/src/cli/src/utils/hooks.ts b/src/cli/src/utils/hooks.ts new file mode 100644 index 0000000..28c15cf --- /dev/null +++ b/src/cli/src/utils/hooks.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type executeNotificationHooks = any; diff --git a/src/cli/src/utils/hooks/AsyncHookRegistry.ts b/src/cli/src/utils/hooks/AsyncHookRegistry.ts new file mode 100644 index 0000000..eca6e2f --- /dev/null +++ b/src/cli/src/utils/hooks/AsyncHookRegistry.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type finalizePendingAsyncHooks = any; diff --git a/src/cli/src/utils/hooks/hookEvents.ts b/src/cli/src/utils/hooks/hookEvents.ts new file mode 100644 index 0000000..88419b6 --- /dev/null +++ b/src/cli/src/utils/hooks/hookEvents.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type registerHookEventHandler = any; diff --git a/src/cli/src/utils/idleTimeout.ts b/src/cli/src/utils/idleTimeout.ts new file mode 100644 index 0000000..0b3bf81 --- /dev/null +++ b/src/cli/src/utils/idleTimeout.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createIdleTimeoutManager = any; diff --git a/src/cli/src/utils/json.ts b/src/cli/src/utils/json.ts new file mode 100644 index 0000000..d9646ab --- /dev/null +++ b/src/cli/src/utils/json.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type safeParseJSON = any; diff --git a/src/cli/src/utils/localInstaller.ts b/src/cli/src/utils/localInstaller.ts new file mode 100644 index 0000000..e519762 --- /dev/null +++ b/src/cli/src/utils/localInstaller.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type installOrUpdateClaudePackage = any; +export type localInstallationExists = any; diff --git a/src/cli/src/utils/log.ts b/src/cli/src/utils/log.ts new file mode 100644 index 0000000..989e1cd --- /dev/null +++ b/src/cli/src/utils/log.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getInMemoryErrors = any; +export type logError = any; +export type logMCPDebug = any; diff --git a/src/cli/src/utils/messageQueueManager.ts b/src/cli/src/utils/messageQueueManager.ts new file mode 100644 index 0000000..bf258e1 --- /dev/null +++ b/src/cli/src/utils/messageQueueManager.ts @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type dequeue = any; +export type dequeueAllMatching = any; +export type enqueue = any; +export type hasCommandsInQueue = any; +export type peek = any; +export type subscribeToCommandQueue = any; +export type getCommandsByMaxPriority = any; diff --git a/src/cli/src/utils/messages.ts b/src/cli/src/utils/messages.ts new file mode 100644 index 0000000..7a268a9 --- /dev/null +++ b/src/cli/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createModelSwitchBreadcrumbs = any; diff --git a/src/cli/src/utils/messages/mappers.ts b/src/cli/src/utils/messages/mappers.ts new file mode 100644 index 0000000..94ac2ac --- /dev/null +++ b/src/cli/src/utils/messages/mappers.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type toInternalMessages = any; +export type toSDKRateLimitInfo = any; diff --git a/src/cli/src/utils/model/model.ts b/src/cli/src/utils/model/model.ts new file mode 100644 index 0000000..7986ad0 --- /dev/null +++ b/src/cli/src/utils/model/model.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type getDefaultMainLoopModel = any; +export type getMainLoopModel = any; +export type modelDisplayString = any; +export type parseUserSpecifiedModel = any; diff --git a/src/cli/src/utils/model/modelOptions.ts b/src/cli/src/utils/model/modelOptions.ts new file mode 100644 index 0000000..b95242f --- /dev/null +++ b/src/cli/src/utils/model/modelOptions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModelOptions = any; diff --git a/src/cli/src/utils/model/modelStrings.ts b/src/cli/src/utils/model/modelStrings.ts new file mode 100644 index 0000000..ad029ac --- /dev/null +++ b/src/cli/src/utils/model/modelStrings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ensureModelStringsInitialized = any; diff --git a/src/cli/src/utils/model/providers.ts b/src/cli/src/utils/model/providers.ts new file mode 100644 index 0000000..df87a41 --- /dev/null +++ b/src/cli/src/utils/model/providers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAPIProvider = any; diff --git a/src/cli/src/utils/nativeInstaller/index.ts b/src/cli/src/utils/nativeInstaller/index.ts new file mode 100644 index 0000000..397e066 --- /dev/null +++ b/src/cli/src/utils/nativeInstaller/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type installLatest = any; +export type removeInstalledSymlink = any; diff --git a/src/cli/src/utils/nativeInstaller/packageManagers.ts b/src/cli/src/utils/nativeInstaller/packageManagers.ts new file mode 100644 index 0000000..e73db3d --- /dev/null +++ b/src/cli/src/utils/nativeInstaller/packageManagers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getPackageManager = any; diff --git a/src/cli/src/utils/path.ts b/src/cli/src/utils/path.ts new file mode 100644 index 0000000..a965844 --- /dev/null +++ b/src/cli/src/utils/path.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type expandPath = any; diff --git a/src/cli/src/utils/permissions/PermissionPromptToolResultSchema.ts b/src/cli/src/utils/permissions/PermissionPromptToolResultSchema.ts new file mode 100644 index 0000000..ab281b4 --- /dev/null +++ b/src/cli/src/utils/permissions/PermissionPromptToolResultSchema.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type outputSchema = any; +export type permissionPromptToolResultToPermissionDecision = any; +export type Output = any; diff --git a/src/cli/src/utils/permissions/PermissionResult.ts b/src/cli/src/utils/permissions/PermissionResult.ts new file mode 100644 index 0000000..e09cead --- /dev/null +++ b/src/cli/src/utils/permissions/PermissionResult.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionDecision = any; +export type PermissionDecisionReason = any; diff --git a/src/cli/src/utils/permissions/permissionSetup.ts b/src/cli/src/utils/permissions/permissionSetup.ts new file mode 100644 index 0000000..b669de3 --- /dev/null +++ b/src/cli/src/utils/permissions/permissionSetup.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type isAutoModeGateEnabled = any; +export type getAutoModeUnavailableNotification = any; +export type getAutoModeUnavailableReason = any; +export type isBypassPermissionsModeDisabled = any; +export type transitionPermissionMode = any; diff --git a/src/cli/src/utils/permissions/permissions.ts b/src/cli/src/utils/permissions/permissions.ts new file mode 100644 index 0000000..e8f8477 --- /dev/null +++ b/src/cli/src/utils/permissions/permissions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type hasPermissionsToUseTool = any; diff --git a/src/cli/src/utils/plugins/pluginIdentifier.ts b/src/cli/src/utils/plugins/pluginIdentifier.ts new file mode 100644 index 0000000..a6ca969 --- /dev/null +++ b/src/cli/src/utils/plugins/pluginIdentifier.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type parsePluginIdentifier = any; diff --git a/src/cli/src/utils/process.ts b/src/cli/src/utils/process.ts new file mode 100644 index 0000000..f3fc518 --- /dev/null +++ b/src/cli/src/utils/process.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type writeToStdout = any; +export type registerProcessOutputErrorHandlers = any; diff --git a/src/cli/src/utils/queryContext.ts b/src/cli/src/utils/queryContext.ts new file mode 100644 index 0000000..258dfa1 --- /dev/null +++ b/src/cli/src/utils/queryContext.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type buildSideQuestionFallbackParams = any; diff --git a/src/cli/src/utils/queryHelpers.ts b/src/cli/src/utils/queryHelpers.ts new file mode 100644 index 0000000..39a3af8 --- /dev/null +++ b/src/cli/src/utils/queryHelpers.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionPromptTool = any; +export type extractReadFilesFromMessages = any; diff --git a/src/cli/src/utils/queryProfiler.ts b/src/cli/src/utils/queryProfiler.ts new file mode 100644 index 0000000..dd554af --- /dev/null +++ b/src/cli/src/utils/queryProfiler.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type startQueryProfile = any; +export type logQueryProfileReport = any; diff --git a/src/cli/src/utils/sandbox/sandbox-adapter.ts b/src/cli/src/utils/sandbox/sandbox-adapter.ts new file mode 100644 index 0000000..edebe26 --- /dev/null +++ b/src/cli/src/utils/sandbox/sandbox-adapter.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SandboxManager = any; diff --git a/src/cli/src/utils/semver.ts b/src/cli/src/utils/semver.ts new file mode 100644 index 0000000..a786c87 --- /dev/null +++ b/src/cli/src/utils/semver.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type gte = any; diff --git a/src/cli/src/utils/sessionRestore.ts b/src/cli/src/utils/sessionRestore.ts new file mode 100644 index 0000000..8b6aebf --- /dev/null +++ b/src/cli/src/utils/sessionRestore.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type restoreAgentFromSession = any; +export type restoreSessionStateFromLog = any; diff --git a/src/cli/src/utils/sessionStart.ts b/src/cli/src/utils/sessionStart.ts new file mode 100644 index 0000000..3bd2068 --- /dev/null +++ b/src/cli/src/utils/sessionStart.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type processSessionStartHooks = any; +export type processSetupHooks = any; +export type takeInitialUserMessage = any; diff --git a/src/cli/src/utils/sessionState.ts b/src/cli/src/utils/sessionState.ts new file mode 100644 index 0000000..48d9aa3 --- /dev/null +++ b/src/cli/src/utils/sessionState.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type getSessionState = any; +export type notifySessionStateChanged = any; +export type notifySessionMetadataChanged = any; +export type setPermissionModeChangedListener = any; +export type RequiresActionDetails = any; +export type SessionExternalMetadata = any; diff --git a/src/cli/src/utils/sessionStorage.ts b/src/cli/src/utils/sessionStorage.ts new file mode 100644 index 0000000..52b0f4d --- /dev/null +++ b/src/cli/src/utils/sessionStorage.ts @@ -0,0 +1,11 @@ +// Auto-generated type stub — replace with real implementation +export type hydrateRemoteSession = any; +export type hydrateFromCCRv2InternalEvents = any; +export type resetSessionFilePointer = any; +export type doesMessageExistInSession = any; +export type findUnresolvedToolUse = any; +export type recordAttributionSnapshot = any; +export type saveAgentSetting = any; +export type saveMode = any; +export type saveAiGeneratedTitle = any; +export type restoreSessionMetadata = any; diff --git a/src/cli/src/utils/sessionTitle.ts b/src/cli/src/utils/sessionTitle.ts new file mode 100644 index 0000000..3675a28 --- /dev/null +++ b/src/cli/src/utils/sessionTitle.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type generateSessionTitle = any; diff --git a/src/cli/src/utils/sessionUrl.ts b/src/cli/src/utils/sessionUrl.ts new file mode 100644 index 0000000..a416c74 --- /dev/null +++ b/src/cli/src/utils/sessionUrl.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type parseSessionIdentifier = any; diff --git a/src/cli/src/utils/sideQuestion.ts b/src/cli/src/utils/sideQuestion.ts new file mode 100644 index 0000000..1282d13 --- /dev/null +++ b/src/cli/src/utils/sideQuestion.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type runSideQuestion = any; diff --git a/src/cli/src/utils/stream.ts b/src/cli/src/utils/stream.ts new file mode 100644 index 0000000..60b9b22 --- /dev/null +++ b/src/cli/src/utils/stream.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Stream = any; diff --git a/src/cli/src/utils/streamJsonStdoutGuard.ts b/src/cli/src/utils/streamJsonStdoutGuard.ts new file mode 100644 index 0000000..05236b5 --- /dev/null +++ b/src/cli/src/utils/streamJsonStdoutGuard.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type installStreamJsonStdoutGuard = any; diff --git a/src/cli/src/utils/streamlinedTransform.ts b/src/cli/src/utils/streamlinedTransform.ts new file mode 100644 index 0000000..439c126 --- /dev/null +++ b/src/cli/src/utils/streamlinedTransform.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createStreamlinedTransformer = any; diff --git a/src/cli/src/utils/thinking.ts b/src/cli/src/utils/thinking.ts new file mode 100644 index 0000000..451decd --- /dev/null +++ b/src/cli/src/utils/thinking.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type ThinkingConfig = any; +export type modelSupportsAdaptiveThinking = any; diff --git a/src/cli/src/utils/toolPool.ts b/src/cli/src/utils/toolPool.ts new file mode 100644 index 0000000..66c7603 --- /dev/null +++ b/src/cli/src/utils/toolPool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type mergeAndFilterTools = any; diff --git a/src/cli/src/utils/uuid.ts b/src/cli/src/utils/uuid.ts new file mode 100644 index 0000000..a95ef52 --- /dev/null +++ b/src/cli/src/utils/uuid.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type validateUuid = any; diff --git a/src/cli/src/utils/workloadContext.ts b/src/cli/src/utils/workloadContext.ts new file mode 100644 index 0000000..c80322f --- /dev/null +++ b/src/cli/src/utils/workloadContext.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type runWithWorkload = any; +export type WORKLOAD_CRON = any; diff --git a/src/cli/transports/Transport.ts b/src/cli/transports/Transport.ts new file mode 100644 index 0000000..d63bcb0 --- /dev/null +++ b/src/cli/transports/Transport.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type Transport = any; diff --git a/src/cli/transports/src/entrypoints/sdk/controlTypes.ts b/src/cli/transports/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 0000000..513ee70 --- /dev/null +++ b/src/cli/transports/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type StdoutMessage = any; +export type SDKPartialAssistantMessage = any; diff --git a/src/cli/up.ts b/src/cli/up.ts new file mode 100644 index 0000000..cc15380 --- /dev/null +++ b/src/cli/up.ts @@ -0,0 +1,2 @@ +// Auto-generated stub +export {}; diff --git a/src/commands/agents-platform/index.js b/src/commands/agents-platform/index.js new file mode 100644 index 0000000..9af11a8 --- /dev/null +++ b/src/commands/agents-platform/index.js @@ -0,0 +1 @@ +export default { name: 'agents-platform', type: 'local', isEnabled: () => false } diff --git a/src/commands/assistant/assistant.ts b/src/commands/assistant/assistant.ts new file mode 100644 index 0000000..3e6525c --- /dev/null +++ b/src/commands/assistant/assistant.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const NewInstallWizard: any = (() => {}) as any; +export const computeDefaultInstallDir: any = (() => {}) as any; diff --git a/src/commands/buddy/index.ts b/src/commands/buddy/index.ts new file mode 100644 index 0000000..85b4cbf --- /dev/null +++ b/src/commands/buddy/index.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +const _default: any = (() => {}) as any; +export default _default; diff --git a/src/commands/compact/src/bootstrap/state.ts b/src/commands/compact/src/bootstrap/state.ts new file mode 100644 index 0000000..a860c54 --- /dev/null +++ b/src/commands/compact/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type markPostCompaction = any; diff --git a/src/commands/fork/index.ts b/src/commands/fork/index.ts new file mode 100644 index 0000000..85b4cbf --- /dev/null +++ b/src/commands/fork/index.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +const _default: any = (() => {}) as any; +export default _default; diff --git a/src/commands/ide/src/services/analytics/index.ts b/src/commands/ide/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/commands/ide/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/commands/install-github-app/src/components/CustomSelect/index.ts b/src/commands/install-github-app/src/components/CustomSelect/index.ts new file mode 100644 index 0000000..d95b49c --- /dev/null +++ b/src/commands/install-github-app/src/components/CustomSelect/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Select = any; diff --git a/src/commands/install-github-app/src/services/analytics/index.ts b/src/commands/install-github-app/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/commands/install-github-app/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/commands/install-github-app/src/utils/config.ts b/src/commands/install-github-app/src/utils/config.ts new file mode 100644 index 0000000..507e64a --- /dev/null +++ b/src/commands/install-github-app/src/utils/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type saveGlobalConfig = any; diff --git a/src/commands/install-github-app/types.ts b/src/commands/install-github-app/types.ts new file mode 100644 index 0000000..8caa156 --- /dev/null +++ b/src/commands/install-github-app/types.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export type Workflow = any; +export type State = any; +export type Warning = any; diff --git a/src/commands/peers/index.ts b/src/commands/peers/index.ts new file mode 100644 index 0000000..85b4cbf --- /dev/null +++ b/src/commands/peers/index.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +const _default: any = (() => {}) as any; +export default _default; diff --git a/src/commands/plugin/src/services/analytics/index.ts b/src/commands/plugin/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/commands/plugin/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/commands/plugin/types.ts b/src/commands/plugin/types.ts new file mode 100644 index 0000000..436f786 --- /dev/null +++ b/src/commands/plugin/types.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type ViewState = any; +export type PluginSettingsProps = any; diff --git a/src/commands/plugin/unifiedTypes.ts b/src/commands/plugin/unifiedTypes.ts new file mode 100644 index 0000000..7100863 --- /dev/null +++ b/src/commands/plugin/unifiedTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type UnifiedInstalledItem = any; diff --git a/src/commands/reset-limits/index.ts b/src/commands/reset-limits/index.ts new file mode 100644 index 0000000..8122d9a --- /dev/null +++ b/src/commands/reset-limits/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type resetLimits = any; +export type resetLimitsNonInteractive = any; diff --git a/src/commands/src/commands.ts b/src/commands/src/commands.ts new file mode 100644 index 0000000..8552dd2 --- /dev/null +++ b/src/commands/src/commands.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CommandResultDisplay = any; diff --git a/src/commands/src/services/analytics/index.ts b/src/commands/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/commands/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/commands/terminalSetup/src/utils/theme.ts b/src/commands/terminalSetup/src/utils/theme.ts new file mode 100644 index 0000000..62c7ea8 --- /dev/null +++ b/src/commands/terminalSetup/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ThemeName = any; diff --git a/src/commands/workflows/index.ts b/src/commands/workflows/index.ts new file mode 100644 index 0000000..85b4cbf --- /dev/null +++ b/src/commands/workflows/index.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +const _default: any = (() => {}) as any; +export default _default; diff --git a/src/components/FeedbackSurvey/src/hooks/useDynamicConfig.ts b/src/components/FeedbackSurvey/src/hooks/useDynamicConfig.ts new file mode 100644 index 0000000..5657e84 --- /dev/null +++ b/src/components/FeedbackSurvey/src/hooks/useDynamicConfig.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useDynamicConfig = any; diff --git a/src/components/FeedbackSurvey/src/services/analytics/config.ts b/src/components/FeedbackSurvey/src/services/analytics/config.ts new file mode 100644 index 0000000..5ce8a06 --- /dev/null +++ b/src/components/FeedbackSurvey/src/services/analytics/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isFeedbackSurveyDisabled = any; diff --git a/src/components/FeedbackSurvey/src/services/analytics/growthbook.ts b/src/components/FeedbackSurvey/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..1df9f09 --- /dev/null +++ b/src/components/FeedbackSurvey/src/services/analytics/growthbook.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; +export type checkStatsigFeatureGate_CACHED_MAY_BE_STALE = any; diff --git a/src/components/FeedbackSurvey/src/services/analytics/index.ts b/src/components/FeedbackSurvey/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/FeedbackSurvey/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/FeedbackSurvey/useFrustrationDetection.ts b/src/components/FeedbackSurvey/useFrustrationDetection.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/components/FeedbackSurvey/useFrustrationDetection.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/components/FeedbackSurvey/utils.ts b/src/components/FeedbackSurvey/utils.ts new file mode 100644 index 0000000..bce6606 --- /dev/null +++ b/src/components/FeedbackSurvey/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type FeedbackSurveyResponse = any; +export type FeedbackSurveyType = any; diff --git a/src/components/HelpV2/src/hooks/useExitOnCtrlCDWithKeybindings.ts b/src/components/HelpV2/src/hooks/useExitOnCtrlCDWithKeybindings.ts new file mode 100644 index 0000000..38810d6 --- /dev/null +++ b/src/components/HelpV2/src/hooks/useExitOnCtrlCDWithKeybindings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useExitOnCtrlCDWithKeybindings = any; diff --git a/src/components/HelpV2/src/keybindings/useShortcutDisplay.ts b/src/components/HelpV2/src/keybindings/useShortcutDisplay.ts new file mode 100644 index 0000000..351fb3f --- /dev/null +++ b/src/components/HelpV2/src/keybindings/useShortcutDisplay.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useShortcutDisplay = any; diff --git a/src/components/LogoV2/src/ink.ts b/src/components/LogoV2/src/ink.ts new file mode 100644 index 0000000..d373e1b --- /dev/null +++ b/src/components/LogoV2/src/ink.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type Box = any; +export type Text = any; +export type useTheme = any; diff --git a/src/components/LogoV2/src/services/analytics/growthbook.ts b/src/components/LogoV2/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..7e9a775 --- /dev/null +++ b/src/components/LogoV2/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDynamicConfig_CACHED_MAY_BE_STALE = any; diff --git a/src/components/LogoV2/src/services/api/dumpPrompts.ts b/src/components/LogoV2/src/services/api/dumpPrompts.ts new file mode 100644 index 0000000..bba0c3d --- /dev/null +++ b/src/components/LogoV2/src/services/api/dumpPrompts.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDumpPromptsPath = any; diff --git a/src/components/LogoV2/src/utils/config.ts b/src/components/LogoV2/src/utils/config.ts new file mode 100644 index 0000000..7cf15de --- /dev/null +++ b/src/components/LogoV2/src/utils/config.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; +export type saveGlobalConfig = any; diff --git a/src/components/LogoV2/src/utils/debug.ts b/src/components/LogoV2/src/utils/debug.ts new file mode 100644 index 0000000..75bad1b --- /dev/null +++ b/src/components/LogoV2/src/utils/debug.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type isDebugMode = any; +export type isDebugToStdErr = any; +export type getDebugLogPath = any; diff --git a/src/components/LogoV2/src/utils/envUtils.ts b/src/components/LogoV2/src/utils/envUtils.ts new file mode 100644 index 0000000..deb3490 --- /dev/null +++ b/src/components/LogoV2/src/utils/envUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isEnvTruthy = any; diff --git a/src/components/LogoV2/src/utils/sandbox/sandbox-adapter.ts b/src/components/LogoV2/src/utils/sandbox/sandbox-adapter.ts new file mode 100644 index 0000000..edebe26 --- /dev/null +++ b/src/components/LogoV2/src/utils/sandbox/sandbox-adapter.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SandboxManager = any; diff --git a/src/components/LogoV2/src/utils/settings/settings.ts b/src/components/LogoV2/src/utils/settings/settings.ts new file mode 100644 index 0000000..7765101 --- /dev/null +++ b/src/components/LogoV2/src/utils/settings/settings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getInitialSettings = any; diff --git a/src/components/LogoV2/src/utils/startupProfiler.ts b/src/components/LogoV2/src/utils/startupProfiler.ts new file mode 100644 index 0000000..16c5c6e --- /dev/null +++ b/src/components/LogoV2/src/utils/startupProfiler.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getStartupPerfLogPath = any; +export type isDetailedProfilingEnabled = any; diff --git a/src/components/LogoV2/src/utils/systemTheme.ts b/src/components/LogoV2/src/utils/systemTheme.ts new file mode 100644 index 0000000..c698690 --- /dev/null +++ b/src/components/LogoV2/src/utils/systemTheme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type resolveThemeSetting = any; diff --git a/src/components/PromptInput/src/context/notifications.ts b/src/components/PromptInput/src/context/notifications.ts new file mode 100644 index 0000000..8db063f --- /dev/null +++ b/src/components/PromptInput/src/context/notifications.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Notification = any; +export type useNotifications = any; diff --git a/src/components/PromptInput/src/history.ts b/src/components/PromptInput/src/history.ts new file mode 100644 index 0000000..626e5c1 --- /dev/null +++ b/src/components/PromptInput/src/history.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getPastedTextRefNumLines = any; diff --git a/src/components/PromptInput/src/hooks/useArrowKeyHistory.ts b/src/components/PromptInput/src/hooks/useArrowKeyHistory.ts new file mode 100644 index 0000000..943c740 --- /dev/null +++ b/src/components/PromptInput/src/hooks/useArrowKeyHistory.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HistoryMode = any; diff --git a/src/components/PromptInput/src/hooks/useCommandQueue.ts b/src/components/PromptInput/src/hooks/useCommandQueue.ts new file mode 100644 index 0000000..ef6e2c8 --- /dev/null +++ b/src/components/PromptInput/src/hooks/useCommandQueue.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useCommandQueue = any; diff --git a/src/components/PromptInput/src/hooks/useIdeAtMentioned.ts b/src/components/PromptInput/src/hooks/useIdeAtMentioned.ts new file mode 100644 index 0000000..c0d005f --- /dev/null +++ b/src/components/PromptInput/src/hooks/useIdeAtMentioned.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type IDEAtMentioned = any; +export type useIdeAtMentioned = any; diff --git a/src/components/PromptInput/src/ink.ts b/src/components/PromptInput/src/ink.ts new file mode 100644 index 0000000..51d6eb4 --- /dev/null +++ b/src/components/PromptInput/src/ink.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Box = any; +export type Text = any; diff --git a/src/components/PromptInput/src/services/analytics/index.ts b/src/components/PromptInput/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/components/PromptInput/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/components/PromptInput/src/state/AppState.ts b/src/components/PromptInput/src/state/AppState.ts new file mode 100644 index 0000000..46a69cf --- /dev/null +++ b/src/components/PromptInput/src/state/AppState.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useAppStateStore = any; +export type AppState = any; +export type useSetAppState = any; diff --git a/src/components/PromptInput/src/state/AppStateStore.ts b/src/components/PromptInput/src/state/AppStateStore.ts new file mode 100644 index 0000000..f271114 --- /dev/null +++ b/src/components/PromptInput/src/state/AppStateStore.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FooterItem = any; diff --git a/src/components/PromptInput/src/tools/AgentTool/agentColorManager.ts b/src/components/PromptInput/src/tools/AgentTool/agentColorManager.ts new file mode 100644 index 0000000..e2c6f57 --- /dev/null +++ b/src/components/PromptInput/src/tools/AgentTool/agentColorManager.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type AGENT_COLOR_TO_THEME_COLOR = any; +export type AGENT_COLORS = any; +export type AgentColorName = any; diff --git a/src/components/PromptInput/src/types/textInputTypes.ts b/src/components/PromptInput/src/types/textInputTypes.ts new file mode 100644 index 0000000..a289d07 --- /dev/null +++ b/src/components/PromptInput/src/types/textInputTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PromptInputMode = any; diff --git a/src/components/PromptInput/src/utils/config.ts b/src/components/PromptInput/src/utils/config.ts new file mode 100644 index 0000000..7e54174 --- /dev/null +++ b/src/components/PromptInput/src/utils/config.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; +export type PastedContent = any; diff --git a/src/components/PromptInput/src/utils/cwd.ts b/src/components/PromptInput/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/components/PromptInput/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/components/PromptInput/src/utils/exampleCommands.ts b/src/components/PromptInput/src/utils/exampleCommands.ts new file mode 100644 index 0000000..c6ce8c5 --- /dev/null +++ b/src/components/PromptInput/src/utils/exampleCommands.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getExampleCommandFromCache = any; diff --git a/src/components/PromptInput/src/utils/messageQueueManager.ts b/src/components/PromptInput/src/utils/messageQueueManager.ts new file mode 100644 index 0000000..a08a468 --- /dev/null +++ b/src/components/PromptInput/src/utils/messageQueueManager.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isQueuedCommandEditable = any; +export type popAllEditable = any; diff --git a/src/components/PromptInput/src/utils/platform.ts b/src/components/PromptInput/src/utils/platform.ts new file mode 100644 index 0000000..b6686f8 --- /dev/null +++ b/src/components/PromptInput/src/utils/platform.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getPlatform = any; diff --git a/src/components/PromptInput/src/utils/teammate.ts b/src/components/PromptInput/src/utils/teammate.ts new file mode 100644 index 0000000..fb30f21 --- /dev/null +++ b/src/components/PromptInput/src/utils/teammate.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getTeammateColor = any; diff --git a/src/components/PromptInput/src/utils/theme.ts b/src/components/PromptInput/src/utils/theme.ts new file mode 100644 index 0000000..c6999a6 --- /dev/null +++ b/src/components/PromptInput/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Theme = any; diff --git a/src/components/Settings/src/commands/extra-usage/index.ts b/src/components/Settings/src/commands/extra-usage/index.ts new file mode 100644 index 0000000..981d9a5 --- /dev/null +++ b/src/components/Settings/src/commands/extra-usage/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extraUsage = any; diff --git a/src/components/Settings/src/constants/outputStyles.ts b/src/components/Settings/src/constants/outputStyles.ts new file mode 100644 index 0000000..42c1edb --- /dev/null +++ b/src/components/Settings/src/constants/outputStyles.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type DEFAULT_OUTPUT_STYLE_NAME = any; diff --git a/src/components/Settings/src/cost-tracker.ts b/src/components/Settings/src/cost-tracker.ts new file mode 100644 index 0000000..135cea9 --- /dev/null +++ b/src/components/Settings/src/cost-tracker.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type formatCost = any; diff --git a/src/components/Settings/src/services/analytics/index.ts b/src/components/Settings/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/components/Settings/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/components/Settings/src/utils/auth.ts b/src/components/Settings/src/utils/auth.ts new file mode 100644 index 0000000..d7b41ce --- /dev/null +++ b/src/components/Settings/src/utils/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getSubscriptionType = any; diff --git a/src/components/Settings/src/utils/claudemd.ts b/src/components/Settings/src/utils/claudemd.ts new file mode 100644 index 0000000..1ebadee --- /dev/null +++ b/src/components/Settings/src/utils/claudemd.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getExternalClaudeMdIncludes = any; +export type getMemoryFiles = any; +export type hasExternalClaudeMdIncludes = any; diff --git a/src/components/Settings/src/utils/envUtils.ts b/src/components/Settings/src/utils/envUtils.ts new file mode 100644 index 0000000..04dde77 --- /dev/null +++ b/src/components/Settings/src/utils/envUtils.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isEnvTruthy = any; +export type isRunningOnHomespace = any; diff --git a/src/components/Spinner/types.ts b/src/components/Spinner/types.ts new file mode 100644 index 0000000..78a11f3 --- /dev/null +++ b/src/components/Spinner/types.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type SpinnerMode = any; +export type RGBColor = any; diff --git a/src/components/StructuredDiff/src/utils/theme.ts b/src/components/StructuredDiff/src/utils/theme.ts new file mode 100644 index 0000000..62c7ea8 --- /dev/null +++ b/src/components/StructuredDiff/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ThemeName = any; diff --git a/src/components/TrustDialog/src/services/analytics/index.ts b/src/components/TrustDialog/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/components/TrustDialog/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/components/TrustDialog/src/utils/permissions/PermissionRule.ts b/src/components/TrustDialog/src/utils/permissions/PermissionRule.ts new file mode 100644 index 0000000..349593a --- /dev/null +++ b/src/components/TrustDialog/src/utils/permissions/PermissionRule.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionRule = any; diff --git a/src/components/TrustDialog/src/utils/settings/settings.ts b/src/components/TrustDialog/src/utils/settings/settings.ts new file mode 100644 index 0000000..76099c0 --- /dev/null +++ b/src/components/TrustDialog/src/utils/settings/settings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getSettingsForSource = any; diff --git a/src/components/TrustDialog/src/utils/settings/types.ts b/src/components/TrustDialog/src/utils/settings/types.ts new file mode 100644 index 0000000..2e9d327 --- /dev/null +++ b/src/components/TrustDialog/src/utils/settings/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SettingsJson = any; diff --git a/src/components/agents/SnapshotUpdateDialog.ts b/src/components/agents/SnapshotUpdateDialog.ts new file mode 100644 index 0000000..9fdc7f4 --- /dev/null +++ b/src/components/agents/SnapshotUpdateDialog.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const SnapshotUpdateDialog: any = (() => {}) as any; +export const buildMergePrompt: any = (() => {}) as any; 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 0000000..a592768 --- /dev/null +++ b/src/components/agents/new-agent-creation/types.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type AgentWizardData = any; diff --git a/src/components/agents/new-agent-creation/wizard-steps/src/services/analytics/index.ts b/src/components/agents/new-agent-creation/wizard-steps/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/agents/new-agent-creation/wizard-steps/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/agents/new-agent-creation/wizard-steps/src/state/AppState.ts b/src/components/agents/new-agent-creation/wizard-steps/src/state/AppState.ts new file mode 100644 index 0000000..93788b8 --- /dev/null +++ b/src/components/agents/new-agent-creation/wizard-steps/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useSetAppState = any; diff --git a/src/components/agents/src/Tool.ts b/src/components/agents/src/Tool.ts new file mode 100644 index 0000000..03b2b7e --- /dev/null +++ b/src/components/agents/src/Tool.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type Tool = any; +export type Tools = any; +export type getEmptyToolPermissionContext = any; diff --git a/src/components/agents/src/context.ts b/src/components/agents/src/context.ts new file mode 100644 index 0000000..3ce849c --- /dev/null +++ b/src/components/agents/src/context.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getUserContext = any; diff --git a/src/components/agents/src/services/api/claude.ts b/src/components/agents/src/services/api/claude.ts new file mode 100644 index 0000000..b02c142 --- /dev/null +++ b/src/components/agents/src/services/api/claude.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type queryModelWithoutStreaming = any; diff --git a/src/components/agents/src/services/mcp/mcpStringUtils.ts b/src/components/agents/src/services/mcp/mcpStringUtils.ts new file mode 100644 index 0000000..6813ff1 --- /dev/null +++ b/src/components/agents/src/services/mcp/mcpStringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type mcpInfoFromString = any; diff --git a/src/components/agents/src/services/mcp/utils.ts b/src/components/agents/src/services/mcp/utils.ts new file mode 100644 index 0000000..3bd1bb3 --- /dev/null +++ b/src/components/agents/src/services/mcp/utils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isMcpTool = any; diff --git a/src/components/agents/src/state/AppState.ts b/src/components/agents/src/state/AppState.ts new file mode 100644 index 0000000..93788b8 --- /dev/null +++ b/src/components/agents/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useSetAppState = any; diff --git a/src/components/agents/src/tools/AgentTool/agentToolUtils.ts b/src/components/agents/src/tools/AgentTool/agentToolUtils.ts new file mode 100644 index 0000000..1a95f5b --- /dev/null +++ b/src/components/agents/src/tools/AgentTool/agentToolUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type filterToolsForAgent = any; diff --git a/src/components/agents/src/tools/AgentTool/constants.ts b/src/components/agents/src/tools/AgentTool/constants.ts new file mode 100644 index 0000000..c5969e5 --- /dev/null +++ b/src/components/agents/src/tools/AgentTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AGENT_TOOL_NAME = any; diff --git a/src/components/agents/src/tools/BashTool/BashTool.ts b/src/components/agents/src/tools/BashTool/BashTool.ts new file mode 100644 index 0000000..7a3ea3c --- /dev/null +++ b/src/components/agents/src/tools/BashTool/BashTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BashTool = any; diff --git a/src/components/agents/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts b/src/components/agents/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts new file mode 100644 index 0000000..f9708d2 --- /dev/null +++ b/src/components/agents/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ExitPlanModeV2Tool = any; diff --git a/src/components/agents/src/tools/FileEditTool/FileEditTool.ts b/src/components/agents/src/tools/FileEditTool/FileEditTool.ts new file mode 100644 index 0000000..0d3bc60 --- /dev/null +++ b/src/components/agents/src/tools/FileEditTool/FileEditTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditTool = any; diff --git a/src/components/agents/src/tools/FileReadTool/FileReadTool.ts b/src/components/agents/src/tools/FileReadTool/FileReadTool.ts new file mode 100644 index 0000000..b9ca41b --- /dev/null +++ b/src/components/agents/src/tools/FileReadTool/FileReadTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileReadTool = any; diff --git a/src/components/agents/src/tools/FileWriteTool/FileWriteTool.ts b/src/components/agents/src/tools/FileWriteTool/FileWriteTool.ts new file mode 100644 index 0000000..9417a7a --- /dev/null +++ b/src/components/agents/src/tools/FileWriteTool/FileWriteTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileWriteTool = any; diff --git a/src/components/agents/src/tools/GlobTool/GlobTool.ts b/src/components/agents/src/tools/GlobTool/GlobTool.ts new file mode 100644 index 0000000..a411d3d --- /dev/null +++ b/src/components/agents/src/tools/GlobTool/GlobTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GlobTool = any; diff --git a/src/components/agents/src/tools/GrepTool/GrepTool.ts b/src/components/agents/src/tools/GrepTool/GrepTool.ts new file mode 100644 index 0000000..0ed0736 --- /dev/null +++ b/src/components/agents/src/tools/GrepTool/GrepTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GrepTool = any; diff --git a/src/components/agents/src/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts b/src/components/agents/src/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts new file mode 100644 index 0000000..17b103d --- /dev/null +++ b/src/components/agents/src/tools/ListMcpResourcesTool/ListMcpResourcesTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ListMcpResourcesTool = any; diff --git a/src/components/agents/src/tools/NotebookEditTool/NotebookEditTool.ts b/src/components/agents/src/tools/NotebookEditTool/NotebookEditTool.ts new file mode 100644 index 0000000..9ebe8c2 --- /dev/null +++ b/src/components/agents/src/tools/NotebookEditTool/NotebookEditTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type NotebookEditTool = any; diff --git a/src/components/agents/src/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts b/src/components/agents/src/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts new file mode 100644 index 0000000..bee0f9b --- /dev/null +++ b/src/components/agents/src/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ReadMcpResourceTool = any; diff --git a/src/components/agents/src/tools/TaskOutputTool/TaskOutputTool.ts b/src/components/agents/src/tools/TaskOutputTool/TaskOutputTool.ts new file mode 100644 index 0000000..f77e9db --- /dev/null +++ b/src/components/agents/src/tools/TaskOutputTool/TaskOutputTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TaskOutputTool = any; diff --git a/src/components/agents/src/tools/TaskStopTool/TaskStopTool.ts b/src/components/agents/src/tools/TaskStopTool/TaskStopTool.ts new file mode 100644 index 0000000..0a069d4 --- /dev/null +++ b/src/components/agents/src/tools/TaskStopTool/TaskStopTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TaskStopTool = any; diff --git a/src/components/agents/src/tools/TodoWriteTool/TodoWriteTool.ts b/src/components/agents/src/tools/TodoWriteTool/TodoWriteTool.ts new file mode 100644 index 0000000..ce5e439 --- /dev/null +++ b/src/components/agents/src/tools/TodoWriteTool/TodoWriteTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TodoWriteTool = any; diff --git a/src/components/agents/src/tools/TungstenTool/TungstenTool.ts b/src/components/agents/src/tools/TungstenTool/TungstenTool.ts new file mode 100644 index 0000000..e86bbfb --- /dev/null +++ b/src/components/agents/src/tools/TungstenTool/TungstenTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TungstenTool = any; diff --git a/src/components/agents/src/tools/WebFetchTool/WebFetchTool.ts b/src/components/agents/src/tools/WebFetchTool/WebFetchTool.ts new file mode 100644 index 0000000..97d4995 --- /dev/null +++ b/src/components/agents/src/tools/WebFetchTool/WebFetchTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WebFetchTool = any; diff --git a/src/components/agents/src/tools/WebSearchTool/WebSearchTool.ts b/src/components/agents/src/tools/WebSearchTool/WebSearchTool.ts new file mode 100644 index 0000000..6063453 --- /dev/null +++ b/src/components/agents/src/tools/WebSearchTool/WebSearchTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WebSearchTool = any; diff --git a/src/components/agents/src/utils/api.ts b/src/components/agents/src/utils/api.ts new file mode 100644 index 0000000..d5a1bbc --- /dev/null +++ b/src/components/agents/src/utils/api.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type prependUserContext = any; diff --git a/src/components/agents/src/utils/messages.ts b/src/components/agents/src/utils/messages.ts new file mode 100644 index 0000000..4c11a77 --- /dev/null +++ b/src/components/agents/src/utils/messages.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type createUserMessage = any; +export type normalizeMessagesForAPI = any; diff --git a/src/components/agents/src/utils/model/model.ts b/src/components/agents/src/utils/model/model.ts new file mode 100644 index 0000000..abf3bce --- /dev/null +++ b/src/components/agents/src/utils/model/model.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ModelName = any; diff --git a/src/components/agents/src/utils/settings/constants.ts b/src/components/agents/src/utils/settings/constants.ts new file mode 100644 index 0000000..48b2b5a --- /dev/null +++ b/src/components/agents/src/utils/settings/constants.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type SettingSource = any; +export type getSettingSourceName = any; diff --git a/src/components/agents/src/utils/settings/managedPath.ts b/src/components/agents/src/utils/settings/managedPath.ts new file mode 100644 index 0000000..1214f26 --- /dev/null +++ b/src/components/agents/src/utils/settings/managedPath.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getManagedFilePath = any; diff --git a/src/components/grove/src/services/analytics/index.ts b/src/components/grove/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/grove/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/hooks/src/entrypoints/agentSdkTypes.ts b/src/components/hooks/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..2ad98a3 --- /dev/null +++ b/src/components/hooks/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; diff --git a/src/components/hooks/src/state/AppState.ts b/src/components/hooks/src/state/AppState.ts new file mode 100644 index 0000000..cbb9746 --- /dev/null +++ b/src/components/hooks/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useAppStateStore = any; diff --git a/src/components/hooks/src/utils/hooks/hooksConfigManager.ts b/src/components/hooks/src/utils/hooks/hooksConfigManager.ts new file mode 100644 index 0000000..33a2e63 --- /dev/null +++ b/src/components/hooks/src/utils/hooks/hooksConfigManager.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HookEventMetadata = any; diff --git a/src/components/mcp/src/services/analytics/index.ts b/src/components/mcp/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/mcp/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/mcp/src/services/mcp/config.ts b/src/components/mcp/src/services/mcp/config.ts new file mode 100644 index 0000000..05cc41c --- /dev/null +++ b/src/components/mcp/src/services/mcp/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getMcpConfigsByScope = any; diff --git a/src/components/mcp/src/services/mcp/types.ts b/src/components/mcp/src/services/mcp/types.ts new file mode 100644 index 0000000..f604edd --- /dev/null +++ b/src/components/mcp/src/services/mcp/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ConfigScope = any; diff --git a/src/components/mcp/src/services/mcp/utils.ts b/src/components/mcp/src/services/mcp/utils.ts new file mode 100644 index 0000000..e6cf8a7 --- /dev/null +++ b/src/components/mcp/src/services/mcp/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type describeMcpConfigFilePath = any; +export type getScopeLabel = any; diff --git a/src/components/mcp/src/utils/settings/validation.ts b/src/components/mcp/src/utils/settings/validation.ts new file mode 100644 index 0000000..6ed579a --- /dev/null +++ b/src/components/mcp/src/utils/settings/validation.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ValidationError = any; diff --git a/src/components/mcp/types.ts b/src/components/mcp/types.ts new file mode 100644 index 0000000..cd22d6b --- /dev/null +++ b/src/components/mcp/types.ts @@ -0,0 +1,8 @@ +// Auto-generated stub — replace with real implementation +export type ServerInfo = any; +export type AgentMcpServerInfo = any; +export type MCPViewState = any; +export type StdioServerInfo = any; +export type ClaudeAIServerInfo = any; +export type HTTPServerInfo = any; +export type SSEServerInfo = any; diff --git a/src/components/messages/SnipBoundaryMessage.ts b/src/components/messages/SnipBoundaryMessage.ts new file mode 100644 index 0000000..3b94518 --- /dev/null +++ b/src/components/messages/SnipBoundaryMessage.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const SnipBoundaryMessage: any = (() => {}) as any; diff --git a/src/components/messages/UserCrossSessionMessage.ts b/src/components/messages/UserCrossSessionMessage.ts new file mode 100644 index 0000000..21b438e --- /dev/null +++ b/src/components/messages/UserCrossSessionMessage.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const UserCrossSessionMessage: any = (() => {}) as any; diff --git a/src/components/messages/UserForkBoilerplateMessage.ts b/src/components/messages/UserForkBoilerplateMessage.ts new file mode 100644 index 0000000..df6fead --- /dev/null +++ b/src/components/messages/UserForkBoilerplateMessage.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const UserForkBoilerplateMessage: any = (() => {}) as any; diff --git a/src/components/messages/UserGitHubWebhookMessage.ts b/src/components/messages/UserGitHubWebhookMessage.ts new file mode 100644 index 0000000..4689a5e --- /dev/null +++ b/src/components/messages/UserGitHubWebhookMessage.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const UserGitHubWebhookMessage: any = (() => {}) as any; diff --git a/src/components/messages/UserToolResultMessage/src/components/InterruptedByUser.ts b/src/components/messages/UserToolResultMessage/src/components/InterruptedByUser.ts new file mode 100644 index 0000000..b98ac19 --- /dev/null +++ b/src/components/messages/UserToolResultMessage/src/components/InterruptedByUser.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type InterruptedByUser = any; diff --git a/src/components/messages/UserToolResultMessage/src/components/Markdown.ts b/src/components/messages/UserToolResultMessage/src/components/Markdown.ts new file mode 100644 index 0000000..44bbabf --- /dev/null +++ b/src/components/messages/UserToolResultMessage/src/components/Markdown.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Markdown = any; diff --git a/src/components/messages/UserToolResultMessage/src/components/MessageResponse.ts b/src/components/messages/UserToolResultMessage/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/components/messages/UserToolResultMessage/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/components/messages/UserToolResultMessage/src/components/SentryErrorBoundary.ts b/src/components/messages/UserToolResultMessage/src/components/SentryErrorBoundary.ts new file mode 100644 index 0000000..6c2e95b --- /dev/null +++ b/src/components/messages/UserToolResultMessage/src/components/SentryErrorBoundary.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SentryErrorBoundary = any; diff --git a/src/components/messages/src/commands/extra-usage/index.ts b/src/components/messages/src/commands/extra-usage/index.ts new file mode 100644 index 0000000..981d9a5 --- /dev/null +++ b/src/components/messages/src/commands/extra-usage/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extraUsage = any; diff --git a/src/components/messages/src/entrypoints/agentSdkTypes.ts b/src/components/messages/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..2ad98a3 --- /dev/null +++ b/src/components/messages/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; diff --git a/src/components/messages/src/hooks/useTerminalSize.ts b/src/components/messages/src/hooks/useTerminalSize.ts new file mode 100644 index 0000000..4a0ef3e --- /dev/null +++ b/src/components/messages/src/hooks/useTerminalSize.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useTerminalSize = any; diff --git a/src/components/messages/src/ink.ts b/src/components/messages/src/ink.ts new file mode 100644 index 0000000..51d6eb4 --- /dev/null +++ b/src/components/messages/src/ink.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Box = any; +export type Text = any; diff --git a/src/components/messages/src/services/api/errorUtils.ts b/src/components/messages/src/services/api/errorUtils.ts new file mode 100644 index 0000000..b931a01 --- /dev/null +++ b/src/components/messages/src/services/api/errorUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type formatAPIError = any; diff --git a/src/components/messages/src/services/claudeAiLimitsHook.ts b/src/components/messages/src/services/claudeAiLimitsHook.ts new file mode 100644 index 0000000..6178529 --- /dev/null +++ b/src/components/messages/src/services/claudeAiLimitsHook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useClaudeAiLimits = any; diff --git a/src/components/messages/src/services/compact/compact.ts b/src/components/messages/src/services/compact/compact.ts new file mode 100644 index 0000000..628b299 --- /dev/null +++ b/src/components/messages/src/services/compact/compact.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ERROR_MESSAGE_USER_ABORT = any; diff --git a/src/components/messages/src/services/rateLimitMessages.ts b/src/components/messages/src/services/rateLimitMessages.ts new file mode 100644 index 0000000..3bad4ec --- /dev/null +++ b/src/components/messages/src/services/rateLimitMessages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isRateLimitErrorMessage = any; diff --git a/src/components/messages/src/services/rateLimitMocking.ts b/src/components/messages/src/services/rateLimitMocking.ts new file mode 100644 index 0000000..dcb1004 --- /dev/null +++ b/src/components/messages/src/services/rateLimitMocking.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type shouldProcessMockLimits = any; diff --git a/src/components/messages/src/types/message.ts b/src/components/messages/src/types/message.ts new file mode 100644 index 0000000..0e8a935 --- /dev/null +++ b/src/components/messages/src/types/message.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SystemAPIErrorMessage = any; diff --git a/src/components/messages/src/utils/attachments.ts b/src/components/messages/src/utils/attachments.ts new file mode 100644 index 0000000..69d3cea --- /dev/null +++ b/src/components/messages/src/utils/attachments.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Attachment = any; diff --git a/src/components/messages/src/utils/auth.ts b/src/components/messages/src/utils/auth.ts new file mode 100644 index 0000000..4a25a2f --- /dev/null +++ b/src/components/messages/src/utils/auth.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getRateLimitTier = any; +export type getSubscriptionType = any; +export type isClaudeAISubscriber = any; diff --git a/src/components/messages/src/utils/billing.ts b/src/components/messages/src/utils/billing.ts new file mode 100644 index 0000000..fd3cae2 --- /dev/null +++ b/src/components/messages/src/utils/billing.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type hasClaudeAiBillingAccess = any; diff --git a/src/components/messages/src/utils/file.ts b/src/components/messages/src/utils/file.ts new file mode 100644 index 0000000..74475b4 --- /dev/null +++ b/src/components/messages/src/utils/file.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDisplayPath = any; diff --git a/src/components/messages/src/utils/format.ts b/src/components/messages/src/utils/format.ts new file mode 100644 index 0000000..0fcc3e5 --- /dev/null +++ b/src/components/messages/src/utils/format.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type formatFileSize = any; diff --git a/src/components/messages/src/utils/messages.ts b/src/components/messages/src/utils/messages.ts new file mode 100644 index 0000000..f552071 --- /dev/null +++ b/src/components/messages/src/utils/messages.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type buildMessageLookups = any; +export type getContentText = any; diff --git a/src/components/messages/src/utils/theme.ts b/src/components/messages/src/utils/theme.ts new file mode 100644 index 0000000..6c2dc45 --- /dev/null +++ b/src/components/messages/src/utils/theme.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type ThemeName = any; +export type Theme = any; diff --git a/src/components/permissions/ExitPlanModePermissionRequest/src/context/notifications.ts b/src/components/permissions/ExitPlanModePermissionRequest/src/context/notifications.ts new file mode 100644 index 0000000..82956e6 --- /dev/null +++ b/src/components/permissions/ExitPlanModePermissionRequest/src/context/notifications.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useNotifications = any; diff --git a/src/components/permissions/ExitPlanModePermissionRequest/src/services/analytics/index.ts b/src/components/permissions/ExitPlanModePermissionRequest/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/permissions/ExitPlanModePermissionRequest/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/permissions/ExitPlanModePermissionRequest/src/state/AppState.ts b/src/components/permissions/ExitPlanModePermissionRequest/src/state/AppState.ts new file mode 100644 index 0000000..f1e2aa6 --- /dev/null +++ b/src/components/permissions/ExitPlanModePermissionRequest/src/state/AppState.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useAppStateStore = any; +export type useSetAppState = any; diff --git a/src/components/permissions/FileEditPermissionRequest/src/components/FileEditToolDiff.ts b/src/components/permissions/FileEditPermissionRequest/src/components/FileEditToolDiff.ts new file mode 100644 index 0000000..d6d114f --- /dev/null +++ b/src/components/permissions/FileEditPermissionRequest/src/components/FileEditToolDiff.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditToolDiff = any; diff --git a/src/components/permissions/FileEditPermissionRequest/src/utils/cwd.ts b/src/components/permissions/FileEditPermissionRequest/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/components/permissions/FileEditPermissionRequest/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/components/permissions/FilePermissionDialog/src/state/AppState.ts b/src/components/permissions/FilePermissionDialog/src/state/AppState.ts new file mode 100644 index 0000000..3c93608 --- /dev/null +++ b/src/components/permissions/FilePermissionDialog/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; diff --git a/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts b/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts new file mode 100644 index 0000000..e84c239 --- /dev/null +++ b/src/components/permissions/MonitorPermissionRequest/MonitorPermissionRequest.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const MonitorPermissionRequest: any = (() => {}) as any; diff --git a/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts b/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts new file mode 100644 index 0000000..cd52659 --- /dev/null +++ b/src/components/permissions/ReviewArtifactPermissionRequest/ReviewArtifactPermissionRequest.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const ReviewArtifactPermissionRequest: any = (() => {}) as any; diff --git a/src/components/permissions/SedEditPermissionRequest/src/components/FileEditToolDiff.ts b/src/components/permissions/SedEditPermissionRequest/src/components/FileEditToolDiff.ts new file mode 100644 index 0000000..d6d114f --- /dev/null +++ b/src/components/permissions/SedEditPermissionRequest/src/components/FileEditToolDiff.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditToolDiff = any; diff --git a/src/components/permissions/SedEditPermissionRequest/src/utils/cwd.ts b/src/components/permissions/SedEditPermissionRequest/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/components/permissions/SedEditPermissionRequest/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/components/permissions/SedEditPermissionRequest/src/utils/errors.ts b/src/components/permissions/SedEditPermissionRequest/src/utils/errors.ts new file mode 100644 index 0000000..8ccaeab --- /dev/null +++ b/src/components/permissions/SedEditPermissionRequest/src/utils/errors.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isENOENT = any; diff --git a/src/components/permissions/SedEditPermissionRequest/src/utils/fileRead.ts b/src/components/permissions/SedEditPermissionRequest/src/utils/fileRead.ts new file mode 100644 index 0000000..69d2000 --- /dev/null +++ b/src/components/permissions/SedEditPermissionRequest/src/utils/fileRead.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type detectEncodingForResolvedPath = any; diff --git a/src/components/permissions/SedEditPermissionRequest/src/utils/fsOperations.ts b/src/components/permissions/SedEditPermissionRequest/src/utils/fsOperations.ts new file mode 100644 index 0000000..d30ccea --- /dev/null +++ b/src/components/permissions/SedEditPermissionRequest/src/utils/fsOperations.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFsImplementation = any; diff --git a/src/components/permissions/SkillPermissionRequest/src/utils/log.ts b/src/components/permissions/SkillPermissionRequest/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/components/permissions/SkillPermissionRequest/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/components/permissions/rules/src/state/AppState.ts b/src/components/permissions/rules/src/state/AppState.ts new file mode 100644 index 0000000..cc3978f --- /dev/null +++ b/src/components/permissions/rules/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useSetAppState = any; diff --git a/src/components/permissions/rules/src/utils/permissions/PermissionUpdate.ts b/src/components/permissions/rules/src/utils/permissions/PermissionUpdate.ts new file mode 100644 index 0000000..9d49451 --- /dev/null +++ b/src/components/permissions/rules/src/utils/permissions/PermissionUpdate.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type applyPermissionUpdate = any; +export type persistPermissionUpdate = any; diff --git a/src/components/permissions/rules/src/utils/permissions/PermissionUpdateSchema.ts b/src/components/permissions/rules/src/utils/permissions/PermissionUpdateSchema.ts new file mode 100644 index 0000000..7f663cb --- /dev/null +++ b/src/components/permissions/rules/src/utils/permissions/PermissionUpdateSchema.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionUpdateDestination = any; diff --git a/src/components/permissions/src/ink.ts b/src/components/permissions/src/ink.ts new file mode 100644 index 0000000..51d6eb4 --- /dev/null +++ b/src/components/permissions/src/ink.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Box = any; +export type Text = any; diff --git a/src/components/permissions/src/services/analytics/index.ts b/src/components/permissions/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/components/permissions/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/components/permissions/src/services/analytics/metadata.ts b/src/components/permissions/src/services/analytics/metadata.ts new file mode 100644 index 0000000..8076027 --- /dev/null +++ b/src/components/permissions/src/services/analytics/metadata.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type sanitizeToolNameForAnalytics = any; diff --git a/src/components/permissions/src/tools/BashTool/BashTool.ts b/src/components/permissions/src/tools/BashTool/BashTool.ts new file mode 100644 index 0000000..7a3ea3c --- /dev/null +++ b/src/components/permissions/src/tools/BashTool/BashTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BashTool = any; diff --git a/src/components/permissions/src/tools/EnterPlanModeTool/EnterPlanModeTool.ts b/src/components/permissions/src/tools/EnterPlanModeTool/EnterPlanModeTool.ts new file mode 100644 index 0000000..c4d43e4 --- /dev/null +++ b/src/components/permissions/src/tools/EnterPlanModeTool/EnterPlanModeTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EnterPlanModeTool = any; diff --git a/src/components/permissions/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts b/src/components/permissions/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts new file mode 100644 index 0000000..f9708d2 --- /dev/null +++ b/src/components/permissions/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ExitPlanModeV2Tool = any; diff --git a/src/components/permissions/src/utils/bash/commands.ts b/src/components/permissions/src/utils/bash/commands.ts new file mode 100644 index 0000000..8886e5c --- /dev/null +++ b/src/components/permissions/src/utils/bash/commands.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type splitCommand_DEPRECATED = any; diff --git a/src/components/permissions/src/utils/permissions/PermissionResult.ts b/src/components/permissions/src/utils/permissions/PermissionResult.ts new file mode 100644 index 0000000..7958ed6 --- /dev/null +++ b/src/components/permissions/src/utils/permissions/PermissionResult.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionDecisionReason = any; +export type PermissionResult = any; diff --git a/src/components/permissions/src/utils/permissions/PermissionUpdate.ts b/src/components/permissions/src/utils/permissions/PermissionUpdate.ts new file mode 100644 index 0000000..5779475 --- /dev/null +++ b/src/components/permissions/src/utils/permissions/PermissionUpdate.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type extractRules = any; +export type hasRules = any; diff --git a/src/components/permissions/src/utils/permissions/permissionRuleParser.ts b/src/components/permissions/src/utils/permissions/permissionRuleParser.ts new file mode 100644 index 0000000..37691b2 --- /dev/null +++ b/src/components/permissions/src/utils/permissions/permissionRuleParser.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type permissionRuleValueToString = any; diff --git a/src/components/permissions/src/utils/sandbox/sandbox-adapter.ts b/src/components/permissions/src/utils/sandbox/sandbox-adapter.ts new file mode 100644 index 0000000..5dd1d93 --- /dev/null +++ b/src/components/permissions/src/utils/sandbox/sandbox-adapter.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type NetworkHostPattern = any; +export type shouldAllowManagedSandboxDomainsOnly = any; +export type SandboxManager = any; diff --git a/src/components/src/bootstrap/state.ts b/src/components/src/bootstrap/state.ts new file mode 100644 index 0000000..c6af340 --- /dev/null +++ b/src/components/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getLastAPIRequest = any; diff --git a/src/components/src/commands.ts b/src/components/src/commands.ts new file mode 100644 index 0000000..8552dd2 --- /dev/null +++ b/src/components/src/commands.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CommandResultDisplay = any; diff --git a/src/components/src/components/shell/OutputLine.ts b/src/components/src/components/shell/OutputLine.ts new file mode 100644 index 0000000..9c5093c --- /dev/null +++ b/src/components/src/components/shell/OutputLine.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type stripUnderlineAnsi = any; diff --git a/src/components/src/hooks/useExitOnCtrlCDWithKeybindings.ts b/src/components/src/hooks/useExitOnCtrlCDWithKeybindings.ts new file mode 100644 index 0000000..38810d6 --- /dev/null +++ b/src/components/src/hooks/useExitOnCtrlCDWithKeybindings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useExitOnCtrlCDWithKeybindings = any; diff --git a/src/components/src/hooks/useTerminalSize.ts b/src/components/src/hooks/useTerminalSize.ts new file mode 100644 index 0000000..4a0ef3e --- /dev/null +++ b/src/components/src/hooks/useTerminalSize.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useTerminalSize = any; diff --git a/src/components/src/services/analytics/firstPartyEventLogger.ts b/src/components/src/services/analytics/firstPartyEventLogger.ts new file mode 100644 index 0000000..3387d83 --- /dev/null +++ b/src/components/src/services/analytics/firstPartyEventLogger.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEventTo1P = any; diff --git a/src/components/src/services/analytics/index.ts b/src/components/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/components/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/components/src/state/AppState.ts b/src/components/src/state/AppState.ts new file mode 100644 index 0000000..cc3978f --- /dev/null +++ b/src/components/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useSetAppState = any; diff --git a/src/components/src/tools/FileEditTool/types.ts b/src/components/src/tools/FileEditTool/types.ts new file mode 100644 index 0000000..077f105 --- /dev/null +++ b/src/components/src/tools/FileEditTool/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditOutput = any; diff --git a/src/components/src/tools/FileWriteTool/FileWriteTool.ts b/src/components/src/tools/FileWriteTool/FileWriteTool.ts new file mode 100644 index 0000000..5071657 --- /dev/null +++ b/src/components/src/tools/FileWriteTool/FileWriteTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Output = any; diff --git a/src/components/src/utils/background/remote/preconditions.ts b/src/components/src/utils/background/remote/preconditions.ts new file mode 100644 index 0000000..4c7df78 --- /dev/null +++ b/src/components/src/utils/background/remote/preconditions.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type checkIsGitClean = any; +export type checkNeedsClaudeAiLogin = any; diff --git a/src/components/src/utils/conversationRecovery.ts b/src/components/src/utils/conversationRecovery.ts new file mode 100644 index 0000000..ecd18bd --- /dev/null +++ b/src/components/src/utils/conversationRecovery.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TeleportRemoteResponse = any; diff --git a/src/components/src/utils/cwd.ts b/src/components/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/components/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/components/src/utils/debug.ts b/src/components/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/components/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/components/src/utils/envDynamic.ts b/src/components/src/utils/envDynamic.ts new file mode 100644 index 0000000..f977917 --- /dev/null +++ b/src/components/src/utils/envDynamic.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type envDynamic = any; diff --git a/src/components/src/utils/fastMode.ts b/src/components/src/utils/fastMode.ts new file mode 100644 index 0000000..cf4c9c1 --- /dev/null +++ b/src/components/src/utils/fastMode.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type FAST_MODE_MODEL_DISPLAY = any; +export type isFastModeAvailable = any; +export type isFastModeCooldown = any; +export type isFastModeEnabled = any; diff --git a/src/components/src/utils/fileHistory.ts b/src/components/src/utils/fileHistory.ts new file mode 100644 index 0000000..d3a0a3e --- /dev/null +++ b/src/components/src/utils/fileHistory.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type DiffStats = any; +export type fileHistoryCanRestore = any; +export type fileHistoryEnabled = any; +export type fileHistoryGetDiffStats = any; diff --git a/src/components/src/utils/gracefulShutdown.ts b/src/components/src/utils/gracefulShutdown.ts new file mode 100644 index 0000000..6b72be4 --- /dev/null +++ b/src/components/src/utils/gracefulShutdown.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type gracefulShutdown = any; +export type gracefulShutdownSync = any; diff --git a/src/components/src/utils/log.ts b/src/components/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/components/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/components/src/utils/messages.ts b/src/components/src/utils/messages.ts new file mode 100644 index 0000000..e84ec85 --- /dev/null +++ b/src/components/src/utils/messages.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; +export type getLastAssistantMessage = any; +export type normalizeMessagesForAPI = any; diff --git a/src/components/src/utils/permissions/PermissionMode.ts b/src/components/src/utils/permissions/PermissionMode.ts new file mode 100644 index 0000000..1bc6199 --- /dev/null +++ b/src/components/src/utils/permissions/PermissionMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionMode = any; diff --git a/src/components/src/utils/platform.ts b/src/components/src/utils/platform.ts new file mode 100644 index 0000000..b6686f8 --- /dev/null +++ b/src/components/src/utils/platform.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getPlatform = any; diff --git a/src/components/src/utils/process.ts b/src/components/src/utils/process.ts new file mode 100644 index 0000000..4fde474 --- /dev/null +++ b/src/components/src/utils/process.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type writeToStdout = any; diff --git a/src/components/src/utils/sandbox/sandbox-ui-utils.ts b/src/components/src/utils/sandbox/sandbox-ui-utils.ts new file mode 100644 index 0000000..f514e53 --- /dev/null +++ b/src/components/src/utils/sandbox/sandbox-ui-utils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type removeSandboxViolationTags = any; diff --git a/src/components/src/utils/set.ts b/src/components/src/utils/set.ts new file mode 100644 index 0000000..9450ee3 --- /dev/null +++ b/src/components/src/utils/set.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type every = any; diff --git a/src/components/src/utils/teleport/api.ts b/src/components/src/utils/teleport/api.ts new file mode 100644 index 0000000..643ec49 --- /dev/null +++ b/src/components/src/utils/teleport/api.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type CodeSession = any; +export type CodeSession = any; +export type fetchCodeSessionsFromSessionsAPI = any; diff --git a/src/components/src/utils/theme.ts b/src/components/src/utils/theme.ts new file mode 100644 index 0000000..c6999a6 --- /dev/null +++ b/src/components/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Theme = any; diff --git a/src/components/tasks/MonitorMcpDetailDialog.ts b/src/components/tasks/MonitorMcpDetailDialog.ts new file mode 100644 index 0000000..64d4c11 --- /dev/null +++ b/src/components/tasks/MonitorMcpDetailDialog.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const MonitorMcpDetailDialog: any = (() => {}) as any; diff --git a/src/components/tasks/WorkflowDetailDialog.ts b/src/components/tasks/WorkflowDetailDialog.ts new file mode 100644 index 0000000..f8e7111 --- /dev/null +++ b/src/components/tasks/WorkflowDetailDialog.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const WorkflowDetailDialog: any = (() => {}) as any; diff --git a/src/components/tasks/src/Task.ts b/src/components/tasks/src/Task.ts new file mode 100644 index 0000000..cd6d817 --- /dev/null +++ b/src/components/tasks/src/Task.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TaskStatus = any; diff --git a/src/components/tasks/src/Tool.ts b/src/components/tasks/src/Tool.ts new file mode 100644 index 0000000..0492ff4 --- /dev/null +++ b/src/components/tasks/src/Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ToolUseContext = any; diff --git a/src/components/tasks/src/coordinator/coordinatorMode.ts b/src/components/tasks/src/coordinator/coordinatorMode.ts new file mode 100644 index 0000000..1879d10 --- /dev/null +++ b/src/components/tasks/src/coordinator/coordinatorMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isCoordinatorMode = any; diff --git a/src/components/tasks/src/entrypoints/agentSdkTypes.ts b/src/components/tasks/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..d4bdb4f --- /dev/null +++ b/src/components/tasks/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SDKMessage = any; diff --git a/src/components/tasks/src/hooks/useTerminalSize.ts b/src/components/tasks/src/hooks/useTerminalSize.ts new file mode 100644 index 0000000..4a0ef3e --- /dev/null +++ b/src/components/tasks/src/hooks/useTerminalSize.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useTerminalSize = any; diff --git a/src/components/tasks/src/ink.ts b/src/components/tasks/src/ink.ts new file mode 100644 index 0000000..9fa0986 --- /dev/null +++ b/src/components/tasks/src/ink.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Text = any; diff --git a/src/components/tasks/src/ink/stringWidth.ts b/src/components/tasks/src/ink/stringWidth.ts new file mode 100644 index 0000000..aa33710 --- /dev/null +++ b/src/components/tasks/src/ink/stringWidth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type stringWidth = any; diff --git a/src/components/tasks/src/state/AppState.ts b/src/components/tasks/src/state/AppState.ts new file mode 100644 index 0000000..cc3978f --- /dev/null +++ b/src/components/tasks/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useSetAppState = any; diff --git a/src/components/tasks/src/state/teammateViewHelpers.ts b/src/components/tasks/src/state/teammateViewHelpers.ts new file mode 100644 index 0000000..1971237 --- /dev/null +++ b/src/components/tasks/src/state/teammateViewHelpers.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type enterTeammateView = any; +export type exitTeammateView = any; diff --git a/src/components/tasks/src/tasks/DreamTask/DreamTask.ts b/src/components/tasks/src/tasks/DreamTask/DreamTask.ts new file mode 100644 index 0000000..446e8cf --- /dev/null +++ b/src/components/tasks/src/tasks/DreamTask/DreamTask.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type DreamTask = any; +export type DreamTaskState = any; diff --git a/src/components/tasks/src/tasks/InProcessTeammateTask/InProcessTeammateTask.ts b/src/components/tasks/src/tasks/InProcessTeammateTask/InProcessTeammateTask.ts new file mode 100644 index 0000000..58a3fc9 --- /dev/null +++ b/src/components/tasks/src/tasks/InProcessTeammateTask/InProcessTeammateTask.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type InProcessTeammateTask = any; diff --git a/src/components/tasks/src/tasks/InProcessTeammateTask/types.ts b/src/components/tasks/src/tasks/InProcessTeammateTask/types.ts new file mode 100644 index 0000000..67314b6 --- /dev/null +++ b/src/components/tasks/src/tasks/InProcessTeammateTask/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type InProcessTeammateTaskState = any; diff --git a/src/components/tasks/src/tasks/LocalAgentTask/LocalAgentTask.ts b/src/components/tasks/src/tasks/LocalAgentTask/LocalAgentTask.ts new file mode 100644 index 0000000..ecfe9aa --- /dev/null +++ b/src/components/tasks/src/tasks/LocalAgentTask/LocalAgentTask.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type isPanelAgentTask = any; +export type LocalAgentTaskState = any; +export type LocalAgentTask = any; diff --git a/src/components/tasks/src/tasks/LocalShellTask/LocalShellTask.ts b/src/components/tasks/src/tasks/LocalShellTask/LocalShellTask.ts new file mode 100644 index 0000000..169ad06 --- /dev/null +++ b/src/components/tasks/src/tasks/LocalShellTask/LocalShellTask.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LocalShellTask = any; diff --git a/src/components/tasks/src/tasks/LocalShellTask/guards.ts b/src/components/tasks/src/tasks/LocalShellTask/guards.ts new file mode 100644 index 0000000..baf4fdb --- /dev/null +++ b/src/components/tasks/src/tasks/LocalShellTask/guards.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LocalShellTaskState = any; diff --git a/src/components/tasks/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts b/src/components/tasks/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/components/tasks/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/components/tasks/src/tasks/MonitorMcpTask/MonitorMcpTask.ts b/src/components/tasks/src/tasks/MonitorMcpTask/MonitorMcpTask.ts new file mode 100644 index 0000000..e7f7d4e --- /dev/null +++ b/src/components/tasks/src/tasks/MonitorMcpTask/MonitorMcpTask.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MonitorMcpTaskState = any; diff --git a/src/components/tasks/src/tasks/RemoteAgentTask/RemoteAgentTask.ts b/src/components/tasks/src/tasks/RemoteAgentTask/RemoteAgentTask.ts new file mode 100644 index 0000000..35f12a2 --- /dev/null +++ b/src/components/tasks/src/tasks/RemoteAgentTask/RemoteAgentTask.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type RemoteAgentTaskState = any; +export type RemoteAgentTask = any; +export type RemoteAgentTaskState = any; diff --git a/src/components/tasks/src/tasks/pillLabel.ts b/src/components/tasks/src/tasks/pillLabel.ts new file mode 100644 index 0000000..e72c942 --- /dev/null +++ b/src/components/tasks/src/tasks/pillLabel.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getPillLabel = any; +export type pillNeedsCta = any; diff --git a/src/components/tasks/src/tasks/types.ts b/src/components/tasks/src/tasks/types.ts new file mode 100644 index 0000000..9de5056 --- /dev/null +++ b/src/components/tasks/src/tasks/types.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type BackgroundTaskState = any; +export type isBackgroundTask = any; +export type TaskState = any; +export type BackgroundTaskState = any; diff --git a/src/components/tasks/src/types/utils.ts b/src/components/tasks/src/types/utils.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/components/tasks/src/types/utils.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/components/tasks/src/utils/array.ts b/src/components/tasks/src/utils/array.ts new file mode 100644 index 0000000..ee55daf --- /dev/null +++ b/src/components/tasks/src/utils/array.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type intersperse = any; diff --git a/src/components/tasks/src/utils/collapseReadSearch.ts b/src/components/tasks/src/utils/collapseReadSearch.ts new file mode 100644 index 0000000..137b5d4 --- /dev/null +++ b/src/components/tasks/src/utils/collapseReadSearch.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type summarizeRecentActivities = any; diff --git a/src/components/tasks/src/utils/format.ts b/src/components/tasks/src/utils/format.ts new file mode 100644 index 0000000..ae90c38 --- /dev/null +++ b/src/components/tasks/src/utils/format.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type truncate = any; diff --git a/src/components/tasks/src/utils/horizontalScroll.ts b/src/components/tasks/src/utils/horizontalScroll.ts new file mode 100644 index 0000000..d89f93f --- /dev/null +++ b/src/components/tasks/src/utils/horizontalScroll.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type calculateHorizontalScrollWindow = any; diff --git a/src/components/tasks/src/utils/ink.ts b/src/components/tasks/src/utils/ink.ts new file mode 100644 index 0000000..5398920 --- /dev/null +++ b/src/components/tasks/src/utils/ink.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type toInkColor = any; diff --git a/src/components/tasks/src/utils/stringUtils.ts b/src/components/tasks/src/utils/stringUtils.ts new file mode 100644 index 0000000..8b747e1 --- /dev/null +++ b/src/components/tasks/src/utils/stringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type plural = any; diff --git a/src/components/tasks/src/utils/swarm/constants.ts b/src/components/tasks/src/utils/swarm/constants.ts new file mode 100644 index 0000000..69a5e1f --- /dev/null +++ b/src/components/tasks/src/utils/swarm/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TEAM_LEAD_NAME = any; diff --git a/src/components/ui/option.ts b/src/components/ui/option.ts new file mode 100644 index 0000000..794027d --- /dev/null +++ b/src/components/ui/option.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type Option = any; diff --git a/src/components/wizard/types.ts b/src/components/wizard/types.ts new file mode 100644 index 0000000..2e1c202 --- /dev/null +++ b/src/components/wizard/types.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export type WizardContextValue = any; +export type WizardProviderProps = any; +export type WizardStepComponent = any; diff --git a/src/constants/betas.ts b/src/constants/betas.ts index dc1383b..d87dfc4 100644 --- a/src/constants/betas.ts +++ b/src/constants/betas.ts @@ -50,3 +50,4 @@ export const VERTEX_COUNT_TOKENS_ALLOWED_BETAS = new Set([ INTERLEAVED_THINKING_BETA_HEADER, CONTEXT_MANAGEMENT_BETA_HEADER, ]) +export const CACHE_EDITING_BETA_HEADER: any = (() => {}) as any; diff --git a/src/constants/querySource.ts b/src/constants/querySource.ts new file mode 100644 index 0000000..b79de64 --- /dev/null +++ b/src/constants/querySource.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type QuerySource = any; diff --git a/src/constants/src/commands.ts b/src/constants/src/commands.ts new file mode 100644 index 0000000..e358f07 --- /dev/null +++ b/src/constants/src/commands.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getSkillToolCommands = any; diff --git a/src/constants/src/services/analytics/growthbook.ts b/src/constants/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/constants/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/constants/src/tools/AgentTool/built-in/exploreAgent.ts b/src/constants/src/tools/AgentTool/built-in/exploreAgent.ts new file mode 100644 index 0000000..7ec141a --- /dev/null +++ b/src/constants/src/tools/AgentTool/built-in/exploreAgent.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type EXPLORE_AGENT = any; +export type EXPLORE_AGENT_MIN_QUERIES = any; diff --git a/src/constants/src/tools/AgentTool/builtInAgents.ts b/src/constants/src/tools/AgentTool/builtInAgents.ts new file mode 100644 index 0000000..8358c0b --- /dev/null +++ b/src/constants/src/tools/AgentTool/builtInAgents.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type areExplorePlanAgentsEnabled = any; diff --git a/src/constants/src/tools/GlobTool/prompt.ts b/src/constants/src/tools/GlobTool/prompt.ts new file mode 100644 index 0000000..060caf2 --- /dev/null +++ b/src/constants/src/tools/GlobTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GLOB_TOOL_NAME = any; diff --git a/src/constants/src/tools/GrepTool/prompt.ts b/src/constants/src/tools/GrepTool/prompt.ts new file mode 100644 index 0000000..08b8a8d --- /dev/null +++ b/src/constants/src/tools/GrepTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GREP_TOOL_NAME = any; diff --git a/src/constants/src/utils/embeddedTools.ts b/src/constants/src/utils/embeddedTools.ts new file mode 100644 index 0000000..c0160db --- /dev/null +++ b/src/constants/src/utils/embeddedTools.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type hasEmbeddedSearchTools = any; diff --git a/src/constants/src/utils/envUtils.ts b/src/constants/src/utils/envUtils.ts new file mode 100644 index 0000000..deb3490 --- /dev/null +++ b/src/constants/src/utils/envUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isEnvTruthy = any; diff --git a/src/context/src/state/AppState.ts b/src/context/src/state/AppState.ts new file mode 100644 index 0000000..5237ca4 --- /dev/null +++ b/src/context/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppStateStore = any; +export type useSetAppState = any; diff --git a/src/coordinator/workerAgent.ts b/src/coordinator/workerAgent.ts new file mode 100644 index 0000000..4489762 --- /dev/null +++ b/src/coordinator/workerAgent.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const getCoordinatorAgents: any = (() => {}) as any; diff --git a/src/daemon/main.ts b/src/daemon/main.ts new file mode 100644 index 0000000..c2e1c99 --- /dev/null +++ b/src/daemon/main.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const daemonMain: any = (() => {}) as any; diff --git a/src/daemon/workerRegistry.ts b/src/daemon/workerRegistry.ts new file mode 100644 index 0000000..0065803 --- /dev/null +++ b/src/daemon/workerRegistry.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const runDaemonWorker: any = (() => {}) as any; diff --git a/src/entrypoints/agentSdkTypes.js b/src/entrypoints/agentSdkTypes.js new file mode 100644 index 0000000..dbb2da1 --- /dev/null +++ b/src/entrypoints/agentSdkTypes.js @@ -0,0 +1,40 @@ +// Re-export runtime values + type stubs for bundling +// Types are erased at runtime, but we need the value exports + +export const HOOK_EVENTS = [ + 'PreToolUse', + 'PostToolUse', + 'PostToolUseFailure', + 'Notification', + 'UserPromptSubmit', + 'SessionStart', + 'SessionEnd', + 'Stop', + 'StopFailure', + 'SubagentStart', + 'SubagentStop', + 'PreCompact', + 'PostCompact', + 'PermissionRequest', + 'PermissionDenied', + 'Setup', + 'TeammateIdle', + 'TaskCreated', + 'TaskCompleted', + 'Elicitation', + 'ElicitationResult', + 'ConfigChange', + 'WorktreeCreate', + 'WorktreeRemove', + 'InstructionsLoaded', + 'CwdChanged', + 'FileChanged', +] + +export const EXIT_REASONS = [ + 'clear', + 'resume', + 'logout', + 'prompt_input_exit', + 'other', +] diff --git a/src/entrypoints/agentSdkTypes.ts b/src/entrypoints/agentSdkTypes.ts index b199458..8424903 100644 --- a/src/entrypoints/agentSdkTypes.ts +++ b/src/entrypoints/agentSdkTypes.ts @@ -441,3 +441,5 @@ export async function connectRemoteControl( ): Promise { throw new Error('not implemented') } +export type HookEvent = any; +export type ExitReason = any; diff --git a/src/entrypoints/cli.tsx b/src/entrypoints/cli.tsx index 67326f8..795f4f2 100644 --- a/src/entrypoints/cli.tsx +++ b/src/entrypoints/cli.tsx @@ -1,16 +1,18 @@ -import { feature } from 'bun:bundle'; +import { feature } from "bun:bundle"; // Bugfix for corepack auto-pinning, which adds yarnpkg to peoples' package.jsons // eslint-disable-next-line custom-rules/no-top-level-side-effects -process.env.COREPACK_ENABLE_AUTO_PIN = '0'; +process.env.COREPACK_ENABLE_AUTO_PIN = "0"; // Set max heap size for child processes in CCR environments (containers have 16GB) // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level, custom-rules/safe-env-boolean-check -if (process.env.CLAUDE_CODE_REMOTE === 'true') { - // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level - const existing = process.env.NODE_OPTIONS || ''; - // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level - process.env.NODE_OPTIONS = existing ? `${existing} --max-old-space-size=8192` : '--max-old-space-size=8192'; +if (process.env.CLAUDE_CODE_REMOTE === "true") { + // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level + const existing = process.env.NODE_OPTIONS || ""; + // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level + process.env.NODE_OPTIONS = existing + ? `${existing} --max-old-space-size=8192` + : "--max-old-space-size=8192"; } // Harness-science L0 ablation baseline. Inlined here (not init.ts) because @@ -18,11 +20,19 @@ if (process.env.CLAUDE_CODE_REMOTE === 'true') { // module-level consts at import time — init() runs too late. feature() gate // DCEs this entire block from external builds. // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level -if (feature('ABLATION_BASELINE') && process.env.CLAUDE_CODE_ABLATION_BASELINE) { - for (const k of ['CLAUDE_CODE_SIMPLE', 'CLAUDE_CODE_DISABLE_THINKING', 'DISABLE_INTERLEAVED_THINKING', 'DISABLE_COMPACT', 'DISABLE_AUTO_COMPACT', 'CLAUDE_CODE_DISABLE_AUTO_MEMORY', 'CLAUDE_CODE_DISABLE_BACKGROUND_TASKS']) { - // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level - process.env[k] ??= '1'; - } +if (feature("ABLATION_BASELINE") && process.env.CLAUDE_CODE_ABLATION_BASELINE) { + for (const k of [ + "CLAUDE_CODE_SIMPLE", + "CLAUDE_CODE_DISABLE_THINKING", + "DISABLE_INTERLEAVED_THINKING", + "DISABLE_COMPACT", + "DISABLE_AUTO_COMPACT", + "CLAUDE_CODE_DISABLE_AUTO_MEMORY", + "CLAUDE_CODE_DISABLE_BACKGROUND_TASKS", + ]) { + // eslint-disable-next-line custom-rules/no-top-level-side-effects, custom-rules/no-process-env-top-level + process.env[k] ??= "1"; + } } /** @@ -31,273 +41,263 @@ if (feature('ABLATION_BASELINE') && process.env.CLAUDE_CODE_ABLATION_BASELINE) { * Fast-path for --version has zero imports beyond this file. */ async function main(): Promise { - const args = process.argv.slice(2); + const args = process.argv.slice(2); - // Fast-path for --version/-v: zero module loading needed - if (args.length === 1 && (args[0] === '--version' || args[0] === '-v' || args[0] === '-V')) { - // MACRO.VERSION is inlined at build time - // biome-ignore lint/suspicious/noConsole:: intentional console output - console.log(`${MACRO.VERSION} (Claude Code)`); - return; - } - - // For all other paths, load the startup profiler - const { - profileCheckpoint - } = await import('../utils/startupProfiler.js'); - profileCheckpoint('cli_entry'); - - // Fast-path for --dump-system-prompt: output the rendered system prompt and exit. - // Used by prompt sensitivity evals to extract the system prompt at a specific commit. - // Ant-only: eliminated from external builds via feature flag. - if (feature('DUMP_SYSTEM_PROMPT') && args[0] === '--dump-system-prompt') { - profileCheckpoint('cli_dump_system_prompt_path'); - const { - enableConfigs - } = await import('../utils/config.js'); - enableConfigs(); - const { - getMainLoopModel - } = await import('../utils/model/model.js'); - const modelIdx = args.indexOf('--model'); - const model = modelIdx !== -1 && args[modelIdx + 1] || getMainLoopModel(); - const { - getSystemPrompt - } = await import('../constants/prompts.js'); - const prompt = await getSystemPrompt([], model); - // biome-ignore lint/suspicious/noConsole:: intentional console output - console.log(prompt.join('\n')); - return; - } - if (process.argv[2] === '--claude-in-chrome-mcp') { - profileCheckpoint('cli_claude_in_chrome_mcp_path'); - const { - runClaudeInChromeMcpServer - } = await import('../utils/claudeInChrome/mcpServer.js'); - await runClaudeInChromeMcpServer(); - return; - } else if (process.argv[2] === '--chrome-native-host') { - profileCheckpoint('cli_chrome_native_host_path'); - const { - runChromeNativeHost - } = await import('../utils/claudeInChrome/chromeNativeHost.js'); - await runChromeNativeHost(); - return; - } else if (feature('CHICAGO_MCP') && process.argv[2] === '--computer-use-mcp') { - profileCheckpoint('cli_computer_use_mcp_path'); - const { - runComputerUseMcpServer - } = await import('../utils/computerUse/mcpServer.js'); - await runComputerUseMcpServer(); - return; - } - - // Fast-path for `--daemon-worker=` (internal — supervisor spawns this). - // Must come before the daemon subcommand check: spawned per-worker, so - // perf-sensitive. No enableConfigs(), no analytics sinks at this layer — - // workers are lean. If a worker kind needs configs/auth (assistant will), - // it calls them inside its run() fn. - if (feature('DAEMON') && args[0] === '--daemon-worker') { - const { - runDaemonWorker - } = await import('../daemon/workerRegistry.js'); - await runDaemonWorker(args[1]); - return; - } - - // Fast-path for `claude remote-control` (also accepts legacy `claude remote` / `claude sync` / `claude bridge`): - // serve local machine as bridge environment. - // feature() must stay inline for build-time dead code elimination; - // isBridgeEnabled() checks the runtime GrowthBook gate. - if (feature('BRIDGE_MODE') && (args[0] === 'remote-control' || args[0] === 'rc' || args[0] === 'remote' || args[0] === 'sync' || args[0] === 'bridge')) { - profileCheckpoint('cli_bridge_path'); - const { - enableConfigs - } = await import('../utils/config.js'); - enableConfigs(); - const { - getBridgeDisabledReason, - checkBridgeMinVersion - } = await import('../bridge/bridgeEnabled.js'); - const { - BRIDGE_LOGIN_ERROR - } = await import('../bridge/types.js'); - const { - bridgeMain - } = await import('../bridge/bridgeMain.js'); - const { - exitWithError - } = await import('../utils/process.js'); - - // Auth check must come before the GrowthBook gate check — without auth, - // GrowthBook has no user context and would return a stale/default false. - // getBridgeDisabledReason awaits GB init, so the returned value is fresh - // (not the stale disk cache), but init still needs auth headers to work. - const { - getClaudeAIOAuthTokens - } = await import('../utils/auth.js'); - if (!getClaudeAIOAuthTokens()?.accessToken) { - exitWithError(BRIDGE_LOGIN_ERROR); - } - const disabledReason = await getBridgeDisabledReason(); - if (disabledReason) { - exitWithError(`Error: ${disabledReason}`); - } - const versionError = checkBridgeMinVersion(); - if (versionError) { - exitWithError(versionError); - } - - // Bridge is a remote control feature - check policy limits - const { - waitForPolicyLimitsToLoad, - isPolicyAllowed - } = await import('../services/policyLimits/index.js'); - await waitForPolicyLimitsToLoad(); - if (!isPolicyAllowed('allow_remote_control')) { - exitWithError("Error: Remote Control is disabled by your organization's policy."); - } - await bridgeMain(args.slice(1)); - return; - } - - // Fast-path for `claude daemon [subcommand]`: long-running supervisor. - if (feature('DAEMON') && args[0] === 'daemon') { - profileCheckpoint('cli_daemon_path'); - const { - enableConfigs - } = await import('../utils/config.js'); - enableConfigs(); - const { - initSinks - } = await import('../utils/sinks.js'); - initSinks(); - const { - daemonMain - } = await import('../daemon/main.js'); - await daemonMain(args.slice(1)); - return; - } - - // Fast-path for `claude ps|logs|attach|kill` and `--bg`/`--background`. - // Session management against the ~/.claude/sessions/ registry. Flag - // literals are inlined so bg.js only loads when actually dispatching. - if (feature('BG_SESSIONS') && (args[0] === 'ps' || args[0] === 'logs' || args[0] === 'attach' || args[0] === 'kill' || args.includes('--bg') || args.includes('--background'))) { - profileCheckpoint('cli_bg_path'); - const { - enableConfigs - } = await import('../utils/config.js'); - enableConfigs(); - const bg = await import('../cli/bg.js'); - switch (args[0]) { - case 'ps': - await bg.psHandler(args.slice(1)); - break; - case 'logs': - await bg.logsHandler(args[1]); - break; - case 'attach': - await bg.attachHandler(args[1]); - break; - case 'kill': - await bg.killHandler(args[1]); - break; - default: - await bg.handleBgFlag(args); - } - return; - } - - // Fast-path for template job commands. - if (feature('TEMPLATES') && (args[0] === 'new' || args[0] === 'list' || args[0] === 'reply')) { - profileCheckpoint('cli_templates_path'); - const { - templatesMain - } = await import('../cli/handlers/templateJobs.js'); - await templatesMain(args); - // process.exit (not return) — mountFleetView's Ink TUI can leave event - // loop handles that prevent natural exit. - // eslint-disable-next-line custom-rules/no-process-exit - process.exit(0); - } - - // Fast-path for `claude environment-runner`: headless BYOC runner. - // feature() must stay inline for build-time dead code elimination. - if (feature('BYOC_ENVIRONMENT_RUNNER') && args[0] === 'environment-runner') { - profileCheckpoint('cli_environment_runner_path'); - const { - environmentRunnerMain - } = await import('../environment-runner/main.js'); - await environmentRunnerMain(args.slice(1)); - return; - } - - // Fast-path for `claude self-hosted-runner`: headless self-hosted-runner - // targeting the SelfHostedRunnerWorkerService API (register + poll; poll IS - // heartbeat). feature() must stay inline for build-time dead code elimination. - if (feature('SELF_HOSTED_RUNNER') && args[0] === 'self-hosted-runner') { - profileCheckpoint('cli_self_hosted_runner_path'); - const { - selfHostedRunnerMain - } = await import('../self-hosted-runner/main.js'); - await selfHostedRunnerMain(args.slice(1)); - return; - } - - // Fast-path for --worktree --tmux: exec into tmux before loading full CLI - const hasTmuxFlag = args.includes('--tmux') || args.includes('--tmux=classic'); - if (hasTmuxFlag && (args.includes('-w') || args.includes('--worktree') || args.some(a => a.startsWith('--worktree=')))) { - profileCheckpoint('cli_tmux_worktree_fast_path'); - const { - enableConfigs - } = await import('../utils/config.js'); - enableConfigs(); - const { - isWorktreeModeEnabled - } = await import('../utils/worktreeModeEnabled.js'); - if (isWorktreeModeEnabled()) { - const { - execIntoTmuxWorktree - } = await import('../utils/worktree.js'); - const result = await execIntoTmuxWorktree(args); - if (result.handled) { + // Fast-path for --version/-v: zero module loading needed + if ( + args.length === 1 && + (args[0] === "--version" || args[0] === "-v" || args[0] === "-V") + ) { + // MACRO.VERSION is inlined at build time + // biome-ignore lint/suspicious/noConsole:: intentional console output + console.log(`${MACRO.VERSION} (Claude Code)`); return; - } - // If not handled (e.g., error), fall through to normal CLI - if (result.error) { - const { - exitWithError - } = await import('../utils/process.js'); - exitWithError(result.error); - } } - } - // Redirect common update flag mistakes to the update subcommand - if (args.length === 1 && (args[0] === '--update' || args[0] === '--upgrade')) { - process.argv = [process.argv[0]!, process.argv[1]!, 'update']; - } + // For all other paths, load the startup profiler + const { profileCheckpoint } = await import("../utils/startupProfiler.js"); + profileCheckpoint("cli_entry"); - // --bare: set SIMPLE early so gates fire during module eval / commander - // option building (not just inside the action handler). - if (args.includes('--bare')) { - process.env.CLAUDE_CODE_SIMPLE = '1'; - } + // Fast-path for --dump-system-prompt: output the rendered system prompt and exit. + // Used by prompt sensitivity evals to extract the system prompt at a specific commit. + // Ant-only: eliminated from external builds via feature flag. + if (feature("DUMP_SYSTEM_PROMPT") && args[0] === "--dump-system-prompt") { + profileCheckpoint("cli_dump_system_prompt_path"); + const { enableConfigs } = await import("../utils/config.js"); + enableConfigs(); + const { getMainLoopModel } = await import("../utils/model/model.js"); + const modelIdx = args.indexOf("--model"); + const model = + (modelIdx !== -1 && args[modelIdx + 1]) || getMainLoopModel(); + const { getSystemPrompt } = await import("../constants/prompts.js"); + const prompt = await getSystemPrompt([], model); + // biome-ignore lint/suspicious/noConsole:: intentional console output + console.log(prompt.join("\n")); + return; + } + if (process.argv[2] === "--claude-in-chrome-mcp") { + profileCheckpoint("cli_claude_in_chrome_mcp_path"); + const { runClaudeInChromeMcpServer } = + await import("../utils/claudeInChrome/mcpServer.js"); + await runClaudeInChromeMcpServer(); + return; + } else if (process.argv[2] === "--chrome-native-host") { + profileCheckpoint("cli_chrome_native_host_path"); + const { runChromeNativeHost } = + await import("../utils/claudeInChrome/chromeNativeHost.js"); + await runChromeNativeHost(); + return; + } else if ( + feature("CHICAGO_MCP") && + process.argv[2] === "--computer-use-mcp" + ) { + profileCheckpoint("cli_computer_use_mcp_path"); + const { runComputerUseMcpServer } = + await import("../utils/computerUse/mcpServer.js"); + await runComputerUseMcpServer(); + return; + } - // No special flags detected, load and run the full CLI - const { - startCapturingEarlyInput - } = await import('../utils/earlyInput.js'); - startCapturingEarlyInput(); - profileCheckpoint('cli_before_main_import'); - const { - main: cliMain - } = await import('../main.js'); - profileCheckpoint('cli_after_main_import'); - await cliMain(); - profileCheckpoint('cli_after_main_complete'); + // Fast-path for `--daemon-worker=` (internal — supervisor spawns this). + // Must come before the daemon subcommand check: spawned per-worker, so + // perf-sensitive. No enableConfigs(), no analytics sinks at this layer — + // workers are lean. If a worker kind needs configs/auth (assistant will), + // it calls them inside its run() fn. + if (feature("DAEMON") && args[0] === "--daemon-worker") { + const { runDaemonWorker } = await import("../daemon/workerRegistry.js"); + await runDaemonWorker(args[1]); + return; + } + + // Fast-path for `claude remote-control` (also accepts legacy `claude remote` / `claude sync` / `claude bridge`): + // serve local machine as bridge environment. + // feature() must stay inline for build-time dead code elimination; + // isBridgeEnabled() checks the runtime GrowthBook gate. + if ( + feature("BRIDGE_MODE") && + (args[0] === "remote-control" || + args[0] === "rc" || + args[0] === "remote" || + args[0] === "sync" || + args[0] === "bridge") + ) { + profileCheckpoint("cli_bridge_path"); + const { enableConfigs } = await import("../utils/config.js"); + enableConfigs(); + const { getBridgeDisabledReason, checkBridgeMinVersion } = + await import("../bridge/bridgeEnabled.js"); + const { BRIDGE_LOGIN_ERROR } = await import("../bridge/types.js"); + const { bridgeMain } = await import("../bridge/bridgeMain.js"); + const { exitWithError } = await import("../utils/process.js"); + + // Auth check must come before the GrowthBook gate check — without auth, + // GrowthBook has no user context and would return a stale/default false. + // getBridgeDisabledReason awaits GB init, so the returned value is fresh + // (not the stale disk cache), but init still needs auth headers to work. + const { getClaudeAIOAuthTokens } = await import("../utils/auth.js"); + if (!getClaudeAIOAuthTokens()?.accessToken) { + exitWithError(BRIDGE_LOGIN_ERROR); + } + const disabledReason = await getBridgeDisabledReason(); + if (disabledReason) { + exitWithError(`Error: ${disabledReason}`); + } + const versionError = checkBridgeMinVersion(); + if (versionError) { + exitWithError(versionError); + } + + // Bridge is a remote control feature - check policy limits + const { waitForPolicyLimitsToLoad, isPolicyAllowed } = + await import("../services/policyLimits/index.js"); + await waitForPolicyLimitsToLoad(); + if (!isPolicyAllowed("allow_remote_control")) { + exitWithError( + "Error: Remote Control is disabled by your organization's policy.", + ); + } + await bridgeMain(args.slice(1)); + return; + } + + // Fast-path for `claude daemon [subcommand]`: long-running supervisor. + if (feature("DAEMON") && args[0] === "daemon") { + profileCheckpoint("cli_daemon_path"); + const { enableConfigs } = await import("../utils/config.js"); + enableConfigs(); + const { initSinks } = await import("../utils/sinks.js"); + initSinks(); + const { daemonMain } = await import("../daemon/main.js"); + await daemonMain(args.slice(1)); + return; + } + + // Fast-path for `claude ps|logs|attach|kill` and `--bg`/`--background`. + // Session management against the ~/.claude/sessions/ registry. Flag + // literals are inlined so bg.js only loads when actually dispatching. + if ( + feature("BG_SESSIONS") && + (args[0] === "ps" || + args[0] === "logs" || + args[0] === "attach" || + args[0] === "kill" || + args.includes("--bg") || + args.includes("--background")) + ) { + profileCheckpoint("cli_bg_path"); + const { enableConfigs } = await import("../utils/config.js"); + enableConfigs(); + const bg = await import("../cli/bg.js"); + switch (args[0]) { + case "ps": + await bg.psHandler(args.slice(1)); + break; + case "logs": + await bg.logsHandler(args[1]); + break; + case "attach": + await bg.attachHandler(args[1]); + break; + case "kill": + await bg.killHandler(args[1]); + break; + default: + await bg.handleBgFlag(args); + } + return; + } + + // Fast-path for template job commands. + if ( + feature("TEMPLATES") && + (args[0] === "new" || args[0] === "list" || args[0] === "reply") + ) { + profileCheckpoint("cli_templates_path"); + const { templatesMain } = + await import("../cli/handlers/templateJobs.js"); + await templatesMain(args); + // process.exit (not return) — mountFleetView's Ink TUI can leave event + // loop handles that prevent natural exit. + // eslint-disable-next-line custom-rules/no-process-exit + process.exit(0); + } + + // Fast-path for `claude environment-runner`: headless BYOC runner. + // feature() must stay inline for build-time dead code elimination. + if ( + feature("BYOC_ENVIRONMENT_RUNNER") && + args[0] === "environment-runner" + ) { + profileCheckpoint("cli_environment_runner_path"); + const { environmentRunnerMain } = + await import("../environment-runner/main.js"); + await environmentRunnerMain(args.slice(1)); + return; + } + + // Fast-path for `claude self-hosted-runner`: headless self-hosted-runner + // targeting the SelfHostedRunnerWorkerService API (register + poll; poll IS + // heartbeat). feature() must stay inline for build-time dead code elimination. + if (feature("SELF_HOSTED_RUNNER") && args[0] === "self-hosted-runner") { + profileCheckpoint("cli_self_hosted_runner_path"); + const { selfHostedRunnerMain } = + await import("../self-hosted-runner/main.js"); + await selfHostedRunnerMain(args.slice(1)); + return; + } + + // Fast-path for --worktree --tmux: exec into tmux before loading full CLI + const hasTmuxFlag = + args.includes("--tmux") || args.includes("--tmux=classic"); + if ( + hasTmuxFlag && + (args.includes("-w") || + args.includes("--worktree") || + args.some((a) => a.startsWith("--worktree="))) + ) { + profileCheckpoint("cli_tmux_worktree_fast_path"); + const { enableConfigs } = await import("../utils/config.js"); + enableConfigs(); + const { isWorktreeModeEnabled } = + await import("../utils/worktreeModeEnabled.js"); + if (isWorktreeModeEnabled()) { + const { execIntoTmuxWorktree } = + await import("../utils/worktree.js"); + const result = await execIntoTmuxWorktree(args); + if (result.handled) { + return; + } + // If not handled (e.g., error), fall through to normal CLI + if (result.error) { + const { exitWithError } = await import("../utils/process.js"); + exitWithError(result.error); + } + } + } + + // Redirect common update flag mistakes to the update subcommand + if ( + args.length === 1 && + (args[0] === "--update" || args[0] === "--upgrade") + ) { + process.argv = [process.argv[0]!, process.argv[1]!, "update"]; + } + + // --bare: set SIMPLE early so gates fire during module eval / commander + // option building (not just inside the action handler). + if (args.includes("--bare")) { + process.env.CLAUDE_CODE_SIMPLE = "1"; + } + + // No special flags detected, load and run the full CLI + const { startCapturingEarlyInput } = await import("../utils/earlyInput.js"); + startCapturingEarlyInput(); + profileCheckpoint("cli_before_main_import"); + const { main: cliMain } = await import("../main.jsx"); + profileCheckpoint("cli_after_main_import"); + await cliMain(); + profileCheckpoint("cli_after_main_complete"); } // eslint-disable-next-line custom-rules/no-top-level-side-effects void main(); -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJmZWF0dXJlIiwicHJvY2VzcyIsImVudiIsIkNPUkVQQUNLX0VOQUJMRV9BVVRPX1BJTiIsIkNMQVVERV9DT0RFX1JFTU9URSIsImV4aXN0aW5nIiwiTk9ERV9PUFRJT05TIiwiQ0xBVURFX0NPREVfQUJMQVRJT05fQkFTRUxJTkUiLCJrIiwibWFpbiIsIlByb21pc2UiLCJhcmdzIiwiYXJndiIsInNsaWNlIiwibGVuZ3RoIiwiY29uc29sZSIsImxvZyIsIk1BQ1JPIiwiVkVSU0lPTiIsInByb2ZpbGVDaGVja3BvaW50IiwiZW5hYmxlQ29uZmlncyIsImdldE1haW5Mb29wTW9kZWwiLCJtb2RlbElkeCIsImluZGV4T2YiLCJtb2RlbCIsImdldFN5c3RlbVByb21wdCIsInByb21wdCIsImpvaW4iLCJydW5DbGF1ZGVJbkNocm9tZU1jcFNlcnZlciIsInJ1bkNocm9tZU5hdGl2ZUhvc3QiLCJydW5Db21wdXRlclVzZU1jcFNlcnZlciIsInJ1bkRhZW1vbldvcmtlciIsImdldEJyaWRnZURpc2FibGVkUmVhc29uIiwiY2hlY2tCcmlkZ2VNaW5WZXJzaW9uIiwiQlJJREdFX0xPR0lOX0VSUk9SIiwiYnJpZGdlTWFpbiIsImV4aXRXaXRoRXJyb3IiLCJnZXRDbGF1ZGVBSU9BdXRoVG9rZW5zIiwiYWNjZXNzVG9rZW4iLCJkaXNhYmxlZFJlYXNvbiIsInZlcnNpb25FcnJvciIsIndhaXRGb3JQb2xp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oints/sdk/controlTypes.js b/src/entrypoints/sdk/controlTypes.js new file mode 100644 index 0000000..6d5ce13 --- /dev/null +++ b/src/entrypoints/sdk/controlTypes.js @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type StdoutMessage = any; +export type SDKControlInitializeRequest = any; +export type SDKControlInitializeResponse = any; +export type SDKControlMcpSetServersResponse = any; +export type SDKControlReloadPluginsResponse = any; +export type StdinMessage = any; +export type SDKPartialAssistantMessage = any; diff --git a/src/entrypoints/sdk/controlTypes.ts b/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 0000000..455c42c --- /dev/null +++ b/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,16 @@ +/** + * Stub: SDK Control Types (not yet published in open-source). + * Used by bridge/transport layer for the control protocol. + */ +export type SDKControlRequest = { type: string; [key: string]: unknown } +export type SDKControlResponse = { type: string; [key: string]: unknown } +export type StdoutMessage = any; +export type SDKControlInitializeRequest = any; +export type SDKControlInitializeResponse = any; +export type SDKControlMcpSetServersResponse = any; +export type SDKControlReloadPluginsResponse = any; +export type StdinMessage = any; +export type SDKPartialAssistantMessage = any; +export type SDKControlPermissionRequest = any; +export type SDKControlCancelRequest = any; +export type SDKControlRequestInner = any; diff --git a/src/entrypoints/sdk/coreTypes.generated.ts b/src/entrypoints/sdk/coreTypes.generated.ts new file mode 100644 index 0000000..da90d54 --- /dev/null +++ b/src/entrypoints/sdk/coreTypes.generated.ts @@ -0,0 +1,144 @@ +/** + * Stub: Generated SDK core types. + * + * In the full build, this is auto-generated from coreSchemas.ts Zod schemas. + * Here we provide typed stubs for all the types referenced throughout the codebase. + */ + +// Usage & Model +export type ModelUsage = { + inputTokens: number + outputTokens: number + cacheReadInputTokens: number + cacheCreationInputTokens: number + webSearchRequests: number + costUSD: number + contextWindow: number + maxOutputTokens: number +} + +export type ApiKeySource = string + +export type ModelInfo = { + name: string + displayName?: string + [key: string]: unknown +} + +// MCP +export type McpServerConfigForProcessTransport = { + command: string + args: string[] + type?: "stdio" + env?: Record +} & { scope: string; pluginSource?: string } + +export type McpServerStatus = { + name: string + status: "connected" | "disconnected" | "error" + [key: string]: unknown +} + +// Permissions +export type PermissionMode = string + +export type PermissionResult = + | { behavior: "allow" } + | { behavior: "deny"; message?: string } + +export type PermissionUpdate = { + path: string + permission: string + [key: string]: unknown +} + +// Rewind +export type RewindFilesResult = { + filesChanged: string[] + [key: string]: unknown +} + +// Account +export type AccountInfo = Record + +// Hook input types +export type HookInput = { hook_event_name: string; [key: string]: unknown } +export type HookJSONOutput = Record +export type AsyncHookJSONOutput = Record +export type SyncHookJSONOutput = Record + +export type PreToolUseHookInput = HookInput & { tool_name: string } +export type PostToolUseHookInput = HookInput & { tool_name: string } +export type PostToolUseFailureHookInput = HookInput & { tool_name: string } +export type PermissionRequestHookInput = HookInput & { tool_name: string } +export type PermissionDeniedHookInput = HookInput +export type NotificationHookInput = HookInput & { message: string } +export type UserPromptSubmitHookInput = HookInput & { prompt: string } +export type SessionStartHookInput = HookInput +export type SessionEndHookInput = HookInput & { exit_reason: string } +export type SetupHookInput = HookInput +export type StopHookInput = HookInput +export type StopFailureHookInput = HookInput +export type SubagentStartHookInput = HookInput +export type SubagentStopHookInput = HookInput +export type PreCompactHookInput = HookInput +export type PostCompactHookInput = HookInput +export type TeammateIdleHookInput = HookInput +export type TaskCreatedHookInput = HookInput +export type TaskCompletedHookInput = HookInput +export type ElicitationHookInput = HookInput +export type ElicitationResultHookInput = HookInput +export type ConfigChangeHookInput = HookInput +export type InstructionsLoadedHookInput = HookInput +export type CwdChangedHookInput = HookInput & { cwd: string } +export type FileChangedHookInput = HookInput & { path: string } + +// SDK Message types +export type SDKMessage = { type: string; [key: string]: unknown } +export type SDKUserMessage = { type: "user"; content: unknown; uuid: string; [key: string]: unknown } +export type SDKUserMessageReplay = SDKUserMessage +export type SDKAssistantMessage = { type: "assistant"; content: unknown; [key: string]: unknown } +export type SDKAssistantMessageError = { type: "assistant_error"; error: unknown; [key: string]: unknown } +export type SDKPartialAssistantMessage = { type: "partial_assistant"; [key: string]: unknown } +export type SDKResultMessage = { type: "result"; [key: string]: unknown } +export type SDKResultSuccess = { type: "result_success"; [key: string]: unknown } +export type SDKSystemMessage = { type: "system"; [key: string]: unknown } +export type SDKStatusMessage = { type: "status"; [key: string]: unknown } +export type SDKToolProgressMessage = { type: "tool_progress"; [key: string]: unknown } +export type SDKCompactBoundaryMessage = { type: "compact_boundary"; [key: string]: unknown } +export type SDKPermissionDenial = { type: "permission_denial"; [key: string]: unknown } +export type SDKRateLimitInfo = { type: "rate_limit"; [key: string]: unknown } +export type SDKStatus = "active" | "idle" | "error" | string + +export type SDKSessionInfo = { + sessionId: string + summary?: string + [key: string]: unknown +} + +// Other referenced types +export type OutputFormat = { type: "json_schema"; schema: Record } +export type ConfigScope = string +export type SdkBeta = string +export type ThinkingConfig = { type: string; [key: string]: unknown } +export type McpStdioServerConfig = { command: string; args: string[]; type: "stdio"; env?: Record } +export type McpSSEServerConfig = { type: "sse"; url: string; [key: string]: unknown } +export type McpHttpServerConfig = { type: "http"; url: string; [key: string]: unknown } +export type McpSdkServerConfig = { type: "sdk"; [key: string]: unknown } +export type McpClaudeAIProxyServerConfig = { type: "claudeai-proxy"; [key: string]: unknown } +export type McpServerStatusConfig = { [key: string]: unknown } +export type McpSetServersResult = { [key: string]: unknown } +export type PermissionUpdateDestination = string +export type PermissionBehavior = string +export type PermissionRuleValue = string +export type PermissionDecisionClassification = string +export type PromptRequestOption = { [key: string]: unknown } +export type PromptRequest = { [key: string]: unknown } +export type PromptResponse = { [key: string]: unknown } +export type SlashCommand = { [key: string]: unknown } +export type AgentInfo = { [key: string]: unknown } +export type AgentMcpServerSpec = { [key: string]: unknown } +export type AgentDefinition = { [key: string]: unknown } +export type SettingSource = { [key: string]: unknown } +export type SdkPluginConfig = { [key: string]: unknown } +export type FastModeState = { [key: string]: unknown } diff --git a/src/entrypoints/sdk/runtimeTypes.js b/src/entrypoints/sdk/runtimeTypes.js new file mode 100644 index 0000000..bdcefcb --- /dev/null +++ b/src/entrypoints/sdk/runtimeTypes.js @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EffortLevel = any; diff --git a/src/entrypoints/sdk/runtimeTypes.ts b/src/entrypoints/sdk/runtimeTypes.ts new file mode 100644 index 0000000..262fb9d --- /dev/null +++ b/src/entrypoints/sdk/runtimeTypes.ts @@ -0,0 +1,63 @@ +/** + * Stub: SDK Runtime Types (not yet published in open-source). + * Non-serializable types: callbacks, interfaces with methods. + */ + +export type AnyZodRawShape = Record +export type InferShape = { [K in keyof T]: any } + +export type ForkSessionOptions = { dir?: string; upToMessageId?: string; title?: string } +export type ForkSessionResult = { sessionId: string } +export type GetSessionInfoOptions = { dir?: string } +export type GetSessionMessagesOptions = { dir?: string; limit?: number; offset?: number; includeSystemMessages?: boolean } +export type ListSessionsOptions = { dir?: string; limit?: number; offset?: number } +export type SessionMutationOptions = { dir?: string } +export type SessionMessage = { role: string; content: unknown; [key: string]: unknown } + +export interface SDKSession { + sessionId: string + prompt(input: string | AsyncIterable): Promise + abort(): void + [key: string]: unknown +} + +export type SDKSessionOptions = { + model?: string + systemPrompt?: string + [key: string]: unknown +} + +export interface SdkMcpToolDefinition { + name: string + description: string + inputSchema: T + handler: (args: InferShape, extra: unknown) => Promise + [key: string]: unknown +} + +export type McpSdkServerConfigWithInstance = { + name: string + version?: string + tools?: SdkMcpToolDefinition[] + [key: string]: unknown +} + +export interface Options { + model?: string + systemPrompt?: string + [key: string]: unknown +} + +export interface InternalOptions extends Options { + [key: string]: unknown +} + +export interface Query { + [Symbol.asyncIterator](): AsyncIterator + [key: string]: unknown +} + +export interface InternalQuery extends Query { + [key: string]: unknown +} +export type EffortLevel = any; diff --git a/src/entrypoints/sdk/sdkUtilityTypes.ts b/src/entrypoints/sdk/sdkUtilityTypes.ts new file mode 100644 index 0000000..4ef2dba --- /dev/null +++ b/src/entrypoints/sdk/sdkUtilityTypes.ts @@ -0,0 +1,10 @@ +/** + * Stub: SDK Utility Types. + */ +export type NonNullableUsage = { + inputTokens: number + outputTokens: number + cacheReadInputTokens: number + cacheCreationInputTokens: number + [key: string]: unknown +} diff --git a/src/entrypoints/sdk/settingsTypes.generated.ts b/src/entrypoints/sdk/settingsTypes.generated.ts new file mode 100644 index 0000000..d4209e3 --- /dev/null +++ b/src/entrypoints/sdk/settingsTypes.generated.ts @@ -0,0 +1,4 @@ +/** + * Stub: SDK Settings Types (generated from settings JSON schema). + */ +export type Settings = Record diff --git a/src/entrypoints/sdk/toolTypes.ts b/src/entrypoints/sdk/toolTypes.ts new file mode 100644 index 0000000..1dc1d7a --- /dev/null +++ b/src/entrypoints/sdk/toolTypes.ts @@ -0,0 +1,9 @@ +/** + * Stub: SDK Tool Types. + */ +export type SdkToolDefinition = { + name: string + description: string + inputSchema: Record + [key: string]: unknown +} diff --git a/src/entrypoints/src/bootstrap/state.ts b/src/entrypoints/src/bootstrap/state.ts new file mode 100644 index 0000000..9f1f964 --- /dev/null +++ b/src/entrypoints/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getIsNonInteractiveSession = any; diff --git a/src/entrypoints/src/state/AppStateStore.ts b/src/entrypoints/src/state/AppStateStore.ts new file mode 100644 index 0000000..1d4f082 --- /dev/null +++ b/src/entrypoints/src/state/AppStateStore.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDefaultAppState = any; diff --git a/src/environment-runner/main.ts b/src/environment-runner/main.ts new file mode 100644 index 0000000..e60abec --- /dev/null +++ b/src/environment-runner/main.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const environmentRunnerMain: any = (() => {}) as any; diff --git a/src/hooks/notifs/src/context/notifications.ts b/src/hooks/notifs/src/context/notifications.ts new file mode 100644 index 0000000..95d2759 --- /dev/null +++ b/src/hooks/notifs/src/context/notifications.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useNotifications = any; +export type Notification = any; diff --git a/src/hooks/notifs/src/ink.ts b/src/hooks/notifs/src/ink.ts new file mode 100644 index 0000000..9fa0986 --- /dev/null +++ b/src/hooks/notifs/src/ink.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Text = any; diff --git a/src/hooks/notifs/src/services/claudeAiLimits.ts b/src/hooks/notifs/src/services/claudeAiLimits.ts new file mode 100644 index 0000000..4dceb08 --- /dev/null +++ b/src/hooks/notifs/src/services/claudeAiLimits.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getRateLimitWarning = any; +export type getUsingOverageText = any; diff --git a/src/hooks/notifs/src/services/claudeAiLimitsHook.ts b/src/hooks/notifs/src/services/claudeAiLimitsHook.ts new file mode 100644 index 0000000..6178529 --- /dev/null +++ b/src/hooks/notifs/src/services/claudeAiLimitsHook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useClaudeAiLimits = any; diff --git a/src/hooks/notifs/src/services/mcp/types.ts b/src/hooks/notifs/src/services/mcp/types.ts new file mode 100644 index 0000000..be4f983 --- /dev/null +++ b/src/hooks/notifs/src/services/mcp/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MCPServerConnection = any; diff --git a/src/hooks/notifs/src/services/oauth/getOauthProfile.ts b/src/hooks/notifs/src/services/oauth/getOauthProfile.ts new file mode 100644 index 0000000..3741d64 --- /dev/null +++ b/src/hooks/notifs/src/services/oauth/getOauthProfile.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthProfileFromApiKey = any; diff --git a/src/hooks/notifs/src/state/AppState.ts b/src/hooks/notifs/src/state/AppState.ts new file mode 100644 index 0000000..cc3978f --- /dev/null +++ b/src/hooks/notifs/src/state/AppState.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useSetAppState = any; diff --git a/src/hooks/notifs/src/utils/auth.ts b/src/hooks/notifs/src/utils/auth.ts new file mode 100644 index 0000000..c473f17 --- /dev/null +++ b/src/hooks/notifs/src/utils/auth.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getSubscriptionType = any; +export type isClaudeAISubscriber = any; diff --git a/src/hooks/notifs/src/utils/billing.ts b/src/hooks/notifs/src/utils/billing.ts new file mode 100644 index 0000000..fd3cae2 --- /dev/null +++ b/src/hooks/notifs/src/utils/billing.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type hasClaudeAiBillingAccess = any; diff --git a/src/hooks/notifs/src/utils/bundledMode.ts b/src/hooks/notifs/src/utils/bundledMode.ts new file mode 100644 index 0000000..d2d26c4 --- /dev/null +++ b/src/hooks/notifs/src/utils/bundledMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isInBundledMode = any; diff --git a/src/hooks/notifs/src/utils/config.ts b/src/hooks/notifs/src/utils/config.ts new file mode 100644 index 0000000..a42d3c9 --- /dev/null +++ b/src/hooks/notifs/src/utils/config.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; +export type saveGlobalConfig = any; +export type GlobalConfig = any; diff --git a/src/hooks/notifs/src/utils/doctorDiagnostic.ts b/src/hooks/notifs/src/utils/doctorDiagnostic.ts new file mode 100644 index 0000000..ed3809f --- /dev/null +++ b/src/hooks/notifs/src/utils/doctorDiagnostic.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCurrentInstallationType = any; diff --git a/src/hooks/notifs/src/utils/envUtils.ts b/src/hooks/notifs/src/utils/envUtils.ts new file mode 100644 index 0000000..deb3490 --- /dev/null +++ b/src/hooks/notifs/src/utils/envUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isEnvTruthy = any; diff --git a/src/hooks/notifs/src/utils/fastMode.ts b/src/hooks/notifs/src/utils/fastMode.ts new file mode 100644 index 0000000..14189e5 --- /dev/null +++ b/src/hooks/notifs/src/utils/fastMode.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type CooldownReason = any; +export type isFastModeEnabled = any; +export type onCooldownExpired = any; +export type onCooldownTriggered = any; +export type onFastModeOverageRejection = any; +export type onOrgFastModeChanged = any; diff --git a/src/hooks/notifs/src/utils/format.ts b/src/hooks/notifs/src/utils/format.ts new file mode 100644 index 0000000..8cb04d1 --- /dev/null +++ b/src/hooks/notifs/src/utils/format.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type formatDuration = any; diff --git a/src/hooks/notifs/src/utils/ide.ts b/src/hooks/notifs/src/utils/ide.ts new file mode 100644 index 0000000..3903e6d --- /dev/null +++ b/src/hooks/notifs/src/utils/ide.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type detectIDEs = any; +export type IDEExtensionInstallationStatus = any; +export type isJetBrainsIde = any; +export type isSupportedTerminal = any; diff --git a/src/hooks/notifs/src/utils/model/deprecation.ts b/src/hooks/notifs/src/utils/model/deprecation.ts new file mode 100644 index 0000000..2a5102d --- /dev/null +++ b/src/hooks/notifs/src/utils/model/deprecation.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModelDeprecationWarning = any; diff --git a/src/hooks/notifs/src/utils/nativeInstaller/index.ts b/src/hooks/notifs/src/utils/nativeInstaller/index.ts new file mode 100644 index 0000000..19088d1 --- /dev/null +++ b/src/hooks/notifs/src/utils/nativeInstaller/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type checkInstall = any; diff --git a/src/hooks/notifs/useAntOrgWarningNotification.ts b/src/hooks/notifs/useAntOrgWarningNotification.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/hooks/notifs/useAntOrgWarningNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/hooks/src/bootstrap/state.ts b/src/hooks/src/bootstrap/state.ts new file mode 100644 index 0000000..5c3776b --- /dev/null +++ b/src/hooks/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setTeleportedSessionInfo = any; diff --git a/src/hooks/src/components/PromptInput/PromptInputFooterSuggestions.ts b/src/hooks/src/components/PromptInput/PromptInputFooterSuggestions.ts new file mode 100644 index 0000000..d0fd674 --- /dev/null +++ b/src/hooks/src/components/PromptInput/PromptInputFooterSuggestions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SuggestionItem = any; diff --git a/src/hooks/src/components/PromptInput/inputModes.ts b/src/hooks/src/components/PromptInput/inputModes.ts new file mode 100644 index 0000000..22713bb --- /dev/null +++ b/src/hooks/src/components/PromptInput/inputModes.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isInputModeCharacter = any; +export type getModeFromInput = any; diff --git a/src/hooks/src/context/notifications.ts b/src/hooks/src/context/notifications.ts new file mode 100644 index 0000000..82956e6 --- /dev/null +++ b/src/hooks/src/context/notifications.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useNotifications = any; diff --git a/src/hooks/src/hooks/fileSuggestions.ts b/src/hooks/src/hooks/fileSuggestions.ts new file mode 100644 index 0000000..273e550 --- /dev/null +++ b/src/hooks/src/hooks/fileSuggestions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type generateFileSuggestions = any; diff --git a/src/hooks/src/ink.ts b/src/hooks/src/ink.ts new file mode 100644 index 0000000..9fa0986 --- /dev/null +++ b/src/hooks/src/ink.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Text = any; diff --git a/src/hooks/src/ink/components/TerminalSizeContext.ts b/src/hooks/src/ink/components/TerminalSizeContext.ts new file mode 100644 index 0000000..c0d125b --- /dev/null +++ b/src/hooks/src/ink/components/TerminalSizeContext.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type TerminalSize = any; +export type TerminalSizeContext = any; diff --git a/src/hooks/src/services/analytics/index.ts b/src/hooks/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/hooks/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/hooks/src/services/analytics/metadata.ts b/src/hooks/src/services/analytics/metadata.ts new file mode 100644 index 0000000..dd7c409 --- /dev/null +++ b/src/hooks/src/services/analytics/metadata.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type sanitizeToolNameForAnalytics = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/hooks/src/services/mcp/types.ts b/src/hooks/src/services/mcp/types.ts new file mode 100644 index 0000000..a0f730e --- /dev/null +++ b/src/hooks/src/services/mcp/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ServerResource = any; diff --git a/src/hooks/src/state/AppState.ts b/src/hooks/src/state/AppState.ts new file mode 100644 index 0000000..f1e2aa6 --- /dev/null +++ b/src/hooks/src/state/AppState.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type useAppState = any; +export type useAppStateStore = any; +export type useSetAppState = any; diff --git a/src/hooks/src/tools/AgentTool/agentColorManager.ts b/src/hooks/src/tools/AgentTool/agentColorManager.ts new file mode 100644 index 0000000..8372044 --- /dev/null +++ b/src/hooks/src/tools/AgentTool/agentColorManager.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAgentColor = any; diff --git a/src/hooks/src/tools/AgentTool/loadAgentsDir.ts b/src/hooks/src/tools/AgentTool/loadAgentsDir.ts new file mode 100644 index 0000000..527a816 --- /dev/null +++ b/src/hooks/src/tools/AgentTool/loadAgentsDir.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AgentDefinition = any; diff --git a/src/hooks/src/utils/conversationRecovery.ts b/src/hooks/src/utils/conversationRecovery.ts new file mode 100644 index 0000000..ecd18bd --- /dev/null +++ b/src/hooks/src/utils/conversationRecovery.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TeleportRemoteResponse = any; diff --git a/src/hooks/src/utils/fileRead.ts b/src/hooks/src/utils/fileRead.ts new file mode 100644 index 0000000..1085369 --- /dev/null +++ b/src/hooks/src/utils/fileRead.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type readFileSync = any; diff --git a/src/hooks/src/utils/format.ts b/src/hooks/src/utils/format.ts new file mode 100644 index 0000000..b4e3460 --- /dev/null +++ b/src/hooks/src/utils/format.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type truncateToWidth = any; diff --git a/src/hooks/src/utils/log.ts b/src/hooks/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/hooks/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/hooks/src/utils/markdownConfigLoader.ts b/src/hooks/src/utils/markdownConfigLoader.ts new file mode 100644 index 0000000..2c3f2d0 --- /dev/null +++ b/src/hooks/src/utils/markdownConfigLoader.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type CLAUDE_CONFIG_DIRECTORIES = any; +export type loadMarkdownFilesForSubdir = any; diff --git a/src/hooks/src/utils/path.ts b/src/hooks/src/utils/path.ts new file mode 100644 index 0000000..a965844 --- /dev/null +++ b/src/hooks/src/utils/path.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type expandPath = any; diff --git a/src/hooks/src/utils/teleport/api.ts b/src/hooks/src/utils/teleport/api.ts new file mode 100644 index 0000000..d43b96c --- /dev/null +++ b/src/hooks/src/utils/teleport/api.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CodeSession = any; diff --git a/src/hooks/src/utils/theme.ts b/src/hooks/src/utils/theme.ts new file mode 100644 index 0000000..c6999a6 --- /dev/null +++ b/src/hooks/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Theme = any; diff --git a/src/hooks/toolPermission/handlers/src/utils/debug.ts b/src/hooks/toolPermission/handlers/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/hooks/toolPermission/handlers/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/hooks/toolPermission/src/services/analytics/index.ts b/src/hooks/toolPermission/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/hooks/toolPermission/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/hooks/toolPermission/src/services/analytics/metadata.ts b/src/hooks/toolPermission/src/services/analytics/metadata.ts new file mode 100644 index 0000000..8076027 --- /dev/null +++ b/src/hooks/toolPermission/src/services/analytics/metadata.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type sanitizeToolNameForAnalytics = any; diff --git a/src/ink/components/Box.tsx b/src/ink/components/Box.tsx index 67f2500..265a4ad 100644 --- a/src/ink/components/Box.tsx +++ b/src/ink/components/Box.tsx @@ -1,5 +1,4 @@ import { c as _c } from "react/compiler-runtime"; -import '../global.d.ts'; import React, { type PropsWithChildren, type Ref } from 'react'; import type { Except } from 'type-fest'; import type { DOMElement } from '../dom.js'; diff --git a/src/ink/components/ScrollBox.tsx b/src/ink/components/ScrollBox.tsx index 03e4a31..a992633 100644 --- a/src/ink/components/ScrollBox.tsx +++ b/src/ink/components/ScrollBox.tsx @@ -5,7 +5,6 @@ import type { DOMElement } from '../dom.js'; import { markDirty, scheduleRenderFrom } from '../dom.js'; import { markCommitStart } from '../reconciler.js'; import type { Styles } from '../styles.js'; -import '../global.d.ts'; import Box from './Box.js'; export type ScrollBoxHandle = { scrollTo: (y: number) => void; diff --git a/src/ink/cursor.ts b/src/ink/cursor.ts new file mode 100644 index 0000000..dc58a0e --- /dev/null +++ b/src/ink/cursor.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type Cursor = any; diff --git a/src/ink/devtools.ts b/src/ink/devtools.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/ink/devtools.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/ink/events/paste-event.ts b/src/ink/events/paste-event.ts new file mode 100644 index 0000000..14136e7 --- /dev/null +++ b/src/ink/events/paste-event.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type PasteEvent = any; diff --git a/src/ink/events/resize-event.ts b/src/ink/events/resize-event.ts new file mode 100644 index 0000000..99d5969 --- /dev/null +++ b/src/ink/events/resize-event.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type ResizeEvent = any; diff --git a/src/ink/src/bootstrap/state.ts b/src/ink/src/bootstrap/state.ts new file mode 100644 index 0000000..875ce2b --- /dev/null +++ b/src/ink/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type flushInteractionTime = any; diff --git a/src/ink/src/native-ts/yoga-layout/index.ts b/src/ink/src/native-ts/yoga-layout/index.ts new file mode 100644 index 0000000..c75a2b0 --- /dev/null +++ b/src/ink/src/native-ts/yoga-layout/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getYogaCounters = any; diff --git a/src/ink/src/utils/debug.ts b/src/ink/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/ink/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/ink/src/utils/log.ts b/src/ink/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/ink/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/jobs/classifier.ts b/src/jobs/classifier.ts new file mode 100644 index 0000000..8e29d2a --- /dev/null +++ b/src/jobs/classifier.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const classifyAndWriteState: any = (() => {}) as any; diff --git a/src/keybindings/src/utils/semver.ts b/src/keybindings/src/utils/semver.ts new file mode 100644 index 0000000..28b4387 --- /dev/null +++ b/src/keybindings/src/utils/semver.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type satisfies = any; diff --git a/src/keybindings/types.ts b/src/keybindings/types.ts new file mode 100644 index 0000000..e328442 --- /dev/null +++ b/src/keybindings/types.ts @@ -0,0 +1,7 @@ +// Auto-generated stub — replace with real implementation +export type ParsedBinding = any; +export type ParsedKeystroke = any; +export type KeybindingContextName = any; +export type KeybindingBlock = any; +export type Chord = any; +export type KeybindingAction = any; diff --git a/src/memdir/memoryShapeTelemetry.ts b/src/memdir/memoryShapeTelemetry.ts new file mode 100644 index 0000000..4a54291 --- /dev/null +++ b/src/memdir/memoryShapeTelemetry.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const logMemoryRecallShape: any = (() => {}) as any; +export const logMemoryWriteShape: any = (() => {}) as any; diff --git a/src/migrations/src/services/analytics/index.ts b/src/migrations/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/migrations/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/proactive/index.ts b/src/proactive/index.ts new file mode 100644 index 0000000..c7f7bfc --- /dev/null +++ b/src/proactive/index.ts @@ -0,0 +1,6 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isProactiveActive: any = (() => {}) as any; +export const activateProactive: any = (() => {}) as any; +export const isProactivePaused: any = (() => {}) as any; +export const deactivateProactive: any = (() => {}) as any; diff --git a/src/query/transitions.ts b/src/query/transitions.ts new file mode 100644 index 0000000..f8fe515 --- /dev/null +++ b/src/query/transitions.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type Terminal = any; +export type Continue = any; diff --git a/src/schemas/src/entrypoints/agentSdkTypes.ts b/src/schemas/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..264ee1c --- /dev/null +++ b/src/schemas/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type HOOK_EVENTS = any; +export type HookEvent = any; diff --git a/src/screens/src/cli/structuredIO.ts b/src/screens/src/cli/structuredIO.ts new file mode 100644 index 0000000..8e536b8 --- /dev/null +++ b/src/screens/src/cli/structuredIO.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SANDBOX_NETWORK_ACCESS_TOOL_NAME = any; diff --git a/src/screens/src/components/AutoModeOptInDialog.ts b/src/screens/src/components/AutoModeOptInDialog.ts new file mode 100644 index 0000000..f441f7e --- /dev/null +++ b/src/screens/src/components/AutoModeOptInDialog.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AUTO_MODE_DESCRIPTION = any; diff --git a/src/screens/src/components/ClaudeCodeHint/PluginHintMenu.ts b/src/screens/src/components/ClaudeCodeHint/PluginHintMenu.ts new file mode 100644 index 0000000..2369289 --- /dev/null +++ b/src/screens/src/components/ClaudeCodeHint/PluginHintMenu.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PluginHintMenu = any; diff --git a/src/screens/src/components/DesktopUpsell/DesktopUpsellStartup.ts b/src/screens/src/components/DesktopUpsell/DesktopUpsellStartup.ts new file mode 100644 index 0000000..fcb5dc7 --- /dev/null +++ b/src/screens/src/components/DesktopUpsell/DesktopUpsellStartup.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type DesktopUpsellStartup = any; +export type shouldShowDesktopUpsellStartup = any; diff --git a/src/screens/src/components/FeedbackSurvey/FeedbackSurvey.ts b/src/screens/src/components/FeedbackSurvey/FeedbackSurvey.ts new file mode 100644 index 0000000..2466dd0 --- /dev/null +++ b/src/screens/src/components/FeedbackSurvey/FeedbackSurvey.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FeedbackSurvey = any; diff --git a/src/screens/src/components/FeedbackSurvey/useFeedbackSurvey.ts b/src/screens/src/components/FeedbackSurvey/useFeedbackSurvey.ts new file mode 100644 index 0000000..dcff53c --- /dev/null +++ b/src/screens/src/components/FeedbackSurvey/useFeedbackSurvey.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useFeedbackSurvey = any; diff --git a/src/screens/src/components/FeedbackSurvey/useMemorySurvey.ts b/src/screens/src/components/FeedbackSurvey/useMemorySurvey.ts new file mode 100644 index 0000000..f7e0029 --- /dev/null +++ b/src/screens/src/components/FeedbackSurvey/useMemorySurvey.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useMemorySurvey = any; diff --git a/src/screens/src/components/FeedbackSurvey/usePostCompactSurvey.ts b/src/screens/src/components/FeedbackSurvey/usePostCompactSurvey.ts new file mode 100644 index 0000000..e81d326 --- /dev/null +++ b/src/screens/src/components/FeedbackSurvey/usePostCompactSurvey.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type usePostCompactSurvey = any; diff --git a/src/screens/src/components/KeybindingWarnings.ts b/src/screens/src/components/KeybindingWarnings.ts new file mode 100644 index 0000000..e57e1f7 --- /dev/null +++ b/src/screens/src/components/KeybindingWarnings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type KeybindingWarnings = any; diff --git a/src/screens/src/components/LspRecommendation/LspRecommendationMenu.ts b/src/screens/src/components/LspRecommendation/LspRecommendationMenu.ts new file mode 100644 index 0000000..0628cdc --- /dev/null +++ b/src/screens/src/components/LspRecommendation/LspRecommendationMenu.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LspRecommendationMenu = any; diff --git a/src/screens/src/components/SandboxViolationExpandedView.ts b/src/screens/src/components/SandboxViolationExpandedView.ts new file mode 100644 index 0000000..4af5947 --- /dev/null +++ b/src/screens/src/components/SandboxViolationExpandedView.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SandboxViolationExpandedView = any; diff --git a/src/screens/src/components/mcp/McpParsingWarnings.ts b/src/screens/src/components/mcp/McpParsingWarnings.ts new file mode 100644 index 0000000..ab05516 --- /dev/null +++ b/src/screens/src/components/mcp/McpParsingWarnings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type McpParsingWarnings = any; diff --git a/src/screens/src/components/messages/UserTextMessage.ts b/src/screens/src/components/messages/UserTextMessage.ts new file mode 100644 index 0000000..40106ed --- /dev/null +++ b/src/screens/src/components/messages/UserTextMessage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type UserTextMessage = any; diff --git a/src/screens/src/components/permissions/SandboxPermissionRequest.ts b/src/screens/src/components/permissions/SandboxPermissionRequest.ts new file mode 100644 index 0000000..bd5e216 --- /dev/null +++ b/src/screens/src/components/permissions/SandboxPermissionRequest.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SandboxPermissionRequest = any; diff --git a/src/screens/src/hooks/notifs/useAutoModeUnavailableNotification.ts b/src/screens/src/hooks/notifs/useAutoModeUnavailableNotification.ts new file mode 100644 index 0000000..b240eb3 --- /dev/null +++ b/src/screens/src/hooks/notifs/useAutoModeUnavailableNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useAutoModeUnavailableNotification = any; diff --git a/src/screens/src/hooks/notifs/useCanSwitchToExistingSubscription.ts b/src/screens/src/hooks/notifs/useCanSwitchToExistingSubscription.ts new file mode 100644 index 0000000..7a4814c --- /dev/null +++ b/src/screens/src/hooks/notifs/useCanSwitchToExistingSubscription.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useCanSwitchToExistingSubscription = any; diff --git a/src/screens/src/hooks/notifs/useDeprecationWarningNotification.ts b/src/screens/src/hooks/notifs/useDeprecationWarningNotification.ts new file mode 100644 index 0000000..c919ed0 --- /dev/null +++ b/src/screens/src/hooks/notifs/useDeprecationWarningNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useDeprecationWarningNotification = any; diff --git a/src/screens/src/hooks/notifs/useFastModeNotification.ts b/src/screens/src/hooks/notifs/useFastModeNotification.ts new file mode 100644 index 0000000..2d81922 --- /dev/null +++ b/src/screens/src/hooks/notifs/useFastModeNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useFastModeNotification = any; diff --git a/src/screens/src/hooks/notifs/useIDEStatusIndicator.ts b/src/screens/src/hooks/notifs/useIDEStatusIndicator.ts new file mode 100644 index 0000000..c85b1a3 --- /dev/null +++ b/src/screens/src/hooks/notifs/useIDEStatusIndicator.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useIDEStatusIndicator = any; diff --git a/src/screens/src/hooks/notifs/useInstallMessages.ts b/src/screens/src/hooks/notifs/useInstallMessages.ts new file mode 100644 index 0000000..033331f --- /dev/null +++ b/src/screens/src/hooks/notifs/useInstallMessages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useInstallMessages = any; diff --git a/src/screens/src/hooks/notifs/useLspInitializationNotification.ts b/src/screens/src/hooks/notifs/useLspInitializationNotification.ts new file mode 100644 index 0000000..67239f6 --- /dev/null +++ b/src/screens/src/hooks/notifs/useLspInitializationNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useLspInitializationNotification = any; diff --git a/src/screens/src/hooks/notifs/useMcpConnectivityStatus.ts b/src/screens/src/hooks/notifs/useMcpConnectivityStatus.ts new file mode 100644 index 0000000..7abc0f5 --- /dev/null +++ b/src/screens/src/hooks/notifs/useMcpConnectivityStatus.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useMcpConnectivityStatus = any; diff --git a/src/screens/src/hooks/notifs/useModelMigrationNotifications.ts b/src/screens/src/hooks/notifs/useModelMigrationNotifications.ts new file mode 100644 index 0000000..2dbde4b --- /dev/null +++ b/src/screens/src/hooks/notifs/useModelMigrationNotifications.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useModelMigrationNotifications = any; diff --git a/src/screens/src/hooks/notifs/useNpmDeprecationNotification.ts b/src/screens/src/hooks/notifs/useNpmDeprecationNotification.ts new file mode 100644 index 0000000..ee5cd80 --- /dev/null +++ b/src/screens/src/hooks/notifs/useNpmDeprecationNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useNpmDeprecationNotification = any; diff --git a/src/screens/src/hooks/notifs/usePluginAutoupdateNotification.ts b/src/screens/src/hooks/notifs/usePluginAutoupdateNotification.ts new file mode 100644 index 0000000..020e8df --- /dev/null +++ b/src/screens/src/hooks/notifs/usePluginAutoupdateNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type usePluginAutoupdateNotification = any; diff --git a/src/screens/src/hooks/notifs/usePluginInstallationStatus.ts b/src/screens/src/hooks/notifs/usePluginInstallationStatus.ts new file mode 100644 index 0000000..c209540 --- /dev/null +++ b/src/screens/src/hooks/notifs/usePluginInstallationStatus.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type usePluginInstallationStatus = any; diff --git a/src/screens/src/hooks/notifs/useRateLimitWarningNotification.ts b/src/screens/src/hooks/notifs/useRateLimitWarningNotification.ts new file mode 100644 index 0000000..81d3a76 --- /dev/null +++ b/src/screens/src/hooks/notifs/useRateLimitWarningNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useRateLimitWarningNotification = any; diff --git a/src/screens/src/hooks/notifs/useSettingsErrors.ts b/src/screens/src/hooks/notifs/useSettingsErrors.ts new file mode 100644 index 0000000..0724b24 --- /dev/null +++ b/src/screens/src/hooks/notifs/useSettingsErrors.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useSettingsErrors = any; diff --git a/src/screens/src/hooks/notifs/useTeammateShutdownNotification.ts b/src/screens/src/hooks/notifs/useTeammateShutdownNotification.ts new file mode 100644 index 0000000..9fd3f8a --- /dev/null +++ b/src/screens/src/hooks/notifs/useTeammateShutdownNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useTeammateLifecycleNotification = any; diff --git a/src/screens/src/hooks/useAwaySummary.ts b/src/screens/src/hooks/useAwaySummary.ts new file mode 100644 index 0000000..4455dec --- /dev/null +++ b/src/screens/src/hooks/useAwaySummary.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useAwaySummary = any; diff --git a/src/screens/src/hooks/useChromeExtensionNotification.ts b/src/screens/src/hooks/useChromeExtensionNotification.ts new file mode 100644 index 0000000..c97ee1f --- /dev/null +++ b/src/screens/src/hooks/useChromeExtensionNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useChromeExtensionNotification = any; diff --git a/src/screens/src/hooks/useClaudeCodeHintRecommendation.ts b/src/screens/src/hooks/useClaudeCodeHintRecommendation.ts new file mode 100644 index 0000000..83701c8 --- /dev/null +++ b/src/screens/src/hooks/useClaudeCodeHintRecommendation.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useClaudeCodeHintRecommendation = any; diff --git a/src/screens/src/hooks/useFileHistorySnapshotInit.ts b/src/screens/src/hooks/useFileHistorySnapshotInit.ts new file mode 100644 index 0000000..8d14981 --- /dev/null +++ b/src/screens/src/hooks/useFileHistorySnapshotInit.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useFileHistorySnapshotInit = any; diff --git a/src/screens/src/hooks/useLspPluginRecommendation.ts b/src/screens/src/hooks/useLspPluginRecommendation.ts new file mode 100644 index 0000000..c6d24fa --- /dev/null +++ b/src/screens/src/hooks/useLspPluginRecommendation.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useLspPluginRecommendation = any; diff --git a/src/screens/src/hooks/useOfficialMarketplaceNotification.ts b/src/screens/src/hooks/useOfficialMarketplaceNotification.ts new file mode 100644 index 0000000..95d10a3 --- /dev/null +++ b/src/screens/src/hooks/useOfficialMarketplaceNotification.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useOfficialMarketplaceNotification = any; diff --git a/src/screens/src/hooks/usePromptsFromClaudeInChrome.ts b/src/screens/src/hooks/usePromptsFromClaudeInChrome.ts new file mode 100644 index 0000000..ca8e71f --- /dev/null +++ b/src/screens/src/hooks/usePromptsFromClaudeInChrome.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type usePromptsFromClaudeInChrome = any; diff --git a/src/screens/src/hooks/useTerminalSize.ts b/src/screens/src/hooks/useTerminalSize.ts new file mode 100644 index 0000000..4a0ef3e --- /dev/null +++ b/src/screens/src/hooks/useTerminalSize.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type useTerminalSize = any; diff --git a/src/screens/src/services/analytics/growthbook.ts b/src/screens/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/screens/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/screens/src/services/analytics/index.ts b/src/screens/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/screens/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/screens/src/services/mcp/MCPConnectionManager.ts b/src/screens/src/services/mcp/MCPConnectionManager.ts new file mode 100644 index 0000000..2a0ec4e --- /dev/null +++ b/src/screens/src/services/mcp/MCPConnectionManager.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MCPConnectionManager = any; diff --git a/src/screens/src/services/tips/tipScheduler.ts b/src/screens/src/services/tips/tipScheduler.ts new file mode 100644 index 0000000..813f4de --- /dev/null +++ b/src/screens/src/services/tips/tipScheduler.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getTipToShowOnSpinner = any; +export type recordShownTip = any; diff --git a/src/screens/src/utils/context.ts b/src/screens/src/utils/context.ts new file mode 100644 index 0000000..03d4054 --- /dev/null +++ b/src/screens/src/utils/context.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModelMaxOutputTokens = any; diff --git a/src/screens/src/utils/envUtils.ts b/src/screens/src/utils/envUtils.ts new file mode 100644 index 0000000..ef637d0 --- /dev/null +++ b/src/screens/src/utils/envUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getClaudeConfigHomeDir = any; diff --git a/src/screens/src/utils/permissions/bypassPermissionsKillswitch.ts b/src/screens/src/utils/permissions/bypassPermissionsKillswitch.ts new file mode 100644 index 0000000..cd1c15a --- /dev/null +++ b/src/screens/src/utils/permissions/bypassPermissionsKillswitch.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type checkAndDisableBypassPermissionsIfNeeded = any; +export type checkAndDisableAutoModeIfNeeded = any; +export type useKickOffCheckAndDisableBypassPermissionsIfNeeded = any; +export type useKickOffCheckAndDisableAutoModeIfNeeded = any; diff --git a/src/screens/src/utils/plugins/performStartupChecks.ts b/src/screens/src/utils/plugins/performStartupChecks.ts new file mode 100644 index 0000000..e555a9f --- /dev/null +++ b/src/screens/src/utils/plugins/performStartupChecks.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type performStartupChecks = any; diff --git a/src/screens/src/utils/sandbox/sandbox-adapter.ts b/src/screens/src/utils/sandbox/sandbox-adapter.ts new file mode 100644 index 0000000..edebe26 --- /dev/null +++ b/src/screens/src/utils/sandbox/sandbox-adapter.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SandboxManager = any; diff --git a/src/screens/src/utils/settings/constants.ts b/src/screens/src/utils/settings/constants.ts new file mode 100644 index 0000000..b82138d --- /dev/null +++ b/src/screens/src/utils/settings/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SettingSource = any; diff --git a/src/screens/src/utils/theme.ts b/src/screens/src/utils/theme.ts new file mode 100644 index 0000000..c6999a6 --- /dev/null +++ b/src/screens/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Theme = any; diff --git a/src/self-hosted-runner/main.ts b/src/self-hosted-runner/main.ts new file mode 100644 index 0000000..5e4ecd8 --- /dev/null +++ b/src/self-hosted-runner/main.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const selfHostedRunnerMain: any = (() => {}) as any; diff --git a/src/server/backends/dangerousBackend.ts b/src/server/backends/dangerousBackend.ts new file mode 100644 index 0000000..7ba48a6 --- /dev/null +++ b/src/server/backends/dangerousBackend.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const DangerousBackend: any = (() => {}) as any; diff --git a/src/server/connectHeadless.ts b/src/server/connectHeadless.ts new file mode 100644 index 0000000..b365bf5 --- /dev/null +++ b/src/server/connectHeadless.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const runConnectHeadless: any = (() => {}) as any; diff --git a/src/server/lockfile.ts b/src/server/lockfile.ts new file mode 100644 index 0000000..fd5f8c0 --- /dev/null +++ b/src/server/lockfile.ts @@ -0,0 +1,5 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const writeServerLock: any = (() => {}) as any; +export const removeServerLock: any = (() => {}) as any; +export const probeRunningServer: any = (() => {}) as any; diff --git a/src/server/parseConnectUrl.ts b/src/server/parseConnectUrl.ts new file mode 100644 index 0000000..edaaf0c --- /dev/null +++ b/src/server/parseConnectUrl.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const parseConnectUrl: any = (() => {}) as any; diff --git a/src/server/server.ts b/src/server/server.ts new file mode 100644 index 0000000..b4f4d83 --- /dev/null +++ b/src/server/server.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const startServer: any = (() => {}) as any; diff --git a/src/server/serverBanner.ts b/src/server/serverBanner.ts new file mode 100644 index 0000000..7066fdd --- /dev/null +++ b/src/server/serverBanner.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const printBanner: any = (() => {}) as any; diff --git a/src/server/serverLog.ts b/src/server/serverLog.ts new file mode 100644 index 0000000..21142d5 --- /dev/null +++ b/src/server/serverLog.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const createServerLogger: any = (() => {}) as any; diff --git a/src/server/sessionManager.ts b/src/server/sessionManager.ts new file mode 100644 index 0000000..0bc5b7e --- /dev/null +++ b/src/server/sessionManager.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const SessionManager: any = (() => {}) as any; diff --git a/src/services/analytics/src/utils/user.ts b/src/services/analytics/src/utils/user.ts new file mode 100644 index 0000000..be2aa45 --- /dev/null +++ b/src/services/analytics/src/utils/user.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CoreUserData = any; diff --git a/src/services/api/src/Tool.ts b/src/services/api/src/Tool.ts new file mode 100644 index 0000000..63577b3 --- /dev/null +++ b/src/services/api/src/Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type QueryChainTracking = any; diff --git a/src/services/api/src/bootstrap/state.ts b/src/services/api/src/bootstrap/state.ts new file mode 100644 index 0000000..24331fe --- /dev/null +++ b/src/services/api/src/bootstrap/state.ts @@ -0,0 +1,22 @@ +// Auto-generated type stub — replace with real implementation +export type getSessionId = any; +export type getAfkModeHeaderLatched = any; +export type getCacheEditingHeaderLatched = any; +export type getFastModeHeaderLatched = any; +export type getLastApiCompletionTimestamp = any; +export type getPromptCache1hAllowlist = any; +export type getPromptCache1hEligible = any; +export type getThinkingClearLatched = any; +export type setAfkModeHeaderLatched = any; +export type setCacheEditingHeaderLatched = any; +export type setFastModeHeaderLatched = any; +export type setLastMainRequestId = any; +export type setPromptCache1hAllowlist = any; +export type setPromptCache1hEligible = any; +export type setThinkingClearLatched = any; +export type addToTotalDurationState = any; +export type consumePostCompaction = any; +export type getIsNonInteractiveSession = any; +export type getTeleportedSessionInfo = any; +export type markFirstTeleportMessageLogged = any; +export type setLastApiCompletionTimestamp = any; diff --git a/src/services/api/src/constants/betas.ts b/src/services/api/src/constants/betas.ts new file mode 100644 index 0000000..fd08b71 --- /dev/null +++ b/src/services/api/src/constants/betas.ts @@ -0,0 +1,10 @@ +// Auto-generated type stub — replace with real implementation +export type AFK_MODE_BETA_HEADER = any; +export type CONTEXT_1M_BETA_HEADER = any; +export type CONTEXT_MANAGEMENT_BETA_HEADER = any; +export type EFFORT_BETA_HEADER = any; +export type FAST_MODE_BETA_HEADER = any; +export type PROMPT_CACHING_SCOPE_BETA_HEADER = any; +export type REDACT_THINKING_BETA_HEADER = any; +export type STRUCTURED_OUTPUTS_BETA_HEADER = any; +export type TASK_BUDGETS_BETA_HEADER = any; diff --git a/src/services/api/src/constants/querySource.ts b/src/services/api/src/constants/querySource.ts new file mode 100644 index 0000000..61a1720 --- /dev/null +++ b/src/services/api/src/constants/querySource.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type QuerySource = any; diff --git a/src/services/api/src/context/notifications.ts b/src/services/api/src/context/notifications.ts new file mode 100644 index 0000000..c212e68 --- /dev/null +++ b/src/services/api/src/context/notifications.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Notification = any; diff --git a/src/services/api/src/cost-tracker.ts b/src/services/api/src/cost-tracker.ts new file mode 100644 index 0000000..3f76a91 --- /dev/null +++ b/src/services/api/src/cost-tracker.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type addToTotalSessionCost = any; diff --git a/src/services/api/src/entrypoints/agentSdkTypes.ts b/src/services/api/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..0a85ba1 --- /dev/null +++ b/src/services/api/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SDKAssistantMessageError = any; diff --git a/src/services/api/src/services/analytics/growthbook.ts b/src/services/api/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/services/api/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/services/api/src/services/analytics/index.ts b/src/services/api/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/services/api/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/services/api/src/types/connectorText.ts b/src/services/api/src/types/connectorText.ts new file mode 100644 index 0000000..46108d9 --- /dev/null +++ b/src/services/api/src/types/connectorText.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isConnectorTextBlock = any; diff --git a/src/services/api/src/types/ids.ts b/src/services/api/src/types/ids.ts new file mode 100644 index 0000000..c8c60eb --- /dev/null +++ b/src/services/api/src/types/ids.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AgentId = any; diff --git a/src/services/api/src/types/message.ts b/src/services/api/src/types/message.ts new file mode 100644 index 0000000..c420ee3 --- /dev/null +++ b/src/services/api/src/types/message.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type Message = any; +export type AssistantMessage = any; +export type UserMessage = any; +export type SystemAPIErrorMessage = any; diff --git a/src/services/api/src/utils/advisor.ts b/src/services/api/src/utils/advisor.ts new file mode 100644 index 0000000..57cbac3 --- /dev/null +++ b/src/services/api/src/utils/advisor.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type ADVISOR_TOOL_INSTRUCTIONS = any; +export type getExperimentAdvisorModels = any; +export type isAdvisorEnabled = any; +export type isValidAdvisorModel = any; +export type modelSupportsAdvisor = any; diff --git a/src/services/api/src/utils/agentContext.ts b/src/services/api/src/utils/agentContext.ts new file mode 100644 index 0000000..92f1d49 --- /dev/null +++ b/src/services/api/src/utils/agentContext.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAgentContext = any; diff --git a/src/services/api/src/utils/auth.ts b/src/services/api/src/utils/auth.ts new file mode 100644 index 0000000..ee66093 --- /dev/null +++ b/src/services/api/src/utils/auth.ts @@ -0,0 +1,12 @@ +// Auto-generated type stub — replace with real implementation +export type getAnthropicApiKeyWithSource = any; +export type getClaudeAIOAuthTokens = any; +export type getOauthAccountInfo = any; +export type isClaudeAISubscriber = any; +export type checkAndRefreshOAuthTokenIfNeeded = any; +export type getAnthropicApiKey = any; +export type getApiKeyFromApiKeyHelper = any; +export type refreshAndGetAwsCredentials = any; +export type refreshGcpCredentialsIfNeeded = any; +export type isConsumerSubscriber = any; +export type hasProfileScope = any; diff --git a/src/services/api/src/utils/aws.ts b/src/services/api/src/utils/aws.ts new file mode 100644 index 0000000..1929aaf --- /dev/null +++ b/src/services/api/src/utils/aws.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isAwsCredentialsProviderError = any; diff --git a/src/services/api/src/utils/betas.ts b/src/services/api/src/utils/betas.ts new file mode 100644 index 0000000..20d0993 --- /dev/null +++ b/src/services/api/src/utils/betas.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type getToolSearchBetaHeader = any; +export type modelSupportsStructuredOutputs = any; +export type shouldIncludeFirstPartyOnlyBetas = any; +export type shouldUseGlobalCacheScope = any; diff --git a/src/services/api/src/utils/claudeInChrome/common.ts b/src/services/api/src/utils/claudeInChrome/common.ts new file mode 100644 index 0000000..26f787d --- /dev/null +++ b/src/services/api/src/utils/claudeInChrome/common.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CLAUDE_IN_CHROME_MCP_SERVER_NAME = any; diff --git a/src/services/api/src/utils/claudeInChrome/prompt.ts b/src/services/api/src/utils/claudeInChrome/prompt.ts new file mode 100644 index 0000000..5029b1c --- /dev/null +++ b/src/services/api/src/utils/claudeInChrome/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CHROME_TOOL_SEARCH_INSTRUCTIONS = any; diff --git a/src/services/api/src/utils/context.ts b/src/services/api/src/utils/context.ts new file mode 100644 index 0000000..3840f43 --- /dev/null +++ b/src/services/api/src/utils/context.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getMaxThinkingTokensForModel = any; diff --git a/src/services/api/src/utils/debug.ts b/src/services/api/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/services/api/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/services/api/src/utils/diagLogs.ts b/src/services/api/src/utils/diagLogs.ts new file mode 100644 index 0000000..b016581 --- /dev/null +++ b/src/services/api/src/utils/diagLogs.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDiagnosticsNoPII = any; diff --git a/src/services/api/src/utils/effort.ts b/src/services/api/src/utils/effort.ts new file mode 100644 index 0000000..f91f421 --- /dev/null +++ b/src/services/api/src/utils/effort.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type EffortValue = any; +export type modelSupportsEffort = any; +export type EffortLevel = any; diff --git a/src/services/api/src/utils/fastMode.ts b/src/services/api/src/utils/fastMode.ts new file mode 100644 index 0000000..1228a58 --- /dev/null +++ b/src/services/api/src/utils/fastMode.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type isFastModeAvailable = any; +export type isFastModeCooldown = any; +export type isFastModeEnabled = any; +export type isFastModeSupportedByModel = any; diff --git a/src/services/api/src/utils/generators.ts b/src/services/api/src/utils/generators.ts new file mode 100644 index 0000000..5a77074 --- /dev/null +++ b/src/services/api/src/utils/generators.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type returnValue = any; diff --git a/src/services/api/src/utils/gracefulShutdown.ts b/src/services/api/src/utils/gracefulShutdown.ts new file mode 100644 index 0000000..28329ba --- /dev/null +++ b/src/services/api/src/utils/gracefulShutdown.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type gracefulShutdown = any; diff --git a/src/services/api/src/utils/hash.ts b/src/services/api/src/utils/hash.ts new file mode 100644 index 0000000..6aaf94a --- /dev/null +++ b/src/services/api/src/utils/hash.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type djb2Hash = any; diff --git a/src/services/api/src/utils/headlessProfiler.ts b/src/services/api/src/utils/headlessProfiler.ts new file mode 100644 index 0000000..123f78a --- /dev/null +++ b/src/services/api/src/utils/headlessProfiler.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type headlessProfilerCheckpoint = any; diff --git a/src/services/api/src/utils/http.ts b/src/services/api/src/utils/http.ts new file mode 100644 index 0000000..22100b2 --- /dev/null +++ b/src/services/api/src/utils/http.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getUserAgent = any; diff --git a/src/services/api/src/utils/log.ts b/src/services/api/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/services/api/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/services/api/src/utils/mcpInstructionsDelta.ts b/src/services/api/src/utils/mcpInstructionsDelta.ts new file mode 100644 index 0000000..5da03fc --- /dev/null +++ b/src/services/api/src/utils/mcpInstructionsDelta.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isMcpInstructionsDeltaEnabled = any; diff --git a/src/services/api/src/utils/messages.ts b/src/services/api/src/utils/messages.ts new file mode 100644 index 0000000..27c8466 --- /dev/null +++ b/src/services/api/src/utils/messages.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type createAssistantAPIErrorMessage = any; +export type NO_RESPONSE_REQUESTED = any; +export type createSystemAPIErrorMessage = any; diff --git a/src/services/api/src/utils/model/model.ts b/src/services/api/src/utils/model/model.ts new file mode 100644 index 0000000..401fe02 --- /dev/null +++ b/src/services/api/src/utils/model/model.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getDefaultMainLoopModelSetting = any; +export type isNonCustomOpusModel = any; +export type getSmallFastModel = any; diff --git a/src/services/api/src/utils/model/modelStrings.ts b/src/services/api/src/utils/model/modelStrings.ts new file mode 100644 index 0000000..1265ece --- /dev/null +++ b/src/services/api/src/utils/model/modelStrings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModelStrings = any; diff --git a/src/services/api/src/utils/model/providers.ts b/src/services/api/src/utils/model/providers.ts new file mode 100644 index 0000000..f8e248d --- /dev/null +++ b/src/services/api/src/utils/model/providers.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getAPIProvider = any; +export type getAPIProviderForStatsig = any; +export type isFirstPartyAnthropicBaseUrl = any; diff --git a/src/services/api/src/utils/modelCost.ts b/src/services/api/src/utils/modelCost.ts new file mode 100644 index 0000000..a37f5df --- /dev/null +++ b/src/services/api/src/utils/modelCost.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type calculateUSDCost = any; diff --git a/src/services/api/src/utils/permissions/PermissionMode.ts b/src/services/api/src/utils/permissions/PermissionMode.ts new file mode 100644 index 0000000..1bc6199 --- /dev/null +++ b/src/services/api/src/utils/permissions/PermissionMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionMode = any; diff --git a/src/services/api/src/utils/permissions/filesystem.ts b/src/services/api/src/utils/permissions/filesystem.ts new file mode 100644 index 0000000..ef39cc7 --- /dev/null +++ b/src/services/api/src/utils/permissions/filesystem.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getClaudeTempDir = any; diff --git a/src/services/api/src/utils/privacyLevel.ts b/src/services/api/src/utils/privacyLevel.ts new file mode 100644 index 0000000..9d1c350 --- /dev/null +++ b/src/services/api/src/utils/privacyLevel.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isEssentialTrafficOnly = any; diff --git a/src/services/api/src/utils/process.ts b/src/services/api/src/utils/process.ts new file mode 100644 index 0000000..1085e5d --- /dev/null +++ b/src/services/api/src/utils/process.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type writeToStderr = any; diff --git a/src/services/api/src/utils/proxy.ts b/src/services/api/src/utils/proxy.ts new file mode 100644 index 0000000..e93b33d --- /dev/null +++ b/src/services/api/src/utils/proxy.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getProxyFetchOptions = any; diff --git a/src/services/api/src/utils/queryProfiler.ts b/src/services/api/src/utils/queryProfiler.ts new file mode 100644 index 0000000..1283fcc --- /dev/null +++ b/src/services/api/src/utils/queryProfiler.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type endQueryProfile = any; +export type queryCheckpoint = any; diff --git a/src/services/api/src/utils/slowOperations.ts b/src/services/api/src/utils/slowOperations.ts new file mode 100644 index 0000000..b888efc --- /dev/null +++ b/src/services/api/src/utils/slowOperations.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type jsonStringify = any; diff --git a/src/services/api/src/utils/telemetry/events.ts b/src/services/api/src/utils/telemetry/events.ts new file mode 100644 index 0000000..4ae0018 --- /dev/null +++ b/src/services/api/src/utils/telemetry/events.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logOTelEvent = any; diff --git a/src/services/api/src/utils/telemetry/sessionTracing.ts b/src/services/api/src/utils/telemetry/sessionTracing.ts new file mode 100644 index 0000000..094d0f9 --- /dev/null +++ b/src/services/api/src/utils/telemetry/sessionTracing.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type endLLMRequestSpan = any; +export type isBetaTracingEnabled = any; +export type Span = any; diff --git a/src/services/api/src/utils/thinking.ts b/src/services/api/src/utils/thinking.ts new file mode 100644 index 0000000..ea79bd1 --- /dev/null +++ b/src/services/api/src/utils/thinking.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type modelSupportsAdaptiveThinking = any; +export type modelSupportsThinking = any; +export type ThinkingConfig = any; diff --git a/src/services/api/src/utils/toolSearch.ts b/src/services/api/src/utils/toolSearch.ts new file mode 100644 index 0000000..3df7e99 --- /dev/null +++ b/src/services/api/src/utils/toolSearch.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type extractDiscoveredToolNames = any; +export type isDeferredToolsDeltaEnabled = any; +export type isToolSearchEnabled = any; diff --git a/src/services/compact/cachedMCConfig.ts b/src/services/compact/cachedMCConfig.ts new file mode 100644 index 0000000..5f51bab --- /dev/null +++ b/src/services/compact/cachedMCConfig.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const getCachedMCConfig: any = (() => {}) as any; diff --git a/src/services/compact/cachedMicrocompact.ts b/src/services/compact/cachedMicrocompact.ts new file mode 100644 index 0000000..4848d60 --- /dev/null +++ b/src/services/compact/cachedMicrocompact.ts @@ -0,0 +1,12 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isCachedMicrocompactEnabled: any = (() => {}) as any; +export const isModelSupportedForCacheEditing: any = (() => {}) as any; +export const getCachedMCConfig: any = (() => {}) as any; +export const createCachedMCState: any = (() => {}) as any; +export const markToolsSentToAPI: any = (() => {}) as any; +export const resetCachedMCState: any = (() => {}) as any; +export const registerToolResult: any = (() => {}) as any; +export const registerToolMessage: any = (() => {}) as any; +export const getToolResultsToDelete: any = (() => {}) as any; +export const createCacheEditsBlock: any = (() => {}) as any; diff --git a/src/services/compact/reactiveCompact.ts b/src/services/compact/reactiveCompact.ts new file mode 100644 index 0000000..e29f9b7 --- /dev/null +++ b/src/services/compact/reactiveCompact.ts @@ -0,0 +1,8 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isReactiveOnlyMode: any = (() => {}) as any; +export const reactiveCompactOnPromptTooLong: any = (() => {}) as any; +export const isReactiveCompactEnabled: any = (() => {}) as any; +export const isWithheldPromptTooLong: any = (() => {}) as any; +export const isWithheldMediaSizeError: any = (() => {}) as any; +export const tryReactiveCompact: any = (() => {}) as any; diff --git a/src/services/compact/snipCompact.ts b/src/services/compact/snipCompact.ts new file mode 100644 index 0000000..39c9c04 --- /dev/null +++ b/src/services/compact/snipCompact.ts @@ -0,0 +1,7 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isSnipMarkerMessage: any = (() => {}) as any; +export const snipCompactIfNeeded: any = (() => {}) as any; +export const isSnipRuntimeEnabled: any = (() => {}) as any; +export const shouldNudgeForSnips: any = (() => {}) as any; +export const SNIP_NUDGE_TEXT: any = (() => {}) as any; diff --git a/src/services/compact/snipProjection.ts b/src/services/compact/snipProjection.ts new file mode 100644 index 0000000..c60ec5f --- /dev/null +++ b/src/services/compact/snipProjection.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isSnipBoundaryMessage: any = (() => {}) as any; +export const projectSnippedView: any = (() => {}) as any; diff --git a/src/services/compact/src/bootstrap/state.ts b/src/services/compact/src/bootstrap/state.ts new file mode 100644 index 0000000..a860c54 --- /dev/null +++ b/src/services/compact/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type markPostCompaction = any; diff --git a/src/services/compact/src/tools/FileEditTool/constants.ts b/src/services/compact/src/tools/FileEditTool/constants.ts new file mode 100644 index 0000000..b455c06 --- /dev/null +++ b/src/services/compact/src/tools/FileEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_EDIT_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/FileReadTool/prompt.ts b/src/services/compact/src/tools/FileReadTool/prompt.ts new file mode 100644 index 0000000..fac6439 --- /dev/null +++ b/src/services/compact/src/tools/FileReadTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_READ_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/FileWriteTool/prompt.ts b/src/services/compact/src/tools/FileWriteTool/prompt.ts new file mode 100644 index 0000000..e69299d --- /dev/null +++ b/src/services/compact/src/tools/FileWriteTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_WRITE_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/GlobTool/prompt.ts b/src/services/compact/src/tools/GlobTool/prompt.ts new file mode 100644 index 0000000..060caf2 --- /dev/null +++ b/src/services/compact/src/tools/GlobTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GLOB_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/GrepTool/prompt.ts b/src/services/compact/src/tools/GrepTool/prompt.ts new file mode 100644 index 0000000..08b8a8d --- /dev/null +++ b/src/services/compact/src/tools/GrepTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GREP_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/NotebookEditTool/constants.ts b/src/services/compact/src/tools/NotebookEditTool/constants.ts new file mode 100644 index 0000000..6c6c94b --- /dev/null +++ b/src/services/compact/src/tools/NotebookEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type NOTEBOOK_EDIT_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/WebFetchTool/prompt.ts b/src/services/compact/src/tools/WebFetchTool/prompt.ts new file mode 100644 index 0000000..63b342a --- /dev/null +++ b/src/services/compact/src/tools/WebFetchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_FETCH_TOOL_NAME = any; diff --git a/src/services/compact/src/tools/WebSearchTool/prompt.ts b/src/services/compact/src/tools/WebSearchTool/prompt.ts new file mode 100644 index 0000000..38871a0 --- /dev/null +++ b/src/services/compact/src/tools/WebSearchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_SEARCH_TOOL_NAME = any; diff --git a/src/services/compact/src/utils/shell/shellToolUtils.ts b/src/services/compact/src/utils/shell/shellToolUtils.ts new file mode 100644 index 0000000..c89fe2a --- /dev/null +++ b/src/services/compact/src/utils/shell/shellToolUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SHELL_TOOL_NAMES = any; diff --git a/src/services/contextCollapse/index.ts b/src/services/contextCollapse/index.ts new file mode 100644 index 0000000..f503368 --- /dev/null +++ b/src/services/contextCollapse/index.ts @@ -0,0 +1,10 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const getStats: any = (() => {}) as any; +export const isContextCollapseEnabled: any = (() => {}) as any; +export const subscribe: any = (() => {}) as any; +export const applyCollapsesIfNeeded: any = (() => {}) as any; +export const isWithheldPromptTooLong: any = (() => {}) as any; +export const recoverFromOverflow: any = (() => {}) as any; +export const resetContextCollapse: any = (() => {}) as any; +export const initContextCollapse: any = (() => {}) as any; diff --git a/src/services/contextCollapse/operations.ts b/src/services/contextCollapse/operations.ts new file mode 100644 index 0000000..1feb6c1 --- /dev/null +++ b/src/services/contextCollapse/operations.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const projectView: any = (() => {}) as any; diff --git a/src/services/contextCollapse/persist.ts b/src/services/contextCollapse/persist.ts new file mode 100644 index 0000000..d5a0814 --- /dev/null +++ b/src/services/contextCollapse/persist.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const restoreFromEntries: any = (() => {}) as any; diff --git a/src/services/lsp/types.ts b/src/services/lsp/types.ts new file mode 100644 index 0000000..1dfa793 --- /dev/null +++ b/src/services/lsp/types.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export type LspServerConfig = any; +export type ScopedLspServerConfig = any; +export type LspServerState = any; diff --git a/src/services/mcp/src/constants/oauth.ts b/src/services/mcp/src/constants/oauth.ts new file mode 100644 index 0000000..a1b0893 --- /dev/null +++ b/src/services/mcp/src/constants/oauth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; diff --git a/src/services/mcp/src/services/analytics/index.ts b/src/services/mcp/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/services/mcp/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/services/mcp/src/services/mcp/config.ts b/src/services/mcp/src/services/mcp/config.ts new file mode 100644 index 0000000..109c9d3 --- /dev/null +++ b/src/services/mcp/src/services/mcp/config.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type dedupClaudeAiMcpServers = any; +export type doesEnterpriseMcpConfigExist = any; +export type filterMcpServersByPolicy = any; +export type getClaudeCodeMcpConfigs = any; +export type isMcpServerDisabled = any; +export type setMcpServerEnabled = any; diff --git a/src/services/mcp/src/state/AppState.ts b/src/services/mcp/src/state/AppState.ts new file mode 100644 index 0000000..caf2928 --- /dev/null +++ b/src/services/mcp/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; diff --git a/src/services/mcp/src/types/message.ts b/src/services/mcp/src/types/message.ts new file mode 100644 index 0000000..a689141 --- /dev/null +++ b/src/services/mcp/src/types/message.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AssistantMessage = any; diff --git a/src/services/mcp/src/types/plugin.ts b/src/services/mcp/src/types/plugin.ts new file mode 100644 index 0000000..5129b68 --- /dev/null +++ b/src/services/mcp/src/types/plugin.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PluginError = any; diff --git a/src/services/mcp/src/utils/auth.ts b/src/services/mcp/src/utils/auth.ts new file mode 100644 index 0000000..118c057 --- /dev/null +++ b/src/services/mcp/src/utils/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getClaudeAIOAuthTokens = any; diff --git a/src/services/mcp/src/utils/config.ts b/src/services/mcp/src/utils/config.ts new file mode 100644 index 0000000..7cf15de --- /dev/null +++ b/src/services/mcp/src/utils/config.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; +export type saveGlobalConfig = any; diff --git a/src/services/mcp/src/utils/debug.ts b/src/services/mcp/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/services/mcp/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/services/mcp/src/utils/envUtils.ts b/src/services/mcp/src/utils/envUtils.ts new file mode 100644 index 0000000..f6fa62e --- /dev/null +++ b/src/services/mcp/src/utils/envUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isEnvDefinedFalsy = any; diff --git a/src/services/mcp/src/utils/platform.ts b/src/services/mcp/src/utils/platform.ts new file mode 100644 index 0000000..b6686f8 --- /dev/null +++ b/src/services/mcp/src/utils/platform.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getPlatform = any; diff --git a/src/services/oauth/src/constants/oauth.ts b/src/services/oauth/src/constants/oauth.ts new file mode 100644 index 0000000..870b6dd --- /dev/null +++ b/src/services/oauth/src/constants/oauth.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; +export type OAUTH_BETA_HEADER = any; diff --git a/src/services/oauth/src/services/analytics/index.ts b/src/services/oauth/src/services/analytics/index.ts new file mode 100644 index 0000000..ce0a9a8 --- /dev/null +++ b/src/services/oauth/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/services/oauth/src/services/oauth/types.ts b/src/services/oauth/src/services/oauth/types.ts new file mode 100644 index 0000000..bc5c3d5 --- /dev/null +++ b/src/services/oauth/src/services/oauth/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type OAuthProfileResponse = any; diff --git a/src/services/oauth/src/utils/auth.ts b/src/services/oauth/src/utils/auth.ts new file mode 100644 index 0000000..2a02cad --- /dev/null +++ b/src/services/oauth/src/utils/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAnthropicApiKey = any; diff --git a/src/services/oauth/src/utils/config.ts b/src/services/oauth/src/utils/config.ts new file mode 100644 index 0000000..00cdd12 --- /dev/null +++ b/src/services/oauth/src/utils/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getGlobalConfig = any; diff --git a/src/services/oauth/src/utils/log.ts b/src/services/oauth/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/services/oauth/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/services/oauth/types.ts b/src/services/oauth/types.ts new file mode 100644 index 0000000..b6b4785 --- /dev/null +++ b/src/services/oauth/types.ts @@ -0,0 +1,12 @@ +// Auto-generated stub — replace with real implementation +export type BillingType = any; +export type ReferralEligibilityResponse = any; +export type OAuthTokens = any; +export type SubscriptionType = any; +export type ReferralRedemptionsResponse = any; +export type ReferrerRewardInfo = any; +export type OAuthProfileResponse = any; +export type OAuthTokenExchangeResponse = any; +export type RateLimitTier = any; +export type UserRolesResponse = any; +export type ReferralCampaign = any; diff --git a/src/services/remoteManagedSettings/securityCheck.jsx b/src/services/remoteManagedSettings/securityCheck.jsx new file mode 100644 index 0000000..cdd4665 --- /dev/null +++ b/src/services/remoteManagedSettings/securityCheck.jsx @@ -0,0 +1,3 @@ +// Stub - security check disabled for open-source build +export function checkManagedSettingsSecurity() { return Promise.resolve({ ok: true }) } +export function handleSecurityCheckResult() { return true } diff --git a/src/services/sessionTranscript/sessionTranscript.ts b/src/services/sessionTranscript/sessionTranscript.ts new file mode 100644 index 0000000..121abee --- /dev/null +++ b/src/services/sessionTranscript/sessionTranscript.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const writeSessionTranscriptSegment: any = (() => {}) as any; +export const flushOnDateChange: any = (() => {}) as any; diff --git a/src/services/skillSearch/featureCheck.ts b/src/services/skillSearch/featureCheck.ts new file mode 100644 index 0000000..3880c55 --- /dev/null +++ b/src/services/skillSearch/featureCheck.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const isSkillSearchEnabled: any = (() => {}) as any; diff --git a/src/services/skillSearch/localSearch.ts b/src/services/skillSearch/localSearch.ts new file mode 100644 index 0000000..679b8fd --- /dev/null +++ b/src/services/skillSearch/localSearch.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const clearSkillIndexCache: any = (() => {}) as any; diff --git a/src/services/skillSearch/prefetch.ts b/src/services/skillSearch/prefetch.ts new file mode 100644 index 0000000..1940912 --- /dev/null +++ b/src/services/skillSearch/prefetch.ts @@ -0,0 +1,5 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const startSkillDiscoveryPrefetch: any = (() => {}) as any; +export const collectSkillDiscoveryPrefetch: any = (() => {}) as any; +export const getTurnZeroSkillDiscovery: any = (() => {}) as any; diff --git a/src/services/skillSearch/remoteSkillLoader.ts b/src/services/skillSearch/remoteSkillLoader.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/services/skillSearch/remoteSkillLoader.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/services/skillSearch/remoteSkillState.ts b/src/services/skillSearch/remoteSkillState.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/services/skillSearch/remoteSkillState.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/services/skillSearch/signals.ts b/src/services/skillSearch/signals.ts new file mode 100644 index 0000000..0b89fae --- /dev/null +++ b/src/services/skillSearch/signals.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type DiscoverySignal = any; diff --git a/src/services/skillSearch/telemetry.ts b/src/services/skillSearch/telemetry.ts new file mode 100644 index 0000000..655d5da --- /dev/null +++ b/src/services/skillSearch/telemetry.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export {}; diff --git a/src/services/src/cost-tracker.ts b/src/services/src/cost-tracker.ts new file mode 100644 index 0000000..3f76a91 --- /dev/null +++ b/src/services/src/cost-tracker.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type addToTotalSessionCost = any; diff --git a/src/services/src/utils/log.ts b/src/services/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/services/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/services/src/utils/model/providers.ts b/src/services/src/utils/model/providers.ts new file mode 100644 index 0000000..df87a41 --- /dev/null +++ b/src/services/src/utils/model/providers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAPIProvider = any; diff --git a/src/services/src/utils/modelCost.ts b/src/services/src/utils/modelCost.ts new file mode 100644 index 0000000..a37f5df --- /dev/null +++ b/src/services/src/utils/modelCost.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type calculateUSDCost = any; diff --git a/src/services/tips/src/utils/debug.ts b/src/services/tips/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/services/tips/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/services/tips/src/utils/fileHistory.ts b/src/services/tips/src/utils/fileHistory.ts new file mode 100644 index 0000000..5c33161 --- /dev/null +++ b/src/services/tips/src/utils/fileHistory.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type fileHistoryEnabled = any; diff --git a/src/services/tips/src/utils/settings/settings.ts b/src/services/tips/src/utils/settings/settings.ts new file mode 100644 index 0000000..bdf4efb --- /dev/null +++ b/src/services/tips/src/utils/settings/settings.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getInitialSettings = any; +export type getSettings_DEPRECATED = any; +export type getSettingsForSource = any; diff --git a/src/services/tips/types.ts b/src/services/tips/types.ts new file mode 100644 index 0000000..35071c2 --- /dev/null +++ b/src/services/tips/types.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type Tip = any; +export type TipContext = any; diff --git a/src/services/tools/src/services/analytics/index.ts b/src/services/tools/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/services/tools/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/services/tools/src/services/analytics/metadata.ts b/src/services/tools/src/services/analytics/metadata.ts new file mode 100644 index 0000000..e702ce4 --- /dev/null +++ b/src/services/tools/src/services/analytics/metadata.ts @@ -0,0 +1,9 @@ +// Auto-generated type stub — replace with real implementation +export type sanitizeToolNameForAnalytics = any; +export type extractMcpToolDetails = any; +export type extractSkillName = any; +export type extractToolInputForTelemetry = any; +export type getFileExtensionForAnalytics = any; +export type getFileExtensionsFromBashCommand = any; +export type isToolDetailsLoggingEnabled = any; +export type mcpToolDetailsForAnalytics = any; diff --git a/src/services/tools/src/utils/messages.ts b/src/services/tools/src/utils/messages.ts new file mode 100644 index 0000000..edf1650 --- /dev/null +++ b/src/services/tools/src/utils/messages.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type createUserMessage = any; +export type REJECT_MESSAGE = any; +export type withMemoryCorrectionHint = any; diff --git a/src/skills/bundled/src/tools/AgentTool/built-in/claudeCodeGuideAgent.ts b/src/skills/bundled/src/tools/AgentTool/built-in/claudeCodeGuideAgent.ts new file mode 100644 index 0000000..d9e0c87 --- /dev/null +++ b/src/skills/bundled/src/tools/AgentTool/built-in/claudeCodeGuideAgent.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CLAUDE_CODE_GUIDE_AGENT_TYPE = any; diff --git a/src/skills/bundled/src/utils/claudeInChrome/setup.ts b/src/skills/bundled/src/utils/claudeInChrome/setup.ts new file mode 100644 index 0000000..0f25ac9 --- /dev/null +++ b/src/skills/bundled/src/utils/claudeInChrome/setup.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type shouldAutoEnableClaudeInChrome = any; diff --git a/src/skills/bundled/src/utils/settings/settings.ts b/src/skills/bundled/src/utils/settings/settings.ts new file mode 100644 index 0000000..c9d1262 --- /dev/null +++ b/src/skills/bundled/src/utils/settings/settings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getSettingsFilePathForSource = any; diff --git a/src/skills/bundled/verify/SKILL.md b/src/skills/bundled/verify/SKILL.md new file mode 100644 index 0000000..50860bb --- /dev/null +++ b/src/skills/bundled/verify/SKILL.md @@ -0,0 +1 @@ +# Skill diff --git a/src/skills/bundled/verify/examples/cli.md b/src/skills/bundled/verify/examples/cli.md new file mode 100644 index 0000000..3f213d4 --- /dev/null +++ b/src/skills/bundled/verify/examples/cli.md @@ -0,0 +1 @@ +# CLI diff --git a/src/skills/bundled/verify/examples/server.md b/src/skills/bundled/verify/examples/server.md new file mode 100644 index 0000000..76ac08d --- /dev/null +++ b/src/skills/bundled/verify/examples/server.md @@ -0,0 +1 @@ +# Server diff --git a/src/skills/mcpSkills.ts b/src/skills/mcpSkills.ts new file mode 100644 index 0000000..f535e24 --- /dev/null +++ b/src/skills/mcpSkills.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const fetchMcpSkillsForClient: any = (() => {}) as any; diff --git a/src/src/bootstrap/state.ts b/src/src/bootstrap/state.ts new file mode 100644 index 0000000..87ad08f --- /dev/null +++ b/src/src/bootstrap/state.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getSessionId = any; +export type isSessionPersistenceDisabled = any; diff --git a/src/src/cli/rollback.ts b/src/src/cli/rollback.ts new file mode 100644 index 0000000..f1f0f37 --- /dev/null +++ b/src/src/cli/rollback.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export {}; diff --git a/src/src/cli/up.ts b/src/src/cli/up.ts new file mode 100644 index 0000000..f1f0f37 --- /dev/null +++ b/src/src/cli/up.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export {}; diff --git a/src/src/commands/mcp/addCommand.ts b/src/src/commands/mcp/addCommand.ts new file mode 100644 index 0000000..ddad792 --- /dev/null +++ b/src/src/commands/mcp/addCommand.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type registerMcpAddCommand = any; diff --git a/src/src/commands/mcp/xaaIdpCommand.ts b/src/src/commands/mcp/xaaIdpCommand.ts new file mode 100644 index 0000000..dd58b29 --- /dev/null +++ b/src/src/commands/mcp/xaaIdpCommand.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type registerMcpXaaIdpCommand = any; diff --git a/src/src/entrypoints/agentSdkTypes.ts b/src/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..5f94cc7 --- /dev/null +++ b/src/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionMode = any; +export type SDKCompactBoundaryMessage = any; +export type SDKMessage = any; +export type SDKPermissionDenial = any; +export type SDKStatus = any; +export type SDKUserMessageReplay = any; diff --git a/src/src/services/analytics/config.ts b/src/src/services/analytics/config.ts new file mode 100644 index 0000000..a74c406 --- /dev/null +++ b/src/src/services/analytics/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isAnalyticsDisabled = any; diff --git a/src/src/services/analytics/growthbook.ts b/src/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/src/services/analytics/index.ts b/src/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/src/services/analytics/sink.ts b/src/src/services/analytics/sink.ts new file mode 100644 index 0000000..ae0573d --- /dev/null +++ b/src/src/services/analytics/sink.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type initializeAnalyticsGates = any; diff --git a/src/src/services/api/claude.ts b/src/src/services/api/claude.ts new file mode 100644 index 0000000..c05186c --- /dev/null +++ b/src/src/services/api/claude.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type accumulateUsage = any; +export type updateUsage = any; diff --git a/src/src/services/api/logging.ts b/src/src/services/api/logging.ts new file mode 100644 index 0000000..bcef5fb --- /dev/null +++ b/src/src/services/api/logging.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type NonNullableUsage = any; +export type EMPTY_USAGE = any; diff --git a/src/src/services/internalLogging.ts b/src/src/services/internalLogging.ts new file mode 100644 index 0000000..1cec4cb --- /dev/null +++ b/src/src/services/internalLogging.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logPermissionContextForAnts = any; diff --git a/src/src/services/mcp/claudeai.ts b/src/src/services/mcp/claudeai.ts new file mode 100644 index 0000000..8f2b456 --- /dev/null +++ b/src/src/services/mcp/claudeai.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type fetchClaudeAIMcpConfigsIfEligible = any; diff --git a/src/src/services/mcp/client.ts b/src/src/services/mcp/client.ts new file mode 100644 index 0000000..e26b751 --- /dev/null +++ b/src/src/services/mcp/client.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type clearServerCache = any; diff --git a/src/src/services/mcp/config.ts b/src/src/services/mcp/config.ts new file mode 100644 index 0000000..dba75c0 --- /dev/null +++ b/src/src/services/mcp/config.ts @@ -0,0 +1,9 @@ +// Auto-generated type stub — replace with real implementation +export type areMcpConfigsAllowedWithEnterpriseMcpConfig = any; +export type dedupClaudeAiMcpServers = any; +export type doesEnterpriseMcpConfigExist = any; +export type filterMcpServersByPolicy = any; +export type getClaudeCodeMcpConfigs = any; +export type getMcpServerSignature = any; +export type parseMcpConfig = any; +export type parseMcpConfigFromFilePath = any; diff --git a/src/src/services/mcp/utils.ts b/src/src/services/mcp/utils.ts new file mode 100644 index 0000000..539eaf3 --- /dev/null +++ b/src/src/services/mcp/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type excludeCommandsByServer = any; +export type excludeResourcesByServer = any; diff --git a/src/src/services/mcp/xaaIdpLogin.ts b/src/src/services/mcp/xaaIdpLogin.ts new file mode 100644 index 0000000..9ed752d --- /dev/null +++ b/src/src/services/mcp/xaaIdpLogin.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isXaaEnabled = any; diff --git a/src/src/services/tips/tipRegistry.ts b/src/src/services/tips/tipRegistry.ts new file mode 100644 index 0000000..5494494 --- /dev/null +++ b/src/src/services/tips/tipRegistry.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getRelevantTips = any; diff --git a/src/src/utils/Shell.ts b/src/src/utils/Shell.ts new file mode 100644 index 0000000..fda80fe --- /dev/null +++ b/src/src/utils/Shell.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setCwd = any; diff --git a/src/src/utils/api.ts b/src/src/utils/api.ts new file mode 100644 index 0000000..b9574b7 --- /dev/null +++ b/src/src/utils/api.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logContextMetrics = any; diff --git a/src/src/utils/claudeInChrome/common.ts b/src/src/utils/claudeInChrome/common.ts new file mode 100644 index 0000000..552519d --- /dev/null +++ b/src/src/utils/claudeInChrome/common.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type CLAUDE_IN_CHROME_MCP_SERVER_NAME = any; +export type isClaudeInChromeMCPServer = any; diff --git a/src/src/utils/cleanupRegistry.ts b/src/src/utils/cleanupRegistry.ts new file mode 100644 index 0000000..4cbbdec --- /dev/null +++ b/src/src/utils/cleanupRegistry.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type registerCleanup = any; diff --git a/src/src/utils/cliArgs.ts b/src/src/utils/cliArgs.ts new file mode 100644 index 0000000..08b50c4 --- /dev/null +++ b/src/src/utils/cliArgs.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type eagerParseCliFlag = any; diff --git a/src/src/utils/commitAttribution.ts b/src/src/utils/commitAttribution.ts new file mode 100644 index 0000000..13eed41 --- /dev/null +++ b/src/src/utils/commitAttribution.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type createEmptyAttributionState = any; diff --git a/src/src/utils/concurrentSessions.ts b/src/src/utils/concurrentSessions.ts new file mode 100644 index 0000000..c5dcca8 --- /dev/null +++ b/src/src/utils/concurrentSessions.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type countConcurrentSessions = any; +export type registerSession = any; +export type updateSessionName = any; diff --git a/src/src/utils/cwd.ts b/src/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/src/utils/debug.ts b/src/src/utils/debug.ts new file mode 100644 index 0000000..ecdc99d --- /dev/null +++ b/src/src/utils/debug.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; +export type setHasFormattedOutput = any; diff --git a/src/src/utils/errors.ts b/src/src/utils/errors.ts new file mode 100644 index 0000000..68618d7 --- /dev/null +++ b/src/src/utils/errors.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type errorMessage = any; +export type getErrnoCode = any; +export type isENOENT = any; +export type TeleportOperationError = any; +export type toError = any; diff --git a/src/src/utils/fsOperations.ts b/src/src/utils/fsOperations.ts new file mode 100644 index 0000000..d5644e4 --- /dev/null +++ b/src/src/utils/fsOperations.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getFsImplementation = any; +export type safeResolvePath = any; diff --git a/src/src/utils/gracefulShutdown.ts b/src/src/utils/gracefulShutdown.ts new file mode 100644 index 0000000..6b72be4 --- /dev/null +++ b/src/src/utils/gracefulShutdown.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type gracefulShutdown = any; +export type gracefulShutdownSync = any; diff --git a/src/src/utils/hooks/hookEvents.ts b/src/src/utils/hooks/hookEvents.ts new file mode 100644 index 0000000..a8a49c5 --- /dev/null +++ b/src/src/utils/hooks/hookEvents.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setAllHookEventsEnabled = any; diff --git a/src/src/utils/model/modelCapabilities.ts b/src/src/utils/model/modelCapabilities.ts new file mode 100644 index 0000000..e635959 --- /dev/null +++ b/src/src/utils/model/modelCapabilities.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type refreshModelCapabilities = any; diff --git a/src/src/utils/process.ts b/src/src/utils/process.ts new file mode 100644 index 0000000..c935f43 --- /dev/null +++ b/src/src/utils/process.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type peekForStdinData = any; +export type writeToStderr = any; diff --git a/src/src/utils/releaseNotes.ts b/src/src/utils/releaseNotes.ts new file mode 100644 index 0000000..2791f3c --- /dev/null +++ b/src/src/utils/releaseNotes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type checkForReleaseNotes = any; diff --git a/src/src/utils/sessionRestore.ts b/src/src/utils/sessionRestore.ts new file mode 100644 index 0000000..5d610ae --- /dev/null +++ b/src/src/utils/sessionRestore.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type ProcessedResume = any; +export type processResumedConversation = any; diff --git a/src/src/utils/settings/constants.ts b/src/src/utils/settings/constants.ts new file mode 100644 index 0000000..9892f67 --- /dev/null +++ b/src/src/utils/settings/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type parseSettingSourcesFlag = any; diff --git a/src/src/utils/sinks.ts b/src/src/utils/sinks.ts new file mode 100644 index 0000000..9a28be5 --- /dev/null +++ b/src/src/utils/sinks.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type initSinks = any; diff --git a/src/src/utils/stringUtils.ts b/src/src/utils/stringUtils.ts new file mode 100644 index 0000000..8b747e1 --- /dev/null +++ b/src/src/utils/stringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type plural = any; diff --git a/src/ssh/SSHSessionManager.ts b/src/ssh/SSHSessionManager.ts new file mode 100644 index 0000000..c38bf76 --- /dev/null +++ b/src/ssh/SSHSessionManager.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type SSHSessionManager = any; diff --git a/src/ssh/createSSHSession.ts b/src/ssh/createSSHSession.ts new file mode 100644 index 0000000..c606586 --- /dev/null +++ b/src/ssh/createSSHSession.ts @@ -0,0 +1,5 @@ +// Auto-generated stub — replace with real implementation +export type SSHSession = any; +export const createSSHSession: any = (() => {}) as any; +export const createLocalSSHSession: any = (() => {}) as any; +export const SSHSessionError: any = (() => {}) as any; diff --git a/src/state/src/context/notifications.ts b/src/state/src/context/notifications.ts new file mode 100644 index 0000000..c212e68 --- /dev/null +++ b/src/state/src/context/notifications.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Notification = any; diff --git a/src/state/src/utils/todo/types.ts b/src/state/src/utils/todo/types.ts new file mode 100644 index 0000000..273f5ec --- /dev/null +++ b/src/state/src/utils/todo/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TodoList = any; diff --git a/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts b/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts new file mode 100644 index 0000000..6dea0a6 --- /dev/null +++ b/src/tasks/LocalWorkflowTask/LocalWorkflowTask.ts @@ -0,0 +1,5 @@ +// Auto-generated stub — replace with real implementation +export type LocalWorkflowTaskState = any; +export const killWorkflowTask: any = (() => {}) as any; +export const skipWorkflowAgent: any = (() => {}) as any; +export const retryWorkflowAgent: any = (() => {}) as any; diff --git a/src/tasks/MonitorMcpTask/MonitorMcpTask.ts b/src/tasks/MonitorMcpTask/MonitorMcpTask.ts new file mode 100644 index 0000000..965c054 --- /dev/null +++ b/src/tasks/MonitorMcpTask/MonitorMcpTask.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export type MonitorMcpTaskState = any; +export const killMonitorMcp: any = (() => {}) as any; +export const killMonitorMcpTasksForAgent: any = (() => {}) as any; diff --git a/src/tools/AgentTool/built-in/src/tools/BashTool/toolName.ts b/src/tools/AgentTool/built-in/src/tools/BashTool/toolName.ts new file mode 100644 index 0000000..2da8eb7 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/BashTool/toolName.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BASH_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/ExitPlanModeTool/constants.ts b/src/tools/AgentTool/built-in/src/tools/ExitPlanModeTool/constants.ts new file mode 100644 index 0000000..11f9fd0 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/ExitPlanModeTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EXIT_PLAN_MODE_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/FileEditTool/constants.ts b/src/tools/AgentTool/built-in/src/tools/FileEditTool/constants.ts new file mode 100644 index 0000000..b455c06 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/FileEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_EDIT_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/FileReadTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/FileReadTool/prompt.ts new file mode 100644 index 0000000..fac6439 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/FileReadTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_READ_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/FileWriteTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/FileWriteTool/prompt.ts new file mode 100644 index 0000000..e69299d --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/FileWriteTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_WRITE_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/GlobTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/GlobTool/prompt.ts new file mode 100644 index 0000000..060caf2 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/GlobTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GLOB_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/GrepTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/GrepTool/prompt.ts new file mode 100644 index 0000000..08b8a8d --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/GrepTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GREP_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/NotebookEditTool/constants.ts b/src/tools/AgentTool/built-in/src/tools/NotebookEditTool/constants.ts new file mode 100644 index 0000000..6c6c94b --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/NotebookEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type NOTEBOOK_EDIT_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/SendMessageTool/constants.ts b/src/tools/AgentTool/built-in/src/tools/SendMessageTool/constants.ts new file mode 100644 index 0000000..efd6026 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/SendMessageTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SEND_MESSAGE_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/WebFetchTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/WebFetchTool/prompt.ts new file mode 100644 index 0000000..63b342a --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/WebFetchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_FETCH_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/tools/WebSearchTool/prompt.ts b/src/tools/AgentTool/built-in/src/tools/WebSearchTool/prompt.ts new file mode 100644 index 0000000..38871a0 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/tools/WebSearchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_SEARCH_TOOL_NAME = any; diff --git a/src/tools/AgentTool/built-in/src/utils/auth.ts b/src/tools/AgentTool/built-in/src/utils/auth.ts new file mode 100644 index 0000000..909e310 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/utils/auth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isUsing3PServices = any; diff --git a/src/tools/AgentTool/built-in/src/utils/embeddedTools.ts b/src/tools/AgentTool/built-in/src/utils/embeddedTools.ts new file mode 100644 index 0000000..c0160db --- /dev/null +++ b/src/tools/AgentTool/built-in/src/utils/embeddedTools.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type hasEmbeddedSearchTools = any; diff --git a/src/tools/AgentTool/built-in/src/utils/settings/settings.ts b/src/tools/AgentTool/built-in/src/utils/settings/settings.ts new file mode 100644 index 0000000..4b9b819 --- /dev/null +++ b/src/tools/AgentTool/built-in/src/utils/settings/settings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getSettings_DEPRECATED = any; diff --git a/src/tools/AgentTool/src/Tool.ts b/src/tools/AgentTool/src/Tool.ts new file mode 100644 index 0000000..7e33e7e --- /dev/null +++ b/src/tools/AgentTool/src/Tool.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type buildTool = any; +export type ToolDef = any; +export type toolMatchesName = any; diff --git a/src/tools/AgentTool/src/components/ConfigurableShortcutHint.ts b/src/tools/AgentTool/src/components/ConfigurableShortcutHint.ts new file mode 100644 index 0000000..d68e6f6 --- /dev/null +++ b/src/tools/AgentTool/src/components/ConfigurableShortcutHint.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ConfigurableShortcutHint = any; diff --git a/src/tools/AgentTool/src/components/CtrlOToExpand.ts b/src/tools/AgentTool/src/components/CtrlOToExpand.ts new file mode 100644 index 0000000..b8e3b0a --- /dev/null +++ b/src/tools/AgentTool/src/components/CtrlOToExpand.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type CtrlOToExpand = any; +export type SubAgentProvider = any; diff --git a/src/tools/AgentTool/src/components/design-system/Byline.ts b/src/tools/AgentTool/src/components/design-system/Byline.ts new file mode 100644 index 0000000..ed8c713 --- /dev/null +++ b/src/tools/AgentTool/src/components/design-system/Byline.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Byline = any; diff --git a/src/tools/AgentTool/src/components/design-system/KeyboardShortcutHint.ts b/src/tools/AgentTool/src/components/design-system/KeyboardShortcutHint.ts new file mode 100644 index 0000000..ab506bb --- /dev/null +++ b/src/tools/AgentTool/src/components/design-system/KeyboardShortcutHint.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type KeyboardShortcutHint = any; diff --git a/src/tools/AgentTool/src/types/message.ts b/src/tools/AgentTool/src/types/message.ts new file mode 100644 index 0000000..4b0a33f --- /dev/null +++ b/src/tools/AgentTool/src/types/message.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Message = any; +export type NormalizedUserMessage = any; diff --git a/src/tools/AgentTool/src/utils/debug.ts b/src/tools/AgentTool/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/tools/AgentTool/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/tools/AgentTool/src/utils/promptCategory.ts b/src/tools/AgentTool/src/utils/promptCategory.ts new file mode 100644 index 0000000..207db72 --- /dev/null +++ b/src/tools/AgentTool/src/utils/promptCategory.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getQuerySourceForAgent = any; diff --git a/src/tools/AgentTool/src/utils/settings/constants.ts b/src/tools/AgentTool/src/utils/settings/constants.ts new file mode 100644 index 0000000..b82138d --- /dev/null +++ b/src/tools/AgentTool/src/utils/settings/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SettingSource = any; diff --git a/src/tools/AskUserQuestionTool/src/bootstrap/state.ts b/src/tools/AskUserQuestionTool/src/bootstrap/state.ts new file mode 100644 index 0000000..bfbe59d --- /dev/null +++ b/src/tools/AskUserQuestionTool/src/bootstrap/state.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getAllowedChannels = any; +export type getQuestionPreviewFormat = any; diff --git a/src/tools/AskUserQuestionTool/src/components/MessageResponse.ts b/src/tools/AskUserQuestionTool/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/tools/AskUserQuestionTool/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/tools/AskUserQuestionTool/src/constants/figures.ts b/src/tools/AskUserQuestionTool/src/constants/figures.ts new file mode 100644 index 0000000..e7414ed --- /dev/null +++ b/src/tools/AskUserQuestionTool/src/constants/figures.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BLACK_CIRCLE = any; diff --git a/src/tools/AskUserQuestionTool/src/utils/permissions/PermissionMode.ts b/src/tools/AskUserQuestionTool/src/utils/permissions/PermissionMode.ts new file mode 100644 index 0000000..42eb8c2 --- /dev/null +++ b/src/tools/AskUserQuestionTool/src/utils/permissions/PermissionMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModeColor = any; diff --git a/src/tools/BashTool/src/Tool.ts b/src/tools/BashTool/src/Tool.ts new file mode 100644 index 0000000..f9e7f2b --- /dev/null +++ b/src/tools/BashTool/src/Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ToolPermissionContext = any; diff --git a/src/tools/BashTool/src/bootstrap/state.ts b/src/tools/BashTool/src/bootstrap/state.ts new file mode 100644 index 0000000..132db39 --- /dev/null +++ b/src/tools/BashTool/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOriginalCwd = any; diff --git a/src/tools/BashTool/src/hooks/useCanUseTool.ts b/src/tools/BashTool/src/hooks/useCanUseTool.ts new file mode 100644 index 0000000..056468f --- /dev/null +++ b/src/tools/BashTool/src/hooks/useCanUseTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CanUseToolFn = any; diff --git a/src/tools/BashTool/src/services/analytics/growthbook.ts b/src/tools/BashTool/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/tools/BashTool/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/tools/BashTool/src/services/analytics/index.ts b/src/tools/BashTool/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/tools/BashTool/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/tools/BashTool/src/state/AppState.ts b/src/tools/BashTool/src/state/AppState.ts new file mode 100644 index 0000000..caf2928 --- /dev/null +++ b/src/tools/BashTool/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; diff --git a/src/tools/BashTool/src/utils/Shell.ts b/src/tools/BashTool/src/utils/Shell.ts new file mode 100644 index 0000000..fda80fe --- /dev/null +++ b/src/tools/BashTool/src/utils/Shell.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setCwd = any; diff --git a/src/tools/BashTool/src/utils/cwd.ts b/src/tools/BashTool/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/tools/BashTool/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/tools/BashTool/src/utils/permissions/filesystem.ts b/src/tools/BashTool/src/utils/permissions/filesystem.ts new file mode 100644 index 0000000..a29d05e --- /dev/null +++ b/src/tools/BashTool/src/utils/permissions/filesystem.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type pathInAllowedWorkingPath = any; diff --git a/src/tools/BashTool/src/utils/sandbox/sandbox-ui-utils.ts b/src/tools/BashTool/src/utils/sandbox/sandbox-ui-utils.ts new file mode 100644 index 0000000..f514e53 --- /dev/null +++ b/src/tools/BashTool/src/utils/sandbox/sandbox-ui-utils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type removeSandboxViolationTags = any; diff --git a/src/tools/DiscoverSkillsTool/prompt.ts b/src/tools/DiscoverSkillsTool/prompt.ts new file mode 100644 index 0000000..b498276 --- /dev/null +++ b/src/tools/DiscoverSkillsTool/prompt.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const DISCOVER_SKILLS_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/EnterPlanModeTool/src/constants/figures.ts b/src/tools/EnterPlanModeTool/src/constants/figures.ts new file mode 100644 index 0000000..e7414ed --- /dev/null +++ b/src/tools/EnterPlanModeTool/src/constants/figures.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BLACK_CIRCLE = any; diff --git a/src/tools/EnterPlanModeTool/src/utils/permissions/PermissionMode.ts b/src/tools/EnterPlanModeTool/src/utils/permissions/PermissionMode.ts new file mode 100644 index 0000000..42eb8c2 --- /dev/null +++ b/src/tools/EnterPlanModeTool/src/utils/permissions/PermissionMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModeColor = any; diff --git a/src/tools/ExitPlanModeTool/src/components/Markdown.ts b/src/tools/ExitPlanModeTool/src/components/Markdown.ts new file mode 100644 index 0000000..44bbabf --- /dev/null +++ b/src/tools/ExitPlanModeTool/src/components/Markdown.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Markdown = any; diff --git a/src/tools/ExitPlanModeTool/src/components/MessageResponse.ts b/src/tools/ExitPlanModeTool/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/tools/ExitPlanModeTool/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/tools/ExitPlanModeTool/src/components/messages/UserToolResultMessage/RejectedPlanMessage.ts b/src/tools/ExitPlanModeTool/src/components/messages/UserToolResultMessage/RejectedPlanMessage.ts new file mode 100644 index 0000000..a53820d --- /dev/null +++ b/src/tools/ExitPlanModeTool/src/components/messages/UserToolResultMessage/RejectedPlanMessage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type RejectedPlanMessage = any; diff --git a/src/tools/ExitPlanModeTool/src/constants/figures.ts b/src/tools/ExitPlanModeTool/src/constants/figures.ts new file mode 100644 index 0000000..e7414ed --- /dev/null +++ b/src/tools/ExitPlanModeTool/src/constants/figures.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BLACK_CIRCLE = any; diff --git a/src/tools/ExitPlanModeTool/src/utils/permissions/PermissionMode.ts b/src/tools/ExitPlanModeTool/src/utils/permissions/PermissionMode.ts new file mode 100644 index 0000000..42eb8c2 --- /dev/null +++ b/src/tools/ExitPlanModeTool/src/utils/permissions/PermissionMode.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModeColor = any; diff --git a/src/tools/FileEditTool/src/components/FileEditToolUseRejectedMessage.ts b/src/tools/FileEditTool/src/components/FileEditToolUseRejectedMessage.ts new file mode 100644 index 0000000..87e175d --- /dev/null +++ b/src/tools/FileEditTool/src/components/FileEditToolUseRejectedMessage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditToolUseRejectedMessage = any; diff --git a/src/tools/FileEditTool/src/components/MessageResponse.ts b/src/tools/FileEditTool/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/tools/FileEditTool/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/tools/FileEditTool/src/services/analytics/index.ts b/src/tools/FileEditTool/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/tools/FileEditTool/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/tools/FileEditTool/src/utils/log.ts b/src/tools/FileEditTool/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/tools/FileEditTool/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/tools/FileEditTool/src/utils/messages.ts b/src/tools/FileEditTool/src/utils/messages.ts new file mode 100644 index 0000000..94498c8 --- /dev/null +++ b/src/tools/FileEditTool/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; diff --git a/src/tools/FileEditTool/src/utils/path.ts b/src/tools/FileEditTool/src/utils/path.ts new file mode 100644 index 0000000..a965844 --- /dev/null +++ b/src/tools/FileEditTool/src/utils/path.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type expandPath = any; diff --git a/src/tools/FileEditTool/src/utils/stringUtils.ts b/src/tools/FileEditTool/src/utils/stringUtils.ts new file mode 100644 index 0000000..b2271d5 --- /dev/null +++ b/src/tools/FileEditTool/src/utils/stringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type countCharInString = any; diff --git a/src/tools/FileReadTool/src/services/analytics/growthbook.ts b/src/tools/FileReadTool/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/tools/FileReadTool/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/tools/FileReadTool/src/utils/file.ts b/src/tools/FileReadTool/src/utils/file.ts new file mode 100644 index 0000000..02d9bc1 --- /dev/null +++ b/src/tools/FileReadTool/src/utils/file.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MAX_OUTPUT_SIZE = any; diff --git a/src/tools/FileReadTool/src/utils/messages.ts b/src/tools/FileReadTool/src/utils/messages.ts new file mode 100644 index 0000000..94498c8 --- /dev/null +++ b/src/tools/FileReadTool/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; diff --git a/src/tools/FileWriteTool/src/components/MessageResponse.ts b/src/tools/FileWriteTool/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/tools/FileWriteTool/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/tools/FileWriteTool/src/services/analytics/index.ts b/src/tools/FileWriteTool/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/tools/FileWriteTool/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/tools/FileWriteTool/src/utils/messages.ts b/src/tools/FileWriteTool/src/utils/messages.ts new file mode 100644 index 0000000..94498c8 --- /dev/null +++ b/src/tools/FileWriteTool/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; diff --git a/src/tools/GlobTool/src/components/MessageResponse.ts b/src/tools/GlobTool/src/components/MessageResponse.ts new file mode 100644 index 0000000..cc1c024 --- /dev/null +++ b/src/tools/GlobTool/src/components/MessageResponse.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type MessageResponse = any; diff --git a/src/tools/GlobTool/src/utils/messages.ts b/src/tools/GlobTool/src/utils/messages.ts new file mode 100644 index 0000000..94498c8 --- /dev/null +++ b/src/tools/GlobTool/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; diff --git a/src/tools/MonitorTool/MonitorTool.ts b/src/tools/MonitorTool/MonitorTool.ts new file mode 100644 index 0000000..71be11b --- /dev/null +++ b/src/tools/MonitorTool/MonitorTool.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const MonitorTool: any = (() => {}) as any; diff --git a/src/tools/NotebookEditTool/src/types/message.ts b/src/tools/NotebookEditTool/src/types/message.ts new file mode 100644 index 0000000..245bfcc --- /dev/null +++ b/src/tools/NotebookEditTool/src/types/message.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Message = any; +export type ProgressMessage = any; diff --git a/src/tools/NotebookEditTool/src/utils/fileHistory.ts b/src/tools/NotebookEditTool/src/utils/fileHistory.ts new file mode 100644 index 0000000..5db1ed0 --- /dev/null +++ b/src/tools/NotebookEditTool/src/utils/fileHistory.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type fileHistoryEnabled = any; +export type fileHistoryTrackEdit = any; diff --git a/src/tools/NotebookEditTool/src/utils/messages.ts b/src/tools/NotebookEditTool/src/utils/messages.ts new file mode 100644 index 0000000..94498c8 --- /dev/null +++ b/src/tools/NotebookEditTool/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTag = any; diff --git a/src/tools/NotebookEditTool/src/utils/theme.ts b/src/tools/NotebookEditTool/src/utils/theme.ts new file mode 100644 index 0000000..62c7ea8 --- /dev/null +++ b/src/tools/NotebookEditTool/src/utils/theme.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ThemeName = any; diff --git a/src/tools/OverflowTestTool/OverflowTestTool.ts b/src/tools/OverflowTestTool/OverflowTestTool.ts new file mode 100644 index 0000000..bad391f --- /dev/null +++ b/src/tools/OverflowTestTool/OverflowTestTool.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const OVERFLOW_TEST_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/PowerShellTool/src/hooks/useCanUseTool.ts b/src/tools/PowerShellTool/src/hooks/useCanUseTool.ts new file mode 100644 index 0000000..056468f --- /dev/null +++ b/src/tools/PowerShellTool/src/hooks/useCanUseTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type CanUseToolFn = any; diff --git a/src/tools/PowerShellTool/src/state/AppState.ts b/src/tools/PowerShellTool/src/state/AppState.ts new file mode 100644 index 0000000..caf2928 --- /dev/null +++ b/src/tools/PowerShellTool/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; diff --git a/src/tools/REPLTool/REPLTool.js b/src/tools/REPLTool/REPLTool.js new file mode 100644 index 0000000..780db37 --- /dev/null +++ b/src/tools/REPLTool/REPLTool.js @@ -0,0 +1 @@ +export const REPLTool = { name: 'REPLTool', isEnabled: () => false } diff --git a/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts b/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts new file mode 100644 index 0000000..eb04bc7 --- /dev/null +++ b/src/tools/ReviewArtifactTool/ReviewArtifactTool.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const ReviewArtifactTool: any = (() => {}) as any; diff --git a/src/tools/SendUserFileTool/prompt.ts b/src/tools/SendUserFileTool/prompt.ts new file mode 100644 index 0000000..ad1dbf6 --- /dev/null +++ b/src/tools/SendUserFileTool/prompt.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const SEND_USER_FILE_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/SkillTool/src/Tool.ts b/src/tools/SkillTool/src/Tool.ts new file mode 100644 index 0000000..7cdf61f --- /dev/null +++ b/src/tools/SkillTool/src/Tool.ts @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type Tool = any; +export type ToolCallProgress = any; +export type ToolResult = any; +export type ToolUseContext = any; +export type ValidationResult = any; +export type buildTool = any; +export type ToolDef = any; diff --git a/src/tools/SkillTool/src/bootstrap/state.ts b/src/tools/SkillTool/src/bootstrap/state.ts new file mode 100644 index 0000000..4a23a6c --- /dev/null +++ b/src/tools/SkillTool/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getProjectRoot = any; diff --git a/src/tools/SkillTool/src/commands.ts b/src/tools/SkillTool/src/commands.ts new file mode 100644 index 0000000..6268813 --- /dev/null +++ b/src/tools/SkillTool/src/commands.ts @@ -0,0 +1,9 @@ +// Auto-generated type stub — replace with real implementation +export type builtInCommandNames = any; +export type findCommand = any; +export type getCommands = any; +export type PromptCommand = any; +export type Command = any; +export type getCommandName = any; +export type getSkillToolCommands = any; +export type getSlashCommandToolSkills = any; diff --git a/src/tools/SkillTool/src/components/CtrlOToExpand.ts b/src/tools/SkillTool/src/components/CtrlOToExpand.ts new file mode 100644 index 0000000..624f0cf --- /dev/null +++ b/src/tools/SkillTool/src/components/CtrlOToExpand.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SubAgentProvider = any; diff --git a/src/tools/SkillTool/src/components/FallbackToolUseErrorMessage.ts b/src/tools/SkillTool/src/components/FallbackToolUseErrorMessage.ts new file mode 100644 index 0000000..86d6073 --- /dev/null +++ b/src/tools/SkillTool/src/components/FallbackToolUseErrorMessage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FallbackToolUseErrorMessage = any; diff --git a/src/tools/SkillTool/src/components/FallbackToolUseRejectedMessage.ts b/src/tools/SkillTool/src/components/FallbackToolUseRejectedMessage.ts new file mode 100644 index 0000000..515ed63 --- /dev/null +++ b/src/tools/SkillTool/src/components/FallbackToolUseRejectedMessage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FallbackToolUseRejectedMessage = any; diff --git a/src/tools/SkillTool/src/types/command.ts b/src/tools/SkillTool/src/types/command.ts new file mode 100644 index 0000000..b4380e2 --- /dev/null +++ b/src/tools/SkillTool/src/types/command.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Command = any; diff --git a/src/tools/SkillTool/src/types/message.ts b/src/tools/SkillTool/src/types/message.ts new file mode 100644 index 0000000..72af921 --- /dev/null +++ b/src/tools/SkillTool/src/types/message.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type AssistantMessage = any; +export type AttachmentMessage = any; +export type Message = any; +export type SystemMessage = any; +export type UserMessage = any; diff --git a/src/tools/SkillTool/src/utils/debug.ts b/src/tools/SkillTool/src/utils/debug.ts new file mode 100644 index 0000000..c64d596 --- /dev/null +++ b/src/tools/SkillTool/src/utils/debug.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logForDebugging = any; diff --git a/src/tools/SkillTool/src/utils/permissions/PermissionResult.ts b/src/tools/SkillTool/src/utils/permissions/PermissionResult.ts new file mode 100644 index 0000000..510350f --- /dev/null +++ b/src/tools/SkillTool/src/utils/permissions/PermissionResult.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionDecision = any; diff --git a/src/tools/SkillTool/src/utils/permissions/permissions.ts b/src/tools/SkillTool/src/utils/permissions/permissions.ts new file mode 100644 index 0000000..5631feb --- /dev/null +++ b/src/tools/SkillTool/src/utils/permissions/permissions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getRuleByContentsForTool = any; diff --git a/src/tools/SkillTool/src/utils/plugins/pluginIdentifier.ts b/src/tools/SkillTool/src/utils/plugins/pluginIdentifier.ts new file mode 100644 index 0000000..1efe192 --- /dev/null +++ b/src/tools/SkillTool/src/utils/plugins/pluginIdentifier.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type isOfficialMarketplaceName = any; +export type parsePluginIdentifier = any; diff --git a/src/tools/SkillTool/src/utils/telemetry/pluginTelemetry.ts b/src/tools/SkillTool/src/utils/telemetry/pluginTelemetry.ts new file mode 100644 index 0000000..3081bbf --- /dev/null +++ b/src/tools/SkillTool/src/utils/telemetry/pluginTelemetry.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type buildPluginCommandTelemetryFields = any; diff --git a/src/tools/SnipTool/prompt.ts b/src/tools/SnipTool/prompt.ts new file mode 100644 index 0000000..525f52d --- /dev/null +++ b/src/tools/SnipTool/prompt.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const SNIP_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.js b/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.js new file mode 100644 index 0000000..cc371b1 --- /dev/null +++ b/src/tools/SuggestBackgroundPRTool/SuggestBackgroundPRTool.js @@ -0,0 +1 @@ +export const SuggestBackgroundPRTool = { name: 'SuggestBackgroundPRTool', isEnabled: () => false } diff --git a/src/tools/TerminalCaptureTool/prompt.ts b/src/tools/TerminalCaptureTool/prompt.ts new file mode 100644 index 0000000..565bbf1 --- /dev/null +++ b/src/tools/TerminalCaptureTool/prompt.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const TERMINAL_CAPTURE_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/TungstenTool/TungstenLiveMonitor.ts b/src/tools/TungstenTool/TungstenLiveMonitor.ts new file mode 100644 index 0000000..6f28974 --- /dev/null +++ b/src/tools/TungstenTool/TungstenLiveMonitor.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export const TungstenLiveMonitor: any = (() => {}) as any; diff --git a/src/tools/TungstenTool/TungstenTool.js b/src/tools/TungstenTool/TungstenTool.js new file mode 100644 index 0000000..dbd53ee --- /dev/null +++ b/src/tools/TungstenTool/TungstenTool.js @@ -0,0 +1,4 @@ +export const TungstenTool = { + name: 'TungstenTool', + isEnabled: () => false, +} diff --git a/src/tools/TungstenTool/TungstenTool.ts b/src/tools/TungstenTool/TungstenTool.ts new file mode 100644 index 0000000..e0ec66d --- /dev/null +++ b/src/tools/TungstenTool/TungstenTool.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export const TungstenTool: any = (() => {}) as any; +export const clearSessionsWithTungstenUsage: any = (() => {}) as any; +export const resetInitializationState: any = (() => {}) as any; diff --git a/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.js b/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.js new file mode 100644 index 0000000..8b9e4fb --- /dev/null +++ b/src/tools/VerifyPlanExecutionTool/VerifyPlanExecutionTool.js @@ -0,0 +1 @@ +export const VerifyPlanExecutionTool = { name: 'VerifyPlanExecutionTool', isEnabled: () => false } diff --git a/src/tools/VerifyPlanExecutionTool/constants.ts b/src/tools/VerifyPlanExecutionTool/constants.ts new file mode 100644 index 0000000..122a40b --- /dev/null +++ b/src/tools/VerifyPlanExecutionTool/constants.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const VERIFY_PLAN_EXECUTION_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/WebBrowserTool/WebBrowserPanel.ts b/src/tools/WebBrowserTool/WebBrowserPanel.ts new file mode 100644 index 0000000..870ac51 --- /dev/null +++ b/src/tools/WebBrowserTool/WebBrowserPanel.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const WebBrowserPanel: any = (() => {}) as any; diff --git a/src/tools/WebSearchTool/src/constants/common.ts b/src/tools/WebSearchTool/src/constants/common.ts new file mode 100644 index 0000000..69bbe4f --- /dev/null +++ b/src/tools/WebSearchTool/src/constants/common.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getLocalMonthYear = any; diff --git a/src/tools/WebSearchTool/src/utils/model/providers.ts b/src/tools/WebSearchTool/src/utils/model/providers.ts new file mode 100644 index 0000000..df87a41 --- /dev/null +++ b/src/tools/WebSearchTool/src/utils/model/providers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAPIProvider = any; diff --git a/src/tools/WebSearchTool/src/utils/permissions/PermissionResult.ts b/src/tools/WebSearchTool/src/utils/permissions/PermissionResult.ts new file mode 100644 index 0000000..4ffc39c --- /dev/null +++ b/src/tools/WebSearchTool/src/utils/permissions/PermissionResult.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionResult = any; diff --git a/src/tools/WorkflowTool/WorkflowPermissionRequest.ts b/src/tools/WorkflowTool/WorkflowPermissionRequest.ts new file mode 100644 index 0000000..97ee001 --- /dev/null +++ b/src/tools/WorkflowTool/WorkflowPermissionRequest.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const WorkflowPermissionRequest: any = (() => {}) as any; diff --git a/src/tools/WorkflowTool/WorkflowTool.ts b/src/tools/WorkflowTool/WorkflowTool.ts new file mode 100644 index 0000000..ce2fd7c --- /dev/null +++ b/src/tools/WorkflowTool/WorkflowTool.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const WorkflowTool: any = (() => {}) as any; diff --git a/src/tools/WorkflowTool/constants.ts b/src/tools/WorkflowTool/constants.ts new file mode 100644 index 0000000..16b10bd --- /dev/null +++ b/src/tools/WorkflowTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export const WORKFLOW_TOOL_NAME: any = (() => {}) as any; diff --git a/src/tools/WorkflowTool/createWorkflowCommand.ts b/src/tools/WorkflowTool/createWorkflowCommand.ts new file mode 100644 index 0000000..e05aba8 --- /dev/null +++ b/src/tools/WorkflowTool/createWorkflowCommand.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const getWorkflowCommands: any = (() => {}) as any; diff --git a/src/tools/src/types/message.ts b/src/tools/src/types/message.ts new file mode 100644 index 0000000..63cfb1e --- /dev/null +++ b/src/tools/src/types/message.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type AssistantMessage = any; +export type AttachmentMessage = any; +export type SystemMessage = any; +export type UserMessage = any; diff --git a/src/types/connectorText.ts b/src/types/connectorText.ts new file mode 100644 index 0000000..a2e0fe1 --- /dev/null +++ b/src/types/connectorText.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export type ConnectorTextBlock = any; +export type ConnectorTextDelta = any; +export const isConnectorTextBlock: any = (() => {}) as any; diff --git a/src/types/fileSuggestion.ts b/src/types/fileSuggestion.ts new file mode 100644 index 0000000..c92a18b --- /dev/null +++ b/src/types/fileSuggestion.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type FileSuggestionCommandInput = any; diff --git a/src/types/global.d.ts b/src/types/global.d.ts new file mode 100644 index 0000000..39695ef --- /dev/null +++ b/src/types/global.d.ts @@ -0,0 +1,61 @@ +/** + * Global declarations for compile-time macros and internal-only identifiers + * that are eliminated via Bun's MACRO/bundle feature system. + */ + +// ============================================================================ +// MACRO — Bun compile-time macro function (from bun:bundle) +// Expands the function body at build time and removes the call in production. +// Also supports property access like MACRO.VERSION (compile-time constants). +declare namespace MACRO { + export const VERSION: string + export const BUILD_TIME: string + export const FEEDBACK_CHANNEL: string + export const ISSUES_EXPLAINER: string + export const NATIVE_PACKAGE_URL: string + export const PACKAGE_URL: string + export const VERSION_CHANGELOG: string +} +declare function MACRO(fn: () => T): T + +// ============================================================================ +// Internal Anthropic-only identifiers (dead-code eliminated in open-source) +// These are referenced inside `MACRO(() => ...)` or `false && ...` blocks. + +// Model resolution (internal) +declare function resolveAntModel(model: string): any +declare function getAntModels(): any[] +declare function getAntModelOverrideConfig(): { + defaultSystemPromptSuffix?: string + [key: string]: unknown +} | null + +// Companion/buddy observer (internal) +declare function fireCompanionObserver( + messages: unknown[], + callback: (reaction: unknown) => void, +): void + +// Metrics (internal) +declare const apiMetricsRef: React.RefObject | null +declare function computeTtftText(metrics: any[]): string + +// Gate/feature system (internal) +declare const Gates: Record +declare function GateOverridesWarning(): JSX.Element | null +declare function ExperimentEnrollmentNotice(): JSX.Element | null + +// Hook timing threshold (re-exported from services/tools/toolExecution.ts) +declare const HOOK_TIMING_DISPLAY_THRESHOLD_MS: number + +// Ultraplan (internal) +declare function UltraplanChoiceDialog(): JSX.Element | null +declare function UltraplanLaunchDialog(): JSX.Element | null +declare function launchUltraplan(...args: unknown[]): void + +// T — Generic type parameter leaked from React compiler output +// (react/compiler-runtime emits compiled JSX that loses generic type params) +declare type T = any + +// Tungsten (internal) +declare function TungstenPill(): JSX.Element | null diff --git a/src/types/internal-modules.d.ts b/src/types/internal-modules.d.ts new file mode 100644 index 0000000..d9aba9a --- /dev/null +++ b/src/types/internal-modules.d.ts @@ -0,0 +1,122 @@ +/** + * Type declarations for internal Anthropic packages that cannot be installed + * from public npm. All exports are typed as `any` to suppress errors while + * still allowing IDE navigation for the actual source code. + */ + +// ============================================================================ +// bun:bundle — compile-time macros +// ============================================================================ +declare module "bun:bundle" { + export function feature(name: string): boolean + export function MACRO(fn: () => T): T +} + +declare module "bun:ffi" { + export function dlopen(path: string, symbols: Record): any +} + +// ============================================================================ +// @ant/claude-for-chrome-mcp +// ============================================================================ +declare module "@ant/claude-for-chrome-mcp" { + export const BROWSER_TOOLS: any[] + export class ClaudeForChromeContext { } + export class Logger { } + export type PermissionMode = any + export function createClaudeForChromeMcpServer(...args: any[]): any +} + +// ============================================================================ +// @ant/computer-use-mcp +// ============================================================================ +declare module "@ant/computer-use-mcp" { + export const API_RESIZE_PARAMS: any + export class ComputerExecutor { } + export type ComputerUseSessionContext = any + export type CuCallToolResult = any + export type CuPermissionRequest = any + export type CuPermissionResponse = any + export type DEFAULT_GRANT_FLAGS = any + export type DisplayGeometry = any + export type FrontmostApp = any + export type InstalledApp = any + export type ResolvePrepareCaptureResult = any + export type RunningApp = any + export type ScreenshotDims = any + export type ScreenshotResult = any + export function bindSessionContext(...args: any[]): any + export function buildComputerUseTools(...args: any[]): any[] + export function createComputerUseMcpServer(...args: any[]): any + export const targetImageSize: any +} + +declare module "@ant/computer-use-mcp/sentinelApps" { + export const sentinelApps: string[] + export function getSentinelCategory(appName: string): string | null +} + +declare module "@ant/computer-use-mcp/types" { + export type ComputerUseConfig = any + export type ComputerUseHostAdapter = any + export type CoordinateMode = any + export type CuPermissionRequest = any + export type CuPermissionResponse = any + export type CuSubGates = any + export type DEFAULT_GRANT_FLAGS = any + export type Logger = any +} + +// ============================================================================ +// @ant/computer-use-input +// ============================================================================ +declare module "@ant/computer-use-input" { + export class ComputerUseInput { } + export class ComputerUseInputAPI { } +} + +// ============================================================================ +// @ant/computer-use-swift +// ============================================================================ +declare module "@ant/computer-use-swift" { + export class ComputerUseAPI { } +} + +// ============================================================================ +// @anthropic-ai/mcpb — McpbManifest was renamed +// ============================================================================ +declare module "@anthropic-ai/mcpb" { + export type McpbManifest = any + export type McpbUserConfigurationOption = any + // Re-export whatever is actually available + export * from "@anthropic-ai/mcpb" +} + +// ============================================================================ +// color-diff-napi +// ============================================================================ +declare module "color-diff-napi" { + export function diff(a: [number, number, number], b: [number, number, number]): number + export type ColorDiff = any + export type ColorFile = any + export type SyntaxTheme = any + export function getSyntaxTheme(): SyntaxTheme +} + +// ============================================================================ +// Internal Anthropic native modules +// ============================================================================ +declare module "audio-capture-napi" { + const _: any + export default _ +} + +declare module "image-processor-napi" { + const _: any + export default _ +} + +declare module "url-handler-napi" { + const _: any + export default _ +} diff --git a/src/types/message.ts b/src/types/message.ts new file mode 100644 index 0000000..bfbc1e6 --- /dev/null +++ b/src/types/message.ts @@ -0,0 +1,40 @@ +// Auto-generated stub — replace with real implementation +export type Message = any; +export type AssistantMessage = any; +export type AttachmentMessage = any; +export type ProgressMessage = any; +export type SystemLocalCommandMessage = any; +export type SystemMessage = any; +export type UserMessage = any; +export type NormalizedUserMessage = any; +export type RequestStartEvent = any; +export type StreamEvent = any; +export type SystemCompactBoundaryMessage = any; +export type TombstoneMessage = any; +export type ToolUseSummaryMessage = any; +export type MessageOrigin = any; +export type CompactMetadata = any; +export type SystemAPIErrorMessage = any; +export type SystemFileSnapshotMessage = any; +export type NormalizedAssistantMessage = any; +export type NormalizedMessage = any; +export type PartialCompactDirection = any; +export type StopHookInfo = any; +export type SystemAgentsKilledMessage = any; +export type SystemApiMetricsMessage = any; +export type SystemAwaySummaryMessage = any; +export type SystemBridgeStatusMessage = any; +export type SystemInformationalMessage = any; +export type SystemMemorySavedMessage = any; +export type SystemMessageLevel = any; +export type SystemMicrocompactBoundaryMessage = any; +export type SystemPermissionRetryMessage = any; +export type SystemScheduledTaskFireMessage = any; +export type SystemStopHookSummaryMessage = any; +export type SystemTurnDurationMessage = any; +export type GroupedToolUseMessage = any; +export type RenderableMessage = any; +export type CollapsedReadSearchGroup = any; +export type CollapsibleMessage = any; +export type HookResultMessage = any; +export type SystemThinkingMessage = any; diff --git a/src/types/messageQueueTypes.ts b/src/types/messageQueueTypes.ts new file mode 100644 index 0000000..247671e --- /dev/null +++ b/src/types/messageQueueTypes.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type QueueOperationMessage = any; +export type QueueOperation = any; diff --git a/src/types/notebook.ts b/src/types/notebook.ts new file mode 100644 index 0000000..3ac9b2a --- /dev/null +++ b/src/types/notebook.ts @@ -0,0 +1,8 @@ +// Auto-generated stub — replace with real implementation +export type NotebookCell = any; +export type NotebookContent = any; +export type NotebookCellOutput = any; +export type NotebookCellSource = any; +export type NotebookCellSourceOutput = any; +export type NotebookOutputImage = any; +export type NotebookCellType = any; diff --git a/src/types/react-compiler-runtime.d.ts b/src/types/react-compiler-runtime.d.ts new file mode 100644 index 0000000..b6007e4 --- /dev/null +++ b/src/types/react-compiler-runtime.d.ts @@ -0,0 +1,3 @@ +declare module 'react/compiler-runtime' { + export function c(size: number): unknown[] +} diff --git a/src/types/sdk-stubs.d.ts b/src/types/sdk-stubs.d.ts new file mode 100644 index 0000000..ac657cd --- /dev/null +++ b/src/types/sdk-stubs.d.ts @@ -0,0 +1,116 @@ +/** + * Stub type declarations for missing SDK modules. + * + * These modules are referenced in the open-source codebase but their source + * is not yet published. All types are exported as `any` to suppress TS errors + * while keeping the import/export structure valid. + */ + +// ============================================================================ +// coreTypes.generated.js — Generated from coreSchemas.ts Zod schemas +// ============================================================================ +declare module "*/sdk/coreTypes.generated.js" { + // Usage & Model + export type ModelUsage = { + inputTokens: number + outputTokens: number + cacheReadInputTokens: number + cacheCreationInputTokens: number + webSearchRequests: number + costUSD: number + contextWindow: number + maxOutputTokens: number + } + export type ApiKeySource = string + export type ModelInfo = { + name: string + displayName?: string + [key: string]: unknown + } + + // MCP + export type McpServerConfigForProcessTransport = { + command: string + args: string[] + type?: "stdio" + env?: Record + } & { scope: string; pluginSource?: string } + export type McpServerStatus = { + name: string + status: "connected" | "disconnected" | "error" + [key: string]: unknown + } + + // Permissions + export type PermissionMode = string + export type PermissionResult = + | { behavior: "allow" } + | { behavior: "deny"; message?: string } + export type PermissionUpdate = { + path: string + permission: string + [key: string]: unknown + } + + // Rewind + export type RewindFilesResult = { + filesChanged: string[] + [key: string]: unknown + } + + // Hook types + export type HookInput = { hook_event_name: string; [key: string]: unknown } + export type HookJSONOutput = { [key: string]: unknown } + export type AsyncHookJSONOutput = { [key: string]: unknown } + export type SyncHookJSONOutput = { [key: string]: unknown } + export type PreToolUseHookInput = HookInput & { tool_name: string } + export type PostToolUseHookInput = HookInput & { tool_name: string } + export type PostToolUseFailureHookInput = HookInput & { tool_name: string } + export type PermissionRequestHookInput = HookInput & { tool_name: string } + export type PermissionDeniedHookInput = HookInput + export type NotificationHookInput = HookInput & { message: string } + export type UserPromptSubmitHookInput = HookInput & { prompt: string } + export type SessionStartHookInput = HookInput + export type SessionEndHookInput = HookInput & { exit_reason: string } + export type SetupHookInput = HookInput + export type StopHookInput = HookInput + export type StopFailureHookInput = HookInput + export type SubagentStartHookInput = HookInput + export type SubagentStopHookInput = HookInput + export type PreCompactHookInput = HookInput + export type PostCompactHookInput = HookInput + export type TeammateIdleHookInput = HookInput + export type TaskCreatedHookInput = HookInput + export type TaskCompletedHookInput = HookInput + export type ElicitationHookInput = HookInput + export type ElicitationResultHookInput = HookInput + export type ConfigChangeHookInput = HookInput + export type InstructionsLoadedHookInput = HookInput + export type CwdChangedHookInput = HookInput & { cwd: string } + export type FileChangedHookInput = HookInput & { path: string } + + // SDK Message types + export type SDKMessage = { type: string; [key: string]: unknown } + export type SDKUserMessage = { type: "user"; content: unknown; uuid: string; [key: string]: unknown } + export type SDKUserMessageReplay = SDKUserMessage + export type SDKAssistantMessage = { type: "assistant"; content: unknown; [key: string]: unknown } + export type SDKAssistantMessageError = { type: "assistant_error"; error: unknown; [key: string]: unknown } + export type SDKPartialAssistantMessage = { type: "partial_assistant"; [key: string]: unknown } + export type SDKResultMessage = { type: "result"; [key: string]: unknown } + export type SDKResultSuccess = { type: "result_success"; [key: string]: unknown } + export type SDKSystemMessage = { type: "system"; [key: string]: unknown } + export type SDKStatusMessage = { type: "status"; [key: string]: unknown } + export type SDKToolProgressMessage = { type: "tool_progress"; [key: string]: unknown } + export type SDKCompactBoundaryMessage = { type: "compact_boundary"; [key: string]: unknown } + export type SDKPermissionDenial = { type: "permission_denial"; [key: string]: unknown } + export type SDKRateLimitInfo = { type: "rate_limit"; [key: string]: unknown } + export type SDKStatus = "active" | "idle" | "error" | string + export type SDKSessionInfo = { + sessionId: string + summary?: string + [key: string]: unknown + } + + // Account + export type AccountInfo = { [key: string]: unknown } +} diff --git a/src/types/src/entrypoints/agentSdkTypes.ts b/src/types/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..d06fee6 --- /dev/null +++ b/src/types/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; +export type HOOK_EVENTS = any; +export type HookInput = any; +export type PermissionUpdate = any; +export type HookJSONOutput = any; +export type AsyncHookJSONOutput = any; +export type SyncHookJSONOutput = any; diff --git a/src/types/src/types/message.ts b/src/types/src/types/message.ts new file mode 100644 index 0000000..585895d --- /dev/null +++ b/src/types/src/types/message.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Message = any; diff --git a/src/types/src/utils/fileHistory.ts b/src/types/src/utils/fileHistory.ts new file mode 100644 index 0000000..f1dbe56 --- /dev/null +++ b/src/types/src/utils/fileHistory.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileHistorySnapshot = any; diff --git a/src/types/src/utils/permissions/PermissionResult.ts b/src/types/src/utils/permissions/PermissionResult.ts new file mode 100644 index 0000000..4ffc39c --- /dev/null +++ b/src/types/src/utils/permissions/PermissionResult.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PermissionResult = any; diff --git a/src/types/src/utils/permissions/PermissionRule.ts b/src/types/src/utils/permissions/PermissionRule.ts new file mode 100644 index 0000000..2b6b7b2 --- /dev/null +++ b/src/types/src/utils/permissions/PermissionRule.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type permissionBehaviorSchema = any; diff --git a/src/types/src/utils/permissions/PermissionUpdateSchema.ts b/src/types/src/utils/permissions/PermissionUpdateSchema.ts new file mode 100644 index 0000000..a56a548 --- /dev/null +++ b/src/types/src/utils/permissions/PermissionUpdateSchema.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type permissionUpdateSchema = any; diff --git a/src/types/src/utils/toolResultStorage.ts b/src/types/src/utils/toolResultStorage.ts new file mode 100644 index 0000000..2229baa --- /dev/null +++ b/src/types/src/utils/toolResultStorage.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ContentReplacementRecord = any; diff --git a/src/types/statusLine.ts b/src/types/statusLine.ts new file mode 100644 index 0000000..0594808 --- /dev/null +++ b/src/types/statusLine.ts @@ -0,0 +1,2 @@ +// Auto-generated stub — replace with real implementation +export type StatusLineCommandInput = any; diff --git a/src/types/tools.ts b/src/types/tools.ts new file mode 100644 index 0000000..218d782 --- /dev/null +++ b/src/types/tools.ts @@ -0,0 +1,12 @@ +// Auto-generated stub — replace with real implementation +export type AgentToolProgress = any; +export type BashProgress = any; +export type MCPProgress = any; +export type REPLToolProgress = any; +export type SkillToolProgress = any; +export type TaskOutputProgress = any; +export type ToolProgressData = any; +export type WebSearchProgress = any; +export type ShellProgress = any; +export type PowerShellProgress = any; +export type SdkWorkflowProgress = any; diff --git a/src/types/utils.ts b/src/types/utils.ts new file mode 100644 index 0000000..208e5dd --- /dev/null +++ b/src/types/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type DeepImmutable = T; +export type Permutations = T[]; diff --git a/src/utils/attributionHooks.ts b/src/utils/attributionHooks.ts new file mode 100644 index 0000000..7bef7c6 --- /dev/null +++ b/src/utils/attributionHooks.ts @@ -0,0 +1,5 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const clearAttributionCaches: any = (() => {}) as any; +export const sweepFileContentCache: any = (() => {}) as any; +export const registerAttributionHooks: any = (() => {}) as any; diff --git a/src/utils/attributionTrailer.ts b/src/utils/attributionTrailer.ts new file mode 100644 index 0000000..46b7e3b --- /dev/null +++ b/src/utils/attributionTrailer.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const buildPRTrailers: any = (() => {}) as any; diff --git a/src/utils/background/remote/src/constants/oauth.ts b/src/utils/background/remote/src/constants/oauth.ts new file mode 100644 index 0000000..a1b0893 --- /dev/null +++ b/src/utils/background/remote/src/constants/oauth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; diff --git a/src/utils/background/remote/src/entrypoints/agentSdkTypes.ts b/src/utils/background/remote/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..d4bdb4f --- /dev/null +++ b/src/utils/background/remote/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SDKMessage = any; diff --git a/src/utils/background/remote/src/services/oauth/client.ts b/src/utils/background/remote/src/services/oauth/client.ts new file mode 100644 index 0000000..5a7055f --- /dev/null +++ b/src/utils/background/remote/src/services/oauth/client.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOrganizationUUID = any; diff --git a/src/utils/bash/src/components/PromptInput/PromptInputFooterSuggestions.ts b/src/utils/bash/src/components/PromptInput/PromptInputFooterSuggestions.ts new file mode 100644 index 0000000..d0fd674 --- /dev/null +++ b/src/utils/bash/src/components/PromptInput/PromptInputFooterSuggestions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SuggestionItem = any; diff --git a/src/utils/bash/src/services/analytics/index.ts b/src/utils/bash/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/utils/bash/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/utils/ccshareResume.ts b/src/utils/ccshareResume.ts new file mode 100644 index 0000000..1efb038 --- /dev/null +++ b/src/utils/ccshareResume.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const parseCcshareId: any = (() => {}) as any; +export const loadCcshare: any = (() => {}) as any; diff --git a/src/utils/deepLink/src/services/analytics/growthbook.ts b/src/utils/deepLink/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/utils/deepLink/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/utils/deepLink/src/services/analytics/index.ts b/src/utils/deepLink/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/utils/deepLink/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/utils/eventLoopStallDetector.ts b/src/utils/eventLoopStallDetector.ts new file mode 100644 index 0000000..ef5f367 --- /dev/null +++ b/src/utils/eventLoopStallDetector.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const startEventLoopStallDetector: any = (() => {}) as any; diff --git a/src/utils/filePersistence/types.ts b/src/utils/filePersistence/types.ts new file mode 100644 index 0000000..1a201c8 --- /dev/null +++ b/src/utils/filePersistence/types.ts @@ -0,0 +1,24 @@ +export const FILE_COUNT_LIMIT = 10000 +export const OUTPUTS_SUBDIR = ".claude-code/outputs" +export const DEFAULT_UPLOAD_CONCURRENCY = 5 + +export interface FailedPersistence { + filePath: string + error: string +} + +export interface PersistedFile { + filePath: string + fileId: string +} + +export interface FilesPersistedEventData { + sessionId: string + turnStartTime: number + persistedFiles: PersistedFile[] + failedFiles: FailedPersistence[] +} + +export interface TurnStartTime { + turnStartTime: number +} diff --git a/src/utils/hooks/src/entrypoints/agentSdkTypes.ts b/src/utils/hooks/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..070725b --- /dev/null +++ b/src/utils/hooks/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,6 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; +export type AsyncHookJSONOutput = any; +export type SyncHookJSONOutput = any; +export type HOOK_EVENTS = any; +export type HookEvent = any; diff --git a/src/utils/hooks/src/entrypoints/sdk/coreTypes.ts b/src/utils/hooks/src/entrypoints/sdk/coreTypes.ts new file mode 100644 index 0000000..263795d --- /dev/null +++ b/src/utils/hooks/src/entrypoints/sdk/coreTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HOOK_EVENTS = any; diff --git a/src/utils/hooks/src/state/AppState.ts b/src/utils/hooks/src/state/AppState.ts new file mode 100644 index 0000000..caf2928 --- /dev/null +++ b/src/utils/hooks/src/state/AppState.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; diff --git a/src/utils/hooks/src/types/message.ts b/src/utils/hooks/src/types/message.ts new file mode 100644 index 0000000..585895d --- /dev/null +++ b/src/utils/hooks/src/types/message.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type Message = any; diff --git a/src/utils/messages/src/bootstrap/state.ts b/src/utils/messages/src/bootstrap/state.ts new file mode 100644 index 0000000..9acff45 --- /dev/null +++ b/src/utils/messages/src/bootstrap/state.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getSessionId = any; +export type getSdkBetas = any; diff --git a/src/utils/messages/src/constants/outputStyles.ts b/src/utils/messages/src/constants/outputStyles.ts new file mode 100644 index 0000000..42c1edb --- /dev/null +++ b/src/utils/messages/src/constants/outputStyles.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type DEFAULT_OUTPUT_STYLE_NAME = any; diff --git a/src/utils/messages/src/constants/xml.ts b/src/utils/messages/src/constants/xml.ts new file mode 100644 index 0000000..4b3d294 --- /dev/null +++ b/src/utils/messages/src/constants/xml.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type LOCAL_COMMAND_STDERR_TAG = any; +export type LOCAL_COMMAND_STDOUT_TAG = any; diff --git a/src/utils/messages/src/entrypoints/agentSdkTypes.ts b/src/utils/messages/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..59874ae --- /dev/null +++ b/src/utils/messages/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,7 @@ +// Auto-generated type stub — replace with real implementation +export type SDKAssistantMessage = any; +export type SDKCompactBoundaryMessage = any; +export type SDKMessage = any; +export type SDKRateLimitInfo = any; +export type ApiKeySource = any; +export type PermissionMode = any; diff --git a/src/utils/messages/src/services/claudeAiLimits.ts b/src/utils/messages/src/services/claudeAiLimits.ts new file mode 100644 index 0000000..4279795 --- /dev/null +++ b/src/utils/messages/src/services/claudeAiLimits.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ClaudeAILimits = any; diff --git a/src/utils/messages/src/tools/AgentTool/constants.ts b/src/utils/messages/src/tools/AgentTool/constants.ts new file mode 100644 index 0000000..4c70161 --- /dev/null +++ b/src/utils/messages/src/tools/AgentTool/constants.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AGENT_TOOL_NAME = any; +export type LEGACY_AGENT_TOOL_NAME = any; diff --git a/src/utils/messages/src/tools/ExitPlanModeTool/constants.ts b/src/utils/messages/src/tools/ExitPlanModeTool/constants.ts new file mode 100644 index 0000000..f0f7cce --- /dev/null +++ b/src/utils/messages/src/tools/ExitPlanModeTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EXIT_PLAN_MODE_V2_TOOL_NAME = any; diff --git a/src/utils/messages/src/types/message.ts b/src/utils/messages/src/types/message.ts new file mode 100644 index 0000000..36aae2c --- /dev/null +++ b/src/utils/messages/src/types/message.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type AssistantMessage = any; +export type CompactMetadata = any; +export type Message = any; diff --git a/src/utils/messages/src/types/utils.ts b/src/utils/messages/src/types/utils.ts new file mode 100644 index 0000000..b620f7a --- /dev/null +++ b/src/utils/messages/src/types/utils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type DeepImmutable = any; diff --git a/src/utils/model/src/bootstrap/state.ts b/src/utils/model/src/bootstrap/state.ts new file mode 100644 index 0000000..492747a --- /dev/null +++ b/src/utils/model/src/bootstrap/state.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getModelStrings = any; +export type setModelStrings = any; diff --git a/src/utils/model/src/services/analytics/growthbook.ts b/src/utils/model/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..e380906 --- /dev/null +++ b/src/utils/model/src/services/analytics/growthbook.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/utils/model/src/services/claudeAiLimits.ts b/src/utils/model/src/services/claudeAiLimits.ts new file mode 100644 index 0000000..85b6bcc --- /dev/null +++ b/src/utils/model/src/services/claudeAiLimits.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type OverageDisabledReason = any; diff --git a/src/utils/nativeInstaller/src/services/analytics/index.ts b/src/utils/nativeInstaller/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/utils/nativeInstaller/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/utils/permissions/src/Tool.ts b/src/utils/permissions/src/Tool.ts new file mode 100644 index 0000000..9f3d854 --- /dev/null +++ b/src/utils/permissions/src/Tool.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type ToolPermissionContext = any; +export type Tool = any; +export type ToolUseContext = any; diff --git a/src/utils/permissions/src/memdir/paths.ts b/src/utils/permissions/src/memdir/paths.ts new file mode 100644 index 0000000..2411afd --- /dev/null +++ b/src/utils/permissions/src/memdir/paths.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type hasAutoMemPathOverride = any; +export type isAutoMemPath = any; diff --git a/src/utils/permissions/src/services/analytics/growthbook.ts b/src/utils/permissions/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..8b70dad --- /dev/null +++ b/src/utils/permissions/src/services/analytics/growthbook.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type checkSecurityRestrictionGate = any; +export type checkStatsigFeatureGate_CACHED_MAY_BE_STALE = any; +export type getDynamicConfig_BLOCKS_ON_INIT = any; +export type getFeatureValue_CACHED_MAY_BE_STALE = any; diff --git a/src/utils/permissions/src/state/AppState.ts b/src/utils/permissions/src/state/AppState.ts new file mode 100644 index 0000000..994ed9c --- /dev/null +++ b/src/utils/permissions/src/state/AppState.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type AppState = any; +export type useAppState = any; +export type useAppStateStore = any; +export type useSetAppState = any; diff --git a/src/utils/permissions/src/tools/AgentTool/agentMemory.ts b/src/utils/permissions/src/tools/AgentTool/agentMemory.ts new file mode 100644 index 0000000..0cd1375 --- /dev/null +++ b/src/utils/permissions/src/tools/AgentTool/agentMemory.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isAgentMemoryPath = any; diff --git a/src/utils/permissions/src/tools/FileEditTool/constants.ts b/src/utils/permissions/src/tools/FileEditTool/constants.ts new file mode 100644 index 0000000..34c77ef --- /dev/null +++ b/src/utils/permissions/src/tools/FileEditTool/constants.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type CLAUDE_FOLDER_PERMISSION_PATTERN = any; +export type FILE_EDIT_TOOL_NAME = any; +export type GLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERN = any; diff --git a/src/utils/plugins/src/entrypoints/agentSdkTypes.ts b/src/utils/plugins/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..2ad98a3 --- /dev/null +++ b/src/utils/plugins/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type HookEvent = any; diff --git a/src/utils/postCommitAttribution.ts b/src/utils/postCommitAttribution.ts new file mode 100644 index 0000000..d9b8fde --- /dev/null +++ b/src/utils/postCommitAttribution.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const installPrepareCommitMsgHook: any = (() => {}) as any; diff --git a/src/utils/processUserInput/src/Tool.ts b/src/utils/processUserInput/src/Tool.ts new file mode 100644 index 0000000..56e1f70 --- /dev/null +++ b/src/utils/processUserInput/src/Tool.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type SetToolJSXFn = any; +export type ToolUseContext = any; diff --git a/src/utils/processUserInput/src/bootstrap/state.ts b/src/utils/processUserInput/src/bootstrap/state.ts new file mode 100644 index 0000000..c79c908 --- /dev/null +++ b/src/utils/processUserInput/src/bootstrap/state.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type setPromptId = any; diff --git a/src/utils/processUserInput/src/commands.ts b/src/utils/processUserInput/src/commands.ts new file mode 100644 index 0000000..f8826ed --- /dev/null +++ b/src/utils/processUserInput/src/commands.ts @@ -0,0 +1,9 @@ +// Auto-generated type stub — replace with real implementation +export type builtInCommandNames = any; +export type Command = any; +export type CommandBase = any; +export type findCommand = any; +export type getCommand = any; +export type getCommandName = any; +export type hasCommand = any; +export type PromptCommand = any; diff --git a/src/utils/processUserInput/src/components/BashModeProgress.ts b/src/utils/processUserInput/src/components/BashModeProgress.ts new file mode 100644 index 0000000..c1db5a9 --- /dev/null +++ b/src/utils/processUserInput/src/components/BashModeProgress.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BashModeProgress = any; diff --git a/src/utils/processUserInput/src/constants/messages.ts b/src/utils/processUserInput/src/constants/messages.ts new file mode 100644 index 0000000..7c5ff73 --- /dev/null +++ b/src/utils/processUserInput/src/constants/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type NO_CONTENT_MESSAGE = any; diff --git a/src/utils/processUserInput/src/constants/querySource.ts b/src/utils/processUserInput/src/constants/querySource.ts new file mode 100644 index 0000000..61a1720 --- /dev/null +++ b/src/utils/processUserInput/src/constants/querySource.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type QuerySource = any; diff --git a/src/utils/processUserInput/src/services/analytics/index.ts b/src/utils/processUserInput/src/services/analytics/index.ts new file mode 100644 index 0000000..60402f9 --- /dev/null +++ b/src/utils/processUserInput/src/services/analytics/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logEvent = any; diff --git a/src/utils/processUserInput/src/tools/BashTool/BashTool.ts b/src/utils/processUserInput/src/tools/BashTool/BashTool.ts new file mode 100644 index 0000000..7a3ea3c --- /dev/null +++ b/src/utils/processUserInput/src/tools/BashTool/BashTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BashTool = any; diff --git a/src/utils/processUserInput/src/types/message.ts b/src/utils/processUserInput/src/types/message.ts new file mode 100644 index 0000000..ddb10eb --- /dev/null +++ b/src/utils/processUserInput/src/types/message.ts @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type AttachmentMessage = any; +export type SystemMessage = any; +export type UserMessage = any; +export type AssistantMessage = any; +export type Message = any; +export type NormalizedUserMessage = any; +export type ProgressMessage = any; diff --git a/src/utils/processUserInput/src/types/tools.ts b/src/utils/processUserInput/src/types/tools.ts new file mode 100644 index 0000000..df558fc --- /dev/null +++ b/src/utils/processUserInput/src/types/tools.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ShellProgress = any; diff --git a/src/utils/processUserInput/src/utils/messages.ts b/src/utils/processUserInput/src/utils/messages.ts new file mode 100644 index 0000000..fcafd53 --- /dev/null +++ b/src/utils/processUserInput/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getContentText = any; diff --git a/src/utils/protectedNamespace.ts b/src/utils/protectedNamespace.ts new file mode 100644 index 0000000..a787d72 --- /dev/null +++ b/src/utils/protectedNamespace.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const checkProtectedNamespace: any = (() => {}) as any; diff --git a/src/utils/sandbox/src/tools/BashTool/toolName.ts b/src/utils/sandbox/src/tools/BashTool/toolName.ts new file mode 100644 index 0000000..2da8eb7 --- /dev/null +++ b/src/utils/sandbox/src/tools/BashTool/toolName.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BASH_TOOL_NAME = any; diff --git a/src/utils/sandbox/src/tools/FileEditTool/constants.ts b/src/utils/sandbox/src/tools/FileEditTool/constants.ts new file mode 100644 index 0000000..b455c06 --- /dev/null +++ b/src/utils/sandbox/src/tools/FileEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_EDIT_TOOL_NAME = any; diff --git a/src/utils/sandbox/src/tools/FileReadTool/prompt.ts b/src/utils/sandbox/src/tools/FileReadTool/prompt.ts new file mode 100644 index 0000000..fac6439 --- /dev/null +++ b/src/utils/sandbox/src/tools/FileReadTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_READ_TOOL_NAME = any; diff --git a/src/utils/sandbox/src/tools/WebFetchTool/prompt.ts b/src/utils/sandbox/src/tools/WebFetchTool/prompt.ts new file mode 100644 index 0000000..63b342a --- /dev/null +++ b/src/utils/sandbox/src/tools/WebFetchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_FETCH_TOOL_NAME = any; diff --git a/src/utils/sdkHeapDumpMonitor.ts b/src/utils/sdkHeapDumpMonitor.ts new file mode 100644 index 0000000..e5fcd08 --- /dev/null +++ b/src/utils/sdkHeapDumpMonitor.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const startSdkMemoryMonitor: any = (() => {}) as any; diff --git a/src/utils/secureStorage/src/constants/oauth.ts b/src/utils/secureStorage/src/constants/oauth.ts new file mode 100644 index 0000000..a1b0893 --- /dev/null +++ b/src/utils/secureStorage/src/constants/oauth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; diff --git a/src/utils/secureStorage/types.ts b/src/utils/secureStorage/types.ts new file mode 100644 index 0000000..5a959bf --- /dev/null +++ b/src/utils/secureStorage/types.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export type SecureStorage = any; +export type SecureStorageData = any; diff --git a/src/utils/sessionDataUploader.ts b/src/utils/sessionDataUploader.ts new file mode 100644 index 0000000..fba6961 --- /dev/null +++ b/src/utils/sessionDataUploader.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const createSessionTurnUploader: any = (() => {}) as any; diff --git a/src/utils/settings/src/Tool.ts b/src/utils/settings/src/Tool.ts new file mode 100644 index 0000000..ed89663 --- /dev/null +++ b/src/utils/settings/src/Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ValidationResult = any; diff --git a/src/utils/settings/src/services/mcp/types.ts b/src/utils/settings/src/services/mcp/types.ts new file mode 100644 index 0000000..f604edd --- /dev/null +++ b/src/utils/settings/src/services/mcp/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ConfigScope = any; diff --git a/src/utils/src/bootstrap/state.ts b/src/utils/src/bootstrap/state.ts new file mode 100644 index 0000000..7c1a523 --- /dev/null +++ b/src/utils/src/bootstrap/state.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type getOriginalCwd = any; +export type getSessionId = any; +export type getIsNonInteractiveSession = any; +export type isSessionPersistenceDisabled = any; diff --git a/src/utils/src/constants/oauth.ts b/src/utils/src/constants/oauth.ts new file mode 100644 index 0000000..4a2c887 --- /dev/null +++ b/src/utils/src/constants/oauth.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; +export type OAUTH_BETA_HEADER = any; +export type CLAUDE_AI_PROFILE_SCOPE = any; diff --git a/src/utils/src/constants/prompts.ts b/src/utils/src/constants/prompts.ts new file mode 100644 index 0000000..5f6f230 --- /dev/null +++ b/src/utils/src/constants/prompts.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getSystemPrompt = any; +export type SYSTEM_PROMPT_DYNAMIC_BOUNDARY = any; diff --git a/src/utils/src/constants/querySource.ts b/src/utils/src/constants/querySource.ts new file mode 100644 index 0000000..61a1720 --- /dev/null +++ b/src/utils/src/constants/querySource.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type QuerySource = any; diff --git a/src/utils/src/context.ts b/src/utils/src/context.ts new file mode 100644 index 0000000..f303aa8 --- /dev/null +++ b/src/utils/src/context.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getSystemContext = any; +export type getUserContext = any; diff --git a/src/utils/src/entrypoints/agentSdkTypes.ts b/src/utils/src/entrypoints/agentSdkTypes.ts new file mode 100644 index 0000000..9822956 --- /dev/null +++ b/src/utils/src/entrypoints/agentSdkTypes.ts @@ -0,0 +1,37 @@ +// Auto-generated type stub — replace with real implementation +export type ExitReason = any; +export type HookEvent = any; +export type SDKAssistantMessageError = any; +export type ModelUsage = any; +export type SDKMessage = any; +export type SyncHookJSONOutput = any; +export type HookInput = any; +export type HookJSONOutput = any; +export type NotificationHookInput = any; +export type PostToolUseHookInput = any; +export type PostToolUseFailureHookInput = any; +export type PermissionDeniedHookInput = any; +export type PreCompactHookInput = any; +export type PostCompactHookInput = any; +export type PreToolUseHookInput = any; +export type SessionStartHookInput = any; +export type SessionEndHookInput = any; +export type SetupHookInput = any; +export type StopHookInput = any; +export type StopFailureHookInput = any; +export type SubagentStartHookInput = any; +export type SubagentStopHookInput = any; +export type TeammateIdleHookInput = any; +export type TaskCreatedHookInput = any; +export type TaskCompletedHookInput = any; +export type ConfigChangeHookInput = any; +export type CwdChangedHookInput = any; +export type FileChangedHookInput = any; +export type InstructionsLoadedHookInput = any; +export type UserPromptSubmitHookInput = any; +export type PermissionRequestHookInput = any; +export type ElicitationHookInput = any; +export type ElicitationResultHookInput = any; +export type PermissionUpdate = any; +export type AsyncHookJSONOutput = any; +export type SDKAssistantMessage = any; diff --git a/src/utils/src/entrypoints/sdk/controlTypes.ts b/src/utils/src/entrypoints/sdk/controlTypes.ts new file mode 100644 index 0000000..bd1b059 --- /dev/null +++ b/src/utils/src/entrypoints/sdk/controlTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type StdoutMessage = any; diff --git a/src/utils/src/entrypoints/sdk/runtimeTypes.ts b/src/utils/src/entrypoints/sdk/runtimeTypes.ts new file mode 100644 index 0000000..bdcefcb --- /dev/null +++ b/src/utils/src/entrypoints/sdk/runtimeTypes.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EffortLevel = any; diff --git a/src/utils/src/services/analytics/config.ts b/src/utils/src/services/analytics/config.ts new file mode 100644 index 0000000..a74c406 --- /dev/null +++ b/src/utils/src/services/analytics/config.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isAnalyticsDisabled = any; diff --git a/src/utils/src/services/analytics/growthbook.ts b/src/utils/src/services/analytics/growthbook.ts new file mode 100644 index 0000000..5b9ce03 --- /dev/null +++ b/src/utils/src/services/analytics/growthbook.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type checkGate_CACHED_OR_BLOCKING = any; +export type getFeatureValue_CACHED_MAY_BE_STALE = any; +export type checkStatsigFeatureGate_CACHED_MAY_BE_STALE = any; +export type getDynamicConfig_BLOCKS_ON_INIT = any; diff --git a/src/utils/src/services/analytics/index.ts b/src/utils/src/services/analytics/index.ts new file mode 100644 index 0000000..3f75d0c --- /dev/null +++ b/src/utils/src/services/analytics/index.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; diff --git a/src/utils/src/services/analytics/metadata.ts b/src/utils/src/services/analytics/metadata.ts new file mode 100644 index 0000000..b00cab5 --- /dev/null +++ b/src/utils/src/services/analytics/metadata.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type sanitizeToolNameForAnalytics = any; diff --git a/src/utils/src/services/compact/microCompact.ts b/src/utils/src/services/compact/microCompact.ts new file mode 100644 index 0000000..26c0c27 --- /dev/null +++ b/src/utils/src/services/compact/microCompact.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type microcompactMessages = any; diff --git a/src/utils/src/services/mcp/client.ts b/src/utils/src/services/mcp/client.ts new file mode 100644 index 0000000..65f6d11 --- /dev/null +++ b/src/utils/src/services/mcp/client.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type prefetchAllMcpResources = any; diff --git a/src/utils/src/services/mcp/types.ts b/src/utils/src/services/mcp/types.ts new file mode 100644 index 0000000..8d1c88e --- /dev/null +++ b/src/utils/src/services/mcp/types.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ScopedMcpServerConfig = any; diff --git a/src/utils/src/services/mcp/vscodeSdkMcp.ts b/src/utils/src/services/mcp/vscodeSdkMcp.ts new file mode 100644 index 0000000..ac040b3 --- /dev/null +++ b/src/utils/src/services/mcp/vscodeSdkMcp.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type notifyVscodeFileUpdated = any; diff --git a/src/utils/src/services/policyLimits/index.ts b/src/utils/src/services/policyLimits/index.ts new file mode 100644 index 0000000..887817d --- /dev/null +++ b/src/utils/src/services/policyLimits/index.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type isPolicyAllowed = any; diff --git a/src/utils/src/tools.ts b/src/utils/src/tools.ts new file mode 100644 index 0000000..f9dcbf2 --- /dev/null +++ b/src/utils/src/tools.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getTools = any; diff --git a/src/utils/src/tools/AgentTool/built-in/exploreAgent.ts b/src/utils/src/tools/AgentTool/built-in/exploreAgent.ts new file mode 100644 index 0000000..22214f1 --- /dev/null +++ b/src/utils/src/tools/AgentTool/built-in/exploreAgent.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type EXPLORE_AGENT = any; diff --git a/src/utils/src/tools/AgentTool/built-in/planAgent.ts b/src/utils/src/tools/AgentTool/built-in/planAgent.ts new file mode 100644 index 0000000..6ff4323 --- /dev/null +++ b/src/utils/src/tools/AgentTool/built-in/planAgent.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type PLAN_AGENT = any; diff --git a/src/utils/src/tools/AgentTool/builtInAgents.ts b/src/utils/src/tools/AgentTool/builtInAgents.ts new file mode 100644 index 0000000..8358c0b --- /dev/null +++ b/src/utils/src/tools/AgentTool/builtInAgents.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type areExplorePlanAgentsEnabled = any; diff --git a/src/utils/src/tools/AgentTool/constants.ts b/src/utils/src/tools/AgentTool/constants.ts new file mode 100644 index 0000000..c5969e5 --- /dev/null +++ b/src/utils/src/tools/AgentTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type AGENT_TOOL_NAME = any; diff --git a/src/utils/src/tools/AskUserQuestionTool/prompt.ts b/src/utils/src/tools/AskUserQuestionTool/prompt.ts new file mode 100644 index 0000000..93098f1 --- /dev/null +++ b/src/utils/src/tools/AskUserQuestionTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ASK_USER_QUESTION_TOOL_NAME = any; diff --git a/src/utils/src/tools/BashTool/BashTool.ts b/src/utils/src/tools/BashTool/BashTool.ts new file mode 100644 index 0000000..7a3ea3c --- /dev/null +++ b/src/utils/src/tools/BashTool/BashTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type BashTool = any; diff --git a/src/utils/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts b/src/utils/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts new file mode 100644 index 0000000..f9708d2 --- /dev/null +++ b/src/utils/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type ExitPlanModeV2Tool = any; diff --git a/src/utils/src/tools/FileEditTool/FileEditTool.ts b/src/utils/src/tools/FileEditTool/FileEditTool.ts new file mode 100644 index 0000000..0d3bc60 --- /dev/null +++ b/src/utils/src/tools/FileEditTool/FileEditTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileEditTool = any; diff --git a/src/utils/src/tools/FileEditTool/constants.ts b/src/utils/src/tools/FileEditTool/constants.ts new file mode 100644 index 0000000..b455c06 --- /dev/null +++ b/src/utils/src/tools/FileEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_EDIT_TOOL_NAME = any; diff --git a/src/utils/src/tools/FileEditTool/utils.ts b/src/utils/src/tools/FileEditTool/utils.ts new file mode 100644 index 0000000..5a2f3c0 --- /dev/null +++ b/src/utils/src/tools/FileEditTool/utils.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type normalizeFileEditInput = any; +export type stripTrailingWhitespace = any; +export type getSnippetForTwoFileDiff = any; diff --git a/src/utils/src/tools/FileReadTool/limits.ts b/src/utils/src/tools/FileReadTool/limits.ts new file mode 100644 index 0000000..a094e85 --- /dev/null +++ b/src/utils/src/tools/FileReadTool/limits.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getDefaultFileReadingLimits = any; diff --git a/src/utils/src/tools/FileReadTool/prompt.ts b/src/utils/src/tools/FileReadTool/prompt.ts new file mode 100644 index 0000000..a8a0962 --- /dev/null +++ b/src/utils/src/tools/FileReadTool/prompt.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_READ_TOOL_NAME = any; +export type MAX_LINES_TO_READ = any; diff --git a/src/utils/src/tools/FileWriteTool/FileWriteTool.ts b/src/utils/src/tools/FileWriteTool/FileWriteTool.ts new file mode 100644 index 0000000..9417a7a --- /dev/null +++ b/src/utils/src/tools/FileWriteTool/FileWriteTool.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FileWriteTool = any; diff --git a/src/utils/src/tools/FileWriteTool/prompt.ts b/src/utils/src/tools/FileWriteTool/prompt.ts new file mode 100644 index 0000000..e69299d --- /dev/null +++ b/src/utils/src/tools/FileWriteTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type FILE_WRITE_TOOL_NAME = any; diff --git a/src/utils/src/tools/GlobTool/prompt.ts b/src/utils/src/tools/GlobTool/prompt.ts new file mode 100644 index 0000000..060caf2 --- /dev/null +++ b/src/utils/src/tools/GlobTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GLOB_TOOL_NAME = any; diff --git a/src/utils/src/tools/GrepTool/prompt.ts b/src/utils/src/tools/GrepTool/prompt.ts new file mode 100644 index 0000000..08b8a8d --- /dev/null +++ b/src/utils/src/tools/GrepTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type GREP_TOOL_NAME = any; diff --git a/src/utils/src/tools/LSPTool/prompt.ts b/src/utils/src/tools/LSPTool/prompt.ts new file mode 100644 index 0000000..9be378e --- /dev/null +++ b/src/utils/src/tools/LSPTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LSP_TOOL_NAME = any; diff --git a/src/utils/src/tools/ListMcpResourcesTool/prompt.ts b/src/utils/src/tools/ListMcpResourcesTool/prompt.ts new file mode 100644 index 0000000..987c4a3 --- /dev/null +++ b/src/utils/src/tools/ListMcpResourcesTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LIST_MCP_RESOURCES_TOOL_NAME = any; diff --git a/src/utils/src/tools/NotebookEditTool/constants.ts b/src/utils/src/tools/NotebookEditTool/constants.ts new file mode 100644 index 0000000..6c6c94b --- /dev/null +++ b/src/utils/src/tools/NotebookEditTool/constants.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type NOTEBOOK_EDIT_TOOL_NAME = any; diff --git a/src/utils/src/tools/TaskStopTool/prompt.ts b/src/utils/src/tools/TaskStopTool/prompt.ts new file mode 100644 index 0000000..28c2e71 --- /dev/null +++ b/src/utils/src/tools/TaskStopTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type TASK_STOP_TOOL_NAME = any; diff --git a/src/utils/src/tools/WebSearchTool/prompt.ts b/src/utils/src/tools/WebSearchTool/prompt.ts new file mode 100644 index 0000000..38871a0 --- /dev/null +++ b/src/utils/src/tools/WebSearchTool/prompt.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type WEB_SEARCH_TOOL_NAME = any; diff --git a/src/utils/src/types/ids.ts b/src/utils/src/types/ids.ts new file mode 100644 index 0000000..ba0dcc8 --- /dev/null +++ b/src/utils/src/types/ids.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AgentId = any; +export type SessionId = any; diff --git a/src/utils/src/types/logs.ts b/src/utils/src/types/logs.ts new file mode 100644 index 0000000..729b9b4 --- /dev/null +++ b/src/utils/src/types/logs.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type LogOption = any; diff --git a/src/utils/src/types/message.ts b/src/utils/src/types/message.ts new file mode 100644 index 0000000..b7e8d17 --- /dev/null +++ b/src/utils/src/types/message.ts @@ -0,0 +1,8 @@ +// Auto-generated type stub — replace with real implementation +export type AssistantMessage = any; +export type AttachmentMessage = any; +export type SystemFileSnapshotMessage = any; +export type UserMessage = any; +export type Message = any; +export type MessageOrigin = any; +export type HookResultMessage = any; diff --git a/src/utils/src/types/textInputTypes.ts b/src/utils/src/types/textInputTypes.ts new file mode 100644 index 0000000..976f11a --- /dev/null +++ b/src/utils/src/types/textInputTypes.ts @@ -0,0 +1,4 @@ +// Auto-generated type stub — replace with real implementation +export type QueuedCommand = any; +export type getImagePasteIds = any; +export type isValidImagePaste = any; diff --git a/src/utils/src/types/utils.ts b/src/utils/src/types/utils.ts new file mode 100644 index 0000000..96cc5d2 --- /dev/null +++ b/src/utils/src/types/utils.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type Permutations = any; +export type DeepImmutable = any; diff --git a/src/utils/src/utils/cwd.ts b/src/utils/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/utils/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/utils/src/utils/messages.ts b/src/utils/src/utils/messages.ts new file mode 100644 index 0000000..f773942 --- /dev/null +++ b/src/utils/src/utils/messages.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type extractTextContent = any; diff --git a/src/utils/src/utils/model/modelStrings.ts b/src/utils/src/utils/model/modelStrings.ts new file mode 100644 index 0000000..1265ece --- /dev/null +++ b/src/utils/src/utils/model/modelStrings.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getModelStrings = any; diff --git a/src/utils/src/utils/model/providers.ts b/src/utils/src/utils/model/providers.ts new file mode 100644 index 0000000..df87a41 --- /dev/null +++ b/src/utils/src/utils/model/providers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getAPIProvider = any; diff --git a/src/utils/src/utils/secureStorage/macOsKeychainHelpers.ts b/src/utils/src/utils/secureStorage/macOsKeychainHelpers.ts new file mode 100644 index 0000000..9a57f40 --- /dev/null +++ b/src/utils/src/utils/secureStorage/macOsKeychainHelpers.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getMacOsKeychainStorageServiceName = any; diff --git a/src/utils/src/utils/shell/shellToolUtils.ts b/src/utils/src/utils/shell/shellToolUtils.ts new file mode 100644 index 0000000..c89fe2a --- /dev/null +++ b/src/utils/src/utils/shell/shellToolUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SHELL_TOOL_NAMES = any; diff --git a/src/utils/src/utils/stringUtils.ts b/src/utils/src/utils/stringUtils.ts new file mode 100644 index 0000000..ac925fc --- /dev/null +++ b/src/utils/src/utils/stringUtils.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type capitalize = any; diff --git a/src/utils/suggestions/src/components/PromptInput/PromptInputFooterSuggestions.ts b/src/utils/suggestions/src/components/PromptInput/PromptInputFooterSuggestions.ts new file mode 100644 index 0000000..d0fd674 --- /dev/null +++ b/src/utils/suggestions/src/components/PromptInput/PromptInputFooterSuggestions.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type SuggestionItem = any; diff --git a/src/utils/suggestions/src/utils/cwd.ts b/src/utils/suggestions/src/utils/cwd.ts new file mode 100644 index 0000000..76c192e --- /dev/null +++ b/src/utils/suggestions/src/utils/cwd.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getCwd = any; diff --git a/src/utils/suggestions/src/utils/fsOperations.ts b/src/utils/suggestions/src/utils/fsOperations.ts new file mode 100644 index 0000000..d30ccea --- /dev/null +++ b/src/utils/suggestions/src/utils/fsOperations.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getFsImplementation = any; diff --git a/src/utils/suggestions/src/utils/log.ts b/src/utils/suggestions/src/utils/log.ts new file mode 100644 index 0000000..cf30e90 --- /dev/null +++ b/src/utils/suggestions/src/utils/log.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type logError = any; diff --git a/src/utils/suggestions/src/utils/path.ts b/src/utils/suggestions/src/utils/path.ts new file mode 100644 index 0000000..a965844 --- /dev/null +++ b/src/utils/suggestions/src/utils/path.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type expandPath = any; diff --git a/src/utils/systemThemeWatcher.ts b/src/utils/systemThemeWatcher.ts new file mode 100644 index 0000000..7957c5c --- /dev/null +++ b/src/utils/systemThemeWatcher.ts @@ -0,0 +1,3 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const watchSystemTheme: any = (() => {}) as any; diff --git a/src/utils/taskSummary.ts b/src/utils/taskSummary.ts new file mode 100644 index 0000000..332cba2 --- /dev/null +++ b/src/utils/taskSummary.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const shouldGenerateTaskSummary: any = (() => {}) as any; +export const maybeGenerateTaskSummary: any = (() => {}) as any; diff --git a/src/utils/telemetry/src/bootstrap/state.ts b/src/utils/telemetry/src/bootstrap/state.ts new file mode 100644 index 0000000..88e65b6 --- /dev/null +++ b/src/utils/telemetry/src/bootstrap/state.ts @@ -0,0 +1,10 @@ +// Auto-generated type stub — replace with real implementation +export type getEventLogger = any; +export type getPromptId = any; +export type getLoggerProvider = any; +export type getMeterProvider = any; +export type getTracerProvider = any; +export type setEventLogger = any; +export type setLoggerProvider = any; +export type setMeterProvider = any; +export type setTracerProvider = any; diff --git a/src/utils/telemetry/src/services/api/metricsOptOut.ts b/src/utils/telemetry/src/services/api/metricsOptOut.ts new file mode 100644 index 0000000..abe38aa --- /dev/null +++ b/src/utils/telemetry/src/services/api/metricsOptOut.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type checkMetricsEnabled = any; diff --git a/src/utils/telemetry/src/utils/auth.ts b/src/utils/telemetry/src/utils/auth.ts new file mode 100644 index 0000000..250437a --- /dev/null +++ b/src/utils/telemetry/src/utils/auth.ts @@ -0,0 +1,5 @@ +// Auto-generated type stub — replace with real implementation +export type getOtelHeadersFromHelper = any; +export type getSubscriptionType = any; +export type is1PApiCustomer = any; +export type isClaudeAISubscriber = any; diff --git a/src/utils/telemetry/src/utils/platform.ts b/src/utils/telemetry/src/utils/platform.ts new file mode 100644 index 0000000..da6332e --- /dev/null +++ b/src/utils/telemetry/src/utils/platform.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type getPlatform = any; +export type getWslVersion = any; diff --git a/src/utils/teleport/src/constants/oauth.ts b/src/utils/teleport/src/constants/oauth.ts new file mode 100644 index 0000000..a1b0893 --- /dev/null +++ b/src/utils/teleport/src/constants/oauth.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOauthConfig = any; diff --git a/src/utils/teleport/src/services/analytics/index.ts b/src/utils/teleport/src/services/analytics/index.ts new file mode 100644 index 0000000..142e7b6 --- /dev/null +++ b/src/utils/teleport/src/services/analytics/index.ts @@ -0,0 +1,3 @@ +// Auto-generated type stub — replace with real implementation +export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any; +export type logEvent = any; diff --git a/src/utils/teleport/src/services/oauth/client.ts b/src/utils/teleport/src/services/oauth/client.ts new file mode 100644 index 0000000..5a7055f --- /dev/null +++ b/src/utils/teleport/src/services/oauth/client.ts @@ -0,0 +1,2 @@ +// Auto-generated type stub — replace with real implementation +export type getOrganizationUUID = any; diff --git a/src/utils/udsClient.ts b/src/utils/udsClient.ts new file mode 100644 index 0000000..4fcc821 --- /dev/null +++ b/src/utils/udsClient.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const sendToUdsSocket: any = (() => {}) as any; +export const listAllLiveSessions: any = (() => {}) as any; diff --git a/src/utils/udsMessaging.ts b/src/utils/udsMessaging.ts new file mode 100644 index 0000000..965e598 --- /dev/null +++ b/src/utils/udsMessaging.ts @@ -0,0 +1,4 @@ +// Auto-generated stub — replace with real implementation +export {}; +export const startUdsMessaging: any = (() => {}) as any; +export const getDefaultUdsSocketPath: any = (() => {}) as any; diff --git a/src/utils/ultraplan/prompt.txt b/src/utils/ultraplan/prompt.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/utils/ultraplan/prompt.txt @@ -0,0 +1 @@ +