experimental-ash 0.1.0-alpha.9 → 0.2.0-alpha.2
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 +68 -533
- package/bin/ash.d.ts +2 -0
- package/bin/ash.js +118 -9
- package/dist/src/channel/emitter-registry.d.ts +34 -0
- package/dist/src/channel/emitter-registry.d.ts.map +1 -0
- package/dist/src/channel/emitter-registry.js +63 -0
- package/dist/src/channel/emitter-registry.js.map +1 -0
- package/dist/src/channel/http-emitter.d.ts +16 -0
- package/dist/src/channel/http-emitter.d.ts.map +1 -0
- package/dist/src/channel/http-emitter.js +22 -0
- package/dist/src/channel/http-emitter.js.map +1 -0
- package/dist/src/channel/schedule-emitter.d.ts +15 -0
- package/dist/src/channel/schedule-emitter.d.ts.map +1 -0
- package/dist/src/channel/schedule-emitter.js +21 -0
- package/dist/src/channel/schedule-emitter.js.map +1 -0
- package/dist/src/channel/schedule.d.ts +31 -0
- package/dist/src/channel/schedule.d.ts.map +1 -0
- package/dist/src/channel/schedule.js +45 -0
- package/dist/src/channel/schedule.js.map +1 -0
- package/dist/src/channel/slack-emitter.d.ts +56 -0
- package/dist/src/channel/slack-emitter.d.ts.map +1 -0
- package/dist/src/channel/slack-emitter.js +235 -0
- package/dist/src/channel/slack-emitter.js.map +1 -0
- package/dist/src/channel/subagent-emitter.d.ts +41 -0
- package/dist/src/channel/subagent-emitter.d.ts.map +1 -0
- package/dist/src/channel/subagent-emitter.js +53 -0
- package/dist/src/channel/subagent-emitter.js.map +1 -0
- package/dist/src/channel/types.d.ts +260 -0
- package/dist/src/channel/types.d.ts.map +1 -0
- package/dist/src/channel/types.js.map +1 -0
- package/dist/src/cli/commands/info.js +4 -4
- package/dist/src/cli/commands/info.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts.map +1 -1
- package/dist/src/cli/commands/init.js +2 -4
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/dev/input-requests.d.ts +39 -0
- package/dist/src/cli/dev/input-requests.d.ts.map +1 -0
- package/dist/src/cli/dev/input-requests.js +196 -0
- package/dist/src/cli/dev/input-requests.js.map +1 -0
- package/dist/src/cli/dev/repl.d.ts +3 -1
- package/dist/src/cli/dev/repl.d.ts.map +1 -1
- package/dist/src/cli/dev/repl.js +216 -66
- package/dist/src/cli/dev/repl.js.map +1 -1
- package/dist/src/cli/dev/url.d.ts +0 -1
- package/dist/src/cli/dev/url.d.ts.map +1 -1
- package/dist/src/cli/dev/url.js +0 -1
- package/dist/src/cli/dev/url.js.map +1 -1
- package/dist/src/cli/run.d.ts.map +1 -1
- package/dist/src/cli/run.js +10 -14
- package/dist/src/cli/run.js.map +1 -1
- package/dist/src/cli/templates/init-app/agent/agent.ts +2 -2
- package/dist/src/cli/templates/init-app/agent/tools/get_weather.ts +14 -0
- package/dist/src/cli/templates/init-app/gitignore +1 -0
- package/dist/src/cli/templates/init-app/package.json +1 -1
- package/dist/src/cli/templates/init-app/tsconfig.json +1 -1
- package/dist/src/client/client-error.d.ts +15 -0
- package/dist/src/client/client-error.d.ts.map +1 -0
- package/dist/src/client/client-error.js +20 -0
- package/dist/src/client/client-error.js.map +1 -0
- package/dist/src/client/client.d.ts +68 -0
- package/dist/src/client/client.d.ts.map +1 -0
- package/dist/src/client/client.js +160 -0
- package/dist/src/client/client.js.map +1 -0
- package/dist/src/client/index.d.ts +9 -0
- package/dist/src/client/index.d.ts.map +1 -0
- package/dist/src/client/index.js +9 -0
- package/dist/src/client/index.js.map +1 -0
- package/dist/src/client/message-response.d.ts +57 -0
- package/dist/src/client/message-response.d.ts.map +1 -0
- package/dist/src/client/message-response.js +70 -0
- package/dist/src/client/message-response.js.map +1 -0
- package/dist/src/client/ndjson.d.ts +17 -0
- package/dist/src/client/ndjson.d.ts.map +1 -0
- package/dist/src/client/ndjson.js +63 -0
- package/dist/src/client/ndjson.js.map +1 -0
- package/dist/src/client/open-stream.d.ts +19 -0
- package/dist/src/client/open-stream.d.ts.map +1 -0
- package/dist/src/client/open-stream.js +49 -0
- package/dist/src/client/open-stream.js.map +1 -0
- package/dist/src/client/session-utils.d.ts +30 -0
- package/dist/src/client/session-utils.d.ts.map +1 -0
- package/dist/src/client/session-utils.js +63 -0
- package/dist/src/client/session-utils.js.map +1 -0
- package/dist/src/client/session.d.ts +75 -0
- package/dist/src/client/session.d.ts.map +1 -0
- package/dist/src/client/session.js +220 -0
- package/dist/src/client/session.js.map +1 -0
- package/dist/src/client/types.d.ts +162 -0
- package/dist/src/client/types.d.ts.map +1 -0
- package/dist/src/client/types.js.map +1 -0
- package/dist/src/compiler/channel-url.d.ts +15 -0
- package/dist/src/compiler/channel-url.d.ts.map +1 -0
- package/dist/src/compiler/channel-url.js +24 -0
- package/dist/src/compiler/channel-url.js.map +1 -0
- package/dist/src/compiler/compile-agent.d.ts.map +1 -1
- package/dist/src/compiler/compile-agent.js +24 -4
- package/dist/src/compiler/compile-agent.js.map +1 -1
- package/dist/src/compiler/manifest.d.ts +338 -127
- package/dist/src/compiler/manifest.d.ts.map +1 -1
- package/dist/src/compiler/manifest.js +88 -62
- package/dist/src/compiler/manifest.js.map +1 -1
- package/dist/src/compiler/model-catalog.d.ts +7 -4
- package/dist/src/compiler/model-catalog.d.ts.map +1 -1
- package/dist/src/compiler/model-catalog.js +9 -3
- package/dist/src/compiler/model-catalog.js.map +1 -1
- package/dist/src/compiler/module-map.d.ts +11 -7
- package/dist/src/compiler/module-map.d.ts.map +1 -1
- package/dist/src/compiler/module-map.js +102 -11
- package/dist/src/compiler/module-map.js.map +1 -1
- package/dist/src/compiler/normalize-agent-config.d.ts +23 -0
- package/dist/src/compiler/normalize-agent-config.d.ts.map +1 -0
- package/dist/src/compiler/normalize-agent-config.js +146 -0
- package/dist/src/compiler/normalize-agent-config.js.map +1 -0
- package/dist/src/compiler/normalize-channel.d.ts +12 -0
- package/dist/src/compiler/normalize-channel.d.ts.map +1 -0
- package/dist/src/compiler/normalize-channel.js +40 -0
- package/dist/src/compiler/normalize-channel.js.map +1 -0
- package/dist/src/compiler/normalize-helpers.d.ts +33 -0
- package/dist/src/compiler/normalize-helpers.d.ts.map +1 -0
- package/dist/src/compiler/normalize-helpers.js +29 -0
- package/dist/src/compiler/normalize-helpers.js.map +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts.map +1 -1
- package/dist/src/compiler/normalize-manifest.js +36 -376
- package/dist/src/compiler/normalize-manifest.js.map +1 -1
- package/dist/src/compiler/normalize-prompt-layer.d.ts +8 -0
- package/dist/src/compiler/normalize-prompt-layer.d.ts.map +1 -0
- package/dist/src/compiler/normalize-prompt-layer.js +25 -0
- package/dist/src/compiler/normalize-prompt-layer.js.map +1 -0
- package/dist/src/compiler/normalize-sandbox.d.ts +20 -0
- package/dist/src/compiler/normalize-sandbox.d.ts.map +1 -0
- package/dist/src/compiler/normalize-sandbox.js +34 -0
- package/dist/src/compiler/normalize-sandbox.js.map +1 -0
- package/dist/src/compiler/normalize-schedule.d.ts +9 -0
- package/dist/src/compiler/normalize-schedule.d.ts.map +1 -0
- package/dist/src/compiler/normalize-schedule.js +26 -0
- package/dist/src/compiler/normalize-schedule.js.map +1 -0
- package/dist/src/compiler/normalize-skill.d.ts +9 -0
- package/dist/src/compiler/normalize-skill.d.ts.map +1 -0
- package/dist/src/compiler/normalize-skill.js +56 -0
- package/dist/src/compiler/normalize-skill.js.map +1 -0
- package/dist/src/compiler/normalize-subagent.d.ts +30 -0
- package/dist/src/compiler/normalize-subagent.d.ts.map +1 -0
- package/dist/src/compiler/normalize-subagent.js +74 -0
- package/dist/src/compiler/normalize-subagent.js.map +1 -0
- package/dist/src/compiler/normalize-tool.d.ts +21 -0
- package/dist/src/compiler/normalize-tool.d.ts.map +1 -0
- package/dist/src/compiler/normalize-tool.js +33 -0
- package/dist/src/compiler/normalize-tool.js.map +1 -0
- package/dist/src/compiler/runtime-api-types.d.ts +6 -1
- package/dist/src/compiler/runtime-api-types.d.ts.map +1 -1
- package/dist/src/compiler/runtime-api-types.js +10 -4
- package/dist/src/compiler/runtime-api-types.js.map +1 -1
- package/dist/src/context/accessors.d.ts +49 -0
- package/dist/src/context/accessors.d.ts.map +1 -0
- package/dist/src/context/accessors.js +86 -0
- package/dist/src/context/accessors.js.map +1 -0
- package/dist/src/context/container.d.ts +37 -0
- package/dist/src/context/container.d.ts.map +1 -0
- package/dist/src/context/container.js +45 -0
- package/dist/src/context/container.js.map +1 -0
- package/dist/src/context/key.d.ts +100 -0
- package/dist/src/context/key.d.ts.map +1 -0
- package/dist/src/context/key.js +101 -0
- package/dist/src/context/key.js.map +1 -0
- package/dist/src/context/keys.d.ts +50 -0
- package/dist/src/context/keys.d.ts.map +1 -0
- package/dist/src/context/keys.js +61 -0
- package/dist/src/context/keys.js.map +1 -0
- package/dist/src/context/node.d.ts +8 -0
- package/dist/src/context/node.d.ts.map +1 -0
- package/dist/src/context/node.js +10 -0
- package/dist/src/context/node.js.map +1 -0
- package/dist/src/context/provider.d.ts +24 -0
- package/dist/src/context/provider.d.ts.map +1 -0
- package/dist/src/context/provider.js +2 -0
- package/dist/src/context/provider.js.map +1 -0
- package/dist/src/context/providers/sandbox.d.ts +4 -0
- package/dist/src/context/providers/sandbox.d.ts.map +1 -0
- package/dist/src/context/providers/sandbox.js +31 -0
- package/dist/src/context/providers/sandbox.js.map +1 -0
- package/dist/src/context/providers/session.d.ts +4 -0
- package/dist/src/context/providers/session.d.ts.map +1 -0
- package/dist/src/context/providers/session.js +20 -0
- package/dist/src/context/providers/session.js.map +1 -0
- package/dist/src/context/providers/skill.d.ts +4 -0
- package/dist/src/context/providers/skill.d.ts.map +1 -0
- package/dist/src/context/providers/skill.js +32 -0
- package/dist/src/context/providers/skill.js.map +1 -0
- package/dist/src/context/run-step.d.ts +16 -0
- package/dist/src/context/run-step.d.ts.map +1 -0
- package/dist/src/context/run-step.js +60 -0
- package/dist/src/context/run-step.js.map +1 -0
- package/dist/src/context/serialize.d.ts +16 -0
- package/dist/src/context/serialize.d.ts.map +1 -0
- package/dist/src/context/serialize.js +34 -0
- package/dist/src/context/serialize.js.map +1 -0
- package/dist/src/context/state.d.ts +27 -0
- package/dist/src/context/state.d.ts.map +1 -0
- package/dist/src/context/state.js +53 -0
- package/dist/src/context/state.js.map +1 -0
- package/dist/src/discover/diagnostics.d.ts +14 -26
- package/dist/src/discover/diagnostics.d.ts.map +1 -1
- package/dist/src/discover/diagnostics.js +1 -4
- package/dist/src/discover/diagnostics.js.map +1 -1
- package/dist/src/discover/discover-agent.d.ts +4 -2
- package/dist/src/discover/discover-agent.d.ts.map +1 -1
- package/dist/src/discover/discover-agent.js +41 -13
- package/dist/src/discover/discover-agent.js.map +1 -1
- package/dist/src/discover/discover-subagent.d.ts.map +1 -1
- package/dist/src/discover/discover-subagent.js +8 -8
- package/dist/src/discover/discover-subagent.js.map +1 -1
- package/dist/src/discover/filesystem.d.ts +5 -5
- package/dist/src/discover/filesystem.d.ts.map +1 -1
- package/dist/src/discover/filesystem.js +23 -4
- package/dist/src/discover/filesystem.js.map +1 -1
- package/dist/src/discover/grammar.d.ts +104 -7
- package/dist/src/discover/grammar.d.ts.map +1 -1
- package/dist/src/discover/grammar.js +229 -12
- package/dist/src/discover/grammar.js.map +1 -1
- package/dist/src/discover/manifest.d.ts +83 -10
- package/dist/src/discover/manifest.d.ts.map +1 -1
- package/dist/src/discover/manifest.js +20 -9
- package/dist/src/discover/manifest.js.map +1 -1
- package/dist/src/discover/markdown.d.ts +1 -1
- package/dist/src/discover/markdown.d.ts.map +1 -1
- package/dist/src/discover/markdown.js +1 -1
- package/dist/src/discover/markdown.js.map +1 -1
- package/dist/src/discover/sandboxes.d.ts +68 -0
- package/dist/src/discover/sandboxes.d.ts.map +1 -0
- package/dist/src/discover/sandboxes.js +291 -0
- package/dist/src/discover/sandboxes.js.map +1 -0
- package/dist/src/discover/skills.d.ts +2 -1
- package/dist/src/discover/skills.d.ts.map +1 -1
- package/dist/src/discover/skills.js +9 -14
- package/dist/src/discover/skills.js.map +1 -1
- package/dist/src/evals/cli/eval.d.ts +9 -0
- package/dist/src/evals/cli/eval.d.ts.map +1 -0
- package/dist/src/evals/cli/eval.js +191 -0
- package/dist/src/evals/cli/eval.js.map +1 -0
- package/dist/src/evals/define-eval-suite.d.ts +44 -0
- package/dist/src/evals/define-eval-suite.d.ts.map +1 -0
- package/dist/src/evals/define-eval-suite.js +79 -0
- package/dist/src/evals/define-eval-suite.js.map +1 -0
- package/dist/src/evals/index.d.ts +4 -0
- package/dist/src/evals/index.d.ts.map +1 -0
- package/dist/src/evals/index.js +5 -0
- package/dist/src/evals/index.js.map +1 -0
- package/dist/src/evals/loaders/index.d.ts +23 -0
- package/dist/src/evals/loaders/index.d.ts.map +1 -0
- package/dist/src/evals/loaders/index.js +29 -0
- package/dist/src/evals/loaders/index.js.map +1 -0
- package/dist/src/evals/loaders/json.d.ts +13 -0
- package/dist/src/evals/loaders/json.d.ts.map +1 -0
- package/dist/src/evals/loaders/json.js +19 -0
- package/dist/src/evals/loaders/json.js.map +1 -0
- package/dist/src/evals/loaders/yaml.d.ts +14 -0
- package/dist/src/evals/loaders/yaml.d.ts.map +1 -0
- package/dist/src/evals/loaders/yaml.js +26 -0
- package/dist/src/evals/loaders/yaml.js.map +1 -0
- package/dist/src/evals/reporters/index.d.ts +15 -0
- package/dist/src/evals/reporters/index.d.ts.map +1 -0
- package/dist/src/evals/reporters/index.js +15 -0
- package/dist/src/evals/reporters/index.js.map +1 -0
- package/dist/src/evals/runner/artifacts.d.ts +12 -0
- package/dist/src/evals/runner/artifacts.d.ts.map +1 -0
- package/dist/src/evals/runner/artifacts.js +84 -0
- package/dist/src/evals/runner/artifacts.js.map +1 -0
- package/dist/src/evals/runner/derive-run-facts.d.ts +10 -0
- package/dist/src/evals/runner/derive-run-facts.d.ts.map +1 -0
- package/dist/src/evals/runner/derive-run-facts.js +60 -0
- package/dist/src/evals/runner/derive-run-facts.js.map +1 -0
- package/dist/src/evals/runner/discover.d.ts +20 -0
- package/dist/src/evals/runner/discover.d.ts.map +1 -0
- package/dist/src/evals/runner/discover.js +82 -0
- package/dist/src/evals/runner/discover.js.map +1 -0
- package/dist/src/evals/runner/execute-case.d.ts +23 -0
- package/dist/src/evals/runner/execute-case.d.ts.map +1 -0
- package/dist/src/evals/runner/execute-case.js +89 -0
- package/dist/src/evals/runner/execute-case.js.map +1 -0
- package/dist/src/evals/runner/execute-suite.d.ts +24 -0
- package/dist/src/evals/runner/execute-suite.d.ts.map +1 -0
- package/dist/src/evals/runner/execute-suite.js +126 -0
- package/dist/src/evals/runner/execute-suite.js.map +1 -0
- package/dist/src/evals/runner/reporters/braintrust.d.ts +32 -0
- package/dist/src/evals/runner/reporters/braintrust.d.ts.map +1 -0
- package/dist/src/evals/runner/reporters/braintrust.js +164 -0
- package/dist/src/evals/runner/reporters/braintrust.js.map +1 -0
- package/dist/src/evals/runner/reporters/console.d.ts +16 -0
- package/dist/src/evals/runner/reporters/console.d.ts.map +1 -0
- package/dist/src/evals/runner/reporters/console.js +116 -0
- package/dist/src/evals/runner/reporters/console.js.map +1 -0
- package/dist/src/evals/runner/reporters/types.d.ts +21 -0
- package/dist/src/evals/runner/reporters/types.d.ts.map +1 -0
- package/dist/src/evals/runner/reporters/types.js.map +1 -0
- package/dist/src/evals/runner/resolve-git-metadata.d.ts +17 -0
- package/dist/src/evals/runner/resolve-git-metadata.d.ts.map +1 -0
- package/dist/src/evals/runner/resolve-git-metadata.js +33 -0
- package/dist/src/evals/runner/resolve-git-metadata.js.map +1 -0
- package/dist/src/evals/scorers/json.d.ts +11 -0
- package/dist/src/evals/scorers/json.d.ts.map +1 -0
- package/dist/src/evals/scorers/json.js +32 -0
- package/dist/src/evals/scorers/json.js.map +1 -0
- package/dist/src/evals/scorers/run.d.ts +19 -0
- package/dist/src/evals/scorers/run.d.ts.map +1 -0
- package/dist/src/evals/scorers/run.js +53 -0
- package/dist/src/evals/scorers/run.js.map +1 -0
- package/dist/src/evals/scorers/sql.d.ts +10 -0
- package/dist/src/evals/scorers/sql.d.ts.map +1 -0
- package/dist/src/evals/scorers/sql.js +35 -0
- package/dist/src/evals/scorers/sql.js.map +1 -0
- package/dist/src/evals/scorers/text.d.ts +12 -0
- package/dist/src/evals/scorers/text.d.ts.map +1 -0
- package/dist/src/evals/scorers/text.js +25 -0
- package/dist/src/evals/scorers/text.js.map +1 -0
- package/dist/src/evals/scores/index.d.ts +53 -0
- package/dist/src/evals/scores/index.d.ts.map +1 -0
- package/dist/src/evals/scores/index.js +53 -0
- package/dist/src/evals/scores/index.js.map +1 -0
- package/dist/src/evals/types.d.ts +191 -0
- package/dist/src/evals/types.d.ts.map +1 -0
- package/dist/src/evals/types.js.map +1 -0
- package/dist/src/execution/continuous-entry.d.ts +49 -0
- package/dist/src/execution/continuous-entry.d.ts.map +1 -0
- package/dist/src/execution/continuous-entry.js +63 -0
- package/dist/src/execution/continuous-entry.js.map +1 -0
- package/dist/src/execution/continuous-runtime.d.ts +22 -0
- package/dist/src/execution/continuous-runtime.d.ts.map +1 -0
- package/dist/src/execution/continuous-runtime.js +91 -0
- package/dist/src/execution/continuous-runtime.js.map +1 -0
- package/dist/src/execution/node-step.d.ts +37 -0
- package/dist/src/execution/node-step.d.ts.map +1 -0
- package/dist/src/execution/node-step.js +131 -0
- package/dist/src/execution/node-step.js.map +1 -0
- package/dist/src/execution/runtime-context.d.ts +19 -0
- package/dist/src/execution/runtime-context.d.ts.map +1 -0
- package/dist/src/execution/runtime-context.js +31 -0
- package/dist/src/execution/runtime-context.js.map +1 -0
- package/dist/src/execution/sandboxes/bash-tool.d.ts +18 -0
- package/dist/src/execution/sandboxes/bash-tool.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/bash-tool.js +19 -0
- package/dist/src/execution/sandboxes/bash-tool.js.map +1 -0
- package/dist/src/execution/sandboxes/bindings/local.d.ts +10 -0
- package/dist/src/execution/sandboxes/bindings/local.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/bindings/local.js +293 -0
- package/dist/src/execution/sandboxes/bindings/local.js.map +1 -0
- package/dist/src/execution/sandboxes/bindings/vercel.d.ts +33 -0
- package/dist/src/execution/sandboxes/bindings/vercel.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/bindings/vercel.js +213 -0
- package/dist/src/execution/sandboxes/bindings/vercel.js.map +1 -0
- package/dist/src/execution/sandboxes/ensure.d.ts +40 -0
- package/dist/src/execution/sandboxes/ensure.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/ensure.js +130 -0
- package/dist/src/execution/sandboxes/ensure.js.map +1 -0
- package/dist/src/execution/sandboxes/glob-tool.d.ts +27 -0
- package/dist/src/execution/sandboxes/glob-tool.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/glob-tool.js +65 -0
- package/dist/src/execution/sandboxes/glob-tool.js.map +1 -0
- package/dist/src/execution/sandboxes/grep-tool.d.ts +31 -0
- package/dist/src/execution/sandboxes/grep-tool.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/grep-tool.js +121 -0
- package/dist/src/execution/sandboxes/grep-tool.js.map +1 -0
- package/dist/src/execution/sandboxes/prewarm.d.ts +46 -0
- package/dist/src/execution/sandboxes/prewarm.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/prewarm.js +201 -0
- package/dist/src/execution/sandboxes/prewarm.js.map +1 -0
- package/dist/src/execution/sandboxes/read-file-tool.d.ts +29 -0
- package/dist/src/execution/sandboxes/read-file-tool.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/read-file-tool.js +126 -0
- package/dist/src/execution/sandboxes/read-file-tool.js.map +1 -0
- package/dist/src/execution/sandboxes/require-sandbox.d.ts +15 -0
- package/dist/src/execution/sandboxes/require-sandbox.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/require-sandbox.js +32 -0
- package/dist/src/execution/sandboxes/require-sandbox.js.map +1 -0
- package/dist/src/execution/sandboxes/session.d.ts +33 -0
- package/dist/src/execution/sandboxes/session.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/session.js +104 -0
- package/dist/src/execution/sandboxes/session.js.map +1 -0
- package/dist/src/execution/sandboxes/shell-quote.d.ts +13 -0
- package/dist/src/execution/sandboxes/shell-quote.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/shell-quote.js +15 -0
- package/dist/src/execution/sandboxes/shell-quote.js.map +1 -0
- package/dist/src/execution/sandboxes/types.d.ts +34 -0
- package/dist/src/execution/sandboxes/types.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/types.js.map +1 -0
- package/dist/src/execution/sandboxes/write-file-tool.d.ts +24 -0
- package/dist/src/execution/sandboxes/write-file-tool.d.ts.map +1 -0
- package/dist/src/execution/sandboxes/write-file-tool.js +67 -0
- package/dist/src/execution/sandboxes/write-file-tool.js.map +1 -0
- package/dist/src/execution/session.d.ts +67 -0
- package/dist/src/execution/session.d.ts.map +1 -0
- package/dist/src/execution/session.js +93 -0
- package/dist/src/execution/session.js.map +1 -0
- package/dist/src/execution/skills/access.d.ts +14 -0
- package/dist/src/execution/skills/access.d.ts.map +1 -0
- package/dist/src/execution/skills/access.js +59 -0
- package/dist/src/execution/skills/access.js.map +1 -0
- package/dist/src/execution/skills/handle.d.ts +10 -0
- package/dist/src/execution/skills/handle.d.ts.map +1 -0
- package/dist/src/execution/skills/handle.js +63 -0
- package/dist/src/execution/skills/handle.js.map +1 -0
- package/dist/src/execution/skills/instructions.d.ts +14 -0
- package/dist/src/execution/skills/instructions.d.ts.map +1 -0
- package/dist/src/execution/skills/instructions.js +34 -0
- package/dist/src/execution/skills/instructions.js.map +1 -0
- package/dist/src/execution/skills/seed.d.ts +49 -0
- package/dist/src/execution/skills/seed.d.ts.map +1 -0
- package/dist/src/execution/skills/seed.js +143 -0
- package/dist/src/execution/skills/seed.js.map +1 -0
- package/dist/src/execution/skills/types.d.ts +90 -0
- package/dist/src/execution/skills/types.d.ts.map +1 -0
- package/dist/src/execution/skills/types.js +2 -0
- package/dist/src/execution/skills/types.js.map +1 -0
- package/dist/src/execution/subagent-invocation.d.ts +16 -0
- package/dist/src/execution/subagent-invocation.d.ts.map +1 -0
- package/dist/src/execution/subagent-invocation.js +22 -0
- package/dist/src/execution/subagent-invocation.js.map +1 -0
- package/dist/src/execution/subagent-tool.d.ts +33 -0
- package/dist/src/execution/subagent-tool.d.ts.map +1 -0
- package/dist/src/execution/subagent-tool.js +91 -0
- package/dist/src/execution/subagent-tool.js.map +1 -0
- package/dist/src/execution/task-mode.d.ts +10 -0
- package/dist/src/execution/task-mode.d.ts.map +1 -0
- package/dist/src/execution/task-mode.js +13 -0
- package/dist/src/execution/task-mode.js.map +1 -0
- package/dist/src/execution/tool-compaction.d.ts +25 -0
- package/dist/src/execution/tool-compaction.d.ts.map +1 -0
- package/dist/src/execution/tool-compaction.js +70 -0
- package/dist/src/execution/tool-compaction.js.map +1 -0
- package/dist/src/execution/types.d.ts +14 -0
- package/dist/src/execution/types.d.ts.map +1 -0
- package/dist/src/execution/types.js +2 -0
- package/dist/src/execution/types.js.map +1 -0
- package/dist/src/execution/web-fetch/html.d.ts +16 -0
- package/dist/src/execution/web-fetch/html.d.ts.map +1 -0
- package/dist/src/execution/web-fetch/html.js +61 -0
- package/dist/src/execution/web-fetch/html.js.map +1 -0
- package/dist/src/execution/web-fetch/tool.d.ts +19 -0
- package/dist/src/execution/web-fetch/tool.d.ts.map +1 -0
- package/dist/src/execution/web-fetch/tool.js +85 -0
- package/dist/src/execution/web-fetch/tool.js.map +1 -0
- package/dist/src/execution/workflow-entry.d.ts +35 -0
- package/dist/src/execution/workflow-entry.d.ts.map +1 -0
- package/dist/src/execution/workflow-entry.js +100 -0
- package/dist/src/execution/workflow-entry.js.map +1 -0
- package/dist/src/execution/workflow-runtime.d.ts +28 -0
- package/dist/src/execution/workflow-runtime.d.ts.map +1 -0
- package/dist/src/execution/workflow-runtime.js +99 -0
- package/dist/src/execution/workflow-runtime.js.map +1 -0
- package/dist/src/execution/workflow-steps.d.ts +26 -0
- package/dist/src/execution/workflow-steps.d.ts.map +1 -0
- package/dist/src/execution/workflow-steps.js +85 -0
- package/dist/src/execution/workflow-steps.js.map +1 -0
- package/dist/src/harness/compaction.d.ts +40 -0
- package/dist/src/harness/compaction.d.ts.map +1 -0
- package/dist/src/harness/compaction.js +174 -0
- package/dist/src/harness/compaction.js.map +1 -0
- package/dist/src/harness/emission.d.ts +58 -0
- package/dist/src/harness/emission.d.ts.map +1 -0
- package/dist/src/harness/emission.js +157 -0
- package/dist/src/harness/emission.js.map +1 -0
- package/dist/src/harness/input-extraction.d.ts +18 -0
- package/dist/src/harness/input-extraction.d.ts.map +1 -0
- package/dist/src/harness/input-extraction.js +56 -0
- package/dist/src/harness/input-extraction.js.map +1 -0
- package/dist/src/harness/input-requests.d.ts +94 -0
- package/dist/src/harness/input-requests.d.ts.map +1 -0
- package/dist/src/harness/input-requests.js +352 -0
- package/dist/src/harness/input-requests.js.map +1 -0
- package/dist/src/harness/messages.d.ts +19 -0
- package/dist/src/harness/messages.d.ts.map +1 -0
- package/dist/src/harness/messages.js +82 -0
- package/dist/src/harness/messages.js.map +1 -0
- package/dist/src/harness/prompt-cache.d.ts +96 -0
- package/dist/src/harness/prompt-cache.d.ts.map +1 -0
- package/dist/src/harness/prompt-cache.js +150 -0
- package/dist/src/harness/prompt-cache.js.map +1 -0
- package/dist/src/harness/provider-tools.d.ts +26 -0
- package/dist/src/harness/provider-tools.d.ts.map +1 -0
- package/dist/src/harness/provider-tools.js +53 -0
- package/dist/src/harness/provider-tools.js.map +1 -0
- package/dist/src/harness/tool-loop.d.ts +15 -0
- package/dist/src/harness/tool-loop.d.ts.map +1 -0
- package/dist/src/harness/tool-loop.js +236 -0
- package/dist/src/harness/tool-loop.js.map +1 -0
- package/dist/src/harness/tool-schema.d.ts +13 -0
- package/dist/src/harness/tool-schema.d.ts.map +1 -0
- package/dist/src/harness/tool-schema.js +33 -0
- package/dist/src/harness/tool-schema.js.map +1 -0
- package/dist/src/harness/tools.d.ts +38 -0
- package/dist/src/harness/tools.d.ts.map +1 -0
- package/dist/src/harness/tools.js +78 -0
- package/dist/src/harness/tools.js.map +1 -0
- package/dist/src/harness/types.d.ts +157 -0
- package/dist/src/harness/types.d.ts.map +1 -0
- package/dist/src/harness/types.js +2 -0
- package/dist/src/harness/types.js.map +1 -0
- package/dist/src/internal/application/compiled-artifacts.d.ts.map +1 -1
- package/dist/src/internal/application/compiled-artifacts.js +49 -2
- package/dist/src/internal/application/compiled-artifacts.js.map +1 -1
- package/dist/src/internal/application/package.d.ts +4 -1
- package/dist/src/internal/application/package.d.ts.map +1 -1
- package/dist/src/internal/application/package.js +26 -3
- package/dist/src/internal/application/package.js.map +1 -1
- package/dist/src/internal/application/paths.d.ts +11 -4
- package/dist/src/internal/application/paths.d.ts.map +1 -1
- package/dist/src/internal/application/paths.js +22 -10
- package/dist/src/internal/application/paths.js.map +1 -1
- package/dist/src/internal/authored-definition/channel.d.ts +12 -0
- package/dist/src/internal/authored-definition/channel.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/channel.js +34 -0
- package/dist/src/internal/authored-definition/channel.js.map +1 -0
- package/dist/src/internal/authored-definition/core.d.ts +7 -7
- package/dist/src/internal/authored-definition/core.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/core.js +40 -35
- package/dist/src/internal/authored-definition/core.js.map +1 -1
- package/dist/src/internal/authored-definition/sandbox.d.ts +12 -5
- package/dist/src/internal/authored-definition/sandbox.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/sandbox.js +23 -5
- package/dist/src/internal/authored-definition/sandbox.js.map +1 -1
- package/dist/src/internal/authored-definition/schema-backed.d.ts +27 -5
- package/dist/src/internal/authored-definition/schema-backed.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/schema-backed.js +49 -9
- package/dist/src/internal/authored-definition/schema-backed.js.map +1 -1
- package/dist/src/internal/authored-module.d.ts.map +1 -1
- package/dist/src/internal/authored-module.js +65 -3
- package/dist/src/internal/authored-module.js.map +1 -1
- package/dist/src/internal/message/builder.d.ts +1 -1
- package/dist/src/internal/message/builder.d.ts.map +1 -1
- package/dist/src/internal/message/builder.js +14 -6
- package/dist/src/internal/message/builder.js.map +1 -1
- package/dist/src/internal/message/health.js +2 -2
- package/dist/src/internal/message/health.js.map +1 -1
- package/dist/src/internal/message/vercel-workflow-output.d.ts +11 -0
- package/dist/src/internal/message/vercel-workflow-output.d.ts.map +1 -1
- package/dist/src/internal/message/vercel-workflow-output.js +91 -1
- package/dist/src/internal/message/vercel-workflow-output.js.map +1 -1
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts +35 -0
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/channel-url-matcher.js +57 -0
- package/dist/src/internal/nitro/host/channel-url-matcher.js.map +1 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts +24 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js +39 -0
- package/dist/src/internal/nitro/host/compiled-sandbox-backend-prune-plugin.js.map +1 -0
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts +2 -2
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/configure-message-routes.js +72 -14
- 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 +28 -27
- 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 +19 -0
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js +456 -0
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.js.map +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.js +2 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -1
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts +6 -7
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js +7 -118
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js.map +1 -1
- package/dist/src/internal/nitro/host/start-development-server.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/start-development-server.js +92 -17
- package/dist/src/internal/nitro/host/start-development-server.js.map +1 -1
- package/dist/src/internal/nitro/host/types.d.ts +1 -0
- package/dist/src/internal/nitro/host/types.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +23 -0
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/channel-dispatch.js +68 -0
- package/dist/src/internal/nitro/routes/channel-dispatch.js.map +1 -0
- package/dist/src/internal/nitro/routes/health.d.ts +7 -1
- package/dist/src/internal/nitro/routes/health.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/health.js +7 -10
- package/dist/src/internal/nitro/routes/health.js.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js +8 -20
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.js +7 -3
- package/dist/src/internal/nitro/routes/runtime-artifacts.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +37 -0
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/runtime-stack.js +39 -0
- package/dist/src/internal/nitro/routes/runtime-stack.js.map +1 -0
- package/dist/src/internal/nitro/routes/schedule-task.d.ts +14 -0
- package/dist/src/internal/nitro/routes/schedule-task.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/schedule-task.js +36 -0
- package/dist/src/internal/nitro/routes/schedule-task.js.map +1 -0
- package/dist/src/internal/nitro/runtime-configuration.d.ts +1 -0
- package/dist/src/internal/nitro/runtime-configuration.d.ts.map +1 -1
- package/dist/src/internal/nitro/runtime-configuration.js.map +1 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts +1 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts.map +1 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js +4 -3
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js.map +1 -1
- package/dist/src/internal/runtime-registry.d.ts +77 -0
- package/dist/src/internal/runtime-registry.d.ts.map +1 -0
- package/dist/src/internal/runtime-registry.js +94 -0
- package/dist/src/internal/runtime-registry.js.map +1 -0
- package/dist/src/package-name.d.ts +9 -0
- package/dist/src/package-name.d.ts.map +1 -0
- package/dist/src/package-name.js +9 -0
- package/dist/src/package-name.js.map +1 -0
- package/dist/src/protocol/message.d.ts +165 -71
- package/dist/src/protocol/message.d.ts.map +1 -1
- package/dist/src/protocol/message.js +54 -64
- package/dist/src/protocol/message.js.map +1 -1
- package/dist/src/protocol/routes.d.ts +9 -0
- package/dist/src/protocol/routes.d.ts.map +1 -1
- package/dist/src/protocol/routes.js +11 -0
- package/dist/src/protocol/routes.js.map +1 -1
- package/dist/src/public/channels/auth.d.ts +380 -0
- package/dist/src/public/channels/auth.d.ts.map +1 -0
- package/dist/src/public/channels/auth.js +476 -0
- package/dist/src/public/channels/auth.js.map +1 -0
- package/dist/src/public/channels/http.d.ts +76 -0
- package/dist/src/public/channels/http.d.ts.map +1 -0
- package/dist/src/public/channels/http.js +275 -0
- package/dist/src/public/channels/http.js.map +1 -0
- package/dist/src/public/channels/index.d.ts +30 -0
- package/dist/src/public/channels/index.d.ts.map +1 -0
- package/dist/src/public/channels/index.js +29 -0
- package/dist/src/public/channels/index.js.map +1 -0
- package/dist/src/public/channels/slack/index.d.ts +151 -0
- package/dist/src/public/channels/slack/index.d.ts.map +1 -0
- package/dist/src/public/channels/slack/index.js +238 -0
- package/dist/src/public/channels/slack/index.js.map +1 -0
- package/dist/src/public/channels/slack/lowlevel.d.ts +15 -0
- package/dist/src/public/channels/slack/lowlevel.d.ts.map +1 -0
- package/dist/src/public/channels/slack/lowlevel.js +14 -0
- package/dist/src/public/channels/slack/lowlevel.js.map +1 -0
- package/dist/src/public/definitions/agent.d.ts +37 -80
- 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 +198 -0
- package/dist/src/public/definitions/channel.d.ts.map +1 -0
- package/dist/src/public/definitions/channel.js +71 -0
- package/dist/src/public/definitions/channel.js.map +1 -0
- package/dist/src/public/definitions/sandbox-backend.d.ts +126 -0
- package/dist/src/public/definitions/sandbox-backend.d.ts.map +1 -0
- package/dist/src/public/definitions/sandbox-backend.js +2 -0
- package/dist/src/public/definitions/sandbox-backend.js.map +1 -0
- package/dist/src/public/definitions/sandbox.d.ts +86 -1
- 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/schedule.d.ts +1 -1
- package/dist/src/public/definitions/schedule.d.ts.map +1 -1
- package/dist/src/public/definitions/skill.d.ts +7 -3
- 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 +10 -3
- 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/system.d.ts +1 -1
- package/dist/src/public/definitions/system.d.ts.map +1 -1
- package/dist/src/public/definitions/tool.d.ts +111 -2
- package/dist/src/public/definitions/tool.d.ts.map +1 -1
- package/dist/src/public/definitions/tool.js +36 -0
- package/dist/src/public/definitions/tool.js.map +1 -1
- package/dist/src/public/helpers/markdown.d.ts +24 -14
- package/dist/src/public/helpers/markdown.d.ts.map +1 -1
- package/dist/src/public/helpers/markdown.js +33 -56
- package/dist/src/public/helpers/markdown.js.map +1 -1
- package/dist/src/public/index.d.ts +18 -6
- package/dist/src/public/index.d.ts.map +1 -1
- package/dist/src/public/index.js +11 -5
- package/dist/src/public/index.js.map +1 -1
- package/dist/src/public/sandboxes/backends/default.d.ts +20 -0
- package/dist/src/public/sandboxes/backends/default.d.ts.map +1 -0
- package/dist/src/public/sandboxes/backends/default.js +43 -0
- package/dist/src/public/sandboxes/backends/default.js.map +1 -0
- package/dist/src/public/sandboxes/backends/local.d.ts +15 -0
- package/dist/src/public/sandboxes/backends/local.d.ts.map +1 -0
- package/dist/src/public/sandboxes/backends/local.js +17 -0
- package/dist/src/public/sandboxes/backends/local.js.map +1 -0
- package/dist/src/public/sandboxes/backends/vercel.d.ts +29 -0
- package/dist/src/public/sandboxes/backends/vercel.d.ts.map +1 -0
- package/dist/src/public/sandboxes/backends/vercel.js +30 -0
- package/dist/src/public/sandboxes/backends/vercel.js.map +1 -0
- package/dist/src/public/sandboxes/defaults.d.ts +11 -0
- package/dist/src/public/sandboxes/defaults.d.ts.map +1 -0
- package/dist/src/public/sandboxes/defaults.js +35 -0
- package/dist/src/public/sandboxes/defaults.js.map +1 -0
- package/dist/src/public/sandboxes/index.d.ts +34 -0
- package/dist/src/public/sandboxes/index.d.ts.map +1 -0
- package/dist/src/public/sandboxes/index.js +33 -0
- package/dist/src/public/sandboxes/index.js.map +1 -0
- package/dist/src/public/sandboxes/internal.d.ts +14 -0
- package/dist/src/public/sandboxes/internal.d.ts.map +1 -0
- package/dist/src/public/sandboxes/internal.js +28 -0
- package/dist/src/public/sandboxes/internal.js.map +1 -0
- package/dist/src/public/tools/approval/approval-helpers.d.ts +18 -0
- package/dist/src/public/tools/approval/approval-helpers.d.ts.map +1 -0
- package/dist/src/public/tools/approval/approval-helpers.js +23 -0
- package/dist/src/public/tools/approval/approval-helpers.js.map +1 -0
- package/dist/src/public/tools/approval/index.d.ts +24 -0
- package/dist/src/public/tools/approval/index.d.ts.map +1 -0
- package/dist/src/public/tools/approval/index.js +23 -0
- package/dist/src/public/tools/approval/index.js.map +1 -0
- package/dist/src/public/tools/defaults.d.ts +50 -0
- package/dist/src/public/tools/defaults.d.ts.map +1 -0
- package/dist/src/public/tools/defaults.js +90 -0
- package/dist/src/public/tools/defaults.js.map +1 -0
- package/dist/src/public/tools/define-bash-tool.d.ts +55 -0
- package/dist/src/public/tools/define-bash-tool.d.ts.map +1 -0
- package/dist/src/public/tools/define-bash-tool.js +48 -0
- package/dist/src/public/tools/define-bash-tool.js.map +1 -0
- package/dist/src/public/tools/define-glob-tool.d.ts +55 -0
- package/dist/src/public/tools/define-glob-tool.d.ts.map +1 -0
- package/dist/src/public/tools/define-glob-tool.js +48 -0
- package/dist/src/public/tools/define-glob-tool.js.map +1 -0
- package/dist/src/public/tools/define-grep-tool.d.ts +55 -0
- package/dist/src/public/tools/define-grep-tool.d.ts.map +1 -0
- package/dist/src/public/tools/define-grep-tool.js +48 -0
- package/dist/src/public/tools/define-grep-tool.js.map +1 -0
- package/dist/src/public/tools/define-read-file-tool.d.ts +59 -0
- package/dist/src/public/tools/define-read-file-tool.d.ts.map +1 -0
- package/dist/src/public/tools/define-read-file-tool.js +58 -0
- package/dist/src/public/tools/define-read-file-tool.js.map +1 -0
- package/dist/src/public/tools/define-write-file-tool.d.ts +53 -0
- package/dist/src/public/tools/define-write-file-tool.d.ts.map +1 -0
- package/dist/src/public/tools/define-write-file-tool.js +51 -0
- package/dist/src/public/tools/define-write-file-tool.js.map +1 -0
- package/dist/src/public/tools/index.d.ts +34 -0
- package/dist/src/public/tools/index.d.ts.map +1 -0
- package/dist/src/public/tools/index.js +33 -0
- package/dist/src/public/tools/index.js.map +1 -0
- package/dist/src/public/tools/internal.d.ts +19 -0
- package/dist/src/public/tools/internal.d.ts.map +1 -0
- package/dist/src/public/tools/internal.js +37 -0
- package/dist/src/public/tools/internal.js.map +1 -0
- package/dist/src/run-mode.d.ts +8 -0
- package/dist/src/run-mode.d.ts.map +1 -0
- package/dist/src/run-mode.js +2 -0
- package/dist/src/run-mode.js.map +1 -0
- package/dist/src/runtime/actions/types.d.ts +17 -52
- package/dist/src/runtime/actions/types.d.ts.map +1 -1
- 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.d.ts +14 -10
- package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap.js +9 -10
- 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 +50 -32
- package/dist/src/runtime/agent/mock-model-adapter.js.map +1 -1
- package/dist/src/runtime/cache-key.d.ts +10 -0
- package/dist/src/runtime/cache-key.d.ts.map +1 -0
- package/dist/src/runtime/cache-key.js +53 -0
- package/dist/src/runtime/cache-key.js.map +1 -0
- package/dist/src/runtime/framework-channels/index.d.ts +49 -0
- package/dist/src/runtime/framework-channels/index.d.ts.map +1 -0
- package/dist/src/runtime/framework-channels/index.js +89 -0
- package/dist/src/runtime/framework-channels/index.js.map +1 -0
- package/dist/src/runtime/framework-sandboxes/default.d.ts +29 -0
- package/dist/src/runtime/framework-sandboxes/default.d.ts.map +1 -0
- package/dist/src/runtime/framework-sandboxes/default.js +37 -0
- package/dist/src/runtime/framework-sandboxes/default.js.map +1 -0
- package/dist/src/runtime/framework-sandboxes/index.d.ts +2 -0
- package/dist/src/runtime/framework-sandboxes/index.d.ts.map +1 -0
- package/dist/src/runtime/framework-sandboxes/index.js +2 -0
- package/dist/src/runtime/framework-sandboxes/index.js.map +1 -0
- package/dist/src/runtime/framework-tools/ask-question.d.ts +17 -0
- package/dist/src/runtime/framework-tools/ask-question.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/ask-question.js +31 -0
- package/dist/src/runtime/framework-tools/ask-question.js.map +1 -0
- package/dist/src/runtime/framework-tools/bash.d.ts +12 -0
- package/dist/src/runtime/framework-tools/bash.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/bash.js +42 -0
- package/dist/src/runtime/framework-tools/bash.js.map +1 -0
- package/dist/src/runtime/framework-tools/file-state.d.ts +69 -0
- package/dist/src/runtime/framework-tools/file-state.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/file-state.js +79 -0
- package/dist/src/runtime/framework-tools/file-state.js.map +1 -0
- package/dist/src/runtime/framework-tools/glob.d.ts +12 -0
- package/dist/src/runtime/framework-tools/glob.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/glob.js +58 -0
- package/dist/src/runtime/framework-tools/glob.js.map +1 -0
- package/dist/src/runtime/framework-tools/grep.d.ts +12 -0
- package/dist/src/runtime/framework-tools/grep.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/grep.js +77 -0
- package/dist/src/runtime/framework-tools/grep.js.map +1 -0
- package/dist/src/runtime/framework-tools/index.d.ts +28 -0
- package/dist/src/runtime/framework-tools/index.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/index.js +63 -0
- package/dist/src/runtime/framework-tools/index.js.map +1 -0
- package/dist/src/runtime/framework-tools/read-file.d.ts +12 -0
- package/dist/src/runtime/framework-tools/read-file.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/read-file.js +66 -0
- package/dist/src/runtime/framework-tools/read-file.js.map +1 -0
- package/dist/src/runtime/framework-tools/sandbox-targeting.d.ts +56 -0
- package/dist/src/runtime/framework-tools/sandbox-targeting.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/sandbox-targeting.js +88 -0
- package/dist/src/runtime/framework-tools/sandbox-targeting.js.map +1 -0
- package/dist/src/runtime/framework-tools/skill.d.ts +26 -0
- package/dist/src/runtime/framework-tools/skill.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/skill.js +56 -0
- package/dist/src/runtime/framework-tools/skill.js.map +1 -0
- package/dist/src/runtime/framework-tools/todo.d.ts +38 -0
- package/dist/src/runtime/framework-tools/todo.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/todo.js +125 -0
- package/dist/src/runtime/framework-tools/todo.js.map +1 -0
- package/dist/src/runtime/framework-tools/web-fetch.d.ts +3 -0
- package/dist/src/runtime/framework-tools/web-fetch.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/web-fetch.js +43 -0
- package/dist/src/runtime/framework-tools/web-fetch.js.map +1 -0
- package/dist/src/runtime/framework-tools/web-search.d.ts +10 -0
- package/dist/src/runtime/framework-tools/web-search.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/web-search.js +16 -0
- package/dist/src/runtime/framework-tools/web-search.js.map +1 -0
- package/dist/src/runtime/framework-tools/write-file.d.ts +12 -0
- package/dist/src/runtime/framework-tools/write-file.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/write-file.js +50 -0
- package/dist/src/runtime/framework-tools/write-file.js.map +1 -0
- package/dist/src/runtime/governance/auth/types.d.ts +0 -41
- package/dist/src/runtime/governance/auth/types.d.ts.map +1 -1
- package/dist/src/runtime/governance/auth/types.js.map +1 -1
- package/dist/src/runtime/governance/network/ip-allow-list.d.ts +13 -5
- package/dist/src/runtime/governance/network/ip-allow-list.d.ts.map +1 -1
- package/dist/src/runtime/governance/network/ip-allow-list.js +13 -6
- package/dist/src/runtime/governance/network/ip-allow-list.js.map +1 -1
- package/dist/src/runtime/graph.d.ts +8 -3
- package/dist/src/runtime/graph.d.ts.map +1 -1
- package/dist/src/runtime/graph.js.map +1 -1
- package/dist/src/runtime/input/types.d.ts +154 -0
- package/dist/src/runtime/input/types.d.ts.map +1 -0
- package/dist/src/runtime/input/types.js +103 -0
- package/dist/src/runtime/input/types.js.map +1 -0
- package/dist/src/runtime/loaders/artifact-paths.d.ts +20 -0
- package/dist/src/runtime/loaders/artifact-paths.d.ts.map +1 -0
- package/dist/src/runtime/loaders/artifact-paths.js +28 -0
- package/dist/src/runtime/loaders/artifact-paths.js.map +1 -0
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts +15 -0
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts.map +1 -1
- package/dist/src/runtime/loaders/bundled-artifacts.js +112 -1
- package/dist/src/runtime/loaders/bundled-artifacts.js.map +1 -1
- package/dist/src/runtime/loaders/compile-metadata.d.ts +1 -1
- package/dist/src/runtime/loaders/compile-metadata.d.ts.map +1 -1
- package/dist/src/runtime/loaders/compile-metadata.js +6 -3
- package/dist/src/runtime/loaders/compile-metadata.js.map +1 -1
- package/dist/src/runtime/loaders/manifest.d.ts.map +1 -1
- package/dist/src/runtime/loaders/manifest.js +7 -5
- package/dist/src/runtime/loaders/manifest.js.map +1 -1
- package/dist/src/runtime/loaders/module-map.d.ts.map +1 -1
- package/dist/src/runtime/loaders/module-map.js +121 -4
- package/dist/src/runtime/loaders/module-map.js.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 +3 -3
- package/dist/src/runtime/prompt/compose.js.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.js +64 -19
- package/dist/src/runtime/resolve-agent-graph.js.map +1 -1
- package/dist/src/runtime/resolve-agent.d.ts +1 -12
- package/dist/src/runtime/resolve-agent.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent.js +75 -153
- package/dist/src/runtime/resolve-agent.js.map +1 -1
- package/dist/src/runtime/resolve-channel.d.ts +9 -0
- package/dist/src/runtime/resolve-channel.d.ts.map +1 -0
- package/dist/src/runtime/resolve-channel.js +38 -0
- package/dist/src/runtime/resolve-channel.js.map +1 -0
- package/dist/src/runtime/resolve-helpers.d.ts +49 -0
- package/dist/src/runtime/resolve-helpers.d.ts.map +1 -0
- package/dist/src/runtime/resolve-helpers.js +66 -0
- package/dist/src/runtime/resolve-helpers.js.map +1 -0
- package/dist/src/runtime/resolve-sandbox.d.ts +14 -0
- package/dist/src/runtime/resolve-sandbox.d.ts.map +1 -0
- package/dist/src/runtime/resolve-sandbox.js +62 -0
- package/dist/src/runtime/resolve-sandbox.js.map +1 -0
- package/dist/src/runtime/resolve-tool.d.ts +10 -0
- package/dist/src/runtime/resolve-tool.d.ts.map +1 -0
- package/dist/src/runtime/resolve-tool.js +52 -0
- package/dist/src/runtime/resolve-tool.js.map +1 -0
- package/dist/src/runtime/sandboxes/keys.d.ts +3 -4
- package/dist/src/runtime/sandboxes/keys.d.ts.map +1 -1
- package/dist/src/runtime/sandboxes/keys.js +32 -10
- package/dist/src/runtime/sandboxes/keys.js.map +1 -1
- package/dist/src/runtime/sandboxes/registry.d.ts +36 -27
- package/dist/src/runtime/sandboxes/registry.d.ts.map +1 -1
- package/dist/src/runtime/sandboxes/registry.js +41 -75
- package/dist/src/runtime/sandboxes/registry.js.map +1 -1
- package/dist/src/runtime/schedules/register.js +2 -2
- package/dist/src/runtime/schedules/register.js.map +1 -1
- package/dist/src/runtime/schedules/resolve-schedule.js +1 -1
- package/dist/src/runtime/schedules/resolve-schedule.js.map +1 -1
- package/dist/src/runtime/sessions/auth.d.ts +20 -9
- package/dist/src/runtime/sessions/auth.d.ts.map +1 -1
- package/dist/src/runtime/sessions/auth.js +5 -2
- package/dist/src/runtime/sessions/auth.js.map +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +22 -11
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.js +61 -24
- package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -1
- package/dist/src/runtime/sessions/messages.d.ts +33 -29
- package/dist/src/runtime/sessions/messages.d.ts.map +1 -1
- package/dist/src/runtime/sessions/messages.js +4 -1
- package/dist/src/runtime/sessions/messages.js.map +1 -1
- package/dist/src/runtime/sessions/turn.d.ts +2 -75
- package/dist/src/runtime/sessions/turn.d.ts.map +1 -1
- package/dist/src/runtime/skills/fragment-context.d.ts +0 -21
- package/dist/src/runtime/skills/fragment-context.d.ts.map +1 -1
- package/dist/src/runtime/skills/fragment-context.js +0 -89
- package/dist/src/runtime/skills/fragment-context.js.map +1 -1
- package/dist/src/runtime/skills/load-skill-content.d.ts +1 -8
- package/dist/src/runtime/skills/load-skill-content.d.ts.map +1 -1
- package/dist/src/runtime/skills/load-skill-content.js +1 -16
- package/dist/src/runtime/skills/load-skill-content.js.map +1 -1
- package/dist/src/runtime/skills/load-skills.d.ts +1 -1
- package/dist/src/runtime/skills/load-skills.d.ts.map +1 -1
- package/dist/src/runtime/skills/load-skills.js +3 -5
- package/dist/src/runtime/skills/load-skills.js.map +1 -1
- package/dist/src/runtime/skills/source.d.ts +25 -0
- package/dist/src/runtime/skills/source.d.ts.map +1 -0
- package/dist/src/runtime/skills/source.js +22 -0
- package/dist/src/runtime/skills/source.js.map +1 -0
- package/dist/src/runtime/skills/types.d.ts +1 -1
- package/dist/src/runtime/skills/types.d.ts.map +1 -1
- package/dist/src/runtime/subagents/registry.d.ts +0 -14
- package/dist/src/runtime/subagents/registry.d.ts.map +1 -1
- package/dist/src/runtime/subagents/registry.js +15 -53
- package/dist/src/runtime/subagents/registry.js.map +1 -1
- package/dist/src/runtime/tools/execute-tool.d.ts +6 -20
- package/dist/src/runtime/tools/execute-tool.d.ts.map +1 -1
- package/dist/src/runtime/tools/execute-tool.js +8 -31
- package/dist/src/runtime/tools/execute-tool.js.map +1 -1
- package/dist/src/runtime/tools/registry.d.ts +4 -21
- package/dist/src/runtime/tools/registry.d.ts.map +1 -1
- package/dist/src/runtime/tools/registry.js +10 -69
- package/dist/src/runtime/tools/registry.js.map +1 -1
- package/dist/src/runtime/types.d.ts +71 -52
- package/dist/src/runtime/types.d.ts.map +1 -1
- package/dist/src/runtime/workspace/seed-files.d.ts +20 -0
- package/dist/src/runtime/workspace/seed-files.d.ts.map +1 -0
- package/dist/src/runtime/workspace/seed-files.js +67 -0
- package/dist/src/runtime/workspace/seed-files.js.map +1 -0
- package/dist/src/runtime/workspace/spec.d.ts +63 -0
- package/dist/src/runtime/workspace/spec.d.ts.map +1 -0
- package/dist/src/runtime/workspace/spec.js +137 -0
- package/dist/src/runtime/workspace/spec.js.map +1 -0
- package/dist/src/runtime/workspace/types.d.ts +88 -0
- package/dist/src/runtime/workspace/types.d.ts.map +1 -0
- package/dist/src/runtime/workspace/types.js +30 -0
- package/dist/src/runtime/workspace/types.js.map +1 -0
- package/dist/src/services/dev-client/request-headers.d.ts.map +1 -1
- package/dist/src/services/dev-client/request-headers.js +30 -0
- package/dist/src/services/dev-client/request-headers.js.map +1 -1
- 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 +20 -122
- package/dist/src/services/dev-client/send-message.js.map +1 -1
- package/dist/src/services/dev-client/session.d.ts +7 -6
- package/dist/src/services/dev-client/session.d.ts.map +1 -1
- package/dist/src/services/dev-client/session.js +5 -23
- package/dist/src/services/dev-client/session.js.map +1 -1
- package/dist/src/services/dev-client/stream.d.ts +2 -2
- package/dist/src/services/dev-client/stream.d.ts.map +1 -1
- package/dist/src/services/dev-client/stream.js +6 -3
- package/dist/src/services/dev-client/stream.js.map +1 -1
- package/dist/src/services/dev-client.d.ts +16 -13
- package/dist/src/services/dev-client.d.ts.map +1 -1
- package/dist/src/services/dev-client.js +79 -26
- package/dist/src/services/dev-client.js.map +1 -1
- package/dist/src/services/inspect-application.d.ts +0 -2
- package/dist/src/services/inspect-application.d.ts.map +1 -1
- package/dist/src/services/inspect-application.js +0 -2
- package/dist/src/services/inspect-application.js.map +1 -1
- package/docs/external-agent-protocol.md +184 -0
- package/docs/internals/README.md +70 -232
- package/docs/internals/channels.md +99 -0
- package/docs/internals/compiler-and-artifacts.md +3 -7
- package/docs/internals/context.md +206 -0
- package/docs/internals/discovery.md +12 -16
- package/docs/internals/message-runtime.md +102 -343
- package/docs/public/README.md +90 -0
- package/docs/public/agent-ts.md +147 -0
- package/docs/public/auth-and-route-protection.md +132 -0
- package/docs/public/channels/README.md +93 -0
- package/docs/public/cli-build-and-debugging.md +84 -0
- package/docs/public/context-control.md +135 -0
- package/docs/public/evals.md +232 -0
- package/docs/public/getting-started.md +156 -0
- package/docs/public/human-in-the-loop.md +259 -0
- package/docs/public/project-layout.md +153 -0
- package/docs/public/runs-and-streaming.md +96 -0
- package/docs/public/sandboxes.md +339 -0
- package/docs/public/schedules.md +70 -0
- package/docs/public/session-context.md +136 -0
- package/docs/public/skills.md +166 -0
- package/docs/public/subagents.md +98 -0
- package/docs/public/tools.md +281 -0
- package/docs/public/typescript-api.md +149 -0
- package/docs/public/vercel-deployment.md +105 -0
- package/docs/public/workspace.md +118 -0
- package/package.json +101 -12
- package/dist/src/cli/dev/live-stream.d.ts +0 -2
- package/dist/src/cli/dev/live-stream.d.ts.map +0 -1
- package/dist/src/cli/dev/live-stream.js +0 -2
- package/dist/src/cli/dev/live-stream.js.map +0 -1
- package/dist/src/cli/dev/request-headers.d.ts +0 -3
- package/dist/src/cli/dev/request-headers.d.ts.map +0 -1
- package/dist/src/cli/dev/request-headers.js +0 -2
- package/dist/src/cli/dev/request-headers.js.map +0 -1
- package/dist/src/cli/dev/send-message.d.ts +0 -2
- package/dist/src/cli/dev/send-message.d.ts.map +0 -1
- package/dist/src/cli/dev/send-message.js +0 -2
- package/dist/src/cli/dev/send-message.js.map +0 -1
- package/dist/src/cli/dev/session.d.ts +0 -2
- package/dist/src/cli/dev/session.d.ts.map +0 -1
- package/dist/src/cli/dev/session.js +0 -2
- package/dist/src/cli/dev/session.js.map +0 -1
- package/dist/src/cli/dev/stream.d.ts +0 -2
- package/dist/src/cli/dev/stream.d.ts.map +0 -1
- package/dist/src/cli/dev/stream.js +0 -2
- package/dist/src/cli/dev/stream.js.map +0 -1
- package/dist/src/cli/templates/init-app/agent/tools/get-weather.ts +0 -13
- package/dist/src/compiler/context.d.ts +0 -85
- package/dist/src/compiler/context.d.ts.map +0 -1
- package/dist/src/compiler/context.js +0 -128
- package/dist/src/compiler/context.js.map +0 -1
- package/dist/src/compiler/json-schema.d.ts +0 -2
- package/dist/src/compiler/json-schema.d.ts.map +0 -1
- package/dist/src/compiler/json-schema.js +0 -2
- package/dist/src/compiler/json-schema.js.map +0 -1
- package/dist/src/compiler/workspace.d.ts +0 -58
- package/dist/src/compiler/workspace.d.ts.map +0 -1
- package/dist/src/compiler/workspace.js +0 -70
- package/dist/src/compiler/workspace.js.map +0 -1
- package/dist/src/discover/context.d.ts +0 -35
- package/dist/src/discover/context.d.ts.map +0 -1
- package/dist/src/discover/context.js +0 -88
- package/dist/src/discover/context.js.map +0 -1
- package/dist/src/discover/workspace.d.ts +0 -35
- package/dist/src/discover/workspace.d.ts.map +0 -1
- package/dist/src/discover/workspace.js +0 -61
- package/dist/src/discover/workspace.js.map +0 -1
- package/dist/src/internal/authored-definition/agent-human-in-the-loop.d.ts +0 -24
- package/dist/src/internal/authored-definition/agent-human-in-the-loop.d.ts.map +0 -1
- package/dist/src/internal/authored-definition/agent-human-in-the-loop.js +0 -33
- package/dist/src/internal/authored-definition/agent-human-in-the-loop.js.map +0 -1
- package/dist/src/internal/authored-definition/connection.d.ts +0 -93
- package/dist/src/internal/authored-definition/connection.d.ts.map +0 -1
- package/dist/src/internal/authored-definition/connection.js +0 -284
- package/dist/src/internal/authored-definition/connection.js.map +0 -1
- package/dist/src/internal/message/handler.d.ts +0 -17
- package/dist/src/internal/message/handler.d.ts.map +0 -1
- package/dist/src/internal/message/handler.js +0 -234
- package/dist/src/internal/message/handler.js.map +0 -1
- package/dist/src/internal/message/reference.d.ts +0 -24
- package/dist/src/internal/message/reference.d.ts.map +0 -1
- package/dist/src/internal/message/reference.js +0 -33
- package/dist/src/internal/message/reference.js.map +0 -1
- package/dist/src/internal/message/workflow/action-executor.d.ts +0 -27
- package/dist/src/internal/message/workflow/action-executor.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/action-executor.js +0 -180
- package/dist/src/internal/message/workflow/action-executor.js.map +0 -1
- package/dist/src/internal/message/workflow/action-step-types.d.ts +0 -11
- package/dist/src/internal/message/workflow/action-step-types.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/action-step-types.js +0 -2
- package/dist/src/internal/message/workflow/action-step-types.js.map +0 -1
- package/dist/src/internal/message/workflow/action-steps.d.ts +0 -28
- package/dist/src/internal/message/workflow/action-steps.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/action-steps.js +0 -159
- package/dist/src/internal/message/workflow/action-steps.js.map +0 -1
- package/dist/src/internal/message/workflow/compaction-step.d.ts +0 -22
- package/dist/src/internal/message/workflow/compaction-step.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/compaction-step.js +0 -128
- package/dist/src/internal/message/workflow/compaction-step.js.map +0 -1
- package/dist/src/internal/message/workflow/handle-message.d.ts +0 -22
- package/dist/src/internal/message/workflow/handle-message.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/handle-message.js +0 -198
- package/dist/src/internal/message/workflow/handle-message.js.map +0 -1
- package/dist/src/internal/message/workflow/handle-schedule.d.ts +0 -23
- package/dist/src/internal/message/workflow/handle-schedule.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/handle-schedule.js +0 -67
- package/dist/src/internal/message/workflow/handle-schedule.js.map +0 -1
- package/dist/src/internal/message/workflow/handle-subagent.d.ts +0 -7
- package/dist/src/internal/message/workflow/handle-subagent.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/handle-subagent.js +0 -167
- package/dist/src/internal/message/workflow/handle-subagent.js.map +0 -1
- package/dist/src/internal/message/workflow/human-waits.d.ts +0 -29
- package/dist/src/internal/message/workflow/human-waits.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/human-waits.js +0 -269
- package/dist/src/internal/message/workflow/human-waits.js.map +0 -1
- package/dist/src/internal/message/workflow/session.d.ts +0 -66
- package/dist/src/internal/message/workflow/session.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/session.js +0 -45
- package/dist/src/internal/message/workflow/session.js.map +0 -1
- package/dist/src/internal/message/workflow/step-diagnostics.d.ts +0 -14
- package/dist/src/internal/message/workflow/step-diagnostics.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/step-diagnostics.js +0 -79
- package/dist/src/internal/message/workflow/step-diagnostics.js.map +0 -1
- package/dist/src/internal/message/workflow/steps.d.ts +0 -7
- package/dist/src/internal/message/workflow/steps.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/steps.js +0 -4
- package/dist/src/internal/message/workflow/steps.js.map +0 -1
- package/dist/src/internal/message/workflow/stream-events.d.ts +0 -97
- package/dist/src/internal/message/workflow/stream-events.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/stream-events.js +0 -229
- package/dist/src/internal/message/workflow/stream-events.js.map +0 -1
- package/dist/src/internal/message/workflow/stream.d.ts +0 -2
- package/dist/src/internal/message/workflow/stream.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/stream.js +0 -2
- package/dist/src/internal/message/workflow/stream.js.map +0 -1
- package/dist/src/internal/message/workflow/subagent-steps.d.ts +0 -43
- package/dist/src/internal/message/workflow/subagent-steps.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/subagent-steps.js +0 -120
- package/dist/src/internal/message/workflow/subagent-steps.js.map +0 -1
- package/dist/src/internal/message/workflow/subagent.d.ts +0 -46
- package/dist/src/internal/message/workflow/subagent.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/subagent.js +0 -2
- package/dist/src/internal/message/workflow/subagent.js.map +0 -1
- package/dist/src/internal/message/workflow/turn-steps.d.ts +0 -39
- package/dist/src/internal/message/workflow/turn-steps.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/turn-steps.js +0 -204
- package/dist/src/internal/message/workflow/turn-steps.js.map +0 -1
- package/dist/src/internal/message/workflow/workspace-merge.d.ts +0 -9
- package/dist/src/internal/message/workflow/workspace-merge.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/workspace-merge.js +0 -44
- package/dist/src/internal/message/workflow/workspace-merge.js.map +0 -1
- package/dist/src/internal/message/workflow/workspace-step.d.ts +0 -11
- package/dist/src/internal/message/workflow/workspace-step.d.ts.map +0 -1
- package/dist/src/internal/message/workflow/workspace-step.js +0 -13
- package/dist/src/internal/message/workflow/workspace-step.js.map +0 -1
- package/dist/src/internal/nitro/routes/message.d.ts +0 -9
- package/dist/src/internal/nitro/routes/message.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/message.js +0 -20
- package/dist/src/internal/nitro/routes/message.js.map +0 -1
- package/dist/src/internal/nitro/routes/run-stream.d.ts +0 -9
- package/dist/src/internal/nitro/routes/run-stream.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/run-stream.js +0 -28
- package/dist/src/internal/nitro/routes/run-stream.js.map +0 -1
- package/dist/src/public/definitions/connection.d.ts +0 -117
- package/dist/src/public/definitions/connection.d.ts.map +0 -1
- package/dist/src/public/definitions/connection.js +0 -7
- package/dist/src/public/definitions/connection.js.map +0 -1
- package/dist/src/public/definitions/context.d.ts +0 -16
- package/dist/src/public/definitions/context.d.ts.map +0 -1
- package/dist/src/public/definitions/context.js +0 -8
- package/dist/src/public/definitions/context.js.map +0 -1
- package/dist/src/runtime/actions/activate-skill.d.ts +0 -19
- package/dist/src/runtime/actions/activate-skill.d.ts.map +0 -1
- package/dist/src/runtime/actions/activate-skill.js +0 -74
- package/dist/src/runtime/actions/activate-skill.js.map +0 -1
- package/dist/src/runtime/actions/execute-action.d.ts +0 -40
- package/dist/src/runtime/actions/execute-action.d.ts.map +0 -1
- package/dist/src/runtime/actions/execute-action.js +0 -46
- package/dist/src/runtime/actions/execute-action.js.map +0 -1
- package/dist/src/runtime/connections/http.d.ts +0 -11
- package/dist/src/runtime/connections/http.d.ts.map +0 -1
- package/dist/src/runtime/connections/http.js +0 -305
- package/dist/src/runtime/connections/http.js.map +0 -1
- package/dist/src/runtime/connections/mcp.d.ts +0 -12
- package/dist/src/runtime/connections/mcp.d.ts.map +0 -1
- package/dist/src/runtime/connections/mcp.js +0 -504
- package/dist/src/runtime/connections/mcp.js.map +0 -1
- package/dist/src/runtime/connections/registry.d.ts +0 -40
- package/dist/src/runtime/connections/registry.d.ts.map +0 -1
- package/dist/src/runtime/connections/registry.js +0 -224
- package/dist/src/runtime/connections/registry.js.map +0 -1
- package/dist/src/runtime/connections/service-account.d.ts +0 -13
- package/dist/src/runtime/connections/service-account.d.ts.map +0 -1
- package/dist/src/runtime/connections/service-account.js +0 -128
- package/dist/src/runtime/connections/service-account.js.map +0 -1
- package/dist/src/runtime/connections/types.d.ts +0 -35
- package/dist/src/runtime/connections/types.d.ts.map +0 -1
- package/dist/src/runtime/connections/types.js.map +0 -1
- package/dist/src/runtime/governance/auth/cache.d.ts +0 -14
- package/dist/src/runtime/governance/auth/cache.d.ts.map +0 -1
- package/dist/src/runtime/governance/auth/cache.js +0 -35
- package/dist/src/runtime/governance/auth/cache.js.map +0 -1
- package/dist/src/runtime/governance/auth/load-auth-policy.d.ts +0 -17
- package/dist/src/runtime/governance/auth/load-auth-policy.d.ts.map +0 -1
- package/dist/src/runtime/governance/auth/load-auth-policy.js +0 -257
- package/dist/src/runtime/governance/auth/load-auth-policy.js.map +0 -1
- package/dist/src/runtime/governance/auth/route-auth.d.ts +0 -22
- package/dist/src/runtime/governance/auth/route-auth.d.ts.map +0 -1
- package/dist/src/runtime/governance/auth/route-auth.js +0 -238
- package/dist/src/runtime/governance/auth/route-auth.js.map +0 -1
- package/dist/src/runtime/harness/contracts.d.ts +0 -173
- package/dist/src/runtime/harness/contracts.d.ts.map +0 -1
- package/dist/src/runtime/harness/contracts.js +0 -121
- package/dist/src/runtime/harness/contracts.js.map +0 -1
- package/dist/src/runtime/harness/hosts/json-protocol.d.ts +0 -50
- package/dist/src/runtime/harness/hosts/json-protocol.d.ts.map +0 -1
- package/dist/src/runtime/harness/hosts/json-protocol.js +0 -42
- package/dist/src/runtime/harness/hosts/json-protocol.js.map +0 -1
- package/dist/src/runtime/harness/hosts/tool-loop.d.ts +0 -8
- package/dist/src/runtime/harness/hosts/tool-loop.d.ts.map +0 -1
- package/dist/src/runtime/harness/hosts/tool-loop.js +0 -17
- package/dist/src/runtime/harness/hosts/tool-loop.js.map +0 -1
- package/dist/src/runtime/harness/hosts/types.d.ts +0 -14
- package/dist/src/runtime/harness/hosts/types.d.ts.map +0 -1
- package/dist/src/runtime/harness/hosts/types.js.map +0 -1
- package/dist/src/runtime/harness/run-turn.d.ts +0 -114
- package/dist/src/runtime/harness/run-turn.d.ts.map +0 -1
- package/dist/src/runtime/harness/run-turn.js +0 -113
- package/dist/src/runtime/harness/run-turn.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/create-harness.d.ts +0 -37
- package/dist/src/runtime/harness/tool-loop/create-harness.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/create-harness.js +0 -301
- package/dist/src/runtime/harness/tool-loop/create-harness.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts +0 -12
- package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/action-results.js +0 -68
- package/dist/src/runtime/harness/tool-loop/internal/action-results.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/compaction.d.ts +0 -63
- package/dist/src/runtime/harness/tool-loop/internal/compaction.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/compaction.js +0 -129
- package/dist/src/runtime/harness/tool-loop/internal/compaction.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts +0 -16
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js +0 -115
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts +0 -5
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.js +0 -5
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts +0 -13
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js +0 -190
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts +0 -12
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js +0 -66
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts +0 -31
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js +0 -86
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/state.d.ts +0 -55
- package/dist/src/runtime/harness/tool-loop/internal/state.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/state.js +0 -74
- package/dist/src/runtime/harness/tool-loop/internal/state.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts +0 -36
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.js +0 -70
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.js.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts +0 -102
- package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts.map +0 -1
- package/dist/src/runtime/harness/tool-loop/internal/transcript.js +0 -119
- package/dist/src/runtime/harness/tool-loop/internal/transcript.js.map +0 -1
- package/dist/src/runtime/harness/types.d.ts +0 -36
- package/dist/src/runtime/harness/types.d.ts.map +0 -1
- package/dist/src/runtime/harness/types.js.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/local.d.ts +0 -9
- package/dist/src/runtime/harness/workspace/bindings/local.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/local.js +0 -248
- package/dist/src/runtime/harness/workspace/bindings/local.js.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/types.d.ts +0 -40
- package/dist/src/runtime/harness/workspace/bindings/types.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/types.js.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/vercel.d.ts +0 -11
- package/dist/src/runtime/harness/workspace/bindings/vercel.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/bindings/vercel.js +0 -294
- package/dist/src/runtime/harness/workspace/bindings/vercel.js.map +0 -1
- package/dist/src/runtime/harness/workspace/ensure.d.ts +0 -36
- package/dist/src/runtime/harness/workspace/ensure.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/ensure.js +0 -292
- package/dist/src/runtime/harness/workspace/ensure.js.map +0 -1
- package/dist/src/runtime/harness/workspace/keys.d.ts +0 -30
- package/dist/src/runtime/harness/workspace/keys.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/keys.js +0 -65
- package/dist/src/runtime/harness/workspace/keys.js.map +0 -1
- package/dist/src/runtime/harness/workspace/sandbox.d.ts +0 -19
- package/dist/src/runtime/harness/workspace/sandbox.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/sandbox.js +0 -86
- package/dist/src/runtime/harness/workspace/sandbox.js.map +0 -1
- package/dist/src/runtime/harness/workspace/seed-files.d.ts +0 -20
- package/dist/src/runtime/harness/workspace/seed-files.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/seed-files.js +0 -67
- package/dist/src/runtime/harness/workspace/seed-files.js.map +0 -1
- package/dist/src/runtime/harness/workspace/spec.d.ts +0 -40
- package/dist/src/runtime/harness/workspace/spec.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/spec.js +0 -126
- package/dist/src/runtime/harness/workspace/spec.js.map +0 -1
- package/dist/src/runtime/harness/workspace/state.d.ts +0 -27
- package/dist/src/runtime/harness/workspace/state.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/state.js +0 -160
- package/dist/src/runtime/harness/workspace/state.js.map +0 -1
- package/dist/src/runtime/harness/workspace/types.d.ts +0 -187
- package/dist/src/runtime/harness/workspace/types.d.ts.map +0 -1
- package/dist/src/runtime/harness/workspace/types.js +0 -42
- package/dist/src/runtime/harness/workspace/types.js.map +0 -1
- package/dist/src/runtime/human-in-the-loop/config.d.ts +0 -24
- package/dist/src/runtime/human-in-the-loop/config.d.ts.map +0 -1
- package/dist/src/runtime/human-in-the-loop/config.js +0 -25
- package/dist/src/runtime/human-in-the-loop/config.js.map +0 -1
- package/dist/src/runtime/human-in-the-loop/policy.d.ts +0 -42
- package/dist/src/runtime/human-in-the-loop/policy.d.ts.map +0 -1
- package/dist/src/runtime/human-in-the-loop/policy.js +0 -56
- package/dist/src/runtime/human-in-the-loop/policy.js.map +0 -1
- package/dist/src/runtime/human-in-the-loop/turn-context.d.ts +0 -18
- package/dist/src/runtime/human-in-the-loop/turn-context.d.ts.map +0 -1
- package/dist/src/runtime/human-in-the-loop/turn-context.js +0 -62
- package/dist/src/runtime/human-in-the-loop/turn-context.js.map +0 -1
- package/dist/src/runtime/human-in-the-loop/types.d.ts +0 -195
- package/dist/src/runtime/human-in-the-loop/types.d.ts.map +0 -1
- package/dist/src/runtime/human-in-the-loop/types.js +0 -133
- package/dist/src/runtime/human-in-the-loop/types.js.map +0 -1
- package/dist/src/runtime/human-in-the-loop/wait-id.d.ts +0 -8
- package/dist/src/runtime/human-in-the-loop/wait-id.d.ts.map +0 -1
- package/dist/src/runtime/human-in-the-loop/wait-id.js +0 -7
- package/dist/src/runtime/human-in-the-loop/wait-id.js.map +0 -1
- package/dist/src/runtime/loaders/context.d.ts +0 -36
- package/dist/src/runtime/loaders/context.d.ts.map +0 -1
- package/dist/src/runtime/loaders/context.js +0 -116
- package/dist/src/runtime/loaders/context.js.map +0 -1
- package/dist/src/runtime/loaders/resolved-agent.d.ts +0 -28
- package/dist/src/runtime/loaders/resolved-agent.d.ts.map +0 -1
- package/dist/src/runtime/loaders/resolved-agent.js +0 -31
- package/dist/src/runtime/loaders/resolved-agent.js.map +0 -1
- package/dist/src/runtime/loaders/workspace.d.ts +0 -37
- package/dist/src/runtime/loaders/workspace.d.ts.map +0 -1
- package/dist/src/runtime/loaders/workspace.js +0 -104
- package/dist/src/runtime/loaders/workspace.js.map +0 -1
- package/dist/src/runtime/sandboxes/bindings/local.d.ts +0 -8
- package/dist/src/runtime/sandboxes/bindings/local.d.ts.map +0 -1
- package/dist/src/runtime/sandboxes/bindings/local.js +0 -209
- package/dist/src/runtime/sandboxes/bindings/local.js.map +0 -1
- package/dist/src/runtime/sandboxes/bindings/vercel.d.ts +0 -11
- package/dist/src/runtime/sandboxes/bindings/vercel.d.ts.map +0 -1
- package/dist/src/runtime/sandboxes/bindings/vercel.js +0 -147
- package/dist/src/runtime/sandboxes/bindings/vercel.js.map +0 -1
- package/dist/src/runtime/sandboxes/ensure.d.ts +0 -49
- package/dist/src/runtime/sandboxes/ensure.d.ts.map +0 -1
- package/dist/src/runtime/sandboxes/ensure.js +0 -385
- package/dist/src/runtime/sandboxes/ensure.js.map +0 -1
- package/dist/src/runtime/sandboxes/tool-name.d.ts +0 -6
- package/dist/src/runtime/sandboxes/tool-name.d.ts.map +0 -1
- package/dist/src/runtime/sandboxes/tool-name.js +0 -15
- package/dist/src/runtime/sandboxes/tool-name.js.map +0 -1
- package/dist/src/runtime/sandboxes/types.d.ts +0 -146
- package/dist/src/runtime/sandboxes/types.d.ts.map +0 -1
- package/dist/src/runtime/sandboxes/types.js.map +0 -1
- package/dist/src/runtime/session-context.d.ts +0 -117
- package/dist/src/runtime/session-context.d.ts.map +0 -1
- package/dist/src/runtime/session-context.js +0 -178
- package/dist/src/runtime/session-context.js.map +0 -1
- package/dist/src/runtime/sessions/compaction.d.ts +0 -35
- package/dist/src/runtime/sessions/compaction.d.ts.map +0 -1
- package/dist/src/runtime/sessions/compaction.js +0 -75
- package/dist/src/runtime/sessions/compaction.js.map +0 -1
- package/dist/src/runtime/sessions/prepare-turn.d.ts +0 -61
- package/dist/src/runtime/sessions/prepare-turn.d.ts.map +0 -1
- package/dist/src/runtime/sessions/prepare-turn.js +0 -92
- package/dist/src/runtime/sessions/prepare-turn.js.map +0 -1
- package/dist/src/runtime/sessions/run-session-engine.d.ts +0 -44
- package/dist/src/runtime/sessions/run-session-engine.d.ts.map +0 -1
- package/dist/src/runtime/sessions/run-session-engine.js +0 -244
- package/dist/src/runtime/sessions/run-session-engine.js.map +0 -1
- package/dist/src/runtime/sessions/run-session-state.d.ts +0 -55
- package/dist/src/runtime/sessions/run-session-state.d.ts.map +0 -1
- package/dist/src/runtime/sessions/run-session-state.js +0 -163
- package/dist/src/runtime/sessions/run-session-state.js.map +0 -1
- package/dist/src/runtime/sessions/run-session.d.ts +0 -232
- package/dist/src/runtime/sessions/run-session.d.ts.map +0 -1
- package/dist/src/runtime/sessions/run-session.js +0 -411
- package/dist/src/runtime/sessions/run-session.js.map +0 -1
- package/dist/src/runtime/sessions/types.d.ts +0 -119
- package/dist/src/runtime/sessions/types.d.ts.map +0 -1
- package/dist/src/runtime/sessions/types.js +0 -28
- package/dist/src/runtime/sessions/types.js.map +0 -1
- package/dist/src/runtime/subagents/execute-subagent.d.ts +0 -23
- package/dist/src/runtime/subagents/execute-subagent.d.ts.map +0 -1
- package/dist/src/runtime/subagents/execute-subagent.js +0 -26
- package/dist/src/runtime/subagents/execute-subagent.js.map +0 -1
- package/dist/src/runtime/subagents/invocation.d.ts +0 -11
- package/dist/src/runtime/subagents/invocation.d.ts.map +0 -1
- package/dist/src/runtime/subagents/invocation.js +0 -16
- package/dist/src/runtime/subagents/invocation.js.map +0 -1
- package/docs/internals/connections.md +0 -220
- package/docs/internals/harness-sidecar.md +0 -378
- package/docs/internals/sandboxes.md +0 -440
- package/docs/internals/turn-preparation-and-session-state.md +0 -445
- package/docs/internals/workspace.md +0 -155
- /package/dist/src/{runtime/connections → channel}/types.js +0 -0
- /package/dist/src/{runtime/harness/hosts → client}/types.js +0 -0
- /package/dist/src/{runtime/harness → evals/runner/reporters}/types.js +0 -0
- /package/dist/src/{runtime/harness/workspace/bindings → evals}/types.js +0 -0
- /package/dist/src/{runtime → execution}/sandboxes/types.js +0 -0
package/README.md
CHANGED
|
@@ -1,596 +1,131 @@
|
|
|
1
1
|
# Ash
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ash is a filesystem-first framework for durable backend agents on Vercel.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
You author an agent as a directory on disk. The directory is the contract:
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
7
|
+
- `system.md` and `system/` define always-on instructions
|
|
8
|
+
- `skills/` define optional procedures
|
|
9
|
+
- `tools/` define typed executable integrations
|
|
10
|
+
- `sandboxes/` define isolated command environments
|
|
11
|
+
- `channels/` define message ingress and delivery
|
|
12
|
+
- `subagents/` define specialist child agents
|
|
13
|
+
- `schedules/` define recurring jobs
|
|
14
|
+
- `lib/` holds shared authored code
|
|
15
|
+
- `agent.ts` holds additive runtime config such as model, metadata, build, compaction, and workspace settings
|
|
16
|
+
|
|
17
|
+
The framework package is `experimental-ash`. The CLI binary is `ash`.
|
|
18
|
+
|
|
19
|
+
## What Ash Prioritizes
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
- Markdown-first authoring for instructions and procedures
|
|
22
|
+
- TypeScript where typed runtime behavior matters
|
|
23
|
+
- Durable message runs and follow-up turns
|
|
24
|
+
- Inspectable compiled artifacts under `.ash/`
|
|
25
|
+
- Shared workspace state plus isolated authored sandboxes
|
|
26
|
+
- A stable HTTP protocol with explicit `continuationToken` and `runId` contracts
|
|
27
|
+
- A runtime model that keeps channels, harnesses, and workflow execution separate
|
|
16
28
|
|
|
17
|
-
|
|
29
|
+
## Current Mental Model
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
Ash’s internal split is:
|
|
20
32
|
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- `lib/` is the canonical place for shared authored source code imported by tools and other module-backed files.
|
|
25
|
-
- `connections/` declare named downstream dependencies with runtime-owned auth, policy, and optional MCP tool lowering.
|
|
26
|
-
- `sandboxes/` define named backend-managed bash-style environments with lifecycle hooks.
|
|
27
|
-
- `tools/` turn capabilities into typed executable integrations.
|
|
28
|
-
- `schedules/` let the same agent run recurring jobs.
|
|
29
|
-
- `subagents/` extend the model toward specialist delegation.
|
|
33
|
+
- the channel normalizes inbound transport, applies auth and delivery policy, and owns `continuationToken`
|
|
34
|
+
- the harness does one unit of AI work and returns `{ session, next }`
|
|
35
|
+
- the runtime persists state, follows `next`, streams events, and owns workflow primitives
|
|
30
36
|
|
|
31
|
-
|
|
37
|
+
That split is why the public HTTP protocol separates:
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
- `continuationToken` for the next user message
|
|
40
|
+
- `runId` for streaming and inspection
|
|
34
41
|
|
|
35
|
-
|
|
42
|
+
## Example Layout
|
|
36
43
|
|
|
37
44
|
```text
|
|
38
|
-
|
|
45
|
+
my-agent/
|
|
39
46
|
├── package.json
|
|
47
|
+
├── tsconfig.json
|
|
40
48
|
└── agent/
|
|
41
49
|
├── agent.ts
|
|
42
50
|
├── system.md
|
|
43
51
|
├── system/
|
|
44
|
-
│ ├── forecast-guidelines.md
|
|
45
|
-
│ └── my-location.md
|
|
46
|
-
├── lib/
|
|
47
|
-
│ └── weather/
|
|
48
|
-
│ └── client.ts
|
|
49
|
-
├── sandboxes/
|
|
50
|
-
│ └── repo-shell.ts
|
|
51
52
|
├── skills/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
```md
|
|
60
|
-
You are a weather-focused assistant. Be concise, accurate, and explicit about when you are using the local weather tool.
|
|
53
|
+
├── tools/
|
|
54
|
+
├── sandboxes/
|
|
55
|
+
├── channels/
|
|
56
|
+
├── subagents/
|
|
57
|
+
├── schedules/
|
|
58
|
+
└── lib/
|
|
61
59
|
```
|
|
62
60
|
|
|
63
|
-
|
|
61
|
+
## Tiny Example
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
The default user location is Brooklyn, New York, unless the user specifies a different city.
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
`agent/skills/get-weather.md`
|
|
63
|
+
`agent/system.md`
|
|
70
64
|
|
|
71
65
|
```md
|
|
72
|
-
|
|
73
|
-
description: Use the weather tool before answering forecast or temperature questions.
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
When the user asks about weather, temperature, or forecast conditions, call the `get_weather` tool before answering.
|
|
66
|
+
You are a weather-focused assistant. Be concise, accurate, and explicit when you use a tool.
|
|
77
67
|
```
|
|
78
68
|
|
|
79
|
-
`agent/tools/
|
|
69
|
+
`agent/tools/get_weather.ts`
|
|
80
70
|
|
|
81
71
|
```ts
|
|
82
|
-
import {
|
|
83
|
-
import { defineTool } from "ash";
|
|
72
|
+
import { defineTool } from "experimental-ash/tools";
|
|
84
73
|
import { z } from "zod";
|
|
85
74
|
|
|
86
|
-
const weatherClient = createWeatherClient();
|
|
87
|
-
|
|
88
75
|
export default defineTool({
|
|
89
|
-
name: "get_weather",
|
|
90
76
|
description: "Get the current weather for a city.",
|
|
91
77
|
inputSchema: z.object({
|
|
92
78
|
city: z.string(),
|
|
93
79
|
}),
|
|
94
80
|
async execute(input) {
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
`agent/sandboxes/repo-shell.ts`
|
|
101
|
-
|
|
102
|
-
```ts
|
|
103
|
-
import { defineSandbox } from "ash";
|
|
104
|
-
|
|
105
|
-
export default defineSandbox({
|
|
106
|
-
description: "Use this isolated repo shell for command-line maintenance tasks.",
|
|
107
|
-
async bootstrap({ sandbox }) {
|
|
108
|
-
await sandbox.runCommand("mkdir -p repo");
|
|
109
|
-
},
|
|
110
|
-
async onSession({ sandbox }) {
|
|
111
|
-
await sandbox.runCommand("touch .session-ready");
|
|
81
|
+
return {
|
|
82
|
+
city: input.city,
|
|
83
|
+
condition: "Sunny",
|
|
84
|
+
temperatureF: 72,
|
|
85
|
+
};
|
|
112
86
|
},
|
|
113
87
|
});
|
|
114
88
|
```
|
|
115
89
|
|
|
116
|
-
`agent/lib/weather/client.ts`
|
|
117
|
-
|
|
118
|
-
```ts
|
|
119
|
-
export function createWeatherClient() {
|
|
120
|
-
return {
|
|
121
|
-
async getForecast(city: string) {
|
|
122
|
-
return {
|
|
123
|
-
city,
|
|
124
|
-
temperatureF: 72,
|
|
125
|
-
condition: "Sunny",
|
|
126
|
-
summary: `Sunny in ${city} with a light breeze.`,
|
|
127
|
-
};
|
|
128
|
-
},
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
```
|
|
132
|
-
|
|
133
90
|
`agent/agent.ts`
|
|
134
91
|
|
|
135
92
|
```ts
|
|
136
|
-
import { defineAgent } from "ash";
|
|
137
|
-
import { openai } from "@ai-sdk/openai";
|
|
93
|
+
import { defineAgent } from "experimental-ash";
|
|
138
94
|
|
|
139
95
|
export default defineAgent({
|
|
140
|
-
model: openai
|
|
96
|
+
model: "openai/gpt-5.4-mini",
|
|
97
|
+
name: "weather-agent",
|
|
141
98
|
});
|
|
142
99
|
```
|
|
143
100
|
|
|
144
|
-
`defineAgent` also accepts provider model ids such as `"openai/gpt-5.4-mini"` when you prefer the gateway-style string form.
|
|
145
|
-
|
|
146
|
-
That is the point of Ash. The parts that should be prose stay as prose. The parts that should be code stay as code.
|
|
147
|
-
|
|
148
|
-
From those files, Ash will:
|
|
149
|
-
|
|
150
|
-
- discover and validate the authored agent surface
|
|
151
|
-
- lower markdown into the same typed public definitions used by code
|
|
152
|
-
- compile inspectable artifacts into `.ash/`
|
|
153
|
-
- compile `system.md` plus ordered `system/` layers into the base prompt
|
|
154
|
-
- seed `skills/` into the default runtime workspace root
|
|
155
|
-
- when present, materialize named authored connections and optionally lower allowed MCP tools into namespaced model-visible tools
|
|
156
|
-
- provision named authored sandboxes as isolated bash-style tool surfaces
|
|
157
|
-
- expose a stable message endpoint
|
|
158
|
-
- execute message requests as durable conversation runs and schedules/subagents as durable task runs
|
|
159
|
-
- stream structured lifecycle events while the run is happening
|
|
160
|
-
|
|
161
|
-
The experience is intentionally simple at the surface, but it does real runtime work underneath.
|
|
162
|
-
|
|
163
|
-
## What You Get Out Of The Box
|
|
164
|
-
|
|
165
|
-
- A pure-markdown agent is valid. You only need TypeScript when you want dynamic behavior.
|
|
166
|
-
- Markdown and TypeScript compile to the same underlying model instead of splitting the framework into two competing APIs.
|
|
167
|
-
- Skills are discoverable capabilities, and runtime skill loading is framework-owned through `activate_skill`.
|
|
168
|
-
- Authored sandboxes create named bash-style execution environments with template and per-session lifecycle hooks.
|
|
169
|
-
- Tools are strongly typed and schema-validated, but do not force the rest of the agent into code.
|
|
170
|
-
- Authored connections let Ash own downstream auth, policy, and optional MCP tool lowering instead of hiding them inside app-local clients.
|
|
171
|
-
- Sessions are durable across turns, with runtime-owned state carried forward by the workflow layer.
|
|
172
|
-
- Authored runtime code can read the active durable session with `getSession()`, including caller auth and parent lineage.
|
|
173
|
-
- Authored runtime code can resolve a named downstream handle with `await getConnection(...)`.
|
|
174
|
-
- Authored `skills/` files seed the default runtime workspace root.
|
|
175
|
-
- Schedules compile into runtime-owned scheduled executions.
|
|
176
|
-
- Optional route auth and IP allow lists protect Ash-owned `health`, `message`, and `stream` routes.
|
|
177
|
-
- Compiled output stays inspectable, which makes debugging and deployment behavior easier to reason about.
|
|
178
|
-
|
|
179
|
-
## Sandbox Environments
|
|
180
|
-
|
|
181
|
-
Ash now supports authored `sandboxes/` for cases where the model should get a command environment,
|
|
182
|
-
but a typed JSON tool is the wrong shape.
|
|
183
|
-
|
|
184
|
-
Important rules:
|
|
185
|
-
|
|
186
|
-
- each `sandboxes/*.ts` file keeps its internal sandbox name from the file path, but the
|
|
187
|
-
model-visible tool name is lowered to `lower_snake_case` with a `_sandbox` suffix
|
|
188
|
-
- the same `sandboxes/` slot is supported on the root agent and inside local subagent packages
|
|
189
|
-
- sandbox definitions export lifecycle hooks, not an explicit `name`
|
|
190
|
-
- `bootstrap()` prepares reusable template state
|
|
191
|
-
- `onSession()` runs once per durable Ash session for that sandbox
|
|
192
|
-
- the default backend is `vercel` on Vercel and `local` everywhere else
|
|
193
|
-
|
|
194
|
-
Vercel-specific behavior:
|
|
195
|
-
|
|
196
|
-
- when `ash build` runs inside a hosted Vercel build and both `VERCEL` and
|
|
197
|
-
`VERCEL_DEPLOYMENT_ID` are present, Ash now prewarms authored Vercel sandbox templates during
|
|
198
|
-
build
|
|
199
|
-
- that build-time prewarm runs `bootstrap()` for reusable template state only
|
|
200
|
-
- `onSession()` still runs later, inside the runtime turn path, once per durable Ash session
|
|
201
|
-
- if that hosted Vercel build-time prewarm fails, the build now fails too
|
|
202
|
-
- runtime still falls back to lazy template creation only when build-time prewarm was not attempted
|
|
203
|
-
in the first place
|
|
204
|
-
|
|
205
|
-
This is intentionally different from the default workspace:
|
|
206
|
-
|
|
207
|
-
- the workspace is one shared `bash` tool for the run
|
|
208
|
-
- sandboxes are additional isolated named tools with their own backend-managed state
|
|
209
|
-
|
|
210
101
|
## Quick Start
|
|
211
102
|
|
|
212
|
-
### Prerequisites
|
|
213
|
-
|
|
214
|
-
- Node `24.x`
|
|
215
|
-
- `pnpm`
|
|
216
|
-
- A Vercel account (for deploy step)
|
|
217
|
-
|
|
218
|
-
### Create and run a new agent
|
|
219
|
-
|
|
220
103
|
```bash
|
|
221
|
-
|
|
222
|
-
npx experimental-ash@latest init my-agent
|
|
104
|
+
pnpm dlx experimental-ash@latest init my-agent
|
|
223
105
|
cd my-agent
|
|
224
106
|
pnpm install
|
|
225
|
-
|
|
226
|
-
# 2) Start local dev (REPL is enabled by default)
|
|
227
107
|
pnpm dev
|
|
228
108
|
```
|
|
229
109
|
|
|
230
|
-
|
|
231
|
-
runtime with the interactive REPL.
|
|
232
|
-
|
|
233
|
-
### Run a remote check against a deployed agent
|
|
234
|
-
|
|
235
|
-
```bash
|
|
236
|
-
# 3) Deploy to Vercel
|
|
237
|
-
npx vercel deploy
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
Copy the deployment URL from Vercel output (for example `https://my-agent-abc123.vercel.app`).
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
# 4) Point your local REPL at the deployed URL
|
|
244
|
-
pnpm dev https://my-agent-abc123.vercel.app
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
That command keeps your local REPL but sends messages to the deployed server.
|
|
248
|
-
|
|
249
|
-
Use these if you want to inspect what Ash is doing:
|
|
250
|
-
|
|
251
|
-
- `ash info` shows resolved authoring details for the current project.
|
|
252
|
-
- `ash build` compiles `.ash/` artifacts and host output.
|
|
253
|
-
- `ash dev --url <deployment-url>` is the same as `pnpm dev <deployment-url>`.
|
|
254
|
-
- `ash dev --run <run-id>` resumes a waiting run from its id.
|
|
255
|
-
|
|
256
|
-
If your Vercel preview is protected, set any required local auth env vars before step 4 (for example `VERCEL_AUTOMATION_BYPASS_SECRET`).
|
|
257
|
-
|
|
258
|
-
## Talk To The Agent
|
|
259
|
-
|
|
260
|
-
Ash exposes one default message route:
|
|
261
|
-
|
|
262
|
-
```text
|
|
263
|
-
POST /.well-known/ash/v1/message
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
Start a run:
|
|
267
|
-
|
|
268
|
-
```bash
|
|
269
|
-
curl -X POST http://127.0.0.1:3000/.well-known/ash/v1/message \
|
|
270
|
-
-H 'content-type: application/json' \
|
|
271
|
-
-d '{"message":"What is the weather in Brooklyn?"}'
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
The response returns a `runId`. Stream the run with:
|
|
275
|
-
|
|
276
|
-
```bash
|
|
277
|
-
curl http://127.0.0.1:3000/.well-known/ash/v1/runs/<runId>/stream
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
The stream is newline-delimited JSON and emits runtime lifecycle events such as:
|
|
110
|
+
Useful commands:
|
|
281
111
|
|
|
282
|
-
- `
|
|
283
|
-
- `
|
|
284
|
-
- `
|
|
285
|
-
- `actions.requested`
|
|
286
|
-
- `subagent.called`
|
|
287
|
-
- `action.result`
|
|
288
|
-
- `message.completed`
|
|
289
|
-
- `turn.completed`
|
|
290
|
-
- `session.waiting`
|
|
291
|
-
- `run.failed`
|
|
292
|
-
- `run.completed`
|
|
112
|
+
- `ash info` shows discovery results and compiled artifacts
|
|
113
|
+
- `ash build` compiles `.ash/` and builds the host output
|
|
114
|
+
- `ash dev` starts the local runtime and REPL
|
|
293
115
|
|
|
294
|
-
|
|
116
|
+
## Public Docs
|
|
295
117
|
|
|
296
|
-
|
|
297
|
-
the child `runId` and `workflowId`. Clients can attach to that child run through the same
|
|
298
|
-
`GET /.well-known/ash/v1/runs/:runId/stream` route, and the child `run.started` event includes invocation
|
|
299
|
-
metadata that points back to the parent call.
|
|
300
|
-
|
|
301
|
-
## Protect Ash Routes
|
|
302
|
-
|
|
303
|
-
Ash can protect its own HTTP surfaces from `agent.ts`:
|
|
304
|
-
|
|
305
|
-
```ts
|
|
306
|
-
import { defineAgent } from "ash";
|
|
307
|
-
|
|
308
|
-
export default defineAgent({
|
|
309
|
-
model: "openai/gpt-5.4-mini",
|
|
310
|
-
network: {
|
|
311
|
-
ipAllowList: ["127.0.0.1", "10.0.0.0/8"],
|
|
312
|
-
},
|
|
313
|
-
auth: {
|
|
314
|
-
strategies: [
|
|
315
|
-
{
|
|
316
|
-
kind: "http-basic",
|
|
317
|
-
username: "ops",
|
|
318
|
-
password: process.env.ASH_BASIC_PASSWORD,
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
kind: "jwt-hmac",
|
|
322
|
-
issuer: "https://internal.example",
|
|
323
|
-
audiences: ["weather-agent"],
|
|
324
|
-
subjects: ["worker:*"],
|
|
325
|
-
algorithm: "HS256",
|
|
326
|
-
secret: process.env.ASH_HMAC_SECRET,
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
},
|
|
330
|
-
});
|
|
331
|
-
```
|
|
118
|
+
Start here:
|
|
332
119
|
|
|
333
|
-
|
|
120
|
+
1. [`docs/public/README.md`](docs/public/README.md)
|
|
121
|
+
2. [`docs/public/getting-started.md`](docs/public/getting-started.md)
|
|
122
|
+
3. [`docs/public/project-layout.md`](docs/public/project-layout.md)
|
|
123
|
+
4. [`docs/public/agent-ts.md`](docs/public/agent-ts.md)
|
|
124
|
+
5. [`docs/public/typescript-api.md`](docs/public/typescript-api.md)
|
|
334
125
|
|
|
335
|
-
|
|
336
|
-
- `jwt-hmac`
|
|
337
|
-
- `jwt-ecdsa`
|
|
338
|
-
- `oidc`
|
|
126
|
+
## Repo Guide
|
|
339
127
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
-
|
|
343
|
-
- If only `network` is configured, Ash enforces the IP allow list but still treats the request as unauthenticated.
|
|
344
|
-
- If `auth` is configured, the protected routes require `Authorization`. `http-basic` uses `Basic ...`. Token-backed strategies use `Bearer ...`.
|
|
345
|
-
- Ash does not enforce a second per-run ownership layer after route auth. Any caller that passes route auth may start, resume, or stream any run for that agent.
|
|
346
|
-
- Scheduled `schedules/` runs do not come from HTTP at all. They always execute with a framework-owned runtime principal so authored code still sees a caller in `getSession().auth`.
|
|
347
|
-
|
|
348
|
-
Quick examples:
|
|
349
|
-
|
|
350
|
-
```bash
|
|
351
|
-
curl -u ops:top-secret http://127.0.0.1:3000/.well-known/ash/v1/health
|
|
352
|
-
|
|
353
|
-
curl -X POST http://127.0.0.1:3000/.well-known/ash/v1/message \
|
|
354
|
-
-H 'authorization: Basic b3BzOnRvcC1zZWNyZXQ=' \
|
|
355
|
-
-H 'content-type: application/json' \
|
|
356
|
-
-d '{"message":"Hello"}'
|
|
357
|
-
```
|
|
358
|
-
|
|
359
|
-
## Authoring Surface
|
|
360
|
-
|
|
361
|
-
Ash supports both a nested `agent/` layout and a flat project-root layout. The nested layout is the recommended default.
|
|
362
|
-
|
|
363
|
-
| Surface | Purpose | Typical Format |
|
|
364
|
-
| --- | --- | --- |
|
|
365
|
-
| `system` | Base system prompt and behavior | `system.md`, `system.ts` |
|
|
366
|
-
| `system/` | Additive always-on prompt layers | markdown or modules |
|
|
367
|
-
| `agent.ts` | Additive configuration such as model selection and metadata | `agent.ts` |
|
|
368
|
-
| `skills/` | Reusable capability packs and procedures | flat markdown, modules, or packaged skills |
|
|
369
|
-
| `lib/` | Package-local helper modules imported by authored entrypoints | TypeScript or JavaScript modules |
|
|
370
|
-
| `connections/` | Named downstream dependencies with runtime-owned auth, policy, and optional MCP tool lowering | TypeScript or JavaScript modules |
|
|
371
|
-
| `sandboxes/` | Named isolated bash-style environments with lifecycle hooks | TypeScript or JavaScript modules |
|
|
372
|
-
| `tools/` | Executable integrations | TypeScript or JavaScript modules |
|
|
373
|
-
| `schedules/` | Recurring jobs such as digests, syncs, and maintenance | markdown or modules |
|
|
374
|
-
| `subagents/` | Specialist local subagents | subagent packages |
|
|
375
|
-
|
|
376
|
-
The design rule behind all of this is straightforward: filesystem authoring and programmatic authoring should compile to the same internal agent model.
|
|
377
|
-
|
|
378
|
-
Each local subagent package can also define its own package-local `lib/`, `tools/`, `sandboxes/`,
|
|
379
|
-
and nested `subagents/` tree. `schedules/` remain root-only.
|
|
380
|
-
|
|
381
|
-
When the default harness workspace is created, shipped authored files appear at the workspace root:
|
|
382
|
-
|
|
383
|
-
- `skills/**/*` -> `skills/**/*`
|
|
384
|
-
|
|
385
|
-
Authored `lib/**/*` modules are not mounted into the harness workspace. They stay package-local
|
|
386
|
-
implementation code that entrypoint modules import through normal ESM resolution.
|
|
387
|
-
|
|
388
|
-
Authored sandboxes are also not mounted into the shared workspace. They are provisioned as separate
|
|
389
|
-
named execution environments and exposed as their own tools.
|
|
390
|
-
|
|
391
|
-
Those files are not injected wholesale into the always-on prompt. The base prompt only gets a short
|
|
392
|
-
workspace-awareness section that points the model at the relevant root entries, and deeper
|
|
393
|
-
inspection happens through the runtime workspace tools.
|
|
394
|
-
|
|
395
|
-
## TypeScript Without Losing The Plot
|
|
396
|
-
|
|
397
|
-
Ash is not trying to avoid code. It is trying to make code earn its place.
|
|
398
|
-
|
|
399
|
-
The framework exports typed public definitions such as `defineAgent`, `defineSystem`, `defineSkill`, `defineConnection`, `defineSandbox`, `defineTool`, `defineSchedule`, and `defineSubagent`. That gives you a clean path from markdown-first authoring into more dynamic behavior without abandoning the original mental model.
|
|
400
|
-
|
|
401
|
-
In practice, that means:
|
|
402
|
-
|
|
403
|
-
- use markdown for instruction layers, reusable procedures, and scheduled task bodies
|
|
404
|
-
- use TypeScript for `lib/`, connections, sandboxes, tools, model configuration, dynamic authored modules, and advanced composition
|
|
405
|
-
- keep the authored surface understandable even as runtime behavior becomes more capable
|
|
406
|
-
|
|
407
|
-
## Runtime Session Context
|
|
408
|
-
|
|
409
|
-
Authored runtime functions can read the active durable Ash session with `getSession()`.
|
|
410
|
-
|
|
411
|
-
```ts
|
|
412
|
-
import { defineTool, getSession } from "ash";
|
|
413
|
-
import { z } from "zod";
|
|
414
|
-
|
|
415
|
-
export default defineTool({
|
|
416
|
-
name: "get_weather",
|
|
417
|
-
description: "Get the current weather for a city.",
|
|
418
|
-
inputSchema: z.object({
|
|
419
|
-
city: z.string(),
|
|
420
|
-
}),
|
|
421
|
-
async execute(input) {
|
|
422
|
-
const session = getSession();
|
|
423
|
-
|
|
424
|
-
return {
|
|
425
|
-
city: input.city,
|
|
426
|
-
currentCallerId: session.auth.current?.principalId,
|
|
427
|
-
initiatorCallerId: session.auth.initiator?.principalId,
|
|
428
|
-
runId: session.runId,
|
|
429
|
-
sessionId: session.sessionId,
|
|
430
|
-
turnId: session.turn.id,
|
|
431
|
-
parentRunId: session.parent?.runId,
|
|
432
|
-
};
|
|
433
|
-
},
|
|
434
|
-
});
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
Today the public `Session` shape includes:
|
|
438
|
-
|
|
439
|
-
```ts
|
|
440
|
-
interface SessionTurn {
|
|
441
|
-
id: string;
|
|
442
|
-
sequence: number;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
interface SessionAuthContext {
|
|
446
|
-
attributes: Readonly<Record<string, string | readonly string[]>>;
|
|
447
|
-
authenticator: "http-basic" | "jwt-hmac" | "jwt-ecdsa" | "oidc" | "schedule";
|
|
448
|
-
issuer?: string;
|
|
449
|
-
principalId: string;
|
|
450
|
-
principalType: "service" | "user" | "runtime" | "unknown";
|
|
451
|
-
subject?: string;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
interface Session {
|
|
455
|
-
auth: {
|
|
456
|
-
current: SessionAuthContext | null;
|
|
457
|
-
initiator: SessionAuthContext | null;
|
|
458
|
-
};
|
|
459
|
-
sessionId: string;
|
|
460
|
-
runId: string;
|
|
461
|
-
turn: SessionTurn;
|
|
462
|
-
parent?: {
|
|
463
|
-
runId: string;
|
|
464
|
-
sessionId: string;
|
|
465
|
-
turn: SessionTurn;
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
Notes:
|
|
471
|
-
|
|
472
|
-
- `auth.current` is the caller for the active inbound turn.
|
|
473
|
-
- `auth.initiator` is the caller that started the durable session.
|
|
474
|
-
- For unprotected agents, both auth fields are `null`.
|
|
475
|
-
- For authenticated `next-message` turns, `auth.current` may change while `auth.initiator` stays stable.
|
|
476
|
-
- For top-level schedule runs, both auth fields point at a framework-owned `schedule` principal.
|
|
477
|
-
- `runId` and `sessionId` identify the current durable execution.
|
|
478
|
-
- `turn` identifies the current authored turn fragment and is always present.
|
|
479
|
-
- `parent` is present only when the current execution is a child subagent run.
|
|
480
|
-
- `parent.turn` identifies the delegating parent turn when `parent` is present.
|
|
481
|
-
- `getSession()` is backed by async local storage and only works inside authored runtime execution such as tools and other Ash-invoked function bodies.
|
|
482
|
-
- Calling `getSession()` during top-level module evaluation throws because no authored runtime session is active yet.
|
|
483
|
-
|
|
484
|
-
## Runtime Connections
|
|
485
|
-
|
|
486
|
-
Authored connections live under `connections/*.ts` and let Ash own downstream auth, retry and timeout policy, and optional MCP tool lowering.
|
|
487
|
-
|
|
488
|
-
`agent/connections/snowflake.ts`
|
|
489
|
-
|
|
490
|
-
```ts
|
|
491
|
-
import { defineConnection } from "ash";
|
|
492
|
-
|
|
493
|
-
export default defineConnection({
|
|
494
|
-
kind: "mcp",
|
|
495
|
-
transport: {
|
|
496
|
-
type: "streamable-http",
|
|
497
|
-
url: process.env.SNOWFLAKE_MCP_URL,
|
|
498
|
-
},
|
|
499
|
-
auth: {
|
|
500
|
-
kind: "bearer",
|
|
501
|
-
token: process.env.SNOWFLAKE_MCP_TOKEN,
|
|
502
|
-
},
|
|
503
|
-
policy: {
|
|
504
|
-
timeoutMs: 30_000,
|
|
505
|
-
retryAttempts: 1,
|
|
506
|
-
},
|
|
507
|
-
tools: {
|
|
508
|
-
mode: "allow",
|
|
509
|
-
allow: ["query", "explore"],
|
|
510
|
-
namespace: "snowflake",
|
|
511
|
-
},
|
|
512
|
-
});
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
Authored runtime code can then bind the live handle lazily with `await getConnection(name)`:
|
|
516
|
-
|
|
517
|
-
```ts
|
|
518
|
-
import { defineTool, getConnection } from "ash";
|
|
519
|
-
import { z } from "zod";
|
|
520
|
-
|
|
521
|
-
export default defineTool({
|
|
522
|
-
name: "execute_sql",
|
|
523
|
-
description: "Execute a read-only Snowflake query.",
|
|
524
|
-
inputSchema: z.object({
|
|
525
|
-
sql: z.string(),
|
|
526
|
-
}),
|
|
527
|
-
async execute(input) {
|
|
528
|
-
const snowflake = await getConnection("snowflake");
|
|
529
|
-
|
|
530
|
-
if (snowflake.kind !== "mcp") {
|
|
531
|
-
throw new Error('Expected connection "snowflake" to be an MCP connection.');
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
return await snowflake.callTool("query", {
|
|
535
|
-
sql: input.sql,
|
|
536
|
-
});
|
|
537
|
-
},
|
|
538
|
-
});
|
|
539
|
-
```
|
|
540
|
-
|
|
541
|
-
Current boundary:
|
|
542
|
-
|
|
543
|
-
- `connections/` is a root-agent slot today.
|
|
544
|
-
- MCP over streamable HTTP is implemented end to end, including optional namespaced tool lowering such as `snowflake.query`.
|
|
545
|
-
- HTTP connections are implemented end to end through `await getConnection(...).request(...)`.
|
|
546
|
-
- HTTP auth currently supports service-owned `none`, `api-key`, `basic`, `bearer`, and `service-account` flows.
|
|
547
|
-
- Current `service-account` auth uses Google's OAuth 2 service-account token flow, which fits Google APIs such as Sheets.
|
|
548
|
-
- `service-account` auth for MCP and `user-passthrough` remain later-phase work.
|
|
549
|
-
|
|
550
|
-
## Current Scope
|
|
551
|
-
|
|
552
|
-
The current implementation is already useful, but it is intentionally opinionated about what is finished and what is still maturing.
|
|
553
|
-
|
|
554
|
-
- Discovery, compilation, prompt layering, tools, skills, schedules, durable message runs, and stream events are implemented today.
|
|
555
|
-
- Authored connections are part of discovery, compilation, runtime resolution, async-local authored execution, MCP tool lowering, and HTTP request execution today.
|
|
556
|
-
- Authored sandboxes are part of discovery, compilation, runtime provisioning, and harness injection today.
|
|
557
|
-
- Local subagents are part of the authored surface, compiler output, and runtime delegation flow.
|
|
558
|
-
- Each local subagent call runs as a separate child workflow with its own durable stream.
|
|
559
|
-
- Local and Vercel sandbox backends are implemented today. Docker is intentionally deferred.
|
|
560
|
-
|
|
561
|
-
That boundary is important because Ash is optimizing for correctness and a coherent long-term model, not for piling on loosely connected features.
|
|
562
|
-
|
|
563
|
-
## Framework Internals
|
|
564
|
-
|
|
565
|
-
If you are evaluating Ash as a framework, the internal architecture is intentionally split into clear phases:
|
|
566
|
-
|
|
567
|
-
1. Discovery walks the filesystem and emits a manifest plus diagnostics without executing authored modules.
|
|
568
|
-
2. The compiler writes framework-owned artifacts under `.ash/`.
|
|
569
|
-
3. Runtime loaders hydrate compiled inputs into runtime-owned models.
|
|
570
|
-
4. Turn preparation rebuilds prompt layers, history, skills, sandboxes, tools, and runtime state for the next step.
|
|
571
|
-
5. The harness executes a model turn with pause/resume around runtime actions and runtime-owned sandbox/workspace handles.
|
|
572
|
-
6. The durable workflow orchestrates conversation and task runs and streams run events.
|
|
573
|
-
|
|
574
|
-
That separation is a large part of why the top-level authoring model can stay simple without the runtime becoming opaque.
|
|
575
|
-
|
|
576
|
-
If you want to go deeper:
|
|
577
|
-
|
|
578
|
-
- Start with [apps/weather-agent](./apps/weather-agent) for the smallest complete example.
|
|
579
|
-
- Read [packages/ash/src/public/index.ts](./packages/ash/src/public/index.ts) for the public framework surface.
|
|
580
|
-
- Read [docs/internals/README.md](./docs/internals/README.md) for the implementation architecture.
|
|
581
|
-
- Explore [packages/ash](./packages/ash) for the framework and CLI itself.
|
|
582
|
-
|
|
583
|
-
## Repository Layout
|
|
584
|
-
|
|
585
|
-
```text
|
|
586
|
-
.
|
|
587
|
-
├── apps/
|
|
588
|
-
│ └── weather-agent/ # minimal end-to-end example
|
|
589
|
-
├── docs/
|
|
590
|
-
│ └── internals/ # framework architecture notes
|
|
591
|
-
├── packages/
|
|
592
|
-
│ └── ash/ # framework package + CLI
|
|
593
|
-
└── README.md
|
|
594
|
-
```
|
|
128
|
+
- [`packages/ash/README.md`](packages/ash/README.md) is the package-facing overview
|
|
129
|
+
- [`skills/agent/SKILL.md`](skills/agent/SKILL.md) is the app-authoring skill
|
|
130
|
+
- [`skills/framework/SKILL.md`](skills/framework/SKILL.md) is the internals skill
|
|
595
131
|
|
|
596
|
-
Ash is built to make agent systems easier to author, easier to inspect, and easier to trust. The goal is not only to make agents more capable. It is to make them much easier to think about.
|
package/bin/ash.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface BootstrapCommandOptions {
|
|
|
26
26
|
|
|
27
27
|
export interface BootstrapBuildDependencies {
|
|
28
28
|
exists?: (path: string) => Promise<boolean>;
|
|
29
|
+
getLatestBuildInputMtimeMs?: (input: { packageRoot: string }) => Promise<number>;
|
|
30
|
+
getPathMtimeMs?: (path: string) => Promise<number | undefined>;
|
|
29
31
|
runCommand?: (
|
|
30
32
|
command: string,
|
|
31
33
|
args: readonly string[],
|