@kaddo/mcp 3.125.0 → 3.126.0

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12121,7 +12121,7 @@ function getPrompt(root, name) {
12121
12121
  }
12122
12122
 
12123
12123
  // src/tools.ts
12124
- import matter23 from "gray-matter";
12124
+ import matter24 from "gray-matter";
12125
12125
 
12126
12126
  // ../cli/dist/core.js
12127
12127
  import fs3 from "fs";
@@ -12166,6 +12166,7 @@ import matter16 from "gray-matter";
12166
12166
  import matter17 from "gray-matter";
12167
12167
  import matter18 from "gray-matter";
12168
12168
  import matter19 from "gray-matter";
12169
+ import matter20 from "gray-matter";
12169
12170
  function exists2(p) {
12170
12171
  return fs3.existsSync(p);
12171
12172
  }
@@ -21395,7 +21396,7 @@ function evaluateInitiativeCompletion(dir, ini) {
21395
21396
  // ../cli/src/core/resource-write.ts
21396
21397
  import fs6 from "fs";
21397
21398
  import path5 from "path";
21398
- import matter20 from "gray-matter";
21399
+ import matter21 from "gray-matter";
21399
21400
  var RESOURCES_DIR = "knowledge/tech/resources";
21400
21401
  var ResourceWriteError = class extends Error {
21401
21402
  constructor(code, message) {
@@ -21475,7 +21476,7 @@ function buildFrontmatter(id, input, base = {}) {
21475
21476
  return data;
21476
21477
  }
21477
21478
  function serialize(data, body) {
21478
- return matter20.stringify(`
21479
+ return matter21.stringify(`
21479
21480
  ${body.trim()}
21480
21481
  `, data);
21481
21482
  }
@@ -21515,7 +21516,7 @@ function updateResource(dir, id, input) {
21515
21516
  throw new ResourceWriteError("VALIDATION_FAILED", findings.filter((f3) => f3.level === "error").map((f3) => f3.message).join("; "));
21516
21517
  }
21517
21518
  const raw = readFile(match.filePath);
21518
- const parsed = matter20(raw);
21519
+ const parsed = matter21(raw);
21519
21520
  const base = parsed.data ?? {};
21520
21521
  const data = buildFrontmatter(match.id || id, input, base);
21521
21522
  let body = parsed.content.trim();
@@ -21748,7 +21749,7 @@ var CANDIDATE_DISCOVERY_GUIDANCE2 = [
21748
21749
  // ../cli/src/core/deprecation-write.ts
21749
21750
  import fs7 from "fs";
21750
21751
  import path6 from "path";
21751
- import matter21 from "gray-matter";
21752
+ import matter23 from "gray-matter";
21752
21753
  var DeprecationWriteError = class extends Error {
21753
21754
  constructor(code, message) {
21754
21755
  super(message);
@@ -21766,7 +21767,7 @@ function atomicWrite2(filePath, content) {
21766
21767
  fs7.renameSync(tmp, filePath);
21767
21768
  }
21768
21769
  function serialize3(data, body) {
21769
- return matter21.stringify(`
21770
+ return matter23.stringify(`
21770
21771
  ${body.trim()}
21771
21772
  `, data);
21772
21773
  }
@@ -21832,7 +21833,7 @@ function validateTargetInput(dir, raw) {
21832
21833
  function loadPlanRaw(dir, planId) {
21833
21834
  const match = allPlanArtifacts(dir).find((a2) => a2.id === planId || a2.title === planId);
21834
21835
  if (!match) throw new DeprecationWriteError("NOT_FOUND", `Deprecation Plan "${planId}" not found.`);
21835
- const parsed = matter21(readFile(match.filePath));
21836
+ const parsed = matter23(readFile(match.filePath));
21836
21837
  const data = { ...parsed.data ?? {} };
21837
21838
  return { filePath: match.filePath, data, body: parsed.content.trim() };
21838
21839
  }
@@ -22020,12 +22021,12 @@ function markWorkItemReady(root, id, confirm2) {
22020
22021
  }
22021
22022
  const raw = readText(root, item.path);
22022
22023
  if (!raw) return fail(`Could not read Work Item file: ${item.path}`);
22023
- const parsed = matter23(raw);
22024
+ const parsed = matter24(raw);
22024
22025
  const data = { ...parsed.data };
22025
22026
  const today3 = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
22026
22027
  data.status = "ready";
22027
22028
  data.ready_at = today3;
22028
- const newContent = matter23.stringify(parsed.content, data);
22029
+ const newContent = matter24.stringify(parsed.content, data);
22029
22030
  const posixPath = item.path.replace(/\\/g, "/");
22030
22031
  let newRelPath = item.path;
22031
22032
  if (posixPath.includes("/work-items/draft/")) {
@@ -22320,7 +22321,7 @@ function removeDeprecationTargetTool(root, planId, targetId, confirm2) {
22320
22321
  // src/multirepo.ts
22321
22322
  import fs8 from "fs";
22322
22323
  import path7 from "path";
22323
- import matter24 from "gray-matter";
22324
+ import matter25 from "gray-matter";
22324
22325
  import { parse as parseYaml12, stringify as stringifyYaml8 } from "yaml";
22325
22326
  var ok2 = (data) => ({ ok: true, data });
22326
22327
  var fail2 = (message) => ({ ok: false, message });
@@ -22472,7 +22473,7 @@ function validateWorkItemModulesTool(root, args) {
22472
22473
  if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
22473
22474
  const raw = readText(root, wi.path);
22474
22475
  if (!raw) return fail2(`Could not read Work Item file.`);
22475
- const parsed = matter24(raw);
22476
+ const parsed = matter25(raw);
22476
22477
  const data = parsed.data;
22477
22478
  const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
22478
22479
  const codeEntries = Array.isArray(data.code) ? data.code.filter((c) => typeof c === "object" && c !== null).map((c) => ({ repo: typeof c.repo === "string" ? c.repo : void 0, paths: Array.isArray(c.paths) ? c.paths.map(String) : [] })) : [];
@@ -22525,7 +22526,7 @@ function getWorkItemContextTool(root, args) {
22525
22526
  if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
22526
22527
  const raw = readText(root, wi.path);
22527
22528
  if (!raw) return fail2(`Could not read Work Item file.`);
22528
- const parsed = matter24(raw);
22529
+ const parsed = matter25(raw);
22529
22530
  const data = parsed.data;
22530
22531
  const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
22531
22532
  const codeEntries = Array.isArray(data.code) ? data.code.filter((c) => typeof c === "object" && c !== null).map((c) => ({ repo: typeof c.repo === "string" ? c.repo : void 0, paths: Array.isArray(c.paths) ? c.paths.map(String) : [] })) : [];
@@ -22611,7 +22612,7 @@ function suggestBranchStrategyTool(root, args) {
22611
22612
  if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
22612
22613
  const raw = readText(root, wi.path);
22613
22614
  if (!raw) return fail2(`Could not read Work Item file.`);
22614
- const parsed = matter24(raw);
22615
+ const parsed = matter25(raw);
22615
22616
  const data = parsed.data;
22616
22617
  const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
22617
22618
  const codeEntries = Array.isArray(data.code) ? data.code.filter((c) => typeof c === "object" && c !== null).map((c) => ({ repo: typeof c.repo === "string" ? c.repo : void 0, paths: Array.isArray(c.paths) ? c.paths.map(String) : [] })) : [];
@@ -23371,14 +23372,14 @@ function systemImpactCandidatesTool(root, args) {
23371
23372
  }
23372
23373
 
23373
23374
  // ../cli/src/services/integrations.ts
23374
- import matter26 from "gray-matter";
23375
+ import matter27 from "gray-matter";
23375
23376
  import { parse as parseYaml14, stringify as stringifyYaml10 } from "yaml";
23376
23377
 
23377
23378
  // ../cli/src/core/work-item-write.ts
23378
23379
  import fs10 from "fs";
23379
23380
  import path9 from "path";
23380
23381
  import crypto4 from "crypto";
23381
- import matter25 from "gray-matter";
23382
+ import matter26 from "gray-matter";
23382
23383
  var SECTION_ORDER2 = [
23383
23384
  "Actor",
23384
23385
  "Outcome",
@@ -24426,7 +24427,7 @@ async function integrationsWorkItemTool(root, args) {
24426
24427
  }
24427
24428
 
24428
24429
  // ../cli/src/core/context-pack.ts
24429
- import matter27 from "gray-matter";
24430
+ import matter28 from "gray-matter";
24430
24431
  var CONTEXT_PACK_VERSION = "1";
24431
24432
  var ARCH_DIR4 = "knowledge";
24432
24433
  function readScanJson(dir) {
@@ -24439,7 +24440,7 @@ function readScanJson(dir) {
24439
24440
  }
24440
24441
  }
24441
24442
  function firstParagraph4(markdown) {
24442
- const body = matter27(markdown).content.trim();
24443
+ const body = matter28(markdown).content.trim();
24443
24444
  const para = body.split("\n\n").map((p) => p.trim()).find((p) => p && !p.startsWith("#"));
24444
24445
  return para ?? "";
24445
24446
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/mcp",
3
- "version": "3.125.0",
3
+ "version": "3.126.0",
4
4
  "description": "MCP server for Kaddo project knowledge: read-only resources/tools/prompts plus safe derived generation under .kaddo/.",
5
5
  "license": "MIT",
6
6
  "repository": {