@jungjaehoon/mama-os 0.60.0 → 0.60.2
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/CHANGELOG.md +25 -0
- package/README.md +1 -1
- package/dist/api/code-act-actions.d.ts +12 -2
- package/dist/api/code-act-actions.d.ts.map +1 -1
- package/dist/api/code-act-actions.js +82 -18
- package/dist/api/code-act-actions.js.map +1 -1
- package/dist/operator/board-slot-instructions.d.ts.map +1 -1
- package/dist/operator/board-slot-instructions.js +1 -2
- package/dist/operator/board-slot-instructions.js.map +1 -1
- package/dist/runtime/owner-system-prompt.js +1 -1
- package/dist/runtime/owner-system-prompt.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.60.2] - 2026-10-01
|
|
9
|
+
|
|
10
|
+
No changes to MAMA OS. The release tag follows the mama-os version, so plugin 2.1.2 ships with
|
|
11
|
+
this version.
|
|
12
|
+
|
|
13
|
+
## [0.60.1] - 2026-09-30
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `code_act`: plain data a script leaves on `globalThis` is handed to the same model run's next
|
|
18
|
+
script, also after the script threw, and the result lists it in `kept`. A full report that
|
|
19
|
+
failed on one row was written again from the start, up to four times in one turn; now the
|
|
20
|
+
failed part is fixed and the rest is kept. The worker still lives for one call only.
|
|
21
|
+
- `report.publish`: the contract no longer asks for slots under 6 KB (the host accepts 512 KB).
|
|
22
|
+
The model measured every slot against it, and one report failed on `TextEncoder`, which the
|
|
23
|
+
sandbox lacks, and was written again. The line repeating what the pipeline is was removed.
|
|
24
|
+
The full-report procedure says to keep each built section on `globalThis` and fix the part
|
|
25
|
+
that failed.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- `code_act`: a single line of several statements ran only its first one, because any line not
|
|
30
|
+
starting with a keyword was returned as one expression. Code is returned only when it parses
|
|
31
|
+
as one expression.
|
|
32
|
+
|
|
8
33
|
## [0.60.0] - 2026-09-30
|
|
9
34
|
|
|
10
35
|
### Added
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ One owner agent on Claude or Codex watches connected work, keeps task revisions
|
|
|
4
4
|
answers on Telegram, publishes reports and a board, and recalls corrections.
|
|
5
5
|
[mama-core](../mama-core/README.md) supplies the shared engine.
|
|
6
6
|
|
|
7
|
-
Current manifest: **0.60.
|
|
7
|
+
Current manifest: **0.60.2**. This README describes the unreleased `rebuild/owner-flow` source.
|
|
8
8
|
Use [owner setup](../../docs/start/owner-setup.md) with Node.js 22.13+ and pnpm.
|
|
9
9
|
|
|
10
10
|
## Start and operate
|
|
@@ -16,13 +16,23 @@ export interface CodeActResult {
|
|
|
16
16
|
logs: string[];
|
|
17
17
|
hostCallCount: number;
|
|
18
18
|
durationMs: number;
|
|
19
|
+
/** The names of the values the code left on globalThis for the run's next code_act. */
|
|
20
|
+
kept?: string[];
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
type CarriedValues = Record<string, unknown>;
|
|
23
|
+
/**
|
|
24
|
+
* Run the code in a fresh worker process; host calls are answered by `host.call`. `carried` is
|
|
25
|
+
* what the run's earlier scripts left on globalThis; the result's `carried` is what this one
|
|
26
|
+
* leaves. A worker that dies or times out leaves what it was given.
|
|
27
|
+
*/
|
|
28
|
+
export declare function runCodeAct(code: string, host: CodeActHost, timeoutMs?: number, carried?: CarriedValues): Promise<CodeActResult & {
|
|
29
|
+
carried: CarriedValues;
|
|
30
|
+
}>;
|
|
22
31
|
export declare const CODE_ACT_CONTRACT: ActionContract;
|
|
23
32
|
/**
|
|
24
33
|
* The code_act action over a dispatcher built after it: the functions are the actions the
|
|
25
34
|
* caller is granted, and each call is dispatched with the caller's own context.
|
|
26
35
|
*/
|
|
27
36
|
export declare function codeActRegistration(dispatcher: () => ActionDispatcher): ActionRegistration;
|
|
37
|
+
export {};
|
|
28
38
|
//# sourceMappingURL=code-act-actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-act-actions.d.ts","sourceRoot":"","sources":["../../src/api/code-act-actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-act-actions.d.ts","sourceRoot":"","sources":["../../src/api/code-act-actions.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAEV,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAqFhC,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,SAAS,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACvC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAK7C;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EACjB,SAAS,SAAqB,EAC9B,OAAO,GAAE,aAAkB,GAC1B,OAAO,CAAC,aAAa,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC,CA4GrD;AAED,eAAO,MAAM,iBAAiB,EAAE,cAiB/B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,gBAAgB,GAAG,kBAAkB,CA+D1F"}
|
|
@@ -12,6 +12,9 @@ exports.codeActRegistration = codeActRegistration;
|
|
|
12
12
|
* with the calling turn's own context, so the grant, session and traces are the caller's.
|
|
13
13
|
* The worker runs under Node's permission model: `vm` gives the code a clean namespace but
|
|
14
14
|
* is not a boundary, and an escaped script must reach no files, processes or network.
|
|
15
|
+
* The process does not outlive the call: what a script leaves on globalThis goes back to the
|
|
16
|
+
* host as data and is handed to the same model run's next script, so a failed step is fixed
|
|
17
|
+
* in place instead of being written again.
|
|
15
18
|
*/
|
|
16
19
|
const node_child_process_1 = require("node:child_process");
|
|
17
20
|
const WORKER_SOURCE = `
|
|
@@ -55,20 +58,41 @@ process.on('message', async (msg) => {
|
|
|
55
58
|
else sandbox[name] = proxy;
|
|
56
59
|
}
|
|
57
60
|
sandbox.globalThis = sandbox;
|
|
61
|
+
// The names above are the host's; everything else on globalThis is what the run's scripts left.
|
|
62
|
+
const reserved = new Set(Object.keys(sandbox));
|
|
63
|
+
for (const [key, value] of Object.entries(msg.carried || {})) if (!reserved.has(key)) sandbox[key] = value;
|
|
64
|
+
// Plain data left on globalThis goes back for the run's next script, whether this one returned
|
|
65
|
+
// or threw: a step that failed is fixed in place, not written again. Functions do not carry, and
|
|
66
|
+
// a value JSON cannot hold (a cycle) is not carried; the result's kept names show what did.
|
|
67
|
+
const carried = () => {
|
|
68
|
+
const kept = {};
|
|
69
|
+
for (const key of Object.keys(sandbox)) {
|
|
70
|
+
if (reserved.has(key)) continue;
|
|
71
|
+
let json;
|
|
72
|
+
try {
|
|
73
|
+
json = JSON.stringify(sandbox[key]);
|
|
74
|
+
} catch (notJson) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
if (json !== undefined) kept[key] = JSON.parse(json);
|
|
78
|
+
}
|
|
79
|
+
return kept;
|
|
80
|
+
};
|
|
58
81
|
try {
|
|
59
|
-
|
|
60
|
-
// A
|
|
61
|
-
const expression =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
// Code that parses as one expression is returned, its closing semicolon dropped; anything
|
|
83
|
+
// else is a function body. A line of several statements is a body, so it runs to the end.
|
|
84
|
+
const expression = msg.code.trim().replace(/;$/, '');
|
|
85
|
+
let script;
|
|
86
|
+
try {
|
|
87
|
+
script = new vm.Script('(async () => { return (' + expression + '\\n); })()', { filename: 'code_act.js' });
|
|
88
|
+
} catch (notOneExpression) {
|
|
89
|
+
script = new vm.Script('(async () => { ' + msg.code + '\\n})()', { filename: 'code_act.js' });
|
|
90
|
+
}
|
|
67
91
|
const value = await script.runInContext(vm.createContext(sandbox), { timeout: msg.timeoutMs });
|
|
68
|
-
process.send({ type: 'result', success: true, value, logs }, () => process.exit(0));
|
|
92
|
+
process.send({ type: 'result', success: true, value, logs, carried: carried() }, () => process.exit(0));
|
|
69
93
|
} catch (error) {
|
|
70
94
|
process.send(
|
|
71
|
-
{ type: 'result', success: false, logs, error: { name: error && error.name ? error.name : 'Error', message: error && error.message ? error.message : String(error) } },
|
|
95
|
+
{ type: 'result', success: false, logs, carried: carried(), error: { name: error && error.name ? error.name : 'Error', message: error && error.message ? error.message : String(error) } },
|
|
72
96
|
() => process.exit(0)
|
|
73
97
|
);
|
|
74
98
|
}
|
|
@@ -76,8 +100,13 @@ process.on('message', async (msg) => {
|
|
|
76
100
|
process.send({ type: 'ready' });
|
|
77
101
|
`;
|
|
78
102
|
const DEFAULT_TIMEOUT_MS = 300_000;
|
|
79
|
-
|
|
80
|
-
|
|
103
|
+
const CARRIED_RUNS = 4;
|
|
104
|
+
/**
|
|
105
|
+
* Run the code in a fresh worker process; host calls are answered by `host.call`. `carried` is
|
|
106
|
+
* what the run's earlier scripts left on globalThis; the result's `carried` is what this one
|
|
107
|
+
* leaves. A worker that dies or times out leaves what it was given.
|
|
108
|
+
*/
|
|
109
|
+
function runCodeAct(code, host, timeoutMs = DEFAULT_TIMEOUT_MS, carried = {}) {
|
|
81
110
|
const startedAt = Date.now();
|
|
82
111
|
let hostCallCount = 0;
|
|
83
112
|
return new Promise((resolve) => {
|
|
@@ -89,13 +118,20 @@ function runCodeAct(code, host, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
89
118
|
});
|
|
90
119
|
let stderr = '';
|
|
91
120
|
let settled = false;
|
|
92
|
-
const settle = (result) => {
|
|
121
|
+
const settle = (result, left = carried) => {
|
|
93
122
|
if (settled)
|
|
94
123
|
return;
|
|
95
124
|
settled = true;
|
|
96
125
|
clearTimeout(timer);
|
|
97
126
|
child.kill('SIGKILL');
|
|
98
|
-
|
|
127
|
+
const kept = Object.keys(left);
|
|
128
|
+
resolve({
|
|
129
|
+
...result,
|
|
130
|
+
hostCallCount,
|
|
131
|
+
durationMs: Date.now() - startedAt,
|
|
132
|
+
...(kept.length > 0 ? { kept } : {}),
|
|
133
|
+
carried: left,
|
|
134
|
+
});
|
|
99
135
|
};
|
|
100
136
|
const timer = setTimeout(() => settle({
|
|
101
137
|
success: false,
|
|
@@ -113,6 +149,7 @@ function runCodeAct(code, host, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
113
149
|
code,
|
|
114
150
|
functionNames: host.functions.map((fn) => fn.name),
|
|
115
151
|
timeoutMs,
|
|
152
|
+
carried,
|
|
116
153
|
});
|
|
117
154
|
return;
|
|
118
155
|
}
|
|
@@ -139,7 +176,7 @@ function runCodeAct(code, host, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
139
176
|
if (msg.type === 'result') {
|
|
140
177
|
settle(msg.success
|
|
141
178
|
? { success: true, value: msg.value, logs: msg.logs ?? [] }
|
|
142
|
-
: { success: false, error: msg.error, logs: msg.logs ?? [] });
|
|
179
|
+
: { success: false, error: msg.error, logs: msg.logs ?? [] }, msg.carried ?? {});
|
|
143
180
|
}
|
|
144
181
|
});
|
|
145
182
|
child.on('error', (error) => settle({ success: false, error: { name: 'WorkerError', message: error.message }, logs: [] }));
|
|
@@ -160,7 +197,7 @@ function runCodeAct(code, host, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
160
197
|
}
|
|
161
198
|
exports.CODE_ACT_CONTRACT = {
|
|
162
199
|
name: 'code_act',
|
|
163
|
-
summary: 'Run JavaScript that calls MAMA actions and returns only what the turn needs. Every action is an async function by its name, e.g. `return (await work.list({ view: "items", text: "asset" })).tasks.map((task) => [task.title, task.status])`; a failed action throws with its error; independent calls go together with `Promise.all`; `help({ actions: ["work.revise"] })` returns an action\'s argument types and examples; a name with a colon is called as `memory["read:provenance"]({...})`. The code runs in a separate process with no file or process access and an empty environment; its return value, console.log lines and any error come back.',
|
|
200
|
+
summary: 'Run JavaScript that calls MAMA actions and returns only what the turn needs. Every action is an async function by its name, e.g. `return (await work.list({ view: "items", text: "asset" })).tasks.map((task) => [task.title, task.status])`; a failed action throws with its error; independent calls go together with `Promise.all`; `help({ actions: ["work.revise"] })` returns an action\'s argument types and examples; a name with a colon is called as `memory["read:provenance"]({...})`. The code runs in a separate process with no file or process access and an empty environment; its return value, console.log lines and any error come back. Plain data you assign to globalThis (strings, numbers, arrays, objects; not functions) is there again in your next code_act of this turn, even when the script threw, and the result lists it in kept: when a script fails, fix the part that failed instead of sending the whole script again.',
|
|
164
201
|
inputSchema: {
|
|
165
202
|
type: 'object',
|
|
166
203
|
additionalProperties: false,
|
|
@@ -179,6 +216,10 @@ exports.CODE_ACT_CONTRACT = {
|
|
|
179
216
|
* caller is granted, and each call is dispatched with the caller's own context.
|
|
180
217
|
*/
|
|
181
218
|
function codeActRegistration(dispatcher) {
|
|
219
|
+
// What each run's scripts left on globalThis. Runs are serial in one owner runtime, so the
|
|
220
|
+
// latest run is the one that continues; the daemon is long-lived and a script can hold a whole
|
|
221
|
+
// ledger, so only the latest few runs keep theirs.
|
|
222
|
+
const carriedByRun = new Map();
|
|
182
223
|
return {
|
|
183
224
|
contract: exports.CODE_ACT_CONTRACT,
|
|
184
225
|
exec: async (input, context) => {
|
|
@@ -193,7 +234,9 @@ function codeActRegistration(dispatcher) {
|
|
|
193
234
|
throw new Error('code_act requires an operation id');
|
|
194
235
|
const callable = new Set(functions.map((fn) => fn.name));
|
|
195
236
|
let calls = 0;
|
|
196
|
-
|
|
237
|
+
const runId = context.session?.modelRunId;
|
|
238
|
+
const before = runId === undefined ? {} : (carriedByRun.get(runId) ?? {});
|
|
239
|
+
const { carried: after, ...result } = await runCodeAct(input.code, {
|
|
197
240
|
functions,
|
|
198
241
|
call: async (name, params) => {
|
|
199
242
|
// callTool() takes any name; code_act itself would start a worker inside a worker.
|
|
@@ -209,7 +252,28 @@ function codeActRegistration(dispatcher) {
|
|
|
209
252
|
return result.data;
|
|
210
253
|
throw new Error(`${result.error.code}: ${result.error.message}`);
|
|
211
254
|
},
|
|
212
|
-
});
|
|
255
|
+
}, DEFAULT_TIMEOUT_MS, before);
|
|
256
|
+
if (runId === undefined)
|
|
257
|
+
return result;
|
|
258
|
+
// One model message can carry several code_act calls, each started from the same values:
|
|
259
|
+
// apply only what this call changed, so it does not replace what the others left.
|
|
260
|
+
const current = { ...(carriedByRun.get(runId) ?? {}) };
|
|
261
|
+
for (const key of Object.keys(before))
|
|
262
|
+
if (!(key in after))
|
|
263
|
+
delete current[key];
|
|
264
|
+
for (const [key, value] of Object.entries(after))
|
|
265
|
+
if (JSON.stringify(value) !== JSON.stringify(before[key]))
|
|
266
|
+
current[key] = value;
|
|
267
|
+
carriedByRun.delete(runId);
|
|
268
|
+
carriedByRun.set(runId, current);
|
|
269
|
+
for (const oldest of carriedByRun.keys()) {
|
|
270
|
+
if (carriedByRun.size <= CARRIED_RUNS)
|
|
271
|
+
break;
|
|
272
|
+
carriedByRun.delete(oldest);
|
|
273
|
+
}
|
|
274
|
+
const { kept: _ownView, ...rest } = result;
|
|
275
|
+
const kept = Object.keys(current);
|
|
276
|
+
return kept.length > 0 ? { ...rest, kept } : rest;
|
|
213
277
|
},
|
|
214
278
|
};
|
|
215
279
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-act-actions.js","sourceRoot":"","sources":["../../src/api/code-act-actions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"code-act-actions.js","sourceRoot":"","sources":["../../src/api/code-act-actions.ts"],"names":[],"mappings":";;;AAmIA,gCAiHC;AAyBD,kDA+DC;AA5UD;;;;;;;;;;;;GAYG;AACH,2DAA2C;AAQ3C,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFrB,CAAC;AAqBF,MAAM,kBAAkB,GAAG,OAAO,CAAC;AACnC,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB;;;;GAIG;AACH,SAAgB,UAAU,CACxB,IAAY,EACZ,IAAiB,EACjB,SAAS,GAAG,kBAAkB,EAC9B,UAAyB,EAAE;IAE3B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAC7B,IAAI,aAAa,GAAG,CAAC,CAAC;IACtB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,wFAAwF;QACxF,4EAA4E;QAC5E,MAAM,KAAK,GAAG,IAAA,0BAAK,EAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,cAAc,EAAE,IAAI,EAAE,aAAa,CAAC,EAAE;YAC3E,KAAK,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC;YAC1C,GAAG,EAAE,EAAE;SACR,CAAC,CAAC;QACH,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,MAAM,MAAM,GAAG,CACb,MAAoE,EACpE,OAA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C,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;oBAAE,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAClF,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC3B,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACjC,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC;gBACzC,IAAI,YAAY,CAAC,IAAI,IAAI,YAAY;oBAAE,MAAM;gBAC7C,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9B,CAAC;YACD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;YAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;QACpD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-slot-instructions.d.ts","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,gBAAgB,mEAAoE,CAAC;AAElG,8DAA8D;AAC9D,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAqBnD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAQnD;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"board-slot-instructions.d.ts","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,gBAAgB,mEAAoE,CAAC;AAElG,8DAA8D;AAC9D,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAqBnD;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAQnD;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAYvD;AAiBD;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG;IAAE,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAAE,CAuBpF;AAED,yDAAyD;AACzD,wBAAgB,sBAAsB,IAAI,SAAS,MAAM,EAAE,CAE1D;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAU7D"}
|
|
@@ -65,11 +65,10 @@ function buildReportPublishToolContract() {
|
|
|
65
65
|
const inline = (lines) => lines.join(' ').replace(/\s+/g, ' ').trim();
|
|
66
66
|
return inline([
|
|
67
67
|
'Publish dashboard analysis as HTML.',
|
|
68
|
-
'pipeline is an agent-authored current workflow view; write it from the task ledger and conversations.',
|
|
69
68
|
'SLOT SHAPE:',
|
|
70
69
|
...buildBoardSlotShapeLines(),
|
|
71
70
|
...buildBoardHtmlVocabulary(),
|
|
72
|
-
"Write slot CONTENT in the owner's language
|
|
71
|
+
"Write slot CONTENT in the owner's language.",
|
|
73
72
|
'A slot that contains none of report-summary / report-card / report-section-title / report-table',
|
|
74
73
|
'is still published, but the result reports it back as a',
|
|
75
74
|
'warning because the board renders it as plain text.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-slot-instructions.js","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,4DAqBC;AAOD,4DAQC;AAOD,
|
|
1
|
+
{"version":3,"file":"board-slot-instructions.js","sourceRoot":"","sources":["../../src/operator/board-slot-instructions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,4DAqBC;AAOD,4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C,QAAQ,CAAC,sCAAsC,CAAC,EAAE,CAAC;QAC1E,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACzC,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACvC,IAAI,KAAK,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC;gBAAE,OAAO,IAAI,CAAC;QAClD,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -116,7 +116,7 @@ function ownerHelpTopics(backend, wikiEnabled, judgeEnabled = false) {
|
|
|
116
116
|
'Full report — when the owner asks for it in any words, or a [scheduled_full_report] order arrives:',
|
|
117
117
|
'1. The ledger is the record: the report is what changed since the previous report on top of it. Find the items written since then, the deadlines and the calendar ahead, and open originals only for a change the ledger does not explain. Never leave an item vaguely unconfirmed: settle what the ledger shows (done, cancelled or continuing) and record it; for an item it cannot settle, say what is missing and who can settle it. Tell an empty result from failed or stale collection.',
|
|
118
118
|
'2. Compare every open deadline with the calendar and holidays, using event end times for overlaps. Name the items under each stage and list every item waiting on an owner decision with the decision requested.',
|
|
119
|
-
'3. Publish all four board sections with report.publish; build long sections such as the pipeline inside the script from the ledger rows, so the rows do not pass through your context.',
|
|
119
|
+
'3. Publish all four board sections with report.publish; build long sections such as the pipeline inside the script from the ledger rows, so the rows do not pass through your context. Keep each section on globalThis as you build it: when a script fails, fix that part and publish; do not write the sections again.',
|
|
120
120
|
'4. Write the report in five parts: key situation today (with the owner schedule and holidays); needs a response; needs a decision; pipeline with each stage and item; next actions. Say plainly when there were no changes.',
|
|
121
121
|
readers,
|
|
122
122
|
].join('\n'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owner-system-prompt.js","sourceRoot":"","sources":["../../src/runtime/owner-system-prompt.ts"],"names":[],"mappings":";;;AAoBA,0DAMC;AAyGD,0C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