copilot-operator 0.1.96 → 0.1.97

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 (56) hide show
  1. package/dist/src/api/apiLock.js +82 -0
  2. package/dist/src/api/main.js +5 -0
  3. package/dist/src/api/operator.controller.js +18 -4
  4. package/dist/src/api/operator.service.js +264 -51
  5. package/dist/src/api/server.js +10 -0
  6. package/dist/src/config/exportHome.js +1 -1
  7. package/dist/src/config/schema.js +13 -0
  8. package/dist/src/exec/policy.js +9 -18
  9. package/dist/src/plan/kerrigan.js +2 -2
  10. package/dist/src/plan/systemGuide.js +26 -26
  11. package/dist/src/queue/queue.js +7 -0
  12. package/dist/src/session/locatorFailures.js +10 -11
  13. package/dist/src/session/model.js +4 -0
  14. package/dist/src/session/store.js +47 -0
  15. package/dist/src/vcs/newBranch.js +6 -1
  16. package/dist/src/vcs/operatorGit.js +9 -10
  17. package/dist/web/404.html +2 -2
  18. package/dist/web/_next/static/chunks/1024-c0eee3ec374816d1.js +1 -0
  19. package/dist/web/_next/static/chunks/1077.4da389906036b1bb.js +1 -0
  20. package/dist/web/_next/static/chunks/1548.4aa3e42afe4542ab.js +1 -0
  21. package/dist/web/_next/static/chunks/2163.4c6ce20cf967756c.js +1 -0
  22. package/dist/web/_next/static/chunks/714.ffb1325246519f64.js +1 -0
  23. package/dist/web/_next/static/chunks/7220.f483b83c11525063.js +1 -0
  24. package/dist/web/_next/static/chunks/7921-946e538fe3f9630f.js +1 -0
  25. package/dist/web/_next/static/chunks/8124-967df691ec1bfeeb.js +1 -0
  26. package/dist/web/_next/static/chunks/8584.3301b056c97be517.js +1 -0
  27. package/dist/web/_next/static/chunks/9067.03cdfb01ebf6a35d.js +1 -0
  28. package/dist/web/_next/static/chunks/9747.fe06238bc42bd23d.js +1 -0
  29. package/dist/web/_next/static/chunks/app/{layout-2364903896c2c175.js → layout-7943a4391ad2f88f.js} +1 -1
  30. package/dist/web/_next/static/chunks/app/page-6ec948e0cf4b24f0.js +1 -0
  31. package/dist/web/_next/static/chunks/{webpack-3f144d13be3516c2.js → webpack-710628d673fa4afb.js} +1 -1
  32. package/dist/web/defaults.html +2 -2
  33. package/dist/web/defaults.txt +7 -7
  34. package/dist/web/index.html +3 -3
  35. package/dist/web/index.txt +8 -8
  36. package/dist/web/queue.html +2 -2
  37. package/dist/web/queue.txt +8 -8
  38. package/dist/web/settings.html +2 -2
  39. package/dist/web/settings.txt +8 -8
  40. package/dist/web/system.html +2 -2
  41. package/dist/web/system.txt +8 -8
  42. package/package.json +1 -1
  43. package/dist/web/_next/static/chunks/1024-214ded25b9048526.js +0 -1
  44. package/dist/web/_next/static/chunks/1077.161de82f740d47f0.js +0 -1
  45. package/dist/web/_next/static/chunks/1548.f2688468bf946e13.js +0 -1
  46. package/dist/web/_next/static/chunks/2163.b8ada3b7bde69f03.js +0 -1
  47. package/dist/web/_next/static/chunks/714.d1489788e598833b.js +0 -1
  48. package/dist/web/_next/static/chunks/7220.b85c8d105f394389.js +0 -1
  49. package/dist/web/_next/static/chunks/7921-00ebbcc6f65fbe35.js +0 -1
  50. package/dist/web/_next/static/chunks/8124-1dba8babfcfbc6e2.js +0 -1
  51. package/dist/web/_next/static/chunks/8584.a678bfced1cea938.js +0 -1
  52. package/dist/web/_next/static/chunks/9067.6da03ae052877b19.js +0 -1
  53. package/dist/web/_next/static/chunks/9747.ba29e64e97e8a15b.js +0 -1
  54. package/dist/web/_next/static/chunks/app/page-d031bf326e401246.js +0 -1
  55. /package/dist/web/_next/static/{kNfJ9jSwlboc-1sFBBfuI → D3ew46wEw5JXPsTVwZwFC}/_buildManifest.js +0 -0
  56. /package/dist/web/_next/static/{kNfJ9jSwlboc-1sFBBfuI → D3ew46wEw5JXPsTVwZwFC}/_ssgManifest.js +0 -0
@@ -265,24 +265,15 @@ export function scriptNetworkReason(command, cwd) {
265
265
  });
266
266
  return found;
267
267
  }
268
- /**
269
- * Why an unattended run may not begin at all, or null.
270
- *
271
- * Both conditions are about the same thing: an unattended run has given up the person who made
272
- * every other rule survivable, so the two things that stand in for them have to be there. Nowhere
273
- * to run and nobody watching is refused outright; an empty allowlist and nobody watching means
274
- * nothing at all limits a step.
275
- *
276
- * Asked in two places on purpose. At the entrance — `start`, `startBatch`, the CLI, and the button
277
- * that turns a running session unattended — so the operator is told once, before anything begins,
278
- * what to set and where. And again in `staticCheck`, because the entrance is a courtesy and the
279
- * step gate is the rule: a path that reached execution another way still finds it there.
280
- *
281
- * It is deliberately *not* a warning. The first version of this refused each step as it arrived,
282
- * which technically held the line and in practice turned the ordinary "Run sessions" button into a
283
- * run where every step came back refused — a gate that breaks the working bot is a gate that gets
284
- * switched off, and the fix was to make the condition reachable rather than to soften it.
285
- */
268
+ export function unattendedBlock(cfg) {
269
+ if (cfg.lockedToConfirm)
270
+ return 'lock';
271
+ if (unattendedIsolationRefusal('unattended', cfg.isolation ?? 'none'))
272
+ return 'isolation';
273
+ if (!cfg.allowedPrograms || cfg.allowedPrograms.length === 0)
274
+ return 'allowlist';
275
+ return null;
276
+ }
286
277
  export function unattendedPrecondition(cfg) {
287
278
  if (cfg.mode !== 'unattended')
288
279
  return null;
@@ -264,7 +264,7 @@ These are the program's foundations. They come with it, the program holds Copilo
264
264
  - Each message is one task. The next message goes into the **same Copilot conversation**, so it can build on what was done ("now add tests for that"). ${Q('chat.newChat')} starts a conversation with nothing of the earlier one. Before each message the folder is photographed, and with ${Q('chat.rewind')} the folder is put back exactly as it was then.
265
265
  - The conversations are in the list at the top of the chat; ${Q('chat.rename')} (✎ beside it) gives the open one a name of the person's own. Every part of a conversation — a message, a reply, a command with what it printed, an ending, a plan, a question of the lead and its answer, the lead's list of subtasks — has a **Copy** button, so the person can paste any of it to you.
266
266
  - Git: the chat works on the branch the folder is on, and may commit, stage, switch or make branches, stash, merge and pull when asked; it may not push, reset, rebase, clean or clone. ${Q('nb.button')} (under the chat's box, beside the skills) fetches the latest of the remote's main and makes a new local branch from it for the next task — one that does not track main, so its work is never pushed there by mistake. When something is not committed, it asks whether to take it along, to put it aside on a branch of its own, or to commit it on the branch the folder is on now (with a message of their own or the default, not pushed); nothing is ever deleted. Whenever git needs a password, **Git opens its own window for it** (see "How you help", 12), and the work waits for it. The person commits and pushes **themselves** in the Git view: ${Q('git.commit')} (or ${Q('git.commitAll')} when nothing is staged) with a message of their own, under their own name for git, and ${Q('git.publish')} or the push beside it — that is theirs, not the chat's, which still never pushes. The project's hooks run there as in a terminal, unless one is not the project's own (not committed, changed since, or committed by the bot): then the view names it and asks. When a commit or a push does not go through, the view says why in a sentence, over git's own words; send them there first.
267
- - ${Q('nav.queue')} (in the bar on top): tasks written beforehand that run one after another while nobody watches, each in a new chat on its own model. Each has a name, ${Q('q.lead')} or a review on a model of its own, ${Q('q.skill')}, where it works (${Q('q.branchMain')} gives it a branch of its own made from main), and ${Q('q.dependsOn')}: when a task fails, the ones that depend on it are skipped and the others still run. ${Q('q.run')} starts it, ${Q('q.stop')} stops it: the task at work, like one the program was closed under, carries on from where it stopped, in its own chat, when the queue is run again. A task added while a message sent from the chat is working starts after it — the button then reads ${Q('q.addAfter')}. Every task needs a model named, in the task or in Settings, since nobody is there to choose one by hand: the bot chooses it, even when Settings choose models by hand. With ${Q('q.plan')}, each task's plan — the lead's, with two chats — is approved before anything changes. A task that waits for the person longer than ${Q('q.parkAfter')} allows (two minutes by default) is set aside, marked ${Q('q.parked')}, and the next task starts; its card is kept, even if the program is closed, and once answered it carries on from where it stopped. So a queue can be left running.
267
+ - ${Q('nav.queue')} (in the bar on top): tasks written beforehand that run one after another while nobody watches, each in a new chat on its own model. Each has a name, ${Q('q.lead')} or a review on a model of its own, ${Q('q.skill')}, where it works (${Q('q.branchMain')} gives it a branch of its own made from main), and ${Q('q.dependsOn')}: when a task fails, the ones that depend on it are skipped and the others still run. ${Q('q.run')} starts it, ${Q('q.stop')} stops it: the task at work, like one the program was closed under, carries on from where it stopped, in its own chat, when the queue is run again. A task added while a message sent from the chat is working starts after it — the button then reads ${Q('q.addAfter')}. Every task needs a model named, in the task or in Settings, since nobody is there to choose one by hand: the bot chooses it, even when Settings choose models by hand. With ${Q('q.plan')}, each task's plan — the lead's, with two chats — is approved before anything changes. A task that waits for the person longer than ${Q('q.parkAfter')} allows (two minutes by default) is set aside, marked ${Q('q.parked')}, and the next task starts; its card is kept, even if the program is closed, and once answered it carries on from where it stopped. A sign-in Copilot asks for is waited for as long as it takes. So a queue can be left running.
268
268
  - ${Q('chat.lead')} (under the chat's box, for a new conversation; not ticked at first): not ticked, the chat works as it always has — one conversation that does the work; ticked, the message goes to a **lead** that directs a **worker** — see "Two chats" below. The person chooses for each conversation; to change it, they start a ${Q('chat.newChat')}.
269
269
  - ${Q('chat.kerrigan')} (under the chat's box, for a new conversation; not ticked at first): the program does by itself what the person would otherwise do with you by hand: a Kerrigan of the program's own — a conversation in the same Copilot window, told the program's foundations, the projects, the skills and the limits — directs chats of her own (${Q('kz.openChat')} shows one as it works) until the task is done (see "The way you work", step 4). Before she asks the person anything she looks in what Copilot reaches for them and has a chat look in the code. Commands still run as Settings say; platform access, scripts to run by hand, passwords and a model chosen by hand stay the person's. ${Q('exec.maxKerriganSends')} in Settings bounds how many messages she sends for one task. When the person wants a task done with the fewest stops, suggest it.
270
270
  - Limits from the settings: at most ${n(f.maxIterations)} messages to Copilot and ${n(f.maxRunMinutes)} minutes per task (the time paused, or waiting for the person — a card, Git's password window, a sign-in —, not counted), carried on by itself up to ${n(f.autoContinue)} time(s) when a limit is reached. One message in the chat can be at most ${n(MAX_INSTRUCTION_CHARS)} characters. A message the program sends to Copilot that is longer than Settings allow ("Longest message to the chat as text", 120,000 characters by default) — with a long level 2 or skill in it — goes as its beginning, with the whole text attached as a file.
@@ -381,7 +381,7 @@ function bgText(f) {
381
381
  - Всяко съобщение е едно задание. Следващото съобщение отива в **същия разговор в Copilot**, така че може да надгражда („сега добави тестове за това“). ${Q('chat.newChat')} започва разговор без нищо от предишния. Преди всяко съобщение папката се „снима“ и с ${Q('chat.rewind')} папката се връща точно каквато е била тогава.
382
382
  - Разговорите са в списъка най-горе в чата; ${Q('chat.rename')} (✎ до него) дава на отворения разговор име по избор на човека. Всяка част от разговора — съобщение, отговор, команда с изписаното от нея, край, план, въпрос на ръководителя и отговорът му, списъкът с подзадачи на ръководителя — има бутон **Копирай**, така че човекът може да ти постави която и да е от тях.
383
383
  - Git: чатът работи на бранча, на който е папката, и може да комитва, да добавя, да сменя или прави бранчове, да прибира настрана (stash), да слива и да изтегля (pull), когато е помолен; не може да прави push, reset, rebase, clean или clone. ${Q('nb.button')} (под полето на чата, до skill-овете) взима последното от main на remote и прави от него нов локален бранч за следващата задача — такъв, който не следи main, така че работата му никога не отива там по грешка. Когато има некомитнато, пита дали да се вземе, да се остави настрана в отделен бранч или да се commit-не в бранча, на който е папката сега (със съобщение на човека или по подразбиране, без push); нищо никога не се изтрива. Когато git има нужда от парола, **Git отваря свой прозорец за нея** (виж „Как помагаш“, 12), а работата я чака. Човекът комитва и прави push **сам** в изгледа Git: ${Q('git.commit')} (или ${Q('git.commitAll')}, когато нищо не е подготвено) със свое съобщение и със своето име в git, и ${Q('git.publish')} или push-а до него — това е негово, не на чата, който пак никога не прави push. Hook-овете на проекта се пускат там както в терминал, освен ако някой не е собствен на проекта (не е комитнат, променен е след това или е комитнат от бота): тогава изгледът го назовава и пита. Когато комит или push не мине, изгледът казва защо с едно изречение, над собствените думи на git; първо прати човека там.
384
- - ${Q('nav.queue')} (в лентата горе): задачи, написани предварително, които се изпълняват една след друга, докато човекът го няма, всяка в нов чат със свой модел. Всяка има име, ${Q('q.lead')} или рецензия със собствен модел, ${Q('q.skill')}, къде работи (${Q('q.branchMain')} ѝ дава отделен бранч, направен от main) и ${Q('q.dependsOn')}: когато задача се провали, тези, които зависят от нея, се прескачат, а другите продължават. ${Q('q.run')} я пуска, ${Q('q.stop')} я спира: задачата в ход, както и тази, под която програмата е затворена, продължава оттам, докъдето е стигнала, в своя чат, когато опашката се пусне пак. Задача, добавена, докато работи съобщение, пуснато от чата, започва след него — тогава бутонът е ${Q('q.addAfter')}. Всяка задача трябва да има посочен модел — в задачата или в Настройки, — защото няма кой да го избере ръчно: ботът го избира, дори когато Настройки избират моделите на ръка. С ${Q('q.plan')} планът на всяка задача — на ръководителя, при два чата — се одобрява, преди нещо да се промени. Задача, която чака човека по-дълго, отколкото позволява ${Q('q.parkAfter')} (по подразбиране две минути), се оставя настрана, отбелязана ${Q('q.parked')}, и започва следващата; картата ѝ се пази, дори ако програмата бъде затворена, а след отговор продължава оттам, където е спряла. Така опашката може да се остави да работи.
384
+ - ${Q('nav.queue')} (в лентата горе): задачи, написани предварително, които се изпълняват една след друга, докато човекът го няма, всяка в нов чат със свой модел. Всяка има име, ${Q('q.lead')} или рецензия със собствен модел, ${Q('q.skill')}, къде работи (${Q('q.branchMain')} ѝ дава отделен бранч, направен от main) и ${Q('q.dependsOn')}: когато задача се провали, тези, които зависят от нея, се прескачат, а другите продължават. ${Q('q.run')} я пуска, ${Q('q.stop')} я спира: задачата в ход, както и тази, под която програмата е затворена, продължава оттам, докъдето е стигнала, в своя чат, когато опашката се пусне пак. Задача, добавена, докато работи съобщение, пуснато от чата, започва след него — тогава бутонът е ${Q('q.addAfter')}. Всяка задача трябва да има посочен модел — в задачата или в Настройки, — защото няма кой да го избере ръчно: ботът го избира, дори когато Настройки избират моделите на ръка. С ${Q('q.plan')} планът на всяка задача — на ръководителя, при два чата — се одобрява, преди нещо да се промени. Задача, която чака човека по-дълго, отколкото позволява ${Q('q.parkAfter')} (по подразбиране две минути), се оставя настрана, отбелязана ${Q('q.parked')}, и започва следващата; картата ѝ се пази, дори ако програмата бъде затворена, а след отговор продължава оттам, където е спряла. Вход в Copilot се чака колкото трябва. Така опашката може да се остави да работи.
385
385
  - ${Q('chat.lead')} (под полето на чата, за нов разговор; в началото не е отметнато): неотметнато, чатът работи както винаги — един разговор, който върши работата; отметнато, съобщението отива при **ръководител**, който ръководи **изпълнител** — виж „Два чата“ по-долу. Човекът избира за всеки разговор; за да го смени, започва ${Q('chat.newChat')}.
386
386
  - ${Q('chat.kerrigan')} (под полето на чата, за нов разговор; в началото не е отметнато): програмата прави сама това, което иначе човекът прави с теб на ръка: Кериган на самата програма — разговор в същия прозорец на Copilot, на който са дадени основите на програмата, проектите, skill-овете и ограниченията — ръководи свои чатове (${Q('kz.openChat')} показва такъв, докато работи), докато задачата стане готова (виж „Как работиш“, стъпка 4). Преди да попита човека нещо, търси в това, до което Copilot стига за него, и праща чат да погледне в кода. Командите пак вървят, както казват Настройки; достъпът до платформи, скриптовете за ръчно пускане, паролите и ръчно избраният модел остават на човека. ${Q('exec.maxKerriganSends')} в Настройки ограничава колко съобщения праща тя за една задача. Когато човекът иска задача да мине с възможно най-малко спирания, предложи го.
387
387
  - Ограничения от настройките: най-много ${n(f.maxIterations)} съобщения към Copilot и ${n(f.maxRunMinutes)} минути на задание (без времето на пауза и на чакане за човека — карта, прозорецът на Git за парола, вход), продължено само до ${n(f.autoContinue)} път(и), когато се стигне ограничение. Едно съобщение в чата може да е най-много ${n(MAX_INSTRUCTION_CHARS)} знака. Съобщение, което програмата праща на Copilot и което е по-дълго, отколкото позволяват Настройки („Най-дълго съобщение към чата като текст“, 120 000 знака по подразбиране) — с дълъг шаблон ниво 2 или skill в него, — отива като началото си, а целият текст се прикачва като файл.
@@ -210,8 +210,8 @@ export const SYSTEM_GUIDE = [
210
210
  kind: 'link',
211
211
  en: 'Download the file for a chatbot',
212
212
  bg: 'Изтегли файл за чатбота',
213
- doesEn: 'One file with all a chatbot needs to give the right locator: what to do and why, what failed and when, the old locator, the part of the page where the element most likely is (around an element near it that was found), the whole page without scripts, styles and conversation names, and how the chatbot walks you through finding it in Edge (F12) when it is in neither. Attach it to Copilot or any other chatbot and send it, with nothing else to write; the chatbot speaks the interface\'s language.',
214
- doesBg: 'Един файл с всичко, което е нужно на чатбот, за да даде правилния локатор: какво да направи и защо, какво се е провалило и кога, старият локатор, частта от страницата, където елементът най-вероятно е (около близък елемент, който е намерен), цялата страница без скриптове, стилове и имена на разговори, и как чатботът да ви преведе през търсенето в Edge (F12), ако го няма в нито една от тях. Прикачете го в Copilot или друг чатбот и го пратете, без да пишете нищо друго; чатботът говори на езика на интерфейса.',
213
+ doesEn: 'One file with all a chatbot needs to give the right locator: what failed and the old locator, the part of the page where the element most likely is, the whole page without scripts and styles, and how to find it in Edge (F12) when it is in neither. Attach it to any chatbot and send it, writing nothing; it answers in the interface\'s language.',
214
+ doesBg: 'Един файл с всичко, нужно на чатбот, за да даде правилния локатор: какво се е провалило и старият локатор, частта от страницата, където елементът най-вероятно е, цялата страница без скриптове и стилове, и как да го намерите в Edge (F12), ако го няма в тях. Прикачете го на който и да е чатбот и го пратете, без да пишете нищо; той отговаря на езика на интерфейса.',
215
215
  },
216
216
  {
217
217
  key: 'chatloc.dismiss',
@@ -527,8 +527,8 @@ export const SYSTEM_GUIDE = [
527
527
  kind: 'button',
528
528
  en: 'Git',
529
529
  bg: 'Git',
530
- doesEn: 'Shows the open folder\'s git: the branch, the staged changes and the changes (each file with its letter — M, A, D, R, U, ! in conflict — and its lines), and the branch\'s commits; a file opens its two versions side by side, a commit its files. A file opens as a preview, as in VS Code: its tab in italics, replaced by the next file opened with one click; a double click keeps it. A file\'s "+" stages it and its "−" unstages it; beside a list\'s heading, the whole list. The button\'s two numbers: the files not committed yet, and every file changed on this branch.',
531
- doesBg: 'Показва git на отворената папка: клона, подготвените промени и промените (всеки файл с буквата си — M, A, D, R, U, ! в конфликт — и редовете си) и комитите на клона; файл отваря двете си версии една до друга, комит — файловете си. Файлът се отваря за преглед, както във VS Code: разделът му е в курсив и се заменя от следващия файл, отворен с едно щракване; двоен клик го задържа. „+“ на файл го подготвя, „−“ го изважда от подготвените; до заглавието на списък — целия списък. Двете числа на бутона: файловете, които още не са комитнати, и всички файлове, променени на този клон.',
530
+ doesEn: 'Shows the open folder\'s git: the branch, the staged changes and the changes (each file with its letter — M, A, D, R, U, ! in conflict), and the branch\'s commits; a file opens its two versions side by side, a commit its files. One click opens a preview (its tab in italics, replaced by the next); a double click keeps it. A file\'s "+" stages it, "−" unstages it; beside a heading, the whole list. The button\'s two numbers: the files not committed, and those changed on this branch.',
531
+ doesBg: 'Показва git на отворената папка: клона, подготвените промени и промените (всеки файл с буквата си — M, A, D, R, U, ! в конфликт) и комитите на клона; файл отваря двете си версии една до друга, комит — файловете си. Едно щракване отваря преглед (разделът в курсив, заменя се от следващия); двоен клик го задържа. „+“ на файл го подготвя, „−“ го изважда; до заглавие — целия списък. Двете числа на бутона: некомитнатите файлове и променените на този клон.',
532
532
  },
533
533
  {
534
534
  key: 'wb.refresh',
@@ -567,8 +567,8 @@ export const SYSTEM_GUIDE = [
567
567
  kind: 'button',
568
568
  en: 'Commit',
569
569
  bg: 'Комитни',
570
- doesEn: 'At the top of the git view, under the message box (Ctrl+Enter there does the same): commits the staged files with that message, under the person\'s own name for git — their commit, not the chat\'s. The project\'s hooks run as in a terminal, unless one is not the project\'s own: then it names it and asks — "Without hooks", "Run them anyway" or "Cancel". When it does not go through, a sentence says why over git\'s own words. Nothing is ever amended or forced.',
571
- doesBg: 'Най-горе в изгледа git, под полето за съобщението (Ctrl+Enter там прави същото): комитва подготвените файлове с това съобщение, с името на човека в git — неговият комит, не на чата. Hook-овете на проекта се пускат както в терминал, освен ако някой не е собствен на проекта: тогава го назовава и пита — „Без hook-ове“, „Пусни ги все пак“ или „Откажи“. Когато не мине, едно изречение казва защо, над собствените думи на git. Нищо никога не се поправя (amend) и не се налага насила.',
570
+ doesEn: 'At the top of the git view, under the message box (Ctrl+Enter there does the same): commits the staged files with that message, under the person\'s own git name. The project\'s hooks run as in a terminal; one not the project\'s own is named and asked about — "Without hooks", "Run them anyway" or "Cancel". A failure is said in a sentence over git\'s own words. Nothing is ever amended or forced.',
571
+ doesBg: 'Най-горе в изгледа git, под полето за съобщението (Ctrl+Enter там прави същото): комитва подготвените файлове с това съобщение, с името на човека в git. Hook-овете на проекта се пускат както в терминал; чужд на проекта се назовава и се пита — „Без hook-ове“, „Пусни ги все пак“ или „Откажи“. Неуспехът се казва с едно изречение над думите на git. Нищо не се поправя (amend) и не се налага насила.',
572
572
  },
573
573
  {
574
574
  key: 'git.commitAll',
@@ -806,8 +806,8 @@ export const SYSTEM_GUIDE = [
806
806
  kind: 'badge',
807
807
  en: 'LIVE',
808
808
  bg: 'LIVE',
809
- doesEn: 'Beside "Chat" while the bot works, red (amber while paused); on hover it says who is at work. The browser tab says how it stands, in English whatever language the page is in: "Working... — copilot-operator", "Paused", "Waiting for you (1)" when something waits for the operator, "Waiting for your password"; then how the last message ended — "Done", "Error", "Stopped", "Blocked", "Limit reached".',
810
- doesBg: 'До „Чат“, докато ботът работи — червено (жълто на пауза); при посочване казва кой работи. Табът на браузъра казва как стоят нещата, на английски на всеки език на страницата: „Working... — copilot-operator“, „Paused“, „Waiting for you (1)“, когато нещо чака оператора, „Waiting for your password“; после как е свършило последното съобщение — „Done“, „Error“, „Stopped“, „Blocked“, „Limit reached“.',
809
+ doesEn: 'Beside "Chat" while the bot works, red (amber while paused); on hover it says who is at work. The browser tab says how it stands, in English whatever language the page is in: "Working... — copilot-operator", "Paused", "Waiting for you (1)" when something waits for the operator, "Waiting for your password", "Waiting for you to sign in"; then how the last message ended — "Done", "Error", "Stopped", "Blocked", "Limit reached".',
810
+ doesBg: 'До „Чат“, докато ботът работи — червено (жълто на пауза); при посочване казва кой работи. Табът на браузъра казва как стоят нещата, на английски на всеки език на страницата: „Working... — copilot-operator“, „Paused“, „Waiting for you (1)“, когато нещо чака оператора, „Waiting for your password“, „Waiting for you to sign in“; после как е свършило последното съобщение — „Done“, „Error“, „Stopped“, „Blocked“, „Limit reached“.',
811
811
  },
812
812
  {
813
813
  key: 'actor.asks',
@@ -854,8 +854,8 @@ export const SYSTEM_GUIDE = [
854
854
  kind: 'button',
855
855
  en: '⎇ New branch from main',
856
856
  bg: '⎇ Нов бранч от main',
857
- doesEn: 'Under the chat\'s box, beside the skills: fetches the latest of the remote\'s main and opens a window to make a new local branch from it for the next task — not tracking main, so its work is never pushed there by mistake. A password or a key\'s passphrase goes into Git\'s own window. Off while a task works, and where the folder is not a repository.',
858
- doesBg: 'Под полето на чата, до skill-овете: взима последното от main на remote и отваря прозорец за нов локален клон от него за следващата задача — без да следи main, така че работата му никога не отива там по грешка. Парола или passphrase на ключ се въвежда в собствения прозорец на Git. Изключен, докато работи задача, и където папката не е хранилище.',
857
+ doesEn: 'Under the chat\'s box, beside the skills: fetches the latest of the remote\'s main and opens a window to make a new local branch from it for the next task — not tracking main, so its work is never pushed there by mistake. A password or a key\'s passphrase goes into Git\'s own window. Off while a task works, and where the folder is not a repository. Uncommitted work of a queue task set aside on the folder is put aside for it, not taken along.',
858
+ doesBg: 'Под полето на чата, до skill-овете: взима последното от main на remote и отваря прозорец за нов локален клон от него за следващата задача — без да следи main, така че работата му никога не отива там по грешка. Парола или passphrase на ключ се въвежда в собствения прозорец на Git. Изключен, докато работи задача, и където папката не е хранилище. Некомитнатата работа на задача от опашката, оставена настрана в папката, се оставя настрана за нея, не се взима.',
859
859
  },
860
860
  {
861
861
  key: 'nb.title',
@@ -958,8 +958,8 @@ export const SYSTEM_GUIDE = [
958
958
  kind: 'button',
959
959
  en: 'Open a folder',
960
960
  bg: 'Отвори папка',
961
- doesEn: 'Opens the machine\'s folder dialog; the folder chosen becomes the project the chat and the Files view work on (Settings → project folder).',
962
- doesBg: 'Отваря прозореца за избор на папка; избраната става проектът, върху който работят чатът и изгледът „Файлове“ (Настройки → папка на проекта).',
961
+ doesEn: 'Opens the machine\'s folder dialog; the folder chosen becomes the project the chat and the Files view work on, with its own name, level 2 and "for reference only" — those of the one before are kept for it.',
962
+ doesBg: 'Отваря прозореца за избор на папка; избраната става проектът, върху който работят чатът и „Файлове“, със свои име, ниво 2 и „само за справка“ — тези на предишния се пазят за него.',
963
963
  },
964
964
  {
965
965
  key: 'chat.input',
@@ -1030,8 +1030,8 @@ export const SYSTEM_GUIDE = [
1030
1030
  kind: 'button',
1031
1031
  en: 'Send',
1032
1032
  bg: 'Изпрати',
1033
- doesEn: 'Sends the message and starts it on the branch the folder is on; nothing is asked about branches. The Copilot window stays open when the work on it has ended, says so with an OK, and the next message works in it; close it with its X when nothing is at work. Closed in the middle of a message, it is opened again on its conversation and the answer asked for again, as many times as Settings → Execution allow (3 by default); then the message stops, and "Continue" carries it on.',
1034
- doesBg: 'Изпраща съобщението и го пуска на бранча, на който е папката; нищо не се пита за бранчове. Прозорецът на Copilot остава отворен, когато работата в него свърши, казва го с „ОК“ и следващото съобщение работи в него; затворете го с X, когато нищо не работи. Затворен по средата на съобщение, той се отваря отново на разговора си и отговорът се иска пак, толкова пъти, колкото позволява Настройки → Изпълнение (3 по подразбиране); после съобщението спира и „Продължи“ го продължава.',
1033
+ doesEn: 'Sends the message and starts it on the branch the folder is on. The Copilot window stays open when the work ends, says so with an OK, and the next message works in it; close it with its X when nothing works. Closed mid-message, it is opened again on its conversation and the answer asked again, as many times as Settings → Execution allow (3 by default); then the message stops, and "Continue" carries it on.',
1034
+ doesBg: 'Изпраща съобщението и го пуска на бранча, на който е папката. Прозорецът на Copilot остава отворен, когато работата свърши, казва го с „ОК“ и следващото съобщение работи в него; затворете го с X, когато нищо не работи. Затворен по средата на съобщение, се отваря отново на разговора си и отговорът се иска пак, колкото пъти позволява Настройки → Изпълнение (3 по подразбиране); после съобщението спира и „Продължи“ го продължава.',
1035
1035
  },
1036
1036
  {
1037
1037
  key: 'chat.sendNote',
@@ -1118,8 +1118,8 @@ export const SYSTEM_GUIDE = [
1118
1118
  kind: 'checkbox',
1119
1119
  en: 'Two chats',
1120
1120
  bg: 'Два чата',
1121
- doesEn: 'Two chats, for a new conversation: the message goes to a lead, which restates it, has a worker survey the project, plans, gives the worker one subtask at a time and judges each report, until the result is ready in the form asked for; the worker runs the commands. Both are conversations in the same Copilot window. A started conversation shows how it began. With it, there is no "Review": the lead judges the worker.',
1122
- doesBg: 'Два чата, за нов разговор: съобщението отива при ръководител, който го преразказва, пуска изпълнител да огледа проекта, прави план, дава на изпълнителя по една подзадача и преценява всеки доклад, докато резултатът стане готов в поискания вид; изпълнителят пуска командите. И двата са разговори в един и същ прозорец на Copilot. Започнатият разговор показва как е започнал. С него няма „Рецензия“: ръководителят преценява изпълнителя.',
1121
+ doesEn: 'Two chats, for a new conversation: the message goes to a lead, which restates it, has a worker survey the project, plans, gives the worker one subtask at a time and judges each report until the result is ready; the worker runs the commands. Both are conversations in the same Copilot window. With it, there is no "Review": the lead judges the worker.',
1122
+ doesBg: 'Два чата, за нов разговор: съобщението отива при ръководител, който го преразказва, пуска изпълнител да огледа проекта, прави план, дава на изпълнителя по една подзадача и преценява всеки доклад, докато резултатът е готов; изпълнителят пуска командите. И двата са разговори в един прозорец на Copilot. С него няма „Рецензия“: ръководителят преценява изпълнителя.',
1123
1123
  },
1124
1124
  {
1125
1125
  key: 'chat.kerrigan',
@@ -1470,8 +1470,8 @@ export const SYSTEM_GUIDE = [
1470
1470
  kind: 'button',
1471
1471
  en: 'Run this and the rest',
1472
1472
  bg: 'Изпълни тази и останалите',
1473
- doesEn: 'Runs it and stops asking for the rest of this message.',
1474
- doesBg: 'Изпълнява я и спира да пита за останалото от това съобщение.',
1473
+ doesEn: 'Runs it and stops asking for the rest of this message. Not offered where Settings do not let a run go on unasked (no isolation, no programs listed, a policy lock): the card says which.',
1474
+ doesBg: 'Изпълнява я и спира да пита за останалото от това съобщение. Не се предлага, където Настройки не позволяват това (без изолация, без изброени програми, заключване): картата казва кое.',
1475
1475
  },
1476
1476
  {
1477
1477
  key: 'chat.askSkip',
@@ -1517,8 +1517,8 @@ export const SYSTEM_GUIDE = [
1517
1517
  kind: 'button',
1518
1518
  en: 'Save',
1519
1519
  bg: 'Запази',
1520
- doesEn: 'Saves the file (also Ctrl+S), over the version that was opened: a file changed on disk meanwhile is not overwritten without asking. A tab with changes not saved has a dot; closing it asks first.',
1521
- doesBg: 'Запазва файла (и с Ctrl+S), върху версията, която е била отворена: файл, променен на диска междувременно, не се презаписва без питане. Раздел с незапазени промени има точка; затварянето му пита първо.',
1520
+ doesEn: 'Saves the file (also Ctrl+S), over the version that was opened: a file changed on disk meanwhile is not overwritten without asking. A tab with changes not saved has a dot; closing it asks first. Edits not saved are kept in this browser, by folder, with their tabs: back after Settings, a reload or another folder.',
1521
+ doesBg: 'Запазва файла (и с Ctrl+S), върху версията, която е била отворена: файл, променен на диска междувременно, не се презаписва без питане. Раздел с незапазени промени има точка; затварянето му пита първо. Незаписаните промени се пазят в този браузър, по папка, с табовете си: връщат се след Настройки, презареждане или друга папка.',
1522
1522
  },
1523
1523
  {
1524
1524
  key: 'ed.revert',
@@ -1786,8 +1786,8 @@ export const SYSTEM_GUIDE = [
1786
1786
  kind: 'tab',
1787
1787
  en: 'Problems',
1788
1788
  bg: 'Проблеми',
1789
- doesEn: 'What did not go well in the conversation open in the chat — a message that ended unfinished, stopped or at a limit, and why; a check that failed. A press on one opens it under its line: all of what it says (the line shows only its start), the review\'s evidence for a finding, what it comes from, when it happened, the chat and the message it is of; a second press folds it. The count is of the ones not marked seen. Empty on a new chat.',
1790
- doesBg: 'Какво не е минало добре в отворения в чата разговор — съобщение, завършило незавършено, спряно или при ограничение, и защо; проверка, която не е минала. Натискане на проблем го отваря под реда му: всичко, което казва (редът показва само началото), доказателството на прегледа за находка, от какво идва, кога се е случил, чатът и съобщението, към които е; второ натискане го свива. Броят е на тези, които не са отбелязани като видени. Празно при нов чат.',
1789
+ doesEn: 'What did not go well in the conversation open in the chat — a message that ended unfinished, stopped or at a limit, and why; a check that failed. A press opens one in full under its line — the review\'s evidence, where it comes from, when, its chat and message; a second press folds it. The count is of those not marked seen.',
1790
+ doesBg: 'Какво не е минало добре в отворения разговор — съобщение, завършило незавършено, спряно или при ограничение, и защо; проверка, която не е минала. Натискане го отваря изцяло под реда му — доказателството на прегледа, откъде идва, кога, чатът и съобщението му; второ натискане го свива. Броят е на неотбелязаните като видени.',
1791
1791
  },
1792
1792
  {
1793
1793
  key: 'wb.problemsInfoLabel',
@@ -1890,8 +1890,8 @@ export const SYSTEM_GUIDE = [
1890
1890
  kind: 'note',
1891
1891
  en: 'Waits for you',
1892
1892
  bg: 'Чака вас',
1893
- doesEn: 'The status of a task set aside while it waited for the operator: under it, its card with what it waits for, to answer now; it carries on from where it stopped at the queue\'s next turn.',
1894
- doesBg: 'Състоянието на задача, оставена настрана, докато е чакала оператора: под нея е картата ѝ с това, което чака, за отговор сега; продължава оттам, където е спряла, при следващия ход на опашката.',
1893
+ doesEn: 'The status of a task set aside while it waited for the operator: under it, its card with what it waits for, to answer now; it carries on from where it stopped at the queue\'s next turn. Taken out or run again, its chat\'s card closes and "Continue" carries it on there; answered, the queue carries it on.',
1894
+ doesBg: 'Състоянието на задача, оставена настрана, докато е чакала оператора: под нея е картата ѝ с това, което чака, за отговор сега; продължава оттам, където е спряла, при следващия ход на опашката. Махната или пусната отново, картата в чата ѝ се затваря и „Продължи“ я продължава там; отговорена — продължава я опашката.',
1895
1895
  },
1896
1896
  {
1897
1897
  key: 'pk.approve',
@@ -2591,8 +2591,8 @@ export const SYSTEM_GUIDE = [
2591
2591
  kind: 'button',
2592
2592
  en: 'Check the locators',
2593
2593
  bg: 'Провери локаторите',
2594
- doesEn: 'Opens the Copilot window, as reading the models does, and looks for each locator: the box and Send, the sidebar, the newest conversation (opened by its address) and its "More" menu (opened and closed again), and the steps to the chat. It only reads; nothing is sent or renamed. Under each field: found, not found (then in red, with the file for a chatbot), or not on the page then and why.',
2595
- doesBg: 'Отваря прозореца на Copilot, както при четенето на моделите, и търси всеки локатор: полето и „Send“, страничната лента, най-новия разговор (отворен по адреса му) и менюто му „More“ (отворено и затворено пак), и стъпките до чата. Само чете; нищо не се изпраща и не се преименува. Под всяко поле: намерен, не е намерен (тогава в червено, с файла за чатбота) или не е на страницата тогава и защо.',
2594
+ doesEn: 'Opens the Copilot window and looks for each locator — the box and Send, the sidebar, the newest conversation and its "More" menu (opened and closed again) — and the steps to the chat. It only reads; nothing is sent or renamed. Under each field: found, not found (in red, with the file for a chatbot), or not on the page then and why.',
2595
+ doesBg: 'Отваря прозореца на Copilot и търси всеки локатор — полето и „Send“, страничната лента, най-новия разговор и менюто му „More“ (отворено и затворено пак) — и стъпките до чата. Само чете; нищо не се изпраща и не се преименува. Под всяко поле: намерен, не е намерен (в червено, с файла за чатбота) или не е на страницата тогава и защо.',
2596
2596
  },
2597
2597
  {
2598
2598
  key: 'chatloc.composer',
@@ -197,6 +197,13 @@ export function skippedBecause(because) {
197
197
  const what = because.status === 'failed' ? 'failed' : because.status === 'stopped' ? 'was stopped' : because.status === 'skipped' ? 'was skipped' : `has not run (${because.status})`;
198
198
  return `it depends on "${itemTitle(because)}", which ${what}`;
199
199
  }
200
+ /**
201
+ * Whether the queue holds a chat for this task: set aside with its card, or carrying on in it at its next turn. A task
202
+ * the queue lets go of — taken out, run again, started over — has its chat's card closed (2026-11-19).
203
+ */
204
+ export function holdsChat(x) {
205
+ return !!x.sessionId && (x.status === 'parked' || (x.status === 'waiting' && x.resume === true));
206
+ }
200
207
  /** A task's status from how its message ended. */
201
208
  export function statusOfTask(taskStatus) {
202
209
  return taskStatus === 'done' ? 'done' : taskStatus === 'aborted' ? 'stopped' : 'failed';
@@ -4,8 +4,7 @@
4
4
  * each. Kept in the data folder, so a failure seen before a restart is still shown; read by the banner on every page
5
5
  * and by Settings, where the locator's field is in red, until the locator is changed there or the operator closes it.
6
6
  */
7
- import { readFile } from 'node:fs/promises';
8
- import { writeFileAtomically } from './store.js';
7
+ import { readStoreJson, writeFileAtomically } from './store.js';
9
8
  import { CHAT_LOCATOR_KEYS } from '../transport/locators.js';
10
9
  import { isStepKey } from '../transport/chatSteps.js';
11
10
  const isKey = (k) => typeof k === 'string' && (CHAT_LOCATOR_KEYS.includes(k) || isStepKey(k));
@@ -16,16 +15,16 @@ export class LocatorFailures {
16
15
  constructor(file) {
17
16
  this.file = file;
18
17
  }
18
+ /** As kept, for the banner and Settings: one that cannot be read shows none (the change below refuses it). */
19
19
  async list() {
20
- try {
21
- const raw = JSON.parse(await readFile(this.file, 'utf8'));
22
- if (!Array.isArray(raw))
23
- return [];
24
- return raw.filter((f) => !!f && typeof f === 'object' && isKey(f.key) && typeof f.locator === 'string' && typeof f.at === 'string');
25
- }
26
- catch {
20
+ return await this.read().catch(() => []);
21
+ }
22
+ /** As kept; one there but not readable is refused (2026-11-19), so a change never writes it over. */
23
+ async read() {
24
+ const raw = await readStoreJson(this.file);
25
+ if (!Array.isArray(raw))
27
26
  return [];
28
- }
27
+ return raw.filter((f) => !!f && typeof f === 'object' && isKey(f.key) && typeof f.locator === 'string' && typeof f.at === 'string');
29
28
  }
30
29
  async get(key) {
31
30
  return (await this.list()).find((f) => f.key === key) ?? null;
@@ -50,7 +49,7 @@ export class LocatorFailures {
50
49
  */
51
50
  async change(edit) {
52
51
  const run = async () => {
53
- await writeFileAtomically(this.file, async () => JSON.stringify(edit(await this.list()), null, 2));
52
+ await writeFileAtomically(this.file, async () => JSON.stringify(edit(await this.read()), null, 2));
54
53
  };
55
54
  const done = this.queue.then(run, run);
56
55
  this.queue = done.catch(() => undefined);
@@ -12,6 +12,10 @@ export function tidyVcsPlan(plan) {
12
12
  return undefined;
13
13
  return { ...(branch ? { branch } : {}), ...(commitMessage ? { commitMessage } : {}) };
14
14
  }
15
+ /** Whether a set-aside task's card is over — stopped, or let go of by the queue — so that "Continue" carries it on. */
16
+ export function parkedOver(parked) {
17
+ return !parked || parked.answer?.kind === 'stopped' || parked.answer?.kind === 'released';
18
+ }
15
19
  export const clipText = (s, n) => {
16
20
  const t = (s ?? '').trim();
17
21
  if (!t)
@@ -786,6 +786,53 @@ function inTurn(path, work) {
786
786
  * setting put back whatever another had changed in between. If it throws, nothing is written. Like
787
787
  * any work in a turn, it must not wait for another turn on the same file (see `inTurn`).
788
788
  */
789
+ /**
790
+ * A file of the bot's own records that is there but cannot be used (2026-11-19). Read as empty, it was written over by
791
+ * the next change: a queue.json the machine lost power over, or another program held, came back as an empty queue,
792
+ * and the next task added wrote it over — every task and every card kept for the operator gone, without a word. As
793
+ * `SettingsUnusableError` refuses for settings.json.
794
+ */
795
+ export class StoreFileUnusable extends Error {
796
+ path;
797
+ constructor(path, problem) {
798
+ super(`${path} ${problem}. Nothing has been saved over it: mend it, or move it away to start that list again empty.`);
799
+ this.path = path;
800
+ this.name = 'StoreFileUnusable';
801
+ }
802
+ }
803
+ /**
804
+ * A JSON file of the bot's own records, read to be changed and written back: undefined when it is not there or holds
805
+ * nothing (a list not begun); a moment's lock by another program — a virus scanner, a sync client — waited out, as a
806
+ * write's is (`moveOver`); anything else refused (`StoreFileUnusable`), so it is never written over.
807
+ */
808
+ export async function readStoreJson(path) {
809
+ const backoffMs = [10, 25, 60, 120, 250, 500];
810
+ for (let attempt = 0;; attempt += 1) {
811
+ let text;
812
+ try {
813
+ text = await readFile(path, 'utf8');
814
+ }
815
+ catch (e) {
816
+ const code = e.code ?? '';
817
+ if (code === 'ENOENT')
818
+ return undefined;
819
+ if ((code === 'EBUSY' || code === 'EPERM' || code === 'EACCES') && attempt < backoffMs.length) {
820
+ await new Promise((r) => setTimeout(r, backoffMs[attempt]));
821
+ continue;
822
+ }
823
+ throw new StoreFileUnusable(path, `could not be read (${code || e.message})`);
824
+ }
825
+ const body = text.charCodeAt(0) === 0xfeff ? text.slice(1) : text;
826
+ if (body.trim() === '')
827
+ return undefined;
828
+ try {
829
+ return JSON.parse(body);
830
+ }
831
+ catch (e) {
832
+ throw new StoreFileUnusable(path, `is not valid JSON (${e.message})`);
833
+ }
834
+ }
835
+ }
789
836
  export async function writeFileAtomically(path, content) {
790
837
  await inTurn(path, async () => replaceFile(path, typeof content === 'string' ? content : await content()));
791
838
  }
@@ -239,7 +239,12 @@ export async function putBackAside(folder, saved) {
239
239
  const files = lines((await git(repoDir, ['diff', '--name-only', `${commit}^`, commit])).stdout).length;
240
240
  const laid = await git(repoDir, [...BOT_AUTHOR, 'cherry-pick', '--no-commit', commit], 300_000);
241
241
  if (!laid.ok) {
242
- await git(repoDir, ['cherry-pick', '--abort']);
242
+ /*
243
+ * Taken back as a merge is (2026-11-19): a pick with --no-commit leaves no cherry-pick for "--abort" to end, and the
244
+ * folder was left half merged, conflict markers in it. `reset --merge` takes back what the pick laid — the clash, the
245
+ * new files — and keeps an edit of the folder's own elsewhere, which a pick never touches (it refuses first).
246
+ */
247
+ await git(repoDir, ['reset', '--merge']);
243
248
  return { problem: `its changes could not be laid on what the folder holds now (${(laid.stderr || laid.stdout).split(/\r?\n/)[0]}); they are kept on ${saved}` };
244
249
  }
245
250
  // Not staged, as they were: the new files new again, the changed ones changed.
@@ -22,11 +22,12 @@
22
22
  */
23
23
  import { createHash } from 'node:crypto';
24
24
  import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
25
- import { mkdir, readFile, writeFile } from 'node:fs/promises';
25
+ import { mkdir } from 'node:fs/promises';
26
26
  import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
27
27
  import { git, gitLive, RUNNER_EMAIL } from './git.js';
28
28
  import { askpassProgram, closePasswordWindows, operatorFetchEnv, passwordWindowOpen } from './remoteAuth.js';
29
29
  import { workspaceGit } from '../session/workspaceGit.js';
30
+ import { readStoreJson, writeFileAtomically } from '../session/store.js';
30
31
  const MINUTES = 60_000;
31
32
  /** Long enough for a project's pre-commit checks or a big push; the view shows every line meanwhile. */
32
33
  const OP_TIMEOUT_MS = 15 * MINUTES;
@@ -67,17 +68,14 @@ export class TrustedHooks {
67
68
  constructor(file) {
68
69
  this.file = file;
69
70
  }
71
+ /** As kept; one there but not readable is refused (2026-11-19), so an addition never writes the others over. */
70
72
  async read() {
71
- try {
72
- const data = JSON.parse(await readFile(this.file, 'utf8'));
73
- return data && typeof data === 'object' ? data : {};
74
- }
75
- catch {
76
- return {};
77
- }
73
+ const data = await readStoreJson(this.file);
74
+ return data && typeof data === 'object' && !Array.isArray(data) ? data : {};
78
75
  }
76
+ /** Not readable: not trusted, so the hook is asked about again. */
79
77
  async has(top, path, sha) {
80
- return !!sha && (await this.read())[repoKey(top)]?.[path] === sha;
78
+ return !!sha && (await this.read().catch(() => ({})))[repoKey(top)]?.[path] === sha;
81
79
  }
82
80
  async add(top, hooks) {
83
81
  if (hooks.length === 0)
@@ -88,7 +86,8 @@ export class TrustedHooks {
88
86
  mine[h.path] = h.sha;
89
87
  all[repoKey(top)] = mine;
90
88
  await mkdir(dirname(this.file), { recursive: true });
91
- await writeFile(this.file, `${JSON.stringify(all, null, 2)}\n`, 'utf8');
89
+ // Through a temporary file and a rename, retried as Windows needs (2026-11-19): written in place, a crash left it cut.
90
+ await writeFileAtomically(this.file, `${JSON.stringify(all, null, 2)}\n`);
92
91
  }
93
92
  }
94
93
  /** The repository's top folder, or null when the folder is not in one. */
package/dist/web/404.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><!--kNfJ9jSwlboc_1sFBBfuI--><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/523d11041085f836.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-3f144d13be3516c2.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-00ebbcc6f65fbe35.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-2364903896c2c175.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><!--D3ew46wEw5JXPsTVwZwFC--><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/523d11041085f836.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-710628d673fa4afb.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-946e538fe3f9630f.js" async=""></script><script src="/_next/static/chunks/895-a178f989a2e5d489.js" async=""></script><script src="/_next/static/chunks/8124-967df691ec1bfeeb.js" async=""></script><script src="/_next/static/chunks/app/layout-7943a4391ad2f88f.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-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,&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-3f144d13be3516c2.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-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-00ebbcc6f65fbe35.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-1dba8babfcfbc6e2.js\",\"7177\",\"static/chunks/app/layout-2364903896c2c175.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/523d11041085f836.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"kNfJ9jSwlboc-1sFBBfuI\",\"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/523d11041085f836.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,&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-710628d673fa4afb.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-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.js\"],\"LanguageProvider\"]\n4:I[51035,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.js\"],\"DialogHost\"]\n5:I[16752,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.js\"],\"SkipLink\"]\n6:I[19050,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"8197\",\"static/chunks/8197-e2fcb43f38a2b4a7.js\",\"7921\",\"static/chunks/7921-946e538fe3f9630f.js\",\"895\",\"static/chunks/895-a178f989a2e5d489.js\",\"8124\",\"static/chunks/8124-967df691ec1bfeeb.js\",\"7177\",\"static/chunks/app/layout-7943a4391ad2f88f.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/523d11041085f836.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"D3ew46wEw5JXPsTVwZwFC\",\"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/523d11041085f836.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>