opencode-copilot-delegate 0.12.1 → 0.13.0
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 +19 -1
- package/README.md +16 -16
- package/dist/index.js +20666 -14568
- package/dist/lib/normalize-tool-arg-schemas.d.ts +1 -1
- package/dist/lib/process-global.d.ts +18 -0
- package/dist/lib/tool.d.ts +25 -0
- package/dist/runtime/plugin-singleton.d.ts +60 -36
- package/dist/runtime/rpc-paths.d.ts +6 -0
- package/dist/runtime/rpc-port-sweep.d.ts +38 -0
- package/dist/runtime/rpc-server.d.ts +10 -0
- package/dist/tools/cancel.d.ts +3 -9
- package/dist/tools/delegate.d.ts +8 -19
- package/dist/tools/output.d.ts +5 -13
- package/dist/tools/resume.d.ts +13 -15
- package/dist/tui/index.js +2818 -10922
- package/dist/tui/status-dialogs.d.ts +17 -0
- package/dist/tui/status-format.d.ts +10 -0
- package/package.json +17 -13
- package/src/tui/index.tsx +11 -42
- package/src/tui/rpc-client.ts +5 -13
- package/src/tui/status-dialogs.tsx +243 -0
- package/src/tui/{components/row.tsx → status-format.ts} +10 -6
- package/dist/tui/__tests__/confirm-card.test.d.ts +0 -2
- package/dist/tui/__tests__/index.test.d.ts +0 -1
- package/dist/tui/__tests__/modal-list.test.d.ts +0 -1
- package/dist/tui/__tests__/rpc-client.test.d.ts +0 -1
- package/dist/tui/components/confirm-card.d.ts +0 -12
- package/dist/tui/components/modal-list.d.ts +0 -16
- package/dist/tui/components/row.d.ts +0 -6
- package/src/tui/__tests__/confirm-card.test.tsx +0 -516
- package/src/tui/__tests__/index.test.ts +0 -561
- package/src/tui/__tests__/modal-list.test.tsx +0 -518
- package/src/tui/__tests__/rpc-client.test.ts +0 -507
- package/src/tui/components/confirm-card.tsx +0 -252
- package/src/tui/components/modal-list.tsx +0 -232
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# opencode-copilot-delegate
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 875f916: Rebuild `/copilot-status` on the host's `DialogSelect`, `DialogConfirm`, and `DialogAlert` components. The modal is now themed like the rest of OpenCode and responds to the keyboard: ↑/↓ move the highlight, Enter on a running task opens the cancel confirm, and Esc closes cleanly. `/copilot-status` is also registered as a real slash command (`slashName`), so it appears when you type `/`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 997204a: Align the shipped `@opentui/core` and `@opentui/solid` dependencies with the OpenCode V1 host (`0.2.7` → `0.4.5`), pin a single `@opentui/core` copy, and raise the transitive `brace-expansion` 2.x copy under `@opentui/solid` to `^2.1.8` to clear GHSA-6j4f-fj2g-mc7p, GHSA-qhr7-859c-m2p7, and GHSA-q2hr-2g5m-vwhr.
|
|
12
|
+
- 63d886a: register the `copilot_*` tools for every workspace directory an OpenCode process serves, not just the first; task state and the RPC server stay shared process-wide
|
|
13
|
+
- 80f669c: clean up stale RPC port files from exited sessions
|
|
14
|
+
|
|
15
|
+
## 0.12.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- fff5334: Stop publishing test files. The package `files` list now excludes `src/tui/__tests__` and the compiled `dist/**/__tests__` declarations.
|
|
20
|
+
- 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).
|
|
21
|
+
|
|
3
22
|
## 0.12.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -98,7 +117,6 @@
|
|
|
98
117
|
- Internal contract documentation: `setStatus` and `writeChains` carry JSDoc covering terminal-state transitions and the per-file serialize chain.
|
|
99
118
|
|
|
100
119
|
- 4f2e8b5: Harden PID file and orphan-reaper state path handling against same-user symlink attacks.
|
|
101
|
-
|
|
102
120
|
- Use no-follow PID file opens for read and truncate paths so symlinked `.pids` files are rejected instead of read or truncated.
|
|
103
121
|
- 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.
|
|
104
122
|
|
package/README.md
CHANGED
|
@@ -59,38 +59,38 @@ The plugin logs the resolved auth source (not the token value) at delegation sta
|
|
|
59
59
|
|
|
60
60
|
### `copilot_delegate`
|
|
61
61
|
|
|
62
|
-
| Arg
|
|
63
|
-
|
|
64
|
-
| `prompt`
|
|
65
|
-
| `agent`
|
|
66
|
-
| `model`
|
|
67
|
-
| `add_dir`
|
|
68
|
-
| `allow_tool` | `string[]?` | Optional. Tool patterns to allow.
|
|
69
|
-
| `deny_tool`
|
|
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
|
|
76
|
-
|
|
77
|
-
| `task_id`
|
|
78
|
-
| `block`
|
|
79
|
-
| `timeout_ms` | `number?`
|
|
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
|
|
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 }`.
|
|
90
90
|
|
|
91
91
|
## Scope Boundary
|
|
92
92
|
|
|
93
|
-
Task state is in-memory inside a single OpenCode process. Calling `copilot_output` from a different OpenCode process returns `{ status: 'unknown', error: 'task_id not found in this OpenCode process' }`. Cross-process sharing is deferred to a future version.
|
|
93
|
+
Task state is in-memory inside a single OpenCode process, and it is shared by every workspace that process serves. When one OpenCode server opens several project directories, each directory gets its own `copilot_*` tools, which run Copilot in that directory and discover that repo's `.github/agents`. There is one task list for the whole process, and one RPC server, which feeds `/copilot-status`. If the same directory loads the plugin from more than one config source, only the first registers tools. Calling `copilot_output` from a different OpenCode process returns `{ status: 'unknown', error: 'task_id not found in this OpenCode process' }`. Cross-process sharing is deferred to a future version.
|
|
94
94
|
|
|
95
95
|
## Known Limitations
|
|
96
96
|
|