@kaddo/mcp 3.117.0 → 3.118.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 +15 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4450,7 +4450,7 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
4450
4450
  if (projectMode(config) === "poc") {
4451
4451
  const poc = readPocSummary(dir);
4452
4452
  if (!poc.exists) {
4453
- return { id: "bootstrap", phase: "Setup", label: "Run `kaddo bootstrap` to create the POC knowledge baseline.", command: "kaddo bootstrap", reason: `Missing ${POC_ARTIFACT_PATH}.` };
4453
+ return { id: "poc-artifact", phase: "POC Definition", label: "Create or restore the POC artifact.", command: "kaddo project mode poc", target: POC_ARTIFACT_PATH, reason: `Missing ${POC_ARTIFACT_PATH}.` };
4454
4454
  }
4455
4455
  if (!poc.hypothesisDefined) {
4456
4456
  return { id: "poc-hypothesis", phase: "POC Definition", label: "Define the POC hypothesis.", target: POC_ARTIFACT_PATH, reason: "The POC needs a testable hypothesis before work begins." };
@@ -4460,12 +4460,9 @@ function resolveNextStep(dir, now = /* @__PURE__ */ new Date()) {
4460
4460
  }
4461
4461
  const qCurrentState2 = analyzeKnowledgeArtifact(dir, CS);
4462
4462
  const qCodebase2 = analyzeKnowledgeArtifact(dir, CB);
4463
- if (qCurrentState2 !== "useful" || qCodebase2 !== "useful") {
4463
+ if (exists(join(dir, ".kaddo", "scan.json")) && (qCurrentState2 !== "useful" || qCodebase2 !== "useful")) {
4464
4464
  return { id: "poc-technical-context", phase: "POC Discovery", label: "Document the minimal technical context for the experiment.", target: qCurrentState2 !== "useful" ? CS : CB, agent: "architecture-agent", reason: "The experiment surface and constraints are not yet sufficiently documented." };
4465
4465
  }
4466
- if (!exists(join(dir, "knowledge", "resources"))) {
4467
- return { id: "poc-resources", phase: "POC Discovery", label: "Identify the project resources relevant to the experiment.", command: "kaddo resources list", reason: "No project resource catalog is available for the experiment context." };
4468
- }
4469
4466
  const delivery = buildDeliveryState(dir);
4470
4467
  if (delivery.total_work_items === 0) {
4471
4468
  return { id: "poc-create-experiment", phase: "Experiment", label: "Create the first experiment Work Item (prefer `spike`).", command: "kaddo create spike", reason: "The POC has no Work Item to produce evidence." };
@@ -8740,6 +8737,11 @@ var definePocHypothesis = {
8740
8737
  return { status: poc.hypothesisDefined ? "done" : "current", evidence: poc.hypothesisDefined ? [POC_ARTIFACT_PATH] : void 0, reason: poc.hypothesisDefined ? void 0 : "A POC starts with one testable hypothesis." };
8741
8738
  }
8742
8739
  };
8740
+ var ensurePocArtifact = {
8741
+ id: "poc-artifact",
8742
+ label: "Create POC artifact",
8743
+ evaluate: (ctx) => exists(join(ctx.dir, POC_ARTIFACT_PATH)) ? { status: "done", evidence: [POC_ARTIFACT_PATH] } : { status: "current", command: "kaddo project mode poc", reason: "Create the canonical POC artifact before defining the experiment." }
8744
+ };
8743
8745
  var definePocCriteria = {
8744
8746
  id: "poc-success-criteria",
8745
8747
  label: "Define success criteria",
@@ -8748,11 +8750,15 @@ var definePocCriteria = {
8748
8750
  return { status: poc.successCriteriaCount > 0 ? "done" : "pending", evidence: poc.successCriteriaCount > 0 ? [POC_ARTIFACT_PATH] : void 0, reason: poc.successCriteriaCount > 0 ? void 0 : "Define observable evidence for the hypothesis." };
8749
8751
  }
8750
8752
  };
8751
- var describePocTech = { ...describeArchitecture, id: "poc-technical-context", label: "Document minimal technical context" };
8753
+ var describePocTech = {
8754
+ id: "poc-technical-context",
8755
+ label: "Document minimal technical context",
8756
+ evaluate: (ctx) => ctx.hasScan ? describeArchitecture.evaluate(ctx) : { status: "optional", command: "kaddo scan", reason: "Add technical context only when the experiment needs to inspect existing code." }
8757
+ };
8752
8758
  var identifyPocResources = {
8753
8759
  id: "poc-resources",
8754
8760
  label: "Identify relevant resources",
8755
- evaluate: (ctx) => exists(join(ctx.dir, "knowledge/resources")) ? { status: "done", evidence: ["knowledge/resources/"] } : { status: "pending", command: "kaddo resources list" }
8761
+ evaluate: (ctx) => exists(join(ctx.dir, "knowledge/resources")) ? { status: "done", evidence: ["knowledge/resources/"] } : { status: "optional", command: "kaddo resources list", reason: "Add Project Resources only when the experiment depends on external systems." }
8756
8762
  };
8757
8763
  var createPocExperiment = {
8758
8764
  id: "poc-create-experiment",
@@ -8772,7 +8778,7 @@ var concludePoc = {
8772
8778
  return conclusion === "pending" ? { status: "pending", reason: "Record validated, rejected, or inconclusive from the evidence." } : { status: "done", evidence: [POC_ARTIFACT_PATH], reason: `Conclusion: ${conclusion}.` };
8773
8779
  }
8774
8780
  };
8775
- var POC_STEPS = [enableKaddo, bootstrapBaseline, definePocHypothesis, definePocCriteria, describePocTech, identifyPocResources, createPocExperiment, capturePocEvidence, concludePoc];
8781
+ var POC_STEPS = [enableKaddo, ensurePocArtifact, definePocHypothesis, definePocCriteria, describePocTech, identifyPocResources, createPocExperiment, capturePocEvidence, concludePoc];
8776
8782
  function stepsForState(state) {
8777
8783
  switch (state) {
8778
8784
  case "new":
@@ -10965,7 +10971,7 @@ var RESOURCES = [
10965
10971
  root,
10966
10972
  "kaddo://poc",
10967
10973
  "knowledge/delivery/poc.md",
10968
- "POC artifact not found. Set `project.mode: poc` and run `kaddo bootstrap` first."
10974
+ "POC artifact not found. Initialize in POC mode or switch with `kaddo project mode poc`."
10969
10975
  )
10970
10976
  },
10971
10977
  {
@@ -17138,7 +17144,6 @@ var LEGACY_STEPS2 = [
17138
17144
  runGuard2,
17139
17145
  captureLearning2
17140
17146
  ];
17141
- var describePocTech2 = { ...describeArchitecture2, id: "poc-technical-context", label: "Document minimal technical context" };
17142
17147
  var USER_FACING_KEYWORDS_EN = [
17143
17148
  "user",
17144
17149
  "visitor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaddo/mcp",
3
- "version": "3.117.0",
3
+ "version": "3.118.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": {