@subseam/mcp 0.4.29 → 0.4.31
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 +19 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -31790,11 +31790,12 @@ var input8 = external_exports.object({
|
|
|
31790
31790
|
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() });
|
|
31791
31791
|
var total = (sites) => sites.reduce((n, d) => n + (d.times ?? 1), 0);
|
|
31792
31792
|
var siteLine = (d) => ` ${d.definitionName} at ${d.path}:${d.line} \u2014 ${d.cause}${(d.times ?? 1) === 1 ? "" : ` (${d.times} times on this line)`}`;
|
|
31793
|
+
var coneResult = external_exports.object({ unit: external_exports.string().optional(), package: external_exports.string().optional(), outcome: external_exports.string(), cause: external_exports.string().optional() });
|
|
31793
31794
|
var cone = external_exports.discriminatedUnion("kind", [
|
|
31794
31795
|
external_exports.object({ kind: external_exports.literal("not-run"), reason: external_exports.string() }),
|
|
31795
31796
|
external_exports.object({ kind: external_exports.literal("delayed"), reason: external_exports.string(), url: external_exports.string().nullable() }),
|
|
31796
|
-
external_exports.object({ kind: external_exports.literal("running"),
|
|
31797
|
-
external_exports.object({ kind: external_exports.literal("done"), url: external_exports.string()
|
|
31797
|
+
external_exports.object({ kind: external_exports.literal("running"), url: external_exports.string().nullable() }),
|
|
31798
|
+
external_exports.object({ kind: external_exports.literal("done"), url: external_exports.string().nullable(), results: external_exports.array(coneResult) })
|
|
31798
31799
|
]);
|
|
31799
31800
|
function coneLines(c) {
|
|
31800
31801
|
if (c === null) return ["Cone tests: none recorded for this fill."];
|
|
@@ -31805,9 +31806,9 @@ function coneLines(c) {
|
|
|
31805
31806
|
case "delayed":
|
|
31806
31807
|
return [`Cone tests: delayed on subseam's side${run2(c.url)} \u2014 ${c.reason}.`];
|
|
31807
31808
|
case "running":
|
|
31808
|
-
return [`Cone tests: running
|
|
31809
|
+
return [`Cone tests: running${run2(c.url)}.`];
|
|
31809
31810
|
case "done":
|
|
31810
|
-
return [`Cone tests${run2(c.url)}:`, ...c.results.map((r) => ` ${r.package}: ${r.outcome}${r.cause === void 0 ? "" : ` (${r.cause})`}`)];
|
|
31811
|
+
return [`Cone tests${run2(c.url)}:`, ...c.results.map((r) => ` ${r.unit ?? r.package ?? "unnamed unit"}: ${r.outcome}${r.cause === void 0 ? "" : ` (${r.cause})`}`)];
|
|
31811
31812
|
}
|
|
31812
31813
|
}
|
|
31813
31814
|
var defineProposalReadTool = {
|
|
@@ -32017,13 +32018,21 @@ var answer2 = external_exports.union([
|
|
|
32017
32018
|
newlyUncomputed: external_exports.array(external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), reason: external_exports.string() })),
|
|
32018
32019
|
notComputed: external_exports.string().nullable()
|
|
32019
32020
|
}),
|
|
32020
|
-
atCandidate: external_exports.array(site2)
|
|
32021
|
+
atCandidate: external_exports.array(site2),
|
|
32022
|
+
cone: external_exports.union([
|
|
32023
|
+
external_exports.object({ kind: external_exports.literal("not-run"), reason: external_exports.string() }),
|
|
32024
|
+
external_exports.object({ kind: external_exports.literal("delayed"), reason: external_exports.string(), url: external_exports.string().nullable() }),
|
|
32025
|
+
external_exports.object({ kind: external_exports.literal("running"), url: external_exports.string().nullable() }),
|
|
32026
|
+
external_exports.object({ kind: external_exports.literal("done"), url: external_exports.string().nullable(), results: external_exports.array(external_exports.object({ unit: external_exports.string(), outcome: external_exports.string(), cause: external_exports.string().optional() })) })
|
|
32027
|
+
]),
|
|
32028
|
+
offered: external_exports.boolean(),
|
|
32029
|
+
rejection: external_exports.string().nullable()
|
|
32021
32030
|
}),
|
|
32022
32031
|
external_exports.object({ ok: external_exports.literal(false), status: external_exports.literal("pending"), checkId: external_exports.string(), wait: external_exports.string() })
|
|
32023
32032
|
]);
|
|
32024
32033
|
var defineProposalCheckTool = {
|
|
32025
32034
|
name: "define_proposal_check",
|
|
32026
|
-
description: "Before submitting a fill for a PR-check proposal, ask what the check would say about your candidate: pass `files`, the same file-set you would submit with tasks_submit ({path, content} each; content null deletes the file). Answers the divergences still standing at the candidate, the ones it closes and the ones it opens. Measuring can take minutes: then it answers a checkId, and you call it again with only `checkId` to read the result. Records nothing.",
|
|
32035
|
+
description: "Before submitting a fill for a PR-check proposal, ask what the check would say about your candidate: pass `files`, the same file-set you would submit with tasks_submit ({path, content} each; content null deletes the file). Answers whether the check would accept it, the divergences still standing at the candidate, the ones it closes and the ones it opens, and its cone: the test files and type-check projects it reaches, run as a fill's are. Measuring can take minutes: then it answers a checkId, and you call it again with only `checkId` to read the result. Records nothing.",
|
|
32027
32036
|
capability: "decision",
|
|
32028
32037
|
inputSchema: input9.shape,
|
|
32029
32038
|
async handler(raw, ctx) {
|
|
@@ -32034,11 +32043,12 @@ var defineProposalCheckTool = {
|
|
|
32034
32043
|
const body2 = readBody(answer2, wire, "define_proposal_check", "decision-proposal-check");
|
|
32035
32044
|
if (!body2.ok) return { text: body2.text };
|
|
32036
32045
|
if (!body2.value.ok) return { text: `define_proposal_check: still measuring (checkId ${body2.value.checkId}) \u2014 ${body2.value.wait}.` };
|
|
32037
|
-
const { delta, atCandidate } = body2.value;
|
|
32046
|
+
const { delta, atCandidate, cone: cone2, offered, rejection } = body2.value;
|
|
32038
32047
|
if (delta.notComputed !== null) return { text: `define_proposal_check: not computed \u2014 ${delta.notComputed}. This is not a pass.` };
|
|
32039
32048
|
return {
|
|
32040
32049
|
text: [
|
|
32041
|
-
|
|
32050
|
+
offered ? "define_proposal_check: the check would accept this candidate as a fill." : `define_proposal_check: the check would not accept this candidate as a fill${rejection === null ? "" : ` \u2014 ${rejection}`}.`,
|
|
32051
|
+
cone2.kind === "done" ? [`Its cone (${cone2.results.length} test files and type-check projects):`, ...cone2.results.map((r) => ` ${r.unit}: ${r.outcome}${r.cause === void 0 ? "" : ` \u2014 ${r.cause}`}`)].join("\n") : cone2.kind === "running" ? "Its cone is still running." : `Its cone was not run: ${cone2.reason}.`,
|
|
32042
32052
|
`Still failing at the candidate (${atCandidate.length}):`,
|
|
32043
32053
|
...atCandidate.map(siteLine2),
|
|
32044
32054
|
`Closes (${delta.closed.length}):`,
|
|
@@ -48423,7 +48433,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48423
48433
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48424
48434
|
|
|
48425
48435
|
// package.json
|
|
48426
|
-
var version2 = "0.4.
|
|
48436
|
+
var version2 = "0.4.31";
|
|
48427
48437
|
|
|
48428
48438
|
// src/server.ts
|
|
48429
48439
|
var SERVER_VERSION = version2;
|