@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.
- package/package.json +1 -1
- package/src/tools.js +6 -1
package/package.json
CHANGED
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
|
-
|
|
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
|
}
|