@warlock.js/core 4.0.30 → 4.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/cli/index.js +2 -1
- package/esm/cli/index.js.map +1 -1
- package/esm/cli/start.js +132 -2
- package/esm/cli/start.js.map +1 -1
- package/esm/index.js +72 -1
- package/esm/index.js.map +1 -1
- package/package.json +71 -65
- package/esm/application.d.ts +0 -27
- package/esm/application.d.ts.map +0 -1
- package/esm/bootstrap/setup.d.ts +0 -7
- package/esm/bootstrap/setup.d.ts.map +0 -1
- package/esm/bootstrap/setup.js +0 -38
- package/esm/bootstrap/setup.js.map +0 -1
- package/esm/bootstrap.d.ts +0 -2
- package/esm/bootstrap.d.ts.map +0 -1
- package/esm/bootstrap.js +0 -5
- package/esm/bootstrap.js.map +0 -1
- package/esm/cache/database-cache-driver.d.ts +0 -56
- package/esm/cache/database-cache-driver.d.ts.map +0 -1
- package/esm/cache/database-cache-driver.js +0 -96
- package/esm/cache/database-cache-driver.js.map +0 -1
- package/esm/cache/index.d.ts +0 -3
- package/esm/cache/index.d.ts.map +0 -1
- package/esm/cache/index.js +0 -1
- package/esm/cache/index.js.map +0 -1
- package/esm/cli/cli-command.d.ts +0 -115
- package/esm/cli/cli-command.d.ts.map +0 -1
- package/esm/cli/cli-command.js +0 -224
- package/esm/cli/cli-command.js.map +0 -1
- package/esm/cli/cli-commands.manager.d.ts +0 -71
- package/esm/cli/cli-commands.manager.d.ts.map +0 -1
- package/esm/cli/cli-commands.manager.js +0 -345
- package/esm/cli/cli-commands.manager.js.map +0 -1
- package/esm/cli/cli-commands.utils.d.ts +0 -68
- package/esm/cli/cli-commands.utils.d.ts.map +0 -1
- package/esm/cli/cli-commands.utils.js +0 -182
- package/esm/cli/cli-commands.utils.js.map +0 -1
- package/esm/cli/commands/build.command.d.ts +0 -2
- package/esm/cli/commands/build.command.d.ts.map +0 -1
- package/esm/cli/commands/build.command.js +0 -8
- package/esm/cli/commands/build.command.js.map +0 -1
- package/esm/cli/commands/dev-server.command.d.ts +0 -2
- package/esm/cli/commands/dev-server.command.d.ts.map +0 -1
- package/esm/cli/commands/dev-server.command.js +0 -16
- package/esm/cli/commands/dev-server.command.js.map +0 -1
- package/esm/cli/commands/start-production.command.d.ts +0 -2
- package/esm/cli/commands/start-production.command.d.ts.map +0 -1
- package/esm/cli/commands/start-production.command.js +0 -65
- package/esm/cli/commands/start-production.command.js.map +0 -1
- package/esm/cli/commands/typings-generator.command.d.ts +0 -2
- package/esm/cli/commands/typings-generator.command.d.ts.map +0 -1
- package/esm/cli/commands/typings-generator.command.js +0 -40
- package/esm/cli/commands/typings-generator.command.js.map +0 -1
- package/esm/cli/commands-loader.d.ts +0 -18
- package/esm/cli/commands-loader.d.ts.map +0 -1
- package/esm/cli/commands-loader.js +0 -45
- package/esm/cli/commands-loader.js.map +0 -1
- package/esm/cli/framework-cli-commands.d.ts +0 -2
- package/esm/cli/framework-cli-commands.d.ts.map +0 -1
- package/esm/cli/framework-cli-commands.js +0 -6
- package/esm/cli/framework-cli-commands.js.map +0 -1
- package/esm/cli/index.d.ts +0 -3
- package/esm/cli/index.d.ts.map +0 -1
- package/esm/cli/parse-cli-args.d.ts +0 -18
- package/esm/cli/parse-cli-args.d.ts.map +0 -1
- package/esm/cli/parse-cli-args.js +0 -82
- package/esm/cli/parse-cli-args.js.map +0 -1
- package/esm/cli/start.d.ts +0 -2
- package/esm/cli/start.d.ts.map +0 -1
- package/esm/cli/string-similarity.d.ts +0 -44
- package/esm/cli/string-similarity.d.ts.map +0 -1
- package/esm/cli/string-similarity.js +0 -57
- package/esm/cli/string-similarity.js.map +0 -1
- package/esm/cli/types.d.ts +0 -201
- package/esm/cli/types.d.ts.map +0 -1
- package/esm/config/config-getter.d.ts +0 -35
- package/esm/config/config-getter.d.ts.map +0 -1
- package/esm/config/config-getter.js +0 -21
- package/esm/config/config-getter.js.map +0 -1
- package/esm/config/config-handlers.d.ts +0 -19
- package/esm/config/config-handlers.d.ts.map +0 -1
- package/esm/config/config-handlers.js +0 -47
- package/esm/config/config-handlers.js.map +0 -1
- package/esm/config/config-loader.d.ts +0 -37
- package/esm/config/config-loader.d.ts.map +0 -1
- package/esm/config/config-loader.js +0 -83
- package/esm/config/config-loader.js.map +0 -1
- package/esm/config/config-manager.d.ts +0 -22
- package/esm/config/config-manager.d.ts.map +0 -1
- package/esm/config/config-manager.js +0 -25
- package/esm/config/config-manager.js.map +0 -1
- package/esm/config/config-special-handlers.d.ts +0 -17
- package/esm/config/config-special-handlers.d.ts.map +0 -1
- package/esm/config/config-special-handlers.js +0 -23
- package/esm/config/config-special-handlers.js.map +0 -1
- package/esm/config/index.d.ts +0 -5
- package/esm/config/index.d.ts.map +0 -1
- package/esm/config/load-config-files.d.ts +0 -6
- package/esm/config/load-config-files.d.ts.map +0 -1
- package/esm/config/load-config-files.js +0 -19
- package/esm/config/load-config-files.js.map +0 -1
- package/esm/config/types.d.ts +0 -52
- package/esm/config/types.d.ts.map +0 -1
- package/esm/database/decorators/index.d.ts +0 -2
- package/esm/database/decorators/index.d.ts.map +0 -1
- package/esm/database/decorators/sluggable.d.ts +0 -2
- package/esm/database/decorators/sluggable.d.ts.map +0 -1
- package/esm/database/decorators/sluggable.js +0 -8
- package/esm/database/decorators/sluggable.js.map +0 -1
- package/esm/database/index.d.ts +0 -3
- package/esm/database/index.d.ts.map +0 -1
- package/esm/database/models/database-log/database-log.d.ts +0 -13
- package/esm/database/models/database-log/database-log.d.ts.map +0 -1
- package/esm/database/models/database-log/database-log.js +0 -16
- package/esm/database/models/database-log/database-log.js.map +0 -1
- package/esm/database/models/database-log/index.d.ts +0 -2
- package/esm/database/models/database-log/index.d.ts.map +0 -1
- package/esm/dev2-server/config-handlers.d.ts +0 -8
- package/esm/dev2-server/config-handlers.d.ts.map +0 -1
- package/esm/dev2-server/config-loader.d.ts +0 -61
- package/esm/dev2-server/config-loader.d.ts.map +0 -1
- package/esm/dev2-server/connectors/base-connector.d.ts +0 -49
- package/esm/dev2-server/connectors/base-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/base-connector.js +0 -48
- package/esm/dev2-server/connectors/base-connector.js.map +0 -1
- package/esm/dev2-server/connectors/cache-connector.d.ts +0 -23
- package/esm/dev2-server/connectors/cache-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/cache-connector.js +0 -35
- package/esm/dev2-server/connectors/cache-connector.js.map +0 -1
- package/esm/dev2-server/connectors/connectors-manager.d.ts +0 -38
- package/esm/dev2-server/connectors/connectors-manager.d.ts.map +0 -1
- package/esm/dev2-server/connectors/connectors-manager.js +0 -80
- package/esm/dev2-server/connectors/connectors-manager.js.map +0 -1
- package/esm/dev2-server/connectors/database-connector.d.ts +0 -23
- package/esm/dev2-server/connectors/database-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/database-connector.js +0 -42
- package/esm/dev2-server/connectors/database-connector.js.map +0 -1
- package/esm/dev2-server/connectors/http-connector.d.ts +0 -29
- package/esm/dev2-server/connectors/http-connector.d.ts.map +0 -1
- package/esm/dev2-server/connectors/http-connector.js +0 -69
- package/esm/dev2-server/connectors/http-connector.js.map +0 -1
- package/esm/dev2-server/connectors/index.d.ts +0 -11
- package/esm/dev2-server/connectors/index.d.ts.map +0 -1
- package/esm/dev2-server/connectors/types.d.ts +0 -49
- package/esm/dev2-server/connectors/types.d.ts.map +0 -1
- package/esm/dev2-server/connectors/types.js +0 -9
- package/esm/dev2-server/connectors/types.js.map +0 -1
- package/esm/dev2-server/create-worker.d.ts +0 -34
- package/esm/dev2-server/create-worker.d.ts.map +0 -1
- package/esm/dev2-server/create-worker.js +0 -37
- package/esm/dev2-server/create-worker.js.map +0 -1
- package/esm/dev2-server/dependency-graph.d.ts +0 -93
- package/esm/dev2-server/dependency-graph.d.ts.map +0 -1
- package/esm/dev2-server/dependency-graph.js +0 -266
- package/esm/dev2-server/dependency-graph.js.map +0 -1
- package/esm/dev2-server/dev-logger.d.ts +0 -14
- package/esm/dev2-server/dev-logger.d.ts.map +0 -1
- package/esm/dev2-server/dev-logger.js +0 -130
- package/esm/dev2-server/dev-logger.js.map +0 -1
- package/esm/dev2-server/development-server.d.ts +0 -47
- package/esm/dev2-server/development-server.d.ts.map +0 -1
- package/esm/dev2-server/development-server.js +0 -135
- package/esm/dev2-server/development-server.js.map +0 -1
- package/esm/dev2-server/events.d.ts +0 -5
- package/esm/dev2-server/events.d.ts.map +0 -1
- package/esm/dev2-server/events.js +0 -4
- package/esm/dev2-server/events.js.map +0 -1
- package/esm/dev2-server/file-event-handler.d.ts +0 -156
- package/esm/dev2-server/file-event-handler.d.ts.map +0 -1
- package/esm/dev2-server/file-event-handler.js +0 -300
- package/esm/dev2-server/file-event-handler.js.map +0 -1
- package/esm/dev2-server/file-manager.d.ts +0 -385
- package/esm/dev2-server/file-manager.d.ts.map +0 -1
- package/esm/dev2-server/file-manager.js +0 -580
- package/esm/dev2-server/file-manager.js.map +0 -1
- package/esm/dev2-server/file-operations.d.ts +0 -203
- package/esm/dev2-server/file-operations.d.ts.map +0 -1
- package/esm/dev2-server/file-operations.js +0 -365
- package/esm/dev2-server/file-operations.js.map +0 -1
- package/esm/dev2-server/files-orchestrator.d.ts +0 -146
- package/esm/dev2-server/files-orchestrator.d.ts.map +0 -1
- package/esm/dev2-server/files-orchestrator.js +0 -314
- package/esm/dev2-server/files-orchestrator.js.map +0 -1
- package/esm/dev2-server/files-watcher.d.ts +0 -67
- package/esm/dev2-server/files-watcher.d.ts.map +0 -1
- package/esm/dev2-server/files-watcher.js +0 -95
- package/esm/dev2-server/files-watcher.js.map +0 -1
- package/esm/dev2-server/flags.d.ts +0 -10
- package/esm/dev2-server/flags.d.ts.map +0 -1
- package/esm/dev2-server/flags.js +0 -9
- package/esm/dev2-server/flags.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/base-health-checker.d.ts +0 -52
- package/esm/dev2-server/health-checker/checkers/base-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/base-health-checker.js +0 -71
- package/esm/dev2-server/health-checker/checkers/base-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.d.ts +0 -40
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.js +0 -217
- package/esm/dev2-server/health-checker/checkers/eslint-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.d.ts +0 -56
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.js +0 -279
- package/esm/dev2-server/health-checker/checkers/typescript-health-checker.js.map +0 -1
- package/esm/dev2-server/health-checker/file-health-checker.contract.d.ts +0 -59
- package/esm/dev2-server/health-checker/file-health-checker.contract.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/file-health-result.d.ts +0 -68
- package/esm/dev2-server/health-checker/file-health-result.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/file-health-result.js +0 -40
- package/esm/dev2-server/health-checker/file-health-result.js.map +0 -1
- package/esm/dev2-server/health-checker/files-healthcare.manager.d.ts +0 -115
- package/esm/dev2-server/health-checker/files-healthcare.manager.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/files-healthcare.manager.js +0 -422
- package/esm/dev2-server/health-checker/files-healthcare.manager.js.map +0 -1
- package/esm/dev2-server/health-checker/index.d.ts +0 -6
- package/esm/dev2-server/health-checker/index.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.d.ts +0 -2
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.js +0 -214
- package/esm/dev2-server/health-checker/workers/eslint-health.worker.js.map +0 -1
- package/esm/dev2-server/health-checker/workers/ts-health.worker.d.ts +0 -2
- package/esm/dev2-server/health-checker/workers/ts-health.worker.d.ts.map +0 -1
- package/esm/dev2-server/health-checker/workers/ts-health.worker.js +0 -261
- package/esm/dev2-server/health-checker/workers/ts-health.worker.js.map +0 -1
- package/esm/dev2-server/import-transformer.d.ts +0 -17
- package/esm/dev2-server/import-transformer.d.ts.map +0 -1
- package/esm/dev2-server/import-transformer.js +0 -236
- package/esm/dev2-server/import-transformer.js.map +0 -1
- package/esm/dev2-server/index.d.ts +0 -1
- package/esm/dev2-server/index.d.ts.map +0 -1
- package/esm/dev2-server/layer-executor.d.ts +0 -60
- package/esm/dev2-server/layer-executor.d.ts.map +0 -1
- package/esm/dev2-server/layer-executor.js +0 -309
- package/esm/dev2-server/layer-executor.js.map +0 -1
- package/esm/dev2-server/manifest-manager.d.ts +0 -80
- package/esm/dev2-server/manifest-manager.d.ts.map +0 -1
- package/esm/dev2-server/manifest-manager.js +0 -107
- package/esm/dev2-server/manifest-manager.js.map +0 -1
- package/esm/dev2-server/module-loader.d.ts +0 -104
- package/esm/dev2-server/module-loader.d.ts.map +0 -1
- package/esm/dev2-server/module-loader.js +0 -251
- package/esm/dev2-server/module-loader.js.map +0 -1
- package/esm/dev2-server/package-json-manager.d.ts +0 -16
- package/esm/dev2-server/package-json-manager.d.ts.map +0 -1
- package/esm/dev2-server/package-json-manager.js +0 -20
- package/esm/dev2-server/package-json-manager.js.map +0 -1
- package/esm/dev2-server/parse-imports.d.ts +0 -13
- package/esm/dev2-server/parse-imports.d.ts.map +0 -1
- package/esm/dev2-server/parse-imports.js +0 -329
- package/esm/dev2-server/parse-imports.js.map +0 -1
- package/esm/dev2-server/path.d.ts +0 -39
- package/esm/dev2-server/path.d.ts.map +0 -1
- package/esm/dev2-server/path.js +0 -56
- package/esm/dev2-server/path.js.map +0 -1
- package/esm/dev2-server/runtime-import-helper.d.ts +0 -9
- package/esm/dev2-server/runtime-import-helper.d.ts.map +0 -1
- package/esm/dev2-server/runtime-import-helper.js +0 -150
- package/esm/dev2-server/runtime-import-helper.js.map +0 -1
- package/esm/dev2-server/special-files-collector.d.ts +0 -114
- package/esm/dev2-server/special-files-collector.d.ts.map +0 -1
- package/esm/dev2-server/special-files-collector.js +0 -212
- package/esm/dev2-server/special-files-collector.js.map +0 -1
- package/esm/dev2-server/start-development-server.d.ts +0 -7
- package/esm/dev2-server/start-development-server.d.ts.map +0 -1
- package/esm/dev2-server/start-development-server.js +0 -21
- package/esm/dev2-server/start-development-server.js.map +0 -1
- package/esm/dev2-server/transpile-file.d.ts +0 -11
- package/esm/dev2-server/transpile-file.d.ts.map +0 -1
- package/esm/dev2-server/transpile-file.js +0 -21
- package/esm/dev2-server/transpile-file.js.map +0 -1
- package/esm/dev2-server/tsconfig-manager.d.ts +0 -45
- package/esm/dev2-server/tsconfig-manager.d.ts.map +0 -1
- package/esm/dev2-server/tsconfig-manager.js +0 -107
- package/esm/dev2-server/tsconfig-manager.js.map +0 -1
- package/esm/dev2-server/type-generator.d.ts +0 -115
- package/esm/dev2-server/type-generator.d.ts.map +0 -1
- package/esm/dev2-server/type-generator.js +0 -566
- package/esm/dev2-server/type-generator.js.map +0 -1
- package/esm/dev2-server/types.d.ts +0 -30
- package/esm/dev2-server/types.d.ts.map +0 -1
- package/esm/dev2-server/utils.d.ts +0 -15
- package/esm/dev2-server/utils.d.ts.map +0 -1
- package/esm/dev2-server/utils.js +0 -40
- package/esm/dev2-server/utils.js.map +0 -1
- package/esm/http/config.d.ts +0 -10
- package/esm/http/config.d.ts.map +0 -1
- package/esm/http/config.js +0 -22
- package/esm/http/config.js.map +0 -1
- package/esm/http/createHttpApplication.d.ts +0 -3
- package/esm/http/createHttpApplication.d.ts.map +0 -1
- package/esm/http/createHttpApplication.js +0 -28
- package/esm/http/createHttpApplication.js.map +0 -1
- package/esm/http/database/RequestLog.d.ts +0 -13
- package/esm/http/database/RequestLog.d.ts.map +0 -1
- package/esm/http/database/RequestLog.js +0 -25
- package/esm/http/database/RequestLog.js.map +0 -1
- package/esm/http/errors/index.d.ts +0 -2
- package/esm/http/errors/index.d.ts.map +0 -1
- package/esm/http/errors/resource-not-found.error.d.ts +0 -21
- package/esm/http/errors/resource-not-found.error.d.ts.map +0 -1
- package/esm/http/errors/resource-not-found.error.js +0 -40
- package/esm/http/errors/resource-not-found.error.js.map +0 -1
- package/esm/http/events.d.ts +0 -4
- package/esm/http/events.d.ts.map +0 -1
- package/esm/http/events.js +0 -26
- package/esm/http/events.js.map +0 -1
- package/esm/http/index.d.ts +0 -16
- package/esm/http/index.d.ts.map +0 -1
- package/esm/http/middleware/cache-response-middleware.d.ts +0 -34
- package/esm/http/middleware/cache-response-middleware.d.ts.map +0 -1
- package/esm/http/middleware/cache-response-middleware.js +0 -45
- package/esm/http/middleware/cache-response-middleware.js.map +0 -1
- package/esm/http/middleware/index.d.ts +0 -3
- package/esm/http/middleware/index.d.ts.map +0 -1
- package/esm/http/middleware/inject-request-context.d.ts +0 -35
- package/esm/http/middleware/inject-request-context.d.ts.map +0 -1
- package/esm/http/middleware/inject-request-context.js +0 -110
- package/esm/http/middleware/inject-request-context.js.map +0 -1
- package/esm/http/plugins/index.d.ts +0 -3
- package/esm/http/plugins/index.d.ts.map +0 -1
- package/esm/http/plugins.d.ts +0 -3
- package/esm/http/plugins.d.ts.map +0 -1
- package/esm/http/plugins.js +0 -39
- package/esm/http/plugins.js.map +0 -1
- package/esm/http/request-controller.d.ts +0 -11
- package/esm/http/request-controller.d.ts.map +0 -1
- package/esm/http/request-controller.js +0 -9
- package/esm/http/request-controller.js.map +0 -1
- package/esm/http/request.d.ts +0 -376
- package/esm/http/request.d.ts.map +0 -1
- package/esm/http/request.js +0 -729
- package/esm/http/request.js.map +0 -1
- package/esm/http/response.d.ts +0 -271
- package/esm/http/response.d.ts.map +0 -1
- package/esm/http/response.js +0 -574
- package/esm/http/response.js.map +0 -1
- package/esm/http/server.d.ts +0 -8
- package/esm/http/server.d.ts.map +0 -1
- package/esm/http/server.js +0 -15
- package/esm/http/server.js.map +0 -1
- package/esm/http/types.d.ts +0 -174
- package/esm/http/types.d.ts.map +0 -1
- package/esm/http/uploaded-file.d.ts +0 -445
- package/esm/http/uploaded-file.d.ts.map +0 -1
- package/esm/http/uploaded-file.js +0 -694
- package/esm/http/uploaded-file.js.map +0 -1
- package/esm/http/uploads-config.d.ts +0 -26
- package/esm/http/uploads-config.d.ts.map +0 -1
- package/esm/http/uploads-config.js +0 -35
- package/esm/http/uploads-config.js.map +0 -1
- package/esm/http/uploads-types.d.ts +0 -236
- package/esm/http/uploads-types.d.ts.map +0 -1
- package/esm/image/image.d.ts +0 -382
- package/esm/image/image.d.ts.map +0 -1
- package/esm/image/image.js +0 -552
- package/esm/image/image.js.map +0 -1
- package/esm/image/index.d.ts +0 -2
- package/esm/image/index.d.ts.map +0 -1
- package/esm/index.d.ts +0 -29
- package/esm/index.d.ts.map +0 -1
- package/esm/logger/index.d.ts +0 -3
- package/esm/logger/index.d.ts.map +0 -1
- package/esm/logger/logger.d.ts +0 -3
- package/esm/logger/logger.d.ts.map +0 -1
- package/esm/logger/logger.js +0 -16
- package/esm/logger/logger.js.map +0 -1
- package/esm/logger/types.d.ts +0 -39
- package/esm/logger/types.d.ts.map +0 -1
- package/esm/mail/config.d.ts +0 -83
- package/esm/mail/config.d.ts.map +0 -1
- package/esm/mail/config.js +0 -152
- package/esm/mail/config.js.map +0 -1
- package/esm/mail/events.d.ts +0 -96
- package/esm/mail/events.d.ts.map +0 -1
- package/esm/mail/events.js +0 -123
- package/esm/mail/events.js.map +0 -1
- package/esm/mail/index.d.ts +0 -10
- package/esm/mail/index.d.ts.map +0 -1
- package/esm/mail/mail.d.ts +0 -175
- package/esm/mail/mail.d.ts.map +0 -1
- package/esm/mail/mail.js +0 -286
- package/esm/mail/mail.js.map +0 -1
- package/esm/mail/mailer-pool.d.ts +0 -26
- package/esm/mail/mailer-pool.d.ts.map +0 -1
- package/esm/mail/mailer-pool.js +0 -95
- package/esm/mail/mailer-pool.js.map +0 -1
- package/esm/mail/react-mail.d.ts +0 -6
- package/esm/mail/react-mail.d.ts.map +0 -1
- package/esm/mail/react-mail.js +0 -25
- package/esm/mail/react-mail.js.map +0 -1
- package/esm/mail/send-mail.d.ts +0 -33
- package/esm/mail/send-mail.d.ts.map +0 -1
- package/esm/mail/send-mail.js +0 -309
- package/esm/mail/send-mail.js.map +0 -1
- package/esm/mail/test-mailbox.d.ts +0 -110
- package/esm/mail/test-mailbox.d.ts.map +0 -1
- package/esm/mail/test-mailbox.js +0 -143
- package/esm/mail/test-mailbox.js.map +0 -1
- package/esm/mail/types.d.ts +0 -245
- package/esm/mail/types.d.ts.map +0 -1
- package/esm/mail/types.js +0 -13
- package/esm/mail/types.js.map +0 -1
- package/esm/manifest/manifest-manager.d.ts +0 -74
- package/esm/manifest/manifest-manager.d.ts.map +0 -1
- package/esm/manifest/manifest-manager.js +0 -88
- package/esm/manifest/manifest-manager.js.map +0 -1
- package/esm/output/index.d.ts +0 -3
- package/esm/output/index.d.ts.map +0 -1
- package/esm/output/output.d.ts +0 -193
- package/esm/output/output.d.ts.map +0 -1
- package/esm/output/output.js +0 -599
- package/esm/output/output.js.map +0 -1
- package/esm/output/types.d.ts +0 -23
- package/esm/output/types.d.ts.map +0 -1
- package/esm/production/build-app-production.d.ts +0 -6
- package/esm/production/build-app-production.d.ts.map +0 -1
- package/esm/production/build-app-production.js +0 -8
- package/esm/production/build-app-production.js.map +0 -1
- package/esm/production/esbuild-plugins.d.ts +0 -5
- package/esm/production/esbuild-plugins.d.ts.map +0 -1
- package/esm/production/esbuild-plugins.js +0 -23
- package/esm/production/esbuild-plugins.js.map +0 -1
- package/esm/production/production-builder.d.ts +0 -76
- package/esm/production/production-builder.d.ts.map +0 -1
- package/esm/production/production-builder.js +0 -245
- package/esm/production/production-builder.js.map +0 -1
- package/esm/react/index.d.ts +0 -3
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/index.js +0 -7
- package/esm/react/index.js.map +0 -1
- package/esm/repositories/base-repository-manager.d.ts +0 -47
- package/esm/repositories/base-repository-manager.d.ts.map +0 -1
- package/esm/repositories/base-repository-manager.js +0 -63
- package/esm/repositories/base-repository-manager.js.map +0 -1
- package/esm/repositories/index.d.ts +0 -8
- package/esm/repositories/index.d.ts.map +0 -1
- package/esm/repositories/repository-destroyer-manager.d.ts +0 -21
- package/esm/repositories/repository-destroyer-manager.d.ts.map +0 -1
- package/esm/repositories/repository-destroyer-manager.js +0 -38
- package/esm/repositories/repository-destroyer-manager.js.map +0 -1
- package/esm/repositories/repository-filler-manager.d.ts +0 -60
- package/esm/repositories/repository-filler-manager.d.ts.map +0 -1
- package/esm/repositories/repository-filler-manager.js +0 -102
- package/esm/repositories/repository-filler-manager.js.map +0 -1
- package/esm/repositories/repository-filler.d.ts +0 -26
- package/esm/repositories/repository-filler.d.ts.map +0 -1
- package/esm/repositories/repository-filler.js +0 -63
- package/esm/repositories/repository-filler.js.map +0 -1
- package/esm/repositories/repository-list-manager.d.ts +0 -385
- package/esm/repositories/repository-list-manager.d.ts.map +0 -1
- package/esm/repositories/repository-list-manager.js +0 -812
- package/esm/repositories/repository-list-manager.js.map +0 -1
- package/esm/repositories/repository-listing.d.ts +0 -82
- package/esm/repositories/repository-listing.d.ts.map +0 -1
- package/esm/repositories/repository-listing.js +0 -177
- package/esm/repositories/repository-listing.js.map +0 -1
- package/esm/repositories/repository-manager.d.ts +0 -5
- package/esm/repositories/repository-manager.d.ts.map +0 -1
- package/esm/repositories/repository-manager.js +0 -2
- package/esm/repositories/repository-manager.js.map +0 -1
- package/esm/repositories/types.d.ts +0 -114
- package/esm/repositories/types.d.ts.map +0 -1
- package/esm/repositories/utils.d.ts +0 -3
- package/esm/repositories/utils.d.ts.map +0 -1
- package/esm/repositories/utils.js +0 -7
- package/esm/repositories/utils.js.map +0 -1
- package/esm/restful/index.d.ts +0 -2
- package/esm/restful/index.d.ts.map +0 -1
- package/esm/restful/restful.d.ts +0 -110
- package/esm/restful/restful.d.ts.map +0 -1
- package/esm/restful/restful.js +0 -317
- package/esm/restful/restful.js.map +0 -1
- package/esm/router/index.d.ts +0 -4
- package/esm/router/index.d.ts.map +0 -1
- package/esm/router/route-registry.d.ts +0 -30
- package/esm/router/route-registry.d.ts.map +0 -1
- package/esm/router/route-registry.js +0 -67
- package/esm/router/route-registry.js.map +0 -1
- package/esm/router/route.d.ts +0 -34
- package/esm/router/route.d.ts.map +0 -1
- package/esm/router/router.d.ts +0 -169
- package/esm/router/router.d.ts.map +0 -1
- package/esm/router/router.js +0 -564
- package/esm/router/router.js.map +0 -1
- package/esm/router/types.d.ts +0 -258
- package/esm/router/types.d.ts.map +0 -1
- package/esm/router/utils.d.ts +0 -5
- package/esm/router/utils.d.ts.map +0 -1
- package/esm/router/utils.js +0 -6
- package/esm/router/utils.js.map +0 -1
- package/esm/storage/config.d.ts +0 -8
- package/esm/storage/config.d.ts.map +0 -1
- package/esm/storage/config.js +0 -6
- package/esm/storage/config.js.map +0 -1
- package/esm/storage/drivers/cloud-driver.d.ts +0 -127
- package/esm/storage/drivers/cloud-driver.d.ts.map +0 -1
- package/esm/storage/drivers/cloud-driver.js +0 -406
- package/esm/storage/drivers/cloud-driver.js.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.d.ts +0 -47
- package/esm/storage/drivers/do-spaces-driver.d.ts.map +0 -1
- package/esm/storage/drivers/do-spaces-driver.js +0 -52
- package/esm/storage/drivers/do-spaces-driver.js.map +0 -1
- package/esm/storage/drivers/local-driver.d.ts +0 -136
- package/esm/storage/drivers/local-driver.d.ts.map +0 -1
- package/esm/storage/drivers/local-driver.js +0 -409
- package/esm/storage/drivers/local-driver.js.map +0 -1
- package/esm/storage/drivers/r2-driver.d.ts +0 -50
- package/esm/storage/drivers/r2-driver.d.ts.map +0 -1
- package/esm/storage/drivers/r2-driver.js +0 -59
- package/esm/storage/drivers/r2-driver.js.map +0 -1
- package/esm/storage/drivers/s3-driver.d.ts +0 -32
- package/esm/storage/drivers/s3-driver.d.ts.map +0 -1
- package/esm/storage/drivers/s3-driver.js +0 -34
- package/esm/storage/drivers/s3-driver.js.map +0 -1
- package/esm/storage/index.d.ts +0 -12
- package/esm/storage/index.d.ts.map +0 -1
- package/esm/storage/scoped-storage.d.ts +0 -402
- package/esm/storage/scoped-storage.d.ts.map +0 -1
- package/esm/storage/scoped-storage.js +0 -488
- package/esm/storage/scoped-storage.js.map +0 -1
- package/esm/storage/storage-file.d.ts +0 -216
- package/esm/storage/storage-file.d.ts.map +0 -1
- package/esm/storage/storage-file.js +0 -358
- package/esm/storage/storage-file.js.map +0 -1
- package/esm/storage/storage.d.ts +0 -582
- package/esm/storage/storage.d.ts.map +0 -1
- package/esm/storage/storage.js +0 -941
- package/esm/storage/storage.js.map +0 -1
- package/esm/storage/types.d.ts +0 -728
- package/esm/storage/types.d.ts.map +0 -1
- package/esm/storage/utils/mime.d.ts +0 -33
- package/esm/storage/utils/mime.d.ts.map +0 -1
- package/esm/storage/utils/mime.js +0 -45
- package/esm/storage/utils/mime.js.map +0 -1
- package/esm/store/index.d.ts +0 -25
- package/esm/store/index.d.ts.map +0 -1
- package/esm/store/index.js +0 -52
- package/esm/store/index.js.map +0 -1
- package/esm/tests/boot-testing.d.ts +0 -7
- package/esm/tests/boot-testing.d.ts.map +0 -1
- package/esm/tests/boot-testing.js +0 -23
- package/esm/tests/boot-testing.js.map +0 -1
- package/esm/tests/create-http-test-application.d.ts +0 -25
- package/esm/tests/create-http-test-application.d.ts.map +0 -1
- package/esm/tests/create-http-test-application.js +0 -76
- package/esm/tests/create-http-test-application.js.map +0 -1
- package/esm/tests/http-response-output-test.d.ts +0 -42
- package/esm/tests/http-response-output-test.d.ts.map +0 -1
- package/esm/tests/http-response-output-test.js +0 -53
- package/esm/tests/http-response-output-test.js.map +0 -1
- package/esm/tests/http-test-response.d.ts +0 -75
- package/esm/tests/http-test-response.d.ts.map +0 -1
- package/esm/tests/index.d.ts +0 -4
- package/esm/tests/index.d.ts.map +0 -1
- package/esm/tests/init-testing.d.ts +0 -7
- package/esm/tests/init-testing.d.ts.map +0 -1
- package/esm/tests/types.d.ts +0 -10
- package/esm/tests/types.d.ts.map +0 -1
- package/esm/utils/app-log.d.ts +0 -8
- package/esm/utils/app-log.d.ts.map +0 -1
- package/esm/utils/app-log.js +0 -7
- package/esm/utils/app-log.js.map +0 -1
- package/esm/utils/cleanup-temp-files.d.ts +0 -5
- package/esm/utils/cleanup-temp-files.d.ts.map +0 -1
- package/esm/utils/database-log.d.ts +0 -25
- package/esm/utils/database-log.d.ts.map +0 -1
- package/esm/utils/database-log.js +0 -44
- package/esm/utils/database-log.js.map +0 -1
- package/esm/utils/date-output.d.ts +0 -69
- package/esm/utils/date-output.d.ts.map +0 -1
- package/esm/utils/date-output.js +0 -62
- package/esm/utils/date-output.js.map +0 -1
- package/esm/utils/date-output.test.d.ts +0 -2
- package/esm/utils/date-output.test.d.ts.map +0 -1
- package/esm/utils/download-file.d.ts +0 -3
- package/esm/utils/download-file.d.ts.map +0 -1
- package/esm/utils/environment.d.ts +0 -4
- package/esm/utils/environment.d.ts.map +0 -1
- package/esm/utils/environment.js +0 -6
- package/esm/utils/environment.js.map +0 -1
- package/esm/utils/get-localized.d.ts +0 -10
- package/esm/utils/get-localized.d.ts.map +0 -1
- package/esm/utils/get-localized.js +0 -15
- package/esm/utils/get-localized.js.map +0 -1
- package/esm/utils/get-localized.test.d.ts +0 -2
- package/esm/utils/get-localized.test.d.ts.map +0 -1
- package/esm/utils/index.d.ts +0 -13
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/internal.d.ts +0 -4
- package/esm/utils/internal.d.ts.map +0 -1
- package/esm/utils/paths.d.ts +0 -55
- package/esm/utils/paths.d.ts.map +0 -1
- package/esm/utils/paths.js +0 -89
- package/esm/utils/paths.js.map +0 -1
- package/esm/utils/promise-all-object.d.ts +0 -8
- package/esm/utils/promise-all-object.d.ts.map +0 -1
- package/esm/utils/promise-all-object.js +0 -12
- package/esm/utils/promise-all-object.js.map +0 -1
- package/esm/utils/queue.d.ts +0 -49
- package/esm/utils/queue.d.ts.map +0 -1
- package/esm/utils/queue.js +0 -89
- package/esm/utils/queue.js.map +0 -1
- package/esm/utils/sleep.d.ts +0 -2
- package/esm/utils/sleep.d.ts.map +0 -1
- package/esm/utils/sleep.js +0 -3
- package/esm/utils/sleep.js.map +0 -1
- package/esm/utils/sluggable.d.ts +0 -5
- package/esm/utils/sluggable.d.ts.map +0 -1
- package/esm/utils/sluggable.js +0 -15
- package/esm/utils/sluggable.js.map +0 -1
- package/esm/utils/sluggable.test.d.ts +0 -2
- package/esm/utils/sluggable.test.d.ts.map +0 -1
- package/esm/utils/to-json.d.ts +0 -2
- package/esm/utils/to-json.d.ts.map +0 -1
- package/esm/utils/to-json.js +0 -26
- package/esm/utils/to-json.js.map +0 -1
- package/esm/utils/types.d.ts +0 -22
- package/esm/utils/types.d.ts.map +0 -1
- package/esm/utils/urls.d.ts +0 -21
- package/esm/utils/urls.d.ts.map +0 -1
- package/esm/utils/urls.js +0 -31
- package/esm/utils/urls.js.map +0 -1
- package/esm/validation/database/exists-except-current-id.d.ts +0 -7
- package/esm/validation/database/exists-except-current-id.d.ts.map +0 -1
- package/esm/validation/database/exists-except-current-id.js +0 -23
- package/esm/validation/database/exists-except-current-id.js.map +0 -1
- package/esm/validation/database/exists-except-current-user.d.ts +0 -7
- package/esm/validation/database/exists-except-current-user.d.ts.map +0 -1
- package/esm/validation/database/exists-except-current-user.js +0 -25
- package/esm/validation/database/exists-except-current-user.js.map +0 -1
- package/esm/validation/database/exists.d.ts +0 -7
- package/esm/validation/database/exists.d.ts.map +0 -1
- package/esm/validation/database/exists.js +0 -21
- package/esm/validation/database/exists.js.map +0 -1
- package/esm/validation/database/index.d.ts +0 -12
- package/esm/validation/database/index.d.ts.map +0 -1
- package/esm/validation/database/types.d.ts +0 -68
- package/esm/validation/database/types.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-id.d.ts +0 -7
- package/esm/validation/database/unique-except-current-id.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-id.js +0 -23
- package/esm/validation/database/unique-except-current-id.js.map +0 -1
- package/esm/validation/database/unique-except-current-user.d.ts +0 -7
- package/esm/validation/database/unique-except-current-user.d.ts.map +0 -1
- package/esm/validation/database/unique-except-current-user.js +0 -25
- package/esm/validation/database/unique-except-current-user.js.map +0 -1
- package/esm/validation/database/unique.d.ts +0 -7
- package/esm/validation/database/unique.d.ts.map +0 -1
- package/esm/validation/database/unique.js +0 -30
- package/esm/validation/database/unique.js.map +0 -1
- package/esm/validation/file/file.d.ts +0 -22
- package/esm/validation/file/file.d.ts.map +0 -1
- package/esm/validation/file/file.js +0 -60
- package/esm/validation/file/file.js.map +0 -1
- package/esm/validation/file/index.d.ts +0 -6
- package/esm/validation/file/index.d.ts.map +0 -1
- package/esm/validation/index.d.ts +0 -16
- package/esm/validation/index.d.ts.map +0 -1
- package/esm/validation/init.d.ts +0 -7
- package/esm/validation/init.d.ts.map +0 -1
- package/esm/validation/init.js +0 -34
- package/esm/validation/init.js.map +0 -1
- package/esm/validation/plugins/database-plugin.d.ts +0 -14
- package/esm/validation/plugins/database-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/database-plugin.js +0 -95
- package/esm/validation/plugins/database-plugin.js.map +0 -1
- package/esm/validation/plugins/file-plugin.d.ts +0 -11
- package/esm/validation/plugins/file-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/file-plugin.js +0 -17
- package/esm/validation/plugins/file-plugin.js.map +0 -1
- package/esm/validation/plugins/index.d.ts +0 -9
- package/esm/validation/plugins/index.d.ts.map +0 -1
- package/esm/validation/plugins/localized-plugin.d.ts +0 -11
- package/esm/validation/plugins/localized-plugin.d.ts.map +0 -1
- package/esm/validation/plugins/localized-plugin.js +0 -19
- package/esm/validation/plugins/localized-plugin.js.map +0 -1
- package/esm/validation/types.d.ts +0 -87
- package/esm/validation/types.d.ts.map +0 -1
- package/esm/validation/validateAll.d.ts +0 -7
- package/esm/validation/validateAll.d.ts.map +0 -1
- package/esm/validation/validateAll.js +0 -39
- package/esm/validation/validateAll.js.map +0 -1
- package/esm/validation/validators/file-validator.d.ts +0 -40
- package/esm/validation/validators/file-validator.d.ts.map +0 -1
- package/esm/validation/validators/file-validator.js +0 -94
- package/esm/validation/validators/file-validator.js.map +0 -1
- package/esm/validation/validators/index.d.ts +0 -7
- package/esm/validation/validators/index.d.ts.map +0 -1
- package/esm/warlock-config/default-configurations.d.ts +0 -3
- package/esm/warlock-config/default-configurations.d.ts.map +0 -1
- package/esm/warlock-config/default-configurations.js +0 -8
- package/esm/warlock-config/default-configurations.js.map +0 -1
- package/esm/warlock-config/define-config.d.ts +0 -3
- package/esm/warlock-config/define-config.d.ts.map +0 -1
- package/esm/warlock-config/define-config.js +0 -3
- package/esm/warlock-config/define-config.js.map +0 -1
- package/esm/warlock-config/index.d.ts +0 -4
- package/esm/warlock-config/index.d.ts.map +0 -1
- package/esm/warlock-config/types.d.ts +0 -79
- package/esm/warlock-config/types.d.ts.map +0 -1
- package/esm/warlock-config/warlock-config.manager.d.ts +0 -83
- package/esm/warlock-config/warlock-config.manager.d.ts.map +0 -1
- package/esm/warlock-config/warlock-config.manager.js +0 -141
- package/esm/warlock-config/warlock-config.manager.js.map +0 -1
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { DependencyGraph } from "./dependency-graph";
|
|
2
|
-
import { FileManager } from "./file-manager";
|
|
3
|
-
import { FileOperations } from "./file-operations";
|
|
4
|
-
import { FilesWatcher } from "./files-watcher";
|
|
5
|
-
import { FilesHealthcareManager } from "./health-checker/files-healthcare.manager";
|
|
6
|
-
import { ModuleLoader } from "./module-loader";
|
|
7
|
-
import { SpecialFilesCollector } from "./special-files-collector";
|
|
8
|
-
export declare class FilesOrchestrator {
|
|
9
|
-
readonly filesWatcher: FilesWatcher;
|
|
10
|
-
readonly files: Map<string, FileManager>;
|
|
11
|
-
private readonly manifest;
|
|
12
|
-
private readonly dependencyGraph;
|
|
13
|
-
private readonly healthCheckerManager;
|
|
14
|
-
readonly fileOperations: FileOperations;
|
|
15
|
-
private readonly eventHandler;
|
|
16
|
-
readonly specialFilesCollector: SpecialFilesCollector;
|
|
17
|
-
readonly moduleLoader: ModuleLoader;
|
|
18
|
-
/**
|
|
19
|
-
* Creates the FilesOrchestrator instance
|
|
20
|
-
*
|
|
21
|
-
* Initializes all subsystems:
|
|
22
|
-
* - FileOperations for file lifecycle management
|
|
23
|
-
* - FileEventHandler for processing file system events
|
|
24
|
-
*/
|
|
25
|
-
constructor();
|
|
26
|
-
/**
|
|
27
|
-
* Parse and add the given file to files list
|
|
28
|
-
*/
|
|
29
|
-
add(relativePath: string): Promise<FileManager>;
|
|
30
|
-
/**
|
|
31
|
-
* Add then load the file through the modules load
|
|
32
|
-
*/
|
|
33
|
-
load<T>(relativePath: string, type?: string): Promise<T>;
|
|
34
|
-
/**
|
|
35
|
-
* Get the dependency graph
|
|
36
|
-
* Provides read-only access to the dependency graph for external use
|
|
37
|
-
*/
|
|
38
|
-
getDependencyGraph(): DependencyGraph;
|
|
39
|
-
/**
|
|
40
|
-
* Get invalidation chain for a file
|
|
41
|
-
* Returns all files that need to be reloaded when the given file changes
|
|
42
|
-
*/
|
|
43
|
-
getInvalidationChain(file: string): string[];
|
|
44
|
-
/**
|
|
45
|
-
* Get all tracked files
|
|
46
|
-
*/
|
|
47
|
-
getFiles(): Map<string, FileManager>;
|
|
48
|
-
/**
|
|
49
|
-
* Get health checker manager
|
|
50
|
-
*/
|
|
51
|
-
getHealthCheckerManager(): FilesHealthcareManager;
|
|
52
|
-
/**
|
|
53
|
-
* Initialize the files orchestrator
|
|
54
|
-
*/
|
|
55
|
-
init(): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Initialize all development server features
|
|
58
|
-
*
|
|
59
|
-
* This is the main initialization sequence that:
|
|
60
|
-
* 1. Discovers all TypeScript/JavaScript files in the project
|
|
61
|
-
* 2. Reconciles filesystem state with cached manifest
|
|
62
|
-
* 3. Builds the dependency graph for HMR
|
|
63
|
-
* 4. Persists file metadata to manifest
|
|
64
|
-
*
|
|
65
|
-
* Each file is fully processed (including import transforms) during
|
|
66
|
-
* reconciliation because transforms compute cache paths deterministically
|
|
67
|
-
* and don't depend on other files being processed first.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```typescript
|
|
71
|
-
* await filesOrchestrator.init();
|
|
72
|
-
* await filesOrchestrator.initiaizeAll();
|
|
73
|
-
* await filesOrchestrator.watchFiles();
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
initiaizeAll(): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* Check the health of the given files
|
|
79
|
-
*/
|
|
80
|
-
checkHealth(files: {
|
|
81
|
-
added: string[];
|
|
82
|
-
changed: string[];
|
|
83
|
-
deleted: string[];
|
|
84
|
-
}): Promise<void>;
|
|
85
|
-
/**
|
|
86
|
-
* Check health state for all files
|
|
87
|
-
*/
|
|
88
|
-
startCheckingHealth(): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* Get all TypeScript/JavaScript files from the filesystem
|
|
91
|
-
* This always scans the actual filesystem, ignoring any cached data
|
|
92
|
-
* @returns Array of relative file paths
|
|
93
|
-
*/
|
|
94
|
-
getAllFilesFromFilesystem(): Promise<string[]>;
|
|
95
|
-
/**
|
|
96
|
-
* Process all files fresh (no manifest exists)
|
|
97
|
-
*
|
|
98
|
-
* This happens on first run or when manifest is deleted.
|
|
99
|
-
* Each file is fully processed including import transforms.
|
|
100
|
-
*
|
|
101
|
-
* @param filePaths Array of relative file paths
|
|
102
|
-
*/
|
|
103
|
-
processAllFilesFresh(filePaths: string[]): Promise<void>;
|
|
104
|
-
/**
|
|
105
|
-
* Reconcile filesystem state with manifest data
|
|
106
|
-
* This handles: new files, deleted files, and changed files
|
|
107
|
-
*/
|
|
108
|
-
private reconcileFiles;
|
|
109
|
-
/**
|
|
110
|
-
* Process newly discovered files (in filesystem but not in manifest)
|
|
111
|
-
*
|
|
112
|
-
* Each file is fully processed including import transforms.
|
|
113
|
-
*
|
|
114
|
-
* @param filePaths Array of relative file paths
|
|
115
|
-
*/
|
|
116
|
-
private processNewFiles;
|
|
117
|
-
/**
|
|
118
|
-
* Remove deleted files from tracking
|
|
119
|
-
* @param filePaths Array of relative file paths
|
|
120
|
-
*/
|
|
121
|
-
private processDeletedFiles;
|
|
122
|
-
/**
|
|
123
|
-
* Process existing files (check if they changed since last run)
|
|
124
|
-
*
|
|
125
|
-
* For unchanged files, loads from cache.
|
|
126
|
-
* For changed files, reprocesses fully.
|
|
127
|
-
*
|
|
128
|
-
* @param filePaths Array of relative file paths
|
|
129
|
-
*/
|
|
130
|
-
private processExistingFiles;
|
|
131
|
-
/**
|
|
132
|
-
* Update dependents in all FileManager instances from dependency graph
|
|
133
|
-
*/
|
|
134
|
-
private updateFileDependents;
|
|
135
|
-
/**
|
|
136
|
-
* Sync all FileManager instances to manifest
|
|
137
|
-
* Uses relative paths as keys for portability
|
|
138
|
-
*/
|
|
139
|
-
private syncFilesToManifest;
|
|
140
|
-
/**
|
|
141
|
-
* Start file watcher to detect changes during development
|
|
142
|
-
*/
|
|
143
|
-
watchFiles(): Promise<void>;
|
|
144
|
-
}
|
|
145
|
-
export declare const filesOrchestrator: FilesOrchestrator;
|
|
146
|
-
//# sourceMappingURL=files-orchestrator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-orchestrator.d.ts","sourceRoot":"","sources":["../../src/dev2-server/files-orchestrator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,qBAAa,iBAAiB;IA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,mBAAmB;IAwBjC;;;;;;;OAOG;YACW,oBAAoB;IAqBlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAO5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;OAEG;IACU,UAAU;CAqBxB;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import {colors}from'@mongez/copper';import {unlinkAsync}from'@mongez/fs';import {init}from'es-module-lexer';import {warlockConfigManager}from'../warlock-config/warlock-config.manager.js';import {DependencyGraph}from'./dependency-graph.js';import {devLogDim,devLogSuccess}from'./dev-logger.js';import {FileEventHandler}from'./file-event-handler.js';import {FileManager}from'./file-manager.js';import {FileOperations}from'./file-operations.js';import {FilesWatcher}from'./files-watcher.js';import {FILE_PROCESSING_BATCH_SIZE}from'./flags.js';import {EslintHealthChecker}from'./health-checker/checkers/eslint-health-checker.js';import {TypescriptHealthChecker}from'./health-checker/checkers/typescript-health-checker.js';import {FilesHealthcareManager}from'./health-checker/files-healthcare.manager.js';import {ManifestManager}from'./manifest-manager.js';import {ModuleLoader}from'./module-loader.js';import {packageJsonManager}from'./package-json-manager.js';import {Path}from'./path.js';import {initializeRuntimeImportHelper}from'./runtime-import-helper.js';import {SpecialFilesCollector}from'./special-files-collector.js';import {tsconfigManager}from'./tsconfig-manager.js';import {getFilesFromDirectory,createFreshWarlockDirectory,warlockCachePath}from'./utils.js';class FilesOrchestrator {
|
|
2
|
-
filesWatcher = new FilesWatcher();
|
|
3
|
-
files = new Map();
|
|
4
|
-
manifest = new ManifestManager(this.files);
|
|
5
|
-
dependencyGraph = new DependencyGraph();
|
|
6
|
-
healthCheckerManager = new FilesHealthcareManager(this.files);
|
|
7
|
-
fileOperations;
|
|
8
|
-
eventHandler;
|
|
9
|
-
specialFilesCollector = new SpecialFilesCollector();
|
|
10
|
-
moduleLoader = new ModuleLoader(this.specialFilesCollector);
|
|
11
|
-
/**
|
|
12
|
-
* Creates the FilesOrchestrator instance
|
|
13
|
-
*
|
|
14
|
-
* Initializes all subsystems:
|
|
15
|
-
* - FileOperations for file lifecycle management
|
|
16
|
-
* - FileEventHandler for processing file system events
|
|
17
|
-
*/
|
|
18
|
-
constructor() {
|
|
19
|
-
// Create file operations with all dependencies
|
|
20
|
-
this.fileOperations = new FileOperations(this.files, this.dependencyGraph, this.manifest, this.specialFilesCollector);
|
|
21
|
-
// Create event handler with all required dependencies
|
|
22
|
-
this.eventHandler = new FileEventHandler(this.fileOperations, this.manifest, this.dependencyGraph, this.files);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Parse and add the given file to files list
|
|
26
|
-
*/
|
|
27
|
-
async add(relativePath) {
|
|
28
|
-
return this.fileOperations.addFile(relativePath);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Add then load the file through the modules load
|
|
32
|
-
*/
|
|
33
|
-
async load(relativePath, type = "other") {
|
|
34
|
-
const fileManager = await this.add(relativePath);
|
|
35
|
-
return this.moduleLoader.loadModule(fileManager, fileManager.type || type);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Get the dependency graph
|
|
39
|
-
* Provides read-only access to the dependency graph for external use
|
|
40
|
-
*/
|
|
41
|
-
getDependencyGraph() {
|
|
42
|
-
return this.dependencyGraph;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Get invalidation chain for a file
|
|
46
|
-
* Returns all files that need to be reloaded when the given file changes
|
|
47
|
-
*/
|
|
48
|
-
getInvalidationChain(file) {
|
|
49
|
-
return this.dependencyGraph.getInvalidationChain(file);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Get all tracked files
|
|
53
|
-
*/
|
|
54
|
-
getFiles() {
|
|
55
|
-
return this.files;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get health checker manager
|
|
59
|
-
*/
|
|
60
|
-
getHealthCheckerManager() {
|
|
61
|
-
return this.healthCheckerManager;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Initialize the files orchestrator
|
|
65
|
-
*/
|
|
66
|
-
async init() {
|
|
67
|
-
// Initialize es-module-lexer (it's a promise, not a function)
|
|
68
|
-
await init;
|
|
69
|
-
// Initialize configuration managers
|
|
70
|
-
await Promise.all([tsconfigManager.init(), packageJsonManager.init()]);
|
|
71
|
-
// Initialize runtime import helper (for HMR cache busting)
|
|
72
|
-
initializeRuntimeImportHelper();
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Initialize all development server features
|
|
76
|
-
*
|
|
77
|
-
* This is the main initialization sequence that:
|
|
78
|
-
* 1. Discovers all TypeScript/JavaScript files in the project
|
|
79
|
-
* 2. Reconciles filesystem state with cached manifest
|
|
80
|
-
* 3. Builds the dependency graph for HMR
|
|
81
|
-
* 4. Persists file metadata to manifest
|
|
82
|
-
*
|
|
83
|
-
* Each file is fully processed (including import transforms) during
|
|
84
|
-
* reconciliation because transforms compute cache paths deterministically
|
|
85
|
-
* and don't depend on other files being processed first.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```typescript
|
|
89
|
-
* await filesOrchestrator.init();
|
|
90
|
-
* await filesOrchestrator.initiaizeAll();
|
|
91
|
-
* await filesOrchestrator.watchFiles();
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
async initiaizeAll() {
|
|
95
|
-
const [filesInFilesystem, manifestExists] = await Promise.all([
|
|
96
|
-
this.getAllFilesFromFilesystem(),
|
|
97
|
-
this.manifest.init(),
|
|
98
|
-
]);
|
|
99
|
-
// STEP 1: Reconcile filesystem with manifest
|
|
100
|
-
// Each file is fully processed (transpile + transform + save)
|
|
101
|
-
if (!manifestExists) {
|
|
102
|
-
// No manifest = fresh start, process all files
|
|
103
|
-
await this.processAllFilesFresh(filesInFilesystem);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
// Manifest exists = reconcile differences
|
|
107
|
-
await this.reconcileFiles(filesInFilesystem);
|
|
108
|
-
}
|
|
109
|
-
// STEP 2: Build dependency graph from all processed files
|
|
110
|
-
this.dependencyGraph.build(this.files);
|
|
111
|
-
// STEP 3: Update dependents in FileManager instances
|
|
112
|
-
this.updateFileDependents();
|
|
113
|
-
// STEP 4: Sync all files to manifest and save
|
|
114
|
-
this.syncFilesToManifest();
|
|
115
|
-
await this.manifest.save();
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Check the health of the given files
|
|
119
|
-
*/
|
|
120
|
-
async checkHealth(files) {
|
|
121
|
-
const filesToCheck = files.added
|
|
122
|
-
.concat(files.changed)
|
|
123
|
-
.map((file) => this.files.get(Path.toRelative(file)))
|
|
124
|
-
.filter((file) => !!file);
|
|
125
|
-
const filesToDelete = files.deleted
|
|
126
|
-
.map((file) => this.files.get(Path.toRelative(file)))
|
|
127
|
-
.filter((file) => !!file);
|
|
128
|
-
await this.healthCheckerManager.onFileChanges(filesToCheck);
|
|
129
|
-
this.healthCheckerManager.removeFiles(filesToDelete);
|
|
130
|
-
this.healthCheckerManager.checkFiles(filesToCheck);
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Check health state for all files
|
|
134
|
-
*/
|
|
135
|
-
async startCheckingHealth() {
|
|
136
|
-
devLogDim("Started File Health Checks in the background.");
|
|
137
|
-
const typescriptHealthChecker = new TypescriptHealthChecker();
|
|
138
|
-
const eslintHealthChecker = new EslintHealthChecker();
|
|
139
|
-
await this.healthCheckerManager
|
|
140
|
-
.setHealthCheckers([typescriptHealthChecker, eslintHealthChecker])
|
|
141
|
-
.initialize(); // Initialize workers
|
|
142
|
-
await this.healthCheckerManager.validateAllFiles();
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Get all TypeScript/JavaScript files from the filesystem
|
|
146
|
-
* This always scans the actual filesystem, ignoring any cached data
|
|
147
|
-
* @returns Array of relative file paths
|
|
148
|
-
*/
|
|
149
|
-
async getAllFilesFromFilesystem() {
|
|
150
|
-
const absolutePaths = await getFilesFromDirectory();
|
|
151
|
-
// Convert to relative paths for consistency throughout the system
|
|
152
|
-
return absolutePaths.map((absPath) => Path.toRelative(absPath));
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Process all files fresh (no manifest exists)
|
|
156
|
-
*
|
|
157
|
-
* This happens on first run or when manifest is deleted.
|
|
158
|
-
* Each file is fully processed including import transforms.
|
|
159
|
-
*
|
|
160
|
-
* @param filePaths Array of relative file paths
|
|
161
|
-
*/
|
|
162
|
-
async processAllFilesFresh(filePaths) {
|
|
163
|
-
devLogDim(`processing ${filePaths.length} files...`);
|
|
164
|
-
// Ensure .warlock directory exists
|
|
165
|
-
await createFreshWarlockDirectory();
|
|
166
|
-
const BATCH_SIZE = FILE_PROCESSING_BATCH_SIZE;
|
|
167
|
-
for (let i = 0; i < filePaths.length; i += BATCH_SIZE) {
|
|
168
|
-
const batch = filePaths.slice(i, i + BATCH_SIZE);
|
|
169
|
-
await Promise.all(batch.map(async (relativePath) => {
|
|
170
|
-
const absolutePath = Path.toAbsolute(relativePath);
|
|
171
|
-
const fileManager = new FileManager(absolutePath, this.files, this.fileOperations);
|
|
172
|
-
this.files.set(relativePath, fileManager);
|
|
173
|
-
// Full processing (transforms work because cache paths are deterministic)
|
|
174
|
-
await fileManager.process();
|
|
175
|
-
}));
|
|
176
|
-
}
|
|
177
|
-
devLogSuccess(`processed ${filePaths.length} files`);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Reconcile filesystem state with manifest data
|
|
181
|
-
* This handles: new files, deleted files, and changed files
|
|
182
|
-
*/
|
|
183
|
-
async reconcileFiles(filesInFilesystem) {
|
|
184
|
-
const filesInManifest = new Set(this.manifest.getAllFilePaths());
|
|
185
|
-
const filesInFilesystemSet = new Set(filesInFilesystem);
|
|
186
|
-
// Find new files (in filesystem but not in manifest)
|
|
187
|
-
const newFiles = filesInFilesystem.filter((file) => !filesInManifest.has(file));
|
|
188
|
-
// Find deleted files (in manifest but not in filesystem)
|
|
189
|
-
const deletedFiles = Array.from(filesInManifest).filter((file) => !filesInFilesystemSet.has(file));
|
|
190
|
-
// Find existing files (in both)
|
|
191
|
-
const existingFiles = filesInFilesystem.filter((file) => filesInManifest.has(file));
|
|
192
|
-
if (newFiles.length > 0 || deletedFiles.length > 0) {
|
|
193
|
-
const newText = newFiles.length > 0 ? colors.green(newFiles.length) : 0;
|
|
194
|
-
const deletedText = deletedFiles.length > 0 ? colors.red(deletedFiles.length) : 0;
|
|
195
|
-
const existingText = existingFiles.length > 0 ? colors.blue(existingFiles.length) : 0;
|
|
196
|
-
devLogDim(`reconciling: ${newText} new, ${deletedText} deleted, ${existingText} existing`);
|
|
197
|
-
}
|
|
198
|
-
// Process new files
|
|
199
|
-
await this.processNewFiles(newFiles);
|
|
200
|
-
// Remove deleted files
|
|
201
|
-
await this.processDeletedFiles(deletedFiles);
|
|
202
|
-
// Process existing files (check for changes)
|
|
203
|
-
await this.processExistingFiles(existingFiles);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Process newly discovered files (in filesystem but not in manifest)
|
|
207
|
-
*
|
|
208
|
-
* Each file is fully processed including import transforms.
|
|
209
|
-
*
|
|
210
|
-
* @param filePaths Array of relative file paths
|
|
211
|
-
*/
|
|
212
|
-
async processNewFiles(filePaths) {
|
|
213
|
-
if (filePaths.length === 0)
|
|
214
|
-
return;
|
|
215
|
-
const BATCH_SIZE = FILE_PROCESSING_BATCH_SIZE;
|
|
216
|
-
for (let i = 0; i < filePaths.length; i += BATCH_SIZE) {
|
|
217
|
-
const batch = filePaths.slice(i, i + BATCH_SIZE);
|
|
218
|
-
await Promise.all(batch.map(async (relativePath) => {
|
|
219
|
-
const absolutePath = Path.toAbsolute(relativePath);
|
|
220
|
-
const fileManager = new FileManager(absolutePath, this.files, this.fileOperations);
|
|
221
|
-
this.files.set(relativePath, fileManager);
|
|
222
|
-
// Full processing
|
|
223
|
-
await fileManager.process();
|
|
224
|
-
}));
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Remove deleted files from tracking
|
|
229
|
-
* @param filePaths Array of relative file paths
|
|
230
|
-
*/
|
|
231
|
-
async processDeletedFiles(filePaths) {
|
|
232
|
-
if (filePaths.length === 0)
|
|
233
|
-
return;
|
|
234
|
-
for (const relativePath of filePaths) {
|
|
235
|
-
// Get file info from manifest before deletion
|
|
236
|
-
const manifestEntry = this.manifest.getFile(relativePath);
|
|
237
|
-
if (manifestEntry) {
|
|
238
|
-
// Delete cache file
|
|
239
|
-
try {
|
|
240
|
-
await unlinkAsync(warlockCachePath(manifestEntry.cachePath));
|
|
241
|
-
}
|
|
242
|
-
catch (error) {
|
|
243
|
-
// Cache file might not exist, ignore
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
// Remove from manifest
|
|
247
|
-
this.manifest.removeFile(relativePath);
|
|
248
|
-
// Remove from files map
|
|
249
|
-
this.files.delete(relativePath);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Process existing files (check if they changed since last run)
|
|
254
|
-
*
|
|
255
|
-
* For unchanged files, loads from cache.
|
|
256
|
-
* For changed files, reprocesses fully.
|
|
257
|
-
*
|
|
258
|
-
* @param filePaths Array of relative file paths
|
|
259
|
-
*/
|
|
260
|
-
async processExistingFiles(filePaths) {
|
|
261
|
-
if (filePaths.length === 0)
|
|
262
|
-
return;
|
|
263
|
-
const BATCH_SIZE = FILE_PROCESSING_BATCH_SIZE;
|
|
264
|
-
for (let i = 0; i < filePaths.length; i += BATCH_SIZE) {
|
|
265
|
-
const batch = filePaths.slice(i, i + BATCH_SIZE);
|
|
266
|
-
await Promise.all(batch.map(async (relativePath) => {
|
|
267
|
-
const manifestData = this.manifest.getFile(relativePath);
|
|
268
|
-
const absolutePath = Path.toAbsolute(relativePath);
|
|
269
|
-
const fileManager = new FileManager(absolutePath, this.files, this.fileOperations);
|
|
270
|
-
this.files.set(relativePath, fileManager);
|
|
271
|
-
// Initialize with manifest (uses cache if unchanged, reprocesses if changed)
|
|
272
|
-
await fileManager.init(manifestData);
|
|
273
|
-
}));
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Update dependents in all FileManager instances from dependency graph
|
|
278
|
-
*/
|
|
279
|
-
updateFileDependents() {
|
|
280
|
-
for (const [relativePath, fileManager] of this.files) {
|
|
281
|
-
const dependents = this.dependencyGraph.getDependents(relativePath);
|
|
282
|
-
fileManager.dependents = dependents;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Sync all FileManager instances to manifest
|
|
287
|
-
* Uses relative paths as keys for portability
|
|
288
|
-
*/
|
|
289
|
-
syncFilesToManifest() {
|
|
290
|
-
for (const [relativePath, fileManager] of this.files) {
|
|
291
|
-
this.manifest.setFile(relativePath, fileManager.toManifest());
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Start file watcher to detect changes during development
|
|
296
|
-
*/
|
|
297
|
-
async watchFiles() {
|
|
298
|
-
devLogSuccess("watching for file changes");
|
|
299
|
-
// Connect file watcher to event handler
|
|
300
|
-
this.filesWatcher.onFileChange((absolutePath) => {
|
|
301
|
-
this.eventHandler.handleFileChange(absolutePath);
|
|
302
|
-
});
|
|
303
|
-
this.filesWatcher.onFileAdd((absolutePath) => {
|
|
304
|
-
this.eventHandler.handleFileAdd(absolutePath);
|
|
305
|
-
});
|
|
306
|
-
this.filesWatcher.onFileDelete((absolutePath) => {
|
|
307
|
-
this.eventHandler.handleFileDelete(absolutePath);
|
|
308
|
-
});
|
|
309
|
-
// Get watch config from warlock.config.ts (if loaded)
|
|
310
|
-
const watchConfig = warlockConfigManager.get("devServer")?.watch;
|
|
311
|
-
await this.filesWatcher.watch(watchConfig);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
const filesOrchestrator = new FilesOrchestrator();export{FilesOrchestrator,filesOrchestrator};//# sourceMappingURL=files-orchestrator.js.map
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,MAAA,iBAAiB,GAAG,IAAI,iBAAiB"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
type FileWatcherEvent = "change" | "delete" | "add" | "error" | "addDir" | "unlinkDir";
|
|
2
|
-
type FileChangeCallback = (filePath: string) => void;
|
|
3
|
-
type FileDeleteCallback = (filePath: string) => void;
|
|
4
|
-
type FileAddCallback = (filePath: string) => void;
|
|
5
|
-
type FileErrorCallback = (filePath: string, error: Error) => void;
|
|
6
|
-
type FileAddDirCallback = (filePath: string) => void;
|
|
7
|
-
type FileUnlinkDirCallback = (filePath: string) => void;
|
|
8
|
-
type OnFileEventCallback = FileChangeCallback | FileDeleteCallback | FileAddCallback | FileErrorCallback | FileAddDirCallback | FileUnlinkDirCallback;
|
|
9
|
-
/**
|
|
10
|
-
* Watch configuration options
|
|
11
|
-
*/
|
|
12
|
-
export type WatchConfig = {
|
|
13
|
-
/**
|
|
14
|
-
* Glob patterns to include
|
|
15
|
-
*/
|
|
16
|
-
include?: string[];
|
|
17
|
-
/**
|
|
18
|
-
* Glob patterns to exclude
|
|
19
|
-
*/
|
|
20
|
-
exclude?: string[];
|
|
21
|
-
};
|
|
22
|
-
export declare class FilesWatcher {
|
|
23
|
-
/**
|
|
24
|
-
* File watcher id
|
|
25
|
-
*/
|
|
26
|
-
private id;
|
|
27
|
-
/**
|
|
28
|
-
* Watch for files changes
|
|
29
|
-
* @param config Optional watch configuration
|
|
30
|
-
*/
|
|
31
|
-
watch(config?: WatchConfig): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Trigger event immediately (no debouncing here)
|
|
34
|
-
* Debouncing is handled at the orchestrator level for batch processing
|
|
35
|
-
*/
|
|
36
|
-
private triggerEvent;
|
|
37
|
-
/**
|
|
38
|
-
* On file change event
|
|
39
|
-
*/
|
|
40
|
-
onFileChange(callback: FileChangeCallback): import("@mongez/events").EventSubscription;
|
|
41
|
-
/**
|
|
42
|
-
* On file delete event
|
|
43
|
-
*/
|
|
44
|
-
onFileDelete(callback: FileDeleteCallback): import("@mongez/events").EventSubscription;
|
|
45
|
-
/**
|
|
46
|
-
* On file add event
|
|
47
|
-
*/
|
|
48
|
-
onFileAdd(callback: FileAddCallback): import("@mongez/events").EventSubscription;
|
|
49
|
-
/**
|
|
50
|
-
* On file error event
|
|
51
|
-
*/
|
|
52
|
-
onFileError(callback: FileErrorCallback): import("@mongez/events").EventSubscription;
|
|
53
|
-
/**
|
|
54
|
-
* On file add dir event
|
|
55
|
-
*/
|
|
56
|
-
onDirectoryAdd(callback: FileAddDirCallback): import("@mongez/events").EventSubscription;
|
|
57
|
-
/**
|
|
58
|
-
* On file unlink dir event
|
|
59
|
-
*/
|
|
60
|
-
onDirectoryRemove(callback: FileUnlinkDirCallback): import("@mongez/events").EventSubscription;
|
|
61
|
-
/**
|
|
62
|
-
* On file event
|
|
63
|
-
*/
|
|
64
|
-
on(event: FileWatcherEvent, callback: OnFileEventCallback): import("@mongez/events").EventSubscription;
|
|
65
|
-
}
|
|
66
|
-
export {};
|
|
67
|
-
//# sourceMappingURL=files-watcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-watcher.d.ts","sourceRoot":"","sources":["../../src/dev2-server/files-watcher.ts"],"names":[],"mappings":"AAMA,KAAK,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEvF,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;AACrD,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;AACrD,KAAK,eAAe,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;AAClD,KAAK,iBAAiB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;AAClE,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;AACrD,KAAK,qBAAqB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;AACxD,KAAK,mBAAmB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,eAAe,GACf,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAOF,qBAAa,YAAY;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAmB;IAE7B;;;OAGG;IACU,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW;IAqCvC;;;OAGG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACI,YAAY,CAAC,QAAQ,EAAE,kBAAkB;IAIhD;;OAEG;IACI,YAAY,CAAC,QAAQ,EAAE,kBAAkB;IAIhD;;OAEG;IACI,SAAS,CAAC,QAAQ,EAAE,eAAe;IAI1C;;OAEG;IACI,WAAW,CAAC,QAAQ,EAAE,iBAAiB;IAI9C;;OAEG;IACI,cAAc,CAAC,QAAQ,EAAE,kBAAkB;IAIlD;;OAEG;IACI,iBAAiB,CAAC,QAAQ,EAAE,qBAAqB;IAIxD;;OAEG;IACI,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,mBAAmB;CAGjE"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import events from'@mongez/events';import {Random}from'@mongez/reinforcements';import chokidar from'chokidar';import'@warlock.js/logger';import'@warlock.js/cascade';import'../utils/date-output.js';import'../http/middleware/inject-request-context.js';import {rootPath,srcPath}from'../utils/paths.js';import'@mongez/slug';import'@mongez/supportive-is';import {Path}from'./path.js';/**
|
|
2
|
-
* Default patterns to exclude from watching
|
|
3
|
-
*/
|
|
4
|
-
const DEFAULT_EXCLUDE = ["**/node_modules/**", "**/dist/**", "**/.warlock/**", "**/.git/**"];
|
|
5
|
-
class FilesWatcher {
|
|
6
|
-
/**
|
|
7
|
-
* File watcher id
|
|
8
|
-
*/
|
|
9
|
-
id = Random.string();
|
|
10
|
-
/**
|
|
11
|
-
* Watch for files changes
|
|
12
|
-
* @param config Optional watch configuration
|
|
13
|
-
*/
|
|
14
|
-
async watch(config) {
|
|
15
|
-
// watch for .env file change and any changes in the src directory
|
|
16
|
-
const paths = [rootPath(".env"), srcPath()].map((path) => Path.normalize(path));
|
|
17
|
-
// Merge default exclude with config exclude
|
|
18
|
-
const ignored = [...DEFAULT_EXCLUDE, ...(config?.exclude || [])];
|
|
19
|
-
const watcher = chokidar.watch(paths, {
|
|
20
|
-
ignoreInitial: true,
|
|
21
|
-
ignored,
|
|
22
|
-
persistent: true,
|
|
23
|
-
usePolling: false,
|
|
24
|
-
interval: 100,
|
|
25
|
-
binaryInterval: 300,
|
|
26
|
-
awaitWriteFinish: {
|
|
27
|
-
stabilityThreshold: 100,
|
|
28
|
-
pollInterval: 50,
|
|
29
|
-
},
|
|
30
|
-
// On Windows, explicitly enable recursive watching
|
|
31
|
-
depth: 99,
|
|
32
|
-
});
|
|
33
|
-
watcher.on("add", (filePath) => this.triggerEvent("add", filePath));
|
|
34
|
-
watcher.on("change", (filePath) => this.triggerEvent("change", filePath));
|
|
35
|
-
watcher.on("unlink", (filePath) => this.triggerEvent("delete", filePath));
|
|
36
|
-
watcher.on("addDir", (filePath) => this.triggerEvent("addDir", filePath));
|
|
37
|
-
watcher.on("unlinkDir", (filePath) => this.triggerEvent("unlinkDir", filePath));
|
|
38
|
-
// watcher.on("error", (error: Error, filePath: string) =>
|
|
39
|
-
// this.triggerEvent("error", filePath, error),
|
|
40
|
-
// );
|
|
41
|
-
// Cleanup on process exit
|
|
42
|
-
process.on("SIGINT", async () => {
|
|
43
|
-
await watcher.close();
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Trigger event immediately (no debouncing here)
|
|
48
|
-
* Debouncing is handled at the orchestrator level for batch processing
|
|
49
|
-
*/
|
|
50
|
-
triggerEvent(event, filePath, error) {
|
|
51
|
-
events.trigger(`file-watcher.${this.id}.${event}`, Path.normalize(filePath), error);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* On file change event
|
|
55
|
-
*/
|
|
56
|
-
onFileChange(callback) {
|
|
57
|
-
return this.on("change", callback);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* On file delete event
|
|
61
|
-
*/
|
|
62
|
-
onFileDelete(callback) {
|
|
63
|
-
return this.on("delete", callback);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* On file add event
|
|
67
|
-
*/
|
|
68
|
-
onFileAdd(callback) {
|
|
69
|
-
return this.on("add", callback);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* On file error event
|
|
73
|
-
*/
|
|
74
|
-
onFileError(callback) {
|
|
75
|
-
return this.on("error", callback);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* On file add dir event
|
|
79
|
-
*/
|
|
80
|
-
onDirectoryAdd(callback) {
|
|
81
|
-
return this.on("addDir", callback);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* On file unlink dir event
|
|
85
|
-
*/
|
|
86
|
-
onDirectoryRemove(callback) {
|
|
87
|
-
return this.on("unlinkDir", callback);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* On file event
|
|
91
|
-
*/
|
|
92
|
-
on(event, callback) {
|
|
93
|
-
return events.subscribe(`file-watcher.${this.id}.${event}`, callback);
|
|
94
|
-
}
|
|
95
|
-
}export{FilesWatcher};//# sourceMappingURL=files-watcher.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"files-watcher.js","sources":["../../src/dev2-server/files-watcher.ts"],"sourcesContent":[null],"names":[],"mappings":"2XAoCA;;AAEG;AACH,MAAM,eAAe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,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;KACpC;AAED;;AAEG;AACI,IAAA,iBAAiB,CAAC,QAA+B,EAAA;QACtD,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;KACvC;AAED;;AAEG;IACI,EAAE,CAAC,KAAuB,EAAE,QAA6B,EAAA;AAC9D,QAAA,OAAO,MAAM,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,EAAE,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE,EAAE,QAAQ,CAAC,CAAC;KACvE;AACF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const MANIFEST_PATH: string;
|
|
2
|
-
/**
|
|
3
|
-
* Number of files to process in parallel per batch
|
|
4
|
-
* Adjust this value to optimize performance vs memory usage
|
|
5
|
-
* - Lower values (10-20): More stable, less memory, slower
|
|
6
|
-
* - Higher values (100-200): Faster, more memory, potential instability
|
|
7
|
-
* - Recommended: 50 for most projects
|
|
8
|
-
*/
|
|
9
|
-
export declare const FILE_PROCESSING_BATCH_SIZE = 500;
|
|
10
|
-
//# sourceMappingURL=flags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../src/dev2-server/flags.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,QAA+B,CAAC;AAE1D;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC"}
|