@zintrust/core 0.1.40 → 0.1.42
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/bin/zintrust-main.d.ts.map +1 -1
- package/bin/zintrust-main.js +22 -1
- package/package.json +24 -4
- package/public/error-pages/404.html +2 -2
- package/src/auth/Auth.js +1 -1
- package/src/boot/Application.d.ts +1 -16
- package/src/boot/Application.d.ts.map +1 -1
- package/src/boot/Application.js +2 -290
- package/src/boot/Server.d.ts +1 -1
- package/src/boot/Server.d.ts.map +1 -1
- package/src/boot/bootstrap.js +50 -16
- package/src/boot/registry/registerRoute.d.ts +6 -0
- package/src/boot/registry/registerRoute.d.ts.map +1 -0
- package/src/boot/registry/registerRoute.js +96 -0
- package/src/boot/registry/runtime.d.ts +15 -0
- package/src/boot/registry/runtime.d.ts.map +1 -0
- package/src/boot/registry/runtime.js +364 -0
- package/src/boot/registry/type.d.ts +25 -0
- package/src/boot/registry/type.d.ts.map +1 -0
- package/src/boot/registry/type.js +1 -0
- package/src/boot/registry/worker.d.ts +6 -0
- package/src/boot/registry/worker.d.ts.map +1 -0
- package/src/boot/registry/worker.js +35 -0
- package/src/cache/drivers/KVRemoteDriver.d.ts.map +1 -1
- package/src/cache/drivers/KVRemoteDriver.js +14 -1
- package/src/cli/CLI.d.ts.map +1 -1
- package/src/cli/CLI.js +94 -34
- package/src/cli/ErrorHandler.js +1 -1
- package/src/cli/commands/ConfigCommand.d.ts.map +1 -1
- package/src/cli/commands/ConfigCommand.js +3 -5
- package/src/cli/commands/ContainerProxiesCommand.d.ts +5 -0
- package/src/cli/commands/ContainerProxiesCommand.d.ts.map +1 -0
- package/src/cli/commands/ContainerProxiesCommand.js +77 -0
- package/src/cli/commands/ContainerWorkersCommand.d.ts +5 -0
- package/src/cli/commands/ContainerWorkersCommand.d.ts.map +1 -0
- package/src/cli/commands/ContainerWorkersCommand.js +57 -0
- package/src/cli/commands/D1LearnCommand.d.ts +9 -0
- package/src/cli/commands/D1LearnCommand.d.ts.map +1 -0
- package/src/cli/commands/D1LearnCommand.js +143 -0
- package/src/cli/commands/D1MigrateCommand.d.ts.map +1 -1
- package/src/cli/commands/D1MigrateCommand.js +55 -16
- package/src/cli/commands/DeployCommand.d.ts +16 -0
- package/src/cli/commands/DeployCommand.d.ts.map +1 -0
- package/src/cli/commands/DeployCommand.js +110 -0
- package/src/cli/commands/DeployContainerProxiesCommand.d.ts +5 -0
- package/src/cli/commands/DeployContainerProxiesCommand.d.ts.map +1 -0
- package/src/cli/commands/DeployContainerProxiesCommand.js +27 -0
- package/src/cli/commands/DeployContainerWorkersCommand.d.ts +5 -0
- package/src/cli/commands/DeployContainerWorkersCommand.d.ts.map +1 -0
- package/src/cli/commands/DeployContainerWorkersCommand.js +27 -0
- package/src/cli/commands/DockerComposeCommandUtils.d.ts +3 -0
- package/src/cli/commands/DockerComposeCommandUtils.d.ts.map +1 -0
- package/src/cli/commands/DockerComposeCommandUtils.js +34 -0
- package/src/cli/commands/DoctorArchitectureCommand.d.ts +5 -0
- package/src/cli/commands/DoctorArchitectureCommand.d.ts.map +1 -0
- package/src/cli/commands/DoctorArchitectureCommand.js +54 -0
- package/src/cli/commands/InitContainerCommand.d.ts +5 -0
- package/src/cli/commands/InitContainerCommand.d.ts.map +1 -0
- package/src/cli/commands/InitContainerCommand.js +231 -0
- package/src/cli/commands/InitEcosystemCommand.d.ts +6 -0
- package/src/cli/commands/InitEcosystemCommand.d.ts.map +1 -0
- package/src/cli/commands/InitEcosystemCommand.js +51 -0
- package/src/cli/commands/InitProducerCommand.d.ts +5 -0
- package/src/cli/commands/InitProducerCommand.d.ts.map +1 -0
- package/src/cli/commands/InitProducerCommand.js +47 -0
- package/src/cli/commands/InitProxyCommand.d.ts +5 -0
- package/src/cli/commands/InitProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/InitProxyCommand.js +442 -0
- package/src/cli/commands/MigrateCommand.d.ts.map +1 -1
- package/src/cli/commands/MigrateCommand.js +78 -36
- package/src/cli/commands/MigrateWorkerCommand.d.ts.map +1 -1
- package/src/cli/commands/MigrateWorkerCommand.js +36 -2
- package/src/cli/commands/MongoDBProxyCommand.d.ts +5 -0
- package/src/cli/commands/MongoDBProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/MongoDBProxyCommand.js +98 -0
- package/src/cli/commands/MySqlProxyCommand.d.ts +6 -0
- package/src/cli/commands/MySqlProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/MySqlProxyCommand.js +32 -0
- package/src/cli/commands/PostgresProxyCommand.d.ts +6 -0
- package/src/cli/commands/PostgresProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/PostgresProxyCommand.js +32 -0
- package/src/cli/commands/ProxyCommand.d.ts +12 -0
- package/src/cli/commands/ProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/ProxyCommand.js +80 -0
- package/src/cli/commands/ProxyCommandUtils.d.ts +6 -0
- package/src/cli/commands/ProxyCommandUtils.d.ts.map +1 -0
- package/src/cli/commands/ProxyCommandUtils.js +38 -0
- package/src/cli/commands/PutCommand.d.ts +6 -0
- package/src/cli/commands/PutCommand.d.ts.map +1 -0
- package/src/cli/commands/PutCommand.js +173 -0
- package/src/cli/commands/QueueRecoveryCommand.d.ts +6 -0
- package/src/cli/commands/QueueRecoveryCommand.d.ts.map +1 -0
- package/src/cli/commands/QueueRecoveryCommand.js +612 -0
- package/src/cli/commands/RedisProxyCommand.d.ts +6 -0
- package/src/cli/commands/RedisProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/RedisProxyCommand.js +53 -0
- package/src/cli/commands/ScheduleListCommand.d.ts +6 -0
- package/src/cli/commands/ScheduleListCommand.d.ts.map +1 -0
- package/src/cli/commands/ScheduleListCommand.js +62 -0
- package/src/cli/commands/ScheduleRunCommand.d.ts +6 -0
- package/src/cli/commands/ScheduleRunCommand.d.ts.map +1 -0
- package/src/cli/commands/ScheduleRunCommand.js +32 -0
- package/src/cli/commands/ScheduleStartCommand.d.ts +6 -0
- package/src/cli/commands/ScheduleStartCommand.d.ts.map +1 -0
- package/src/cli/commands/ScheduleStartCommand.js +40 -0
- package/src/cli/commands/SecretsCommand.d.ts.map +1 -1
- package/src/cli/commands/SecretsCommand.js +2 -2
- package/src/cli/commands/SmtpProxyCommand.d.ts +6 -0
- package/src/cli/commands/SmtpProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/SmtpProxyCommand.js +56 -0
- package/src/cli/commands/SqlProxyCommandUtils.d.ts +46 -0
- package/src/cli/commands/SqlProxyCommandUtils.d.ts.map +1 -0
- package/src/cli/commands/SqlProxyCommandUtils.js +48 -0
- package/src/cli/commands/SqlServerProxyCommand.d.ts +5 -0
- package/src/cli/commands/SqlServerProxyCommand.d.ts.map +1 -0
- package/src/cli/commands/SqlServerProxyCommand.js +85 -0
- package/src/cli/commands/StartCommand.d.ts.map +1 -1
- package/src/cli/commands/StartCommand.js +132 -17
- package/src/cli/commands/WorkerCommands.d.ts +1 -0
- package/src/cli/commands/WorkerCommands.d.ts.map +1 -1
- package/src/cli/commands/WorkerCommands.js +140 -6
- package/src/cli/commands/index.d.ts +2 -0
- package/src/cli/commands/index.d.ts.map +1 -1
- package/src/cli/commands/index.js +2 -0
- package/src/cli/commands/runner/index.d.ts +2 -2
- package/src/cli/commands/runner/index.d.ts.map +1 -1
- package/src/cli/commands/runner/index.js +15 -4
- package/src/cli/commands/schedule/ScheduleCliSupport.d.ts +6 -0
- package/src/cli/commands/schedule/ScheduleCliSupport.d.ts.map +1 -0
- package/src/cli/commands/schedule/ScheduleCliSupport.js +55 -0
- package/src/cli/config/ConfigManager.d.ts.map +1 -1
- package/src/cli/config/ConfigManager.js +8 -1
- package/src/cli/d1/D1SqlMigrations.d.ts.map +1 -1
- package/src/cli/d1/D1SqlMigrations.js +14 -1
- package/src/cli/d1/WranglerConfig.d.ts.map +1 -1
- package/src/cli/d1/WranglerConfig.js +34 -2
- package/src/cli/index.d.ts +4 -0
- package/src/cli/index.d.ts.map +1 -1
- package/src/cli/index.js +4 -0
- package/src/cli/scaffolding/ProjectScaffolder.d.ts.map +1 -1
- package/src/cli/scaffolding/ProjectScaffolder.js +2 -0
- package/src/cli/scaffolding/ServiceScaffolder.d.ts.map +1 -1
- package/src/cli/scaffolding/ServiceScaffolder.js +1 -0
- package/src/cli/services/VersionChecker.d.ts.map +1 -1
- package/src/cli/services/VersionChecker.js +5 -1
- package/src/cli/utils/DatabaseCliUtils.d.ts.map +1 -1
- package/src/cli/utils/DatabaseCliUtils.js +6 -1
- package/src/cli/utils/EnvFileLoader.d.ts.map +1 -1
- package/src/cli/utils/EnvFileLoader.js +35 -15
- package/src/cli/workers/QueueWorkRunner.js +1 -1
- package/src/cli.d.ts +5 -0
- package/src/cli.d.ts.map +1 -0
- package/src/cli.js +4 -0
- package/src/collections/index.d.ts +2 -2
- package/src/collections/index.d.ts.map +1 -1
- package/src/collections/index.js +1 -1
- package/src/common/HealthRoutes.d.ts.map +1 -1
- package/src/common/HealthRoutes.js +50 -2
- package/src/common/RemoteSignedJson.d.ts +1 -0
- package/src/common/RemoteSignedJson.d.ts.map +1 -1
- package/src/common/RemoteSignedJson.js +81 -29
- package/src/common/index.d.ts +1 -0
- package/src/common/index.d.ts.map +1 -1
- package/src/common/index.js +12 -1
- package/src/common/utility.d.ts.map +1 -1
- package/src/common/utility.js +2 -6
- package/src/config/FileLogWriter.d.ts.map +1 -1
- package/src/config/FileLogWriter.js +21 -6
- package/src/config/app.d.ts +4 -0
- package/src/config/app.d.ts.map +1 -1
- package/src/config/app.js +4 -0
- package/src/config/cache.d.ts.map +1 -1
- package/src/config/cache.js +22 -2
- package/src/config/cloudflare.d.ts +5 -1
- package/src/config/cloudflare.d.ts.map +1 -1
- package/src/config/cloudflare.js +67 -8
- package/src/config/database.d.ts.map +1 -1
- package/src/config/database.js +48 -13
- package/src/config/env.d.ts +87 -2
- package/src/config/env.d.ts.map +1 -1
- package/src/config/env.js +158 -19
- package/src/config/index.d.ts +1 -0
- package/src/config/index.d.ts.map +1 -1
- package/src/config/mail.d.ts.map +1 -1
- package/src/config/mail.js +16 -10
- package/src/config/middleware.d.ts +5 -0
- package/src/config/middleware.d.ts.map +1 -1
- package/src/config/middleware.js +19 -1
- package/src/config/queue.d.ts.map +1 -1
- package/src/config/queue.js +70 -9
- package/src/config/redis.d.ts.map +1 -1
- package/src/config/redis.js +48 -13
- package/src/config/storage.d.ts.map +1 -1
- package/src/config/storage.js +1 -0
- package/src/config/type.d.ts +18 -0
- package/src/config/type.d.ts.map +1 -1
- package/src/config/workers.d.ts.map +1 -1
- package/src/config/workers.js +122 -16
- package/src/functions/cloudflare.d.ts.map +1 -1
- package/src/functions/cloudflare.js +55 -1
- package/src/health/StartupHealthChecks.js +1 -1
- package/src/helper/index.d.ts +225 -0
- package/src/helper/index.d.ts.map +1 -0
- package/src/helper/index.js +347 -0
- package/src/http/FileUpload.d.ts +3 -2
- package/src/http/FileUpload.d.ts.map +1 -1
- package/src/http/Kernel.d.ts.map +1 -1
- package/src/http/Kernel.js +2 -1
- package/src/http/error-pages/ErrorPageRenderer.d.ts +4 -0
- package/src/http/error-pages/ErrorPageRenderer.d.ts.map +1 -1
- package/src/http/error-pages/ErrorPageRenderer.js +141 -1
- package/src/http/middleware/BodyParsingMiddleware.d.ts.map +1 -1
- package/src/http/middleware/BodyParsingMiddleware.js +33 -6
- package/src/index.d.ts +26 -57
- package/src/index.d.ts.map +1 -1
- package/src/index.js +32 -18
- package/src/microservices/ServiceAuthMiddleware.d.ts.map +1 -1
- package/src/microservices/ServiceAuthMiddleware.js +12 -4
- package/src/middleware/CsrfMiddleware.d.ts.map +1 -1
- package/src/middleware/CsrfMiddleware.js +30 -16
- package/src/middleware/ErrorHandlerMiddleware.d.ts.map +1 -1
- package/src/middleware/ErrorHandlerMiddleware.js +2 -1
- package/src/migrations/MigrationDiscovery.d.ts.map +1 -1
- package/src/migrations/MigrationDiscovery.js +2 -1
- package/src/migrations/MigrationLoader.js +1 -1
- package/src/migrations/schema/SchemaCompiler.d.ts.map +1 -1
- package/src/migrations/schema/SchemaCompiler.js +6 -3
- package/src/node-singletons/crypto.d.ts +1 -1
- package/src/node-singletons/crypto.d.ts.map +1 -1
- package/src/node-singletons/crypto.js +1 -1
- package/src/node-singletons/fs.d.ts +1 -1
- package/src/node-singletons/fs.d.ts.map +1 -1
- package/src/node-singletons/path.d.ts +1 -1
- package/src/node-singletons/path.d.ts.map +1 -1
- package/src/node-singletons/path.js +1 -1
- package/src/node-singletons/stream.d.ts +11 -0
- package/src/node-singletons/stream.d.ts.map +1 -0
- package/src/node-singletons/stream.js +8 -0
- package/src/observability/OpenTelemetry.d.ts +7 -0
- package/src/observability/OpenTelemetry.d.ts.map +1 -1
- package/src/observability/OpenTelemetry.js +49 -2
- package/src/orm/Database.d.ts +4 -0
- package/src/orm/Database.d.ts.map +1 -1
- package/src/orm/Database.js +80 -9
- package/src/orm/DatabaseAdapter.d.ts +1 -0
- package/src/orm/DatabaseAdapter.d.ts.map +1 -1
- package/src/orm/DatabaseRuntimeRegistration.d.ts.map +1 -1
- package/src/orm/DatabaseRuntimeRegistration.js +2 -0
- package/src/orm/QueryBuilder.d.ts +1 -0
- package/src/orm/QueryBuilder.d.ts.map +1 -1
- package/src/orm/QueryBuilder.js +33 -3
- package/src/orm/SchemaCompiler.d.ts.map +1 -1
- package/src/orm/SchemaCompiler.js +6 -3
- package/src/orm/SchemaStatemenWriter.d.ts +15 -0
- package/src/orm/SchemaStatemenWriter.d.ts.map +1 -0
- package/src/orm/SchemaStatemenWriter.js +78 -0
- package/src/orm/adapters/D1Adapter.d.ts.map +1 -1
- package/src/orm/adapters/D1Adapter.js +52 -2
- package/src/orm/adapters/D1RemoteAdapter.d.ts.map +1 -1
- package/src/orm/adapters/D1RemoteAdapter.js +150 -89
- package/src/orm/adapters/MongoDBProxyAdapter.d.ts +3 -0
- package/src/orm/adapters/MongoDBProxyAdapter.d.ts.map +1 -0
- package/src/orm/adapters/MongoDBProxyAdapter.js +128 -0
- package/src/orm/adapters/MySQLProxyAdapter.d.ts +11 -0
- package/src/orm/adapters/MySQLProxyAdapter.d.ts.map +1 -0
- package/src/orm/adapters/MySQLProxyAdapter.js +162 -0
- package/src/orm/adapters/PostgreSQLProxyAdapter.d.ts +11 -0
- package/src/orm/adapters/PostgreSQLProxyAdapter.d.ts.map +1 -0
- package/src/orm/adapters/PostgreSQLProxyAdapter.js +163 -0
- package/src/orm/adapters/ProxyCache.d.ts +9 -0
- package/src/orm/adapters/ProxyCache.d.ts.map +1 -0
- package/src/orm/adapters/ProxyCache.js +24 -0
- package/src/orm/adapters/ProxySignedRequest.d.ts +11 -0
- package/src/orm/adapters/ProxySignedRequest.d.ts.map +1 -0
- package/src/orm/adapters/ProxySignedRequest.js +30 -0
- package/src/orm/adapters/ProxySigningPath.d.ts +3 -0
- package/src/orm/adapters/ProxySigningPath.d.ts.map +1 -0
- package/src/orm/adapters/ProxySigningPath.js +25 -0
- package/src/orm/adapters/SqlProxyAdapterUtils.d.ts +19 -0
- package/src/orm/adapters/SqlProxyAdapterUtils.d.ts.map +1 -0
- package/src/orm/adapters/SqlProxyAdapterUtils.js +36 -0
- package/src/orm/adapters/SqlProxyRegistryMode.d.ts +12 -0
- package/src/orm/adapters/SqlProxyRegistryMode.d.ts.map +1 -0
- package/src/orm/adapters/SqlProxyRegistryMode.js +24 -0
- package/src/orm/adapters/SqlServerProxyAdapter.d.ts +6 -0
- package/src/orm/adapters/SqlServerProxyAdapter.d.ts.map +1 -0
- package/src/orm/adapters/SqlServerProxyAdapter.js +154 -0
- package/src/orm/migrations/MigrationStore.js +1 -1
- package/src/performance/Optimizer.d.ts +1 -0
- package/src/performance/Optimizer.d.ts.map +1 -1
- package/src/performance/Optimizer.js +21 -8
- package/src/proxy/ErrorHandler.d.ts +11 -0
- package/src/proxy/ErrorHandler.d.ts.map +1 -0
- package/src/proxy/ErrorHandler.js +7 -0
- package/src/proxy/PoolManager.d.ts +8 -0
- package/src/proxy/PoolManager.d.ts.map +1 -0
- package/src/proxy/PoolManager.js +18 -0
- package/src/proxy/ProxyBackend.d.ts +18 -0
- package/src/proxy/ProxyBackend.d.ts.map +1 -0
- package/src/proxy/ProxyBackend.js +1 -0
- package/src/proxy/ProxyConfig.d.ts +12 -0
- package/src/proxy/ProxyConfig.d.ts.map +1 -0
- package/src/proxy/ProxyConfig.js +1 -0
- package/src/proxy/ProxyRegistry.d.ts +10 -0
- package/src/proxy/ProxyRegistry.d.ts.map +1 -0
- package/src/proxy/ProxyRegistry.js +11 -0
- package/src/proxy/ProxyRequestParsing.d.ts +9 -0
- package/src/proxy/ProxyRequestParsing.d.ts.map +1 -0
- package/src/proxy/ProxyRequestParsing.js +16 -0
- package/src/proxy/ProxyServer.d.ts +21 -0
- package/src/proxy/ProxyServer.d.ts.map +1 -0
- package/src/proxy/ProxyServer.js +84 -0
- package/src/proxy/ProxyServerUtils.d.ts +37 -0
- package/src/proxy/ProxyServerUtils.d.ts.map +1 -0
- package/src/proxy/ProxyServerUtils.js +42 -0
- package/src/proxy/ProxySigningConfigResolver.d.ts +22 -0
- package/src/proxy/ProxySigningConfigResolver.d.ts.map +1 -0
- package/src/proxy/ProxySigningConfigResolver.js +24 -0
- package/src/proxy/ProxySigningRequest.d.ts +12 -0
- package/src/proxy/ProxySigningRequest.d.ts.map +1 -0
- package/src/proxy/ProxySigningRequest.js +31 -0
- package/src/proxy/RequestValidator.d.ts +15 -0
- package/src/proxy/RequestValidator.d.ts.map +1 -0
- package/src/proxy/RequestValidator.js +26 -0
- package/src/proxy/SigningService.d.ts +39 -0
- package/src/proxy/SigningService.d.ts.map +1 -0
- package/src/proxy/SigningService.js +107 -0
- package/src/proxy/SqlPayloadValidator.d.ts +13 -0
- package/src/proxy/SqlPayloadValidator.d.ts.map +1 -0
- package/src/proxy/SqlPayloadValidator.js +14 -0
- package/src/proxy/SqlProxyDbOverrides.d.ts +17 -0
- package/src/proxy/SqlProxyDbOverrides.d.ts.map +1 -0
- package/src/proxy/SqlProxyDbOverrides.js +1 -0
- package/src/proxy/SqlProxyServerDeps.d.ts +12 -0
- package/src/proxy/SqlProxyServerDeps.d.ts.map +1 -0
- package/src/proxy/SqlProxyServerDeps.js +9 -0
- package/src/proxy/StatementPayloadValidator.d.ts +13 -0
- package/src/proxy/StatementPayloadValidator.d.ts.map +1 -0
- package/src/proxy/StatementPayloadValidator.js +18 -0
- package/src/proxy/StatementRegistryLoader.d.ts +2 -0
- package/src/proxy/StatementRegistryLoader.d.ts.map +1 -0
- package/src/proxy/StatementRegistryLoader.js +36 -0
- package/src/proxy/StatementRegistryResolver.d.ts +15 -0
- package/src/proxy/StatementRegistryResolver.d.ts.map +1 -0
- package/src/proxy/StatementRegistryResolver.js +34 -0
- package/src/proxy/d1/ZintrustD1Proxy.d.ts +3 -0
- package/src/proxy/d1/ZintrustD1Proxy.d.ts.map +1 -0
- package/src/proxy/d1/ZintrustD1Proxy.js +2 -0
- package/src/proxy/d1/register.d.ts +2 -0
- package/src/proxy/d1/register.d.ts.map +1 -0
- package/src/proxy/d1/register.js +5 -0
- package/src/proxy/isMutatingSql.d.ts +2 -0
- package/src/proxy/isMutatingSql.d.ts.map +1 -0
- package/src/proxy/isMutatingSql.js +12 -0
- package/src/proxy/kv/ZintrustKvProxy.d.ts +3 -0
- package/src/proxy/kv/ZintrustKvProxy.d.ts.map +1 -0
- package/src/proxy/kv/ZintrustKvProxy.js +2 -0
- package/src/proxy/kv/register.d.ts +2 -0
- package/src/proxy/kv/register.d.ts.map +1 -0
- package/src/proxy/kv/register.js +5 -0
- package/src/proxy/mongodb/MongoDBProxyServer.d.ts +33 -0
- package/src/proxy/mongodb/MongoDBProxyServer.d.ts.map +1 -0
- package/src/proxy/mongodb/MongoDBProxyServer.js +202 -0
- package/src/proxy/mongodb/register.d.ts +2 -0
- package/src/proxy/mongodb/register.d.ts.map +1 -0
- package/src/proxy/mongodb/register.js +5 -0
- package/src/proxy/mysql/MySqlProxyServer.d.ts +8 -0
- package/src/proxy/mysql/MySqlProxyServer.d.ts.map +1 -0
- package/src/proxy/mysql/MySqlProxyServer.js +202 -0
- package/src/proxy/mysql/register.d.ts +2 -0
- package/src/proxy/mysql/register.d.ts.map +1 -0
- package/src/proxy/mysql/register.js +5 -0
- package/src/proxy/postgres/PostgresProxyServer.d.ts +8 -0
- package/src/proxy/postgres/PostgresProxyServer.d.ts.map +1 -0
- package/src/proxy/postgres/PostgresProxyServer.js +178 -0
- package/src/proxy/postgres/register.d.ts +2 -0
- package/src/proxy/postgres/register.d.ts.map +1 -0
- package/src/proxy/postgres/register.js +5 -0
- package/src/proxy/redis/RedisProxyServer.d.ts +12 -0
- package/src/proxy/redis/RedisProxyServer.d.ts.map +1 -0
- package/src/proxy/redis/RedisProxyServer.js +192 -0
- package/src/proxy/redis/register.d.ts +2 -0
- package/src/proxy/redis/register.d.ts.map +1 -0
- package/src/proxy/redis/register.js +5 -0
- package/src/proxy/smtp/SmtpProxyServer.d.ts +19 -0
- package/src/proxy/smtp/SmtpProxyServer.d.ts.map +1 -0
- package/src/proxy/smtp/SmtpProxyServer.js +290 -0
- package/src/proxy/smtp/register.d.ts +2 -0
- package/src/proxy/smtp/register.d.ts.map +1 -0
- package/src/proxy/smtp/register.js +5 -0
- package/src/proxy/sqlserver/SqlServerProxyServer.d.ts +8 -0
- package/src/proxy/sqlserver/SqlServerProxyServer.d.ts.map +1 -0
- package/src/proxy/sqlserver/SqlServerProxyServer.js +203 -0
- package/src/proxy/sqlserver/register.d.ts +2 -0
- package/src/proxy/sqlserver/register.d.ts.map +1 -0
- package/src/proxy/sqlserver/register.js +5 -0
- package/src/proxy.d.ts +4 -0
- package/src/proxy.d.ts.map +1 -0
- package/src/proxy.js +3 -0
- package/src/routes/doc.d.ts.map +1 -1
- package/src/routes/doc.js +16 -2
- package/src/routes/error.d.ts +5 -4
- package/src/routes/error.d.ts.map +1 -1
- package/src/routes/error.js +15 -13
- package/src/routes/errorPages.d.ts +2 -0
- package/src/routes/errorPages.d.ts.map +1 -1
- package/src/routes/errorPages.js +144 -4
- package/src/runtime/PluginAutoImports.d.ts +1 -0
- package/src/runtime/PluginAutoImports.d.ts.map +1 -1
- package/src/runtime/PluginAutoImports.js +94 -9
- package/src/runtime/RuntimeAdapter.d.ts +8 -9
- package/src/runtime/RuntimeAdapter.d.ts.map +1 -1
- package/src/runtime/RuntimeAdapter.js +120 -34
- package/src/runtime/RuntimeServices.d.ts +47 -0
- package/src/runtime/RuntimeServices.d.ts.map +1 -0
- package/src/runtime/RuntimeServices.js +164 -0
- package/src/runtime/StartupConfigFileRegistry.d.ts +4 -4
- package/src/runtime/StartupConfigFileRegistry.d.ts.map +1 -1
- package/src/runtime/StartupConfigFileRegistry.js +12 -0
- package/src/runtime/WorkerAdapterImports.d.ts +5 -0
- package/src/runtime/WorkerAdapterImports.d.ts.map +1 -0
- package/src/runtime/WorkerAdapterImports.js +17 -0
- package/src/runtime/WorkersModule.d.ts +6 -0
- package/src/runtime/WorkersModule.d.ts.map +1 -0
- package/src/runtime/WorkersModule.js +278 -0
- package/src/runtime/adapters/CloudflareAdapter.d.ts.map +1 -1
- package/src/runtime/adapters/CloudflareAdapter.js +19 -2
- package/src/runtime/adapters/DenoAdapter.js +1 -0
- package/src/runtime/adapters/FargateAdapter.js +1 -1
- package/src/runtime/adapters/LambdaAdapter.js +1 -1
- package/src/runtime/adapters/NodeServerAdapter.js +1 -1
- package/src/runtime/detectRuntime.d.ts +10 -0
- package/src/runtime/detectRuntime.d.ts.map +1 -0
- package/src/runtime/detectRuntime.js +57 -0
- package/src/runtime/useFileLoader.d.ts.map +1 -1
- package/src/runtime/useFileLoader.js +16 -0
- package/src/scheduler/Schedule.d.ts +36 -0
- package/src/scheduler/Schedule.d.ts.map +1 -0
- package/src/scheduler/Schedule.js +197 -0
- package/src/scheduler/ScheduleHttpGateway.d.ts +8 -0
- package/src/scheduler/ScheduleHttpGateway.d.ts.map +1 -0
- package/src/scheduler/ScheduleHttpGateway.js +196 -0
- package/src/scheduler/ScheduleRunner.d.ts +6 -0
- package/src/scheduler/ScheduleRunner.d.ts.map +1 -1
- package/src/scheduler/ScheduleRunner.js +166 -29
- package/src/scheduler/SchedulerRuntime.d.ts +15 -0
- package/src/scheduler/SchedulerRuntime.d.ts.map +1 -0
- package/src/scheduler/SchedulerRuntime.js +79 -0
- package/src/scheduler/cron/Cron.d.ts +19 -0
- package/src/scheduler/cron/Cron.d.ts.map +1 -0
- package/src/scheduler/cron/Cron.js +200 -0
- package/src/scheduler/leader/SchedulerLeader.d.ts +14 -0
- package/src/scheduler/leader/SchedulerLeader.d.ts.map +1 -0
- package/src/scheduler/leader/SchedulerLeader.js +187 -0
- package/src/scheduler/state/ScheduleStateStore.d.ts +27 -0
- package/src/scheduler/state/ScheduleStateStore.d.ts.map +1 -0
- package/src/scheduler/state/ScheduleStateStore.js +27 -0
- package/src/scheduler/types.d.ts +10 -0
- package/src/scheduler/types.d.ts.map +1 -1
- package/src/schedules/index.d.ts +1 -0
- package/src/schedules/index.d.ts.map +1 -1
- package/src/schedules/index.js +1 -0
- package/src/schedules/job-tracking-cleanup.d.ts +4 -0
- package/src/schedules/job-tracking-cleanup.d.ts.map +1 -0
- package/src/schedules/job-tracking-cleanup.js +116 -0
- package/src/schedules/log-cleanup.d.ts +1 -2
- package/src/schedules/log-cleanup.d.ts.map +1 -1
- package/src/schedules/log-cleanup.js +12 -15
- package/src/scripts/TemplateImportsCheck.js +2 -2
- package/src/scripts/TemplateSync.js +3 -4
- package/src/security/CsrfTokenManager.d.ts.map +1 -1
- package/src/security/CsrfTokenManager.js +12 -0
- package/src/security/Hash.d.ts +1 -1
- package/src/security/Hash.d.ts.map +1 -1
- package/src/security/Hash.js +31 -36
- package/src/security/Sanitizer.d.ts.map +1 -1
- package/src/security/Sanitizer.js +1 -9
- package/src/security/SignedRequest.d.ts.map +1 -1
- package/src/security/SignedRequest.js +2 -2
- package/src/seeders/SeederLoader.js +1 -1
- package/src/session/SessionManager.d.ts +3 -0
- package/src/session/SessionManager.d.ts.map +1 -1
- package/src/session/SessionManager.js +49 -10
- package/src/sockets/CloudflareSocket.d.ts +24 -0
- package/src/sockets/CloudflareSocket.d.ts.map +1 -0
- package/src/sockets/CloudflareSocket.js +259 -0
- package/src/start.d.ts.map +1 -1
- package/src/start.js +1 -8
- package/src/templates/docker/docker-compose.ecosystem.yml.tpl +301 -0
- package/src/templates/docker/docker-compose.schedules.yml.tpl +84 -0
- package/src/templates/project/basic/app/Schedules/index.ts.tpl +0 -0
- package/src/templates/project/basic/config/database.ts.tpl +1 -1
- package/src/templates/project/basic/src/zintrust.plugins.wg.ts.tpl +8 -0
- package/src/toolkit/Secrets/Manifest.d.ts.map +1 -1
- package/src/toolkit/Secrets/Manifest.js +5 -7
- package/src/tools/mail/drivers/Smtp.d.ts.map +1 -1
- package/src/tools/mail/drivers/Smtp.js +229 -18
- package/src/tools/mail/index.d.ts.map +1 -1
- package/src/tools/mail/index.js +5 -4
- package/src/tools/mail/template-loader.d.ts.map +1 -1
- package/src/tools/mail/template-loader.js +197 -29
- package/src/tools/mail/templates/auth-password-reset.d.ts +3 -0
- package/src/tools/mail/templates/auth-password-reset.d.ts.map +1 -0
- package/src/tools/mail/templates/auth-password-reset.js +231 -0
- package/src/tools/mail/templates/auth-welcome.d.ts +3 -0
- package/src/tools/mail/templates/auth-welcome.d.ts.map +1 -0
- package/src/tools/mail/templates/auth-welcome.js +236 -0
- package/src/tools/mail/templates/general.d.ts +3 -0
- package/src/tools/mail/templates/general.d.ts.map +1 -0
- package/src/tools/mail/templates/general.js +109 -0
- package/src/tools/mail/templates/index.js +2 -2
- package/src/tools/mail/templates/job-completed.d.ts +3 -0
- package/src/tools/mail/templates/job-completed.d.ts.map +1 -0
- package/src/tools/mail/templates/job-completed.js +188 -0
- package/src/tools/mail/templates/notifications-new-comment.d.ts +3 -0
- package/src/tools/mail/templates/notifications-new-comment.d.ts.map +1 -0
- package/src/tools/mail/templates/notifications-new-comment.js +228 -0
- package/src/tools/mail/templates/password-reset.d.ts +3 -0
- package/src/tools/mail/templates/password-reset.d.ts.map +1 -0
- package/src/tools/mail/templates/password-reset.js +221 -0
- package/src/tools/mail/templates/performance-report.d.ts +3 -0
- package/src/tools/mail/templates/performance-report.d.ts.map +1 -0
- package/src/tools/mail/templates/performance-report.js +258 -0
- package/src/tools/mail/templates/welcome.d.ts +3 -0
- package/src/tools/mail/templates/welcome.d.ts.map +1 -0
- package/src/tools/mail/templates/welcome.js +187 -0
- package/src/tools/mail/templates/worker-alert.d.ts +3 -0
- package/src/tools/mail/templates/worker-alert.d.ts.map +1 -0
- package/src/tools/mail/templates/worker-alert.js +229 -0
- package/src/tools/notification/Notification.js +1 -1
- package/src/tools/notification/testingHelpers.js +6 -5
- package/src/tools/queue/AdvancedQueue.js +2 -6
- package/src/tools/queue/IdempotencyManager.d.ts +6 -0
- package/src/tools/queue/IdempotencyManager.d.ts.map +1 -0
- package/src/tools/queue/IdempotencyManager.js +36 -0
- package/src/tools/queue/JobHeartbeatStore.d.ts +16 -0
- package/src/tools/queue/JobHeartbeatStore.d.ts.map +1 -0
- package/src/tools/queue/JobHeartbeatStore.js +67 -0
- package/src/tools/queue/JobReconciliationRunner.d.ts +16 -0
- package/src/tools/queue/JobReconciliationRunner.d.ts.map +1 -0
- package/src/tools/queue/JobReconciliationRunner.js +56 -0
- package/src/tools/queue/JobRecoveryDaemon.d.ts +27 -0
- package/src/tools/queue/JobRecoveryDaemon.d.ts.map +1 -0
- package/src/tools/queue/JobRecoveryDaemon.js +303 -0
- package/src/tools/queue/JobStateTracker.d.ts +140 -0
- package/src/tools/queue/JobStateTracker.d.ts.map +1 -0
- package/src/tools/queue/JobStateTracker.js +409 -0
- package/src/tools/queue/JobStateTrackerDbPersistence.d.ts +12 -0
- package/src/tools/queue/JobStateTrackerDbPersistence.d.ts.map +1 -0
- package/src/tools/queue/JobStateTrackerDbPersistence.js +239 -0
- package/src/tools/queue/Queue.d.ts.map +1 -1
- package/src/tools/queue/Queue.js +160 -16
- package/src/tools/queue/QueueDataRedactor.d.ts +6 -0
- package/src/tools/queue/QueueDataRedactor.d.ts.map +1 -0
- package/src/tools/queue/QueueDataRedactor.js +45 -0
- package/src/tools/queue/QueueExtensions.d.ts.map +1 -1
- package/src/tools/queue/QueueExtensions.js +2 -1
- package/src/tools/queue/QueueReliabilityMetrics.d.ts +38 -0
- package/src/tools/queue/QueueReliabilityMetrics.d.ts.map +1 -0
- package/src/tools/queue/QueueReliabilityMetrics.js +131 -0
- package/src/tools/queue/QueueReliabilityOrchestrator.d.ts +7 -0
- package/src/tools/queue/QueueReliabilityOrchestrator.d.ts.map +1 -0
- package/src/tools/queue/QueueReliabilityOrchestrator.js +59 -0
- package/src/tools/queue/QueueRuntimeRegistration.d.ts +1 -9
- package/src/tools/queue/QueueRuntimeRegistration.d.ts.map +1 -1
- package/src/tools/queue/QueueRuntimeRegistration.js +75 -4
- package/src/tools/queue/QueueTracing.d.ts +32 -0
- package/src/tools/queue/QueueTracing.d.ts.map +1 -0
- package/src/tools/queue/QueueTracing.js +151 -0
- package/src/tools/queue/StalledJobMonitor.d.ts +5 -0
- package/src/tools/queue/StalledJobMonitor.d.ts.map +1 -0
- package/src/tools/queue/StalledJobMonitor.js +21 -0
- package/src/tools/queue/TimeoutManager.d.ts +14 -0
- package/src/tools/queue/TimeoutManager.d.ts.map +1 -0
- package/src/tools/queue/TimeoutManager.js +77 -0
- package/src/tools/queue/drivers/Redis.d.ts +1 -0
- package/src/tools/queue/drivers/Redis.d.ts.map +1 -1
- package/src/tools/queue/drivers/Redis.js +1 -0
- package/src/tools/queue/index.d.ts +10 -0
- package/src/tools/queue/index.d.ts.map +1 -1
- package/src/tools/queue/index.js +10 -0
- package/src/tools/storage/drivers/R2.d.ts +13 -0
- package/src/tools/storage/drivers/R2.d.ts.map +1 -1
- package/src/tools/storage/drivers/R2.js +29 -0
- package/src/zintrust.plugins.d.ts +9 -0
- package/src/zintrust.plugins.d.ts.map +1 -0
- package/src/zintrust.plugins.js +7 -0
- package/src/zintrust.plugins.wg.d.ts +9 -0
- package/src/zintrust.plugins.wg.d.ts.map +1 -0
- package/src/zintrust.plugins.wg.js +7 -0
package/src/cli/CLI.js
CHANGED
|
@@ -5,28 +5,51 @@
|
|
|
5
5
|
import { AddCommand } from './commands/AddCommand.js';
|
|
6
6
|
import { BroadcastWorkCommand } from './commands/BroadcastWorkCommand.js';
|
|
7
7
|
import { ConfigCommand } from './commands/ConfigCommand.js';
|
|
8
|
+
import { ContainerProxiesCommand } from './commands/ContainerProxiesCommand.js';
|
|
9
|
+
import { ContainerWorkersCommand } from './commands/ContainerWorkersCommand.js';
|
|
8
10
|
import { AddMigrationCommand, CreateCommand, CreateMigrationCommand, } from './commands/CreateCommand.js';
|
|
11
|
+
import { D1LearnCommand } from './commands/D1LearnCommand.js';
|
|
9
12
|
import { D1MigrateCommand } from './commands/D1MigrateCommand.js';
|
|
10
13
|
import { DbSeedCommand } from './commands/DbSeedCommand.js';
|
|
11
14
|
import { DebugCommand } from './commands/DebugCommand.js';
|
|
15
|
+
import { DeployCommand } from './commands/DeployCommand.js';
|
|
16
|
+
import { DeployContainerProxiesCommand } from './commands/DeployContainerProxiesCommand.js';
|
|
17
|
+
import { DeployContainerWorkersCommand } from './commands/DeployContainerWorkersCommand.js';
|
|
18
|
+
import { DoctorArchitectureCommand } from './commands/DoctorArchitectureCommand.js';
|
|
12
19
|
import { FixCommand } from './commands/FixCommand.js';
|
|
20
|
+
import { InitContainerCommand } from './commands/InitContainerCommand.js';
|
|
21
|
+
import { InitEcosystemCommand } from './commands/InitEcosystemCommand.js';
|
|
22
|
+
import { InitProducerCommand } from './commands/InitProducerCommand.js';
|
|
23
|
+
import { InitProxyCommand } from './commands/InitProxyCommand.js';
|
|
13
24
|
import { JwtDevCommand } from './commands/JwtDevCommand.js';
|
|
14
25
|
import { KeyGenerateCommand } from './commands/KeyGenerateCommand.js';
|
|
15
26
|
import { MakeMailTemplateCommand } from './commands/MakeMailTemplateCommand.js';
|
|
16
27
|
import { MakeNotificationTemplateCommand } from './commands/MakeNotificationTemplateCommand.js';
|
|
17
28
|
import { MigrateCommand } from './commands/MigrateCommand.js';
|
|
18
29
|
import { MigrateWorkerCommand } from './commands/MigrateWorkerCommand.js';
|
|
30
|
+
import { MongoDBProxyCommand } from './commands/MongoDBProxyCommand.js';
|
|
31
|
+
import { MySqlProxyCommand } from './commands/MySqlProxyCommand.js';
|
|
19
32
|
import { NewCommand } from './commands/NewCommand.js';
|
|
20
33
|
import { NotificationWorkCommand } from './commands/NotificationWorkCommand.js';
|
|
21
34
|
import { PluginCommand } from './commands/PluginCommand.js';
|
|
35
|
+
import { PostgresProxyCommand } from './commands/PostgresProxyCommand.js';
|
|
22
36
|
import { PrepareCommand } from './commands/PrepareCommand.js';
|
|
37
|
+
import { ProxyCommand } from './commands/ProxyCommand.js';
|
|
23
38
|
import { PublishCommand } from './commands/PublishCommand.js';
|
|
39
|
+
import { PutCommand } from './commands/PutCommand.js';
|
|
24
40
|
import { QACommand } from './commands/QACommand.js';
|
|
25
41
|
import { QueueCommand } from './commands/QueueCommand.js';
|
|
42
|
+
import { QueueRecoveryCommand } from './commands/QueueRecoveryCommand.js';
|
|
43
|
+
import { RedisProxyCommand } from './commands/RedisProxyCommand.js';
|
|
26
44
|
import { ResourceControlCommand } from './commands/ResourceControlCommand.js';
|
|
27
45
|
import { RoutesCommand } from './commands/RoutesCommand.js';
|
|
46
|
+
import { ScheduleListCommand } from './commands/ScheduleListCommand.js';
|
|
47
|
+
import { ScheduleRunCommand } from './commands/ScheduleRunCommand.js';
|
|
48
|
+
import { ScheduleStartCommand } from './commands/ScheduleStartCommand.js';
|
|
28
49
|
import { SecretsCommand } from './commands/SecretsCommand.js';
|
|
29
50
|
import { SimulateCommand } from './commands/SimulateCommand.js';
|
|
51
|
+
import { SmtpProxyCommand } from './commands/SmtpProxyCommand.js';
|
|
52
|
+
import { SqlServerProxyCommand } from './commands/SqlServerProxyCommand.js';
|
|
30
53
|
import { StartCommand } from './commands/StartCommand.js';
|
|
31
54
|
import { TemplatesCommand } from './commands/TemplatesCommand.js';
|
|
32
55
|
import { UpgradeCommand } from './commands/UpgradeCommand.js';
|
|
@@ -40,60 +63,51 @@ import { readFileSync } from '../node-singletons/fs.js';
|
|
|
40
63
|
import { join } from '../node-singletons/path.js';
|
|
41
64
|
import { Command } from 'commander';
|
|
42
65
|
const __dirname = esmDirname(import.meta.url);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const packagePath = join(__dirname, '../../package.json');
|
|
49
|
-
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
|
|
50
|
-
return typeof packageJson.version === 'string' ? packageJson.version : '1.0.0';
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
ErrorFactory.createCliError('Failed to load version from package.json', error);
|
|
54
|
-
// Use default version if package.json not found
|
|
55
|
-
return '1.0.0';
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Setup program metadata
|
|
60
|
-
*/
|
|
61
|
-
const setupProgram = (program, version) => {
|
|
62
|
-
program
|
|
63
|
-
.name('zintrust')
|
|
64
|
-
.description('ZinTrust Framework CLI - Build production-grade TypeScript APIs')
|
|
65
|
-
.version(version, '-v, --version', 'Output version number')
|
|
66
|
-
.helpOption('-h, --help', 'Display help for command')
|
|
67
|
-
.usage('[command] [options]');
|
|
68
|
-
// Global error handling
|
|
69
|
-
program.exitOverride();
|
|
66
|
+
const isCommandProvider = (command) => {
|
|
67
|
+
return (typeof command === 'object' &&
|
|
68
|
+
command !== null &&
|
|
69
|
+
'getCommand' in command &&
|
|
70
|
+
typeof command.getCommand === 'function');
|
|
70
71
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*/
|
|
74
|
-
const registerCommands = (program) => {
|
|
75
|
-
const commands = [
|
|
72
|
+
const buildCommandRegistry = () => {
|
|
73
|
+
return [
|
|
76
74
|
NewCommand.create(),
|
|
77
75
|
UpgradeCommand.create(),
|
|
78
76
|
PrepareCommand,
|
|
77
|
+
InitContainerCommand.create(),
|
|
78
|
+
InitProxyCommand.create(),
|
|
79
|
+
InitProducerCommand.create(),
|
|
80
|
+
InitEcosystemCommand.create(),
|
|
81
|
+
DoctorArchitectureCommand.create(),
|
|
79
82
|
AddCommand.create(),
|
|
80
83
|
CreateCommand.create(),
|
|
81
84
|
CreateMigrationCommand.create(),
|
|
82
85
|
AddMigrationCommand.create(),
|
|
83
86
|
StartCommand.create(),
|
|
84
87
|
QueueCommand.create(),
|
|
88
|
+
QueueRecoveryCommand.create(),
|
|
89
|
+
ScheduleListCommand.create(),
|
|
90
|
+
ScheduleRunCommand.create(),
|
|
91
|
+
ScheduleStartCommand.create(),
|
|
85
92
|
BroadcastWorkCommand.create(),
|
|
86
93
|
NotificationWorkCommand.create(),
|
|
87
94
|
ResourceControlCommand,
|
|
88
95
|
MigrateWorkerCommand.create(),
|
|
89
96
|
MigrateCommand.create(),
|
|
90
97
|
DbSeedCommand.create(),
|
|
98
|
+
D1LearnCommand.create(),
|
|
91
99
|
D1MigrateCommand.create(),
|
|
92
100
|
DebugCommand.create(),
|
|
93
101
|
SecretsCommand.create(),
|
|
94
102
|
ConfigCommand.create(),
|
|
103
|
+
ContainerWorkersCommand.create(),
|
|
104
|
+
ContainerProxiesCommand.create(),
|
|
95
105
|
PluginCommand.create(),
|
|
96
106
|
PublishCommand.create(),
|
|
107
|
+
PutCommand.create(),
|
|
108
|
+
DeployCommand.create(),
|
|
109
|
+
DeployContainerWorkersCommand.create(),
|
|
110
|
+
DeployContainerProxiesCommand.create(),
|
|
97
111
|
QACommand(),
|
|
98
112
|
FixCommand.create(),
|
|
99
113
|
KeyGenerateCommand.create(),
|
|
@@ -103,16 +117,62 @@ const registerCommands = (program) => {
|
|
|
103
117
|
MakeNotificationTemplateCommand.create(),
|
|
104
118
|
RoutesCommand.create(),
|
|
105
119
|
JwtDevCommand,
|
|
106
|
-
|
|
120
|
+
ProxyCommand.create(),
|
|
121
|
+
MySqlProxyCommand.create(),
|
|
122
|
+
PostgresProxyCommand.create(),
|
|
123
|
+
MongoDBProxyCommand.create(),
|
|
124
|
+
SqlServerProxyCommand.create(),
|
|
125
|
+
RedisProxyCommand.create(),
|
|
126
|
+
SmtpProxyCommand.create(),
|
|
107
127
|
WorkerCommands.createWorkerListCommand(),
|
|
108
128
|
WorkerCommands.createWorkerStatusCommand(),
|
|
109
129
|
WorkerCommands.createWorkerStartCommand(),
|
|
130
|
+
WorkerCommands.createWorkerStartAllCommand(),
|
|
110
131
|
WorkerCommands.createWorkerStopCommand(),
|
|
111
132
|
WorkerCommands.createWorkerRestartCommand(),
|
|
112
133
|
WorkerCommands.createWorkerSummaryCommand(),
|
|
113
134
|
];
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Load version from package.json
|
|
138
|
+
*/
|
|
139
|
+
const loadVersion = () => {
|
|
140
|
+
try {
|
|
141
|
+
const packagePath = join(__dirname, '../../package.json');
|
|
142
|
+
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
|
|
143
|
+
return typeof packageJson.version === 'string' ? packageJson.version : '1.0.0';
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
ErrorFactory.createCliError('Failed to load version from package.json', error);
|
|
147
|
+
// Use default version if package.json not found
|
|
148
|
+
return '1.0.0';
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Setup program metadata
|
|
153
|
+
*/
|
|
154
|
+
const setupProgram = (program, version) => {
|
|
155
|
+
program
|
|
156
|
+
.name('zintrust')
|
|
157
|
+
.description('ZinTrust Framework CLI - Build production-grade TypeScript APIs')
|
|
158
|
+
.version(version, '-v, --version', 'Output version number')
|
|
159
|
+
.helpOption('-h, --help', 'Display help for command')
|
|
160
|
+
.usage('[command] [options]');
|
|
161
|
+
// Global error handling
|
|
162
|
+
program.exitOverride();
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Register all available commands
|
|
166
|
+
*/
|
|
167
|
+
const registerCommands = (program) => {
|
|
168
|
+
const commands = buildCommandRegistry();
|
|
114
169
|
for (const command of commands) {
|
|
115
|
-
|
|
170
|
+
if (isCommandProvider(command)) {
|
|
171
|
+
program.addCommand(command.getCommand());
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
program.addCommand(command);
|
|
175
|
+
}
|
|
116
176
|
}
|
|
117
177
|
// Help command
|
|
118
178
|
program
|
package/src/cli/ErrorHandler.js
CHANGED
|
@@ -46,7 +46,7 @@ const displayBanner = (version) => {
|
|
|
46
46
|
const framework = 'ZinTrust Framework';
|
|
47
47
|
const bannerWidth = 46;
|
|
48
48
|
const env = Env.NODE_ENV ?? 'development';
|
|
49
|
-
const db = Env.DB_CONNECTION
|
|
49
|
+
const db = Env.DB_CONNECTION || 'sqlite';
|
|
50
50
|
const border = chalk.cyanBright;
|
|
51
51
|
const label = chalk.bold.white;
|
|
52
52
|
const frameworkValue = chalk.bold.cyanBright;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/ConfigCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/ConfigCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAiVrE;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;cACO,YAAY;EAsEtB,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { ConfigValidator } from '../config/ConfigValidator.js';
|
|
|
8
8
|
import { ErrorHandler } from '../ErrorHandler.js';
|
|
9
9
|
import { PromptHelper } from '../PromptHelper.js';
|
|
10
10
|
import { Logger } from '../../config/logger.js';
|
|
11
|
+
import { isArray, isObject } from '../../helper/index.js';
|
|
11
12
|
import chalk from 'chalk';
|
|
12
13
|
const addOptions = (command) => {
|
|
13
14
|
command.argument('[action]', 'Action: get, set, list, reset, edit, export');
|
|
@@ -225,9 +226,8 @@ const handleEdit = async (cmd, manager) => {
|
|
|
225
226
|
const handleExport = (cmd, manager) => {
|
|
226
227
|
cmd.info(typeof manager.export === 'function' ? manager.export() : '{}');
|
|
227
228
|
};
|
|
228
|
-
const isUnknownArray = (value) => Array.isArray(value);
|
|
229
229
|
const getArg = (args, index) => {
|
|
230
|
-
if (!
|
|
230
|
+
if (!isArray(args))
|
|
231
231
|
return undefined;
|
|
232
232
|
const value = args[index];
|
|
233
233
|
return typeof value === 'string' ? value : undefined;
|
|
@@ -236,9 +236,7 @@ const executeConfig = async (cmd, options) => {
|
|
|
236
236
|
const typedCmd = cmd;
|
|
237
237
|
const command = cmd.getCommand();
|
|
238
238
|
const toRecord = (value) => {
|
|
239
|
-
|
|
240
|
-
return {};
|
|
241
|
-
return value;
|
|
239
|
+
return isObject(value) ? value : {};
|
|
242
240
|
};
|
|
243
241
|
const commandOpts = typeof command.opts === 'function' ? toRecord(command.opts()) : {};
|
|
244
242
|
const mergedOptions = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerProxiesCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/ContainerProxiesCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAwErE,eAAO,MAAM,uBAAuB;cACxB,YAAY;EAuCtB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { BaseCommand } from '../BaseCommand.js';
|
|
2
|
+
import { resolveComposePath, runComposeWithFallback, } from '../commands/DockerComposeCommandUtils.js';
|
|
3
|
+
import { Logger } from '../../config/logger.js';
|
|
4
|
+
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
5
|
+
const runBuild = async (composePath, options) => {
|
|
6
|
+
const args = ['compose', '-f', composePath, 'build'];
|
|
7
|
+
if (options.noCache === true) {
|
|
8
|
+
args.push('--no-cache');
|
|
9
|
+
}
|
|
10
|
+
if (options.pull === true) {
|
|
11
|
+
args.push('--pull');
|
|
12
|
+
}
|
|
13
|
+
Logger.info('Building proxy stack image...');
|
|
14
|
+
await runComposeWithFallback(args);
|
|
15
|
+
};
|
|
16
|
+
const runUp = async (composePath, options) => {
|
|
17
|
+
const args = ['compose', '-f', composePath, 'up'];
|
|
18
|
+
if (options.detach === true) {
|
|
19
|
+
args.push('-d');
|
|
20
|
+
}
|
|
21
|
+
if (options.removeOrphans === true) {
|
|
22
|
+
args.push('--remove-orphans');
|
|
23
|
+
}
|
|
24
|
+
Logger.info('Starting proxy stack...');
|
|
25
|
+
await runComposeWithFallback(args);
|
|
26
|
+
};
|
|
27
|
+
const runDown = async (composePath, options) => {
|
|
28
|
+
const args = ['compose', '-f', composePath, 'down'];
|
|
29
|
+
if (options.removeOrphans === true) {
|
|
30
|
+
args.push('--remove-orphans');
|
|
31
|
+
}
|
|
32
|
+
if (options.volumes === true) {
|
|
33
|
+
args.push('--volumes');
|
|
34
|
+
}
|
|
35
|
+
Logger.info('Stopping proxy stack...');
|
|
36
|
+
await runComposeWithFallback(args);
|
|
37
|
+
};
|
|
38
|
+
const normalizeAction = (raw) => {
|
|
39
|
+
const value = (raw ?? '').trim().toLowerCase();
|
|
40
|
+
if (value === 'build' || value === 'up' || value === 'down')
|
|
41
|
+
return value;
|
|
42
|
+
throw ErrorFactory.createCliError('Usage: zin cp <build|up|down> [options]');
|
|
43
|
+
};
|
|
44
|
+
export const ContainerProxiesCommand = Object.freeze({
|
|
45
|
+
create() {
|
|
46
|
+
return BaseCommand.create({
|
|
47
|
+
name: 'cp',
|
|
48
|
+
aliases: ['container-proxies'],
|
|
49
|
+
description: 'Build, start, or stop container-based proxy stack',
|
|
50
|
+
addOptions: (command) => {
|
|
51
|
+
command.argument('<action>', 'Action to run (build, up, down)');
|
|
52
|
+
command.option('-d, --detach', 'Run containers in background (up only)');
|
|
53
|
+
command.option('--no-cache', 'Disable Docker build cache (build only)');
|
|
54
|
+
command.option('--pull', 'Always attempt to pull a newer base image (build only)');
|
|
55
|
+
command.option('--build', 'Build before running up (up only)');
|
|
56
|
+
command.option('--remove-orphans', 'Remove containers for services not defined in compose');
|
|
57
|
+
command.option('--volumes', 'Remove named volumes when running down (down only)');
|
|
58
|
+
},
|
|
59
|
+
execute: async (options) => {
|
|
60
|
+
const action = normalizeAction(options.args?.[0]);
|
|
61
|
+
const composePath = resolveComposePath('docker-compose.proxy.yml', 'docker-compose.proxy.yml not found.');
|
|
62
|
+
if (action === 'build') {
|
|
63
|
+
await runBuild(composePath, options);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (action === 'down') {
|
|
67
|
+
await runDown(composePath, options);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (options.build === true) {
|
|
71
|
+
await runBuild(composePath, options);
|
|
72
|
+
}
|
|
73
|
+
await runUp(composePath, options);
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerWorkersCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/ContainerWorkersCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAmDrE,eAAO,MAAM,uBAAuB;cACxB,YAAY;EAgCtB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BaseCommand } from '../BaseCommand.js';
|
|
2
|
+
import { resolveComposePath, runComposeWithFallback, } from '../commands/DockerComposeCommandUtils.js';
|
|
3
|
+
import { Logger } from '../../config/logger.js';
|
|
4
|
+
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
5
|
+
const runBuild = async (composePath, options) => {
|
|
6
|
+
const args = ['compose', '-f', composePath, 'build'];
|
|
7
|
+
if (options.noCache === true) {
|
|
8
|
+
args.push('--no-cache');
|
|
9
|
+
}
|
|
10
|
+
if (options.pull === true) {
|
|
11
|
+
args.push('--pull');
|
|
12
|
+
}
|
|
13
|
+
Logger.info('Building container workers image...');
|
|
14
|
+
await runComposeWithFallback(args);
|
|
15
|
+
};
|
|
16
|
+
const runUp = async (composePath, options) => {
|
|
17
|
+
const args = ['compose', '-f', composePath, 'up'];
|
|
18
|
+
if (options.detach === true) {
|
|
19
|
+
args.push('-d');
|
|
20
|
+
}
|
|
21
|
+
Logger.info('Starting container workers...');
|
|
22
|
+
await runComposeWithFallback(args);
|
|
23
|
+
};
|
|
24
|
+
const normalizeAction = (raw) => {
|
|
25
|
+
const value = (raw ?? '').trim().toLowerCase();
|
|
26
|
+
if (value === 'build' || value === 'up')
|
|
27
|
+
return value;
|
|
28
|
+
throw ErrorFactory.createCliError('Usage: zin cw <build|up> [options]');
|
|
29
|
+
};
|
|
30
|
+
export const ContainerWorkersCommand = Object.freeze({
|
|
31
|
+
create() {
|
|
32
|
+
return BaseCommand.create({
|
|
33
|
+
name: 'cw',
|
|
34
|
+
aliases: ['container-workers'],
|
|
35
|
+
description: 'Build or start container-based workers',
|
|
36
|
+
addOptions: (command) => {
|
|
37
|
+
command.argument('<action>', 'Action to run (build or up)');
|
|
38
|
+
command.option('-d, --detach', 'Run containers in background (up only)');
|
|
39
|
+
command.option('--no-cache', 'Disable Docker build cache (build only)');
|
|
40
|
+
command.option('--pull', 'Always attempt to pull a newer base image (build only)');
|
|
41
|
+
command.option('--build', 'Build before running up (up only)');
|
|
42
|
+
},
|
|
43
|
+
execute: async (options) => {
|
|
44
|
+
const action = normalizeAction(options.args?.[0]);
|
|
45
|
+
const composePath = resolveComposePath('docker-compose.workers.yml', 'docker-compose.workers.yml not found. Run `zin init:cw` first.');
|
|
46
|
+
if (action === 'build') {
|
|
47
|
+
await runBuild(composePath, options);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (options.build === true) {
|
|
51
|
+
await runBuild(composePath, options);
|
|
52
|
+
}
|
|
53
|
+
await runUp(composePath, options);
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D1 Learn Command
|
|
3
|
+
* Runs a command in "learning mode" to capture D1 SQL statements for the registry.
|
|
4
|
+
*/
|
|
5
|
+
import { type IBaseCommand } from '../BaseCommand';
|
|
6
|
+
export declare const D1LearnCommand: Readonly<{
|
|
7
|
+
create(): IBaseCommand;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=D1LearnCommand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"D1LearnCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/D1LearnCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAoC,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAgGvF,eAAO,MAAM,cAAc;cACf,YAAY;EAiEtB,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D1 Learn Command
|
|
3
|
+
* Runs a command in "learning mode" to capture D1 SQL statements for the registry.
|
|
4
|
+
*/
|
|
5
|
+
import { BaseCommand } from '../BaseCommand.js';
|
|
6
|
+
import { Logger } from '../../config/logger.js';
|
|
7
|
+
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
|
+
import { isNonEmptyString, isObject } from '../../helper/index.js';
|
|
9
|
+
import * as fs from '../../node-singletons/fs.js';
|
|
10
|
+
import { StatementRegistryBuild } from '../../orm/SchemaStatemenWriter.js';
|
|
11
|
+
import { spawn } from 'node:child_process';
|
|
12
|
+
const LEARN_FILE = 'storage/d1-learned.jsonl';
|
|
13
|
+
const isRecord = (value) => isObject(value);
|
|
14
|
+
const coerceStringRegistry = (value) => {
|
|
15
|
+
if (!isRecord(value))
|
|
16
|
+
return {};
|
|
17
|
+
const out = {};
|
|
18
|
+
for (const [k, v] of Object.entries(value)) {
|
|
19
|
+
if (isNonEmptyString(v))
|
|
20
|
+
out[k] = v;
|
|
21
|
+
}
|
|
22
|
+
return out;
|
|
23
|
+
};
|
|
24
|
+
const readExistingRegistryFile = async (outputFile) => {
|
|
25
|
+
try {
|
|
26
|
+
await fs.stat(outputFile);
|
|
27
|
+
const existingContent = await fs.readFile(outputFile, 'utf-8');
|
|
28
|
+
const existingJson = JSON.parse(existingContent);
|
|
29
|
+
if (isRecord(existingJson) && 'queries' in existingJson) {
|
|
30
|
+
return coerceStringRegistry(existingJson['queries']);
|
|
31
|
+
}
|
|
32
|
+
return coerceStringRegistry(existingJson);
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const cleanLearnFile = async () => {
|
|
39
|
+
try {
|
|
40
|
+
await fs.rm(LEARN_FILE, { force: true });
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
// ignore
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const parseLearnedFile = async () => {
|
|
47
|
+
try {
|
|
48
|
+
const content = await fs.readFile(LEARN_FILE, 'utf-8');
|
|
49
|
+
return StatementRegistryBuild.fromJsonl(content);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
if (err.code === 'ENOENT') {
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
throw err;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const runLearner = async (cmd, args) => {
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
Logger.info(`Starting learner: ${cmd} ${args.join(' ')}`);
|
|
61
|
+
Logger.info(`Capturing queries to ${LEARN_FILE}...`);
|
|
62
|
+
const child = spawn(cmd, args, {
|
|
63
|
+
stdio: 'inherit',
|
|
64
|
+
env: {
|
|
65
|
+
...process.env,
|
|
66
|
+
ZT_D1_LEARN_FILE: LEARN_FILE,
|
|
67
|
+
D1_REMOTE_MODE: 'sql',
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
child.on('close', (code) => {
|
|
71
|
+
// Allow code 0 or 1 (tests fail sometimes but still run queries)
|
|
72
|
+
// Actually, we resolve regardless so we can harvest what ran
|
|
73
|
+
if (code === 0) {
|
|
74
|
+
resolve();
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
// We log error but resolve to process partial results
|
|
78
|
+
Logger.error(`Command exited with code ${code}`);
|
|
79
|
+
resolve();
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
child.on('error', (err) => {
|
|
83
|
+
reject(err);
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
export const D1LearnCommand = Object.freeze({
|
|
88
|
+
create() {
|
|
89
|
+
const cmd = BaseCommand.create({
|
|
90
|
+
name: 'd1:learn',
|
|
91
|
+
description: 'Run a command to learn D1 queries and generate a statement registry',
|
|
92
|
+
addOptions: (c) => {
|
|
93
|
+
c.argument('<command>', 'The command to run (e.g. "npm test")')
|
|
94
|
+
.option('-o, --output <file>', 'Output JSON file (default: d1-statements.json)')
|
|
95
|
+
.option('-a, --append', 'Append to existing output file instead of overwriting');
|
|
96
|
+
},
|
|
97
|
+
async execute(options) {
|
|
98
|
+
const learnOptions = options;
|
|
99
|
+
// In BaseCommand, positional arguments are stored in options.args array
|
|
100
|
+
// We defined .argument('<command>') so it's the first element.
|
|
101
|
+
const commandStr = options.args && options.args.length > 0 ? options.args[0] : '';
|
|
102
|
+
if (commandStr === '') {
|
|
103
|
+
Logger.error('Missing command argument');
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const outputFile = learnOptions.output ?? 'd1-statements.json';
|
|
107
|
+
const append = learnOptions.append === true;
|
|
108
|
+
// 1. Prepare
|
|
109
|
+
await cleanLearnFile();
|
|
110
|
+
const parts = commandStr.split(' ');
|
|
111
|
+
const cmdExe = parts[0];
|
|
112
|
+
const args = parts.slice(1);
|
|
113
|
+
// 2. Run command
|
|
114
|
+
try {
|
|
115
|
+
await runLearner(cmdExe, args);
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
throw ErrorFactory.createCliError(`Learner failed to start: ${err.message}`);
|
|
119
|
+
}
|
|
120
|
+
// 3. Process results
|
|
121
|
+
const learned = await parseLearnedFile();
|
|
122
|
+
const count = Object.keys(learned).length;
|
|
123
|
+
if (count === 0) {
|
|
124
|
+
Logger.warn('No D1 queries were captured.');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
Logger.info(`Captured ${count} unique queries.`);
|
|
128
|
+
// 4. Merge with existing if needed
|
|
129
|
+
let finalMap = learned;
|
|
130
|
+
if (append) {
|
|
131
|
+
const existingMap = await readExistingRegistryFile(outputFile);
|
|
132
|
+
finalMap = StatementRegistryBuild.merge(existingMap, learned);
|
|
133
|
+
}
|
|
134
|
+
// 5. Output
|
|
135
|
+
// One-line JSON is easiest to paste into `wrangler secret put ZT_D1_STATEMENTS_JSON`.
|
|
136
|
+
const outputContent = StatementRegistryBuild.toStatementsJson(finalMap);
|
|
137
|
+
await fs.writeFile(outputFile, outputContent);
|
|
138
|
+
Logger.info(`Registry written to ${outputFile}`);
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
return cmd;
|
|
142
|
+
},
|
|
143
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"D1MigrateCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/D1MigrateCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"D1MigrateCommand.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/D1MigrateCommand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA8GrE;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;cACO,YAAY;EAyBtB,CAAC"}
|