veryfront 0.1.545 → 0.1.547
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/cli/templates/manifest.js +6 -6
- package/esm/deno.js +3 -3
- package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.d.ts.map +1 -1
- package/esm/extensions/ext-document-kreuzberg/src/kreuzberg.js +28 -2
- package/esm/extensions/ext-sandbox-shell-tools/src/index.d.ts.map +1 -1
- package/esm/extensions/ext-sandbox-shell-tools/src/index.js +22 -2
- package/esm/src/agent/ag-ui/handler.d.ts +2 -0
- package/esm/src/agent/ag-ui/handler.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/handler.js +43 -10
- package/esm/src/agent/ag-ui/host-support.d.ts.map +1 -1
- package/esm/src/agent/ag-ui/host-support.js +51 -10
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.d.ts.map +1 -1
- package/esm/src/agent/hosted/veryfront-cloud-agent-service.js +21 -1
- package/esm/src/agent/index.d.ts +28 -11
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +27 -11
- package/esm/src/agent/react/use-chat/browser-inference/browser-engine.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/browser-inference/worker-client.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts +1 -1
- package/esm/src/agent/react/use-chat/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.d.ts +1 -0
- package/esm/src/agent/react/use-chat/streaming/handler.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/handler.js +121 -6
- package/esm/src/agent/react/use-chat/streaming/index.d.ts +1 -1
- package/esm/src/agent/react/use-chat/streaming/index.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/streaming/index.js +1 -1
- package/esm/src/agent/react/use-chat/types.d.ts +2 -0
- package/esm/src/agent/react/use-chat/types.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.d.ts +4 -2
- package/esm/src/agent/react/use-chat/use-chat.d.ts.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +8 -4
- package/esm/src/agent/runtime/index.js +2 -2
- package/esm/src/agent/service/before-stream.d.ts +31 -0
- package/esm/src/agent/service/before-stream.d.ts.map +1 -0
- package/esm/src/agent/service/before-stream.js +64 -0
- package/esm/src/chat/ag-ui.d.ts +2 -2
- package/esm/src/chat/ag-ui.d.ts.map +1 -1
- package/esm/src/chat/ag-ui.js +105 -29
- package/esm/src/integrations/index.d.ts +8 -1
- package/esm/src/integrations/index.d.ts.map +1 -1
- package/esm/src/integrations/index.js +8 -1
- package/esm/src/jobs/index.d.ts +0 -1
- package/esm/src/jobs/index.d.ts.map +1 -1
- package/esm/src/jobs/index.js +0 -1
- package/esm/src/mcp/index.d.ts +2 -6
- package/esm/src/mcp/index.d.ts.map +1 -1
- package/esm/src/mcp/index.js +2 -6
- package/esm/src/platform/compat/opaque-dependency-versions.d.ts +5 -0
- package/esm/src/platform/compat/opaque-dependency-versions.d.ts.map +1 -0
- package/esm/src/platform/compat/opaque-dependency-versions.js +4 -0
- package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
- package/esm/src/platform/compat/opaque-deps.js +3 -2
- package/esm/src/prompt/index.d.ts +5 -0
- package/esm/src/prompt/index.d.ts.map +1 -1
- package/esm/src/prompt/index.js +5 -0
- package/esm/src/resource/index.d.ts +10 -7
- package/esm/src/resource/index.d.ts.map +1 -1
- package/esm/src/resource/index.js +10 -7
- package/esm/src/sandbox/types.d.ts +1 -1
- package/esm/src/sandbox/types.d.ts.map +1 -1
- package/esm/src/tool/index.d.ts +44 -24
- package/esm/src/tool/index.d.ts.map +1 -1
- package/esm/src/tool/index.js +44 -24
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +54 -23
- package/esm/src/agent/service/chat-handler.d.ts +0 -69
- package/esm/src/agent/service/chat-handler.d.ts.map +0 -1
- package/esm/src/agent/service/chat-handler.js +0 -311
- package/src/_dnt.polyfills.ts +0 -558
- package/src/_dnt.shims.ts +0 -71
- package/src/cli/app/actions.ts +0 -149
- package/src/cli/app/components/inline-input.ts +0 -243
- package/src/cli/app/components/list-select.ts +0 -197
- package/src/cli/app/data/slug-words.ts +0 -303
- package/src/cli/app/handlers/remote-navigation.ts +0 -65
- package/src/cli/app/handlers/view-handlers.ts +0 -173
- package/src/cli/app/index.ts +0 -19
- package/src/cli/app/logging/console-interceptor.ts +0 -97
- package/src/cli/app/operations/project-creation.ts +0 -71
- package/src/cli/app/shell.ts +0 -666
- package/src/cli/app/startup.ts +0 -48
- package/src/cli/app/state.ts +0 -383
- package/src/cli/app/types.ts +0 -40
- package/src/cli/app/utils.ts +0 -65
- package/src/cli/app/views/auth.ts +0 -30
- package/src/cli/app/views/dashboard.ts +0 -189
- package/src/cli/app/views/help.ts +0 -65
- package/src/cli/app/views/index.ts +0 -12
- package/src/cli/app/views/new-project.ts +0 -36
- package/src/cli/app/views/startup.ts +0 -112
- package/src/cli/app/views/templates.ts +0 -35
- package/src/cli/auth/browser.ts +0 -26
- package/src/cli/auth/callback-server.ts +0 -297
- package/src/cli/auth/index.ts +0 -16
- package/src/cli/auth/login.ts +0 -303
- package/src/cli/auth/provider-store.ts +0 -82
- package/src/cli/auth/providers/anthropic.ts +0 -45
- package/src/cli/auth/providers/openai.ts +0 -44
- package/src/cli/auth/token-store.ts +0 -63
- package/src/cli/auth/utils.ts +0 -31
- package/src/cli/commands/analyze-chunks/command-help.ts +0 -18
- package/src/cli/commands/analyze-chunks/command.ts +0 -89
- package/src/cli/commands/analyze-chunks/handler.ts +0 -33
- package/src/cli/commands/build/command-help.ts +0 -51
- package/src/cli/commands/build/command.ts +0 -93
- package/src/cli/commands/build/config-display.ts +0 -48
- package/src/cli/commands/build/error-handler.ts +0 -30
- package/src/cli/commands/build/handler.ts +0 -103
- package/src/cli/commands/build/stats-display.ts +0 -40
- package/src/cli/commands/build/types.ts +0 -1
- package/src/cli/commands/clean/command-help.ts +0 -33
- package/src/cli/commands/clean/command.ts +0 -151
- package/src/cli/commands/clean/handler.ts +0 -33
- package/src/cli/commands/completions/command-help.ts +0 -15
- package/src/cli/commands/completions/command.ts +0 -163
- package/src/cli/commands/completions/handler.ts +0 -29
- package/src/cli/commands/config/command-help.ts +0 -15
- package/src/cli/commands/config/handler.ts +0 -90
- package/src/cli/commands/demo/command-help.ts +0 -27
- package/src/cli/commands/demo/demo.ts +0 -630
- package/src/cli/commands/demo/handler.ts +0 -30
- package/src/cli/commands/demo/index.ts +0 -2
- package/src/cli/commands/demo/steps.ts +0 -68
- package/src/cli/commands/deploy/command-help.ts +0 -42
- package/src/cli/commands/deploy/command.ts +0 -287
- package/src/cli/commands/deploy/handler.ts +0 -13
- package/src/cli/commands/deploy/index.ts +0 -14
- package/src/cli/commands/dev/command-help.ts +0 -34
- package/src/cli/commands/dev/command.ts +0 -337
- package/src/cli/commands/dev/handler.ts +0 -76
- package/src/cli/commands/dev/index.ts +0 -7
- package/src/cli/commands/doctor/ai-checks.ts +0 -65
- package/src/cli/commands/doctor/command-help.ts +0 -15
- package/src/cli/commands/doctor/handler.ts +0 -27
- package/src/cli/commands/doctor/index.ts +0 -89
- package/src/cli/commands/doctor/project-structure.ts +0 -56
- package/src/cli/commands/doctor/server-checks.ts +0 -142
- package/src/cli/commands/doctor/types.ts +0 -6
- package/src/cli/commands/doctor/version-checks.ts +0 -67
- package/src/cli/commands/extension/command-help.ts +0 -18
- package/src/cli/commands/extension/handler.ts +0 -41
- package/src/cli/commands/extension/init-command.ts +0 -150
- package/src/cli/commands/extension/validate-command.ts +0 -78
- package/src/cli/commands/files/command-help.ts +0 -41
- package/src/cli/commands/files/command.ts +0 -343
- package/src/cli/commands/files/handler.ts +0 -6
- package/src/cli/commands/files/index.ts +0 -19
- package/src/cli/commands/generate/command-help.ts +0 -21
- package/src/cli/commands/generate/command.ts +0 -155
- package/src/cli/commands/generate/handler.ts +0 -55
- package/src/cli/commands/generate/index.ts +0 -6
- package/src/cli/commands/generate/integration-generator-helpers.ts +0 -185
- package/src/cli/commands/generate/integration-generator.ts +0 -782
- package/src/cli/commands/init/catalog.ts +0 -224
- package/src/cli/commands/init/command-help.ts +0 -54
- package/src/cli/commands/init/config-generator.ts +0 -84
- package/src/cli/commands/init/handler.ts +0 -79
- package/src/cli/commands/init/index.ts +0 -8
- package/src/cli/commands/init/init-command.ts +0 -566
- package/src/cli/commands/init/interactive-wizard.ts +0 -170
- package/src/cli/commands/init/path-utils.ts +0 -15
- package/src/cli/commands/init/types.ts +0 -28
- package/src/cli/commands/install/command-help.ts +0 -63
- package/src/cli/commands/install/detect.ts +0 -51
- package/src/cli/commands/install/handler.ts +0 -33
- package/src/cli/commands/install/install.ts +0 -112
- package/src/cli/commands/install/registry.ts +0 -79
- package/src/cli/commands/install/types.ts +0 -58
- package/src/cli/commands/install/uninstall.ts +0 -139
- package/src/cli/commands/issues/command-help.ts +0 -50
- package/src/cli/commands/issues/command.ts +0 -364
- package/src/cli/commands/issues/handler.ts +0 -10
- package/src/cli/commands/issues/index.ts +0 -6
- package/src/cli/commands/knowledge/command-help.ts +0 -44
- package/src/cli/commands/knowledge/command-helpers.ts +0 -295
- package/src/cli/commands/knowledge/command.ts +0 -802
- package/src/cli/commands/knowledge/handler.ts +0 -6
- package/src/cli/commands/knowledge/index.ts +0 -2
- package/src/cli/commands/knowledge/parser-source.ts +0 -641
- package/src/cli/commands/knowledge/result.ts +0 -88
- package/src/cli/commands/knowledge/source-policy.ts +0 -164
- package/src/cli/commands/lint/command-help.ts +0 -15
- package/src/cli/commands/lint/command.ts +0 -59
- package/src/cli/commands/lint/handler.ts +0 -36
- package/src/cli/commands/lock/command-help.ts +0 -42
- package/src/cli/commands/lock/command.ts +0 -193
- package/src/cli/commands/lock/handler.ts +0 -35
- package/src/cli/commands/login/command-help.ts +0 -38
- package/src/cli/commands/logout/command-help.ts +0 -14
- package/src/cli/commands/mcp/command-help.ts +0 -36
- package/src/cli/commands/mcp/handler.ts +0 -37
- package/src/cli/commands/merge/command-help.ts +0 -32
- package/src/cli/commands/merge/command.ts +0 -224
- package/src/cli/commands/merge/handler.ts +0 -13
- package/src/cli/commands/open/command-help.ts +0 -19
- package/src/cli/commands/open/command.ts +0 -33
- package/src/cli/commands/open/handler.ts +0 -38
- package/src/cli/commands/pull/command-help.ts +0 -56
- package/src/cli/commands/pull/command.ts +0 -491
- package/src/cli/commands/pull/handler.ts +0 -13
- package/src/cli/commands/pull/index.ts +0 -3
- package/src/cli/commands/push/command-help.ts +0 -39
- package/src/cli/commands/push/command.ts +0 -404
- package/src/cli/commands/push/handler.ts +0 -13
- package/src/cli/commands/push/index.ts +0 -3
- package/src/cli/commands/routes/command-help.ts +0 -15
- package/src/cli/commands/routes/command.ts +0 -88
- package/src/cli/commands/routes/handler.ts +0 -31
- package/src/cli/commands/schema/command-help.ts +0 -17
- package/src/cli/commands/schema/command.ts +0 -64
- package/src/cli/commands/schema/handler.ts +0 -36
- package/src/cli/commands/serve/command-help.ts +0 -25
- package/src/cli/commands/serve/command.ts +0 -120
- package/src/cli/commands/serve/handler.ts +0 -43
- package/src/cli/commands/serve/split-mode.ts +0 -193
- package/src/cli/commands/skills/command-help.ts +0 -23
- package/src/cli/commands/skills/command.ts +0 -23
- package/src/cli/commands/skills/create.ts +0 -87
- package/src/cli/commands/skills/handler.ts +0 -106
- package/src/cli/commands/skills/validate.ts +0 -110
- package/src/cli/commands/start/command-help.ts +0 -52
- package/src/cli/commands/start/command.ts +0 -258
- package/src/cli/commands/start/handler.ts +0 -35
- package/src/cli/commands/studio/command-help.ts +0 -27
- package/src/cli/commands/studio/command.ts +0 -96
- package/src/cli/commands/studio/handler.ts +0 -28
- package/src/cli/commands/studio/index.ts +0 -6
- package/src/cli/commands/styles/command-help.ts +0 -22
- package/src/cli/commands/styles/command.ts +0 -303
- package/src/cli/commands/styles/handler.ts +0 -28
- package/src/cli/commands/task/command-help.ts +0 -23
- package/src/cli/commands/task/command.ts +0 -112
- package/src/cli/commands/task/handler.ts +0 -28
- package/src/cli/commands/test/command-help.ts +0 -18
- package/src/cli/commands/test/command.ts +0 -90
- package/src/cli/commands/test/handler.ts +0 -74
- package/src/cli/commands/up/command-help.ts +0 -25
- package/src/cli/commands/up/command.ts +0 -218
- package/src/cli/commands/up/handler.ts +0 -11
- package/src/cli/commands/up/index.ts +0 -7
- package/src/cli/commands/uploads/command-help.ts +0 -46
- package/src/cli/commands/uploads/command.ts +0 -482
- package/src/cli/commands/uploads/handler.ts +0 -6
- package/src/cli/commands/uploads/index.ts +0 -23
- package/src/cli/commands/whoami/command-help.ts +0 -14
- package/src/cli/commands/worker/command-help.ts +0 -49
- package/src/cli/commands/worker/command.ts +0 -114
- package/src/cli/commands/worker/handler.ts +0 -36
- package/src/cli/commands/workflow/command-help.ts +0 -22
- package/src/cli/commands/workflow/command.ts +0 -157
- package/src/cli/commands/workflow/handler.ts +0 -30
- package/src/cli/help/command-definitions.ts +0 -96
- package/src/cli/help/command-help.ts +0 -73
- package/src/cli/help/formatters.ts +0 -102
- package/src/cli/help/index.ts +0 -6
- package/src/cli/help/logo.ts +0 -5
- package/src/cli/help/main-help.ts +0 -98
- package/src/cli/help/tips.ts +0 -54
- package/src/cli/help/types.ts +0 -25
- package/src/cli/main.ts +0 -74
- package/src/cli/mcp/advanced-tools.ts +0 -61
- package/src/cli/mcp/dev-server-client.ts +0 -82
- package/src/cli/mcp/index.ts +0 -2
- package/src/cli/mcp/jsonrpc.ts +0 -186
- package/src/cli/mcp/remote-file-tool-helpers.ts +0 -27
- package/src/cli/mcp/remote-file-tools.ts +0 -826
- package/src/cli/mcp/server.ts +0 -531
- package/src/cli/mcp/standalone.ts +0 -646
- package/src/cli/mcp/stdio.ts +0 -57
- package/src/cli/mcp/tools/bootstrap-tool.ts +0 -71
- package/src/cli/mcp/tools/build-tool.ts +0 -119
- package/src/cli/mcp/tools/catalog-tools.ts +0 -507
- package/src/cli/mcp/tools/cicd-tools.ts +0 -17
- package/src/cli/mcp/tools/context7-tools.ts +0 -114
- package/src/cli/mcp/tools/deploy-tool.ts +0 -136
- package/src/cli/mcp/tools/dev-tools.ts +0 -475
- package/src/cli/mcp/tools/helpers.ts +0 -141
- package/src/cli/mcp/tools/introspection-tools.ts +0 -53
- package/src/cli/mcp/tools/project-tools.ts +0 -412
- package/src/cli/mcp/tools/run-lint-tool.ts +0 -109
- package/src/cli/mcp/tools/run-tests-tool.ts +0 -117
- package/src/cli/mcp/tools/scaffold-tools.ts +0 -433
- package/src/cli/mcp/tools/skill-tools.ts +0 -194
- package/src/cli/mcp/tools.ts +0 -267
- package/src/cli/router.ts +0 -299
- package/src/cli/shared/animation.ts +0 -25
- package/src/cli/shared/args.ts +0 -269
- package/src/cli/shared/config.ts +0 -258
- package/src/cli/shared/constants.ts +0 -29
- package/src/cli/shared/ensure-content-processor.ts +0 -17
- package/src/cli/shared/handler-utils.ts +0 -17
- package/src/cli/shared/interactive.ts +0 -33
- package/src/cli/shared/json-output.ts +0 -96
- package/src/cli/shared/parsed-args.ts +0 -9
- package/src/cli/shared/project-source-context.ts +0 -96
- package/src/cli/shared/reserve-slug.ts +0 -114
- package/src/cli/shared/server-startup.ts +0 -119
- package/src/cli/shared/slug.ts +0 -12
- package/src/cli/shared/suggest.ts +0 -33
- package/src/cli/shared/types.ts +0 -36
- package/src/cli/shared/update-check.ts +0 -108
- package/src/cli/skills/core-skills.ts +0 -233
- package/src/cli/skills/loader.ts +0 -98
- package/src/cli/skills/types.ts +0 -44
- package/src/cli/sync/ignore.ts +0 -143
- package/src/cli/sync/index.ts +0 -21
- package/src/cli/sync/project-discovery.ts +0 -81
- package/src/cli/templates/feature-loader.ts +0 -201
- package/src/cli/templates/index.ts +0 -77
- package/src/cli/templates/integration-loader-helpers.ts +0 -49
- package/src/cli/templates/integration-loader.ts +0 -709
- package/src/cli/templates/loader.ts +0 -64
- package/src/cli/templates/manifest.js +0 -623
- package/src/cli/templates/types.ts +0 -78
- package/src/cli/ui/animated-text.ts +0 -89
- package/src/cli/ui/ansi.ts +0 -91
- package/src/cli/ui/box.ts +0 -1
- package/src/cli/ui/colors.ts +0 -240
- package/src/cli/ui/components/banner.ts +0 -170
- package/src/cli/ui/components/index.ts +0 -4
- package/src/cli/ui/components/multi-select.ts +0 -163
- package/src/cli/ui/components/shortcuts.ts +0 -30
- package/src/cli/ui/components/table.ts +0 -187
- package/src/cli/ui/constants.ts +0 -20
- package/src/cli/ui/dot-matrix.ts +0 -344
- package/src/cli/ui/index.ts +0 -7
- package/src/cli/ui/keyboard.ts +0 -138
- package/src/cli/ui/layout.ts +0 -142
- package/src/cli/ui/progress.ts +0 -246
- package/src/cli/ui/tui.ts +0 -311
- package/src/cli/utils/env-prompt.ts +0 -190
- package/src/cli/utils/fs.ts +0 -33
- package/src/cli/utils/git.ts +0 -58
- package/src/cli/utils/index.ts +0 -230
- package/src/cli/utils/package-manager.ts +0 -204
- package/src/cli/utils/project.ts +0 -16
- package/src/cli/utils/sanitize-job-output.ts +0 -23
- package/src/cli/utils/string.ts +0 -27
- package/src/cli/utils/terminal-select.ts +0 -371
- package/src/cli/utils/write-job-result.ts +0 -23
- package/src/deno.js +0 -429
- package/src/deps/esm.sh/@types/react-dom@19.2.3/client.d.ts +0 -105
- package/src/deps/esm.sh/@types/react-dom@19.2.3/server.d.ts +0 -183
- package/src/deps/esm.sh/@types/react-dom@19.2.3/static.d.ts +0 -153
- package/src/deps/esm.sh/@types/react@19.2.14/global.d.ts +0 -166
- package/src/deps/esm.sh/@types/react@19.2.14/index.d.ts +0 -4370
- package/src/deps/esm.sh/@types/react@19.2.14/jsx-dev-runtime.d.ts +0 -45
- package/src/deps/esm.sh/@types/react@19.2.14/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/@types/react@19.2.3/global.d.ts +0 -165
- package/src/deps/esm.sh/@types/react@19.2.3/index.d.ts +0 -4301
- package/src/deps/esm.sh/@types/scheduler@0.26.0/index.d.ts +0 -30
- package/src/deps/esm.sh/csstype@3.2.3/index.d.ts +0 -22569
- package/src/deps/esm.sh/react-dom@19.2.4/client.d.ts +0 -105
- package/src/deps/esm.sh/react-dom@19.2.4/client.js +0 -5
- package/src/deps/esm.sh/react-dom@19.2.4/server.d.ts +0 -183
- package/src/deps/esm.sh/react-dom@19.2.4/server.js +0 -5
- package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.d.ts +0 -45
- package/src/deps/esm.sh/react@19.2.4/jsx-dev-runtime.js +0 -3
- package/src/deps/esm.sh/react@19.2.4/jsx-runtime.d.ts +0 -36
- package/src/deps/esm.sh/react@19.2.4/jsx-runtime.js +0 -3
- package/src/deps/esm.sh/react@19.2.4.d.ts +0 -4370
- package/src/deps/esm.sh/react@19.2.4.js +0 -3
- package/src/deps/esm.sh/scheduler@^0.27.0.d.ts +0 -30
- package/src/deps/esm.sh/scheduler@^0.27.0.js +0 -3
- package/src/deps/jsr.io/@std/assert/1.0.19/almost_equals.ts +0 -56
- package/src/deps/jsr.io/@std/assert/1.0.19/array_includes.ts +0 -76
- package/src/deps/jsr.io/@std/assert/1.0.19/assert.ts +0 -24
- package/src/deps/jsr.io/@std/assert/1.0.19/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.19/equal.ts +0 -226
- package/src/deps/jsr.io/@std/assert/1.0.19/equals.ts +0 -68
- package/src/deps/jsr.io/@std/assert/1.0.19/exists.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.19/fail.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.19/false.ts +0 -27
- package/src/deps/jsr.io/@std/assert/1.0.19/greater.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/greater_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.19/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.19/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.19/less.ts +0 -29
- package/src/deps/jsr.io/@std/assert/1.0.19/less_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.19/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/mod.ts +0 -47
- package/src/deps/jsr.io/@std/assert/1.0.19/not_equals.ts +0 -43
- package/src/deps/jsr.io/@std/assert/1.0.19/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.19/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.19/object_match.ts +0 -224
- package/src/deps/jsr.io/@std/assert/1.0.19/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.19/strict_equals.ts +0 -68
- package/src/deps/jsr.io/@std/assert/1.0.19/string_includes.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.19/throws.ts +0 -111
- package/src/deps/jsr.io/@std/assert/1.0.19/unimplemented.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.19/unreachable.ts +0 -21
- package/src/deps/jsr.io/@std/dotenv/0.225.6/mod.ts +0 -251
- package/src/deps/jsr.io/@std/dotenv/0.225.6/parse.ts +0 -110
- package/src/deps/jsr.io/@std/dotenv/0.225.6/stringify.ts +0 -48
- package/src/deps/jsr.io/@std/fmt/1.0.10/colors.ts +0 -1004
- package/src/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.ts +0 -47
- package/src/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.ts +0 -25
- package/src/deps/jsr.io/@std/fs/1.0.23/_is_same_path.ts +0 -23
- package/src/deps/jsr.io/@std/fs/1.0.23/_is_subdir.ts +0 -34
- package/src/deps/jsr.io/@std/fs/1.0.23/_to_path_string.ts +0 -17
- package/src/deps/jsr.io/@std/fs/1.0.23/copy.ts +0 -411
- package/src/deps/jsr.io/@std/fs/1.0.23/empty_dir.ts +0 -91
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_dir.ts +0 -110
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_file.ts +0 -100
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_link.ts +0 -66
- package/src/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.ts +0 -181
- package/src/deps/jsr.io/@std/fs/1.0.23/eol.ts +0 -75
- package/src/deps/jsr.io/@std/fs/1.0.23/exists.ts +0 -316
- package/src/deps/jsr.io/@std/fs/1.0.23/expand_glob.ts +0 -564
- package/src/deps/jsr.io/@std/fs/1.0.23/mod.ts +0 -31
- package/src/deps/jsr.io/@std/fs/1.0.23/move.ts +0 -171
- package/src/deps/jsr.io/@std/fs/1.0.23/walk.ts +0 -956
- package/src/deps/jsr.io/@std/internal/1.0.13/_os.ts +0 -15
- package/src/deps/jsr.io/@std/internal/1.0.13/assertion_state.ts +0 -248
- package/src/deps/jsr.io/@std/internal/1.0.13/build_message.ts +0 -147
- package/src/deps/jsr.io/@std/internal/1.0.13/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.13/diff_str.ts +0 -208
- package/src/deps/jsr.io/@std/internal/1.0.13/format.ts +0 -89
- package/src/deps/jsr.io/@std/internal/1.0.13/os.ts +0 -7
- package/src/deps/jsr.io/@std/internal/1.0.13/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.13/types.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/_common/assert_path.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/_common/basename.ts +0 -53
- package/src/deps/jsr.io/@std/path/1.1.4/_common/common.ts +0 -26
- package/src/deps/jsr.io/@std/path/1.1.4/_common/constants.ts +0 -49
- package/src/deps/jsr.io/@std/path/1.1.4/_common/dirname.ts +0 -9
- package/src/deps/jsr.io/@std/path/1.1.4/_common/format.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.ts +0 -12
- package/src/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.ts +0 -295
- package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize.ts +0 -9
- package/src/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.ts +0 -74
- package/src/deps/jsr.io/@std/path/1.1.4/_common/relative.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.ts +0 -17
- package/src/deps/jsr.io/@std/path/1.1.4/basename.ts +0 -37
- package/src/deps/jsr.io/@std/path/1.1.4/common.ts +0 -35
- package/src/deps/jsr.io/@std/path/1.1.4/constants.ts +0 -18
- package/src/deps/jsr.io/@std/path/1.1.4/dirname.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/extname.ts +0 -29
- package/src/deps/jsr.io/@std/path/1.1.4/format.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/from_file_url.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.ts +0 -94
- package/src/deps/jsr.io/@std/path/1.1.4/is_absolute.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/is_glob.ts +0 -49
- package/src/deps/jsr.io/@std/path/1.1.4/join.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/join_globs.ts +0 -42
- package/src/deps/jsr.io/@std/path/1.1.4/mod.ts +0 -217
- package/src/deps/jsr.io/@std/path/1.1.4/normalize.ts +0 -33
- package/src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts +0 -45
- package/src/deps/jsr.io/@std/path/1.1.4/parse.ts +0 -44
- package/src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts +0 -10
- package/src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts +0 -62
- package/src/deps/jsr.io/@std/path/1.1.4/posix/common.ts +0 -26
- package/src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts +0 -15
- package/src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts +0 -72
- package/src/deps/jsr.io/@std/path/1.1.4/posix/extname.ts +0 -96
- package/src/deps/jsr.io/@std/path/1.1.4/posix/format.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.ts +0 -94
- package/src/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.ts +0 -25
- package/src/deps/jsr.io/@std/path/1.1.4/posix/is_glob.ts +0 -4
- package/src/deps/jsr.io/@std/path/1.1.4/posix/join.ts +0 -46
- package/src/deps/jsr.io/@std/path/1.1.4/posix/join_globs.ts +0 -45
- package/src/deps/jsr.io/@std/path/1.1.4/posix/mod.ts +0 -44
- package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize.ts +0 -63
- package/src/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.ts +0 -43
- package/src/deps/jsr.io/@std/path/1.1.4/posix/parse.ts +0 -121
- package/src/deps/jsr.io/@std/path/1.1.4/posix/relative.ts +0 -103
- package/src/deps/jsr.io/@std/path/1.1.4/posix/resolve.ts +0 -71
- package/src/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.ts +0 -21
- package/src/deps/jsr.io/@std/path/1.1.4/relative.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/resolve.ts +0 -32
- package/src/deps/jsr.io/@std/path/1.1.4/to_file_url.ts +0 -30
- package/src/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/types.ts +0 -40
- package/src/deps/jsr.io/@std/path/1.1.4/windows/_util.ts +0 -28
- package/src/deps/jsr.io/@std/path/1.1.4/windows/basename.ts +0 -54
- package/src/deps/jsr.io/@std/path/1.1.4/windows/constants.ts +0 -15
- package/src/deps/jsr.io/@std/path/1.1.4/windows/dirname.ts +0 -118
- package/src/deps/jsr.io/@std/path/1.1.4/windows/extname.ts +0 -90
- package/src/deps/jsr.io/@std/path/1.1.4/windows/format.ts +0 -31
- package/src/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.ts +0 -34
- package/src/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.ts +0 -92
- package/src/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.ts +0 -40
- package/src/deps/jsr.io/@std/path/1.1.4/windows/join.ts +0 -78
- package/src/deps/jsr.io/@std/path/1.1.4/windows/join_globs.ts +0 -46
- package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize.ts +0 -136
- package/src/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.ts +0 -43
- package/src/deps/jsr.io/@std/path/1.1.4/windows/parse.ts +0 -184
- package/src/deps/jsr.io/@std/path/1.1.4/windows/relative.ts +0 -128
- package/src/deps/jsr.io/@std/path/1.1.4/windows/resolve.ts +0 -178
- package/src/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.ts +0 -38
- package/src/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.ts +0 -60
- package/src/deps/jsr.io/@std/testing/1.0.18/_test_suite.ts +0 -461
- package/src/deps/jsr.io/@std/testing/1.0.18/bdd.ts +0 -1294
- package/src/deps/jsr.io/@std/yaml/1.1.0/_chars.ts +0 -55
- package/src/deps/jsr.io/@std/yaml/1.1.0/_loader_state.ts +0 -1845
- package/src/deps/jsr.io/@std/yaml/1.1.0/_schema.ts +0 -183
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/binary.ts +0 -127
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/bool.ts +0 -37
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/float.ts +0 -112
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/int.ts +0 -174
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/map.ts +0 -17
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/merge.ts +0 -13
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/nil.ts +0 -27
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/omap.ts +0 -30
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/pairs.ts +0 -22
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/regexp.ts +0 -33
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/seq.ts +0 -13
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/set.ts +0 -17
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/str.ts +0 -12
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/timestamp.ts +0 -101
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type/undefined.ts +0 -23
- package/src/deps/jsr.io/@std/yaml/1.1.0/_type.ts +0 -49
- package/src/deps/jsr.io/@std/yaml/1.1.0/_utils.ts +0 -16
- package/src/deps/jsr.io/@std/yaml/1.1.0/parse.ts +0 -125
- package/src/extensions/ext-auth-jwt/src/index.ts +0 -200
- package/src/extensions/ext-bundler-esbuild/src/binary.ts +0 -154
- package/src/extensions/ext-bundler-esbuild/src/es-module-lexer.ts +0 -34
- package/src/extensions/ext-bundler-esbuild/src/esbuild-bundler.ts +0 -122
- package/src/extensions/ext-bundler-esbuild/src/index.ts +0 -46
- package/src/extensions/ext-bundler-esbuild/src/plugin-adapter.ts +0 -66
- package/src/extensions/ext-bundler-esbuild/src/runtime.ts +0 -54
- package/src/extensions/ext-content-mdx/src/compiler/markdown-compile.ts +0 -127
- package/src/extensions/ext-content-mdx/src/compiler/mdx-compile.ts +0 -82
- package/src/extensions/ext-content-mdx/src/index.ts +0 -66
- package/src/extensions/ext-content-mdx/src/plugins/plugin-loader.ts +0 -21
- package/src/extensions/ext-content-mdx/src/plugins/rehype-node-positions.ts +0 -67
- package/src/extensions/ext-content-mdx/src/plugins/remark-headings.ts +0 -93
- package/src/extensions/ext-content-mdx/src/plugins/remark-mdx-utils.ts +0 -246
- package/src/extensions/ext-css-tailwind/src/index.ts +0 -82
- package/src/extensions/ext-db-sqlite/src/index.ts +0 -47
- package/src/extensions/ext-document-kreuzberg/src/index.ts +0 -97
- package/src/extensions/ext-document-kreuzberg/src/kreuzberg.ts +0 -56
- package/src/extensions/ext-llm-anthropic/src/anthropic-provider.ts +0 -336
- package/src/extensions/ext-llm-anthropic/src/anthropic-request-builder.ts +0 -540
- package/src/extensions/ext-llm-anthropic/src/anthropic-stream.ts +0 -310
- package/src/extensions/ext-llm-anthropic/src/index.ts +0 -38
- package/src/extensions/ext-llm-google/src/google-provider.ts +0 -305
- package/src/extensions/ext-llm-google/src/google-request-builder.ts +0 -394
- package/src/extensions/ext-llm-google/src/google-stream.ts +0 -188
- package/src/extensions/ext-llm-google/src/index.ts +0 -35
- package/src/extensions/ext-llm-openai/src/index.ts +0 -37
- package/src/extensions/ext-llm-openai/src/openai-chat-request-builder.ts +0 -220
- package/src/extensions/ext-llm-openai/src/openai-chat-stream.ts +0 -251
- package/src/extensions/ext-llm-openai/src/openai-provider.ts +0 -577
- package/src/extensions/ext-llm-openai/src/openai-responses-request-builder.ts +0 -298
- package/src/extensions/ext-llm-openai/src/openai-responses-stream.ts +0 -226
- package/src/extensions/ext-observability-opentelemetry/src/index.ts +0 -291
- package/src/extensions/ext-parser-babel/src/index.ts +0 -111
- package/src/extensions/ext-parser-babel/src/inject-node-positions.ts +0 -184
- package/src/extensions/ext-sandbox-shell-tools/src/index.ts +0 -43
- package/src/extensions/ext-schema-zod/src/adapter.ts +0 -238
- package/src/extensions/ext-schema-zod/src/index.ts +0 -39
- package/src/extensions/ext-schema-zod/src/json-schema.ts +0 -311
- package/src/react/jsx-dev-runtime.ts +0 -1
- package/src/react/jsx-runtime.ts +0 -1
- package/src/react/react-dom-client.ts +0 -2
- package/src/react/react-dom-server.ts +0 -2
- package/src/react/react.ts +0 -274
- package/src/src/agent/ag-ui/browser-chunk-encoder.ts +0 -58
- package/src/src/agent/ag-ui/browser-encoder.ts +0 -538
- package/src/src/agent/ag-ui/browser-finalize-tracker.ts +0 -65
- package/src/src/agent/ag-ui/browser-response-stream.ts +0 -175
- package/src/src/agent/ag-ui/chat-ui-chunk-browser-encoder.ts +0 -172
- package/src/src/agent/ag-ui/chunk-encoder-bridge.ts +0 -34
- package/src/src/agent/ag-ui/detached-start.ts +0 -425
- package/src/src/agent/ag-ui/forwarded-context.ts +0 -83
- package/src/src/agent/ag-ui/handler.ts +0 -388
- package/src/src/agent/ag-ui/host-support.ts +0 -244
- package/src/src/agent/ag-ui/request-shared.ts +0 -76
- package/src/src/agent/ag-ui/run-control.ts +0 -145
- package/src/src/agent/ag-ui/runtime-browser-response.ts +0 -41
- package/src/src/agent/ag-ui/runtime-chat-stream-encoder.ts +0 -359
- package/src/src/agent/ag-ui/runtime-event-encoder.ts +0 -71
- package/src/src/agent/ag-ui/runtime-handler.ts +0 -510
- package/src/src/agent/ag-ui/runtime-support.ts +0 -64
- package/src/src/agent/ag-ui/sse-parser.ts +0 -306
- package/src/src/agent/ag-ui/tool-shared.ts +0 -80
- package/src/src/agent/ag-ui/tracked-browser-response.ts +0 -42
- package/src/src/agent/artifacts/default-research-artifact-policy.ts +0 -171
- package/src/src/agent/artifacts/default-research-artifact-support.ts +0 -374
- package/src/src/agent/artifacts/slash-command-artifact-policy.ts +0 -212
- package/src/src/agent/child-run/execution-cleanup.ts +0 -33
- package/src/src/agent/child-run/execution-snapshot.ts +0 -154
- package/src/src/agent/child-run/execution-support.ts +0 -29
- package/src/src/agent/child-run/final-step-support.ts +0 -51
- package/src/src/agent/child-run/invoke-agent-child-runs.ts +0 -198
- package/src/src/agent/child-run/result-summary.ts +0 -135
- package/src/src/agent/composition/composition.ts +0 -176
- package/src/src/agent/composition/index.ts +0 -19
- package/src/src/agent/conversation/bootstrap.ts +0 -335
- package/src/src/agent/conversation/delegation-policy.ts +0 -299
- package/src/src/agent/conversation/durable.ts +0 -1387
- package/src/src/agent/conversation/hosted-lifecycle.ts +0 -215
- package/src/src/agent/conversation/hosted-terminal.ts +0 -235
- package/src/src/agent/conversation/root-run-context.ts +0 -143
- package/src/src/agent/conversation/root-run-lifecycle.ts +0 -184
- package/src/src/agent/conversation/run-chunk-mirror.ts +0 -385
- package/src/src/agent/conversation/run-context.ts +0 -22
- package/src/src/agent/conversation/run-event-normalization.ts +0 -228
- package/src/src/agent/conversation/run-event-preparation.ts +0 -76
- package/src/src/agent/conversation/run-events.ts +0 -242
- package/src/src/agent/conversation/run-mirror.ts +0 -271
- package/src/src/agent/conversation/run-stream-mirror.ts +0 -63
- package/src/src/agent/factory.ts +0 -303
- package/src/src/agent/hosted/ag-ui-chat-request.ts +0 -199
- package/src/src/agent/hosted/agent-project-steering.ts +0 -141
- package/src/src/agent/hosted/agent-run-lifecycle.ts +0 -161
- package/src/src/agent/hosted/chat-execution-lifecycle-types.ts +0 -11
- package/src/src/agent/hosted/chat-execution-runtime.ts +0 -694
- package/src/src/agent/hosted/chat-preparation.ts +0 -357
- package/src/src/agent/hosted/chat-request-parser.ts +0 -209
- package/src/src/agent/hosted/chat-request.ts +0 -114
- package/src/src/agent/hosted/chat-runtime-agent-adapter.ts +0 -88
- package/src/src/agent/hosted/chat-runtime-contract.ts +0 -101
- package/src/src/agent/hosted/chat-runtime-tool-assembly.ts +0 -185
- package/src/src/agent/hosted/child-artifact-support.ts +0 -201
- package/src/src/agent/hosted/child-bootstrap.ts +0 -75
- package/src/src/agent/hosted/child-execution-logging.ts +0 -114
- package/src/src/agent/hosted/child-fork-execution-runner.ts +0 -396
- package/src/src/agent/hosted/child-fork-instructions.ts +0 -91
- package/src/src/agent/hosted/child-fork-run-context.ts +0 -309
- package/src/src/agent/hosted/child-fork-runtime-start.ts +0 -84
- package/src/src/agent/hosted/child-fork-step-message-preparation.ts +0 -96
- package/src/src/agent/hosted/child-fork-stream-execution.ts +0 -626
- package/src/src/agent/hosted/child-fork-tool-sources.ts +0 -231
- package/src/src/agent/hosted/child-invoke-tool.ts +0 -90
- package/src/src/agent/hosted/child-lifecycle.ts +0 -352
- package/src/src/agent/hosted/child-mirror.ts +0 -272
- package/src/src/agent/hosted/child-pending-tool-lifecycle.ts +0 -191
- package/src/src/agent/hosted/child-requested-tools.ts +0 -411
- package/src/src/agent/hosted/child-status.ts +0 -167
- package/src/src/agent/hosted/child-steering-tools.ts +0 -92
- package/src/src/agent/hosted/child-stream-watchdog.ts +0 -146
- package/src/src/agent/hosted/child-tool-input.ts +0 -91
- package/src/src/agent/hosted/cloud-chat-execution-preparation.ts +0 -98
- package/src/src/agent/hosted/cloud-prepared-chat-execution-runtime.ts +0 -36
- package/src/src/agent/hosted/cloud-runtime-system-messages.ts +0 -79
- package/src/src/agent/hosted/default-chat-runtime.ts +0 -329
- package/src/src/agent/hosted/default-invoke-agent-tool.ts +0 -581
- package/src/src/agent/hosted/default-project-steering-refresh.ts +0 -227
- package/src/src/agent/hosted/durable-chat-run-start.ts +0 -246
- package/src/src/agent/hosted/durable-child-fork-execution.ts +0 -597
- package/src/src/agent/hosted/finalized-message.ts +0 -170
- package/src/src/agent/hosted/form-input-tool.ts +0 -128
- package/src/src/agent/hosted/lifecycle.ts +0 -159
- package/src/src/agent/hosted/prepared-chat-execution.ts +0 -188
- package/src/src/agent/hosted/project-remote-tool-source.ts +0 -324
- package/src/src/agent/hosted/project-steering-adapter.ts +0 -184
- package/src/src/agent/hosted/response-stream.ts +0 -87
- package/src/src/agent/hosted/runtime-request-config.ts +0 -112
- package/src/src/agent/hosted/runtime-state-resolver.ts +0 -141
- package/src/src/agent/hosted/stream-finalization.ts +0 -188
- package/src/src/agent/hosted/stream-terminal-error.ts +0 -81
- package/src/src/agent/hosted/trace-attributes.ts +0 -196
- package/src/src/agent/hosted/veryfront-api-tool-access.ts +0 -293
- package/src/src/agent/hosted/veryfront-cloud-agent-service.ts +0 -1050
- package/src/src/agent/index.ts +0 -1770
- package/src/src/agent/input/human-input.ts +0 -353
- package/src/src/agent/input/request-protocol.ts +0 -279
- package/src/src/agent/memory/index.ts +0 -21
- package/src/src/agent/memory/memory-interface.ts +0 -65
- package/src/src/agent/memory/memory.ts +0 -263
- package/src/src/agent/memory/redis.ts +0 -168
- package/src/src/agent/middleware/cache/cache.ts +0 -318
- package/src/src/agent/middleware/cache/index.ts +0 -7
- package/src/src/agent/middleware/chain.ts +0 -62
- package/src/src/agent/middleware/cost-tracking/index.ts +0 -13
- package/src/src/agent/middleware/cost-tracking/tracker.ts +0 -351
- package/src/src/agent/middleware/index.ts +0 -33
- package/src/src/agent/middleware/rate-limit/index.ts +0 -12
- package/src/src/agent/middleware/rate-limit/limiter.ts +0 -197
- package/src/src/agent/middleware/security/index.ts +0 -14
- package/src/src/agent/middleware/security/validator.ts +0 -288
- package/src/src/agent/project/agent-runtime.ts +0 -139
- package/src/src/agent/project/context.ts +0 -63
- package/src/src/agent/project/live-studio-mcp-tools.ts +0 -153
- package/src/src/agent/project/steering-mutation.ts +0 -126
- package/src/src/agent/react/index.ts +0 -39
- package/src/src/agent/react/use-agent.ts +0 -133
- package/src/src/agent/react/use-chat/browser-inference/browser-engine.ts +0 -89
- package/src/src/agent/react/use-chat/browser-inference/types.ts +0 -52
- package/src/src/agent/react/use-chat/browser-inference/worker-client.ts +0 -87
- package/src/src/agent/react/use-chat/browser-inference/worker-script.ts +0 -98
- package/src/src/agent/react/use-chat/index.ts +0 -27
- package/src/src/agent/react/use-chat/stream-protocol.ts +0 -1
- package/src/src/agent/react/use-chat/streaming/handler.ts +0 -429
- package/src/src/agent/react/use-chat/streaming/index.ts +0 -15
- package/src/src/agent/react/use-chat/streaming/parts-builder.ts +0 -91
- package/src/src/agent/react/use-chat/streaming/types.ts +0 -41
- package/src/src/agent/react/use-chat/types.ts +0 -115
- package/src/src/agent/react/use-chat/use-chat.ts +0 -576
- package/src/src/agent/react/use-chat/utils.ts +0 -13
- package/src/src/agent/react/use-completion.ts +0 -133
- package/src/src/agent/react/use-streaming.ts +0 -120
- package/src/src/agent/react/use-voice-input.ts +0 -249
- package/src/src/agent/runtime/ag-ui-contract.ts +0 -224
- package/src/src/agent/runtime/agent-definition-files.ts +0 -155
- package/src/src/agent/runtime/agent-definition.ts +0 -166
- package/src/src/agent/runtime/agent-invocation-contract.ts +0 -360
- package/src/src/agent/runtime/agent-markdown-adapter.ts +0 -31
- package/src/src/agent/runtime/builtin-skill-files.ts +0 -122
- package/src/src/agent/runtime/chat-stream-handler.ts +0 -577
- package/src/src/agent/runtime/client-profile.ts +0 -123
- package/src/src/agent/runtime/constants.ts +0 -29
- package/src/src/agent/runtime/default-provider-options.ts +0 -52
- package/src/src/agent/runtime/defaults.ts +0 -12
- package/src/src/agent/runtime/error-utils.ts +0 -32
- package/src/src/agent/runtime/index.ts +0 -1478
- package/src/src/agent/runtime/input-utils.ts +0 -48
- package/src/src/agent/runtime/load-skill-tool.ts +0 -239
- package/src/src/agent/runtime/message-adapter.ts +0 -480
- package/src/src/agent/runtime/message-file-url-refresh.ts +0 -120
- package/src/src/agent/runtime/message-preparation.ts +0 -58
- package/src/src/agent/runtime/model-resolution.ts +0 -113
- package/src/src/agent/runtime/model-tool-converter.ts +0 -97
- package/src/src/agent/runtime/project-files-client.ts +0 -256
- package/src/src/agent/runtime/project-skill-catalog.ts +0 -238
- package/src/src/agent/runtime/project-skill-loader.ts +0 -217
- package/src/src/agent/runtime/prompt-block.ts +0 -19
- package/src/src/agent/runtime/provider-native-tool-inventory.ts +0 -74
- package/src/src/agent/runtime/provider-native-tools.ts +0 -130
- package/src/src/agent/runtime/provider-tool-compat.ts +0 -304
- package/src/src/agent/runtime/repair-tool-call.ts +0 -50
- package/src/src/agent/runtime/resume-session.ts +0 -353
- package/src/src/agent/runtime/runtime-tool-builder.ts +0 -82
- package/src/src/agent/runtime/runtime-tool-errors.ts +0 -46
- package/src/src/agent/runtime/runtime-tool-types.ts +0 -121
- package/src/src/agent/runtime/skill-metadata.ts +0 -260
- package/src/src/agent/runtime/skill-prompt.ts +0 -61
- package/src/src/agent/runtime/sse-utils.ts +0 -51
- package/src/src/agent/runtime/text-generation-runtime-message-converter.ts +0 -269
- package/src/src/agent/runtime/text-generation-runtime-message-types.ts +0 -62
- package/src/src/agent/runtime/tool-helpers.ts +0 -428
- package/src/src/agent/runtime/tool-inventory.ts +0 -46
- package/src/src/agent/runtime/upload-url-client.ts +0 -95
- package/src/src/agent/schemas/agent.schema.ts +0 -181
- package/src/src/agent/schemas/index.ts +0 -38
- package/src/src/agent/schemas/tool.schema.ts +0 -11
- package/src/src/agent/service/abort-rejection-guard.ts +0 -162
- package/src/src/agent/service/auth.ts +0 -427
- package/src/src/agent/service/bootstrap.ts +0 -79
- package/src/src/agent/service/chat-handler.ts +0 -508
- package/src/src/agent/service/config.ts +0 -107
- package/src/src/agent/service/definition.ts +0 -386
- package/src/src/agent/service/detached-run-tracker.ts +0 -169
- package/src/src/agent/service/env-files.ts +0 -60
- package/src/src/agent/service/external-worker-client.ts +0 -401
- package/src/src/agent/service/mcp-server-config.ts +0 -112
- package/src/src/agent/service/node-runtime-infrastructure.ts +0 -71
- package/src/src/agent/service/node-telemetry.ts +0 -197
- package/src/src/agent/service/registration.ts +0 -395
- package/src/src/agent/service/request-auth-cache.ts +0 -36
- package/src/src/agent/service/response-like.ts +0 -28
- package/src/src/agent/service/routes.ts +0 -386
- package/src/src/agent/service/runtime.ts +0 -303
- package/src/src/agent/service/server.ts +0 -98
- package/src/src/agent/streaming/chat-ui-message-stream.ts +0 -596
- package/src/src/agent/streaming/data-stream.ts +0 -209
- package/src/src/agent/streaming/fork-runtime-stream.ts +0 -1187
- package/src/src/agent/streaming/mirrored-tool-chunk-state.ts +0 -276
- package/src/src/agent/streaming/tool-execution-data-event-bridge.ts +0 -79
- package/src/src/agent/testing/agent-tester.ts +0 -202
- package/src/src/agent/testing/durable-run-canaries/cli-runner.ts +0 -117
- package/src/src/agent/testing/durable-run-canaries/environment.ts +0 -27
- package/src/src/agent/testing/durable-run-canaries/index.ts +0 -36
- package/src/src/agent/testing/durable-run-canaries/runner.ts +0 -585
- package/src/src/agent/testing/durable-run-canaries/validation.ts +0 -87
- package/src/src/agent/testing/index.ts +0 -128
- package/src/src/agent/testing/live-evals/api-client.ts +0 -568
- package/src/src/agent/testing/live-evals/cli-runner.ts +0 -234
- package/src/src/agent/testing/live-evals/environment.ts +0 -31
- package/src/src/agent/testing/live-evals/formatting.ts +0 -106
- package/src/src/agent/testing/live-evals/index.ts +0 -99
- package/src/src/agent/testing/live-evals/metadata.ts +0 -167
- package/src/src/agent/testing/live-evals/performance.ts +0 -52
- package/src/src/agent/testing/live-evals/preflight.ts +0 -42
- package/src/src/agent/testing/live-evals/report.ts +0 -155
- package/src/src/agent/testing/live-evals/request.ts +0 -78
- package/src/src/agent/testing/live-evals/result.ts +0 -109
- package/src/src/agent/testing/live-evals/runner.ts +0 -629
- package/src/src/agent/types.ts +0 -275
- package/src/src/build/asset-pipeline/css-optimizer/types/index.ts +0 -92
- package/src/src/build/asset-pipeline/tailwind-processor/css-utils.ts +0 -13
- package/src/src/build/binary-plugin-includes.ts +0 -17
- package/src/src/build/bundler/code-splitter/build-context.ts +0 -97
- package/src/src/build/bundler/code-splitter/entry-points.ts +0 -31
- package/src/src/build/bundler/code-splitter/esbuild-plugin.ts +0 -38
- package/src/src/build/bundler/code-splitter/index.ts +0 -80
- package/src/src/build/bundler/code-splitter/manifest-builder.ts +0 -140
- package/src/src/build/bundler/code-splitter/splitter.ts +0 -98
- package/src/src/build/bundler/code-splitter/types.ts +0 -46
- package/src/src/build/bundler/index.ts +0 -39
- package/src/src/build/compiler/index.ts +0 -17
- package/src/src/build/compiler/mdx-compiler/code-generator.ts +0 -16
- package/src/src/build/compiler/mdx-compiler/compiler.ts +0 -53
- package/src/src/build/compiler/mdx-compiler/directory-compiler.ts +0 -39
- package/src/src/build/compiler/mdx-compiler/file-writer.ts +0 -25
- package/src/src/build/compiler/mdx-compiler/frontmatter-parser.ts +0 -94
- package/src/src/build/compiler/mdx-compiler/import-transformer.ts +0 -27
- package/src/src/build/compiler/mdx-compiler/index.ts +0 -10
- package/src/src/build/compiler/mdx-compiler/mdx-processor.ts +0 -32
- package/src/src/build/compiler/mdx-compiler/transpiler.ts +0 -15
- package/src/src/build/compiler/mdx-compiler/types.ts +0 -21
- package/src/src/build/compiler/mdx-compiler/validator.ts +0 -52
- package/src/src/build/compiler/mdx-compiler/watcher.ts +0 -57
- package/src/src/build/compiler/mdx-to-js.ts +0 -143
- package/src/src/build/embedded/preset.ts +0 -326
- package/src/src/build/index.ts +0 -11
- package/src/src/build/production-build/asset-generation.ts +0 -178
- package/src/src/build/production-build/build/build-cleanup.ts +0 -31
- package/src/src/build/production-build/build/build-executor.ts +0 -50
- package/src/src/build/production-build/build/build-initializer.ts +0 -58
- package/src/src/build/production-build/build/build-orchestrator.ts +0 -140
- package/src/src/build/production-build/build/build-setup.ts +0 -47
- package/src/src/build/production-build/build/code-splitter-orchestrator.ts +0 -43
- package/src/src/build/production-build/build/index.ts +0 -58
- package/src/src/build/production-build/build/output-generator.ts +0 -142
- package/src/src/build/production-build/build/route-collector.ts +0 -46
- package/src/src/build/production-build/client-runtime.ts +0 -376
- package/src/src/build/production-build/index.ts +0 -51
- package/src/src/build/production-build/manifest.ts +0 -126
- package/src/src/build/production-build/static-generation.ts +0 -256
- package/src/src/build/production-build/templates.ts +0 -17
- package/src/src/build/renderer/types/bundler-types.ts +0 -12
- package/src/src/cache/backend.ts +0 -32
- package/src/src/cache/backends/api.ts +0 -226
- package/src/src/cache/backends/disk.ts +0 -150
- package/src/src/cache/backends/factory.ts +0 -209
- package/src/src/cache/backends/helpers.ts +0 -7
- package/src/src/cache/backends/index.ts +0 -30
- package/src/src/cache/backends/memory.ts +0 -180
- package/src/src/cache/backends/redis.ts +0 -134
- package/src/src/cache/cache-key-builder.ts +0 -125
- package/src/src/cache/config-hash.ts +0 -64
- package/src/src/cache/dependency-graph.ts +0 -208
- package/src/src/cache/distributed-cache-init.ts +0 -144
- package/src/src/cache/index.ts +0 -37
- package/src/src/cache/keys/builders/file.ts +0 -70
- package/src/src/cache/keys/builders/github.ts +0 -34
- package/src/src/cache/keys/builders/module.ts +0 -94
- package/src/src/cache/keys/builders/render.ts +0 -125
- package/src/src/cache/keys/index.ts +0 -94
- package/src/src/cache/keys/prefixes.ts +0 -127
- package/src/src/cache/keys/utils.ts +0 -236
- package/src/src/cache/keys.ts +0 -7
- package/src/src/cache/module-cache.ts +0 -242
- package/src/src/cache/paths.ts +0 -140
- package/src/src/cache/registry.ts +0 -587
- package/src/src/cache/request-cache-batcher.ts +0 -144
- package/src/src/cache/schemas/cache-backend.schema.ts +0 -22
- package/src/src/cache/schemas/cache-key.schema.ts +0 -17
- package/src/src/cache/schemas/index.ts +0 -14
- package/src/src/cache/tokenizing-gateway.ts +0 -278
- package/src/src/cache/types.ts +0 -67
- package/src/src/channels/control-plane.ts +0 -455
- package/src/src/channels/invoke.ts +0 -447
- package/src/src/chat/ag-ui-helpers.ts +0 -139
- package/src/src/chat/ag-ui.ts +0 -882
- package/src/src/chat/chat-ui-message-helpers.ts +0 -232
- package/src/src/chat/conversation.ts +0 -941
- package/src/src/chat/final-step-fallback.ts +0 -957
- package/src/src/chat/hosted-ui-chunk-mapping.ts +0 -303
- package/src/src/chat/index.ts +0 -275
- package/src/src/chat/message-prep.ts +0 -873
- package/src/src/chat/protocol.ts +0 -358
- package/src/src/chat/provider-errors.ts +0 -218
- package/src/src/chat/stream-watchdog.ts +0 -229
- package/src/src/chat/types.ts +0 -632
- package/src/src/config/defaults.ts +0 -73
- package/src/src/config/define-config.ts +0 -68
- package/src/src/config/env.ts +0 -197
- package/src/src/config/environment-config.ts +0 -274
- package/src/src/config/index.ts +0 -69
- package/src/src/config/loader.ts +0 -528
- package/src/src/config/network-defaults.ts +0 -55
- package/src/src/config/runtime-config.ts +0 -216
- package/src/src/config/schemas/config.schema.ts +0 -695
- package/src/src/config/schemas/index.ts +0 -27
- package/src/src/data/data-fetcher.ts +0 -80
- package/src/src/data/data-fetching-cache.ts +0 -57
- package/src/src/data/helpers.ts +0 -9
- package/src/src/data/index.ts +0 -17
- package/src/src/data/schemas/data.schema.ts +0 -70
- package/src/src/data/schemas/index.ts +0 -20
- package/src/src/data/server-data-fetcher.ts +0 -185
- package/src/src/data/static-data-fetcher.ts +0 -310
- package/src/src/data/static-paths-fetcher.ts +0 -35
- package/src/src/data/types.ts +0 -28
- package/src/src/discovery/discovery-engine.ts +0 -229
- package/src/src/discovery/discovery-utils.ts +0 -44
- package/src/src/discovery/file-discovery.ts +0 -109
- package/src/src/discovery/handlers/agent-handler.ts +0 -30
- package/src/src/discovery/handlers/index.ts +0 -13
- package/src/src/discovery/handlers/prompt-handler.ts +0 -21
- package/src/src/discovery/handlers/resource-handler.ts +0 -22
- package/src/src/discovery/handlers/runtime-agent-markdown-handler.ts +0 -78
- package/src/src/discovery/handlers/skill-handler.ts +0 -123
- package/src/src/discovery/handlers/task-handler.ts +0 -19
- package/src/src/discovery/handlers/tool-handler.ts +0 -32
- package/src/src/discovery/handlers/workflow-handler.ts +0 -23
- package/src/src/discovery/import-rewriter.ts +0 -209
- package/src/src/discovery/index.ts +0 -34
- package/src/src/discovery/module-import.ts +0 -36
- package/src/src/discovery/project-discovery-config.ts +0 -89
- package/src/src/discovery/provider-config-validator.ts +0 -33
- package/src/src/discovery/transpiler.ts +0 -244
- package/src/src/discovery/types.ts +0 -69
- package/src/src/embedding/chunk.ts +0 -66
- package/src/src/embedding/embedding.ts +0 -67
- package/src/src/embedding/index.ts +0 -50
- package/src/src/embedding/model-resolution.ts +0 -46
- package/src/src/embedding/rag-store.ts +0 -432
- package/src/src/embedding/react/use-uploads.ts +0 -102
- package/src/src/embedding/resolve.ts +0 -157
- package/src/src/embedding/types.ts +0 -115
- package/src/src/embedding/upload-handler.ts +0 -287
- package/src/src/embedding/upload-loader.ts +0 -85
- package/src/src/embedding/vector-store.ts +0 -283
- package/src/src/embedding/veryfront-cloud/provider.ts +0 -55
- package/src/src/embedding/veryfront-cloud/rag-store.ts +0 -600
- package/src/src/errors/catalog/build-errors.ts +0 -98
- package/src/src/errors/catalog/config-errors.ts +0 -105
- package/src/src/errors/catalog/deployment-errors.ts +0 -44
- package/src/src/errors/catalog/dev-errors.ts +0 -40
- package/src/src/errors/catalog/factory.ts +0 -24
- package/src/src/errors/catalog/general-errors.ts +0 -71
- package/src/src/errors/catalog/index.ts +0 -64
- package/src/src/errors/catalog/module-errors.ts +0 -106
- package/src/src/errors/catalog/route-errors.ts +0 -69
- package/src/src/errors/catalog/rsc-errors.ts +0 -82
- package/src/src/errors/catalog/runtime-errors.ts +0 -96
- package/src/src/errors/catalog/server-errors.ts +0 -95
- package/src/src/errors/catalog/types.ts +0 -15
- package/src/src/errors/error-context.ts +0 -172
- package/src/src/errors/error-handlers.ts +0 -85
- package/src/src/errors/error-registry-helpers.ts +0 -23
- package/src/src/errors/error-registry.ts +0 -824
- package/src/src/errors/http-error.ts +0 -157
- package/src/src/errors/index.ts +0 -197
- package/src/src/errors/logging.ts +0 -109
- package/src/src/errors/middleware/cli-error-boundary.ts +0 -248
- package/src/src/errors/middleware/http-error-boundary.ts +0 -133
- package/src/src/errors/middleware/index.ts +0 -13
- package/src/src/errors/middleware/wrap-unknown.ts +0 -117
- package/src/src/errors/tracing.ts +0 -90
- package/src/src/errors/types.ts +0 -147
- package/src/src/errors/user-friendly/error-catalog.ts +0 -126
- package/src/src/errors/user-friendly/error-formatter.ts +0 -93
- package/src/src/errors/user-friendly/error-identifier.ts +0 -41
- package/src/src/errors/user-friendly/error-wrapper.ts +0 -26
- package/src/src/errors/user-friendly/index.ts +0 -10
- package/src/src/errors/veryfront-error.ts +0 -148
- package/src/src/extensions/auth/auth-provider.ts +0 -96
- package/src/src/extensions/auth/index.ts +0 -15
- package/src/src/extensions/builtin-extensions.ts +0 -161
- package/src/src/extensions/bundler/bundler.ts +0 -289
- package/src/src/extensions/bundler/helper.ts +0 -58
- package/src/src/extensions/bundler/index.ts +0 -49
- package/src/src/extensions/bundler/module-lexer.ts +0 -46
- package/src/src/extensions/cache/cache-store.ts +0 -27
- package/src/src/extensions/cache/index.ts +0 -10
- package/src/src/extensions/cache/token-cache-store.ts +0 -58
- package/src/src/extensions/capabilities.ts +0 -93
- package/src/src/extensions/compat/index.ts +0 -15
- package/src/src/extensions/compat/native-services.ts +0 -83
- package/src/src/extensions/content/content-processor.ts +0 -98
- package/src/src/extensions/content/index.ts +0 -17
- package/src/src/extensions/contracts.ts +0 -42
- package/src/src/extensions/css/css-processor.ts +0 -61
- package/src/src/extensions/css/index.ts +0 -15
- package/src/src/extensions/database/database-client.ts +0 -35
- package/src/src/extensions/database/index.ts +0 -9
- package/src/src/extensions/discovery.ts +0 -250
- package/src/src/extensions/errors.ts +0 -39
- package/src/src/extensions/factory-loader.ts +0 -76
- package/src/src/extensions/index.ts +0 -91
- package/src/src/extensions/llm/embedding-provider.ts +0 -39
- package/src/src/extensions/llm/index.ts +0 -17
- package/src/src/extensions/llm/llm-provider-registry.ts +0 -50
- package/src/src/extensions/llm/llm-provider.ts +0 -54
- package/src/src/extensions/loader.ts +0 -282
- package/src/src/extensions/observability/index.ts +0 -17
- package/src/src/extensions/observability/node-telemetry-provider.ts +0 -45
- package/src/src/extensions/observability/tracing-exporter.ts +0 -77
- package/src/src/extensions/orchestrate.ts +0 -194
- package/src/src/extensions/parser/code-parser.ts +0 -96
- package/src/src/extensions/parser/index.ts +0 -18
- package/src/src/extensions/recommendations.ts +0 -30
- package/src/src/extensions/sandbox/index.ts +0 -18
- package/src/src/extensions/sandbox/shell-tools.ts +0 -42
- package/src/src/extensions/schema/index.ts +0 -28
- package/src/src/extensions/schema/json-schema.ts +0 -23
- package/src/src/extensions/schema/schema-validator.ts +0 -257
- package/src/src/extensions/types.ts +0 -68
- package/src/src/extensions/validation.ts +0 -188
- package/src/src/fs/index.ts +0 -51
- package/src/src/html/dev-scripts.ts +0 -92
- package/src/src/html/html-detection.ts +0 -8
- package/src/src/html/html-escape.ts +0 -20
- package/src/src/html/html-injection.ts +0 -174
- package/src/src/html/html-shell-generator.ts +0 -427
- package/src/src/html/hydration-script-builder/dev-client-renderer.ts +0 -18
- package/src/src/html/hydration-script-builder/dev-component-manifest.ts +0 -15
- package/src/src/html/hydration-script-builder/dev-error-logger.ts +0 -58
- package/src/src/html/hydration-script-builder/dev-scripts.ts +0 -47
- package/src/src/html/hydration-script-builder/hydration-data-generator.ts +0 -79
- package/src/src/html/hydration-script-builder/index.ts +0 -21
- package/src/src/html/hydration-script-builder/prod-hydration.ts +0 -41
- package/src/src/html/hydration-script-builder/prod-scripts.ts +0 -25
- package/src/src/html/hydration-script-builder/templates/index.ts +0 -10
- package/src/src/html/hydration-script-builder/templates/loader.ts +0 -107
- package/src/src/html/hydration-script-builder/templates/renderer.ts +0 -166
- package/src/src/html/hydration-script-builder/templates/router.ts +0 -679
- package/src/src/html/hydration-script-builder/templates/spa-renderer.ts +0 -103
- package/src/src/html/hydration-script-builder/types.ts +0 -29
- package/src/src/html/index.ts +0 -35
- package/src/src/html/metadata-builder.ts +0 -46
- package/src/src/html/metadata-extraction.ts +0 -54
- package/src/src/html/nonce-injection.ts +0 -330
- package/src/src/html/schemas/html.schema.ts +0 -88
- package/src/src/html/schemas/index.ts +0 -15
- package/src/src/html/styles-builder/candidate-extractor.ts +0 -71
- package/src/src/html/styles-builder/content-version.ts +0 -20
- package/src/src/html/styles-builder/css-hash-cache.ts +0 -393
- package/src/src/html/styles-builder/css-pregeneration.ts +0 -331
- package/src/src/html/styles-builder/dev-styles.ts +0 -23
- package/src/src/html/styles-builder/index.ts +0 -21
- package/src/src/html/styles-builder/plugin-loader.ts +0 -252
- package/src/src/html/styles-builder/prepared-project-css-cache.ts +0 -228
- package/src/src/html/styles-builder/project-css-cache.ts +0 -321
- package/src/src/html/styles-builder/style-scope-profile.ts +0 -164
- package/src/src/html/styles-builder/tailwind-compiler-cache.ts +0 -231
- package/src/src/html/styles-builder/tailwind-compiler-utils.ts +0 -199
- package/src/src/html/styles-builder/tailwind-compiler.ts +0 -276
- package/src/src/html/styles-builder/tailwind-plugin-allowlist.ts +0 -51
- package/src/src/html/tag-generators.ts +0 -120
- package/src/src/html/types.ts +0 -5
- package/src/src/html/utils.ts +0 -327
- package/src/src/index.ts +0 -78
- package/src/src/integrations/_data.ts +0 -82
- package/src/src/integrations/index.ts +0 -72
- package/src/src/integrations/remote-tools.ts +0 -243
- package/src/src/integrations/schema.ts +0 -204
- package/src/src/integrations/types.ts +0 -62
- package/src/src/internal-agents/ag-ui-sse.ts +0 -141
- package/src/src/internal-agents/control-plane-auth.ts +0 -92
- package/src/src/internal-agents/request-body.ts +0 -43
- package/src/src/internal-agents/run-stream.ts +0 -422
- package/src/src/internal-agents/runtime-owner.ts +0 -189
- package/src/src/internal-agents/schema.ts +0 -347
- package/src/src/internal-agents/session-manager.ts +0 -206
- package/src/src/issues/core.ts +0 -385
- package/src/src/issues/index.ts +0 -46
- package/src/src/issues/mcp.ts +0 -289
- package/src/src/issues/schemas/index.ts +0 -45
- package/src/src/issues/schemas/issue.schema.ts +0 -152
- package/src/src/jobs/index.ts +0 -101
- package/src/src/jobs/jobs-client.ts +0 -503
- package/src/src/jobs/runtime-env.ts +0 -106
- package/src/src/jobs/schemas.ts +0 -429
- package/src/src/markdown/index.ts +0 -20
- package/src/src/mcp/annotations.ts +0 -10
- package/src/src/mcp/elicitation.ts +0 -42
- package/src/src/mcp/http-transport.ts +0 -162
- package/src/src/mcp/index.ts +0 -65
- package/src/src/mcp/registry.ts +0 -41
- package/src/src/mcp/schemas/index.ts +0 -16
- package/src/src/mcp/schemas/mcp.schema.ts +0 -59
- package/src/src/mcp/server.ts +0 -790
- package/src/src/mcp/session.ts +0 -31
- package/src/src/mcp/sse.ts +0 -19
- package/src/src/mcp/task-store.ts +0 -137
- package/src/src/mcp/types.ts +0 -39
- package/src/src/mdx/index.ts +0 -23
- package/src/src/middleware/builtin/logger.ts +0 -246
- package/src/src/middleware/builtin/security/rate-limit.ts +0 -123
- package/src/src/middleware/builtin/security/redis-rate-limit.ts +0 -109
- package/src/src/middleware/builtin/security/types.ts +0 -34
- package/src/src/middleware/builtin/timeout.ts +0 -104
- package/src/src/middleware/builtin/types.ts +0 -38
- package/src/src/middleware/core/context.ts +0 -60
- package/src/src/middleware/core/index.ts +0 -16
- package/src/src/middleware/core/pipeline/composer.ts +0 -36
- package/src/src/middleware/core/pipeline/executor.ts +0 -67
- package/src/src/middleware/core/pipeline/index.ts +0 -10
- package/src/src/middleware/core/pipeline/pipeline.ts +0 -97
- package/src/src/middleware/core/pipeline/types.ts +0 -1
- package/src/src/middleware/core/types.ts +0 -27
- package/src/src/middleware/index.ts +0 -67
- package/src/src/modules/component-registry/index.ts +0 -8
- package/src/src/modules/component-registry/registry.ts +0 -246
- package/src/src/modules/import-map/default-import-map.ts +0 -62
- package/src/src/modules/import-map/index.ts +0 -14
- package/src/src/modules/import-map/loader.ts +0 -173
- package/src/src/modules/import-map/merger.ts +0 -19
- package/src/src/modules/import-map/preloader.ts +0 -47
- package/src/src/modules/import-map/resolver.ts +0 -106
- package/src/src/modules/import-map/transformer.ts +0 -49
- package/src/src/modules/import-map/types.ts +0 -8
- package/src/src/modules/index.ts +0 -43
- package/src/src/modules/loader-shared/patterns.ts +0 -40
- package/src/src/modules/manifest/route-module-manifest.ts +0 -241
- package/src/src/modules/module-resolver.ts +0 -145
- package/src/src/modules/react-loader/component-loader.ts +0 -90
- package/src/src/modules/react-loader/css-import-collector.ts +0 -50
- package/src/src/modules/react-loader/extract-component.ts +0 -33
- package/src/src/modules/react-loader/index.ts +0 -14
- package/src/src/modules/react-loader/path-resolver.ts +0 -27
- package/src/src/modules/react-loader/ssr-module-loader/cache/index.ts +0 -27
- package/src/src/modules/react-loader/ssr-module-loader/cache/memory.ts +0 -278
- package/src/src/modules/react-loader/ssr-module-loader/cache/redis.ts +0 -65
- package/src/src/modules/react-loader/ssr-module-loader/concurrency/index.ts +0 -7
- package/src/src/modules/react-loader/ssr-module-loader/concurrency/semaphore.ts +0 -67
- package/src/src/modules/react-loader/ssr-module-loader/constants.ts +0 -64
- package/src/src/modules/react-loader/ssr-module-loader/cross-project-import-loader.ts +0 -152
- package/src/src/modules/react-loader/ssr-module-loader/http-bundle-helpers.ts +0 -196
- package/src/src/modules/react-loader/ssr-module-loader/import-rewriter.ts +0 -170
- package/src/src/modules/react-loader/ssr-module-loader/index.ts +0 -48
- package/src/src/modules/react-loader/ssr-module-loader/loader-helpers.ts +0 -37
- package/src/src/modules/react-loader/ssr-module-loader/loader.ts +0 -685
- package/src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts +0 -45
- package/src/src/modules/react-loader/ssr-module-loader/ssr-cache-manager.ts +0 -318
- package/src/src/modules/react-loader/ssr-module-loader/ssr-circuit-breaker.ts +0 -75
- package/src/src/modules/react-loader/ssr-module-loader/ssr-dependency-validator.ts +0 -172
- package/src/src/modules/react-loader/ssr-module-loader/tmp-paths.ts +0 -44
- package/src/src/modules/react-loader/ssr-module-loader/types.ts +0 -42
- package/src/src/modules/react-loader/ssr-module-loader/vf-module-resolver.ts +0 -117
- package/src/src/modules/react-loader/temp-directory.ts +0 -58
- package/src/src/modules/react-loader/types.ts +0 -26
- package/src/src/modules/react-loader/unified-loader.ts +0 -134
- package/src/src/modules/server/api-server.ts +0 -57
- package/src/src/modules/server/index.ts +0 -15
- package/src/src/modules/server/module-batch-handler.ts +0 -450
- package/src/src/modules/server/module-server.ts +0 -697
- package/src/src/modules/server/rate-limiter.ts +0 -26
- package/src/src/modules/server/ssr-import-rewriter.ts +0 -116
- package/src/src/modules/server/websocket-handler.ts +0 -133
- package/src/src/oauth/handlers/callback-handler.ts +0 -176
- package/src/src/oauth/handlers/index.ts +0 -18
- package/src/src/oauth/handlers/init-handler.ts +0 -237
- package/src/src/oauth/index.ts +0 -83
- package/src/src/oauth/providers/atlassian.ts +0 -67
- package/src/src/oauth/providers/base.ts +0 -410
- package/src/src/oauth/providers/common.ts +0 -361
- package/src/src/oauth/providers/google.ts +0 -71
- package/src/src/oauth/providers/index.ts +0 -66
- package/src/src/oauth/providers/microsoft.ts +0 -85
- package/src/src/oauth/schemas/index.ts +0 -22
- package/src/src/oauth/schemas/oauth.schema.ts +0 -106
- package/src/src/oauth/token-store/index.ts +0 -8
- package/src/src/oauth/token-store/memory.ts +0 -92
- package/src/src/oauth/types.ts +0 -49
- package/src/src/observability/auto-instrument/configurator.ts +0 -12
- package/src/src/observability/auto-instrument/http-instrumentation.ts +0 -208
- package/src/src/observability/auto-instrument/index.ts +0 -19
- package/src/src/observability/auto-instrument/orchestrator.ts +0 -60
- package/src/src/observability/auto-instrument/react-instrumentation.ts +0 -78
- package/src/src/observability/auto-instrument/types.ts +0 -46
- package/src/src/observability/auto-instrument/wrappers.ts +0 -107
- package/src/src/observability/error-collector.ts +0 -390
- package/src/src/observability/file-log-subscriber.ts +0 -187
- package/src/src/observability/index.ts +0 -130
- package/src/src/observability/instruments/build-instruments.ts +0 -36
- package/src/src/observability/instruments/cache-instruments.ts +0 -65
- package/src/src/observability/instruments/data-instruments.ts +0 -32
- package/src/src/observability/instruments/error-instruments.ts +0 -54
- package/src/src/observability/instruments/http-instruments.ts +0 -34
- package/src/src/observability/instruments/index.ts +0 -16
- package/src/src/observability/instruments/instruments-factory.ts +0 -71
- package/src/src/observability/instruments/memory-instruments.ts +0 -72
- package/src/src/observability/instruments/render-instruments.ts +0 -32
- package/src/src/observability/instruments/rsc-instruments.ts +0 -65
- package/src/src/observability/log-buffer.ts +0 -217
- package/src/src/observability/metrics/config.ts +0 -96
- package/src/src/observability/metrics/index.ts +0 -142
- package/src/src/observability/metrics/manager.ts +0 -134
- package/src/src/observability/metrics/recorder.ts +0 -139
- package/src/src/observability/metrics/types.ts +0 -81
- package/src/src/observability/request-profiler.ts +0 -140
- package/src/src/observability/simple-metrics/index.ts +0 -88
- package/src/src/observability/simple-metrics/metrics-recorder.ts +0 -327
- package/src/src/observability/simple-metrics/metrics-state.ts +0 -135
- package/src/src/observability/simple-metrics/observability-loader.ts +0 -53
- package/src/src/observability/simple-metrics/otel-instruments.ts +0 -93
- package/src/src/observability/simple-metrics/types.ts +0 -81
- package/src/src/observability/tracing/api-shim.ts +0 -409
- package/src/src/observability/tracing/config.ts +0 -77
- package/src/src/observability/tracing/context-propagation.ts +0 -88
- package/src/src/observability/tracing/index.ts +0 -134
- package/src/src/observability/tracing/manager.ts +0 -129
- package/src/src/observability/tracing/otlp-setup.ts +0 -251
- package/src/src/observability/tracing/service-tracer.ts +0 -267
- package/src/src/observability/tracing/span-names.ts +0 -111
- package/src/src/observability/tracing/span-operations.ts +0 -102
- package/src/src/observability/tracing/types.ts +0 -47
- package/src/src/platform/adapters/base.ts +0 -186
- package/src/src/platform/adapters/bun.ts +0 -20
- package/src/src/platform/adapters/deno.ts +0 -1
- package/src/src/platform/adapters/detect.ts +0 -84
- package/src/src/platform/adapters/fallback-wrapper.ts +0 -146
- package/src/src/platform/adapters/fs/cache/file-cache.ts +0 -420
- package/src/src/platform/adapters/fs/cache/size-estimator.ts +0 -7
- package/src/src/platform/adapters/fs/cache/types.ts +0 -20
- package/src/src/platform/adapters/fs/factory.ts +0 -70
- package/src/src/platform/adapters/fs/github/adapter.ts +0 -152
- package/src/src/platform/adapters/fs/github/directory-operations.ts +0 -61
- package/src/src/platform/adapters/fs/github/github-api-client.ts +0 -230
- package/src/src/platform/adapters/fs/github/index.ts +0 -34
- package/src/src/platform/adapters/fs/github/path-utils.ts +0 -9
- package/src/src/platform/adapters/fs/github/read-operations.ts +0 -175
- package/src/src/platform/adapters/fs/github/schemas/github-api.schema.ts +0 -89
- package/src/src/platform/adapters/fs/github/schemas/index.ts +0 -19
- package/src/src/platform/adapters/fs/github/stat-operations.ts +0 -266
- package/src/src/platform/adapters/fs/github/types.ts +0 -109
- package/src/src/platform/adapters/fs/index.ts +0 -33
- package/src/src/platform/adapters/fs/integration.ts +0 -99
- package/src/src/platform/adapters/fs/shared-types.ts +0 -11
- package/src/src/platform/adapters/fs/veryfront/adapter-content-context.ts +0 -149
- package/src/src/platform/adapters/fs/veryfront/adapter-helpers.ts +0 -43
- package/src/src/platform/adapters/fs/veryfront/adapter.ts +0 -774
- package/src/src/platform/adapters/fs/veryfront/api-search-circuit-breaker.ts +0 -30
- package/src/src/platform/adapters/fs/veryfront/base-operations.ts +0 -13
- package/src/src/platform/adapters/fs/veryfront/cache-keys.ts +0 -41
- package/src/src/platform/adapters/fs/veryfront/content-metrics.ts +0 -208
- package/src/src/platform/adapters/fs/veryfront/default-invalidation-callbacks.ts +0 -66
- package/src/src/platform/adapters/fs/veryfront/directory-operations.ts +0 -162
- package/src/src/platform/adapters/fs/veryfront/extension-priority.ts +0 -18
- package/src/src/platform/adapters/fs/veryfront/file-list-access.ts +0 -109
- package/src/src/platform/adapters/fs/veryfront/file-list-index.ts +0 -259
- package/src/src/platform/adapters/fs/veryfront/in-flight-dedupe.ts +0 -63
- package/src/src/platform/adapters/fs/veryfront/index.ts +0 -8
- package/src/src/platform/adapters/fs/veryfront/invalidation-state.ts +0 -130
- package/src/src/platform/adapters/fs/veryfront/multi-project-adapter.ts +0 -266
- package/src/src/platform/adapters/fs/veryfront/path-normalizer.ts +0 -40
- package/src/src/platform/adapters/fs/veryfront/proxy-manager.ts +0 -621
- package/src/src/platform/adapters/fs/veryfront/read-operations-helpers.ts +0 -111
- package/src/src/platform/adapters/fs/veryfront/read-operations.ts +0 -778
- package/src/src/platform/adapters/fs/veryfront/request-context.ts +0 -100
- package/src/src/platform/adapters/fs/veryfront/retry.ts +0 -62
- package/src/src/platform/adapters/fs/veryfront/schemas/index.ts +0 -7
- package/src/src/platform/adapters/fs/veryfront/schemas/proxy-manager.schema.ts +0 -16
- package/src/src/platform/adapters/fs/veryfront/stat-operations-helpers.ts +0 -74
- package/src/src/platform/adapters/fs/veryfront/stat-operations.ts +0 -556
- package/src/src/platform/adapters/fs/veryfront/types.ts +0 -142
- package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +0 -94
- package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +0 -893
- package/src/src/platform/adapters/fs/wrapper.ts +0 -264
- package/src/src/platform/adapters/mock.ts +0 -185
- package/src/src/platform/adapters/node.ts +0 -18
- package/src/src/platform/adapters/redis/deno.ts +0 -120
- package/src/src/platform/adapters/redis/index.ts +0 -21
- package/src/src/platform/adapters/redis/interface.ts +0 -42
- package/src/src/platform/adapters/redis/modules.ts +0 -54
- package/src/src/platform/adapters/redis/node.ts +0 -127
- package/src/src/platform/adapters/redis/types.ts +0 -84
- package/src/src/platform/adapters/redis/utils.ts +0 -14
- package/src/src/platform/adapters/registry.ts +0 -202
- package/src/src/platform/adapters/runtime/bun/adapter.ts +0 -42
- package/src/src/platform/adapters/runtime/bun/environment-adapter.ts +0 -17
- package/src/src/platform/adapters/runtime/bun/filesystem-adapter.ts +0 -203
- package/src/src/platform/adapters/runtime/bun/http-server.ts +0 -45
- package/src/src/platform/adapters/runtime/bun/index.ts +0 -20
- package/src/src/platform/adapters/runtime/bun/types.ts +0 -45
- package/src/src/platform/adapters/runtime/bun/websocket-adapter.ts +0 -47
- package/src/src/platform/adapters/runtime/deno/adapter.ts +0 -458
- package/src/src/platform/adapters/runtime/deno/index.ts +0 -7
- package/src/src/platform/adapters/runtime/node/adapter.ts +0 -42
- package/src/src/platform/adapters/runtime/node/environment-adapter.ts +0 -17
- package/src/src/platform/adapters/runtime/node/filesystem-adapter.ts +0 -147
- package/src/src/platform/adapters/runtime/node/http-server.ts +0 -196
- package/src/src/platform/adapters/runtime/node/index.ts +0 -18
- package/src/src/platform/adapters/runtime/node/types.ts +0 -42
- package/src/src/platform/adapters/runtime/node/websocket-adapter.ts +0 -191
- package/src/src/platform/adapters/runtime/shared/env-to-object.ts +0 -10
- package/src/src/platform/adapters/runtime/shared/node-based-shell-adapter.ts +0 -32
- package/src/src/platform/adapters/runtime/shared/server-lifecycle.ts +0 -31
- package/src/src/platform/adapters/runtime/shared/shared-watcher.ts +0 -59
- package/src/src/platform/adapters/runtime/shared/temp-dir.ts +0 -6
- package/src/src/platform/adapters/runtime/shared/watcher-queue.ts +0 -63
- package/src/src/platform/adapters/runtime-detection.ts +0 -10
- package/src/src/platform/adapters/veryfront-api-client/client.ts +0 -512
- package/src/src/platform/adapters/veryfront-api-client/index.ts +0 -50
- package/src/src/platform/adapters/veryfront-api-client/operations.ts +0 -576
- package/src/src/platform/adapters/veryfront-api-client/retry-handler.ts +0 -158
- package/src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts +0 -320
- package/src/src/platform/adapters/veryfront-api-client/schemas/index.ts +0 -41
- package/src/src/platform/adapters/veryfront-api-client/types.ts +0 -33
- package/src/src/platform/cloud/resolver.ts +0 -149
- package/src/src/platform/compat/console/deno.ts +0 -51
- package/src/src/platform/compat/console/index.ts +0 -90
- package/src/src/platform/compat/console/node.ts +0 -61
- package/src/src/platform/compat/console/types.ts +0 -18
- package/src/src/platform/compat/constants.ts +0 -14
- package/src/src/platform/compat/dynamic-import.ts +0 -15
- package/src/src/platform/compat/esbuild-init.ts +0 -77
- package/src/src/platform/compat/esbuild-shared.ts +0 -22
- package/src/src/platform/compat/esbuild.ts +0 -53
- package/src/src/platform/compat/framework-source-resolver.ts +0 -221
- package/src/src/platform/compat/fs.ts +0 -354
- package/src/src/platform/compat/http/deno-server.ts +0 -55
- package/src/src/platform/compat/http/factory.ts +0 -12
- package/src/src/platform/compat/http/index.ts +0 -45
- package/src/src/platform/compat/http/node-server.ts +0 -103
- package/src/src/platform/compat/http/node-types.ts +0 -34
- package/src/src/platform/compat/http/request-adapter.ts +0 -16
- package/src/src/platform/compat/http/responses.ts +0 -227
- package/src/src/platform/compat/http/types.ts +0 -23
- package/src/src/platform/compat/http/websocket.ts +0 -34
- package/src/src/platform/compat/kv/factory.ts +0 -60
- package/src/src/platform/compat/kv/index.ts +0 -10
- package/src/src/platform/compat/kv/memory-adapter.ts +0 -68
- package/src/src/platform/compat/kv/sqlite-adapter.ts +0 -113
- package/src/src/platform/compat/kv/types.ts +0 -31
- package/src/src/platform/compat/media-types.ts +0 -27
- package/src/src/platform/compat/opaque-deps.ts +0 -70
- package/src/src/platform/compat/path/basic-operations.ts +0 -59
- package/src/src/platform/compat/path/index.ts +0 -15
- package/src/src/platform/compat/path/parse-format.ts +0 -33
- package/src/src/platform/compat/path/resolution.ts +0 -136
- package/src/src/platform/compat/path/runtime.ts +0 -26
- package/src/src/platform/compat/path/security.ts +0 -29
- package/src/src/platform/compat/path/types.ts +0 -22
- package/src/src/platform/compat/path/url-conversion.ts +0 -58
- package/src/src/platform/compat/process/command.ts +0 -297
- package/src/src/platform/compat/process/env.ts +0 -227
- package/src/src/platform/compat/process/lifecycle.ts +0 -330
- package/src/src/platform/compat/process/runtime-process.ts +0 -27
- package/src/src/platform/compat/process.ts +0 -37
- package/src/src/platform/compat/react-paths.ts +0 -84
- package/src/src/platform/compat/runtime.ts +0 -112
- package/src/src/platform/compat/std/dotenv.ts +0 -87
- package/src/src/platform/compat/std/front-matter-yaml.ts +0 -39
- package/src/src/platform/compat/stdin.ts +0 -271
- package/src/src/platform/compat/transform.ts +0 -44
- package/src/src/platform/compat/vfs-paths.ts +0 -59
- package/src/src/platform/core-platform.ts +0 -199
- package/src/src/platform/environment.ts +0 -35
- package/src/src/platform/index.ts +0 -73
- package/src/src/prompt/factory.ts +0 -59
- package/src/src/prompt/index.ts +0 -22
- package/src/src/prompt/registry.ts +0 -29
- package/src/src/prompt/schemas/prompt.schema.ts +0 -15
- package/src/src/prompt/types.ts +0 -9
- package/src/src/provider/index.ts +0 -55
- package/src/src/provider/local/embedding-runtime-adapter.ts +0 -37
- package/src/src/provider/local/env.ts +0 -37
- package/src/src/provider/local/local-embedding-engine.ts +0 -93
- package/src/src/provider/local/local-engine.ts +0 -317
- package/src/src/provider/local/model-catalog.ts +0 -139
- package/src/src/provider/local/model-runtime-adapter.ts +0 -202
- package/src/src/provider/model-registry.ts +0 -369
- package/src/src/provider/runtime-inspection.ts +0 -25
- package/src/src/provider/runtime-loader/provider-embedding-responses.ts +0 -61
- package/src/src/provider/runtime-loader/provider-endpoints.ts +0 -50
- package/src/src/provider/runtime-loader/provider-http.ts +0 -207
- package/src/src/provider/runtime-loader/provider-records.ts +0 -7
- package/src/src/provider/runtime-loader/provider-request-init.ts +0 -101
- package/src/src/provider/runtime-loader/provider-sse.ts +0 -29
- package/src/src/provider/runtime-loader/provider-usage.ts +0 -135
- package/src/src/provider/runtime-loader/tool-input-status.ts +0 -242
- package/src/src/provider/runtime-loader.ts +0 -517
- package/src/src/provider/shared/index.ts +0 -70
- package/src/src/provider/types.ts +0 -40
- package/src/src/provider/veryfront-cloud/context.ts +0 -28
- package/src/src/provider/veryfront-cloud/model-catalog.ts +0 -224
- package/src/src/provider/veryfront-cloud/openai.ts +0 -34
- package/src/src/provider/veryfront-cloud/provider.ts +0 -82
- package/src/src/provider/veryfront-cloud/shared.ts +0 -139
- package/src/src/proxy/cache/index.ts +0 -78
- package/src/src/proxy/cache/memory-cache.ts +0 -136
- package/src/src/proxy/cache/resilient-cache.ts +0 -204
- package/src/src/proxy/cache/tracing-cache.ts +0 -77
- package/src/src/proxy/cache/types.ts +0 -48
- package/src/src/proxy/env.ts +0 -11
- package/src/src/proxy/error-response.ts +0 -32
- package/src/src/proxy/handler.ts +0 -905
- package/src/src/proxy/log-noise.ts +0 -42
- package/src/src/proxy/logger.ts +0 -406
- package/src/src/proxy/main.ts +0 -624
- package/src/src/proxy/oauth-client.ts +0 -93
- package/src/src/proxy/renderer-router.ts +0 -126
- package/src/src/proxy/retry.ts +0 -19
- package/src/src/proxy/server-resolver.ts +0 -151
- package/src/src/proxy/token-manager.ts +0 -193
- package/src/src/proxy/tracing.ts +0 -203
- package/src/src/proxy/version.ts +0 -21
- package/src/src/react/compat/config-generator.ts +0 -161
- package/src/src/react/compat/hooks-adapter.ts +0 -241
- package/src/src/react/compat/index.ts +0 -50
- package/src/src/react/compat/ssr-adapter/html-wrapper.ts +0 -40
- package/src/src/react/compat/ssr-adapter/index.ts +0 -13
- package/src/src/react/compat/ssr-adapter/response-builder.ts +0 -44
- package/src/src/react/compat/ssr-adapter/server-loader.ts +0 -98
- package/src/src/react/compat/ssr-adapter/stream-renderer.ts +0 -248
- package/src/src/react/compat/ssr-adapter/string-renderer.ts +0 -75
- package/src/src/react/compat/ssr-adapter/types.ts +0 -36
- package/src/src/react/compat/version-detector/compatibility-checker.ts +0 -55
- package/src/src/react/compat/version-detector/feature-detector.ts +0 -92
- package/src/src/react/compat/version-detector/index.ts +0 -22
- package/src/src/react/compat/version-detector/types.ts +0 -42
- package/src/src/react/compat/version-detector/version-cache.ts +0 -36
- package/src/src/react/compat/version-detector/version-parser.ts +0 -33
- package/src/src/react/components/AppWrapper.tsx +0 -44
- package/src/src/react/components/Head.tsx +0 -12
- package/src/src/react/components/LayoutComponent.tsx +0 -62
- package/src/src/react/components/MDXProvider.tsx +0 -21
- package/src/src/react/components/ProviderComponent.tsx +0 -58
- package/src/src/react/components/chat/agent-card.tsx +0 -162
- package/src/src/react/components/chat/chat/components/animations.tsx +0 -62
- package/src/src/react/components/chat/chat/components/attachment-pill.tsx +0 -110
- package/src/src/react/components/chat/chat/components/branch-picker.tsx +0 -70
- package/src/src/react/components/chat/chat/components/code-block.tsx +0 -83
- package/src/src/react/components/chat/chat/components/drop-zone.tsx +0 -49
- package/src/src/react/components/chat/chat/components/empty-state.tsx +0 -121
- package/src/src/react/components/chat/chat/components/inference-badge.tsx +0 -48
- package/src/src/react/components/chat/chat/components/inline-citation.tsx +0 -150
- package/src/src/react/components/chat/chat/components/message-actions.tsx +0 -88
- package/src/src/react/components/chat/chat/components/message-edit-form.tsx +0 -95
- package/src/src/react/components/chat/chat/components/message-feedback.tsx +0 -72
- package/src/src/react/components/chat/chat/components/quick-actions.tsx +0 -38
- package/src/src/react/components/chat/chat/components/reasoning.tsx +0 -56
- package/src/src/react/components/chat/chat/components/sidebar.tsx +0 -204
- package/src/src/react/components/chat/chat/components/skill-badge.tsx +0 -51
- package/src/src/react/components/chat/chat/components/sources.tsx +0 -99
- package/src/src/react/components/chat/chat/components/step-indicator.tsx +0 -33
- package/src/src/react/components/chat/chat/components/tab-switcher.tsx +0 -69
- package/src/src/react/components/chat/chat/components/tool-ui.tsx +0 -204
- package/src/src/react/components/chat/chat/components/upgrade-cta.tsx +0 -56
- package/src/src/react/components/chat/chat/components/uploads-panel.tsx +0 -143
- package/src/src/react/components/chat/chat/composition/api.tsx +0 -17
- package/src/src/react/components/chat/chat/composition/chat-composer.tsx +0 -205
- package/src/src/react/components/chat/chat/composition/chat-empty.tsx +0 -77
- package/src/src/react/components/chat/chat/composition/chat-if.tsx +0 -25
- package/src/src/react/components/chat/chat/composition/chat-message-list.tsx +0 -356
- package/src/src/react/components/chat/chat/composition/chat-root.tsx +0 -183
- package/src/src/react/components/chat/chat/composition/error-banner.tsx +0 -38
- package/src/src/react/components/chat/chat/composition/message.tsx +0 -343
- package/src/src/react/components/chat/chat/composition/model-avatar.tsx +0 -103
- package/src/src/react/components/chat/chat/contexts/chat-context.tsx +0 -81
- package/src/src/react/components/chat/chat/contexts/composer-context.tsx +0 -62
- package/src/src/react/components/chat/chat/contexts/index.ts +0 -36
- package/src/src/react/components/chat/chat/contexts/message-context.tsx +0 -52
- package/src/src/react/components/chat/chat/contexts/thread-list-context.tsx +0 -43
- package/src/src/react/components/chat/chat/hooks/use-threads.ts +0 -208
- package/src/src/react/components/chat/chat/index.tsx +0 -529
- package/src/src/react/components/chat/chat/utils/export.ts +0 -75
- package/src/src/react/components/chat/chat/utils/message-parts.ts +0 -151
- package/src/src/react/components/chat/chat-with-sidebar.tsx +0 -373
- package/src/src/react/components/chat/chat.tsx +0 -146
- package/src/src/react/components/chat/csp-nonce.ts +0 -13
- package/src/src/react/components/chat/error-boundary.tsx +0 -108
- package/src/src/react/components/chat/icons/index.ts +0 -328
- package/src/src/react/components/chat/markdown.tsx +0 -284
- package/src/src/react/components/chat/message.tsx +0 -166
- package/src/src/react/components/chat/model-selector.tsx +0 -262
- package/src/src/react/components/chat/theme.ts +0 -325
- package/src/src/react/components/optimized-image/OptimizedBackgroundImage.tsx +0 -40
- package/src/src/react/components/optimized-image/OptimizedImage.tsx +0 -81
- package/src/src/react/components/optimized-image/SimpleOptimizedImage.tsx +0 -43
- package/src/src/react/components/optimized-image/helpers.ts +0 -29
- package/src/src/react/components/optimized-image/index.ts +0 -12
- package/src/src/react/components/optimized-image/useOptimizedImage.ts +0 -32
- package/src/src/react/components/optimized-image/utils.tsx +0 -53
- package/src/src/react/context/index.tsx +0 -13
- package/src/src/react/fonts/index.ts +0 -103
- package/src/src/react/head-collector.ts +0 -143
- package/src/src/react/index.ts +0 -99
- package/src/src/react/primitives/agent-primitives.tsx +0 -87
- package/src/src/react/primitives/chat-container.tsx +0 -17
- package/src/src/react/primitives/index.ts +0 -41
- package/src/src/react/primitives/input-box.tsx +0 -226
- package/src/src/react/primitives/message-list.tsx +0 -83
- package/src/src/react/primitives/tool-primitives.tsx +0 -120
- package/src/src/react/router/index.tsx +0 -13
- package/src/src/react/runtime/core.ts +0 -303
- package/src/src/registry/project-scoped-registry-manager.ts +0 -211
- package/src/src/registry/scoped-registry-facade.ts +0 -51
- package/src/src/rendering/app-reserved.ts +0 -109
- package/src/src/rendering/app-route-resolver.ts +0 -170
- package/src/src/rendering/cache/cache-coordinator.ts +0 -195
- package/src/src/rendering/cache/index.ts +0 -24
- package/src/src/rendering/cache/stores/api-store.ts +0 -222
- package/src/src/rendering/cache/stores/filesystem-store.ts +0 -114
- package/src/src/rendering/cache/stores/index.ts +0 -11
- package/src/src/rendering/cache/stores/kv-store.ts +0 -103
- package/src/src/rendering/cache/stores/memory-store.ts +0 -97
- package/src/src/rendering/cache/stores/redis-store.ts +0 -267
- package/src/src/rendering/cache/types.ts +0 -21
- package/src/src/rendering/chunk-optimizer.ts +0 -273
- package/src/src/rendering/cleanup.ts +0 -27
- package/src/src/rendering/component-handling.ts +0 -172
- package/src/src/rendering/context/render-context.ts +0 -143
- package/src/src/rendering/element-validator/element-inspector.ts +0 -190
- package/src/src/rendering/element-validator/element-normalizer.ts +0 -73
- package/src/src/rendering/element-validator/index.ts +0 -18
- package/src/src/rendering/element-validator/primitive-checks.ts +0 -124
- package/src/src/rendering/element-validator/types.ts +0 -15
- package/src/src/rendering/element-validator/validator-core.ts +0 -46
- package/src/src/rendering/factories/service-factories.ts +0 -112
- package/src/src/rendering/index.ts +0 -49
- package/src/src/rendering/layouts/index.ts +0 -26
- package/src/src/rendering/layouts/layout-applicator.ts +0 -468
- package/src/src/rendering/layouts/layout-collector.ts +0 -401
- package/src/src/rendering/layouts/layout-compiler.ts +0 -75
- package/src/src/rendering/layouts/types.ts +0 -16
- package/src/src/rendering/layouts/utils/app-resolver.ts +0 -71
- package/src/src/rendering/layouts/utils/applicator.ts +0 -228
- package/src/src/rendering/layouts/utils/compiler.ts +0 -30
- package/src/src/rendering/layouts/utils/component-loader.ts +0 -273
- package/src/src/rendering/layouts/utils/discovery.ts +0 -243
- package/src/src/rendering/layouts/utils/ensure-valid-child.ts +0 -51
- package/src/src/rendering/layouts/utils/hash-calculator.ts +0 -51
- package/src/src/rendering/orchestrator/compiler-service.ts +0 -37
- package/src/src/rendering/orchestrator/config.ts +0 -120
- package/src/src/rendering/orchestrator/css-cache.ts +0 -81
- package/src/src/rendering/orchestrator/css-candidate-manifest.ts +0 -224
- package/src/src/rendering/orchestrator/file-resolver/candidates.ts +0 -25
- package/src/src/rendering/orchestrator/file-resolver/index.ts +0 -84
- package/src/src/rendering/orchestrator/html-head.ts +0 -74
- package/src/src/rendering/orchestrator/html-imported-css.ts +0 -81
- package/src/src/rendering/orchestrator/html-project-css.ts +0 -203
- package/src/src/rendering/orchestrator/html-types.ts +0 -27
- package/src/src/rendering/orchestrator/html.ts +0 -487
- package/src/src/rendering/orchestrator/layout.ts +0 -321
- package/src/src/rendering/orchestrator/lifecycle.ts +0 -297
- package/src/src/rendering/orchestrator/mdx.ts +0 -78
- package/src/src/rendering/orchestrator/module-collection.ts +0 -73
- package/src/src/rendering/orchestrator/module-loader/cache.ts +0 -29
- package/src/src/rendering/orchestrator/module-loader/esm-rewriter.ts +0 -102
- package/src/src/rendering/orchestrator/module-loader/index.ts +0 -569
- package/src/src/rendering/orchestrator/path-helpers.ts +0 -26
- package/src/src/rendering/orchestrator/pipeline-helpers.ts +0 -35
- package/src/src/rendering/orchestrator/pipeline.ts +0 -889
- package/src/src/rendering/orchestrator/ssr-orchestrator.ts +0 -278
- package/src/src/rendering/orchestrator/ssr.ts +0 -228
- package/src/src/rendering/orchestrator/types.ts +0 -92
- package/src/src/rendering/page-renderer.ts +0 -252
- package/src/src/rendering/page-rendering.ts +0 -182
- package/src/src/rendering/page-resolution/index.ts +0 -21
- package/src/src/rendering/page-resolution/page-resolver.ts +0 -238
- package/src/src/rendering/renderer-concurrency.ts +0 -195
- package/src/src/rendering/renderer.ts +0 -593
- package/src/src/rendering/router-detection.ts +0 -247
- package/src/src/rendering/rsc/client-module-strategy.ts +0 -100
- package/src/src/rendering/rsc/component-analyzer.ts +0 -148
- package/src/src/rendering/rsc/constants.ts +0 -6
- package/src/src/rendering/rsc/export-extractor.ts +0 -44
- package/src/src/rendering/rsc/production-optimizer.ts +0 -128
- package/src/src/rendering/rsc/server-action-guard.ts +0 -5
- package/src/src/rendering/rsc/server-renderer/component-detector.ts +0 -47
- package/src/src/rendering/rsc/server-renderer/html-generator.ts +0 -50
- package/src/src/rendering/rsc/server-renderer/index.ts +0 -18
- package/src/src/rendering/rsc/server-renderer/prop-serializer.ts +0 -69
- package/src/src/rendering/rsc/server-renderer/rsc-renderer.ts +0 -47
- package/src/src/rendering/rsc/server-renderer/tree-processor.ts +0 -126
- package/src/src/rendering/rsc/types.ts +0 -8
- package/src/src/rendering/script-page-handling.ts +0 -392
- package/src/src/rendering/shared/context-aware-cache.ts +0 -281
- package/src/src/rendering/shared/shared-services.ts +0 -112
- package/src/src/rendering/snippet-renderer.ts +0 -386
- package/src/src/rendering/ssr/component-registry.ts +0 -326
- package/src/src/rendering/ssr/index.ts +0 -10
- package/src/src/rendering/ssr/mdx-module-loader.ts +0 -185
- package/src/src/rendering/ssr/mdx-renderer.ts +0 -66
- package/src/src/rendering/ssr/types.ts +0 -14
- package/src/src/rendering/ssr-globals/context.ts +0 -70
- package/src/src/rendering/ssr-globals/dom-stubs.ts +0 -435
- package/src/src/rendering/ssr-globals/fetch-interceptor.ts +0 -123
- package/src/src/rendering/ssr-globals/index.ts +0 -79
- package/src/src/rendering/ssr-globals.ts +0 -13
- package/src/src/rendering/ssr-renderer.ts +0 -258
- package/src/src/rendering/styles.ts +0 -15
- package/src/src/rendering/utils/index.ts +0 -22
- package/src/src/rendering/utils/react-helpers.ts +0 -31
- package/src/src/rendering/utils/stream-utils.ts +0 -129
- package/src/src/rendering/virtual-module-system.ts +0 -106
- package/src/src/repositories/schemas/index.ts +0 -14
- package/src/src/repositories/schemas/repository.schema.ts +0 -41
- package/src/src/repositories/types.ts +0 -26
- package/src/src/resource/factory.ts +0 -64
- package/src/src/resource/index.ts +0 -30
- package/src/src/resource/registry.ts +0 -41
- package/src/src/resource/schemas/index.ts +0 -14
- package/src/src/resource/schemas/resource.schema.ts +0 -21
- package/src/src/resource/types.ts +0 -36
- package/src/src/routing/api/api-route-matcher.ts +0 -196
- package/src/src/routing/api/context-builder.ts +0 -69
- package/src/src/routing/api/handler.ts +0 -341
- package/src/src/routing/api/index.ts +0 -26
- package/src/src/routing/api/method-validator.ts +0 -26
- package/src/src/routing/api/module-loader/esbuild-plugin.ts +0 -192
- package/src/src/routing/api/module-loader/external-import-rewriter.ts +0 -461
- package/src/src/routing/api/module-loader/http-validator.ts +0 -38
- package/src/src/routing/api/module-loader/loader-helpers.ts +0 -68
- package/src/src/routing/api/module-loader/loader.ts +0 -672
- package/src/src/routing/api/module-loader/security-config.ts +0 -28
- package/src/src/routing/api/module-loader/types.ts +0 -36
- package/src/src/routing/api/openapi/path-utils.ts +0 -132
- package/src/src/routing/api/openapi/spec-generator.ts +0 -265
- package/src/src/routing/api/openapi/types.ts +0 -135
- package/src/src/routing/api/route-discovery.ts +0 -70
- package/src/src/routing/api/route-executor.ts +0 -450
- package/src/src/routing/client/dom-utils.ts +0 -174
- package/src/src/routing/client/index.ts +0 -33
- package/src/src/routing/client/navigation-handlers.ts +0 -127
- package/src/src/routing/client/page-loader.ts +0 -215
- package/src/src/routing/client/page-transition.ts +0 -99
- package/src/src/routing/client/types.ts +0 -39
- package/src/src/routing/client/viewport-prefetch.ts +0 -81
- package/src/src/routing/index.ts +0 -54
- package/src/src/routing/matchers/index.ts +0 -11
- package/src/src/routing/matchers/pattern-route-matcher.ts +0 -46
- package/src/src/routing/matchers/route-matcher.ts +0 -41
- package/src/src/routing/matchers/route-parser.ts +0 -69
- package/src/src/routing/matchers/types.ts +0 -13
- package/src/src/routing/registry/index.ts +0 -7
- package/src/src/routing/registry/registry.ts +0 -161
- package/src/src/routing/registry/types.ts +0 -7
- package/src/src/routing/slug-mapper/dynamic-route-matcher.ts +0 -54
- package/src/src/routing/slug-mapper/index.ts +0 -11
- package/src/src/routing/slug-mapper/path-candidate-generator.ts +0 -58
- package/src/src/routing/slug-mapper/slug-normalizer.ts +0 -25
- package/src/src/routing/slug-mapper/types.ts +0 -8
- package/src/src/runtime/runtime-bridge.ts +0 -614
- package/src/src/sandbox/agent-service-tools.ts +0 -184
- package/src/src/sandbox/config.ts +0 -20
- package/src/src/sandbox/index.ts +0 -68
- package/src/src/sandbox/lazy-sandbox.ts +0 -736
- package/src/src/sandbox/sandbox.ts +0 -454
- package/src/src/sandbox/shell-tools.ts +0 -217
- package/src/src/sandbox/types.ts +0 -95
- package/src/src/schemas/common.ts +0 -99
- package/src/src/schemas/define.ts +0 -45
- package/src/src/schemas/index.ts +0 -65
- package/src/src/schemas/json-schema.ts +0 -33
- package/src/src/schemas/lazy.ts +0 -65
- package/src/src/schemas/primitives.ts +0 -84
- package/src/src/security/client/html-sanitizer.ts +0 -120
- package/src/src/security/csrf/helpers.ts +0 -144
- package/src/src/security/csrf/index.ts +0 -8
- package/src/src/security/deno-permissions.ts +0 -55
- package/src/src/security/http/auth.ts +0 -129
- package/src/src/security/http/base-handler.ts +0 -183
- package/src/src/security/http/client-hints.ts +0 -41
- package/src/src/security/http/config.ts +0 -96
- package/src/src/security/http/cors/constants.ts +0 -6
- package/src/src/security/http/cors/headers.ts +0 -80
- package/src/src/security/http/cors/index.ts +0 -36
- package/src/src/security/http/cors/middleware.ts +0 -42
- package/src/src/security/http/cors/preflight.ts +0 -86
- package/src/src/security/http/cors/types.ts +0 -30
- package/src/src/security/http/cors/validators.ts +0 -191
- package/src/src/security/http/csrf/csrf-handler.ts +0 -101
- package/src/src/security/http/csrf/index.ts +0 -7
- package/src/src/security/http/middleware/config-loader.ts +0 -61
- package/src/src/security/http/middleware/cors-handler.ts +0 -21
- package/src/src/security/http/middleware/index.ts +0 -16
- package/src/src/security/http/middleware/types.ts +0 -29
- package/src/src/security/http/response/builder.ts +0 -62
- package/src/src/security/http/response/cache-handler.ts +0 -34
- package/src/src/security/http/response/constants.ts +0 -15
- package/src/src/security/http/response/fluent-methods.ts +0 -137
- package/src/src/security/http/response/index.ts +0 -11
- package/src/src/security/http/response/response-methods.ts +0 -85
- package/src/src/security/http/response/security-handler.ts +0 -225
- package/src/src/security/http/response/static-helpers.ts +0 -150
- package/src/src/security/http/response/types.ts +0 -33
- package/src/src/security/index.ts +0 -100
- package/src/src/security/input-validation/errors.ts +0 -17
- package/src/src/security/input-validation/handler.ts +0 -47
- package/src/src/security/input-validation/index.ts +0 -18
- package/src/src/security/input-validation/limits.ts +0 -110
- package/src/src/security/input-validation/parsers.ts +0 -104
- package/src/src/security/input-validation/sanitizers.ts +0 -48
- package/src/src/security/input-validation/types.ts +0 -34
- package/src/src/security/path-validation/canonical.ts +0 -63
- package/src/src/security/path-validation/index.ts +0 -156
- package/src/src/security/path-validation/normalization.ts +0 -62
- package/src/src/security/path-validation/presets.ts +0 -73
- package/src/src/security/path-validation/rules.ts +0 -67
- package/src/src/security/path-validation/types.ts +0 -38
- package/src/src/security/path-validation.ts +0 -19
- package/src/src/security/sandbox/project-worker.ts +0 -421
- package/src/src/security/sandbox/worker-permissions.ts +0 -77
- package/src/src/security/sandbox/worker-pool.ts +0 -466
- package/src/src/security/sandbox/worker-types.ts +0 -212
- package/src/src/security/secure-fs.ts +0 -322
- package/src/src/security/utils/constant-time.ts +0 -15
- package/src/src/server/bootstrap.ts +0 -530
- package/src/src/server/build-app-route-renderer.ts +0 -148
- package/src/src/server/build-routes.ts +0 -137
- package/src/src/server/build-service-worker.ts +0 -170
- package/src/src/server/build-types.ts +0 -48
- package/src/src/server/context/cache-invalidation.ts +0 -153
- package/src/src/server/context/enriched-context-types.ts +0 -65
- package/src/src/server/context/enriched-context.ts +0 -58
- package/src/src/server/context/request-context.ts +0 -54
- package/src/src/server/dev-server/error-overlay/error-formatter.ts +0 -82
- package/src/src/server/dev-server/error-overlay/html-template.ts +0 -479
- package/src/src/server/dev-server/error-overlay/index.ts +0 -21
- package/src/src/server/dev-server/error-overlay/overlay-renderer.ts +0 -15
- package/src/src/server/dev-server/error-overlay/stack-parser.ts +0 -25
- package/src/src/server/dev-server/file-watch-setup.ts +0 -276
- package/src/src/server/dev-server/file-watcher.ts +0 -100
- package/src/src/server/dev-server/hmr-types.ts +0 -11
- package/src/src/server/dev-server/index.ts +0 -19
- package/src/src/server/dev-server/middleware.ts +0 -244
- package/src/src/server/dev-server/request-handler.ts +0 -186
- package/src/src/server/dev-server/route-discovery.ts +0 -241
- package/src/src/server/dev-server/server.ts +0 -487
- package/src/src/server/dev-server/types.ts +0 -36
- package/src/src/server/dev-server.ts +0 -8
- package/src/src/server/dev-ui/manifest.js +0 -31
- package/src/src/server/handlers/dev/dashboard/api.ts +0 -690
- package/src/src/server/handlers/dev/dashboard/html-shell.ts +0 -43
- package/src/src/server/handlers/dev/dashboard/index.ts +0 -59
- package/src/src/server/handlers/dev/dashboard/ui-handler.ts +0 -104
- package/src/src/server/handlers/dev/debug-context.handler.ts +0 -106
- package/src/src/server/handlers/dev/endpoints.handler.ts +0 -58
- package/src/src/server/handlers/dev/files/dev-file.handler.ts +0 -93
- package/src/src/server/handlers/dev/files/esbuild-bundler.ts +0 -11
- package/src/src/server/handlers/dev/files/esbuild-plugins.ts +0 -282
- package/src/src/server/handlers/dev/files/index.ts +0 -12
- package/src/src/server/handlers/dev/files/path-validator.ts +0 -60
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +0 -5458
- package/src/src/server/handlers/dev/projects/api.ts +0 -34
- package/src/src/server/handlers/dev/projects/html-shell.ts +0 -58
- package/src/src/server/handlers/dev/projects/index.ts +0 -74
- package/src/src/server/handlers/dev/projects/ui-handler.ts +0 -129
- package/src/src/server/handlers/dev/scripts/error-overlay.ts +0 -100
- package/src/src/server/handlers/dev/scripts/hmr-scripts.ts +0 -435
- package/src/src/server/handlers/dev/shared/not-found-response.ts +0 -9
- package/src/src/server/handlers/dev/shared/ui-module-transform.ts +0 -56
- package/src/src/server/handlers/dev/styles-candidate-scanner.ts +0 -152
- package/src/src/server/handlers/dev/styles-css.handler.ts +0 -465
- package/src/src/server/handlers/monitoring/client-log.handler.ts +0 -127
- package/src/src/server/handlers/monitoring/health.handler.ts +0 -96
- package/src/src/server/handlers/monitoring/memory.handler.ts +0 -178
- package/src/src/server/handlers/monitoring/metrics.handler.ts +0 -67
- package/src/src/server/handlers/preview/hmr-client-manager.ts +0 -91
- package/src/src/server/handlers/preview/hmr-client-message.ts +0 -63
- package/src/src/server/handlers/preview/hmr-message-router.ts +0 -92
- package/src/src/server/handlers/preview/hmr-ping-keepalive.ts +0 -49
- package/src/src/server/handlers/preview/hmr.handler.ts +0 -306
- package/src/src/server/handlers/preview/markdown-html-generator.ts +0 -187
- package/src/src/server/handlers/preview/markdown-preview.handler.ts +0 -186
- package/src/src/server/handlers/request/agent-run-cancel.handler.ts +0 -88
- package/src/src/server/handlers/request/agent-run-resume.handler.ts +0 -110
- package/src/src/server/handlers/request/agent-stream.handler.ts +0 -284
- package/src/src/server/handlers/request/api/api-handler-wrapper.ts +0 -159
- package/src/src/server/handlers/request/api/app-router-handler.ts +0 -68
- package/src/src/server/handlers/request/api/app-router-resolver.ts +0 -166
- package/src/src/server/handlers/request/api/index.ts +0 -12
- package/src/src/server/handlers/request/api/pages-api-handler.ts +0 -111
- package/src/src/server/handlers/request/api/project-discovery.ts +0 -133
- package/src/src/server/handlers/request/api/security-headers.ts +0 -54
- package/src/src/server/handlers/request/api/types.ts +0 -12
- package/src/src/server/handlers/request/channel-dispatch-request.ts +0 -113
- package/src/src/server/handlers/request/channel-invoke.handler.ts +0 -49
- package/src/src/server/handlers/request/css.handler.ts +0 -106
- package/src/src/server/handlers/request/internal-agents-list.handler.ts +0 -101
- package/src/src/server/handlers/request/lib-modules.handler.ts +0 -124
- package/src/src/server/handlers/request/module/batch-module-handler.ts +0 -37
- package/src/src/server/handlers/request/module/data-endpoint-handler.ts +0 -79
- package/src/src/server/handlers/request/module/index.ts +0 -14
- package/src/src/server/handlers/request/module/module-server-handler.ts +0 -70
- package/src/src/server/handlers/request/module/module.handler.ts +0 -94
- package/src/src/server/handlers/request/module/page-data-endpoint-handler.ts +0 -108
- package/src/src/server/handlers/request/module/page-module-handler.ts +0 -83
- package/src/src/server/handlers/request/module/virtual-module-handler.ts +0 -58
- package/src/src/server/handlers/request/openapi-docs.handler.ts +0 -91
- package/src/src/server/handlers/request/openapi.handler.ts +0 -169
- package/src/src/server/handlers/request/prod-hydration-module.handler.ts +0 -60
- package/src/src/server/handlers/request/rsc/index.ts +0 -82
- package/src/src/server/handlers/request/snippet.handler.ts +0 -137
- package/src/src/server/handlers/request/ssr/error-page-fallback.ts +0 -285
- package/src/src/server/handlers/request/ssr/etag-handler.ts +0 -18
- package/src/src/server/handlers/request/ssr/index.ts +0 -10
- package/src/src/server/handlers/request/ssr/not-found-fallback.ts +0 -105
- package/src/src/server/handlers/request/ssr/ssr-response-builder.ts +0 -88
- package/src/src/server/handlers/request/ssr/ssr.handler.ts +0 -303
- package/src/src/server/handlers/request/static.handler.ts +0 -125
- package/src/src/server/handlers/response/base.ts +0 -1
- package/src/src/server/handlers/response/cors.ts +0 -67
- package/src/src/server/handlers/response/not-found.ts +0 -156
- package/src/src/server/handlers/studio/bridge-modules.handler.ts +0 -131
- package/src/src/server/handlers/types.ts +0 -22
- package/src/src/server/handlers/utils/content-types.ts +0 -107
- package/src/src/server/handlers/utils/etag.ts +0 -44
- package/src/src/server/index.ts +0 -386
- package/src/src/server/node-handler.ts +0 -42
- package/src/src/server/production-server.ts +0 -466
- package/src/src/server/project-env/cache.ts +0 -101
- package/src/src/server/project-env/fetcher.ts +0 -80
- package/src/src/server/project-env/index.ts +0 -9
- package/src/src/server/project-env/storage.ts +0 -54
- package/src/src/server/reload-notifier.ts +0 -165
- package/src/src/server/runtime-handler/adapter-factory.ts +0 -216
- package/src/src/server/runtime-handler/environment-resolution.ts +0 -139
- package/src/src/server/runtime-handler/handler-context-builder.ts +0 -138
- package/src/src/server/runtime-handler/index.ts +0 -716
- package/src/src/server/runtime-handler/isolation.ts +0 -119
- package/src/src/server/runtime-handler/local-project-discovery.ts +0 -168
- package/src/src/server/runtime-handler/project-isolation.ts +0 -256
- package/src/src/server/runtime-handler/project-resolution.ts +0 -278
- package/src/src/server/runtime-handler/projects-handler.ts +0 -133
- package/src/src/server/runtime-handler/proxy-environment.ts +0 -15
- package/src/src/server/runtime-handler/request-lifecycle.ts +0 -129
- package/src/src/server/runtime-handler/request-tracker.ts +0 -259
- package/src/src/server/runtime-handler/request-utils.ts +0 -88
- package/src/src/server/runtime-handler/timeout-manager.ts +0 -83
- package/src/src/server/runtime-handler/tracing.ts +0 -93
- package/src/src/server/schemas/action.schema.ts +0 -15
- package/src/src/server/schemas/index.ts +0 -7
- package/src/src/server/service-server.ts +0 -598
- package/src/src/server/services/rendering/ssr.service.ts +0 -375
- package/src/src/server/services/rsc/endpoints/action-handler.ts +0 -63
- package/src/src/server/services/rsc/endpoints/action-parser.ts +0 -44
- package/src/src/server/services/rsc/endpoints/endpoint-router.ts +0 -315
- package/src/src/server/services/rsc/endpoints/handler-registry.ts +0 -85
- package/src/src/server/services/rsc/endpoints/index.ts +0 -12
- package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +0 -13
- package/src/src/server/services/rsc/endpoints/script-handlers.ts +0 -122
- package/src/src/server/services/rsc/endpoints/types.ts +0 -23
- package/src/src/server/services/rsc/orchestrators/component-resolver.ts +0 -76
- package/src/src/server/services/rsc/orchestrators/handler.ts +0 -58
- package/src/src/server/services/rsc/orchestrators/index.ts +0 -16
- package/src/src/server/services/rsc/orchestrators/manifest-handler.ts +0 -96
- package/src/src/server/services/rsc/orchestrators/page-handler.ts +0 -103
- package/src/src/server/services/rsc/orchestrators/render-handler.ts +0 -161
- package/src/src/server/services/rsc/orchestrators/stream-handler.ts +0 -94
- package/src/src/server/services/rsc/orchestrators/types.ts +0 -36
- package/src/src/server/services/static/index.ts +0 -10
- package/src/src/server/services/static/static-file.service.ts +0 -333
- package/src/src/server/shared/browser-module-bundler.ts +0 -65
- package/src/src/server/shared/index.ts +0 -12
- package/src/src/server/shared/renderer/adapter.ts +0 -410
- package/src/src/server/shared/renderer/index.ts +0 -14
- package/src/src/server/shared/renderer/memory/pressure.ts +0 -69
- package/src/src/server/shared/renderer-factory.ts +0 -14
- package/src/src/server/utils/chunk-utils.ts +0 -17
- package/src/src/server/utils/domain-lookup.ts +0 -265
- package/src/src/server/utils/domain-parser.ts +0 -238
- package/src/src/server/utils/error-html.ts +0 -163
- package/src/src/server/utils/proxy-trust.ts +0 -56
- package/src/src/server/utils/request-host.ts +0 -12
- package/src/src/skill/allowed-tools.ts +0 -100
- package/src/src/skill/executor.ts +0 -213
- package/src/src/skill/index.ts +0 -60
- package/src/src/skill/parser.ts +0 -207
- package/src/src/skill/path-safety.ts +0 -212
- package/src/src/skill/prompt-augmentation.ts +0 -48
- package/src/src/skill/registry.ts +0 -51
- package/src/src/skill/tools.ts +0 -221
- package/src/src/skill/types.ts +0 -107
- package/src/src/studio/bridge/bridge-bundle.generated.ts +0 -9
- package/src/src/studio/element-selector-injector.ts +0 -96
- package/src/src/studio/hash-utils.ts +0 -1
- package/src/src/task/discovery.ts +0 -294
- package/src/src/task/runner.ts +0 -90
- package/src/src/task/types.ts +0 -46
- package/src/src/testing/assert.ts +0 -352
- package/src/src/testing/bdd.ts +0 -619
- package/src/src/testing/deno-compat.ts +0 -206
- package/src/src/testing/index.ts +0 -92
- package/src/src/testing/init.ts +0 -30
- package/src/src/testing/isolation.ts +0 -177
- package/src/src/testing/timing.ts +0 -27
- package/src/src/testing/utils.ts +0 -44
- package/src/src/tool/context7.ts +0 -34
- package/src/src/tool/executor.ts +0 -22
- package/src/src/tool/factory.ts +0 -234
- package/src/src/tool/host-tools.ts +0 -127
- package/src/src/tool/index.ts +0 -118
- package/src/src/tool/project-scoped-remote-tools.ts +0 -292
- package/src/src/tool/registry.ts +0 -32
- package/src/src/tool/remote-mcp.ts +0 -346
- package/src/src/tool/remote-source-tools.ts +0 -62
- package/src/src/tool/result.ts +0 -23
- package/src/src/tool/schema/index.ts +0 -8
- package/src/src/tool/schema/json-schema.ts +0 -9
- package/src/src/tool/schema/zod-json-schema.ts +0 -87
- package/src/src/tool/sleep.ts +0 -102
- package/src/src/tool/tracing.ts +0 -70
- package/src/src/tool/types.ts +0 -173
- package/src/src/transforms/css-modules/naming.ts +0 -152
- package/src/src/transforms/esm/bundle-deps-validator.ts +0 -187
- package/src/src/transforms/esm/bundle-manifest-ttl.ts +0 -58
- package/src/src/transforms/esm/bundle-manifest-types.ts +0 -14
- package/src/src/transforms/esm/bundle-manifest.ts +0 -182
- package/src/src/transforms/esm/bundle-recovery.ts +0 -356
- package/src/src/transforms/esm/cached-bundle-validation.ts +0 -44
- package/src/src/transforms/esm/html-content.ts +0 -13
- package/src/src/transforms/esm/http-bundler.ts +0 -300
- package/src/src/transforms/esm/http-cache-helpers.ts +0 -188
- package/src/src/transforms/esm/http-cache-invariants.ts +0 -128
- package/src/src/transforms/esm/http-cache-state.ts +0 -72
- package/src/src/transforms/esm/http-cache-types.ts +0 -66
- package/src/src/transforms/esm/http-cache-wrapper.ts +0 -442
- package/src/src/transforms/esm/http-cache.ts +0 -439
- package/src/src/transforms/esm/import-parser.ts +0 -254
- package/src/src/transforms/esm/import-rewriter.ts +0 -194
- package/src/src/transforms/esm/in-flight-manager.ts +0 -145
- package/src/src/transforms/esm/index.ts +0 -23
- package/src/src/transforms/esm/lexer.ts +0 -178
- package/src/src/transforms/esm/package-registry.ts +0 -176
- package/src/src/transforms/esm/path-resolver.ts +0 -114
- package/src/src/transforms/esm/react-imports.ts +0 -55
- package/src/src/transforms/esm/source-url-embed.ts +0 -31
- package/src/src/transforms/esm/specifier-resolver.ts +0 -118
- package/src/src/transforms/esm/transform-cache.ts +0 -317
- package/src/src/transforms/esm/transform-utils.ts +0 -30
- package/src/src/transforms/esm/types.ts +0 -22
- package/src/src/transforms/esm-transform.ts +0 -13
- package/src/src/transforms/import-rewriter/index.ts +0 -82
- package/src/src/transforms/import-rewriter/parse-cache.ts +0 -195
- package/src/src/transforms/import-rewriter/strategies/alias-strategy.ts +0 -79
- package/src/src/transforms/import-rewriter/strategies/bare-strategy.ts +0 -96
- package/src/src/transforms/import-rewriter/strategies/cross-project-strategy.ts +0 -54
- package/src/src/transforms/import-rewriter/strategies/import-map-strategy.ts +0 -137
- package/src/src/transforms/import-rewriter/strategies/index.ts +0 -25
- package/src/src/transforms/import-rewriter/strategies/node-builtin-strategy.ts +0 -56
- package/src/src/transforms/import-rewriter/strategies/react-strategy.ts +0 -48
- package/src/src/transforms/import-rewriter/strategies/relative-strategy.ts +0 -71
- package/src/src/transforms/import-rewriter/strategies/url-strategy.ts +0 -23
- package/src/src/transforms/import-rewriter/strategies/vendor-strategy.ts +0 -47
- package/src/src/transforms/import-rewriter/strategies/veryfront-strategy.ts +0 -97
- package/src/src/transforms/import-rewriter/types.ts +0 -182
- package/src/src/transforms/import-rewriter/unified-rewriter.ts +0 -136
- package/src/src/transforms/import-rewriter/url-builder.ts +0 -145
- package/src/src/transforms/md/compiler/index.ts +0 -7
- package/src/src/transforms/md/compiler/md-compiler.ts +0 -61
- package/src/src/transforms/md/utils.ts +0 -20
- package/src/src/transforms/mdx/compiler/frontmatter-extractor.ts +0 -66
- package/src/src/transforms/mdx/compiler/import-rewriter.ts +0 -125
- package/src/src/transforms/mdx/compiler/index.ts +0 -63
- package/src/src/transforms/mdx/compiler/mdx-compiler.ts +0 -62
- package/src/src/transforms/mdx/esm-module-loader/cache/index.ts +0 -466
- package/src/src/transforms/mdx/esm-module-loader/cache/local-fs.ts +0 -10
- package/src/src/transforms/mdx/esm-module-loader/cache-format.ts +0 -204
- package/src/src/transforms/mdx/esm-module-loader/components/resolver.ts +0 -75
- package/src/src/transforms/mdx/esm-module-loader/constants.ts +0 -28
- package/src/src/transforms/mdx/esm-module-loader/import-transformer.ts +0 -215
- package/src/src/transforms/mdx/esm-module-loader/index.ts +0 -31
- package/src/src/transforms/mdx/esm-module-loader/jsx/runtime-loader.ts +0 -17
- package/src/src/transforms/mdx/esm-module-loader/jsx-cache.ts +0 -45
- package/src/src/transforms/mdx/esm-module-loader/loader-helpers.ts +0 -224
- package/src/src/transforms/mdx/esm-module-loader/loader.ts +0 -30
- package/src/src/transforms/mdx/esm-module-loader/metadata/extractor.ts +0 -105
- package/src/src/transforms/mdx/esm-module-loader/metadata/index.ts +0 -8
- package/src/src/transforms/mdx/esm-module-loader/metadata/string-parser.ts +0 -69
- package/src/src/transforms/mdx/esm-module-loader/missing-module.ts +0 -57
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/cache-keys.ts +0 -34
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/dependency-recovery.ts +0 -173
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/distributed-cache.ts +0 -260
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/framework-validator.ts +0 -294
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/http-fetcher.ts +0 -85
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/import-rewriter.ts +0 -108
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/index.ts +0 -499
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/module-cache.ts +0 -88
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/nested-imports.ts +0 -95
- package/src/src/transforms/mdx/esm-module-loader/module-fetcher/render-sessions.ts +0 -100
- package/src/src/transforms/mdx/esm-module-loader/module-writer.ts +0 -425
- package/src/src/transforms/mdx/esm-module-loader/resolution/file-finder.ts +0 -186
- package/src/src/transforms/mdx/esm-module-loader/types.ts +0 -83
- package/src/src/transforms/mdx/esm-module-loader/utils/hash.ts +0 -1
- package/src/src/transforms/mdx/esm-module-loader/utils/stub-module.ts +0 -111
- package/src/src/transforms/mdx/index.ts +0 -116
- package/src/src/transforms/mdx/mdx-cache-adapter.ts +0 -213
- package/src/src/transforms/mdx/module-loader/types.ts +0 -55
- package/src/src/transforms/mdx/types.ts +0 -83
- package/src/src/transforms/npm-import-rewrites.ts +0 -105
- package/src/src/transforms/pipeline/context.ts +0 -124
- package/src/src/transforms/pipeline/index.ts +0 -372
- package/src/src/transforms/pipeline/stages/compile.ts +0 -70
- package/src/src/transforms/pipeline/stages/finalize.ts +0 -20
- package/src/src/transforms/pipeline/stages/index.ts +0 -14
- package/src/src/transforms/pipeline/stages/parse.ts +0 -29
- package/src/src/transforms/pipeline/stages/resolve-imports.ts +0 -48
- package/src/src/transforms/pipeline/stages/ssr-css-strip.ts +0 -201
- package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -49
- package/src/src/transforms/pipeline/stages/ssr-http-stub.ts +0 -96
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/constants.ts +0 -62
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/import-finder.ts +0 -46
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/index.ts +0 -174
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/path-resolver.ts +0 -219
- package/src/src/transforms/pipeline/stages/ssr-vf-modules/transform.ts +0 -434
- package/src/src/transforms/pipeline/stages/ssr-vf-modules.ts +0 -5
- package/src/src/transforms/pipeline/types.ts +0 -143
- package/src/src/transforms/plugins/babel-node-positions.ts +0 -22
- package/src/src/transforms/shared/cross-project-import.ts +0 -27
- package/src/src/transforms/shared/framework-bundle-paths.ts +0 -12
- package/src/src/transforms/shared/package-specifier.ts +0 -29
- package/src/src/transforms/shared/vendor-export-name.ts +0 -7
- package/src/src/transforms/veryfront-module-urls.ts +0 -131
- package/src/src/types/app.ts +0 -6
- package/src/src/types/branded.ts +0 -28
- package/src/src/types/bundler.ts +0 -51
- package/src/src/types/entities/getEntityInfo.ts +0 -448
- package/src/src/types/entities.ts +0 -99
- package/src/src/types/global-guards.ts +0 -21
- package/src/src/types/hmr.ts +0 -20
- package/src/src/types/index.ts +0 -207
- package/src/src/types/rsc.ts +0 -40
- package/src/src/types/server.ts +0 -153
- package/src/src/utils/base64url.ts +0 -15
- package/src/src/utils/box.ts +0 -300
- package/src/src/utils/bundle-manifest-init.ts +0 -119
- package/src/src/utils/bundle-manifest-kv.ts +0 -58
- package/src/src/utils/bundle-manifest-redis.ts +0 -55
- package/src/src/utils/bundle-manifest.ts +0 -161
- package/src/src/utils/cache/eviction/eviction-manager.ts +0 -168
- package/src/src/utils/cache/keys/namespace.ts +0 -25
- package/src/src/utils/cache/stores/memory/entry-manager.ts +0 -98
- package/src/src/utils/cache/stores/memory/lru-cache-adapter.ts +0 -220
- package/src/src/utils/cache/stores/memory/lru-list-manager.ts +0 -58
- package/src/src/utils/cache/stores/memory/lru-node.ts +0 -20
- package/src/src/utils/cache/stores/memory/types.ts +0 -32
- package/src/src/utils/cache-dir.ts +0 -80
- package/src/src/utils/cache-file-ops.ts +0 -110
- package/src/src/utils/cache-namespace.ts +0 -42
- package/src/src/utils/case-utils.ts +0 -10
- package/src/src/utils/circuit-breaker.ts +0 -216
- package/src/src/utils/clsx.ts +0 -38
- package/src/src/utils/constants/buffers.ts +0 -30
- package/src/src/utils/constants/build.ts +0 -6
- package/src/src/utils/constants/cache.ts +0 -208
- package/src/src/utils/constants/cdn.ts +0 -88
- package/src/src/utils/constants/crypto.ts +0 -12
- package/src/src/utils/constants/env.ts +0 -26
- package/src/src/utils/constants/hash.ts +0 -2
- package/src/src/utils/constants/hmr.ts +0 -24
- package/src/src/utils/constants/html.ts +0 -7
- package/src/src/utils/constants/http.ts +0 -66
- package/src/src/utils/constants/index.ts +0 -305
- package/src/src/utils/constants/limits.ts +0 -31
- package/src/src/utils/constants/metrics.ts +0 -39
- package/src/src/utils/constants/network.ts +0 -31
- package/src/src/utils/constants/priorities.ts +0 -31
- package/src/src/utils/constants/retry.ts +0 -16
- package/src/src/utils/constants/security.ts +0 -14
- package/src/src/utils/constants/server.ts +0 -137
- package/src/src/utils/cookie-utils.ts +0 -25
- package/src/src/utils/env-loader.ts +0 -170
- package/src/src/utils/feature-flags.ts +0 -10
- package/src/src/utils/file-discovery.ts +0 -250
- package/src/src/utils/hash-utils.ts +0 -56
- package/src/src/utils/html-escape.ts +0 -8
- package/src/src/utils/id.ts +0 -36
- package/src/src/utils/import-lockfile.ts +0 -274
- package/src/src/utils/import-map.ts +0 -53
- package/src/src/utils/index.ts +0 -129
- package/src/src/utils/logger/components.ts +0 -93
- package/src/src/utils/logger/core.ts +0 -165
- package/src/src/utils/logger/index.ts +0 -56
- package/src/src/utils/logger/logger.ts +0 -612
- package/src/src/utils/logger/request-context.ts +0 -47
- package/src/src/utils/lru-wrapper.ts +0 -114
- package/src/src/utils/memoize.ts +0 -100
- package/src/src/utils/memory/index.ts +0 -23
- package/src/src/utils/memory/profiler.ts +0 -250
- package/src/src/utils/mime-types.ts +0 -153
- package/src/src/utils/parallel.ts +0 -153
- package/src/src/utils/path-utils.ts +0 -151
- package/src/src/utils/perf-timer.ts +0 -140
- package/src/src/utils/platform.ts +0 -21
- package/src/src/utils/redis-client.ts +0 -133
- package/src/src/utils/request-id.ts +0 -18
- package/src/src/utils/route-path-utils.ts +0 -210
- package/src/src/utils/runtime-guards.ts +0 -42
- package/src/src/utils/semaphore.ts +0 -107
- package/src/src/utils/singleflight.ts +0 -25
- package/src/src/utils/version-constant.ts +0 -3
- package/src/src/utils/version.ts +0 -51
- package/src/src/workflow/api/index.ts +0 -8
- package/src/src/workflow/api/workflow-client.ts +0 -181
- package/src/src/workflow/api.ts +0 -195
- package/src/src/workflow/backends/memory.ts +0 -451
- package/src/src/workflow/backends/redis/index.ts +0 -657
- package/src/src/workflow/backends/redis/types.ts +0 -57
- package/src/src/workflow/backends/redis.ts +0 -10
- package/src/src/workflow/backends/shared/requeue-run.ts +0 -18
- package/src/src/workflow/backends/types.ts +0 -142
- package/src/src/workflow/blob/types.ts +0 -36
- package/src/src/workflow/blob/veryfront-cloud-storage.ts +0 -534
- package/src/src/workflow/claude-code/agent.ts +0 -264
- package/src/src/workflow/claude-code/event-publisher.ts +0 -340
- package/src/src/workflow/claude-code/index.ts +0 -113
- package/src/src/workflow/claude-code/react/index.ts +0 -23
- package/src/src/workflow/claude-code/react/use-claude-code-stream.ts +0 -377
- package/src/src/workflow/claude-code/react/use-claude-code-websocket.ts +0 -534
- package/src/src/workflow/claude-code/tool.ts +0 -209
- package/src/src/workflow/claude-code/types.ts +0 -425
- package/src/src/workflow/claude-code/websocket-publisher.ts +0 -501
- package/src/src/workflow/claude-code/workspace-sync.ts +0 -647
- package/src/src/workflow/discovery/index.ts +0 -16
- package/src/src/workflow/discovery/workflow-discovery.ts +0 -238
- package/src/src/workflow/dsl/branch.ts +0 -74
- package/src/src/workflow/dsl/index.ts +0 -29
- package/src/src/workflow/dsl/loop.ts +0 -129
- package/src/src/workflow/dsl/map.ts +0 -46
- package/src/src/workflow/dsl/parallel.ts +0 -56
- package/src/src/workflow/dsl/step.ts +0 -67
- package/src/src/workflow/dsl/sub-workflow.ts +0 -39
- package/src/src/workflow/dsl/validation.ts +0 -8
- package/src/src/workflow/dsl/wait.ts +0 -77
- package/src/src/workflow/dsl/workflow.ts +0 -122
- package/src/src/workflow/executor/checkpoint-manager.ts +0 -160
- package/src/src/workflow/executor/dag/graph.ts +0 -127
- package/src/src/workflow/executor/dag/index.ts +0 -684
- package/src/src/workflow/executor/dag/types.ts +0 -40
- package/src/src/workflow/executor/dag/utils.ts +0 -17
- package/src/src/workflow/executor/dag-executor.ts +0 -14
- package/src/src/workflow/executor/step-executor.ts +0 -339
- package/src/src/workflow/executor/workflow-executor.ts +0 -635
- package/src/src/workflow/index.ts +0 -148
- package/src/src/workflow/react/index.ts +0 -17
- package/src/src/workflow/react/use-approval.ts +0 -150
- package/src/src/workflow/react/use-workflow-list.ts +0 -181
- package/src/src/workflow/react/use-workflow-start.ts +0 -75
- package/src/src/workflow/react/use-workflow.ts +0 -205
- package/src/src/workflow/registry.ts +0 -311
- package/src/src/workflow/runtime/approval-manager.ts +0 -325
- package/src/src/workflow/schemas/index.ts +0 -57
- package/src/src/workflow/schemas/workflow.schema.ts +0 -262
- package/src/src/workflow/types.ts +0 -359
- package/src/src/workflow/worker/dynamic-job-entrypoint.ts +0 -254
- package/src/src/workflow/worker/executors/index.ts +0 -17
- package/src/src/workflow/worker/executors/k8s.ts +0 -337
- package/src/src/workflow/worker/executors/process.ts +0 -332
- package/src/src/workflow/worker/executors/types.ts +0 -149
- package/src/src/workflow/worker/index.ts +0 -78
- package/src/src/workflow/worker/job-entrypoint.ts +0 -215
- package/src/src/workflow/worker/job-manager.ts +0 -488
- package/src/src/workflow/worker/shared.ts +0 -127
- package/src/src/workflow/worker/workflow-worker.ts +0 -326
|
@@ -1,1845 +0,0 @@
|
|
|
1
|
-
// Ported from js-yaml v3.13.1:
|
|
2
|
-
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
|
|
3
|
-
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
|
|
4
|
-
// Copyright 2018-2026 the Deno authors. MIT license.
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
AMPERSAND,
|
|
8
|
-
ASTERISK,
|
|
9
|
-
BACKSLASH,
|
|
10
|
-
CARRIAGE_RETURN,
|
|
11
|
-
COLON,
|
|
12
|
-
COMMA,
|
|
13
|
-
COMMERCIAL_AT,
|
|
14
|
-
DOT,
|
|
15
|
-
DOUBLE_QUOTE,
|
|
16
|
-
EXCLAMATION,
|
|
17
|
-
GRAVE_ACCENT,
|
|
18
|
-
GREATER_THAN,
|
|
19
|
-
isEOL,
|
|
20
|
-
isFlowIndicator,
|
|
21
|
-
isWhiteSpace,
|
|
22
|
-
isWhiteSpaceOrEOL,
|
|
23
|
-
LEFT_CURLY_BRACKET,
|
|
24
|
-
LEFT_SQUARE_BRACKET,
|
|
25
|
-
LINE_FEED,
|
|
26
|
-
MINUS,
|
|
27
|
-
PERCENT,
|
|
28
|
-
PLUS,
|
|
29
|
-
QUESTION,
|
|
30
|
-
RIGHT_CURLY_BRACKET,
|
|
31
|
-
RIGHT_SQUARE_BRACKET,
|
|
32
|
-
SHARP,
|
|
33
|
-
SINGLE_QUOTE,
|
|
34
|
-
SMALLER_THAN,
|
|
35
|
-
SPACE,
|
|
36
|
-
VERTICAL_LINE,
|
|
37
|
-
} from "./_chars.js";
|
|
38
|
-
|
|
39
|
-
import { DEFAULT_SCHEMA, type Schema, type TypeMap } from "./_schema.js";
|
|
40
|
-
import type { KindType, Type } from "./_type.js";
|
|
41
|
-
import { isObject, isPlainObject } from "./_utils.js";
|
|
42
|
-
|
|
43
|
-
const CONTEXT_FLOW_IN = 1;
|
|
44
|
-
const CONTEXT_FLOW_OUT = 2;
|
|
45
|
-
const CONTEXT_BLOCK_IN = 3;
|
|
46
|
-
const CONTEXT_BLOCK_OUT = 4;
|
|
47
|
-
|
|
48
|
-
const CHOMPING_CLIP = 1;
|
|
49
|
-
const CHOMPING_STRIP = 2;
|
|
50
|
-
const CHOMPING_KEEP = 3;
|
|
51
|
-
|
|
52
|
-
const PATTERN_NON_PRINTABLE_REGEXP =
|
|
53
|
-
// deno-lint-ignore no-control-regex
|
|
54
|
-
/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
55
|
-
const PATTERN_NON_ASCII_LINE_BREAKS_REGEXP = /[\x85\u2028\u2029]/;
|
|
56
|
-
const PATTERN_FLOW_INDICATORS_REGEXP = /[,\[\]\{\}]/;
|
|
57
|
-
const PATTERN_TAG_HANDLE_REGEXP = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
58
|
-
const PATTERN_TAG_URI_REGEXP =
|
|
59
|
-
/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
60
|
-
|
|
61
|
-
export interface LoaderStateOptions {
|
|
62
|
-
/** specifies a schema to use. */
|
|
63
|
-
schema?: Schema;
|
|
64
|
-
/** compatibility with JSON.parse behaviour. */
|
|
65
|
-
allowDuplicateKeys?: boolean;
|
|
66
|
-
/** function to call on warning messages. */
|
|
67
|
-
onWarning?(error: Error): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const ESCAPED_HEX_LENGTHS = new Map<number, number>([
|
|
71
|
-
[0x78, 2], // x
|
|
72
|
-
[0x75, 4], // u
|
|
73
|
-
[0x55, 8], // U
|
|
74
|
-
]);
|
|
75
|
-
|
|
76
|
-
const SIMPLE_ESCAPE_SEQUENCES = new Map<number, string>([
|
|
77
|
-
[0x30, "\x00"], // 0
|
|
78
|
-
[0x61, "\x07"], // a
|
|
79
|
-
[0x62, "\x08"], // b
|
|
80
|
-
[0x74, "\x09"], // t
|
|
81
|
-
[0x09, "\x09"], // Tab
|
|
82
|
-
[0x6e, "\x0A"], // n
|
|
83
|
-
[0x76, "\x0B"], // v
|
|
84
|
-
[0x66, "\x0C"], // f
|
|
85
|
-
[0x72, "\x0D"], // r
|
|
86
|
-
[0x65, "\x1B"], // e
|
|
87
|
-
[0x20, " "], // Space
|
|
88
|
-
[0x22, '"'], // "
|
|
89
|
-
[0x2f, "/"], // /
|
|
90
|
-
[0x5c, "\\"], // \
|
|
91
|
-
[0x4e, "\x85"], // N
|
|
92
|
-
[0x5f, "\xA0"], // _
|
|
93
|
-
[0x4c, "\u2028"], // L
|
|
94
|
-
[0x50, "\u2029"], // P
|
|
95
|
-
]);
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Converts a hexadecimal character code to its decimal value.
|
|
99
|
-
*/
|
|
100
|
-
function hexCharCodeToNumber(charCode: number) {
|
|
101
|
-
// Check if the character code is in the range for '0' to '9'
|
|
102
|
-
if (0x30 <= charCode && charCode <= 0x39) return charCode - 0x30; // Convert '0'-'9' to 0-9
|
|
103
|
-
|
|
104
|
-
// Normalize the character code to lowercase if it's a letter
|
|
105
|
-
const lc = charCode | 0x20;
|
|
106
|
-
|
|
107
|
-
// Check if the character code is in the range for 'a' to 'f'
|
|
108
|
-
if (0x61 <= lc && lc <= 0x66) return lc - 0x61 + 10; // Convert 'a'-'f' to 10-15
|
|
109
|
-
|
|
110
|
-
return -1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Converts a decimal character code to its decimal value.
|
|
115
|
-
*/
|
|
116
|
-
function decimalCharCodeToNumber(charCode: number): number {
|
|
117
|
-
// Check if the character code is in the range for '0' to '9'
|
|
118
|
-
if (0x30 <= charCode && charCode <= 0x39) return charCode - 0x30; // Convert '0'-'9' to 0-9
|
|
119
|
-
return -1;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Converts a Unicode code point to a string.
|
|
124
|
-
*/
|
|
125
|
-
function codepointToChar(codepoint: number): string {
|
|
126
|
-
// Check if the code point is within the Basic Multilingual Plane (BMP)
|
|
127
|
-
if (codepoint <= 0xffff) return String.fromCharCode(codepoint); // Convert BMP code point to character
|
|
128
|
-
|
|
129
|
-
// Encode UTF-16 surrogate pair for code points beyond BMP
|
|
130
|
-
// Reference: https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
|
|
131
|
-
return String.fromCharCode(
|
|
132
|
-
((codepoint - 0x010000) >> 10) + 0xd800, // High surrogate
|
|
133
|
-
((codepoint - 0x010000) & 0x03ff) + 0xdc00, // Low surrogate
|
|
134
|
-
);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const INDENT = 4;
|
|
138
|
-
const MAX_LENGTH = 75;
|
|
139
|
-
const DELIMITERS = "\x00\r\n\x85\u2028\u2029";
|
|
140
|
-
|
|
141
|
-
function getSnippet(buffer: string, position: number): string | null {
|
|
142
|
-
if (!buffer) return null;
|
|
143
|
-
let start = position;
|
|
144
|
-
let end = position;
|
|
145
|
-
let head = "";
|
|
146
|
-
let tail = "";
|
|
147
|
-
|
|
148
|
-
while (start > 0 && !DELIMITERS.includes(buffer.charAt(start - 1))) {
|
|
149
|
-
start--;
|
|
150
|
-
if (position - start > MAX_LENGTH / 2 - 1) {
|
|
151
|
-
head = " ... ";
|
|
152
|
-
start += 5;
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
while (end < buffer.length && !DELIMITERS.includes(buffer.charAt(end))) {
|
|
158
|
-
end++;
|
|
159
|
-
if (end - position > MAX_LENGTH / 2 - 1) {
|
|
160
|
-
tail = " ... ";
|
|
161
|
-
end -= 5;
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const snippet = buffer.slice(start, end);
|
|
167
|
-
const indent = " ".repeat(INDENT);
|
|
168
|
-
const caretIndent = " ".repeat(INDENT + position - start + head.length);
|
|
169
|
-
return `${indent + head + snippet + tail}\n${caretIndent}^`;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function markToString(
|
|
173
|
-
buffer: string,
|
|
174
|
-
position: number,
|
|
175
|
-
line: number,
|
|
176
|
-
column: number,
|
|
177
|
-
): string {
|
|
178
|
-
let where = `at line ${line + 1}, column ${column + 1}`;
|
|
179
|
-
const snippet = getSnippet(buffer, position);
|
|
180
|
-
if (snippet) where += `:\n${snippet}`;
|
|
181
|
-
return where;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
function getIndentStatus(lineIndent: number, parentIndent: number) {
|
|
185
|
-
if (lineIndent > parentIndent) return 1;
|
|
186
|
-
if (lineIndent < parentIndent) return -1;
|
|
187
|
-
return 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function writeFoldedLines(count: number) {
|
|
191
|
-
if (count === 1) return " ";
|
|
192
|
-
if (count > 1) return "\n".repeat(count - 1);
|
|
193
|
-
return "";
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
class Scanner {
|
|
197
|
-
source: string;
|
|
198
|
-
#length: number;
|
|
199
|
-
position = 0;
|
|
200
|
-
|
|
201
|
-
constructor(source: string) {
|
|
202
|
-
// Use 0 as string terminator. That significantly simplifies bounds check.
|
|
203
|
-
source += "\0";
|
|
204
|
-
this.source = source;
|
|
205
|
-
this.#length = source.length;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
peek(offset = 0) {
|
|
209
|
-
return this.source.charCodeAt(this.position + offset);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
next() {
|
|
213
|
-
this.position += 1;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
eof() {
|
|
217
|
-
return this.position >= this.#length - 1;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
interface State {
|
|
222
|
-
tag: string | null;
|
|
223
|
-
anchor: string | null;
|
|
224
|
-
kind: KindType | null;
|
|
225
|
-
result: unknown[] | Record<string, unknown> | string | null;
|
|
226
|
-
}
|
|
227
|
-
export class LoaderState {
|
|
228
|
-
#scanner: Scanner;
|
|
229
|
-
lineIndent = 0;
|
|
230
|
-
lineStart = 0;
|
|
231
|
-
line = 0;
|
|
232
|
-
onWarning: ((error: Error) => void) | undefined;
|
|
233
|
-
allowDuplicateKeys: boolean;
|
|
234
|
-
implicitTypes: Type<"scalar">[];
|
|
235
|
-
typeMap: TypeMap;
|
|
236
|
-
|
|
237
|
-
checkLineBreaks = false;
|
|
238
|
-
tagMap = new Map();
|
|
239
|
-
anchorMap = new Map();
|
|
240
|
-
|
|
241
|
-
constructor(
|
|
242
|
-
input: string,
|
|
243
|
-
{
|
|
244
|
-
schema = DEFAULT_SCHEMA,
|
|
245
|
-
onWarning,
|
|
246
|
-
allowDuplicateKeys = false,
|
|
247
|
-
}: LoaderStateOptions,
|
|
248
|
-
) {
|
|
249
|
-
this.#scanner = new Scanner(input);
|
|
250
|
-
this.onWarning = onWarning;
|
|
251
|
-
this.allowDuplicateKeys = allowDuplicateKeys;
|
|
252
|
-
this.implicitTypes = schema.implicitTypes;
|
|
253
|
-
this.typeMap = schema.typeMap;
|
|
254
|
-
|
|
255
|
-
this.readIndent();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
skipWhitespaces() {
|
|
259
|
-
let ch = this.#scanner.peek();
|
|
260
|
-
while (isWhiteSpace(ch)) {
|
|
261
|
-
this.#scanner.next();
|
|
262
|
-
ch = this.#scanner.peek();
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
skipComment() {
|
|
267
|
-
let ch = this.#scanner.peek();
|
|
268
|
-
if (ch !== SHARP) return;
|
|
269
|
-
this.#scanner.next();
|
|
270
|
-
ch = this.#scanner.peek();
|
|
271
|
-
while (ch !== 0 && !isEOL(ch)) {
|
|
272
|
-
this.#scanner.next();
|
|
273
|
-
ch = this.#scanner.peek();
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
readIndent() {
|
|
278
|
-
let ch = this.#scanner.peek();
|
|
279
|
-
while (ch === SPACE) {
|
|
280
|
-
this.lineIndent += 1;
|
|
281
|
-
this.#scanner.next();
|
|
282
|
-
ch = this.#scanner.peek();
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
#createError(message: string): SyntaxError {
|
|
287
|
-
const mark = markToString(
|
|
288
|
-
this.#scanner.source,
|
|
289
|
-
this.#scanner.position,
|
|
290
|
-
this.line,
|
|
291
|
-
this.#scanner.position - this.lineStart,
|
|
292
|
-
);
|
|
293
|
-
return new SyntaxError(`${message} ${mark}`);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
dispatchWarning(message: string) {
|
|
297
|
-
const error = this.#createError(message);
|
|
298
|
-
this.onWarning?.(error);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
yamlDirectiveHandler(args: string[]): string | null {
|
|
302
|
-
if (args.length !== 1) {
|
|
303
|
-
throw this.#createError(
|
|
304
|
-
"Cannot handle YAML directive: YAML directive accepts exactly one argument",
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]!);
|
|
309
|
-
if (match === null) {
|
|
310
|
-
throw this.#createError(
|
|
311
|
-
"Cannot handle YAML directive: ill-formed argument",
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
const major = parseInt(match[1]!, 10);
|
|
316
|
-
const minor = parseInt(match[2]!, 10);
|
|
317
|
-
if (major !== 1) {
|
|
318
|
-
throw this.#createError(
|
|
319
|
-
"Cannot handle YAML directive: unacceptable YAML version",
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
this.checkLineBreaks = minor < 2;
|
|
323
|
-
if (minor !== 1 && minor !== 2) {
|
|
324
|
-
this.dispatchWarning(
|
|
325
|
-
"Cannot handle YAML directive: unsupported YAML version",
|
|
326
|
-
);
|
|
327
|
-
}
|
|
328
|
-
return args[0] ?? null;
|
|
329
|
-
}
|
|
330
|
-
tagDirectiveHandler(args: string[]) {
|
|
331
|
-
if (args.length !== 2) {
|
|
332
|
-
throw this.#createError(
|
|
333
|
-
`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`,
|
|
334
|
-
);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
const handle = args[0]!;
|
|
338
|
-
const prefix = args[1]!;
|
|
339
|
-
|
|
340
|
-
if (!PATTERN_TAG_HANDLE_REGEXP.test(handle)) {
|
|
341
|
-
throw this.#createError(
|
|
342
|
-
`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`,
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
if (this.tagMap.has(handle)) {
|
|
347
|
-
throw this.#createError(
|
|
348
|
-
`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`,
|
|
349
|
-
);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
if (!PATTERN_TAG_URI_REGEXP.test(prefix)) {
|
|
353
|
-
throw this.#createError(
|
|
354
|
-
"Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive",
|
|
355
|
-
);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
this.tagMap.set(handle, prefix);
|
|
359
|
-
}
|
|
360
|
-
captureSegment(start: number, end: number, checkJson: boolean) {
|
|
361
|
-
if (start < end) {
|
|
362
|
-
const result = this.#scanner.source.slice(start, end);
|
|
363
|
-
|
|
364
|
-
if (checkJson) {
|
|
365
|
-
for (let position = 0; position < result.length; position++) {
|
|
366
|
-
const character = result.charCodeAt(position);
|
|
367
|
-
if (
|
|
368
|
-
!(character === 0x09 ||
|
|
369
|
-
(0x20 <= character && character <= 0x10ffff))
|
|
370
|
-
) {
|
|
371
|
-
throw this.#createError(
|
|
372
|
-
`Expected valid JSON character: received "${character}"`,
|
|
373
|
-
);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
} else if (PATTERN_NON_PRINTABLE_REGEXP.test(result)) {
|
|
377
|
-
throw this.#createError("Stream contains non-printable characters");
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
return result;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
readBlockSequence(
|
|
384
|
-
tag: string | null,
|
|
385
|
-
anchor: string | null,
|
|
386
|
-
nodeIndent: number,
|
|
387
|
-
): State | void {
|
|
388
|
-
let detected = false;
|
|
389
|
-
|
|
390
|
-
const result: unknown[] = [];
|
|
391
|
-
|
|
392
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
393
|
-
|
|
394
|
-
let ch = this.#scanner.peek();
|
|
395
|
-
|
|
396
|
-
while (ch !== 0) {
|
|
397
|
-
if (ch !== MINUS) {
|
|
398
|
-
break;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
const following = this.#scanner.peek(1);
|
|
402
|
-
|
|
403
|
-
if (!isWhiteSpaceOrEOL(following)) {
|
|
404
|
-
break;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
detected = true;
|
|
408
|
-
this.#scanner.next();
|
|
409
|
-
|
|
410
|
-
if (this.skipSeparationSpace(true, -1)) {
|
|
411
|
-
if (this.lineIndent <= nodeIndent) {
|
|
412
|
-
result.push(null);
|
|
413
|
-
ch = this.#scanner.peek();
|
|
414
|
-
continue;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
const line = this.line;
|
|
419
|
-
const newState = this.composeNode({
|
|
420
|
-
parentIndent: nodeIndent,
|
|
421
|
-
nodeContext: CONTEXT_BLOCK_IN,
|
|
422
|
-
allowToSeek: false,
|
|
423
|
-
allowCompact: true,
|
|
424
|
-
});
|
|
425
|
-
if (newState) result.push(newState.result);
|
|
426
|
-
this.skipSeparationSpace(true, -1);
|
|
427
|
-
|
|
428
|
-
ch = this.#scanner.peek();
|
|
429
|
-
|
|
430
|
-
if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) {
|
|
431
|
-
throw this.#createError(
|
|
432
|
-
"Cannot read block sequence: bad indentation of a sequence entry",
|
|
433
|
-
);
|
|
434
|
-
} else if (this.lineIndent < nodeIndent) {
|
|
435
|
-
break;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
if (detected) return { tag, anchor, kind: "sequence", result };
|
|
440
|
-
}
|
|
441
|
-
mergeMappings(
|
|
442
|
-
destination: Record<string, unknown>,
|
|
443
|
-
source: Record<string, unknown>,
|
|
444
|
-
overridableKeys: Set<string>,
|
|
445
|
-
) {
|
|
446
|
-
if (!isObject(source)) {
|
|
447
|
-
throw this.#createError(
|
|
448
|
-
"Cannot merge mappings: the provided source object is unacceptable",
|
|
449
|
-
);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
for (const [key, value] of Object.entries(source)) {
|
|
453
|
-
if (Object.hasOwn(destination, key)) continue;
|
|
454
|
-
Object.defineProperty(destination, key, {
|
|
455
|
-
value,
|
|
456
|
-
writable: true,
|
|
457
|
-
enumerable: true,
|
|
458
|
-
configurable: true,
|
|
459
|
-
});
|
|
460
|
-
overridableKeys.add(key);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
storeMappingPair(
|
|
464
|
-
result: Record<string, unknown>,
|
|
465
|
-
overridableKeys: Set<string>,
|
|
466
|
-
keyTag: string | null,
|
|
467
|
-
keyNode: Record<PropertyKey, unknown> | unknown[] | string | null,
|
|
468
|
-
valueNode: unknown,
|
|
469
|
-
startLine?: number,
|
|
470
|
-
startPos?: number,
|
|
471
|
-
): Record<string, unknown> {
|
|
472
|
-
// The output is a plain object here, so keys can only be strings.
|
|
473
|
-
// We need to convert keyNode to a string, but doing so can hang the process
|
|
474
|
-
// (deeply nested arrays that explode exponentially using aliases).
|
|
475
|
-
if (Array.isArray(keyNode)) {
|
|
476
|
-
keyNode = Array.prototype.slice.call(keyNode);
|
|
477
|
-
|
|
478
|
-
for (let index = 0; index < keyNode.length; index++) {
|
|
479
|
-
if (Array.isArray(keyNode[index])) {
|
|
480
|
-
throw this.#createError(
|
|
481
|
-
"Cannot store mapping pair: nested arrays are not supported inside keys",
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
if (typeof keyNode === "object" && isPlainObject(keyNode[index])) {
|
|
486
|
-
keyNode[index] = "[object Object]";
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
// Avoid code execution in load() via toString property
|
|
492
|
-
// (still use its own toString for arrays, timestamps,
|
|
493
|
-
// and whatever user schema extensions happen to have @@toStringTag)
|
|
494
|
-
if (typeof keyNode === "object" && isPlainObject(keyNode)) {
|
|
495
|
-
keyNode = "[object Object]";
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
keyNode = String(keyNode);
|
|
499
|
-
|
|
500
|
-
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
501
|
-
if (Array.isArray(valueNode)) {
|
|
502
|
-
for (
|
|
503
|
-
let index = 0;
|
|
504
|
-
index < valueNode.length;
|
|
505
|
-
index++
|
|
506
|
-
) {
|
|
507
|
-
this.mergeMappings(result, valueNode[index], overridableKeys);
|
|
508
|
-
}
|
|
509
|
-
} else {
|
|
510
|
-
this.mergeMappings(
|
|
511
|
-
result,
|
|
512
|
-
valueNode as Record<string, unknown>,
|
|
513
|
-
overridableKeys,
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
} else {
|
|
517
|
-
if (
|
|
518
|
-
!this.allowDuplicateKeys &&
|
|
519
|
-
!overridableKeys.has(keyNode) &&
|
|
520
|
-
Object.hasOwn(result, keyNode)
|
|
521
|
-
) {
|
|
522
|
-
this.line = startLine || this.line;
|
|
523
|
-
this.#scanner.position = startPos || this.#scanner.position;
|
|
524
|
-
throw this.#createError("Cannot store mapping pair: duplicated key");
|
|
525
|
-
}
|
|
526
|
-
Object.defineProperty(result, keyNode, {
|
|
527
|
-
value: valueNode,
|
|
528
|
-
writable: true,
|
|
529
|
-
enumerable: true,
|
|
530
|
-
configurable: true,
|
|
531
|
-
});
|
|
532
|
-
overridableKeys.delete(keyNode);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
return result;
|
|
536
|
-
}
|
|
537
|
-
readLineBreak() {
|
|
538
|
-
const ch = this.#scanner.peek();
|
|
539
|
-
|
|
540
|
-
if (ch === LINE_FEED) {
|
|
541
|
-
this.#scanner.next();
|
|
542
|
-
} else if (ch === CARRIAGE_RETURN) {
|
|
543
|
-
this.#scanner.next();
|
|
544
|
-
if (this.#scanner.peek() === LINE_FEED) {
|
|
545
|
-
this.#scanner.next();
|
|
546
|
-
}
|
|
547
|
-
} else {
|
|
548
|
-
throw this.#createError("Cannot read line: line break not found");
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
this.line += 1;
|
|
552
|
-
this.lineStart = this.#scanner.position;
|
|
553
|
-
}
|
|
554
|
-
skipSeparationSpace(allowComments: boolean, checkIndent: number): number {
|
|
555
|
-
let lineBreaks = 0;
|
|
556
|
-
let ch = this.#scanner.peek();
|
|
557
|
-
|
|
558
|
-
while (ch !== 0) {
|
|
559
|
-
this.skipWhitespaces();
|
|
560
|
-
ch = this.#scanner.peek();
|
|
561
|
-
|
|
562
|
-
if (allowComments) {
|
|
563
|
-
this.skipComment();
|
|
564
|
-
ch = this.#scanner.peek();
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
if (isEOL(ch)) {
|
|
568
|
-
this.readLineBreak();
|
|
569
|
-
|
|
570
|
-
ch = this.#scanner.peek();
|
|
571
|
-
lineBreaks++;
|
|
572
|
-
this.lineIndent = 0;
|
|
573
|
-
|
|
574
|
-
this.readIndent();
|
|
575
|
-
ch = this.#scanner.peek();
|
|
576
|
-
} else {
|
|
577
|
-
break;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
checkIndent !== -1 &&
|
|
583
|
-
lineBreaks !== 0 &&
|
|
584
|
-
this.lineIndent < checkIndent
|
|
585
|
-
) {
|
|
586
|
-
this.dispatchWarning("deficient indentation");
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
return lineBreaks;
|
|
590
|
-
}
|
|
591
|
-
testDocumentSeparator(): boolean {
|
|
592
|
-
let ch = this.#scanner.peek();
|
|
593
|
-
|
|
594
|
-
// Condition this.#scanner.position === this.lineStart is tested
|
|
595
|
-
// in parent on each call, for efficiency. No needs to test here again.
|
|
596
|
-
if (
|
|
597
|
-
(ch === MINUS || ch === DOT) &&
|
|
598
|
-
ch === this.#scanner.peek(1) &&
|
|
599
|
-
ch === this.#scanner.peek(2)
|
|
600
|
-
) {
|
|
601
|
-
ch = this.#scanner.peek(3);
|
|
602
|
-
|
|
603
|
-
if (ch === 0 || isWhiteSpaceOrEOL(ch)) {
|
|
604
|
-
return true;
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
readPlainScalar(
|
|
612
|
-
tag: string | null,
|
|
613
|
-
anchor: string | null,
|
|
614
|
-
nodeIndent: number,
|
|
615
|
-
withinFlowCollection: boolean,
|
|
616
|
-
): State | void {
|
|
617
|
-
let ch = this.#scanner.peek();
|
|
618
|
-
|
|
619
|
-
if (
|
|
620
|
-
isWhiteSpaceOrEOL(ch) ||
|
|
621
|
-
isFlowIndicator(ch) ||
|
|
622
|
-
ch === SHARP ||
|
|
623
|
-
ch === AMPERSAND ||
|
|
624
|
-
ch === ASTERISK ||
|
|
625
|
-
ch === EXCLAMATION ||
|
|
626
|
-
ch === VERTICAL_LINE ||
|
|
627
|
-
ch === GREATER_THAN ||
|
|
628
|
-
ch === SINGLE_QUOTE ||
|
|
629
|
-
ch === DOUBLE_QUOTE ||
|
|
630
|
-
ch === PERCENT ||
|
|
631
|
-
ch === COMMERCIAL_AT ||
|
|
632
|
-
ch === GRAVE_ACCENT
|
|
633
|
-
) {
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
let following: number;
|
|
638
|
-
if (ch === QUESTION || ch === MINUS) {
|
|
639
|
-
following = this.#scanner.peek(1);
|
|
640
|
-
|
|
641
|
-
if (
|
|
642
|
-
isWhiteSpaceOrEOL(following) ||
|
|
643
|
-
(withinFlowCollection && isFlowIndicator(following))
|
|
644
|
-
) {
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
let result = "";
|
|
650
|
-
|
|
651
|
-
let captureEnd = this.#scanner.position;
|
|
652
|
-
let captureStart = this.#scanner.position;
|
|
653
|
-
let hasPendingContent = false;
|
|
654
|
-
let line = 0;
|
|
655
|
-
while (ch !== 0) {
|
|
656
|
-
if (ch === COLON) {
|
|
657
|
-
following = this.#scanner.peek(1);
|
|
658
|
-
|
|
659
|
-
if (
|
|
660
|
-
isWhiteSpaceOrEOL(following) ||
|
|
661
|
-
(withinFlowCollection && isFlowIndicator(following))
|
|
662
|
-
) {
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
} else if (ch === SHARP) {
|
|
666
|
-
const preceding = this.#scanner.peek(-1);
|
|
667
|
-
|
|
668
|
-
if (isWhiteSpaceOrEOL(preceding)) {
|
|
669
|
-
break;
|
|
670
|
-
}
|
|
671
|
-
} else if (
|
|
672
|
-
(this.#scanner.position === this.lineStart &&
|
|
673
|
-
this.testDocumentSeparator()) ||
|
|
674
|
-
(withinFlowCollection && isFlowIndicator(ch))
|
|
675
|
-
) {
|
|
676
|
-
break;
|
|
677
|
-
} else if (isEOL(ch)) {
|
|
678
|
-
line = this.line;
|
|
679
|
-
const lineStart = this.lineStart;
|
|
680
|
-
const lineIndent = this.lineIndent;
|
|
681
|
-
this.skipSeparationSpace(false, -1);
|
|
682
|
-
|
|
683
|
-
if (this.lineIndent >= nodeIndent) {
|
|
684
|
-
hasPendingContent = true;
|
|
685
|
-
ch = this.#scanner.peek();
|
|
686
|
-
continue;
|
|
687
|
-
} else {
|
|
688
|
-
this.#scanner.position = captureEnd;
|
|
689
|
-
this.line = line;
|
|
690
|
-
this.lineStart = lineStart;
|
|
691
|
-
this.lineIndent = lineIndent;
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
if (hasPendingContent) {
|
|
697
|
-
const segment = this.captureSegment(captureStart, captureEnd, false);
|
|
698
|
-
if (segment) result += segment;
|
|
699
|
-
result += writeFoldedLines(this.line - line);
|
|
700
|
-
captureStart = captureEnd = this.#scanner.position;
|
|
701
|
-
hasPendingContent = false;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
if (!isWhiteSpace(ch)) {
|
|
705
|
-
captureEnd = this.#scanner.position + 1;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
this.#scanner.next();
|
|
709
|
-
ch = this.#scanner.peek();
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
const segment = this.captureSegment(captureStart, captureEnd, false);
|
|
713
|
-
if (segment) result += segment;
|
|
714
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
715
|
-
if (result) return { tag, anchor, kind: "scalar", result };
|
|
716
|
-
}
|
|
717
|
-
readSingleQuotedScalar(
|
|
718
|
-
tag: string | null,
|
|
719
|
-
anchor: string | null,
|
|
720
|
-
nodeIndent: number,
|
|
721
|
-
): State | void {
|
|
722
|
-
let ch = this.#scanner.peek();
|
|
723
|
-
|
|
724
|
-
if (ch !== SINGLE_QUOTE) return;
|
|
725
|
-
|
|
726
|
-
let result = "";
|
|
727
|
-
this.#scanner.next();
|
|
728
|
-
let captureStart = this.#scanner.position;
|
|
729
|
-
let captureEnd = this.#scanner.position;
|
|
730
|
-
|
|
731
|
-
ch = this.#scanner.peek();
|
|
732
|
-
while (ch !== 0) {
|
|
733
|
-
if (ch === SINGLE_QUOTE) {
|
|
734
|
-
const segment = this.captureSegment(
|
|
735
|
-
captureStart,
|
|
736
|
-
this.#scanner.position,
|
|
737
|
-
true,
|
|
738
|
-
);
|
|
739
|
-
if (segment) result += segment;
|
|
740
|
-
this.#scanner.next();
|
|
741
|
-
ch = this.#scanner.peek();
|
|
742
|
-
|
|
743
|
-
if (ch === SINGLE_QUOTE) {
|
|
744
|
-
captureStart = this.#scanner.position;
|
|
745
|
-
this.#scanner.next();
|
|
746
|
-
captureEnd = this.#scanner.position;
|
|
747
|
-
} else {
|
|
748
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
749
|
-
return { tag, anchor, kind: "scalar", result };
|
|
750
|
-
}
|
|
751
|
-
} else if (isEOL(ch)) {
|
|
752
|
-
const segment = this.captureSegment(captureStart, captureEnd, true);
|
|
753
|
-
if (segment) result += segment;
|
|
754
|
-
result += writeFoldedLines(
|
|
755
|
-
this.skipSeparationSpace(false, nodeIndent),
|
|
756
|
-
);
|
|
757
|
-
captureStart = captureEnd = this.#scanner.position;
|
|
758
|
-
} else if (
|
|
759
|
-
this.#scanner.position === this.lineStart &&
|
|
760
|
-
this.testDocumentSeparator()
|
|
761
|
-
) {
|
|
762
|
-
throw this.#createError(
|
|
763
|
-
"Unexpected end of the document within a single quoted scalar",
|
|
764
|
-
);
|
|
765
|
-
} else {
|
|
766
|
-
this.#scanner.next();
|
|
767
|
-
captureEnd = this.#scanner.position;
|
|
768
|
-
}
|
|
769
|
-
ch = this.#scanner.peek();
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
throw this.#createError(
|
|
773
|
-
"Unexpected end of the stream within a single quoted scalar",
|
|
774
|
-
);
|
|
775
|
-
}
|
|
776
|
-
readDoubleQuotedScalar(
|
|
777
|
-
tag: string | null,
|
|
778
|
-
anchor: string | null,
|
|
779
|
-
nodeIndent: number,
|
|
780
|
-
): State | void {
|
|
781
|
-
let ch = this.#scanner.peek();
|
|
782
|
-
|
|
783
|
-
if (ch !== DOUBLE_QUOTE) return;
|
|
784
|
-
|
|
785
|
-
let result = "";
|
|
786
|
-
this.#scanner.next();
|
|
787
|
-
let captureEnd = this.#scanner.position;
|
|
788
|
-
let captureStart = this.#scanner.position;
|
|
789
|
-
let tmp: number;
|
|
790
|
-
ch = this.#scanner.peek();
|
|
791
|
-
while (ch !== 0) {
|
|
792
|
-
if (ch === DOUBLE_QUOTE) {
|
|
793
|
-
const segment = this.captureSegment(
|
|
794
|
-
captureStart,
|
|
795
|
-
this.#scanner.position,
|
|
796
|
-
true,
|
|
797
|
-
);
|
|
798
|
-
if (segment) result += segment;
|
|
799
|
-
this.#scanner.next();
|
|
800
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
801
|
-
return { tag, anchor, kind: "scalar", result };
|
|
802
|
-
}
|
|
803
|
-
if (ch === BACKSLASH) {
|
|
804
|
-
const segment = this.captureSegment(
|
|
805
|
-
captureStart,
|
|
806
|
-
this.#scanner.position,
|
|
807
|
-
true,
|
|
808
|
-
);
|
|
809
|
-
if (segment) result += segment;
|
|
810
|
-
this.#scanner.next();
|
|
811
|
-
ch = this.#scanner.peek();
|
|
812
|
-
|
|
813
|
-
if (isEOL(ch)) {
|
|
814
|
-
this.skipSeparationSpace(false, nodeIndent);
|
|
815
|
-
} else if (ch < 256 && SIMPLE_ESCAPE_SEQUENCES.has(ch)) {
|
|
816
|
-
result += SIMPLE_ESCAPE_SEQUENCES.get(ch);
|
|
817
|
-
this.#scanner.next();
|
|
818
|
-
} else if ((tmp = ESCAPED_HEX_LENGTHS.get(ch) ?? 0) > 0) {
|
|
819
|
-
let hexLength = tmp;
|
|
820
|
-
let hexResult = 0;
|
|
821
|
-
|
|
822
|
-
for (; hexLength > 0; hexLength--) {
|
|
823
|
-
this.#scanner.next();
|
|
824
|
-
ch = this.#scanner.peek();
|
|
825
|
-
|
|
826
|
-
if ((tmp = hexCharCodeToNumber(ch)) >= 0) {
|
|
827
|
-
hexResult = (hexResult << 4) + tmp;
|
|
828
|
-
} else {
|
|
829
|
-
throw this.#createError(
|
|
830
|
-
"Cannot read double quoted scalar: expected hexadecimal character",
|
|
831
|
-
);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
result += codepointToChar(hexResult);
|
|
836
|
-
|
|
837
|
-
this.#scanner.next();
|
|
838
|
-
} else {
|
|
839
|
-
throw this.#createError(
|
|
840
|
-
"Cannot read double quoted scalar: unknown escape sequence",
|
|
841
|
-
);
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
captureStart = captureEnd = this.#scanner.position;
|
|
845
|
-
} else if (isEOL(ch)) {
|
|
846
|
-
const segment = this.captureSegment(captureStart, captureEnd, true);
|
|
847
|
-
if (segment) result += segment;
|
|
848
|
-
result += writeFoldedLines(
|
|
849
|
-
this.skipSeparationSpace(false, nodeIndent),
|
|
850
|
-
);
|
|
851
|
-
captureStart = captureEnd = this.#scanner.position;
|
|
852
|
-
} else if (
|
|
853
|
-
this.#scanner.position === this.lineStart &&
|
|
854
|
-
this.testDocumentSeparator()
|
|
855
|
-
) {
|
|
856
|
-
throw this.#createError(
|
|
857
|
-
"Unexpected end of the document within a double quoted scalar",
|
|
858
|
-
);
|
|
859
|
-
} else {
|
|
860
|
-
this.#scanner.next();
|
|
861
|
-
captureEnd = this.#scanner.position;
|
|
862
|
-
}
|
|
863
|
-
ch = this.#scanner.peek();
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
throw this.#createError(
|
|
867
|
-
"Unexpected end of the stream within a double quoted scalar",
|
|
868
|
-
);
|
|
869
|
-
}
|
|
870
|
-
readFlowCollection(
|
|
871
|
-
tag: string | null,
|
|
872
|
-
anchor: string | null,
|
|
873
|
-
nodeIndent: number,
|
|
874
|
-
): State | void {
|
|
875
|
-
let ch = this.#scanner.peek();
|
|
876
|
-
let terminator: number;
|
|
877
|
-
let isMapping = true;
|
|
878
|
-
let result = {};
|
|
879
|
-
if (ch === LEFT_SQUARE_BRACKET) {
|
|
880
|
-
terminator = RIGHT_SQUARE_BRACKET;
|
|
881
|
-
isMapping = false;
|
|
882
|
-
result = [];
|
|
883
|
-
} else if (ch === LEFT_CURLY_BRACKET) {
|
|
884
|
-
terminator = RIGHT_CURLY_BRACKET;
|
|
885
|
-
} else {
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
890
|
-
|
|
891
|
-
this.#scanner.next();
|
|
892
|
-
ch = this.#scanner.peek();
|
|
893
|
-
|
|
894
|
-
let readNext = true;
|
|
895
|
-
let valueNode = null;
|
|
896
|
-
let keyNode = null;
|
|
897
|
-
let keyTag: string | null = null;
|
|
898
|
-
let isExplicitPair = false;
|
|
899
|
-
let isPair = false;
|
|
900
|
-
let following = 0;
|
|
901
|
-
let line = 0;
|
|
902
|
-
const overridableKeys = new Set<string>();
|
|
903
|
-
while (ch !== 0) {
|
|
904
|
-
this.skipSeparationSpace(true, nodeIndent);
|
|
905
|
-
|
|
906
|
-
ch = this.#scanner.peek();
|
|
907
|
-
|
|
908
|
-
if (ch === terminator) {
|
|
909
|
-
this.#scanner.next();
|
|
910
|
-
const kind = isMapping ? "mapping" : "sequence";
|
|
911
|
-
return { tag, anchor, kind, result };
|
|
912
|
-
}
|
|
913
|
-
if (!readNext) {
|
|
914
|
-
throw this.#createError(
|
|
915
|
-
"Cannot read flow collection: missing comma between flow collection entries",
|
|
916
|
-
);
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
keyTag = keyNode = valueNode = null;
|
|
920
|
-
isPair = isExplicitPair = false;
|
|
921
|
-
|
|
922
|
-
if (ch === QUESTION) {
|
|
923
|
-
following = this.#scanner.peek(1);
|
|
924
|
-
|
|
925
|
-
if (isWhiteSpaceOrEOL(following)) {
|
|
926
|
-
isPair = isExplicitPair = true;
|
|
927
|
-
this.#scanner.next();
|
|
928
|
-
this.skipSeparationSpace(true, nodeIndent);
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
line = this.line;
|
|
933
|
-
const newState = this.composeNode({
|
|
934
|
-
parentIndent: nodeIndent,
|
|
935
|
-
nodeContext: CONTEXT_FLOW_IN,
|
|
936
|
-
allowToSeek: false,
|
|
937
|
-
allowCompact: true,
|
|
938
|
-
});
|
|
939
|
-
if (newState) {
|
|
940
|
-
keyTag = newState.tag || null;
|
|
941
|
-
keyNode = newState.result;
|
|
942
|
-
}
|
|
943
|
-
this.skipSeparationSpace(true, nodeIndent);
|
|
944
|
-
|
|
945
|
-
ch = this.#scanner.peek();
|
|
946
|
-
|
|
947
|
-
if ((isExplicitPair || this.line === line) && ch === COLON) {
|
|
948
|
-
isPair = true;
|
|
949
|
-
this.#scanner.next();
|
|
950
|
-
ch = this.#scanner.peek();
|
|
951
|
-
this.skipSeparationSpace(true, nodeIndent);
|
|
952
|
-
const newState = this.composeNode({
|
|
953
|
-
parentIndent: nodeIndent,
|
|
954
|
-
nodeContext: CONTEXT_FLOW_IN,
|
|
955
|
-
allowToSeek: false,
|
|
956
|
-
allowCompact: true,
|
|
957
|
-
});
|
|
958
|
-
if (newState) valueNode = newState.result;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
if (isMapping) {
|
|
962
|
-
this.storeMappingPair(
|
|
963
|
-
result as Record<string, unknown>,
|
|
964
|
-
overridableKeys,
|
|
965
|
-
keyTag,
|
|
966
|
-
keyNode,
|
|
967
|
-
valueNode,
|
|
968
|
-
);
|
|
969
|
-
} else if (isPair) {
|
|
970
|
-
(result as Record<string, unknown>[]).push(
|
|
971
|
-
this.storeMappingPair(
|
|
972
|
-
{},
|
|
973
|
-
overridableKeys,
|
|
974
|
-
keyTag,
|
|
975
|
-
keyNode,
|
|
976
|
-
valueNode,
|
|
977
|
-
),
|
|
978
|
-
);
|
|
979
|
-
} else {
|
|
980
|
-
(result as unknown[]).push(keyNode);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
this.skipSeparationSpace(true, nodeIndent);
|
|
984
|
-
|
|
985
|
-
ch = this.#scanner.peek();
|
|
986
|
-
|
|
987
|
-
if (ch === COMMA) {
|
|
988
|
-
readNext = true;
|
|
989
|
-
this.#scanner.next();
|
|
990
|
-
ch = this.#scanner.peek();
|
|
991
|
-
} else {
|
|
992
|
-
readNext = false;
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
throw this.#createError(
|
|
997
|
-
"Cannot read flow collection: unexpected end of the stream within a flow collection",
|
|
998
|
-
);
|
|
999
|
-
}
|
|
1000
|
-
// Handles block scaler styles: e.g. '|', '>', '|-' and '>-'.
|
|
1001
|
-
// https://yaml.org/spec/1.2.2/#81-block-scalar-styles
|
|
1002
|
-
readBlockScalar(
|
|
1003
|
-
tag: string | null,
|
|
1004
|
-
anchor: string | null,
|
|
1005
|
-
nodeIndent: number,
|
|
1006
|
-
): State | void {
|
|
1007
|
-
let chomping = CHOMPING_CLIP;
|
|
1008
|
-
let didReadContent = false;
|
|
1009
|
-
let detectedIndent = false;
|
|
1010
|
-
let textIndent = nodeIndent;
|
|
1011
|
-
let emptyLines = 0;
|
|
1012
|
-
let atMoreIndented = false;
|
|
1013
|
-
|
|
1014
|
-
let ch = this.#scanner.peek();
|
|
1015
|
-
|
|
1016
|
-
let folding = false;
|
|
1017
|
-
if (ch === VERTICAL_LINE) {
|
|
1018
|
-
folding = false;
|
|
1019
|
-
} else if (ch === GREATER_THAN) {
|
|
1020
|
-
folding = true;
|
|
1021
|
-
} else {
|
|
1022
|
-
return;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
let result = "";
|
|
1026
|
-
|
|
1027
|
-
let tmp = 0;
|
|
1028
|
-
while (ch !== 0) {
|
|
1029
|
-
this.#scanner.next();
|
|
1030
|
-
ch = this.#scanner.peek();
|
|
1031
|
-
|
|
1032
|
-
if (ch === PLUS || ch === MINUS) {
|
|
1033
|
-
if (CHOMPING_CLIP === chomping) {
|
|
1034
|
-
chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
1035
|
-
} else {
|
|
1036
|
-
throw this.#createError(
|
|
1037
|
-
"Cannot read block: chomping mode identifier repeated",
|
|
1038
|
-
);
|
|
1039
|
-
}
|
|
1040
|
-
} else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) {
|
|
1041
|
-
if (tmp === 0) {
|
|
1042
|
-
throw this.#createError(
|
|
1043
|
-
"Cannot read block: indentation width must be greater than 0",
|
|
1044
|
-
);
|
|
1045
|
-
} else if (!detectedIndent) {
|
|
1046
|
-
textIndent = nodeIndent + tmp - 1;
|
|
1047
|
-
detectedIndent = true;
|
|
1048
|
-
} else {
|
|
1049
|
-
throw this.#createError(
|
|
1050
|
-
"Cannot read block: indentation width identifier repeated",
|
|
1051
|
-
);
|
|
1052
|
-
}
|
|
1053
|
-
} else {
|
|
1054
|
-
break;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
if (isWhiteSpace(ch)) {
|
|
1059
|
-
this.skipWhitespaces();
|
|
1060
|
-
this.skipComment();
|
|
1061
|
-
ch = this.#scanner.peek();
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
while (ch !== 0) {
|
|
1065
|
-
this.readLineBreak();
|
|
1066
|
-
this.lineIndent = 0;
|
|
1067
|
-
|
|
1068
|
-
ch = this.#scanner.peek();
|
|
1069
|
-
|
|
1070
|
-
while (
|
|
1071
|
-
(!detectedIndent || this.lineIndent < textIndent) &&
|
|
1072
|
-
ch === SPACE
|
|
1073
|
-
) {
|
|
1074
|
-
this.lineIndent++;
|
|
1075
|
-
this.#scanner.next();
|
|
1076
|
-
ch = this.#scanner.peek();
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
if (!detectedIndent && this.lineIndent > textIndent) {
|
|
1080
|
-
textIndent = this.lineIndent;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
if (isEOL(ch)) {
|
|
1084
|
-
emptyLines++;
|
|
1085
|
-
continue;
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
// End of the scalar.
|
|
1089
|
-
if (this.lineIndent < textIndent) {
|
|
1090
|
-
// Perform the chomping.
|
|
1091
|
-
if (chomping === CHOMPING_KEEP) {
|
|
1092
|
-
result += "\n".repeat(
|
|
1093
|
-
didReadContent ? 1 + emptyLines : emptyLines,
|
|
1094
|
-
);
|
|
1095
|
-
} else if (chomping === CHOMPING_CLIP) {
|
|
1096
|
-
if (didReadContent) {
|
|
1097
|
-
// i.e. only if the scalar is not empty.
|
|
1098
|
-
result += "\n";
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
// Break this `while` cycle and go to the function's epilogue.
|
|
1103
|
-
break;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
// Folded style: use fancy rules to handle line breaks.
|
|
1107
|
-
if (folding) {
|
|
1108
|
-
// Lines starting with white space characters (more-indented lines) are not folded.
|
|
1109
|
-
if (isWhiteSpace(ch)) {
|
|
1110
|
-
atMoreIndented = true;
|
|
1111
|
-
// except for the first content line (cf. Example 8.1)
|
|
1112
|
-
result += "\n".repeat(
|
|
1113
|
-
didReadContent ? 1 + emptyLines : emptyLines,
|
|
1114
|
-
);
|
|
1115
|
-
|
|
1116
|
-
// End of more-indented block.
|
|
1117
|
-
} else if (atMoreIndented) {
|
|
1118
|
-
atMoreIndented = false;
|
|
1119
|
-
result += "\n".repeat(emptyLines + 1);
|
|
1120
|
-
|
|
1121
|
-
// Just one line break - perceive as the same line.
|
|
1122
|
-
} else if (emptyLines === 0) {
|
|
1123
|
-
if (didReadContent) {
|
|
1124
|
-
// i.e. only if we have already read some scalar content.
|
|
1125
|
-
result += " ";
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
// Several line breaks - perceive as different lines.
|
|
1129
|
-
} else {
|
|
1130
|
-
result += "\n".repeat(emptyLines);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
// Literal style: just add exact number of line breaks between content lines.
|
|
1134
|
-
} else {
|
|
1135
|
-
// Keep all line breaks except the header line break.
|
|
1136
|
-
result += "\n".repeat(
|
|
1137
|
-
didReadContent ? 1 + emptyLines : emptyLines,
|
|
1138
|
-
);
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
didReadContent = true;
|
|
1142
|
-
detectedIndent = true;
|
|
1143
|
-
emptyLines = 0;
|
|
1144
|
-
const captureStart = this.#scanner.position;
|
|
1145
|
-
|
|
1146
|
-
while (!isEOL(ch) && ch !== 0) {
|
|
1147
|
-
this.#scanner.next();
|
|
1148
|
-
ch = this.#scanner.peek();
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
const segment = this.captureSegment(
|
|
1152
|
-
captureStart,
|
|
1153
|
-
this.#scanner.position,
|
|
1154
|
-
false,
|
|
1155
|
-
);
|
|
1156
|
-
if (segment) result += segment;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
1160
|
-
return { tag, anchor, kind: "scalar", result };
|
|
1161
|
-
}
|
|
1162
|
-
readBlockMapping(
|
|
1163
|
-
tag: string | null,
|
|
1164
|
-
anchor: string | null,
|
|
1165
|
-
nodeIndent: number,
|
|
1166
|
-
flowIndent: number,
|
|
1167
|
-
): State | void {
|
|
1168
|
-
const result = {};
|
|
1169
|
-
const overridableKeys = new Set<string>();
|
|
1170
|
-
|
|
1171
|
-
let allowCompact = false;
|
|
1172
|
-
let line: number;
|
|
1173
|
-
let pos: number;
|
|
1174
|
-
let keyTag = null;
|
|
1175
|
-
let keyNode = null;
|
|
1176
|
-
let valueNode = null;
|
|
1177
|
-
let atExplicitKey = false;
|
|
1178
|
-
let detected = false;
|
|
1179
|
-
|
|
1180
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
1181
|
-
|
|
1182
|
-
let ch = this.#scanner.peek();
|
|
1183
|
-
|
|
1184
|
-
while (ch !== 0) {
|
|
1185
|
-
const following = this.#scanner.peek(1);
|
|
1186
|
-
line = this.line; // Save the current line.
|
|
1187
|
-
pos = this.#scanner.position;
|
|
1188
|
-
|
|
1189
|
-
//
|
|
1190
|
-
// Explicit notation case. There are two separate blocks:
|
|
1191
|
-
// first for the key (denoted by "?") and second for the value (denoted by ":")
|
|
1192
|
-
//
|
|
1193
|
-
if ((ch === QUESTION || ch === COLON) && isWhiteSpaceOrEOL(following)) {
|
|
1194
|
-
if (ch === QUESTION) {
|
|
1195
|
-
if (atExplicitKey) {
|
|
1196
|
-
this.storeMappingPair(
|
|
1197
|
-
result,
|
|
1198
|
-
overridableKeys,
|
|
1199
|
-
keyTag as string,
|
|
1200
|
-
keyNode,
|
|
1201
|
-
null,
|
|
1202
|
-
);
|
|
1203
|
-
keyTag = null;
|
|
1204
|
-
keyNode = null;
|
|
1205
|
-
valueNode = null;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
detected = true;
|
|
1209
|
-
atExplicitKey = true;
|
|
1210
|
-
allowCompact = true;
|
|
1211
|
-
} else if (atExplicitKey) {
|
|
1212
|
-
// i.e. 0x3A/* : */ === character after the explicit key.
|
|
1213
|
-
atExplicitKey = false;
|
|
1214
|
-
allowCompact = true;
|
|
1215
|
-
} else {
|
|
1216
|
-
throw this.#createError(
|
|
1217
|
-
"Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line",
|
|
1218
|
-
);
|
|
1219
|
-
}
|
|
1220
|
-
|
|
1221
|
-
this.#scanner.next();
|
|
1222
|
-
ch = following;
|
|
1223
|
-
|
|
1224
|
-
//
|
|
1225
|
-
// Implicit notation case. Flow-style node as the key first, then ":", and the value.
|
|
1226
|
-
//
|
|
1227
|
-
} else {
|
|
1228
|
-
const newState = this.composeNode({
|
|
1229
|
-
parentIndent: flowIndent,
|
|
1230
|
-
nodeContext: CONTEXT_FLOW_OUT,
|
|
1231
|
-
allowToSeek: false,
|
|
1232
|
-
allowCompact: true,
|
|
1233
|
-
});
|
|
1234
|
-
if (!newState) break; // Reading is done. Go to the epilogue.
|
|
1235
|
-
if (this.line === line) {
|
|
1236
|
-
ch = this.#scanner.peek();
|
|
1237
|
-
|
|
1238
|
-
this.skipWhitespaces();
|
|
1239
|
-
ch = this.#scanner.peek();
|
|
1240
|
-
|
|
1241
|
-
if (ch === COLON) {
|
|
1242
|
-
this.#scanner.next();
|
|
1243
|
-
ch = this.#scanner.peek();
|
|
1244
|
-
|
|
1245
|
-
if (!isWhiteSpaceOrEOL(ch)) {
|
|
1246
|
-
throw this.#createError(
|
|
1247
|
-
"Cannot read block: a whitespace character is expected after the key-value separator within a block mapping",
|
|
1248
|
-
);
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
if (atExplicitKey) {
|
|
1252
|
-
this.storeMappingPair(
|
|
1253
|
-
result,
|
|
1254
|
-
overridableKeys,
|
|
1255
|
-
keyTag as string,
|
|
1256
|
-
keyNode,
|
|
1257
|
-
null,
|
|
1258
|
-
);
|
|
1259
|
-
keyTag = null;
|
|
1260
|
-
keyNode = null;
|
|
1261
|
-
valueNode = null;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
detected = true;
|
|
1265
|
-
atExplicitKey = false;
|
|
1266
|
-
allowCompact = false;
|
|
1267
|
-
keyTag = newState.tag;
|
|
1268
|
-
keyNode = newState.result;
|
|
1269
|
-
} else if (detected) {
|
|
1270
|
-
throw this.#createError(
|
|
1271
|
-
"Cannot read an implicit mapping pair: missing colon",
|
|
1272
|
-
);
|
|
1273
|
-
} else {
|
|
1274
|
-
const { kind, result } = newState;
|
|
1275
|
-
return { tag, anchor, kind, result }; // Keep the result of `composeNode`.
|
|
1276
|
-
}
|
|
1277
|
-
} else if (detected) {
|
|
1278
|
-
throw this.#createError(
|
|
1279
|
-
"Cannot read a block mapping entry: a multiline key may not be an implicit key",
|
|
1280
|
-
);
|
|
1281
|
-
} else {
|
|
1282
|
-
const { kind, result } = newState;
|
|
1283
|
-
return { tag, anchor, kind, result }; // Keep the result of `composeNode`.
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
//
|
|
1288
|
-
// Common reading code for both explicit and implicit notations.
|
|
1289
|
-
//
|
|
1290
|
-
if (this.line === line || this.lineIndent > nodeIndent) {
|
|
1291
|
-
const newState = this.composeNode({
|
|
1292
|
-
parentIndent: nodeIndent,
|
|
1293
|
-
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1294
|
-
allowToSeek: true,
|
|
1295
|
-
allowCompact,
|
|
1296
|
-
});
|
|
1297
|
-
if (newState) {
|
|
1298
|
-
if (atExplicitKey) {
|
|
1299
|
-
keyNode = newState.result;
|
|
1300
|
-
} else {
|
|
1301
|
-
valueNode = newState.result;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
if (!atExplicitKey) {
|
|
1306
|
-
this.storeMappingPair(
|
|
1307
|
-
result,
|
|
1308
|
-
overridableKeys,
|
|
1309
|
-
keyTag as string,
|
|
1310
|
-
keyNode,
|
|
1311
|
-
valueNode,
|
|
1312
|
-
line,
|
|
1313
|
-
pos,
|
|
1314
|
-
);
|
|
1315
|
-
keyTag = keyNode = valueNode = null;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
this.skipSeparationSpace(true, -1);
|
|
1319
|
-
ch = this.#scanner.peek();
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
if (this.lineIndent > nodeIndent && ch !== 0) {
|
|
1323
|
-
throw this.#createError(
|
|
1324
|
-
"Cannot read block: bad indentation of a mapping entry",
|
|
1325
|
-
);
|
|
1326
|
-
} else if (this.lineIndent < nodeIndent) {
|
|
1327
|
-
break;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
//
|
|
1332
|
-
// Epilogue.
|
|
1333
|
-
//
|
|
1334
|
-
|
|
1335
|
-
// Special case: last mapping's node contains only the key in explicit notation.
|
|
1336
|
-
if (atExplicitKey) {
|
|
1337
|
-
this.storeMappingPair(
|
|
1338
|
-
result,
|
|
1339
|
-
overridableKeys,
|
|
1340
|
-
keyTag as string,
|
|
1341
|
-
keyNode,
|
|
1342
|
-
null,
|
|
1343
|
-
);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
// Expose the resulting mapping.
|
|
1347
|
-
if (detected) return { tag, anchor, kind: "mapping", result };
|
|
1348
|
-
}
|
|
1349
|
-
readTagProperty(tag: string | null): string | void {
|
|
1350
|
-
let isVerbatim = false;
|
|
1351
|
-
let isNamed = false;
|
|
1352
|
-
let tagHandle = "";
|
|
1353
|
-
let tagName: string;
|
|
1354
|
-
|
|
1355
|
-
let ch = this.#scanner.peek();
|
|
1356
|
-
|
|
1357
|
-
if (ch !== EXCLAMATION) return;
|
|
1358
|
-
|
|
1359
|
-
if (tag !== null) {
|
|
1360
|
-
throw this.#createError(
|
|
1361
|
-
"Cannot read tag property: duplication of a tag property",
|
|
1362
|
-
);
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
this.#scanner.next();
|
|
1366
|
-
ch = this.#scanner.peek();
|
|
1367
|
-
|
|
1368
|
-
if (ch === SMALLER_THAN) {
|
|
1369
|
-
isVerbatim = true;
|
|
1370
|
-
this.#scanner.next();
|
|
1371
|
-
ch = this.#scanner.peek();
|
|
1372
|
-
} else if (ch === EXCLAMATION) {
|
|
1373
|
-
isNamed = true;
|
|
1374
|
-
tagHandle = "!!";
|
|
1375
|
-
this.#scanner.next();
|
|
1376
|
-
ch = this.#scanner.peek();
|
|
1377
|
-
} else {
|
|
1378
|
-
tagHandle = "!";
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
let position = this.#scanner.position;
|
|
1382
|
-
|
|
1383
|
-
if (isVerbatim) {
|
|
1384
|
-
do {
|
|
1385
|
-
this.#scanner.next();
|
|
1386
|
-
ch = this.#scanner.peek();
|
|
1387
|
-
} while (ch !== 0 && ch !== GREATER_THAN);
|
|
1388
|
-
|
|
1389
|
-
if (!this.#scanner.eof()) {
|
|
1390
|
-
tagName = this.#scanner.source.slice(position, this.#scanner.position);
|
|
1391
|
-
this.#scanner.next();
|
|
1392
|
-
ch = this.#scanner.peek();
|
|
1393
|
-
} else {
|
|
1394
|
-
throw this.#createError(
|
|
1395
|
-
"Cannot read tag property: unexpected end of stream",
|
|
1396
|
-
);
|
|
1397
|
-
}
|
|
1398
|
-
} else {
|
|
1399
|
-
while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
|
|
1400
|
-
if (ch === EXCLAMATION) {
|
|
1401
|
-
if (!isNamed) {
|
|
1402
|
-
tagHandle = this.#scanner.source.slice(
|
|
1403
|
-
position - 1,
|
|
1404
|
-
this.#scanner.position + 1,
|
|
1405
|
-
);
|
|
1406
|
-
|
|
1407
|
-
if (!PATTERN_TAG_HANDLE_REGEXP.test(tagHandle)) {
|
|
1408
|
-
throw this.#createError(
|
|
1409
|
-
"Cannot read tag property: named tag handle contains invalid characters",
|
|
1410
|
-
);
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
isNamed = true;
|
|
1414
|
-
position = this.#scanner.position + 1;
|
|
1415
|
-
} else {
|
|
1416
|
-
throw this.#createError(
|
|
1417
|
-
"Cannot read tag property: tag suffix cannot contain an exclamation mark",
|
|
1418
|
-
);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
this.#scanner.next();
|
|
1423
|
-
ch = this.#scanner.peek();
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
tagName = this.#scanner.source.slice(position, this.#scanner.position);
|
|
1427
|
-
|
|
1428
|
-
if (PATTERN_FLOW_INDICATORS_REGEXP.test(tagName)) {
|
|
1429
|
-
throw this.#createError(
|
|
1430
|
-
"Cannot read tag property: tag suffix cannot contain flow indicator characters",
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
if (tagName && !PATTERN_TAG_URI_REGEXP.test(tagName)) {
|
|
1436
|
-
throw this.#createError(
|
|
1437
|
-
`Cannot read tag property: invalid characters in tag name "${tagName}"`,
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
if (isVerbatim) {
|
|
1442
|
-
return tagName;
|
|
1443
|
-
} else if (this.tagMap.has(tagHandle)) {
|
|
1444
|
-
return this.tagMap.get(tagHandle) + tagName;
|
|
1445
|
-
} else if (tagHandle === "!") {
|
|
1446
|
-
return `!${tagName}`;
|
|
1447
|
-
} else if (tagHandle === "!!") {
|
|
1448
|
-
return `tag:yaml.org,2002:${tagName}`;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
throw this.#createError(
|
|
1452
|
-
`Cannot read tag property: undeclared tag handle "${tagHandle}"`,
|
|
1453
|
-
);
|
|
1454
|
-
}
|
|
1455
|
-
readAnchorProperty(anchor: string | null): string | void {
|
|
1456
|
-
let ch = this.#scanner.peek();
|
|
1457
|
-
if (ch !== AMPERSAND) return;
|
|
1458
|
-
|
|
1459
|
-
if (anchor !== null) {
|
|
1460
|
-
throw this.#createError(
|
|
1461
|
-
"Cannot read anchor property: duplicate anchor property",
|
|
1462
|
-
);
|
|
1463
|
-
}
|
|
1464
|
-
this.#scanner.next();
|
|
1465
|
-
ch = this.#scanner.peek();
|
|
1466
|
-
|
|
1467
|
-
const position = this.#scanner.position;
|
|
1468
|
-
while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) {
|
|
1469
|
-
this.#scanner.next();
|
|
1470
|
-
ch = this.#scanner.peek();
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
if (this.#scanner.position === position) {
|
|
1474
|
-
throw this.#createError(
|
|
1475
|
-
"Cannot read anchor property: name of an anchor node must contain at least one character",
|
|
1476
|
-
);
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
return this.#scanner.source.slice(position, this.#scanner.position);
|
|
1480
|
-
}
|
|
1481
|
-
readAlias(): string | void {
|
|
1482
|
-
if (this.#scanner.peek() !== ASTERISK) return;
|
|
1483
|
-
|
|
1484
|
-
this.#scanner.next();
|
|
1485
|
-
let ch = this.#scanner.peek();
|
|
1486
|
-
|
|
1487
|
-
const position = this.#scanner.position;
|
|
1488
|
-
|
|
1489
|
-
while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) {
|
|
1490
|
-
this.#scanner.next();
|
|
1491
|
-
ch = this.#scanner.peek();
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
if (this.#scanner.position === position) {
|
|
1495
|
-
throw this.#createError(
|
|
1496
|
-
"Cannot read alias: alias name must contain at least one character",
|
|
1497
|
-
);
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
const alias = this.#scanner.source.slice(position, this.#scanner.position);
|
|
1501
|
-
if (!this.anchorMap.has(alias)) {
|
|
1502
|
-
throw this.#createError(
|
|
1503
|
-
`Cannot read alias: unidentified alias "${alias}"`,
|
|
1504
|
-
);
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
this.skipSeparationSpace(true, -1);
|
|
1508
|
-
|
|
1509
|
-
return this.anchorMap.get(alias);
|
|
1510
|
-
}
|
|
1511
|
-
resolveTag(state: State) {
|
|
1512
|
-
switch (state.tag) {
|
|
1513
|
-
case null:
|
|
1514
|
-
case "!":
|
|
1515
|
-
return state;
|
|
1516
|
-
case "?": {
|
|
1517
|
-
for (const type of this.implicitTypes) {
|
|
1518
|
-
// Implicit resolving is not allowed for non-scalar types, and '?'
|
|
1519
|
-
// non-specific tag is only assigned to plain scalars. So, it isn't
|
|
1520
|
-
// needed to check for 'kind' conformity.
|
|
1521
|
-
|
|
1522
|
-
if (!type.resolve(state.result)) continue;
|
|
1523
|
-
// `state.result` updated in resolver if matched
|
|
1524
|
-
const result = type.construct(state.result);
|
|
1525
|
-
state.result = result;
|
|
1526
|
-
state.tag = type.tag;
|
|
1527
|
-
const { anchor } = state;
|
|
1528
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
1529
|
-
return state;
|
|
1530
|
-
}
|
|
1531
|
-
return state;
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
const kind = state.kind ?? "fallback";
|
|
1536
|
-
|
|
1537
|
-
const map = this.typeMap[kind];
|
|
1538
|
-
const type = map.get(state.tag);
|
|
1539
|
-
|
|
1540
|
-
if (!type) {
|
|
1541
|
-
throw this.#createError(
|
|
1542
|
-
`Cannot resolve unknown tag !<${state.tag}>`,
|
|
1543
|
-
);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
if (state.result !== null && type.kind !== state.kind) {
|
|
1547
|
-
throw this.#createError(
|
|
1548
|
-
`Unacceptable node kind for !<${state.tag}> tag: it should be "${type.kind}", not "${state.kind}"`,
|
|
1549
|
-
);
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
if (!type.resolve(state.result)) {
|
|
1553
|
-
// `state.result` updated in resolver if matched
|
|
1554
|
-
throw this.#createError(
|
|
1555
|
-
`Cannot resolve a node with !<${state.tag}> explicit tag`,
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
const result = type.construct(state.result);
|
|
1560
|
-
state.result = result;
|
|
1561
|
-
const { anchor } = state;
|
|
1562
|
-
if (anchor !== null) this.anchorMap.set(anchor, result);
|
|
1563
|
-
return state;
|
|
1564
|
-
}
|
|
1565
|
-
composeNode({ parentIndent, nodeContext, allowToSeek, allowCompact }: {
|
|
1566
|
-
parentIndent: number;
|
|
1567
|
-
nodeContext: number;
|
|
1568
|
-
allowToSeek: boolean;
|
|
1569
|
-
allowCompact: boolean;
|
|
1570
|
-
}): State | void {
|
|
1571
|
-
let indentStatus = 1; // 1: this>parent, 0: this=parent, -1: this<parent
|
|
1572
|
-
let atNewLine = false;
|
|
1573
|
-
|
|
1574
|
-
const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext ||
|
|
1575
|
-
CONTEXT_BLOCK_IN === nodeContext;
|
|
1576
|
-
|
|
1577
|
-
let allowBlockCollections = allowBlockScalars;
|
|
1578
|
-
const allowBlockStyles = allowBlockScalars;
|
|
1579
|
-
|
|
1580
|
-
if (allowToSeek) {
|
|
1581
|
-
if (this.skipSeparationSpace(true, -1)) {
|
|
1582
|
-
atNewLine = true;
|
|
1583
|
-
indentStatus = getIndentStatus(this.lineIndent, parentIndent);
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
let tag: string | null = null;
|
|
1588
|
-
let anchor: string | null = null;
|
|
1589
|
-
|
|
1590
|
-
if (indentStatus === 1) {
|
|
1591
|
-
while (true) {
|
|
1592
|
-
const newTag = this.readTagProperty(tag);
|
|
1593
|
-
if (newTag) {
|
|
1594
|
-
tag = newTag;
|
|
1595
|
-
} else {
|
|
1596
|
-
const newAnchor = this.readAnchorProperty(anchor);
|
|
1597
|
-
if (!newAnchor) break;
|
|
1598
|
-
anchor = newAnchor;
|
|
1599
|
-
}
|
|
1600
|
-
if (this.skipSeparationSpace(true, -1)) {
|
|
1601
|
-
atNewLine = true;
|
|
1602
|
-
allowBlockCollections = allowBlockStyles;
|
|
1603
|
-
indentStatus = getIndentStatus(this.lineIndent, parentIndent);
|
|
1604
|
-
} else {
|
|
1605
|
-
allowBlockCollections = false;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
if (allowBlockCollections) {
|
|
1611
|
-
allowBlockCollections = atNewLine || allowCompact;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
if (indentStatus === 1) {
|
|
1615
|
-
const cond = CONTEXT_FLOW_IN === nodeContext ||
|
|
1616
|
-
CONTEXT_FLOW_OUT === nodeContext;
|
|
1617
|
-
const flowIndent = cond ? parentIndent : parentIndent + 1;
|
|
1618
|
-
|
|
1619
|
-
if (allowBlockCollections) {
|
|
1620
|
-
const blockIndent = this.#scanner.position - this.lineStart;
|
|
1621
|
-
const blockSequenceState = this.readBlockSequence(
|
|
1622
|
-
tag,
|
|
1623
|
-
anchor,
|
|
1624
|
-
blockIndent,
|
|
1625
|
-
);
|
|
1626
|
-
if (blockSequenceState) return this.resolveTag(blockSequenceState);
|
|
1627
|
-
|
|
1628
|
-
const blockMappingState = this.readBlockMapping(
|
|
1629
|
-
tag,
|
|
1630
|
-
anchor,
|
|
1631
|
-
blockIndent,
|
|
1632
|
-
flowIndent,
|
|
1633
|
-
);
|
|
1634
|
-
if (blockMappingState) return this.resolveTag(blockMappingState);
|
|
1635
|
-
}
|
|
1636
|
-
const flowCollectionState = this.readFlowCollection(
|
|
1637
|
-
tag,
|
|
1638
|
-
anchor,
|
|
1639
|
-
flowIndent,
|
|
1640
|
-
);
|
|
1641
|
-
if (flowCollectionState) return this.resolveTag(flowCollectionState);
|
|
1642
|
-
|
|
1643
|
-
if (allowBlockScalars) {
|
|
1644
|
-
const blockScalarState = this.readBlockScalar(
|
|
1645
|
-
tag,
|
|
1646
|
-
anchor,
|
|
1647
|
-
flowIndent,
|
|
1648
|
-
);
|
|
1649
|
-
if (blockScalarState) return this.resolveTag(blockScalarState);
|
|
1650
|
-
}
|
|
1651
|
-
const singleQuoteState = this.readSingleQuotedScalar(
|
|
1652
|
-
tag,
|
|
1653
|
-
anchor,
|
|
1654
|
-
flowIndent,
|
|
1655
|
-
);
|
|
1656
|
-
if (singleQuoteState) return this.resolveTag(singleQuoteState);
|
|
1657
|
-
|
|
1658
|
-
const doubleQuoteState = this.readDoubleQuotedScalar(
|
|
1659
|
-
tag,
|
|
1660
|
-
anchor,
|
|
1661
|
-
flowIndent,
|
|
1662
|
-
);
|
|
1663
|
-
if (doubleQuoteState) return this.resolveTag(doubleQuoteState);
|
|
1664
|
-
|
|
1665
|
-
const alias = this.readAlias();
|
|
1666
|
-
if (alias) {
|
|
1667
|
-
if (tag !== null || anchor !== null) {
|
|
1668
|
-
throw this.#createError(
|
|
1669
|
-
"Cannot compose node: alias node should not have any properties",
|
|
1670
|
-
);
|
|
1671
|
-
}
|
|
1672
|
-
return this.resolveTag({ tag, anchor, kind: null, result: alias });
|
|
1673
|
-
}
|
|
1674
|
-
const plainScalarState = this.readPlainScalar(
|
|
1675
|
-
tag,
|
|
1676
|
-
anchor,
|
|
1677
|
-
flowIndent,
|
|
1678
|
-
CONTEXT_FLOW_IN === nodeContext,
|
|
1679
|
-
);
|
|
1680
|
-
if (plainScalarState) {
|
|
1681
|
-
plainScalarState.tag ??= "?";
|
|
1682
|
-
return this.resolveTag(plainScalarState);
|
|
1683
|
-
}
|
|
1684
|
-
} else if (
|
|
1685
|
-
indentStatus === 0 &&
|
|
1686
|
-
CONTEXT_BLOCK_OUT === nodeContext &&
|
|
1687
|
-
allowBlockCollections
|
|
1688
|
-
) {
|
|
1689
|
-
// Special case: block sequences are allowed to have same indentation level as the parent.
|
|
1690
|
-
// http://www.yaml.org/spec/1.2/spec.html#id2799784
|
|
1691
|
-
const blockIndent = this.#scanner.position - this.lineStart;
|
|
1692
|
-
const newState = this.readBlockSequence(tag, anchor, blockIndent);
|
|
1693
|
-
if (newState) return this.resolveTag(newState);
|
|
1694
|
-
}
|
|
1695
|
-
|
|
1696
|
-
const newState = this.resolveTag({ tag, anchor, kind: null, result: null });
|
|
1697
|
-
if (newState.tag !== null || newState.anchor !== null) return newState;
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
readDirectives() {
|
|
1701
|
-
let hasDirectives = false;
|
|
1702
|
-
let version = null;
|
|
1703
|
-
|
|
1704
|
-
let ch = this.#scanner.peek();
|
|
1705
|
-
while (ch !== 0) {
|
|
1706
|
-
this.skipSeparationSpace(true, -1);
|
|
1707
|
-
|
|
1708
|
-
ch = this.#scanner.peek();
|
|
1709
|
-
|
|
1710
|
-
if (this.lineIndent > 0 || ch !== PERCENT) {
|
|
1711
|
-
break;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
hasDirectives = true;
|
|
1715
|
-
this.#scanner.next();
|
|
1716
|
-
ch = this.#scanner.peek();
|
|
1717
|
-
let position = this.#scanner.position;
|
|
1718
|
-
|
|
1719
|
-
while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
|
|
1720
|
-
this.#scanner.next();
|
|
1721
|
-
ch = this.#scanner.peek();
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
const directiveName = this.#scanner.source.slice(
|
|
1725
|
-
position,
|
|
1726
|
-
this.#scanner.position,
|
|
1727
|
-
);
|
|
1728
|
-
const directiveArgs = [];
|
|
1729
|
-
|
|
1730
|
-
if (directiveName.length < 1) {
|
|
1731
|
-
throw this.#createError(
|
|
1732
|
-
"Cannot read document: directive name length must be greater than zero",
|
|
1733
|
-
);
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
while (ch !== 0) {
|
|
1737
|
-
this.skipWhitespaces();
|
|
1738
|
-
this.skipComment();
|
|
1739
|
-
ch = this.#scanner.peek();
|
|
1740
|
-
|
|
1741
|
-
if (isEOL(ch)) break;
|
|
1742
|
-
|
|
1743
|
-
position = this.#scanner.position;
|
|
1744
|
-
|
|
1745
|
-
while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
|
|
1746
|
-
this.#scanner.next();
|
|
1747
|
-
ch = this.#scanner.peek();
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
directiveArgs.push(
|
|
1751
|
-
this.#scanner.source.slice(position, this.#scanner.position),
|
|
1752
|
-
);
|
|
1753
|
-
}
|
|
1754
|
-
|
|
1755
|
-
if (ch !== 0) this.readLineBreak();
|
|
1756
|
-
|
|
1757
|
-
switch (directiveName) {
|
|
1758
|
-
case "YAML":
|
|
1759
|
-
if (version !== null) {
|
|
1760
|
-
throw this.#createError(
|
|
1761
|
-
"Cannot handle YAML directive: duplication of %YAML directive",
|
|
1762
|
-
);
|
|
1763
|
-
}
|
|
1764
|
-
version = this.yamlDirectiveHandler(directiveArgs);
|
|
1765
|
-
break;
|
|
1766
|
-
case "TAG":
|
|
1767
|
-
this.tagDirectiveHandler(directiveArgs);
|
|
1768
|
-
break;
|
|
1769
|
-
default:
|
|
1770
|
-
this.dispatchWarning(`unknown document directive "${directiveName}"`);
|
|
1771
|
-
break;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
ch = this.#scanner.peek();
|
|
1775
|
-
}
|
|
1776
|
-
return hasDirectives;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
readDocument() {
|
|
1780
|
-
const documentStart = this.#scanner.position;
|
|
1781
|
-
|
|
1782
|
-
this.checkLineBreaks = false;
|
|
1783
|
-
this.tagMap = new Map();
|
|
1784
|
-
this.anchorMap = new Map();
|
|
1785
|
-
|
|
1786
|
-
const hasDirectives = this.readDirectives();
|
|
1787
|
-
|
|
1788
|
-
this.skipSeparationSpace(true, -1);
|
|
1789
|
-
|
|
1790
|
-
let result = null;
|
|
1791
|
-
|
|
1792
|
-
if (
|
|
1793
|
-
this.lineIndent === 0 &&
|
|
1794
|
-
this.#scanner.peek() === MINUS &&
|
|
1795
|
-
this.#scanner.peek(1) === MINUS &&
|
|
1796
|
-
this.#scanner.peek(2) === MINUS
|
|
1797
|
-
) {
|
|
1798
|
-
this.#scanner.position += 3;
|
|
1799
|
-
this.skipSeparationSpace(true, -1);
|
|
1800
|
-
} else if (hasDirectives) {
|
|
1801
|
-
throw this.#createError(
|
|
1802
|
-
"Cannot read document: directives end mark is expected",
|
|
1803
|
-
);
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
const newState = this.composeNode({
|
|
1807
|
-
parentIndent: this.lineIndent - 1,
|
|
1808
|
-
nodeContext: CONTEXT_BLOCK_OUT,
|
|
1809
|
-
allowToSeek: false,
|
|
1810
|
-
allowCompact: true,
|
|
1811
|
-
});
|
|
1812
|
-
if (newState) result = newState.result;
|
|
1813
|
-
this.skipSeparationSpace(true, -1);
|
|
1814
|
-
|
|
1815
|
-
if (
|
|
1816
|
-
this.checkLineBreaks &&
|
|
1817
|
-
PATTERN_NON_ASCII_LINE_BREAKS_REGEXP.test(
|
|
1818
|
-
this.#scanner.source.slice(documentStart, this.#scanner.position),
|
|
1819
|
-
)
|
|
1820
|
-
) {
|
|
1821
|
-
this.dispatchWarning("non-ASCII line breaks are interpreted as content");
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
if (
|
|
1825
|
-
this.#scanner.position === this.lineStart && this.testDocumentSeparator()
|
|
1826
|
-
) {
|
|
1827
|
-
if (this.#scanner.peek() === DOT) {
|
|
1828
|
-
this.#scanner.position += 3;
|
|
1829
|
-
this.skipSeparationSpace(true, -1);
|
|
1830
|
-
}
|
|
1831
|
-
} else if (!this.#scanner.eof()) {
|
|
1832
|
-
throw this.#createError(
|
|
1833
|
-
"Cannot read document: end of the stream or a document separator is expected",
|
|
1834
|
-
);
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
return result;
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
*readDocuments() {
|
|
1841
|
-
while (!this.#scanner.eof()) {
|
|
1842
|
-
yield this.readDocument();
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
}
|