@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 @@
|
|
|
1
|
+
{"version":3,"file":"commands-loader.d.ts","sourceRoot":"","sources":["../../src/cli/commands-loader.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,qBAAa,iBAAiB;IAC5B;;OAEG;IACU,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IAkBzE;;;OAGG;IACU,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;IAgB7C;;OAEG;IACU,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;CAKzE;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {filesOrchestrator}from'../dev-server/files-orchestrator.js';import {Path}from'../dev-server/path.js';import {getFilesFromDirectory}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 {isMatchingCommandName}from'./cli-commands.utils.js';class CLICommandsLoader {
|
|
2
|
+
/**
|
|
3
|
+
* Locate command by name
|
|
4
|
+
*/
|
|
5
|
+
async locate(commandName) {
|
|
6
|
+
const files = await getFilesFromDirectory(srcPath("app"), "**/commands/*.{ts,tsx}");
|
|
7
|
+
// now convert them into relative paths
|
|
8
|
+
const relativeFiles = files.map((path) => Path.toRelative(path));
|
|
9
|
+
for (const relativeFile of relativeFiles) {
|
|
10
|
+
const command = await this.load(relativeFile);
|
|
11
|
+
if (command) {
|
|
12
|
+
command.$relativePath(relativeFile);
|
|
13
|
+
if (isMatchingCommandName(command.name, commandName)) {
|
|
14
|
+
return command;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Scan all project commands and return them
|
|
22
|
+
* Used for warm cache functionality
|
|
23
|
+
*/
|
|
24
|
+
async scanAll() {
|
|
25
|
+
const files = await getFilesFromDirectory(srcPath("app"), "**/commands/*.{ts,tsx}");
|
|
26
|
+
const relativeFiles = files.map((path) => Path.toRelative(path));
|
|
27
|
+
const commands = [];
|
|
28
|
+
for (const relativeFile of relativeFiles) {
|
|
29
|
+
const command = await this.load(relativeFile);
|
|
30
|
+
if (command) {
|
|
31
|
+
command.$relativePath(relativeFile);
|
|
32
|
+
commands.push(command);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return commands;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Load command from a relative path
|
|
39
|
+
*/
|
|
40
|
+
async load(relativePath) {
|
|
41
|
+
const output = await filesOrchestrator.load(relativePath);
|
|
42
|
+
return output?.default;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const cliCommandsLoader = new CLICommandsLoader();export{CLICommandsLoader,cliCommandsLoader};//# sourceMappingURL=commands-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands-loader.js","sources":["../../src/cli/commands-loader.ts"],"sourcesContent":[null],"names":[],"mappings":"keAOa,iBAAiB,CAAA;AAC5B;;AAEG;IACI,MAAM,MAAM,CAAC,WAAmB,EAAA;AACrC,QAAA,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,CAAC;;AAEpF,QAAA,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAEjE,QAAA,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;YACxC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAC9C,YAAA,IAAI,OAAO,EAAE;AACX,gBAAA,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;gBACpC,IAAI,qBAAqB,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;AACpD,oBAAA,OAAO,OAAO,CAAC;AAChB,iBAAA;AACF,aAAA;AACF,SAAA;QAED,OAAO;KACR;AAED;;;AAGG;AACI,IAAA,MAAM,OAAO,GAAA;AAClB,QAAA,MAAM,KAAK,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,wBAAwB,CAAC,CAAC;AACpF,QAAA,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAiB,EAAE,CAAC;AAElC,QAAA,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;YACxC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAC9C,YAAA,IAAI,OAAO,EAAE;AACX,gBAAA,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AACpC,gBAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACxB,aAAA;AACF,SAAA;AAED,QAAA,OAAO,QAAQ,CAAC;KACjB;AAED;;AAEG;IACI,MAAM,IAAI,CAAC,YAAoB,EAAA;QACpC,MAAM,MAAM,GAAG,MAAM,iBAAiB,CAAC,IAAI,CAA0B,YAAY,CAAC,CAAC;QAEnF,OAAO,MAAM,EAAE,OAAO,CAAC;KACxB;AACF,CAAA;AAEY,MAAA,iBAAiB,GAAG,IAAI,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-cli-commands.d.ts","sourceRoot":"","sources":["../../src/cli/framework-cli-commands.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,iBAAiB,sCA+B7B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {addCommand}from'./commands/add.command.js';import {buildCommand}from'./commands/build.command.js';import {createDatabaseCommand}from'./commands/create-database.command.js';import {devServerCommand}from'./commands/dev-server.command.js';import {dropTablesCommand}from'./commands/drop-tables.command.js';import {generateCommand,generateModuleCommand,generateControllerCommand,generateServiceCommand,generateModelCommand,generateRepositoryCommand,generateResourceCommand,generateValidationCommand,generateMigrationCommand}from'./commands/generate/generate.command.js';import {migrateCommand}from'./commands/migrate.command.js';import {seedCommand}from'./commands/seed.command.js';import {startProductionCommand}from'./commands/start-production.command.js';import {storagePutCommand}from'./commands/storage-put.command.js';import {typingsGeneratorCommand}from'./commands/typings-generator.command.js';const frameworkCommands = [
|
|
2
|
+
// development commands
|
|
3
|
+
devServerCommand,
|
|
4
|
+
typingsGeneratorCommand,
|
|
5
|
+
// production commands
|
|
6
|
+
buildCommand,
|
|
7
|
+
startProductionCommand,
|
|
8
|
+
// database commands
|
|
9
|
+
migrateCommand,
|
|
10
|
+
seedCommand,
|
|
11
|
+
createDatabaseCommand,
|
|
12
|
+
dropTablesCommand,
|
|
13
|
+
// generation/installation commands
|
|
14
|
+
addCommand,
|
|
15
|
+
// scaffolding commands
|
|
16
|
+
generateCommand,
|
|
17
|
+
generateModuleCommand,
|
|
18
|
+
generateControllerCommand,
|
|
19
|
+
generateServiceCommand,
|
|
20
|
+
generateModelCommand,
|
|
21
|
+
generateRepositoryCommand,
|
|
22
|
+
generateResourceCommand,
|
|
23
|
+
generateValidationCommand,
|
|
24
|
+
generateMigrationCommand,
|
|
25
|
+
// storage commands
|
|
26
|
+
storagePutCommand,
|
|
27
|
+
];export{frameworkCommands};//# sourceMappingURL=framework-cli-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework-cli-commands.js","sources":["../../src/cli/framework-cli-commands.ts"],"sourcesContent":[null],"names":[],"mappings":"y4BAsBa,MAAA,iBAAiB,GAAG;;IAE/B,gBAAgB;IAChB,uBAAuB;;IAGvB,YAAY;IACZ,sBAAsB;;IAGtB,cAAc;IACd,WAAW;IACX,qBAAqB;IACrB,iBAAiB;;IAGjB,UAAU;;IAGV,eAAe;IACf,qBAAqB;IACrB,yBAAyB;IACzB,sBAAsB;IACtB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,yBAAyB;IACzB,wBAAwB;;IAGxB,iBAAiB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAE9B,cAAc,SAAS,CAAC"}
|
package/esm/cli/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CLICommand,command}from'./cli-command.js';//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type ParsedCliArgs = {
|
|
2
|
+
name: string;
|
|
3
|
+
args: string[];
|
|
4
|
+
options: Record<string, string | boolean>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Parse CLI arguments from process.argv
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* parseCliArgs(["node", "warlock", "migrate", "--rollback", "file.ts"])
|
|
11
|
+
* // Returns: { command: "migrate", args: ["file.ts"], options: { rollback: true } }
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* parseCliArgs(["node", "warlock", "dev", "--port=3000", "--fresh"])
|
|
15
|
+
* // Returns: { command: "dev", args: [], options: { port: "3000", fresh: true } }
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseCliArgs(argv: string[]): ParsedCliArgs;
|
|
18
|
+
//# sourceMappingURL=parse-cli-args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-cli-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-cli-args.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,CAsE1D"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {toCamelCase}from'@mongez/reinforcements';/**
|
|
2
|
+
* Parse CLI arguments from process.argv
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* parseCliArgs(["node", "warlock", "migrate", "--rollback", "file.ts"])
|
|
6
|
+
* // Returns: { command: "migrate", args: ["file.ts"], options: { rollback: true } }
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* parseCliArgs(["node", "warlock", "dev", "--port=3000", "--fresh"])
|
|
10
|
+
* // Returns: { command: "dev", args: [], options: { port: "3000", fresh: true } }
|
|
11
|
+
*/
|
|
12
|
+
function parseCliArgs(argv) {
|
|
13
|
+
// Command is at index 2 (after "node" and script path)
|
|
14
|
+
// But if index 2 starts with "-", it's an option, not a command
|
|
15
|
+
const potentialCommand = argv[2] || "";
|
|
16
|
+
const isFirstArgOption = potentialCommand.startsWith("-");
|
|
17
|
+
const command = isFirstArgOption ? "" : potentialCommand;
|
|
18
|
+
const args = [];
|
|
19
|
+
const options = {};
|
|
20
|
+
// Parse arguments starting from index 3 (or 2 if first arg was an option)
|
|
21
|
+
const startIndex = isFirstArgOption ? 2 : 3;
|
|
22
|
+
for (let i = startIndex; i < argv.length; i++) {
|
|
23
|
+
const arg = argv[i];
|
|
24
|
+
if (arg.startsWith("--")) {
|
|
25
|
+
// Long option: --key or --key=value
|
|
26
|
+
const withoutDashes = arg.slice(2);
|
|
27
|
+
const equalIndex = withoutDashes.indexOf("=");
|
|
28
|
+
if (equalIndex !== -1) {
|
|
29
|
+
// --key=value format
|
|
30
|
+
const key = toCamelCase(withoutDashes.slice(0, equalIndex));
|
|
31
|
+
const value = withoutDashes.slice(equalIndex + 1);
|
|
32
|
+
options[key] = value;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
// --key format (check if next arg is a value)
|
|
36
|
+
const key = toCamelCase(withoutDashes);
|
|
37
|
+
const nextArg = argv[i + 1];
|
|
38
|
+
// If next arg exists and doesn't start with -, treat it as value
|
|
39
|
+
if (nextArg && !nextArg.startsWith("-")) {
|
|
40
|
+
options[key] = nextArg;
|
|
41
|
+
i++; // Skip next arg
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
options[key] = true;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
else if (arg.startsWith("-") && arg.length > 1) {
|
|
49
|
+
// Short option: -f, -t=value, or -abc (multiple flags)
|
|
50
|
+
const flags = arg.slice(1);
|
|
51
|
+
const equalIndex = flags.indexOf("=");
|
|
52
|
+
if (equalIndex !== -1) {
|
|
53
|
+
// -t=value format
|
|
54
|
+
const key = toCamelCase(flags.slice(0, equalIndex));
|
|
55
|
+
const value = flags.slice(equalIndex + 1);
|
|
56
|
+
options[key] = value;
|
|
57
|
+
}
|
|
58
|
+
else if (flags.length === 1) {
|
|
59
|
+
// Single flag: -f
|
|
60
|
+
const nextArg = argv[i + 1];
|
|
61
|
+
if (nextArg && !nextArg.startsWith("-")) {
|
|
62
|
+
options[toCamelCase(flags)] = nextArg;
|
|
63
|
+
i++; // Skip next arg
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
options[toCamelCase(flags)] = true;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
// Multiple flags: -abc becomes { a: true, b: true, c: true }
|
|
71
|
+
for (const flag of flags) {
|
|
72
|
+
options[toCamelCase(flag)] = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
// Positional argument
|
|
78
|
+
args.push(arg);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return { name: command, args, options };
|
|
82
|
+
}export{parseCliArgs};//# sourceMappingURL=parse-cli-args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-cli-args.js","sources":["../../src/cli/parse-cli-args.ts"],"sourcesContent":[null],"names":[],"mappings":"iDAQA;;;;;;;;;;AAUG;AACG,SAAU,YAAY,CAAC,IAAc,EAAA;;;IAGzC,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,gBAAgB,GAAG,EAAE,GAAG,gBAAgB,CAAC;IACzD,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAqC,EAAE,CAAC;;IAGrD,MAAM,UAAU,GAAG,gBAAgB,GAAG,CAAC,GAAG,CAAC,CAAC;AAC5C,IAAA,KAAK,IAAI,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAEpB,QAAA,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;;YAExB,MAAM,aAAa,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACnC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAE9C,YAAA,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE;;AAErB,gBAAA,MAAM,GAAG,GAAG,WAAW,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;gBAC5D,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;AAClD,gBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACtB,aAAA;AAAM,iBAAA;;AAEL,gBAAA,MAAM,GAAG,GAAG,WAAW,CAAC,aAAa,CAAC,CAAC;gBACvC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;;gBAG5B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AACvC,oBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;oBACvB,CAAC,EAAE,CAAC;AACL,iBAAA;AAAM,qBAAA;AACL,oBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACrB,iBAAA;AACF,aAAA;AACF,SAAA;AAAM,aAAA,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE;;YAEhD,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3B,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAEtC,YAAA,IAAI,UAAU,KAAK,CAAC,CAAC,EAAE;;AAErB,gBAAA,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;gBACpD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;AAC1C,gBAAA,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACtB,aAAA;AAAM,iBAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;;gBAE7B,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBAE5B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBACvC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,OAAO,CAAC;oBACtC,CAAC,EAAE,CAAC;AACL,iBAAA;AAAM,qBAAA;oBACL,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;AACpC,iBAAA;AACF,aAAA;AAAM,iBAAA;;AAEL,gBAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;oBACxB,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;AACnC,iBAAA;AACF,aAAA;AACF,SAAA;AAAM,aAAA;;AAEL,YAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAChB,SAAA;AACF,KAAA;IAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/cli/start.ts"],"names":[],"mappings":""}
|
package/esm/cli/start.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","sources":["../../src/cli/start.ts"],"sourcesContent":[null],"names":[],"mappings":"2DAEA,MAAM,eAAe,GAAG,IAAI,kBAAkB,EAAE,CAAC;AACjD,MAAM,eAAe,CAAC,KAAK,EAAE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String similarity utilities for CLI command suggestions
|
|
3
|
+
* Uses Levenshtein distance algorithm for fuzzy matching
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Calculate the Levenshtein distance between two strings
|
|
7
|
+
* Lower distance = more similar
|
|
8
|
+
*
|
|
9
|
+
* @param str1 - First string
|
|
10
|
+
* @param str2 - Second string
|
|
11
|
+
* @returns Distance (number of edits required to transform str1 to str2)
|
|
12
|
+
*/
|
|
13
|
+
export declare function levenshteinDistance(str1: string, str2: string): number;
|
|
14
|
+
/**
|
|
15
|
+
* Suggestion result with similarity score
|
|
16
|
+
*/
|
|
17
|
+
export type Suggestion = {
|
|
18
|
+
/** The suggested value */
|
|
19
|
+
value: string;
|
|
20
|
+
/** Distance score (lower = more similar) */
|
|
21
|
+
distance: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Find similar strings from a list
|
|
25
|
+
*
|
|
26
|
+
* @param input - The input string to find matches for
|
|
27
|
+
* @param candidates - List of candidate strings
|
|
28
|
+
* @param maxDistance - Maximum distance to consider (default: 3)
|
|
29
|
+
* @param maxResults - Maximum number of results to return (default: 3)
|
|
30
|
+
* @returns Array of suggestions sorted by similarity
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* findSimilar("biuld", ["build", "dev", "start", "test"])
|
|
35
|
+
* // Returns: [{ value: "build", distance: 1 }]
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare function findSimilar(input: string, candidates: string[], maxDistance?: number, maxResults?: number): Suggestion[];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a string starts with any of the given prefixes
|
|
41
|
+
* Useful for command name matching
|
|
42
|
+
*/
|
|
43
|
+
export declare function startsWithAny(str: string, prefixes: string[]): boolean;
|
|
44
|
+
//# sourceMappingURL=string-similarity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-similarity.d.ts","sourceRoot":"","sources":["../../src/cli/string-similarity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAyBtE;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,0BAA0B;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAAE,EACpB,WAAW,GAAE,MAAU,EACvB,UAAU,GAAE,MAAU,GACrB,UAAU,EAAE,CAed;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAEtE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String similarity utilities for CLI command suggestions
|
|
3
|
+
* Uses Levenshtein distance algorithm for fuzzy matching
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Calculate the Levenshtein distance between two strings
|
|
7
|
+
* Lower distance = more similar
|
|
8
|
+
*
|
|
9
|
+
* @param str1 - First string
|
|
10
|
+
* @param str2 - Second string
|
|
11
|
+
* @returns Distance (number of edits required to transform str1 to str2)
|
|
12
|
+
*/
|
|
13
|
+
function levenshteinDistance(str1, str2) {
|
|
14
|
+
const s1 = str1.toLowerCase();
|
|
15
|
+
const s2 = str2.toLowerCase();
|
|
16
|
+
const len1 = s1.length;
|
|
17
|
+
const len2 = s2.length;
|
|
18
|
+
// Create matrix
|
|
19
|
+
const matrix = Array.from({ length: len1 + 1 }, (_, i) => Array.from({ length: len2 + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
|
|
20
|
+
// Fill matrix
|
|
21
|
+
for (let i = 1; i <= len1; i++) {
|
|
22
|
+
for (let j = 1; j <= len2; j++) {
|
|
23
|
+
const cost = s1[i - 1] === s2[j - 1] ? 0 : 1;
|
|
24
|
+
matrix[i][j] = Math.min(matrix[i - 1][j] + 1, // deletion
|
|
25
|
+
matrix[i][j - 1] + 1, // insertion
|
|
26
|
+
matrix[i - 1][j - 1] + cost);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return matrix[len1][len2];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Find similar strings from a list
|
|
33
|
+
*
|
|
34
|
+
* @param input - The input string to find matches for
|
|
35
|
+
* @param candidates - List of candidate strings
|
|
36
|
+
* @param maxDistance - Maximum distance to consider (default: 3)
|
|
37
|
+
* @param maxResults - Maximum number of results to return (default: 3)
|
|
38
|
+
* @returns Array of suggestions sorted by similarity
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```typescript
|
|
42
|
+
* findSimilar("biuld", ["build", "dev", "start", "test"])
|
|
43
|
+
* // Returns: [{ value: "build", distance: 1 }]
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
function findSimilar(input, candidates, maxDistance = 3, maxResults = 3) {
|
|
47
|
+
const results = [];
|
|
48
|
+
for (const candidate of candidates) {
|
|
49
|
+
const distance = levenshteinDistance(input, candidate);
|
|
50
|
+
if (distance <= maxDistance && distance > 0) {
|
|
51
|
+
results.push({ value: candidate, distance });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// Sort by distance (most similar first)
|
|
55
|
+
results.sort((a, b) => a.distance - b.distance);
|
|
56
|
+
return results.slice(0, maxResults);
|
|
57
|
+
}export{findSimilar,levenshteinDistance};//# sourceMappingURL=string-similarity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-similarity.js","sources":["../../src/cli/string-similarity.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;AAGG;AAEH;;;;;;;AAOG;AACa,SAAA,mBAAmB,CAAC,IAAY,EAAE,IAAY,EAAA;AAC5D,IAAA,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAC9B,IAAA,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAE9B,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC;AACvB,IAAA,MAAM,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC;;AAGvB,IAAA,MAAM,MAAM,GAAe,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAC/D,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAC5E,CAAC;;IAGF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,EAAE;QAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,EAAE,EAAE;YAC9B,MAAM,IAAI,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CACrB,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;YACpB,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;AACpB,YAAA,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAC5B,CAAC;AACH,SAAA;AACF,KAAA;AAED,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAYD;;;;;;;;;;;;;;AAcG;AACG,SAAU,WAAW,CACzB,KAAa,EACb,UAAoB,EACpB,WAAsB,GAAA,CAAC,EACvB,UAAA,GAAqB,CAAC,EAAA;IAEtB,MAAM,OAAO,GAAiB,EAAE,CAAC;AAEjC,IAAA,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;QAClC,MAAM,QAAQ,GAAG,mBAAmB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAEvD,QAAA,IAAI,QAAQ,IAAI,WAAW,IAAI,QAAQ,GAAG,CAAC,EAAE;YAC3C,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC9C,SAAA;AACF,KAAA;;AAGD,IAAA,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;IAEhD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACtC"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview CLI2 Type Definitions
|
|
3
|
+
* @description Core type definitions for the Warlock.js CLI v2 system.
|
|
4
|
+
* These types define the structure for commands, options, preloading, and actions.
|
|
5
|
+
*/
|
|
6
|
+
import { ConnectorName } from "../connectors";
|
|
7
|
+
/**
|
|
8
|
+
* Indicates the origin/source of a CLI command.
|
|
9
|
+
*
|
|
10
|
+
* - `"framework"` - Built-in commands provided by Warlock.js (e.g., `dev`, `help`)
|
|
11
|
+
* - `"plugin"` - Commands from installed Warlock.js plugins
|
|
12
|
+
* - `"project"` - Custom commands defined in the project's source code
|
|
13
|
+
*/
|
|
14
|
+
export type CLICommandSource = "framework" | "plugin" | "project";
|
|
15
|
+
/**
|
|
16
|
+
* Data passed to command action and preAction functions.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // For command: warlock migrate users --fresh --limit=10
|
|
20
|
+
* {
|
|
21
|
+
* args: ["users"],
|
|
22
|
+
* options: { fresh: true, limit: "10" }
|
|
23
|
+
* }
|
|
24
|
+
*/
|
|
25
|
+
export type CommandActionData = {
|
|
26
|
+
/**
|
|
27
|
+
* Positional arguments passed after the command name.
|
|
28
|
+
* @example `warlock migrate users posts` → args: ["users", "posts"]
|
|
29
|
+
*/
|
|
30
|
+
args: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Named options/flags parsed from CLI arguments.
|
|
33
|
+
* Kebab-case options are converted to camelCase.
|
|
34
|
+
* @example `--no-cache --port=3000` → { noCache: true, port: "3000" }
|
|
35
|
+
*/
|
|
36
|
+
options: Record<string, string | boolean | number>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Configuration for lazy-loading resources before command execution.
|
|
40
|
+
* Only specified resources are loaded, optimizing startup time.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Load only database config and connector
|
|
44
|
+
* preload: {
|
|
45
|
+
* config: ["database"],
|
|
46
|
+
* connectors: ["database"]
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Load everything (full bootstrap)
|
|
51
|
+
* preload: {
|
|
52
|
+
* bootstrap: true,
|
|
53
|
+
* config: true,
|
|
54
|
+
* connectors: true
|
|
55
|
+
* }
|
|
56
|
+
*/
|
|
57
|
+
export type CLICommandPreload = {
|
|
58
|
+
/**
|
|
59
|
+
* Configuration files to load.
|
|
60
|
+
* - `true` - Load all config files
|
|
61
|
+
* - `string[]` - Load only specified config modules (e.g., `["database", "cache"]`)
|
|
62
|
+
*/
|
|
63
|
+
config?: true | string[];
|
|
64
|
+
/**
|
|
65
|
+
* Load prestart file after (bootstrap and configurations are loaded).
|
|
66
|
+
*/
|
|
67
|
+
prestart?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Load warlock config
|
|
70
|
+
*/
|
|
71
|
+
warlockConfig?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Set runtime strategy
|
|
74
|
+
*/
|
|
75
|
+
runtimeStrategy?: "production" | "development";
|
|
76
|
+
/**
|
|
77
|
+
* Override current detect environment
|
|
78
|
+
*/
|
|
79
|
+
environemnt?: "production" | "development" | "test";
|
|
80
|
+
/**
|
|
81
|
+
* Whether to load environment variables from .env files.
|
|
82
|
+
* Note: If `bootstrap` is true, env is loaded automatically.
|
|
83
|
+
*/
|
|
84
|
+
env?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to run the full bootstrap process.
|
|
87
|
+
* This includes loading env and initializing the application.
|
|
88
|
+
*/
|
|
89
|
+
bootstrap?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Connectors to initialize before command execution.
|
|
92
|
+
* - `true` - Initialize all connectors (http, database, cache)
|
|
93
|
+
* - `string[]` - Initialize only specified connectors
|
|
94
|
+
*
|
|
95
|
+
* Available connectors: `"http"`, `"database"`, `"cache"`, `"storage"`
|
|
96
|
+
*/
|
|
97
|
+
connectors?: ConnectorName[] | true;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Definition for a CLI command option/flag.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* {
|
|
104
|
+
* name: "port",
|
|
105
|
+
* text: "--port, -p",
|
|
106
|
+
* alias: "p",
|
|
107
|
+
* description: "Server port number",
|
|
108
|
+
* type: "number",
|
|
109
|
+
* required: false
|
|
110
|
+
* }
|
|
111
|
+
*/
|
|
112
|
+
export type CLICommandOption = {
|
|
113
|
+
/**
|
|
114
|
+
* The raw option text as it appears in help output.
|
|
115
|
+
* Supports formats: `"--port"`, `"-p"`, `"--port, -p"`, `"-p, --port"`
|
|
116
|
+
*/
|
|
117
|
+
text: string;
|
|
118
|
+
/**
|
|
119
|
+
* The camelCase name of the option (auto-extracted from `text`).
|
|
120
|
+
* This is the key used in `CommandActionData.options`.
|
|
121
|
+
*/
|
|
122
|
+
name?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Short alias for the option (auto-extracted from `text`).
|
|
125
|
+
* @example For `"--port, -p"` → alias: "p"
|
|
126
|
+
*/
|
|
127
|
+
alias?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Human-readable description shown in help output.
|
|
130
|
+
*/
|
|
131
|
+
description?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Expected value type for validation and parsing.
|
|
134
|
+
* @default "string"
|
|
135
|
+
*/
|
|
136
|
+
type?: "string" | "boolean" | "number";
|
|
137
|
+
/**
|
|
138
|
+
* Default value if option is not provided.
|
|
139
|
+
*/
|
|
140
|
+
defaultValue?: string | boolean | number;
|
|
141
|
+
/**
|
|
142
|
+
* Whether this option is required.
|
|
143
|
+
* If true and not provided, command will fail with an error.
|
|
144
|
+
*/
|
|
145
|
+
required?: boolean;
|
|
146
|
+
};
|
|
147
|
+
export type ResolvedCLICommandOption = Omit<CLICommandOption, "alias" | "name"> & {
|
|
148
|
+
name: string;
|
|
149
|
+
alias: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Command action function signature.
|
|
153
|
+
* Receives parsed CLI data and can be sync or async.
|
|
154
|
+
*/
|
|
155
|
+
export type CLICommandAction = (data: CommandActionData) => void | Promise<void>;
|
|
156
|
+
/**
|
|
157
|
+
* Configuration object for creating a CLI command using the `command()` factory.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* command({
|
|
161
|
+
* name: "migrate",
|
|
162
|
+
* description: "Run database migrations",
|
|
163
|
+
* preload: {
|
|
164
|
+
* bootstrap: true,
|
|
165
|
+
* connectors: ["database"]
|
|
166
|
+
* },
|
|
167
|
+
* options: [
|
|
168
|
+
* { text: "--fresh, -f", description: "Drop all tables first" }
|
|
169
|
+
* ],
|
|
170
|
+
* action: async ({ options }) => {
|
|
171
|
+
* if (options.fresh) await dropTables();
|
|
172
|
+
* await runMigrations();
|
|
173
|
+
* }
|
|
174
|
+
* })
|
|
175
|
+
*/
|
|
176
|
+
export type CLICommandOptions = {
|
|
177
|
+
/**
|
|
178
|
+
* The command name. Use dot notation for namespaced commands.
|
|
179
|
+
* @example "migrate", "db.seed", "jwt.generate"
|
|
180
|
+
*/
|
|
181
|
+
name: string;
|
|
182
|
+
/**
|
|
183
|
+
* Short alias for the command.
|
|
184
|
+
* @example "m" for "migrate", "g" for "generate"
|
|
185
|
+
*/
|
|
186
|
+
alias?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Human-readable description shown in help output.
|
|
189
|
+
*/
|
|
190
|
+
description?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Resources to preload before command execution.
|
|
193
|
+
* @see CLICommandPreload
|
|
194
|
+
*/
|
|
195
|
+
preload?: CLICommandPreload;
|
|
196
|
+
/**
|
|
197
|
+
* Whether the command keeps the process alive (e.g., dev server, watchers).
|
|
198
|
+
* If false, process exits after action completes.
|
|
199
|
+
* @default false
|
|
200
|
+
*/
|
|
201
|
+
persistent?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Function to run BEFORE preloading resources.
|
|
204
|
+
* Useful for displaying banners, validating input, etc.
|
|
205
|
+
*/
|
|
206
|
+
preAction?: CLICommandAction;
|
|
207
|
+
/**
|
|
208
|
+
* The main command action function.
|
|
209
|
+
* Executed after preloading resources.
|
|
210
|
+
*/
|
|
211
|
+
action: CLICommandAction;
|
|
212
|
+
/**
|
|
213
|
+
* Command-specific options/flags.
|
|
214
|
+
* @see CLICommandOption
|
|
215
|
+
*/
|
|
216
|
+
options?: CLICommandOption[];
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElE;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;CACpD,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IAE/C;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;IAEpD;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;CACrC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAEvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAEzC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ConfigKey, ConfigRegistry } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Config accessor interface with typed overloads
|
|
4
|
+
*/
|
|
5
|
+
interface ConfigAccessor {
|
|
6
|
+
/**
|
|
7
|
+
* Get a config value by dot-notation key path.
|
|
8
|
+
*/
|
|
9
|
+
key<T = any>(key: ConfigKey | (string & {}), defaultValue?: T): T;
|
|
10
|
+
/**
|
|
11
|
+
* Get an entire config group by name with type inference.
|
|
12
|
+
* Returns the typed config object for known config names.
|
|
13
|
+
*/
|
|
14
|
+
get<K extends keyof ConfigRegistry>(name: K, defaultValue?: ConfigRegistry[K]): ConfigRegistry[K];
|
|
15
|
+
/**
|
|
16
|
+
* Get an entire config group by name (dynamic string).
|
|
17
|
+
*/
|
|
18
|
+
get<T = any>(name: string, defaultValue?: T): T;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Config accessor with typed autocomplete and return type inference.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```typescript
|
|
25
|
+
* // Get entire config group - returns the actual config type
|
|
26
|
+
* const db = config.get("database"); // → DatabaseConfigurations
|
|
27
|
+
*
|
|
28
|
+
* // Get specific key with dot notation
|
|
29
|
+
* const host = config.key("database.host");
|
|
30
|
+
* const port = config.key<number>("database.port", 27017);
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const config: ConfigAccessor;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=config-getter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-getter.d.ts","sourceRoot":"","sources":["../../src/config/config-getter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzD;;GAEG;AACH,UAAU,cAAc;IACtB;;OAEG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAElE;;;OAGG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAElG;;OAEG;IACH,GAAG,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACjD;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,EAAE,cAQpB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import config$1 from'@mongez/config';/**
|
|
2
|
+
* Config accessor with typed autocomplete and return type inference.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* // Get entire config group - returns the actual config type
|
|
7
|
+
* const db = config.get("database"); // → DatabaseConfigurations
|
|
8
|
+
*
|
|
9
|
+
* // Get specific key with dot notation
|
|
10
|
+
* const host = config.key("database.host");
|
|
11
|
+
* const port = config.key<number>("database.port", 27017);
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
const config = {
|
|
15
|
+
key(key, defaultValue) {
|
|
16
|
+
return config$1.get(key, defaultValue);
|
|
17
|
+
},
|
|
18
|
+
get(name, defaultValue) {
|
|
19
|
+
return config$1.get(name, defaultValue);
|
|
20
|
+
},
|
|
21
|
+
};export{config};//# sourceMappingURL=config-getter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-getter.js","sources":["../../src/config/config-getter.ts"],"sourcesContent":[null],"names":["baseConfig"],"mappings":"qCAwBA;;;;;;;;;;;;AAYG;AACU,MAAA,MAAM,GAAmB;IACpC,GAAG,CAAC,GAA8B,EAAE,YAAkB,EAAA;QACpD,OAAOA,QAAU,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;KAC1C;IAED,GAAG,CAAC,IAAY,EAAE,YAAkB,EAAA;QAClC,OAAOA,QAAU,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KAC3C;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-handlers.d.ts","sourceRoot":"","sources":["../../src/config/config-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAAkB,iBAAiB,kBAahE,CAAC"}
|