opencode-copilot-delegate 0.9.0 → 0.10.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # opencode-copilot-delegate
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e84f127: Prepare the package for an optional Copilot status TUI by adding server and TUI plugin metadata plus dedicated package exports.
8
+
3
9
  ## 0.9.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -21,6 +21,17 @@ When the subprocess completes, a `<system-reminder>` notification is injected in
21
21
  }
22
22
  ```
23
23
 
24
+ ### Optional: install the TUI half
25
+
26
+ The server plugin works by itself. To enable the `/copilot-status` terminal UI, also install the TUI half in OpenCode's TUI config:
27
+
28
+ ```jsonc
29
+ // tui.jsonc
30
+ {
31
+ "plugin": ["opencode-copilot-delegate/tui"]
32
+ }
33
+ ```
34
+
24
35
  Requires the `copilot` CLI to be on `PATH`. Install via:
25
36
 
26
37
  ```sh
@@ -81,11 +92,13 @@ Returns `{ cancelled: boolean; was_running: boolean }`.
81
92
 
82
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.
83
94
 
84
- ## Known Limitations (v0.1.x)
95
+ ## Known Limitations
85
96
 
86
97
  - **Orphaned subprocesses (mitigated since v0.2.0):** If OpenCode crashes mid-delegation, the `copilot` subprocess becomes orphaned. A PID-file reaper now scans `<XDG_STATE_HOME>/opencode-copilot-delegate/orphans/` at every plugin init, probes the owning plugin's liveness, and reaps subprocesses whose plugin has exited. A strict identity gate (kernel-tracked `comm` + start time) prevents PID-reuse misfires.
87
98
  - **Prompt visibility in `ps`:** The `copilot` CLI accepts the prompt as a command-line argument, which means the full prompt text appears in `ps` output for any user on the host. This is an upstream Copilot CLI behavior. Avoid delegating prompts that contain secrets or PII; pass sensitive material via files, env vars, or `--secret-env-vars` instead.
88
99
  - **No subprocess lifetime cap:** A hung `copilot` subprocess stays in the registry as `running` indefinitely. Cancel manually via `copilot_cancel`. A configurable timeout is planned for v1.x.
100
+ - **TUI half is opt-in:** The package ships server and TUI entrypoints. Existing server-only installs continue to register the three tools; `/copilot-status` only appears when the TUI entrypoint is installed.
101
+ - **RPC server cleanup is best-effort:** The server half exposes a localhost-only RPC listener for the TUI and writes a per-session authenticated port file under `<XDG_CACHE_HOME or ~/.cache>/opencode/copilot-delegate/`. OpenCode's server plugin API has no dispose hook today, so cleanup is tied to process exit signals and the orphan-reaper posture covers missed shutdowns.
89
102
 
90
103
  ## Versioning
91
104
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import type { Plugin } from '@opencode-ai/plugin';
2
+ export declare function wireRpcServerCleanup(closeRpcServer: () => Promise<void>): () => Promise<void>;
2
3
  declare const CopilotDelegate: Plugin;
3
4
  export default CopilotDelegate;