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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../../src/public/definitions/tool.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../../src/public/definitions/tool.ts"],"names":[],"mappings":"AAmHA,MAAM,UAAU,UAAU,CACxB,UAA2C;IAE3C,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAW/D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO;QACL,IAAI,EAAE,2BAA2B;KAClC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACb,KAA4B,CAAC,IAAI,KAAK,2BAA2B,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export
|
|
6
|
-
export { getSandbox, getSession, getSkill, getState, type Session, type SessionAuth, type SessionAuthContext, type SessionParent, type SessionTurn, setState, } from "../context/accessors.js";
|
|
1
|
+
export { HttpChannel } from "../channel/http-channel.js";
|
|
2
|
+
export { ScheduleChannel, ScheduleDispatcher, type ScheduleTriggerInput, } from "../channel/schedule.js";
|
|
3
|
+
export { SlackChannel } from "../channel/slack-channel.js";
|
|
4
|
+
export { Channel, type ChannelClass, type ContextAccessor, type DeliverInput, type EventEmitFn, type RunHandle, type RunInput, type RunResult, type Runtime, } from "../channel/types.js";
|
|
5
|
+
export { ensureContext, getContext, getSandbox, getSession, getSkill, type Session, type SessionAuth, type SessionAuthContext, type SessionParent, type SessionTurn, setContext, } from "../context/accessors.js";
|
|
7
6
|
export type { AshContext } from "../context/container.js";
|
|
8
7
|
export { ContextKey, type ContextKeyOptions } from "../context/key.js";
|
|
9
8
|
export { createContinuousLoopRuntime } from "../execution/continuous-runtime.js";
|
|
10
9
|
export type { SkillHandle, SkillResource } from "../execution/skills/types.js";
|
|
11
10
|
export { createWorkflowRuntime } from "../execution/workflow-runtime.js";
|
|
11
|
+
export type { HarnessToolDefinition, ToolExecutionResult } from "../harness/execute-tool.js";
|
|
12
12
|
export { createToolLoopHarness } from "../harness/tool-loop.js";
|
|
13
|
-
export type { CompactionCallbackResult, CompactionConfig, HarnessEmitFn, HarnessSession, SessionAgent, SessionToolDefinition, StepDone, StepFn, StepInput, StepNext, StepResult,
|
|
13
|
+
export type { CompactionCallbackResult, CompactionConfig, HarnessEmitFn, HarnessSession, HarnessToolMap, SessionAgent, SessionToolDefinition, StepDone, StepFn, StepInput, StepNext, StepResult, ToolLoopHarnessConfig, } from "../harness/types.js";
|
|
14
14
|
export type { RunMode } from "../run-mode.js";
|
|
15
|
-
export type {
|
|
15
|
+
export type { InputOption, InputRequest, InputResponse, } from "../runtime/input/types.js";
|
|
16
|
+
export { inputOptionSchema, inputRequestSchema, inputResponseSchema, isInputRequest, isInputResponse, } from "../runtime/input/types.js";
|
|
16
17
|
export { type AgentCompactionDefinition, type AgentDefinition, type AgentModelDefinition, type AgentModelOptionsDefinition, defineAgent, } from "./definitions/agent.js";
|
|
17
|
-
export { type Agent, type
|
|
18
|
+
export { type Agent, type ChannelMethod, type DisabledRouteSentinel, defineRoute, disableRoute, isDisabledRouteSentinel, isRouteDefinition, type Route, type RouteContext, } from "./definitions/channel.js";
|
|
18
19
|
export { defineSchedule, type ScheduleDefinition } from "./definitions/schedule.js";
|
|
19
20
|
export { defineSkill, type SkillDefinition } from "./definitions/skill.js";
|
|
20
21
|
export type { ModuleDefinitionExport } from "./definitions/source.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/public/index.ts"],"names":[],"mappings":"AAA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AU,EACV,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EACV,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,WAAW,EACX,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,KAAK,EACV,KAAK,YAAY,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,cAAc,EACd,KAAK,kBAAkB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EACL,KAAK,uBAAuB,EAC5B,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,sBAAsB,EAC3B,qBAAqB,GACtB,MAAM,uBAAuB,CAAC"}
|
package/dist/src/public/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { getSandbox, getSession, getSkill,
|
|
1
|
+
export { HttpChannel } from "../channel/http-channel.js";
|
|
2
|
+
export { ScheduleChannel, ScheduleDispatcher, } from "../channel/schedule.js";
|
|
3
|
+
export { SlackChannel } from "../channel/slack-channel.js";
|
|
4
|
+
export { Channel, } from "../channel/types.js";
|
|
5
|
+
export { ensureContext, getContext, getSandbox, getSession, getSkill, setContext, } from "../context/accessors.js";
|
|
6
6
|
export { ContextKey } from "../context/key.js";
|
|
7
7
|
export { createContinuousLoopRuntime } from "../execution/continuous-runtime.js";
|
|
8
8
|
export { createWorkflowRuntime } from "../execution/workflow-runtime.js";
|
|
9
9
|
export { createToolLoopHarness } from "../harness/tool-loop.js";
|
|
10
|
+
export { inputOptionSchema, inputRequestSchema, inputResponseSchema, isInputRequest, isInputResponse, } from "../runtime/input/types.js";
|
|
10
11
|
export { defineAgent, } from "./definitions/agent.js";
|
|
11
|
-
export {
|
|
12
|
+
export { defineRoute, disableRoute, isDisabledRouteSentinel, isRouteDefinition, } from "./definitions/channel.js";
|
|
12
13
|
export { defineSchedule } from "./definitions/schedule.js";
|
|
13
14
|
export { defineSkill } from "./definitions/skill.js";
|
|
14
15
|
export { defineSubagent, } from "./definitions/subagent.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACL,eAAe,EACf,kBAAkB,GAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,OAAO,GASR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,aAAa,EACb,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EAMR,UAAU,GACX,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAA0B,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAsBhE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAKL,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,WAAW,EACX,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAA2B,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAwB,MAAM,wBAAwB,CAAC;AAE3E,OAAO,EACL,cAAc,GAEf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAyB,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAEL,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EAEnB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResolvedSandboxDefinition } from "../../runtime/types.js";
|
|
2
2
|
import type { SandboxDefinition } from "../definitions/sandbox.js";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Converter that strips internal identity fields from a framework
|
|
5
5
|
* {@link ResolvedSandboxDefinition} so it can be re-exported as a public
|
|
6
6
|
* {@link SandboxDefinition}.
|
|
7
7
|
*
|
|
@@ -15,7 +15,7 @@ export declare const glob: ToolDefinition;
|
|
|
15
15
|
export declare const grep: ToolDefinition;
|
|
16
16
|
/**
|
|
17
17
|
* Framework-provided file reader tool. Spread or wrap to customize. Carries
|
|
18
|
-
* compaction
|
|
18
|
+
* compaction context-reset behavior so a wrapped replacement still clears the
|
|
19
19
|
* durable read-file stamps on context compaction.
|
|
20
20
|
*/
|
|
21
21
|
export declare const readFile: ToolDefinition;
|
|
@@ -30,17 +30,17 @@ export declare const writeFile: ToolDefinition;
|
|
|
30
30
|
export declare const webFetch: ToolDefinition;
|
|
31
31
|
/**
|
|
32
32
|
* Framework-provided durable todo list tool. Spreading the default carries
|
|
33
|
-
* its closure-bound
|
|
34
|
-
* framework's internal todo
|
|
35
|
-
* your own `ContextKey`) if you need different
|
|
33
|
+
* its closure-bound context behavior — the executor still reads and writes the
|
|
34
|
+
* framework's internal todo context. Replace with a fully custom executor (and
|
|
35
|
+
* your own `ContextKey`) if you need different context semantics.
|
|
36
36
|
*/
|
|
37
37
|
export declare const todo: ToolDefinition;
|
|
38
38
|
/**
|
|
39
|
-
* Framework-provided skill
|
|
39
|
+
* Framework-provided skill loading tool. Only effective when the agent has
|
|
40
40
|
* skills declared (the framework otherwise omits it from the default tool
|
|
41
41
|
* list).
|
|
42
42
|
*/
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const loadSkill: ToolDefinition;
|
|
44
44
|
/**
|
|
45
45
|
* Framework-provided web search tool. The actual implementation is resolved
|
|
46
46
|
* at runtime based on the model provider — there is no local execute.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/public/tools/defaults.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,cAAkE,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,cAAmE,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,cAAkE,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../../../src/public/tools/defaults.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D;;GAEG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,cAAkE,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,cAAmE,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,cAAkE,CAAC;AAE1F;;;;;GAKG;AACH,eAAO,MAAM,IAAI,EAAE,cAA6D,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,cAA8D,CAAC;AAEvF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,cAQvB,CAAC"}
|
|
@@ -49,7 +49,7 @@ export const glob = toPublicToolDefinition(GLOB_TOOL_DEFINITION);
|
|
|
49
49
|
export const grep = toPublicToolDefinition(GREP_TOOL_DEFINITION);
|
|
50
50
|
/**
|
|
51
51
|
* Framework-provided file reader tool. Spread or wrap to customize. Carries
|
|
52
|
-
* compaction
|
|
52
|
+
* compaction context-reset behavior so a wrapped replacement still clears the
|
|
53
53
|
* durable read-file stamps on context compaction.
|
|
54
54
|
*/
|
|
55
55
|
export const readFile = toPublicToolDefinition(READ_FILE_TOOL_DEFINITION);
|
|
@@ -64,17 +64,17 @@ export const writeFile = toPublicToolDefinition(WRITE_FILE_TOOL_DEFINITION);
|
|
|
64
64
|
export const webFetch = toPublicToolDefinition(WEB_FETCH_TOOL_DEFINITION);
|
|
65
65
|
/**
|
|
66
66
|
* Framework-provided durable todo list tool. Spreading the default carries
|
|
67
|
-
* its closure-bound
|
|
68
|
-
* framework's internal todo
|
|
69
|
-
* your own `ContextKey`) if you need different
|
|
67
|
+
* its closure-bound context behavior — the executor still reads and writes the
|
|
68
|
+
* framework's internal todo context. Replace with a fully custom executor (and
|
|
69
|
+
* your own `ContextKey`) if you need different context semantics.
|
|
70
70
|
*/
|
|
71
71
|
export const todo = toPublicToolDefinition(TODO_TOOL_DEFINITION);
|
|
72
72
|
/**
|
|
73
|
-
* Framework-provided skill
|
|
73
|
+
* Framework-provided skill loading tool. Only effective when the agent has
|
|
74
74
|
* skills declared (the framework otherwise omits it from the default tool
|
|
75
75
|
* list).
|
|
76
76
|
*/
|
|
77
|
-
export const
|
|
77
|
+
export const loadSkill = toPublicToolDefinition(SKILL_TOOL_DEFINITION);
|
|
78
78
|
/**
|
|
79
79
|
* Framework-provided web search tool. The actual implementation is resolved
|
|
80
80
|
* at runtime based on the model provider — there is no local execute.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../../src/public/tools/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,M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|
|
4
|
+
* Converter that strips internal identity fields from a framework
|
|
5
5
|
* {@link ResolvedToolDefinition} so it can be re-exported as a public
|
|
6
6
|
* {@link ToolDefinition}.
|
|
7
7
|
*
|
|
@@ -37,33 +37,33 @@ export declare const runtimeSubagentCallActionRequestSchema: z.ZodObject<{
|
|
|
37
37
|
* Harness-native capabilities such as `bash` do not cross the harness boundary
|
|
38
38
|
* as runtime actions. Only runtime-executed requests use this taxonomy.
|
|
39
39
|
*/
|
|
40
|
-
export type
|
|
40
|
+
export type RuntimeLoadSkillActionRequest = z.infer<typeof runtimeLoadSkillActionRequestSchema>;
|
|
41
41
|
/**
|
|
42
|
-
* Zod schema for one runtime-owned
|
|
42
|
+
* Zod schema for one runtime-owned load-skill action request.
|
|
43
43
|
*/
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const runtimeLoadSkillActionRequestSchema: z.ZodObject<{
|
|
45
45
|
callId: z.ZodString;
|
|
46
46
|
input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
47
|
-
kind: z.ZodLiteral<"
|
|
47
|
+
kind: z.ZodLiteral<"load-skill">;
|
|
48
48
|
}, z.core.$strict>;
|
|
49
49
|
/**
|
|
50
50
|
* Runtime-owned framework action kind surfaced to the model as a tool.
|
|
51
51
|
*/
|
|
52
|
-
export type RuntimeActionToolKind =
|
|
52
|
+
export type RuntimeActionToolKind = RuntimeLoadSkillActionRequest["kind"];
|
|
53
53
|
/**
|
|
54
54
|
* Runtime-owned action request surfaced by a harness.
|
|
55
55
|
*
|
|
56
56
|
* Harness-native capabilities such as `bash` do not cross the harness boundary
|
|
57
57
|
* as runtime actions. Only runtime-executed requests use this taxonomy.
|
|
58
58
|
*/
|
|
59
|
-
export type RuntimeActionRequest =
|
|
59
|
+
export type RuntimeActionRequest = RuntimeLoadSkillActionRequest | RuntimeSubagentCallActionRequest | RuntimeToolCallActionRequest;
|
|
60
60
|
/**
|
|
61
61
|
* Zod schema for one runtime action request.
|
|
62
62
|
*/
|
|
63
63
|
export declare const runtimeActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
64
64
|
callId: z.ZodString;
|
|
65
65
|
input: z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>;
|
|
66
|
-
kind: z.ZodLiteral<"
|
|
66
|
+
kind: z.ZodLiteral<"load-skill">;
|
|
67
67
|
}, z.core.$strict>, z.ZodObject<{
|
|
68
68
|
callId: z.ZodString;
|
|
69
69
|
description: z.ZodString;
|
|
@@ -107,30 +107,33 @@ export declare const runtimeSubagentResultActionResultSchema: z.ZodObject<{
|
|
|
107
107
|
subagentName: z.ZodString;
|
|
108
108
|
}, z.core.$strict>;
|
|
109
109
|
/**
|
|
110
|
-
* Runtime-owned action result produced by framework-owned
|
|
110
|
+
* Runtime-owned action result produced by framework-owned loading code.
|
|
111
111
|
*/
|
|
112
|
-
export type
|
|
112
|
+
export type RuntimeLoadSkillActionResult = z.infer<typeof runtimeLoadSkillActionResultSchema>;
|
|
113
113
|
/**
|
|
114
|
-
* Zod schema for one runtime-owned
|
|
114
|
+
* Zod schema for one runtime-owned load-skill action result.
|
|
115
|
+
*
|
|
116
|
+
* The result still reports whether a skill became active during the turn; the
|
|
117
|
+
* action name reflects how the model requests those instructions.
|
|
115
118
|
*/
|
|
116
|
-
export declare const
|
|
119
|
+
export declare const runtimeLoadSkillActionResultSchema: z.ZodObject<{
|
|
117
120
|
callId: z.ZodString;
|
|
118
121
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
kind: z.ZodLiteral<"
|
|
122
|
+
kind: z.ZodLiteral<"load-skill-result">;
|
|
120
123
|
output: z.ZodType<import("../json.js").JsonValue, unknown, z.core.$ZodTypeInternals<import("../json.js").JsonValue, unknown>>;
|
|
121
124
|
name: z.ZodOptional<z.ZodString>;
|
|
122
125
|
}, z.core.$strict>;
|
|
123
126
|
/**
|
|
124
127
|
* Runtime-owned action result produced by framework-owned runtime code.
|
|
125
128
|
*/
|
|
126
|
-
export type RuntimeActionResult =
|
|
129
|
+
export type RuntimeActionResult = RuntimeLoadSkillActionResult | RuntimeSubagentResultActionResult | RuntimeToolResultActionResult;
|
|
127
130
|
/**
|
|
128
131
|
* Zod schema for one runtime action result.
|
|
129
132
|
*/
|
|
130
133
|
export declare const runtimeActionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
134
|
callId: z.ZodString;
|
|
132
135
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
-
kind: z.ZodLiteral<"
|
|
136
|
+
kind: z.ZodLiteral<"load-skill-result">;
|
|
134
137
|
output: z.ZodType<import("../json.js").JsonValue, unknown, z.core.$ZodTypeInternals<import("../json.js").JsonValue, unknown>>;
|
|
135
138
|
name: z.ZodOptional<z.ZodString>;
|
|
136
139
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -160,10 +163,10 @@ export declare function createRuntimeActionRequestFromToolCall(input: {
|
|
|
160
163
|
*/
|
|
161
164
|
export declare function isRuntimeActionRequest(value: unknown): value is RuntimeActionRequest;
|
|
162
165
|
/**
|
|
163
|
-
* Returns true when a value matches the runtime
|
|
166
|
+
* Returns true when a value matches the runtime load-skill action request
|
|
164
167
|
* contract.
|
|
165
168
|
*/
|
|
166
|
-
export declare function
|
|
169
|
+
export declare function isRuntimeLoadSkillActionRequest(value: unknown): value is RuntimeLoadSkillActionRequest;
|
|
167
170
|
/**
|
|
168
171
|
* Returns true when a value matches the authored tool-call runtime action
|
|
169
172
|
* request contract.
|
|
@@ -189,10 +192,10 @@ export declare function getRuntimeActionRequestKey(action: RuntimeActionRequest)
|
|
|
189
192
|
*/
|
|
190
193
|
export declare function getRuntimeActionResultKey(result: RuntimeActionResult): string;
|
|
191
194
|
/**
|
|
192
|
-
* Returns true when a value matches the runtime
|
|
195
|
+
* Returns true when a value matches the runtime load-skill action-result
|
|
193
196
|
* contract.
|
|
194
197
|
*/
|
|
195
|
-
export declare function
|
|
198
|
+
export declare function isRuntimeLoadSkillActionResult(value: unknown): value is RuntimeLoadSkillActionResult;
|
|
196
199
|
/**
|
|
197
200
|
* Returns true when a value matches the authored tool-result runtime action
|
|
198
201
|
* result contract.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/runtime/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,UAAU,EAAqC,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;kBAOpC,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;kBAUxC,CAAC;AAEZ;;;;;GAKG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/runtime/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,UAAU,EAAqC,MAAM,YAAY,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;kBAOpC,CAAC;AAEZ;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;kBAUxC,CAAC;AAEZ;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,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BAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,oBAAoB,CAEpF;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,6BAA6B,CAExC;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,4BAA4B,CAEvC;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,gCAAgC,CAE3C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAElF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAS/E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAS7E;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,4BAA4B,CAEvC;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,6BAA6B,CAExC;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,iCAAiC,CAE5C;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,SAAS,oBAAoB,EAAE,GACvC,4BAA4B,EAAE,CAQhC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,mBAAmB,EAAE,GACtC,6BAA6B,EAAE,CAQjC"}
|
|
@@ -26,20 +26,20 @@ export const runtimeSubagentCallActionRequestSchema = z
|
|
|
26
26
|
})
|
|
27
27
|
.strict();
|
|
28
28
|
/**
|
|
29
|
-
* Zod schema for one runtime-owned
|
|
29
|
+
* Zod schema for one runtime-owned load-skill action request.
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const runtimeLoadSkillActionRequestSchema = z
|
|
32
32
|
.object({
|
|
33
33
|
callId: z.string(),
|
|
34
34
|
input: jsonObjectSchema,
|
|
35
|
-
kind: z.literal("
|
|
35
|
+
kind: z.literal("load-skill"),
|
|
36
36
|
})
|
|
37
37
|
.strict();
|
|
38
38
|
/**
|
|
39
39
|
* Zod schema for one runtime action request.
|
|
40
40
|
*/
|
|
41
41
|
export const runtimeActionRequestSchema = z.discriminatedUnion("kind", [
|
|
42
|
-
|
|
42
|
+
runtimeLoadSkillActionRequestSchema,
|
|
43
43
|
runtimeSubagentCallActionRequestSchema,
|
|
44
44
|
runtimeToolCallActionRequestSchema,
|
|
45
45
|
]);
|
|
@@ -68,13 +68,16 @@ export const runtimeSubagentResultActionResultSchema = z
|
|
|
68
68
|
})
|
|
69
69
|
.strict();
|
|
70
70
|
/**
|
|
71
|
-
* Zod schema for one runtime-owned
|
|
71
|
+
* Zod schema for one runtime-owned load-skill action result.
|
|
72
|
+
*
|
|
73
|
+
* The result still reports whether a skill became active during the turn; the
|
|
74
|
+
* action name reflects how the model requests those instructions.
|
|
72
75
|
*/
|
|
73
|
-
export const
|
|
76
|
+
export const runtimeLoadSkillActionResultSchema = z
|
|
74
77
|
.object({
|
|
75
78
|
callId: z.string(),
|
|
76
79
|
isError: z.boolean().optional(),
|
|
77
|
-
kind: z.literal("
|
|
80
|
+
kind: z.literal("load-skill-result"),
|
|
78
81
|
output: jsonValueSchema,
|
|
79
82
|
name: z.string().optional(),
|
|
80
83
|
})
|
|
@@ -83,7 +86,7 @@ export const runtimeActivateSkillActionResultSchema = z
|
|
|
83
86
|
* Zod schema for one runtime action result.
|
|
84
87
|
*/
|
|
85
88
|
export const runtimeActionResultSchema = z.discriminatedUnion("kind", [
|
|
86
|
-
|
|
89
|
+
runtimeLoadSkillActionResultSchema,
|
|
87
90
|
runtimeSubagentResultActionResultSchema,
|
|
88
91
|
runtimeToolResultActionResultSchema,
|
|
89
92
|
]);
|
|
@@ -93,11 +96,11 @@ export const runtimeActionResultSchema = z.discriminatedUnion("kind", [
|
|
|
93
96
|
*/
|
|
94
97
|
export function createRuntimeActionRequestFromToolCall(input) {
|
|
95
98
|
switch (input.actionKind) {
|
|
96
|
-
case "
|
|
99
|
+
case "load-skill":
|
|
97
100
|
return {
|
|
98
101
|
callId: input.callId,
|
|
99
102
|
input: input.input,
|
|
100
|
-
kind: "
|
|
103
|
+
kind: "load-skill",
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
106
|
}
|
|
@@ -108,11 +111,11 @@ export function isRuntimeActionRequest(value) {
|
|
|
108
111
|
return runtimeActionRequestSchema.safeParse(value).success;
|
|
109
112
|
}
|
|
110
113
|
/**
|
|
111
|
-
* Returns true when a value matches the runtime
|
|
114
|
+
* Returns true when a value matches the runtime load-skill action request
|
|
112
115
|
* contract.
|
|
113
116
|
*/
|
|
114
|
-
export function
|
|
115
|
-
return
|
|
117
|
+
export function isRuntimeLoadSkillActionRequest(value) {
|
|
118
|
+
return runtimeLoadSkillActionRequestSchema.safeParse(value).success;
|
|
116
119
|
}
|
|
117
120
|
/**
|
|
118
121
|
* Returns true when a value matches the authored tool-call runtime action
|
|
@@ -140,7 +143,7 @@ export function isRuntimeActionResult(value) {
|
|
|
140
143
|
*/
|
|
141
144
|
export function getRuntimeActionRequestKey(action) {
|
|
142
145
|
switch (action.kind) {
|
|
143
|
-
case "
|
|
146
|
+
case "load-skill":
|
|
144
147
|
return `runtime-action:${action.kind}:${action.callId}`;
|
|
145
148
|
case "subagent-call":
|
|
146
149
|
return `subagent-call:${action.subagentName}:${action.callId}`;
|
|
@@ -154,8 +157,8 @@ export function getRuntimeActionRequestKey(action) {
|
|
|
154
157
|
*/
|
|
155
158
|
export function getRuntimeActionResultKey(result) {
|
|
156
159
|
switch (result.kind) {
|
|
157
|
-
case "
|
|
158
|
-
return `runtime-action:
|
|
160
|
+
case "load-skill-result":
|
|
161
|
+
return `runtime-action:load-skill:${result.callId}`;
|
|
159
162
|
case "subagent-result":
|
|
160
163
|
return `subagent-call:${result.subagentName}:${result.callId}`;
|
|
161
164
|
case "tool-result":
|
|
@@ -163,11 +166,11 @@ export function getRuntimeActionResultKey(result) {
|
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
/**
|
|
166
|
-
* Returns true when a value matches the runtime
|
|
169
|
+
* Returns true when a value matches the runtime load-skill action-result
|
|
167
170
|
* contract.
|
|
168
171
|
*/
|
|
169
|
-
export function
|
|
170
|
-
return
|
|
172
|
+
export function isRuntimeLoadSkillActionResult(value) {
|
|
173
|
+
return runtimeLoadSkillActionResultSchema.safeParse(value).success;
|
|
171
174
|
}
|
|
172
175
|
/**
|
|
173
176
|
* Returns true when a value matches the authored tool-result runtime action
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/runtime/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAmB,gBAAgB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAQhF;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAUZ;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC;KACpD,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,gBAAgB;IACvB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,eAA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AI,CAAC,CAAC;QAClF,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAAuC;IAEvC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC5B,IAAI,CAAC,+BAA+B,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7C,MAAM,IAAI,KAAK,CAAC,2CAA2C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACjF,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MockLanguageModelV3 } from "ai/test";
|
|
2
|
+
export type BootstrapGenerateOptions = Parameters<MockLanguageModelV3["doGenerate"]>[0];
|
|
3
|
+
export type BootstrapPrompt = BootstrapGenerateOptions["prompt"];
|
|
4
|
+
export type BootstrapGenerateResult = Awaited<ReturnType<MockLanguageModelV3["doGenerate"]>>;
|
|
5
|
+
export type BootstrapStreamResult = Awaited<ReturnType<MockLanguageModelV3["doStream"]>>;
|
|
6
|
+
/**
|
|
7
|
+
* Builds a deterministic `doGenerate` result from a text response and token
|
|
8
|
+
* estimates. Shared by the real bootstrap model and the authored-model mock.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createBootstrapGenerateResult(input: {
|
|
11
|
+
readonly inputTokens: number;
|
|
12
|
+
readonly modelId: string;
|
|
13
|
+
readonly outputTokens: number;
|
|
14
|
+
readonly text: string;
|
|
15
|
+
}): BootstrapGenerateResult;
|
|
16
|
+
/**
|
|
17
|
+
* Converts a `doGenerate` result into a synchronous `doStream` result by
|
|
18
|
+
* replaying content parts through a `ReadableStream`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createBootstrapStreamResult(result: BootstrapGenerateResult): BootstrapStreamResult;
|
|
21
|
+
/**
|
|
22
|
+
* Rough token estimate based on character length (1 token per 4 chars).
|
|
23
|
+
*/
|
|
24
|
+
export declare function estimateTokenCount(value: string): number;
|
|
25
|
+
/**
|
|
26
|
+
* Extracts all text from a prompt message's content, joining text parts.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getPromptContentText(content: BootstrapPrompt[number]["content"]): string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the text from the last user message in the prompt, or `null`.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getLastUserPromptText(prompt: BootstrapPrompt): string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Joins all message content in the prompt into a single string.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getPromptText(prompt: BootstrapPrompt): string;
|
|
37
|
+
//# sourceMappingURL=bootstrap-model-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootstrap-model-utils.d.ts","sourceRoot":"","sources":["../../../../src/runtime/agent/bootstrap-model-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;AACjE,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AAC7F,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAIzF;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE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