@subseam/mcp 0.4.39 → 0.4.41

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/main.js +31 -11
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -20259,6 +20259,9 @@ var UNIT_KIND_ACTION = {
20259
20259
  [BUILD_PACKAGE_UNIT_KIND]: "build"
20260
20260
  };
20261
20261
 
20262
+ // ../execution-contract/src/workload/narrowed-units.ts
20263
+ init_esm_shims();
20264
+
20262
20265
  // ../execution-contract/src/report/artifact.ts
20263
20266
  init_esm_shims();
20264
20267
 
@@ -30700,18 +30703,29 @@ var rungReport = external_exports.object({
30700
30703
  calls: external_exports.number(),
30701
30704
  outcome: external_exports.enum(["admitted", "exhausted"])
30702
30705
  });
30706
+ var cloverLeg = external_exports.object({ outcome: external_exports.enum(["agree", "disagree", "abstain"]), reasoning: external_exports.string() });
30707
+ var ourGap = external_exports.object({
30708
+ leg: external_exports.enum(["nlVsCompiled", "compiledVsWitness", "nlVsWitness"]),
30709
+ kind: external_exports.enum(["mutation-not-yet", "not-run-on-code"]),
30710
+ reason: external_exports.string()
30711
+ });
30703
30712
  var sliceResult = external_exports.union([
30704
30713
  external_exports.object({
30705
30714
  ok: external_exports.literal(true),
30706
30715
  definitionId: external_exports.string(),
30707
30716
  versionId: external_exports.string(),
30708
30717
  version: external_exports.number(),
30709
- clover: external_exports.object({ agreed: external_exports.boolean(), agreeCount: external_exports.number(), routedToHumanQueue: external_exports.boolean() }),
30718
+ clover: external_exports.object({
30719
+ agreed: external_exports.boolean(),
30720
+ agreeCount: external_exports.number(),
30721
+ // Optional so a core that predates per-leg outcomes still parses.
30722
+ legs: external_exports.object({ nlVsCompiled: cloverLeg, compiledVsWitness: cloverLeg, nlVsWitness: cloverLeg }).optional()
30723
+ }),
30710
30724
  iterations: external_exports.number(),
30711
30725
  rungs: external_exports.array(rungReport).optional(),
30712
30726
  draft: definitionDraft.optional()
30713
30727
  }),
30714
- external_exports.object({ ok: external_exports.literal(false), bestFailingCandidate: external_exports.unknown(), errors: compileErrors, iterations: external_exports.number(), rungs: external_exports.array(rungReport).optional() }),
30728
+ external_exports.object({ ok: external_exports.literal(false), bestFailingCandidate: external_exports.unknown(), errors: compileErrors, ourGaps: external_exports.array(ourGap).optional(), iterations: external_exports.number(), rungs: external_exports.array(rungReport).optional() }),
30715
30729
  external_exports.object({ ok: external_exports.literal(false), unavailable: external_exports.string() })
30716
30730
  ]);
30717
30731
  var noteResult = external_exports.discriminatedUnion("kind", [
@@ -30937,16 +30951,22 @@ function renderAuthorJob(r) {
30937
30951
  return `define: authoring job ${r.jobId} failed: ${r.error}`;
30938
30952
  }
30939
30953
  }
30954
+ function ourGapLines(gaps) {
30955
+ if (gaps === void 0 || gaps.length === 0) return "a check had no evidence to judge, which is a gap on the platform's side, not the author's.";
30956
+ return `each check below had no evidence because of a gap on the platform's side, not something to fix in the definition:
30957
+ ${gaps.map((g3) => ` \u2022 ${g3.leg} \u2014 ours: ${g3.kind}: ${g3.reason}`).join("\n")}`;
30958
+ }
30940
30959
  function renderSlice(r) {
30941
30960
  if ("unavailable" in r) return `could not be authored: ${r.unavailable}`;
30942
30961
  const rungs = r.rungs === void 0 || r.rungs.length === 0 ? "" : `
30943
30962
  Model calls: ${rungLine(r.rungs)}`;
30944
30963
  if (r.ok) {
30945
- const routed = r.clover.routedToHumanQueue ? " (routed to the human decision queue)" : "";
30946
- const head = `admitted definition ${r.definitionId} v${r.version} in ${r.iterations} iteration(s). Clover: ${r.clover.agreeCount} agreeing${r.clover.agreed ? "" : " \u2014 no consensus"}${routed}. It is defaulted until approved.`;
30964
+ const head = `admitted definition ${r.definitionId} v${r.version} in ${r.iterations} iteration(s). Clover: ${r.clover.agreeCount} agreeing${r.clover.agreed ? "" : " \u2014 no consensus"}. It is defaulted until approved.`;
30947
30965
  return (r.draft === void 0 ? head : `${head}
30948
30966
  ${renderDraft(r.draft)}`) + rungs;
30949
30967
  }
30968
+ if (r.errors.some((e) => e.code === "CLOVER_ABSTAINED")) return `not admitted: it needs a person. No check disagreed; ${ourGapLines(r.ourGaps)}
30969
+ ${errorLines(r.errors)}${rungs}`;
30950
30970
  return `could not converge in ${r.iterations} iteration(s). Best-failing candidate's errors \u2014
30951
30971
  ${errorLines(r.errors)}${rungs}`;
30952
30972
  }
@@ -32104,7 +32124,7 @@ var input8 = external_exports.object({
32104
32124
  var site = external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), line: external_exports.number(), cause: external_exports.string(), times: external_exports.number().optional() });
32105
32125
  var total = (sites) => sites.reduce((n, d) => n + (d.times ?? 1), 0);
32106
32126
  var siteLine = (d) => ` ${d.definitionName} at ${d.path}:${d.line} \u2014 ${d.cause}${(d.times ?? 1) === 1 ? "" : ` (${d.times} times on this line)`}`;
32107
- var coneResult = external_exports.object({ unit: external_exports.string().optional(), package: external_exports.string().optional(), outcome: external_exports.string(), cause: external_exports.string().optional() });
32127
+ var coneResult = external_exports.object({ leg: external_exports.string().optional(), unit: external_exports.string().optional(), package: external_exports.string().optional(), outcome: external_exports.string(), cause: external_exports.string().optional() });
32108
32128
  var cone = external_exports.discriminatedUnion("kind", [
32109
32129
  external_exports.object({ kind: external_exports.literal("not-run"), reason: external_exports.string() }),
32110
32130
  external_exports.object({ kind: external_exports.literal("delayed"), reason: external_exports.string(), url: external_exports.string().nullable() }),
@@ -32112,17 +32132,17 @@ var cone = external_exports.discriminatedUnion("kind", [
32112
32132
  external_exports.object({ kind: external_exports.literal("done"), url: external_exports.string().nullable(), results: external_exports.array(coneResult) })
32113
32133
  ]);
32114
32134
  function coneLines(c) {
32115
- if (c === null) return ["Cone tests: none recorded for this fill."];
32135
+ if (c === null) return ["Cone: none recorded for this fill."];
32116
32136
  const run2 = (url2) => url2 === null ? "" : ` (${url2})`;
32117
32137
  switch (c.kind) {
32118
32138
  case "not-run":
32119
- return [`Cone tests: not run \u2014 ${c.reason}.`];
32139
+ return [`Cone: not run \u2014 ${c.reason}.`];
32120
32140
  case "delayed":
32121
- return [`Cone tests: delayed on subseam's side${run2(c.url)} \u2014 ${c.reason}.`];
32141
+ return [`Cone: delayed on subseam's side${run2(c.url)} \u2014 ${c.reason}.`];
32122
32142
  case "running":
32123
- return [c.waiting === void 0 ? `Cone tests: running${run2(c.url)}.` : `Cone tests: not started yet, waiting for ${c.waiting}.`];
32143
+ return [c.waiting === void 0 ? `Cone: running${run2(c.url)}.` : `Cone: not started yet, waiting for ${c.waiting}.`];
32124
32144
  case "done":
32125
- return [`Cone tests${run2(c.url)}:`, ...c.results.map((r) => ` ${r.unit ?? r.package ?? "unnamed unit"}: ${r.outcome}${r.cause === void 0 ? "" : ` (${r.cause})`}`)];
32145
+ return [`Cone${run2(c.url)}:`, ...c.results.map((r) => ` ${r.leg === void 0 ? "" : `${r.leg} `}${r.unit ?? r.package ?? "unnamed unit"}: ${r.outcome}${r.cause === void 0 ? "" : ` (${r.cause})`}`)];
32126
32146
  }
32127
32147
  }
32128
32148
  var defineProposalReadTool = {
@@ -48747,7 +48767,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
48747
48767
  var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
48748
48768
 
48749
48769
  // package.json
48750
- var version2 = "0.4.39";
48770
+ var version2 = "0.4.41";
48751
48771
 
48752
48772
  // src/server.ts
48753
48773
  var SERVER_VERSION = version2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subseam/mcp",
3
- "version": "0.4.39",
3
+ "version": "0.4.41",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {