kibi-opencode 0.15.1 → 0.15.4
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 +15 -4
- package/dist/init-kibi-alias.js +3 -1
- package/dist/version-metadata.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
OpenCode plugin for Kibi - repo-local, per-branch, queryable knowledge base.
|
|
4
4
|
|
|
5
|
+
`kibi-opencode` is optional. It provides OpenCode-specific guidance, startup UX,
|
|
6
|
+
and background sync/check maintenance, but it does not ship a replacement `kibi`
|
|
7
|
+
CLI or `kibi-mcp` server binary. Install and configure the base `kibi-cli`,
|
|
8
|
+
`kibi-mcp`, and `kibi-core` packages in the project first; add this plugin only
|
|
9
|
+
when you want OpenCode-specific behavior.
|
|
10
|
+
|
|
5
11
|
## Installation
|
|
6
12
|
|
|
7
13
|
```bash
|
|
@@ -16,6 +22,11 @@ Or via OpenCode's plugin system in `opencode.json`:
|
|
|
16
22
|
}
|
|
17
23
|
```
|
|
18
24
|
|
|
25
|
+
Configure the MCP server separately with the project-local `kibi-mcp` binary.
|
|
26
|
+
The plugin may run internal maintenance commands such as `kibi sync` and
|
|
27
|
+
`kibi check`, so the project-local `kibi` CLI should resolve from the OpenCode
|
|
28
|
+
process environment.
|
|
29
|
+
|
|
19
30
|
## Features
|
|
20
31
|
|
|
21
32
|
### Smart Enforcement
|
|
@@ -127,6 +138,8 @@ The plugin injects guidance into OpenCode sessions to improve agent grounding. U
|
|
|
127
138
|
|
|
128
139
|
OpenCode exposes Kibi MCP prompts as slash commands. The \`/init-kibi\` command triggers the \`kb_autopilot_generate\` workflow to assist in retroactive bootstrap using only public MCP tools.
|
|
129
140
|
|
|
141
|
+
OpenCode may show Kibi MCP tools with the configured server prefix. For example, canonical MCP names such as `kb_autopilot_generate`, `kb_upsert`, and `kb_check` can appear to agents as `kibi_kb_autopilot_generate`, `kibi_kb_upsert`, and `kibi_kb_check`. Use the visible `kibi_kb_*` identifier when OpenCode requires an exact tool name; it maps to the same MCP operation.
|
|
142
|
+
|
|
130
143
|
### Discovery-first MCP guidance
|
|
131
144
|
|
|
132
145
|
Agent-visible guidance is intentionally limited to the curated public MCP surface:
|
|
@@ -134,6 +147,8 @@ Agent-visible guidance is intentionally limited to the curated public MCP surfac
|
|
|
134
147
|
- Discovery/reporting: `kb_search`, `kb_query`, `kb_status`, `kb_find_gaps`, `kb_coverage`, `kb_graph`
|
|
135
148
|
- Mutation/validation: `kb_upsert`, `kb_delete`, `kb_check`
|
|
136
149
|
|
|
150
|
+
In OpenCode tool pickers or logs, these may be displayed with the `kibi_` server prefix, for example `kibi_kb_search` or `kibi_kb_upsert`.
|
|
151
|
+
|
|
137
152
|
The plugin guidance prefers `kb_search` for broad discovery, then `kb_query` for exact/source-linked follow-up.
|
|
138
153
|
|
|
139
154
|
### Background Sync Operations
|
|
@@ -265,10 +280,6 @@ Disable specific features while keeping others:
|
|
|
265
280
|
}
|
|
266
281
|
```
|
|
267
282
|
|
|
268
|
-
## Dogfooding
|
|
269
|
-
|
|
270
|
-
This repository's OpenCode setup dogfoods local built artifacts. `opencode.json` starts the local `kibi-mcp` server, `.opencode/plugins/kibi.ts` re-exports `packages/opencode/dist/index.js`, and the published npm package (`kibi-opencode`) remains the distribution artifact for external consumers. See [DEV.md](DEV.md) for the repo-local workflow and rebuild rule.
|
|
271
|
-
|
|
272
283
|
## Troubleshooting
|
|
273
284
|
|
|
274
285
|
If you see a false "workspace needs Kibi bootstrap" warning even though your workspace is already initialized with `.kb/config.json` pointing at relocated `kibi-docs/*` paths, this indicates a stale plugin cache. See [the main troubleshooting docs](../../docs/troubleshooting.md#opencode-shows-workspace-needs-kibi-bootstrap-before-the-tui) for recovery steps.
|
package/dist/init-kibi-alias.js
CHANGED
|
@@ -22,9 +22,11 @@ export function buildInitKibiAlias() {
|
|
|
22
22
|
"",
|
|
23
23
|
"## 2. Synthesize Candidates",
|
|
24
24
|
"Call `kb_autopilot_generate` with the gathered context to synthesize candidate entities. This tool is **read-only**.",
|
|
25
|
+
"In OpenCode, Kibi MCP tools are host-prefixed: canonical `kb_autopilot_generate`, `kb_upsert`, and `kb_check` may appear as `kibi_kb_autopilot_generate`, `kibi_kb_upsert`, and `kibi_kb_check`.",
|
|
26
|
+
"OpenCode prefixes Kibi MCP tools with `kibi_`; use the visible prefixed name when the host requires exact tool identifiers.",
|
|
25
27
|
"",
|
|
26
28
|
"## 3. Preview and Approval",
|
|
27
|
-
"Present the `promptBlock
|
|
29
|
+
"Present the `promptBlock`, a summary of synthesized `candidates`, and the exact `applyPlan` payloads to the user. **Wait for explicit approval** before proceeding to writes.",
|
|
28
30
|
"",
|
|
29
31
|
"## 4. Apply Approved Candidates",
|
|
30
32
|
"Apply approved candidates sequentially using `kb_upsert` (following ascending phase order). Confirm success of each write before moving to the next. Run `kb_check` after the batch to verify KB integrity.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"opencode":"0.15.
|
|
1
|
+
{"opencode":"0.15.4","mcp":"0.15.3","cli":"0.12.3","core":"0.6.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kibi-opencode",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"description": "Kibi OpenCode plugin - thin adapter to integrate Kibi with OpenCode sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@opencode-ai/plugin": "^1.4.7",
|
|
61
61
|
"@opentui/core": "^0.1.99",
|
|
62
62
|
"@opentui/solid": "^0.1.99",
|
|
63
|
-
"kibi-cli": "^0.
|
|
63
|
+
"kibi-cli": "^0.12.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/node": "latest",
|