opencode-copilot-delegate 0.12.0 → 0.12.2

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,18 @@
1
1
  # opencode-copilot-delegate
2
2
 
3
+ ## 0.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - fff5334: Stop publishing test files. The package `files` list now excludes `src/tui/__tests__` and the compiled `dist/**/__tests__` declarations.
8
+ - f973822: Bump the shipped `zod` dependency to `^4.6.7` to pick up the fix for GHSA-mrhx-c7xc-m3w5 (memory exhaustion when validating oversized constrained collections).
9
+
10
+ ## 0.12.1
11
+
12
+ ### Patch Changes
13
+
14
+ - 488e8da: Skip delayed orphan PID registration after a Copilot task has already reached a terminal state.
15
+
3
16
  ## 0.12.0
4
17
 
5
18
  ### Minor Changes
@@ -92,7 +105,6 @@
92
105
  - Internal contract documentation: `setStatus` and `writeChains` carry JSDoc covering terminal-state transitions and the per-file serialize chain.
93
106
 
94
107
  - 4f2e8b5: Harden PID file and orphan-reaper state path handling against same-user symlink attacks.
95
-
96
108
  - Use no-follow PID file opens for read and truncate paths so symlinked `.pids` files are rejected instead of read or truncated.
97
109
  - Reject symlinked PID file parent directories before orphan reaping, cleanup, and plugin init state-directory creation so `orphans/` scans and cleanup do not follow attacker-controlled links.
98
110
 
package/README.md CHANGED
@@ -59,31 +59,31 @@ The plugin logs the resolved auth source (not the token value) at delegation sta
59
59
 
60
60
  ### `copilot_delegate`
61
61
 
62
- | Arg | Type | Description |
63
- |-----|------|-------------|
64
- | `prompt` | `string` | Required. The prompt to send to Copilot. |
65
- | `agent` | `string?` | Optional. Copilot agent name (see tool description for available agents). |
66
- | `model` | `string?` | Optional. Model override (e.g. `claude-haiku-4.5`). |
67
- | `add_dir` | `string[]?` | Optional. Additional directories to allow Copilot to read. |
68
- | `allow_tool` | `string[]?` | Optional. Tool patterns to allow. |
69
- | `deny_tool` | `string[]?` | Optional. Tool patterns to deny. |
62
+ | Arg | Type | Description |
63
+ | ------------ | ----------- | ------------------------------------------------------------------------- |
64
+ | `prompt` | `string` | Required. The prompt to send to Copilot. |
65
+ | `agent` | `string?` | Optional. Copilot agent name (see tool description for available agents). |
66
+ | `model` | `string?` | Optional. Model override (e.g. `claude-haiku-4.5`). |
67
+ | `add_dir` | `string[]?` | Optional. Additional directories to allow Copilot to read. |
68
+ | `allow_tool` | `string[]?` | Optional. Tool patterns to allow. |
69
+ | `deny_tool` | `string[]?` | Optional. Tool patterns to deny. |
70
70
 
71
71
  Returns `{ task_id: string }` — a `cpl_`-prefixed UUID.
72
72
 
73
73
  ### `copilot_output`
74
74
 
75
- | Arg | Type | Description |
76
- |-----|------|-------------|
77
- | `task_id` | `string` | Required. Task ID from `copilot_delegate`. |
78
- | `block` | `boolean?` | Optional. Wait for completion before returning. Default `false`. |
79
- | `timeout_ms` | `number?` | Optional. Max wait ms when `block: true`. Default `30000`, max `120000`. |
75
+ | Arg | Type | Description |
76
+ | ------------ | ---------- | ------------------------------------------------------------------------ |
77
+ | `task_id` | `string` | Required. Task ID from `copilot_delegate`. |
78
+ | `block` | `boolean?` | Optional. Wait for completion before returning. Default `false`. |
79
+ | `timeout_ms` | `number?` | Optional. Max wait ms when `block: true`. Default `30000`, max `120000`. |
80
80
 
81
81
  Returns a structured envelope with `status`, `final_message`, `tokens`, `tool_calls_summary`, and more.
82
82
 
83
83
  ### `copilot_cancel`
84
84
 
85
- | Arg | Type | Description |
86
- |-----|------|-------------|
85
+ | Arg | Type | Description |
86
+ | --------- | -------- | ---------------------------- |
87
87
  | `task_id` | `string` | Required. Task ID to cancel. |
88
88
 
89
89
  Returns `{ cancelled: boolean; was_running: boolean }`.