@kenkaiiii/ggcoder 5.72.0 → 5.73.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/dist/core/agent-session.js +7 -5
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compactor.js +6 -0
- package/dist/core/compaction/compactor.js.map +1 -1
- package/dist/core/ken-context.js +7 -3
- package/dist/core/ken-context.js.map +1 -1
- package/dist/core/subagent-receipt.js +3 -1
- package/dist/core/subagent-receipt.js.map +1 -1
- package/dist/motion-agent/motion-review-session.js +7 -3
- package/dist/motion-agent/motion-review-session.js.map +1 -1
- package/dist/system-prompt.js +12 -11
- package/dist/system-prompt.js.map +1 -1
- package/dist/tools/edit-targets.d.ts +10 -0
- package/dist/tools/edit-targets.js +31 -0
- package/dist/tools/edit-targets.js.map +1 -0
- package/dist/tools/edit.d.ts +11 -3
- package/dist/tools/edit.js +386 -312
- package/dist/tools/edit.js.map +1 -1
- package/dist/tools/prompt-hints.js +1 -1
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/skill.js +6 -3
- package/dist/tools/skill.js.map +1 -1
- package/dist/tools/subagent.js +2 -1
- package/dist/tools/subagent.js.map +1 -1
- package/dist/ui/components/ToolExecution.js +3 -2
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/terminal-history.js +3 -1
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/tool-line-summary.js +3 -1
- package/dist/ui/tool-line-summary.js.map +1 -1
- package/dist/utils/format.js +5 -1
- package/dist/utils/format.js.map +1 -1
- package/package.json +4 -4
|
@@ -69,6 +69,7 @@ import crypto from "node:crypto";
|
|
|
69
69
|
import fs from "node:fs/promises";
|
|
70
70
|
import os from "node:os";
|
|
71
71
|
import path from "node:path";
|
|
72
|
+
import { editTargetPaths } from "../tools/edit-targets.js";
|
|
72
73
|
/**
|
|
73
74
|
* A run whose tool calls fail more often than this is thrashing, not
|
|
74
75
|
* progressing — refuse to extend its turn budget.
|
|
@@ -1212,13 +1213,14 @@ export class AgentSession {
|
|
|
1212
1213
|
let verificationChanged = false;
|
|
1213
1214
|
if (!event.isError && args) {
|
|
1214
1215
|
if (name === "edit" || name === "write") {
|
|
1215
|
-
const filePath = String(args.file_path ?? "");
|
|
1216
1216
|
// Check-owning files (tsconfig.json, pytest.ini, vitest.config.ts …)
|
|
1217
1217
|
// are tracked even when they are not source code: editing one
|
|
1218
|
-
// invalidates earlier check results.
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1218
|
+
// invalidates earlier check results. A multi-file edit records every file.
|
|
1219
|
+
for (const filePath of editTargetPaths(args)) {
|
|
1220
|
+
if (isCodeFilePath(filePath) || isCheckOwnFile(filePath)) {
|
|
1221
|
+
this.verificationGate.recordMutation(filePath);
|
|
1222
|
+
verificationChanged = true;
|
|
1223
|
+
}
|
|
1222
1224
|
}
|
|
1223
1225
|
}
|
|
1224
1226
|
}
|