mtech-ai-local-runner 0.1.22 → 0.1.23
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
CHANGED
|
@@ -10,6 +10,18 @@ The package stores safe runner configuration locally and keeps OAuth refresh cre
|
|
|
10
10
|
|
|
11
11
|
Public npm installation requires no npm account or publishing OTP. Setup requires Gateway OAuth login, and local Claude Code must already be authenticated (`claude auth status`).
|
|
12
12
|
|
|
13
|
+
## 0.1.23: separate progress from the final report
|
|
14
|
+
|
|
15
|
+
Codex receives native-message instructions: optional progress is plain text and
|
|
16
|
+
the structured completed/blocked report is emitted once at the end. The Runner
|
|
17
|
+
derives lifecycle events; Codex is no longer asked to author normalized progress
|
|
18
|
+
or checkpoint events. Claude's existing instructions are unchanged.
|
|
19
|
+
|
|
20
|
+
Strict report uniqueness and final-message validation remain in force. Fake
|
|
21
|
+
tests reproduce the observed multiple-report failure, but do not prove why the
|
|
22
|
+
historical model emitted three reports or guarantee future model compliance.
|
|
23
|
+
Publication and foreground installation do not rerun Codex or update the daemon.
|
|
24
|
+
|
|
13
25
|
## 0.1.22: completion report classification and terminal diagnostics
|
|
14
26
|
|
|
15
27
|
Report validation distinguishes missing messages, zero valid reports, multiple
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compilePrompt as compileBrief } from "../prompt-compiler.js";
|
|
2
2
|
export function compileCodexPrompt(taskPackage, label) {
|
|
3
|
-
return `${compileBrief(taskPackage, { workItemLabel: label })}\n\nUse only the ai_local job tools for repository reads, edits and approved tests. Native filesystem, commands, web, images and delegation are unavailable or denied. A denied tool is a scope boundary, never a reason to try another path. If required work cannot proceed, return the structured blocked report.`;
|
|
3
|
+
return `${compileBrief(taskPackage, { workItemLabel: label, progressReporting: "native_messages" })}\n\nUse only the ai_local job tools for repository reads, edits and approved tests. Native filesystem, commands, web, images and delegation are unavailable or denied. A denied tool is a scope boundary, never a reason to try another path. If required work cannot proceed, return the structured blocked report.`;
|
|
4
4
|
}
|
|
5
5
|
export const CODEX_REPORT_SCHEMA = {
|
|
6
6
|
type: "object", additionalProperties: false, required: ["status", "report", "evidence", "pending_work"],
|
|
@@ -4,6 +4,11 @@ const STOP_BEFORE_PUBLICATION_RULE = "Stop before publication. Never run git com
|
|
|
4
4
|
const EVENT_SCHEMA_NOTICE = "Report progress only through the normalized event lifecycle (started, progress, file_changed, question, " +
|
|
5
5
|
"test_started, test_result, budget_warning, checkpoint_ready, blocked, completed, failed). " +
|
|
6
6
|
"Checkpoint your work with checkpoint_ready before stopping whenever it is safe to do so.";
|
|
7
|
+
const NATIVE_PROGRESS_NOTICE = "The Runner derives lifecycle events from the native CLI stream; do not author normalized lifecycle or checkpoint events. " +
|
|
8
|
+
"If progress commentary is needed, use brief plain text, not the completion-report schema. " +
|
|
9
|
+
"Do not emit report-shaped JSON in commentary or progress messages. " +
|
|
10
|
+
"Emit the structured completion report exactly once, as your final response after all available work and checks. " +
|
|
11
|
+
"Do not repeat, preview, revise or re-emit a completed or blocked report. If blocked, stop work and emit that one final blocked report.";
|
|
7
12
|
function requiredArray(value, label) {
|
|
8
13
|
if (!Array.isArray(value)) {
|
|
9
14
|
throw new Error(`task package is missing ${label}`);
|
|
@@ -53,7 +58,9 @@ export function compilePrompt(taskPackage, options) {
|
|
|
53
58
|
`## Required tests\n${requiredTests.map((item) => `- ${item}`).join("\n")}`,
|
|
54
59
|
`## Prohibited actions\n${prohibitedActions.map((item) => `- ${item}`).join("\n")}`,
|
|
55
60
|
`## Stop-before-publication rule\n${STOP_BEFORE_PUBLICATION_RULE}`,
|
|
56
|
-
|
|
61
|
+
options.progressReporting === "native_messages"
|
|
62
|
+
? `## Native progress and terminal reporting\n${NATIVE_PROGRESS_NOTICE}`
|
|
63
|
+
: `## Event and checkpoint obligations\n${EVENT_SCHEMA_NOTICE}`,
|
|
57
64
|
`## Final completion report\n${COMPLETION_REPORT_NOTICE}`,
|
|
58
65
|
];
|
|
59
66
|
return sections.join("\n\n");
|