copilot-operator 0.1.54 → 0.1.56
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/LICENSE +21 -21
- package/README.md +618 -609
- package/dist/src/api/folderPicker.js +22 -22
- package/dist/src/api/operator.controller.js +32 -3
- package/dist/src/api/operator.service.js +80 -12
- package/dist/src/api/security.js +1 -1
- package/dist/src/api/server.js +9 -1
- package/dist/src/api/settings.js +18 -4
- package/dist/src/cli.js +16 -15
- package/dist/src/config/home.js +109 -0
- package/dist/src/config/layout.js +40 -5
- package/dist/src/config/schema.js +5 -1
- package/dist/src/exec/network.js +50 -3
- package/dist/src/orchestrator/hold.js +25 -0
- package/dist/src/orchestrator/leadLedger.js +88 -0
- package/dist/src/orchestrator/leadRunner.js +29 -2
- package/dist/src/orchestrator/review.js +2 -2
- package/dist/src/orchestrator/taskRunner.js +46 -4
- package/dist/src/plan/kerrigan.js +126 -126
- package/dist/src/plan/systemGuide.js +129 -17
- package/dist/src/protocol/leadSchema.js +36 -2
- package/dist/src/session/store.js +3 -0
- package/dist/src/session/workspaceGit.js +95 -1
- package/dist/src/transport/profileLock.js +34 -4
- package/dist/web/404.html +3 -3
- package/dist/web/_next/static/L-h3cKqABsuAzPqNkvLAP/_buildManifest.js +1 -0
- package/dist/web/_next/static/chunks/1077.a8fcbe8fc90ecb2d.js +1 -0
- package/dist/web/_next/static/chunks/1083.0122bea31f7199d9.js +1 -0
- package/dist/web/_next/static/chunks/1490.f5154054ddfd3dee.js +1 -0
- package/dist/web/_next/static/chunks/1536.98fab69162f370f0.js +1 -0
- package/dist/web/_next/static/chunks/1548.3aba99d28ca12a76.js +1 -0
- package/dist/web/_next/static/chunks/1584.7500138d08971f81.js +1 -0
- package/dist/web/_next/static/chunks/1732.90182d376c75c315.js +1 -0
- package/dist/web/_next/static/chunks/17449abc.fa53da036b7dcfb4.js +1 -0
- package/dist/web/_next/static/chunks/1872.d12259d09bb1173f.js +1 -0
- package/dist/web/_next/static/chunks/192.955be0d5fcd27ec6.js +1 -0
- package/dist/web/_next/static/chunks/1920.59b93a4215a75653.js +1 -0
- package/dist/web/_next/static/chunks/2063.4745e20abad5b208.js +1 -0
- package/dist/web/_next/static/chunks/2163.f028462d8dbc30fe.js +1 -0
- package/dist/web/_next/static/chunks/2175.8c8957600f6b88a8.js +1 -0
- package/dist/web/_next/static/chunks/2280.5a3754f49656d989.js +1 -0
- package/dist/web/_next/static/chunks/2355.d6bb92f10d516f81.js +1 -0
- package/dist/web/_next/static/chunks/2378.4f15342be64a9d23.js +1 -0
- package/dist/web/_next/static/chunks/2395.c2c4d3696d3b5542.js +1 -0
- package/dist/web/_next/static/chunks/2486.d130023b2b399eaa.js +1 -0
- package/dist/web/_next/static/chunks/2606.8e9434e7fee257b9.js +1 -0
- package/dist/web/_next/static/chunks/26dd8e60.1890515693b4ca88.js +1 -0
- package/dist/web/_next/static/chunks/2738.2559ed1058f6fb19.js +1 -0
- package/dist/web/_next/static/chunks/2821.409d92f5ac5b8142.js +1 -0
- package/dist/web/_next/static/chunks/3088.12b1d19ca55225b7.js +1 -0
- package/dist/web/_next/static/chunks/3152.d623d85a9afed5d3.js +1 -0
- package/dist/web/_next/static/chunks/3184.0788c67536fc4140.js +1 -0
- package/dist/web/_next/static/chunks/3194.8ee589997ce1e093.js +1 -0
- package/dist/web/_next/static/chunks/3322.4f7b378a41711478.js +1 -0
- package/dist/web/_next/static/chunks/3564.bfa030e92401f57d.js +1 -0
- package/dist/web/_next/static/chunks/358.4791f77f174006f3.js +1 -0
- package/dist/web/_next/static/chunks/3696.a367f4c8f42909d1.js +1 -0
- package/dist/web/_next/static/chunks/3748.8726b202d79d0dba.js +3 -0
- package/dist/web/_next/static/chunks/3794.19aedfb95f89dc48.js +1 -0
- package/dist/web/_next/static/chunks/384.063f394c789898a7.js +1 -0
- package/dist/web/_next/static/chunks/3854.39b7a1bf2b4189fe.js +1 -0
- package/dist/web/_next/static/chunks/386.2718f961400a3322.js +1 -0
- package/dist/web/_next/static/chunks/4008.3691a32e1711848f.js +1 -0
- package/dist/web/_next/static/chunks/4054.1c8d37b1513d20d8.js +1 -0
- package/dist/web/_next/static/chunks/4328.e326d66dd5c820c6.js +1 -0
- package/dist/web/_next/static/chunks/4444.36f5d8532bd6300d.js +1 -0
- package/dist/web/_next/static/chunks/4560.b8235d283fb3608c.js +1 -0
- package/dist/web/_next/static/chunks/464.f60ecfb6c72ec733.js +1 -0
- package/dist/web/_next/static/chunks/4912.1ab85b0ebf52a3e0.js +1 -0
- package/dist/web/_next/static/chunks/4982.bbbd303d665de4f0.js +1 -0
- package/dist/web/_next/static/chunks/4fecf3c3.e14d65bd1dce80cf.js +1 -0
- package/dist/web/_next/static/chunks/5052.dc8c36742419eed5.js +1 -0
- package/dist/web/_next/static/chunks/{7496.17282033df0e8794.js → 5115.fbe164892bfd6fa4.js} +1 -1
- package/dist/web/_next/static/chunks/5120.b4aadb89d4fb4f65.js +1 -0
- package/dist/web/_next/static/chunks/5448.1c4e0b719af53b3f.js +1 -0
- package/dist/web/_next/static/chunks/5623.cc6818f4096ce4c2.js +1 -0
- package/dist/web/_next/static/chunks/5664.507fea1f6305067e.js +1 -0
- package/dist/web/_next/static/chunks/5706.be484c6a7bed3fde.js +1 -0
- package/dist/web/_next/static/chunks/6336.b09d0d920c7631eb.js +1 -0
- package/dist/web/_next/static/chunks/6364.5b0466f24f4ecf58.js +1 -0
- package/dist/web/_next/static/chunks/640.2c2baacde5197a77.js +1 -0
- package/dist/web/_next/static/chunks/6419.61399b0413b8bef0.js +1 -0
- package/dist/web/_next/static/chunks/642.b70763e1cfe9e45e.js +1 -0
- package/dist/web/_next/static/chunks/6554.0110334a71e72bbe.js +1 -0
- package/dist/web/_next/static/chunks/6688.4a6ac23ba061262b.js +1 -0
- package/dist/web/_next/static/chunks/6815.6537cc012ba16cca.js +1 -0
- package/dist/web/_next/static/chunks/6896.33fdeb4e682c2cab.js +1 -0
- package/dist/web/_next/static/chunks/6912.3416822e13b4bc03.js +1 -0
- package/dist/web/_next/static/chunks/6944.635230aa8cb23871.js +1 -0
- package/dist/web/_next/static/chunks/6964.35718884ad3375bc.js +1 -0
- package/dist/web/_next/static/chunks/6992.4b059bae2659231d.js +1 -0
- package/dist/web/_next/static/chunks/6996.7c41217972cabc3f.js +1 -0
- package/dist/web/_next/static/chunks/7024.8bc670b892a558bb.js +1 -0
- package/dist/web/_next/static/chunks/7040.e058d8f95c3c11e7.js +1 -0
- package/dist/web/_next/static/chunks/714.70bdf8b4550aa78f.js +1 -0
- package/dist/web/_next/static/chunks/7220.807613863ef39947.js +1 -0
- package/dist/web/_next/static/chunks/7250.7f1d45021e49d2fd.js +1 -0
- package/dist/web/_next/static/chunks/7290.7bceed706f7b6df5.js +1 -0
- package/dist/web/_next/static/chunks/7301.c60eb2ba8ae6b859.js +1 -0
- package/dist/web/_next/static/chunks/7328.021e5e45124e40de.js +1 -0
- package/dist/web/_next/static/chunks/7340.a5a75ee889c30b74.js +1 -0
- package/dist/web/_next/static/chunks/7443.c189418756727101.js +1 -0
- package/dist/web/_next/static/chunks/7484.c0e6bfca7b2fb65e.js +1 -0
- package/dist/web/_next/static/chunks/7496.e638a7286c17e438.js +1 -0
- package/dist/web/_next/static/chunks/7500-077d236acd9b9c50.js +1 -0
- package/dist/web/_next/static/chunks/7695.11ba99db589cb586.js +1 -0
- package/dist/web/_next/static/chunks/7764.e62333ee1d63a458.js +1 -0
- package/dist/web/_next/static/chunks/7921-ddb0291f25a2e486.js +1 -0
- package/dist/web/_next/static/chunks/80.df762af692aca107.js +1 -0
- package/dist/web/_next/static/chunks/8024.4bd0b5a7f26a0f7d.js +1 -0
- package/dist/web/_next/static/chunks/82b69429.c6dd4e5c5ac704f3.js +368 -0
- package/dist/web/_next/static/chunks/8360.371456f14873ee9f.js +1 -0
- package/dist/web/_next/static/chunks/8544.7c1fb012f9073eaa.js +1 -0
- package/dist/web/_next/static/chunks/8547.424f9970cc72775f.js +1 -0
- package/dist/web/_next/static/chunks/8584.9bf7e755a7c8c432.js +1 -0
- package/dist/web/_next/static/chunks/8616.8e05c4a20dcdf39d.js +1 -0
- package/dist/web/_next/static/chunks/8752.bf29293df3366e17.js +298 -0
- package/dist/web/_next/static/chunks/8800.3c7b01176e98160a.js +1 -0
- package/dist/web/_next/static/chunks/88b2132a.04b02968da05b8a6.js +1005 -0
- package/dist/web/_next/static/chunks/8924.49dd385ac101fb7e.js +1 -0
- package/dist/web/_next/static/chunks/896.eb46d6e001d25d0f.js +1 -0
- package/dist/web/_next/static/chunks/9003.3d5c7a418d0b858b.js +1 -0
- package/dist/web/_next/static/chunks/9067.394ff92d9ae542b3.js +1 -0
- package/dist/web/_next/static/chunks/9068.9662bb8fa5fdc637.js +1 -0
- package/dist/web/_next/static/chunks/9178.a7631bd283f2a69c.js +1 -0
- package/dist/web/_next/static/chunks/9190.e3a90b1a9ed21668.js +1 -0
- package/dist/web/_next/static/chunks/9296.59fcfc8261a4c6bd.js +1 -0
- package/dist/web/_next/static/chunks/9312.e1fb4089a122d3d3.js +1 -0
- package/dist/web/_next/static/chunks/9348.022486b05b882739.js +1 -0
- package/dist/web/_next/static/chunks/948.132a0571d85c8b01.js +1 -0
- package/dist/web/_next/static/chunks/951.43a4ba54b1d1ff4e.js +3 -0
- package/dist/web/_next/static/chunks/9544.acc06fe34aa32c5c.js +7 -0
- package/dist/web/_next/static/chunks/9591.d205941f0062de24.js +1 -0
- package/dist/web/_next/static/chunks/9628.d8954a2bd28b85a6.js +1 -0
- package/dist/web/_next/static/chunks/9636.35df6241125f8513.js +1 -0
- package/dist/web/_next/static/chunks/9658.cdecb568f615e4c9.js +782 -0
- package/dist/web/_next/static/chunks/9672.b379566a8bfcd947.js +1 -0
- package/dist/web/_next/static/chunks/9680.d10b204d08ca3a62.js +1 -0
- package/dist/web/_next/static/chunks/9728.1d4cb6c68bd55f44.js +1 -0
- package/dist/web/_next/static/chunks/9747.80f474bcd4654c6c.js +1 -0
- package/dist/web/_next/static/chunks/9784.c9938b7e977e14eb.js +1 -0
- package/dist/web/_next/static/chunks/9812.024424a52730b057.js +1 -0
- package/dist/web/_next/static/chunks/9888.ce925cd415b672ef.js +1 -0
- package/dist/web/_next/static/chunks/{9891.91a2c59fd073fd48.js → 9891.a97db7c8f05693d1.js} +1 -1
- package/dist/web/_next/static/chunks/9904.a3d2f8569d7355ab.js +1 -0
- package/dist/web/_next/static/chunks/992.8470b96c23472686.js +1 -0
- package/dist/web/_next/static/chunks/9924.03252dda78c705c3.js +1 -0
- package/dist/web/_next/static/chunks/9968.3d45ff9183e8b07b.js +1 -0
- package/dist/web/_next/static/chunks/app/_not-found/page-23c6c0396966da29.js +1 -0
- package/dist/web/_next/static/chunks/app/defaults/page-4e5be923763ba3d9.js +1 -0
- package/dist/web/_next/static/chunks/app/layout-678acf830096ce90.js +1 -0
- package/dist/web/_next/static/chunks/app/page-be5c3849591d8c11.js +1 -0
- package/dist/web/_next/static/chunks/app/settings/page-b39878dce98ded94.js +1 -0
- package/dist/web/_next/static/chunks/app/system/page-176448acb2c8baa6.js +1 -0
- package/dist/web/_next/static/chunks/{main-app-f747f0f5ddb4213b.js → main-app-d23441ca81b3a063.js} +1 -1
- package/dist/web/_next/static/chunks/webpack-b26d4d956feb6e65.js +1 -0
- package/dist/web/_next/static/css/2de713eca93a7750.css +3 -0
- package/dist/web/_next/static/css/4bfdd3ebb3d1a180.css +1 -0
- package/dist/web/_next/static/css/51bfff1122e9f34d.css +1 -0
- package/dist/web/_next/static/css/73368887921d70d9.css +1 -0
- package/dist/web/_next/static/media/codicon.5ce2572b.ttf +0 -0
- package/dist/web/_next/static/media/editorWebWorkerMain.828b206c.js +1 -0
- package/dist/web/defaults.html +3 -3
- package/dist/web/defaults.txt +9 -9
- package/dist/web/index.html +4 -4
- package/dist/web/index.txt +9 -9
- package/dist/web/settings.html +14 -0
- package/dist/web/settings.txt +25 -0
- package/dist/web/system.html +3 -3
- package/dist/web/system.txt +9 -9
- package/dist/web/third-party-notices.txt +5966 -0
- package/package.json +157 -151
- package/prompts/lead1.md +140 -116
- package/prompts/level1.md +574 -574
- package/prompts/review1.md +287 -287
- package/dist/src/context/desktopDir.js +0 -44
- package/dist/web/_next/static/WuIGWiKKh_ESR3KwzsLZF/_buildManifest.js +0 -1
- package/dist/web/_next/static/chunks/1077.ae2fd686ef05572e.js +0 -1
- package/dist/web/_next/static/chunks/1548.bd558d3f2c8df4af.js +0 -1
- package/dist/web/_next/static/chunks/2163.b41334711ddcceff.js +0 -1
- package/dist/web/_next/static/chunks/714.cb77983f9be215c9.js +0 -1
- package/dist/web/_next/static/chunks/7220.072a60cd9d60220a.js +0 -1
- package/dist/web/_next/static/chunks/7500-f90e2ae7061e351d.js +0 -1
- package/dist/web/_next/static/chunks/7921-54dae769aa8bae96.js +0 -1
- package/dist/web/_next/static/chunks/8547.0a9997b67008c706.js +0 -1
- package/dist/web/_next/static/chunks/8584.9d5d6c09b0375015.js +0 -1
- package/dist/web/_next/static/chunks/9067.832c4761a991f2c2.js +0 -1
- package/dist/web/_next/static/chunks/9591.fabd60bd0d10341c.js +0 -1
- package/dist/web/_next/static/chunks/9747.c8d4ba56c9eef95f.js +0 -1
- package/dist/web/_next/static/chunks/app/_not-found/page-1264c0db9665169c.js +0 -1
- package/dist/web/_next/static/chunks/app/defaults/page-a1f90fe37e302928.js +0 -1
- package/dist/web/_next/static/chunks/app/layout-46efb208d7c88648.js +0 -1
- package/dist/web/_next/static/chunks/app/page-57787f15774d76b8.js +0 -1
- package/dist/web/_next/static/chunks/app/system/page-825f53f14d16033d.js +0 -1
- package/dist/web/_next/static/chunks/webpack-cb74fa884b8af278.js +0 -1
- package/dist/web/_next/static/css/d3398f485b2a9075.css +0 -1
- /package/dist/web/_next/static/{WuIGWiKKh_ESR3KwzsLZF → L-h3cKqABsuAzPqNkvLAP}/_ssgManifest.js +0 -0
|
@@ -428,6 +428,14 @@ export const SYSTEM_GUIDE = [
|
|
|
428
428
|
doesEn: 'The "i" beside the button: says what Kerrigan is and how she helps.',
|
|
429
429
|
doesBg: '„i“ до бутона: казва какво е Кериган и как помага.',
|
|
430
430
|
},
|
|
431
|
+
{
|
|
432
|
+
key: 'kerrigan.aboutTitle',
|
|
433
|
+
kind: 'note',
|
|
434
|
+
en: 'What Kerrigan is',
|
|
435
|
+
bg: 'Какво е Кериган',
|
|
436
|
+
doesEn: 'The box under the button, with nothing open in the editor: what Kerrigan is, three things she is for (an idea into a clear task, big work into tasks, how something here works) and how to use her, in a few lines.',
|
|
437
|
+
doesBg: 'Карето под бутона, когато в редактора няма нищо отворено: какво е Кериган, три неща, за които служи (идея в ясна задача, голяма работа на задачи, как работи нещо тук) и как се ползва, в няколко реда.',
|
|
438
|
+
},
|
|
431
439
|
],
|
|
432
440
|
},
|
|
433
441
|
{
|
|
@@ -475,6 +483,22 @@ export const SYSTEM_GUIDE = [
|
|
|
475
483
|
doesEn: 'The ↻ of the git view: reads the folder\'s git again at once.',
|
|
476
484
|
doesBg: '↻ на изгледа git: прочита git на папката веднага.',
|
|
477
485
|
},
|
|
486
|
+
{
|
|
487
|
+
key: 'git.branch',
|
|
488
|
+
kind: 'disclosure',
|
|
489
|
+
en: 'On this branch',
|
|
490
|
+
bg: 'На този клон',
|
|
491
|
+
doesEn: 'At the top of the git view: every file the branch changed, as a pull request shows them — its commits and what is not committed yet together — with its lines; a dot (●) marks the ones with something not committed yet. Over them, how many commits the branch is ahead and behind, and "All", "Committed" and "Not committed" to show only some. A file opens where the branch began against it as it is now. The branch\'s own commits are marked in "Commits", with a line where it began.',
|
|
492
|
+
doesBg: 'Най-горе в изгледа git: всеки файл, който клонът е променил, както ги показва pull request — комитите му и некомитнатото заедно — с редовете си; точка (●) отбелязва тези, в които има нещо некомитнато. Над тях — с колко комита клонът е напред и назад, и „Всички“, „Комитнати“ и „Некомитнати“, за да се покажат само някои. Файлът се отваря както е бил, където е започнал клонът, срещу това, какъвто е сега. Собствените комити на клона са отбелязани в „Комити“, с линия, където е започнал.',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
key: 'git.against',
|
|
496
|
+
kind: 'select',
|
|
497
|
+
en: 'Compared with',
|
|
498
|
+
bg: 'Сравнен с',
|
|
499
|
+
doesEn: 'In "On this branch": the branch a pull request of this one would go into — the remote\'s default branch, or main, unless another is chosen; kept for the folder.',
|
|
500
|
+
doesBg: 'В „На този клон“: клонът, в който би влязъл pull request от този — подразбиращият се клон на отдалеченото хранилище или main, освен ако не е избран друг; запазва се за папката.',
|
|
501
|
+
},
|
|
478
502
|
{
|
|
479
503
|
key: 'wb.appearance',
|
|
480
504
|
kind: 'button',
|
|
@@ -751,8 +775,8 @@ export const SYSTEM_GUIDE = [
|
|
|
751
775
|
kind: 'button',
|
|
752
776
|
en: 'Pause',
|
|
753
777
|
bg: 'Пауза',
|
|
754
|
-
doesEn: 'While it works: holds the work where it is — a reply being written and a command running are let finish — and then nothing more is sent and nothing runs; the button becomes "Continue".
|
|
755
|
-
doesBg: 'Докато работи: задържа работата там, където е — отговор, който се пише, и команда, която тече, се оставят да свършат — и после нищо повече не се изпраща и нищо не се изпълнява; бутонът става „Продължи“.
|
|
778
|
+
doesEn: 'While it works: holds the work where it is — a reply being written and a command running are let finish — and then nothing more is sent and nothing runs; the button becomes "Continue". From the press to "Continue" the clock stands still: that time does not count against the time limit, and the minutes in the status bar do not move.',
|
|
779
|
+
doesBg: 'Докато работи: задържа работата там, където е — отговор, който се пише, и команда, която тече, се оставят да свършат — и после нищо повече не се изпраща и нищо не се изпълнява; бутонът става „Продължи“. От натискането до „Продължи“ часовникът стои: това време не се брои към ограничението за време, а минутите в лентата на състоянието не мърдат.',
|
|
756
780
|
},
|
|
757
781
|
{
|
|
758
782
|
key: 'chat.resume',
|
|
@@ -826,6 +850,38 @@ export const SYSTEM_GUIDE = [
|
|
|
826
850
|
doesEn: 'The worker works on the lead\'s model.',
|
|
827
851
|
doesBg: 'Изпълнителят работи на модела на ръководителя.',
|
|
828
852
|
},
|
|
853
|
+
{
|
|
854
|
+
key: 'chat.workModel',
|
|
855
|
+
kind: 'note',
|
|
856
|
+
en: 'Work',
|
|
857
|
+
bg: 'Работа',
|
|
858
|
+
doesEn: 'With "Review" ticked: beside the first model, which is the work\'s.',
|
|
859
|
+
doesBg: 'С отметната „Рецензия“: до първия модел, който е на работата.',
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
key: 'chat.reviewModel',
|
|
863
|
+
kind: 'select',
|
|
864
|
+
en: 'Review',
|
|
865
|
+
bg: 'Рецензия',
|
|
866
|
+
doesEn: 'With "Review" ticked: the model the review\'s conversation is put on, under the work\'s — best a different, stronger one. Chosen here, it is this conversation\'s (or the next one\'s); otherwise the one in Settings → Model for the review.',
|
|
867
|
+
doesBg: 'С отметната „Рецензия“: моделът, на който върви разговорът на рецензията, под този на работата — най-добре различен и по-силен. Избран тук, важи за този разговор (или за следващия); иначе — този от Настройки → Модел за рецензията.',
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
key: 'chat.reviewModelDefault',
|
|
871
|
+
kind: 'select',
|
|
872
|
+
en: 'As in Settings ({model})',
|
|
873
|
+
bg: 'Както е в Настройки ({model})',
|
|
874
|
+
doesEn: 'The review runs on the model chosen in Settings → Model for the review.',
|
|
875
|
+
doesBg: 'Рецензията върви на модела, избран в Настройки → Модел за рецензията.',
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
key: 'chat.reviewModelByHand',
|
|
879
|
+
kind: 'select',
|
|
880
|
+
en: 'Chosen by hand in Copilot (none in Settings)',
|
|
881
|
+
bg: 'Ръчно в Copilot (няма избран в Настройки)',
|
|
882
|
+
doesEn: 'No review model is named anywhere: a card asks you to choose it in the Copilot window when the review begins.',
|
|
883
|
+
doesBg: 'Никъде не е посочен модел за рецензията: когато тя започне, карта ви моли да го изберете в прозореца на Copilot.',
|
|
884
|
+
},
|
|
829
885
|
{
|
|
830
886
|
key: 'lead.subtask',
|
|
831
887
|
kind: 'disclosure',
|
|
@@ -834,6 +890,14 @@ export const SYSTEM_GUIDE = [
|
|
|
834
890
|
doesEn: 'With two chats: a subtask the lead gave, as the worker did it — its commands and its report; open while it runs, folded once it ended. Marked when it only reads, or went to a new worker.',
|
|
835
891
|
doesBg: 'С два чата: подзадача, дадена от ръководителя, както я е изпълнил изпълнителят — командите и докладът му; отворена, докато върви, сгъната, щом свърши. Отбелязана, когато само чете или е дадена на нов изпълнител.',
|
|
836
892
|
},
|
|
893
|
+
{
|
|
894
|
+
key: 'lead.ledgerList',
|
|
895
|
+
kind: 'disclosure',
|
|
896
|
+
en: 'The subtasks of the plan (version {v})',
|
|
897
|
+
bg: 'Подзадачите в плана (версия {v})',
|
|
898
|
+
doesEn: 'With two chats: the lead\'s own list of subtasks, by phase — done (✓), in progress (●), planned (○), blocked (⊘) or failed (✗) — over it the phase the work is in, "Subtask 3 of 8 planned", how many are left, and apart from that the most subtasks allowed. The version goes up when the lead adds, drops or reorders subtasks, and the conversation says what changed.',
|
|
899
|
+
doesBg: 'С два чата: собственият списък с подзадачи на ръководителя, по фази — готова (✓), в процес (●), планирана (○), блокирана (⊘) или неуспешна (✗) — а над него фазата, в която е работата, „Подзадача 3 от 8 планирани“, колко остават и отделно най-многото разрешени подзадачи. Версията се вдига, когато ръководителят добави, махне или пренареди подзадачи, и разговорът казва какво се е променило.',
|
|
900
|
+
},
|
|
837
901
|
{
|
|
838
902
|
key: 'lead.plan',
|
|
839
903
|
kind: 'disclosure',
|
|
@@ -911,8 +975,8 @@ export const SYSTEM_GUIDE = [
|
|
|
911
975
|
kind: 'button',
|
|
912
976
|
en: 'Appearance',
|
|
913
977
|
bg: 'Изглед',
|
|
914
|
-
doesEn: 'In the bar on top,
|
|
915
|
-
doesBg: 'В лентата горе,
|
|
978
|
+
doesEn: 'In the bar on top, after System and before the language: the theme (System, Light, Dark), the text size with A− and A+, and the reading aids — night light, underlined links, less motion, more contrast, a thick focus outline, the system\'s cursor.',
|
|
979
|
+
doesBg: 'В лентата горе, след Система и преди езика: темата (Системна, Светла, Тъмна), размерът на текста с A− и A+, и помощните опции — нощна светлина, подчертани връзки, по-малко движение, повече контраст, дебел фокусен контур, курсорът на системата.',
|
|
916
980
|
},
|
|
917
981
|
{
|
|
918
982
|
key: 'wb.move',
|
|
@@ -1291,7 +1355,7 @@ export const SYSTEM_GUIDE = [
|
|
|
1291
1355
|
],
|
|
1292
1356
|
},
|
|
1293
1357
|
{
|
|
1294
|
-
route: '/
|
|
1358
|
+
route: '/settings',
|
|
1295
1359
|
nameEn: 'Settings',
|
|
1296
1360
|
nameBg: 'Настройки',
|
|
1297
1361
|
purposeEn: 'The base prompt, to read; the projects, each with its folder, branch and level 2 (which Kerrigan carries); the sign-in to Copilot; the model of new conversations and of the review; how a task runs. Every field has an ⓘ saying what it is for. Everything saves itself.',
|
|
@@ -1517,10 +1581,10 @@ export const SYSTEM_GUIDE = [
|
|
|
1517
1581
|
{
|
|
1518
1582
|
key: 'skills.remove',
|
|
1519
1583
|
kind: 'button',
|
|
1520
|
-
en: '
|
|
1521
|
-
bg: '
|
|
1522
|
-
doesEn: '
|
|
1523
|
-
doesBg: '
|
|
1584
|
+
en: 'Delete',
|
|
1585
|
+
bg: 'Изтрий',
|
|
1586
|
+
doesEn: 'At the top right of each skill: deletes it, once asked and answered; messages already sent with it keep it.',
|
|
1587
|
+
doesBg: 'Горе вдясно на всеки skill: изтрива го, след като попита и получи отговор; вече изпратените с него съобщения го запазват.',
|
|
1524
1588
|
},
|
|
1525
1589
|
{
|
|
1526
1590
|
key: 'skills.add',
|
|
@@ -1742,6 +1806,14 @@ export const SYSTEM_GUIDE = [
|
|
|
1742
1806
|
doesEn: 'How long to wait for one reply from Copilot.',
|
|
1743
1807
|
doesBg: 'Колко да се чака един отговор от Copilot.',
|
|
1744
1808
|
},
|
|
1809
|
+
{
|
|
1810
|
+
key: 'exec.maxMessageChars',
|
|
1811
|
+
kind: 'field',
|
|
1812
|
+
en: 'Longest message to the chat as text',
|
|
1813
|
+
bg: 'Най-дълго съобщение към чата като текст',
|
|
1814
|
+
doesEn: 'The most characters the bot sends Copilot in one message as text (120000 by default); a longer message goes as its beginning, with the whole of it attached as a text file.',
|
|
1815
|
+
doesBg: 'Най-много знаци, които ботът праща на Copilot в едно съобщение като текст (по подразбиране 120000); по-дълго съобщение отива като начало, а цялото — като прикачен текстов файл.',
|
|
1816
|
+
},
|
|
1745
1817
|
{
|
|
1746
1818
|
key: 'exec.isolation',
|
|
1747
1819
|
kind: 'select',
|
|
@@ -1854,8 +1926,8 @@ export const SYSTEM_GUIDE = [
|
|
|
1854
1926
|
route: '/system',
|
|
1855
1927
|
nameEn: 'System',
|
|
1856
1928
|
nameBg: 'Система',
|
|
1857
|
-
purposeEn: 'A
|
|
1858
|
-
purposeBg: 'Отчет за тази
|
|
1929
|
+
purposeEn: 'A report on this machine: Node, Edge, the folders and whether anything is holding the bot’s browser profile, and the one place to choose where the bot keeps its folder. It is the first page to read when a run will not start.',
|
|
1930
|
+
purposeBg: 'Отчет за тази машина: Node, Edge, папките и дали нещо държи профила на браузъра на бота, и единственото място, където се избира къде ботът да пази папката си. Страницата се чете първа, когато пускане не тръгва.',
|
|
1859
1931
|
sections: [
|
|
1860
1932
|
{
|
|
1861
1933
|
headingKey: 'sys.machine',
|
|
@@ -1894,13 +1966,53 @@ export const SYSTEM_GUIDE = [
|
|
|
1894
1966
|
doesEn: 'Under "This machine": the latest lines the bot\'s console printed, with their times, as a text file — what to ask for when something went wrong and nothing on the pages says why.',
|
|
1895
1967
|
doesBg: 'Под „Тази машина“: последните редове, отпечатани от конзолата на бота, с часовете им, като текстов файл — това се иска, когато нещо се е объркало и нищо по страниците не казва защо.',
|
|
1896
1968
|
},
|
|
1969
|
+
{
|
|
1970
|
+
key: 'sys.home',
|
|
1971
|
+
kind: 'note',
|
|
1972
|
+
en: 'The bot\'s folder',
|
|
1973
|
+
bg: 'Папка на бота',
|
|
1974
|
+
doesEn: 'Where the bot keeps its settings, conversations, logs and Edge profile, with a badge saying whether it is the default (the user\'s local application data, %LOCALAPPDATA%\\copilot-operator), chosen by the operator, set by COP_HOME, or the clone itself. Nothing of the bot\'s is put in the project\'s folder unless the operator chooses it.',
|
|
1975
|
+
doesBg: 'Къде ботът пази настройките, разговорите, дневниците и профила си в Edge, с етикет дали е подразбиращата се папка (локалните данни на приложенията на потребителя, %LOCALAPPDATA%\\copilot-operator), избрана от оператора, зададена с COP_HOME, или самото копие на хранилището. Нищо на бота не се слага в папката на проекта, освен ако операторът не избере нея.',
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
key: 'sys.homeChange',
|
|
1979
|
+
kind: 'button',
|
|
1980
|
+
en: 'Change…',
|
|
1981
|
+
bg: 'Смени…',
|
|
1982
|
+
doesEn: 'Opens a field for another folder (and "Browse…" for the machine\'s folder dialog), with a checkbox to copy what is in the folder now — settings, conversations, logs and the Edge profile, so the sign-in stays — and "Use this folder". Nothing already in the new folder is overwritten. It takes effect when the bot is started again; until then the row says "From the next start: …". Not offered for a clone or when COP_HOME sets the folder, and refused while work is going on.',
|
|
1983
|
+
doesBg: 'Отваря поле за друга папка (и „Преглед…“ за прозореца за избор на папка), с отметка да се копира и това, което е в папката сега — настройки, разговори, дневници и профилът в Edge, за да остане вписването — и „Използвай тази папка“. Нищо, което вече е в новата папка, не се презаписва. Важи от следващото пускане на бота; дотогава редът казва „От следващото пускане: …“. Не се предлага за копие на хранилището или когато COP_HOME задава папката и се отказва, докато върви работа.',
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
key: 'sys.homeReset',
|
|
1987
|
+
kind: 'button',
|
|
1988
|
+
en: 'Back to the default',
|
|
1989
|
+
bg: 'Обратно към подразбиращата се',
|
|
1990
|
+
doesEn: 'Shown when another folder was chosen: the same confirmation as "Change…", for the default folder.',
|
|
1991
|
+
doesBg: 'Показва се, когато е избрана друга папка: същото потвърждение като при „Смени…“, за подразбиращата се папка.',
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
key: 'sys.homeUse',
|
|
1995
|
+
kind: 'button',
|
|
1996
|
+
en: 'Use this folder',
|
|
1997
|
+
bg: 'Използвай тази папка',
|
|
1998
|
+
doesEn: 'Saves the folder for the next start (copying first, when the checkbox is on) and says to start the bot again; a folder that cannot be the bot\'s — inside the program, not writable, inside the current folder — is refused with the reason.',
|
|
1999
|
+
doesBg: 'Запазва папката за следващото пускане (като първо копира, ако отметката е сложена) и казва ботът да се пусне отново; папка, която не може да е на бота — в самата програма, без право на запис, вътре в сегашната папка — се отказва с причината.',
|
|
2000
|
+
},
|
|
1897
2001
|
{
|
|
1898
2002
|
key: 'sys.profileHeld',
|
|
1899
2003
|
kind: 'note',
|
|
1900
|
-
en: 'Edge
|
|
1901
|
-
bg: 'Edge
|
|
1902
|
-
doesEn: 'The line to look for when a run will not start:
|
|
1903
|
-
doesBg: 'Редът, който се търси, когато пускане не тръгва:
|
|
2004
|
+
en: 'Another Edge has the bot\'s profile open ({n} process(es), pid {pids}): one started outside the bot, or left from an earlier start of it. The bot cannot open its browser while it is: close that Edge window, or end those processes in Task Manager.',
|
|
2005
|
+
bg: 'Друг Edge е отворил профила на бота ({n} процеса, pid {pids}): пуснат извън бота или останал от предишно негово пускане. Докато е така, ботът не може да отвори браузъра си: затворете този прозорец на Edge или спрете тези процеси от Task Manager.',
|
|
2006
|
+
doesEn: 'The line to look for when a run will not start: an Edge that is not the bot\'s own has the profile open. The bot\'s own Edge — a run\'s, or its chat window kept open between messages — is never shown so.',
|
|
2007
|
+
doesBg: 'Редът, който се търси, когато пускане не тръгва: Edge, който не е на самия бот, държи профила отворен. Собственият Edge на бота — на изпълнение или прозорецът на чата, оставен отворен между съобщенията — никога не се показва така.',
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
key: 'sys.profileOwnWindow',
|
|
2011
|
+
kind: 'note',
|
|
2012
|
+
en: 'The bot\'s own chat window ({n} Edge process(es)): it stays open between messages, so the next one goes on in it. Nothing to do; you may close it.',
|
|
2013
|
+
bg: 'Собственият прозорец на чата на бота ({n} процеса на Edge): остава отворен между съобщенията, за да продължи следващото в него. Нищо не трябва да правите; можете да го затворите.',
|
|
2014
|
+
doesEn: 'The profile is held by the chat\'s window, which the bot keeps open between messages: the next message, or a run, uses it.',
|
|
2015
|
+
doesBg: 'Профилът се държи от прозореца на чата, който ботът оставя отворен между съобщенията: следващото съобщение или изпълнение го ползва.',
|
|
1904
2016
|
},
|
|
1905
2017
|
{
|
|
1906
2018
|
key: 'sys.profileMissing',
|
|
@@ -1913,8 +2025,8 @@ export const SYSTEM_GUIDE = [
|
|
|
1913
2025
|
{
|
|
1914
2026
|
key: 'sys.profileBot',
|
|
1915
2027
|
kind: 'note',
|
|
1916
|
-
en: '
|
|
1917
|
-
bg: '
|
|
2028
|
+
en: 'The bot\'s own Edge, for the work going on now ({n} process(es)). Nothing to do.',
|
|
2029
|
+
bg: 'Собственият Edge на бота, за работата, която върви сега ({n} процеса). Нищо не трябва да правите.',
|
|
1918
2030
|
doesEn: 'The profile is held by the bot\'s own run right now — nothing to close.',
|
|
1919
2031
|
doesBg: 'Профилът в момента се държи от собственото пускане на бота — няма какво да се затваря.',
|
|
1920
2032
|
},
|
|
@@ -55,6 +55,34 @@ export const SubtaskSchema = z.object({
|
|
|
55
55
|
readOnly: z.boolean().default(false),
|
|
56
56
|
freshWorker: z.boolean().default(false),
|
|
57
57
|
});
|
|
58
|
+
/**
|
|
59
|
+
* The lead's list of subtasks as it plans them now (operator's feedback, 2026-10-21: "1 of 20 subtasks" read as if 20
|
|
60
|
+
* were planned; show the subtasks planned and done, the phase, and the limit apart). Sent whole with every plan and every
|
|
61
|
+
* subtask, so the count the chat shows is the lead's own plan: a subtask is "done" once the lead has accepted its
|
|
62
|
+
* report, "running" is the one given now, "planned" the ones still to come; a list that grows says so.
|
|
63
|
+
*/
|
|
64
|
+
export const TODO_STATUSES = ['done', 'running', 'planned', 'blocked', 'failed'];
|
|
65
|
+
/** The words a chat uses for the five, read as them. */
|
|
66
|
+
const TODO_WORDS = {
|
|
67
|
+
done: 'done', completed: 'done', complete: 'done', finished: 'done', accepted: 'done', passed: 'done', ok: 'done',
|
|
68
|
+
running: 'running', 'in-progress': 'running', in_progress: 'running', 'in progress': 'running', current: 'running', active: 'running', now: 'running', doing: 'running', started: 'running',
|
|
69
|
+
planned: 'planned', pending: 'planned', todo: 'planned', 'to-do': 'planned', next: 'planned', queued: 'planned', open: 'planned', 'not started': 'planned',
|
|
70
|
+
blocked: 'blocked', stuck: 'blocked', waiting: 'blocked',
|
|
71
|
+
failed: 'failed', error: 'failed', fail: 'failed',
|
|
72
|
+
};
|
|
73
|
+
export const TodoItemSchema = z.preprocess((v) => (typeof v === 'string' ? { title: v } : v), z.object({
|
|
74
|
+
title: z.preprocess((v) => proseOfValue(v), z.string().trim().min(2, 'todo[].title must name the subtask in a few words.').max(140)),
|
|
75
|
+
status: z.preprocess((v) => (v === undefined || v === null || v === '' ? 'planned' : (TODO_WORDS[String(v).trim().toLowerCase()] ?? v)), z.enum(TODO_STATUSES, { message: 'todo[].status is one of "done", "running", "planned", "blocked", "failed".' })),
|
|
76
|
+
phase: z.preprocess((v) => (v === undefined || v === null ? undefined : proseOfValue(v).trim() || undefined), z.string().max(80).optional()),
|
|
77
|
+
}));
|
|
78
|
+
const todoList = z.preprocess((v) => v === undefined || v === null
|
|
79
|
+
? undefined
|
|
80
|
+
: typeof v === 'string'
|
|
81
|
+
? v.split(/\r?\n/).map((l) => l.replace(/^\s*(?:\d+[.)]|[-*•])\s+/, '').trim()).filter(Boolean)
|
|
82
|
+
: Array.isArray(v)
|
|
83
|
+
? v
|
|
84
|
+
: [v], z.array(TodoItemSchema).max(100).optional());
|
|
85
|
+
const TODO_SHAPE = '[{"title": "…", "status": "done" | "running" | "planned" | "blocked" | "failed", "phase": "…"}]';
|
|
58
86
|
export const LeadReplySchema = z
|
|
59
87
|
.object({
|
|
60
88
|
/**
|
|
@@ -70,6 +98,8 @@ export const LeadReplySchema = z
|
|
|
70
98
|
notes: prose,
|
|
71
99
|
plan: PlanSchema.optional(),
|
|
72
100
|
subtask: SubtaskSchema.optional(),
|
|
101
|
+
/** The whole list of subtasks as planned now; required with `delegate` and `plan` (see `TodoItemSchema`). */
|
|
102
|
+
todo: todoList,
|
|
73
103
|
question: prose,
|
|
74
104
|
why: prose,
|
|
75
105
|
options: proseList.default([]),
|
|
@@ -83,6 +113,10 @@ export const LeadReplySchema = z
|
|
|
83
113
|
})
|
|
84
114
|
.refine((r) => r.status !== 'plan' || !!r.plan, {
|
|
85
115
|
message: 'status "plan" requires a "plan": {"existing", "approach", "steps": [the stages], "files", "verification", "risks"}.',
|
|
116
|
+
})
|
|
117
|
+
.refine((r) => (r.status !== 'delegate' && r.status !== 'plan') || (r.todo?.length ?? 0) > 0, {
|
|
118
|
+
message: `status "delegate" and status "plan" require "todo": the whole list of subtasks as you plan them now, ${TODO_SHAPE} — "done" only once you have accepted its report, the one you give now "running", the ones still to come "planned".`,
|
|
119
|
+
path: ['todo'],
|
|
86
120
|
})
|
|
87
121
|
.refine((r) => r.status !== 'ask' || (r.question ?? '').trim().length >= 10, {
|
|
88
122
|
message: 'status "ask" requires a "question" for the operator: what only a person can decide, said in full.',
|
|
@@ -134,9 +168,9 @@ export function parseLeadReply(markdown) {
|
|
|
134
168
|
}
|
|
135
169
|
const LEAD_EXAMPLE = [
|
|
136
170
|
'```json',
|
|
137
|
-
'{"status": "delegate", "notes": "what you decide and why", "subtask": {"title": "Run the tests", "goal": "Find out which tests fail now.", "context": "Change nothing.", "steps": [], "report": "The totals, and for each failing test its name and its error, quoted.", "doneWhen": "The suite ran once.", "readOnly": true, "freshWorker": false}}',
|
|
171
|
+
'{"status": "delegate", "notes": "what you decide and why", "subtask": {"title": "Run the tests", "goal": "Find out which tests fail now.", "context": "Change nothing.", "steps": [], "report": "The totals, and for each failing test its name and its error, quoted.", "doneWhen": "The suite ran once.", "readOnly": true, "freshWorker": false}, "todo": [{"title": "Survey the project", "status": "done", "phase": "Survey"}, {"title": "Run the tests", "status": "running", "phase": "Diagnosis"}, {"title": "Fix the failing test", "status": "planned", "phase": "Fix"}]}',
|
|
138
172
|
'```',
|
|
139
|
-
'or {"status": "plan", "plan": {"existing": "…", "approach": "…", "steps": ["…"], "files": [], "verification": "…"}}',
|
|
173
|
+
'or {"status": "plan", "plan": {"existing": "…", "approach": "…", "steps": ["…"], "files": [], "verification": "…"}, "todo": [{"title": "…", "status": "planned", "phase": "…"}]}',
|
|
140
174
|
'or {"status": "ask", "question": "…", "why": "…", "options": ["…", "…"]}',
|
|
141
175
|
'or {"status": "done", "answer": "the result, in the form asked for", "evidence": ["…"]}',
|
|
142
176
|
'or {"status": "blocked", "summary": "what was done and found", "needed": "what would let it go on"}',
|
|
@@ -88,6 +88,7 @@ export const TASK_FIELD_ON_RERUN = {
|
|
|
88
88
|
runGroup: 'archived',
|
|
89
89
|
startedAt: 'archived',
|
|
90
90
|
finishedAt: 'archived',
|
|
91
|
+
pausedMs: 'archived',
|
|
91
92
|
summary: 'archived',
|
|
92
93
|
reason: 'archived',
|
|
93
94
|
deviations: 'archived',
|
|
@@ -565,6 +566,7 @@ export class SessionStore {
|
|
|
565
566
|
status: t.status,
|
|
566
567
|
startedAt: t.startedAt,
|
|
567
568
|
finishedAt: t.finishedAt,
|
|
569
|
+
...(t.pausedMs ? { pausedMs: t.pausedMs } : {}),
|
|
568
570
|
iterations: t.iterations,
|
|
569
571
|
summary: t.summary,
|
|
570
572
|
reason: t.reason,
|
|
@@ -612,6 +614,7 @@ export class SessionStore {
|
|
|
612
614
|
t.runGroup = undefined;
|
|
613
615
|
t.startedAt = undefined;
|
|
614
616
|
t.finishedAt = undefined;
|
|
617
|
+
t.pausedMs = undefined;
|
|
615
618
|
t.summary = undefined;
|
|
616
619
|
t.reason = undefined;
|
|
617
620
|
t.finalReply = undefined;
|
|
@@ -133,6 +133,84 @@ export async function workspaceGit(dir) {
|
|
|
133
133
|
moreCommits: commits.length > MAX_COMMITS,
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
+
const MAX_BRANCH_COMMITS = 500;
|
|
137
|
+
const MAX_BRANCH_FILES = 3000;
|
|
138
|
+
/** Every branch, local and remote, a branch can be compared with: not the one it is, not a remote's HEAD. */
|
|
139
|
+
async function branchRefs(dir, current) {
|
|
140
|
+
const r = await git(dir, ['for-each-ref', '--format=%(refname:short)', 'refs/heads', 'refs/remotes']);
|
|
141
|
+
if (!r.ok)
|
|
142
|
+
return [];
|
|
143
|
+
return r.stdout
|
|
144
|
+
.split(/\r?\n/)
|
|
145
|
+
.map((x) => x.trim())
|
|
146
|
+
.filter((x) => x && x !== current && !/\/HEAD$/.test(x) && x !== 'HEAD');
|
|
147
|
+
}
|
|
148
|
+
/** The branch a pull request of this one would go into: the remote's default, else main, master or develop. */
|
|
149
|
+
async function defaultBase(dir, refs) {
|
|
150
|
+
const head = await git(dir, ['symbolic-ref', '--quiet', '--short', 'refs/remotes/origin/HEAD']);
|
|
151
|
+
if (head.ok && refs.includes(head.stdout.trim()))
|
|
152
|
+
return head.stdout.trim();
|
|
153
|
+
return ['origin/main', 'origin/master', 'main', 'master', 'origin/develop', 'develop'].find((b) => refs.includes(b)) ?? refs[0];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Everything the branch changed, as a pull request shows it (operator, 2026-10-22: "show all the files changed on this
|
|
157
|
+
* branch, as a pull request does, not only the ones not committed; and of them, which are not committed yet"): each
|
|
158
|
+
* file against where the branch left `base` — its commits and what is not committed yet together, the files git does
|
|
159
|
+
* not track among them — marked with whether it is in a commit of the branch, and what of it is not committed. `base`
|
|
160
|
+
* must be one of the branches there are; left out, the one a pull request would go into. Read-only.
|
|
161
|
+
*/
|
|
162
|
+
export async function branchChanges(dir, base) {
|
|
163
|
+
const none = { dir, isRepo: false, bases: [], ahead: 0, behind: 0, commits: [], files: [], moreFiles: false };
|
|
164
|
+
if (!dir || !looksLikeRepo(dir))
|
|
165
|
+
return none;
|
|
166
|
+
const branch = (await git(dir, ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout || undefined;
|
|
167
|
+
const out = { ...none, isRepo: true, ...(branch ? { branch } : {}) };
|
|
168
|
+
if (!(await hasHead(dir)))
|
|
169
|
+
return { ...out, problem: 'no-commit' };
|
|
170
|
+
const bases = await branchRefs(dir, branch ?? '');
|
|
171
|
+
out.bases = bases;
|
|
172
|
+
// Only a branch the list names: nothing else of the request reaches git.
|
|
173
|
+
const chosen = base && bases.includes(base) ? base : await defaultBase(dir, bases);
|
|
174
|
+
if (!chosen)
|
|
175
|
+
return { ...out, problem: 'no-base' };
|
|
176
|
+
out.base = chosen;
|
|
177
|
+
const mb = await git(dir, ['merge-base', chosen, 'HEAD']);
|
|
178
|
+
if (!mb.ok || !mb.stdout)
|
|
179
|
+
return { ...out, problem: 'no-common' };
|
|
180
|
+
const mergeBase = mb.stdout.trim();
|
|
181
|
+
out.mergeBase = mergeBase;
|
|
182
|
+
const counts = await git(dir, ['rev-list', '--left-right', '--count', `${chosen}...HEAD`]);
|
|
183
|
+
const [behind = '0', ahead = '0'] = counts.stdout.split(/\s+/);
|
|
184
|
+
out.ahead = Number(ahead) || 0;
|
|
185
|
+
out.behind = Number(behind) || 0;
|
|
186
|
+
const list = await git(dir, ['rev-list', `--max-count=${MAX_BRANCH_COMMITS}`, `${mergeBase}..HEAD`]);
|
|
187
|
+
out.commits = list.ok ? list.stdout.split(/\s+/).filter(Boolean) : [];
|
|
188
|
+
// The branch's commits; the whole of it against the working tree; and what is not committed, by where it is.
|
|
189
|
+
const committed = await diffFiles(dir, [mergeBase, 'HEAD']);
|
|
190
|
+
const net = await diffFiles(dir, [mergeBase]);
|
|
191
|
+
const staged = new Set((await diffFiles(dir, ['--cached', 'HEAD'])).flatMap((f) => [f.path, ...(f.oldPath ? [f.oldPath] : [])]));
|
|
192
|
+
const unstaged = new Set((await diffFiles(dir, [])).flatMap((f) => [f.path, ...(f.oldPath ? [f.oldPath] : [])]));
|
|
193
|
+
const others = await gitBytes(dir, ['ls-files', '--others', '--exclude-standard', '-z']);
|
|
194
|
+
const fresh = others.ok ? others.stdout.toString('utf8').split('\0').filter(Boolean) : [];
|
|
195
|
+
const inCommits = new Set(committed.flatMap((f) => [f.path, ...(f.oldPath ? [f.oldPath] : [])]));
|
|
196
|
+
const files = [...net, ...(await Promise.all(fresh.slice(0, MAX_BRANCH_FILES).map((p) => untracked(dir, p)))).map((f) => ({ ...f, status: 'A' }))];
|
|
197
|
+
// Committed on the branch and undone since in the working tree: still the branch's, nothing of it left against the base.
|
|
198
|
+
for (const c of committed)
|
|
199
|
+
if (!files.some((f) => f.path === c.path))
|
|
200
|
+
files.push({ ...c, added: 0, removed: 0 });
|
|
201
|
+
const untrackedSet = new Set(fresh);
|
|
202
|
+
const marked = files.map((f) => {
|
|
203
|
+
const keys = [f.path, ...(f.oldPath ? [f.oldPath] : [])];
|
|
204
|
+
const isStaged = keys.some((k) => staged.has(k));
|
|
205
|
+
const isUnstaged = keys.some((k) => unstaged.has(k));
|
|
206
|
+
const uncommitted = untrackedSet.has(f.path) ? 'untracked' : isStaged && isUnstaged ? 'mixed' : isStaged ? 'staged' : isUnstaged ? 'changes' : undefined;
|
|
207
|
+
return { ...f, committed: keys.some((k) => inCommits.has(k)), ...(uncommitted ? { uncommitted } : {}) };
|
|
208
|
+
});
|
|
209
|
+
marked.sort((a, b) => (a.path < b.path ? -1 : a.path > b.path ? 1 : 0));
|
|
210
|
+
out.files = marked.slice(0, MAX_BRANCH_FILES);
|
|
211
|
+
out.moreFiles = marked.length > MAX_BRANCH_FILES || fresh.length > MAX_BRANCH_FILES;
|
|
212
|
+
return out;
|
|
213
|
+
}
|
|
136
214
|
/** One commit: who, when, what it says, and the files it changed (a first commit against nothing). */
|
|
137
215
|
export async function workspaceCommit(dir, sha) {
|
|
138
216
|
if (!SHA.test(sha))
|
|
@@ -165,7 +243,23 @@ export async function workspaceGitVersions(dir, area, path, commit) {
|
|
|
165
243
|
let file;
|
|
166
244
|
let before = { bytes: null, tooLarge: false };
|
|
167
245
|
let after = { bytes: null, tooLarge: false };
|
|
168
|
-
if (area === '
|
|
246
|
+
if (area === 'branch') {
|
|
247
|
+
// As a pull request shows it: where the branch left the base, against the file as it is now, committed or not.
|
|
248
|
+
const b = await branchChanges(dir, commit);
|
|
249
|
+
if (!b.mergeBase)
|
|
250
|
+
throw new Error('This branch has nothing to compare with.');
|
|
251
|
+
file = b.files.find((f) => f.path === want);
|
|
252
|
+
if (!file)
|
|
253
|
+
throw new Error('That file is not one this branch changed.');
|
|
254
|
+
if (file.status !== 'A')
|
|
255
|
+
before = await fileAt(dir, b.mergeBase, file.oldPath ?? file.path, MAX_FILE);
|
|
256
|
+
if (file.status !== 'D') {
|
|
257
|
+
const info = await stat(join(dir, file.path)).catch(() => null);
|
|
258
|
+
if (info?.isFile())
|
|
259
|
+
after = info.size > MAX_FILE ? { bytes: null, tooLarge: true } : { bytes: await readFile(join(dir, file.path)), tooLarge: false };
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
else if (area === 'commit') {
|
|
169
263
|
const c = await workspaceCommit(dir, commit ?? '');
|
|
170
264
|
file = c.files.find((f) => f.path === want);
|
|
171
265
|
if (!file)
|
|
@@ -23,9 +23,11 @@ import { winPsEnv } from '../exec/winps.js';
|
|
|
23
23
|
* a broken check never silently claims the profile is free.
|
|
24
24
|
*/
|
|
25
25
|
export function findEdgeUsingProfile(profileDir) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
`
|
|
26
|
+
// The folder as text, not a pattern: -like read a [ or ] in a path as a wildcard (2026-10-22).
|
|
27
|
+
const script = `$dir = '${profileDir.replace(/'/g, "''")}'; ` +
|
|
28
|
+
`Get-CimInstance Win32_Process -Filter "Name='msedge.exe'" | ` +
|
|
29
|
+
`Where-Object { $_.CommandLine -and $_.CommandLine.IndexOf($dir, [StringComparison]::OrdinalIgnoreCase) -ge 0 } | ` +
|
|
30
|
+
`Select-Object ProcessId, ParentProcessId, CommandLine | ConvertTo-Json -Compress`;
|
|
29
31
|
const res = spawnSync('powershell', ['-NoProfile', '-NonInteractive', '-Command', script], {
|
|
30
32
|
env: winPsEnv(),
|
|
31
33
|
encoding: 'utf8',
|
|
@@ -40,12 +42,40 @@ export function findEdgeUsingProfile(profileDir) {
|
|
|
40
42
|
try {
|
|
41
43
|
const parsed = JSON.parse(text);
|
|
42
44
|
const list = Array.isArray(parsed) ? parsed : [parsed];
|
|
43
|
-
return list.map((p) => ({ pid: p.ProcessId, commandLine: p.CommandLine ?? '' }));
|
|
45
|
+
return list.map((p) => ({ pid: p.ProcessId, commandLine: p.CommandLine ?? '', ...(typeof p.ParentProcessId === 'number' ? { parentPid: p.ParentProcessId } : {}) }));
|
|
44
46
|
}
|
|
45
47
|
catch {
|
|
46
48
|
return 'unknown';
|
|
47
49
|
}
|
|
48
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Whose the Edge holding the profile is (2026-10-22: the System page called the bot's own chat window — kept open
|
|
53
|
+
* between messages — a stray Edge that "would make a run fail"). Edge's main process is the one whose parent is not
|
|
54
|
+
* itself an Edge holding the profile; the others are its children. When every main process was started by `owner` —
|
|
55
|
+
* the bot's API, whose browser Playwright launches as its child — it is the bot's own.
|
|
56
|
+
*/
|
|
57
|
+
export function profileHolder(users, owner) {
|
|
58
|
+
if (users === 'unknown')
|
|
59
|
+
return 'unknown';
|
|
60
|
+
if (users.length === 0)
|
|
61
|
+
return 'free';
|
|
62
|
+
const pids = new Set(users.map((u) => u.pid));
|
|
63
|
+
const mains = users.filter((u) => u.parentPid === undefined || !pids.has(u.parentPid));
|
|
64
|
+
return mains.length > 0 && mains.every((m) => m.parentPid === owner) ? 'own' : 'other';
|
|
65
|
+
}
|
|
66
|
+
/** The bot process whose lock is on the profile, while it is alive: the API that opened the browser on it. */
|
|
67
|
+
export function profileLockOwner(profileDir) {
|
|
68
|
+
try {
|
|
69
|
+
const held = JSON.parse(readFileSync(join(profileDir, '.cop-lock.json'), 'utf8'));
|
|
70
|
+
if (typeof held.pid !== 'number')
|
|
71
|
+
return null;
|
|
72
|
+
process.kill(held.pid, 0);
|
|
73
|
+
return held.pid;
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
49
79
|
/**
|
|
50
80
|
* Takes the lock, or explains why it cannot.
|
|
51
81
|
*
|
package/dist/web/404.html
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
1
|
+
<!DOCTYPE html><!--L_h3cKqABsuAzPqNkvLAP--><html lang="en" data-theme="light" data-textsize="normal" data-contrast="normal" data-motion="normal" data-links="plain" data-focus="normal" data-night="off"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/51bfff1122e9f34d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-b26d4d956feb6e65.js"/><script src="/_next/static/chunks/c7879cf7-fabe25011515220e.js" async=""></script><script src="/_next/static/chunks/3131-8ec8b632ebf0450d.js" async=""></script><script src="/_next/static/chunks/main-app-d23441ca81b3a063.js" async=""></script><script src="/_next/static/chunks/3134-b6a7bc1f267c39aa.js" async=""></script><script src="/_next/static/chunks/7921-ddb0291f25a2e486.js" async=""></script><script src="/_next/static/chunks/7500-077d236acd9b9c50.js" async=""></script><script src="/_next/static/chunks/app/layout-678acf830096ce90.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>copilot-operator</title><meta name="description" content="Runs task loops with Microsoft 365 Copilot on this machine."/><script>(function(){try{
|
|
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';
|
|
5
|
-
d.dataset.textsize=["small","normal","large","huge","giant"].indexOf(a.textSize)>=0?a.textSize:'normal';
|
|
5
|
+
d.dataset.textsize=["smallest","verysmall","compact","small","normal","large","huge","giant"].indexOf(a.textSize)>=0?a.textSize:'normal';
|
|
6
6
|
d.dataset.contrast=a.highContrast?'high':'normal';
|
|
7
7
|
d.dataset.motion=a.reduceMotion?'reduced':'normal';
|
|
8
8
|
d.dataset.links=a.underlineLinks?'underline':'plain';
|
|
@@ -11,4 +11,4 @@ d.dataset.night=a.nightLight?'on':'off';
|
|
|
11
11
|
d.dataset.cursor=a.systemCursor?'system':'own';
|
|
12
12
|
var l=(localStorage.getItem('cop.locale')||'').toLowerCase();
|
|
13
13
|
if(["ar"].indexOf(l)>=0){d.dir='rtl';d.lang=l;}
|
|
14
|
-
}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/defaults"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><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><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="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></nav></header><main id="main"><div style="font-family:system-ui,"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-cb74fa884b8af278.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[98078,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"LanguageProvider\"]\n4:I[51035,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"DialogHost\"]\n5:I[28214,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"SkipLink\"]\n6:I[68300,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-54dae769aa8bae96.js\",\"7500\",\"static/chunks/7500-f90e2ae7061e351d.js\",\"7177\",\"static/chunks/app/layout-46efb208d7c88648.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/d3398f485b2a9075.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"WuIGWiKKh_ESR3KwzsLZF\",\"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/d3398f485b2a9075.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=[\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"d:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
14
|
+
}catch(e){}})();</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><a class="skip-link" href="#main">Skip to the content</a><div class="wrap"><header class="top"><h1><a href="/">copilot-operator</a></h1><nav aria-label="Main"><a href="/"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v11H9l-5 4zM8 9h8M8 12h5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>Chat</span></a><a href="/settings"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm8.5 4 1.5 1-1.6 2.8-1.8-.4a7 7 0 0 1-1.5 1.5l.4 1.8L14.7 21l-1-1.5a7 7 0 0 1-3.4 0l-1 1.5-2.8-1.6.4-1.8A7 7 0 0 1 5.4 16l-1.8.4L2 13.6 3.5 12.6V11.4L2 10.4l1.6-2.8 1.8.4A7 7 0 0 1 6.9 6.5l-.4-1.8L9.3 3l1 1.5a7 7 0 0 1 3.4 0l1-1.5 2.8 1.6-.4 1.8a7 7 0 0 1 1.5 1.5l1.8-.4L22 10.4l-1.5 1z"></path></svg><span>Settings</span></a><a href="/system"><svg class="nav-icon" viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M4 5h16v10H4zM2 19h20M9 15v4M15 15v4" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"></path></svg><span>System</span></a><button type="button" class="lang-btn ap-btn" aria-label="Appearance: theme and text" title="Appearance: theme and text" aria-expanded="false"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><circle cx="12" cy="12" r="8.5"></circle><path d="M12 3.5a8.5 8.5 0 0 1 0 17z" fill="currentColor" stroke="none"></path></svg><span aria-hidden="true">Appearance</span></button><span class="lang-menu"><button type="button" class="lang-btn" aria-haspopup="menu" aria-expanded="false" title="The language of the interface"><svg class="lang-globe" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="6.5" fill="none" stroke="currentColor" stroke-width="1.3"></circle><path d="M1.5 8h13M8 1.5c2 2 2.8 4 2.8 6.5S10 12.5 8 14.5M8 1.5C6 3.5 5.2 5.5 5.2 8S6 12.5 8 14.5" fill="none" stroke="currentColor" stroke-width="1.1"></path></svg><span lang="en">Language</span><span aria-hidden="true">▾</span></button></span></nav></header><main id="main"><div style="font-family:system-ui,"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-b26d4d956feb6e65.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[98078,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"AppearanceProvider\"]\n3:I[8205,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"LanguageProvider\"]\n4:I[51035,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"DialogHost\"]\n5:I[28214,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"SkipLink\"]\n6:I[68300,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"Shell\"]\n7:I[25204,[],\"\"]\n8:I[42642,[],\"\"]\n9:I[87712,[\"3134\",\"static/chunks/3134-b6a7bc1f267c39aa.js\",\"7921\",\"static/chunks/7921-ddb0291f25a2e486.js\",\"7500\",\"static/chunks/7500-077d236acd9b9c50.js\",\"7177\",\"static/chunks/app/layout-678acf830096ce90.js\"],\"ScrollJump\"]\na:I[60433,[],\"OutletBoundary\"]\nc:I[19884,[],\"AsyncMetadataOutlet\"]\ne:I[60433,[],\"ViewportBoundary\"]\n10:I[60433,[],\"MetadataBoundary\"]\n11:\"$Sreact.suspense\"\n13:I[3536,[],\"\"]\n:HL[\"/_next/static/css/51bfff1122e9f34d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"L-h3cKqABsuAzPqNkvLAP\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/51bfff1122e9f34d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"data-theme\":\"light\",\"data-textsize\":\"normal\",\"data-contrast\":\"normal\",\"data-motion\":\"normal\",\"data-links\":\"plain\",\"data-focus\":\"normal\",\"data-night\":\"off\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar d=document.documentElement,raw=localStorage.getItem('cop.appearance'),a=raw?JSON.parse(raw):{};\\nif(!a||typeof a!=='object')a={};\\nd.dataset.theme=a.theme==='dark'||a.theme==='light'?a.theme:window.matchMedia\u0026\u0026window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\\nd.dataset.textsize=[\\\"smallest\\\",\\\"verysmall\\\",\\\"compact\\\",\\\"small\\\",\\\"normal\\\",\\\"large\\\",\\\"huge\\\",\\\"giant\\\"].indexOf(a.textSize)\u003e=0?a.textSize:'normal';\\nd.dataset.contrast=a.highContrast?'high':'normal';\\nd.dataset.motion=a.reduceMotion?'reduced':'normal';\\nd.dataset.links=a.underlineLinks?'underline':'plain';\\nd.dataset.focus=a.strongFocus?'strong':'normal';\\nd.dataset.night=a.nightLight?'on':'off';\\nd.dataset.cursor=a.systemCursor?'system':'own';\\nvar l=(localStorage.getItem('cop.locale')||'').toLowerCase();\\nif([\\\"ar\\\"].indexOf(l)\u003e=0){d.dir='rtl';d.lang=l;}\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L9\",null,{}]]}]}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$La\",null,{\"children\":[\"$Lb\",[\"$\",\"$Lc\",null,{\"promise\":\"$@d\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$Le\",null,{\"children\":\"$Lf\"}],null],[\"$\",\"$L10\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$11\",null,{\"fallback\":null,\"children\":\"$L12\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"f:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\nb:null\n"])</script><script>self.__next_f.push([1,"d:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"copilot-operator\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Runs task loops with Microsoft 365 Copilot on this machine.\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"12:\"$d:metadata\"\n"])</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
self.__BUILD_MANIFEST=function(e,r,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:5,errorRate:1e-4,numBits:96,numHashes:14,bitArray:[1,0,0,1,e,e,e,r,r,r,r,e,e,r,r,e,r,e,r,e,r,r,e,r,r,r,e,r,e,e,r,e,r,r,e,r,e,e,r,e,e,e,e,r,e,r,r,e,r,r,r,r,r,e,r,e,e,e,e,e,e,e,r,e,e,e,r,r,e,e,e,e,r,r,e,r,e,r,e,r,e,e,e,r,r,e,e,e,e,r,r,e,r,e,e,r]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:r,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-cf88c6d2cc5868d7.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|