copilot-operator 0.1.51 → 0.1.52
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 +8 -3
- package/dist/src/api/operator.controller.js +32 -81
- package/dist/src/api/operator.service.js +166 -109
- package/dist/src/config/schema.js +13 -0
- package/dist/src/orchestrator/leadRunner.js +559 -0
- package/dist/src/orchestrator/taskRunner.js +55 -17
- package/dist/src/plan/kerrigan.js +172 -47
- package/dist/src/plan/systemGuide.js +443 -506
- package/dist/src/protocol/leadSchema.js +156 -0
- package/dist/src/protocol/parser.js +1 -1
- package/dist/src/session/chatNotice.js +115 -0
- package/dist/src/session/checkpoint.js +19 -0
- package/dist/src/session/compose.js +1 -1
- package/dist/src/session/store.js +18 -72
- package/dist/src/transport/copilotTransport.js +2 -0
- package/dist/web/404.html +13 -18
- package/dist/web/_next/static/_1zhoDsMOPAH2xW702E5A/_buildManifest.js +1 -0
- package/dist/web/_next/static/chunks/163.dbd7d36584d0bb37.js +1 -0
- package/dist/web/_next/static/chunks/220.35531b39410e1a9f.js +1 -0
- package/dist/web/_next/static/chunks/548.71ac96c94136659b.js +1 -0
- package/dist/web/_next/static/chunks/584.6df695c5b86a75aa.js +1 -0
- package/dist/web/_next/static/chunks/67.9ed79e2fbfb56f26.js +1 -0
- package/dist/web/_next/static/chunks/714.1e2338736a70b9c7.js +1 -0
- package/dist/web/_next/static/chunks/747.d2c1249d736dc03b.js +1 -0
- package/dist/web/_next/static/chunks/77.a200abef0f5b4a7f.js +1 -0
- package/dist/web/_next/static/chunks/808-bc7d7eac6d823291.js +1 -0
- package/dist/web/_next/static/chunks/921-dc5538cd779c6432.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-edd7534ca9ecf366.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-8f99a164d76897a0.js +1 -0
- package/dist/web/_next/static/chunks/app/page-4bed816eda370d0c.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +1 -0
- package/dist/web/_next/static/chunks/webpack-77147e31d2125631.js +1 -0
- package/dist/web/_next/static/css/3bea264adc472bc8.css +1 -0
- package/dist/web/defaults.html +13 -18
- package/dist/web/defaults.txt +9 -9
- package/dist/web/index.html +13 -18
- package/dist/web/index.txt +9 -9
- package/dist/web/system.html +13 -18
- package/dist/web/system.txt +9 -9
- package/package.json +4 -5
- package/prompts/lead1.md +116 -0
- package/dist/src/vcs/prepareFromRemote.js +0 -288
- package/dist/src/vcs/remoteAuth.js +0 -117
- package/dist/src/vcs/syncCommand.js +0 -97
- package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +0 -1
- package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +0 -1
- package/dist/web/_next/static/chunks/867-869900ec999e6345.js +0 -1
- package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +0 -1
- package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +0 -1
- package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +0 -1
- package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +0 -1
- package/dist/web/_next/static/chunks/webpack-0f31b926d9a9c5a4.js +0 -1
- package/dist/web/_next/static/css/8b14cb3cf0051138.css +0 -1
- package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +0 -1
- package/dist/web/appearance.html +0 -18
- package/dist/web/appearance.txt +0 -25
- package/dist/web/level1.html +0 -18
- package/dist/web/level1.txt +0 -25
- package/dist/web/presets.html +0 -21
- package/dist/web/presets.txt +0 -25
- /package/dist/web/_next/static/{eqTUTH_SJtBgNgq8Zzy3n → _1zhoDsMOPAH2xW702E5A}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The lead's contract, as a schema (operator, 2026-10-20: "two chats — chat A takes the whole, complex task, breaks it
|
|
3
|
+
* into steps and directs; chat B carries out the small technical tasks and reports back").
|
|
4
|
+
*
|
|
5
|
+
* The prose the lead is given is `prompts/lead1.md`; this is the enforcement. The lead never runs anything: its replies
|
|
6
|
+
* say what to do next — give the worker a subtask, propose the plan, ask the operator, deliver the result, or stop —
|
|
7
|
+
* and anything that does not validate here is sent back with the reason, as a worker's reply in the wrong shape is.
|
|
8
|
+
* Lenient where nothing runs on it: a list that came as one string, an answer that came as an object (the fields of a
|
|
9
|
+
* bug report, say) are read as the text they mean rather than refused.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { findJsonCandidates, stripCitations, stripLineNumbers } from './parser.js';
|
|
13
|
+
import { MIN_SUMMARY_CHARS, PlanSchema } from './replySchema.js';
|
|
14
|
+
/** A value that is meant as prose, in whatever shape it came: an object or a list is written out as text. */
|
|
15
|
+
export function proseOfValue(value, depth = 0) {
|
|
16
|
+
if (value === undefined || value === null)
|
|
17
|
+
return '';
|
|
18
|
+
if (typeof value === 'string')
|
|
19
|
+
return value;
|
|
20
|
+
if (typeof value === 'number' || typeof value === 'boolean')
|
|
21
|
+
return String(value);
|
|
22
|
+
const pad = ' '.repeat(depth);
|
|
23
|
+
if (Array.isArray(value)) {
|
|
24
|
+
return value
|
|
25
|
+
.map((v) => {
|
|
26
|
+
const text = proseOfValue(v, depth + 1);
|
|
27
|
+
return text.includes('\n') ? `${pad}- ${text.trimStart()}` : `${pad}- ${text}`;
|
|
28
|
+
})
|
|
29
|
+
.join('\n');
|
|
30
|
+
}
|
|
31
|
+
// An object's fields, each on its line in the order they came: "**Title**: …".
|
|
32
|
+
return Object.entries(value)
|
|
33
|
+
.map(([k, v]) => {
|
|
34
|
+
const text = proseOfValue(v, depth + 1);
|
|
35
|
+
return typeof v === 'object' && v !== null ? `${pad}**${k}**:\n${text}` : `${pad}**${k}**: ${text}`;
|
|
36
|
+
})
|
|
37
|
+
.join('\n');
|
|
38
|
+
}
|
|
39
|
+
const prose = z.preprocess((v) => (v === undefined ? undefined : proseOfValue(v)), z.string().optional());
|
|
40
|
+
const proseList = z.preprocess((v) => v === undefined
|
|
41
|
+
? []
|
|
42
|
+
: typeof v === 'string'
|
|
43
|
+
? v.split(/\r?\n/).map((l) => l.replace(/^\s*(?:\d+[.)]|[-*•])\s+/, '').trim()).filter(Boolean)
|
|
44
|
+
: Array.isArray(v)
|
|
45
|
+
? v.map((x) => proseOfValue(x)).filter((x) => x.trim() !== '')
|
|
46
|
+
: [proseOfValue(v)], z.array(z.string()));
|
|
47
|
+
/** One subtask for the worker: what it is to find out or do, what it needs to know, and what to report back. */
|
|
48
|
+
export const SubtaskSchema = z.object({
|
|
49
|
+
title: z.preprocess((v) => proseOfValue(v), z.string().trim().min(3, 'subtask.title must name the subtask in a few words.').max(140)),
|
|
50
|
+
goal: z.preprocess((v) => proseOfValue(v), z.string().trim().min(15, 'subtask.goal must say what the worker is to find out or do, in a sentence or more.')),
|
|
51
|
+
context: prose.default(''),
|
|
52
|
+
steps: proseList.default([]),
|
|
53
|
+
report: z.preprocess((v) => proseOfValue(v), z.string().trim().min(10, 'subtask.report must say what the worker reports back to you, and in which shape.')),
|
|
54
|
+
doneWhen: prose.default(''),
|
|
55
|
+
readOnly: z.boolean().default(false),
|
|
56
|
+
freshWorker: z.boolean().default(false),
|
|
57
|
+
});
|
|
58
|
+
export const LeadReplySchema = z
|
|
59
|
+
.object({
|
|
60
|
+
/**
|
|
61
|
+
* What the lead does next.
|
|
62
|
+
*
|
|
63
|
+
* `delegate` — give the worker this subtask (`subtask`). `plan` — the plan of the whole assignment (`plan`), for the
|
|
64
|
+
* operator to approve when they approve plans. `ask` — a question only the operator can answer (`question`).
|
|
65
|
+
* `done` — the result, in the form the assignment asked for (`answer`). `blocked` — it cannot be taken further
|
|
66
|
+
* without the operator (`summary`, `needed`).
|
|
67
|
+
*/
|
|
68
|
+
status: z.enum(['delegate', 'plan', 'ask', 'done', 'blocked']),
|
|
69
|
+
understanding: prose,
|
|
70
|
+
notes: prose,
|
|
71
|
+
plan: PlanSchema.optional(),
|
|
72
|
+
subtask: SubtaskSchema.optional(),
|
|
73
|
+
question: prose,
|
|
74
|
+
why: prose,
|
|
75
|
+
options: proseList.default([]),
|
|
76
|
+
answer: prose,
|
|
77
|
+
evidence: proseList.default([]),
|
|
78
|
+
summary: prose,
|
|
79
|
+
needed: prose,
|
|
80
|
+
})
|
|
81
|
+
.refine((r) => r.status !== 'delegate' || !!r.subtask, {
|
|
82
|
+
message: 'status "delegate" requires a "subtask": {"title", "goal", "context", "steps", "report", "doneWhen", "readOnly", "freshWorker"}.',
|
|
83
|
+
})
|
|
84
|
+
.refine((r) => r.status !== 'plan' || !!r.plan, {
|
|
85
|
+
message: 'status "plan" requires a "plan": {"existing", "approach", "steps": [the stages], "files", "verification", "risks"}.',
|
|
86
|
+
})
|
|
87
|
+
.refine((r) => r.status !== 'ask' || (r.question ?? '').trim().length >= 10, {
|
|
88
|
+
message: 'status "ask" requires a "question" for the operator: what only a person can decide, said in full.',
|
|
89
|
+
})
|
|
90
|
+
.refine((r) => r.status !== 'done' || (r.answer ?? '').trim().length >= MIN_SUMMARY_CHARS, {
|
|
91
|
+
message: 'status "done" requires an "answer": the result, in the form the assignment asked for, in full.',
|
|
92
|
+
})
|
|
93
|
+
.refine((r) => r.status !== 'blocked' || (r.summary ?? '').trim().length >= MIN_SUMMARY_CHARS, {
|
|
94
|
+
message: 'status "blocked" requires a "summary": what was done and found, with its evidence, so the work can be picked up.',
|
|
95
|
+
})
|
|
96
|
+
.refine((r) => r.status !== 'blocked' || (r.needed ?? '').trim().length > 0, {
|
|
97
|
+
message: 'status "blocked" requires "needed": what would let the work go on.',
|
|
98
|
+
});
|
|
99
|
+
/** The lead's reply, found, validated and cleaned of citation markers. */
|
|
100
|
+
export function parseLeadReply(markdown) {
|
|
101
|
+
const candidates = findJsonCandidates(markdown);
|
|
102
|
+
if (candidates.length === 0) {
|
|
103
|
+
return { ok: false, reason: 'no-json-block', detail: 'The reply contained no fenced ```json block and no JSON object at all.' };
|
|
104
|
+
}
|
|
105
|
+
const errors = [];
|
|
106
|
+
const paths = new Set();
|
|
107
|
+
for (const raw of candidates) {
|
|
108
|
+
for (const text of [raw, stripLineNumbers(raw)]) {
|
|
109
|
+
let value;
|
|
110
|
+
try {
|
|
111
|
+
value = JSON.parse(text);
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
errors.push(`JSON.parse failed: ${e.message}`);
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
const result = LeadReplySchema.safeParse(value);
|
|
118
|
+
if (!result.success) {
|
|
119
|
+
errors.push(result.error.issues.map((i) => `${i.path.join('.') || '(root)'}: ${i.message}`).join('; '));
|
|
120
|
+
for (const i of result.error.issues)
|
|
121
|
+
paths.add(i.path.join('.') || '(root)');
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
const r = result.data;
|
|
125
|
+
const clean = (s) => stripCitations(s)?.trim() || undefined;
|
|
126
|
+
return {
|
|
127
|
+
ok: true,
|
|
128
|
+
reply: { ...r, understanding: clean(r.understanding), notes: clean(r.notes), answer: clean(r.answer), summary: clean(r.summary), question: clean(r.question) },
|
|
129
|
+
json: text.trim(),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return { ok: false, reason: 'invalid-json', detail: errors.slice(0, 4).join(' | '), ...(paths.size > 0 ? { paths: [...paths] } : {}) };
|
|
134
|
+
}
|
|
135
|
+
const LEAD_EXAMPLE = [
|
|
136
|
+
'```json',
|
|
137
|
+
'{"status": "delegate", "notes": "what you decide and why", "subtask": {"title": "Run the tests", "goal": "Find out which tests fail now.", "context": "Change nothing.", "steps": [], "report": "The totals, and for each failing test its name and its error, quoted.", "doneWhen": "The suite ran once.", "readOnly": true, "freshWorker": false}}',
|
|
138
|
+
'```',
|
|
139
|
+
'or {"status": "plan", "plan": {"existing": "…", "approach": "…", "steps": ["…"], "files": [], "verification": "…"}}',
|
|
140
|
+
'or {"status": "ask", "question": "…", "why": "…", "options": ["…", "…"]}',
|
|
141
|
+
'or {"status": "done", "answer": "the result, in the form asked for", "evidence": ["…"]}',
|
|
142
|
+
'or {"status": "blocked", "summary": "what was done and found", "needed": "what would let it go on"}',
|
|
143
|
+
].join('\n');
|
|
144
|
+
/** The message that asks the lead for the same answer again, in the format. */
|
|
145
|
+
export function leadFormatErrorMessage(fail, attempt, maxAttempts) {
|
|
146
|
+
return [
|
|
147
|
+
`Your last reply did not match the lead's format (format retry ${attempt} of ${maxAttempts}).`,
|
|
148
|
+
fail.reason === 'no-json-block' ? 'There was no fenced json code block in it.' : `The json block did not validate: ${fail.detail}`,
|
|
149
|
+
'Only the format is wrong: nothing from that reply was acted on. Send the same answer again, reformatted, as exactly one fenced code block tagged json. For example:',
|
|
150
|
+
LEAD_EXAMPLE,
|
|
151
|
+
].join('\n');
|
|
152
|
+
}
|
|
153
|
+
/** A first reply without the assignment restated. */
|
|
154
|
+
export const UNDERSTANDING_FIRST = 'Before anything else, restate the assignment in "understanding": the goal, the result to deliver and its exact form ' +
|
|
155
|
+
'(every field asked for), the constraints, and how you will know it is done. Send your reply again with it; nothing ' +
|
|
156
|
+
'from the last one was acted on.';
|
|
@@ -31,7 +31,7 @@ export function stripLineNumbers(body) {
|
|
|
31
31
|
return body;
|
|
32
32
|
return lines.filter((l) => !/^\s*\d+\s*$/.test(l)).join('\n');
|
|
33
33
|
}
|
|
34
|
-
function findJsonCandidates(markdown) {
|
|
34
|
+
export function findJsonCandidates(markdown) {
|
|
35
35
|
const blocks = extractFencedBlocks(markdown);
|
|
36
36
|
const out = [];
|
|
37
37
|
for (const b of blocks) {
|
|
@@ -31,7 +31,121 @@ const WORDS = {
|
|
|
31
31
|
ok: 'ОК',
|
|
32
32
|
quote: (s) => `„${s}“`,
|
|
33
33
|
},
|
|
34
|
+
de: {
|
|
35
|
+
done: 'Die Aufgabe ist erledigt',
|
|
36
|
+
stopped: 'Die Aufgabe wurde angehalten',
|
|
37
|
+
failed: 'Die Aufgabe wurde nicht abgeschlossen',
|
|
38
|
+
notStarted: 'Die Aufgabe konnte nicht beginnen',
|
|
39
|
+
doneLine: 'Copilot hat sie abgeschlossen. Was getan wurde, steht im Chat von copilot-operator.',
|
|
40
|
+
stoppedLine: 'Sie wurde angehalten; es wird nichts mehr gesendet.',
|
|
41
|
+
blockedLine: 'Copilot konnte sie nicht abschließen',
|
|
42
|
+
failedLine: 'Sie endete mit einem Fehler',
|
|
43
|
+
limitLine: 'Sie hielt an einer Grenze aus den Einstellungen an',
|
|
44
|
+
notStartedLine: 'Es wurde nichts gesendet',
|
|
45
|
+
statusOf: { done: 'erledigt', aborted: 'angehalten', blocked: 'blockiert', failed: 'fehlgeschlagen', 'limit-reached': 'an einer Grenze', queued: 'nicht begonnen' },
|
|
46
|
+
keep: 'Dieses Fenster bleibt für Ihre nächste Nachricht geöffnet. Sie können es jederzeit schließen.',
|
|
47
|
+
ok: 'OK',
|
|
48
|
+
quote: (s) => `„${s}“`,
|
|
49
|
+
},
|
|
50
|
+
es: {
|
|
51
|
+
done: 'La tarea se ha completado',
|
|
52
|
+
stopped: 'La tarea se ha detenido',
|
|
53
|
+
failed: 'La tarea terminó sin completarse',
|
|
54
|
+
notStarted: 'La tarea no pudo empezar',
|
|
55
|
+
doneLine: 'Copilot la ha terminado. Lo que se hizo está en el chat de copilot-operator.',
|
|
56
|
+
stoppedLine: 'Se ha detenido; no se envía nada más.',
|
|
57
|
+
blockedLine: 'Copilot no pudo terminarla',
|
|
58
|
+
failedLine: 'Terminó con un error',
|
|
59
|
+
limitLine: 'Se detuvo en un límite de la configuración',
|
|
60
|
+
notStartedLine: 'No se envió nada',
|
|
61
|
+
statusOf: { done: 'completada', aborted: 'detenida', blocked: 'bloqueada', failed: 'con error', 'limit-reached': 'en un límite', queued: 'sin empezar' },
|
|
62
|
+
keep: 'Esta ventana sigue abierta para su próximo mensaje. Puede cerrarla en cualquier momento.',
|
|
63
|
+
ok: 'Aceptar',
|
|
64
|
+
quote: (s) => `«${s}»`,
|
|
65
|
+
},
|
|
66
|
+
fr: {
|
|
67
|
+
done: 'La tâche est terminée',
|
|
68
|
+
stopped: 'La tâche a été arrêtée',
|
|
69
|
+
failed: 'La tâche s’est terminée inachevée',
|
|
70
|
+
notStarted: 'La tâche n’a pas pu démarrer',
|
|
71
|
+
doneLine: 'Copilot l’a terminée. Ce qui a été fait se trouve dans le chat de copilot-operator.',
|
|
72
|
+
stoppedLine: 'Elle a été arrêtée ; plus rien n’est envoyé.',
|
|
73
|
+
blockedLine: 'Copilot n’a pas pu la terminer',
|
|
74
|
+
failedLine: 'Elle s’est terminée par une erreur',
|
|
75
|
+
limitLine: 'Elle s’est arrêtée à une limite des paramètres',
|
|
76
|
+
notStartedLine: 'Rien n’a été envoyé',
|
|
77
|
+
statusOf: { done: 'terminée', aborted: 'arrêtée', blocked: 'bloquée', failed: 'en erreur', 'limit-reached': 'à une limite', queued: 'non démarrée' },
|
|
78
|
+
keep: 'Cette fenêtre reste ouverte pour votre prochain message. Vous pouvez la fermer à tout moment.',
|
|
79
|
+
ok: 'OK',
|
|
80
|
+
quote: (s) => `« ${s} »`,
|
|
81
|
+
},
|
|
82
|
+
pt: {
|
|
83
|
+
done: 'A tarefa está concluída',
|
|
84
|
+
stopped: 'A tarefa foi parada',
|
|
85
|
+
failed: 'A tarefa terminou por concluir',
|
|
86
|
+
notStarted: 'A tarefa não pôde começar',
|
|
87
|
+
doneLine: 'O Copilot concluiu-a. O que foi feito está no chat do copilot-operator.',
|
|
88
|
+
stoppedLine: 'Foi parada; não é enviado mais nada.',
|
|
89
|
+
blockedLine: 'O Copilot não conseguiu concluí-la',
|
|
90
|
+
failedLine: 'Terminou com um erro',
|
|
91
|
+
limitLine: 'Parou num limite das definições',
|
|
92
|
+
notStartedLine: 'Nada foi enviado',
|
|
93
|
+
statusOf: { done: 'concluída', aborted: 'parada', blocked: 'bloqueada', failed: 'com erro', 'limit-reached': 'num limite', queued: 'não iniciada' },
|
|
94
|
+
keep: 'Esta janela fica aberta para a sua próxima mensagem. Pode fechá-la a qualquer momento.',
|
|
95
|
+
ok: 'OK',
|
|
96
|
+
quote: (s) => `«${s}»`,
|
|
97
|
+
},
|
|
98
|
+
ja: {
|
|
99
|
+
done: 'タスクが完了しました',
|
|
100
|
+
stopped: 'タスクを停止しました',
|
|
101
|
+
failed: 'タスクは未完了のまま終了しました',
|
|
102
|
+
notStarted: 'タスクを開始できませんでした',
|
|
103
|
+
doneLine: 'Copilot がタスクを完了しました。行われた内容は copilot-operator のチャットにあります。',
|
|
104
|
+
stoppedLine: '停止しました。これ以上は何も送信されません。',
|
|
105
|
+
blockedLine: 'Copilot はタスクを完了できませんでした',
|
|
106
|
+
failedLine: 'エラーで終了しました',
|
|
107
|
+
limitLine: '設定の上限で停止しました',
|
|
108
|
+
notStartedLine: '何も送信されませんでした',
|
|
109
|
+
statusOf: { done: '完了', aborted: '停止', blocked: 'ブロック', failed: 'エラー', 'limit-reached': '上限で停止', queued: '未開始' },
|
|
110
|
+
keep: 'このウィンドウは次のメッセージのために開いたままです。いつでも閉じることができます。',
|
|
111
|
+
ok: 'OK',
|
|
112
|
+
quote: (s) => `「${s}」`,
|
|
113
|
+
},
|
|
114
|
+
ko: {
|
|
115
|
+
done: '작업이 완료되었습니다',
|
|
116
|
+
stopped: '작업이 중지되었습니다',
|
|
117
|
+
failed: '작업이 완료되지 않은 채 끝났습니다',
|
|
118
|
+
notStarted: '작업을 시작할 수 없었습니다',
|
|
119
|
+
doneLine: 'Copilot이 작업을 마쳤습니다. 수행된 내용은 copilot-operator 채팅에 있습니다.',
|
|
120
|
+
stoppedLine: '중지되었습니다. 더 이상 아무것도 보내지 않습니다.',
|
|
121
|
+
blockedLine: 'Copilot이 작업을 마치지 못했습니다',
|
|
122
|
+
failedLine: '오류로 끝났습니다',
|
|
123
|
+
limitLine: '설정의 한도에서 멈췄습니다',
|
|
124
|
+
notStartedLine: '아무것도 보내지 않았습니다',
|
|
125
|
+
statusOf: { done: '완료', aborted: '중지됨', blocked: '차단됨', failed: '오류', 'limit-reached': '한도 도달', queued: '시작 안 됨' },
|
|
126
|
+
keep: '이 창은 다음 메시지를 위해 열려 있습니다. 언제든지 닫을 수 있습니다.',
|
|
127
|
+
ok: '확인',
|
|
128
|
+
quote: (s) => `‘${s}’`,
|
|
129
|
+
},
|
|
130
|
+
ar: {
|
|
131
|
+
done: 'اكتملت المهمة',
|
|
132
|
+
stopped: 'تم إيقاف المهمة',
|
|
133
|
+
failed: 'انتهت المهمة دون إكمالها',
|
|
134
|
+
notStarted: 'تعذّر بدء المهمة',
|
|
135
|
+
doneLine: 'أنهى Copilot المهمة. ما تم إنجازه موجود في دردشة copilot-operator.',
|
|
136
|
+
stoppedLine: 'تم إيقافها؛ لن يُرسل أي شيء آخر.',
|
|
137
|
+
blockedLine: 'لم يتمكن Copilot من إنهائها',
|
|
138
|
+
failedLine: 'انتهت بخطأ',
|
|
139
|
+
limitLine: 'توقفت عند حد من الإعدادات',
|
|
140
|
+
notStartedLine: 'لم يُرسل أي شيء',
|
|
141
|
+
statusOf: { done: 'مكتملة', aborted: 'متوقفة', blocked: 'محظورة', failed: 'بخطأ', 'limit-reached': 'عند حد', queued: 'لم تبدأ' },
|
|
142
|
+
keep: 'تبقى هذه النافذة مفتوحة لرسالتك التالية. يمكنك إغلاقها في أي وقت.',
|
|
143
|
+
ok: 'موافق',
|
|
144
|
+
quote: (s) => `«${s}»`,
|
|
145
|
+
},
|
|
34
146
|
};
|
|
147
|
+
/** The languages written right to left: the card is drawn that way for them. */
|
|
148
|
+
const RIGHT_TO_LEFT = new Set(['ar']);
|
|
35
149
|
/** A reason as a line: its first sentence or so, since the whole of it is in the chat. */
|
|
36
150
|
function brief(text, max = 220) {
|
|
37
151
|
const one = (text ?? '').replace(/\s+/g, ' ').trim();
|
|
@@ -72,5 +186,6 @@ export function chatNotice(lang, tasks, error) {
|
|
|
72
186
|
...(subject ? { subject } : {}),
|
|
73
187
|
lines,
|
|
74
188
|
button: w.ok,
|
|
189
|
+
...(RIGHT_TO_LEFT.has(lang) ? { dir: 'rtl' } : {}),
|
|
75
190
|
};
|
|
76
191
|
}
|
|
@@ -63,6 +63,25 @@ export async function takeAfter(dir, id, before) {
|
|
|
63
63
|
const r = await photograph(dir, `refs/copilot-operator/after/${id}`, `after message ${id}`, before.commit);
|
|
64
64
|
return 'problem' in r ? r : { commit: r.commit };
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* The files a message has changed so far: the folder photographed now, against its checkpoint (for the review of a
|
|
68
|
+
* chat message, 2026-10-20). The photograph is let go of afterwards; the one taken when the message ends is kept.
|
|
69
|
+
*/
|
|
70
|
+
export async function changedSince(dir, before, id) {
|
|
71
|
+
const ref = `refs/copilot-operator/review/${id}`;
|
|
72
|
+
const r = await photograph(dir, ref, `the folder during the review of ${id}`, before.commit);
|
|
73
|
+
if ('problem' in r)
|
|
74
|
+
throw new Error(r.problem);
|
|
75
|
+
try {
|
|
76
|
+
const diff = await git(dir, ['diff', '--name-only', '--no-renames', before.commit, r.commit]);
|
|
77
|
+
if (!diff.ok)
|
|
78
|
+
throw new Error(diff.stderr);
|
|
79
|
+
return diff.stdout.split('\n').map((l) => l.trim()).filter(Boolean);
|
|
80
|
+
}
|
|
81
|
+
finally {
|
|
82
|
+
await git(dir, ['update-ref', '-d', ref]).catch(() => undefined);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
66
85
|
/**
|
|
67
86
|
* Puts the folder back as `cp` photographed it: its branch checked out at its commit, its working tree with the
|
|
68
87
|
* same uncommitted changes. The folder as it is now is photographed first, under `refs/copilot-operator/safety/`.
|
|
@@ -65,7 +65,7 @@ function level2Block(level2) {
|
|
|
65
65
|
* failed, that the files are as its work left them, and — after the bot stopped under it — which of
|
|
66
66
|
* the steps it had just asked for actually ran.
|
|
67
67
|
*/
|
|
68
|
-
function whyItStopped(c) {
|
|
68
|
+
export function whyItStopped(c) {
|
|
69
69
|
if (c.how === 'failed')
|
|
70
70
|
return describeEnding(c.fromAttempt, c.ended, c.stoppedBecause);
|
|
71
71
|
if (c.how === 'interrupted') {
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
* at once cannot fail each other or undo each other's change.
|
|
9
9
|
*/
|
|
10
10
|
import { mkdir, readFile, writeFile, readdir, rename, rm } from 'node:fs/promises';
|
|
11
|
-
import { existsSync } from 'node:fs';
|
|
12
11
|
import { randomUUID } from 'node:crypto';
|
|
13
|
-
import { join, resolve } from 'node:path';
|
|
12
|
+
import { dirname, join, resolve } from 'node:path';
|
|
14
13
|
import { endingOf, isContinuable, MAX_INSTRUCTION_CHARS, newId, tidyVcsPlan } from './model.js';
|
|
15
14
|
/** A task the runner is inside of. It cannot be edited, deleted, or left behind at startup. */
|
|
16
15
|
const ACTIVE_STATUSES = ['running', 'waiting-approval'];
|
|
@@ -113,6 +112,9 @@ export const TASK_FIELD_ON_RERUN = {
|
|
|
113
112
|
notes: 'kept',
|
|
114
113
|
// The folder before the message first ran: the point "go back" returns to, whatever attempt came after.
|
|
115
114
|
checkpoint: 'kept',
|
|
115
|
+
// The lead's rounds belong to the attempt that made them (two chats, 2026-10-20); which lead a subtask serves, to the task.
|
|
116
|
+
lead: 'archived',
|
|
117
|
+
fromLead: 'kept',
|
|
116
118
|
interruption: 'cleared',
|
|
117
119
|
finalReply: 'cleared',
|
|
118
120
|
firstMessage: 'cleared',
|
|
@@ -191,34 +193,28 @@ export class SessionStore {
|
|
|
191
193
|
defaultLevel1Path;
|
|
192
194
|
dir;
|
|
193
195
|
sessionsDir;
|
|
194
|
-
presetsDir;
|
|
195
|
-
level1Path;
|
|
196
196
|
modelsPath;
|
|
197
197
|
constructor(dataDir, defaultLevel1Path) {
|
|
198
198
|
this.defaultLevel1Path = defaultLevel1Path;
|
|
199
199
|
this.dir = resolve(dataDir);
|
|
200
200
|
this.sessionsDir = join(this.dir, 'sessions');
|
|
201
|
-
this.presetsDir = join(this.dir, 'level2');
|
|
202
|
-
this.level1Path = join(this.dir, 'level1.md');
|
|
203
201
|
this.modelsPath = join(this.dir, 'models.json');
|
|
204
202
|
}
|
|
205
203
|
async init() {
|
|
206
204
|
await mkdir(this.sessionsDir, { recursive: true });
|
|
207
|
-
await mkdir(this.presetsDir, { recursive: true });
|
|
208
205
|
}
|
|
209
206
|
// --- level 1 --------------------------------------------------------------------------
|
|
210
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* The contract in force: the one that ships with the bot, always (operator, 2026-10-20: "it no longer needs changing;
|
|
209
|
+
* it changes at system level, when the bot is updated"). An edited copy an earlier version kept in the data folder
|
|
210
|
+
* (`level1.md` there) is not read any more, and the page that edited it is gone.
|
|
211
|
+
*/
|
|
211
212
|
async getLevel1() {
|
|
212
|
-
|
|
213
|
-
return { content: await readFile(this.level1Path, 'utf8'), customised: true };
|
|
214
|
-
}
|
|
215
|
-
return { content: await readFile(this.defaultLevel1Path, 'utf8'), customised: false };
|
|
213
|
+
return { content: await readFile(this.defaultLevel1Path, 'utf8') };
|
|
216
214
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
async resetLevel1() {
|
|
221
|
-
await removeFile(this.level1Path);
|
|
215
|
+
/** The lead's contract (two chats, 2026-10-20): `lead1.md`, beside the base prompt it ships with. */
|
|
216
|
+
async getLead1() {
|
|
217
|
+
return { content: await readFile(join(dirname(this.defaultLevel1Path), 'lead1.md'), 'utf8') };
|
|
222
218
|
}
|
|
223
219
|
// --- the model catalogue ----------------------------------------------------------------
|
|
224
220
|
/** What the chat's picker offered when it was last read, or null if it never was. */
|
|
@@ -233,38 +229,6 @@ export class SessionStore {
|
|
|
233
229
|
async saveModels(catalogue) {
|
|
234
230
|
await writeFileAtomically(this.modelsPath, JSON.stringify(catalogue, null, 2));
|
|
235
231
|
}
|
|
236
|
-
// --- level 2 presets ------------------------------------------------------------------
|
|
237
|
-
async listPresets() {
|
|
238
|
-
const names = (await readdir(this.presetsDir).catch(() => []))
|
|
239
|
-
.filter((n) => n.endsWith('.md'))
|
|
240
|
-
.sort();
|
|
241
|
-
const out = [];
|
|
242
|
-
for (const n of names) {
|
|
243
|
-
const path = join(this.presetsDir, n);
|
|
244
|
-
const content = await readFile(path, 'utf8');
|
|
245
|
-
const { mtime } = await import('node:fs').then((fs) => fs.statSync(path));
|
|
246
|
-
out.push({ name: n.slice(0, -3), content, updatedAt: mtime.toISOString() });
|
|
247
|
-
}
|
|
248
|
-
return out;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Saves a preset under the name it can later be deleted by.
|
|
252
|
-
*
|
|
253
|
-
* Stripping the characters a file name cannot hold is not enough on its own: a leading dot and
|
|
254
|
-
* ".." survive it, and `safePresetName` refuses both, so ".env" and "a..b" were saved and then
|
|
255
|
-
* could never be deleted. The name goes through the same rule as the delete, so a name that could
|
|
256
|
-
* not be removed is refused here instead.
|
|
257
|
-
*/
|
|
258
|
-
async savePreset(name, content) {
|
|
259
|
-
const safe = name.replace(/[^\p{L}\p{N}._ -]/gu, '').trim();
|
|
260
|
-
if (!safe)
|
|
261
|
-
throw new Error('Preset name is empty after removing unsafe characters.');
|
|
262
|
-
await writeFileAtomically(join(this.presetsDir, `${safePresetName(safe)}.md`), content);
|
|
263
|
-
return { name: safe, content, updatedAt: new Date().toISOString() };
|
|
264
|
-
}
|
|
265
|
-
async deletePreset(name) {
|
|
266
|
-
await removeFile(await namedFile(this.presetsDir, name));
|
|
267
|
-
}
|
|
268
232
|
// --- sessions -------------------------------------------------------------------------
|
|
269
233
|
/**
|
|
270
234
|
* Every session, newest first — by when it was made, not by what it is called.
|
|
@@ -627,6 +591,8 @@ export class SessionStore {
|
|
|
627
591
|
vcs: t.vcs,
|
|
628
592
|
plan: t.plan,
|
|
629
593
|
accepted: t.accepted,
|
|
594
|
+
// Two chats: the lead's rounds and subtasks of this attempt (the next one counts its own from nothing).
|
|
595
|
+
lead: t.lead,
|
|
630
596
|
},
|
|
631
597
|
];
|
|
632
598
|
// An edit is applied only after the old attempt has been put beyond its reach.
|
|
@@ -661,6 +627,7 @@ export class SessionStore {
|
|
|
661
627
|
t.handoff = undefined;
|
|
662
628
|
t.plan = undefined;
|
|
663
629
|
t.accepted = undefined;
|
|
630
|
+
t.lead = undefined;
|
|
664
631
|
t.scopeReverted = undefined;
|
|
665
632
|
t.treeChanged = undefined;
|
|
666
633
|
t.inputsRestored = undefined;
|
|
@@ -842,25 +809,11 @@ async function replaceFile(path, content) {
|
|
|
842
809
|
}
|
|
843
810
|
}
|
|
844
811
|
}
|
|
845
|
-
/**
|
|
846
|
-
* The file a preset or persona of this name is kept in, for removing it.
|
|
847
|
-
*
|
|
848
|
-
* A name `safePresetName` accepts, or one that is already a file in the folder. The save did not
|
|
849
|
-
* always apply that rule, so a preset called ".env" or "a..b" may be on disk from before; without
|
|
850
|
-
* the second way it is listed and can never be deleted. A name matched against the folder's own
|
|
851
|
-
* listing is a file name, which cannot hold a separator, so it cannot reach outside the folder.
|
|
852
|
-
*/
|
|
853
|
-
async function namedFile(dir, name) {
|
|
854
|
-
const onDisk = await readdir(dir).catch(() => []);
|
|
855
|
-
if (onDisk.includes(`${name}.md`))
|
|
856
|
-
return join(dir, `${name}.md`);
|
|
857
|
-
return join(dir, `${safePresetName(name)}.md`);
|
|
858
|
-
}
|
|
859
812
|
/**
|
|
860
813
|
* A session id as it may appear in a file name, or an error.
|
|
861
814
|
*
|
|
862
|
-
* Ids
|
|
863
|
-
* /presets/:name` joined them straight into a path, and Express decodes `%5C` and `%2F`, so
|
|
815
|
+
* Ids arrive from URL parameters. Found on 2026-09-27: `DELETE /sessions/:id` and `DELETE
|
|
816
|
+
* /presets/:name` (the presets went on 2026-10-20) joined them straight into a path, and Express decodes `%5C` and `%2F`, so
|
|
864
817
|
* `..\..\<anything>` reached a `.json` or `.md` file anywhere the process could write. The ids this
|
|
865
818
|
* store makes are letters, digits, `-`, `_` and `.` (not leading); anything else is not one of them.
|
|
866
819
|
*/
|
|
@@ -870,10 +823,3 @@ export function safeName(value) {
|
|
|
870
823
|
}
|
|
871
824
|
return value;
|
|
872
825
|
}
|
|
873
|
-
/** A preset name as `savePreset` allows it — letters in any script, digits, space, `.`, `_`, `-` — never a path. */
|
|
874
|
-
export function safePresetName(value) {
|
|
875
|
-
if (!/^[\p{L}\p{N}_ -][\p{L}\p{N}._ -]{0,199}$/u.test(value) || value.includes('..')) {
|
|
876
|
-
throw new Error(`Not a valid preset name: ${JSON.stringify(value).slice(0, 80)}`);
|
|
877
|
-
}
|
|
878
|
-
return value;
|
|
879
|
-
}
|
|
@@ -371,6 +371,8 @@ export class CopilotTransport {
|
|
|
371
371
|
card.setAttribute('role', 'alertdialog');
|
|
372
372
|
card.setAttribute('aria-modal', 'true');
|
|
373
373
|
card.setAttribute('aria-labelledby', 'title');
|
|
374
|
+
if (n.dir)
|
|
375
|
+
card.setAttribute('dir', n.dir);
|
|
374
376
|
const h = document.createElement('h2');
|
|
375
377
|
h.id = 'title';
|
|
376
378
|
const mark = document.createElement('span');
|
package/dist/web/404.html
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
|
|
15
|
-
d.dataset.night = a.nightLight ? 'on' : 'off';
|
|
16
|
-
} catch (e) {}
|
|
17
|
-
})();
|
|
18
|
-
</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M3 4h18v16H3zM9 4v16M3 15h6" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Workbench</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/level1"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M6 3h9l5 5v13H6zM14 3v6h6M9 13h7M9 17h7" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 1 prompt</span></a><a href="/presets"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M5 4h14v4H5zM5 10h14v4H5zM5 16h9v4H5z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Level 2 presets</span></a><a href="/appearance"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 0 0 0 18c1.5 0 2-1 2-2s-1-1.5-1-2.5S14 15 15.5 15H17a4 4 0 0 0 4-4 8 8 0 0 0-9-8zM8 9a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 3a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path></svg><span>Appearance</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><select aria-label="Language" style="width:auto"><option value="en" selected="">English</option><option value="bg">Български</option></select></nav></header><main id="main"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-0f31b926d9a9c5a4.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8078,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"AppearanceProvider\"]\n3:I[867,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"867\",\"static/chunks/867-869900ec999e6345.js\",\"643\",\"static/chunks/643-e85d221d57900ed7.js\",\"190\",\"static/chunks/190-70555f20dd0da19b.js\",\"177\",\"static/chunks/app/layout-b4fc21e26e1bad95.js\"],\"ScrollJump\"]\na:I[433,[],\"OutletBoundary\"]\nc:I[9884,[],\"AsyncMetadataOutlet\"]\ne:I[433,[],\"ViewportBoundary\"]\n10:I[433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/8b14cb3cf0051138.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"eqTUTH_SJtBgNgq8Zzy3n\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/8b14cb3cf0051138.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"\\n(function () {\\n try {\\n var d = document.documentElement;\\n var raw = localStorage.getItem('cop.appearance');\\n var a = raw ? JSON.parse(raw) : {};\\n if (!a || typeof a !== 'object') a = {};\\n // \\\"system\\\", the default: whatever the machine is set to, light or dark (2026-10-20).\\n d.dataset.theme = a.theme === 'dark' || a.theme === 'light' ? a.theme : window.matchMedia \u0026\u0026 window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\\n d.dataset.textsize = [\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize) \u003e= 0 ? a.textSize : 'normal';\\n d.dataset.contrast = a.highContrast ? 'high' : 'normal';\\n d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';\\n d.dataset.links = a.underlineLinks ? 'underline' : 'plain';\\n d.dataset.focus = a.strongFocus ? 'strong' : 'normal';\\n d.dataset.night = a.nightLight ? 'on' : 'off';\\n } catch (e) {}\\n})();\\n\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"d:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><!--_1zhoDsMOPAH2xW702E5A--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal" data-night="off"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/3bea264adc472bc8.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-77147e31d2125631.js"/><script src="/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js" async=""></script><script src="/_next/static/chunks/131-bae98f790a541679.js" async=""></script><script src="/_next/static/chunks/main-app-e3a5f713ba31557e.js" async=""></script><script src="/_next/static/chunks/134-ddd50a7fbb536ec8.js" async=""></script><script src="/_next/static/chunks/921-dc5538cd779c6432.js" async=""></script><script src="/_next/static/chunks/808-bc7d7eac6d823291.js" async=""></script><script src="/_next/static/chunks/app/layout-8f99a164d76897a0.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>(function(){try{
|
|
2
|
+
var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
|
|
3
|
+
if(!a||typeof a!=='object')a={};
|
|
4
|
+
d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
|
|
5
|
+
d.dataset.textsize=["small","normal","large","huge","giant"].indexOf(a.textSize)>=0?a.textSize:'normal';
|
|
6
|
+
d.dataset.contrast=a.highContrast?'high':'normal';
|
|
7
|
+
d.dataset.motion=a.reduceMotion?'reduced':'normal';
|
|
8
|
+
d.dataset.links=a.underlineLinks?'underline':'plain';
|
|
9
|
+
d.dataset.focus=a.strongFocus?'strong':'normal';
|
|
10
|
+
d.dataset.night=a.nightLight?'on':'off';
|
|
11
|
+
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
12
|
+
if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
|
|
13
|
+
}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></nav></header><main id="main"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-77147e31d2125631.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[8078,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"LanguageProvider\"]\n4:I[1035,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"DialogHost\"]\n5:I[8214,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"SkipLink\"]\n6:I[8300,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"134\",\"static/chunks/134-ddd50a7fbb536ec8.js\",\"921\",\"static/chunks/921-dc5538cd779c6432.js\",\"808\",\"static/chunks/808-bc7d7eac6d823291.js\",\"177\",\"static/chunks/app/layout-8f99a164d76897a0.js\"],\"ScrollJump\"]\na:I[433,[],\"OutletBoundary\"]\nc:I[9884,[],\"AsyncMetadataOutlet\"]\ne:I[433,[],\"ViewportBoundary\"]\n10:I[433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/3bea264adc472bc8.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"_1zhoDsMOPAH2xW702E5A\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/3bea264adc472bc8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"d:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(e,r,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:4,errorRate:1e-4,numBits:77,numHashes:14,bitArray:[1,0,0,r,r,1,e,r,r,r,r,e,r,e,r,r,e,e,e,r,e,r,e,e,e,e,r,r,r,e,r,e,e,r,e,r,r,r,e,r,e,r,e,r,e,e,r,e,r,r,e,r,e,r,e,r,e,e,r,e,r,e,e,r,e,r,e,e,e,e,e,r,r,e,e,e,e]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:r,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-abbab53f25ea29b0.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|