kibi-mcp 0.17.2 → 0.17.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.
@@ -192,7 +192,7 @@ async function refreshAttachedBranchKbWithRetry(prolog, kbPath, currentStamp, as
192
192
  return postAttachStamp;
193
193
  }
194
194
  function usesBranchKbPath(kbPath) {
195
- return kbPath.includes("/.kb/branches/") || kbPath.includes("\\.kb\\branches\\");
195
+ return (kbPath.includes("/.kb/branches/") || kbPath.includes("\\.kb\\branches\\"));
196
196
  }
197
197
  // implements REQ-008
198
198
  async function ensurePrologUnsafe() {
@@ -25,9 +25,9 @@ import relationshipSchema from "kibi-cli/schemas/relationship";
25
25
  import { Project, ScriptKind } from "ts-morph";
26
26
  import { isMcpDebugEnabled } from "../env.js";
27
27
  import { analyzeSemanticAdvisorInput } from "../semantic-advisor/analyze-prose.js";
28
- import { refreshCoordinatesForSymbolId } from "./symbols.js";
29
- import { attachedBranchKbPath, updateAttachedBranchStamp, } from "../server/session.js";
30
28
  import { readBranchKbStamp } from "../server/kb-freshness.js";
29
+ import { attachedBranchKbPath, updateAttachedBranchStamp, } from "../server/session.js";
30
+ import { refreshCoordinatesForSymbolId } from "./symbols.js";
31
31
  let refreshCoordinatesForSymbolIdImpl = refreshCoordinatesForSymbolId;
32
32
  const ajv = new Ajv({ strict: false });
33
33
  const entitySchemaRecord = entitySchema;
@@ -191,7 +191,8 @@ export async function handleKbUpsert(prolog, args) {
191
191
  let relationshipsCreated = 0;
192
192
  try {
193
193
  if ((args.relationships === undefined ||
194
- (Array.isArray(args.relationships) && args.relationships.length === 0)) &&
194
+ (Array.isArray(args.relationships) &&
195
+ args.relationships.length === 0)) &&
195
196
  args.id) {
196
197
  // Preserve relationships on updates when the request omits relationships
197
198
  // OR provides an empty array. This avoids accidental edge deletion by
@@ -476,7 +477,9 @@ function validateSymbolGranularity(entity, relationships) {
476
477
  const shownNonBehavioral = nonBehavioralNames.slice(0, maxNamesInMessage);
477
478
  const hiddenNonBehavioralCount = nonBehavioralNames.length - shownNonBehavioral.length;
478
479
  const nonBehavioralList = shownNonBehavioral.join(", ") +
479
- (hiddenNonBehavioralCount > 0 ? `, and ${hiddenNonBehavioralCount} more` : "");
480
+ (hiddenNonBehavioralCount > 0
481
+ ? `, and ${hiddenNonBehavioralCount} more`
482
+ : "");
480
483
  const ignoredSymbolsMessage = nonBehavioralNames.length > 0
481
484
  ? ` Non-behavioral symbols in the file were ignored for this decision: ${nonBehavioralList}.`
482
485
  : "";
@@ -653,10 +656,22 @@ async function checkScenarioCoverageGuidance(prolog, relationships, entityType,
653
656
  */
654
657
  async function fetchExistingRelationships(prolog, entityId) {
655
658
  const relTypes = [
656
- "depends_on", "specified_by", "verified_by", "validates",
657
- "implements", "covered_by", "executable_for", "constrained_by",
658
- "constrains", "requires_property", "requires_predicate",
659
- "guards", "publishes", "consumes", "supersedes", "relates_to",
659
+ "depends_on",
660
+ "specified_by",
661
+ "verified_by",
662
+ "validates",
663
+ "implements",
664
+ "covered_by",
665
+ "executable_for",
666
+ "constrained_by",
667
+ "constrains",
668
+ "requires_property",
669
+ "requires_predicate",
670
+ "guards",
671
+ "publishes",
672
+ "consumes",
673
+ "supersedes",
674
+ "relates_to",
660
675
  ];
661
676
  const existing = [];
662
677
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kibi-mcp",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "dependencies": {
5
5
  "@modelcontextprotocol/sdk": "^1.26.0",
6
6
  "ajv": "^8.18.0",
@@ -10,7 +10,7 @@
10
10
  "gray-matter": "^4.0.3",
11
11
  "js-yaml": "^4.1.0",
12
12
  "kibi-cli": "^0.12.7",
13
- "kibi-core": "^0.6.2",
13
+ "kibi-core": "^0.6.4",
14
14
  "mcpcat": "^0.1.12",
15
15
  "ts-morph": "^23.0.0",
16
16
  "zod": "^4.3.6"
@@ -27,10 +27,7 @@
27
27
  "build": "tsc -p tsconfig.json",
28
28
  "prepack": "npm run build"
29
29
  },
30
- "files": [
31
- "dist",
32
- "bin"
33
- ],
30
+ "files": ["dist", "bin"],
34
31
  "engines": {
35
32
  "node": ">=18",
36
33
  "bun": ">=1.0"