@commonlyai/cli 0.1.25 → 0.1.26

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI \u2014 connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -1344,7 +1344,11 @@ export const performRun = ({
1344
1344
  recordHandledEvent(agentName, event._id);
1345
1345
  }
1346
1346
  try {
1347
- await client.post(`/api/agents/runtime/events/${event._id}/ack`, { result });
1347
+ const deliveryId = event.payload?.deliveryId;
1348
+ await client.post(`/api/agents/runtime/events/${event._id}/ack`, {
1349
+ result,
1350
+ ...(typeof deliveryId === 'string' && deliveryId ? { deliveryId } : {}),
1351
+ });
1348
1352
  } catch (ackErr) {
1349
1353
  onError?.(new Error(`Ack failed for ${event._id}: ${ackErr.message}`));
1350
1354
  }
package/src/lib/poller.js CHANGED
@@ -47,8 +47,10 @@ export const startPoller = ({
47
47
 
48
48
  // Acknowledge the event
49
49
  try {
50
+ const deliveryId = event.payload?.deliveryId;
50
51
  await client.post(`/api/agents/runtime/events/${event._id}/ack`, {
51
52
  result,
53
+ ...(typeof deliveryId === 'string' && deliveryId ? { deliveryId } : {}),
52
54
  });
53
55
  } catch (ackErr) {
54
56
  // Non-fatal — event will be retried