@biznetgio/neo-app 0.4.47 → 0.4.48
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/mcp/tools.js +3 -1
package/package.json
CHANGED
package/src/mcp/tools.js
CHANGED
|
@@ -1293,7 +1293,9 @@ export const TOOLS = [
|
|
|
1293
1293
|
required: ['planId', 'planHash', 'confirmationId'],
|
|
1294
1294
|
},
|
|
1295
1295
|
async call(api, args) {
|
|
1296
|
-
|
|
1296
|
+
// Always send an idempotency key (reuse the same one on a retry to dedup/resume).
|
|
1297
|
+
const idempotencyKey = args.idempotencyKey || `idem-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
|
|
1298
|
+
const { status, data } = await api.post(`/api/v1/plans/${args.planId}/apply`, { planHash: args.planHash, confirmationId: args.confirmationId, idempotencyKey });
|
|
1297
1299
|
return redactSecrets(result(status, data));
|
|
1298
1300
|
},
|
|
1299
1301
|
},
|