@subseam/mcp 0.4.30 → 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 +14 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -32018,13 +32018,21 @@ var answer2 = external_exports.union([
|
|
|
32018
32018
|
newlyUncomputed: external_exports.array(external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), reason: external_exports.string() })),
|
|
32019
32019
|
notComputed: external_exports.string().nullable()
|
|
32020
32020
|
}),
|
|
32021
|
-
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()
|
|
32022
32030
|
}),
|
|
32023
32031
|
external_exports.object({ ok: external_exports.literal(false), status: external_exports.literal("pending"), checkId: external_exports.string(), wait: external_exports.string() })
|
|
32024
32032
|
]);
|
|
32025
32033
|
var defineProposalCheckTool = {
|
|
32026
32034
|
name: "define_proposal_check",
|
|
32027
|
-
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.",
|
|
32028
32036
|
capability: "decision",
|
|
32029
32037
|
inputSchema: input9.shape,
|
|
32030
32038
|
async handler(raw, ctx) {
|
|
@@ -32035,11 +32043,12 @@ var defineProposalCheckTool = {
|
|
|
32035
32043
|
const body2 = readBody(answer2, wire, "define_proposal_check", "decision-proposal-check");
|
|
32036
32044
|
if (!body2.ok) return { text: body2.text };
|
|
32037
32045
|
if (!body2.value.ok) return { text: `define_proposal_check: still measuring (checkId ${body2.value.checkId}) \u2014 ${body2.value.wait}.` };
|
|
32038
|
-
const { delta, atCandidate } = body2.value;
|
|
32046
|
+
const { delta, atCandidate, cone: cone2, offered, rejection } = body2.value;
|
|
32039
32047
|
if (delta.notComputed !== null) return { text: `define_proposal_check: not computed \u2014 ${delta.notComputed}. This is not a pass.` };
|
|
32040
32048
|
return {
|
|
32041
32049
|
text: [
|
|
32042
|
-
|
|
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}.`,
|
|
32043
32052
|
`Still failing at the candidate (${atCandidate.length}):`,
|
|
32044
32053
|
...atCandidate.map(siteLine2),
|
|
32045
32054
|
`Closes (${delta.closed.length}):`,
|
|
@@ -48424,7 +48433,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48424
48433
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48425
48434
|
|
|
48426
48435
|
// package.json
|
|
48427
|
-
var version2 = "0.4.
|
|
48436
|
+
var version2 = "0.4.31";
|
|
48428
48437
|
|
|
48429
48438
|
// src/server.ts
|
|
48430
48439
|
var SERVER_VERSION = version2;
|