@warlock.js/core 4.0.161 → 4.0.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/application/application-config-types.d.ts +27 -0
- package/esm/application/application-config-types.d.ts.map +1 -0
- package/esm/application/application.d.ts +68 -0
- package/esm/application/application.d.ts.map +1 -0
- package/esm/application/application.js +94 -0
- package/esm/application/application.js.map +1 -0
- package/esm/application/index.d.ts +3 -0
- package/esm/application/index.d.ts.map +1 -0
- package/esm/benchmark/benchmark-snapshots.d.ts +47 -0
- package/esm/benchmark/benchmark-snapshots.d.ts.map +1 -0
- package/esm/benchmark/benchmark-snapshots.js +77 -0
- package/esm/benchmark/benchmark-snapshots.js.map +1 -0
- package/esm/benchmark/benchmark.d.ts +25 -0
- package/esm/benchmark/benchmark.d.ts.map +1 -0
- package/esm/benchmark/benchmark.example.d.ts +2 -0
- package/esm/benchmark/benchmark.example.d.ts.map +1 -0
- package/esm/benchmark/benchmark.js +120 -0
- package/esm/benchmark/benchmark.js.map +1 -0
- package/esm/benchmark/channels/console.channel.d.ts +14 -0
- package/esm/benchmark/channels/console.channel.d.ts.map +1 -0
- package/esm/benchmark/channels/console.channel.js +29 -0
- package/esm/benchmark/channels/console.channel.js.map +1 -0
- package/esm/benchmark/channels/index.d.ts +3 -0
- package/esm/benchmark/channels/index.d.ts.map +1 -0
- package/esm/benchmark/channels/noop.channel.d.ts +5 -0
- package/esm/benchmark/channels/noop.channel.d.ts.map +1 -0
- package/esm/benchmark/channels/noop.channel.js +3 -0
- package/esm/benchmark/channels/noop.channel.js.map +1 -0
- package/esm/benchmark/index.d.ts +7 -0
- package/esm/benchmark/index.d.ts.map +1 -0
- package/esm/benchmark/profiler.d.ts +63 -0
- package/esm/benchmark/profiler.d.ts.map +1 -0
- package/esm/benchmark/profiler.js +155 -0
- package/esm/benchmark/profiler.js.map +1 -0
- package/esm/benchmark/types.d.ts +167 -0
- package/esm/benchmark/types.d.ts.map +1 -0
- package/esm/bootstrap/setup.d.ts +2 -0
- package/esm/bootstrap/setup.d.ts.map +1 -0
- package/esm/bootstrap/setup.js +14 -0
- package/esm/bootstrap/setup.js.map +1 -0
- package/esm/bootstrap.d.ts +2 -0
- package/esm/bootstrap.d.ts.map +1 -0
- package/esm/bootstrap.js +5 -0
- package/esm/bootstrap.js.map +1 -0
- package/esm/cache/database-cache-driver.d.ts +56 -0
- package/esm/cache/database-cache-driver.d.ts.map +1 -0
- package/esm/cache/database-cache-driver.js +112 -0
- package/esm/cache/database-cache-driver.js.map +1 -0
- package/esm/cache/index.d.ts +3 -0
- package/esm/cache/index.d.ts.map +1 -0
- package/esm/cache/index.js +1 -0
- package/esm/cache/index.js.map +1 -0
- package/esm/cli/cli-command.d.ts +115 -0
- package/esm/cli/cli-command.d.ts.map +1 -0
- package/esm/cli/cli-command.js +227 -0
- package/esm/cli/cli-command.js.map +1 -0
- package/esm/cli/cli-commands.manager.d.ts +71 -0
- package/esm/cli/cli-commands.manager.d.ts.map +1 -0
- package/esm/cli/cli-commands.manager.js +362 -0
- package/esm/cli/cli-commands.manager.js.map +1 -0
- package/esm/cli/cli-commands.utils.d.ts +69 -0
- package/esm/cli/cli-commands.utils.d.ts.map +1 -0
- package/esm/cli/cli-commands.utils.js +180 -0
- package/esm/cli/cli-commands.utils.js.map +1 -0
- package/esm/cli/commands/add.command.d.ts +2 -0
- package/esm/cli/commands/add.command.d.ts.map +1 -0
- package/esm/cli/commands/add.command.js +15 -0
- package/esm/cli/commands/add.command.js.map +1 -0
- package/esm/cli/commands/build.command.d.ts +2 -0
- package/esm/cli/commands/build.command.d.ts.map +1 -0
- package/esm/cli/commands/build.command.js +8 -0
- package/esm/cli/commands/build.command.js.map +1 -0
- package/esm/cli/commands/create-database.command.d.ts +2 -0
- package/esm/cli/commands/create-database.command.d.ts.map +1 -0
- package/esm/cli/commands/create-database.command.js +18 -0
- package/esm/cli/commands/create-database.command.js.map +1 -0
- package/esm/cli/commands/dev-server.command.d.ts +2 -0
- package/esm/cli/commands/dev-server.command.d.ts.map +1 -0
- package/esm/cli/commands/dev-server.command.js +18 -0
- package/esm/cli/commands/dev-server.command.js.map +1 -0
- package/esm/cli/commands/drop-tables.command.d.ts +2 -0
- package/esm/cli/commands/drop-tables.command.d.ts.map +1 -0
- package/esm/cli/commands/drop-tables.command.js +17 -0
- package/esm/cli/commands/drop-tables.command.js.map +1 -0
- package/esm/cli/commands/generate/generate.command.d.ts +10 -0
- package/esm/cli/commands/generate/generate.command.d.ts.map +1 -0
- package/esm/cli/commands/generate/generate.command.js +188 -0
- package/esm/cli/commands/generate/generate.command.js.map +1 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts +11 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.js +47 -0
- package/esm/cli/commands/generate/generators/column-dsl-parser.js.map +1 -0
- package/esm/cli/commands/generate/generators/controller.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/controller.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/controller.generator.js +51 -0
- package/esm/cli/commands/generate/generators/controller.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/migration.generator.d.ts +13 -0
- package/esm/cli/commands/generate/generators/migration.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/migration.generator.js +82 -0
- package/esm/cli/commands/generate/generators/migration.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/model.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/model.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/model.generator.js +58 -0
- package/esm/cli/commands/generate/generators/model.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/module.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/module.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/module.generator.js +149 -0
- package/esm/cli/commands/generate/generators/module.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/repository.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/repository.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/repository.generator.js +37 -0
- package/esm/cli/commands/generate/generators/repository.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/resource.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/resource.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/resource.generator.js +37 -0
- package/esm/cli/commands/generate/generators/resource.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/service.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/service.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/service.generator.js +37 -0
- package/esm/cli/commands/generate/generators/service.generator.js.map +1 -0
- package/esm/cli/commands/generate/generators/validation.generator.d.ts +3 -0
- package/esm/cli/commands/generate/generators/validation.generator.d.ts.map +1 -0
- package/esm/cli/commands/generate/generators/validation.generator.js +46 -0
- package/esm/cli/commands/generate/generators/validation.generator.js.map +1 -0
- package/esm/cli/commands/generate/templates/stubs.d.ts +129 -0
- package/esm/cli/commands/generate/templates/stubs.d.ts.map +1 -0
- package/esm/cli/commands/generate/templates/stubs.js +528 -0
- package/esm/cli/commands/generate/templates/stubs.js.map +1 -0
- package/esm/cli/commands/generate/types.d.ts +53 -0
- package/esm/cli/commands/generate/types.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/name-parser.d.ts +40 -0
- package/esm/cli/commands/generate/utils/name-parser.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/name-parser.js +65 -0
- package/esm/cli/commands/generate/utils/name-parser.js.map +1 -0
- package/esm/cli/commands/generate/utils/path-resolver.d.ts +30 -0
- package/esm/cli/commands/generate/utils/path-resolver.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/path-resolver.js +42 -0
- package/esm/cli/commands/generate/utils/path-resolver.js.map +1 -0
- package/esm/cli/commands/generate/utils/prompt.d.ts +13 -0
- package/esm/cli/commands/generate/utils/prompt.d.ts.map +1 -0
- package/esm/cli/commands/generate/utils/prompt.js +21 -0
- package/esm/cli/commands/generate/utils/prompt.js.map +1 -0
- package/esm/cli/commands/migrate.command.d.ts +2 -0
- package/esm/cli/commands/migrate.command.d.ts.map +1 -0
- package/esm/cli/commands/migrate.command.js +52 -0
- package/esm/cli/commands/migrate.command.js.map +1 -0
- package/esm/cli/commands/seed.command.d.ts +2 -0
- package/esm/cli/commands/seed.command.d.ts.map +1 -0
- package/esm/cli/commands/seed.command.js +24 -0
- package/esm/cli/commands/seed.command.js.map +1 -0
- package/esm/cli/commands/start-production.command.d.ts +2 -0
- package/esm/cli/commands/start-production.command.d.ts.map +1 -0
- package/esm/cli/commands/start-production.command.js +65 -0
- package/esm/cli/commands/start-production.command.js.map +1 -0
- package/esm/cli/commands/storage-put.action.d.ts +22 -0
- package/esm/cli/commands/storage-put.action.d.ts.map +1 -0
- package/esm/cli/commands/storage-put.action.js +75 -0
- package/esm/cli/commands/storage-put.action.js.map +1 -0
- package/esm/cli/commands/storage-put.command.d.ts +20 -0
- package/esm/cli/commands/storage-put.command.d.ts.map +1 -0
- package/esm/cli/commands/storage-put.command.js +41 -0
- package/esm/cli/commands/storage-put.command.js.map +1 -0
- package/esm/cli/commands/typings-generator.command.d.ts +2 -0
- package/esm/cli/commands/typings-generator.command.d.ts.map +1 -0
- package/esm/cli/commands/typings-generator.command.js +37 -0
- package/esm/cli/commands/typings-generator.command.js.map +1 -0
- package/esm/cli/commands-loader.d.ts +18 -0
- package/esm/cli/commands-loader.d.ts.map +1 -0
- package/esm/cli/commands-loader.js +45 -0
- package/esm/cli/commands-loader.js.map +1 -0
- package/esm/cli/framework-cli-commands.d.ts +2 -0
- package/esm/cli/framework-cli-commands.d.ts.map +1 -0
- package/esm/cli/framework-cli-commands.js +27 -0
- package/esm/cli/framework-cli-commands.js.map +1 -0
- package/esm/cli/index.d.ts +3 -0
- package/esm/cli/index.d.ts.map +1 -0
- package/esm/cli/index.js +1 -0
- package/esm/cli/index.js.map +1 -0
- package/esm/cli/parse-cli-args.d.ts +18 -0
- package/esm/cli/parse-cli-args.d.ts.map +1 -0
- package/esm/cli/parse-cli-args.js +82 -0
- package/esm/cli/parse-cli-args.js.map +1 -0
- package/esm/cli/start.d.ts +2 -0
- package/esm/cli/start.d.ts.map +1 -0
- package/esm/cli/start.js +2 -0
- package/esm/cli/start.js.map +1 -0
- package/esm/cli/string-similarity.d.ts +44 -0
- package/esm/cli/string-similarity.d.ts.map +1 -0
- package/esm/cli/string-similarity.js +57 -0
- package/esm/cli/string-similarity.js.map +1 -0
- package/esm/cli/types.d.ts +218 -0
- package/esm/cli/types.d.ts.map +1 -0
- package/esm/config/config-getter.d.ts +35 -0
- package/esm/config/config-getter.d.ts.map +1 -0
- package/esm/config/config-getter.js +21 -0
- package/esm/config/config-getter.js.map +1 -0
- package/esm/config/config-handlers.d.ts +7 -0
- package/esm/config/config-handlers.d.ts.map +1 -0
- package/esm/config/config-handlers.js +19 -0
- package/esm/config/config-handlers.js.map +1 -0
- package/esm/config/config-loader.d.ts +37 -0
- package/esm/config/config-loader.d.ts.map +1 -0
- package/esm/config/config-loader.js +85 -0
- package/esm/config/config-loader.js.map +1 -0
- package/esm/config/config-manager.d.ts +22 -0
- package/esm/config/config-manager.d.ts.map +1 -0
- package/esm/config/config-manager.js +25 -0
- package/esm/config/config-manager.js.map +1 -0
- package/esm/config/config-special-handlers.d.ts +17 -0
- package/esm/config/config-special-handlers.d.ts.map +1 -0
- package/esm/config/config-special-handlers.js +23 -0
- package/esm/config/config-special-handlers.js.map +1 -0
- package/esm/config/index.d.ts +5 -0
- package/esm/config/index.d.ts.map +1 -0
- package/esm/config/load-config-files.d.ts +6 -0
- package/esm/config/load-config-files.d.ts.map +1 -0
- package/esm/config/load-config-files.js +19 -0
- package/esm/config/load-config-files.js.map +1 -0
- package/esm/config/types.d.ts +52 -0
- package/esm/config/types.d.ts.map +1 -0
- package/esm/connectors/base-connector.d.ts +49 -0
- package/esm/connectors/base-connector.d.ts.map +1 -0
- package/esm/connectors/base-connector.js +48 -0
- package/esm/connectors/base-connector.js.map +1 -0
- package/esm/connectors/cache-connector.d.ts +23 -0
- package/esm/connectors/cache-connector.d.ts.map +1 -0
- package/esm/connectors/cache-connector.js +35 -0
- package/esm/connectors/cache-connector.js.map +1 -0
- package/esm/connectors/communicator-connector.d.ts +23 -0
- package/esm/connectors/communicator-connector.d.ts.map +1 -0
- package/esm/connectors/communicator-connector.js +62 -0
- package/esm/connectors/communicator-connector.js.map +1 -0
- package/esm/connectors/connectors-manager.d.ts +42 -0
- package/esm/connectors/connectors-manager.d.ts.map +1 -0
- package/esm/connectors/connectors-manager.js +93 -0
- package/esm/connectors/connectors-manager.js.map +1 -0
- package/esm/connectors/database-connector.d.ts +23 -0
- package/esm/connectors/database-connector.d.ts.map +1 -0
- package/esm/connectors/database-connector.js +51 -0
- package/esm/connectors/database-connector.js.map +1 -0
- package/esm/connectors/http-connector.d.ts +31 -0
- package/esm/connectors/http-connector.d.ts.map +1 -0
- package/esm/connectors/http-connector.js +83 -0
- package/esm/connectors/http-connector.js.map +1 -0
- package/esm/connectors/index.d.ts +15 -0
- package/esm/connectors/index.d.ts.map +1 -0
- package/esm/connectors/logger-connector.d.ts +23 -0
- package/esm/connectors/logger-connector.d.ts.map +1 -0
- package/esm/connectors/logger-connector.js +45 -0
- package/esm/connectors/logger-connector.js.map +1 -0
- package/esm/connectors/mail-connector.d.ts +23 -0
- package/esm/connectors/mail-connector.d.ts.map +1 -0
- package/esm/connectors/mail-connector.js +45 -0
- package/esm/connectors/mail-connector.js.map +1 -0
- package/esm/connectors/storage.connector.d.ts +23 -0
- package/esm/connectors/storage.connector.d.ts.map +1 -0
- package/esm/connectors/storage.connector.js +30 -0
- package/esm/connectors/storage.connector.js.map +1 -0
- package/esm/connectors/types.d.ts +54 -0
- package/esm/connectors/types.d.ts.map +1 -0
- package/esm/connectors/types.js +13 -0
- package/esm/connectors/types.js.map +1 -0
- package/esm/database/create-database-action.d.ts +3 -0
- package/esm/database/create-database-action.d.ts.map +1 -0
- package/esm/database/create-database-action.js +28 -0
- package/esm/database/create-database-action.js.map +1 -0
- package/esm/database/drop-tables-action.d.ts +3 -0
- package/esm/database/drop-tables-action.d.ts.map +1 -0
- package/esm/database/drop-tables-action.js +29 -0
- package/esm/database/drop-tables-action.js.map +1 -0
- package/esm/database/index.d.ts +4 -0
- package/esm/database/index.d.ts.map +1 -0
- package/esm/database/migrate-action.d.ts +8 -0
- package/esm/database/migrate-action.d.ts.map +1 -0
- package/esm/database/migrate-action.js +118 -0
- package/esm/database/migrate-action.js.map +1 -0
- package/esm/database/models/database-log/database-log.d.ts +16 -0
- package/esm/database/models/database-log/database-log.d.ts.map +1 -0
- package/esm/database/models/database-log/database-log.js +17 -0
- package/esm/database/models/database-log/database-log.js.map +1 -0
- package/esm/database/models/database-log/index.d.ts +2 -0
- package/esm/database/models/database-log/index.d.ts.map +1 -0
- package/esm/database/seed-command-action.d.ts +3 -0
- package/esm/database/seed-command-action.d.ts.map +1 -0
- package/esm/database/seed-command-action.js +36 -0
- package/esm/database/seed-command-action.js.map +1 -0
- package/esm/database/seeds/index.d.ts +3 -0
- package/esm/database/seeds/index.d.ts.map +1 -0
- package/esm/database/seeds/seeder.d.ts +40 -0
- package/esm/database/seeds/seeder.d.ts.map +1 -0
- package/esm/database/seeds/seeder.js +6 -0
- package/esm/database/seeds/seeder.js.map +1 -0
- package/esm/database/seeds/seeders.manager.d.ts +47 -0
- package/esm/database/seeds/seeders.manager.d.ts.map +1 -0
- package/esm/database/seeds/seeders.manager.js +144 -0
- package/esm/database/seeds/seeders.manager.js.map +1 -0
- package/esm/database/seeds/seeds-table-migration.d.ts +8 -0
- package/esm/database/seeds/seeds-table-migration.d.ts.map +1 -0
- package/esm/database/seeds/seeds-table-migration.js +18 -0
- package/esm/database/seeds/seeds-table-migration.js.map +1 -0
- package/esm/database/seeds/types.d.ts +13 -0
- package/esm/database/seeds/types.d.ts.map +1 -0
- package/esm/database/seeds/utils.d.ts +2 -0
- package/esm/database/seeds/utils.d.ts.map +1 -0
- package/esm/database/seeds/utils.js +1 -0
- package/esm/database/seeds/utils.js.map +1 -0
- package/esm/database/utils.d.ts +17 -0
- package/esm/database/utils.d.ts.map +1 -0
- package/esm/database/utils.js +30 -0
- package/esm/database/utils.js.map +1 -0
- package/esm/dev-server/create-worker.d.ts +34 -0
- package/esm/dev-server/create-worker.d.ts.map +1 -0
- package/esm/dev-server/create-worker.js +37 -0
- package/esm/dev-server/create-worker.js.map +1 -0
- package/esm/dev-server/dependency-graph.d.ts +102 -0
- package/esm/dev-server/dependency-graph.d.ts.map +1 -0
- package/esm/dev-server/dependency-graph.js +310 -0
- package/esm/dev-server/dependency-graph.js.map +1 -0
- package/esm/dev-server/dev-logger.d.ts +14 -0
- package/esm/dev-server/dev-logger.d.ts.map +1 -0
- package/esm/dev-server/dev-logger.js +130 -0
- package/esm/dev-server/dev-logger.js.map +1 -0
- package/esm/dev-server/development-server.d.ts +55 -0
- package/esm/dev-server/development-server.d.ts.map +1 -0
- package/esm/dev-server/development-server.js +199 -0
- package/esm/dev-server/development-server.js.map +1 -0
- package/esm/dev-server/events.d.ts +5 -0
- package/esm/dev-server/events.d.ts.map +1 -0
- package/esm/dev-server/events.js +4 -0
- package/esm/dev-server/events.js.map +1 -0
- package/esm/dev-server/export-analyzer.d.ts +84 -0
- package/esm/dev-server/export-analyzer.d.ts.map +1 -0
- package/esm/dev-server/export-analyzer.js +206 -0
- package/esm/dev-server/export-analyzer.js.map +1 -0
- package/esm/dev-server/file-event-handler.d.ts +156 -0
- package/esm/dev-server/file-event-handler.d.ts.map +1 -0
- package/esm/dev-server/file-event-handler.js +309 -0
- package/esm/dev-server/file-event-handler.js.map +1 -0
- package/esm/dev-server/file-manager.d.ts +394 -0
- package/esm/dev-server/file-manager.d.ts.map +1 -0
- package/esm/dev-server/file-manager.js +603 -0
- package/esm/dev-server/file-manager.js.map +1 -0
- package/esm/dev-server/file-operations.d.ts +203 -0
- package/esm/dev-server/file-operations.d.ts.map +1 -0
- package/esm/dev-server/file-operations.js +365 -0
- package/esm/dev-server/file-operations.js.map +1 -0
- package/esm/dev-server/files-orchestrator.d.ts +153 -0
- package/esm/dev-server/files-orchestrator.d.ts.map +1 -0
- package/esm/dev-server/files-orchestrator.js +349 -0
- package/esm/dev-server/files-orchestrator.js.map +1 -0
- package/esm/dev-server/files-watcher.d.ts +67 -0
- package/esm/dev-server/files-watcher.d.ts.map +1 -0
- package/esm/dev-server/files-watcher.js +121 -0
- package/esm/dev-server/files-watcher.js.map +1 -0
- package/esm/dev-server/flags.d.ts +10 -0
- package/esm/dev-server/flags.d.ts.map +1 -0
- package/esm/dev-server/flags.js +9 -0
- package/esm/dev-server/flags.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts +52 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.js +71 -0
- package/esm/dev-server/health-checker/checkers/base-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts +40 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js +217 -0
- package/esm/dev-server/health-checker/checkers/eslint-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts +56 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js +279 -0
- package/esm/dev-server/health-checker/checkers/typescript-health-checker.js.map +1 -0
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts +59 -0
- package/esm/dev-server/health-checker/file-health-checker.contract.d.ts.map +1 -0
- package/esm/dev-server/health-checker/file-health-result.d.ts +68 -0
- package/esm/dev-server/health-checker/file-health-result.d.ts.map +1 -0
- package/esm/dev-server/health-checker/file-health-result.js +40 -0
- package/esm/dev-server/health-checker/file-health-result.js.map +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts +115 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.d.ts.map +1 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.js +422 -0
- package/esm/dev-server/health-checker/files-healthcare.manager.js.map +1 -0
- package/esm/dev-server/health-checker/index.d.ts +6 -0
- package/esm/dev-server/health-checker/index.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts +2 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js +214 -0
- package/esm/dev-server/health-checker/workers/eslint-health.worker.js.map +1 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts +2 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.d.ts.map +1 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.js +261 -0
- package/esm/dev-server/health-checker/workers/ts-health.worker.js.map +1 -0
- package/esm/dev-server/import-deduplicator.d.ts +75 -0
- package/esm/dev-server/import-deduplicator.d.ts.map +1 -0
- package/esm/dev-server/import-deduplicator.js +288 -0
- package/esm/dev-server/import-deduplicator.js.map +1 -0
- package/esm/dev-server/import-deduplicator.test.d.ts +7 -0
- package/esm/dev-server/import-deduplicator.test.d.ts.map +1 -0
- package/esm/dev-server/import-transformer.d.ts +17 -0
- package/esm/dev-server/import-transformer.d.ts.map +1 -0
- package/esm/dev-server/import-transformer.js +221 -0
- package/esm/dev-server/import-transformer.js.map +1 -0
- package/esm/dev-server/index.d.ts +1 -0
- package/esm/dev-server/index.d.ts.map +1 -0
- package/esm/dev-server/layer-executor.d.ts +64 -0
- package/esm/dev-server/layer-executor.d.ts.map +1 -0
- package/esm/dev-server/layer-executor.js +338 -0
- package/esm/dev-server/layer-executor.js.map +1 -0
- package/esm/dev-server/manifest-manager.d.ts +80 -0
- package/esm/dev-server/manifest-manager.d.ts.map +1 -0
- package/esm/dev-server/manifest-manager.js +107 -0
- package/esm/dev-server/manifest-manager.js.map +1 -0
- package/esm/dev-server/module-loader.d.ts +111 -0
- package/esm/dev-server/module-loader.d.ts.map +1 -0
- package/esm/dev-server/module-loader.js +276 -0
- package/esm/dev-server/module-loader.js.map +1 -0
- package/esm/dev-server/package-json-manager.d.ts +16 -0
- package/esm/dev-server/package-json-manager.d.ts.map +1 -0
- package/esm/dev-server/package-json-manager.js +20 -0
- package/esm/dev-server/package-json-manager.js.map +1 -0
- package/esm/dev-server/parse-imports.d.ts +34 -0
- package/esm/dev-server/parse-imports.d.ts.map +1 -0
- package/esm/dev-server/parse-imports.js +426 -0
- package/esm/dev-server/parse-imports.js.map +1 -0
- package/esm/dev-server/path.d.ts +39 -0
- package/esm/dev-server/path.d.ts.map +1 -0
- package/esm/dev-server/path.js +56 -0
- package/esm/dev-server/path.js.map +1 -0
- package/esm/dev-server/runtime-import-helper.d.ts +8 -0
- package/esm/dev-server/runtime-import-helper.d.ts.map +1 -0
- package/esm/dev-server/runtime-import-helper.js +158 -0
- package/esm/dev-server/runtime-import-helper.js.map +1 -0
- package/esm/dev-server/special-files-collector.d.ts +114 -0
- package/esm/dev-server/special-files-collector.d.ts.map +1 -0
- package/esm/dev-server/special-files-collector.js +212 -0
- package/esm/dev-server/special-files-collector.js.map +1 -0
- package/esm/dev-server/start-development-server.d.ts +7 -0
- package/esm/dev-server/start-development-server.d.ts.map +1 -0
- package/esm/dev-server/start-development-server.js +21 -0
- package/esm/dev-server/start-development-server.js.map +1 -0
- package/esm/dev-server/transpile-file.d.ts +11 -0
- package/esm/dev-server/transpile-file.d.ts.map +1 -0
- package/esm/dev-server/transpile-file.js +30 -0
- package/esm/dev-server/transpile-file.js.map +1 -0
- package/esm/dev-server/tsconfig-manager.d.ts +45 -0
- package/esm/dev-server/tsconfig-manager.d.ts.map +1 -0
- package/esm/dev-server/tsconfig-manager.js +107 -0
- package/esm/dev-server/tsconfig-manager.js.map +1 -0
- package/esm/dev-server/type-generator.d.ts +115 -0
- package/esm/dev-server/type-generator.d.ts.map +1 -0
- package/esm/dev-server/type-generator.js +566 -0
- package/esm/dev-server/type-generator.js.map +1 -0
- package/esm/dev-server/types.d.ts +30 -0
- package/esm/dev-server/types.d.ts.map +1 -0
- package/esm/dev-server/utils.d.ts +15 -0
- package/esm/dev-server/utils.d.ts.map +1 -0
- package/esm/dev-server/utils.js +41 -0
- package/esm/dev-server/utils.js.map +1 -0
- package/esm/encryption/encrypt.d.ts +23 -0
- package/esm/encryption/encrypt.d.ts.map +1 -0
- package/esm/encryption/encrypt.js +85 -0
- package/esm/encryption/encrypt.js.map +1 -0
- package/esm/encryption/hash.d.ts +17 -0
- package/esm/encryption/hash.d.ts.map +1 -0
- package/esm/encryption/hash.js +26 -0
- package/esm/encryption/hash.js.map +1 -0
- package/esm/encryption/index.d.ts +5 -0
- package/esm/encryption/index.d.ts.map +1 -0
- package/esm/encryption/password.d.ts +23 -0
- package/esm/encryption/password.d.ts.map +1 -0
- package/esm/encryption/password.js +72 -0
- package/esm/encryption/password.js.map +1 -0
- package/esm/encryption/types.d.ts +51 -0
- package/esm/encryption/types.d.ts.map +1 -0
- package/esm/generations/add-command.action.d.ts +3 -0
- package/esm/generations/add-command.action.d.ts.map +1 -0
- package/esm/generations/add-command.action.js +382 -0
- package/esm/generations/add-command.action.js.map +1 -0
- package/esm/generations/stubs.d.ts +2 -0
- package/esm/generations/stubs.d.ts.map +1 -0
- package/esm/generations/stubs.js +81 -0
- package/esm/generations/stubs.js.map +1 -0
- package/esm/http/config.d.ts +10 -0
- package/esm/http/config.d.ts.map +1 -0
- package/esm/http/config.js +22 -0
- package/esm/http/config.js.map +1 -0
- package/esm/http/context/request-context.d.ts +47 -0
- package/esm/http/context/request-context.d.ts.map +1 -0
- package/esm/http/context/request-context.js +52 -0
- package/esm/http/context/request-context.js.map +1 -0
- package/esm/http/createHttpApplication.d.ts +3 -0
- package/esm/http/createHttpApplication.d.ts.map +1 -0
- package/esm/http/createHttpApplication.js +28 -0
- package/esm/http/createHttpApplication.js.map +1 -0
- package/esm/http/database/RequestLog.d.ts +16 -0
- package/esm/http/database/RequestLog.d.ts.map +1 -0
- package/esm/http/database/RequestLog.js +26 -0
- package/esm/http/database/RequestLog.js.map +1 -0
- package/esm/http/errors/errors.d.ts +39 -0
- package/esm/http/errors/errors.d.ts.map +1 -0
- package/esm/http/errors/errors.js +76 -0
- package/esm/http/errors/errors.js.map +1 -0
- package/esm/http/errors/index.d.ts +2 -0
- package/esm/http/errors/index.d.ts.map +1 -0
- package/esm/http/events.d.ts +4 -0
- package/esm/http/events.d.ts.map +1 -0
- package/esm/http/events.js +26 -0
- package/esm/http/events.js.map +1 -0
- package/esm/http/index.d.ts +17 -0
- package/esm/http/index.d.ts.map +1 -0
- package/esm/http/middleware/cache-response-middleware.d.ts +34 -0
- package/esm/http/middleware/cache-response-middleware.d.ts.map +1 -0
- package/esm/http/middleware/cache-response-middleware.js +45 -0
- package/esm/http/middleware/cache-response-middleware.js.map +1 -0
- package/esm/http/middleware/index.d.ts +3 -0
- package/esm/http/middleware/index.d.ts.map +1 -0
- package/esm/http/middleware/inject-request-context.d.ts +21 -0
- package/esm/http/middleware/inject-request-context.d.ts.map +1 -0
- package/esm/http/middleware/inject-request-context.js +119 -0
- package/esm/http/middleware/inject-request-context.js.map +1 -0
- package/esm/http/plugins.d.ts +3 -0
- package/esm/http/plugins.d.ts.map +1 -0
- package/esm/http/plugins.js +36 -0
- package/esm/http/plugins.js.map +1 -0
- package/esm/http/request-controller.d.ts +11 -0
- package/esm/http/request-controller.d.ts.map +1 -0
- package/esm/http/request-controller.js +9 -0
- package/esm/http/request-controller.js.map +1 -0
- package/esm/http/request.d.ts +400 -0
- package/esm/http/request.d.ts.map +1 -0
- package/esm/http/request.js +766 -0
- package/esm/http/request.js.map +1 -0
- package/esm/http/response.d.ts +374 -0
- package/esm/http/response.d.ts.map +1 -0
- package/esm/http/response.js +974 -0
- package/esm/http/response.js.map +1 -0
- package/esm/http/server.d.ts +8 -0
- package/esm/http/server.d.ts.map +1 -0
- package/esm/http/server.js +15 -0
- package/esm/http/server.js.map +1 -0
- package/esm/http/types.d.ts +230 -0
- package/esm/http/types.d.ts.map +1 -0
- package/esm/http/uploaded-file.d.ts +459 -0
- package/esm/http/uploaded-file.d.ts.map +1 -0
- package/esm/http/uploaded-file.js +709 -0
- package/esm/http/uploaded-file.js.map +1 -0
- package/esm/http/uploads-config.d.ts +26 -0
- package/esm/http/uploads-config.d.ts.map +1 -0
- package/esm/http/uploads-config.js +35 -0
- package/esm/http/uploads-config.js.map +1 -0
- package/esm/http/uploads-types.d.ts +236 -0
- package/esm/http/uploads-types.d.ts.map +1 -0
- package/esm/image/image.d.ts +388 -0
- package/esm/image/image.d.ts.map +1 -0
- package/esm/image/image.js +602 -0
- package/esm/image/image.js.map +1 -0
- package/esm/image/index.d.ts +2 -0
- package/esm/image/index.d.ts.map +1 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/logger/index.d.ts +3 -0
- package/esm/logger/index.d.ts.map +1 -0
- package/esm/logger/logger.d.ts +3 -0
- package/esm/logger/logger.d.ts.map +1 -0
- package/esm/logger/logger.js +16 -0
- package/esm/logger/logger.js.map +1 -0
- package/esm/logger/types.d.ts +39 -0
- package/esm/logger/types.d.ts.map +1 -0
- package/esm/mail/config.d.ts +80 -0
- package/esm/mail/config.d.ts.map +1 -0
- package/esm/mail/config.js +158 -0
- package/esm/mail/config.js.map +1 -0
- package/esm/mail/events.d.ts +96 -0
- package/esm/mail/events.d.ts.map +1 -0
- package/esm/mail/events.js +123 -0
- package/esm/mail/events.js.map +1 -0
- package/esm/mail/index.d.ts +10 -0
- package/esm/mail/index.d.ts.map +1 -0
- package/esm/mail/mail.d.ts +175 -0
- package/esm/mail/mail.d.ts.map +1 -0
- package/esm/mail/mail.js +286 -0
- package/esm/mail/mail.js.map +1 -0
- package/esm/mail/mailer-pool.d.ts +27 -0
- package/esm/mail/mailer-pool.d.ts.map +1 -0
- package/esm/mail/mailer-pool.js +215 -0
- package/esm/mail/mailer-pool.js.map +1 -0
- package/esm/mail/react-mail.d.ts +12 -0
- package/esm/mail/react-mail.d.ts.map +1 -0
- package/esm/mail/react-mail.js +40 -0
- package/esm/mail/react-mail.js.map +1 -0
- package/esm/mail/send-mail.d.ts +33 -0
- package/esm/mail/send-mail.d.ts.map +1 -0
- package/esm/mail/send-mail.js +313 -0
- package/esm/mail/send-mail.js.map +1 -0
- package/esm/mail/test-mailbox.d.ts +110 -0
- package/esm/mail/test-mailbox.d.ts.map +1 -0
- package/esm/mail/test-mailbox.js +143 -0
- package/esm/mail/test-mailbox.js.map +1 -0
- package/esm/mail/types.d.ts +264 -0
- package/esm/mail/types.d.ts.map +1 -0
- package/esm/mail/types.js +13 -0
- package/esm/mail/types.js.map +1 -0
- package/esm/manifest/manifest-manager.d.ts +74 -0
- package/esm/manifest/manifest-manager.d.ts.map +1 -0
- package/esm/manifest/manifest-manager.js +88 -0
- package/esm/manifest/manifest-manager.js.map +1 -0
- package/esm/production/build-app-production.d.ts +6 -0
- package/esm/production/build-app-production.d.ts.map +1 -0
- package/esm/production/build-app-production.js +8 -0
- package/esm/production/build-app-production.js.map +1 -0
- package/esm/production/esbuild-plugins.d.ts +5 -0
- package/esm/production/esbuild-plugins.d.ts.map +1 -0
- package/esm/production/esbuild-plugins.js +23 -0
- package/esm/production/esbuild-plugins.js.map +1 -0
- package/esm/production/production-builder.d.ts +76 -0
- package/esm/production/production-builder.d.ts.map +1 -0
- package/esm/production/production-builder.js +254 -0
- package/esm/production/production-builder.js.map +1 -0
- package/esm/react/index.d.ts +14 -0
- package/esm/react/index.d.ts.map +1 -0
- package/esm/react/index.js +65 -0
- package/esm/react/index.js.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts +85 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.js +179 -0
- package/esm/repositories/adapters/cascade/cascade-adapter.js.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts +141 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.js +281 -0
- package/esm/repositories/adapters/cascade/cascade-query-builder.js.map +1 -0
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts +126 -0
- package/esm/repositories/adapters/cascade/filter-applicator.d.ts.map +1 -0
- package/esm/repositories/adapters/cascade/filter-applicator.js +549 -0
- package/esm/repositories/adapters/cascade/filter-applicator.js.map +1 -0
- package/esm/repositories/adapters/cascade/index.d.ts +7 -0
- package/esm/repositories/adapters/cascade/index.d.ts.map +1 -0
- package/esm/repositories/contracts/index.d.ts +8 -0
- package/esm/repositories/contracts/index.d.ts.map +1 -0
- package/esm/repositories/contracts/query-builder.contract.d.ts +320 -0
- package/esm/repositories/contracts/query-builder.contract.d.ts.map +1 -0
- package/esm/repositories/contracts/repository-adapter.contract.d.ts +183 -0
- package/esm/repositories/contracts/repository-adapter.contract.d.ts.map +1 -0
- package/esm/repositories/contracts/types.d.ts +328 -0
- package/esm/repositories/contracts/types.d.ts.map +1 -0
- package/esm/repositories/index.d.ts +8 -0
- package/esm/repositories/index.d.ts.map +1 -0
- package/esm/repositories/repository.manager.d.ts +694 -0
- package/esm/repositories/repository.manager.d.ts.map +1 -0
- package/esm/repositories/repository.manager.js +1123 -0
- package/esm/repositories/repository.manager.js.map +1 -0
- package/esm/resource/define-resource.d.ts +65 -0
- package/esm/resource/define-resource.d.ts.map +1 -0
- package/esm/resource/define-resource.js +62 -0
- package/esm/resource/define-resource.js.map +1 -0
- package/esm/resource/index.d.ts +6 -0
- package/esm/resource/index.d.ts.map +1 -0
- package/esm/resource/register-resource.d.ts +21 -0
- package/esm/resource/register-resource.d.ts.map +1 -0
- package/esm/resource/register-resource.js +23 -0
- package/esm/resource/register-resource.js.map +1 -0
- package/esm/resource/resource-field-builder.d.ts +104 -0
- package/esm/resource/resource-field-builder.d.ts.map +1 -0
- package/esm/resource/resource-field-builder.js +260 -0
- package/esm/resource/resource-field-builder.js.map +1 -0
- package/esm/resource/resource.d.ts +217 -0
- package/esm/resource/resource.d.ts.map +1 -0
- package/esm/resource/resource.js +307 -0
- package/esm/resource/resource.js.map +1 -0
- package/esm/resource/types.d.ts +74 -0
- package/esm/resource/types.d.ts.map +1 -0
- package/esm/restful/index.d.ts +2 -0
- package/esm/restful/index.d.ts.map +1 -0
- package/esm/restful/restful.d.ts +110 -0
- package/esm/restful/restful.d.ts.map +1 -0
- package/esm/restful/restful.js +317 -0
- package/esm/restful/restful.js.map +1 -0
- package/esm/retry/index.d.ts +3 -0
- package/esm/retry/index.d.ts.map +1 -0
- package/esm/retry/retry.d.ts +21 -0
- package/esm/retry/retry.d.ts.map +1 -0
- package/esm/retry/retry.js +39 -0
- package/esm/retry/retry.js.map +1 -0
- package/esm/retry/types.d.ts +27 -0
- package/esm/retry/types.d.ts.map +1 -0
- package/esm/router/index.d.ts +3 -0
- package/esm/router/index.d.ts.map +1 -0
- package/esm/router/route-builder.d.ts +120 -0
- package/esm/router/route-builder.d.ts.map +1 -0
- package/esm/router/route-builder.js +201 -0
- package/esm/router/route-builder.js.map +1 -0
- package/esm/router/route-registry.d.ts +30 -0
- package/esm/router/route-registry.d.ts.map +1 -0
- package/esm/router/route-registry.js +67 -0
- package/esm/router/route-registry.js.map +1 -0
- package/esm/router/route.d.ts +34 -0
- package/esm/router/route.d.ts.map +1 -0
- package/esm/router/router.d.ts +188 -0
- package/esm/router/router.d.ts.map +1 -0
- package/esm/router/router.js +605 -0
- package/esm/router/router.js.map +1 -0
- package/esm/router/types.d.ts +254 -0
- package/esm/router/types.d.ts.map +1 -0
- package/esm/storage/config.d.ts +15 -0
- package/esm/storage/config.d.ts.map +1 -0
- package/esm/storage/config.js +32 -0
- package/esm/storage/config.js.map +1 -0
- package/esm/storage/context/storage-driver-context.d.ts +69 -0
- package/esm/storage/context/storage-driver-context.d.ts.map +1 -0
- package/esm/storage/context/storage-driver-context.js +80 -0
- package/esm/storage/context/storage-driver-context.js.map +1 -0
- package/esm/storage/drivers/cloud-driver.d.ts +206 -0
- package/esm/storage/drivers/cloud-driver.d.ts.map +1 -0
- package/esm/storage/drivers/cloud-driver.js +721 -0
- package/esm/storage/drivers/cloud-driver.js.map +1 -0
- package/esm/storage/drivers/do-spaces-driver.d.ts +43 -0
- package/esm/storage/drivers/do-spaces-driver.d.ts.map +1 -0
- package/esm/storage/drivers/do-spaces-driver.js +50 -0
- package/esm/storage/drivers/do-spaces-driver.js.map +1 -0
- package/esm/storage/drivers/local-driver.d.ts +151 -0
- package/esm/storage/drivers/local-driver.d.ts.map +1 -0
- package/esm/storage/drivers/local-driver.js +448 -0
- package/esm/storage/drivers/local-driver.js.map +1 -0
- package/esm/storage/drivers/r2-driver.d.ts +47 -0
- package/esm/storage/drivers/r2-driver.d.ts.map +1 -0
- package/esm/storage/drivers/r2-driver.js +60 -0
- package/esm/storage/drivers/r2-driver.js.map +1 -0
- package/esm/storage/drivers/s3-driver.d.ts +32 -0
- package/esm/storage/drivers/s3-driver.d.ts.map +1 -0
- package/esm/storage/drivers/s3-driver.js +37 -0
- package/esm/storage/drivers/s3-driver.js.map +1 -0
- package/esm/storage/index.d.ts +13 -0
- package/esm/storage/index.d.ts.map +1 -0
- package/esm/storage/scoped-storage.d.ts +547 -0
- package/esm/storage/scoped-storage.d.ts.map +1 -0
- package/esm/storage/scoped-storage.js +739 -0
- package/esm/storage/scoped-storage.js.map +1 -0
- package/esm/storage/storage-file.d.ts +222 -0
- package/esm/storage/storage-file.d.ts.map +1 -0
- package/esm/storage/storage-file.js +376 -0
- package/esm/storage/storage-file.js.map +1 -0
- package/esm/storage/storage.d.ts +583 -0
- package/esm/storage/storage.d.ts.map +1 -0
- package/esm/storage/storage.js +948 -0
- package/esm/storage/storage.js.map +1 -0
- package/esm/storage/types.d.ts +966 -0
- package/esm/storage/types.d.ts.map +1 -0
- package/esm/storage/utils/mime.d.ts +33 -0
- package/esm/storage/utils/mime.d.ts.map +1 -0
- package/esm/storage/utils/mime.js +45 -0
- package/esm/storage/utils/mime.js.map +1 -0
- package/esm/tests/index.d.ts +9 -0
- package/esm/tests/index.d.ts.map +1 -0
- package/esm/tests/start-http-development-server.d.ts +15 -0
- package/esm/tests/start-http-development-server.d.ts.map +1 -0
- package/esm/tests/start-http-development-server.js +69 -0
- package/esm/tests/start-http-development-server.js.map +1 -0
- package/esm/tests/test-helpers.d.ts +43 -0
- package/esm/tests/test-helpers.d.ts.map +1 -0
- package/esm/tests/test-helpers.js +86 -0
- package/esm/tests/test-helpers.js.map +1 -0
- package/esm/tests/vitest-setup.d.ts +10 -0
- package/esm/tests/vitest-setup.d.ts.map +1 -0
- package/esm/tests/vitest-setup.js +36 -0
- package/esm/tests/vitest-setup.js.map +1 -0
- package/esm/use-cases/index.d.ts +7 -0
- package/esm/use-cases/index.d.ts.map +1 -0
- package/esm/use-cases/types.d.ts +267 -0
- package/esm/use-cases/types.d.ts.map +1 -0
- package/esm/use-cases/use-case-events.d.ts +33 -0
- package/esm/use-cases/use-case-events.d.ts.map +1 -0
- package/esm/use-cases/use-case-events.js +65 -0
- package/esm/use-cases/use-case-events.js.map +1 -0
- package/esm/use-cases/use-case-pipeline.d.ts +29 -0
- package/esm/use-cases/use-case-pipeline.d.ts.map +1 -0
- package/esm/use-cases/use-case-pipeline.js +45 -0
- package/esm/use-cases/use-case-pipeline.js.map +1 -0
- package/esm/use-cases/use-case.d.ts +27 -0
- package/esm/use-cases/use-case.d.ts.map +1 -0
- package/esm/use-cases/use-case.errors.d.ts +6 -0
- package/esm/use-cases/use-case.errors.d.ts.map +1 -0
- package/esm/use-cases/use-case.errors.js +8 -0
- package/esm/use-cases/use-case.errors.js.map +1 -0
- package/esm/use-cases/use-case.js +138 -0
- package/esm/use-cases/use-case.js.map +1 -0
- package/esm/use-cases/use-cases-registry.d.ts +38 -0
- package/esm/use-cases/use-cases-registry.d.ts.map +1 -0
- package/esm/use-cases/use-cases-registry.js +92 -0
- package/esm/use-cases/use-cases-registry.js.map +1 -0
- package/esm/utils/app-log.d.ts +8 -0
- package/esm/utils/app-log.d.ts.map +1 -0
- package/esm/utils/app-log.js +7 -0
- package/esm/utils/app-log.js.map +1 -0
- package/esm/utils/cleanup-temp-files.d.ts +5 -0
- package/esm/utils/cleanup-temp-files.d.ts.map +1 -0
- package/esm/utils/database-log.d.ts +25 -0
- package/esm/utils/database-log.d.ts.map +1 -0
- package/esm/utils/database-log.js +43 -0
- package/esm/utils/database-log.js.map +1 -0
- package/esm/utils/download-file.d.ts +3 -0
- package/esm/utils/download-file.d.ts.map +1 -0
- package/esm/utils/environment.d.ts +4 -0
- package/esm/utils/environment.d.ts.map +1 -0
- package/esm/utils/environment.js +6 -0
- package/esm/utils/environment.js.map +1 -0
- package/esm/utils/framework-vesion.d.ts +6 -0
- package/esm/utils/framework-vesion.d.ts.map +1 -0
- package/esm/utils/framework-vesion.js +18 -0
- package/esm/utils/framework-vesion.js.map +1 -0
- package/esm/utils/get-localized.d.ts +10 -0
- package/esm/utils/get-localized.d.ts.map +1 -0
- package/esm/utils/get-localized.js +15 -0
- package/esm/utils/get-localized.js.map +1 -0
- package/esm/utils/index.d.ts +12 -0
- package/esm/utils/index.d.ts.map +1 -0
- package/esm/utils/internal.d.ts +4 -0
- package/esm/utils/internal.d.ts.map +1 -0
- package/esm/utils/paths.d.ts +55 -0
- package/esm/utils/paths.d.ts.map +1 -0
- package/esm/utils/paths.js +89 -0
- package/esm/utils/paths.js.map +1 -0
- package/esm/utils/promise-all-object.d.ts +8 -0
- package/esm/utils/promise-all-object.d.ts.map +1 -0
- package/esm/utils/promise-all-object.js +12 -0
- package/esm/utils/promise-all-object.js.map +1 -0
- package/esm/utils/queue.d.ts +49 -0
- package/esm/utils/queue.d.ts.map +1 -0
- package/esm/utils/queue.js +89 -0
- package/esm/utils/queue.js.map +1 -0
- package/esm/utils/sleep.d.ts +2 -0
- package/esm/utils/sleep.d.ts.map +1 -0
- package/esm/utils/sleep.js +3 -0
- package/esm/utils/sleep.js.map +1 -0
- package/esm/utils/sluggable.d.ts +5 -0
- package/esm/utils/sluggable.d.ts.map +1 -0
- package/esm/utils/sluggable.js +15 -0
- package/esm/utils/sluggable.js.map +1 -0
- package/esm/utils/to-json.d.ts +2 -0
- package/esm/utils/to-json.d.ts.map +1 -0
- package/esm/utils/to-json.js +26 -0
- package/esm/utils/to-json.js.map +1 -0
- package/esm/utils/types.d.ts +22 -0
- package/esm/utils/types.d.ts.map +1 -0
- package/esm/utils/urls.d.ts +21 -0
- package/esm/utils/urls.d.ts.map +1 -0
- package/esm/utils/urls.js +31 -0
- package/esm/utils/urls.js.map +1 -0
- package/esm/validation/database/exists-except-current-id.d.ts +7 -0
- package/esm/validation/database/exists-except-current-id.d.ts.map +1 -0
- package/esm/validation/database/exists-except-current-id.js +24 -0
- package/esm/validation/database/exists-except-current-id.js.map +1 -0
- package/esm/validation/database/exists-except-current-user.d.ts +7 -0
- package/esm/validation/database/exists-except-current-user.d.ts.map +1 -0
- package/esm/validation/database/exists-except-current-user.js +26 -0
- package/esm/validation/database/exists-except-current-user.js.map +1 -0
- package/esm/validation/database/exists.d.ts +7 -0
- package/esm/validation/database/exists.d.ts.map +1 -0
- package/esm/validation/database/exists.js +22 -0
- package/esm/validation/database/exists.js.map +1 -0
- package/esm/validation/database/index.d.ts +12 -0
- package/esm/validation/database/index.d.ts.map +1 -0
- package/esm/validation/database/types.d.ts +68 -0
- package/esm/validation/database/types.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-id.d.ts +7 -0
- package/esm/validation/database/unique-except-current-id.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-id.js +24 -0
- package/esm/validation/database/unique-except-current-id.js.map +1 -0
- package/esm/validation/database/unique-except-current-user.d.ts +7 -0
- package/esm/validation/database/unique-except-current-user.d.ts.map +1 -0
- package/esm/validation/database/unique-except-current-user.js +29 -0
- package/esm/validation/database/unique-except-current-user.js.map +1 -0
- package/esm/validation/database/unique.d.ts +7 -0
- package/esm/validation/database/unique.d.ts.map +1 -0
- package/esm/validation/database/unique.js +31 -0
- package/esm/validation/database/unique.js.map +1 -0
- package/esm/validation/file/file.d.ts +22 -0
- package/esm/validation/file/file.d.ts.map +1 -0
- package/esm/validation/file/file.js +60 -0
- package/esm/validation/file/file.js.map +1 -0
- package/esm/validation/file/index.d.ts +6 -0
- package/esm/validation/file/index.d.ts.map +1 -0
- package/esm/validation/index.d.ts +16 -0
- package/esm/validation/index.d.ts.map +1 -0
- package/esm/validation/init.d.ts +7 -0
- package/esm/validation/init.d.ts.map +1 -0
- package/esm/validation/init.js +36 -0
- package/esm/validation/init.js.map +1 -0
- package/esm/validation/plugins/database-plugin.d.ts +14 -0
- package/esm/validation/plugins/database-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/database-plugin.js +83 -0
- package/esm/validation/plugins/database-plugin.js.map +1 -0
- package/esm/validation/plugins/file-plugin.d.ts +11 -0
- package/esm/validation/plugins/file-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/file-plugin.js +17 -0
- package/esm/validation/plugins/file-plugin.js.map +1 -0
- package/esm/validation/plugins/index.d.ts +9 -0
- package/esm/validation/plugins/index.d.ts.map +1 -0
- package/esm/validation/plugins/localized-plugin.d.ts +11 -0
- package/esm/validation/plugins/localized-plugin.d.ts.map +1 -0
- package/esm/validation/plugins/localized-plugin.js +19 -0
- package/esm/validation/plugins/localized-plugin.js.map +1 -0
- package/esm/validation/types.d.ts +87 -0
- package/esm/validation/types.d.ts.map +1 -0
- package/esm/validation/validateAll.d.ts +7 -0
- package/esm/validation/validateAll.d.ts.map +1 -0
- package/esm/validation/validateAll.js +60 -0
- package/esm/validation/validateAll.js.map +1 -0
- package/esm/validation/validators/file-validator.d.ts +62 -0
- package/esm/validation/validators/file-validator.d.ts.map +1 -0
- package/esm/validation/validators/file-validator.js +136 -0
- package/esm/validation/validators/file-validator.js.map +1 -0
- package/esm/validation/validators/index.d.ts +7 -0
- package/esm/validation/validators/index.d.ts.map +1 -0
- package/esm/warlock-config/default-configurations.d.ts +3 -0
- package/esm/warlock-config/default-configurations.d.ts.map +1 -0
- package/esm/warlock-config/default-configurations.js +8 -0
- package/esm/warlock-config/default-configurations.js.map +1 -0
- package/esm/warlock-config/define-config.d.ts +3 -0
- package/esm/warlock-config/define-config.d.ts.map +1 -0
- package/esm/warlock-config/define-config.js +3 -0
- package/esm/warlock-config/define-config.js.map +1 -0
- package/esm/warlock-config/index.d.ts +4 -0
- package/esm/warlock-config/index.d.ts.map +1 -0
- package/esm/warlock-config/types.d.ts +129 -0
- package/esm/warlock-config/types.d.ts.map +1 -0
- package/esm/warlock-config/warlock-config.manager.d.ts +83 -0
- package/esm/warlock-config/warlock-config.manager.d.ts.map +1 -0
- package/esm/warlock-config/warlock-config.manager.js +141 -0
- package/esm/warlock-config/warlock-config.manager.js.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {configSpecialHandlers}from'./config-special-handlers.js';/**
|
|
2
|
+
* App Config Handler
|
|
3
|
+
* Handles locale loading for dayjs
|
|
4
|
+
*/
|
|
5
|
+
const registerAppConfig = async (config) => {
|
|
6
|
+
// Load dayjs locales based on app.localeCodes
|
|
7
|
+
const locales = config.locales || ["en"];
|
|
8
|
+
for (const locale of locales) {
|
|
9
|
+
if (locale === "en")
|
|
10
|
+
continue; // English is default
|
|
11
|
+
try {
|
|
12
|
+
await import(`dayjs/locale/${locale}.js`);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.warn(` ⚠️ Failed to load dayjs locale: ${locale}`);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
configSpecialHandlers.register("app", registerAppConfig);export{registerAppConfig};//# sourceMappingURL=config-handlers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-handlers.js","sources":["../../src/config/config-handlers.ts"],"sourcesContent":[null],"names":[],"mappings":"iEAGA;;;AAGG;MACU,iBAAiB,GAAG,OAAO,MAAyB,KAAI;;IAEnE,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;AAEzC,IAAA,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,MAAM,KAAK,IAAI;AAAE,YAAA,SAAS;QAE9B,IAAI;AACF,YAAA,MAAM,OAAO,CAAA,aAAA,EAAgB,MAAM,CAAA,GAAA,CAAK,CAAC,CAAC;AAC3C,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,IAAI,CAAC,uCAAuC,MAAM,CAAA,CAAE,CAAC,CAAC;AAC/D,SAAA;AACF,KAAA;AACH,EAAE;AAEF,qBAAqB,CAAC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { FileManager } from "../dev-server/file-manager";
|
|
2
|
+
/**
|
|
3
|
+
* Special Config Handler
|
|
4
|
+
* A function that handles special configuration loading
|
|
5
|
+
*/
|
|
6
|
+
export type SpecialConfigHandler = (configValue: any) => void | Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Config Loader
|
|
9
|
+
* Dynamically loads all configuration files and registers them with @mongez/config
|
|
10
|
+
* Supports special handlers for configs that require additional processing
|
|
11
|
+
*/
|
|
12
|
+
export declare class ConfigLoader {
|
|
13
|
+
/**
|
|
14
|
+
* Load all configuration files
|
|
15
|
+
* @param configFiles Array of config FileManager instances
|
|
16
|
+
*/
|
|
17
|
+
loadAll(configFiles: FileManager[]): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Load a single configuration file
|
|
20
|
+
* @param file FileManager instance for the config file
|
|
21
|
+
* @param bustCache Whether to bust the cache (add timestamp to URL)
|
|
22
|
+
*/
|
|
23
|
+
loadConfig(file: FileManager, bustCache?: boolean): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Reload a configuration file (for HMR)
|
|
26
|
+
* @param file FileManager instance for the config file
|
|
27
|
+
*/
|
|
28
|
+
reloadConfig(file: FileManager): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Extract config name from file path
|
|
31
|
+
* Examples:
|
|
32
|
+
* src/config/database.ts → "database"
|
|
33
|
+
* src/config/payment/stripe.ts → "payment.stripe"
|
|
34
|
+
*/
|
|
35
|
+
private getConfigName;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=config-loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/config/config-loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI9D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE9E;;;;GAIG;AACH,qBAAa,YAAY;IACvB;;;OAGG;IACU,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAgB/D;;;;OAIG;IACU,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA+CrF;;;OAGG;IACU,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3D;;;;;OAKG;IACH,OAAO,CAAC,aAAa;CAUtB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import config from'@mongez/config';import {colors}from'@mongez/copper';import {pathToFileURL}from'node:url';import {warlockCachePath}from'../dev-server/utils.js';import {configSpecialHandlers}from'./config-special-handlers.js';/**
|
|
2
|
+
* Config Loader
|
|
3
|
+
* Dynamically loads all configuration files and registers them with @mongez/config
|
|
4
|
+
* Supports special handlers for configs that require additional processing
|
|
5
|
+
*/
|
|
6
|
+
class ConfigLoader {
|
|
7
|
+
/**
|
|
8
|
+
* Load all configuration files
|
|
9
|
+
* @param configFiles Array of config FileManager instances
|
|
10
|
+
*/
|
|
11
|
+
async loadAll(configFiles) {
|
|
12
|
+
if (configFiles.length === 0) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
// Load all configs in parallel
|
|
16
|
+
// await Promise.all(
|
|
17
|
+
// configFiles.map(async file => {
|
|
18
|
+
// await this.loadConfig(file);
|
|
19
|
+
// }),
|
|
20
|
+
// );
|
|
21
|
+
for (const file of configFiles) {
|
|
22
|
+
await this.loadConfig(file);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Load a single configuration file
|
|
27
|
+
* @param file FileManager instance for the config file
|
|
28
|
+
* @param bustCache Whether to bust the cache (add timestamp to URL)
|
|
29
|
+
*/
|
|
30
|
+
async loadConfig(file, bustCache = false) {
|
|
31
|
+
const configName = this.getConfigName(file.relativePath);
|
|
32
|
+
// devLogInfo(`Loading configuration file: ${configName}`);
|
|
33
|
+
try {
|
|
34
|
+
// Convert absolute path to file:// URL for cross-platform compatibility
|
|
35
|
+
let fileUrl = typeof __import !== "undefined"
|
|
36
|
+
? file.cachePath
|
|
37
|
+
: pathToFileURL(warlockCachePath(file.cachePath)).href;
|
|
38
|
+
// Add timestamp for cache busting (forces re-import for HMR)
|
|
39
|
+
if (bustCache && typeof __import === "undefined") {
|
|
40
|
+
const timestamp = Date.now();
|
|
41
|
+
fileUrl += `?t=${timestamp}`;
|
|
42
|
+
}
|
|
43
|
+
// Dynamic import the config file
|
|
44
|
+
const configModule = typeof __import !== "undefined" ? await __import(fileUrl) : await import(fileUrl);
|
|
45
|
+
// Get the default export (the config value)
|
|
46
|
+
const configValue = configModule.default;
|
|
47
|
+
if (configValue === undefined) {
|
|
48
|
+
console.log(colors.red(`config error: `), `Config file ${colors.yellow(file.relativePath)} does not have a default export`);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
// Store in @mongez/config
|
|
52
|
+
// @mongez/config automatically handles nested access (e.g., config.get("database.host"))
|
|
53
|
+
config.set(configName, configValue);
|
|
54
|
+
// devLogInfo(`Configuration file loaded: ${file.relativePath}`);
|
|
55
|
+
// Handle special configs if handler is registered
|
|
56
|
+
await configSpecialHandlers.execute(configName, configValue);
|
|
57
|
+
// devLogInfo(`Special configuration handled: ${configName}`);
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
throw error; // Abort on config errors
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Reload a configuration file (for HMR)
|
|
65
|
+
* @param file FileManager instance for the config file
|
|
66
|
+
*/
|
|
67
|
+
async reloadConfig(file) {
|
|
68
|
+
// Reload the config with cache busting (adds timestamp to URL)
|
|
69
|
+
await this.loadConfig(file, true);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Extract config name from file path
|
|
73
|
+
* Examples:
|
|
74
|
+
* src/config/database.ts → "database"
|
|
75
|
+
* src/config/payment/stripe.ts → "payment.stripe"
|
|
76
|
+
*/
|
|
77
|
+
getConfigName(relativePath) {
|
|
78
|
+
// Extract the part after "src/config/"
|
|
79
|
+
const match = relativePath.match(/^src\/config\/(.+)\.(ts|tsx)$/);
|
|
80
|
+
if (!match) {
|
|
81
|
+
throw new Error(`Invalid config file path: ${relativePath}`);
|
|
82
|
+
}
|
|
83
|
+
return match[1];
|
|
84
|
+
}
|
|
85
|
+
}export{ConfigLoader};//# sourceMappingURL=config-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-loader.js","sources":["../../src/config/config-loader.ts"],"sourcesContent":[null],"names":[],"mappings":"mOAaA;;;;AAIG;MACU,YAAY,CAAA;AACvB;;;AAGG;IACI,MAAM,OAAO,CAAC,WAA0B,EAAA;AAC7C,QAAA,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO;AACR,SAAA;;;;;;;AAQD,QAAA,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE;AAC9B,YAAA,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAC7B,SAAA;KACF;AAED;;;;AAIG;AACI,IAAA,MAAM,UAAU,CAAC,IAAiB,EAAE,YAAqB,KAAK,EAAA;QACnE,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;;QAGzD,IAAI;;AAEF,YAAA,IAAI,OAAO,GACT,OAAO,QAAQ,KAAK,WAAW;kBAC3B,IAAI,CAAC,SAAS;AAChB,kBAAE,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;;AAG3D,YAAA,IAAI,SAAS,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;AAChD,gBAAA,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AAC7B,gBAAA,OAAO,IAAI,CAAA,GAAA,EAAM,SAAS,CAAA,CAAE,CAAC;AAC9B,aAAA;;YAID,MAAM,YAAY,GAChB,OAAO,QAAQ,KAAK,WAAW,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,GAAG,MAAM,OAAO,OAAO,CAAC,CAAC;;AAGpF,YAAA,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC;YAEzC,IAAI,WAAW,KAAK,SAAS,EAAE;gBAC7B,OAAO,CAAC,GAAG,CACT,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAC5B,eAAe,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAiC,+BAAA,CAAA,CACjF,CAAC;gBACF,OAAO;AACR,aAAA;;;AAID,YAAA,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;;;YAKpC,MAAM,qBAAqB,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;;AAE9D,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;YACd,MAAM,KAAK,CAAC;AACb,SAAA;KACF;AAED;;;AAGG;IACI,MAAM,YAAY,CAAC,IAAiB,EAAA;;QAEzC,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACnC;AAED;;;;;AAKG;AACK,IAAA,aAAa,CAAC,YAAoB,EAAA;;QAExC,MAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAElE,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,MAAM,IAAI,KAAK,CAAC,6BAA6B,YAAY,CAAA,CAAE,CAAC,CAAC;AAC9D,SAAA;AAED,QAAA,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;KACjB;AACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FileManager } from "../dev-server/file-manager";
|
|
2
|
+
import { ConfigLoader } from "./config-loader";
|
|
3
|
+
export declare class ConfigManager {
|
|
4
|
+
/**
|
|
5
|
+
* Config loader instance
|
|
6
|
+
*/
|
|
7
|
+
loader: ConfigLoader;
|
|
8
|
+
/**
|
|
9
|
+
* Constructor
|
|
10
|
+
*/
|
|
11
|
+
constructor();
|
|
12
|
+
/**
|
|
13
|
+
* Load all config files
|
|
14
|
+
*/
|
|
15
|
+
loadAll(files: FileManager[]): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Reload a config file
|
|
18
|
+
*/
|
|
19
|
+
reload(file: FileManager): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare const configManager: ConfigManager;
|
|
22
|
+
//# sourceMappingURL=config-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-manager.d.ts","sourceRoot":"","sources":["../../src/config/config-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,aAAa;IACxB;;OAEG;IACI,MAAM,eAAsB;IAEnC;;OAEG;;IAKH;;OAEG;IACU,OAAO,CAAC,KAAK,EAAE,WAAW,EAAE;IAIzC;;OAEG;IACU,MAAM,CAAC,IAAI,EAAE,WAAW;CAGtC;AAED,eAAO,MAAM,aAAa,eAAsB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {ConfigLoader}from'./config-loader.js';class ConfigManager {
|
|
2
|
+
/**
|
|
3
|
+
* Config loader instance
|
|
4
|
+
*/
|
|
5
|
+
loader = new ConfigLoader();
|
|
6
|
+
/**
|
|
7
|
+
* Constructor
|
|
8
|
+
*/
|
|
9
|
+
constructor() {
|
|
10
|
+
//
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Load all config files
|
|
14
|
+
*/
|
|
15
|
+
async loadAll(files) {
|
|
16
|
+
return this.loader.loadAll(files);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reload a config file
|
|
20
|
+
*/
|
|
21
|
+
async reload(file) {
|
|
22
|
+
return this.loader.reloadConfig(file);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const configManager = new ConfigManager();export{ConfigManager,configManager};//# sourceMappingURL=config-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-manager.js","sources":["../../src/config/config-manager.ts"],"sourcesContent":[null],"names":[],"mappings":"oDAGa,aAAa,CAAA;AACxB;;AAEG;AACI,IAAA,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;AAEnC;;AAEG;AACH,IAAA,WAAA,GAAA;;KAEC;AAED;;AAEG;IACI,MAAM,OAAO,CAAC,KAAoB,EAAA;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KACnC;AAED;;AAEG;IACI,MAAM,MAAM,CAAC,IAAiB,EAAA;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;KACvC;AACF,CAAA;AAEY,MAAA,aAAa,GAAG,IAAI,aAAa"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SpecialConfigHandler } from "./config-loader";
|
|
2
|
+
export declare class ConfigSpecialHandlers {
|
|
3
|
+
/**
|
|
4
|
+
* Handlers
|
|
5
|
+
*/
|
|
6
|
+
protected handlers: Map<string, SpecialConfigHandler>;
|
|
7
|
+
/**
|
|
8
|
+
* Register a new handler
|
|
9
|
+
*/
|
|
10
|
+
register(configName: string, handler: SpecialConfigHandler): void;
|
|
11
|
+
/**
|
|
12
|
+
* Execute handler for the given config name
|
|
13
|
+
*/
|
|
14
|
+
execute(configName: string, config: any): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare const configSpecialHandlers: ConfigSpecialHandlers;
|
|
17
|
+
//# sourceMappingURL=config-special-handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-special-handlers.d.ts","sourceRoot":"","sources":["../../src/config/config-special-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,qBAAa,qBAAqB;IAChC;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAa;IAElE;;OAEG;IACI,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB;IAIjE;;OAEG;IACU,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG;CAQrD;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
class ConfigSpecialHandlers {
|
|
2
|
+
/**
|
|
3
|
+
* Handlers
|
|
4
|
+
*/
|
|
5
|
+
handlers = new Map();
|
|
6
|
+
/**
|
|
7
|
+
* Register a new handler
|
|
8
|
+
*/
|
|
9
|
+
register(configName, handler) {
|
|
10
|
+
this.handlers.set(configName, handler);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Execute handler for the given config name
|
|
14
|
+
*/
|
|
15
|
+
async execute(configName, config) {
|
|
16
|
+
const handler = this.handlers.get(configName);
|
|
17
|
+
if (!handler) {
|
|
18
|
+
return; // do nothing
|
|
19
|
+
}
|
|
20
|
+
return handler(config);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const configSpecialHandlers = new ConfigSpecialHandlers();export{ConfigSpecialHandlers,configSpecialHandlers};//# sourceMappingURL=config-special-handlers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-special-handlers.js","sources":["../../src/config/config-special-handlers.ts"],"sourcesContent":[null],"names":[],"mappings":"MAEa,qBAAqB,CAAA;AAChC;;AAEG;AACO,IAAA,QAAQ,GAAsC,IAAI,GAAG,EAAE,CAAC;AAElE;;AAEG;IACI,QAAQ,CAAC,UAAkB,EAAE,OAA6B,EAAA;QAC/D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;KACxC;AAED;;AAEG;AACI,IAAA,MAAM,OAAO,CAAC,UAAkB,EAAE,MAAW,EAAA;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,OAAO;AACR,SAAA;AAED,QAAA,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;KACxB;AACF,CAAA;AAEY,MAAA,qBAAqB,GAAG,IAAI,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-config-files.d.ts","sourceRoot":"","sources":["../../src/config/load-config-files.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,iBAoB5D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {filesOrchestrator}from'../dev-server/files-orchestrator.js';import {Path}from'../dev-server/path.js';import {getFilesFromDirectory,getCertainFilesFromDirectory}from'../dev-server/utils.js';import'@warlock.js/logger';import'../database/models/database-log/database-log.js';import'../http/context/request-context.js';import {srcPath}from'../utils/paths.js';import'@mongez/slug';import'@mongez/supportive-is';import'@mongez/reinforcements';import {configManager}from'./config-manager.js';/**
|
|
2
|
+
* Load config files
|
|
3
|
+
* either config file names (without extensions) or true to load all config files
|
|
4
|
+
*/
|
|
5
|
+
async function loadConfigFiles(config) {
|
|
6
|
+
let relativePaths = [];
|
|
7
|
+
if (config === true) {
|
|
8
|
+
const configFilesAbsulatePaths = await getFilesFromDirectory(srcPath("config"));
|
|
9
|
+
relativePaths = configFilesAbsulatePaths.map((path) => Path.toRelative(path));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
// define only the given config files
|
|
13
|
+
const configFilesAbsulatePaths = await getCertainFilesFromDirectory(srcPath("config"), config);
|
|
14
|
+
relativePaths = configFilesAbsulatePaths.map((path) => Path.toRelative(path));
|
|
15
|
+
}
|
|
16
|
+
const configFiles = await Promise.all(relativePaths.map((relativePath) => filesOrchestrator.add(relativePath)));
|
|
17
|
+
filesOrchestrator.specialFilesCollector.collect(filesOrchestrator.files);
|
|
18
|
+
await configManager.loadAll(configFiles);
|
|
19
|
+
}export{loadConfigFiles};//# sourceMappingURL=load-config-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-config-files.js","sources":["../../src/config/load-config-files.ts"],"sourcesContent":[null],"names":[],"mappings":"6eAMA;;;AAGG;AACI,eAAe,eAAe,CAAC,MAAuB,EAAA;IAC3D,IAAI,aAAa,GAAa,EAAE,CAAC;IACjC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,MAAM,wBAAwB,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAChF,QAAA,aAAa,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,KAAA;AAAM,SAAA;;AAGL,QAAA,MAAM,wBAAwB,GAAG,MAAM,4BAA4B,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/F,QAAA,aAAa,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC/E,KAAA;IAED,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,GAAG,CACnC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,KAAK,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CACzE,CAAC;IAEF,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;AAEzE,IAAA,MAAM,aAAa,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;AAC3C"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config registry interface.
|
|
3
|
+
*
|
|
4
|
+
* Extended via module augmentation by generated typings.
|
|
5
|
+
* Each key represents a config file name (e.g., "database", "app").
|
|
6
|
+
*
|
|
7
|
+
* @example Generated augmentation:
|
|
8
|
+
* ```typescript
|
|
9
|
+
* declare module "@warlock.js/core" {
|
|
10
|
+
* interface ConfigRegistry {
|
|
11
|
+
* app: true;
|
|
12
|
+
* database: true;
|
|
13
|
+
* storage: true;
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export interface ConfigRegistry {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Config name type.
|
|
22
|
+
*
|
|
23
|
+
* Extracts config names from the registry interface.
|
|
24
|
+
* Falls back to `string` if no configs are registered.
|
|
25
|
+
*/
|
|
26
|
+
export type ConfigName = keyof ConfigRegistry extends never ? string : keyof ConfigRegistry;
|
|
27
|
+
/**
|
|
28
|
+
* Config key registry interface.
|
|
29
|
+
*
|
|
30
|
+
* Extended via module augmentation by generated typings.
|
|
31
|
+
* Each key is a dot-notation path (e.g., "database.host").
|
|
32
|
+
*
|
|
33
|
+
* @example Generated augmentation:
|
|
34
|
+
* ```typescript
|
|
35
|
+
* declare module "@warlock.js/core" {
|
|
36
|
+
* interface ConfigKeyRegistry {
|
|
37
|
+
* "app.appName": true;
|
|
38
|
+
* "database.host": true;
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export interface ConfigKeyRegistry {
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Config key type.
|
|
47
|
+
*
|
|
48
|
+
* Extracts config key paths from the registry interface.
|
|
49
|
+
* Falls back to `string` if no keys are registered.
|
|
50
|
+
*/
|
|
51
|
+
export type ConfigKey = keyof ConfigKeyRegistry extends never ? string : keyof ConfigKeyRegistry;
|
|
52
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,cAAc;CAAG;AAElC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,cAAc,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,cAAc,CAAC;AAE5F;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,iBAAiB;CAAG;AAErC;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,iBAAiB,SAAS,KAAK,GAAG,MAAM,GAAG,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { Connector, ConnectorName } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Base Connector Class
|
|
4
|
+
* Provides common functionality for all connectors
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class BaseConnector implements Connector {
|
|
7
|
+
/**
|
|
8
|
+
* Connector name
|
|
9
|
+
*/
|
|
10
|
+
abstract readonly name: ConnectorName;
|
|
11
|
+
/**
|
|
12
|
+
* Initialization priority
|
|
13
|
+
*/
|
|
14
|
+
abstract readonly priority: number;
|
|
15
|
+
/**
|
|
16
|
+
* Files that trigger restart when changed
|
|
17
|
+
* Use relative paths
|
|
18
|
+
*/
|
|
19
|
+
protected abstract readonly watchedFiles: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Whether the connector is currently active
|
|
22
|
+
*/
|
|
23
|
+
protected active: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Check if connector is active
|
|
26
|
+
*/
|
|
27
|
+
isActive(): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Initialize the connector
|
|
30
|
+
*/
|
|
31
|
+
abstract start(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Restart the connector
|
|
34
|
+
*/
|
|
35
|
+
restart(): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Shutdown the connector
|
|
38
|
+
*/
|
|
39
|
+
abstract shutdown(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* Determine if connector should restart based on changed files
|
|
42
|
+
*/
|
|
43
|
+
shouldRestart(changedFiles: string[]): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Check if a file is watched by this connector
|
|
46
|
+
*/
|
|
47
|
+
protected isWatchedFile(file: string): boolean;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=base-connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/base-connector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExD;;;GAGG;AACH,8BAAsB,aAAc,YAAW,SAAS;IACtD;;OAEG;IACH,kBAAyB,IAAI,EAAE,aAAa,CAAC;IAE7C;;OAEG;IACH,kBAAyB,QAAQ,EAAE,MAAM,CAAC;IAE1C;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAEnD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAS;IAElC;;OAEG;IACI,QAAQ,IAAI,OAAO;IAI1B;;OAEG;aACa,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtC;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrC;;OAEG;aACa,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzC;;OAEG;IACI,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO;IAKrD;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAkB/C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {Path}from'../dev-server/path.js';/**
|
|
2
|
+
* Base Connector Class
|
|
3
|
+
* Provides common functionality for all connectors
|
|
4
|
+
*/
|
|
5
|
+
class BaseConnector {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the connector is currently active
|
|
8
|
+
*/
|
|
9
|
+
active = false;
|
|
10
|
+
/**
|
|
11
|
+
* Check if connector is active
|
|
12
|
+
*/
|
|
13
|
+
isActive() {
|
|
14
|
+
return this.active;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Restart the connector
|
|
18
|
+
*/
|
|
19
|
+
async restart() {
|
|
20
|
+
await this.shutdown();
|
|
21
|
+
await this.start();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Determine if connector should restart based on changed files
|
|
25
|
+
*/
|
|
26
|
+
shouldRestart(changedFiles) {
|
|
27
|
+
// Check if any changed file matches watched files
|
|
28
|
+
return changedFiles.some((file) => this.isWatchedFile(file));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Check if a file is watched by this connector
|
|
32
|
+
*/
|
|
33
|
+
isWatchedFile(file) {
|
|
34
|
+
const relativePath = Path.toRelative(file);
|
|
35
|
+
return this.watchedFiles.some((watchedFile) => {
|
|
36
|
+
// Exact match
|
|
37
|
+
if (watchedFile === relativePath) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
// Pattern match (e.g., "config/*.ts")
|
|
41
|
+
if (watchedFile.includes("*")) {
|
|
42
|
+
const pattern = new RegExp("^" + watchedFile.replace(/\*/g, ".*") + "$");
|
|
43
|
+
return pattern.test(relativePath);
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}export{BaseConnector};//# sourceMappingURL=base-connector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-connector.js","sources":["../../src/connectors/base-connector.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAGA;;;AAGG;MACmB,aAAa,CAAA;AAiBjC;;AAEG;IACO,MAAM,GAAY,KAAK,CAAC;AAElC;;AAEG;IACI,QAAQ,GAAA;QACb,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;AAOD;;AAEG;AACI,IAAA,MAAM,OAAO,GAAA;AAClB,QAAA,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;AACtB,QAAA,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;KACpB;AAOD;;AAEG;AACI,IAAA,aAAa,CAAC,YAAsB,EAAA;;AAEzC,QAAA,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;KAC9D;AAED;;AAEG;AACO,IAAA,aAAa,CAAC,IAAY,EAAA;QAClC,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,WAAW,KAAI;;YAE5C,IAAI,WAAW,KAAK,YAAY,EAAE;AAChC,gBAAA,OAAO,IAAI,CAAC;AACb,aAAA;;AAGD,YAAA,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC7B,gBAAA,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;AACzE,gBAAA,OAAO,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACnC,aAAA;AAED,YAAA,OAAO,KAAK,CAAC;AACf,SAAC,CAAC,CAAC;KACJ;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseConnector } from "./base-connector";
|
|
2
|
+
import { ConnectorPriority } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Cache Connector
|
|
5
|
+
* Manages cache engine connection lifecycle
|
|
6
|
+
*/
|
|
7
|
+
export declare class CacheConnector extends BaseConnector {
|
|
8
|
+
readonly name = "cache";
|
|
9
|
+
readonly priority = ConnectorPriority.CACHE;
|
|
10
|
+
/**
|
|
11
|
+
* Files that trigger cache restart
|
|
12
|
+
*/
|
|
13
|
+
protected readonly watchedFiles: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Initialize cache connection
|
|
16
|
+
*/
|
|
17
|
+
start(): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Shutdown cache connection
|
|
20
|
+
*/
|
|
21
|
+
shutdown(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=cache-connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/cache-connector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,cAAe,SAAQ,aAAa;IAC/C,SAAgB,IAAI,WAAW;IAC/B,SAAgB,QAAQ,2BAA2B;IAEnD;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,WAAmD;IAElF;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAWvC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import config from'@mongez/config';import {cache}from'@warlock.js/cache';import {BaseConnector}from'./base-connector.js';import {ConnectorPriority}from'./types.js';/**
|
|
2
|
+
* Cache Connector
|
|
3
|
+
* Manages cache engine connection lifecycle
|
|
4
|
+
*/
|
|
5
|
+
class CacheConnector extends BaseConnector {
|
|
6
|
+
name = "cache";
|
|
7
|
+
priority = ConnectorPriority.CACHE;
|
|
8
|
+
/**
|
|
9
|
+
* Files that trigger cache restart
|
|
10
|
+
*/
|
|
11
|
+
watchedFiles = ["src/config/cache.ts", "src/config/cache.tsx"];
|
|
12
|
+
/**
|
|
13
|
+
* Initialize cache connection
|
|
14
|
+
*/
|
|
15
|
+
async start() {
|
|
16
|
+
const cacheConfig = config.get("cache");
|
|
17
|
+
if (!cacheConfig)
|
|
18
|
+
return;
|
|
19
|
+
cache.setCacheConfigurations(cacheConfig);
|
|
20
|
+
await cache.init();
|
|
21
|
+
this.active = true;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Shutdown cache connection
|
|
25
|
+
*/
|
|
26
|
+
async shutdown() {
|
|
27
|
+
if (!this.active) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
// TODO: Implement actual cache disconnection
|
|
31
|
+
// - Close all active connections
|
|
32
|
+
// - Clean up resources
|
|
33
|
+
this.active = false;
|
|
34
|
+
}
|
|
35
|
+
}export{CacheConnector};//# sourceMappingURL=cache-connector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-connector.js","sources":["../../src/connectors/cache-connector.ts"],"sourcesContent":[null],"names":[],"mappings":"oKAKA;;;AAGG;AACG,MAAO,cAAe,SAAQ,aAAa,CAAA;IAC/B,IAAI,GAAG,OAAO,CAAC;AACf,IAAA,QAAQ,GAAG,iBAAiB,CAAC,KAAK,CAAC;AAEnD;;AAEG;AACgB,IAAA,YAAY,GAAG,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;AAElF;;AAEG;AACI,IAAA,MAAM,KAAK,GAAA;QAChB,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAExC,QAAA,IAAI,CAAC,WAAW;YAAE,OAAO;AAEzB,QAAA,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;AAE1C,QAAA,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;AAEnB,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;KACpB;AAED;;AAEG;AACI,IAAA,MAAM,QAAQ,GAAA;AACnB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,OAAO;AACR,SAAA;;;;AAMD,QAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;KACrB;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseConnector } from "./base-connector";
|
|
2
|
+
import { ConnectorPriority } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Communicator Connector
|
|
5
|
+
* Manages message broker connection lifecycle using @warlock.js/herald
|
|
6
|
+
*/
|
|
7
|
+
export declare class CommunicatorConnector extends BaseConnector {
|
|
8
|
+
readonly name = "communicator";
|
|
9
|
+
readonly priority = ConnectorPriority.COMMUNICATOR;
|
|
10
|
+
/**
|
|
11
|
+
* Files that trigger communicator restart
|
|
12
|
+
*/
|
|
13
|
+
protected readonly watchedFiles: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Initialize communicator connection
|
|
16
|
+
*/
|
|
17
|
+
start(): Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Shutdown communicator connection
|
|
20
|
+
*/
|
|
21
|
+
shutdown(): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=communicator-connector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicator-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/communicator-connector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,aAAa;IACtD,SAAgB,IAAI,kBAAkB;IACtC,SAAgB,QAAQ,kCAAkC;IAE1D;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,WAI7B;IAEF;;OAEG;IACU,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCnC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CA0BvC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import config from'@mongez/config';import {log}from'@warlock.js/logger';import {BaseConnector}from'./base-connector.js';import {ConnectorPriority}from'./types.js';/**
|
|
2
|
+
* Communicator Connector
|
|
3
|
+
* Manages message broker connection lifecycle using @warlock.js/herald
|
|
4
|
+
*/
|
|
5
|
+
class CommunicatorConnector extends BaseConnector {
|
|
6
|
+
name = "communicator";
|
|
7
|
+
priority = ConnectorPriority.COMMUNICATOR;
|
|
8
|
+
/**
|
|
9
|
+
* Files that trigger communicator restart
|
|
10
|
+
*/
|
|
11
|
+
watchedFiles = [
|
|
12
|
+
".env",
|
|
13
|
+
"src/config/communicator.ts",
|
|
14
|
+
"src/config/communicator.tsx",
|
|
15
|
+
];
|
|
16
|
+
/**
|
|
17
|
+
* Initialize communicator connection
|
|
18
|
+
*/
|
|
19
|
+
async start() {
|
|
20
|
+
const communicatorConfig = config.get("communicator");
|
|
21
|
+
if (!communicatorConfig) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const { connectToCommunicator } = await import('@warlock.js/herald');
|
|
26
|
+
log.info(`communicator.${communicatorConfig.driver}`, "connection", "Connecting to communicator");
|
|
27
|
+
await connectToCommunicator(communicatorConfig);
|
|
28
|
+
log.success(`communicator.${communicatorConfig.driver}`, "connection", "Connected to communicator");
|
|
29
|
+
this.active = true;
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
console.error("Failed to connect to communicator:", error);
|
|
33
|
+
log.error(`communicator.${communicatorConfig.driver}`, "connection", "Failed to connect to communicator");
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Shutdown communicator connection
|
|
39
|
+
*/
|
|
40
|
+
async shutdown() {
|
|
41
|
+
if (!this.active) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
try {
|
|
45
|
+
const { communicatorRegistry } = await import('@warlock.js/herald');
|
|
46
|
+
// Disconnect all registered communicators
|
|
47
|
+
const communicators = communicatorRegistry.getAll();
|
|
48
|
+
for (const communicator of communicators) {
|
|
49
|
+
if (communicator.driver.isConnected) {
|
|
50
|
+
await communicator.driver.disconnect();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
// Clear the registry for clean restart
|
|
54
|
+
communicatorRegistry.clear();
|
|
55
|
+
this.active = false;
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
console.error("Failed to disconnect from communicator:", error);
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}export{CommunicatorConnector};//# sourceMappingURL=communicator-connector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communicator-connector.js","sources":["../../src/connectors/communicator-connector.ts"],"sourcesContent":[null],"names":[],"mappings":"mKAKA;;;AAGG;AACG,MAAO,qBAAsB,SAAQ,aAAa,CAAA;IACtC,IAAI,GAAG,cAAc,CAAC;AACtB,IAAA,QAAQ,GAAG,iBAAiB,CAAC,YAAY,CAAC;AAE1D;;AAEG;AACgB,IAAA,YAAY,GAAG;QAChC,MAAM;QACN,4BAA4B;QAC5B,6BAA6B;KAC9B,CAAC;AAEF;;AAEG;AACI,IAAA,MAAM,KAAK,GAAA;QAChB,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAEtD,IAAI,CAAC,kBAAkB,EAAE;YACvB,OAAO;AACR,SAAA;QAED,IAAI;YACF,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAErE,YAAA,GAAG,CAAC,IAAI,CACN,CAAA,aAAA,EAAgB,kBAAkB,CAAC,MAAM,CAAA,CAAE,EAC3C,YAAY,EACZ,4BAA4B,CAC7B,CAAC;AACF,YAAA,MAAM,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAChD,YAAA,GAAG,CAAC,OAAO,CACT,CAAA,aAAA,EAAgB,kBAAkB,CAAC,MAAM,CAAA,CAAE,EAC3C,YAAY,EACZ,2BAA2B,CAC5B,CAAC;AACF,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;AACpB,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;AAC3D,YAAA,GAAG,CAAC,KAAK,CACP,CAAA,aAAA,EAAgB,kBAAkB,CAAC,MAAM,CAAA,CAAE,EAC3C,YAAY,EACZ,mCAAmC,CACpC,CAAC;AACF,YAAA,MAAM,KAAK,CAAC;AACb,SAAA;KACF;AAED;;AAEG;AACI,IAAA,MAAM,QAAQ,GAAA;AACnB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,OAAO;AACR,SAAA;QAED,IAAI;YACF,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,OAAO,oBAAoB,CAAC,CAAC;;AAGpE,YAAA,MAAM,aAAa,GAAG,oBAAoB,CAAC,MAAM,EAAE,CAAC;AAEpD,YAAA,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;AACxC,gBAAA,IAAI,YAAY,CAAC,MAAM,CAAC,WAAW,EAAE;AACnC,oBAAA,MAAM,YAAY,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;AACxC,iBAAA;AACF,aAAA;;YAGD,oBAAoB,CAAC,KAAK,EAAE,CAAC;AAE7B,YAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;AACrB,SAAA;AAAC,QAAA,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;AAChE,YAAA,MAAM,KAAK,CAAC;AACb,SAAA;KACF;AACF"}
|