experimental-ash 0.1.0-alpha.1
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/bin/ash.d.ts +59 -0
- package/bin/ash.js +124 -0
- package/dist/src/cli/commands/info.d.ts +9 -0
- package/dist/src/cli/commands/info.d.ts.map +1 -0
- package/dist/src/cli/commands/info.js +200 -0
- package/dist/src/cli/commands/info.js.map +1 -0
- package/dist/src/cli/dev/environment.d.ts +11 -0
- package/dist/src/cli/dev/environment.d.ts.map +1 -0
- package/dist/src/cli/dev/environment.js +31 -0
- package/dist/src/cli/dev/environment.js.map +1 -0
- package/dist/src/cli/dev/input.d.ts +20 -0
- package/dist/src/cli/dev/input.d.ts.map +1 -0
- package/dist/src/cli/dev/input.js +31 -0
- package/dist/src/cli/dev/input.js.map +1 -0
- package/dist/src/cli/dev/live-stream.d.ts +2 -0
- package/dist/src/cli/dev/live-stream.d.ts.map +1 -0
- package/dist/src/cli/dev/live-stream.js +2 -0
- package/dist/src/cli/dev/live-stream.js.map +1 -0
- package/dist/src/cli/dev/repl.d.ts +8 -0
- package/dist/src/cli/dev/repl.d.ts.map +1 -0
- package/dist/src/cli/dev/repl.js +327 -0
- package/dist/src/cli/dev/repl.js.map +1 -0
- package/dist/src/cli/dev/request-headers.d.ts +2 -0
- package/dist/src/cli/dev/request-headers.d.ts.map +1 -0
- package/dist/src/cli/dev/request-headers.js +2 -0
- package/dist/src/cli/dev/request-headers.js.map +1 -0
- package/dist/src/cli/dev/send-message.d.ts +2 -0
- package/dist/src/cli/dev/send-message.d.ts.map +1 -0
- package/dist/src/cli/dev/send-message.js +2 -0
- package/dist/src/cli/dev/send-message.js.map +1 -0
- package/dist/src/cli/dev/session.d.ts +2 -0
- package/dist/src/cli/dev/session.d.ts.map +1 -0
- package/dist/src/cli/dev/session.js +2 -0
- package/dist/src/cli/dev/session.js.map +1 -0
- package/dist/src/cli/dev/stream.d.ts +2 -0
- package/dist/src/cli/dev/stream.d.ts.map +1 -0
- package/dist/src/cli/dev/stream.js +2 -0
- package/dist/src/cli/dev/stream.js.map +1 -0
- package/dist/src/cli/dev/terminal.d.ts +20 -0
- package/dist/src/cli/dev/terminal.d.ts.map +1 -0
- package/dist/src/cli/dev/terminal.js +114 -0
- package/dist/src/cli/dev/terminal.js.map +1 -0
- package/dist/src/cli/dev/url.d.ts +6 -0
- package/dist/src/cli/dev/url.d.ts.map +1 -0
- package/dist/src/cli/dev/url.js +28 -0
- package/dist/src/cli/dev/url.js.map +1 -0
- package/dist/src/cli/run.d.ts +16 -0
- package/dist/src/cli/run.d.ts.map +1 -0
- package/dist/src/cli/run.js +209 -0
- package/dist/src/cli/run.js.map +1 -0
- package/dist/src/cli/ui/output.d.ts +62 -0
- package/dist/src/cli/ui/output.d.ts.map +1 -0
- package/dist/src/cli/ui/output.js +84 -0
- package/dist/src/cli/ui/output.js.map +1 -0
- package/dist/src/compiler/artifacts.d.ts +124 -0
- package/dist/src/compiler/artifacts.d.ts.map +1 -0
- package/dist/src/compiler/artifacts.js +180 -0
- package/dist/src/compiler/artifacts.js.map +1 -0
- package/dist/src/compiler/compile-agent.d.ts +40 -0
- package/dist/src/compiler/compile-agent.d.ts.map +1 -0
- package/dist/src/compiler/compile-agent.js +47 -0
- package/dist/src/compiler/compile-agent.js.map +1 -0
- package/dist/src/compiler/context.d.ts +85 -0
- package/dist/src/compiler/context.d.ts.map +1 -0
- package/dist/src/compiler/context.js +128 -0
- package/dist/src/compiler/context.js.map +1 -0
- package/dist/src/compiler/json-schema.d.ts +2 -0
- package/dist/src/compiler/json-schema.d.ts.map +1 -0
- package/dist/src/compiler/json-schema.js +2 -0
- package/dist/src/compiler/json-schema.js.map +1 -0
- package/dist/src/compiler/manifest.d.ts +196 -0
- package/dist/src/compiler/manifest.d.ts.map +1 -0
- package/dist/src/compiler/manifest.js +246 -0
- package/dist/src/compiler/manifest.js.map +1 -0
- package/dist/src/compiler/module-map.d.ts +37 -0
- package/dist/src/compiler/module-map.d.ts.map +1 -0
- package/dist/src/compiler/module-map.js +148 -0
- package/dist/src/compiler/module-map.js.map +1 -0
- package/dist/src/compiler/normalize-manifest.d.ts +20 -0
- package/dist/src/compiler/normalize-manifest.d.ts.map +1 -0
- package/dist/src/compiler/normalize-manifest.js +315 -0
- package/dist/src/compiler/normalize-manifest.js.map +1 -0
- package/dist/src/compiler/resource-files.d.ts +20 -0
- package/dist/src/compiler/resource-files.d.ts.map +1 -0
- package/dist/src/compiler/resource-files.js +29 -0
- package/dist/src/compiler/resource-files.js.map +1 -0
- package/dist/src/compiler/workspace.d.ts +58 -0
- package/dist/src/compiler/workspace.d.ts.map +1 -0
- package/dist/src/compiler/workspace.js +70 -0
- package/dist/src/compiler/workspace.js.map +1 -0
- package/dist/src/discover/context.d.ts +35 -0
- package/dist/src/discover/context.d.ts.map +1 -0
- package/dist/src/discover/context.js +88 -0
- package/dist/src/discover/context.js.map +1 -0
- package/dist/src/discover/diagnostics.d.ts +74 -0
- package/dist/src/discover/diagnostics.d.ts.map +1 -0
- package/dist/src/discover/diagnostics.js +98 -0
- package/dist/src/discover/diagnostics.js.map +1 -0
- package/dist/src/discover/discover-agent.d.ts +29 -0
- package/dist/src/discover/discover-agent.d.ts.map +1 -0
- package/dist/src/discover/discover-agent.js +175 -0
- package/dist/src/discover/discover-agent.js.map +1 -0
- package/dist/src/discover/discover-subagent.d.ts +31 -0
- package/dist/src/discover/discover-subagent.d.ts.map +1 -0
- package/dist/src/discover/discover-subagent.js +175 -0
- package/dist/src/discover/discover-subagent.js.map +1 -0
- package/dist/src/discover/discover-worker.d.ts +31 -0
- package/dist/src/discover/discover-worker.d.ts.map +1 -0
- package/dist/src/discover/discover-worker.js +376 -0
- package/dist/src/discover/discover-worker.js.map +1 -0
- package/dist/src/discover/filesystem.d.ts +108 -0
- package/dist/src/discover/filesystem.d.ts.map +1 -0
- package/dist/src/discover/filesystem.js +270 -0
- package/dist/src/discover/filesystem.js.map +1 -0
- package/dist/src/discover/grammar.d.ts +104 -0
- package/dist/src/discover/grammar.d.ts.map +1 -0
- package/dist/src/discover/grammar.js +261 -0
- package/dist/src/discover/grammar.js.map +1 -0
- package/dist/src/discover/lib.d.ts +35 -0
- package/dist/src/discover/lib.d.ts.map +1 -0
- package/dist/src/discover/lib.js +81 -0
- package/dist/src/discover/lib.js.map +1 -0
- package/dist/src/discover/manifest.d.ts +217 -0
- package/dist/src/discover/manifest.d.ts.map +1 -0
- package/dist/src/discover/manifest.js +155 -0
- package/dist/src/discover/manifest.js.map +1 -0
- package/dist/src/discover/markdown.d.ts +17 -0
- package/dist/src/discover/markdown.d.ts.map +1 -0
- package/dist/src/discover/markdown.js +19 -0
- package/dist/src/discover/markdown.js.map +1 -0
- package/dist/src/discover/project.d.ts +25 -0
- package/dist/src/discover/project.d.ts.map +1 -0
- package/dist/src/discover/project.js +115 -0
- package/dist/src/discover/project.js.map +1 -0
- package/dist/src/discover/resource-tree.d.ts +18 -0
- package/dist/src/discover/resource-tree.d.ts.map +1 -0
- package/dist/src/discover/resource-tree.js +43 -0
- package/dist/src/discover/resource-tree.js.map +1 -0
- package/dist/src/discover/skills.d.ts +32 -0
- package/dist/src/discover/skills.d.ts.map +1 -0
- package/dist/src/discover/skills.js +323 -0
- package/dist/src/discover/skills.js.map +1 -0
- package/dist/src/discover/slots.d.ts +30 -0
- package/dist/src/discover/slots.d.ts.map +1 -0
- package/dist/src/discover/slots.js +69 -0
- package/dist/src/discover/slots.js.map +1 -0
- package/dist/src/discover/workspace.d.ts +35 -0
- package/dist/src/discover/workspace.d.ts.map +1 -0
- package/dist/src/discover/workspace.js +61 -0
- package/dist/src/discover/workspace.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/application/compiled-artifacts.d.ts +23 -0
- package/dist/src/internal/application/compiled-artifacts.d.ts.map +1 -0
- package/dist/src/internal/application/compiled-artifacts.js +152 -0
- package/dist/src/internal/application/compiled-artifacts.js.map +1 -0
- package/dist/src/internal/application/package.d.ts +19 -0
- package/dist/src/internal/application/package.d.ts.map +1 -0
- package/dist/src/internal/application/package.js +110 -0
- package/dist/src/internal/application/package.js.map +1 -0
- package/dist/src/internal/application/paths.d.ts +33 -0
- package/dist/src/internal/application/paths.d.ts.map +1 -0
- package/dist/src/internal/application/paths.js +57 -0
- package/dist/src/internal/application/paths.js.map +1 -0
- package/dist/src/internal/authored-definition/core.d.ts +30 -0
- package/dist/src/internal/authored-definition/core.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/core.js +105 -0
- package/dist/src/internal/authored-definition/core.js.map +1 -0
- package/dist/src/internal/authored-definition/sandbox.d.ts +10 -0
- package/dist/src/internal/authored-definition/sandbox.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/sandbox.js +22 -0
- package/dist/src/internal/authored-definition/sandbox.js.map +1 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts +20 -0
- package/dist/src/internal/authored-definition/schema-backed.d.ts.map +1 -0
- package/dist/src/internal/authored-definition/schema-backed.js +41 -0
- package/dist/src/internal/authored-definition/schema-backed.js.map +1 -0
- package/dist/src/internal/authored-module.d.ts +42 -0
- package/dist/src/internal/authored-module.d.ts.map +1 -0
- package/dist/src/internal/authored-module.js +88 -0
- package/dist/src/internal/authored-module.js.map +1 -0
- package/dist/src/internal/json-schema.d.ts +6 -0
- package/dist/src/internal/json-schema.d.ts.map +1 -0
- package/dist/src/internal/json-schema.js +14 -0
- package/dist/src/internal/json-schema.js.map +1 -0
- package/dist/src/internal/logical-paths.d.ts +14 -0
- package/dist/src/internal/logical-paths.d.ts.map +1 -0
- package/dist/src/internal/logical-paths.js +26 -0
- package/dist/src/internal/logical-paths.js.map +1 -0
- package/dist/src/internal/message/builder.d.ts +28 -0
- package/dist/src/internal/message/builder.d.ts.map +1 -0
- package/dist/src/internal/message/builder.js +200 -0
- package/dist/src/internal/message/builder.js.map +1 -0
- package/dist/src/internal/message/handler.d.ts +9 -0
- package/dist/src/internal/message/handler.d.ts.map +1 -0
- package/dist/src/internal/message/handler.js +192 -0
- package/dist/src/internal/message/handler.js.map +1 -0
- package/dist/src/internal/message/health.d.ts +5 -0
- package/dist/src/internal/message/health.d.ts.map +1 -0
- package/dist/src/internal/message/health.js +13 -0
- package/dist/src/internal/message/health.js.map +1 -0
- package/dist/src/internal/message/nitro-route-shims.d.ts +6 -0
- package/dist/src/internal/message/nitro-route-shims.d.ts.map +1 -0
- package/dist/src/internal/message/nitro-route-shims.js +38 -0
- package/dist/src/internal/message/nitro-route-shims.js.map +1 -0
- package/dist/src/internal/message/reference.d.ts +24 -0
- package/dist/src/internal/message/reference.d.ts.map +1 -0
- package/dist/src/internal/message/reference.js +34 -0
- package/dist/src/internal/message/reference.js.map +1 -0
- package/dist/src/internal/message/rewrite-generated-imports.d.ts +15 -0
- package/dist/src/internal/message/rewrite-generated-imports.d.ts.map +1 -0
- package/dist/src/internal/message/rewrite-generated-imports.js +59 -0
- package/dist/src/internal/message/rewrite-generated-imports.js.map +1 -0
- package/dist/src/internal/message/routes.d.ts +2 -0
- package/dist/src/internal/message/routes.d.ts.map +1 -0
- package/dist/src/internal/message/routes.js +2 -0
- package/dist/src/internal/message/routes.js.map +1 -0
- package/dist/src/internal/message/vercel-workflow-output.d.ts +24 -0
- package/dist/src/internal/message/vercel-workflow-output.d.ts.map +1 -0
- package/dist/src/internal/message/vercel-workflow-output.js +82 -0
- package/dist/src/internal/message/vercel-workflow-output.js.map +1 -0
- package/dist/src/internal/message/workflow/action-step-types.d.ts +11 -0
- package/dist/src/internal/message/workflow/action-step-types.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/action-step-types.js +2 -0
- package/dist/src/internal/message/workflow/action-step-types.js.map +1 -0
- package/dist/src/internal/message/workflow/action-steps.d.ts +28 -0
- package/dist/src/internal/message/workflow/action-steps.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/action-steps.js +136 -0
- package/dist/src/internal/message/workflow/action-steps.js.map +1 -0
- package/dist/src/internal/message/workflow/handle-message.d.ts +14 -0
- package/dist/src/internal/message/workflow/handle-message.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/handle-message.js +84 -0
- package/dist/src/internal/message/workflow/handle-message.js.map +1 -0
- package/dist/src/internal/message/workflow/handle-schedule.d.ts +23 -0
- package/dist/src/internal/message/workflow/handle-schedule.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/handle-schedule.js +62 -0
- package/dist/src/internal/message/workflow/handle-schedule.js.map +1 -0
- package/dist/src/internal/message/workflow/handle-subagent.d.ts +7 -0
- package/dist/src/internal/message/workflow/handle-subagent.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/handle-subagent.js +161 -0
- package/dist/src/internal/message/workflow/handle-subagent.js.map +1 -0
- package/dist/src/internal/message/workflow/session-callbacks.d.ts +11 -0
- package/dist/src/internal/message/workflow/session-callbacks.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/session-callbacks.js +127 -0
- package/dist/src/internal/message/workflow/session-callbacks.js.map +1 -0
- package/dist/src/internal/message/workflow/session.d.ts +59 -0
- package/dist/src/internal/message/workflow/session.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/session.js +40 -0
- package/dist/src/internal/message/workflow/session.js.map +1 -0
- package/dist/src/internal/message/workflow/step-diagnostics.d.ts +14 -0
- package/dist/src/internal/message/workflow/step-diagnostics.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/step-diagnostics.js +79 -0
- package/dist/src/internal/message/workflow/step-diagnostics.js.map +1 -0
- package/dist/src/internal/message/workflow/steps.d.ts +7 -0
- package/dist/src/internal/message/workflow/steps.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/steps.js +4 -0
- package/dist/src/internal/message/workflow/steps.js.map +1 -0
- package/dist/src/internal/message/workflow/stream-callbacks.d.ts +10 -0
- package/dist/src/internal/message/workflow/stream-callbacks.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/stream-callbacks.js +58 -0
- package/dist/src/internal/message/workflow/stream-callbacks.js.map +1 -0
- package/dist/src/internal/message/workflow/stream-events.d.ts +97 -0
- package/dist/src/internal/message/workflow/stream-events.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/stream-events.js +233 -0
- package/dist/src/internal/message/workflow/stream-events.js.map +1 -0
- package/dist/src/internal/message/workflow/stream.d.ts +2 -0
- package/dist/src/internal/message/workflow/stream.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/stream.js +2 -0
- package/dist/src/internal/message/workflow/stream.js.map +1 -0
- package/dist/src/internal/message/workflow/subagent-steps.d.ts +43 -0
- package/dist/src/internal/message/workflow/subagent-steps.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/subagent-steps.js +119 -0
- package/dist/src/internal/message/workflow/subagent-steps.js.map +1 -0
- package/dist/src/internal/message/workflow/subagent.d.ts +44 -0
- package/dist/src/internal/message/workflow/subagent.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/subagent.js +2 -0
- package/dist/src/internal/message/workflow/subagent.js.map +1 -0
- package/dist/src/internal/message/workflow/turn-steps.d.ts +39 -0
- package/dist/src/internal/message/workflow/turn-steps.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/turn-steps.js +134 -0
- package/dist/src/internal/message/workflow/turn-steps.js.map +1 -0
- package/dist/src/internal/message/workflow/workspace-merge.d.ts +9 -0
- package/dist/src/internal/message/workflow/workspace-merge.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/workspace-merge.js +44 -0
- package/dist/src/internal/message/workflow/workspace-merge.js.map +1 -0
- package/dist/src/internal/message/workflow/workspace-step.d.ts +11 -0
- package/dist/src/internal/message/workflow/workspace-step.d.ts.map +1 -0
- package/dist/src/internal/message/workflow/workspace-step.js +13 -0
- package/dist/src/internal/message/workflow/workspace-step.js.map +1 -0
- package/dist/src/internal/nitro/host/build-application.d.ts +5 -0
- package/dist/src/internal/nitro/host/build-application.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/build-application.js +67 -0
- package/dist/src/internal/nitro/host/build-application.js.map +1 -0
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts +8 -0
- package/dist/src/internal/nitro/host/configure-message-routes.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/configure-message-routes.js +75 -0
- package/dist/src/internal/nitro/host/configure-message-routes.js.map +1 -0
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts +8 -0
- package/dist/src/internal/nitro/host/create-application-nitro.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/create-application-nitro.js +81 -0
- package/dist/src/internal/nitro/host/create-application-nitro.js.map +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts +7 -0
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js +33 -0
- package/dist/src/internal/nitro/host/prepare-application-host.js.map +1 -0
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts +33 -0
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js +105 -0
- package/dist/src/internal/nitro/host/prewarm-vercel-sandboxes.js.map +1 -0
- package/dist/src/internal/nitro/host/start-development-server.d.ts +9 -0
- package/dist/src/internal/nitro/host/start-development-server.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/start-development-server.js +32 -0
- package/dist/src/internal/nitro/host/start-development-server.js.map +1 -0
- package/dist/src/internal/nitro/host/types.d.ts +20 -0
- package/dist/src/internal/nitro/host/types.d.ts.map +1 -0
- package/dist/src/internal/nitro/host/types.js +2 -0
- package/dist/src/internal/nitro/host/types.js.map +1 -0
- package/dist/src/internal/nitro/host.d.ts +4 -0
- package/dist/src/internal/nitro/host.d.ts.map +1 -0
- package/dist/src/internal/nitro/host.js +3 -0
- package/dist/src/internal/nitro/host.js.map +1 -0
- package/dist/src/internal/nitro/routes/health.d.ts +9 -0
- package/dist/src/internal/nitro/routes/health.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/health.js +8 -0
- package/dist/src/internal/nitro/routes/health.js.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts +11 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js +303 -0
- package/dist/src/internal/nitro/routes/home-page/build-home-page-view-model.js.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts +27 -0
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.js +55 -0
- package/dist/src/internal/nitro/routes/home-page/load-home-page-data.js.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts +9 -0
- package/dist/src/internal/nitro/routes/home-page/render-home-page.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js +15 -0
- package/dist/src/internal/nitro/routes/home-page/render-home-page.js.map +1 -0
- package/dist/src/internal/nitro/routes/index.d.ts +12 -0
- package/dist/src/internal/nitro/routes/index.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/index.html +548 -0
- package/dist/src/internal/nitro/routes/index.js +45 -0
- package/dist/src/internal/nitro/routes/index.js.map +1 -0
- package/dist/src/internal/nitro/routes/message.d.ts +9 -0
- package/dist/src/internal/nitro/routes/message.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/message.js +8 -0
- package/dist/src/internal/nitro/routes/message.js.map +1 -0
- package/dist/src/internal/nitro/routes/run-stream.d.ts +14 -0
- package/dist/src/internal/nitro/routes/run-stream.d.ts.map +1 -0
- package/dist/src/internal/nitro/routes/run-stream.js +15 -0
- package/dist/src/internal/nitro/routes/run-stream.js.map +1 -0
- package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts +16 -0
- package/dist/src/internal/nitro/shims/schedule-task-handler.d.ts.map +1 -0
- package/dist/src/internal/nitro/shims/schedule-task-handler.js +39 -0
- package/dist/src/internal/nitro/shims/schedule-task-handler.js.map +1 -0
- package/dist/src/internal/object.d.ts +18 -0
- package/dist/src/internal/object.d.ts.map +1 -0
- package/dist/src/internal/object.js +17 -0
- package/dist/src/internal/object.js.map +1 -0
- package/dist/src/internal/runtime-model.d.ts +6 -0
- package/dist/src/internal/runtime-model.d.ts.map +1 -0
- package/dist/src/internal/runtime-model.js +6 -0
- package/dist/src/internal/runtime-model.js.map +1 -0
- package/dist/src/internal/source-ref.d.ts +48 -0
- package/dist/src/internal/source-ref.d.ts.map +1 -0
- package/dist/src/internal/source-ref.js +2 -0
- package/dist/src/internal/source-ref.js.map +1 -0
- package/dist/src/protocol/message.d.ts +356 -0
- package/dist/src/protocol/message.d.ts.map +1 -0
- package/dist/src/protocol/message.js +233 -0
- package/dist/src/protocol/message.js.map +1 -0
- package/dist/src/protocol/routes.d.ts +22 -0
- package/dist/src/protocol/routes.d.ts.map +1 -0
- package/dist/src/protocol/routes.js +24 -0
- package/dist/src/protocol/routes.js.map +1 -0
- package/dist/src/public/agent.d.ts +2 -0
- package/dist/src/public/agent.d.ts.map +1 -0
- package/dist/src/public/agent.js +2 -0
- package/dist/src/public/agent.js.map +1 -0
- package/dist/src/public/definitions/agent.d.ts +18 -0
- package/dist/src/public/definitions/agent.d.ts.map +1 -0
- package/dist/src/public/definitions/agent.js +7 -0
- package/dist/src/public/definitions/agent.js.map +1 -0
- package/dist/src/public/definitions/context.d.ts +16 -0
- package/dist/src/public/definitions/context.d.ts.map +1 -0
- package/dist/src/public/definitions/context.js +8 -0
- package/dist/src/public/definitions/context.js.map +1 -0
- package/dist/src/public/definitions/memory.d.ts +20 -0
- package/dist/src/public/definitions/memory.d.ts.map +1 -0
- package/dist/src/public/definitions/memory.js +8 -0
- package/dist/src/public/definitions/memory.js.map +1 -0
- package/dist/src/public/definitions/sandbox.d.ts +33 -0
- package/dist/src/public/definitions/sandbox.d.ts.map +1 -0
- package/dist/src/public/definitions/sandbox.js +7 -0
- package/dist/src/public/definitions/sandbox.js.map +1 -0
- package/dist/src/public/definitions/schedule.d.ts +14 -0
- package/dist/src/public/definitions/schedule.d.ts.map +1 -0
- package/dist/src/public/definitions/schedule.js +8 -0
- package/dist/src/public/definitions/schedule.js.map +1 -0
- package/dist/src/public/definitions/skill.d.ts +18 -0
- package/dist/src/public/definitions/skill.d.ts.map +1 -0
- package/dist/src/public/definitions/skill.js +8 -0
- package/dist/src/public/definitions/skill.js.map +1 -0
- package/dist/src/public/definitions/soul.d.ts +20 -0
- package/dist/src/public/definitions/soul.d.ts.map +1 -0
- package/dist/src/public/definitions/soul.js +8 -0
- package/dist/src/public/definitions/soul.js.map +1 -0
- package/dist/src/public/definitions/source.d.ts +9 -0
- package/dist/src/public/definitions/source.d.ts.map +1 -0
- package/dist/src/public/definitions/source.js +2 -0
- package/dist/src/public/definitions/source.js.map +1 -0
- package/dist/src/public/definitions/standard-json-schema.d.ts +15 -0
- package/dist/src/public/definitions/standard-json-schema.d.ts.map +1 -0
- package/dist/src/public/definitions/standard-json-schema.js +2 -0
- package/dist/src/public/definitions/standard-json-schema.js.map +1 -0
- package/dist/src/public/definitions/standard-schema.d.ts +69 -0
- package/dist/src/public/definitions/standard-schema.d.ts.map +1 -0
- package/dist/src/public/definitions/standard-schema.js +197 -0
- package/dist/src/public/definitions/standard-schema.js.map +1 -0
- package/dist/src/public/definitions/subagent.d.ts +16 -0
- package/dist/src/public/definitions/subagent.d.ts.map +1 -0
- package/dist/src/public/definitions/subagent.js +7 -0
- package/dist/src/public/definitions/subagent.js.map +1 -0
- package/dist/src/public/definitions/system.d.ts +13 -0
- package/dist/src/public/definitions/system.d.ts.map +1 -0
- package/dist/src/public/definitions/system.js +8 -0
- package/dist/src/public/definitions/system.js.map +1 -0
- package/dist/src/public/definitions/tool.d.ts +21 -0
- package/dist/src/public/definitions/tool.d.ts.map +1 -0
- package/dist/src/public/definitions/tool.js +4 -0
- package/dist/src/public/definitions/tool.js.map +1 -0
- package/dist/src/public/definitions/worker.d.ts +171 -0
- package/dist/src/public/definitions/worker.d.ts.map +1 -0
- package/dist/src/public/definitions/worker.js +13 -0
- package/dist/src/public/definitions/worker.js.map +1 -0
- package/dist/src/public/helpers/markdown.d.ts +55 -0
- package/dist/src/public/helpers/markdown.d.ts.map +1 -0
- package/dist/src/public/helpers/markdown.js +193 -0
- package/dist/src/public/helpers/markdown.js.map +1 -0
- package/dist/src/public/index.d.ts +12 -0
- package/dist/src/public/index.d.ts.map +1 -0
- package/dist/src/public/index.js +11 -0
- package/dist/src/public/index.js.map +1 -0
- package/dist/src/runtime/actions/activate-skill.d.ts +19 -0
- package/dist/src/runtime/actions/activate-skill.d.ts.map +1 -0
- package/dist/src/runtime/actions/activate-skill.js +74 -0
- package/dist/src/runtime/actions/activate-skill.js.map +1 -0
- package/dist/src/runtime/actions/execute-action.d.ts +34 -0
- package/dist/src/runtime/actions/execute-action.d.ts.map +1 -0
- package/dist/src/runtime/actions/execute-action.js +42 -0
- package/dist/src/runtime/actions/execute-action.js.map +1 -0
- package/dist/src/runtime/actions/types.d.ts +251 -0
- package/dist/src/runtime/actions/types.d.ts.map +1 -0
- package/dist/src/runtime/actions/types.js +210 -0
- package/dist/src/runtime/actions/types.js.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model.d.ts +8 -0
- package/dist/src/runtime/agent/bootstrap-model.d.ts.map +1 -0
- package/dist/src/runtime/agent/bootstrap-model.js +106 -0
- package/dist/src/runtime/agent/bootstrap-model.js.map +1 -0
- package/dist/src/runtime/agent/bootstrap.d.ts +71 -0
- package/dist/src/runtime/agent/bootstrap.d.ts.map +1 -0
- package/dist/src/runtime/agent/bootstrap.js +130 -0
- package/dist/src/runtime/agent/bootstrap.js.map +1 -0
- package/dist/src/runtime/agent/mock-model-adapter.d.ts +22 -0
- package/dist/src/runtime/agent/mock-model-adapter.d.ts.map +1 -0
- package/dist/src/runtime/agent/mock-model-adapter.js +403 -0
- package/dist/src/runtime/agent/mock-model-adapter.js.map +1 -0
- package/dist/src/runtime/agent/resolve-model.d.ts +12 -0
- package/dist/src/runtime/agent/resolve-model.d.ts.map +1 -0
- package/dist/src/runtime/agent/resolve-model.js +49 -0
- package/dist/src/runtime/agent/resolve-model.js.map +1 -0
- package/dist/src/runtime/compiled-artifacts-source.d.ts +35 -0
- package/dist/src/runtime/compiled-artifacts-source.d.ts.map +1 -0
- package/dist/src/runtime/compiled-artifacts-source.js +30 -0
- package/dist/src/runtime/compiled-artifacts-source.js.map +1 -0
- package/dist/src/runtime/graph.d.ts +34 -0
- package/dist/src/runtime/graph.d.ts.map +1 -0
- package/dist/src/runtime/graph.js +18 -0
- package/dist/src/runtime/graph.js.map +1 -0
- package/dist/src/runtime/harness/contracts.d.ts +173 -0
- package/dist/src/runtime/harness/contracts.d.ts.map +1 -0
- package/dist/src/runtime/harness/contracts.js +121 -0
- package/dist/src/runtime/harness/contracts.js.map +1 -0
- package/dist/src/runtime/harness/hosts/json-protocol.d.ts +50 -0
- package/dist/src/runtime/harness/hosts/json-protocol.d.ts.map +1 -0
- package/dist/src/runtime/harness/hosts/json-protocol.js +42 -0
- package/dist/src/runtime/harness/hosts/json-protocol.js.map +1 -0
- package/dist/src/runtime/harness/hosts/tool-loop.d.ts +8 -0
- package/dist/src/runtime/harness/hosts/tool-loop.d.ts.map +1 -0
- package/dist/src/runtime/harness/hosts/tool-loop.js +17 -0
- package/dist/src/runtime/harness/hosts/tool-loop.js.map +1 -0
- package/dist/src/runtime/harness/hosts/types.d.ts +14 -0
- package/dist/src/runtime/harness/hosts/types.d.ts.map +1 -0
- package/dist/src/runtime/harness/hosts/types.js +2 -0
- package/dist/src/runtime/harness/hosts/types.js.map +1 -0
- package/dist/src/runtime/harness/run-turn.d.ts +111 -0
- package/dist/src/runtime/harness/run-turn.d.ts.map +1 -0
- package/dist/src/runtime/harness/run-turn.js +92 -0
- package/dist/src/runtime/harness/run-turn.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/create-harness.d.ts +31 -0
- package/dist/src/runtime/harness/tool-loop/create-harness.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/create-harness.js +276 -0
- package/dist/src/runtime/harness/tool-loop/create-harness.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts +12 -0
- package/dist/src/runtime/harness/tool-loop/internal/action-results.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/action-results.js +68 -0
- package/dist/src/runtime/harness/tool-loop/internal/action-results.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts +16 -0
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js +115 -0
- package/dist/src/runtime/harness/tool-loop/internal/generate-with-retries.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts +5 -0
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.js +5 -0
- package/dist/src/runtime/harness/tool-loop/internal/model-messages.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts +13 -0
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js +190 -0
- package/dist/src/runtime/harness/tool-loop/internal/provider-messages.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.d.ts +19 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.js +117 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-bash-files.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts +12 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js +58 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-history.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.d.ts +23 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.js +67 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-skills.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts +31 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js +86 -0
- package/dist/src/runtime/harness/tool-loop/internal/runtime-tools.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/state.d.ts +47 -0
- package/dist/src/runtime/harness/tool-loop/internal/state.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/state.js +71 -0
- package/dist/src/runtime/harness/tool-loop/internal/state.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts +36 -0
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.js +70 -0
- package/dist/src/runtime/harness/tool-loop/internal/stream-result.js.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts +94 -0
- package/dist/src/runtime/harness/tool-loop/internal/transcript.d.ts.map +1 -0
- package/dist/src/runtime/harness/tool-loop/internal/transcript.js +107 -0
- package/dist/src/runtime/harness/tool-loop/internal/transcript.js.map +1 -0
- package/dist/src/runtime/harness/types.d.ts +36 -0
- package/dist/src/runtime/harness/types.d.ts.map +1 -0
- package/dist/src/runtime/harness/types.js +2 -0
- package/dist/src/runtime/harness/types.js.map +1 -0
- package/dist/src/runtime/harness/workspace/ensure.d.ts +33 -0
- package/dist/src/runtime/harness/workspace/ensure.d.ts.map +1 -0
- package/dist/src/runtime/harness/workspace/ensure.js +280 -0
- package/dist/src/runtime/harness/workspace/ensure.js.map +1 -0
- package/dist/src/runtime/harness/workspace/project-workspace-overlay.d.ts +19 -0
- package/dist/src/runtime/harness/workspace/project-workspace-overlay.d.ts.map +1 -0
- package/dist/src/runtime/harness/workspace/project-workspace-overlay.js +219 -0
- package/dist/src/runtime/harness/workspace/project-workspace-overlay.js.map +1 -0
- package/dist/src/runtime/harness/workspace/spec.d.ts +59 -0
- package/dist/src/runtime/harness/workspace/spec.d.ts.map +1 -0
- package/dist/src/runtime/harness/workspace/spec.js +133 -0
- package/dist/src/runtime/harness/workspace/spec.js.map +1 -0
- package/dist/src/runtime/harness/workspace/state.d.ts +27 -0
- package/dist/src/runtime/harness/workspace/state.d.ts.map +1 -0
- package/dist/src/runtime/harness/workspace/state.js +144 -0
- package/dist/src/runtime/harness/workspace/state.js.map +1 -0
- package/dist/src/runtime/harness/workspace/types.d.ts +134 -0
- package/dist/src/runtime/harness/workspace/types.d.ts.map +1 -0
- package/dist/src/runtime/harness/workspace/types.js +19 -0
- package/dist/src/runtime/harness/workspace/types.js.map +1 -0
- package/dist/src/runtime/json.d.ts +36 -0
- package/dist/src/runtime/json.d.ts.map +1 -0
- package/dist/src/runtime/json.js +55 -0
- package/dist/src/runtime/json.js.map +1 -0
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts +35 -0
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts.map +1 -0
- package/dist/src/runtime/loaders/bundled-artifacts.js +20 -0
- package/dist/src/runtime/loaders/bundled-artifacts.js.map +1 -0
- package/dist/src/runtime/loaders/compile-metadata.d.ts +22 -0
- package/dist/src/runtime/loaders/compile-metadata.d.ts.map +1 -0
- package/dist/src/runtime/loaders/compile-metadata.js +94 -0
- package/dist/src/runtime/loaders/compile-metadata.js.map +1 -0
- package/dist/src/runtime/loaders/context.d.ts +36 -0
- package/dist/src/runtime/loaders/context.d.ts.map +1 -0
- package/dist/src/runtime/loaders/context.js +116 -0
- package/dist/src/runtime/loaders/context.js.map +1 -0
- package/dist/src/runtime/loaders/manifest.d.ts +22 -0
- package/dist/src/runtime/loaders/manifest.d.ts.map +1 -0
- package/dist/src/runtime/loaders/manifest.js +57 -0
- package/dist/src/runtime/loaders/manifest.js.map +1 -0
- package/dist/src/runtime/loaders/module-map.d.ts +22 -0
- package/dist/src/runtime/loaders/module-map.d.ts.map +1 -0
- package/dist/src/runtime/loaders/module-map.js +56 -0
- package/dist/src/runtime/loaders/module-map.js.map +1 -0
- package/dist/src/runtime/loaders/resolved-agent.d.ts +28 -0
- package/dist/src/runtime/loaders/resolved-agent.d.ts.map +1 -0
- package/dist/src/runtime/loaders/resolved-agent.js +39 -0
- package/dist/src/runtime/loaders/resolved-agent.js.map +1 -0
- package/dist/src/runtime/loaders/workspace.d.ts +37 -0
- package/dist/src/runtime/loaders/workspace.d.ts.map +1 -0
- package/dist/src/runtime/loaders/workspace.js +104 -0
- package/dist/src/runtime/loaders/workspace.js.map +1 -0
- package/dist/src/runtime/prompt/compose.d.ts +17 -0
- package/dist/src/runtime/prompt/compose.d.ts.map +1 -0
- package/dist/src/runtime/prompt/compose.js +42 -0
- package/dist/src/runtime/prompt/compose.js.map +1 -0
- package/dist/src/runtime/resolve-agent-graph.d.ts +34 -0
- package/dist/src/runtime/resolve-agent-graph.d.ts.map +1 -0
- package/dist/src/runtime/resolve-agent-graph.js +181 -0
- package/dist/src/runtime/resolve-agent-graph.js.map +1 -0
- package/dist/src/runtime/resolve-agent.d.ts +30 -0
- package/dist/src/runtime/resolve-agent.d.ts.map +1 -0
- package/dist/src/runtime/resolve-agent.js +169 -0
- package/dist/src/runtime/resolve-agent.js.map +1 -0
- package/dist/src/runtime/sandboxes/bindings/local.d.ts +8 -0
- package/dist/src/runtime/sandboxes/bindings/local.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/bindings/local.js +209 -0
- package/dist/src/runtime/sandboxes/bindings/local.js.map +1 -0
- package/dist/src/runtime/sandboxes/bindings/vercel.d.ts +11 -0
- package/dist/src/runtime/sandboxes/bindings/vercel.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/bindings/vercel.js +147 -0
- package/dist/src/runtime/sandboxes/bindings/vercel.js.map +1 -0
- package/dist/src/runtime/sandboxes/ensure.d.ts +36 -0
- package/dist/src/runtime/sandboxes/ensure.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/ensure.js +288 -0
- package/dist/src/runtime/sandboxes/ensure.js.map +1 -0
- package/dist/src/runtime/sandboxes/keys.d.ts +30 -0
- package/dist/src/runtime/sandboxes/keys.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/keys.js +61 -0
- package/dist/src/runtime/sandboxes/keys.js.map +1 -0
- package/dist/src/runtime/sandboxes/registry.d.ts +44 -0
- package/dist/src/runtime/sandboxes/registry.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/registry.js +87 -0
- package/dist/src/runtime/sandboxes/registry.js.map +1 -0
- package/dist/src/runtime/sandboxes/tool-name.d.ts +6 -0
- package/dist/src/runtime/sandboxes/tool-name.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/tool-name.js +15 -0
- package/dist/src/runtime/sandboxes/tool-name.js.map +1 -0
- package/dist/src/runtime/sandboxes/types.d.ts +136 -0
- package/dist/src/runtime/sandboxes/types.d.ts.map +1 -0
- package/dist/src/runtime/sandboxes/types.js +2 -0
- package/dist/src/runtime/sandboxes/types.js.map +1 -0
- package/dist/src/runtime/schedules/register.d.ts +45 -0
- package/dist/src/runtime/schedules/register.d.ts.map +1 -0
- package/dist/src/runtime/schedules/register.js +94 -0
- package/dist/src/runtime/schedules/register.js.map +1 -0
- package/dist/src/runtime/schedules/resolve-schedule.d.ts +41 -0
- package/dist/src/runtime/schedules/resolve-schedule.d.ts.map +1 -0
- package/dist/src/runtime/schedules/resolve-schedule.js +61 -0
- package/dist/src/runtime/schedules/resolve-schedule.js.map +1 -0
- package/dist/src/runtime/session-context.d.ts +40 -0
- package/dist/src/runtime/session-context.d.ts.map +1 -0
- package/dist/src/runtime/session-context.js +55 -0
- package/dist/src/runtime/session-context.js.map +1 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts +25 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.d.ts.map +1 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.js +48 -0
- package/dist/src/runtime/sessions/compiled-agent-cache.js.map +1 -0
- package/dist/src/runtime/sessions/messages.d.ts +90 -0
- package/dist/src/runtime/sessions/messages.d.ts.map +1 -0
- package/dist/src/runtime/sessions/messages.js +91 -0
- package/dist/src/runtime/sessions/messages.js.map +1 -0
- package/dist/src/runtime/sessions/prepare-turn.d.ts +60 -0
- package/dist/src/runtime/sessions/prepare-turn.d.ts.map +1 -0
- package/dist/src/runtime/sessions/prepare-turn.js +85 -0
- package/dist/src/runtime/sessions/prepare-turn.js.map +1 -0
- package/dist/src/runtime/sessions/run-session.d.ts +191 -0
- package/dist/src/runtime/sessions/run-session.d.ts.map +1 -0
- package/dist/src/runtime/sessions/run-session.js +297 -0
- package/dist/src/runtime/sessions/run-session.js.map +1 -0
- package/dist/src/runtime/sessions/turn.d.ts +94 -0
- package/dist/src/runtime/sessions/turn.d.ts.map +1 -0
- package/dist/src/runtime/sessions/turn.js +2 -0
- package/dist/src/runtime/sessions/turn.js.map +1 -0
- package/dist/src/runtime/sessions/types.d.ts +72 -0
- package/dist/src/runtime/sessions/types.d.ts.map +1 -0
- package/dist/src/runtime/sessions/types.js +28 -0
- package/dist/src/runtime/sessions/types.js.map +1 -0
- package/dist/src/runtime/skills/fragment-context.d.ts +26 -0
- package/dist/src/runtime/skills/fragment-context.d.ts.map +1 -0
- package/dist/src/runtime/skills/fragment-context.js +94 -0
- package/dist/src/runtime/skills/fragment-context.js.map +1 -0
- package/dist/src/runtime/skills/load-skill-content.d.ts +15 -0
- package/dist/src/runtime/skills/load-skill-content.d.ts.map +1 -0
- package/dist/src/runtime/skills/load-skill-content.js +29 -0
- package/dist/src/runtime/skills/load-skill-content.js.map +1 -0
- package/dist/src/runtime/skills/load-skills.d.ts +22 -0
- package/dist/src/runtime/skills/load-skills.d.ts.map +1 -0
- package/dist/src/runtime/skills/load-skills.js +47 -0
- package/dist/src/runtime/skills/load-skills.js.map +1 -0
- package/dist/src/runtime/skills/types.d.ts +8 -0
- package/dist/src/runtime/skills/types.d.ts.map +1 -0
- package/dist/src/runtime/skills/types.js +2 -0
- package/dist/src/runtime/skills/types.js.map +1 -0
- package/dist/src/runtime/subagents/definitions.d.ts +11 -0
- package/dist/src/runtime/subagents/definitions.d.ts.map +1 -0
- package/dist/src/runtime/subagents/definitions.js +15 -0
- package/dist/src/runtime/subagents/definitions.js.map +1 -0
- package/dist/src/runtime/subagents/execute-subagent.d.ts +23 -0
- package/dist/src/runtime/subagents/execute-subagent.d.ts.map +1 -0
- package/dist/src/runtime/subagents/execute-subagent.js +26 -0
- package/dist/src/runtime/subagents/execute-subagent.js.map +1 -0
- package/dist/src/runtime/subagents/invocation.d.ts +11 -0
- package/dist/src/runtime/subagents/invocation.d.ts.map +1 -0
- package/dist/src/runtime/subagents/invocation.js +16 -0
- package/dist/src/runtime/subagents/invocation.js.map +1 -0
- package/dist/src/runtime/subagents/registry.d.ts +44 -0
- package/dist/src/runtime/subagents/registry.d.ts.map +1 -0
- package/dist/src/runtime/subagents/registry.js +107 -0
- package/dist/src/runtime/subagents/registry.js.map +1 -0
- package/dist/src/runtime/tools/execute-tool.d.ts +28 -0
- package/dist/src/runtime/tools/execute-tool.d.ts.map +1 -0
- package/dist/src/runtime/tools/execute-tool.js +75 -0
- package/dist/src/runtime/tools/execute-tool.js.map +1 -0
- package/dist/src/runtime/tools/registry.d.ts +42 -0
- package/dist/src/runtime/tools/registry.d.ts.map +1 -0
- package/dist/src/runtime/tools/registry.js +79 -0
- package/dist/src/runtime/tools/registry.js.map +1 -0
- package/dist/src/runtime/types.d.ts +160 -0
- package/dist/src/runtime/types.d.ts.map +1 -0
- package/dist/src/runtime/types.js +2 -0
- package/dist/src/runtime/types.js.map +1 -0
- package/dist/src/runtime/validation.d.ts +6 -0
- package/dist/src/runtime/validation.d.ts.map +1 -0
- package/dist/src/runtime/validation.js +8 -0
- package/dist/src/runtime/validation.js.map +1 -0
- package/dist/src/services/dev-client/live-stream.d.ts +36 -0
- package/dist/src/services/dev-client/live-stream.d.ts.map +1 -0
- package/dist/src/services/dev-client/live-stream.js +158 -0
- package/dist/src/services/dev-client/live-stream.js.map +1 -0
- package/dist/src/services/dev-client/request-headers.d.ts +15 -0
- package/dist/src/services/dev-client/request-headers.d.ts.map +1 -0
- package/dist/src/services/dev-client/request-headers.js +23 -0
- package/dist/src/services/dev-client/request-headers.js.map +1 -0
- package/dist/src/services/dev-client/send-message.d.ts +20 -0
- package/dist/src/services/dev-client/send-message.d.ts.map +1 -0
- package/dist/src/services/dev-client/send-message.js +260 -0
- package/dist/src/services/dev-client/send-message.js.map +1 -0
- package/dist/src/services/dev-client/session.d.ts +54 -0
- package/dist/src/services/dev-client/session.d.ts.map +1 -0
- package/dist/src/services/dev-client/session.js +71 -0
- package/dist/src/services/dev-client/session.js.map +1 -0
- package/dist/src/services/dev-client/stream.d.ts +25 -0
- package/dist/src/services/dev-client/stream.d.ts.map +1 -0
- package/dist/src/services/dev-client/stream.js +42 -0
- package/dist/src/services/dev-client/stream.js.map +1 -0
- package/dist/src/services/dev-client/url.d.ts +16 -0
- package/dist/src/services/dev-client/url.d.ts.map +1 -0
- package/dist/src/services/dev-client/url.js +32 -0
- package/dist/src/services/dev-client/url.js.map +1 -0
- package/dist/src/services/dev-client.d.ts +49 -0
- package/dist/src/services/dev-client.d.ts.map +1 -0
- package/dist/src/services/dev-client.js +52 -0
- package/dist/src/services/dev-client.js.map +1 -0
- package/dist/src/services/host.d.ts +14 -0
- package/dist/src/services/host.d.ts.map +1 -0
- package/dist/src/services/host.js +14 -0
- package/dist/src/services/host.js.map +1 -0
- package/dist/src/services/inspect-application.d.ts +25 -0
- package/dist/src/services/inspect-application.d.ts.map +1 -0
- package/dist/src/services/inspect-application.js +39 -0
- package/dist/src/services/inspect-application.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { cp, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
2
|
+
import { dirname, join, relative } from "node:path";
|
|
3
|
+
import { createCompiledModuleMapSource } from "../../compiler/module-map.js";
|
|
4
|
+
import { resolvePackageRoot } from "./package.js";
|
|
5
|
+
/**
|
|
6
|
+
* Stable directory name used to stage compiled `workspace/` artifacts beside
|
|
7
|
+
* bundled workflow entrypoints.
|
|
8
|
+
*/
|
|
9
|
+
export const BUNDLED_WORKSPACE_DIRECTORY_NAME = "compiled-workspace";
|
|
10
|
+
/**
|
|
11
|
+
* Writes the generated compiled-artifacts bootstrap plus the Nitro plugin that
|
|
12
|
+
* imports it.
|
|
13
|
+
*/
|
|
14
|
+
export async function writeCompiledArtifactsFiles(input) {
|
|
15
|
+
const bootstrapPath = join(input.outDir, "compiled-artifacts-bootstrap.mjs");
|
|
16
|
+
const nitroPluginPath = join(input.outDir, "compiled-artifacts-plugin.ts");
|
|
17
|
+
const contextFiles = await readBundledContextFiles(input.compileResult);
|
|
18
|
+
await mkdir(input.outDir, { recursive: true });
|
|
19
|
+
await Promise.all([
|
|
20
|
+
prepareBundledWorkspaceDirectory({
|
|
21
|
+
compileResult: input.compileResult,
|
|
22
|
+
outDir: input.outDir,
|
|
23
|
+
}),
|
|
24
|
+
writeFile(bootstrapPath, createCompiledArtifactsBootstrapSource({
|
|
25
|
+
compileResult: input.compileResult,
|
|
26
|
+
contextFiles,
|
|
27
|
+
contextResources: input.compileResult.contextResourcesArtifact,
|
|
28
|
+
installModulePath: join(resolvePackageRoot(), "src", "runtime", "loaders", "bundled-artifacts.ts"),
|
|
29
|
+
moduleMapPath: bootstrapPath,
|
|
30
|
+
metadata: input.compileResult.metadata,
|
|
31
|
+
workspaceResources: input.compileResult.workspaceResourcesArtifact,
|
|
32
|
+
})),
|
|
33
|
+
writeFile(nitroPluginPath, createCompiledArtifactsNitroPluginSource({
|
|
34
|
+
bootstrapPath,
|
|
35
|
+
nitroPluginPath,
|
|
36
|
+
})),
|
|
37
|
+
]);
|
|
38
|
+
return {
|
|
39
|
+
bootstrapPath,
|
|
40
|
+
nitroPluginPath,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function normalizeImportSpecifierPath(path) {
|
|
44
|
+
return path.replaceAll("\\", "/");
|
|
45
|
+
}
|
|
46
|
+
function stripCompiledModuleMapExports(source) {
|
|
47
|
+
return source
|
|
48
|
+
.replace(/^export const moduleMap = /m, "const moduleMap = ")
|
|
49
|
+
.replace(/\nexport default moduleMap;\n?$/, "\n");
|
|
50
|
+
}
|
|
51
|
+
function createCompiledArtifactsBootstrapSource(input) {
|
|
52
|
+
const moduleMapSource = stripCompiledModuleMapExports(createCompiledModuleMapSource({
|
|
53
|
+
importSpecifierStyle: "absolute",
|
|
54
|
+
manifest: input.compileResult.manifest,
|
|
55
|
+
moduleMapPath: input.moduleMapPath,
|
|
56
|
+
})).trim();
|
|
57
|
+
return [
|
|
58
|
+
"// Generated by Ash. Do not edit by hand.",
|
|
59
|
+
'import { dirname, join } from "node:path";',
|
|
60
|
+
'import { fileURLToPath } from "node:url";',
|
|
61
|
+
`import { installBundledCompiledArtifacts } from ${JSON.stringify(normalizeImportSpecifierPath(input.installModulePath))};`,
|
|
62
|
+
"",
|
|
63
|
+
moduleMapSource,
|
|
64
|
+
"",
|
|
65
|
+
`const contextFiles = ${JSON.stringify(input.contextFiles, null, 2)};`,
|
|
66
|
+
"",
|
|
67
|
+
`const contextResources = ${JSON.stringify(input.contextResources, null, 2)};`,
|
|
68
|
+
"",
|
|
69
|
+
`const metadata = ${JSON.stringify(input.metadata, null, 2)};`,
|
|
70
|
+
"",
|
|
71
|
+
`const workspaceResources = ${JSON.stringify(input.workspaceResources, null, 2)};`,
|
|
72
|
+
"",
|
|
73
|
+
`const manifest = ${JSON.stringify(input.compileResult.manifest, null, 2)};`,
|
|
74
|
+
"",
|
|
75
|
+
"const currentModuleDirectory =",
|
|
76
|
+
' typeof __dirname === "string"',
|
|
77
|
+
" ? __dirname",
|
|
78
|
+
" : dirname(fileURLToPath(import.meta.url));",
|
|
79
|
+
`const workspaceRootPath = ${input.workspaceResources.resources.length > 0
|
|
80
|
+
? `join(currentModuleDirectory, ${JSON.stringify(BUNDLED_WORKSPACE_DIRECTORY_NAME)})`
|
|
81
|
+
: "undefined"};`,
|
|
82
|
+
"",
|
|
83
|
+
"export function installCompiledArtifactsBootstrap() {",
|
|
84
|
+
" installBundledCompiledArtifacts({",
|
|
85
|
+
" contextFiles,",
|
|
86
|
+
" contextResources,",
|
|
87
|
+
" manifest,",
|
|
88
|
+
" metadata,",
|
|
89
|
+
" moduleMap,",
|
|
90
|
+
" workspaceRootPath,",
|
|
91
|
+
" workspaceResources,",
|
|
92
|
+
" });",
|
|
93
|
+
"}",
|
|
94
|
+
"",
|
|
95
|
+
"installCompiledArtifactsBootstrap();",
|
|
96
|
+
"",
|
|
97
|
+
"export async function __ashInstallCompiledArtifactsStep() {",
|
|
98
|
+
' "use step";',
|
|
99
|
+
" return null;",
|
|
100
|
+
"}",
|
|
101
|
+
"",
|
|
102
|
+
].join("\n");
|
|
103
|
+
}
|
|
104
|
+
function createCompiledArtifactsNitroPluginSource(input) {
|
|
105
|
+
const bootstrapImportPath = createRelativeImportSpecifier({
|
|
106
|
+
fromDirectory: dirname(input.nitroPluginPath),
|
|
107
|
+
targetPath: input.bootstrapPath,
|
|
108
|
+
});
|
|
109
|
+
return [
|
|
110
|
+
"// Generated by Ash. Do not edit by hand.",
|
|
111
|
+
`import { installCompiledArtifactsBootstrap } from ${JSON.stringify(bootstrapImportPath)};`,
|
|
112
|
+
"",
|
|
113
|
+
"export default function installCompiledArtifactsPlugin() {",
|
|
114
|
+
" installCompiledArtifactsBootstrap();",
|
|
115
|
+
"}",
|
|
116
|
+
"",
|
|
117
|
+
].join("\n");
|
|
118
|
+
}
|
|
119
|
+
function createRelativeImportSpecifier(input) {
|
|
120
|
+
const relativePath = normalizeImportSpecifierPath(relative(input.fromDirectory, input.targetPath));
|
|
121
|
+
if (relativePath.startsWith(".")) {
|
|
122
|
+
return relativePath;
|
|
123
|
+
}
|
|
124
|
+
return `./${relativePath}`;
|
|
125
|
+
}
|
|
126
|
+
async function readBundledContextFiles(compileResult) {
|
|
127
|
+
return Object.fromEntries(await Promise.all(compileResult.contextResourcesArtifact.resources
|
|
128
|
+
.filter((resource) => resource.definitionKind === "file")
|
|
129
|
+
.map(async (resource) => {
|
|
130
|
+
return [
|
|
131
|
+
resource.sourceId,
|
|
132
|
+
await readBundledContextFile(compileResult, resource),
|
|
133
|
+
];
|
|
134
|
+
})));
|
|
135
|
+
}
|
|
136
|
+
async function readBundledContextFile(compileResult, resource) {
|
|
137
|
+
return await readFile(join(compileResult.project.appRoot, resource.compiledPath), "utf8");
|
|
138
|
+
}
|
|
139
|
+
async function prepareBundledWorkspaceDirectory(input) {
|
|
140
|
+
const bundledWorkspaceDirectoryPath = join(input.outDir, BUNDLED_WORKSPACE_DIRECTORY_NAME);
|
|
141
|
+
await rm(bundledWorkspaceDirectoryPath, {
|
|
142
|
+
force: true,
|
|
143
|
+
recursive: true,
|
|
144
|
+
});
|
|
145
|
+
if (input.compileResult.workspaceResourcesArtifact.resources.length === 0) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
await cp(input.compileResult.paths.workspaceDirectoryPath, bundledWorkspaceDirectoryPath, {
|
|
149
|
+
recursive: true,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=compiled-artifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiled-artifacts.js","sourceRoot":"","sources":["../../../../src/internal/application/compiled-artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,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
4
|
+
version: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the installed Ash package root.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolvePackageRoot(): string;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves the installed Ash package identity from package.json.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveInstalledPackageInfo(): InstalledPackageInfo;
|
|
14
|
+
/**
|
|
15
|
+
* Resolves a Workflow DevKit runtime module from the Ash package installation.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveWorkflowModulePath(specifier: string): string;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=package.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.d.ts","sourceRoot":"","sources":["../../../../src/internal/application/package.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAMnD,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AA0DD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAI3C;AAiCD;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,oBAAoB,CAoClE;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEnE"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { basename, dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
let cachedPackageInfo;
|
|
6
|
+
export const ASH_PACKAGE_NAME = "experimental-ash";
|
|
7
|
+
const FALLBACK_PACKAGE_INFO = {
|
|
8
|
+
name: ASH_PACKAGE_NAME,
|
|
9
|
+
version: "0.0.0",
|
|
10
|
+
};
|
|
11
|
+
function resolveCurrentModulePath() {
|
|
12
|
+
if (typeof __filename === "string") {
|
|
13
|
+
return __filename;
|
|
14
|
+
}
|
|
15
|
+
return resolveCurrentModulePathFromStack();
|
|
16
|
+
}
|
|
17
|
+
function resolveCurrentModulePathFromStack() {
|
|
18
|
+
const previousPrepareStackTrace = Error.prepareStackTrace;
|
|
19
|
+
try {
|
|
20
|
+
Error.prepareStackTrace = (_error, stack) => stack;
|
|
21
|
+
const stack = new Error().stack;
|
|
22
|
+
const currentFileName = stack?.[0]?.getFileName();
|
|
23
|
+
if (typeof currentFileName !== "string" || currentFileName.length === 0) {
|
|
24
|
+
throw new Error("Failed to resolve the current module path from the stack trace.");
|
|
25
|
+
}
|
|
26
|
+
return currentFileName.startsWith("file:") ? fileURLToPath(currentFileName) : currentFileName;
|
|
27
|
+
}
|
|
28
|
+
finally {
|
|
29
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
const require = createRequire(resolveCurrentModulePath());
|
|
33
|
+
function isBuildOutputPackageRoot(directoryPath) {
|
|
34
|
+
return (basename(directoryPath) === "dist" && existsSync(join(dirname(directoryPath), "package.json")));
|
|
35
|
+
}
|
|
36
|
+
function findNearestPackageRoot(startDirectory) {
|
|
37
|
+
let currentDirectory = startDirectory;
|
|
38
|
+
while (true) {
|
|
39
|
+
if (existsSync(join(currentDirectory, "package.json")) &&
|
|
40
|
+
!isBuildOutputPackageRoot(currentDirectory)) {
|
|
41
|
+
return currentDirectory;
|
|
42
|
+
}
|
|
43
|
+
const parentDirectory = dirname(currentDirectory);
|
|
44
|
+
if (parentDirectory === currentDirectory) {
|
|
45
|
+
throw new Error(`Failed to resolve package root from "${startDirectory}".`);
|
|
46
|
+
}
|
|
47
|
+
currentDirectory = parentDirectory;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Resolves the installed Ash package root.
|
|
52
|
+
*/
|
|
53
|
+
export function resolvePackageRoot() {
|
|
54
|
+
// Canonicalize the current module path so workspace symlinks such as
|
|
55
|
+
// app-local `node_modules/<package-name>` resolve back to the real package root.
|
|
56
|
+
return findNearestPackageRoot(dirname(realpathSync(resolveCurrentModulePath())));
|
|
57
|
+
}
|
|
58
|
+
function normalizeInstalledPackageInfo(value) {
|
|
59
|
+
const packageJson = value;
|
|
60
|
+
if (typeof packageJson.name !== "string" || typeof packageJson.version !== "string") {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
name: packageJson.name,
|
|
65
|
+
version: packageJson.version,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function tryReadInstalledPackageInfo(packageJsonPath, expectedPackageName) {
|
|
69
|
+
const resolvedPackageInfo = normalizeInstalledPackageInfo(JSON.parse(readFileSync(packageJsonPath, "utf8")));
|
|
70
|
+
if (resolvedPackageInfo?.name !== expectedPackageName) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
return resolvedPackageInfo;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Resolves the installed Ash package identity from package.json.
|
|
77
|
+
*/
|
|
78
|
+
export function resolveInstalledPackageInfo() {
|
|
79
|
+
if (cachedPackageInfo) {
|
|
80
|
+
return cachedPackageInfo;
|
|
81
|
+
}
|
|
82
|
+
const packageRootInfo = tryReadInstalledPackageInfo(join(resolvePackageRoot(), "package.json"), ASH_PACKAGE_NAME);
|
|
83
|
+
if (packageRootInfo) {
|
|
84
|
+
cachedPackageInfo = packageRootInfo;
|
|
85
|
+
return cachedPackageInfo;
|
|
86
|
+
}
|
|
87
|
+
try {
|
|
88
|
+
const resolvedPackageJsonPath = require.resolve(`${ASH_PACKAGE_NAME}/package.json`);
|
|
89
|
+
const resolvedPackageInfo = tryReadInstalledPackageInfo(resolvedPackageJsonPath, ASH_PACKAGE_NAME);
|
|
90
|
+
if (resolvedPackageInfo) {
|
|
91
|
+
cachedPackageInfo = resolvedPackageInfo;
|
|
92
|
+
return cachedPackageInfo;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
// Fall back to the package's development identity when the self package
|
|
97
|
+
// cannot be resolved from bundled runtime output.
|
|
98
|
+
}
|
|
99
|
+
cachedPackageInfo = {
|
|
100
|
+
...FALLBACK_PACKAGE_INFO,
|
|
101
|
+
};
|
|
102
|
+
return cachedPackageInfo;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Resolves a Workflow DevKit runtime module from the Ash package installation.
|
|
106
|
+
*/
|
|
107
|
+
export function resolveWorkflowModulePath(specifier) {
|
|
108
|
+
return require.resolve(specifier);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=package.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package.js","sourceRoot":"","sources":["../../../../src/internal/application/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,IAAI,iBAAmD,CAAC;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,qBAAqB,GAAyB;IAClD,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE,OAAO;CACjB,CAAC;AAOF,SAAS,wBAAwB;IAC/B,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,iCAAiC,EAAE,CAAC;AAC7C,CAAC;AAED,SAAS,iCAAiC;IACxC,MAAM,yBAAyB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAE1D,IAAI,CAAC;QACH,KAAK,CAAC,iBAAiB,GAAG,CAAC,MAAM,EAAE,KA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B,eAAe,CAAC,CAAC;QACpF,MAAM,mBAAmB,GAAG,2BAA2B,CACrD,uBAAuB,EACvB,gBAAgB,CACjB,CAAC;QAEF,IAAI,mBAAmB,EAAE,CAAC;YACxB,iBAAiB,GAAG,mBAAmB,CAAC;YACxC,OAAO,iBAAiB,CAAC;QAC3B,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,wEAAwE;QACxE,kDAAkD;IACpD,CAAC;IAED,iBAAiB,GAAG;QAClB,GAAG,qBAAqB;KACzB,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAAiB;IACzD,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AACpC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface ApplicationInfo {
|
|
2
|
+
appRoot: string;
|
|
3
|
+
messageWorkflowId: string;
|
|
4
|
+
messageWorkflowSourceDir: string;
|
|
5
|
+
outputDir: string;
|
|
6
|
+
workflowBuildDir: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Resolves an application root from the current working directory.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveApplicationRoot(cwd?: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Resolves the programmatic Nitro build directory for an app.
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveNitroBuildDirectory(appRoot: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves the package-owned Workflow DevKit bundle directory for a target app.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveWorkflowBuildDirectory(appRoot: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Resolves the package-owned cache directory used for durable local sandbox
|
|
22
|
+
* snapshots.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveSandboxCacheDirectory(appRoot: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Resolves the production Nitro output directory for an app.
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveOutputDirectory(appRoot: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Returns structured app information for diagnostics and CLI output.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getApplicationInfo(appRoot: string): ApplicationInfo;
|
|
33
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../src/internal/application/paths.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,EAAE,MAAM,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM,CAE1E;AAUD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAQnE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { join, resolve } from "node:path";
|
|
3
|
+
import { handleMessageWorkflowReference, resolveMessageWorkflowSourceDirectory, } from "../message/reference.js";
|
|
4
|
+
import { resolvePackageRoot } from "./package.js";
|
|
5
|
+
/**
|
|
6
|
+
* Resolves an application root from the current working directory.
|
|
7
|
+
*/
|
|
8
|
+
export function resolveApplicationRoot(cwd = process.cwd()) {
|
|
9
|
+
return resolve(cwd);
|
|
10
|
+
}
|
|
11
|
+
function getApplicationCacheKey(appRoot) {
|
|
12
|
+
return createHash("sha256").update(appRoot).digest("hex").slice(0, 12);
|
|
13
|
+
}
|
|
14
|
+
function isVercelBuildEnvironment() {
|
|
15
|
+
return Boolean(process.env.VERCEL);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the programmatic Nitro build directory for an app.
|
|
19
|
+
*/
|
|
20
|
+
export function resolveNitroBuildDirectory(appRoot) {
|
|
21
|
+
return join(appRoot, ".ash", "nitro");
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Resolves the package-owned Workflow DevKit bundle directory for a target app.
|
|
25
|
+
*/
|
|
26
|
+
export function resolveWorkflowBuildDirectory(appRoot) {
|
|
27
|
+
return join(resolvePackageRoot(), ".ash", "workflow-cache", getApplicationCacheKey(appRoot));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Resolves the package-owned cache directory used for durable local sandbox
|
|
31
|
+
* snapshots.
|
|
32
|
+
*/
|
|
33
|
+
export function resolveSandboxCacheDirectory(appRoot) {
|
|
34
|
+
return join(resolvePackageRoot(), ".ash", "sandbox-cache", getApplicationCacheKey(appRoot));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resolves the production Nitro output directory for an app.
|
|
38
|
+
*/
|
|
39
|
+
export function resolveOutputDirectory(appRoot) {
|
|
40
|
+
if (isVercelBuildEnvironment()) {
|
|
41
|
+
return join(appRoot, ".vercel", "output");
|
|
42
|
+
}
|
|
43
|
+
return join(appRoot, ".output");
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns structured app information for diagnostics and CLI output.
|
|
47
|
+
*/
|
|
48
|
+
export function getApplicationInfo(appRoot) {
|
|
49
|
+
return {
|
|
50
|
+
appRoot,
|
|
51
|
+
messageWorkflowId: handleMessageWorkflowReference.workflowId,
|
|
52
|
+
messageWorkflowSourceDir: resolveMessageWorkflowSourceDirectory(),
|
|
53
|
+
outputDir: resolveOutputDirectory(appRoot),
|
|
54
|
+
workflowBuildDir: resolveWorkflowBuildDirectory(appRoot),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../../../src/internal/application/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EACL,8BAA8B,EAC9B,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUlD;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAc,OAAO,CAAC,GAAG,EAAE;IAChE,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,sBAAsB,CAAC,OAAe;IAC7C,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,wBAAwB;IAC/B,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CAAC,OAAe;IACxD,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,OAAe;IAC3D,OAAO,IAAI,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,OAAe;IAC1D,OAAO,IAAI,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAe;IACpD,IAAI,wBAAwB,EAAE,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAChD,OAAO;QACL,OAAO;QACP,iBAAiB,EAAE,8BAA8B,CAAC,UAAU;QAC5D,wBAAwB,EAAE,qCAAqC,EAAE;QACjE,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC;QAC1C,gBAAgB,EAAE,6BAA6B,CAAC,OAAO,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ContextDocumentDefinition } from "../../public/definitions/context.js";
|
|
2
|
+
import type { ScheduleDefinition } from "../../public/definitions/schedule.js";
|
|
3
|
+
import type { SkillDefinition } from "../../public/definitions/skill.js";
|
|
4
|
+
import type { SystemDefinition } from "../../public/definitions/system.js";
|
|
5
|
+
/**
|
|
6
|
+
* Normalizes one authored agent definition into the canonical internal shape.
|
|
7
|
+
*/
|
|
8
|
+
export declare function normalizeAgentDefinition(value: unknown, message: string): {
|
|
9
|
+
readonly id?: string;
|
|
10
|
+
readonly metadata?: Record<string, string>;
|
|
11
|
+
readonly model?: unknown;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Normalizes one authored system definition into the canonical internal shape.
|
|
15
|
+
*/
|
|
16
|
+
export declare function normalizeSystemDefinition(value: unknown, message: string): SystemDefinition;
|
|
17
|
+
/**
|
|
18
|
+
* Normalizes one authored context definition into the canonical internal shape.
|
|
19
|
+
*/
|
|
20
|
+
export declare function normalizeContextDocumentDefinition(value: unknown, message: string): ContextDocumentDefinition;
|
|
21
|
+
/**
|
|
22
|
+
* Normalizes one authored skill definition into the canonical internal shape.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeSkillDefinition(value: unknown, message: string): SkillDefinition;
|
|
25
|
+
/**
|
|
26
|
+
* Normalizes one authored schedule definition into the canonical internal
|
|
27
|
+
* shape.
|
|
28
|
+
*/
|
|
29
|
+
export declare function normalizeScheduleDefinition(value: unknown, message: string): ScheduleDefinition;
|
|
30
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../src/internal/authored-definition/core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAS3E;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd;IACD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAsBA;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,gBAAgB,CAa3F;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd,yBAAyB,CAuB3B;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,eAAe,CAkCzF;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAc/F"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { expectObjectRecord, expectOnlyKnownKeys, expectString, getOptionalStringProperty, getOptionalStringRecordProperty, } from "../authored-module.js";
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes one authored agent definition into the canonical internal shape.
|
|
4
|
+
*/
|
|
5
|
+
export function normalizeAgentDefinition(value, message) {
|
|
6
|
+
const record = expectObjectRecord(value, message);
|
|
7
|
+
expectOnlyKnownKeys(record, ["id", "metadata", "model"], message);
|
|
8
|
+
const definition = {
|
|
9
|
+
model: record.model,
|
|
10
|
+
};
|
|
11
|
+
const id = getOptionalStringProperty(record, "id", message);
|
|
12
|
+
const metadata = getOptionalStringRecordProperty(record, "metadata", message);
|
|
13
|
+
if (id !== undefined) {
|
|
14
|
+
definition.id = id;
|
|
15
|
+
}
|
|
16
|
+
if (metadata !== undefined) {
|
|
17
|
+
definition.metadata = metadata;
|
|
18
|
+
}
|
|
19
|
+
return definition;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Normalizes one authored system definition into the canonical internal shape.
|
|
23
|
+
*/
|
|
24
|
+
export function normalizeSystemDefinition(value, message) {
|
|
25
|
+
const record = expectObjectRecord(value, message);
|
|
26
|
+
expectOnlyKnownKeys(record, ["id", "markdown"], message);
|
|
27
|
+
const definition = {
|
|
28
|
+
markdown: expectString(record.markdown, message),
|
|
29
|
+
};
|
|
30
|
+
const id = getOptionalStringProperty(record, "id", message);
|
|
31
|
+
if (id !== undefined) {
|
|
32
|
+
definition.id = id;
|
|
33
|
+
}
|
|
34
|
+
return definition;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Normalizes one authored context definition into the canonical internal shape.
|
|
38
|
+
*/
|
|
39
|
+
export function normalizeContextDocumentDefinition(value, message) {
|
|
40
|
+
const record = expectObjectRecord(value, message);
|
|
41
|
+
expectOnlyKnownKeys(record, ["content", "id", "mediaType", "title"], message);
|
|
42
|
+
const definition = {
|
|
43
|
+
content: expectString(record.content, message),
|
|
44
|
+
};
|
|
45
|
+
const id = getOptionalStringProperty(record, "id", message);
|
|
46
|
+
const mediaType = getOptionalStringProperty(record, "mediaType", message);
|
|
47
|
+
const title = getOptionalStringProperty(record, "title", message);
|
|
48
|
+
if (id !== undefined) {
|
|
49
|
+
definition.id = id;
|
|
50
|
+
}
|
|
51
|
+
if (mediaType !== undefined) {
|
|
52
|
+
definition.mediaType = mediaType;
|
|
53
|
+
}
|
|
54
|
+
if (title !== undefined) {
|
|
55
|
+
definition.title = title;
|
|
56
|
+
}
|
|
57
|
+
return definition;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Normalizes one authored skill definition into the canonical internal shape.
|
|
61
|
+
*/
|
|
62
|
+
export function normalizeSkillDefinition(value, message) {
|
|
63
|
+
const record = expectObjectRecord(value, message);
|
|
64
|
+
expectOnlyKnownKeys(record, ["compatibility", "description", "id", "license", "markdown", "metadata", "name"], message);
|
|
65
|
+
const definition = {
|
|
66
|
+
description: expectString(record.description, message),
|
|
67
|
+
markdown: expectString(record.markdown, message),
|
|
68
|
+
name: expectString(record.name, message),
|
|
69
|
+
};
|
|
70
|
+
const compatibility = getOptionalStringProperty(record, "compatibility", message);
|
|
71
|
+
const id = getOptionalStringProperty(record, "id", message);
|
|
72
|
+
const license = getOptionalStringProperty(record, "license", message);
|
|
73
|
+
const metadata = getOptionalStringRecordProperty(record, "metadata", message);
|
|
74
|
+
if (compatibility !== undefined) {
|
|
75
|
+
definition.compatibility = compatibility;
|
|
76
|
+
}
|
|
77
|
+
if (id !== undefined) {
|
|
78
|
+
definition.id = id;
|
|
79
|
+
}
|
|
80
|
+
if (license !== undefined) {
|
|
81
|
+
definition.license = license;
|
|
82
|
+
}
|
|
83
|
+
if (metadata !== undefined) {
|
|
84
|
+
definition.metadata = metadata;
|
|
85
|
+
}
|
|
86
|
+
return definition;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Normalizes one authored schedule definition into the canonical internal
|
|
90
|
+
* shape.
|
|
91
|
+
*/
|
|
92
|
+
export function normalizeScheduleDefinition(value, message) {
|
|
93
|
+
const record = expectObjectRecord(value, message);
|
|
94
|
+
expectOnlyKnownKeys(record, ["cron", "id", "markdown"], message);
|
|
95
|
+
const definition = {
|
|
96
|
+
cron: expectString(record.cron, message),
|
|
97
|
+
markdown: expectString(record.markdown, message),
|
|
98
|
+
};
|
|
99
|
+
const id = getOptionalStringProperty(record, "id", message);
|
|
100
|
+
if (id !== undefined) {
|
|
101
|
+
definition.id = id;
|
|
102
|
+
}
|
|
103
|
+
return definition;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../src/internal/authored-definition/core.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAc,EACd,OAAe;IAMf,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClD,mBAAmB,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;IAClE,MAAM,UAAU,GAIZ;QACF,KAAK,EAAE,MAAM,CAAC,KAAK;KACpB,CAAC;IACF,MAAM,EAAE,GAAG,yBAAyB,CAAC,MAAM,EAAE,IAAI,EAA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+
/**
|
|
2
|
+
* Normalizes one authored sandbox definition into the canonical internal
|
|
3
|
+
* shape.
|
|
4
|
+
*/
|
|
5
|
+
export declare function normalizeSandboxDefinition(value: unknown, message: string): {
|
|
6
|
+
readonly bootstrap?: (input: unknown) => Promise<void> | void;
|
|
7
|
+
readonly description?: string;
|
|
8
|
+
readonly onSession?: (input: unknown) => Promise<void> | void;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../../src/internal/authored-definition/sandbox.ts"],"names":[],"mappings":"AAOA;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd;IACD,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC9D,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC/D,CA2BA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { expectFunction, expectObjectRecord, expectOnlyKnownKeys, getOptionalStringProperty, } from "../authored-module.js";
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes one authored sandbox definition into the canonical internal
|
|
4
|
+
* shape.
|
|
5
|
+
*/
|
|
6
|
+
export function normalizeSandboxDefinition(value, message) {
|
|
7
|
+
const record = expectObjectRecord(value, message);
|
|
8
|
+
expectOnlyKnownKeys(record, ["bootstrap", "description", "onSession"], message);
|
|
9
|
+
const definition = {};
|
|
10
|
+
const description = getOptionalStringProperty(record, "description", message);
|
|
11
|
+
if (description !== undefined) {
|
|
12
|
+
definition.description = description;
|
|
13
|
+
}
|
|
14
|
+
if (record.bootstrap !== undefined) {
|
|
15
|
+
definition.bootstrap = expectFunction(record.bootstrap, message);
|
|
16
|
+
}
|
|
17
|
+
if (record.onSession !== undefined) {
|
|
18
|
+
definition.onSession = expectFunction(record.onSession, message);
|
|
19
|
+
}
|
|
20
|
+
return definition;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sandbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/internal/authored-definition/sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAE/B;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAc,EACd,OAAe;IAMf,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClD,mBAAmB,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC;IAChF,MAAM,UAAU,GAIZ,EAAE,CAAC;IACP,MAAM,WAAW,GAAG,yBAAyB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IAE9E,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;IACvC,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACnC,UAAU,CAAC,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAEtC,CAAC;IAC5B,CAAC;IAED,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QACnC,UAAU,CAAC,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAEtC,CAAC;IAC5B,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes one authored tool definition into the canonical internal shape.
|
|
3
|
+
*/
|
|
4
|
+
export declare function normalizeToolDefinition(value: unknown, message: string): {
|
|
5
|
+
readonly description: string;
|
|
6
|
+
readonly execute: (input: unknown) => Promise<unknown> | unknown;
|
|
7
|
+
readonly inputSchema?: Record<string, unknown>;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes one authored local subagent definition into the canonical
|
|
12
|
+
* internal shape.
|
|
13
|
+
*/
|
|
14
|
+
export declare function normalizeSubagentDefinition(value: unknown, message: string): {
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
readonly inputSchema: Record<string, unknown>;
|
|
18
|
+
readonly name: string;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=schema-backed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-backed.d.ts","sourceRoot":"","sources":["../../../../src/internal/authored-definition/schema-backed.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACjE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAcA;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,MAAM,GACd;IACD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CA0BA"}
|