copilot-operator 0.1.56 → 0.1.57

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.
Files changed (47) hide show
  1. package/README.md +7 -0
  2. package/dist/src/api/operator.service.js +28 -1
  3. package/dist/src/orchestrator/leadRunner.js +14 -2
  4. package/dist/src/orchestrator/review.js +1 -0
  5. package/dist/src/orchestrator/taskRunner.js +52 -6
  6. package/dist/src/plan/systemGuide.js +16 -0
  7. package/dist/src/session/store.js +4 -0
  8. package/dist/web/404.html +2 -2
  9. package/dist/web/_next/static/chunks/1077.7e88c156c16718c0.js +1 -0
  10. package/dist/web/_next/static/chunks/1548.a7127a9edf3f266b.js +1 -0
  11. package/dist/web/_next/static/chunks/2163.60f52655ceb57752.js +1 -0
  12. package/dist/web/_next/static/chunks/4512-8bcb4b34f41115b4.js +1 -0
  13. package/dist/web/_next/static/chunks/714.bee36b765509e92c.js +1 -0
  14. package/dist/web/_next/static/chunks/7220.c9c5c5f25baafec7.js +1 -0
  15. package/dist/web/_next/static/chunks/7921-fb0045927b0e86a8.js +1 -0
  16. package/dist/web/_next/static/chunks/8584.97613589db58864f.js +1 -0
  17. package/dist/web/_next/static/chunks/9067.f7e111c6aa999784.js +1 -0
  18. package/dist/web/_next/static/chunks/9747.a5828643aaff11c0.js +1 -0
  19. package/dist/web/_next/static/chunks/app/{layout-678acf830096ce90.js → layout-9cd9b0b0587f4882.js} +1 -1
  20. package/dist/web/_next/static/chunks/app/page-8e85b507af649f85.js +1 -0
  21. package/dist/web/_next/static/chunks/{webpack-b26d4d956feb6e65.js → webpack-d103630008e57024.js} +1 -1
  22. package/dist/web/_next/static/css/4bf77b2aec4626c2.css +1 -0
  23. package/dist/web/_next/static/g2MUlOzNxfAGFR7EI9zQv/_buildManifest.js +1 -0
  24. package/dist/web/defaults.html +2 -2
  25. package/dist/web/defaults.txt +10 -9
  26. package/dist/web/icon.svg +4 -0
  27. package/dist/web/index.html +3 -3
  28. package/dist/web/index.txt +11 -10
  29. package/dist/web/settings.html +2 -2
  30. package/dist/web/settings.txt +11 -10
  31. package/dist/web/system.html +2 -2
  32. package/dist/web/system.txt +11 -10
  33. package/package.json +5 -2
  34. package/dist/web/_next/static/L-h3cKqABsuAzPqNkvLAP/_buildManifest.js +0 -1
  35. package/dist/web/_next/static/chunks/1077.a8fcbe8fc90ecb2d.js +0 -1
  36. package/dist/web/_next/static/chunks/1548.3aba99d28ca12a76.js +0 -1
  37. package/dist/web/_next/static/chunks/2163.f028462d8dbc30fe.js +0 -1
  38. package/dist/web/_next/static/chunks/714.70bdf8b4550aa78f.js +0 -1
  39. package/dist/web/_next/static/chunks/7220.807613863ef39947.js +0 -1
  40. package/dist/web/_next/static/chunks/7500-077d236acd9b9c50.js +0 -1
  41. package/dist/web/_next/static/chunks/7921-ddb0291f25a2e486.js +0 -1
  42. package/dist/web/_next/static/chunks/8584.9bf7e755a7c8c432.js +0 -1
  43. package/dist/web/_next/static/chunks/9067.394ff92d9ae542b3.js +0 -1
  44. package/dist/web/_next/static/chunks/9747.80f474bcd4654c6c.js +0 -1
  45. package/dist/web/_next/static/chunks/app/page-be5c3849591d8c11.js +0 -1
  46. package/dist/web/_next/static/css/51bfff1122e9f34d.css +0 -1
  47. /package/dist/web/_next/static/{L-h3cKqABsuAzPqNkvLAP → g2MUlOzNxfAGFR7EI9zQv}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ivan-markov-666/copilot-operator/main/docs/brand/logo-dark.svg">
4
+ <img src="https://raw.githubusercontent.com/ivan-markov-666/copilot-operator/main/docs/brand/logo-light.svg" alt="copilot-operator" width="240">
5
+ </picture>
6
+ </p>
7
+
1
8
  # copilot-operator
2
9
 
3
10
  A Windows bot that runs a task loop with Microsoft 365 Copilot.
@@ -136,6 +136,17 @@ let OperatorService = class OperatorService {
136
136
  /** Starts that did not get as far as a first task, for the page to show and offer as a file. */
137
137
  startFailures = new StartFailures();
138
138
  running = new Map();
139
+ /**
140
+ * Who is at work in each session's message now, as its runner says it (2026-10-22: "show clearly who works"):
141
+ * for `activity`, which every page asks on a timer and answers from memory. Gone when the message ends.
142
+ */
143
+ acting = new Map();
144
+ followsActing = this.bus.subscribe('*', (e) => {
145
+ if (e.type === 'acting' && e.data)
146
+ this.acting.set(e.sessionId, e.data);
147
+ else if (e.type === 'task-finished')
148
+ this.acting.delete(e.sessionId);
149
+ });
139
150
  waiting = new Map();
140
151
  /**
141
152
  * The workers of the two-chat mode, by the session of the lead they work for (2026-10-20). A worker's steps and cards
@@ -803,6 +814,8 @@ let OperatorService = class OperatorService {
803
814
  const startedAt = new Date().toISOString();
804
815
  const hold = new Hold();
805
816
  this.running.set(sessionId, { controller, startedAt, mode, policy, hold });
817
+ // Who was at work in a run of it that ended without saying so is not who is at work in this one.
818
+ this.acting.delete(sessionId);
806
819
  {
807
820
  const asLead = await this.store.getSession(sessionId);
808
821
  if (asLead?.lead?.workerSessionId)
@@ -997,7 +1010,16 @@ let OperatorService = class OperatorService {
997
1010
  * and not idle either: `starting` says so, so "nothing is happening" is not read in that moment.
998
1011
  */
999
1012
  const starting = this.running.size === 0 && this.browser?.kind === 'run';
1000
- return { running: this.running.size > 0, sessions: this.running.size, starting };
1013
+ // Who is at work in the run going now — the lead's session says when its worker is (2026-10-22) — and whether it is held.
1014
+ const [id, run] = [...this.running.entries()][0] ?? [];
1015
+ const acting = id ? this.acting.get(id) : undefined;
1016
+ return {
1017
+ running: this.running.size > 0,
1018
+ sessions: this.running.size,
1019
+ starting,
1020
+ ...(acting ? { acting } : {}),
1021
+ ...(run?.hold?.held ? { paused: true } : {}),
1022
+ };
1001
1023
  }
1002
1024
  /**
1003
1025
  * Runs the queued tasks of several sessions, one session after another.
@@ -1359,6 +1381,7 @@ let OperatorService = class OperatorService {
1359
1381
  stepId: 0,
1360
1382
  description: `${ask.asked ? `Choose "${ask.asked}" in the Copilot window` : 'Choose the model in the Copilot window'}${ask.review ? ' for the review' : ask.role ? ` for the ${ask.role}` : ''}`,
1361
1383
  createdAt: new Date().toISOString(),
1384
+ ...(ask.actor ? { actor: ask.actor } : {}),
1362
1385
  model: { asked: ask.asked, shown: ask.shown, why: ask.why, tries: ask.tries, ...(ask.manual ? { manual: true } : {}), ...(ask.review ? { review: true } : {}), ...(ask.role ? { role: ask.role } : {}) },
1363
1386
  };
1364
1387
  this.waiting.set(approval.id, {
@@ -1387,6 +1410,7 @@ let OperatorService = class OperatorService {
1387
1410
  stepId: 0,
1388
1411
  description: `The lead asks: ${ask.question}`,
1389
1412
  createdAt: new Date().toISOString(),
1413
+ actor: 'lead',
1390
1414
  question: { text: ask.question, ...(ask.why ? { why: ask.why } : {}), options: ask.options },
1391
1415
  };
1392
1416
  this.waiting.set(approval.id, {
@@ -1430,6 +1454,8 @@ let OperatorService = class OperatorService {
1430
1454
  stepId: 0,
1431
1455
  description: `The plan of "${ask.title}" (version ${ask.plan.version})`,
1432
1456
  createdAt: new Date().toISOString(),
1457
+ // The chat that wrote it in plan mode, or the lead's plan of two chats.
1458
+ actor: ask.actor ?? 'plan',
1433
1459
  plan: { title: ask.title, plan: ask.plan },
1434
1460
  };
1435
1461
  this.waiting.set(approval.id, {
@@ -1569,6 +1595,7 @@ let OperatorService = class OperatorService {
1569
1595
  stepId: step.id,
1570
1596
  description: `[${step.shell ?? 'pwsh'}] ${step.cmd}`,
1571
1597
  createdAt: new Date().toISOString(),
1598
+ ...(ctx.actor ? { actor: ctx.actor } : {}),
1572
1599
  ...(held ? { network: held.network } : {}),
1573
1600
  };
1574
1601
  this.waiting.set(approval.id, { approval, resolve: resolvePromise });
@@ -32,7 +32,7 @@ import { describeDeviations } from '../protocol/replySchema.js';
32
32
  import { leadFormatErrorMessage, parseLeadReply, UNDERSTANDING_FIRST } from '../protocol/leadSchema.js';
33
33
  import { describePlan, planFrom } from './planMode.js';
34
34
  import { closeLedger, describeLedger, nextLedger } from './leadLedger.js';
35
- import { applySessionModel, enterSessionConversation, holdsWhilePaused, limitsMessageLength, runTask, Sink, speakFor, StoppedSend } from './taskRunner.js';
35
+ import { ACTOR_WORDS, applySessionModel, enterSessionConversation, holdsWhilePaused, limitsMessageLength, runTask, Sink, speakFor, StoppedSend } from './taskRunner.js';
36
36
  import { DEFAULT_VCS } from '../session/store.js';
37
37
  /** The assignment as the lead is given it: the operator's message, and what the runner tells it about the work. */
38
38
  export function assignmentMessage(task, n, facts, again) {
@@ -168,6 +168,14 @@ export async function runLeadTask(transport, session, task, deps) {
168
168
  const setTask = async (mutate) => {
169
169
  await store.updateTask(session.id, task.id, mutate);
170
170
  };
171
+ // Who is at work on the message now (2026-10-22): the lead, or the worker on a subtask it was given.
172
+ const actingNow = async (actor, more = {}) => {
173
+ const acting = { actor, since: new Date().toISOString(), ...more };
174
+ await setTask((t) => {
175
+ t.acting = acting;
176
+ });
177
+ sink.event('acting', acting, `at work now: ${ACTOR_WORDS[actor]}${more.subtask ? ` (subtask ${more.subtask})` : ''}`);
178
+ };
171
179
  const max = Math.max(1, cfg.limits.maxSubtasks ?? 20);
172
180
  const lead = { rounds: [], subtasks: 0, maxSubtasks: max };
173
181
  const saveLead = async () => {
@@ -188,6 +196,7 @@ export async function runLeadTask(transport, session, task, deps) {
188
196
  });
189
197
  await writeFile(taskLogPath, `TASK: ${task.title}\nSESSION: ${session.name} (${session.id})\nRUN: ${runId}\nSTARTED: ${new Date().toISOString()}\nMODE: lead and worker\n`, 'utf8');
190
198
  sink.event('task-started', { runId, title: task.title, lead: true }, `task "${task.title}" starting with a lead and a worker (run ${runId})`);
199
+ await actingNow('lead');
191
200
  // The folder before the message, for "go back" and for what the whole of it changed.
192
201
  const chatDir = session.projectDir?.trim() ?? '';
193
202
  let checkpoint = task.checkpoint;
@@ -296,6 +305,7 @@ export async function runLeadTask(transport, session, task, deps) {
296
305
  if (vcs)
297
306
  t.vcs = vcs;
298
307
  t.status = status;
308
+ delete t.acting;
299
309
  t.finishedAt = new Date().toISOString();
300
310
  const held = deps.hold?.pausedSince(leadStartedAt) ?? 0;
301
311
  if (held > 0)
@@ -404,6 +414,7 @@ export async function runLeadTask(transport, session, task, deps) {
404
414
  round.subtask = { n, taskId: made.id, title: sub.title, ...(sub.readOnly ? { readOnly: true } : {}), ...(sub.freshWorker ? { fresh: true } : {}) };
405
415
  await saveLead();
406
416
  sink.event('subtask-given', { n, taskId: made.id, title: sub.title, readOnly: sub.readOnly, fresh: sub.freshWorker }, `subtask ${n} to the worker: ${sub.title}`);
417
+ await actingNow('worker', { subtask: n });
407
418
  // To the worker's conversation, in the same window.
408
419
  speakFor(transport, worker.id);
409
420
  const fresh = !worker.chat;
@@ -439,6 +450,7 @@ export async function runLeadTask(transport, session, task, deps) {
439
450
  if (signal?.aborted)
440
451
  return 'stopped';
441
452
  sink.event('subtask-ended', { n, status: out.status }, `subtask ${n} ${out.status}`);
453
+ await actingNow('lead');
442
454
  // Back to the lead's conversation.
443
455
  const leadNow = (await store.getSession(session.id));
444
456
  await enterSessionConversation(transport, leadNow, { closeOnFailure: false });
@@ -561,7 +573,7 @@ export async function runLeadTask(transport, session, task, deps) {
561
573
  await record(`THE LEAD'S PLAN (version ${planVersion})`, describePlan(plan));
562
574
  let approved;
563
575
  if (facts.planApproval && deps.approvePlan) {
564
- const answer = await deps.approvePlan({ sessionId: session.id, taskId: task.id, title: task.title, plan });
576
+ const answer = await deps.approvePlan({ sessionId: session.id, taskId: task.id, title: task.title, plan, actor: 'lead' });
565
577
  if (answer.decision === 'stop' || signal?.aborted)
566
578
  return await finish('aborted', 'the operator stopped the task at the lead\'s plan');
567
579
  if (answer.decision === 'revise') {
@@ -468,6 +468,7 @@ ${machineNote}` : contract);
468
468
  }
469
469
  deps.event('review-step-proposed', { round, id: step.id, description: describeStep(step) }, `review step ${step.id}: ${describeStep(step)}`);
470
470
  const decision = await authorizer.authorize(step, {
471
+ actor: 'review',
471
472
  sessionId: session.id,
472
473
  taskId: task.id,
473
474
  iteration: iterations,
@@ -576,6 +576,19 @@ async function joinGroupConversation(store, session, bus) {
576
576
  export function roleOf(session) {
577
577
  return session.workerOf ? { role: 'worker' } : session.lead ? { role: 'lead' } : {};
578
578
  }
579
+ /** Who is at work, as the run's transcript and the Output panel say it. */
580
+ export const ACTOR_WORDS = { plan: 'the chat writing its plan', lead: 'the lead', worker: 'the worker', review: 'the reviewer' };
581
+ /**
582
+ * Who a session's conversation is, for a card it raises before its first message (2026-10-22): the lead or the worker
583
+ * of two chats, the chat that writes its plan first in plan mode, or else the chat that does the work.
584
+ */
585
+ export function actorOfSession(session, cfg) {
586
+ if (session.workerOf)
587
+ return 'worker';
588
+ if (session.lead)
589
+ return 'lead';
590
+ return (session.planMode ?? cfg.execution?.planMode ?? 'off') !== 'off' ? 'plan' : 'worker';
591
+ }
579
592
  /**
580
593
  * Marks a run's failure as one of opening the browser, its profile, the sign-in or the conversation, so the notice of
581
594
  * a start that could not begin says "opening the browser" rather than "the run" (2026-10-20: with the batch's own
@@ -657,6 +670,8 @@ signal) {
657
670
  const manual = modelByHand(session, cfg) && !!hooks?.askHelp;
658
671
  if (!wanted && !manual)
659
672
  return {};
673
+ // Whose conversation the card is for: said on it, whichever way it is asked (2026-10-22).
674
+ const asks = { ...roleOf(session), actor: actorOfSession(session, cfg) };
660
675
  let result;
661
676
  if (manual) {
662
677
  /*
@@ -680,7 +695,7 @@ signal) {
680
695
  const why = cfg.copilot.manualModel ? 'Settings ask for the model to be chosen by hand' : 'the session asks for the model to be set by hand';
681
696
  const hand = wanted && buttonShows(shown, wanted)
682
697
  ? { result: { ok: true, current: wanted, by: 'already' }, goOnAsItIs: false }
683
- : await withOperatorHand(transport, wanted, { ok: false, current: shown, reason: why }, hooks, session.id, bus, true, roleOf(session));
698
+ : await withOperatorHand(transport, wanted, { ok: false, current: shown, reason: why }, hooks, session.id, bus, true, asks);
684
699
  if (!wanted) {
685
700
  const now = await transport.currentModel().catch(() => null);
686
701
  if (hand.result.ok || hand.goOnAsItIs) {
@@ -718,7 +733,7 @@ signal) {
718
733
  return stopped;
719
734
  }
720
735
  }
721
- const hand = await withOperatorHand(transport, wanted, result, hooks, session.id, bus, false);
736
+ const hand = await withOperatorHand(transport, wanted, result, hooks, session.id, bus, false, asks);
722
737
  result = hand.result;
723
738
  const goOnAsItIs = hand.goOnAsItIs;
724
739
  const renamed = await followPageModels('model', wanted, result, session, store, hooks, modelFrom);
@@ -781,7 +796,17 @@ opts = {}) {
781
796
  ? `asking the operator to choose ${what} in the Copilot window (by hand; picker shows "${shown ?? 'nothing'}")`
782
797
  : `the chat could not be put on ${what} by the runner; asking the operator to choose it in the Copilot window (picker shows "${shown ?? 'nothing'}")`,
783
798
  data: { asked: wanted, shown, why: result.reason ?? '', tries, manual, ...(opts.review ? { review: true } : {}), ...(opts.role ? { role: opts.role } : {}) } });
784
- const answer = await hooks.askHelp({ sessionId, asked: wanted, shown, why: result.reason ?? 'unknown reason', tries, ...(manual ? { manual: true } : {}), ...(opts.review ? { review: true } : {}), ...(opts.role ? { role: opts.role } : {}) });
799
+ const answer = await hooks.askHelp({
800
+ sessionId,
801
+ asked: wanted,
802
+ shown,
803
+ why: result.reason ?? 'unknown reason',
804
+ tries,
805
+ ...(manual ? { manual: true } : {}),
806
+ ...(opts.review ? { review: true } : {}),
807
+ ...(opts.role ? { role: opts.role } : {}),
808
+ actor: opts.actor ?? (opts.review ? 'review' : opts.role ?? 'worker'),
809
+ });
785
810
  if (answer === 'stop')
786
811
  return { result, goOnAsItIs: false };
787
812
  if (answer === 'continue') {
@@ -940,6 +965,21 @@ export async function runTask(transport, session, task, deps) {
940
965
  const setTask = async (mutate) => {
941
966
  await store.updateTask(session.id, task.id, mutate);
942
967
  };
968
+ /*
969
+ * Who is at work on the task now (2026-10-22): kept on it for the chat and the status bar, and said as an event for
970
+ * the bot's own count of what is going on (`activity`). Only when it changes.
971
+ */
972
+ let actingAs = null;
973
+ const actingNow = async (actor, more = {}) => {
974
+ if (actingAs === actor && !more.round)
975
+ return;
976
+ actingAs = actor;
977
+ const acting = { actor, since: new Date().toISOString(), ...more };
978
+ await setTask((t) => {
979
+ t.acting = acting;
980
+ });
981
+ sink.event('acting', acting, `at work now: ${ACTOR_WORDS[actor]}${more.round ? ` (round ${more.round})` : ''}`);
982
+ };
943
983
  const startedAt = Date.now();
944
984
  /*
945
985
  * The limit is on the work, not on the pause: the time from "Pause" pressed to "Continue" is taken off (2026-10-21:
@@ -1295,6 +1335,7 @@ export async function runTask(transport, session, task, deps) {
1295
1335
  if (vcsAfter)
1296
1336
  t.vcs = vcsAfter;
1297
1337
  t.status = status;
1338
+ delete t.acting;
1298
1339
  t.iterations = iterations;
1299
1340
  t.finishedAt = new Date().toISOString();
1300
1341
  const held = pausedMs();
@@ -1538,6 +1579,7 @@ export async function runTask(transport, session, task, deps) {
1538
1579
  */
1539
1580
  const planMode = session.planMode ?? cfg.execution.planMode ?? 'off';
1540
1581
  let planning = planMode !== 'off' && !task.continuing;
1582
+ await actingNow(planning ? 'plan' : 'worker');
1541
1583
  const planEnforced = planning && onOwnBranch;
1542
1584
  let planVersion = 0;
1543
1585
  let planningRounds = 0;
@@ -2136,6 +2178,7 @@ export async function runTask(transport, session, task, deps) {
2136
2178
  // When nothing changed, or nothing was allowed to, the closing account is the product and
2137
2179
  // the reviewer is given it — as claims to test. See `Deliverable` in review.ts.
2138
2180
  const deliverable = deliverableFor(task, closing, repoDir !== '' || chatChanged !== null, changedFiles);
2181
+ await actingNow('review', { round: reviewRounds });
2139
2182
  sink.event('review-started', { round: reviewRounds, model: model || '(the session model)', files: changedFiles.length, deliverable: deliverable?.why }, `an independent review is opening a fresh conversation (round ${reviewRounds} of ${maxReviewRounds})` +
2140
2183
  (deliverable ? `; the closing summary goes with it as the product (${deliverable.why})` : ''));
2141
2184
  // What is running before the review, so that what the review leaves is its own.
@@ -2151,7 +2194,7 @@ export async function runTask(transport, session, task, deps) {
2151
2194
  const shown = await transport.currentModel().catch(() => null);
2152
2195
  picked = model && buttonShows(shown, model)
2153
2196
  ? { ok: true, current: model, by: 'already' }
2154
- : (await withOperatorHand(transport, model, { ok: false, current: shown, reason: 'the model is chosen by hand (the review)' }, deps.models, session.id, bus, true, { review: true })).result;
2197
+ : (await withOperatorHand(transport, model, { ok: false, current: shown, reason: 'the model is chosen by hand (the review)' }, deps.models, session.id, bus, true, { review: true, actor: 'review' })).result;
2155
2198
  // Stopped on the card: the run stops, as it does on the work's card, and nothing is sent to the review.
2156
2199
  if (!picked.ok && signal?.aborted)
2157
2200
  throw new StoppedSend();
@@ -2232,6 +2275,8 @@ export async function runTask(transport, session, task, deps) {
2232
2275
  sink.event('review-return-failed', { error: String(e) }, `could not return to the task's own conversation after the review: ${e.message}`, 'error');
2233
2276
  });
2234
2277
  }
2278
+ // The work's own chat again: it fixes what the review found, or closes the task.
2279
+ await actingNow('worker');
2235
2280
  // A reviewer that left its own server listening once failed the work for it.
2236
2281
  roundLeftovers = [...roundLeftovers, ...(await reap(beforeReview, `review round ${reviewRounds}`))];
2237
2282
  /*
@@ -2637,7 +2682,7 @@ export async function runTask(transport, session, task, deps) {
2637
2682
  let answer = { decision: 'approve' };
2638
2683
  if (asks) {
2639
2684
  sink.event('plan-waiting', { version: planVersion }, `plan ${planVersion} is waiting for the operator`, 'warn');
2640
- answer = await deps.approvePlan({ sessionId: session.id, taskId: task.id, title: task.title, plan });
2685
+ answer = await deps.approvePlan({ sessionId: session.id, taskId: task.id, title: task.title, plan, actor: 'plan' });
2641
2686
  }
2642
2687
  if (signal?.aborted || answer.decision === 'stop') {
2643
2688
  return await finish('aborted', answer.decision === 'stop' ? 'stopped by the operator at its plan' : 'stopped by the operator', undefined, lastMarkdown);
@@ -2668,6 +2713,7 @@ export async function runTask(transport, session, task, deps) {
2668
2713
  planInForce = { ...plan, approved };
2669
2714
  sink.event('plan-approved', { version: planVersion, by: approved.by, ...(approved.note ? { note: approved.note } : {}) }, `plan ${planVersion} approved ${asks ? 'by the operator' : `by the runner — ${why}`}${approved.note ? `, with a note` : ''}`);
2670
2715
  planning = false;
2716
+ await actingNow('worker');
2671
2717
  message = planApprovedMessage(approved);
2672
2718
  }
2673
2719
  }
@@ -2834,7 +2880,7 @@ export async function runTask(transport, session, task, deps) {
2834
2880
  t.status = 'waiting-approval';
2835
2881
  });
2836
2882
  sink.event('step-proposed', { id: step.id, description: describeStep(step) }, `step ${step.id}: ${describeStep(step)}`);
2837
- const decided = await authorizer.authorize(step, { sessionId: session.id, taskId: task.id, iteration: iterations, confinement });
2883
+ const decided = await authorizer.authorize(step, { sessionId: session.id, taskId: task.id, iteration: iterations, confinement, actor: planning ? 'plan' : 'worker' });
2838
2884
  await setTask((t) => {
2839
2885
  t.status = 'running';
2840
2886
  });
@@ -626,6 +626,22 @@ export const SYSTEM_GUIDE = [
626
626
  doesEn: 'The chat of the open project folder, as in an IDE: a message is sent to Copilot, the commands it answers with run in the folder and their output goes back, until it is done; shown as the conversation.',
627
627
  doesBg: 'Чатът на отворената папка, както в IDE: съобщението отива при Copilot, командите, с които отговаря, се изпълняват в папката и изходът им се връща, докато свърши; показва се като разговор.',
628
628
  },
629
+ {
630
+ key: 'wb.live',
631
+ kind: 'badge',
632
+ en: 'LIVE',
633
+ bg: 'LIVE',
634
+ doesEn: 'Beside "Chat" while the bot works, red (amber while paused); on hover it says who is at work. The browser tab says it too: "● Worker at work — copilot-operator", or "(1) waiting for you" when something waits for the operator.',
635
+ doesBg: 'До „Чат“, докато ботът работи — червено (жълто на пауза); при посочване казва кой работи. Казва го и табът на браузъра: „● Работи: Изпълнител — copilot-operator“, или „(1) чака вас“, когато нещо чака оператора.',
636
+ },
637
+ {
638
+ key: 'actor.asks',
639
+ kind: 'badge',
640
+ en: 'Asked by: {who}',
641
+ bg: 'Иска: {who}',
642
+ doesEn: 'On every card — a command to allow, the model to choose, a plan, the lead\'s question — and, without "Asked by", on the line "Working…" and along the bottom: who it is, in its own colour. Plan mode (the chat writing its plan; nothing changes yet), Lead (of two chats), Worker (the chat that does the work), Reviewer (the independent check).',
643
+ doesBg: 'На всяка карта — команда за разрешаване, модел за избор, план, въпрос на ръководителя — и, без „Иска“, на реда „Работи…“ и по долната лента: кой е, в свой цвят. Режим на плана (чатът пише плана си; нищо още не се променя), Ръководител (на двата чата), Изпълнител (чатът, който върши работата), Рецензент (независимата проверка).',
644
+ },
629
645
  {
630
646
  key: 'chat.thread',
631
647
  kind: 'select',
@@ -119,6 +119,8 @@ export const TASK_FIELD_ON_RERUN = {
119
119
  // The kind of task it is: every attempt is sent with the same skill.
120
120
  skill: 'kept',
121
121
  interruption: 'cleared',
122
+ // Who was at work when the attempt ended, had it not ended cleanly: never the next attempt's.
123
+ acting: 'cleared',
122
124
  finalReply: 'cleared',
123
125
  firstMessage: 'cleared',
124
126
  logFile: 'cleared',
@@ -609,6 +611,8 @@ export class SessionStore {
609
611
  t.buildsOn = buildsOn;
610
612
  // Where the attempt that stopped had got to belongs to that attempt; the next one starts clean.
611
613
  t.interruption = undefined;
614
+ // Who was at work when it stopped: the next attempt says who is, when it begins.
615
+ t.acting = undefined;
612
616
  // Cleared so the next run starts from nothing and gets its own run folder.
613
617
  t.runId = undefined;
614
618
  t.runGroup = undefined;
package/dist/web/404.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--L_h3cKqABsuAzPqNkvLAP--><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/51bfff1122e9f34d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-b26d4d956feb6e65.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-d23441ca81b3a063.js" async=""></script><script src="/_next/static/chunks/3134-b6a7bc1f267c39aa.js" async=""></script><script src="/_next/static/chunks/7921-ddb0291f25a2e486.js" async=""></script><script src="/_next/static/chunks/7500-077d236acd9b9c50.js" async=""></script><script src="/_next/static/chunks/app/layout-678acf830096ce90.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{
1
+ <!DOCTYPE html><!--g2MUlOzNxfAGFR7EI9zQv--><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/4bf77b2aec4626c2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d103630008e57024.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-d23441ca81b3a063.js" async=""></script><script src="/_next/static/chunks/3134-b6a7bc1f267c39aa.js" async=""></script><script src="/_next/static/chunks/7921-fb0045927b0e86a8.js" async=""></script><script src="/_next/static/chunks/4512-8bcb4b34f41115b4.js" async=""></script><script src="/_next/static/chunks/app/layout-9cd9b0b0587f4882.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."/><link rel="icon" href="/icon.svg?23b6e9b8199c9069" type="image/svg+xml" sizes="any"/><script>(function(){try{
2
2
  var d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};
3
3
  if(!a||typeof a!=='object')a={};
4
4
  d.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
@@ -11,4 +11,4 @@ d.dataset.night=a.nightLight?'on':'off';
11
11
  d.dataset.cursor=a.systemCursor?'system':'own';
12
12
  var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
13
13
  if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
14
- }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="/settings"><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><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><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,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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-b26d4d956feb6e65.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[98078,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"LanguageProvider\"]\n4:I[51035,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"DialogHost\"]\n5:I[28214,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"SkipLink\"]\n6:I[68300,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"ScrollJump\"]\na:I[60433,[],\"OutletBoundary\"]\nc:I[19884,[],\"AsyncMetadataOutlet\"]\ne:I[60433,[],\"ViewportBoundary\"]\n10:I[60433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/51bfff1122e9f34d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L-h3cKqABsuAzPqNkvLAP\",\"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/51bfff1122e9f34d.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=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"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';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\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>
14
+ }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 class="brand-link" href="/"><svg class="brand-logo" viewBox="0 0 200 120" aria-hidden="true" focusable="false"><defs><mask id="cop-logo-R56db" maskUnits="userSpaceOnUse" x="0" y="0" width="200" height="120"><rect width="200" height="120" fill="#fff"></rect><path d="M50 3L94 60L94 62.6L69.5 89.6L30.5 89.6L6 62.6L6 60Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="#000" stroke="#000" stroke-width="18" stroke-linejoin="round"></path></mask></defs><g mask="url(#cop-logo-R56db)" fill="none" stroke="var(--logo-orbit)" stroke-linecap="round"><ellipse cx="96" cy="64" rx="86" ry="36" transform="rotate(-25 96 64)" stroke-width="6.5"></ellipse><path d="M70 104 C112 124 166 112 186 86 C194 74 192 60 184 52" stroke-width="6"></path><path d="M22 28 C18 42 22 56 34 70" stroke-width="2.4"></path></g><path class="brand-plane" d="M50 3C54.6 3 56.6 8.2 56.6 14.5L56.6 35.5L91.5 55.8C93.2 56.8 94 58.2 94 60L94 62.6L56.6 52.8L55.4 74.5L69.5 84.6L69.5 89.6L52.6 85.6L50 89.8L47.4 85.6L30.5 89.6L30.5 84.6L44.6 74.5L43.4 52.8L6 62.6L6 60C6 58.2 6.8 56.8 8.5 55.8L43.4 35.5L43.4 14.5C43.4 8.2 45.4 3 50 3Z" transform="translate(104 14) scale(0.74) rotate(42 50 50)" fill="var(--logo-plane)"></path></svg>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="/settings"><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><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><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,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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-d103630008e57024.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[98078,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"LanguageProvider\"]\n4:I[51035,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"DialogHost\"]\n5:I[28214,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"SkipLink\"]\n6:I[68300,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-fb0045927b0e86a8.js\",\"4512\",\"static/chunks/4512-8bcb4b34f41115b4.js\",\"7177\",\"static/chunks/app/layout-9cd9b0b0587f4882.js\"],\"ScrollJump\"]\na:I[60433,[],\"OutletBoundary\"]\nc:I[19884,[],\"AsyncMetadataOutlet\"]\ne:I[60433,[],\"ViewportBoundary\"]\n10:I[60433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/4bf77b2aec4626c2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"g2MUlOzNxfAGFR7EI9zQv\",\"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/4bf77b2aec4626c2.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=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"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';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\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,"14:I[66644,[],\"IconMark\"]\nd:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?23b6e9b8199c9069\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$L14\",\"3\",{}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>