experimental-ash 0.2.0-alpha.2 → 0.2.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/channel/http-channel.d.ts +26 -0
- package/dist/src/channel/http-channel.d.ts.map +1 -0
- package/dist/src/channel/http-channel.js +24 -0
- package/dist/src/channel/http-channel.js.map +1 -0
- package/dist/src/channel/resolve-text.d.ts +20 -0
- package/dist/src/channel/resolve-text.d.ts.map +1 -0
- package/dist/src/channel/resolve-text.js +60 -0
- package/dist/src/channel/resolve-text.js.map +1 -0
- package/dist/src/channel/schedule-channel.d.ts +16 -0
- package/dist/src/channel/schedule-channel.d.ts.map +1 -0
- package/dist/src/channel/schedule-channel.js +20 -0
- package/dist/src/channel/schedule-channel.js.map +1 -0
- package/dist/src/channel/schedule.d.ts +4 -6
- package/dist/src/channel/schedule.d.ts.map +1 -1
- package/dist/src/channel/schedule.js +6 -9
- package/dist/src/channel/schedule.js.map +1 -1
- package/dist/src/channel/slack-channel.d.ts +125 -0
- package/dist/src/channel/slack-channel.d.ts.map +1 -0
- package/dist/src/channel/slack-channel.js +320 -0
- package/dist/src/channel/slack-channel.js.map +1 -0
- package/dist/src/channel/subagent-channel.d.ts +41 -0
- package/dist/src/channel/subagent-channel.d.ts.map +1 -0
- package/dist/src/channel/{subagent-emitter.js → subagent-channel.js} +15 -19
- package/dist/src/channel/subagent-channel.js.map +1 -0
- package/dist/src/channel/types.d.ts +157 -90
- package/dist/src/channel/types.d.ts.map +1 -1
- package/dist/src/channel/types.js +64 -1
- package/dist/src/channel/types.js.map +1 -1
- package/dist/src/cli/dev/input-requests.d.ts +4 -4
- package/dist/src/cli/dev/input-requests.d.ts.map +1 -1
- package/dist/src/cli/dev/input-requests.js +34 -65
- package/dist/src/cli/dev/input-requests.js.map +1 -1
- package/dist/src/cli/dev/repl.d.ts.map +1 -1
- package/dist/src/cli/dev/repl.js +41 -24
- package/dist/src/cli/dev/repl.js.map +1 -1
- package/dist/src/client/index.d.ts +3 -2
- package/dist/src/client/index.d.ts.map +1 -1
- package/dist/src/client/index.js +1 -0
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/message-response.d.ts +5 -5
- package/dist/src/client/message-response.d.ts.map +1 -1
- package/dist/src/client/message-response.js +6 -6
- package/dist/src/client/message-response.js.map +1 -1
- package/dist/src/client/open-stream.d.ts +1 -1
- package/dist/src/client/open-stream.d.ts.map +1 -1
- package/dist/src/client/open-stream.js +1 -1
- package/dist/src/client/open-stream.js.map +1 -1
- package/dist/src/client/session-utils.d.ts +3 -3
- package/dist/src/client/session-utils.d.ts.map +1 -1
- package/dist/src/client/session-utils.js +4 -4
- package/dist/src/client/session-utils.js.map +1 -1
- package/dist/src/client/session.d.ts +5 -5
- package/dist/src/client/session.js +28 -28
- package/dist/src/client/session.js.map +1 -1
- package/dist/src/client/types.d.ts +8 -8
- package/dist/src/client/types.d.ts.map +1 -1
- package/dist/src/compiler/channel-url.d.ts +1 -1
- package/dist/src/compiler/channel-url.js +1 -1
- package/dist/src/compiler/manifest.d.ts +38 -5
- package/dist/src/compiler/manifest.d.ts.map +1 -1
- package/dist/src/compiler/manifest.js +15 -1
- package/dist/src/compiler/manifest.js.map +1 -1
- package/dist/src/compiler/module-map.js +8 -0
- package/dist/src/compiler/module-map.js.map +1 -1
- package/dist/src/compiler/normalize-channel.d.ts +1 -1
- package/dist/src/compiler/normalize-channel.js +3 -3
- package/dist/src/compiler/normalize-channel.js.map +1 -1
- package/dist/src/compiler/normalize-connection.d.ts +14 -0
- package/dist/src/compiler/normalize-connection.d.ts.map +1 -0
- package/dist/src/compiler/normalize-connection.js +29 -0
- package/dist/src/compiler/normalize-connection.js.map +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts.map +1 -1
- package/dist/src/compiler/normalize-manifest.js +2 -0
- package/dist/src/compiler/normalize-manifest.js.map +1 -1
- package/dist/src/context/accessors.d.ts +13 -12
- package/dist/src/context/accessors.d.ts.map +1 -1
- package/dist/src/context/accessors.js +16 -17
- package/dist/src/context/accessors.js.map +1 -1
- package/dist/src/context/container.d.ts +17 -19
- package/dist/src/context/container.d.ts.map +1 -1
- package/dist/src/context/container.js +21 -14
- package/dist/src/context/container.js.map +1 -1
- package/dist/src/context/durable-context.d.ts +18 -0
- package/dist/src/context/durable-context.d.ts.map +1 -0
- package/dist/src/context/durable-context.js +49 -0
- package/dist/src/context/durable-context.js.map +1 -0
- package/dist/src/context/key.d.ts +43 -83
- package/dist/src/context/key.d.ts.map +1 -1
- package/dist/src/context/key.js +58 -80
- package/dist/src/context/key.js.map +1 -1
- package/dist/src/context/keys.d.ts +8 -20
- package/dist/src/context/keys.d.ts.map +1 -1
- package/dist/src/context/keys.js +20 -34
- package/dist/src/context/keys.js.map +1 -1
- package/dist/src/context/provider.d.ts +2 -2
- package/dist/src/context/provider.d.ts.map +1 -1
- package/dist/src/context/providers/connection.d.ts +4 -0
- package/dist/src/context/providers/connection.d.ts.map +1 -0
- package/dist/src/context/providers/connection.js +18 -0
- package/dist/src/context/providers/connection.js.map +1 -0
- package/dist/src/context/providers/session.d.ts.map +1 -1
- package/dist/src/context/providers/session.js +1 -2
- package/dist/src/context/providers/session.js.map +1 -1
- package/dist/src/context/providers/skill.d.ts.map +1 -1
- package/dist/src/context/providers/skill.js +2 -15
- package/dist/src/context/providers/skill.js.map +1 -1
- package/dist/src/context/run-step.d.ts +6 -8
- package/dist/src/context/run-step.d.ts.map +1 -1
- package/dist/src/context/run-step.js +15 -17
- package/dist/src/context/run-step.js.map +1 -1
- package/dist/src/context/seed-keys.d.ts +21 -0
- package/dist/src/context/seed-keys.d.ts.map +1 -0
- package/dist/src/context/seed-keys.js +31 -0
- package/dist/src/context/seed-keys.js.map +1 -0
- package/dist/src/context/serialize.d.ts +8 -9
- package/dist/src/context/serialize.d.ts.map +1 -1
- package/dist/src/context/serialize.js +38 -15
- package/dist/src/context/serialize.js.map +1 -1
- package/dist/src/discover/connections.d.ts +48 -0
- package/dist/src/discover/connections.d.ts.map +1 -0
- package/dist/src/discover/connections.js +169 -0
- package/dist/src/discover/connections.js.map +1 -0
- package/dist/src/discover/discover-agent.d.ts +1 -0
- package/dist/src/discover/discover-agent.d.ts.map +1 -1
- package/dist/src/discover/discover-agent.js +8 -0
- package/dist/src/discover/discover-agent.js.map +1 -1
- package/dist/src/discover/discover-subagent.js +7 -0
- package/dist/src/discover/discover-subagent.js.map +1 -1
- package/dist/src/discover/filesystem.d.ts +3 -3
- package/dist/src/discover/filesystem.d.ts.map +1 -1
- package/dist/src/discover/filesystem.js +7 -0
- package/dist/src/discover/filesystem.js.map +1 -1
- package/dist/src/discover/grammar.d.ts +20 -4
- package/dist/src/discover/grammar.d.ts.map +1 -1
- package/dist/src/discover/grammar.js +31 -5
- package/dist/src/discover/grammar.js.map +1 -1
- package/dist/src/discover/manifest.d.ts +28 -1
- package/dist/src/discover/manifest.d.ts.map +1 -1
- package/dist/src/discover/manifest.js +11 -1
- package/dist/src/discover/manifest.js.map +1 -1
- package/dist/src/evals/runner/artifacts.js +1 -1
- package/dist/src/evals/runner/artifacts.js.map +1 -1
- package/dist/src/evals/runner/derive-run-facts.js +5 -5
- package/dist/src/evals/runner/derive-run-facts.js.map +1 -1
- package/dist/src/evals/runner/execute-case.js +4 -4
- package/dist/src/evals/runner/execute-case.js.map +1 -1
- package/dist/src/evals/runner/execute-suite.js +1 -1
- package/dist/src/evals/runner/execute-suite.js.map +1 -1
- package/dist/src/evals/runner/reporters/braintrust.js +2 -2
- package/dist/src/evals/runner/reporters/braintrust.js.map +1 -1
- package/dist/src/evals/types.d.ts +4 -4
- package/dist/src/evals/types.d.ts.map +1 -1
- package/dist/src/execution/continuous-entry.d.ts +18 -9
- package/dist/src/execution/continuous-entry.d.ts.map +1 -1
- package/dist/src/execution/continuous-entry.js +62 -18
- package/dist/src/execution/continuous-entry.js.map +1 -1
- package/dist/src/execution/continuous-runtime.d.ts +1 -1
- package/dist/src/execution/continuous-runtime.d.ts.map +1 -1
- package/dist/src/execution/continuous-runtime.js +14 -10
- package/dist/src/execution/continuous-runtime.js.map +1 -1
- package/dist/src/execution/node-step.d.ts +1 -2
- package/dist/src/execution/node-step.d.ts.map +1 -1
- package/dist/src/execution/node-step.js +42 -55
- package/dist/src/execution/node-step.js.map +1 -1
- package/dist/src/execution/runtime-context.d.ts +3 -0
- package/dist/src/execution/runtime-context.d.ts.map +1 -1
- package/dist/src/execution/runtime-context.js +6 -4
- package/dist/src/execution/runtime-context.js.map +1 -1
- package/dist/src/execution/session.d.ts +2 -1
- package/dist/src/execution/session.d.ts.map +1 -1
- package/dist/src/execution/session.js +1 -0
- package/dist/src/execution/session.js.map +1 -1
- package/dist/src/execution/skills/access.d.ts.map +1 -1
- package/dist/src/execution/skills/instructions.d.ts +6 -6
- package/dist/src/execution/skills/instructions.d.ts.map +1 -1
- package/dist/src/execution/skills/instructions.js +15 -15
- package/dist/src/execution/skills/instructions.js.map +1 -1
- package/dist/src/execution/skills/types.d.ts +4 -4
- package/dist/src/execution/skills/types.d.ts.map +1 -1
- package/dist/src/execution/step-context.d.ts +27 -0
- package/dist/src/execution/step-context.d.ts.map +1 -0
- package/dist/src/execution/step-context.js +54 -0
- package/dist/src/execution/step-context.js.map +1 -0
- package/dist/src/execution/subagent-tool.d.ts +1 -1
- package/dist/src/execution/subagent-tool.d.ts.map +1 -1
- package/dist/src/execution/subagent-tool.js +3 -4
- package/dist/src/execution/subagent-tool.js.map +1 -1
- package/dist/src/execution/tool-compaction.d.ts +1 -3
- package/dist/src/execution/tool-compaction.d.ts.map +1 -1
- package/dist/src/execution/tool-compaction.js +6 -20
- package/dist/src/execution/tool-compaction.js.map +1 -1
- package/dist/src/execution/types.d.ts +1 -1
- package/dist/src/execution/types.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.d.ts +4 -5
- package/dist/src/execution/workflow-entry.d.ts.map +1 -1
- package/dist/src/execution/workflow-entry.js +7 -2
- package/dist/src/execution/workflow-entry.js.map +1 -1
- package/dist/src/execution/workflow-runtime.d.ts.map +1 -1
- package/dist/src/execution/workflow-runtime.js +10 -5
- package/dist/src/execution/workflow-runtime.js.map +1 -1
- package/dist/src/execution/workflow-steps.d.ts +13 -6
- package/dist/src/execution/workflow-steps.d.ts.map +1 -1
- package/dist/src/execution/workflow-steps.js +24 -19
- package/dist/src/execution/workflow-steps.js.map +1 -1
- package/dist/src/harness/emission.d.ts +36 -27
- package/dist/src/harness/emission.d.ts.map +1 -1
- package/dist/src/harness/emission.js +130 -84
- package/dist/src/harness/emission.js.map +1 -1
- package/dist/src/harness/execute-tool.d.ts +52 -0
- package/dist/src/harness/execute-tool.d.ts.map +1 -0
- package/dist/src/harness/execute-tool.js +59 -0
- package/dist/src/harness/execute-tool.js.map +1 -0
- package/dist/src/harness/input-extraction.d.ts +3 -3
- package/dist/src/harness/input-extraction.d.ts.map +1 -1
- package/dist/src/harness/input-extraction.js +15 -8
- package/dist/src/harness/input-extraction.js.map +1 -1
- package/dist/src/harness/input-requests.d.ts +46 -40
- package/dist/src/harness/input-requests.d.ts.map +1 -1
- package/dist/src/harness/input-requests.js +169 -245
- package/dist/src/harness/input-requests.js.map +1 -1
- package/dist/src/harness/messages.d.ts +10 -9
- package/dist/src/harness/messages.d.ts.map +1 -1
- package/dist/src/harness/messages.js +23 -20
- package/dist/src/harness/messages.js.map +1 -1
- package/dist/src/harness/provider-tools.d.ts +2 -2
- package/dist/src/harness/provider-tools.d.ts.map +1 -1
- package/dist/src/harness/provider-tools.js +7 -3
- package/dist/src/harness/provider-tools.js.map +1 -1
- package/dist/src/harness/step-hooks.d.ts +77 -0
- package/dist/src/harness/step-hooks.d.ts.map +1 -0
- package/dist/src/harness/step-hooks.js +192 -0
- package/dist/src/harness/step-hooks.js.map +1 -0
- package/dist/src/harness/tool-loop.d.ts +4 -2
- package/dist/src/harness/tool-loop.d.ts.map +1 -1
- package/dist/src/harness/tool-loop.js +130 -181
- package/dist/src/harness/tool-loop.js.map +1 -1
- package/dist/src/harness/tools.d.ts +12 -16
- package/dist/src/harness/tools.d.ts.map +1 -1
- package/dist/src/harness/tools.js +39 -33
- package/dist/src/harness/tools.js.map +1 -1
- package/dist/src/harness/types.d.ts +44 -28
- package/dist/src/harness/types.d.ts.map +1 -1
- package/dist/src/harness/types.js +6 -1
- package/dist/src/harness/types.js.map +1 -1
- package/dist/src/internal/application/compiled-artifacts.d.ts +5 -3
- package/dist/src/internal/application/compiled-artifacts.d.ts.map +1 -1
- package/dist/src/internal/application/compiled-artifacts.js +19 -40
- package/dist/src/internal/application/compiled-artifacts.js.map +1 -1
- package/dist/src/internal/application/package.js +1 -1
- package/dist/src/internal/authored-definition/channel.d.ts +3 -3
- package/dist/src/internal/authored-definition/channel.d.ts.map +1 -1
- package/dist/src/internal/authored-definition/channel.js +28 -4
- package/dist/src/internal/authored-definition/channel.js.map +1 -1
- package/dist/src/internal/authored-definition/connection.d.ts +10 -0
- package/dist/src/internal/authored-definition/connection.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/connection.js +134 -0
- package/dist/src/internal/authored-definition/connection.js.map +1 -0
- package/dist/src/internal/authored-module.js +1 -1
- package/dist/src/internal/authored-module.js.map +1 -1
- package/dist/src/internal/message/builder.d.ts +1 -2
- package/dist/src/internal/message/builder.d.ts.map +1 -1
- package/dist/src/internal/message/builder.js +4 -12
- package/dist/src/internal/message/builder.js.map +1 -1
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts +3 -1
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/configure-message-routes.js +124 -25
- package/dist/src/internal/nitro/host/configure-message-routes.js.map +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts.map +1 -1
- package/dist/src/internal/nitro/host/create-application-nitro.js +63 -21
- package/dist/src/internal/nitro/host/create-application-nitro.js.map +1 -1
- package/dist/src/internal/nitro/host/load-home-page-web-assets.d.ts +13 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.js +35 -0
- package/dist/src/internal/nitro/host/load-home-page-web-assets.js.map +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js +1 -1
- package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +10 -18
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/channel-dispatch.js +16 -45
- package/dist/src/internal/nitro/routes/channel-dispatch.js.map +1 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.d.ts +88 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.js +175 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-response.js.map +1 -0
- package/dist/src/internal/nitro/routes/home.d.ts +7 -0
- package/dist/src/internal/nitro/routes/home.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home.js +22 -0
- package/dist/src/internal/nitro/routes/home.js.map +1 -0
- package/dist/src/internal/nitro/routes/index.d.ts +3 -8
- package/dist/src/internal/nitro/routes/index.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/index.js +18 -36
- package/dist/src/internal/nitro/routes/index.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +10 -3
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-artifacts.js +2 -9
- package/dist/src/internal/nitro/routes/runtime-artifacts.js.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +8 -7
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/runtime-stack.js +10 -10
- package/dist/src/internal/nitro/routes/runtime-stack.js.map +1 -1
- package/dist/src/internal/nitro/routes/schedule-task.d.ts +7 -7
- package/dist/src/internal/nitro/routes/schedule-task.d.ts.map +1 -1
- package/dist/src/internal/nitro/routes/schedule-task.js +22 -30
- package/dist/src/internal/nitro/routes/schedule-task.js.map +1 -1
- package/dist/src/internal/nitro/routes/web-ui/assets/index.js +10 -0
- package/dist/src/internal/nitro/routes/web-ui/assets/style.css +2 -0
- package/dist/src/internal/nitro/routes/web-ui/index.html +17 -0
- package/dist/src/internal/nitro/routes/workflow-data.d.ts +32 -0
- package/dist/src/internal/nitro/routes/workflow-data.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-data.js +142 -0
- package/dist/src/internal/nitro/routes/workflow-data.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.d.ts +46 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.js +137 -0
- package/dist/src/internal/nitro/routes/workflow-route-helpers.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.d.ts +14 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.js +42 -0
- package/dist/src/internal/nitro/routes/workflow-run-events.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.d.ts +14 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.js +42 -0
- package/dist/src/internal/nitro/routes/workflow-run-steps.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run.d.ts +13 -0
- package/dist/src/internal/nitro/routes/workflow-run.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-run.js +35 -0
- package/dist/src/internal/nitro/routes/workflow-run.js.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-runs.d.ts +11 -0
- package/dist/src/internal/nitro/routes/workflow-runs.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/workflow-runs.js +29 -0
- package/dist/src/internal/nitro/routes/workflow-runs.js.map +1 -0
- package/dist/src/protocol/message.d.ts +160 -76
- package/dist/src/protocol/message.d.ts.map +1 -1
- package/dist/src/protocol/message.js +92 -36
- package/dist/src/protocol/message.js.map +1 -1
- package/dist/src/protocol/routes.d.ts +11 -3
- package/dist/src/protocol/routes.d.ts.map +1 -1
- package/dist/src/protocol/routes.js +12 -4
- package/dist/src/protocol/routes.js.map +1 -1
- package/dist/src/public/channels/auth.d.ts +32 -81
- package/dist/src/public/channels/auth.d.ts.map +1 -1
- package/dist/src/public/channels/auth.js +23 -86
- package/dist/src/public/channels/auth.js.map +1 -1
- package/dist/src/public/channels/http.d.ts +66 -26
- package/dist/src/public/channels/http.d.ts.map +1 -1
- package/dist/src/public/channels/http.js +88 -78
- package/dist/src/public/channels/http.js.map +1 -1
- package/dist/src/public/channels/index.d.ts +9 -10
- package/dist/src/public/channels/index.d.ts.map +1 -1
- package/dist/src/public/channels/index.js +9 -9
- package/dist/src/public/channels/index.js.map +1 -1
- package/dist/src/public/channels/slack/index.d.ts +104 -37
- package/dist/src/public/channels/slack/index.d.ts.map +1 -1
- package/dist/src/public/channels/slack/index.js +168 -47
- package/dist/src/public/channels/slack/index.js.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.d.ts +5 -5
- package/dist/src/public/channels/slack/lowlevel.d.ts.map +1 -1
- package/dist/src/public/channels/slack/lowlevel.js +4 -4
- package/dist/src/public/channels/slack/lowlevel.js.map +1 -1
- package/dist/src/public/connections/index.d.ts +25 -0
- package/dist/src/public/connections/index.d.ts.map +1 -0
- package/dist/src/public/connections/index.js +24 -0
- package/dist/src/public/connections/index.js.map +1 -0
- package/dist/src/public/definitions/channel.d.ts +89 -60
- package/dist/src/public/definitions/channel.d.ts.map +1 -1
- package/dist/src/public/definitions/channel.js +42 -24
- package/dist/src/public/definitions/channel.js.map +1 -1
- package/dist/src/public/definitions/connections/mcp.d.ts +60 -0
- package/dist/src/public/definitions/connections/mcp.d.ts.map +1 -0
- package/dist/src/public/definitions/connections/mcp.js +7 -0
- package/dist/src/public/definitions/connections/mcp.js.map +1 -0
- package/dist/src/public/definitions/tool.d.ts +14 -7
- package/dist/src/public/definitions/tool.d.ts.map +1 -1
- package/dist/src/public/definitions/tool.js.map +1 -1
- package/dist/src/public/index.d.ts +10 -9
- package/dist/src/public/index.d.ts.map +1 -1
- package/dist/src/public/index.js +7 -6
- package/dist/src/public/index.js.map +1 -1
- package/dist/src/public/sandboxes/internal.d.ts +1 -1
- package/dist/src/public/sandboxes/internal.js +1 -1
- package/dist/src/public/tools/defaults.d.ts +6 -6
- package/dist/src/public/tools/defaults.d.ts.map +1 -1
- package/dist/src/public/tools/defaults.js +6 -6
- package/dist/src/public/tools/defaults.js.map +1 -1
- package/dist/src/public/tools/internal.d.ts +1 -1
- package/dist/src/public/tools/internal.js +1 -1
- package/dist/src/runtime/actions/types.d.ts +21 -18
- package/dist/src/runtime/actions/types.d.ts.map +1 -1
- package/dist/src/runtime/actions/types.js +22 -19
- package/dist/src/runtime/actions/types.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +37 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.js +149 -0
- package/dist/src/runtime/agent/bootstrap-model-utils.js.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap-model.js +11 -80
- package/dist/src/runtime/agent/bootstrap-model.js.map +1 -1
- package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -1
- package/dist/src/runtime/agent/bootstrap.js +4 -1
- package/dist/src/runtime/agent/bootstrap.js.map +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.d.ts.map +1 -1
- package/dist/src/runtime/agent/mock-model-adapter.js +72 -134
- package/dist/src/runtime/agent/mock-model-adapter.js.map +1 -1
- package/dist/src/runtime/channels/registry.d.ts +21 -0
- package/dist/src/runtime/channels/registry.d.ts.map +1 -0
- package/dist/src/runtime/channels/registry.js +65 -0
- package/dist/src/runtime/channels/registry.js.map +1 -0
- package/dist/src/runtime/connections/mcp-client.d.ts +48 -0
- package/dist/src/runtime/connections/mcp-client.d.ts.map +1 -0
- package/dist/src/runtime/connections/mcp-client.js +182 -0
- package/dist/src/runtime/connections/mcp-client.js.map +1 -0
- package/dist/src/runtime/connections/registry.d.ts +33 -0
- package/dist/src/runtime/connections/registry.d.ts.map +1 -0
- package/dist/src/runtime/connections/registry.js +54 -0
- package/dist/src/runtime/connections/registry.js.map +1 -0
- package/dist/src/runtime/connections/types.d.ts +75 -0
- package/dist/src/runtime/connections/types.d.ts.map +1 -0
- package/dist/src/runtime/connections/types.js +9 -0
- package/dist/src/runtime/connections/types.js.map +1 -0
- package/dist/src/runtime/framework-channels/index.d.ts +6 -6
- package/dist/src/runtime/framework-channels/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-channels/index.js +16 -14
- package/dist/src/runtime/framework-channels/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/ask-question.js +4 -4
- package/dist/src/runtime/framework-tools/ask-question.js.map +1 -1
- package/dist/src/runtime/framework-tools/connection-execute.d.ts +10 -0
- package/dist/src/runtime/framework-tools/connection-execute.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/connection-execute.js +50 -0
- package/dist/src/runtime/framework-tools/connection-execute.js.map +1 -0
- package/dist/src/runtime/framework-tools/connection-search.d.ts +43 -0
- package/dist/src/runtime/framework-tools/connection-search.d.ts.map +1 -0
- package/dist/src/runtime/framework-tools/connection-search.js +135 -0
- package/dist/src/runtime/framework-tools/connection-search.js.map +1 -0
- package/dist/src/runtime/framework-tools/file-state.d.ts +5 -5
- package/dist/src/runtime/framework-tools/file-state.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/file-state.js +6 -8
- package/dist/src/runtime/framework-tools/file-state.js.map +1 -1
- package/dist/src/runtime/framework-tools/index.d.ts +3 -1
- package/dist/src/runtime/framework-tools/index.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/index.js +10 -1
- package/dist/src/runtime/framework-tools/index.js.map +1 -1
- package/dist/src/runtime/framework-tools/skill.d.ts +4 -4
- package/dist/src/runtime/framework-tools/skill.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/skill.js +14 -11
- package/dist/src/runtime/framework-tools/skill.js.map +1 -1
- package/dist/src/runtime/framework-tools/todo.d.ts.map +1 -1
- package/dist/src/runtime/framework-tools/todo.js +2 -4
- package/dist/src/runtime/framework-tools/todo.js.map +1 -1
- package/dist/src/runtime/input/types.d.ts +40 -115
- package/dist/src/runtime/input/types.d.ts.map +1 -1
- package/dist/src/runtime/input/types.js +28 -66
- package/dist/src/runtime/input/types.js.map +1 -1
- package/dist/src/runtime/loaders/module-map.js +8 -0
- package/dist/src/runtime/loaders/module-map.js.map +1 -1
- package/dist/src/runtime/prompt/compose.d.ts +4 -1
- package/dist/src/runtime/prompt/compose.d.ts.map +1 -1
- package/dist/src/runtime/prompt/compose.js +18 -1
- package/dist/src/runtime/prompt/compose.js.map +1 -1
- package/dist/src/runtime/prompt/connections.d.ts +10 -0
- package/dist/src/runtime/prompt/connections.d.ts.map +1 -0
- package/dist/src/runtime/prompt/connections.js +25 -0
- package/dist/src/runtime/prompt/connections.js.map +1 -0
- package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent-graph.js +29 -7
- package/dist/src/runtime/resolve-agent-graph.js.map +1 -1
- package/dist/src/runtime/resolve-agent.d.ts.map +1 -1
- package/dist/src/runtime/resolve-agent.js +3 -0
- package/dist/src/runtime/resolve-agent.js.map +1 -1
- package/dist/src/runtime/resolve-channel.d.ts.map +1 -1
- package/dist/src/runtime/resolve-channel.js +1 -0
- package/dist/src/runtime/resolve-channel.js.map +1 -1
- package/dist/src/runtime/resolve-connection.d.ts +16 -0
- package/dist/src/runtime/resolve-connection.d.ts.map +1 -0
- package/dist/src/runtime/resolve-connection.js +69 -0
- package/dist/src/runtime/resolve-connection.js.map +1 -0
- package/dist/src/runtime/resolve-tool.d.ts.map +1 -1
- package/dist/src/runtime/resolve-tool.js +8 -0
- package/dist/src/runtime/resolve-tool.js.map +1 -1
- package/dist/src/runtime/sessions/auth.d.ts +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +2 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -1
- package/dist/src/runtime/sessions/compiled-agent-cache.js +14 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -1
- package/dist/src/runtime/skills/fragment-context.d.ts +2 -2
- package/dist/src/runtime/skills/fragment-context.d.ts.map +1 -1
- package/dist/src/runtime/skills/fragment-context.js +2 -2
- package/dist/src/runtime/skills/fragment-context.js.map +1 -1
- package/dist/src/runtime/standard-schema.d.ts +28 -0
- package/dist/src/runtime/standard-schema.d.ts.map +1 -0
- package/dist/src/runtime/standard-schema.js +65 -0
- package/dist/src/runtime/standard-schema.js.map +1 -0
- package/dist/src/runtime/types.d.ts +29 -3
- package/dist/src/runtime/types.d.ts.map +1 -1
- package/dist/src/services/dev-client/send-message.d.ts +2 -2
- package/dist/src/services/dev-client/send-message.d.ts.map +1 -1
- package/dist/src/services/dev-client/send-message.js +21 -22
- package/dist/src/services/dev-client/send-message.js.map +1 -1
- package/dist/src/services/dev-client/session.d.ts +5 -5
- package/dist/src/services/dev-client/session.d.ts.map +1 -1
- package/dist/src/services/dev-client/session.js +2 -2
- package/dist/src/services/dev-client/session.js.map +1 -1
- package/dist/src/services/dev-client.d.ts +6 -6
- package/dist/src/services/dev-client.d.ts.map +1 -1
- package/dist/src/services/dev-client.js +3 -3
- package/dist/src/services/dev-client.js.map +1 -1
- package/docs/external-agent-protocol.md +37 -34
- package/docs/internals/channels.md +15 -12
- package/docs/internals/context.md +81 -161
- package/docs/internals/message-runtime.md +28 -26
- package/docs/public/README.md +22 -20
- package/docs/public/auth-and-route-protection.md +15 -12
- package/docs/public/channels/README.md +16 -11
- package/docs/public/cli-build-and-debugging.md +1 -1
- package/docs/public/context-control.md +7 -3
- package/docs/public/evals.md +3 -3
- package/docs/public/getting-started.md +15 -12
- package/docs/public/human-in-the-loop.md +45 -57
- package/docs/public/migration-guide.md +71 -0
- package/docs/public/project-layout.md +5 -0
- package/docs/public/runs-and-streaming.md +32 -25
- package/docs/public/schedules.md +4 -4
- package/docs/public/session-context.md +131 -15
- package/docs/public/skills.md +27 -3
- package/docs/public/subagents.md +2 -2
- package/docs/public/tools.md +23 -30
- package/docs/public/typescript-api.md +16 -12
- package/docs/public/vercel-deployment.md +3 -4
- package/docs/public/workspace.md +11 -11
- package/package.json +18 -11
- package/dist/src/channel/emitter-registry.d.ts +0 -34
- package/dist/src/channel/emitter-registry.d.ts.map +0 -1
- package/dist/src/channel/emitter-registry.js +0 -63
- package/dist/src/channel/emitter-registry.js.map +0 -1
- package/dist/src/channel/http-emitter.d.ts +0 -16
- package/dist/src/channel/http-emitter.d.ts.map +0 -1
- package/dist/src/channel/http-emitter.js +0 -22
- package/dist/src/channel/http-emitter.js.map +0 -1
- package/dist/src/channel/schedule-emitter.d.ts +0 -15
- package/dist/src/channel/schedule-emitter.d.ts.map +0 -1
- package/dist/src/channel/schedule-emitter.js +0 -21
- package/dist/src/channel/schedule-emitter.js.map +0 -1
- package/dist/src/channel/slack-emitter.d.ts +0 -56
- package/dist/src/channel/slack-emitter.d.ts.map +0 -1
- package/dist/src/channel/slack-emitter.js +0 -235
- package/dist/src/channel/slack-emitter.js.map +0 -1
- package/dist/src/channel/subagent-emitter.d.ts +0 -41
- package/dist/src/channel/subagent-emitter.d.ts.map +0 -1
- package/dist/src/channel/subagent-emitter.js.map +0 -1
- package/dist/src/context/state.d.ts +0 -27
- package/dist/src/context/state.d.ts.map +0 -1
- package/dist/src/context/state.js +0 -53
- package/dist/src/context/state.js.map +0 -1
- package/dist/src/internal/message/nitro-route-shims.d.ts +0 -6
- package/dist/src/internal/message/nitro-route-shims.d.ts.map +0 -1
- package/dist/src/internal/message/nitro-route-shims.js +0 -38
- package/dist/src/internal/message/nitro-route-shims.js.map +0 -1
- package/dist/src/internal/message/rewrite-generated-imports.d.ts +0 -15
- package/dist/src/internal/message/rewrite-generated-imports.d.ts.map +0 -1
- package/dist/src/internal/message/rewrite-generated-imports.js +0 -59
- package/dist/src/internal/message/rewrite-generated-imports.js.map +0 -1
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts +0 -35
- package/dist/src/internal/nitro/host/channel-url-matcher.d.ts.map +0 -1
- package/dist/src/internal/nitro/host/channel-url-matcher.js +0 -57
- package/dist/src/internal/nitro/host/channel-url-matcher.js.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts +0 -11
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js +0 -264
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts +0 -9
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts.map +0 -1
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js +0 -15
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js.map +0 -1
- package/dist/src/internal/nitro/routes/index.html +0 -525
- package/dist/src/internal/nitro/runtime-configuration.d.ts +0 -16
- package/dist/src/internal/nitro/runtime-configuration.d.ts.map +0 -1
- package/dist/src/internal/nitro/runtime-configuration.js +0 -23
- package/dist/src/internal/nitro/runtime-configuration.js.map +0 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts +0 -10
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.d.ts.map +0 -1
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js +0 -17
- package/dist/src/internal/nitro/shims/runtime-configuration-plugin.js.map +0 -1
- package/dist/src/runtime/tools/execute-tool.d.ts +0 -20
- package/dist/src/runtime/tools/execute-tool.d.ts.map +0 -1
- package/dist/src/runtime/tools/execute-tool.js +0 -69
- package/dist/src/runtime/tools/execute-tool.js.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple seed keys — serializable values carried across workflow step
|
|
3
|
+
* boundaries. These keys have no codec and no heavyweight imports, so
|
|
4
|
+
* they can be safely imported from channel code without triggering
|
|
5
|
+
* circular module dependencies.
|
|
6
|
+
*
|
|
7
|
+
* Complex codec keys ({@link import("./keys.js").ChannelKey ChannelKey},
|
|
8
|
+
* {@link import("./keys.js").BundleKey BundleKey}) and derived keys
|
|
9
|
+
* ({@link import("./keys.js").SessionKey SessionKey}, etc.) live in
|
|
10
|
+
* `context/keys.ts` which re-exports everything from this module.
|
|
11
|
+
*/
|
|
12
|
+
import { RuntimeContextKey } from "./key.js";
|
|
13
|
+
export const AuthKey = new RuntimeContextKey("ash.auth", {
|
|
14
|
+
serializable: true,
|
|
15
|
+
});
|
|
16
|
+
export const InitiatorAuthKey = new RuntimeContextKey("ash.initiatorAuth", {
|
|
17
|
+
serializable: true,
|
|
18
|
+
});
|
|
19
|
+
export const SessionIdKey = new RuntimeContextKey("ash.sessionId", {
|
|
20
|
+
serializable: true,
|
|
21
|
+
});
|
|
22
|
+
export const ContinuationTokenKey = new RuntimeContextKey("ash.continuationToken", {
|
|
23
|
+
serializable: true,
|
|
24
|
+
});
|
|
25
|
+
export const ModeKey = new RuntimeContextKey("ash.mode", {
|
|
26
|
+
serializable: true,
|
|
27
|
+
});
|
|
28
|
+
export const ParentSessionKey = new RuntimeContextKey("ash.parentSession", {
|
|
29
|
+
serializable: true,
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=seed-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-keys.js","sourceRoot":"","sources":["../../../src/context/seed-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,iBAAiB,CAA4B,UAAU,EAAE;IAClF,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,iBAAiB,CACnD,mBAAmB,EACnB;IACE,YAAY,EAAE,IAAI;CACnB,CACF,CAAC;AACF,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,iBAAiB,CAAS,eAAe,EAAE;IACzE,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,iBAAiB,CAAS,uBAAuB,EAAE;IACzF,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,iBAAiB,CAAU,UAAU,EAAE;IAChE,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,iBAAiB,CAAgB,mBAAmB,EAAE;IACxF,YAAY,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { type AshContext } from "./container.js";
|
|
2
2
|
/**
|
|
3
|
-
* Serializes
|
|
4
|
-
*
|
|
5
|
-
* Keys with a codec are run through `codec.serialize`; keys without one
|
|
6
|
-
* are stored as-is (they must already be JSON-safe).
|
|
3
|
+
* Serializes all runtime seed values that must cross durable workflow
|
|
4
|
+
* boundaries.
|
|
7
5
|
*/
|
|
8
|
-
export declare function
|
|
6
|
+
export declare function serializeRuntimeContext(ctx: AshContext): Record<string, unknown>;
|
|
9
7
|
/**
|
|
10
|
-
* Deserializes
|
|
8
|
+
* Deserializes runtime seed values into a fresh context container.
|
|
11
9
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* `ash.bundle` must be restored before keys whose codecs depend on the
|
|
11
|
+
* compiled runtime bundle, such as `ash.channel`.
|
|
14
12
|
*/
|
|
15
|
-
export declare function
|
|
13
|
+
export declare function deserializeRuntimeContext(data: Record<string, unknown>): Promise<AshContext>;
|
|
14
|
+
export declare function assertNoDurableContextInRuntimeSeed(ctx: AshContext): void;
|
|
16
15
|
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/context/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/context/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,gBAAgB,CAAC;AAQjE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiBhF;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,UAAU,CAAC,CA0BrB;AAED,wBAAgB,mCAAmC,CAAC,GAAG,EAAE,UAAU,GAAG,IAAI,CAQzE"}
|
|
@@ -1,34 +1,57 @@
|
|
|
1
1
|
import { AshContextImpl } from "./container.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getSerializableRuntimeContextKeys, isRuntimeContextKey, resolveRuntimeContextKey, } from "./key.js";
|
|
3
|
+
import { BundleKey } from "./keys.js";
|
|
3
4
|
/**
|
|
4
|
-
* Serializes
|
|
5
|
-
*
|
|
6
|
-
* Keys with a codec are run through `codec.serialize`; keys without one
|
|
7
|
-
* are stored as-is (they must already be JSON-safe).
|
|
5
|
+
* Serializes all runtime seed values that must cross durable workflow
|
|
6
|
+
* boundaries.
|
|
8
7
|
*/
|
|
9
|
-
export function
|
|
8
|
+
export function serializeRuntimeContext(ctx) {
|
|
10
9
|
const data = {};
|
|
11
|
-
for (const
|
|
10
|
+
for (const key of getSerializableRuntimeContextKeys()) {
|
|
11
|
+
if (!ctx.has(key)) {
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
const value = ctx.get(key);
|
|
15
|
+
if (value === undefined) {
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
12
18
|
data[key.name] = key.codec ? key.codec.serialize(value) : value;
|
|
13
19
|
}
|
|
14
20
|
return data;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
|
-
* Deserializes
|
|
23
|
+
* Deserializes runtime seed values into a fresh context container.
|
|
18
24
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
25
|
+
* `ash.bundle` must be restored before keys whose codecs depend on the
|
|
26
|
+
* compiled runtime bundle, such as `ash.channel`.
|
|
21
27
|
*/
|
|
22
|
-
export async function
|
|
28
|
+
export async function deserializeRuntimeContext(data) {
|
|
23
29
|
const ctx = new AshContextImpl();
|
|
30
|
+
const serializedBundle = data[BundleKey.name];
|
|
31
|
+
if (serializedBundle !== undefined) {
|
|
32
|
+
const codec = BundleKey.codec;
|
|
33
|
+
if (codec === undefined) {
|
|
34
|
+
throw new Error('Context key "ash.bundle" is missing a codec.');
|
|
35
|
+
}
|
|
36
|
+
ctx.set(BundleKey, await codec.deserialize(serializedBundle, ctx));
|
|
37
|
+
}
|
|
24
38
|
for (const [name, raw] of Object.entries(data)) {
|
|
25
|
-
if (raw === undefined)
|
|
39
|
+
if (raw === undefined || name === BundleKey.name) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const key = resolveRuntimeContextKey(name);
|
|
43
|
+
if (key === undefined) {
|
|
26
44
|
continue;
|
|
27
|
-
const key = resolveKey(name);
|
|
28
|
-
if (key !== undefined) {
|
|
29
|
-
ctx.set(key, key.codec ? await key.codec.deserialize(raw) : raw);
|
|
30
45
|
}
|
|
46
|
+
ctx.set(key, key.codec ? await key.codec.deserialize(raw, ctx) : raw);
|
|
31
47
|
}
|
|
32
48
|
return ctx;
|
|
33
49
|
}
|
|
50
|
+
export function assertNoDurableContextInRuntimeSeed(ctx) {
|
|
51
|
+
for (const [key] of ctx.entries()) {
|
|
52
|
+
if (!isRuntimeContextKey(key)) {
|
|
53
|
+
throw new Error(`Durable context key "${key.name}" leaked into runtime seed serialization. Durable context must live on session.context, not the serialized runtime seed.`);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
34
57
|
//# sourceMappingURL=serialize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/context/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/context/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,GAAe;IACrD,MAAM,IAAI,GAA4B,EAAE,CAAC;IAEzC,KAAK,MAAM,GAAG,IAAI,iCAAiC,EAAE,EAAE,CAAC;QACtD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;YAClB,SAAS;QACX,CAAC;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,SAAS;QACX,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;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,IAAI,KAAK,CACb,wBAAwB,GAAG,CAAC,IAAI,0HAA0H,CAC3J,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type DiscoverDiagnostic } from "./diagnostics.js";
|
|
2
|
+
import { type StringDirent } from "./grammar.js";
|
|
3
|
+
import { type ConnectionSourceRef } from "./manifest.js";
|
|
4
|
+
/**
|
|
5
|
+
* Shared diagnostic emitted when the authored `connections/` root is not a
|
|
6
|
+
* directory.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DISCOVER_CONNECTIONS_DIRECTORY_INVALID = "discover/connections-directory-invalid";
|
|
9
|
+
/**
|
|
10
|
+
* Discovery diagnostic emitted when a connection exists in both file form
|
|
11
|
+
* (`connections/<name>.ts`) and folder form (`connections/<name>/`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const DISCOVER_CONNECTION_FILE_FOLDER_COLLISION = "discover/connection-file-folder-collision";
|
|
14
|
+
/**
|
|
15
|
+
* Discovery diagnostic emitted when a folder-form connection contains no
|
|
16
|
+
* `connection.ts` definition module.
|
|
17
|
+
*/
|
|
18
|
+
export declare const DISCOVER_CONNECTION_FOLDER_EMPTY = "discover/connection-folder-empty";
|
|
19
|
+
/**
|
|
20
|
+
* Result of discovering authored connection sources from a single agent root.
|
|
21
|
+
*/
|
|
22
|
+
export interface DiscoverConnectionSourcesResult {
|
|
23
|
+
connections: ConnectionSourceRef[];
|
|
24
|
+
diagnostics: DiscoverDiagnostic[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Discovers authored connections under `agent/connections/`.
|
|
28
|
+
*
|
|
29
|
+
* Connections may be authored as either:
|
|
30
|
+
*
|
|
31
|
+
* - File form: `agent/connections/<name>.ts`. A single module per
|
|
32
|
+
* connection.
|
|
33
|
+
* - Folder form: `agent/connections/<name>/connection.ts`. The
|
|
34
|
+
* directory name becomes the connection name. The folder form allows
|
|
35
|
+
* colocating additional assets alongside the definition file.
|
|
36
|
+
*
|
|
37
|
+
* Both forms accept any supported module extension (`.ts`, `.js`,
|
|
38
|
+
* `.mjs`, `.cjs`, `.mts`, `.cts`).
|
|
39
|
+
*
|
|
40
|
+
* Errors:
|
|
41
|
+
* - File and folder form for the same connection name -> collision.
|
|
42
|
+
* - Empty folder (no `connection.ts`) -> error.
|
|
43
|
+
*/
|
|
44
|
+
export declare function discoverConnectionSources(input: {
|
|
45
|
+
rootEntries: readonly StringDirent[];
|
|
46
|
+
rootPath: string;
|
|
47
|
+
}): Promise<DiscoverConnectionSourcesResult>;
|
|
48
|
+
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/discover/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,mBAAmB,EAA6B,MAAM,eAAe,CAAC;AAGpF;;;GAGG;AACH,eAAO,MAAM,sCAAsC,2CAA2C,CAAC;AAE/F;;;GAGG;AACH,eAAO,MAAM,yCAAyC,8CACT,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAQnF;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,yBAAyB,CAAC,KAAK,EAAE;IACrD,WAAW,EAAE,SAAS,YAAY,EAAE,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAsJ3C"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createDiscoverErrorDiagnostic } from "./diagnostics.js";
|
|
3
|
+
import { normalizeLogicalPath } from "./filesystem.js";
|
|
4
|
+
import { createConnectionNameDiagnostic, createModuleSlotCollisionDiagnostic, DISCOVER_MODULE_SLOT_COLLISION, readSortedDirectoryEntries, } from "./grammar.js";
|
|
5
|
+
import { createConnectionSourceRef } from "./manifest.js";
|
|
6
|
+
import { collectNamedSlotCandidates } from "./slots.js";
|
|
7
|
+
/**
|
|
8
|
+
* Shared diagnostic emitted when the authored `connections/` root is not a
|
|
9
|
+
* directory.
|
|
10
|
+
*/
|
|
11
|
+
export const DISCOVER_CONNECTIONS_DIRECTORY_INVALID = "discover/connections-directory-invalid";
|
|
12
|
+
/**
|
|
13
|
+
* Discovery diagnostic emitted when a connection exists in both file form
|
|
14
|
+
* (`connections/<name>.ts`) and folder form (`connections/<name>/`).
|
|
15
|
+
*/
|
|
16
|
+
export const DISCOVER_CONNECTION_FILE_FOLDER_COLLISION = "discover/connection-file-folder-collision";
|
|
17
|
+
/**
|
|
18
|
+
* Discovery diagnostic emitted when a folder-form connection contains no
|
|
19
|
+
* `connection.ts` definition module.
|
|
20
|
+
*/
|
|
21
|
+
export const DISCOVER_CONNECTION_FOLDER_EMPTY = "discover/connection-folder-empty";
|
|
22
|
+
/**
|
|
23
|
+
* Filename of the connection definition module inside a folder-form
|
|
24
|
+
* connection.
|
|
25
|
+
*/
|
|
26
|
+
const CONNECTION_DEFINITION_BASE_NAME = "connection";
|
|
27
|
+
/**
|
|
28
|
+
* Discovers authored connections under `agent/connections/`.
|
|
29
|
+
*
|
|
30
|
+
* Connections may be authored as either:
|
|
31
|
+
*
|
|
32
|
+
* - File form: `agent/connections/<name>.ts`. A single module per
|
|
33
|
+
* connection.
|
|
34
|
+
* - Folder form: `agent/connections/<name>/connection.ts`. The
|
|
35
|
+
* directory name becomes the connection name. The folder form allows
|
|
36
|
+
* colocating additional assets alongside the definition file.
|
|
37
|
+
*
|
|
38
|
+
* Both forms accept any supported module extension (`.ts`, `.js`,
|
|
39
|
+
* `.mjs`, `.cjs`, `.mts`, `.cts`).
|
|
40
|
+
*
|
|
41
|
+
* Errors:
|
|
42
|
+
* - File and folder form for the same connection name -> collision.
|
|
43
|
+
* - Empty folder (no `connection.ts`) -> error.
|
|
44
|
+
*/
|
|
45
|
+
export async function discoverConnectionSources(input) {
|
|
46
|
+
const directoryName = "connections";
|
|
47
|
+
const directoryPath = join(input.rootPath, directoryName);
|
|
48
|
+
const directoryEntry = input.rootEntries.find((entry) => entry.name === directoryName);
|
|
49
|
+
if (directoryEntry === undefined) {
|
|
50
|
+
return {
|
|
51
|
+
connections: [],
|
|
52
|
+
diagnostics: [],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (!directoryEntry.isDirectory()) {
|
|
56
|
+
return {
|
|
57
|
+
connections: [],
|
|
58
|
+
diagnostics: [
|
|
59
|
+
createDiscoverErrorDiagnostic({
|
|
60
|
+
code: DISCOVER_CONNECTIONS_DIRECTORY_INVALID,
|
|
61
|
+
message: `Expected "${directoryPath}" to be a directory of authored connections.`,
|
|
62
|
+
sourcePath: directoryPath,
|
|
63
|
+
}),
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const directoryEntries = await readSortedDirectoryEntries(directoryPath);
|
|
68
|
+
const connections = [];
|
|
69
|
+
const diagnostics = [];
|
|
70
|
+
const fileFormNames = new Set();
|
|
71
|
+
for (const candidates of collectNamedSlotCandidates(directoryEntries, {
|
|
72
|
+
allowMarkdown: false,
|
|
73
|
+
allowModules: true,
|
|
74
|
+
})) {
|
|
75
|
+
const slotLogicalPath = normalizeLogicalPath(join(directoryName, candidates.slotName));
|
|
76
|
+
if (candidates.moduleFileNames.length > 1) {
|
|
77
|
+
fileFormNames.add(candidates.slotName);
|
|
78
|
+
diagnostics.push(createModuleSlotCollisionDiagnostic(directoryPath, slotLogicalPath, candidates.moduleFileNames));
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const [moduleFileName] = candidates.moduleFileNames;
|
|
82
|
+
if (moduleFileName === undefined) {
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
fileFormNames.add(candidates.slotName);
|
|
86
|
+
const slotDiagnostic = createConnectionNameDiagnostic(candidates.slotName, join(directoryPath, moduleFileName));
|
|
87
|
+
if (slotDiagnostic !== null) {
|
|
88
|
+
diagnostics.push(slotDiagnostic);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
connections.push(createConnectionSourceRef({
|
|
92
|
+
connectionName: candidates.slotName,
|
|
93
|
+
logicalPath: join(directoryName, moduleFileName),
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
for (const entry of directoryEntries) {
|
|
97
|
+
if (!entry.isDirectory()) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const connectionName = entry.name;
|
|
101
|
+
const folderPath = join(directoryPath, connectionName);
|
|
102
|
+
if (fileFormNames.has(connectionName)) {
|
|
103
|
+
diagnostics.push(createDiscoverErrorDiagnostic({
|
|
104
|
+
code: DISCOVER_CONNECTION_FILE_FOLDER_COLLISION,
|
|
105
|
+
message: `Connection "${connectionName}" is defined twice. ` +
|
|
106
|
+
`Found both file-form "connections/${connectionName}.ts" and folder-form "connections/${connectionName}/". ` +
|
|
107
|
+
`Use one form, not both.`,
|
|
108
|
+
sourcePath: folderPath,
|
|
109
|
+
}));
|
|
110
|
+
const existingIndex = connections.findIndex((connection) => connection.connectionName === connectionName);
|
|
111
|
+
if (existingIndex !== -1) {
|
|
112
|
+
connections.splice(existingIndex, 1);
|
|
113
|
+
}
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const slotDiagnostic = createConnectionNameDiagnostic(connectionName, folderPath);
|
|
117
|
+
if (slotDiagnostic !== null) {
|
|
118
|
+
diagnostics.push(slotDiagnostic);
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
const folderEntries = await readSortedDirectoryEntries(folderPath);
|
|
122
|
+
const moduleCandidates = collectFolderConnectionModuleCandidates(folderEntries);
|
|
123
|
+
if (moduleCandidates.length > 1) {
|
|
124
|
+
diagnostics.push(createDiscoverErrorDiagnostic({
|
|
125
|
+
code: DISCOVER_MODULE_SLOT_COLLISION,
|
|
126
|
+
message: `Found multiple connection definition modules inside "${normalizeLogicalPath(join(directoryName, connectionName))}": ` +
|
|
127
|
+
moduleCandidates.map((name) => `"${name}"`).join(", "),
|
|
128
|
+
sourcePath: folderPath,
|
|
129
|
+
}));
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
const [moduleFileName] = moduleCandidates;
|
|
133
|
+
if (moduleFileName === undefined) {
|
|
134
|
+
diagnostics.push(createDiscoverErrorDiagnostic({
|
|
135
|
+
code: DISCOVER_CONNECTION_FOLDER_EMPTY,
|
|
136
|
+
message: `Connection folder "connections/${connectionName}/" contains no "connection.ts" definition. ` +
|
|
137
|
+
`Add "connections/${connectionName}/connection.ts" or use the file form "connections/${connectionName}.ts".`,
|
|
138
|
+
sourcePath: folderPath,
|
|
139
|
+
}));
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
connections.push(createConnectionSourceRef({
|
|
143
|
+
connectionName,
|
|
144
|
+
logicalPath: join(directoryName, connectionName, moduleFileName),
|
|
145
|
+
}));
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
connections,
|
|
149
|
+
diagnostics,
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Returns the file names inside a folder-form connection that match the
|
|
154
|
+
* `connection.ts` definition slot.
|
|
155
|
+
*/
|
|
156
|
+
function collectFolderConnectionModuleCandidates(entries) {
|
|
157
|
+
const moduleEntries = entries.filter((entry) => entry.isFile());
|
|
158
|
+
const candidates = [];
|
|
159
|
+
for (const candidate of collectNamedSlotCandidates(moduleEntries, {
|
|
160
|
+
allowMarkdown: false,
|
|
161
|
+
allowModules: true,
|
|
162
|
+
})) {
|
|
163
|
+
if (candidate.slotName === CONNECTION_DEFINITION_BASE_NAME) {
|
|
164
|
+
candidates.push(...candidate.moduleFileNames);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return candidates;
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/discover/connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,6BAA6B,EAA2B,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,EACnC,8BAA8B,EAC9B,0BAA0B,GAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAA4B,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD;;;GAGG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,wCAAwC,CAAC;AAE/F;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GACpD,2CAA2C,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,kCAAkC,CAAC;AAEnF;;;GAGG;AACH,MAAM,+BAA+B,GAAG,YAAY,CAAC;AAUrD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,KAG/C;IACC,MAAM,aAAa,GAAG,aAAa,CAAC;IACpC,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAC1D,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;IAEvF,IAAI,cAAc,KAAK,SAAS,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GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAChE,MAAM,UAAU,GAAa,EAAE,CAAC;IAEhC,KAAK,MAAM,SAAS,IAAI,0BAA0B,CAAC,aAAa,EAAE;QAChE,aAAa,EAAE,KAAK;QACpB,YAAY,EAAE,IAAI;KACnB,CAAC,EAAE,CAAC;QACH,IAAI,SAAS,CAAC,QAAQ,KAAK,+BAA+B,EAAE,CAAC;YAC3D,UAAU,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type DiscoverDiagnostic } from "./diagnostics.js";
|
|
2
2
|
import { DISCOVER_CHANNEL_NAME_INVALID, DISCOVER_LEGACY_MEMORIES_DIRECTORY_UNSUPPORTED, DISCOVER_MODULE_SLOT_COLLISION, DISCOVER_REQUIRED_SYSTEM_MISSING, DISCOVER_SANDBOX_NAME_INVALID, DISCOVER_SANDBOXES_DIRECTORY_INVALID, DISCOVER_SLOT_COLLISION, DISCOVER_TOOL_NAME_INVALID, DISCOVER_TOOLS_DIRECTORY_INVALID, DISCOVER_UNSUPPORTED_DIRECTORY } from "./grammar.js";
|
|
3
3
|
import { type AgentSourceManifest } from "./manifest.js";
|
|
4
|
+
export { DISCOVER_CONNECTION_FILE_FOLDER_COLLISION, DISCOVER_CONNECTION_FOLDER_EMPTY, DISCOVER_CONNECTIONS_DIRECTORY_INVALID, } from "./connections.js";
|
|
4
5
|
export { DISCOVER_SANDBOX_FILE_FOLDER_COLLISION, DISCOVER_SANDBOX_FOLDER_EMPTY, DISCOVER_SANDBOX_WORKSPACE_ORPHAN, DISCOVER_SANDBOX_WORKSPACE_SKILLS_RESERVED, } from "./sandboxes.js";
|
|
5
6
|
/**
|
|
6
7
|
* Diagnostics emitted while discovering the non-skill core authored agent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-agent.d.ts","sourceRoot":"","sources":["../../../src/discover/discover-agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discover-agent.d.ts","sourceRoot":"","sources":["../../../src/discover/discover-agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG1F,OAAO,EAML,6BAA6B,EAC7B,8CAA8C,EAC9C,8BAA8B,EAC9B,gCAAgC,EAChC,6BAA6B,EAC7B,oCAAoC,EACpC,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,8BAA8B,EAO/B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,mBAAmB,EAIzB,MAAM,eAAe,CAAC;AAOvB,OAAO,EACL,yCAAyC,EACzC,gCAAgC,EAChC,sCAAsC,GACvC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sCAAsC,EACtC,6BAA6B,EAC7B,iCAAiC,EACjC,0CAA0C,GAC3C,MAAM,gBAAgB,CAAC;AACxB;;;GAGG;AACH,OAAO,EACL,6BAA6B,EAC7B,8CAA8C,EAC9C,8BAA8B,EAC9B,gCAAgC,EAChC,6BAA6B,EAC7B,oCAAoC,EACpC,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,8BAA8B,GAC/B,CAAC;AAEF,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AACzF,eAAO,MAAM,oCAAoC,yCAAyC,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAClC,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAID;;;GAGG;AACH,wBAAsB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAsH3F"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { readFile } from "node:fs/promises";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { lowerScheduleMarkdown } from "../public/helpers/markdown.js";
|
|
4
|
+
import { discoverConnectionSources } from "./connections.js";
|
|
4
5
|
import { createDiscoverErrorDiagnostic } from "./diagnostics.js";
|
|
5
6
|
import { discoverSubagents } from "./discover-subagent.js";
|
|
6
7
|
import { classifyAgentRootEntry, normalizeLogicalPath } from "./filesystem.js";
|
|
@@ -12,6 +13,7 @@ import { discoverSandboxSources } from "./sandboxes.js";
|
|
|
12
13
|
import { discoverSkills } from "./skills.js";
|
|
13
14
|
import { collectNamedSlotCandidates } from "./slots.js";
|
|
14
15
|
import { discoverSystemPromptLayers } from "./system.js";
|
|
16
|
+
export { DISCOVER_CONNECTION_FILE_FOLDER_COLLISION, DISCOVER_CONNECTION_FOLDER_EMPTY, DISCOVER_CONNECTIONS_DIRECTORY_INVALID, } from "./connections.js";
|
|
15
17
|
export { DISCOVER_SANDBOX_FILE_FOLDER_COLLISION, DISCOVER_SANDBOX_FOLDER_EMPTY, DISCOVER_SANDBOX_WORKSPACE_ORPHAN, DISCOVER_SANDBOX_WORKSPACE_SKILLS_RESERVED, } from "./sandboxes.js";
|
|
16
18
|
/**
|
|
17
19
|
* Diagnostics emitted while discovering the non-skill core authored agent
|
|
@@ -70,6 +72,11 @@ export async function discoverAgent(input) {
|
|
|
70
72
|
diagnostics.push(...libResult.diagnostics);
|
|
71
73
|
const schedulesResult = await discoverScheduleSources(agentRoot, rootEntries);
|
|
72
74
|
diagnostics.push(...schedulesResult.diagnostics);
|
|
75
|
+
const connectionsResult = await discoverConnectionSources({
|
|
76
|
+
rootEntries,
|
|
77
|
+
rootPath: agentRoot,
|
|
78
|
+
});
|
|
79
|
+
diagnostics.push(...connectionsResult.diagnostics);
|
|
73
80
|
const sandboxesResult = await discoverSandboxSources({
|
|
74
81
|
rootEntries,
|
|
75
82
|
rootPath: agentRoot,
|
|
@@ -97,6 +104,7 @@ export async function discoverAgent(input) {
|
|
|
97
104
|
agentRoot,
|
|
98
105
|
appRoot,
|
|
99
106
|
channels: channelsResult.modules,
|
|
107
|
+
connections: connectionsResult.connections,
|
|
100
108
|
packageName,
|
|
101
109
|
diagnostics,
|
|
102
110
|
lib: libResult.lib,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-agent.js","sourceRoot":"","sources":["../../../src/discover/discover-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAI1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,6BAA6B,EAA2B,MAAM,kBAAkB,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EACL,2BAA2B,EAC3B,mCAAmC,EACnC,6BAA6B,EAC7B,wBAAwB,EACxB,yCAAyC,EACzC,6BAA6B,EAC7B,8CAA8C,EAC9C,8BAA8B,EAC9B,gCAAgC,EAChC,6BAA6B,EAC7B,oCAAoC,EACpC,uBAAuB,EACvB,0BAA0B,EAC1B,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,oCAAoC,EACpC,oBAAoB,EACpB,0BAA0B,GAE3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAGL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OA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BAAgB,CAAC;aAC7D,CAAC,CACH,CAAC;YACF,SAAS;QACX,CAAC;QAED,MAAM,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC;QAErD,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;YAClC,SAAS,CAAC,IAAI,CACZ,qBAAqB,CAAC;gBACpB,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC;aAChD,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,WAAW;QACX,SAAS;KACV,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,sBAAsB,CAAC,OAAe;IACnD,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QACtD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,CAEjE,CAAC;QACF,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAE1B,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClD,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;IAC/D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join, relative, resolve } from "node:path";
|
|
2
|
+
import { discoverConnectionSources } from "./connections.js";
|
|
2
3
|
import { createDiscoverErrorDiagnostic } from "./diagnostics.js";
|
|
3
4
|
import { classifyLocalSubagentEntry, getDirectoryEntryType, getSupportedModuleBaseName, normalizeLogicalPath, } from "./filesystem.js";
|
|
4
5
|
import { createToolNameDiagnostic, createUnsupportedRootDirectoryDiagnostics, DISCOVER_TOOLS_DIRECTORY_INVALID, discoverFlatModuleSource, discoverNamedModuleDirectorySources, discoverSystemSource, getPathType, readSortedDirectoryEntries, } from "./grammar.js";
|
|
@@ -105,6 +106,11 @@ async function discoverLocalSubagentPackage(input) {
|
|
|
105
106
|
slotName: "subagent",
|
|
106
107
|
});
|
|
107
108
|
diagnostics.push(...subagentModuleResult.diagnostics);
|
|
109
|
+
const connectionsResult = await discoverConnectionSources({
|
|
110
|
+
rootEntries,
|
|
111
|
+
rootPath: input.subagentRoot,
|
|
112
|
+
});
|
|
113
|
+
diagnostics.push(...connectionsResult.diagnostics);
|
|
108
114
|
const sandboxesResult = await discoverSandboxSources({
|
|
109
115
|
rootEntries,
|
|
110
116
|
rootPath: input.subagentRoot,
|
|
@@ -137,6 +143,7 @@ async function discoverLocalSubagentPackage(input) {
|
|
|
137
143
|
const manifestInput = {
|
|
138
144
|
agentRoot: input.subagentRoot,
|
|
139
145
|
appRoot: input.appRoot,
|
|
146
|
+
connections: connectionsResult.connections,
|
|
140
147
|
diagnostics,
|
|
141
148
|
lib: libResult.lib,
|
|
142
149
|
promptLayers: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover-subagent.js","sourceRoot":"","sources":["../../../src/discover/discover-subagent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"discover-subagent.js","sourceRoot":"","sources":["../../../src/discover/discover-subagent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAA2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AAE,KAAK,CAAC,UAAU;SAC7B,CAAC;KACH,CAAC;AACJ,CAAC;AAED,SAAS,sCAAsC,CAC7C,YAAoB,EACpB,WAAoC;IAEpC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QACnC,IACE,0BAA0B,CAAC,KAAK,CAAC,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACpE,6BAA6B,EAC7B,CAAC;YACD,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO;YACL,6BAA6B,CAAC;gBAC5B,IAAI,EAAE,yCAAyC;gBAC/C,OAAO,EAAE,uDAAuD,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI;gBAClG,UAAU,EAAE,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,CAAC;aAC3C,CAAC;SACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare const AGENT_ROOT_FILE_NAMES: readonly ["agent.ts", "agent.cts", "
|
|
|
15
15
|
/**
|
|
16
16
|
* Supported root-level directories inside an agent package.
|
|
17
17
|
*/
|
|
18
|
-
export declare const AGENT_ROOT_DIRECTORY_NAMES: readonly ["channels", "lib", "sandboxes", "skills", "system", "tools", "schedules", "subagents"];
|
|
18
|
+
export declare const AGENT_ROOT_DIRECTORY_NAMES: readonly ["channels", "connections", "lib", "sandboxes", "skills", "system", "tools", "schedules", "subagents"];
|
|
19
19
|
/**
|
|
20
20
|
* Supported local-subagent entry file names.
|
|
21
21
|
*/
|
|
@@ -39,11 +39,11 @@ export type DirectoryEntryType = "directory" | "file" | "other";
|
|
|
39
39
|
/**
|
|
40
40
|
* Classified root-level agent entry.
|
|
41
41
|
*/
|
|
42
|
-
export type AgentRootEntryKind = "agent-config-module" | "channels-directory" | "lib-directory" | "sandboxes-directory" | "schedules-directory" | "skills-directory" | "system-directory" | "system-markdown" | "system-module" | "tools-directory" | "unknown" | "subagents-directory";
|
|
42
|
+
export type AgentRootEntryKind = "agent-config-module" | "channels-directory" | "connections-directory" | "lib-directory" | "sandboxes-directory" | "schedules-directory" | "skills-directory" | "system-directory" | "system-markdown" | "system-module" | "tools-directory" | "unknown" | "subagents-directory";
|
|
43
43
|
/**
|
|
44
44
|
* Classified local-subagent root entry.
|
|
45
45
|
*/
|
|
46
|
-
export type LocalSubagentEntryKind = "invalid-schedules-directory" | "lib-directory" | "sandboxes-directory" | "skills-directory" | "system-directory" | "system-markdown" | "system-module" | "tools-directory" | "unknown" | "subagent-module" | "subagents-directory";
|
|
46
|
+
export type LocalSubagentEntryKind = "connections-directory" | "invalid-schedules-directory" | "lib-directory" | "sandboxes-directory" | "skills-directory" | "system-directory" | "system-markdown" | "system-module" | "tools-directory" | "unknown" | "subagent-module" | "subagents-directory";
|
|
47
47
|
/**
|
|
48
48
|
* Classified Agent Skills package entry.
|
|
49
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../src/discover/filesystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC;;GAEG;AACH,eAAO,MAAM,yCAAyC,yDAO5C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,yBAAyB,0CAA2C,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,qBAAqB,sLAcxB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../src/discover/filesystem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC;;GAEG;AACH,eAAO,MAAM,yCAAyC,yDAO5C,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,yBAAyB,0CAA2C,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,qBAAqB,sLAcxB,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|
|
41
|
+
"connections",
|
|
41
42
|
"lib",
|
|
42
43
|
"sandboxes",
|
|
43
44
|
"skills",
|
|
@@ -128,6 +129,9 @@ export function classifyAgentRootEntry(name, entryType) {
|
|
|
128
129
|
if (name === "channels") {
|
|
129
130
|
return "channels-directory";
|
|
130
131
|
}
|
|
132
|
+
if (name === "connections") {
|
|
133
|
+
return "connections-directory";
|
|
134
|
+
}
|
|
131
135
|
if (name === "lib") {
|
|
132
136
|
return "lib-directory";
|
|
133
137
|
}
|
|
@@ -169,6 +173,9 @@ export function classifyLocalSubagentEntry(name, entryType) {
|
|
|
169
173
|
return "unknown";
|
|
170
174
|
}
|
|
171
175
|
if (entryType === "directory") {
|
|
176
|
+
if (name === "connections") {
|
|
177
|
+
return "connections-directory";
|
|
178
|
+
}
|
|
172
179
|
if (name === "lib") {
|
|
173
180
|
return "lib-directory";
|
|
174
181
|
}
|