@agenticmail/api 0.9.24 → 0.9.25

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/dist/index.js +40 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5467,6 +5467,46 @@ function createDispatcherActivityRoutes() {
5467
5467
  };
5468
5468
  res.json({ ok: true });
5469
5469
  });
5470
+ router.post("/dispatcher/bridge-skipped", requireMaster, (req, res) => {
5471
+ const body = req.body ?? {};
5472
+ pushSystemEvent({
5473
+ type: "bridge_skipped",
5474
+ agentName: typeof body.agentName === "string" ? body.agentName : void 0,
5475
+ uid: typeof body.uid === "number" ? body.uid : void 0,
5476
+ reason: typeof body.reason === "string" ? body.reason : "operator-live"
5477
+ });
5478
+ res.json({ ok: true });
5479
+ });
5480
+ router.post("/dispatcher/bridge-resumed", requireMaster, (req, res) => {
5481
+ const body = req.body ?? {};
5482
+ pushSystemEvent({
5483
+ type: "bridge_resumed",
5484
+ agentName: typeof body.agentName === "string" ? body.agentName : void 0,
5485
+ uid: typeof body.uid === "number" ? body.uid : void 0,
5486
+ subject: typeof body.subject === "string" ? body.subject : void 0,
5487
+ from: typeof body.from === "string" ? body.from : void 0,
5488
+ durationMs: typeof body.durationMs === "number" ? body.durationMs : void 0,
5489
+ resultPreview: typeof body.resultPreview === "string" ? body.resultPreview : void 0
5490
+ });
5491
+ res.json({ ok: true });
5492
+ });
5493
+ router.post("/dispatcher/bridge-escalation", requireMaster, (req, res) => {
5494
+ const body = req.body ?? {};
5495
+ const event = {
5496
+ type: "bridge_escalation",
5497
+ urgent: true,
5498
+ agentName: typeof body.agentName === "string" ? body.agentName : void 0,
5499
+ uid: typeof body.uid === "number" ? body.uid : void 0,
5500
+ subject: typeof body.subject === "string" ? body.subject : void 0,
5501
+ from: typeof body.from === "string" ? body.from : void 0,
5502
+ preview: typeof body.preview === "string" ? body.preview : void 0,
5503
+ reason: typeof body.reason === "string" ? body.reason : "unknown",
5504
+ errorMessage: typeof body.errorMessage === "string" ? body.errorMessage : void 0,
5505
+ atMs: Date.now()
5506
+ };
5507
+ pushSystemEvent(event);
5508
+ res.json({ ok: true, escalated: true });
5509
+ });
5470
5510
  router.post("/dispatcher/worker-skipped", requireMaster, (req, res) => {
5471
5511
  const body = req.body ?? {};
5472
5512
  if (typeof body.agentName !== "string" || typeof body.reason !== "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/api",
3
- "version": "0.9.24",
3
+ "version": "0.9.25",
4
4
  "description": "REST API server for AgenticMail — email and SMS endpoints for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "prepublishOnly": "npm run build"
29
29
  },
30
30
  "dependencies": {
31
- "@agenticmail/core": "^0.9.5",
31
+ "@agenticmail/core": "^0.9.6",
32
32
  "cors": "^2.8.5",
33
33
  "dotenv": "^16.4.7",
34
34
  "express": "^4.21.0",