@dibs.ai/opencode 0.1.0 → 0.1.2
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 +6 -6
- package/package.json +2 -2
- package/plugin/tui.tsx +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# dibs for opencode
|
|
2
2
|
|
|
3
|
-
opencode loads skills from `skills/<id>/SKILL.md`, so it uses the shared `dibs` skill unchanged. The skill calls the CLI,
|
|
3
|
+
opencode loads skills from `skills/<id>/SKILL.md`, so it uses the shared `dibs` skill unchanged. The skill calls the CLI, which runs as `npx -y @dibs.ai/dibs` if `dibs` is not on your PATH.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
|
|
8
|
+
nub run build:agent opencode # writes dist/opencode/skills/dibs/SKILL.md
|
|
9
9
|
|
|
10
10
|
# project-local
|
|
11
11
|
mkdir -p .opencode/skills && cp -R dist/opencode/skills/dibs .opencode/skills/
|
|
@@ -22,20 +22,20 @@ Docs: https://opencode.ai/docs/skills/ (opencode also scans `.claude/skills` and
|
|
|
22
22
|
|
|
23
23
|
## Tools (MCP)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
The MCP server runs the CLI through `npx -y`. Add this to `opencode.json`:
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
|
-
{"mcp":{"dibs":{"type":"local","command":["dibs","mcp"]}}}
|
|
28
|
+
{"mcp":{"dibs":{"type":"local","command":["npx","-y","@dibs.ai/dibs","mcp"]}}}
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Task panel
|
|
32
32
|
|
|
33
|
-
A live task panel (views `current`/`project`/`completed`, like the Pi panel) shown above the prompt.
|
|
33
|
+
A live task panel (views `current`/`project`/`completed`, like the Pi panel) shown above the prompt. It is a TUI-only plugin, so add it to `cli.json` (docs: https://opencode.ai/docs/cli/plugins):
|
|
34
34
|
|
|
35
35
|
```json
|
|
36
36
|
{ "plugins": ["/absolute/path/to/dibs/agents/opencode/plugin/tui.tsx"] }
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Local plugin entries are documented as directories or package names; if the file path is rejected, point at `/absolute/path/to/dibs/agents/opencode` (its `package.json` exports `./tui`). Install peers there first: `cd agents/opencode &&
|
|
39
|
+
Local plugin entries are documented as directories or package names; if the file path is rejected, point at `/absolute/path/to/dibs/agents/opencode` (its `package.json` exports `./tui`). Install peers there first: `cd agents/opencode && nub add @opencode/plugin @opentui/core @opentui/solid solid-js`.
|
|
40
40
|
|
|
41
41
|
Keys: `ctrl+shift+v` cycles the view, `ctrl+shift+t` collapses (also `/tasks-view`, `/tasks-toggle`, and the command palette). The panel refreshes every 3 s and after any event mentioning a `todo_*` tool. Not verified against a running opencode.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dibs.ai/opencode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "opencode TUI plugin for dibs: task panel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
"url": "git+https://github.com/arobida/dibs.git",
|
|
32
32
|
"directory": "agents/opencode"
|
|
33
33
|
}
|
|
34
|
-
}
|
|
34
|
+
}
|
package/plugin/tui.tsx
CHANGED
|
@@ -22,8 +22,8 @@ export default Plugin.define({
|
|
|
22
22
|
const cwd = (context.location as any)?.directory ?? process.cwd()
|
|
23
23
|
|
|
24
24
|
const refresh = () => {
|
|
25
|
-
const args = ["panel", view(), "--json", ...(mine.size ? ["--mine", [...mine].join(",")] : [])]
|
|
26
|
-
execFile("
|
|
25
|
+
const args = ["@dibs.ai/dibs", "panel", view(), "--json", ...(mine.size ? ["--mine", [...mine].join(",")] : [])]
|
|
26
|
+
execFile("npx", ["-y", ...args], { cwd }, (err, out) => {
|
|
27
27
|
if (err) return setPanel(null) // fail silently
|
|
28
28
|
try { setPanel(JSON.parse(out)) } catch { setPanel(null) }
|
|
29
29
|
})
|