@subseam/mcp 0.4.15 → 0.4.16

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.
Files changed (2) hide show
  1. package/dist/main.js +8 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -31929,19 +31929,22 @@ var defineProposalReadTool = {
31929
31929
  init_esm_shims();
31930
31930
  var input9 = external_exports.object({
31931
31931
  taskId: external_exports.string().uuid(),
31932
- sha: external_exports.string().regex(/^[0-9a-f]{40}$/),
31933
- gitDir: external_exports.string().startsWith("/")
31932
+ files: external_exports.array(external_exports.object({ path: external_exports.string().min(1), content: external_exports.string().nullable() })).min(1).optional(),
31933
+ sha: external_exports.string().regex(/^[0-9a-f]{40}$/).optional(),
31934
+ gitDir: external_exports.string().startsWith("/").optional()
31934
31935
  });
31935
31936
  var site2 = external_exports.object({ definitionName: external_exports.string(), path: external_exports.string(), line: external_exports.number(), cause: external_exports.string() });
31936
31937
  var siteLine2 = (d) => ` ${d.definitionName} at ${d.path}:${d.line} \u2014 ${d.cause}`;
31937
31938
  var defineProposalCheckTool = {
31938
31939
  name: "define_proposal_check",
31939
- description: "Before submitting a fill for a PR-check proposal, ask what the check would say about your candidate: commit your worktree on the PR head (git write-tree, then git commit-tree <tree> -p <headSha>) and pass that sha with your git directory. Answers the divergences still standing at the candidate, the ones it closes and the ones it opens. Records nothing.",
31940
+ 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.",
31940
31941
  capability: "decision",
31941
31942
  inputSchema: input9.shape,
31942
31943
  async handler(raw, ctx) {
31943
31944
  const args2 = input9.parse(raw);
31944
- const wire = await ctx.gateway.invoke("decision-proposal-check", args2);
31945
+ 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;
31946
+ if (candidate === null) return { text: "define_proposal_check: pass `files`, the file-set you would submit as the fill." };
31947
+ const wire = await ctx.gateway.invoke("decision-proposal-check", candidate);
31945
31948
  const body2 = readBody(
31946
31949
  external_exports.object({
31947
31950
  delta: external_exports.object({
@@ -48341,7 +48344,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
48341
48344
  var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
48342
48345
 
48343
48346
  // package.json
48344
- var version2 = "0.4.15";
48347
+ var version2 = "0.4.16";
48345
48348
 
48346
48349
  // src/server.ts
48347
48350
  var SERVER_VERSION = version2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subseam/mcp",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {