veryfront 0.1.1047 → 0.1.1049
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/esm/cli/auth/login.d.ts +5 -5
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +28 -28
- package/esm/cli/auth/provider-store.d.ts +5 -4
- package/esm/cli/auth/provider-store.d.ts.map +1 -1
- package/esm/cli/auth/provider-store.js +17 -13
- package/esm/cli/commands/build/command.d.ts +2 -0
- package/esm/cli/commands/build/command.d.ts.map +1 -1
- package/esm/cli/commands/build/command.js +46 -20
- package/esm/cli/commands/build/handler.d.ts +6 -0
- package/esm/cli/commands/build/handler.d.ts.map +1 -1
- package/esm/cli/commands/build/handler.js +9 -5
- package/esm/cli/commands/deploy/command-help.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command-help.js +2 -1
- package/esm/cli/commands/deploy/command.d.ts +83 -14
- package/esm/cli/commands/deploy/command.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command.js +317 -23
- package/esm/cli/commands/deploy/index.d.ts +2 -2
- package/esm/cli/commands/deploy/index.d.ts.map +1 -1
- package/esm/cli/commands/deploy/index.js +1 -1
- package/esm/cli/commands/dev/command.d.ts +1 -0
- package/esm/cli/commands/dev/command.d.ts.map +1 -1
- package/esm/cli/commands/dev/command.js +10 -1
- package/esm/cli/commands/dev/handler.d.ts +2 -0
- package/esm/cli/commands/dev/handler.d.ts.map +1 -1
- package/esm/cli/commands/dev/handler.js +6 -1
- package/esm/cli/commands/doctor/command-help.d.ts.map +1 -1
- package/esm/cli/commands/doctor/command-help.js +5 -1
- package/esm/cli/commands/doctor/handler.d.ts +1 -0
- package/esm/cli/commands/doctor/handler.d.ts.map +1 -1
- package/esm/cli/commands/doctor/handler.js +2 -0
- package/esm/cli/commands/doctor/index.d.ts +7 -0
- package/esm/cli/commands/doctor/index.d.ts.map +1 -1
- package/esm/cli/commands/doctor/index.js +67 -15
- package/esm/cli/commands/doctor/server-checks.d.ts +2 -2
- package/esm/cli/commands/doctor/server-checks.d.ts.map +1 -1
- package/esm/cli/commands/doctor/server-checks.js +5 -4
- package/esm/cli/commands/init/init-command.js +4 -4
- package/esm/cli/commands/init/types.d.ts +2 -0
- package/esm/cli/commands/init/types.d.ts.map +1 -1
- package/esm/cli/commands/push/command.d.ts +10 -1
- package/esm/cli/commands/push/command.d.ts.map +1 -1
- package/esm/cli/commands/push/command.js +135 -14
- package/esm/cli/commands/skills/create.d.ts +1 -1
- package/esm/cli/commands/skills/create.d.ts.map +1 -1
- package/esm/cli/commands/skills/create.js +1 -2
- package/esm/cli/mcp/server.d.ts.map +1 -1
- package/esm/cli/mcp/server.js +33 -7
- package/esm/cli/mcp/tools/catalog-tools.d.ts +6 -1
- package/esm/cli/mcp/tools/catalog-tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools/catalog-tools.js +9 -5
- package/esm/cli/mcp/tools/deploy-tool.d.ts +11 -1
- package/esm/cli/mcp/tools/deploy-tool.d.ts.map +1 -1
- package/esm/cli/mcp/tools/deploy-tool.js +55 -10
- package/esm/cli/shared/args.d.ts.map +1 -1
- package/esm/cli/shared/args.js +29 -2
- package/esm/cli/shared/config.d.ts +24 -0
- package/esm/cli/shared/config.d.ts.map +1 -1
- package/esm/cli/shared/config.js +62 -16
- package/esm/cli/shared/deployment-provenance.d.ts +47 -0
- package/esm/cli/shared/deployment-provenance.d.ts.map +1 -0
- package/esm/cli/shared/deployment-provenance.js +214 -0
- package/esm/cli/shared/json-output.d.ts.map +1 -1
- package/esm/cli/shared/json-output.js +16 -0
- package/esm/cli/shared/reserve-slug.d.ts +8 -1
- package/esm/cli/shared/reserve-slug.d.ts.map +1 -1
- package/esm/cli/shared/reserve-slug.js +15 -4
- package/esm/cli/skills/core-skills.d.ts.map +1 -1
- package/esm/cli/skills/core-skills.js +6 -3
- package/esm/cli/templates/manifest.js +3 -3
- package/esm/cli/utils/index.d.ts.map +1 -1
- package/esm/cli/utils/index.js +3 -0
- package/esm/deno.d.ts +3 -0
- package/esm/deno.js +11 -7
- package/esm/src/agent/react/use-agent-metadata.js +1 -1
- package/esm/src/agent/react/use-agent.js +1 -1
- package/esm/src/agent/react/use-agents.js +1 -1
- package/esm/src/agent/react/use-chat/types.d.ts +0 -6
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts +5 -0
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +87 -34
- package/esm/src/agent/react/use-completion.js +1 -1
- package/esm/src/agent/react/use-streaming.js +1 -1
- package/esm/src/agent/react/use-voice-input.js +1 -1
- package/esm/src/build/bundler/code-splitter/splitter.d.ts +3 -0
- package/esm/src/build/bundler/code-splitter/splitter.d.ts.map +1 -1
- package/esm/src/build/bundler/code-splitter/splitter.js +21 -2
- package/esm/src/build/embedded/preset.d.ts +3 -2
- package/esm/src/build/embedded/preset.d.ts.map +1 -1
- package/esm/src/build/embedded/preset.js +120 -97
- package/esm/src/build/production-build/build/build-cleanup.d.ts.map +1 -1
- package/esm/src/build/production-build/build/build-cleanup.js +6 -1
- package/esm/src/build/production-build/build/build-orchestrator.d.ts.map +1 -1
- package/esm/src/build/production-build/build/build-orchestrator.js +55 -49
- package/esm/src/build/production-build/build/output-generator.d.ts +2 -0
- package/esm/src/build/production-build/build/output-generator.d.ts.map +1 -1
- package/esm/src/build/production-build/build/output-generator.js +2 -1
- package/esm/src/build/production-build/build/route-collector.d.ts +2 -1
- package/esm/src/build/production-build/build/route-collector.d.ts.map +1 -1
- package/esm/src/build/production-build/build/route-collector.js +3 -3
- package/esm/src/build/production-build/client-runtime.d.ts +4 -0
- package/esm/src/build/production-build/client-runtime.d.ts.map +1 -1
- package/esm/src/build/production-build/client-runtime.js +5 -8
- package/esm/src/build/production-build/local-release-assets.d.ts +2 -0
- package/esm/src/build/production-build/local-release-assets.d.ts.map +1 -1
- package/esm/src/build/production-build/local-release-assets.js +4 -1
- package/esm/src/build/production-build/manifest.d.ts.map +1 -1
- package/esm/src/build/production-build/manifest.js +9 -2
- package/esm/src/build/production-build/static-generation.d.ts.map +1 -1
- package/esm/src/build/production-build/static-generation.js +15 -3
- package/esm/src/build/production-build/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +1 -1
- package/esm/src/cache/backends/api.d.ts.map +1 -1
- package/esm/src/cache/backends/api.js +10 -7
- package/esm/src/chat/index.d.ts +8 -15
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +7 -16
- package/esm/src/config/config-files.d.ts +3 -0
- package/esm/src/config/config-files.d.ts.map +1 -0
- package/esm/src/config/config-files.js +6 -0
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +12 -9
- package/esm/src/extensions/parser/code-parser.d.ts +14 -0
- package/esm/src/extensions/parser/code-parser.d.ts.map +1 -1
- package/esm/src/extensions/parser/index.d.ts +1 -1
- package/esm/src/extensions/parser/index.d.ts.map +1 -1
- package/esm/src/html/html-injection.d.ts.map +1 -1
- package/esm/src/html/html-injection.js +2 -2
- package/esm/src/html/html-shell-generator.d.ts.map +1 -1
- package/esm/src/html/html-shell-generator.js +16 -9
- package/esm/src/html/hydration-script-builder/dev-component-manifest.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/dev-component-manifest.js +2 -1
- package/esm/src/html/hydration-script-builder/hydration-data-generator.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/hydration-data-generator.js +15 -4
- package/esm/src/html/hydration-script-builder/prod-hydration.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/prod-hydration.js +4 -2
- package/esm/src/html/hydration-script-builder/templates/renderer.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/templates/renderer.js +37 -7
- package/esm/src/html/hydration-script-builder/templates/router.d.ts.map +1 -1
- package/esm/src/html/hydration-script-builder/templates/router.js +22 -4
- package/esm/src/html/hydration-script-builder/types.d.ts +4 -0
- package/esm/src/html/hydration-script-builder/types.d.ts.map +1 -1
- package/esm/src/html/schemas/html.schema.d.ts +10 -0
- package/esm/src/html/schemas/html.schema.d.ts.map +1 -1
- package/esm/src/html/schemas/html.schema.js +5 -0
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +10 -10
- package/esm/src/modules/component-registry/registry.d.ts +1 -1
- package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
- package/esm/src/modules/react-loader/component-loader.d.ts +1 -1
- package/esm/src/modules/react-loader/component-loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/extract-component.d.ts +1 -1
- package/esm/src/modules/react-loader/extract-component.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.js +2 -3
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
- package/esm/src/modules/react-loader/types.d.ts +1 -1
- package/esm/src/modules/react-loader/types.d.ts.map +1 -1
- package/esm/src/modules/server/module-batch-handler.d.ts.map +1 -1
- package/esm/src/modules/server/module-batch-handler.js +3 -10
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts +1 -0
- package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/adapter.js +4 -0
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts +4 -1
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/multi-project-adapter.js +6 -0
- package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts +1 -0
- package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/read-operations.js +8 -0
- package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts +4 -0
- package/esm/src/platform/adapters/fs/veryfront/request-context.d.ts.map +1 -1
- package/esm/src/platform/adapters/fs/veryfront/request-context.js +1 -0
- package/esm/src/platform/adapters/mock.d.ts.map +1 -1
- package/esm/src/platform/adapters/mock.js +3 -2
- package/esm/src/platform/adapters/veryfront-api-client/client.d.ts +4 -1
- package/esm/src/platform/adapters/veryfront-api-client/client.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/client.js +8 -4
- package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +7 -3
- package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/operations.js +6 -6
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts +2 -0
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.d.ts.map +1 -1
- package/esm/src/platform/adapters/veryfront-api-client/retry-handler.js +4 -1
- package/esm/src/platform/compat/framework-source-resolver.d.ts +7 -1
- package/esm/src/platform/compat/framework-source-resolver.d.ts.map +1 -1
- package/esm/src/platform/compat/framework-source-resolver.js +32 -13
- package/esm/src/platform/compat/fs.d.ts +4 -0
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +34 -2
- package/esm/src/platform/compat/http/request-adapter.js +18 -1
- package/esm/src/platform/compat/path/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/path/runtime.js +1 -1
- package/esm/src/platform/compat/process/command.d.ts +2 -0
- package/esm/src/platform/compat/process/command.d.ts.map +1 -1
- package/esm/src/platform/compat/process/command.js +4 -3
- package/esm/src/platform/compat/runtime.d.ts +1 -1
- package/esm/src/platform/compat/runtime.d.ts.map +1 -1
- package/esm/src/platform/compat/runtime.js +5 -2
- package/esm/src/platform/index.d.ts +1 -1
- package/esm/src/platform/index.d.ts.map +1 -1
- package/esm/src/platform/index.js +1 -1
- package/esm/src/proxy/local-project-resolver.d.ts.map +1 -1
- package/esm/src/proxy/local-project-resolver.js +4 -2
- package/esm/src/proxy/main.js +17 -15
- package/esm/src/proxy/retry.d.ts +18 -0
- package/esm/src/proxy/retry.d.ts.map +1 -1
- package/esm/src/proxy/retry.js +89 -0
- package/esm/src/proxy/websocket-bridge.d.ts +10 -0
- package/esm/src/proxy/websocket-bridge.d.ts.map +1 -1
- package/esm/src/proxy/websocket-bridge.js +4 -0
- package/esm/src/react/compat/hooks-adapter.d.ts +1 -1
- package/esm/src/react/compat/hooks-adapter.d.ts.map +1 -1
- package/esm/src/react/compat/hooks-adapter.js +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/response-builder.js +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts +10 -7
- package/esm/src/react/compat/ssr-adapter/server-loader.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/server-loader.js +49 -32
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/stream-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/stream-renderer.js +5 -5
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.d.ts.map +1 -1
- package/esm/src/react/compat/ssr-adapter/string-renderer.js +2 -2
- package/esm/src/react/compat/ssr-adapter/types.d.ts +2 -0
- package/esm/src/react/compat/ssr-adapter/types.d.ts.map +1 -1
- package/esm/src/react/compat/version-detector/feature-detector.js +1 -1
- package/esm/src/react/components/AppWrapper.d.ts +1 -1
- package/esm/src/react/components/AppWrapper.d.ts.map +1 -1
- package/esm/src/react/components/AppWrapper.js +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts +1 -1
- package/esm/src/react/components/LayoutComponent.d.ts.map +1 -1
- package/esm/src/react/components/LayoutComponent.js +1 -1
- package/esm/src/react/components/MDXProvider.d.ts +1 -1
- package/esm/src/react/components/MDXProvider.d.ts.map +1 -1
- package/esm/src/react/components/MDXProvider.js +1 -1
- package/esm/src/react/components/ProviderComponent.d.ts +1 -1
- package/esm/src/react/components/ProviderComponent.d.ts.map +1 -1
- package/esm/src/react/components/ProviderComponent.js +1 -1
- package/esm/src/react/components/chat/agent-card.d.ts +15 -7
- package/esm/src/react/components/chat/agent-card.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-card.js +9 -10
- package/esm/src/react/components/chat/agent-picker-actions.d.ts +20 -0
- package/esm/src/react/components/chat/agent-picker-actions.d.ts.map +1 -0
- package/esm/src/react/components/chat/agent-picker-actions.js +24 -0
- package/esm/src/react/components/chat/agent-picker-context.d.ts +19 -0
- package/esm/src/react/components/chat/agent-picker-context.d.ts.map +1 -0
- package/esm/src/react/components/chat/agent-picker-context.js +13 -0
- package/esm/src/react/components/chat/agent-picker.d.ts +35 -42
- package/esm/src/react/components/chat/agent-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/agent-picker.js +59 -50
- package/esm/src/react/components/chat/chat/app-mode-chat.d.ts +14 -0
- package/esm/src/react/components/chat/chat/app-mode-chat.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/app-mode-chat.js +137 -0
- package/esm/src/react/components/chat/chat/chat-attachments.d.ts +7 -0
- package/esm/src/react/components/chat/chat/chat-attachments.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/chat-attachments.js +16 -0
- package/esm/src/react/components/chat/chat/chat-component.d.ts +21 -0
- package/esm/src/react/components/chat/chat/chat-component.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/chat-component.js +1 -0
- package/esm/src/react/components/chat/chat/chat-props.d.ts +114 -0
- package/esm/src/react/components/chat/chat/chat-props.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/chat-props.js +1 -0
- package/esm/src/react/components/chat/chat/components/animations.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/animations.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/animations.js +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts +18 -18
- package/esm/src/react/components/chat/chat/components/attachment-pill.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachment-pill.js +11 -15
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts +14 -3
- package/esm/src/react/components/chat/chat/components/attachments-panel.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/attachments-panel.js +3 -3
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts +44 -14
- package/esm/src/react/components/chat/chat/components/branch-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/branch-picker.js +55 -12
- package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/chat-messages-skeleton.js +1 -1
- package/esm/src/react/components/chat/chat/components/code-block.d.ts +7 -2
- package/esm/src/react/components/chat/chat/components/code-block.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/code-block.js +3 -3
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/drop-zone.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/drop-zone.js +1 -1
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/empty-state.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/empty-state.js +1 -1
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/inference-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inference-badge.js +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts +33 -10
- package/esm/src/react/components/chat/chat/components/inline-citation.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/inline-citation.js +145 -51
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts +49 -20
- package/esm/src/react/components/chat/chat/components/message-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-actions.js +72 -18
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/message-edit-form.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-edit-form.js +1 -1
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts +34 -14
- package/esm/src/react/components/chat/chat/components/message-feedback.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/message-feedback.js +54 -15
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/quick-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/quick-actions.js +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts +14 -6
- package/esm/src/react/components/chat/chat/components/reasoning.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/reasoning.js +3 -5
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts +70 -16
- package/esm/src/react/components/chat/chat/components/sidebar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sidebar.js +72 -23
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/skill-badge.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/skill-badge.js +1 -1
- package/esm/src/react/components/chat/chat/components/skill-tool.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/skill-tool.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/skill-tool.js +1 -1
- package/esm/src/react/components/chat/chat/components/sources.d.ts +25 -15
- package/esm/src/react/components/chat/chat/components/sources.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/sources.js +7 -7
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts +14 -3
- package/esm/src/react/components/chat/chat/components/step-indicator.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/step-indicator.js +3 -3
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts +1 -1
- package/esm/src/react/components/chat/chat/components/tab-switcher.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tab-switcher.js +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts +16 -9
- package/esm/src/react/components/chat/chat/components/tool-ui.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/components/tool-ui.js +10 -14
- package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/agent-avatar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/agent-avatar.js +1 -1
- package/esm/src/react/components/chat/chat/composition/api.d.ts +3 -3
- package/esm/src/react/components/chat/chat/composition/api.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/api.js +2 -2
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts +72 -29
- package/esm/src/react/components/chat/chat/composition/chat-composer.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-composer.js +92 -82
- package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty-state.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty-state.js +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts +7 -2
- package/esm/src/react/components/chat/chat/composition/chat-empty.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-empty.js +3 -3
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-if.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts +25 -11
- package/esm/src/react/components/chat/chat/composition/chat-message-list.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-message-list.js +67 -29
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts +7 -3
- package/esm/src/react/components/chat/chat/composition/chat-root.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/chat-root.js +3 -5
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts +7 -2
- package/esm/src/react/components/chat/chat/composition/error-banner.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/error-banner.js +3 -3
- package/esm/src/react/components/chat/chat/composition/message.d.ts +85 -34
- package/esm/src/react/components/chat/chat/composition/message.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/message.js +146 -122
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/model-avatar.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/model-avatar.js +1 -1
- package/esm/src/react/components/chat/chat/composition/pending-message.d.ts +1 -1
- package/esm/src/react/components/chat/chat/composition/pending-message.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/composition/pending-message.js +1 -1
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts +2 -3
- package/esm/src/react/components/chat/chat/contexts/chat-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/chat-context.js +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/composer-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/composer-context.js +1 -1
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts +2 -2
- package/esm/src/react/components/chat/chat/contexts/conversations-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/conversations-context.js +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.d.ts +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/index.js +1 -1
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts +15 -2
- package/esm/src/react/components/chat/chat/contexts/message-context.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/contexts/message-context.js +11 -1
- package/esm/src/react/components/chat/chat/controlled-chat.d.ts +15 -0
- package/esm/src/react/components/chat/chat/controlled-chat.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/controlled-chat.js +97 -0
- package/esm/src/react/components/chat/chat/hooks/use-clipboard.js +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts +54 -0
- package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.d.ts.map +1 -0
- package/esm/src/react/components/chat/chat/hooks/use-conversation-chat.js +179 -0
- package/esm/src/react/components/chat/chat/hooks/use-conversation.js +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-conversations.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-conversations.js +3 -6
- package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts +8 -5
- package/esm/src/react/components/chat/chat/hooks/use-drop-zone.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-drop-zone.js +6 -6
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-stick-to-bottom.js +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-upload.js +1 -1
- package/esm/src/react/components/chat/chat/hooks/use-uploads-registry.js +1 -1
- package/esm/src/react/components/chat/chat/index.d.ts +13 -230
- package/esm/src/react/components/chat/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat/index.js +27 -383
- package/esm/src/react/components/chat/chat-actions.d.ts +1 -1
- package/esm/src/react/components/chat/chat-actions.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-actions.js +1 -1
- package/esm/src/react/components/chat/chat-agent-picker.d.ts +1 -1
- package/esm/src/react/components/chat/chat-agent-picker.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-agent-picker.js +1 -1
- package/esm/src/react/components/chat/chat-theme-scope.d.ts +1 -1
- package/esm/src/react/components/chat/chat-theme-scope.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat-theme-scope.js +1 -1
- package/esm/src/react/components/chat/chat.d.ts +6 -6
- package/esm/src/react/components/chat/chat.d.ts.map +1 -1
- package/esm/src/react/components/chat/chat.js +4 -4
- package/esm/src/react/components/chat/error-boundary.d.ts +1 -1
- package/esm/src/react/components/chat/error-boundary.d.ts.map +1 -1
- package/esm/src/react/components/chat/error-boundary.js +1 -1
- package/esm/src/react/components/chat/markdown.d.ts +3 -4
- package/esm/src/react/components/chat/markdown.d.ts.map +1 -1
- package/esm/src/react/components/chat/markdown.js +8 -74
- package/esm/src/react/components/chat/model-selector.d.ts +21 -27
- package/esm/src/react/components/chat/model-selector.d.ts.map +1 -1
- package/esm/src/react/components/chat/model-selector.js +26 -31
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedBackgroundImage.js +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/OptimizedImage.js +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts +1 -1
- package/esm/src/react/components/optimized-image/SimpleOptimizedImage.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts +1 -1
- package/esm/src/react/components/optimized-image/utils.d.ts.map +1 -1
- package/esm/src/react/components/optimized-image/utils.js +1 -1
- package/esm/src/react/components/ui/alert.d.ts +1 -1
- package/esm/src/react/components/ui/alert.d.ts.map +1 -1
- package/esm/src/react/components/ui/alert.js +1 -1
- package/esm/src/react/components/ui/app-shell.d.ts +1 -1
- package/esm/src/react/components/ui/app-shell.d.ts.map +1 -1
- package/esm/src/react/components/ui/app-shell.js +1 -1
- package/esm/src/react/components/ui/avatar.d.ts +1 -1
- package/esm/src/react/components/ui/avatar.d.ts.map +1 -1
- package/esm/src/react/components/ui/avatar.js +1 -1
- package/esm/src/react/components/ui/badge.d.ts +1 -1
- package/esm/src/react/components/ui/badge.d.ts.map +1 -1
- package/esm/src/react/components/ui/badge.js +1 -1
- package/esm/src/react/components/ui/button.d.ts +1 -1
- package/esm/src/react/components/ui/button.d.ts.map +1 -1
- package/esm/src/react/components/ui/button.js +1 -1
- package/esm/src/react/components/ui/card.d.ts +1 -1
- package/esm/src/react/components/ui/card.d.ts.map +1 -1
- package/esm/src/react/components/ui/card.js +1 -1
- package/esm/src/react/components/ui/checkbox.d.ts +1 -1
- package/esm/src/react/components/ui/checkbox.d.ts.map +1 -1
- package/esm/src/react/components/ui/checkbox.js +1 -1
- package/esm/src/react/components/ui/code-block.d.ts +1 -1
- package/esm/src/react/components/ui/code-block.d.ts.map +1 -1
- package/esm/src/react/components/ui/code-block.js +1 -1
- package/esm/src/react/components/ui/collapsible.d.ts +1 -1
- package/esm/src/react/components/ui/collapsible.d.ts.map +1 -1
- package/esm/src/react/components/ui/collapsible.js +1 -1
- package/esm/src/react/components/ui/color-mode.d.ts +2 -2
- package/esm/src/react/components/ui/color-mode.d.ts.map +1 -1
- package/esm/src/react/components/ui/color-mode.js +1 -1
- package/esm/src/react/components/ui/command.d.ts +1 -1
- package/esm/src/react/components/ui/command.d.ts.map +1 -1
- package/esm/src/react/components/ui/command.js +1 -1
- package/esm/src/react/components/ui/dialog.d.ts +1 -1
- package/esm/src/react/components/ui/dialog.d.ts.map +1 -1
- package/esm/src/react/components/ui/dialog.js +1 -1
- package/esm/src/react/components/ui/drawer.d.ts +1 -1
- package/esm/src/react/components/ui/drawer.d.ts.map +1 -1
- package/esm/src/react/components/ui/drawer.js +1 -1
- package/esm/src/react/components/ui/dropdown-menu.d.ts +1 -1
- package/esm/src/react/components/ui/dropdown-menu.d.ts.map +1 -1
- package/esm/src/react/components/ui/dropdown-menu.js +1 -1
- package/esm/src/react/components/ui/file-type.d.ts +1 -1
- package/esm/src/react/components/ui/file-type.d.ts.map +1 -1
- package/esm/src/react/components/ui/file-type.js +1 -1
- package/esm/src/react/components/ui/floating.d.ts +1 -1
- package/esm/src/react/components/ui/floating.d.ts.map +1 -1
- package/esm/src/react/components/ui/floating.js +2 -2
- package/esm/src/react/components/ui/icon-button.d.ts +1 -1
- package/esm/src/react/components/ui/icon-button.d.ts.map +1 -1
- package/esm/src/react/components/ui/icon-button.js +1 -1
- package/esm/src/react/components/ui/icons/index.d.ts +1 -1
- package/esm/src/react/components/ui/icons/index.d.ts.map +1 -1
- package/esm/src/react/components/ui/icons/index.js +1 -1
- package/esm/src/react/components/ui/input.d.ts +1 -1
- package/esm/src/react/components/ui/input.d.ts.map +1 -1
- package/esm/src/react/components/ui/input.js +1 -1
- package/esm/src/react/components/ui/label.d.ts +1 -1
- package/esm/src/react/components/ui/label.d.ts.map +1 -1
- package/esm/src/react/components/ui/label.js +1 -1
- package/esm/src/react/components/ui/list.d.ts +1 -1
- package/esm/src/react/components/ui/list.d.ts.map +1 -1
- package/esm/src/react/components/ui/list.js +1 -1
- package/esm/src/react/components/ui/pill.d.ts +1 -1
- package/esm/src/react/components/ui/pill.d.ts.map +1 -1
- package/esm/src/react/components/ui/pill.js +1 -1
- package/esm/src/react/components/ui/popover.d.ts +1 -1
- package/esm/src/react/components/ui/popover.d.ts.map +1 -1
- package/esm/src/react/components/ui/popover.js +1 -1
- package/esm/src/react/components/ui/progress-bar.d.ts +1 -1
- package/esm/src/react/components/ui/progress-bar.d.ts.map +1 -1
- package/esm/src/react/components/ui/progress-bar.js +1 -1
- package/esm/src/react/components/ui/radio.d.ts +1 -1
- package/esm/src/react/components/ui/radio.d.ts.map +1 -1
- package/esm/src/react/components/ui/radio.js +1 -1
- package/esm/src/react/components/ui/scroll-fade.d.ts +1 -1
- package/esm/src/react/components/ui/scroll-fade.d.ts.map +1 -1
- package/esm/src/react/components/ui/scroll-fade.js +1 -1
- package/esm/src/react/components/ui/select.d.ts +1 -1
- package/esm/src/react/components/ui/select.d.ts.map +1 -1
- package/esm/src/react/components/ui/select.js +1 -1
- package/esm/src/react/components/ui/shimmer.d.ts +1 -1
- package/esm/src/react/components/ui/shimmer.d.ts.map +1 -1
- package/esm/src/react/components/ui/shimmer.js +1 -1
- package/esm/src/react/components/ui/skeleton.d.ts +1 -1
- package/esm/src/react/components/ui/skeleton.d.ts.map +1 -1
- package/esm/src/react/components/ui/skeleton.js +1 -1
- package/esm/src/react/components/ui/slot.d.ts +1 -1
- package/esm/src/react/components/ui/slot.d.ts.map +1 -1
- package/esm/src/react/components/ui/slot.js +1 -1
- package/esm/src/react/components/ui/status.d.ts +1 -1
- package/esm/src/react/components/ui/status.d.ts.map +1 -1
- package/esm/src/react/components/ui/status.js +1 -1
- package/esm/src/react/components/ui/switch.d.ts +1 -1
- package/esm/src/react/components/ui/switch.d.ts.map +1 -1
- package/esm/src/react/components/ui/switch.js +1 -1
- package/esm/src/react/components/ui/tabs.d.ts +3 -3
- package/esm/src/react/components/ui/tabs.d.ts.map +1 -1
- package/esm/src/react/components/ui/tabs.js +1 -1
- package/esm/src/react/components/ui/tag.d.ts +1 -1
- package/esm/src/react/components/ui/tag.d.ts.map +1 -1
- package/esm/src/react/components/ui/tag.js +1 -1
- package/esm/src/react/components/ui/textarea.d.ts +1 -1
- package/esm/src/react/components/ui/textarea.d.ts.map +1 -1
- package/esm/src/react/components/ui/textarea.js +1 -1
- package/esm/src/react/components/ui/tokens.d.ts +1 -1
- package/esm/src/react/components/ui/tokens.d.ts.map +1 -1
- package/esm/src/react/components/ui/tokens.js +1 -1
- package/esm/src/react/components/ui/tooltip.d.ts +1 -1
- package/esm/src/react/components/ui/tooltip.d.ts.map +1 -1
- package/esm/src/react/components/ui/tooltip.js +2 -2
- package/esm/src/react/fonts/index.d.ts +1 -1
- package/esm/src/react/fonts/index.d.ts.map +1 -1
- package/esm/src/react/fonts/index.js +1 -1
- package/esm/src/react/primitives/agent-primitives.d.ts +4 -4
- package/esm/src/react/primitives/agent-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/agent-primitives.js +1 -1
- package/esm/src/react/primitives/chat-container.d.ts +2 -2
- package/esm/src/react/primitives/chat-container.d.ts.map +1 -1
- package/esm/src/react/primitives/chat-container.js +1 -1
- package/esm/src/react/primitives/input-box.d.ts +4 -4
- package/esm/src/react/primitives/input-box.d.ts.map +1 -1
- package/esm/src/react/primitives/input-box.js +1 -1
- package/esm/src/react/primitives/message-list.d.ts +5 -5
- package/esm/src/react/primitives/message-list.d.ts.map +1 -1
- package/esm/src/react/primitives/message-list.js +1 -1
- package/esm/src/react/primitives/tool-primitives.d.ts +4 -4
- package/esm/src/react/primitives/tool-primitives.d.ts.map +1 -1
- package/esm/src/react/primitives/tool-primitives.js +1 -1
- package/esm/src/react/runtime/core.d.ts +1 -1
- package/esm/src/react/runtime/core.d.ts.map +1 -1
- package/esm/src/react/runtime/core.js +1 -1
- package/esm/src/rendering/app-reserved.d.ts +2 -2
- package/esm/src/rendering/app-reserved.d.ts.map +1 -1
- package/esm/src/rendering/app-reserved.js +3 -2
- package/esm/src/rendering/component-handling.d.ts +1 -1
- package/esm/src/rendering/component-handling.d.ts.map +1 -1
- package/esm/src/rendering/component-handling.js +1 -1
- package/esm/src/rendering/context/render-context.d.ts +2 -0
- package/esm/src/rendering/context/render-context.d.ts.map +1 -1
- package/esm/src/rendering/context/render-context.js +2 -0
- package/esm/src/rendering/element-validator/element-normalizer.d.ts +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/element-normalizer.js +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.d.ts.map +1 -1
- package/esm/src/rendering/element-validator/primitive-checks.js +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts +1 -1
- package/esm/src/rendering/element-validator/validator-core.d.ts.map +1 -1
- package/esm/src/rendering/factories/service-factories.js +1 -1
- package/esm/src/rendering/layouts/layout-applicator.d.ts +8 -2
- package/esm/src/rendering/layouts/layout-applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-applicator.js +39 -11
- package/esm/src/rendering/layouts/layout-collector.d.ts +1 -0
- package/esm/src/rendering/layouts/layout-collector.d.ts.map +1 -1
- package/esm/src/rendering/layouts/layout-collector.js +7 -1
- package/esm/src/rendering/layouts/utils/applicator.d.ts +3 -3
- package/esm/src/rendering/layouts/utils/applicator.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/applicator.js +7 -7
- package/esm/src/rendering/layouts/utils/component-loader.d.ts +7 -7
- package/esm/src/rendering/layouts/utils/component-loader.d.ts.map +1 -1
- package/esm/src/rendering/layouts/utils/component-loader.js +21 -14
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts +1 -1
- package/esm/src/rendering/layouts/utils/ensure-valid-child.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html-types.d.ts +2 -0
- package/esm/src/rendering/orchestrator/html-types.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/html.js +16 -5
- package/esm/src/rendering/orchestrator/layout.d.ts +6 -2
- package/esm/src/rendering/orchestrator/layout.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/layout.js +16 -4
- package/esm/src/rendering/orchestrator/lifecycle.js +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/index.js +2 -2
- package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts +1 -1
- package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/module-cache-lookup.js +9 -2
- package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/module-loader/module-transform-cache.js +9 -2
- package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts +1 -1
- package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline-helpers.js +3 -2
- package/esm/src/rendering/orchestrator/pipeline.d.ts +21 -0
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/pipeline.js +88 -22
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts +1 -1
- package/esm/src/rendering/orchestrator/ssr-orchestrator.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/ssr.d.ts +1 -0
- package/esm/src/rendering/orchestrator/ssr.d.ts.map +1 -1
- package/esm/src/rendering/orchestrator/ssr.js +8 -0
- package/esm/src/rendering/orchestrator/types.d.ts +13 -0
- package/esm/src/rendering/orchestrator/types.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.d.ts +3 -1
- package/esm/src/rendering/page-renderer.d.ts.map +1 -1
- package/esm/src/rendering/page-renderer.js +13 -1
- package/esm/src/rendering/page-rendering.d.ts +3 -1
- package/esm/src/rendering/page-rendering.d.ts.map +1 -1
- package/esm/src/rendering/page-rendering.js +2 -2
- package/esm/src/rendering/page-resolution/page-resolver.d.ts.map +1 -1
- package/esm/src/rendering/page-resolution/page-resolver.js +4 -3
- package/esm/src/rendering/renderer.d.ts.map +1 -1
- package/esm/src/rendering/renderer.js +6 -0
- package/esm/src/rendering/rsc/client-boot.ts +5 -1
- package/esm/src/rendering/rsc/client-boundary-payload.d.ts +10 -0
- package/esm/src/rendering/rsc/client-boundary-payload.d.ts.map +1 -0
- package/esm/src/rendering/rsc/client-boundary-payload.js +71 -0
- package/esm/src/rendering/rsc/client-module-strategy.d.ts +5 -1
- package/esm/src/rendering/rsc/client-module-strategy.d.ts.map +1 -1
- package/esm/src/rendering/rsc/client-module-strategy.js +9 -3
- package/esm/src/rendering/rsc/component-analyzer.d.ts.map +1 -1
- package/esm/src/rendering/rsc/component-analyzer.js +18 -7
- package/esm/src/rendering/rsc/hydrate-client.ts +133 -26
- package/esm/src/rendering/rsc/page-island.d.ts +32 -0
- package/esm/src/rendering/rsc/page-island.d.ts.map +1 -0
- package/esm/src/rendering/rsc/page-island.js +191 -0
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts +1 -1
- package/esm/src/rendering/rsc/server-renderer/component-detector.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/html-generator.d.ts +2 -2
- package/esm/src/rendering/rsc/server-renderer/html-generator.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/html-generator.js +34 -6
- package/esm/src/rendering/rsc/server-renderer/prop-serializer.d.ts +1 -0
- package/esm/src/rendering/rsc/server-renderer/prop-serializer.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/prop-serializer.js +17 -0
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts +4 -2
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/rsc-renderer.js +41 -6
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts +4 -4
- package/esm/src/rendering/rsc/server-renderer/tree-processor.d.ts.map +1 -1
- package/esm/src/rendering/rsc/server-renderer/tree-processor.js +65 -14
- package/esm/src/rendering/rsc/types.d.ts +1 -1
- package/esm/src/rendering/rsc/types.d.ts.map +1 -1
- package/esm/src/rendering/snippet-renderer.js +2 -2
- package/esm/src/rendering/ssr/component-registry.d.ts +1 -1
- package/esm/src/rendering/ssr/component-registry.d.ts.map +1 -1
- package/esm/src/rendering/ssr/component-registry.js +1 -1
- package/esm/src/rendering/ssr/mdx-renderer.d.ts +1 -1
- package/esm/src/rendering/ssr/mdx-renderer.d.ts.map +1 -1
- package/esm/src/rendering/ssr/mdx-renderer.js +1 -1
- package/esm/src/rendering/ssr/types.d.ts +1 -1
- package/esm/src/rendering/ssr/types.d.ts.map +1 -1
- package/esm/src/rendering/ssr-renderer.d.ts +7 -6
- package/esm/src/rendering/ssr-renderer.d.ts.map +1 -1
- package/esm/src/rendering/ssr-renderer.js +37 -30
- package/esm/src/rendering/utils/react-helpers.d.ts +1 -1
- package/esm/src/rendering/utils/react-helpers.d.ts.map +1 -1
- package/esm/src/rendering/utils/react-helpers.js +1 -1
- package/esm/src/routing/api/api-route-matcher.d.ts.map +1 -1
- package/esm/src/routing/api/api-route-matcher.js +6 -33
- package/esm/src/routing/api/module-loader/esbuild-plugin.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/esbuild-plugin.js +5 -1
- package/esm/src/routing/client/navigation-handlers.d.ts.map +1 -1
- package/esm/src/routing/client/navigation-handlers.js +2 -1
- package/esm/src/routing/client/page-loader.d.ts.map +1 -1
- package/esm/src/routing/client/page-loader.js +8 -3
- package/esm/src/routing/matchers/route-parser.d.ts.map +1 -1
- package/esm/src/routing/matchers/route-parser.js +27 -13
- package/esm/src/security/client/html-sanitizer.d.ts +1 -0
- package/esm/src/security/client/html-sanitizer.d.ts.map +1 -1
- package/esm/src/security/client/html-sanitizer.js +5 -2
- package/esm/src/security/http/base-handler.d.ts +2 -0
- package/esm/src/security/http/base-handler.d.ts.map +1 -1
- package/esm/src/security/http/base-handler.js +1 -0
- package/esm/src/security/http/config.d.ts.map +1 -1
- package/esm/src/security/http/config.js +12 -13
- package/esm/src/server/build-app-route-renderer.d.ts +2 -0
- package/esm/src/server/build-app-route-renderer.d.ts.map +1 -1
- package/esm/src/server/build-app-route-renderer.js +99 -39
- package/esm/src/server/build-routes.d.ts +2 -2
- package/esm/src/server/build-routes.d.ts.map +1 -1
- package/esm/src/server/build-routes.js +45 -54
- package/esm/src/server/dev-server/request-handler.d.ts.map +1 -1
- package/esm/src/server/dev-server/request-handler.js +2 -0
- package/esm/src/server/dev-server/route-discovery.d.ts.map +1 -1
- package/esm/src/server/dev-server/route-discovery.js +16 -11
- package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts +6 -1
- package/esm/src/server/handlers/dev/files/esbuild-plugins.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/files/esbuild-plugins.js +138 -16
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +845 -599
- package/esm/src/server/handlers/request/agent-stream.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/agent-stream.handler.js +4 -1
- package/esm/src/server/handlers/request/api/app-router-resolver.js +1 -1
- package/esm/src/server/handlers/request/project-run-execute.handler.d.ts.map +1 -1
- package/esm/src/server/handlers/request/project-run-execute.handler.js +17 -2
- package/esm/src/server/handlers/request/rsc/index.d.ts.map +1 -1
- package/esm/src/server/handlers/request/rsc/index.js +9 -0
- package/esm/src/server/handlers/request/ssr/error-page-fallback.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/error-page-fallback.js +23 -15
- package/esm/src/server/handlers/request/ssr/not-found-fallback.d.ts.map +1 -1
- package/esm/src/server/handlers/request/ssr/not-found-fallback.js +10 -5
- package/esm/src/server/runtime-handler/local-project-discovery.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/local-project-discovery.js +13 -2
- package/esm/src/server/services/rsc/endpoints/action-handler.d.ts +11 -1
- package/esm/src/server/services/rsc/endpoints/action-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/action-handler.js +83 -16
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts +9 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/endpoint-router.js +244 -73
- package/esm/src/server/services/rsc/endpoints/handler-registry.d.ts +4 -1
- package/esm/src/server/services/rsc/endpoints/handler-registry.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/handler-registry.js +33 -3
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +1 -1
- package/esm/src/server/services/rsc/endpoints/script-handlers.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/script-handlers.js +5 -11
- package/esm/src/server/services/rsc/endpoints/types.d.ts +9 -0
- package/esm/src/server/services/rsc/endpoints/types.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/component-resolver.d.ts +1 -1
- package/esm/src/server/services/rsc/orchestrators/component-resolver.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/component-resolver.js +9 -25
- package/esm/src/server/services/rsc/orchestrators/handler.d.ts +25 -3
- package/esm/src/server/services/rsc/orchestrators/handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/handler.js +74 -9
- package/esm/src/server/services/rsc/orchestrators/manifest-handler.d.ts +16 -0
- package/esm/src/server/services/rsc/orchestrators/manifest-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/manifest-handler.js +124 -14
- package/esm/src/server/services/rsc/orchestrators/page-handler.d.ts +5 -0
- package/esm/src/server/services/rsc/orchestrators/page-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/page-handler.js +16 -2
- package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts +14 -2
- package/esm/src/server/services/rsc/orchestrators/render-handler.d.ts.map +1 -1
- package/esm/src/server/services/rsc/orchestrators/render-handler.js +42 -7
- package/esm/src/server/services/rsc/orchestrators/types.d.ts +19 -0
- package/esm/src/server/services/rsc/orchestrators/types.d.ts.map +1 -1
- package/esm/src/server/shared/browser-module-availability.d.ts +38 -0
- package/esm/src/server/shared/browser-module-availability.d.ts.map +1 -0
- package/esm/src/server/shared/browser-module-availability.js +140 -0
- package/esm/src/server/shared/browser-module-boundary.d.ts +18 -0
- package/esm/src/server/shared/browser-module-boundary.d.ts.map +1 -0
- package/esm/src/server/shared/browser-module-boundary.js +43 -0
- package/esm/src/server/shared/browser-module-bundler.d.ts +19 -0
- package/esm/src/server/shared/browser-module-bundler.d.ts.map +1 -1
- package/esm/src/server/shared/browser-module-bundler.js +123 -8
- package/esm/src/server/utils/domain-lookup.d.ts.map +1 -1
- package/esm/src/testing/bdd.d.ts.map +1 -1
- package/esm/src/testing/bdd.js +43 -10
- package/esm/src/transforms/esm/bundle-deps-validator.js +3 -3
- package/esm/src/transforms/esm/bundle-recovery.d.ts +3 -3
- package/esm/src/transforms/esm/bundle-recovery.d.ts.map +1 -1
- package/esm/src/transforms/esm/bundle-recovery.js +68 -29
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +40 -0
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +143 -0
- package/esm/src/transforms/esm/http-cache-invariants.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-invariants.js +4 -3
- package/esm/src/transforms/esm/http-cache-wrapper.d.ts +4 -1
- package/esm/src/transforms/esm/http-cache-wrapper.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-wrapper.js +111 -3
- package/esm/src/transforms/esm/http-cache.d.ts +4 -4
- package/esm/src/transforms/esm/http-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache.js +24 -19
- package/esm/src/transforms/esm/in-flight-manager.d.ts +3 -3
- package/esm/src/transforms/esm/in-flight-manager.d.ts.map +1 -1
- package/esm/src/transforms/esm/in-flight-manager.js +2 -2
- package/esm/src/transforms/esm/package-registry.d.ts +4 -3
- package/esm/src/transforms/esm/package-registry.d.ts.map +1 -1
- package/esm/src/transforms/esm/package-registry.js +12 -6
- package/esm/src/transforms/esm/specifier-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/specifier-resolver.js +7 -2
- package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/components/resolver.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.js +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-writer.d.ts.map +1 -1
- package/esm/src/transforms/mdx/esm-module-loader/module-writer.js +9 -5
- package/esm/src/transforms/mdx/index.d.ts +2 -2
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +3 -2
- package/esm/src/transforms/mdx/mdx-cache-adapter.js +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts +1 -1
- package/esm/src/transforms/mdx/module-loader/types.d.ts.map +1 -1
- package/esm/src/transforms/mdx/types.d.ts +2 -2
- package/esm/src/transforms/mdx/types.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts +22 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/constants.js +36 -13
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.d.ts +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/index.js +6 -4
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.d.ts +2 -3
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.js +14 -12
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-vf-modules/transform.js +73 -63
- package/esm/src/types/app.d.ts +1 -1
- package/esm/src/types/app.d.ts.map +1 -1
- package/esm/src/types/entities/getEntityInfo.d.ts +1 -1
- package/esm/src/types/entities/getEntityInfo.d.ts.map +1 -1
- package/esm/src/types/entities/getEntityInfo.js +25 -16
- package/esm/src/types/entities.js +1 -1
- package/esm/src/types/global-guards.d.ts +1 -1
- package/esm/src/types/global-guards.d.ts.map +1 -1
- package/esm/src/types/index.d.ts +2 -2
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/types/rsc.d.ts +16 -0
- package/esm/src/types/rsc.d.ts.map +1 -1
- package/esm/src/utils/id.d.ts +7 -0
- package/esm/src/utils/id.d.ts.map +1 -1
- package/esm/src/utils/id.js +22 -0
- package/esm/src/utils/platform.d.ts.map +1 -1
- package/esm/src/utils/platform.js +2 -11
- package/esm/src/utils/route-path-utils.d.ts +6 -2
- package/esm/src/utils/route-path-utils.d.ts.map +1 -1
- package/esm/src/utils/route-path-utils.js +18 -9
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/esm/src/workflow/claude-code/react/use-claude-code-stream.js +1 -1
- package/esm/src/workflow/claude-code/react/use-claude-code-websocket.js +1 -1
- package/esm/src/workflow/executor/dag/composite-node-execution.d.ts +11 -0
- package/esm/src/workflow/executor/dag/composite-node-execution.d.ts.map +1 -0
- package/esm/src/workflow/executor/dag/composite-node-execution.js +147 -0
- package/esm/src/workflow/executor/dag/graph.js +1 -1
- package/esm/src/workflow/executor/dag/index.d.ts +1 -1
- package/esm/src/workflow/executor/dag/index.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/index.js +78 -34
- package/esm/src/workflow/executor/dag/loop-node-strategy.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/loop-node-strategy.js +10 -2
- package/esm/src/workflow/executor/dag/map-node-strategy.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/map-node-strategy.js +3 -0
- package/esm/src/workflow/executor/dag/node-strategy-types.d.ts +1 -0
- package/esm/src/workflow/executor/dag/node-strategy-types.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/types.d.ts +2 -0
- package/esm/src/workflow/executor/dag/types.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/utils.d.ts +1 -1
- package/esm/src/workflow/executor/dag/utils.d.ts.map +1 -1
- package/esm/src/workflow/executor/dag/utils.js +13 -3
- package/esm/src/workflow/executor/step-executor.d.ts +5 -1
- package/esm/src/workflow/executor/step-executor.d.ts.map +1 -1
- package/esm/src/workflow/executor/step-executor.js +71 -16
- package/esm/src/workflow/executor/workflow-executor.d.ts +7 -4
- package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
- package/esm/src/workflow/executor/workflow-executor.js +181 -100
- package/esm/src/workflow/react/use-approval.js +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +1 -1
- package/esm/src/workflow/react/use-workflow-start.js +1 -1
- package/esm/src/workflow/react/use-workflow.js +1 -1
- package/package.json +4 -5
- package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -3
- package/esm/deps/esm.sh/react-dom@19.2.4/client.d.ts.map +0 -1
- package/esm/deps/esm.sh/react-dom@19.2.4/client.js +0 -3
- package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -3
- package/esm/deps/esm.sh/react-dom@19.2.4/server.d.ts.map +0 -1
- package/esm/deps/esm.sh/react-dom@19.2.4/server.js +0 -3
- package/esm/deps/esm.sh/react-dom@19.2.4.d.ts +0 -3
- package/esm/deps/esm.sh/react-dom@19.2.4.d.ts.map +0 -1
- package/esm/deps/esm.sh/react-dom@19.2.4.js +0 -3
- package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -3
- package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts.map +0 -1
- package/esm/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
- package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -3
- package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts.map +0 -1
- package/esm/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
- package/esm/deps/esm.sh/react@19.2.4.d.ts +0 -3
- package/esm/deps/esm.sh/react@19.2.4.d.ts.map +0 -1
- package/esm/deps/esm.sh/react@19.2.4.js +0 -3
- package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -3
- package/esm/deps/esm.sh/scheduler@^0.27.0.d.ts.map +0 -1
- package/esm/deps/esm.sh/scheduler@^0.27.0.js +0 -3
- package/esm/react/jsx-dev-runtime.d.ts +0 -2
- package/esm/react/jsx-dev-runtime.d.ts.map +0 -1
- package/esm/react/jsx-dev-runtime.js +0 -1
- package/esm/react/jsx-runtime.d.ts +0 -2
- package/esm/react/jsx-runtime.d.ts.map +0 -1
- package/esm/react/jsx-runtime.js +0 -1
- package/esm/react/react-dom-client.d.ts +0 -3
- package/esm/react/react-dom-client.d.ts.map +0 -1
- package/esm/react/react-dom-client.js +0 -2
- package/esm/react/react-dom-server.d.ts +0 -3
- package/esm/react/react-dom-server.d.ts.map +0 -1
- package/esm/react/react-dom-server.js +0 -2
- package/esm/react/react-dom.d.ts +0 -3
- package/esm/react/react-dom.d.ts.map +0 -1
- package/esm/react/react-dom.js +0 -2
- package/esm/react/react.d.ts +0 -6
- package/esm/react/react.d.ts.map +0 -1
- package/esm/react/react.js +0 -7
|
@@ -39,11 +39,15 @@ interface RouterBasePath {
|
|
|
39
39
|
type: "app" | "pages" | null;
|
|
40
40
|
relativePath: string | null;
|
|
41
41
|
}
|
|
42
|
+
export interface RouterDirectories {
|
|
43
|
+
app?: string;
|
|
44
|
+
pages?: string;
|
|
45
|
+
}
|
|
42
46
|
/**
|
|
43
47
|
* Extract the router base path from a page entity ID.
|
|
44
48
|
* Detects whether it's an App Router (/app/) or Pages Router (/pages/) path.
|
|
45
49
|
*/
|
|
46
|
-
export declare function extractRouterBasePath(pageEntityId: string): RouterBasePath;
|
|
50
|
+
export declare function extractRouterBasePath(pageEntityId: string, directories?: RouterDirectories): RouterBasePath;
|
|
47
51
|
/**
|
|
48
52
|
* Result of route parameter extraction
|
|
49
53
|
*/
|
|
@@ -59,7 +63,7 @@ interface ExtractedRouteParams {
|
|
|
59
63
|
* @param slug - The URL slug to match against
|
|
60
64
|
* @returns Extracted parameters and whether matching succeeded
|
|
61
65
|
*/
|
|
62
|
-
export declare function extractRouteParams(pageEntityId: string, slug: string): ExtractedRouteParams;
|
|
66
|
+
export declare function extractRouteParams(pageEntityId: string, slug: string, directories?: RouterDirectories): ExtractedRouteParams;
|
|
63
67
|
/**
|
|
64
68
|
* Extract relative path from an absolute path by removing the project directory prefix.
|
|
65
69
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-path-utils.d.ts","sourceRoot":"","sources":["../../../src/src/utils/route-path-utils.ts"],"names":[],"mappings":"AAAA;;;;;4BAK4B;AAE5B,qCAAqC;AACrC,eAAO,MAAM,eAAe,wDAAyD,CAAC;AAEtF,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,yCAA0C,CAAC;AAa5E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYtD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;GAEG;AACH,UAAU,cAAc;IACtB,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"route-path-utils.d.ts","sourceRoot":"","sources":["../../../src/src/utils/route-path-utils.ts"],"names":[],"mappings":"AAAA;;;;;4BAK4B;AAE5B,qCAAqC;AACrC,eAAO,MAAM,eAAe,wDAAyD,CAAC;AAEtF,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,yCAA0C,CAAC;AAa5E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYtD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;GAEG;AACH,UAAU,cAAc;IACtB,IAAI,EAAE,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAYD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,MAAM,EACpB,WAAW,GAAE,iBAAsB,GAClC,cAAc,CAYhB;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,WAAW,GAAE,iBAAsB,GAClC,oBAAoB,CA4BtB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAMpF;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,GACX,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CA+B1C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAErE"}
|
|
@@ -58,18 +58,27 @@ export function removeFileExtension(path) {
|
|
|
58
58
|
export function extractParamName(segment) {
|
|
59
59
|
return segment.replace(/\[\[\.\.\.|\[\.\.\.|\[|\]\]|\]/g, "");
|
|
60
60
|
}
|
|
61
|
+
function extractPathBelowRoot(pageEntityId, root) {
|
|
62
|
+
const normalizedPath = `/${pageEntityId.replaceAll("\\", "/").replace(/^\/+/, "")}`;
|
|
63
|
+
const normalizedRoot = root.replaceAll("\\", "/").replace(/^\/+|\/+$/g, "");
|
|
64
|
+
if (!normalizedRoot)
|
|
65
|
+
return null;
|
|
66
|
+
const marker = `/${normalizedRoot}/`;
|
|
67
|
+
const rootIndex = normalizedPath.lastIndexOf(marker);
|
|
68
|
+
return rootIndex === -1 ? null : normalizedPath.substring(rootIndex + marker.length);
|
|
69
|
+
}
|
|
61
70
|
/**
|
|
62
71
|
* Extract the router base path from a page entity ID.
|
|
63
72
|
* Detects whether it's an App Router (/app/) or Pages Router (/pages/) path.
|
|
64
73
|
*/
|
|
65
|
-
export function extractRouterBasePath(pageEntityId) {
|
|
66
|
-
const
|
|
67
|
-
if (
|
|
68
|
-
return { type: "app", relativePath:
|
|
74
|
+
export function extractRouterBasePath(pageEntityId, directories = {}) {
|
|
75
|
+
const appRelativePath = extractPathBelowRoot(pageEntityId, directories.app ?? "app");
|
|
76
|
+
if (appRelativePath !== null) {
|
|
77
|
+
return { type: "app", relativePath: appRelativePath };
|
|
69
78
|
}
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
72
|
-
return { type: "pages", relativePath:
|
|
79
|
+
const pagesRelativePath = extractPathBelowRoot(pageEntityId, directories.pages ?? "pages");
|
|
80
|
+
if (pagesRelativePath !== null) {
|
|
81
|
+
return { type: "pages", relativePath: pagesRelativePath };
|
|
73
82
|
}
|
|
74
83
|
return { type: null, relativePath: null };
|
|
75
84
|
}
|
|
@@ -81,9 +90,9 @@ export function extractRouterBasePath(pageEntityId) {
|
|
|
81
90
|
* @param slug - The URL slug to match against
|
|
82
91
|
* @returns Extracted parameters and whether matching succeeded
|
|
83
92
|
*/
|
|
84
|
-
export function extractRouteParams(pageEntityId, slug) {
|
|
93
|
+
export function extractRouteParams(pageEntityId, slug, directories = {}) {
|
|
85
94
|
const params = {};
|
|
86
|
-
const { relativePath } = extractRouterBasePath(pageEntityId);
|
|
95
|
+
const { relativePath } = extractRouterBasePath(pageEntityId, directories);
|
|
87
96
|
if (!relativePath)
|
|
88
97
|
return { params, matched: false };
|
|
89
98
|
const pathSegments = relativePath
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides real-time streaming of Claude Code agent execution.
|
|
5
5
|
*/
|
|
6
6
|
import * as dntShim from "../../../../_dnt.shims.js";
|
|
7
|
-
import { useCallback, useEffect, useRef, useState } from "
|
|
7
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
8
8
|
import { createClaudeCodeEventState, reduceClaudeCodeEventState, } from "./event-state-reducer.js";
|
|
9
9
|
import { REQUEST_ERROR } from "../../../errors/index.js";
|
|
10
10
|
/** Default delay before reconnecting after disconnect */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides real-time bidirectional communication with Claude Code agents.
|
|
5
5
|
*/
|
|
6
6
|
import * as dntShim from "../../../../_dnt.shims.js";
|
|
7
|
-
import { useCallback, useEffect, useRef, useState } from "
|
|
7
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
8
8
|
import { createClaudeCodeEventState, isClaudeCodeCoreEvent, reduceClaudeCodeEventState, } from "./event-state-reducer.js";
|
|
9
9
|
import { NETWORK_ERROR, REQUEST_ERROR } from "../../../errors/index.js";
|
|
10
10
|
/** Default delay before reconnecting after disconnect */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WorkflowNode } from "../../types.js";
|
|
2
|
+
import type { NodeExecutionResult } from "./types.js";
|
|
3
|
+
interface CompositeNodeExecutionInput {
|
|
4
|
+
node: WorkflowNode;
|
|
5
|
+
parentSignal?: AbortSignal;
|
|
6
|
+
cancellationGracePeriod?: number;
|
|
7
|
+
execute: (abortSignal: AbortSignal) => Promise<NodeExecutionResult>;
|
|
8
|
+
}
|
|
9
|
+
export declare function executeCompositeNodeWithPolicy(input: CompositeNodeExecutionInput): Promise<NodeExecutionResult>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=composite-node-execution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-node-execution.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/composite-node-execution.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAStD,UAAU,2BAA2B;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,OAAO,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACrE;AAID,wBAAsB,8BAA8B,CAClD,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAyD9B"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as dntShim from "../../../../_dnt.shims.js";
|
|
2
|
+
import { TIMEOUT_ERROR } from "../../../errors/index.js";
|
|
3
|
+
import { isVeryfrontError } from "../../../errors/http-error.js";
|
|
4
|
+
import { ensureError } from "../../../errors/veryfront-error.js";
|
|
5
|
+
import { parseDuration, validateRetryConfig } from "../../types.js";
|
|
6
|
+
import { sleep } from "./utils.js";
|
|
7
|
+
const DEFAULT_RETRY_INITIAL_DELAY_MS = 1_000;
|
|
8
|
+
const DEFAULT_RETRY_MAX_DELAY_MS = 30_000;
|
|
9
|
+
const DEFAULT_CANCELLATION_GRACE_PERIOD_MS = 1_000;
|
|
10
|
+
const RETRYABLE_STATUSES = new Set([408, 425, 429, 500, 502, 503, 504]);
|
|
11
|
+
const RETRYABLE_CODE_RE = /\b(ECONNRESET|ECONNREFUSED|ETIMEDOUT|EPIPE|EAI_AGAIN|ENOTFOUND)\b/;
|
|
12
|
+
const nonCooperativeErrors = new WeakSet();
|
|
13
|
+
export async function executeCompositeNodeWithPolicy(input) {
|
|
14
|
+
const { node, parentSignal, execute } = input;
|
|
15
|
+
const retry = node.config.retry;
|
|
16
|
+
if (retry)
|
|
17
|
+
validateRetryConfig(retry);
|
|
18
|
+
const maxAttempts = retry?.maxAttempts ?? 1;
|
|
19
|
+
const timeout = node.config.timeout === undefined
|
|
20
|
+
? undefined
|
|
21
|
+
: parseDuration(node.config.timeout);
|
|
22
|
+
const startedAt = new Date();
|
|
23
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
24
|
+
parentSignal?.throwIfAborted();
|
|
25
|
+
try {
|
|
26
|
+
const result = await executeAttempt(execute, node.id, timeout, parentSignal, input.cancellationGracePeriod);
|
|
27
|
+
const attemptedResult = withAttempt(result, attempt);
|
|
28
|
+
if (attemptedResult.state.status !== "failed")
|
|
29
|
+
return attemptedResult;
|
|
30
|
+
const error = new Error(attemptedResult.state.error ?? `Composite node "${node.id}" failed`);
|
|
31
|
+
if (attempt === maxAttempts || !isRetryableError(error, retry))
|
|
32
|
+
return attemptedResult;
|
|
33
|
+
await sleep(calculateRetryDelay(attempt, retry), parentSignal);
|
|
34
|
+
}
|
|
35
|
+
catch (caught) {
|
|
36
|
+
parentSignal?.throwIfAborted();
|
|
37
|
+
const error = ensureError(caught);
|
|
38
|
+
if (attempt < maxAttempts && isRetryableError(error, retry)) {
|
|
39
|
+
await sleep(calculateRetryDelay(attempt, retry), parentSignal);
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
state: {
|
|
44
|
+
nodeId: node.id,
|
|
45
|
+
status: "failed",
|
|
46
|
+
error: error.message,
|
|
47
|
+
attempt,
|
|
48
|
+
startedAt,
|
|
49
|
+
completedAt: new Date(),
|
|
50
|
+
},
|
|
51
|
+
contextUpdates: {},
|
|
52
|
+
waiting: false,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
throw new Error(`Composite node "${node.id}" exhausted its retry attempts`);
|
|
57
|
+
}
|
|
58
|
+
async function executeAttempt(execute, nodeId, timeout, parentSignal, cancellationGracePeriod) {
|
|
59
|
+
const attemptController = new AbortController();
|
|
60
|
+
const forwardAbort = () => attemptController.abort(parentSignal?.reason);
|
|
61
|
+
if (parentSignal?.aborted)
|
|
62
|
+
forwardAbort();
|
|
63
|
+
else
|
|
64
|
+
parentSignal?.addEventListener("abort", forwardAbort, { once: true });
|
|
65
|
+
const operation = Promise.resolve().then(() => execute(attemptController.signal));
|
|
66
|
+
const fencedOperation = operation.then((result) => {
|
|
67
|
+
attemptController.signal.throwIfAborted();
|
|
68
|
+
return result;
|
|
69
|
+
});
|
|
70
|
+
let rejectAbort;
|
|
71
|
+
const abortPromise = new Promise((_, reject) => {
|
|
72
|
+
rejectAbort = () => reject(attemptController.signal.reason);
|
|
73
|
+
if (attemptController.signal.aborted)
|
|
74
|
+
rejectAbort();
|
|
75
|
+
else
|
|
76
|
+
attemptController.signal.addEventListener("abort", rejectAbort, { once: true });
|
|
77
|
+
});
|
|
78
|
+
let timeoutId;
|
|
79
|
+
if (timeout !== undefined) {
|
|
80
|
+
const timeoutError = TIMEOUT_ERROR.create({
|
|
81
|
+
detail: `Composite node "${nodeId}" timed out after ${timeout}ms`,
|
|
82
|
+
});
|
|
83
|
+
timeoutId = dntShim.setTimeout(() => attemptController.abort(timeoutError), timeout);
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
return await Promise.race([fencedOperation, abortPromise]);
|
|
87
|
+
}
|
|
88
|
+
catch (caught) {
|
|
89
|
+
const error = ensureError(caught);
|
|
90
|
+
if (attemptController.signal.aborted) {
|
|
91
|
+
const settled = await waitForCancellationGrace(fencedOperation, cancellationGracePeriod);
|
|
92
|
+
if (!settled)
|
|
93
|
+
nonCooperativeErrors.add(error);
|
|
94
|
+
}
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
finally {
|
|
98
|
+
if (timeoutId !== undefined)
|
|
99
|
+
clearTimeout(timeoutId);
|
|
100
|
+
if (rejectAbort)
|
|
101
|
+
attemptController.signal.removeEventListener("abort", rejectAbort);
|
|
102
|
+
parentSignal?.removeEventListener("abort", forwardAbort);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async function waitForCancellationGrace(operation, configuredGracePeriod) {
|
|
106
|
+
const gracePeriod = Math.max(0, configuredGracePeriod ?? DEFAULT_CANCELLATION_GRACE_PERIOD_MS);
|
|
107
|
+
let graceTimeoutId;
|
|
108
|
+
const settled = operation.then(() => true, () => true);
|
|
109
|
+
const graceExpired = new Promise((resolve) => {
|
|
110
|
+
graceTimeoutId = dntShim.setTimeout(() => resolve(false), gracePeriod);
|
|
111
|
+
});
|
|
112
|
+
try {
|
|
113
|
+
return await Promise.race([settled, graceExpired]);
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
if (graceTimeoutId !== undefined)
|
|
117
|
+
clearTimeout(graceTimeoutId);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function withAttempt(result, attempt) {
|
|
121
|
+
return {
|
|
122
|
+
...result,
|
|
123
|
+
state: { ...result.state, attempt },
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function isRetryableError(error, config) {
|
|
127
|
+
if (nonCooperativeErrors.has(error))
|
|
128
|
+
return false;
|
|
129
|
+
if (config?.retryIf)
|
|
130
|
+
return config.retryIf(error);
|
|
131
|
+
if (isVeryfrontError(error))
|
|
132
|
+
return RETRYABLE_STATUSES.has(error.status);
|
|
133
|
+
const code = error.code;
|
|
134
|
+
const subject = typeof code === "string" ? code : error.message;
|
|
135
|
+
return RETRYABLE_CODE_RE.test(subject);
|
|
136
|
+
}
|
|
137
|
+
function calculateRetryDelay(attempt, config) {
|
|
138
|
+
const initialDelay = config?.initialDelay ?? DEFAULT_RETRY_INITIAL_DELAY_MS;
|
|
139
|
+
const maxDelay = config?.maxDelay ?? DEFAULT_RETRY_MAX_DELAY_MS;
|
|
140
|
+
let baseDelay = initialDelay;
|
|
141
|
+
if (config?.backoff === "exponential")
|
|
142
|
+
baseDelay = initialDelay * Math.pow(2, attempt - 1);
|
|
143
|
+
else if (config?.backoff === "linear")
|
|
144
|
+
baseDelay = initialDelay * attempt;
|
|
145
|
+
const jitter = baseDelay * 0.1 * (Math.random() * 2 - 1);
|
|
146
|
+
return Math.floor(Math.min(baseDelay + jitter, maxDelay));
|
|
147
|
+
}
|
|
@@ -51,7 +51,7 @@ export function getReadyNodes(inDegree, nodeStates) {
|
|
|
51
51
|
const ready = [];
|
|
52
52
|
for (const [nodeId, degree] of inDegree) {
|
|
53
53
|
const state = nodeStates[nodeId];
|
|
54
|
-
if (degree === 0 && (!state || state.status === "pending")) {
|
|
54
|
+
if (degree === 0 && (!state || state.status === "pending" || state.status === "failed")) {
|
|
55
55
|
ready.push(nodeId);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -11,7 +11,7 @@ import type { DAGExecutionResult, DAGExecutorConfig } from "./types.js";
|
|
|
11
11
|
export declare class DAGExecutor {
|
|
12
12
|
private config;
|
|
13
13
|
constructor(config: DAGExecutorConfig);
|
|
14
|
-
execute(nodes: WorkflowNode[], run: WorkflowRun, startFromNode?: string): Promise<DAGExecutionResult>;
|
|
14
|
+
execute(nodes: WorkflowNode[], run: WorkflowRun, startFromNode?: string, abortSignal?: AbortSignal): Promise<DAGExecutionResult>;
|
|
15
15
|
private executeNode;
|
|
16
16
|
private executeStepNode;
|
|
17
17
|
private executeParallelNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAQV,YAAY,EAEZ,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE7F,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAQV,YAAY,EAEZ,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAIxB,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE7F,OAAO,KAAK,EACV,kBAAkB,EAClB,iBAAiB,EAGlB,MAAM,YAAY,CAAC;AAQpB,qBAAa,WAAW;IACtB,OAAO,CAAC,MAAM,CAA4B;gBAE9B,MAAM,EAAE,iBAAiB;IAQ/B,OAAO,CACX,KAAK,EAAE,YAAY,EAAE,EACrB,GAAG,EAAE,WAAW,EAChB,aAAa,CAAC,EAAE,MAAM,EACtB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,kBAAkB,CAAC;YAyIhB,WAAW;YAqGX,eAAe;YA4Bf,mBAAmB;YAoDnB,iBAAiB;YAwEjB,eAAe;YA8Bf,sBAAsB;YA0EtB,UAAU;YAqBV,iBAAiB;CAoBhC"}
|
|
@@ -11,6 +11,7 @@ import { deriveNodeStatus, shouldCheckpoint } from "./utils.js";
|
|
|
11
11
|
import { buildGraph, getReadyNodes, hasCycle, updateInDegreesForCompletedNodes } from "./graph.js";
|
|
12
12
|
import { executeLoopNodeStrategy } from "./loop-node-strategy.js";
|
|
13
13
|
import { executeMapNodeStrategy } from "./map-node-strategy.js";
|
|
14
|
+
import { executeCompositeNodeWithPolicy } from "./composite-node-execution.js";
|
|
14
15
|
export class DAGExecutor {
|
|
15
16
|
config;
|
|
16
17
|
constructor(config) {
|
|
@@ -20,7 +21,8 @@ export class DAGExecutor {
|
|
|
20
21
|
...config,
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
async execute(nodes, run, startFromNode) {
|
|
24
|
+
async execute(nodes, run, startFromNode, abortSignal) {
|
|
25
|
+
abortSignal?.throwIfAborted();
|
|
24
26
|
const context = { ...run.context };
|
|
25
27
|
const nodeStates = { ...run.nodeStates };
|
|
26
28
|
const { adjList, inDegree, nodeMap } = buildGraph(nodes);
|
|
@@ -36,9 +38,11 @@ export class DAGExecutor {
|
|
|
36
38
|
}
|
|
37
39
|
let ready = startFromNode ? [startFromNode] : getReadyNodes(inDegree, nodeStates);
|
|
38
40
|
while (ready.length > 0) {
|
|
41
|
+
abortSignal?.throwIfAborted();
|
|
39
42
|
const batch = ready.slice(0, this.config.maxConcurrency);
|
|
40
43
|
ready = ready.slice(this.config.maxConcurrency);
|
|
41
|
-
const results = await Promise.allSettled(batch.map((nodeId) => this.executeNode(nodeMap.get(nodeId), context, nodeStates)));
|
|
44
|
+
const results = await Promise.allSettled(batch.map((nodeId) => this.executeNode(nodeMap.get(nodeId), context, nodeStates, abortSignal)));
|
|
45
|
+
abortSignal?.throwIfAborted();
|
|
42
46
|
// Record the state of EVERY node in the batch before deciding the batch's
|
|
43
47
|
// outcome. The whole batch already ran (Promise.allSettled), so returning
|
|
44
48
|
// on the first failure would drop the persisted state of later nodes that
|
|
@@ -131,7 +135,8 @@ export class DAGExecutor {
|
|
|
131
135
|
nodeStates,
|
|
132
136
|
};
|
|
133
137
|
}
|
|
134
|
-
async executeNode(node, context, nodeStates) {
|
|
138
|
+
async executeNode(node, context, nodeStates, abortSignal) {
|
|
139
|
+
abortSignal?.throwIfAborted();
|
|
135
140
|
const nodeId = node.id;
|
|
136
141
|
const existingState = nodeStates[nodeId];
|
|
137
142
|
if (existingState?.status === "completed") {
|
|
@@ -139,6 +144,7 @@ export class DAGExecutor {
|
|
|
139
144
|
}
|
|
140
145
|
this.config.onNodeStart?.(nodeId);
|
|
141
146
|
if (node.config.skip && (await node.config.skip(context))) {
|
|
147
|
+
abortSignal?.throwIfAborted();
|
|
142
148
|
const state = this.config.stepExecutor.createSkippedState(nodeId);
|
|
143
149
|
this.config.onNodeComplete?.(nodeId, state);
|
|
144
150
|
return { state, contextUpdates: {}, waiting: false };
|
|
@@ -146,36 +152,63 @@ export class DAGExecutor {
|
|
|
146
152
|
const config = node.config;
|
|
147
153
|
switch (config.type) {
|
|
148
154
|
case "step":
|
|
149
|
-
return this.executeStepNode(node, context);
|
|
155
|
+
return this.executeStepNode(node, context, abortSignal);
|
|
150
156
|
case "parallel":
|
|
151
|
-
return
|
|
157
|
+
return executeCompositeNodeWithPolicy({
|
|
158
|
+
node,
|
|
159
|
+
parentSignal: abortSignal,
|
|
160
|
+
cancellationGracePeriod: this.config.cancellationGracePeriod,
|
|
161
|
+
execute: (attemptSignal) => this.executeParallelNode(node, config, context, nodeStates, attemptSignal),
|
|
162
|
+
});
|
|
152
163
|
case "map":
|
|
153
|
-
return
|
|
164
|
+
return executeCompositeNodeWithPolicy({
|
|
154
165
|
node,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
parentSignal: abortSignal,
|
|
167
|
+
cancellationGracePeriod: this.config.cancellationGracePeriod,
|
|
168
|
+
execute: (attemptSignal) => executeMapNodeStrategy({
|
|
169
|
+
node,
|
|
170
|
+
config,
|
|
171
|
+
context,
|
|
172
|
+
nodeStates,
|
|
173
|
+
runtime: {
|
|
174
|
+
executeChildGraph: (nodes, run, options) => this.executeChildGraph(nodes, run, options, attemptSignal),
|
|
175
|
+
onNodeComplete: this.config.onNodeComplete,
|
|
176
|
+
abortSignal: attemptSignal,
|
|
177
|
+
},
|
|
178
|
+
}),
|
|
162
179
|
});
|
|
163
180
|
case "branch":
|
|
164
|
-
return
|
|
181
|
+
return executeCompositeNodeWithPolicy({
|
|
182
|
+
node,
|
|
183
|
+
parentSignal: abortSignal,
|
|
184
|
+
cancellationGracePeriod: this.config.cancellationGracePeriod,
|
|
185
|
+
execute: (attemptSignal) => this.executeBranchNode(node, config, context, nodeStates, attemptSignal),
|
|
186
|
+
});
|
|
165
187
|
case "wait":
|
|
166
188
|
return this.executeWaitNode(node, config, context);
|
|
167
189
|
case "subWorkflow":
|
|
168
|
-
return
|
|
190
|
+
return executeCompositeNodeWithPolicy({
|
|
191
|
+
node,
|
|
192
|
+
parentSignal: abortSignal,
|
|
193
|
+
cancellationGracePeriod: this.config.cancellationGracePeriod,
|
|
194
|
+
execute: (attemptSignal) => this.executeSubWorkflowNode(node, config, context, attemptSignal),
|
|
195
|
+
});
|
|
169
196
|
case "loop":
|
|
170
|
-
return
|
|
197
|
+
return executeCompositeNodeWithPolicy({
|
|
171
198
|
node,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
199
|
+
parentSignal: abortSignal,
|
|
200
|
+
cancellationGracePeriod: this.config.cancellationGracePeriod,
|
|
201
|
+
execute: (attemptSignal) => executeLoopNodeStrategy({
|
|
202
|
+
node,
|
|
203
|
+
config,
|
|
204
|
+
context,
|
|
205
|
+
nodeStates,
|
|
206
|
+
runtime: {
|
|
207
|
+
executeChildGraph: (nodes, run) => this.executeChildGraph(nodes, run, undefined, attemptSignal),
|
|
208
|
+
onNodeComplete: this.config.onNodeComplete,
|
|
209
|
+
abortSignal: attemptSignal,
|
|
210
|
+
},
|
|
211
|
+
}),
|
|
179
212
|
});
|
|
180
213
|
default:
|
|
181
214
|
throw INVALID_ARGUMENT.create({
|
|
@@ -184,8 +217,9 @@ export class DAGExecutor {
|
|
|
184
217
|
});
|
|
185
218
|
}
|
|
186
219
|
}
|
|
187
|
-
async executeStepNode(node, context) {
|
|
188
|
-
const result = await this.config.stepExecutor.execute(node, context);
|
|
220
|
+
async executeStepNode(node, context, abortSignal) {
|
|
221
|
+
const result = await this.config.stepExecutor.execute(node, context, abortSignal);
|
|
222
|
+
abortSignal?.throwIfAborted();
|
|
189
223
|
const state = {
|
|
190
224
|
nodeId: node.id,
|
|
191
225
|
status: result.success ? "completed" : "failed",
|
|
@@ -203,7 +237,8 @@ export class DAGExecutor {
|
|
|
203
237
|
waiting: false,
|
|
204
238
|
};
|
|
205
239
|
}
|
|
206
|
-
async executeParallelNode(node, config, context, nodeStates) {
|
|
240
|
+
async executeParallelNode(node, config, context, nodeStates, abortSignal) {
|
|
241
|
+
abortSignal?.throwIfAborted();
|
|
207
242
|
const startTime = Date.now();
|
|
208
243
|
const result = await this.execute(config.nodes, {
|
|
209
244
|
id: `${node.id}_parallel`,
|
|
@@ -218,7 +253,8 @@ export class DAGExecutor {
|
|
|
218
253
|
checkpoints: [],
|
|
219
254
|
pendingApprovals: [],
|
|
220
255
|
createdAt: new Date(),
|
|
221
|
-
});
|
|
256
|
+
}, undefined, abortSignal);
|
|
257
|
+
abortSignal?.throwIfAborted();
|
|
222
258
|
Object.assign(nodeStates, result.nodeStates);
|
|
223
259
|
const state = {
|
|
224
260
|
nodeId: node.id,
|
|
@@ -236,9 +272,11 @@ export class DAGExecutor {
|
|
|
236
272
|
waiting: result.waiting,
|
|
237
273
|
};
|
|
238
274
|
}
|
|
239
|
-
async executeBranchNode(node, config, context, nodeStates) {
|
|
275
|
+
async executeBranchNode(node, config, context, nodeStates, abortSignal) {
|
|
276
|
+
abortSignal?.throwIfAborted();
|
|
240
277
|
const startTime = Date.now();
|
|
241
278
|
const conditionResult = await config.condition(context);
|
|
279
|
+
abortSignal?.throwIfAborted();
|
|
242
280
|
const branchNodes = conditionResult ? config.then : (config.else ?? []);
|
|
243
281
|
if (branchNodes.length === 0) {
|
|
244
282
|
const state = {
|
|
@@ -264,7 +302,8 @@ export class DAGExecutor {
|
|
|
264
302
|
checkpoints: [],
|
|
265
303
|
pendingApprovals: [],
|
|
266
304
|
createdAt: new Date(),
|
|
267
|
-
});
|
|
305
|
+
}, undefined, abortSignal);
|
|
306
|
+
abortSignal?.throwIfAborted();
|
|
268
307
|
Object.assign(nodeStates, result.nodeStates);
|
|
269
308
|
const state = {
|
|
270
309
|
nodeId: node.id,
|
|
@@ -307,7 +346,8 @@ export class DAGExecutor {
|
|
|
307
346
|
waiting: true,
|
|
308
347
|
};
|
|
309
348
|
}
|
|
310
|
-
async executeSubWorkflowNode(node, config, context) {
|
|
349
|
+
async executeSubWorkflowNode(node, config, context, abortSignal) {
|
|
350
|
+
abortSignal?.throwIfAborted();
|
|
311
351
|
const startTime = Date.now();
|
|
312
352
|
if (typeof config.workflow === "string") {
|
|
313
353
|
throw NOT_SUPPORTED.create({
|
|
@@ -318,9 +358,11 @@ export class DAGExecutor {
|
|
|
318
358
|
const input = typeof config.input === "function"
|
|
319
359
|
? await config.input(context)
|
|
320
360
|
: (config.input ?? context.input);
|
|
361
|
+
abortSignal?.throwIfAborted();
|
|
321
362
|
const steps = typeof workflowDef.steps === "function"
|
|
322
363
|
? workflowDef.steps({ input, context })
|
|
323
364
|
: workflowDef.steps;
|
|
365
|
+
abortSignal?.throwIfAborted();
|
|
324
366
|
const subRunId = `${node.id}_sub_${generateId()}`;
|
|
325
367
|
const result = await this.execute(steps, {
|
|
326
368
|
id: subRunId,
|
|
@@ -333,10 +375,12 @@ export class DAGExecutor {
|
|
|
333
375
|
checkpoints: [],
|
|
334
376
|
pendingApprovals: [],
|
|
335
377
|
createdAt: new Date(),
|
|
336
|
-
});
|
|
378
|
+
}, undefined, abortSignal);
|
|
379
|
+
abortSignal?.throwIfAborted();
|
|
337
380
|
let finalOutput = result.context;
|
|
338
381
|
if (result.completed && config.output) {
|
|
339
382
|
finalOutput = config.output(result.context);
|
|
383
|
+
abortSignal?.throwIfAborted();
|
|
340
384
|
}
|
|
341
385
|
const state = {
|
|
342
386
|
nodeId: node.id,
|
|
@@ -367,9 +411,9 @@ export class DAGExecutor {
|
|
|
367
411
|
};
|
|
368
412
|
await this.config.checkpointManager.save(runId, checkpoint);
|
|
369
413
|
}
|
|
370
|
-
async executeChildGraph(nodes, run, options) {
|
|
414
|
+
async executeChildGraph(nodes, run, options, abortSignal) {
|
|
371
415
|
if (!options?.maxConcurrency) {
|
|
372
|
-
return await this.execute(nodes, run);
|
|
416
|
+
return await this.execute(nodes, run, undefined, abortSignal);
|
|
373
417
|
}
|
|
374
418
|
// Run the child graph on a scoped executor rather than mutating
|
|
375
419
|
// this.config.maxConcurrency. Concurrent child graphs (e.g. parallel map
|
|
@@ -379,6 +423,6 @@ export class DAGExecutor {
|
|
|
379
423
|
...this.config,
|
|
380
424
|
maxConcurrency: options.maxConcurrency,
|
|
381
425
|
});
|
|
382
|
-
return await childExecutor.execute(nodes, run);
|
|
426
|
+
return await childExecutor.execute(nodes, run, undefined, abortSignal);
|
|
383
427
|
}
|
|
384
428
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loop-node-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/loop-node-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,SAAS,EACT,eAAe,EACf,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,UAAU,4BAA4B;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAQD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"loop-node-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/loop-node-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,cAAc,EACd,SAAS,EACT,eAAe,EACf,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,UAAU,4BAA4B;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAQD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAqK9B"}
|
|
@@ -2,6 +2,7 @@ import { parseDuration } from "../../types.js";
|
|
|
2
2
|
import { sleep } from "./utils.js";
|
|
3
3
|
export async function executeLoopNodeStrategy(input) {
|
|
4
4
|
const { node, config, context, nodeStates, runtime } = input;
|
|
5
|
+
runtime.abortSignal?.throwIfAborted();
|
|
5
6
|
const startTime = Date.now();
|
|
6
7
|
const previousResults = [];
|
|
7
8
|
let iteration = 0;
|
|
@@ -23,6 +24,7 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
23
24
|
resumeIteration = existingLoopState.iteration;
|
|
24
25
|
}
|
|
25
26
|
while (iteration < config.maxIterations) {
|
|
27
|
+
runtime.abortSignal?.throwIfAborted();
|
|
26
28
|
const loopContext = {
|
|
27
29
|
iteration,
|
|
28
30
|
totalIterations: iteration,
|
|
@@ -30,7 +32,9 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
30
32
|
isFirstIteration: iteration === 0,
|
|
31
33
|
isLastAllowedIteration: iteration === config.maxIterations - 1,
|
|
32
34
|
};
|
|
33
|
-
|
|
35
|
+
const shouldContinue = await config.while(context, loopContext);
|
|
36
|
+
runtime.abortSignal?.throwIfAborted();
|
|
37
|
+
if (!shouldContinue) {
|
|
34
38
|
exitReason = "condition";
|
|
35
39
|
exitedViaCondition = true;
|
|
36
40
|
break;
|
|
@@ -38,6 +42,7 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
38
42
|
const steps = typeof config.steps === "function"
|
|
39
43
|
? config.steps(context, loopContext)
|
|
40
44
|
: config.steps;
|
|
45
|
+
runtime.abortSignal?.throwIfAborted();
|
|
41
46
|
// On resume, rehydrate the in-flight iteration's child node states so its
|
|
42
47
|
// already-completed steps are skipped instead of re-executed (H9).
|
|
43
48
|
const iterationNodeStates = resumeIteration === iteration && resumeIterationNodeStates
|
|
@@ -57,6 +62,7 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
57
62
|
pendingApprovals: [],
|
|
58
63
|
createdAt: new Date(),
|
|
59
64
|
});
|
|
65
|
+
runtime.abortSignal?.throwIfAborted();
|
|
60
66
|
if (result.waiting) {
|
|
61
67
|
Object.assign(nodeStates, result.nodeStates);
|
|
62
68
|
const state = {
|
|
@@ -91,7 +97,7 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
91
97
|
Object.assign(nodeStates, result.nodeStates);
|
|
92
98
|
if (config.delay && iteration < config.maxIterations - 1) {
|
|
93
99
|
const delayMs = typeof config.delay === "number" ? config.delay : parseDuration(config.delay);
|
|
94
|
-
await sleep(delayMs);
|
|
100
|
+
await sleep(delayMs, runtime.abortSignal);
|
|
95
101
|
}
|
|
96
102
|
iteration++;
|
|
97
103
|
}
|
|
@@ -108,9 +114,11 @@ export async function executeLoopNodeStrategy(input) {
|
|
|
108
114
|
let completionUpdates = {};
|
|
109
115
|
if (exitReason === "maxIterations" && config.onMaxIterations) {
|
|
110
116
|
completionUpdates = await config.onMaxIterations(context, finalLoopContext);
|
|
117
|
+
runtime.abortSignal?.throwIfAborted();
|
|
111
118
|
}
|
|
112
119
|
else if (exitReason === "condition" && config.onComplete) {
|
|
113
120
|
completionUpdates = await config.onComplete(context, finalLoopContext);
|
|
121
|
+
runtime.abortSignal?.throwIfAborted();
|
|
114
122
|
}
|
|
115
123
|
const output = {
|
|
116
124
|
exitReason,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-node-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/map-node-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,eAAe,EAEf,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,UAAU,2BAA2B;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAqCD,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,mBAAmB,CAAC,
|
|
1
|
+
{"version":3,"file":"map-node-strategy.d.ts","sourceRoot":"","sources":["../../../../../src/src/workflow/executor/dag/map-node-strategy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,eAAe,EAEf,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,UAAU,2BAA2B;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACtC,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAqCD,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAmE9B"}
|
|
@@ -27,8 +27,10 @@ function createMapChildNodes(node, config, items) {
|
|
|
27
27
|
}
|
|
28
28
|
export async function executeMapNodeStrategy(input) {
|
|
29
29
|
const { node, config, context, nodeStates, runtime } = input;
|
|
30
|
+
runtime.abortSignal?.throwIfAborted();
|
|
30
31
|
const startTime = Date.now();
|
|
31
32
|
const items = typeof config.items === "function" ? await config.items(context) : config.items;
|
|
33
|
+
runtime.abortSignal?.throwIfAborted();
|
|
32
34
|
if (!Array.isArray(items)) {
|
|
33
35
|
throw INVALID_ARGUMENT.create({ detail: `Map node "${node.id}" items must be an array` });
|
|
34
36
|
}
|
|
@@ -58,6 +60,7 @@ export async function executeMapNodeStrategy(input) {
|
|
|
58
60
|
pendingApprovals: [],
|
|
59
61
|
createdAt: new Date(),
|
|
60
62
|
}, config.concurrency ? { maxConcurrency: config.concurrency } : undefined);
|
|
63
|
+
runtime.abortSignal?.throwIfAborted();
|
|
61
64
|
Object.assign(nodeStates, result.nodeStates);
|
|
62
65
|
const outputs = childNodes.map((child) => result.nodeStates[child.id]?.output);
|
|
63
66
|
const state = {
|
|
@@ -7,5 +7,6 @@ export type ExecuteChildGraph = (nodes: WorkflowNode[], run: WorkflowRun, option
|
|
|
7
7
|
export interface NodeStrategyRuntime {
|
|
8
8
|
executeChildGraph: ExecuteChildGraph;
|
|
9
9
|
onNodeComplete?: (nodeId: string, state: NodeState) => void;
|
|
10
|
+
abortSignal?: AbortSignal;
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=node-strategy-types.d.ts.map
|