@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.
- package/dist/agent/runner.d.ts +25 -4
- package/dist/agent/runner.d.ts.map +1 -1
- package/dist/agent/runner.js +4 -0
- package/dist/agent/runner.js.map +1 -1
- package/dist/api/router.d.ts.map +1 -1
- package/dist/api/router.js +14 -0
- package/dist/api/router.js.map +1 -1
- package/dist/automation/browser-outcome.d.ts +3 -1
- package/dist/automation/browser-outcome.d.ts.map +1 -1
- package/dist/automation/browser-outcome.js +2 -2
- package/dist/automation/browser-outcome.js.map +1 -1
- package/dist/automation/command-speech.d.ts +9 -1
- package/dist/automation/command-speech.d.ts.map +1 -1
- package/dist/automation/command-speech.js +18 -0
- package/dist/automation/command-speech.js.map +1 -1
- package/dist/automation/command-steps.d.ts +2 -0
- package/dist/automation/command-steps.d.ts.map +1 -1
- package/dist/automation/command-steps.js +34 -2
- package/dist/automation/command-steps.js.map +1 -1
- package/dist/automation/computer-command.d.ts +1 -0
- package/dist/automation/computer-command.d.ts.map +1 -1
- package/dist/automation/computer-command.js +31 -5
- package/dist/automation/computer-command.js.map +1 -1
- package/dist/automation/computer-outcome.d.ts +26 -3
- package/dist/automation/computer-outcome.d.ts.map +1 -1
- package/dist/automation/computer-outcome.js +183 -13
- package/dist/automation/computer-outcome.js.map +1 -1
- package/dist/automation/computer-policy.d.ts +10 -1
- package/dist/automation/computer-policy.d.ts.map +1 -1
- package/dist/automation/computer-policy.js +20 -6
- package/dist/automation/computer-policy.js.map +1 -1
- package/dist/automation/computer-use.d.ts +34 -0
- package/dist/automation/computer-use.d.ts.map +1 -1
- package/dist/automation/computer-use.js +211 -17
- package/dist/automation/computer-use.js.map +1 -1
- package/dist/automation/direct-command.d.ts +8 -0
- package/dist/automation/direct-command.d.ts.map +1 -1
- package/dist/automation/direct-command.js +12 -0
- package/dist/automation/direct-command.js.map +1 -1
- package/dist/automation/model-choice-evaluator.d.ts +3 -0
- package/dist/automation/model-choice-evaluator.d.ts.map +1 -1
- package/dist/automation/model-choice-evaluator.js +3 -1
- package/dist/automation/model-choice-evaluator.js.map +1 -1
- package/dist/automation/vision-decider.d.ts +4 -2
- package/dist/automation/vision-decider.d.ts.map +1 -1
- package/dist/automation/vision-decider.js +69 -15
- package/dist/automation/vision-decider.js.map +1 -1
- package/dist/build-provenance.json +4 -4
- package/dist/jev/browser-contract.d.ts +3 -0
- package/dist/jev/browser-contract.d.ts.map +1 -1
- package/dist/jev/browser-contract.js +6 -0
- package/dist/jev/browser-contract.js.map +1 -1
- package/dist/orchestration/agent-tool-schemas.d.ts +18 -0
- package/dist/orchestration/agent-tool-schemas.d.ts.map +1 -1
- package/dist/orchestration/agent-tool-schemas.js +11 -3
- package/dist/orchestration/agent-tool-schemas.js.map +1 -1
- package/dist/orchestration/bridge.d.ts.map +1 -1
- package/dist/orchestration/bridge.js +25 -5
- package/dist/orchestration/bridge.js.map +1 -1
- package/dist/orchestration/browser-routing.d.ts.map +1 -1
- package/dist/orchestration/browser-routing.js +2 -1
- package/dist/orchestration/browser-routing.js.map +1 -1
- package/dist/orchestration/computer-decisions.d.ts +1 -1
- package/dist/orchestration/computer-decisions.d.ts.map +1 -1
- package/dist/orchestration/computer-decisions.js +21 -7
- package/dist/orchestration/computer-decisions.js.map +1 -1
- package/dist/orchestration/computer-live.d.ts +62 -0
- package/dist/orchestration/computer-live.d.ts.map +1 -0
- package/dist/orchestration/computer-live.js +126 -0
- package/dist/orchestration/computer-live.js.map +1 -0
- package/dist/orchestration/container-tool-schemas.d.ts.map +1 -1
- package/dist/orchestration/container-tool-schemas.js +3 -0
- package/dist/orchestration/container-tool-schemas.js.map +1 -1
- package/dist/orchestration/decisions.d.ts +3 -1
- package/dist/orchestration/decisions.d.ts.map +1 -1
- package/dist/orchestration/decisions.js +4 -2
- package/dist/orchestration/decisions.js.map +1 -1
- package/dist/orchestration/gateway-tasks/browser.d.ts +1 -1
- package/dist/orchestration/gateway-tasks/browser.d.ts.map +1 -1
- package/dist/orchestration/gateway-tasks/browser.js +4 -3
- package/dist/orchestration/gateway-tasks/browser.js.map +1 -1
- package/dist/orchestration/gateway-tasks/computer-context.d.ts +4 -1
- package/dist/orchestration/gateway-tasks/computer-context.d.ts.map +1 -1
- package/dist/orchestration/gateway-tasks/computer-context.js +3 -1
- package/dist/orchestration/gateway-tasks/computer-context.js.map +1 -1
- package/dist/orchestration/gateway-tasks/computer.d.ts +78 -15
- package/dist/orchestration/gateway-tasks/computer.d.ts.map +1 -1
- package/dist/orchestration/gateway-tasks/computer.js +298 -31
- package/dist/orchestration/gateway-tasks/computer.js.map +1 -1
- package/dist/orchestration/gateway-tasks/controller.d.ts +14 -2
- package/dist/orchestration/gateway-tasks/controller.d.ts.map +1 -1
- package/dist/orchestration/gateway-tasks/controller.js +63 -2
- package/dist/orchestration/gateway-tasks/controller.js.map +1 -1
- package/dist/orchestration/notification-mailbox.js +3 -3
- package/dist/orchestration/notification-mailbox.js.map +1 -1
- package/dist/orchestration/process-turn.d.ts.map +1 -1
- package/dist/orchestration/process-turn.js +4 -1
- package/dist/orchestration/process-turn.js.map +1 -1
- package/dist/orchestration/runtime.d.ts +22 -1
- package/dist/orchestration/runtime.d.ts.map +1 -1
- package/dist/orchestration/runtime.js +83 -7
- package/dist/orchestration/runtime.js.map +1 -1
- package/dist/orchestration/task-controls.d.ts +8 -0
- package/dist/orchestration/task-controls.d.ts.map +1 -1
- package/dist/orchestration/task-controls.js +3 -2
- package/dist/orchestration/task-controls.js.map +1 -1
- package/dist/orchestration/tasks/automation-session.d.ts +42 -11
- package/dist/orchestration/tasks/automation-session.d.ts.map +1 -1
- package/dist/orchestration/tasks/automation-session.js +101 -21
- package/dist/orchestration/tasks/automation-session.js.map +1 -1
- package/dist/orchestration/tasks/service.d.ts +23 -0
- package/dist/orchestration/tasks/service.d.ts.map +1 -1
- package/dist/orchestration/tasks/service.js +120 -12
- package/dist/orchestration/tasks/service.js.map +1 -1
- package/dist/orchestration/telegram-tool-status.d.ts.map +1 -1
- package/dist/orchestration/telegram-tool-status.js +2 -0
- package/dist/orchestration/telegram-tool-status.js.map +1 -1
- package/dist/orchestration/types.d.ts +19 -0
- package/dist/orchestration/types.d.ts.map +1 -1
- package/dist/orchestration/types.js.map +1 -1
- package/dist/session/runtime-profile.d.ts +2 -0
- package/dist/session/runtime-profile.d.ts.map +1 -1
- package/dist/session/runtime-profile.js.map +1 -1
- package/dist/ui/voice-call-client.d.ts +3 -0
- package/dist/ui/voice-call-client.d.ts.map +1 -1
- package/dist/ui/voice-call-client.js +10 -1
- package/dist/ui/voice-call-client.js.map +1 -1
- package/dist/voice/errors.js +1 -1
- package/dist/voice/errors.js.map +1 -1
- package/dist/voice/providers/elevenlabs-tts.d.ts.map +1 -1
- package/dist/voice/providers/elevenlabs-tts.js +17 -1
- package/dist/voice/providers/elevenlabs-tts.js.map +1 -1
- package/dist/voice/providers/socket.js +25 -6
- package/dist/voice/providers/socket.js.map +1 -1
- package/dist/voice/session.js +3 -2
- package/dist/voice/session.js.map +1 -1
- package/mcp/server.ts +1 -1
- package/mcp/tools/tasks/module.ts +2 -1
- package/package.json +1 -1
package/dist/api/router.d.ts.map
CHANGED
|
@@ -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;AASpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAe,WAAW,EAAe,MAAM,UAAU,CAAC;AA2FtF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAExD;AAMD,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEtD;AAkFD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CA4CjD;AAmUD,wBAAgB,eAAe,CAC7B,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EACtC,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,
|
|
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;AASpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAe,WAAW,EAAe,MAAM,UAAU,CAAC;AA2FtF,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAExD;AAMD,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEtD;AAkFD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,CA4CjD;AAmUD,wBAAgB,eAAe,CAC7B,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EACtC,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"}
|
package/dist/api/router.js
CHANGED
|
@@ -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;
|