copilot-operator 0.1.81 → 0.1.84

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/dist/src/orchestrator/leadRunner.js +3 -2
  2. package/dist/src/orchestrator/taskRunner.js +46 -2
  3. package/dist/src/plan/systemGuide.js +8 -0
  4. package/dist/src/transport/chatTransport.js +1 -1
  5. package/dist/src/transport/copilotTransport.js +150 -3
  6. package/dist/web/404.html +2 -2
  7. package/dist/web/_next/static/chunks/1024-dee283a1ddf295bf.js +1 -0
  8. package/dist/web/_next/static/chunks/1077.e0136d293069ccb8.js +1 -0
  9. package/dist/web/_next/static/chunks/1548.5cc0c57b00c2e44f.js +1 -0
  10. package/dist/web/_next/static/chunks/2163.2af0979126ae613a.js +1 -0
  11. package/dist/web/_next/static/chunks/714.410e2b61aa8c72b7.js +1 -0
  12. package/dist/web/_next/static/chunks/7220.2c4e5173a060769f.js +1 -0
  13. package/dist/web/_next/static/chunks/7921-3d21f385338afdf9.js +1 -0
  14. package/dist/web/_next/static/chunks/8124-1dc34be1646970a8.js +1 -0
  15. package/dist/web/_next/static/chunks/8584.61650a59d2bfa54d.js +1 -0
  16. package/dist/web/_next/static/chunks/895-a178f989a2e5d489.js +1 -0
  17. package/dist/web/_next/static/chunks/9067.553056fc9b6cf80e.js +1 -0
  18. package/dist/web/_next/static/chunks/9747.d5826524bf4b714d.js +1 -0
  19. package/dist/web/_next/static/chunks/app/page-13147b69cf336831.js +1 -0
  20. package/dist/web/_next/static/chunks/{webpack-864ad2757e758155.js → webpack-19a2d7161f23b21d.js} +1 -1
  21. package/dist/web/_next/static/css/{0e586e29189e8783.css → f152f27d6afce55c.css} +1 -1
  22. package/dist/web/defaults.html +2 -2
  23. package/dist/web/defaults.txt +8 -8
  24. package/dist/web/index.html +3 -3
  25. package/dist/web/index.txt +9 -9
  26. package/dist/web/queue.html +2 -2
  27. package/dist/web/queue.txt +9 -9
  28. package/dist/web/settings.html +2 -2
  29. package/dist/web/settings.txt +9 -9
  30. package/dist/web/system.html +2 -2
  31. package/dist/web/system.txt +9 -9
  32. package/package.json +173 -172
  33. package/dist/web/_next/static/chunks/1024-17c74da39fb738c9.js +0 -1
  34. package/dist/web/_next/static/chunks/1077.89c88ca151fa06dd.js +0 -1
  35. package/dist/web/_next/static/chunks/1548.0b1ef8dbcd9208ea.js +0 -1
  36. package/dist/web/_next/static/chunks/2163.2847204ac3bdefd8.js +0 -1
  37. package/dist/web/_next/static/chunks/714.49218f1c7d549cd8.js +0 -1
  38. package/dist/web/_next/static/chunks/7220.6aa4247d697dda80.js +0 -1
  39. package/dist/web/_next/static/chunks/7921-8f8cb241fa524eae.js +0 -1
  40. package/dist/web/_next/static/chunks/8124-2f07cc63c1494443.js +0 -1
  41. package/dist/web/_next/static/chunks/8584.183614d44db3689b.js +0 -1
  42. package/dist/web/_next/static/chunks/895-9c1f0751920e6624.js +0 -1
  43. package/dist/web/_next/static/chunks/9067.6516feb0a44702b6.js +0 -1
  44. package/dist/web/_next/static/chunks/9747.fddf84fbe4cd50ca.js +0 -1
  45. package/dist/web/_next/static/chunks/app/page-4a7cf5d83c000d73.js +0 -1
  46. /package/dist/web/_next/static/{UJ2ArYHXgNEpx4W-ZdIgB → WU_J4Ke1d3xVfpW2acqqf}/_buildManifest.js +0 -0
  47. /package/dist/web/_next/static/{UJ2ArYHXgNEpx4W-ZdIgB → WU_J4Ke1d3xVfpW2acqqf}/_ssgManifest.js +0 -0
@@ -34,7 +34,7 @@ import { describePlan, planFrom } from './planMode.js';
34
34
  import { chosenSaid } from './chosenAnswers.js';
35
35
  import { closeLedger, describeLedger, nextLedger } from './leadLedger.js';
36
36
  import { classifySubtaskEnd, describeAttempts, FAILURE_WORDS, retryMessage, retryPlan, sanitizedReason, sideEffectsOf, stepFacts, stepsOf } from './subtaskRetry.js';
37
- import { ACTOR_WORDS, applySessionModel, enterSessionConversation, holdsWhilePaused, limitsMessageLength, redactsMessages, runTask, Sink, speakFor, StoppedSend } from './taskRunner.js';
37
+ import { ACTOR_WORDS, applySessionModel, enterSessionConversation, holdsWhilePaused, limitsMessageLength, redactsMessages, runTask, Sink, speakFor, staysOnItsChat, StoppedSend } from './taskRunner.js';
38
38
  import { DEFAULT_VCS } from '../session/store.js';
39
39
  /** The assignment as the lead is given it: the operator's message, and what the runner tells it about the work. */
40
40
  export function assignmentMessage(task, n, facts, again) {
@@ -258,7 +258,8 @@ export async function runLeadTask(transport, session, task, deps) {
258
258
  return stopped;
259
259
  };
260
260
  // No message to the lead longer than Settings allow as text: the rest goes attached (2026-10-22).
261
- const leadChat = redactsMessages(limitsMessageLength(holdsWhilePaused(transport, holdHere), {
261
+ // Each one into the lead's own conversation, the window put back on it when it has left it (2026-11-09).
262
+ const leadChat = redactsMessages(limitsMessageLength(holdsWhilePaused(staysOnItsChat(transport, signal), holdHere), {
262
263
  get max() {
263
264
  return cfg.limits.maxMessageChars;
264
265
  },
@@ -14,7 +14,7 @@ import { createHash } from 'node:crypto';
14
14
  import { readFile, mkdir, writeFile, appendFile } from 'node:fs/promises';
15
15
  import { basename, join, resolve } from 'node:path';
16
16
  import { buttonShows, normModel } from '../transport/modelMatch.js';
17
- import { createTransport, isReplyTimeout, WindowClosed } from '../transport/chatTransport.js';
17
+ import { ChatLost, createTransport, isReplyTimeout, WindowClosed } from '../transport/chatTransport.js';
18
18
  import { buildChatName, chatCode, loadPointer, savePointer } from '../transport/chatSession.js';
19
19
  import { parseReply, formatErrorMessage, findLikelyDamage, damageGuidance } from '../protocol/parser.js';
20
20
  import { resolveDeviations, describeDeviations, mergeDisputes, describeDisputes } from '../protocol/replySchema.js';
@@ -287,6 +287,37 @@ export class StoppedSend extends Error {
287
287
  this.name = 'StoppedSend';
288
288
  }
289
289
  }
290
+ /**
291
+ * The same chat, whose every message goes into the conversation the runner put the window on (operator, 2026-11-09: a
292
+ * task left paused, or waiting on a card, for some days went on in a new chat on Auto — the page had left its
293
+ * conversation, and the next message went wherever the page was). Before each message the window is asked whether it is
294
+ * still there and put back when it is not (`ensureOnChat`): every moment the work goes on after a wait — a pause, a card,
295
+ * commands handed over — is the moment it sends again. A conversation that will not open again ends the task, said as
296
+ * it is (`ChatLost`), with nothing sent; a Stop pressed while a sign-in is waited for there ends it as stopped.
297
+ *
298
+ * Put inside `holdsWhilePaused`, so the window is looked at when the work goes on after a pause, not before it.
299
+ */
300
+ export function staysOnItsChat(transport, signal) {
301
+ return new Proxy(transport, {
302
+ get(target, key) {
303
+ if (key === 'sendAndConfirm') {
304
+ return async (...args) => {
305
+ try {
306
+ await target.ensureOnChat({ signal });
307
+ }
308
+ catch (e) {
309
+ if (signal?.aborted)
310
+ throw new StoppedSend();
311
+ throw e;
312
+ }
313
+ return await target.sendAndConfirm(...args);
314
+ };
315
+ }
316
+ const value = Reflect.get(target, key, target);
317
+ return typeof value === 'function' ? value.bind(target) : value;
318
+ },
319
+ });
320
+ }
290
321
  /**
291
322
  * The same chat, whose every message waits while the operator has paused the task ("Pause", 2026-10-20). The
292
323
  * runner sends from a dozen places — the task, each round's report, format repairs, the plan, the review, the
@@ -447,12 +478,16 @@ signal) {
447
478
  'reply-files-ignored': 'The reply came with a file attached. It was not downloaded and will not be run: the runner takes only the text of a reply.',
448
479
  'model-menu-stuck': 'The model menu would not close — Escape, the menu button and a click outside all left it open. Close it in the Edge window; the run goes on.',
449
480
  'window-closed': 'The Edge window was closed. A run in it stops; the next message opens a new one.',
481
+ // The window left its conversation while the work waited (2026-11-09): put back before anything is sent.
482
+ 'chat-left': `The Copilot window is no longer on this conversation (it shows ${String(detail?.found ?? 'another page')}). Going back to it before anything is sent.`,
483
+ 'chat-returned': `Back on this conversation${detail?.signedIn ? ', after the sign-in' : ''}${detail?.by === 'name' ? ', found by its name in the sidebar' : ''}. The work goes on there.`,
484
+ 'chat-lost': 'The conversation could not be opened again, by its address or by its name. Nothing was sent, and nothing went into another chat.',
450
485
  };
451
486
  for (const id of new Set(speaker.alone ? [speaker.id] : [speaker.id, sessionId])) {
452
487
  bus.publish({
453
488
  sessionId: id,
454
489
  type: `browser:${event}`,
455
- level: event === 'verification-required' || event === 'reply-files-ignored' || event === 'model-menu-stuck' ? 'warn' : 'info',
490
+ level: event === 'chat-lost' ? 'error' : event === 'verification-required' || event === 'reply-files-ignored' || event === 'model-menu-stuck' || event === 'chat-left' ? 'warn' : 'info',
456
491
  // An event with no sentence of its own is named, not said as "undefined".
457
492
  message: spoken[event] ?? event.replace(/-/g, ' '),
458
493
  data: detail,
@@ -1055,6 +1090,8 @@ export async function runTask(transport, session, task, deps) {
1055
1090
  sink.event('task-resumed', { before, heldMs, stopped }, stopped ? `stopped while paused, after ${secs} s` : `continued by the operator after ${secs} s paused; that time does not count against maxRunMinutes`);
1056
1091
  return stopped;
1057
1092
  };
1093
+ // Each message into the conversation the window was put on, looked at after the pause it held for (2026-11-09).
1094
+ transport = staysOnItsChat(transport, signal);
1058
1095
  transport = holdsWhilePaused(transport, () => holdHere('message'));
1059
1096
  // No message longer than Settings allow as text: the rest goes attached (2026-10-22, see `limitsMessageLength`).
1060
1097
  // The limit and the patterns as Settings have them when each message goes (2026-11-03: a save takes effect at once).
@@ -3454,6 +3491,13 @@ export async function runTask(transport, session, task, deps) {
3454
3491
  // Nor is a window the operator closed, which no retry reaches.
3455
3492
  if (isReplyTimeout(e) || transport.closedOutside())
3456
3493
  throw e;
3494
+ /*
3495
+ * Nor a Stop, which ended it before it went (it waited out every retry's pause before), nor a conversation the
3496
+ * window could not be put back on (2026-11-09): each retry went back to its address, and to a sign-in wait of
3497
+ * the whole sign-in time, before saying the same.
3498
+ */
3499
+ if (e instanceof StoppedSend || e instanceof ChatLost || signal?.aborted)
3500
+ throw e;
3457
3501
  sink.event('report-send-failed', { attempt, error: String(e) }, `sending the report failed (attempt ${attempt + 1}): ${e.message}`, 'warn');
3458
3502
  if (attempt === cfg.report.uploadRetries) {
3459
3503
  const body = await readFile(report.paths[0], 'utf8');
@@ -1130,6 +1130,14 @@ export const SYSTEM_GUIDE = [
1130
1130
  doesEn: 'Final for that script: tells the chat you will not run it, with what you wrote as the reason; it goes on without it or ends blocked.',
1131
1131
  doesBg: 'Окончателно за този скрипт: казва на чата, че няма да го пуснете, с написаното като причина; той продължава без него или приключва като блокиран.',
1132
1132
  },
1133
+ {
1134
+ key: 'copy.all',
1135
+ kind: 'button',
1136
+ en: 'Copy all',
1137
+ bg: 'Копирай всичко',
1138
+ doesEn: 'Last on every card where the bot waits for you — a question, a command, a plan, commands to run yourself, a subtask cut off, the model, a task set aside: copies all the card says, the text, the answers offered, the commands and each script in full.',
1139
+ doesBg: 'Последен на всяка карта, на която ботът ви чака — въпрос, команда, план, команди за пускане от вас, прекъсната подзадача, модел, оставена настрана задача: копира всичко, което казва картата — текста, предложените отговори, командите и всеки скрипт изцяло.',
1140
+ },
1133
1141
  {
1134
1142
  key: 'approval.openChat',
1135
1143
  kind: 'link',
@@ -20,7 +20,7 @@
20
20
  * running in this process — a check script — can call `setTransportFactory`.
21
21
  */
22
22
  import { CopilotTransport } from './copilotTransport.js';
23
- export { ReplyTimeoutError, isReplyTimeout, WindowClosed } from './copilotTransport.js';
23
+ export { ReplyTimeoutError, isReplyTimeout, WindowClosed, ChatLost } from './copilotTransport.js';
24
24
  const realChat = (opts) => new CopilotTransport(opts);
25
25
  let factory = realChat;
26
26
  /** A chat for these options: the real Copilot window, unless a check has put a scripted one in. */
@@ -140,6 +140,37 @@ export class WindowClosed extends Error {
140
140
  this.name = 'WindowClosed';
141
141
  }
142
142
  }
143
+ /**
144
+ * The window had left the conversation the bot put it on, and could not be put back (operator, 2026-11-09; see
145
+ * `ensureOnChat`): the conversation does not open again, or the sign-in the page asked for first was not done in time.
146
+ * Nothing was sent: not to it, and not to the page the window was on instead, another conversation or a new one on
147
+ * Copilot's home page. Nothing that sends again gets past it either, so a caller's retries do not try (see `runTask`).
148
+ */
149
+ export class ChatLost extends Error {
150
+ chatId;
151
+ found;
152
+ constructor(chatId,
153
+ /** Where the window was: its address without the query. */
154
+ found, message) {
155
+ super(message ??
156
+ `Copilot's window was no longer on this conversation (${chatId}): it showed ${found}. The conversation could not be ` +
157
+ 'opened again, by its address or by its name in the sidebar, so nothing was sent, and nothing went into another chat. ' +
158
+ "Look in Copilot's sidebar in the Edge window to see whether the conversation is still there.");
159
+ this.chatId = chatId;
160
+ this.found = found;
161
+ this.name = 'ChatLost';
162
+ }
163
+ }
164
+ /** An address without its query and fragment, which may carry an account's name: what a record says of where a page was. */
165
+ export function whereIs(url) {
166
+ try {
167
+ const u = new URL(url);
168
+ return u.protocol === 'about:' ? url : `${u.origin}${u.pathname}`;
169
+ }
170
+ catch {
171
+ return url.replace(/[?#].*$/, '').slice(0, 200);
172
+ }
173
+ }
143
174
  /** The id of the notice's element in the chat's page, so the next one, and `clearNotice`, find it. */
144
175
  const NOTICE_ID = 'copilot-operator-notice';
145
176
  /**
@@ -245,6 +276,19 @@ export class CopilotTransport {
245
276
  locatorProblems;
246
277
  /** Whether the rows' locator has been said not to work in the page (see `readMenuRows`). */
247
278
  rowsLocatorFailed = false;
279
+ /**
280
+ * The conversation the bot itself put this window on (operator, 2026-11-09: a task paused, or waiting on a card, for
281
+ * some days went on in a new chat on Auto — the page had left its conversation meanwhile, and the next message went
282
+ * wherever the page was). `{ id }` once the conversation has an address; `'new'` for a new one not yet answered, which
283
+ * gets its address with its first answer (`waitForReply`); null where none is expected, as on Copilot's home page after
284
+ * a sign-in, before a run enters its conversation. Set only by what moves the page on purpose — `newChat`,
285
+ * `openConversation`, `openConversationByName`, `ensureSignedIn`, `gotoChatAs`, `signOut` — and read by `ensureOnChat`.
286
+ */
287
+ onChat = null;
288
+ /** The name each conversation was given, or found by, in the sidebar: the way back to it when its address does not open it. */
289
+ chatNames = new Map();
290
+ /** How long a page is given to show the composer before it is taken to be asking for a sign-in. */
291
+ firstLookMs = 15_000;
248
292
  constructor(opts) {
249
293
  this.opts = opts;
250
294
  const { locators, problems } = resolvePickerLocators(opts.pickerLocators);
@@ -508,6 +552,7 @@ export class CopilotTransport {
508
552
  * without anyone choosing it.
509
553
  */
510
554
  async signOut() {
555
+ this.onChat = null;
511
556
  this.emit('signing-out');
512
557
  await this.p
513
558
  .goto('https://login.microsoftonline.com/common/oauth2/v2.0/logout', {
@@ -531,6 +576,7 @@ export class CopilotTransport {
531
576
  target.searchParams.set('login_hint', upn);
532
577
  target.searchParams.set('prompt', 'select_account');
533
578
  }
579
+ this.onChat = null;
534
580
  await this.p.goto(target.toString(), { waitUntil: 'domcontentloaded' });
535
581
  }
536
582
  /** Throws with an explanation when the profile is not on the work Copilot. */
@@ -640,13 +686,15 @@ Current URL: ${url}`);
640
686
  * types credentials; it only waits for the composer to appear.
641
687
  */
642
688
  async ensureSignedIn(url = this.opts.chatUrl, opts = {}) {
689
+ // Copilot's home page, where no conversation is expected until the run enters one.
690
+ this.onChat = null;
643
691
  await this.p.goto(url, { waitUntil: 'domcontentloaded' });
644
692
  /*
645
693
  * Looked for a second at a time, so a Stop pressed while the page loads or the operator has not signed in yet
646
694
  * ends the wait at once, rather than after the whole sign-in timeout, fifteen minutes by default (2026-10-17).
647
695
  */
648
696
  const stoppedHere = 'stopped by the operator while waiting for the sign-in';
649
- if (!(await this.composerWithin(15_000, opts.signal, stoppedHere))) {
697
+ if (!(await this.composerWithin(this.firstLookMs, opts.signal, stoppedHere))) {
650
698
  this.emit('sign-in-required', { url: this.p.url() });
651
699
  if (!(await this.composerWithin(this.opts.signInTimeoutMs, opts.signal, stoppedHere))) {
652
700
  throw new Error(`The sign-in was not completed within ${Math.round(this.opts.signInTimeoutMs / 1000)} s (Settings → copilot.signInTimeoutSec). ` +
@@ -658,28 +706,120 @@ Current URL: ${url}`);
658
706
  await this.assertWorkSurface();
659
707
  }
660
708
  async newChat() {
709
+ this.onChat = null;
661
710
  await this.p.goto(Url.newChat, { waitUntil: 'domcontentloaded' });
662
711
  await this.composer().waitFor({ state: 'visible' });
663
712
  await this.dismissPopups();
713
+ this.onChat = 'new';
664
714
  }
665
715
  /** Reopens a conversation by its id. Returns false when it no longer opens. */
666
716
  async openConversation(chatId) {
717
+ this.onChat = null;
667
718
  await this.p.goto(Url.conversation(chatId), { waitUntil: 'domcontentloaded' });
668
719
  if (!(await this.isChatReady(20_000)))
669
720
  return false;
670
- return parseChatId(this.p.url()) === chatId;
721
+ const there = parseChatId(this.p.url()) === chatId;
722
+ if (there)
723
+ this.onChat = { id: chatId };
724
+ return there;
671
725
  }
672
726
  /** Finds a conversation by its exact name in the sidebar. */
673
727
  async openConversationByName(name) {
674
728
  const row = this.p.locator(`${Sidebar.conversationLink}[aria-label="${name.replace(/"/g, '\\"')}"]`);
675
729
  if ((await row.count()) === 0)
676
730
  return false;
731
+ // The conversation it is, from the link's own address: the page's follows a moment after the click.
732
+ const href = await row.first().getAttribute('href').catch(() => null);
733
+ this.onChat = null;
677
734
  await row.first().click();
678
- return await this.isChatReady(20_000);
735
+ if (!(await this.isChatReady(20_000)))
736
+ return false;
737
+ const id = parseChatId(href ?? '') ?? parseChatId(this.p.url());
738
+ if (id) {
739
+ this.onChat = { id };
740
+ this.chatNames.set(id, name);
741
+ }
742
+ return true;
679
743
  }
680
744
  async currentChatId() {
681
745
  return parseChatId(this.p.url());
682
746
  }
747
+ /** The conversation id in the page's address, waited for up to `ms`: null when it shows none by then. */
748
+ async addressId(ms) {
749
+ const until = Date.now() + ms;
750
+ for (;;) {
751
+ const id = parseChatId(this.p.url());
752
+ if (id || Date.now() >= until)
753
+ return id;
754
+ await this.p.waitForTimeout(200);
755
+ }
756
+ }
757
+ /**
758
+ * Puts the window back on the conversation the bot put it on, when it has left it (operator, 2026-11-09: "after every
759
+ * return to the bot — an action taken, a pause ended — check that we are on the right chat, by the address taken at
760
+ * its start; if not, go back to it and carry on from there"). The runner asks this before every message it sends
761
+ * (`staysOnItsChat` in taskRunner.ts), which is every moment the work goes on after a wait: a pause, a card answered,
762
+ * commands handed over, a sign-in.
763
+ *
764
+ * What is compared is the conversation's id in the page's address, a uuid, the one the run keeps on record: unique,
765
+ * and the same whatever the conversation is called. When the page shows another, or none — Copilot's home page, a new
766
+ * chat on Auto, the sign-in page of a session that ran out, a conversation the operator opened from the sidebar — the
767
+ * conversation is opened again by its address, and when the page asks for a sign-in first, the operator signing in is
768
+ * waited for as at the start (`sign-in-required`; the run's Stop ends the wait); then by the name it was given in the
769
+ * sidebar. The page is never written in where it was found: a conversation that will not open again ends with
770
+ * `ChatLost`, and the next message is not sent anywhere either.
771
+ *
772
+ * A new conversation has no address until its first answer, so before that nothing can be compared; it takes the one
773
+ * the page shows from then on.
774
+ */
775
+ async ensureOnChat(opts = {}) {
776
+ const want = this.onChat;
777
+ if (!want)
778
+ return { at: 'unknown' };
779
+ const now = parseChatId(this.p.url());
780
+ if (want === 'new') {
781
+ if (now)
782
+ this.onChat = { id: now };
783
+ return { at: 'here' };
784
+ }
785
+ if (now === want.id)
786
+ return { at: 'here' };
787
+ const from = whereIs(this.p.url());
788
+ this.emit('chat-left', { chatId: want.id, found: from });
789
+ const stopped = 'stopped by the operator while waiting for the sign-in';
790
+ let signedIn = false;
791
+ for (let tries = 0; tries < 3; tries += 1) {
792
+ await this.p.goto(Url.conversation(want.id), { waitUntil: 'domcontentloaded' });
793
+ if (await this.composerWithin(this.firstLookMs, opts.signal, stopped)) {
794
+ if (parseChatId(this.p.url()) !== want.id)
795
+ break;
796
+ this.onChat = want;
797
+ await this.dismissPopups().catch(() => undefined);
798
+ this.emit('chat-returned', { chatId: want.id, by: 'address', signedIn, from });
799
+ return { at: 'returned', chatId: want.id, from, by: 'address', signedIn };
800
+ }
801
+ // No composer: the session ran out while the window waited, and the page asks for a sign-in — the operator's.
802
+ this.emit('sign-in-required', { url: whereIs(this.p.url()) });
803
+ await this.p.bringToFront().catch(() => undefined);
804
+ if (!(await this.composerWithin(this.opts.signInTimeoutMs, opts.signal, stopped))) {
805
+ this.onChat = want;
806
+ throw new ChatLost(want.id, from, `The chat asked for a sign-in before going back to this conversation, and it was not completed within ${Math.round(this.opts.signInTimeoutMs / 1000)} s ` +
807
+ '(Settings → copilot.signInTimeoutSec). Nothing was sent. Sign in in the open Edge window, then continue the task.');
808
+ }
809
+ this.emit('signed-in');
810
+ signedIn = true;
811
+ // A sign-in comes back to Copilot's home page, not to the conversation: its address is opened again.
812
+ }
813
+ const name = this.chatNames.get(want.id);
814
+ if (name && (await this.openConversationByName(name).catch(() => false)) && (await this.addressId(5_000)) === want.id) {
815
+ this.emit('chat-returned', { chatId: want.id, by: 'name', name, signedIn, from });
816
+ return { at: 'returned', chatId: want.id, from, by: 'name', signedIn };
817
+ }
818
+ // Still the one expected: the next message is not sent to the page found either.
819
+ this.onChat = want;
820
+ this.emit('chat-lost', { chatId: want.id, found: from });
821
+ throw new ChatLost(want.id, from);
822
+ }
683
823
  /**
684
824
  * Best-effort dismissal of first-run dialogs. Unknown ones are left alone and reported.
685
825
  *
@@ -795,6 +935,7 @@ Current URL: ${url}`);
795
935
  return false;
796
936
  }
797
937
  this.emit('chat-named', { chatId, name: wanted, ...(wanted !== name ? { asked: name } : {}) });
938
+ this.chatNames.set(chatId, wanted);
798
939
  return wanted;
799
940
  }
800
941
  catch (e) {
@@ -2013,6 +2154,12 @@ Current URL: ${url}`);
2013
2154
  this.emit('reply-files-ignored', { files: attachments });
2014
2155
  const codeBlocksDom = await this.lastAnswerCodeBlocks();
2015
2156
  const { markdown, degraded } = await this.copyLastReply();
2157
+ // A new conversation has its address once it has answered: from now on, the one `ensureOnChat` holds the page to.
2158
+ if (this.onChat === 'new') {
2159
+ const id = parseChatId(this.p.url());
2160
+ if (id)
2161
+ this.onChat = { id };
2162
+ }
2016
2163
  this.emit('reply-received', {
2017
2164
  chars: markdown.length,
2018
2165
  degraded,
package/dist/web/404.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--UJ2ArYHXgNEpx4W_ZdIgB--><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/0e586e29189e8783.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-864ad2757e758155.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/8197-e2fcb43f38a2b4a7.js" async=""></script><script src="/_next/static/chunks/7921-8f8cb241fa524eae.js" async=""></script><script src="/_next/static/chunks/895-9c1f0751920e6624.js" async=""></script><script src="/_next/static/chunks/8124-2f07cc63c1494443.js" async=""></script><script src="/_next/static/chunks/app/layout-b8a1e0075a48b025.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{
1
+ <!DOCTYPE html><!--WU_J4Ke1d3xVfpW2acqqf--><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/f152f27d6afce55c.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-19a2d7161f23b21d.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/8197-e2fcb43f38a2b4a7.js" async=""></script><script src="/_next/static/chunks/7921-3d21f385338afdf9.js" async=""></script><script src="/_next/static/chunks/895-a178f989a2e5d489.js" async=""></script><script src="/_next/static/chunks/8124-1dc34be1646970a8.js" async=""></script><script src="/_next/static/chunks/app/layout-b8a1e0075a48b025.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 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="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</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><span class="nav-pair"><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></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-864ad2757e758155.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,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-8f8cb241fa524eae.js\",\"895\",\"static/chunks/895-9c1f0751920e6624.js\",\"8124\",\"static/chunks/8124-2f07cc63c1494443.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.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/0e586e29189e8783.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"UJ2ArYHXgNEpx4W-ZdIgB\",\"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/0e586e29189e8783.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>
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="/queue"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10M17 16l3 2-3 2z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round" stroke-linecap="round"></path></svg><span>Queue</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><span class="nav-pair"><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></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-19a2d7161f23b21d.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,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-3d21f385338afdf9.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dc34be1646970a8.js\",\"7177\",\"static/chunks/app/layout-b8a1e0075a48b025.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/f152f27d6afce55c.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"WU_J4Ke1d3xVfpW2acqqf\",\"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/f152f27d6afce55c.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>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1024],{14236:(e,s,n)=>{n.d(s,{Y:()=>o});var t=n(73365),a=n(1521),l=n(8205);function o(e){let{id:s,q:n,locked:o,mark:r,rows:i=3,onAnswer:d,children:c}=e,{t:p}=(0,l.kj)(),[m,u]=(0,a.useState)(""),[h,v]=(0,a.useState)([]),x=!!n.multiple;return(0,t.jsxs)(t.Fragment,{children:[x&&n.options.length>0&&(0,t.jsx)("p",{className:"small cs-many-hint",children:p("chat.manyHint",{send:p("chat.sendChosen"),answer:p("lead.answer")})}),n.options.length>0&&(0,t.jsx)("div",{className:"row cs-options",children:n.options.map((e,s)=>{var a;return x?(0,t.jsx)("button",{type:"button",className:"cs-option","aria-pressed":h.includes(s),disabled:o,onClick:()=>v(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s].sort((e,s)=>e-s)),title:0===s?p("chat.optionRecommended"):void 0,children:(0,t.jsx)("span",{children:e})},s):(0,t.jsxs)("button",{type:"button",className:0===s?"primary cs-option":"cs-option",...r("option-".concat(s)),onClick:()=>d("option-".concat(s),{text:e}),title:0===s?p("chat.optionRecommended"):void 0,children:[(0,t.jsx)("span",{children:e}),(null==(a=n.commands)?void 0:a[s])&&(0,t.jsx)("code",{className:"cs-option-run",children:p("chat.optionRuns",{cmd:n.commands[s]})})]},s)})}),(0,t.jsx)("label",{htmlFor:"".concat(s,"-answer"),className:"small",children:p("lead.answer")}),(0,t.jsx)("textarea",{id:"".concat(s,"-answer"),className:"prose",rows:i,value:m,onChange:e=>u(e.target.value),placeholder:p(x?"chat.manyPlaceholder":"lead.answerPlaceholder"),disabled:o}),(0,t.jsxs)("div",{className:"row",children:[x?(0,t.jsx)("button",{type:"button",className:"primary",...r(h.length>0?"chosen":"written"),disabled:o||0===h.length&&!m.trim(),onClick:()=>h.length>0?d("chosen",{text:m,chosen:h}):d("written",{text:m}),children:p("chat.sendChosen")}):(0,t.jsx)("button",{type:"button",className:"primary",...r("written"),disabled:o||!m.trim(),onClick:()=>d("written",{text:m}),children:p("lead.send")}),c]})]})}},24784:(e,s,n)=>{n.d(s,{Yb:()=>i,u:()=>r});var t=n(73365),a=n(1521),l=n(15549),o=n(8205);let r="::by-hand::";function i(e){var s,n,i;let{id:d,chosen:c,onChange:p,none:m,byHand:u,catalogue:h,disabled:v=!1,style:x}=e,{t:j}=(0,o.kj)(),k=function(e){let[s,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{if(void 0!==e)return;let s=!0;return l.FH.models().then(e=>{s&&n(e)}).catch(()=>void 0),()=>{s=!1}},[e]),void 0!==e?e:s}(h),b=null!=(s=null==k?void 0:k.options)?s:[],w=e=>e.toLowerCase().replace(/[-‐‑‒–—_]+/g," ").replace(/\s+/g," ").trim(),y=c&&c!==r?b.find(e=>w(e.name)===w(c)):void 0,N=null!=(n=null==y?void 0:y.name)?n:c,f=!!y||c===r&&void 0!==u,g=b.filter(e=>!e.group),C=new Map;for(let e of b)e.group&&C.set(e.group,[...null!=(i=C.get(e.group))?i:[],e]);return(0,t.jsxs)("select",{id:d,value:N,onChange:e=>p(e.target.value),disabled:v,style:{width:"auto",minWidth:280,...x},children:[void 0!==u&&(0,t.jsx)("option",{value:r,children:u}),void 0!==m&&(0,t.jsx)("option",{value:"",children:m}),c&&!f&&(0,t.jsx)("option",{value:c,children:j("model.notInList",{name:c})}),g.map(e=>(0,t.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name)),[...C.entries()].map(e=>{let[s,n]=e;return(0,t.jsx)("optgroup",{label:s,children:n.map(e=>(0,t.jsxs)("option",{value:e.name,disabled:e.disabled,children:[e.name,e.disabled?" — ".concat(j("model.unavailable")):""]},e.name))},s)})]})}},34982:(e,s,n)=>{n.d(s,{a:()=>h});var t=n(73365),a=n(1521),l=n(8205),o=n(33389),r=n(24872),i=n(79717),d=n(8898),c=n(44504),p=n(14236),m=n(65132),u=n(68176);function h(e){var s;let{parked:n,onAnswer:h}=e,{t:v}=(0,l.kj)(),x=(0,l.W3)(),j=(0,a.useId)(),[k,b]=(0,a.useState)(""),{locked:w,err:y,choose:N,mark:f}=(0,o.p)(),[g,C]=(0,a.useState)(""),q=n.approval,F=async(e,s)=>{await N(e,()=>h(s))&&C("stop"in s?"stopped":"answered")};return n.answer||g?(0,t.jsx)("p",{className:"small pk-answered",role:"status",children:v("stopped"===g?"pk.stopped":"pk.answered")}):(0,t.jsxs)("div",{className:"pk",role:"group","aria-label":v("pk.title"),children:[(0,t.jsxs)("p",{className:"small pk-head",children:[(0,t.jsx)("strong",{children:v("pk.title")})," ",(0,t.jsx)("span",{className:"muted",children:v("pk.since",{at:x(n.at),what:v(c.v1[n.kind])})})]}),"plan"===n.kind&&q.plan&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.D,{plan:q.plan.plan,showApproval:!1}),(0,t.jsx)("label",{htmlFor:"".concat(j,"-note"),className:"small",children:v("pm.note")}),(0,t.jsx)(d.F,{id:"".concat(j,"-note-hint")}),(0,t.jsx)("textarea",{id:"".concat(j,"-note"),className:"prose",rows:2,value:k,onChange:e=>b(e.target.value),placeholder:v("pm.notePlaceholder"),"aria-describedby":"".concat(j,"-note-hint"),disabled:w}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("button",{type:"button",className:"primary",...f("approve"),onClick:()=>void F("approve",{decision:"approve",...k.trim()?{note:k.trim()}:{}}),children:v("pk.approve")}),(0,t.jsx)(d.r,{note:k,label:"pk.revise",approve:"pk.approve",choice:f("revise"),onPress:()=>void F("revise",{decision:"revise",note:k.trim()})})]})]}),"question"===n.kind&&(null==(s=q.question)?void 0:s.handoff)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Lp,{card:q.question.handoff,why:q.question.text}),(0,t.jsx)("label",{htmlFor:"".concat(j,"-out"),className:"small",children:v("ho.output")}),(0,t.jsx)("textarea",{id:"".concat(j,"-out"),className:"prose",rows:4,dir:"ltr",value:k,onChange:e=>b(e.target.value),placeholder:v("ho.outputPlaceholder"),disabled:w}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("button",{type:"button",className:"primary",...f("ran"),disabled:w||!k.trim(),onClick:()=>void F("ran",{answer:k.trim(),ran:!0,outcome:"ran"}),children:v("ho.send")}),(0,t.jsx)("button",{type:"button",...f("revise"),disabled:w||!k.trim(),onClick:()=>void F("revise",{answer:k.trim(),outcome:"revise"}),title:v("pk.handoffReviseWhy"),children:v("ho.revise")}),(0,t.jsx)("button",{type:"button",...f("declined"),onClick:()=>void F("declined",{answer:k.trim(),ran:!1,outcome:"declined"}),title:v("ho.notRunWhy"),children:v("ho.notRun")})]})]}),"question"===n.kind&&q.question&&!q.question.handoff&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.s,{text:q.question.text}),q.question.why&&(0,t.jsx)("p",{className:"muted small",children:q.question.why}),(0,t.jsx)("div",{className:"cs-copy-row",children:(0,t.jsx)(r.i8,{text:(0,c.yw)(v,q.question,!0),what:"chat.copyQuestion"})}),(0,t.jsx)(p.Y,{id:j,q:q.question,locked:w,mark:f,rows:2,onAnswer:(e,s)=>void F(e,{answer:s.text.trim(),...s.chosen?{chosen:s.chosen}:{}})})]}),"retry"===n.kind&&q.retry&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"small",children:[v("retry.title",{n:q.retry.n})," — ",q.retry.title]}),q.retry.reason&&(0,t.jsx)("p",{className:"small",children:v("retry.reason",{reason:q.retry.reason})}),"unknown"===q.retry.sideEffects&&(0,t.jsx)("p",{className:"reason small",children:v("retry.unknown")}),(0,t.jsx)("div",{className:"row",children:q.retry.choices.map((e,s)=>(0,t.jsx)("button",{type:"button",className:0===s?"primary":void 0,...f(e),onClick:()=>void F(e,{choice:e}),children:v(c.Sx[e])},e))})]}),"command"===n.kind&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("pre",{className:"cs-out",children:q.description}),q.platform&&(0,t.jsx)("p",{className:"reason small",children:v("approval.platform",{platform:q.platform})}),q.readOnly&&(0,t.jsx)("p",{className:"reason small",children:v("approval.readOnly")}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("button",{type:"button",className:"primary",...f("run"),onClick:()=>void F("run",{decision:"run"}),children:v("pk.run")}),(0,t.jsx)("button",{type:"button",...f("skip"),onClick:()=>void F("skip",{decision:"skip"}),children:v("pk.skip")})]})]}),("model"===n.kind||"password"===n.kind)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"small",children:v("model"===n.kind?"pk.modelWhy":"pk.passwordWhy")}),(0,t.jsx)("div",{className:"row",children:(0,t.jsx)("button",{type:"button",className:"primary",...f("resume"),onClick:()=>void F("resume",{resume:!0}),children:v("pk.resume")})})]}),(0,t.jsx)("div",{className:"row pk-stop",children:(0,t.jsx)("button",{type:"button",className:"quiet",...f("stop"),onClick:()=>void F("stop",{stop:!0}),children:v("pk.stop")})}),y&&(0,t.jsx)("p",{className:"err",role:"alert",children:y}),(0,t.jsx)(r.T4,{text:(0,c.dg)(v,n,x(n.at))})]})}},41370:(e,s,n)=>{n.d(s,{q:()=>a});var t=n(1521);function a(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:450,[n,a]=(0,t.useState)(1);return(0,t.useEffect)(()=>{if(!e)return void a(1);let n=window.setInterval(()=>a(e=>e%3+1),s);return()=>window.clearInterval(n)},[e,s]),".".repeat(n)}}}]);