@0xmaxma/claude-gateway 2.1.9 → 2.1.10

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 (139) hide show
  1. package/dist/agent/runner.d.ts +25 -4
  2. package/dist/agent/runner.d.ts.map +1 -1
  3. package/dist/agent/runner.js +4 -0
  4. package/dist/agent/runner.js.map +1 -1
  5. package/dist/api/router.d.ts.map +1 -1
  6. package/dist/api/router.js +14 -0
  7. package/dist/api/router.js.map +1 -1
  8. package/dist/automation/browser-outcome.d.ts +3 -1
  9. package/dist/automation/browser-outcome.d.ts.map +1 -1
  10. package/dist/automation/browser-outcome.js +2 -2
  11. package/dist/automation/browser-outcome.js.map +1 -1
  12. package/dist/automation/command-speech.d.ts +9 -1
  13. package/dist/automation/command-speech.d.ts.map +1 -1
  14. package/dist/automation/command-speech.js +18 -0
  15. package/dist/automation/command-speech.js.map +1 -1
  16. package/dist/automation/command-steps.d.ts +2 -0
  17. package/dist/automation/command-steps.d.ts.map +1 -1
  18. package/dist/automation/command-steps.js +34 -2
  19. package/dist/automation/command-steps.js.map +1 -1
  20. package/dist/automation/computer-command.d.ts +1 -0
  21. package/dist/automation/computer-command.d.ts.map +1 -1
  22. package/dist/automation/computer-command.js +31 -5
  23. package/dist/automation/computer-command.js.map +1 -1
  24. package/dist/automation/computer-outcome.d.ts +26 -3
  25. package/dist/automation/computer-outcome.d.ts.map +1 -1
  26. package/dist/automation/computer-outcome.js +183 -13
  27. package/dist/automation/computer-outcome.js.map +1 -1
  28. package/dist/automation/computer-policy.d.ts +10 -1
  29. package/dist/automation/computer-policy.d.ts.map +1 -1
  30. package/dist/automation/computer-policy.js +20 -6
  31. package/dist/automation/computer-policy.js.map +1 -1
  32. package/dist/automation/computer-use.d.ts +34 -0
  33. package/dist/automation/computer-use.d.ts.map +1 -1
  34. package/dist/automation/computer-use.js +211 -17
  35. package/dist/automation/computer-use.js.map +1 -1
  36. package/dist/automation/direct-command.d.ts +8 -0
  37. package/dist/automation/direct-command.d.ts.map +1 -1
  38. package/dist/automation/direct-command.js +12 -0
  39. package/dist/automation/direct-command.js.map +1 -1
  40. package/dist/automation/model-choice-evaluator.d.ts +3 -0
  41. package/dist/automation/model-choice-evaluator.d.ts.map +1 -1
  42. package/dist/automation/model-choice-evaluator.js +3 -1
  43. package/dist/automation/model-choice-evaluator.js.map +1 -1
  44. package/dist/automation/vision-decider.d.ts +4 -2
  45. package/dist/automation/vision-decider.d.ts.map +1 -1
  46. package/dist/automation/vision-decider.js +69 -15
  47. package/dist/automation/vision-decider.js.map +1 -1
  48. package/dist/build-provenance.json +4 -4
  49. package/dist/jev/browser-contract.d.ts +3 -0
  50. package/dist/jev/browser-contract.d.ts.map +1 -1
  51. package/dist/jev/browser-contract.js +6 -0
  52. package/dist/jev/browser-contract.js.map +1 -1
  53. package/dist/orchestration/agent-tool-schemas.d.ts +18 -0
  54. package/dist/orchestration/agent-tool-schemas.d.ts.map +1 -1
  55. package/dist/orchestration/agent-tool-schemas.js +11 -3
  56. package/dist/orchestration/agent-tool-schemas.js.map +1 -1
  57. package/dist/orchestration/bridge.d.ts.map +1 -1
  58. package/dist/orchestration/bridge.js +25 -5
  59. package/dist/orchestration/bridge.js.map +1 -1
  60. package/dist/orchestration/browser-routing.d.ts.map +1 -1
  61. package/dist/orchestration/browser-routing.js +2 -1
  62. package/dist/orchestration/browser-routing.js.map +1 -1
  63. package/dist/orchestration/computer-decisions.d.ts +1 -1
  64. package/dist/orchestration/computer-decisions.d.ts.map +1 -1
  65. package/dist/orchestration/computer-decisions.js +21 -7
  66. package/dist/orchestration/computer-decisions.js.map +1 -1
  67. package/dist/orchestration/computer-live.d.ts +62 -0
  68. package/dist/orchestration/computer-live.d.ts.map +1 -0
  69. package/dist/orchestration/computer-live.js +126 -0
  70. package/dist/orchestration/computer-live.js.map +1 -0
  71. package/dist/orchestration/container-tool-schemas.d.ts.map +1 -1
  72. package/dist/orchestration/container-tool-schemas.js +3 -0
  73. package/dist/orchestration/container-tool-schemas.js.map +1 -1
  74. package/dist/orchestration/decisions.d.ts +3 -1
  75. package/dist/orchestration/decisions.d.ts.map +1 -1
  76. package/dist/orchestration/decisions.js +4 -2
  77. package/dist/orchestration/decisions.js.map +1 -1
  78. package/dist/orchestration/gateway-tasks/browser.d.ts +1 -1
  79. package/dist/orchestration/gateway-tasks/browser.d.ts.map +1 -1
  80. package/dist/orchestration/gateway-tasks/browser.js +4 -3
  81. package/dist/orchestration/gateway-tasks/browser.js.map +1 -1
  82. package/dist/orchestration/gateway-tasks/computer-context.d.ts +4 -1
  83. package/dist/orchestration/gateway-tasks/computer-context.d.ts.map +1 -1
  84. package/dist/orchestration/gateway-tasks/computer-context.js +3 -1
  85. package/dist/orchestration/gateway-tasks/computer-context.js.map +1 -1
  86. package/dist/orchestration/gateway-tasks/computer.d.ts +78 -15
  87. package/dist/orchestration/gateway-tasks/computer.d.ts.map +1 -1
  88. package/dist/orchestration/gateway-tasks/computer.js +298 -31
  89. package/dist/orchestration/gateway-tasks/computer.js.map +1 -1
  90. package/dist/orchestration/gateway-tasks/controller.d.ts +14 -2
  91. package/dist/orchestration/gateway-tasks/controller.d.ts.map +1 -1
  92. package/dist/orchestration/gateway-tasks/controller.js +63 -2
  93. package/dist/orchestration/gateway-tasks/controller.js.map +1 -1
  94. package/dist/orchestration/notification-mailbox.js +3 -3
  95. package/dist/orchestration/notification-mailbox.js.map +1 -1
  96. package/dist/orchestration/process-turn.d.ts.map +1 -1
  97. package/dist/orchestration/process-turn.js +4 -1
  98. package/dist/orchestration/process-turn.js.map +1 -1
  99. package/dist/orchestration/runtime.d.ts +22 -1
  100. package/dist/orchestration/runtime.d.ts.map +1 -1
  101. package/dist/orchestration/runtime.js +83 -7
  102. package/dist/orchestration/runtime.js.map +1 -1
  103. package/dist/orchestration/task-controls.d.ts +8 -0
  104. package/dist/orchestration/task-controls.d.ts.map +1 -1
  105. package/dist/orchestration/task-controls.js +3 -2
  106. package/dist/orchestration/task-controls.js.map +1 -1
  107. package/dist/orchestration/tasks/automation-session.d.ts +42 -11
  108. package/dist/orchestration/tasks/automation-session.d.ts.map +1 -1
  109. package/dist/orchestration/tasks/automation-session.js +101 -21
  110. package/dist/orchestration/tasks/automation-session.js.map +1 -1
  111. package/dist/orchestration/tasks/service.d.ts +23 -0
  112. package/dist/orchestration/tasks/service.d.ts.map +1 -1
  113. package/dist/orchestration/tasks/service.js +120 -12
  114. package/dist/orchestration/tasks/service.js.map +1 -1
  115. package/dist/orchestration/telegram-tool-status.d.ts.map +1 -1
  116. package/dist/orchestration/telegram-tool-status.js +2 -0
  117. package/dist/orchestration/telegram-tool-status.js.map +1 -1
  118. package/dist/orchestration/types.d.ts +19 -0
  119. package/dist/orchestration/types.d.ts.map +1 -1
  120. package/dist/orchestration/types.js.map +1 -1
  121. package/dist/session/runtime-profile.d.ts +2 -0
  122. package/dist/session/runtime-profile.d.ts.map +1 -1
  123. package/dist/session/runtime-profile.js.map +1 -1
  124. package/dist/ui/voice-call-client.d.ts +3 -0
  125. package/dist/ui/voice-call-client.d.ts.map +1 -1
  126. package/dist/ui/voice-call-client.js +10 -1
  127. package/dist/ui/voice-call-client.js.map +1 -1
  128. package/dist/voice/errors.js +1 -1
  129. package/dist/voice/errors.js.map +1 -1
  130. package/dist/voice/providers/elevenlabs-tts.d.ts.map +1 -1
  131. package/dist/voice/providers/elevenlabs-tts.js +17 -1
  132. package/dist/voice/providers/elevenlabs-tts.js.map +1 -1
  133. package/dist/voice/providers/socket.js +25 -6
  134. package/dist/voice/providers/socket.js.map +1 -1
  135. package/dist/voice/session.js +3 -2
  136. package/dist/voice/session.js.map +1 -1
  137. package/mcp/server.ts +1 -1
  138. package/mcp/tools/tasks/module.ts +2 -1
  139. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/api/router.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAW,QAAQ,EAAE,MAAM,SAAS,CAAC;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YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EACtC,OAAO,EAAE,MAAM,EAAE,EACjB,UAAU,CAAC,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,WAAW,EAAE,GAAG,CAAC,MAAM,WAAW,EAAE,GAAG,SAAS,CAAC,GACzD,MAAM,CA02IR"}
@@ -5239,6 +5239,20 @@ function createApiRouter(agentRunners, agentConfigs, apiKeys, configPath, models
5239
5239
  res.status(403).json({ error: 'Task unavailable for this principal' });
5240
5240
  }
5241
5241
  });
5242
+ // The desktop app's on-screen overlay (getpod-app overlay.ts) asks what the run controlling it is doing. The relay
5243
+ // forwards no extra command fields, so the app reads it here through its pod, keyed by its own relay grant.
5244
+ router.get('/v1/computer/activity', auth, (req, res) => {
5245
+ const apiKey = req.apiKey;
5246
+ const grantId = typeof req.query.grant_id === 'string' ? req.query.grant_id : '';
5247
+ if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(grantId)) {
5248
+ res.status(400).json({ error: 'grant_id must be a UUID' });
5249
+ return;
5250
+ }
5251
+ const runs = [...agentRunners].filter(([agentId]) => (0, auth_1.canAccessAgent)(apiKey, agentId))
5252
+ .flatMap(([, runner]) => { const run = runner.computerActivity(grantId, (0, identity_1.apiPrincipal)(apiKey)); return run ? [run] : []; })
5253
+ .sort((a, b) => b.updatedAt - a.updatedAt);
5254
+ res.set('Cache-Control', 'no-store').json({ run: runs[0] ?? null });
5255
+ });
5242
5256
  router.get('/v1/agents/:agentId/sessions/:sessionId/activity', auth, async (req, res) => {
5243
5257
  const { agentId, sessionId } = req.params;
5244
5258
  const apiKey = req.apiKey;