copilot-operator 0.1.64 → 0.1.66

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 (57) hide show
  1. package/dist/src/api/operator.controller.js +48 -0
  2. package/dist/src/api/operator.service.js +415 -53
  3. package/dist/src/exec/dangerous.js +12 -0
  4. package/dist/src/exec/runner.js +75 -2
  5. package/dist/src/exec/stepEnv.js +13 -2
  6. package/dist/src/orchestrator/taskRunner.js +12 -1
  7. package/dist/src/plan/kerrigan.js +32 -6
  8. package/dist/src/plan/systemGuide.js +136 -0
  9. package/dist/src/queue/queue.js +65 -4
  10. package/dist/src/queue/queueBranch.js +66 -0
  11. package/dist/src/session/compose.js +15 -0
  12. package/dist/src/session/store.js +4 -0
  13. package/dist/src/vcs/newBranch.js +241 -0
  14. package/dist/src/vcs/remoteAuth.js +119 -0
  15. package/dist/web/404.html +2 -2
  16. package/dist/web/_next/static/chunks/1024-444e9060299d04ba.js +1 -0
  17. package/dist/web/_next/static/chunks/1077.b88b069535f7008e.js +1 -0
  18. package/dist/web/_next/static/chunks/1548.9e01803e48173ea9.js +1 -0
  19. package/dist/web/_next/static/chunks/2163.018cd5f719ae4b3d.js +1 -0
  20. package/dist/web/_next/static/chunks/6262-d074473db83ee798.js +1 -0
  21. package/dist/web/_next/static/chunks/714.281f68f85df26013.js +1 -0
  22. package/dist/web/_next/static/chunks/7220.3bd10a3e4e053e0c.js +1 -0
  23. package/dist/web/_next/static/chunks/7921-1c173d00d23b3589.js +1 -0
  24. package/dist/web/_next/static/chunks/8124-bb544c96a7c0e7e3.js +1 -0
  25. package/dist/web/_next/static/chunks/8584.c7cd52c2e7075bcb.js +1 -0
  26. package/dist/web/_next/static/chunks/{9067.538dec4d8ec0b04e.js → 9067.feaf894390db1a88.js} +1 -1
  27. package/dist/web/_next/static/chunks/9747.7cee8a2d8301f25c.js +1 -0
  28. package/dist/web/_next/static/chunks/app/{layout-9201c637ca24b2c9.js → layout-5e0e7601702723bb.js} +1 -1
  29. package/dist/web/_next/static/chunks/app/page-95379244849623fc.js +1 -0
  30. package/dist/web/_next/static/chunks/app/queue/page-fb49cb2d3dc6d14c.js +1 -0
  31. package/dist/web/_next/static/chunks/{webpack-d85f02ecd2903252.js → webpack-5ea108bc2e386c55.js} +1 -1
  32. package/dist/web/_next/static/css/a112074f3d1a8a07.css +1 -0
  33. package/dist/web/defaults.html +2 -2
  34. package/dist/web/defaults.txt +8 -8
  35. package/dist/web/index.html +3 -3
  36. package/dist/web/index.txt +9 -9
  37. package/dist/web/queue.html +2 -2
  38. package/dist/web/queue.txt +9 -9
  39. package/dist/web/settings.html +2 -2
  40. package/dist/web/settings.txt +9 -9
  41. package/dist/web/system.html +2 -2
  42. package/dist/web/system.txt +9 -9
  43. package/package.json +4 -2
  44. package/dist/web/_next/static/chunks/1077.32bfff8490ea3d67.js +0 -1
  45. package/dist/web/_next/static/chunks/1548.2bbbbb4759fd5073.js +0 -1
  46. package/dist/web/_next/static/chunks/2163.147b0ca65a65d5dd.js +0 -1
  47. package/dist/web/_next/static/chunks/714.16070ca6426f260c.js +0 -1
  48. package/dist/web/_next/static/chunks/7220.f71047baa16e6be0.js +0 -1
  49. package/dist/web/_next/static/chunks/7921-90ed63bfdf7162f3.js +0 -1
  50. package/dist/web/_next/static/chunks/8124-5458b17433987fab.js +0 -1
  51. package/dist/web/_next/static/chunks/8584.abc09920f03375b1.js +0 -1
  52. package/dist/web/_next/static/chunks/9747.9d15583d6ebafba3.js +0 -1
  53. package/dist/web/_next/static/chunks/app/page-185efe80d6e8dd05.js +0 -1
  54. package/dist/web/_next/static/chunks/app/queue/page-d4155eb6ab172c03.js +0 -1
  55. package/dist/web/_next/static/css/d107848da2f006af.css +0 -1
  56. /package/dist/web/_next/static/{vU04zVwJyicqgtWQsApuV → BbWvNQTsh3pH7ZN_RKR60}/_buildManifest.js +0 -0
  57. /package/dist/web/_next/static/{vU04zVwJyicqgtWQsApuV → BbWvNQTsh3pH7ZN_RKR60}/_ssgManifest.js +0 -0
@@ -275,6 +275,17 @@ let OperatorController = class OperatorController {
275
275
  workspaceGit() {
276
276
  return this.ops.workspaceGit().catch(fail);
277
277
  }
278
+ /**
279
+ * A new branch from main, from the chat (2026-10-26): what it would start from — `fetch` true fetches the remote's
280
+ * main first, through Git's own password window when it asks — and then the branch made, the uncommitted changes
281
+ * taken to it (`carry: take`) or put aside (`carry: aside`), after checking the folder is what the preview read.
282
+ */
283
+ newBranchPreview(body = {}) {
284
+ return this.ops.newBranchPreview(body?.fetch !== false).catch(fail);
285
+ }
286
+ newBranchCreate(body = {}) {
287
+ return this.ops.newBranchCreate(body ?? {}).catch(fail);
288
+ }
278
289
  /** Everything the branch changed against `base` (a branch of the list it gives), as a pull request shows it. Read-only. */
279
290
  workspaceBranch(base) {
280
291
  return this.ops.workspaceBranch(base || undefined).catch(fail);
@@ -338,6 +349,14 @@ let OperatorController = class OperatorController {
338
349
  stopQueue() {
339
350
  return this.ops.stopQueue().catch(fail);
340
351
  }
352
+ /** The queue's own settings (2026-10-26): how long a task may wait for the operator before it is set aside. */
353
+ setQueueSettings(body = {}) {
354
+ return this.ops.setQueueSettings(body ?? {}).catch(fail);
355
+ }
356
+ /** The operator's answer to a task the queue set aside while it waited (2026-10-26); `{ stop: true }` stops it. */
357
+ answerParked(id, body = {}) {
358
+ return this.ops.answerParked(id, body ?? {}).catch(fail);
359
+ }
341
360
  /** Back to before a message: the folder as it was then, that message and the ones after it taken out. */
342
361
  async chatRewind(id, body = {}) {
343
362
  if (typeof body?.taskId !== 'string' || !body.taskId)
@@ -689,6 +708,20 @@ __decorate([
689
708
  __metadata("design:paramtypes", []),
690
709
  __metadata("design:returntype", Promise)
691
710
  ], OperatorController.prototype, "workspaceGit", null);
711
+ __decorate([
712
+ Post('workspace/new-branch/preview'),
713
+ __param(0, Body()),
714
+ __metadata("design:type", Function),
715
+ __metadata("design:paramtypes", [Object]),
716
+ __metadata("design:returntype", Promise)
717
+ ], OperatorController.prototype, "newBranchPreview", null);
718
+ __decorate([
719
+ Post('workspace/new-branch'),
720
+ __param(0, Body()),
721
+ __metadata("design:type", Function),
722
+ __metadata("design:paramtypes", [Object]),
723
+ __metadata("design:returntype", Promise)
724
+ ], OperatorController.prototype, "newBranchCreate", null);
692
725
  __decorate([
693
726
  Get('workspace/git/branch'),
694
727
  __param(0, Query('base')),
@@ -750,6 +783,21 @@ __decorate([
750
783
  __metadata("design:paramtypes", []),
751
784
  __metadata("design:returntype", Promise)
752
785
  ], OperatorController.prototype, "stopQueue", null);
786
+ __decorate([
787
+ Put('queue/settings'),
788
+ __param(0, Body()),
789
+ __metadata("design:type", Function),
790
+ __metadata("design:paramtypes", [Object]),
791
+ __metadata("design:returntype", Promise)
792
+ ], OperatorController.prototype, "setQueueSettings", null);
793
+ __decorate([
794
+ Post('queue/items/:id/answer'),
795
+ __param(0, Param('id')),
796
+ __param(1, Body()),
797
+ __metadata("design:type", Function),
798
+ __metadata("design:paramtypes", [String, Object]),
799
+ __metadata("design:returntype", Promise)
800
+ ], OperatorController.prototype, "answerParked", null);
753
801
  __decorate([
754
802
  Post('chat/:id/rewind'),
755
803
  __param(0, Param('id')),