@cortexkit/aft-opencode 0.14.1 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bridge.d.ts CHANGED
@@ -44,7 +44,9 @@ export declare class BinaryBridge {
44
44
  * Send a command to the binary and return the parsed response.
45
45
  * Lazy-spawns the binary on first call.
46
46
  */
47
- send(command: string, params?: Record<string, unknown>): Promise<Record<string, unknown>>;
47
+ send(command: string, params?: Record<string, unknown>, options?: {
48
+ timeoutMs?: number;
49
+ }): Promise<Record<string, unknown>>;
48
50
  /** Kill the child process and reject all pending requests. */
49
51
  shutdown(): Promise<void>;
50
52
  /** Query binary version and compare against minVersion. Calls onVersionMismatch if outdated. */
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../src/bridge.ts"],"names":[],"mappings":"AA0EA,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qGAAqG;IACrG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iGAAiG;IACjG,iBAAiB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACzE;AAED;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAiB;IACzD,kEAAkE;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAM;IAE7C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,YAAY,CAAM;IAC1B,sEAAsE;IACtE,OAAO,CAAC,UAAU,CAAgB;IA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E,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACpC,OAAO,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAgGnC,8DAA8D;IACxD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA4B/B,gGAAgG;YAClF,YAAY;IAoB1B,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,YAAY;IA+GpB,OAAO,CAAC,cAAc;IAOtB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,YAAY;IA4BpB,OAAO,CAAC,aAAa;IAoBrB,OAAO,CAAC,WAAW;IAsCnB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,sBAAsB;CAM/B"}
package/dist/config.d.ts CHANGED
@@ -48,6 +48,7 @@ export declare const AftConfigSchema: z.ZodObject<{
48
48
  timeout_ms: z.ZodOptional<z.ZodNumber>;
49
49
  max_batch_size: z.ZodOptional<z.ZodNumber>;
50
50
  }, z.core.$strip>>;
51
+ max_callgraph_files: z.ZodOptional<z.ZodNumber>;
51
52
  }, z.core.$strip>;
52
53
  export type AftConfig = z.infer<typeof AftConfigSchema>;
53
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+CxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0C1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AA2KxD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAiCjE"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+CxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiD1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AA2KxD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAiCjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA8GlD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,MAAM,EAAE,MAgXb,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA8GlD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,MAAM,EAAE,MAkXb,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -21454,7 +21454,8 @@ var AftConfigSchema = exports_external.object({
21454
21454
  restrict_to_project_root: exports_external.boolean().optional(),
21455
21455
  experimental_search_index: exports_external.boolean().optional(),
21456
21456
  experimental_semantic_search: exports_external.boolean().optional(),
21457
- semantic: SemanticConfigSchema.optional()
21457
+ semantic: SemanticConfigSchema.optional(),
21458
+ max_callgraph_files: exports_external.number().int().positive().optional()
21458
21459
  });
21459
21460
  function detectConfigFile(basePath) {
21460
21461
  const jsoncPath = `${basePath}.jsonc`;
@@ -22266,7 +22267,7 @@ class BinaryBridge {
22266
22267
  isAlive() {
22267
22268
  return this.process !== null && this.process.exitCode === null && !this.process.killed;
22268
22269
  }
22269
- async send(command, params = {}) {
22270
+ async send(command, params = {}, options) {
22270
22271
  if (this._shuttingDown) {
22271
22272
  throw new Error(`[aft-plugin] Bridge is shutting down, cannot send "${command}"`);
22272
22273
  }
@@ -22300,13 +22301,14 @@ class BinaryBridge {
22300
22301
  const request = { id, command, ...params };
22301
22302
  const line = `${JSON.stringify(request)}
22302
22303
  `;
22304
+ const effectiveTimeoutMs = options?.timeoutMs ?? this.timeoutMs;
22303
22305
  return new Promise((resolve, reject) => {
22304
22306
  const timer = setTimeout(() => {
22305
22307
  this.pending.delete(id);
22306
- warn(`Request "${command}" (id=${id}) timed out after ${this.timeoutMs}ms \u2014 restarting bridge`);
22307
- reject(new Error(`[aft-plugin] Request "${command}" (id=${id}) timed out after ${this.timeoutMs}ms`));
22308
+ warn(`Request "${command}" (id=${id}) timed out after ${effectiveTimeoutMs}ms \u2014 restarting bridge`);
22309
+ reject(new Error(`[aft-plugin] Request "${command}" (id=${id}) timed out after ${effectiveTimeoutMs}ms`));
22308
22310
  this.handleTimeout();
22309
- }, this.timeoutMs);
22311
+ }, effectiveTimeoutMs);
22310
22312
  this.pending.set(id, { resolve, reject, timer });
22311
22313
  if (!this.process?.stdin?.writable) {
22312
22314
  this.pending.delete(id);
@@ -23337,6 +23339,18 @@ import { tool as tool2 } from "@opencode-ai/plugin";
23337
23339
  // src/tools/_shared.ts
23338
23340
  import * as fs2 from "fs";
23339
23341
  import * as path2 from "path";
23342
+ var LONG_RUNNING_COMMAND_TIMEOUT_MS = {
23343
+ callers: 60000,
23344
+ trace_to: 60000,
23345
+ trace_data: 60000,
23346
+ impact: 60000,
23347
+ grep: 60000,
23348
+ glob: 60000,
23349
+ semantic_search: 45000
23350
+ };
23351
+ function timeoutForCommand(command) {
23352
+ return LONG_RUNNING_COMMAND_TIMEOUT_MS[command];
23353
+ }
23340
23354
  function projectRootFor(runtime) {
23341
23355
  const raw = runtime.worktree ?? runtime.directory;
23342
23356
  const trimmed = raw.replace(/[/\\]+$/, "");
@@ -23354,7 +23368,8 @@ function callBridge(ctx, runtime, command, params = {}) {
23354
23368
  if (runtime.sessionID) {
23355
23369
  merged.session_id = runtime.sessionID;
23356
23370
  }
23357
- return bridgeFor(ctx, runtime).send(command, merged);
23371
+ const timeoutMs = timeoutForCommand(command);
23372
+ return bridgeFor(ctx, runtime).send(command, merged, timeoutMs !== undefined ? { timeoutMs } : undefined);
23358
23373
  }
23359
23374
 
23360
23375
  // src/tools/permissions.ts
@@ -25490,6 +25505,8 @@ var plugin = async (input) => {
25490
25505
  configOverrides.experimental_semantic_search = aftConfig.experimental_semantic_search;
25491
25506
  if (aftConfig.semantic !== undefined)
25492
25507
  configOverrides.semantic = aftConfig.semantic;
25508
+ if (aftConfig.max_callgraph_files !== undefined)
25509
+ configOverrides.max_callgraph_files = aftConfig.max_callgraph_files;
25493
25510
  const isFastembedSemanticBackend = (aftConfig.semantic?.backend ?? "fastembed") === "fastembed";
25494
25511
  const dataHome = process.env.XDG_DATA_HOME || join13(homedir7(), ".local", "share");
25495
25512
  configOverrides.storage_dir = join13(dataHome, "opencode", "storage", "plugin", "aft");
@@ -17,6 +17,17 @@
17
17
  */
18
18
  import type { BinaryBridge } from "../bridge.js";
19
19
  import type { PluginContext } from "../types.js";
20
+ /**
21
+ * Per-command timeout overrides (milliseconds).
22
+ *
23
+ * Commands not listed fall back to the bridge-wide default (30s). Only
24
+ * extend budgets for operations that legitimately walk the project
25
+ * file tree or wait on external I/O (embedding API, index build). The
26
+ * goal is to absorb slow first-call spikes without masking real hangs.
27
+ */
28
+ export declare const LONG_RUNNING_COMMAND_TIMEOUT_MS: Record<string, number>;
29
+ /** Returns the per-command timeout override, or undefined to use the bridge default. */
30
+ export declare function timeoutForCommand(command: string): number | undefined;
20
31
  /**
21
32
  * Minimum shape of the per-tool-call context provided by the OpenCode SDK.
22
33
  *
@@ -1 +1 @@
1
- {"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAa3D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,GAAG,YAAY,CAEhF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACnC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAMlC"}
1
+ {"version":3,"file":"_shared.d.ts","sourceRoot":"","sources":["../../src/tools/_shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQlE,CAAC;AAEF,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAa3D;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,GAAG,YAAY,CAEhF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,aAAa,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACnC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAWlC"}
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@cortexkit/aft-opencode",
3
- "version": "0.14.1",
3
+ "version": "0.15.1",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Agent File Tools (AFT) — tree-sitter and lsp powered code analysis",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "bin": {
9
- "aft-opencode": "dist/cli.js"
10
- },
11
8
  "license": "MIT",
12
9
  "repository": {
13
10
  "type": "git",
@@ -20,7 +17,7 @@
20
17
  "README.md"
21
18
  ],
22
19
  "scripts": {
23
- "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @opencode-ai/plugin && bun build src/tui/index.tsx --outfile dist/tui.js --target bun --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opentui/solid --external solid-js && bun build src/cli/index.ts --outfile dist/cli.js --target node --format esm && tsc --emitDeclarationOnly",
20
+ "build": "bun build src/index.ts --outdir dist --target bun --format esm --external @opencode-ai/plugin && bun build src/tui/index.tsx --outfile dist/tui.js --target bun --format esm --external @opencode-ai/plugin --external @opencode-ai/plugin/tui --external @opentui/solid --external solid-js && tsc --emitDeclarationOnly",
24
21
  "typecheck": "tsc --noEmit",
25
22
  "pretest": "cd ../.. && cargo build",
26
23
  "test": "bun test",
@@ -35,11 +32,11 @@
35
32
  "zod": "^4.1.8"
36
33
  },
37
34
  "optionalDependencies": {
38
- "@cortexkit/aft-darwin-arm64": "0.14.1",
39
- "@cortexkit/aft-darwin-x64": "0.14.1",
40
- "@cortexkit/aft-linux-arm64": "0.14.1",
41
- "@cortexkit/aft-linux-x64": "0.14.1",
42
- "@cortexkit/aft-win32-x64": "0.14.1"
35
+ "@cortexkit/aft-darwin-arm64": "0.15.1",
36
+ "@cortexkit/aft-darwin-x64": "0.15.1",
37
+ "@cortexkit/aft-linux-arm64": "0.15.1",
38
+ "@cortexkit/aft-linux-x64": "0.15.1",
39
+ "@cortexkit/aft-win32-x64": "0.15.1"
43
40
  },
44
41
  "devDependencies": {
45
42
  "@types/node": "^22.0.0",
@@ -1,14 +0,0 @@
1
- export declare function clearPluginCache(force?: boolean): Promise<{
2
- action: "cleared" | "up_to_date" | "not_found" | "error";
3
- path: string;
4
- cached?: string;
5
- latest?: string;
6
- error?: string;
7
- }>;
8
- export declare function getBinaryCacheInfo(): {
9
- versions: string[];
10
- activeVersion: string | null;
11
- totalSize: number;
12
- path: string;
13
- };
14
- //# sourceMappingURL=cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cli/cache.ts"],"names":[],"mappings":"AAoGA,wBAAsB,gBAAgB,CAAC,KAAK,UAAQ,GAAG,OAAO,CAAC;IAC7D,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAiCD;AAED,wBAAgB,kBAAkB,IAAI;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd,CAmCA"}
@@ -1,11 +0,0 @@
1
- export interface ConfigPaths {
2
- configDir: string;
3
- opencodeConfig: string;
4
- opencodeConfigFormat: "json" | "jsonc" | "none";
5
- aftConfig: string;
6
- aftConfigFormat: "json" | "jsonc" | "none";
7
- tuiConfig: string;
8
- tuiConfigFormat: "json" | "jsonc" | "none";
9
- }
10
- export declare function detectConfigPaths(): ConfigPaths;
11
- //# sourceMappingURL=config-paths.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-paths.d.ts","sourceRoot":"","sources":["../../src/cli/config-paths.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAC5C;AA+BD,wBAAgB,iBAAiB,IAAI,WAAW,CAe/C"}
@@ -1,49 +0,0 @@
1
- import { getBinaryCacheInfo } from "./cache.js";
2
- import { type ConfigPaths } from "./config-paths.js";
3
- export interface DiagnosticReport {
4
- timestamp: string;
5
- platform: string;
6
- arch: string;
7
- nodeVersion: string;
8
- pluginVersion: string;
9
- binaryVersion: string | null;
10
- opencodeInstalled: boolean;
11
- opencodeVersion: string | null;
12
- configPaths: ConfigPaths;
13
- opencodeConfigHasPlugin: boolean;
14
- aftConfig: {
15
- exists: boolean;
16
- parseError?: string;
17
- flags: Record<string, unknown>;
18
- };
19
- binaryCache: ReturnType<typeof getBinaryCacheInfo>;
20
- pluginCache: {
21
- cached?: string;
22
- latest?: string;
23
- path: string;
24
- };
25
- storageDir: {
26
- path: string;
27
- exists: boolean;
28
- indexSize: number;
29
- semanticSize: number;
30
- backupsSize: number;
31
- urlCacheSize: number;
32
- onnxruntimeSize: number;
33
- };
34
- onnxRuntime: {
35
- required: boolean;
36
- systemPath: string | null;
37
- cachedPath: string | null;
38
- platform: string;
39
- installHint: string;
40
- };
41
- logFile: {
42
- path: string;
43
- exists: boolean;
44
- sizeKb: number;
45
- };
46
- }
47
- export declare function collectDiagnostics(): Promise<DiagnosticReport>;
48
- export declare function renderDiagnosticsMarkdown(report: DiagnosticReport): string;
49
- //# sourceMappingURL=diagnostics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../src/cli/diagnostics.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,mBAAmB,CAAC;AAOxE,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC;IACzB,uBAAuB,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE;QACT,MAAM,EAAE,OAAO,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAChC,CAAC;IACF,WAAW,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACnD,WAAW,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,WAAW,EAAE;QACX,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAgND,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAgDpE;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA2C1E"}
@@ -1,5 +0,0 @@
1
- export declare function runDoctor(options?: {
2
- force?: boolean;
3
- issue?: boolean;
4
- }): Promise<number>;
5
- //# sourceMappingURL=doctor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA4QA,wBAAsB,SAAS,CAC7B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GACjD,OAAO,CAAC,MAAM,CAAC,CAsIjB"}
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import type { DiagnosticReport } from "./diagnostics.js";
2
- /**
3
- * Strip personally identifiable path segments from arbitrary text.
4
- * Used on both log contents and the full doctor --issue body so diagnostic
5
- * reports never leak usernames or home directory paths.
6
- */
7
- export declare function sanitizeContent(content: string): string;
8
- /**
9
- * @deprecated Use sanitizeContent. Kept as an alias for backward compatibility.
10
- */
11
- export declare const sanitizeLogContent: typeof sanitizeContent;
12
- export declare function bundleIssueReport(report: DiagnosticReport, description: string, _title: string): Promise<{
13
- path: string;
14
- bodyMarkdown: string;
15
- }>;
16
- //# sourceMappingURL=logs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/cli/logs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAOzD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBvD;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,wBAAkB,CAAC;AAelD,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,gBAAgB,EACxB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CA0CjD"}
@@ -1,4 +0,0 @@
1
- export declare function isOpenCodeInstalled(): boolean;
2
- export declare function getOpenCodeVersion(): string | null;
3
- export declare function isGhInstalled(): boolean;
4
- //# sourceMappingURL=opencode-helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"opencode-helpers.d.ts","sourceRoot":"","sources":["../../src/cli/opencode-helpers.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,IAAI,OAAO,CAO7C;AAED,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAMlD;AAED,wBAAgB,aAAa,IAAI,OAAO,CAOvC"}
@@ -1,14 +0,0 @@
1
- import { intro, log, note, outro, spinner } from "@clack/prompts";
2
- export { intro, log, note, outro, spinner };
3
- export declare function confirm(message: string, defaultYes?: boolean): Promise<boolean>;
4
- export declare function selectOne(message: string, options: {
5
- label: string;
6
- value: string;
7
- recommended?: boolean;
8
- }[]): Promise<string>;
9
- export declare function text(message: string, options?: {
10
- placeholder?: string;
11
- defaultValue?: string;
12
- validate?: (value: string) => string | Error | undefined;
13
- }): Promise<string>;
14
- //# sourceMappingURL=prompts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/cli/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAEL,GAAG,EACH,IAAI,EACJ,KAAK,EAEL,OAAO,EACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;AAS5C,wBAAsB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,UAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAOlF;AAED,wBAAsB,SAAS,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,GACjE,OAAO,CAAC,MAAM,CAAC,CAWjB;AAED,wBAAsB,IAAI,CACxB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;CACrD,GACL,OAAO,CAAC,MAAM,CAAC,CAcjB"}
@@ -1,2 +0,0 @@
1
- export declare function runSetup(): Promise<number>;
2
- //# sourceMappingURL=setup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/cli/setup.ts"],"names":[],"mappings":"AAgDA,wBAAsB,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,CA+DhD"}