copilot-operator 0.1.48 → 0.1.51
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 +582 -574
- package/dist/src/api/operator.controller.js +112 -926
- package/dist/src/api/operator.service.js +217 -2461
- package/dist/src/orchestrator/hold.js +49 -0
- package/dist/src/orchestrator/taskRunner.js +157 -23
- package/dist/src/plan/kerrigan.js +107 -0
- package/dist/src/plan/systemGuide.js +419 -3283
- package/dist/src/session/chatNotice.js +76 -0
- package/dist/src/session/store.js +2 -57
- package/dist/src/session/workspace.js +52 -5
- package/dist/src/session/workspaceGit.js +212 -0
- package/dist/src/transport/chatSession.js +28 -4
- package/dist/src/transport/chatTransport.js +1 -1
- package/dist/src/transport/copilotTransport.js +133 -1
- package/dist/web/404.html +5 -3
- package/dist/web/_next/static/chunks/134-ddd50a7fbb536ec8.js +1 -0
- package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +1 -0
- package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +1 -0
- package/dist/web/_next/static/chunks/867-869900ec999e6345.js +1 -0
- package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +1 -0
- package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +1 -0
- package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +1 -0
- package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +1 -0
- package/dist/web/_next/static/css/8b14cb3cf0051138.css +1 -0
- package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +1 -0
- package/dist/web/appearance.html +5 -3
- package/dist/web/appearance.txt +22 -23
- package/dist/web/defaults.html +5 -3
- package/dist/web/defaults.txt +22 -23
- package/dist/web/index.html +5 -3
- package/dist/web/index.txt +22 -23
- package/dist/web/level1.html +5 -3
- package/dist/web/level1.txt +22 -23
- package/dist/web/presets.html +6 -4
- package/dist/web/presets.txt +22 -23
- package/dist/web/system.html +5 -3
- package/dist/web/system.txt +22 -23
- package/package.json +4 -20
- package/dist/src/api/saveToDesktop.js +0 -157
- package/dist/src/plan/brief.js +0 -2003
- package/dist/src/plan/changes.js +0 -217
- package/dist/src/plan/script.js +0 -1014
- package/dist/src/session/debugExport.js +0 -165
- package/dist/src/session/exportRecord.js +0 -277
- package/dist/src/session/metrics.js +0 -95
- package/dist/src/vcs/startChoice.js +0 -367
- package/dist/web/_next/static/chunks/197-f7c33a0114fc3db3.js +0 -1
- package/dist/web/_next/static/chunks/499-751e0be9d4f86e2d.js +0 -1
- package/dist/web/_next/static/chunks/549-a4473e9519a97026.js +0 -1
- package/dist/web/_next/static/chunks/699-9d031f8c145a0465.js +0 -1
- package/dist/web/_next/static/chunks/867-b159f25612da5cbc.js +0 -1
- package/dist/web/_next/static/chunks/897-5a34109533c3da50.js +0 -1
- package/dist/web/_next/static/chunks/app/appearance/page-a18019cdc395de3d.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-614be29d185a2947.js +0 -1
- package/dist/web/_next/static/chunks/app/history/page-0bb537407fed5944.js +0 -1
- package/dist/web/_next/static/chunks/app/import/page-8ef75fc08638e75f.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-485ce9395cb17998.js +0 -1
- package/dist/web/_next/static/chunks/app/level1/page-dd3ebf37d29dce4f.js +0 -1
- package/dist/web/_next/static/chunks/app/page-3caf0b02046754a1.js +0 -1
- package/dist/web/_next/static/chunks/app/presets/page-93ab518db67e52a2.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/page-28376d2e4a9b4738.js +0 -1
- package/dist/web/_next/static/chunks/app/sessions/view/page-835d3533fdc63082.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-227a259e383ca2a0.js +0 -1
- package/dist/web/_next/static/css/ddb518572ea43e30.css +0 -1
- package/dist/web/_next/static/nLLy7-v8M5YRGIMtuTvMJ/_buildManifest.js +0 -1
- package/dist/web/history.html +0 -16
- package/dist/web/history.txt +0 -26
- package/dist/web/import.html +0 -16
- package/dist/web/import.txt +0 -26
- package/dist/web/sessions/view.html +0 -16
- package/dist/web/sessions/view.txt +0 -26
- package/dist/web/sessions.html +0 -16
- package/dist/web/sessions.txt +0 -26
- package/prompts/organisation.bg.md +0 -43
- package/prompts/organisation.en.md +0 -43
- package/prompts/persona.bg.md +0 -17
- package/prompts/persona.en.md +0 -17
- package/prompts/work.bg.md +0 -19
- package/prompts/work.en.md +0 -19
- /package/dist/web/_next/static/{nLLy7-v8M5YRGIMtuTvMJ → eqTUTH_SJtBgNgq8Zzy3n}/_ssgManifest.js +0 -0
package/dist/src/plan/changes.js
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kerrigan's answer about work that already exists (operator's request, 2026-10-14: "no dead end — the user
|
|
3
|
-
* tells Kerrigan what happened and she proposes how to go on; even when the tasks are done she may judge the
|
|
4
|
-
* implementation wrong and ask for more"). A plan only ever made new sessions, so everything she advised about
|
|
5
|
-
* a session that had run had to be done by hand, or became a copy of it in a new chat.
|
|
6
|
-
*
|
|
7
|
-
* Two halves, both plain text so they work with any chat: `kerriganReport` writes what happened — each session
|
|
8
|
-
* and task with its id, how it ended and why, what it changed — together with the operator's note and the exact
|
|
9
|
-
* form of the answer; `checkChanges` reads her answer, a list of changes to those sessions and tasks, against
|
|
10
|
-
* them as they are now, and says in words what each would do before anything is done. The service applies them
|
|
11
|
-
* one by one through the same paths the buttons use, so a change is held to the same rules as a click.
|
|
12
|
-
*/
|
|
13
|
-
import { z } from 'zod';
|
|
14
|
-
import { TaskInput, extractJson } from './schema.js';
|
|
15
|
-
import { canFollowUp, clipText, isContinuable } from '../session/model.js';
|
|
16
|
-
const SessionRef = z.string({ error: 'Each change names its "session": the id from the report (s-…), or its exact name.' }).trim().min(1);
|
|
17
|
-
const TaskRef = z.union([z.string().trim().min(1), z.number().int().positive()], {
|
|
18
|
-
error: 'Each change names its "task": the id from the report (t-…), its number in the session, or its exact title.',
|
|
19
|
-
});
|
|
20
|
-
export const ChangeSchema = z.discriminatedUnion('op', [
|
|
21
|
-
z.object({ op: z.literal('addTask'), session: SessionRef, after: TaskRef.optional(), task: TaskInput }),
|
|
22
|
-
z.object({
|
|
23
|
-
op: z.literal('editTask'),
|
|
24
|
-
session: SessionRef,
|
|
25
|
-
task: TaskRef,
|
|
26
|
-
title: z.string().trim().min(3).max(120).optional(),
|
|
27
|
-
prompt: z.string().trim().min(30, 'A new prompt needs a real instruction, not a few words.').optional(),
|
|
28
|
-
checks: TaskInput.shape.checks.optional(),
|
|
29
|
-
scope: TaskInput.shape.scope.optional(),
|
|
30
|
-
}),
|
|
31
|
-
z.object({ op: z.literal('removeTask'), session: SessionRef, task: TaskRef }),
|
|
32
|
-
z.object({ op: z.literal('continue'), session: SessionRef, task: TaskRef, instruction: z.string().trim().min(10, 'Say what to do now: "instruction" is the new prompt the task carries on with.') }),
|
|
33
|
-
z.object({ op: z.literal('newPrompt'), session: SessionRef, task: TaskRef, prompt: z.string().trim().min(30, 'A new prompt needs a real instruction, not a few words.') }),
|
|
34
|
-
z.object({ op: z.literal('runAgain'), session: SessionRef, task: TaskRef, prompt: z.string().trim().min(30).optional() }),
|
|
35
|
-
z.object({ op: z.literal('undo'), session: SessionRef, task: TaskRef, how: z.enum(['this', 'back'], { error: '"how" is "this" (take only this task\'s work out) or "back" (go back to before it, and queue the tasks after it too).' }) }),
|
|
36
|
-
z.object({ op: z.literal('accept'), session: SessionRef, task: TaskRef, note: z.string().trim().optional() }),
|
|
37
|
-
z.object({ op: z.literal('note'), session: SessionRef, task: TaskRef, text: z.string().trim().min(1) }),
|
|
38
|
-
], {
|
|
39
|
-
error: (i) => (i.code === 'invalid_union' ? '"op" must be one of addTask, editTask, removeTask, continue, newPrompt, runAgain, undo, accept, note.' : undefined),
|
|
40
|
-
});
|
|
41
|
-
export const ChangesSchema = z.object({
|
|
42
|
-
version: z.literal(1, 'Set "version": 1.'),
|
|
43
|
-
notes: z.string().trim().default(''),
|
|
44
|
-
changes: z.array(ChangeSchema).min(1, 'An answer with "changes" needs at least one.'),
|
|
45
|
-
});
|
|
46
|
-
/** Whether the pasted text is an answer with changes rather than a plan of new sessions. */
|
|
47
|
-
export function looksLikeChanges(text) {
|
|
48
|
-
try {
|
|
49
|
-
const raw = JSON.parse(extractJson(text ?? ''));
|
|
50
|
-
return !!raw && typeof raw === 'object' && Array.isArray(raw.changes);
|
|
51
|
-
}
|
|
52
|
-
catch {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const RUNNING = ['running', 'waiting-approval'];
|
|
57
|
-
function findSession(sessions, ref) {
|
|
58
|
-
return sessions.find((s) => s.id === ref) ?? sessions.find((s) => s.name === ref) ?? sessions.find((s) => s.name.toLowerCase() === ref.toLowerCase());
|
|
59
|
-
}
|
|
60
|
-
function findTask(session, ref) {
|
|
61
|
-
if (typeof ref === 'number' || /^\d+$/.test(ref))
|
|
62
|
-
return session.tasks[Number(ref) - 1];
|
|
63
|
-
return session.tasks.find((t) => t.id === ref) ?? session.tasks.find((t) => t.title === ref) ?? session.tasks.find((t) => t.title.toLowerCase() === ref.toLowerCase());
|
|
64
|
-
}
|
|
65
|
-
/** Reads Kerrigan's answer and finds each change against the sessions as they are now. Nothing is changed. */
|
|
66
|
-
export function checkChanges(text, sessions) {
|
|
67
|
-
let raw;
|
|
68
|
-
try {
|
|
69
|
-
raw = JSON.parse(extractJson(text ?? ''));
|
|
70
|
-
}
|
|
71
|
-
catch (e) {
|
|
72
|
-
return { ok: false, warnings: [], issues: [{ path: '', message: `This is not valid JSON: ${e.message}.` }] };
|
|
73
|
-
}
|
|
74
|
-
const parsed = ChangesSchema.safeParse(raw);
|
|
75
|
-
if (!parsed.success) {
|
|
76
|
-
return { ok: false, warnings: [], issues: parsed.error.issues.map((i) => ({ path: i.path.map((p) => (typeof p === 'number' ? `[${p}]` : `.${String(p)}`)).join('').replace(/^\./, ''), message: i.message })) };
|
|
77
|
-
}
|
|
78
|
-
const issues = [];
|
|
79
|
-
const warnings = [];
|
|
80
|
-
const changes = [];
|
|
81
|
-
parsed.data.changes.forEach((change, index) => {
|
|
82
|
-
const path = `changes[${index}]`;
|
|
83
|
-
const session = findSession(sessions, change.session);
|
|
84
|
-
if (!session) {
|
|
85
|
-
issues.push({ path: `${path}.session`, message: `No session "${change.session}". Use the id from the report (s-…) or the session's exact name.` });
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const base = { index, change, sessionId: session.id, sessionName: session.name };
|
|
89
|
-
if (change.op === 'addTask') {
|
|
90
|
-
const after = change.after !== undefined ? findTask(session, change.after) : undefined;
|
|
91
|
-
if (change.after !== undefined && !after) {
|
|
92
|
-
issues.push({ path: `${path}.after`, message: `Session "${session.name}" has no task "${change.after}" to put the new one after.` });
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
changes.push({ ...base, says: `add task "${change.task.title}" to "${session.name}"${after ? `, after "${after.title}"` : ', at the end'}, queued` });
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const task = findTask(session, change.task);
|
|
99
|
-
if (!task) {
|
|
100
|
-
issues.push({ path: `${path}.task`, message: `Session "${session.name}" has no task "${change.task}". Use the id from the report (t-…), its number, or its exact title.` });
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const named = { ...base, taskId: task.id, taskTitle: task.title };
|
|
104
|
-
const refuse = (message) => {
|
|
105
|
-
issues.push({ path: `${path}.op`, message: `"${task.title}" in "${session.name}" is ${task.status}: ${message}` });
|
|
106
|
-
};
|
|
107
|
-
if (RUNNING.includes(task.status))
|
|
108
|
-
return refuse('it is running now; nothing can be changed on it until it stops.');
|
|
109
|
-
switch (change.op) {
|
|
110
|
-
case 'editTask':
|
|
111
|
-
if (task.status !== 'queued')
|
|
112
|
-
return refuse('only a queued task is edited; for one that ran use "runAgain" with a "prompt", "continue" or "newPrompt".');
|
|
113
|
-
changes.push({ ...named, says: `edit "${task.title}": ${['title', 'prompt', 'checks', 'scope'].filter((k) => change[k] !== undefined).join(', ') || 'nothing'}` });
|
|
114
|
-
return;
|
|
115
|
-
case 'removeTask':
|
|
116
|
-
if (task.status !== 'queued')
|
|
117
|
-
return refuse('only a queued task is removed; a task that ran keeps its record.');
|
|
118
|
-
changes.push({ ...named, says: `remove the queued task "${task.title}"` });
|
|
119
|
-
return;
|
|
120
|
-
case 'continue':
|
|
121
|
-
if (!isContinuable(task) && !canFollowUp(task))
|
|
122
|
-
return refuse('only a task that failed, blocked or stopped is carried on; for a done one use "newPrompt".');
|
|
123
|
-
changes.push({ ...named, says: `carry "${task.title}" on in its own chat and branch, from where it got to, with the new prompt` });
|
|
124
|
-
return;
|
|
125
|
-
case 'newPrompt':
|
|
126
|
-
if (task.status !== 'done')
|
|
127
|
-
return refuse('"newPrompt" builds on a done task\'s work; for a failed one use "continue".');
|
|
128
|
-
changes.push({ ...named, says: `give the done task "${task.title}" a new prompt that builds on its work, queued` });
|
|
129
|
-
return;
|
|
130
|
-
case 'runAgain':
|
|
131
|
-
if (task.status === 'queued')
|
|
132
|
-
return refuse('it is queued already; use "editTask" to change it.');
|
|
133
|
-
changes.push({ ...named, says: `run "${task.title}" again from where it first started${change.prompt ? ', with a new prompt' : ''}, queued` });
|
|
134
|
-
return;
|
|
135
|
-
case 'undo':
|
|
136
|
-
if (task.status === 'queued' || !task.startedAt)
|
|
137
|
-
return refuse('it has not run since it was queued; there is nothing of it to undo.');
|
|
138
|
-
changes.push({ ...named, says: change.how === 'this' ? `undo only "${task.title}": its work taken out, the tasks after it kept; it is queued again` : `go back to before "${task.title}": it and the tasks after it queued again` });
|
|
139
|
-
return;
|
|
140
|
-
case 'accept':
|
|
141
|
-
if (!['failed', 'blocked', 'limit-reached', 'aborted'].includes(task.status))
|
|
142
|
-
return refuse('only a task that ended without being done is accepted as done.');
|
|
143
|
-
changes.push({ ...named, says: `accept "${task.title}" as done${change.note ? ', with a note' : ''}` });
|
|
144
|
-
return;
|
|
145
|
-
case 'note':
|
|
146
|
-
if (task.status !== 'queued')
|
|
147
|
-
warnings.push(`The note for "${task.title}" (${task.status}) goes out only when it runs again.`);
|
|
148
|
-
changes.push({ ...named, says: `a note to the chat for "${task.title}"` });
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
if (issues.length > 0)
|
|
153
|
-
return { ok: false, issues, warnings };
|
|
154
|
-
return { ok: true, notes: parsed.data.notes, changes, warnings };
|
|
155
|
-
}
|
|
156
|
-
// --- the report ------------------------------------------------------------------------------
|
|
157
|
-
const clip = (s, n) => (clipText(s, n) ?? '').replace(/\s+/g, ' ').trim();
|
|
158
|
-
function taskLines(task, index) {
|
|
159
|
-
const out = [`${index + 1}. "${task.title}" — id ${task.id} — ${task.status}${(task.attempt ?? 1) > 1 ? `, attempt ${task.attempt}` : ''}`];
|
|
160
|
-
if (task.accepted)
|
|
161
|
-
out.push(` accepted as done by the operator (it had ended ${task.accepted.was})${task.accepted.note ? `: ${clip(task.accepted.note, 300)}` : ''}`);
|
|
162
|
-
const undone = task.attempts?.at(-1)?.undone;
|
|
163
|
-
if (task.status === 'queued' && undone)
|
|
164
|
-
out.push(` its last attempt was undone by the operator (${undone.how === 'this' ? 'only its work taken out' : 'back to before it'})`);
|
|
165
|
-
if (task.continuing?.instruction)
|
|
166
|
-
out.push(` carried on with the operator's prompt: ${clip(task.continuing.instruction, 400)}`);
|
|
167
|
-
if (task.status === 'queued')
|
|
168
|
-
out.push(` prompt: ${clip(task.prompt, 500)}`);
|
|
169
|
-
if (task.summary && task.status !== 'queued')
|
|
170
|
-
out.push(` summary: ${clip(task.summary, 600)}`);
|
|
171
|
-
if (task.reason && task.reason !== task.summary && task.status !== 'done')
|
|
172
|
-
out.push(` why it stopped: ${clip(task.reason, 600)}`);
|
|
173
|
-
const failed = (task.checkResults ?? []).filter((c) => !c.passed);
|
|
174
|
-
if (failed.length > 0)
|
|
175
|
-
out.push(` checks that did not pass: ${failed.slice(0, 6).map((c) => `${c.name} (${clip(c.detail, 160)})`).join('; ')}`);
|
|
176
|
-
if (task.review?.verdict) {
|
|
177
|
-
const findings = (task.review.findings ?? []).slice(0, 5).map((f) => `${clip(f.what, 200)}${f.where ? ` [${clip(f.where, 80)}]` : ''}`);
|
|
178
|
-
out.push(` review: ${task.review.verdict}${findings.length > 0 ? ` — ${findings.join('; ')}` : ''}`);
|
|
179
|
-
}
|
|
180
|
-
const files = (task.vcs?.files ?? []).map((f) => f.path);
|
|
181
|
-
if (files.length > 0)
|
|
182
|
-
out.push(` changed: ${files.slice(0, 25).join(', ')}${files.length > 25 ? ` and ${files.length - 25} more` : ''}`);
|
|
183
|
-
if (task.vcs?.branch)
|
|
184
|
-
out.push(` branch ${task.vcs.branch}${task.vcs.commit ? ` at ${task.vcs.commit.slice(0, 8)}` : ''}`);
|
|
185
|
-
const notes = task.notes ?? [];
|
|
186
|
-
if (notes.length > 0)
|
|
187
|
-
out.push(` operator's notes: ${notes.slice(-3).map((n) => clip(n.text, 200)).join(' | ')}`);
|
|
188
|
-
return out;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* What happened, for Kerrigan: the sessions, each task with its id, how it ended and why, and what it changed;
|
|
192
|
-
* the operator's note; and the exact form of the answer. Plain text, for any chat.
|
|
193
|
-
*/
|
|
194
|
-
export function kerriganReport(sessions, opts = {}) {
|
|
195
|
-
const only = new Set(opts.taskIds ?? []);
|
|
196
|
-
const lines = [
|
|
197
|
-
'# What happened — for Kerrigan',
|
|
198
|
-
'',
|
|
199
|
-
`The operator sends you the state of their work as copilot-operator recorded it (${opts.at ?? new Date().toISOString()}), and asks you to look at it`,
|
|
200
|
-
'and propose how to go on — whether the tasks failed, stopped, or are done but not what was meant.',
|
|
201
|
-
'',
|
|
202
|
-
];
|
|
203
|
-
if (opts.note?.trim())
|
|
204
|
-
lines.push('## The operator says', '', opts.note.trim(), '');
|
|
205
|
-
for (const s of sessions) {
|
|
206
|
-
const vcs = s.vcs?.enabled ? `${s.vcs.branchMode === 'per-task' ? 'a branch per task' : 'one branch for the session, a commit per task'} in ${s.vcs.repoDir || '(no folder)'}` : 'no version control';
|
|
207
|
-
lines.push(`## Session "${s.name}" — id ${s.id}`, '', `${vcs}; ${s.onFailure === 'continue' ? 'independent tasks' : 'one chain: a failed task stops the ones after it'}.`, '');
|
|
208
|
-
s.tasks.forEach((t, i) => {
|
|
209
|
-
if (only.size > 0 && !only.has(t.id))
|
|
210
|
-
return;
|
|
211
|
-
lines.push(...taskLines(t, i));
|
|
212
|
-
});
|
|
213
|
-
lines.push('');
|
|
214
|
-
}
|
|
215
|
-
lines.push('## How to answer', '', 'First tell the operator, in their language and in a few sentences, what you think happened and what you propose.', 'Then give the changes as one JSON object in a ```json block, which the operator pastes on the import page;', 'it shows each change in words before anything is done. Name sessions and tasks by the ids above.', '', '```json', '{"version": 1, "notes": "why, in one or two sentences", "changes": [', ' {"op": "continue", "session": "s-…", "task": "t-…", "instruction": "what to do now — the task goes on from where it got to, in its own chat and branch"},', ' {"op": "addTask", "session": "s-…", "after": "t-…", "task": {"title": "…", "prompt": "…", "expected": "…", "checks": [], "scope": []}}', ']}', '```', '', 'The changes, one object each:', '- "continue" {task, instruction} — a task that failed, blocked or stopped goes on from where it got to, with your prompt added to its own.', '- "newPrompt" {task, prompt} — a done task gets a new prompt that builds on its work (more to do, or done wrong).', '- "runAgain" {task, prompt?} — a task that ran starts over from where it first started, optionally with a corrected prompt; its earlier work is not used.', '- "undo" {task, how} — "this": only this task\'s work is taken out of the session\'s branch, the tasks after it kept; "back": the branch goes back to before it, and it and the tasks after it are queued again. Nothing is deleted.', '- "accept" {task, note?} — a task that did not end done is accepted as done (for example, the operator finished it by hand).', '- "addTask" {task, after?} — a new task in an existing session, after the task named (else at the end); "task" has the fields of a plan\'s task.', '- "editTask" {task, title?, prompt?, checks?, scope?} — a queued task, changed before it runs.', '- "removeTask" {task} — a queued task that is no longer wanted.', '- "note" {task, text} — information for the chat about a task, sent with its next message.', '', 'Nothing runs by itself after the import: the operator starts the run. For work that belongs in a new session, answer with a plan as before.');
|
|
216
|
-
return lines.join('\n');
|
|
217
|
-
}
|