@subseam/mcp 0.4.34 → 0.4.36
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 +29 -10
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -30597,11 +30597,26 @@ var definitionDraft = external_exports.object({
|
|
|
30597
30597
|
rung: external_exports.object({ disposition: external_exports.enum(["block", "warn", "off"]), means: external_exports.string() }).optional(),
|
|
30598
30598
|
conflicts: external_exports.literal("not checked")
|
|
30599
30599
|
});
|
|
30600
|
-
|
|
30601
|
-
|
|
30600
|
+
var draftAt = external_exports.discriminatedUnion("state", [
|
|
30601
|
+
external_exports.object({ state: external_exports.literal("current"), sha: external_exports.string(), ordinal: external_exports.number() }),
|
|
30602
|
+
external_exports.object({
|
|
30603
|
+
state: external_exports.literal("computing"),
|
|
30604
|
+
tipSha: external_exports.string(),
|
|
30605
|
+
tipOrdinal: external_exports.number(),
|
|
30606
|
+
banked: external_exports.object({ sha: external_exports.string(), ordinal: external_exports.number() }).nullable()
|
|
30607
|
+
})
|
|
30608
|
+
]);
|
|
30609
|
+
var sha8 = (sha) => sha.slice(0, 8);
|
|
30610
|
+
function draftAtLine(at) {
|
|
30611
|
+
if (at.state === "current") return `verdict at ${sha8(at.sha)} (the tip)`;
|
|
30612
|
+
return at.banked === null ? `computing at ${sha8(at.tipSha)}, no verdict banked yet` : `verdict at ${sha8(at.banked.sha)} (tip is ${sha8(at.tipSha)}, computing)`;
|
|
30613
|
+
}
|
|
30614
|
+
function notComputedLines(uncomputed, atTip) {
|
|
30615
|
+
const at = atTip ? "at tip" : "at that commit";
|
|
30616
|
+
if (uncomputed.length <= 5) return uncomputed.map((u) => ` ${at}, not computed: ${u.path} (${u.reason})`);
|
|
30602
30617
|
const byCause = /* @__PURE__ */ new Map();
|
|
30603
30618
|
for (const u of uncomputed) byCause.set(u.reason, [...byCause.get(u.reason) ?? [], u.path]);
|
|
30604
|
-
return [...byCause].map(([reason, paths]) => ` at
|
|
30619
|
+
return [...byCause].map(([reason, paths]) => ` ${at}, not computed: ${paths.length} file${paths.length === 1 ? "" : "s"} (${reason}), e.g. ${paths.slice(0, 3).join(", ")}`);
|
|
30605
30620
|
}
|
|
30606
30621
|
var FAILURES_SHOWN = 20;
|
|
30607
30622
|
var EXAMPLES_FAILING_SHOWN = 3;
|
|
@@ -30614,7 +30629,7 @@ function exampleLines(examples) {
|
|
|
30614
30629
|
...examples.wouldFail === null ? [] : [` would fail: ${where(examples.wouldFail)} ${examples.wouldFail.does} (no code does this yet)`]
|
|
30615
30630
|
];
|
|
30616
30631
|
}
|
|
30617
|
-
function renderDraft(d) {
|
|
30632
|
+
function renderDraft(d, atTip = true) {
|
|
30618
30633
|
const at = (c) => `${c.sha.slice(0, 9)} (${c.committedAt.slice(0, 10)})`;
|
|
30619
30634
|
const h = d.history;
|
|
30620
30635
|
const since = h === null || h.since === null ? "" : ` since ${at(h.since)}`;
|
|
@@ -30625,10 +30640,10 @@ function renderDraft(d) {
|
|
|
30625
30640
|
const shown = d.atTip.failures.slice(0, FAILURES_SHOWN).map((f) => `${f.path}:${f.line} ${f.cause}`);
|
|
30626
30641
|
const more = d.atTip.failures.length - shown.length;
|
|
30627
30642
|
const notEvaluated = d.atTip.notEvaluated ?? null;
|
|
30628
|
-
const tipAt = ` at tip ${d.atTip.sha.slice(0, 9)}`;
|
|
30643
|
+
const tipAt = ` at ${atTip ? "tip " : ""}${d.atTip.sha.slice(0, 9)}`;
|
|
30629
30644
|
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`;
|
|
30630
30645
|
const tipRest = d.atTip.failures.length > 0 && notEvaluated !== null ? [`${tipAt}, the rest was not evaluated (${notEvaluated})`] : [];
|
|
30631
|
-
const open7 = notComputedLines(d.atTip.uncomputed);
|
|
30646
|
+
const open7 = notComputedLines(d.atTip.uncomputed, atTip);
|
|
30632
30647
|
const rung = d.rung === void 0 ? [] : [` on approval, in force at ${d.rung.means}`];
|
|
30633
30648
|
if (typeof d.gated === "string") return [` ${d.statement}`, ` gated: ${d.gated} This definition is not evaluated.`, ...rung, ` conflicts: ${d.conflicts}`].join("\n");
|
|
30634
30649
|
return [` ${d.statement}`, ...exampleLines(d.examples), ` history: ${history}`, ...floor, tip, ...tipRest, ...open7, ...rung, ` conflicts: ${d.conflicts}`].join("\n");
|
|
@@ -31315,7 +31330,9 @@ var showBody = external_exports.discriminatedUnion("ok", [
|
|
|
31315
31330
|
bindings: external_exports.array(external_exports.object({ role: external_exports.string(), repo: external_exports.string(), anchorGrain: external_exports.string(), boundAtCommit: external_exports.string() })),
|
|
31316
31331
|
violations: external_exports.array(showViolation),
|
|
31317
31332
|
liveSuppressions: external_exports.array(showSuppression),
|
|
31318
|
-
draft: definitionDraft.nullable()
|
|
31333
|
+
draft: definitionDraft.nullable(),
|
|
31334
|
+
/** Absent from older servers. */
|
|
31335
|
+
draftAt: draftAt.nullable().optional()
|
|
31319
31336
|
}),
|
|
31320
31337
|
external_exports.object({ ok: external_exports.literal(false) })
|
|
31321
31338
|
]);
|
|
@@ -31369,8 +31386,10 @@ function renderObject(definitionId, r) {
|
|
|
31369
31386
|
out2.push("Bindings (current version):");
|
|
31370
31387
|
for (const [line, n] of counts) out2.push(` \u2022 ${line}${n > 1 ? ` (\xD7${n})` : ""}`);
|
|
31371
31388
|
}
|
|
31372
|
-
|
|
31373
|
-
${
|
|
31389
|
+
const at = r.draftAt ?? null;
|
|
31390
|
+
const atLine = at === null ? "" : ` ${draftAtLine(at)}`;
|
|
31391
|
+
out2.push(r.draft === null ? at === null ? "Draft (current version): none \u2014 the version has no subject binding, or canvas has published no version of its repo." : `Draft (current version): ${draftAtLine(at)}` : `Draft (current version):${atLine}
|
|
31392
|
+
${renderDraft(r.draft, at?.state !== "computing")}`);
|
|
31374
31393
|
if (r.violations.length === 0) {
|
|
31375
31394
|
out2.push("Standing violations: none on the ledger.");
|
|
31376
31395
|
} else {
|
|
@@ -48673,7 +48692,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48673
48692
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48674
48693
|
|
|
48675
48694
|
// package.json
|
|
48676
|
-
var version2 = "0.4.
|
|
48695
|
+
var version2 = "0.4.36";
|
|
48677
48696
|
|
|
48678
48697
|
// src/server.ts
|
|
48679
48698
|
var SERVER_VERSION = version2;
|