kodingo-cli 1.1.12 → 1.1.13
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/cli.js +7 -0
- package/dist/commands/build.js +7 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -39,10 +39,17 @@ program
|
|
|
39
39
|
.argument("<task>", "what to build or fix")
|
|
40
40
|
.option("--repo <path>", "repo path (defaults to the current repo)")
|
|
41
41
|
.option("--max-turns <n>", "override the agent loop's turn budget")
|
|
42
|
+
.option("--scope <small|substantial>", "manual scope estimate sizing the initial token budget (stands in for Plan mode, not built yet)")
|
|
42
43
|
.action(async (task, options) => {
|
|
44
|
+
if (options.scope && options.scope !== "small" && options.scope !== "substantial") {
|
|
45
|
+
console.error(`✖ --scope must be "small" or "substantial", got "${options.scope}".`);
|
|
46
|
+
process.exitCode = 1;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
43
49
|
await (0, build_1.buildCommand)(String(task), {
|
|
44
50
|
...(options.repo ? { repo: String(options.repo) } : {}),
|
|
45
51
|
...(options.maxTurns ? { maxTurns: Number.parseInt(String(options.maxTurns), 10) } : {}),
|
|
52
|
+
...(options.scope ? { scope: options.scope } : {}),
|
|
46
53
|
});
|
|
47
54
|
});
|
|
48
55
|
// ── update ────────────────────────────────────────────────────────────────────
|
package/dist/commands/build.js
CHANGED
|
@@ -160,7 +160,13 @@ async function buildCommand(input, options = {}) {
|
|
|
160
160
|
initialMessages,
|
|
161
161
|
modelPort,
|
|
162
162
|
reporter: (0, kodingo_agent_1.createTerminalReporter)(),
|
|
163
|
-
|
|
163
|
+
// Real graceful checkpoint at 80% of budget — a real terminal prompt,
|
|
164
|
+
// not a silent hard kill. See kodingo-agent's terminalCheckpointPort.
|
|
165
|
+
checkpointPort: (0, kodingo_agent_1.createTerminalCheckpointPort)(),
|
|
166
|
+
budgets: {
|
|
167
|
+
...(0, kodingo_agent_1.resolveBudgetForScope)(options.scope),
|
|
168
|
+
...(options.maxTurns ? { maxTurns: options.maxTurns } : {}),
|
|
169
|
+
},
|
|
164
170
|
});
|
|
165
171
|
try {
|
|
166
172
|
await fetch(`${apiBaseUrl}/build/${sessionId}/agent-complete`, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kodingo-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.13",
|
|
4
4
|
"description": "Kodingo CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@typescript-eslint/types": "^8.61.1",
|
|
26
26
|
"@typescript-eslint/typescript-estree": "^8.61.1",
|
|
27
27
|
"commander": "^12.1.0",
|
|
28
|
-
"kodingo-agent": "^0.1.
|
|
28
|
+
"kodingo-agent": "^0.1.3",
|
|
29
29
|
"kodingo-core": "^0.2.1",
|
|
30
30
|
"open": "^11.0.0",
|
|
31
31
|
"simple-git": "^3.30.0",
|