alepha 0.19.1 → 0.19.2
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/LICENSE +1 -1
- package/README.md +6 -9
- package/dist/api/audits/index.d.ts +378 -346
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/files/index.d.ts +216 -184
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/jobs/index.d.ts +528 -496
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +3 -3
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +207 -207
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/notifications/index.d.ts +152 -152
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/organizations/index.browser.js +48 -0
- package/dist/api/organizations/index.browser.js.map +1 -0
- package/dist/api/organizations/index.d.ts +516 -0
- package/dist/api/organizations/index.d.ts.map +1 -0
- package/dist/api/organizations/index.js +202 -0
- package/dist/api/organizations/index.js.map +1 -0
- package/dist/api/parameters/index.d.ts +391 -358
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +5 -1
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -5
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +978 -913
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +160 -112
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.d.ts +135 -135
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js +2 -2
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/batch/index.d.ts +6 -6
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/billing/index.d.ts +1048 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +713 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/bin/index.js +0 -2
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +10 -10
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +2 -2
- package/dist/bucket/index.js.map +1 -1
- package/dist/cache/core/index.d.ts +9 -9
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js +2 -2
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js +2 -2
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/redis/index.d.ts +6 -6
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js +2 -2
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/cli/config/index.d.ts +12 -2
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js +4 -0
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +183 -140
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +279 -89
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +45 -0
- package/dist/cli/devtools/index.d.ts.map +1 -0
- package/dist/cli/devtools/index.js +170 -0
- package/dist/cli/devtools/index.js.map +1 -0
- package/dist/cli/platform/index.d.ts +383 -492
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +42 -511
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/vendor/index.d.ts +196 -0
- package/dist/cli/vendor/index.d.ts.map +1 -0
- package/dist/cli/vendor/index.js +384 -0
- package/dist/cli/vendor/index.js.map +1 -0
- package/dist/command/index.d.ts +18 -18
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +2 -2
- package/dist/command/index.js.map +1 -1
- package/dist/core/index.browser.js +4 -4
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +10 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -4
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +4 -4
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +4 -4
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.d.ts +7 -7
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/datetime/index.d.ts +4 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/email/brevo/index.d.ts +4 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/core/index.d.ts +15 -11
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js +12 -35
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/smtp/index.d.ts +12 -12
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +7 -4
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +4 -8
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js +55 -889
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +13 -13
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js +2 -2
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +4 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/logger/index.d.ts +16 -15
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +5 -2
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +11 -11
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js +11 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +53 -16
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +95 -51
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +55 -14
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +18 -17
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/queue/core/index.d.ts +14 -14
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js +2 -2
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js +2 -2
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +4 -4
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js +2 -2
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.d.ts +9 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/core/index.d.ts +6 -6
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +5 -4
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +4 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/head/index.d.ts +4 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/i18n/index.d.ts +9 -9
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/intro/index.d.ts +2 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +1 -1
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +4 -5
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +215 -215
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +6 -7
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +2 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +2 -4
- package/dist/react/testing/index.js.map +1 -1
- package/dist/redis/index.d.ts +19 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/retry/index.d.ts +4 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/scheduler/index.d.ts +13 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js +2 -2
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js +2 -2
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +47 -47
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +9 -12
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.d.ts +170 -169
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +16 -2
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.d.ts +7 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/core/index.d.ts +76 -76
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +23 -17
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +13 -13
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js +2 -2
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +9 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/health/index.d.ts +20 -20
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/links/index.browser.js +2 -2
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +66 -66
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +4 -4
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +7 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/proxy/index.d.ts +5 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.d.ts +12 -12
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js +2 -2
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +5 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/swagger/index.d.ts +7 -7
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js +2 -2
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +11 -7
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js +9 -15
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.d.ts +4 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/topic/core/index.d.ts +6 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/redis/index.d.ts +7 -7
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js +2 -2
- package/dist/topic/redis/index.js.map +1 -1
- package/dist/websocket/index.d.ts +36 -36
- package/dist/websocket/index.d.ts.map +1 -1
- package/dist/websocket/index.js +2 -2
- package/dist/websocket/index.js.map +1 -1
- package/package.json +36 -14
- package/src/api/jobs/{services → __tests__}/JobService.spec.ts +1 -1
- package/src/api/jobs/providers/JobProvider.ts +3 -3
- package/src/api/keys/{services → __tests__}/ApiKeyService.spec.ts +1 -1
- package/src/api/organizations/__tests__/OrganizationService.spec.ts +193 -0
- package/src/api/organizations/controllers/AdminOrganizationController.ts +103 -0
- package/src/api/organizations/entities/organizations.ts +20 -0
- package/src/api/organizations/index.browser.ts +10 -0
- package/src/api/organizations/index.ts +31 -0
- package/src/api/organizations/schemas/createOrganizationSchema.ts +10 -0
- package/src/api/organizations/schemas/organizationQuerySchema.ts +10 -0
- package/src/api/organizations/schemas/organizationResourceSchema.ts +6 -0
- package/src/api/organizations/schemas/updateOrganizationSchema.ts +7 -0
- package/src/api/organizations/services/OrganizationService.ts +75 -0
- package/src/api/parameters/services/ParameterProvider.ts +6 -1
- package/src/api/users/{services → __tests__}/SessionService.spec.ts +67 -0
- package/src/api/users/{jobs → __tests__}/UserJobs.spec.ts +1 -1
- package/src/api/users/entities/users.ts +9 -3
- package/src/api/users/index.ts +23 -4
- package/src/api/users/primitives/$realm.ts +6 -4
- package/src/api/users/providers/RealmProvider.ts +1 -1
- package/src/api/users/services/RegistrationService.ts +1 -1
- package/src/api/users/services/SessionService.ts +92 -5
- package/src/api/users/services/UserService.ts +1 -1
- package/src/api/verifications/{jobs → __tests__}/VerificationJobs.spec.ts +4 -2
- package/src/api/verifications/parameters/VerificationParameters.ts +2 -2
- package/src/billing/__tests__/BillingService.spec.ts +136 -0
- package/src/billing/__tests__/PaymentMethodService.spec.ts +78 -0
- package/src/billing/controllers/AdminBillingController.ts +149 -0
- package/src/billing/controllers/BillingController.ts +108 -0
- package/src/billing/entities/paymentIntents.ts +34 -0
- package/src/billing/entities/paymentMethods.ts +24 -0
- package/src/billing/entities/refunds.ts +22 -0
- package/src/billing/errors/BillingError.ts +5 -0
- package/src/billing/index.ts +76 -0
- package/src/billing/providers/BillingProvider.ts +79 -0
- package/src/billing/providers/MemoryBillingProvider.ts +139 -0
- package/src/billing/schemas/intentSchemas.ts +60 -0
- package/src/billing/schemas/paymentMethodSchemas.ts +13 -0
- package/src/billing/schemas/refundSchemas.ts +6 -0
- package/src/billing/services/BillingService.ts +325 -0
- package/src/billing/services/PaymentMethodService.ts +82 -0
- package/src/bin/index.ts +0 -2
- package/src/bucket/providers/LocalFileStorageProvider.ts +2 -2
- package/src/cache/core/{primitives → __tests__}/$cache.middleware.spec.ts +1 -1
- package/src/cache/core/{providers → __tests__}/MemoryCacheProvider.spec.ts +1 -1
- package/src/cache/core/primitives/$cache.ts +2 -2
- package/src/cache/redis/providers/RedisCacheProvider.ts +2 -2
- package/src/cli/config/defineConfig.ts +20 -0
- package/src/cli/core/{services → __tests__}/ProjectScaffolder.spec.ts +1 -1
- package/src/cli/core/{commands/gen → __tests__}/changelog.spec.ts +1 -1
- package/src/cli/core/{commands → __tests__}/init.spec.ts +2 -8
- package/src/cli/core/atoms/devOptions.ts +0 -5
- package/src/cli/core/commands/build.ts +2 -2
- package/src/cli/core/commands/dev.ts +165 -30
- package/src/cli/core/commands/gen/changelog.ts +2 -2
- package/src/cli/core/commands/init.ts +2 -7
- package/src/cli/core/commands/verify.ts +0 -1
- package/src/cli/core/providers/AppEntryProvider.ts +2 -2
- package/src/cli/core/providers/ViteDevServerProvider.ts +54 -66
- package/src/cli/core/services/PackageManagerUtils.ts +8 -3
- package/src/cli/core/services/ProjectScaffolder.ts +18 -18
- package/src/cli/core/tasks/BuildClientTask.ts +8 -0
- package/src/cli/core/tasks/BuildServerTask.ts +17 -4
- package/src/cli/core/templates/alephaConfigTs.ts +0 -6
- package/src/cli/core/templates/webAdminDashboardTsx.ts +17 -0
- package/src/cli/core/templates/webAppRouterTs.ts +85 -2
- package/src/cli/devtools/atoms/devtoolsOptions.ts +26 -0
- package/src/cli/devtools/index.ts +194 -0
- package/src/cli/platform/{adapters → __tests__}/CloudflareAdapter.spec.ts +2 -2
- package/src/cli/platform/{providers → __tests__}/GitHubSecretStore.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/NamingService.spec.ts +1 -1
- package/src/cli/platform/{providers → __tests__}/PlatformCacheProvider.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformInspector.spec.ts +1 -1
- package/src/cli/platform/{services → __tests__}/PlatformOrchestrator.spec.ts +3 -3
- package/src/cli/platform/{services → __tests__}/SecretFilterService.spec.ts +1 -1
- package/src/cli/platform/{commands → __tests__}/SecretsCommand.spec.ts +1 -1
- package/src/cli/platform/{adapters → __tests__}/VercelAdapter.spec.ts +2 -2
- package/src/cli/platform/atoms/platformOptions.ts +2 -10
- package/src/cli/platform/commands/SecretsCommand.ts +2 -2
- package/src/cli/platform/commands/platform.ts +2 -11
- package/src/cli/platform/index.ts +34 -11
- package/src/cli/platform/services/PlatformInspector.ts +2 -2
- package/src/cli/platform/services/PlatformOrchestrator.ts +0 -9
- package/src/cli/vendor/__tests__/VendorService.spec.ts +407 -0
- package/src/cli/vendor/atoms/vendorOptions.ts +41 -0
- package/src/cli/vendor/commands/VendorCommand.ts +204 -0
- package/src/cli/vendor/index.ts +43 -0
- package/src/cli/vendor/services/VendorService.ts +338 -0
- package/src/command/{providers → __tests__}/CliProvider.spec.ts +1 -1
- package/src/command/{helpers → __tests__}/EnvUtils.spec.ts +1 -1
- package/src/command/providers/CliProvider.ts +2 -2
- package/src/core/{primitives → __tests__}/$atom.spec.ts +2 -2
- package/src/core/{primitives → __tests__}/$memoize.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$mode.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$pipeline.spec.ts +1 -1
- package/src/core/{primitives → __tests__}/$scope.spec.ts +2 -2
- package/src/core/{providers → __tests__}/KeylessJsonSchemaCodec.spec.ts +1 -1
- package/src/core/{providers → __tests__}/SchemaValidator.spec.ts +1 -1
- package/src/core/{helpers → __tests__}/jsonSchemaToTypeBox.spec.ts +1 -1
- package/src/core/index.shared.ts +1 -1
- package/src/core/primitives/{$use.ts → $state.ts} +4 -4
- package/src/crypto/{providers → __tests__}/BrowserCryptoProvider.browser.spec.ts +1 -1
- package/src/crypto/{providers → __tests__}/CryptoProvider.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$debounce.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$throttle.spec.ts +1 -1
- package/src/datetime/{primitives → __tests__}/$timeout.spec.ts +1 -1
- package/src/email/brevo/{providers → __tests__}/BrevoEmailProvider.spec.ts +1 -1
- package/src/email/core/{providers → __tests__}/LocalEmailProvider.spec.ts +39 -150
- package/src/email/core/providers/LocalEmailProvider.ts +13 -51
- package/src/email/smtp/providers/NodemailerEmailProvider.ts +2 -2
- package/src/lock/core/{primitives → __tests__}/$lock.middleware.spec.ts +1 -1
- package/src/lock/core/primitives/$lock.ts +2 -2
- package/src/logger/index.ts +10 -4
- package/src/mcp/transports/SseMcpTransport.ts +2 -2
- package/src/orm/__tests__/ModelBuilder-tests.ts +53 -0
- package/src/orm/__tests__/ModelBuilder.spec.ts +80 -0
- package/src/orm/__tests__/organization-tests.ts +200 -0
- package/src/orm/__tests__/organization.spec.ts +103 -0
- package/src/orm/core/{providers/drivers → __tests__}/BunSqliteProvider.bun.spec.ts +5 -2
- package/src/orm/core/constants/PG_SYMBOLS.ts +2 -0
- package/src/orm/core/index.shared.ts +1 -0
- package/src/orm/core/primitives/$entity.ts +31 -0
- package/src/orm/core/providers/DatabaseTypeProvider.ts +11 -0
- package/src/orm/core/providers/DrizzleKitProvider.ts +1 -1
- package/src/orm/core/providers/drivers/BunSqliteProvider.ts +2 -2
- package/src/orm/core/providers/drivers/NodeSqliteProvider.ts +3 -3
- package/src/orm/core/services/ModelBuilder.ts +11 -0
- package/src/orm/core/services/QueryManager.ts +16 -2
- package/src/orm/core/services/Repository.ts +70 -10
- package/src/orm/postgres/{providers → __tests__}/BunPostgresProvider.bun.spec.ts +1 -1
- package/src/queue/core/providers/WorkerProvider.ts +2 -2
- package/src/queue/redis/providers/RedisQueueProvider.ts +2 -2
- package/src/react/core/{hooks → __tests__}/useAction.browser.spec.tsx +1 -1
- package/src/react/core/hooks/useAction.ts +7 -6
- package/src/react/head/{providers → __tests__}/BrowserHeadProvider.browser.spec.ts +1 -1
- package/src/react/head/{helpers → __tests__}/SeoExpander.spec.ts +1 -1
- package/src/react/i18n/{providers → __tests__}/I18nProvider.spec.ts +1 -1
- package/src/react/i18n/{hooks → __tests__}/useI18n.browser.spec.tsx +1 -1
- package/src/react/intro/components/GettingStartedDevtoolsSlide.tsx +1 -1
- package/src/react/router/{providers → __tests__}/ReactBrowserProvider.browser.spec.ts +1 -1
- package/src/react/router/providers/ReactBrowserProvider.ts +2 -2
- package/src/react/router/providers/ReactPageProvider.ts +2 -2
- package/src/react/router/providers/ReactServerProvider.ts +3 -3
- package/src/redis/{providers → __tests__}/BunRedisProvider.bun.spec.ts +4 -4
- package/src/retry/{primitives → __tests__}/$retry.middleware.spec.ts +1 -1
- package/src/router/{TemplatedPathParser.spec.ts → __tests__/TemplatedPathParser.spec.ts} +1 -1
- package/src/scheduler/primitives/$scheduler.ts +2 -2
- package/src/security/{primitives → __tests__}/$secure-browser.spec.ts +1 -1
- package/src/security/{primitives → __tests__}/$secure.spec.ts +1 -1
- package/src/security/primitives/$issuer.ts +1 -1
- package/src/security/providers/JwtProvider.ts +6 -10
- package/src/security/providers/SecurityProvider.ts +6 -11
- package/src/security/schemas/userAccountInfoSchema.ts +3 -3
- package/src/server/auth/providers/ServerAuthProvider.ts +24 -2
- package/src/server/cookies/{services → __tests__}/CookieParser.spec.ts +1 -1
- package/src/server/core/{primitives → __tests__}/$circuit.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/NodeHttpServerProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerBodyParserProvider.spec.ts +31 -1
- package/src/server/core/{providers → __tests__}/ServerCompressProvider.spec.ts +1 -1
- package/src/server/core/{providers → __tests__}/ServerHelmetProvider.spec.ts +4 -1
- package/src/server/core/{providers → __tests__}/ServerMultipartProvider.spec.ts +1 -1
- package/src/server/core/{services → __tests__}/ServerRequestParser.spec.ts +1 -1
- package/src/server/core/primitives/$action.ts +2 -2
- package/src/server/core/primitives/$sse.ts +2 -2
- package/src/server/core/providers/ServerBodyParserProvider.ts +21 -12
- package/src/server/core/providers/ServerCompressProvider.ts +2 -2
- package/src/server/core/providers/ServerHelmetProvider.ts +2 -2
- package/src/server/core/providers/ServerMultipartProvider.ts +2 -2
- package/src/server/core/providers/ServerRouterProvider.ts +1 -5
- package/src/server/cors/{primitives → __tests__}/$cors.spec.ts +1 -1
- package/src/server/cors/providers/ServerCorsProvider.ts +2 -2
- package/src/server/links/{services → __tests__}/BatchCollector.spec.ts +1 -1
- package/src/server/links/providers/LinkProvider.ts +2 -2
- package/src/server/links/providers/RemotePrimitiveProvider.ts +2 -2
- package/src/server/links/providers/ServerLinksProvider.ts +2 -2
- package/src/server/rate-limit/{primitives → __tests__}/$rateLimit.spec.ts +1 -1
- package/src/server/rate-limit/providers/ServerRateLimitProvider.ts +2 -2
- package/src/server/swagger/providers/ServerSwaggerProvider.ts +2 -2
- package/src/sms/{providers → __tests__}/LocalSmsProvider.spec.ts +35 -29
- package/src/sms/providers/LocalSmsProvider.ts +13 -24
- package/src/system/{providers → __tests__}/MemoryFileSystemProvider.spec.ts +1 -1
- package/src/system/{providers → __tests__}/MemoryShellProvider.spec.ts +1 -1
- package/src/topic/redis/providers/RedisTopicProvider.ts +2 -2
- package/src/websocket/{services → __tests__}/RoomManager.spec.ts +1 -1
- package/src/websocket/providers/NodeWebSocketServerProvider.ts +2 -2
- package/tsconfig.base.json +1 -0
- package/src/cli/platform/adapters/DockerAdapter.spec.ts +0 -378
- package/src/cli/platform/adapters/DockerAdapter.ts +0 -417
- package/src/cli/platform/services/DockerComposeGenerator.spec.ts +0 -490
- package/src/cli/platform/services/DockerComposeGenerator.ts +0 -353
- package/src/cli/platform/services/DockerSshService.spec.ts +0 -47
- package/src/cli/platform/services/DockerSshService.ts +0 -61
- /package/src/api/audits/{primitives → __tests__}/$audit.spec.ts +0 -0
- /package/src/api/audits/{services → __tests__}/AuditService.spec.ts +0 -0
- /package/src/api/files/{controllers → __tests__}/AdminFileStatsController.spec.ts +0 -0
- /package/src/api/files/{controllers → __tests__}/FileController.spec.ts +0 -0
- /package/src/api/files/{jobs → __tests__}/FileJobs.spec.ts +0 -0
- /package/src/api/files/{services → __tests__}/FileService.spec.ts +0 -0
- /package/src/api/jobs/{primitives → __tests__}/$job-middleware.spec.ts +0 -0
- /package/src/api/parameters/{primitives → __tests__}/$parameter.spec.ts +0 -0
- /package/src/api/users/{primitives → __tests__}/$realm.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminIdentityController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminSessionController.spec.ts +0 -0
- /package/src/api/users/{controllers → __tests__}/AdminUserController.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/CredentialService.spec.ts +0 -0
- /package/src/api/users/{providers → __tests__}/RealmProvider.spec.ts +0 -0
- /package/src/api/users/{services → __tests__}/RegistrationService.spec.ts +0 -0
- /package/src/batch/{primitives → __tests__}/$batch.spec.ts +0 -0
- /package/src/batch/{providers → __tests__}/BatchProvider.spec.ts +0 -0
- /package/src/bucket/{primitives → __tests__}/$bucket.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/FileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/LocalFileStorageProvider.spec.ts +0 -0
- /package/src/bucket/{providers → __tests__}/MemoryFileStorageProvider.spec.ts +0 -0
- /package/src/cache/core/{primitives → __tests__}/$cache.spec.ts +0 -0
- /package/src/cache/redis/{providers → __tests__}/RedisCacheProvider.spec.ts +0 -0
- /package/src/command/{primitives → __tests__}/$command.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Asker.spec.ts +0 -0
- /package/src/command/{helpers → __tests__}/Runner.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$context.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$env.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$hook.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$inject.spec.ts +0 -0
- /package/src/core/{primitives → __tests__}/$module.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/CodecManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/EventManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/StateManager.spec.ts +0 -0
- /package/src/core/{providers → __tests__}/TypeProvider.spec.ts +0 -0
- /package/src/datetime/{primitives → __tests__}/$interval.spec.ts +0 -0
- /package/src/datetime/{providers → __tests__}/DateTimeProvider.spec.ts +0 -0
- /package/src/email/core/{primitives → __tests__}/$email.spec.ts +0 -0
- /package/src/fake/{providers → __tests__}/FakeProvider.spec.ts +0 -0
- /package/src/lock/core/{providers → __tests__}/MemoryLockProvider.spec.ts +0 -0
- /package/src/lock/redis/{providers → __tests__}/RedisLockProvider.spec.ts +0 -0
- /package/src/logger/{primitives → __tests__}/$logger.spec.ts +0 -0
- /package/src/logger/{services → __tests__}/Logger.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$prompt.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$resource.spec.ts +0 -0
- /package/src/mcp/{primitives → __tests__}/$tool.spec.ts +0 -0
- /package/src/mcp/{providers → __tests__}/McpServerProvider.spec.ts +0 -0
- /package/src/mcp/{helpers → __tests__}/jsonrpc.spec.ts +0 -0
- /package/src/orm/core/{helpers → __tests__}/parseQueryString.spec.ts +0 -0
- /package/src/queue/core/{primitives → __tests__}/$consumer.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/MemoryQueueProvider.spec.ts +0 -0
- /package/src/queue/core/{providers → __tests__}/WorkerProvider.spec.ts +0 -0
- /package/src/queue/redis/{providers → __tests__}/RedisQueueProvider.spec.ts +0 -0
- /package/src/react/form/{hooks → __tests__}/useForm.browser.spec.tsx +0 -0
- /package/src/react/head/{hooks → __tests__}/useHead.spec.tsx +0 -0
- /package/src/react/i18n/{components → __tests__}/Localize.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.browser.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.middleware.spec.tsx +0 -0
- /package/src/react/router/{primitives → __tests__}/$page.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactPreloadProvider.spec.ts +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerProvider.spec.tsx +0 -0
- /package/src/react/router/{providers → __tests__}/ReactServerTemplateProvider.spec.ts +0 -0
- /package/src/retry/{primitives → __tests__}/$retry.spec.ts +0 -0
- /package/src/retry/{providers → __tests__}/RetryProvider.spec.ts +0 -0
- /package/src/router/{providers → __tests__}/RouterProvider.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$issuer.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$permission.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$role.spec.ts +0 -0
- /package/src/security/{primitives → __tests__}/$serviceAccount.spec.ts +0 -0
- /package/src/security/{providers → __tests__}/SecurityProvider.spec.ts +0 -0
- /package/src/server/cookies/{providers → __tests__}/ServerCookiesProvider.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$action.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$middleware.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$route.spec.ts +0 -0
- /package/src/server/core/{primitives → __tests__}/$sse.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/BunHttpServerProvider.bun.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/HttpClient.spec.ts +0 -0
- /package/src/server/core/{providers → __tests__}/ServerLoggerProvider.spec.ts +0 -0
- /package/src/server/core/{services → __tests__}/UserAgentParser.spec.ts +0 -0
- /package/src/server/cors/{providers → __tests__}/ServerCorsProvider.spec.ts +0 -0
- /package/src/server/etag/{providers → __tests__}/ServerEtagProvider.spec.ts +0 -0
- /package/src/server/health/{providers → __tests__}/ServerHealthProvider.spec.ts +0 -0
- /package/src/server/links/{primitives → __tests__}/$remote.spec.ts +0 -0
- /package/src/server/links/{services → __tests__}/BatchEndpoint.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/LinkProvider.spec.ts +0 -0
- /package/src/server/links/{providers → __tests__}/ServerLinksProvider.spec.ts +0 -0
- /package/src/server/metrics/{providers → __tests__}/ServerMetricsProvider.spec.ts +0 -0
- /package/src/server/proxy/{primitives → __tests__}/$proxy.spec.ts +0 -0
- /package/src/server/rate-limit/{providers → __tests__}/ServerRateLimitProvider.spec.ts +0 -0
- /package/src/server/static/{primitives → __tests__}/$serve.spec.ts +0 -0
- /package/src/server/swagger/{primitives → __tests__}/$swagger.spec.ts +0 -0
- /package/src/sms/{primitives → __tests__}/$sms.spec.ts +0 -0
- /package/src/sms/{providers → __tests__}/MemorySmsProvider.spec.ts +0 -0
- /package/src/system/{services → __tests__}/FileDetector.spec.ts +0 -0
- /package/src/system/{providers → __tests__}/NodeFileSystemProvider.spec.ts +0 -0
- /package/src/topic/core/{primitives → __tests__}/$subscriber.spec.ts +0 -0
- /package/src/topic/core/{providers → __tests__}/MemoryTopicProvider.spec.ts +0 -0
- /package/src/topic/redis/{providers → __tests__}/RedisTopicProvider.spec.ts +0 -0
- /package/src/websocket/{primitives → __tests__}/$channel.spec.ts +0 -0
package/dist/cli/core/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import * as alepha from "alepha";
|
|
1
|
+
import * as _$alepha from "alepha";
|
|
2
2
|
import { Alepha, Static } from "alepha";
|
|
3
|
-
import * as alepha_command0 from "alepha/command";
|
|
3
|
+
import * as _$alepha_command0 from "alepha/command";
|
|
4
4
|
import { CliProvider, EnvUtils, Runner, RunnerMethod } from "alepha/command";
|
|
5
|
-
import * as alepha_logger0 from "alepha/logger";
|
|
5
|
+
import * as _$alepha_logger0 from "alepha/logger";
|
|
6
6
|
import { ConsoleColorProvider } from "alepha/logger";
|
|
7
7
|
import { FileSystemProvider, ShellProvider } from "alepha/system";
|
|
8
8
|
import { BrotliOptions, ZlibOptions, brotliCompress, gzip } from "node:zlib";
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
9
|
+
import { spawn } from "node:child_process";
|
|
10
|
+
import * as _$typebox from "typebox";
|
|
11
|
+
import * as _$vite from "vite";
|
|
11
12
|
import { Logger, Plugin, ViteDevServer } from "vite";
|
|
12
13
|
import { DatabaseProvider } from "alepha/orm";
|
|
13
14
|
|
|
14
15
|
//#region ../../src/cli/core/atoms/appEntryOptions.d.ts
|
|
15
|
-
declare const appEntryOptions: alepha.Atom<alepha.TObject<{
|
|
16
|
-
server: alepha.TOptional<alepha.TString>;
|
|
17
|
-
browser: alepha.TOptional<alepha.TString>;
|
|
18
|
-
style: alepha.TOptional<alepha.TString>;
|
|
16
|
+
declare const appEntryOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
17
|
+
server: _$alepha.TOptional<_$alepha.TString>;
|
|
18
|
+
browser: _$alepha.TOptional<_$alepha.TString>;
|
|
19
|
+
style: _$alepha.TOptional<_$alepha.TString>;
|
|
19
20
|
}>, "alepha.cli.appEntry.options">;
|
|
20
21
|
type AppEntryOptions = Static<typeof appEntryOptions.schema>;
|
|
21
22
|
//#endregion
|
|
@@ -42,14 +43,14 @@ type BuildRuntime = "node" | "bun" | "workerd";
|
|
|
42
43
|
* Defines the available build configuration options with their defaults.
|
|
43
44
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
44
45
|
*/
|
|
45
|
-
declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
46
|
+
declare const buildOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
46
47
|
/**
|
|
47
48
|
* Generate build stats report.
|
|
48
49
|
*
|
|
49
50
|
* - `true` - Generate a static HTML report
|
|
50
51
|
* - `"json"` - Generate a JSON report
|
|
51
52
|
*/
|
|
52
|
-
stats: alepha.TOptional<alepha.TUnion<[alepha.TBoolean, alepha.TUnsafe<"json">]>>;
|
|
53
|
+
stats: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TBoolean, _$alepha.TUnsafe<"json">]>>;
|
|
53
54
|
/**
|
|
54
55
|
* Deployment target for the build output.
|
|
55
56
|
*
|
|
@@ -57,7 +58,7 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
57
58
|
* - `vercel` - Generate Vercel deployment configuration (forces node runtime)
|
|
58
59
|
* - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
|
|
59
60
|
*/
|
|
60
|
-
target: alepha.TOptional<alepha.TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
61
|
+
target: _$alepha.TOptional<_$alepha.TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
61
62
|
/**
|
|
62
63
|
* JavaScript runtime for the build output.
|
|
63
64
|
*
|
|
@@ -69,23 +70,23 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
69
70
|
* - `cloudflare` always uses `workerd`
|
|
70
71
|
* - `vercel` always uses `node`
|
|
71
72
|
*/
|
|
72
|
-
runtime: alepha.TOptional<alepha.TUnsafe<"node" | "bun" | "workerd">>;
|
|
73
|
+
runtime: _$alepha.TOptional<_$alepha.TUnsafe<"node" | "bun" | "workerd">>;
|
|
73
74
|
/**
|
|
74
75
|
* Output directory configuration.
|
|
75
76
|
*/
|
|
76
|
-
output: alepha.TOptional<alepha.TObject<{
|
|
77
|
+
output: _$alepha.TOptional<_$alepha.TObject<{
|
|
77
78
|
/**
|
|
78
79
|
* Root dist directory.
|
|
79
80
|
*
|
|
80
81
|
* @default "dist"
|
|
81
82
|
*/
|
|
82
|
-
dist: alepha.TOptional<alepha.TString>;
|
|
83
|
+
dist: _$alepha.TOptional<_$alepha.TString>;
|
|
83
84
|
/**
|
|
84
85
|
* Public/client subdirectory.
|
|
85
86
|
*
|
|
86
87
|
* @default "public"
|
|
87
88
|
*/
|
|
88
|
-
public: alepha.TOptional<alepha.TString>;
|
|
89
|
+
public: _$alepha.TOptional<_$alepha.TString>;
|
|
89
90
|
}>>;
|
|
90
91
|
/**
|
|
91
92
|
* Vercel-specific deployment configuration.
|
|
@@ -93,14 +94,14 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
93
94
|
* Note: Set `target: "vercel"` to enable Vercel deployment.
|
|
94
95
|
* This object is only for additional configuration.
|
|
95
96
|
*/
|
|
96
|
-
vercel: alepha.TOptional<alepha.TObject<{
|
|
97
|
-
projectName: alepha.TOptional<alepha.TString>;
|
|
98
|
-
orgId: alepha.TOptional<alepha.TString>;
|
|
99
|
-
projectId: alepha.TOptional<alepha.TString>;
|
|
100
|
-
config: alepha.TOptional<alepha.TObject<{
|
|
101
|
-
crons: alepha.TOptional<alepha.TArray<alepha.TObject<{
|
|
102
|
-
path: alepha.TString;
|
|
103
|
-
schedule: alepha.TString;
|
|
97
|
+
vercel: _$alepha.TOptional<_$alepha.TObject<{
|
|
98
|
+
projectName: _$alepha.TOptional<_$alepha.TString>;
|
|
99
|
+
orgId: _$alepha.TOptional<_$alepha.TString>;
|
|
100
|
+
projectId: _$alepha.TOptional<_$alepha.TString>;
|
|
101
|
+
config: _$alepha.TOptional<_$alepha.TObject<{
|
|
102
|
+
crons: _$alepha.TOptional<_$alepha.TArray<_$alepha.TObject<{
|
|
103
|
+
path: _$alepha.TString;
|
|
104
|
+
schedule: _$alepha.TString;
|
|
104
105
|
}>>>;
|
|
105
106
|
}>>;
|
|
106
107
|
}>>;
|
|
@@ -110,8 +111,8 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
110
111
|
* Note: Set `target: "cloudflare"` to enable Cloudflare deployment.
|
|
111
112
|
* This object is only for additional configuration.
|
|
112
113
|
*/
|
|
113
|
-
cloudflare: alepha.TOptional<alepha.TObject<{
|
|
114
|
-
config: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
114
|
+
cloudflare: _$alepha.TOptional<_$alepha.TObject<{
|
|
115
|
+
config: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
115
116
|
}>>;
|
|
116
117
|
/**
|
|
117
118
|
* Docker-specific deployment configuration.
|
|
@@ -119,25 +120,25 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
119
120
|
* Note: Set `target: "docker"` to enable Docker deployment.
|
|
120
121
|
* This object is only for additional configuration.
|
|
121
122
|
*/
|
|
122
|
-
docker: alepha.TOptional<alepha.TObject<{
|
|
123
|
+
docker: _$alepha.TOptional<_$alepha.TObject<{
|
|
123
124
|
/**
|
|
124
125
|
* Base image for the Dockerfile (FROM instruction).
|
|
125
126
|
*
|
|
126
127
|
* @default "node:24-alpine" for node runtime
|
|
127
128
|
* @default "oven/bun:alpine" for bun runtime
|
|
128
129
|
*/
|
|
129
|
-
from: alepha.TOptional<alepha.TString>;
|
|
130
|
+
from: _$alepha.TOptional<_$alepha.TString>;
|
|
130
131
|
/**
|
|
131
132
|
* Command to run in the Docker container.
|
|
132
133
|
*
|
|
133
134
|
* @default "node" for node runtime
|
|
134
135
|
* @default "bun" for bun runtime
|
|
135
136
|
*/
|
|
136
|
-
command: alepha.TOptional<alepha.TString>;
|
|
137
|
+
command: _$alepha.TOptional<_$alepha.TString>;
|
|
137
138
|
/**
|
|
138
139
|
* Docker build options (used when --image flag is passed).
|
|
139
140
|
*/
|
|
140
|
-
image: alepha.TOptional<alepha.TObject<{
|
|
141
|
+
image: _$alepha.TOptional<_$alepha.TObject<{
|
|
141
142
|
/**
|
|
142
143
|
* Default image tag (name without version).
|
|
143
144
|
*
|
|
@@ -149,13 +150,13 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
149
150
|
* @example "myproject/myapp"
|
|
150
151
|
* @example "ghcr.io/myorg/myapp"
|
|
151
152
|
*/
|
|
152
|
-
tag: alepha.TString;
|
|
153
|
+
tag: _$alepha.TString;
|
|
153
154
|
/**
|
|
154
155
|
* Additional arguments to pass to `docker build`.
|
|
155
156
|
*
|
|
156
157
|
* @example '--platform linux/amd64 --no-cache'
|
|
157
158
|
*/
|
|
158
|
-
args: alepha.TOptional<alepha.TString>;
|
|
159
|
+
args: _$alepha.TOptional<_$alepha.TString>;
|
|
159
160
|
/**
|
|
160
161
|
* Auto-add OCI standard labels (revision, created, version).
|
|
161
162
|
*
|
|
@@ -164,7 +165,7 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
164
165
|
* - org.opencontainers.image.created (build timestamp)
|
|
165
166
|
* - org.opencontainers.image.version (from image tag)
|
|
166
167
|
*/
|
|
167
|
-
oci: alepha.TOptional<alepha.TBoolean>;
|
|
168
|
+
oci: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
168
169
|
}>>;
|
|
169
170
|
}>>;
|
|
170
171
|
/**
|
|
@@ -172,7 +173,7 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
172
173
|
*
|
|
173
174
|
* Note: Set `target: "static"` to enable static site generation.
|
|
174
175
|
*/
|
|
175
|
-
static: alepha.TOptional<alepha.TObject<{
|
|
176
|
+
static: _$alepha.TOptional<_$alepha.TObject<{
|
|
176
177
|
/**
|
|
177
178
|
* Surge domain for deployment.
|
|
178
179
|
*
|
|
@@ -182,16 +183,16 @@ declare const buildOptions: alepha.Atom<alepha.TObject<{
|
|
|
182
183
|
* @example "my-app.surge.sh"
|
|
183
184
|
* @example "my-custom-domain.com"
|
|
184
185
|
*/
|
|
185
|
-
domain: alepha.TOptional<alepha.TString>;
|
|
186
|
+
domain: _$alepha.TOptional<_$alepha.TString>;
|
|
186
187
|
}>>;
|
|
187
188
|
/**
|
|
188
189
|
* Sitemap generation configuration.
|
|
189
190
|
*/
|
|
190
|
-
sitemap: alepha.TOptional<alepha.TObject<{
|
|
191
|
+
sitemap: _$alepha.TOptional<_$alepha.TObject<{
|
|
191
192
|
/**
|
|
192
193
|
* Base URL for sitemap entries.
|
|
193
194
|
*/
|
|
194
|
-
hostname: alepha.TString;
|
|
195
|
+
hostname: _$alepha.TString;
|
|
195
196
|
}>>;
|
|
196
197
|
}>, "alepha.cli.build.options">;
|
|
197
198
|
/**
|
|
@@ -217,12 +218,12 @@ declare const DEFAULT_IGNORE: string[];
|
|
|
217
218
|
* });
|
|
218
219
|
* ```
|
|
219
220
|
*/
|
|
220
|
-
declare const changelogOptions: alepha.Atom<alepha.TObject<{
|
|
221
|
+
declare const changelogOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
221
222
|
/**
|
|
222
223
|
* Scopes to ignore (e.g., "project", "release", "chore").
|
|
223
224
|
* Commits like `feat(chore): ...` will be excluded from changelog.
|
|
224
225
|
*/
|
|
225
|
-
ignore: alepha.TOptional<alepha.TArray<alepha.TString>>;
|
|
226
|
+
ignore: _$alepha.TOptional<_$alepha.TArray<_$alepha.TString>>;
|
|
226
227
|
}>, "alepha.cli.changelog.options">;
|
|
227
228
|
type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
228
229
|
//#endregion
|
|
@@ -233,15 +234,11 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
|
233
234
|
* Defines the available dev configuration options with their defaults.
|
|
234
235
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
235
236
|
*/
|
|
236
|
-
declare const devOptions: alepha.Atom<alepha.TObject<{
|
|
237
|
-
/**
|
|
238
|
-
* Disable devtools.
|
|
239
|
-
*/
|
|
240
|
-
noDevtools: alepha.TOptional<alepha.TBoolean>;
|
|
237
|
+
declare const devOptions: _$alepha.Atom<_$alepha.TObject<{
|
|
241
238
|
/**
|
|
242
239
|
* Disable Vite React plugin.
|
|
243
240
|
*/
|
|
244
|
-
noViteReactPlugin: alepha.TOptional<alepha.TBoolean>;
|
|
241
|
+
noViteReactPlugin: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
245
242
|
}>, "alepha.cli.dev.options">;
|
|
246
243
|
/**
|
|
247
244
|
* Type for dev options.
|
|
@@ -322,7 +319,7 @@ declare class ViteUtils {
|
|
|
322
319
|
/**
|
|
323
320
|
* Lazy-load Vite (with rolldown-vite fallback).
|
|
324
321
|
*/
|
|
325
|
-
importVite(): Promise<typeof vite>;
|
|
322
|
+
importVite(): Promise<typeof _$vite>;
|
|
326
323
|
/**
|
|
327
324
|
* Lazy-load @vitejs/plugin-react (optional).
|
|
328
325
|
*/
|
|
@@ -350,8 +347,8 @@ declare class ViteUtils {
|
|
|
350
347
|
/**
|
|
351
348
|
* We need to close the Vite dev server after build is done.
|
|
352
349
|
*/
|
|
353
|
-
protected onReady: alepha.HookPrimitive<"ready">;
|
|
354
|
-
protected onStop: alepha.HookPrimitive<"stop">;
|
|
350
|
+
protected onReady: _$alepha.HookPrimitive<"ready">;
|
|
351
|
+
protected onStop: _$alepha.HookPrimitive<"stop">;
|
|
355
352
|
runAlepha(opts: {
|
|
356
353
|
entry: AppEntry;
|
|
357
354
|
mode: "production" | "development";
|
|
@@ -380,7 +377,7 @@ declare class ViteBuildProvider {
|
|
|
380
377
|
* - Environment loading
|
|
381
378
|
*/
|
|
382
379
|
declare class AlephaCliUtils {
|
|
383
|
-
protected readonly log: alepha_logger0.Logger;
|
|
380
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
384
381
|
protected readonly fs: FileSystemProvider;
|
|
385
382
|
protected readonly envUtils: EnvUtils;
|
|
386
383
|
protected readonly boot: AppEntryProvider;
|
|
@@ -467,7 +464,7 @@ interface WorkspaceContext {
|
|
|
467
464
|
* - Bun
|
|
468
465
|
*/
|
|
469
466
|
declare class PackageManagerUtils {
|
|
470
|
-
protected readonly log: alepha_logger0.Logger;
|
|
467
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
471
468
|
protected readonly fs: FileSystemProvider;
|
|
472
469
|
protected readonly alepha: Alepha;
|
|
473
470
|
/**
|
|
@@ -567,7 +564,7 @@ type AgentMdType = "claude" | "agents";
|
|
|
567
564
|
* - Example code (HelloController, Home component)
|
|
568
565
|
*/
|
|
569
566
|
declare class ProjectScaffolder {
|
|
570
|
-
protected readonly log: alepha_logger0.Logger;
|
|
567
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
571
568
|
protected readonly colors: ConsoleColorProvider;
|
|
572
569
|
protected readonly fs: FileSystemProvider;
|
|
573
570
|
protected readonly pm: PackageManagerUtils;
|
|
@@ -683,8 +680,7 @@ declare class ProjectScaffolder {
|
|
|
683
680
|
api?: boolean;
|
|
684
681
|
react?: boolean;
|
|
685
682
|
ui?: boolean;
|
|
686
|
-
|
|
687
|
-
admin?: boolean;
|
|
683
|
+
saas?: boolean;
|
|
688
684
|
tailwind?: boolean;
|
|
689
685
|
test?: boolean;
|
|
690
686
|
force?: boolean;
|
|
@@ -905,11 +901,12 @@ declare class BuildPrerenderTask extends BuildTask {
|
|
|
905
901
|
*/
|
|
906
902
|
declare class BuildServerTask extends BuildTask {
|
|
907
903
|
protected readonly alepha: Alepha;
|
|
908
|
-
protected readonly log: alepha_logger0.Logger;
|
|
904
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
909
905
|
protected readonly fs: FileSystemProvider;
|
|
910
906
|
protected readonly viteUtils: ViteUtils;
|
|
911
907
|
run(ctx: BuildTaskContext): Promise<void>;
|
|
912
908
|
protected buildServer(opts: {
|
|
909
|
+
root: string;
|
|
913
910
|
entry: string;
|
|
914
911
|
distDir: string;
|
|
915
912
|
clientDir?: string;
|
|
@@ -926,7 +923,7 @@ declare class BuildServerTask extends BuildTask {
|
|
|
926
923
|
protected generateExternals(distDir: string, externals: string[]): Promise<void>;
|
|
927
924
|
protected loadJsonFile(path: string): Promise<any>;
|
|
928
925
|
protected stripClientManifest(manifest: Record<string, any> | undefined): Record<string, any> | undefined;
|
|
929
|
-
protected extractEntryFromBundle(entry: string, result: vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher): string;
|
|
926
|
+
protected extractEntryFromBundle(root: string, entry: string, result: _$vite.Rollup.RollupOutput | _$vite.Rollup.RollupOutput[] | _$vite.Rollup.RollupWatcher): string;
|
|
930
927
|
}
|
|
931
928
|
//#endregion
|
|
932
929
|
//#region ../../src/cli/core/tasks/BuildSitemapTask.d.ts
|
|
@@ -1011,13 +1008,15 @@ declare class BuildVercelTask extends BuildTask {
|
|
|
1011
1008
|
//#region ../../src/cli/core/commands/build.d.ts
|
|
1012
1009
|
declare class BuildCommand {
|
|
1013
1010
|
protected readonly alepha: Alepha;
|
|
1014
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1011
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1015
1012
|
protected readonly utils: AlephaCliUtils;
|
|
1016
1013
|
protected readonly pm: PackageManagerUtils;
|
|
1017
1014
|
protected readonly scaffolder: ProjectScaffolder;
|
|
1018
1015
|
protected readonly boot: AppEntryProvider;
|
|
1019
1016
|
protected readonly viteBuildProvider: ViteBuildProvider;
|
|
1020
1017
|
protected readonly options: Readonly<{
|
|
1018
|
+
stats?: boolean | "json" | undefined;
|
|
1019
|
+
target?: "bare" | "docker" | "vercel" | "cloudflare" | "static" | undefined;
|
|
1021
1020
|
docker?: {
|
|
1022
1021
|
from?: string | undefined;
|
|
1023
1022
|
command?: string | undefined;
|
|
@@ -1039,15 +1038,13 @@ declare class BuildCommand {
|
|
|
1039
1038
|
} | undefined;
|
|
1040
1039
|
} | undefined;
|
|
1041
1040
|
cloudflare?: {
|
|
1042
|
-
config?: typebox.StaticRecord<[], "Decode", {}, {
|
|
1043
|
-
config: alepha.TOptional<alepha.TRecord<string, alepha.TAny>>;
|
|
1044
|
-
}, string, alepha.TAny> | undefined;
|
|
1041
|
+
config?: _$typebox.StaticRecord<[], "Decode", {}, {
|
|
1042
|
+
config: _$alepha.TOptional<_$alepha.TRecord<string, _$alepha.TAny>>;
|
|
1043
|
+
}, string, _$alepha.TAny> | undefined;
|
|
1045
1044
|
} | undefined;
|
|
1046
1045
|
static?: {
|
|
1047
1046
|
domain?: string | undefined;
|
|
1048
1047
|
} | undefined;
|
|
1049
|
-
stats?: boolean | "json" | undefined;
|
|
1050
|
-
target?: "bare" | "docker" | "vercel" | "cloudflare" | "static" | undefined;
|
|
1051
1048
|
runtime?: "node" | "bun" | "workerd" | undefined;
|
|
1052
1049
|
output?: {
|
|
1053
1050
|
dist?: string | undefined;
|
|
@@ -1074,13 +1071,13 @@ declare class BuildCommand {
|
|
|
1074
1071
|
* @throws {AlephaError} If an incompatible runtime is specified for a target
|
|
1075
1072
|
*/
|
|
1076
1073
|
protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
|
|
1077
|
-
readonly build: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1078
|
-
stats: alepha.TOptional<alepha.TUnion<[alepha.TBoolean, alepha.TUnsafe<"json">]>>;
|
|
1079
|
-
target: alepha.TOptional<alepha.TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
1080
|
-
runtime: alepha.TOptional<alepha.TUnsafe<"node" | "bun" | "workerd">>;
|
|
1081
|
-
image: alepha.TOptional<alepha.TUnion<[alepha.TBoolean, alepha.TString]>>;
|
|
1082
|
-
sitemap: alepha.TOptional<alepha.TString>;
|
|
1083
|
-
}>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1074
|
+
readonly build: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1075
|
+
stats: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TBoolean, _$alepha.TUnsafe<"json">]>>;
|
|
1076
|
+
target: _$alepha.TOptional<_$alepha.TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
1077
|
+
runtime: _$alepha.TOptional<_$alepha.TUnsafe<"node" | "bun" | "workerd">>;
|
|
1078
|
+
image: _$alepha.TOptional<_$alepha.TUnion<[_$alepha.TBoolean, _$alepha.TString]>>;
|
|
1079
|
+
sitemap: _$alepha.TOptional<_$alepha.TString>;
|
|
1080
|
+
}>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1084
1081
|
}
|
|
1085
1082
|
//#endregion
|
|
1086
1083
|
//#region ../../src/cli/core/commands/clean.d.ts
|
|
@@ -1088,12 +1085,12 @@ declare class CleanCommand {
|
|
|
1088
1085
|
/**
|
|
1089
1086
|
* Clean the project, removing the "dist" directory
|
|
1090
1087
|
*/
|
|
1091
|
-
readonly clean: alepha_command0.CommandPrimitive<typebox.TObject<typebox.TProperties>, typebox.TSchema, typebox.TObject<typebox.TProperties>>;
|
|
1088
|
+
readonly clean: _$alepha_command0.CommandPrimitive<_$typebox.TObject<_$typebox.TProperties>, _$typebox.TSchema, _$typebox.TObject<_$typebox.TProperties>>;
|
|
1092
1089
|
}
|
|
1093
1090
|
//#endregion
|
|
1094
1091
|
//#region ../../src/cli/core/commands/db.d.ts
|
|
1095
1092
|
declare class DbCommand {
|
|
1096
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1093
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1097
1094
|
protected readonly fs: FileSystemProvider;
|
|
1098
1095
|
protected readonly utils: AlephaCliUtils;
|
|
1099
1096
|
protected readonly pm: PackageManagerUtils;
|
|
@@ -1103,44 +1100,44 @@ declare class DbCommand {
|
|
|
1103
1100
|
/**
|
|
1104
1101
|
* Check if database migrations are up to date.
|
|
1105
1102
|
*/
|
|
1106
|
-
protected readonly check: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1107
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
1108
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1103
|
+
protected readonly check: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1104
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
1105
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1109
1106
|
/**
|
|
1110
1107
|
* Generate database migration files
|
|
1111
1108
|
*/
|
|
1112
|
-
protected readonly create: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1113
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
1114
|
-
custom: alepha.TOptional<alepha.TBoolean>;
|
|
1115
|
-
name: alepha.TOptional<alepha.TString>;
|
|
1116
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1109
|
+
protected readonly create: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1110
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
1111
|
+
custom: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1112
|
+
name: _$alepha.TOptional<_$alepha.TString>;
|
|
1113
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1117
1114
|
/**
|
|
1118
1115
|
* Push database schema changes directly to the database
|
|
1119
1116
|
*/
|
|
1120
|
-
protected readonly push: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1121
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
1122
|
-
dryRun: alepha.TOptional<alepha.TBoolean>;
|
|
1123
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1117
|
+
protected readonly push: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1118
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
1119
|
+
dryRun: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1120
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1124
1121
|
/**
|
|
1125
1122
|
* Apply pending database migrations
|
|
1126
1123
|
*/
|
|
1127
|
-
protected readonly apply: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1128
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
1129
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1124
|
+
protected readonly apply: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1125
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
1126
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1130
1127
|
/**
|
|
1131
1128
|
* Launch Drizzle Studio database browser
|
|
1132
1129
|
*/
|
|
1133
|
-
protected readonly studio: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1134
|
-
provider: alepha.TOptional<alepha.TString>;
|
|
1135
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1130
|
+
protected readonly studio: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1131
|
+
provider: _$alepha.TOptional<_$alepha.TString>;
|
|
1132
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1136
1133
|
/**
|
|
1137
1134
|
* Parent command for migration operations.
|
|
1138
1135
|
*/
|
|
1139
|
-
protected readonly migrations: alepha_command0.CommandPrimitive<alepha.TObject<alepha.TProperties>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1136
|
+
protected readonly migrations: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1140
1137
|
/**
|
|
1141
1138
|
* Parent command for database operations.
|
|
1142
1139
|
*/
|
|
1143
|
-
readonly db: alepha_command0.CommandPrimitive<alepha.TObject<alepha.TProperties>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1140
|
+
readonly db: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1144
1141
|
/**
|
|
1145
1142
|
* Run a drizzle-kit command for all database providers in an Alepha instance.
|
|
1146
1143
|
*/
|
|
@@ -1192,15 +1189,15 @@ interface DevServerOptions {
|
|
|
1192
1189
|
* Path to the server entry file.
|
|
1193
1190
|
*/
|
|
1194
1191
|
entry: AppEntry;
|
|
1195
|
-
/**
|
|
1196
|
-
* Disable devtools.
|
|
1197
|
-
*/
|
|
1198
|
-
noDevtools?: boolean;
|
|
1199
1192
|
/**
|
|
1200
1193
|
* Disable Vite React plugin.
|
|
1201
1194
|
*/
|
|
1202
1195
|
noViteReactPlugin?: boolean;
|
|
1203
1196
|
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Hook called after Alepha is loaded during dev server init/reload.
|
|
1199
|
+
*/
|
|
1200
|
+
type OnAlephaLoadedHook = (alepha: Alepha, server: ViteDevServer) => Promise<void>;
|
|
1204
1201
|
/**
|
|
1205
1202
|
* Vite development server with Alepha integration.
|
|
1206
1203
|
*
|
|
@@ -1215,7 +1212,7 @@ interface DevServerOptions {
|
|
|
1215
1212
|
* - Shared changes → Reload Alepha → Let HMR propagate
|
|
1216
1213
|
*/
|
|
1217
1214
|
declare class ViteDevServerProvider {
|
|
1218
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1215
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1219
1216
|
protected readonly fs: FileSystemProvider;
|
|
1220
1217
|
protected readonly colors: ConsoleColorProvider;
|
|
1221
1218
|
protected readonly viteUtils: ViteUtils;
|
|
@@ -1230,7 +1227,21 @@ declare class ViteDevServerProvider {
|
|
|
1230
1227
|
protected isReloading: boolean;
|
|
1231
1228
|
protected needsBrowserReload: boolean;
|
|
1232
1229
|
protected currentReloadPromise: Promise<void> | null;
|
|
1233
|
-
protected
|
|
1230
|
+
protected extraVitePlugins: Plugin[];
|
|
1231
|
+
protected alephaLoadedHooks: OnAlephaLoadedHook[];
|
|
1232
|
+
/**
|
|
1233
|
+
* Register an additional Vite plugin.
|
|
1234
|
+
* Must be called before init().
|
|
1235
|
+
*/
|
|
1236
|
+
addVitePlugin(plugin: Plugin): void;
|
|
1237
|
+
/**
|
|
1238
|
+
* Register a hook called after Alepha is loaded/reloaded.
|
|
1239
|
+
*/
|
|
1240
|
+
onAlephaLoaded(hook: OnAlephaLoadedHook): void;
|
|
1241
|
+
/**
|
|
1242
|
+
* Trigger a full Alepha reload programmatically.
|
|
1243
|
+
*/
|
|
1244
|
+
reload(): void;
|
|
1234
1245
|
/**
|
|
1235
1246
|
* Initialize the dev server and load Alepha.
|
|
1236
1247
|
*/
|
|
@@ -1346,7 +1357,7 @@ declare class ViteDevServerProvider {
|
|
|
1346
1357
|
/**
|
|
1347
1358
|
* Log a formatted error with stack trace.
|
|
1348
1359
|
*/
|
|
1349
|
-
protected logError(title: string,
|
|
1360
|
+
protected logError(title: string, err: unknown): void;
|
|
1350
1361
|
/**
|
|
1351
1362
|
* Log error message and stack, recursively logging cause if present.
|
|
1352
1363
|
*/
|
|
@@ -1355,7 +1366,7 @@ declare class ViteDevServerProvider {
|
|
|
1355
1366
|
//#endregion
|
|
1356
1367
|
//#region ../../src/cli/core/commands/dev.d.ts
|
|
1357
1368
|
declare class DevCommand {
|
|
1358
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1369
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1359
1370
|
protected readonly fs: FileSystemProvider;
|
|
1360
1371
|
protected readonly utils: AlephaCliUtils;
|
|
1361
1372
|
protected readonly pm: PackageManagerUtils;
|
|
@@ -1364,16 +1375,49 @@ declare class DevCommand {
|
|
|
1364
1375
|
protected readonly viteDevServer: ViteDevServerProvider;
|
|
1365
1376
|
protected readonly boot: AppEntryProvider;
|
|
1366
1377
|
protected readonly options: Readonly<{
|
|
1367
|
-
noDevtools?: boolean | undefined;
|
|
1368
1378
|
noViteReactPlugin?: boolean | undefined;
|
|
1369
1379
|
}>;
|
|
1370
1380
|
/**
|
|
1371
1381
|
* Will run the project in watch mode.
|
|
1382
|
+
*
|
|
1383
|
+
* When run from a workspace root (with apps/ directory), spawns all apps in parallel.
|
|
1384
|
+
* When run from an app directory, starts a single Vite dev server.
|
|
1385
|
+
*/
|
|
1386
|
+
readonly dev: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1387
|
+
only: _$alepha.TOptional<_$alepha.TString>;
|
|
1388
|
+
}>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1389
|
+
/**
|
|
1390
|
+
* Discover apps in the workspace root.
|
|
1391
|
+
*
|
|
1392
|
+
* Looks for directories under apps/ that contain a package.json.
|
|
1393
|
+
* Supports scoped directories (e.g., apps/@passeo/api).
|
|
1394
|
+
* Returns empty array if not in a workspace root.
|
|
1395
|
+
*/
|
|
1396
|
+
protected discoverApps(root: string): Promise<Array<{
|
|
1397
|
+
name: string;
|
|
1398
|
+
path: string;
|
|
1399
|
+
}>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* Run a single app (existing behavior).
|
|
1402
|
+
*/
|
|
1403
|
+
protected runSingle(root: string): Promise<void>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Run multiple apps in parallel with colored prefixed output.
|
|
1406
|
+
*/
|
|
1407
|
+
protected runMultiple(_root: string, apps: Array<{
|
|
1408
|
+
name: string;
|
|
1409
|
+
path: string;
|
|
1410
|
+
}>, flags: Record<string, unknown>): Promise<void>;
|
|
1411
|
+
/**
|
|
1412
|
+
* Spawn a single app process with inherited stdio.
|
|
1413
|
+
*
|
|
1414
|
+
* Each child process gets APP_NAME set, so the Alepha logger
|
|
1415
|
+
* handles prefixing automatically.
|
|
1372
1416
|
*/
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
}
|
|
1417
|
+
protected spawnApp(app: {
|
|
1418
|
+
name: string;
|
|
1419
|
+
path: string;
|
|
1420
|
+
}, port: number): ReturnType<typeof spawn>;
|
|
1377
1421
|
}
|
|
1378
1422
|
//#endregion
|
|
1379
1423
|
//#region ../../src/cli/core/services/GitMessageParser.d.ts
|
|
@@ -1392,7 +1436,7 @@ declare class DevCommand {
|
|
|
1392
1436
|
* - `feat(cli): add command` → included
|
|
1393
1437
|
*/
|
|
1394
1438
|
declare class GitMessageParser {
|
|
1395
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1439
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1396
1440
|
/**
|
|
1397
1441
|
* Parse a git commit line into a structured Commit object.
|
|
1398
1442
|
*
|
|
@@ -1436,7 +1480,7 @@ interface ChangelogEntry {
|
|
|
1436
1480
|
* - `alepha gen changelog | tee -a CHANGELOG.md` - Append to file
|
|
1437
1481
|
*/
|
|
1438
1482
|
declare class ChangelogCommand {
|
|
1439
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1483
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1440
1484
|
protected readonly git: GitProvider;
|
|
1441
1485
|
protected readonly parser: GitMessageParser;
|
|
1442
1486
|
protected readonly config: Readonly<{
|
|
@@ -1464,30 +1508,30 @@ declare class ChangelogCommand {
|
|
|
1464
1508
|
* Get the latest version tag.
|
|
1465
1509
|
*/
|
|
1466
1510
|
protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
|
|
1467
|
-
readonly command: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1511
|
+
readonly command: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1468
1512
|
/**
|
|
1469
1513
|
* Show changes from this ref (tag, commit, branch).
|
|
1470
1514
|
* Defaults to the latest version tag.
|
|
1471
1515
|
* Example: --from=1.0.0
|
|
1472
1516
|
*/
|
|
1473
|
-
from: alepha.TOptional<alepha.TString>;
|
|
1517
|
+
from: _$alepha.TOptional<_$alepha.TString>;
|
|
1474
1518
|
/**
|
|
1475
1519
|
* Show changes up to this ref (tag, commit, branch).
|
|
1476
1520
|
* Defaults to HEAD.
|
|
1477
1521
|
* Example: --to=main
|
|
1478
1522
|
*/
|
|
1479
|
-
to: alepha.TOptional<alepha.TString>;
|
|
1480
|
-
}>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1523
|
+
to: _$alepha.TOptional<_$alepha.TString>;
|
|
1524
|
+
}>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1481
1525
|
}
|
|
1482
1526
|
//#endregion
|
|
1483
1527
|
//#region ../../src/cli/core/commands/gen/openapi.d.ts
|
|
1484
1528
|
declare class OpenApiCommand {
|
|
1485
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1529
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1486
1530
|
protected readonly utils: AlephaCliUtils;
|
|
1487
1531
|
protected readonly fs: FileSystemProvider;
|
|
1488
|
-
readonly command: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1489
|
-
out: alepha.TOptional<alepha.TString>;
|
|
1490
|
-
}>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1532
|
+
readonly command: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1533
|
+
out: _$alepha.TOptional<_$alepha.TString>;
|
|
1534
|
+
}>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1491
1535
|
}
|
|
1492
1536
|
//#endregion
|
|
1493
1537
|
//#region ../../src/cli/core/commands/init.d.ts
|
|
@@ -1497,17 +1541,16 @@ declare class InitCommand {
|
|
|
1497
1541
|
* Ensure the project has the necessary Alepha configuration files.
|
|
1498
1542
|
* Add the correct dependencies to package.json and install them.
|
|
1499
1543
|
*/
|
|
1500
|
-
readonly init: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1501
|
-
pm: alepha.TOptional<alepha.TUnsafe<"bun" | "yarn" | "npm" | "pnpm">>;
|
|
1502
|
-
api: alepha.TOptional<alepha.TBoolean>;
|
|
1503
|
-
react: alepha.TOptional<alepha.TBoolean>;
|
|
1504
|
-
ui: alepha.TOptional<alepha.TBoolean>;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
}>, alepha.TOptional<alepha.TString>, alepha.TObject<alepha.TProperties>>;
|
|
1544
|
+
readonly init: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1545
|
+
pm: _$alepha.TOptional<_$alepha.TUnsafe<"bun" | "yarn" | "npm" | "pnpm">>;
|
|
1546
|
+
api: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1547
|
+
react: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1548
|
+
ui: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1549
|
+
saas: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1550
|
+
tailwind: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1551
|
+
test: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1552
|
+
force: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1553
|
+
}>, _$alepha.TOptional<_$alepha.TString>, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1511
1554
|
}
|
|
1512
1555
|
//#endregion
|
|
1513
1556
|
//#region ../../src/cli/core/commands/lint.d.ts
|
|
@@ -1515,21 +1558,21 @@ declare class LintCommand {
|
|
|
1515
1558
|
protected readonly utils: AlephaCliUtils;
|
|
1516
1559
|
protected readonly pm: PackageManagerUtils;
|
|
1517
1560
|
protected readonly scaffolder: ProjectScaffolder;
|
|
1518
|
-
readonly lint: alepha_command0.CommandPrimitive<alepha.TObject<alepha.TProperties>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1561
|
+
readonly lint: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1519
1562
|
}
|
|
1520
1563
|
//#endregion
|
|
1521
1564
|
//#region ../../src/cli/core/commands/root.d.ts
|
|
1522
1565
|
declare class RootCommand {
|
|
1523
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1566
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1524
1567
|
protected readonly cli: CliProvider;
|
|
1525
1568
|
protected readonly alepha: Alepha;
|
|
1526
1569
|
protected readonly color: ConsoleColorProvider;
|
|
1527
1570
|
/**
|
|
1528
1571
|
* Called when no command is provided
|
|
1529
1572
|
*/
|
|
1530
|
-
readonly root: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1531
|
-
version: alepha.TOptional<alepha.TBoolean>;
|
|
1532
|
-
}>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1573
|
+
readonly root: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1574
|
+
version: _$alepha.TOptional<_$alepha.TBoolean>;
|
|
1575
|
+
}>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1533
1576
|
}
|
|
1534
1577
|
//#endregion
|
|
1535
1578
|
//#region ../../src/cli/core/commands/test.d.ts
|
|
@@ -1537,10 +1580,10 @@ declare class TestCommand {
|
|
|
1537
1580
|
protected readonly utils: AlephaCliUtils;
|
|
1538
1581
|
protected readonly pm: PackageManagerUtils;
|
|
1539
1582
|
protected readonly scaffolder: ProjectScaffolder;
|
|
1540
|
-
readonly test: alepha_command0.CommandPrimitive<alepha.TObject<{
|
|
1541
|
-
config: alepha.TOptional<alepha.TString>;
|
|
1542
|
-
}>, alepha.TSchema, alepha.TObject<{
|
|
1543
|
-
VITEST_ARGS: alepha.TOptional<alepha.TString>;
|
|
1583
|
+
readonly test: _$alepha_command0.CommandPrimitive<_$alepha.TObject<{
|
|
1584
|
+
config: _$alepha.TOptional<_$alepha.TString>;
|
|
1585
|
+
}>, _$alepha.TSchema, _$alepha.TObject<{
|
|
1586
|
+
VITEST_ARGS: _$alepha.TOptional<_$alepha.TString>;
|
|
1544
1587
|
}>>;
|
|
1545
1588
|
}
|
|
1546
1589
|
//#endregion
|
|
@@ -1548,12 +1591,12 @@ declare class TestCommand {
|
|
|
1548
1591
|
declare class TypecheckCommand {
|
|
1549
1592
|
protected readonly utils: AlephaCliUtils;
|
|
1550
1593
|
protected readonly pm: PackageManagerUtils;
|
|
1551
|
-
protected readonly log: alepha_logger0.Logger;
|
|
1594
|
+
protected readonly log: _$alepha_logger0.Logger;
|
|
1552
1595
|
protected readonly scaffolder: ProjectScaffolder;
|
|
1553
1596
|
/**
|
|
1554
1597
|
* Run TypeScript type checking across the codebase with no emit.
|
|
1555
1598
|
*/
|
|
1556
|
-
readonly typecheck: alepha_command0.CommandPrimitive<alepha.TObject<alepha.TProperties>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1599
|
+
readonly typecheck: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1557
1600
|
}
|
|
1558
1601
|
//#endregion
|
|
1559
1602
|
//#region ../../src/cli/core/commands/verify.d.ts
|
|
@@ -1573,14 +1616,14 @@ declare class VerifyCommand {
|
|
|
1573
1616
|
* - Build the project
|
|
1574
1617
|
* - Clean the project again
|
|
1575
1618
|
*/
|
|
1576
|
-
readonly verify: alepha_command0.CommandPrimitive<alepha.TObject<alepha.TProperties>, alepha.TSchema, alepha.TObject<alepha.TProperties>>;
|
|
1619
|
+
readonly verify: _$alepha_command0.CommandPrimitive<_$alepha.TObject<_$alepha.TProperties>, _$alepha.TSchema, _$alepha.TObject<_$alepha.TProperties>>;
|
|
1577
1620
|
}
|
|
1578
1621
|
//#endregion
|
|
1579
1622
|
//#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts
|
|
1580
1623
|
declare class AlephaCliExtensionProvider {
|
|
1581
1624
|
protected readonly alepha: Alepha;
|
|
1582
1625
|
protected readonly fs: FileSystemProvider;
|
|
1583
|
-
protected readonly onConfigure: alepha.HookPrimitive<"configure">;
|
|
1626
|
+
protected readonly onConfigure: _$alepha.HookPrimitive<"configure">;
|
|
1584
1627
|
}
|
|
1585
1628
|
//#endregion
|
|
1586
1629
|
//#region ../../src/cli/core/version.d.ts
|
|
@@ -1591,11 +1634,11 @@ declare const version: any;
|
|
|
1591
1634
|
* Services, providers, and build tasks — no commands.
|
|
1592
1635
|
* Use this module when you need CLI utilities without registering commands.
|
|
1593
1636
|
*/
|
|
1594
|
-
declare const AlephaCliServices: alepha.Service<alepha.Module>;
|
|
1637
|
+
declare const AlephaCliServices: _$alepha.Service<_$alepha.Module>;
|
|
1595
1638
|
/**
|
|
1596
1639
|
* Full CLI module — all services and commands.
|
|
1597
1640
|
*/
|
|
1598
|
-
declare const AlephaCli: alepha.Service<alepha.Module>;
|
|
1641
|
+
declare const AlephaCli: _$alepha.Service<_$alepha.Module>;
|
|
1599
1642
|
//#endregion
|
|
1600
|
-
export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildSitemapTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, type ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OpenApiCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
|
|
1643
|
+
export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildSitemapTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, type ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OnAlephaLoadedHook, OpenApiCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
|
|
1601
1644
|
//# sourceMappingURL=index.d.ts.map
|