@warlock.js/core 5.31.0 → 5.32.0
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/CHANGELOG.md +23 -0
- package/esm/application/app.d.mts +3 -3
- package/esm/application/app.d.mts.map +1 -1
- package/esm/application/application-config-types.d.mts +1 -2
- package/esm/application/application-config-types.d.mts.map +1 -1
- package/esm/application/application.d.mts +5 -7
- package/esm/application/application.d.mts.map +1 -1
- package/esm/application/application.mjs +3 -1
- package/esm/application/application.mjs.map +1 -1
- package/esm/application/boot-signal.d.mts +14 -12
- package/esm/application/boot-signal.d.mts.map +1 -1
- package/esm/application/index.d.mts +2 -1
- package/esm/application/index.mjs +1 -1
- package/esm/application/public-url.d.mts +1 -2
- package/esm/application/public-url.d.mts.map +1 -1
- package/esm/application/roles.d.mts +10 -11
- package/esm/application/roles.d.mts.map +1 -1
- package/esm/benchmark/benchmark-snapshots.d.mts +1 -3
- package/esm/benchmark/benchmark-snapshots.d.mts.map +1 -1
- package/esm/benchmark/benchmark.d.mts +1 -3
- package/esm/benchmark/benchmark.d.mts.map +1 -1
- package/esm/benchmark/channels/console.channel.d.mts +1 -3
- package/esm/benchmark/channels/console.channel.d.mts.map +1 -1
- package/esm/benchmark/channels/noop.channel.d.mts +1 -3
- package/esm/benchmark/channels/noop.channel.d.mts.map +1 -1
- package/esm/benchmark/index.mjs +1 -1
- package/esm/benchmark/profiler.d.mts +1 -3
- package/esm/benchmark/profiler.d.mts.map +1 -1
- package/esm/benchmark/profiler.mjs +2 -1
- package/esm/benchmark/profiler.mjs.map +1 -1
- package/esm/benchmark/types.d.mts +22 -17
- package/esm/benchmark/types.d.mts.map +1 -1
- package/esm/bootstrap/setup.d.mts +1 -2
- package/esm/bootstrap/setup.d.mts.map +1 -1
- package/esm/bootstrap.d.mts +1 -2
- package/esm/bootstrap.d.mts.map +1 -1
- package/esm/cache/database-cache-driver.d.mts +3 -5
- package/esm/cache/database-cache-driver.d.mts.map +1 -1
- package/esm/cache/database-cache-driver.mjs +1 -1
- package/esm/cache/index.d.mts +2 -1
- package/esm/cache/index.mjs +1 -1
- package/esm/cli/cli-commands.manager.mjs +6 -3
- package/esm/cli/cli-commands.manager.mjs.map +1 -1
- package/esm/cli/commands/agents-md/agents-md-command.action.mjs +3 -2
- package/esm/cli/commands/agents-md/agents-md-command.action.mjs.map +1 -1
- package/esm/cli/commands/board/board-command.action.mjs +1 -1
- package/esm/cli/commands/check/check-command.action.mjs +1 -1
- package/esm/cli/commands/check/child-typecheck.mjs +1 -1
- package/esm/cli/commands/check/child-typecheck.mjs.map +1 -1
- package/esm/cli/commands/check/format-problems.mjs +1 -1
- package/esm/cli/commands/dev-server.command.mjs +3 -2
- package/esm/cli/commands/dev-server.command.mjs.map +1 -1
- package/esm/cli/commands/doctor/check.types.d.mts +29 -16
- package/esm/cli/commands/doctor/check.types.d.mts.map +1 -1
- package/esm/cli/commands/doctor/checks/locales-ts-deprecated.check.mjs +22 -27
- package/esm/cli/commands/doctor/checks/locales-ts-deprecated.check.mjs.map +1 -1
- package/esm/cli/commands/doctor/doctor-command.action.mjs +2 -1
- package/esm/cli/commands/doctor/doctor-command.action.mjs.map +1 -1
- package/esm/cli/commands/explain/explain-command.action.mjs +1 -1
- package/esm/cli/commands/generate/generators/controller.generator.mjs +5 -2
- package/esm/cli/commands/generate/generators/controller.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/endpoint.generator.mjs +5 -3
- package/esm/cli/commands/generate/generators/endpoint.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/model.generator.mjs +3 -2
- package/esm/cli/commands/generate/generators/model.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/repository.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/repository.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/resource.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/resource.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/generators/service.generator.mjs +3 -1
- package/esm/cli/commands/generate/generators/service.generator.mjs.map +1 -1
- package/esm/cli/commands/generate/templates/endpoint-stubs.mjs +2 -2
- package/esm/cli/commands/generate/templates/endpoint-stubs.mjs.map +1 -1
- package/esm/cli/commands/generate/utils/endpoint-schema.mjs +1 -2
- package/esm/cli/commands/generate/utils/endpoint-schema.mjs.map +1 -1
- package/esm/cli/commands/generate/utils/name-parser.mjs +1 -1
- package/esm/cli/commands/generate/utils/path-resolver.mjs +1 -1
- package/esm/cli/commands/inspect/inspect-command.action.mjs +3 -2
- package/esm/cli/commands/inspect/inspect-command.action.mjs.map +1 -1
- package/esm/cli/commands/issue/collect-environment.mjs +187 -0
- package/esm/cli/commands/issue/collect-environment.mjs.map +1 -0
- package/esm/cli/commands/issue/issue-command.action.mjs +70 -0
- package/esm/cli/commands/issue/issue-command.action.mjs.map +1 -0
- package/esm/cli/commands/issue.command.mjs +31 -0
- package/esm/cli/commands/issue.command.mjs.map +1 -0
- package/esm/cli/commands/mcp/mcp-command.action.mjs +15 -14
- package/esm/cli/commands/mcp/mcp-command.action.mjs.map +1 -1
- package/esm/cli/commands/openapi-generator.action.mjs +1 -1
- package/esm/cli/commands/postman-generator.action.mjs +1 -1
- package/esm/cli/commands/routes/format-routes-table.mjs +1 -1
- package/esm/cli/commands/routes/route-row.mjs +1 -1
- package/esm/cli/commands/routes/routes-diff.action.mjs +2 -2
- package/esm/cli/commands/routes/routes-diff.action.mjs.map +1 -1
- package/esm/cli/commands/test.command.mjs +1 -1
- package/esm/cli/commands/trace/trace-command.action.mjs +1 -1
- package/esm/cli/commands-loader.mjs +1 -1
- package/esm/cli/framework-cli-commands.mjs +2 -0
- package/esm/cli/framework-cli-commands.mjs.map +1 -1
- package/esm/cli/parse-cli-args.mjs +2 -2
- package/esm/cli/parse-cli-args.mjs.map +1 -1
- package/esm/cli/start.d.mts +1 -1
- package/esm/cli/string-similarity.mjs +1 -1
- package/esm/commands/cli-command.d.mts +2 -4
- package/esm/commands/cli-command.d.mts.map +1 -1
- package/esm/commands/index.d.mts +2 -1
- package/esm/commands/index.mjs +1 -1
- package/esm/commands/types.d.mts +8 -8
- package/esm/commands/types.d.mts.map +1 -1
- package/esm/config/config-getter.d.mts +2 -3
- package/esm/config/config-getter.d.mts.map +1 -1
- package/esm/config/config-getter.mjs +5 -5
- package/esm/config/config-getter.mjs.map +1 -1
- package/esm/config/config-handlers.d.mts +1 -3
- package/esm/config/config-handlers.d.mts.map +1 -1
- package/esm/config/config-loader.d.mts +1 -2
- package/esm/config/config-loader.d.mts.map +1 -1
- package/esm/config/config-loader.mjs +3 -3
- package/esm/config/config-loader.mjs.map +1 -1
- package/esm/config/config-manager.mjs +1 -1
- package/esm/config/config-schema.d.mts +19 -16
- package/esm/config/config-schema.d.mts.map +1 -1
- package/esm/config/config-setter.d.mts +2 -4
- package/esm/config/config-setter.d.mts.map +1 -1
- package/esm/config/config-setter.mjs +2 -2
- package/esm/config/config-setter.mjs.map +1 -1
- package/esm/config/config-special-handlers.d.mts +2 -4
- package/esm/config/config-special-handlers.d.mts.map +1 -1
- package/esm/config/index.d.mts +2 -1
- package/esm/config/index.mjs +1 -1
- package/esm/config/types.d.mts +4 -5
- package/esm/config/types.d.mts.map +1 -1
- package/esm/connectors/access-connector.d.mts +1 -3
- package/esm/connectors/access-connector.d.mts.map +1 -1
- package/esm/connectors/access-connector.mjs +2 -2
- package/esm/connectors/access-connector.mjs.map +1 -1
- package/esm/connectors/ai-connector.d.mts +1 -3
- package/esm/connectors/ai-connector.d.mts.map +1 -1
- package/esm/connectors/ai-connector.mjs +2 -2
- package/esm/connectors/ai-connector.mjs.map +1 -1
- package/esm/connectors/assert-no-reserved-connector-names.d.mts +1 -3
- package/esm/connectors/assert-no-reserved-connector-names.d.mts.map +1 -1
- package/esm/connectors/assert-unique-connector-names.d.mts +1 -3
- package/esm/connectors/assert-unique-connector-names.d.mts.map +1 -1
- package/esm/connectors/assert-unique-connector-names.mjs +2 -1
- package/esm/connectors/assert-unique-connector-names.mjs.map +1 -1
- package/esm/connectors/base-connector.d.mts +1 -3
- package/esm/connectors/base-connector.d.mts.map +1 -1
- package/esm/connectors/cache-connector.d.mts +1 -3
- package/esm/connectors/cache-connector.d.mts.map +1 -1
- package/esm/connectors/cache-connector.mjs +3 -3
- package/esm/connectors/cache-connector.mjs.map +1 -1
- package/esm/connectors/connectors-manager.d.mts +2 -4
- package/esm/connectors/connectors-manager.d.mts.map +1 -1
- package/esm/connectors/connectors-manager.mjs +2 -2
- package/esm/connectors/connectors-manager.mjs.map +1 -1
- package/esm/connectors/database-connector.d.mts +1 -3
- package/esm/connectors/database-connector.d.mts.map +1 -1
- package/esm/connectors/database-connector.mjs +2 -2
- package/esm/connectors/database-connector.mjs.map +1 -1
- package/esm/connectors/describe-server-address.mjs +4 -4
- package/esm/connectors/describe-server-address.mjs.map +1 -1
- package/esm/connectors/herald-connector.d.mts +1 -3
- package/esm/connectors/herald-connector.d.mts.map +1 -1
- package/esm/connectors/herald-connector.mjs +2 -2
- package/esm/connectors/herald-connector.mjs.map +1 -1
- package/esm/connectors/http-connector.d.mts +1 -3
- package/esm/connectors/http-connector.d.mts.map +1 -1
- package/esm/connectors/http-connector.mjs +8 -7
- package/esm/connectors/http-connector.mjs.map +1 -1
- package/esm/connectors/index.d.mts +2 -1
- package/esm/connectors/index.mjs +1 -1
- package/esm/connectors/logger-connector.d.mts +1 -3
- package/esm/connectors/logger-connector.d.mts.map +1 -1
- package/esm/connectors/logger-connector.mjs +2 -2
- package/esm/connectors/logger-connector.mjs.map +1 -1
- package/esm/connectors/mail-connector.d.mts +1 -3
- package/esm/connectors/mail-connector.d.mts.map +1 -1
- package/esm/connectors/mail-connector.mjs +2 -2
- package/esm/connectors/mail-connector.mjs.map +1 -1
- package/esm/connectors/notifications-connector.d.mts +1 -3
- package/esm/connectors/notifications-connector.d.mts.map +1 -1
- package/esm/connectors/notifications-connector.mjs +2 -2
- package/esm/connectors/notifications-connector.mjs.map +1 -1
- package/esm/connectors/register-configured-connectors.d.mts +2 -4
- package/esm/connectors/register-configured-connectors.d.mts.map +1 -1
- package/esm/connectors/socket-connector.d.mts +1 -3
- package/esm/connectors/socket-connector.d.mts.map +1 -1
- package/esm/connectors/socket-connector.mjs +12 -10
- package/esm/connectors/socket-connector.mjs.map +1 -1
- package/esm/connectors/storage.connector.d.mts +1 -3
- package/esm/connectors/storage.connector.d.mts.map +1 -1
- package/esm/connectors/storage.connector.mjs +2 -2
- package/esm/connectors/storage.connector.mjs.map +1 -1
- package/esm/connectors/types.d.mts +17 -14
- package/esm/connectors/types.d.mts.map +1 -1
- package/esm/container/container-instance-registry.mjs.map +1 -1
- package/esm/container/development-app-modules.d.mts +7 -5
- package/esm/container/development-app-modules.d.mts.map +1 -1
- package/esm/container/development-model-modules.d.mts +6 -5
- package/esm/container/development-model-modules.d.mts.map +1 -1
- package/esm/container/index.d.mts +4 -4
- package/esm/container/index.d.mts.map +1 -1
- package/esm/database/index.d.mts +3 -1
- package/esm/database/index.mjs +1 -1
- package/esm/database/migrate-action.mjs +1 -1
- package/esm/database/models/database-log/database-log.d.mts +2 -3
- package/esm/database/models/database-log/database-log.d.mts.map +1 -1
- package/esm/database/models/database-log/index.d.mts +2 -1
- package/esm/database/models/database-log/index.mjs +1 -1
- package/esm/database/seed-command-action.mjs +1 -1
- package/esm/database/seeds/seeder.d.mts +2 -4
- package/esm/database/seeds/seeder.d.mts.map +1 -1
- package/esm/database/seeds/seeder.errors.d.mts +2 -3
- package/esm/database/seeds/seeder.errors.d.mts.map +1 -1
- package/esm/database/seeds/seeders.manager.mjs +2 -1
- package/esm/database/seeds/seeders.manager.mjs.map +1 -1
- package/esm/database/seeds/types.d.mts +7 -8
- package/esm/database/seeds/types.d.mts.map +1 -1
- package/esm/database/utils.d.mts +4 -5
- package/esm/database/utils.d.mts.map +1 -1
- package/esm/dev-server/app-module-registry.mjs +1 -1
- package/esm/dev-server/create-worker.mjs +5 -3
- package/esm/dev-server/create-worker.mjs.map +1 -1
- package/esm/dev-server/dependency-graph.d.mts +1 -3
- package/esm/dev-server/dependency-graph.d.mts.map +1 -1
- package/esm/dev-server/dependency-graph.mjs +1 -1
- package/esm/dev-server/dependency-graph.mjs.map +1 -1
- package/esm/dev-server/extract-translation-keys.mjs +16 -17
- package/esm/dev-server/extract-translation-keys.mjs.map +1 -1
- package/esm/dev-server/file-manager.d.mts +3 -7
- package/esm/dev-server/file-manager.d.mts.map +1 -1
- package/esm/dev-server/file-operations.d.mts +1 -3
- package/esm/dev-server/file-operations.d.mts.map +1 -1
- package/esm/dev-server/files-watcher.mjs +12 -11
- package/esm/dev-server/files-watcher.mjs.map +1 -1
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.mjs +36 -115
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.mjs.map +1 -1
- package/esm/dev-server/health-checker/file-health-checker.contract.d.mts +5 -5
- package/esm/dev-server/health-checker/file-health-checker.contract.d.mts.map +1 -1
- package/esm/dev-server/health-checker/file-health-result.d.mts +2 -2
- package/esm/dev-server/health-checker/file-health-result.d.mts.map +1 -1
- package/esm/dev-server/health-checker/files-healthcare.manager.mjs +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.mjs.map +1 -1
- package/esm/dev-server/health-checker/oxlint-runner.mjs +6 -5
- package/esm/dev-server/health-checker/oxlint-runner.mjs.map +1 -1
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/oxlint-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.mts +1 -1
- package/esm/dev-server/health-checker/workers/ts-health.worker.mjs +40 -174
- package/esm/dev-server/health-checker/workers/ts-health.worker.mjs.map +1 -1
- package/esm/dev-server/loader/hook-thread.d.mts +4 -8
- package/esm/dev-server/loader/hook-thread.d.mts.map +1 -1
- package/esm/dev-server/loader/load-hook.d.mts +10 -6
- package/esm/dev-server/loader/load-hook.d.mts.map +1 -1
- package/esm/dev-server/loader/load-hook.mjs +4 -3
- package/esm/dev-server/loader/load-hook.mjs.map +1 -1
- package/esm/dev-server/loader/own-resolver.mjs +1 -1
- package/esm/dev-server/loader/register-loader.mjs +3 -2
- package/esm/dev-server/loader/register-loader.mjs.map +1 -1
- package/esm/dev-server/loader/resolve-hook.d.mts +2 -2
- package/esm/dev-server/loader/resolve-hook.d.mts.map +1 -1
- package/esm/dev-server/loader/resolve-hook.mjs +2 -1
- package/esm/dev-server/loader/resolve-hook.mjs.map +1 -1
- package/esm/dev-server/loader/transpile-cache.mjs +2 -1
- package/esm/dev-server/loader/transpile-cache.mjs.map +1 -1
- package/esm/dev-server/manifest-manager.d.mts +1 -3
- package/esm/dev-server/manifest-manager.d.mts.map +1 -1
- package/esm/dev-server/model-module-registry.mjs +3 -3
- package/esm/dev-server/model-module-registry.mjs.map +1 -1
- package/esm/dev-server/model-resource-typings.mjs +40 -47
- package/esm/dev-server/model-resource-typings.mjs.map +1 -1
- package/esm/dev-server/module-loader.mjs +2 -2
- package/esm/dev-server/module-loader.mjs.map +1 -1
- package/esm/dev-server/package-json-manager.mjs +1 -1
- package/esm/dev-server/parse-imports.mjs +6 -38
- package/esm/dev-server/parse-imports.mjs.map +1 -1
- package/esm/dev-server/read-config-ast.mjs +3 -33
- package/esm/dev-server/read-config-ast.mjs.map +1 -1
- package/esm/dev-server/ready-block.mjs +1 -1
- package/esm/dev-server/shortcuts.mjs +1 -1
- package/esm/dev-server/special-files-collector.d.mts +2 -4
- package/esm/dev-server/special-files-collector.d.mts.map +1 -1
- package/esm/dev-server/supervisor.mjs +1 -1
- package/esm/dev-server/tsconfig-manager.mjs +3 -3
- package/esm/dev-server/tsconfig-manager.mjs.map +1 -1
- package/esm/dev-server/type-generator.mjs +28 -35
- package/esm/dev-server/type-generator.mjs.map +1 -1
- package/esm/dev-server/types.d.mts +3 -4
- package/esm/dev-server/types.d.mts.map +1 -1
- package/esm/dev-server/update-check-cache.mjs +2 -2
- package/esm/dev-server/update-check-cache.mjs.map +1 -1
- package/esm/encryption/encrypt.d.mts +2 -3
- package/esm/encryption/encrypt.d.mts.map +1 -1
- package/esm/encryption/hash.d.mts +1 -2
- package/esm/encryption/hash.d.mts.map +1 -1
- package/esm/encryption/index.mjs +1 -1
- package/esm/encryption/password.d.mts +2 -3
- package/esm/encryption/password.d.mts.map +1 -1
- package/esm/encryption/types.d.mts +2 -3
- package/esm/encryption/types.d.mts.map +1 -1
- package/esm/errors/error-codes.d.mts +29 -22
- package/esm/errors/error-codes.d.mts.map +1 -1
- package/esm/errors/warlock-error.d.mts +1 -3
- package/esm/errors/warlock-error.d.mts.map +1 -1
- package/esm/generations/add-command.action.mjs +3 -2
- package/esm/generations/add-command.action.mjs.map +1 -1
- package/esm/generations/features/bull-board.feature.mjs +2 -1
- package/esm/generations/features/bull-board.feature.mjs.map +1 -1
- package/esm/generations/features/notifications.feature.mjs +2 -1
- package/esm/generations/features/notifications.feature.mjs.map +1 -1
- package/esm/generations/features/shared/merge-web-sitemap-config.mjs +16 -23
- package/esm/generations/features/shared/merge-web-sitemap-config.mjs.map +1 -1
- package/esm/generations/features/shared/patch-tsconfig-include.mjs +1 -1
- package/esm/generations/features/shared/relocate-conflicting-home-route.mjs +1 -1
- package/esm/generations/features/sitemap.feature.mjs +2 -1
- package/esm/generations/features/sitemap.feature.mjs.map +1 -1
- package/esm/generations/generation-fs.mjs +1 -1
- package/esm/generations/generation-run.mjs +1 -1
- package/esm/generations/stubs.mjs +1 -1
- package/esm/generations/stubs.mjs.map +1 -1
- package/esm/http/boot-port-preflight.d.mts +4 -5
- package/esm/http/boot-port-preflight.d.mts.map +1 -1
- package/esm/http/boot-port-preflight.mjs +2 -2
- package/esm/http/boot-port-preflight.mjs.map +1 -1
- package/esm/http/bounded-stream-queue.d.mts +4 -4
- package/esm/http/bounded-stream-queue.d.mts.map +1 -1
- package/esm/http/bounded-stream-queue.mjs +1 -1
- package/esm/http/bounded-stream-queue.mjs.map +1 -1
- package/esm/http/build-cors-options.mjs +2 -2
- package/esm/http/build-cors-options.mjs.map +1 -1
- package/esm/http/build-rate-limit-options.d.mts +2 -3
- package/esm/http/build-rate-limit-options.d.mts.map +1 -1
- package/esm/http/build-rate-limit-options.mjs +1 -1
- package/esm/http/build-rate-limit-options.mjs.map +1 -1
- package/esm/http/conditional-request.d.mts +14 -13
- package/esm/http/conditional-request.d.mts.map +1 -1
- package/esm/http/config.d.mts +2 -4
- package/esm/http/config.d.mts.map +1 -1
- package/esm/http/config.mjs +2 -2
- package/esm/http/config.mjs.map +1 -1
- package/esm/http/context/request-context.d.mts +6 -7
- package/esm/http/context/request-context.d.mts.map +1 -1
- package/esm/http/context/request-memo.d.mts +1 -2
- package/esm/http/context/request-memo.d.mts.map +1 -1
- package/esm/http/createHttpApplication.d.mts +2 -3
- package/esm/http/createHttpApplication.d.mts.map +1 -1
- package/esm/http/createHttpApplication.mjs +2 -2
- package/esm/http/createHttpApplication.mjs.map +1 -1
- package/esm/http/csp.d.mts +10 -12
- package/esm/http/csp.d.mts.map +1 -1
- package/esm/http/csp.mjs +2 -2
- package/esm/http/csp.mjs.map +1 -1
- package/esm/http/csrf-default-guard.d.mts +2 -4
- package/esm/http/csrf-default-guard.d.mts.map +1 -1
- package/esm/http/csrf-default-guard.mjs +1 -1
- package/esm/http/csrf-default-guard.mjs.map +1 -1
- package/esm/http/csrf-origin-policy.d.mts +7 -9
- package/esm/http/csrf-origin-policy.d.mts.map +1 -1
- package/esm/http/csrf-origin-policy.mjs +2 -2
- package/esm/http/csrf-origin-policy.mjs.map +1 -1
- package/esm/http/database/RequestLog.d.mts +2 -3
- package/esm/http/database/RequestLog.d.mts.map +1 -1
- package/esm/http/error-codes.d.mts +1 -2
- package/esm/http/error-codes.d.mts.map +1 -1
- package/esm/http/error-mapper.d.mts +2 -4
- package/esm/http/error-mapper.d.mts.map +1 -1
- package/esm/http/error-mapper.mjs +2 -2
- package/esm/http/error-mapper.mjs.map +1 -1
- package/esm/http/errors/errors.d.mts +28 -29
- package/esm/http/errors/errors.d.mts.map +1 -1
- package/esm/http/escape-header-value.d.mts +1 -2
- package/esm/http/escape-header-value.d.mts.map +1 -1
- package/esm/http/events.d.mts +2 -4
- package/esm/http/events.d.mts.map +1 -1
- package/esm/http/health.d.mts +4 -4
- package/esm/http/health.d.mts.map +1 -1
- package/esm/http/index.d.mts +4 -1
- package/esm/http/index.mjs +1 -1
- package/esm/http/middleware/cache-response-middleware.d.mts +2 -4
- package/esm/http/middleware/cache-response-middleware.d.mts.map +1 -1
- package/esm/http/middleware/concurrency-limit.middleware.d.mts +3 -3
- package/esm/http/middleware/concurrency-limit.middleware.d.mts.map +1 -1
- package/esm/http/middleware/idempotency.middleware.d.mts +3 -3
- package/esm/http/middleware/idempotency.middleware.d.mts.map +1 -1
- package/esm/http/middleware/idempotency.middleware.mjs +6 -6
- package/esm/http/middleware/idempotency.middleware.mjs.map +1 -1
- package/esm/http/middleware/index.d.mts +3 -1
- package/esm/http/middleware/index.mjs +1 -1
- package/esm/http/middleware/inject-request-context.d.mts +2 -4
- package/esm/http/middleware/inject-request-context.d.mts.map +1 -1
- package/esm/http/middleware/inject-request-context.mjs +3 -3
- package/esm/http/middleware/inject-request-context.mjs.map +1 -1
- package/esm/http/middleware/ip-filter.middleware.d.mts +3 -3
- package/esm/http/middleware/ip-filter.middleware.d.mts.map +1 -1
- package/esm/http/middleware/maintenance.middleware.d.mts +3 -3
- package/esm/http/middleware/maintenance.middleware.d.mts.map +1 -1
- package/esm/http/middleware/maintenance.middleware.mjs +4 -4
- package/esm/http/middleware/maintenance.middleware.mjs.map +1 -1
- package/esm/http/middleware/max-body-size.middleware.d.mts +2 -2
- package/esm/http/middleware/max-body-size.middleware.d.mts.map +1 -1
- package/esm/http/middleware/middleware-list.d.mts +1 -3
- package/esm/http/middleware/middleware-list.d.mts.map +1 -1
- package/esm/http/middleware/rate-limit.middleware.d.mts +3 -3
- package/esm/http/middleware/rate-limit.middleware.d.mts.map +1 -1
- package/esm/http/middleware/rate-limit.middleware.mjs +2 -2
- package/esm/http/middleware/rate-limit.middleware.mjs.map +1 -1
- package/esm/http/middleware/utils/cidr-match.d.mts +2 -3
- package/esm/http/middleware/utils/cidr-match.d.mts.map +1 -1
- package/esm/http/middleware/utils/idempotency-key.d.mts +3 -5
- package/esm/http/middleware/utils/idempotency-key.d.mts.map +1 -1
- package/esm/http/middleware/utils/index.d.mts +2 -1
- package/esm/http/middleware/utils/parse-size.d.mts +1 -2
- package/esm/http/middleware/utils/parse-size.d.mts.map +1 -1
- package/esm/http/middleware/utils/parse-size.mjs +2 -2
- package/esm/http/middleware/utils/parse-size.mjs.map +1 -1
- package/esm/http/plugins.d.mts +2 -4
- package/esm/http/plugins.d.mts.map +1 -1
- package/esm/http/plugins.mjs +10 -10
- package/esm/http/plugins.mjs.map +1 -1
- package/esm/http/port-preflight.d.mts +3 -4
- package/esm/http/port-preflight.d.mts.map +1 -1
- package/esm/http/rate-limit-cache-store.mjs +4 -3
- package/esm/http/rate-limit-cache-store.mjs.map +1 -1
- package/esm/http/ready-report.d.mts +15 -10
- package/esm/http/ready-report.d.mts.map +1 -1
- package/esm/http/request-controller.d.mts +1 -3
- package/esm/http/request-controller.d.mts.map +1 -1
- package/esm/http/request-log-snapshot.d.mts +20 -16
- package/esm/http/request-log-snapshot.d.mts.map +1 -1
- package/esm/http/request-log-snapshot.mjs +3 -3
- package/esm/http/request-log-snapshot.mjs.map +1 -1
- package/esm/http/request.d.mts +8 -7
- package/esm/http/request.d.mts.map +1 -1
- package/esm/http/request.mjs +8 -7
- package/esm/http/request.mjs.map +1 -1
- package/esm/http/response.d.mts +12 -11
- package/esm/http/response.d.mts.map +1 -1
- package/esm/http/response.mjs +7 -7
- package/esm/http/response.mjs.map +1 -1
- package/esm/http/safe-redirect.d.mts +3 -4
- package/esm/http/safe-redirect.d.mts.map +1 -1
- package/esm/http/serialized.d.mts +12 -13
- package/esm/http/serialized.d.mts.map +1 -1
- package/esm/http/server-rebuilt.d.mts +3 -5
- package/esm/http/server-rebuilt.d.mts.map +1 -1
- package/esm/http/server.d.mts +9 -9
- package/esm/http/server.d.mts.map +1 -1
- package/esm/http/server.mjs +4 -4
- package/esm/http/server.mjs.map +1 -1
- package/esm/http/stream-react-response.d.mts +7 -7
- package/esm/http/stream-react-response.d.mts.map +1 -1
- package/esm/http/tracing/index.mjs +1 -1
- package/esm/http/tracing/trace-id.d.mts +2 -3
- package/esm/http/tracing/trace-id.d.mts.map +1 -1
- package/esm/http/tracing/tracing-dispatcher.d.mts +10 -11
- package/esm/http/tracing/tracing-dispatcher.d.mts.map +1 -1
- package/esm/http/tracing/tracing-dispatcher.mjs +2 -2
- package/esm/http/tracing/tracing-dispatcher.mjs.map +1 -1
- package/esm/http/tracing/tracing.type.d.mts +11 -9
- package/esm/http/tracing/tracing.type.d.mts.map +1 -1
- package/esm/http/types.d.mts +49 -43
- package/esm/http/types.d.mts.map +1 -1
- package/esm/http/uploaded-file.d.mts +6 -5
- package/esm/http/uploaded-file.d.mts.map +1 -1
- package/esm/http/uploads/generate-image-variants.d.mts +6 -6
- package/esm/http/uploads/generate-image-variants.d.mts.map +1 -1
- package/esm/http/uploads/generate-image-variants.mjs +1 -1
- package/esm/http/uploads/generate-image-variants.mjs.map +1 -1
- package/esm/http/uploads/image-variant-cache-entries.mjs +1 -1
- package/esm/http/uploads/image-variant-cache.mjs +8 -8
- package/esm/http/uploads/image-variant-cache.mjs.map +1 -1
- package/esm/http/uploads/image-variant-types.d.mts +7 -9
- package/esm/http/uploads/image-variant-types.d.mts.map +1 -1
- package/esm/http/uploads/image-variants-config-error.d.mts +1 -2
- package/esm/http/uploads/image-variants-config-error.d.mts.map +1 -1
- package/esm/http/uploads/index.d.mts +2 -1
- package/esm/http/uploads/index.mjs +1 -1
- package/esm/http/uploads/parse-uploaded-file-query.mjs +1 -1
- package/esm/http/uploads/parse-uploaded-file-query.mjs.map +1 -1
- package/esm/http/uploads/purge-image-variants.d.mts +2 -4
- package/esm/http/uploads/purge-image-variants.d.mts.map +1 -1
- package/esm/http/uploads/resolve-image-variant.d.mts +3 -5
- package/esm/http/uploads/resolve-image-variant.d.mts.map +1 -1
- package/esm/http/uploads/resolve-image-variants-config.mjs +4 -4
- package/esm/http/uploads/resolve-image-variants-config.mjs.map +1 -1
- package/esm/http/uploads/resolve-original-content-type.mjs +1 -1
- package/esm/http/uploads/resolve-original-content-type.mjs.map +1 -1
- package/esm/http/uploads/trim-image-variant-cache.mjs +3 -3
- package/esm/http/uploads/trim-image-variant-cache.mjs.map +1 -1
- package/esm/http/uploads/uploaded-file.controller.d.mts +6 -5
- package/esm/http/uploads/uploaded-file.controller.d.mts.map +1 -1
- package/esm/http/uploads/uploaded-file.controller.mjs +2 -1
- package/esm/http/uploads/uploaded-file.controller.mjs.map +1 -1
- package/esm/http/uploads/variant-cache-key.mjs +1 -1
- package/esm/http/uploads-config.d.mts +2 -4
- package/esm/http/uploads-config.d.mts.map +1 -1
- package/esm/http/uploads-types.d.mts +19 -17
- package/esm/http/uploads-types.d.mts.map +1 -1
- package/esm/http/xmlable.d.mts +1 -2
- package/esm/http/xmlable.d.mts.map +1 -1
- package/esm/image/image.d.mts +6 -7
- package/esm/image/image.d.mts.map +1 -1
- package/esm/image/image.mjs.map +1 -1
- package/esm/image/index.d.mts +2 -1
- package/esm/image/index.mjs +1 -1
- package/esm/index.d.mts +21 -0
- package/esm/loader/app-module-importer.d.mts +1 -2
- package/esm/loader/app-module-importer.d.mts.map +1 -1
- package/esm/localization/index.mjs +1 -1
- package/esm/localization/parse-locale-dictionary.d.mts +4 -5
- package/esm/localization/parse-locale-dictionary.d.mts.map +1 -1
- package/esm/localization/parse-locale-dictionary.mjs +1 -1
- package/esm/localization/parse-locale-dictionary.mjs.map +1 -1
- package/esm/localization/register-locale-dictionary.d.mts +3 -4
- package/esm/localization/register-locale-dictionary.d.mts.map +1 -1
- package/esm/localization/register-locale-dictionary.mjs +2 -2
- package/esm/localization/register-locale-dictionary.mjs.map +1 -1
- package/esm/logger/fatal-visibility.d.mts +1 -2
- package/esm/logger/fatal-visibility.d.mts.map +1 -1
- package/esm/logger/index.d.mts +2 -1
- package/esm/logger/index.mjs +1 -1
- package/esm/logger/logger.d.mts +1 -3
- package/esm/logger/logger.d.mts.map +1 -1
- package/esm/logger/types.d.mts +2 -3
- package/esm/logger/types.d.mts.map +1 -1
- package/esm/mail/config.d.mts +12 -14
- package/esm/mail/config.d.mts.map +1 -1
- package/esm/mail/events.d.mts +4 -6
- package/esm/mail/events.d.mts.map +1 -1
- package/esm/mail/index.d.mts +2 -1
- package/esm/mail/index.mjs +1 -1
- package/esm/mail/mail.d.mts +1 -3
- package/esm/mail/mail.d.mts.map +1 -1
- package/esm/mail/mailer-pool.d.mts +5 -7
- package/esm/mail/mailer-pool.d.mts.map +1 -1
- package/esm/mail/react-mail.d.mts +1 -3
- package/esm/mail/react-mail.d.mts.map +1 -1
- package/esm/mail/send-mail.d.mts +1 -3
- package/esm/mail/send-mail.d.mts.map +1 -1
- package/esm/mail/send-mail.mjs +2 -1
- package/esm/mail/send-mail.mjs.map +1 -1
- package/esm/mail/test-mailbox.d.mts +11 -13
- package/esm/mail/test-mailbox.d.mts.map +1 -1
- package/esm/mail/types.d.mts +17 -18
- package/esm/mail/types.d.mts.map +1 -1
- package/esm/manifest/manifest-manager.mjs +1 -1
- package/esm/openapi/build-openapi-document.d.mts +2 -4
- package/esm/openapi/build-openapi-document.d.mts.map +1 -1
- package/esm/openapi/cast-schema.mjs +1 -1
- package/esm/openapi/development-openapi-provider.d.mts +5 -6
- package/esm/openapi/development-openapi-provider.d.mts.map +1 -1
- package/esm/openapi/index.d.mts +3 -1
- package/esm/openapi/index.mjs +1 -1
- package/esm/openapi/openapi-child-output.mjs +2 -2
- package/esm/openapi/openapi-child-output.mjs.map +1 -1
- package/esm/openapi/postman/build-request-url.mjs +1 -1
- package/esm/openapi/postman/example-from-schema.d.mts +1 -3
- package/esm/openapi/postman/example-from-schema.d.mts.map +1 -1
- package/esm/openapi/postman/index.d.mts +2 -1
- package/esm/openapi/postman/openapi-to-postman-collection.d.mts +3 -5
- package/esm/openapi/postman/openapi-to-postman-collection.d.mts.map +1 -1
- package/esm/openapi/postman/postman-types.d.mts +19 -18
- package/esm/openapi/postman/postman-types.d.mts.map +1 -1
- package/esm/openapi/postman/schema-refs.d.mts +1 -3
- package/esm/openapi/postman/schema-refs.d.mts.map +1 -1
- package/esm/openapi/postman/uuid-v5.mjs +1 -1
- package/esm/openapi/schema-registry.d.mts +1 -1
- package/esm/openapi/security.mjs +1 -1
- package/esm/openapi/types.d.mts +23 -21
- package/esm/openapi/types.d.mts.map +1 -1
- package/esm/production/assert-generated-imports.mjs +1 -1
- package/esm/production/build-contributions.mjs +1 -1
- package/esm/production/bundle-framework-dependencies.mjs +1 -1
- package/esm/production/dist-build-manifest.mjs +1 -1
- package/esm/production/esbuild-plugins.mjs.map +1 -1
- package/esm/production/esbuild-preflight.mjs +1 -1
- package/esm/production/production-builder.mjs +2 -1
- package/esm/production/production-builder.mjs.map +1 -1
- package/esm/production/production-supervisor.mjs +1 -1
- package/esm/production/registration-child-runner.mjs +4 -3
- package/esm/production/registration-child-runner.mjs.map +1 -1
- package/esm/production/resolve-build-config.d.mts +4 -4
- package/esm/production/resolve-build-config.d.mts.map +1 -1
- package/esm/production/resolve-build-config.mjs +1 -1
- package/esm/production/route-registration-child.d.mts +1 -1
- package/esm/production/route-registration-child.mjs +8 -7
- package/esm/production/route-registration-child.mjs.map +1 -1
- package/esm/production/tsconfig-path-aliases.mjs +1 -1
- package/esm/react/index.d.mts +1 -3
- package/esm/react/index.d.mts.map +1 -1
- package/esm/react/index.mjs.map +1 -1
- package/esm/repositories/adapters/cascade/cascade-adapter.d.mts +3 -4
- package/esm/repositories/adapters/cascade/cascade-adapter.d.mts.map +1 -1
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.mts +2 -3
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.mts.map +1 -1
- package/esm/repositories/adapters/cascade/filter-applicator.mjs +10 -9
- package/esm/repositories/adapters/cascade/filter-applicator.mjs.map +1 -1
- package/esm/repositories/adapters/cascade/index.d.mts +2 -1
- package/esm/repositories/adapters/cascade/index.mjs +1 -1
- package/esm/repositories/contracts/index.d.mts +2 -1
- package/esm/repositories/contracts/query-builder.contract.d.mts +4 -6
- package/esm/repositories/contracts/query-builder.contract.d.mts.map +1 -1
- package/esm/repositories/contracts/repository-adapter.contract.d.mts +1 -3
- package/esm/repositories/contracts/repository-adapter.contract.d.mts.map +1 -1
- package/esm/repositories/contracts/types.d.mts +23 -25
- package/esm/repositories/contracts/types.d.mts.map +1 -1
- package/esm/repositories/index.d.mts +4 -1
- package/esm/repositories/index.mjs +1 -1
- package/esm/repositories/repository.manager.d.mts +2 -3
- package/esm/repositories/repository.manager.d.mts.map +1 -1
- package/esm/repositories/repository.manager.mjs +2 -2
- package/esm/repositories/repository.manager.mjs.map +1 -1
- package/esm/resource/define-resource.d.mts +3 -5
- package/esm/resource/define-resource.d.mts.map +1 -1
- package/esm/resource/index.d.mts +2 -1
- package/esm/resource/index.mjs +1 -1
- package/esm/resource/nullable-resource.d.mts +5 -7
- package/esm/resource/nullable-resource.d.mts.map +1 -1
- package/esm/resource/register-resource.d.mts +1 -3
- package/esm/resource/register-resource.d.mts.map +1 -1
- package/esm/resource/resource-field-builder.d.mts +1 -3
- package/esm/resource/resource-field-builder.d.mts.map +1 -1
- package/esm/resource/resource.d.mts +3 -5
- package/esm/resource/resource.d.mts.map +1 -1
- package/esm/resource/resource.mjs +4 -2
- package/esm/resource/resource.mjs.map +1 -1
- package/esm/resource/types.d.mts +21 -21
- package/esm/resource/types.d.mts.map +1 -1
- package/esm/restful/index.d.mts +2 -1
- package/esm/restful/index.mjs +1 -1
- package/esm/restful/restful.d.mts +12 -32
- package/esm/restful/restful.d.mts.map +1 -1
- package/esm/router/index.d.mts +2 -1
- package/esm/router/index.mjs +1 -1
- package/esm/router/named-api-routes-with-responses.mjs +2 -1
- package/esm/router/named-api-routes-with-responses.mjs.map +1 -1
- package/esm/router/normalize-request-path.d.mts +1 -2
- package/esm/router/normalize-request-path.d.mts.map +1 -1
- package/esm/router/normalize-route-path.d.mts +1 -2
- package/esm/router/normalize-route-path.d.mts.map +1 -1
- package/esm/router/positional-handler-diagnostics.d.mts +15 -13
- package/esm/router/positional-handler-diagnostics.d.mts.map +1 -1
- package/esm/router/resolve-route-rate-limit.mjs +3 -3
- package/esm/router/resolve-route-rate-limit.mjs.map +1 -1
- package/esm/router/route-builder.d.mts +1 -3
- package/esm/router/route-builder.d.mts.map +1 -1
- package/esm/router/route-guard-names.mjs +1 -1
- package/esm/router/route-guard-names.mjs.map +1 -1
- package/esm/router/route-name-method-suffix.d.mts +2 -3
- package/esm/router/route-name-method-suffix.d.mts.map +1 -1
- package/esm/router/route-name-taken-error.d.mts +1 -3
- package/esm/router/route-name-taken-error.d.mts.map +1 -1
- package/esm/router/route-registry.d.mts +1 -3
- package/esm/router/route-registry.d.mts.map +1 -1
- package/esm/router/router.d.mts +2 -4
- package/esm/router/router.d.mts.map +1 -1
- package/esm/router/router.mjs +8 -6
- package/esm/router/router.mjs.map +1 -1
- package/esm/router/types.d.mts +25 -26
- package/esm/router/types.d.mts.map +1 -1
- package/esm/router/unguarded-route-diagnostics.d.mts +6 -8
- package/esm/router/unguarded-route-diagnostics.d.mts.map +1 -1
- package/esm/socket/index.d.mts +2 -1
- package/esm/socket/index.mjs +1 -1
- package/esm/socket/types.d.mts +2 -4
- package/esm/socket/types.d.mts.map +1 -1
- package/esm/socket/utils.d.mts +1 -3
- package/esm/socket/utils.d.mts.map +1 -1
- package/esm/storage/config.d.mts +4 -6
- package/esm/storage/config.d.mts.map +1 -1
- package/esm/storage/context/storage-driver-context.d.mts +3 -4
- package/esm/storage/context/storage-driver-context.d.mts.map +1 -1
- package/esm/storage/drivers/cloud-driver.d.mts +2 -4
- package/esm/storage/drivers/cloud-driver.d.mts.map +1 -1
- package/esm/storage/drivers/cloud-driver.mjs.map +1 -1
- package/esm/storage/drivers/do-spaces-driver.d.mts +1 -3
- package/esm/storage/drivers/do-spaces-driver.d.mts.map +1 -1
- package/esm/storage/drivers/local-driver.d.mts +2 -3
- package/esm/storage/drivers/local-driver.d.mts.map +1 -1
- package/esm/storage/drivers/local-driver.mjs +8 -3
- package/esm/storage/drivers/local-driver.mjs.map +1 -1
- package/esm/storage/drivers/r2-driver.d.mts +1 -3
- package/esm/storage/drivers/r2-driver.d.mts.map +1 -1
- package/esm/storage/drivers/s3-driver.d.mts +1 -3
- package/esm/storage/drivers/s3-driver.d.mts.map +1 -1
- package/esm/storage/index.d.mts +2 -1
- package/esm/storage/index.mjs +1 -1
- package/esm/storage/local-disk-roots.mjs +2 -2
- package/esm/storage/local-disk-roots.mjs.map +1 -1
- package/esm/storage/scoped-storage.d.mts +2 -3
- package/esm/storage/scoped-storage.d.mts.map +1 -1
- package/esm/storage/storage-file.d.mts +1 -3
- package/esm/storage/storage-file.d.mts.map +1 -1
- package/esm/storage/storage.d.mts +3 -4
- package/esm/storage/storage.d.mts.map +1 -1
- package/esm/storage/types.d.mts +36 -36
- package/esm/storage/types.d.mts.map +1 -1
- package/esm/storage/utils/classify-ip-address.d.mts +1 -2
- package/esm/storage/utils/classify-ip-address.d.mts.map +1 -1
- package/esm/storage/utils/contain-path.d.mts +1 -2
- package/esm/storage/utils/contain-path.d.mts.map +1 -1
- package/esm/storage/utils/mime.d.mts +2 -3
- package/esm/storage/utils/mime.d.mts.map +1 -1
- package/esm/storage/utils/safe-fetch.d.mts +6 -6
- package/esm/storage/utils/safe-fetch.d.mts.map +1 -1
- package/esm/storage/utils/safe-fetch.mjs +3 -3
- package/esm/storage/utils/safe-fetch.mjs.map +1 -1
- package/esm/storage/utils/storage-capability-error.d.mts +1 -3
- package/esm/storage/utils/storage-capability-error.d.mts.map +1 -1
- package/esm/storage/utils/storage-error.d.mts +2 -3
- package/esm/storage/utils/storage-error.d.mts.map +1 -1
- package/esm/storage/utils/storage-not-initialized-error.d.mts +1 -2
- package/esm/storage/utils/storage-not-initialized-error.d.mts.map +1 -1
- package/esm/tests/authenticated-test-client.d.mts +5 -6
- package/esm/tests/authenticated-test-client.d.mts.map +1 -1
- package/esm/tests/factories.d.mts +38 -23
- package/esm/tests/factories.d.mts.map +1 -1
- package/esm/tests/fakes/cache-fake.d.mts +14 -9
- package/esm/tests/fakes/cache-fake.d.mts.map +1 -1
- package/esm/tests/fakes/clock-fake.d.mts +13 -8
- package/esm/tests/fakes/clock-fake.d.mts.map +1 -1
- package/esm/tests/fakes/fake-assertion-error.d.mts +2 -3
- package/esm/tests/fakes/fake-assertion-error.d.mts.map +1 -1
- package/esm/tests/fakes/ids-fake.d.mts +5 -4
- package/esm/tests/fakes/ids-fake.d.mts.map +1 -1
- package/esm/tests/fakes/index.d.mts +2 -1
- package/esm/tests/fakes/index.mjs +1 -1
- package/esm/tests/fakes/mail-fake.d.mts +21 -13
- package/esm/tests/fakes/mail-fake.d.mts.map +1 -1
- package/esm/tests/fakes/queue-fake.d.mts +21 -13
- package/esm/tests/fakes/queue-fake.d.mts.map +1 -1
- package/esm/tests/fakes/storage-fake.d.mts +12 -8
- package/esm/tests/fakes/storage-fake.d.mts.map +1 -1
- package/esm/tests/fakes/storage-fake.mjs +1 -1
- package/esm/tests/fakes/test-fakes.d.mts +8 -9
- package/esm/tests/fakes/test-fakes.d.mts.map +1 -1
- package/esm/tests/fakes/test-fakes.mjs +1 -1
- package/esm/tests/fakes/test-fakes.mjs.map +1 -1
- package/esm/tests/index.d.mts +1 -0
- package/esm/tests/snapshot-response.d.mts +4 -5
- package/esm/tests/snapshot-response.d.mts.map +1 -1
- package/esm/tests/start-http-development-server.d.mts +4 -6
- package/esm/tests/start-http-development-server.d.mts.map +1 -1
- package/esm/tests/start-http-development-server.mjs +5 -5
- package/esm/tests/start-http-development-server.mjs.map +1 -1
- package/esm/tests/test-connectors-selection.d.mts +2 -2
- package/esm/tests/test-connectors-selection.d.mts.map +1 -1
- package/esm/tests/test-connectors-selection.mjs +1 -1
- package/esm/tests/test-helpers.d.mts +11 -12
- package/esm/tests/test-helpers.d.mts.map +1 -1
- package/esm/tests/test-http-server.d.mts +14 -10
- package/esm/tests/test-http-server.d.mts.map +1 -1
- package/esm/tests/test-lifecycle-state.mjs +1 -1
- package/esm/tests/vitest-setup.d.mts +6 -7
- package/esm/tests/vitest-setup.d.mts.map +1 -1
- package/esm/tooling/agents-md/agents-md-markers.d.mts +4 -5
- package/esm/tooling/agents-md/agents-md-markers.d.mts.map +1 -1
- package/esm/tooling/agents-md/agents-md-markers.mjs +2 -1
- package/esm/tooling/agents-md/agents-md-markers.mjs.map +1 -1
- package/esm/tooling/agents-md/agents-md-refresher.d.mts +19 -12
- package/esm/tooling/agents-md/agents-md-refresher.d.mts.map +1 -1
- package/esm/tooling/agents-md/installed-skills.d.mts +13 -9
- package/esm/tooling/agents-md/installed-skills.d.mts.map +1 -1
- package/esm/tooling/agents-md/render-agents-md.d.mts +8 -7
- package/esm/tooling/agents-md/render-agents-md.d.mts.map +1 -1
- package/esm/tooling/agents-md/render-agents-md.mjs +2 -2
- package/esm/tooling/agents-md/render-agents-md.mjs.map +1 -1
- package/esm/tooling/agents-md/write-agents-md.d.mts +17 -12
- package/esm/tooling/agents-md/write-agents-md.d.mts.map +1 -1
- package/esm/tooling/board/board-message.d.mts +4 -6
- package/esm/tooling/board/board-message.d.mts.map +1 -1
- package/esm/tooling/board/board.d.mts +50 -38
- package/esm/tooling/board/board.d.mts.map +1 -1
- package/esm/tooling/board/board.mjs +4 -3
- package/esm/tooling/board/board.mjs.map +1 -1
- package/esm/tooling/board/board.types.d.mts +32 -23
- package/esm/tooling/board/board.types.d.mts.map +1 -1
- package/esm/tooling/check/changed-files.d.mts +4 -6
- package/esm/tooling/check/changed-files.d.mts.map +1 -1
- package/esm/tooling/check/changed-files.mjs +2 -2
- package/esm/tooling/check/changed-files.mjs.map +1 -1
- package/esm/tooling/check/check-report.types.d.mts +22 -17
- package/esm/tooling/check/check-report.types.d.mts.map +1 -1
- package/esm/tooling/check/code-style-conventions.mjs +25 -25
- package/esm/tooling/check/code-style-conventions.mjs.map +1 -1
- package/esm/tooling/check/conventions-step.d.mts +4 -6
- package/esm/tooling/check/conventions-step.d.mts.map +1 -1
- package/esm/tooling/check/conventions-step.mjs +7 -18
- package/esm/tooling/check/conventions-step.mjs.map +1 -1
- package/esm/tooling/check/environment-step.d.mts +2 -4
- package/esm/tooling/check/environment-step.d.mts.map +1 -1
- package/esm/tooling/check/environment-step.mjs +1 -1
- package/esm/tooling/check/index.mjs +1 -1
- package/esm/tooling/check/lint-step.d.mts +4 -5
- package/esm/tooling/check/lint-step.d.mts.map +1 -1
- package/esm/tooling/check/lint-step.mjs +2 -1
- package/esm/tooling/check/lint-step.mjs.map +1 -1
- package/esm/tooling/check/request-input.mjs +15 -15
- package/esm/tooling/check/request-input.mjs.map +1 -1
- package/esm/tooling/check/run-check.d.mts +22 -14
- package/esm/tooling/check/run-check.d.mts.map +1 -1
- package/esm/tooling/check/run-tests.d.mts +22 -15
- package/esm/tooling/check/run-tests.d.mts.map +1 -1
- package/esm/tooling/check/security-conventions.mjs +133 -131
- package/esm/tooling/check/security-conventions.mjs.map +1 -1
- package/esm/tooling/check/source-ast.mjs +92 -132
- package/esm/tooling/check/source-ast.mjs.map +1 -1
- package/esm/tooling/check/tests-step.d.mts +7 -8
- package/esm/tooling/check/tests-step.d.mts.map +1 -1
- package/esm/tooling/check/tests-step.mjs +3 -3
- package/esm/tooling/check/tests-step.mjs.map +1 -1
- package/esm/tooling/dev-state/dev-server-state.d.mts +17 -13
- package/esm/tooling/dev-state/dev-server-state.d.mts.map +1 -1
- package/esm/tooling/devtools/devtools-client.d.mts +29 -20
- package/esm/tooling/devtools/devtools-client.d.mts.map +1 -1
- package/esm/tooling/generate/generation.d.mts +34 -22
- package/esm/tooling/generate/generation.d.mts.map +1 -1
- package/esm/tooling/generate/generation.mjs +9 -5
- package/esm/tooling/generate/generation.mjs.map +1 -1
- package/esm/tooling/generate/generator-spec.d.mts +9 -9
- package/esm/tooling/generate/generator-spec.d.mts.map +1 -1
- package/esm/tooling/generate/index.mjs +1 -1
- package/esm/tooling/generate/project-files.mjs +3 -3
- package/esm/tooling/generate/project-files.mjs.map +1 -1
- package/esm/tooling/generate/run-cli.d.mts +14 -11
- package/esm/tooling/generate/run-cli.d.mts.map +1 -1
- package/esm/tooling/generate/run-cli.mjs +2 -2
- package/esm/tooling/generate/run-cli.mjs.map +1 -1
- package/esm/tooling/generate/unified-diff.d.mts +10 -7
- package/esm/tooling/generate/unified-diff.d.mts.map +1 -1
- package/esm/tooling/index.d.mts +1 -0
- package/esm/tooling/inspect/boot-for-inspect.d.mts +7 -7
- package/esm/tooling/inspect/boot-for-inspect.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-config.mjs +3 -3
- package/esm/tooling/inspect/collect-config.mjs.map +1 -1
- package/esm/tooling/inspect/collect-models.d.mts +4 -3
- package/esm/tooling/inspect/collect-models.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-models.mjs +1 -1
- package/esm/tooling/inspect/collect-packages.d.mts +1 -2
- package/esm/tooling/inspect/collect-packages.d.mts.map +1 -1
- package/esm/tooling/inspect/collect-pages.mjs +10 -10
- package/esm/tooling/inspect/collect-pages.mjs.map +1 -1
- package/esm/tooling/inspect/collect-routes.mjs +1 -1
- package/esm/tooling/inspect/event-recorder.d.mts +7 -7
- package/esm/tooling/inspect/event-recorder.d.mts.map +1 -1
- package/esm/tooling/inspect/index.d.mts +2 -1
- package/esm/tooling/inspect/index.mjs +1 -1
- package/esm/tooling/inspect/inspect-app.d.mts +25 -16
- package/esm/tooling/inspect/inspect-app.d.mts.map +1 -1
- package/esm/tooling/inspect/inspect-report.schema.d.mts +1 -2
- package/esm/tooling/inspect/inspect-report.schema.d.mts.map +1 -1
- package/esm/tooling/inspect/inspect-report.types.d.mts +86 -54
- package/esm/tooling/inspect/inspect-report.types.d.mts.map +1 -1
- package/esm/tooling/mcp/create-mcp-context.d.mts +11 -8
- package/esm/tooling/mcp/create-mcp-context.d.mts.map +1 -1
- package/esm/tooling/mcp/db-schema.d.mts +10 -9
- package/esm/tooling/mcp/db-schema.d.mts.map +1 -1
- package/esm/tooling/mcp/docs-search.d.mts +20 -15
- package/esm/tooling/mcp/docs-search.d.mts.map +1 -1
- package/esm/tooling/mcp/index.mjs +1 -1
- package/esm/tooling/mcp/load-ai-tools.d.mts +7 -8
- package/esm/tooling/mcp/load-ai-tools.d.mts.map +1 -1
- package/esm/tooling/mcp/load-ai-tools.mjs +2 -1
- package/esm/tooling/mcp/load-ai-tools.mjs.map +1 -1
- package/esm/tooling/mcp/mcp-tools.d.mts +29 -19
- package/esm/tooling/mcp/mcp-tools.d.mts.map +1 -1
- package/esm/tooling/mcp/mcp-tools.mjs +3 -2
- package/esm/tooling/mcp/mcp-tools.mjs.map +1 -1
- package/esm/tooling/mcp/start-mcp-server.d.mts +24 -17
- package/esm/tooling/mcp/start-mcp-server.d.mts.map +1 -1
- package/esm/tooling/mcp/start-mcp-server.mjs +1 -1
- package/esm/tooling/mcp/start-mcp-server.mjs.map +1 -1
- package/esm/tooling/mcp/tool-input.d.mts +7 -7
- package/esm/tooling/mcp/tool-input.d.mts.map +1 -1
- package/esm/tooling/problem.d.mts +27 -17
- package/esm/tooling/problem.d.mts.map +1 -1
- package/esm/tooling/syntax/ast.mjs +230 -0
- package/esm/tooling/syntax/ast.mjs.map +1 -0
- package/esm/tooling/syntax/imports.mjs +34 -0
- package/esm/tooling/syntax/imports.mjs.map +1 -0
- package/esm/tooling/trace/trace-report.types.d.mts +36 -22
- package/esm/tooling/trace/trace-report.types.d.mts.map +1 -1
- package/esm/tooling/trace/trace-request.d.mts +27 -20
- package/esm/tooling/trace/trace-request.d.mts.map +1 -1
- package/esm/tooling/trace/trace-request.mjs +2 -2
- package/esm/tooling/trace/trace-request.mjs.map +1 -1
- package/esm/tooling/typecheck/index.mjs +1 -1
- package/esm/tooling/typecheck/run-typecheck.d.mts +15 -48
- package/esm/tooling/typecheck/run-typecheck.d.mts.map +1 -1
- package/esm/tooling/typecheck/run-typecheck.mjs +42 -105
- package/esm/tooling/typecheck/run-typecheck.mjs.map +1 -1
- package/esm/tooling/typescript/compiler.d.mts +31 -0
- package/esm/tooling/typescript/compiler.d.mts.map +1 -0
- package/esm/tooling/typescript/compiler.mjs +120 -0
- package/esm/tooling/typescript/compiler.mjs.map +1 -0
- package/esm/updater/update-warlock-packages.mjs +3 -2
- package/esm/updater/update-warlock-packages.mjs.map +1 -1
- package/esm/upgrade/codemods/index.mjs +1 -1
- package/esm/upgrade/codemods/logger-sync-calls.mjs +1 -1
- package/esm/upgrade/codemods/logger-sync-calls.mjs.map +1 -1
- package/esm/upgrade/codemods/request-log-snapshot.mjs +1 -1
- package/esm/upgrade/codemods/request-log-snapshot.mjs.map +1 -1
- package/esm/upgrade/diff.mjs +1 -1
- package/esm/upgrade/diff.mjs.map +1 -1
- package/esm/upgrade/load-ts-morph.mjs +3 -2
- package/esm/upgrade/load-ts-morph.mjs.map +1 -1
- package/esm/upgrade/run-upgrade.mjs +1 -1
- package/esm/use-cases/index.d.mts +2 -1
- package/esm/use-cases/index.mjs +1 -1
- package/esm/use-cases/types.d.mts +116 -63
- package/esm/use-cases/types.d.mts.map +1 -1
- package/esm/use-cases/use-case-broadcast.d.mts +1 -3
- package/esm/use-cases/use-case-broadcast.d.mts.map +1 -1
- package/esm/use-cases/use-case-events.d.mts +3 -5
- package/esm/use-cases/use-case-events.d.mts.map +1 -1
- package/esm/use-cases/use-case-pipeline.d.mts +6 -6
- package/esm/use-cases/use-case-pipeline.d.mts.map +1 -1
- package/esm/use-cases/use-case.d.mts +2 -4
- package/esm/use-cases/use-case.d.mts.map +1 -1
- package/esm/use-cases/use-case.errors.d.mts +1 -3
- package/esm/use-cases/use-case.errors.d.mts.map +1 -1
- package/esm/use-cases/use-cases-registry.d.mts +8 -10
- package/esm/use-cases/use-cases-registry.d.mts.map +1 -1
- package/esm/utils/app-log.d.mts +1 -2
- package/esm/utils/app-log.d.mts.map +1 -1
- package/esm/utils/clock.d.mts +8 -6
- package/esm/utils/clock.d.mts.map +1 -1
- package/esm/utils/database-log.d.mts +3 -4
- package/esm/utils/database-log.d.mts.map +1 -1
- package/esm/utils/environment.d.mts +4 -5
- package/esm/utils/environment.d.mts.map +1 -1
- package/esm/utils/framework-vesion.mjs.map +1 -1
- package/esm/utils/get-localized.d.mts +2 -3
- package/esm/utils/get-localized.d.mts.map +1 -1
- package/esm/utils/ids.d.mts +9 -6
- package/esm/utils/ids.d.mts.map +1 -1
- package/esm/utils/index.d.mts +2 -1
- package/esm/utils/index.mjs +1 -1
- package/esm/utils/normalized-path.d.mts +1 -2
- package/esm/utils/normalized-path.d.mts.map +1 -1
- package/esm/utils/npm-registry.d.mts +1 -2
- package/esm/utils/npm-registry.d.mts.map +1 -1
- package/esm/utils/paths.d.mts +13 -14
- package/esm/utils/paths.d.mts.map +1 -1
- package/esm/utils/paths.mjs +2 -2
- package/esm/utils/paths.mjs.map +1 -1
- package/esm/utils/promise-all-object.d.mts +1 -2
- package/esm/utils/promise-all-object.d.mts.map +1 -1
- package/esm/utils/queue.d.mts +1 -2
- package/esm/utils/queue.d.mts.map +1 -1
- package/esm/utils/runtime.d.mts +11 -10
- package/esm/utils/runtime.d.mts.map +1 -1
- package/esm/utils/sleep.d.mts +1 -2
- package/esm/utils/sleep.d.mts.map +1 -1
- package/esm/utils/sluggable.d.mts +1 -3
- package/esm/utils/sluggable.d.mts.map +1 -1
- package/esm/utils/to-json.d.mts +1 -2
- package/esm/utils/to-json.d.mts.map +1 -1
- package/esm/utils/types.d.mts +1 -2
- package/esm/utils/types.d.mts.map +1 -1
- package/esm/utils/urls.d.mts +5 -6
- package/esm/utils/urls.d.mts.map +1 -1
- package/esm/utils/version-compare.d.mts +1 -2
- package/esm/utils/version-compare.d.mts.map +1 -1
- package/esm/validation/database/exists-except-current-id.d.mts +2 -3
- package/esm/validation/database/exists-except-current-id.d.mts.map +1 -1
- package/esm/validation/database/exists-except-current-user.d.mts +2 -3
- package/esm/validation/database/exists-except-current-user.d.mts.map +1 -1
- package/esm/validation/database/index.d.mts +2 -1
- package/esm/validation/database/index.mjs +1 -1
- package/esm/validation/database/types.d.mts +14 -10
- package/esm/validation/database/types.d.mts.map +1 -1
- package/esm/validation/database/unique-except-current-id.d.mts +2 -3
- package/esm/validation/database/unique-except-current-id.d.mts.map +1 -1
- package/esm/validation/database/unique-except-current-user.d.mts +2 -3
- package/esm/validation/database/unique-except-current-user.d.mts.map +1 -1
- package/esm/validation/file/file.d.mts +4 -6
- package/esm/validation/file/file.d.mts.map +1 -1
- package/esm/validation/file/index.d.mts +2 -1
- package/esm/validation/file/index.mjs +1 -1
- package/esm/validation/index.d.mts +5 -1
- package/esm/validation/index.mjs +1 -1
- package/esm/validation/plugins/index.mjs +1 -1
- package/esm/validation/types.d.mts +6 -4
- package/esm/validation/types.d.mts.map +1 -1
- package/esm/validation/validateAll.mjs +2 -2
- package/esm/validation/validateAll.mjs.map +1 -1
- package/esm/validation/validation-failure-status.mjs +2 -2
- package/esm/validation/validation-failure-status.mjs.map +1 -1
- package/esm/validation/validators/file-validator.d.mts +2 -4
- package/esm/validation/validators/file-validator.d.mts.map +1 -1
- package/esm/validation/validators/index.d.mts +2 -1
- package/esm/validation/validators/index.mjs +1 -1
- package/esm/vite/lower-stage3-decorators.d.mts +2 -3
- package/esm/vite/lower-stage3-decorators.d.mts.map +1 -1
- package/esm/warlock-config/define-config.d.mts +1 -3
- package/esm/warlock-config/define-config.d.mts.map +1 -1
- package/esm/warlock-config/define-config.mjs +3 -2
- package/esm/warlock-config/define-config.mjs.map +1 -1
- package/esm/warlock-config/index.d.mts +2 -1
- package/esm/warlock-config/index.mjs +1 -1
- package/esm/warlock-config/types.d.mts +6 -5
- package/esm/warlock-config/types.d.mts.map +1 -1
- package/esm/warlock-config/warlock-config.manager.d.mts +5 -7
- package/esm/warlock-config/warlock-config.manager.d.mts.map +1 -1
- package/esm/warlock-config/warlock-config.manager.mjs +2 -1
- package/esm/warlock-config/warlock-config.manager.mjs.map +1 -1
- package/esm/warlock-config/warn-deprecated-config.mjs +1 -1
- package/llms-full.txt +55 -5
- package/package.json +17 -15
- package/skills/create-module/SKILL.md +7 -0
- package/skills/index.md +2 -0
- package/skills/report-framework-issue.md +154 -0
- package/skills/run-app/SKILL.md +6 -5
- package/skills/upgrade-from-5-29/SKILL.md +41 -0
- package/skills/warlock-check/SKILL.md +1 -0
- package/esm/tooling/check/index.d.mts +0 -8
- package/esm/tooling/typecheck/index.d.mts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { WarlockErrorCode } from "../../errors/error-codes.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tooling/inspect/inspect-report.types.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* @fileoverview The `warlock inspect` report, schema version 1.
|
|
@@ -16,88 +15,110 @@ import { WarlockErrorCode } from "../../errors/error-codes.mjs";
|
|
|
16
15
|
* `INSPECT_REPORT_JSON_SCHEMA` constant.
|
|
17
16
|
*/
|
|
18
17
|
/** The version of the report shape. Bumped only for a breaking change. */
|
|
19
|
-
declare const INSPECT_SCHEMA_VERSION = 1;
|
|
18
|
+
export declare const INSPECT_SCHEMA_VERSION = 1;
|
|
20
19
|
/** Every section the report can contain, in output order. */
|
|
21
|
-
declare const INSPECT_SECTIONS: readonly ["routes", "models", "resources", "config", "events", "pages", "jobs", "schedules", "packages"];
|
|
20
|
+
export declare const INSPECT_SECTIONS: readonly ["routes", "models", "resources", "config", "events", "pages", "jobs", "schedules", "packages"];
|
|
22
21
|
/** One section name. */
|
|
23
|
-
type InspectSection = (typeof INSPECT_SECTIONS)[number];
|
|
22
|
+
export type InspectSection = (typeof INSPECT_SECTIONS)[number];
|
|
24
23
|
/** A JSON Schema (draft 2020-12) fragment. */
|
|
25
|
-
type JsonSchema = Record<string, unknown>;
|
|
24
|
+
export type JsonSchema = Record<string, unknown>;
|
|
26
25
|
/** Who guards a route, from the descriptor `authMiddleware()` attaches. */
|
|
27
|
-
type InspectRouteAuth = {
|
|
28
|
-
/** Whether an auth guard runs on the route. */
|
|
26
|
+
export type InspectRouteAuth = {
|
|
27
|
+
/** Whether an auth guard runs on the route. */
|
|
28
|
+
required: boolean;
|
|
29
|
+
/** Where the token is read: `"header"` (bearer) or `{ cookie }`. */
|
|
29
30
|
sources: ("header" | {
|
|
30
31
|
cookie: string;
|
|
31
|
-
})[];
|
|
32
|
+
})[];
|
|
33
|
+
/** User types the guard accepts; empty means any. */
|
|
32
34
|
userTypes: string[];
|
|
33
35
|
};
|
|
34
36
|
/** The rate limit a route runs under. */
|
|
35
|
-
type InspectRouteRateLimit = {
|
|
36
|
-
/** `route` = the route's own option, `global` = `http.rateLimit`, `none` = no limiter. */
|
|
37
|
-
|
|
37
|
+
export type InspectRouteRateLimit = {
|
|
38
|
+
/** `route` = the route's own option, `global` = `http.rateLimit`, `none` = no limiter. */
|
|
39
|
+
source: "route" | "global" | "none";
|
|
40
|
+
/** Max requests per window; `"dynamic"` when configured as a function. */
|
|
41
|
+
max: number | "dynamic" | null;
|
|
42
|
+
/** Window in milliseconds, or the configured string (`"1 minute"`); `"dynamic"` for a function. */
|
|
38
43
|
timeWindow: number | string | null;
|
|
39
44
|
};
|
|
40
45
|
/** What the route's request log entries keep. */
|
|
41
|
-
type InspectRouteLogging = {
|
|
42
|
-
/** Whether the request body is logged. */
|
|
43
|
-
|
|
46
|
+
export type InspectRouteLogging = {
|
|
47
|
+
/** Whether the request body is logged. */
|
|
48
|
+
body: boolean;
|
|
49
|
+
/** Whether the query string is logged. */
|
|
50
|
+
query: boolean;
|
|
51
|
+
/** Whether `http.logging.private` rules exist that may remove more for some URLs. */
|
|
44
52
|
privateRules: boolean;
|
|
45
53
|
};
|
|
46
54
|
/** One request parameter (path, query or header). */
|
|
47
|
-
type InspectParameter = {
|
|
55
|
+
export type InspectParameter = {
|
|
48
56
|
name: string;
|
|
49
57
|
in: "path" | "query" | "header" | "cookie";
|
|
50
58
|
required: boolean;
|
|
51
59
|
schema: JsonSchema;
|
|
52
60
|
};
|
|
53
61
|
/** One registered HTTP route. */
|
|
54
|
-
type InspectRoute = {
|
|
55
|
-
/** Uppercase method, `ALL` for `router.all`. */
|
|
62
|
+
export type InspectRoute = {
|
|
63
|
+
/** Uppercase method, `ALL` for `router.all`. */
|
|
64
|
+
method: string;
|
|
56
65
|
path: string;
|
|
57
|
-
name: string | null;
|
|
58
|
-
|
|
66
|
+
name: string | null;
|
|
67
|
+
/** Project-relative file that registered the route. */
|
|
68
|
+
sourceFile: string | null;
|
|
69
|
+
/** Handler function name, `"anonymous"` when it has none. */
|
|
59
70
|
handler: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
|
|
71
|
+
description: string | null;
|
|
72
|
+
/** Whether a page (SSR) route registered it. */
|
|
73
|
+
isPage: boolean;
|
|
74
|
+
/** Middleware function names in run order. */
|
|
62
75
|
middleware: string[];
|
|
63
|
-
auth: InspectRouteAuth;
|
|
76
|
+
auth: InspectRouteAuth;
|
|
77
|
+
/** `false` when the route opted out of the CSRF origin guard (`csrf: false`). */
|
|
64
78
|
csrf: boolean;
|
|
65
79
|
rateLimit: InspectRouteRateLimit;
|
|
66
80
|
logging: InspectRouteLogging;
|
|
67
81
|
request: {
|
|
68
|
-
parameters: InspectParameter[];
|
|
69
|
-
|
|
82
|
+
parameters: InspectParameter[];
|
|
83
|
+
/** JSON Schema of the request body, or `null`. */
|
|
84
|
+
body: JsonSchema | null;
|
|
85
|
+
/** Whether `validation.validate` (custom middleware, not described) is set. */
|
|
70
86
|
customValidation: boolean;
|
|
71
|
-
};
|
|
87
|
+
};
|
|
88
|
+
/** Declared responses keyed by status code. */
|
|
72
89
|
responses: Record<string, {
|
|
73
90
|
description: string;
|
|
74
91
|
schema: JsonSchema | null;
|
|
75
92
|
}>;
|
|
76
93
|
};
|
|
77
94
|
/** One model column, from the model's Seal `schema`. */
|
|
78
|
-
type InspectModelColumn = {
|
|
95
|
+
export type InspectModelColumn = {
|
|
79
96
|
name: string;
|
|
80
97
|
required: boolean;
|
|
81
98
|
schema: JsonSchema;
|
|
82
99
|
};
|
|
83
100
|
/** One model relation. */
|
|
84
|
-
type InspectModelRelation = {
|
|
101
|
+
export type InspectModelRelation = {
|
|
85
102
|
name: string;
|
|
86
|
-
type: string;
|
|
103
|
+
type: string;
|
|
104
|
+
/** Target model name, or `null` when it could not be resolved. */
|
|
87
105
|
model: string | null;
|
|
88
106
|
foreignKey: string | null;
|
|
89
107
|
localKey: string | null;
|
|
90
108
|
};
|
|
91
109
|
/** One model class. */
|
|
92
|
-
type InspectModel = {
|
|
110
|
+
export type InspectModel = {
|
|
93
111
|
name: string;
|
|
94
112
|
table: string | null;
|
|
95
|
-
primaryKey: string | null;
|
|
113
|
+
primaryKey: string | null;
|
|
114
|
+
/** Data source name, when configured by name. */
|
|
96
115
|
dataSource: string | null;
|
|
97
|
-
sourceFile: string | null;
|
|
116
|
+
sourceFile: string | null;
|
|
117
|
+
/** Whether `@RegisterModel()` put it in the registry. */
|
|
98
118
|
registered: boolean;
|
|
99
119
|
columns: InspectModelColumn[];
|
|
100
|
-
relations: InspectModelRelation[];
|
|
120
|
+
relations: InspectModelRelation[];
|
|
121
|
+
/** Name of the model's `static resource`, a key of `components.schemas`. */
|
|
101
122
|
resource: string | null;
|
|
102
123
|
deleteStrategy: string | null;
|
|
103
124
|
createdAtColumn: string | null;
|
|
@@ -105,19 +126,23 @@ type InspectModel = {
|
|
|
105
126
|
deletedAtColumn: string | null;
|
|
106
127
|
};
|
|
107
128
|
/** One resource class reached from a route or a model. */
|
|
108
|
-
type InspectResource = {
|
|
109
|
-
name: string;
|
|
110
|
-
|
|
129
|
+
export type InspectResource = {
|
|
130
|
+
name: string;
|
|
131
|
+
/** Its output shape (JSON Schema; nested resources are `$ref`s into `components.schemas`). */
|
|
132
|
+
schema: JsonSchema;
|
|
133
|
+
/** Models whose `static resource` is this resource. */
|
|
111
134
|
models: string[];
|
|
112
135
|
};
|
|
113
136
|
/** One config key: its path and value type. Values are never printed. */
|
|
114
|
-
type InspectConfigKey = {
|
|
115
|
-
key: string;
|
|
116
|
-
|
|
137
|
+
export type InspectConfigKey = {
|
|
138
|
+
key: string;
|
|
139
|
+
/** `string`, `number`, `boolean`, `null`, `array`, `object`, `function`, `regexp`, `date`, or a class name. */
|
|
140
|
+
type: string;
|
|
141
|
+
/** The `src/config/*` file the top-level key comes from, when it exists. */
|
|
117
142
|
file: string | null;
|
|
118
143
|
};
|
|
119
144
|
/** One event and the listeners app modules registered for it. */
|
|
120
|
-
type InspectEvent = {
|
|
145
|
+
export type InspectEvent = {
|
|
121
146
|
event: string;
|
|
122
147
|
listeners: {
|
|
123
148
|
name: string;
|
|
@@ -125,17 +150,21 @@ type InspectEvent = {
|
|
|
125
150
|
}[];
|
|
126
151
|
};
|
|
127
152
|
/** One page installed by `@warlock.js/web`. */
|
|
128
|
-
type InspectPage = {
|
|
153
|
+
export type InspectPage = {
|
|
129
154
|
path: string;
|
|
130
155
|
name: string | null;
|
|
131
|
-
file: string;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
156
|
+
file: string;
|
|
157
|
+
/** Layout files from the outermost to the page's own directory. */
|
|
158
|
+
layouts: string[];
|
|
159
|
+
/** Files on the chain (layouts, then the page) that export a `loader`. */
|
|
160
|
+
loaders: string[];
|
|
161
|
+
/** Action names the page exports (`"default"` for `action`). */
|
|
162
|
+
actions: string[];
|
|
163
|
+
/** `"user"` when the page or a layout statically requires a user. */
|
|
135
164
|
guard: string | null;
|
|
136
165
|
};
|
|
137
166
|
/** One queue job defined with `defineJob()`. */
|
|
138
|
-
type InspectJob = {
|
|
167
|
+
export type InspectJob = {
|
|
139
168
|
name: string;
|
|
140
169
|
queue: string;
|
|
141
170
|
attempts: number | null;
|
|
@@ -147,35 +176,38 @@ type InspectJob = {
|
|
|
147
176
|
removeOnFail: boolean | number | null;
|
|
148
177
|
};
|
|
149
178
|
/** One scheduled task on the `@warlock.js/scheduler` scheduler. */
|
|
150
|
-
type InspectSchedule = {
|
|
179
|
+
export type InspectSchedule = {
|
|
151
180
|
name: string;
|
|
152
181
|
cron: string | null;
|
|
153
182
|
intervals: Record<string, unknown>;
|
|
154
183
|
nextRun: string | null;
|
|
155
184
|
};
|
|
156
185
|
/** One installed `@warlock.js/*` package. */
|
|
157
|
-
type InspectPackage = {
|
|
186
|
+
export type InspectPackage = {
|
|
158
187
|
name: string;
|
|
159
188
|
version: string;
|
|
160
189
|
};
|
|
161
190
|
/** Something inspect could not read, with its code when one applies. */
|
|
162
|
-
type InspectWarning = {
|
|
191
|
+
export type InspectWarning = {
|
|
163
192
|
code: WarlockErrorCode | null;
|
|
164
|
-
message: string;
|
|
193
|
+
message: string;
|
|
194
|
+
/** The section or file it concerns. */
|
|
165
195
|
source: string | null;
|
|
166
196
|
};
|
|
167
197
|
/** The whole report. Sections not requested are absent. */
|
|
168
|
-
type InspectReport = {
|
|
198
|
+
export type InspectReport = {
|
|
169
199
|
schemaVersion: typeof INSPECT_SCHEMA_VERSION;
|
|
170
200
|
generatedAt: string;
|
|
171
201
|
app: {
|
|
172
202
|
name: string | null;
|
|
173
|
-
version: string | null;
|
|
203
|
+
version: string | null;
|
|
204
|
+
/** Absolute project root. */
|
|
174
205
|
root: string;
|
|
175
206
|
node: string;
|
|
176
207
|
environment: string;
|
|
177
208
|
runtimeStrategy: string;
|
|
178
|
-
};
|
|
209
|
+
};
|
|
210
|
+
/** The sections this report contains. */
|
|
179
211
|
sections: InspectSection[];
|
|
180
212
|
routes?: InspectRoute[];
|
|
181
213
|
models?: InspectModel[];
|
|
@@ -185,12 +217,12 @@ type InspectReport = {
|
|
|
185
217
|
pages?: InspectPage[];
|
|
186
218
|
jobs?: InspectJob[];
|
|
187
219
|
schedules?: InspectSchedule[];
|
|
188
|
-
packages?: InspectPackage[];
|
|
220
|
+
packages?: InspectPackage[];
|
|
221
|
+
/** Shared schemas that `$ref`s point at (`#/components/schemas/<name>`). */
|
|
189
222
|
components: {
|
|
190
223
|
schemas: Record<string, JsonSchema>;
|
|
191
224
|
};
|
|
192
225
|
warnings: InspectWarning[];
|
|
193
226
|
};
|
|
194
227
|
//#endregion
|
|
195
|
-
export { INSPECT_SCHEMA_VERSION, INSPECT_SECTIONS, InspectConfigKey, InspectEvent, InspectJob, InspectModel, InspectModelColumn, InspectModelRelation, InspectPackage, InspectPage, InspectParameter, InspectReport, InspectResource, InspectRoute, InspectRouteAuth, InspectRouteLogging, InspectRouteRateLimit, InspectSchedule, InspectSection, InspectWarning, JsonSchema };
|
|
196
228
|
//# sourceMappingURL=inspect-report.types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-report.types.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/inspect/inspect-report.types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inspect-report.types.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/inspect/inspect-report.types.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAkBa;;qBAGA;;YAaD,yBAAyB;;YAGzB,aAAa;;YAGb;;EAEV;;EAEA;IAAuB;;;EAEvB;;;YAIU;;EAEV;;EAEA;;EAEA;;;YAIU;;EAEV;;EAEA;;EAEA;;;YAIU;EACV;EACA;EACA;EACA,QAAQ;;;YAIE;;EAEV;EACA;EACA;;EAEA;;EAEA;EACA;;EAEA;;EAEA;EACA,MAAM;;EAEN;EACA,WAAW;EACX,SAAS;EACT;IACE,YAAY;;IAEZ,MAAM;;IAEN;;;EAGF,WAAW;IAAiB;IAAqB,QAAQ;;;;YAI/C;EACV;EACA;EACA,QAAQ;;;YAIE;EACV;EACA;;EAEA;EACA;EACA;;;YAIU;EACV;EACA;EACA;;EAEA;EACA;;EAEA;EACA,SAAS;EACT,WAAW;;EAEX;EACA;EACA;EACA;EACA;;;YAIU;EACV;;EAEA,QAAQ;;EAER;;;YAIU;EACV;;EAEA;;EAEA;;;YAIU;EACV;EACA;IAAa;IAAc;;;;YAIjB;EACV;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;EACV;EACA;EACA;EACA;IAAoB;IAAc;;EAClC;EACA;;;YAIU;EACV;EACA;EACA,WAAW;EACX;;;YAIU;EACV;EACA;;;YAIU;EACV,MAAM;EACN;;EAEA;;;YAIU;EACV,sBAAsB;EACtB;EACA;IACE;IACA;;IAEA;IACA;IACA;IACA;;;EAGF,UAAU;EACV,SAAS;EACT,SAAS;EACT,YAAY;EACZ,SAAS;EACT,SAAS;EACT,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,WAAW;;EAEX;IAAc,SAAS,eAAe;;EACtC,UAAU"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { InspectReport, InspectSection } from "../inspect/inspect-report.types.mjs";
|
|
2
2
|
import { ConnectDevtoolsOptions } from "../devtools/devtools-client.mjs";
|
|
3
3
|
import { WarlockMcpContext } from "./mcp-tools.mjs";
|
|
4
|
-
|
|
5
4
|
//#region ../../packages/core/src/tooling/mcp/create-mcp-context.d.ts
|
|
6
5
|
/** Options of {@link createMcpContext}. */
|
|
7
|
-
type CreateMcpContextOptions = {
|
|
8
|
-
/** Project root. Default: `process.cwd()`. */
|
|
9
|
-
|
|
6
|
+
export type CreateMcpContextOptions = {
|
|
7
|
+
/** Project root. Default: `process.cwd()`. */
|
|
8
|
+
cwd?: string;
|
|
9
|
+
/** Let generate tools write into the project. Default `false`. */
|
|
10
|
+
allowWrites?: boolean;
|
|
11
|
+
/** How the app is described: a booted snapshot (`warlock mcp`) or the live process (`warlock dev --mcp`). */
|
|
10
12
|
inspect: (sections: readonly InspectSection[]) => Promise<InspectReport>;
|
|
11
13
|
/**
|
|
12
14
|
* The `warlock` CLI script. Runs the typecheck in a child process (so a heap
|
|
13
15
|
* overflow cannot end the server) and the generators. Default: core's bin.
|
|
14
16
|
*/
|
|
15
|
-
cliEntry?: string;
|
|
16
|
-
|
|
17
|
+
cliEntry?: string;
|
|
18
|
+
/** Where the dev server is, for `requests_recent`. Default: `.warlock/dev-server.json`. */
|
|
19
|
+
devtools?: Omit<ConnectDevtoolsOptions, "cwd">;
|
|
20
|
+
/** The `warlock add` feature names to advertise. */
|
|
17
21
|
features?: readonly string[];
|
|
18
22
|
};
|
|
19
23
|
/**
|
|
20
24
|
* The real {@link WarlockMcpContext}: `warlock check`, `runTests`, the devtools
|
|
21
25
|
* client, the sandboxed generators and the installed-docs corpus (loaded once).
|
|
22
26
|
*/
|
|
23
|
-
declare function createMcpContext(options: CreateMcpContextOptions): WarlockMcpContext;
|
|
27
|
+
export declare function createMcpContext(options: CreateMcpContextOptions): WarlockMcpContext;
|
|
24
28
|
//#endregion
|
|
25
|
-
export { CreateMcpContextOptions, createMcpContext };
|
|
26
29
|
//# sourceMappingURL=create-mcp-context.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mcp-context.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/create-mcp-context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-mcp-context.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/create-mcp-context.ts"],"mappings":";;;;;YAYY;;EAEV;;EAEA;;EAEA,UAAU,mBAAmB,qBAAqB,QAAQ;;;;;EAK1D;;EAEA,WAAW,KAAK;;EAEhB;;;;;;wBAgBc,iBAAiB,SAAS,0BAA0B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { InspectModel, JsonSchema } from "../inspect/inspect-report.types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../packages/core/src/tooling/mcp/db-schema.d.ts
|
|
4
3
|
/** One column of a {@link DbSchemaTable}. */
|
|
5
|
-
type DbSchemaColumn = {
|
|
6
|
-
name: string;
|
|
4
|
+
export type DbSchemaColumn = {
|
|
5
|
+
name: string;
|
|
6
|
+
/** The JSON Schema `type` (`string`, `integer`, …), `format` appended when set (`string:date-time`). */
|
|
7
7
|
type: string;
|
|
8
8
|
required: boolean;
|
|
9
|
-
primaryKey: boolean;
|
|
9
|
+
primaryKey: boolean;
|
|
10
|
+
/** Set when a `belongsTo` relation uses this column. */
|
|
10
11
|
references: {
|
|
11
12
|
model: string | null;
|
|
12
13
|
column: string | null;
|
|
@@ -14,7 +15,7 @@ type DbSchemaColumn = {
|
|
|
14
15
|
schema: JsonSchema;
|
|
15
16
|
};
|
|
16
17
|
/** One table, as the app's models declare it. */
|
|
17
|
-
type DbSchemaTable = {
|
|
18
|
+
export type DbSchemaTable = {
|
|
18
19
|
table: string | null;
|
|
19
20
|
model: string;
|
|
20
21
|
dataSource: string | null;
|
|
@@ -30,8 +31,9 @@ type DbSchemaTable = {
|
|
|
30
31
|
deleteStrategy: string | null;
|
|
31
32
|
};
|
|
32
33
|
/** What the `db_schema` tool returns. */
|
|
33
|
-
type DbSchema = {
|
|
34
|
-
/** Where the facts come from: the models' Seal schemas, not the live database. */
|
|
34
|
+
export type DbSchema = {
|
|
35
|
+
/** Where the facts come from: the models' Seal schemas, not the live database. */
|
|
36
|
+
source: "models";
|
|
35
37
|
tables: DbSchemaTable[];
|
|
36
38
|
};
|
|
37
39
|
/**
|
|
@@ -43,7 +45,6 @@ type DbSchema = {
|
|
|
43
45
|
* what code is written against. It does not open a database connection, so
|
|
44
46
|
* columns that exist only in a migration are not listed.
|
|
45
47
|
*/
|
|
46
|
-
declare function buildDbSchema(models: readonly InspectModel[], filter?: string): DbSchema;
|
|
48
|
+
export declare function buildDbSchema(models: readonly InspectModel[], filter?: string): DbSchema;
|
|
47
49
|
//#endregion
|
|
48
|
-
export { DbSchema, DbSchemaColumn, DbSchemaTable, buildDbSchema };
|
|
49
50
|
//# sourceMappingURL=db-schema.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-schema.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/db-schema.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"db-schema.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/db-schema.ts"],"mappings":";;;YAGY;EACV;;EAEA;EACA;EACA;;EAEA;IAAc;IAAsB;;EACpC,QAAQ;;;YAIE;EACV;EACA;EACA;EACA;EACA;EACA,SAAS;EACT,WAAW;EACX;IAAc;IAA0B;IAA0B;;EAClE;;;YAIU;;EAEV;EACA,QAAQ;;;;;;;;;;;wBAwBM,cAAc,iBAAiB,gBAAgB,kBAAkB"}
|
|
@@ -6,41 +6,47 @@
|
|
|
6
6
|
* versions in `node_modules`, not whatever the website documents today.
|
|
7
7
|
*/
|
|
8
8
|
/** The globs, relative to the project root, that make up the corpus. */
|
|
9
|
-
declare const DOCS_CORPUS_GLOBS: readonly ["node_modules/@warlock.js/*/skills/**/*.md", "node_modules/@warlock.js/*/README.md", "node_modules/@warlock.js/*/llms.txt", "node_modules/@warlock.js/*/llms-full.txt"];
|
|
9
|
+
export declare const DOCS_CORPUS_GLOBS: readonly ["node_modules/@warlock.js/*/skills/**/*.md", "node_modules/@warlock.js/*/README.md", "node_modules/@warlock.js/*/llms.txt", "node_modules/@warlock.js/*/llms-full.txt"];
|
|
10
10
|
/** One searchable section: a file split at its markdown headings. */
|
|
11
|
-
type DocsSection = {
|
|
12
|
-
/** `@warlock.js/<name>`. */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
export type DocsSection = {
|
|
12
|
+
/** `@warlock.js/<name>`. */
|
|
13
|
+
package: string;
|
|
14
|
+
/** Project-relative POSIX path of the file. */
|
|
15
|
+
file: string;
|
|
16
|
+
/** `skill`, `readme` or `llms`. */
|
|
17
|
+
source: "skill" | "readme" | "llms";
|
|
18
|
+
/** The section heading, or the file name for text before the first heading. */
|
|
19
|
+
heading: string;
|
|
20
|
+
/** 1-based line where the section starts. */
|
|
16
21
|
line: number;
|
|
17
22
|
text: string;
|
|
18
23
|
};
|
|
19
24
|
/** One search hit. */
|
|
20
|
-
type DocsSearchHit = {
|
|
25
|
+
export type DocsSearchHit = {
|
|
21
26
|
package: string;
|
|
22
27
|
file: string;
|
|
23
28
|
source: DocsSection["source"];
|
|
24
29
|
heading: string;
|
|
25
30
|
line: number;
|
|
26
|
-
score: number;
|
|
31
|
+
score: number;
|
|
32
|
+
/** The section's lines around the first match, bounded. */
|
|
27
33
|
excerpt: string;
|
|
28
34
|
};
|
|
29
35
|
/** The loaded corpus. */
|
|
30
|
-
type DocsCorpus = {
|
|
36
|
+
export type DocsCorpus = {
|
|
31
37
|
files: string[];
|
|
32
38
|
sections: DocsSection[];
|
|
33
39
|
};
|
|
34
40
|
/** Split markdown text into heading-delimited sections. */
|
|
35
|
-
declare function splitSections(text: string, meta: {
|
|
41
|
+
export declare function splitSections(text: string, meta: {
|
|
36
42
|
package: string;
|
|
37
43
|
file: string;
|
|
38
44
|
source: DocsSection["source"];
|
|
39
45
|
}): DocsSection[];
|
|
40
46
|
/** Load the corpus of the app at `cwd`. Unreadable files are skipped. */
|
|
41
|
-
declare function loadDocsCorpus(cwd: string): Promise<DocsCorpus>;
|
|
47
|
+
export declare function loadDocsCorpus(cwd: string): Promise<DocsCorpus>;
|
|
42
48
|
/** Lower-cased search terms of two or more characters. */
|
|
43
|
-
declare function searchTerms(query: string): string[];
|
|
49
|
+
export declare function searchTerms(query: string): string[];
|
|
44
50
|
/**
|
|
45
51
|
* Rank sections for a query: every term found in the heading counts 5, in the
|
|
46
52
|
* body 1 per occurrence (capped), and each distinct term found adds 10, so a
|
|
@@ -48,7 +54,7 @@ declare function searchTerms(query: string): string[];
|
|
|
48
54
|
* above READMEs above llms files on equal scores; the generated `llms-full.txt`
|
|
49
55
|
* repeats the skills, so it is weighted down.
|
|
50
56
|
*/
|
|
51
|
-
declare function searchDocs(corpus: DocsCorpus, query: string, options?: {
|
|
57
|
+
export declare function searchDocs(corpus: DocsCorpus, query: string, options?: {
|
|
52
58
|
limit?: number;
|
|
53
59
|
package?: string;
|
|
54
60
|
}): DocsSearchHit[];
|
|
@@ -58,7 +64,7 @@ declare function searchDocs(corpus: DocsCorpus, query: string, options?: {
|
|
|
58
64
|
*
|
|
59
65
|
* @returns `undefined` when `file` is not in the corpus.
|
|
60
66
|
*/
|
|
61
|
-
declare function readDocsFile(corpus: DocsCorpus, cwd: string, file: string, options?: {
|
|
67
|
+
export declare function readDocsFile(corpus: DocsCorpus, cwd: string, file: string, options?: {
|
|
62
68
|
heading?: string;
|
|
63
69
|
maxBytes?: number;
|
|
64
70
|
}): {
|
|
@@ -68,5 +74,4 @@ declare function readDocsFile(corpus: DocsCorpus, cwd: string, file: string, opt
|
|
|
68
74
|
truncated: boolean;
|
|
69
75
|
} | undefined;
|
|
70
76
|
//#endregion
|
|
71
|
-
export { DOCS_CORPUS_GLOBS, DocsCorpus, DocsSearchHit, DocsSection, loadDocsCorpus, readDocsFile, searchDocs, searchTerms, splitSections };
|
|
72
77
|
//# sourceMappingURL=docs-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-search.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/docs-search.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"docs-search.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/docs-search.ts"],"mappings":";;;;;;;;qBAYa;;YAQD;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;EACA;;;YAIU;EACV;EACA;EACA,QAAQ;EACR;EACA;EACA;;EAEA;;;YAIU;EACV;EACA,UAAU;;;wBAmBI,cACd,cACA;EAAQ;EAAiB;EAAc,QAAQ;IAC9C;;wBAoCmB,eAAe,cAAc,QAAQ;;wBAwB3C,YAAY;;;;;;;;wBA2CZ,WACd,QAAQ,YACR,eACA;EAAW;EAAgB;IAC1B;;;;;;;wBA4Da,aACd,QAAQ,YACR,aACA,cACA;EAAW;EAAkB;;EAC1B;EAAc;EAAwB;EAAc"}
|
|
@@ -6,4 +6,4 @@ import { inputSchema, toStandardSchema, validateToolInput } from "./tool-input.m
|
|
|
6
6
|
import { MCP_MAKE_GENERATORS, createWarlockMcpTools, describeToolError, makeSpecFromInput } from "./mcp-tools.mjs";
|
|
7
7
|
import { isLoopbackHost, resolveMcpTransport, startWarlockMcpServer, toServeContract } from "./start-mcp-server.mjs";
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { DOCS_CORPUS_GLOBS, MCP_INSTALL_HINT, MCP_MAKE_GENERATORS, buildDbSchema, createMcpContext, createWarlockMcpTools, describeToolError, inputSchema, isAiToolsServeModule, isLoopbackHost, loadAiToolsServe, loadDocsCorpus, makeSpecFromInput, readDocsFile, resolveMcpTransport, searchDocs, searchTerms, splitSections, startWarlockMcpServer, toServeContract, toStandardSchema, validateToolInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region ../../packages/core/src/tooling/mcp/load-ai-tools.d.ts
|
|
2
2
|
/** The install line printed when the MCP transport packages are missing. */
|
|
3
|
-
declare const MCP_INSTALL_HINT = "npm install -D @warlock.js/ai-tools @warlock.js/ai";
|
|
3
|
+
export declare const MCP_INSTALL_HINT = "npm install -D @warlock.js/ai-tools @warlock.js/ai";
|
|
4
4
|
/** The tool shape `ai.mcp.serve` consumes, built structurally (see `@warlock.js/ai`'s `ToolContract`). */
|
|
5
|
-
type ServeToolContract = {
|
|
5
|
+
export type ServeToolContract = {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
8
|
input: unknown;
|
|
@@ -19,7 +19,7 @@ type ServeToolContract = {
|
|
|
19
19
|
}>;
|
|
20
20
|
};
|
|
21
21
|
/** The transport options of `ai.mcp.serve` this command uses. */
|
|
22
|
-
type ServeTransportOptions = {
|
|
22
|
+
export type ServeTransportOptions = {
|
|
23
23
|
type: "stdio";
|
|
24
24
|
} | {
|
|
25
25
|
type: "http";
|
|
@@ -31,12 +31,12 @@ type ServeTransportOptions = {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
/** The handle `start()` resolves. */
|
|
34
|
-
type ServeHandle = {
|
|
34
|
+
export type ServeHandle = {
|
|
35
35
|
url?: string;
|
|
36
36
|
close(): Promise<void>;
|
|
37
37
|
};
|
|
38
38
|
/** The slice of `@warlock.js/ai-tools` this command calls. */
|
|
39
|
-
type AiToolsServeModule = {
|
|
39
|
+
export type AiToolsServeModule = {
|
|
40
40
|
serve(tools: ServeToolContract[], options: {
|
|
41
41
|
name: string;
|
|
42
42
|
version?: string;
|
|
@@ -47,7 +47,7 @@ type AiToolsServeModule = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
/** Whether a loaded module exposes `serve()`. */
|
|
50
|
-
declare function isAiToolsServeModule(value: unknown): value is AiToolsServeModule;
|
|
50
|
+
export declare function isAiToolsServeModule(value: unknown): value is AiToolsServeModule;
|
|
51
51
|
/**
|
|
52
52
|
* Import `@warlock.js/ai-tools` lazily — it is an optional peer, so a project
|
|
53
53
|
* that never runs `warlock mcp` does not need it. Tries core's own resolution
|
|
@@ -56,7 +56,6 @@ declare function isAiToolsServeModule(value: unknown): value is AiToolsServeModu
|
|
|
56
56
|
* Throws `WL7003` with the install line when it (or `@warlock.js/ai`, which
|
|
57
57
|
* it imports) is missing.
|
|
58
58
|
*/
|
|
59
|
-
declare function loadAiToolsServe(cwd: string, importer?: (specifier: string) => Promise<unknown>): Promise<AiToolsServeModule>;
|
|
59
|
+
export declare function loadAiToolsServe(cwd: string, importer?: (specifier: string) => Promise<unknown>): Promise<AiToolsServeModule>;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { AiToolsServeModule, MCP_INSTALL_HINT, ServeToolContract, ServeTransportOptions, isAiToolsServeModule, loadAiToolsServe };
|
|
62
61
|
//# sourceMappingURL=load-ai-tools.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ai-tools.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/load-ai-tools.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"load-ai-tools.d.mts","names":[],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/load-ai-tools.ts"],"mappings":";;qBAMa;;YAGD;EACV;EACA;EACA;EACA,QAAQ,OAAO,0BAA0B;EACzC,OACE,cACA,oBACC;IACD;IACA,QAAQ;IACR;MAAS;MAAe;MAAgB;;IACxC,QAAQ;;;;YAKA;EACN;;EAEA;EACA;EACA;EACA;EACA;IAAS;;;;YAIH;EAAgB;EAAc,SAAS;;;YAGvC;EACV,MACE,OAAO,qBACP;IAAW;IAAc;IAAkB,WAAW;;IACnD,SAAS,QAAQ;IAAc,QAAQ;;;;wBAI9B,qBAAqB,iBAAiB,SAAS;;;;;;;;;wBA4BzC,iBACpB,aACA,YAAW,sBAAsB,mBAChC,QAAQ"}
|
|
@@ -36,7 +36,8 @@ async function loadAiToolsServe(cwd, importer = (specifier) => import(specifier)
|
|
|
36
36
|
lastError = error;
|
|
37
37
|
if (!isMissingModule(error, PACKAGES) && !(error instanceof Error && /Cannot find package/.test(error.message))) break;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
const reason = lastError instanceof Error ? lastError.message : String(lastError);
|
|
40
|
+
throw new WarlockError("WL7003", `warlock mcp needs @warlock.js/ai-tools (and @warlock.js/ai), which could not be loaded: ${reason}. Install them: ${MCP_INSTALL_HINT}`, { cause: lastError });
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-ai-tools.mjs","names":["resolveModule"],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/load-ai-tools.ts"],"sourcesContent":["import path from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\nimport { resolve as resolveModule } from \"import-meta-resolve\";\nimport { WarlockError } from \"../../errors/warlock-error\";\n\n/** The install line printed when the MCP transport packages are missing. */\nexport const MCP_INSTALL_HINT = \"npm install -D @warlock.js/ai-tools @warlock.js/ai\";\n\n/** The tool shape `ai.mcp.serve` consumes, built structurally (see `@warlock.js/ai`'s `ToolContract`). */\nexport type ServeToolContract = {\n name: string;\n description: string;\n input: unknown;\n execute(input: Record<string, unknown>): Promise<unknown>;\n invoke(\n raw: unknown,\n context?: unknown,\n ): Promise<{\n data?: unknown;\n error?: Error;\n usage: { input: number; output: number; total: number };\n report: Record<string, unknown>;\n }>;\n};\n\n/** The transport options of `ai.mcp.serve` this command uses. */\nexport type ServeTransportOptions =\n | { type: \"stdio\" }\n | {\n type: \"http\";\n host: string;\n port: number;\n path: string;\n auth?: { bearer: string };\n };\n\n/** The handle `start()` resolves. */\nexport type ServeHandle = { url?: string; close(): Promise<void> };\n\n/** The slice of `@warlock.js/ai-tools` this command calls. */\nexport type AiToolsServeModule = {\n serve(\n tools: ServeToolContract[],\n options: { name: string; version?: string; transport: ServeTransportOptions },\n ): { start(): Promise<ServeHandle>; stop(): Promise<void> };\n};\n\n/** Whether a loaded module exposes `serve()`. */\nexport function isAiToolsServeModule(value: unknown): value is AiToolsServeModule {\n return (\n typeof value === \"object\" && value !== null && typeof Reflect.get(value, \"serve\") === \"function\"\n );\n}\n\nfunction isMissingModule(error: unknown, names: readonly string[]): boolean {\n if (typeof error !== \"object\" || error === null) return false;\n\n const code = Reflect.get(error, \"code\");\n const message = error instanceof Error ? error.message : \"\";\n\n return (\n (code === \"ERR_MODULE_NOT_FOUND\" || code === \"MODULE_NOT_FOUND\") &&\n names.some((name) => message.includes(`'${name}'`) || message.includes(`\"${name}\"`))\n );\n}\n\nconst PACKAGES = [\"@warlock.js/ai-tools\", \"@warlock.js/ai\"] as const;\n\n/**\n * Import `@warlock.js/ai-tools` lazily — it is an optional peer, so a project\n * that never runs `warlock mcp` does not need it. Tries core's own resolution\n * first (pnpm links installed peers next to core), then the app's.\n *\n * Throws `WL7003` with the install line when it (or `@warlock.js/ai`, which\n * it imports) is missing.\n */\nexport async function loadAiToolsServe(\n cwd: string,\n importer: (specifier: string) => Promise<unknown> = (specifier) => import(specifier),\n): Promise<AiToolsServeModule> {\n const attempts: (() => Promise<unknown>)[] = [\n () => importer(\"@warlock.js/ai-tools\"),\n () =>\n importer(\n resolveModule(\"@warlock.js/ai-tools\", pathToFileURL(path.join(cwd, \"package.json\")).href),\n ),\n ];\n let lastError: unknown;\n\n for (const attempt of attempts) {\n try {\n const module = await attempt();\n\n if (isAiToolsServeModule(module)) return module;\n\n lastError = new Error(\"@warlock.js/ai-tools does not export serve()\");\n } catch (error) {\n lastError = error;\n\n if (\n !isMissingModule(error, PACKAGES) &&\n !(error instanceof Error && /Cannot find package/.test(error.message))\n ) {\n break;\n }\n }\n }\n\n const reason = lastError instanceof Error ? lastError.message : String(lastError);\n\n throw new WarlockError(\n \"WL7003\",\n `warlock mcp needs @warlock.js/ai-tools (and @warlock.js/ai), which could not be loaded: ${reason}. Install them: ${MCP_INSTALL_HINT}`,\n { cause: lastError },\n );\n}\n"],"mappings":";;;;;;;AAMA,MAAa,mBAAmB;;AA0ChC,SAAgB,qBAAqB,OAA6C;CAChF,OACE,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,QAAQ,IAAI,OAAO,OAAO,MAAM;AAE1F;AAEA,SAAS,gBAAgB,OAAgB,OAAmC;CAC1E,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CAExD,MAAM,OAAO,QAAQ,IAAI,OAAO,MAAM;CACtC,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU;CAEzD,QACG,SAAS,0BAA0B,SAAS,uBAC7C,MAAM,MAAM,SAAS,QAAQ,SAAS,IAAI,KAAK,EAAE,KAAK,QAAQ,SAAS,IAAI,KAAK,EAAE,CAAC;AAEvF;AAEA,MAAM,WAAW,CAAC,wBAAwB,gBAAgB;;;;;;;;;AAU1D,eAAsB,iBACpB,KACA,YAAqD,cAAc,OAAO,YAC7C;CAC7B,MAAM,WAAuC,OACrC,SAAS,sBAAsB,SAEnC,SACEA,UAAc,wBAAwB,cAAc,KAAK,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,IAAI,CAC1F,CACJ;CACA,IAAI;CAEJ,KAAK,MAAM,WAAW,UACpB,IAAI;EACF,MAAM,SAAS,MAAM,QAAQ;EAE7B,IAAI,qBAAqB,MAAM,GAAG,OAAO;EAEzC,4BAAY,IAAI,MAAM,8CAA8C;CACtE,SAAS,OAAO;EACd,YAAY;EAEZ,IACE,CAAC,gBAAgB,OAAO,QAAQ,KAChC,EAAE,iBAAiB,SAAS,sBAAsB,KAAK,MAAM,OAAO,IAEpE;CAEJ;
|
|
1
|
+
{"version":3,"file":"load-ai-tools.mjs","names":["resolveModule"],"sources":["../../../../../../../../../packages/core/src/tooling/mcp/load-ai-tools.ts"],"sourcesContent":["import path from \"node:path\";\nimport { pathToFileURL } from \"node:url\";\nimport { resolve as resolveModule } from \"import-meta-resolve\";\nimport { WarlockError } from \"../../errors/warlock-error\";\n\n/** The install line printed when the MCP transport packages are missing. */\nexport const MCP_INSTALL_HINT = \"npm install -D @warlock.js/ai-tools @warlock.js/ai\";\n\n/** The tool shape `ai.mcp.serve` consumes, built structurally (see `@warlock.js/ai`'s `ToolContract`). */\nexport type ServeToolContract = {\n name: string;\n description: string;\n input: unknown;\n execute(input: Record<string, unknown>): Promise<unknown>;\n invoke(\n raw: unknown,\n context?: unknown,\n ): Promise<{\n data?: unknown;\n error?: Error;\n usage: { input: number; output: number; total: number };\n report: Record<string, unknown>;\n }>;\n};\n\n/** The transport options of `ai.mcp.serve` this command uses. */\nexport type ServeTransportOptions =\n | { type: \"stdio\" }\n | {\n type: \"http\";\n host: string;\n port: number;\n path: string;\n auth?: { bearer: string };\n };\n\n/** The handle `start()` resolves. */\nexport type ServeHandle = { url?: string; close(): Promise<void> };\n\n/** The slice of `@warlock.js/ai-tools` this command calls. */\nexport type AiToolsServeModule = {\n serve(\n tools: ServeToolContract[],\n options: { name: string; version?: string; transport: ServeTransportOptions },\n ): { start(): Promise<ServeHandle>; stop(): Promise<void> };\n};\n\n/** Whether a loaded module exposes `serve()`. */\nexport function isAiToolsServeModule(value: unknown): value is AiToolsServeModule {\n return (\n typeof value === \"object\" && value !== null && typeof Reflect.get(value, \"serve\") === \"function\"\n );\n}\n\nfunction isMissingModule(error: unknown, names: readonly string[]): boolean {\n if (typeof error !== \"object\" || error === null) return false;\n\n const code = Reflect.get(error, \"code\");\n const message = error instanceof Error ? error.message : \"\";\n\n return (\n (code === \"ERR_MODULE_NOT_FOUND\" || code === \"MODULE_NOT_FOUND\") &&\n names.some((name) => message.includes(`'${name}'`) || message.includes(`\"${name}\"`))\n );\n}\n\nconst PACKAGES = [\"@warlock.js/ai-tools\", \"@warlock.js/ai\"] as const;\n\n/**\n * Import `@warlock.js/ai-tools` lazily — it is an optional peer, so a project\n * that never runs `warlock mcp` does not need it. Tries core's own resolution\n * first (pnpm links installed peers next to core), then the app's.\n *\n * Throws `WL7003` with the install line when it (or `@warlock.js/ai`, which\n * it imports) is missing.\n */\nexport async function loadAiToolsServe(\n cwd: string,\n importer: (specifier: string) => Promise<unknown> = (specifier) => import(specifier),\n): Promise<AiToolsServeModule> {\n const attempts: (() => Promise<unknown>)[] = [\n () => importer(\"@warlock.js/ai-tools\"),\n () =>\n importer(\n resolveModule(\"@warlock.js/ai-tools\", pathToFileURL(path.join(cwd, \"package.json\")).href),\n ),\n ];\n let lastError: unknown;\n\n for (const attempt of attempts) {\n try {\n const module = await attempt();\n\n if (isAiToolsServeModule(module)) return module;\n\n lastError = new Error(\"@warlock.js/ai-tools does not export serve()\");\n } catch (error) {\n lastError = error;\n\n if (\n !isMissingModule(error, PACKAGES) &&\n !(error instanceof Error && /Cannot find package/.test(error.message))\n ) {\n break;\n }\n }\n }\n\n const reason = lastError instanceof Error ? lastError.message : String(lastError);\n\n throw new WarlockError(\n \"WL7003\",\n `warlock mcp needs @warlock.js/ai-tools (and @warlock.js/ai), which could not be loaded: ${reason}. Install them: ${MCP_INSTALL_HINT}`,\n { cause: lastError },\n );\n}\n"],"mappings":";;;;;;;AAMA,MAAa,mBAAmB;;AA0ChC,SAAgB,qBAAqB,OAA6C;CAChF,OACE,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,QAAQ,IAAI,OAAO,OAAO,MAAM;AAE1F;AAEA,SAAS,gBAAgB,OAAgB,OAAmC;CAC1E,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CAExD,MAAM,OAAO,QAAQ,IAAI,OAAO,MAAM;CACtC,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU;CAEzD,QACG,SAAS,0BAA0B,SAAS,uBAC7C,MAAM,MAAM,SAAS,QAAQ,SAAS,IAAI,KAAK,EAAE,KAAK,QAAQ,SAAS,IAAI,KAAK,EAAE,CAAC;AAEvF;AAEA,MAAM,WAAW,CAAC,wBAAwB,gBAAgB;;;;;;;;;AAU1D,eAAsB,iBACpB,KACA,YAAqD,cAAc,OAAO,YAC7C;CAC7B,MAAM,WAAuC,OACrC,SAAS,sBAAsB,SAEnC,SACEA,UAAc,wBAAwB,cAAc,KAAK,KAAK,KAAK,cAAc,CAAC,CAAC,CAAC,IAAI,CAC1F,CACJ;CACA,IAAI;CAEJ,KAAK,MAAM,WAAW,UACpB,IAAI;EACF,MAAM,SAAS,MAAM,QAAQ;EAE7B,IAAI,qBAAqB,MAAM,GAAG,OAAO;EAEzC,4BAAY,IAAI,MAAM,8CAA8C;CACtE,SAAS,OAAO;EACd,YAAY;EAEZ,IACE,CAAC,gBAAgB,OAAO,QAAQ,KAChC,EAAE,iBAAiB,SAAS,sBAAsB,KAAK,MAAM,OAAO,IAEpE;CAEJ;CAGF,MAAM,SAAS,qBAAqB,QAAQ,UAAU,UAAU,OAAO,SAAS;CAEhF,MAAM,IAAI,aACR,UACA,2FAA2F,OAAO,kBAAkB,oBACpH,EAAE,OAAO,UAAU,CACrB;AACF"}
|