@dibs.ai/opencode 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/README.md +4 -4
- package/package.json +1 -1
- package/plugin/tui.tsx +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 `bunx @dibs.ai/dibs` if `dibs` is not on your PATH.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -22,15 +22,15 @@ 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 `bunx`. Add this to `opencode.json`:
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
|
-
{"mcp":{"dibs":{"type":"local","command":["dibs","mcp"]}}}
|
|
28
|
+
{"mcp":{"dibs":{"type":"local","command":["bunx","@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"] }
|
package/package.json
CHANGED
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("bunx", 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
|
})
|