@kaddo/mcp 3.104.0 → 3.105.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.
- package/dist/index.js +24 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10783,7 +10783,7 @@ function getPrompt(root, name) {
|
|
|
10783
10783
|
}
|
|
10784
10784
|
|
|
10785
10785
|
// src/tools.ts
|
|
10786
|
-
import
|
|
10786
|
+
import matter12 from "gray-matter";
|
|
10787
10787
|
|
|
10788
10788
|
// ../cli/dist/core.js
|
|
10789
10789
|
import fs3 from "fs";
|
|
@@ -10816,6 +10816,8 @@ import matter82 from "gray-matter";
|
|
|
10816
10816
|
import matter92 from "gray-matter";
|
|
10817
10817
|
import { parse as parseYaml92, stringify as stringifyYaml5 } from "yaml";
|
|
10818
10818
|
import { parse as parseYaml102, stringify as stringifyYaml6 } from "yaml";
|
|
10819
|
+
import matter102 from "gray-matter";
|
|
10820
|
+
import matter11 from "gray-matter";
|
|
10819
10821
|
function exists2(p) {
|
|
10820
10822
|
return fs3.existsSync(p);
|
|
10821
10823
|
}
|
|
@@ -18579,6 +18581,17 @@ function getStatus(dir) {
|
|
|
18579
18581
|
lastError: null
|
|
18580
18582
|
};
|
|
18581
18583
|
}
|
|
18584
|
+
var INITIATIVE_STATES = [
|
|
18585
|
+
"candidate",
|
|
18586
|
+
"planned",
|
|
18587
|
+
"in-progress",
|
|
18588
|
+
"completed",
|
|
18589
|
+
"deferred",
|
|
18590
|
+
"cancelled"
|
|
18591
|
+
];
|
|
18592
|
+
var STATUS_SET = new Set(INITIATIVE_STATES);
|
|
18593
|
+
var WORK_ITEMS_DIR2 = "knowledge/delivery/work-items";
|
|
18594
|
+
var DRAFT_DIR = `${WORK_ITEMS_DIR2}/draft`;
|
|
18582
18595
|
|
|
18583
18596
|
// src/tools.ts
|
|
18584
18597
|
var ok = (data) => ({ ok: true, data });
|
|
@@ -18675,12 +18688,12 @@ function markWorkItemReady(root, id, confirm2) {
|
|
|
18675
18688
|
}
|
|
18676
18689
|
const raw = readText(root, item.path);
|
|
18677
18690
|
if (!raw) return fail(`Could not read Work Item file: ${item.path}`);
|
|
18678
|
-
const parsed =
|
|
18691
|
+
const parsed = matter12(raw);
|
|
18679
18692
|
const data = { ...parsed.data };
|
|
18680
18693
|
const today2 = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
18681
18694
|
data.status = "ready";
|
|
18682
18695
|
data.ready_at = today2;
|
|
18683
|
-
const newContent =
|
|
18696
|
+
const newContent = matter12.stringify(parsed.content, data);
|
|
18684
18697
|
const posixPath = item.path.replace(/\\/g, "/");
|
|
18685
18698
|
let newRelPath = item.path;
|
|
18686
18699
|
if (posixPath.includes("/work-items/draft/")) {
|
|
@@ -18847,7 +18860,7 @@ function setTelemetryConsentTool(root, args) {
|
|
|
18847
18860
|
// src/multirepo.ts
|
|
18848
18861
|
import fs5 from "fs";
|
|
18849
18862
|
import path4 from "path";
|
|
18850
|
-
import
|
|
18863
|
+
import matter13 from "gray-matter";
|
|
18851
18864
|
import { parse as parseYaml11, stringify as stringifyYaml7 } from "yaml";
|
|
18852
18865
|
var ok2 = (data) => ({ ok: true, data });
|
|
18853
18866
|
var fail2 = (message) => ({ ok: false, message });
|
|
@@ -18999,7 +19012,7 @@ function validateWorkItemModulesTool(root, args) {
|
|
|
18999
19012
|
if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
|
|
19000
19013
|
const raw = readText(root, wi.path);
|
|
19001
19014
|
if (!raw) return fail2(`Could not read Work Item file.`);
|
|
19002
|
-
const parsed =
|
|
19015
|
+
const parsed = matter13(raw);
|
|
19003
19016
|
const data = parsed.data;
|
|
19004
19017
|
const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
|
|
19005
19018
|
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) : [] })) : [];
|
|
@@ -19052,7 +19065,7 @@ function getWorkItemContextTool(root, args) {
|
|
|
19052
19065
|
if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
|
|
19053
19066
|
const raw = readText(root, wi.path);
|
|
19054
19067
|
if (!raw) return fail2(`Could not read Work Item file.`);
|
|
19055
|
-
const parsed =
|
|
19068
|
+
const parsed = matter13(raw);
|
|
19056
19069
|
const data = parsed.data;
|
|
19057
19070
|
const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
|
|
19058
19071
|
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) : [] })) : [];
|
|
@@ -19138,7 +19151,7 @@ function suggestBranchStrategyTool(root, args) {
|
|
|
19138
19151
|
if (!wi) return fail2(`Work Item "${args.workItemId}" not found.`);
|
|
19139
19152
|
const raw = readText(root, wi.path);
|
|
19140
19153
|
if (!raw) return fail2(`Could not read Work Item file.`);
|
|
19141
|
-
const parsed =
|
|
19154
|
+
const parsed = matter13(raw);
|
|
19142
19155
|
const data = parsed.data;
|
|
19143
19156
|
const affectedModules = Array.isArray(data.affected_modules) ? data.affected_modules.map(String) : [];
|
|
19144
19157
|
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) : [] })) : [];
|
|
@@ -19898,14 +19911,14 @@ function systemImpactCandidatesTool(root, args) {
|
|
|
19898
19911
|
}
|
|
19899
19912
|
|
|
19900
19913
|
// ../cli/src/services/integrations.ts
|
|
19901
|
-
import
|
|
19914
|
+
import matter15 from "gray-matter";
|
|
19902
19915
|
import { parse as parseYaml13, stringify as stringifyYaml9 } from "yaml";
|
|
19903
19916
|
|
|
19904
19917
|
// ../cli/src/core/work-item-write.ts
|
|
19905
19918
|
import fs7 from "fs";
|
|
19906
19919
|
import path6 from "path";
|
|
19907
19920
|
import crypto4 from "crypto";
|
|
19908
|
-
import
|
|
19921
|
+
import matter14 from "gray-matter";
|
|
19909
19922
|
var SECTION_ORDER2 = [
|
|
19910
19923
|
"Actor",
|
|
19911
19924
|
"Outcome",
|
|
@@ -20953,7 +20966,7 @@ async function integrationsWorkItemTool(root, args) {
|
|
|
20953
20966
|
}
|
|
20954
20967
|
|
|
20955
20968
|
// ../cli/src/core/context-pack.ts
|
|
20956
|
-
import
|
|
20969
|
+
import matter16 from "gray-matter";
|
|
20957
20970
|
var CONTEXT_PACK_VERSION = "1";
|
|
20958
20971
|
var ARCH_DIR4 = "knowledge";
|
|
20959
20972
|
function readScanJson(dir) {
|
|
@@ -20966,7 +20979,7 @@ function readScanJson(dir) {
|
|
|
20966
20979
|
}
|
|
20967
20980
|
}
|
|
20968
20981
|
function firstParagraph4(markdown) {
|
|
20969
|
-
const body =
|
|
20982
|
+
const body = matter16(markdown).content.trim();
|
|
20970
20983
|
const para = body.split("\n\n").map((p) => p.trim()).find((p) => p && !p.startsWith("#"));
|
|
20971
20984
|
return para ?? "";
|
|
20972
20985
|
}
|
package/package.json
CHANGED