copilot-operator 0.1.63 → 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.
- package/dist/src/api/operator.controller.js +53 -3
- package/dist/src/api/operator.service.js +479 -57
- package/dist/src/exec/dangerous.js +12 -0
- package/dist/src/exec/runner.js +75 -2
- package/dist/src/exec/stepEnv.js +13 -2
- package/dist/src/orchestrator/taskRunner.js +12 -1
- package/dist/src/plan/kerrigan.js +63 -10
- package/dist/src/plan/systemGuide.js +202 -2
- package/dist/src/queue/queue.js +71 -4
- package/dist/src/queue/queueBranch.js +66 -0
- package/dist/src/session/compose.js +15 -0
- package/dist/src/session/store.js +4 -0
- package/dist/src/vcs/newBranch.js +241 -0
- package/dist/src/vcs/remoteAuth.js +119 -0
- package/dist/web/404.html +2 -2
- package/dist/web/_next/static/chunks/1024-444e9060299d04ba.js +1 -0
- package/dist/web/_next/static/chunks/1077.b88b069535f7008e.js +1 -0
- package/dist/web/_next/static/chunks/1548.9e01803e48173ea9.js +1 -0
- package/dist/web/_next/static/chunks/2163.018cd5f719ae4b3d.js +1 -0
- package/dist/web/_next/static/chunks/6262-d074473db83ee798.js +1 -0
- package/dist/web/_next/static/chunks/714.281f68f85df26013.js +1 -0
- package/dist/web/_next/static/chunks/7220.3bd10a3e4e053e0c.js +1 -0
- package/dist/web/_next/static/chunks/7921-1c173d00d23b3589.js +1 -0
- package/dist/web/_next/static/chunks/8124-bb544c96a7c0e7e3.js +1 -0
- package/dist/web/_next/static/chunks/8584.c7cd52c2e7075bcb.js +1 -0
- package/dist/web/_next/static/chunks/9067.feaf894390db1a88.js +1 -0
- package/dist/web/_next/static/chunks/9747.7cee8a2d8301f25c.js +1 -0
- package/dist/web/_next/static/chunks/app/{layout-9201c637ca24b2c9.js → layout-5e0e7601702723bb.js} +1 -1
- package/dist/web/_next/static/chunks/app/page-95379244849623fc.js +1 -0
- package/dist/web/_next/static/chunks/app/queue/page-fb49cb2d3dc6d14c.js +1 -0
- package/dist/web/_next/static/chunks/{webpack-38c956574db7c7a6.js → webpack-5ea108bc2e386c55.js} +1 -1
- package/dist/web/_next/static/css/a112074f3d1a8a07.css +1 -0
- package/dist/web/defaults.html +2 -2
- package/dist/web/defaults.txt +8 -8
- package/dist/web/index.html +3 -3
- package/dist/web/index.txt +9 -9
- package/dist/web/queue.html +2 -2
- package/dist/web/queue.txt +9 -9
- package/dist/web/settings.html +2 -2
- package/dist/web/settings.txt +9 -9
- package/dist/web/system.html +2 -2
- package/dist/web/system.txt +9 -9
- package/package.json +4 -2
- package/dist/web/_next/static/chunks/1077.155f883ebfb223ae.js +0 -1
- package/dist/web/_next/static/chunks/1548.52fe19b2bb6dbe66.js +0 -1
- package/dist/web/_next/static/chunks/2163.51278cbd88674f1a.js +0 -1
- package/dist/web/_next/static/chunks/714.a3555e6b7e5f4339.js +0 -1
- package/dist/web/_next/static/chunks/7220.a7dcaec140695190.js +0 -1
- package/dist/web/_next/static/chunks/7921-b7eba39a21993047.js +0 -1
- package/dist/web/_next/static/chunks/8124-5458b17433987fab.js +0 -1
- package/dist/web/_next/static/chunks/8584.baf85c4394dc04eb.js +0 -1
- package/dist/web/_next/static/chunks/9067.2d7665cd257d7b47.js +0 -1
- package/dist/web/_next/static/chunks/9747.66a374501673612f.js +0 -1
- package/dist/web/_next/static/chunks/app/page-03f129240e06a07c.js +0 -1
- package/dist/web/_next/static/chunks/app/queue/page-f86936d39121ade8.js +0 -1
- package/dist/web/_next/static/css/2f2419505403ce07.css +0 -1
- /package/dist/web/_next/static/{kxZRE1oIu_arurqhfP4mS → BbWvNQTsh3pH7ZN_RKR60}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{kxZRE1oIu_arurqhfP4mS → BbWvNQTsh3pH7ZN_RKR60}/_ssgManifest.js +0 -0
|
@@ -96,10 +96,11 @@ let OperatorController = class OperatorController {
|
|
|
96
96
|
}
|
|
97
97
|
// --- Kerrigan -------------------------------------------------------------------------------
|
|
98
98
|
/** Kerrigan, the persona to give another chat: what copilot-operator is and how a task is best written for it. */
|
|
99
|
-
kerrigan(lang) {
|
|
99
|
+
kerrigan(lang, skill) {
|
|
100
100
|
// Any language code of the interface: in one she is not written out in, the page fills in the controls' names.
|
|
101
101
|
const code = typeof lang === 'string' && /^[a-z]{2,3}$/.test(lang) ? lang : 'en';
|
|
102
|
-
|
|
102
|
+
// `skill`: the one chosen beside her button, whose instructions go with her text (2026-10-26).
|
|
103
|
+
return this.ops.kerrigan(code, typeof skill === 'string' && skill.trim() ? skill : undefined).catch(fail);
|
|
103
104
|
}
|
|
104
105
|
// --- the chat's conversations (sessions of kind `chat`) -------------------------------------
|
|
105
106
|
sessions() {
|
|
@@ -274,6 +275,17 @@ let OperatorController = class OperatorController {
|
|
|
274
275
|
workspaceGit() {
|
|
275
276
|
return this.ops.workspaceGit().catch(fail);
|
|
276
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
|
+
}
|
|
277
289
|
/** Everything the branch changed against `base` (a branch of the list it gives), as a pull request shows it. Read-only. */
|
|
278
290
|
workspaceBranch(base) {
|
|
279
291
|
return this.ops.workspaceBranch(base || undefined).catch(fail);
|
|
@@ -337,6 +349,14 @@ let OperatorController = class OperatorController {
|
|
|
337
349
|
stopQueue() {
|
|
338
350
|
return this.ops.stopQueue().catch(fail);
|
|
339
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
|
+
}
|
|
340
360
|
/** Back to before a message: the folder as it was then, that message and the ones after it taken out. */
|
|
341
361
|
async chatRewind(id, body = {}) {
|
|
342
362
|
if (typeof body?.taskId !== 'string' || !body.taskId)
|
|
@@ -494,8 +514,9 @@ __decorate([
|
|
|
494
514
|
__decorate([
|
|
495
515
|
Get('kerrigan'),
|
|
496
516
|
__param(0, Query('lang')),
|
|
517
|
+
__param(1, Query('skill')),
|
|
497
518
|
__metadata("design:type", Function),
|
|
498
|
-
__metadata("design:paramtypes", [String]),
|
|
519
|
+
__metadata("design:paramtypes", [String, String]),
|
|
499
520
|
__metadata("design:returntype", Promise)
|
|
500
521
|
], OperatorController.prototype, "kerrigan", null);
|
|
501
522
|
__decorate([
|
|
@@ -687,6 +708,20 @@ __decorate([
|
|
|
687
708
|
__metadata("design:paramtypes", []),
|
|
688
709
|
__metadata("design:returntype", Promise)
|
|
689
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);
|
|
690
725
|
__decorate([
|
|
691
726
|
Get('workspace/git/branch'),
|
|
692
727
|
__param(0, Query('base')),
|
|
@@ -748,6 +783,21 @@ __decorate([
|
|
|
748
783
|
__metadata("design:paramtypes", []),
|
|
749
784
|
__metadata("design:returntype", Promise)
|
|
750
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);
|
|
751
801
|
__decorate([
|
|
752
802
|
Post('chat/:id/rewind'),
|
|
753
803
|
__param(0, Param('id')),
|