veryfront 0.1.48 → 0.1.49
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/app/components/inline-input.d.ts +1 -4
- package/esm/cli/app/components/inline-input.d.ts.map +1 -1
- package/esm/cli/app/components/inline-input.js +1 -1
- package/esm/cli/app/components/list-select.d.ts +0 -8
- package/esm/cli/app/components/list-select.d.ts.map +1 -1
- package/esm/cli/app/components/list-select.js +0 -13
- package/esm/cli/app/operations/project-creation.d.ts +2 -14
- package/esm/cli/app/operations/project-creation.d.ts.map +1 -1
- package/esm/cli/app/operations/project-creation.js +3 -68
- package/esm/cli/app/shell.js +1 -1
- package/esm/cli/app/utils.d.ts +1 -2
- package/esm/cli/app/utils.d.ts.map +1 -1
- package/esm/cli/app/utils.js +1 -17
- package/esm/cli/app/views/dashboard.d.ts +0 -4
- package/esm/cli/app/views/dashboard.d.ts.map +1 -1
- package/esm/cli/app/views/dashboard.js +0 -15
- package/esm/cli/app/views/startup.d.ts +0 -4
- package/esm/cli/app/views/startup.d.ts.map +1 -1
- package/esm/cli/app/views/startup.js +0 -7
- package/esm/cli/auth/login.d.ts.map +1 -1
- package/esm/cli/auth/login.js +1 -2
- package/esm/cli/auth/token-store.js +1 -1
- package/esm/cli/auth/utils.d.ts +2 -1
- package/esm/cli/auth/utils.d.ts.map +1 -1
- package/esm/cli/commands/generate/integration-generator.js +1 -1
- package/esm/cli/commands/install/types.d.ts +2 -2
- package/esm/cli/help/formatters.d.ts +1 -1
- package/esm/cli/help/formatters.d.ts.map +1 -1
- package/esm/cli/help/formatters.js +8 -4
- package/esm/cli/help/main-help.d.ts.map +1 -1
- package/esm/cli/help/main-help.js +2 -2
- package/esm/cli/mcp/server.d.ts +0 -1
- package/esm/cli/mcp/server.d.ts.map +1 -1
- package/esm/cli/mcp/server.js +2 -5
- package/esm/cli/mcp/tools/dev-tools.d.ts +1 -1
- package/esm/cli/mcp/tools/dev-tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools/dev-tools.js +1 -2
- package/esm/cli/mcp/tools/scaffold-tools.d.ts +2 -2
- package/esm/cli/mcp/tools.d.ts +1 -2
- package/esm/cli/mcp/tools.d.ts.map +1 -1
- package/esm/cli/mcp/tools.js +1 -2
- package/esm/cli/shared/reserve-slug.d.ts.map +1 -1
- package/esm/cli/shared/reserve-slug.js +1 -3
- package/esm/cli/sync/ignore.d.ts +1 -1
- package/esm/cli/sync/ignore.d.ts.map +1 -1
- package/esm/cli/sync/ignore.js +22 -18
- package/esm/cli/ui/colors.d.ts +0 -1
- package/esm/cli/ui/colors.d.ts.map +1 -1
- package/esm/cli/ui/colors.js +0 -10
- package/esm/cli/ui/dot-matrix.d.ts.map +1 -1
- package/esm/cli/ui/dot-matrix.js +2 -5
- package/esm/cli/ui/tui.js +2 -3
- package/esm/cli/utils/index.js +1 -2
- package/esm/cli/utils/package-manager.d.ts.map +1 -1
- package/esm/cli/utils/package-manager.js +3 -4
- package/esm/deno.d.ts +3 -0
- package/esm/deno.js +22 -19
- package/esm/src/agent/chat-handler.d.ts.map +1 -1
- package/esm/src/agent/chat-handler.js +8 -23
- package/esm/src/agent/factory.d.ts +0 -8
- package/esm/src/agent/factory.d.ts.map +1 -1
- package/esm/src/agent/factory.js +50 -1
- package/esm/src/agent/index.d.ts +16 -1
- package/esm/src/agent/index.d.ts.map +1 -1
- package/esm/src/agent/index.js +16 -1
- package/esm/src/agent/memory/memory.d.ts +2 -2
- package/esm/src/agent/memory/memory.d.ts.map +1 -1
- package/esm/src/agent/memory/memory.js +0 -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.map +1 -1
- package/esm/src/agent/react/use-chat/use-chat.js +15 -9
- package/esm/src/agent/runtime/index.d.ts +18 -0
- package/esm/src/agent/runtime/index.d.ts.map +1 -1
- package/esm/src/agent/runtime/index.js +167 -36
- package/esm/src/agent/runtime/tool-helpers.d.ts +6 -1
- package/esm/src/agent/runtime/tool-helpers.d.ts.map +1 -1
- package/esm/src/agent/runtime/tool-helpers.js +10 -1
- package/esm/src/agent/schemas/agent.schema.d.ts +4 -4
- package/esm/src/agent/types.d.ts +10 -0
- package/esm/src/agent/types.d.ts.map +1 -1
- package/esm/src/ai/registry-manager.d.ts.map +1 -1
- package/esm/src/ai/registry-manager.js +2 -1
- package/esm/src/build/bundler/code-splitter/manifest-builder.d.ts +0 -2
- package/esm/src/build/bundler/code-splitter/manifest-builder.d.ts.map +1 -1
- package/esm/src/build/bundler/code-splitter/manifest-builder.js +1 -1
- package/esm/src/build/compiler/mdx-compiler/validator.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-compiler/validator.js +2 -3
- package/esm/src/build/compiler/mdx-to-js.d.ts +0 -2
- package/esm/src/build/compiler/mdx-to-js.d.ts.map +1 -1
- package/esm/src/build/compiler/mdx-to-js.js +0 -81
- package/esm/src/build/index.d.ts +0 -6
- package/esm/src/build/index.d.ts.map +1 -1
- package/esm/src/build/index.js +0 -1
- package/esm/src/build/production-build/build/route-collector.d.ts.map +1 -1
- package/esm/src/build/production-build/build/route-collector.js +2 -3
- package/esm/src/build/production-build/templates.d.ts +5 -9
- package/esm/src/build/production-build/templates.d.ts.map +1 -1
- package/esm/src/build/production-build/templates.js +6 -18
- package/esm/src/build/vendor-cache.d.ts.map +1 -1
- package/esm/src/build/vendor-cache.js +0 -5
- package/esm/src/cache/tokenizing-gateway.d.ts +0 -2
- package/esm/src/cache/tokenizing-gateway.d.ts.map +1 -1
- package/esm/src/cache/tokenizing-gateway.js +1 -3
- package/esm/src/chat/index.d.ts +2 -2
- package/esm/src/chat/index.d.ts.map +1 -1
- package/esm/src/chat/index.js +1 -1
- package/esm/src/config/define-config.d.ts.map +1 -1
- package/esm/src/config/define-config.js +28 -25
- package/esm/src/config/loader.d.ts.map +1 -1
- package/esm/src/config/loader.js +10 -7
- package/esm/src/config/schemas/config.schema.d.ts +58 -12
- package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
- package/esm/src/config/schemas/config.schema.js +12 -0
- package/esm/src/data/data-fetcher.d.ts +1 -2
- package/esm/src/data/data-fetcher.d.ts.map +1 -1
- package/esm/src/data/data-fetcher.js +14 -15
- package/esm/src/data/server-data-fetcher.d.ts +0 -3
- package/esm/src/data/server-data-fetcher.d.ts.map +1 -1
- package/esm/src/data/server-data-fetcher.js +1 -8
- package/esm/src/data/static-data-fetcher.d.ts +1 -3
- package/esm/src/data/static-data-fetcher.d.ts.map +1 -1
- package/esm/src/data/static-data-fetcher.js +1 -3
- package/esm/src/discovery/discovery-engine.d.ts.map +1 -1
- package/esm/src/discovery/discovery-engine.js +19 -1
- package/esm/src/discovery/discovery-utils.d.ts +0 -4
- package/esm/src/discovery/discovery-utils.d.ts.map +1 -1
- package/esm/src/discovery/discovery-utils.js +0 -6
- package/esm/src/discovery/file-discovery.d.ts +3 -1
- package/esm/src/discovery/file-discovery.d.ts.map +1 -1
- package/esm/src/discovery/file-discovery.js +3 -8
- package/esm/src/discovery/handlers/index.d.ts +1 -0
- package/esm/src/discovery/handlers/index.d.ts.map +1 -1
- package/esm/src/discovery/handlers/index.js +1 -0
- package/esm/src/discovery/handlers/skill-handler.d.ts +26 -0
- package/esm/src/discovery/handlers/skill-handler.d.ts.map +1 -0
- package/esm/src/discovery/handlers/skill-handler.js +87 -0
- package/esm/src/discovery/handlers/task-handler.d.ts.map +1 -1
- package/esm/src/discovery/handlers/task-handler.js +1 -5
- package/esm/src/discovery/transpiler.d.ts.map +1 -1
- package/esm/src/discovery/transpiler.js +7 -4
- package/esm/src/discovery/types.d.ts +3 -0
- package/esm/src/discovery/types.d.ts.map +1 -1
- package/esm/src/embedding/resolve.d.ts.map +1 -1
- package/esm/src/embedding/resolve.js +1 -3
- package/esm/src/embedding/upload-handler.d.ts.map +1 -1
- package/esm/src/embedding/upload-handler.js +4 -3
- package/esm/src/embedding/upload-store.js +4 -4
- package/esm/src/errors/error-registry.d.ts +2 -1
- package/esm/src/errors/error-registry.d.ts.map +1 -1
- package/esm/src/errors/http-error.d.ts +1 -2
- package/esm/src/errors/http-error.d.ts.map +1 -1
- package/esm/src/errors/http-error.js +2 -2
- package/esm/src/errors/middleware/cli-error-boundary.d.ts.map +1 -1
- package/esm/src/errors/middleware/cli-error-boundary.js +13 -2
- package/esm/src/errors/middleware/wrap-unknown.d.ts +0 -7
- package/esm/src/errors/middleware/wrap-unknown.d.ts.map +1 -1
- package/esm/src/errors/middleware/wrap-unknown.js +0 -9
- package/esm/src/errors/veryfront-error.d.ts +0 -3
- package/esm/src/errors/veryfront-error.d.ts.map +1 -1
- package/esm/src/errors/veryfront-error.js +0 -5
- package/esm/src/html/schemas/html.schema.d.ts +2 -2
- package/esm/src/html/styles-builder/css-hash-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/css-hash-cache.js +1 -2
- package/esm/src/html/styles-builder/plugin-loader.d.ts.map +1 -1
- package/esm/src/html/styles-builder/plugin-loader.js +50 -21
- package/esm/src/html/styles-builder/tailwind-compiler-cache.d.ts.map +1 -1
- package/esm/src/html/styles-builder/tailwind-compiler-cache.js +12 -4
- package/esm/src/html/utils.d.ts +0 -7
- package/esm/src/html/utils.d.ts.map +1 -1
- package/esm/src/html/utils.js +0 -25
- package/esm/src/modules/component-registry/registry.d.ts +0 -3
- package/esm/src/modules/component-registry/registry.d.ts.map +1 -1
- package/esm/src/modules/component-registry/registry.js +0 -3
- package/esm/src/oauth/handlers/callback-handler.d.ts +2 -0
- package/esm/src/oauth/handlers/callback-handler.d.ts.map +1 -1
- package/esm/src/oauth/handlers/callback-handler.js +10 -4
- package/esm/src/oauth/providers/common.d.ts.map +1 -1
- package/esm/src/oauth/providers/common.js +0 -23
- package/esm/src/observability/auto-instrument/react-instrumentation.js +2 -1
- package/esm/src/observability/instruments/instruments-factory.d.ts +1 -1
- package/esm/src/observability/instruments/instruments-factory.d.ts.map +1 -1
- package/esm/src/observability/instruments/instruments-factory.js +5 -4
- package/esm/src/observability/metrics/config.js +5 -4
- package/esm/src/observability/metrics/manager.js +1 -1
- package/esm/src/observability/tracing/span-operations.d.ts.map +1 -1
- package/esm/src/observability/tracing/span-operations.js +14 -8
- package/esm/src/platform/compat/console/node.d.ts +0 -1
- package/esm/src/platform/compat/console/node.d.ts.map +1 -1
- package/esm/src/platform/compat/console/node.js +4 -11
- package/esm/src/platform/compat/fs.d.ts.map +1 -1
- package/esm/src/platform/compat/fs.js +4 -2
- package/esm/src/platform/compat/opaque-deps.d.ts +4 -2
- package/esm/src/platform/compat/opaque-deps.d.ts.map +1 -1
- package/esm/src/platform/compat/opaque-deps.js +1 -1
- package/esm/src/platform/compat/path/basic-operations.d.ts.map +1 -1
- package/esm/src/platform/compat/path/basic-operations.js +8 -7
- package/esm/src/platform/compat/path/resolution.d.ts.map +1 -1
- package/esm/src/platform/compat/path/resolution.js +15 -10
- package/esm/src/platform/compat/path/url-conversion.d.ts.map +1 -1
- package/esm/src/platform/compat/path/url-conversion.js +3 -2
- package/esm/src/platform/compat/process.d.ts +2 -14
- package/esm/src/platform/compat/process.d.ts.map +1 -1
- package/esm/src/platform/compat/process.js +92 -70
- package/esm/src/provider/index.d.ts +1 -1
- package/esm/src/provider/index.d.ts.map +1 -1
- package/esm/src/provider/index.js +1 -1
- package/esm/src/provider/local/ai-sdk-adapter.d.ts.map +1 -1
- package/esm/src/provider/local/ai-sdk-adapter.js +18 -18
- package/esm/src/provider/local/env.d.ts.map +1 -1
- package/esm/src/provider/local/env.js +2 -1
- package/esm/src/provider/model-registry.d.ts +10 -0
- package/esm/src/provider/model-registry.d.ts.map +1 -1
- package/esm/src/provider/model-registry.js +43 -0
- package/esm/src/proxy/retry.d.ts +3 -3
- package/esm/src/proxy/retry.d.ts.map +1 -1
- package/esm/src/proxy/retry.js +0 -7
- package/esm/src/proxy/tracing.d.ts +1 -5
- package/esm/src/proxy/tracing.d.ts.map +1 -1
- package/esm/src/proxy/tracing.js +1 -7
- package/esm/src/react/components/ai/chat/components/code-block.js +1 -1
- package/esm/src/react/components/ai/chat/components/skill-badge.d.ts +12 -0
- package/esm/src/react/components/ai/chat/components/skill-badge.d.ts.map +1 -0
- package/esm/src/react/components/ai/chat/components/skill-badge.js +34 -0
- package/esm/src/react/components/ai/chat/components/step-indicator.js +4 -4
- package/esm/src/react/components/ai/chat/composition/chat-message-list.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/composition/chat-message-list.js +8 -2
- package/esm/src/react/components/ai/chat/composition/message.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/composition/message.js +8 -2
- package/esm/src/react/components/ai/chat/index.d.ts +4 -1
- package/esm/src/react/components/ai/chat/index.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/index.js +4 -3
- package/esm/src/react/components/ai/chat/utils/message-parts.d.ts +2 -0
- package/esm/src/react/components/ai/chat/utils/message-parts.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat/utils/message-parts.js +9 -0
- package/esm/src/react/components/ai/chat-with-sidebar.d.ts +1 -0
- package/esm/src/react/components/ai/chat-with-sidebar.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat-with-sidebar.js +1 -0
- package/esm/src/react/components/ai/chat.d.ts +1 -1
- package/esm/src/react/components/ai/chat.d.ts.map +1 -1
- package/esm/src/react/components/ai/chat.js +1 -1
- package/esm/src/rendering/cache/index.d.ts +1 -5
- package/esm/src/rendering/cache/index.d.ts.map +1 -1
- package/esm/src/rendering/cache/index.js +1 -5
- package/esm/src/rendering/orchestrator/pipeline.d.ts +11 -2
- package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
- package/esm/src/rendering/shared/context-aware-cache.d.ts.map +1 -1
- package/esm/src/rendering/shared/context-aware-cache.js +0 -4
- package/esm/src/repositories/schemas/index.d.ts +1 -1
- package/esm/src/repositories/schemas/index.d.ts.map +1 -1
- package/esm/src/repositories/schemas/index.js +1 -1
- package/esm/src/repositories/schemas/repository.schema.d.ts +0 -11
- package/esm/src/repositories/schemas/repository.schema.d.ts.map +1 -1
- package/esm/src/repositories/schemas/repository.schema.js +0 -13
- package/esm/src/repositories/types.d.ts +1 -1
- package/esm/src/repositories/types.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/loader.d.ts.map +1 -1
- package/esm/src/routing/api/module-loader/loader.js +63 -7
- package/esm/src/routing/api/openapi/path-utils.d.ts +0 -19
- package/esm/src/routing/api/openapi/path-utils.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/path-utils.js +0 -34
- package/esm/src/routing/api/openapi/spec-generator.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/spec-generator.js +1 -19
- package/esm/src/routing/api/openapi/types.d.ts +1 -0
- package/esm/src/routing/api/openapi/types.d.ts.map +1 -1
- package/esm/src/routing/api/openapi/types.js +18 -0
- package/esm/src/sandbox/sandbox.d.ts +1 -0
- package/esm/src/sandbox/sandbox.d.ts.map +1 -1
- package/esm/src/sandbox/sandbox.js +7 -8
- package/esm/src/security/http/cors/constants.d.ts +0 -2
- package/esm/src/security/http/cors/constants.d.ts.map +1 -1
- package/esm/src/security/http/cors/constants.js +0 -2
- package/esm/src/security/http/response/index.d.ts +3 -4
- package/esm/src/security/http/response/index.d.ts.map +1 -1
- package/esm/src/security/http/response/index.js +2 -3
- package/esm/src/server/context/enriched-context.d.ts +0 -8
- package/esm/src/server/context/enriched-context.d.ts.map +1 -1
- package/esm/src/server/context/enriched-context.js +1 -12
- package/esm/src/server/dev-server/server.d.ts.map +1 -1
- package/esm/src/server/dev-server/server.js +11 -4
- package/esm/src/server/dev-ui/manifest.d.ts +20 -20
- package/esm/src/server/dev-ui/manifest.js +20 -20
- package/esm/src/server/handlers/dev/framework-candidates.generated.d.ts.map +1 -1
- package/esm/src/server/handlers/dev/framework-candidates.generated.js +426 -179
- package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
- package/esm/src/server/runtime-handler/index.js +14 -24
- package/esm/src/server/shared/renderer/memory/pressure.d.ts +0 -7
- package/esm/src/server/shared/renderer/memory/pressure.d.ts.map +1 -1
- package/esm/src/server/shared/renderer/memory/pressure.js +1 -13
- package/esm/src/server/utils/domain-lookup.d.ts +0 -4
- package/esm/src/server/utils/domain-lookup.d.ts.map +1 -1
- package/esm/src/server/utils/domain-lookup.js +0 -3
- package/esm/src/skill/allowed-tools.d.ts +54 -0
- package/esm/src/skill/allowed-tools.d.ts.map +1 -0
- package/esm/src/skill/allowed-tools.js +87 -0
- package/esm/src/skill/executor.d.ts +28 -0
- package/esm/src/skill/executor.d.ts.map +1 -0
- package/esm/src/skill/executor.js +187 -0
- package/esm/src/skill/index.d.ts +19 -0
- package/esm/src/skill/index.d.ts.map +1 -0
- package/esm/src/skill/index.js +24 -0
- package/esm/src/skill/parser.d.ts +30 -0
- package/esm/src/skill/parser.d.ts.map +1 -0
- package/esm/src/skill/parser.js +162 -0
- package/esm/src/skill/path-safety.d.ts +22 -0
- package/esm/src/skill/path-safety.d.ts.map +1 -0
- package/esm/src/skill/path-safety.js +156 -0
- package/esm/src/skill/prompt-augmentation.d.ts +19 -0
- package/esm/src/skill/prompt-augmentation.d.ts.map +1 -0
- package/esm/src/skill/prompt-augmentation.js +36 -0
- package/esm/src/skill/registry.d.ts +25 -0
- package/esm/src/skill/registry.d.ts.map +1 -0
- package/esm/src/skill/registry.js +42 -0
- package/esm/src/skill/tools.d.ts +27 -0
- package/esm/src/skill/tools.d.ts.map +1 -0
- package/esm/src/skill/tools.js +149 -0
- package/esm/src/skill/types.d.ts +85 -0
- package/esm/src/skill/types.d.ts.map +1 -0
- package/esm/src/skill/types.js +27 -0
- package/esm/src/studio/bridge/bridge-bundle.generated.d.ts +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.d.ts.map +1 -1
- package/esm/src/studio/bridge/bridge-bundle.generated.js +1 -1
- package/esm/src/studio/element-selector-injector.d.ts +0 -2
- package/esm/src/studio/element-selector-injector.d.ts.map +1 -1
- package/esm/src/task/runner.d.ts +6 -0
- package/esm/src/task/runner.d.ts.map +1 -1
- package/esm/src/task/runner.js +8 -8
- package/esm/src/tool/factory.js +31 -39
- package/esm/src/transforms/esm/http-cache-helpers.d.ts +0 -8
- package/esm/src/transforms/esm/http-cache-helpers.d.ts.map +1 -1
- package/esm/src/transforms/esm/http-cache-helpers.js +0 -20
- package/esm/src/transforms/esm/path-resolver.d.ts +0 -14
- package/esm/src/transforms/esm/path-resolver.d.ts.map +1 -1
- package/esm/src/transforms/esm/path-resolver.js +1 -92
- package/esm/src/transforms/esm/source-url-embed.d.ts +0 -14
- package/esm/src/transforms/esm/source-url-embed.d.ts.map +1 -1
- package/esm/src/transforms/esm/source-url-embed.js +0 -47
- package/esm/src/transforms/esm/transform-cache.d.ts.map +1 -1
- package/esm/src/transforms/esm/transform-cache.js +2 -6
- package/esm/src/transforms/mdx/index.d.ts +0 -1
- package/esm/src/transforms/mdx/index.d.ts.map +1 -1
- package/esm/src/transforms/mdx/index.js +0 -4
- package/esm/src/transforms/pipeline/context.d.ts +0 -1
- package/esm/src/transforms/pipeline/context.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/context.js +0 -1
- package/esm/src/transforms/pipeline/index.d.ts +1 -2
- package/esm/src/transforms/pipeline/index.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/index.js +0 -3
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.d.ts.map +1 -1
- package/esm/src/transforms/pipeline/stages/ssr-http-cache.js +0 -1
- package/esm/src/types/entities/getEntityInfo.js +1 -1
- package/esm/src/types/index.d.ts +2 -13
- package/esm/src/types/index.d.ts.map +1 -1
- package/esm/src/types/server.d.ts +2 -1
- package/esm/src/types/server.d.ts.map +1 -1
- package/esm/src/utils/cache-file-ops.d.ts +1 -1
- package/esm/src/utils/cache-file-ops.d.ts.map +1 -1
- package/esm/src/utils/cache-file-ops.js +5 -6
- package/esm/src/utils/lru-wrapper.d.ts.map +1 -1
- package/esm/src/utils/lru-wrapper.js +2 -4
- package/esm/src/workflow/claude-code/event-publisher.d.ts +0 -4
- package/esm/src/workflow/claude-code/event-publisher.d.ts.map +1 -1
- package/esm/src/workflow/claude-code/event-publisher.js +2 -6
- package/esm/src/workflow/executor/workflow-executor.d.ts.map +1 -1
- package/esm/src/workflow/executor/workflow-executor.js +6 -1
- package/esm/src/workflow/react/use-workflow-list.d.ts.map +1 -1
- package/esm/src/workflow/react/use-workflow-list.js +2 -1
- package/esm/src/workflow/schemas/workflow.schema.d.ts +8 -8
- package/package.json +1 -2
- package/src/cli/app/components/inline-input.ts +0 -5
- package/src/cli/app/components/list-select.ts +0 -21
- package/src/cli/app/operations/project-creation.ts +4 -109
- package/src/cli/app/shell.ts +1 -1
- package/src/cli/app/utils.ts +0 -22
- package/src/cli/app/views/dashboard.ts +0 -17
- package/src/cli/app/views/startup.ts +0 -13
- package/src/cli/auth/login.ts +1 -2
- package/src/cli/auth/token-store.ts +1 -1
- package/src/cli/auth/utils.ts +2 -1
- package/src/cli/commands/generate/integration-generator.ts +1 -1
- package/src/cli/help/formatters.ts +11 -4
- package/src/cli/help/main-help.ts +2 -3
- package/src/cli/mcp/server.ts +2 -5
- package/src/cli/mcp/tools/dev-tools.ts +1 -2
- package/src/cli/mcp/tools.ts +8 -2
- package/src/cli/shared/reserve-slug.ts +1 -4
- package/src/cli/sync/ignore.ts +26 -21
- package/src/cli/ui/colors.ts +0 -12
- package/src/cli/ui/dot-matrix.ts +3 -6
- package/src/cli/ui/tui.ts +3 -3
- package/src/cli/utils/index.ts +1 -1
- package/src/cli/utils/package-manager.ts +3 -4
- package/src/deno.js +22 -19
- package/src/src/agent/chat-handler.ts +8 -23
- package/src/src/agent/factory.ts +58 -9
- package/src/src/agent/index.ts +16 -1
- package/src/src/agent/memory/memory.ts +0 -9
- package/src/src/agent/react/use-chat/types.ts +2 -0
- package/src/src/agent/react/use-chat/use-chat.ts +15 -9
- package/src/src/agent/runtime/index.ts +213 -35
- package/src/src/agent/runtime/tool-helpers.ts +9 -0
- package/src/src/agent/types.ts +10 -0
- package/src/src/ai/registry-manager.ts +2 -1
- package/src/src/build/bundler/code-splitter/manifest-builder.ts +1 -1
- package/src/src/build/compiler/mdx-compiler/validator.ts +3 -7
- package/src/src/build/compiler/mdx-to-js.ts +0 -101
- package/src/src/build/index.ts +0 -8
- package/src/src/build/production-build/build/route-collector.ts +2 -4
- package/src/src/build/production-build/templates.ts +9 -18
- package/src/src/build/vendor-cache.ts +0 -6
- package/src/src/cache/tokenizing-gateway.ts +1 -9
- package/src/src/chat/index.ts +3 -0
- package/src/src/config/define-config.ts +30 -29
- package/src/src/config/loader.ts +10 -9
- package/src/src/config/schemas/config.schema.ts +12 -0
- package/src/src/data/data-fetcher.ts +15 -21
- package/src/src/data/server-data-fetcher.ts +1 -8
- package/src/src/data/static-data-fetcher.ts +1 -6
- package/src/src/discovery/discovery-engine.ts +27 -0
- package/src/src/discovery/discovery-utils.ts +0 -7
- package/src/src/discovery/file-discovery.ts +3 -9
- package/src/src/discovery/handlers/index.ts +1 -0
- package/src/src/discovery/handlers/skill-handler.ts +123 -0
- package/src/src/discovery/handlers/task-handler.ts +1 -5
- package/src/src/discovery/transpiler.ts +7 -4
- package/src/src/discovery/types.ts +3 -0
- package/src/src/embedding/resolve.ts +1 -3
- package/src/src/embedding/upload-handler.ts +7 -3
- package/src/src/embedding/upload-store.ts +4 -4
- package/src/src/errors/error-registry.ts +2 -2
- package/src/src/errors/http-error.ts +7 -3
- package/src/src/errors/middleware/cli-error-boundary.ts +28 -2
- package/src/src/errors/middleware/wrap-unknown.ts +0 -10
- package/src/src/errors/veryfront-error.ts +0 -9
- package/src/src/html/styles-builder/css-hash-cache.ts +5 -2
- package/src/src/html/styles-builder/plugin-loader.ts +58 -21
- package/src/src/html/styles-builder/tailwind-compiler-cache.ts +11 -4
- package/src/src/html/utils.ts +0 -33
- package/src/src/modules/component-registry/registry.ts +0 -3
- package/src/src/modules/server/websocket-handler.ts +1 -1
- package/src/src/oauth/handlers/callback-handler.ts +17 -5
- package/src/src/oauth/providers/base.ts +3 -3
- package/src/src/oauth/providers/common.ts +0 -23
- package/src/src/observability/auto-instrument/react-instrumentation.ts +2 -2
- package/src/src/observability/instruments/instruments-factory.ts +6 -6
- package/src/src/observability/metrics/config.ts +5 -5
- package/src/src/observability/metrics/manager.ts +1 -1
- package/src/src/observability/tracing/span-operations.ts +14 -9
- package/src/src/platform/compat/console/node.ts +4 -14
- package/src/src/platform/compat/fs.ts +14 -3
- package/src/src/platform/compat/opaque-deps.ts +10 -5
- package/src/src/platform/compat/path/basic-operations.ts +9 -7
- package/src/src/platform/compat/path/resolution.ts +15 -8
- package/src/src/platform/compat/path/url-conversion.ts +10 -6
- package/src/src/platform/compat/process.ts +133 -76
- package/src/src/provider/index.ts +1 -0
- package/src/src/provider/local/ai-sdk-adapter.ts +40 -37
- package/src/src/provider/local/env.ts +4 -1
- package/src/src/provider/model-registry.ts +47 -0
- package/src/src/proxy/retry.ts +0 -9
- package/src/src/proxy/tracing.ts +1 -9
- package/src/src/react/components/ai/chat/components/code-block.tsx +1 -1
- package/src/src/react/components/ai/chat/components/skill-badge.tsx +51 -0
- package/src/src/react/components/ai/chat/components/step-indicator.tsx +4 -4
- package/src/src/react/components/ai/chat/composition/chat-message-list.tsx +9 -2
- package/src/src/react/components/ai/chat/composition/message.tsx +9 -2
- package/src/src/react/components/ai/chat/index.tsx +6 -1
- package/src/src/react/components/ai/chat/utils/message-parts.ts +11 -0
- package/src/src/react/components/ai/chat-with-sidebar.tsx +2 -0
- package/src/src/react/components/ai/chat.tsx +3 -0
- package/src/src/rendering/cache/index.ts +12 -5
- package/src/src/rendering/orchestrator/pipeline.ts +12 -2
- package/src/src/rendering/renderer.ts +1 -1
- package/src/src/rendering/shared/context-aware-cache.ts +0 -5
- package/src/src/repositories/schemas/index.ts +0 -2
- package/src/src/repositories/schemas/repository.schema.ts +0 -15
- package/src/src/repositories/types.ts +1 -6
- package/src/src/routing/api/module-loader/loader.ts +88 -3
- package/src/src/routing/api/openapi/path-utils.ts +0 -39
- package/src/src/routing/api/openapi/spec-generator.ts +1 -20
- package/src/src/routing/api/openapi/types.ts +20 -0
- package/src/src/sandbox/sandbox.ts +8 -8
- package/src/src/security/http/cors/constants.ts +0 -4
- package/src/src/security/http/response/index.ts +3 -9
- package/src/src/server/context/enriched-context.ts +1 -19
- package/src/src/server/dev-server/server.ts +11 -4
- package/src/src/server/dev-ui/manifest.js +20 -20
- package/src/src/server/handlers/dev/framework-candidates.generated.ts +426 -179
- package/src/src/server/runtime-handler/index.ts +17 -28
- package/src/src/server/shared/renderer/memory/pressure.ts +2 -15
- package/src/src/server/utils/domain-lookup.ts +0 -4
- package/src/src/skill/allowed-tools.ts +107 -0
- package/src/src/skill/executor.ts +215 -0
- package/src/src/skill/index.ts +60 -0
- package/src/src/skill/parser.ts +214 -0
- package/src/src/skill/path-safety.ts +203 -0
- package/src/src/skill/prompt-augmentation.ts +48 -0
- package/src/src/skill/registry.ts +51 -0
- package/src/src/skill/tools.ts +197 -0
- package/src/src/skill/types.ts +107 -0
- package/src/src/studio/bridge/bridge-bundle.generated.ts +1 -1
- package/src/src/studio/element-selector-injector.ts +0 -2
- package/src/src/task/runner.ts +10 -8
- package/src/src/tool/factory.ts +54 -54
- package/src/src/transforms/esm/http-cache-helpers.ts +0 -20
- package/src/src/transforms/esm/path-resolver.ts +1 -140
- package/src/src/transforms/esm/source-url-embed.ts +0 -53
- package/src/src/transforms/esm/transform-cache.ts +3 -7
- package/src/src/transforms/mdx/index.ts +0 -5
- package/src/src/transforms/pipeline/context.ts +0 -2
- package/src/src/transforms/pipeline/index.ts +0 -4
- package/src/src/transforms/pipeline/stages/ssr-http-cache.ts +0 -1
- package/src/src/types/entities/getEntityInfo.ts +1 -1
- package/src/src/types/index.ts +1 -20
- package/src/src/types/server.ts +1 -1
- package/src/src/utils/cache-file-ops.ts +5 -5
- package/src/src/utils/lru-wrapper.ts +2 -8
- package/src/src/workflow/claude-code/event-publisher.ts +13 -4
- package/src/src/workflow/executor/workflow-executor.ts +7 -2
- package/src/src/workflow/react/use-workflow-list.ts +3 -2
- package/esm/src/transforms/mdx/parser.d.ts +0 -4
- package/esm/src/transforms/mdx/parser.d.ts.map +0 -1
- package/esm/src/transforms/mdx/parser.js +0 -49
- package/src/src/transforms/mdx/parser.ts +0 -65
|
@@ -9,13 +9,11 @@ import * as dntShim from "../../_dnt.shims.js";
|
|
|
9
9
|
import { getEnvironmentConfig } from "../../src/config/index.js";
|
|
10
10
|
import { capitalizeSeparatedWords } from "../../src/utils/case-utils.js";
|
|
11
11
|
import { randomSuffix } from "./slug.js";
|
|
12
|
+
import { getApiUrl } from "./constants.js";
|
|
12
13
|
function slugToName(slug) {
|
|
13
14
|
return capitalizeSeparatedWords(slug, "-", " ");
|
|
14
15
|
}
|
|
15
16
|
const MAX_SLUG_ATTEMPTS = 10;
|
|
16
|
-
function getApiUrl(env = getEnvironmentConfig()) {
|
|
17
|
-
return env.apiUrl ?? "https://api.veryfront.com";
|
|
18
|
-
}
|
|
19
17
|
export async function reserveProjectSlug(slug, token, env = getEnvironmentConfig()) {
|
|
20
18
|
const name = slugToName(slug);
|
|
21
19
|
let currentSlug = slug;
|
package/esm/cli/sync/ignore.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function loadIgnorePatterns(projectPath: string): Promise<string[
|
|
|
14
14
|
/**
|
|
15
15
|
* Create an ignore checker with loaded patterns
|
|
16
16
|
*/
|
|
17
|
-
export declare function createIgnoreChecker(patterns: string[]): IgnoreChecker;
|
|
17
|
+
export declare function createIgnoreChecker(patterns: readonly string[]): IgnoreChecker;
|
|
18
18
|
/**
|
|
19
19
|
* Create default ignore checker (without loading .vfignore)
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../../src/cli/sync/ignore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyDH,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC,6CAA6C;IAC7C,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB/E;
|
|
1
|
+
{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../../src/cli/sync/ignore.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyDH,MAAM,WAAW,aAAa;IAC5B,wCAAwC;IACxC,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAEzC,6CAA6C;IAC7C,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoB/E;AA2BD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,CAe9E;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,aAAa,CAE1D"}
|
package/esm/cli/sync/ignore.js
CHANGED
|
@@ -74,22 +74,32 @@ export async function loadIgnorePatterns(projectPath) {
|
|
|
74
74
|
}
|
|
75
75
|
return patterns;
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Escape special regex characters
|
|
79
|
+
*/
|
|
80
|
+
function escapeRegex(str) {
|
|
81
|
+
return str.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Convert a single ignore pattern to a RegExp
|
|
85
|
+
*/
|
|
86
|
+
function patternToRegex(pattern) {
|
|
87
|
+
if (pattern.endsWith("/")) {
|
|
88
|
+
const dirName = pattern.slice(0, -1);
|
|
89
|
+
return new RegExp(`(^|/)${escapeRegex(dirName)}(/|$)`);
|
|
90
|
+
}
|
|
91
|
+
const regex = escapeRegex(pattern)
|
|
92
|
+
.replace(/\\\*/g, ".*") // * matches anything
|
|
93
|
+
.replace(/\\\?/g, "."); // ? matches single char
|
|
94
|
+
if (pattern.startsWith("*"))
|
|
95
|
+
return new RegExp(`(^|/)${regex}$`);
|
|
96
|
+
return new RegExp(`(^|/)${regex}(/|$)`);
|
|
97
|
+
}
|
|
77
98
|
/**
|
|
78
99
|
* Create an ignore checker with loaded patterns
|
|
79
100
|
*/
|
|
80
101
|
export function createIgnoreChecker(patterns) {
|
|
81
|
-
const regexPatterns = patterns.map(
|
|
82
|
-
if (pattern.endsWith("/")) {
|
|
83
|
-
const dirName = pattern.slice(0, -1);
|
|
84
|
-
return new RegExp(`(^|/)${escapeRegex(dirName)}(/|$)`);
|
|
85
|
-
}
|
|
86
|
-
const regex = escapeRegex(pattern)
|
|
87
|
-
.replace(/\\\*/g, ".*") // * matches anything
|
|
88
|
-
.replace(/\\\?/g, "."); // ? matches single char
|
|
89
|
-
if (pattern.startsWith("*"))
|
|
90
|
-
return new RegExp(`(^|/)${regex}$`);
|
|
91
|
-
return new RegExp(`(^|/)${regex}(/|$)`);
|
|
92
|
-
});
|
|
102
|
+
const regexPatterns = patterns.map(patternToRegex);
|
|
93
103
|
function isIgnored(relativePath) {
|
|
94
104
|
const normalizedPath = relativePath.replace(/\\/g, "/");
|
|
95
105
|
return regexPatterns.some((regex) => regex.test(normalizedPath));
|
|
@@ -102,12 +112,6 @@ export function createIgnoreChecker(patterns) {
|
|
|
102
112
|
}
|
|
103
113
|
return { isIgnored, isSupportedExtension };
|
|
104
114
|
}
|
|
105
|
-
/**
|
|
106
|
-
* Escape special regex characters
|
|
107
|
-
*/
|
|
108
|
-
function escapeRegex(str) {
|
|
109
|
-
return str.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
110
|
-
}
|
|
111
115
|
/**
|
|
112
116
|
* Create default ignore checker (without loading .vfignore)
|
|
113
117
|
*/
|
package/esm/cli/ui/colors.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export declare const brandBold: (text: string) => string;
|
|
|
34
34
|
export declare const successBold: (text: string) => string;
|
|
35
35
|
export declare const errorBold: (text: string) => string;
|
|
36
36
|
export { RESET as reset };
|
|
37
|
-
export declare function animatedMatrix(frame: number): string;
|
|
38
37
|
/**
|
|
39
38
|
* Apply shimmer effect to text - creates a wave of brightness moving across
|
|
40
39
|
* @param text The text to shimmer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAqC7D,wBAAgB,aAAa,IAAI,UAAU,CAG1C;AAED,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAuCD,wBAAgB,eAAe,IAAI,IAAI,CAKtC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAEhE;AA4DD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAUD,eAAO,MAAM,KAAK,SARoC,MAAM,KAAK,MAQ3B,CAAC;AACvC,eAAO,MAAM,OAAO,SALoC,MAAM,KAAK,MAKzB,CAAC;AAE3C,eAAO,MAAM,OAAO,SAXkC,MAAM,KAAK,MAW1B,CAAC;AACxC,eAAO,MAAM,KAAK,SAZoC,MAAM,KAAK,MAY5B,CAAC;AACtC,eAAO,MAAM,OAAO,SAbkC,MAAM,KAAK,MAa1B,CAAC;AACxC,eAAO,MAAM,KAAK,SAdoC,MAAM,KAAK,MAc1B,CAAC;AACxC,eAAO,MAAM,IAAI,SAfqC,MAAM,KAAK,MAe5B,CAAC;AACtC,eAAO,MAAM,KAAK,SAhBoC,MAAM,KAAK,MAgBrC,CAAC;AAC7B,eAAO,MAAM,MAAM,SAjBmC,MAAM,KAAK,MAiBpC,CAAC;AAC9B,eAAO,MAAM,GAAG,SAlBsC,MAAM,KAAK,MAkBzC,CAAC;AAEzB,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,WAA+B,CAAC;AACjE,eAAO,MAAM,GAAG,GAAI,MAAM,MAAM,WAA+B,CAAC;AAChE,eAAO,MAAM,MAAM,GAAI,MAAM,MAAM,WAA+B,CAAC;AACnE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAA+B,CAAC;AAEtE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAC7D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAAwB,CAAC;AACjE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAE7D,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC;AAqC7D,wBAAgB,aAAa,IAAI,UAAU,CAG1C;AAED,wBAAgB,cAAc,IAAI,OAAO,CAExC;AAuCD,wBAAgB,eAAe,IAAI,IAAI,CAKtC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI,CAEhE;AA4DD,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGzD;AAUD,eAAO,MAAM,KAAK,SARoC,MAAM,KAAK,MAQ3B,CAAC;AACvC,eAAO,MAAM,OAAO,SALoC,MAAM,KAAK,MAKzB,CAAC;AAE3C,eAAO,MAAM,OAAO,SAXkC,MAAM,KAAK,MAW1B,CAAC;AACxC,eAAO,MAAM,KAAK,SAZoC,MAAM,KAAK,MAY5B,CAAC;AACtC,eAAO,MAAM,OAAO,SAbkC,MAAM,KAAK,MAa1B,CAAC;AACxC,eAAO,MAAM,KAAK,SAdoC,MAAM,KAAK,MAc1B,CAAC;AACxC,eAAO,MAAM,IAAI,SAfqC,MAAM,KAAK,MAe5B,CAAC;AACtC,eAAO,MAAM,KAAK,SAhBoC,MAAM,KAAK,MAgBrC,CAAC;AAC7B,eAAO,MAAM,MAAM,SAjBmC,MAAM,KAAK,MAiBpC,CAAC;AAC9B,eAAO,MAAM,GAAG,SAlBsC,MAAM,KAAK,MAkBzC,CAAC;AAEzB,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,WAA+B,CAAC;AACjE,eAAO,MAAM,GAAG,GAAI,MAAM,MAAM,WAA+B,CAAC;AAChE,eAAO,MAAM,MAAM,GAAI,MAAM,MAAM,WAA+B,CAAC;AACnE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAA+B,CAAC;AAEtE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAC7D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,WAAwB,CAAC;AACjE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,WAAsB,CAAC;AAE7D,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;AAE1B;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,SAAI,GAAG,MAAM,CAuB1E"}
|
package/esm/cli/ui/colors.js
CHANGED
|
@@ -179,16 +179,6 @@ export const brandBold = (text) => bold(brand(text));
|
|
|
179
179
|
export const successBold = (text) => bold(success(text));
|
|
180
180
|
export const errorBold = (text) => bold(error(text));
|
|
181
181
|
export { RESET as reset };
|
|
182
|
-
const MATRIX_STATES = [
|
|
183
|
-
["●", "○", "○"],
|
|
184
|
-
["○", "●", "○"],
|
|
185
|
-
["○", "○", "●"],
|
|
186
|
-
["○", "●", "○"],
|
|
187
|
-
];
|
|
188
|
-
export function animatedMatrix(frame) {
|
|
189
|
-
const state = MATRIX_STATES[frame % MATRIX_STATES.length] ?? ["●", "○", "○"];
|
|
190
|
-
return state.map((dot) => (dot === "●" ? brand(dot) : muted(dot))).join("");
|
|
191
|
-
}
|
|
192
182
|
/**
|
|
193
183
|
* Apply shimmer effect to text - creates a wave of brightness moving across
|
|
194
184
|
* @param text The text to shimmer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dot-matrix.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/dot-matrix.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dot-matrix.d.ts","sourceRoot":"","sources":["../../../src/cli/ui/dot-matrix.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,EAAE,MAAM,EAAE,EAQhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAiB9C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAoGD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAE3F;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,SAAI,GAAG,MAAM,EAAE,EAAE,CAWnF;AAED,wBAAgB,qBAAqB,CAAC,UAAU,SAAI,GAAG,MAAM,EAAE,EAAE,EAAE,CAElE;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAEnE;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAEhG;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EAAE,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,MAAM,CAER;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,UAAU,CAAuD;IACzE,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAe;gBAExB,OAAO,GAAE,gBAAqB;IAM1C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,MAAM,IAAI,MAAM;IAIhB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM;IAI3C,SAAS,IAAI,MAAM;IAInB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;IAIrB,YAAY,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,UAAU,SAAK,GAAG,IAAI;IAerE,oBAAoB,CAClB,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAChC,UAAU,SAAK,GACd,IAAI;IAeP,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,UAAU,SAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B5F,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAChC,UAAU,SAAK,GACd,OAAO,CAAC,IAAI,CAAC;IA2BhB,WAAW,IAAI,IAAI;IAInB,IAAI,IAAI,IAAI;IAMZ,KAAK,IAAI,IAAI;IAIb,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI;CAGtC;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAEjF;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
package/esm/cli/ui/dot-matrix.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Used for the Veryfront logo in CLI experiences.
|
|
6
6
|
******************/
|
|
7
7
|
import * as dntShim from "../../_dnt.shims.js";
|
|
8
|
+
import { RESET } from "./ansi.js";
|
|
8
9
|
export const AGENT_FACE = [
|
|
9
10
|
[0, 0, 0, 0, 0, 0, 0],
|
|
10
11
|
[0, 1, 1, 1, 0, 0, 0],
|
|
@@ -46,7 +47,6 @@ const COMPACT_OPTIONS = {
|
|
|
46
47
|
offChar: "·",
|
|
47
48
|
spacing: " ",
|
|
48
49
|
};
|
|
49
|
-
const RESET = "\x1b[0m";
|
|
50
50
|
const SPIN_COLORS = {
|
|
51
51
|
bright: "\x1b[38;2;255;165;120m",
|
|
52
52
|
orange: "\x1b[38;2;252;143;93m",
|
|
@@ -241,9 +241,7 @@ export class AnimatedDotMatrix {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
stopSpinner() {
|
|
244
|
-
this.
|
|
245
|
-
this.clearInterval();
|
|
246
|
-
this.pattern = AGENT_FACE;
|
|
244
|
+
this.stop();
|
|
247
245
|
}
|
|
248
246
|
stop() {
|
|
249
247
|
this._spinning = false;
|
|
@@ -252,7 +250,6 @@ export class AnimatedDotMatrix {
|
|
|
252
250
|
}
|
|
253
251
|
reset() {
|
|
254
252
|
this.stop();
|
|
255
|
-
this.pattern = AGENT_FACE;
|
|
256
253
|
}
|
|
257
254
|
setPattern(pattern) {
|
|
258
255
|
this.pattern = pattern;
|
package/esm/cli/ui/tui.js
CHANGED
|
@@ -28,6 +28,7 @@ function getSize() {
|
|
|
28
28
|
function render() {
|
|
29
29
|
getSize();
|
|
30
30
|
const lines = [""];
|
|
31
|
+
const spinner = getSpinnerFrame(spinnerFrame);
|
|
31
32
|
const infoKeys = Object.keys(state.info);
|
|
32
33
|
if (infoKeys.length > 0) {
|
|
33
34
|
const maxKeyLen = Math.max(...infoKeys.map((k) => k.length));
|
|
@@ -38,7 +39,6 @@ function render() {
|
|
|
38
39
|
lines.push("");
|
|
39
40
|
}
|
|
40
41
|
if (state.steps.length > 0) {
|
|
41
|
-
const spinner = getSpinnerFrame(spinnerFrame);
|
|
42
42
|
const stepLine = state.steps
|
|
43
43
|
.map((s, i) => {
|
|
44
44
|
const icon = s.done ? success("✓") : i === state.currentStep ? brand(spinner) : dim("○");
|
|
@@ -48,11 +48,10 @@ function render() {
|
|
|
48
48
|
.join(" ");
|
|
49
49
|
lines.push(` ${stepLine}`, "");
|
|
50
50
|
}
|
|
51
|
-
const spinnerChar = getSpinnerFrame(spinnerFrame);
|
|
52
51
|
let statusIcon = dim("○");
|
|
53
52
|
switch (state.statusType) {
|
|
54
53
|
case "loading":
|
|
55
|
-
statusIcon = brand(
|
|
54
|
+
statusIcon = brand(spinner);
|
|
56
55
|
break;
|
|
57
56
|
case "success":
|
|
58
57
|
statusIcon = success("●");
|
package/esm/cli/utils/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import denoConfig from "../../deno.js";
|
|
2
|
-
import { exit, getEnv, isStdoutTTY, onSignal, promptSync, readStdinByteSync, writeStdout, } from "../../src/platform/index.js";
|
|
3
|
-
import { setRawMode } from "../../src/platform/index.js";
|
|
2
|
+
import { exit, getEnv, isStdoutTTY, onSignal, promptSync, readStdinByteSync, setRawMode, writeStdout, } from "../../src/platform/index.js";
|
|
4
3
|
import { DEFAULT_DEV_PORT } from "../shared/constants.js";
|
|
5
4
|
import { bold, brand, dim, error as errorColor, muted, shouldUseColor, success as successColor, warning as warningColor, } from "../ui/colors.js";
|
|
6
5
|
function debugEnabled() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/package-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,cAAc,GAAG,SAAS,CAWhE;AA0CD;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,cAAc,GAC1B,OAAO,CAAC,cAAc,CAAC,CAyBzB;AAUD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CASxE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/package-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtE;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,IAAI,cAAc,GAAG,SAAS,CAWhE;AA0CD;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,UAAU,CAAC,EAAE,cAAc,GAC1B,OAAO,CAAC,cAAc,CAAC,CAyBzB;AAUD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CASxE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,CAaxD;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IACP,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CACb,GACL,OAAO,CAAC,OAAO,CAAC,CAwBlB"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { join } from "../../src/platform/compat/path/index.js";
|
|
7
7
|
import { cliLogger as logger } from "./index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { getEnv, getOsType, runCommand } from "../../src/platform/index.js";
|
|
9
|
+
import { getFs } from "./fs.js";
|
|
10
10
|
/**
|
|
11
11
|
* Detect package manager from npm_config_user_agent environment variable
|
|
12
12
|
* This is set when running via `pnpm create`, `npm create`, etc.
|
|
@@ -54,7 +54,7 @@ const LOCKFILES = [
|
|
|
54
54
|
{ file: "package-lock.json", pm: "npm" },
|
|
55
55
|
];
|
|
56
56
|
async function detectFromDir(dir) {
|
|
57
|
-
const fs =
|
|
57
|
+
const fs = getFs();
|
|
58
58
|
for (const lock of LOCKFILES) {
|
|
59
59
|
if (await fs.exists(join(dir, lock.file)))
|
|
60
60
|
return lock;
|
|
@@ -137,7 +137,6 @@ export function getDlxCommand(pm) {
|
|
|
137
137
|
case "bun":
|
|
138
138
|
return "bunx";
|
|
139
139
|
case "npm":
|
|
140
|
-
default:
|
|
141
140
|
return "npx";
|
|
142
141
|
}
|
|
143
142
|
}
|
package/esm/deno.d.ts
CHANGED
|
@@ -124,6 +124,8 @@ declare namespace _default {
|
|
|
124
124
|
"#veryfront/resource": string;
|
|
125
125
|
"#veryfront/routing": string;
|
|
126
126
|
"#veryfront/security": string;
|
|
127
|
+
"#veryfront/skill": string;
|
|
128
|
+
"#veryfront/skill/": string;
|
|
127
129
|
"#veryfront/server": string;
|
|
128
130
|
"#veryfront/server/project-env": string;
|
|
129
131
|
"#veryfront/testing": string;
|
|
@@ -264,6 +266,7 @@ declare namespace _default {
|
|
|
264
266
|
}
|
|
265
267
|
let tasks: {
|
|
266
268
|
setup: string;
|
|
269
|
+
generate: string;
|
|
267
270
|
start: string;
|
|
268
271
|
"start:headless": string;
|
|
269
272
|
proxy: string;
|
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.49",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"nodeModulesDir": "auto",
|
|
6
6
|
"exclude": [
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
"veryfront/workflow/react": "./src/workflow/react/index.ts",
|
|
67
67
|
"veryfront/workflow/executor": "./src/workflow/executor/index.ts",
|
|
68
68
|
"veryfront/workflow/blob": "./src/workflow/blob/index.ts",
|
|
69
|
-
"veryfront/workflow/runtime": "./src/workflow/runtime/
|
|
69
|
+
"veryfront/workflow/runtime": "./src/workflow/runtime/index.ts",
|
|
70
70
|
"veryfront/workflow/worker": "./src/workflow/worker/index.ts",
|
|
71
71
|
"veryfront/workflow/claude-code": "./src/workflow/claude-code/index.ts",
|
|
72
72
|
"veryfront/workflow/claude-code/react": "./src/workflow/claude-code/react/index.ts",
|
|
@@ -134,6 +134,8 @@ export default {
|
|
|
134
134
|
"#veryfront/resource": "./src/resource/index.ts",
|
|
135
135
|
"#veryfront/routing": "./src/routing/index.ts",
|
|
136
136
|
"#veryfront/security": "./src/security/index.ts",
|
|
137
|
+
"#veryfront/skill": "./src/skill/index.ts",
|
|
138
|
+
"#veryfront/skill/": "./src/skill/",
|
|
137
139
|
"#veryfront/server": "./src/server/index.ts",
|
|
138
140
|
"#veryfront/server/project-env": "./src/server/project-env/index.ts",
|
|
139
141
|
"#veryfront/testing": "./src/testing/index.ts",
|
|
@@ -282,18 +284,19 @@ export default {
|
|
|
282
284
|
},
|
|
283
285
|
"tasks": {
|
|
284
286
|
"setup": "deno run --allow-all scripts/setup.ts",
|
|
285
|
-
"
|
|
286
|
-
"start
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
287
|
+
"generate": "deno run -A scripts/build/generate-templates-manifest.ts && deno run -A scripts/build/generate-dev-ui-manifest.ts && deno run -A scripts/build/prebundle-client-scripts.ts && deno run -A scripts/build/prebundle-bridge.ts",
|
|
288
|
+
"start": "deno task generate && deno run --allow-all cli/main.ts",
|
|
289
|
+
"start:headless": "deno task generate && deno run --allow-all cli/main.ts --headless",
|
|
290
|
+
"proxy": "deno task generate && deno run --allow-all cli/main.ts serve --mode=proxy",
|
|
291
|
+
"dev": "deno task generate && deno run --allow-all cli/main.ts dev",
|
|
292
|
+
"production": "deno task generate && deno run --allow-all cli/main.ts serve --mode=production",
|
|
293
|
+
"build:prepare": "deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/prepare-framework-sources.ts",
|
|
291
294
|
"build": "deno task build:prepare && deno compile --allow-all --include src/platform/polyfills --include src/proxy/main.ts --include dist/framework-src --output ./bin/veryfront cli/main.ts",
|
|
292
|
-
"build:npm": "deno run -A scripts/build/generate-integrations-module.ts && deno run -A scripts/build/build-npm-dnt.ts",
|
|
295
|
+
"build:npm": "deno run -A scripts/build/generate-integrations-module.ts && deno task generate && deno run -A scripts/build/build-npm-dnt.ts",
|
|
293
296
|
"release": "deno run -A scripts/release.ts",
|
|
294
|
-
"test": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net",
|
|
295
|
-
"test:unit": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/ai/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts')",
|
|
296
|
-
"test:integration": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
|
|
297
|
+
"test": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net",
|
|
298
|
+
"test:unit": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --v8-flags=--max-old-space-size=8192 '--ignore=tests,src/ai/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts')",
|
|
299
|
+
"test:integration": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
|
|
297
300
|
"test:integration:cli": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
|
|
298
301
|
"test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
|
|
299
302
|
"test:coverage": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net || exit 1",
|
|
@@ -305,9 +308,9 @@ export default {
|
|
|
305
308
|
"lint": "DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/",
|
|
306
309
|
"fmt": "deno fmt src/ cli/",
|
|
307
310
|
"fmt:check": "deno fmt --check src/ cli/",
|
|
308
|
-
"typecheck": "deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/mcp/index.ts src/provider/index.ts",
|
|
309
|
-
"verify": "deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary",
|
|
310
|
-
"verify:quick": "deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck",
|
|
311
|
+
"typecheck": "deno task generate && deno check src/index.ts cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/transforms/index.ts src/config/index.ts src/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/modules/index.ts src/proxy/main.ts src/chat/index.ts src/markdown/index.ts src/mdx/index.ts src/fs/index.ts src/oauth/index.ts src/agent/index.ts src/tool/index.ts src/workflow/index.ts src/prompt/index.ts src/resource/index.ts src/mcp/index.ts src/provider/index.ts",
|
|
312
|
+
"verify": "deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck && deno task test && deno task test:e2e:binary",
|
|
313
|
+
"verify:quick": "deno task generate && deno fmt --check src/ cli/ && DENO_NO_PACKAGE_JSON=1 deno lint src/ cli/ && deno task lint:style && deno task lint:cli-boundary && deno task lint:wildcard-exports && deno task lint:barrel-jsdoc && deno task docs:validate && deno task typecheck",
|
|
311
314
|
"docs": "rm -rf docs/reference && deno run --allow-read --allow-write --allow-run scripts/docs/generate-api-reference.ts",
|
|
312
315
|
"docs:copy": "rm -rf ../../docs/docs/code/reference && cp -r docs/reference/ ../../docs/docs/code/reference/",
|
|
313
316
|
"docs:validate": "deno run --allow-read scripts/docs/validate-api-reference.ts",
|
|
@@ -330,8 +333,8 @@ export default {
|
|
|
330
333
|
"test:bun": "node ./tests/bun/run-tests.mjs src/",
|
|
331
334
|
"test:all-runtimes": "deno task test:unit && deno task test:node && deno task test:bun",
|
|
332
335
|
"test:e2e": "npx playwright test --config=tests/e2e/playwright.config.ts",
|
|
333
|
-
"test:e2e:binary": "deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
334
|
-
"test:e2e:binary:fresh": "VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
336
|
+
"test:e2e:binary": "deno task generate && deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
337
|
+
"test:e2e:binary:fresh": "deno task generate && VERYFRONT_BINARY_FRESH=1 deno test --allow-all tests/integration/compiled-binary-e2e.test.ts",
|
|
335
338
|
"check:circular": "deno run -A jsr:@cunarist/deno-circular-deps src/index.ts",
|
|
336
339
|
"cli": "deno run --allow-all cli/main.ts",
|
|
337
340
|
"mcp": "deno run --allow-all cli/main.ts mcp",
|
|
@@ -345,8 +348,8 @@ export default {
|
|
|
345
348
|
"rlm:example": "deno run -A scripts/rlm-ts/examples/basic.ts",
|
|
346
349
|
"rlm:explore": "deno run -A scripts/rlm-ts/apps/explore.ts",
|
|
347
350
|
"rlm:audit": "deno run -A scripts/rlm-ts/apps/audit.ts",
|
|
348
|
-
"start-split": "deno run --allow-all cli/main.ts serve --split",
|
|
349
|
-
"start-split:binary": "deno run --allow-all cli/main.ts serve --split --binary"
|
|
351
|
+
"start-split": "deno task generate && deno run --allow-all cli/main.ts serve --split",
|
|
352
|
+
"start-split:binary": "deno task generate && deno run --allow-all cli/main.ts serve --split --binary"
|
|
350
353
|
},
|
|
351
354
|
"lint": {
|
|
352
355
|
"include": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-handler.d.ts","sourceRoot":"","sources":["../../../src/src/agent/chat-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAG/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAuK1C,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,KAAK,EAAE,8BAA8B,KAEnC,IAAI,GACJ,OAAO,CAAC,QAAQ,GAChB,6BAA6B,GAC7B,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ,GAAG,6BAA6B,CAAC,CAAC;AAiCrE,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,OAAO,CAAC,EACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,CACD,OAAO,EAAE,OAAO,CAAC,OAAO,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnE;;;OAGG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAC;CACxC;AA2BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,IAGD,cAAc,GAAG,KAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"chat-handler.d.ts","sourceRoot":"","sources":["../../../src/src/agent/chat-handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAG/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAuK1C,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,KAAK,EAAE,8BAA8B,KAEnC,IAAI,GACJ,OAAO,CAAC,QAAQ,GAChB,6BAA6B,GAC7B,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ,GAAG,6BAA6B,CAAC,CAAC;AAiCrE,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,OAAO,CAAC,EACJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,CACD,OAAO,EAAE,OAAO,CAAC,OAAO,KACrB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnE;;;OAGG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAC;CACxC;AA2BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,kBAAkB,IAGD,cAAc,GAAG,KAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CA8EzE"}
|
|
@@ -188,8 +188,6 @@ export function createChatHandler(agentId, options) {
|
|
|
188
188
|
// deno-lint-ignore no-explicit-any
|
|
189
189
|
return async function POST(requestOrCtx) {
|
|
190
190
|
const request = extractRequest(requestOrCtx);
|
|
191
|
-
// Resolve agent outside try so it's available in the catch block for
|
|
192
|
-
// extracting the system prompt in the 503 fallback response.
|
|
193
191
|
let agent;
|
|
194
192
|
try {
|
|
195
193
|
agent = getAgent(agentId);
|
|
@@ -197,12 +195,12 @@ export function createChatHandler(agentId, options) {
|
|
|
197
195
|
catch {
|
|
198
196
|
return dntShim.Response.json({ error: "Agent not found" }, { status: 404 });
|
|
199
197
|
}
|
|
198
|
+
if (!agent) {
|
|
199
|
+
return dntShim.Response.json({ error: "Agent not found" }, { status: 404 });
|
|
200
|
+
}
|
|
200
201
|
try {
|
|
201
202
|
const body = await request.json();
|
|
202
203
|
const { messages: rawMessages, model: requestModel } = chatRequestSchema.parse(body);
|
|
203
|
-
if (!agent) {
|
|
204
|
-
return dntShim.Response.json({ error: "Agent not found" }, { status: 404 });
|
|
205
|
-
}
|
|
206
204
|
const context = typeof options?.context === "function"
|
|
207
205
|
? await options.context(request)
|
|
208
206
|
: options?.context ?? { userId: "current-user" };
|
|
@@ -215,9 +213,7 @@ export function createChatHandler(agentId, options) {
|
|
|
215
213
|
});
|
|
216
214
|
if (isResponseLike(beforeStreamResult))
|
|
217
215
|
return beforeStreamResult;
|
|
218
|
-
|
|
219
|
-
if (beforeStreamResult)
|
|
220
|
-
hookResult = beforeStreamResult;
|
|
216
|
+
const hookResult = beforeStreamResult ?? undefined;
|
|
221
217
|
const messages = applyBeforeStreamResult(baseMessages, hookResult);
|
|
222
218
|
const streamContext = hookResult?.context ?? context;
|
|
223
219
|
// Clear server-side memory before each request —
|
|
@@ -237,27 +233,16 @@ export function createChatHandler(agentId, options) {
|
|
|
237
233
|
details: error.errors.map((e) => ({ path: e.path, message: e.message })),
|
|
238
234
|
}, { status: 400 });
|
|
239
235
|
}
|
|
240
|
-
// Detect structured "no_ai_available" errors from local engine
|
|
236
|
+
// Detect structured "no_ai_available" errors from local engine.
|
|
237
|
+
// Never send the server-side system prompt to the client — it may
|
|
238
|
+
// contain business logic, personas, or internal instructions.
|
|
239
|
+
// The client (useChat) has its own systemPrompt option for browser fallback.
|
|
241
240
|
const vfError = fromError(error);
|
|
242
241
|
if (vfError?.type === "no_ai_available") {
|
|
243
|
-
let systemPrompt;
|
|
244
|
-
try {
|
|
245
|
-
systemPrompt = agent
|
|
246
|
-
? typeof agent.config.system === "string"
|
|
247
|
-
? agent.config.system
|
|
248
|
-
: typeof agent.config.system === "function"
|
|
249
|
-
? await agent.config.system()
|
|
250
|
-
: undefined
|
|
251
|
-
: undefined;
|
|
252
|
-
}
|
|
253
|
-
catch {
|
|
254
|
-
// If system prompt resolution fails, continue without it
|
|
255
|
-
}
|
|
256
242
|
return dntShim.Response.json({
|
|
257
243
|
code: "NO_AI_AVAILABLE",
|
|
258
244
|
fallback: "browser",
|
|
259
245
|
model: DEFAULT_LOCAL_MODEL,
|
|
260
|
-
...(systemPrompt ? { systemPrompt } : {}),
|
|
261
246
|
}, { status: 503 });
|
|
262
247
|
}
|
|
263
248
|
return dntShim.Response.json({ error: "Internal server error" }, { status: 500 });
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import * as dntShim from "../../_dnt.shims.js";
|
|
2
1
|
import type { Agent, AgentConfig } from "./types.js";
|
|
3
|
-
export interface AgentStreamResult {
|
|
4
|
-
toDataStreamResponse(options?: {
|
|
5
|
-
headers?: Record<string, string>;
|
|
6
|
-
status?: number;
|
|
7
|
-
statusText?: string;
|
|
8
|
-
}): dntShim.Response;
|
|
9
|
-
}
|
|
10
2
|
export declare function agent(config: AgentConfig): Agent;
|
|
11
3
|
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/src/agent/factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/src/agent/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAA6C,MAAM,YAAY,CAAC;AA6ChG,wBAAgB,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,KAAK,CAoLhD"}
|
package/esm/src/agent/factory.js
CHANGED
|
@@ -2,6 +2,10 @@ import * as dntShim from "../../_dnt.shims.js";
|
|
|
2
2
|
import { AgentRuntime } from "./runtime/index.js";
|
|
3
3
|
import { detectPlatform, validatePlatformCompatibility, } from "../platform/core-platform.js";
|
|
4
4
|
import { registerTool } from "../mcp/index.js";
|
|
5
|
+
import { toolRegistry } from "../tool/index.js";
|
|
6
|
+
import { skillRegistry } from "../skill/registry.js";
|
|
7
|
+
import { buildSkillManifestPrompt } from "../skill/prompt-augmentation.js";
|
|
8
|
+
import { createExecuteSkillScriptTool, createLoadSkillReferenceTool, createLoadSkillTool, } from "../skill/tools.js";
|
|
5
9
|
import { agentRegistry } from "./composition/index.js";
|
|
6
10
|
import { agentLogger } from "../utils/logger/logger.js";
|
|
7
11
|
import { createError, toError } from "../errors/veryfront-error.js";
|
|
@@ -12,6 +16,11 @@ const STREAMING_HEADERS = {
|
|
|
12
16
|
Connection: "keep-alive",
|
|
13
17
|
"x-vercel-ai-ui-message-stream": "v1",
|
|
14
18
|
};
|
|
19
|
+
const SKILL_TOOL_REGISTRATIONS = [
|
|
20
|
+
{ id: "load-skill", create: createLoadSkillTool },
|
|
21
|
+
{ id: "load-skill-reference", create: createLoadSkillReferenceTool },
|
|
22
|
+
{ id: "execute-skill-script", create: createExecuteSkillScriptTool },
|
|
23
|
+
];
|
|
15
24
|
function createAgentStreamResult(stream) {
|
|
16
25
|
return {
|
|
17
26
|
toDataStreamResponse(options) {
|
|
@@ -40,6 +49,42 @@ export function agent(config) {
|
|
|
40
49
|
config.tools[name] = normalizedTool;
|
|
41
50
|
}
|
|
42
51
|
}
|
|
52
|
+
// Skill tool registration (immutable config merge)
|
|
53
|
+
let mergedToolsConfig = config.tools;
|
|
54
|
+
if (config.skills) {
|
|
55
|
+
// Skill tools (load-skill, load-skill-reference, execute-skill-script) are
|
|
56
|
+
// framework infrastructure — shared across all projects. Project tools and
|
|
57
|
+
// skills themselves remain project-scoped. Using registerShared avoids
|
|
58
|
+
// scope mismatch between module-load time and request-handling time.
|
|
59
|
+
for (const registration of SKILL_TOOL_REGISTRATIONS) {
|
|
60
|
+
if (!toolRegistry.has(registration.id)) {
|
|
61
|
+
toolRegistry.registerShared(registration.id, registration.create());
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// Ensure skill tools are enabled for this agent even when config.tools is undefined
|
|
65
|
+
if (config.tools !== true) {
|
|
66
|
+
mergedToolsConfig = {
|
|
67
|
+
...(config.tools ?? {}),
|
|
68
|
+
"load-skill": true,
|
|
69
|
+
"load-skill-reference": true,
|
|
70
|
+
"execute-skill-script": true,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// System prompt augmentation with skill manifest.
|
|
75
|
+
// Re-resolve skills at invocation time so HMR changes are picked up.
|
|
76
|
+
const originalSystem = config.system;
|
|
77
|
+
const augmentedSystem = config.skills
|
|
78
|
+
? async () => {
|
|
79
|
+
const currentSkills = skillRegistry.resolveForAgent(config.skills);
|
|
80
|
+
const basePrompt = typeof originalSystem === "function"
|
|
81
|
+
? await originalSystem()
|
|
82
|
+
: originalSystem;
|
|
83
|
+
if (!currentSkills.size)
|
|
84
|
+
return basePrompt ?? "You are a helpful AI assistant.";
|
|
85
|
+
return `${basePrompt}\n\n${buildSkillManifestPrompt(currentSkills)}`;
|
|
86
|
+
}
|
|
87
|
+
: originalSystem;
|
|
43
88
|
const platform = detectPlatform();
|
|
44
89
|
const compatibility = validatePlatformCompatibility({
|
|
45
90
|
maxSteps: config.maxSteps,
|
|
@@ -56,7 +101,11 @@ export function agent(config) {
|
|
|
56
101
|
if (compatibility.warnings.length) {
|
|
57
102
|
agentLogger.warn(`Agent "${id}" warnings:\n${compatibility.warnings.join("\n")}`);
|
|
58
103
|
}
|
|
59
|
-
const runtime = new AgentRuntime(id,
|
|
104
|
+
const runtime = new AgentRuntime(id, {
|
|
105
|
+
...config,
|
|
106
|
+
tools: mergedToolsConfig,
|
|
107
|
+
system: augmentedSystem,
|
|
108
|
+
});
|
|
60
109
|
const agentInstance = {
|
|
61
110
|
id,
|
|
62
111
|
config,
|
package/esm/src/agent/index.d.ts
CHANGED
|
@@ -29,11 +29,26 @@
|
|
|
29
29
|
* const assistant = agent({
|
|
30
30
|
* model: "openai/gpt-4o",
|
|
31
31
|
* system: "You are a helpful assistant.",
|
|
32
|
-
* tools:
|
|
32
|
+
* tools: { search: searchTool },
|
|
33
33
|
* memory: { type: "conversation", maxMessages: 50 },
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
+
* @example Agent with skills
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { agent } from "veryfront/agent";
|
|
40
|
+
*
|
|
41
|
+
* const assistant = agent({
|
|
42
|
+
* model: "openai/gpt-4o",
|
|
43
|
+
* system: "You are a support engineer. Use skills when relevant.",
|
|
44
|
+
* skills: ["incident-response", "repo-maintainer"], // or `true` for all discovered skills
|
|
45
|
+
* tools: {
|
|
46
|
+
* Read: true,
|
|
47
|
+
* "github:list-issues": true,
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
37
52
|
* @example Streaming API route
|
|
38
53
|
* ```ts
|
|
39
54
|
* // app/api/chat/route.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,OAAO,yBAAyB,CAAC;AAGjC,YAAY,EACV,KAAK,EACL,WAAW,EACX,YAAY,EACZ,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,YAAY;AACZ,+FAA+F;AAC/F,OAAO,EACP,OAAO,IAAI,YAAY,EACvB,WAAW,EACX,aAAa,EACb,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEnF,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,WAAW,EACX,KAAK,iBAAiB,EACtB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,WAAW,EACX,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
package/esm/src/agent/index.js
CHANGED
|
@@ -29,11 +29,26 @@
|
|
|
29
29
|
* const assistant = agent({
|
|
30
30
|
* model: "openai/gpt-4o",
|
|
31
31
|
* system: "You are a helpful assistant.",
|
|
32
|
-
* tools:
|
|
32
|
+
* tools: { search: searchTool },
|
|
33
33
|
* memory: { type: "conversation", maxMessages: 50 },
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
36
|
*
|
|
37
|
+
* @example Agent with skills
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { agent } from "veryfront/agent";
|
|
40
|
+
*
|
|
41
|
+
* const assistant = agent({
|
|
42
|
+
* model: "openai/gpt-4o",
|
|
43
|
+
* system: "You are a support engineer. Use skills when relevant.",
|
|
44
|
+
* skills: ["incident-response", "repo-maintainer"], // or `true` for all discovered skills
|
|
45
|
+
* tools: {
|
|
46
|
+
* Read: true,
|
|
47
|
+
* "github:list-issues": true,
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
37
52
|
* @example Streaming API route
|
|
38
53
|
* ```ts
|
|
39
54
|
* // app/api/chat/route.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { estimateTokens, type Memory, type MemoryPersistence, type MemoryStats, type MinimalMessage, };
|
|
1
|
+
import { type Memory, type MemoryConfigBase, type MemoryStats, type MinimalMessage } from "./memory-interface.js";
|
|
3
2
|
type BasicMemoryType = "conversation" | "buffer";
|
|
4
3
|
declare abstract class BasicMemoryStore<M extends MinimalMessage> implements Memory<M> {
|
|
5
4
|
protected messages: M[];
|
|
@@ -38,4 +37,5 @@ export declare class SummaryMemory<M extends MinimalMessage = MinimalMessage> im
|
|
|
38
37
|
private summarizeOldMessages;
|
|
39
38
|
}
|
|
40
39
|
export declare function createMemory<M extends MinimalMessage = MinimalMessage>(config: MemoryConfigBase): Memory<M>;
|
|
40
|
+
export {};
|
|
41
41
|
//# sourceMappingURL=memory.d.ts.map
|