opencode-context-tree 0.1.0 → 0.1.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/docs/USAGE.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Install
4
4
 
5
+ The short way — OpenCode registers both halves for you:
6
+
7
+ ```sh
8
+ opencode plugin opencode-context-tree -g # global; drop -g for the current project
9
+ ```
10
+
11
+ By hand, the package name must be listed in **both** files (the TUI half is read from
12
+ `tui.json` only; listing it just in `opencode.json` gives you `/ctree` but no `/tree`):
13
+
5
14
  ```jsonc
6
15
  // opencode.json (server half: crops, branch model, headless /ctree commands)
7
16
  { "plugin": [["opencode-context-tree", { "storage": "local" }]] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-context-tree",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Pi-style context tree for OpenCode: branch, merge (human-confirmed decision records), crop, undo, plus a DeepSeek-Harness-style trajectory view",
@@ -86,4 +86,6 @@ export const CTREE_HELP = `context tree — headless commands
86
86
  /ctree crop --auto [--apply] [--min-tokens N] [--older-than N] [--keep glob]
87
87
  /ctree undo revert the last crop / branch / merge on this path
88
88
  /ctree decisions [--export [path]] list ◆ decision records (default export: ./ctree-decisions.md)
89
- The TUI has the full experience: /tree (ctrl+q), /branch, /merge, /decisions.`
89
+ The TUI has the full experience: /tree (ctrl+q), /branch, /merge, /decisions.
90
+ Not seeing /tree? The UI half is loaded from tui.json, not opencode.json. Let OpenCode write
91
+ both files: opencode plugin opencode-context-tree -g (drop -g for this project only).`
@@ -86,7 +86,7 @@ export const server: Plugin = async ({ worktree, client, directory }, options) =
86
86
  config: async (cfg) => {
87
87
  const c = cfg as { command?: Record<string, unknown> }
88
88
  if (c.command?.["ctree"]) return // a user-defined /ctree command wins
89
- c.command = { ...(c.command ?? {}), ctree: { template: "$ARGUMENTS", description: "Context tree (headless): status | branch <name> | merge --discard | crop --top | crop --auto | undo | decisions" } }
89
+ c.command = { ...(c.command ?? {}), ctree: { template: "$ARGUMENTS", description: "Context tree (headless): status | branch | merge --discard | crop | undo | decisions no /tree? run: opencode plugin opencode-context-tree -g" } }
90
90
  },
91
91
 
92
92
  "command.execute.before": async (input, output) => {