copilot-operator 0.1.85 → 0.1.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/operator.controller.js +89 -3
- package/dist/src/api/operator.service.js +200 -2
- package/dist/src/api/server.js +5 -1
- package/dist/src/cli.js +6 -0
- package/dist/src/config/live.js +1 -1
- package/dist/src/config/schema.js +27 -0
- package/dist/src/orchestrator/kerriganRunner.js +3 -1
- package/dist/src/orchestrator/leadRunner.js +3 -1
- package/dist/src/orchestrator/taskRunner.js +64 -32
- package/dist/src/plan/systemGuide.js +193 -4
- package/dist/src/session/compose.js +5 -1
- package/dist/src/session/locatorFailures.js +55 -0
- package/dist/src/transport/chatTransport.js +6 -2
- package/dist/src/transport/copilotTransport.js +519 -59
- package/dist/src/transport/keptWindow.js +250 -0
- package/dist/src/transport/locators.js +140 -9
- package/dist/src/transport/pageHtml.js +62 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1077.1cc6d439e3dd0fa9.js +1 -0
- package/dist/web/_next/static/chunks/1548.3de9dc874e47558e.js +1 -0
- package/dist/web/_next/static/chunks/2163.66458fb9c54fb52d.js +1 -0
- package/dist/web/_next/static/chunks/714.cffed2b87154be0f.js +1 -0
- package/dist/web/_next/static/chunks/7220.30b6a3e1bd41e51a.js +1 -0
- package/dist/web/_next/static/chunks/7921-d3a4a261e08950e0.js +1 -0
- package/dist/web/_next/static/chunks/8584.36422ed19d6c43e9.js +1 -0
- package/dist/web/_next/static/chunks/9067.e579f97591576de2.js +1 -0
- package/dist/web/_next/static/chunks/9747.11247f0e21542f6d.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-7b5fa7c74ecd6939.js +1 -0
- package/dist/web/_next/static/chunks/app/page-b71841852e6b9ff5.js +1 -0
- package/dist/web/_next/static/chunks/app/queue/{page-317151444eda8115.js → page-7909ba7c9e3d4c2d.js} +1 -1
- package/dist/web/_next/static/chunks/app/settings/page-7651920337bbb580.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-13ccb80d7b7094ca.js → webpack-78ec62098b09e4a0.js} +1 -1
- package/dist/web/_next/static/css/{6e2b8656501f0dd7.css → d74aa18c98dacdb4.css} +1 -1
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +8 -8
- package/dist/web/index.html +3 -3
- package/dist/web/index.txt +9 -9
- package/dist/web/queue.html +2 -2
- package/dist/web/queue.txt +9 -9
- package/dist/web/settings.html +2 -2
- package/dist/web/settings.txt +9 -9
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +9 -9
- package/package.json +4 -2
- package/dist/web/_next/static/chunks/1077.06fe73b2c16f8f49.js +0 -1
- package/dist/web/_next/static/chunks/1548.b38c5d8d00ab2a72.js +0 -1
- package/dist/web/_next/static/chunks/2163.ba933c9a506302ca.js +0 -1
- package/dist/web/_next/static/chunks/714.575273a189d030fe.js +0 -1
- package/dist/web/_next/static/chunks/7220.988dfd28e00f407c.js +0 -1
- package/dist/web/_next/static/chunks/7921-65dd56d87144bd44.js +0 -1
- package/dist/web/_next/static/chunks/8584.2221587201bc2fa2.js +0 -1
- package/dist/web/_next/static/chunks/9067.8d94a08830c3d1da.js +0 -1
- package/dist/web/_next/static/chunks/9747.8671194406acd839.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-127e5af1ebf21876.js +0 -1
- package/dist/web/_next/static/chunks/app/page-76139370c7ca3715.js +0 -1
- package/dist/web/_next/static/chunks/app/settings/page-116da78c83f0c5c9.js +0 -1
- /package/dist/web/_next/static/{aCQe1FDhYTj4zGeI5ueVq → 3VkK1sxEugkae88HSFR-i}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{aCQe1FDhYTj4zGeI5ueVq → 3VkK1sxEugkae88HSFR-i}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { WindowClosed } from './copilotTransport.js';
|
|
2
|
+
/** The chat asked for the answer it was writing when the window closed. */
|
|
3
|
+
export const ASK_AGAIN = 'The browser window was closed while you were writing your answer to my last message, so your answer did not reach ' +
|
|
4
|
+
'me. Send that answer again, in full and in the same format as before.';
|
|
5
|
+
/** Put before a message sent again after the window closed while it was being sent. */
|
|
6
|
+
export const SENT_AGAIN = '(Sent again: the browser window was closed while this message was being sent. If it reached you already, answer ' +
|
|
7
|
+
'this copy only.)';
|
|
8
|
+
/** Why a message stopped when its window was closed and Settings say not to open it again. */
|
|
9
|
+
export const CLOSED_NOT_REOPENED = 'the browser window was closed; nothing more was sent';
|
|
10
|
+
export class KeptWindow {
|
|
11
|
+
inner;
|
|
12
|
+
speak;
|
|
13
|
+
/** Whether a message is at work: only then is a window closed under it opened again. */
|
|
14
|
+
atWork = false;
|
|
15
|
+
/** How many times it may still be opened again for the message at work, of how many. */
|
|
16
|
+
left = 0;
|
|
17
|
+
allowed = 0;
|
|
18
|
+
signal;
|
|
19
|
+
/** It is being opened again now. */
|
|
20
|
+
back = null;
|
|
21
|
+
/** Why the work on the message cannot go on in it: closed past the number, or not put back on its conversation. */
|
|
22
|
+
gaveUp = null;
|
|
23
|
+
/** How many times it has gone, so a call can tell it went while it ran. */
|
|
24
|
+
generation = 0;
|
|
25
|
+
/** Which of those the last message sent went out in: an answer is read only from the window its message went in. */
|
|
26
|
+
sentIn = -1;
|
|
27
|
+
constructor(inner, speak = () => undefined) {
|
|
28
|
+
this.inner = inner;
|
|
29
|
+
this.speak = speak;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A message is at work: a window closed under it is opened again up to `times` times (`limits.reopenWindow`; 0 is
|
|
33
|
+
* none, as before 2026-11-13), and its Stop ends a reopening under way. Called for each message the runner takes.
|
|
34
|
+
*/
|
|
35
|
+
holdWindow(times, signal) {
|
|
36
|
+
this.atWork = true;
|
|
37
|
+
this.allowed = Math.max(0, Math.floor(times));
|
|
38
|
+
this.left = this.allowed;
|
|
39
|
+
this.signal = signal;
|
|
40
|
+
this.gaveUp = null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* No message at work any more: a window closed now is the next message's to open. Waits for a reopening under way; the
|
|
44
|
+
* window is then what it is — open, or gone — for whoever holds it next.
|
|
45
|
+
*/
|
|
46
|
+
async releaseWindow() {
|
|
47
|
+
this.atWork = false;
|
|
48
|
+
await this.back?.catch(() => undefined);
|
|
49
|
+
this.gaveUp = null;
|
|
50
|
+
}
|
|
51
|
+
/** How many times the window was opened again for the message at work. */
|
|
52
|
+
reopenedTimes() {
|
|
53
|
+
return this.allowed - this.left;
|
|
54
|
+
}
|
|
55
|
+
/** Told by the window when it went (its `window-closed`): opened again at once while a message is at work. */
|
|
56
|
+
windowWent() {
|
|
57
|
+
this.generation += 1;
|
|
58
|
+
if (!this.atWork || this.back)
|
|
59
|
+
return;
|
|
60
|
+
this.back = this.bringBack().finally(() => {
|
|
61
|
+
this.back = null;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
async bringBack() {
|
|
65
|
+
for (;;) {
|
|
66
|
+
if (this.signal?.aborted) {
|
|
67
|
+
this.gaveUp = new WindowClosed('the browser window was closed, and the work was stopped before it was opened again; nothing more was sent');
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (this.left <= 0) {
|
|
71
|
+
this.gaveUp = new WindowClosed(this.allowed === 0
|
|
72
|
+
? CLOSED_NOT_REOPENED
|
|
73
|
+
: `the browser window was closed ${this.allowed + 1} times while this message was at work; it was opened again ${this.allowed} time(s), ` +
|
|
74
|
+
'as many as Settings allow for one message (limits.reopenWindow), so nothing more was sent');
|
|
75
|
+
this.speak('window-not-reopened', { reason: this.gaveUp.message, times: this.allowed });
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
this.left -= 1;
|
|
79
|
+
const time = this.allowed - this.left;
|
|
80
|
+
const gen = this.generation;
|
|
81
|
+
this.speak('window-reopening', { time, of: this.allowed });
|
|
82
|
+
try {
|
|
83
|
+
const at = await this.inner.reopen({ signal: this.signal });
|
|
84
|
+
if (this.generation !== gen)
|
|
85
|
+
continue;
|
|
86
|
+
this.speak('window-reopened', { time, of: this.allowed, ...('chatId' in at ? { chatId: at.chatId } : {}) });
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
// Closed again while it was being opened: another time, if there is one left.
|
|
91
|
+
if (this.generation !== gen && !this.signal?.aborted)
|
|
92
|
+
continue;
|
|
93
|
+
const why = e.message;
|
|
94
|
+
this.gaveUp = new WindowClosed(e instanceof WindowClosed
|
|
95
|
+
? why
|
|
96
|
+
: this.signal?.aborted
|
|
97
|
+
? 'the browser window was closed, and the work was stopped while it was being opened again; nothing more was sent'
|
|
98
|
+
: `the browser window was closed, and it could not be opened again on its conversation: ${why}`);
|
|
99
|
+
this.speak('window-not-reopened', { reason: this.gaveUp.message, times: time });
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/** Before a call that needs the window: one being opened again is waited for; one that cannot be, said. */
|
|
105
|
+
async ready() {
|
|
106
|
+
if (!this.back && this.atWork && !this.gaveUp && this.inner.closedOutside())
|
|
107
|
+
this.windowWent();
|
|
108
|
+
if (this.back)
|
|
109
|
+
await this.back;
|
|
110
|
+
if (this.gaveUp)
|
|
111
|
+
throw this.gaveUp;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* A call on the window, made again when the window went while it ran and was opened again; `again` says it is the
|
|
115
|
+
* second time. Bounded by the number of times it may be opened: past it, `ready` throws.
|
|
116
|
+
*/
|
|
117
|
+
async withWindow(call) {
|
|
118
|
+
let again = false;
|
|
119
|
+
for (;;) {
|
|
120
|
+
await this.ready();
|
|
121
|
+
const gen = this.generation;
|
|
122
|
+
try {
|
|
123
|
+
return await call(again);
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
const went = gen !== this.generation || this.inner.closedOutside();
|
|
127
|
+
if (!went || !this.atWork)
|
|
128
|
+
throw e;
|
|
129
|
+
again = true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
async sendAndConfirm(text, attachments = [], maxAttempts) {
|
|
134
|
+
let wentIn = -1;
|
|
135
|
+
const before = await this.withWindow(async (again) => {
|
|
136
|
+
wentIn = this.generation;
|
|
137
|
+
if (again)
|
|
138
|
+
this.speak('message-sent-again', { chars: text.length });
|
|
139
|
+
return await this.inner.sendAndConfirm(again ? `${SENT_AGAIN}\n\n${text}` : text, attachments, maxAttempts);
|
|
140
|
+
});
|
|
141
|
+
// The window it went out in: closed as it was taken, its answer is asked for again (see `waitForReply`).
|
|
142
|
+
this.sentIn = wentIn;
|
|
143
|
+
return before;
|
|
144
|
+
}
|
|
145
|
+
async waitForReply(previousTurns) {
|
|
146
|
+
return await this.withWindow(async (again) => {
|
|
147
|
+
if (!again && this.sentIn === this.generation)
|
|
148
|
+
return await this.inner.waitForReply(previousTurns);
|
|
149
|
+
// The window its message went out in is gone, and with it the answer being written: asked for again.
|
|
150
|
+
const asked = this.generation;
|
|
151
|
+
const before = await this.inner.sendAndConfirm(ASK_AGAIN);
|
|
152
|
+
this.sentIn = asked;
|
|
153
|
+
this.speak('reply-asked-again', { text: ASK_AGAIN });
|
|
154
|
+
if (this.generation !== asked)
|
|
155
|
+
throw new WindowClosed('closed again as the answer was asked for');
|
|
156
|
+
return await this.inner.waitForReply(before);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/** Whether the window is gone for the work: closed, and not being opened again, or past opening again. */
|
|
160
|
+
closedOutside() {
|
|
161
|
+
if (this.gaveUp)
|
|
162
|
+
return true;
|
|
163
|
+
if (this.back)
|
|
164
|
+
return false;
|
|
165
|
+
return this.inner.closedOutside();
|
|
166
|
+
}
|
|
167
|
+
// --- the rest, as the window does them; made again in a window opened again under the work ----------------------
|
|
168
|
+
open() {
|
|
169
|
+
return this.inner.open();
|
|
170
|
+
}
|
|
171
|
+
async close() {
|
|
172
|
+
this.atWork = false;
|
|
173
|
+
await this.back?.catch(() => undefined);
|
|
174
|
+
await this.inner.close();
|
|
175
|
+
}
|
|
176
|
+
reopen(opts) {
|
|
177
|
+
return this.inner.reopen(opts);
|
|
178
|
+
}
|
|
179
|
+
isOpen() {
|
|
180
|
+
return this.inner.isOpen();
|
|
181
|
+
}
|
|
182
|
+
ensureSignedIn(...a) {
|
|
183
|
+
return this.inner.ensureSignedIn(...a);
|
|
184
|
+
}
|
|
185
|
+
signOut(...a) {
|
|
186
|
+
return this.inner.signOut(...a);
|
|
187
|
+
}
|
|
188
|
+
gotoChatAs(...a) {
|
|
189
|
+
return this.inner.gotoChatAs(...a);
|
|
190
|
+
}
|
|
191
|
+
findAccountsInPage(...a) {
|
|
192
|
+
return this.inner.findAccountsInPage(...a);
|
|
193
|
+
}
|
|
194
|
+
dumpFailure(...a) {
|
|
195
|
+
return this.inner.dumpFailure(...a);
|
|
196
|
+
}
|
|
197
|
+
recentCrash(...a) {
|
|
198
|
+
return this.inner.recentCrash(...a);
|
|
199
|
+
}
|
|
200
|
+
showNotice(...a) {
|
|
201
|
+
return this.withWindow(() => this.inner.showNotice(...a));
|
|
202
|
+
}
|
|
203
|
+
clearNotice(...a) {
|
|
204
|
+
return this.withWindow(() => this.inner.clearNotice(...a));
|
|
205
|
+
}
|
|
206
|
+
newChat(...a) {
|
|
207
|
+
return this.withWindow(() => this.inner.newChat(...a));
|
|
208
|
+
}
|
|
209
|
+
openConversation(...a) {
|
|
210
|
+
return this.withWindow(() => this.inner.openConversation(...a));
|
|
211
|
+
}
|
|
212
|
+
openConversationByName(...a) {
|
|
213
|
+
return this.withWindow(() => this.inner.openConversationByName(...a));
|
|
214
|
+
}
|
|
215
|
+
currentChatId(...a) {
|
|
216
|
+
return this.withWindow(() => this.inner.currentChatId(...a));
|
|
217
|
+
}
|
|
218
|
+
ensureOnChat(...a) {
|
|
219
|
+
return this.withWindow(() => this.inner.ensureOnChat(...a));
|
|
220
|
+
}
|
|
221
|
+
nameChat(...a) {
|
|
222
|
+
return this.withWindow(() => this.inner.nameChat(...a));
|
|
223
|
+
}
|
|
224
|
+
selectModel(...a) {
|
|
225
|
+
return this.withWindow(() => this.inner.selectModel(...a));
|
|
226
|
+
}
|
|
227
|
+
currentModel(...a) {
|
|
228
|
+
return this.withWindow(() => this.inner.currentModel(...a));
|
|
229
|
+
}
|
|
230
|
+
listModels(...a) {
|
|
231
|
+
return this.withWindow(() => this.inner.listModels(...a));
|
|
232
|
+
}
|
|
233
|
+
checkLocators(...a) {
|
|
234
|
+
return this.withWindow(() => this.inner.checkLocators(...a));
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/** A window kept for the work, its `window-closed` heard as it happens. */
|
|
238
|
+
export function keptWindow(make, opts) {
|
|
239
|
+
let kept = null;
|
|
240
|
+
const inner = make({
|
|
241
|
+
...opts,
|
|
242
|
+
onEvent: (event, detail) => {
|
|
243
|
+
opts.onEvent?.(event, detail);
|
|
244
|
+
if (event === 'window-closed')
|
|
245
|
+
kept?.windowWent();
|
|
246
|
+
},
|
|
247
|
+
});
|
|
248
|
+
kept = new KeptWindow(inner, (event, detail) => opts.onEvent?.(event, detail));
|
|
249
|
+
return kept;
|
|
250
|
+
}
|
|
@@ -178,7 +178,8 @@ export function isXPath(locator) {
|
|
|
178
178
|
/** A locator as Playwright takes it: `xpath=` or `css=` in front, unless it names its engine already. */
|
|
179
179
|
export function playwrightSelector(locator) {
|
|
180
180
|
const s = locator.trim();
|
|
181
|
-
|
|
181
|
+
// An engine named by its prefix — css=, xpath=, or Playwright's own: role=button[name="Send"], text=…, id=… — as it is.
|
|
182
|
+
if (/^[a-z][a-z:-]*=/.test(s))
|
|
182
183
|
return s;
|
|
183
184
|
return isXPath(s) ? `xpath=${s}` : `css=${s}`;
|
|
184
185
|
}
|
|
@@ -191,6 +192,126 @@ export function pageQuery(locator) {
|
|
|
191
192
|
return { xpath: false, text: s.slice(4) };
|
|
192
193
|
return { xpath: isXPath(s), text: s };
|
|
193
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* The chat page's own locators, as the operator writes them (2026-11-17). First the box to write in ("a field in
|
|
197
|
+
* Settings to set it by hand", after the work page's box changed); the same day, every one the bot finds the chat by
|
|
198
|
+
* ("a way to change each of the locators by hand, so I don't have to come back here every time"). Settings, "The
|
|
199
|
+
* chat's locators", in three groups: writing and sending, the answer, the conversations in the sidebar. The model
|
|
200
|
+
* menu's have their own section (`PickerLocators`).
|
|
201
|
+
*
|
|
202
|
+
* A locator is a CSS selector, an XPath (starting with `/` or `(`), or one of Playwright's own forms named by its prefix
|
|
203
|
+
* (`role=button[name="Send"]`, `text=…`), chained with `>>`. An empty one is the default below, which is what the bot
|
|
204
|
+
* looked for before they were editable. When one finds nothing where the bot needs it, the bot says which, keeps the
|
|
205
|
+
* page's HTML for a chatbot to read the right one from, and Settings shows the field in red (see `LocatorMissing`).
|
|
206
|
+
*
|
|
207
|
+
* The box: until 2026-11 a span with the id `m365-chat-editor-target-element`; on 2026-11-17 the work page's is
|
|
208
|
+
* `<span role="textbox" contenteditable="true" aria-label="Message Copilot" data-lexical-editor="true">`, with no id,
|
|
209
|
+
* inside the same wrapper as before (`data-test-id="chat-input-wrapper"`). The default finds either; a locator that
|
|
210
|
+
* finds an element around the box is taken for the box inside it (see `composer()`).
|
|
211
|
+
*/
|
|
212
|
+
export const CHAT_LOCATOR_KEYS = [
|
|
213
|
+
'composer',
|
|
214
|
+
'send',
|
|
215
|
+
'userMessage',
|
|
216
|
+
'turn',
|
|
217
|
+
'answer',
|
|
218
|
+
'copy',
|
|
219
|
+
'stop',
|
|
220
|
+
'conversationLink',
|
|
221
|
+
'chatMore',
|
|
222
|
+
'renameItem',
|
|
223
|
+
'renameInput',
|
|
224
|
+
'renameSave',
|
|
225
|
+
];
|
|
226
|
+
/** Where a conversation's id goes in a template (the sidebar's "More" button of one conversation). */
|
|
227
|
+
export const CHAT_ID = '{$chat_id}';
|
|
228
|
+
export const DefaultChatLocators = {
|
|
229
|
+
composer: '#m365-chat-editor-target-element, [data-test-id="chat-input-wrapper"] [role="textbox"][contenteditable="true"]',
|
|
230
|
+
send: '[data-test-id="chat-input-wrapper"] >> role=button[name="Send"]',
|
|
231
|
+
userMessage: '[id^="user-message-"]',
|
|
232
|
+
turn: '[data-testid="m365-chat-llm-web-ui-chat-message"]',
|
|
233
|
+
answer: '[data-testid="copilot-message-div"]',
|
|
234
|
+
copy: '[data-testid="CopyButtonTestId"]',
|
|
235
|
+
stop: 'button[aria-label="Stop generating"]',
|
|
236
|
+
conversationLink: 'a[href*="/chat/conversation/"]',
|
|
237
|
+
chatMore: `button[data-chat-history-more-button-conversation-id="${CHAT_ID}"]`,
|
|
238
|
+
renameItem: 'role=menuitem[name="Rename"]',
|
|
239
|
+
renameInput: '#new-session-name',
|
|
240
|
+
renameSave: 'role=button[name="Save"]',
|
|
241
|
+
};
|
|
242
|
+
export const ChatLocatorGroupOf = {
|
|
243
|
+
composer: 'write',
|
|
244
|
+
send: 'write',
|
|
245
|
+
userMessage: 'write',
|
|
246
|
+
turn: 'answer',
|
|
247
|
+
answer: 'answer',
|
|
248
|
+
copy: 'answer',
|
|
249
|
+
stop: 'answer',
|
|
250
|
+
conversationLink: 'conversations',
|
|
251
|
+
chatMore: 'conversations',
|
|
252
|
+
renameItem: 'conversations',
|
|
253
|
+
renameInput: 'conversations',
|
|
254
|
+
renameSave: 'conversations',
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* What each one is, in words a chatbot that reads the page's HTML can find it by (the text it is handed with the HTML,
|
|
258
|
+
* see `locatorPrompt`), and the failure says.
|
|
259
|
+
*/
|
|
260
|
+
export const ChatLocatorWhat = {
|
|
261
|
+
composer: 'the box at the bottom of the chat where a message is typed (an editable element: contenteditable or a textarea)',
|
|
262
|
+
send: "the button that sends the typed message, beside the box where it is typed (not the feedback panel's Send)",
|
|
263
|
+
userMessage: 'the message the user sent, as the conversation shows it (each one; the bot reads the newest)',
|
|
264
|
+
turn: "each message of the conversation, the user's and Copilot's (the elements that carry aria-setsize when the conversation is long)",
|
|
265
|
+
answer: "each of Copilot's answers, as a whole: the element that holds the answer's text and its toolbar (copy, like, dislike)",
|
|
266
|
+
copy: "the Copy button in the toolbar of Copilot's answer (it copies the whole answer)",
|
|
267
|
+
stop: 'the button shown while Copilot is still writing its answer, which stops it ("Stop generating")',
|
|
268
|
+
conversationLink: 'the link to a conversation in the sidebar of conversations (its address holds /chat/conversation/<id> or the like)',
|
|
269
|
+
chatMore: `the "More" button of one conversation in the sidebar, the one that opens its menu (Rename, Delete…); ${CHAT_ID} is where the conversation's id goes`,
|
|
270
|
+
renameItem: 'the "Rename" item of the menu a conversation\'s "More" button opens in the sidebar',
|
|
271
|
+
renameInput: 'the text field of the dialog that renames a conversation',
|
|
272
|
+
renameSave: 'the "Save" button of the dialog that renames a conversation',
|
|
273
|
+
};
|
|
274
|
+
/** The placeholder a template must hold; the others hold none. */
|
|
275
|
+
export const ChatPlaceholder = { chatMore: CHAT_ID };
|
|
276
|
+
/** The chat's locators in force: each one saved in Settings, else the default; one that cannot be used is said in `problems`. */
|
|
277
|
+
export function resolveChatLocators(saved) {
|
|
278
|
+
const locators = { ...DefaultChatLocators };
|
|
279
|
+
const problems = [];
|
|
280
|
+
for (const key of CHAT_LOCATOR_KEYS) {
|
|
281
|
+
const own = (saved?.[key] ?? '').trim();
|
|
282
|
+
if (!own)
|
|
283
|
+
continue;
|
|
284
|
+
const needs = ChatPlaceholder[key];
|
|
285
|
+
const problem = needs && !own.includes(needs) ? `it has no ${needs}: put it where the conversation's id goes` : locatorSyntaxProblem(own);
|
|
286
|
+
if (problem)
|
|
287
|
+
problems.push(`the chat's ${key} locator in Settings is not used, ${problem}`);
|
|
288
|
+
else
|
|
289
|
+
locators[key] = own;
|
|
290
|
+
}
|
|
291
|
+
return { locators, problems };
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The text a chatbot is handed with the page's HTML to find a locator in (operator, 2026-11-17: "the goal is to give
|
|
295
|
+
* the HTML to a chatbot and have it say which locator it is and what its selector is"). In English: the chatbot reads
|
|
296
|
+
* it, not the operator, and Copilot's page is in English on the work machine.
|
|
297
|
+
*/
|
|
298
|
+
export function locatorPrompt(key, failed) {
|
|
299
|
+
return [
|
|
300
|
+
'The attached file is the HTML of the Microsoft 365 Copilot chat page in a browser (scripts, styles and the list of conversations taken out).',
|
|
301
|
+
`Find this element in it: ${ChatLocatorWhat[key]}.`,
|
|
302
|
+
`This locator used to find it and now finds nothing: ${failed}`,
|
|
303
|
+
'Give me one locator that finds exactly this element, and only it: a CSS selector, or an XPath if CSS cannot say it.',
|
|
304
|
+
'Use what stays the same between versions of the page: id, role, aria-label, data-testid, data-test-id and other data-* attributes, the tag.',
|
|
305
|
+
'Do not use class names made of random letters (like azFuQXgw or ___1x5usfw): they change with every new version of the page.',
|
|
306
|
+
...(ChatPlaceholder[key] ? [`Keep ${ChatPlaceholder[key]} in it where the conversation's id goes.`] : []),
|
|
307
|
+
'Answer with the locator on the first line, then one line on why it is that element.',
|
|
308
|
+
].join('\n');
|
|
309
|
+
}
|
|
310
|
+
/** An XPath axis written with one colon (`parent:span`), which is not XPath; null when there is none. */
|
|
311
|
+
function locatorSyntaxProblem(locator) {
|
|
312
|
+
const axis = /(^|[/[(|\s])(ancestor-or-self|ancestor|attribute|child|descendant-or-self|descendant|following-sibling|following|parent|preceding-sibling|preceding|self):(?!:)/.exec(locator);
|
|
313
|
+
return axis && isXPath(locator) ? `"${axis[2]}:" needs two colons: ${axis[2]}::` : null;
|
|
314
|
+
}
|
|
194
315
|
/**
|
|
195
316
|
* What is wrong with a locator written for `key`, said for the operator, or null. A template without its placeholder
|
|
196
317
|
* would find the same element for every name; an axis written with one colon (`parent:span`) is not XPath. Whether
|
|
@@ -273,8 +394,8 @@ export function xpathText(text) {
|
|
|
273
394
|
}
|
|
274
395
|
/** CSS selectors for things that have neither a test id nor an accessible name. */
|
|
275
396
|
export const Css = {
|
|
276
|
-
/** The composer element
|
|
277
|
-
composer:
|
|
397
|
+
/** The composer element: the default of the chat's locator (`DefaultChatLocators`); a run takes Settings' own. */
|
|
398
|
+
composer: DefaultChatLocators.composer,
|
|
278
399
|
/**
|
|
279
400
|
* The composer's own wrapper, and the reason every Send lookup goes through it.
|
|
280
401
|
*
|
|
@@ -376,19 +497,29 @@ export const Surface = {
|
|
|
376
497
|
* the sign-in was refused as "not the Microsoft 365 Copilot chat" because only the old host was known.
|
|
377
498
|
*/
|
|
378
499
|
workHosts: ['m365.cloud.microsoft', 'copilot.cloud.microsoft'],
|
|
379
|
-
/** Only the work surface has this composer
|
|
380
|
-
workMarkers: [
|
|
500
|
+
/** Only the work surface has this composer (the chat's locator in force decides; this is its default). */
|
|
501
|
+
workMarkers: [DefaultChatLocators.composer],
|
|
381
502
|
consumerHosts: ['copilot.microsoft.com', 'www.bing.com', 'bing.com'],
|
|
382
503
|
/** Chips that only the consumer surface shows. */
|
|
383
504
|
consumerMarkers: ['Shop', 'Play'],
|
|
384
505
|
};
|
|
385
|
-
/**
|
|
506
|
+
/**
|
|
507
|
+
* Chat URL. Microsoft is consolidating this to copilot.cloud.microsoft.
|
|
508
|
+
*
|
|
509
|
+
* The bot starts on `origin`; from then on a window goes to the chat's addresses on the host it found the chat on
|
|
510
|
+
* (`chatOrigin` in copilotTransport.ts), not through the old host's redirect: on 2026-11-17 the work machine's
|
|
511
|
+
* `m365.cloud.microsoft/chat` ended on `copilot.cloud.microsoft/home?es=SSR&redirfrom=mcmToCcm`, Copilot's home page,
|
|
512
|
+
* with no box to write in.
|
|
513
|
+
*/
|
|
386
514
|
export const Url = {
|
|
387
515
|
chat: 'https://m365.cloud.microsoft/chat',
|
|
388
|
-
|
|
516
|
+
origin: 'https://m365.cloud.microsoft',
|
|
517
|
+
/** A new chat, on whichever host. "New chat" is an anchor, so a plain navigation is equivalent to clicking it. */
|
|
518
|
+
newChatPath: '/chat?es=SSR',
|
|
389
519
|
newChat: 'https://m365.cloud.microsoft/chat?es=SSR',
|
|
390
|
-
/** Every conversation has a stable address: /chat/conversation/<uuid
|
|
391
|
-
|
|
520
|
+
/** Every conversation has a stable address: /chat/conversation/<uuid>, on whichever host. */
|
|
521
|
+
conversationPath: (id) => `/chat/conversation/${id}?es=SSR`,
|
|
522
|
+
conversation: (id, origin = 'https://m365.cloud.microsoft') => `${origin}/chat/conversation/${id}?es=SSR`,
|
|
392
523
|
/** Full chat list, used as the last resort when looking a chat up by name. */
|
|
393
524
|
allChats: 'https://m365.cloud.microsoft/chat/all?es=SSR',
|
|
394
525
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The page's HTML as it is handed to a chatbot to find a locator in (operator, 2026-11-17: "when it fails, let the bot
|
|
3
|
+
* save the HTML and give it to the user — the goal is to give the HTML to a chat bot and have it say which locator it
|
|
4
|
+
* is and what its selector is"). What only makes it longer and says nothing about where an element is goes: scripts,
|
|
5
|
+
* styles, stylesheets, the pictures' path data, inline images, comments. The sidebar goes too, unless the locator that
|
|
6
|
+
* failed is one of the sidebar's own: it holds the names of all the operator's conversations. When it is kept, those
|
|
7
|
+
* names are put out ("chat title") and only the structure, the ids and the labels of its buttons stay.
|
|
8
|
+
*
|
|
9
|
+
* Run in the page (`page.evaluate`), on a copy of the document: the page itself is not touched. No function is named
|
|
10
|
+
* inside it: the checks run the source through tsx, which wraps a named one in `__name(…)`, and the page has no
|
|
11
|
+
* `__name` — the HTML was not kept at all until this was so.
|
|
12
|
+
*/
|
|
13
|
+
export function strippedPageHtml(keepSidebar) {
|
|
14
|
+
const doc = document.documentElement.cloneNode(true);
|
|
15
|
+
const noise = 'script, style, noscript, template, link[rel="stylesheet"], link[rel="preload"], link[rel="prefetch"], link[rel="modulepreload"], meta, iframe';
|
|
16
|
+
for (const el of Array.from(doc.querySelectorAll(noise)))
|
|
17
|
+
el.remove();
|
|
18
|
+
// A picture's paths are long and say nothing about where it is: the element stays, empty, with its attributes.
|
|
19
|
+
for (const svg of Array.from(doc.querySelectorAll('svg')))
|
|
20
|
+
svg.replaceChildren();
|
|
21
|
+
const SIDEBAR = 'nav, [role="navigation"], aside';
|
|
22
|
+
if (!keepSidebar) {
|
|
23
|
+
for (const el of Array.from(doc.querySelectorAll(SIDEBAR)))
|
|
24
|
+
el.remove();
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
for (const side of Array.from(doc.querySelectorAll(SIDEBAR))) {
|
|
28
|
+
// A conversation's row: its title put out, in its text and in its labels; its address (an id, no name) stays.
|
|
29
|
+
for (const a of Array.from(side.querySelectorAll('a[href*="conversation"]'))) {
|
|
30
|
+
for (const at of ['aria-label', 'title'])
|
|
31
|
+
if (a.hasAttribute(at))
|
|
32
|
+
a.setAttribute(at, 'chat title');
|
|
33
|
+
const walker = document.createTreeWalker(a, NodeFilter.SHOW_TEXT);
|
|
34
|
+
for (let n = walker.nextNode(); n; n = walker.nextNode())
|
|
35
|
+
if ((n.textContent ?? '').trim())
|
|
36
|
+
n.textContent = 'chat title';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
for (const el of Array.from(doc.querySelectorAll('*'))) {
|
|
41
|
+
for (const at of Array.from(el.attributes)) {
|
|
42
|
+
// Nothing in the file runs when it is opened: no handler, no script address.
|
|
43
|
+
if (/^on/i.test(at.name) || /^\s*javascript:/i.test(at.value)) {
|
|
44
|
+
el.removeAttribute(at.name);
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
// Inline images and the like: the attribute stays, its value shortened.
|
|
48
|
+
if (/^data:/i.test(at.value) && at.value.length > 80)
|
|
49
|
+
el.setAttribute(at.name, `${at.value.slice(0, 40)}…`);
|
|
50
|
+
// The page's own styles on an element say nothing about which element it is.
|
|
51
|
+
if (at.name === 'style')
|
|
52
|
+
el.removeAttribute('style');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const comments = document.createTreeWalker(doc, NodeFilter.SHOW_COMMENT);
|
|
56
|
+
const gone = [];
|
|
57
|
+
for (let n = comments.nextNode(); n; n = comments.nextNode())
|
|
58
|
+
gone.push(n);
|
|
59
|
+
for (const n of gone)
|
|
60
|
+
n.parentNode?.removeChild(n);
|
|
61
|
+
return `<!doctype html>\n${doc.outerHTML.replace(/\n\s*\n+/g, '\n')}`;
|
|
62
|
+
}
|
package/dist/web/404.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--3VkK1sxEugkae88HSFR_i--><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/d74aa18c98dacdb4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-78ec62098b09e4a0.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-d3a4a261e08950e0.js" async=""></script><script src="/_next/static/chunks/895-a178f989a2e5d489.js" async=""></script><script src="/_next/static/chunks/8124-1dba8babfcfbc6e2.js" async=""></script><script src="/_next/static/chunks/app/layout-7b5fa7c74ecd6939.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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-13ccb80d7b7094ca.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-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-65dd56d87144bd44.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-127e5af1ebf21876.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/6e2b8656501f0dd7.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"aCQe1FDhYTj4zGeI5ueVq\",\"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/6e2b8656501f0dd7.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-Ra6db" 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-Ra6db)" 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,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--></main></div><script src="/_next/static/chunks/webpack-78ec62098b09e4a0.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-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-d3a4a261e08950e0.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-7b5fa7c74ecd6939.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/d74aa18c98dacdb4.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"3VkK1sxEugkae88HSFR-i\",\"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/d74aa18c98dacdb4.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>
|