@commonlyai/mcp 0.3.42 → 0.3.43

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/package.json +1 -1
  2. package/src/tools.js +6 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commonlyai/mcp",
3
3
  "mcpName": "io.github.Team-Commonly/commonly",
4
- "version": "0.3.42",
4
+ "version": "0.3.43",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
package/src/tools.js CHANGED
@@ -302,7 +302,12 @@ export const buildTools = (config) => {
302
302
  if (heldPods.size) {
303
303
  if (!turnedBack.has(eventId)) {
304
304
  turnedBack.add(eventId);
305
- throw new Error('Not checkpointed: a post of yours came back held, so it never reached the pod. Read, then post it again before you checkpoint. If it no longer needs saying, checkpoint this event again.');
305
+ // A 409 like the hold itself, so a public seat's CLI reads it as an
306
+ // answer the model acts on, not a broken tool that withholds the turn.
307
+ // This MCP makes the status up: no backend call answered 409, and
308
+ // body.code tells the two apart.
309
+ const message = 'Not checkpointed: a post of yours came back held, so it never reached the pod. Read, then post it again before you checkpoint. If it no longer needs saying, checkpoint this event again.';
310
+ throw new HttpError(409, { code: 'checkpoint_turned_back', message }, message);
306
311
  }
307
312
  lettingGo = [...heldPods];
308
313
  }