copilot-operator 0.1.48 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +582 -574
  2. package/dist/src/api/operator.controller.js +112 -926
  3. package/dist/src/api/operator.service.js +217 -2461
  4. package/dist/src/orchestrator/hold.js +49 -0
  5. package/dist/src/orchestrator/taskRunner.js +157 -23
  6. package/dist/src/plan/kerrigan.js +107 -0
  7. package/dist/src/plan/systemGuide.js +419 -3283
  8. package/dist/src/session/chatNotice.js +76 -0
  9. package/dist/src/session/store.js +2 -57
  10. package/dist/src/session/workspace.js +52 -5
  11. package/dist/src/session/workspaceGit.js +212 -0
  12. package/dist/src/transport/chatSession.js +28 -4
  13. package/dist/src/transport/chatTransport.js +1 -1
  14. package/dist/src/transport/copilotTransport.js +133 -1
  15. package/dist/web/404.html +5 -3
  16. package/dist/web/_next/static/chunks/134-ddd50a7fbb536ec8.js +1 -0
  17. package/dist/web/_next/static/chunks/190-70555f20dd0da19b.js +1 -0
  18. package/dist/web/_next/static/chunks/643-e85d221d57900ed7.js +1 -0
  19. package/dist/web/_next/static/chunks/867-869900ec999e6345.js +1 -0
  20. package/dist/web/_next/static/chunks/app/appearance/page-cdef33c421397cbe.js +1 -0
  21. package/dist/web/_next/static/chunks/app/defaults/page-e0a2b8f9a41a94c4.js +1 -0
  22. package/dist/web/_next/static/chunks/app/layout-b4fc21e26e1bad95.js +1 -0
  23. package/dist/web/_next/static/chunks/app/level1/page-31b74cae86d960d8.js +1 -0
  24. package/dist/web/_next/static/chunks/app/page-1075921d44db3e4d.js +1 -0
  25. package/dist/web/_next/static/chunks/app/presets/page-f8abdd83cdf468f7.js +1 -0
  26. package/dist/web/_next/static/chunks/app/system/page-2a270bb885885821.js +1 -0
  27. package/dist/web/_next/static/css/8b14cb3cf0051138.css +1 -0
  28. package/dist/web/_next/static/eqTUTH_SJtBgNgq8Zzy3n/_buildManifest.js +1 -0
  29. package/dist/web/appearance.html +5 -3
  30. package/dist/web/appearance.txt +22 -23
  31. package/dist/web/defaults.html +5 -3
  32. package/dist/web/defaults.txt +22 -23
  33. package/dist/web/index.html +5 -3
  34. package/dist/web/index.txt +22 -23
  35. package/dist/web/level1.html +5 -3
  36. package/dist/web/level1.txt +22 -23
  37. package/dist/web/presets.html +6 -4
  38. package/dist/web/presets.txt +22 -23
  39. package/dist/web/system.html +5 -3
  40. package/dist/web/system.txt +22 -23
  41. package/package.json +4 -20
  42. package/dist/src/api/saveToDesktop.js +0 -157
  43. package/dist/src/plan/brief.js +0 -2003
  44. package/dist/src/plan/changes.js +0 -217
  45. package/dist/src/plan/script.js +0 -1014
  46. package/dist/src/session/debugExport.js +0 -165
  47. package/dist/src/session/exportRecord.js +0 -277
  48. package/dist/src/session/metrics.js +0 -95
  49. package/dist/src/vcs/startChoice.js +0 -367
  50. package/dist/web/_next/static/chunks/197-f7c33a0114fc3db3.js +0 -1
  51. package/dist/web/_next/static/chunks/499-751e0be9d4f86e2d.js +0 -1
  52. package/dist/web/_next/static/chunks/549-a4473e9519a97026.js +0 -1
  53. package/dist/web/_next/static/chunks/699-9d031f8c145a0465.js +0 -1
  54. package/dist/web/_next/static/chunks/867-b159f25612da5cbc.js +0 -1
  55. package/dist/web/_next/static/chunks/897-5a34109533c3da50.js +0 -1
  56. package/dist/web/_next/static/chunks/app/appearance/page-a18019cdc395de3d.js +0 -1
  57. package/dist/web/_next/static/chunks/app/defaults/page-614be29d185a2947.js +0 -1
  58. package/dist/web/_next/static/chunks/app/history/page-0bb537407fed5944.js +0 -1
  59. package/dist/web/_next/static/chunks/app/import/page-8ef75fc08638e75f.js +0 -1
  60. package/dist/web/_next/static/chunks/app/layout-485ce9395cb17998.js +0 -1
  61. package/dist/web/_next/static/chunks/app/level1/page-dd3ebf37d29dce4f.js +0 -1
  62. package/dist/web/_next/static/chunks/app/page-3caf0b02046754a1.js +0 -1
  63. package/dist/web/_next/static/chunks/app/presets/page-93ab518db67e52a2.js +0 -1
  64. package/dist/web/_next/static/chunks/app/sessions/page-28376d2e4a9b4738.js +0 -1
  65. package/dist/web/_next/static/chunks/app/sessions/view/page-835d3533fdc63082.js +0 -1
  66. package/dist/web/_next/static/chunks/app/system/page-227a259e383ca2a0.js +0 -1
  67. package/dist/web/_next/static/css/ddb518572ea43e30.css +0 -1
  68. package/dist/web/_next/static/nLLy7-v8M5YRGIMtuTvMJ/_buildManifest.js +0 -1
  69. package/dist/web/history.html +0 -16
  70. package/dist/web/history.txt +0 -26
  71. package/dist/web/import.html +0 -16
  72. package/dist/web/import.txt +0 -26
  73. package/dist/web/sessions/view.html +0 -16
  74. package/dist/web/sessions/view.txt +0 -26
  75. package/dist/web/sessions.html +0 -16
  76. package/dist/web/sessions.txt +0 -26
  77. package/prompts/organisation.bg.md +0 -43
  78. package/prompts/organisation.en.md +0 -43
  79. package/prompts/persona.bg.md +0 -17
  80. package/prompts/persona.en.md +0 -17
  81. package/prompts/work.bg.md +0 -19
  82. package/prompts/work.en.md +0 -19
  83. /package/dist/web/_next/static/{nLLy7-v8M5YRGIMtuTvMJ → eqTUTH_SJtBgNgq8Zzy3n}/_ssgManifest.js +0 -0
@@ -128,6 +128,19 @@ export class StoppedByOperator extends Error {
128
128
  this.name = 'StoppedByOperator';
129
129
  }
130
130
  }
131
+ /**
132
+ * The operator closed the window with its X (2026-10-19) before the run had it: while it opened, while the sign-in
133
+ * was awaited, while the conversation was entered. A stop, said as one, rather than the error every call on a
134
+ * closed page gives.
135
+ */
136
+ export class WindowClosed extends Error {
137
+ constructor(message = 'the browser window was closed') {
138
+ super(message);
139
+ this.name = 'WindowClosed';
140
+ }
141
+ }
142
+ /** The id of the notice's element in the chat's page, so the next one, and `clearNotice`, find it. */
143
+ const NOTICE_ID = 'copilot-operator-notice';
131
144
  /**
132
145
  * Takes the copy button off the operator's clipboard.
133
146
  *
@@ -221,6 +234,10 @@ export class CopilotTransport {
221
234
  * did nothing until they ended (2026-10-17: "the Stop button seems not to work").
222
235
  */
223
236
  stop = null;
237
+ /** Set while `close` closes the window, so a window this code closed is not taken for one the operator closed. */
238
+ closing = false;
239
+ /** The window went away without `close`: its X pressed, or Edge ended (2026-10-19). */
240
+ gone = false;
224
241
  constructor(opts) {
225
242
  this.opts = opts;
226
243
  }
@@ -275,15 +292,130 @@ export class CopilotTransport {
275
292
  await this.context.addInitScript(CLIPBOARD_GUARD).catch(() => this.emit('clipboard-guard-failed'));
276
293
  this.page = this.context.pages()[0] ?? (await this.context.newPage());
277
294
  this.page.setDefaultTimeout(60_000);
295
+ this.watchWindow();
278
296
  this.emit('browser-opened', { profileDir: this.opts.profileDir });
279
297
  }
298
+ /**
299
+ * The operator may close the window with its X at any moment (2026-10-19), and the chat's window is left open
300
+ * between messages for exactly that to be theirs to do. Noted when it happens, so a run in it stops as a run the
301
+ * operator stopped, and the next message opens a new one, rather than either failing on a closed page.
302
+ */
303
+ watchWindow() {
304
+ const opened = this.context;
305
+ if (!opened || !this.page)
306
+ return;
307
+ this.gone = false;
308
+ const went = () => {
309
+ // Not when `close` is closing it, and not for a window closed already and since let go of.
310
+ if (this.closing || this.gone || this.context !== opened)
311
+ return;
312
+ this.gone = true;
313
+ this.emit('window-closed');
314
+ };
315
+ opened.on('close', went);
316
+ this.page.on('close', went);
317
+ }
280
318
  async close() {
281
- await this.context?.close().catch(() => undefined);
319
+ this.closing = true;
320
+ try {
321
+ await this.context?.close().catch(() => undefined);
322
+ }
323
+ finally {
324
+ this.closing = false;
325
+ }
282
326
  this.context = null;
283
327
  this.page = null;
284
328
  this.lock?.release();
285
329
  this.lock = null;
286
330
  }
331
+ /** Whether the window is there to be used: not before `open`, not after `close`, not once the operator closed it. */
332
+ isOpen() {
333
+ return !!this.context && !!this.page && !this.gone && !this.page.isClosed();
334
+ }
335
+ /** Whether the window went away without this code closing it: its X was pressed, or Edge ended. */
336
+ closedOutside() {
337
+ return this.gone;
338
+ }
339
+ /**
340
+ * A card over the chat's page with one button that takes it away (2026-10-19: "when the chat is done, let the
341
+ * browser show a message — the task has finished — and an OK under it"). The window of the workbench's chat is
342
+ * left open for the next message, and without it a window the work has finished in looks just like one it is still
343
+ * going on in. Drawn in a shadow root, so the page's styles do not reach it, and over everything; nothing of the
344
+ * page itself is touched, and the next run takes it away before anything else (`clearNotice`).
345
+ */
346
+ async showNotice(notice) {
347
+ await this.p.evaluate(([id, n]) => {
348
+ document.getElementById(id)?.remove();
349
+ const host = document.createElement('div');
350
+ host.id = id;
351
+ const root = host.attachShadow({ mode: 'open' });
352
+ const style = document.createElement('style');
353
+ style.textContent = [
354
+ ':host{all:initial}',
355
+ '.back{position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.38);font-family:"Segoe UI",system-ui,sans-serif}',
356
+ '.card{box-sizing:border-box;width:calc(100% - 48px);max-width:470px;background:#fff;color:#1f2937;border-radius:12px;box-shadow:0 16px 48px rgba(0,0,0,.28);padding:24px 28px 20px}',
357
+ 'h2{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:20px;font-weight:600;line-height:1.3}',
358
+ '.mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;color:#fff;font-size:16px;font-weight:700}',
359
+ '.done{background:#16a34a}.stopped{background:#64748b}.failed{background:#d97706}',
360
+ 'p{margin:0 0 8px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}',
361
+ 'p.subject{font-weight:600}',
362
+ '.row{display:flex;justify-content:flex-end;margin-top:18px}',
363
+ 'button{font:inherit;font-size:14px;font-weight:600;min-width:96px;padding:8px 24px;border:0;border-radius:8px;background:#2563eb;color:#fff;cursor:pointer}',
364
+ 'button:hover{background:#1d4ed8}button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}',
365
+ '@media (prefers-color-scheme:dark){.card{background:#1f2937;color:#f3f4f6}}',
366
+ ].join('\n');
367
+ const back = document.createElement('div');
368
+ back.className = 'back';
369
+ const card = document.createElement('div');
370
+ card.className = 'card';
371
+ card.setAttribute('role', 'alertdialog');
372
+ card.setAttribute('aria-modal', 'true');
373
+ card.setAttribute('aria-labelledby', 'title');
374
+ const h = document.createElement('h2');
375
+ h.id = 'title';
376
+ const mark = document.createElement('span');
377
+ mark.className = `mark ${n.tone}`;
378
+ mark.setAttribute('aria-hidden', 'true');
379
+ mark.textContent = n.tone === 'done' ? '✓' : n.tone === 'stopped' ? '■' : '!';
380
+ h.append(mark, document.createTextNode(n.title));
381
+ card.append(h);
382
+ if (n.subject) {
383
+ const s = document.createElement('p');
384
+ s.className = 'subject';
385
+ s.textContent = n.subject;
386
+ card.append(s);
387
+ }
388
+ for (const line of n.lines) {
389
+ const p = document.createElement('p');
390
+ p.textContent = line;
391
+ card.append(p);
392
+ }
393
+ const row = document.createElement('div');
394
+ row.className = 'row';
395
+ const ok = document.createElement('button');
396
+ ok.type = 'button';
397
+ ok.textContent = n.button;
398
+ // No function given a name in here: run through tsx, a named one is wrapped in a helper the page has not got.
399
+ ok.addEventListener('click', () => host.remove());
400
+ card.addEventListener('keydown', (e) => {
401
+ if (e.key === 'Escape')
402
+ host.remove();
403
+ });
404
+ row.append(ok);
405
+ card.append(row);
406
+ back.append(card);
407
+ root.append(style, back);
408
+ document.documentElement.append(host);
409
+ ok.focus();
410
+ }, [NOTICE_ID, notice]);
411
+ await this.p.bringToFront().catch(() => undefined);
412
+ }
413
+ /** Takes away a card `showNotice` left, if the operator has not pressed its button. Nothing when there is none. */
414
+ async clearNotice() {
415
+ if (!this.isOpen())
416
+ return;
417
+ await this.p.evaluate((id) => document.getElementById(id)?.remove(), NOTICE_ID).catch(() => undefined);
418
+ }
287
419
  /** True when the composer is visible, i.e. we are signed in and the chat is usable. */
288
420
  async isChatReady(timeoutMs = 5_000) {
289
421
  try {
package/dist/web/404.html CHANGED
@@ -1,16 +1,18 @@
1
- <!DOCTYPE html><!--nLLy7_v8M5YRGIMtuTvMJ--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/ddb518572ea43e30.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.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/197-f7c33a0114fc3db3.js" async=""></script><script src="/_next/static/chunks/867-b159f25612da5cbc.js" async=""></script><script src="/_next/static/chunks/549-a4473e9519a97026.js" async=""></script><script src="/_next/static/chunks/499-751e0be9d4f86e2d.js" async=""></script><script src="/_next/static/chunks/app/layout-485ce9395cb17998.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>
1
+ <!DOCTYPE html><!--eqTUTH_SJtBgNgq8Zzy3n--><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/8b14cb3cf0051138.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-0f31b926d9a9c5a4.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/867-869900ec999e6345.js" async=""></script><script src="/_next/static/chunks/643-e85d221d57900ed7.js" async=""></script><script src="/_next/static/chunks/190-70555f20dd0da19b.js" async=""></script><script src="/_next/static/chunks/app/layout-b4fc21e26e1bad95.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>
2
2
  (function () {
3
3
  try {
4
4
  var d = document.documentElement;
5
5
  var raw = localStorage.getItem('cop.appearance');
6
6
  var a = raw ? JSON.parse(raw) : {};
7
7
  if (!a || typeof a !== 'object') a = {};
8
- d.dataset.theme = a.theme === 'dark' ? 'dark' : 'light';
8
+ // "system", the default: whatever the machine is set to, light or dark (2026-10-20).
9
+ d.dataset.theme = a.theme === 'dark' || a.theme === 'light' ? a.theme : window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
9
10
  d.dataset.textsize = ["small","normal","large","huge","giant"].indexOf(a.textSize) >= 0 ? a.textSize : 'normal';
10
11
  d.dataset.contrast = a.highContrast ? 'high' : 'normal';
11
12
  d.dataset.motion = a.reduceMotion ? 'reduced' : 'normal';
12
13
  d.dataset.links = a.underlineLinks ? 'underline' : 'plain';
13
14
  d.dataset.focus = a.strongFocus ? 'strong' : 'normal';
15
+ d.dataset.night = a.nightLight ? 'on' : 'off';
14
16
  } catch (e) {}
15
17
  })();
16
- </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="/sessions"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v4H4zM4 11h16v4H4zM4 17h10v2H4z"></path></svg><span>Sessions</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="/import"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Plan from JSON</span></a><a href="/history"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 3a9 9 0 1 0 8.5 6M12 7v5l3 2M3 4v5h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Task register</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,&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-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,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"AppearanceProvider\"]\n3:I[867,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"LanguageProvider\"]\n4:I[1035,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"DialogHost\"]\n5:I[8214,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"SkipLink\"]\n6:I[966,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"Shell\"]\n7:I[5204,[],\"\"]\n8:I[2642,[],\"\"]\n9:I[7712,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"ScrollJump\"]\na:I[1701,[\"197\",\"static/chunks/197-f7c33a0114fc3db3.js\",\"867\",\"static/chunks/867-b159f25612da5cbc.js\",\"549\",\"static/chunks/549-a4473e9519a97026.js\",\"499\",\"static/chunks/499-751e0be9d4f86e2d.js\",\"177\",\"static/chunks/app/layout-485ce9395cb17998.js\"],\"StartDialogHost\"]\nb:I[433,[],\"OutletBoundary\"]\nd:I[9884,[],\"AsyncMetadataOutlet\"]\nf:I[433,[],\"ViewportBoundary\"]\n11:I[433,[],\"MetadataBoundary\"]\n12:\"$Sreact.suspense\"\n14"])</script><script>self.__next_f.push([1,":I[3536,[],\"\"]\n:HL[\"/_next/static/css/ddb518572ea43e30.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"nLLy7-v8M5YRGIMtuTvMJ\",\"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/ddb518572ea43e30.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\",\"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 d.dataset.theme = a.theme === 'dark' ? '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 } 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,{}],[\"$\",\"$La\",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,[\"$\",\"$Lb\",null,{\"children\":[\"$Lc\",[\"$\",\"$Ld\",null,{\"promise\":\"$@e\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],null],[\"$\",\"$L11\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$12\",null,{\"fallback\":null,\"children\":\"$L13\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$14\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nc:null\n"])</script><script>self.__next_f.push([1,"e:{\"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,"13:\"$e:metadata\"\n"])</script></body></html>
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,&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-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>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[134],{257:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(1521);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1702:(e,t,r)=>{var n=r(9962);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},4251:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},4866:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return m},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return d},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return u},isResSent:function(){return f},loadGetInitialProps:function(){return s},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return P}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function s(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await s(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,d=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},5700:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function u(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},6348:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let n=r(2371)._(r(5700)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,u=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",f=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?f=t+e.host:r&&(f=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(f+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==f?(f="//"+(f||""),a&&"/"!==a[0]&&(a="/"+a)):f||(f=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+u+f+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return u(e)}},7125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=r(4866),o=r(2875);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},8197:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return b}});let n=r(2371),o=r(3365),u=n._(r(1521)),a=r(6348),i=r(5722),l=r(257),f=r(4866),c=r(3424);r(4691);let s=r(2557),p=r(7125),d=r(2921);r(4251);let h=r(2418);function y(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,b]=(0,u.useOptimistic)(s.IDLE_LINK_STATUS),P=(0,u.useRef)(null),{href:_,as:v,children:E,prefetch:O=null,passHref:j,replace:S,shallow:C,scroll:N,onClick:T,onMouseEnter:R,onTouchStart:x,legacyBehavior:A=!1,onNavigate:M,ref:L,unstable_dynamicOnHover:k,...I}=e;r=E,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let U=u.default.useContext(i.AppRouterContext),w=!1!==O,F=!1!==O?null===(t=O)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:D,as:K}=u.default.useMemo(()=>{let e=y(_);return{href:e,as:v?y(v):e}},[_,v]);A&&(n=u.default.Children.only(r));let B=A?n&&"object"==typeof n&&n.ref:L,z=u.default.useCallback(e=>(null!==U&&(P.current=(0,s.mountLinkInstance)(e,D,U,F,w,b)),()=>{P.current&&((0,s.unmountLinkForCurrentNavigation)(P.current),P.current=null),(0,s.unmountPrefetchableInstance)(e)}),[w,D,U,F,b]),Q={ref:(0,l.useMergedRef)(z,B),onClick(e){A||"function"!=typeof T||T(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),U&&(e.defaultPrevented||function(e,t,r,n,o,a,i){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}u.default.startTransition(()=>{(0,d.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,D,K,P,S,N,M))},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),U&&w&&(0,s.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){A||"function"!=typeof x||x(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),U&&w&&(0,s.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,f.isAbsoluteUrl)(K)?Q.href=K:A&&!j&&("a"!==n.type||"href"in n.props)||(Q.href=(0,c.addBasePath)(K)),a=A?u.default.cloneElement(n,Q):(0,o.jsx)("a",{...I,...Q,children:r}),(0,o.jsx)(m.Provider,{value:g,children:a})}let m=(0,u.createContext)(s.IDLE_LINK_STATUS),b=()=>(0,u.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{6657:(e,a,t)=>{t.d(a,{M:()=>v,U:()=>m});var r=t(3365),s=t(1521),n=t(8197),l=t.n(n),i=t(1702),o=t(5549),c=t(867),d=t(1035),h=t(7527),p=t(9717);function m(){let{t:e}=(0,c.kj)(),a=(0,i.usePathname)(),[t,n]=(0,s.useState)([]),[l,d]=(0,s.useState)({}),p=(0,s.useRef)({}),m=(0,s.useRef)(new Set),v=(0,s.useRef)(""),x=(0,s.useCallback)(async()=>{try{let e=await o.FH.approvals();n(e);let a=[...new Set(e.map(e=>e.sessionId).filter(e=>!(e in p.current)))],t=a.sort().join(",");if(a.length>0&&t!==v.current){for(let e of(v.current=t,await o.FH.sessions().catch(()=>[])))p.current[e.id]=e.name,"chat"===e.kind&&m.current.add(e.id);d({...p.current})}}catch(e){}},[]);(0,h.z)(x,2e3),(0,s.useEffect)(()=>{let a="copilot-operator";document.title=t.length>0?"(".concat(t.length,") ").concat(e("approval.tabTitle")," — ").concat(a):a},[t.length,e]);let j="/"===a?t.filter(e=>e.sessionId in p.current&&(!m.current.has(e.sessionId)||!!e.model)):t;return 0===j.length?null:(0,r.jsxs)("section",{className:"approval-banner",role:"alert","aria-live":"assertive",children:[(0,r.jsx)("h2",{children:e("approval.waitingHere")}),(0,r.jsx)("p",{className:"small",children:e("approval.waitingHereWhy")}),j.map(e=>{var a;return(0,r.jsx)(u,{approval:e,sessionName:null!=(a=l[e.sessionId])?a:e.sessionId,onDecided:()=>void x()},e.id)})]})}function u(e){let{approval:a,sessionName:t,onDecided:n}=e,{t:i}=(0,c.kj)(),h=(0,c.W3)(),[p,m]=(0,s.useState)(!1),[u,x]=(0,s.useState)(""),j=(0,s.useRef)(!1),g=async e=>{if(!j.current&&("run-all"!==e||await (0,d.Z)(i("approval.runAllConfirm")))){j.current=!0,m(!0),x("");try{await o.FH.decide(a.id,e)}catch(e){x(e.message)}finally{j.current=!1,m(!1),n()}}};if(a.plan)return(0,r.jsx)(v,{approval:a,sessionName:t,onDecided:n});if(a.model){var f;let e=a.model;return(0,r.jsxs)("div",{className:"approval",children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("strong",{children:i(e.manual?"approval.manualTitle":"approval.modelTitle")}),(0,r.jsx)(l(),{href:"/",children:t}),(0,r.jsx)("span",{className:"muted small",children:h(a.createdAt)})]}),(0,r.jsx)("p",{children:e.manual?e.asked?i("approval.manualAsk",{model:e.asked}):i("approval.manualAskAny"):i("approval.modelAsk",{model:e.asked})}),(0,r.jsx)("p",{className:"muted small",children:i("approval.modelShown",{shown:null!=(f=e.shown)?f:"—"})}),!e.manual&&(0,r.jsx)("p",{className:"reason small",children:i("approval.modelWhy",{why:e.why,tries:e.tries})}),u&&(0,r.jsx)("p",{className:"err",role:"alert",children:u}),(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("button",{className:"primary",disabled:p,onClick:()=>void g("run"),children:i(e.manual?"approval.manualReady":"approval.modelChosen")}),!e.manual&&(0,r.jsx)("button",{disabled:p,onClick:()=>void g("skip"),children:i("approval.modelAsItIs")}),(0,r.jsx)("button",{className:"danger",disabled:p,onClick:()=>void g("abort"),children:i("approval.modelStop")})]})]})}return(0,r.jsxs)("div",{className:"approval",children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("strong",{children:i("approval.title",{n:a.stepId})}),(0,r.jsx)(l(),{href:"/",children:t}),(0,r.jsx)("span",{className:"muted small",children:h(a.createdAt)})]}),(0,r.jsx)("pre",{style:{margin:"8px 0"},children:a.description}),a.network&&(0,r.jsx)("p",{className:"reason small",children:i("approval.network")}),u&&(0,r.jsx)("p",{className:"err",role:"alert",children:u}),(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("button",{className:"primary",disabled:p,onClick:()=>void g("run"),children:i("approval.run")}),!a.network&&(0,r.jsx)("button",{disabled:p,onClick:()=>void g("run-all"),title:i("approval.runAllWhy"),children:i("approval.runAll")}),(0,r.jsx)("button",{disabled:p,onClick:()=>void g("skip"),children:i("approval.skip")}),(0,r.jsx)("button",{className:"danger",disabled:p,onClick:()=>void g("abort"),children:i("approval.abort")})]})]})}function v(e){let{approval:a,sessionName:t,onDecided:n}=e,{t:i}=(0,c.kj)(),h=(0,c.W3)(),[m,u]=(0,s.useState)(""),[v,x]=(0,s.useState)(!1),[j,g]=(0,s.useState)(""),f=(0,s.useRef)(!1),w=a.plan,k=async e=>{if(!f.current){if("revise"===e&&!m.trim())return void g(i("pm.reviseNeedsNote"));if("stop"!==e||await (0,d.Z)(i("pm.stopConfirm"))){f.current=!0,x(!0),g("");try{await o.FH.decidePlan(a.id,e,m)}catch(e){g(e.message)}finally{f.current=!1,x(!1),n()}}}};return(0,r.jsxs)("div",{className:"approval",children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("strong",{children:i("pm.cardTitle",{title:w.title})}),void 0!==t&&(0,r.jsx)(l(),{href:"/",children:t}),(0,r.jsx)("span",{className:"muted small",children:h(a.createdAt)})]}),(0,r.jsx)("p",{className:"small",children:i("pm.cardWhy")}),(0,r.jsx)(p.D,{plan:w.plan,showApproval:!1}),(0,r.jsx)("label",{htmlFor:"plan-note-".concat(a.id),children:i("pm.note")}),(0,r.jsx)("textarea",{id:"plan-note-".concat(a.id),className:"prose",value:m,onChange:e=>u(e.target.value),placeholder:i("pm.notePlaceholder"),style:{minHeight:70},disabled:v}),j&&(0,r.jsx)("p",{className:"err",role:"alert",children:j}),(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("button",{className:"primary",disabled:v,onClick:()=>void k("approve"),children:i("pm.approve")}),(0,r.jsx)("button",{disabled:v,onClick:()=>void k("revise"),title:i("pm.reviseWhy"),children:i("pm.revise")}),(0,r.jsx)("button",{className:"danger",disabled:v,onClick:()=>void k("stop"),children:i("pm.stop")})]})]})}},7527:(e,a,t)=>{t.d(a,{z:()=>s});var r=t(1521);function s(e,a){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,r.useRef)(e);s.current=e,(0,r.useEffect)(()=>{let e;if(!t)return;let r=!1,n=async()=>{try{await s.current()}catch(e){}finally{r||(e=setTimeout(()=>void n(),a))}};return n(),()=>{r=!0,e&&clearTimeout(e)}},[a,t])}},8078:(e,a,t)=>{t.d(a,{AppearanceProvider:()=>d,Xm:()=>l,KP:()=>h});var r=t(3365),s=t(1521);let n="cop.appearance",l=["small","normal","large","huge","giant"];"\n(function () {\n try {\n var d = document.documentElement;\n var raw = localStorage.getItem('".concat(n,"');\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 && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n d.dataset.textsize = ").concat(JSON.stringify(l),".indexOf(a.textSize) >= 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");let i={theme:"system",textSize:"normal",highContrast:!1,reduceMotion:!1,underlineLinks:!1,strongFocus:!1,nightLight:!1};function o(e){let a=document.documentElement;a.dataset.theme="system"===e.theme?!function(){try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch(e){return!1}}()?"light":"dark":e.theme,a.dataset.textsize=e.textSize,a.dataset.contrast=e.highContrast?"high":"normal",a.dataset.motion=e.reduceMotion?"reduced":"normal",a.dataset.links=e.underlineLinks?"underline":"plain",a.dataset.focus=e.strongFocus?"strong":"normal",a.dataset.night=e.nightLight?"on":"off"}let c=(0,s.createContext)({appearance:i,set:()=>void 0,reset:()=>void 0,loaded:!1});function d(e){let{children:a}=e,[t,d]=(0,s.useState)(i),[h,p]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=i;try{let a=window.localStorage.getItem(n);a&&(e=function(e){let a=e&&"object"==typeof e?e:{},t=(e,a)=>"boolean"==typeof e?e:a;return{theme:"dark"===a.theme||"light"===a.theme||"system"===a.theme?a.theme:i.theme,textSize:l.includes(a.textSize)?a.textSize:i.textSize,highContrast:t(a.highContrast,i.highContrast),reduceMotion:t(a.reduceMotion,i.reduceMotion),underlineLinks:t(a.underlineLinks,i.underlineLinks),strongFocus:t(a.strongFocus,i.strongFocus),nightLight:t(a.nightLight,i.nightLight)}}(JSON.parse(a))),window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!a&&(e={...e,reduceMotion:!0})}catch(e){}d(e),o(e),p(!0)},[]),(0,s.useEffect)(()=>{let e;if("system"!==t.theme)return;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(e){return}let a=()=>o(t);return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[t]);let m=(0,s.useCallback)(e=>{d(a=>{let t={...a,...e};o(t);try{window.localStorage.setItem(n,JSON.stringify(t))}catch(e){}return t})},[]),u=(0,s.useCallback)(()=>{d(i),o(i);try{window.localStorage.removeItem(n)}catch(e){}},[]);return(0,r.jsx)(c.Provider,{value:{appearance:t,set:m,reset:u,loaded:h},children:a})}function h(){return(0,s.useContext)(c)}},9717:(e,a,t)=>{t.d(a,{D:()=>n});var r=t(3365),s=t(867);function n(e){var a,t;let{plan:n,showApproval:l=!0}=e,{t:i}=(0,s.kj)(),o=(0,s.W3)(),c=n.approved;return(0,r.jsxs)("div",{className:"plan-view",children:[(0,r.jsx)("p",{className:"small muted",children:i("pm.version",{n:n.version,at:o(n.at)})}),l&&c&&(0,r.jsxs)("p",{className:"small",children:["operator"===c.by?i("pm.approvedByOperator",{at:o(c.at)}):i("pm.approvedAuto",{at:o(c.at)}),c.why&&" ".concat(c.why),c.note&&" ".concat(i("pm.approvedNote",{note:c.note}))]}),(0,r.jsx)("h4",{children:i("pm.existing")}),(0,r.jsx)("p",{className:"pre-wrap",children:n.existing}),(0,r.jsx)("h4",{children:i("pm.approach")}),(0,r.jsx)("p",{className:"pre-wrap",children:n.approach}),(0,r.jsx)("h4",{children:i("pm.steps")}),(0,r.jsx)("ol",{children:n.steps.map((e,a)=>(0,r.jsx)("li",{className:"pre-wrap",children:e},a))}),n.files.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{children:i("pm.files")}),(0,r.jsx)("ul",{children:n.files.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:e})},e))})]}),(0,r.jsx)("h4",{children:i("pm.verification")}),(0,r.jsx)("p",{className:"pre-wrap",children:n.verification}),n.risks&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{children:i("pm.risks")}),(0,r.jsx)("p",{className:"pre-wrap",children:n.risks})]}),(null!=(t=null==(a=n.revisions)?void 0:a.length)?t:0)>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{children:i("pm.revisions")}),(0,r.jsx)("ul",{children:n.revisions.map(e=>(0,r.jsxs)("li",{className:"small",children:[i("pm.revision",{n:e.version,at:o(e.at)})," ",(0,r.jsx)("span",{className:"pre-wrap",children:e.comment})]},e.version))})]})]})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{1035:(e,t,o)=>{o.d(t,{DialogHost:()=>d,Z:()=>l});var n=o(3365),s=o(1521),a=o(867),c=o(4969);let i=null,r=[];function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(o=>{var n;return n={kind:"confirm",message:e,...t,resolve:o},void(i?i(n):r.push(n))})}function d(e){var t,o;let{children:l}=e,{t:d}=(0,a.kj)(),[u,m]=(0,s.useState)([]),p=(0,s.useRef)(null),h=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(i=e=>m(t=>[...t,e]),r.length>0){let e=r.splice(0,r.length);m(t=>[...t,...e])}return()=>{i=null}},[]);let f=u[0],y=(0,s.useCallback)(e=>{f&&(f.resolve(e),m(e=>e.slice(1)))},[f]);return(0,c.V)(h,!!f,p),(0,s.useEffect)(()=>{if(!f)return;let e=e=>{"Escape"===e.key&&(e.preventDefault(),y(!1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[f,y]),(0,n.jsxs)(n.Fragment,{children:[l,f&&(0,n.jsx)("div",{className:"modal-backdrop",onClick:()=>y(!1),role:"presentation",children:(0,n.jsxs)("div",{ref:h,className:"modal".concat(f.danger?" danger":""),role:"confirm"===f.kind?"alertdialog":"dialog","aria-modal":"true","aria-labelledby":"modal-title","aria-describedby":"modal-body",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("h2",{id:"modal-title",children:null!=(t=f.title)?t:d("confirm"===f.kind?"dialog.confirmTitle":"dialog.noticeTitle")}),(0,n.jsx)("div",{id:"modal-body",className:"modal-body",children:f.message}),(0,n.jsxs)("div",{className:"row modal-actions",children:["confirm"===f.kind&&(0,n.jsx)("button",{type:"button",className:"quiet",onClick:()=>y(!1),children:d("dialog.cancel")}),(0,n.jsx)("button",{ref:p,type:"button",className:f.danger?"danger":"primary",onClick:()=>y(!0),children:null!=(o=f.okLabel)?o:d("dialog.ok")})]})]})})]})}},4969:(e,t,o)=>{o.d(t,{V:()=>a});var n=o(1521);let s='a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';function a(e,t,o){(0,n.useEffect)(()=>{var n,a;if(!t)return;let c=document.activeElement instanceof HTMLElement?document.activeElement:null,i=e.current,r=null!=(a=null!=(n=null==o?void 0:o.current)?n:null==i?void 0:i.querySelector(s))?a:null;null==r||r.focus();let l=e=>{if("Tab"!==e.key||!i)return;let t=Array.from(i.querySelectorAll(s)).filter(e=>null!==e.offsetParent);if(0===t.length)return;let o=t[0],n=t[t.length-1],a=i.contains(document.activeElement);e.shiftKey&&(document.activeElement===o||!a)?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n&&a||(e.preventDefault(),o.focus())};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),c&&document.contains(c)&&c.focus()}},[e,t,o])}},5549:(e,t,o)=>{o.d(t,{FH:()=>r});let n="/api",s="cop-api-token";function a(){try{let e=/(?:^#|&)token=([0-9a-f]{16,})/i.exec(window.location.hash);if(e)return window.localStorage.setItem(s,e[1]),window.history.replaceState(null,"",window.location.pathname+window.location.search),e[1];return window.localStorage.getItem(s)||""}catch(e){return""}}function c(e){let t=a();return t?"".concat(e).concat(e.includes("?")?"&":"?","token=").concat(encodeURIComponent(t)):e}async function i(e,t){let o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=void 0===s.timeoutMs?3e4:s.timeoutMs;try{var i;o=await fetch("".concat(n).concat(e),{...t,...null!==c&&!(null==t?void 0:t.signal)?{signal:AbortSignal.timeout(c)}:{},headers:{"content-type":"application/json",...a()?{"x-cop-token":a()}:{},...null!=(i=null==t?void 0:t.headers)?i:{}}})}catch(t){if("TimeoutError"===t.name)throw Error("The API did not answer within ".concat(Math.round((null!=c?c:0)/1e3)," s (").concat(e.split("?")[0],"). It may be busy; try again."));throw t}if(!o.ok){let e="".concat(o.status," ").concat(o.statusText);try{let t=await o.json();(null==t?void 0:t.message)&&(e=Array.isArray(t.message)?t.message.join("; "):t.message)}catch(e){}throw Object.assign(Error(e),{status:o.status})}let r=await o.text();return r?JSON.parse(r):void 0}let r={doctor:()=>i("/doctor"),settings:()=>i("/settings"),saveSettings:e=>i("/settings",{method:"PUT",body:JSON.stringify(e)}),level1:()=>i("/level1"),setLevel1:e=>i("/level1",{method:"PUT",body:JSON.stringify({content:e})}),resetLevel1:()=>i("/level1",{method:"DELETE"}),presets:()=>i("/presets"),savePreset:(e,t)=>i("/presets/".concat(encodeURIComponent(e)),{method:"PUT",body:JSON.stringify({content:t})}),deletePreset:e=>i("/presets/".concat(encodeURIComponent(e)),{method:"DELETE"}),sessions:()=>i("/sessions"),preparePreview:function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return i("/repo/prepare/preview",{method:"POST",body:JSON.stringify({dir:e,fetch:t})},{timeoutMs:33e4})},prepareProject:function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i("/repo/prepare",{method:"POST",body:JSON.stringify({dir:e,fingerprint:t,...o})})},session:e=>i("/sessions/".concat(e)),updateSession:(e,t)=>i("/sessions/".concat(e),{method:"PUT",body:JSON.stringify(t)}),taskChanges:(e,t,o)=>i("/sessions/".concat(e,"/tasks/").concat(t,"/changes").concat(o?"?run=".concat(encodeURIComponent(o)):"")),taskChangeFile:(e,t,o,n)=>i("/sessions/".concat(e,"/tasks/").concat(t,"/changes/file?path=").concat(encodeURIComponent(o)).concat(n?"&run=".concat(encodeURIComponent(n)):"")),taskStory:(e,t,o)=>i("/sessions/".concat(e,"/tasks/").concat(t,"/story").concat(o?"?run=".concat(encodeURIComponent(o)):"")),start:(e,t)=>i("/sessions/".concat(e,"/start"),{method:"POST",body:JSON.stringify({mode:t})},{timeoutMs:12e4}),startFailures:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return i("/start/failures".concat(e?"?unanswered=1":""))},startFailureUrl:e=>c("".concat(n,"/start/failures/").concat(encodeURIComponent(e),"/report")),terminalUrl:()=>c("".concat(n,"/terminal")),stop:e=>i("/sessions/".concat(e,"/stop"),{method:"POST",body:"{}"}),pause:e=>i("/sessions/".concat(e,"/pause"),{method:"POST",body:"{}"}),resume:e=>i("/sessions/".concat(e,"/resume"),{method:"POST",body:"{}"}),approvals:e=>i("/approvals".concat(e?"?session=".concat(encodeURIComponent(e)):"")),workspace:()=>i("/workspace"),workspaceFiles:()=>i("/workspace/files"),workspaceFile:e=>i("/workspace/file?path=".concat(encodeURIComponent(e))),saveWorkspaceFile:(e,t,o)=>i("/workspace/file",{method:"PUT",body:JSON.stringify({path:e,text:t,...o?{base:o}:{}})}),workspaceGit:()=>i("/workspace/git"),workspaceCommit:e=>i("/workspace/git/commit?sha=".concat(encodeURIComponent(e))),workspaceGitFile:(e,t,o)=>i("/workspace/git/file?area=".concat(e,"&path=").concat(encodeURIComponent(t)).concat(o?"&commit=".concat(encodeURIComponent(o)):"")),chatThreads:()=>i("/chat/threads"),chatSend:(e,t,o,n,s,a)=>i("/chat",{method:"POST",body:JSON.stringify({text:e,...t?{threadId:t}:{},...o?{model:o}:{},...n?{manualModel:!0}:{},...s?{lang:s}:{},...a?{planMode:!0}:{}})}),chatRewind:(e,t)=>i("/chat/".concat(e,"/rewind"),{method:"POST",body:JSON.stringify({taskId:t})}),sessionEvents:e=>i("/sessions/".concat(e,"/events")),decidePlan:(e,t,o)=>i("/approvals/".concat(e,"/plan"),{method:"POST",body:JSON.stringify({action:t,...(null==o?void 0:o.trim())?{note:o}:{}})}),decide:(e,t)=>i("/approvals/".concat(e),{method:"POST",body:JSON.stringify({action:t})}),browseFolder:e=>i("/browse-folder",{method:"POST",body:JSON.stringify({start:e})},{timeoutMs:null}),activity:()=>i("/activity"),kerrigan:e=>i("/kerrigan?lang=".concat(encodeURIComponent(e))),taskExchangeUrl:(e,t)=>c("".concat(n,"/sessions/").concat(encodeURIComponent(e),"/tasks/").concat(encodeURIComponent(t),"/exchange")),project:()=>i("/project"),setProject:e=>i("/project",{method:"PUT",body:JSON.stringify(e)}),models:()=>i("/models"),setDefaultModel:e=>i("/models/default",{method:"PUT",body:JSON.stringify({model:e})}),setDefaultReviewModel:e=>i("/models/review-default",{method:"PUT",body:JSON.stringify({model:e})}),refreshModels:()=>i("/models/refresh",{method:"POST",body:"{}"},{timeoutMs:null}),login:e=>i("/login",{method:"POST",body:JSON.stringify({account:(null==e?void 0:e.trim())||void 0})},{timeoutMs:null})}}}]);