@subseam/mcp 0.4.39 → 0.4.40
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/main.js +25 -5
- 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({
|
|
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
|
|
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
|
}
|
|
@@ -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.
|
|
48770
|
+
var version2 = "0.4.40";
|
|
48751
48771
|
|
|
48752
48772
|
// src/server.ts
|
|
48753
48773
|
var SERVER_VERSION = version2;
|