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,20 @@
|
|
|
1
|
+
import type { AgentSourceManifest } from "../discover/manifest.js";
|
|
2
|
+
import type { ModuleSourceRef } from "../internal/source-ref.js";
|
|
3
|
+
import { type CompiledAgentManifest } from "./manifest.js";
|
|
4
|
+
/**
|
|
5
|
+
* Compiles one discovery manifest into the normalized manifest loaded by the runtime.
|
|
6
|
+
*/
|
|
7
|
+
export declare function compileAgentManifest(manifest: AgentSourceManifest): Promise<CompiledAgentManifest>;
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes one module-backed context definition for the compiled context artifact.
|
|
10
|
+
*/
|
|
11
|
+
export declare function compileContextDocumentDefinition(input: {
|
|
12
|
+
readonly agentRoot: string;
|
|
13
|
+
readonly source: ModuleSourceRef;
|
|
14
|
+
}): Promise<{
|
|
15
|
+
readonly content: string;
|
|
16
|
+
readonly id?: string;
|
|
17
|
+
readonly mediaType?: string;
|
|
18
|
+
readonly title?: string;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=normalize-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-manifest.d.ts","sourceRoot":"","sources":["../../../src/compiler/normalize-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,mBAAmB,EAKpB,MAAM,yBAAyB,CAAC;AAoBjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAEL,KAAK,qBAAqB,EAc3B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAAC,qBAAqB,CAAC,CAehC;AAED;;GAEG;AACH,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC5D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC,GAAG,OAAO,CAAC;IACV,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC,CAgBD"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { stripLogicalPathExtension } from "../discover/filesystem.js";
|
|
3
|
+
import { normalizeAgentDefinition, normalizeContextDocumentDefinition, normalizeScheduleDefinition, normalizeSkillDefinition, normalizeSystemDefinition, } from "../internal/authored-definition/core.js";
|
|
4
|
+
import { normalizeSandboxDefinition } from "../internal/authored-definition/sandbox.js";
|
|
5
|
+
import { normalizeSubagentDefinition, normalizeToolDefinition, } from "../internal/authored-definition/schema-backed.js";
|
|
6
|
+
import { expectObjectRecord, getAuthoredModuleExport, loadAuthoredModuleNamespace, materializeAuthoredModuleExport, } from "../internal/authored-module.js";
|
|
7
|
+
import { DEFAULT_RUNTIME_MODEL_ID } from "../internal/runtime-model.js";
|
|
8
|
+
import { createCompiledAgentManifest, createCompiledAgentNodeManifest, createCompiledSubagentNodeId, ROOT_COMPILED_AGENT_NODE_ID, } from "./manifest.js";
|
|
9
|
+
/**
|
|
10
|
+
* Compiles one discovery manifest into the normalized manifest loaded by the runtime.
|
|
11
|
+
*/
|
|
12
|
+
export async function compileAgentManifest(manifest) {
|
|
13
|
+
const [compiledNode, subagentGraph] = await Promise.all([
|
|
14
|
+
compileAgentNodeManifest(manifest),
|
|
15
|
+
compileSubagentGraph({
|
|
16
|
+
appRoot: manifest.appRoot,
|
|
17
|
+
parentNodeId: ROOT_COMPILED_AGENT_NODE_ID,
|
|
18
|
+
subagents: manifest.subagents,
|
|
19
|
+
}),
|
|
20
|
+
]);
|
|
21
|
+
return createCompiledAgentManifest({
|
|
22
|
+
...compiledNode,
|
|
23
|
+
subagentEdges: subagentGraph.edges,
|
|
24
|
+
subagents: subagentGraph.nodes,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Normalizes one module-backed context definition for the compiled context artifact.
|
|
29
|
+
*/
|
|
30
|
+
export async function compileContextDocumentDefinition(input) {
|
|
31
|
+
const definition = normalizeContextDocumentDefinition(await loadModuleBackedDefinition({
|
|
32
|
+
agentRoot: input.agentRoot,
|
|
33
|
+
kind: "context",
|
|
34
|
+
source: input.source,
|
|
35
|
+
}), `Expected the context export "${input.source.exportName ?? "default"}" from "${input.source.logicalPath}" to match the public Ash shape.`);
|
|
36
|
+
return {
|
|
37
|
+
content: definition.content,
|
|
38
|
+
id: definition.id,
|
|
39
|
+
mediaType: definition.mediaType,
|
|
40
|
+
title: definition.title,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async function compileAgentNodeManifest(manifest) {
|
|
44
|
+
return createCompiledAgentNodeManifest({
|
|
45
|
+
agentId: manifest.agentId,
|
|
46
|
+
agentRoot: manifest.agentRoot,
|
|
47
|
+
appRoot: manifest.appRoot,
|
|
48
|
+
config: await compileAgentConfig(manifest),
|
|
49
|
+
context: manifest.context,
|
|
50
|
+
diagnosticsSummary: manifest.diagnosticsSummary,
|
|
51
|
+
promptLayers: manifest.system === undefined
|
|
52
|
+
? []
|
|
53
|
+
: [await compilePromptLayer(manifest.agentRoot, manifest.system)],
|
|
54
|
+
sandboxes: await Promise.all(manifest.sandboxes.map((sandboxSource) => compileSandboxDefinition(manifest.agentRoot, sandboxSource))),
|
|
55
|
+
schedules: await Promise.all(manifest.schedules.map((scheduleSource) => compileScheduleDefinition(manifest.agentRoot, scheduleSource))),
|
|
56
|
+
skills: await Promise.all(manifest.skills.map((skillSource) => compileSkillSource(manifest.agentRoot, skillSource))),
|
|
57
|
+
tools: await Promise.all(manifest.tools.map((toolSource) => compileToolDefinition(manifest.agentRoot, toolSource))),
|
|
58
|
+
workspace: manifest.workspace,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async function compileAgentConfig(manifest) {
|
|
62
|
+
if (manifest.configModule === undefined) {
|
|
63
|
+
return {
|
|
64
|
+
metadata: {},
|
|
65
|
+
model: {
|
|
66
|
+
id: DEFAULT_RUNTIME_MODEL_ID,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const definition = normalizeAgentDefinition(await loadModuleBackedDefinition({
|
|
71
|
+
agentRoot: manifest.agentRoot,
|
|
72
|
+
kind: "agent config",
|
|
73
|
+
source: manifest.configModule,
|
|
74
|
+
}), `Expected the agent config export "${manifest.configModule.exportName ?? "default"}" from "${manifest.configModule.logicalPath}" to match the public Ash shape.`);
|
|
75
|
+
const model = normalizeAuthoredModelReference(definition.model, manifest.configModule);
|
|
76
|
+
const compiledConfig = {
|
|
77
|
+
metadata: definition.metadata ?? {},
|
|
78
|
+
model,
|
|
79
|
+
};
|
|
80
|
+
if (definition.id !== undefined) {
|
|
81
|
+
compiledConfig.id = definition.id;
|
|
82
|
+
}
|
|
83
|
+
if (manifest.configModule !== undefined) {
|
|
84
|
+
compiledConfig.source = {
|
|
85
|
+
exportName: manifest.configModule.exportName,
|
|
86
|
+
kind: "module",
|
|
87
|
+
logicalPath: manifest.configModule.logicalPath,
|
|
88
|
+
sourceId: manifest.configModule.sourceId,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
return compiledConfig;
|
|
92
|
+
}
|
|
93
|
+
async function compilePromptLayer(agentRoot, source) {
|
|
94
|
+
if (source === undefined) {
|
|
95
|
+
throw new Error("Missing system source while compiling prompt layers.");
|
|
96
|
+
}
|
|
97
|
+
const definition = source.kind === "markdown"
|
|
98
|
+
? normalizeSystemDefinition(source.definition, `Expected the compiled system definition at "${source.logicalPath}" to match the public Ash shape.`)
|
|
99
|
+
: normalizeSystemDefinition(await loadModuleBackedDefinition({
|
|
100
|
+
agentRoot,
|
|
101
|
+
kind: "system",
|
|
102
|
+
source,
|
|
103
|
+
}), `Expected the system export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
|
|
104
|
+
return {
|
|
105
|
+
id: definition.id ?? stripLogicalPathExtension(source.logicalPath),
|
|
106
|
+
kind: "system",
|
|
107
|
+
logicalPath: source.logicalPath,
|
|
108
|
+
markdown: definition.markdown,
|
|
109
|
+
sourceId: source.sourceId,
|
|
110
|
+
sourceKind: source.kind,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
async function compileSkillSource(agentRoot, source) {
|
|
114
|
+
if (source.kind === "skill-package") {
|
|
115
|
+
return compileSkillPackageSource(source);
|
|
116
|
+
}
|
|
117
|
+
const definition = source.kind === "markdown"
|
|
118
|
+
? normalizeSkillDefinition(source.definition, `Expected the compiled skill definition at "${source.logicalPath}" to match the public Ash shape.`)
|
|
119
|
+
: normalizeSkillDefinition(await loadModuleBackedDefinition({
|
|
120
|
+
agentRoot,
|
|
121
|
+
kind: "skill",
|
|
122
|
+
source,
|
|
123
|
+
}), `Expected the skill export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
|
|
124
|
+
return {
|
|
125
|
+
compatibility: definition.compatibility,
|
|
126
|
+
description: definition.description,
|
|
127
|
+
license: definition.license,
|
|
128
|
+
logicalPath: source.logicalPath,
|
|
129
|
+
markdown: definition.markdown,
|
|
130
|
+
metadata: definition.metadata === undefined
|
|
131
|
+
? undefined
|
|
132
|
+
: {
|
|
133
|
+
...definition.metadata,
|
|
134
|
+
},
|
|
135
|
+
name: definition.name,
|
|
136
|
+
sourceId: source.sourceId,
|
|
137
|
+
sourceKind: source.kind,
|
|
138
|
+
skillId: definition.id ?? stripLogicalPathExtension(source.logicalPath),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function compileSkillPackageSource(source) {
|
|
142
|
+
return {
|
|
143
|
+
assetsPath: source.assetsPath,
|
|
144
|
+
compatibility: source.compatibility,
|
|
145
|
+
description: source.description,
|
|
146
|
+
license: source.license,
|
|
147
|
+
logicalPath: source.logicalPath,
|
|
148
|
+
markdown: source.markdown,
|
|
149
|
+
metadata: source.metadata === undefined
|
|
150
|
+
? undefined
|
|
151
|
+
: {
|
|
152
|
+
...source.metadata,
|
|
153
|
+
},
|
|
154
|
+
name: source.name,
|
|
155
|
+
referencesPath: source.referencesPath,
|
|
156
|
+
rootPath: source.rootPath,
|
|
157
|
+
scriptsPath: source.scriptsPath,
|
|
158
|
+
skillFilePath: source.skillFilePath,
|
|
159
|
+
skillId: source.skillId,
|
|
160
|
+
sourceId: source.sourceId,
|
|
161
|
+
sourceKind: "skill-package",
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async function compileScheduleDefinition(agentRoot, source) {
|
|
165
|
+
const definition = source.kind === "markdown"
|
|
166
|
+
? normalizeScheduleDefinition(source.definition, `Expected the compiled schedule definition at "${source.logicalPath}" to match the public Ash shape.`)
|
|
167
|
+
: normalizeScheduleDefinition(await loadModuleBackedDefinition({
|
|
168
|
+
agentRoot,
|
|
169
|
+
kind: "schedule",
|
|
170
|
+
source,
|
|
171
|
+
}), `Expected the schedule export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
|
|
172
|
+
return {
|
|
173
|
+
cron: definition.cron,
|
|
174
|
+
id: definition.id ?? stripLogicalPathExtension(source.logicalPath),
|
|
175
|
+
logicalPath: source.logicalPath,
|
|
176
|
+
markdown: definition.markdown,
|
|
177
|
+
sourceId: source.sourceId,
|
|
178
|
+
sourceKind: source.kind,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
async function compileToolDefinition(agentRoot, source) {
|
|
182
|
+
const definition = normalizeToolDefinition(await loadModuleBackedDefinition({
|
|
183
|
+
agentRoot,
|
|
184
|
+
kind: "tool",
|
|
185
|
+
source,
|
|
186
|
+
}), `Expected the tool export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
|
|
187
|
+
return {
|
|
188
|
+
description: definition.description,
|
|
189
|
+
exportName: source.exportName,
|
|
190
|
+
inputSchema: definition.inputSchema ?? null,
|
|
191
|
+
logicalPath: source.logicalPath,
|
|
192
|
+
name: definition.name,
|
|
193
|
+
sourceId: source.sourceId,
|
|
194
|
+
sourceKind: "module",
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
async function compileSandboxDefinition(agentRoot, source) {
|
|
198
|
+
const definition = normalizeSandboxDefinition(await loadModuleBackedDefinition({
|
|
199
|
+
agentRoot,
|
|
200
|
+
kind: "sandbox",
|
|
201
|
+
source,
|
|
202
|
+
}), `Expected the sandbox export "${source.exportName ?? "default"}" from "${source.logicalPath}" to match the public Ash shape.`);
|
|
203
|
+
const sandboxName = stripLogicalPathExtension(source.logicalPath).replace(/^sandboxes\//, "");
|
|
204
|
+
return {
|
|
205
|
+
description: definition.description ?? null,
|
|
206
|
+
exportName: source.exportName,
|
|
207
|
+
logicalPath: source.logicalPath,
|
|
208
|
+
name: sandboxName,
|
|
209
|
+
sourceId: source.sourceId,
|
|
210
|
+
sourceKind: "module",
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
async function compileSubagentGraph(input) {
|
|
214
|
+
const compiledNodes = [];
|
|
215
|
+
const compiledEdges = [];
|
|
216
|
+
for (const subagentSource of input.subagents) {
|
|
217
|
+
const compiledSubagent = await compileLocalSubagent({
|
|
218
|
+
appRoot: input.appRoot,
|
|
219
|
+
parentNodeId: input.parentNodeId,
|
|
220
|
+
source: subagentSource,
|
|
221
|
+
});
|
|
222
|
+
compiledNodes.push(compiledSubagent.node, ...compiledSubagent.descendants.nodes);
|
|
223
|
+
compiledEdges.push({
|
|
224
|
+
childNodeId: compiledSubagent.node.nodeId,
|
|
225
|
+
parentNodeId: input.parentNodeId,
|
|
226
|
+
}, ...compiledSubagent.descendants.edges);
|
|
227
|
+
}
|
|
228
|
+
return {
|
|
229
|
+
edges: compiledEdges,
|
|
230
|
+
nodes: compiledNodes,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
async function compileLocalSubagent(input) {
|
|
234
|
+
if (input.source.manifest.subagentModule === undefined) {
|
|
235
|
+
throw new Error(`Missing the local subagent definition module for "${input.source.logicalPath}" while compiling authored definitions.`);
|
|
236
|
+
}
|
|
237
|
+
const definition = normalizeSubagentDefinition(await loadModuleBackedDefinition({
|
|
238
|
+
agentRoot: input.source.rootPath,
|
|
239
|
+
kind: "local subagent",
|
|
240
|
+
source: input.source.manifest.subagentModule,
|
|
241
|
+
}), `Expected the local subagent export "${input.source.manifest.subagentModule.exportName ?? "default"}" from "${input.source.manifest.subagentModule.logicalPath}" to match the public Ash shape.`);
|
|
242
|
+
const subagentId = definition.id ?? input.source.subagentId;
|
|
243
|
+
const nodeId = createCompiledSubagentNodeId(input.parentNodeId, input.source.sourceId);
|
|
244
|
+
const agent = await compileAgentNodeManifest({
|
|
245
|
+
...input.source.manifest,
|
|
246
|
+
agentId: subagentId,
|
|
247
|
+
appRoot: input.appRoot,
|
|
248
|
+
});
|
|
249
|
+
const descendants = await compileSubagentGraph({
|
|
250
|
+
appRoot: input.appRoot,
|
|
251
|
+
parentNodeId: nodeId,
|
|
252
|
+
subagents: input.source.manifest.subagents,
|
|
253
|
+
});
|
|
254
|
+
return {
|
|
255
|
+
descendants,
|
|
256
|
+
node: {
|
|
257
|
+
agent,
|
|
258
|
+
description: definition.description,
|
|
259
|
+
entryPath: input.source.entryPath,
|
|
260
|
+
inputSchema: definition.inputSchema,
|
|
261
|
+
logicalPath: input.source.logicalPath,
|
|
262
|
+
name: definition.name,
|
|
263
|
+
nodeId,
|
|
264
|
+
rootPath: input.source.rootPath,
|
|
265
|
+
sourceId: input.source.sourceId,
|
|
266
|
+
subagentId,
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
async function loadModuleBackedDefinition(input) {
|
|
271
|
+
const moduleNamespace = await loadAuthoredModuleNamespace(join(input.agentRoot, input.source.logicalPath));
|
|
272
|
+
const exportValue = getAuthoredModuleExport(moduleNamespace, input.source);
|
|
273
|
+
try {
|
|
274
|
+
return await materializeAuthoredModuleExport(exportValue);
|
|
275
|
+
}
|
|
276
|
+
catch (error) {
|
|
277
|
+
throw new Error(`Failed to execute the ${input.kind} export "${input.source.exportName ?? "default"}" from "${input.source.logicalPath}": ${formatUnknownError(error)}`);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function normalizeAuthoredModelReference(value, source) {
|
|
281
|
+
if (value === undefined) {
|
|
282
|
+
return {
|
|
283
|
+
id: DEFAULT_RUNTIME_MODEL_ID,
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
if (typeof value === "string") {
|
|
287
|
+
return {
|
|
288
|
+
id: value,
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
const record = expectObjectRecord(value, `Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
|
|
292
|
+
const specificationVersion = record.specificationVersion;
|
|
293
|
+
if (specificationVersion !== "v2" && specificationVersion !== "v3") {
|
|
294
|
+
throw new Error(`Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
|
|
295
|
+
}
|
|
296
|
+
if (typeof record.provider !== "string" ||
|
|
297
|
+
typeof record.modelId !== "string" ||
|
|
298
|
+
typeof record.doGenerate !== "function" ||
|
|
299
|
+
typeof record.doStream !== "function") {
|
|
300
|
+
throw new Error(`Expected the authored agent config export "${source.exportName ?? "default"}" from "${source.logicalPath}" to provide a valid AI SDK language model.`);
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
id: `${record.provider}/${record.modelId}`,
|
|
304
|
+
source: {
|
|
305
|
+
exportName: source.exportName,
|
|
306
|
+
kind: "module",
|
|
307
|
+
logicalPath: source.logicalPath,
|
|
308
|
+
sourceId: source.sourceId,
|
|
309
|
+
},
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function formatUnknownError(error) {
|
|
313
|
+
return error instanceof Error ? error.message : String(error);
|
|
314
|
+
}
|
|
315
|
+
//# sourceMappingURL=normalize-manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-manifest.js","sourceRoot":"","sources":["../../../src/compiler/normalize-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAQtE,OAAO,EACL,wBAAwB,EACxB,kCAAkC,EAClC,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,EAYL,2BAA2B,EAC3B,+BAA+B,EAC/B,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,QAA6B;IAE7B,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACtD,wBAAwB,CAAC,QAAQ,CAAC;QAClC,oBAAoB,CAAC;YACnB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,YAAY,EAAE,2BAA2B;YACzC,SAAS,EAAE,QAAQ,CAAC,SAAS;SAC9B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO,2BAA2B,CAAC;QACjC,GAAG,YAAY;QACf,aAAa,EAAE,aAAa,CAAC,KAAK;QAClC,SAAS,EAAE,aAAa,CAAC,KAAK;KAC/B,CAAC,CAAC;AACL,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAg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AO;QACL,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE;QAC1C,MAAM,EAAE;YACN,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B;KACF,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,KAAc;IACxC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One copied compiled resource file staged under `.ash/compile/`.
|
|
3
|
+
*/
|
|
4
|
+
export interface CopiedCompiledResourceFile {
|
|
5
|
+
compiledPath: string;
|
|
6
|
+
content: Uint8Array;
|
|
7
|
+
contentSha256: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Copies one authored file into a compiled artifact directory and returns the
|
|
11
|
+
* staged path metadata shared by context and workspace artifacts.
|
|
12
|
+
*/
|
|
13
|
+
export declare function copyCompiledResourceFile(input: {
|
|
14
|
+
agentRoot: string;
|
|
15
|
+
appRoot: string;
|
|
16
|
+
compileDirectoryPath: string;
|
|
17
|
+
copiedLogicalPath: string;
|
|
18
|
+
logicalPath: string;
|
|
19
|
+
}): Promise<CopiedCompiledResourceFile>;
|
|
20
|
+
//# sourceMappingURL=resource-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-files.d.ts","sourceRoot":"","sources":["../../../src/compiler/resource-files.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,UAAU,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,KAAK,EAAE;IACpD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAetC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
|
+
import { dirname, join, relative, resolve } from "node:path";
|
|
4
|
+
import { normalizeLogicalPath } from "../discover/filesystem.js";
|
|
5
|
+
/**
|
|
6
|
+
* Copies one authored file into a compiled artifact directory and returns the
|
|
7
|
+
* staged path metadata shared by context and workspace artifacts.
|
|
8
|
+
*/
|
|
9
|
+
export async function copyCompiledResourceFile(input) {
|
|
10
|
+
const sourcePath = join(input.agentRoot, input.logicalPath);
|
|
11
|
+
const compiledFilePath = join(input.compileDirectoryPath, input.copiedLogicalPath);
|
|
12
|
+
const content = await readFile(sourcePath);
|
|
13
|
+
await mkdir(dirname(compiledFilePath), {
|
|
14
|
+
recursive: true,
|
|
15
|
+
});
|
|
16
|
+
await writeFile(compiledFilePath, content);
|
|
17
|
+
return {
|
|
18
|
+
compiledPath: toArtifactRelativePath(input.appRoot, compiledFilePath),
|
|
19
|
+
content,
|
|
20
|
+
contentSha256: createContentHash(content),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createContentHash(content) {
|
|
24
|
+
return createHash("sha256").update(content).digest("hex");
|
|
25
|
+
}
|
|
26
|
+
function toArtifactRelativePath(appRoot, targetPath) {
|
|
27
|
+
return normalizeLogicalPath(relative(resolve(appRoot), targetPath));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=resource-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-files.js","sourceR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;AACtE,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { WorkspaceFileSourceRef } from "../discover/manifest.js";
|
|
3
|
+
/**
|
|
4
|
+
* Stable compiled workspace artifact kind emitted by the compiler.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WORKSPACE_RESOURCES_ARTIFACT_KIND = "ash-workspace-resources";
|
|
7
|
+
/**
|
|
8
|
+
* Current compiled workspace artifact schema version.
|
|
9
|
+
*/
|
|
10
|
+
export declare const WORKSPACE_RESOURCES_ARTIFACT_VERSION = 1;
|
|
11
|
+
/**
|
|
12
|
+
* Compiler-owned metadata for one copied authored workspace seed file.
|
|
13
|
+
*/
|
|
14
|
+
export interface CompiledWorkspaceFileResource {
|
|
15
|
+
byteSize: number;
|
|
16
|
+
compiledPath: string;
|
|
17
|
+
contentSha256: string;
|
|
18
|
+
logicalPath: string;
|
|
19
|
+
sourceId: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Zod schema for one compiled workspace file resource.
|
|
23
|
+
*/
|
|
24
|
+
export declare const compiledWorkspaceFileResourceSchema: z.ZodType<CompiledWorkspaceFileResource>;
|
|
25
|
+
/**
|
|
26
|
+
* Versioned compiled workspace artifact written under `.ash/compile/`.
|
|
27
|
+
*/
|
|
28
|
+
export interface WorkspaceResourcesArtifact {
|
|
29
|
+
kind: typeof WORKSPACE_RESOURCES_ARTIFACT_KIND;
|
|
30
|
+
resources: CompiledWorkspaceFileResource[];
|
|
31
|
+
version: typeof WORKSPACE_RESOURCES_ARTIFACT_VERSION;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Zod schema for the compiled workspace resources artifact.
|
|
35
|
+
*/
|
|
36
|
+
export declare const workspaceResourcesArtifactSchema: z.ZodType<WorkspaceResourcesArtifact>;
|
|
37
|
+
/**
|
|
38
|
+
* Input for copying authored `workspace/` seed files into compiler-owned
|
|
39
|
+
* artifacts.
|
|
40
|
+
*/
|
|
41
|
+
export interface WriteCompiledWorkspaceResourcesInput {
|
|
42
|
+
agentRoot: string;
|
|
43
|
+
appRoot: string;
|
|
44
|
+
compileWorkspaceDirectoryPath: string;
|
|
45
|
+
workspace: readonly WorkspaceFileSourceRef[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Result of copying authored workspace seed files for compiled runtime use.
|
|
49
|
+
*/
|
|
50
|
+
export interface WriteCompiledWorkspaceResourcesResult {
|
|
51
|
+
artifact: WorkspaceResourcesArtifact;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Copies authored `workspace/` files into `.ash/compile/workspace/` and
|
|
55
|
+
* returns the compiler-owned metadata artifact for runtime hydration.
|
|
56
|
+
*/
|
|
57
|
+
export declare function writeCompiledWorkspaceResources(input: WriteCompiledWorkspaceResourcesInput): Promise<WriteCompiledWorkspaceResourcesResult>;
|
|
58
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/compiler/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAItE;;GAEG;AACH,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,oCAAoC,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAQ9E,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,OAAO,iCAAiC,CAAC;IAC/C,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,OAAO,EAAE,OAAO,oCAAoC,CAAC;CACtD;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CAAC,0BAA0B,CAMxE,CAAC;AAEZ;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,6BAA6B,EAAE,MAAM,CAAC;IACtC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,QAAQ,EAAE,0BAA0B,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CACnD,KAAK,EAAE,oCAAoC,GAC1C,OAAO,CAAC,qCAAqC,CAAC,CAqBhD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { stripWorkspaceRootLogicalPath } from "../internal/logical-paths.js";
|
|
3
|
+
import { copyCompiledResourceFile } from "./resource-files.js";
|
|
4
|
+
/**
|
|
5
|
+
* Stable compiled workspace artifact kind emitted by the compiler.
|
|
6
|
+
*/
|
|
7
|
+
export const WORKSPACE_RESOURCES_ARTIFACT_KIND = "ash-workspace-resources";
|
|
8
|
+
/**
|
|
9
|
+
* Current compiled workspace artifact schema version.
|
|
10
|
+
*/
|
|
11
|
+
export const WORKSPACE_RESOURCES_ARTIFACT_VERSION = 1;
|
|
12
|
+
/**
|
|
13
|
+
* Zod schema for one compiled workspace file resource.
|
|
14
|
+
*/
|
|
15
|
+
export const compiledWorkspaceFileResourceSchema = z
|
|
16
|
+
.object({
|
|
17
|
+
byteSize: z.number().finite(),
|
|
18
|
+
compiledPath: z.string(),
|
|
19
|
+
contentSha256: z.string(),
|
|
20
|
+
logicalPath: z.string(),
|
|
21
|
+
sourceId: z.string(),
|
|
22
|
+
})
|
|
23
|
+
.strict();
|
|
24
|
+
/**
|
|
25
|
+
* Zod schema for the compiled workspace resources artifact.
|
|
26
|
+
*/
|
|
27
|
+
export const workspaceResourcesArtifactSchema = z
|
|
28
|
+
.object({
|
|
29
|
+
kind: z.literal(WORKSPACE_RESOURCES_ARTIFACT_KIND),
|
|
30
|
+
resources: z.array(compiledWorkspaceFileResourceSchema),
|
|
31
|
+
version: z.literal(WORKSPACE_RESOURCES_ARTIFACT_VERSION),
|
|
32
|
+
})
|
|
33
|
+
.strict();
|
|
34
|
+
/**
|
|
35
|
+
* Copies authored `workspace/` files into `.ash/compile/workspace/` and
|
|
36
|
+
* returns the compiler-owned metadata artifact for runtime hydration.
|
|
37
|
+
*/
|
|
38
|
+
export async function writeCompiledWorkspaceResources(input) {
|
|
39
|
+
const resources = await Promise.all(input.workspace.map(async (sourceRef) => copyCompiledWorkspaceFile({
|
|
40
|
+
agentRoot: input.agentRoot,
|
|
41
|
+
appRoot: input.appRoot,
|
|
42
|
+
compileWorkspaceDirectoryPath: input.compileWorkspaceDirectoryPath,
|
|
43
|
+
sourceRef,
|
|
44
|
+
})));
|
|
45
|
+
resources.sort((left, right) => left.logicalPath.localeCompare(right.logicalPath));
|
|
46
|
+
return {
|
|
47
|
+
artifact: {
|
|
48
|
+
kind: WORKSPACE_RESOURCES_ARTIFACT_KIND,
|
|
49
|
+
resources,
|
|
50
|
+
version: WORKSPACE_RESOURCES_ARTIFACT_VERSION,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
async function copyCompiledWorkspaceFile(input) {
|
|
55
|
+
const copiedFile = await copyCompiledResourceFile({
|
|
56
|
+
agentRoot: input.agentRoot,
|
|
57
|
+
appRoot: input.appRoot,
|
|
58
|
+
compileDirectoryPath: input.compileWorkspaceDirectoryPath,
|
|
59
|
+
copiedLogicalPath: stripWorkspaceRootLogicalPath(input.sourceRef.logicalPath),
|
|
60
|
+
logicalPath: input.sourceRef.logicalPath,
|
|
61
|
+
});
|
|
62
|
+
return {
|
|
63
|
+
byteSize: input.sourceRef.byteSize,
|
|
64
|
+
compiledPath: copiedFile.compiledPath,
|
|
65
|
+
contentSha256: copiedFile.contentSha256,
|
|
66
|
+
logicalPath: input.sourceRef.logicalPath,
|
|
67
|
+
sourceId: input.sourceRef.sourceId,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../src/compiler/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,yBAAyB,CAAC;AAE3E;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC;AAatD;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAA6C,CAAC;KAC3F,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC;KACD,MAAM,EAAE,CAAC;AAWZ;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAA0C,CAAC;KACrF,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,mCAAmC,CAAC;IACvD,OAAO,EAAE,CAAC,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,KAAK,CAAC,SAAS,CAAC,QAAQ;KACnC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Dirent } from "node:fs";
|
|
2
|
+
import { type DiscoverDiagnostic } from "./diagnostics.js";
|
|
3
|
+
import { type ContextSourceRef } from "./manifest.js";
|
|
4
|
+
/**
|
|
5
|
+
* Diagnostic emitted when the authored `context/` root exists but is not a
|
|
6
|
+
* directory.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DISCOVER_CONTEXT_DIRECTORY_INVALID = "discover/context-directory-invalid";
|
|
9
|
+
/**
|
|
10
|
+
* Diagnostic emitted when discovery finds an unsupported non-file entry under
|
|
11
|
+
* the authored `context/` tree.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DISCOVER_CONTEXT_ENTRY_UNSUPPORTED = "discover/context-entry-unsupported";
|
|
14
|
+
type StringDirent = Dirent<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Input for discovering authored `context/` resources.
|
|
17
|
+
*/
|
|
18
|
+
export interface DiscoverContextSourcesInput {
|
|
19
|
+
agentRoot: string;
|
|
20
|
+
rootEntries: readonly StringDirent[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Result of recursively discovering authored `context/` resources.
|
|
24
|
+
*/
|
|
25
|
+
export interface DiscoverContextSourcesResult {
|
|
26
|
+
context: ContextSourceRef[];
|
|
27
|
+
diagnostics: DiscoverDiagnostic[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Discovers file-backed and module-backed resources under `context/` without
|
|
31
|
+
* executing any authored modules.
|
|
32
|
+
*/
|
|
33
|
+
export declare function discoverContextSources(input: DiscoverContextSourcesInput): Promise<DiscoverContextSourcesResult>;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/discover/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,uCAAuC,CAAC;AAEvF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,SAAS,YAAY,EAAE,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,EAAE,kBAAkB,EAAE,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,4BAA4B,CAAC,CAoDvC"}
|