kibi-opencode 2.0.0 → 2.0.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 +2 -2
- package/dist/prompt.js +2 -2
- package/dist/risk-classifier.js +1 -1
- package/dist/tui.js +2 -2
- package/dist/version-metadata.json +1 -1
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ The plugin now uses a posture-aware, low-token smart-enforcement model before em
|
|
|
52
52
|
|
|
53
53
|
- **Repo posture detection**: distinguishes `root_active`, `root_partial`, `root_uninitialized`, `vendored_only`, and `hybrid_root_plus_vendored`
|
|
54
54
|
- **Risk classification**: separates `safe_docs_only`, `safe_test_only`, `kb_doc_structural`, `req_policy_candidate`, `behavior_candidate`, `traceability_candidate`, and `manual_kb_edit`
|
|
55
|
-
- **Source-linked Kibi links**: risky code edits (`behavior_candidate`, `traceability_candidate`) prepend a concise list of existing Kibi links (e.g., `- Existing Kibi links: REQ-
|
|
55
|
+
- **Source-linked Kibi links**: risky code edits (`behavior_candidate`, `traceability_candidate`) prepend a concise list of existing Kibi links (e.g., `- Existing Kibi links: REQ-cli-gc, REQ-cli-check`) when 1-3 concrete source-linked KB hits are found in `.kb/symbols.yaml`. Skip on cache hit.
|
|
56
56
|
- **Start-task risky cue**: authoritative risky edits also add a compact Kibi context cue so agents can start with explicit source-linked guidance before acting, while staying inside the same single prompt block and token budget.
|
|
57
57
|
- **Effective mode gating**: `advisory` (default) never blocks; `strict` escalates checks and reminders for `root_active` and `hybrid_root_plus_vendored` postures when `requireRootKbForStrict` is enabled; `hard` fails closed for authoritative roots and linked git worktrees, injecting capability-based recovery steps until the Kibi checkpoint passes. `maintenanceDegraded` overrides everything back to `advisory`.
|
|
58
58
|
- **Low-token prompt policy**: docs-only and test-only edits avoid unnecessary discovery prompts; vendored-only repos suppress operational bootstrap nudges; at most one contextual block is injected per prompt (≤120 words, ≤5 bullets)
|
|
@@ -303,7 +303,7 @@ Disable specific features while keeping others:
|
|
|
303
303
|
|
|
304
304
|
## Troubleshooting
|
|
305
305
|
|
|
306
|
-
If you see a false "workspace needs Kibi bootstrap" warning even though `.kb/manifest.json` and the canonical knowledge lanes exist, this usually means a stale plugin cache. Leftover `.kb/config.json` custom paths are ignored. See [the
|
|
306
|
+
If you see a false "workspace needs Kibi bootstrap" warning even though `.kb/manifest.json` and the canonical knowledge lanes exist, this usually means a stale plugin cache. Leftover `.kb/config.json` custom paths are ignored. See [the troubleshooting guide](https://looted.github.io/kibi/guide/troubleshooting.html#opencode-shows-workspace-needs-kibi-bootstrap-before-the-tui) for recovery steps.
|
|
307
307
|
|
|
308
308
|
## Architecture
|
|
309
309
|
|
package/dist/prompt.js
CHANGED
|
@@ -433,7 +433,7 @@ This keeps domain truths centralized, searchable, and contradiction-safe.`;
|
|
|
433
433
|
Your recent code edit contains a comment that looks like a **technical decision** (tradeoffs, rationale, or architecture choices).
|
|
434
434
|
|
|
435
435
|
**Action**: Instead of inline comments, route this to an ADR entity:
|
|
436
|
-
- Create \`.kb/adr/ADR
|
|
436
|
+
- Create \`.kb/adr/ADR-<decision>.md\` documenting the decision
|
|
437
437
|
- Include context, options considered, and the chosen approach
|
|
438
438
|
- Link to constrained code symbols
|
|
439
439
|
|
|
@@ -444,7 +444,7 @@ This preserves decision context for future maintainers.`;
|
|
|
444
444
|
Your recent code edit contains a comment that looks like **behavior intent** (system capabilities or user-facing requirements).
|
|
445
445
|
|
|
446
446
|
**Action**: Instead of inline comments, route this to a REQ entity:
|
|
447
|
-
- Create \`.kb/requirements/REQ
|
|
447
|
+
- Create \`.kb/requirements/REQ-<area>-<behavior>.md\` (named by the behavior, never the next number) with the behavior description
|
|
448
448
|
- Add SCEN and TEST entities for specification and verification
|
|
449
449
|
- Link code: production uses \`implements\` (symbol→req) for ownership; test code uses \`executable_for\`; \`covered_by\` is coverage evidence only
|
|
450
450
|
|
package/dist/risk-classifier.js
CHANGED
|
@@ -82,7 +82,7 @@ export function classifyRisk(params) {
|
|
|
82
82
|
if (hasDurableComment || !hasTraceability) {
|
|
83
83
|
const reasons = [];
|
|
84
84
|
if (!hasTraceability) {
|
|
85
|
-
reasons.push("Code file contains exports without // implements REQ
|
|
85
|
+
reasons.push("Code file contains exports without // implements REQ-<area>-<behavior> annotation");
|
|
86
86
|
}
|
|
87
87
|
if (hasDurableComment) {
|
|
88
88
|
reasons.push("Durable knowledge comment detected — traceability review recommended");
|
package/dist/tui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"opencode":"2.0.
|
|
1
|
+
{"opencode":"2.0.2","mcp":"2.2.0","cli":"2.2.0","core":"0.14.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kibi-opencode",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Kibi OpenCode plugin - thin adapter to integrate Kibi with OpenCode sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,9 +37,7 @@
|
|
|
37
37
|
"default": "./dist/tui.js"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
"files": [
|
|
41
|
-
"dist"
|
|
42
|
-
],
|
|
40
|
+
"files": ["dist"],
|
|
43
41
|
"engines": {
|
|
44
42
|
"node": ">=22"
|
|
45
43
|
},
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
"@opencode-ai/plugin": "^1.4.7",
|
|
63
61
|
"@opentui/core": "^0.1.99",
|
|
64
62
|
"@opentui/solid": "^0.1.99",
|
|
65
|
-
"kibi-runtime": "^2.0.
|
|
63
|
+
"kibi-runtime": "^2.0.2"
|
|
66
64
|
},
|
|
67
65
|
"devDependencies": {
|
|
68
66
|
"@types/node": "latest",
|