@subseam/mcp 0.4.21 → 0.4.23
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 +23 -20
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -31996,39 +31996,42 @@ var defineProposalReadTool = {
|
|
|
31996
31996
|
// ../define/src/tool/proposal-check.ts
|
|
31997
31997
|
init_esm_shims();
|
|
31998
31998
|
var input9 = external_exports.object({
|
|
31999
|
-
|
|
31999
|
+
// Reads a check a prior call left measuring; takes no candidate beside it.
|
|
32000
|
+
checkId: external_exports.string().min(1).optional(),
|
|
32001
|
+
taskId: external_exports.string().uuid().optional(),
|
|
32000
32002
|
files: external_exports.array(external_exports.object({ path: external_exports.string().min(1), content: external_exports.string().nullable() })).min(1).optional(),
|
|
32001
32003
|
sha: external_exports.string().regex(/^[0-9a-f]{40}$/).optional(),
|
|
32002
32004
|
gitDir: external_exports.string().startsWith("/").optional()
|
|
32003
32005
|
});
|
|
32004
32006
|
var site2 = external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), line: external_exports.number(), cause: external_exports.string() });
|
|
32005
32007
|
var siteLine2 = (d) => ` ${d.definitionName} at ${d.path}:${d.line} \u2014 ${d.cause}`;
|
|
32008
|
+
var answer2 = external_exports.union([
|
|
32009
|
+
external_exports.object({
|
|
32010
|
+
ok: external_exports.literal(true),
|
|
32011
|
+
delta: external_exports.object({
|
|
32012
|
+
accepted: external_exports.boolean(),
|
|
32013
|
+
closed: external_exports.array(site2),
|
|
32014
|
+
regressions: external_exports.array(site2),
|
|
32015
|
+
newlyUncomputed: external_exports.array(external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), reason: external_exports.string() })),
|
|
32016
|
+
notComputed: external_exports.string().nullable()
|
|
32017
|
+
}),
|
|
32018
|
+
atCandidate: external_exports.array(site2)
|
|
32019
|
+
}),
|
|
32020
|
+
external_exports.object({ ok: external_exports.literal(false), status: external_exports.literal("pending"), checkId: external_exports.string(), wait: external_exports.string() })
|
|
32021
|
+
]);
|
|
32006
32022
|
var defineProposalCheckTool = {
|
|
32007
32023
|
name: "define_proposal_check",
|
|
32008
|
-
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. Records nothing.",
|
|
32024
|
+
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.",
|
|
32009
32025
|
capability: "decision",
|
|
32010
32026
|
inputSchema: input9.shape,
|
|
32011
32027
|
async handler(raw, ctx) {
|
|
32012
32028
|
const args2 = input9.parse(raw);
|
|
32013
|
-
const candidate = args2.files !== void 0 ? { taskId: args2.taskId, files: args2.files } : args2.sha !== void 0 && args2.gitDir !== void 0 ? { taskId: args2.taskId, sha: args2.sha, gitDir: args2.gitDir } : null;
|
|
32014
|
-
if (candidate === null) return { text: "define_proposal_check: pass `files`, the file-set you would submit as the fill." };
|
|
32029
|
+
const candidate = args2.checkId !== void 0 ? { checkId: args2.checkId } : args2.taskId === void 0 ? null : args2.files !== void 0 ? { taskId: args2.taskId, files: args2.files } : args2.sha !== void 0 && args2.gitDir !== void 0 ? { taskId: args2.taskId, sha: args2.sha, gitDir: args2.gitDir } : null;
|
|
32030
|
+
if (candidate === null) return { text: "define_proposal_check: pass `taskId` and `files`, the file-set you would submit as the fill, or `checkId` to read a check already asked." };
|
|
32015
32031
|
const wire = await ctx.gateway.invoke("decision-proposal-check", candidate);
|
|
32016
|
-
const body2 = readBody(
|
|
32017
|
-
external_exports.object({
|
|
32018
|
-
delta: external_exports.object({
|
|
32019
|
-
accepted: external_exports.boolean(),
|
|
32020
|
-
closed: external_exports.array(site2),
|
|
32021
|
-
regressions: external_exports.array(site2),
|
|
32022
|
-
newlyUncomputed: external_exports.array(external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), reason: external_exports.string() })),
|
|
32023
|
-
notComputed: external_exports.string().nullable()
|
|
32024
|
-
}),
|
|
32025
|
-
atCandidate: external_exports.array(site2)
|
|
32026
|
-
}),
|
|
32027
|
-
wire,
|
|
32028
|
-
"define_proposal_check",
|
|
32029
|
-
"decision-proposal-check"
|
|
32030
|
-
);
|
|
32032
|
+
const body2 = readBody(answer2, wire, "define_proposal_check", "decision-proposal-check");
|
|
32031
32033
|
if (!body2.ok) return { text: body2.text };
|
|
32034
|
+
if (!body2.value.ok) return { text: `define_proposal_check: still measuring (checkId ${body2.value.checkId}) \u2014 ${body2.value.wait}.` };
|
|
32032
32035
|
const { delta, atCandidate } = body2.value;
|
|
32033
32036
|
if (delta.notComputed !== null) return { text: `define_proposal_check: not computed \u2014 ${delta.notComputed}. This is not a pass.` };
|
|
32034
32037
|
return {
|
|
@@ -48412,7 +48415,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48412
48415
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48413
48416
|
|
|
48414
48417
|
// package.json
|
|
48415
|
-
var version2 = "0.4.
|
|
48418
|
+
var version2 = "0.4.23";
|
|
48416
48419
|
|
|
48417
48420
|
// src/server.ts
|
|
48418
48421
|
var SERVER_VERSION = version2;
|