@subseam/mcp 0.4.16 → 0.4.18
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 +16 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -30587,9 +30587,13 @@ var definitionDraft = external_exports.object({
|
|
|
30587
30587
|
atTip: external_exports.object({
|
|
30588
30588
|
sha: external_exports.string(),
|
|
30589
30589
|
failures: external_exports.array(external_exports.object({ path: external_exports.string(), line: external_exports.number(), cause: external_exports.string() })),
|
|
30590
|
-
uncomputed: external_exports.array(external_exports.object({ path: external_exports.string(), reason: external_exports.string() }))
|
|
30590
|
+
uncomputed: external_exports.array(external_exports.object({ path: external_exports.string(), reason: external_exports.string() })),
|
|
30591
|
+
/** Why the rule has no verdict at the tip; null when it was evaluated. Absent from older servers. */
|
|
30592
|
+
notEvaluated: external_exports.string().nullable().optional()
|
|
30591
30593
|
}),
|
|
30592
30594
|
gated: external_exports.string().nullable().optional(),
|
|
30595
|
+
/** Absent from older servers. */
|
|
30596
|
+
rung: external_exports.object({ disposition: external_exports.enum(["block", "warn", "off"]), means: external_exports.string() }).optional(),
|
|
30593
30597
|
conflicts: external_exports.literal("not checked")
|
|
30594
30598
|
});
|
|
30595
30599
|
function notComputedLines(uncomputed) {
|
|
@@ -30614,14 +30618,19 @@ function renderDraft(d) {
|
|
|
30614
30618
|
const h = d.history;
|
|
30615
30619
|
const since = h === null || h.since === null ? "" : ` since ${at(h.since)}`;
|
|
30616
30620
|
const partial2 = h !== null && h.complete === false ? ` so far (still running: ${h.of} of ${h.planned ?? "?"} trunk versions counted, through ${h.reached === void 0 ? "?" : at(h.reached)})` : "";
|
|
30617
|
-
const
|
|
30618
|
-
const
|
|
30621
|
+
const evaluatedVersions = h === null ? 0 : h.of - h.uncomputedVersions;
|
|
30622
|
+
const history = h === null ? "not computed yet" : h.of > 0 && evaluatedVersions === 0 ? `not evaluated at any of ${h.of} trunk versions${since}${partial2}` : h.last === null ? h.uncomputedVersions === 0 ? `never fired on ${h.of} trunk versions${since}${partial2}` : `never fired on the ${evaluatedVersions} of ${h.of} trunk versions it could be evaluated at${since}${partial2}` : `would have fired at ${h.fired} of ${h.of} trunk versions${since}, last at ${at(h.last)}${partial2}`;
|
|
30623
|
+
const floor = h === null || h.uncomputedVersions === 0 || evaluatedVersions === 0 || h.last === null ? [] : [` ${h.uncomputedVersions} of those versions could not be evaluated: the count is a floor there`];
|
|
30619
30624
|
const shown = d.atTip.failures.slice(0, FAILURES_SHOWN).map((f) => `${f.path}:${f.line} ${f.cause}`);
|
|
30620
30625
|
const more = d.atTip.failures.length - shown.length;
|
|
30621
|
-
const
|
|
30626
|
+
const notEvaluated = d.atTip.notEvaluated ?? null;
|
|
30627
|
+
const tipAt = ` at tip ${d.atTip.sha.slice(0, 9)}`;
|
|
30628
|
+
const tip = d.atTip.failures.length > 0 ? `${tipAt}: ${d.atTip.failures.length} failing: ` + shown.join("; ") + (more > 0 ? `; \u2026 and ${more} more` : "") : notEvaluated !== null ? `${tipAt}: not evaluated (${notEvaluated})` : `${tipAt}: holds`;
|
|
30629
|
+
const tipRest = d.atTip.failures.length > 0 && notEvaluated !== null ? [`${tipAt}, the rest was not evaluated (${notEvaluated})`] : [];
|
|
30622
30630
|
const open7 = notComputedLines(d.atTip.uncomputed);
|
|
30623
|
-
|
|
30624
|
-
return [` ${d.statement}`,
|
|
30631
|
+
const rung = d.rung === void 0 ? [] : [` on approval, in force at ${d.rung.means}`];
|
|
30632
|
+
if (typeof d.gated === "string") return [` ${d.statement}`, ` gated: ${d.gated} This definition is not evaluated.`, ...rung, ` conflicts: ${d.conflicts}`].join("\n");
|
|
30633
|
+
return [` ${d.statement}`, ...exampleLines(d.examples), ` history: ${history}`, ...floor, tip, ...tipRest, ...open7, ...rung, ` conflicts: ${d.conflicts}`].join("\n");
|
|
30625
30634
|
}
|
|
30626
30635
|
|
|
30627
30636
|
// ../define/src/tool/define.ts
|
|
@@ -48344,7 +48353,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48344
48353
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48345
48354
|
|
|
48346
48355
|
// package.json
|
|
48347
|
-
var version2 = "0.4.
|
|
48356
|
+
var version2 = "0.4.18";
|
|
48348
48357
|
|
|
48349
48358
|
// src/server.ts
|
|
48350
48359
|
var SERVER_VERSION = version2;
|