Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

Merge branch 'fix462/mode-conflict' into fix/context-list-investigations

Joseph Mikhail34a37b7b0ade
diff --cc ix-cli/src/cli/commands/context.ts
index 34a4fb23,9e125fde..5da4e3c3
--- a/ix-cli/src/cli/commands/context.ts
+++ b/ix-cli/src/cli/commands/context.ts
@@@ -19,7 -19,7 +19,7 @@@ import type
} from "../../client/types.js";
import { getEndpoint } from "../config.js";
import { collectFacts, type EntityFacts } from "../explain/facts.js";
- import { llmLine, printLlmLines } from "../llm.js";
-import { printLlmLines, reportModeConflict } from "../llm.js";
++import { llmLine, printLlmLines, reportModeConflict } from "../llm.js";
import { parsePickOption } from "../options.js";
import { resolveFileOrEntity } from "../resolve.js";
import { createStaleProbe } from "../stale.js";
@@@ -131,12 -130,16 +131,17 @@@ export function registerContextCommand(
.option("--save <id>", "Persist the bundle as a resumable investigation state")
.option("--resume <id>", "Render a saved investigation state without a backend")
.option("--diff <id>", "Diff a saved investigation against a fresh build of the same target")
+ .option("--list", "List saved investigations (no target, no backend)")
.addHelpText(
"after",
- "\nExamples:\n ix context IngestionService\n ix context src/main.ts --format json\n ix context Widget --max-entities 20 --max-evidence 10\n ix context Widget --save widget-investigation\n ix context --resume widget-investigation\n ix context --diff widget-investigation",
+ "\nExamples:\n ix context IngestionService\n ix context src/main.ts --format json\n ix context Widget --max-entities 20 --max-evidence 10\n ix context Widget --save widget-investigation\n ix context --resume widget-investigation\n ix context --diff widget-investigation\n ix context --list",
)
.action(async (target: string | undefined, opts: ContextOptions) => {
+ const conflict = detectContextModeConflict(opts);
+ if (conflict) {
+ reportModeConflict(conflict, opts.format);
+ return;
+ }
if (opts.resume) {
renderSavedInvestigation(opts.resume, opts.format);
return;