veryfront 0.1.545 → 0.1.546
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/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/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 +25 -4
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +25 -4
- 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 +129 -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 +2 -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 +7 -4
- package/esm/src/chat/index.d.ts +2 -2
- package/esm/src/chat/index.js +2 -2
- 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/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/react/components/chat/chat/index.d.ts +1 -1
- package/esm/src/react/components/chat/chat/index.js +1 -1
- 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/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +2 -0
- 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 +51 -16
- 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,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pre-bundled Studio Bridge Script
|
|
3
|
-
*
|
|
4
|
-
* AUTO-GENERATED by scripts/build/prebundle-bridge.ts
|
|
5
|
-
* Do not edit manually — run `deno task build` to regenerate.
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export const STUDIO_BRIDGE_BUNDLE: string = "// src/studio/bridge/bridge-logger.ts\nfunction normalizeContext(context) {\n if (!context) return void 0;\n if (context instanceof Error) {\n return { error: context.message, ...context.stack ? { stack: context.stack } : {} };\n }\n return context;\n}\nfunction formatArgs(message, context) {\n const normalized = normalizeContext(context);\n if (!normalized || Object.keys(normalized).length === 0) {\n return [message];\n }\n return [message, normalized];\n}\nvar logger = {\n debug(message, context) {\n console.debug(...formatArgs(message, context));\n },\n info(message, context) {\n console.log(...formatArgs(message, context));\n },\n warn(message, context) {\n console.warn(...formatArgs(message, context));\n },\n error(message, context) {\n console.error(...formatArgs(message, context));\n }\n};\n\n// src/studio/bridge/bridge-config.ts\nvar config = null;\nvar DEFAULT_CONFIG = {\n projectId: \"\",\n pageId: \"\",\n pagePath: \"\",\n wsUrl: \"\",\n yjsGuid: \"\",\n studioMode: \"advanced\",\n debugSkipInit: false,\n debugExposeInternals: false\n};\nfunction resolveStudioMode(value, queryString) {\n const params = new URLSearchParams(queryString);\n return value === \"simple\" || params.get(\"vf_studio_mode\") === \"simple\" ? \"simple\" : \"advanced\";\n}\nfunction normalizeConfig(raw) {\n const queryString = window.location.search;\n if (!raw || typeof raw !== \"object\") {\n logger.warn(\"No bridge config found on window.__VF_BRIDGE_CONFIG__\");\n return {\n ...DEFAULT_CONFIG,\n studioMode: resolveStudioMode(void 0, queryString)\n };\n }\n return {\n ...DEFAULT_CONFIG,\n projectId: String(raw.projectId ?? \"\"),\n pageId: String(raw.pageId ?? \"\"),\n pagePath: String(raw.pagePath ?? raw.pageId ?? \"\"),\n wsUrl: String(raw.wsUrl ?? \"\"),\n yjsGuid: String(raw.yjsGuid ?? \"\"),\n studioMode: resolveStudioMode(raw.studioMode, queryString),\n debugSkipInit: !!raw.debugSkipInit,\n debugExposeInternals: !!raw.debugExposeInternals\n };\n}\nfunction initConfig() {\n const raw = globalThis.__VF_BRIDGE_CONFIG__;\n config = normalizeConfig(raw);\n}\nfunction getConfig() {\n if (!config) {\n throw new Error(\"[StudioBridge] Config not initialized. Call initConfig() first.\");\n }\n return config;\n}\n\n// src/studio/bridge/bridge-state.ts\nvar state = {\n // Inspector\n inspectMode: false,\n selectedNodeId: null,\n hoveredNodeId: null,\n lastTreeSignature: \"\",\n // Overlays\n hoverOverlay: null,\n selectionOverlay: null,\n // Console\n originalConsole: {},\n logCounter: 0,\n // Screenshot\n html2canvasLoaded: false,\n html2canvasPromise: null\n};\nvar CONSOLE_METHODS = [\n \"log\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"table\",\n \"clear\",\n \"dir\"\n];\nvar DOM_IGNORE_TAGS = [\"SCRIPT\", \"STYLE\", \"LINK\", \"META\", \"NOSCRIPT\"];\n\n// src/studio/bridge/bridge-messaging.ts\nvar MAX_PENDING_MESSAGES = 100;\nvar studioOrigin = null;\nvar pendingMessages = [];\nfunction send(message, origin) {\n try {\n window.parent.postMessage(message, origin);\n } catch (e) {\n logger.debug(\"postMessage failed\", e instanceof Error ? e : { error: String(e) });\n }\n}\nfunction flushPending() {\n if (!studioOrigin) return;\n const origin = studioOrigin;\n while (pendingMessages.length > 0) {\n const msg = pendingMessages.shift();\n send(msg, origin);\n }\n}\nfunction postToStudio(message) {\n if (!window.parent || window.parent === window) return;\n if (!studioOrigin) {\n if (pendingMessages.length >= MAX_PENDING_MESSAGES) {\n pendingMessages.shift();\n }\n pendingMessages.push(message);\n return;\n }\n send(message, studioOrigin);\n}\nfunction isFromStudio(event) {\n try {\n if (!event.source || event.source === window) return false;\n const url = new URL(event.origin || \"\");\n const host = url.hostname;\n const valid = host === \"localhost\" || host.endsWith(\".veryfront.org\") || host === \"veryfront.org\" || host.endsWith(\".veryfront.com\") || host === \"veryfront.com\" || host.endsWith(\".veryfront.dev\") || host === \"veryfront.dev\";\n if (valid && !studioOrigin) {\n studioOrigin = event.origin;\n flushPending();\n }\n return valid;\n } catch (_) {\n return false;\n }\n}\n\n// src/studio/bridge/bridge-style-helpers.ts\nvar OVERLAY_STYLE_ELEMENT_ID = \"vf-overlay-styles\";\nfunction hasOverlayStyleElement(documentLike) {\n return documentLike.getElementById(OVERLAY_STYLE_ELEMENT_ID) !== null;\n}\nfunction createOverlayStyleElement(documentLike, css) {\n const style = documentLike.createElement(\"style\");\n style.id = OVERLAY_STYLE_ELEMENT_ID;\n style.textContent = css;\n return style;\n}\nfunction normalizeStyleInjectionWarningContext(error) {\n return error instanceof Error ? error : {\n error: String(error)\n };\n}\n\n// src/studio/bridge/bridge-styles.ts\nvar OVERLAY_CSS = `\n /* ------------------------------------------------------------------ */\n /* Overlays (hover / selection inspector) */\n /* ------------------------------------------------------------------ */\n\n .vf-overlay {\n position: fixed;\n pointer-events: none;\n z-index: 99999;\n box-sizing: border-box;\n transition: all 0.05s ease-out;\n }\n .vf-overlay-hover {\n border: 2px solid oklch(0.6852 0.162 241.8);\n background: oklch(0.6852 0.162 241.8 / 0.06);\n }\n .vf-overlay-selection {\n border: 2px solid oklch(0.6852 0.162 241.8);\n background: oklch(0.6852 0.162 241.8 / 0.1);\n }\n .vf-overlay-label {\n position: absolute;\n top: -22px;\n left: -2px;\n background: oklch(0.6852 0.162 241.8);\n color: white;\n font-size: 11px;\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n padding: 2px 6px;\n border-radius: 3px 3px 0 0;\n white-space: nowrap;\n pointer-events: none;\n }\n .vf-overlay-label-bottom {\n top: auto;\n bottom: -22px;\n border-radius: 0 0 3px 3px;\n }\n\n /* ------------------------------------------------------------------ */\n /* Edit button (floating CTA) */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-edit-button {\n position: fixed;\n right: 16px;\n bottom: 16px;\n z-index: 100001;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 9999px;\n background: oklch(0.2768 0 0);\n color: oklch(0.9512 0.008 98.88);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 13px;\n font-weight: 500;\n line-height: 1;\n padding: 10px 16px;\n cursor: pointer;\n box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);\n transition: transform 100ms ease, box-shadow 100ms ease;\n }\n .vf-markdown-edit-button:hover {\n box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);\n }\n .vf-markdown-edit-button:active {\n transform: scale(0.98);\n }\n\n /* ------------------------------------------------------------------ */\n /* Editor root */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor {\n position: fixed;\n inset: 0;\n z-index: 100000;\n background: oklch(1 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n display: none;\n }\n\n .vf-markdown-editor__history {\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 6px;\n background: oklch(1 0 0);\n color: oklch(0.2768 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 13px;\n line-height: 1;\n min-width: 28px;\n height: 28px;\n padding: 0 8px;\n cursor: pointer;\n transition: background 75ms ease;\n }\n .vf-markdown-editor__history:hover {\n background: oklch(0.93 0 0);\n }\n\n /* ------------------------------------------------------------------ */\n /* Surface (editor area) */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__surface-wrap {\n position: relative;\n height: 100vh;\n }\n\n .vf-markdown-editor__surface {\n width: 100%;\n max-width: 980px;\n margin: 0 auto;\n height: 100%;\n overflow: auto;\n outline: none;\n position: relative;\n z-index: 1;\n background: transparent;\n padding: 32px 40px;\n box-sizing: border-box;\n }\n\n /* ------------------------------------------------------------------ */\n /* Selection overlay */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__selection-overlay {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 2;\n display: none;\n }\n\n .vf-markdown-editor__selection-highlight {\n position: absolute;\n border-radius: 3px;\n opacity: 0.26;\n }\n\n .vf-markdown-editor__selection-caret {\n position: absolute;\n width: 2px;\n border-radius: 1px;\n }\n\n .vf-markdown-editor__selection-label {\n position: absolute;\n transform: translateY(-100%);\n margin-top: -4px;\n border-radius: 9999px;\n padding: 1px 7px;\n font-size: 10px;\n line-height: 1.4;\n white-space: nowrap;\n color: oklch(1 0 0);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);\n }\n\n /* ------------------------------------------------------------------ */\n /* Slash menu */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__slash-menu {\n position: fixed;\n z-index: 100005;\n min-width: 240px;\n max-width: 300px;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 8px;\n background: oklch(1 0 0);\n box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);\n padding: 4px;\n display: none;\n }\n\n .vf-markdown-editor__slash-section {\n padding: 8px 10px 4px;\n font-size: 11px;\n font-weight: 600;\n color: oklch(0.55 0.005 95.11);\n text-transform: none;\n letter-spacing: 0;\n }\n\n .vf-markdown-editor__slash-item {\n display: flex;\n align-items: center;\n gap: 10px;\n width: 100%;\n border: 0;\n border-radius: 6px;\n background: transparent;\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n text-align: left;\n padding: 6px 10px;\n cursor: pointer;\n transition: background 75ms ease;\n }\n\n .vf-markdown-editor__slash-item:hover,\n .vf-markdown-editor__slash-item[data-active='true'] {\n background: oklch(0.93 0 0);\n }\n\n .vf-markdown-editor__slash-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 4px;\n background: oklch(1 0 0);\n font-size: 13px;\n font-weight: 600;\n color: oklch(0.2768 0 0);\n flex-shrink: 0;\n }\n\n .vf-markdown-editor__slash-item-title {\n display: block;\n font-size: 13px;\n font-weight: 500;\n color: oklch(0.2768 0 0);\n line-height: 1.35;\n flex: 1;\n }\n\n .vf-markdown-editor__slash-item-desc {\n display: none;\n }\n\n .vf-markdown-editor__slash-shortcut {\n font-size: 11px;\n color: oklch(0.55 0.005 95.11);\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n flex-shrink: 0;\n }\n\n .vf-markdown-editor__slash-footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px 10px;\n margin-top: 2px;\n border-top: 1px solid oklch(0.9 0 0);\n font-size: 11px;\n color: oklch(0.55 0.005 95.11);\n }\n\n .vf-markdown-editor__slash-footer-key {\n font-size: 10px;\n color: oklch(0.55 0.005 95.11);\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 3px;\n padding: 1px 4px;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n }\n\n /* ------------------------------------------------------------------ */\n /* Inline toolbar */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__inline-toolbar {\n position: fixed;\n z-index: 100006;\n display: none;\n flex-direction: column;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 8px;\n background: oklch(1 0 0);\n box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);\n padding: 4px;\n }\n\n .vf-markdown-editor__inline-row {\n display: flex;\n align-items: center;\n gap: 2px;\n padding: 2px 0;\n }\n\n .vf-markdown-editor__inline-separator {\n width: 1px;\n height: 20px;\n background: oklch(0.9 0 0);\n margin: 0 2px;\n flex-shrink: 0;\n }\n\n .vf-markdown-editor__inline-button {\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: oklch(0.2768 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 1;\n min-width: 26px;\n height: 26px;\n padding: 0 7px;\n cursor: pointer;\n transition: background 75ms ease;\n }\n\n .vf-markdown-editor__inline-button:hover {\n background: oklch(0.93 0 0);\n }\n\n .vf-markdown-editor__inline-button.active {\n background: oklch(0.6852 0.162 241.8 / 0.14);\n color: oklch(0.6852 0.162 241.8);\n }\n\n .vf-markdown-editor__inline-button[data-format='bold'] {\n font-weight: 700;\n }\n\n .vf-markdown-editor__inline-button[data-format='italic'] {\n font-style: italic;\n }\n\n .vf-markdown-editor__inline-button[data-format='strikethrough'] {\n text-decoration: line-through;\n }\n\n /* ------------------------------------------------------------------ */\n /* Block type trigger */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__block-trigger {\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: oklch(0.2768 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 12px;\n font-weight: 600;\n line-height: 1;\n height: 26px;\n padding: 0 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 2px;\n white-space: nowrap;\n transition: background 75ms ease;\n }\n\n .vf-markdown-editor__block-trigger:hover {\n background: oklch(0.93 0 0);\n }\n\n .vf-markdown-editor__block-trigger::after {\n content: '\\\\25BE';\n font-size: 10px;\n color: oklch(0.55 0.005 95.11);\n }\n\n /* ------------------------------------------------------------------ */\n /* Block dropdown */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__block-dropdown {\n position: absolute;\n top: 100%;\n left: 4px;\n z-index: 100007;\n min-width: 160px;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 6px;\n background: oklch(1 0 0);\n box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);\n padding: 4px;\n margin-top: 4px;\n display: none;\n }\n\n .vf-markdown-editor__block-option {\n display: block;\n width: 100%;\n border: 0;\n border-radius: 6px;\n background: transparent;\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n text-align: left;\n padding: 6px 10px;\n font-size: 13px;\n font-weight: 500;\n color: oklch(0.2768 0 0);\n cursor: pointer;\n transition: background 75ms ease;\n }\n\n .vf-markdown-editor__block-option:hover {\n background: oklch(0.93 0 0);\n }\n\n .vf-markdown-editor__block-option.active {\n background: oklch(0.6852 0.162 241.8 / 0.1);\n color: oklch(0.6852 0.162 241.8);\n }\n\n /* ------------------------------------------------------------------ */\n /* Block drag handle */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__block-handle {\n position: fixed;\n z-index: 100007;\n display: none;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 6px;\n background: oklch(1 0 0);\n color: oklch(0.2768 0 0);\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n width: 28px;\n height: 28px;\n padding: 0;\n cursor: grab;\n box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);\n transition: background 75ms ease, box-shadow 75ms ease;\n }\n\n .vf-markdown-editor__block-handle:hover {\n background: oklch(0.6852 0.162 241.8 / 0.1);\n }\n\n .vf-markdown-editor__block-handle[data-dragging='true'] {\n cursor: grabbing;\n }\n\n /* ------------------------------------------------------------------ */\n /* Block drop indicator */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__block-drop-indicator {\n position: fixed;\n z-index: 100006;\n display: none;\n height: 2px;\n border-radius: 9999px;\n background: oklch(0.6852 0.162 241.8);\n box-shadow: 0 1px 6px oklch(0.6852 0.162 241.8 / 0.5);\n }\n\n .vf-markdown-editor__block-drop-label {\n position: fixed;\n z-index: 100007;\n display: none;\n border-radius: 9999px;\n border: 1px solid oklch(0.6852 0.162 241.8 / 0.24);\n background: oklch(1 0 0 / 0.96);\n color: oklch(0.2768 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 11px;\n font-weight: 600;\n line-height: 1.2;\n padding: 3px 8px;\n box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);\n }\n\n /* ------------------------------------------------------------------ */\n /* Block drag ghost */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__block-drag-ghost {\n position: fixed;\n top: -9999px;\n left: -9999px;\n width: 260px;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 8px;\n background: oklch(1 0 0);\n box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);\n padding: 8px 10px;\n }\n\n .vf-markdown-editor__block-drag-ghost-title {\n display: block;\n font-size: 11px;\n font-weight: 700;\n color: oklch(0.2768 0 0);\n }\n\n .vf-markdown-editor__block-drag-ghost-text {\n display: block;\n margin-top: 4px;\n font-size: 11px;\n color: oklch(0.55 0.005 95.11);\n line-height: 1.35;\n }\n\n /* ------------------------------------------------------------------ */\n /* MDX blocks bar */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__mdx-blocks {\n display: none;\n gap: 8px;\n padding: 8px 16px;\n border-bottom: 1px solid oklch(0.9 0 0);\n background: oklch(0.97 0 0 / 0.95);\n overflow-x: auto;\n }\n\n .vf-markdown-editor__mdx-block {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 6px;\n background: oklch(1 0 0);\n padding: 6px 8px;\n }\n\n .vf-markdown-editor__mdx-block-label {\n font-size: 11px;\n color: oklch(0.2768 0 0);\n white-space: nowrap;\n }\n\n .vf-markdown-editor__mdx-note {\n font-size: 10px;\n color: oklch(0.55 0.005 95.11);\n white-space: nowrap;\n }\n\n .vf-markdown-editor__mdx-open {\n border: 1px solid oklch(0.84 0.0055 95.11);\n border-radius: 6px;\n background: oklch(1 0 0);\n color: oklch(0.2768 0 0);\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;\n font-size: 11px;\n line-height: 1;\n padding: 5px 7px;\n cursor: pointer;\n white-space: nowrap;\n transition: background 75ms ease;\n }\n .vf-markdown-editor__mdx-open:hover {\n background: oklch(0.93 0 0);\n }\n\n /* ------------------------------------------------------------------ */\n /* Lexical surface overrides */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__surface [data-lexical-editor] {\n outline: none;\n }\n\n .vf-markdown-editor__surface s,\n .vf-markdown-editor__surface del,\n .vf-markdown-editor__surface [style*='line-through'] {\n text-decoration: line-through;\n }\n\n .vf-markdown-editor__surface p:empty::before {\n content: \"Type '/' for commands\";\n color: oklch(0.55 0.005 95.11 / 0.6);\n pointer-events: none;\n font-style: normal;\n }\n\n .vf-markdown-editor__surface h1:empty::before {\n content: 'Heading 1';\n color: oklch(0.55 0.005 95.11 / 0.6);\n pointer-events: none;\n }\n\n .vf-markdown-editor__surface h2:empty::before {\n content: 'Heading 2';\n color: oklch(0.55 0.005 95.11 / 0.6);\n pointer-events: none;\n }\n\n .vf-markdown-editor__surface h3:empty::before {\n content: 'Heading 3';\n color: oklch(0.55 0.005 95.11 / 0.6);\n pointer-events: none;\n }\n\n .vf-markdown-editor__surface blockquote:empty::before {\n content: 'Quote';\n color: oklch(0.55 0.005 95.11 / 0.6);\n pointer-events: none;\n }\n\n .vf-markdown-editor__surface p {\n min-height: 1.5em;\n }\n\n /* ------------------------------------------------------------------ */\n /* Textarea fallback */\n /* ------------------------------------------------------------------ */\n\n .vf-markdown-editor__textarea {\n width: 100%;\n height: 100vh;\n border: 0;\n outline: none;\n resize: none;\n display: none;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;\n font-size: 14px;\n line-height: 1.6;\n color: oklch(0.2768 0 0);\n background: transparent;\n padding: 16px;\n box-sizing: border-box;\n }\n\n /* ================================================================== */\n /* DARK MODE */\n /* ================================================================== */\n\n [data-theme='dark'] .vf-markdown-editor {\n background: oklch(0.2768 0 0);\n }\n\n [data-theme='dark'] .vf-markdown-editor__history {\n background: oklch(0.3211 0 0);\n border-color: oklch(0.42 0.0017 106.48);\n color: oklch(0.9512 0.008 98.88);\n }\n [data-theme='dark'] .vf-markdown-editor__history:hover {\n background: oklch(0.25 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__textarea {\n color: oklch(0.9512 0.008 98.88);\n }\n\n /* Slash menu \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__slash-menu {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.21 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-section {\n color: oklch(0.5338 0.0046 106.55);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-item:hover,\n [data-theme='dark'] .vf-markdown-editor__slash-item[data-active='true'] {\n background: oklch(0.25 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-icon {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.3211 0 0);\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-item-title {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-shortcut {\n color: oklch(0.5338 0.0046 106.55);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-footer {\n border-top-color: oklch(0.3 0.01 220);\n color: oklch(0.5338 0.0046 106.55);\n }\n\n [data-theme='dark'] .vf-markdown-editor__slash-footer-key {\n border-color: oklch(0.42 0.0017 106.48);\n color: oklch(0.5338 0.0046 106.55);\n }\n\n /* Inline toolbar \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__inline-toolbar {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.21 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__inline-separator {\n background: oklch(0.3 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__inline-button {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__inline-button:hover {\n background: oklch(0.25 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__inline-button.active {\n background: oklch(0.6852 0.162 241.8 / 0.2);\n color: oklch(0.75 0.14 241.8);\n }\n\n /* Block trigger \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__block-trigger {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-trigger:hover {\n background: oklch(0.25 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-trigger::after {\n color: oklch(0.5338 0.0046 106.55);\n }\n\n /* Block dropdown \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__block-dropdown {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.21 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-option {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-option:hover {\n background: oklch(0.25 0.01 220);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-option.active {\n background: oklch(0.6852 0.162 241.8 / 0.2);\n color: oklch(0.75 0.14 241.8);\n }\n\n /* Placeholder text \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__surface p:empty::before,\n [data-theme='dark'] .vf-markdown-editor__surface h1:empty::before,\n [data-theme='dark'] .vf-markdown-editor__surface h2:empty::before,\n [data-theme='dark'] .vf-markdown-editor__surface h3:empty::before,\n [data-theme='dark'] .vf-markdown-editor__surface blockquote:empty::before {\n color: oklch(0.5338 0.0046 106.55 / 0.5);\n }\n\n /* Block drag \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__block-handle {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.3211 0 0);\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-handle:hover {\n background: oklch(0.6852 0.162 241.8 / 0.2);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-drop-label {\n border-color: oklch(0.6852 0.162 241.8 / 0.35);\n background: oklch(0.18 0.01 220 / 0.96);\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-drag-ghost {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.3211 0 0);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-drag-ghost-title {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__block-drag-ghost-text {\n color: oklch(0.5338 0.0046 106.55);\n }\n\n /* MDX blocks \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-editor__mdx-blocks {\n border-bottom-color: oklch(0.3 0.01 220);\n background: oklch(0.18 0.01 220 / 0.8);\n }\n\n [data-theme='dark'] .vf-markdown-editor__mdx-block {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.3211 0 0);\n }\n\n [data-theme='dark'] .vf-markdown-editor__mdx-block-label {\n color: oklch(0.9512 0.008 98.88);\n }\n\n [data-theme='dark'] .vf-markdown-editor__mdx-note {\n color: oklch(0.5338 0.0046 106.55);\n }\n\n [data-theme='dark'] .vf-markdown-editor__mdx-open {\n border-color: oklch(0.42 0.0017 106.48);\n background: oklch(0.2768 0 0);\n color: oklch(0.9512 0.008 98.88);\n }\n [data-theme='dark'] .vf-markdown-editor__mdx-open:hover {\n background: oklch(0.25 0.01 220);\n }\n\n /* Edit button \\u2013 dark */\n\n [data-theme='dark'] .vf-markdown-edit-button {\n background: oklch(0.9512 0.008 98.88);\n color: oklch(0.2768 0 0);\n border-color: oklch(0.42 0.0017 106.48);\n }\n`;\nfunction injectOverlayStyles() {\n if (hasOverlayStyleElement(document)) return;\n const style = createOverlayStyleElement(document, OVERLAY_CSS);\n try {\n document.head.appendChild(style);\n if (!style.sheet) {\n logger.warn(\"Inline style injection may be blocked by CSP (style-src)\");\n }\n } catch (error) {\n logger.warn(\n \"Failed to inject bridge styles. This may be caused by CSP style-src restrictions.\",\n normalizeStyleInjectionWarningContext(error)\n );\n }\n}\n\n// src/studio/bridge/bridge-constants.ts\nvar DATA_VF_ID = \"data-vf-id\";\nvar DATA_VF_SELECTOR = \"data-vf-selector\";\nvar DATA_VF_TEXT = \"data-vf-text\";\nvar DATA_VF_IGNORE = \"data-vf-ignore\";\nvar DATA_NODE_ID = \"data-node-id\";\nvar DATA_NODE_FILE = \"data-node-file\";\nvar DATA_NODE_NAME = \"data-node-name\";\nvar DATA_NODE_LINE = \"data-node-line\";\nvar DATA_NODE_COLUMN = \"data-node-column\";\nvar DATA_NODE_SOURCE = \"data-node-source\";\n\n// src/studio/bridge/bridge-utils.ts\nfunction debounce(fn, ms) {\n let timer;\n const debounced = function(...args) {\n clearTimeout(timer);\n timer = setTimeout(() => {\n fn.apply(this, args);\n }, ms);\n };\n debounced.cancel = () => {\n clearTimeout(timer);\n timer = void 0;\n };\n return debounced;\n}\n\n// src/studio/bridge/bridge-inspector.ts\nfunction createOverlay(type) {\n const overlay = document.createElement(\"div\");\n overlay.className = \"vf-overlay vf-overlay-\" + type;\n overlay.setAttribute(DATA_VF_IGNORE, \"true\");\n const label = document.createElement(\"div\");\n label.className = \"vf-overlay-label\";\n overlay.appendChild(label);\n overlay.style.display = \"none\";\n document.body.appendChild(overlay);\n return overlay;\n}\nfunction hideOverlay(overlay) {\n if (overlay) overlay.style.display = \"none\";\n}\nfunction positionOverlay(overlay, element, nodeName) {\n if (!overlay) return;\n if (!element) {\n hideOverlay(overlay);\n return;\n }\n const rect = element.getBoundingClientRect();\n overlay.style.display = \"block\";\n overlay.style.top = rect.top + \"px\";\n overlay.style.left = rect.left + \"px\";\n overlay.style.width = rect.width + \"px\";\n overlay.style.height = rect.height + \"px\";\n const label = overlay.querySelector(\".vf-overlay-label\");\n if (label) {\n label.textContent = nodeName;\n if (rect.top < 24) {\n label.classList.add(\"vf-overlay-label-bottom\");\n } else {\n label.classList.remove(\"vf-overlay-label-bottom\");\n }\n }\n}\nfunction getNodeName(element) {\n const vfId = element.getAttribute(DATA_VF_ID);\n if (vfId) return vfId.split(\"_\")[0] ?? vfId;\n return element.tagName.toLowerCase();\n}\nfunction findElementById(nodeId) {\n if (!nodeId) return null;\n return document.querySelector(\"[\" + DATA_VF_ID + '=\"' + nodeId + '\"]') || document.querySelector(\"[\" + DATA_VF_SELECTOR + '=\"' + nodeId + '\"]') || document.querySelector(\"[\" + DATA_NODE_ID + '=\"' + nodeId + '\"]');\n}\nfunction isValidElement(el) {\n return !!el && el.nodeType === Node.ELEMENT_NODE && !DOM_IGNORE_TAGS.includes(el.tagName) && !el.hasAttribute(DATA_VF_IGNORE) && el.style.display !== \"none\";\n}\nfunction getNodeType(el) {\n const vfId = el.getAttribute(DATA_VF_ID) || \"\";\n if (vfId && /^[A-Z]/.test(vfId)) return \"component\";\n if (el.hasAttribute(DATA_VF_TEXT)) return \"text\";\n if (el.getAttribute(DATA_NODE_SOURCE) === \"md\") return \"markdown\";\n return \"element\";\n}\nfunction buildNavigatorTree(root) {\n const config3 = getConfig();\n let nodeIndex = 0;\n function processElement(el, parentId) {\n if (!isValidElement(el)) {\n const children = [];\n Array.from(el.children || []).forEach((child) => {\n children.push(...processElement(child, parentId));\n });\n return children;\n }\n let id = el.getAttribute(DATA_VF_ID) || el.getAttribute(DATA_NODE_ID) || el.getAttribute(DATA_VF_SELECTOR);\n if (!id) {\n id = \"vf-\" + el.tagName.toLowerCase() + \"-\" + ++nodeIndex;\n el.setAttribute(DATA_VF_SELECTOR, id);\n }\n const vfId = el.getAttribute(DATA_VF_ID);\n const name = vfId ? vfId.split(\"_\")[0] ?? vfId : el.tagName.toLowerCase();\n const node = {\n id,\n name,\n type: getNodeType(el),\n path: config3.pagePath,\n parentId,\n start: {\n line: parseInt(el.getAttribute(DATA_NODE_LINE) || \"0\", 10),\n column: parseInt(el.getAttribute(DATA_NODE_COLUMN) || \"0\", 10)\n },\n end: { line: 0, column: 0 },\n children: [],\n text: el.hasAttribute(DATA_VF_TEXT) ? el.textContent?.trim() : void 0,\n isRemote: false\n };\n Array.from(el.children || []).forEach((child) => {\n node.children.push(...processElement(child, id));\n });\n return [node];\n }\n const rootNode = {\n id: \"root\",\n name: \"root\",\n type: \"root\",\n path: \"\",\n parentId: \"\",\n start: { line: 0, column: 0 },\n end: { line: 0, column: 0 },\n children: [],\n isRemote: false\n };\n Array.from(root.children || []).forEach((child) => {\n rootNode.children.push(...processElement(child, \"root\"));\n });\n return rootNode;\n}\nfunction createTreeSignature(root) {\n const validElements = Array.from(root.querySelectorAll(\"*\")).filter((el) => isValidElement(el));\n return validElements.length + \"-\" + validElements.map((el) => el.tagName).join(\"\");\n}\nvar treeUpdateTimer = null;\nvar mutationObserver = null;\nfunction sendTreeUpdate() {\n const config3 = getConfig();\n const root = document.getElementById(\"root\") || document.body;\n if (!root) return;\n const signature = createTreeSignature(root);\n if (signature === state.lastTreeSignature) return;\n state.lastTreeSignature = signature;\n postToStudio({\n action: \"treeUpdated\",\n id: config3.pageId,\n url: window.location.href,\n tree: buildNavigatorTree(root),\n sourceHash: globalThis.__VERYFRONT_SOURCE_HASH__ || null\n });\n}\nfunction debouncedTreeUpdate() {\n if (treeUpdateTimer) clearTimeout(treeUpdateTimer);\n treeUpdateTimer = setTimeout(sendTreeUpdate, 150);\n}\nfunction setupMutationObserver() {\n const root = document.getElementById(\"root\") || document.body;\n if (!root) return;\n mutationObserver = new MutationObserver(function(mutations) {\n const hasRelevantChanges = mutations.some(\n (m) => m.type === \"childList\" || m.type === \"characterData\"\n );\n if (!hasRelevantChanges) return;\n if (state.selectedNodeId && !findElementById(state.selectedNodeId)) {\n state.selectedNodeId = null;\n hideOverlay(state.selectionOverlay);\n postToStudio({ action: \"setSelectedNode\", id: null });\n }\n debouncedTreeUpdate();\n });\n mutationObserver.observe(root, { childList: true, characterData: true, subtree: true });\n sendTreeUpdate();\n}\nfunction showOverlay(overlay, nodeId) {\n if (!nodeId) {\n hideOverlay(overlay);\n return;\n }\n const el = findElementById(nodeId);\n if (!el) {\n hideOverlay(overlay);\n return;\n }\n positionOverlay(overlay, el, getNodeName(el));\n}\nfunction showHoverOverlay(nodeId) {\n showOverlay(state.hoverOverlay, nodeId);\n}\nfunction showSelectionOverlay(nodeId) {\n showOverlay(state.selectionOverlay, nodeId);\n}\nfunction scrollToElement(nodeId) {\n const el = document.querySelector(\"[\" + DATA_VF_ID + '=\"' + nodeId + '\"]') || document.querySelector(\"[\" + DATA_NODE_ID + '=\"' + nodeId + '\"]') || document.querySelector(\"[\" + DATA_VF_SELECTOR + '*=\"' + nodeId + '\"]');\n if (el) el.scrollIntoView({ behavior: \"smooth\", block: \"center\" });\n}\nfunction getDirectText(el) {\n let text = \"\";\n for (let i = 0; i < el.childNodes.length; i++) {\n const node = el.childNodes[i];\n if (node?.nodeType === Node.TEXT_NODE) {\n text += node.textContent || \"\";\n }\n }\n return text.trim();\n}\nfunction setupInspectMode() {\n const INSPECTABLE_SELECTOR = \"[\" + DATA_VF_ID + \"], [\" + DATA_VF_SELECTOR + \"], [\" + DATA_NODE_ID + \"], [\" + DATA_NODE_FILE + \"]\";\n function getElementId(el) {\n return el.getAttribute(DATA_VF_ID) || el.getAttribute(DATA_NODE_ID) || el.getAttribute(DATA_VF_SELECTOR);\n }\n document.addEventListener(\n \"click\",\n function(event) {\n if (!state.inspectMode) return;\n event.preventDefault();\n event.stopPropagation();\n const target = event.target.closest(INSPECTABLE_SELECTOR);\n if (!target) {\n state.selectedNodeId = null;\n hideOverlay(state.selectionOverlay);\n postToStudio({ action: \"setSelectedNode\", id: null });\n return;\n }\n const id = getElementId(target);\n state.selectedNodeId = id;\n showSelectionOverlay(id);\n postToStudio({\n action: \"setSelectedNode\",\n id,\n node: {\n name: target.getAttribute(DATA_NODE_NAME) || target.tagName.toLowerCase(),\n type: getNodeType(target),\n file: target.getAttribute(DATA_NODE_FILE) || getConfig().pagePath,\n line: parseInt(target.getAttribute(DATA_NODE_LINE) || \"0\", 10),\n column: parseInt(target.getAttribute(DATA_NODE_COLUMN) || \"0\", 10),\n text: getDirectText(target).slice(0, 200)\n }\n });\n },\n true\n );\n document.addEventListener(\"pointerover\", function(event) {\n if (!state.inspectMode || event.pointerType === \"touch\") return;\n const target = event.target.closest(INSPECTABLE_SELECTOR);\n if (!target) return;\n const id = getElementId(target);\n if (id === state.hoveredNodeId) return;\n state.hoveredNodeId = id;\n showHoverOverlay(id);\n });\n document.addEventListener(\"pointerout\", function(event) {\n if (!state.inspectMode || event.pointerType === \"touch\") return;\n const target = event.target.closest(INSPECTABLE_SELECTOR);\n if (!target) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget && target.contains(relatedTarget)) return;\n state.hoveredNodeId = null;\n hideOverlay(state.hoverOverlay);\n });\n const updateOverlays = debounce(function() {\n if (state.inspectMode && state.hoveredNodeId) showHoverOverlay(state.hoveredNodeId);\n if (state.selectedNodeId) showSelectionOverlay(state.selectedNodeId);\n }, 16);\n window.addEventListener(\"scroll\", updateOverlays, true);\n window.addEventListener(\"resize\", updateOverlays);\n}\nfunction setColorMode(mode) {\n document.documentElement.setAttribute(\"data-theme\", mode);\n document.documentElement.classList.remove(\"light\", \"dark\");\n document.documentElement.classList.add(mode);\n}\n\n// src/studio/bridge/bridge-console.ts\nfunction setupConsoleCapture() {\n const consoleObj = console;\n CONSOLE_METHODS.forEach((method) => {\n state.originalConsole[method] = consoleObj[method];\n consoleObj[method] = function(...args) {\n state.originalConsole[method].apply(console, args);\n const logId = \"vf-\" + Date.now() + \"-\" + ++state.logCounter;\n const formattedData = args.map((arg) => {\n try {\n if (arg instanceof Error) {\n return { __isError: true, message: arg.message, stack: arg.stack, name: arg.name };\n }\n if (arg === void 0) return { __isUndefined: true };\n if (arg === null) return null;\n if (typeof arg === \"function\") {\n return { __isFunction: true, name: arg.name || \"anonymous\" };\n }\n if (typeof arg === \"symbol\") return { __isSymbol: true, description: arg.description };\n if (typeof arg === \"object\") return JSON.parse(JSON.stringify(arg));\n return arg;\n } catch (_) {\n return String(arg);\n }\n });\n postToStudio({\n action: \"logEvent\",\n value: {\n id: logId,\n method,\n data: formattedData,\n timestamp: (/* @__PURE__ */ new Date()).toISOString()\n }\n });\n };\n });\n}\nfunction setupErrorHandling() {\n function hideOverlays() {\n hideOverlay(state.hoverOverlay);\n hideOverlay(state.selectionOverlay);\n }\n window.addEventListener(\"error\", function(event) {\n hideOverlays();\n postToStudio({\n action: \"runtimeError\",\n url: window.location.href,\n errors: [\n {\n type: \"error\",\n message: event.message,\n file: event.filename,\n line: event.lineno,\n column: event.colno\n }\n ]\n });\n });\n window.addEventListener(\"unhandledrejection\", function(event) {\n hideOverlays();\n const reason = event.reason;\n postToStudio({\n action: \"runtimeError\",\n url: window.location.href,\n errors: [\n {\n type: \"error\",\n message: reason instanceof Error ? reason.message : String(reason),\n file: reason instanceof Error ? reason.stack : void 0\n }\n ]\n });\n });\n}\n\n// src/studio/bridge/bridge-screenshot.ts\nfunction loadHtml2Canvas() {\n if (state.html2canvasLoaded) return Promise.resolve();\n if (state.html2canvasPromise) return state.html2canvasPromise;\n state.html2canvasPromise = new Promise((resolve, reject) => {\n const script = document.createElement(\"script\");\n script.src = \"https://cdn.jsdelivr.net/npm/html2canvas-pro@2.0.0/dist/html2canvas-pro.min.js\";\n script.onload = () => {\n state.html2canvasLoaded = true;\n resolve();\n };\n script.onerror = (event) => {\n logger.warn(\n \"Failed to load html2canvas script. This may be caused by CSP script-src restrictions.\",\n { event: String(event) }\n );\n reject(new Error(\"Failed to load html2canvas script\"));\n };\n try {\n document.head.appendChild(script);\n } catch (error) {\n logger.warn(\n \"Failed to append html2canvas script element. This may be caused by CSP script-src restrictions.\",\n error instanceof Error ? error : { error: String(error) }\n );\n reject(\n error instanceof Error ? error : new Error(\"Failed to append html2canvas script element\")\n );\n }\n });\n return state.html2canvasPromise;\n}\nasync function captureScreenshot(options) {\n const { scrollTo, fullPage, quality = 0.8 } = options || {};\n const originalScrollY = window.scrollY;\n try {\n await loadHtml2Canvas();\n if (typeof scrollTo === \"number\") {\n window.scrollTo(0, scrollTo);\n await new Promise((r) => setTimeout(r, 150));\n }\n const canvasOptions = {\n useCORS: true,\n logging: false,\n scale: window.devicePixelRatio || 1\n };\n if (fullPage) {\n canvasOptions.height = document.documentElement.scrollHeight;\n canvasOptions.windowHeight = document.documentElement.scrollHeight;\n canvasOptions.y = 0;\n window.scrollTo(0, 0);\n await new Promise((r) => setTimeout(r, 100));\n }\n const html2canvasFn = window.html2canvas.default || window.html2canvas;\n const canvas = await html2canvasFn(document.body, canvasOptions);\n if (!canvas || canvas.width === 0 || canvas.height === 0) {\n logger.error(\"html2canvas produced empty canvas\", {\n width: canvas?.width,\n height: canvas?.height\n });\n window.scrollTo(0, originalScrollY);\n return {\n success: false,\n error: \"html2canvas produced empty canvas (0x0 dimensions)\"\n };\n }\n const dataUrl = canvas.toDataURL(\"image/png\", quality);\n if (!dataUrl || !dataUrl.startsWith(\"data:image/\") || dataUrl.length < 100) {\n logger.error(\"html2canvas produced invalid data URL\", {\n dataUrlPreview: dataUrl?.substring(0, 50)\n });\n window.scrollTo(0, originalScrollY);\n return {\n success: false,\n error: \"html2canvas produced invalid image data\"\n };\n }\n window.scrollTo(0, originalScrollY);\n return {\n success: true,\n data: dataUrl,\n width: canvas.width,\n height: canvas.height,\n scrollY: window.scrollY,\n totalHeight: document.documentElement.scrollHeight,\n viewportHeight: window.innerHeight,\n url: window.location.href\n };\n } catch (error) {\n logger.error(\"html2canvas error\", error instanceof Error ? error : { error: String(error) });\n window.scrollTo(0, originalScrollY);\n return {\n success: false,\n error: error instanceof Error ? error.message : String(error)\n };\n }\n}\nasync function captureMultipleSections(sectionCount) {\n const originalScrollY = window.scrollY;\n const results = [];\n const totalHeight = document.documentElement.scrollHeight;\n const viewportHeight = window.innerHeight;\n const sections = sectionCount || Math.ceil(totalHeight / viewportHeight);\n try {\n for (let i = 0; i < sections; i++) {\n const scrollY = Math.min(i * viewportHeight, totalHeight - viewportHeight);\n const result = await captureScreenshot({ scrollTo: scrollY });\n if (result.success) {\n results.push({ ...result, section: i + 1, totalSections: sections });\n }\n }\n } finally {\n window.scrollTo(0, originalScrollY);\n }\n return results;\n}\n\n// src/studio/bridge/bridge-message-handler.ts\nvar SAFE_PROTOCOLS = /* @__PURE__ */ new Set([\"http:\", \"https:\"]);\nfunction sanitizeNavigationUrl(url) {\n if (typeof url !== \"string\" || url.length === 0) return null;\n try {\n const parsed = new URL(url, window.location.origin);\n if (!SAFE_PROTOCOLS.has(parsed.protocol)) return null;\n if (parsed.origin === window.location.origin) return parsed.href;\n const host = parsed.hostname;\n if (host !== \"veryfront.com\" && !host.endsWith(\".veryfront.com\")) return null;\n return parsed.href;\n } catch {\n return null;\n }\n}\nfunction clearSelection(notifyStudio = false) {\n state.selectedNodeId = null;\n hideOverlay(state.selectionOverlay);\n if (notifyStudio) {\n postToStudio({ action: \"setSelectedNode\", id: null });\n }\n}\nfunction disableInspectMode(deselectElements = false) {\n state.inspectMode = false;\n hideOverlay(state.hoverOverlay);\n state.hoveredNodeId = null;\n if (deselectElements) {\n clearSelection();\n }\n}\nfunction postScreenshotResult(requestId, result) {\n postToStudio({\n action: \"screenshotResult\",\n requestId,\n multiple: false,\n ...result\n });\n}\nasync function handleScreenshotRequest(message) {\n if (message.multipleSections) {\n const results = await captureMultipleSections(message.sectionCount);\n postToStudio({\n action: \"screenshotResult\",\n requestId: message.requestId,\n multiple: true,\n results\n });\n return;\n }\n const result = await captureScreenshot(message.options);\n postScreenshotResult(message.requestId, result);\n}\nfunction handleStudioMessage(event) {\n if (!isFromStudio(event)) return;\n const message = event.data;\n if (!message?.action) return;\n const config3 = getConfig();\n switch (message.action) {\n case \"routeChange\": {\n const safeUrl = sanitizeNavigationUrl(message.url);\n if (!safeUrl) {\n logger.warn(\"[StudioBridge] Blocked unsafe URL in routeChange\", { url: message.url });\n return;\n }\n if (state.selectedNodeId) {\n clearSelection(true);\n }\n postToStudio({\n action: \"onPageTransitionStart\",\n url: safeUrl,\n projectId: config3.projectId\n });\n window.location.href = safeUrl;\n return;\n }\n case \"reload\":\n window.location.reload();\n return;\n case \"goBack\":\n window.history.back();\n return;\n case \"goForward\":\n window.history.forward();\n return;\n case \"colorMode\":\n setColorMode(message.value);\n return;\n case \"toggleInspectMode\":\n state.inspectMode = message.value;\n if (state.inspectMode) return;\n disableInspectMode(message.deselectElements);\n return;\n case \"setSelectedNode\":\n state.selectedNodeId = message.id;\n showSelectionOverlay(message.id);\n if (message.scroll) scrollToElement(message.id);\n return;\n case \"setHoveredNode\":\n if (!state.inspectMode) showHoverOverlay(message.id);\n return;\n case \"screenshot\":\n void handleScreenshotRequest(message);\n return;\n default:\n logger.debug(\"Unknown action\", { action: message.action });\n return;\n }\n}\n\n// src/studio/bridge/bridge-init.ts\nfunction notifyAppLoaded() {\n const config3 = getConfig();\n postToStudio({ action: \"appLoaded\", url: window.location.href });\n postToStudio({\n action: \"appUpdated\",\n url: window.location.href,\n id: config3.pageId,\n isInitialLoad: true,\n errors: [],\n warnings: []\n });\n postToStudio({\n action: \"onPageTransitionEnd\",\n url: window.location.href,\n projectId: config3.projectId,\n id: config3.pageId,\n params: {}\n });\n}\nfunction notifyAppUnloaded() {\n postToStudio({ action: \"appUnloaded\", url: window.location.href });\n}\nfunction init() {\n const params = new URLSearchParams(window.location.search);\n const studioEmbed = params.get(\"studio_embed\") === \"true\";\n const isStandalone = window.parent === window && !studioEmbed;\n if (isStandalone) {\n logger.debug(\n \"[StudioBridge] Not in iframe and not studio_embed mode, skipping initialization\"\n );\n return;\n }\n logger.debug(\"Initializing...\");\n if (!isStandalone) {\n injectOverlayStyles();\n state.hoverOverlay = createOverlay(\"hover\");\n state.selectionOverlay = createOverlay(\"selection\");\n setupConsoleCapture();\n setupErrorHandling();\n setupInspectMode();\n }\n window.addEventListener(\"message\", handleStudioMessage);\n if (!isStandalone) {\n if (document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", function() {\n notifyAppLoaded();\n setupMutationObserver();\n }, { once: true });\n } else {\n notifyAppLoaded();\n setupMutationObserver();\n }\n window.addEventListener(\"beforeunload\", notifyAppUnloaded, { once: true });\n }\n const colorMode = params.get(\"color_mode\");\n if (colorMode) setColorMode(colorMode);\n if (!isStandalone) {\n const inspectModeParam = params.get(\"inspect_mode\");\n if (inspectModeParam === \"true\") {\n state.inspectMode = true;\n logger.debug(\"Inspect mode enabled from query param\");\n }\n }\n logger.debug(\"Initialized successfully\");\n}\n\n// src/studio/bridge/bridge-coordinator.ts\ninitConfig();\nvar config2 = getConfig();\nif (!config2.debugSkipInit) {\n init();\n}\n";
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const VOID_ELEMENTS = new Set([
|
|
2
|
-
"area",
|
|
3
|
-
"base",
|
|
4
|
-
"br",
|
|
5
|
-
"col",
|
|
6
|
-
"embed",
|
|
7
|
-
"hr",
|
|
8
|
-
"img",
|
|
9
|
-
"input",
|
|
10
|
-
"link",
|
|
11
|
-
"meta",
|
|
12
|
-
"param",
|
|
13
|
-
"source",
|
|
14
|
-
"track",
|
|
15
|
-
"wbr",
|
|
16
|
-
]);
|
|
17
|
-
|
|
18
|
-
const IGNORED_ELEMENTS = new Set([
|
|
19
|
-
"script",
|
|
20
|
-
"style",
|
|
21
|
-
"link",
|
|
22
|
-
"meta",
|
|
23
|
-
"noscript",
|
|
24
|
-
"head",
|
|
25
|
-
"html",
|
|
26
|
-
"!doctype",
|
|
27
|
-
]);
|
|
28
|
-
|
|
29
|
-
interface InjectorOptions {
|
|
30
|
-
/** Prefix for generated selectors */
|
|
31
|
-
prefix?: string;
|
|
32
|
-
/** Elements to skip (in addition to defaults) */
|
|
33
|
-
skipElements?: string[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/** Inject data-vf-selector attributes into HTML for Studio Navigator */
|
|
37
|
-
export function injectElementSelectors(
|
|
38
|
-
html: string,
|
|
39
|
-
options: InjectorOptions = {},
|
|
40
|
-
): string {
|
|
41
|
-
const { prefix = "vf", skipElements = [] } = options;
|
|
42
|
-
|
|
43
|
-
const skipSet = new Set([
|
|
44
|
-
...IGNORED_ELEMENTS,
|
|
45
|
-
...skipElements.map((e) => e.toLowerCase()),
|
|
46
|
-
]);
|
|
47
|
-
|
|
48
|
-
let counter = 0;
|
|
49
|
-
let inIgnoredElement = 0;
|
|
50
|
-
|
|
51
|
-
// Find the content div (id="root")
|
|
52
|
-
// Only inject selectors within the content area
|
|
53
|
-
const contentStartMatch = html.match(
|
|
54
|
-
/<div[^>]*id="root"[^>]*>/i,
|
|
55
|
-
);
|
|
56
|
-
const contentStart = contentStartMatch ? html.indexOf(contentStartMatch[0]) : 0;
|
|
57
|
-
|
|
58
|
-
return html.replace(
|
|
59
|
-
/<(\/?)?([a-zA-Z][a-zA-Z0-9-]*)((?:\s+[^>]*)?)\/?>/g,
|
|
60
|
-
(match, isClosing, tagName, attributes = "", offset) => {
|
|
61
|
-
const tag = tagName.toLowerCase();
|
|
62
|
-
const isVoid = VOID_ELEMENTS.has(tag);
|
|
63
|
-
const isSelfClosing = match.endsWith("/>");
|
|
64
|
-
|
|
65
|
-
if (isClosing) {
|
|
66
|
-
if (skipSet.has(tag) && !isVoid) {
|
|
67
|
-
inIgnoredElement = Math.max(0, inIgnoredElement - 1);
|
|
68
|
-
}
|
|
69
|
-
return match;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
if (skipSet.has(tag)) {
|
|
73
|
-
if (!isVoid) inIgnoredElement++;
|
|
74
|
-
return match;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (inIgnoredElement > 0 || offset < contentStart) return match;
|
|
78
|
-
if (/data-vf-(id|selector|ignore)/i.test(attributes)) return match;
|
|
79
|
-
|
|
80
|
-
const selectorId = `${prefix}-${tag}-${++counter}`;
|
|
81
|
-
const insertPoint = match.lastIndexOf(isSelfClosing ? "/>" : ">");
|
|
82
|
-
|
|
83
|
-
return (
|
|
84
|
-
match.slice(0, insertPoint) +
|
|
85
|
-
` data-vf-selector="${selectorId}"` +
|
|
86
|
-
match.slice(insertPoint)
|
|
87
|
-
);
|
|
88
|
-
},
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** Check if Studio embed mode is enabled from URL */
|
|
93
|
-
export function isStudioEmbed(url: URL | string): boolean {
|
|
94
|
-
const urlObj = typeof url === "string" ? new URL(url) : url;
|
|
95
|
-
return urlObj.searchParams.get("studio_embed") === "true";
|
|
96
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { fnv1aHash as computeSourceHash } from "../utils/hash-utils.js";
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Discovery
|
|
3
|
-
*
|
|
4
|
-
* Discovers task definitions from user's project `tasks/` directory.
|
|
5
|
-
* Follows the same patterns as workflow-discovery.ts.
|
|
6
|
-
*
|
|
7
|
-
* Scans:
|
|
8
|
-
* - tasks/*.ts - task definition files
|
|
9
|
-
* - tasks/**\/*.ts - nested task files
|
|
10
|
-
*
|
|
11
|
-
* Task files should export a task definition:
|
|
12
|
-
* ```typescript
|
|
13
|
-
* export default {
|
|
14
|
-
* name: "Sync external data",
|
|
15
|
-
* run: async (ctx) => {
|
|
16
|
-
* console.log("Syncing data...")
|
|
17
|
-
* return { synced: 42 }
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
import { join } from "../../deps/jsr.io/@std/path/1.1.4/mod.js";
|
|
24
|
-
import { logger as baseLogger } from "../utils/index.js";
|
|
25
|
-
import type { RuntimeAdapter } from "../platform/index.js";
|
|
26
|
-
import type { VeryfrontConfig } from "../config/index.js";
|
|
27
|
-
import { collectFiles } from "../utils/file-discovery.js";
|
|
28
|
-
import { importDiscoveryModule } from "../discovery/module-import.js";
|
|
29
|
-
import type { TaskDefinition } from "./types.js";
|
|
30
|
-
import { isTaskDefinition } from "./types.js";
|
|
31
|
-
|
|
32
|
-
const logger = baseLogger.component("task-discovery");
|
|
33
|
-
const TASK_FILE_EXTENSIONS = [".ts", ".tsx", ".js", ".jsx"] as const;
|
|
34
|
-
const TASK_IGNORE_PATTERNS = [
|
|
35
|
-
"node_modules",
|
|
36
|
-
".git",
|
|
37
|
-
"__tests__",
|
|
38
|
-
"*.test.*",
|
|
39
|
-
"*.spec.*",
|
|
40
|
-
] as const;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Discovered task info
|
|
44
|
-
*/
|
|
45
|
-
export interface DiscoveredTask {
|
|
46
|
-
/** Task ID derived from file path (e.g., "sync-data" from tasks/sync-data.ts) */
|
|
47
|
-
id: string;
|
|
48
|
-
|
|
49
|
-
/** Human-readable name from task definition */
|
|
50
|
-
name: string;
|
|
51
|
-
|
|
52
|
-
/** File path where the task is defined */
|
|
53
|
-
filePath: string;
|
|
54
|
-
|
|
55
|
-
/** Export name (e.g., "default" or named export) */
|
|
56
|
-
exportName: string;
|
|
57
|
-
|
|
58
|
-
/** The task definition */
|
|
59
|
-
definition: TaskDefinition;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Options for task discovery
|
|
64
|
-
*/
|
|
65
|
-
export interface TaskDiscoveryOptions {
|
|
66
|
-
/** Project directory */
|
|
67
|
-
projectDir: string;
|
|
68
|
-
|
|
69
|
-
/** Runtime adapter for filesystem operations */
|
|
70
|
-
adapter: RuntimeAdapter;
|
|
71
|
-
|
|
72
|
-
/** Veryfront config (for import maps, etc.) */
|
|
73
|
-
config?: VeryfrontConfig;
|
|
74
|
-
|
|
75
|
-
/** Base directory for tasks (default: "tasks") */
|
|
76
|
-
tasksDir?: string;
|
|
77
|
-
|
|
78
|
-
/** Enable debug logging */
|
|
79
|
-
debug?: boolean;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Result of task discovery
|
|
84
|
-
*/
|
|
85
|
-
export interface TaskDiscoveryResult {
|
|
86
|
-
/** All discovered tasks */
|
|
87
|
-
tasks: DiscoveredTask[];
|
|
88
|
-
|
|
89
|
-
/** Errors encountered during discovery */
|
|
90
|
-
errors: Array<{ filePath: string; error: string }>;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function resolveTasksBaseDir(
|
|
94
|
-
projectDir: string,
|
|
95
|
-
tasksDir: string,
|
|
96
|
-
config?: VeryfrontConfig,
|
|
97
|
-
): string {
|
|
98
|
-
const fsType = config?.fs?.type ?? "local";
|
|
99
|
-
return fsType === "github" || fsType === "veryfront-api" ? tasksDir : join(projectDir, tasksDir);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function toErrorMessage(error: unknown): string {
|
|
103
|
-
return error instanceof Error ? error.message : String(error);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
async function collectTaskFiles(baseDir: string, adapter: RuntimeAdapter): Promise<
|
|
107
|
-
Awaited<ReturnType<typeof collectFiles>>
|
|
108
|
-
> {
|
|
109
|
-
return await collectFiles({
|
|
110
|
-
baseDir,
|
|
111
|
-
extensions: [...TASK_FILE_EXTENSIONS],
|
|
112
|
-
recursive: true,
|
|
113
|
-
ignorePatterns: [...TASK_IGNORE_PATTERNS],
|
|
114
|
-
adapter,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
function extractTaskExport(
|
|
119
|
-
module: Record<string, unknown>,
|
|
120
|
-
): { exportName: string; definition: TaskDefinition } | null {
|
|
121
|
-
const defaultExport = module.default;
|
|
122
|
-
if (isTaskDefinition(defaultExport)) {
|
|
123
|
-
return { exportName: "default", definition: defaultExport };
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
for (const [exportName, value] of Object.entries(module)) {
|
|
127
|
-
if (exportName !== "default" && isTaskDefinition(value)) {
|
|
128
|
-
return { exportName, definition: value };
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
async function loadTaskFromFile(
|
|
136
|
-
filePath: string,
|
|
137
|
-
id: string,
|
|
138
|
-
adapter: RuntimeAdapter,
|
|
139
|
-
projectDir: string,
|
|
140
|
-
): Promise<DiscoveredTask | null> {
|
|
141
|
-
const module = await importDiscoveryModule(filePath, {
|
|
142
|
-
adapter,
|
|
143
|
-
projectDir,
|
|
144
|
-
}) as Record<string, unknown>;
|
|
145
|
-
const taskExport = extractTaskExport(module);
|
|
146
|
-
if (!taskExport) return null;
|
|
147
|
-
|
|
148
|
-
return {
|
|
149
|
-
id,
|
|
150
|
-
name: taskExport.definition.name || id,
|
|
151
|
-
filePath,
|
|
152
|
-
exportName: taskExport.exportName,
|
|
153
|
-
definition: taskExport.definition,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
function logDiscoveredTask(task: DiscoveredTask, debug: boolean): void {
|
|
158
|
-
if (debug) {
|
|
159
|
-
logger.info(`Found task "${task.id}" in ${task.filePath} (export: ${task.exportName})`);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Derive task ID from file path (e.g., "tasks/sync-data.ts" → "sync-data")
|
|
165
|
-
*/
|
|
166
|
-
export function deriveTaskId(filePath: string, tasksDir: string): string {
|
|
167
|
-
// Remove the tasks dir prefix and extension
|
|
168
|
-
let relative = filePath;
|
|
169
|
-
const dirPrefix = tasksDir.endsWith("/") ? tasksDir : `${tasksDir}/`;
|
|
170
|
-
if (relative.startsWith(dirPrefix)) {
|
|
171
|
-
relative = relative.slice(dirPrefix.length);
|
|
172
|
-
}
|
|
173
|
-
// Remove extension
|
|
174
|
-
return relative.replace(/\.(ts|tsx|js|jsx)$/, "");
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Discover all tasks in a project
|
|
179
|
-
*/
|
|
180
|
-
export async function discoverTasks(
|
|
181
|
-
options: TaskDiscoveryOptions,
|
|
182
|
-
): Promise<TaskDiscoveryResult> {
|
|
183
|
-
const {
|
|
184
|
-
projectDir,
|
|
185
|
-
adapter,
|
|
186
|
-
config,
|
|
187
|
-
tasksDir = "tasks",
|
|
188
|
-
debug = false,
|
|
189
|
-
} = options;
|
|
190
|
-
|
|
191
|
-
const tasks: DiscoveredTask[] = [];
|
|
192
|
-
const errors: Array<{ filePath: string; error: string }> = [];
|
|
193
|
-
const baseDir = resolveTasksBaseDir(projectDir, tasksDir, config);
|
|
194
|
-
|
|
195
|
-
if (debug) {
|
|
196
|
-
logger.info(`Scanning ${baseDir} for tasks`);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
try {
|
|
200
|
-
const dirExists = await adapter.fs.exists(baseDir);
|
|
201
|
-
if (!dirExists) {
|
|
202
|
-
if (debug) {
|
|
203
|
-
logger.info(`No tasks directory found at ${baseDir}`);
|
|
204
|
-
}
|
|
205
|
-
return { tasks, errors };
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
const files = await collectTaskFiles(baseDir, adapter);
|
|
209
|
-
|
|
210
|
-
if (debug) {
|
|
211
|
-
logger.info(`Found ${files.length} potential task files`);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
for (const file of files) {
|
|
215
|
-
try {
|
|
216
|
-
const task = await loadTaskFromFile(
|
|
217
|
-
file.path,
|
|
218
|
-
deriveTaskId(file.path, baseDir),
|
|
219
|
-
adapter,
|
|
220
|
-
projectDir,
|
|
221
|
-
);
|
|
222
|
-
if (task) {
|
|
223
|
-
tasks.push(task);
|
|
224
|
-
logDiscoveredTask(task, debug);
|
|
225
|
-
}
|
|
226
|
-
} catch (error) {
|
|
227
|
-
const errorMsg = toErrorMessage(error);
|
|
228
|
-
errors.push({ filePath: file.path, error: errorMsg });
|
|
229
|
-
|
|
230
|
-
if (debug) {
|
|
231
|
-
logger.warn(`Failed to load ${file.path}: ${errorMsg}`);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (debug) {
|
|
237
|
-
logger.info(`Discovered ${tasks.length} tasks`);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return { tasks, errors };
|
|
241
|
-
} catch (error) {
|
|
242
|
-
const errorMsg = toErrorMessage(error);
|
|
243
|
-
logger.error(`Task discovery failed: ${errorMsg}`);
|
|
244
|
-
errors.push({ filePath: baseDir, error: errorMsg });
|
|
245
|
-
return { tasks, errors };
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Find a specific task by ID, short-circuiting discovery once found.
|
|
251
|
-
*/
|
|
252
|
-
export async function findTaskById(
|
|
253
|
-
taskId: string,
|
|
254
|
-
options: TaskDiscoveryOptions,
|
|
255
|
-
): Promise<DiscoveredTask | null> {
|
|
256
|
-
const {
|
|
257
|
-
projectDir,
|
|
258
|
-
adapter,
|
|
259
|
-
config,
|
|
260
|
-
tasksDir = "tasks",
|
|
261
|
-
debug = false,
|
|
262
|
-
} = options;
|
|
263
|
-
const baseDir = resolveTasksBaseDir(projectDir, tasksDir, config);
|
|
264
|
-
|
|
265
|
-
try {
|
|
266
|
-
const dirExists = await adapter.fs.exists(baseDir);
|
|
267
|
-
if (!dirExists) return null;
|
|
268
|
-
|
|
269
|
-
const files = await collectTaskFiles(baseDir, adapter);
|
|
270
|
-
|
|
271
|
-
for (const file of files) {
|
|
272
|
-
const id = deriveTaskId(file.path, baseDir);
|
|
273
|
-
if (id !== taskId) continue;
|
|
274
|
-
|
|
275
|
-
try {
|
|
276
|
-
const task = await loadTaskFromFile(file.path, id, adapter, projectDir);
|
|
277
|
-
if (task) {
|
|
278
|
-
logDiscoveredTask(task, debug);
|
|
279
|
-
return task;
|
|
280
|
-
}
|
|
281
|
-
} catch (error) {
|
|
282
|
-
const errorMsg = toErrorMessage(error);
|
|
283
|
-
if (debug) {
|
|
284
|
-
logger.warn(`Failed to load ${file.path}: ${errorMsg}`);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
} catch (error) {
|
|
289
|
-
const errorMsg = toErrorMessage(error);
|
|
290
|
-
logger.error(`Task discovery failed while finding "${taskId}": ${errorMsg}`);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
return null;
|
|
294
|
-
}
|
package/src/src/task/runner.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Runner
|
|
3
|
-
*
|
|
4
|
-
* Executes a discovered task by calling its run() function
|
|
5
|
-
* with the appropriate context.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { logger as baseLogger } from "../utils/index.js";
|
|
9
|
-
import { env as getProcessEnv } from "../platform/compat/process.js";
|
|
10
|
-
import { buildTaskContextEnv } from "../jobs/runtime-env.js";
|
|
11
|
-
import type { DiscoveredTask } from "./discovery.js";
|
|
12
|
-
import type { TaskContext } from "./types.js";
|
|
13
|
-
|
|
14
|
-
const logger = baseLogger.component("task-runner");
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Options for running a task
|
|
18
|
-
*/
|
|
19
|
-
export interface RunTaskOptions {
|
|
20
|
-
/** The discovered task to run */
|
|
21
|
-
task: DiscoveredTask;
|
|
22
|
-
|
|
23
|
-
/** Additional config to pass to the task */
|
|
24
|
-
config?: Record<string, unknown>;
|
|
25
|
-
|
|
26
|
-
/** Project ID (for cloud context) */
|
|
27
|
-
projectId?: string;
|
|
28
|
-
|
|
29
|
-
/** If set, only these env var names are passed to the task. */
|
|
30
|
-
envAllowlist?: string[];
|
|
31
|
-
|
|
32
|
-
/** Enable debug logging */
|
|
33
|
-
debug?: boolean;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Result of running a task
|
|
38
|
-
*/
|
|
39
|
-
export interface TaskRunResult {
|
|
40
|
-
/** Whether the task completed successfully */
|
|
41
|
-
success: boolean;
|
|
42
|
-
|
|
43
|
-
/** Return value from the task's run() */
|
|
44
|
-
result?: unknown;
|
|
45
|
-
|
|
46
|
-
/** Error if the task failed */
|
|
47
|
-
error?: string;
|
|
48
|
-
|
|
49
|
-
/** Execution duration in milliseconds */
|
|
50
|
-
durationMs: number;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Run a task with the given options
|
|
55
|
-
*/
|
|
56
|
-
export async function runTask(options: RunTaskOptions): Promise<TaskRunResult> {
|
|
57
|
-
const { task, config = {}, projectId, envAllowlist, debug = false } = options;
|
|
58
|
-
const start = Date.now();
|
|
59
|
-
|
|
60
|
-
if (debug) {
|
|
61
|
-
logger.info(`Running task "${task.id}" (${task.name})`);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const allEnv = getProcessEnv();
|
|
65
|
-
const env = buildTaskContextEnv(allEnv, envAllowlist);
|
|
66
|
-
|
|
67
|
-
const ctx: TaskContext = {
|
|
68
|
-
env,
|
|
69
|
-
config,
|
|
70
|
-
projectId,
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
try {
|
|
74
|
-
const result = await task.definition.run(ctx);
|
|
75
|
-
const durationMs = Date.now() - start;
|
|
76
|
-
|
|
77
|
-
if (debug) {
|
|
78
|
-
logger.info(`Task "${task.id}" completed in ${durationMs}ms`);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return { success: true, result, durationMs };
|
|
82
|
-
} catch (error) {
|
|
83
|
-
const durationMs = Date.now() - start;
|
|
84
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
85
|
-
|
|
86
|
-
logger.error(`Task "${task.id}" failed: ${errorMsg}`);
|
|
87
|
-
|
|
88
|
-
return { success: false, error: errorMsg, durationMs };
|
|
89
|
-
}
|
|
90
|
-
}
|
package/src/src/task/types.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Types
|
|
3
|
-
*
|
|
4
|
-
* Type definitions for the task execution system.
|
|
5
|
-
* Tasks are user-defined functions in `tasks/` that can run
|
|
6
|
-
* locally via `veryfront task <name>` or in the cloud as Jobs/CronJobs.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Context passed to task run() function
|
|
11
|
-
*/
|
|
12
|
-
export interface TaskContext {
|
|
13
|
-
/** Environment variables */
|
|
14
|
-
env: Record<string, string>;
|
|
15
|
-
/** Job config (when run as a cloud job) */
|
|
16
|
-
config: Record<string, unknown>;
|
|
17
|
-
/** Project ID (when run as a cloud job) */
|
|
18
|
-
projectId?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Task definition exported from a tasks/ file
|
|
23
|
-
*/
|
|
24
|
-
export interface TaskDefinition {
|
|
25
|
-
/** Human-readable name */
|
|
26
|
-
name?: string;
|
|
27
|
-
/** Task description */
|
|
28
|
-
description?: string;
|
|
29
|
-
/** Optional JSON-schema-like input contract surfaced in APIs/UIs */
|
|
30
|
-
inputSchema?: Record<string, unknown>;
|
|
31
|
-
/** Optional JSON-schema-like output contract surfaced in APIs/UIs */
|
|
32
|
-
outputSchema?: Record<string, unknown>;
|
|
33
|
-
/** Whether this task can be scheduled via cron jobs */
|
|
34
|
-
schedulable?: boolean;
|
|
35
|
-
/** The function to execute */
|
|
36
|
-
run: (ctx: TaskContext) => Promise<unknown> | unknown;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Type guard: checks if a value looks like a TaskDefinition
|
|
41
|
-
*/
|
|
42
|
-
export function isTaskDefinition(value: unknown): value is TaskDefinition {
|
|
43
|
-
if (!value || typeof value !== "object") return false;
|
|
44
|
-
const obj = value as Record<string, unknown>;
|
|
45
|
-
return typeof obj.run === "function";
|
|
46
|
-
}
|