@ccx-agent/opencode-ccx 0.3.2 → 0.3.3

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.
@@ -1,4 +1,21 @@
1
- import { tool } from "@opencode-ai/plugin";
2
1
  import type { OhMyCCAgentConfig } from "../config/schema";
3
- export type ToolDefinition = ReturnType<typeof tool>;
4
- export declare function createAgentTools(config: OhMyCCAgentConfig): Record<string, ToolDefinition>;
2
+ /**
3
+ * Subagent tools are no longer registered here.
4
+ *
5
+ * CCX subagents (ccx-explore, ccx-plan, ccx-verification, etc.) are registered
6
+ * via the `config` hook in `config-handler.ts` with `mode: "subagent"`.
7
+ * The upstream `task` tool dispatches them natively — creating a child session
8
+ * whose progress streams in real time through the TUI.
9
+ *
10
+ * The previous approach registered lightweight wrapper tools (explore, plan, …)
11
+ * that merely returned a text blob containing the agent's system prompt and the
12
+ * user prompt. This had two problems:
13
+ * 1. Results were not streamed — the caller only saw the final text return.
14
+ * 2. The wrapper tools could shadow or conflict with the upstream `task` tool,
15
+ * causing the LLM to call the wrapper instead of the native task dispatch.
16
+ *
17
+ * By returning an empty tool map we let the upstream `task` tool handle all
18
+ * subagent orchestration, which gives us real-time streaming, proper child-session
19
+ * tracking, and SubtaskPart rendering in the TUI.
20
+ */
21
+ export declare function createAgentTools(_config: OhMyCCAgentConfig): Record<string, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccx-agent/opencode-ccx",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Production-grade prompt engineering for OpenCode — disciplined coding, risk-aware actions, adversarial verification",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",