veryfront 0.1.545 → 0.1.547
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/templates/manifest.js +6 -6
- package/esm/deno.js +3 -3
- package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.d.ts.map +1 -1
- package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.js +28 -2
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.js +22 -2
- package/esm/src/agent/ag-ui/handler.d.ts +2 -0
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/handler.js +43 -10
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/host-support.js +51 -10
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +21 -1
- package/esm/src/agent/index.d.ts +28 -11
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +27 -11
- package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/browser-inference/worker-client.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.d.ts +1 -0
- package/esm/src/agent/react/use-chat/streaming/handler.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.js +121 -6
- package/esm/src/agent/react/use-chat/streaming/index.d.ts +1 -1
- package/esm/src/agent/react/use-chat/streaming/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/index.js +1 -1
- package/esm/src/agent/react/use-chat/types.d.ts +2 -0
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts +4 -2
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +8 -4
- package/esm/src/agent/runtime/index.js +2 -2
- package/esm/src/agent/service/before-stream.d.ts +31 -0
- package/esm/src/agent/service/before-stream.d.ts.map +1 -0
- package/esm/src/agent/service/before-stream.js +64 -0
- package/esm/src/chat/ag-ui.d.ts +2 -2
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +105 -29
- package/esm/src/integrations/index.d.ts +8 -1
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/index.js +8 -1
- package/esm/src/jobs/index.d.ts +0 -1
- package/esm/src/jobs/index.d.ts.map +1 -1
- package/esm/src/jobs/index.js +0 -1
- package/esm/src/mcp/index.d.ts +2 -6
- package/esm/src/mcp/index.d.ts.map +1 -1
- package/esm/src/mcp/index.js +2 -6
- package/esm/src/platform/compat/opaque-dependency-versions.d.ts +5 -0
- package/esm/src/platform/compat/opaque-dependency-versions.d.ts.map +1 -0
- package/esm/src/platform/compat/opaque-dependency-versions.js +4 -0
- package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
- package/esm/src/platform/compat/opaque-deps.js +3 -2
- package/esm/src/prompt/index.d.ts +5 -0
- package/esm/src/prompt/index.d.ts.map +1 -1
- package/esm/src/prompt/index.js +5 -0
- package/esm/src/resource/index.d.ts +10 -7
- package/esm/src/resource/index.d.ts.map +1 -1
- package/esm/src/resource/index.js +10 -7
- package/esm/src/sandbox/types.d.ts +1 -1
- package/esm/src/sandbox/types.d.ts.map +1 -1
- package/esm/src/tool/index.d.ts +44 -24
- package/esm/src/tool/index.d.ts.map +1 -1
- package/esm/src/tool/index.js +44 -24
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +54 -23
- package/esm/src/agent/service/chat-handler.d.ts +0 -69
- package/esm/src/agent/service/chat-handler.d.ts.map +0 -1
- package/esm/src/agent/service/chat-handler.js +0 -311
- package/src/_dnt.polyfills.ts +0 -558
- package/src/_dnt.shims.ts +0 -71
- package/src/cli/app/actions.ts +0 -149
- package/src/cli/app/components/inline-input.ts +0 -243
- package/src/cli/app/components/list-select.ts +0 -197
- package/src/cli/app/data/slug-words.ts +0 -303
- package/src/cli/app/handlers/remote-navigation.ts +0 -65
- package/src/cli/app/handlers/view-handlers.ts +0 -173
- package/src/cli/app/index.ts +0 -19
- package/src/cli/app/logging/console-interceptor.ts +0 -97
- package/src/cli/app/operations/project-creation.ts +0 -71
- package/src/cli/app/shell.ts +0 -666
- package/src/cli/app/startup.ts +0 -48
- package/src/cli/app/state.ts +0 -383
- package/src/cli/app/types.ts +0 -40
- package/src/cli/app/utils.ts +0 -65
- package/src/cli/app/views/auth.ts +0 -30
- package/src/cli/app/views/dashboard.ts +0 -189
- package/src/cli/app/views/help.ts +0 -65
- package/src/cli/app/views/index.ts +0 -12
- package/src/cli/app/views/new-project.ts +0 -36
- package/src/cli/app/views/startup.ts +0 -112
- package/src/cli/app/views/templates.ts +0 -35
- package/src/cli/auth/browser.ts +0 -26
- package/src/cli/auth/callback-server.ts +0 -297
- package/src/cli/auth/index.ts +0 -16
- package/src/cli/auth/login.ts +0 -303
- package/src/cli/auth/provider-store.ts +0 -82
- package/src/cli/auth/providers/anthropic.ts +0 -45
- package/src/cli/auth/providers/openai.ts +0 -44
- package/src/cli/auth/token-store.ts +0 -63
- package/src/cli/auth/utils.ts +0 -31
- package/src/cli/commands/analyze-chunks/command-help.ts +0 -18
- package/src/cli/commands/analyze-chunks/command.ts +0 -89
- package/src/cli/commands/analyze-chunks/handler.ts +0 -33
- package/src/cli/commands/build/command-help.ts +0 -51
- package/src/cli/commands/build/command.ts +0 -93
- package/src/cli/commands/build/config-display.ts +0 -48
- package/src/cli/commands/build/error-handler.ts +0 -30
- package/src/cli/commands/build/handler.ts +0 -103
- package/src/cli/commands/build/stats-display.ts +0 -40
- package/src/cli/commands/build/types.ts +0 -1
- package/src/cli/commands/clean/command-help.ts +0 -33
- package/src/cli/commands/clean/command.ts +0 -151
- package/src/cli/commands/clean/handler.ts +0 -33
- package/src/cli/commands/completions/command-help.ts +0 -15
- package/src/cli/commands/completions/command.ts +0 -163
- package/src/cli/commands/completions/handler.ts +0 -29
- package/src/cli/commands/config/command-help.ts +0 -15
- package/src/cli/commands/config/handler.ts +0 -90
- package/src/cli/commands/demo/command-help.ts +0 -27
- package/src/cli/commands/demo/demo.ts +0 -630
- package/src/cli/commands/demo/handler.ts +0 -30
- package/src/cli/commands/demo/index.ts +0 -2
- package/src/cli/commands/demo/steps.ts +0 -68
- package/src/cli/commands/deploy/command-help.ts +0 -42
- package/src/cli/commands/deploy/command.ts +0 -287
- package/src/cli/commands/deploy/handler.ts +0 -13
- package/src/cli/commands/deploy/index.ts +0 -14
- package/src/cli/commands/dev/command-help.ts +0 -34
- package/src/cli/commands/dev/command.ts +0 -337
- package/src/cli/commands/dev/handler.ts +0 -76
- package/src/cli/commands/dev/index.ts +0 -7
- package/src/cli/commands/doctor/ai-checks.ts +0 -65
- package/src/cli/commands/doctor/command-help.ts +0 -15
- package/src/cli/commands/doctor/handler.ts +0 -27
- package/src/cli/commands/doctor/index.ts +0 -89
- package/src/cli/commands/doctor/project-structure.ts +0 -56
- package/src/cli/commands/doctor/server-checks.ts +0 -142
- package/src/cli/commands/doctor/types.ts +0 -6
- package/src/cli/commands/doctor/version-checks.ts +0 -67
- package/src/cli/commands/extension/command-help.ts +0 -18
- package/src/cli/commands/extension/handler.ts +0 -41
- package/src/cli/commands/extension/init-command.ts +0 -150
- package/src/cli/commands/extension/validate-command.ts +0 -78
- package/src/cli/commands/files/command-help.ts +0 -41
- package/src/cli/commands/files/command.ts +0 -343
- package/src/cli/commands/files/handler.ts +0 -6
- package/src/cli/commands/files/index.ts +0 -19
- package/src/cli/commands/generate/command-help.ts +0 -21
- package/src/cli/commands/generate/command.ts +0 -155
- package/src/cli/commands/generate/handler.ts +0 -55
- package/src/cli/commands/generate/index.ts +0 -6
- package/src/cli/commands/generate/integration-generator-helpers.ts +0 -185
- package/src/cli/commands/generate/integration-generator.ts +0 -782
- package/src/cli/commands/init/catalog.ts +0 -224
- package/src/cli/commands/init/command-help.ts +0 -54
- package/src/cli/commands/init/config-generator.ts +0 -84
- package/src/cli/commands/init/handler.ts +0 -79
- package/src/cli/commands/init/index.ts +0 -8
- package/src/cli/commands/init/init-command.ts +0 -566
- package/src/cli/commands/init/interactive-wizard.ts +0 -170
- package/src/cli/commands/init/path-utils.ts +0 -15
- package/src/cli/commands/init/types.ts +0 -28
- package/src/cli/commands/install/command-help.ts +0 -63
- package/src/cli/commands/install/detect.ts +0 -51
- package/src/cli/commands/install/handler.ts +0 -33
- package/src/cli/commands/install/install.ts +0 -112
- package/src/cli/commands/install/registry.ts +0 -79
- package/src/cli/commands/install/types.ts +0 -58
- package/src/cli/commands/install/uninstall.ts +0 -139
- package/src/cli/commands/issues/command-help.ts +0 -50
- package/src/cli/commands/issues/command.ts +0 -364
- package/src/cli/commands/issues/handler.ts +0 -10
- package/src/cli/commands/issues/index.ts +0 -6
- package/src/cli/commands/knowledge/command-help.ts +0 -44
- package/src/cli/commands/knowledge/command-helpers.ts +0 -295
- package/src/cli/commands/knowledge/command.ts +0 -802
- package/src/cli/commands/knowledge/handler.ts +0 -6
- package/src/cli/commands/knowledge/index.ts +0 -2
- package/src/cli/commands/knowledge/parser-source.ts +0 -641
- package/src/cli/commands/knowledge/result.ts +0 -88
- package/src/cli/commands/knowledge/source-policy.ts +0 -164
- package/src/cli/commands/lint/command-help.ts +0 -15
- package/src/cli/commands/lint/command.ts +0 -59
- package/src/cli/commands/lint/handler.ts +0 -36
- package/src/cli/commands/lock/command-help.ts +0 -42
- package/src/cli/commands/lock/command.ts +0 -193
- package/src/cli/commands/lock/handler.ts +0 -35
- package/src/cli/commands/login/command-help.ts +0 -38
- package/src/cli/commands/logout/command-help.ts +0 -14
- package/src/cli/commands/mcp/command-help.ts +0 -36
- package/src/cli/commands/mcp/handler.ts +0 -37
- package/src/cli/commands/merge/command-help.ts +0 -32
- package/src/cli/commands/merge/command.ts +0 -224
- package/src/cli/commands/merge/handler.ts +0 -13
- package/src/cli/commands/open/command-help.ts +0 -19
- package/src/cli/commands/open/command.ts +0 -33
- package/src/cli/commands/open/handler.ts +0 -38
- package/src/cli/commands/pull/command-help.ts +0 -56
- package/src/cli/commands/pull/command.ts +0 -491
- package/src/cli/commands/pull/handler.ts +0 -13
- package/src/cli/commands/pull/index.ts +0 -3
- package/src/cli/commands/push/command-help.ts +0 -39
- package/src/cli/commands/push/command.ts +0 -404
- package/src/cli/commands/push/handler.ts +0 -13
- package/src/cli/commands/push/index.ts +0 -3
- package/src/cli/commands/routes/command-help.ts +0 -15
- package/src/cli/commands/routes/command.ts +0 -88
- package/src/cli/commands/routes/handler.ts +0 -31
- package/src/cli/commands/schema/command-help.ts +0 -17
- package/src/cli/commands/schema/command.ts +0 -64
- package/src/cli/commands/schema/handler.ts +0 -36
- package/src/cli/commands/serve/command-help.ts +0 -25
- package/src/cli/commands/serve/command.ts +0 -120
- package/src/cli/commands/serve/handler.ts +0 -43
- package/src/cli/commands/serve/split-mode.ts +0 -193
- package/src/cli/commands/skills/command-help.ts +0 -23
- package/src/cli/commands/skills/command.ts +0 -23
- package/src/cli/commands/skills/create.ts +0 -87
- package/src/cli/commands/skills/handler.ts +0 -106
- package/src/cli/commands/skills/validate.ts +0 -110
- package/src/cli/commands/start/command-help.ts +0 -52
- package/src/cli/commands/start/command.ts +0 -258
- package/src/cli/commands/start/handler.ts +0 -35
- package/src/cli/commands/studio/command-help.ts +0 -27
- package/src/cli/commands/studio/command.ts +0 -96
- package/src/cli/commands/studio/handler.ts +0 -28
- package/src/cli/commands/studio/index.ts +0 -6
- package/src/cli/commands/styles/command-help.ts +0 -22
- package/src/cli/commands/styles/command.ts +0 -303
- package/src/cli/commands/styles/handler.ts +0 -28
- package/src/cli/commands/task/command-help.ts +0 -23
- package/src/cli/commands/task/command.ts +0 -112
- package/src/cli/commands/task/handler.ts +0 -28
- package/src/cli/commands/test/command-help.ts +0 -18
- package/src/cli/commands/test/command.ts +0 -90
- package/src/cli/commands/test/handler.ts +0 -74
- package/src/cli/commands/up/command-help.ts +0 -25
- package/src/cli/commands/up/command.ts +0 -218
- package/src/cli/commands/up/handler.ts +0 -11
- package/src/cli/commands/up/index.ts +0 -7
- package/src/cli/commands/uploads/command-help.ts +0 -46
- package/src/cli/commands/uploads/command.ts +0 -482
- package/src/cli/commands/uploads/handler.ts +0 -6
- package/src/cli/commands/uploads/index.ts +0 -23
- package/src/cli/commands/whoami/command-help.ts +0 -14
- package/src/cli/commands/worker/command-help.ts +0 -49
- package/src/cli/commands/worker/command.ts +0 -114
- package/src/cli/commands/worker/handler.ts +0 -36
- package/src/cli/commands/workflow/command-help.ts +0 -22
- package/src/cli/commands/workflow/command.ts +0 -157
- package/src/cli/commands/workflow/handler.ts +0 -30
- package/src/cli/help/command-definitions.ts +0 -96
- package/src/cli/help/command-help.ts +0 -73
- package/src/cli/help/formatters.ts +0 -102
- package/src/cli/help/index.ts +0 -6
- package/src/cli/help/logo.ts +0 -5
- package/src/cli/help/main-help.ts +0 -98
- package/src/cli/help/tips.ts +0 -54
- package/src/cli/help/types.ts +0 -25
- package/src/cli/main.ts +0 -74
- package/src/cli/mcp/advanced-tools.ts +0 -61
- package/src/cli/mcp/dev-server-client.ts +0 -82
- package/src/cli/mcp/index.ts +0 -2
- package/src/cli/mcp/jsonrpc.ts +0 -186
- package/src/cli/mcp/remote-file-tool-helpers.ts +0 -27
- package/src/cli/mcp/remote-file-tools.ts +0 -826
- package/src/cli/mcp/server.ts +0 -531
- package/src/cli/mcp/standalone.ts +0 -646
- package/src/cli/mcp/stdio.ts +0 -57
- package/src/cli/mcp/tools/bootstrap-tool.ts +0 -71
- package/src/cli/mcp/tools/build-tool.ts +0 -119
- package/src/cli/mcp/tools/catalog-tools.ts +0 -507
- package/src/cli/mcp/tools/cicd-tools.ts +0 -17
- package/src/cli/mcp/tools/context7-tools.ts +0 -114
- package/src/cli/mcp/tools/deploy-tool.ts +0 -136
- package/src/cli/mcp/tools/dev-tools.ts +0 -475
- package/src/cli/mcp/tools/helpers.ts +0 -141
- package/src/cli/mcp/tools/introspection-tools.ts +0 -53
- package/src/cli/mcp/tools/project-tools.ts +0 -412
- package/src/cli/mcp/tools/run-lint-tool.ts +0 -109
- package/src/cli/mcp/tools/run-tests-tool.ts +0 -117
- package/src/cli/mcp/tools/scaffold-tools.ts +0 -433
- package/src/cli/mcp/tools/skill-tools.ts +0 -194
- package/src/cli/mcp/tools.ts +0 -267
- package/src/cli/router.ts +0 -299
- package/src/cli/shared/animation.ts +0 -25
- package/src/cli/shared/args.ts +0 -269
- package/src/cli/shared/config.ts +0 -258
- package/src/cli/shared/constants.ts +0 -29
- package/src/cli/shared/ensure-content-processor.ts +0 -17
- package/src/cli/shared/handler-utils.ts +0 -17
- package/src/cli/shared/interactive.ts +0 -33
- package/src/cli/shared/json-output.ts +0 -96
- package/src/cli/shared/parsed-args.ts +0 -9
- package/src/cli/shared/project-source-context.ts +0 -96
- package/src/cli/shared/reserve-slug.ts +0 -114
- package/src/cli/shared/server-startup.ts +0 -119
- package/src/cli/shared/slug.ts +0 -12
- package/src/cli/shared/suggest.ts +0 -33
- package/src/cli/shared/types.ts +0 -36
- package/src/cli/shared/update-check.ts +0 -108
- package/src/cli/skills/core-skills.ts +0 -233
- package/src/cli/skills/loader.ts +0 -98
- package/src/cli/skills/types.ts +0 -44
- package/src/cli/sync/ignore.ts +0 -143
- package/src/cli/sync/index.ts +0 -21
- package/src/cli/sync/project-discovery.ts +0 -81
- package/src/cli/templates/feature-loader.ts +0 -201
- package/src/cli/templates/index.ts +0 -77
- package/src/cli/templates/integration-loader-helpers.ts +0 -49
- package/src/cli/templates/integration-loader.ts +0 -709
- package/src/cli/templates/loader.ts +0 -64
- package/src/cli/templates/manifest.js +0 -623
- package/src/cli/templates/types.ts +0 -78
- package/src/cli/ui/animated-text.ts +0 -89
- package/src/cli/ui/ansi.ts +0 -91
- package/src/cli/ui/box.ts +0 -1
- package/src/cli/ui/colors.ts +0 -240
- package/src/cli/ui/components/banner.ts +0 -170
- package/src/cli/ui/components/index.ts +0 -4
- package/src/cli/ui/components/multi-select.ts +0 -163
- package/src/cli/ui/components/shortcuts.ts +0 -30
- package/src/cli/ui/components/table.ts +0 -187
- package/src/cli/ui/constants.ts +0 -20
- package/src/cli/ui/dot-matrix.ts +0 -344
- package/src/cli/ui/index.ts +0 -7
- package/src/cli/ui/keyboard.ts +0 -138
- package/src/cli/ui/layout.ts +0 -142
- package/src/cli/ui/progress.ts +0 -246
- package/src/cli/ui/tui.ts +0 -311
- package/src/cli/utils/env-prompt.ts +0 -190
- package/src/cli/utils/fs.ts +0 -33
- package/src/cli/utils/git.ts +0 -58
- package/src/cli/utils/index.ts +0 -230
- package/src/cli/utils/package-manager.ts +0 -204
- package/src/cli/utils/project.ts +0 -16
- package/src/cli/utils/sanitize-job-output.ts +0 -23
- package/src/cli/utils/string.ts +0 -27
- package/src/cli/utils/terminal-select.ts +0 -371
- package/src/cli/utils/write-job-result.ts +0 -23
- package/src/deno.js +0 -429
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +0 -105
- package/src/deps/esm.sh/@types/react-dom@19.2.3/server.d.ts +0 -183
- package/src/deps/esm.sh/@types/react-dom@19.2.3/static.d.ts +0 -153
- package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +0 -166
- package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +0 -4370
- package/src/deps/esm.sh/@types/react@19.2.14/jsx-dev-runtime.d.ts +0 -45
- package/src/deps/esm.sh/@types/react@19.2.14/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
- package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +0 -30
- package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +0 -22569
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -105
- package/src/deps/esm.sh/react-dom@19.2.4/client.js +0 -5
- package/src/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -183
- package/src/deps/esm.sh/react-dom@19.2.4/server.js +0 -5
- package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -45
- package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
- package/src/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
- package/src/deps/esm.sh/react@19.2.4.d.ts +0 -4370
- package/src/deps/esm.sh/react@19.2.4.js +0 -3
- package/src/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -30
- package/src/deps/esm.sh/scheduler@^0.27.0.js +0 -3
- package/src/deps/jsr.io/@std/assert/1.0.19/almost_equals.ts +0 -56
- package/src/deps/jsr.io/@std/assert/1.0.19/array_includes.ts +0 -76
- package/src/deps/jsr.io/@std/assert/1.0.19/assert.ts +0 -24
- package/src/deps/jsr.io/@std/assert/1.0.19/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.19/equal.ts +0 -226
- package/src/deps/jsr.io/@std/assert/1.0.19/equals.ts +0 -68
- package/src/deps/jsr.io/@std/assert/1.0.19/exists.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.19/fail.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.19/false.ts +0 -27
- package/src/deps/jsr.io/@std/assert/1.0.19/greater.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.19/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.19/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.19/less.ts +0 -29
- package/src/deps/jsr.io/@std/assert/1.0.19/less_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.19/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/mod.ts +0 -47
- package/src/deps/jsr.io/@std/assert/1.0.19/not_equals.ts +0 -43
- package/src/deps/jsr.io/@std/assert/1.0.19/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.19/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.19/object_match.ts +0 -224
- package/src/deps/jsr.io/@std/assert/1.0.19/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.19/strict_equals.ts +0 -68
- package/src/deps/jsr.io/@std/assert/1.0.19/string_includes.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/throws.ts +0 -111
- package/src/deps/jsr.io/@std/assert/1.0.19/unimplemented.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.19/unreachable.ts +0 -21
- package/src/deps/jsr.io/@std/dotenv/0.225.6/mod.ts +0 -251
- package/src/deps/jsr.io/@std/dotenv/0.225.6/parse.ts +0 -110
- package/src/deps/jsr.io/@std/dotenv/0.225.6/stringify.ts +0 -48
- package/src/deps/jsr.io/@std/fmt/1.0.10/colors.ts +0 -1004
- package/src/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.ts +0 -47
- package/src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts +0 -25
- package/src/deps/jsr.io/@std/fs/1.0.23/_is_same_path.ts +0 -23
- package/src/deps/jsr.io/@std/fs/1.0.23/_is_subdir.ts +0 -34
- package/src/deps/jsr.io/@std/fs/1.0.23/_to_path_string.ts +0 -17
- package/src/deps/jsr.io/@std/fs/1.0.23/copy.ts +0 -411
- package/src/deps/jsr.io/@std/fs/1.0.23/empty_dir.ts +0 -91
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts +0 -110
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_file.ts +0 -100
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_link.ts +0 -66
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.ts +0 -181
- package/src/deps/jsr.io/@std/fs/1.0.23/eol.ts +0 -75
- package/src/deps/jsr.io/@std/fs/1.0.23/exists.ts +0 -316
- package/src/deps/jsr.io/@std/fs/1.0.23/expand_glob.ts +0 -564
- package/src/deps/jsr.io/@std/fs/1.0.23/mod.ts +0 -31
- package/src/deps/jsr.io/@std/fs/1.0.23/move.ts +0 -171
- package/src/deps/jsr.io/@std/fs/1.0.23/walk.ts +0 -956
- package/src/deps/jsr.io/@std/internal/1.0.13/_os.ts +0 -15
- package/src/deps/jsr.io/@std/internal/1.0.13/assertion_state.ts +0 -248
- package/src/deps/jsr.io/@std/internal/1.0.13/build_message.ts +0 -147
- package/src/deps/jsr.io/@std/internal/1.0.13/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.13/diff_str.ts +0 -208
- package/src/deps/jsr.io/@std/internal/1.0.13/format.ts +0 -89
- package/src/deps/jsr.io/@std/internal/1.0.13/os.ts +0 -7
- package/src/deps/jsr.io/@std/internal/1.0.13/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.13/types.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/_common/assert_path.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/_common/basename.ts +0 -53
- package/src/deps/jsr.io/@std/path/1.1.4/_common/common.ts +0 -26
- package/src/deps/jsr.io/@std/path/1.1.4/_common/constants.ts +0 -49
- package/src/deps/jsr.io/@std/path/1.1.4/_common/dirname.ts +0 -9
- package/src/deps/jsr.io/@std/path/1.1.4/_common/format.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.ts +0 -12
- package/src/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.ts +0 -295
- package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize.ts +0 -9
- package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.ts +0 -74
- package/src/deps/jsr.io/@std/path/1.1.4/_common/relative.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.ts +0 -17
- package/src/deps/jsr.io/@std/path/1.1.4/basename.ts +0 -37
- package/src/deps/jsr.io/@std/path/1.1.4/common.ts +0 -35
- package/src/deps/jsr.io/@std/path/1.1.4/constants.ts +0 -18
- package/src/deps/jsr.io/@std/path/1.1.4/dirname.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/extname.ts +0 -29
- package/src/deps/jsr.io/@std/path/1.1.4/format.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts +0 -94
- package/src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/is_glob.ts +0 -49
- package/src/deps/jsr.io/@std/path/1.1.4/join.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/join_globs.ts +0 -42
- package/src/deps/jsr.io/@std/path/1.1.4/mod.ts +0 -217
- package/src/deps/jsr.io/@std/path/1.1.4/normalize.ts +0 -33
- package/src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts +0 -45
- package/src/deps/jsr.io/@std/path/1.1.4/parse.ts +0 -44
- package/src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts +0 -62
- package/src/deps/jsr.io/@std/path/1.1.4/posix/common.ts +0 -26
- package/src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts +0 -15
- package/src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts +0 -72
- package/src/deps/jsr.io/@std/path/1.1.4/posix/extname.ts +0 -96
- package/src/deps/jsr.io/@std/path/1.1.4/posix/format.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.ts +0 -94
- package/src/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/posix/is_glob.ts +0 -4
- package/src/deps/jsr.io/@std/path/1.1.4/posix/join.ts +0 -46
- package/src/deps/jsr.io/@std/path/1.1.4/posix/join_globs.ts +0 -45
- package/src/deps/jsr.io/@std/path/1.1.4/posix/mod.ts +0 -44
- package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize.ts +0 -63
- package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.ts +0 -43
- package/src/deps/jsr.io/@std/path/1.1.4/posix/parse.ts +0 -121
- package/src/deps/jsr.io/@std/path/1.1.4/posix/relative.ts +0 -103
- package/src/deps/jsr.io/@std/path/1.1.4/posix/resolve.ts +0 -71
- package/src/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.ts +0 -21
- package/src/deps/jsr.io/@std/path/1.1.4/relative.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/resolve.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/to_file_url.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/types.ts +0 -40
- package/src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts +0 -28
- package/src/deps/jsr.io/@std/path/1.1.4/windows/basename.ts +0 -54
- package/src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts +0 -15
- package/src/deps/jsr.io/@std/path/1.1.4/windows/dirname.ts +0 -118
- package/src/deps/jsr.io/@std/path/1.1.4/windows/extname.ts +0 -90
- package/src/deps/jsr.io/@std/path/1.1.4/windows/format.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.ts +0 -34
- package/src/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.ts +0 -92
- package/src/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.ts +0 -40
- package/src/deps/jsr.io/@std/path/1.1.4/windows/join.ts +0 -78
- package/src/deps/jsr.io/@std/path/1.1.4/windows/join_globs.ts +0 -46
- package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize.ts +0 -136
- package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.ts +0 -43
- package/src/deps/jsr.io/@std/path/1.1.4/windows/parse.ts +0 -184
- package/src/deps/jsr.io/@std/path/1.1.4/windows/relative.ts +0 -128
- package/src/deps/jsr.io/@std/path/1.1.4/windows/resolve.ts +0 -178
- package/src/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.ts +0 -38
- package/src/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.ts +0 -60
- package/src/deps/jsr.io/@std/testing/1.0.18/_test_suite.ts +0 -461
- package/src/deps/jsr.io/@std/testing/1.0.18/bdd.ts +0 -1294
- package/src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts +0 -55
- package/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts +0 -1845
- package/src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts +0 -183
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts +0 -127
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts +0 -37
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts +0 -112
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts +0 -174
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts +0 -17
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts +0 -13
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts +0 -27
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.ts +0 -30
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.ts +0 -22
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.ts +0 -33
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.ts +0 -13
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.ts +0 -17
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.ts +0 -12
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.ts +0 -101
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.ts +0 -23
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type.ts +0 -49
- package/src/deps/jsr.io/@std/yaml/1.1.0/_utils.ts +0 -16
- package/src/deps/jsr.io/@std/yaml/1.1.0/parse.ts +0 -125
- package/src/extensions/ext-auth-jwt/src/index.ts +0 -200
- package/src/extensions/ext-bundler-esbuild/src/binary.ts +0 -154
- package/src/extensions/ext-bundler-esbuild/src/es-module-lexer.ts +0 -34
- package/src/extensions/ext-bundler-esbuild/src/esbuild-bundler.ts +0 -122
- package/src/extensions/ext-bundler-esbuild/src/index.ts +0 -46
- package/src/extensions/ext-bundler-esbuild/src/plugin-adapter.ts +0 -66
- package/src/extensions/ext-bundler-esbuild/src/runtime.ts +0 -54
- package/src/extensions/ext-content-mdx/src/compiler/markdown-compile.ts +0 -127
- package/src/extensions/ext-content-mdx/src/compiler/mdx-compile.ts +0 -82
- package/src/extensions/ext-content-mdx/src/index.ts +0 -66
- package/src/extensions/ext-content-mdx/src/plugins/plugin-loader.ts +0 -21
- package/src/extensions/ext-content-mdx/src/plugins/rehype-node-positions.ts +0 -67
- package/src/extensions/ext-content-mdx/src/plugins/remark-headings.ts +0 -93
- package/src/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.ts +0 -246
- package/src/extensions/ext-css-tailwind/src/index.ts +0 -82
- package/src/extensions/ext-db-sqlite/src/index.ts +0 -47
- package/src/extensions/ext-document-kreuzberg/src/index.ts +0 -97
- package/src/extensions/ext-document-kreuzberg/src/kreuzberg.ts +0 -56
- package/src/extensions/ext-llm-anthropic/src/anthropic-provider.ts +0 -336
- package/src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts +0 -540
- package/src/extensions/ext-llm-anthropic/src/anthropic-stream.ts +0 -310
- package/src/extensions/ext-llm-anthropic/src/index.ts +0 -38
- package/src/extensions/ext-llm-google/src/google-provider.ts +0 -305
- package/src/extensions/ext-llm-google/src/google-request-builder.ts +0 -394
- package/src/extensions/ext-llm-google/src/google-stream.ts +0 -188
- package/src/extensions/ext-llm-google/src/index.ts +0 -35
- package/src/extensions/ext-llm-openai/src/index.ts +0 -37
- package/src/extensions/ext-llm-openai/src/openai-chat-request-builder.ts +0 -220
- package/src/extensions/ext-llm-openai/src/openai-chat-stream.ts +0 -251
- package/src/extensions/ext-llm-openai/src/openai-provider.ts +0 -577
- package/src/extensions/ext-llm-openai/src/openai-responses-request-builder.ts +0 -298
- package/src/extensions/ext-llm-openai/src/openai-responses-stream.ts +0 -226
- package/src/extensions/ext-observability-opentelemetry/src/index.ts +0 -291
- package/src/extensions/ext-parser-babel/src/index.ts +0 -111
- package/src/extensions/ext-parser-babel/src/inject-node-positions.ts +0 -184
- package/src/extensions/ext-sandbox-shell-tools/src/index.ts +0 -43
- package/src/extensions/ext-schema-zod/src/adapter.ts +0 -238
- package/src/extensions/ext-schema-zod/src/index.ts +0 -39
- package/src/extensions/ext-schema-zod/src/json-schema.ts +0 -311
- package/src/react/jsx-dev-runtime.ts +0 -1
- package/src/react/jsx-runtime.ts +0 -1
- package/src/react/react-dom-client.ts +0 -2
- package/src/react/react-dom-server.ts +0 -2
- package/src/react/react.ts +0 -274
- package/src/src/agent/ag-ui/browser-chunk-encoder.ts +0 -58
- package/src/src/agent/ag-ui/browser-encoder.ts +0 -538
- package/src/src/agent/ag-ui/browser-finalize-tracker.ts +0 -65
- package/src/src/agent/ag-ui/browser-response-stream.ts +0 -175
- package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +0 -172
- package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +0 -34
- package/src/src/agent/ag-ui/detached-start.ts +0 -425
- package/src/src/agent/ag-ui/forwarded-context.ts +0 -83
- package/src/src/agent/ag-ui/handler.ts +0 -388
- package/src/src/agent/ag-ui/host-support.ts +0 -244
- package/src/src/agent/ag-ui/request-shared.ts +0 -76
- package/src/src/agent/ag-ui/run-control.ts +0 -145
- package/src/src/agent/ag-ui/runtime-browser-response.ts +0 -41
- package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +0 -359
- package/src/src/agent/ag-ui/runtime-event-encoder.ts +0 -71
- package/src/src/agent/ag-ui/runtime-handler.ts +0 -510
- package/src/src/agent/ag-ui/runtime-support.ts +0 -64
- package/src/src/agent/ag-ui/sse-parser.ts +0 -306
- package/src/src/agent/ag-ui/tool-shared.ts +0 -80
- package/src/src/agent/ag-ui/tracked-browser-response.ts +0 -42
- package/src/src/agent/artifacts/default-research-artifact-policy.ts +0 -171
- package/src/src/agent/artifacts/default-research-artifact-support.ts +0 -374
- package/src/src/agent/artifacts/slash-command-artifact-policy.ts +0 -212
- package/src/src/agent/child-run/execution-cleanup.ts +0 -33
- package/src/src/agent/child-run/execution-snapshot.ts +0 -154
- package/src/src/agent/child-run/execution-support.ts +0 -29
- package/src/src/agent/child-run/final-step-support.ts +0 -51
- package/src/src/agent/child-run/invoke-agent-child-runs.ts +0 -198
- package/src/src/agent/child-run/result-summary.ts +0 -135
- package/src/src/agent/composition/composition.ts +0 -176
- package/src/src/agent/composition/index.ts +0 -19
- package/src/src/agent/conversation/bootstrap.ts +0 -335
- package/src/src/agent/conversation/delegation-policy.ts +0 -299
- package/src/src/agent/conversation/durable.ts +0 -1387
- package/src/src/agent/conversation/hosted-lifecycle.ts +0 -215
- package/src/src/agent/conversation/hosted-terminal.ts +0 -235
- package/src/src/agent/conversation/root-run-context.ts +0 -143
- package/src/src/agent/conversation/root-run-lifecycle.ts +0 -184
- package/src/src/agent/conversation/run-chunk-mirror.ts +0 -385
- package/src/src/agent/conversation/run-context.ts +0 -22
- package/src/src/agent/conversation/run-event-normalization.ts +0 -228
- package/src/src/agent/conversation/run-event-preparation.ts +0 -76
- package/src/src/agent/conversation/run-events.ts +0 -242
- package/src/src/agent/conversation/run-mirror.ts +0 -271
- package/src/src/agent/conversation/run-stream-mirror.ts +0 -63
- package/src/src/agent/factory.ts +0 -303
- package/src/src/agent/hosted/ag-ui-chat-request.ts +0 -199
- package/src/src/agent/hosted/agent-project-steering.ts +0 -141
- package/src/src/agent/hosted/agent-run-lifecycle.ts +0 -161
- package/src/src/agent/hosted/chat-execution-lifecycle-types.ts +0 -11
- package/src/src/agent/hosted/chat-execution-runtime.ts +0 -694
- package/src/src/agent/hosted/chat-preparation.ts +0 -357
- package/src/src/agent/hosted/chat-request-parser.ts +0 -209
- package/src/src/agent/hosted/chat-request.ts +0 -114
- package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +0 -88
- package/src/src/agent/hosted/chat-runtime-contract.ts +0 -101
- package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +0 -185
- package/src/src/agent/hosted/child-artifact-support.ts +0 -201
- package/src/src/agent/hosted/child-bootstrap.ts +0 -75
- package/src/src/agent/hosted/child-execution-logging.ts +0 -114
- package/src/src/agent/hosted/child-fork-execution-runner.ts +0 -396
- package/src/src/agent/hosted/child-fork-instructions.ts +0 -91
- package/src/src/agent/hosted/child-fork-run-context.ts +0 -309
- package/src/src/agent/hosted/child-fork-runtime-start.ts +0 -84
- package/src/src/agent/hosted/child-fork-step-message-preparation.ts +0 -96
- package/src/src/agent/hosted/child-fork-stream-execution.ts +0 -626
- package/src/src/agent/hosted/child-fork-tool-sources.ts +0 -231
- package/src/src/agent/hosted/child-invoke-tool.ts +0 -90
- package/src/src/agent/hosted/child-lifecycle.ts +0 -352
- package/src/src/agent/hosted/child-mirror.ts +0 -272
- package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +0 -191
- package/src/src/agent/hosted/child-requested-tools.ts +0 -411
- package/src/src/agent/hosted/child-status.ts +0 -167
- package/src/src/agent/hosted/child-steering-tools.ts +0 -92
- package/src/src/agent/hosted/child-stream-watchdog.ts +0 -146
- package/src/src/agent/hosted/child-tool-input.ts +0 -91
- package/src/src/agent/hosted/cloud-chat-execution-preparation.ts +0 -98
- package/src/src/agent/hosted/cloud-prepared-chat-execution-runtime.ts +0 -36
- package/src/src/agent/hosted/cloud-runtime-system-messages.ts +0 -79
- package/src/src/agent/hosted/default-chat-runtime.ts +0 -329
- package/src/src/agent/hosted/default-invoke-agent-tool.ts +0 -581
- package/src/src/agent/hosted/default-project-steering-refresh.ts +0 -227
- package/src/src/agent/hosted/durable-chat-run-start.ts +0 -246
- package/src/src/agent/hosted/durable-child-fork-execution.ts +0 -597
- package/src/src/agent/hosted/finalized-message.ts +0 -170
- package/src/src/agent/hosted/form-input-tool.ts +0 -128
- package/src/src/agent/hosted/lifecycle.ts +0 -159
- package/src/src/agent/hosted/prepared-chat-execution.ts +0 -188
- package/src/src/agent/hosted/project-remote-tool-source.ts +0 -324
- package/src/src/agent/hosted/project-steering-adapter.ts +0 -184
- package/src/src/agent/hosted/response-stream.ts +0 -87
- package/src/src/agent/hosted/runtime-request-config.ts +0 -112
- package/src/src/agent/hosted/runtime-state-resolver.ts +0 -141
- package/src/src/agent/hosted/stream-finalization.ts +0 -188
- package/src/src/agent/hosted/stream-terminal-error.ts +0 -81
- package/src/src/agent/hosted/trace-attributes.ts +0 -196
- package/src/src/agent/hosted/veryfront-api-tool-access.ts +0 -293
- package/src/src/agent/hosted/veryfront-cloud-agent-service.ts +0 -1050
- package/src/src/agent/index.ts +0 -1770
- package/src/src/agent/input/human-input.ts +0 -353
- package/src/src/agent/input/request-protocol.ts +0 -279
- package/src/src/agent/memory/index.ts +0 -21
- package/src/src/agent/memory/memory-interface.ts +0 -65
- package/src/src/agent/memory/memory.ts +0 -263
- package/src/src/agent/memory/redis.ts +0 -168
- package/src/src/agent/middleware/cache/cache.ts +0 -318
- package/src/src/agent/middleware/cache/index.ts +0 -7
- package/src/src/agent/middleware/chain.ts +0 -62
- package/src/src/agent/middleware/cost-tracking/index.ts +0 -13
- package/src/src/agent/middleware/cost-tracking/tracker.ts +0 -351
- package/src/src/agent/middleware/index.ts +0 -33
- package/src/src/agent/middleware/rate-limit/index.ts +0 -12
- package/src/src/agent/middleware/rate-limit/limiter.ts +0 -197
- package/src/src/agent/middleware/security/index.ts +0 -14
- package/src/src/agent/middleware/security/validator.ts +0 -288
- package/src/src/agent/project/agent-runtime.ts +0 -139
- package/src/src/agent/project/context.ts +0 -63
- package/src/src/agent/project/live-studio-mcp-tools.ts +0 -153
- package/src/src/agent/project/steering-mutation.ts +0 -126
- package/src/src/agent/react/index.ts +0 -39
- package/src/src/agent/react/use-agent.ts +0 -133
- package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +0 -89
- package/src/src/agent/react/use-chat/browser-inference/types.ts +0 -52
- package/src/src/agent/react/use-chat/browser-inference/worker-client.ts +0 -87
- package/src/src/agent/react/use-chat/browser-inference/worker-script.ts +0 -98
- package/src/src/agent/react/use-chat/index.ts +0 -27
- package/src/src/agent/react/use-chat/stream-protocol.ts +0 -1
- package/src/src/agent/react/use-chat/streaming/handler.ts +0 -429
- package/src/src/agent/react/use-chat/streaming/index.ts +0 -15
- package/src/src/agent/react/use-chat/streaming/parts-builder.ts +0 -91
- package/src/src/agent/react/use-chat/streaming/types.ts +0 -41
- package/src/src/agent/react/use-chat/types.ts +0 -115
- package/src/src/agent/react/use-chat/use-chat.ts +0 -576
- package/src/src/agent/react/use-chat/utils.ts +0 -13
- package/src/src/agent/react/use-completion.ts +0 -133
- package/src/src/agent/react/use-streaming.ts +0 -120
- package/src/src/agent/react/use-voice-input.ts +0 -249
- package/src/src/agent/runtime/ag-ui-contract.ts +0 -224
- package/src/src/agent/runtime/agent-definition-files.ts +0 -155
- package/src/src/agent/runtime/agent-definition.ts +0 -166
- package/src/src/agent/runtime/agent-invocation-contract.ts +0 -360
- package/src/src/agent/runtime/agent-markdown-adapter.ts +0 -31
- package/src/src/agent/runtime/builtin-skill-files.ts +0 -122
- package/src/src/agent/runtime/chat-stream-handler.ts +0 -577
- package/src/src/agent/runtime/client-profile.ts +0 -123
- package/src/src/agent/runtime/constants.ts +0 -29
- package/src/src/agent/runtime/default-provider-options.ts +0 -52
- package/src/src/agent/runtime/defaults.ts +0 -12
- package/src/src/agent/runtime/error-utils.ts +0 -32
- package/src/src/agent/runtime/index.ts +0 -1478
- package/src/src/agent/runtime/input-utils.ts +0 -48
- package/src/src/agent/runtime/load-skill-tool.ts +0 -239
- package/src/src/agent/runtime/message-adapter.ts +0 -480
- package/src/src/agent/runtime/message-file-url-refresh.ts +0 -120
- package/src/src/agent/runtime/message-preparation.ts +0 -58
- package/src/src/agent/runtime/model-resolution.ts +0 -113
- package/src/src/agent/runtime/model-tool-converter.ts +0 -97
- package/src/src/agent/runtime/project-files-client.ts +0 -256
- package/src/src/agent/runtime/project-skill-catalog.ts +0 -238
- package/src/src/agent/runtime/project-skill-loader.ts +0 -217
- package/src/src/agent/runtime/prompt-block.ts +0 -19
- package/src/src/agent/runtime/provider-native-tool-inventory.ts +0 -74
- package/src/src/agent/runtime/provider-native-tools.ts +0 -130
- package/src/src/agent/runtime/provider-tool-compat.ts +0 -304
- package/src/src/agent/runtime/repair-tool-call.ts +0 -50
- package/src/src/agent/runtime/resume-session.ts +0 -353
- package/src/src/agent/runtime/runtime-tool-builder.ts +0 -82
- package/src/src/agent/runtime/runtime-tool-errors.ts +0 -46
- package/src/src/agent/runtime/runtime-tool-types.ts +0 -121
- package/src/src/agent/runtime/skill-metadata.ts +0 -260
- package/src/src/agent/runtime/skill-prompt.ts +0 -61
- package/src/src/agent/runtime/sse-utils.ts +0 -51
- package/src/src/agent/runtime/text-generation-runtime-message-converter.ts +0 -269
- package/src/src/agent/runtime/text-generation-runtime-message-types.ts +0 -62
- package/src/src/agent/runtime/tool-helpers.ts +0 -428
- package/src/src/agent/runtime/tool-inventory.ts +0 -46
- package/src/src/agent/runtime/upload-url-client.ts +0 -95
- package/src/src/agent/schemas/agent.schema.ts +0 -181
- package/src/src/agent/schemas/index.ts +0 -38
- package/src/src/agent/schemas/tool.schema.ts +0 -11
- package/src/src/agent/service/abort-rejection-guard.ts +0 -162
- package/src/src/agent/service/auth.ts +0 -427
- package/src/src/agent/service/bootstrap.ts +0 -79
- package/src/src/agent/service/chat-handler.ts +0 -508
- package/src/src/agent/service/config.ts +0 -107
- package/src/src/agent/service/definition.ts +0 -386
- package/src/src/agent/service/detached-run-tracker.ts +0 -169
- package/src/src/agent/service/env-files.ts +0 -60
- package/src/src/agent/service/external-worker-client.ts +0 -401
- package/src/src/agent/service/mcp-server-config.ts +0 -112
- package/src/src/agent/service/node-runtime-infrastructure.ts +0 -71
- package/src/src/agent/service/node-telemetry.ts +0 -197
- package/src/src/agent/service/registration.ts +0 -395
- package/src/src/agent/service/request-auth-cache.ts +0 -36
- package/src/src/agent/service/response-like.ts +0 -28
- package/src/src/agent/service/routes.ts +0 -386
- package/src/src/agent/service/runtime.ts +0 -303
- package/src/src/agent/service/server.ts +0 -98
- package/src/src/agent/streaming/chat-ui-message-stream.ts +0 -596
- package/src/src/agent/streaming/data-stream.ts +0 -209
- package/src/src/agent/streaming/fork-runtime-stream.ts +0 -1187
- package/src/src/agent/streaming/mirrored-tool-chunk-state.ts +0 -276
- package/src/src/agent/streaming/tool-execution-data-event-bridge.ts +0 -79
- package/src/src/agent/testing/agent-tester.ts +0 -202
- package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +0 -117
- package/src/src/agent/testing/durable-run-canaries/environment.ts +0 -27
- package/src/src/agent/testing/durable-run-canaries/index.ts +0 -36
- package/src/src/agent/testing/durable-run-canaries/runner.ts +0 -585
- package/src/src/agent/testing/durable-run-canaries/validation.ts +0 -87
- package/src/src/agent/testing/index.ts +0 -128
- package/src/src/agent/testing/live-evals/api-client.ts +0 -568
- package/src/src/agent/testing/live-evals/cli-runner.ts +0 -234
- package/src/src/agent/testing/live-evals/environment.ts +0 -31
- package/src/src/agent/testing/live-evals/formatting.ts +0 -106
- package/src/src/agent/testing/live-evals/index.ts +0 -99
- package/src/src/agent/testing/live-evals/metadata.ts +0 -167
- package/src/src/agent/testing/live-evals/performance.ts +0 -52
- package/src/src/agent/testing/live-evals/preflight.ts +0 -42
- package/src/src/agent/testing/live-evals/report.ts +0 -155
- package/src/src/agent/testing/live-evals/request.ts +0 -78
- package/src/src/agent/testing/live-evals/result.ts +0 -109
- package/src/src/agent/testing/live-evals/runner.ts +0 -629
- package/src/src/agent/types.ts +0 -275
- package/src/src/build/asset-pipeline/css-optimizer/types/index.ts +0 -92
- package/src/src/build/asset-pipeline/tailwind-processor/css-utils.ts +0 -13
- package/src/src/build/binary-plugin-includes.ts +0 -17
- package/src/src/build/bundler/code-splitter/build-context.ts +0 -97
- package/src/src/build/bundler/code-splitter/entry-points.ts +0 -31
- package/src/src/build/bundler/code-splitter/esbuild-plugin.ts +0 -38
- package/src/src/build/bundler/code-splitter/index.ts +0 -80
- package/src/src/build/bundler/code-splitter/manifest-builder.ts +0 -140
- package/src/src/build/bundler/code-splitter/splitter.ts +0 -98
- package/src/src/build/bundler/code-splitter/types.ts +0 -46
- package/src/src/build/bundler/index.ts +0 -39
- package/src/src/build/compiler/index.ts +0 -17
- package/src/src/build/compiler/mdx-compiler/code-generator.ts +0 -16
- package/src/src/build/compiler/mdx-compiler/compiler.ts +0 -53
- package/src/src/build/compiler/mdx-compiler/directory-compiler.ts +0 -39
- package/src/src/build/compiler/mdx-compiler/file-writer.ts +0 -25
- package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +0 -94
- package/src/src/build/compiler/mdx-compiler/import-transformer.ts +0 -27
- package/src/src/build/compiler/mdx-compiler/index.ts +0 -10
- package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +0 -32
- package/src/src/build/compiler/mdx-compiler/transpiler.ts +0 -15
- package/src/src/build/compiler/mdx-compiler/types.ts +0 -21
- package/src/src/build/compiler/mdx-compiler/validator.ts +0 -52
- package/src/src/build/compiler/mdx-compiler/watcher.ts +0 -57
- package/src/src/build/compiler/mdx-to-js.ts +0 -143
- package/src/src/build/embedded/preset.ts +0 -326
- package/src/src/build/index.ts +0 -11
- package/src/src/build/production-build/asset-generation.ts +0 -178
- package/src/src/build/production-build/build/build-cleanup.ts +0 -31
- package/src/src/build/production-build/build/build-executor.ts +0 -50
- package/src/src/build/production-build/build/build-initializer.ts +0 -58
- package/src/src/build/production-build/build/build-orchestrator.ts +0 -140
- package/src/src/build/production-build/build/build-setup.ts +0 -47
- package/src/src/build/production-build/build/code-splitter-orchestrator.ts +0 -43
- package/src/src/build/production-build/build/index.ts +0 -58
- package/src/src/build/production-build/build/output-generator.ts +0 -142
- package/src/src/build/production-build/build/route-collector.ts +0 -46
- package/src/src/build/production-build/client-runtime.ts +0 -376
- package/src/src/build/production-build/index.ts +0 -51
- package/src/src/build/production-build/manifest.ts +0 -126
- package/src/src/build/production-build/static-generation.ts +0 -256
- package/src/src/build/production-build/templates.ts +0 -17
- package/src/src/build/renderer/types/bundler-types.ts +0 -12
- package/src/src/cache/backend.ts +0 -32
- package/src/src/cache/backends/api.ts +0 -226
- package/src/src/cache/backends/disk.ts +0 -150
- package/src/src/cache/backends/factory.ts +0 -209
- package/src/src/cache/backends/helpers.ts +0 -7
- package/src/src/cache/backends/index.ts +0 -30
- package/src/src/cache/backends/memory.ts +0 -180
- package/src/src/cache/backends/redis.ts +0 -134
- package/src/src/cache/cache-key-builder.ts +0 -125
- package/src/src/cache/config-hash.ts +0 -64
- package/src/src/cache/dependency-graph.ts +0 -208
- package/src/src/cache/distributed-cache-init.ts +0 -144
- package/src/src/cache/index.ts +0 -37
- package/src/src/cache/keys/builders/file.ts +0 -70
- package/src/src/cache/keys/builders/github.ts +0 -34
- package/src/src/cache/keys/builders/module.ts +0 -94
- package/src/src/cache/keys/builders/render.ts +0 -125
- package/src/src/cache/keys/index.ts +0 -94
- package/src/src/cache/keys/prefixes.ts +0 -127
- package/src/src/cache/keys/utils.ts +0 -236
- package/src/src/cache/keys.ts +0 -7
- package/src/src/cache/module-cache.ts +0 -242
- package/src/src/cache/paths.ts +0 -140
- package/src/src/cache/registry.ts +0 -587
- package/src/src/cache/request-cache-batcher.ts +0 -144
- package/src/src/cache/schemas/cache-backend.schema.ts +0 -22
- package/src/src/cache/schemas/cache-key.schema.ts +0 -17
- package/src/src/cache/schemas/index.ts +0 -14
- package/src/src/cache/tokenizing-gateway.ts +0 -278
- package/src/src/cache/types.ts +0 -67
- package/src/src/channels/control-plane.ts +0 -455
- package/src/src/channels/invoke.ts +0 -447
- package/src/src/chat/ag-ui-helpers.ts +0 -139
- package/src/src/chat/ag-ui.ts +0 -882
- package/src/src/chat/chat-ui-message-helpers.ts +0 -232
- package/src/src/chat/conversation.ts +0 -941
- package/src/src/chat/final-step-fallback.ts +0 -957
- package/src/src/chat/hosted-ui-chunk-mapping.ts +0 -303
- package/src/src/chat/index.ts +0 -275
- package/src/src/chat/message-prep.ts +0 -873
- package/src/src/chat/protocol.ts +0 -358
- package/src/src/chat/provider-errors.ts +0 -218
- package/src/src/chat/stream-watchdog.ts +0 -229
- package/src/src/chat/types.ts +0 -632
- package/src/src/config/defaults.ts +0 -73
- package/src/src/config/define-config.ts +0 -68
- package/src/src/config/env.ts +0 -197
- package/src/src/config/environment-config.ts +0 -274
- package/src/src/config/index.ts +0 -69
- package/src/src/config/loader.ts +0 -528
- package/src/src/config/network-defaults.ts +0 -55
- package/src/src/config/runtime-config.ts +0 -216
- package/src/src/config/schemas/config.schema.ts +0 -695
- package/src/src/config/schemas/index.ts +0 -27
- package/src/src/data/data-fetcher.ts +0 -80
- package/src/src/data/data-fetching-cache.ts +0 -57
- package/src/src/data/helpers.ts +0 -9
- package/src/src/data/index.ts +0 -17
- package/src/src/data/schemas/data.schema.ts +0 -70
- package/src/src/data/schemas/index.ts +0 -20
- package/src/src/data/server-data-fetcher.ts +0 -185
- package/src/src/data/static-data-fetcher.ts +0 -310
- package/src/src/data/static-paths-fetcher.ts +0 -35
- package/src/src/data/types.ts +0 -28
- package/src/src/discovery/discovery-engine.ts +0 -229
- package/src/src/discovery/discovery-utils.ts +0 -44
- package/src/src/discovery/file-discovery.ts +0 -109
- package/src/src/discovery/handlers/agent-handler.ts +0 -30
- package/src/src/discovery/handlers/index.ts +0 -13
- package/src/src/discovery/handlers/prompt-handler.ts +0 -21
- package/src/src/discovery/handlers/resource-handler.ts +0 -22
- package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +0 -78
- package/src/src/discovery/handlers/skill-handler.ts +0 -123
- package/src/src/discovery/handlers/task-handler.ts +0 -19
- package/src/src/discovery/handlers/tool-handler.ts +0 -32
- package/src/src/discovery/handlers/workflow-handler.ts +0 -23
- package/src/src/discovery/import-rewriter.ts +0 -209
- package/src/src/discovery/index.ts +0 -34
- package/src/src/discovery/module-import.ts +0 -36
- package/src/src/discovery/project-discovery-config.ts +0 -89
- package/src/src/discovery/provider-config-validator.ts +0 -33
- package/src/src/discovery/transpiler.ts +0 -244
- package/src/src/discovery/types.ts +0 -69
- package/src/src/embedding/chunk.ts +0 -66
- package/src/src/embedding/embedding.ts +0 -67
- package/src/src/embedding/index.ts +0 -50
- package/src/src/embedding/model-resolution.ts +0 -46
- package/src/src/embedding/rag-store.ts +0 -432
- package/src/src/embedding/react/use-uploads.ts +0 -102
- package/src/src/embedding/resolve.ts +0 -157
- package/src/src/embedding/types.ts +0 -115
- package/src/src/embedding/upload-handler.ts +0 -287
- package/src/src/embedding/upload-loader.ts +0 -85
- package/src/src/embedding/vector-store.ts +0 -283
- package/src/src/embedding/veryfront-cloud/provider.ts +0 -55
- package/src/src/embedding/veryfront-cloud/rag-store.ts +0 -600
- package/src/src/errors/catalog/build-errors.ts +0 -98
- package/src/src/errors/catalog/config-errors.ts +0 -105
- package/src/src/errors/catalog/deployment-errors.ts +0 -44
- package/src/src/errors/catalog/dev-errors.ts +0 -40
- package/src/src/errors/catalog/factory.ts +0 -24
- package/src/src/errors/catalog/general-errors.ts +0 -71
- package/src/src/errors/catalog/index.ts +0 -64
- package/src/src/errors/catalog/module-errors.ts +0 -106
- package/src/src/errors/catalog/route-errors.ts +0 -69
- package/src/src/errors/catalog/rsc-errors.ts +0 -82
- package/src/src/errors/catalog/runtime-errors.ts +0 -96
- package/src/src/errors/catalog/server-errors.ts +0 -95
- package/src/src/errors/catalog/types.ts +0 -15
- package/src/src/errors/error-context.ts +0 -172
- package/src/src/errors/error-handlers.ts +0 -85
- package/src/src/errors/error-registry-helpers.ts +0 -23
- package/src/src/errors/error-registry.ts +0 -824
- package/src/src/errors/http-error.ts +0 -157
- package/src/src/errors/index.ts +0 -197
- package/src/src/errors/logging.ts +0 -109
- package/src/src/errors/middleware/cli-error-boundary.ts +0 -248
- package/src/src/errors/middleware/http-error-boundary.ts +0 -133
- package/src/src/errors/middleware/index.ts +0 -13
- package/src/src/errors/middleware/wrap-unknown.ts +0 -117
- package/src/src/errors/tracing.ts +0 -90
- package/src/src/errors/types.ts +0 -147
- package/src/src/errors/user-friendly/error-catalog.ts +0 -126
- package/src/src/errors/user-friendly/error-formatter.ts +0 -93
- package/src/src/errors/user-friendly/error-identifier.ts +0 -41
- package/src/src/errors/user-friendly/error-wrapper.ts +0 -26
- package/src/src/errors/user-friendly/index.ts +0 -10
- package/src/src/errors/veryfront-error.ts +0 -148
- package/src/src/extensions/auth/auth-provider.ts +0 -96
- package/src/src/extensions/auth/index.ts +0 -15
- package/src/src/extensions/builtin-extensions.ts +0 -161
- package/src/src/extensions/bundler/bundler.ts +0 -289
- package/src/src/extensions/bundler/helper.ts +0 -58
- package/src/src/extensions/bundler/index.ts +0 -49
- package/src/src/extensions/bundler/module-lexer.ts +0 -46
- package/src/src/extensions/cache/cache-store.ts +0 -27
- package/src/src/extensions/cache/index.ts +0 -10
- package/src/src/extensions/cache/token-cache-store.ts +0 -58
- package/src/src/extensions/capabilities.ts +0 -93
- package/src/src/extensions/compat/index.ts +0 -15
- package/src/src/extensions/compat/native-services.ts +0 -83
- package/src/src/extensions/content/content-processor.ts +0 -98
- package/src/src/extensions/content/index.ts +0 -17
- package/src/src/extensions/contracts.ts +0 -42
- package/src/src/extensions/css/css-processor.ts +0 -61
- package/src/src/extensions/css/index.ts +0 -15
- package/src/src/extensions/database/database-client.ts +0 -35
- package/src/src/extensions/database/index.ts +0 -9
- package/src/src/extensions/discovery.ts +0 -250
- package/src/src/extensions/errors.ts +0 -39
- package/src/src/extensions/factory-loader.ts +0 -76
- package/src/src/extensions/index.ts +0 -91
- package/src/src/extensions/llm/embedding-provider.ts +0 -39
- package/src/src/extensions/llm/index.ts +0 -17
- package/src/src/extensions/llm/llm-provider-registry.ts +0 -50
- package/src/src/extensions/llm/llm-provider.ts +0 -54
- package/src/src/extensions/loader.ts +0 -282
- package/src/src/extensions/observability/index.ts +0 -17
- package/src/src/extensions/observability/node-telemetry-provider.ts +0 -45
- package/src/src/extensions/observability/tracing-exporter.ts +0 -77
- package/src/src/extensions/orchestrate.ts +0 -194
- package/src/src/extensions/parser/code-parser.ts +0 -96
- package/src/src/extensions/parser/index.ts +0 -18
- package/src/src/extensions/recommendations.ts +0 -30
- package/src/src/extensions/sandbox/index.ts +0 -18
- package/src/src/extensions/sandbox/shell-tools.ts +0 -42
- package/src/src/extensions/schema/index.ts +0 -28
- package/src/src/extensions/schema/json-schema.ts +0 -23
- package/src/src/extensions/schema/schema-validator.ts +0 -257
- package/src/src/extensions/types.ts +0 -68
- package/src/src/extensions/validation.ts +0 -188
- package/src/src/fs/index.ts +0 -51
- package/src/src/html/dev-scripts.ts +0 -92
- package/src/src/html/html-detection.ts +0 -8
- package/src/src/html/html-escape.ts +0 -20
- package/src/src/html/html-injection.ts +0 -174
- package/src/src/html/html-shell-generator.ts +0 -427
- package/src/src/html/hydration-script-builder/dev-client-renderer.ts +0 -18
- package/src/src/html/hydration-script-builder/dev-component-manifest.ts +0 -15
- package/src/src/html/hydration-script-builder/dev-error-logger.ts +0 -58
- package/src/src/html/hydration-script-builder/dev-scripts.ts +0 -47
- package/src/src/html/hydration-script-builder/hydration-data-generator.ts +0 -79
- package/src/src/html/hydration-script-builder/index.ts +0 -21
- package/src/src/html/hydration-script-builder/prod-hydration.ts +0 -41
- package/src/src/html/hydration-script-builder/prod-scripts.ts +0 -25
- package/src/src/html/hydration-script-builder/templates/index.ts +0 -10
- package/src/src/html/hydration-script-builder/templates/loader.ts +0 -107
- package/src/src/html/hydration-script-builder/templates/renderer.ts +0 -166
- package/src/src/html/hydration-script-builder/templates/router.ts +0 -679
- package/src/src/html/hydration-script-builder/templates/spa-renderer.ts +0 -103
- package/src/src/html/hydration-script-builder/types.ts +0 -29
- package/src/src/html/index.ts +0 -35
- package/src/src/html/metadata-builder.ts +0 -46
- package/src/src/html/metadata-extraction.ts +0 -54
- package/src/src/html/nonce-injection.ts +0 -330
- package/src/src/html/schemas/html.schema.ts +0 -88
- package/src/src/html/schemas/index.ts +0 -15
- package/src/src/html/styles-builder/candidate-extractor.ts +0 -71
- package/src/src/html/styles-builder/content-version.ts +0 -20
- package/src/src/html/styles-builder/css-hash-cache.ts +0 -393
- package/src/src/html/styles-builder/css-pregeneration.ts +0 -331
- package/src/src/html/styles-builder/dev-styles.ts +0 -23
- package/src/src/html/styles-builder/index.ts +0 -21
- package/src/src/html/styles-builder/plugin-loader.ts +0 -252
- package/src/src/html/styles-builder/prepared-project-css-cache.ts +0 -228
- package/src/src/html/styles-builder/project-css-cache.ts +0 -321
- package/src/src/html/styles-builder/style-scope-profile.ts +0 -164
- package/src/src/html/styles-builder/tailwind-compiler-cache.ts +0 -231
- package/src/src/html/styles-builder/tailwind-compiler-utils.ts +0 -199
- package/src/src/html/styles-builder/tailwind-compiler.ts +0 -276
- package/src/src/html/styles-builder/tailwind-plugin-allowlist.ts +0 -51
- package/src/src/html/tag-generators.ts +0 -120
- package/src/src/html/types.ts +0 -5
- package/src/src/html/utils.ts +0 -327
- package/src/src/index.ts +0 -78
- package/src/src/integrations/_data.ts +0 -82
- package/src/src/integrations/index.ts +0 -72
- package/src/src/integrations/remote-tools.ts +0 -243
- package/src/src/integrations/schema.ts +0 -204
- package/src/src/integrations/types.ts +0 -62
- package/src/src/internal-agents/ag-ui-sse.ts +0 -141
- package/src/src/internal-agents/control-plane-auth.ts +0 -92
- package/src/src/internal-agents/request-body.ts +0 -43
- package/src/src/internal-agents/run-stream.ts +0 -422
- package/src/src/internal-agents/runtime-owner.ts +0 -189
- package/src/src/internal-agents/schema.ts +0 -347
- package/src/src/internal-agents/session-manager.ts +0 -206
- package/src/src/issues/core.ts +0 -385
- package/src/src/issues/index.ts +0 -46
- package/src/src/issues/mcp.ts +0 -289
- package/src/src/issues/schemas/index.ts +0 -45
- package/src/src/issues/schemas/issue.schema.ts +0 -152
- package/src/src/jobs/index.ts +0 -101
- package/src/src/jobs/jobs-client.ts +0 -503
- package/src/src/jobs/runtime-env.ts +0 -106
- package/src/src/jobs/schemas.ts +0 -429
- package/src/src/markdown/index.ts +0 -20
- package/src/src/mcp/annotations.ts +0 -10
- package/src/src/mcp/elicitation.ts +0 -42
- package/src/src/mcp/http-transport.ts +0 -162
- package/src/src/mcp/index.ts +0 -65
- package/src/src/mcp/registry.ts +0 -41
- package/src/src/mcp/schemas/index.ts +0 -16
- package/src/src/mcp/schemas/mcp.schema.ts +0 -59
- package/src/src/mcp/server.ts +0 -790
- package/src/src/mcp/session.ts +0 -31
- package/src/src/mcp/sse.ts +0 -19
- package/src/src/mcp/task-store.ts +0 -137
- package/src/src/mcp/types.ts +0 -39
- package/src/src/mdx/index.ts +0 -23
- package/src/src/middleware/builtin/logger.ts +0 -246
- package/src/src/middleware/builtin/security/rate-limit.ts +0 -123
- package/src/src/middleware/builtin/security/redis-rate-limit.ts +0 -109
- package/src/src/middleware/builtin/security/types.ts +0 -34
- package/src/src/middleware/builtin/timeout.ts +0 -104
- package/src/src/middleware/builtin/types.ts +0 -38
- package/src/src/middleware/core/context.ts +0 -60
- package/src/src/middleware/core/index.ts +0 -16
- package/src/src/middleware/core/pipeline/composer.ts +0 -36
- package/src/src/middleware/core/pipeline/executor.ts +0 -67
- package/src/src/middleware/core/pipeline/index.ts +0 -10
- package/src/src/middleware/core/pipeline/pipeline.ts +0 -97
- package/src/src/middleware/core/pipeline/types.ts +0 -1
- package/src/src/middleware/core/types.ts +0 -27
- package/src/src/middleware/index.ts +0 -67
- package/src/src/modules/component-registry/index.ts +0 -8
- package/src/src/modules/component-registry/registry.ts +0 -246
- package/src/src/modules/import-map/default-import-map.ts +0 -62
- package/src/src/modules/import-map/index.ts +0 -14
- package/src/src/modules/import-map/loader.ts +0 -173
- package/src/src/modules/import-map/merger.ts +0 -19
- package/src/src/modules/import-map/preloader.ts +0 -47
- package/src/src/modules/import-map/resolver.ts +0 -106
- package/src/src/modules/import-map/transformer.ts +0 -49
- package/src/src/modules/import-map/types.ts +0 -8
- package/src/src/modules/index.ts +0 -43
- package/src/src/modules/loader-shared/patterns.ts +0 -40
- package/src/src/modules/manifest/route-module-manifest.ts +0 -241
- package/src/src/modules/module-resolver.ts +0 -145
- package/src/src/modules/react-loader/component-loader.ts +0 -90
- package/src/src/modules/react-loader/css-import-collector.ts +0 -50
- package/src/src/modules/react-loader/extract-component.ts +0 -33
- package/src/src/modules/react-loader/index.ts +0 -14
- package/src/src/modules/react-loader/path-resolver.ts +0 -27
- package/src/src/modules/react-loader/ssr-module-loader/cache/index.ts +0 -27
- package/src/src/modules/react-loader/ssr-module-loader/cache/memory.ts +0 -278
- package/src/src/modules/react-loader/ssr-module-loader/cache/redis.ts +0 -65
- package/src/src/modules/react-loader/ssr-module-loader/concurrency/index.ts +0 -7
- package/src/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.ts +0 -67
- package/src/src/modules/react-loader/ssr-module-loader/constants.ts +0 -64
- package/src/src/modules/react-loader/ssr-module-loader/cross-project-import-loader.ts +0 -152
- package/src/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.ts +0 -196
- package/src/src/modules/react-loader/ssr-module-loader/import-rewriter.ts +0 -170
- package/src/src/modules/react-loader/ssr-module-loader/index.ts +0 -48
- package/src/src/modules/react-loader/ssr-module-loader/loader-helpers.ts +0 -37
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +0 -685
- package/src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts +0 -45
- package/src/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.ts +0 -318
- package/src/src/modules/react-loader/ssr-module-loader/ssr-circuit-breaker.ts +0 -75
- package/src/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.ts +0 -172
- package/src/src/modules/react-loader/ssr-module-loader/tmp-paths.ts +0 -44
- package/src/src/modules/react-loader/ssr-module-loader/types.ts +0 -42
- package/src/src/modules/react-loader/ssr-module-loader/vf-module-resolver.ts +0 -117
- package/src/src/modules/react-loader/temp-directory.ts +0 -58
- package/src/src/modules/react-loader/types.ts +0 -26
- package/src/src/modules/react-loader/unified-loader.ts +0 -134
- package/src/src/modules/server/api-server.ts +0 -57
- package/src/src/modules/server/index.ts +0 -15
- package/src/src/modules/server/module-batch-handler.ts +0 -450
- package/src/src/modules/server/module-server.ts +0 -697
- package/src/src/modules/server/rate-limiter.ts +0 -26
- package/src/src/modules/server/ssr-import-rewriter.ts +0 -116
- package/src/src/modules/server/websocket-handler.ts +0 -133
- package/src/src/oauth/handlers/callback-handler.ts +0 -176
- package/src/src/oauth/handlers/index.ts +0 -18
- package/src/src/oauth/handlers/init-handler.ts +0 -237
- package/src/src/oauth/index.ts +0 -83
- package/src/src/oauth/providers/atlassian.ts +0 -67
- package/src/src/oauth/providers/base.ts +0 -410
- package/src/src/oauth/providers/common.ts +0 -361
- package/src/src/oauth/providers/google.ts +0 -71
- package/src/src/oauth/providers/index.ts +0 -66
- package/src/src/oauth/providers/microsoft.ts +0 -85
- package/src/src/oauth/schemas/index.ts +0 -22
- package/src/src/oauth/schemas/oauth.schema.ts +0 -106
- package/src/src/oauth/token-store/index.ts +0 -8
- package/src/src/oauth/token-store/memory.ts +0 -92
- package/src/src/oauth/types.ts +0 -49
- package/src/src/observability/auto-instrument/configurator.ts +0 -12
- package/src/src/observability/auto-instrument/http-instrumentation.ts +0 -208
- package/src/src/observability/auto-instrument/index.ts +0 -19
- package/src/src/observability/auto-instrument/orchestrator.ts +0 -60
- package/src/src/observability/auto-instrument/react-instrumentation.ts +0 -78
- package/src/src/observability/auto-instrument/types.ts +0 -46
- package/src/src/observability/auto-instrument/wrappers.ts +0 -107
- package/src/src/observability/error-collector.ts +0 -390
- package/src/src/observability/file-log-subscriber.ts +0 -187
- package/src/src/observability/index.ts +0 -130
- package/src/src/observability/instruments/build-instruments.ts +0 -36
- package/src/src/observability/instruments/cache-instruments.ts +0 -65
- package/src/src/observability/instruments/data-instruments.ts +0 -32
- package/src/src/observability/instruments/error-instruments.ts +0 -54
- package/src/src/observability/instruments/http-instruments.ts +0 -34
- package/src/src/observability/instruments/index.ts +0 -16
- package/src/src/observability/instruments/instruments-factory.ts +0 -71
- package/src/src/observability/instruments/memory-instruments.ts +0 -72
- package/src/src/observability/instruments/render-instruments.ts +0 -32
- package/src/src/observability/instruments/rsc-instruments.ts +0 -65
- package/src/src/observability/log-buffer.ts +0 -217
- package/src/src/observability/metrics/config.ts +0 -96
- package/src/src/observability/metrics/index.ts +0 -142
- package/src/src/observability/metrics/manager.ts +0 -134
- package/src/src/observability/metrics/recorder.ts +0 -139
- package/src/src/observability/metrics/types.ts +0 -81
- package/src/src/observability/request-profiler.ts +0 -140
- package/src/src/observability/simple-metrics/index.ts +0 -88
- package/src/src/observability/simple-metrics/metrics-recorder.ts +0 -327
- package/src/src/observability/simple-metrics/metrics-state.ts +0 -135
- package/src/src/observability/simple-metrics/observability-loader.ts +0 -53
- package/src/src/observability/simple-metrics/otel-instruments.ts +0 -93
- package/src/src/observability/simple-metrics/types.ts +0 -81
- package/src/src/observability/tracing/api-shim.ts +0 -409
- package/src/src/observability/tracing/config.ts +0 -77
- package/src/src/observability/tracing/context-propagation.ts +0 -88
- package/src/src/observability/tracing/index.ts +0 -134
- package/src/src/observability/tracing/manager.ts +0 -129
- package/src/src/observability/tracing/otlp-setup.ts +0 -251
- package/src/src/observability/tracing/service-tracer.ts +0 -267
- package/src/src/observability/tracing/span-names.ts +0 -111
- package/src/src/observability/tracing/span-operations.ts +0 -102
- package/src/src/observability/tracing/types.ts +0 -47
- package/src/src/platform/adapters/base.ts +0 -186
- package/src/src/platform/adapters/bun.ts +0 -20
- package/src/src/platform/adapters/deno.ts +0 -1
- package/src/src/platform/adapters/detect.ts +0 -84
- package/src/src/platform/adapters/fallback-wrapper.ts +0 -146
- package/src/src/platform/adapters/fs/cache/file-cache.ts +0 -420
- package/src/src/platform/adapters/fs/cache/size-estimator.ts +0 -7
- package/src/src/platform/adapters/fs/cache/types.ts +0 -20
- package/src/src/platform/adapters/fs/factory.ts +0 -70
- package/src/src/platform/adapters/fs/github/adapter.ts +0 -152
- package/src/src/platform/adapters/fs/github/directory-operations.ts +0 -61
- package/src/src/platform/adapters/fs/github/github-api-client.ts +0 -230
- package/src/src/platform/adapters/fs/github/index.ts +0 -34
- package/src/src/platform/adapters/fs/github/path-utils.ts +0 -9
- package/src/src/platform/adapters/fs/github/read-operations.ts +0 -175
- package/src/src/platform/adapters/fs/github/schemas/github-api.schema.ts +0 -89
- package/src/src/platform/adapters/fs/github/schemas/index.ts +0 -19
- package/src/src/platform/adapters/fs/github/stat-operations.ts +0 -266
- package/src/src/platform/adapters/fs/github/types.ts +0 -109
- package/src/src/platform/adapters/fs/index.ts +0 -33
- package/src/src/platform/adapters/fs/integration.ts +0 -99
- package/src/src/platform/adapters/fs/shared-types.ts +0 -11
- package/src/src/platform/adapters/fs/veryfront/adapter-content-context.ts +0 -149
- package/src/src/platform/adapters/fs/veryfront/adapter-helpers.ts +0 -43
- package/src/src/platform/adapters/fs/veryfront/adapter.ts +0 -774
- package/src/src/platform/adapters/fs/veryfront/api-search-circuit-breaker.ts +0 -30
- package/src/src/platform/adapters/fs/veryfront/base-operations.ts +0 -13
- package/src/src/platform/adapters/fs/veryfront/cache-keys.ts +0 -41
- package/src/src/platform/adapters/fs/veryfront/content-metrics.ts +0 -208
- package/src/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.ts +0 -66
- package/src/src/platform/adapters/fs/veryfront/directory-operations.ts +0 -162
- package/src/src/platform/adapters/fs/veryfront/extension-priority.ts +0 -18
- package/src/src/platform/adapters/fs/veryfront/file-list-access.ts +0 -109
- package/src/src/platform/adapters/fs/veryfront/file-list-index.ts +0 -259
- package/src/src/platform/adapters/fs/veryfront/in-flight-dedupe.ts +0 -63
- package/src/src/platform/adapters/fs/veryfront/index.ts +0 -8
- package/src/src/platform/adapters/fs/veryfront/invalidation-state.ts +0 -130
- package/src/src/platform/adapters/fs/veryfront/multi-project-adapter.ts +0 -266
- package/src/src/platform/adapters/fs/veryfront/path-normalizer.ts +0 -40
- package/src/src/platform/adapters/fs/veryfront/proxy-manager.ts +0 -621
- package/src/src/platform/adapters/fs/veryfront/read-operations-helpers.ts +0 -111
- package/src/src/platform/adapters/fs/veryfront/read-operations.ts +0 -778
- package/src/src/platform/adapters/fs/veryfront/request-context.ts +0 -100
- package/src/src/platform/adapters/fs/veryfront/retry.ts +0 -62
- package/src/src/platform/adapters/fs/veryfront/schemas/index.ts +0 -7
- package/src/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.ts +0 -16
- package/src/src/platform/adapters/fs/veryfront/stat-operations-helpers.ts +0 -74
- package/src/src/platform/adapters/fs/veryfront/stat-operations.ts +0 -556
- package/src/src/platform/adapters/fs/veryfront/types.ts +0 -142
- package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +0 -94
- package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +0 -893
- package/src/src/platform/adapters/fs/wrapper.ts +0 -264
- package/src/src/platform/adapters/mock.ts +0 -185
- package/src/src/platform/adapters/node.ts +0 -18
- package/src/src/platform/adapters/redis/deno.ts +0 -120
- package/src/src/platform/adapters/redis/index.ts +0 -21
- package/src/src/platform/adapters/redis/interface.ts +0 -42
- package/src/src/platform/adapters/redis/modules.ts +0 -54
- package/src/src/platform/adapters/redis/node.ts +0 -127
- package/src/src/platform/adapters/redis/types.ts +0 -84
- package/src/src/platform/adapters/redis/utils.ts +0 -14
- package/src/src/platform/adapters/registry.ts +0 -202
- package/src/src/platform/adapters/runtime/bun/adapter.ts +0 -42
- package/src/src/platform/adapters/runtime/bun/environment-adapter.ts +0 -17
- package/src/src/platform/adapters/runtime/bun/filesystem-adapter.ts +0 -203
- package/src/src/platform/adapters/runtime/bun/http-server.ts +0 -45
- package/src/src/platform/adapters/runtime/bun/index.ts +0 -20
- package/src/src/platform/adapters/runtime/bun/types.ts +0 -45
- package/src/src/platform/adapters/runtime/bun/websocket-adapter.ts +0 -47
- package/src/src/platform/adapters/runtime/deno/adapter.ts +0 -458
- package/src/src/platform/adapters/runtime/deno/index.ts +0 -7
- package/src/src/platform/adapters/runtime/node/adapter.ts +0 -42
- package/src/src/platform/adapters/runtime/node/environment-adapter.ts +0 -17
- package/src/src/platform/adapters/runtime/node/filesystem-adapter.ts +0 -147
- package/src/src/platform/adapters/runtime/node/http-server.ts +0 -196
- package/src/src/platform/adapters/runtime/node/index.ts +0 -18
- package/src/src/platform/adapters/runtime/node/types.ts +0 -42
- package/src/src/platform/adapters/runtime/node/websocket-adapter.ts +0 -191
- package/src/src/platform/adapters/runtime/shared/env-to-object.ts +0 -10
- package/src/src/platform/adapters/runtime/shared/node-based-shell-adapter.ts +0 -32
- package/src/src/platform/adapters/runtime/shared/server-lifecycle.ts +0 -31
- package/src/src/platform/adapters/runtime/shared/shared-watcher.ts +0 -59
- package/src/src/platform/adapters/runtime/shared/temp-dir.ts +0 -6
- package/src/src/platform/adapters/runtime/shared/watcher-queue.ts +0 -63
- package/src/src/platform/adapters/runtime-detection.ts +0 -10
- package/src/src/platform/adapters/veryfront-api-client/client.ts +0 -512
- package/src/src/platform/adapters/veryfront-api-client/index.ts +0 -50
- package/src/src/platform/adapters/veryfront-api-client/operations.ts +0 -576
- package/src/src/platform/adapters/veryfront-api-client/retry-handler.ts +0 -158
- package/src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts +0 -320
- package/src/src/platform/adapters/veryfront-api-client/schemas/index.ts +0 -41
- package/src/src/platform/adapters/veryfront-api-client/types.ts +0 -33
- package/src/src/platform/cloud/resolver.ts +0 -149
- package/src/src/platform/compat/console/deno.ts +0 -51
- package/src/src/platform/compat/console/index.ts +0 -90
- package/src/src/platform/compat/console/node.ts +0 -61
- package/src/src/platform/compat/console/types.ts +0 -18
- package/src/src/platform/compat/constants.ts +0 -14
- package/src/src/platform/compat/dynamic-import.ts +0 -15
- package/src/src/platform/compat/esbuild-init.ts +0 -77
- package/src/src/platform/compat/esbuild-shared.ts +0 -22
- package/src/src/platform/compat/esbuild.ts +0 -53
- package/src/src/platform/compat/framework-source-resolver.ts +0 -221
- package/src/src/platform/compat/fs.ts +0 -354
- package/src/src/platform/compat/http/deno-server.ts +0 -55
- package/src/src/platform/compat/http/factory.ts +0 -12
- package/src/src/platform/compat/http/index.ts +0 -45
- package/src/src/platform/compat/http/node-server.ts +0 -103
- package/src/src/platform/compat/http/node-types.ts +0 -34
- package/src/src/platform/compat/http/request-adapter.ts +0 -16
- package/src/src/platform/compat/http/responses.ts +0 -227
- package/src/src/platform/compat/http/types.ts +0 -23
- package/src/src/platform/compat/http/websocket.ts +0 -34
- package/src/src/platform/compat/kv/factory.ts +0 -60
- package/src/src/platform/compat/kv/index.ts +0 -10
- package/src/src/platform/compat/kv/memory-adapter.ts +0 -68
- package/src/src/platform/compat/kv/sqlite-adapter.ts +0 -113
- package/src/src/platform/compat/kv/types.ts +0 -31
- package/src/src/platform/compat/media-types.ts +0 -27
- package/src/src/platform/compat/opaque-deps.ts +0 -70
- package/src/src/platform/compat/path/basic-operations.ts +0 -59
- package/src/src/platform/compat/path/index.ts +0 -15
- package/src/src/platform/compat/path/parse-format.ts +0 -33
- package/src/src/platform/compat/path/resolution.ts +0 -136
- package/src/src/platform/compat/path/runtime.ts +0 -26
- package/src/src/platform/compat/path/security.ts +0 -29
- package/src/src/platform/compat/path/types.ts +0 -22
- package/src/src/platform/compat/path/url-conversion.ts +0 -58
- package/src/src/platform/compat/process/command.ts +0 -297
- package/src/src/platform/compat/process/env.ts +0 -227
- package/src/src/platform/compat/process/lifecycle.ts +0 -330
- package/src/src/platform/compat/process/runtime-process.ts +0 -27
- package/src/src/platform/compat/process.ts +0 -37
- package/src/src/platform/compat/react-paths.ts +0 -84
- package/src/src/platform/compat/runtime.ts +0 -112
- package/src/src/platform/compat/std/dotenv.ts +0 -87
- package/src/src/platform/compat/std/front-matter-yaml.ts +0 -39
- package/src/src/platform/compat/stdin.ts +0 -271
- package/src/src/platform/compat/transform.ts +0 -44
- package/src/src/platform/compat/vfs-paths.ts +0 -59
- package/src/src/platform/core-platform.ts +0 -199
- package/src/src/platform/environment.ts +0 -35
- package/src/src/platform/index.ts +0 -73
- package/src/src/prompt/factory.ts +0 -59
- package/src/src/prompt/index.ts +0 -22
- package/src/src/prompt/registry.ts +0 -29
- package/src/src/prompt/schemas/prompt.schema.ts +0 -15
- package/src/src/prompt/types.ts +0 -9
- package/src/src/provider/index.ts +0 -55
- package/src/src/provider/local/embedding-runtime-adapter.ts +0 -37
- package/src/src/provider/local/env.ts +0 -37
- package/src/src/provider/local/local-embedding-engine.ts +0 -93
- package/src/src/provider/local/local-engine.ts +0 -317
- package/src/src/provider/local/model-catalog.ts +0 -139
- package/src/src/provider/local/model-runtime-adapter.ts +0 -202
- package/src/src/provider/model-registry.ts +0 -369
- package/src/src/provider/runtime-inspection.ts +0 -25
- package/src/src/provider/runtime-loader/provider-embedding-responses.ts +0 -61
- package/src/src/provider/runtime-loader/provider-endpoints.ts +0 -50
- package/src/src/provider/runtime-loader/provider-http.ts +0 -207
- package/src/src/provider/runtime-loader/provider-records.ts +0 -7
- package/src/src/provider/runtime-loader/provider-request-init.ts +0 -101
- package/src/src/provider/runtime-loader/provider-sse.ts +0 -29
- package/src/src/provider/runtime-loader/provider-usage.ts +0 -135
- package/src/src/provider/runtime-loader/tool-input-status.ts +0 -242
- package/src/src/provider/runtime-loader.ts +0 -517
- package/src/src/provider/shared/index.ts +0 -70
- package/src/src/provider/types.ts +0 -40
- package/src/src/provider/veryfront-cloud/context.ts +0 -28
- package/src/src/provider/veryfront-cloud/model-catalog.ts +0 -224
- package/src/src/provider/veryfront-cloud/openai.ts +0 -34
- package/src/src/provider/veryfront-cloud/provider.ts +0 -82
- package/src/src/provider/veryfront-cloud/shared.ts +0 -139
- package/src/src/proxy/cache/index.ts +0 -78
- package/src/src/proxy/cache/memory-cache.ts +0 -136
- package/src/src/proxy/cache/resilient-cache.ts +0 -204
- package/src/src/proxy/cache/tracing-cache.ts +0 -77
- package/src/src/proxy/cache/types.ts +0 -48
- package/src/src/proxy/env.ts +0 -11
- package/src/src/proxy/error-response.ts +0 -32
- package/src/src/proxy/handler.ts +0 -905
- package/src/src/proxy/log-noise.ts +0 -42
- package/src/src/proxy/logger.ts +0 -406
- package/src/src/proxy/main.ts +0 -624
- package/src/src/proxy/oauth-client.ts +0 -93
- package/src/src/proxy/renderer-router.ts +0 -126
- package/src/src/proxy/retry.ts +0 -19
- package/src/src/proxy/server-resolver.ts +0 -151
- package/src/src/proxy/token-manager.ts +0 -193
- package/src/src/proxy/tracing.ts +0 -203
- package/src/src/proxy/version.ts +0 -21
- package/src/src/react/compat/config-generator.ts +0 -161
- package/src/src/react/compat/hooks-adapter.ts +0 -241
- package/src/src/react/compat/index.ts +0 -50
- package/src/src/react/compat/ssr-adapter/html-wrapper.ts +0 -40
- package/src/src/react/compat/ssr-adapter/index.ts +0 -13
- package/src/src/react/compat/ssr-adapter/response-builder.ts +0 -44
- package/src/src/react/compat/ssr-adapter/server-loader.ts +0 -98
- package/src/src/react/compat/ssr-adapter/stream-renderer.ts +0 -248
- package/src/src/react/compat/ssr-adapter/string-renderer.ts +0 -75
- package/src/src/react/compat/ssr-adapter/types.ts +0 -36
- package/src/src/react/compat/version-detector/compatibility-checker.ts +0 -55
- package/src/src/react/compat/version-detector/feature-detector.ts +0 -92
- package/src/src/react/compat/version-detector/index.ts +0 -22
- package/src/src/react/compat/version-detector/types.ts +0 -42
- package/src/src/react/compat/version-detector/version-cache.ts +0 -36
- package/src/src/react/compat/version-detector/version-parser.ts +0 -33
- package/src/src/react/components/AppWrapper.tsx +0 -44
- package/src/src/react/components/Head.tsx +0 -12
- package/src/src/react/components/LayoutComponent.tsx +0 -62
- package/src/src/react/components/MDXProvider.tsx +0 -21
- package/src/src/react/components/ProviderComponent.tsx +0 -58
- package/src/src/react/components/chat/agent-card.tsx +0 -162
- package/src/src/react/components/chat/chat/components/animations.tsx +0 -62
- package/src/src/react/components/chat/chat/components/attachment-pill.tsx +0 -110
- package/src/src/react/components/chat/chat/components/branch-picker.tsx +0 -70
- package/src/src/react/components/chat/chat/components/code-block.tsx +0 -83
- package/src/src/react/components/chat/chat/components/drop-zone.tsx +0 -49
- package/src/src/react/components/chat/chat/components/empty-state.tsx +0 -121
- package/src/src/react/components/chat/chat/components/inference-badge.tsx +0 -48
- package/src/src/react/components/chat/chat/components/inline-citation.tsx +0 -150
- package/src/src/react/components/chat/chat/components/message-actions.tsx +0 -88
- package/src/src/react/components/chat/chat/components/message-edit-form.tsx +0 -95
- package/src/src/react/components/chat/chat/components/message-feedback.tsx +0 -72
- package/src/src/react/components/chat/chat/components/quick-actions.tsx +0 -38
- package/src/src/react/components/chat/chat/components/reasoning.tsx +0 -56
- package/src/src/react/components/chat/chat/components/sidebar.tsx +0 -204
- package/src/src/react/components/chat/chat/components/skill-badge.tsx +0 -51
- package/src/src/react/components/chat/chat/components/sources.tsx +0 -99
- package/src/src/react/components/chat/chat/components/step-indicator.tsx +0 -33
- package/src/src/react/components/chat/chat/components/tab-switcher.tsx +0 -69
- package/src/src/react/components/chat/chat/components/tool-ui.tsx +0 -204
- package/src/src/react/components/chat/chat/components/upgrade-cta.tsx +0 -56
- package/src/src/react/components/chat/chat/components/uploads-panel.tsx +0 -143
- package/src/src/react/components/chat/chat/composition/api.tsx +0 -17
- package/src/src/react/components/chat/chat/composition/chat-composer.tsx +0 -205
- package/src/src/react/components/chat/chat/composition/chat-empty.tsx +0 -77
- package/src/src/react/components/chat/chat/composition/chat-if.tsx +0 -25
- package/src/src/react/components/chat/chat/composition/chat-message-list.tsx +0 -356
- package/src/src/react/components/chat/chat/composition/chat-root.tsx +0 -183
- package/src/src/react/components/chat/chat/composition/error-banner.tsx +0 -38
- package/src/src/react/components/chat/chat/composition/message.tsx +0 -343
- package/src/src/react/components/chat/chat/composition/model-avatar.tsx +0 -103
- package/src/src/react/components/chat/chat/contexts/chat-context.tsx +0 -81
- package/src/src/react/components/chat/chat/contexts/composer-context.tsx +0 -62
- package/src/src/react/components/chat/chat/contexts/index.ts +0 -36
- package/src/src/react/components/chat/chat/contexts/message-context.tsx +0 -52
- package/src/src/react/components/chat/chat/contexts/thread-list-context.tsx +0 -43
- package/src/src/react/components/chat/chat/hooks/use-threads.ts +0 -208
- package/src/src/react/components/chat/chat/index.tsx +0 -529
- package/src/src/react/components/chat/chat/utils/export.ts +0 -75
- package/src/src/react/components/chat/chat/utils/message-parts.ts +0 -151
- package/src/src/react/components/chat/chat-with-sidebar.tsx +0 -373
- package/src/src/react/components/chat/chat.tsx +0 -146
- package/src/src/react/components/chat/csp-nonce.ts +0 -13
- package/src/src/react/components/chat/error-boundary.tsx +0 -108
- package/src/src/react/components/chat/icons/index.ts +0 -328
- package/src/src/react/components/chat/markdown.tsx +0 -284
- package/src/src/react/components/chat/message.tsx +0 -166
- package/src/src/react/components/chat/model-selector.tsx +0 -262
- package/src/src/react/components/chat/theme.ts +0 -325
- package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +0 -40
- package/src/src/react/components/optimized-image/OptimizedImage.tsx +0 -81
- package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +0 -43
- package/src/src/react/components/optimized-image/helpers.ts +0 -29
- package/src/src/react/components/optimized-image/index.ts +0 -12
- package/src/src/react/components/optimized-image/useOptimizedImage.ts +0 -32
- package/src/src/react/components/optimized-image/utils.tsx +0 -53
- package/src/src/react/context/index.tsx +0 -13
- package/src/src/react/fonts/index.ts +0 -103
- package/src/src/react/head-collector.ts +0 -143
- package/src/src/react/index.ts +0 -99
- package/src/src/react/primitives/agent-primitives.tsx +0 -87
- package/src/src/react/primitives/chat-container.tsx +0 -17
- package/src/src/react/primitives/index.ts +0 -41
- package/src/src/react/primitives/input-box.tsx +0 -226
- package/src/src/react/primitives/message-list.tsx +0 -83
- package/src/src/react/primitives/tool-primitives.tsx +0 -120
- package/src/src/react/router/index.tsx +0 -13
- package/src/src/react/runtime/core.ts +0 -303
- package/src/src/registry/project-scoped-registry-manager.ts +0 -211
- package/src/src/registry/scoped-registry-facade.ts +0 -51
- package/src/src/rendering/app-reserved.ts +0 -109
- package/src/src/rendering/app-route-resolver.ts +0 -170
- package/src/src/rendering/cache/cache-coordinator.ts +0 -195
- package/src/src/rendering/cache/index.ts +0 -24
- package/src/src/rendering/cache/stores/api-store.ts +0 -222
- package/src/src/rendering/cache/stores/filesystem-store.ts +0 -114
- package/src/src/rendering/cache/stores/index.ts +0 -11
- package/src/src/rendering/cache/stores/kv-store.ts +0 -103
- package/src/src/rendering/cache/stores/memory-store.ts +0 -97
- package/src/src/rendering/cache/stores/redis-store.ts +0 -267
- package/src/src/rendering/cache/types.ts +0 -21
- package/src/src/rendering/chunk-optimizer.ts +0 -273
- package/src/src/rendering/cleanup.ts +0 -27
- package/src/src/rendering/component-handling.ts +0 -172
- package/src/src/rendering/context/render-context.ts +0 -143
- package/src/src/rendering/element-validator/element-inspector.ts +0 -190
- package/src/src/rendering/element-validator/element-normalizer.ts +0 -73
- package/src/src/rendering/element-validator/index.ts +0 -18
- package/src/src/rendering/element-validator/primitive-checks.ts +0 -124
- package/src/src/rendering/element-validator/types.ts +0 -15
- package/src/src/rendering/element-validator/validator-core.ts +0 -46
- package/src/src/rendering/factories/service-factories.ts +0 -112
- package/src/src/rendering/index.ts +0 -49
- package/src/src/rendering/layouts/index.ts +0 -26
- package/src/src/rendering/layouts/layout-applicator.ts +0 -468
- package/src/src/rendering/layouts/layout-collector.ts +0 -401
- package/src/src/rendering/layouts/layout-compiler.ts +0 -75
- package/src/src/rendering/layouts/types.ts +0 -16
- package/src/src/rendering/layouts/utils/app-resolver.ts +0 -71
- package/src/src/rendering/layouts/utils/applicator.ts +0 -228
- package/src/src/rendering/layouts/utils/compiler.ts +0 -30
- package/src/src/rendering/layouts/utils/component-loader.ts +0 -273
- package/src/src/rendering/layouts/utils/discovery.ts +0 -243
- package/src/src/rendering/layouts/utils/ensure-valid-child.ts +0 -51
- package/src/src/rendering/layouts/utils/hash-calculator.ts +0 -51
- package/src/src/rendering/orchestrator/compiler-service.ts +0 -37
- package/src/src/rendering/orchestrator/config.ts +0 -120
- package/src/src/rendering/orchestrator/css-cache.ts +0 -81
- package/src/src/rendering/orchestrator/css-candidate-manifest.ts +0 -224
- package/src/src/rendering/orchestrator/file-resolver/candidates.ts +0 -25
- package/src/src/rendering/orchestrator/file-resolver/index.ts +0 -84
- package/src/src/rendering/orchestrator/html-head.ts +0 -74
- package/src/src/rendering/orchestrator/html-imported-css.ts +0 -81
- package/src/src/rendering/orchestrator/html-project-css.ts +0 -203
- package/src/src/rendering/orchestrator/html-types.ts +0 -27
- package/src/src/rendering/orchestrator/html.ts +0 -487
- package/src/src/rendering/orchestrator/layout.ts +0 -321
- package/src/src/rendering/orchestrator/lifecycle.ts +0 -297
- package/src/src/rendering/orchestrator/mdx.ts +0 -78
- package/src/src/rendering/orchestrator/module-collection.ts +0 -73
- package/src/src/rendering/orchestrator/module-loader/cache.ts +0 -29
- package/src/src/rendering/orchestrator/module-loader/esm-rewriter.ts +0 -102
- package/src/src/rendering/orchestrator/module-loader/index.ts +0 -569
- package/src/src/rendering/orchestrator/path-helpers.ts +0 -26
- package/src/src/rendering/orchestrator/pipeline-helpers.ts +0 -35
- package/src/src/rendering/orchestrator/pipeline.ts +0 -889
- package/src/src/rendering/orchestrator/ssr-orchestrator.ts +0 -278
- package/src/src/rendering/orchestrator/ssr.ts +0 -228
- package/src/src/rendering/orchestrator/types.ts +0 -92
- package/src/src/rendering/page-renderer.ts +0 -252
- package/src/src/rendering/page-rendering.ts +0 -182
- package/src/src/rendering/page-resolution/index.ts +0 -21
- package/src/src/rendering/page-resolution/page-resolver.ts +0 -238
- package/src/src/rendering/renderer-concurrency.ts +0 -195
- package/src/src/rendering/renderer.ts +0 -593
- package/src/src/rendering/router-detection.ts +0 -247
- package/src/src/rendering/rsc/client-module-strategy.ts +0 -100
- package/src/src/rendering/rsc/component-analyzer.ts +0 -148
- package/src/src/rendering/rsc/constants.ts +0 -6
- package/src/src/rendering/rsc/export-extractor.ts +0 -44
- package/src/src/rendering/rsc/production-optimizer.ts +0 -128
- package/src/src/rendering/rsc/server-action-guard.ts +0 -5
- package/src/src/rendering/rsc/server-renderer/component-detector.ts +0 -47
- package/src/src/rendering/rsc/server-renderer/html-generator.ts +0 -50
- package/src/src/rendering/rsc/server-renderer/index.ts +0 -18
- package/src/src/rendering/rsc/server-renderer/prop-serializer.ts +0 -69
- package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +0 -47
- package/src/src/rendering/rsc/server-renderer/tree-processor.ts +0 -126
- package/src/src/rendering/rsc/types.ts +0 -8
- package/src/src/rendering/script-page-handling.ts +0 -392
- package/src/src/rendering/shared/context-aware-cache.ts +0 -281
- package/src/src/rendering/shared/shared-services.ts +0 -112
- package/src/src/rendering/snippet-renderer.ts +0 -386
- package/src/src/rendering/ssr/component-registry.ts +0 -326
- package/src/src/rendering/ssr/index.ts +0 -10
- package/src/src/rendering/ssr/mdx-module-loader.ts +0 -185
- package/src/src/rendering/ssr/mdx-renderer.ts +0 -66
- package/src/src/rendering/ssr/types.ts +0 -14
- package/src/src/rendering/ssr-globals/context.ts +0 -70
- package/src/src/rendering/ssr-globals/dom-stubs.ts +0 -435
- package/src/src/rendering/ssr-globals/fetch-interceptor.ts +0 -123
- package/src/src/rendering/ssr-globals/index.ts +0 -79
- package/src/src/rendering/ssr-globals.ts +0 -13
- package/src/src/rendering/ssr-renderer.ts +0 -258
- package/src/src/rendering/styles.ts +0 -15
- package/src/src/rendering/utils/index.ts +0 -22
- package/src/src/rendering/utils/react-helpers.ts +0 -31
- package/src/src/rendering/utils/stream-utils.ts +0 -129
- package/src/src/rendering/virtual-module-system.ts +0 -106
- package/src/src/repositories/schemas/index.ts +0 -14
- package/src/src/repositories/schemas/repository.schema.ts +0 -41
- package/src/src/repositories/types.ts +0 -26
- package/src/src/resource/factory.ts +0 -64
- package/src/src/resource/index.ts +0 -30
- package/src/src/resource/registry.ts +0 -41
- package/src/src/resource/schemas/index.ts +0 -14
- package/src/src/resource/schemas/resource.schema.ts +0 -21
- package/src/src/resource/types.ts +0 -36
- package/src/src/routing/api/api-route-matcher.ts +0 -196
- package/src/src/routing/api/context-builder.ts +0 -69
- package/src/src/routing/api/handler.ts +0 -341
- package/src/src/routing/api/index.ts +0 -26
- package/src/src/routing/api/method-validator.ts +0 -26
- package/src/src/routing/api/module-loader/esbuild-plugin.ts +0 -192
- package/src/src/routing/api/module-loader/external-import-rewriter.ts +0 -461
- package/src/src/routing/api/module-loader/http-validator.ts +0 -38
- package/src/src/routing/api/module-loader/loader-helpers.ts +0 -68
- package/src/src/routing/api/module-loader/loader.ts +0 -672
- package/src/src/routing/api/module-loader/security-config.ts +0 -28
- package/src/src/routing/api/module-loader/types.ts +0 -36
- package/src/src/routing/api/openapi/path-utils.ts +0 -132
- package/src/src/routing/api/openapi/spec-generator.ts +0 -265
- package/src/src/routing/api/openapi/types.ts +0 -135
- package/src/src/routing/api/route-discovery.ts +0 -70
- package/src/src/routing/api/route-executor.ts +0 -450
- package/src/src/routing/client/dom-utils.ts +0 -174
- package/src/src/routing/client/index.ts +0 -33
- package/src/src/routing/client/navigation-handlers.ts +0 -127
- package/src/src/routing/client/page-loader.ts +0 -215
- package/src/src/routing/client/page-transition.ts +0 -99
- package/src/src/routing/client/types.ts +0 -39
- package/src/src/routing/client/viewport-prefetch.ts +0 -81
- package/src/src/routing/index.ts +0 -54
- package/src/src/routing/matchers/index.ts +0 -11
- package/src/src/routing/matchers/pattern-route-matcher.ts +0 -46
- package/src/src/routing/matchers/route-matcher.ts +0 -41
- package/src/src/routing/matchers/route-parser.ts +0 -69
- package/src/src/routing/matchers/types.ts +0 -13
- package/src/src/routing/registry/index.ts +0 -7
- package/src/src/routing/registry/registry.ts +0 -161
- package/src/src/routing/registry/types.ts +0 -7
- package/src/src/routing/slug-mapper/dynamic-route-matcher.ts +0 -54
- package/src/src/routing/slug-mapper/index.ts +0 -11
- package/src/src/routing/slug-mapper/path-candidate-generator.ts +0 -58
- package/src/src/routing/slug-mapper/slug-normalizer.ts +0 -25
- package/src/src/routing/slug-mapper/types.ts +0 -8
- package/src/src/runtime/runtime-bridge.ts +0 -614
- package/src/src/sandbox/agent-service-tools.ts +0 -184
- package/src/src/sandbox/config.ts +0 -20
- package/src/src/sandbox/index.ts +0 -68
- package/src/src/sandbox/lazy-sandbox.ts +0 -736
- package/src/src/sandbox/sandbox.ts +0 -454
- package/src/src/sandbox/shell-tools.ts +0 -217
- package/src/src/sandbox/types.ts +0 -95
- package/src/src/schemas/common.ts +0 -99
- package/src/src/schemas/define.ts +0 -45
- package/src/src/schemas/index.ts +0 -65
- package/src/src/schemas/json-schema.ts +0 -33
- package/src/src/schemas/lazy.ts +0 -65
- package/src/src/schemas/primitives.ts +0 -84
- package/src/src/security/client/html-sanitizer.ts +0 -120
- package/src/src/security/csrf/helpers.ts +0 -144
- package/src/src/security/csrf/index.ts +0 -8
- package/src/src/security/deno-permissions.ts +0 -55
- package/src/src/security/http/auth.ts +0 -129
- package/src/src/security/http/base-handler.ts +0 -183
- package/src/src/security/http/client-hints.ts +0 -41
- package/src/src/security/http/config.ts +0 -96
- package/src/src/security/http/cors/constants.ts +0 -6
- package/src/src/security/http/cors/headers.ts +0 -80
- package/src/src/security/http/cors/index.ts +0 -36
- package/src/src/security/http/cors/middleware.ts +0 -42
- package/src/src/security/http/cors/preflight.ts +0 -86
- package/src/src/security/http/cors/types.ts +0 -30
- package/src/src/security/http/cors/validators.ts +0 -191
- package/src/src/security/http/csrf/csrf-handler.ts +0 -101
- package/src/src/security/http/csrf/index.ts +0 -7
- package/src/src/security/http/middleware/config-loader.ts +0 -61
- package/src/src/security/http/middleware/cors-handler.ts +0 -21
- package/src/src/security/http/middleware/index.ts +0 -16
- package/src/src/security/http/middleware/types.ts +0 -29
- package/src/src/security/http/response/builder.ts +0 -62
- package/src/src/security/http/response/cache-handler.ts +0 -34
- package/src/src/security/http/response/constants.ts +0 -15
- package/src/src/security/http/response/fluent-methods.ts +0 -137
- package/src/src/security/http/response/index.ts +0 -11
- package/src/src/security/http/response/response-methods.ts +0 -85
- package/src/src/security/http/response/security-handler.ts +0 -225
- package/src/src/security/http/response/static-helpers.ts +0 -150
- package/src/src/security/http/response/types.ts +0 -33
- package/src/src/security/index.ts +0 -100
- package/src/src/security/input-validation/errors.ts +0 -17
- package/src/src/security/input-validation/handler.ts +0 -47
- package/src/src/security/input-validation/index.ts +0 -18
- package/src/src/security/input-validation/limits.ts +0 -110
- package/src/src/security/input-validation/parsers.ts +0 -104
- package/src/src/security/input-validation/sanitizers.ts +0 -48
- package/src/src/security/input-validation/types.ts +0 -34
- package/src/src/security/path-validation/canonical.ts +0 -63
- package/src/src/security/path-validation/index.ts +0 -156
- package/src/src/security/path-validation/normalization.ts +0 -62
- package/src/src/security/path-validation/presets.ts +0 -73
- package/src/src/security/path-validation/rules.ts +0 -67
- package/src/src/security/path-validation/types.ts +0 -38
- package/src/src/security/path-validation.ts +0 -19
- package/src/src/security/sandbox/project-worker.ts +0 -421
- package/src/src/security/sandbox/worker-permissions.ts +0 -77
- package/src/src/security/sandbox/worker-pool.ts +0 -466
- package/src/src/security/sandbox/worker-types.ts +0 -212
- package/src/src/security/secure-fs.ts +0 -322
- package/src/src/security/utils/constant-time.ts +0 -15
- package/src/src/server/bootstrap.ts +0 -530
- package/src/src/server/build-app-route-renderer.ts +0 -148
- package/src/src/server/build-routes.ts +0 -137
- package/src/src/server/build-service-worker.ts +0 -170
- package/src/src/server/build-types.ts +0 -48
- package/src/src/server/context/cache-invalidation.ts +0 -153
- package/src/src/server/context/enriched-context-types.ts +0 -65
- package/src/src/server/context/enriched-context.ts +0 -58
- package/src/src/server/context/request-context.ts +0 -54
- package/src/src/server/dev-server/error-overlay/error-formatter.ts +0 -82
- package/src/src/server/dev-server/error-overlay/html-template.ts +0 -479
- package/src/src/server/dev-server/error-overlay/index.ts +0 -21
- package/src/src/server/dev-server/error-overlay/overlay-renderer.ts +0 -15
- package/src/src/server/dev-server/error-overlay/stack-parser.ts +0 -25
- package/src/src/server/dev-server/file-watch-setup.ts +0 -276
- package/src/src/server/dev-server/file-watcher.ts +0 -100
- package/src/src/server/dev-server/hmr-types.ts +0 -11
- package/src/src/server/dev-server/index.ts +0 -19
- package/src/src/server/dev-server/middleware.ts +0 -244
- package/src/src/server/dev-server/request-handler.ts +0 -186
- package/src/src/server/dev-server/route-discovery.ts +0 -241
- package/src/src/server/dev-server/server.ts +0 -487
- package/src/src/server/dev-server/types.ts +0 -36
- package/src/src/server/dev-server.ts +0 -8
- package/src/src/server/dev-ui/manifest.js +0 -31
- package/src/src/server/handlers/dev/dashboard/api.ts +0 -690
- package/src/src/server/handlers/dev/dashboard/html-shell.ts +0 -43
- package/src/src/server/handlers/dev/dashboard/index.ts +0 -59
- package/src/src/server/handlers/dev/dashboard/ui-handler.ts +0 -104
- package/src/src/server/handlers/dev/debug-context.handler.ts +0 -106
- package/src/src/server/handlers/dev/endpoints.handler.ts +0 -58
- package/src/src/server/handlers/dev/files/dev-file.handler.ts +0 -93
- package/src/src/server/handlers/dev/files/esbuild-bundler.ts +0 -11
- package/src/src/server/handlers/dev/files/esbuild-plugins.ts +0 -282
- package/src/src/server/handlers/dev/files/index.ts +0 -12
- package/src/src/server/handlers/dev/files/path-validator.ts +0 -60
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +0 -5458
- package/src/src/server/handlers/dev/projects/api.ts +0 -34
- package/src/src/server/handlers/dev/projects/html-shell.ts +0 -58
- package/src/src/server/handlers/dev/projects/index.ts +0 -74
- package/src/src/server/handlers/dev/projects/ui-handler.ts +0 -129
- package/src/src/server/handlers/dev/scripts/error-overlay.ts +0 -100
- package/src/src/server/handlers/dev/scripts/hmr-scripts.ts +0 -435
- package/src/src/server/handlers/dev/shared/not-found-response.ts +0 -9
- package/src/src/server/handlers/dev/shared/ui-module-transform.ts +0 -56
- package/src/src/server/handlers/dev/styles-candidate-scanner.ts +0 -152
- package/src/src/server/handlers/dev/styles-css.handler.ts +0 -465
- package/src/src/server/handlers/monitoring/client-log.handler.ts +0 -127
- package/src/src/server/handlers/monitoring/health.handler.ts +0 -96
- package/src/src/server/handlers/monitoring/memory.handler.ts +0 -178
- package/src/src/server/handlers/monitoring/metrics.handler.ts +0 -67
- package/src/src/server/handlers/preview/hmr-client-manager.ts +0 -91
- package/src/src/server/handlers/preview/hmr-client-message.ts +0 -63
- package/src/src/server/handlers/preview/hmr-message-router.ts +0 -92
- package/src/src/server/handlers/preview/hmr-ping-keepalive.ts +0 -49
- package/src/src/server/handlers/preview/hmr.handler.ts +0 -306
- package/src/src/server/handlers/preview/markdown-html-generator.ts +0 -187
- package/src/src/server/handlers/preview/markdown-preview.handler.ts +0 -186
- package/src/src/server/handlers/request/agent-run-cancel.handler.ts +0 -88
- package/src/src/server/handlers/request/agent-run-resume.handler.ts +0 -110
- package/src/src/server/handlers/request/agent-stream.handler.ts +0 -284
- package/src/src/server/handlers/request/api/api-handler-wrapper.ts +0 -159
- package/src/src/server/handlers/request/api/app-router-handler.ts +0 -68
- package/src/src/server/handlers/request/api/app-router-resolver.ts +0 -166
- package/src/src/server/handlers/request/api/index.ts +0 -12
- package/src/src/server/handlers/request/api/pages-api-handler.ts +0 -111
- package/src/src/server/handlers/request/api/project-discovery.ts +0 -133
- package/src/src/server/handlers/request/api/security-headers.ts +0 -54
- package/src/src/server/handlers/request/api/types.ts +0 -12
- package/src/src/server/handlers/request/channel-dispatch-request.ts +0 -113
- package/src/src/server/handlers/request/channel-invoke.handler.ts +0 -49
- package/src/src/server/handlers/request/css.handler.ts +0 -106
- package/src/src/server/handlers/request/internal-agents-list.handler.ts +0 -101
- package/src/src/server/handlers/request/lib-modules.handler.ts +0 -124
- package/src/src/server/handlers/request/module/batch-module-handler.ts +0 -37
- package/src/src/server/handlers/request/module/data-endpoint-handler.ts +0 -79
- package/src/src/server/handlers/request/module/index.ts +0 -14
- package/src/src/server/handlers/request/module/module-server-handler.ts +0 -70
- package/src/src/server/handlers/request/module/module.handler.ts +0 -94
- package/src/src/server/handlers/request/module/page-data-endpoint-handler.ts +0 -108
- package/src/src/server/handlers/request/module/page-module-handler.ts +0 -83
- package/src/src/server/handlers/request/module/virtual-module-handler.ts +0 -58
- package/src/src/server/handlers/request/openapi-docs.handler.ts +0 -91
- package/src/src/server/handlers/request/openapi.handler.ts +0 -169
- package/src/src/server/handlers/request/prod-hydration-module.handler.ts +0 -60
- package/src/src/server/handlers/request/rsc/index.ts +0 -82
- package/src/src/server/handlers/request/snippet.handler.ts +0 -137
- package/src/src/server/handlers/request/ssr/error-page-fallback.ts +0 -285
- package/src/src/server/handlers/request/ssr/etag-handler.ts +0 -18
- package/src/src/server/handlers/request/ssr/index.ts +0 -10
- package/src/src/server/handlers/request/ssr/not-found-fallback.ts +0 -105
- package/src/src/server/handlers/request/ssr/ssr-response-builder.ts +0 -88
- package/src/src/server/handlers/request/ssr/ssr.handler.ts +0 -303
- package/src/src/server/handlers/request/static.handler.ts +0 -125
- package/src/src/server/handlers/response/base.ts +0 -1
- package/src/src/server/handlers/response/cors.ts +0 -67
- package/src/src/server/handlers/response/not-found.ts +0 -156
- package/src/src/server/handlers/studio/bridge-modules.handler.ts +0 -131
- package/src/src/server/handlers/types.ts +0 -22
- package/src/src/server/handlers/utils/content-types.ts +0 -107
- package/src/src/server/handlers/utils/etag.ts +0 -44
- package/src/src/server/index.ts +0 -386
- package/src/src/server/node-handler.ts +0 -42
- package/src/src/server/production-server.ts +0 -466
- package/src/src/server/project-env/cache.ts +0 -101
- package/src/src/server/project-env/fetcher.ts +0 -80
- package/src/src/server/project-env/index.ts +0 -9
- package/src/src/server/project-env/storage.ts +0 -54
- package/src/src/server/reload-notifier.ts +0 -165
- package/src/src/server/runtime-handler/adapter-factory.ts +0 -216
- package/src/src/server/runtime-handler/environment-resolution.ts +0 -139
- package/src/src/server/runtime-handler/handler-context-builder.ts +0 -138
- package/src/src/server/runtime-handler/index.ts +0 -716
- package/src/src/server/runtime-handler/isolation.ts +0 -119
- package/src/src/server/runtime-handler/local-project-discovery.ts +0 -168
- package/src/src/server/runtime-handler/project-isolation.ts +0 -256
- package/src/src/server/runtime-handler/project-resolution.ts +0 -278
- package/src/src/server/runtime-handler/projects-handler.ts +0 -133
- package/src/src/server/runtime-handler/proxy-environment.ts +0 -15
- package/src/src/server/runtime-handler/request-lifecycle.ts +0 -129
- package/src/src/server/runtime-handler/request-tracker.ts +0 -259
- package/src/src/server/runtime-handler/request-utils.ts +0 -88
- package/src/src/server/runtime-handler/timeout-manager.ts +0 -83
- package/src/src/server/runtime-handler/tracing.ts +0 -93
- package/src/src/server/schemas/action.schema.ts +0 -15
- package/src/src/server/schemas/index.ts +0 -7
- package/src/src/server/service-server.ts +0 -598
- package/src/src/server/services/rendering/ssr.service.ts +0 -375
- package/src/src/server/services/rsc/endpoints/action-handler.ts +0 -63
- package/src/src/server/services/rsc/endpoints/action-parser.ts +0 -44
- package/src/src/server/services/rsc/endpoints/endpoint-router.ts +0 -315
- package/src/src/server/services/rsc/endpoints/handler-registry.ts +0 -85
- package/src/src/server/services/rsc/endpoints/index.ts +0 -12
- package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +0 -13
- package/src/src/server/services/rsc/endpoints/script-handlers.ts +0 -122
- package/src/src/server/services/rsc/endpoints/types.ts +0 -23
- package/src/src/server/services/rsc/orchestrators/component-resolver.ts +0 -76
- package/src/src/server/services/rsc/orchestrators/handler.ts +0 -58
- package/src/src/server/services/rsc/orchestrators/index.ts +0 -16
- package/src/src/server/services/rsc/orchestrators/manifest-handler.ts +0 -96
- package/src/src/server/services/rsc/orchestrators/page-handler.ts +0 -103
- package/src/src/server/services/rsc/orchestrators/render-handler.ts +0 -161
- package/src/src/server/services/rsc/orchestrators/stream-handler.ts +0 -94
- package/src/src/server/services/rsc/orchestrators/types.ts +0 -36
- package/src/src/server/services/static/index.ts +0 -10
- package/src/src/server/services/static/static-file.service.ts +0 -333
- package/src/src/server/shared/browser-module-bundler.ts +0 -65
- package/src/src/server/shared/index.ts +0 -12
- package/src/src/server/shared/renderer/adapter.ts +0 -410
- package/src/src/server/shared/renderer/index.ts +0 -14
- package/src/src/server/shared/renderer/memory/pressure.ts +0 -69
- package/src/src/server/shared/renderer-factory.ts +0 -14
- package/src/src/server/utils/chunk-utils.ts +0 -17
- package/src/src/server/utils/domain-lookup.ts +0 -265
- package/src/src/server/utils/domain-parser.ts +0 -238
- package/src/src/server/utils/error-html.ts +0 -163
- package/src/src/server/utils/proxy-trust.ts +0 -56
- package/src/src/server/utils/request-host.ts +0 -12
- package/src/src/skill/allowed-tools.ts +0 -100
- package/src/src/skill/executor.ts +0 -213
- package/src/src/skill/index.ts +0 -60
- package/src/src/skill/parser.ts +0 -207
- package/src/src/skill/path-safety.ts +0 -212
- package/src/src/skill/prompt-augmentation.ts +0 -48
- package/src/src/skill/registry.ts +0 -51
- package/src/src/skill/tools.ts +0 -221
- package/src/src/skill/types.ts +0 -107
- package/src/src/studio/bridge/bridge-bundle.generated.ts +0 -9
- package/src/src/studio/element-selector-injector.ts +0 -96
- package/src/src/studio/hash-utils.ts +0 -1
- package/src/src/task/discovery.ts +0 -294
- package/src/src/task/runner.ts +0 -90
- package/src/src/task/types.ts +0 -46
- package/src/src/testing/assert.ts +0 -352
- package/src/src/testing/bdd.ts +0 -619
- package/src/src/testing/deno-compat.ts +0 -206
- package/src/src/testing/index.ts +0 -92
- package/src/src/testing/init.ts +0 -30
- package/src/src/testing/isolation.ts +0 -177
- package/src/src/testing/timing.ts +0 -27
- package/src/src/testing/utils.ts +0 -44
- package/src/src/tool/context7.ts +0 -34
- package/src/src/tool/executor.ts +0 -22
- package/src/src/tool/factory.ts +0 -234
- package/src/src/tool/host-tools.ts +0 -127
- package/src/src/tool/index.ts +0 -118
- package/src/src/tool/project-scoped-remote-tools.ts +0 -292
- package/src/src/tool/registry.ts +0 -32
- package/src/src/tool/remote-mcp.ts +0 -346
- package/src/src/tool/remote-source-tools.ts +0 -62
- package/src/src/tool/result.ts +0 -23
- package/src/src/tool/schema/index.ts +0 -8
- package/src/src/tool/schema/json-schema.ts +0 -9
- package/src/src/tool/schema/zod-json-schema.ts +0 -87
- package/src/src/tool/sleep.ts +0 -102
- package/src/src/tool/tracing.ts +0 -70
- package/src/src/tool/types.ts +0 -173
- package/src/src/transforms/css-modules/naming.ts +0 -152
- package/src/src/transforms/esm/bundle-deps-validator.ts +0 -187
- package/src/src/transforms/esm/bundle-manifest-ttl.ts +0 -58
- package/src/src/transforms/esm/bundle-manifest-types.ts +0 -14
- package/src/src/transforms/esm/bundle-manifest.ts +0 -182
- package/src/src/transforms/esm/bundle-recovery.ts +0 -356
- package/src/src/transforms/esm/cached-bundle-validation.ts +0 -44
- package/src/src/transforms/esm/html-content.ts +0 -13
- package/src/src/transforms/esm/http-bundler.ts +0 -300
- package/src/src/transforms/esm/http-cache-helpers.ts +0 -188
- package/src/src/transforms/esm/http-cache-invariants.ts +0 -128
- package/src/src/transforms/esm/http-cache-state.ts +0 -72
- package/src/src/transforms/esm/http-cache-types.ts +0 -66
- package/src/src/transforms/esm/http-cache-wrapper.ts +0 -442
- package/src/src/transforms/esm/http-cache.ts +0 -439
- package/src/src/transforms/esm/import-parser.ts +0 -254
- package/src/src/transforms/esm/import-rewriter.ts +0 -194
- package/src/src/transforms/esm/in-flight-manager.ts +0 -145
- package/src/src/transforms/esm/index.ts +0 -23
- package/src/src/transforms/esm/lexer.ts +0 -178
- package/src/src/transforms/esm/package-registry.ts +0 -176
- package/src/src/transforms/esm/path-resolver.ts +0 -114
- package/src/src/transforms/esm/react-imports.ts +0 -55
- package/src/src/transforms/esm/source-url-embed.ts +0 -31
- package/src/src/transforms/esm/specifier-resolver.ts +0 -118
- package/src/src/transforms/esm/transform-cache.ts +0 -317
- package/src/src/transforms/esm/transform-utils.ts +0 -30
- package/src/src/transforms/esm/types.ts +0 -22
- package/src/src/transforms/esm-transform.ts +0 -13
- package/src/src/transforms/import-rewriter/index.ts +0 -82
- package/src/src/transforms/import-rewriter/parse-cache.ts +0 -195
- package/src/src/transforms/import-rewriter/strategies/alias-strategy.ts +0 -79
- package/src/src/transforms/import-rewriter/strategies/bare-strategy.ts +0 -96
- package/src/src/transforms/import-rewriter/strategies/cross-project-strategy.ts +0 -54
- package/src/src/transforms/import-rewriter/strategies/import-map-strategy.ts +0 -137
- package/src/src/transforms/import-rewriter/strategies/index.ts +0 -25
- package/src/src/transforms/import-rewriter/strategies/node-builtin-strategy.ts +0 -56
- package/src/src/transforms/import-rewriter/strategies/react-strategy.ts +0 -48
- package/src/src/transforms/import-rewriter/strategies/relative-strategy.ts +0 -71
- package/src/src/transforms/import-rewriter/strategies/url-strategy.ts +0 -23
- package/src/src/transforms/import-rewriter/strategies/vendor-strategy.ts +0 -47
- package/src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts +0 -97
- package/src/src/transforms/import-rewriter/types.ts +0 -182
- package/src/src/transforms/import-rewriter/unified-rewriter.ts +0 -136
- package/src/src/transforms/import-rewriter/url-builder.ts +0 -145
- package/src/src/transforms/md/compiler/index.ts +0 -7
- package/src/src/transforms/md/compiler/md-compiler.ts +0 -61
- package/src/src/transforms/md/utils.ts +0 -20
- package/src/src/transforms/mdx/compiler/frontmatter-extractor.ts +0 -66
- package/src/src/transforms/mdx/compiler/import-rewriter.ts +0 -125
- package/src/src/transforms/mdx/compiler/index.ts +0 -63
- package/src/src/transforms/mdx/compiler/mdx-compiler.ts +0 -62
- package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +0 -466
- package/src/src/transforms/mdx/esm-module-loader/cache/local-fs.ts +0 -10
- package/src/src/transforms/mdx/esm-module-loader/cache-format.ts +0 -204
- package/src/src/transforms/mdx/esm-module-loader/components/resolver.ts +0 -75
- package/src/src/transforms/mdx/esm-module-loader/constants.ts +0 -28
- package/src/src/transforms/mdx/esm-module-loader/import-transformer.ts +0 -215
- package/src/src/transforms/mdx/esm-module-loader/index.ts +0 -31
- package/src/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.ts +0 -17
- package/src/src/transforms/mdx/esm-module-loader/jsx-cache.ts +0 -45
- package/src/src/transforms/mdx/esm-module-loader/loader-helpers.ts +0 -224
- package/src/src/transforms/mdx/esm-module-loader/loader.ts +0 -30
- package/src/src/transforms/mdx/esm-module-loader/metadata/extractor.ts +0 -105
- package/src/src/transforms/mdx/esm-module-loader/metadata/index.ts +0 -8
- package/src/src/transforms/mdx/esm-module-loader/metadata/string-parser.ts +0 -69
- package/src/src/transforms/mdx/esm-module-loader/missing-module.ts +0 -57
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.ts +0 -34
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.ts +0 -173
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.ts +0 -260
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/framework-validator.ts +0 -294
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.ts +0 -85
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.ts +0 -108
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +0 -499
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.ts +0 -88
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.ts +0 -95
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/render-sessions.ts +0 -100
- package/src/src/transforms/mdx/esm-module-loader/module-writer.ts +0 -425
- package/src/src/transforms/mdx/esm-module-loader/resolution/file-finder.ts +0 -186
- package/src/src/transforms/mdx/esm-module-loader/types.ts +0 -83
- package/src/src/transforms/mdx/esm-module-loader/utils/hash.ts +0 -1
- package/src/src/transforms/mdx/esm-module-loader/utils/stub-module.ts +0 -111
- package/src/src/transforms/mdx/index.ts +0 -116
- package/src/src/transforms/mdx/mdx-cache-adapter.ts +0 -213
- package/src/src/transforms/mdx/module-loader/types.ts +0 -55
- package/src/src/transforms/mdx/types.ts +0 -83
- package/src/src/transforms/npm-import-rewrites.ts +0 -105
- package/src/src/transforms/pipeline/context.ts +0 -124
- package/src/src/transforms/pipeline/index.ts +0 -372
- package/src/src/transforms/pipeline/stages/compile.ts +0 -70
- package/src/src/transforms/pipeline/stages/finalize.ts +0 -20
- package/src/src/transforms/pipeline/stages/index.ts +0 -14
- package/src/src/transforms/pipeline/stages/parse.ts +0 -29
- package/src/src/transforms/pipeline/stages/resolve-imports.ts +0 -48
- package/src/src/transforms/pipeline/stages/ssr-css-strip.ts +0 -201
- package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -49
- package/src/src/transforms/pipeline/stages/ssr-http-stub.ts +0 -96
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/constants.ts +0 -62
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/import-finder.ts +0 -46
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/index.ts +0 -174
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.ts +0 -219
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/transform.ts +0 -434
- package/src/src/transforms/pipeline/stages/ssr-vf-modules.ts +0 -5
- package/src/src/transforms/pipeline/types.ts +0 -143
- package/src/src/transforms/plugins/babel-node-positions.ts +0 -22
- package/src/src/transforms/shared/cross-project-import.ts +0 -27
- package/src/src/transforms/shared/framework-bundle-paths.ts +0 -12
- package/src/src/transforms/shared/package-specifier.ts +0 -29
- package/src/src/transforms/shared/vendor-export-name.ts +0 -7
- package/src/src/transforms/veryfront-module-urls.ts +0 -131
- package/src/src/types/app.ts +0 -6
- package/src/src/types/branded.ts +0 -28
- package/src/src/types/bundler.ts +0 -51
- package/src/src/types/entities/getEntityInfo.ts +0 -448
- package/src/src/types/entities.ts +0 -99
- package/src/src/types/global-guards.ts +0 -21
- package/src/src/types/hmr.ts +0 -20
- package/src/src/types/index.ts +0 -207
- package/src/src/types/rsc.ts +0 -40
- package/src/src/types/server.ts +0 -153
- package/src/src/utils/base64url.ts +0 -15
- package/src/src/utils/box.ts +0 -300
- package/src/src/utils/bundle-manifest-init.ts +0 -119
- package/src/src/utils/bundle-manifest-kv.ts +0 -58
- package/src/src/utils/bundle-manifest-redis.ts +0 -55
- package/src/src/utils/bundle-manifest.ts +0 -161
- package/src/src/utils/cache/eviction/eviction-manager.ts +0 -168
- package/src/src/utils/cache/keys/namespace.ts +0 -25
- package/src/src/utils/cache/stores/memory/entry-manager.ts +0 -98
- package/src/src/utils/cache/stores/memory/lru-cache-adapter.ts +0 -220
- package/src/src/utils/cache/stores/memory/lru-list-manager.ts +0 -58
- package/src/src/utils/cache/stores/memory/lru-node.ts +0 -20
- package/src/src/utils/cache/stores/memory/types.ts +0 -32
- package/src/src/utils/cache-dir.ts +0 -80
- package/src/src/utils/cache-file-ops.ts +0 -110
- package/src/src/utils/cache-namespace.ts +0 -42
- package/src/src/utils/case-utils.ts +0 -10
- package/src/src/utils/circuit-breaker.ts +0 -216
- package/src/src/utils/clsx.ts +0 -38
- package/src/src/utils/constants/buffers.ts +0 -30
- package/src/src/utils/constants/build.ts +0 -6
- package/src/src/utils/constants/cache.ts +0 -208
- package/src/src/utils/constants/cdn.ts +0 -88
- package/src/src/utils/constants/crypto.ts +0 -12
- package/src/src/utils/constants/env.ts +0 -26
- package/src/src/utils/constants/hash.ts +0 -2
- package/src/src/utils/constants/hmr.ts +0 -24
- package/src/src/utils/constants/html.ts +0 -7
- package/src/src/utils/constants/http.ts +0 -66
- package/src/src/utils/constants/index.ts +0 -305
- package/src/src/utils/constants/limits.ts +0 -31
- package/src/src/utils/constants/metrics.ts +0 -39
- package/src/src/utils/constants/network.ts +0 -31
- package/src/src/utils/constants/priorities.ts +0 -31
- package/src/src/utils/constants/retry.ts +0 -16
- package/src/src/utils/constants/security.ts +0 -14
- package/src/src/utils/constants/server.ts +0 -137
- package/src/src/utils/cookie-utils.ts +0 -25
- package/src/src/utils/env-loader.ts +0 -170
- package/src/src/utils/feature-flags.ts +0 -10
- package/src/src/utils/file-discovery.ts +0 -250
- package/src/src/utils/hash-utils.ts +0 -56
- package/src/src/utils/html-escape.ts +0 -8
- package/src/src/utils/id.ts +0 -36
- package/src/src/utils/import-lockfile.ts +0 -274
- package/src/src/utils/import-map.ts +0 -53
- package/src/src/utils/index.ts +0 -129
- package/src/src/utils/logger/components.ts +0 -93
- package/src/src/utils/logger/core.ts +0 -165
- package/src/src/utils/logger/index.ts +0 -56
- package/src/src/utils/logger/logger.ts +0 -612
- package/src/src/utils/logger/request-context.ts +0 -47
- package/src/src/utils/lru-wrapper.ts +0 -114
- package/src/src/utils/memoize.ts +0 -100
- package/src/src/utils/memory/index.ts +0 -23
- package/src/src/utils/memory/profiler.ts +0 -250
- package/src/src/utils/mime-types.ts +0 -153
- package/src/src/utils/parallel.ts +0 -153
- package/src/src/utils/path-utils.ts +0 -151
- package/src/src/utils/perf-timer.ts +0 -140
- package/src/src/utils/platform.ts +0 -21
- package/src/src/utils/redis-client.ts +0 -133
- package/src/src/utils/request-id.ts +0 -18
- package/src/src/utils/route-path-utils.ts +0 -210
- package/src/src/utils/runtime-guards.ts +0 -42
- package/src/src/utils/semaphore.ts +0 -107
- package/src/src/utils/singleflight.ts +0 -25
- package/src/src/utils/version-constant.ts +0 -3
- package/src/src/utils/version.ts +0 -51
- package/src/src/workflow/api/index.ts +0 -8
- package/src/src/workflow/api/workflow-client.ts +0 -181
- package/src/src/workflow/api.ts +0 -195
- package/src/src/workflow/backends/memory.ts +0 -451
- package/src/src/workflow/backends/redis/index.ts +0 -657
- package/src/src/workflow/backends/redis/types.ts +0 -57
- package/src/src/workflow/backends/redis.ts +0 -10
- package/src/src/workflow/backends/shared/requeue-run.ts +0 -18
- package/src/src/workflow/backends/types.ts +0 -142
- package/src/src/workflow/blob/types.ts +0 -36
- package/src/src/workflow/blob/veryfront-cloud-storage.ts +0 -534
- package/src/src/workflow/claude-code/agent.ts +0 -264
- package/src/src/workflow/claude-code/event-publisher.ts +0 -340
- package/src/src/workflow/claude-code/index.ts +0 -113
- package/src/src/workflow/claude-code/react/index.ts +0 -23
- package/src/src/workflow/claude-code/react/use-claude-code-stream.ts +0 -377
- package/src/src/workflow/claude-code/react/use-claude-code-websocket.ts +0 -534
- package/src/src/workflow/claude-code/tool.ts +0 -209
- package/src/src/workflow/claude-code/types.ts +0 -425
- package/src/src/workflow/claude-code/websocket-publisher.ts +0 -501
- package/src/src/workflow/claude-code/workspace-sync.ts +0 -647
- package/src/src/workflow/discovery/index.ts +0 -16
- package/src/src/workflow/discovery/workflow-discovery.ts +0 -238
- package/src/src/workflow/dsl/branch.ts +0 -74
- package/src/src/workflow/dsl/index.ts +0 -29
- package/src/src/workflow/dsl/loop.ts +0 -129
- package/src/src/workflow/dsl/map.ts +0 -46
- package/src/src/workflow/dsl/parallel.ts +0 -56
- package/src/src/workflow/dsl/step.ts +0 -67
- package/src/src/workflow/dsl/sub-workflow.ts +0 -39
- package/src/src/workflow/dsl/validation.ts +0 -8
- package/src/src/workflow/dsl/wait.ts +0 -77
- package/src/src/workflow/dsl/workflow.ts +0 -122
- package/src/src/workflow/executor/checkpoint-manager.ts +0 -160
- package/src/src/workflow/executor/dag/graph.ts +0 -127
- package/src/src/workflow/executor/dag/index.ts +0 -684
- package/src/src/workflow/executor/dag/types.ts +0 -40
- package/src/src/workflow/executor/dag/utils.ts +0 -17
- package/src/src/workflow/executor/dag-executor.ts +0 -14
- package/src/src/workflow/executor/step-executor.ts +0 -339
- package/src/src/workflow/executor/workflow-executor.ts +0 -635
- package/src/src/workflow/index.ts +0 -148
- package/src/src/workflow/react/index.ts +0 -17
- package/src/src/workflow/react/use-approval.ts +0 -150
- package/src/src/workflow/react/use-workflow-list.ts +0 -181
- package/src/src/workflow/react/use-workflow-start.ts +0 -75
- package/src/src/workflow/react/use-workflow.ts +0 -205
- package/src/src/workflow/registry.ts +0 -311
- package/src/src/workflow/runtime/approval-manager.ts +0 -325
- package/src/src/workflow/schemas/index.ts +0 -57
- package/src/src/workflow/schemas/workflow.schema.ts +0 -262
- package/src/src/workflow/types.ts +0 -359
- package/src/src/workflow/worker/dynamic-job-entrypoint.ts +0 -254
- package/src/src/workflow/worker/executors/index.ts +0 -17
- package/src/src/workflow/worker/executors/k8s.ts +0 -337
- package/src/src/workflow/worker/executors/process.ts +0 -332
- package/src/src/workflow/worker/executors/types.ts +0 -149
- package/src/src/workflow/worker/index.ts +0 -78
- package/src/src/workflow/worker/job-entrypoint.ts +0 -215
- package/src/src/workflow/worker/job-manager.ts +0 -488
- package/src/src/workflow/worker/shared.ts +0 -127
- package/src/src/workflow/worker/workflow-worker.ts +0 -326
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RSC endpoint router and orchestrator
|
|
3
|
-
* @module rsc-endpoints/endpoint-router
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { HTTP_SERVER_ERROR, isRSCEnabled, serverLogger } from "../../../../utils/index.js";
|
|
7
|
-
import { metrics } from "../../../../observability/simple-metrics/index.js";
|
|
8
|
-
import { HttpStatus, jsonErrorResponse } from "../../../../platform/compat/http/responses.js";
|
|
9
|
-
import { isWithinDirectory, joinPath, normalizePath } from "../../../../utils/path-utils.js";
|
|
10
|
-
import { escapeHtml } from "../../../../html/html-escape.js";
|
|
11
|
-
import type { RuntimeAdapter } from "../../../../platform/adapters/base.js";
|
|
12
|
-
import type { VeryfrontConfig } from "../../../../config/index.js";
|
|
13
|
-
import { bundleBrowserModule } from "../../../shared/browser-module-bundler.js";
|
|
14
|
-
import type { RSCDevServerHandler } from "../orchestrators/index.js";
|
|
15
|
-
import { handleActionRequest } from "./action-handler.js";
|
|
16
|
-
import { getRSCHandler } from "./handler-registry.js";
|
|
17
|
-
import { handleClientScript, handleDomScript } from "./script-handlers.js";
|
|
18
|
-
import type { RSCEndpointParams } from "./types.js";
|
|
19
|
-
|
|
20
|
-
const rscEndpointRouterLog = serverLogger.component("rsc-endpoint-router");
|
|
21
|
-
const rscLog = serverLogger.component("rsc");
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Handle RSC endpoints
|
|
25
|
-
* @param params - RSC endpoint parameters
|
|
26
|
-
* @returns Response or null if not an RSC endpoint
|
|
27
|
-
*/
|
|
28
|
-
export async function handleRSCEndpoint(
|
|
29
|
-
{ req, pathname, projectDir, projectId, adapter, config, nonce }: RSCEndpointParams,
|
|
30
|
-
): Promise<Response | null> {
|
|
31
|
-
if (!pathname.startsWith("/_veryfront/rsc/")) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const sub = pathname.replace("/_veryfront/rsc/", "");
|
|
36
|
-
|
|
37
|
-
// Always serve client.js and dom.js regardless of RSC being enabled
|
|
38
|
-
// These are needed for basic hydration even without full RSC
|
|
39
|
-
if (sub === "client.js") {
|
|
40
|
-
return handleClientScript(adapter);
|
|
41
|
-
}
|
|
42
|
-
if (sub === "dom.js") {
|
|
43
|
-
return handleDomScript(adapter);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Always return 410 Gone for deprecated flight_page endpoint
|
|
47
|
-
// regardless of RSC being enabled
|
|
48
|
-
if (sub === "flight_page") {
|
|
49
|
-
return new Response("Flight endpoint removed. Use custom RSC endpoints.", { status: 410 });
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (!isRSCEnabled(config)) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const url = new URL(req.url);
|
|
57
|
-
const handler = getRSCHandler(projectDir, projectId);
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
if (sub.startsWith("render/")) {
|
|
61
|
-
return handler.handleRender(sub.replace("render/", ""), url.searchParams, req);
|
|
62
|
-
}
|
|
63
|
-
if (sub === "render") {
|
|
64
|
-
return handler.handleRender("/", url.searchParams, req);
|
|
65
|
-
}
|
|
66
|
-
if (sub.startsWith("page/")) {
|
|
67
|
-
metrics.recordRSC("page");
|
|
68
|
-
return handler.handlePage(sub.replace("page/", ""), url.searchParams, nonce);
|
|
69
|
-
}
|
|
70
|
-
if (sub.startsWith("stream/")) {
|
|
71
|
-
metrics.recordRSC("stream");
|
|
72
|
-
return handler.handleStream(sub.replace("stream/", ""), url.searchParams);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
if (sub === "probe") {
|
|
76
|
-
return new Response(JSON.stringify({ ok: true, rsc: true }), {
|
|
77
|
-
status: 200,
|
|
78
|
-
headers: { "content-type": "application/json" },
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
if (sub === "action") {
|
|
83
|
-
if (req.method !== "POST") {
|
|
84
|
-
return new Response("Method Not Allowed", { status: 405 });
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
metrics.recordRSC("action");
|
|
88
|
-
try {
|
|
89
|
-
return await handleActionRequest({ req, projectDir, adapter });
|
|
90
|
-
} catch (e) {
|
|
91
|
-
metrics.recordRSC("error");
|
|
92
|
-
return jsonErrorResponse(
|
|
93
|
-
HttpStatus.INTERNAL_SERVER_ERROR,
|
|
94
|
-
e instanceof Error ? e.message : String(e),
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (sub === "manifest") {
|
|
100
|
-
metrics.recordRSC("manifest");
|
|
101
|
-
return handler.handleManifest();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (sub === "payload") {
|
|
105
|
-
metrics.recordRSC("page");
|
|
106
|
-
return handlePayloadEndpoint({ handler, searchParams: url.searchParams });
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (sub === "module") {
|
|
110
|
-
return await handleModuleEndpoint({
|
|
111
|
-
searchParams: url.searchParams,
|
|
112
|
-
projectDir,
|
|
113
|
-
adapter,
|
|
114
|
-
config,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (sub === "page") {
|
|
119
|
-
metrics.recordRSC("page");
|
|
120
|
-
return handler.handlePage("/", url.searchParams, nonce);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (sub === "stream") {
|
|
124
|
-
metrics.recordRSC("stream");
|
|
125
|
-
return handleStreamEndpoint(url.searchParams);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
return null;
|
|
129
|
-
} catch (e) {
|
|
130
|
-
if (e instanceof Error && e.message === "Component not found") {
|
|
131
|
-
serverLogger.debug(
|
|
132
|
-
"[RSCEndpointRouter] component not found, deferring to legacy handler",
|
|
133
|
-
{ error: e.message },
|
|
134
|
-
);
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
try {
|
|
139
|
-
metrics.recordRSC("error");
|
|
140
|
-
} catch (metricsError) {
|
|
141
|
-
rscEndpointRouterLog.debug("Failed to record metrics", metricsError);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
rscLog.debug("[dev] endpoint failed", e);
|
|
145
|
-
return new Response("Internal Error", { status: HTTP_SERVER_ERROR });
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
async function handleModuleEndpoint({
|
|
150
|
-
searchParams,
|
|
151
|
-
projectDir,
|
|
152
|
-
adapter,
|
|
153
|
-
config,
|
|
154
|
-
}: {
|
|
155
|
-
searchParams: URLSearchParams;
|
|
156
|
-
projectDir: string;
|
|
157
|
-
adapter: RuntimeAdapter;
|
|
158
|
-
config?: VeryfrontConfig;
|
|
159
|
-
}): Promise<Response> {
|
|
160
|
-
const relParam = searchParams.get("rel");
|
|
161
|
-
if (!relParam) {
|
|
162
|
-
return new Response("Missing rel query parameter", {
|
|
163
|
-
status: HttpStatus.BAD_REQUEST,
|
|
164
|
-
headers: { "content-type": "text/plain" },
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
const normalizedRel = relParam.replace(/\\+/g, "/");
|
|
169
|
-
const relSegments = normalizedRel.split("/").filter(Boolean);
|
|
170
|
-
if (relSegments.includes("..")) {
|
|
171
|
-
return new Response("Invalid rel query parameter", {
|
|
172
|
-
status: HttpStatus.BAD_REQUEST,
|
|
173
|
-
headers: { "content-type": "text/plain" },
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
const rel = normalizedRel.startsWith("/") ? normalizedRel : `/${normalizedRel}`;
|
|
178
|
-
const modulePath = await resolveModuleEndpointPath(rel, projectDir, adapter);
|
|
179
|
-
if (!modulePath) {
|
|
180
|
-
return new Response("Not Found", { status: 404 });
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
try {
|
|
184
|
-
const source = await bundleBrowserModule(modulePath, {
|
|
185
|
-
adapter,
|
|
186
|
-
projectDir,
|
|
187
|
-
config,
|
|
188
|
-
});
|
|
189
|
-
return new Response(source, {
|
|
190
|
-
status: 200,
|
|
191
|
-
headers: {
|
|
192
|
-
"content-type": "application/javascript; charset=utf-8",
|
|
193
|
-
"cache-control": "public, max-age=0",
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
} catch (error) {
|
|
197
|
-
rscEndpointRouterLog.debug("module lookup failed", { modulePath, error });
|
|
198
|
-
return new Response("Internal Error", { status: HTTP_SERVER_ERROR });
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
async function resolveModuleEndpointPath(
|
|
203
|
-
rel: string,
|
|
204
|
-
projectDir: string,
|
|
205
|
-
adapter: RuntimeAdapter,
|
|
206
|
-
): Promise<string | null> {
|
|
207
|
-
const candidateRoots = [
|
|
208
|
-
joinPath(projectDir, "app"),
|
|
209
|
-
joinPath(projectDir, "components"),
|
|
210
|
-
joinPath(projectDir, "src"),
|
|
211
|
-
projectDir,
|
|
212
|
-
];
|
|
213
|
-
|
|
214
|
-
for (const root of candidateRoots) {
|
|
215
|
-
const modulePath = normalizePath(joinPath(root, rel));
|
|
216
|
-
if (!isWithinDirectory(root, modulePath)) {
|
|
217
|
-
continue;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
try {
|
|
221
|
-
if (!(await adapter.fs.exists(modulePath))) {
|
|
222
|
-
continue;
|
|
223
|
-
}
|
|
224
|
-
} catch (error) {
|
|
225
|
-
rscEndpointRouterLog.debug("module lookup failed", { modulePath, error });
|
|
226
|
-
throw error;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return modulePath;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
return null;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/** Extract name parameter with fallback to "World" */
|
|
236
|
-
function getNameParam(searchParams: URLSearchParams): string {
|
|
237
|
-
return searchParams.get("name")?.trim() || "World";
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
async function handlePayloadEndpoint({
|
|
241
|
-
handler,
|
|
242
|
-
searchParams,
|
|
243
|
-
}: {
|
|
244
|
-
handler: RSCDevServerHandler;
|
|
245
|
-
searchParams: URLSearchParams;
|
|
246
|
-
}): Promise<Response> {
|
|
247
|
-
let modules: string[] = [];
|
|
248
|
-
|
|
249
|
-
try {
|
|
250
|
-
const manifestResponse = await handler.handleManifest();
|
|
251
|
-
if (manifestResponse.ok) {
|
|
252
|
-
const manifestData = await manifestResponse.json();
|
|
253
|
-
const componentPaths = manifestData?.components;
|
|
254
|
-
|
|
255
|
-
if (componentPaths && typeof componentPaths === "object") {
|
|
256
|
-
modules = Object.values(componentPaths).filter(
|
|
257
|
-
(value): value is string => typeof value === "string" && value.length > 0,
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
} catch (error) {
|
|
262
|
-
rscEndpointRouterLog.debug("failed to read manifest for payload", error);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
if (modules.length === 0) {
|
|
266
|
-
modules = ["__veryfront_rsc_root__"];
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const name = getNameParam(searchParams);
|
|
270
|
-
const rootHtml = `<div data-slot="root">Hello ${escapeHtml(name)}</div>`;
|
|
271
|
-
|
|
272
|
-
return new Response(
|
|
273
|
-
JSON.stringify({
|
|
274
|
-
html: rootHtml,
|
|
275
|
-
modules,
|
|
276
|
-
slots: { root: rootHtml },
|
|
277
|
-
}),
|
|
278
|
-
{
|
|
279
|
-
status: 200,
|
|
280
|
-
headers: {
|
|
281
|
-
"content-type": "application/json",
|
|
282
|
-
"cache-control": "no-cache",
|
|
283
|
-
},
|
|
284
|
-
},
|
|
285
|
-
);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
function handleStreamEndpoint(searchParams: URLSearchParams): Response {
|
|
289
|
-
const escapedName = escapeHtml(getNameParam(searchParams));
|
|
290
|
-
const includeBadLine = searchParams.has("bad");
|
|
291
|
-
|
|
292
|
-
const lines = [
|
|
293
|
-
JSON.stringify({ type: "slot", id: "root", html: `<div>Loading ${escapedName}…</div>` }),
|
|
294
|
-
JSON.stringify({
|
|
295
|
-
type: "slot",
|
|
296
|
-
id: "sidebar",
|
|
297
|
-
html: `<aside data-state="loading">Sidebar loading…</aside>`,
|
|
298
|
-
}),
|
|
299
|
-
...(includeBadLine ? ["{malformed json}"] : []),
|
|
300
|
-
JSON.stringify({ type: "slot", id: "root", html: `<div>Hello ${escapedName}</div>` }),
|
|
301
|
-
JSON.stringify({
|
|
302
|
-
type: "slot",
|
|
303
|
-
id: "sidebar",
|
|
304
|
-
html: `<aside><ul><li>${escapedName} ready</li></ul></aside>`,
|
|
305
|
-
}),
|
|
306
|
-
];
|
|
307
|
-
|
|
308
|
-
return new Response(`${lines.join("\n")}\n`, {
|
|
309
|
-
status: 200,
|
|
310
|
-
headers: {
|
|
311
|
-
"content-type": "application/x-ndjson",
|
|
312
|
-
"cache-control": "no-cache",
|
|
313
|
-
},
|
|
314
|
-
});
|
|
315
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RSC handler registry for managing per-project handlers
|
|
3
|
-
*
|
|
4
|
-
* Supports optional cache injection for testing.
|
|
5
|
-
*
|
|
6
|
-
* @module rsc-endpoints/handler-registry
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { RSCDevServerHandler } from "../orchestrators/index.js";
|
|
10
|
-
import { LRUCache } from "../../../../utils/lru-wrapper.js";
|
|
11
|
-
import { registerCache } from "../../../../utils/memory/index.js";
|
|
12
|
-
|
|
13
|
-
const RSC_HANDLERS_MAX_ENTRIES = 50;
|
|
14
|
-
const RSC_HANDLERS_TTL_MS = 60 * 60 * 1000; // 1 hour
|
|
15
|
-
const RSC_HANDLERS_CLEANUP_INTERVAL_MS = 300_000; // 5 minutes
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Handler cache interface for dependency injection.
|
|
19
|
-
* Simplified interface that matches LRUCache's essential methods.
|
|
20
|
-
*/
|
|
21
|
-
export interface HandlerCache<T> {
|
|
22
|
-
get(key: string): T | undefined;
|
|
23
|
-
set(key: string, value: T): void;
|
|
24
|
-
clear(): void;
|
|
25
|
-
readonly size: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
let rscHandlersByProject: LRUCache<string, RSCDevServerHandler> | null = null;
|
|
29
|
-
let cacheRegistered = false;
|
|
30
|
-
|
|
31
|
-
/** Injected cache for testing (overrides default LRUCache) */
|
|
32
|
-
let injectedCache: HandlerCache<RSCDevServerHandler> | null = null;
|
|
33
|
-
|
|
34
|
-
function getHandlersCache(): HandlerCache<RSCDevServerHandler> {
|
|
35
|
-
if (injectedCache) return injectedCache;
|
|
36
|
-
if (rscHandlersByProject) return rscHandlersByProject;
|
|
37
|
-
|
|
38
|
-
rscHandlersByProject = new LRUCache<string, RSCDevServerHandler>({
|
|
39
|
-
maxEntries: RSC_HANDLERS_MAX_ENTRIES,
|
|
40
|
-
ttlMs: RSC_HANDLERS_TTL_MS,
|
|
41
|
-
cleanupIntervalMs: RSC_HANDLERS_CLEANUP_INTERVAL_MS,
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
if (!cacheRegistered) {
|
|
45
|
-
registerCache("rsc-handlers", () => ({
|
|
46
|
-
name: "rsc-handlers",
|
|
47
|
-
entries: rscHandlersByProject?.size ?? 0,
|
|
48
|
-
maxEntries: RSC_HANDLERS_MAX_ENTRIES,
|
|
49
|
-
}));
|
|
50
|
-
cacheRegistered = true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return rscHandlersByProject;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function getRSCHandler(
|
|
57
|
-
projectDir: string,
|
|
58
|
-
projectId?: string,
|
|
59
|
-
): RSCDevServerHandler {
|
|
60
|
-
const cacheKey = projectId ?? projectDir;
|
|
61
|
-
const cache = getHandlersCache();
|
|
62
|
-
const existing = cache.get(cacheKey);
|
|
63
|
-
if (existing) return existing;
|
|
64
|
-
|
|
65
|
-
const handler = new RSCDevServerHandler(projectDir);
|
|
66
|
-
cache.set(cacheKey, handler);
|
|
67
|
-
return handler;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function __injectCacheForTests(
|
|
71
|
-
cache: HandlerCache<RSCDevServerHandler> | null,
|
|
72
|
-
): void {
|
|
73
|
-
injectedCache = cache;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function __resetRSCHandlerForTests(): void {
|
|
77
|
-
const cache = injectedCache ?? rscHandlersByProject;
|
|
78
|
-
cache?.clear();
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function __destroyRSCHandlerForTests(): void {
|
|
82
|
-
injectedCache = null;
|
|
83
|
-
rscHandlersByProject?.destroy();
|
|
84
|
-
rscHandlersByProject = null;
|
|
85
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Rsc - Endpoints
|
|
3
|
-
*
|
|
4
|
-
* @module server/services/rsc/endpoints
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export { parseActionBody } from "./action-parser.js";
|
|
8
|
-
export { handleActionRequest } from "./action-handler.js";
|
|
9
|
-
export { handleRSCEndpoint } from "./endpoint-router.js";
|
|
10
|
-
export { __resetRSCHandlerForTests, getRSCHandler } from "./handler-registry.js";
|
|
11
|
-
export { handleClientScript, handleDomScript } from "./script-handlers.js";
|
|
12
|
-
export type { ActionBody, ActionRequestParams, RSCEndpointParams } from "./types.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pre-bundled RSC client scripts for compiled binary
|
|
3
|
-
*
|
|
4
|
-
* AUTO-GENERATED by scripts/build/prebundle-rsc-scripts.ts
|
|
5
|
-
* Do not edit manually — run `deno task generate` to regenerate.
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export const CLIENT_BOOT_BUNDLE: string =
|
|
10
|
-
'var q=Object.defineProperty;var W=(t,e,r)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var p=(t,e,r)=>W(t,typeof e!="symbol"?e+"":e,r);var z="3.2.3";function X(t,e,r,n){let s=[];if(n?.external?.length&&s.push(`external=${n.external.join(",")}`),s.push(`target=${n?.target??"es2022"}`),n?.deps){let d=Object.entries(n.deps).map(([l,R])=>`${l}@${R}`).join(",");s.push(`deps=${d}`)}let u=e?`@${e}`:"",c=r??"",i=s.length?`?${s.join("&")}`:"";return`https://esm.sh/${t}${u}${c}${i}`}function f(t,e,r,n=!1){return X(t,e,r,{external:n?["react"]:void 0,deps:{csstype:z}})}var K="19.1.1",E=K;function U(t=E){return{react:f("react",t),"react-dom":f("react-dom",t,void 0,!0),"react-dom/client":f("react-dom",t,"/client",!0),"react-dom/server":f("react-dom",t,"/server",!0),"react/jsx-runtime":f("react",t,"/jsx-runtime",!0),"react/jsx-dev-runtime":f("react",t,"/jsx-dev-runtime",!0)}}function P(t=E){return U(t).react}function V(t=E){return U(t)["react-dom/client"]}function Z(t){return t.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")}function D(t){return Z(btoa(t))}var Pt=Object.freeze({react:"","react-dom":"","react-dom/client":"","react-dom/server":"","react/jsx-runtime":"","react/jsx-dev-runtime":""});function v(t,e){if(!e)return!1;if(Object.prototype.hasOwnProperty.call(e,t))return!0;for(let r of Object.keys(e))if(r.endsWith("/")&&t.startsWith(r))return!0;return!1}function Q(t){try{return JSON.parse(t)?.imports??{}}catch{return{}}}function F(t=document){let e=t.querySelector(\'script[type="importmap"]\');return e?.textContent?Q(e.textContent):{}}var a="/_veryfront",b={RSC:`${a}/rsc/`,FS:`${a}/fs/`,MODULES:`${a}/modules/`,PAGES:`${a}/pages/`,DATA:`${a}/data/`,LIB:`${a}/lib/`,CHUNKS:`${a}/chunks/`,CLIENT:`${a}/client/`},H={HMR_RUNTIME:`${a}/hmr-runtime.js`,HMR:`${a}/hmr.js`,ERROR_OVERLAY:`${a}/error-overlay.js`,DEV_LOADER:`${a}/dev-loader.js`,CLIENT_LOG:`${a}/log`,CLIENT_JS:`${a}/client.js`,ROUTER_JS:`${a}/router.js`,PREFETCH_JS:`${a}/prefetch.js`,MANIFEST_JSON:`${a}/manifest.json`,APP_JS:`${a}/app.js`,RSC_CLIENT:`${a}/rsc/client.js`,RSC_MANIFEST:`${a}/rsc/manifest`,RSC_STREAM:`${a}/rsc/stream`,RSC_PAYLOAD:`${a}/rsc/payload`,RSC_RENDER:`${a}/rsc/render`,RSC_PAGE:`${a}/rsc/page`,RSC_MODULE:`${a}/rsc/module`,RSC_DOM:`${a}/rsc/dom.js`,LIB_CHAT_REACT:`${a}/lib/chat/react.js`,LIB_CHAT_COMPONENTS:`${a}/lib/chat/components.js`,LIB_CHAT_PRIMITIVES:`${a}/lib/chat/primitives.js`};var et={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},kt=et.CACHE;var $t={HMR_RUNTIME:H.HMR_RUNTIME,ERROR_OVERLAY:H.ERROR_OVERLAY};var y=b.RSC,w=b.FS,k="veryfront-hydration-data",_="rsc-root";function x(t=document){try{let e=t.getElementById(k);return e?JSON.parse(e.textContent||"{}"):null}catch(e){return console.debug?.("[RSC] hydration data parse failed",e),null}}function S(t){return t?.clientModuleStrategy?t.clientModuleStrategy:t?.dev?"fs":"rsc-module"}function rt(t){return`${w}${D(t)}.js`}function ot(t,e){let r=e?`&v=${encodeURIComponent(e)}`:"";return`${y}module?rel=${encodeURIComponent(t)}${r}`}function I(t){if(t.strategy==="fs"){let e=t.absPath??t.rel;return e?rt(e):null}return ot(t.rel,t.version)}function T(t=document,e=E){let r=F(t);return{react:v("react",r)?"react":P(e),reactDomClient:v("react-dom/client",r)?"react-dom/client":V(e)}}function o(t){return{...t,create(e){return new M(e?.message||e?.detail||t.title,{slug:t.slug,category:t.category,status:e?.status??t.status,title:t.title,suggestion:t.suggestion,detail:e?.detail,cause:e?.cause,instance:e?.instance,context:e?.context})}}}var M=class extends Error{constructor(r,n){super(r);p(this,"slug");p(this,"category");p(this,"status");p(this,"title");p(this,"suggestion");p(this,"detail");p(this,"cause");p(this,"instance");p(this,"context");this.name="VeryfrontError",this.slug=n.slug,this.category=n.category,this.status=n.status,this.title=n.title,this.suggestion=n.suggestion,this.detail=n.detail,this.cause=n.cause,this.instance=n.instance,this.context=n.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var ie=o({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),ae=o({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),ce=o({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),le=o({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),ue=o({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),ge=o({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),de=o({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),pe=o({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),Re=o({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),fe=o({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),me=o({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),Ee=o({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),ye=o({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),_e=o({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),he=o({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),Ce=o({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),Oe=o({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),xe=o({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),Se=o({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),Ie=o({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),Te=o({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),Ae=o({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),Ne=o({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),De=o({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),ve=o({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),be=o({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),Me=o({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Le=o({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),Ue=o({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),Pe=o({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),Ve=o({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),Fe=o({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),He=o({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),we=o({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),ke=o({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),$e=o({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),Ge=o({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),Be=o({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),je=o({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),Ye=o({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),qe=o({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),We=o({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),ze=o({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),Xe=o({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),Je=o({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),Ke=o({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),Ze=o({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),Qe=o({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),tr=o({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),er=o({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),rr=o({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),or=o({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),nr=o({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),sr=o({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),ir=o({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),ar=o({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),cr=o({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),lr=o({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),ur=o({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),gr=o({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),dr=o({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),pr=o({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),Rr=o({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),fr=o({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),mr=o({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),Er=o({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),yr=o({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),_r=o({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),hr=o({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),Cr=o({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),Or=o({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),xr=o({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),Sr=o({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),Ir=o({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),Tr=o({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),Ar=o({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),Nr=o({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),$=o({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),Dr=o({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var nt=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function st(){let t=globalThis;return t.__VERYFRONT_DEV__===!0||t.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function h(t,e={}){let{strict:r=!1,warn:n=!0}=e;for(let{pattern:s,name:u}of nt)if(s.lastIndex=0,!!s.test(t)&&(n&&console.warn(`[Security] Suspicious ${u} detected in server HTML`),r||!st()))throw $.create({detail:`Potentially unsafe HTML: ${u} detected`});return t}var m=class{constructor(e,r){this.prefix=e;this.level=r}log(e,r,n,...s){this.level>e||r?.(n,...s)}debug(e,...r){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${e}`,...r)}info(e,...r){this.log(1,console.log,`[${this.prefix}] ${e}`,...r)}warn(e,...r){this.log(2,console.warn,`[${this.prefix}] WARN: ${e}`,...r)}error(e,...r){this.log(3,console.error,`[${this.prefix}] ERROR: ${e}`,...r)}};function it(){if(typeof window>"u")return 2;let t=globalThis;return t.__VERYFRONT_DEV__||t.__RSC_DEV__?t.__VERYFRONT_DEBUG__||t.__RSC_DEBUG__?0:1:2}var A=it(),g=new m("RSC",A),Pr=new m("PREFETCH",A),Vr=new m("HYDRATE",A),Fr=new m("VERYFRONT",A);function C(t,e){let r=e==="root"?_:`rsc-slot-${e}`,n=t.getElementById(r);if(n)return n;let s=t.createElement("div");return s.id=r,t.body.appendChild(s),s}function at(t,e){if(e.type!=="slot")return;let r=C(t,e.id);r.innerHTML=h(String(e.html??""))}function G(t,e){let r=e.split(`\n`),n=r.pop()??"";for(let s of r){let u=s.trim();if(!u)continue;let c;try{c=JSON.parse(u)}catch(d){g.debug("[client-dom] malformed NDJSON line",{line:u,error:d instanceof Error?d.message:String(d)});continue}if(!c||typeof c!="object")continue;let i=c;if(i.type==="slot"){at(t,i);try{ut(t,i.id||"root")}catch(d){g.debug("[client-dom] hydration optional failed",d)}}}return n}function ct(t){return new Promise((e,r)=>{let n=()=>r(new DOMException("aborted","AbortError"));if(t.aborted){n();return}t.addEventListener("abort",n,{once:!0})})}async function B(t,e=document,r){let n="body"in t?t:null,s=n?.body??t;if(!s)return;let u=s.getReader(),c=new TextDecoder,i="",d=!1;try{for(;;){if(r?.aborted)throw new DOMException("aborted","AbortError");let l=u.read(),{done:R,value:O}=r?await Promise.race([l,ct(r)]):await l;if(R){d=!0;break}i+=c.decode(O,{stream:!0}),i=G(e,i)}i&&G(e,`${i}\n`)}catch(l){throw l instanceof Error&&l.name==="AbortError"||g.debug("[client-dom] consumeNdjsonStream error",l),l}finally{try{await u.cancel()}catch(l){d||g.debug("[client-dom] reader.cancel failed",l)}try{u.releaseLock()}catch(l){g.debug("[client-dom] reader.releaseLock failed",l)}if(typeof s.cancel=="function")try{await s.cancel()}catch(l){g.debug("[client-dom] stream.cancel failed",l)}if(typeof n?.body?.cancel=="function")try{await n.body.cancel()}catch(l){g.debug("[client-dom] response.body.cancel failed",l)}}}function lt(t,e){let r=C(t,e),n=[],s=u=>{let c=u;c.dataset?.clientRef&&n.push(c);for(let i of u.children)s(i)};return s(r),n}function ut(t,e){let r=lt(t,e);for(let n of r){let s=n.dataset?.clientRef;s&&(n.dataset.hydrated="true",g.debug("[client-dom] marked for hydration",s))}}var gt=100;function dt(t,e){if(globalThis.__VF_CLIENT_MOD_CACHE??(globalThis.__VF_CLIENT_MOD_CACHE=new Map),globalThis.__VF_CLIENT_MOD_CACHE.size>=gt){let r=globalThis.__VF_CLIENT_MOD_CACHE.keys().next().value;r&&globalThis.__VF_CLIENT_MOD_CACHE.delete(r)}globalThis.__VF_CLIENT_MOD_CACHE.set(t,e)}function pt(t){let e=t.match(/^\\/app\\/(.+)#([A-Za-z0-9_]+)$/);return e?{rel:`/${e[1]||""}`,exportName:e[2]||"default"}:null}async function Rt(){try{let t=await fetch("/_veryfront/rsc/manifest");return t.ok?await t.json():null}catch{return null}}async function ft(t,e,r){let n=t.graphIds?.client.find(c=>c.rel===e)?.path,s=`${e}#${t.hash??""}`;try{let c=globalThis.__VF_CLIENT_MOD_CACHE?.get(s);if(c)return c}catch(c){g.debug("hydrate: cache get failed",c)}let u=I({strategy:r,rel:e,absPath:n,version:t.hash});if(!u)return null;try{let c=await import(u);try{dt(s,c)}catch(i){g.debug("hydrate: cache set failed",i)}return c}catch(c){return g.debug("hydrate: failed to import module",{moduleUrl:u,error:c}),null}}async function j(t=document){let e=null;try{e=await Rt()}catch(i){g.debug("hydrate: fetch manifest failed",i)}if(!e){g.debug("hydrate: no manifest");return}let r=Array.from(t.querySelectorAll("[data-client-ref]"));try{let i=globalThis.__VF_MANIFEST_HASH;if(!r.some(l=>l.dataset?.hydrated!=="true")&&i&&e.hash&&i===e.hash)return}catch(i){g.debug("hydrate: hmr hash read failed",i)}if(r.length===0){try{globalThis.__VF_MANIFEST_HASH=e.hash??""}catch(i){g.debug("hydrate: set hash failed",i)}return}let n=S(x(t));try{if(globalThis.__VF_TEST_MODE__){globalThis.__VF_HYDRATE_CALLED=!0,globalThis.__VF_MANIFEST_HASH=e.hash??"";return}}catch(i){g.debug("hydrate: test mode flags failed",i)}let s=T(t),[{default:u},{createRoot:c}]=await Promise.all([import(s.react),import(s.reactDomClient)]);for(let i of r){let d=i.dataset?.clientRef??"";if(!d||i.dataset?.hydrated==="true")continue;let l=pt(d);if(!l)continue;let R=await ft(e,l.rel,n);if(!R)continue;let O=R[l.exportName]??R.default;if(typeof O=="function")try{c(i).render(u.createElement(O,{})),i.dataset.hydrated="true"}catch(L){g.warn("hydrate: render failed",L)}}try{globalThis.__VF_MANIFEST_HASH=e.hash??""}catch(i){g.debug("hydrate: set hash failed (post)",i)}}async function mt(){let t=T(document),[e,r]=await Promise.all([import(t.react),import(t.reactDomClient)]);return{React:e,ReactDOM:r}}var Et=new Set(["SCRIPT","STYLE","NOSCRIPT","TEMPLATE"]);function Y(t){let e=t.getAttribute("style")??"";return t.hasAttribute("data-veryfront-head")||t.hasAttribute("hidden")||/(?:^|;)\\s*display\\s*:\\s*none(?:\\s*;|$)/i.test(e)||Et.has(t.tagName.toUpperCase())}function yt(t,e){return t.find(r=>r.tagName.toUpperCase()==="DIV"&&!!r.getAttribute("class")?.trim()&&!Y(r))??t.find(r=>!Y(r))??e}function _t(t,e){return e?.pagePath?!1:!!t.getElementById(_)}function ht(t=import.meta.url){try{return new URL(t,"http://veryfront.local").searchParams.get("hydrate")==="1"}catch{return!1}}async function Ct(t){try{let e=await fetch(y+"stream"+t);if(!e.ok||!e.body)return!1;let r=new AbortController;return addEventListener("pagehide",()=>r.abort(),{once:!0}),await B(e,document,r.signal),!0}catch(e){return console.debug?.("[RSC] tryStream failed",e),!1}}async function N(){try{await j(document)}catch(t){console.debug?.("[RSC] hydration failed",t)}}async function Ot(t,e){try{let{React:r,ReactDOM:n}=await mt(),s=I({strategy:e,rel:t});if(!s)return!1;console.debug?.("[RSC] Loading component from:",s);let c=(await import(s)).default;if(typeof c!="function")return console.debug?.("[RSC] Page component is not a function"),!1;let i=yt(Array.from(document.body.children),document.body);return n.hydrateRoot(i,r.createElement(c,{}),{identifierPrefix:"vf",onRecoverableError:()=>{}}),console.debug?.("[RSC] Page component hydrated successfully"),!0}catch(r){return console.error("[RSC] Page hydration failed",r),!1}}async function xt(t){try{let e=await fetch(y+"payload"+t);if(!e.ok)return!1;let r=await e.json();if(r?.slots){for(let[n,s]of Object.entries(r.slots))C(document,n).innerHTML=h(String(s||""));return!0}return C(document,_).innerHTML=h(String(r?.html||"")),!0}catch(e){return console.debug?.("[RSC] payload fetch failed",e),!1}}async function St(){try{let t=globalThis.window?.location.search??"",e=x(document);if(ht()){await N();return}let r=e?.pagePath,n=S(e);if(r){console.debug?.("[RSC] Found page component in hydration data:",r),await Ot(r,n)&&console.debug?.("[RSC] Client component hydrated successfully");return}if(!_t(document,e))return;if(await Ct(t)){await N();return}if(await xt(t)){await N();return}await N()}catch(t){console.error("[RSC] boot failed",t)}}if(typeof document<"u"){let t=()=>{St()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t,{once:!0}):t()}export{St as boot,yt as selectHydrationRoot,_t as shouldAttemptRSCTransport,ht as shouldHydrateOnly};\n';
|
|
11
|
-
|
|
12
|
-
export const CLIENT_DOM_BUNDLE: string =
|
|
13
|
-
'var N=Object.defineProperty;var A=(r,t,o)=>t in r?N(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;var l=(r,t,o)=>A(r,typeof t!="symbol"?t+"":t,o);function e(r){return{...r,create(t){return new f(t?.message||t?.detail||r.title,{slug:r.slug,category:r.category,status:t?.status??r.status,title:r.title,suggestion:r.suggestion,detail:t?.detail,cause:t?.cause,instance:t?.instance,context:t?.context})}}}var f=class extends Error{constructor(o,s){super(o);l(this,"slug");l(this,"category");l(this,"status");l(this,"title");l(this,"suggestion");l(this,"detail");l(this,"cause");l(this,"instance");l(this,"context");this.name="VeryfrontError",this.slug=s.slug,this.category=s.category,this.status=s.status,this.title=s.title,this.suggestion=s.suggestion,this.detail=s.detail,this.cause=s.cause,this.instance=s.instance,this.context=s.context}toRFC9457(){return{type:`https://veryfront.com/docs/errors/${this.slug}`,title:this.title,status:this.status,detail:this.detail,instance:this.instance,category:this.category,suggestion:this.suggestion,cause:typeof this.cause=="string"?this.cause:void 0}}getDocsUrl(){return`https://veryfront.com/docs/errors/${this.slug}`}};var z=e({slug:"config-not-found",category:"CONFIG",status:404,title:"Configuration file not found",suggestion:"Run \'vf init\' to create a configuration file"}),W=e({slug:"config-invalid",category:"CONFIG",status:400,title:"Invalid configuration format",suggestion:"Check your veryfront.config.ts for syntax errors"}),X=e({slug:"config-parse-error",category:"CONFIG",status:400,title:"Failed to parse configuration",suggestion:"Ensure your configuration file is valid TypeScript/JSON"}),J=e({slug:"config-validation-error",category:"CONFIG",status:422,title:"Configuration validation failed",suggestion:"Check the configuration against the schema requirements"}),K=e({slug:"config-type-error",category:"CONFIG",status:400,title:"Configuration type mismatch",suggestion:"Ensure configuration values match expected types"}),Z=e({slug:"import-map-invalid",category:"CONFIG",status:400,title:"Invalid import map configuration",suggestion:"Check your import map syntax and paths"}),Q=e({slug:"cors-config-invalid",category:"CONFIG",status:400,title:"Invalid CORS configuration",suggestion:"Review CORS settings in your configuration"}),ee=e({slug:"config-validation-failed",category:"CONFIG",status:400,title:"Configuration validation failed",suggestion:"Check configuration values against requirements"}),te=e({slug:"build-failed",category:"BUILD",status:500,title:"Build process failed",suggestion:"Check the build output for specific errors"}),re=e({slug:"bundle-error",category:"BUILD",status:500,title:"Bundle generation failed",suggestion:"Review bundler output for details"}),oe=e({slug:"typescript-error",category:"BUILD",status:500,title:"TypeScript compilation error",suggestion:"Fix TypeScript errors shown in the output"}),se=e({slug:"mdx-compile-error",category:"BUILD",status:500,title:"MDX compilation failed",suggestion:"Check your MDX file syntax"}),ne=e({slug:"asset-optimization-error",category:"BUILD",status:500,title:"Asset optimization failed",suggestion:"Check asset file formats and paths"}),ie=e({slug:"ssg-generation-error",category:"BUILD",status:500,title:"Static site generation failed",suggestion:"Review SSG configuration and data fetching"}),ae=e({slug:"sourcemap-error",category:"BUILD",status:500,title:"Source map generation failed",suggestion:"Check source map configuration"}),ce=e({slug:"compilation-error",category:"BUILD",status:500,title:"Compilation failed",suggestion:"Review compiler output for specific errors"}),ue=e({slug:"hydration-mismatch",category:"RUNTIME",status:500,title:"Client/server hydration mismatch",suggestion:"Ensure server and client render the same content"}),le=e({slug:"render-error",category:"RUNTIME",status:500,title:"Component render failed",suggestion:"Check component for runtime errors"}),ge=e({slug:"component-error",category:"RUNTIME",status:500,title:"Component execution error",suggestion:"Review component logic and props"}),de=e({slug:"layout-not-found",category:"RUNTIME",status:404,title:"Layout component not found",suggestion:"Ensure layout file exists at the expected path"}),pe=e({slug:"page-not-found",category:"RUNTIME",status:404,title:"Page component not found",suggestion:"Check that the page file exists in the routes directory"}),Ee=e({slug:"api-error",category:"RUNTIME",status:500,title:"API route handler error",suggestion:"Review API route handler for errors"}),Re=e({slug:"middleware-error",category:"RUNTIME",status:500,title:"Middleware execution error",suggestion:"Check middleware function for errors"}),fe=e({slug:"route-conflict",category:"ROUTE",status:409,title:"Conflicting route definitions",suggestion:"Rename or reorganize conflicting route files"}),me=e({slug:"invalid-route-file",category:"ROUTE",status:400,title:"Invalid route file structure",suggestion:"Ensure route file exports required functions"}),ye=e({slug:"route-handler-invalid",category:"ROUTE",status:400,title:"Invalid route handler export",suggestion:"Export a valid handler function from the route file"}),_e=e({slug:"dynamic-route-error",category:"ROUTE",status:500,title:"Dynamic route parsing failed",suggestion:"Check dynamic route segment syntax"}),Oe=e({slug:"route-params-error",category:"ROUTE",status:400,title:"Route parameters invalid",suggestion:"Validate route parameter values"}),he=e({slug:"api-route-error",category:"ROUTE",status:500,title:"API route definition error",suggestion:"Review API route configuration"}),Te=e({slug:"module-not-found",category:"MODULE",status:404,title:"Module could not be resolved",suggestion:"Check the import path and ensure the module is installed"}),Ie=e({slug:"import-resolution-error",category:"MODULE",status:500,title:"Import path resolution failed",suggestion:"Verify import paths and module configuration"}),ve=e({slug:"circular-dependency",category:"MODULE",status:500,title:"Circular dependency detected",suggestion:"Refactor imports to break the circular dependency"}),xe=e({slug:"invalid-import",category:"MODULE",status:400,title:"Invalid import statement",suggestion:"Fix import syntax or path"}),Ne=e({slug:"dependency-missing",category:"MODULE",status:404,title:"Required dependency not installed",suggestion:"Install the missing dependency with your package manager"}),Ae=e({slug:"version-mismatch",category:"MODULE",status:409,title:"Dependency version mismatch",suggestion:"Update dependencies to compatible versions"}),Ce=e({slug:"port-in-use",category:"SERVER",status:409,title:"Server port already in use",suggestion:"Use a different port or stop the process using this port"}),Se=e({slug:"server-start-error",category:"SERVER",status:500,title:"Server failed to start",suggestion:"Check server configuration and port availability"}),De=e({slug:"cache-error",category:"SERVER",status:500,title:"Cache operation failed",suggestion:"Clear the cache and try again"}),Le=e({slug:"file-watch-error",category:"SERVER",status:500,title:"File watcher error",suggestion:"Restart the development server"}),Ue=e({slug:"request-error",category:"SERVER",status:500,title:"HTTP request handling error",suggestion:"Check request handler and middleware"}),be=e({slug:"service-overloaded",category:"SERVER",status:503,title:"Service overloaded",suggestion:"Reduce load or scale up resources"}),Me=e({slug:"cache-path-mismatch",category:"SERVER",status:500,title:"Cache path mismatch",suggestion:"Clear the cache directory and rebuild"}),Pe=e({slug:"network-error",category:"SERVER",status:502,title:"Network operation failed",suggestion:"Check network connectivity and retry"}),Ve=e({slug:"api-client-error",category:"SERVER",status:500,title:"API client request failed",suggestion:"Check API connectivity and authentication"}),Fe=e({slug:"token-storage-error",category:"SERVER",status:500,title:"Token storage operation failed",suggestion:"Check token storage backend and credentials"}),ke=e({slug:"cache-invariant-violation",category:"SERVER",status:500,title:"Cache path invariant violated",suggestion:"Clear the cache and rebuild"}),we=e({slug:"release-not-found",category:"SERVER",status:404,title:"No active release found",suggestion:"Deploy the project to create a release for this environment"}),Ge=e({slug:"fallback-exhausted",category:"SERVER",status:500,title:"Primary and fallback operations both failed",suggestion:"Check service availability and connectivity"}),He=e({slug:"client-boundary-violation",category:"BOUNDARY",status:400,title:"Client boundary rule violation",suggestion:"Add \'use client\' directive or move code to a client component"}),Be=e({slug:"server-only-in-client",category:"BOUNDARY",status:400,title:"Server-only code in client component",suggestion:"Move server-only code to a server component"}),$e=e({slug:"client-only-in-server",category:"BOUNDARY",status:400,title:"Client-only code in server component",suggestion:"Move client-only code to a client component"}),Ye=e({slug:"invalid-use-client",category:"BOUNDARY",status:400,title:"Invalid \'use client\' directive",suggestion:"Place \'use client\' at the top of the file"}),je=e({slug:"invalid-use-server",category:"BOUNDARY",status:400,title:"Invalid \'use server\' directive",suggestion:"Place \'use server\' at the top of the file or function"}),qe=e({slug:"rsc-payload-error",category:"BOUNDARY",status:500,title:"RSC payload serialization error",suggestion:"Ensure props are serializable (no functions, symbols, etc.)"}),ze=e({slug:"hmr-error",category:"DEV",status:500,title:"Hot module replacement error",suggestion:"Restart the development server"}),We=e({slug:"dev-server-error",category:"DEV",status:500,title:"Development server error",suggestion:"Check the dev server logs and restart"}),Xe=e({slug:"fast-refresh-error",category:"DEV",status:500,title:"Fast refresh failed",suggestion:"Save the file again or restart the dev server"}),Je=e({slug:"error-overlay-error",category:"DEV",status:500,title:"Error overlay failed",suggestion:"Check browser console for details"}),Ke=e({slug:"source-map-error",category:"DEV",status:500,title:"Source map loading error",suggestion:"Rebuild or clear cache"}),Ze=e({slug:"deployment-error",category:"DEPLOY",status:500,title:"Deployment process failed",suggestion:"Check deployment logs for details"}),Qe=e({slug:"platform-error",category:"DEPLOY",status:500,title:"Platform-specific error",suggestion:"Check platform documentation and requirements"}),et=e({slug:"env-var-missing",category:"DEPLOY",status:500,title:"Required environment variable missing",suggestion:"Set the required environment variable"}),tt=e({slug:"production-build-required",category:"DEPLOY",status:400,title:"Production build required",suggestion:"Run \'vf build\' before deploying"}),rt=e({slug:"agent-error",category:"AGENT",status:500,title:"Agent operation error",suggestion:"Check agent configuration and logs"}),ot=e({slug:"agent-not-found",category:"AGENT",status:404,title:"Agent not found",suggestion:"Verify the agent ID exists"}),st=e({slug:"agent-timeout",category:"AGENT",status:408,title:"Agent operation timed out",suggestion:"Increase timeout or simplify the request"}),nt=e({slug:"agent-intent-error",category:"AGENT",status:400,title:"Agent intent parsing error",suggestion:"Rephrase the request more clearly"}),it=e({slug:"orchestration-error",category:"AGENT",status:500,title:"Multi-agent orchestration error",suggestion:"Check agent coordination logic"}),at=e({slug:"cost-limit-exceeded",category:"AGENT",status:429,title:"Cost limit exceeded",suggestion:"Wait for the budget period to reset or increase the limit"}),ct=e({slug:"unknown-error",category:"GENERAL",status:500,title:"Unknown/unclassified error",suggestion:"Check logs for more details"}),ut=e({slug:"permission-denied",category:"GENERAL",status:403,title:"File/resource permission denied",suggestion:"Check file permissions and access rights"}),lt=e({slug:"file-not-found",category:"GENERAL",status:404,title:"File not found",suggestion:"Verify the file path exists"}),gt=e({slug:"resource-not-found",category:"GENERAL",status:404,title:"Requested resource not found",suggestion:"Verify the referenced resource ID or name exists"}),dt=e({slug:"invalid-argument",category:"GENERAL",status:400,title:"Invalid function argument",suggestion:"Check argument types and values"}),pt=e({slug:"timeout-error",category:"GENERAL",status:408,title:"Operation timed out",suggestion:"Increase timeout or optimize the operation"}),Et=e({slug:"initialization-error",category:"GENERAL",status:500,title:"Initialization failed",suggestion:"Check initialization requirements and dependencies"}),Rt=e({slug:"not-supported",category:"GENERAL",status:501,title:"Feature not supported",suggestion:"Check documentation for supported features"}),y=e({slug:"security-violation",category:"GENERAL",status:403,title:"Security violation detected",suggestion:"Check for path traversal or unauthorized access attempts"}),ft=e({slug:"input-validation-failed",category:"GENERAL",status:400,title:"Input validation failed",suggestion:"Check request input against validation rules"});var C=[{pattern:/<script[^>]*>[\\s\\S]*?<\\/script>/gi,name:"inline script"},{pattern:/javascript:/gi,name:"javascript: URL"},{pattern:/\\bon\\w+\\s*=/gi,name:"event handler attribute"},{pattern:/data:\\s*text\\/html/gi,name:"data: HTML URL"}];function S(){let r=globalThis;return r.__VERYFRONT_DEV__===!0||r.Deno?.env?.get?.("VERYFRONT_ENV")==="development"}function _(r,t={}){let{strict:o=!1,warn:s=!0}=t;for(let{pattern:i,name:c}of C)if(i.lastIndex=0,!!i.test(r)&&(s&&console.warn(`[Security] Suspicious ${c} detected in server HTML`),o||!S()))throw y.create({detail:`Potentially unsafe HTML: ${c} detected`});return r}var E=class{constructor(t,o){this.prefix=t;this.level=o}log(t,o,s,...i){this.level>t||o?.(s,...i)}debug(t,...o){this.log(0,console.debug,`[${this.prefix}] DEBUG: ${t}`,...o)}info(t,...o){this.log(1,console.log,`[${this.prefix}] ${t}`,...o)}warn(t,...o){this.log(2,console.warn,`[${this.prefix}] WARN: ${t}`,...o)}error(t,...o){this.log(3,console.error,`[${this.prefix}] ERROR: ${t}`,...o)}};function D(){if(typeof window>"u")return 2;let r=globalThis;return r.__VERYFRONT_DEV__||r.__RSC_DEV__?r.__VERYFRONT_DEBUG__||r.__RSC_DEBUG__?0:1:2}var R=D(),d=new E("RSC",R),Tt=new E("PREFETCH",R),It=new E("HYDRATE",R),vt=new E("VERYFRONT",R);var n="/_veryfront",m={RSC:`${n}/rsc/`,FS:`${n}/fs/`,MODULES:`${n}/modules/`,PAGES:`${n}/pages/`,DATA:`${n}/data/`,LIB:`${n}/lib/`,CHUNKS:`${n}/chunks/`,CLIENT:`${n}/client/`},O={HMR_RUNTIME:`${n}/hmr-runtime.js`,HMR:`${n}/hmr.js`,ERROR_OVERLAY:`${n}/error-overlay.js`,DEV_LOADER:`${n}/dev-loader.js`,CLIENT_LOG:`${n}/log`,CLIENT_JS:`${n}/client.js`,ROUTER_JS:`${n}/router.js`,PREFETCH_JS:`${n}/prefetch.js`,MANIFEST_JSON:`${n}/manifest.json`,APP_JS:`${n}/app.js`,RSC_CLIENT:`${n}/rsc/client.js`,RSC_MANIFEST:`${n}/rsc/manifest`,RSC_STREAM:`${n}/rsc/stream`,RSC_PAYLOAD:`${n}/rsc/payload`,RSC_RENDER:`${n}/rsc/render`,RSC_PAGE:`${n}/rsc/page`,RSC_MODULE:`${n}/rsc/module`,RSC_DOM:`${n}/rsc/dom.js`,LIB_CHAT_REACT:`${n}/lib/chat/react.js`,LIB_CHAT_COMPONENTS:`${n}/lib/chat/components.js`,LIB_CHAT_PRIMITIVES:`${n}/lib/chat/primitives.js`};var U={ROOT:".veryfront",CACHE:".veryfront/cache",KV:".veryfront/kv",LOGS:".veryfront/logs",TMP:".veryfront/tmp"},St=U.CACHE;var Dt={HMR_RUNTIME:O.HMR_RUNTIME,ERROR_OVERLAY:O.ERROR_OVERLAY};var Mt=m.RSC,Pt=m.FS;var h="rsc-root";function I(r,t){let o=t==="root"?h:`rsc-slot-${t}`,s=r.getElementById(o);if(s)return s;let i=r.createElement("div");return i.id=o,r.body.appendChild(i),i}function b(r,t){if(t.type!=="slot")return;let o=I(r,t.id);o.innerHTML=_(String(t.html??""))}function T(r,t){let o=t.split(`\n`),s=o.pop()??"";for(let i of o){let c=i.trim();if(!c)continue;let g;try{g=JSON.parse(c)}catch(p){d.debug("[client-dom] malformed NDJSON line",{line:c,error:p instanceof Error?p.message:String(p)});continue}if(!g||typeof g!="object")continue;let u=g;if(u.type==="slot"){b(r,u);try{V(r,u.id||"root")}catch(p){d.debug("[client-dom] hydration optional failed",p)}}}return s}function M(r){return new Promise((t,o)=>{let s=()=>o(new DOMException("aborted","AbortError"));if(r.aborted){s();return}r.addEventListener("abort",s,{once:!0})})}async function Gt(r,t=document,o){let s="body"in r?r:null,i=s?.body??r;if(!i)return;let c=i.getReader(),g=new TextDecoder,u="",p=!1;try{for(;;){if(o?.aborted)throw new DOMException("aborted","AbortError");let a=c.read(),{done:v,value:x}=o?await Promise.race([a,M(o)]):await a;if(v){p=!0;break}u+=g.decode(x,{stream:!0}),u=T(t,u)}u&&T(t,`${u}\n`)}catch(a){throw a instanceof Error&&a.name==="AbortError"||d.debug("[client-dom] consumeNdjsonStream error",a),a}finally{try{await c.cancel()}catch(a){p||d.debug("[client-dom] reader.cancel failed",a)}try{c.releaseLock()}catch(a){d.debug("[client-dom] reader.releaseLock failed",a)}if(typeof i.cancel=="function")try{await i.cancel()}catch(a){d.debug("[client-dom] stream.cancel failed",a)}if(typeof s?.body?.cancel=="function")try{await s.body.cancel()}catch(a){d.debug("[client-dom] response.body.cancel failed",a)}}}function P(r,t){let o=I(r,t),s=[],i=c=>{let g=c;g.dataset?.clientRef&&s.push(g);for(let u of c.children)i(u)};return i(o),s}function V(r,t){let o=P(r,t);for(let s of o){let i=s.dataset?.clientRef;i&&(s.dataset.hydrated="true",d.debug("[client-dom] marked for hydration",i))}}export{Gt as consumeNdjsonStream,I as getContainer};\n';
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
2
|
-
import type { RuntimeAdapter } from "../../../../platform/adapters/base.js";
|
|
3
|
-
import { serverLogger } from "../../../../utils/index.js";
|
|
4
|
-
import { CLIENT_BOOT_BUNDLE, CLIENT_DOM_BUNDLE } from "./rsc-bundles.generated.js";
|
|
5
|
-
|
|
6
|
-
const logger = serverLogger.component("script-handlers");
|
|
7
|
-
|
|
8
|
-
function shouldStopEsbuild(): boolean {
|
|
9
|
-
return !(dntShim.dntGlobalThis as Record<string, unknown>).__vfTestPreserveEsbuild;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function jsResponse(body: string): Response {
|
|
13
|
-
return new Response(body, {
|
|
14
|
-
headers: {
|
|
15
|
-
"content-type": "application/javascript",
|
|
16
|
-
"cache-control": "no-cache",
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async function buildOrServeScript(
|
|
22
|
-
adapter: RuntimeAdapter,
|
|
23
|
-
path: string,
|
|
24
|
-
fallbackBundle: string,
|
|
25
|
-
esbuildOptions: Omit<import("../../../../extensions/bundler/index.js").BuildOptions, "stdin"> & {
|
|
26
|
-
stdin: import("../../../../extensions/bundler/index.js").StdinOptions;
|
|
27
|
-
},
|
|
28
|
-
): Promise<Response> {
|
|
29
|
-
// If a pre-built bundle was injected at compile time, serve it directly
|
|
30
|
-
if (fallbackBundle) return jsResponse(fallbackBundle);
|
|
31
|
-
|
|
32
|
-
let esbuild: typeof import("../../../../extensions/bundler/index.js") | null = null;
|
|
33
|
-
|
|
34
|
-
try {
|
|
35
|
-
const src = await adapter.fs.readFile(path);
|
|
36
|
-
esbuild = await import("../../../../extensions/bundler/index.js");
|
|
37
|
-
const result = await esbuild.build({
|
|
38
|
-
...esbuildOptions,
|
|
39
|
-
stdin: { ...esbuildOptions.stdin, contents: src },
|
|
40
|
-
});
|
|
41
|
-
const out = result.outputFiles?.[0]?.text ?? src;
|
|
42
|
-
|
|
43
|
-
return jsResponse(out);
|
|
44
|
-
} catch (error) {
|
|
45
|
-
serverLogger.debug(
|
|
46
|
-
"[ScriptHandlers] Build failed, serving raw TypeScript",
|
|
47
|
-
error,
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
try {
|
|
51
|
-
const src = await adapter.fs.readFile(path);
|
|
52
|
-
return new Response(src, {
|
|
53
|
-
headers: {
|
|
54
|
-
"content-type": "application/typescript",
|
|
55
|
-
"cache-control": "no-cache",
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
} catch {
|
|
59
|
-
return new Response("// client-boot: source not available", {
|
|
60
|
-
headers: {
|
|
61
|
-
"content-type": "application/javascript",
|
|
62
|
-
"cache-control": "no-cache",
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
} finally {
|
|
67
|
-
if (shouldStopEsbuild()) {
|
|
68
|
-
try {
|
|
69
|
-
esbuild?.stop?.();
|
|
70
|
-
} catch (stopError) {
|
|
71
|
-
logger.debug("esbuild stop failed", stopError);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// CLIENT_BOOT_BUNDLE and CLIENT_DOM_BUNDLE imported from rsc-bundles.generated.ts
|
|
78
|
-
|
|
79
|
-
export async function handleClientScript(
|
|
80
|
-
adapter: RuntimeAdapter,
|
|
81
|
-
): Promise<Response> {
|
|
82
|
-
const path = new URL(
|
|
83
|
-
"../../../../rendering/rsc/client-boot.ts",
|
|
84
|
-
import.meta.url,
|
|
85
|
-
).pathname;
|
|
86
|
-
|
|
87
|
-
return buildOrServeScript(adapter, path, CLIENT_BOOT_BUNDLE, {
|
|
88
|
-
bundle: true,
|
|
89
|
-
write: false,
|
|
90
|
-
format: "esm",
|
|
91
|
-
platform: "browser",
|
|
92
|
-
target: "es2020",
|
|
93
|
-
stdin: {
|
|
94
|
-
contents: "",
|
|
95
|
-
loader: "ts",
|
|
96
|
-
resolveDir: path.substring(0, path.lastIndexOf("/")),
|
|
97
|
-
sourcefile: path,
|
|
98
|
-
},
|
|
99
|
-
external: ["https://esm.sh/*", "/_veryfront/*"],
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export async function handleDomScript(adapter: RuntimeAdapter): Promise<Response> {
|
|
104
|
-
const path = new URL(
|
|
105
|
-
"../../../../rendering/rsc/client-dom.ts",
|
|
106
|
-
import.meta.url,
|
|
107
|
-
).pathname;
|
|
108
|
-
|
|
109
|
-
return buildOrServeScript(adapter, path, CLIENT_DOM_BUNDLE, {
|
|
110
|
-
bundle: true,
|
|
111
|
-
write: false,
|
|
112
|
-
format: "esm",
|
|
113
|
-
platform: "browser",
|
|
114
|
-
target: "es2020",
|
|
115
|
-
stdin: {
|
|
116
|
-
contents: "",
|
|
117
|
-
loader: "ts",
|
|
118
|
-
resolveDir: path.substring(0, path.lastIndexOf("/")),
|
|
119
|
-
sourcefile: path,
|
|
120
|
-
},
|
|
121
|
-
});
|
|
122
|
-
}
|