experimental-ash 0.3.0-alpha.2 → 0.3.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/bin/ash.d.ts +2 -2
- package/bin/ash.js +19 -4
- package/dist/src/channel/adapter-context.d.ts +8 -0
- package/dist/src/channel/adapter-context.d.ts.map +1 -0
- package/dist/src/channel/adapter-context.js +19 -0
- package/dist/src/channel/adapter-context.js.map +1 -0
- package/dist/src/channel/adapter.d.ts +57 -29
- package/dist/src/channel/adapter.d.ts.map +1 -1
- package/dist/src/channel/adapter.js +32 -3
- package/dist/src/channel/adapter.js.map +1 -1
- package/dist/src/channel/schedule.d.ts.map +1 -1
- package/dist/src/channel/slack-adapter.d.ts +40 -14
- package/dist/src/channel/slack-adapter.d.ts.map +1 -1
- package/dist/src/channel/slack-adapter.js +287 -37
- package/dist/src/channel/slack-adapter.js.map +1 -1
- package/dist/src/channel/slack-render.d.ts +13 -2
- package/dist/src/channel/slack-render.d.ts.map +1 -1
- package/dist/src/channel/slack-render.js +29 -3
- package/dist/src/channel/slack-render.js.map +1 -1
- package/dist/src/channel/slack-state.d.ts +27 -9
- package/dist/src/channel/slack-state.d.ts.map +1 -1
- package/dist/src/channel/slack-types.d.ts +26 -2
- package/dist/src/channel/slack-types.d.ts.map +1 -1
- package/dist/src/channel/types.d.ts +79 -87
- package/dist/src/channel/types.d.ts.map +1 -1
- package/dist/src/cli/dev/environment.d.ts.map +1 -1
- package/dist/src/cli/dev/environment.js +2 -1
- package/dist/src/cli/dev/environment.js.map +1 -1
- package/dist/src/cli/dev/repl.d.ts +26 -0
- package/dist/src/cli/dev/repl.d.ts.map +1 -1
- package/dist/src/cli/dev/repl.js +98 -21
- package/dist/src/cli/dev/repl.js.map +1 -1
- package/dist/src/cli/run.js.map +1 -1
- package/dist/src/cli/templates/init-app/package.json +1 -1
- package/dist/src/cli/ui/output.js.map +1 -1
- package/dist/src/client/client-error.d.ts.map +1 -1
- package/dist/src/client/client.d.ts +0 -39
- package/dist/src/client/client.d.ts.map +1 -1
- package/dist/src/client/client.js +0 -39
- package/dist/src/client/client.js.map +1 -1
- package/dist/src/client/index.d.ts +1 -1
- package/dist/src/client/index.d.ts.map +1 -1
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/message-response.d.ts +0 -14
- package/dist/src/client/message-response.d.ts.map +1 -1
- package/dist/src/client/message-response.js +0 -14
- package/dist/src/client/message-response.js.map +1 -1
- package/dist/src/client/session.d.ts +0 -19
- package/dist/src/client/session.d.ts.map +1 -1
- package/dist/src/client/session.js +0 -19
- package/dist/src/client/session.js.map +1 -1
- package/dist/src/client/types.d.ts +1 -36
- package/dist/src/client/types.d.ts.map +1 -1
- package/dist/src/compiler/channel-url.d.ts +0 -9
- package/dist/src/compiler/channel-url.d.ts.map +1 -1
- package/dist/src/compiler/channel-url.js +0 -9
- package/dist/src/compiler/channel-url.js.map +1 -1
- package/dist/src/compiler/compile-agent.d.ts +6 -0
- package/dist/src/compiler/compile-agent.d.ts.map +1 -1
- package/dist/src/compiler/compile-agent.js +4 -2
- package/dist/src/compiler/compile-agent.js.map +1 -1
- package/dist/src/compiler/compile-from-memory.d.ts +74 -0
- package/dist/src/compiler/compile-from-memory.d.ts.map +1 -0
- package/dist/src/compiler/compile-from-memory.js +61 -0
- package/dist/src/compiler/compile-from-memory.js.map +1 -0
- package/dist/src/compiler/manifest.d.ts +39 -95
- package/dist/src/compiler/manifest.d.ts.map +1 -1
- package/dist/src/compiler/manifest.js +37 -20
- package/dist/src/compiler/manifest.js.map +1 -1
- package/dist/src/compiler/module-map.d.ts +1 -1
- package/dist/src/compiler/module-map.d.ts.map +1 -1
- package/dist/src/compiler/module-map.js +5 -5
- package/dist/src/compiler/module-map.js.map +1 -1
- package/dist/src/compiler/normalize-agent-config.d.ts.map +1 -1
- package/dist/src/compiler/normalize-agent-config.js +6 -8
- package/dist/src/compiler/normalize-agent-config.js.map +1 -1
- package/dist/src/compiler/normalize-helpers.d.ts +1 -6
- package/dist/src/compiler/normalize-helpers.d.ts.map +1 -1
- package/dist/src/compiler/normalize-helpers.js +2 -8
- package/dist/src/compiler/normalize-helpers.js.map +1 -1
- package/dist/src/compiler/normalize-prompt-layer.js +2 -2
- package/dist/src/compiler/normalize-prompt-layer.js.map +1 -1
- package/dist/src/compiler/normalize-sandbox.d.ts +0 -12
- package/dist/src/compiler/normalize-sandbox.d.ts.map +1 -1
- package/dist/src/compiler/normalize-sandbox.js +0 -12
- package/dist/src/compiler/normalize-sandbox.js.map +1 -1
- package/dist/src/compiler/normalize-schedule.js +2 -2
- package/dist/src/compiler/normalize-schedule.js.map +1 -1
- package/dist/src/compiler/normalize-skill.d.ts +2 -2
- package/dist/src/compiler/normalize-skill.d.ts.map +1 -1
- package/dist/src/compiler/normalize-skill.js +4 -3
- package/dist/src/compiler/normalize-skill.js.map +1 -1
- package/dist/src/compiler/normalize-subagent.js +3 -2
- package/dist/src/compiler/normalize-subagent.js.map +1 -1
- package/dist/src/compiler/normalize-tool.d.ts +1 -1
- package/dist/src/compiler/normalize-tool.d.ts.map +1 -1
- package/dist/src/context/container.d.ts +9 -0
- package/dist/src/context/container.d.ts.map +1 -1
- package/dist/src/context/container.js +15 -1
- package/dist/src/context/container.js.map +1 -1
- package/dist/src/context/key.d.ts +0 -41
- package/dist/src/context/key.d.ts.map +1 -1
- package/dist/src/context/key.js +0 -41
- package/dist/src/context/key.js.map +1 -1
- package/dist/src/context/keys.d.ts +2 -2
- package/dist/src/context/keys.d.ts.map +1 -1
- package/dist/src/context/keys.js +4 -4
- package/dist/src/context/keys.js.map +1 -1
- package/dist/src/context/providers/sandbox.d.ts +1 -1
- package/dist/src/context/providers/sandbox.d.ts.map +1 -1
- package/dist/src/context/providers/sandbox.js +1 -1
- package/dist/src/context/providers/sandbox.js.map +1 -1
- package/dist/src/context/run-step.d.ts.map +1 -1
- package/dist/src/context/run-step.js +0 -1
- package/dist/src/context/run-step.js.map +1 -1
- package/dist/src/context/seed-keys.d.ts +7 -1
- package/dist/src/context/seed-keys.d.ts.map +1 -1
- package/dist/src/context/seed-keys.js +6 -0
- package/dist/src/context/seed-keys.js.map +1 -1
- package/dist/src/discover/connections.d.ts +3 -17
- package/dist/src/discover/connections.d.ts.map +1 -1
- package/dist/src/discover/connections.js +2 -17
- package/dist/src/discover/connections.js.map +1 -1
- package/dist/src/discover/discover-agent.d.ts +8 -0
- package/dist/src/discover/discover-agent.d.ts.map +1 -1
- package/dist/src/discover/discover-agent.js +83 -23
- package/dist/src/discover/discover-agent.js.map +1 -1
- package/dist/src/discover/discover-subagent.d.ts +6 -0
- package/dist/src/discover/discover-subagent.d.ts.map +1 -1
- package/dist/src/discover/discover-subagent.js +15 -4
- package/dist/src/discover/discover-subagent.js.map +1 -1
- package/dist/src/discover/filesystem.d.ts.map +1 -1
- package/dist/src/discover/grammar.d.ts +22 -24
- package/dist/src/discover/grammar.d.ts.map +1 -1
- package/dist/src/discover/grammar.js +10 -37
- package/dist/src/discover/grammar.js.map +1 -1
- package/dist/src/discover/lib.d.ts +4 -5
- package/dist/src/discover/lib.d.ts.map +1 -1
- package/dist/src/discover/lib.js +3 -1
- package/dist/src/discover/lib.js.map +1 -1
- package/dist/src/discover/manifest.d.ts +4 -23
- package/dist/src/discover/manifest.d.ts.map +1 -1
- package/dist/src/discover/manifest.js +2 -2
- package/dist/src/discover/manifest.js.map +1 -1
- package/dist/src/discover/markdown.d.ts +5 -3
- package/dist/src/discover/markdown.d.ts.map +1 -1
- package/dist/src/discover/markdown.js +4 -5
- package/dist/src/discover/markdown.js.map +1 -1
- package/dist/src/discover/project-source.d.ts +108 -0
- package/dist/src/discover/project-source.d.ts.map +1 -0
- package/dist/src/discover/project-source.js +153 -0
- package/dist/src/discover/project-source.js.map +1 -0
- package/dist/src/discover/project.d.ts +12 -3
- package/dist/src/discover/project.d.ts.map +1 -1
- package/dist/src/discover/project.js +34 -31
- package/dist/src/discover/project.js.map +1 -1
- package/dist/src/discover/resource-tree.d.ts +4 -2
- package/dist/src/discover/resource-tree.d.ts.map +1 -1
- package/dist/src/discover/resource-tree.js +4 -3
- package/dist/src/discover/resource-tree.js.map +1 -1
- package/dist/src/discover/sandboxes.d.ts +3 -15
- package/dist/src/discover/sandboxes.d.ts.map +1 -1
- package/dist/src/discover/sandboxes.js +7 -20
- package/dist/src/discover/sandboxes.js.map +1 -1
- package/dist/src/discover/skills.d.ts +6 -0
- package/dist/src/discover/skills.d.ts.map +1 -1
- package/dist/src/discover/skills.js +18 -32
- package/dist/src/discover/skills.js.map +1 -1
- package/dist/src/discover/system.d.ts +3 -2
- package/dist/src/discover/system.d.ts.map +1 -1
- package/dist/src/discover/system.js +2 -0
- package/dist/src/discover/system.js.map +1 -1
- package/dist/src/evals/define-eval-suite.d.ts +0 -38
- package/dist/src/evals/define-eval-suite.d.ts.map +1 -1
- package/dist/src/evals/define-eval-suite.js +0 -38
- package/dist/src/evals/define-eval-suite.js.map +1 -1
- package/dist/src/evals/reporters/index.js.map +1 -1
- package/dist/src/evals/runner/derive-run-facts.js.map +1 -1
- package/dist/src/evals/runner/execute-suite.d.ts.map +1 -1
- package/dist/src/evals/runner/execute-suite.js +2 -1
- package/dist/src/evals/runner/execute-suite.js.map +1 -1
- package/dist/src/evals/runner/reporters/braintrust.d.ts +0 -15
- package/dist/src/evals/runner/reporters/braintrust.d.ts.map +1 -1
- package/dist/src/evals/runner/reporters/braintrust.js +0 -23
- package/dist/src/evals/runner/reporters/braintrust.js.map +1 -1
- package/dist/src/evals/runner/reporters/console.d.ts.map +1 -1
- package/dist/src/execution/authorization-challenge-defaults.d.ts +44 -0
- package/dist/src/execution/authorization-challenge-defaults.d.ts.map +1 -0
- package/dist/src/execution/authorization-challenge-defaults.js +61 -0
- package/dist/src/execution/authorization-challenge-defaults.js.map +1 -0
- package/dist/src/execution/await-authorization-orchestrator.d.ts +39 -0
- package/dist/src/execution/await-authorization-orchestrator.d.ts.map +1 -0
- package/dist/src/execution/await-authorization-orchestrator.js +273 -0
- package/dist/src/execution/await-authorization-orchestrator.js.map +1 -0
- package/dist/src/execution/await-authorization-splice.d.ts +24 -0
- package/dist/src/execution/await-authorization-splice.d.ts.map +1 -0
- package/dist/src/execution/await-authorization-splice.js +67 -0
- package/dist/src/execution/await-authorization-splice.js.map +1 -0
- package/dist/src/execution/connection-auth-steps.d.ts +140 -0
- package/dist/src/execution/connection-auth-steps.d.ts.map +1 -0
- package/dist/src/execution/connection-auth-steps.js +325 -0
- package/dist/src/execution/connection-auth-steps.js.map +1 -0
- package/dist/src/execution/continuous-entry.d.ts +13 -3
- package/dist/src/execution/continuous-entry.d.ts.map +1 -1
- package/dist/src/execution/continuous-entry.js +258 -35
- package/dist/src/execution/continuous-entry.js.map +1 -1
- package/dist/src/execution/continuous-runtime-errors.d.ts +29 -0
- package/dist/src/execution/continuous-runtime-errors.d.ts.map +1 -0
- package/dist/src/execution/continuous-runtime-errors.js +35 -0
- package/dist/src/execution/continuous-runtime-errors.js.map +1 -0
- package/dist/src/execution/continuous-runtime.d.ts +8 -12
- package/dist/src/execution/continuous-runtime.d.ts.map +1 -1
- package/dist/src/execution/continuous-runtime.js +27 -25
- package/dist/src/execution/continuous-runtime.js.map +1 -1
- package/dist/src/execution/node-step.d.ts +10 -3
- package/dist/src/execution/node-step.d.ts.map +1 -1
- package/dist/src/execution/node-step.js +2 -1
- package/dist/src/execution/node-step.js.map +1 -1
- package/dist/src/execution/runtime-context.d.ts +0 -13
- package/dist/src/execution/runtime-context.d.ts.map +1 -1
- package/dist/src/execution/runtime-context.js +4 -14
- package/dist/src/execution/runtime-context.js.map +1 -1
- package/dist/src/execution/sandboxes/bindings/local.d.ts +1 -1
- package/dist/src/execution/sandboxes/bindings/local.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/bindings/local.js +11 -0
- package/dist/src/execution/sandboxes/bindings/local.js.map +1 -1
- package/dist/src/execution/sandboxes/bindings/vercel.d.ts +1 -11
- package/dist/src/execution/sandboxes/bindings/vercel.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/bindings/vercel.js +7 -16
- package/dist/src/execution/sandboxes/bindings/vercel.js.map +1 -1
- package/dist/src/execution/sandboxes/ensure.d.ts +3 -3
- package/dist/src/execution/sandboxes/ensure.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/ensure.js +1 -1
- package/dist/src/execution/sandboxes/ensure.js.map +1 -1
- package/dist/src/execution/sandboxes/glob-tool.d.ts +0 -13
- package/dist/src/execution/sandboxes/glob-tool.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/glob-tool.js +2 -36
- package/dist/src/execution/sandboxes/glob-tool.js.map +1 -1
- package/dist/src/execution/sandboxes/grep-tool.d.ts +0 -10
- package/dist/src/execution/sandboxes/grep-tool.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/grep-tool.js +0 -24
- package/dist/src/execution/sandboxes/grep-tool.js.map +1 -1
- package/dist/src/execution/sandboxes/prewarm.js +11 -11
- package/dist/src/execution/sandboxes/prewarm.js.map +1 -1
- package/dist/src/execution/sandboxes/ripgrep-probe.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/ripgrep-probe.js +0 -8
- package/dist/src/execution/sandboxes/ripgrep-probe.js.map +1 -1
- package/dist/src/execution/sandboxes/session.d.ts +6 -14
- package/dist/src/execution/sandboxes/session.d.ts.map +1 -1
- package/dist/src/execution/sandboxes/session.js +4 -11
- package/dist/src/execution/sandboxes/session.js.map +1 -1
- package/dist/src/execution/session.d.ts +2 -2
- package/dist/src/execution/session.d.ts.map +1 -1
- package/dist/src/execution/session.js +1 -3
- package/dist/src/execution/session.js.map +1 -1
- package/dist/src/execution/skills/access.d.ts +2 -2
- package/dist/src/execution/skills/access.d.ts.map +1 -1
- package/dist/src/execution/skills/access.js +2 -2
- package/dist/src/execution/skills/access.js.map +1 -1
- package/dist/src/execution/skills/handle.d.ts +2 -2
- package/dist/src/execution/skills/handle.d.ts.map +1 -1
- package/dist/src/execution/skills/handle.js +5 -5
- package/dist/src/execution/skills/handle.js.map +1 -1
- package/dist/src/execution/skills/instructions.d.ts +2 -2
- package/dist/src/execution/skills/instructions.d.ts.map +1 -1
- package/dist/src/execution/skills/instructions.js.map +1 -1
- package/dist/src/execution/skills/seed.d.ts +2 -2
- package/dist/src/execution/skills/seed.d.ts.map +1 -1
- package/dist/src/execution/skills/seed.js +3 -3
- package/dist/src/execution/skills/seed.js.map +1 -1
- package/dist/src/execution/skills/types.d.ts +2 -2
- package/dist/src/execution/skills/types.d.ts.map +1 -1
- package/dist/src/execution/subagent-adapter.d.ts +71 -0
- package/dist/src/execution/subagent-adapter.d.ts.map +1 -0
- package/dist/src/execution/subagent-adapter.js +159 -0
- package/dist/src/execution/subagent-adapter.js.map +1 -0
- package/dist/src/execution/subagent-hitl-proxy.d.ts +55 -0
- package/dist/src/execution/subagent-hitl-proxy.d.ts.map +1 -0
- package/dist/src/execution/subagent-hitl-proxy.js +82 -0
- package/dist/src/execution/subagent-hitl-proxy.js.map +1 -0
- package/dist/src/execution/subagent-invocation.d.ts +11 -2
- package/dist/src/execution/subagent-invocation.d.ts.map +1 -1
- package/dist/src/execution/subagent-invocation.js.map +1 -1
- package/dist/src/execution/subagent-tool.d.ts +19 -6
- package/dist/src/execution/subagent-tool.d.ts.map +1 -1
- package/dist/src/execution/subagent-tool.js +14 -14
- package/dist/src/execution/subagent-tool.js.map +1 -1
- package/dist/src/execution/tool-compaction.d.ts +2 -17
- package/dist/src/execution/tool-compaction.d.ts.map +1 -1
- package/dist/src/execution/tool-compaction.js +8 -18
- package/dist/src/execution/tool-compaction.js.map +1 -1
- package/dist/src/execution/types.d.ts +11 -6
- package/dist/src/execution/types.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.d.ts +2 -1
- package/dist/src/execution/workflow-entry.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.js +271 -61
- package/dist/src/execution/workflow-entry.js.map +1 -1
- package/dist/src/execution/workflow-runtime.d.ts +1 -11
- package/dist/src/execution/workflow-runtime.d.ts.map +1 -1
- package/dist/src/execution/workflow-runtime.js +1 -11
- package/dist/src/execution/workflow-runtime.js.map +1 -1
- package/dist/src/execution/workflow-steps.d.ts +54 -13
- package/dist/src/execution/workflow-steps.d.ts.map +1 -1
- package/dist/src/execution/workflow-steps.js +187 -62
- package/dist/src/execution/workflow-steps.js.map +1 -1
- package/dist/src/harness/attachment-staging.d.ts +31 -0
- package/dist/src/harness/attachment-staging.d.ts.map +1 -0
- package/dist/src/harness/attachment-staging.js +296 -0
- package/dist/src/harness/attachment-staging.js.map +1 -0
- package/dist/src/harness/compaction.d.ts +2 -2
- package/dist/src/harness/compaction.d.ts.map +1 -1
- package/dist/src/harness/compaction.js +1 -3
- package/dist/src/harness/compaction.js.map +1 -1
- package/dist/src/harness/emission.d.ts +19 -5
- package/dist/src/harness/emission.d.ts.map +1 -1
- package/dist/src/harness/emission.js +48 -15
- package/dist/src/harness/emission.js.map +1 -1
- package/dist/src/harness/execute-tool.d.ts +1 -16
- package/dist/src/harness/execute-tool.d.ts.map +1 -1
- package/dist/src/harness/input-requests.d.ts +5 -11
- package/dist/src/harness/input-requests.d.ts.map +1 -1
- package/dist/src/harness/input-requests.js +13 -17
- package/dist/src/harness/input-requests.js.map +1 -1
- package/dist/src/harness/messages.d.ts.map +1 -1
- package/dist/src/harness/messages.js +24 -3
- package/dist/src/harness/messages.js.map +1 -1
- package/dist/src/harness/model-call-error.d.ts +5 -0
- package/dist/src/harness/model-call-error.d.ts.map +1 -0
- package/dist/src/harness/model-call-error.js +56 -0
- package/dist/src/harness/model-call-error.js.map +1 -0
- package/dist/src/harness/otel-integration.js +3 -3
- package/dist/src/harness/otel-integration.js.map +1 -1
- package/dist/src/harness/prompt-cache.d.ts +0 -14
- package/dist/src/harness/prompt-cache.d.ts.map +1 -1
- package/dist/src/harness/prompt-cache.js.map +1 -1
- package/dist/src/harness/provider-tools.js.map +1 -1
- package/dist/src/harness/proxy-input-requests.d.ts +37 -0
- package/dist/src/harness/proxy-input-requests.d.ts.map +1 -0
- package/dist/src/harness/proxy-input-requests.js +92 -0
- package/dist/src/harness/proxy-input-requests.js.map +1 -0
- package/dist/src/harness/runtime-actions.d.ts +24 -9
- package/dist/src/harness/runtime-actions.d.ts.map +1 -1
- package/dist/src/harness/runtime-actions.js +57 -13
- package/dist/src/harness/runtime-actions.js.map +1 -1
- package/dist/src/harness/step-hooks.d.ts +19 -3
- package/dist/src/harness/step-hooks.d.ts.map +1 -1
- package/dist/src/harness/step-hooks.js +104 -14
- package/dist/src/harness/step-hooks.js.map +1 -1
- package/dist/src/harness/tool-loop.d.ts.map +1 -1
- package/dist/src/harness/tool-loop.js +179 -62
- package/dist/src/harness/tool-loop.js.map +1 -1
- package/dist/src/harness/tool-result-pruning.d.ts +3 -20
- package/dist/src/harness/tool-result-pruning.d.ts.map +1 -1
- package/dist/src/harness/tool-result-pruning.js +10 -21
- package/dist/src/harness/tool-result-pruning.js.map +1 -1
- package/dist/src/harness/tools.d.ts +7 -11
- package/dist/src/harness/tools.d.ts.map +1 -1
- package/dist/src/harness/tools.js +13 -18
- package/dist/src/harness/tools.js.map +1 -1
- package/dist/src/harness/types.d.ts +18 -13
- package/dist/src/harness/types.d.ts.map +1 -1
- package/dist/src/internal/application/package.d.ts +0 -4
- package/dist/src/internal/application/package.d.ts.map +1 -1
- package/dist/src/internal/application/package.js +14 -24
- package/dist/src/internal/application/package.js.map +1 -1
- package/dist/src/internal/application/paths.d.ts +6 -1
- package/dist/src/internal/application/paths.d.ts.map +1 -1
- package/dist/src/internal/application/paths.js +12 -2
- package/dist/src/internal/application/paths.js.map +1 -1
- package/dist/src/internal/attachments/data.d.ts +19 -0
- package/dist/src/internal/attachments/data.d.ts.map +1 -0
- package/dist/src/internal/attachments/data.js +128 -0
- package/dist/src/internal/attachments/data.js.map +1 -0
- package/dist/src/internal/attachments/errors.d.ts +33 -0
- package/dist/src/internal/attachments/errors.d.ts.map +1 -0
- package/dist/src/internal/attachments/errors.js +27 -0
- package/dist/src/internal/attachments/errors.js.map +1 -0
- package/dist/src/internal/attachments/refs.d.ts +56 -0
- package/dist/src/internal/attachments/refs.d.ts.map +1 -0
- package/dist/src/internal/attachments/refs.js +95 -0
- package/dist/src/internal/attachments/refs.js.map +1 -0
- package/dist/src/internal/attachments/sandbox-refs.d.ts +47 -0
- package/dist/src/internal/attachments/sandbox-refs.d.ts.map +1 -0
- package/dist/src/internal/attachments/sandbox-refs.js +79 -0
- package/dist/src/internal/attachments/sandbox-refs.js.map +1 -0
- package/dist/src/internal/authored-definition/connection.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/connection.js +27 -17
- package/dist/src/internal/authored-definition/connection.js.map +1 -1
- package/dist/src/internal/authored-definition/core.d.ts +0 -1
- package/dist/src/internal/authored-definition/core.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/core.js +3 -9
- package/dist/src/internal/authored-definition/core.js.map +1 -1
- package/dist/src/internal/authored-definition/schema-backed.d.ts +3 -2
- package/dist/src/internal/authored-definition/schema-backed.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/schema-backed.js +4 -4
- package/dist/src/internal/authored-definition/schema-backed.js.map +1 -1
- package/dist/src/internal/authored-module.d.ts +6 -1
- package/dist/src/internal/authored-module.d.ts.map +1 -1
- package/dist/src/internal/authored-module.js +12 -0
- package/dist/src/internal/authored-module.js.map +1 -1
- package/dist/src/internal/json-schema.d.ts +2 -1
- package/dist/src/internal/json-schema.d.ts.map +1 -1
- package/dist/src/internal/json-schema.js.map +1 -1
- package/dist/src/internal/logging.d.ts +97 -0
- package/dist/src/internal/logging.d.ts.map +1 -0
- package/dist/src/internal/logging.js +227 -0
- package/dist/src/internal/logging.js.map +1 -0
- package/dist/src/internal/nitro/host/build-application.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/build-application.js +59 -22
- package/dist/src/internal/nitro/host/build-application.js.map +1 -1
- package/dist/src/internal/nitro/host/channel-routes.d.ts +39 -0
- package/dist/src/internal/nitro/host/channel-routes.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/channel-routes.js +126 -0
- package/dist/src/internal/nitro/host/channel-routes.js.map +1 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +0 -10
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +0 -10
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js.map +1 -1
- package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts +11 -0
- package/dist/src/internal/nitro/host/configure-nitro-routes.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/configure-nitro-routes.js +193 -0
- package/dist/src/internal/nitro/host/configure-nitro-routes.js.map +1 -0
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +9 -2
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +276 -34
- package/dist/src/internal/nitro/host/create-application-nitro.js.map +1 -1
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +18 -104
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js.map +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.js +0 -2
- package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -1
- package/dist/src/internal/nitro/host/schedule-task-routes.d.ts +57 -0
- package/dist/src/internal/nitro/host/schedule-task-routes.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/schedule-task-routes.js +148 -0
- package/dist/src/internal/nitro/host/schedule-task-routes.js.map +1 -0
- package/dist/src/internal/nitro/host/start-development-server.js.map +1 -1
- package/dist/src/internal/nitro/host/types.d.ts +4 -1
- package/dist/src/internal/nitro/host/types.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/health.d.ts +1 -1
- package/dist/src/internal/nitro/routes/health.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/health.js +7 -3
- package/dist/src/internal/nitro/routes/health.js.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.js.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts +2 -2
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.js.map +1 -1
- package/dist/src/internal/nitro/routes/home.js.map +1 -1
- package/dist/src/internal/nitro/routes/web-ui/assets/index-BEQWswDI.js +11 -0
- package/dist/src/internal/nitro/routes/web-ui/assets/style-Kqb6YxTP.css +2 -0
- package/dist/src/internal/nitro/routes/web-ui/index.html +2 -2
- package/dist/src/internal/nitro/routes/workflow-data.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/workflow-route-helpers.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/workflow-run-events.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/workflow-run-steps.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/workflow-run.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/workflow-runs.d.ts.map +1 -1
- package/dist/src/internal/runtime-registry.d.ts +1 -1
- package/dist/src/internal/runtime-registry.d.ts.map +1 -1
- package/dist/src/internal/runtime-registry.js +1 -1
- package/dist/src/internal/runtime-registry.js.map +1 -1
- package/dist/src/internal/workflow-bundle/builder.d.ts +32 -0
- package/dist/src/internal/workflow-bundle/builder.d.ts.map +1 -0
- package/dist/src/internal/{message → workflow-bundle}/builder.js +42 -21
- package/dist/src/internal/workflow-bundle/builder.js.map +1 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +18 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts.map +1 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.js +132 -0
- package/dist/src/internal/workflow-bundle/nitro-step-entry.js.map +1 -0
- package/dist/src/internal/{message → workflow-bundle}/vercel-workflow-output.d.ts +1 -0
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.d.ts.map +1 -0
- package/dist/src/internal/{message → workflow-bundle}/vercel-workflow-output.js +73 -5
- package/dist/src/internal/workflow-bundle/vercel-workflow-output.js.map +1 -0
- package/dist/src/protocol/message.d.ts +163 -8
- package/dist/src/protocol/message.d.ts.map +1 -1
- package/dist/src/protocol/message.js +185 -2
- package/dist/src/protocol/message.js.map +1 -1
- package/dist/src/protocol/routes.d.ts +0 -9
- package/dist/src/protocol/routes.d.ts.map +1 -1
- package/dist/src/protocol/routes.js +0 -11
- package/dist/src/protocol/routes.js.map +1 -1
- package/dist/src/public/channels/auth.d.ts +9 -129
- package/dist/src/public/channels/auth.d.ts.map +1 -1
- package/dist/src/public/channels/auth.js +5 -110
- package/dist/src/public/channels/auth.js.map +1 -1
- package/dist/src/public/channels/http.d.ts +10 -46
- package/dist/src/public/channels/http.d.ts.map +1 -1
- package/dist/src/public/channels/http.js +131 -47
- package/dist/src/public/channels/http.js.map +1 -1
- package/dist/src/public/channels/index.d.ts +5 -25
- package/dist/src/public/channels/index.d.ts.map +1 -1
- package/dist/src/public/channels/index.js +4 -24
- package/dist/src/public/channels/index.js.map +1 -1
- package/dist/src/public/channels/slack/index.d.ts +26 -111
- package/dist/src/public/channels/slack/index.d.ts.map +1 -1
- package/dist/src/public/channels/slack/index.js +271 -109
- package/dist/src/public/channels/slack/index.js.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.d.ts +1 -9
- package/dist/src/public/channels/slack/lowlevel.d.ts.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.js +1 -9
- package/dist/src/public/channels/slack/lowlevel.js.map +1 -1
- package/dist/src/public/channels/slack/slack-interaction.d.ts +3 -5
- package/dist/src/public/channels/slack/slack-interaction.d.ts.map +1 -1
- package/dist/src/public/channels/slack/slack-interaction.js +14 -14
- package/dist/src/public/channels/slack/slack-interaction.js.map +1 -1
- package/dist/src/public/channels/upload-policy.d.ts +95 -0
- package/dist/src/public/channels/upload-policy.d.ts.map +1 -0
- package/dist/src/public/channels/upload-policy.js +154 -0
- package/dist/src/public/channels/upload-policy.js.map +1 -0
- package/dist/src/public/connections/errors.d.ts +113 -0
- package/dist/src/public/connections/errors.d.ts.map +1 -0
- package/dist/src/public/connections/errors.js +54 -0
- package/dist/src/public/connections/errors.js.map +1 -0
- package/dist/src/public/connections/index.d.ts +5 -22
- package/dist/src/public/connections/index.d.ts.map +1 -1
- package/dist/src/public/connections/index.js +2 -20
- package/dist/src/public/connections/index.js.map +1 -1
- package/dist/src/public/context/index.d.ts +1 -1
- package/dist/src/public/context/index.d.ts.map +1 -1
- package/dist/src/public/context/index.js +1 -1
- package/dist/src/public/context/index.js.map +1 -1
- package/dist/src/public/definitions/agent.d.ts +2 -20
- package/dist/src/public/definitions/agent.d.ts.map +1 -1
- package/dist/src/public/definitions/agent.js.map +1 -1
- package/dist/src/public/definitions/channel.d.ts +2 -51
- package/dist/src/public/definitions/channel.d.ts.map +1 -1
- package/dist/src/public/definitions/channel.js +1 -26
- package/dist/src/public/definitions/channel.js.map +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +26 -15
- package/dist/src/public/definitions/connections/mcp.d.ts.map +1 -1
- package/dist/src/public/definitions/connections/mcp.js +12 -0
- package/dist/src/public/definitions/connections/mcp.js.map +1 -1
- package/dist/src/public/definitions/instrumentation.d.ts +0 -15
- package/dist/src/public/definitions/instrumentation.d.ts.map +1 -1
- package/dist/src/public/definitions/instrumentation.js +0 -15
- package/dist/src/public/definitions/instrumentation.js.map +1 -1
- package/dist/src/public/definitions/sandbox.d.ts +15 -19
- package/dist/src/public/definitions/sandbox.d.ts.map +1 -1
- package/dist/src/public/definitions/sandbox.js.map +1 -1
- package/dist/src/public/definitions/skill.d.ts +3 -13
- package/dist/src/public/definitions/skill.d.ts.map +1 -1
- package/dist/src/public/definitions/skill.js.map +1 -1
- package/dist/src/public/definitions/subagent.d.ts +3 -14
- package/dist/src/public/definitions/subagent.d.ts.map +1 -1
- package/dist/src/public/definitions/subagent.js.map +1 -1
- package/dist/src/public/definitions/tool.d.ts +21 -76
- package/dist/src/public/definitions/tool.d.ts.map +1 -1
- package/dist/src/public/definitions/tool.js +0 -14
- package/dist/src/public/definitions/tool.js.map +1 -1
- package/dist/src/public/helpers/markdown.d.ts +0 -10
- package/dist/src/public/helpers/markdown.d.ts.map +1 -1
- package/dist/src/public/helpers/markdown.js +3 -5
- package/dist/src/public/helpers/markdown.js.map +1 -1
- package/dist/src/public/index.d.ts +1 -17
- package/dist/src/public/index.d.ts.map +1 -1
- package/dist/src/public/index.js +1 -17
- package/dist/src/public/index.js.map +1 -1
- package/dist/src/public/instrumentation/index.d.ts +1 -18
- package/dist/src/public/instrumentation/index.d.ts.map +1 -1
- package/dist/src/public/instrumentation/index.js +1 -18
- package/dist/src/public/instrumentation/index.js.map +1 -1
- package/dist/src/public/sandboxes/backends/default.d.ts +0 -12
- package/dist/src/public/sandboxes/backends/default.d.ts.map +1 -1
- package/dist/src/public/sandboxes/backends/default.js +0 -12
- package/dist/src/public/sandboxes/backends/default.js.map +1 -1
- package/dist/src/public/sandboxes/backends/vercel.d.ts +2 -20
- package/dist/src/public/sandboxes/backends/vercel.d.ts.map +1 -1
- package/dist/src/public/sandboxes/backends/vercel.js +2 -20
- package/dist/src/public/sandboxes/backends/vercel.js.map +1 -1
- package/dist/src/public/sandboxes/defaults.d.ts.map +1 -1
- package/dist/src/public/sandboxes/defaults.js +0 -14
- package/dist/src/public/sandboxes/defaults.js.map +1 -1
- package/dist/src/public/sandboxes/index.d.ts +1 -34
- package/dist/src/public/sandboxes/index.d.ts.map +1 -1
- package/dist/src/public/sandboxes/index.js +1 -34
- package/dist/src/public/sandboxes/index.js.map +1 -1
- package/dist/src/public/schedules/index.d.ts +1 -16
- package/dist/src/public/schedules/index.d.ts.map +1 -1
- package/dist/src/public/schedules/index.js +1 -16
- package/dist/src/public/schedules/index.js.map +1 -1
- package/dist/src/public/skills/index.d.ts +0 -17
- package/dist/src/public/skills/index.d.ts.map +1 -1
- package/dist/src/public/skills/index.js +0 -17
- package/dist/src/public/skills/index.js.map +1 -1
- package/dist/src/public/subagents/index.d.ts +0 -13
- package/dist/src/public/subagents/index.d.ts.map +1 -1
- package/dist/src/public/subagents/index.js +0 -13
- package/dist/src/public/subagents/index.js.map +1 -1
- package/dist/src/public/system/index.d.ts +1 -27
- package/dist/src/public/system/index.d.ts.map +1 -1
- package/dist/src/public/system/index.js +1 -27
- package/dist/src/public/system/index.js.map +1 -1
- package/dist/src/public/tools/approval/index.d.ts +0 -18
- package/dist/src/public/tools/approval/index.d.ts.map +1 -1
- package/dist/src/public/tools/approval/index.js +0 -18
- package/dist/src/public/tools/approval/index.js.map +1 -1
- package/dist/src/public/tools/defaults.d.ts.map +1 -1
- package/dist/src/public/tools/defaults.js +0 -20
- package/dist/src/public/tools/defaults.js.map +1 -1
- package/dist/src/public/tools/define-bash-tool.d.ts +1 -17
- package/dist/src/public/tools/define-bash-tool.d.ts.map +1 -1
- package/dist/src/public/tools/define-bash-tool.js +1 -17
- package/dist/src/public/tools/define-bash-tool.js.map +1 -1
- package/dist/src/public/tools/define-glob-tool.js.map +1 -1
- package/dist/src/public/tools/define-grep-tool.js.map +1 -1
- package/dist/src/public/tools/define-read-file-tool.js.map +1 -1
- package/dist/src/public/tools/define-write-file-tool.js.map +1 -1
- package/dist/src/public/tools/index.d.ts +1 -24
- package/dist/src/public/tools/index.d.ts.map +1 -1
- package/dist/src/public/tools/index.js +1 -24
- package/dist/src/public/tools/index.js.map +1 -1
- package/dist/src/public/tools/internal.d.ts +0 -10
- package/dist/src/public/tools/internal.d.ts.map +1 -1
- package/dist/src/public/tools/internal.js +0 -10
- package/dist/src/public/tools/internal.js.map +1 -1
- package/dist/src/public/types/json.d.ts +29 -0
- package/dist/src/public/types/json.d.ts.map +1 -0
- package/dist/src/public/types/json.js +14 -0
- package/dist/src/public/types/json.js.map +1 -0
- package/dist/src/runtime/actions/types.d.ts +14 -14
- package/dist/src/runtime/actions/types.js +2 -2
- package/dist/src/runtime/actions/types.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap-model-utils.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap.d.ts +6 -8
- package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap.js +28 -13
- package/dist/src/runtime/agent/bootstrap.js.map +1 -1
- package/dist/src/runtime/agent/resolve-model.js.map +1 -1
- package/dist/src/runtime/channels/registry.d.ts +2 -0
- package/dist/src/runtime/channels/registry.d.ts.map +1 -1
- package/dist/src/runtime/channels/registry.js +87 -22
- package/dist/src/runtime/channels/registry.js.map +1 -1
- package/dist/src/runtime/connections/authorization-tokens.d.ts +57 -0
- package/dist/src/runtime/connections/authorization-tokens.d.ts.map +1 -0
- package/dist/src/runtime/connections/authorization-tokens.js +93 -0
- package/dist/src/runtime/connections/authorization-tokens.js.map +1 -0
- package/dist/src/runtime/connections/mcp-client.d.ts +7 -0
- package/dist/src/runtime/connections/mcp-client.d.ts.map +1 -1
- package/dist/src/runtime/connections/mcp-client.js +60 -2
- package/dist/src/runtime/connections/mcp-client.js.map +1 -1
- package/dist/src/runtime/connections/principal-context.d.ts +101 -0
- package/dist/src/runtime/connections/principal-context.d.ts.map +1 -0
- package/dist/src/runtime/connections/principal-context.js +112 -0
- package/dist/src/runtime/connections/principal-context.js.map +1 -0
- package/dist/src/runtime/connections/principal.d.ts +74 -0
- package/dist/src/runtime/connections/principal.d.ts.map +1 -0
- package/dist/src/runtime/connections/principal.js +107 -0
- package/dist/src/runtime/connections/principal.js.map +1 -0
- package/dist/src/runtime/connections/registry.d.ts.map +1 -1
- package/dist/src/runtime/connections/types.d.ts +175 -15
- package/dist/src/runtime/connections/types.d.ts.map +1 -1
- package/dist/src/runtime/connections/types.js +7 -1
- package/dist/src/runtime/connections/types.js.map +1 -1
- package/dist/src/runtime/connections/validate-authorization.d.ts +27 -0
- package/dist/src/runtime/connections/validate-authorization.d.ts.map +1 -0
- package/dist/src/runtime/connections/validate-authorization.js +57 -0
- package/dist/src/runtime/connections/validate-authorization.js.map +1 -0
- package/dist/src/runtime/framework-channels/index.d.ts +2 -18
- package/dist/src/runtime/framework-channels/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-channels/index.js +2 -18
- package/dist/src/runtime/framework-channels/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/ask-question.d.ts +2 -1
- package/dist/src/runtime/framework-tools/ask-question.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/ask-question.js.map +1 -1
- package/dist/src/runtime/framework-tools/bash.d.ts +2 -1
- package/dist/src/runtime/framework-tools/bash.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/bash.js.map +1 -1
- package/dist/src/runtime/framework-tools/connection-search.d.ts +52 -13
- package/dist/src/runtime/framework-tools/connection-search.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/connection-search.js +131 -13
- package/dist/src/runtime/framework-tools/connection-search.js.map +1 -1
- package/dist/src/runtime/framework-tools/connection-tools.d.ts +22 -13
- package/dist/src/runtime/framework-tools/connection-tools.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/connection-tools.js +70 -31
- package/dist/src/runtime/framework-tools/connection-tools.js.map +1 -1
- package/dist/src/runtime/framework-tools/glob.d.ts +2 -1
- package/dist/src/runtime/framework-tools/glob.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/glob.js.map +1 -1
- package/dist/src/runtime/framework-tools/grep.d.ts +2 -1
- package/dist/src/runtime/framework-tools/grep.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/grep.js.map +1 -1
- package/dist/src/runtime/framework-tools/index.d.ts +0 -4
- package/dist/src/runtime/framework-tools/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/index.js +1 -7
- package/dist/src/runtime/framework-tools/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/pending-connection-tool-calls.d.ts +79 -0
- package/dist/src/runtime/framework-tools/pending-connection-tool-calls.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/pending-connection-tool-calls.js +64 -0
- package/dist/src/runtime/framework-tools/pending-connection-tool-calls.js.map +1 -0
- package/dist/src/runtime/framework-tools/read-file.d.ts +2 -1
- package/dist/src/runtime/framework-tools/read-file.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/read-file.js.map +1 -1
- package/dist/src/runtime/framework-tools/write-file.d.ts +2 -1
- package/dist/src/runtime/framework-tools/write-file.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/write-file.js.map +1 -1
- package/dist/src/runtime/graph.d.ts +5 -5
- package/dist/src/runtime/graph.d.ts.map +1 -1
- package/dist/src/runtime/graph.js +6 -6
- package/dist/src/runtime/graph.js.map +1 -1
- package/dist/src/runtime/input/types.d.ts +3 -3
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts +8 -3
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts.map +1 -1
- package/dist/src/runtime/loaders/bundled-artifacts.js +13 -8
- package/dist/src/runtime/loaders/bundled-artifacts.js.map +1 -1
- package/dist/src/runtime/loaders/compile-metadata.d.ts.map +1 -1
- package/dist/src/runtime/loaders/manifest.d.ts.map +1 -1
- package/dist/src/runtime/loaders/module-map.d.ts.map +1 -1
- package/dist/src/runtime/prompt/compose.d.ts +2 -2
- package/dist/src/runtime/prompt/compose.d.ts.map +1 -1
- package/dist/src/runtime/prompt/compose.js.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.d.ts +2 -2
- package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.js +30 -46
- package/dist/src/runtime/resolve-agent-graph.js.map +1 -1
- package/dist/src/runtime/resolve-agent.js +4 -4
- package/dist/src/runtime/resolve-agent.js.map +1 -1
- package/dist/src/runtime/resolve-channel.js +4 -3
- package/dist/src/runtime/resolve-channel.js.map +1 -1
- package/dist/src/runtime/resolve-connection.d.ts.map +1 -1
- package/dist/src/runtime/resolve-connection.js +9 -13
- package/dist/src/runtime/resolve-connection.js.map +1 -1
- package/dist/src/runtime/resolve-helpers.d.ts +4 -9
- package/dist/src/runtime/resolve-helpers.d.ts.map +1 -1
- package/dist/src/runtime/resolve-helpers.js +2 -9
- package/dist/src/runtime/resolve-helpers.js.map +1 -1
- package/dist/src/runtime/resolve-sandbox.d.ts.map +1 -1
- package/dist/src/runtime/resolve-sandbox.js +3 -2
- package/dist/src/runtime/resolve-sandbox.js.map +1 -1
- package/dist/src/runtime/resolve-tool.d.ts.map +1 -1
- package/dist/src/runtime/resolve-tool.js +3 -2
- package/dist/src/runtime/resolve-tool.js.map +1 -1
- package/dist/src/runtime/sandboxes/keys.d.ts +3 -3
- package/dist/src/runtime/sandboxes/keys.d.ts.map +1 -1
- package/dist/src/runtime/sandboxes/keys.js +6 -23
- package/dist/src/runtime/sandboxes/keys.js.map +1 -1
- package/dist/src/runtime/sandboxes/registry.d.ts +0 -9
- package/dist/src/runtime/sandboxes/registry.d.ts.map +1 -1
- package/dist/src/runtime/sandboxes/registry.js +0 -9
- package/dist/src/runtime/sandboxes/registry.js.map +1 -1
- package/dist/src/runtime/schedules/register.d.ts +1 -10
- package/dist/src/runtime/schedules/register.d.ts.map +1 -1
- package/dist/src/runtime/schedules/register.js +0 -31
- package/dist/src/runtime/schedules/register.js.map +1 -1
- package/dist/src/runtime/schedules/resolve-schedule.d.ts.map +1 -1
- package/dist/src/runtime/schedules/resolve-schedule.js.map +1 -1
- package/dist/src/runtime/sessions/auth.d.ts +4 -4
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +10 -6
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.js +25 -20
- package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -1
- package/dist/src/runtime/sessions/runtime-session.d.ts +59 -0
- package/dist/src/runtime/sessions/runtime-session.d.ts.map +1 -0
- package/dist/src/runtime/sessions/runtime-session.js +64 -0
- package/dist/src/runtime/sessions/runtime-session.js.map +1 -0
- package/dist/src/runtime/sessions/turn.d.ts +9 -18
- package/dist/src/runtime/sessions/turn.d.ts.map +1 -1
- package/dist/src/runtime/skills/load-skill-content.d.ts +2 -3
- package/dist/src/runtime/skills/load-skill-content.d.ts.map +1 -1
- package/dist/src/runtime/skills/load-skill-content.js +1 -4
- package/dist/src/runtime/skills/load-skill-content.js.map +1 -1
- package/dist/src/runtime/skills/load-skills.d.ts +2 -18
- package/dist/src/runtime/skills/load-skills.d.ts.map +1 -1
- package/dist/src/runtime/skills/load-skills.js +1 -30
- package/dist/src/runtime/skills/load-skills.js.map +1 -1
- package/dist/src/runtime/skills/source.d.ts +6 -19
- package/dist/src/runtime/skills/source.d.ts.map +1 -1
- package/dist/src/runtime/skills/source.js +33 -14
- package/dist/src/runtime/skills/source.js.map +1 -1
- package/dist/src/runtime/subagents/registry.d.ts +4 -4
- package/dist/src/runtime/subagents/registry.d.ts.map +1 -1
- package/dist/src/runtime/subagents/registry.js +8 -10
- package/dist/src/runtime/subagents/registry.js.map +1 -1
- package/dist/src/runtime/tools/registry.js.map +1 -1
- package/dist/src/runtime/types.d.ts +28 -67
- package/dist/src/runtime/types.d.ts.map +1 -1
- package/dist/src/runtime/workspace/spec.d.ts +2 -15
- package/dist/src/runtime/workspace/spec.d.ts.map +1 -1
- package/dist/src/runtime/workspace/spec.js +0 -13
- package/dist/src/runtime/workspace/spec.js.map +1 -1
- package/dist/src/sandbox/state.d.ts +32 -0
- package/dist/src/sandbox/state.d.ts.map +1 -0
- package/dist/src/sandbox/state.js +2 -0
- package/dist/src/sandbox/state.js.map +1 -0
- package/dist/src/services/dev-client/send-message.d.ts +1 -0
- package/dist/src/services/dev-client/send-message.d.ts.map +1 -1
- package/dist/src/services/dev-client/send-message.js +4 -0
- package/dist/src/services/dev-client/send-message.js.map +1 -1
- package/dist/src/services/dev-client/session.js.map +1 -1
- package/dist/src/services/dev-client/vercel-auth-error.d.ts +42 -0
- package/dist/src/services/dev-client/vercel-auth-error.d.ts.map +1 -0
- package/dist/src/services/dev-client/vercel-auth-error.js +96 -0
- package/dist/src/services/dev-client/vercel-auth-error.js.map +1 -0
- package/dist/src/services/host.js.map +1 -1
- package/dist/src/shared/agent-definition.d.ts +13 -0
- package/dist/src/shared/agent-definition.d.ts.map +1 -0
- package/dist/src/shared/agent-definition.js +2 -0
- package/dist/src/shared/agent-definition.js.map +1 -0
- package/dist/src/shared/errors.d.ts +18 -0
- package/dist/src/shared/errors.d.ts.map +1 -0
- package/dist/src/shared/errors.js +67 -0
- package/dist/src/shared/errors.js.map +1 -0
- package/dist/src/shared/guards.d.ts +32 -0
- package/dist/src/shared/guards.d.ts.map +1 -0
- package/dist/src/shared/guards.js +36 -0
- package/dist/src/shared/guards.js.map +1 -0
- package/dist/src/shared/json.d.ts.map +1 -0
- package/dist/src/shared/json.js.map +1 -0
- package/dist/src/shared/node.d.ts +7 -0
- package/dist/src/shared/node.d.ts.map +1 -0
- package/dist/src/shared/node.js +2 -0
- package/dist/src/shared/node.js.map +1 -0
- package/dist/src/shared/optional.d.ts +2 -0
- package/dist/src/shared/optional.d.ts.map +1 -0
- package/dist/src/shared/optional.js +2 -0
- package/dist/src/shared/optional.js.map +1 -0
- package/dist/src/shared/skill-definition.d.ts +8 -0
- package/dist/src/shared/skill-definition.d.ts.map +1 -0
- package/dist/src/shared/skill-definition.js +2 -0
- package/dist/src/shared/skill-definition.js.map +1 -0
- package/dist/src/{internal → shared}/source-ref.d.ts +17 -11
- package/dist/src/shared/source-ref.d.ts.map +1 -0
- package/dist/src/{internal → shared}/source-ref.js.map +1 -1
- package/dist/src/shared/subagent-definition.d.ts +18 -0
- package/dist/src/shared/subagent-definition.d.ts.map +1 -0
- package/dist/src/shared/subagent-definition.js +2 -0
- package/dist/src/shared/subagent-definition.js.map +1 -0
- package/dist/src/shared/tool-definition.d.ts +27 -0
- package/dist/src/shared/tool-definition.d.ts.map +1 -0
- package/dist/src/shared/tool-definition.js +2 -0
- package/dist/src/shared/tool-definition.js.map +1 -0
- package/docs/external-agent-protocol.md +15 -15
- package/docs/internals/README.md +22 -27
- package/docs/internals/channels.md +24 -22
- package/docs/internals/compiler-and-artifacts.md +2 -2
- package/docs/internals/context.md +16 -16
- package/docs/internals/discovery.md +4 -4
- package/docs/internals/message-runtime.md +15 -10
- package/docs/internals/testing.md +238 -0
- package/docs/public/agent-ts.md +7 -5
- package/docs/public/auth-and-route-protection.md +4 -1
- package/docs/public/channels/README.md +18 -1
- package/docs/public/channels/attachments.md +219 -0
- package/docs/public/cli-build-and-debugging.md +4 -1
- package/docs/public/context-control.md +4 -1
- package/docs/public/evals.md +4 -1
- package/docs/public/getting-started.md +4 -1
- package/docs/public/human-in-the-loop.md +10 -11
- package/docs/public/instrumentation.md +5 -2
- package/docs/public/meta.json +27 -0
- package/docs/public/project-layout.md +18 -15
- package/docs/public/runs-and-streaming.md +4 -1
- package/docs/public/sandboxes.md +7 -4
- package/docs/public/schedules.md +4 -1
- package/docs/public/session-context.md +7 -15
- package/docs/public/skills.md +4 -1
- package/docs/public/subagents.md +5 -2
- package/docs/public/tools.md +10 -12
- package/docs/public/typescript-api.md +12 -2
- package/docs/public/vercel-deployment.md +4 -1
- package/docs/public/workspace.md +4 -1
- package/package.json +38 -36
- package/dist/src/execution/sandboxes/types.d.ts +0 -33
- package/dist/src/execution/sandboxes/types.d.ts.map +0 -1
- package/dist/src/execution/sandboxes/types.js +0 -2
- package/dist/src/execution/sandboxes/types.js.map +0 -1
- package/dist/src/execution/session-snapshot.d.ts +0 -21
- package/dist/src/execution/session-snapshot.d.ts.map +0 -1
- package/dist/src/execution/session-snapshot.js +0 -58
- package/dist/src/execution/session-snapshot.js.map +0 -1
- package/dist/src/internal/message/builder.d.ts +0 -27
- package/dist/src/internal/message/builder.d.ts.map +0 -1
- package/dist/src/internal/message/builder.js.map +0 -1
- package/dist/src/internal/message/health.d.ts +0 -5
- package/dist/src/internal/message/health.d.ts.map +0 -1
- package/dist/src/internal/message/health.js +0 -13
- package/dist/src/internal/message/health.js.map +0 -1
- package/dist/src/internal/message/vercel-workflow-output.d.ts.map +0 -1
- package/dist/src/internal/message/vercel-workflow-output.js.map +0 -1
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts +0 -10
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +0 -1
- package/dist/src/internal/nitro/host/configure-message-routes.js +0 -232
- package/dist/src/internal/nitro/host/configure-message-routes.js.map +0 -1
- package/dist/src/internal/nitro/routes/web-ui/assets/index.js +0 -11
- package/dist/src/internal/nitro/routes/web-ui/assets/style.css +0 -2
- package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts +0 -16
- package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts.map +0 -1
- package/dist/src/internal/nitro/shims/schedule-task-handler.js +0 -39
- package/dist/src/internal/nitro/shims/schedule-task-handler.js.map +0 -1
- package/dist/src/internal/source-ref.d.ts.map +0 -1
- package/dist/src/runtime/json.d.ts.map +0 -1
- package/dist/src/runtime/json.js.map +0 -1
- package/dist/src/runtime/skills/types.d.ts +0 -8
- package/dist/src/runtime/skills/types.d.ts.map +0 -1
- package/dist/src/runtime/skills/types.js +0 -2
- package/dist/src/runtime/skills/types.js.map +0 -1
- /package/dist/src/{runtime → shared}/json.d.ts +0 -0
- /package/dist/src/{runtime → shared}/json.js +0 -0
- /package/dist/src/{internal → shared}/source-ref.js +0 -0
package/README.md
CHANGED
|
@@ -128,4 +128,3 @@ Start here:
|
|
|
128
128
|
- [`packages/ash/README.md`](packages/ash/README.md) is the package-facing overview
|
|
129
129
|
- [`skills/agent/SKILL.md`](skills/agent/SKILL.md) is the app-authoring skill
|
|
130
130
|
- [`skills/framework/SKILL.md`](skills/framework/SKILL.md) is the internals skill
|
|
131
|
-
|
package/bin/ash.d.ts
CHANGED
|
@@ -15,9 +15,9 @@ export interface BootstrapOptions {
|
|
|
15
15
|
packageRoot?: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Absolute path to the
|
|
18
|
+
* Absolute path to the tsgo CLI entrypoint used for bootstrap builds.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
tsgoCliPath?: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface BootstrapCommandOptions {
|
package/bin/ash.js
CHANGED
|
@@ -18,7 +18,7 @@ function createBootstrapOptions(overrides = {}) {
|
|
|
18
18
|
copyAssetsScriptPath:
|
|
19
19
|
overrides.copyAssetsScriptPath ?? resolve(packageRoot, "scripts", "copy-static-assets.mjs"),
|
|
20
20
|
packageRoot,
|
|
21
|
-
|
|
21
|
+
tsgoCliPath: overrides.tsgoCliPath,
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -105,8 +105,17 @@ function inputTsconfigPath({ packageRoot }) {
|
|
|
105
105
|
return resolve(packageRoot, "tsconfig.json");
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
function
|
|
109
|
-
|
|
108
|
+
function resolveTsgoCliPath({ tsgoCliPath }) {
|
|
109
|
+
if (tsgoCliPath) {
|
|
110
|
+
return tsgoCliPath;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// The `@typescript/native-preview` package only exports `./package.json`
|
|
114
|
+
// in its `exports` map, so `require.resolve("@typescript/native-preview/bin/tsgo.js")`
|
|
115
|
+
// fails with ERR_PACKAGE_PATH_NOT_EXPORTED. Resolve the package.json
|
|
116
|
+
// (which is exported) and join to the binary path manually.
|
|
117
|
+
const packageJsonPath = require.resolve("@typescript/native-preview/package.json");
|
|
118
|
+
return resolve(dirname(packageJsonPath), "bin", "tsgo.js");
|
|
110
119
|
}
|
|
111
120
|
|
|
112
121
|
async function runCommand(command, args, options) {
|
|
@@ -174,7 +183,7 @@ export async function ensureBuiltCli(overrides = {}, dependencies = {}) {
|
|
|
174
183
|
|
|
175
184
|
await executeCommand(
|
|
176
185
|
process.execPath,
|
|
177
|
-
[
|
|
186
|
+
[resolveTsgoCliPath({ tsgoCliPath: options.tsgoCliPath }), "-p", "tsconfig.json"],
|
|
178
187
|
{
|
|
179
188
|
cwd: options.packageRoot,
|
|
180
189
|
},
|
|
@@ -229,5 +238,11 @@ if (await isDirectExecution()) {
|
|
|
229
238
|
const message = error instanceof Error ? error.message : String(error);
|
|
230
239
|
console.error(message);
|
|
231
240
|
process.exitCode = 1;
|
|
241
|
+
} finally {
|
|
242
|
+
// The CLI bootstraps build/dev toolchains that can leave native service
|
|
243
|
+
// handles alive after the command has completed. Once the top-level
|
|
244
|
+
// command resolves, terminate the bin process explicitly so commands like
|
|
245
|
+
// `ash dev` + `/exit` do not hang on leaked implementation details.
|
|
246
|
+
process.exit(process.exitCode ?? 0);
|
|
232
247
|
}
|
|
233
248
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ContextAccessor } from "../context/key.js";
|
|
2
|
+
import type { ChannelAdapter, ChannelAdapterContext } from "./adapter.js";
|
|
3
|
+
/**
|
|
4
|
+
* Builds the {@link ChannelAdapterContext} the runtime hands to an
|
|
5
|
+
* adapter's `deliver` hook, event handlers, and attachment resolver.
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildAdapterContext<TCtx extends ChannelAdapterContext<any> = ChannelAdapterContext>(adapter: ChannelAdapter<TCtx>, accessor: ContextAccessor): TCtx;
|
|
8
|
+
//# sourceMappingURL=adapter-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter-context.d.ts","sourceRoot":"","sources":["../../../src/channel/adapter-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1E;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,SAAS,qBAAqB,CAAC,GAAG,CAAC,GAAG,qBAAqB,EAC/D,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,eAAe,GAAG,IAAI,CAahE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the {@link ChannelAdapterContext} the runtime hands to an
|
|
3
|
+
* adapter's `deliver` hook, event handlers, and attachment resolver.
|
|
4
|
+
*/
|
|
5
|
+
export function buildAdapterContext(adapter, accessor) {
|
|
6
|
+
// `adapter.state` is stored loosely (`Record<string, unknown>`)
|
|
7
|
+
// because it round-trips through JSON at step boundaries. The
|
|
8
|
+
// adapter is responsible for seeding state in the shape its
|
|
9
|
+
// `createAdapterContext` / handlers expect, so the cast to the
|
|
10
|
+
// narrower `TCtx`-derived state is safe at this seam.
|
|
11
|
+
const baseCtx = {
|
|
12
|
+
ctx: accessor,
|
|
13
|
+
state: adapter.state ?? {},
|
|
14
|
+
};
|
|
15
|
+
return adapter.createAdapterContext
|
|
16
|
+
? adapter.createAdapterContext(baseCtx)
|
|
17
|
+
: baseCtx;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=adapter-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter-context.js","sourceRoot":"","sources":["../../../src/channel/adapter-context.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAEjC,OAA6B,EAAE,QAAyB;IACxD,gEAAgE;IAChE,8DAA8D;IAC9D,4DAA4D;IAC5D,+DAA+D;IAC/D,sDAAsD;IACtD,MAAM,OAAO,GAAG;QACd,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE;KACiD,CAAC;IAC9E,OAAO,OAAO,CAAC,oBAAoB;QACjC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC;QACvC,CAAC,CAAE,OAA2B,CAAC;AACnC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ContextAccessor } from "../context/key.js";
|
|
2
2
|
import type { ContextProvider } from "../context/provider.js";
|
|
3
3
|
import type { StepInput } from "../harness/types.js";
|
|
4
|
+
import type { AttachmentRef } from "../internal/attachments/refs.js";
|
|
4
5
|
import type { HandleMessageStreamEvent } from "../protocol/message.js";
|
|
5
6
|
import type { DeliverPayload } from "./types.js";
|
|
6
7
|
/**
|
|
@@ -24,6 +25,12 @@ export interface ChannelAdapterContext<TState = Record<string, unknown>> {
|
|
|
24
25
|
*/
|
|
25
26
|
readonly ctx: ContextAccessor;
|
|
26
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Extracts the state type from a {@link ChannelAdapterContext} generic.
|
|
30
|
+
* Used internally so adapter-level types can declare their state shape
|
|
31
|
+
* once (via `TCtx`) and have helpers narrow consistently.
|
|
32
|
+
*/
|
|
33
|
+
type StateOf<TCtx> = TCtx extends ChannelAdapterContext<infer S> ? S : Record<string, unknown>;
|
|
27
34
|
/**
|
|
28
35
|
* Extracts the `data` field type from a stream event by its `type` discriminant.
|
|
29
36
|
* Events that carry no `data` field (e.g. `session.completed`) resolve to `undefined`.
|
|
@@ -47,20 +54,37 @@ export type ChannelEventHandlers<TCtx extends ChannelAdapterContext<any> = Chann
|
|
|
47
54
|
[K in HandleMessageStreamEvent["type"]]?: EventHandler<K, TCtx>;
|
|
48
55
|
};
|
|
49
56
|
/**
|
|
50
|
-
*
|
|
57
|
+
* Enriched resolver return shape. A resolver can return either a bare
|
|
58
|
+
* {@link Buffer} or this record when it learns a more accurate
|
|
59
|
+
* `mediaType` or `filename` mid-fetch (e.g. from an HTTP
|
|
60
|
+
* `Content-Type` header or a storage-service listing).
|
|
51
61
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
* When fields are provided, staging prefers them over the values the
|
|
63
|
+
* channel populated at ingestion time — the resolver is the source of
|
|
64
|
+
* truth for bytes *and* for anything it discovers while fetching.
|
|
65
|
+
*/
|
|
66
|
+
export interface ResolvedAttachment {
|
|
67
|
+
readonly bytes: Buffer;
|
|
68
|
+
readonly mediaType?: string;
|
|
69
|
+
readonly filename?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Channel-owned resolver that turns an opaque {@link AttachmentRef} back
|
|
73
|
+
* into raw bytes.
|
|
58
74
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
75
|
+
* Channels that emit `ash-attachment:` refs provide this so staging can
|
|
76
|
+
* re-fetch bytes inside a step boundary. Return a bare {@link Buffer} or
|
|
77
|
+
* a {@link ResolvedAttachment} when fetch-time metadata should override
|
|
78
|
+
* the original file part.
|
|
79
|
+
*/
|
|
80
|
+
export interface AttachmentResolver<TParams = unknown, TCtx extends ChannelAdapterContext<any> = ChannelAdapterContext> {
|
|
81
|
+
resolve(ref: AttachmentRef<TParams>, ctx: TCtx): Promise<Buffer | ResolvedAttachment>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Plain-object channel adapter with durable state, an optional inbound
|
|
85
|
+
* delivery hook, event handlers, and optional attachment resolution.
|
|
62
86
|
*/
|
|
63
|
-
export type ChannelAdapter<TCtx extends ChannelAdapterContext<any> = ChannelAdapterContext> = {
|
|
87
|
+
export type ChannelAdapter<TCtx extends ChannelAdapterContext<any> = ChannelAdapterContext, TAttachmentParams = unknown> = {
|
|
64
88
|
/**
|
|
65
89
|
* Stable durable identifier for serialization across step boundaries.
|
|
66
90
|
* Must be unique across all adapters visible to one runtime bundle.
|
|
@@ -78,17 +102,8 @@ export type ChannelAdapter<TCtx extends ChannelAdapterContext<any> = ChannelAdap
|
|
|
78
102
|
/**
|
|
79
103
|
* Inbound hook: fires once per delivery before the harness starts.
|
|
80
104
|
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* message the model sees. Return void to use the original payload message.
|
|
84
|
-
*
|
|
85
|
-
* For Slack adapters, the route's base layer runs AFTER this:
|
|
86
|
-
* 1. Resolves HITL against the ORIGINAL payload.message (not the
|
|
87
|
-
* returned string). Matched inputResponses go to the harness and
|
|
88
|
-
* the return value is ignored.
|
|
89
|
-
* 2. If no HITL to resolve, uses the returned string (or
|
|
90
|
-
* payload.message if void), prepends user context, and produces
|
|
91
|
-
* the StepInput for the harness.
|
|
105
|
+
* Return a {@link StepInput} to override the input the harness sees, or
|
|
106
|
+
* return void to use the default payload projection.
|
|
92
107
|
*/
|
|
93
108
|
deliver?(payload: DeliverPayload, ctx: TCtx): StepInput | void | Promise<StepInput | void>;
|
|
94
109
|
/**
|
|
@@ -102,14 +117,27 @@ export type ChannelAdapter<TCtx extends ChannelAdapterContext<any> = ChannelAdap
|
|
|
102
117
|
/**
|
|
103
118
|
* Optional factory that builds the adapter context for this adapter.
|
|
104
119
|
*
|
|
105
|
-
* The runtime calls this before invoking `deliver` or event handlers.
|
|
106
|
-
* Default returns a bare `ChannelAdapterContext`. Slack adapters override
|
|
107
|
-
* this to return a `SlackAdapterContext` with `ctx.slack`.
|
|
108
|
-
*
|
|
109
120
|
* @internal — set by `createSlackBaseAdapter`, not authored by users.
|
|
110
121
|
*/
|
|
111
|
-
|
|
122
|
+
createAdapterContext?(base: ChannelAdapterContext<StateOf<TCtx>>): TCtx;
|
|
123
|
+
/**
|
|
124
|
+
* Optional resolver that turns an opaque {@link AttachmentRef}
|
|
125
|
+
* produced by this adapter into raw bytes.
|
|
126
|
+
*
|
|
127
|
+
* Required only for channels that put `ash-attachment:` URLs into
|
|
128
|
+
* `FilePart.data`.
|
|
129
|
+
*/
|
|
130
|
+
readonly attachments?: AttachmentResolver<TAttachmentParams, TCtx>;
|
|
112
131
|
} & ChannelEventHandlers<TCtx>;
|
|
132
|
+
/**
|
|
133
|
+
* Produces the default {@link StepInput} when no custom adapter `deliver`
|
|
134
|
+
* hook is defined.
|
|
135
|
+
*
|
|
136
|
+
* Passes through both `message` and `inputResponses` from the delivery
|
|
137
|
+
* payload so tool-approval responses (and other HITL replies) reach the
|
|
138
|
+
* harness even when the channel has no bespoke deliver logic.
|
|
139
|
+
*/
|
|
140
|
+
export declare function defaultDeliverResult(payload: DeliverPayload): StepInput | undefined;
|
|
113
141
|
/**
|
|
114
142
|
* Returns the durable kind for an adapter, falling back to `"unknown"`.
|
|
115
143
|
*/
|
|
@@ -122,8 +150,8 @@ export declare function getAdapterContextProviders(adapter: ChannelAdapter): rea
|
|
|
122
150
|
* Calls an adapter's event handler for a given event. Returns the event
|
|
123
151
|
* unchanged (adapters don't transform events — they perform side effects).
|
|
124
152
|
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
153
|
+
* Throwing handlers are logged and swallowed so a downstream delivery
|
|
154
|
+
* failure does not corrupt the event stream write path.
|
|
127
155
|
*/
|
|
128
156
|
export declare function callAdapterEventHandler(adapter: ChannelAdapter, event: HandleMessageStreamEvent, ctx: ChannelAdapterContext): Promise<HandleMessageStreamEvent>;
|
|
129
157
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/channel/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/channel/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,KAAK,EAAE,wBAAwB,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,OAAO,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAUnF;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,cAAc,GACtB,SAAS,eAAe,CAAC,OAAO,CAAC,EAAE,CAErC;AAED;;;;;;GAMG;AACH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,wBAAwB,EAC/B,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,wBAAwB,CAAC,CAoBnC"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
+
import { createLogger } from "../internal/logging.js";
|
|
2
|
+
const log = createLogger("channel.adapter");
|
|
1
3
|
// ---------------------------------------------------------------------------
|
|
2
4
|
// Helpers
|
|
3
5
|
// ---------------------------------------------------------------------------
|
|
6
|
+
/**
|
|
7
|
+
* Produces the default {@link StepInput} when no custom adapter `deliver`
|
|
8
|
+
* hook is defined.
|
|
9
|
+
*
|
|
10
|
+
* Passes through both `message` and `inputResponses` from the delivery
|
|
11
|
+
* payload so tool-approval responses (and other HITL replies) reach the
|
|
12
|
+
* harness even when the channel has no bespoke deliver logic.
|
|
13
|
+
*/
|
|
14
|
+
export function defaultDeliverResult(payload) {
|
|
15
|
+
if (payload.message !== undefined) {
|
|
16
|
+
return { inputResponses: payload.inputResponses, message: payload.message };
|
|
17
|
+
}
|
|
18
|
+
if (payload.inputResponses !== undefined && payload.inputResponses.length > 0) {
|
|
19
|
+
return { inputResponses: payload.inputResponses };
|
|
20
|
+
}
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
4
23
|
/**
|
|
5
24
|
* Returns the durable kind for an adapter, falling back to `"unknown"`.
|
|
6
25
|
*/
|
|
@@ -17,14 +36,24 @@ export function getAdapterContextProviders(adapter) {
|
|
|
17
36
|
* Calls an adapter's event handler for a given event. Returns the event
|
|
18
37
|
* unchanged (adapters don't transform events — they perform side effects).
|
|
19
38
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
39
|
+
* Throwing handlers are logged and swallowed so a downstream delivery
|
|
40
|
+
* failure does not corrupt the event stream write path.
|
|
22
41
|
*/
|
|
23
42
|
export async function callAdapterEventHandler(adapter, event, ctx) {
|
|
24
43
|
const handler = adapter[event.type];
|
|
25
|
-
if (handler
|
|
44
|
+
if (handler === undefined) {
|
|
45
|
+
return event;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
26
48
|
await handler("data" in event ? event.data : undefined, ctx);
|
|
27
49
|
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
log.error("adapter event handler threw — event swallowed", {
|
|
52
|
+
adapterKind: getAdapterKind(adapter),
|
|
53
|
+
eventType: event.type,
|
|
54
|
+
error,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
28
57
|
return event;
|
|
29
58
|
}
|
|
30
59
|
//# sourceMappingURL=adapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/channel/adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/channel/adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,MAAM,GAAG,GAAG,YAAY,CAAC,iBAAiB,CAAC,CAAC;AAoK5C,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAuB;IAC1D,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;QAClC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;IAC9E,CAAC;IAED,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,IAAI,OAAO,CAAC,cAAc,CAAC,MAAM,GAA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IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;
|
|
1
|
+
{"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../src/channel/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAsB,MAAM,YAAY,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAElC,YAAY,MAAM,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAEhD;IAEK,OAAO,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC,CAS7D;CACF"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Slack adapter context, base layer, and factory.
|
|
3
|
-
*
|
|
4
|
-
* The Slack adapter context extends the generic ChannelAdapterContext with
|
|
5
|
-
* a `slack` handle for Slack thread operations. The base layer provides
|
|
6
|
-
* default Slack behaviors (typing, posting, HITL cards) that user adapters
|
|
7
|
-
* can override per event type.
|
|
8
3
|
*/
|
|
4
|
+
import type { FilePart } from "ai";
|
|
5
|
+
import type { SerializedThread } from "chat";
|
|
6
|
+
import { type UploadPolicy } from "../public/channels/upload-policy.js";
|
|
9
7
|
import type { ChannelAdapter, ChannelAdapterContext } from "./adapter.js";
|
|
10
|
-
import type { SlackUserContext } from "./slack-state.js";
|
|
11
|
-
import type { SlackInteraction, SlackRenderable, SlackThreadMessage } from "./slack-types.js";
|
|
8
|
+
import type { SlackChannelState, SlackUserContext } from "./slack-state.js";
|
|
9
|
+
import type { SlackInteraction, SlackRenderable, SlackThreadMessage, SlackResponse } from "./slack-types.js";
|
|
12
10
|
/**
|
|
13
11
|
* Extended adapter context for Slack adapters. Provides a `slack` handle
|
|
14
12
|
* for posting messages, editing messages, typing indicators, and reading
|
|
@@ -16,9 +14,16 @@ import type { SlackInteraction, SlackRenderable, SlackThreadMessage } from "./sl
|
|
|
16
14
|
*
|
|
17
15
|
* Constructed by the slack base layer before calling user adapter handlers.
|
|
18
16
|
*/
|
|
19
|
-
export interface SlackAdapterContext<TState =
|
|
17
|
+
export interface SlackAdapterContext<TState extends SlackChannelState = SlackChannelState> extends ChannelAdapterContext<TState> {
|
|
20
18
|
readonly slack: SlackHandle;
|
|
21
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Params carried by Slack `ash-attachment:` refs.
|
|
22
|
+
*/
|
|
23
|
+
export interface SlackAttachmentParams {
|
|
24
|
+
/** Authenticated `files.slack.com` URL to the raw attachment bytes. */
|
|
25
|
+
readonly url: string;
|
|
26
|
+
}
|
|
22
27
|
/**
|
|
23
28
|
* Platform handle for Slack operations. Injected into the adapter context
|
|
24
29
|
* by the slack base layer.
|
|
@@ -34,6 +39,8 @@ export interface SlackHandle {
|
|
|
34
39
|
refresh(): Promise<void>;
|
|
35
40
|
/** Get recent thread messages (call refresh first). */
|
|
36
41
|
listRecentMessages(): Promise<readonly SlackThreadMessage[]>;
|
|
42
|
+
/** Perform a raw, authenticated request to the Slack API. */
|
|
43
|
+
request(operation: string, body: unknown): Promise<SlackResponse>;
|
|
37
44
|
/** Slack channel ID. */
|
|
38
45
|
readonly channelId: string;
|
|
39
46
|
/** Chat SDK thread ID. */
|
|
@@ -58,8 +65,19 @@ export interface SlackHandle {
|
|
|
58
65
|
*/
|
|
59
66
|
export declare function createSlackBaseAdapter(input: {
|
|
60
67
|
readonly userAdapter?: ChannelAdapter<any>;
|
|
61
|
-
|
|
62
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Seed state for the route-time or session-time Slack adapter.
|
|
70
|
+
*/
|
|
71
|
+
readonly slackState: Partial<SlackChannelState>;
|
|
72
|
+
/**
|
|
73
|
+
* Effective upload policy for inbound Slack attachments. The Slack
|
|
74
|
+
* base layer filters disallowed parts out of the `FilePart` array
|
|
75
|
+
* before it reaches the harness; violations are logged and dropped
|
|
76
|
+
* rather than surfaced as an error so the text turn still goes
|
|
77
|
+
* through. Defaults to {@link DEFAULT_UPLOAD_POLICY}.
|
|
78
|
+
*/
|
|
79
|
+
readonly uploadPolicy?: UploadPolicy;
|
|
80
|
+
}): ChannelAdapter<SlackAdapterContext, SlackAttachmentParams>;
|
|
63
81
|
/**
|
|
64
82
|
* Creates a SlackHandle from the Chat SDK thread, lazily initialized.
|
|
65
83
|
*
|
|
@@ -67,8 +85,8 @@ export declare function createSlackBaseAdapter(input: {
|
|
|
67
85
|
* pattern as the old SlackChannel.getThread()).
|
|
68
86
|
*/
|
|
69
87
|
export declare function createSlackHandle(input: {
|
|
70
|
-
readonly botToken
|
|
71
|
-
readonly serializedThread:
|
|
88
|
+
readonly botToken: string;
|
|
89
|
+
readonly serializedThread: SerializedThread;
|
|
72
90
|
readonly userContext?: SlackUserContext;
|
|
73
91
|
}): SlackHandle;
|
|
74
92
|
/**
|
|
@@ -85,7 +103,15 @@ export declare function deriveInputResponsesFromInteraction(interaction: SlackIn
|
|
|
85
103
|
* Defines a Slack adapter. Validates the shape and returns the adapter
|
|
86
104
|
* unchanged so it can be passed to `slackRoute({ adapter })`.
|
|
87
105
|
*
|
|
88
|
-
*
|
|
106
|
+
* `TExtra` lets a user adapter declare the custom state fields it
|
|
107
|
+
* manages; Ash intersects it with framework-managed
|
|
108
|
+
* {@link SlackChannelState}.
|
|
109
|
+
*/
|
|
110
|
+
export declare function defineSlackAdapter<TExtra extends Record<string, unknown> = {}>(adapter: ChannelAdapter<SlackAdapterContext<TExtra & SlackChannelState>>): ChannelAdapter<SlackAdapterContext<TExtra & SlackChannelState>>;
|
|
111
|
+
/**
|
|
112
|
+
* Converts attachments on the most recent non-bot thread message into
|
|
113
|
+
* AI SDK `FilePart`s. Disallowed or unreadable attachments are logged
|
|
114
|
+
* and dropped so the text turn can continue.
|
|
89
115
|
*/
|
|
90
|
-
export declare function
|
|
116
|
+
export declare function collectFilePartsFromMessages(messages: readonly SlackThreadMessage[], uploadPolicy?: UploadPolicy): Promise<FilePart[]>;
|
|
91
117
|
//# sourceMappingURL=slack-adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slack-adapter.d.ts","sourceRoot":"","sources":["../../../src/channel/slack-adapter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"slack-adapter.d.ts","sourceRoot":"","sources":["../../../src/channel/slack-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,IAAI,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAU7C,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAEV,cAAc,EACd,qBAAqB,EAEtB,MAAM,cAAc,CAAC;AAUtB,OAAO,KAAK,EAAE,iBAAiB,EAAuB,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EAEf,kBAAkB,EAClB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAQ1B;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB,CAClC,MAAM,SAAS,iBAAiB,GAAG,iBAAiB,CACpD,SAAQ,qBAAqB,CAAC,MAAM,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,WAA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