@bendyline/gezel-mcp 1.2.13 → 1.2.14

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/harness.js CHANGED
@@ -90,7 +90,7 @@ import { z as z3 } from "zod";
90
90
 
91
91
  // src/harness/docblocks-tools.json
92
92
  var docblocks_tools_default = {
93
- docblocksVersion: "2.7.5",
93
+ docblocksVersion: "2.7.13",
94
94
  tools: [
95
95
  {
96
96
  name: "convert_document",
@@ -842,21 +842,25 @@ var docblocks_tools_default = {
842
842
  type: "string",
843
843
  minLength: 1,
844
844
  maxLength: 256,
845
- pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
845
+ pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
846
+ description: "A write root id from list_roots."
846
847
  },
847
848
  path: {
848
849
  type: "string",
849
850
  minLength: 1,
850
851
  maxLength: 4096,
851
- pattern: "^(?!\\/)(?![A-Za-z]:)(?!.*(?:^|\\/)(?:\\.{1,2})(?:\\/|$))(?!.*\\/\\/)(?!.*[\\\\\\u0000-\\u001f\\u007f])(?!.*\\/$).+$"
852
+ pattern: "^(?!\\/)(?![A-Za-z]:)(?!.*(?:^|\\/)(?:\\.{1,2})(?:\\/|$))(?!.*\\/\\/)(?!.*[\\\\\\u0000-\\u001f\\u007f])(?!.*\\/$).+$",
853
+ description: "Path below that root."
852
854
  },
853
855
  ifExists: {
854
856
  type: "string",
855
- const: "error"
857
+ const: "error",
858
+ description: "Create the file; fails if one is already there."
856
859
  },
857
860
  expectedSha256: {
858
861
  type: "null",
859
- default: null
862
+ default: null,
863
+ description: "Omit or null when creating a file."
860
864
  }
861
865
  },
862
866
  required: ["rootId", "path", "ifExists"],
@@ -866,18 +870,25 @@ var docblocks_tools_default = {
866
870
  type: "object",
867
871
  properties: {
868
872
  rootId: {
869
- $ref: "#/properties/destination/anyOf/0/properties/rootId"
873
+ type: "string",
874
+ minLength: 1,
875
+ maxLength: 256,
876
+ pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
877
+ description: "A write root id from list_roots."
870
878
  },
871
879
  path: {
872
- $ref: "#/properties/destination/anyOf/0/properties/path"
880
+ $ref: "#/properties/destination/anyOf/0/properties/path",
881
+ description: "Path below that root."
873
882
  },
874
883
  ifExists: {
875
884
  type: "string",
876
- const: "replace"
885
+ const: "replace",
886
+ description: "Replace the file already at this path; fails if nothing is there."
877
887
  },
878
888
  expectedSha256: {
879
889
  type: "string",
880
- pattern: "^[a-f0-9]{64}$"
890
+ pattern: "^[a-f0-9]{64}$",
891
+ description: "SHA-256 of the file now at this path (the sha256 returned when it was saved), not of the artifact being saved."
881
892
  }
882
893
  },
883
894
  required: ["rootId", "path", "ifExists", "expectedSha256"],
package/dist/server.js CHANGED
@@ -3838,10 +3838,20 @@ function taskStepMutationRejection(scope) {
3838
3838
  return `Step "${sessionStepId2}" on ${taskRef} no longer owns project writes.${active} ${yieldTo} Do not rewrite, append to, move, or delete the completed step's deliverable.`;
3839
3839
  }
3840
3840
  function staleTaskStepRefusal(err) {
3841
+ return daemonRefusal(err, "stale_task_step");
3842
+ }
3843
+ function checkInTurnRefusal(err) {
3844
+ return daemonRefusal(err, "check_in_turn");
3845
+ }
3846
+ function checkInTurnResult(err) {
3847
+ const hint = checkInTurnRefusal(err);
3848
+ return hint ? errorResult(hint, { code: "check_in_turn", retryable: false }) : null;
3849
+ }
3850
+ function daemonRefusal(err, code) {
3841
3851
  const details = err?.details;
3842
3852
  if (!details || typeof details !== "object") return null;
3843
3853
  const { error, hint } = details;
3844
- return error === "stale_task_step" && typeof hint === "string" && hint.trim() ? hint : null;
3854
+ return error === code && typeof hint === "string" && hint.trim() ? hint : null;
3845
3855
  }
3846
3856
  function sessionReboundToCurrentPass(args) {
3847
3857
  return args.activeStepId === args.sessionStepId && !!args.activeStepActivation && args.sessionActivation === args.activeStepActivation;
@@ -8748,6 +8758,8 @@ async function runInvokeCraftbook({
8748
8758
  }
8749
8759
  );
8750
8760
  } catch (err) {
8761
+ const checkIn = checkInTurnResult(err);
8762
+ if (checkIn) return checkIn;
8751
8763
  const details = err.details;
8752
8764
  if (details?.code === "task-input" && typeof details.param === "string") {
8753
8765
  const paramSchema = await api.listProjectCraftbooks(resolvedProject).then((listing) => {
@@ -11589,7 +11601,7 @@ server.tool(
11589
11601
  { text }
11590
11602
  );
11591
11603
  } catch (err) {
11592
- return errorResult(`create_task failed: ${unwrapApiError(err)}`);
11604
+ return checkInTurnResult(err) ?? errorResult(`create_task failed: ${unwrapApiError(err)}`);
11593
11605
  }
11594
11606
  }
11595
11607
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/gezel-mcp",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "Gezel's Model Context Protocol server: gives gezels and other MCP clients access to memory, workspace files, artifacts, tasks, and team tools.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -56,8 +56,8 @@
56
56
  "!dist/**/*.map"
57
57
  ],
58
58
  "dependencies": {
59
- "@bendyline/gezel": "1.2.13",
60
- "@bendyline/gezel-client": "1.2.13",
59
+ "@bendyline/gezel": "1.2.14",
60
+ "@bendyline/gezel-client": "1.2.14",
61
61
  "@modelcontextprotocol/sdk": "1.32.2",
62
62
  "typescript": "^6.0.3",
63
63
  "zod": "4.6.7"