copilot-operator 0.1.53 → 0.1.55

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 (148) hide show
  1. package/README.md +6 -0
  2. package/dist/src/api/operator.controller.js +38 -0
  3. package/dist/src/api/operator.service.js +28 -4
  4. package/dist/src/orchestrator/hold.js +25 -0
  5. package/dist/src/orchestrator/leadLedger.js +88 -0
  6. package/dist/src/orchestrator/leadRunner.js +22 -0
  7. package/dist/src/orchestrator/taskRunner.js +10 -4
  8. package/dist/src/plan/kerrigan.js +2 -2
  9. package/dist/src/plan/systemGuide.js +157 -6
  10. package/dist/src/protocol/leadSchema.js +36 -2
  11. package/dist/src/session/store.js +3 -0
  12. package/dist/src/session/workspace.js +22 -0
  13. package/dist/src/session/workspaceSearch.js +162 -0
  14. package/dist/src/vcs/git.js +1 -1
  15. package/dist/web/404.html +2 -2
  16. package/dist/web/_next/static/chunks/1017.ce926873b598fb89.js +1 -0
  17. package/dist/web/_next/static/chunks/1077.3c07f38a61cef38a.js +1 -0
  18. package/dist/web/_next/static/chunks/12.06a7f14bd6716249.js +1 -0
  19. package/dist/web/_next/static/chunks/1350.a5dc706c8110fd34.js +24 -0
  20. package/dist/web/_next/static/chunks/1548.55dadf800d6c2a79.js +1 -0
  21. package/dist/web/_next/static/chunks/1706.db51b57351297898.js +309 -0
  22. package/dist/web/_next/static/chunks/1707.7d64ffc060c697a0.js +193 -0
  23. package/dist/web/_next/static/chunks/1880.87829ecb91209eda.js +24 -0
  24. package/dist/web/_next/static/chunks/20154aaa.28032c3aa5bcd84d.js +1 -0
  25. package/dist/web/_next/static/chunks/2037.d1bb5e37c7fe85ae.js +104 -0
  26. package/dist/web/_next/static/chunks/2163.83d1085b99ac1773.js +1 -0
  27. package/dist/web/_next/static/chunks/2398d077.79ae940919b9695e.js +1 -0
  28. package/dist/web/_next/static/chunks/2435.9b433b38d34b4b2e.js +1 -0
  29. package/dist/web/_next/static/chunks/2506.bc8515842e225d2a.js +1 -0
  30. package/dist/web/_next/static/chunks/2529.c88688b437d71d68.js +41 -0
  31. package/dist/web/_next/static/chunks/2908.4e0e875d2d471932.js +1 -0
  32. package/dist/web/_next/static/chunks/3117.a4e1c3348e8bead9.js +1 -0
  33. package/dist/web/_next/static/chunks/3131-8ec8b632ebf0450d.js +1 -0
  34. package/dist/web/_next/static/chunks/3134-b6a7bc1f267c39aa.js +1 -0
  35. package/dist/web/_next/static/chunks/3233.1dcc2798f7f5efa0.js +149 -0
  36. package/dist/web/_next/static/chunks/344.41cc997c8c8deeed.js +115 -0
  37. package/dist/web/_next/static/chunks/3690.f691d3fcbd70073d.js +1 -0
  38. package/dist/web/_next/static/chunks/3804.593b14643e74a2a1.js +1 -0
  39. package/dist/web/_next/static/chunks/3816.9f5568918e35e4ef.js +77 -0
  40. package/dist/web/_next/static/chunks/3859.f56f3c6ac4b74cf1.js +94 -0
  41. package/dist/web/_next/static/chunks/3976.11b159e82e0aa974.js +1 -0
  42. package/dist/web/_next/static/chunks/3986.d47ed4855773e6dd.js +1 -0
  43. package/dist/web/_next/static/chunks/441.172f3f581f0030d1.js +226 -0
  44. package/dist/web/_next/static/chunks/442.2e236a6c5c413bd9.js +1 -0
  45. package/dist/web/_next/static/chunks/4459.d6df347eb58fccd7.js +1 -0
  46. package/dist/web/_next/static/chunks/4619.ae3628373decf74f.js +34 -0
  47. package/dist/web/_next/static/chunks/4623.d5711a8d967e49f4.js +1 -0
  48. package/dist/web/_next/static/chunks/4670.6b811cc3f67a851c.js +62 -0
  49. package/dist/web/_next/static/chunks/4812.0af1380aa478f6d3.js +93 -0
  50. package/dist/web/_next/static/chunks/4969.4f7aff472cf938bf.js +1 -0
  51. package/dist/web/_next/static/chunks/5790.fe114d1a18741d62.js +86 -0
  52. package/dist/web/_next/static/chunks/603.4055460889ea24d8.js +1 -0
  53. package/dist/web/_next/static/chunks/6072.b4b359b24b1738d4.js +286 -0
  54. package/dist/web/_next/static/chunks/6230.8645bbed143793da.js +1 -0
  55. package/dist/web/_next/static/chunks/6260.6b5b5c9713d7133f.js +1 -0
  56. package/dist/web/_next/static/chunks/63b9f8e2.218fd437b256a7e4.js +1 -0
  57. package/dist/web/_next/static/chunks/6421.3ace3aefc3e7350e.js +1 -0
  58. package/dist/web/_next/static/chunks/6542.963ec591b5c2bc5a.js +1 -0
  59. package/dist/web/_next/static/chunks/6885.8fb8eeb9e792b515.js +1 -0
  60. package/dist/web/_next/static/chunks/6891.dd910309748ad46b.js +1 -0
  61. package/dist/web/_next/static/chunks/714.88c495053f62f187.js +1 -0
  62. package/dist/web/_next/static/chunks/7220.f1e8a10d52a7ee87.js +1 -0
  63. package/dist/web/_next/static/chunks/7307.39c27470a879fd0a.js +1 -0
  64. package/dist/web/_next/static/chunks/7333.04d0e45b223dadd4.js +32 -0
  65. package/dist/web/_next/static/chunks/7489.395193bf37b80884.js +1 -0
  66. package/dist/web/_next/static/chunks/7496.17282033df0e8794.js +148 -0
  67. package/dist/web/_next/static/chunks/7500-1353339f7e2eda10.js +1 -0
  68. package/dist/web/_next/static/chunks/7507.9fd648884587a7f3.js +287 -0
  69. package/dist/web/_next/static/chunks/76.f9c2aea58a61692f.js +1 -0
  70. package/dist/web/_next/static/chunks/7664.bd6265e6e94e1ecd.js +79 -0
  71. package/dist/web/_next/static/chunks/7872.9b08a88b7289949f.js +64 -0
  72. package/dist/web/_next/static/chunks/7921-56de379f7bdfbacf.js +1 -0
  73. package/dist/web/_next/static/chunks/795.710d39b80c9ae80c.js +1 -0
  74. package/dist/web/_next/static/chunks/8173.b82aa1855e641605.js +1 -0
  75. package/dist/web/_next/static/chunks/8216.b248ebe0af447347.js +8 -0
  76. package/dist/web/_next/static/chunks/82d3f3cb.23be11b749288234.js +62 -0
  77. package/dist/web/_next/static/chunks/8381.2d6783c030f8a913.js +27 -0
  78. package/dist/web/_next/static/chunks/85120a0e.ac16dccf0b8d73d3.js +66 -0
  79. package/dist/web/_next/static/chunks/8547.0a9997b67008c706.js +1 -0
  80. package/dist/web/_next/static/chunks/8584.b34930a6837344a6.js +1 -0
  81. package/dist/web/_next/static/chunks/8662.f2663643214caed1.js +38 -0
  82. package/dist/web/_next/static/chunks/8689.e564346c6e0d16be.js +1 -0
  83. package/dist/web/_next/static/chunks/9067.5651e8647cef053f.js +1 -0
  84. package/dist/web/_next/static/chunks/9125.8589db5ba200cbf1.js +1 -0
  85. package/dist/web/_next/static/chunks/9202.8dcf7e6a85cc3d36.js +1 -0
  86. package/dist/web/_next/static/chunks/9249.916a423ac8a07e76.js +1 -0
  87. package/dist/web/_next/static/chunks/9313.e4f6405d96375c40.js +92 -0
  88. package/dist/web/_next/static/chunks/937.6d8406b06135134f.js +1 -0
  89. package/dist/web/_next/static/chunks/9418.1e8f8e14bb5fe3ae.js +217 -0
  90. package/dist/web/_next/static/chunks/9591.fabd60bd0d10341c.js +1 -0
  91. package/dist/web/_next/static/chunks/972.db753db904050e48.js +23 -0
  92. package/dist/web/_next/static/chunks/9747.ad6b319cf12169ee.js +1 -0
  93. package/dist/web/_next/static/chunks/9763.da9015d4a1b533b9.js +36 -0
  94. package/dist/web/_next/static/chunks/9884.8712c5ed7b044ff2.js +1 -0
  95. package/dist/web/_next/static/chunks/9891.91a2c59fd073fd48.js +74 -0
  96. package/dist/web/_next/static/chunks/9984.cdabea5a592e42a1.js +1 -0
  97. package/dist/web/_next/static/chunks/a9ddb983.8bbb677720017a57.js +122 -0
  98. package/dist/web/_next/static/chunks/app/_not-found/page-1264c0db9665169c.js +1 -0
  99. package/dist/web/_next/static/chunks/app/defaults/page-ba24062a86d50e12.js +1 -0
  100. package/dist/web/_next/static/chunks/app/layout-46efb208d7c88648.js +1 -0
  101. package/dist/web/_next/static/chunks/app/page-07f80fd07281a230.js +1 -0
  102. package/dist/web/_next/static/chunks/app/system/page-825f53f14d16033d.js +1 -0
  103. package/dist/web/_next/static/chunks/c7879cf7-fabe25011515220e.js +1 -0
  104. package/dist/web/_next/static/chunks/c7ea4e13.9b71b5f026a1d6d4.js +1 -0
  105. package/dist/web/_next/static/chunks/f99cb6a2.3f570aeba3860608.js +160 -0
  106. package/dist/web/_next/static/chunks/framework-a8bf4d38dd23845f.js +1 -0
  107. package/dist/web/_next/static/chunks/main-app-f747f0f5ddb4213b.js +1 -0
  108. package/dist/web/_next/static/chunks/main-d3bbfb91b54fbcc3.js +1 -0
  109. package/dist/web/_next/static/chunks/pages/_app-5b348989bba3d570.js +1 -0
  110. package/dist/web/_next/static/chunks/pages/_error-cf88c6d2cc5868d7.js +1 -0
  111. package/dist/web/_next/static/chunks/webpack-ab0451ef95a8f52a.js +1 -0
  112. package/dist/web/_next/static/css/{06f314fa5fccd68d.css → 131c746a9d388eda.css} +1 -1
  113. package/dist/web/_next/static/{FGzV3mVZpXRCVjiw1diNu → w1xPyNasTvFr11R3F7HkS}/_buildManifest.js +1 -1
  114. package/dist/web/defaults.html +2 -2
  115. package/dist/web/defaults.txt +16 -16
  116. package/dist/web/index.html +3 -2
  117. package/dist/web/index.txt +16 -16
  118. package/dist/web/system.html +2 -2
  119. package/dist/web/system.txt +16 -16
  120. package/package.json +6 -2
  121. package/prompts/lead1.md +29 -5
  122. package/dist/web/_next/static/chunks/12.f1f4d35b52633e8d.js +0 -1
  123. package/dist/web/_next/static/chunks/131-bae98f790a541679.js +0 -1
  124. package/dist/web/_next/static/chunks/134-ddd50a7fbb536ec8.js +0 -1
  125. package/dist/web/_next/static/chunks/163.980c5145848efbdf.js +0 -1
  126. package/dist/web/_next/static/chunks/220.447d1d8624d4644c.js +0 -1
  127. package/dist/web/_next/static/chunks/489.158bbe303a595fba.js +0 -1
  128. package/dist/web/_next/static/chunks/500-34d01f8d8d73eb2c.js +0 -1
  129. package/dist/web/_next/static/chunks/548.c6dfd1cb270f3c93.js +0 -1
  130. package/dist/web/_next/static/chunks/584.fc9e061dd4069406.js +0 -1
  131. package/dist/web/_next/static/chunks/67.1a3ca07919abce27.js +0 -1
  132. package/dist/web/_next/static/chunks/714.5b2e291a430adc9c.js +0 -1
  133. package/dist/web/_next/static/chunks/747.157732b5b3f3c435.js +0 -1
  134. package/dist/web/_next/static/chunks/77.d478a6f2eafe31e3.js +0 -1
  135. package/dist/web/_next/static/chunks/921-b2219533c5a6e38f.js +0 -1
  136. package/dist/web/_next/static/chunks/app/_not-found/page-0d0d8e7e62efca12.js +0 -1
  137. package/dist/web/_next/static/chunks/app/defaults/page-b7e4e94a55e65806.js +0 -1
  138. package/dist/web/_next/static/chunks/app/layout-2b3718748721c1ac.js +0 -1
  139. package/dist/web/_next/static/chunks/app/page-59b9867b52914a6c.js +0 -1
  140. package/dist/web/_next/static/chunks/app/system/page-1cf9e75e76da59ed.js +0 -1
  141. package/dist/web/_next/static/chunks/c7879cf7-b5ab1053c1d9a2e7.js +0 -1
  142. package/dist/web/_next/static/chunks/framework-9ac6a346bd42cedd.js +0 -1
  143. package/dist/web/_next/static/chunks/main-6be4444e2d667e41.js +0 -1
  144. package/dist/web/_next/static/chunks/main-app-e3a5f713ba31557e.js +0 -1
  145. package/dist/web/_next/static/chunks/pages/_app-32d20d5a04949d29.js +0 -1
  146. package/dist/web/_next/static/chunks/pages/_error-abbab53f25ea29b0.js +0 -1
  147. package/dist/web/_next/static/chunks/webpack-0c3cad1f3181d857.js +0 -1
  148. /package/dist/web/_next/static/{FGzV3mVZpXRCVjiw1diNu → w1xPyNasTvFr11R3F7HkS}/_ssgManifest.js +0 -0
package/README.md CHANGED
@@ -395,6 +395,10 @@ npx tsx src/cli.ts login --account you@tenant.org # sign in once; the Edge pr
395
395
  npx tsx src/cli.ts doctor # check the machine
396
396
  ```
397
397
 
398
+ A pull, a merge or a switch of branch leaves `node_modules` as it was; when what it brought in
399
+ names a package that is not installed, or another version of one, `npm start` and the package build
400
+ (`npm pack`, `npm publish`) say which and stop before building anything: `npm install` again.
401
+
398
402
  The bot never types credentials. `login` opens Edge, waits for the chat to appear, checks
399
403
  that the right account is signed in, and stores nothing but the browser profile.
400
404
 
@@ -425,6 +429,8 @@ reference only": the bot reads it and runs what only reads it, and whatever a co
425
429
  [`docs/ui.md`](docs/ui.md); the Sessions page, the task register and plans from JSON were removed
426
430
  on 2026-10-20.
427
431
 
432
+ As in VS Code, Ctrl+P finds a file by name and Ctrl+Shift+F searches the code (match case, whole word,
433
+ regular expressions, files to include or exclude); a Markdown file opens as it reads, its mermaid diagrams drawn.
428
434
  Skills keep your instructions for a kind of task that comes back — a new test, a new entity, a migration — in
429
435
  Settings; a message starting with `/its-name` (or with the skill chosen under the chat's box) carries them to the
430
436
  chat. The three panels move as in VS Code: drag the grip ⠿ in a panel's head onto another. Settings can also make
@@ -199,6 +199,22 @@ let OperatorController = class OperatorController {
199
199
  workspaceFiles() {
200
200
  return this.ops.workspaceFiles().catch(fail);
201
201
  }
202
+ /** The folder's code searched, as VS Code's Search view (2026-10-21): the text, and its options as 1 or nothing. */
203
+ workspaceSearch(q, matchCase, wholeWord, regex, include, exclude) {
204
+ const on = (v) => v === '1' || v === 'true';
205
+ return this.ops.workspaceSearch(q ?? '', { matchCase: on(matchCase), wholeWord: on(wholeWord), regex: on(regex), include: include ?? '', exclude: exclude ?? '' }).catch(fail);
206
+ }
207
+ /** A picture of the folder, for a Markdown preview (2026-10-21). Served so it can only be shown, never run. */
208
+ async workspaceRaw(path, res) {
209
+ if (!path)
210
+ throw new BadRequestException('path is required');
211
+ const r = await this.ops.workspaceRaw(path).catch(fail);
212
+ res.setHeader('Content-Type', r.type);
213
+ res.setHeader('X-Content-Type-Options', 'nosniff');
214
+ res.setHeader('Content-Security-Policy', "default-src 'none'; style-src 'unsafe-inline'; sandbox");
215
+ res.setHeader('Cache-Control', 'no-store');
216
+ res.end(r.bytes);
217
+ }
202
218
  workspaceFile(path) {
203
219
  if (!path)
204
220
  throw new BadRequestException('path is required');
@@ -259,6 +275,8 @@ let OperatorController = class OperatorController {
259
275
  ...(typeof body.lang === 'string' && /^[a-z]{2,3}$/.test(body.lang) ? { lang: body.lang } : {}),
260
276
  ...(body.planMode === true ? { planMode: true } : {}),
261
277
  ...(typeof body.review === 'boolean' ? { review: body.review } : {}),
278
+ // The review's model, chosen beside the box (2026-10-21); left out, Settings' review model.
279
+ ...(typeof body.reviewModel === 'string' && body.reviewModel.trim() ? { reviewModel: body.reviewModel } : {}),
262
280
  // Two chats, for a new conversation: a lead that directs and a worker that carries out (2026-10-20).
263
281
  ...(body.lead === true ? { lead: true } : {}),
264
282
  ...(typeof body.workerModel === 'string' && body.workerModel.trim() ? { workerModel: body.workerModel } : {}),
@@ -539,6 +557,26 @@ __decorate([
539
557
  __metadata("design:paramtypes", []),
540
558
  __metadata("design:returntype", Promise)
541
559
  ], OperatorController.prototype, "workspaceFiles", null);
560
+ __decorate([
561
+ Get('workspace/search'),
562
+ __param(0, Query('q')),
563
+ __param(1, Query('case')),
564
+ __param(2, Query('word')),
565
+ __param(3, Query('regex')),
566
+ __param(4, Query('include')),
567
+ __param(5, Query('exclude')),
568
+ __metadata("design:type", Function),
569
+ __metadata("design:paramtypes", [String, String, String, String, String, String]),
570
+ __metadata("design:returntype", Promise)
571
+ ], OperatorController.prototype, "workspaceSearch", null);
572
+ __decorate([
573
+ Get('workspace/raw'),
574
+ __param(0, Query('path')),
575
+ __param(1, Res()),
576
+ __metadata("design:type", Function),
577
+ __metadata("design:paramtypes", [Object, Object]),
578
+ __metadata("design:returntype", Promise)
579
+ ], OperatorController.prototype, "workspaceRaw", null);
542
580
  __decorate([
543
581
  Get('workspace/file'),
544
582
  __param(0, Query('path')),
@@ -55,7 +55,8 @@ function sameFolder(a, b) {
55
55
  const norm = (p) => p.trim().replace(/[\\/]+$/, '').replace(/\//g, '\\').toLowerCase();
56
56
  return a.trim() !== '' && norm(a) === norm(b);
57
57
  }
58
- import { saveWorkspaceFile, workspaceFile, workspaceFiles, workspaceInfo } from '../session/workspace.js';
58
+ import { saveWorkspaceFile, workspaceFile, workspaceFiles, workspaceInfo, workspaceRaw } from '../session/workspace.js';
59
+ import { searchWorkspace } from '../session/workspaceSearch.js';
59
60
  import { restoreCheckpoint } from '../session/checkpoint.js';
60
61
  import { readInterruption } from '../session/interruption.js';
61
62
  import { baseRefOf, commitInterrupted, nextAttemptBranch, repoDirOf, trackedRepoOf, sessionBranchName } from '../vcs/taskVcs.js';
@@ -247,7 +248,8 @@ let OperatorService = class OperatorService {
247
248
  async listSessions() {
248
249
  await this.init();
249
250
  const all = await this.store.listSessions();
250
- return all.map((s) => ({ ...s, running: this.running.has(s.id), paused: this.running.get(s.id)?.hold.held ?? false }));
251
+ // The pauses of the run going on, for the page to take them off the minutes it shows (2026-10-21).
252
+ return all.map((s) => ({ ...s, running: this.running.has(s.id), paused: this.running.get(s.id)?.hold.held ?? false, ...this.pausesOf(s.id) }));
251
253
  }
252
254
  async getSession(id) {
253
255
  await this.init();
@@ -255,7 +257,12 @@ let OperatorService = class OperatorService {
255
257
  if (!s)
256
258
  return null;
257
259
  const pending = [...this.waiting.values()].filter((w) => w.approval.sessionId === id).map((w) => w.approval);
258
- return { ...s, running: this.running.has(id), paused: this.running.get(id)?.hold.held ?? false, pending, runMode: this.running.get(id)?.mode };
260
+ return { ...s, running: this.running.has(id), paused: this.running.get(id)?.hold.held ?? false, ...this.pausesOf(id), pending, runMode: this.running.get(id)?.mode };
261
+ }
262
+ /** The pauses of the run going on in a session, from "Pause" to "Continue"; none when nothing runs or it was never paused. */
263
+ pausesOf(id) {
264
+ const pauses = this.running.get(id)?.hold.pauses ?? [];
265
+ return pauses.length > 0 ? { pauses } : {};
259
266
  }
260
267
  async updateSession(id, patch) {
261
268
  await this.init();
@@ -1029,6 +1036,20 @@ let OperatorService = class OperatorService {
1029
1036
  const cfg = await this.settings.load();
1030
1037
  return await workspaceInfo(cfg.project?.rootDir ?? '', cfg.project?.name ?? '');
1031
1038
  }
1039
+ /** The open folder's code, searched as VS Code's Search view does (2026-10-21, see `workspaceSearch.ts`). */
1040
+ async workspaceSearch(query, opts) {
1041
+ const ws = await this.workspace();
1042
+ if (!ws.ok)
1043
+ throw new Error(ws.problem ?? 'No project folder is open.');
1044
+ return await searchWorkspace(ws.dir, query, opts);
1045
+ }
1046
+ /** A file of the open folder as its bytes, with its type: an image a Markdown preview shows (2026-10-21). */
1047
+ async workspaceRaw(path) {
1048
+ const ws = await this.workspace();
1049
+ if (!ws.ok)
1050
+ throw new Error(ws.problem ?? 'No project folder is open.');
1051
+ return await workspaceRaw(ws.dir, path);
1052
+ }
1032
1053
  async workspaceFiles() {
1033
1054
  const ws = await this.workspace();
1034
1055
  if (!ws.ok)
@@ -1148,7 +1169,10 @@ let OperatorService = class OperatorService {
1148
1169
  * says which. A second conversation checks the work when it says it is done, and sends back what it finds; it
1149
1170
  * was off for the chat from 2026-10-17. Asked for without the box — the API on its own, a script — it stays off.
1150
1171
  */
1151
- s.review = { enabled: input.review === true, model: '' };
1172
+ s.review = { enabled: input.review === true, model: input.reviewModel?.trim() ?? '' };
1173
+ // The review's model chosen beside the box (2026-10-21) is the operator's word, as the work's is.
1174
+ if (s.review.model)
1175
+ s.reviewModelSource = 'operator';
1152
1176
  // Plan mode as chosen under the box (2026-10-20, "as in Claude Code"): the plan first, approved by the operator.
1153
1177
  s.planMode = input.planMode ? 'approve' : 'off';
1154
1178
  /*
@@ -12,6 +12,12 @@
12
12
  export class Hold {
13
13
  paused = false;
14
14
  waiting = [];
15
+ /**
16
+ * Each pause, from "Pause" pressed to "Continue" (operator, 2026-10-21: "when paused, the time must stop being
17
+ * measured"): the clock stops at the press, not at the point the work reaches a little later, and the time it was
18
+ * paused is taken off a task's minutes — its limit, and the minutes the page shows.
19
+ */
20
+ spans = [];
15
21
  /** Whether the operator has asked the task to hold. */
16
22
  get held() {
17
23
  return this.paused;
@@ -21,6 +27,7 @@ export class Hold {
21
27
  if (this.paused)
22
28
  return false;
23
29
  this.paused = true;
30
+ this.spans.push({ from: Date.now() });
24
31
  return true;
25
32
  }
26
33
  /** Lets the task go on. False when it was not held. */
@@ -28,10 +35,21 @@ export class Hold {
28
35
  if (!this.paused)
29
36
  return false;
30
37
  this.paused = false;
38
+ const open = this.spans.at(-1);
39
+ if (open && open.to === undefined)
40
+ open.to = Date.now();
31
41
  for (const go of this.waiting.splice(0))
32
42
  go();
33
43
  return true;
34
44
  }
45
+ /** How long the work was paused since `since` (ms), the pause going on counted to now. */
46
+ pausedSince(since, now = Date.now()) {
47
+ return pausedWithin(this.spans, since, now);
48
+ }
49
+ /** The pauses, for the page to take them off the minutes it shows. */
50
+ get pauses() {
51
+ return this.spans.map((s) => ({ from: new Date(s.from).toISOString(), ...(s.to !== undefined ? { to: new Date(s.to).toISOString() } : {}) }));
52
+ }
35
53
  /** Resolves at once when not held; otherwise when the operator continues, or the run is stopped. */
36
54
  until(signal) {
37
55
  if (!this.paused || signal?.aborted)
@@ -47,3 +65,10 @@ export class Hold {
47
65
  });
48
66
  }
49
67
  }
68
+ /** The time of `spans` that falls between `since` and `now`, a span with no end lasting to `now`. */
69
+ export function pausedWithin(spans, since, now) {
70
+ let ms = 0;
71
+ for (const s of spans)
72
+ ms += Math.max(0, Math.min(s.to ?? now, now) - Math.max(s.from, since));
73
+ return ms;
74
+ }
@@ -0,0 +1,88 @@
1
+ /** A title as two of them are compared: case, punctuation, a leading number and spacing set aside. */
2
+ export function titleKey(title) {
3
+ return title
4
+ .toLowerCase()
5
+ .replace(/^\s*(?:subtask\s*)?\d+\s*[.):-]\s*/, '')
6
+ .replace(/[^\p{L}\p{N}]+/gu, ' ')
7
+ .trim();
8
+ }
9
+ /** The same subtask, said the same or nearly: one title contains the other, once they are both long enough to tell. */
10
+ export function sameTitle(a, b) {
11
+ const x = titleKey(a);
12
+ const y = titleKey(b);
13
+ if (!x || !y)
14
+ return false;
15
+ if (x === y)
16
+ return true;
17
+ const [short, long] = x.length <= y.length ? [x, y] : [y, x];
18
+ return short.length >= 6 && long.includes(short);
19
+ }
20
+ /**
21
+ * The list after a reply of the lead's. `todo` is the list the reply sent, if it sent one; `giving` the subtask it gives
22
+ * now, with the number it will have. With no list in the reply, the one before stands (a question, the result). The
23
+ * change is returned when the list is new or its version went up.
24
+ */
25
+ export function nextLedger(before, todo, at, giving) {
26
+ if (!todo || todo.length === 0)
27
+ return { ledger: before };
28
+ // One entry a title, the first one as sent.
29
+ const items = [];
30
+ for (const t of todo) {
31
+ if (items.some((i) => titleKey(i.title) === titleKey(t.title)))
32
+ continue;
33
+ const known = before?.items.find((i) => titleKey(i.title) === titleKey(t.title));
34
+ items.push({ title: t.title.trim(), status: t.status, ...(t.phase ? { phase: t.phase } : {}), ...(known?.n ? { n: known.n } : {}) });
35
+ }
36
+ if (giving) {
37
+ const running = items.filter((i) => i.status === 'running');
38
+ let mine = items.find((i) => i.status !== 'done' && sameTitle(i.title, giving.title)) ?? (running.length === 1 ? running[0] : undefined);
39
+ if (!mine) {
40
+ mine = { title: giving.title.trim(), status: 'running' };
41
+ const firstPlanned = items.findIndex((i) => i.status === 'planned');
42
+ items.splice(firstPlanned >= 0 ? firstPlanned : items.length, 0, mine);
43
+ }
44
+ for (const i of items)
45
+ if (i.status === 'running' && i !== mine)
46
+ i.status = 'planned';
47
+ mine.status = 'running';
48
+ mine.n = giving.n;
49
+ }
50
+ const keys = items.map((i) => titleKey(i.title));
51
+ const was = before?.items.map((i) => titleKey(i.title)) ?? [];
52
+ const added = items.filter((i) => !was.includes(titleKey(i.title))).map((i) => i.title);
53
+ const removed = (before?.items ?? []).filter((i) => !keys.includes(titleKey(i.title))).map((i) => i.title);
54
+ // The ones in both, in the order of each: another order is another plan.
55
+ const common = keys.filter((k) => was.includes(k));
56
+ const reordered = common.join('\n') !== was.filter((k) => keys.includes(k)).join('\n');
57
+ const changed = !before || added.length > 0 || removed.length > 0 || reordered;
58
+ const revision = before ? before.revision + (changed ? 1 : 0) : 1;
59
+ const ledger = {
60
+ revision,
61
+ items,
62
+ at,
63
+ ...(changed ? (added.length > 0 ? { added } : {}) : before?.added ? { added: before.added } : {}),
64
+ ...(changed ? (removed.length > 0 ? { removed } : {}) : before?.removed ? { removed: before.removed } : {}),
65
+ };
66
+ return { ledger, ...(changed ? { change: { revision, added: added.length, removed: removed.length, total: items.length } } : {}) };
67
+ }
68
+ /** The list at the end of the work: the one running is done when the lead delivered, blocked when it could not. */
69
+ export function closeLedger(ledger, how) {
70
+ if (!ledger)
71
+ return ledger;
72
+ return { ...ledger, items: ledger.items.map((i) => (i.status === 'running' ? { ...i, status: how } : i)) };
73
+ }
74
+ /** The counts the chat and the lead are given: where the work is against the plan, and the limit apart. */
75
+ export function ledgerCounts(ledger) {
76
+ const of = (s) => ledger.items.filter((i) => i.status === s).length;
77
+ const at = ledger.items.findIndex((i) => i.status === 'running');
78
+ return { total: ledger.items.length, done: of('done'), running: of('running'), planned: of('planned'), stuck: of('blocked') + of('failed'), current: at >= 0 ? at + 1 : 0 };
79
+ }
80
+ /** The list as the lead is shown it with a report: one line a subtask, its status, its phase. */
81
+ export function describeLedger(ledger, given, max) {
82
+ const c = ledgerCounts(ledger);
83
+ return [
84
+ `Your list of subtasks (version ${ledger.revision}): ${c.done} done, ${c.running} running, ${c.planned} planned${c.stuck > 0 ? `, ${c.stuck} blocked or failed` : ''}. Subtasks given so far: ${given}; at most ${max} may be given.`,
85
+ ...ledger.items.map((i, k) => `${k + 1}. [${i.status}] ${i.title}${i.phase ? ` — ${i.phase}` : ''}`),
86
+ 'Send the whole list again with your next subtask or plan: mark the one just reported "done" if you accept its report, "blocked" or "failed" if not; add what it showed is needed, drop what is not.',
87
+ ].join('\n');
88
+ }
@@ -31,6 +31,7 @@ import { operatorNotesSection, whyItStopped } from '../session/compose.js';
31
31
  import { describeDeviations } from '../protocol/replySchema.js';
32
32
  import { leadFormatErrorMessage, parseLeadReply, UNDERSTANDING_FIRST } from '../protocol/leadSchema.js';
33
33
  import { describePlan, planFrom } from './planMode.js';
34
+ import { closeLedger, describeLedger, nextLedger } from './leadLedger.js';
34
35
  import { applySessionModel, enterSessionConversation, holdsWhilePaused, runTask, Sink, speakFor, StoppedSend } from './taskRunner.js';
35
36
  import { DEFAULT_VCS } from '../session/store.js';
36
37
  /** The assignment as the lead is given it: the operator's message, and what the runner tells it about the work. */
@@ -176,6 +177,8 @@ export async function runLeadTask(transport, session, task, deps) {
176
177
  t.iterations = copy.rounds.length;
177
178
  });
178
179
  };
180
+ // From here the message's minutes are counted, its pauses taken off (2026-10-21).
181
+ const leadStartedAt = Date.now();
179
182
  await setTask((t) => {
180
183
  t.status = 'running';
181
184
  t.runId = runId;
@@ -289,6 +292,9 @@ export async function runLeadTask(transport, session, task, deps) {
289
292
  t.vcs = vcs;
290
293
  t.status = status;
291
294
  t.finishedAt = new Date().toISOString();
295
+ const held = deps.hold?.pausedSince(leadStartedAt) ?? 0;
296
+ if (held > 0)
297
+ t.pausedMs = held;
292
298
  t.summary = summary;
293
299
  t.reason = reason;
294
300
  t.logFile = 'task-log.txt';
@@ -368,6 +374,8 @@ export async function runLeadTask(transport, session, task, deps) {
368
374
  ...((t?.deviations?.length ?? 0) > 0 ? ['', describeDeviations(t.deviations)] : []),
369
375
  '',
370
376
  `Subtasks left: ${max - lead.subtasks} of ${max}.`,
377
+ // Its own list, as it sent it last, to send again with the next subtask (2026-10-21).
378
+ ...(lead.ledger ? ['', describeLedger(lead.ledger, lead.subtasks, max)] : []),
371
379
  'Reply in the lead\'s format: the next subtask, the plan, a question for the operator, or the result.',
372
380
  ].join('\n');
373
381
  };
@@ -514,6 +522,17 @@ export async function runLeadTask(transport, session, task, deps) {
514
522
  ...(r.notes ? { notes: r.notes } : {}),
515
523
  };
516
524
  lead.rounds.push(round);
525
+ // Its list of subtasks, as this reply sends it (2026-10-21); the subtask given now is the running one.
526
+ const giving = r.status === 'delegate' && r.subtask && lead.subtasks < max ? { title: r.subtask.title, n: lead.subtasks + 1 } : undefined;
527
+ const listed = nextLedger(lead.ledger, r.todo, round.at, giving);
528
+ lead.ledger = listed.ledger;
529
+ if (listed.change) {
530
+ round.ledger = listed.change;
531
+ const { revision, added, removed, total } = listed.change;
532
+ sink.event('lead-ledger', { round: round.n, ...listed.change }, revision === 1
533
+ ? `the lead's list: ${total} subtask(s)`
534
+ : `the lead's list changed (version ${revision}): ${total} subtask(s)${added > 0 ? `, ${added} new` : ''}${removed > 0 ? `, ${removed} dropped` : ''}${added === 0 && removed === 0 ? ', in another order' : ''}`);
535
+ }
517
536
  await saveLead();
518
537
  sink.event('lead-reply', { round: round.n, status: r.status }, `the lead: ${r.status}${r.subtask ? ` — ${r.subtask.title}` : ''}`);
519
538
  switch (r.status) {
@@ -581,9 +600,12 @@ export async function runLeadTask(transport, session, task, deps) {
581
600
  }
582
601
  case 'done': {
583
602
  lead.evidence = r.evidence;
603
+ // Delivered: the subtask it was on was accepted with it.
604
+ lead.ledger = closeLedger(lead.ledger, 'done');
584
605
  return await finish('done', undefined, r.answer);
585
606
  }
586
607
  case 'blocked': {
608
+ lead.ledger = closeLedger(lead.ledger, 'blocked');
587
609
  return await finish('blocked', `the lead could not take it further: ${r.needed ?? ''}`.trim(), r.summary);
588
610
  }
589
611
  }
@@ -911,8 +911,12 @@ export async function runTask(transport, session, task, deps) {
911
911
  await store.updateTask(session.id, task.id, mutate);
912
912
  };
913
913
  const startedAt = Date.now();
914
- /** Moved on by the time the operator held the task paused: the limit is on the work, not on the pause. */
915
- let deadline = startedAt + cfg.limits.maxRunMinutes * 60_000;
914
+ /*
915
+ * The limit is on the work, not on the pause: the time from "Pause" pressed to "Continue" is taken off (2026-10-21:
916
+ * from the press, not from the point the work held at — a reply being written, a command running — a little later).
917
+ */
918
+ const pausedMs = () => deps.hold?.pausedSince(startedAt) ?? 0;
919
+ const pastDeadline = () => Date.now() - startedAt - pausedMs() > cfg.limits.maxRunMinutes * 60_000;
916
920
  /*
917
921
  * "Pause" (operator, 2026-10-20; see `Hold`): every message to the chat waits here while the task is paused, and
918
922
  * so does every command (the step loop below). True when the run was stopped while held.
@@ -925,7 +929,6 @@ export async function runTask(transport, session, task, deps) {
925
929
  sink.event('task-paused', { before }, before === 'message' ? 'paused by the operator: nothing more is sent to the chat until Continue' : 'paused by the operator: no other command runs until Continue');
926
930
  await hold.until(signal);
927
931
  const heldMs = Date.now() - from;
928
- deadline += heldMs;
929
932
  const stopped = !!signal?.aborted;
930
933
  const secs = Math.round(heldMs / 1000);
931
934
  sink.event('task-resumed', { before, heldMs, stopped }, stopped ? `stopped while paused, after ${secs} s` : `continued by the operator after ${secs} s paused; that time does not count against maxRunMinutes`);
@@ -1258,6 +1261,9 @@ export async function runTask(transport, session, task, deps) {
1258
1261
  t.status = status;
1259
1262
  t.iterations = iterations;
1260
1263
  t.finishedAt = new Date().toISOString();
1264
+ const held = pausedMs();
1265
+ if (held > 0)
1266
+ t.pausedMs = held;
1261
1267
  t.summary = summary;
1262
1268
  t.reason = reason;
1263
1269
  t.finalReply = finalReply;
@@ -2448,7 +2454,7 @@ export async function runTask(transport, session, task, deps) {
2448
2454
  for (;;) {
2449
2455
  if (signal?.aborted)
2450
2456
  return await finish('aborted', 'stopped by the operator');
2451
- if (Date.now() > deadline) {
2457
+ if (pastDeadline()) {
2452
2458
  limitHit = { setting: 'maxRunMinutes', value: cfg.limits.maxRunMinutes };
2453
2459
  return await finish('limit-reached', `maxRunMinutes (${cfg.limits.maxRunMinutes}) reached`);
2454
2460
  }
@@ -133,7 +133,7 @@ You are **Kerrigan**. You help the person talking to you get their work done wit
133
133
 
134
134
  ## What copilot-operator is
135
135
 
136
- - A local program that opens in the browser, at the address it prints when it starts. Its home screen is a **chat beside the project's folder**, laid out like an IDE: the folder's files on the left, each with an icon of its kind (a file opens in an editor, coloured by its language, where it can be changed and saved with Ctrl+S), the folder's git (its changes and its commits), the chat on the right, and a panel below with the ${Q('wb.terminal')} (the commands of the latest message and what they printed), ${Q('wb.problems')} and ${Q('wb.output')}. That is where they start: the three — the files, the editor with its panel, the chat — can be moved as in VS Code, by dragging the grip ⠿ in a panel's head onto another (the two swap places) or with ${Q('wb.move')}; Ctrl+K puts them back. ${Q('nav.appearance')}, in the bar on top, sets the theme, the text size and the reading aids.
136
+ - A local program that opens in the browser, at the address it prints when it starts. Its home screen is a **chat beside the project's folder**, laid out like an IDE: the folder's files on the left, each with an icon of its kind (a file opens in an editor, coloured by its language, where it can be changed and saved with Ctrl+S), the folder's git (its changes and its commits), the chat on the right, and a panel below with the ${Q('wb.terminal')} (the commands of the latest message and what they printed), ${Q('wb.problems')} and ${Q('wb.output')}. That is where they start: the three — the files, the editor with its panel, the chat — can be moved as in VS Code, by dragging the grip ⠿ in a panel's head onto another (the two swap places) or with ${Q('wb.move')}; Ctrl+K puts them back. ${Q('nav.appearance')}, in the bar on top, sets the theme, the text size and the reading aids. As in VS Code, Ctrl+P finds a file of the folder by a few letters of its name (name:42 opens it at line 42), and Ctrl+Shift+F — the magnifier in the column of icons — searches its code, with Match Case, Match Whole Word, a regular expression and the files to include or exclude. A Markdown file opens as it reads, its mermaid diagrams drawn; ${Q('ed.viewPreview')} and the buttons beside it show its text instead, or both.
137
137
  - The person writes a task in the chat, about the **project folder** open there. The program sends it to **Microsoft 365 Copilot** (a work account) in an Edge window it opens and keeps open between messages; when the work on a message has ended, a card in that window says so, with an OK. Copilot cannot touch the machine itself: it answers with **PowerShell commands**, in a fixed JSON form.
138
138
  - copilot-operator **runs those commands on the machine, in the project folder**, and sends back what they printed. Round after round, until Copilot says the task is **done** (with a summary of what it did), or **blocked** (with what it tried and what it needs), or a limit is reached.
139
139
  - Copilot learns the project only through those commands: it lists files, reads them, runs the build and the tests. It is not sent the files themselves, and it knows nothing about the project that the task does not say and the commands cannot find.
@@ -202,7 +202,7 @@ function bgText(f) {
202
202
 
203
203
  ## Какво е copilot-operator
204
204
 
205
- - Локална програма, която се отваря в браузъра, на адреса, който изписва при пускане. Началният ѝ екран е **чат до папката на проекта**, подреден като IDE: файловете на папката вляво, всеки с икона според вида си (файл се отваря в редактор, оцветен според езика си, където може да се променя и запазва с Ctrl+S), git на папката (промените и комитите), чатът вдясно и панел отдолу с ${Q('wb.terminal')} (командите на последното съобщение и какво са изписали), ${Q('wb.problems')} и ${Q('wb.output')}. Така започват: трите — файловете, редакторът с панела си, чатът — могат да се местят както във VS Code, като дръжката ⠿ в заглавието на панел се пусне върху друг (двата си разменят местата) или с ${Q('wb.move')}; Ctrl+K ги връща. ${Q('nav.appearance')} в лентата горе задава темата, размера на текста и помощните опции.
205
+ - Локална програма, която се отваря в браузъра, на адреса, който изписва при пускане. Началният ѝ екран е **чат до папката на проекта**, подреден като IDE: файловете на папката вляво, всеки с икона според вида си (файл се отваря в редактор, оцветен според езика си, където може да се променя и запазва с Ctrl+S), git на папката (промените и комитите), чатът вдясно и панел отдолу с ${Q('wb.terminal')} (командите на последното съобщение и какво са изписали), ${Q('wb.problems')} и ${Q('wb.output')}. Така започват: трите — файловете, редакторът с панела си, чатът — могат да се местят както във VS Code, като дръжката ⠿ в заглавието на панел се пусне върху друг (двата си разменят местата) или с ${Q('wb.move')}; Ctrl+K ги връща. ${Q('nav.appearance')} в лентата горе задава темата, размера на текста и помощните опции. Както във VS Code, Ctrl+P намира файл от папката по няколко букви от името му (име:42 го отваря на ред 42), а Ctrl+Shift+F — лупата в колоната с икони — търси в кода ѝ, с главни и малки букви, цели думи, регулярен израз и файлове за включване или изключване. Markdown файл се отваря, както изглежда, с начертани mermaid диаграми; ${Q('ed.viewPreview')} и бутоните до него показват текста му или двете заедно.
206
206
  - Човекът пише задание в чата, за **папката на проекта**, отворена там. Програмата го изпраща на **Microsoft 365 Copilot** (служебен акаунт) в прозорец на Edge, който отваря и държи отворен между съобщенията; когато работата по съобщение свърши, карта в този прозорец го казва, с бутон „ОК“. Copilot не може сам да пипа машината: отговаря с **команди на PowerShell**, в определен вид JSON.
207
207
  - copilot-operator **изпълнява тези команди на машината, в папката на проекта**, и връща какво са изписали. Кръг след кръг, докато Copilot каже, че заданието е **готово** (с обобщение на направеното), или **блокирано** (с какво е опитал и какво му трябва), или се стигне ограничение.
208
208
  - Copilot опознава проекта само чрез тези команди: изброява файлове, чете ги, пуска компилацията и тестовете. Самите файлове не му се изпращат и той не знае за проекта нищо, което заданието не казва и командите не могат да намерят.
@@ -443,6 +443,14 @@ export const SYSTEM_GUIDE = [
443
443
  doesEn: 'Shows the open folder\'s files beside it; a file opens in the editor.',
444
444
  doesBg: 'Показва файловете на отворената папка до нея; файл се отваря в редактора.',
445
445
  },
446
+ {
447
+ key: 'wb.search',
448
+ kind: 'button',
449
+ en: 'Search (Ctrl+Shift+F)',
450
+ bg: 'Търсене (Ctrl+Shift+F)',
451
+ doesEn: 'The magnifier in the column of icons (or Ctrl+Shift+F): the Search view, as in VS Code — the open folder\'s code searched as you type, the results by file.',
452
+ doesBg: 'Лупата в колоната с икони (или Ctrl+Shift+F): изгледът за търсене, както във VS Code — кодът на отворената папка се търси, докато пишете, резултатите по файлове.',
453
+ },
446
454
  {
447
455
  key: 'wb.viewCommits',
448
456
  kind: 'button',
@@ -743,8 +751,8 @@ export const SYSTEM_GUIDE = [
743
751
  kind: 'button',
744
752
  en: 'Pause',
745
753
  bg: 'Пауза',
746
- 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". The time paused does not count against the time limit.',
747
- doesBg: 'Докато работи: задържа работата там, където е — отговор, който се пише, и команда, която тече, се оставят да свършат — и после нищо повече не се изпраща и нищо не се изпълнява; бутонът става „Продължи“. Времето на пауза не се брои към ограничението за време.',
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". 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.',
755
+ doesBg: 'Докато работи: задържа работата там, където е — отговор, който се пише, и команда, която тече, се оставят да свършат — и после нищо повече не се изпраща и нищо не се изпълнява; бутонът става „Продължи“. От натискането до „Продължи“ часовникът стои: това време не се брои към ограничението за време, а минутите в лентата на състоянието не мърдат.',
748
756
  },
749
757
  {
750
758
  key: 'chat.resume',
@@ -818,6 +826,38 @@ export const SYSTEM_GUIDE = [
818
826
  doesEn: 'The worker works on the lead\'s model.',
819
827
  doesBg: 'Изпълнителят работи на модела на ръководителя.',
820
828
  },
829
+ {
830
+ key: 'chat.workModel',
831
+ kind: 'note',
832
+ en: 'Work',
833
+ bg: 'Работа',
834
+ doesEn: 'With "Review" ticked: beside the first model, which is the work\'s.',
835
+ doesBg: 'С отметната „Рецензия“: до първия модел, който е на работата.',
836
+ },
837
+ {
838
+ key: 'chat.reviewModel',
839
+ kind: 'select',
840
+ en: 'Review',
841
+ bg: 'Рецензия',
842
+ 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.',
843
+ doesBg: 'С отметната „Рецензия“: моделът, на който върви разговорът на рецензията, под този на работата — най-добре различен и по-силен. Избран тук, важи за този разговор (или за следващия); иначе — този от Настройки → Модел за рецензията.',
844
+ },
845
+ {
846
+ key: 'chat.reviewModelDefault',
847
+ kind: 'select',
848
+ en: 'As in Settings ({model})',
849
+ bg: 'Както е в Настройки ({model})',
850
+ doesEn: 'The review runs on the model chosen in Settings → Model for the review.',
851
+ doesBg: 'Рецензията върви на модела, избран в Настройки → Модел за рецензията.',
852
+ },
853
+ {
854
+ key: 'chat.reviewModelByHand',
855
+ kind: 'select',
856
+ en: 'Chosen by hand in Copilot (none in Settings)',
857
+ bg: 'Ръчно в Copilot (няма избран в Настройки)',
858
+ doesEn: 'No review model is named anywhere: a card asks you to choose it in the Copilot window when the review begins.',
859
+ doesBg: 'Никъде не е посочен модел за рецензията: когато тя започне, карта ви моли да го изберете в прозореца на Copilot.',
860
+ },
821
861
  {
822
862
  key: 'lead.subtask',
823
863
  kind: 'disclosure',
@@ -826,6 +866,14 @@ export const SYSTEM_GUIDE = [
826
866
  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.',
827
867
  doesBg: 'С два чата: подзадача, дадена от ръководителя, както я е изпълнил изпълнителят — командите и докладът му; отворена, докато върви, сгъната, щом свърши. Отбелязана, когато само чете или е дадена на нов изпълнител.',
828
868
  },
869
+ {
870
+ key: 'lead.ledgerList',
871
+ kind: 'disclosure',
872
+ en: 'The subtasks of the plan (version {v})',
873
+ bg: 'Подзадачите в плана (версия {v})',
874
+ 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.',
875
+ doesBg: 'С два чата: собственият списък с подзадачи на ръководителя, по фази — готова (✓), в процес (●), планирана (○), блокирана (⊘) или неуспешна (✗) — а над него фазата, в която е работата, „Подзадача 3 от 8 планирани“, колко остават и отделно най-многото разрешени подзадачи. Версията се вдига, когато ръководителят добави, махне или пренареди подзадачи, и разговорът казва какво се е променило.',
876
+ },
829
877
  {
830
878
  key: 'lead.plan',
831
879
  kind: 'disclosure',
@@ -1074,6 +1122,109 @@ export const SYSTEM_GUIDE = [
1074
1122
  },
1075
1123
  ],
1076
1124
  },
1125
+ {
1126
+ headingKey: 'search.title',
1127
+ en: 'Search',
1128
+ bg: 'Търсене',
1129
+ controls: [
1130
+ {
1131
+ key: 'search.input',
1132
+ kind: 'field',
1133
+ en: 'Search',
1134
+ bg: 'Търсене',
1135
+ doesEn: 'The text to find in the open folder\'s files, searched a moment after you stop typing (Enter searches at once). Files git ignores and files that are not text are left out; files not committed yet are searched.',
1136
+ doesBg: 'Текстът, който да се намери във файловете на отворената папка; търси се малко след като спрете да пишете (Enter търси веднага). Файловете, които git пренебрегва, и тези, които не са текст, се пропускат; още некомитнатите се търсят.',
1137
+ },
1138
+ {
1139
+ key: 'search.matchCase',
1140
+ kind: 'button',
1141
+ en: 'Match Case',
1142
+ bg: 'Главни и малки букви',
1143
+ doesEn: 'Aa inside the box: only matches with the same capitals.',
1144
+ doesBg: 'Aa в полето: само съвпадения със същите главни и малки букви.',
1145
+ },
1146
+ {
1147
+ key: 'search.wholeWord',
1148
+ kind: 'button',
1149
+ en: 'Match Whole Word',
1150
+ bg: 'Само цели думи',
1151
+ doesEn: 'ab inside the box: only whole words, not part of a longer one.',
1152
+ doesBg: 'ab в полето: само цели думи, не част от по-дълга.',
1153
+ },
1154
+ {
1155
+ key: 'search.regex',
1156
+ kind: 'button',
1157
+ en: 'Use Regular Expression',
1158
+ bg: 'Регулярен израз',
1159
+ doesEn: '.* inside the box: the text is a regular expression (PCRE); one that is not valid is said under the box.',
1160
+ doesBg: '.* в полето: текстът е регулярен израз (PCRE); невалиден се казва под полето.',
1161
+ },
1162
+ {
1163
+ key: 'search.details',
1164
+ kind: 'button',
1165
+ en: 'Toggle Search Details',
1166
+ bg: 'Покажи или скрий подробностите',
1167
+ doesEn: 'The … beside the box: shows the files to include and to exclude.',
1168
+ doesBg: 'Трите точки до полето: показва файловете за включване и изключване.',
1169
+ },
1170
+ {
1171
+ key: 'search.include',
1172
+ kind: 'field',
1173
+ en: 'files to include',
1174
+ bg: 'файлове за включване',
1175
+ doesEn: 'Globs, separated by commas: *.ts in any folder, src/** from the root, a folder by its name.',
1176
+ doesBg: 'Шаблони, разделени със запетаи: *.ts във всяка папка, src/** от корена, папка по името ѝ.',
1177
+ },
1178
+ {
1179
+ key: 'search.exclude',
1180
+ kind: 'field',
1181
+ en: 'files to exclude',
1182
+ bg: 'файлове за изключване',
1183
+ doesEn: 'Globs, as for the files to include, of files left out of the search.',
1184
+ doesBg: 'Шаблони, като за включване, на файлове, оставени извън търсенето.',
1185
+ },
1186
+ {
1187
+ key: 'search.refresh',
1188
+ kind: 'button',
1189
+ en: 'Refresh',
1190
+ bg: 'Опресни',
1191
+ doesEn: 'Searches again, for files changed since.',
1192
+ doesBg: 'Търси наново, за файлове, променени оттогава.',
1193
+ },
1194
+ {
1195
+ key: 'search.clear',
1196
+ kind: 'button',
1197
+ en: 'Clear Search Results',
1198
+ bg: 'Изчисти резултатите',
1199
+ doesEn: 'Empties the box and the results.',
1200
+ doesBg: 'Изпразва полето и резултатите.',
1201
+ },
1202
+ {
1203
+ key: 'search.collapse',
1204
+ kind: 'button',
1205
+ en: 'Collapse All',
1206
+ bg: 'Свий всички',
1207
+ doesEn: 'Folds every file of the results (pressed again: Expand All). A file\'s row folds or opens it; a line of it opens the file at that line, the match chosen.',
1208
+ doesBg: 'Свива всеки файл от резултатите (натиснато пак: Разгъни всички). Редът на файл го свива или разгъва; негов ред отваря файла на този ред, със съвпадението избрано.',
1209
+ },
1210
+ {
1211
+ key: 'quick.label',
1212
+ kind: 'field',
1213
+ en: 'Go to File',
1214
+ bg: 'Отиди на файл',
1215
+ doesEn: 'Ctrl+P: a box at the top of the screen that finds a file of the open folder by a few letters of its name, the letters marked; Enter opens it, and name:42 opens it at line 42. The files open in the editor come first.',
1216
+ doesBg: 'Ctrl+P: поле горе на екрана, което намира файл от отворената папка по няколко букви от името му, със съвпадащите букви отбелязани; Enter го отваря, а име:42 го отваря на ред 42. Отворените в редактора файлове са първи.',
1217
+ },
1218
+ {
1219
+ key: 'ed.viewPreview',
1220
+ kind: 'button',
1221
+ en: 'Preview',
1222
+ bg: 'Преглед',
1223
+ doesEn: 'On a Markdown file (with Code and Side by side, or Ctrl+Shift+V): the file as it reads — headings, lists, tables, code in colour, pictures of the folder, and ```mermaid blocks drawn as diagrams. It opens so by default; the choice is kept.',
1224
+ doesBg: 'На Markdown файл (с „Код“ и „Едно до друго“, или Ctrl+Shift+V): файлът, както изглежда — заглавия, списъци, таблици, оцветен код, картинки от папката и ```mermaid блокове, начертани като диаграми. По подразбиране се отваря така; изборът се помни.',
1225
+ },
1226
+ ],
1227
+ },
1077
1228
  {
1078
1229
  headingKey: 'wb.panel',
1079
1230
  en: 'Panel',
@@ -1406,10 +1557,10 @@ export const SYSTEM_GUIDE = [
1406
1557
  {
1407
1558
  key: 'skills.remove',
1408
1559
  kind: 'button',
1409
- en: 'Remove',
1410
- bg: 'Махни',
1411
- doesEn: 'Takes the skill out of the list; messages already sent with it keep it.',
1412
- doesBg: 'Маха skill-а от списъка; вече изпратените с него съобщения го запазват.',
1560
+ en: 'Delete',
1561
+ bg: 'Изтрий',
1562
+ doesEn: 'At the top right of each skill: deletes it, once asked and answered; messages already sent with it keep it.',
1563
+ doesBg: 'Горе вдясно на всеки skill: изтрива го, след като попита и получи отговор; вече изпратените с него съобщения го запазват.',
1413
1564
  },
1414
1565
  {
1415
1566
  key: 'skills.add',