opencode-copilot-delegate 0.12.0 → 0.12.1
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/CHANGELOG.md +6 -0
- package/dist/index.js +10 -2
- package/dist/runtime/rpc-contract.d.ts +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -23748,6 +23748,11 @@ async function startRpcServer(options) {
|
|
|
23748
23748
|
// src/runtime/task-registry.ts
|
|
23749
23749
|
import { randomUUID } from "node:crypto";
|
|
23750
23750
|
var tasks = new Map;
|
|
23751
|
+
var TERMINAL_STATUSES = new Set([
|
|
23752
|
+
"complete",
|
|
23753
|
+
"failed",
|
|
23754
|
+
"cancelled"
|
|
23755
|
+
]);
|
|
23751
23756
|
function createTask(input, taskId = `cpl_${randomUUID()}`) {
|
|
23752
23757
|
const { pidFilePath, ...rest } = input;
|
|
23753
23758
|
const task = {
|
|
@@ -23757,6 +23762,9 @@ function createTask(input, taskId = `cpl_${randomUUID()}`) {
|
|
|
23757
23762
|
};
|
|
23758
23763
|
if (task.pid > 0 && pidFilePath) {
|
|
23759
23764
|
getPidIdentity(task.pid).then((identity3) => {
|
|
23765
|
+
if (TERMINAL_STATUSES.has(task.status)) {
|
|
23766
|
+
return;
|
|
23767
|
+
}
|
|
23760
23768
|
if (identity3) {
|
|
23761
23769
|
appendPidEntry(pidFilePath, task.pid, identity3.comm, identity3.lstart).catch(() => {});
|
|
23762
23770
|
} else {
|
|
@@ -24035,14 +24043,14 @@ function parseJsonlLine(line) {
|
|
|
24035
24043
|
}
|
|
24036
24044
|
|
|
24037
24045
|
// src/runtime/task-status.ts
|
|
24038
|
-
var
|
|
24046
|
+
var TERMINAL_STATUSES2 = new Set([
|
|
24039
24047
|
"complete",
|
|
24040
24048
|
"failed",
|
|
24041
24049
|
"cancelled"
|
|
24042
24050
|
]);
|
|
24043
24051
|
var CANCELLING_STATUS = "cancelling";
|
|
24044
24052
|
function isTerminal(s) {
|
|
24045
|
-
return
|
|
24053
|
+
return TERMINAL_STATUSES2.has(s);
|
|
24046
24054
|
}
|
|
24047
24055
|
function isCancellationFinalization(currentStatus, newStatus) {
|
|
24048
24056
|
return currentStatus === CANCELLING_STATUS && newStatus === "cancelled";
|
|
@@ -7,11 +7,11 @@ export declare const TasksListResponseSchema: z.ZodObject<{
|
|
|
7
7
|
tasks: z.ZodArray<z.ZodObject<{
|
|
8
8
|
taskId: z.ZodString;
|
|
9
9
|
status: z.ZodEnum<{
|
|
10
|
-
|
|
10
|
+
cancelled: "cancelled";
|
|
11
11
|
cancelling: "cancelling";
|
|
12
12
|
complete: "complete";
|
|
13
13
|
failed: "failed";
|
|
14
|
-
|
|
14
|
+
running: "running";
|
|
15
15
|
}>;
|
|
16
16
|
agent: z.ZodString;
|
|
17
17
|
model: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-copilot-delegate",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "OpenCode plugin that delegates tasks to GitHub Copilot CLI as background subprocesses",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"@opencode-ai/plugin": ">=1.14.41"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@biomejs/biome": "2.
|
|
58
|
+
"@biomejs/biome": "2.5.3",
|
|
59
59
|
"@changesets/cli": "2.31.0",
|
|
60
|
-
"@opencode-ai/plugin": "1.
|
|
61
|
-
"@types/babel__core": "
|
|
62
|
-
"@types/bun": "1.3.
|
|
63
|
-
"@types/node": "24.
|
|
60
|
+
"@opencode-ai/plugin": "1.17.13",
|
|
61
|
+
"@types/babel__core": "7.20.5",
|
|
62
|
+
"@types/bun": "1.3.14",
|
|
63
|
+
"@types/node": "24.13.2",
|
|
64
64
|
"rimraf": "6.1.3",
|
|
65
|
-
"typescript": "
|
|
65
|
+
"typescript": "7.0.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"clean": "rimraf dist",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"publish-changesets": "bun run build && changeset publish"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@opentui/core": "0.2.
|
|
83
|
-
"@opentui/solid": "0.2.
|
|
82
|
+
"@opentui/core": "0.2.6",
|
|
83
|
+
"@opentui/solid": "0.2.6",
|
|
84
84
|
"fkill": "10.0.3",
|
|
85
|
-
"solid-js": "1.9.
|
|
85
|
+
"solid-js": "1.9.14",
|
|
86
86
|
"zod": "^4.3.0"
|
|
87
87
|
},
|
|
88
88
|
"overrides": {
|