codecartographer-pi 0.6.0 → 0.8.0
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/README.md +254 -208
- package/dist/core/dashboard.d.ts +36 -0
- package/dist/core/dashboard.js +526 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/utils.d.ts +13 -0
- package/dist/core/utils.js +27 -0
- package/dist/core/workspace.d.ts +1 -0
- package/dist/core/workspace.js +13 -1
- package/dist/extensions/codecarto/agent-rewriter.d.ts +13 -0
- package/dist/extensions/codecarto/agent-rewriter.js +21 -1
- package/dist/extensions/codecarto/auto-runner.d.ts +80 -0
- package/dist/extensions/codecarto/auto-runner.js +399 -0
- package/dist/extensions/codecarto/dashboard-flags.d.ts +6 -0
- package/dist/extensions/codecarto/dashboard-flags.js +17 -0
- package/dist/extensions/codecarto/dashboard-narrator.d.ts +8 -0
- package/dist/extensions/codecarto/dashboard-narrator.js +182 -0
- package/dist/extensions/codecarto/dashboard-writer.d.ts +1 -0
- package/dist/extensions/codecarto/dashboard-writer.js +123 -0
- package/dist/extensions/codecarto/index.js +75 -192
- package/dist/extensions/codecarto/next-flags.d.ts +4 -0
- package/dist/extensions/codecarto/next-flags.js +19 -6
- package/package.json +1 -1
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
// Flag parser for /codecarto-next.
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
1
|
+
// Flag parser for /codecarto-next. Recognized flags:
|
|
2
|
+
// --llm-steer / --no-llm-steer — override the workspace config's
|
|
3
|
+
// llm_steer_next_phase per invocation.
|
|
4
|
+
// --auto — run the entire pipeline end-to-end.
|
|
5
|
+
// --strict — only with --auto; stop on PASS WITH GAPS
|
|
6
|
+
// instead of auto-advancing.
|
|
7
|
+
//
|
|
8
|
+
// The parser returns a populated NextFlags shape and never throws. index.ts
|
|
9
|
+
// decides how to surface errors (unknown flags + invalid combinations) and
|
|
10
|
+
// how to compose --llm-steer with workspace config.
|
|
11
|
+
const KNOWN = new Set(["--llm-steer", "--no-llm-steer", "--auto", "--strict"]);
|
|
6
12
|
export function parseNextFlags(args) {
|
|
7
13
|
const tokens = args.trim().split(/\s+/).filter((t) => t.length > 0);
|
|
8
|
-
const result = { unknown: [] };
|
|
14
|
+
const result = { auto: false, strict: false, unknown: [] };
|
|
9
15
|
for (const t of tokens) {
|
|
10
16
|
if (t === "--llm-steer")
|
|
11
17
|
result.llmSteerOverride = true;
|
|
12
18
|
else if (t === "--no-llm-steer")
|
|
13
19
|
result.llmSteerOverride = false;
|
|
20
|
+
else if (t === "--auto")
|
|
21
|
+
result.auto = true;
|
|
22
|
+
else if (t === "--strict")
|
|
23
|
+
result.strict = true;
|
|
14
24
|
else
|
|
15
25
|
result.unknown.push(t);
|
|
16
26
|
}
|
|
27
|
+
if (result.strict && !result.auto) {
|
|
28
|
+
result.error = "Flag --strict requires --auto.";
|
|
29
|
+
}
|
|
17
30
|
return result;
|
|
18
31
|
}
|
|
19
32
|
export const KNOWN_NEXT_FLAGS = [...KNOWN];
|