agent-relay 7.1.1 → 8.0.0
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/README.md +24 -117
- package/dist/cli/agent-relay-mcp.d.ts +77 -0
- package/dist/cli/agent-relay-mcp.d.ts.map +1 -0
- package/dist/cli/agent-relay-mcp.js +1443 -0
- package/dist/cli/agent-relay-mcp.js.map +1 -0
- package/dist/cli/bootstrap.d.ts.map +1 -0
- package/dist/cli/bootstrap.js +353 -0
- package/dist/cli/bootstrap.js.map +1 -0
- package/dist/cli/commands/agent.d.ts +5 -0
- package/dist/cli/commands/agent.d.ts.map +1 -0
- package/dist/cli/commands/agent.js +45 -0
- package/dist/cli/commands/agent.js.map +1 -0
- package/dist/cli/commands/capabilities.d.ts +5 -0
- package/dist/cli/commands/capabilities.d.ts.map +1 -0
- package/dist/cli/commands/capabilities.js +37 -0
- package/dist/cli/commands/capabilities.js.map +1 -0
- package/dist/cli/commands/channel.d.ts +5 -0
- package/dist/cli/commands/channel.d.ts.map +1 -0
- package/dist/cli/commands/channel.js +60 -0
- package/dist/cli/commands/channel.js.map +1 -0
- package/dist/cli/commands/cloud.d.ts.map +1 -0
- package/dist/cli/commands/cloud.js +552 -0
- package/dist/cli/commands/cloud.js.map +1 -0
- package/dist/cli/commands/core.d.ts +102 -0
- package/dist/cli/commands/core.d.ts.map +1 -0
- package/dist/cli/commands/core.js +295 -0
- package/dist/cli/commands/core.js.map +1 -0
- package/dist/cli/commands/integration.d.ts +5 -0
- package/dist/cli/commands/integration.d.ts.map +1 -0
- package/dist/cli/commands/integration.js +66 -0
- package/dist/cli/commands/integration.js.map +1 -0
- package/dist/cli/commands/local-agent.d.ts +30 -0
- package/dist/cli/commands/local-agent.d.ts.map +1 -0
- package/dist/cli/commands/local-agent.js +179 -0
- package/dist/cli/commands/local-agent.js.map +1 -0
- package/dist/cli/commands/message.d.ts +5 -0
- package/dist/cli/commands/message.d.ts.map +1 -0
- package/dist/cli/commands/message.js +164 -0
- package/dist/cli/commands/message.js.map +1 -0
- package/dist/cli/commands/setup.d.ts +11 -0
- package/dist/cli/commands/setup.d.ts.map +1 -0
- package/dist/cli/commands/setup.js +62 -0
- package/dist/cli/commands/setup.js.map +1 -0
- package/dist/cli/commands/status.d.ts +24 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +54 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/workspace.d.ts +5 -0
- package/dist/cli/commands/workspace.d.ts.map +1 -0
- package/dist/cli/commands/workspace.js +66 -0
- package/dist/cli/commands/workspace.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/{src/cli → cli}/index.js +0 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/lib/agent-relay-mcp-command.d.ts +5 -0
- package/dist/cli/lib/agent-relay-mcp-command.d.ts.map +1 -0
- package/dist/cli/lib/agent-relay-mcp-command.js +13 -0
- package/dist/cli/lib/agent-relay-mcp-command.js.map +1 -0
- package/dist/cli/lib/attach-broker.d.ts +17 -0
- package/dist/cli/lib/attach-broker.d.ts.map +1 -0
- package/dist/cli/lib/attach-broker.js +21 -0
- package/dist/cli/lib/attach-broker.js.map +1 -0
- package/dist/cli/lib/attach-drive.d.ts +235 -0
- package/dist/cli/lib/attach-drive.d.ts.map +1 -0
- package/dist/cli/lib/attach-drive.js +566 -0
- package/dist/cli/lib/attach-drive.js.map +1 -0
- package/dist/cli/lib/attach-passthrough.d.ts +148 -0
- package/dist/cli/lib/attach-passthrough.d.ts.map +1 -0
- package/dist/cli/lib/attach-passthrough.js +393 -0
- package/dist/cli/lib/attach-passthrough.js.map +1 -0
- package/dist/cli/lib/attach-view.d.ts +101 -0
- package/dist/cli/lib/attach-view.d.ts.map +1 -0
- package/dist/cli/lib/attach-view.js +244 -0
- package/dist/cli/lib/attach-view.js.map +1 -0
- package/dist/cli/lib/attach.d.ts +140 -0
- package/dist/cli/lib/attach.d.ts.map +1 -0
- package/dist/cli/lib/attach.js +203 -0
- package/dist/cli/lib/attach.js.map +1 -0
- package/dist/cli/lib/broker-connection.d.ts +40 -0
- package/dist/cli/lib/broker-connection.d.ts.map +1 -0
- package/dist/cli/lib/broker-connection.js +82 -0
- package/dist/cli/lib/broker-connection.js.map +1 -0
- package/dist/cli/lib/broker-lifecycle.d.ts.map +1 -0
- package/dist/cli/lib/broker-lifecycle.js +1467 -0
- package/dist/cli/lib/broker-lifecycle.js.map +1 -0
- package/dist/cli/lib/client-factory.d.ts +25 -0
- package/dist/cli/lib/client-factory.d.ts.map +1 -0
- package/dist/cli/lib/client-factory.js +26 -0
- package/dist/cli/lib/client-factory.js.map +1 -0
- package/dist/cli/lib/core-maintenance.d.ts.map +1 -0
- package/dist/cli/lib/core-maintenance.js +358 -0
- package/dist/cli/lib/core-maintenance.js.map +1 -0
- package/dist/cli/lib/exit.d.ts.map +1 -0
- package/dist/cli/lib/exit.js +73 -0
- package/dist/cli/lib/exit.js.map +1 -0
- package/dist/cli/lib/sdk-client.d.ts +20 -0
- package/dist/cli/lib/sdk-client.d.ts.map +1 -0
- package/dist/cli/lib/sdk-client.js +44 -0
- package/dist/cli/lib/sdk-client.js.map +1 -0
- package/dist/cli/lib/sdk-command.d.ts +22 -0
- package/dist/cli/lib/sdk-command.d.ts.map +1 -0
- package/dist/cli/lib/sdk-command.js +42 -0
- package/dist/cli/lib/sdk-command.js.map +1 -0
- package/dist/cli/lib/telemetry-helpers.d.ts.map +1 -0
- package/dist/cli/lib/telemetry-helpers.js.map +1 -0
- package/dist/cli/lib/workspace-store.d.ts +19 -0
- package/dist/cli/lib/workspace-store.d.ts.map +1 -0
- package/dist/cli/lib/workspace-store.js +63 -0
- package/dist/cli/lib/workspace-store.js.map +1 -0
- package/dist/cli/telemetry/client.d.ts +37 -0
- package/dist/cli/telemetry/client.d.ts.map +1 -0
- package/dist/cli/telemetry/client.js +165 -0
- package/dist/cli/telemetry/client.js.map +1 -0
- package/dist/cli/telemetry/config.d.ts +29 -0
- package/dist/cli/telemetry/config.d.ts.map +1 -0
- package/dist/cli/telemetry/config.js +90 -0
- package/dist/cli/telemetry/config.js.map +1 -0
- package/dist/cli/telemetry/events.d.ts +340 -0
- package/dist/cli/telemetry/events.d.ts.map +1 -0
- package/dist/cli/telemetry/events.js +21 -0
- package/dist/cli/telemetry/events.js.map +1 -0
- package/dist/cli/telemetry/index.d.ts +9 -0
- package/dist/cli/telemetry/index.d.ts.map +1 -0
- package/dist/cli/telemetry/index.js +8 -0
- package/dist/cli/telemetry/index.js.map +1 -0
- package/dist/cli/telemetry/machine-id.d.ts +12 -0
- package/dist/cli/telemetry/machine-id.d.ts.map +1 -0
- package/dist/cli/telemetry/machine-id.js +54 -0
- package/dist/cli/telemetry/machine-id.js.map +1 -0
- package/dist/cli/telemetry/orchestrator-harness.d.ts +17 -0
- package/dist/cli/telemetry/orchestrator-harness.d.ts.map +1 -0
- package/dist/cli/telemetry/orchestrator-harness.js +106 -0
- package/dist/cli/telemetry/orchestrator-harness.js.map +1 -0
- package/dist/cli/telemetry/posthog-config.d.ts +25 -0
- package/dist/cli/telemetry/posthog-config.d.ts.map +1 -0
- package/dist/cli/telemetry/posthog-config.js +44 -0
- package/dist/cli/telemetry/posthog-config.js.map +1 -0
- package/dist/index.cjs +22102 -61162
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -147
- package/scripts/build-cjs.mjs +2 -6
- package/dist/src/cli/bootstrap.d.ts.map +0 -1
- package/dist/src/cli/bootstrap.js +0 -384
- package/dist/src/cli/bootstrap.js.map +0 -1
- package/dist/src/cli/commands/activity.d.ts +0 -47
- package/dist/src/cli/commands/activity.d.ts.map +0 -1
- package/dist/src/cli/commands/activity.js +0 -367
- package/dist/src/cli/commands/activity.js.map +0 -1
- package/dist/src/cli/commands/agent-management.d.ts +0 -71
- package/dist/src/cli/commands/agent-management.d.ts.map +0 -1
- package/dist/src/cli/commands/agent-management.js +0 -490
- package/dist/src/cli/commands/agent-management.js.map +0 -1
- package/dist/src/cli/commands/auth.d.ts +0 -9
- package/dist/src/cli/commands/auth.d.ts.map +0 -1
- package/dist/src/cli/commands/auth.js +0 -62
- package/dist/src/cli/commands/auth.js.map +0 -1
- package/dist/src/cli/commands/cloud.d.ts.map +0 -1
- package/dist/src/cli/commands/cloud.js +0 -552
- package/dist/src/cli/commands/cloud.js.map +0 -1
- package/dist/src/cli/commands/connect.d.ts +0 -3
- package/dist/src/cli/commands/connect.d.ts.map +0 -1
- package/dist/src/cli/commands/connect.js +0 -14
- package/dist/src/cli/commands/connect.js.map +0 -1
- package/dist/src/cli/commands/core.d.ts +0 -109
- package/dist/src/cli/commands/core.d.ts.map +0 -1
- package/dist/src/cli/commands/core.js +0 -374
- package/dist/src/cli/commands/core.js.map +0 -1
- package/dist/src/cli/commands/dlq.d.ts +0 -20
- package/dist/src/cli/commands/dlq.d.ts.map +0 -1
- package/dist/src/cli/commands/dlq.js +0 -456
- package/dist/src/cli/commands/dlq.js.map +0 -1
- package/dist/src/cli/commands/doctor.d.ts +0 -2
- package/dist/src/cli/commands/doctor.d.ts.map +0 -1
- package/dist/src/cli/commands/doctor.js +0 -2
- package/dist/src/cli/commands/doctor.js.map +0 -1
- package/dist/src/cli/commands/drive.d.ts +0 -231
- package/dist/src/cli/commands/drive.d.ts.map +0 -1
- package/dist/src/cli/commands/drive.js +0 -564
- package/dist/src/cli/commands/drive.js.map +0 -1
- package/dist/src/cli/commands/log.d.ts +0 -9
- package/dist/src/cli/commands/log.d.ts.map +0 -1
- package/dist/src/cli/commands/log.js +0 -153
- package/dist/src/cli/commands/log.js.map +0 -1
- package/dist/src/cli/commands/messaging.d.ts +0 -162
- package/dist/src/cli/commands/messaging.d.ts.map +0 -1
- package/dist/src/cli/commands/messaging.js +0 -1186
- package/dist/src/cli/commands/messaging.js.map +0 -1
- package/dist/src/cli/commands/monitoring.d.ts +0 -57
- package/dist/src/cli/commands/monitoring.d.ts.map +0 -1
- package/dist/src/cli/commands/monitoring.js +0 -360
- package/dist/src/cli/commands/monitoring.js.map +0 -1
- package/dist/src/cli/commands/new.d.ts +0 -112
- package/dist/src/cli/commands/new.d.ts.map +0 -1
- package/dist/src/cli/commands/new.js +0 -189
- package/dist/src/cli/commands/new.js.map +0 -1
- package/dist/src/cli/commands/on/dotfiles.d.ts +0 -35
- package/dist/src/cli/commands/on/dotfiles.d.ts.map +0 -1
- package/dist/src/cli/commands/on/dotfiles.js +0 -157
- package/dist/src/cli/commands/on/dotfiles.js.map +0 -1
- package/dist/src/cli/commands/on/prereqs.d.ts +0 -15
- package/dist/src/cli/commands/on/prereqs.d.ts.map +0 -1
- package/dist/src/cli/commands/on/prereqs.js +0 -103
- package/dist/src/cli/commands/on/prereqs.js.map +0 -1
- package/dist/src/cli/commands/on/provision.d.ts +0 -23
- package/dist/src/cli/commands/on/provision.d.ts.map +0 -1
- package/dist/src/cli/commands/on/provision.js +0 -163
- package/dist/src/cli/commands/on/provision.js.map +0 -1
- package/dist/src/cli/commands/on/relayfile-binary.d.ts +0 -2
- package/dist/src/cli/commands/on/relayfile-binary.d.ts.map +0 -1
- package/dist/src/cli/commands/on/relayfile-binary.js +0 -208
- package/dist/src/cli/commands/on/relayfile-binary.js.map +0 -1
- package/dist/src/cli/commands/on/scan.d.ts +0 -8
- package/dist/src/cli/commands/on/scan.d.ts.map +0 -1
- package/dist/src/cli/commands/on/scan.js +0 -59
- package/dist/src/cli/commands/on/scan.js.map +0 -1
- package/dist/src/cli/commands/on/services.d.ts +0 -18
- package/dist/src/cli/commands/on/services.d.ts.map +0 -1
- package/dist/src/cli/commands/on/services.js +0 -337
- package/dist/src/cli/commands/on/services.js.map +0 -1
- package/dist/src/cli/commands/on/start.d.ts +0 -69
- package/dist/src/cli/commands/on/start.d.ts.map +0 -1
- package/dist/src/cli/commands/on/start.js +0 -1196
- package/dist/src/cli/commands/on/start.js.map +0 -1
- package/dist/src/cli/commands/on/stop.d.ts +0 -4
- package/dist/src/cli/commands/on/stop.d.ts.map +0 -1
- package/dist/src/cli/commands/on/stop.js +0 -11
- package/dist/src/cli/commands/on/stop.js.map +0 -1
- package/dist/src/cli/commands/on/token.d.ts +0 -10
- package/dist/src/cli/commands/on/token.d.ts.map +0 -1
- package/dist/src/cli/commands/on/token.js +0 -26
- package/dist/src/cli/commands/on/token.js.map +0 -1
- package/dist/src/cli/commands/on/workspace.d.ts +0 -4
- package/dist/src/cli/commands/on/workspace.d.ts.map +0 -1
- package/dist/src/cli/commands/on/workspace.js +0 -245
- package/dist/src/cli/commands/on/workspace.js.map +0 -1
- package/dist/src/cli/commands/on.d.ts +0 -10
- package/dist/src/cli/commands/on.d.ts.map +0 -1
- package/dist/src/cli/commands/on.js +0 -53
- package/dist/src/cli/commands/on.js.map +0 -1
- package/dist/src/cli/commands/passthrough.d.ts +0 -145
- package/dist/src/cli/commands/passthrough.d.ts.map +0 -1
- package/dist/src/cli/commands/passthrough.js +0 -391
- package/dist/src/cli/commands/passthrough.js.map +0 -1
- package/dist/src/cli/commands/proactive-bootstrap.d.ts +0 -10
- package/dist/src/cli/commands/proactive-bootstrap.d.ts.map +0 -1
- package/dist/src/cli/commands/proactive-bootstrap.js +0 -133
- package/dist/src/cli/commands/proactive-bootstrap.js.map +0 -1
- package/dist/src/cli/commands/relay-runtime.d.ts +0 -58
- package/dist/src/cli/commands/relay-runtime.d.ts.map +0 -1
- package/dist/src/cli/commands/relay-runtime.js +0 -484
- package/dist/src/cli/commands/relay-runtime.js.map +0 -1
- package/dist/src/cli/commands/rm.d.ts +0 -52
- package/dist/src/cli/commands/rm.d.ts.map +0 -1
- package/dist/src/cli/commands/rm.js +0 -96
- package/dist/src/cli/commands/rm.js.map +0 -1
- package/dist/src/cli/commands/setup.d.ts +0 -37
- package/dist/src/cli/commands/setup.d.ts.map +0 -1
- package/dist/src/cli/commands/setup.js +0 -361
- package/dist/src/cli/commands/setup.js.map +0 -1
- package/dist/src/cli/commands/swarm.d.ts +0 -3
- package/dist/src/cli/commands/swarm.d.ts.map +0 -1
- package/dist/src/cli/commands/swarm.js +0 -138
- package/dist/src/cli/commands/swarm.js.map +0 -1
- package/dist/src/cli/commands/view.d.ts +0 -98
- package/dist/src/cli/commands/view.d.ts.map +0 -1
- package/dist/src/cli/commands/view.js +0 -238
- package/dist/src/cli/commands/view.js.map +0 -1
- package/dist/src/cli/index.d.ts.map +0 -1
- package/dist/src/cli/index.js.map +0 -1
- package/dist/src/cli/lib/agent-management-listing.d.ts +0 -108
- package/dist/src/cli/lib/agent-management-listing.d.ts.map +0 -1
- package/dist/src/cli/lib/agent-management-listing.js +0 -774
- package/dist/src/cli/lib/agent-management-listing.js.map +0 -1
- package/dist/src/cli/lib/attach.d.ts +0 -140
- package/dist/src/cli/lib/attach.d.ts.map +0 -1
- package/dist/src/cli/lib/attach.js +0 -200
- package/dist/src/cli/lib/attach.js.map +0 -1
- package/dist/src/cli/lib/auth-ssh.d.ts +0 -17
- package/dist/src/cli/lib/auth-ssh.d.ts.map +0 -1
- package/dist/src/cli/lib/auth-ssh.js +0 -297
- package/dist/src/cli/lib/auth-ssh.js.map +0 -1
- package/dist/src/cli/lib/bridge.d.ts +0 -8
- package/dist/src/cli/lib/bridge.d.ts.map +0 -1
- package/dist/src/cli/lib/bridge.js +0 -100
- package/dist/src/cli/lib/bridge.js.map +0 -1
- package/dist/src/cli/lib/broker-connection.d.ts +0 -40
- package/dist/src/cli/lib/broker-connection.d.ts.map +0 -1
- package/dist/src/cli/lib/broker-connection.js +0 -82
- package/dist/src/cli/lib/broker-connection.js.map +0 -1
- package/dist/src/cli/lib/broker-lifecycle.d.ts.map +0 -1
- package/dist/src/cli/lib/broker-lifecycle.js +0 -1427
- package/dist/src/cli/lib/broker-lifecycle.js.map +0 -1
- package/dist/src/cli/lib/client-factory.d.ts +0 -25
- package/dist/src/cli/lib/client-factory.d.ts.map +0 -1
- package/dist/src/cli/lib/client-factory.js +0 -24
- package/dist/src/cli/lib/client-factory.js.map +0 -1
- package/dist/src/cli/lib/cloud-client.d.ts +0 -39
- package/dist/src/cli/lib/cloud-client.d.ts.map +0 -1
- package/dist/src/cli/lib/cloud-client.js +0 -120
- package/dist/src/cli/lib/cloud-client.js.map +0 -1
- package/dist/src/cli/lib/connect-daytona.d.ts +0 -15
- package/dist/src/cli/lib/connect-daytona.d.ts.map +0 -1
- package/dist/src/cli/lib/connect-daytona.js +0 -219
- package/dist/src/cli/lib/connect-daytona.js.map +0 -1
- package/dist/src/cli/lib/core-maintenance.d.ts.map +0 -1
- package/dist/src/cli/lib/core-maintenance.js +0 -344
- package/dist/src/cli/lib/core-maintenance.js.map +0 -1
- package/dist/src/cli/lib/doctor.d.ts +0 -2
- package/dist/src/cli/lib/doctor.d.ts.map +0 -1
- package/dist/src/cli/lib/doctor.js +0 -705
- package/dist/src/cli/lib/doctor.js.map +0 -1
- package/dist/src/cli/lib/exit.d.ts.map +0 -1
- package/dist/src/cli/lib/exit.js +0 -73
- package/dist/src/cli/lib/exit.js.map +0 -1
- package/dist/src/cli/lib/formatting.d.ts +0 -12
- package/dist/src/cli/lib/formatting.d.ts.map +0 -1
- package/dist/src/cli/lib/formatting.js +0 -78
- package/dist/src/cli/lib/formatting.js.map +0 -1
- package/dist/src/cli/lib/index.d.ts +0 -5
- package/dist/src/cli/lib/index.d.ts.map +0 -1
- package/dist/src/cli/lib/index.js +0 -5
- package/dist/src/cli/lib/index.js.map +0 -1
- package/dist/src/cli/lib/jsonc.d.ts +0 -8
- package/dist/src/cli/lib/jsonc.d.ts.map +0 -1
- package/dist/src/cli/lib/jsonc.js +0 -88
- package/dist/src/cli/lib/jsonc.js.map +0 -1
- package/dist/src/cli/lib/monitoring-health.d.ts +0 -32
- package/dist/src/cli/lib/monitoring-health.d.ts.map +0 -1
- package/dist/src/cli/lib/monitoring-health.js +0 -2
- package/dist/src/cli/lib/monitoring-health.js.map +0 -1
- package/dist/src/cli/lib/paths.d.ts +0 -2
- package/dist/src/cli/lib/paths.d.ts.map +0 -1
- package/dist/src/cli/lib/paths.js +0 -5
- package/dist/src/cli/lib/paths.js.map +0 -1
- package/dist/src/cli/lib/project-broker-client.d.ts +0 -4
- package/dist/src/cli/lib/project-broker-client.d.ts.map +0 -1
- package/dist/src/cli/lib/project-broker-client.js +0 -12
- package/dist/src/cli/lib/project-broker-client.js.map +0 -1
- package/dist/src/cli/lib/relaycast-mcp-command.d.ts +0 -5
- package/dist/src/cli/lib/relaycast-mcp-command.d.ts.map +0 -1
- package/dist/src/cli/lib/relaycast-mcp-command.js +0 -13
- package/dist/src/cli/lib/relaycast-mcp-command.js.map +0 -1
- package/dist/src/cli/lib/sdk-client.d.ts +0 -9
- package/dist/src/cli/lib/sdk-client.d.ts.map +0 -1
- package/dist/src/cli/lib/sdk-client.js +0 -28
- package/dist/src/cli/lib/sdk-client.js.map +0 -1
- package/dist/src/cli/lib/spawn-and-attach.d.ts +0 -132
- package/dist/src/cli/lib/spawn-and-attach.d.ts.map +0 -1
- package/dist/src/cli/lib/spawn-and-attach.js +0 -336
- package/dist/src/cli/lib/spawn-and-attach.js.map +0 -1
- package/dist/src/cli/lib/ssh-interactive.d.ts +0 -8
- package/dist/src/cli/lib/ssh-interactive.d.ts.map +0 -1
- package/dist/src/cli/lib/ssh-interactive.js +0 -8
- package/dist/src/cli/lib/ssh-interactive.js.map +0 -1
- package/dist/src/cli/lib/telemetry-helpers.d.ts.map +0 -1
- package/dist/src/cli/lib/telemetry-helpers.js.map +0 -1
- package/dist/src/cli/relaycast-mcp.d.ts +0 -39
- package/dist/src/cli/relaycast-mcp.d.ts.map +0 -1
- package/dist/src/cli/relaycast-mcp.js +0 -540
- package/dist/src/cli/relaycast-mcp.js.map +0 -1
- package/dist/src/config/relay-config.d.ts +0 -5
- package/dist/src/config/relay-config.d.ts.map +0 -1
- package/dist/src/config/relay-config.js +0 -5
- package/dist/src/config/relay-config.js.map +0 -1
- package/dist/src/cost/pricing.d.ts +0 -18
- package/dist/src/cost/pricing.d.ts.map +0 -1
- package/dist/src/cost/pricing.js +0 -113
- package/dist/src/cost/pricing.js.map +0 -1
- package/dist/src/cost/tracker.d.ts +0 -13
- package/dist/src/cost/tracker.d.ts.map +0 -1
- package/dist/src/cost/tracker.js +0 -152
- package/dist/src/cost/tracker.js.map +0 -1
- package/dist/src/cost/types.d.ts +0 -23
- package/dist/src/cost/types.d.ts.map +0 -1
- package/dist/src/cost/types.js +0 -2
- package/dist/src/cost/types.js.map +0 -1
- package/dist/src/health-worker-manager.d.ts +0 -62
- package/dist/src/health-worker-manager.d.ts.map +0 -1
- package/dist/src/health-worker-manager.js +0 -144
- package/dist/src/health-worker-manager.js.map +0 -1
- package/dist/src/health-worker.d.ts +0 -9
- package/dist/src/health-worker.d.ts.map +0 -1
- package/dist/src/health-worker.js +0 -79
- package/dist/src/health-worker.js.map +0 -1
- package/dist/src/hooks/index.d.ts +0 -10
- package/dist/src/hooks/index.d.ts.map +0 -1
- package/dist/src/hooks/index.js +0 -10
- package/dist/src/hooks/index.js.map +0 -1
- package/dist/src/index.d.ts +0 -9
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -12
- package/dist/src/index.js.map +0 -1
- package/dist/src/memory/index.d.ts +0 -5
- package/dist/src/memory/index.d.ts.map +0 -1
- package/dist/src/memory/index.js +0 -5
- package/dist/src/memory/index.js.map +0 -1
- package/dist/src/policy/index.d.ts +0 -5
- package/dist/src/policy/index.d.ts.map +0 -1
- package/dist/src/policy/index.js +0 -5
- package/dist/src/policy/index.js.map +0 -1
- package/dist/src/shared/cli-auth-config.d.ts +0 -5
- package/dist/src/shared/cli-auth-config.d.ts.map +0 -1
- package/dist/src/shared/cli-auth-config.js +0 -5
- package/dist/src/shared/cli-auth-config.js.map +0 -1
- package/dist/src/trajectory/index.d.ts +0 -5
- package/dist/src/trajectory/index.d.ts.map +0 -1
- package/dist/src/trajectory/index.js +0 -5
- package/dist/src/trajectory/index.js.map +0 -1
- package/dist/src/utils/index.d.ts +0 -5
- package/dist/src/utils/index.d.ts.map +0 -1
- package/dist/src/utils/index.js +0 -5
- package/dist/src/utils/index.js.map +0 -1
- package/install.sh +0 -985
- package/node_modules/@relaycast/sdk/dist/agent.d.ts +0 -164
- package/node_modules/@relaycast/sdk/dist/agent.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/agent.js +0 -479
- package/node_modules/@relaycast/sdk/dist/agent.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/casing.d.ts +0 -10
- package/node_modules/@relaycast/sdk/dist/casing.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/casing.js +0 -42
- package/node_modules/@relaycast/sdk/dist/casing.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/client.d.ts +0 -51
- package/node_modules/@relaycast/sdk/dist/client.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/client.js +0 -210
- package/node_modules/@relaycast/sdk/dist/client.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/index.d.ts +0 -3
- package/node_modules/@relaycast/sdk/dist/communicate/index.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/index.js +0 -2
- package/node_modules/@relaycast/sdk/dist/communicate/index.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/relay.d.ts +0 -13
- package/node_modules/@relaycast/sdk/dist/communicate/relay.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/relay.js +0 -73
- package/node_modules/@relaycast/sdk/dist/communicate/relay.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/types.d.ts +0 -23
- package/node_modules/@relaycast/sdk/dist/communicate/types.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/communicate/types.js +0 -2
- package/node_modules/@relaycast/sdk/dist/communicate/types.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/errors.d.ts +0 -19
- package/node_modules/@relaycast/sdk/dist/errors.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/errors.js +0 -68
- package/node_modules/@relaycast/sdk/dist/errors.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/event-id.d.ts +0 -2
- package/node_modules/@relaycast/sdk/dist/event-id.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/event-id.js +0 -50
- package/node_modules/@relaycast/sdk/dist/event-id.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/identity.d.ts +0 -15
- package/node_modules/@relaycast/sdk/dist/identity.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/identity.js +0 -23
- package/node_modules/@relaycast/sdk/dist/identity.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/index.d.ts +0 -22
- package/node_modules/@relaycast/sdk/dist/index.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/index.js +0 -11
- package/node_modules/@relaycast/sdk/dist/index.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/internal.d.ts +0 -6
- package/node_modules/@relaycast/sdk/dist/internal.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/internal.js +0 -10
- package/node_modules/@relaycast/sdk/dist/internal.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/origin.d.ts +0 -7
- package/node_modules/@relaycast/sdk/dist/origin.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/origin.js +0 -7
- package/node_modules/@relaycast/sdk/dist/origin.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/relay.d.ts +0 -134
- package/node_modules/@relaycast/sdk/dist/relay.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/relay.js +0 -342
- package/node_modules/@relaycast/sdk/dist/relay.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup-errors.d.ts +0 -55
- package/node_modules/@relaycast/sdk/dist/setup-errors.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup-errors.js +0 -73
- package/node_modules/@relaycast/sdk/dist/setup-errors.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup-types.d.ts +0 -54
- package/node_modules/@relaycast/sdk/dist/setup-types.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup-types.js +0 -2
- package/node_modules/@relaycast/sdk/dist/setup-types.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup.d.ts +0 -41
- package/node_modules/@relaycast/sdk/dist/setup.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/setup.js +0 -320
- package/node_modules/@relaycast/sdk/dist/setup.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/subscription.d.ts +0 -5
- package/node_modules/@relaycast/sdk/dist/subscription.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/subscription.js +0 -2
- package/node_modules/@relaycast/sdk/dist/subscription.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/types.d.ts +0 -240
- package/node_modules/@relaycast/sdk/dist/types.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/types.js +0 -2
- package/node_modules/@relaycast/sdk/dist/types.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/version.d.ts +0 -2
- package/node_modules/@relaycast/sdk/dist/version.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/version.js +0 -2
- package/node_modules/@relaycast/sdk/dist/version.js.map +0 -1
- package/node_modules/@relaycast/sdk/dist/ws.d.ts +0 -56
- package/node_modules/@relaycast/sdk/dist/ws.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/dist/ws.js +0 -293
- package/node_modules/@relaycast/sdk/dist/ws.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/agent.d.ts +0 -150
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/agent.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/agent.js +0 -78
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/agent.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/api.d.ts +0 -78
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/api.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/api.js +0 -35
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/api.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/channel.d.ts +0 -78
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/channel.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/channel.js +0 -54
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/channel.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/command.d.ts +0 -84
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/command.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/command.js +0 -47
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/command.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/dm.d.ts +0 -155
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/dm.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/dm.js +0 -74
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/dm.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/emoji.d.ts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/emoji.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/emoji.js +0 -41
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/emoji.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/event-id.d.ts +0 -2
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/event-id.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/event-id.js +0 -50
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/event-id.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/events.d.ts +0 -813
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/events.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/events.js +0 -233
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/events.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/file.d.ts +0 -66
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/file.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/file.js +0 -47
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/file.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/index.d.ts +0 -17
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/index.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/index.js +0 -17
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/index.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/message.d.ts +0 -281
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/message.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/message.js +0 -104
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/message.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/reaction.d.ts +0 -28
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/reaction.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/reaction.js +0 -24
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/reaction.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/receipt.d.ts +0 -20
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/receipt.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/receipt.js +0 -17
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/receipt.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/subscription.d.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/subscription.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/subscription.js +0 -48
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/subscription.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/telemetry.d.ts +0 -229
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/telemetry.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/telemetry.js +0 -244
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/telemetry.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/webhook.d.ts +0 -39
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/webhook.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/webhook.js +0 -34
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/webhook.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.d.ts +0 -77
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.d.ts.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js +0 -61
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/dist/workspace.js.map +0 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +0 -23
- package/node_modules/@relaycast/sdk/node_modules/zod/LICENSE +0 -21
- package/node_modules/@relaycast/sdk/node_modules/zod/README.md +0 -191
- package/node_modules/@relaycast/sdk/node_modules/zod/index.cjs +0 -33
- package/node_modules/@relaycast/sdk/node_modules/zod/index.d.cts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/index.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/index.js +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/locales/index.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/locales/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/mini/index.cjs +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/mini/index.d.cts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/mini/index.d.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/mini/index.js +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/mini/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/package.json +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/src/index.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/src/mini/index.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/external.ts +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/api.ts +0 -1823
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/core.ts +0 -153
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/errors.ts +0 -455
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/index.ts +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/regexes.ts +0 -190
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/schemas.ts +0 -4730
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/util.ts +0 -983
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/en.ts +0 -123
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/fr.ts +0 -132
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/index.ts +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/uz.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/external.ts +0 -41
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
- package/node_modules/@relaycast/sdk/node_modules/zod/src/v4-mini/index.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/external.js +0 -6
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/index.js +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/@relaycast/sdk/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.cjs +0 -73
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.d.cts +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.d.ts +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/external.js +0 -20
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/from-json-schema.js +0 -599
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.cjs +0 -1511
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.d.cts +0 -767
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.d.ts +0 -767
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/classic/schemas.js +0 -1395
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.cjs +0 -1227
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.d.cts +0 -325
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.d.ts +0 -325
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/api.js +0 -1087
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.cjs +0 -601
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/checks.js +0 -575
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.cjs +0 -85
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.d.cts +0 -70
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.d.ts +0 -70
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/core.js +0 -78
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.cjs +0 -216
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.d.cts +0 -221
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.d.ts +0 -221
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/errors.js +0 -185
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/index.cjs +0 -47
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/index.d.cts +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/index.d.ts +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/index.js +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema-processors.js +0 -601
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.cjs +0 -172
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.d.cts +0 -85
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.d.ts +0 -85
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/regexes.js +0 -139
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.cjs +0 -2270
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.d.cts +0 -1184
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.d.ts +0 -1184
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/schemas.js +0 -2239
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/to-json-schema.js +0 -448
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.cjs +0 -734
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.d.cts +0 -200
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.d.ts +0 -200
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/util.js +0 -674
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/index.js +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ar.js +0 -106
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/az.cjs +0 -132
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/az.js +0 -105
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/be.cjs +0 -183
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/be.js +0 -156
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/bg.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/bg.js +0 -120
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ca.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/cs.js +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/da.cjs +0 -142
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/da.js +0 -115
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/de.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/de.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.cjs +0 -140
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/en.js +0 -113
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/eo.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/eo.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/es.cjs +0 -159
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/es.js +0 -132
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fa.js +0 -114
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fi.js +0 -112
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.cjs +0 -152
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/fr.js +0 -125
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/he.cjs +0 -241
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/he.js +0 -214
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hu.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hy.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hy.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/hy.js +0 -147
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/id.cjs +0 -133
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/id.js +0 -106
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.cjs +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.d.cts +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.d.ts +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/index.js +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/is.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/is.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/is.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/it.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ja.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ka.js +0 -112
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/km.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/km.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ko.js +0 -111
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/lt.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/lt.js +0 -203
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/mk.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ms.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/nl.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/no.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/no.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ota.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pl.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ps.js +0 -114
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/pt.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ru.js +0 -156
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sl.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/sv.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ta.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/th.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/th.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/tr.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/tr.js +0 -105
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uk.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/ur.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.cjs +0 -137
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/uz.js +0 -110
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/vi.js +0 -108
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/yo.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/coerce.js +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.cjs +0 -63
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.d.cts +0 -13
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.d.ts +0 -13
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/external.js +0 -14
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/iso.js +0 -34
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.cjs +0 -1083
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.d.cts +0 -445
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.d.ts +0 -445
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/mini/schemas.js +0 -961
- package/node_modules/@relaycast/sdk/node_modules/zod/v4/package.json +0 -7
- package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/index.cjs +0 -32
- package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/index.d.cts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/index.d.ts +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/index.js +0 -3
- package/node_modules/@relaycast/sdk/node_modules/zod/v4-mini/package.json +0 -7
- package/node_modules/@relaycast/sdk/package.json +0 -46
- package/node_modules/@relayfile/local-mount/README.md +0 -215
- package/node_modules/@relayfile/local-mount/dist/auto-sync.d.ts +0 -31
- package/node_modules/@relayfile/local-mount/dist/auto-sync.js +0 -466
- package/node_modules/@relayfile/local-mount/dist/dotfiles.d.ts +0 -18
- package/node_modules/@relayfile/local-mount/dist/dotfiles.js +0 -43
- package/node_modules/@relayfile/local-mount/dist/index.d.ts +0 -4
- package/node_modules/@relayfile/local-mount/dist/index.js +0 -3
- package/node_modules/@relayfile/local-mount/dist/launch.d.ts +0 -50
- package/node_modules/@relayfile/local-mount/dist/launch.js +0 -129
- package/node_modules/@relayfile/local-mount/dist/symlink-mount.d.ts +0 -23
- package/node_modules/@relayfile/local-mount/dist/symlink-mount.js +0 -372
- package/node_modules/@relayfile/local-mount/package.json +0 -47
- package/node_modules/chokidar/LICENSE +0 -21
- package/node_modules/chokidar/README.md +0 -305
- package/node_modules/chokidar/esm/handler.d.ts +0 -90
- package/node_modules/chokidar/esm/handler.js +0 -629
- package/node_modules/chokidar/esm/index.d.ts +0 -215
- package/node_modules/chokidar/esm/index.js +0 -798
- package/node_modules/chokidar/esm/package.json +0 -1
- package/node_modules/chokidar/handler.d.ts +0 -90
- package/node_modules/chokidar/handler.js +0 -635
- package/node_modules/chokidar/index.d.ts +0 -215
- package/node_modules/chokidar/index.js +0 -804
- package/node_modules/chokidar/package.json +0 -69
- package/node_modules/ignore/LICENSE-MIT +0 -21
- package/node_modules/ignore/README.md +0 -452
- package/node_modules/ignore/index.d.ts +0 -81
- package/node_modules/ignore/index.js +0 -784
- package/node_modules/ignore/legacy.js +0 -681
- package/node_modules/ignore/package.json +0 -87
- package/node_modules/readdirp/LICENSE +0 -21
- package/node_modules/readdirp/README.md +0 -120
- package/node_modules/readdirp/esm/index.d.ts +0 -108
- package/node_modules/readdirp/esm/index.js +0 -257
- package/node_modules/readdirp/esm/package.json +0 -1
- package/node_modules/readdirp/index.d.ts +0 -108
- package/node_modules/readdirp/index.js +0 -263
- package/node_modules/readdirp/package.json +0 -70
- package/scripts/postinstall.js +0 -615
- /package/dist/{src/cli → cli}/bootstrap.d.ts +0 -0
- /package/dist/{src/cli → cli}/commands/cloud.d.ts +0 -0
- /package/dist/{src/cli → cli}/index.d.ts +0 -0
- /package/dist/{src/cli → cli}/lib/broker-lifecycle.d.ts +0 -0
- /package/dist/{src/cli → cli}/lib/core-maintenance.d.ts +0 -0
- /package/dist/{src/cli → cli}/lib/exit.d.ts +0 -0
- /package/dist/{src/cli → cli}/lib/telemetry-helpers.d.ts +0 -0
- /package/dist/{src/cli → cli}/lib/telemetry-helpers.js +0 -0
|
@@ -0,0 +1,1443 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
6
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
7
|
+
import { ListToolsRequestSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
+
import { RelayCast, SDK_VERSION, WsClient } from '@relaycast/sdk';
|
|
9
|
+
import { INVALID_AGENT_TOKEN_CODE, agentTokenRecoveryMessage, isInvalidAgentTokenError, isInvalidAgentTokenToolResult, } from '@agent-relay/sdk';
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
const DEFAULT_BASE_URL = 'https://api.relaycast.dev';
|
|
12
|
+
export const AGENT_RELAY_MCP_VERSION = process.env.AGENT_RELAY_CLI_VERSION ?? SDK_VERSION ?? 'unknown';
|
|
13
|
+
const DEFAULT_SYSTEM_PROMPT = `You are an AI agent in a collaborative workspace powered by Agent Relay. You can communicate with other agents using these MCP tools:
|
|
14
|
+
|
|
15
|
+
## Getting Started
|
|
16
|
+
1. If no workspace is configured, call "create_workspace"
|
|
17
|
+
2. If someone shared an existing workspace key with you, call "set_workspace_key"
|
|
18
|
+
3. When a workspace key is provided at startup, this MCP server auto-registers the session as RELAY_AGENT_NAME (or "orchestrator" by default). Otherwise call "register_agent" with your agent name to join the workspace
|
|
19
|
+
4. Use "list_channels" to see available channels
|
|
20
|
+
5. Use "join_channel" to join channels of interest
|
|
21
|
+
6. Use "check_inbox" to see unread messages and mentions
|
|
22
|
+
|
|
23
|
+
## Communication
|
|
24
|
+
- Post messages to channels with "post_message"
|
|
25
|
+
- Send direct messages with "send_dm"
|
|
26
|
+
- Reply to threads with "reply_to_thread"
|
|
27
|
+
- React to messages with "add_reaction"
|
|
28
|
+
|
|
29
|
+
## Best Practices
|
|
30
|
+
- Check your inbox regularly for new messages and mentions
|
|
31
|
+
- Use channels for topic-based discussions
|
|
32
|
+
- Use threads for detailed discussions to keep channels organized
|
|
33
|
+
- React with emoji to acknowledge messages
|
|
34
|
+
- Keep messages concise and actionable`;
|
|
35
|
+
const jsonResult = z.object({}).passthrough();
|
|
36
|
+
const messageResult = {
|
|
37
|
+
message: z.string().describe('Human-readable confirmation message'),
|
|
38
|
+
};
|
|
39
|
+
const identityOverrideInputShape = {
|
|
40
|
+
as: z
|
|
41
|
+
.string()
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('Registered agent identity to act as when multiple identities have been registered'),
|
|
44
|
+
};
|
|
45
|
+
/** Return env var value, or undefined if missing / an unresolved ${...} template. */
|
|
46
|
+
function resolveEnv(key) {
|
|
47
|
+
const v = process.env[key];
|
|
48
|
+
if (!v || /^\$\{.+\}$/.test(v))
|
|
49
|
+
return undefined;
|
|
50
|
+
return v;
|
|
51
|
+
}
|
|
52
|
+
export function normalizeBaseUrl(baseUrl) {
|
|
53
|
+
return (baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, '');
|
|
54
|
+
}
|
|
55
|
+
function isEntrypoint() {
|
|
56
|
+
const invocationPath = process.argv[1];
|
|
57
|
+
if (!invocationPath)
|
|
58
|
+
return false;
|
|
59
|
+
try {
|
|
60
|
+
return fs.realpathSync(invocationPath) === fs.realpathSync(fileURLToPath(import.meta.url));
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return path.resolve(invocationPath) === fileURLToPath(import.meta.url);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export function envFlagEnabled(value) {
|
|
67
|
+
if (!value) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
const normalized = value.trim().toLowerCase();
|
|
71
|
+
return normalized === '1' || normalized === 'true' || normalized === 'yes' || normalized === 'on';
|
|
72
|
+
}
|
|
73
|
+
export function normalizeAgentType(value) {
|
|
74
|
+
if (value === 'agent' || value === 'human') {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
function readAgentResultCallbackConfig(agentName) {
|
|
80
|
+
const url = resolveEnv('AGENT_RELAY_RESULT_URL');
|
|
81
|
+
const token = resolveEnv('AGENT_RELAY_RESULT_TOKEN');
|
|
82
|
+
if (!url || !token) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
const rawSchema = resolveEnv('AGENT_RELAY_RESULT_SCHEMA');
|
|
86
|
+
let schema;
|
|
87
|
+
if (rawSchema) {
|
|
88
|
+
try {
|
|
89
|
+
schema = JSON.parse(rawSchema);
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
schema = rawSchema;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return { url, token, schema, agentName };
|
|
96
|
+
}
|
|
97
|
+
function registerAgentResultTool(server, config) {
|
|
98
|
+
if (!config) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const schemaText = config.schema === undefined
|
|
102
|
+
? ''
|
|
103
|
+
: ` Expected JSON schema: ${JSON.stringify(config.schema).slice(0, 4000)}`;
|
|
104
|
+
server.registerTool('submit_result', {
|
|
105
|
+
title: 'Submit Result',
|
|
106
|
+
description: 'Submit the structured result for this spawned Agent Relay task. Call this when the requested work is complete and the result object is ready.' +
|
|
107
|
+
schemaText,
|
|
108
|
+
inputSchema: {
|
|
109
|
+
data: z.unknown().describe('The JSON result payload requested by the spawning SDK caller.'),
|
|
110
|
+
final: z
|
|
111
|
+
.boolean()
|
|
112
|
+
.optional()
|
|
113
|
+
.describe('Whether this is the final result for the task. Defaults to true.'),
|
|
114
|
+
metadata: z
|
|
115
|
+
.record(z.string(), z.unknown())
|
|
116
|
+
.optional()
|
|
117
|
+
.describe('Optional diagnostic metadata about the result.'),
|
|
118
|
+
},
|
|
119
|
+
outputSchema: jsonResult,
|
|
120
|
+
annotations: {
|
|
121
|
+
readOnlyHint: false,
|
|
122
|
+
destructiveHint: false,
|
|
123
|
+
idempotentHint: false,
|
|
124
|
+
openWorldHint: false,
|
|
125
|
+
},
|
|
126
|
+
}, async ({ data, final, metadata }) => {
|
|
127
|
+
const timeoutMs = Number(resolveEnv('AGENT_RELAY_RESULT_TIMEOUT_MS') ?? 10_000);
|
|
128
|
+
const controller = new AbortController();
|
|
129
|
+
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
130
|
+
let response;
|
|
131
|
+
try {
|
|
132
|
+
response = await fetch(config.url, {
|
|
133
|
+
method: 'POST',
|
|
134
|
+
signal: controller.signal,
|
|
135
|
+
headers: {
|
|
136
|
+
Authorization: `Bearer ${config.token}`,
|
|
137
|
+
'Content-Type': 'application/json',
|
|
138
|
+
},
|
|
139
|
+
body: JSON.stringify({
|
|
140
|
+
agent: config.agentName,
|
|
141
|
+
data,
|
|
142
|
+
final: final ?? true,
|
|
143
|
+
metadata,
|
|
144
|
+
}),
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
catch (err) {
|
|
148
|
+
if (err.name === 'AbortError') {
|
|
149
|
+
throw new Error(`Agent Relay result submission timed out after ${timeoutMs}ms`);
|
|
150
|
+
}
|
|
151
|
+
throw err;
|
|
152
|
+
}
|
|
153
|
+
finally {
|
|
154
|
+
clearTimeout(timer);
|
|
155
|
+
}
|
|
156
|
+
const responseText = await response.text();
|
|
157
|
+
let payload;
|
|
158
|
+
try {
|
|
159
|
+
payload = responseText ? JSON.parse(responseText) : {};
|
|
160
|
+
}
|
|
161
|
+
catch {
|
|
162
|
+
payload = { success: false, error: responseText };
|
|
163
|
+
}
|
|
164
|
+
if (!response.ok) {
|
|
165
|
+
throw new Error(`Agent Relay result submission failed (${response.status}): ${String(payload.error ?? responseText)}`);
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
content: [{ type: 'text', text: JSON.stringify(payload, null, 2) }],
|
|
169
|
+
structuredContent: payload,
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function createInitialSession(options) {
|
|
174
|
+
const agentToken = options.agentToken ?? null;
|
|
175
|
+
const agentName = options.agentName ?? null;
|
|
176
|
+
const agents = agentToken && agentName
|
|
177
|
+
? new Map([[agentName, { agentName, agentToken }]])
|
|
178
|
+
: new Map();
|
|
179
|
+
return {
|
|
180
|
+
workspaceKey: options.workspaceKey ?? null,
|
|
181
|
+
agentToken,
|
|
182
|
+
agentName,
|
|
183
|
+
agents,
|
|
184
|
+
wsBridge: null,
|
|
185
|
+
subscriptions: null,
|
|
186
|
+
wsInitAttempted: false,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
async function createWorkspace(name, baseUrl) {
|
|
190
|
+
return (await RelayCast.createWorkspace(name, { baseUrl }));
|
|
191
|
+
}
|
|
192
|
+
function extractWorkspaceKey(payload) {
|
|
193
|
+
const data = payload.data && typeof payload.data === 'object' ? payload.data : {};
|
|
194
|
+
const value = payload.workspaceKey ??
|
|
195
|
+
payload.workspace_key ??
|
|
196
|
+
payload.apiKey ??
|
|
197
|
+
payload.api_key ??
|
|
198
|
+
data.workspaceKey ??
|
|
199
|
+
data.workspace_key ??
|
|
200
|
+
data.apiKey ??
|
|
201
|
+
data.api_key;
|
|
202
|
+
return typeof value === 'string' && value.trim() ? value : undefined;
|
|
203
|
+
}
|
|
204
|
+
function extractWorkspaceName(payload, fallback) {
|
|
205
|
+
const data = payload.data && typeof payload.data === 'object' ? payload.data : {};
|
|
206
|
+
const value = payload.workspaceName ?? payload.workspace_name ?? payload.name ?? data.workspaceName;
|
|
207
|
+
return typeof value === 'string' && value.trim() ? value : fallback;
|
|
208
|
+
}
|
|
209
|
+
function requireWorkspaceKey(session) {
|
|
210
|
+
if (session.workspaceKey) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
throw new Error('Workspace key not configured. Call "create_workspace" first, or "set_workspace_key" if someone shared a workspace key.');
|
|
214
|
+
}
|
|
215
|
+
function jsonContent(value) {
|
|
216
|
+
const structuredContent = typeof value === 'object' && value !== null && !Array.isArray(value)
|
|
217
|
+
? value
|
|
218
|
+
: { value };
|
|
219
|
+
return {
|
|
220
|
+
content: [{ type: 'text', text: JSON.stringify(value, null, 2) }],
|
|
221
|
+
structuredContent,
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function textContent(message, structuredContent = { message }) {
|
|
225
|
+
return {
|
|
226
|
+
content: [{ type: 'text', text: message }],
|
|
227
|
+
structuredContent,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function isSchemaObject(schema) {
|
|
231
|
+
return Boolean(schema &&
|
|
232
|
+
typeof schema === 'object' &&
|
|
233
|
+
!Array.isArray(schema) &&
|
|
234
|
+
typeof schema.safeParse !== 'function');
|
|
235
|
+
}
|
|
236
|
+
function getSchemaDescription(schema) {
|
|
237
|
+
return isSchemaObject(schema) && typeof schema.description === 'string' ? schema.description : undefined;
|
|
238
|
+
}
|
|
239
|
+
function zodFromJsonSchema(schema) {
|
|
240
|
+
if (schema === false) {
|
|
241
|
+
return z.never();
|
|
242
|
+
}
|
|
243
|
+
if (!isSchemaObject(schema)) {
|
|
244
|
+
return z.unknown();
|
|
245
|
+
}
|
|
246
|
+
let zodType;
|
|
247
|
+
const schemaType = Array.isArray(schema.type) ? schema.type[0] : schema.type;
|
|
248
|
+
switch (schemaType) {
|
|
249
|
+
case 'array':
|
|
250
|
+
zodType = z.array(zodFromJsonSchema(schema.items));
|
|
251
|
+
break;
|
|
252
|
+
case 'boolean':
|
|
253
|
+
zodType = z.boolean();
|
|
254
|
+
break;
|
|
255
|
+
case 'integer':
|
|
256
|
+
zodType = z.number().int();
|
|
257
|
+
break;
|
|
258
|
+
case 'number':
|
|
259
|
+
zodType = z.number();
|
|
260
|
+
break;
|
|
261
|
+
case 'object':
|
|
262
|
+
if (schema.properties) {
|
|
263
|
+
const required = new Set(schema.required ?? []);
|
|
264
|
+
const shape = {};
|
|
265
|
+
for (const [key, childSchema] of Object.entries(schema.properties)) {
|
|
266
|
+
const child = zodFromJsonSchema(childSchema);
|
|
267
|
+
shape[key] = required.has(key) ? child : child.optional();
|
|
268
|
+
}
|
|
269
|
+
zodType = z.object(shape).passthrough();
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
zodType = z.record(z.string(), z.unknown());
|
|
273
|
+
}
|
|
274
|
+
break;
|
|
275
|
+
case 'string':
|
|
276
|
+
zodType = z.string();
|
|
277
|
+
break;
|
|
278
|
+
default:
|
|
279
|
+
zodType = z.unknown();
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
const description = getSchemaDescription(schema);
|
|
283
|
+
return description ? zodType.describe(description) : zodType;
|
|
284
|
+
}
|
|
285
|
+
function actionToolInputSchema(schema) {
|
|
286
|
+
const zodShape = zodObjectShape(schema);
|
|
287
|
+
if (zodShape) {
|
|
288
|
+
return zodShape;
|
|
289
|
+
}
|
|
290
|
+
if (!isSchemaObject(schema) || schema.type !== 'object') {
|
|
291
|
+
return {
|
|
292
|
+
input: z.unknown().describe('Action input payload. The action registry performs final validation.'),
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
const required = new Set(schema.required ?? []);
|
|
296
|
+
const shape = {};
|
|
297
|
+
for (const [key, childSchema] of Object.entries(schema.properties ?? {})) {
|
|
298
|
+
const child = zodFromJsonSchema(childSchema);
|
|
299
|
+
shape[key] = required.has(key) ? child : child.optional();
|
|
300
|
+
}
|
|
301
|
+
return shape;
|
|
302
|
+
}
|
|
303
|
+
function actionInvocationInput(descriptor, args) {
|
|
304
|
+
const schema = descriptor.inputSchema;
|
|
305
|
+
if (zodObjectShape(schema)) {
|
|
306
|
+
return args;
|
|
307
|
+
}
|
|
308
|
+
if (!isSchemaObject(schema) || schema.type !== 'object') {
|
|
309
|
+
return typeof args === 'object' && args !== null && 'input' in args
|
|
310
|
+
? args.input
|
|
311
|
+
: args;
|
|
312
|
+
}
|
|
313
|
+
return args;
|
|
314
|
+
}
|
|
315
|
+
function zodObjectShape(schema) {
|
|
316
|
+
if (schema instanceof z.ZodObject) {
|
|
317
|
+
return schema.shape;
|
|
318
|
+
}
|
|
319
|
+
return undefined;
|
|
320
|
+
}
|
|
321
|
+
function serializableActionDescriptor(descriptor) {
|
|
322
|
+
return {
|
|
323
|
+
name: descriptor.name,
|
|
324
|
+
description: descriptor.description,
|
|
325
|
+
visibility: descriptor.visibility,
|
|
326
|
+
...(descriptor.inputSchema ? { inputSchema: serializableActionSchema(descriptor.inputSchema) } : {}),
|
|
327
|
+
...(descriptor.outputSchema ? { outputSchema: serializableActionSchema(descriptor.outputSchema) } : {}),
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function serializableActionSchema(schema) {
|
|
331
|
+
if (isSchemaObject(schema)) {
|
|
332
|
+
return schema;
|
|
333
|
+
}
|
|
334
|
+
if (isZodLikeSchema(schema)) {
|
|
335
|
+
return {
|
|
336
|
+
type: 'zod',
|
|
337
|
+
...(schema.description ? { description: schema.description } : {}),
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
return schema;
|
|
341
|
+
}
|
|
342
|
+
function isZodLikeSchema(schema) {
|
|
343
|
+
return Boolean(schema &&
|
|
344
|
+
typeof schema === 'object' &&
|
|
345
|
+
!Array.isArray(schema) &&
|
|
346
|
+
typeof schema.safeParse === 'function');
|
|
347
|
+
}
|
|
348
|
+
function registerAgentRelayActionTools(server, actions, getSession, onAuditEvent, getAgentClient) {
|
|
349
|
+
if (!actions) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Fire-and-forget invocation through the relay: returns an immediate ack
|
|
354
|
+
* (with an `invocation_id`) and does NOT run the handler inline. Falls back to
|
|
355
|
+
* the local in-process registry when the relay action surface is unavailable.
|
|
356
|
+
*/
|
|
357
|
+
const invokeAction = async (name, input) => {
|
|
358
|
+
const relayActions = getRelayAgentActions(getAgentClient);
|
|
359
|
+
if (relayActions) {
|
|
360
|
+
try {
|
|
361
|
+
const ack = await relayActions.invoke(name, asInputRecord(input));
|
|
362
|
+
return jsonContent({ ok: true, status: 'invoked', invocation: ack });
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
return { ...jsonContent({ ok: false, error: errorMessage(error) }), isError: true };
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const session = getSession();
|
|
369
|
+
const result = await actions.invoke({
|
|
370
|
+
name,
|
|
371
|
+
input,
|
|
372
|
+
context: {
|
|
373
|
+
caller: { name: session.agentName ?? 'mcp', type: 'agent' },
|
|
374
|
+
emit: onAuditEvent,
|
|
375
|
+
},
|
|
376
|
+
});
|
|
377
|
+
return result.ok ? jsonContent(result) : { ...jsonContent(result), isError: true };
|
|
378
|
+
};
|
|
379
|
+
server.registerTool('list_actions', {
|
|
380
|
+
title: 'List Actions',
|
|
381
|
+
description: 'List Agent Relay actions available to this agent.',
|
|
382
|
+
inputSchema: {},
|
|
383
|
+
outputSchema: jsonResult,
|
|
384
|
+
annotations: {
|
|
385
|
+
readOnlyHint: true,
|
|
386
|
+
destructiveHint: false,
|
|
387
|
+
idempotentHint: true,
|
|
388
|
+
openWorldHint: false,
|
|
389
|
+
},
|
|
390
|
+
}, async () => jsonContent({
|
|
391
|
+
actions: (await actions.list({ visibility: 'agent' })).map(serializableActionDescriptor),
|
|
392
|
+
}));
|
|
393
|
+
server.registerTool('invoke_action', {
|
|
394
|
+
title: 'Invoke Action',
|
|
395
|
+
description: 'Invoke a registered Agent Relay action by name. Fire-and-forget: returns an ack with an invocation id; the result arrives asynchronously to the action handler.',
|
|
396
|
+
inputSchema: {
|
|
397
|
+
name: z.string().describe('Registered action name'),
|
|
398
|
+
input: z.unknown().describe('Action input payload'),
|
|
399
|
+
},
|
|
400
|
+
outputSchema: jsonResult,
|
|
401
|
+
annotations: {
|
|
402
|
+
readOnlyHint: false,
|
|
403
|
+
destructiveHint: false,
|
|
404
|
+
idempotentHint: false,
|
|
405
|
+
openWorldHint: false,
|
|
406
|
+
},
|
|
407
|
+
}, async ({ name, input }) => invokeAction(name, input));
|
|
408
|
+
void actions
|
|
409
|
+
.list({ visibility: 'agent' })
|
|
410
|
+
.then((descriptors) => {
|
|
411
|
+
for (const descriptor of descriptors) {
|
|
412
|
+
server.registerTool(descriptor.name, {
|
|
413
|
+
title: descriptor.name,
|
|
414
|
+
description: descriptor.description,
|
|
415
|
+
inputSchema: actionToolInputSchema(descriptor.inputSchema),
|
|
416
|
+
outputSchema: jsonResult,
|
|
417
|
+
annotations: {
|
|
418
|
+
readOnlyHint: false,
|
|
419
|
+
destructiveHint: false,
|
|
420
|
+
idempotentHint: false,
|
|
421
|
+
openWorldHint: false,
|
|
422
|
+
},
|
|
423
|
+
}, async (args) => invokeAction(descriptor.name, actionInvocationInput(descriptor, args)));
|
|
424
|
+
}
|
|
425
|
+
})
|
|
426
|
+
.catch(() => undefined);
|
|
427
|
+
}
|
|
428
|
+
/** The relay-backed action surface on the live agent client, when available. */
|
|
429
|
+
function getRelayAgentActions(getAgentClient) {
|
|
430
|
+
if (!getAgentClient) {
|
|
431
|
+
return undefined;
|
|
432
|
+
}
|
|
433
|
+
try {
|
|
434
|
+
return getAgentClient().actions;
|
|
435
|
+
}
|
|
436
|
+
catch {
|
|
437
|
+
return undefined;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
function asInputRecord(input) {
|
|
441
|
+
if (input === undefined || input === null) {
|
|
442
|
+
return undefined;
|
|
443
|
+
}
|
|
444
|
+
if (typeof input === 'object' && !Array.isArray(input)) {
|
|
445
|
+
return input;
|
|
446
|
+
}
|
|
447
|
+
return { input };
|
|
448
|
+
}
|
|
449
|
+
function errorMessage(error) {
|
|
450
|
+
return error instanceof Error ? error.message : String(error);
|
|
451
|
+
}
|
|
452
|
+
function createRegisteredAgent(agentName, agentToken) {
|
|
453
|
+
return { agentName, agentToken };
|
|
454
|
+
}
|
|
455
|
+
export async function registerAgentWithRebind({ session, setSession, getRelay, name, type, persona, metadata, strictAgentName, preferredAgentName, forcedAgentType, }) {
|
|
456
|
+
requireWorkspaceKey(session);
|
|
457
|
+
const configuredName = session.agentName ?? preferredAgentName?.trim() ?? null;
|
|
458
|
+
const warnings = [];
|
|
459
|
+
const effectiveName = strictAgentName && configuredName ? configuredName : name;
|
|
460
|
+
if (strictAgentName && configuredName && name.trim() !== configuredName) {
|
|
461
|
+
warnings.push(`Strict worker identity is enabled; ignoring requested name "${name}" and using "${configuredName}".`);
|
|
462
|
+
}
|
|
463
|
+
const effectiveType = forcedAgentType ?? type;
|
|
464
|
+
if (forcedAgentType && type && type !== forcedAgentType) {
|
|
465
|
+
warnings.push(`Forced worker type is enabled; ignoring requested type "${type}" and using "${forcedAgentType}".`);
|
|
466
|
+
}
|
|
467
|
+
if (session.agentToken && effectiveName && strictAgentName) {
|
|
468
|
+
// If the session tracks per-identity agents, only short-circuit when the
|
|
469
|
+
// strict-named identity is still registered. After an `agent_token_invalid`
|
|
470
|
+
// recovery the entry is dropped from the map, which lets this fall through
|
|
471
|
+
// to a fresh registerOrRotate instead of handing back the dead token.
|
|
472
|
+
const cachedAgent = session.agents?.get(effectiveName);
|
|
473
|
+
const knowsIdentities = session.agents !== undefined;
|
|
474
|
+
if (!knowsIdentities || cachedAgent) {
|
|
475
|
+
return {
|
|
476
|
+
name: effectiveName,
|
|
477
|
+
token: cachedAgent?.agentToken ?? session.agentToken,
|
|
478
|
+
registered_name: effectiveName,
|
|
479
|
+
warnings,
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
const relay = getRelay();
|
|
484
|
+
const result = await relay.agents.registerOrRotate({
|
|
485
|
+
name: effectiveName,
|
|
486
|
+
type: effectiveType,
|
|
487
|
+
persona,
|
|
488
|
+
metadata,
|
|
489
|
+
});
|
|
490
|
+
const reboundName = result.name?.trim() ? result.name : effectiveName;
|
|
491
|
+
setSession({ agentToken: result.token, agentName: reboundName });
|
|
492
|
+
return {
|
|
493
|
+
...result,
|
|
494
|
+
registered_name: reboundName,
|
|
495
|
+
warnings,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
class SubscriptionManager {
|
|
499
|
+
subscriptions = new Set();
|
|
500
|
+
subscribe(uri) {
|
|
501
|
+
this.subscriptions.add(uri);
|
|
502
|
+
}
|
|
503
|
+
unsubscribe(uri) {
|
|
504
|
+
this.subscriptions.delete(uri);
|
|
505
|
+
}
|
|
506
|
+
getMatchingSubscriptions(uris) {
|
|
507
|
+
return uris.filter((uri) => this.subscriptions.has(uri));
|
|
508
|
+
}
|
|
509
|
+
getAll() {
|
|
510
|
+
return [...this.subscriptions];
|
|
511
|
+
}
|
|
512
|
+
clear() {
|
|
513
|
+
this.subscriptions.clear();
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
function getStringEventField(event, field) {
|
|
517
|
+
if (typeof event !== 'object' || event === null) {
|
|
518
|
+
return null;
|
|
519
|
+
}
|
|
520
|
+
const candidate = event[field];
|
|
521
|
+
return typeof candidate === 'string' ? candidate : null;
|
|
522
|
+
}
|
|
523
|
+
function eventToResourceUris(event) {
|
|
524
|
+
const type = getStringEventField(event, 'type');
|
|
525
|
+
switch (type) {
|
|
526
|
+
case 'message.created': {
|
|
527
|
+
const channel = getStringEventField(event, 'channel');
|
|
528
|
+
return channel ? ['relay://inbox', `relay://channels/${channel}/messages`] : ['relay://inbox'];
|
|
529
|
+
}
|
|
530
|
+
case 'message.updated': {
|
|
531
|
+
const channel = getStringEventField(event, 'channel');
|
|
532
|
+
return channel ? [`relay://channels/${channel}/messages`] : [];
|
|
533
|
+
}
|
|
534
|
+
case 'thread.reply': {
|
|
535
|
+
const parentId = getStringEventField(event, 'parentId');
|
|
536
|
+
return parentId ? ['relay://inbox', `relay://messages/${parentId}/thread`] : ['relay://inbox'];
|
|
537
|
+
}
|
|
538
|
+
case 'dm.received':
|
|
539
|
+
case 'group_dm.received': {
|
|
540
|
+
const conversationId = getStringEventField(event, 'conversationId');
|
|
541
|
+
return conversationId ? ['relay://inbox', `relay://dm/${conversationId}`] : ['relay://inbox'];
|
|
542
|
+
}
|
|
543
|
+
case 'agent.online':
|
|
544
|
+
case 'agent.offline':
|
|
545
|
+
return ['relay://agents'];
|
|
546
|
+
case 'channel.created':
|
|
547
|
+
case 'channel.updated':
|
|
548
|
+
case 'channel.archived':
|
|
549
|
+
case 'member.joined':
|
|
550
|
+
case 'member.left':
|
|
551
|
+
return ['relay://channels'];
|
|
552
|
+
case 'webhook.received': {
|
|
553
|
+
const channel = getStringEventField(event, 'channel');
|
|
554
|
+
return channel ? [`relay://channels/${channel}/messages`] : [];
|
|
555
|
+
}
|
|
556
|
+
case 'action.invoked':
|
|
557
|
+
case 'action.completed':
|
|
558
|
+
case 'action.failed':
|
|
559
|
+
// Actions are not channel-scoped; surface invocations via the inbox.
|
|
560
|
+
return ['relay://inbox'];
|
|
561
|
+
case 'reaction.added':
|
|
562
|
+
case 'reaction.removed':
|
|
563
|
+
return ['relay://inbox'];
|
|
564
|
+
default:
|
|
565
|
+
return [];
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
class RealtimeResourceBridge {
|
|
569
|
+
wsClient;
|
|
570
|
+
subscriptions;
|
|
571
|
+
notifyCallback;
|
|
572
|
+
unsubscribeFn = null;
|
|
573
|
+
constructor(wsClient, subscriptions, notifyCallback) {
|
|
574
|
+
this.wsClient = wsClient;
|
|
575
|
+
this.subscriptions = subscriptions;
|
|
576
|
+
this.notifyCallback = notifyCallback;
|
|
577
|
+
}
|
|
578
|
+
start() {
|
|
579
|
+
this.unsubscribeFn = this.wsClient.on('*', (event) => {
|
|
580
|
+
const type = getStringEventField(event, 'type');
|
|
581
|
+
if (type === 'open' ||
|
|
582
|
+
type === 'close' ||
|
|
583
|
+
type === 'error' ||
|
|
584
|
+
type === 'reconnecting' ||
|
|
585
|
+
type === 'permanently_disconnected') {
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
const matched = this.subscriptions.getMatchingSubscriptions(eventToResourceUris(event));
|
|
589
|
+
for (const uri of matched) {
|
|
590
|
+
this.notifyCallback(uri);
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
this.wsClient.connect();
|
|
594
|
+
}
|
|
595
|
+
stop() {
|
|
596
|
+
if (this.unsubscribeFn) {
|
|
597
|
+
this.unsubscribeFn();
|
|
598
|
+
this.unsubscribeFn = null;
|
|
599
|
+
}
|
|
600
|
+
this.wsClient.disconnect();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function registerResourceDefinitions(server, getAgentClient, getRelay) {
|
|
604
|
+
server.registerResource('inbox', 'relay://inbox', { title: 'Inbox', description: 'Unread messages, mentions, and DMs', mimeType: 'application/json' }, async (uri) => {
|
|
605
|
+
const inbox = await getAgentClient().inbox();
|
|
606
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(inbox) }] };
|
|
607
|
+
});
|
|
608
|
+
server.registerResource('agents', 'relay://agents', {
|
|
609
|
+
title: 'Agents',
|
|
610
|
+
description: 'Online and offline agents in the workspace',
|
|
611
|
+
mimeType: 'application/json',
|
|
612
|
+
}, async (uri) => {
|
|
613
|
+
const agents = await getRelay().agents.list();
|
|
614
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(agents) }] };
|
|
615
|
+
});
|
|
616
|
+
server.registerResource('channels', 'relay://channels', { title: 'Channels', description: 'Available channels in the workspace', mimeType: 'application/json' }, async (uri) => {
|
|
617
|
+
const channels = await getAgentClient().channels.list();
|
|
618
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(channels) }] };
|
|
619
|
+
});
|
|
620
|
+
server.registerResource('channel-messages', new ResourceTemplate('relay://channels/{name}/messages', { list: undefined }), {
|
|
621
|
+
title: 'Channel Messages',
|
|
622
|
+
description: 'Messages in a specific channel',
|
|
623
|
+
mimeType: 'application/json',
|
|
624
|
+
}, async (uri, params) => {
|
|
625
|
+
const messages = await getAgentClient().messages(String(params.name));
|
|
626
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(messages) }] };
|
|
627
|
+
});
|
|
628
|
+
server.registerResource('message-thread', new ResourceTemplate('relay://messages/{id}/thread', { list: undefined }), { title: 'Message Thread', description: 'Thread replies on a message', mimeType: 'application/json' }, async (uri, params) => {
|
|
629
|
+
const thread = await getAgentClient().thread(String(params.id));
|
|
630
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(thread) }] };
|
|
631
|
+
});
|
|
632
|
+
server.registerResource('dm-conversation', new ResourceTemplate('relay://dm/{conversation_id}', { list: undefined }), {
|
|
633
|
+
title: 'DM Conversation',
|
|
634
|
+
description: 'Direct message conversation',
|
|
635
|
+
mimeType: 'application/json',
|
|
636
|
+
}, async (uri, params) => {
|
|
637
|
+
const messages = await getAgentClient().dms.messages(String(params.conversation_id));
|
|
638
|
+
return { contents: [{ uri: uri.href, text: JSON.stringify(messages) }] };
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
function hasContentArray(value) {
|
|
642
|
+
return (typeof value === 'object' && value !== null && Array.isArray(value.content));
|
|
643
|
+
}
|
|
644
|
+
const SKIP_PIGGYBACK = new Set(['check_inbox', 'create_workspace', 'set_workspace_key', 'register_agent']);
|
|
645
|
+
function formatInbox(inbox, selfName) {
|
|
646
|
+
const norm = (s) => s.trim().replace(/^@/, '').toLowerCase();
|
|
647
|
+
const selfNorm = selfName ? norm(selfName) : null;
|
|
648
|
+
const isSelf = (name) => selfNorm != null && norm(name) === selfNorm;
|
|
649
|
+
const lines = ['--- Pending Messages ---'];
|
|
650
|
+
if (inbox.unreadChannels?.length) {
|
|
651
|
+
lines.push('Unread channels:');
|
|
652
|
+
for (const ch of inbox.unreadChannels) {
|
|
653
|
+
lines.push(` #${ch.channelName}: ${ch.unreadCount} unread`);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
const mentions = selfNorm ? inbox.mentions?.filter((m) => !isSelf(m.agentName)) : inbox.mentions;
|
|
657
|
+
if (mentions?.length) {
|
|
658
|
+
lines.push('Mentions:');
|
|
659
|
+
for (const m of mentions) {
|
|
660
|
+
lines.push(` @${m.agentName} in #${m.channelName}: "${m.text}"`);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
const dms = selfNorm ? inbox.unreadDms?.filter((dm) => !isSelf(dm.from)) : inbox.unreadDms;
|
|
664
|
+
if (dms?.length) {
|
|
665
|
+
lines.push('Unread DMs:');
|
|
666
|
+
for (const dm of dms) {
|
|
667
|
+
lines.push(` From ${dm.from}: ${dm.unreadCount} unread`);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
const reactions = selfNorm
|
|
671
|
+
? inbox.recentReactions?.filter((reaction) => !isSelf(reaction.agentName))
|
|
672
|
+
: inbox.recentReactions;
|
|
673
|
+
if (reactions?.length) {
|
|
674
|
+
lines.push('Reactions (informational; no response required):');
|
|
675
|
+
for (const reaction of reactions) {
|
|
676
|
+
lines.push(` :${reaction.emoji}: on your message in #${reaction.channelName} by @${reaction.agentName}`);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return lines.length === 1 ? '' : lines.join('\n');
|
|
680
|
+
}
|
|
681
|
+
function readAsIdentity(args) {
|
|
682
|
+
const [input] = args;
|
|
683
|
+
if (typeof input !== 'object' || input === null)
|
|
684
|
+
return undefined;
|
|
685
|
+
const as = input.as;
|
|
686
|
+
return typeof as === 'string' ? as : undefined;
|
|
687
|
+
}
|
|
688
|
+
function invalidAgentTokenToolResult() {
|
|
689
|
+
const text = agentTokenRecoveryMessage();
|
|
690
|
+
return {
|
|
691
|
+
content: [{ type: 'text', text }],
|
|
692
|
+
structuredContent: {
|
|
693
|
+
error: { code: INVALID_AGENT_TOKEN_CODE, message: text },
|
|
694
|
+
},
|
|
695
|
+
isError: true,
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function enableInboxPiggyback(mcpServer, getSession, getAgentClient, invalidateAgentToken) {
|
|
699
|
+
const original = mcpServer.registerTool.bind(mcpServer);
|
|
700
|
+
const mutableServer = mcpServer;
|
|
701
|
+
mutableServer.registerTool = (name, config, handler) => {
|
|
702
|
+
if (!handler) {
|
|
703
|
+
return original(name, config, handler);
|
|
704
|
+
}
|
|
705
|
+
const wrapped = async (...args) => {
|
|
706
|
+
const asIdentity = readAsIdentity(args);
|
|
707
|
+
let result;
|
|
708
|
+
try {
|
|
709
|
+
result = await handler(...args);
|
|
710
|
+
}
|
|
711
|
+
catch (err) {
|
|
712
|
+
// `register_agent` is the recovery path itself — never invalidate a
|
|
713
|
+
// freshly-issued token, and let registration errors bubble normally.
|
|
714
|
+
if (name !== 'register_agent' && isInvalidAgentTokenError(err)) {
|
|
715
|
+
invalidateAgentToken(asIdentity);
|
|
716
|
+
return invalidAgentTokenToolResult();
|
|
717
|
+
}
|
|
718
|
+
throw err;
|
|
719
|
+
}
|
|
720
|
+
// Successful response that still carries an "Invalid agent token" body.
|
|
721
|
+
if (name !== 'register_agent' && isInvalidAgentTokenToolResult(result)) {
|
|
722
|
+
invalidateAgentToken(asIdentity);
|
|
723
|
+
if (hasContentArray(result)) {
|
|
724
|
+
result.content.push({ type: 'text', text: agentTokenRecoveryMessage() });
|
|
725
|
+
}
|
|
726
|
+
return result;
|
|
727
|
+
}
|
|
728
|
+
if (SKIP_PIGGYBACK.has(name) || !getSession().agentToken || !hasContentArray(result)) {
|
|
729
|
+
return result;
|
|
730
|
+
}
|
|
731
|
+
try {
|
|
732
|
+
const inbox = await getAgentClient(asIdentity).inbox();
|
|
733
|
+
const inboxText = formatInbox(inbox, asIdentity ?? getSession().agentName);
|
|
734
|
+
if (inboxText) {
|
|
735
|
+
result.content.push({ type: 'text', text: inboxText });
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
catch (err) {
|
|
739
|
+
// Inbox piggyback is opportunistic; the original tool result should
|
|
740
|
+
// still win. But if the inbox fetch itself reveals an invalid token,
|
|
741
|
+
// clear the stale identity so the next call doesn't reuse it.
|
|
742
|
+
if (isInvalidAgentTokenError(err)) {
|
|
743
|
+
invalidateAgentToken(asIdentity);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
return result;
|
|
747
|
+
};
|
|
748
|
+
return original(name, config, wrapped);
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
function resolveEmoji(input) {
|
|
752
|
+
const normalized = input.trim().replace(/^:/, '').replace(/:$/, '').toLowerCase();
|
|
753
|
+
const aliases = {
|
|
754
|
+
'+1': '👍',
|
|
755
|
+
thumbsup: '👍',
|
|
756
|
+
thumbs_up: '👍',
|
|
757
|
+
check: '✅',
|
|
758
|
+
white_check_mark: '✅',
|
|
759
|
+
rocket: '🚀',
|
|
760
|
+
eyes: '👀',
|
|
761
|
+
heart: '❤️',
|
|
762
|
+
clap: '👏',
|
|
763
|
+
};
|
|
764
|
+
return aliases[normalized] ?? input;
|
|
765
|
+
}
|
|
766
|
+
function registerAgentRelayTools(server, getRelay, getAgentClient, getSession, setSession, baseUrl, strictAgentName, preferredAgentName, forcedAgentType) {
|
|
767
|
+
server.registerTool('create_workspace', {
|
|
768
|
+
title: 'Create Workspace',
|
|
769
|
+
description: 'Create a new Agent Relay workspace and store its workspace key in this MCP session.',
|
|
770
|
+
inputSchema: {
|
|
771
|
+
name: z.string().describe('Human-readable workspace name'),
|
|
772
|
+
},
|
|
773
|
+
outputSchema: jsonResult,
|
|
774
|
+
annotations: {
|
|
775
|
+
readOnlyHint: false,
|
|
776
|
+
destructiveHint: false,
|
|
777
|
+
idempotentHint: false,
|
|
778
|
+
openWorldHint: true,
|
|
779
|
+
},
|
|
780
|
+
}, async ({ name }) => {
|
|
781
|
+
const workspace = await createWorkspace(name, baseUrl);
|
|
782
|
+
const workspaceKey = extractWorkspaceKey(workspace);
|
|
783
|
+
if (!workspaceKey || typeof workspaceKey !== 'string') {
|
|
784
|
+
throw new Error('Workspace created, but the response did not include a workspace key.');
|
|
785
|
+
}
|
|
786
|
+
const workspaceName = extractWorkspaceName(workspace, name);
|
|
787
|
+
setSession({
|
|
788
|
+
workspaceKey,
|
|
789
|
+
agentToken: null,
|
|
790
|
+
agentName: null,
|
|
791
|
+
agents: new Map(),
|
|
792
|
+
});
|
|
793
|
+
return jsonContent({
|
|
794
|
+
workspaceKey,
|
|
795
|
+
workspaceName,
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
server.registerTool('set_workspace_key', {
|
|
799
|
+
title: 'Set Workspace Key',
|
|
800
|
+
description: 'Join this MCP session to an existing Agent Relay workspace using a shared workspace key.',
|
|
801
|
+
inputSchema: {
|
|
802
|
+
workspace_key: z.string().optional().describe('Workspace key starting with "rk_live_"'),
|
|
803
|
+
api_key: z.string().optional().describe('Deprecated alias for workspace_key'),
|
|
804
|
+
},
|
|
805
|
+
outputSchema: messageResult,
|
|
806
|
+
annotations: {
|
|
807
|
+
readOnlyHint: false,
|
|
808
|
+
destructiveHint: false,
|
|
809
|
+
idempotentHint: true,
|
|
810
|
+
openWorldHint: false,
|
|
811
|
+
},
|
|
812
|
+
}, async ({ workspace_key, api_key }) => {
|
|
813
|
+
const key = workspace_key ?? api_key;
|
|
814
|
+
if (!key || typeof key !== 'string') {
|
|
815
|
+
throw new Error('Workspace key is required.');
|
|
816
|
+
}
|
|
817
|
+
if (!key.startsWith('rk_live_')) {
|
|
818
|
+
throw new Error('Workspace key must start with "rk_live_"');
|
|
819
|
+
}
|
|
820
|
+
const session = getSession();
|
|
821
|
+
const switchingWorkspace = session.workspaceKey !== key;
|
|
822
|
+
if (switchingWorkspace) {
|
|
823
|
+
setSession({
|
|
824
|
+
workspaceKey: key,
|
|
825
|
+
agentToken: null,
|
|
826
|
+
agentName: null,
|
|
827
|
+
agents: new Map(),
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
else {
|
|
831
|
+
setSession({ workspaceKey: key });
|
|
832
|
+
}
|
|
833
|
+
const message = switchingWorkspace
|
|
834
|
+
? 'Workspace key set. Call "register_agent" to join this workspace.'
|
|
835
|
+
: 'Workspace key set.';
|
|
836
|
+
return textContent(message);
|
|
837
|
+
});
|
|
838
|
+
server.registerTool('register_agent', {
|
|
839
|
+
title: 'Register Agent',
|
|
840
|
+
description: 'Register an agent identity in the current workspace and obtain an agent token.',
|
|
841
|
+
inputSchema: {
|
|
842
|
+
name: z.string().describe('Unique agent name within the workspace'),
|
|
843
|
+
type: z.enum(['agent', 'human']).optional().describe('Whether this identity is an AI agent or human'),
|
|
844
|
+
persona: z.string().optional().describe('Free-text persona description'),
|
|
845
|
+
metadata: z
|
|
846
|
+
.record(z.string(), z.unknown())
|
|
847
|
+
.optional()
|
|
848
|
+
.describe('Key-value metadata to attach to the agent'),
|
|
849
|
+
},
|
|
850
|
+
outputSchema: jsonResult,
|
|
851
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
852
|
+
}, async ({ name, type, persona, metadata }) => {
|
|
853
|
+
const payload = await registerAgentWithRebind({
|
|
854
|
+
session: getSession(),
|
|
855
|
+
setSession,
|
|
856
|
+
getRelay,
|
|
857
|
+
name,
|
|
858
|
+
type,
|
|
859
|
+
persona,
|
|
860
|
+
metadata,
|
|
861
|
+
strictAgentName,
|
|
862
|
+
preferredAgentName: preferredAgentName ?? null,
|
|
863
|
+
forcedAgentType,
|
|
864
|
+
});
|
|
865
|
+
const token = typeof payload.token === 'string' ? payload.token : null;
|
|
866
|
+
const registeredName = typeof payload.registered_name === 'string'
|
|
867
|
+
? payload.registered_name
|
|
868
|
+
: typeof payload.name === 'string'
|
|
869
|
+
? payload.name
|
|
870
|
+
: name;
|
|
871
|
+
if (token) {
|
|
872
|
+
const nextAgents = new Map(getSession().agents);
|
|
873
|
+
nextAgents.set(registeredName, createRegisteredAgent(registeredName, token));
|
|
874
|
+
setSession({ agentToken: token, agentName: registeredName, agents: nextAgents });
|
|
875
|
+
}
|
|
876
|
+
return jsonContent(payload);
|
|
877
|
+
});
|
|
878
|
+
server.registerTool('list_agents', {
|
|
879
|
+
title: 'List Agents',
|
|
880
|
+
description: 'List agents registered in the current workspace.',
|
|
881
|
+
inputSchema: {
|
|
882
|
+
status: z.enum(['online', 'offline']).optional().describe('Optional status filter'),
|
|
883
|
+
},
|
|
884
|
+
outputSchema: {
|
|
885
|
+
agents: z.array(z.object({}).passthrough()).describe('Registered agents'),
|
|
886
|
+
},
|
|
887
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
888
|
+
}, async ({ status }) => {
|
|
889
|
+
requireWorkspaceKey(getSession());
|
|
890
|
+
const agents = await getRelay().agents.list(status ? { status } : undefined);
|
|
891
|
+
return jsonContent({ agents });
|
|
892
|
+
});
|
|
893
|
+
server.registerTool('create_channel', {
|
|
894
|
+
title: 'Create Channel',
|
|
895
|
+
description: 'Create a new workspace channel.',
|
|
896
|
+
inputSchema: {
|
|
897
|
+
name: z.string().describe('Unique channel name'),
|
|
898
|
+
topic: z.string().optional().describe('Optional channel topic'),
|
|
899
|
+
...identityOverrideInputShape,
|
|
900
|
+
},
|
|
901
|
+
outputSchema: jsonResult,
|
|
902
|
+
annotations: {
|
|
903
|
+
readOnlyHint: false,
|
|
904
|
+
destructiveHint: false,
|
|
905
|
+
idempotentHint: false,
|
|
906
|
+
openWorldHint: true,
|
|
907
|
+
},
|
|
908
|
+
}, async ({ name, topic, as }) => jsonContent(await getAgentClient(as).channels.create({ name, topic })));
|
|
909
|
+
server.registerTool('list_channels', {
|
|
910
|
+
title: 'List Channels',
|
|
911
|
+
description: 'List channels available in the workspace.',
|
|
912
|
+
inputSchema: {
|
|
913
|
+
include_archived: z.boolean().optional().describe('Include archived channels'),
|
|
914
|
+
...identityOverrideInputShape,
|
|
915
|
+
},
|
|
916
|
+
outputSchema: {
|
|
917
|
+
channels: z.array(z.object({}).passthrough()).describe('Channels'),
|
|
918
|
+
},
|
|
919
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
920
|
+
}, async ({ include_archived, as }) => {
|
|
921
|
+
const channels = await getAgentClient(as).channels.list(include_archived ? { includeArchived: include_archived } : undefined);
|
|
922
|
+
return jsonContent({ channels });
|
|
923
|
+
});
|
|
924
|
+
server.registerTool('join_channel', {
|
|
925
|
+
title: 'Join Channel',
|
|
926
|
+
description: 'Join an existing channel.',
|
|
927
|
+
inputSchema: {
|
|
928
|
+
channel: z.string().describe('Channel name'),
|
|
929
|
+
...identityOverrideInputShape,
|
|
930
|
+
},
|
|
931
|
+
outputSchema: messageResult,
|
|
932
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
933
|
+
}, async ({ channel, as }) => {
|
|
934
|
+
await getAgentClient(as).channels.join(channel);
|
|
935
|
+
return textContent(`Joined channel #${channel}`);
|
|
936
|
+
});
|
|
937
|
+
server.registerTool('leave_channel', {
|
|
938
|
+
title: 'Leave Channel',
|
|
939
|
+
description: 'Leave a channel.',
|
|
940
|
+
inputSchema: {
|
|
941
|
+
channel: z.string().describe('Channel name'),
|
|
942
|
+
...identityOverrideInputShape,
|
|
943
|
+
},
|
|
944
|
+
outputSchema: messageResult,
|
|
945
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
946
|
+
}, async ({ channel, as }) => {
|
|
947
|
+
await getAgentClient(as).channels.leave(channel);
|
|
948
|
+
return textContent(`Left channel #${channel}`);
|
|
949
|
+
});
|
|
950
|
+
server.registerTool('invite_to_channel', {
|
|
951
|
+
title: 'Invite to Channel',
|
|
952
|
+
description: 'Invite another agent to a channel.',
|
|
953
|
+
inputSchema: {
|
|
954
|
+
channel: z.string().describe('Channel name'),
|
|
955
|
+
agent: z.string().describe('Agent name to invite'),
|
|
956
|
+
...identityOverrideInputShape,
|
|
957
|
+
},
|
|
958
|
+
outputSchema: messageResult,
|
|
959
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
960
|
+
}, async ({ channel, agent, as }) => {
|
|
961
|
+
await getAgentClient(as).channels.invite(channel, agent);
|
|
962
|
+
return textContent(`Invited ${agent} to #${channel}`);
|
|
963
|
+
});
|
|
964
|
+
server.registerTool('set_channel_topic', {
|
|
965
|
+
title: 'Set Channel Topic',
|
|
966
|
+
description: 'Update a channel topic.',
|
|
967
|
+
inputSchema: {
|
|
968
|
+
channel: z.string().describe('Channel name'),
|
|
969
|
+
topic: z.string().describe('New topic'),
|
|
970
|
+
...identityOverrideInputShape,
|
|
971
|
+
},
|
|
972
|
+
outputSchema: jsonResult,
|
|
973
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
974
|
+
}, async ({ channel, topic, as }) => jsonContent(await getAgentClient(as).channels.setTopic(channel, topic)));
|
|
975
|
+
server.registerTool('archive_channel', {
|
|
976
|
+
title: 'Archive Channel',
|
|
977
|
+
description: 'Archive a channel.',
|
|
978
|
+
inputSchema: {
|
|
979
|
+
channel: z.string().describe('Channel name'),
|
|
980
|
+
...identityOverrideInputShape,
|
|
981
|
+
},
|
|
982
|
+
outputSchema: messageResult,
|
|
983
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
984
|
+
}, async ({ channel, as }) => {
|
|
985
|
+
await getAgentClient(as).channels.archive(channel);
|
|
986
|
+
return textContent(`Archived channel #${channel}`);
|
|
987
|
+
});
|
|
988
|
+
server.registerTool('post_message', {
|
|
989
|
+
title: 'Post Message',
|
|
990
|
+
description: 'Post a new message to a channel as the current agent.',
|
|
991
|
+
inputSchema: {
|
|
992
|
+
channel: z.string().describe('Channel name'),
|
|
993
|
+
text: z.string().describe('Message text'),
|
|
994
|
+
attachments: z.array(z.string()).optional().describe('File attachment IDs'),
|
|
995
|
+
mode: z.enum(['wait', 'steer']).optional().describe('Delivery mode'),
|
|
996
|
+
...identityOverrideInputShape,
|
|
997
|
+
},
|
|
998
|
+
outputSchema: jsonResult,
|
|
999
|
+
annotations: {
|
|
1000
|
+
readOnlyHint: false,
|
|
1001
|
+
destructiveHint: false,
|
|
1002
|
+
idempotentHint: false,
|
|
1003
|
+
openWorldHint: true,
|
|
1004
|
+
},
|
|
1005
|
+
}, async ({ channel, text, attachments, mode, as }) => jsonContent(await getAgentClient(as).send(channel, text, { attachments, mode })));
|
|
1006
|
+
server.registerTool('list_messages', {
|
|
1007
|
+
title: 'Get Messages',
|
|
1008
|
+
description: 'Retrieve message history from a channel.',
|
|
1009
|
+
inputSchema: {
|
|
1010
|
+
channel: z.string().describe('Channel name'),
|
|
1011
|
+
limit: z.number().optional().describe('Maximum messages to return'),
|
|
1012
|
+
before: z.string().optional().describe('Older-than cursor'),
|
|
1013
|
+
after: z.string().optional().describe('Newer-than cursor'),
|
|
1014
|
+
...identityOverrideInputShape,
|
|
1015
|
+
},
|
|
1016
|
+
outputSchema: {
|
|
1017
|
+
messages: z.array(z.object({}).passthrough()).describe('Messages'),
|
|
1018
|
+
},
|
|
1019
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1020
|
+
}, async ({ channel, limit, before, after, as }) => {
|
|
1021
|
+
const messages = await getAgentClient(as).messages(channel, { limit, before, after });
|
|
1022
|
+
return jsonContent({ messages });
|
|
1023
|
+
});
|
|
1024
|
+
server.registerTool('reply_to_thread', {
|
|
1025
|
+
title: 'Reply to Thread',
|
|
1026
|
+
description: 'Reply to an existing message thread.',
|
|
1027
|
+
inputSchema: {
|
|
1028
|
+
message_id: z.string().describe('Parent message ID'),
|
|
1029
|
+
text: z.string().describe('Reply text'),
|
|
1030
|
+
...identityOverrideInputShape,
|
|
1031
|
+
},
|
|
1032
|
+
outputSchema: jsonResult,
|
|
1033
|
+
annotations: {
|
|
1034
|
+
readOnlyHint: false,
|
|
1035
|
+
destructiveHint: false,
|
|
1036
|
+
idempotentHint: false,
|
|
1037
|
+
openWorldHint: true,
|
|
1038
|
+
},
|
|
1039
|
+
}, async ({ message_id, text, as }) => jsonContent(await getAgentClient(as).reply(message_id, text)));
|
|
1040
|
+
server.registerTool('get_message_thread', {
|
|
1041
|
+
title: 'Get Thread',
|
|
1042
|
+
description: 'Retrieve a message thread.',
|
|
1043
|
+
inputSchema: {
|
|
1044
|
+
message_id: z.string().describe('Parent message ID'),
|
|
1045
|
+
limit: z.number().optional().describe('Maximum replies to return'),
|
|
1046
|
+
...identityOverrideInputShape,
|
|
1047
|
+
},
|
|
1048
|
+
outputSchema: jsonResult,
|
|
1049
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1050
|
+
}, async ({ message_id, limit, as }) => jsonContent(await getAgentClient(as).thread(message_id, limit ? { limit } : undefined)));
|
|
1051
|
+
server.registerTool('send_dm', {
|
|
1052
|
+
title: 'Send Direct Message',
|
|
1053
|
+
description: 'Send a private direct message to another agent.',
|
|
1054
|
+
inputSchema: {
|
|
1055
|
+
to: z.string().describe('Recipient agent name'),
|
|
1056
|
+
text: z.string().describe('DM text'),
|
|
1057
|
+
mode: z.enum(['wait', 'steer']).optional().describe('Delivery mode'),
|
|
1058
|
+
attachments: z.array(z.string()).optional().describe('File attachment IDs'),
|
|
1059
|
+
...identityOverrideInputShape,
|
|
1060
|
+
},
|
|
1061
|
+
outputSchema: jsonResult,
|
|
1062
|
+
annotations: {
|
|
1063
|
+
readOnlyHint: false,
|
|
1064
|
+
destructiveHint: false,
|
|
1065
|
+
idempotentHint: false,
|
|
1066
|
+
openWorldHint: true,
|
|
1067
|
+
},
|
|
1068
|
+
}, async ({ to, text, mode, attachments, as }) => jsonContent(await getAgentClient(as).dm(to, text, { mode, attachments })));
|
|
1069
|
+
server.registerTool('list_dms', {
|
|
1070
|
+
title: 'List DM Conversations',
|
|
1071
|
+
description: 'List direct message conversations for the current agent.',
|
|
1072
|
+
inputSchema: {
|
|
1073
|
+
...identityOverrideInputShape,
|
|
1074
|
+
},
|
|
1075
|
+
outputSchema: {
|
|
1076
|
+
conversations: z.array(z.object({}).passthrough()).describe('DM conversations'),
|
|
1077
|
+
},
|
|
1078
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1079
|
+
}, async ({ as }) => jsonContent({ conversations: await getAgentClient(as).dms.conversations() }));
|
|
1080
|
+
server.registerTool('send_group_dm', {
|
|
1081
|
+
title: 'Send Group DM',
|
|
1082
|
+
description: 'Create a group DM and send the first message.',
|
|
1083
|
+
inputSchema: {
|
|
1084
|
+
participants: z.array(z.string()).describe('Participant agent names'),
|
|
1085
|
+
name: z.string().optional().describe('Optional group name'),
|
|
1086
|
+
text: z.string().describe('Initial message'),
|
|
1087
|
+
...identityOverrideInputShape,
|
|
1088
|
+
},
|
|
1089
|
+
outputSchema: jsonResult,
|
|
1090
|
+
annotations: {
|
|
1091
|
+
readOnlyHint: false,
|
|
1092
|
+
destructiveHint: false,
|
|
1093
|
+
idempotentHint: false,
|
|
1094
|
+
openWorldHint: true,
|
|
1095
|
+
},
|
|
1096
|
+
}, async ({ participants, name, text, as }) => {
|
|
1097
|
+
const client = getAgentClient(as);
|
|
1098
|
+
const conversation = await client.dms.createGroup({ participants, name });
|
|
1099
|
+
const message = await client.dms.sendMessage(conversation.id, text);
|
|
1100
|
+
return jsonContent({ conversation, message });
|
|
1101
|
+
});
|
|
1102
|
+
server.registerTool('add_reaction', {
|
|
1103
|
+
title: 'Add Reaction',
|
|
1104
|
+
description: 'Add an emoji reaction to a message.',
|
|
1105
|
+
inputSchema: {
|
|
1106
|
+
message_id: z.string().describe('Message ID'),
|
|
1107
|
+
emoji: z.string().describe('Emoji character or shortcode'),
|
|
1108
|
+
...identityOverrideInputShape,
|
|
1109
|
+
},
|
|
1110
|
+
outputSchema: messageResult,
|
|
1111
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1112
|
+
}, async ({ message_id, emoji, as }) => {
|
|
1113
|
+
const resolved = resolveEmoji(emoji);
|
|
1114
|
+
await getAgentClient(as).react(message_id, resolved);
|
|
1115
|
+
return textContent(`Reacted with ${resolved}`);
|
|
1116
|
+
});
|
|
1117
|
+
server.registerTool('remove_reaction', {
|
|
1118
|
+
title: 'Remove Reaction',
|
|
1119
|
+
description: 'Remove an emoji reaction from a message.',
|
|
1120
|
+
inputSchema: {
|
|
1121
|
+
message_id: z.string().describe('Message ID'),
|
|
1122
|
+
emoji: z.string().describe('Emoji character or shortcode'),
|
|
1123
|
+
...identityOverrideInputShape,
|
|
1124
|
+
},
|
|
1125
|
+
outputSchema: messageResult,
|
|
1126
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1127
|
+
}, async ({ message_id, emoji, as }) => {
|
|
1128
|
+
const resolved = resolveEmoji(emoji);
|
|
1129
|
+
await getAgentClient(as).unreact(message_id, resolved);
|
|
1130
|
+
return textContent(`Removed reaction ${resolved}`);
|
|
1131
|
+
});
|
|
1132
|
+
server.registerTool('search_messages', {
|
|
1133
|
+
title: 'Search Messages',
|
|
1134
|
+
description: 'Search messages across the workspace.',
|
|
1135
|
+
inputSchema: {
|
|
1136
|
+
query: z.string().describe('Text search query'),
|
|
1137
|
+
channel: z.string().optional().describe('Optional channel filter'),
|
|
1138
|
+
from: z.string().optional().describe('Optional sender filter'),
|
|
1139
|
+
limit: z.number().optional().describe('Maximum results'),
|
|
1140
|
+
...identityOverrideInputShape,
|
|
1141
|
+
},
|
|
1142
|
+
outputSchema: {
|
|
1143
|
+
results: z.array(z.object({}).passthrough()).describe('Search results'),
|
|
1144
|
+
},
|
|
1145
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1146
|
+
}, async ({ query, channel, from, limit, as }) => jsonContent({ results: await getAgentClient(as).search(query, { channel, from, limit }) }));
|
|
1147
|
+
server.registerTool('check_inbox', {
|
|
1148
|
+
title: 'Check Inbox',
|
|
1149
|
+
description: 'Check unread messages, mentions, DMs, and reactions for the current agent.',
|
|
1150
|
+
inputSchema: {
|
|
1151
|
+
limit: z.number().optional().describe('Maximum inbox items'),
|
|
1152
|
+
...identityOverrideInputShape,
|
|
1153
|
+
},
|
|
1154
|
+
outputSchema: jsonResult,
|
|
1155
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1156
|
+
}, async ({ limit, as }) => jsonContent(await getAgentClient(as).inbox(limit != null ? { limit } : undefined)));
|
|
1157
|
+
server.registerTool('mark_message_read', {
|
|
1158
|
+
title: 'Mark as Read',
|
|
1159
|
+
description: 'Mark a message as read for the current agent.',
|
|
1160
|
+
inputSchema: {
|
|
1161
|
+
message_id: z.string().describe('Message ID'),
|
|
1162
|
+
...identityOverrideInputShape,
|
|
1163
|
+
},
|
|
1164
|
+
outputSchema: messageResult,
|
|
1165
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1166
|
+
}, async ({ message_id, as }) => {
|
|
1167
|
+
await getAgentClient(as).markRead(message_id);
|
|
1168
|
+
return textContent(`Marked message ${message_id} as read`);
|
|
1169
|
+
});
|
|
1170
|
+
server.registerTool('get_message_readers', {
|
|
1171
|
+
title: 'Get Readers',
|
|
1172
|
+
description: 'List agents who have read a message.',
|
|
1173
|
+
inputSchema: {
|
|
1174
|
+
message_id: z.string().describe('Message ID'),
|
|
1175
|
+
...identityOverrideInputShape,
|
|
1176
|
+
},
|
|
1177
|
+
outputSchema: {
|
|
1178
|
+
readers: z.array(z.object({}).passthrough()).describe('Readers'),
|
|
1179
|
+
},
|
|
1180
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1181
|
+
}, async ({ message_id, as }) => jsonContent({ readers: await getAgentClient(as).readers(message_id) }));
|
|
1182
|
+
server.registerTool('add_agent', {
|
|
1183
|
+
title: 'Add Agent',
|
|
1184
|
+
description: 'Ask Relaycast to spawn a worker agent for a task.',
|
|
1185
|
+
inputSchema: {
|
|
1186
|
+
name: z.string().describe('Worker agent name'),
|
|
1187
|
+
cli: z.enum(['claude', 'codex', 'gemini', 'aider', 'goose']).describe('AI CLI to launch'),
|
|
1188
|
+
task: z.string().describe('Task instructions'),
|
|
1189
|
+
channel: z.string().optional().describe('Channel to join'),
|
|
1190
|
+
persona: z.string().optional().describe('Worker persona'),
|
|
1191
|
+
model: z.string().optional().describe('Model powering the worker'),
|
|
1192
|
+
},
|
|
1193
|
+
outputSchema: jsonResult,
|
|
1194
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
1195
|
+
}, async ({ name, cli, task, channel, persona, model }) => jsonContent(await getRelay().agents.spawn({
|
|
1196
|
+
name,
|
|
1197
|
+
cli,
|
|
1198
|
+
task,
|
|
1199
|
+
channel,
|
|
1200
|
+
persona,
|
|
1201
|
+
metadata: model ? { model } : undefined,
|
|
1202
|
+
})));
|
|
1203
|
+
server.registerTool('remove_agent', {
|
|
1204
|
+
title: 'Remove Agent',
|
|
1205
|
+
description: 'Release a worker agent from active duty.',
|
|
1206
|
+
inputSchema: {
|
|
1207
|
+
name: z.string().describe('Agent name'),
|
|
1208
|
+
reason: z.string().optional().describe('Removal reason'),
|
|
1209
|
+
delete_agent: z.boolean().optional().describe('Permanently delete the agent'),
|
|
1210
|
+
},
|
|
1211
|
+
outputSchema: {
|
|
1212
|
+
name: z.string().describe('Removed agent name'),
|
|
1213
|
+
removed: z.boolean().describe('Whether the agent was removed'),
|
|
1214
|
+
deleted: z.boolean().describe('Whether the agent was deleted'),
|
|
1215
|
+
reason: z.string().nullable().describe('Removal reason'),
|
|
1216
|
+
},
|
|
1217
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
1218
|
+
}, async ({ name, reason, delete_agent }) => {
|
|
1219
|
+
const released = await getRelay().agents.release({ name, reason, deleteAgent: delete_agent });
|
|
1220
|
+
return jsonContent({
|
|
1221
|
+
name: released.name,
|
|
1222
|
+
removed: released.released,
|
|
1223
|
+
deleted: released.deleted,
|
|
1224
|
+
reason: released.reason,
|
|
1225
|
+
});
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
export function createAgentRelayMcpServer(options) {
|
|
1229
|
+
const session = createInitialSession({
|
|
1230
|
+
workspaceKey: options.workspaceKey ?? options.apiKey ?? null,
|
|
1231
|
+
agentToken: options.agentToken ?? null,
|
|
1232
|
+
agentName: options.agentName ?? null,
|
|
1233
|
+
});
|
|
1234
|
+
const mcpServer = new McpServer({ name: 'agent-relay', version: AGENT_RELAY_MCP_VERSION }, {
|
|
1235
|
+
capabilities: {
|
|
1236
|
+
resources: { subscribe: true, listChanged: true },
|
|
1237
|
+
tools: {},
|
|
1238
|
+
prompts: {},
|
|
1239
|
+
},
|
|
1240
|
+
});
|
|
1241
|
+
const getSession = () => session;
|
|
1242
|
+
const getRelay = () => {
|
|
1243
|
+
const workspaceKey = session.workspaceKey;
|
|
1244
|
+
if (!workspaceKey) {
|
|
1245
|
+
throw new Error('Workspace key not configured. Call "create_workspace" first, or provide a shared workspace key with "set_workspace_key".');
|
|
1246
|
+
}
|
|
1247
|
+
return new RelayCast({
|
|
1248
|
+
apiKey: workspaceKey,
|
|
1249
|
+
baseUrl: options.baseUrl,
|
|
1250
|
+
});
|
|
1251
|
+
};
|
|
1252
|
+
const notifySubscribers = () => {
|
|
1253
|
+
const uris = session.subscriptions?.getAll() ?? [];
|
|
1254
|
+
for (const uri of uris) {
|
|
1255
|
+
mcpServer.server.sendResourceUpdated({ uri }).catch(() => undefined);
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
const setSession = (partial) => {
|
|
1259
|
+
const switchingWorkspace = partial.workspaceKey !== undefined && partial.workspaceKey !== session.workspaceKey;
|
|
1260
|
+
const changingToken = partial.agentToken !== undefined && partial.agentToken !== session.agentToken;
|
|
1261
|
+
if (switchingWorkspace || changingToken) {
|
|
1262
|
+
notifySubscribers();
|
|
1263
|
+
session.wsBridge?.stop();
|
|
1264
|
+
session.subscriptions?.clear();
|
|
1265
|
+
session.wsBridge = null;
|
|
1266
|
+
session.subscriptions = null;
|
|
1267
|
+
session.wsInitAttempted = false;
|
|
1268
|
+
}
|
|
1269
|
+
Object.assign(session, partial);
|
|
1270
|
+
if (session.agentToken && !session.wsBridge && !session.wsInitAttempted) {
|
|
1271
|
+
try {
|
|
1272
|
+
const subscriptions = new SubscriptionManager();
|
|
1273
|
+
const wsClient = new WsClient({
|
|
1274
|
+
token: session.agentToken,
|
|
1275
|
+
baseUrl: options.baseUrl,
|
|
1276
|
+
});
|
|
1277
|
+
const wsBridge = new RealtimeResourceBridge(wsClient, subscriptions, (uri) => {
|
|
1278
|
+
mcpServer.server.sendResourceUpdated({ uri }).catch(() => undefined);
|
|
1279
|
+
});
|
|
1280
|
+
wsBridge.start();
|
|
1281
|
+
session.wsBridge = wsBridge;
|
|
1282
|
+
session.subscriptions = subscriptions;
|
|
1283
|
+
session.wsInitAttempted = true;
|
|
1284
|
+
}
|
|
1285
|
+
catch {
|
|
1286
|
+
session.wsBridge = null;
|
|
1287
|
+
session.subscriptions = null;
|
|
1288
|
+
session.wsInitAttempted = true;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
const invalidateAgentToken = (asIdentity) => {
|
|
1293
|
+
const partial = {};
|
|
1294
|
+
const targetName = asIdentity ?? session.agentName ?? null;
|
|
1295
|
+
if (targetName && session.agents.has(targetName)) {
|
|
1296
|
+
const nextAgents = new Map(session.agents);
|
|
1297
|
+
nextAgents.delete(targetName);
|
|
1298
|
+
partial.agents = nextAgents;
|
|
1299
|
+
}
|
|
1300
|
+
// Clear the active-session token when the invalidated identity is the
|
|
1301
|
+
// active one (or the caller didn't pin to a particular identity). The
|
|
1302
|
+
// active workspaceKey stays intact so `register_agent` can recover.
|
|
1303
|
+
if (!asIdentity || asIdentity === session.agentName) {
|
|
1304
|
+
if (session.agentToken !== null) {
|
|
1305
|
+
partial.agentToken = null;
|
|
1306
|
+
}
|
|
1307
|
+
if (session.agentName !== null && (!asIdentity || asIdentity === session.agentName)) {
|
|
1308
|
+
partial.agentName = null;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
if (Object.keys(partial).length > 0) {
|
|
1312
|
+
setSession(partial);
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1315
|
+
const resolveAgentToken = (asIdentity) => {
|
|
1316
|
+
if (asIdentity) {
|
|
1317
|
+
const registered = session.agents.get(asIdentity);
|
|
1318
|
+
if (!registered) {
|
|
1319
|
+
throw new Error(`Unknown agent identity "${asIdentity}". Register it first.`);
|
|
1320
|
+
}
|
|
1321
|
+
return registered.agentToken;
|
|
1322
|
+
}
|
|
1323
|
+
if (!session.agentToken) {
|
|
1324
|
+
throw new Error('Not registered. Call the "register_agent" tool first.');
|
|
1325
|
+
}
|
|
1326
|
+
return session.agentToken;
|
|
1327
|
+
};
|
|
1328
|
+
const getAgentClient = (asIdentity) => {
|
|
1329
|
+
const agentToken = resolveAgentToken(asIdentity);
|
|
1330
|
+
return new RelayCast({
|
|
1331
|
+
apiKey: agentToken,
|
|
1332
|
+
baseUrl: options.baseUrl,
|
|
1333
|
+
}).as(agentToken, { autoHeartbeatMs: false });
|
|
1334
|
+
};
|
|
1335
|
+
enableInboxPiggyback(mcpServer, getSession, getAgentClient, invalidateAgentToken);
|
|
1336
|
+
registerResourceDefinitions(mcpServer, getAgentClient, getRelay);
|
|
1337
|
+
mcpServer.server.setRequestHandler(SubscribeRequestSchema, async (req) => {
|
|
1338
|
+
session.subscriptions?.subscribe(req.params.uri);
|
|
1339
|
+
return {};
|
|
1340
|
+
});
|
|
1341
|
+
mcpServer.server.setRequestHandler(UnsubscribeRequestSchema, async (req) => {
|
|
1342
|
+
session.subscriptions?.unsubscribe(req.params.uri);
|
|
1343
|
+
return {};
|
|
1344
|
+
});
|
|
1345
|
+
registerAgentRelayTools(mcpServer, getRelay, getAgentClient, getSession, setSession, options.baseUrl, options.strictAgentName, options.agentName, options.agentType);
|
|
1346
|
+
registerAgentRelayActionTools(mcpServer, options.actions, getSession, options.onActionAuditEvent, getAgentClient);
|
|
1347
|
+
registerAgentResultTool(mcpServer, readAgentResultCallbackConfig(options.agentName));
|
|
1348
|
+
mcpServer.registerPrompt('system', {
|
|
1349
|
+
title: 'System Prompt',
|
|
1350
|
+
description: 'Get the default system instructions for Agent Relay collaboration.',
|
|
1351
|
+
}, async () => ({
|
|
1352
|
+
messages: [
|
|
1353
|
+
{
|
|
1354
|
+
role: 'user',
|
|
1355
|
+
content: {
|
|
1356
|
+
type: 'text',
|
|
1357
|
+
text: DEFAULT_SYSTEM_PROMPT,
|
|
1358
|
+
},
|
|
1359
|
+
},
|
|
1360
|
+
],
|
|
1361
|
+
}));
|
|
1362
|
+
const handlers = mcpServer.server._requestHandlers;
|
|
1363
|
+
const origToolsListHandler = handlers.get('tools/list');
|
|
1364
|
+
if (origToolsListHandler) {
|
|
1365
|
+
mcpServer.server.setRequestHandler(ListToolsRequestSchema, async (req, extra) => {
|
|
1366
|
+
const result = await origToolsListHandler(req, extra);
|
|
1367
|
+
if (result?.tools) {
|
|
1368
|
+
result.tools = result.tools.map((tool) => {
|
|
1369
|
+
const { execution, outputSchema, _meta, ...clean } = tool;
|
|
1370
|
+
void execution;
|
|
1371
|
+
void outputSchema;
|
|
1372
|
+
void _meta;
|
|
1373
|
+
return clean;
|
|
1374
|
+
});
|
|
1375
|
+
}
|
|
1376
|
+
return result;
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
if (session.agentToken && !session.wsBridge) {
|
|
1380
|
+
setSession({ agentToken: session.agentToken, agentName: session.agentName });
|
|
1381
|
+
}
|
|
1382
|
+
return mcpServer;
|
|
1383
|
+
}
|
|
1384
|
+
/** Relaycast agent tokens are opaque `at_live_<hex>` literals. Anything else
|
|
1385
|
+
* (for example a RelayAuth JWT carried in RELAY_AGENT_TOKEN by `relay on start`)
|
|
1386
|
+
* is not a valid Relaycast credential and must be replaced. */
|
|
1387
|
+
function isRelaycastAgentToken(token) {
|
|
1388
|
+
return typeof token === 'string' && token.startsWith('at_live_');
|
|
1389
|
+
}
|
|
1390
|
+
export async function resolveStdioBootstrapOptions(options) {
|
|
1391
|
+
if (isRelaycastAgentToken(options.agentToken) || options.skipBootstrap) {
|
|
1392
|
+
return options;
|
|
1393
|
+
}
|
|
1394
|
+
const workspaceKey = options.workspaceKey ?? options.apiKey;
|
|
1395
|
+
if (!workspaceKey || !options.agentName) {
|
|
1396
|
+
return options;
|
|
1397
|
+
}
|
|
1398
|
+
const relay = new RelayCast({
|
|
1399
|
+
apiKey: workspaceKey,
|
|
1400
|
+
baseUrl: options.baseUrl,
|
|
1401
|
+
});
|
|
1402
|
+
const registered = await relay.agents.registerOrRotate({
|
|
1403
|
+
name: options.agentName,
|
|
1404
|
+
type: options.agentType,
|
|
1405
|
+
});
|
|
1406
|
+
return {
|
|
1407
|
+
...options,
|
|
1408
|
+
agentToken: registered.token,
|
|
1409
|
+
agentName: registered.name ?? options.agentName,
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
export async function startAgentRelayMcpStdio(options) {
|
|
1413
|
+
const bootstrappedOptions = await resolveStdioBootstrapOptions(options);
|
|
1414
|
+
const mcpServer = createAgentRelayMcpServer({
|
|
1415
|
+
...bootstrappedOptions,
|
|
1416
|
+
telemetryTransport: 'stdio',
|
|
1417
|
+
});
|
|
1418
|
+
const transport = new StdioServerTransport();
|
|
1419
|
+
await mcpServer.connect(transport);
|
|
1420
|
+
}
|
|
1421
|
+
export function optionsFromEnv() {
|
|
1422
|
+
const workspaceKey = resolveEnv('RELAY_WORKSPACE_KEY') ?? resolveEnv('RELAY_API_KEY');
|
|
1423
|
+
const agentName = resolveEnv('RELAY_AGENT_NAME') ??
|
|
1424
|
+
resolveEnv('RELAY_CLAW_NAME') ??
|
|
1425
|
+
(workspaceKey ? 'orchestrator' : undefined);
|
|
1426
|
+
return {
|
|
1427
|
+
workspaceKey,
|
|
1428
|
+
baseUrl: resolveEnv('RELAY_BASE_URL'),
|
|
1429
|
+
agentToken: resolveEnv('RELAY_AGENT_TOKEN'),
|
|
1430
|
+
agentName,
|
|
1431
|
+
agentType: normalizeAgentType(resolveEnv('RELAY_AGENT_TYPE')),
|
|
1432
|
+
strictAgentName: envFlagEnabled(resolveEnv('RELAY_STRICT_AGENT_NAME')),
|
|
1433
|
+
skipBootstrap: envFlagEnabled(resolveEnv('RELAY_SKIP_BOOTSTRAP')),
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
if (isEntrypoint()) {
|
|
1437
|
+
startAgentRelayMcpStdio(optionsFromEnv()).catch((error) => {
|
|
1438
|
+
const message = error instanceof Error ? (error.stack ?? error.message) : String(error);
|
|
1439
|
+
process.stderr.write(`${message}\n`);
|
|
1440
|
+
process.exit(1);
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
//# sourceMappingURL=agent-relay-mcp.js.map
|