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/CHANGELOG.md +9 -0
- package/README.md +26 -8
- package/dist/server.js +1000 -994
- package/dist/tui.js +994 -990
- package/docs/USAGE.md +9 -0
- package/package.json +1 -1
- package/src/core/ctree-args.ts +3 -1
- package/src/server/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.1 — 2026-09-03
|
|
4
|
+
|
|
5
|
+
- Install with OpenCode's own `opencode plugin opencode-context-tree [-g]`, which registers
|
|
6
|
+
both halves (server entry in `opencode.json`, TUI entry in `tui.json`); README and USAGE
|
|
7
|
+
lead with it.
|
|
8
|
+
- If only the server half is installed (you see `/ctree` but no `/tree`), the `/ctree` help
|
|
9
|
+
and its palette description now say exactly that and point at the command above.
|
|
10
|
+
- Published through npm trusted publishing (OIDC, no token) from the GitHub Release.
|
|
11
|
+
|
|
3
12
|
## 0.1.0 — 2026-09-03
|
|
4
13
|
|
|
5
14
|
First working version, built against OpenCode 1.18.26.
|
package/README.md
CHANGED
|
@@ -15,6 +15,32 @@ Branch, jump, labels, filters, search, crop + undo, squash/discard/tournament me
|
|
|
15
15
|
trajectory), the end-user flows, the combined tree + trajectory mockup, the data
|
|
16
16
|
model, architecture, edge cases, and the roadmap.
|
|
17
17
|
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
Requires OpenCode 1.18 or newer. One command registers both halves of the plugin (the server
|
|
21
|
+
plugin in `opencode.json`, the TUI plugin in `tui.json`):
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
opencode plugin opencode-context-tree -g # for every project (~/.config/opencode)
|
|
25
|
+
opencode plugin opencode-context-tree # for the current project only (.opencode/)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Restart OpenCode. `/tree` (or `ctrl+q`) opens the tree; `/branch`, `/merge`, `/decisions` and the
|
|
29
|
+
headless `/ctree` commands are available too.
|
|
30
|
+
|
|
31
|
+
If you only see `/ctree` and no `/tree`, the TUI half is not registered: run the command above.
|
|
32
|
+
To register by hand instead, the package name must be listed in **both** files:
|
|
33
|
+
|
|
34
|
+
```jsonc
|
|
35
|
+
// opencode.json (or ~/.config/opencode/opencode.jsonc)
|
|
36
|
+
{ "plugin": ["opencode-context-tree"] }
|
|
37
|
+
// tui.json (or ~/.config/opencode/tui.json)
|
|
38
|
+
{ "plugin": ["opencode-context-tree"] }
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Options go in either file: `[["opencode-context-tree", { "storage": "global", "jumpSummary": "never" }]]`
|
|
42
|
+
(see [docs/USAGE.md](docs/USAGE.md)). To hack on it from a checkout, see "Try it from source" below.
|
|
43
|
+
|
|
18
44
|
## The idea in one screen
|
|
19
45
|
|
|
20
46
|
`/tree` is an outline of the whole session tree — Pi's tree — where every message and tool step
|
|
@@ -112,11 +138,3 @@ double for protected, `a` auto, `t` result⇄turn, `⏎` apply), `i` inspector,
|
|
|
112
138
|
- the UI is a TUI plugin (`@opencode-ai/plugin/tui`): a route, two slots (gauge,
|
|
113
139
|
sidebar card), dialogs and a keymap layer.
|
|
114
140
|
|
|
115
|
-
Two config entries will be needed once it ships:
|
|
116
|
-
|
|
117
|
-
```jsonc
|
|
118
|
-
// opencode.json
|
|
119
|
-
{ "plugin": ["opencode-context-tree"] }
|
|
120
|
-
// tui.json
|
|
121
|
-
{ "plugin": ["opencode-context-tree"] }
|
|
122
|
-
```
|