@superblocksteam/vite-plugin-file-sync 1.99.99-next.2 → 2.0.0-SNAPSHOT.2143e2e95d0107ab
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/dist/ai-service/agent/middleware.d.ts +66 -0
- package/dist/ai-service/agent/middleware.d.ts.map +1 -0
- package/dist/ai-service/agent/middleware.js +423 -0
- package/dist/ai-service/agent/middleware.js.map +1 -0
- package/dist/ai-service/agent/prompts/api-prompts.d.ts +39 -0
- package/dist/ai-service/agent/prompts/api-prompts.d.ts.map +1 -0
- package/dist/ai-service/agent/prompts/api-prompts.js +806 -0
- package/dist/ai-service/agent/prompts/api-prompts.js.map +1 -0
- package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts +59 -0
- package/dist/ai-service/agent/prompts/build-base-system-prompt.d.ts.map +1 -0
- package/dist/ai-service/agent/prompts/build-base-system-prompt.js +1133 -0
- package/dist/ai-service/agent/prompts/build-base-system-prompt.js.map +1 -0
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts +17 -0
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.d.ts.map +1 -0
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.js +285 -0
- package/dist/ai-service/agent/prompts/build-security-scan-prompt.js.map +1 -0
- package/dist/ai-service/agent/subagents/apis/example-selector.d.ts +24 -0
- package/dist/ai-service/agent/subagents/apis/example-selector.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/apis/example-selector.js +104 -0
- package/dist/ai-service/agent/subagents/apis/example-selector.js.map +1 -0
- package/dist/ai-service/agent/subagents/apis/examples.d.ts +38 -0
- package/dist/ai-service/agent/subagents/apis/examples.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/apis/examples.js +1355 -0
- package/dist/ai-service/agent/subagents/apis/examples.js.map +1 -0
- package/dist/ai-service/agent/subagents/apis/prompt-builder.d.ts +42 -0
- package/dist/ai-service/agent/subagents/apis/prompt-builder.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/apis/prompt-builder.js +103 -0
- package/dist/ai-service/agent/subagents/apis/prompt-builder.js.map +1 -0
- package/dist/ai-service/agent/subagents/apis/static-analysis.d.ts +2 -0
- package/dist/ai-service/agent/subagents/apis/static-analysis.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/apis/static-analysis.js +779 -0
- package/dist/ai-service/agent/subagents/apis/static-analysis.js.map +1 -0
- package/dist/ai-service/agent/subagents/apis/types.d.ts +2 -0
- package/dist/ai-service/agent/subagents/apis/types.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/apis/types.js.map +1 -0
- package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts +16 -0
- package/dist/ai-service/agent/subagents/coding/prompt-builder.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/coding/prompt-builder.js +30 -0
- package/dist/ai-service/agent/subagents/coding/prompt-builder.js.map +1 -0
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts +30 -0
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js +134 -0
- package/dist/ai-service/agent/subagents/coding/run-coding-subagent.js.map +1 -0
- package/dist/ai-service/agent/subagents/testing/index.d.ts +3 -0
- package/dist/ai-service/agent/subagents/testing/index.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/testing/index.js +2 -0
- package/dist/ai-service/agent/subagents/testing/index.js.map +1 -0
- package/dist/ai-service/agent/subagents/testing/prompt-builder.d.ts +10 -0
- package/dist/ai-service/agent/subagents/testing/prompt-builder.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/testing/prompt-builder.js +177 -0
- package/dist/ai-service/agent/subagents/testing/prompt-builder.js.map +1 -0
- package/dist/ai-service/agent/subagents/testing/types.d.ts +67 -0
- package/dist/ai-service/agent/subagents/testing/types.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/testing/types.js +2 -0
- package/dist/ai-service/agent/subagents/testing/types.js.map +1 -0
- package/dist/ai-service/agent/subagents/types.d.ts +48 -0
- package/dist/ai-service/agent/subagents/types.d.ts.map +1 -0
- package/dist/ai-service/agent/subagents/types.js +49 -0
- package/dist/ai-service/agent/subagents/types.js.map +1 -0
- package/dist/ai-service/agent/tool-message-utils.d.ts +26 -0
- package/dist/ai-service/agent/tool-message-utils.d.ts.map +1 -0
- package/dist/ai-service/agent/tool-message-utils.js +356 -0
- package/dist/ai-service/agent/tool-message-utils.js.map +1 -0
- package/dist/ai-service/agent/tool-permission-delivery-metrics.d.ts +3 -0
- package/dist/ai-service/agent/tool-permission-delivery-metrics.d.ts.map +1 -0
- package/dist/ai-service/agent/tool-permission-delivery-metrics.js +23 -0
- package/dist/ai-service/agent/tool-permission-delivery-metrics.js.map +1 -0
- package/dist/ai-service/agent/tool-permission-delivery.d.ts +50 -0
- package/dist/ai-service/agent/tool-permission-delivery.d.ts.map +1 -0
- package/dist/ai-service/agent/tool-permission-delivery.js +434 -0
- package/dist/ai-service/agent/tool-permission-delivery.js.map +1 -0
- package/dist/ai-service/agent/tool-result-metrics.d.ts +29 -0
- package/dist/ai-service/agent/tool-result-metrics.d.ts.map +1 -0
- package/dist/ai-service/agent/tool-result-metrics.js +162 -0
- package/dist/ai-service/agent/tool-result-metrics.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/analysis.d.ts +30 -0
- package/dist/ai-service/agent/tools/apis/analysis.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/analysis.js +1305 -0
- package/dist/ai-service/agent/tools/apis/analysis.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-comparator.d.ts +36 -0
- package/dist/ai-service/agent/tools/apis/api-comparator.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-comparator.js +366 -0
- package/dist/ai-service/agent/tools/apis/api-comparator.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-executor.d.ts +92 -0
- package/dist/ai-service/agent/tools/apis/api-executor.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-executor.js +480 -0
- package/dist/ai-service/agent/tools/apis/api-executor.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-testing-state.d.ts +43 -0
- package/dist/ai-service/agent/tools/apis/api-testing-state.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-testing-state.js +259 -0
- package/dist/ai-service/agent/tools/apis/api-testing-state.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts +71 -0
- package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js +562 -0
- package/dist/ai-service/agent/tools/apis/api-validation-orchestrator.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/build-api-artifact.d.ts +51 -0
- package/dist/ai-service/agent/tools/apis/build-api-artifact.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/build-api-artifact.js +378 -0
- package/dist/ai-service/agent/tools/apis/build-api-artifact.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/build-api.d.ts +15 -0
- package/dist/ai-service/agent/tools/apis/build-api.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/build-api.js +82 -0
- package/dist/ai-service/agent/tools/apis/build-api.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts +66 -0
- package/dist/ai-service/agent/tools/apis/get-api-docs.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-api-docs.js +2242 -0
- package/dist/ai-service/agent/tools/apis/get-api-docs.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-integration-types.d.ts +12 -0
- package/dist/ai-service/agent/tools/apis/get-integration-types.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-integration-types.js +76 -0
- package/dist/ai-service/agent/tools/apis/get-integration-types.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts +32 -0
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js +277 -0
- package/dist/ai-service/agent/tools/apis/get-sdk-api-docs.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/integration-types.d.ts +59 -0
- package/dist/ai-service/agent/tools/apis/integration-types.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/integration-types.js +1677 -0
- package/dist/ai-service/agent/tools/apis/integration-types.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/sample-json.d.ts +2 -0
- package/dist/ai-service/agent/tools/apis/sample-json.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/sample-json.js +16 -0
- package/dist/ai-service/agent/tools/apis/sample-json.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/sdk-registry.d.ts +20 -0
- package/dist/ai-service/agent/tools/apis/sdk-registry.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/sdk-registry.js +78 -0
- package/dist/ai-service/agent/tools/apis/sdk-registry.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api.d.ts +66 -0
- package/dist/ai-service/agent/tools/apis/test-api.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/test-api.js +864 -0
- package/dist/ai-service/agent/tools/apis/test-api.js.map +1 -0
- package/dist/ai-service/agent/tools/apis/write-api.d.ts +12 -0
- package/dist/ai-service/agent/tools/apis/write-api.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/apis/write-api.js +47 -0
- package/dist/ai-service/agent/tools/apis/write-api.js.map +1 -0
- package/dist/ai-service/agent/tools/app-environment/update-app-environment.d.ts +29 -0
- package/dist/ai-service/agent/tools/app-environment/update-app-environment.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/app-environment/update-app-environment.js +399 -0
- package/dist/ai-service/agent/tools/app-environment/update-app-environment.js.map +1 -0
- package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts +59 -0
- package/dist/ai-service/agent/tools/build-capture-screenshot.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-capture-screenshot.js +483 -0
- package/dist/ai-service/agent/tools/build-capture-screenshot.js.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-directory.d.ts +12 -0
- package/dist/ai-service/agent/tools/build-copy-directory.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-directory.js +51 -0
- package/dist/ai-service/agent/tools/build-copy-directory.js.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-file.d.ts +12 -0
- package/dist/ai-service/agent/tools/build-copy-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-file.js +52 -0
- package/dist/ai-service/agent/tools/build-copy-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-utils.d.ts +57 -0
- package/dist/ai-service/agent/tools/build-copy-utils.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-copy-utils.js +37 -0
- package/dist/ai-service/agent/tools/build-copy-utils.js.map +1 -0
- package/dist/ai-service/agent/tools/build-debug.d.ts +17 -0
- package/dist/ai-service/agent/tools/build-debug.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-debug.js +244 -0
- package/dist/ai-service/agent/tools/build-debug.js.map +1 -0
- package/dist/ai-service/agent/tools/build-delete-file.d.ts +27 -0
- package/dist/ai-service/agent/tools/build-delete-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-delete-file.js +217 -0
- package/dist/ai-service/agent/tools/build-delete-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-edit-file.d.ts +23 -0
- package/dist/ai-service/agent/tools/build-edit-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-edit-file.js +509 -0
- package/dist/ai-service/agent/tools/build-edit-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-finalize.d.ts +19 -0
- package/dist/ai-service/agent/tools/build-finalize.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-finalize.js +234 -0
- package/dist/ai-service/agent/tools/build-finalize.js.map +1 -0
- package/dist/ai-service/agent/tools/build-install-packages.d.ts +89 -0
- package/dist/ai-service/agent/tools/build-install-packages.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-install-packages.js +727 -0
- package/dist/ai-service/agent/tools/build-install-packages.js.map +1 -0
- package/dist/ai-service/agent/tools/build-list-files.d.ts +5 -0
- package/dist/ai-service/agent/tools/build-list-files.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-list-files.js +26 -0
- package/dist/ai-service/agent/tools/build-list-files.js.map +1 -0
- package/dist/ai-service/agent/tools/build-lookup-npm-package.d.ts +29 -0
- package/dist/ai-service/agent/tools/build-lookup-npm-package.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-lookup-npm-package.js +66 -0
- package/dist/ai-service/agent/tools/build-lookup-npm-package.js.map +1 -0
- package/dist/ai-service/agent/tools/build-manage-checklist.d.ts +89 -0
- package/dist/ai-service/agent/tools/build-manage-checklist.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-manage-checklist.js +276 -0
- package/dist/ai-service/agent/tools/build-manage-checklist.js.map +1 -0
- package/dist/ai-service/agent/tools/build-multi-edit-file.d.ts +20 -0
- package/dist/ai-service/agent/tools/build-multi-edit-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-multi-edit-file.js +209 -0
- package/dist/ai-service/agent/tools/build-multi-edit-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-navigate-preview.d.ts +17 -0
- package/dist/ai-service/agent/tools/build-navigate-preview.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-navigate-preview.js +71 -0
- package/dist/ai-service/agent/tools/build-navigate-preview.js.map +1 -0
- package/dist/ai-service/agent/tools/build-read-file.d.ts +21 -0
- package/dist/ai-service/agent/tools/build-read-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-read-file.js +148 -0
- package/dist/ai-service/agent/tools/build-read-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-reload-file.d.ts +14 -0
- package/dist/ai-service/agent/tools/build-reload-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-reload-file.js +78 -0
- package/dist/ai-service/agent/tools/build-reload-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-rename-file.d.ts +13 -0
- package/dist/ai-service/agent/tools/build-rename-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-rename-file.js +72 -0
- package/dist/ai-service/agent/tools/build-rename-file.js.map +1 -0
- package/dist/ai-service/agent/tools/build-write-file.d.ts +13 -0
- package/dist/ai-service/agent/tools/build-write-file.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/build-write-file.js +82 -0
- package/dist/ai-service/agent/tools/build-write-file.js.map +1 -0
- package/dist/ai-service/agent/tools/clear-error-cache.d.ts +10 -0
- package/dist/ai-service/agent/tools/clear-error-cache.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/clear-error-cache.js +38 -0
- package/dist/ai-service/agent/tools/clear-error-cache.js.map +1 -0
- package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.d.ts +58 -0
- package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.js +258 -0
- package/dist/ai-service/agent/tools/databases/destructive-migration-prompt.js.map +1 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts +489 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.js +1172 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tasks.js.map +1 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tools.d.ts +65 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tools.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tools.js +77 -0
- package/dist/ai-service/agent/tools/databases/dev-database-tools.js.map +1 -0
- package/dist/ai-service/agent/tools/debug-cache.d.ts +175 -0
- package/dist/ai-service/agent/tools/debug-cache.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/debug-cache.js +643 -0
- package/dist/ai-service/agent/tools/debug-cache.js.map +1 -0
- package/dist/ai-service/agent/tools/get-logs.d.ts +74 -0
- package/dist/ai-service/agent/tools/get-logs.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/get-logs.js +357 -0
- package/dist/ai-service/agent/tools/get-logs.js.map +1 -0
- package/dist/ai-service/agent/tools/get-runtime-errors.d.ts +13 -0
- package/dist/ai-service/agent/tools/get-runtime-errors.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/get-runtime-errors.js +63 -0
- package/dist/ai-service/agent/tools/get-runtime-errors.js.map +1 -0
- package/dist/ai-service/agent/tools/index.d.ts +36 -0
- package/dist/ai-service/agent/tools/index.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/index.js +36 -0
- package/dist/ai-service/agent/tools/index.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts +18 -0
- package/dist/ai-service/agent/tools/integrations/delete-integration.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/delete-integration.js +107 -0
- package/dist/ai-service/agent/tools/integrations/delete-integration.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/errors.d.ts +9 -0
- package/dist/ai-service/agent/tools/integrations/errors.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/errors.js +35 -0
- package/dist/ai-service/agent/tools/integrations/errors.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/execute-request.d.ts +471 -0
- package/dist/ai-service/agent/tools/integrations/execute-request.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/execute-request.js +1179 -0
- package/dist/ai-service/agent/tools/integrations/execute-request.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/index.d.ts +6 -0
- package/dist/ai-service/agent/tools/integrations/index.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/index.js +6 -0
- package/dist/ai-service/agent/tools/integrations/index.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/integration-setup.d.ts +98 -0
- package/dist/ai-service/agent/tools/integrations/integration-setup.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/integration-setup.js +391 -0
- package/dist/ai-service/agent/tools/integrations/integration-setup.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/internal.d.ts +15 -0
- package/dist/ai-service/agent/tools/integrations/internal.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/internal.js +95 -0
- package/dist/ai-service/agent/tools/integrations/internal.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts +16 -0
- package/dist/ai-service/agent/tools/integrations/managed-app-database.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/managed-app-database.js +31 -0
- package/dist/ai-service/agent/tools/integrations/managed-app-database.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/metadata.d.ts +15 -0
- package/dist/ai-service/agent/tools/integrations/metadata.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/metadata.js +94 -0
- package/dist/ai-service/agent/tools/integrations/metadata.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/run-code.d.ts +9 -0
- package/dist/ai-service/agent/tools/integrations/run-code.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/run-code.js +41 -0
- package/dist/ai-service/agent/tools/integrations/run-code.js.map +1 -0
- package/dist/ai-service/agent/tools/integrations/sql-classification.d.ts +50 -0
- package/dist/ai-service/agent/tools/integrations/sql-classification.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/integrations/sql-classification.js +570 -0
- package/dist/ai-service/agent/tools/integrations/sql-classification.js.map +1 -0
- package/dist/ai-service/agent/tools/mark-api-manually-verified.d.ts +31 -0
- package/dist/ai-service/agent/tools/mark-api-manually-verified.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/mark-api-manually-verified.js +94 -0
- package/dist/ai-service/agent/tools/mark-api-manually-verified.js.map +1 -0
- package/dist/ai-service/agent/tools/migration/update-migration-write-policy.d.ts +23 -0
- package/dist/ai-service/agent/tools/migration/update-migration-write-policy.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/migration/update-migration-write-policy.js +94 -0
- package/dist/ai-service/agent/tools/migration/update-migration-write-policy.js.map +1 -0
- package/dist/ai-service/agent/tools/page-edit-guidance.d.ts +2 -0
- package/dist/ai-service/agent/tools/page-edit-guidance.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/page-edit-guidance.js +11 -0
- package/dist/ai-service/agent/tools/page-edit-guidance.js.map +1 -0
- package/dist/ai-service/agent/tools/report-security-findings.d.ts +169 -0
- package/dist/ai-service/agent/tools/report-security-findings.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/report-security-findings.js +53 -0
- package/dist/ai-service/agent/tools/report-security-findings.js.map +1 -0
- package/dist/ai-service/agent/tools/screenshot-selector.d.ts +23 -0
- package/dist/ai-service/agent/tools/screenshot-selector.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/screenshot-selector.js +158 -0
- package/dist/ai-service/agent/tools/screenshot-selector.js.map +1 -0
- package/dist/ai-service/agent/tools/shared-helpers.d.ts +6 -0
- package/dist/ai-service/agent/tools/shared-helpers.d.ts.map +1 -0
- package/dist/ai-service/agent/tools/shared-helpers.js +26 -0
- package/dist/ai-service/agent/tools/shared-helpers.js.map +1 -0
- package/dist/ai-service/agent/tools.d.ts +65 -0
- package/dist/ai-service/agent/tools.d.ts.map +1 -0
- package/dist/ai-service/agent/tools.js +799 -0
- package/dist/ai-service/agent/tools.js.map +1 -0
- package/dist/ai-service/agent/tools2/access-control.d.ts +150 -0
- package/dist/ai-service/agent/tools2/access-control.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/access-control.js +310 -0
- package/dist/ai-service/agent/tools2/access-control.js.map +1 -0
- package/dist/ai-service/agent/tools2/entity-permissions.d.ts +201 -0
- package/dist/ai-service/agent/tools2/entity-permissions.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/entity-permissions.js +163 -0
- package/dist/ai-service/agent/tools2/entity-permissions.js.map +1 -0
- package/dist/ai-service/agent/tools2/example.d.ts +13 -0
- package/dist/ai-service/agent/tools2/example.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/example.js +151 -0
- package/dist/ai-service/agent/tools2/example.js.map +1 -0
- package/dist/ai-service/agent/tools2/index.d.ts +18 -0
- package/dist/ai-service/agent/tools2/index.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/index.js +19 -0
- package/dist/ai-service/agent/tools2/index.js.map +1 -0
- package/dist/ai-service/agent/tools2/registry.d.ts +231 -0
- package/dist/ai-service/agent/tools2/registry.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/registry.js +602 -0
- package/dist/ai-service/agent/tools2/registry.js.map +1 -0
- package/dist/ai-service/agent/tools2/test-utils.d.ts +7 -0
- package/dist/ai-service/agent/tools2/test-utils.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/test-utils.js +10 -0
- package/dist/ai-service/agent/tools2/test-utils.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts +32 -0
- package/dist/ai-service/agent/tools2/tools/ask-multi-choice.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js +103 -0
- package/dist/ai-service/agent/tools2/tools/ask-multi-choice.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts +33 -0
- package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js +92 -0
- package/dist/ai-service/agent/tools2/tools/ask-searchable-dropdown.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/bash.d.ts +34 -0
- package/dist/ai-service/agent/tools2/tools/bash.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/bash.js +97 -0
- package/dist/ai-service/agent/tools2/tools/bash.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/cancel-task.d.ts +20 -0
- package/dist/ai-service/agent/tools2/tools/cancel-task.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/cancel-task.js +39 -0
- package/dist/ai-service/agent/tools2/tools/cancel-task.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/check-task.d.ts +38 -0
- package/dist/ai-service/agent/tools2/tools/check-task.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/check-task.js +59 -0
- package/dist/ai-service/agent/tools2/tools/check-task.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts +16 -0
- package/dist/ai-service/agent/tools2/tools/deploy-service.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/deploy-service.js +167 -0
- package/dist/ai-service/agent/tools2/tools/deploy-service.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts +33 -0
- package/dist/ai-service/agent/tools2/tools/download-attachments.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/download-attachments.js +309 -0
- package/dist/ai-service/agent/tools2/tools/download-attachments.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/edit.d.ts +17 -0
- package/dist/ai-service/agent/tools2/tools/edit.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/edit.js +67 -0
- package/dist/ai-service/agent/tools2/tools/edit.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/end-test-run.d.ts +31 -0
- package/dist/ai-service/agent/tools2/tools/end-test-run.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/end-test-run.js +112 -0
- package/dist/ai-service/agent/tools2/tools/end-test-run.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts +58 -0
- package/dist/ai-service/agent/tools2/tools/exit-plan-mode.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js +802 -0
- package/dist/ai-service/agent/tools2/tools/exit-plan-mode.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/git-raw.d.ts +25 -0
- package/dist/ai-service/agent/tools2/tools/git-raw.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/git-raw.js +394 -0
- package/dist/ai-service/agent/tools2/tools/git-raw.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/git.d.ts +126 -0
- package/dist/ai-service/agent/tools2/tools/git.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/git.js +898 -0
- package/dist/ai-service/agent/tools2/tools/git.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/glob.d.ts +14 -0
- package/dist/ai-service/agent/tools2/tools/glob.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/glob.js +71 -0
- package/dist/ai-service/agent/tools2/tools/glob.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts +22 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js +927 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata-ripgrep.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts +123 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata.js +534 -0
- package/dist/ai-service/agent/tools2/tools/grep-metadata.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep.d.ts +26 -0
- package/dist/ai-service/agent/tools2/tools/grep.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/grep.js +249 -0
- package/dist/ai-service/agent/tools2/tools/grep.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/index.d.ts +24 -0
- package/dist/ai-service/agent/tools2/tools/index.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/index.js +28 -0
- package/dist/ai-service/agent/tools2/tools/index.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts +18 -0
- package/dist/ai-service/agent/tools2/tools/list-attachments.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/list-attachments.js +70 -0
- package/dist/ai-service/agent/tools2/tools/list-attachments.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/list-tasks.d.ts +21 -0
- package/dist/ai-service/agent/tools2/tools/list-tasks.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/list-tasks.js +35 -0
- package/dist/ai-service/agent/tools2/tools/list-tasks.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ls.d.ts +17 -0
- package/dist/ai-service/agent/tools2/tools/ls.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/ls.js +141 -0
- package/dist/ai-service/agent/tools2/tools/ls.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/read.d.ts +12 -0
- package/dist/ai-service/agent/tools2/tools/read.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/read.js +60 -0
- package/dist/ai-service/agent/tools2/tools/read.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/remember-knowledge.d.ts +31 -0
- package/dist/ai-service/agent/tools2/tools/remember-knowledge.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/remember-knowledge.js +118 -0
- package/dist/ai-service/agent/tools2/tools/remember-knowledge.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts +50 -0
- package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js +273 -0
- package/dist/ai-service/agent/tools2/tools/spawn-coding-subagents.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts +24 -0
- package/dist/ai-service/agent/tools2/tools/start-test-run.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/start-test-run.js +409 -0
- package/dist/ai-service/agent/tools2/tools/start-test-run.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/tool-timeout.d.ts +2 -0
- package/dist/ai-service/agent/tools2/tools/tool-timeout.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/tool-timeout.js +2 -0
- package/dist/ai-service/agent/tools2/tools/tool-timeout.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/update-test-case-status.d.ts +29 -0
- package/dist/ai-service/agent/tools2/tools/update-test-case-status.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/update-test-case-status.js +112 -0
- package/dist/ai-service/agent/tools2/tools/update-test-case-status.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/wait-for-task.d.ts +48 -0
- package/dist/ai-service/agent/tools2/tools/wait-for-task.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/wait-for-task.js +101 -0
- package/dist/ai-service/agent/tools2/tools/wait-for-task.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/web-fetch.d.ts +30 -0
- package/dist/ai-service/agent/tools2/tools/web-fetch.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/web-fetch.js +285 -0
- package/dist/ai-service/agent/tools2/tools/web-fetch.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/web-search.d.ts +25 -0
- package/dist/ai-service/agent/tools2/tools/web-search.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/web-search.js +210 -0
- package/dist/ai-service/agent/tools2/tools/web-search.js.map +1 -0
- package/dist/ai-service/agent/tools2/tools/write.d.ts +14 -0
- package/dist/ai-service/agent/tools2/tools/write.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/tools/write.js +33 -0
- package/dist/ai-service/agent/tools2/tools/write.js.map +1 -0
- package/dist/ai-service/agent/tools2/types.d.ts +396 -0
- package/dist/ai-service/agent/tools2/types.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/types.js +204 -0
- package/dist/ai-service/agent/tools2/types.js.map +1 -0
- package/dist/ai-service/agent/tools2/utils.d.ts +9 -0
- package/dist/ai-service/agent/tools2/utils.d.ts.map +1 -0
- package/dist/ai-service/agent/tools2/utils.js +14 -0
- package/dist/ai-service/agent/tools2/utils.js.map +1 -0
- package/dist/ai-service/agent/utils.d.ts +15 -0
- package/dist/ai-service/agent/utils.d.ts.map +1 -0
- package/dist/ai-service/agent/utils.js +612 -0
- package/dist/ai-service/agent/utils.js.map +1 -0
- package/dist/ai-service/app-interface/cancellable-exec.d.ts +34 -0
- package/dist/ai-service/app-interface/cancellable-exec.d.ts.map +1 -0
- package/dist/ai-service/app-interface/cancellable-exec.js +98 -0
- package/dist/ai-service/app-interface/cancellable-exec.js.map +1 -0
- package/dist/ai-service/app-interface/constants.d.ts +60 -0
- package/dist/ai-service/app-interface/constants.d.ts.map +1 -0
- package/dist/ai-service/app-interface/constants.js +124 -0
- package/dist/ai-service/app-interface/constants.js.map +1 -0
- package/dist/ai-service/app-interface/file-system-interface.d.ts +22 -0
- package/dist/ai-service/app-interface/file-system-interface.d.ts.map +1 -0
- package/dist/ai-service/app-interface/file-system-interface.js +109 -0
- package/dist/ai-service/app-interface/file-system-interface.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts +87 -0
- package/dist/ai-service/app-interface/filesystem/draft-manager.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/draft-manager.js +91 -0
- package/dist/ai-service/app-interface/filesystem/draft-manager.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/handlers/api-handler.d.ts +36 -0
- package/dist/ai-service/app-interface/filesystem/handlers/api-handler.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/handlers/api-handler.js +250 -0
- package/dist/ai-service/app-interface/filesystem/handlers/api-handler.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts +95 -0
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js +530 -0
- package/dist/ai-service/app-interface/filesystem/handlers/skill-handler.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/index.d.ts +12 -0
- package/dist/ai-service/app-interface/filesystem/index.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/index.js +10 -0
- package/dist/ai-service/app-interface/filesystem/index.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/path-validator.d.ts +43 -0
- package/dist/ai-service/app-interface/filesystem/path-validator.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/path-validator.js +9 -0
- package/dist/ai-service/app-interface/filesystem/path-validator.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/sdk-path-validator.d.ts +50 -0
- package/dist/ai-service/app-interface/filesystem/sdk-path-validator.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/sdk-path-validator.js +70 -0
- package/dist/ai-service/app-interface/filesystem/sdk-path-validator.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/validation.d.ts +88 -0
- package/dist/ai-service/app-interface/filesystem/validation.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/validation.js +197 -0
- package/dist/ai-service/app-interface/filesystem/validation.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts +144 -0
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.js +238 -0
- package/dist/ai-service/app-interface/filesystem/virtual-file-system.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/virtual-fs-types.d.ts +126 -0
- package/dist/ai-service/app-interface/filesystem/virtual-fs-types.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/virtual-fs-types.js +9 -0
- package/dist/ai-service/app-interface/filesystem/virtual-fs-types.js.map +1 -0
- package/dist/ai-service/app-interface/filesystem/yaml-path-validator.d.ts +49 -0
- package/dist/ai-service/app-interface/filesystem/yaml-path-validator.d.ts.map +1 -0
- package/dist/ai-service/app-interface/filesystem/yaml-path-validator.js +67 -0
- package/dist/ai-service/app-interface/filesystem/yaml-path-validator.js.map +1 -0
- package/dist/ai-service/app-interface/linter.d.ts +11 -0
- package/dist/ai-service/app-interface/linter.d.ts.map +1 -0
- package/dist/ai-service/app-interface/linter.js +152 -0
- package/dist/ai-service/app-interface/linter.js.map +1 -0
- package/dist/ai-service/app-interface/npm-error-parser.d.ts +84 -0
- package/dist/ai-service/app-interface/npm-error-parser.d.ts.map +1 -0
- package/dist/ai-service/app-interface/npm-error-parser.js +510 -0
- package/dist/ai-service/app-interface/npm-error-parser.js.map +1 -0
- package/dist/ai-service/app-interface/npm-package-lookup.d.ts +338 -0
- package/dist/ai-service/app-interface/npm-package-lookup.d.ts.map +1 -0
- package/dist/ai-service/app-interface/npm-package-lookup.js +1043 -0
- package/dist/ai-service/app-interface/npm-package-lookup.js.map +1 -0
- package/dist/ai-service/app-interface/npm-registry.d.ts +913 -0
- package/dist/ai-service/app-interface/npm-registry.d.ts.map +1 -0
- package/dist/ai-service/app-interface/npm-registry.js +2461 -0
- package/dist/ai-service/app-interface/npm-registry.js.map +1 -0
- package/dist/ai-service/app-interface/shell.d.ts +575 -4
- package/dist/ai-service/app-interface/shell.d.ts.map +1 -1
- package/dist/ai-service/app-interface/shell.js +2596 -70
- package/dist/ai-service/app-interface/shell.js.map +1 -1
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts +83 -0
- package/dist/ai-service/app-interface/vulnerability-gate.d.ts.map +1 -0
- package/dist/ai-service/app-interface/vulnerability-gate.js +543 -0
- package/dist/ai-service/app-interface/vulnerability-gate.js.map +1 -0
- package/dist/ai-service/app-skills/build-knowledge-feedback-message.d.ts +3 -0
- package/dist/ai-service/app-skills/build-knowledge-feedback-message.d.ts.map +1 -0
- package/dist/ai-service/app-skills/build-knowledge-feedback-message.js +47 -0
- package/dist/ai-service/app-skills/build-knowledge-feedback-message.js.map +1 -0
- package/dist/ai-service/app-skills/helpers.d.ts +18 -0
- package/dist/ai-service/app-skills/helpers.d.ts.map +1 -0
- package/dist/ai-service/app-skills/helpers.js +441 -0
- package/dist/ai-service/app-skills/helpers.js.map +1 -0
- package/dist/ai-service/app-skills/manager.d.ts +68 -0
- package/dist/ai-service/app-skills/manager.d.ts.map +1 -0
- package/dist/ai-service/app-skills/manager.js +259 -0
- package/dist/ai-service/app-skills/manager.js.map +1 -0
- package/dist/ai-service/app-skills/parser.d.ts +53 -0
- package/dist/ai-service/app-skills/parser.d.ts.map +1 -0
- package/dist/ai-service/app-skills/parser.js +82 -0
- package/dist/ai-service/app-skills/parser.js.map +1 -0
- package/dist/ai-service/attachment-upload.d.ts +33 -0
- package/dist/ai-service/attachment-upload.d.ts.map +1 -0
- package/dist/ai-service/attachment-upload.js +98 -0
- package/dist/ai-service/attachment-upload.js.map +1 -0
- package/dist/ai-service/attachments/index.d.ts +2 -0
- package/dist/ai-service/attachments/index.d.ts.map +1 -0
- package/dist/ai-service/attachments/index.js +2 -0
- package/dist/ai-service/attachments/index.js.map +1 -0
- package/dist/ai-service/attachments/parse-data-url.d.ts +5 -0
- package/dist/ai-service/attachments/parse-data-url.d.ts.map +1 -0
- package/dist/ai-service/attachments/parse-data-url.js +14 -0
- package/dist/ai-service/attachments/parse-data-url.js.map +1 -0
- package/dist/ai-service/attachments/store.d.ts +96 -0
- package/dist/ai-service/attachments/store.d.ts.map +1 -0
- package/dist/ai-service/attachments/store.js +285 -0
- package/dist/ai-service/attachments/store.js.map +1 -0
- package/dist/ai-service/attachments/text-upload-artifacts.d.ts +37 -0
- package/dist/ai-service/attachments/text-upload-artifacts.d.ts.map +1 -0
- package/dist/ai-service/attachments/text-upload-artifacts.js +231 -0
- package/dist/ai-service/attachments/text-upload-artifacts.js.map +1 -0
- package/dist/ai-service/attachments/uploaded-content-part.d.ts +23 -0
- package/dist/ai-service/attachments/uploaded-content-part.d.ts.map +1 -0
- package/dist/ai-service/attachments/uploaded-content-part.js +137 -0
- package/dist/ai-service/attachments/uploaded-content-part.js.map +1 -0
- package/dist/ai-service/chat/chat-push-metrics.d.ts +13 -0
- package/dist/ai-service/chat/chat-push-metrics.d.ts.map +1 -0
- package/dist/ai-service/chat/chat-push-metrics.js +68 -0
- package/dist/ai-service/chat/chat-push-metrics.js.map +1 -0
- package/dist/ai-service/chat/chat-session-store-metrics.d.ts +13 -0
- package/dist/ai-service/chat/chat-session-store-metrics.d.ts.map +1 -0
- package/dist/ai-service/chat/chat-session-store-metrics.js +72 -0
- package/dist/ai-service/chat/chat-session-store-metrics.js.map +1 -0
- package/dist/ai-service/chat/chat-session-store.d.ts +170 -0
- package/dist/ai-service/chat/chat-session-store.d.ts.map +1 -0
- package/dist/ai-service/chat/chat-session-store.js +862 -0
- package/dist/ai-service/chat/chat-session-store.js.map +1 -0
- package/dist/ai-service/chat/extract-history.d.ts +3 -0
- package/dist/ai-service/chat/extract-history.d.ts.map +1 -0
- package/dist/ai-service/chat/extract-history.js +21 -0
- package/dist/ai-service/chat/extract-history.js.map +1 -0
- package/dist/ai-service/chat/transcript-budget.d.ts +106 -0
- package/dist/ai-service/chat/transcript-budget.d.ts.map +1 -0
- package/dist/ai-service/chat/transcript-budget.js +175 -0
- package/dist/ai-service/chat/transcript-budget.js.map +1 -0
- package/dist/ai-service/chat/transcript-metrics.d.ts +33 -0
- package/dist/ai-service/chat/transcript-metrics.d.ts.map +1 -0
- package/dist/ai-service/chat/transcript-metrics.js +169 -0
- package/dist/ai-service/chat/transcript-metrics.js.map +1 -0
- package/dist/ai-service/chat/utils.d.ts +16 -0
- package/dist/ai-service/chat/utils.d.ts.map +1 -0
- package/dist/ai-service/chat/utils.js +98 -0
- package/dist/ai-service/chat/utils.js.map +1 -0
- package/dist/ai-service/checklist/api-migration-checklist-gate.d.ts +11 -0
- package/dist/ai-service/checklist/api-migration-checklist-gate.d.ts.map +1 -0
- package/dist/ai-service/checklist/api-migration-checklist-gate.js +45 -0
- package/dist/ai-service/checklist/api-migration-checklist-gate.js.map +1 -0
- package/dist/ai-service/checklist/api-migration-origins.d.ts +4 -0
- package/dist/ai-service/checklist/api-migration-origins.d.ts.map +1 -0
- package/dist/ai-service/checklist/api-migration-origins.js +8 -0
- package/dist/ai-service/checklist/api-migration-origins.js.map +1 -0
- package/dist/ai-service/checklist/persisted-checklist-store.d.ts +108 -0
- package/dist/ai-service/checklist/persisted-checklist-store.d.ts.map +1 -0
- package/dist/ai-service/checklist/persisted-checklist-store.js +511 -0
- package/dist/ai-service/checklist/persisted-checklist-store.js.map +1 -0
- package/dist/ai-service/const.d.ts +86 -5
- package/dist/ai-service/const.d.ts.map +1 -1
- package/dist/ai-service/const.js +92 -5
- package/dist/ai-service/const.js.map +1 -1
- package/dist/ai-service/context/app-context.d.ts +78 -0
- package/dist/ai-service/context/app-context.d.ts.map +1 -0
- package/dist/ai-service/context/app-context.js +359 -0
- package/dist/ai-service/context/app-context.js.map +1 -0
- package/dist/ai-service/context-archive-paths.d.ts +11 -0
- package/dist/ai-service/context-archive-paths.d.ts.map +1 -0
- package/dist/ai-service/context-archive-paths.js +35 -0
- package/dist/ai-service/context-archive-paths.js.map +1 -0
- package/dist/ai-service/context-download.d.ts +56 -0
- package/dist/ai-service/context-download.d.ts.map +1 -0
- package/dist/ai-service/context-download.js +372 -0
- package/dist/ai-service/context-download.js.map +1 -0
- package/dist/ai-service/context-flush-scheduler.d.ts +76 -0
- package/dist/ai-service/context-flush-scheduler.d.ts.map +1 -0
- package/dist/ai-service/context-flush-scheduler.js +134 -0
- package/dist/ai-service/context-flush-scheduler.js.map +1 -0
- package/dist/ai-service/context-flush.d.ts +36 -0
- package/dist/ai-service/context-flush.d.ts.map +1 -0
- package/dist/ai-service/context-flush.js +90 -0
- package/dist/ai-service/context-flush.js.map +1 -0
- package/dist/ai-service/context-restore.d.ts +64 -0
- package/dist/ai-service/context-restore.d.ts.map +1 -0
- package/dist/ai-service/context-restore.js +136 -0
- package/dist/ai-service/context-restore.js.map +1 -0
- package/dist/ai-service/context-upload.d.ts +31 -0
- package/dist/ai-service/context-upload.d.ts.map +1 -0
- package/dist/ai-service/context-upload.js +180 -0
- package/dist/ai-service/context-upload.js.map +1 -0
- package/dist/ai-service/dev-database-client.d.ts +169 -0
- package/dist/ai-service/dev-database-client.d.ts.map +1 -0
- package/dist/ai-service/dev-database-client.js +180 -0
- package/dist/ai-service/dev-database-client.js.map +1 -0
- package/dist/ai-service/dev-database-file-sync.d.ts +41 -0
- package/dist/ai-service/dev-database-file-sync.d.ts.map +1 -0
- package/dist/ai-service/dev-database-file-sync.js +29 -0
- package/dist/ai-service/dev-database-file-sync.js.map +1 -0
- package/dist/ai-service/features.d.ts +237 -0
- package/dist/ai-service/features.d.ts.map +1 -0
- package/dist/ai-service/features.js +238 -0
- package/dist/ai-service/features.js.map +1 -0
- package/dist/ai-service/filter-disabled-tools-for-migration.d.ts +6 -0
- package/dist/ai-service/filter-disabled-tools-for-migration.d.ts.map +1 -0
- package/dist/ai-service/filter-disabled-tools-for-migration.js +42 -0
- package/dist/ai-service/filter-disabled-tools-for-migration.js.map +1 -0
- package/dist/ai-service/helper-system-ai-attributes.d.ts +19 -0
- package/dist/ai-service/helper-system-ai-attributes.d.ts.map +1 -0
- package/dist/ai-service/helper-system-ai-attributes.js +17 -0
- package/dist/ai-service/helper-system-ai-attributes.js.map +1 -0
- package/dist/ai-service/index.d.ts +693 -12
- package/dist/ai-service/index.d.ts.map +1 -1
- package/dist/ai-service/index.js +5021 -79
- package/dist/ai-service/index.js.map +1 -1
- package/dist/ai-service/integration-validator.d.ts +4 -0
- package/dist/ai-service/integration-validator.d.ts.map +1 -0
- package/dist/ai-service/integration-validator.js +58 -0
- package/dist/ai-service/integration-validator.js.map +1 -0
- package/dist/ai-service/integrations/gron.d.ts +18 -0
- package/dist/ai-service/integrations/gron.d.ts.map +1 -0
- package/dist/ai-service/integrations/gron.js +321 -0
- package/dist/ai-service/integrations/gron.js.map +1 -0
- package/dist/ai-service/integrations/mention-safe-tag-name.d.ts +12 -0
- package/dist/ai-service/integrations/mention-safe-tag-name.d.ts.map +1 -0
- package/dist/ai-service/integrations/mention-safe-tag-name.js +18 -0
- package/dist/ai-service/integrations/mention-safe-tag-name.js.map +1 -0
- package/dist/ai-service/integrations/metadata-binaries.d.ts +28 -0
- package/dist/ai-service/integrations/metadata-binaries.d.ts.map +1 -0
- package/dist/ai-service/integrations/metadata-binaries.js +48 -0
- package/dist/ai-service/integrations/metadata-binaries.js.map +1 -0
- package/dist/ai-service/integrations/metadata-storage/index.d.ts +35 -0
- package/dist/ai-service/integrations/metadata-storage/index.d.ts.map +1 -0
- package/dist/ai-service/integrations/metadata-storage/index.js +2 -0
- package/dist/ai-service/integrations/metadata-storage/index.js.map +1 -0
- package/dist/ai-service/integrations/metadata-storage/local.d.ts +56 -0
- package/dist/ai-service/integrations/metadata-storage/local.d.ts.map +1 -0
- package/dist/ai-service/integrations/metadata-storage/local.js +346 -0
- package/dist/ai-service/integrations/metadata-storage/local.js.map +1 -0
- package/dist/ai-service/integrations/ripgrep-path.d.ts +6 -0
- package/dist/ai-service/integrations/ripgrep-path.d.ts.map +1 -0
- package/dist/ai-service/integrations/ripgrep-path.js +56 -0
- package/dist/ai-service/integrations/ripgrep-path.js.map +1 -0
- package/dist/ai-service/integrations/store.d.ts +142 -0
- package/dist/ai-service/integrations/store.d.ts.map +1 -0
- package/dist/ai-service/integrations/store.js +574 -0
- package/dist/ai-service/integrations/store.js.map +1 -0
- package/dist/ai-service/judge/debug-browser.d.ts +8 -0
- package/dist/ai-service/judge/debug-browser.d.ts.map +1 -0
- package/dist/ai-service/judge/debug-browser.js +79 -0
- package/dist/ai-service/judge/debug-browser.js.map +1 -0
- package/dist/ai-service/judge/index.d.ts +12 -0
- package/dist/ai-service/judge/index.d.ts.map +1 -0
- package/dist/ai-service/judge/index.js +11 -0
- package/dist/ai-service/judge/index.js.map +1 -0
- package/dist/ai-service/judge/integration/playwright-bridge.d.ts +143 -0
- package/dist/ai-service/judge/integration/playwright-bridge.d.ts.map +1 -0
- package/dist/ai-service/judge/integration/playwright-bridge.js +209 -0
- package/dist/ai-service/judge/integration/playwright-bridge.js.map +1 -0
- package/dist/ai-service/judge/judge-eval-http.d.ts +3 -0
- package/dist/ai-service/judge/judge-eval-http.d.ts.map +1 -0
- package/dist/ai-service/judge/judge-eval-http.js +541 -0
- package/dist/ai-service/judge/judge-eval-http.js.map +1 -0
- package/dist/ai-service/judge/judge-eval-service-runner.d.ts +35 -0
- package/dist/ai-service/judge/judge-eval-service-runner.d.ts.map +1 -0
- package/dist/ai-service/judge/judge-eval-service-runner.js +129 -0
- package/dist/ai-service/judge/judge-eval-service-runner.js.map +1 -0
- package/dist/ai-service/judge/judge-executor.d.ts +65 -0
- package/dist/ai-service/judge/judge-executor.d.ts.map +1 -0
- package/dist/ai-service/judge/judge-executor.js +335 -0
- package/dist/ai-service/judge/judge-executor.js.map +1 -0
- package/dist/ai-service/judge/judge-service.d.ts +154 -0
- package/dist/ai-service/judge/judge-service.d.ts.map +1 -0
- package/dist/ai-service/judge/judge-service.js +220 -0
- package/dist/ai-service/judge/judge-service.js.map +1 -0
- package/dist/ai-service/judge/prompts/evaluation-criteria.d.ts +37 -0
- package/dist/ai-service/judge/prompts/evaluation-criteria.d.ts.map +1 -0
- package/dist/ai-service/judge/prompts/evaluation-criteria.js +283 -0
- package/dist/ai-service/judge/prompts/evaluation-criteria.js.map +1 -0
- package/dist/ai-service/judge/prompts/system-prompt.d.ts +30 -0
- package/dist/ai-service/judge/prompts/system-prompt.d.ts.map +1 -0
- package/dist/ai-service/judge/prompts/system-prompt.js +212 -0
- package/dist/ai-service/judge/prompts/system-prompt.js.map +1 -0
- package/dist/ai-service/judge/storage/csv-storage.d.ts +99 -0
- package/dist/ai-service/judge/storage/csv-storage.d.ts.map +1 -0
- package/dist/ai-service/judge/storage/csv-storage.js +274 -0
- package/dist/ai-service/judge/storage/csv-storage.js.map +1 -0
- package/dist/ai-service/judge/storage/index.d.ts +9 -0
- package/dist/ai-service/judge/storage/index.d.ts.map +1 -0
- package/dist/ai-service/judge/storage/index.js +7 -0
- package/dist/ai-service/judge/storage/index.js.map +1 -0
- package/dist/ai-service/judge/storage/interface.d.ts +51 -0
- package/dist/ai-service/judge/storage/interface.d.ts.map +1 -0
- package/dist/ai-service/judge/storage/interface.js +8 -0
- package/dist/ai-service/judge/storage/interface.js.map +1 -0
- package/dist/ai-service/judge/storage/types.d.ts +54 -0
- package/dist/ai-service/judge/storage/types.d.ts.map +1 -0
- package/dist/ai-service/judge/storage/types.js +7 -0
- package/dist/ai-service/judge/storage/types.js.map +1 -0
- package/dist/ai-service/judge/tools/index.d.ts +20 -0
- package/dist/ai-service/judge/tools/index.d.ts.map +1 -0
- package/dist/ai-service/judge/tools/index.js +27 -0
- package/dist/ai-service/judge/tools/index.js.map +1 -0
- package/dist/ai-service/judge/tools/playwright-action.d.ts +72 -0
- package/dist/ai-service/judge/tools/playwright-action.d.ts.map +1 -0
- package/dist/ai-service/judge/tools/playwright-action.js +171 -0
- package/dist/ai-service/judge/tools/playwright-action.js.map +1 -0
- package/dist/ai-service/judge/tools/submit-feedback.d.ts +34 -0
- package/dist/ai-service/judge/tools/submit-feedback.d.ts.map +1 -0
- package/dist/ai-service/judge/tools/submit-feedback.js +137 -0
- package/dist/ai-service/judge/tools/submit-feedback.js.map +1 -0
- package/dist/ai-service/judge/types.d.ts +169 -0
- package/dist/ai-service/judge/types.d.ts.map +1 -0
- package/dist/ai-service/judge/types.js +8 -0
- package/dist/ai-service/judge/types.js.map +1 -0
- package/dist/ai-service/knowledge/helpers.d.ts +17 -0
- package/dist/ai-service/knowledge/helpers.d.ts.map +1 -0
- package/dist/ai-service/knowledge/helpers.js +154 -0
- package/dist/ai-service/knowledge/helpers.js.map +1 -0
- package/dist/ai-service/knowledge/knowledge-manager.d.ts +85 -0
- package/dist/ai-service/knowledge/knowledge-manager.d.ts.map +1 -0
- package/dist/ai-service/knowledge/knowledge-manager.js +299 -0
- package/dist/ai-service/knowledge/knowledge-manager.js.map +1 -0
- package/dist/ai-service/knowledge/knowledge-metrics-emitters.d.ts +20 -0
- package/dist/ai-service/knowledge/knowledge-metrics-emitters.d.ts.map +1 -0
- package/dist/ai-service/knowledge/knowledge-metrics-emitters.js +77 -0
- package/dist/ai-service/knowledge/knowledge-metrics-emitters.js.map +1 -0
- package/dist/ai-service/knowledge/knowledge-metrics.d.ts +44 -0
- package/dist/ai-service/knowledge/knowledge-metrics.d.ts.map +1 -0
- package/dist/ai-service/knowledge/knowledge-metrics.js +217 -0
- package/dist/ai-service/knowledge/knowledge-metrics.js.map +1 -0
- package/dist/ai-service/live-edit-events/bridge.d.ts +21 -0
- package/dist/ai-service/live-edit-events/bridge.d.ts.map +1 -0
- package/dist/ai-service/live-edit-events/bridge.js +52 -0
- package/dist/ai-service/live-edit-events/bridge.js.map +1 -0
- package/dist/ai-service/live-edit-events/forwarder.d.ts +158 -0
- package/dist/ai-service/live-edit-events/forwarder.d.ts.map +1 -0
- package/dist/ai-service/live-edit-events/forwarder.js +403 -0
- package/dist/ai-service/live-edit-events/forwarder.js.map +1 -0
- package/dist/ai-service/llm/chaos-fetch.d.ts +90 -0
- package/dist/ai-service/llm/chaos-fetch.d.ts.map +1 -0
- package/dist/ai-service/llm/chaos-fetch.js +200 -0
- package/dist/ai-service/llm/chaos-fetch.js.map +1 -0
- package/dist/ai-service/llm/clark-stream-telemetry-sink.d.ts +4 -0
- package/dist/ai-service/llm/clark-stream-telemetry-sink.d.ts.map +1 -0
- package/dist/ai-service/llm/clark-stream-telemetry-sink.js +152 -0
- package/dist/ai-service/llm/clark-stream-telemetry-sink.js.map +1 -0
- package/dist/ai-service/llm/client.d.ts +315 -0
- package/dist/ai-service/llm/client.d.ts.map +1 -0
- package/dist/ai-service/llm/client.js +992 -0
- package/dist/ai-service/llm/client.js.map +1 -0
- package/dist/ai-service/llm/context-v2/adapter.d.ts +33 -0
- package/dist/ai-service/llm/context-v2/adapter.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/adapter.js +103 -0
- package/dist/ai-service/llm/context-v2/adapter.js.map +1 -0
- package/dist/ai-service/llm/context-v2/caching.d.ts +40 -0
- package/dist/ai-service/llm/context-v2/caching.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/caching.js +48 -0
- package/dist/ai-service/llm/context-v2/caching.js.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts +100 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.js +298 -0
- package/dist/ai-service/llm/context-v2/compaction/client-side.js.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts +73 -0
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.js +9 -0
- package/dist/ai-service/llm/context-v2/compaction/compaction-strategy.js.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts +33 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.js +137 -0
- package/dist/ai-service/llm/context-v2/compaction/server-side.js.map +1 -0
- package/dist/ai-service/llm/context-v2/compactor.d.ts +34 -0
- package/dist/ai-service/llm/context-v2/compactor.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/compactor.js +243 -0
- package/dist/ai-service/llm/context-v2/compactor.js.map +1 -0
- package/dist/ai-service/llm/context-v2/config.d.ts +27 -0
- package/dist/ai-service/llm/context-v2/config.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/config.js +59 -0
- package/dist/ai-service/llm/context-v2/config.js.map +1 -0
- package/dist/ai-service/llm/context-v2/context-management.d.ts +215 -0
- package/dist/ai-service/llm/context-v2/context-management.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/context-management.js +207 -0
- package/dist/ai-service/llm/context-v2/context-management.js.map +1 -0
- package/dist/ai-service/llm/context-v2/context-metrics.d.ts +150 -0
- package/dist/ai-service/llm/context-v2/context-metrics.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/context-metrics.js +602 -0
- package/dist/ai-service/llm/context-v2/context-metrics.js.map +1 -0
- package/dist/ai-service/llm/context-v2/context.d.ts +391 -0
- package/dist/ai-service/llm/context-v2/context.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/context.js +1666 -0
- package/dist/ai-service/llm/context-v2/context.js.map +1 -0
- package/dist/ai-service/llm/context-v2/conversation-context.d.ts +150 -0
- package/dist/ai-service/llm/context-v2/conversation-context.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/conversation-context.js +10 -0
- package/dist/ai-service/llm/context-v2/conversation-context.js.map +1 -0
- package/dist/ai-service/llm/context-v2/index.d.ts +13 -0
- package/dist/ai-service/llm/context-v2/index.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/index.js +13 -0
- package/dist/ai-service/llm/context-v2/index.js.map +1 -0
- package/dist/ai-service/llm/context-v2/manager.d.ts +188 -0
- package/dist/ai-service/llm/context-v2/manager.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/manager.js +629 -0
- package/dist/ai-service/llm/context-v2/manager.js.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/index.d.ts +7 -0
- package/dist/ai-service/llm/context-v2/migrations/index.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/index.js +7 -0
- package/dist/ai-service/llm/context-v2/migrations/index.js.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/registry.d.ts +19 -0
- package/dist/ai-service/llm/context-v2/migrations/registry.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/registry.js +32 -0
- package/dist/ai-service/llm/context-v2/migrations/registry.js.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/runner.d.ts +3 -0
- package/dist/ai-service/llm/context-v2/migrations/runner.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/runner.js +61 -0
- package/dist/ai-service/llm/context-v2/migrations/runner.js.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/types.d.ts +16 -0
- package/dist/ai-service/llm/context-v2/migrations/types.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/types.js +26 -0
- package/dist/ai-service/llm/context-v2/migrations/types.js.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.d.ts +25 -0
- package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.js +75 -0
- package/dist/ai-service/llm/context-v2/migrations/v1-to-v2.js.map +1 -0
- package/dist/ai-service/llm/context-v2/operation-queue.d.ts +9 -0
- package/dist/ai-service/llm/context-v2/operation-queue.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/operation-queue.js +13 -0
- package/dist/ai-service/llm/context-v2/operation-queue.js.map +1 -0
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts +20 -0
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js +360 -0
- package/dist/ai-service/llm/context-v2/phase1-tool-summarizer.js.map +1 -0
- package/dist/ai-service/llm/context-v2/phase2-session-summarizer.d.ts +68 -0
- package/dist/ai-service/llm/context-v2/phase2-session-summarizer.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/phase2-session-summarizer.js +377 -0
- package/dist/ai-service/llm/context-v2/phase2-session-summarizer.js.map +1 -0
- package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts +11 -0
- package/dist/ai-service/llm/context-v2/prompts/compaction.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/prompts/compaction.js +63 -0
- package/dist/ai-service/llm/context-v2/prompts/compaction.js.map +1 -0
- package/dist/ai-service/llm/context-v2/session-capture.d.ts +18 -0
- package/dist/ai-service/llm/context-v2/session-capture.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/session-capture.js +64 -0
- package/dist/ai-service/llm/context-v2/session-capture.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/event-store.d.ts +83 -0
- package/dist/ai-service/llm/context-v2/storage/event-store.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/event-store.js +10 -0
- package/dist/ai-service/llm/context-v2/storage/event-store.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/event-types.d.ts +59 -0
- package/dist/ai-service/llm/context-v2/storage/event-types.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/event-types.js +16 -0
- package/dist/ai-service/llm/context-v2/storage/event-types.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/index.d.ts +14 -0
- package/dist/ai-service/llm/context-v2/storage/index.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/index.js +2 -0
- package/dist/ai-service/llm/context-v2/storage/index.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.d.ts +108 -0
- package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.js +267 -0
- package/dist/ai-service/llm/context-v2/storage/jsonl-event-store.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.d.ts +46 -0
- package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.js +240 -0
- package/dist/ai-service/llm/context-v2/storage/legacy-context-adoption.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/local.d.ts +25 -0
- package/dist/ai-service/llm/context-v2/storage/local.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/local.js +124 -0
- package/dist/ai-service/llm/context-v2/storage/local.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/migration.d.ts +49 -0
- package/dist/ai-service/llm/context-v2/storage/migration.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/migration.js +126 -0
- package/dist/ai-service/llm/context-v2/storage/migration.js.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/types.d.ts +2 -0
- package/dist/ai-service/llm/context-v2/storage/types.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/storage/types.js +2 -0
- package/dist/ai-service/llm/context-v2/storage/types.js.map +1 -0
- package/dist/ai-service/llm/context-v2/token-tracker.d.ts +88 -0
- package/dist/ai-service/llm/context-v2/token-tracker.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/token-tracker.js +193 -0
- package/dist/ai-service/llm/context-v2/token-tracker.js.map +1 -0
- package/dist/ai-service/llm/context-v2/truncation-fallback.d.ts +10 -0
- package/dist/ai-service/llm/context-v2/truncation-fallback.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/truncation-fallback.js +124 -0
- package/dist/ai-service/llm/context-v2/truncation-fallback.js.map +1 -0
- package/dist/ai-service/llm/context-v2/turns.d.ts +24 -0
- package/dist/ai-service/llm/context-v2/turns.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/turns.js +85 -0
- package/dist/ai-service/llm/context-v2/turns.js.map +1 -0
- package/dist/ai-service/llm/context-v2/types-v1.d.ts +36 -0
- package/dist/ai-service/llm/context-v2/types-v1.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/types-v1.js +3 -0
- package/dist/ai-service/llm/context-v2/types-v1.js.map +1 -0
- package/dist/ai-service/llm/context-v2/types.d.ts +238 -0
- package/dist/ai-service/llm/context-v2/types.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/types.js +609 -0
- package/dist/ai-service/llm/context-v2/types.js.map +1 -0
- package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts +15 -0
- package/dist/ai-service/llm/context-v2/uniquify-filenames.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/uniquify-filenames.js +194 -0
- package/dist/ai-service/llm/context-v2/uniquify-filenames.js.map +1 -0
- package/dist/ai-service/llm/context-v2/utils/get-loaded-context.d.ts +9 -0
- package/dist/ai-service/llm/context-v2/utils/get-loaded-context.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/utils/get-loaded-context.js +6 -0
- package/dist/ai-service/llm/context-v2/utils/get-loaded-context.js.map +1 -0
- package/dist/ai-service/llm/context-v2/utils/index.d.ts +2 -0
- package/dist/ai-service/llm/context-v2/utils/index.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/utils/index.js +2 -0
- package/dist/ai-service/llm/context-v2/utils/index.js.map +1 -0
- package/dist/ai-service/llm/context-v2/well-formed-text.d.ts +24 -0
- package/dist/ai-service/llm/context-v2/well-formed-text.d.ts.map +1 -0
- package/dist/ai-service/llm/context-v2/well-formed-text.js +73 -0
- package/dist/ai-service/llm/context-v2/well-formed-text.js.map +1 -0
- package/dist/ai-service/llm/error.d.ts +153 -0
- package/dist/ai-service/llm/error.d.ts.map +1 -0
- package/dist/ai-service/llm/error.js +539 -0
- package/dist/ai-service/llm/error.js.map +1 -0
- package/dist/ai-service/llm/impl/clark.d.ts +11 -0
- package/dist/ai-service/llm/impl/clark.d.ts.map +1 -0
- package/dist/ai-service/llm/impl/clark.js +22 -0
- package/dist/ai-service/llm/impl/clark.js.map +1 -0
- package/dist/ai-service/llm/interaction/adapters/vercel.d.ts +67 -0
- package/dist/ai-service/llm/interaction/adapters/vercel.d.ts.map +1 -0
- package/dist/ai-service/llm/interaction/adapters/vercel.js +190 -0
- package/dist/ai-service/llm/interaction/adapters/vercel.js.map +1 -0
- package/dist/ai-service/llm/interaction/index.d.ts +4 -0
- package/dist/ai-service/llm/interaction/index.d.ts.map +1 -0
- package/dist/ai-service/llm/interaction/index.js +5 -0
- package/dist/ai-service/llm/interaction/index.js.map +1 -0
- package/dist/ai-service/llm/interaction/provider.d.ts +189 -0
- package/dist/ai-service/llm/interaction/provider.d.ts.map +1 -0
- package/dist/ai-service/llm/interaction/provider.js +15 -0
- package/dist/ai-service/llm/interaction/provider.js.map +1 -0
- package/dist/ai-service/llm/interaction/stream-lifecycle.d.ts +48 -0
- package/dist/ai-service/llm/interaction/stream-lifecycle.d.ts.map +1 -0
- package/dist/ai-service/llm/interaction/stream-lifecycle.js +147 -0
- package/dist/ai-service/llm/interaction/stream-lifecycle.js.map +1 -0
- package/dist/ai-service/llm/provider.d.ts +10 -0
- package/dist/ai-service/llm/provider.d.ts.map +1 -0
- package/dist/ai-service/llm/provider.js +370 -0
- package/dist/ai-service/llm/provider.js.map +1 -0
- package/dist/ai-service/llm/stream/compaction-text-block.d.ts +15 -0
- package/dist/ai-service/llm/stream/compaction-text-block.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/compaction-text-block.js +29 -0
- package/dist/ai-service/llm/stream/compaction-text-block.js.map +1 -0
- package/dist/ai-service/llm/stream/config.d.ts +151 -0
- package/dist/ai-service/llm/stream/config.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/config.js +108 -0
- package/dist/ai-service/llm/stream/config.js.map +1 -0
- package/dist/ai-service/llm/stream/empty-tool-call-tracker.d.ts +48 -0
- package/dist/ai-service/llm/stream/empty-tool-call-tracker.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/empty-tool-call-tracker.js +123 -0
- package/dist/ai-service/llm/stream/empty-tool-call-tracker.js.map +1 -0
- package/dist/ai-service/llm/stream/errors.d.ts +62 -0
- package/dist/ai-service/llm/stream/errors.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/errors.js +139 -0
- package/dist/ai-service/llm/stream/errors.js.map +1 -0
- package/dist/ai-service/llm/stream/event-bus.d.ts +75 -0
- package/dist/ai-service/llm/stream/event-bus.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/event-bus.js +51 -0
- package/dist/ai-service/llm/stream/event-bus.js.map +1 -0
- package/dist/ai-service/llm/stream/idle-monitor.d.ts +167 -0
- package/dist/ai-service/llm/stream/idle-monitor.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/idle-monitor.js +423 -0
- package/dist/ai-service/llm/stream/idle-monitor.js.map +1 -0
- package/dist/ai-service/llm/stream/index.d.ts +51 -0
- package/dist/ai-service/llm/stream/index.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/index.js +48 -0
- package/dist/ai-service/llm/stream/index.js.map +1 -0
- package/dist/ai-service/llm/stream/managed-stream.d.ts +32 -0
- package/dist/ai-service/llm/stream/managed-stream.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/managed-stream.js +219 -0
- package/dist/ai-service/llm/stream/managed-stream.js.map +1 -0
- package/dist/ai-service/llm/stream/observer.d.ts +34 -0
- package/dist/ai-service/llm/stream/observer.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observer.js +2 -0
- package/dist/ai-service/llm/stream/observer.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/context.d.ts +63 -0
- package/dist/ai-service/llm/stream/observers/context.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/context.js +235 -0
- package/dist/ai-service/llm/stream/observers/context.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/index.d.ts +8 -0
- package/dist/ai-service/llm/stream/observers/index.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/index.js +8 -0
- package/dist/ai-service/llm/stream/observers/index.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/llmobs.d.ts +94 -0
- package/dist/ai-service/llm/stream/observers/llmobs.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/llmobs.js +796 -0
- package/dist/ai-service/llm/stream/observers/llmobs.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/logging.d.ts +74 -0
- package/dist/ai-service/llm/stream/observers/logging.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/logging.js +509 -0
- package/dist/ai-service/llm/stream/observers/logging.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/retry-notification.d.ts +21 -0
- package/dist/ai-service/llm/stream/observers/retry-notification.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/retry-notification.js +71 -0
- package/dist/ai-service/llm/stream/observers/retry-notification.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/step-token-usage.d.ts +15 -0
- package/dist/ai-service/llm/stream/observers/step-token-usage.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/step-token-usage.js +88 -0
- package/dist/ai-service/llm/stream/observers/step-token-usage.js.map +1 -0
- package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts +19 -0
- package/dist/ai-service/llm/stream/observers/workflow-usage.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/observers/workflow-usage.js +112 -0
- package/dist/ai-service/llm/stream/observers/workflow-usage.js.map +1 -0
- package/dist/ai-service/llm/stream/orchestrator.d.ts +133 -0
- package/dist/ai-service/llm/stream/orchestrator.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/orchestrator.js +1297 -0
- package/dist/ai-service/llm/stream/orchestrator.js.map +1 -0
- package/dist/ai-service/llm/stream/retry-engine.d.ts +89 -0
- package/dist/ai-service/llm/stream/retry-engine.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/retry-engine.js +367 -0
- package/dist/ai-service/llm/stream/retry-engine.js.map +1 -0
- package/dist/ai-service/llm/stream/session.d.ts +94 -0
- package/dist/ai-service/llm/stream/session.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/session.js +173 -0
- package/dist/ai-service/llm/stream/session.js.map +1 -0
- package/dist/ai-service/llm/stream/structured-output-chunk.d.ts +16 -0
- package/dist/ai-service/llm/stream/structured-output-chunk.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/structured-output-chunk.js +26 -0
- package/dist/ai-service/llm/stream/structured-output-chunk.js.map +1 -0
- package/dist/ai-service/llm/stream/terminal-reason.d.ts +6 -0
- package/dist/ai-service/llm/stream/terminal-reason.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/terminal-reason.js +83 -0
- package/dist/ai-service/llm/stream/terminal-reason.js.map +1 -0
- package/dist/ai-service/llm/stream/tests/helpers/mock-provider.d.ts +98 -0
- package/dist/ai-service/llm/stream/tests/helpers/mock-provider.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/tests/helpers/mock-provider.js +521 -0
- package/dist/ai-service/llm/stream/tests/helpers/mock-provider.js.map +1 -0
- package/dist/ai-service/llm/stream/types.d.ts +16 -0
- package/dist/ai-service/llm/stream/types.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/types.js +2 -0
- package/dist/ai-service/llm/stream/types.js.map +1 -0
- package/dist/ai-service/llm/stream/wait-state-tracker.d.ts +55 -0
- package/dist/ai-service/llm/stream/wait-state-tracker.d.ts.map +1 -0
- package/dist/ai-service/llm/stream/wait-state-tracker.js +109 -0
- package/dist/ai-service/llm/stream/wait-state-tracker.js.map +1 -0
- package/dist/ai-service/llm/tool-context-integrity.d.ts +25 -0
- package/dist/ai-service/llm/tool-context-integrity.d.ts.map +1 -0
- package/dist/ai-service/llm/tool-context-integrity.js +141 -0
- package/dist/ai-service/llm/tool-context-integrity.js.map +1 -0
- package/dist/ai-service/llm/types.d.ts +44 -0
- package/dist/ai-service/llm/types.d.ts.map +1 -0
- package/dist/ai-service/llm/types.js +2 -0
- package/dist/ai-service/llm/types.js.map +1 -0
- package/dist/ai-service/llm/workflow-metrics.d.ts +14 -0
- package/dist/ai-service/llm/workflow-metrics.d.ts.map +1 -0
- package/dist/ai-service/llm/workflow-metrics.js +19 -0
- package/dist/ai-service/llm/workflow-metrics.js.map +1 -0
- package/dist/ai-service/llmobs/constants.d.ts +5 -0
- package/dist/ai-service/llmobs/constants.d.ts.map +1 -0
- package/dist/ai-service/llmobs/constants.js +5 -0
- package/dist/ai-service/llmobs/constants.js.map +1 -0
- package/dist/ai-service/llmobs/context-registry.d.ts +62 -0
- package/dist/ai-service/llmobs/context-registry.d.ts.map +1 -0
- package/dist/ai-service/llmobs/context-registry.js +115 -0
- package/dist/ai-service/llmobs/context-registry.js.map +1 -0
- package/dist/ai-service/llmobs/helpers.d.ts +5 -0
- package/dist/ai-service/llmobs/helpers.d.ts.map +1 -0
- package/dist/ai-service/llmobs/helpers.js +31 -0
- package/dist/ai-service/llmobs/helpers.js.map +1 -0
- package/dist/ai-service/llmobs/index.d.ts +8 -0
- package/dist/ai-service/llmobs/index.d.ts.map +1 -0
- package/dist/ai-service/llmobs/index.js +7 -0
- package/dist/ai-service/llmobs/index.js.map +1 -0
- package/dist/ai-service/llmobs/otel-exporter.d.ts +178 -0
- package/dist/ai-service/llmobs/otel-exporter.d.ts.map +1 -0
- package/dist/ai-service/llmobs/otel-exporter.js +660 -0
- package/dist/ai-service/llmobs/otel-exporter.js.map +1 -0
- package/dist/ai-service/llmobs/tracer.d.ts +130 -0
- package/dist/ai-service/llmobs/tracer.d.ts.map +1 -0
- package/dist/ai-service/llmobs/tracer.js +532 -0
- package/dist/ai-service/llmobs/tracer.js.map +1 -0
- package/dist/ai-service/llmobs/types.d.ts +71 -0
- package/dist/ai-service/llmobs/types.d.ts.map +1 -0
- package/dist/ai-service/llmobs/types.js +2 -0
- package/dist/ai-service/llmobs/types.js.map +1 -0
- package/dist/ai-service/llmobs/utils.d.ts +15 -0
- package/dist/ai-service/llmobs/utils.d.ts.map +1 -0
- package/dist/ai-service/llmobs/utils.js +82 -0
- package/dist/ai-service/llmobs/utils.js.map +1 -0
- package/dist/ai-service/managed-native-db-availability.d.ts +62 -0
- package/dist/ai-service/managed-native-db-availability.d.ts.map +1 -0
- package/dist/ai-service/managed-native-db-availability.js +37 -0
- package/dist/ai-service/managed-native-db-availability.js.map +1 -0
- package/dist/ai-service/mcp/adapter/index.d.ts +8 -0
- package/dist/ai-service/mcp/adapter/index.d.ts.map +1 -0
- package/dist/ai-service/mcp/adapter/index.js +10 -0
- package/dist/ai-service/mcp/adapter/index.js.map +1 -0
- package/dist/ai-service/mcp/adapter/json-schema-to-zod.d.ts +44 -0
- package/dist/ai-service/mcp/adapter/json-schema-to-zod.d.ts.map +1 -0
- package/dist/ai-service/mcp/adapter/json-schema-to-zod.js +231 -0
- package/dist/ai-service/mcp/adapter/json-schema-to-zod.js.map +1 -0
- package/dist/ai-service/mcp/adapter/mcp-tool-adapter.d.ts +126 -0
- package/dist/ai-service/mcp/adapter/mcp-tool-adapter.d.ts.map +1 -0
- package/dist/ai-service/mcp/adapter/mcp-tool-adapter.js +365 -0
- package/dist/ai-service/mcp/adapter/mcp-tool-adapter.js.map +1 -0
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.d.ts +85 -0
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.d.ts.map +1 -0
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js +1626 -0
- package/dist/ai-service/mcp/embedded-playwright-mcp-server.js.map +1 -0
- package/dist/ai-service/mcp/index.d.ts +11 -0
- package/dist/ai-service/mcp/index.d.ts.map +1 -0
- package/dist/ai-service/mcp/index.js +11 -0
- package/dist/ai-service/mcp/index.js.map +1 -0
- package/dist/ai-service/mcp/playwright-server.d.ts +153 -0
- package/dist/ai-service/mcp/playwright-server.d.ts.map +1 -0
- package/dist/ai-service/mcp/playwright-server.js +174 -0
- package/dist/ai-service/mcp/playwright-server.js.map +1 -0
- package/dist/ai-service/mcp/types.d.ts +101 -0
- package/dist/ai-service/mcp/types.d.ts.map +1 -0
- package/dist/ai-service/mcp/types.js +7 -0
- package/dist/ai-service/mcp/types.js.map +1 -0
- package/dist/ai-service/migration-auto-dispatch-readiness.d.ts +19 -0
- package/dist/ai-service/migration-auto-dispatch-readiness.d.ts.map +1 -0
- package/dist/ai-service/migration-auto-dispatch-readiness.js +17 -0
- package/dist/ai-service/migration-auto-dispatch-readiness.js.map +1 -0
- package/dist/ai-service/migration-autodispatch-metrics.d.ts +3 -0
- package/dist/ai-service/migration-autodispatch-metrics.d.ts.map +1 -0
- package/dist/ai-service/migration-autodispatch-metrics.js +52 -0
- package/dist/ai-service/migration-autodispatch-metrics.js.map +1 -0
- package/dist/ai-service/migration-llm-config.d.ts +12 -0
- package/dist/ai-service/migration-llm-config.d.ts.map +1 -0
- package/dist/ai-service/migration-llm-config.js +132 -0
- package/dist/ai-service/migration-llm-config.js.map +1 -0
- package/dist/ai-service/migration-prompt-gating.d.ts +21 -0
- package/dist/ai-service/migration-prompt-gating.d.ts.map +1 -0
- package/dist/ai-service/migration-prompt-gating.js +27 -0
- package/dist/ai-service/migration-prompt-gating.js.map +1 -0
- package/dist/ai-service/migration-session-active.d.ts +14 -0
- package/dist/ai-service/migration-session-active.d.ts.map +1 -0
- package/dist/ai-service/migration-session-active.js +29 -0
- package/dist/ai-service/migration-session-active.js.map +1 -0
- package/dist/ai-service/migration-turns-log.d.ts +36 -0
- package/dist/ai-service/migration-turns-log.d.ts.map +1 -0
- package/dist/ai-service/migration-turns-log.js +88 -0
- package/dist/ai-service/migration-turns-log.js.map +1 -0
- package/dist/ai-service/policy-agent-metrics.d.ts +29 -0
- package/dist/ai-service/policy-agent-metrics.d.ts.map +1 -0
- package/dist/ai-service/policy-agent-metrics.js +141 -0
- package/dist/ai-service/policy-agent-metrics.js.map +1 -0
- package/dist/ai-service/policy-gate-error.d.ts +3 -0
- package/dist/ai-service/policy-gate-error.d.ts.map +1 -0
- package/dist/ai-service/policy-gate-error.js +33 -0
- package/dist/ai-service/policy-gate-error.js.map +1 -0
- package/dist/ai-service/policy-gate-step.d.ts +17 -0
- package/dist/ai-service/policy-gate-step.d.ts.map +1 -0
- package/dist/ai-service/policy-gate-step.js +52 -0
- package/dist/ai-service/policy-gate-step.js.map +1 -0
- package/dist/ai-service/profiler/clark-profiler.d.ts +86 -0
- package/dist/ai-service/profiler/clark-profiler.d.ts.map +1 -0
- package/dist/ai-service/profiler/clark-profiler.js +209 -0
- package/dist/ai-service/profiler/clark-profiler.js.map +1 -0
- package/dist/ai-service/profiler/index.d.ts +4 -0
- package/dist/ai-service/profiler/index.d.ts.map +1 -0
- package/dist/ai-service/profiler/index.js +4 -0
- package/dist/ai-service/profiler/index.js.map +1 -0
- package/dist/ai-service/profiler/perfetto-profiler.d.ts +116 -0
- package/dist/ai-service/profiler/perfetto-profiler.d.ts.map +1 -0
- package/dist/ai-service/profiler/perfetto-profiler.js +240 -0
- package/dist/ai-service/profiler/perfetto-profiler.js.map +1 -0
- package/dist/ai-service/profiler/tool-profiler.d.ts +33 -0
- package/dist/ai-service/profiler/tool-profiler.d.ts.map +1 -0
- package/dist/ai-service/profiler/tool-profiler.js +157 -0
- package/dist/ai-service/profiler/tool-profiler.js.map +1 -0
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts +27 -0
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.d.ts.map +1 -0
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js +97 -0
- package/dist/ai-service/prompt-builder-service/classifiers/prompt-interpret-task.js.map +1 -0
- package/dist/ai-service/prompt-builder-service/types.d.ts +3 -0
- package/dist/ai-service/prompt-builder-service/types.d.ts.map +1 -0
- package/dist/ai-service/prompt-builder-service/types.js +6 -0
- package/dist/ai-service/prompt-builder-service/types.js.map +1 -0
- package/dist/ai-service/prompts/summarize-api-usage.d.ts +18 -0
- package/dist/ai-service/prompts/summarize-api-usage.d.ts.map +1 -0
- package/dist/ai-service/prompts/summarize-api-usage.js +30 -0
- package/dist/ai-service/prompts/summarize-api-usage.js.map +1 -0
- package/dist/ai-service/quota-client.d.ts +31 -0
- package/dist/ai-service/quota-client.d.ts.map +1 -0
- package/dist/ai-service/quota-client.js +72 -0
- package/dist/ai-service/quota-client.js.map +1 -0
- package/dist/ai-service/recording/block-traversal.d.ts +15 -0
- package/dist/ai-service/recording/block-traversal.d.ts.map +1 -0
- package/dist/ai-service/recording/block-traversal.js +104 -0
- package/dist/ai-service/recording/block-traversal.js.map +1 -0
- package/dist/ai-service/recording/index.d.ts +26 -0
- package/dist/ai-service/recording/index.d.ts.map +1 -0
- package/dist/ai-service/recording/index.js +29 -0
- package/dist/ai-service/recording/index.js.map +1 -0
- package/dist/ai-service/recording/recorders/llm-recorder.d.ts +35 -0
- package/dist/ai-service/recording/recorders/llm-recorder.d.ts.map +1 -0
- package/dist/ai-service/recording/recorders/llm-recorder.js +221 -0
- package/dist/ai-service/recording/recorders/llm-recorder.js.map +1 -0
- package/dist/ai-service/recording/recorders/socket-recorder.d.ts +38 -0
- package/dist/ai-service/recording/recorders/socket-recorder.d.ts.map +1 -0
- package/dist/ai-service/recording/recorders/socket-recorder.js +44 -0
- package/dist/ai-service/recording/recorders/socket-recorder.js.map +1 -0
- package/dist/ai-service/recording/recorders/tool-recorder.d.ts +25 -0
- package/dist/ai-service/recording/recorders/tool-recorder.d.ts.map +1 -0
- package/dist/ai-service/recording/recorders/tool-recorder.js +58 -0
- package/dist/ai-service/recording/recorders/tool-recorder.js.map +1 -0
- package/dist/ai-service/recording/recording-manager.d.ts +105 -0
- package/dist/ai-service/recording/recording-manager.d.ts.map +1 -0
- package/dist/ai-service/recording/recording-manager.js +308 -0
- package/dist/ai-service/recording/recording-manager.js.map +1 -0
- package/dist/ai-service/recording/snapshot-manager.d.ts +195 -0
- package/dist/ai-service/recording/snapshot-manager.d.ts.map +1 -0
- package/dist/ai-service/recording/snapshot-manager.js +708 -0
- package/dist/ai-service/recording/snapshot-manager.js.map +1 -0
- package/dist/ai-service/recording/storage/session-recording-storage.d.ts +148 -0
- package/dist/ai-service/recording/storage/session-recording-storage.d.ts.map +1 -0
- package/dist/ai-service/recording/storage/session-recording-storage.js +399 -0
- package/dist/ai-service/recording/storage/session-recording-storage.js.map +1 -0
- package/dist/ai-service/recording/types.d.ts +140 -0
- package/dist/ai-service/recording/types.d.ts.map +1 -0
- package/dist/ai-service/recording/types.js +8 -0
- package/dist/ai-service/recording/types.js.map +1 -0
- package/dist/ai-service/request-deduplicator.d.ts +35 -0
- package/dist/ai-service/request-deduplicator.d.ts.map +1 -0
- package/dist/ai-service/request-deduplicator.js +53 -0
- package/dist/ai-service/request-deduplicator.js.map +1 -0
- package/dist/ai-service/resolve-generation-state-for-ui.d.ts +9 -0
- package/dist/ai-service/resolve-generation-state-for-ui.d.ts.map +1 -0
- package/dist/ai-service/resolve-generation-state-for-ui.js +25 -0
- package/dist/ai-service/resolve-generation-state-for-ui.js.map +1 -0
- package/dist/ai-service/sdk-api-templates.d.ts +2 -0
- package/dist/ai-service/sdk-api-templates.d.ts.map +1 -0
- package/dist/ai-service/sdk-api-templates.js +2 -0
- package/dist/ai-service/sdk-api-templates.js.map +1 -0
- package/dist/ai-service/security/index.d.ts +9 -0
- package/dist/ai-service/security/index.d.ts.map +1 -0
- package/dist/ai-service/security/index.js +9 -0
- package/dist/ai-service/security/index.js.map +1 -0
- package/dist/ai-service/security/safety-classifier.d.ts +83 -0
- package/dist/ai-service/security/safety-classifier.d.ts.map +1 -0
- package/dist/ai-service/security/safety-classifier.js +189 -0
- package/dist/ai-service/security/safety-classifier.js.map +1 -0
- package/dist/ai-service/security/secret-scanner-service.d.ts +43 -0
- package/dist/ai-service/security/secret-scanner-service.d.ts.map +1 -0
- package/dist/ai-service/security/secret-scanner-service.js +422 -0
- package/dist/ai-service/security/secret-scanner-service.js.map +1 -0
- package/dist/ai-service/security/secret-scanner.d.ts +161 -0
- package/dist/ai-service/security/secret-scanner.d.ts.map +1 -0
- package/dist/ai-service/security/secret-scanner.js +459 -0
- package/dist/ai-service/security/secret-scanner.js.map +1 -0
- package/dist/ai-service/security/vulnerability-triage.d.ts +90 -0
- package/dist/ai-service/security/vulnerability-triage.d.ts.map +1 -0
- package/dist/ai-service/security/vulnerability-triage.js +113 -0
- package/dist/ai-service/security/vulnerability-triage.js.map +1 -0
- package/dist/ai-service/skills/index.d.ts +38 -0
- package/dist/ai-service/skills/index.d.ts.map +1 -0
- package/dist/ai-service/skills/index.js +104 -0
- package/dist/ai-service/skills/index.js.map +1 -0
- package/dist/ai-service/skills/system/_registry.generated.d.ts +6 -0
- package/dist/ai-service/skills/system/_registry.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/_registry.generated.js +43 -0
- package/dist/ai-service/skills/system/_registry.generated.js.map +1 -0
- package/dist/ai-service/skills/system/common-import-issues/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/common-import-issues/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/common-import-issues/skill.generated.js +93 -0
- package/dist/ai-service/skills/system/common-import-issues/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/materialized.d.ts +7 -0
- package/dist/ai-service/skills/system/materialized.d.ts.map +1 -0
- package/dist/ai-service/skills/system/materialized.js +33 -0
- package/dist/ai-service/skills/system/materialized.js.map +1 -0
- package/dist/ai-service/skills/system/migration-api-verification/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/migration-api-verification/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/migration-api-verification/skill.generated.js +119 -0
- package/dist/ai-service/skills/system/migration-api-verification/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.js +274 -0
- package/dist/ai-service/skills/system/superblocks-api/references/code-blocks.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.js +214 -0
- package/dist/ai-service/skills/system/superblocks-api/references/graphql.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.js +276 -0
- package/dist/ai-service/skills/system/superblocks-api/references/rest-apis.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.js +412 -0
- package/dist/ai-service/skills/system/superblocks-api/references/sql-databases.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-api/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-api/skill.generated.js +891 -0
- package/dist/ai-service/skills/system/superblocks-api/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.js +155 -0
- package/dist/ai-service/skills/system/superblocks-frontend/references/embedding.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js +756 -0
- package/dist/ai-service/skills/system/superblocks-frontend/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js +60 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/focused-debug.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js +136 -0
- package/dist/ai-service/skills/system/superblocks-migration/references/yaml-block-mapping.generated.js.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js +312 -0
- package/dist/ai-service/skills/system/superblocks-migration/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js +124 -0
- package/dist/ai-service/skills/system/third-party-migration/claude-design.generated.js.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/lovable.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/third-party-migration/lovable.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/lovable.generated.js +79 -0
- package/dist/ai-service/skills/system/third-party-migration/lovable.generated.js.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/replit.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/third-party-migration/replit.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/replit.generated.js +65 -0
- package/dist/ai-service/skills/system/third-party-migration/replit.generated.js.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.js +171 -0
- package/dist/ai-service/skills/system/third-party-migration/skill.generated.js.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/v0.generated.d.ts +2 -0
- package/dist/ai-service/skills/system/third-party-migration/v0.generated.d.ts.map +1 -0
- package/dist/ai-service/skills/system/third-party-migration/v0.generated.js +118 -0
- package/dist/ai-service/skills/system/third-party-migration/v0.generated.js.map +1 -0
- package/dist/ai-service/skills/system/tool-paths.d.ts +3 -0
- package/dist/ai-service/skills/system/tool-paths.d.ts.map +1 -0
- package/dist/ai-service/skills/system/tool-paths.js +16 -0
- package/dist/ai-service/skills/system/tool-paths.js.map +1 -0
- package/dist/ai-service/skills/types.d.ts +69 -0
- package/dist/ai-service/skills/types.d.ts.map +1 -0
- package/dist/ai-service/skills/types.js +121 -0
- package/dist/ai-service/skills/types.js.map +1 -0
- package/dist/ai-service/state-machine/clark-fsm.d.ts +570 -22
- package/dist/ai-service/state-machine/clark-fsm.d.ts.map +1 -1
- package/dist/ai-service/state-machine/clark-fsm.js +408 -0
- package/dist/ai-service/state-machine/clark-fsm.js.map +1 -1
- package/dist/ai-service/state-machine/fsm.d.ts +17 -16
- package/dist/ai-service/state-machine/fsm.d.ts.map +1 -1
- package/dist/ai-service/state-machine/fsm.js +2 -1
- package/dist/ai-service/state-machine/fsm.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/agent-planning.d.ts +12 -0
- package/dist/ai-service/state-machine/handlers/agent-planning.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/agent-planning.js +1088 -168
- package/dist/ai-service/state-machine/handlers/agent-planning.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/awaiting-user.d.ts +1 -1
- package/dist/ai-service/state-machine/handlers/awaiting-user.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/awaiting-user.js +335 -13
- package/dist/ai-service/state-machine/handlers/awaiting-user.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.d.ts +11 -0
- package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.d.ts.map +1 -0
- package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.js +11 -0
- package/dist/ai-service/state-machine/handlers/flush-pending-chat-pushes.js.map +1 -0
- package/dist/ai-service/state-machine/handlers/idle.d.ts +2 -2
- package/dist/ai-service/state-machine/handlers/idle.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/idle.js +138 -8
- package/dist/ai-service/state-machine/handlers/idle.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/llm-generating.d.ts +37 -2
- package/dist/ai-service/state-machine/handlers/llm-generating.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/llm-generating.js +1225 -136
- package/dist/ai-service/state-machine/handlers/llm-generating.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/next-steps.d.ts +22 -0
- package/dist/ai-service/state-machine/handlers/next-steps.d.ts.map +1 -0
- package/dist/ai-service/state-machine/handlers/next-steps.js +85 -0
- package/dist/ai-service/state-machine/handlers/next-steps.js.map +1 -0
- package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.d.ts +25 -0
- package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.d.ts.map +1 -0
- package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.js +68 -0
- package/dist/ai-service/state-machine/handlers/persist-prompt-attachments.js.map +1 -0
- package/dist/ai-service/state-machine/handlers/play-dead.d.ts +2 -2
- package/dist/ai-service/state-machine/handlers/play-dead.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/play-dead.js +18 -4
- package/dist/ai-service/state-machine/handlers/play-dead.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/post-processing.d.ts +6 -1
- package/dist/ai-service/state-machine/handlers/post-processing.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/post-processing.js +234 -43
- package/dist/ai-service/state-machine/handlers/post-processing.js.map +1 -1
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.d.ts.map +1 -1
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.js +116 -6
- package/dist/ai-service/state-machine/handlers/runtime-reviewing.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.d.ts +7 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.js +47 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record.d.ts +33 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record.js +61 -0
- package/dist/ai-service/state-machine/helpers/background-chat-record.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/change-info.d.ts +8 -0
- package/dist/ai-service/state-machine/helpers/change-info.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/change-info.js +100 -0
- package/dist/ai-service/state-machine/helpers/change-info.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/classification.d.ts +5 -0
- package/dist/ai-service/state-machine/helpers/classification.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/classification.js +13 -0
- package/dist/ai-service/state-machine/helpers/classification.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/context-id.d.ts +4 -0
- package/dist/ai-service/state-machine/helpers/context-id.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/context-id.js +18 -0
- package/dist/ai-service/state-machine/helpers/context-id.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.d.ts +7 -0
- package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.js +38 -0
- package/dist/ai-service/state-machine/helpers/fetch-with-reconnect-retry.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.d.ts +27 -0
- package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.js +34 -0
- package/dist/ai-service/state-machine/helpers/headless-turn-lifecycle.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/peer.d.ts +83 -3
- package/dist/ai-service/state-machine/helpers/peer.d.ts.map +1 -1
- package/dist/ai-service/state-machine/helpers/peer.js +342 -4
- package/dist/ai-service/state-machine/helpers/peer.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.d.ts +21 -0
- package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.js +71 -0
- package/dist/ai-service/state-machine/helpers/policy-gate-usage-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/pre-session-metrics.d.ts +38 -0
- package/dist/ai-service/state-machine/helpers/pre-session-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/pre-session-metrics.js +131 -0
- package/dist/ai-service/state-machine/helpers/pre-session-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.d.ts +26 -0
- package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.js +128 -0
- package/dist/ai-service/state-machine/helpers/prompt-billing-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts +28 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js +254 -0
- package/dist/ai-service/state-machine/helpers/prompt-degradation-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-failure.d.ts +59 -0
- package/dist/ai-service/state-machine/helpers/prompt-failure.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-failure.js +168 -0
- package/dist/ai-service/state-machine/helpers/prompt-failure.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts +229 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js +675 -0
- package/dist/ai-service/state-machine/helpers/prompt-request-metrics.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/stable-peer.d.ts +271 -0
- package/dist/ai-service/state-machine/helpers/stable-peer.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/stable-peer.js +630 -0
- package/dist/ai-service/state-machine/helpers/stable-peer.js.map +1 -0
- package/dist/ai-service/state-machine/helpers/transition.d.ts.map +1 -1
- package/dist/ai-service/state-machine/helpers/transition.js +8 -3
- package/dist/ai-service/state-machine/helpers/transition.js.map +1 -1
- package/dist/ai-service/state-machine/helpers/user-preferences.d.ts +8 -0
- package/dist/ai-service/state-machine/helpers/user-preferences.d.ts.map +1 -0
- package/dist/ai-service/state-machine/helpers/user-preferences.js +11 -0
- package/dist/ai-service/state-machine/helpers/user-preferences.js.map +1 -0
- package/dist/ai-service/state-machine/mocks.d.ts +3 -3
- package/dist/ai-service/state-machine/mocks.d.ts.map +1 -1
- package/dist/ai-service/state-machine/mocks.js +125 -20
- package/dist/ai-service/state-machine/mocks.js.map +1 -1
- package/dist/ai-service/state-machine/traced-fsm.d.ts +89 -0
- package/dist/ai-service/state-machine/traced-fsm.d.ts.map +1 -0
- package/dist/ai-service/state-machine/traced-fsm.js +179 -0
- package/dist/ai-service/state-machine/traced-fsm.js.map +1 -0
- package/dist/ai-service/tasks/access.d.ts +23 -0
- package/dist/ai-service/tasks/access.d.ts.map +1 -0
- package/dist/ai-service/tasks/access.js +26 -0
- package/dist/ai-service/tasks/access.js.map +1 -0
- package/dist/ai-service/tasks/factory.d.ts +106 -0
- package/dist/ai-service/tasks/factory.d.ts.map +1 -0
- package/dist/ai-service/tasks/factory.js +71 -0
- package/dist/ai-service/tasks/factory.js.map +1 -0
- package/dist/ai-service/tasks/index.d.ts +6 -0
- package/dist/ai-service/tasks/index.d.ts.map +1 -0
- package/dist/ai-service/tasks/index.js +5 -0
- package/dist/ai-service/tasks/index.js.map +1 -0
- package/dist/ai-service/tasks/peer-push.d.ts +81 -0
- package/dist/ai-service/tasks/peer-push.d.ts.map +1 -0
- package/dist/ai-service/tasks/peer-push.js +84 -0
- package/dist/ai-service/tasks/peer-push.js.map +1 -0
- package/dist/ai-service/tasks/poll-loop.d.ts +56 -0
- package/dist/ai-service/tasks/poll-loop.d.ts.map +1 -0
- package/dist/ai-service/tasks/poll-loop.js +73 -0
- package/dist/ai-service/tasks/poll-loop.js.map +1 -0
- package/dist/ai-service/tasks/task-store.d.ts +116 -0
- package/dist/ai-service/tasks/task-store.d.ts.map +1 -0
- package/dist/ai-service/tasks/task-store.js +388 -0
- package/dist/ai-service/tasks/task-store.js.map +1 -0
- package/dist/ai-service/tasks/test-utils.d.ts +24 -0
- package/dist/ai-service/tasks/test-utils.d.ts.map +1 -0
- package/dist/ai-service/tasks/test-utils.js +53 -0
- package/dist/ai-service/tasks/test-utils.js.map +1 -0
- package/dist/ai-service/tasks/types.d.ts +143 -0
- package/dist/ai-service/tasks/types.d.ts.map +1 -0
- package/dist/ai-service/tasks/types.js +6 -0
- package/dist/ai-service/tasks/types.js.map +1 -0
- package/dist/ai-service/template-renderer.d.ts +45 -0
- package/dist/ai-service/template-renderer.d.ts.map +1 -0
- package/dist/ai-service/template-renderer.js +316 -0
- package/dist/ai-service/template-renderer.js.map +1 -0
- package/dist/ai-service/test-utils/dd-trace-helpers.d.ts +25 -0
- package/dist/ai-service/test-utils/dd-trace-helpers.d.ts.map +1 -0
- package/dist/ai-service/test-utils/dd-trace-helpers.js +9 -0
- package/dist/ai-service/test-utils/dd-trace-helpers.js.map +1 -0
- package/dist/ai-service/test-utils/error-mocks.d.ts +69 -0
- package/dist/ai-service/test-utils/error-mocks.d.ts.map +1 -0
- package/dist/ai-service/test-utils/error-mocks.js +334 -0
- package/dist/ai-service/test-utils/error-mocks.js.map +1 -0
- package/dist/ai-service/test-utils/metrics-harness.d.ts +38 -0
- package/dist/ai-service/test-utils/metrics-harness.d.ts.map +1 -0
- package/dist/ai-service/test-utils/metrics-harness.js +67 -0
- package/dist/ai-service/test-utils/metrics-harness.js.map +1 -0
- package/dist/ai-service/test-utils/span-interceptor.d.ts +74 -0
- package/dist/ai-service/test-utils/span-interceptor.d.ts.map +1 -0
- package/dist/ai-service/test-utils/span-interceptor.js +272 -0
- package/dist/ai-service/test-utils/span-interceptor.js.map +1 -0
- package/dist/ai-service/test-utils/tracer-harness.d.ts +8 -0
- package/dist/ai-service/test-utils/tracer-harness.d.ts.map +1 -0
- package/dist/ai-service/test-utils/tracer-harness.js +26 -0
- package/dist/ai-service/test-utils/tracer-harness.js.map +1 -0
- package/dist/ai-service/transform/api-builder/shared.d.ts +10 -2
- package/dist/ai-service/transform/api-builder/shared.d.ts.map +1 -1
- package/dist/ai-service/transform/api-builder/shared.js +34 -10
- package/dist/ai-service/transform/api-builder/shared.js.map +1 -1
- package/dist/ai-service/transform/api-builder/to-sdk-transformer.d.ts +16 -2
- package/dist/ai-service/transform/api-builder/to-sdk-transformer.d.ts.map +1 -1
- package/dist/ai-service/transform/api-builder/to-sdk-transformer.js +181 -55
- package/dist/ai-service/transform/api-builder/to-sdk-transformer.js.map +1 -1
- package/dist/ai-service/transform/api-builder/to-yaml-transformer.d.ts +6 -2
- package/dist/ai-service/transform/api-builder/to-yaml-transformer.d.ts.map +1 -1
- package/dist/ai-service/transform/api-builder/to-yaml-transformer.js +186 -49
- package/dist/ai-service/transform/api-builder/to-yaml-transformer.js.map +1 -1
- package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.d.ts +40 -0
- package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.d.ts.map +1 -0
- package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.js +118 -0
- package/dist/ai-service/transform/lucide-dynamic-type-imports/transformer.js.map +1 -0
- package/dist/ai-service/transform/remove-api-builder-imports/transformer.d.ts +1 -1
- package/dist/ai-service/transform/remove-api-builder-imports/transformer.d.ts.map +1 -1
- package/dist/ai-service/transform/remove-api-builder-imports/transformer.js +88 -37
- package/dist/ai-service/transform/remove-api-builder-imports/transformer.js.map +1 -1
- package/dist/ai-service/transform/shared.d.ts +9 -2
- package/dist/ai-service/transform/shared.d.ts.map +1 -1
- package/dist/ai-service/transform/shared.js +43 -13
- package/dist/ai-service/transform/shared.js.map +1 -1
- package/dist/ai-service/transform/workaround-missing-sbapi/transformer.d.ts +1 -1
- package/dist/ai-service/transform/workaround-missing-sbapi/transformer.d.ts.map +1 -1
- package/dist/ai-service/transform/workaround-missing-sbapi/transformer.js +77 -26
- package/dist/ai-service/transform/workaround-missing-sbapi/transformer.js.map +1 -1
- package/dist/ai-service/types.d.ts +301 -27
- package/dist/ai-service/types.d.ts.map +1 -1
- package/dist/ai-service/types.js +157 -0
- package/dist/ai-service/types.js.map +1 -1
- package/dist/ai-service/util/archive-extractors.d.ts +52 -0
- package/dist/ai-service/util/archive-extractors.d.ts.map +1 -0
- package/dist/ai-service/util/archive-extractors.js +305 -0
- package/dist/ai-service/util/archive-extractors.js.map +1 -0
- package/dist/ai-service/util/call-peer.d.ts +11 -0
- package/dist/ai-service/util/call-peer.d.ts.map +1 -0
- package/dist/ai-service/util/call-peer.js +47 -0
- package/dist/ai-service/util/call-peer.js.map +1 -0
- package/dist/ai-service/util/inference-jwt.d.ts +15 -0
- package/dist/ai-service/util/inference-jwt.d.ts.map +1 -0
- package/dist/ai-service/util/inference-jwt.js +56 -0
- package/dist/ai-service/util/inference-jwt.js.map +1 -0
- package/dist/ai-service/util/llm-config-utils.d.ts +54 -0
- package/dist/ai-service/util/llm-config-utils.d.ts.map +1 -0
- package/dist/ai-service/util/llm-config-utils.js +140 -0
- package/dist/ai-service/util/llm-config-utils.js.map +1 -0
- package/dist/ai-service/util/mode-message.d.ts +7 -0
- package/dist/ai-service/util/mode-message.d.ts.map +1 -0
- package/dist/ai-service/util/mode-message.js +15 -0
- package/dist/ai-service/util/mode-message.js.map +1 -0
- package/dist/ai-service/util/parse-jwt.d.ts +12 -0
- package/dist/ai-service/util/parse-jwt.d.ts.map +1 -0
- package/dist/ai-service/util/parse-jwt.js +30 -0
- package/dist/ai-service/util/parse-jwt.js.map +1 -0
- package/dist/ai-service/util/peer-liveness.d.ts +23 -0
- package/dist/ai-service/util/peer-liveness.d.ts.map +1 -0
- package/dist/ai-service/util/peer-liveness.js +42 -0
- package/dist/ai-service/util/peer-liveness.js.map +1 -0
- package/dist/ai-service/util/rpc-timeout.d.ts +89 -0
- package/dist/ai-service/util/rpc-timeout.d.ts.map +1 -0
- package/dist/ai-service/util/rpc-timeout.js +112 -0
- package/dist/ai-service/util/rpc-timeout.js.map +1 -0
- package/dist/ai-service/util/scoped-token-utils.d.ts +15 -0
- package/dist/ai-service/util/scoped-token-utils.d.ts.map +1 -0
- package/dist/ai-service/util/scoped-token-utils.js +137 -0
- package/dist/ai-service/util/scoped-token-utils.js.map +1 -0
- package/dist/ai-service/util/stop-condition.d.ts +17 -0
- package/dist/ai-service/util/stop-condition.d.ts.map +1 -0
- package/dist/ai-service/util/stop-condition.js +33 -0
- package/dist/ai-service/util/stop-condition.js.map +1 -0
- package/dist/ai-service/util/strip-content.d.ts +2 -0
- package/dist/ai-service/util/strip-content.d.ts.map +1 -0
- package/dist/ai-service/util/strip-content.js +31 -0
- package/dist/ai-service/util/strip-content.js.map +1 -0
- package/dist/ai-service/util/tool-signature.d.ts +13 -0
- package/dist/ai-service/util/tool-signature.d.ts.map +1 -0
- package/dist/ai-service/util/tool-signature.js +38 -0
- package/dist/ai-service/util/tool-signature.js.map +1 -0
- package/dist/binding-extraction/extract-control-block-identifiers.d.ts +1 -2
- package/dist/binding-extraction/extract-control-block-identifiers.d.ts.map +1 -1
- package/dist/binding-extraction/extract-control-block-identifiers.js +16 -14
- package/dist/binding-extraction/extract-control-block-identifiers.js.map +1 -1
- package/dist/binding-extraction/extract-embedded-identifiers.d.ts +2 -11
- package/dist/binding-extraction/extract-embedded-identifiers.d.ts.map +1 -1
- package/dist/binding-extraction/extract-embedded-identifiers.js +9 -91
- package/dist/binding-extraction/extract-embedded-identifiers.js.map +1 -1
- package/dist/binding-extraction/extract-identifiers.d.ts +16 -3
- package/dist/binding-extraction/extract-identifiers.d.ts.map +1 -1
- package/dist/binding-extraction/extract-identifiers.js +272 -64
- package/dist/binding-extraction/extract-identifiers.js.map +1 -1
- package/dist/binding-extraction/index.d.ts +2 -0
- package/dist/binding-extraction/index.d.ts.map +1 -0
- package/dist/binding-extraction/index.js +2 -0
- package/dist/binding-extraction/index.js.map +1 -0
- package/dist/binding-extraction/js-identifiers.d.ts +34 -0
- package/dist/binding-extraction/js-identifiers.d.ts.map +1 -0
- package/dist/binding-extraction/js-identifiers.js +409 -0
- package/dist/binding-extraction/js-identifiers.js.map +1 -0
- package/dist/binding-extraction/python-identifiers.d.ts +30 -0
- package/dist/binding-extraction/python-identifiers.d.ts.map +1 -0
- package/dist/binding-extraction/python-identifiers.js +657 -0
- package/dist/binding-extraction/python-identifiers.js.map +1 -0
- package/dist/binding-extraction/shared.d.ts +0 -203
- package/dist/binding-extraction/shared.d.ts.map +1 -1
- package/dist/binding-extraction/shared.js +1 -42
- package/dist/binding-extraction/shared.js.map +1 -1
- package/dist/binding-extraction/template-strings.d.ts +1 -2
- package/dist/binding-extraction/template-strings.d.ts.map +1 -1
- package/dist/build-errors.d.ts +10 -0
- package/dist/build-errors.d.ts.map +1 -0
- package/dist/build-errors.js +14 -0
- package/dist/build-errors.js.map +1 -0
- package/dist/clark-log-forwarder.d.ts +15 -0
- package/dist/clark-log-forwarder.d.ts.map +1 -0
- package/dist/clark-log-forwarder.js +32 -0
- package/dist/clark-log-forwarder.js.map +1 -0
- package/dist/client-error-overlay.d.ts +11 -0
- package/dist/client-error-overlay.d.ts.map +1 -0
- package/dist/client-error-overlay.js +90 -0
- package/dist/client-error-overlay.js.map +1 -0
- package/dist/codegen.d.ts +3 -25
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +64 -129
- package/dist/codegen.js.map +1 -1
- package/dist/components-manager.d.ts +12 -12
- package/dist/components-manager.d.ts.map +1 -1
- package/dist/components-manager.js +116 -90
- package/dist/components-manager.js.map +1 -1
- package/dist/custom-components.d.ts +1 -1
- package/dist/custom-components.d.ts.map +1 -1
- package/dist/custom-components.js +1 -1
- package/dist/custom-components.js.map +1 -1
- package/dist/dev-server-ws-smoke-client.d.ts +40 -0
- package/dist/dev-server-ws-smoke-client.d.ts.map +1 -0
- package/dist/dev-server-ws-smoke-client.js +316 -0
- package/dist/dev-server-ws-smoke-client.js.map +1 -0
- package/dist/download-filename.d.ts +6 -0
- package/dist/download-filename.d.ts.map +1 -0
- package/dist/download-filename.js +40 -0
- package/dist/download-filename.js.map +1 -0
- package/dist/draft-interface.d.ts +8 -1
- package/dist/draft-interface.d.ts.map +1 -1
- package/dist/early-error-relay.d.ts +31 -0
- package/dist/early-error-relay.d.ts.map +1 -0
- package/dist/early-error-relay.js +88 -0
- package/dist/early-error-relay.js.map +1 -0
- package/dist/ensure-app-provider.d.ts +2 -0
- package/dist/ensure-app-provider.d.ts.map +1 -0
- package/dist/ensure-app-provider.js +209 -0
- package/dist/ensure-app-provider.js.map +1 -0
- package/dist/errors/error-handler.d.ts +3 -13
- package/dist/errors/error-handler.d.ts.map +1 -1
- package/dist/errors/error-handler.js +1 -1
- package/dist/errors/error-handler.js.map +1 -1
- package/dist/extract-api-integrations.d.ts +99 -0
- package/dist/extract-api-integrations.d.ts.map +1 -0
- package/dist/extract-api-integrations.js +597 -0
- package/dist/extract-api-integrations.js.map +1 -0
- package/dist/file-sync-vite-plugin.d.ts +64 -2
- package/dist/file-sync-vite-plugin.d.ts.map +1 -1
- package/dist/file-sync-vite-plugin.js +1398 -469
- package/dist/file-sync-vite-plugin.js.map +1 -1
- package/dist/file-system-helpers.d.ts +55 -3
- package/dist/file-system-helpers.d.ts.map +1 -1
- package/dist/file-system-helpers.js +118 -5
- package/dist/file-system-helpers.js.map +1 -1
- package/dist/file-system-manager.d.ts +62 -69
- package/dist/file-system-manager.d.ts.map +1 -1
- package/dist/file-system-manager.js +695 -811
- package/dist/file-system-manager.js.map +1 -1
- package/dist/git-auth-state.d.ts +4 -0
- package/dist/git-auth-state.d.ts.map +1 -0
- package/dist/git-auth-state.js +25 -0
- package/dist/git-auth-state.js.map +1 -0
- package/dist/git-log.d.ts +11 -0
- package/dist/git-log.d.ts.map +1 -0
- package/dist/git-log.js +23 -0
- package/dist/git-log.js.map +1 -0
- package/dist/git-operation-lock.d.ts +22 -0
- package/dist/git-operation-lock.d.ts.map +1 -0
- package/dist/git-operation-lock.js +25 -0
- package/dist/git-operation-lock.js.map +1 -0
- package/dist/git-service/app-layout-guard.d.ts +25 -0
- package/dist/git-service/app-layout-guard.d.ts.map +1 -0
- package/dist/git-service/app-layout-guard.js +66 -0
- package/dist/git-service/app-layout-guard.js.map +1 -0
- package/dist/git-service/azure-devops-workflow.d.ts +6 -0
- package/dist/git-service/azure-devops-workflow.d.ts.map +1 -0
- package/dist/git-service/azure-devops-workflow.js +12 -0
- package/dist/git-service/azure-devops-workflow.js.map +1 -0
- package/dist/git-service/bitbucket-workflow.d.ts +5 -0
- package/dist/git-service/bitbucket-workflow.d.ts.map +1 -0
- package/dist/git-service/bitbucket-workflow.js +12 -0
- package/dist/git-service/bitbucket-workflow.js.map +1 -0
- package/dist/git-service/checkpoint-commit-metrics.d.ts +2 -0
- package/dist/git-service/checkpoint-commit-metrics.d.ts.map +1 -0
- package/dist/git-service/checkpoint-commit-metrics.js +15 -0
- package/dist/git-service/checkpoint-commit-metrics.js.map +1 -0
- package/dist/git-service/checkpoint-committer.d.ts +22 -0
- package/dist/git-service/checkpoint-committer.d.ts.map +1 -0
- package/dist/git-service/checkpoint-committer.js +91 -0
- package/dist/git-service/checkpoint-committer.js.map +1 -0
- package/dist/git-service/commit-live-branch.d.ts +17 -0
- package/dist/git-service/commit-live-branch.d.ts.map +1 -0
- package/dist/git-service/commit-live-branch.js +28 -0
- package/dist/git-service/commit-live-branch.js.map +1 -0
- package/dist/git-service/ensure-workflow-file.d.ts +20 -0
- package/dist/git-service/ensure-workflow-file.d.ts.map +1 -0
- package/dist/git-service/ensure-workflow-file.js +51 -0
- package/dist/git-service/ensure-workflow-file.js.map +1 -0
- package/dist/git-service/errors.d.ts +31 -0
- package/dist/git-service/errors.d.ts.map +1 -0
- package/dist/git-service/errors.js +49 -0
- package/dist/git-service/errors.js.map +1 -0
- package/dist/git-service/github-workflow.d.ts +6 -0
- package/dist/git-service/github-workflow.d.ts.map +1 -0
- package/dist/git-service/github-workflow.js +12 -0
- package/dist/git-service/github-workflow.js.map +1 -0
- package/dist/git-service/gitlab-workflow.d.ts +6 -0
- package/dist/git-service/gitlab-workflow.d.ts.map +1 -0
- package/dist/git-service/gitlab-workflow.js +12 -0
- package/dist/git-service/gitlab-workflow.js.map +1 -0
- package/dist/git-service/index.d.ts +30 -0
- package/dist/git-service/index.d.ts.map +1 -0
- package/dist/git-service/index.js +217 -0
- package/dist/git-service/index.js.map +1 -0
- package/dist/git-service/live-branch.d.ts +11 -0
- package/dist/git-service/live-branch.d.ts.map +1 -0
- package/dist/git-service/live-branch.js +171 -0
- package/dist/git-service/live-branch.js.map +1 -0
- package/dist/git-service/managed-excludes.d.ts +36 -0
- package/dist/git-service/managed-excludes.d.ts.map +1 -0
- package/dist/git-service/managed-excludes.js +124 -0
- package/dist/git-service/managed-excludes.js.map +1 -0
- package/dist/git-service/provider-workflow-files.d.ts +12 -0
- package/dist/git-service/provider-workflow-files.d.ts.map +1 -0
- package/dist/git-service/provider-workflow-files.js +36 -0
- package/dist/git-service/provider-workflow-files.js.map +1 -0
- package/dist/git-service/status-sync.d.ts +18 -0
- package/dist/git-service/status-sync.d.ts.map +1 -0
- package/dist/git-service/status-sync.js +32 -0
- package/dist/git-service/status-sync.js.map +1 -0
- package/dist/ids.d.ts +1 -0
- package/dist/ids.d.ts.map +1 -1
- package/dist/ids.js +3 -0
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/inject-index-vite-plugin.d.ts +21 -0
- package/dist/inject-index-vite-plugin.d.ts.map +1 -0
- package/dist/inject-index-vite-plugin.js +130 -0
- package/dist/inject-index-vite-plugin.js.map +1 -0
- package/dist/injected-index.d.ts +9 -2
- package/dist/injected-index.d.ts.map +1 -1
- package/dist/injected-index.js +153 -9
- package/dist/injected-index.js.map +1 -1
- package/dist/lock-service/activity-tracker.d.ts +46 -0
- package/dist/lock-service/activity-tracker.d.ts.map +1 -0
- package/dist/lock-service/activity-tracker.js +119 -0
- package/dist/lock-service/activity-tracker.js.map +1 -0
- package/dist/lock-service/index.d.ts +420 -24
- package/dist/lock-service/index.d.ts.map +1 -1
- package/dist/lock-service/index.js +1209 -131
- package/dist/lock-service/index.js.map +1 -1
- package/dist/migration/get-fullstack-template-dir.d.ts +37 -0
- package/dist/migration/get-fullstack-template-dir.d.ts.map +1 -0
- package/dist/migration/get-fullstack-template-dir.js +99 -0
- package/dist/migration/get-fullstack-template-dir.js.map +1 -0
- package/dist/migration/inline-v2-backup-source-files.d.ts +7 -0
- package/dist/migration/inline-v2-backup-source-files.d.ts.map +1 -0
- package/dist/migration/inline-v2-backup-source-files.js +110 -0
- package/dist/migration/inline-v2-backup-source-files.js.map +1 -0
- package/dist/migration/integration-write-policy.d.ts +24 -0
- package/dist/migration/integration-write-policy.d.ts.map +1 -0
- package/dist/migration/integration-write-policy.js +125 -0
- package/dist/migration/integration-write-policy.js.map +1 -0
- package/dist/migration/mark-api-testing-denied.d.ts +27 -0
- package/dist/migration/mark-api-testing-denied.d.ts.map +1 -0
- package/dist/migration/mark-api-testing-denied.js +80 -0
- package/dist/migration/mark-api-testing-denied.js.map +1 -0
- package/dist/migration/migration-checklist.d.ts +80 -0
- package/dist/migration/migration-checklist.d.ts.map +1 -0
- package/dist/migration/migration-checklist.js +150 -0
- package/dist/migration/migration-checklist.js.map +1 -0
- package/dist/migration/migration-classifier.d.ts +4 -0
- package/dist/migration/migration-classifier.d.ts.map +1 -0
- package/dist/migration/migration-classifier.js +87 -0
- package/dist/migration/migration-classifier.js.map +1 -0
- package/dist/migration/migration-metrics.d.ts +74 -0
- package/dist/migration/migration-metrics.d.ts.map +1 -0
- package/dist/migration/migration-metrics.js +124 -0
- package/dist/migration/migration-metrics.js.map +1 -0
- package/dist/migration/migration-routes.d.ts +47 -0
- package/dist/migration/migration-routes.d.ts.map +1 -0
- package/dist/migration/migration-routes.js +1233 -0
- package/dist/migration/migration-routes.js.map +1 -0
- package/dist/migration/migration-session-reconcile.d.ts +24 -0
- package/dist/migration/migration-session-reconcile.d.ts.map +1 -0
- package/dist/migration/migration-session-reconcile.js +139 -0
- package/dist/migration/migration-session-reconcile.js.map +1 -0
- package/dist/migration/migration-verification.d.ts +288 -0
- package/dist/migration/migration-verification.d.ts.map +1 -0
- package/dist/migration/migration-verification.js +1246 -0
- package/dist/migration/migration-verification.js.map +1 -0
- package/dist/migration/recommended-user-deps.d.ts +40 -0
- package/dist/migration/recommended-user-deps.d.ts.map +1 -0
- package/dist/migration/recommended-user-deps.js +209 -0
- package/dist/migration/recommended-user-deps.js.map +1 -0
- package/dist/migration/resolve-v2-backup-path.d.ts +7 -0
- package/dist/migration/resolve-v2-backup-path.d.ts.map +1 -0
- package/dist/migration/resolve-v2-backup-path.js +35 -0
- package/dist/migration/resolve-v2-backup-path.js.map +1 -0
- package/dist/migration/restructure.d.ts +125 -0
- package/dist/migration/restructure.d.ts.map +1 -0
- package/dist/migration/restructure.js +645 -0
- package/dist/migration/restructure.js.map +1 -0
- package/dist/migration/scan-imports.d.ts +7 -0
- package/dist/migration/scan-imports.d.ts.map +1 -0
- package/dist/migration/scan-imports.js +178 -0
- package/dist/migration/scan-imports.js.map +1 -0
- package/dist/migration/translation-prompt.d.ts +23 -0
- package/dist/migration/translation-prompt.d.ts.map +1 -0
- package/dist/migration/translation-prompt.js +36 -0
- package/dist/migration/translation-prompt.js.map +1 -0
- package/dist/migration/unsupported-integrations.d.ts +11 -0
- package/dist/migration/unsupported-integrations.d.ts.map +1 -0
- package/dist/migration/unsupported-integrations.js +206 -0
- package/dist/migration/unsupported-integrations.js.map +1 -0
- package/dist/migration/yaml-walk.d.ts +18 -0
- package/dist/migration/yaml-walk.d.ts.map +1 -0
- package/dist/migration/yaml-walk.js +45 -0
- package/dist/migration/yaml-walk.js.map +1 -0
- package/dist/migration-templates/app-fullstack/.gitignore +50 -0
- package/dist/migration-templates/app-fullstack/client/App.tsx +17 -0
- package/dist/migration-templates/app-fullstack/client/components/common/sonner.tsx +20 -0
- package/dist/migration-templates/app-fullstack/client/components/hooks/use-active-page.ts +73 -0
- package/dist/migration-templates/app-fullstack/client/components/hooks/use-mobile.ts +21 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/accordion.tsx +197 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/area-chart.tsx +432 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/aspect-ratio.tsx +45 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/avatar.tsx +117 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/badge.tsx +143 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/bar-chart.tsx +390 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/breadcrumb.tsx +259 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/button.tsx +182 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/calendar.tsx +300 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/card.tsx +129 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/chart.tsx +403 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/checkbox.tsx +97 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/code-block-content.tsx +66 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/date-range-picker.tsx +396 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/dialog.tsx +223 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/dropdown-menu.tsx +284 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/file-dropzone.tsx +395 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/file-input.tsx +166 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/hover-card.tsx +162 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/icon.tsx +133 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/image.tsx +68 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/input.tsx +219 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/label.tsx +55 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/line-chart.tsx +380 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/link.tsx +139 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/navigation-menu.tsx +345 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/pagination.tsx +192 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/pie-chart.tsx +295 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/popover.tsx +162 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/progress.tsx +69 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/radar-chart.tsx +386 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/radial-chart.tsx +402 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/scroll-area.tsx +86 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/select.tsx +229 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/separator.tsx +62 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/sheet.tsx +234 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/sidebar.tsx +974 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/skeleton.tsx +13 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/slider.tsx +198 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/switch.tsx +95 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/table.tsx +145 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/tabs.tsx +87 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/textarea.tsx +148 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle-group.tsx +225 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/toggle.tsx +150 -0
- package/dist/migration-templates/app-fullstack/client/components/ui/tooltip.tsx +175 -0
- package/dist/migration-templates/app-fullstack/client/hooks/useApi.ts +25 -0
- package/dist/migration-templates/app-fullstack/client/hooks/useApiData.ts +10 -0
- package/dist/migration-templates/app-fullstack/client/index.css +131 -0
- package/dist/migration-templates/app-fullstack/client/lib/executeApi.ts +9 -0
- package/dist/migration-templates/app-fullstack/client/lib/utils.ts +6 -0
- package/dist/migration-templates/app-fullstack/client/pages/Home/index.tsx +3 -0
- package/dist/migration-templates/app-fullstack/client/root.tsx +17 -0
- package/dist/migration-templates/app-fullstack/client/router.tsx +48 -0
- package/dist/migration-templates/app-fullstack/client/types/node.d.ts +9 -0
- package/dist/migration-templates/app-fullstack/components.json +21 -0
- package/dist/migration-templates/app-fullstack/css.d.ts +3 -0
- package/dist/migration-templates/app-fullstack/eslint.config.js +113 -0
- package/dist/migration-templates/app-fullstack/package.json +84 -0
- package/dist/migration-templates/app-fullstack/server/.gitkeep +0 -0
- package/dist/migration-templates/app-fullstack/server/apis/index.ts +22 -0
- package/dist/migration-templates/app-fullstack/server/index.ts +2 -0
- package/dist/migration-templates/app-fullstack/tsconfig.client.json +27 -0
- package/dist/migration-templates/app-fullstack/tsconfig.eslint.json +8 -0
- package/dist/migration-templates/app-fullstack/tsconfig.json +25 -0
- package/dist/migration-templates/app-fullstack/tsconfig.server.json +13 -0
- package/dist/migration-templates/app-fullstack/vite.config.ts +17 -0
- package/dist/npm/apply-package-json-substitutions.d.ts +19 -0
- package/dist/npm/apply-package-json-substitutions.d.ts.map +1 -0
- package/dist/npm/apply-package-json-substitutions.js +108 -0
- package/dist/npm/apply-package-json-substitutions.js.map +1 -0
- package/dist/npm/normalize-workspace-protocol-for-npm.d.ts +15 -0
- package/dist/npm/normalize-workspace-protocol-for-npm.d.ts.map +1 -0
- package/dist/npm/normalize-workspace-protocol-for-npm.js +36 -0
- package/dist/npm/normalize-workspace-protocol-for-npm.js.map +1 -0
- package/dist/npm/prepare-package-json-for-cloud-npm.d.ts +8 -0
- package/dist/npm/prepare-package-json-for-cloud-npm.d.ts.map +1 -0
- package/dist/npm/prepare-package-json-for-cloud-npm.js +44 -0
- package/dist/npm/prepare-package-json-for-cloud-npm.js.map +1 -0
- package/dist/npm/rewrite-platform-workspace-deps.d.ts +17 -0
- package/dist/npm/rewrite-platform-workspace-deps.d.ts.map +1 -0
- package/dist/npm/rewrite-platform-workspace-deps.js +37 -0
- package/dist/npm/rewrite-platform-workspace-deps.js.map +1 -0
- package/dist/operations/operation-processor.d.ts +24 -0
- package/dist/operations/operation-processor.d.ts.map +1 -0
- package/dist/operations/operation-processor.js +80 -0
- package/dist/operations/operation-processor.js.map +1 -0
- package/dist/operations/types.d.ts +8 -0
- package/dist/operations/types.d.ts.map +1 -0
- package/dist/operations/types.js +2 -0
- package/dist/operations/types.js.map +1 -0
- package/dist/parsing/bindings.d.ts +1 -1
- package/dist/parsing/bindings.d.ts.map +1 -1
- package/dist/parsing/bindings.js +14 -5
- package/dist/parsing/bindings.js.map +1 -1
- package/dist/parsing/computed/index.d.ts +1 -1
- package/dist/parsing/computed/index.d.ts.map +1 -1
- package/dist/parsing/computed/index.js +1 -1
- package/dist/parsing/computed/index.js.map +1 -1
- package/dist/parsing/computed/to-code-computed.d.ts +2 -1
- package/dist/parsing/computed/to-code-computed.d.ts.map +1 -1
- package/dist/parsing/computed/to-code-computed.js +22 -11
- package/dist/parsing/computed/to-code-computed.js.map +1 -1
- package/dist/parsing/computed/to-value-computed.d.ts +1 -1
- package/dist/parsing/computed/to-value-computed.d.ts.map +1 -1
- package/dist/parsing/computed/to-value-computed.js +19 -7
- package/dist/parsing/computed/to-value-computed.js.map +1 -1
- package/dist/parsing/dim/index.d.ts +1 -1
- package/dist/parsing/dim/index.d.ts.map +1 -1
- package/dist/parsing/dim/index.js +1 -1
- package/dist/parsing/dim/index.js.map +1 -1
- package/dist/parsing/dim/to-value-dimensions.d.ts +2 -1
- package/dist/parsing/dim/to-value-dimensions.d.ts.map +1 -1
- package/dist/parsing/dim/to-value-dimensions.js +4 -3
- package/dist/parsing/dim/to-value-dimensions.js.map +1 -1
- package/dist/parsing/function/index.d.ts +4 -0
- package/dist/parsing/function/index.d.ts.map +1 -0
- package/dist/parsing/function/index.js +7 -0
- package/dist/parsing/function/index.js.map +1 -0
- package/dist/parsing/function/to-code-function.d.ts +2 -0
- package/dist/parsing/function/to-code-function.d.ts.map +1 -0
- package/dist/parsing/function/to-code-function.js +4 -0
- package/dist/parsing/function/to-code-function.js.map +1 -0
- package/dist/parsing/function/to-value-function.d.ts +4 -0
- package/dist/parsing/function/to-value-function.d.ts.map +1 -0
- package/dist/parsing/function/to-value-function.js +33 -0
- package/dist/parsing/function/to-value-function.js.map +1 -0
- package/dist/parsing/ids.d.ts +0 -2
- package/dist/parsing/ids.d.ts.map +1 -1
- package/dist/parsing/ids.js +18 -21
- package/dist/parsing/ids.js.map +1 -1
- package/dist/parsing/imports.d.ts +5 -5
- package/dist/parsing/imports.d.ts.map +1 -1
- package/dist/parsing/imports.js +40 -30
- package/dist/parsing/imports.js.map +1 -1
- package/dist/parsing/index.d.ts +3 -0
- package/dist/parsing/index.d.ts.map +1 -0
- package/dist/parsing/index.js +3 -0
- package/dist/parsing/index.js.map +1 -0
- package/dist/parsing/jsx-utils.d.ts +4 -3
- package/dist/parsing/jsx-utils.d.ts.map +1 -1
- package/dist/parsing/jsx-utils.js +37 -25
- package/dist/parsing/jsx-utils.js.map +1 -1
- package/dist/parsing/jsx.d.ts +25 -11
- package/dist/parsing/jsx.d.ts.map +1 -1
- package/dist/parsing/jsx.js +210 -176
- package/dist/parsing/jsx.js.map +1 -1
- package/dist/parsing/page.d.ts +1 -2
- package/dist/parsing/page.d.ts.map +1 -1
- package/dist/parsing/page.js +297 -122
- package/dist/parsing/page.js.map +1 -1
- package/dist/parsing/parse-tsx-module.d.ts +4 -0
- package/dist/parsing/parse-tsx-module.d.ts.map +1 -0
- package/dist/parsing/parse-tsx-module.js +13 -0
- package/dist/parsing/parse-tsx-module.js.map +1 -0
- package/dist/parsing/properties.d.ts +2 -1
- package/dist/parsing/properties.d.ts.map +1 -1
- package/dist/parsing/properties.js +105 -28
- package/dist/parsing/properties.js.map +1 -1
- package/dist/parsing/sdk-registry.d.ts +17 -0
- package/dist/parsing/sdk-registry.d.ts.map +1 -0
- package/dist/parsing/sdk-registry.js +184 -0
- package/dist/parsing/sdk-registry.js.map +1 -0
- package/dist/parsing/template/index.d.ts +1 -1
- package/dist/parsing/template/index.d.ts.map +1 -1
- package/dist/parsing/template/index.js.map +1 -1
- package/dist/parsing/template/to-code-template.d.ts.map +1 -1
- package/dist/parsing/template/to-code-template.js +1 -2
- package/dist/parsing/template/to-code-template.js.map +1 -1
- package/dist/parsing/type-parsing-registry.d.ts +1 -1
- package/dist/parsing/type-parsing-registry.d.ts.map +1 -1
- package/dist/parsing/type-parsing-registry.js +2 -2
- package/dist/parsing/type-parsing-registry.js.map +1 -1
- package/dist/parsing/types.d.ts +3 -2
- package/dist/parsing/types.d.ts.map +1 -1
- package/dist/parsing/util.d.ts +7 -11
- package/dist/parsing/util.d.ts.map +1 -1
- package/dist/parsing/util.js +131 -81
- package/dist/parsing/util.js.map +1 -1
- package/dist/plugin-options.d.ts +67 -5
- package/dist/plugin-options.d.ts.map +1 -1
- package/dist/plugin-options.js +0 -3
- package/dist/plugin-options.js.map +1 -1
- package/dist/policy-gate-callback-mapper.d.ts +26 -0
- package/dist/policy-gate-callback-mapper.d.ts.map +1 -0
- package/dist/policy-gate-callback-mapper.js +58 -0
- package/dist/policy-gate-callback-mapper.js.map +1 -0
- package/dist/policy-gate-run-registry.d.ts +28 -0
- package/dist/policy-gate-run-registry.d.ts.map +1 -0
- package/dist/policy-gate-run-registry.js +40 -0
- package/dist/policy-gate-run-registry.js.map +1 -0
- package/dist/policy-gate-runner.d.ts +36 -0
- package/dist/policy-gate-runner.d.ts.map +1 -0
- package/dist/policy-gate-runner.js +250 -0
- package/dist/policy-gate-runner.js.map +1 -0
- package/dist/refactor/blocks.d.ts +1 -2
- package/dist/refactor/blocks.d.ts.map +1 -1
- package/dist/refactor/blocks.js +3 -70
- package/dist/refactor/blocks.js.map +1 -1
- package/dist/refactor/entities.d.ts +6 -0
- package/dist/refactor/entities.d.ts.map +1 -0
- package/dist/refactor/entities.js +65 -0
- package/dist/refactor/entities.js.map +1 -0
- package/dist/refactor/javascript.d.ts +1 -1
- package/dist/refactor/javascript.d.ts.map +1 -1
- package/dist/refactor/javascript.js +103 -2
- package/dist/refactor/javascript.js.map +1 -1
- package/dist/rename-manager.d.ts +3 -2
- package/dist/rename-manager.d.ts.map +1 -1
- package/dist/rename-manager.js +35 -14
- package/dist/rename-manager.js.map +1 -1
- package/dist/resolver.d.ts +4 -0
- package/dist/resolver.d.ts.map +1 -0
- package/dist/resolver.js +27 -0
- package/dist/resolver.js.map +1 -0
- package/dist/router-parser-metrics.d.ts +2 -0
- package/dist/router-parser-metrics.d.ts.map +1 -0
- package/dist/router-parser-metrics.js +13 -0
- package/dist/router-parser-metrics.js.map +1 -0
- package/dist/router-parser.d.ts +41 -0
- package/dist/router-parser.d.ts.map +1 -0
- package/dist/router-parser.js +894 -0
- package/dist/router-parser.js.map +1 -0
- package/dist/scan-scope-merge.d.ts +16 -0
- package/dist/scan-scope-merge.d.ts.map +1 -0
- package/dist/scan-scope-merge.js +90 -0
- package/dist/scan-scope-merge.js.map +1 -0
- package/dist/server-rpc/client.d.ts +11 -0
- package/dist/server-rpc/client.d.ts.map +1 -0
- package/dist/server-rpc/client.js +42 -0
- package/dist/server-rpc/client.js.map +1 -0
- package/dist/server-rpc/handlers.d.ts +3 -0
- package/dist/server-rpc/handlers.d.ts.map +1 -0
- package/dist/server-rpc/handlers.js.map +1 -0
- package/dist/server-rpc/index.d.ts +77 -0
- package/dist/server-rpc/index.d.ts.map +1 -0
- package/dist/server-rpc/index.js +344 -0
- package/dist/server-rpc/index.js.map +1 -0
- package/dist/server-rpc/request-abort-context.d.ts +3 -0
- package/dist/server-rpc/request-abort-context.d.ts.map +1 -0
- package/dist/server-rpc/request-abort-context.js +23 -0
- package/dist/server-rpc/request-abort-context.js.map +1 -0
- package/dist/server-rpc/rpc-invalidate-metrics.d.ts +20 -0
- package/dist/server-rpc/rpc-invalidate-metrics.d.ts.map +1 -0
- package/dist/server-rpc/rpc-invalidate-metrics.js +86 -0
- package/dist/server-rpc/rpc-invalidate-metrics.js.map +1 -0
- package/dist/snapshot-routes.d.ts +18 -0
- package/dist/snapshot-routes.d.ts.map +1 -0
- package/dist/snapshot-routes.js +247 -0
- package/dist/snapshot-routes.js.map +1 -0
- package/dist/socket-manager.d.ts +145 -17
- package/dist/socket-manager.d.ts.map +1 -1
- package/dist/socket-manager.js +1730 -82
- package/dist/socket-manager.js.map +1 -1
- package/dist/source-tracker.d.ts +23 -158
- package/dist/source-tracker.d.ts.map +1 -1
- package/dist/source-tracker.js +78 -877
- package/dist/source-tracker.js.map +1 -1
- package/dist/sync-service/checkpoint-result.d.ts +22 -0
- package/dist/sync-service/checkpoint-result.d.ts.map +1 -0
- package/dist/sync-service/checkpoint-result.js +22 -0
- package/dist/sync-service/checkpoint-result.js.map +1 -0
- package/dist/sync-service/download.d.ts +23 -6
- package/dist/sync-service/download.d.ts.map +1 -1
- package/dist/sync-service/download.js +234 -33
- package/dist/sync-service/download.js.map +1 -1
- package/dist/sync-service/draft-helpers.d.ts +17 -1
- package/dist/sync-service/draft-helpers.d.ts.map +1 -1
- package/dist/sync-service/draft-helpers.js +193 -114
- package/dist/sync-service/draft-helpers.js.map +1 -1
- package/dist/sync-service/draft-reconcile.d.ts +22 -0
- package/dist/sync-service/draft-reconcile.d.ts.map +1 -0
- package/dist/sync-service/draft-reconcile.js +24 -0
- package/dist/sync-service/draft-reconcile.js.map +1 -0
- package/dist/sync-service/draft-state-report-metrics.d.ts +2 -0
- package/dist/sync-service/draft-state-report-metrics.d.ts.map +1 -0
- package/dist/sync-service/draft-state-report-metrics.js +27 -0
- package/dist/sync-service/draft-state-report-metrics.js.map +1 -0
- package/dist/sync-service/hash-cache.d.ts +1 -0
- package/dist/sync-service/hash-cache.d.ts.map +1 -1
- package/dist/sync-service/hash-cache.js +4 -0
- package/dist/sync-service/hash-cache.js.map +1 -1
- package/dist/sync-service/hash-dir-tree.d.ts +1 -1
- package/dist/sync-service/hash-dir-tree.d.ts.map +1 -1
- package/dist/sync-service/hash-dir-tree.js +3 -3
- package/dist/sync-service/hash-dir-tree.js.map +1 -1
- package/dist/sync-service/index.d.ts +250 -20
- package/dist/sync-service/index.d.ts.map +1 -1
- package/dist/sync-service/index.js +868 -123
- package/dist/sync-service/index.js.map +1 -1
- package/dist/sync-service/list-dir.d.ts +2 -2
- package/dist/sync-service/list-dir.d.ts.map +1 -1
- package/dist/sync-service/list-dir.js +93 -29
- package/dist/sync-service/list-dir.js.map +1 -1
- package/dist/sync-service/snapshot/take-snapshot.d.ts +1 -1
- package/dist/sync-service/snapshot/take-snapshot.d.ts.map +1 -1
- package/dist/sync-service/snapshot/take-snapshot.js +4 -8
- package/dist/sync-service/snapshot/take-snapshot.js.map +1 -1
- package/dist/sync-service/snapshot/upload-snapshot.d.ts +2 -2
- package/dist/sync-service/snapshot/upload-snapshot.d.ts.map +1 -1
- package/dist/sync-service/snapshot/upload-snapshot.js +21 -1
- package/dist/sync-service/snapshot/upload-snapshot.js.map +1 -1
- package/dist/test-setup.d.ts +2 -0
- package/dist/test-setup.d.ts.map +1 -0
- package/dist/test-setup.js +21 -0
- package/dist/test-setup.js.map +1 -0
- package/dist/util/ignore-patterns.d.ts +9 -0
- package/dist/util/ignore-patterns.d.ts.map +1 -0
- package/dist/util/ignore-patterns.js +53 -0
- package/dist/util/ignore-patterns.js.map +1 -0
- package/dist/util/log-sanitizer.d.ts +44 -0
- package/dist/util/log-sanitizer.d.ts.map +1 -0
- package/dist/util/log-sanitizer.js +209 -0
- package/dist/util/log-sanitizer.js.map +1 -0
- package/dist/util/logger.d.ts +58 -17
- package/dist/util/logger.d.ts.map +1 -1
- package/dist/util/logger.js +617 -40
- package/dist/util/logger.js.map +1 -1
- package/dist/util/open-api.d.ts +9 -0
- package/dist/util/open-api.d.ts.map +1 -0
- package/dist/util/open-api.js +2 -0
- package/dist/util/open-api.js.map +1 -0
- package/dist/util/operation-queue.d.ts +7 -1
- package/dist/util/operation-queue.d.ts.map +1 -1
- package/dist/util/operation-queue.js +5 -0
- package/dist/util/operation-queue.js.map +1 -1
- package/dist/util/summarize-for-logging.d.ts +14 -0
- package/dist/util/summarize-for-logging.d.ts.map +1 -0
- package/dist/util/summarize-for-logging.js +94 -0
- package/dist/util/summarize-for-logging.js.map +1 -0
- package/dist/util.d.ts +17 -18
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +46 -112
- package/dist/util.js.map +1 -1
- package/dist/virtual-modules.d.ts +5 -0
- package/dist/virtual-modules.d.ts.map +1 -0
- package/dist/virtual-modules.js +5 -0
- package/dist/virtual-modules.js.map +1 -0
- package/dist/vite-plugin-yaml-types.d.ts +15 -0
- package/dist/vite-plugin-yaml-types.d.ts.map +1 -0
- package/dist/vite-plugin-yaml-types.js +187 -0
- package/dist/vite-plugin-yaml-types.js.map +1 -0
- package/package.json +131 -65
- package/dist/ai-service/artifacts/bolt.d.ts +0 -8
- package/dist/ai-service/artifacts/bolt.d.ts.map +0 -1
- package/dist/ai-service/artifacts/bolt.js +0 -34
- package/dist/ai-service/artifacts/bolt.js.map +0 -1
- package/dist/ai-service/eval/template-renderer.d.ts +0 -13
- package/dist/ai-service/eval/template-renderer.d.ts.map +0 -1
- package/dist/ai-service/eval/template-renderer.js +0 -67
- package/dist/ai-service/eval/template-renderer.js.map +0 -1
- package/dist/ai-service/integrations/const.d.ts +0 -41
- package/dist/ai-service/integrations/const.d.ts.map +0 -1
- package/dist/ai-service/integrations/const.js +0 -76
- package/dist/ai-service/integrations/const.js.map +0 -1
- package/dist/ai-service/integrations/from-prompt-context.d.ts +0 -4
- package/dist/ai-service/integrations/from-prompt-context.d.ts.map +0 -1
- package/dist/ai-service/integrations/from-prompt-context.js +0 -56
- package/dist/ai-service/integrations/from-prompt-context.js.map +0 -1
- package/dist/ai-service/integrations/to-sdk-prompt.d.ts +0 -3
- package/dist/ai-service/integrations/to-sdk-prompt.d.ts.map +0 -1
- package/dist/ai-service/integrations/to-sdk-prompt.js +0 -45
- package/dist/ai-service/integrations/to-sdk-prompt.js.map +0 -1
- package/dist/ai-service/integrations/types.d.ts +0 -31
- package/dist/ai-service/integrations/types.d.ts.map +0 -1
- package/dist/ai-service/integrations/types.js.map +0 -1
- package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.d.ts +0 -2
- package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.d.ts.map +0 -1
- package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.js +0 -386
- package/dist/ai-service/prompts/draft-subprompts/superblocks-api-draft.js.map +0 -1
- package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.d.ts +0 -2
- package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.d.ts.map +0 -1
- package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.js +0 -219
- package/dist/ai-service/prompts/draft-subprompts/superblocks-layouts-with-grid-examples.js.map +0 -1
- package/dist/ai-service/prompts/generated/index.d.ts +0 -4
- package/dist/ai-service/prompts/generated/index.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/index.js +0 -6
- package/dist/ai-service/prompts/generated/index.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbButtonPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbCheckboxPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbColumnPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbContainerPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbDatePickerPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbDropdownPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbIconPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbImagePropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbInputPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbModalPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbPagePropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbSectionPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbSlideoutPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbSwitchPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbTablePropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.js +0 -6
- package/dist/ai-service/prompts/generated/library-components/SbTextPropsDocs.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/index.d.ts +0 -17
- package/dist/ai-service/prompts/generated/library-components/index.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-components/index.js +0 -19
- package/dist/ai-service/prompts/generated/library-components/index.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/Dim.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-typedefs/Dim.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/Dim.js +0 -6
- package/dist/ai-service/prompts/generated/library-typedefs/Dim.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.d.ts +0 -2
- package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.js +0 -6
- package/dist/ai-service/prompts/generated/library-typedefs/SbEventFlow.js.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/index.d.ts +0 -3
- package/dist/ai-service/prompts/generated/library-typedefs/index.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/library-typedefs/index.js +0 -5
- package/dist/ai-service/prompts/generated/library-typedefs/index.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/index.d.ts +0 -11
- package/dist/ai-service/prompts/generated/subprompts/index.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/index.js +0 -13
- package/dist/ai-service/prompts/generated/subprompts/index.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-api.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-api.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-api.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-api.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-components-rules.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-custom-components.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-event-flow.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-layouts.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-page.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-page.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-page.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-page.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-routes.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-state.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-state.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-state.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-state.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/superblocks-theming.js.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/system.d.ts +0 -2
- package/dist/ai-service/prompts/generated/subprompts/system.d.ts.map +0 -1
- package/dist/ai-service/prompts/generated/subprompts/system.js +0 -6
- package/dist/ai-service/prompts/generated/subprompts/system.js.map +0 -1
- package/dist/ai-service/prompts/markdown-loader.d.ts +0 -10
- package/dist/ai-service/prompts/markdown-loader.d.ts.map +0 -1
- package/dist/ai-service/prompts/markdown-loader.js +0 -71
- package/dist/ai-service/prompts/markdown-loader.js.map +0 -1
- package/dist/ai-service/prompts/system.d.ts +0 -2
- package/dist/ai-service/prompts/system.d.ts.map +0 -1
- package/dist/ai-service/prompts/system.js +0 -152
- package/dist/ai-service/prompts/system.js.map +0 -1
- package/dist/ai-service/result-buffer/bolt.d.ts +0 -15
- package/dist/ai-service/result-buffer/bolt.d.ts.map +0 -1
- package/dist/ai-service/result-buffer/bolt.js +0 -73
- package/dist/ai-service/result-buffer/bolt.js.map +0 -1
- package/dist/ai-service/result-buffer/shared.d.ts +0 -13
- package/dist/ai-service/result-buffer/shared.d.ts.map +0 -1
- package/dist/ai-service/result-buffer/shared.js +0 -7
- package/dist/ai-service/result-buffer/shared.js.map +0 -1
- package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.d.ts +0 -21
- package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.d.ts.map +0 -1
- package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.js +0 -48
- package/dist/ai-service/transform/add-metadata-to-api-yaml/transformer.js.map +0 -1
- package/dist/binding-extraction/extract-js-identifiers.d.ts +0 -19
- package/dist/binding-extraction/extract-js-identifiers.d.ts.map +0 -1
- package/dist/binding-extraction/extract-js-identifiers.js +0 -161
- package/dist/binding-extraction/extract-js-identifiers.js.map +0 -1
- package/dist/binding-extraction/extract-py-identifiers.d.ts +0 -4
- package/dist/binding-extraction/extract-py-identifiers.d.ts.map +0 -1
- package/dist/binding-extraction/extract-py-identifiers.js +0 -161
- package/dist/binding-extraction/extract-py-identifiers.js.map +0 -1
- package/dist/parsing/entity/index.d.ts +0 -7
- package/dist/parsing/entity/index.d.ts.map +0 -1
- package/dist/parsing/entity/index.js +0 -7
- package/dist/parsing/entity/index.js.map +0 -1
- package/dist/parsing/entity/to-code-entity.d.ts +0 -3
- package/dist/parsing/entity/to-code-entity.d.ts.map +0 -1
- package/dist/parsing/entity/to-code-entity.js +0 -41
- package/dist/parsing/entity/to-code-entity.js.map +0 -1
- package/dist/parsing/entity/to-value-entity.d.ts +0 -8
- package/dist/parsing/entity/to-value-entity.d.ts.map +0 -1
- package/dist/parsing/entity/to-value-entity.js +0 -120
- package/dist/parsing/entity/to-value-entity.js.map +0 -1
- package/dist/parsing/events/index.d.ts +0 -5
- package/dist/parsing/events/index.d.ts.map +0 -1
- package/dist/parsing/events/index.js +0 -7
- package/dist/parsing/events/index.js.map +0 -1
- package/dist/parsing/events/to-code-events.d.ts +0 -3
- package/dist/parsing/events/to-code-events.d.ts.map +0 -1
- package/dist/parsing/events/to-code-events.js +0 -100
- package/dist/parsing/events/to-code-events.js.map +0 -1
- package/dist/parsing/events/to-value-events.d.ts +0 -6
- package/dist/parsing/events/to-value-events.d.ts.map +0 -1
- package/dist/parsing/events/to-value-events.js +0 -194
- package/dist/parsing/events/to-value-events.js.map +0 -1
- package/dist/parsing/scope.d.ts +0 -90
- package/dist/parsing/scope.d.ts.map +0 -1
- package/dist/parsing/scope.js +0 -669
- package/dist/parsing/scope.js.map +0 -1
- package/dist/parsing/theme.d.ts +0 -3
- package/dist/parsing/theme.d.ts.map +0 -1
- package/dist/parsing/theme.js +0 -87
- package/dist/parsing/theme.js.map +0 -1
- package/dist/refactor-jsx.d.ts +0 -28
- package/dist/refactor-jsx.d.ts.map +0 -1
- package/dist/refactor-jsx.js +0 -77
- package/dist/refactor-jsx.js.map +0 -1
- package/dist/routing.d.ts +0 -6
- package/dist/routing.d.ts.map +0 -1
- package/dist/routing.js +0 -76
- package/dist/routing.js.map +0 -1
- package/dist/sb-scope-manager.d.ts +0 -102
- package/dist/sb-scope-manager.d.ts.map +0 -1
- package/dist/sb-scope-manager.js +0 -507
- package/dist/sb-scope-manager.js.map +0 -1
- package/dist/sync-service/server-rpc/client.d.ts +0 -13
- package/dist/sync-service/server-rpc/client.d.ts.map +0 -1
- package/dist/sync-service/server-rpc/client.js +0 -65
- package/dist/sync-service/server-rpc/client.js.map +0 -1
- package/dist/sync-service/server-rpc/handlers.d.ts +0 -3
- package/dist/sync-service/server-rpc/handlers.d.ts.map +0 -1
- package/dist/sync-service/server-rpc/handlers.js.map +0 -1
- package/dist/util/tracing.d.ts +0 -4
- package/dist/util/tracing.d.ts.map +0 -1
- package/dist/util/tracing.js +0 -56
- package/dist/util/tracing.js.map +0 -1
- /package/dist/ai-service/{integrations → agent/subagents/apis}/types.js +0 -0
- /package/dist/{sync-service/server-rpc → server-rpc}/handlers.js +0 -0
|
@@ -0,0 +1,1246 @@
|
|
|
1
|
+
import crypto from "node:crypto";
|
|
2
|
+
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import yaml from "yaml";
|
|
5
|
+
import z from "zod";
|
|
6
|
+
import { AiEntityType, AiPermissionType, } from "@superblocksteam/library-shared/types";
|
|
7
|
+
import { LanguagePluginID } from "@superblocksteam/shared";
|
|
8
|
+
import { extractIntegrationIdsFromSource, extractMutations, } from "../ai-service/agent/tools/apis/analysis.js";
|
|
9
|
+
import { compareApiResults, } from "../ai-service/agent/tools/apis/api-comparator.js";
|
|
10
|
+
import { ApiExecutor, } from "../ai-service/agent/tools/apis/api-executor.js";
|
|
11
|
+
import { markSdkApiAsVerified } from "../ai-service/agent/tools/apis/api-testing-state.js";
|
|
12
|
+
import { createToolFactory, PermissionLevel, ToolCategory, } from "../ai-service/agent/tools2/types.js";
|
|
13
|
+
import { updateChecklistItem } from "../ai-service/checklist/persisted-checklist-store.js";
|
|
14
|
+
import { isPeerUnavailableError, } from "../ai-service/state-machine/helpers/stable-peer.js";
|
|
15
|
+
import { sanitizeLogMessage } from "../util/log-sanitizer.js";
|
|
16
|
+
import { getLogger } from "../util/logger.js";
|
|
17
|
+
import { OperationQueue } from "../util/operation-queue.js";
|
|
18
|
+
import { inlineV2BackupSourceFiles } from "./inline-v2-backup-source-files.js";
|
|
19
|
+
import { readIntegrationWritePolicyForEnforcement } from "./integration-write-policy.js";
|
|
20
|
+
import { classifyYamlStepMutation } from "./migration-classifier.js";
|
|
21
|
+
import { recordMigrationVerification } from "./migration-metrics.js";
|
|
22
|
+
import { resolveV2BackupYamlPath } from "./resolve-v2-backup-path.js";
|
|
23
|
+
import { forEachYamlStep } from "./yaml-walk.js";
|
|
24
|
+
const SCRATCH_DIR = "scratch";
|
|
25
|
+
const VERIFICATION_DIR = "migration-verification";
|
|
26
|
+
const DIFF_SIZE_CAP = 1024 * 1024; // 1 MB
|
|
27
|
+
const PIPELINE_TIMEOUT_MS = 30_000;
|
|
28
|
+
/**
|
|
29
|
+
* Hard cap on verification attempts per API per migration. The agent does NOT
|
|
30
|
+
* decide when to stop iterating — this counter is computed from on-disk
|
|
31
|
+
* history and enforced inside `runMigrationVerification`. An LLM agent asked
|
|
32
|
+
* to self-assess "am I converging?" reliably picks the socially acceptable
|
|
33
|
+
* answer ("yes"); the cap removes that judgment from the loop.
|
|
34
|
+
*/
|
|
35
|
+
export const MAX_VERIFICATION_ATTEMPTS = 10;
|
|
36
|
+
/**
|
|
37
|
+
* Verification outcomes caused by editor-peer / environment state rather
|
|
38
|
+
* than by the API under test. These do NOT consume `MAX_VERIFICATION_ATTEMPTS`
|
|
39
|
+
* — burning real attempts on a backgrounded tab or dropped socket pushed APIs
|
|
40
|
+
* toward `exhausted` -> `failed`. They are still recorded in history for
|
|
41
|
+
* diagnostics and for the consecutive-transient backstop below.
|
|
42
|
+
*
|
|
43
|
+
* `transient_exhausted` is itself included: it IS a transient outcome (the
|
|
44
|
+
* backstop tripping), so it keeps the consecutive streak alive while the peer
|
|
45
|
+
* stays down (each subsequent transient re-trips the backstop) and never
|
|
46
|
+
* counts as a real attempt.
|
|
47
|
+
*/
|
|
48
|
+
const TRANSIENT_OUTCOME_KINDS = new Set(["timeout", "disconnected", "transient_exhausted"]);
|
|
49
|
+
/**
|
|
50
|
+
* Runaway backstop: cap on *consecutive* transient (timeout/disconnected)
|
|
51
|
+
* outcomes for an API. Deliberately generous — transient outcomes don't
|
|
52
|
+
* consume real attempts, so this exists only to stop an unattended retry loop
|
|
53
|
+
* from spinning forever against a dead editor peer.
|
|
54
|
+
*
|
|
55
|
+
* Counted as a trailing streak that resets on any real (non-transient)
|
|
56
|
+
* outcome, and checked AFTER the pipeline runs — so a peer that recovers
|
|
57
|
+
* always gets a fresh real attempt and the API self-heals. Crucially, tripping
|
|
58
|
+
* it yields `transient_exhausted`, NOT `exhausted`: the environment failing is
|
|
59
|
+
* never the API's fault, so it must never mark the checklist item `failed`
|
|
60
|
+
* (that was the Foundever failure mode). Sustained disconnects will get a
|
|
61
|
+
* durable pause/resume as a follow-up; here the backstop just tells the agent
|
|
62
|
+
* to stop auto-retrying and escalate to the user.
|
|
63
|
+
*/
|
|
64
|
+
export const MAX_TRANSIENT_VERIFICATION_ATTEMPTS = 30;
|
|
65
|
+
const LANGUAGE_PLUGIN_IDS = new Set(Object.values(LanguagePluginID));
|
|
66
|
+
/**
|
|
67
|
+
* Verify a single API by running both the v2 YAML and v3 TS versions with the
|
|
68
|
+
* supplied inputs and comparing their outputs.
|
|
69
|
+
*
|
|
70
|
+
* Wraps `computeVerificationOutcome` with on-disk history bookkeeping:
|
|
71
|
+
* - Reads `scratch/migration-verification/<apiName>.history.json` and refuses
|
|
72
|
+
* to run beyond `MAX_VERIFICATION_ATTEMPTS`, returning `kind: "exhausted"`.
|
|
73
|
+
* - For `diverged` outcomes, computes `progress` (`first_attempt` |
|
|
74
|
+
* `converging` | `stalled`) by hashing (path, kind) tuples and comparing to
|
|
75
|
+
* the prior diverged attempt's hash.
|
|
76
|
+
* - Appends a history entry on every run so the next call has accurate state.
|
|
77
|
+
*
|
|
78
|
+
* History persistence is best-effort: bookkeeping I/O failures are logged but
|
|
79
|
+
* do not surface as verification errors.
|
|
80
|
+
*/
|
|
81
|
+
export async function runMigrationVerification(params) {
|
|
82
|
+
// Serialize the entire read-cap-check + pipeline + append for a given API
|
|
83
|
+
// through the per-API queue. Two concurrent calls for the same API used to
|
|
84
|
+
// both observe `attempts.length = MAX-1`, both pass the cap check, and
|
|
85
|
+
// both run the pipeline + append — silently exceeding the documented hard
|
|
86
|
+
// cap by N. Wrapping end-to-end (rather than serializing only the append)
|
|
87
|
+
// costs us same-API parallelism — but parallel verifications for the same
|
|
88
|
+
// API are wasteful work anyway (the second result clobbers the first or
|
|
89
|
+
// hits the cap), so the cost is purely on a degenerate path. Different
|
|
90
|
+
// APIs use different queues and remain fully parallel.
|
|
91
|
+
return getVerificationHistoryQueue(params.appRootDir, params.apiName).enqueue(async () => {
|
|
92
|
+
const history = await readHistory(params.appRootDir, params.apiName);
|
|
93
|
+
// Real (non-transient) attempts count over the whole migration: a
|
|
94
|
+
// genuinely non-converging API must still hit MAX_VERIFICATION_ATTEMPTS
|
|
95
|
+
// and fail, regardless of transients sprinkled in between.
|
|
96
|
+
const effectiveAttempts = history.attempts.filter((a) => !TRANSIENT_OUTCOME_KINDS.has(a.kind)).length;
|
|
97
|
+
// Transient backstop counts only the CONSECUTIVE trailing transients —
|
|
98
|
+
// it resets on any real outcome. A lifetime total would let unrelated
|
|
99
|
+
// disconnect episodes across a long migration accumulate and, worse,
|
|
100
|
+
// brick an API that is verifying fine between episodes.
|
|
101
|
+
const trailingTransientAttempts = countTrailingTransientAttempts(history);
|
|
102
|
+
// Only the real-attempt cap short-circuits before running: that API
|
|
103
|
+
// genuinely isn't converging. The transient backstop deliberately does
|
|
104
|
+
// NOT short-circuit here — we run the pipeline so a peer that has
|
|
105
|
+
// recovered gets a fresh real attempt and the API self-heals.
|
|
106
|
+
if (effectiveAttempts >= MAX_VERIFICATION_ATTEMPTS) {
|
|
107
|
+
recordMigrationVerification({ kind: "exhausted" });
|
|
108
|
+
return {
|
|
109
|
+
kind: "exhausted",
|
|
110
|
+
attempts: effectiveAttempts,
|
|
111
|
+
lastDivergence: await readLastDivergedDiff(params.appRootDir, params.apiName),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
const raw = await computeVerificationOutcome(params);
|
|
115
|
+
let outcome;
|
|
116
|
+
let divergenceHashForHistory;
|
|
117
|
+
if (raw.kind === "diverged") {
|
|
118
|
+
const currentHash = divergenceShapeHash(raw.diff.summaryForAgent);
|
|
119
|
+
divergenceHashForHistory = currentHash;
|
|
120
|
+
const lastDivergedHash = findLastDivergedShapeHash(history);
|
|
121
|
+
const progress = lastDivergedHash === undefined
|
|
122
|
+
? "first_attempt"
|
|
123
|
+
: lastDivergedHash === currentHash
|
|
124
|
+
? "stalled"
|
|
125
|
+
: "converging";
|
|
126
|
+
outcome = {
|
|
127
|
+
kind: "diverged",
|
|
128
|
+
diff: raw.diff,
|
|
129
|
+
attempt: effectiveAttempts + 1,
|
|
130
|
+
progress,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
else if ((raw.kind === "timeout" || raw.kind === "disconnected") &&
|
|
134
|
+
trailingTransientAttempts + 1 >= MAX_TRANSIENT_VERIFICATION_ATTEMPTS) {
|
|
135
|
+
// This transient outcome pushes the consecutive streak to the backstop.
|
|
136
|
+
// Escalate to `transient_exhausted` (retryable, never marks failed)
|
|
137
|
+
// instead of returning yet another plain transient the agent would
|
|
138
|
+
// keep retrying forever.
|
|
139
|
+
outcome = {
|
|
140
|
+
kind: "transient_exhausted",
|
|
141
|
+
side: raw.side,
|
|
142
|
+
reason: raw.reason,
|
|
143
|
+
transientAttempts: trailingTransientAttempts + 1,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
outcome = raw;
|
|
148
|
+
}
|
|
149
|
+
// Single decision-point log so an operator chasing "Clark says diverged
|
|
150
|
+
// but I see passed" has a stdout breadcrumb to correlate. Logged here at
|
|
151
|
+
// the single return path of `runMigrationVerification` rather than in
|
|
152
|
+
// each tool-side branch — wraps every outcome (passed, diverged,
|
|
153
|
+
// both_failed, exhausted, skipped_mutation, v2_unrunnable, error) with a
|
|
154
|
+
// consistent shape. Apply name only; raw failure strings stay scrubbed.
|
|
155
|
+
getLogger().info(`[migration-verify] outcome`, {
|
|
156
|
+
apiName: params.apiName,
|
|
157
|
+
attempt: effectiveAttempts + 1,
|
|
158
|
+
maxAttempts: MAX_VERIFICATION_ATTEMPTS,
|
|
159
|
+
// `attempt` counts only real (non-transient) attempts — it is the value
|
|
160
|
+
// the `maxAttempts` cap is enforced against. `totalCalls` is the raw
|
|
161
|
+
// ordinal across every call including transients
|
|
162
|
+
// (timeout/disconnected/transient_exhausted), preserving the pre-ENG-4674
|
|
163
|
+
// total-call semantics of `attempt` as an explicit field rather than a
|
|
164
|
+
// silently-changed one.
|
|
165
|
+
totalCalls: history.attempts.length + 1,
|
|
166
|
+
// Consecutive transient streak *including* this outcome when it is
|
|
167
|
+
// itself transient (timeout/disconnected/transient_exhausted); the
|
|
168
|
+
// just-broken prior streak length when a real outcome ends the run.
|
|
169
|
+
// `countTrailingTransientAttempts` reads history only, so it excludes
|
|
170
|
+
// the current outcome — add it back here so a plain transient reports
|
|
171
|
+
// the same streak length that `transient_exhausted` does
|
|
172
|
+
// (`outcome.transientAttempts` === trailingTransientAttempts + 1).
|
|
173
|
+
trailingTransientAttempts: TRANSIENT_OUTCOME_KINDS.has(outcome.kind)
|
|
174
|
+
? trailingTransientAttempts + 1
|
|
175
|
+
: trailingTransientAttempts,
|
|
176
|
+
kind: outcome.kind,
|
|
177
|
+
progress: outcome.kind === "diverged" ? outcome.progress : undefined,
|
|
178
|
+
divergenceCount: outcome.kind === "diverged"
|
|
179
|
+
? outcome.diff.summaryForAgent.length
|
|
180
|
+
: undefined,
|
|
181
|
+
});
|
|
182
|
+
recordMigrationVerification(outcome);
|
|
183
|
+
// Direct (non-enqueued) write — we already hold this API's queue, so
|
|
184
|
+
// re-entering it would deadlock.
|
|
185
|
+
await writeHistoryEntry(params.appRootDir, params.apiName, {
|
|
186
|
+
ts: new Date().toISOString(),
|
|
187
|
+
kind: outcome.kind,
|
|
188
|
+
divergenceShapeHash: divergenceHashForHistory,
|
|
189
|
+
divergenceCount: outcome.kind === "diverged"
|
|
190
|
+
? outcome.diff.summaryForAgent.length
|
|
191
|
+
: undefined,
|
|
192
|
+
});
|
|
193
|
+
return outcome;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Extract a human-readable message from a thrown value. Transport-close
|
|
198
|
+
* rejections from `ISocket` (the plain-object `{code: 8}` path — see
|
|
199
|
+
* `isTransportCloseError`) are NOT `Error` instances, so a bare `instanceof
|
|
200
|
+
* Error` check falls through to `String(error)` = "[object Object]", discarding
|
|
201
|
+
* the "[internal] Connection closed" message on exactly the disconnect path we
|
|
202
|
+
* surface for on-call diagnosis. Read `.message` off any object that carries a
|
|
203
|
+
* string one before giving up on `String()`.
|
|
204
|
+
*/
|
|
205
|
+
function errorReason(error) {
|
|
206
|
+
if (error instanceof Error)
|
|
207
|
+
return error.message;
|
|
208
|
+
if (typeof error === "object" &&
|
|
209
|
+
error !== null &&
|
|
210
|
+
"message" in error &&
|
|
211
|
+
typeof error.message === "string") {
|
|
212
|
+
return error.message;
|
|
213
|
+
}
|
|
214
|
+
return String(error);
|
|
215
|
+
}
|
|
216
|
+
async function computeVerificationOutcome({ apiName, appRootDir, inputs, runV2Pipeline, runV3Sdk, }) {
|
|
217
|
+
const verificationInputs = inputs ?? {};
|
|
218
|
+
// 1. Detect mutations in the v3 TS source before running anything.
|
|
219
|
+
const apiTsPath = join(appRootDir, "server", "apis", apiName, "api.ts");
|
|
220
|
+
let source;
|
|
221
|
+
try {
|
|
222
|
+
source = await readFile(apiTsPath, "utf-8");
|
|
223
|
+
}
|
|
224
|
+
catch (error) {
|
|
225
|
+
return {
|
|
226
|
+
kind: "error",
|
|
227
|
+
reason: `Cannot read v3 source at ${apiTsPath}: ${error instanceof Error ? error.message : String(error)}`,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
// Extract integration IDs up-front so they can be passed to runV3Sdk for
|
|
231
|
+
// the auth preflight (matching test-api.ts). Falls back to undefined on AST
|
|
232
|
+
// parse failure — runV3Sdk will then rely on the Redux store as before.
|
|
233
|
+
let integrationIds;
|
|
234
|
+
try {
|
|
235
|
+
const ids = extractIntegrationIdsFromSource(source);
|
|
236
|
+
if (ids.length > 0)
|
|
237
|
+
integrationIds = ids;
|
|
238
|
+
}
|
|
239
|
+
catch {
|
|
240
|
+
// AST parse failure: leave undefined.
|
|
241
|
+
}
|
|
242
|
+
let mutations;
|
|
243
|
+
try {
|
|
244
|
+
mutations = extractMutations(source);
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
// AST parse failure: we cannot prove the source is mutation-free, so fall
|
|
248
|
+
// back to the same policy gate as if mutations were detected. The user
|
|
249
|
+
// can still get the API verified manually.
|
|
250
|
+
return {
|
|
251
|
+
kind: "skipped_mutation",
|
|
252
|
+
mutationDetails: [
|
|
253
|
+
`unable to analyze source for mutations: ${error instanceof Error ? error.message : String(error)}`,
|
|
254
|
+
],
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const v2BackupPath = await resolveV2BackupYamlPath(appRootDir, apiName);
|
|
258
|
+
// Also check the v2 backup for writes — a half-migrated API where v3 looks
|
|
259
|
+
// read-only but the original v2 still mutates would otherwise bypass the
|
|
260
|
+
// policy gate and run the v2 pipeline against real integrations.
|
|
261
|
+
const v2Analysis = await analyzeV2BackupMutations(v2BackupPath);
|
|
262
|
+
const mutationDetails = [
|
|
263
|
+
...mutations.map((m) => `v3 ${m.type} "${m.name}": ${m.details}`),
|
|
264
|
+
...v2Analysis.mutationDetails,
|
|
265
|
+
];
|
|
266
|
+
if (mutationDetails.length > 0) {
|
|
267
|
+
const { effective } = await getEffectiveMigrationWritePolicy({
|
|
268
|
+
appRootDir,
|
|
269
|
+
apiName,
|
|
270
|
+
integrationIds,
|
|
271
|
+
});
|
|
272
|
+
if (effective === "deny") {
|
|
273
|
+
return {
|
|
274
|
+
kind: "skipped_mutation",
|
|
275
|
+
mutationDetails,
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
// effective === "allow": fall through to run both pipelines
|
|
279
|
+
}
|
|
280
|
+
// 2. Run v2 YAML pipeline.
|
|
281
|
+
let v2Result;
|
|
282
|
+
try {
|
|
283
|
+
const pipelineResult = await withTimeout(runV2Pipeline(v2BackupPath, verificationInputs), PIPELINE_TIMEOUT_MS, "v2 pipeline");
|
|
284
|
+
if (!pipelineResult.executionResult) {
|
|
285
|
+
return {
|
|
286
|
+
kind: "v2_unrunnable",
|
|
287
|
+
reason: "v2 pipeline returned no execution result",
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
v2Result = pipelineResult.executionResult;
|
|
291
|
+
}
|
|
292
|
+
catch (error) {
|
|
293
|
+
if (error instanceof PipelineTimeoutError) {
|
|
294
|
+
return { kind: "timeout", side: "v2", reason: error.message };
|
|
295
|
+
}
|
|
296
|
+
// The editor peer dying while the RPC was in flight (transport close) OR
|
|
297
|
+
// while it sat queued waiting to reconnect (StablePeer's `peer_closed:` /
|
|
298
|
+
// `peer_queue_overflow`) is the same diagnosis as the pre-flight gate, so
|
|
299
|
+
// the same outcome. It must never fall through to `v2_unrunnable`, which
|
|
300
|
+
// auto-completes the checklist item on a dead editor tab.
|
|
301
|
+
if (error instanceof EditorClientUnavailableError ||
|
|
302
|
+
isPeerUnavailableError(error)) {
|
|
303
|
+
return {
|
|
304
|
+
kind: "disconnected",
|
|
305
|
+
side: "v2",
|
|
306
|
+
reason: errorReason(error),
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
return {
|
|
310
|
+
kind: "v2_unrunnable",
|
|
311
|
+
reason: formatV2UnrunnableReason(error),
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
// 3. Run v3 SDK.
|
|
315
|
+
let v3Result;
|
|
316
|
+
try {
|
|
317
|
+
v3Result = await withTimeout(runV3Sdk(integrationIds, verificationInputs), PIPELINE_TIMEOUT_MS, "v3 SDK");
|
|
318
|
+
}
|
|
319
|
+
catch (error) {
|
|
320
|
+
if (error instanceof PipelineTimeoutError) {
|
|
321
|
+
return { kind: "timeout", side: "v3", reason: error.message };
|
|
322
|
+
}
|
|
323
|
+
if (error instanceof EditorClientUnavailableError ||
|
|
324
|
+
isPeerUnavailableError(error)) {
|
|
325
|
+
return {
|
|
326
|
+
kind: "disconnected",
|
|
327
|
+
side: "v3",
|
|
328
|
+
reason: errorReason(error),
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
kind: "error",
|
|
333
|
+
reason: errorReason(error),
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
// 3.5. If both executions returned failure, surface that explicitly rather
|
|
337
|
+
// than letting compareApiResults produce a vacuous "diff.empty" pass.
|
|
338
|
+
if (!v2Result.success && !v3Result.success) {
|
|
339
|
+
return {
|
|
340
|
+
kind: "both_failed",
|
|
341
|
+
v2Error: extractFailureMessage(v2Result, "v2"),
|
|
342
|
+
v3Error: extractFailureMessage(v3Result, "v3"),
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
// 3.6. One-sided failure: if one side succeeded and the other failed, that is
|
|
346
|
+
// a divergence regardless of what the output diff says. Without this
|
|
347
|
+
// guard, a v3 that returns `success: false` with empty `outputs` would
|
|
348
|
+
// compare equal to a v2 with empty `outputs`, producing a false "passed".
|
|
349
|
+
if (v2Result.success !== v3Result.success) {
|
|
350
|
+
const failedSide = v2Result.success ? "v3" : "v2";
|
|
351
|
+
const failureMessage = extractFailureMessage(v2Result.success ? v3Result : v2Result, failedSide);
|
|
352
|
+
// Server-side log so divergence shows up in the dev-server log stream
|
|
353
|
+
// (and DataDog when the EE forwards stdout). The actual failure text is
|
|
354
|
+
// intentionally NOT logged here — extractFailureMessage may include
|
|
355
|
+
// upstream response bodies, query strings, or credentials echoed back by
|
|
356
|
+
// the integration. The agent already gets failureMessage via
|
|
357
|
+
// summaryForAgent, and the user sees full detail in the verification UI.
|
|
358
|
+
// What we want from the server log is a "this happened" marker:
|
|
359
|
+
// apiName, which side failed, and the error type/source classification.
|
|
360
|
+
// Logger.warn accepts free-form key/value pairs; .error has a stricter
|
|
361
|
+
// ErrorMeta shape that doesn't fit this diagnostic record.
|
|
362
|
+
getLogger().warn(`Migration verification diverged for ${apiName}`, {
|
|
363
|
+
apiName,
|
|
364
|
+
failedSide,
|
|
365
|
+
v2: {
|
|
366
|
+
success: v2Result.success,
|
|
367
|
+
hasSystemError: Boolean(v2Result.systemError),
|
|
368
|
+
firstErrorType: v2Result.errors?.[0]?.type,
|
|
369
|
+
},
|
|
370
|
+
v3: { success: v3Result.success },
|
|
371
|
+
});
|
|
372
|
+
// The agent-facing `failureMessage` is scrubbed via `redactForAgent`
|
|
373
|
+
// because it ends up in LLM context (and from there into chat
|
|
374
|
+
// transcripts persisted by the client). The UI-facing `valuesForUi.reason`
|
|
375
|
+
// intentionally keeps the raw text — that channel renders to the
|
|
376
|
+
// user's own browser, not into the model context.
|
|
377
|
+
return {
|
|
378
|
+
kind: "diverged",
|
|
379
|
+
diff: {
|
|
380
|
+
empty: false,
|
|
381
|
+
summaryForAgent: [
|
|
382
|
+
{
|
|
383
|
+
path: "success",
|
|
384
|
+
kind: "value_mismatch",
|
|
385
|
+
expectedHash: String(v2Result.success),
|
|
386
|
+
actualHash: String(v3Result.success),
|
|
387
|
+
failureMessage: redactForAgent(failureMessage),
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
valuesForUi: [
|
|
391
|
+
{
|
|
392
|
+
path: "success",
|
|
393
|
+
expected: v2Result.success,
|
|
394
|
+
actual: v3Result.success,
|
|
395
|
+
reason: `${failedSide} execution failed while the other succeeded: ${failureMessage}`,
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
},
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
// 4. Compare.
|
|
402
|
+
const diff = compareApiResults(v2Result, v3Result);
|
|
403
|
+
if (diff.empty) {
|
|
404
|
+
return { kind: "passed" };
|
|
405
|
+
}
|
|
406
|
+
// 5. Persist the diff to disk for the UI to render (valuesForUi only).
|
|
407
|
+
const verificationDir = join(appRootDir, SCRATCH_DIR, VERIFICATION_DIR);
|
|
408
|
+
await mkdir(verificationDir, { recursive: true });
|
|
409
|
+
const diffPath = join(verificationDir, `${apiName}.diff.json`);
|
|
410
|
+
const diffJson = JSON.stringify({ valuesForUi: diff.valuesForUi }, null, 2);
|
|
411
|
+
const payload = diffJson.length > DIFF_SIZE_CAP
|
|
412
|
+
? JSON.stringify({ valuesForUi: diff.valuesForUi.slice(0, 50), truncated: true }, null, 2)
|
|
413
|
+
: diffJson;
|
|
414
|
+
await writeFile(diffPath, payload, "utf-8");
|
|
415
|
+
return { kind: "diverged", diff };
|
|
416
|
+
}
|
|
417
|
+
/** Relative path (from appRootDir) for a diff JSON file. */
|
|
418
|
+
function diffRelativePath(apiName) {
|
|
419
|
+
return `${SCRATCH_DIR}/${VERIFICATION_DIR}/${apiName}.diff.json`;
|
|
420
|
+
}
|
|
421
|
+
function assertNever(value) {
|
|
422
|
+
throw new Error(`Unexpected verification outcome: ${JSON.stringify(value)}`);
|
|
423
|
+
}
|
|
424
|
+
async function clearTransientVerificationFields(params) {
|
|
425
|
+
const { apiName, appRootDirPath } = params;
|
|
426
|
+
// Transient outcomes (`error`, `timeout`, `disconnected`,
|
|
427
|
+
// `transient_exhausted`) must never mark the checklist item complete or stamp
|
|
428
|
+
// a skip reason — the agent should retry once the environment recovers. Clear
|
|
429
|
+
// stale fields from a prior run so the UI does not show outdated pass/skip
|
|
430
|
+
// metadata.
|
|
431
|
+
await updateChecklistItem({
|
|
432
|
+
appRootDirPath,
|
|
433
|
+
itemId: `api_${apiName}`,
|
|
434
|
+
verificationOutcome: null,
|
|
435
|
+
verificationSkippedReason: null,
|
|
436
|
+
lastVerificationAt: new Date().toISOString(),
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
export async function syncVerificationOutcomeToChecklist(params) {
|
|
440
|
+
const { apiName, appRootDirPath, clark, outcome } = params;
|
|
441
|
+
if (outcome.kind === "passed") {
|
|
442
|
+
markSdkApiAsVerified(clark, apiName);
|
|
443
|
+
await updateChecklistItem({
|
|
444
|
+
appRootDirPath,
|
|
445
|
+
itemId: `api_${apiName}`,
|
|
446
|
+
verificationOutcome: "auto_passed",
|
|
447
|
+
verificationSkippedReason: null,
|
|
448
|
+
lastVerificationAt: new Date().toISOString(),
|
|
449
|
+
});
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
if (outcome.kind === "skipped_mutation") {
|
|
453
|
+
// Deliberate behavior change (ENG-4484): mutation-skipped APIs are marked
|
|
454
|
+
// `completed` immediately so the user can verify them manually at finalize
|
|
455
|
+
// time instead of leaving rows stuck `in_progress`.
|
|
456
|
+
await updateChecklistItem({
|
|
457
|
+
appRootDirPath,
|
|
458
|
+
itemId: `api_${apiName}`,
|
|
459
|
+
status: "completed",
|
|
460
|
+
verificationSkippedReason: "mutation",
|
|
461
|
+
verificationOutcome: null,
|
|
462
|
+
lastVerificationAt: new Date().toISOString(),
|
|
463
|
+
});
|
|
464
|
+
return;
|
|
465
|
+
}
|
|
466
|
+
if (outcome.kind === "v2_unrunnable") {
|
|
467
|
+
await updateChecklistItem({
|
|
468
|
+
appRootDirPath,
|
|
469
|
+
itemId: `api_${apiName}`,
|
|
470
|
+
verificationSkippedReason: "v2_unrunnable",
|
|
471
|
+
verificationOutcome: null,
|
|
472
|
+
lastVerificationAt: new Date().toISOString(),
|
|
473
|
+
});
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
if (outcome.kind === "both_failed") {
|
|
477
|
+
// Deliberately do NOT mark `status: completed` — the agent should retry
|
|
478
|
+
// with synthesized inputs rather than treat this as terminal.
|
|
479
|
+
await updateChecklistItem({
|
|
480
|
+
appRootDirPath,
|
|
481
|
+
itemId: `api_${apiName}`,
|
|
482
|
+
verificationSkippedReason: "both_failed",
|
|
483
|
+
verificationOutcome: null,
|
|
484
|
+
lastVerificationAt: new Date().toISOString(),
|
|
485
|
+
});
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
if (outcome.kind === "diverged") {
|
|
489
|
+
await updateChecklistItem({
|
|
490
|
+
appRootDirPath,
|
|
491
|
+
itemId: `api_${apiName}`,
|
|
492
|
+
verificationOutcome: null,
|
|
493
|
+
verificationSkippedReason: null,
|
|
494
|
+
lastVerificationAt: new Date().toISOString(),
|
|
495
|
+
lastVerificationDiffPath: diffRelativePath(apiName),
|
|
496
|
+
});
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
if (outcome.kind === "exhausted") {
|
|
500
|
+
// Terminal failure: the hard attempt cap was reached without convergence.
|
|
501
|
+
await updateChecklistItem({
|
|
502
|
+
appRootDirPath,
|
|
503
|
+
itemId: `api_${apiName}`,
|
|
504
|
+
status: "failed",
|
|
505
|
+
failureReason: `verification_exhausted: hit MAX_VERIFICATION_ATTEMPTS (${MAX_VERIFICATION_ATTEMPTS}) without converging. See scratch/migration-verification/${apiName}.history.json for the per-attempt log.`,
|
|
506
|
+
verificationOutcome: null,
|
|
507
|
+
verificationSkippedReason: null,
|
|
508
|
+
lastVerificationAt: new Date().toISOString(),
|
|
509
|
+
...(outcome.lastDivergence
|
|
510
|
+
? { lastVerificationDiffPath: diffRelativePath(apiName) }
|
|
511
|
+
: {}),
|
|
512
|
+
});
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
if (outcome.kind === "error" ||
|
|
516
|
+
outcome.kind === "timeout" ||
|
|
517
|
+
outcome.kind === "disconnected" ||
|
|
518
|
+
outcome.kind === "transient_exhausted") {
|
|
519
|
+
// `transient_exhausted` (the consecutive-transient backstop) belongs here,
|
|
520
|
+
// NOT with `exhausted`: the environment being unreachable is never the
|
|
521
|
+
// API's fault, so the item must stay retryable and must never be marked
|
|
522
|
+
// failed. It self-heals once the editor peer reconnects.
|
|
523
|
+
await clearTransientVerificationFields({
|
|
524
|
+
apiName,
|
|
525
|
+
appRootDirPath,
|
|
526
|
+
});
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
return assertNever(outcome);
|
|
530
|
+
}
|
|
531
|
+
export function verificationCountsAsApiTest(kind) {
|
|
532
|
+
return kind === "passed" || kind === "diverged" || kind === "both_failed";
|
|
533
|
+
}
|
|
534
|
+
export const migrationVerificationToolFactory = createToolFactory("runMigrationVerification", ({ clark, services, }) => ({
|
|
535
|
+
category: ToolCategory.DEBUG,
|
|
536
|
+
timeoutMs: 300_000, // 5 minutes — verification runs both v2+v3 pipelines which regularly exceed 60s
|
|
537
|
+
getRequiredPermissions: async (input) => {
|
|
538
|
+
const apiName = input?.apiName;
|
|
539
|
+
if (!apiName)
|
|
540
|
+
return [];
|
|
541
|
+
let source;
|
|
542
|
+
try {
|
|
543
|
+
source = await services.appShell.readFile(`server/apis/${apiName}/api.ts`);
|
|
544
|
+
}
|
|
545
|
+
catch {
|
|
546
|
+
return [];
|
|
547
|
+
}
|
|
548
|
+
let mutations;
|
|
549
|
+
try {
|
|
550
|
+
mutations = extractMutations(source);
|
|
551
|
+
}
|
|
552
|
+
catch {
|
|
553
|
+
return [];
|
|
554
|
+
}
|
|
555
|
+
if (mutations.length === 0)
|
|
556
|
+
return [];
|
|
557
|
+
let integrationIds;
|
|
558
|
+
try {
|
|
559
|
+
const ids = extractIntegrationIdsFromSource(source);
|
|
560
|
+
if (ids.length > 0)
|
|
561
|
+
integrationIds = ids;
|
|
562
|
+
}
|
|
563
|
+
catch {
|
|
564
|
+
integrationIds = undefined;
|
|
565
|
+
}
|
|
566
|
+
const { effective, sourceIds } = await getEffectiveMigrationWritePolicy({
|
|
567
|
+
appRootDir: services.appRootDirPath,
|
|
568
|
+
apiName,
|
|
569
|
+
integrationIds,
|
|
570
|
+
});
|
|
571
|
+
// Deny short-circuits to skipped_mutation without writes; allow runs
|
|
572
|
+
// pipelines under the migration-wide policy — neither needs per-entity WRITE.
|
|
573
|
+
if (effective === "deny" ||
|
|
574
|
+
effective === "allow" ||
|
|
575
|
+
sourceIds.length === 0) {
|
|
576
|
+
return [];
|
|
577
|
+
}
|
|
578
|
+
return sourceIds.map((entityId) => ({
|
|
579
|
+
entityType: AiEntityType.INTEGRATION,
|
|
580
|
+
entityId,
|
|
581
|
+
permissionType: AiPermissionType.WRITE,
|
|
582
|
+
}));
|
|
583
|
+
},
|
|
584
|
+
getActionName: (input) => {
|
|
585
|
+
const name = input?.apiName ?? "API";
|
|
586
|
+
return {
|
|
587
|
+
future: `verify ${name}`,
|
|
588
|
+
present: `verifying ${name}`,
|
|
589
|
+
past: `verified ${name}`,
|
|
590
|
+
};
|
|
591
|
+
},
|
|
592
|
+
description: "Verify a migrated API by running both the v2 YAML and v3 TS versions " +
|
|
593
|
+
"and comparing their outputs. Pass `inputs` to inject test parameters " +
|
|
594
|
+
"for any bindings the API references (the same way `testApi` does — " +
|
|
595
|
+
"`Input1.value`, `Table1.selectedRow`, etc.); both v2 and v3 receive " +
|
|
596
|
+
"the same inputs so the comparison is apples-to-apples. Omit `inputs` " +
|
|
597
|
+
"(or pass `{}`) only when the API takes no inputs. Each pipeline has a " +
|
|
598
|
+
`${PIPELINE_TIMEOUT_MS / 1000}s reporting timeout (reject-only — the ` +
|
|
599
|
+
"underlying execution can't be cancelled, so allow-policy mutations " +
|
|
600
|
+
"may continue server-side after this returns). Returns a structured outcome: " +
|
|
601
|
+
"'passed', 'diverged' (with summaryForAgent), 'both_failed' (both " +
|
|
602
|
+
"executions errored — cannot determine correctness), " +
|
|
603
|
+
"'skipped_mutation', 'v2_unrunnable', 'timeout' (transient stall — " +
|
|
604
|
+
"retry, do NOT mark complete), 'disconnected' (editor connection down " +
|
|
605
|
+
"— have the user focus the app tab, retry, do NOT mark complete), or " +
|
|
606
|
+
"'error'. On 'diverged' use " +
|
|
607
|
+
"`summaryForAgent` to revise `server/apis/<apiName>/api.ts` and re-run " +
|
|
608
|
+
"the tool — the attempt counter is tracked server-side from on-disk " +
|
|
609
|
+
"history; the response always includes the current `attempt` and " +
|
|
610
|
+
"`maxAttempts` so the agent doesn't have to thread it.",
|
|
611
|
+
inputSchema: z.object({
|
|
612
|
+
apiName: z
|
|
613
|
+
.string()
|
|
614
|
+
.describe("The API name to verify (must match the directory under " +
|
|
615
|
+
"server/apis/, may contain only letters, digits, hyphens, or " +
|
|
616
|
+
"underscores). Bare .string() — `.regex()` emits a JSON Schema " +
|
|
617
|
+
"`pattern` keyword that Snowflake Cortex rejects; the format is " +
|
|
618
|
+
"validated below at runtime.")
|
|
619
|
+
.refine((v) => /^[a-zA-Z0-9_-]+$/.test(v), {
|
|
620
|
+
message: "apiName must contain only letters, digits, hyphens, or underscores",
|
|
621
|
+
}),
|
|
622
|
+
inputs: z
|
|
623
|
+
.record(z.string(), z.any())
|
|
624
|
+
.optional()
|
|
625
|
+
.describe("Test input values for the API's bindings, applied to BOTH the " +
|
|
626
|
+
"v2 YAML and v3 TS executions so the diff is meaningful. Use the " +
|
|
627
|
+
"same approach as `testApi`: a key per binding the API references " +
|
|
628
|
+
"(component values like `Input1.value`, table selections like " +
|
|
629
|
+
"`Table1.selectedRow`, state variables, workflow params, etc.) " +
|
|
630
|
+
"with realistic mock values that match the binding's expected " +
|
|
631
|
+
"type. Omit (defaults to `{}`) only when the API takes no inputs " +
|
|
632
|
+
"— passing `{}` for an API that needs inputs typically produces " +
|
|
633
|
+
"a vacuous 'both_failed' result."),
|
|
634
|
+
// `attemptCount` was previously declared here for the agent to thread
|
|
635
|
+
// through retries, but `execute` never read it — the real attempt
|
|
636
|
+
// count is computed from on-disk history inside
|
|
637
|
+
// `runMigrationVerification` so an agent that lies about its attempt
|
|
638
|
+
// index can't bypass `MAX_VERIFICATION_ATTEMPTS`. The field is dropped
|
|
639
|
+
// to match what the tool actually uses; Zod's default object policy
|
|
640
|
+
// strips unknown keys so any agent still passing it in-flight is a
|
|
641
|
+
// no-op rather than an error.
|
|
642
|
+
}),
|
|
643
|
+
async execute({ apiName, inputs }) {
|
|
644
|
+
const appRootDir = services.appRootDirPath;
|
|
645
|
+
const outcome = await runMigrationVerification({
|
|
646
|
+
apiName,
|
|
647
|
+
appRootDir,
|
|
648
|
+
inputs,
|
|
649
|
+
runV2Pipeline: async (sourcePath, pipelineInputs) => {
|
|
650
|
+
// runApiValidationPipeline's sourcePath only controls metadata
|
|
651
|
+
// loading (validateMetadata: false here), not execution — it always
|
|
652
|
+
// calls aiExecuteV2Api({ type: "fetch", apiName }) which resolves the
|
|
653
|
+
// API by name in the editor. After migration that name points to the
|
|
654
|
+
// v3 TS version, so the v2 backup YAML was never actually run.
|
|
655
|
+
// Load the backup YAML directly and execute inline instead.
|
|
656
|
+
const yamlContent = await readFile(sourcePath, "utf-8");
|
|
657
|
+
const apiDefinition = yaml.parse(yamlContent);
|
|
658
|
+
await inlineV2BackupSourceFiles(apiDefinition, sourcePath);
|
|
659
|
+
const editorClient = clark.context.peer;
|
|
660
|
+
// `peer` is a StablePeer proxy: always truthy, queues calls while
|
|
661
|
+
// disconnected. Gate on real connection state so a dead tab yields
|
|
662
|
+
// `disconnected` immediately instead of a 30s `timeout`, and so no
|
|
663
|
+
// stale execution enters the reconnect replay queue.
|
|
664
|
+
await assertEditorClientConnected(editorClient, "v2 pipeline");
|
|
665
|
+
const executor = new ApiExecutor(editorClient, services.integrationStore);
|
|
666
|
+
const executionResult = await executor.execute({ type: "inline", definition: apiDefinition }, pipelineInputs, { includeStepOutputs: false });
|
|
667
|
+
return { success: executionResult.success, executionResult };
|
|
668
|
+
},
|
|
669
|
+
runV3Sdk: async (integrationIds, sdkInputs) => {
|
|
670
|
+
const editorClient = clark.context.peer;
|
|
671
|
+
await assertEditorClientConnected(editorClient, "v3 SDK");
|
|
672
|
+
const sdkResult = await editorClient.call.aiExecuteSdkApi({
|
|
673
|
+
apiName,
|
|
674
|
+
input: sdkInputs,
|
|
675
|
+
entryPoint: `server/apis/${apiName}/api.ts`,
|
|
676
|
+
integrationIds,
|
|
677
|
+
});
|
|
678
|
+
// SdkApiExecutionResult uses `output` (singular) while
|
|
679
|
+
// ApiExecutionResult uses `outputs` (plural) — normalize here.
|
|
680
|
+
// Also forward the SDK error so divergence diagnostics can show the
|
|
681
|
+
// real reason instead of a bare success: false.
|
|
682
|
+
const errors = sdkResult.error
|
|
683
|
+
? [
|
|
684
|
+
{
|
|
685
|
+
type: "execution",
|
|
686
|
+
message: sdkResult.error.message,
|
|
687
|
+
},
|
|
688
|
+
]
|
|
689
|
+
: undefined;
|
|
690
|
+
return {
|
|
691
|
+
success: sdkResult.success,
|
|
692
|
+
outputs: sdkResult.output,
|
|
693
|
+
errors,
|
|
694
|
+
};
|
|
695
|
+
},
|
|
696
|
+
});
|
|
697
|
+
if (verificationCountsAsApiTest(outcome.kind)) {
|
|
698
|
+
markSdkApiAsVerified(clark, apiName);
|
|
699
|
+
}
|
|
700
|
+
// Update checklist with verification metadata. Each branch explicitly
|
|
701
|
+
// clears fields from the previous run that no longer apply (null = clear).
|
|
702
|
+
await syncVerificationOutcomeToChecklist({
|
|
703
|
+
apiName,
|
|
704
|
+
appRootDirPath: appRootDir,
|
|
705
|
+
clark,
|
|
706
|
+
outcome,
|
|
707
|
+
});
|
|
708
|
+
if (outcome.kind === "diverged") {
|
|
709
|
+
return {
|
|
710
|
+
kind: "diverged",
|
|
711
|
+
summaryForAgent: outcome.diff.summaryForAgent,
|
|
712
|
+
diffPath: diffRelativePath(apiName),
|
|
713
|
+
attempt: outcome.attempt,
|
|
714
|
+
maxAttempts: MAX_VERIFICATION_ATTEMPTS,
|
|
715
|
+
progress: outcome.progress,
|
|
716
|
+
guidance: progressGuidance(outcome.progress, outcome.attempt),
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
if (outcome.kind === "exhausted") {
|
|
720
|
+
// Deliberately do NOT include the persisted diff payload (which holds
|
|
721
|
+
// raw response values) in the agent-facing tool result — those values
|
|
722
|
+
// belong to the user's data plane and stay scoped to local scratch
|
|
723
|
+
// and the UI render path. The checklist item already carries
|
|
724
|
+
// `lastVerificationDiffPath` for the UI to read directly from disk.
|
|
725
|
+
return {
|
|
726
|
+
kind: "exhausted",
|
|
727
|
+
attempts: outcome.attempts,
|
|
728
|
+
summary: `\`${apiName}\` hit the hard cap of ${MAX_VERIFICATION_ATTEMPTS} verification attempts without converging. ` +
|
|
729
|
+
`The checklist item has been marked failed; do NOT call runMigrationVerification again for this API in this migration run. ` +
|
|
730
|
+
`Continue to the next API.`,
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
if (outcome.kind === "skipped_mutation") {
|
|
734
|
+
return {
|
|
735
|
+
kind: "skipped_mutation",
|
|
736
|
+
mutationDetails: outcome.mutationDetails,
|
|
737
|
+
summary: `\`${apiName}\` makes writes — skipped automatic verification (write policy: deny). Mark as manually verified once you have confirmed the API behaves correctly.`,
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
if (outcome.kind === "passed") {
|
|
741
|
+
return {
|
|
742
|
+
kind: "passed",
|
|
743
|
+
summary: `\`${apiName}\` verified — v2 and v3 outputs matched exactly.`,
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
if (outcome.kind === "v2_unrunnable") {
|
|
747
|
+
return {
|
|
748
|
+
kind: "v2_unrunnable",
|
|
749
|
+
summary: `The original pre-migration version of \`${apiName}\` couldn't be run for comparison (${outcome.reason}), ` +
|
|
750
|
+
`so automatic verification was skipped. The API has been marked complete — ` +
|
|
751
|
+
`test it in the app to confirm it works as expected.`,
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
if (outcome.kind === "both_failed") {
|
|
755
|
+
// Scrub raw upstream error strings before surfacing them to the
|
|
756
|
+
// model — same threat model as the diverged branch's
|
|
757
|
+
// `redactForAgent(failureMessage)`. The persisted server log already
|
|
758
|
+
// omits the raw message; the agent-facing channel must too.
|
|
759
|
+
return {
|
|
760
|
+
kind: "both_failed",
|
|
761
|
+
summary: `Both the original and migrated versions of \`${apiName}\` returned errors ` +
|
|
762
|
+
`(typically because the API reads bindings — Input1.value, Table1.selectedRow, ` +
|
|
763
|
+
`workflow params, etc. — that the verification call did not supply). The item ` +
|
|
764
|
+
`is NOT marked complete; per the migration skill, synthesize realistic mock ` +
|
|
765
|
+
`inputs that satisfy the bindings the API references and call ` +
|
|
766
|
+
`runMigrationVerification again. Only treat this as terminal if the failure is ` +
|
|
767
|
+
`clearly environmental (auth/credentials/integration unavailable). ` +
|
|
768
|
+
`Original error: ${redactForAgent(outcome.v2Error)}. ` +
|
|
769
|
+
`Migrated error: ${redactForAgent(outcome.v3Error)}.`,
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
if (outcome.kind === "timeout") {
|
|
773
|
+
return {
|
|
774
|
+
kind: "timeout",
|
|
775
|
+
side: outcome.side,
|
|
776
|
+
summary: `Verification of \`${apiName}\` hit the ${PIPELINE_TIMEOUT_MS / 1000}s reporting timeout on the ` +
|
|
777
|
+
`${outcome.side === "v2" ? "original (v2)" : "migrated (v3)"} execution (${outcome.reason}). ` +
|
|
778
|
+
`This is a transient environment stall (editor connection, network), NOT evidence the API is broken ` +
|
|
779
|
+
`or that its baseline can't run. Do NOT mark the item completed. Call runMigrationVerification again; ` +
|
|
780
|
+
`if it times out repeatedly, tell the user verification is stalling — likely because the app tab is ` +
|
|
781
|
+
`backgrounded or the connection dropped — and ask them to keep the tab focused, then retry.`,
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
if (outcome.kind === "disconnected") {
|
|
785
|
+
return {
|
|
786
|
+
kind: "disconnected",
|
|
787
|
+
side: outcome.side,
|
|
788
|
+
summary: `Verification of \`${apiName}\` could not run the ` +
|
|
789
|
+
`${outcome.side === "v2" ? "original (v2)" : "migrated (v3)"} execution because the editor ` +
|
|
790
|
+
`connection is down (${outcome.reason}) — the app tab is closed, backgrounded, or reconnecting. ` +
|
|
791
|
+
`This says nothing about the API itself. Do NOT mark the item completed. Tell the user the app tab ` +
|
|
792
|
+
`needs to stay open and focused for verification, then call runMigrationVerification again.`,
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
if (outcome.kind === "transient_exhausted") {
|
|
796
|
+
return {
|
|
797
|
+
kind: "transient_exhausted",
|
|
798
|
+
side: outcome.side,
|
|
799
|
+
summary: `Verification of \`${apiName}\` has failed to reach the editor ${outcome.transientAttempts} times in a row ` +
|
|
800
|
+
`without it becoming runnable (most recent: ${outcome.side === "v2" ? "original (v2)" : "migrated (v3)"} — ${outcome.reason}). ` +
|
|
801
|
+
`This is a persistent environment problem — the app tab is closed/backgrounded or the connection keeps dropping — ` +
|
|
802
|
+
`NOT a problem with the API, and the item has NOT been marked complete or failed. STOP calling ` +
|
|
803
|
+
`runMigrationVerification for this API now: tell the user verification is blocked because the editor/app tab ` +
|
|
804
|
+
`is disconnected, ask them to reopen it and keep it focused, and only retry once they confirm. Verification ` +
|
|
805
|
+
`resumes automatically for this API the moment the connection is restored.`,
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
// outcome.kind === "error" — the only remaining case
|
|
809
|
+
return {
|
|
810
|
+
kind: "error",
|
|
811
|
+
reason: outcome.reason,
|
|
812
|
+
};
|
|
813
|
+
},
|
|
814
|
+
}));
|
|
815
|
+
/**
|
|
816
|
+
* Soft UX timeout for the verification pipeline.
|
|
817
|
+
*
|
|
818
|
+
* IMPORTANT: this is a *reporting* timeout, not an execution boundary. The
|
|
819
|
+
* underlying work — `aiExecuteV2Api` and `aiExecuteSdkApi` editor-client RPCs —
|
|
820
|
+
* has no cancellation channel (the socket `MethodSchema` is a plain
|
|
821
|
+
* `(params) => Promise<Response>`; there is no AbortSignal plumbed through
|
|
822
|
+
* the RPC, the browser-side handler, or the SDK runtime). When this rejects,
|
|
823
|
+
* the in-flight execution keeps running until the server completes or the
|
|
824
|
+
* socket disconnects.
|
|
825
|
+
*
|
|
826
|
+
* What this does protect: the verification UI doesn't stall indefinitely on a
|
|
827
|
+
* slow API; the agent gets a deterministic outcome to act on.
|
|
828
|
+
*
|
|
829
|
+
* What this does NOT protect: write-capable side effects already in flight.
|
|
830
|
+
* Mutation safety is provided by the `integrationWritePolicy` check that runs
|
|
831
|
+
* BEFORE this timeout race ever fires — `runMigrationVerification` inspects
|
|
832
|
+
* BOTH the v3 source (via `extractMutations`) and the v2 backup YAML (via
|
|
833
|
+
* `analyzeV2BackupMutations`); if either side has any write or unclassified
|
|
834
|
+
* step, the pipelines are skipped entirely unless the user has explicitly
|
|
835
|
+
* marked every involved integration as "allow". By the time this `withTimeout`
|
|
836
|
+
* runs, any side effects in flight have already been opted into. Verification
|
|
837
|
+
* is not a sandbox; it relies on the policy gate, not on cancellation.
|
|
838
|
+
*
|
|
839
|
+
* Adding real cancellation would require extending `MethodSchema` with abort
|
|
840
|
+
* signaling and propagating it through the editorClient RPC layer. Tracked
|
|
841
|
+
* separately; out of scope for this verification helper.
|
|
842
|
+
*/
|
|
843
|
+
function withTimeout(promise, ms, label) {
|
|
844
|
+
let timer;
|
|
845
|
+
return Promise.race([
|
|
846
|
+
promise.finally(() => clearTimeout(timer)),
|
|
847
|
+
new Promise((_, reject) => {
|
|
848
|
+
timer = setTimeout(() => reject(new PipelineTimeoutError(`${label} timed out after ${ms / 1000}s`)), ms);
|
|
849
|
+
}),
|
|
850
|
+
]);
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Typed rejection for `withTimeout` so the outcome classifier can tell "the
|
|
854
|
+
* pipeline stalled past the reporting timeout" (transient — retryable) apart
|
|
855
|
+
* from "the pipeline itself threw" (e.g. unreadable v2 backup — a real
|
|
856
|
+
* `v2_unrunnable`). String-matching the message would break silently on
|
|
857
|
+
* rewording; the class is the contract.
|
|
858
|
+
*/
|
|
859
|
+
class PipelineTimeoutError extends Error {
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Thrown by the pipeline runners when the editor client (the user's browser
|
|
863
|
+
* tab, `clark.context.peer`) is not connected at call time. Exported because
|
|
864
|
+
* the runners are injected: the tool factory's closures throw it and the
|
|
865
|
+
* classifier in this module catches it via `instanceof`. Unlike a timeout
|
|
866
|
+
* this is an unambiguous diagnosis — the connection is known to be down —
|
|
867
|
+
* but the action contract is the same: retryable, never mark complete.
|
|
868
|
+
*/
|
|
869
|
+
export class EditorClientUnavailableError extends Error {
|
|
870
|
+
}
|
|
871
|
+
const FILE_REFERENCE_PROTO_DECODE_PATTERN = /plugins\.javascript\.v1\.Plugin\.body from JSON: object|plugins\.python\.v1\.Plugin\.body from JSON: object/;
|
|
872
|
+
function formatV2UnrunnableReason(error) {
|
|
873
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
874
|
+
if (FILE_REFERENCE_PROTO_DECODE_PATTERN.test(message)) {
|
|
875
|
+
return ("v2 backup uses file-referenced JS/Python blocks but migration verification " +
|
|
876
|
+
"failed to inline their source files before proto validation. " +
|
|
877
|
+
`Original error: ${message}`);
|
|
878
|
+
}
|
|
879
|
+
return message;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* How long a pipeline runner waits for the editor peer to (re)connect before
|
|
883
|
+
* failing with `disconnected`. This is a pre-flight gate, not a retry budget:
|
|
884
|
+
* long enough to ride out a heartbeat flap mid-reconnect, short enough that a
|
|
885
|
+
* genuinely-gone tab fails fast instead of burning the full 30s reporting
|
|
886
|
+
* timeout.
|
|
887
|
+
*/
|
|
888
|
+
export const EDITOR_CONNECT_GRACE_MS = 5_000;
|
|
889
|
+
/**
|
|
890
|
+
* Pre-flight connectivity gate for the pipeline runners. The editor peer
|
|
891
|
+
* (`clark.context.peer`) is a StablePeer proxy — always truthy even when the
|
|
892
|
+
* underlying socket is gone, and it silently queues calls while disconnected
|
|
893
|
+
* (replayed on reconnect). A bare truthiness check therefore never fires and
|
|
894
|
+
* a dead tab surfaces as a 30s `timeout` instead of `disconnected`. Gate on
|
|
895
|
+
* real connection state instead, tolerating a brief reconnect window.
|
|
896
|
+
* Exported for direct unit testing.
|
|
897
|
+
*/
|
|
898
|
+
export async function assertEditorClientConnected(peer, label) {
|
|
899
|
+
if (await peer.whenConnected(EDITOR_CONNECT_GRACE_MS))
|
|
900
|
+
return;
|
|
901
|
+
throw new EditorClientUnavailableError(`editor peer disconnected (${label}): no reconnect within ${EDITOR_CONNECT_GRACE_MS / 1000}s`);
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Inspect a v2 backup YAML for mutating steps and the integrations they touch.
|
|
905
|
+
*
|
|
906
|
+
* Returns empty results when the backup is missing or unparseable — the
|
|
907
|
+
* verification flow handles that downstream as `v2_unrunnable`. The goal here
|
|
908
|
+
* is only to feed the policy gate so v2-only writes don't bypass it.
|
|
909
|
+
*
|
|
910
|
+
* Walks the whole tree via `forEachYamlStep` so writes nested inside
|
|
911
|
+
* control-flow blocks (`tryCatch`, `conditional`, `foreach`, `parallel`) are
|
|
912
|
+
* caught — a flat scan over `parsed.blocks` would let nested v2 writes bypass
|
|
913
|
+
* the policy gate, especially now that the language-plugin filter has removed
|
|
914
|
+
* the accidental safety net where javascript's missing policy used to block
|
|
915
|
+
* all verification.
|
|
916
|
+
*
|
|
917
|
+
* Treats `unknown` step classifications (dynamic SQL bodies, plugins we don't
|
|
918
|
+
* recognize) as mutations: better to ask the user than silently run a write.
|
|
919
|
+
*/
|
|
920
|
+
async function analyzeV2BackupMutations(v2BackupPath) {
|
|
921
|
+
let raw;
|
|
922
|
+
try {
|
|
923
|
+
raw = await readFile(v2BackupPath, "utf-8");
|
|
924
|
+
}
|
|
925
|
+
catch {
|
|
926
|
+
return { mutationDetails: [], integrationIds: [] };
|
|
927
|
+
}
|
|
928
|
+
let parsed;
|
|
929
|
+
try {
|
|
930
|
+
parsed = yaml.parse(raw);
|
|
931
|
+
}
|
|
932
|
+
catch {
|
|
933
|
+
return { mutationDetails: [], integrationIds: [] };
|
|
934
|
+
}
|
|
935
|
+
const integrationIds = new Set();
|
|
936
|
+
const mutationDetails = [];
|
|
937
|
+
forEachYamlStep(parsed, (step) => {
|
|
938
|
+
const integrationId = step["integration"];
|
|
939
|
+
if (typeof integrationId === "string" && integrationId.length > 0) {
|
|
940
|
+
integrationIds.add(integrationId);
|
|
941
|
+
}
|
|
942
|
+
const classification = classifyYamlStepMutation(step);
|
|
943
|
+
if (classification === "write" || classification === "unknown") {
|
|
944
|
+
const stepName = typeof step["name"] === "string" ? step["name"] : "<unnamed>";
|
|
945
|
+
mutationDetails.push(`v2 step "${stepName}" classified as ${classification}`);
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
return {
|
|
949
|
+
mutationDetails,
|
|
950
|
+
integrationIds: Array.from(integrationIds),
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
function mostRestrictivePolicy(policies) {
|
|
954
|
+
if (policies.includes("deny"))
|
|
955
|
+
return "deny";
|
|
956
|
+
return "allow";
|
|
957
|
+
}
|
|
958
|
+
async function getEffectiveMigrationWritePolicy({ appRootDir, apiName, integrationIds, }) {
|
|
959
|
+
const policy = await readIntegrationWritePolicyForEnforcement(appRootDir);
|
|
960
|
+
const v2BackupPath = await resolveV2BackupYamlPath(appRootDir, apiName);
|
|
961
|
+
// Use IDs from source — not Object.keys(policy) — so a UUID present in
|
|
962
|
+
// source but absent from the policy map gets a real "deny" vote rather
|
|
963
|
+
// than being ignored. Otherwise an "allow" on one integration would be
|
|
964
|
+
// taken as blanket allow for everything the API touches. Union v2 and v3
|
|
965
|
+
// integrations so the gate sees every integration the verification will
|
|
966
|
+
// touch, not just the ones still referenced by v3.
|
|
967
|
+
//
|
|
968
|
+
// Language-runtime "integrations" (`javascript`, `python`) are inline
|
|
969
|
+
// user code, not data integrations; the modal hides them and they have
|
|
970
|
+
// no real write-policy decision attached. Excluding them here keeps a
|
|
971
|
+
// mixed API (e.g. postgres + javascript) from being blocked just because
|
|
972
|
+
// javascript has no policy entry.
|
|
973
|
+
const v2Analysis = await analyzeV2BackupMutations(v2BackupPath);
|
|
974
|
+
const sourceIds = Array.from(new Set([...(integrationIds ?? []), ...v2Analysis.integrationIds])).filter((id) => !LANGUAGE_PLUGIN_IDS.has(id));
|
|
975
|
+
const effective = sourceIds.length > 0
|
|
976
|
+
? mostRestrictivePolicy(sourceIds.map((id) => policy[id] ?? "deny"))
|
|
977
|
+
: "deny";
|
|
978
|
+
return { effective, sourceIds };
|
|
979
|
+
}
|
|
980
|
+
export const checkRunMigrationVerificationPermissions = async (services, input) => {
|
|
981
|
+
if (!input || !input.apiName)
|
|
982
|
+
return PermissionLevel.PROMPT;
|
|
983
|
+
const apiName = input.apiName;
|
|
984
|
+
let source;
|
|
985
|
+
try {
|
|
986
|
+
source = await services.appShell.readFile(`server/apis/${apiName}/api.ts`);
|
|
987
|
+
}
|
|
988
|
+
catch {
|
|
989
|
+
return PermissionLevel.PROMPT;
|
|
990
|
+
}
|
|
991
|
+
try {
|
|
992
|
+
extractMutations(source);
|
|
993
|
+
}
|
|
994
|
+
catch {
|
|
995
|
+
return PermissionLevel.PROMPT;
|
|
996
|
+
}
|
|
997
|
+
// Non-mutating APIs are safe to verify; mutating APIs short-circuit to
|
|
998
|
+
// skipped_mutation when write policy is deny, so the tool must be callable.
|
|
999
|
+
return PermissionLevel.ALLOW;
|
|
1000
|
+
};
|
|
1001
|
+
/**
|
|
1002
|
+
* Extract the most specific failure message from a Pick<ApiExecutionResult>.
|
|
1003
|
+
* Tries errors[0].message first, then systemError, then a placeholder.
|
|
1004
|
+
*/
|
|
1005
|
+
function extractFailureMessage(result, side) {
|
|
1006
|
+
return (result.errors?.[0]?.message ??
|
|
1007
|
+
result.systemError ??
|
|
1008
|
+
`${side} execution returned success: false with no error details`);
|
|
1009
|
+
}
|
|
1010
|
+
const REDACTED_AGENT_FAILURE_MAX_LEN = 512;
|
|
1011
|
+
/**
|
|
1012
|
+
* Scrub raw upstream-error strings before they enter LLM context. Upstream
|
|
1013
|
+
* integrations can echo back bearer tokens, JWTs, or `api_key=...` query
|
|
1014
|
+
* strings in error messages — the existing `sanitizeLogMessage` helper in
|
|
1015
|
+
* `util/log-sanitizer.ts` is the canonical scrubber for those patterns and
|
|
1016
|
+
* is what the rest of the vite plugin already uses for log lines. We
|
|
1017
|
+
* additionally cap the length so a single misbehaving upstream can't crowd
|
|
1018
|
+
* out the rest of the LLM context window.
|
|
1019
|
+
*
|
|
1020
|
+
* Used on the agent-facing channels (`summaryForAgent.failureMessage` for
|
|
1021
|
+
* diverged outcomes, the `summary` string for `both_failed`) — the
|
|
1022
|
+
* comment at the `getLogger().warn` call site for "Migration verification
|
|
1023
|
+
* diverged" already keeps the server log clean of these strings; this
|
|
1024
|
+
* applies the same treatment to the durable LLM channel.
|
|
1025
|
+
*/
|
|
1026
|
+
function redactForAgent(msg, maxLen = REDACTED_AGENT_FAILURE_MAX_LEN) {
|
|
1027
|
+
if (msg === undefined || msg === null)
|
|
1028
|
+
return "";
|
|
1029
|
+
const sanitized = sanitizeLogMessage(String(msg));
|
|
1030
|
+
if (sanitized.length <= maxLen)
|
|
1031
|
+
return sanitized;
|
|
1032
|
+
return sanitized.slice(0, maxLen) + "… [truncated]";
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Count the consecutive transient outcomes at the tail of the history (the
|
|
1036
|
+
* current run's streak), stopping at the first real outcome. This resets the
|
|
1037
|
+
* transient backstop on any real progress, so separate disconnect episodes
|
|
1038
|
+
* across a long migration never accumulate — only an unbroken run of
|
|
1039
|
+
* transient failures trips it.
|
|
1040
|
+
*/
|
|
1041
|
+
function countTrailingTransientAttempts(history) {
|
|
1042
|
+
let count = 0;
|
|
1043
|
+
for (let i = history.attempts.length - 1; i >= 0; i--) {
|
|
1044
|
+
const entry = history.attempts[i];
|
|
1045
|
+
if (!entry || !TRANSIENT_OUTCOME_KINDS.has(entry.kind))
|
|
1046
|
+
break;
|
|
1047
|
+
count++;
|
|
1048
|
+
}
|
|
1049
|
+
return count;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Reject any `apiName` that could escape `scratch/migration-verification/`.
|
|
1053
|
+
* Checklist items are persisted to disk and parsed back in without a strict
|
|
1054
|
+
* shape guard, so a poisoned `apiName` containing path separators or `..`
|
|
1055
|
+
* segments would let `historyPath`/`diffPath` (and therefore the `rm` calls
|
|
1056
|
+
* in `clearVerificationHistory`) target arbitrary files.
|
|
1057
|
+
*
|
|
1058
|
+
* v2 → v3 migration API names are derived from server YAML/SDK identifiers
|
|
1059
|
+
* which are restricted to `[A-Za-z0-9_-]`, so this check is conservative
|
|
1060
|
+
* for legitimate inputs.
|
|
1061
|
+
*/
|
|
1062
|
+
function assertSafeApiName(apiName) {
|
|
1063
|
+
if (!/^[A-Za-z0-9_-]+$/.test(apiName)) {
|
|
1064
|
+
throw new Error(`Refusing to operate on verification artifacts for unsafe apiName: ${JSON.stringify(apiName)}`);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function historyPath(appRootDir, apiName) {
|
|
1068
|
+
assertSafeApiName(apiName);
|
|
1069
|
+
return join(appRootDir, SCRATCH_DIR, VERIFICATION_DIR, `${apiName}.history.json`);
|
|
1070
|
+
}
|
|
1071
|
+
function diffPath(appRootDir, apiName) {
|
|
1072
|
+
assertSafeApiName(apiName);
|
|
1073
|
+
return join(appRootDir, SCRATCH_DIR, VERIFICATION_DIR, `${apiName}.diff.json`);
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Delete the per-API verification history (and stale diff snapshot) so the
|
|
1077
|
+
* next `runMigrationVerification` call starts from a clean slate. Called by
|
|
1078
|
+
* the "Fix with Clark" retry endpoints — without this, an item that hit the
|
|
1079
|
+
* `MAX_VERIFICATION_ATTEMPTS` cap on the first run would immediately return
|
|
1080
|
+
* `kind: "exhausted"` on retry, making the retry a no-op.
|
|
1081
|
+
*
|
|
1082
|
+
* Routed through the same per-API `verificationHistoryQueues` queue used by
|
|
1083
|
+
* `runMigrationVerification`. Without this, a clear could race with an
|
|
1084
|
+
* in-flight verification: the verification reads history, runs the pipeline,
|
|
1085
|
+
* the clear `rm()`s the file, then the verification's append re-creates the
|
|
1086
|
+
* file with a stale attempt count — defeating the clear and immediately
|
|
1087
|
+
* returning `exhausted` on the user's next retry.
|
|
1088
|
+
*
|
|
1089
|
+
* Best-effort: missing files are not an error. The safety check on
|
|
1090
|
+
* `apiName` (via `historyPath`/`diffPath`) runs *before* enqueueing so a
|
|
1091
|
+
* poisoned name throws synchronously, never holding the queue.
|
|
1092
|
+
*/
|
|
1093
|
+
export async function clearVerificationHistory(appRootDir, apiName) {
|
|
1094
|
+
const histPath = historyPath(appRootDir, apiName);
|
|
1095
|
+
const dPath = diffPath(appRootDir, apiName);
|
|
1096
|
+
await getVerificationHistoryQueue(appRootDir, apiName).enqueue(async () => {
|
|
1097
|
+
await Promise.all([
|
|
1098
|
+
rm(histPath, { force: true }),
|
|
1099
|
+
rm(dPath, { force: true }),
|
|
1100
|
+
]);
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Static guidance string keyed off the deterministic `progress` signal — the
|
|
1105
|
+
* agent doesn't have to decide whether to keep iterating, the tool tells it.
|
|
1106
|
+
*/
|
|
1107
|
+
function progressGuidance(progress, attempt) {
|
|
1108
|
+
if (progress === "first_attempt") {
|
|
1109
|
+
return `First diverged attempt for this API. Use the summaryForAgent entries to revise server/apis/<apiName>/api.ts and call runMigrationVerification again.`;
|
|
1110
|
+
}
|
|
1111
|
+
if (progress === "converging") {
|
|
1112
|
+
return `Converging — the set of diverging (path, kind) pairs changed since the last attempt (#${attempt - 1}). Your previous edit had structural effect. Keep iterating: pick the next summaryForAgent entry, fix it, re-run.`;
|
|
1113
|
+
}
|
|
1114
|
+
// stalled
|
|
1115
|
+
return `STALLED — the set of diverging (path, kind) pairs is identical to attempt #${attempt - 1}. Your last edit had no structural effect on the divergence. Either you edited the wrong block, the edit was a no-op, or this divergence is structurally irreconcilable (v2 uses a YAML construct with no v3 equivalent; v2 reads runtime state v3 can't observe). On your next attempt: try a different fix, or — if you are confident the divergence cannot be reconciled — mark the item failed with failureReason starting with "verification_diverged_irreconcilable:" and continue. Do NOT submit the identical edit again.`;
|
|
1116
|
+
}
|
|
1117
|
+
function divergenceShapeHash(entries) {
|
|
1118
|
+
// Sort tuples so the hash is order-independent — the comparator's emit
|
|
1119
|
+
// order is structural-walk based, but small refactors to compareApiResults
|
|
1120
|
+
// shouldn't accidentally invalidate the convergence signal.
|
|
1121
|
+
const tuples = entries
|
|
1122
|
+
.map((e) => `${e.path}::${e.kind}`)
|
|
1123
|
+
.sort()
|
|
1124
|
+
.join("\n");
|
|
1125
|
+
return crypto.createHash("sha256").update(tuples).digest("hex").slice(0, 16);
|
|
1126
|
+
}
|
|
1127
|
+
function findLastDivergedShapeHash(history) {
|
|
1128
|
+
for (let i = history.attempts.length - 1; i >= 0; i--) {
|
|
1129
|
+
const entry = history.attempts[i];
|
|
1130
|
+
if (entry && entry.kind === "diverged" && entry.divergenceShapeHash) {
|
|
1131
|
+
return entry.divergenceShapeHash;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
return undefined;
|
|
1135
|
+
}
|
|
1136
|
+
async function readHistory(appRootDir, apiName) {
|
|
1137
|
+
let raw;
|
|
1138
|
+
try {
|
|
1139
|
+
raw = await readFile(historyPath(appRootDir, apiName), "utf-8");
|
|
1140
|
+
}
|
|
1141
|
+
catch {
|
|
1142
|
+
// Missing — fresh API, no history yet. Distinct from "present but
|
|
1143
|
+
// unparseable", which we want to surface as a warning so an operator
|
|
1144
|
+
// chasing a stuck migration can tell amnesia apart from no-prior-run.
|
|
1145
|
+
return { attempts: [] };
|
|
1146
|
+
}
|
|
1147
|
+
try {
|
|
1148
|
+
const parsed = JSON.parse(raw);
|
|
1149
|
+
if (parsed &&
|
|
1150
|
+
typeof parsed === "object" &&
|
|
1151
|
+
"attempts" in parsed &&
|
|
1152
|
+
Array.isArray(parsed.attempts)) {
|
|
1153
|
+
return parsed;
|
|
1154
|
+
}
|
|
1155
|
+
getLogger().warn(`Verification history for ${apiName} parsed but had unexpected shape; treating as empty`, { apiName });
|
|
1156
|
+
}
|
|
1157
|
+
catch (error) {
|
|
1158
|
+
getLogger().warn(`Verification history for ${apiName} was unreadable JSON (likely a partial-write crash); treating as empty`, {
|
|
1159
|
+
apiName,
|
|
1160
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
return { attempts: [] };
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Per-(appRootDir, apiName) serialization of the read-modify-write on the
|
|
1167
|
+
* `<apiName>.history.json` file. Without this, two parallel
|
|
1168
|
+
* `runMigrationVerification` calls for the same API can both observe
|
|
1169
|
+
* `attempts.length = MAX-1`, both pass the cap check, and both write — the
|
|
1170
|
+
* later clobbers the earlier and the cap is silently bypassed. We re-use the
|
|
1171
|
+
* same `OperationQueue` primitive `migration-checklist.ts` uses for the
|
|
1172
|
+
* shared checklist mutations.
|
|
1173
|
+
*/
|
|
1174
|
+
const verificationHistoryQueues = new Map();
|
|
1175
|
+
function getVerificationHistoryQueue(appRootDir, apiName) {
|
|
1176
|
+
const key = `${appRootDir}\0${apiName}`;
|
|
1177
|
+
let queue = verificationHistoryQueues.get(key);
|
|
1178
|
+
if (!queue) {
|
|
1179
|
+
queue = new OperationQueue();
|
|
1180
|
+
verificationHistoryQueues.set(key, queue);
|
|
1181
|
+
}
|
|
1182
|
+
return queue;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Append a history entry without enqueueing — caller MUST already hold the
|
|
1186
|
+
* per-API verification queue. Used from `runMigrationVerification`'s queued
|
|
1187
|
+
* body, where re-entering the same queue would deadlock.
|
|
1188
|
+
*/
|
|
1189
|
+
async function writeHistoryEntry(appRootDir, apiName, entry) {
|
|
1190
|
+
try {
|
|
1191
|
+
const history = await readHistory(appRootDir, apiName);
|
|
1192
|
+
history.attempts.push(entry);
|
|
1193
|
+
const dir = join(appRootDir, SCRATCH_DIR, VERIFICATION_DIR);
|
|
1194
|
+
await mkdir(dir, { recursive: true });
|
|
1195
|
+
// Atomic write via tmp + rename: a crash mid-write would otherwise
|
|
1196
|
+
// leave the file truncated, and `readHistory`'s catch would silently
|
|
1197
|
+
// amnesia-reset the cap to zero. POSIX `rename` is atomic on the same
|
|
1198
|
+
// filesystem, so a reader either sees the full prior file or the full
|
|
1199
|
+
// new file — never a partial write.
|
|
1200
|
+
const finalPath = historyPath(appRootDir, apiName);
|
|
1201
|
+
const tmpPath = `${finalPath}.tmp`;
|
|
1202
|
+
await writeFile(tmpPath, JSON.stringify(history, null, 2), "utf-8");
|
|
1203
|
+
await rename(tmpPath, finalPath);
|
|
1204
|
+
}
|
|
1205
|
+
catch (error) {
|
|
1206
|
+
// History persistence is best-effort: a write failure here should not
|
|
1207
|
+
// surface as a verification error to the agent (the verification
|
|
1208
|
+
// result itself is still valid). Worst case: the next attempt sees
|
|
1209
|
+
// stale history and computes `progress: "first_attempt"`, which is a
|
|
1210
|
+
// softer failure mode than throwing here.
|
|
1211
|
+
getLogger().warn(`Failed to persist verification history for ${apiName}`, {
|
|
1212
|
+
apiName,
|
|
1213
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Read the on-disk diff JSON written by the most recent diverged run, if any.
|
|
1219
|
+
* Used by the `exhausted` outcome to surface "what did we get stuck on" to
|
|
1220
|
+
* the agent without re-running the pipeline.
|
|
1221
|
+
*/
|
|
1222
|
+
async function readLastDivergedDiff(appRootDir, apiName) {
|
|
1223
|
+
try {
|
|
1224
|
+
const raw = await readFile(diffPath(appRootDir, apiName), "utf-8");
|
|
1225
|
+
const parsed = JSON.parse(raw);
|
|
1226
|
+
if (parsed &&
|
|
1227
|
+
typeof parsed === "object" &&
|
|
1228
|
+
"valuesForUi" in parsed &&
|
|
1229
|
+
Array.isArray(parsed.valuesForUi)) {
|
|
1230
|
+
// We only persist `valuesForUi` (see writeFile call in
|
|
1231
|
+
// computeVerificationOutcome), not summaryForAgent — synthesize a
|
|
1232
|
+
// minimal ApiComparisonDiff so the exhausted outcome carries
|
|
1233
|
+
// something the UI/agent can render.
|
|
1234
|
+
return {
|
|
1235
|
+
empty: false,
|
|
1236
|
+
valuesForUi: parsed.valuesForUi,
|
|
1237
|
+
summaryForAgent: [],
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
catch {
|
|
1242
|
+
// No prior diff or unreadable — fine, return undefined.
|
|
1243
|
+
}
|
|
1244
|
+
return undefined;
|
|
1245
|
+
}
|
|
1246
|
+
//# sourceMappingURL=migration-verification.js.map
|