kibi-opencode 0.19.1 → 0.19.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.
@@ -194,8 +194,9 @@ function hardBlockText(events) {
194
194
  ...pathLines,
195
195
  ...evidenceNotes,
196
196
  "Capability-based checkpoint instructions:",
197
- "- If Kibi MCP tools are visible, use MCP.",
198
- "- If MCP availability is unknown and a trusted local Kibi CLI is available, use its dedicated JSON routes with `--input <file|->`.",
197
+ "- MCP tools and the trusted project-local CLI are peer surfaces over the same 18 operations; choose by what is visible and approved here.",
198
+ "- If Kibi MCP tools are visible and approved, use MCP.",
199
+ "- Otherwise, in a trusted workspace, use the project-local CLI's dedicated JSON routes with `--input <file|->`.",
199
200
  "- If neither interface is available, Kibi operation is blocked; tell the operator to enable MCP or the trusted project-local CLI.",
200
201
  "- Do not infer MCP availability from config file existence. Do not read or edit `.kb/` files directly.",
201
202
  "- Query before mutate. Run `kb_upsert` sequentially. Run `kb_check` before completion.",
@@ -33,8 +33,9 @@ export function buildInitKibiAlias() {
33
33
  "",
34
34
  "## Rules",
35
35
  "- Never apply changes without a user-facing preview and approval.",
36
- "- Prefer MCP tools; CLI routes are available when MCP is unavailable.",
37
- "- If MCP availability is unknown and a trusted local Kibi CLI is available, use its dedicated JSON routes with `--input <file|->`. If neither interface is available, stop and tell the operator.",
36
+ "- MCP tools and the trusted project-local CLI are peer surfaces; choose by what is visible and approved here.",
37
+ "- If Kibi MCP tools are visible and approved, use MCP.",
38
+ "- Otherwise, in a trusted workspace, use the project-local CLI's dedicated JSON routes with `--input <file|->`. If neither interface is available, stop and tell the operator.",
38
39
  "- Do not infer MCP availability from config file existence. Do not read or edit `.kb/` files directly.",
39
40
  "- Query before mutate. Run `kb_upsert` sequentially. Run `kb_check` before completion.",
40
41
  ];
package/dist/prompt.js CHANGED
@@ -66,7 +66,7 @@ function buildBootstrapRequiredBody(capability = getInitKibiCommandCapability())
66
66
  const commandBullet = capability.supported
67
67
  ? "- When the Kibi OpenCode plugin is active and native injection is supported, use `/init-kibi` as the canonical short alias; `/kibi:init-kibi:mcp` remains the namespaced MCP fallback."
68
68
  : "- This host does not support native `/init-kibi` injection. Kibi must fail closed and does not register a fake native alias; use `/kibi:init-kibi:mcp` instead.";
69
- return `Kibi capability selection:\n1. If Kibi MCP tools are visible, use MCP.\n2. If MCP availability is unknown and a trusted local Kibi CLI is available, use its dedicated JSON routes with \`--input <file|->\`.\n3. If neither interface is available, Kibi operation is blocked; tell the operator.\nDo not infer MCP availability from config file existence. Do not read or edit \`.kb/\` files directly. Query before mutate. Run \`kb_upsert\` sequentially. Run \`kb_check\` before completion.\n\nThis repository does not appear to have Kibi initialized. Agents should:\n${commandBullet}\n- The workflow uses \`kb_autopilot_generate\` for read-only synthesis; always preview and get approval before writes.\n- Ask the operator to handle setup or repair if bootstrap is insufficient.\n- Load \`kibi-usage\` with \`kb_skills_load\` for comprehensive guidance.`;
69
+ return `Kibi capability selection (MCP tools and the trusted project-local CLI are peer surfaces over the same 18 operations):\n1. If Kibi MCP tools are visible and approved, use MCP.\n2. Otherwise, in a trusted workspace, use the project-local CLI's dedicated JSON routes with \`--input <file|->\`.\n3. If neither interface is available, Kibi operation is blocked; tell the operator.\nDo not infer MCP availability from config file existence. Do not read or edit \`.kb/\` files directly. Query before mutate. Run \`kb_upsert\` sequentially. Run \`kb_check\` before completion.\n\nThis repository does not appear to have Kibi initialized. Agents should:\n${commandBullet}\n- The workflow uses \`kb_autopilot_generate\` for read-only synthesis; always preview and get approval before writes.\n- Ask the operator to handle setup or repair if bootstrap is insufficient.\n- Load \`kibi-usage\` with \`kb_skills_load\` for comprehensive guidance.`;
70
70
  }
71
71
  function buildHardGateBlock(block) {
72
72
  const pathLines = block.shownPaths.map((path) => `- \`${path}\``);
@@ -81,8 +81,9 @@ function buildHardGateBlock(block) {
81
81
  "Affected files:",
82
82
  ...pathLines,
83
83
  "Capability-based recovery steps:",
84
- "- If Kibi MCP tools are visible, use MCP.",
85
- "- If MCP availability is unknown and a trusted local Kibi CLI is available, use its dedicated JSON routes with `--input <file|->`.",
84
+ "- MCP tools and the trusted project-local CLI are peer surfaces over the same 18 operations; choose by what is visible and approved here.",
85
+ "- If Kibi MCP tools are visible and approved, use MCP.",
86
+ "- Otherwise, in a trusted workspace, use the project-local CLI's dedicated JSON routes with `--input <file|->`.",
86
87
  "- If neither interface is available, Kibi operation is blocked; tell the operator to enable MCP or the trusted project-local CLI.",
87
88
  "- Do not infer MCP availability from config file existence. Do not read or edit `.kb/` files directly.",
88
89
  "- Query before mutate. Run `kb_upsert` sequentially. Run `kb_check` before completion.",
@@ -125,7 +126,7 @@ Production code: use \`implements\` (symbol→req) for requirement ownership. Te
125
126
  - documentation/symbols.yaml refresh is required when extraction output changes; do not revert as scope creep`,
126
127
  manual_kb_edit: `⚠️ **WARNING: Direct .kb/ edits bypass validation**
127
128
 
128
- The Kibi knowledge base is managed through visible MCP tools or trusted project-local CLI JSON routes when MCP is unavailable. Do not read or edit \`.kb/\` files directly.
129
+ The Kibi knowledge base is managed through visible MCP tools or the trusted project-local CLI — peer surfaces over the same 18 operations. Do not read or edit \`.kb/\` files directly.
129
130
  - Query before mutate and run kb_upsert sequentially
130
131
  - Use kb_upsert to create/update entities
131
132
  - Use kb_delete to remove entities
@@ -485,9 +486,9 @@ Before changing behavior: use kb_search for discovery, then kb_query by sourceFi
485
486
 
486
487
  Keep changed symbols traceable: production code uses \`implements\` (symbol→req) for ownership; test code uses \`executable_for\`; \`covered_by\` is coverage evidence only. Inline \`// implements REQ-xxx\` comments remain backward-compatible.
487
488
 
488
- Kibi capability selection:
489
- 1. If Kibi MCP tools are visible, use MCP.
490
- 2. If MCP availability is unknown and a trusted local Kibi CLI is available, use its dedicated JSON routes with \`--input <file|->\`.
489
+ Kibi capability selection (MCP tools and the trusted project-local CLI are peer surfaces over the same 18 operations):
490
+ 1. If Kibi MCP tools are visible and approved, use MCP.
491
+ 2. Otherwise, in a trusted workspace, use the project-local CLI's dedicated JSON routes with \`--input <file|->\`.
491
492
  3. If neither interface is available, Kibi operation is blocked; tell the operator to enable MCP or the trusted project-local CLI.
492
493
  Do not infer MCP availability from config file existence. Do not read or edit \`.kb/\` files directly. Query before mutate. Run \`kb_upsert\` sequentially. Run \`kb_check\` before completion.
493
494
 
@@ -1 +1 @@
1
- {"opencode":"0.19.1","mcp":"0.19.2","cli":"0.16.1","core":"0.7.1"}
1
+ {"opencode":"0.19.2","mcp":"0.20.1","cli":"0.17.0","core":"0.8.1"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kibi-opencode",
3
- "version": "0.19.1",
3
+ "version": "0.19.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",
@@ -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.16.0"
63
+ "kibi-cli": "^0.17.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "latest",