experimental-ash 0.2.0-alpha.2 → 0.2.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/channel/http-channel.d.ts +26 -0
- package/dist/src/channel/http-channel.d.ts.map +1 -0
- package/dist/src/channel/http-channel.js +24 -0
- package/dist/src/channel/http-channel.js.map +1 -0
- package/dist/src/channel/resolve-text.d.ts +20 -0
- package/dist/src/channel/resolve-text.d.ts.map +1 -0
- package/dist/src/channel/resolve-text.js +60 -0
- package/dist/src/channel/resolve-text.js.map +1 -0
- package/dist/src/channel/schedule-channel.d.ts +16 -0
- package/dist/src/channel/schedule-channel.d.ts.map +1 -0
- package/dist/src/channel/schedule-channel.js +20 -0
- package/dist/src/channel/schedule-channel.js.map +1 -0
- package/dist/src/channel/schedule.d.ts +4 -6
- package/dist/src/channel/schedule.d.ts.map +1 -1
- package/dist/src/channel/schedule.js +6 -9
- package/dist/src/channel/schedule.js.map +1 -1
- package/dist/src/channel/slack-channel.d.ts +125 -0
- package/dist/src/channel/slack-channel.d.ts.map +1 -0
- package/dist/src/channel/slack-channel.js +320 -0
- package/dist/src/channel/slack-channel.js.map +1 -0
- package/dist/src/channel/subagent-channel.d.ts +41 -0
- package/dist/src/channel/subagent-channel.d.ts.map +1 -0
- package/dist/src/channel/{subagent-emitter.js → subagent-channel.js} +15 -19
- package/dist/src/channel/subagent-channel.js.map +1 -0
- package/dist/src/channel/types.d.ts +157 -90
- package/dist/src/channel/types.d.ts.map +1 -1
- package/dist/src/channel/types.js +64 -1
- package/dist/src/channel/types.js.map +1 -1
- package/dist/src/cli/dev/input-requests.d.ts +4 -4
- package/dist/src/cli/dev/input-requests.d.ts.map +1 -1
- package/dist/src/cli/dev/input-requests.js +34 -65
- package/dist/src/cli/dev/input-requests.js.map +1 -1
- package/dist/src/cli/dev/repl.d.ts.map +1 -1
- package/dist/src/cli/dev/repl.js +41 -24
- package/dist/src/cli/dev/repl.js.map +1 -1
- package/dist/src/client/index.d.ts +3 -2
- package/dist/src/client/index.d.ts.map +1 -1
- package/dist/src/client/index.js +1 -0
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/message-response.d.ts +5 -5
- package/dist/src/client/message-response.d.ts.map +1 -1
- package/dist/src/client/message-response.js +6 -6
- package/dist/src/client/message-response.js.map +1 -1
- package/dist/src/client/open-stream.d.ts +1 -1
- package/dist/src/client/open-stream.d.ts.map +1 -1
- package/dist/src/client/open-stream.js +1 -1
- package/dist/src/client/open-stream.js.map +1 -1
- package/dist/src/client/session-utils.d.ts +3 -3
- package/dist/src/client/session-utils.d.ts.map +1 -1
- package/dist/src/client/session-utils.js +4 -4
- package/dist/src/client/session-utils.js.map +1 -1
- package/dist/src/client/session.d.ts +5 -5
- package/dist/src/client/session.js +28 -28
- package/dist/src/client/session.js.map +1 -1
- package/dist/src/client/types.d.ts +8 -8
- package/dist/src/client/types.d.ts.map +1 -1
- package/dist/src/compiler/channel-url.d.ts +1 -1
- package/dist/src/compiler/channel-url.js +1 -1
- package/dist/src/compiler/manifest.d.ts +38 -5
- package/dist/src/compiler/manifest.d.ts.map +1 -1
- package/dist/src/compiler/manifest.js +15 -1
- package/dist/src/compiler/manifest.js.map +1 -1
- package/dist/src/compiler/module-map.js +8 -0
- package/dist/src/compiler/module-map.js.map +1 -1
- package/dist/src/compiler/normalize-channel.d.ts +1 -1
- package/dist/src/compiler/normalize-channel.js +3 -3
- package/dist/src/compiler/normalize-channel.js.map +1 -1
- package/dist/src/compiler/normalize-connection.d.ts +14 -0
- package/dist/src/compiler/normalize-connection.d.ts.map +1 -0
- package/dist/src/compiler/normalize-connection.js +29 -0
- package/dist/src/compiler/normalize-connection.js.map +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts.map +1 -1
- package/dist/src/compiler/normalize-manifest.js +2 -0
- package/dist/src/compiler/normalize-manifest.js.map +1 -1
- package/dist/src/context/accessors.d.ts +13 -12
- package/dist/src/context/accessors.d.ts.map +1 -1
- package/dist/src/context/accessors.js +16 -17
- package/dist/src/context/accessors.js.map +1 -1
- package/dist/src/context/container.d.ts +17 -19
- package/dist/src/context/container.d.ts.map +1 -1
- package/dist/src/context/container.js +21 -14
- package/dist/src/context/container.js.map +1 -1
- package/dist/src/context/durable-context.d.ts +18 -0
- package/dist/src/context/durable-context.d.ts.map +1 -0
- package/dist/src/context/durable-context.js +49 -0
- package/dist/src/context/durable-context.js.map +1 -0
- package/dist/src/context/key.d.ts +43 -83
- package/dist/src/context/key.d.ts.map +1 -1
- package/dist/src/context/key.js +58 -80
- package/dist/src/context/key.js.map +1 -1
- package/dist/src/context/keys.d.ts +8 -20
- package/dist/src/context/keys.d.ts.map +1 -1
- package/dist/src/context/keys.js +20 -34
- package/dist/src/context/keys.js.map +1 -1
- package/dist/src/context/provider.d.ts +2 -2
- package/dist/src/context/provider.d.ts.map +1 -1
- package/dist/src/context/providers/connection.d.ts +4 -0
- package/dist/src/context/providers/connection.d.ts.map +1 -0
- package/dist/src/context/providers/connection.js +18 -0
- package/dist/src/context/providers/connection.js.map +1 -0
- package/dist/src/context/providers/session.d.ts.map +1 -1
- package/dist/src/context/providers/session.js +1 -2
- package/dist/src/context/providers/session.js.map +1 -1
- package/dist/src/context/providers/skill.d.ts.map +1 -1
- package/dist/src/context/providers/skill.js +2 -15
- package/dist/src/context/providers/skill.js.map +1 -1
- package/dist/src/context/run-step.d.ts +6 -8
- package/dist/src/context/run-step.d.ts.map +1 -1
- package/dist/src/context/run-step.js +15 -17
- package/dist/src/context/run-step.js.map +1 -1
- package/dist/src/context/seed-keys.d.ts +21 -0
- package/dist/src/context/seed-keys.d.ts.map +1 -0
- package/dist/src/context/seed-keys.js +31 -0
- package/dist/src/context/seed-keys.js.map +1 -0
- package/dist/src/context/serialize.d.ts +8 -9
- package/dist/src/context/serialize.d.ts.map +1 -1
- package/dist/src/context/serialize.js +38 -15
- package/dist/src/context/serialize.js.map +1 -1
- package/dist/src/discover/connections.d.ts +48 -0
- package/dist/src/discover/connections.d.ts.map +1 -0
- package/dist/src/discover/connections.js +169 -0
- package/dist/src/discover/connections.js.map +1 -0
- package/dist/src/discover/discover-agent.d.ts +1 -0
- package/dist/src/discover/discover-agent.d.ts.map +1 -1
- package/dist/src/discover/discover-agent.js +8 -0
- package/dist/src/discover/discover-agent.js.map +1 -1
- package/dist/src/discover/discover-subagent.js +7 -0
- package/dist/src/discover/discover-subagent.js.map +1 -1
- package/dist/src/discover/filesystem.d.ts +3 -3
- package/dist/src/discover/filesystem.d.ts.map +1 -1
- package/dist/src/discover/filesystem.js +7 -0
- package/dist/src/discover/filesystem.js.map +1 -1
- package/dist/src/discover/grammar.d.ts +20 -4
- package/dist/src/discover/grammar.d.ts.map +1 -1
- package/dist/src/discover/grammar.js +31 -5
- package/dist/src/discover/grammar.js.map +1 -1
- package/dist/src/discover/manifest.d.ts +28 -1
- package/dist/src/discover/manifest.d.ts.map +1 -1
- package/dist/src/discover/manifest.js +11 -1
- package/dist/src/discover/manifest.js.map +1 -1
- package/dist/src/evals/runner/artifacts.js +1 -1
- package/dist/src/evals/runner/artifacts.js.map +1 -1
- package/dist/src/evals/runner/derive-run-facts.js +5 -5
- package/dist/src/evals/runner/derive-run-facts.js.map +1 -1
- package/dist/src/evals/runner/execute-case.js +4 -4
- package/dist/src/evals/runner/execute-case.js.map +1 -1
- package/dist/src/evals/runner/execute-suite.js +1 -1
- package/dist/src/evals/runner/execute-suite.js.map +1 -1
- package/dist/src/evals/runner/reporters/braintrust.js +2 -2
- package/dist/src/evals/runner/reporters/braintrust.js.map +1 -1
- package/dist/src/evals/types.d.ts +4 -4
- package/dist/src/evals/types.d.ts.map +1 -1
- package/dist/src/execution/continuous-entry.d.ts +18 -9
- package/dist/src/execution/continuous-entry.d.ts.map +1 -1
- package/dist/src/execution/continuous-entry.js +62 -18
- package/dist/src/execution/continuous-entry.js.map +1 -1
- package/dist/src/execution/continuous-runtime.d.ts +1 -1
- package/dist/src/execution/continuous-runtime.d.ts.map +1 -1
- package/dist/src/execution/continuous-runtime.js +14 -10
- package/dist/src/execution/continuous-runtime.js.map +1 -1
- package/dist/src/execution/node-step.d.ts +1 -2
- package/dist/src/execution/node-step.d.ts.map +1 -1
- package/dist/src/execution/node-step.js +42 -55
- package/dist/src/execution/node-step.js.map +1 -1
- package/dist/src/execution/runtime-context.d.ts +3 -0
- package/dist/src/execution/runtime-context.d.ts.map +1 -1
- package/dist/src/execution/runtime-context.js +6 -4
- package/dist/src/execution/runtime-context.js.map +1 -1
- package/dist/src/execution/session.d.ts +2 -1
- package/dist/src/execution/session.d.ts.map +1 -1
- package/dist/src/execution/session.js +1 -0
- package/dist/src/execution/session.js.map +1 -1
- package/dist/src/execution/skills/access.d.ts.map +1 -1
- package/dist/src/execution/skills/instructions.d.ts +6 -6
- package/dist/src/execution/skills/instructions.d.ts.map +1 -1
- package/dist/src/execution/skills/instructions.js +15 -15
- package/dist/src/execution/skills/instructions.js.map +1 -1
- package/dist/src/execution/skills/types.d.ts +4 -4
- package/dist/src/execution/skills/types.d.ts.map +1 -1
- package/dist/src/execution/step-context.d.ts +27 -0
- package/dist/src/execution/step-context.d.ts.map +1 -0
- package/dist/src/execution/step-context.js +54 -0
- package/dist/src/execution/step-context.js.map +1 -0
- package/dist/src/execution/subagent-tool.d.ts +1 -1
- package/dist/src/execution/subagent-tool.d.ts.map +1 -1
- package/dist/src/execution/subagent-tool.js +3 -4
- package/dist/src/execution/subagent-tool.js.map +1 -1
- package/dist/src/execution/tool-compaction.d.ts +1 -3
- package/dist/src/execution/tool-compaction.d.ts.map +1 -1
- package/dist/src/execution/tool-compaction.js +6 -20
- package/dist/src/execution/tool-compaction.js.map +1 -1
- package/dist/src/execution/types.d.ts +1 -1
- package/dist/src/execution/types.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.d.ts +4 -5
- package/dist/src/execution/workflow-entry.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.js +7 -2
- package/dist/src/execution/workflow-entry.js.map +1 -1
- package/dist/src/execution/workflow-runtime.d.ts.map +1 -1
- package/dist/src/execution/workflow-runtime.js +10 -5
- package/dist/src/execution/workflow-runtime.js.map +1 -1
- package/dist/src/execution/workflow-steps.d.ts +13 -6
- package/dist/src/execution/workflow-steps.d.ts.map +1 -1
- package/dist/src/execution/workflow-steps.js +24 -19
- package/dist/src/execution/workflow-steps.js.map +1 -1
- package/dist/src/harness/emission.d.ts +36 -27
- package/dist/src/harness/emission.d.ts.map +1 -1
- package/dist/src/harness/emission.js +130 -84
- package/dist/src/harness/emission.js.map +1 -1
- package/dist/src/harness/execute-tool.d.ts +52 -0
- package/dist/src/harness/execute-tool.d.ts.map +1 -0
- package/dist/src/harness/execute-tool.js +59 -0
- package/dist/src/harness/execute-tool.js.map +1 -0
- package/dist/src/harness/input-extraction.d.ts +3 -3
- package/dist/src/harness/input-extraction.d.ts.map +1 -1
- package/dist/src/harness/input-extraction.js +15 -8
- package/dist/src/harness/input-extraction.js.map +1 -1
- package/dist/src/harness/input-requests.d.ts +46 -40
- package/dist/src/harness/input-requests.d.ts.map +1 -1
- package/dist/src/harness/input-requests.js +169 -245
- package/dist/src/harness/input-requests.js.map +1 -1
- package/dist/src/harness/messages.d.ts +10 -9
- package/dist/src/harness/messages.d.ts.map +1 -1
- package/dist/src/harness/messages.js +23 -20
- package/dist/src/harness/messages.js.map +1 -1
- package/dist/src/harness/provider-tools.d.ts +2 -2
- package/dist/src/harness/provider-tools.d.ts.map +1 -1
- package/dist/src/harness/provider-tools.js +7 -3
- package/dist/src/harness/provider-tools.js.map +1 -1
- package/dist/src/harness/step-hooks.d.ts +77 -0
- package/dist/src/harness/step-hooks.d.ts.map +1 -0
- package/dist/src/harness/step-hooks.js +192 -0
- package/dist/src/harness/step-hooks.js.map +1 -0
- package/dist/src/harness/tool-loop.d.ts +4 -2
- package/dist/src/harness/tool-loop.d.ts.map +1 -1
- package/dist/src/harness/tool-loop.js +130 -181
- package/dist/src/harness/tool-loop.js.map +1 -1
- package/dist/src/harness/tools.d.ts +12 -16
- package/dist/src/harness/tools.d.ts.map +1 -1
- package/dist/src/harness/tools.js +39 -33
- package/dist/src/harness/tools.js.map +1 -1
- package/dist/src/harness/types.d.ts +44 -28
- package/dist/src/harness/types.d.ts.map +1 -1
- package/dist/src/harness/types.js +6 -1
- package/dist/src/harness/types.js.map +1 -1
- package/dist/src/internal/application/compiled-artifacts.d.ts +5 -3
- package/dist/src/internal/application/compiled-artifacts.d.ts.map +1 -1
- package/dist/src/internal/application/compiled-artifacts.js +19 -40
- package/dist/src/internal/application/compiled-artifacts.js.map +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/channel.d.ts +3 -3
- package/dist/src/internal/authored-definition/channel.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/channel.js +28 -4
- package/dist/src/internal/authored-definition/channel.js.map +1 -1
- package/dist/src/internal/authored-definition/connection.d.ts +10 -0
- package/dist/src/internal/authored-definition/connection.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/connection.js +134 -0
- package/dist/src/internal/authored-definition/connection.js.map +1 -0
- package/dist/src/internal/authored-module.js +1 -1
- package/dist/src/internal/authored-module.js.map +1 -1
- package/dist/src/internal/message/builder.d.ts +1 -2
- package/dist/src/internal/message/builder.d.ts.map +1 -1
- package/dist/src/internal/message/builder.js +4 -12
- package/dist/src/internal/message/builder.js.map +1 -1
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts +3 -1
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/configure-message-routes.js +124 -25
- package/dist/src/internal/nitro/host/configure-message-routes.js.map +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +63 -21
- package/dist/src/internal/nitro/host/create-application-nitro.js.map +1 -1
- package/dist/src/internal/nitro/host/load-home-page-web-assets.d.ts +13 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.js +35 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.js.map +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +10 -18
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.js +16 -45
- package/dist/src/internal/nitro/routes/channel-dispatch.js.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.d.ts +88 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.js +175 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.js.map +1 -0
- package/dist/src/internal/nitro/routes/home.d.ts +7 -0
- package/dist/src/internal/nitro/routes/home.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home.js +22 -0
- package/dist/src/internal/nitro/routes/home.js.map +1 -0
- package/dist/src/internal/nitro/routes/index.d.ts +3 -8
- package/dist/src/internal/nitro/routes/index.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/index.js +18 -36
- package/dist/src/internal/nitro/routes/index.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +10 -3
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.js +2 -9
- package/dist/src/internal/nitro/routes/runtime-artifacts.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +8 -7
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.js +10 -10
- package/dist/src/internal/nitro/routes/runtime-stack.js.map +1 -1
- package/dist/src/internal/nitro/routes/schedule-task.d.ts +7 -7
- package/dist/src/internal/nitro/routes/schedule-task.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/schedule-task.js +22 -30
- package/dist/src/internal/nitro/routes/schedule-task.js.map +1 -1
- package/dist/src/internal/nitro/routes/web-ui/assets/index.js +10 -0
- package/dist/src/internal/nitro/routes/web-ui/assets/style.css +2 -0
- package/dist/src/internal/nitro/routes/web-ui/index.html +17 -0
- package/dist/src/internal/nitro/routes/workflow-data.d.ts +32 -0
- package/dist/src/internal/nitro/routes/workflow-data.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-data.js +142 -0
- package/dist/src/internal/nitro/routes/workflow-data.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.d.ts +46 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.js +137 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.d.ts +14 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.js +42 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.d.ts +14 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.js +42 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run.d.ts +13 -0
- package/dist/src/internal/nitro/routes/workflow-run.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run.js +35 -0
- package/dist/src/internal/nitro/routes/workflow-run.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-runs.d.ts +11 -0
- package/dist/src/internal/nitro/routes/workflow-runs.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-runs.js +29 -0
- package/dist/src/internal/nitro/routes/workflow-runs.js.map +1 -0
- package/dist/src/protocol/message.d.ts +160 -76
- package/dist/src/protocol/message.d.ts.map +1 -1
- package/dist/src/protocol/message.js +92 -36
- package/dist/src/protocol/message.js.map +1 -1
- package/dist/src/protocol/routes.d.ts +11 -3
- package/dist/src/protocol/routes.d.ts.map +1 -1
- package/dist/src/protocol/routes.js +12 -4
- package/dist/src/protocol/routes.js.map +1 -1
- package/dist/src/public/channels/auth.d.ts +32 -81
- package/dist/src/public/channels/auth.d.ts.map +1 -1
- package/dist/src/public/channels/auth.js +23 -86
- package/dist/src/public/channels/auth.js.map +1 -1
- package/dist/src/public/channels/http.d.ts +66 -26
- package/dist/src/public/channels/http.d.ts.map +1 -1
- package/dist/src/public/channels/http.js +88 -78
- package/dist/src/public/channels/http.js.map +1 -1
- package/dist/src/public/channels/index.d.ts +9 -10
- package/dist/src/public/channels/index.d.ts.map +1 -1
- package/dist/src/public/channels/index.js +9 -9
- package/dist/src/public/channels/index.js.map +1 -1
- package/dist/src/public/channels/slack/index.d.ts +104 -37
- package/dist/src/public/channels/slack/index.d.ts.map +1 -1
- package/dist/src/public/channels/slack/index.js +168 -47
- package/dist/src/public/channels/slack/index.js.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.d.ts +5 -5
- package/dist/src/public/channels/slack/lowlevel.d.ts.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.js +4 -4
- package/dist/src/public/channels/slack/lowlevel.js.map +1 -1
- package/dist/src/public/connections/index.d.ts +25 -0
- package/dist/src/public/connections/index.d.ts.map +1 -0
- package/dist/src/public/connections/index.js +24 -0
- package/dist/src/public/connections/index.js.map +1 -0
- package/dist/src/public/definitions/channel.d.ts +89 -60
- package/dist/src/public/definitions/channel.d.ts.map +1 -1
- package/dist/src/public/definitions/channel.js +42 -24
- package/dist/src/public/definitions/channel.js.map +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +60 -0
- package/dist/src/public/definitions/connections/mcp.d.ts.map +1 -0
- package/dist/src/public/definitions/connections/mcp.js +7 -0
- package/dist/src/public/definitions/connections/mcp.js.map +1 -0
- package/dist/src/public/definitions/tool.d.ts +14 -7
- package/dist/src/public/definitions/tool.d.ts.map +1 -1
- package/dist/src/public/definitions/tool.js.map +1 -1
- package/dist/src/public/index.d.ts +10 -9
- package/dist/src/public/index.d.ts.map +1 -1
- package/dist/src/public/index.js +7 -6
- package/dist/src/public/index.js.map +1 -1
- package/dist/src/public/sandboxes/internal.d.ts +1 -1
- package/dist/src/public/sandboxes/internal.js +1 -1
- package/dist/src/public/tools/defaults.d.ts +6 -6
- package/dist/src/public/tools/defaults.d.ts.map +1 -1
- package/dist/src/public/tools/defaults.js +6 -6
- package/dist/src/public/tools/defaults.js.map +1 -1
- package/dist/src/public/tools/internal.d.ts +1 -1
- package/dist/src/public/tools/internal.js +1 -1
- package/dist/src/runtime/actions/types.d.ts +21 -18
- package/dist/src/runtime/actions/types.d.ts.map +1 -1
- package/dist/src/runtime/actions/types.js +22 -19
- package/dist/src/runtime/actions/types.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +37 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.js +149 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.js.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap-model.js +11 -80
- package/dist/src/runtime/agent/bootstrap-model.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap.js +4 -1
- package/dist/src/runtime/agent/bootstrap.js.map +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.d.ts.map +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +72 -134
- package/dist/src/runtime/agent/mock-model-adapter.js.map +1 -1
- package/dist/src/runtime/channels/registry.d.ts +21 -0
- package/dist/src/runtime/channels/registry.d.ts.map +1 -0
- package/dist/src/runtime/channels/registry.js +65 -0
- package/dist/src/runtime/channels/registry.js.map +1 -0
- package/dist/src/runtime/connections/mcp-client.d.ts +48 -0
- package/dist/src/runtime/connections/mcp-client.d.ts.map +1 -0
- package/dist/src/runtime/connections/mcp-client.js +182 -0
- package/dist/src/runtime/connections/mcp-client.js.map +1 -0
- package/dist/src/runtime/connections/registry.d.ts +33 -0
- package/dist/src/runtime/connections/registry.d.ts.map +1 -0
- package/dist/src/runtime/connections/registry.js +54 -0
- package/dist/src/runtime/connections/registry.js.map +1 -0
- package/dist/src/runtime/connections/types.d.ts +75 -0
- package/dist/src/runtime/connections/types.d.ts.map +1 -0
- package/dist/src/runtime/connections/types.js +9 -0
- package/dist/src/runtime/connections/types.js.map +1 -0
- package/dist/src/runtime/framework-channels/index.d.ts +6 -6
- package/dist/src/runtime/framework-channels/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-channels/index.js +16 -14
- package/dist/src/runtime/framework-channels/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/ask-question.js +4 -4
- package/dist/src/runtime/framework-tools/ask-question.js.map +1 -1
- package/dist/src/runtime/framework-tools/connection-execute.d.ts +10 -0
- package/dist/src/runtime/framework-tools/connection-execute.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/connection-execute.js +50 -0
- package/dist/src/runtime/framework-tools/connection-execute.js.map +1 -0
- package/dist/src/runtime/framework-tools/connection-search.d.ts +43 -0
- package/dist/src/runtime/framework-tools/connection-search.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/connection-search.js +135 -0
- package/dist/src/runtime/framework-tools/connection-search.js.map +1 -0
- package/dist/src/runtime/framework-tools/file-state.d.ts +5 -5
- package/dist/src/runtime/framework-tools/file-state.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/file-state.js +6 -8
- package/dist/src/runtime/framework-tools/file-state.js.map +1 -1
- package/dist/src/runtime/framework-tools/index.d.ts +3 -1
- package/dist/src/runtime/framework-tools/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/index.js +10 -1
- package/dist/src/runtime/framework-tools/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/skill.d.ts +4 -4
- package/dist/src/runtime/framework-tools/skill.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/skill.js +14 -11
- package/dist/src/runtime/framework-tools/skill.js.map +1 -1
- package/dist/src/runtime/framework-tools/todo.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/todo.js +2 -4
- package/dist/src/runtime/framework-tools/todo.js.map +1 -1
- package/dist/src/runtime/input/types.d.ts +40 -115
- package/dist/src/runtime/input/types.d.ts.map +1 -1
- package/dist/src/runtime/input/types.js +28 -66
- package/dist/src/runtime/input/types.js.map +1 -1
- package/dist/src/runtime/loaders/module-map.js +8 -0
- package/dist/src/runtime/loaders/module-map.js.map +1 -1
- package/dist/src/runtime/prompt/compose.d.ts +4 -1
- package/dist/src/runtime/prompt/compose.d.ts.map +1 -1
- package/dist/src/runtime/prompt/compose.js +18 -1
- package/dist/src/runtime/prompt/compose.js.map +1 -1
- package/dist/src/runtime/prompt/connections.d.ts +10 -0
- package/dist/src/runtime/prompt/connections.d.ts.map +1 -0
- package/dist/src/runtime/prompt/connections.js +25 -0
- package/dist/src/runtime/prompt/connections.js.map +1 -0
- package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.js +29 -7
- package/dist/src/runtime/resolve-agent-graph.js.map +1 -1
- package/dist/src/runtime/resolve-agent.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent.js +3 -0
- package/dist/src/runtime/resolve-agent.js.map +1 -1
- package/dist/src/runtime/resolve-channel.d.ts.map +1 -1
- package/dist/src/runtime/resolve-channel.js +1 -0
- package/dist/src/runtime/resolve-channel.js.map +1 -1
- package/dist/src/runtime/resolve-connection.d.ts +16 -0
- package/dist/src/runtime/resolve-connection.d.ts.map +1 -0
- package/dist/src/runtime/resolve-connection.js +69 -0
- package/dist/src/runtime/resolve-connection.js.map +1 -0
- package/dist/src/runtime/resolve-tool.d.ts.map +1 -1
- package/dist/src/runtime/resolve-tool.js +8 -0
- package/dist/src/runtime/resolve-tool.js.map +1 -1
- package/dist/src/runtime/sessions/auth.d.ts +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +2 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.js +14 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -1
- package/dist/src/runtime/skills/fragment-context.d.ts +2 -2
- package/dist/src/runtime/skills/fragment-context.d.ts.map +1 -1
- package/dist/src/runtime/skills/fragment-context.js +2 -2
- package/dist/src/runtime/skills/fragment-context.js.map +1 -1
- package/dist/src/runtime/standard-schema.d.ts +28 -0
- package/dist/src/runtime/standard-schema.d.ts.map +1 -0
- package/dist/src/runtime/standard-schema.js +65 -0
- package/dist/src/runtime/standard-schema.js.map +1 -0
- package/dist/src/runtime/types.d.ts +29 -3
- package/dist/src/runtime/types.d.ts.map +1 -1
- package/dist/src/services/dev-client/send-message.d.ts +2 -2
- package/dist/src/services/dev-client/send-message.d.ts.map +1 -1
- package/dist/src/services/dev-client/send-message.js +21 -22
- package/dist/src/services/dev-client/send-message.js.map +1 -1
- package/dist/src/services/dev-client/session.d.ts +5 -5
- package/dist/src/services/dev-client/session.d.ts.map +1 -1
- package/dist/src/services/dev-client/session.js +2 -2
- package/dist/src/services/dev-client/session.js.map +1 -1
- package/dist/src/services/dev-client.d.ts +6 -6
- package/dist/src/services/dev-client.d.ts.map +1 -1
- package/dist/src/services/dev-client.js +3 -3
- package/dist/src/services/dev-client.js.map +1 -1
- package/docs/external-agent-protocol.md +37 -34
- package/docs/internals/channels.md +15 -12
- package/docs/internals/context.md +81 -161
- package/docs/internals/message-runtime.md +28 -26
- package/docs/public/README.md +22 -20
- package/docs/public/auth-and-route-protection.md +15 -12
- package/docs/public/channels/README.md +16 -11
- package/docs/public/cli-build-and-debugging.md +1 -1
- package/docs/public/context-control.md +7 -3
- package/docs/public/evals.md +3 -3
- package/docs/public/getting-started.md +15 -12
- package/docs/public/human-in-the-loop.md +45 -57
- package/docs/public/migration-guide.md +71 -0
- package/docs/public/project-layout.md +5 -0
- package/docs/public/runs-and-streaming.md +32 -25
- package/docs/public/schedules.md +4 -4
- package/docs/public/session-context.md +131 -15
- package/docs/public/skills.md +27 -3
- package/docs/public/subagents.md +2 -2
- package/docs/public/tools.md +23 -30
- package/docs/public/typescript-api.md +16 -12
- package/docs/public/vercel-deployment.md +3 -4
- package/docs/public/workspace.md +11 -11
- package/package.json +18 -11
- package/dist/src/channel/emitter-registry.d.ts +0 -34
- package/dist/src/channel/emitter-registry.d.ts.map +0 -1
- package/dist/src/channel/emitter-registry.js +0 -63
- package/dist/src/channel/emitter-registry.js.map +0 -1
- package/dist/src/channel/http-emitter.d.ts +0 -16
- package/dist/src/channel/http-emitter.d.ts.map +0 -1
- package/dist/src/channel/http-emitter.js +0 -22
- package/dist/src/channel/http-emitter.js.map +0 -1
- package/dist/src/channel/schedule-emitter.d.ts +0 -15
- package/dist/src/channel/schedule-emitter.d.ts.map +0 -1
- package/dist/src/channel/schedule-emitter.js +0 -21
- package/dist/src/channel/schedule-emitter.js.map +0 -1
- package/dist/src/channel/slack-emitter.d.ts +0 -56
- package/dist/src/channel/slack-emitter.d.ts.map +0 -1
- package/dist/src/channel/slack-emitter.js +0 -235
- package/dist/src/channel/slack-emitter.js.map +0 -1
- package/dist/src/channel/subagent-emitter.d.ts +0 -41
- package/dist/src/channel/subagent-emitter.d.ts.map +0 -1
- package/dist/src/channel/subagent-emitter.js.map +0 -1
- package/dist/src/context/state.d.ts +0 -27
- package/dist/src/context/state.d.ts.map +0 -1
- package/dist/src/context/state.js +0 -53
- package/dist/src/context/state.js.map +0 -1
- package/dist/src/internal/message/nitro-route-shims.d.ts +0 -6
- package/dist/src/internal/message/nitro-route-shims.d.ts.map +0 -1
- package/dist/src/internal/message/nitro-route-shims.js +0 -38
- package/dist/src/internal/message/nitro-route-shims.js.map +0 -1
- package/dist/src/internal/message/rewrite-generated-imports.d.ts +0 -15
- package/dist/src/internal/message/rewrite-generated-imports.d.ts.map +0 -1
- package/dist/src/internal/message/rewrite-generated-imports.js +0 -59
- package/dist/src/internal/message/rewrite-generated-imports.js.map +0 -1
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts +0 -35
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts.map +0 -1
- package/dist/src/internal/nitro/host/channel-url-matcher.js +0 -57
- package/dist/src/internal/nitro/host/channel-url-matcher.js.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts +0 -11
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js +0 -264
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts +0 -9
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js +0 -15
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js.map +0 -1
- package/dist/src/internal/nitro/routes/index.html +0 -525
- package/dist/src/internal/nitro/runtime-configuration.d.ts +0 -16
- package/dist/src/internal/nitro/runtime-configuration.d.ts.map +0 -1
- package/dist/src/internal/nitro/runtime-configuration.js +0 -23
- package/dist/src/internal/nitro/runtime-configuration.js.map +0 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts +0 -10
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts.map +0 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js +0 -17
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js.map +0 -1
- package/dist/src/runtime/tools/execute-tool.d.ts +0 -20
- package/dist/src/runtime/tools/execute-tool.d.ts.map +0 -1
- package/dist/src/runtime/tools/execute-tool.js +0 -69
- package/dist/src/runtime/tools/execute-tool.js.map +0 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { createAshMessageStreamRoutePath } from "./routes.js";
|
|
2
|
-
export const
|
|
2
|
+
export const ASH_SESSION_ID_HEADER = "x-ash-session-id";
|
|
3
3
|
export const ASH_STREAM_FORMAT_HEADER = "x-ash-stream-format";
|
|
4
4
|
export const ASH_STREAM_VERSION_HEADER = "x-ash-stream-version";
|
|
5
5
|
export const ASH_WORKFLOW_ID_HEADER = "x-ash-workflow-id";
|
|
6
6
|
export const ASH_MESSAGE_STREAM_CONTENT_TYPE = "application/x-ndjson; charset=utf-8";
|
|
7
7
|
export const ASH_MESSAGE_STREAM_FORMAT = "ndjson";
|
|
8
|
-
export const ASH_MESSAGE_STREAM_VERSION = "
|
|
8
|
+
export const ASH_MESSAGE_STREAM_VERSION = "11";
|
|
9
9
|
const textEncoder = new TextEncoder();
|
|
10
10
|
/**
|
|
11
|
-
* Returns the stable stream route path for one message workflow
|
|
11
|
+
* Returns the stable stream route path for one message workflow session.
|
|
12
12
|
*/
|
|
13
|
-
export function
|
|
14
|
-
return createAshMessageStreamRoutePath(
|
|
13
|
+
export function createMessageSessionStreamPath(sessionId) {
|
|
14
|
+
return createAshMessageStreamRoutePath(sessionId);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Returns true when the current stream has reached a turn boundary or terminal
|
|
18
|
-
*
|
|
18
|
+
* session outcome.
|
|
19
19
|
*/
|
|
20
20
|
export function isCurrentTurnBoundaryEvent(event) {
|
|
21
|
-
return (event.type === "
|
|
22
|
-
event.type === "
|
|
21
|
+
return (event.type === "session.completed" ||
|
|
22
|
+
event.type === "session.failed" ||
|
|
23
23
|
event.type === "session.waiting");
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Creates the `
|
|
26
|
+
* Creates the `session.started` event for one session.
|
|
27
27
|
*/
|
|
28
|
-
export function
|
|
28
|
+
export function createSessionStartedEvent(input) {
|
|
29
29
|
const data = {};
|
|
30
30
|
if (input?.invocation !== undefined) {
|
|
31
31
|
data.invocation = input.invocation;
|
|
@@ -35,7 +35,7 @@ export function createRunStartedEvent(input) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
data,
|
|
38
|
-
type: "
|
|
38
|
+
type: "session.started",
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
@@ -64,13 +64,14 @@ export function createMessageReceivedEvent(input) {
|
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Creates the `actions.requested` event for one
|
|
67
|
+
* Creates the `actions.requested` event for one stable execution batch.
|
|
68
68
|
*/
|
|
69
69
|
export function createActionsRequestedEvent(input) {
|
|
70
70
|
return {
|
|
71
71
|
data: {
|
|
72
72
|
actions: input.actions,
|
|
73
73
|
sequence: input.sequence,
|
|
74
|
+
stepIndex: input.stepIndex,
|
|
74
75
|
turnId: input.turnId,
|
|
75
76
|
},
|
|
76
77
|
type: "actions.requested",
|
|
@@ -84,6 +85,7 @@ export function createInputRequestedEvent(input) {
|
|
|
84
85
|
data: {
|
|
85
86
|
requests: input.requests,
|
|
86
87
|
sequence: input.sequence,
|
|
88
|
+
stepIndex: input.stepIndex,
|
|
87
89
|
turnId: input.turnId,
|
|
88
90
|
},
|
|
89
91
|
type: "input.requested",
|
|
@@ -97,6 +99,7 @@ export function createActionResultEvent(input) {
|
|
|
97
99
|
data: {
|
|
98
100
|
result: input.result,
|
|
99
101
|
sequence: input.sequence,
|
|
102
|
+
stepIndex: input.stepIndex,
|
|
100
103
|
turnId: input.turnId,
|
|
101
104
|
},
|
|
102
105
|
type: "action.result",
|
|
@@ -117,14 +120,14 @@ export function createSubagentChildEventEvent(input) {
|
|
|
117
120
|
};
|
|
118
121
|
}
|
|
119
122
|
/**
|
|
120
|
-
* Creates the `subagent.called` event for one started child workflow
|
|
123
|
+
* Creates the `subagent.called` event for one started child workflow session.
|
|
121
124
|
*/
|
|
122
125
|
export function createSubagentCalledEvent(input) {
|
|
123
126
|
return {
|
|
124
127
|
data: {
|
|
125
128
|
callId: input.callId,
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
childSessionId: input.childSessionId,
|
|
130
|
+
sessionId: input.sessionId,
|
|
128
131
|
sequence: input.sequence,
|
|
129
132
|
name: input.name,
|
|
130
133
|
toolName: input.toolName,
|
|
@@ -135,10 +138,7 @@ export function createSubagentCalledEvent(input) {
|
|
|
135
138
|
};
|
|
136
139
|
}
|
|
137
140
|
/**
|
|
138
|
-
* Creates the `message.completed` event for one completed assistant
|
|
139
|
-
*
|
|
140
|
-
* `finishReason` defaults to `"stop"` because most completed assistant steps
|
|
141
|
-
* are terminal assistant replies.
|
|
141
|
+
* Creates the `message.completed` event for one completed assistant text chunk.
|
|
142
142
|
*/
|
|
143
143
|
export function createMessageCompletedEvent(input) {
|
|
144
144
|
return {
|
|
@@ -146,31 +146,47 @@ export function createMessageCompletedEvent(input) {
|
|
|
146
146
|
finishReason: input.finishReason ?? "stop",
|
|
147
147
|
message: input.message,
|
|
148
148
|
sequence: input.sequence,
|
|
149
|
+
stepIndex: input.stepIndex,
|
|
149
150
|
turnId: input.turnId,
|
|
150
151
|
},
|
|
151
152
|
type: "message.completed",
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
155
|
/**
|
|
155
|
-
* Creates the `
|
|
156
|
+
* Creates the `reasoning.completed` event for one completed reasoning block.
|
|
156
157
|
*/
|
|
157
|
-
export function
|
|
158
|
+
export function createReasoningCompletedEvent(input) {
|
|
158
159
|
return {
|
|
159
160
|
data: {
|
|
161
|
+
reasoning: input.reasoning,
|
|
160
162
|
sequence: input.sequence,
|
|
161
|
-
|
|
163
|
+
stepIndex: input.stepIndex,
|
|
162
164
|
turnId: input.turnId,
|
|
163
165
|
},
|
|
164
|
-
type: "
|
|
166
|
+
type: "reasoning.completed",
|
|
165
167
|
};
|
|
166
168
|
}
|
|
167
169
|
/**
|
|
168
|
-
* Creates the `
|
|
170
|
+
* Creates the `step.started` event for one model call.
|
|
169
171
|
*/
|
|
170
|
-
export function
|
|
172
|
+
export function createStepStartedEvent(input) {
|
|
173
|
+
return {
|
|
174
|
+
data: {
|
|
175
|
+
sequence: input.sequence,
|
|
176
|
+
stepIndex: input.stepIndex,
|
|
177
|
+
turnId: input.turnId,
|
|
178
|
+
},
|
|
179
|
+
type: "step.started",
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Creates the `step.completed` event for one completed model call.
|
|
184
|
+
*/
|
|
185
|
+
export function createStepCompletedEvent(input) {
|
|
171
186
|
const data = {
|
|
187
|
+
finishReason: input.finishReason,
|
|
172
188
|
sequence: input.sequence,
|
|
173
|
-
|
|
189
|
+
stepIndex: input.stepIndex,
|
|
174
190
|
turnId: input.turnId,
|
|
175
191
|
};
|
|
176
192
|
if (input.usage !== undefined) {
|
|
@@ -178,9 +194,52 @@ export function createTurnCompletedEvent(input) {
|
|
|
178
194
|
}
|
|
179
195
|
return {
|
|
180
196
|
data,
|
|
197
|
+
type: "step.completed",
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Creates the `step.failed` event for one failed model call.
|
|
202
|
+
*/
|
|
203
|
+
export function createStepFailedEvent(input) {
|
|
204
|
+
return {
|
|
205
|
+
data: {
|
|
206
|
+
code: input.code,
|
|
207
|
+
details: input.details,
|
|
208
|
+
message: input.message,
|
|
209
|
+
sequence: input.sequence,
|
|
210
|
+
stepIndex: input.stepIndex,
|
|
211
|
+
turnId: input.turnId,
|
|
212
|
+
},
|
|
213
|
+
type: "step.failed",
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Creates the `turn.completed` event for one terminal successful turn.
|
|
218
|
+
*/
|
|
219
|
+
export function createTurnCompletedEvent(input) {
|
|
220
|
+
return {
|
|
221
|
+
data: {
|
|
222
|
+
sequence: input.sequence,
|
|
223
|
+
turnId: input.turnId,
|
|
224
|
+
},
|
|
181
225
|
type: "turn.completed",
|
|
182
226
|
};
|
|
183
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Creates the `turn.failed` event for one failed turn.
|
|
230
|
+
*/
|
|
231
|
+
export function createTurnFailedEvent(input) {
|
|
232
|
+
return {
|
|
233
|
+
data: {
|
|
234
|
+
code: input.code,
|
|
235
|
+
details: input.details,
|
|
236
|
+
message: input.message,
|
|
237
|
+
sequence: input.sequence,
|
|
238
|
+
turnId: input.turnId,
|
|
239
|
+
},
|
|
240
|
+
type: "turn.failed",
|
|
241
|
+
};
|
|
242
|
+
}
|
|
184
243
|
/**
|
|
185
244
|
* Creates the `compaction.requested` event for one runtime compaction pass.
|
|
186
245
|
*/
|
|
@@ -188,7 +247,6 @@ export function createCompactionRequestedEvent(input) {
|
|
|
188
247
|
return {
|
|
189
248
|
data: {
|
|
190
249
|
modelId: input.modelId,
|
|
191
|
-
runId: input.runId,
|
|
192
250
|
sequence: input.sequence,
|
|
193
251
|
sessionId: input.sessionId,
|
|
194
252
|
thresholdPercent: input.thresholdPercent,
|
|
@@ -206,7 +264,6 @@ export function createCompactionCompletedEvent(input) {
|
|
|
206
264
|
data: {
|
|
207
265
|
lastCompactionIndex: input.lastCompactionIndex,
|
|
208
266
|
modelId: input.modelId,
|
|
209
|
-
runId: input.runId,
|
|
210
267
|
sequence: input.sequence,
|
|
211
268
|
sessionId: input.sessionId,
|
|
212
269
|
turnId: input.turnId,
|
|
@@ -227,25 +284,24 @@ export function createSessionWaitingEvent() {
|
|
|
227
284
|
};
|
|
228
285
|
}
|
|
229
286
|
/**
|
|
230
|
-
* Creates the `
|
|
287
|
+
* Creates the `session.failed` event for one terminal session failure.
|
|
231
288
|
*/
|
|
232
|
-
export function
|
|
289
|
+
export function createSessionFailedEvent(input) {
|
|
233
290
|
return {
|
|
234
291
|
data: {
|
|
235
|
-
details: input.details,
|
|
236
292
|
code: input.code,
|
|
293
|
+
details: input.details,
|
|
237
294
|
message: input.message,
|
|
238
|
-
runId: input.runId,
|
|
239
295
|
sessionId: input.sessionId,
|
|
240
296
|
},
|
|
241
|
-
type: "
|
|
297
|
+
type: "session.failed",
|
|
242
298
|
};
|
|
243
299
|
}
|
|
244
300
|
/**
|
|
245
|
-
* Creates the `
|
|
301
|
+
* Creates the `session.completed` event for one terminal session completion.
|
|
246
302
|
*/
|
|
247
|
-
export function
|
|
248
|
-
return { type: "
|
|
303
|
+
export function createSessionCompletedEvent() {
|
|
304
|
+
return { type: "session.completed" };
|
|
249
305
|
}
|
|
250
306
|
/**
|
|
251
307
|
* Encodes one stream event as newline-delimited JSON.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../../src/protocol/message.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../../src/protocol/message.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,CAAC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACxD,MAAM,CAAC,MAAM,wBAAwB,GAAG,qBAAqB,CAAC;AAC9D,MAAM,CAAC,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,mBAAmB,CAAC;AAC1D,MAAM,CAAC,MAAM,+BAA+B,GAAG,qCAAqC,CAAC;AACrF,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAsc/C,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AAEtC;;GAEG;AACH,MAAM,UAAU,8BAA8B,CAAC,SAAiB;IAC9D,OAAO,+BAA+B,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAA+B;IACxE,OA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
|
|
8
8
|
*/
|
|
9
9
|
export declare const ASH_HEALTH_ROUTE_PATH = "/.well-known/ash/v1/health";
|
|
10
|
+
/**
|
|
11
|
+
* Stable framework-owned route exposing home-page inspection JSON.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ASH_HOME_ROUTE_PATH = "/.well-known/ash/v1/home";
|
|
10
14
|
/**
|
|
11
15
|
* Stable framework-owned message route.
|
|
12
16
|
*/
|
|
@@ -18,11 +22,15 @@ export declare const ASH_CHANNEL_WEBHOOK_ROUTE_PATTERN = "/.well-known/ash/v1/ch
|
|
|
18
22
|
/**
|
|
19
23
|
* Stable framework-owned message stream route pattern.
|
|
20
24
|
*/
|
|
21
|
-
export declare const ASH_MESSAGE_STREAM_ROUTE_PATTERN = "/.well-known/ash/v1/
|
|
25
|
+
export declare const ASH_MESSAGE_STREAM_ROUTE_PATTERN = "/.well-known/ash/v1/sessions/:sessionId/stream";
|
|
26
|
+
/**
|
|
27
|
+
* Stable framework-owned route prefix for static home-page UI assets.
|
|
28
|
+
*/
|
|
29
|
+
export declare const ASH_HOME_PAGE_UI_ROUTE_PREFIX = "/.well-known/ash/v1/ui";
|
|
22
30
|
/**
|
|
23
|
-
* Creates the stable framework-owned message stream route path for one
|
|
31
|
+
* Creates the stable framework-owned message stream route path for one session.
|
|
24
32
|
*/
|
|
25
|
-
export declare function createAshMessageStreamRoutePath(
|
|
33
|
+
export declare function createAshMessageStreamRoutePath(sessionId: string): string;
|
|
26
34
|
/**
|
|
27
35
|
* Creates the stable framework-owned authored channel webhook route path for
|
|
28
36
|
* one channel.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/protocol/routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,sBAAsB,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,iCAAiC,oDAAoD,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/protocol/routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,sBAAsB,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,iCAAiC,oDAAoD,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,gCAAgC,mDAAmD,CAAC;AAEjG;;GAEG;AACH,eAAO,MAAM,6BAA6B,2BAA2B,CAAC;AAEtE;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEzE;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1E"}
|
|
@@ -7,6 +7,10 @@ export const ASH_ROUTE_PREFIX = "/.well-known/ash/v1";
|
|
|
7
7
|
* Stable framework-owned health route.
|
|
8
8
|
*/
|
|
9
9
|
export const ASH_HEALTH_ROUTE_PATH = `${ASH_ROUTE_PREFIX}/health`;
|
|
10
|
+
/**
|
|
11
|
+
* Stable framework-owned route exposing home-page inspection JSON.
|
|
12
|
+
*/
|
|
13
|
+
export const ASH_HOME_ROUTE_PATH = `${ASH_ROUTE_PREFIX}/home`;
|
|
10
14
|
/**
|
|
11
15
|
* Stable framework-owned message route.
|
|
12
16
|
*/
|
|
@@ -18,12 +22,16 @@ export const ASH_CHANNEL_WEBHOOK_ROUTE_PATTERN = `${ASH_ROUTE_PREFIX}/channels/:
|
|
|
18
22
|
/**
|
|
19
23
|
* Stable framework-owned message stream route pattern.
|
|
20
24
|
*/
|
|
21
|
-
export const ASH_MESSAGE_STREAM_ROUTE_PATTERN = `${ASH_ROUTE_PREFIX}/
|
|
25
|
+
export const ASH_MESSAGE_STREAM_ROUTE_PATTERN = `${ASH_ROUTE_PREFIX}/sessions/:sessionId/stream`;
|
|
26
|
+
/**
|
|
27
|
+
* Stable framework-owned route prefix for static home-page UI assets.
|
|
28
|
+
*/
|
|
29
|
+
export const ASH_HOME_PAGE_UI_ROUTE_PREFIX = `${ASH_ROUTE_PREFIX}/ui`;
|
|
22
30
|
/**
|
|
23
|
-
* Creates the stable framework-owned message stream route path for one
|
|
31
|
+
* Creates the stable framework-owned message stream route path for one session.
|
|
24
32
|
*/
|
|
25
|
-
export function createAshMessageStreamRoutePath(
|
|
26
|
-
return `${ASH_ROUTE_PREFIX}/
|
|
33
|
+
export function createAshMessageStreamRoutePath(sessionId) {
|
|
34
|
+
return `${ASH_ROUTE_PREFIX}/sessions/${encodeURIComponent(sessionId)}/stream`;
|
|
27
35
|
}
|
|
28
36
|
/**
|
|
29
37
|
* Creates the stable framework-owned authored channel webhook route path for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/protocol/routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,gBAAgB,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,gBAAgB,UAAU,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,gBAAgB,8BAA8B,CAAC;AAEnG;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/protocol/routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,gBAAgB,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,gBAAgB,OAAO,CAAC;AAE9D;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,gBAAgB,UAAU,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,gBAAgB,8BAA8B,CAAC;AAEnG;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,gBAAgB,6BAA6B,CAAC;AAEjG;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,GAAG,gBAAgB,KAAK,CAAC;AAEtE;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,SAAiB;IAC/D,OAAO,GAAG,gBAAgB,aAAa,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC;AAChF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gCAAgC,CAAC,SAAiB;IAChE,OAAO,GAAG,gBAAgB,aAAa,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC;AACjF,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Route-level HTTP authentication primitives.
|
|
3
3
|
*
|
|
4
4
|
* The framework exposes two layers here:
|
|
5
5
|
*
|
|
6
6
|
* 1. **Low-level verifier helpers** (`verifyHttpBasic`, `verifyJwtHmac`,
|
|
7
7
|
* `verifyJwtEcdsa`, `verifyOidc`, `verifyVercelOidc`,
|
|
8
8
|
* `extractBearerToken`, `createIpAllowList`, `isIpAllowed`,
|
|
9
|
-
* `createUnauthorizedResponse
|
|
10
|
-
* that
|
|
9
|
+
* `createUnauthorizedResponse`). These are pure functions
|
|
10
|
+
* that routes compose by hand inside a `fetch` handler. Use them
|
|
11
11
|
* when the strategy helpers don't fit — for example, when stacking
|
|
12
12
|
* custom rate limits or rendering a custom `WWW-Authenticate`
|
|
13
13
|
* challenge.
|
|
@@ -15,33 +15,32 @@
|
|
|
15
15
|
* 2. **Strategy helpers** (`vercelOidc`, `httpBasic`, `jwtHmac`,
|
|
16
16
|
* `jwtEcdsa`, `oidc`, `none`). These return an {@link AuthFn} suitable
|
|
17
17
|
* for the required `auth` field on the framework's HTTP and Slack
|
|
18
|
-
*
|
|
18
|
+
* route factories. Use them when you want a one-liner route
|
|
19
19
|
* declaration.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
23
|
* // agent/channels/api/message.ts — strategy helper, the common case
|
|
24
|
-
* import {
|
|
24
|
+
* import { httpRoute } from "experimental-ash/channels/http";
|
|
25
25
|
* import { vercelOidc } from "experimental-ash/channels/auth";
|
|
26
26
|
*
|
|
27
|
-
* export default
|
|
27
|
+
* export default httpRoute({ auth: vercelOidc() });
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
32
|
* // agent/channels/api/message.ts — low-level verifier composition
|
|
33
|
-
* import {
|
|
34
|
-
* import {
|
|
33
|
+
* import { defineRoute } from "experimental-ash";
|
|
34
|
+
* import { httpRoute } from "experimental-ash/channels/http";
|
|
35
35
|
* import {
|
|
36
36
|
* createUnauthorizedResponse,
|
|
37
37
|
* none,
|
|
38
38
|
* verifyHttpBasic,
|
|
39
|
-
* withAuth,
|
|
40
39
|
* } from "experimental-ash/channels/auth";
|
|
41
40
|
*
|
|
42
|
-
* const base =
|
|
41
|
+
* const base = httpRoute({ auth: none() });
|
|
43
42
|
*
|
|
44
|
-
* export default
|
|
43
|
+
* export default defineRoute({
|
|
45
44
|
* ...base,
|
|
46
45
|
* async fetch(request, ctx) {
|
|
47
46
|
* const auth = verifyHttpBasic(request.headers.get("authorization"), {
|
|
@@ -53,14 +52,14 @@
|
|
|
53
52
|
* challenges: [{ scheme: "Basic", parameters: { realm: "weather" } }],
|
|
54
53
|
* });
|
|
55
54
|
* }
|
|
56
|
-
*
|
|
55
|
+
* // Construct channel with auth baked in and pass to agent.run
|
|
56
|
+
* return base.fetch(request, ctx);
|
|
57
57
|
* },
|
|
58
58
|
* });
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
import type { SessionAuthContext } from "../../channel/types.js";
|
|
62
62
|
import { type RuntimeIpAllowList } from "../../runtime/governance/network/ip-allow-list.js";
|
|
63
|
-
import type { ChannelContext } from "../definitions/channel.js";
|
|
64
63
|
/**
|
|
65
64
|
* Result returned by the verifier helpers below.
|
|
66
65
|
*
|
|
@@ -69,7 +68,7 @@ import type { ChannelContext } from "../definitions/channel.js";
|
|
|
69
68
|
* `runtime.run({ auth })`. On failure, the helper returns `{ ok: false }`
|
|
70
69
|
* with no further detail — distinguishing "no header" from "wrong
|
|
71
70
|
* credentials" is intentionally omitted to discourage information
|
|
72
|
-
* leakage and to keep the helper API minimal.
|
|
71
|
+
* leakage and to keep the helper API minimal. Routes that want
|
|
73
72
|
* different error messages per failure mode can switch on the source of
|
|
74
73
|
* the failure (e.g. inspect the header themselves before calling the
|
|
75
74
|
* verifier).
|
|
@@ -100,8 +99,8 @@ export declare function verifyHttpBasic(authorizationHeader: string | null, cred
|
|
|
100
99
|
* Configuration for {@link verifyJwtHmac}.
|
|
101
100
|
*
|
|
102
101
|
* Mirrors the resolved HMAC strategy shape but takes optional fields with
|
|
103
|
-
* sensible defaults so
|
|
104
|
-
* matcher. `secret` is read by the
|
|
102
|
+
* sensible defaults so adapters can call it without specifying every
|
|
103
|
+
* matcher. `secret` is read by the adapter from `process.env` (or wherever
|
|
105
104
|
* its secret store lives) and passed in directly.
|
|
106
105
|
*/
|
|
107
106
|
export interface VerifyJwtHmacConfig {
|
|
@@ -181,13 +180,13 @@ export type IpAllowList = RuntimeIpAllowList;
|
|
|
181
180
|
export declare function createIpAllowList(entries: readonly string[]): IpAllowList;
|
|
182
181
|
/**
|
|
183
182
|
* Returns whether the supplied IP is permitted by `allowList`. `null`
|
|
184
|
-
* inputs always return `false` —
|
|
183
|
+
* inputs always return `false` — adapters that need to allow unknown IPs
|
|
185
184
|
* should not call this helper at all.
|
|
186
185
|
*/
|
|
187
186
|
export declare function isIpAllowed(ip: string | null, allowList: IpAllowList): boolean;
|
|
188
187
|
/**
|
|
189
188
|
* One challenge entry attached to the `www-authenticate` header on a
|
|
190
|
-
* failure response.
|
|
189
|
+
* failure response. Adapters that want a Basic+Bearer challenge prompt
|
|
191
190
|
* pass both:
|
|
192
191
|
* `[{ scheme: "Basic", parameters: { realm: "agent" } }, { scheme: "Bearer" }]`
|
|
193
192
|
*/
|
|
@@ -226,66 +225,18 @@ export interface UnauthorizedResponseOptions {
|
|
|
226
225
|
*/
|
|
227
226
|
export declare function createUnauthorizedResponse(opts?: UnauthorizedResponseOptions): Response;
|
|
228
227
|
/**
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* in a wrapping channel after verifying credentials so the inner channel's
|
|
232
|
-
* `agent.run()` calls carry the authenticated principal without the inner
|
|
233
|
-
* channel having to know auth happened.
|
|
234
|
-
*
|
|
235
|
-
* The returned context is shallow-spread from the input — `params`,
|
|
236
|
-
* `requestIp`, and `waitUntil` come straight through. Only `agent` is
|
|
237
|
-
* replaced with a wrapped version.
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```ts
|
|
241
|
-
* import { defineChannel } from "experimental-ash";
|
|
242
|
-
* import { httpMessageChannel } from "experimental-ash/channels/http";
|
|
243
|
-
* import {
|
|
244
|
-
* createUnauthorizedResponse,
|
|
245
|
-
* none,
|
|
246
|
-
* verifyHttpBasic,
|
|
247
|
-
* withAuth,
|
|
248
|
-
* } from "experimental-ash/channels/auth";
|
|
249
|
-
*
|
|
250
|
-
* const base = httpMessageChannel({ auth: none() });
|
|
251
|
-
*
|
|
252
|
-
* export default defineChannel({
|
|
253
|
-
* ...base,
|
|
254
|
-
* async fetch(request, ctx) {
|
|
255
|
-
* const result = verifyHttpBasic(request.headers.get("authorization"), {
|
|
256
|
-
* username: "ops",
|
|
257
|
-
* password: process.env.ROUTE_AUTH_BASIC_PASSWORD!,
|
|
258
|
-
* });
|
|
259
|
-
* if (!result.ok) {
|
|
260
|
-
* return createUnauthorizedResponse({
|
|
261
|
-
* challenges: [{ scheme: "Basic", parameters: { realm: "weather" } }],
|
|
262
|
-
* });
|
|
263
|
-
* }
|
|
264
|
-
* return base.fetch(request, withAuth(ctx, result.sessionAuth));
|
|
265
|
-
* },
|
|
266
|
-
* });
|
|
267
|
-
* ```
|
|
268
|
-
*
|
|
269
|
-
* Stacking multiple wrappers (auth, rate limiting, tracing, etc.) is
|
|
270
|
-
* function composition — each wrapper substitutes the agent; the
|
|
271
|
-
* innermost agent is the real one. The pattern is forward-compatible
|
|
272
|
-
* with future middleware helpers (`withRateLimit`, `withTracing`, ...)
|
|
273
|
-
* that follow the same shape.
|
|
274
|
-
*/
|
|
275
|
-
export declare function withAuth(ctx: ChannelContext, sessionAuth: SessionAuthContext | null): ChannelContext;
|
|
276
|
-
/**
|
|
277
|
-
* Function shape consumed by channel factories that take a required `auth`
|
|
278
|
-
* field. Receives a channel-typed event (`Request` for HTTP factories,
|
|
228
|
+
* Function shape consumed by route factories that take a required `auth`
|
|
229
|
+
* field. Receives a route-typed event (`Request` for HTTP factories,
|
|
279
230
|
* `SlackEventContext` for Slack, etc.) and returns one of three states:
|
|
280
231
|
*
|
|
281
|
-
* - `SessionAuthContext` — **authenticated**. The factory
|
|
282
|
-
* channel
|
|
283
|
-
*
|
|
232
|
+
* - `SessionAuthContext` — **authenticated**. The factory constructs the
|
|
233
|
+
* channel with auth baked in and dispatches the request with the
|
|
234
|
+
* verified principal attached.
|
|
284
235
|
* - `null` — **rejected**. The credential check failed. HTTP factories
|
|
285
236
|
* respond with a 401 carrying `WWW-Authenticate: Bearer`. Webhook-style
|
|
286
237
|
* factories (Slack) log the rejection and drop the message.
|
|
287
238
|
* - `undefined` — **anonymous, allowed through**. The factory dispatches
|
|
288
|
-
* the request with `
|
|
239
|
+
* the request with `auth: null` on the channel, so the harness sees
|
|
289
240
|
* `getSession().auth === null`. This is what {@link none} returns.
|
|
290
241
|
*
|
|
291
242
|
* The three states map to the only three things a factory can do with an
|
|
@@ -295,19 +246,19 @@ export declare function withAuth(ctx: ChannelContext, sessionAuth: SessionAuthCo
|
|
|
295
246
|
export type AuthFn<TEvent> = (event: TEvent) => SessionAuthContext | null | undefined | Promise<SessionAuthContext | null | undefined>;
|
|
296
247
|
/**
|
|
297
248
|
* Returns an {@link AuthFn} that always emits `undefined` — the explicit
|
|
298
|
-
* "no auth" choice for
|
|
249
|
+
* "no auth" choice for route factories.
|
|
299
250
|
*
|
|
300
|
-
*
|
|
251
|
+
* Route factories require an `auth` argument; passing `none()` is the
|
|
301
252
|
* way to opt into an open route without an implicit default. The factory
|
|
302
|
-
* then dispatches every request with `
|
|
303
|
-
* sees `getSession().auth === null`.
|
|
253
|
+
* then dispatches every request with `auth: null` on the channel so the
|
|
254
|
+
* harness sees `getSession().auth === null`.
|
|
304
255
|
*
|
|
305
256
|
* @example
|
|
306
257
|
* ```ts
|
|
307
|
-
* import {
|
|
258
|
+
* import { httpRoute } from "experimental-ash/channels/http";
|
|
308
259
|
* import { none } from "experimental-ash/channels/auth";
|
|
309
260
|
*
|
|
310
|
-
* export default
|
|
261
|
+
* export default httpRoute({ auth: none() });
|
|
311
262
|
* ```
|
|
312
263
|
*/
|
|
313
264
|
export declare function none<TEvent = unknown>(): AuthFn<TEvent>;
|
|
@@ -337,7 +288,7 @@ export declare function verifyVercelOidc(token: string | null, opts?: {
|
|
|
337
288
|
* Returns an {@link AuthFn} that verifies the inbound request against the
|
|
338
289
|
* Vercel OIDC issuer via {@link verifyVercelOidc}.
|
|
339
290
|
*
|
|
340
|
-
* This is the recommended `auth` provider for
|
|
291
|
+
* This is the recommended `auth` provider for routes deployed on
|
|
341
292
|
* Vercel. The dev client at `services/dev-client/request-headers.ts`
|
|
342
293
|
* already attaches `Authorization: Bearer ${VERCEL_OIDC_TOKEN}` for
|
|
343
294
|
* Ash-owned routes during local development, so the same provider works
|
|
@@ -345,10 +296,10 @@ export declare function verifyVercelOidc(token: string | null, opts?: {
|
|
|
345
296
|
*
|
|
346
297
|
* @example
|
|
347
298
|
* ```ts
|
|
348
|
-
* import {
|
|
299
|
+
* import { httpRoute } from "experimental-ash/channels/http";
|
|
349
300
|
* import { vercelOidc } from "experimental-ash/channels/auth";
|
|
350
301
|
*
|
|
351
|
-
* export default
|
|
302
|
+
* export default httpRoute({ auth: vercelOidc() });
|
|
352
303
|
* ```
|
|
353
304
|
*/
|
|
354
305
|
export declare function vercelOidc(opts?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/public/channels/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAWjE,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,mDAAmD,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/public/channels/auth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAWjE,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,mDAAmD,CAAC;AAM3D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAA;CAAE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