@max10240/opencode-plugin-collapse-transcript 0.0.0-stage → 1.0.48

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/README.md CHANGED
@@ -1,3 +1,57 @@
1
- # Temporary Holding Version
1
+ # @max10240/opencode-plugin-collapse-transcript
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **English** | [简体中文](README.zh-CN.md)
4
+
5
+ **Fold a long transcript back to its summary.**
6
+
7
+ Thought, exploration, instruction, and activity groups stay open while you expand them. After a deep dive, a
8
+ conversation can be several screens of expanded detail. This plugin adds one hint below the transcript: it counts the
9
+ groups you opened and folds all of them when you click it.
10
+
11
+ ## What you get
12
+
13
+ - A `Collapse all (N)` hint at the bottom right of the session transcript.
14
+ - The count follows groups opened by you and groups OpenCode opens for `session.verbosity: "high"`.
15
+ - One click collapses every tracked group, including a header that has scrolled out of view but is still mounted.
16
+ - The hint disappears when nothing is expanded.
17
+ - Tracking is per session and per TUI process. Switching sessions, a fork, or a restart starts from the new
18
+ transcript's mounted state, never from another session's count.
19
+
20
+ ## Install
21
+
22
+ This is a TUI plugin. Add it to the client configuration:
23
+
24
+ ```jsonc
25
+ // cli.json
26
+ {
27
+ "$schema": "https://opencode.ai/v2/cli.json",
28
+ "plugins": ["@max10240/opencode-plugin-collapse-transcript"]
29
+ }
30
+ ```
31
+
32
+ The package also exposes a no-op server half, so listing it in `opencode.jsonc` is harmless. The feature runs only in
33
+ the TUI.
34
+
35
+ With Unicorn, the feature is enabled by default. Disable it independently with `features.collapseTranscript: false`.
36
+
37
+ ## Using it
38
+
39
+ 1. Expand a thought or tool group by clicking its header. The hint shows `Collapse all (1)`.
40
+ 2. Expand another group. The hint shows `Collapse all (2)`.
41
+ 3. Click the hint. Both groups collapse and the hint disappears.
42
+ 4. Clicking anywhere else leaves the transcript alone.
43
+
44
+ The hint sits below `Jump to latest ↓`, so the two never overlap.
45
+
46
+ ## Good to know
47
+
48
+ - **TUI only.** A remote client needs the plugin in its own `cli.json`; installing it only on the server does not add the
49
+ hint.
50
+ - **Render-tree based.** OpenCode does not expose disclosure state to plugins yet. Header recognition uses the rendered
51
+ group row and its mouse-up handler, so a future TUI refactor may require an update.
52
+ - **Mounted rows only.** A header that leaves the TUI's mounted window is dropped from the count; re-entering the
53
+ session seeds the mounted expanded groups again.
54
+ - **Group status is read from the row.** Exploration and instruction groups do not change their icon when they open, so
55
+ their body height decides whether they count. A collapsed group with an expanded inline image at the same level may
56
+ be counted as open, so the hint can toggle that group.
57
+ - **Tested with OpenCode `v2.4.5`.** Other versions have not been validated.
@@ -0,0 +1,52 @@
1
+ # @max10240/opencode-plugin-collapse-transcript
2
+
3
+ [English](README.md) | **简体中文**
4
+
5
+ **把展开得很长的对话,一键收回到摘要。**
6
+
7
+ 思考、探索、指令和活动分组在展开后会占很多行。一次深入排查之后,整个对话可能有好几屏都是展开的细节。
8
+ 这个插件在对话下方提供一个提示:显示你打开的分组数量,点一下就把它们全部收起。
9
+
10
+ ## 它能给你什么
11
+
12
+ - 在 session 对话右下角显示 `Collapse all (N)` 提示。
13
+ - 统计你手动展开的分组,也统计 `session.verbosity: "high"` 下 OpenCode 默认展开的分组。
14
+ - 一次点击收起所有已记录的分组,包括已经滚出视野但仍挂载的标题。
15
+ - 没有展开的分组时,提示自动消失。
16
+ - 状态按 session 和 TUI 进程隔离。切换 session、fork 或重启后,只从新对话当前已挂载的状态重新统计,不会带上
17
+ 其他 session 的计数。
18
+
19
+ ## 安装
20
+
21
+ 这是 TUI 插件,加到客户端配置:
22
+
23
+ ```jsonc
24
+ // cli.json
25
+ {
26
+ "$schema": "https://opencode.ai/v2/cli.json",
27
+ "plugins": ["@max10240/opencode-plugin-collapse-transcript"]
28
+ }
29
+ ```
30
+
31
+ 包里也有一个空的 server 半区,所以写进 `opencode.jsonc` 不会出错,但功能只在 TUI 里生效。
32
+
33
+ 使用 Unicorn 时,这个功能默认开启。可以用 `features.collapseTranscript: false` 单独关闭。
34
+
35
+ ## 使用方式
36
+
37
+ 1. 点击思考或工具分组的标题展开它,提示显示 `Collapse all (1)`。
38
+ 2. 再展开一个分组,提示显示 `Collapse all (2)`。
39
+ 3. 点击提示,所有分组收起,提示消失。
40
+ 4. 点击其他区域不会改变对话。
41
+
42
+ 提示位于 `Jump to latest ↓` 下方,两者不会重叠。
43
+
44
+ ## 注意事项
45
+
46
+ - **只作用于 TUI。** 连接远程 server 时,客户端自己的 `cli.json` 也要安装;只在 server 安装不会出现提示。
47
+ - **依赖渲染树。** OpenCode 目前没有向插件暴露分组展开状态。插件通过渲染出来的分组行和它的 mouse-up 处理器
48
+ 识别标题,未来 TUI 重构可能需要同步更新。
49
+ - **只统计挂载中的行。** 标题离开 TUI 的挂载窗口后会从计数中移除;重新进入 session 时会重新统计已挂载的展开分组。
50
+ - **分组状态来自行本身。** 探索和指令分组在展开时图标不变,因此用分组内容高度判断。同一层级如果有展开的
51
+ 内联图片,收起的分组也可能被算作展开,点击提示可能会切换该分组。
52
+ - **已在 OpenCode `v2.4.5` 验证。** 其他版本尚未验证。
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default, setupCollapseTranscript } from "./src/index.js";
@@ -0,0 +1,156 @@
1
+ /**
2
+ * Read-only helpers for OpenCode's TUI render tree.
3
+ *
4
+ * The plugin API does not expose transcript disclosure state, so this module recognises process
5
+ * group headers by the row they render and the mouse-up handler OpenCode attaches to them.
6
+ */
7
+ const EXPANDED_ICONS = new Set(["\u2212", "-"]);
8
+ const COLLAPSED_ICONS = new Set(["+"]);
9
+ // Icons that do not change when the group opens: completion is signalled by the icon, disclosure
10
+ // by the body the group renders underneath.
11
+ const DETAIL_ICONS = new Set(["\u2192", "\u2731", "\u25c8"]);
12
+ const LABEL_PREFIX = /^[^\p{L}\p{N}]+/u;
13
+ const COUNTED_GROUP = /^\d+\s+(thoughts?|commands?|edits?|reads?|tools?|steps?|instructions?)\b/i;
14
+ const NAMED_GROUP = /^(Thought|Thinking|Explored|Exploring|Instructions?)\b/i;
15
+ const SPINNER_ICON = /^\p{So}/u;
16
+ export function headerState(node) {
17
+ try {
18
+ if (node.isDestroyed)
19
+ return;
20
+ if (!node._mouseListeners?.up)
21
+ return;
22
+ const height = numberOr(node.height, 1);
23
+ // A group header is one row. An ancestor that wraps both the header and the body can also
24
+ // listen for mouse-up and start with the same text; its height spans the body, so skip it.
25
+ if (height > 2)
26
+ return;
27
+ const label = subtreeText(node);
28
+ if (!label)
29
+ return;
30
+ const body = label.replace(LABEL_PREFIX, "").trim();
31
+ if (!isGroupLabel(body))
32
+ return;
33
+ const icon = label[0] ?? "";
34
+ const anchorHeight = numberOr(node.parent?.height, height);
35
+ return { node, label, expanded: isExpandedIcon(icon, anchorHeight, height) };
36
+ }
37
+ catch {
38
+ return;
39
+ }
40
+ }
41
+ export function isGroupLabel(body) {
42
+ return COUNTED_GROUP.test(body) || NAMED_GROUP.test(body.replace(LABEL_PREFIX, "").trim());
43
+ }
44
+ export function isExpandedIcon(icon, anchorHeight, headerHeight) {
45
+ if (COLLAPSED_ICONS.has(icon))
46
+ return false;
47
+ if (EXPANDED_ICONS.has(icon))
48
+ return true;
49
+ if (DETAIL_ICONS.has(icon))
50
+ return anchorHeight > headerHeight;
51
+ // A running group replaces its disclosure icon with a spinner frame; the body height still
52
+ // tells whether it is open.
53
+ if (SPINNER_ICON.test(icon))
54
+ return anchorHeight > headerHeight;
55
+ return false;
56
+ }
57
+ export function isLive(node) {
58
+ return !node.isDestroyed;
59
+ }
60
+ export function isExpanded(node) {
61
+ try {
62
+ return headerState(node)?.expanded === true;
63
+ }
64
+ catch {
65
+ return false;
66
+ }
67
+ }
68
+ /** The clickable group header containing `target`, found by walking ancestors only. */
69
+ export function headerAt(target) {
70
+ try {
71
+ let node = target;
72
+ while (node) {
73
+ if (headerState(node))
74
+ return node;
75
+ node = node.parent;
76
+ }
77
+ }
78
+ catch {
79
+ return;
80
+ }
81
+ }
82
+ /** Every mounted group header, in render order. Offscreen rows are included while still mounted. */
83
+ export function collectHeaders(root) {
84
+ const headers = [];
85
+ const seen = new Set();
86
+ const walk = (node) => {
87
+ if (node.isDestroyed)
88
+ return;
89
+ const state = headerState(node);
90
+ if (state && !seen.has(node)) {
91
+ seen.add(node);
92
+ headers.push(state);
93
+ }
94
+ let children = [];
95
+ try {
96
+ children = node.getChildren?.() ?? [];
97
+ }
98
+ catch {
99
+ return;
100
+ }
101
+ for (const child of children)
102
+ walk(child);
103
+ };
104
+ walk(root);
105
+ return headers;
106
+ }
107
+ /** The same synthetic mouse-up a real header click delivers, invoked on the header node. */
108
+ export function clickHeader(node) {
109
+ node.processMouseEvent?.({
110
+ type: "up",
111
+ button: 0,
112
+ x: 0,
113
+ y: 0,
114
+ propagationStopped: false,
115
+ defaultPrevented: false,
116
+ stopPropagation() {
117
+ this.propagationStopped = true;
118
+ },
119
+ preventDefault() {
120
+ this.defaultPrevented = true;
121
+ },
122
+ });
123
+ }
124
+ export function subtreeText(node) {
125
+ const parts = [];
126
+ const walk = (current) => {
127
+ if (current.isDestroyed)
128
+ return;
129
+ const text = textOf(current);
130
+ if (text)
131
+ parts.push(text);
132
+ let children = [];
133
+ try {
134
+ children = current.getChildren?.() ?? [];
135
+ }
136
+ catch {
137
+ return;
138
+ }
139
+ for (const child of children)
140
+ walk(child);
141
+ };
142
+ walk(node);
143
+ return parts.join(" ").replace(/\s+/g, " ").trim();
144
+ }
145
+ function textOf(node) {
146
+ try {
147
+ const text = node.plainText;
148
+ return typeof text === "string" ? text : "";
149
+ }
150
+ catch {
151
+ return "";
152
+ }
153
+ }
154
+ function numberOr(value, fallback) {
155
+ return typeof value === "number" && Number.isFinite(value) ? value : fallback;
156
+ }
@@ -0,0 +1,17 @@
1
+ import { Plugin } from "@opencode/plugin";
2
+ import { collapseTranscriptEnabled } from "./options.js";
3
+ /**
4
+ * The feature lives in the TUI half (`./tui`). Keep a server half so the package can also be
5
+ * loaded from `opencode.jsonc` without doing any work there.
6
+ */
7
+ export default Plugin.define({
8
+ id: "max10240.collapse-transcript",
9
+ setup(context) {
10
+ if (!collapseTranscriptEnabled(context.options))
11
+ return;
12
+ return setupCollapseTranscript(context);
13
+ },
14
+ });
15
+ export async function setupCollapseTranscript(_context) {
16
+ return async () => { };
17
+ }
@@ -0,0 +1,11 @@
1
+ export const FEATURE_KEY = "collapseTranscript";
2
+ /** Enabled by default; `features.collapseTranscript: false` or `enabled: false` disables it. */
3
+ export function collapseTranscriptEnabled(raw) {
4
+ if (raw.enabled === false)
5
+ return false;
6
+ const features = raw.features;
7
+ return !(isRecord(features) && features[FEATURE_KEY] === false);
8
+ }
9
+ function isRecord(value) {
10
+ return typeof value === "object" && value !== null && !Array.isArray(value);
11
+ }
@@ -0,0 +1,262 @@
1
+ // @bun
2
+ // src/tui.tsx
3
+ import { createComponent as _$createComponent } from "@opentui/solid";
4
+ import { effect as _$effect } from "@opentui/solid";
5
+ import { insertNode as _$insertNode } from "@opentui/solid";
6
+ import { insert as _$insert } from "@opentui/solid";
7
+ import { memo as _$memo } from "@opentui/solid";
8
+ import { setProp as _$setProp } from "@opentui/solid";
9
+ import { createElement as _$createElement } from "@opentui/solid";
10
+ import { Plugin } from "@opencode/plugin/tui";
11
+ import { Show, createEffect, createSignal, on } from "solid-js";
12
+ import { clickHeader, collectHeaders, headerAt, isExpanded, isLive } from "./disclosure.js";
13
+ import { collapseTranscriptEnabled } from "./options.js";
14
+ var MAX_COLLAPSE = 200;
15
+ var tui_default = Plugin.define({
16
+ id: "max10240.collapse-transcript.tui",
17
+ setup(context) {
18
+ if (!collapseTranscriptEnabled(context.options))
19
+ return;
20
+ return setupCollapseTranscript(context);
21
+ }
22
+ });
23
+ function setupCollapseTranscript(context) {
24
+ if (!collapseTranscriptEnabled(context.options))
25
+ return () => {};
26
+ const candidate = context.renderer;
27
+ if (!candidate?.root) {
28
+ return () => {};
29
+ }
30
+ const renderer = candidate;
31
+ const scheduleFrame = (callback) => {
32
+ if (typeof renderer.requestAnimationFrame === "function") {
33
+ const handle = renderer.requestAnimationFrame(callback);
34
+ return {
35
+ cancel: () => renderer.cancelAnimationFrame?.(handle)
36
+ };
37
+ }
38
+ if (typeof renderer.on === "function" && typeof renderer.off === "function") {
39
+ let active = true;
40
+ const listener = () => {
41
+ if (!active)
42
+ return;
43
+ active = false;
44
+ renderer.off?.("frame", listener);
45
+ callback();
46
+ };
47
+ renderer.on("frame", listener);
48
+ renderer.requestRender?.();
49
+ return {
50
+ cancel: () => {
51
+ if (!active)
52
+ return;
53
+ active = false;
54
+ renderer.off?.("frame", listener);
55
+ }
56
+ };
57
+ }
58
+ const handle = setTimeout(callback, 16);
59
+ return {
60
+ cancel: () => clearTimeout(handle)
61
+ };
62
+ };
63
+ const [count, setCount] = createSignal(0);
64
+ const [busy, setBusy] = createSignal(false);
65
+ const tracked = new Set;
66
+ const destroyListeners = new Map;
67
+ let activeSessionID;
68
+ let disposed = false;
69
+ let pendingFrame;
70
+ const seedTimers = [];
71
+ function watch(node) {
72
+ if (destroyListeners.has(node))
73
+ return;
74
+ const onDestroyed = () => {
75
+ destroyListeners.delete(node);
76
+ tracked.delete(node);
77
+ updateCount();
78
+ };
79
+ destroyListeners.set(node, onDestroyed);
80
+ node.once?.("destroyed", onDestroyed);
81
+ }
82
+ function unwatch(node) {
83
+ const listener = destroyListeners.get(node);
84
+ if (!listener)
85
+ return;
86
+ destroyListeners.delete(node);
87
+ node.off?.("destroyed", listener);
88
+ }
89
+ function track(node) {
90
+ tracked.add(node);
91
+ watch(node);
92
+ }
93
+ function untrack(node) {
94
+ tracked.delete(node);
95
+ unwatch(node);
96
+ }
97
+ function clearTracked() {
98
+ for (const node of [...tracked])
99
+ untrack(node);
100
+ }
101
+ const nextFrame = () => new Promise((resolve) => {
102
+ if (disposed)
103
+ return resolve();
104
+ scheduleFrame(() => resolve());
105
+ });
106
+ function prune() {
107
+ for (const node of tracked) {
108
+ if (!isLive(node) || !isExpanded(node))
109
+ untrack(node);
110
+ }
111
+ }
112
+ function updateCount() {
113
+ prune();
114
+ setCount(tracked.size);
115
+ }
116
+ function seed() {
117
+ if (disposed)
118
+ return;
119
+ for (const header of collectHeaders(renderer.root)) {
120
+ if (header.expanded)
121
+ track(header.node);
122
+ }
123
+ updateCount();
124
+ }
125
+ function reconcile(node) {
126
+ if (disposed)
127
+ return;
128
+ if (isLive(node) && isExpanded(node))
129
+ track(node);
130
+ else
131
+ untrack(node);
132
+ updateCount();
133
+ }
134
+ function schedule() {
135
+ if (disposed || pendingFrame !== undefined)
136
+ return;
137
+ pendingFrame = scheduleFrame(() => {
138
+ pendingFrame = undefined;
139
+ if (disposed)
140
+ return;
141
+ scheduleFrame(() => {
142
+ if (!disposed)
143
+ seed();
144
+ });
145
+ });
146
+ }
147
+ function activateSession(sessionID) {
148
+ if (disposed)
149
+ return;
150
+ if (activeSessionID !== sessionID) {
151
+ activeSessionID = sessionID;
152
+ clearTracked();
153
+ setCount(0);
154
+ }
155
+ schedule();
156
+ }
157
+ async function collapseAll(sessionID) {
158
+ if (busy() || disposed || sessionID !== activeSessionID)
159
+ return;
160
+ setBusy(true);
161
+ try {
162
+ for (let index = 0;index < MAX_COLLAPSE; index++) {
163
+ if (disposed || sessionID !== activeSessionID)
164
+ break;
165
+ prune();
166
+ const target = [...tracked].find((node) => isExpanded(node));
167
+ if (!target)
168
+ break;
169
+ try {
170
+ clickHeader(target);
171
+ } catch {
172
+ untrack(target);
173
+ }
174
+ await nextFrame();
175
+ await nextFrame();
176
+ }
177
+ } finally {
178
+ clearTracked();
179
+ setCount(0);
180
+ setBusy(false);
181
+ }
182
+ }
183
+ let patched;
184
+ const originalSend = renderer.sendMouseEvent;
185
+ if (originalSend) {
186
+ patched = function(target, event) {
187
+ const isUp = event.type === "up" && event.button === 0;
188
+ const clicked = isUp ? headerAt(target) : undefined;
189
+ const result = originalSend.call(renderer, target, event);
190
+ if (clicked) {
191
+ const session = activeSessionID;
192
+ scheduleFrame(() => {
193
+ scheduleFrame(() => {
194
+ if (session === activeSessionID)
195
+ reconcile(clicked);
196
+ });
197
+ });
198
+ }
199
+ return result;
200
+ };
201
+ renderer.sendMouseEvent = patched;
202
+ }
203
+ function Hint(props) {
204
+ const [hover, setHover] = createSignal(false);
205
+ createEffect(on(() => props.sessionID, (sessionID) => activateSession(sessionID)));
206
+ return _$createComponent(Show, {
207
+ get when() {
208
+ return count() > 0;
209
+ },
210
+ get children() {
211
+ var _el$ = _$createElement("box"), _el$2 = _$createElement("box"), _el$3 = _$createElement("text");
212
+ _$insertNode(_el$, _el$2);
213
+ _$setProp(_el$, "width", "100%");
214
+ _$setProp(_el$, "flexDirection", "row");
215
+ _$setProp(_el$, "justifyContent", "flex-end");
216
+ _$setProp(_el$, "flexShrink", 0);
217
+ _$insertNode(_el$2, _el$3);
218
+ _$setProp(_el$2, "id", "collapse-transcript-hint");
219
+ _$setProp(_el$2, "paddingLeft", 1);
220
+ _$setProp(_el$2, "paddingRight", 1);
221
+ _$setProp(_el$2, "onMouseOver", () => setHover(true));
222
+ _$setProp(_el$2, "onMouseOut", () => setHover(false));
223
+ _$setProp(_el$2, "onMouseUp", (event) => {
224
+ event.stopPropagation();
225
+ collapseAll(props.sessionID);
226
+ });
227
+ _$setProp(_el$3, "wrapMode", "none");
228
+ _$insert(_el$3, (() => {
229
+ var _c$ = _$memo(() => !!busy());
230
+ return () => _c$() ? "Collapsing\u2026" : `Collapse all (${count()})`;
231
+ })());
232
+ _$effect((_$p) => _$setProp(_el$3, "fg", hover() ? context.theme.text.action.secondary.hovered : context.theme.text.action.secondary.base, _$p));
233
+ return _el$;
234
+ }
235
+ });
236
+ }
237
+ const stop = context.ui.slot({
238
+ append: "session.composer.top",
239
+ render: (input) => _$createComponent(Hint, {
240
+ get sessionID() {
241
+ return input.sessionID;
242
+ }
243
+ })
244
+ });
245
+ seedTimers.push(setTimeout(schedule, 250));
246
+ seedTimers.push(setTimeout(schedule, 1000));
247
+ return () => {
248
+ disposed = true;
249
+ for (const timer of seedTimers)
250
+ clearTimeout(timer);
251
+ if (pendingFrame !== undefined)
252
+ pendingFrame.cancel();
253
+ if (patched && renderer.sendMouseEvent === patched)
254
+ renderer.sendMouseEvent = originalSend;
255
+ clearTracked();
256
+ stop();
257
+ };
258
+ }
259
+ export {
260
+ tui_default as default,
261
+ setupCollapseTranscript
262
+ };
package/dist/tui.js ADDED
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ // tui.tsx
3
+ import { default as default2, setupCollapseTranscript } from "./src/tui.js";
4
+ import { collapseTranscriptEnabled, FEATURE_KEY } from "./src/options.js";
5
+ export {
6
+ FEATURE_KEY,
7
+ collapseTranscriptEnabled,
8
+ default2 as default,
9
+ setupCollapseTranscript
10
+ };
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/package.json",
2
3
  "name": "@max10240/opencode-plugin-collapse-transcript",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
4
+ "version": "1.0.48",
5
+ "description": "Collapse every expanded thought and tool group from one hint in the session transcript",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": "./dist/src/index.js",
9
+ "./tui": "./dist/src/tui.js"
10
+ },
11
+ "scripts": {
12
+ "test": "bun test test/*.test.ts && bun test --conditions=browser --preload @opentui/solid/preload test/tui",
13
+ "typecheck": "tsc --noEmit",
14
+ "build": "tsc -p tsconfig.build.json && bun build.mjs",
15
+ "prepack": "node ../../scripts/sync-recommended-rules.mjs && npm run build"
16
+ },
17
+ "files": [
18
+ "dist/**/*.js",
19
+ "README.md",
20
+ "README.zh-CN.md"
21
+ ],
22
+ "keywords": [
23
+ "opencode",
24
+ "opencode-plugin",
25
+ "transcript",
26
+ "collapse",
27
+ "thoughts",
28
+ "tools"
29
+ ],
30
+ "license": "MIT",
31
+ "peerDependencies": {
32
+ "@opencode/plugin": ">=2.2.7",
33
+ "@opentui/core": ">=0.5.10",
34
+ "@opentui/solid": ">=0.5.10",
35
+ "solid-js": ">=1.9.0"
36
+ },
37
+ "devDependencies": {
38
+ "@opencode/plugin": "^2.2.7",
39
+ "@opentui/core": "^0.5.10",
40
+ "@opentui/solid": "^0.5.10",
41
+ "@types/bun": "^1.3.0",
42
+ "@types/node": "^22.0.0",
43
+ "solid-js": "^1.9.15",
44
+ "typescript": "^5.8.2"
45
+ },
46
+ "publishConfig": {
47
+ "registry": "https://registry.npmjs.org/",
48
+ "access": "public"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "git+https://github.com/Max10240/opencode-plugin-unicorn.git",
53
+ "directory": "packages/opencode-plugin-collapse-transcript"
54
+ },
55
+ "peerDependenciesMeta": {
56
+ "@opencode/plugin": {
57
+ "optional": true
58
+ },
59
+ "@opentui/core": {
60
+ "optional": true
61
+ },
62
+ "@opentui/solid": {
63
+ "optional": true
64
+ },
65
+ "solid-js": {
66
+ "optional": true
67
+ }
68
+ }
69
+ }