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
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
"ai-agent": {
|
|
18
18
|
"files": {
|
|
19
19
|
"agents/assistant.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"assistant\",\n system: \"You are a helpful assistant. Answer questions clearly and concisely.\",\n tools: true,\n maxSteps: 10,\n});\n",
|
|
20
|
-
"app/api/chat/route.ts": "import {
|
|
20
|
+
"app/api/chat/route.ts": "import { createAgUiHandler } from \"veryfront/agent\";\n\nexport const POST = createAgUiHandler(\"assistant\");\n",
|
|
21
21
|
"app/layout.tsx": "import \"../globals.css\";\nimport { Head } from \"veryfront/head\";\n\nexport default function RootLayout({\n children,\n}: {\n children: React.ReactNode;\n}): React.ReactNode {\n return (\n <>\n <Head>\n <title>AI Chat</title>\n </Head>\n <div className=\"flex flex-col h-screen bg-white dark:bg-neutral-900\">\n {children}\n </div>\n </>\n );\n}\n",
|
|
22
22
|
"app/page.tsx": "'use client'\n\nimport { Chat, useChat } from 'veryfront/chat'\n\nexport default function ChatPage(): JSX.Element {\n const chat = useChat({ api: '/api/chat' })\n\n return <Chat {...chat} className=\"flex-1 min-h-0\" placeholder=\"Message\" />\n}\n",
|
|
23
23
|
"globals.css": "@import \"tailwindcss\";\n",
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
"coding-agent": {
|
|
30
30
|
"files": {
|
|
31
31
|
"agents/coder.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"coder\",\n system: `You are an expert coding assistant. You can read, search, and modify code files in the project.\n\nWhen asked to make changes:\n1. First read the relevant files to understand the codebase\n2. Explain what you'll change and why\n3. Make the changes\n4. Verify the result\n\nAlways explain your reasoning before making edits.`,\n tools: true,\n maxSteps: 15,\n});\n",
|
|
32
|
-
"app/api/chat/route.ts": "import {
|
|
32
|
+
"app/api/chat/route.ts": "import { createAgUiHandler } from \"veryfront/agent\";\n\nexport const POST = createAgUiHandler(\"coder\");\n",
|
|
33
33
|
"app/layout.tsx": "import \"../globals.css\";\nimport { Head } from \"veryfront/head\";\n\nexport default function RootLayout({\n children,\n}: {\n children: React.ReactNode;\n}): React.ReactNode {\n return (\n <>\n <Head>\n <title>Code Agent</title>\n </Head>\n <div className=\"dark\">\n <div className=\"flex flex-col h-screen bg-neutral-950\">\n <header className=\"flex-shrink-0 border-b border-neutral-800\">\n <div className=\"max-w-4xl mx-auto flex items-center gap-3 px-4 py-3\">\n <div className=\"w-8 h-8 rounded-lg bg-emerald-500/10 flex items-center justify-center\">\n <svg\n className=\"w-4 h-4 text-emerald-400\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth={2}\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5\"\n />\n </svg>\n </div>\n <div>\n <h1 className=\"font-medium text-white text-sm font-mono\">\n code-agent\n </h1>\n <p className=\"text-xs text-neutral-500\">\n read, search, edit project files\n </p>\n </div>\n <div className=\"ml-auto flex items-center gap-1.5\">\n <span className=\"w-2 h-2 rounded-full bg-emerald-400 animate-pulse\" />\n <span className=\"text-xs text-neutral-500 font-mono\">ready</span>\n </div>\n </div>\n </header>\n {children}\n </div>\n </div>\n </>\n );\n}\n",
|
|
34
34
|
"app/page.tsx": "'use client'\n\nimport { Chat, useChat } from 'veryfront/chat'\n\nexport default function CodeAgent(): JSX.Element {\n const chat = useChat({ api: '/api/chat' })\n\n return (\n <Chat\n {...chat}\n className=\"flex-1 min-h-0\"\n placeholder=\"Describe what you want to build or fix...\"\n />\n )\n}\n",
|
|
35
35
|
"globals.css": "@import \"tailwindcss\";\n",
|
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
"docs-agent": {
|
|
44
44
|
"files": {
|
|
45
45
|
"agents/rag.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"rag\",\n system:\n `You answer questions using the provided documents. ` +\n `Always cite your sources by referencing the document title. ` +\n `If the search results don't contain a clear answer, say so honestly.`,\n});\n",
|
|
46
|
-
"app/api/chat/route.ts": "import {
|
|
46
|
+
"app/api/chat/route.ts": "import { createAgUiHandler } from \"veryfront/agent\";\nimport { store } from \"../../../store.ts\";\n\nexport const POST = createAgUiHandler(\"rag\", {\n beforeStream: async ({ lastUserText }) => {\n const query = lastUserText.trim();\n if (!query) return;\n\n try {\n await store.indexContentDir();\n const results = await store.search(query, { topK: 5 });\n if (results.length === 0) return;\n\n const contextBlock = results\n .map(\n (result) =>\n `[${result.title}] (score: ${\n result.score.toFixed(2)\n })\\n${result.text}`,\n )\n .join(\"\\n\\n---\\n\\n\");\n\n return {\n prepend: [\n {\n role: \"system\",\n parts: [\n {\n type: \"text\",\n text:\n `Here are relevant documents retrieved for your question:\\n\\n${contextBlock}\\n\\n` +\n \"Use these documents to answer. Cite the document title when referencing information.\",\n },\n ],\n },\n ],\n };\n } catch (e) {\n console.error(\"[RAG] Retrieval failed:\", e);\n return;\n }\n },\n});\n",
|
|
47
47
|
"app/api/uploads/[id]/route.ts": "import { createUploadHandler } from \"veryfront/embedding\";\nimport { store } from \"../../../../store.ts\";\n\nexport const { DELETE } = createUploadHandler(store);\n",
|
|
48
48
|
"app/api/uploads/route.ts": "import { createUploadHandler } from \"veryfront/embedding\";\nimport { store } from \"../../../store.ts\";\n\nexport const { POST, GET } = createUploadHandler(store);\n",
|
|
49
49
|
"app/layout.tsx": "import \"../globals.css\";\nimport { Head } from \"veryfront/head\";\n\nexport default function RootLayout({ children }: { children: React.ReactNode }): React.ReactNode {\n return (\n <>\n <Head><title>Docs Agent</title></Head>\n <div className=\"flex flex-col h-screen\">\n {children}\n </div>\n </>\n );\n}\n",
|
|
@@ -51,7 +51,7 @@ export default {
|
|
|
51
51
|
"content/architecture.md": "# Architecture\n\nAcme Platform uses a modular, event-driven architecture.\n\n## Core Components\n\n### API Gateway\nRoutes incoming requests to the appropriate microservice. Handles authentication, rate limiting, and request validation.\n\n### Event Bus\nAsynchronous message broker connecting all services. Supports pub/sub and point-to-point messaging patterns.\n\n### Data Layer\nMulti-tenant data storage with automatic sharding. Supports PostgreSQL for relational data and Redis for caching.\n\n## Request Flow\n\n1. Client sends request to API Gateway\n2. Gateway validates authentication token\n3. Request is routed to the target service\n4. Service processes request and publishes events\n5. Response is returned through the gateway\n\n## Scaling\n\nEach component scales independently. The API Gateway uses horizontal scaling with load balancing. Services auto-scale based on queue depth and CPU utilization.\n\n## Security\n\n- All inter-service communication uses mTLS\n- API tokens are rotated every 24 hours\n- Data at rest is encrypted with AES-256\n- Audit logs are retained for 90 days\n",
|
|
52
52
|
"content/getting-started.md": "# Getting Started\n\nWelcome to Acme Platform. This guide covers initial setup and core concepts.\n\n## Installation\n\nInstall the CLI globally:\n\n```bash\nnpm install -g @acme/cli\n```\n\n## Creating a Project\n\nRun the init command to scaffold a new project:\n\n```bash\nacme init my-project\ncd my-project\n```\n\n## Project Structure\n\n- `src/` — Application source code\n- `config/` — Configuration files\n- `tests/` — Test suite\n- `docs/` — Documentation\n\n## Configuration\n\nCreate an `acme.config.ts` file in your project root:\n\n```ts\nexport default {\n name: \"my-project\",\n region: \"us-east-1\",\n features: [\"auth\", \"storage\"],\n};\n```\n\n## Next Steps\n\n- Read the [Architecture Guide](./architecture) to understand the system design\n- Check [API Reference](./api-reference) for available endpoints\n- Join our Discord community for support\n",
|
|
53
53
|
"globals.css": "@import \"tailwindcss\";\n",
|
|
54
|
-
"README.md": "# Docs Agent\n\nA chatbot that answers questions from your own documents using Retrieval-Augmented Generation (RAG).\n\n## What's included\n\n- Q&A agent with source citation\n- Embedding-based semantic search with convention-based model selection\n- Document upload supporting PDF, DOCX, XLSX, PPTX, CSV, HTML, RTF, EPUB, TXT, and Markdown\n- `ragStore()` with local JSON storage by default, and Veryfront Cloud RAG when bootstrap is present\n- Original uploaded files stored in Veryfront Cloud project uploads when cloud bootstrap is present\n- Sample content in `/content` directory auto-indexed on first search\n\n## Getting started\n\n1. Set your Veryfront Cloud bootstrap vars:\n\n ```bash\n export VERYFRONT_API_TOKEN=vf_...\n export VERYFRONT_PROJECT_SLUG=my-project\n ```\n\n2. Start the dev server:\n\n ```bash\n npx veryfront dev\n ```\n\n3. Open the app and upload a document or ask a question
|
|
54
|
+
"README.md": "# Docs Agent\n\nA chatbot that answers questions from your own documents using Retrieval-Augmented Generation (RAG).\n\n## What's included\n\n- Q&A agent with source citation\n- Embedding-based semantic search with convention-based model selection\n- Document upload supporting PDF, DOCX, XLSX, PPTX, CSV, HTML, RTF, EPUB, TXT, and Markdown\n- `ragStore()` with local JSON storage by default, and Veryfront Cloud RAG when bootstrap is present\n- Original uploaded files stored in Veryfront Cloud project uploads when cloud bootstrap is present\n- Sample content in `/content` directory auto-indexed on first search\n\n## Getting started\n\n1. Set your Veryfront Cloud bootstrap vars:\n\n ```bash\n export VERYFRONT_API_TOKEN=vf_...\n export VERYFRONT_PROJECT_SLUG=my-project\n ```\n\n2. Start the dev server:\n\n ```bash\n npx veryfront dev\n ```\n\n3. Open the app and upload a document or ask a question. The sample docs in `content/` are indexed automatically.\n\nIf you are using a self-hosted Veryfront API, also set `VERYFRONT_API_URL`.\n\n## Architecture\n\nRAG grounds LLM responses in your documents through three pipelines: **Ingestion**, **Query**, and **RAG**. These pipelines are orchestrated around a shared vector store.\n\n```mermaid\nflowchart LR\n ChatUI_L[\"Chat UI\"]\n\n subgraph IngestionFlow[\"Ingestion Pipeline\"]\n D[\"Documents\"] --> EXT[\"Extraction\"] --> DC[\"Chunking\"] --> DE[\"Document\\nEmbedding\"] --> ING[\"Storage\"]\n end\n\n subgraph QueryFlow[\"Query Pipeline\"]\n Q[\"Query\"] --> QE[\"Query\\nEmbedding\"] --> SS[\"Similarity\\nSearch\"]\n end\n\n subgraph RAGFlow[\"RAG Pipeline\"]\n BF[\"beforeStream\\nHook\"] --> RET[\"Retrieval\"] --> AUG[\"Augmentation\"] --> AG[\"Agent\"] --> GEN[\"Generation\"]\n end\n\n EMB((\"Embedding\\nModel\"))\n GEN_LLM((\"Generative\\nModel\"))\n VS[(\"Vector\\nStore\")]\n ChatUI_R[\"Chat UI\"]\n\n ChatUI_L --> D\n ChatUI_L --> Q\n\n QE -.- EMB\n DE -.- EMB\n\n SS --> VS\n ING --> VS\n\n Q --> BF\n VS --> RET\n AG -.- GEN_LLM\n GEN -.- GEN_LLM\n GEN --> ChatUI_R\n```\n\n### Pipelines\n\n**Ingestion**: Documents are parsed into plain text via the built-in kreuzberg extraction engine (supporting PDF, DOCX, XLSX, PPTX, HTML, RTF, EPUB, and 76+ formats), split into overlapping chunks (~1000 chars, 200 char overlap), and stored in the default `ragStore()`. In local mode that means `data/index.json`; with Veryfront Cloud bootstrap it upgrades to the cloud RAG backend automatically. The original uploaded binary is also stored in the project's Veryfront Cloud uploads store so remote projects retain the source file, not just the extracted text. Embeddings are generated lazily on first search to keep uploads fast.\n\n**Query**: The user's query is embedded into the same vector space as the documents, then compared against all stored chunks using cosine similarity to find the top-*k* most relevant results.\n\n**RAG**: The `beforeStream` hook in the chat route intercepts each message before it reaches the agent. It searches the document store for relevant chunks, assembles them into context, and prepends them as retrieved reference data. The agent then generates a cited response streamed back to the user.\n\n## Structure\n\n```\nstore.ts RAG store config\nagents/rag.ts Q&A agent with citation instructions\ncontent/\n getting-started.md Sample document\n architecture.md Sample document\napp/\n api/chat/route.ts Chat API endpoint\n api/uploads/route.ts Upload (POST) and list (GET) uploads\n api/uploads/[id]/route.ts Delete upload\n page.tsx Chat UI with document upload panel\n layout.tsx Root layout with header\n```\n\n## Framework usage\n\n| What | Framework | Template code |\n|------|-----------|---------------|\n| Chat UI + streaming | `Chat`, `useChat` | `page.tsx` |\n| Upload management | `useUploads` hook | `page.tsx` |\n| Source display | `showSources` prop on `Chat` | `page.tsx` |\n| Upload API routes | `createUploadHandler` | 1-line per route file |\n| Chat API route | `createAgUiHandler` | 1 line in `route.ts` |\n| Agent definition | `agent()` | Config object in `agents/rag.ts` |\n| RAG retrieval | `beforeStream` hook | Context injection in `api/chat/route.ts` |\n| Vector store | `ragStore()` | Config in `store.ts` |\n\n## Adding documents\n\n- Drop files into `content/`. They are indexed automatically on first search\n- Or use the upload panel in the UI for PDF, DOCX, XLSX, PPTX, CSV, HTML, RTF, EPUB, TXT, and MD files\n\n## Production notes\n\nThis is a starter template, not a production-ready setup. For production, consider:\n\n- **Vector store**: Replace the default store with pgvector, Pinecone, or Qdrant for datasets beyond ~10k chunks\n- **Reranking**: Add a cross-encoder reranker (e.g. Cohere Rerank) after retrieval to improve precision\n- **Hybrid search**: Combine dense vectors with BM25 keyword matching for better recall\n",
|
|
55
55
|
"store.ts": "import { ragStore } from \"veryfront/embedding\";\n\nexport const store = ragStore({\n storagePath: \"data/index.json\",\n contentDir: \"content\",\n});\n",
|
|
56
56
|
"tsconfig.json": "{\n \"compilerOptions\": {\n \"target\": \"ES2022\",\n \"module\": \"ESNext\",\n \"moduleResolution\": \"bundler\",\n \"strict\": true,\n \"jsx\": \"react-jsx\",\n \"skipLibCheck\": true,\n \"esModuleInterop\": true,\n \"paths\": {\n \"@/*\": [\"./*\"]\n }\n },\n \"include\": [\"**/*.ts\", \"**/*.tsx\"],\n \"exclude\": [\"node_modules\"]\n}\n"
|
|
57
57
|
}
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
"agents/orchestrator.ts": "import { agent, getAgentsAsTools } from \"veryfront/agent\";\n\nexport default agent({\n id: \"orchestrator\",\n system:\n \"You coordinate a team of AI agents. \" +\n \"Delegate research tasks to the researcher and writing tasks to the writer. \" +\n \"Combine their outputs into a polished response.\",\n tools: getAgentsAsTools([\"researcher\", \"writer\"]),\n maxSteps: 10,\n});\n",
|
|
70
70
|
"agents/researcher.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"researcher\",\n system:\n \"You are a research specialist. \" +\n \"Gather comprehensive information on the given topic. \" +\n \"Present findings as structured bullet points with key facts and data.\",\n tools: true,\n maxSteps: 5,\n});\n",
|
|
71
71
|
"agents/writer.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"writer\",\n system:\n \"You are a writing specialist. \" +\n \"Take research notes and transform them into clear, engaging prose. \" +\n \"Use a professional but approachable tone.\",\n maxSteps: 3,\n});\n",
|
|
72
|
-
"app/api/chat/route.ts": "import {
|
|
72
|
+
"app/api/chat/route.ts": "import { createAgUiHandler } from \"veryfront/agent\";\n\nexport const POST = createAgUiHandler(\"orchestrator\");\n",
|
|
73
73
|
"app/layout.tsx": "import \"../globals.css\";\nimport { Head } from \"veryfront/head\";\n\nexport default function RootLayout({\n children,\n}: {\n children: React.ReactNode;\n}): React.ReactNode {\n return (\n <>\n <Head>\n <title>Multi-Agent System</title>\n </Head>\n <div className=\"flex flex-col h-screen bg-white dark:bg-neutral-950\">\n <header className=\"flex-shrink-0 border-b border-neutral-200 dark:border-neutral-800\">\n <div className=\"max-w-3xl mx-auto flex items-center gap-3 px-4 py-3\">\n <div className=\"flex -space-x-2\">\n <div className=\"w-7 h-7 rounded-full bg-blue-500 ring-2 ring-white dark:ring-neutral-950 flex items-center justify-center text-[10px] font-bold text-white\">\n O\n </div>\n <div className=\"w-7 h-7 rounded-full bg-amber-500 ring-2 ring-white dark:ring-neutral-950 flex items-center justify-center text-[10px] font-bold text-white\">\n R\n </div>\n <div className=\"w-7 h-7 rounded-full bg-violet-500 ring-2 ring-white dark:ring-neutral-950 flex items-center justify-center text-[10px] font-bold text-white\">\n W\n </div>\n </div>\n <div>\n <h1 className=\"font-medium text-neutral-900 dark:text-white text-sm\">\n Agent Team\n </h1>\n <p className=\"text-xs text-neutral-500 dark:text-neutral-400\">\n Orchestrator, Researcher, Writer\n </p>\n </div>\n </div>\n </header>\n {children}\n </div>\n </>\n );\n}\n",
|
|
74
74
|
"app/page.tsx": "'use client'\n\nimport { Chat, useChat } from 'veryfront/chat'\n\nexport default function MultiAgentChat(): JSX.Element {\n const chat = useChat({ api: '/api/chat' })\n\n return <Chat {...chat} className=\"flex-1 min-h-0\" placeholder=\"Give the team a task...\" />\n}\n",
|
|
75
75
|
"globals.css": "@import \"tailwindcss\";\n",
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
"saas-starter": {
|
|
82
82
|
"files": {
|
|
83
83
|
"agents/assistant.ts": "import { agent } from \"veryfront/agent\";\n\nexport default agent({\n id: \"assistant\",\n system: \"You are a helpful AI assistant. Be concise and direct.\",\n tools: true,\n memory: { type: \"conversation\", maxMessages: 50 },\n maxSteps: 10,\n});\n",
|
|
84
|
-
"app/api/chat/route.ts": "import {
|
|
84
|
+
"app/api/chat/route.ts": "import { createAgUiHandler } from \"veryfront/agent\";\n\nexport const POST = createAgUiHandler(\"assistant\");\n",
|
|
85
85
|
"app/dashboard/page.tsx": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Chat, useChat } from \"veryfront/chat\";\n\ninterface Conversation {\n id: string;\n title: string;\n updatedAt: string;\n}\n\nconst INITIAL_CONVERSATIONS: Conversation[] = [\n { id: \"1\", title: \"Getting started\", updatedAt: \"Just now\" },\n];\n\nexport default function Dashboard(): JSX.Element {\n const [conversations] = useState<Conversation[]>(INITIAL_CONVERSATIONS);\n const [activeId, setActiveId] = useState(\"1\");\n const chat = useChat({ api: \"/api/chat\" });\n\n return (\n <div className=\"flex h-screen bg-white dark:bg-neutral-950\">\n {/* Sidebar */}\n <aside className=\"w-64 border-r border-neutral-200 dark:border-neutral-800 flex flex-col bg-neutral-50 dark:bg-neutral-900\">\n <div className=\"p-4 border-b border-neutral-200 dark:border-neutral-800\">\n <button className=\"w-full flex items-center gap-2 px-3 py-2 text-sm font-medium text-neutral-700 dark:text-neutral-300 bg-white dark:bg-neutral-800 border border-neutral-200 dark:border-neutral-700 rounded-lg hover:bg-neutral-50 dark:hover:bg-neutral-700 transition-colors\">\n <svg\n className=\"w-4 h-4\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth={2}\n >\n <path\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n d=\"M12 4.5v15m7.5-7.5h-15\"\n />\n </svg>\n New chat\n </button>\n </div>\n\n <nav className=\"flex-1 overflow-y-auto p-2 space-y-0.5\">\n {conversations.map((conv) => (\n <button\n key={conv.id}\n onClick={() => setActiveId(conv.id)}\n className={`w-full text-left px-3 py-2 rounded-lg text-sm transition-colors ${\n activeId === conv.id\n ? \"bg-neutral-200 dark:bg-neutral-800 text-neutral-900 dark:text-white\"\n : \"text-neutral-600 dark:text-neutral-400 hover:bg-neutral-100 dark:hover:bg-neutral-800/50\"\n }`}\n >\n <p className=\"truncate\">{conv.title}</p>\n <p className=\"text-xs text-neutral-400 mt-0.5\">\n {conv.updatedAt}\n </p>\n </button>\n ))}\n </nav>\n\n <div className=\"p-4 border-t border-neutral-200 dark:border-neutral-800\">\n <div className=\"flex items-center gap-2\">\n <div className=\"w-8 h-8 rounded-full bg-neutral-200 dark:bg-neutral-700 flex items-center justify-center text-xs font-medium text-neutral-600 dark:text-neutral-300\">\n U\n </div>\n <div className=\"flex-1 min-w-0\">\n <p className=\"text-sm font-medium text-neutral-900 dark:text-white truncate\">\n User\n </p>\n <p className=\"text-xs text-neutral-500 truncate\">\n user@example.com\n </p>\n </div>\n </div>\n </div>\n </aside>\n\n {/* Chat */}\n <main className=\"flex-1 flex flex-col\">\n <Chat {...chat} className=\"flex-1 min-h-0\" placeholder=\"Message...\" />\n </main>\n </div>\n );\n}\n",
|
|
86
86
|
"app/layout.tsx": "import \"../globals.css\";\nimport { Head } from \"veryfront/head\";\n\nexport default function RootLayout({\n children,\n}: {\n children: React.ReactNode;\n}): React.ReactNode {\n return (\n <>\n <Head>\n <title>AI SaaS</title>\n </Head>\n <div className=\"antialiased\">\n {children}\n </div>\n </>\n );\n}\n",
|
|
87
87
|
"app/login/page.tsx": "\"use client\";\n\nexport default function LoginPage(): JSX.Element {\n return (\n <div className=\"min-h-screen flex items-center justify-center bg-neutral-50 dark:bg-neutral-950 px-4\">\n <div className=\"w-full max-w-sm\">\n <div className=\"text-center mb-8\">\n <h1 className=\"text-xl font-bold text-neutral-900 dark:text-white\">\n Welcome back\n </h1>\n <p className=\"text-sm text-neutral-500 dark:text-neutral-400 mt-1\">\n Sign in to continue\n </p>\n </div>\n\n <div className=\"bg-white dark:bg-neutral-900 rounded-2xl border border-neutral-200 dark:border-neutral-800 p-6 space-y-3\">\n <a\n href=\"/api/auth/google\"\n className=\"flex items-center justify-center gap-2 w-full px-4 py-2.5 border border-neutral-200 dark:border-neutral-800 rounded-xl text-sm font-medium text-neutral-700 dark:text-neutral-300 hover:bg-neutral-50 dark:hover:bg-neutral-800 transition-colors\"\n >\n <svg className=\"w-4 h-4\" viewBox=\"0 0 24 24\">\n <path\n fill=\"#4285F4\"\n d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.76h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.84 14.09a7.12 7.12 0 010-4.18V7.07H2.18A11.99 11.99 0 001 12c0 1.94.46 3.77 1.18 5.43l3.66-3.34z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"\n />\n </svg>\n Continue with Google\n </a>\n <a\n href=\"/api/auth/github\"\n className=\"flex items-center justify-center gap-2 w-full px-4 py-2.5 border border-neutral-200 dark:border-neutral-800 rounded-xl text-sm font-medium text-neutral-700 dark:text-neutral-300 hover:bg-neutral-50 dark:hover:bg-neutral-800 transition-colors\"\n >\n <svg className=\"w-4 h-4\" fill=\"currentColor\" viewBox=\"0 0 24 24\">\n <path d=\"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.51 11.51 0 0112 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z\" />\n </svg>\n Continue with GitHub\n </a>\n </div>\n\n <p className=\"mt-6 text-center text-xs text-neutral-400\">\n <a\n href=\"/\"\n className=\"hover:text-neutral-600 dark:hover:text-neutral-300\"\n >\n ← Back to home\n </a>\n </p>\n </div>\n </div>\n );\n}\n",
|
package/esm/deno.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.547",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"workspace": [
|
|
@@ -336,7 +336,7 @@ export default {
|
|
|
336
336
|
"verify:quick": "deno task generate:manifests:check && deno fmt --check src/ cli/ react/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ react/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task lint:ban-zod && deno task lint:core-deps && deno task lint:dependency-boundaries && deno task lint:extension-contracts && deno task lint:extension-capabilities && deno task docs:validate && deno task typecheck",
|
|
337
337
|
"docs": "rm -rf docs/reference && deno run --allow-read --allow-write --allow-run scripts/docs/generate-api-reference.ts",
|
|
338
338
|
"docs:copy": "rm -rf ../../docs/docs/code/reference && cp -r docs/reference/ ../../docs/docs/code/reference/",
|
|
339
|
-
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts",
|
|
339
|
+
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts && deno run --allow-read scripts/docs/validate-guides.ts && deno run -A scripts/lint/check-doc-links.ts",
|
|
340
340
|
"docs:verify-npm": "node scripts/docs/verify-npm-exports.mjs && node scripts/docs/verify-npm-node.mjs",
|
|
341
341
|
"docs:check-links": "deno run -A scripts/lint/check-doc-links.ts",
|
|
342
342
|
"lint:ban-zod": "deno run --allow-read scripts/lint/ban-zod-imports.ts",
|
|
@@ -357,7 +357,7 @@ export default {
|
|
|
357
357
|
"lint:wildcard-exports": "deno run --allow-read scripts/lint/ban-wildcard-exports.ts",
|
|
358
358
|
"lint:deps": "deno run --allow-read scripts/lint/audit-deps.ts",
|
|
359
359
|
"lint:barrel-jsdoc": "deno run --allow-read scripts/lint/check-barrel-jsdoc.ts",
|
|
360
|
-
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write scripts/build/generate-sbom.test.ts scripts/build/npm-react-shims.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-circular-baseline.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
360
|
+
"test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write scripts/build/generate-sbom.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-circular-baseline.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
|
|
361
361
|
"test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
|
|
362
362
|
"test:node": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts'",
|
|
363
363
|
"test:bun": "node ./tests/bun/run-tests.mjs src/",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kreuzberg.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-document-kreuzberg/src/kreuzberg.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"kreuzberg.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-document-kreuzberg/src/kreuzberg.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAuBlF,wBAAsB,aAAa,IAAI,OAAO,CAAC,kBAAkB,CAAC,CA2BjE"}
|
|
@@ -11,14 +11,22 @@
|
|
|
11
11
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
12
12
|
// deno-lint-ignore no-explicit-any
|
|
13
13
|
async function loadKreuzbergNode() {
|
|
14
|
-
|
|
14
|
+
try {
|
|
15
|
+
return await import("@kreuzberg/node");
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
if (!isMissingPackageError(error))
|
|
19
|
+
throw error;
|
|
20
|
+
throw new Error('Document extraction on Node requires the optional package "@kreuzberg/node". ' +
|
|
21
|
+
"Install @kreuzberg/node@^4.4.2 or disable document extraction.");
|
|
22
|
+
}
|
|
15
23
|
}
|
|
16
24
|
export async function loadKreuzberg() {
|
|
17
25
|
const isDeno = typeof dntShim.Deno !== "undefined";
|
|
18
26
|
if (!isDeno) {
|
|
19
27
|
return loadKreuzbergNode();
|
|
20
28
|
}
|
|
21
|
-
const mod = await
|
|
29
|
+
const mod = await importKreuzbergWasm();
|
|
22
30
|
const mainModule = typeof dntShim.Deno.mainModule === "string"
|
|
23
31
|
? dntShim.Deno.mainModule
|
|
24
32
|
: "";
|
|
@@ -37,3 +45,21 @@ export async function loadKreuzberg() {
|
|
|
37
45
|
await mod.initWasm?.();
|
|
38
46
|
return mod;
|
|
39
47
|
}
|
|
48
|
+
async function importKreuzbergWasm() {
|
|
49
|
+
try {
|
|
50
|
+
return await import("@kreuzberg/wasm");
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
if (!isMissingPackageError(error))
|
|
54
|
+
throw error;
|
|
55
|
+
throw new Error('Document extraction on Deno requires the optional package "@kreuzberg/wasm". ' +
|
|
56
|
+
"Install @kreuzberg/wasm@4.5.2 or disable document extraction.");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function isMissingPackageError(error) {
|
|
60
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
61
|
+
return message.includes("Cannot find package") ||
|
|
62
|
+
message.includes("Cannot find module") ||
|
|
63
|
+
message.includes("ERR_MODULE_NOT_FOUND") ||
|
|
64
|
+
message.includes("Module not found");
|
|
65
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-sandbox-shell-tools/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/extensions/ext-sandbox-shell-tools/src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAE/B,MAAM,0CAA0C,CAAC;AAElD,KAAK,eAAe,GAAG,CACrB,KAAK,EAAE,4BAA4B,KAChC,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC;AAEjD,wBAAgB,+BAA+B,CAC7C,kBAAkB,EAAE,eAAe,GAClC,yBAAyB,CAE3B;AAED,QAAA,MAAM,QAAQ,2BAGZ,CAAC;AAsBH,QAAA,MAAM,oBAAoB,EAAE,gBAa1B,CAAC;AAEH,eAAe,oBAAoB,CAAC;AACpC,OAAO,EAAE,QAAQ,IAAI,mCAAmC,EAAE,CAAC"}
|
|
@@ -4,11 +4,31 @@
|
|
|
4
4
|
* @module extensions/ext-sandbox-shell-tools
|
|
5
5
|
*/
|
|
6
6
|
import { SandboxShellToolsProviderName, } from "../../../src/extensions/sandbox/index.js";
|
|
7
|
-
import { createBashTool } from "bash-tool";
|
|
8
7
|
export function createSandboxShellToolsProvider(createBashToolImpl) {
|
|
9
8
|
return async (input) => await createBashToolImpl(input);
|
|
10
9
|
}
|
|
11
|
-
const provider = createSandboxShellToolsProvider(
|
|
10
|
+
const provider = createSandboxShellToolsProvider(async (input) => {
|
|
11
|
+
const { createBashTool } = await importBashTool();
|
|
12
|
+
return await createBashTool(input);
|
|
13
|
+
});
|
|
14
|
+
async function importBashTool() {
|
|
15
|
+
try {
|
|
16
|
+
return await import("bash-tool");
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
if (!isMissingPackageError(error))
|
|
20
|
+
throw error;
|
|
21
|
+
throw new Error('Sandbox shell tools require the optional package "bash-tool". ' +
|
|
22
|
+
"Install bash-tool@1.3.16 or pass createBashTool explicitly.");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function isMissingPackageError(error) {
|
|
26
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
27
|
+
return message.includes("Cannot find package") ||
|
|
28
|
+
message.includes("Cannot find module") ||
|
|
29
|
+
message.includes("ERR_MODULE_NOT_FOUND") ||
|
|
30
|
+
message.includes("Module not found");
|
|
31
|
+
}
|
|
12
32
|
const extSandboxShellTools = () => ({
|
|
13
33
|
name: "ext-sandbox-shell-tools",
|
|
14
34
|
version: "0.1.0",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { Agent } from "../types.js";
|
|
2
2
|
import { type RunResumeSessionManager } from "../runtime/index.js";
|
|
3
|
+
import { type AgUiBeforeStream } from "../service/before-stream.js";
|
|
3
4
|
import { type AgUiResumeValue } from "./tool-shared.js";
|
|
4
5
|
export { type AgUiContextItem, AgUiContextItemSchema, type AgUiInjectedTool, AgUiInjectedToolSchema, type AgUiRequest, AgUiRequestSchema, } from "./host-support.js";
|
|
5
6
|
export interface AgUiHandlerOptions {
|
|
6
7
|
context?: Record<string, unknown> | ((request: Request) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
7
8
|
sessionManager?: RunResumeSessionManager<AgUiResumeValue>;
|
|
9
|
+
beforeStream?: AgUiBeforeStream;
|
|
8
10
|
}
|
|
9
11
|
export interface AgUiHandlerConfigWithAgent extends AgUiHandlerOptions {
|
|
10
12
|
agent: Agent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/handler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/handler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAAE,KAAK,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EACL,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,WAAW,EAChB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AA4Q3B,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACvF,cAAc,CAAC,EAAE,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC1D,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,KAAK,EAAE,KAAK,CAAC;CACd;AAUD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,GAC3B,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAChD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,CAAC,YAAY,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as dntShim from "../../../_dnt.shims.js";
|
|
2
2
|
import { isResponseLike } from "../service/response-like.js";
|
|
3
3
|
import { getAgent } from "../composition/index.js";
|
|
4
|
+
import { fromError } from "../../errors/veryfront-error.js";
|
|
5
|
+
import { DEFAULT_LOCAL_MODEL } from "../../provider/local/model-catalog.js";
|
|
4
6
|
import { AgentRuntime, RunAlreadyExistsError, } from "../runtime/index.js";
|
|
5
7
|
import { createStreamTransformState, finalizeRunEvents, formatAgUiEvent, mapRuntimeEventToAgUi, } from "../../internal-agents/ag-ui-sse.js";
|
|
6
8
|
import { streamDataStreamEvents } from "../streaming/data-stream.js";
|
|
9
|
+
import { applyBeforeStreamResult, extractLastUserText, } from "../service/before-stream.js";
|
|
7
10
|
import { normalizeAgUiMessages, parseAgUiRequestOrError, } from "./host-support.js";
|
|
8
11
|
import { extractRequest } from "./request-shared.js";
|
|
9
12
|
import { buildMergedAgUiTools } from "./tool-shared.js";
|
|
@@ -111,13 +114,25 @@ async function createAgUiStreamResponse(options) {
|
|
|
111
114
|
headers: { ...AG_UI_HEADERS },
|
|
112
115
|
});
|
|
113
116
|
}
|
|
114
|
-
async function createAgUiDirectStreamResponse(agent, request, baseContext) {
|
|
117
|
+
async function createAgUiDirectStreamResponse(agent, request, rawRequest, baseContext, beforeStream) {
|
|
115
118
|
const threadId = request.threadId ?? dntShim.crypto.randomUUID();
|
|
116
119
|
const runId = request.runId ?? generateRunId();
|
|
120
|
+
const context = buildStreamContext(request, baseContext, threadId, runId);
|
|
121
|
+
let messages = normalizeAgUiMessages(request.messages);
|
|
122
|
+
const beforeStreamResult = await beforeStream?.({
|
|
123
|
+
request: rawRequest,
|
|
124
|
+
messages,
|
|
125
|
+
context,
|
|
126
|
+
lastUserText: extractLastUserText(messages),
|
|
127
|
+
});
|
|
128
|
+
if (isResponseLike(beforeStreamResult))
|
|
129
|
+
return beforeStreamResult;
|
|
130
|
+
messages = applyBeforeStreamResult(messages, beforeStreamResult ?? undefined);
|
|
131
|
+
const finalContext = beforeStreamResult?.context ?? context;
|
|
117
132
|
await agent.clearMemory();
|
|
118
133
|
const result = await agent.stream({
|
|
119
|
-
messages
|
|
120
|
-
context:
|
|
134
|
+
messages,
|
|
135
|
+
context: finalContext,
|
|
121
136
|
...(request.model ? { model: request.model } : {}),
|
|
122
137
|
...(request.maxOutputTokens ? { maxOutputTokens: request.maxOutputTokens } : {}),
|
|
123
138
|
});
|
|
@@ -132,9 +147,21 @@ async function createAgUiDirectStreamResponse(agent, request, baseContext) {
|
|
|
132
147
|
upstreamStatusText: upstream.statusText,
|
|
133
148
|
});
|
|
134
149
|
}
|
|
135
|
-
async function createAgUiInjectedToolsStreamResponse(agent, request, baseContext, sessionManager) {
|
|
150
|
+
async function createAgUiInjectedToolsStreamResponse(agent, request, rawRequest, baseContext, sessionManager, beforeStream) {
|
|
136
151
|
const threadId = request.threadId ?? dntShim.crypto.randomUUID();
|
|
137
152
|
const runId = request.runId ?? generateRunId();
|
|
153
|
+
const context = buildStreamContext(request, baseContext, threadId, runId);
|
|
154
|
+
let messages = normalizeAgUiMessages(request.messages);
|
|
155
|
+
const beforeStreamResult = await beforeStream?.({
|
|
156
|
+
request: rawRequest,
|
|
157
|
+
messages,
|
|
158
|
+
context,
|
|
159
|
+
lastUserText: extractLastUserText(messages),
|
|
160
|
+
});
|
|
161
|
+
if (isResponseLike(beforeStreamResult))
|
|
162
|
+
return beforeStreamResult;
|
|
163
|
+
messages = applyBeforeStreamResult(messages, beforeStreamResult ?? undefined);
|
|
164
|
+
const finalContext = beforeStreamResult?.context ?? context;
|
|
138
165
|
try {
|
|
139
166
|
sessionManager.startRun({ runId, threadId });
|
|
140
167
|
}
|
|
@@ -150,7 +177,7 @@ async function createAgUiInjectedToolsStreamResponse(agent, request, baseContext
|
|
|
150
177
|
});
|
|
151
178
|
let upstreamBody;
|
|
152
179
|
try {
|
|
153
|
-
upstreamBody = await runtime.stream(
|
|
180
|
+
upstreamBody = await runtime.stream(messages, finalContext, undefined, request.model, request.maxOutputTokens);
|
|
154
181
|
}
|
|
155
182
|
catch (error) {
|
|
156
183
|
sessionManager.failRun(runId);
|
|
@@ -216,12 +243,12 @@ export function createAgUiHandler(agentIdOrConfig, options) {
|
|
|
216
243
|
const context = typeof options?.context === "function"
|
|
217
244
|
? await options.context(request)
|
|
218
245
|
: options?.context ?? {};
|
|
219
|
-
return await createAgUiInjectedToolsStreamResponse(agent, parsed, context, options.sessionManager);
|
|
246
|
+
return await createAgUiInjectedToolsStreamResponse(agent, parsed, request, context, options.sessionManager, options?.beforeStream);
|
|
220
247
|
}
|
|
221
248
|
const context = typeof options?.context === "function"
|
|
222
249
|
? await options.context(request)
|
|
223
250
|
: options?.context ?? {};
|
|
224
|
-
return await createAgUiDirectStreamResponse(agent, parsed, context);
|
|
251
|
+
return await createAgUiDirectStreamResponse(agent, parsed, request, context, options?.beforeStream);
|
|
225
252
|
}
|
|
226
253
|
catch (error) {
|
|
227
254
|
if (error instanceof Error &&
|
|
@@ -236,9 +263,15 @@ export function createAgUiHandler(agentIdOrConfig, options) {
|
|
|
236
263
|
})),
|
|
237
264
|
}, { status: 400 });
|
|
238
265
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
266
|
+
const vfError = fromError(error);
|
|
267
|
+
if (vfError?.type === "no_ai_available") {
|
|
268
|
+
return Response.json({
|
|
269
|
+
code: "NO_AI_AVAILABLE",
|
|
270
|
+
fallback: "browser",
|
|
271
|
+
model: DEFAULT_LOCAL_MODEL,
|
|
272
|
+
}, { status: 503 });
|
|
273
|
+
}
|
|
274
|
+
return Response.json({ error: "Internal server error" }, { status: 500 });
|
|
242
275
|
}
|
|
243
276
|
};
|
|
244
277
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/host-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAa3C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAgBD,eAAO,MAAM,yBAAyB;;;;GASrC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAuBpC,CAAC;
|
|
1
|
+
{"version":3,"file":"host-support.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/ag-ui/host-support.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAa3C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAgBD,eAAO,MAAM,yBAAyB;;;;GASrC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;GAuBpC,CAAC;AAuBF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBhC,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,sBAAsB;;;;GAAwC,CAAC;AAC5E,iDAAiD;AACjD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;GAAuC,CAAC;AAC1E,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAmC,CAAC;AAElE,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC;AACzF,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC;AACvF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC;AA0H/E,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAE7E;AAED,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,WAAW,GAAG,QAAQ,CAAC,CAKjC;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,GAAG,OAAO,EAAE,CAiBlF;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,CAQpF;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,CAUxF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,QAAQ,CASlF"}
|
|
@@ -46,7 +46,10 @@ export const getAgUiContextItemSchema = defineSchema((v) => v.discriminatedUnion
|
|
|
46
46
|
text: v.string().max(MAX_CONTEXT_ITEM_BYTES).optional(),
|
|
47
47
|
}),
|
|
48
48
|
]));
|
|
49
|
-
const getAgUiMessagePartSchema = defineSchema((v) => v.object({ type: v.string().min(1) }).passthrough())
|
|
49
|
+
const getAgUiMessagePartSchema = defineSchema((v) => v.object({ type: v.string().min(1) }).passthrough().refine((part) => part.type !== "text" ||
|
|
50
|
+
(typeof part.text === "string" && part.text.length <= MAX_TEXT_PART_LENGTH), {
|
|
51
|
+
message: `Text message parts must include text less than ${MAX_TEXT_PART_LENGTH} characters`,
|
|
52
|
+
}));
|
|
50
53
|
const getAgUiMessageSchema = defineSchema((v) => v.object({
|
|
51
54
|
id: v.string().min(1),
|
|
52
55
|
role: v.enum(["user", "assistant", "system", "tool"]),
|
|
@@ -77,6 +80,19 @@ function normalizeToolArgs(part) {
|
|
|
77
80
|
return part.input;
|
|
78
81
|
return {};
|
|
79
82
|
}
|
|
83
|
+
function isToolPartWithOutput(part) {
|
|
84
|
+
return typeof part.type === "string" &&
|
|
85
|
+
part.type.startsWith("tool-") &&
|
|
86
|
+
part.type !== "tool-result" &&
|
|
87
|
+
typeof part.toolCallId === "string" &&
|
|
88
|
+
typeof part.toolName === "string" &&
|
|
89
|
+
"output" in part &&
|
|
90
|
+
part.output !== undefined;
|
|
91
|
+
}
|
|
92
|
+
function hasToolResultPart(parts, toolCallId) {
|
|
93
|
+
return parts.some((part) => (part.type === "tool-result" && part.toolCallId === toolCallId) ||
|
|
94
|
+
(part.type === "tool_result" && part.tool_call_id === toolCallId));
|
|
95
|
+
}
|
|
80
96
|
function normalizeMessagePart(part) {
|
|
81
97
|
if (part.type === "text" && typeof part.text === "string" &&
|
|
82
98
|
part.text.length <= MAX_TEXT_PART_LENGTH) {
|
|
@@ -130,6 +146,25 @@ function normalizeMessagePart(part) {
|
|
|
130
146
|
}
|
|
131
147
|
return null;
|
|
132
148
|
}
|
|
149
|
+
function extractAssistantToolOutputMessages(message) {
|
|
150
|
+
if (message.role !== "assistant")
|
|
151
|
+
return [];
|
|
152
|
+
return message.parts.flatMap((part) => {
|
|
153
|
+
if (!isToolPartWithOutput(part) || hasToolResultPart(message.parts, part.toolCallId)) {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
return [{
|
|
157
|
+
id: `tool_${part.toolCallId}`,
|
|
158
|
+
role: "tool",
|
|
159
|
+
parts: [{
|
|
160
|
+
type: "tool-result",
|
|
161
|
+
toolCallId: part.toolCallId,
|
|
162
|
+
toolName: part.toolName,
|
|
163
|
+
result: part.output,
|
|
164
|
+
}],
|
|
165
|
+
}];
|
|
166
|
+
});
|
|
167
|
+
}
|
|
133
168
|
export async function parseAgUiRequest(request) {
|
|
134
169
|
return getAgUiRequestSchema().parse(await request.json());
|
|
135
170
|
}
|
|
@@ -137,15 +172,21 @@ export async function parseAgUiRequestOrError(request) {
|
|
|
137
172
|
return await parseAgUiJsonRequestOrError(() => parseAgUiRequest(request), "Invalid AG-UI request");
|
|
138
173
|
}
|
|
139
174
|
export function normalizeAgUiMessages(messages) {
|
|
140
|
-
return messages.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
175
|
+
return messages.flatMap((message) => {
|
|
176
|
+
const normalizedMessage = {
|
|
177
|
+
id: message.id,
|
|
178
|
+
role: message.role,
|
|
179
|
+
parts: message.parts
|
|
180
|
+
.map((part) => normalizeMessagePart(part))
|
|
181
|
+
.filter((part) => part !== null),
|
|
182
|
+
...(message.createdAt ? { timestamp: Date.parse(message.createdAt) || undefined } : {}),
|
|
183
|
+
...(message.metadata ? { metadata: message.metadata } : {}),
|
|
184
|
+
};
|
|
185
|
+
return [
|
|
186
|
+
normalizedMessage,
|
|
187
|
+
...extractAssistantToolOutputMessages(message),
|
|
188
|
+
];
|
|
189
|
+
});
|
|
149
190
|
}
|
|
150
191
|
export function createAgUiRunErrorEvent(message, code) {
|
|
151
192
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"veryfront-cloud-agent-service.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/veryfront-cloud-agent-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAsC9E,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAkBzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAKnF,OAAO,EAML,KAAK,8BAA8B,EAEpC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAEL,KAAK,kDAAkD,EACxD,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAK9B,KAAK,2BAA2B,EACjC,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAYhF,MAAM,MAAM,2CAA2C,GACnD,WAAW,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,GACxD,WAAW,CAAC,kDAAkD,CAAC,eAAe,CAAC,CAAC,GAChF;IACA,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,GAAG,IAAI,CAAC;CACvC,CAAC;AAEJ,MAAM,MAAM,yCAAyC,GAAG,8BAA8B,CAAC;AAEvF,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEtD,MAAM,MAAM,uCAAuC,GAAG,2BAA2B,CAAC;AAElF,wBAAgB,kBAAkB,CAChC,IAAI,GAAE,sBAA8B,GACnC,2BAA2B,CAM7B;AAED,KAAK,sBAAsB,GAAG,MAAM,GAAG,GAAG,CAAC;AAE3C,MAAM,MAAM,qCAAqC,GAAG;IAClD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,uCAAuC,EAAE,CAAC;IAChE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,+BAA+B,CAAC,gBAAgB,CAAC,CAAC;IACnE,GAAG,CAAC,EAAE,kDAAkD,CAAC,KAAK,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,2CAA2C,CAAC;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,MAAM,CAAC,OAAO,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,qCAAqC,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,qCAAqC,CAAC;AASxE,MAAM,MAAM,+CAA+C,GAAG,2BAA2B,GAAG;IAC1F,MAAM,EAAE,yBAAyB,CAAC;IAClC,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAChD,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAClD,cAAc,EAAE,gCAAgC,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,+CAA+C,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"veryfront-cloud-agent-service.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/veryfront-cloud-agent-service.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAsC9E,OAAO,EAGL,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AAOjC,OAAO,EAAE,KAAK,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAkBzE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAKnF,OAAO,EAML,KAAK,8BAA8B,EAEpC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAEL,KAAK,kDAAkD,EACxD,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAK9B,KAAK,2BAA2B,EACjC,MAAM,uBAAuB,CAAC;AAS/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAYhF,MAAM,MAAM,2CAA2C,GACnD,WAAW,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,GACxD,WAAW,CAAC,kDAAkD,CAAC,eAAe,CAAC,CAAC,GAChF;IACA,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,KAAK,GAAG,IAAI,CAAC;CACvC,CAAC;AAEJ,MAAM,MAAM,yCAAyC,GAAG,8BAA8B,CAAC;AAEvF,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEtD,MAAM,MAAM,uCAAuC,GAAG,2BAA2B,CAAC;AAElF,wBAAgB,kBAAkB,CAChC,IAAI,GAAE,sBAA8B,GACnC,2BAA2B,CAM7B;AAED,KAAK,sBAAsB,GAAG,MAAM,GAAG,GAAG,CAAC;AAE3C,MAAM,MAAM,qCAAqC,GAAG;IAClD;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,uCAAuC,EAAE,CAAC;IAChE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,+BAA+B,CAAC,gBAAgB,CAAC,CAAC;IACnE,GAAG,CAAC,EAAE,kDAAkD,CAAC,KAAK,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,2CAA2C,CAAC;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,CAAC,EAAE,SAAS,MAAM,CAAC,OAAO,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,qCAAqC,CAAC;AACtF,MAAM,MAAM,mBAAmB,GAAG,qCAAqC,CAAC;AASxE,MAAM,MAAM,+CAA+C,GAAG,2BAA2B,GAAG;IAC1F,MAAM,EAAE,yBAAyB,CAAC;IAClC,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,CAAC;IAChD,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,QAAQ,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAC;IAClD,cAAc,EAAE,gCAAgC,CAAC;CAClD,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,+CAA+C,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,2CAA2C,CAAC;AAkxBpF,wBAAsB,2CAA2C,CAC/D,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,yBAAyB,CAAC,+CAA+C,CAAC,CAAC,CAKrF;AAED,wBAAsB,mCAAmC,CACvD,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,CAAC,CAgBvF;AAED,wBAAsB,iBAAiB,CACrC,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,IAAI,CAAC,CAiDf"}
|
|
@@ -169,9 +169,29 @@ async function ensureDefaultAuthProvider() {
|
|
|
169
169
|
async function ensureDefaultNodeTelemetryProvider() {
|
|
170
170
|
if (tryResolve(NodeTelemetryProviderName))
|
|
171
171
|
return;
|
|
172
|
-
const
|
|
172
|
+
const OpenTelemetryNodeTelemetryProvider = await importOpenTelemetryNodeTelemetryProvider();
|
|
173
|
+
if (!OpenTelemetryNodeTelemetryProvider)
|
|
174
|
+
return;
|
|
173
175
|
register(NodeTelemetryProviderName, new OpenTelemetryNodeTelemetryProvider());
|
|
174
176
|
}
|
|
177
|
+
async function importOpenTelemetryNodeTelemetryProvider() {
|
|
178
|
+
try {
|
|
179
|
+
const { OpenTelemetryNodeTelemetryProvider } = await import("../../../extensions/ext-observability-opentelemetry/src/index.js");
|
|
180
|
+
return OpenTelemetryNodeTelemetryProvider;
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
if (!isMissingOptionalPackageError(error))
|
|
184
|
+
throw error;
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function isMissingOptionalPackageError(error) {
|
|
189
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
190
|
+
return message.includes("Cannot find package") ||
|
|
191
|
+
message.includes("Cannot find module") ||
|
|
192
|
+
message.includes("ERR_MODULE_NOT_FOUND") ||
|
|
193
|
+
message.includes("Module not found");
|
|
194
|
+
}
|
|
175
195
|
function resolveEnvironment(options) {
|
|
176
196
|
if (options.env) {
|
|
177
197
|
return options.env;
|
package/esm/src/agent/index.d.ts
CHANGED
|
@@ -16,14 +16,12 @@
|
|
|
16
16
|
* ```ts
|
|
17
17
|
* import { agent } from "veryfront/agent";
|
|
18
18
|
* import { tool } from "veryfront/tool";
|
|
19
|
-
* import {
|
|
20
|
-
*
|
|
21
|
-
* const getSearchInput = defineSchema((v) => v.object({ query: v.string() }));
|
|
19
|
+
* import { z } from "zod";
|
|
22
20
|
*
|
|
23
21
|
* const searchTool = tool({
|
|
24
22
|
* id: "search",
|
|
25
23
|
* description: "Search the knowledge base",
|
|
26
|
-
* inputSchema:
|
|
24
|
+
* inputSchema: z.object({ query: z.string() }),
|
|
27
25
|
* execute: async ({ query }) => ({ results: [] }),
|
|
28
26
|
* });
|
|
29
27
|
*
|
|
@@ -34,6 +32,29 @@
|
|
|
34
32
|
* });
|
|
35
33
|
* ```
|
|
36
34
|
*
|
|
35
|
+
* @example Agent with materialized runtime tools
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { agent } from "veryfront/agent";
|
|
38
|
+
* import { createRemoteMCPToolSource, loadRemoteToolsFromSource } from "veryfront/tool";
|
|
39
|
+
*
|
|
40
|
+
* const docsTools = createRemoteMCPToolSource({
|
|
41
|
+
* id: "docs-mcp",
|
|
42
|
+
* endpoint: "https://docs.example.com/mcp",
|
|
43
|
+
* headers: { Authorization: "Bearer <TOKEN>" },
|
|
44
|
+
* });
|
|
45
|
+
*
|
|
46
|
+
* const runtimeTools = await loadRemoteToolsFromSource(docsTools, {
|
|
47
|
+
* context: { projectId: "proj_123" },
|
|
48
|
+
* toolNameAliases: { search_docs: "docs_search" },
|
|
49
|
+
* });
|
|
50
|
+
*
|
|
51
|
+
* const assistant = agent({
|
|
52
|
+
* system: "Use the docs tools when the answer needs project documentation.",
|
|
53
|
+
* tools: runtimeTools,
|
|
54
|
+
* maxSteps: 5,
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
37
58
|
* @example Agent with skills
|
|
38
59
|
* ```ts
|
|
39
60
|
* import { agent } from "veryfront/agent";
|
|
@@ -51,17 +72,13 @@
|
|
|
51
72
|
* @example Streaming API route
|
|
52
73
|
* ```ts
|
|
53
74
|
* // app/api/chat/route.ts
|
|
54
|
-
* import { agent } from "veryfront/agent";
|
|
75
|
+
* import { agent, createAgUiHandler } from "veryfront/agent";
|
|
55
76
|
*
|
|
56
77
|
* const assistant = agent({
|
|
57
78
|
* system: "You are a helpful assistant.",
|
|
58
79
|
* });
|
|
59
80
|
*
|
|
60
|
-
* export
|
|
61
|
-
* const { messages } = await req.json();
|
|
62
|
-
* const result = await assistant.stream({ messages });
|
|
63
|
-
* return result.toDataStreamResponse();
|
|
64
|
-
* }
|
|
81
|
+
* export const POST = createAgUiHandler({ agent: assistant });
|
|
65
82
|
* ```
|
|
66
83
|
*
|
|
67
84
|
* @example Multi-agent composition
|
|
@@ -227,7 +244,7 @@ export { type AgUiContextItem, type AgUiHandlerConfigWithAgent, type AgUiHandler
|
|
|
227
244
|
export { createHostedFormInputTool, createHostedFormInputTool as createAgentServiceFormInputTool, type HostedFormInputToolContext, type HostedFormInputToolContext as AgentServiceFormInputToolContext, } from "./hosted/form-input-tool.js";
|
|
228
245
|
export { buildInputRequestLifecycleDataEvent, createInputRequest, type FormInputToolInput, getCreateInputRequestRequestSchema, getCreateInputRequestResponseSchema, getFormInputToolInputSchema, getGetInputRequestResponseSchema, getInputRequest, getInputRequestLifecycleDataEventSchema, getInputRequestOutputSchema, getInputRequestRestSchema, getInputResponseRestSchema, getInputResponseValuesSchema, type InputRequestOutput, } from "./input/request-protocol.js";
|
|
229
246
|
export { type DurableHumanInputFlowResult, executeDurableHumanInputFlow, type ExecuteDurableHumanInputFlowOptions, getHumanInputFieldSchema, getHumanInputOptionSchema, getHumanInputPendingRequestSchema, getHumanInputRequestSchema, getHumanInputResultSchema, type HumanInputField, type HumanInputFieldInput, type HumanInputOption, type HumanInputPendingRequest, type HumanInputRequest, type HumanInputRequestInput, type HumanInputResult, HumanInputResumeError, type HumanInputResumeValue, InvalidHumanInputResultError, waitForDurableHumanInputResolution, type WaitForDurableHumanInputResolutionOptions, waitForHumanInput, type WaitForHumanInputOptions, } from "./input/human-input.js";
|
|
230
|
-
export { type
|
|
247
|
+
export { type AgUiBeforeStream, type AgUiBeforeStreamContext, type AgUiBeforeStreamMessageInput, type AgUiBeforeStreamResult, } from "./service/before-stream.js";
|
|
231
248
|
export { AgentRuntime, getProviderToolProfile, type ProviderToolCompatOptions, type ProviderToolCompatProvider, type ProviderToolProfile, RunAlreadyExistsError, RunCancelledError, RunNotActiveError, RunResumeSessionManager, type RunResumeSessionManagerOptions, type RunSessionStatus, sanitizeProviderToolSchema, selectProviderCompatibleToolNames, selectProviderCompatibleTools, type SubmitResumeValueOutcome, WaitConflictError, WaitNotPendingError, } from "./runtime/index.js";
|
|
232
249
|
export { createHostedServiceAuth, createHostedServiceAuth as createAgentServiceAuth, getHostedServiceTokenFromRequest, getHostedServiceTokenFromRequest as getAgentServiceTokenFromRequest, type HostedServiceAuth, type HostedServiceAuth as AgentServiceAuth, type HostedServiceAuthConfig, type HostedServiceAuthConfig as AgentServiceAuthConfig, type HostedServiceAuthenticatedRequest, type HostedServiceAuthenticatedRequest as AgentServiceAuthenticatedRequest, HostedServiceAuthError, HostedServiceAuthError as AgentServiceAuthError, type HostedServiceAuthErrorCode, type HostedServiceAuthErrorCode as AgentServiceAuthErrorCode, type HostedServiceAuthFetch, type HostedServiceAuthFetch as AgentServiceAuthFetch, type HostedServiceAuthLogger, type HostedServiceAuthLogger as AgentServiceAuthLogger, type HostedServiceAuthOptions, type HostedServiceAuthOptions as AgentServiceAuthOptions, type HostedServiceAuthTrace, type HostedServiceAuthTrace as AgentServiceAuthTrace, type HostedServiceJwtError, type HostedServiceJwtError as AgentServiceJwtError, type HostedServiceJwtResult, type HostedServiceJwtResult as AgentServiceJwtResult, type HostedServiceProjectAccessError, type HostedServiceProjectAccessError as AgentServiceProjectAccessError, type HostedServiceProjectAccessResult, type HostedServiceProjectAccessResult as AgentServiceProjectAccessResult, isHostedServiceAuthError, isHostedServiceAuthError as isAgentServiceAuthError, } from "./service/auth.js";
|
|
233
250
|
//# sourceMappingURL=index.d.ts.map
|