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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # opencode-copilot-delegate
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 488e8da: Skip delayed orphan PID registration after a Copilot task has already reached a terminal state.
8
+
3
9
  ## 0.12.0
4
10
 
5
11
  ### Minor Changes
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 TERMINAL_STATUSES = new Set([
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 TERMINAL_STATUSES.has(s);
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
- running: "running";
10
+ cancelled: "cancelled";
11
11
  cancelling: "cancelling";
12
12
  complete: "complete";
13
13
  failed: "failed";
14
- cancelled: "cancelled";
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.0",
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.4.14",
58
+ "@biomejs/biome": "2.5.3",
59
59
  "@changesets/cli": "2.31.0",
60
- "@opencode-ai/plugin": "1.14.48",
61
- "@types/babel__core": "^7.20.5",
62
- "@types/bun": "1.3.13",
63
- "@types/node": "24.12.3",
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": "6.0.3"
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.5",
83
- "@opentui/solid": "0.2.5",
82
+ "@opentui/core": "0.2.6",
83
+ "@opentui/solid": "0.2.6",
84
84
  "fkill": "10.0.3",
85
- "solid-js": "1.9.12",
85
+ "solid-js": "1.9.14",
86
86
  "zod": "^4.3.0"
87
87
  },
88
88
  "overrides": {