@gamflaz/opencode-todolist 1.0.4 → 1.0.5

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/dist/tui.jsx ADDED
@@ -0,0 +1,20 @@
1
+ import { Plugin } from "@opencode/plugin/tui";
2
+ import { TodoProgress } from "./tui/todo-panel";
3
+ export default Plugin.define({
4
+ id: "opencode.todolist.tui",
5
+ setup(context) {
6
+ const releaseSlot = context.ui.slot({
7
+ append: "session.composer.top",
8
+ render: (props) => {
9
+ const directory = context.data.session.get(props.sessionID)?.location
10
+ .directory;
11
+ if (!directory)
12
+ return null;
13
+ return <TodoProgress context={context} sessionID={props.sessionID}/>;
14
+ },
15
+ });
16
+ return () => {
17
+ releaseSlot();
18
+ };
19
+ },
20
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamflaz/opencode-todolist",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Hierarchical todo list plugin for OpenCode with a real-time TUI widget.",
5
5
  "type": "module",
6
6
  "files": [
@@ -40,8 +40,9 @@
40
40
  "url": "https://github.com/MomoPi-Dark/opencode-todolist"
41
41
  },
42
42
  "scripts": {
43
+ "build": "tsc -p tsconfig.build.json",
43
44
  "prepare": "bun run compile",
44
- "compile": "tsc -p tsconfig.build.json && node scripts/build-jsx.mjs",
45
+ "compile": "bun run build && node scripts/build-jsx.mjs",
45
46
  "build:jsx": "node scripts/build-jsx.mjs",
46
47
  "dev": "tsc-watch -p tsconfig.build.json --onSuccess \"node scripts/build-jsx.mjs\"",
47
48
  "test": "bun test/todo.test.ts",
@@ -64,5 +65,9 @@
64
65
  "proper-lockfile": "^4.1.2",
65
66
  "solid-js": "1.9.12",
66
67
  "zod": "^4.6.6"
68
+ },
69
+ "peerDependencies": {
70
+ "@opentui/solid": ">=0.5.17",
71
+ "solid-js": ">=1.9.12"
67
72
  }
68
73
  }