alepha 0.21.2 → 0.22.0
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/README.md +0 -1
- package/dist/api/audits/index.browser.js.map +1 -1
- package/dist/api/audits/index.d.ts +393 -403
- package/dist/api/audits/index.d.ts.map +1 -1
- package/dist/api/audits/index.js +25 -56
- package/dist/api/audits/index.js.map +1 -1
- package/dist/api/files/index.browser.js +31 -1
- package/dist/api/files/index.browser.js.map +1 -1
- package/dist/api/files/index.d.ts +313 -208
- package/dist/api/files/index.d.ts.map +1 -1
- package/dist/api/files/index.js +152 -42
- package/dist/api/files/index.js.map +1 -1
- package/dist/api/jobs/index.browser.js +2 -2
- package/dist/api/jobs/index.browser.js.map +1 -1
- package/dist/api/jobs/index.d.ts +289 -292
- package/dist/api/jobs/index.d.ts.map +1 -1
- package/dist/api/jobs/index.js +39 -33
- package/dist/api/jobs/index.js.map +1 -1
- package/dist/api/keys/index.d.ts +211 -216
- package/dist/api/keys/index.d.ts.map +1 -1
- package/dist/api/keys/index.js.map +1 -1
- package/dist/api/notifications/index.browser.js.map +1 -1
- package/dist/api/notifications/index.d.ts +188 -195
- package/dist/api/notifications/index.d.ts.map +1 -1
- package/dist/api/notifications/index.js.map +1 -1
- package/dist/api/oauth/index.d.ts +71 -76
- package/dist/api/oauth/index.d.ts.map +1 -1
- package/dist/api/oauth/index.js.map +1 -1
- package/dist/api/organizations/index.browser.js.map +1 -1
- package/dist/api/organizations/index.d.ts +104 -109
- package/dist/api/organizations/index.d.ts.map +1 -1
- package/dist/api/organizations/index.js.map +1 -1
- package/dist/api/parameters/index.browser.js +43 -16
- package/dist/api/parameters/index.browser.js.map +1 -1
- package/dist/api/parameters/index.d.ts +488 -344
- package/dist/api/parameters/index.d.ts.map +1 -1
- package/dist/api/parameters/index.js +175 -35
- package/dist/api/parameters/index.js.map +1 -1
- package/dist/api/payments/index.d.ts +396 -402
- package/dist/api/payments/index.d.ts.map +1 -1
- package/dist/api/payments/index.js.map +1 -1
- package/dist/api/subscriptions/index.d.ts +644 -652
- package/dist/api/subscriptions/index.d.ts.map +1 -1
- package/dist/api/subscriptions/index.js +1 -1
- package/dist/api/subscriptions/index.js.map +1 -1
- package/dist/api/users/index.browser.js +7 -0
- package/dist/api/users/index.browser.js.map +1 -1
- package/dist/api/users/index.d.ts +1073 -1006
- package/dist/api/users/index.d.ts.map +1 -1
- package/dist/api/users/index.js +283 -61
- package/dist/api/users/index.js.map +1 -1
- package/dist/api/verifications/index.browser.js.map +1 -1
- package/dist/api/verifications/index.d.ts +134 -140
- package/dist/api/verifications/index.d.ts.map +1 -1
- package/dist/api/verifications/index.js.map +1 -1
- package/dist/background/index.d.ts +95 -0
- package/dist/background/index.d.ts.map +1 -0
- package/dist/background/index.js +121 -0
- package/dist/background/index.js.map +1 -0
- package/dist/background/index.workerd.js +110 -0
- package/dist/background/index.workerd.js.map +1 -0
- package/dist/batch/index.d.ts +5 -7
- package/dist/batch/index.d.ts.map +1 -1
- package/dist/batch/index.js.map +1 -1
- package/dist/bin/index.js.map +1 -1
- package/dist/bucket/index.d.ts +76 -54
- package/dist/bucket/index.d.ts.map +1 -1
- package/dist/bucket/index.js +58 -11
- package/dist/bucket/index.js.map +1 -1
- package/dist/bucket/index.workerd.js +200 -5
- package/dist/bucket/index.workerd.js.map +1 -1
- package/dist/cache/core/index.d.ts +7 -10
- package/dist/cache/core/index.d.ts.map +1 -1
- package/dist/cache/core/index.js.map +1 -1
- package/dist/cache/core/index.workerd.js.map +1 -1
- package/dist/cache/database/index.d.ts +22 -26
- package/dist/cache/database/index.d.ts.map +1 -1
- package/dist/cache/database/index.js.map +1 -1
- package/dist/cache/redis/index.d.ts +4 -7
- package/dist/cache/redis/index.d.ts.map +1 -1
- package/dist/cache/redis/index.js.map +1 -1
- package/dist/captcha/index.d.ts +3 -6
- package/dist/captcha/index.d.ts.map +1 -1
- package/dist/captcha/index.js.map +1 -1
- package/dist/cli/config/index.d.ts.map +1 -1
- package/dist/cli/config/index.js.map +1 -1
- package/dist/cli/core/index.d.ts +417 -214
- package/dist/cli/core/index.d.ts.map +1 -1
- package/dist/cli/core/index.js +325 -563
- package/dist/cli/core/index.js.map +1 -1
- package/dist/cli/devtools/index.d.ts +3 -5
- package/dist/cli/devtools/index.d.ts.map +1 -1
- package/dist/cli/devtools/index.js.map +1 -1
- package/dist/cli/i18n/index.d.ts +8 -12
- package/dist/cli/i18n/index.d.ts.map +1 -1
- package/dist/cli/i18n/index.js.map +1 -1
- package/dist/cli/platform/index.d.ts +126 -1342
- package/dist/cli/platform/index.d.ts.map +1 -1
- package/dist/cli/platform/index.js +136 -2374
- package/dist/cli/platform/index.js.map +1 -1
- package/dist/cli/platform-lib/index.d.ts +1446 -0
- package/dist/cli/platform-lib/index.d.ts.map +1 -0
- package/dist/cli/platform-lib/index.js +2597 -0
- package/dist/cli/platform-lib/index.js.map +1 -0
- package/dist/cli/vendor/index.d.ts +17 -21
- package/dist/cli/vendor/index.d.ts.map +1 -1
- package/dist/cli/vendor/index.js.map +1 -1
- package/dist/command/index.d.ts +21 -20
- package/dist/command/index.d.ts.map +1 -1
- package/dist/command/index.js +39 -10
- package/dist/command/index.js.map +1 -1
- package/dist/{containers → container}/core/index.d.ts +13 -15
- package/dist/container/core/index.d.ts.map +1 -0
- package/dist/{containers → container}/core/index.js +23 -14
- package/dist/container/core/index.js.map +1 -0
- package/dist/{containers → container}/core/index.workerd.js +37 -22
- package/dist/container/core/index.workerd.js.map +1 -0
- package/dist/core/index.browser.js +27 -1
- package/dist/core/index.browser.js.map +1 -1
- package/dist/core/index.d.ts +48 -24
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +27 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.native.js +27 -1
- package/dist/core/index.native.js.map +1 -1
- package/dist/core/index.workerd.js +27 -1
- package/dist/core/index.workerd.js.map +1 -1
- package/dist/crypto/index.browser.js.map +1 -1
- package/dist/crypto/index.d.ts +5 -8
- package/dist/crypto/index.d.ts.map +1 -1
- package/dist/crypto/index.js.map +1 -1
- package/dist/datetime/index.d.ts +3 -4
- package/dist/datetime/index.d.ts.map +1 -1
- package/dist/datetime/index.js.map +1 -1
- package/dist/email/brevo/index.d.ts +2 -4
- package/dist/email/brevo/index.d.ts.map +1 -1
- package/dist/email/brevo/index.js.map +1 -1
- package/dist/email/cloudflare/index.d.ts +20 -7
- package/dist/email/cloudflare/index.d.ts.map +1 -1
- package/dist/email/cloudflare/index.js +46 -9
- package/dist/email/cloudflare/index.js.map +1 -1
- package/dist/email/core/index.d.ts +6 -9
- package/dist/email/core/index.d.ts.map +1 -1
- package/dist/email/core/index.js.map +1 -1
- package/dist/email/core/index.workerd.js.map +1 -1
- package/dist/email/smtp/index.d.ts +10 -13
- package/dist/email/smtp/index.d.ts.map +1 -1
- package/dist/email/smtp/index.js +107 -32
- package/dist/email/smtp/index.js.map +1 -1
- package/dist/fake/index.d.ts +1 -2
- package/dist/fake/index.d.ts.map +1 -1
- package/dist/fake/index.js.map +1 -1
- package/dist/lock/core/index.d.ts +9 -14
- package/dist/lock/core/index.d.ts.map +1 -1
- package/dist/lock/core/index.js.map +1 -1
- package/dist/lock/redis/index.d.ts +2 -4
- package/dist/lock/redis/index.d.ts.map +1 -1
- package/dist/lock/redis/index.js.map +1 -1
- package/dist/logger/index.d.ts +105 -76
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +196 -174
- package/dist/logger/index.js.map +1 -1
- package/dist/mcp/index.d.ts +16 -20
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/orm/core/index.browser.js.map +1 -1
- package/dist/orm/core/index.bun.js +19 -1
- package/dist/orm/core/index.bun.js.map +1 -1
- package/dist/orm/core/index.d.ts +76 -62
- package/dist/orm/core/index.d.ts.map +1 -1
- package/dist/orm/core/index.js +20 -2
- package/dist/orm/core/index.js.map +1 -1
- package/dist/orm/postgres/index.bun.js.map +1 -1
- package/dist/orm/postgres/index.d.ts +28 -20
- package/dist/orm/postgres/index.d.ts.map +1 -1
- package/dist/orm/postgres/index.js.map +1 -1
- package/dist/queue/core/index.d.ts +12 -15
- package/dist/queue/core/index.d.ts.map +1 -1
- package/dist/queue/core/index.js.map +1 -1
- package/dist/queue/core/index.workerd.js.map +1 -1
- package/dist/queue/redis/index.d.ts +3 -5
- package/dist/queue/redis/index.d.ts.map +1 -1
- package/dist/queue/redis/index.js.map +1 -1
- package/dist/react/auth/index.browser.js +9 -2
- package/dist/react/auth/index.browser.js.map +1 -1
- package/dist/react/auth/index.d.ts +14 -9
- package/dist/react/auth/index.d.ts.map +1 -1
- package/dist/react/auth/index.js +9 -2
- package/dist/react/auth/index.js.map +1 -1
- package/dist/react/core/index.d.ts +7 -8
- package/dist/react/core/index.d.ts.map +1 -1
- package/dist/react/core/index.js +6 -3
- package/dist/react/core/index.js.map +1 -1
- package/dist/react/form/index.d.ts +2 -4
- package/dist/react/form/index.d.ts.map +1 -1
- package/dist/react/form/index.js.map +1 -1
- package/dist/react/head/index.browser.js.map +1 -1
- package/dist/react/head/index.d.ts +2 -4
- package/dist/react/head/index.d.ts.map +1 -1
- package/dist/react/head/index.js.map +1 -1
- package/dist/react/i18n/index.d.ts +47 -11
- package/dist/react/i18n/index.d.ts.map +1 -1
- package/dist/react/i18n/index.js +33 -1
- package/dist/react/i18n/index.js.map +1 -1
- package/dist/react/intro/index.d.ts +1 -2
- package/dist/react/intro/index.d.ts.map +1 -1
- package/dist/react/intro/index.js +2 -2
- package/dist/react/intro/index.js.map +1 -1
- package/dist/react/router/index.browser.js +65 -19
- package/dist/react/router/index.browser.js.map +1 -1
- package/dist/react/router/index.d.ts +327 -222
- package/dist/react/router/index.d.ts.map +1 -1
- package/dist/react/router/index.js +65 -29
- package/dist/react/router/index.js.map +1 -1
- package/dist/react/testing/index.d.ts +1 -2
- package/dist/react/testing/index.d.ts.map +1 -1
- package/dist/react/testing/index.js +16 -17
- package/dist/react/testing/index.js.map +1 -1
- package/dist/react/ui/index.d.ts +20 -25
- package/dist/react/ui/index.d.ts.map +1 -1
- package/dist/react/ui/index.js.map +1 -1
- package/dist/redis/index.bun.js.map +1 -1
- package/dist/redis/index.d.ts +17 -19
- package/dist/redis/index.d.ts.map +1 -1
- package/dist/redis/index.js.map +1 -1
- package/dist/retry/index.d.ts +2 -4
- package/dist/retry/index.d.ts.map +1 -1
- package/dist/retry/index.js.map +1 -1
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js.map +1 -1
- package/dist/scheduler/index.d.ts +10 -13
- package/dist/scheduler/index.d.ts.map +1 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/index.workerd.js.map +1 -1
- package/dist/security/index.browser.js.map +1 -1
- package/dist/security/index.d.ts +45 -48
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js.map +1 -1
- package/dist/server/auth/index.browser.js.map +1 -1
- package/dist/server/auth/index.d.ts +167 -172
- package/dist/server/auth/index.d.ts.map +1 -1
- package/dist/server/auth/index.js +4 -8
- package/dist/server/auth/index.js.map +1 -1
- package/dist/server/cookies/index.browser.js.map +1 -1
- package/dist/server/cookies/index.d.ts +5 -7
- package/dist/server/cookies/index.d.ts.map +1 -1
- package/dist/server/cookies/index.js.map +1 -1
- package/dist/server/core/index.browser.js.map +1 -1
- package/dist/server/core/index.d.ts +88 -73
- package/dist/server/core/index.d.ts.map +1 -1
- package/dist/server/core/index.js +19 -0
- package/dist/server/core/index.js.map +1 -1
- package/dist/server/cors/index.d.ts +11 -14
- package/dist/server/cors/index.d.ts.map +1 -1
- package/dist/server/cors/index.js.map +1 -1
- package/dist/server/etag/index.d.ts +6 -9
- package/dist/server/etag/index.d.ts.map +1 -1
- package/dist/server/etag/index.js.map +1 -1
- package/dist/server/health/index.d.ts +18 -21
- package/dist/server/health/index.d.ts.map +1 -1
- package/dist/server/health/index.js.map +1 -1
- package/dist/server/links/index.browser.js +2 -0
- package/dist/server/links/index.browser.js.map +1 -1
- package/dist/server/links/index.d.ts +63 -67
- package/dist/server/links/index.d.ts.map +1 -1
- package/dist/server/links/index.js +2 -0
- package/dist/server/links/index.js.map +1 -1
- package/dist/server/metrics/index.d.ts +5 -7
- package/dist/server/metrics/index.d.ts.map +1 -1
- package/dist/server/metrics/index.js.map +1 -1
- package/dist/server/proxy/index.d.ts +3 -5
- package/dist/server/proxy/index.d.ts.map +1 -1
- package/dist/server/proxy/index.js.map +1 -1
- package/dist/server/rate-limit/index.d.ts +10 -13
- package/dist/server/rate-limit/index.d.ts.map +1 -1
- package/dist/server/rate-limit/index.js.map +1 -1
- package/dist/server/static/index.d.ts +3 -5
- package/dist/server/static/index.d.ts.map +1 -1
- package/dist/server/static/index.js.map +1 -1
- package/dist/server/swagger/index.d.ts +5 -8
- package/dist/server/swagger/index.d.ts.map +1 -1
- package/dist/server/swagger/index.js.map +1 -1
- package/dist/sms/index.d.ts +3 -5
- package/dist/sms/index.d.ts.map +1 -1
- package/dist/sms/index.js.map +1 -1
- package/dist/system/index.browser.js.map +1 -1
- package/dist/system/index.d.ts +2 -4
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.workerd.js.map +1 -1
- package/dist/topic/core/index.d.ts +4 -6
- package/dist/topic/core/index.d.ts.map +1 -1
- package/dist/topic/core/index.js.map +1 -1
- package/dist/topic/redis/index.d.ts +5 -8
- package/dist/topic/redis/index.d.ts.map +1 -1
- package/dist/topic/redis/index.js.map +1 -1
- package/package.json +45 -22
- package/src/api/audits/__tests__/AuditService.spec.ts +18 -110
- package/src/api/audits/controllers/AdminAuditController.ts +14 -0
- package/src/api/audits/services/AuditService.ts +21 -88
- package/src/api/files/__tests__/FileService.spec.ts +207 -2
- package/src/api/files/index.ts +3 -0
- package/src/api/files/schemas/fileCreatorSummarySchema.ts +22 -0
- package/src/api/files/schemas/fileResourceSchema.ts +10 -1
- package/src/api/files/services/FileService.ts +170 -72
- package/src/api/jobs/__tests__/$job.spec.ts +24 -1
- package/src/api/jobs/index.ts +4 -3
- package/src/api/jobs/primitives/$job.ts +7 -3
- package/src/api/jobs/providers/DirectJobDispatcher.ts +17 -36
- package/src/api/jobs/providers/JobProvider.ts +53 -24
- package/src/api/jobs/schemas/jobConfigAtom.ts +1 -1
- package/src/api/jobs/schemas/jobExecutionResourceSchema.ts +4 -1
- package/src/api/keys/schemas/adminApiKeyResourceSchema.ts +3 -1
- package/src/api/parameters/__tests__/$parameter.spec.ts +19 -2
- package/src/api/parameters/audits/ParameterAudits.ts +17 -0
- package/src/api/parameters/controllers/AdminParameterController.ts +95 -19
- package/src/api/parameters/index.ts +3 -0
- package/src/api/parameters/schemas/activateParameterBodySchema.ts +3 -3
- package/src/api/parameters/schemas/createParameterVersionBodySchema.ts +3 -2
- package/src/api/parameters/schemas/parameterCreatorSummarySchema.ts +25 -0
- package/src/api/parameters/schemas/parameterResponseSchema.ts +5 -0
- package/src/api/parameters/schemas/rollbackParameterBodySchema.ts +4 -2
- package/src/api/parameters/services/ParameterProvider.ts +69 -6
- package/src/api/subscriptions/jobs/SubscriptionJobs.ts +1 -1
- package/src/api/users/__tests__/AdminSessionController.spec.ts +37 -0
- package/src/api/users/audits/SessionAudits.ts +33 -0
- package/src/api/users/audits/UserAudits.ts +19 -43
- package/src/api/users/controllers/AdminUserController.ts +66 -1
- package/src/api/users/entities/sessions.ts +6 -0
- package/src/api/users/entities/users.ts +2 -0
- package/src/api/users/index.ts +9 -1
- package/src/api/users/primitives/$realm.ts +3 -0
- package/src/api/users/schemas/sessionResourceSchema.ts +16 -0
- package/src/api/users/schemas/updateUserSchema.ts +1 -8
- package/src/api/users/schemas/userQuerySchema.ts +7 -0
- package/src/api/users/services/CredentialService.ts +15 -6
- package/src/api/users/services/IdentityService.ts +2 -1
- package/src/api/users/services/RegistrationService.ts +2 -1
- package/src/api/users/services/SessionCrudService.ts +19 -2
- package/src/api/users/services/SessionService.ts +39 -19
- package/src/api/users/services/UserService.ts +106 -8
- package/src/background/__tests__/BackgroundTaskProvider.spec.ts +96 -0
- package/src/background/index.ts +37 -0
- package/src/background/index.workerd.ts +28 -0
- package/src/background/providers/BackgroundTaskProvider.ts +70 -0
- package/src/background/providers/WorkerdBackgroundTaskProvider.ts +43 -0
- package/src/bucket/__tests__/$bucket.spec.ts +18 -0
- package/src/bucket/__tests__/LocalFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/MemoryFileStorageProvider.spec.ts +5 -0
- package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +23 -4
- package/src/bucket/__tests__/shared.ts +30 -0
- package/src/bucket/index.ts +5 -5
- package/src/bucket/index.workerd.ts +11 -4
- package/src/bucket/primitives/$bucket.ts +27 -0
- package/src/bucket/providers/FileStorageProvider.ts +13 -0
- package/src/bucket/providers/LocalFileStorageProvider.ts +17 -1
- package/src/bucket/providers/MemoryFileStorageProvider.ts +7 -0
- package/src/bucket/providers/{CloudflareR2Provider.ts → R2FileStorageProvider.ts} +10 -1
- package/src/bucket/providers/{NodeS3BucketProvider.ts → S3FileStorageProvider.ts} +27 -5
- package/src/cli/core/__tests__/BuildDockerTask.spec.ts +25 -1
- package/src/cli/core/__tests__/init.spec.ts +0 -219
- package/src/cli/core/commands/__tests__/BuildCommand.spec.ts +43 -0
- package/src/cli/core/commands/build.ts +108 -30
- package/src/cli/core/commands/init.ts +0 -12
- package/src/cli/core/commands/pack.ts +133 -0
- package/src/cli/core/index.ts +3 -0
- package/src/cli/core/providers/ViteDevServerProvider.ts +40 -16
- package/src/cli/core/services/PackageManagerUtils.ts +0 -16
- package/src/cli/core/services/ProjectScaffolder.ts +29 -291
- package/src/cli/core/tasks/BuildCloudflareTask.ts +353 -47
- package/src/cli/core/tasks/BuildDockerTask.ts +33 -3
- package/src/cli/core/tasks/BuildTask.ts +34 -0
- package/src/cli/core/templates/apiIndexTs.ts +1 -22
- package/src/cli/core/templates/mainCss.ts +0 -1
- package/src/cli/core/templates/webAppRouterTs.ts +0 -99
- package/src/cli/core/templates/webIndexTs.ts +1 -22
- package/src/cli/platform/__tests__/SecretsCommand.spec.ts +5 -3
- package/src/cli/platform/commands/SecretsCommand.ts +8 -6
- package/src/cli/platform/commands/platform.ts +192 -46
- package/src/cli/platform/index.ts +12 -52
- package/src/cli/{platform → platform-lib}/__tests__/CloudflareAdapter.spec.ts +426 -169
- package/src/cli/{platform → platform-lib}/__tests__/NamingService.spec.ts +91 -4
- package/src/cli/{platform → platform-lib}/__tests__/VercelAdapter.spec.ts +56 -85
- package/src/cli/{platform → platform-lib}/adapters/CloudflareAdapter.ts +402 -165
- package/src/cli/{platform → platform-lib}/adapters/PlatformAdapter.ts +62 -35
- package/src/cli/{platform → platform-lib}/adapters/VercelAdapter.ts +6 -10
- package/src/cli/{platform → platform-lib}/atoms/platformOptions.ts +34 -1
- package/src/cli/platform-lib/index.ts +67 -0
- package/src/cli/platform-lib/services/NamingService.ts +136 -0
- package/src/cli/{platform → platform-lib}/services/PlatformInspector.ts +60 -13
- package/src/cli/{platform → platform-lib}/services/PlatformOrchestrator.ts +54 -43
- package/src/cli/{platform → platform-lib}/services/WranglerApi.ts +4 -2
- package/src/command/__tests__/Runner.spec.ts +20 -0
- package/src/command/helpers/EnvUtils.ts +19 -3
- package/src/command/helpers/Runner.ts +12 -2
- package/src/command/providers/CliProvider.ts +34 -1
- package/src/{containers → container}/core/__tests__/$container.spec.ts +5 -5
- package/src/{containers → container}/core/index.ts +4 -4
- package/src/{containers → container}/core/index.workerd.ts +19 -3
- package/src/{containers → container}/core/primitives/$container.ts +1 -1
- package/src/{containers → container}/core/providers/CloudflareContainerProvider.ts +17 -19
- package/src/{containers → container}/core/providers/ContainerProvider.ts +16 -2
- package/src/{containers → container}/core/providers/MockContainerProvider.ts +1 -1
- package/src/core/Alepha.ts +49 -1
- package/src/core/__tests__/$env.spec.ts +42 -0
- package/src/core/__tests__/dump.spec.ts +47 -0
- package/src/email/cloudflare/__tests__/CloudflareEmailProvider.spec.ts +42 -10
- package/src/email/cloudflare/index.ts +14 -5
- package/src/email/cloudflare/providers/CloudflareEmailProvider.ts +54 -9
- package/src/logger/__tests__/Logger.spec.ts +55 -0
- package/src/logger/index.ts +13 -0
- package/src/logger/services/Logger.ts +31 -1
- package/src/orm/__tests__/orm-showcase-tests.ts +27 -0
- package/src/orm/__tests__/orm-showcase.spec.ts +12 -0
- package/src/orm/core/interfaces/PgQuery.ts +4 -1
- package/src/orm/core/services/Repository.ts +27 -11
- package/src/react/auth/hooks/useAuth.ts +10 -5
- package/src/react/core/__tests__/useQuery.browser.spec.tsx +25 -0
- package/src/react/core/hooks/useAction.ts +14 -3
- package/src/react/core/hooks/useQuery.ts +24 -4
- package/src/react/i18n/components/Translate.tsx +47 -0
- package/src/react/i18n/index.ts +2 -0
- package/src/react/intro/components/GettingStartedAdminSlide.tsx +2 -2
- package/src/react/router/__tests__/$page.spec.tsx +3 -2
- package/src/react/router/__tests__/page-can.spec.ts +18 -13
- package/src/react/router/hooks/useQueryParams.ts +114 -14
- package/src/react/router/primitives/$page.ts +85 -4
- package/src/react/router/providers/ReactBrowserRouterProvider.ts +3 -7
- package/src/react/router/providers/ReactServerProvider.ts +4 -13
- package/src/react/ui/services/SchemaControl.ts +3 -4
- package/src/server/core/providers/ServerMultipartProvider.ts +19 -0
- package/src/server/links/providers/LinkProvider.ts +10 -0
- package/dist/containers/core/index.d.ts.map +0 -1
- package/dist/containers/core/index.js.map +0 -1
- package/dist/containers/core/index.workerd.js.map +0 -1
- package/src/cli/core/templates/componentsJsonTs.ts +0 -39
- package/src/cli/core/templates/saasAdminLayoutTsx.ts +0 -77
- package/src/cli/core/templates/saasAdminPagesTsx.ts +0 -26
- package/src/cli/core/templates/saasAuthLayoutTsx.ts +0 -22
- package/src/cli/core/templates/saasAuthPagesTsx.ts +0 -62
- package/src/cli/core/templates/saasRealmProviderTs.ts +0 -52
- package/src/cli/platform/services/NamingService.ts +0 -54
- /package/dist/orm/core/{chunk-o8xxKEmq.js → chunk-B4FMCO8f.js} +0 -0
- /package/dist/react/testing/{chunk-6Ep1yQYe.js → chunk-BpyX8vjI.js} +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/GitHubSecretStore.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformCacheProvider.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformInspector.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/PlatformOrchestrator.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/SecretFilterService.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/__tests__/detectResources.spec.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/GitHubSecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/MemorySecretStore.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/PlatformCacheProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/providers/SecretStoreProvider.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/cloudflare.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/platform.ts +0 -0
- /package/src/cli/{platform → platform-lib}/schemas/vercel.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/CloudflareApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/SecretFilterService.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelApi.ts +0 -0
- /package/src/cli/{platform → platform-lib}/services/VercelCli.ts +0 -0
- /package/src/{containers → container}/core/interfaces/ContainerOptions.ts +0 -0
- /package/src/{containers → container}/core/providers/NodeContainerProvider.ts +0 -0
package/dist/cli/core/index.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import * as _$alepha from "alepha";
|
|
2
1
|
import { Alepha, Static } from "alepha";
|
|
3
|
-
import * as _$alepha_command0 from "alepha/command";
|
|
4
2
|
import { CliProvider, EnvUtils, Runner, RunnerMethod } from "alepha/command";
|
|
5
|
-
import * as _$alepha_logger0 from "alepha/logger";
|
|
6
3
|
import { ConsoleColorProvider } from "alepha/logger";
|
|
7
4
|
import { FileSystemProvider, ShellProvider } from "alepha/system";
|
|
8
5
|
import { BrotliOptions, ZlibOptions, brotliCompress, gzip } from "node:zlib";
|
|
9
6
|
import { spawn } from "node:child_process";
|
|
10
|
-
import * as
|
|
11
|
-
import * as _$vite from "vite";
|
|
7
|
+
import * as vite from "vite";
|
|
12
8
|
import { Logger, Plugin, ViteDevServer } from "vite";
|
|
13
9
|
import { DatabaseProvider } from "alepha/orm";
|
|
14
10
|
|
|
@@ -30,6 +26,7 @@ declare const alephaPackageJson: {
|
|
|
30
26
|
files: string[];
|
|
31
27
|
dependencies: {
|
|
32
28
|
"@biomejs/biome": string;
|
|
29
|
+
"@cloudflare/containers": string;
|
|
33
30
|
"@redis/client": string;
|
|
34
31
|
"@vitejs/plugin-react": string;
|
|
35
32
|
dayjs: string;
|
|
@@ -175,6 +172,12 @@ declare const alephaPackageJson: {
|
|
|
175
172
|
import: string;
|
|
176
173
|
default: string;
|
|
177
174
|
};
|
|
175
|
+
"./background": {
|
|
176
|
+
types: string;
|
|
177
|
+
workerd: string;
|
|
178
|
+
import: string;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
178
181
|
"./batch": {
|
|
179
182
|
types: string;
|
|
180
183
|
import: string;
|
|
@@ -237,6 +240,11 @@ declare const alephaPackageJson: {
|
|
|
237
240
|
import: string;
|
|
238
241
|
default: string;
|
|
239
242
|
};
|
|
243
|
+
"./cli/platform-lib": {
|
|
244
|
+
types: string;
|
|
245
|
+
import: string;
|
|
246
|
+
default: string;
|
|
247
|
+
};
|
|
240
248
|
"./cli/vendor": {
|
|
241
249
|
types: string;
|
|
242
250
|
import: string;
|
|
@@ -247,7 +255,7 @@ declare const alephaPackageJson: {
|
|
|
247
255
|
import: string;
|
|
248
256
|
default: string;
|
|
249
257
|
};
|
|
250
|
-
"./
|
|
258
|
+
"./container": {
|
|
251
259
|
types: string;
|
|
252
260
|
workerd: string;
|
|
253
261
|
import: string;
|
|
@@ -599,6 +607,12 @@ declare const alephaPackageJson: {
|
|
|
599
607
|
import: string;
|
|
600
608
|
default: string;
|
|
601
609
|
};
|
|
610
|
+
"./background": {
|
|
611
|
+
types: string;
|
|
612
|
+
workerd: string;
|
|
613
|
+
import: string;
|
|
614
|
+
default: string;
|
|
615
|
+
};
|
|
602
616
|
"./batch": {
|
|
603
617
|
types: string;
|
|
604
618
|
import: string;
|
|
@@ -661,6 +675,11 @@ declare const alephaPackageJson: {
|
|
|
661
675
|
import: string;
|
|
662
676
|
default: string;
|
|
663
677
|
};
|
|
678
|
+
"./cli/platform-lib": {
|
|
679
|
+
types: string;
|
|
680
|
+
import: string;
|
|
681
|
+
default: string;
|
|
682
|
+
};
|
|
664
683
|
"./cli/vendor": {
|
|
665
684
|
types: string;
|
|
666
685
|
import: string;
|
|
@@ -671,7 +690,7 @@ declare const alephaPackageJson: {
|
|
|
671
690
|
import: string;
|
|
672
691
|
default: string;
|
|
673
692
|
};
|
|
674
|
-
"./
|
|
693
|
+
"./container": {
|
|
675
694
|
types: string;
|
|
676
695
|
workerd: string;
|
|
677
696
|
import: string;
|
|
@@ -947,10 +966,10 @@ declare const alephaPackageJson: {
|
|
|
947
966
|
declare const version: string;
|
|
948
967
|
//#endregion
|
|
949
968
|
//#region ../../src/cli/core/atoms/appEntryOptions.d.ts
|
|
950
|
-
declare const appEntryOptions:
|
|
951
|
-
server:
|
|
952
|
-
browser:
|
|
953
|
-
style:
|
|
969
|
+
declare const appEntryOptions: import("alepha").Atom<import("typebox").TObject<{
|
|
970
|
+
server: import("typebox").TOptional<import("typebox").TString>;
|
|
971
|
+
browser: import("typebox").TOptional<import("typebox").TString>;
|
|
972
|
+
style: import("typebox").TOptional<import("typebox").TString>;
|
|
954
973
|
}>, "alepha.cli.appEntry.options">;
|
|
955
974
|
type AppEntryOptions = Static<typeof appEntryOptions.schema>;
|
|
956
975
|
//#endregion
|
|
@@ -977,14 +996,14 @@ type BuildRuntime = "node" | "bun" | "workerd";
|
|
|
977
996
|
* Defines the available build configuration options with their defaults.
|
|
978
997
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
979
998
|
*/
|
|
980
|
-
declare const buildOptions:
|
|
999
|
+
declare const buildOptions: import("alepha").Atom<import("typebox").TObject<{
|
|
981
1000
|
/**
|
|
982
1001
|
* Generate build stats report.
|
|
983
1002
|
*
|
|
984
1003
|
* - `true` - Generate a static HTML report
|
|
985
1004
|
* - `"json"` - Generate a JSON report
|
|
986
1005
|
*/
|
|
987
|
-
stats:
|
|
1006
|
+
stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
|
|
988
1007
|
/**
|
|
989
1008
|
* Deployment target for the build output.
|
|
990
1009
|
*
|
|
@@ -992,7 +1011,7 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
992
1011
|
* - `vercel` - Generate Vercel deployment configuration (forces node runtime)
|
|
993
1012
|
* - `cloudflare` - Generate Cloudflare Workers configuration (forces workerd runtime)
|
|
994
1013
|
*/
|
|
995
|
-
target:
|
|
1014
|
+
target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static">>;
|
|
996
1015
|
/**
|
|
997
1016
|
* JavaScript runtime for the build output.
|
|
998
1017
|
*
|
|
@@ -1004,23 +1023,23 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1004
1023
|
* - `cloudflare` always uses `workerd`
|
|
1005
1024
|
* - `vercel` always uses `node`
|
|
1006
1025
|
*/
|
|
1007
|
-
runtime:
|
|
1026
|
+
runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
|
|
1008
1027
|
/**
|
|
1009
1028
|
* Output directory configuration.
|
|
1010
1029
|
*/
|
|
1011
|
-
output:
|
|
1030
|
+
output: import("typebox").TOptional<import("typebox").TObject<{
|
|
1012
1031
|
/**
|
|
1013
1032
|
* Root dist directory.
|
|
1014
1033
|
*
|
|
1015
1034
|
* @default "dist"
|
|
1016
1035
|
*/
|
|
1017
|
-
dist:
|
|
1036
|
+
dist: import("typebox").TOptional<import("typebox").TString>;
|
|
1018
1037
|
/**
|
|
1019
1038
|
* Public/client subdirectory.
|
|
1020
1039
|
*
|
|
1021
1040
|
* @default "public"
|
|
1022
1041
|
*/
|
|
1023
|
-
public:
|
|
1042
|
+
public: import("typebox").TOptional<import("typebox").TString>;
|
|
1024
1043
|
}>>;
|
|
1025
1044
|
/**
|
|
1026
1045
|
* Vercel-specific deployment configuration.
|
|
@@ -1028,14 +1047,14 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1028
1047
|
* Note: Set `target: "vercel"` to enable Vercel deployment.
|
|
1029
1048
|
* This object is only for additional configuration.
|
|
1030
1049
|
*/
|
|
1031
|
-
vercel:
|
|
1032
|
-
projectName:
|
|
1033
|
-
orgId:
|
|
1034
|
-
projectId:
|
|
1035
|
-
config:
|
|
1036
|
-
crons:
|
|
1037
|
-
path:
|
|
1038
|
-
schedule:
|
|
1050
|
+
vercel: import("typebox").TOptional<import("typebox").TObject<{
|
|
1051
|
+
projectName: import("typebox").TOptional<import("typebox").TString>;
|
|
1052
|
+
orgId: import("typebox").TOptional<import("typebox").TString>;
|
|
1053
|
+
projectId: import("typebox").TOptional<import("typebox").TString>;
|
|
1054
|
+
config: import("typebox").TOptional<import("typebox").TObject<{
|
|
1055
|
+
crons: import("typebox").TOptional<import("typebox").TArray<import("typebox").TObject<{
|
|
1056
|
+
path: import("typebox").TString;
|
|
1057
|
+
schedule: import("typebox").TString;
|
|
1039
1058
|
}>>>;
|
|
1040
1059
|
}>>;
|
|
1041
1060
|
}>>;
|
|
@@ -1045,8 +1064,8 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1045
1064
|
* Note: Set `target: "cloudflare"` to enable Cloudflare deployment.
|
|
1046
1065
|
* This object is only for additional configuration.
|
|
1047
1066
|
*/
|
|
1048
|
-
cloudflare:
|
|
1049
|
-
config:
|
|
1067
|
+
cloudflare: import("typebox").TOptional<import("typebox").TObject<{
|
|
1068
|
+
config: import("typebox").TOptional<import("typebox").TRecord<string, import("typebox").TAny>>;
|
|
1050
1069
|
}>>;
|
|
1051
1070
|
/**
|
|
1052
1071
|
* Docker-specific deployment configuration.
|
|
@@ -1054,21 +1073,21 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1054
1073
|
* Note: Set `target: "docker"` to enable Docker deployment.
|
|
1055
1074
|
* This object is only for additional configuration.
|
|
1056
1075
|
*/
|
|
1057
|
-
docker:
|
|
1076
|
+
docker: import("typebox").TOptional<import("typebox").TObject<{
|
|
1058
1077
|
/**
|
|
1059
1078
|
* Base image for the Dockerfile (FROM instruction).
|
|
1060
1079
|
*
|
|
1061
1080
|
* @default "node:24-alpine" for node runtime
|
|
1062
1081
|
* @default "oven/bun:alpine" for bun runtime
|
|
1063
1082
|
*/
|
|
1064
|
-
from:
|
|
1083
|
+
from: import("typebox").TOptional<import("typebox").TString>;
|
|
1065
1084
|
/**
|
|
1066
1085
|
* Command to run in the Docker container.
|
|
1067
1086
|
*
|
|
1068
1087
|
* @default "node" for node runtime
|
|
1069
1088
|
* @default "bun" for bun runtime
|
|
1070
1089
|
*/
|
|
1071
|
-
command:
|
|
1090
|
+
command: import("typebox").TOptional<import("typebox").TString>;
|
|
1072
1091
|
/**
|
|
1073
1092
|
* Extra packages to install globally in the generated image.
|
|
1074
1093
|
*
|
|
@@ -1082,11 +1101,11 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1082
1101
|
*
|
|
1083
1102
|
* @example install: ["wrangler"]
|
|
1084
1103
|
*/
|
|
1085
|
-
install:
|
|
1104
|
+
install: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
1086
1105
|
/**
|
|
1087
1106
|
* Docker build options (used when --image flag is passed).
|
|
1088
1107
|
*/
|
|
1089
|
-
image:
|
|
1108
|
+
image: import("typebox").TOptional<import("typebox").TObject<{
|
|
1090
1109
|
/**
|
|
1091
1110
|
* Default image tag (name without version).
|
|
1092
1111
|
*
|
|
@@ -1098,13 +1117,13 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1098
1117
|
* @example "myproject/myapp"
|
|
1099
1118
|
* @example "ghcr.io/myorg/myapp"
|
|
1100
1119
|
*/
|
|
1101
|
-
tag:
|
|
1120
|
+
tag: import("typebox").TString;
|
|
1102
1121
|
/**
|
|
1103
1122
|
* Additional arguments to pass to `docker build`.
|
|
1104
1123
|
*
|
|
1105
1124
|
* @example '--platform linux/amd64 --no-cache'
|
|
1106
1125
|
*/
|
|
1107
|
-
args:
|
|
1126
|
+
args: import("typebox").TOptional<import("typebox").TString>;
|
|
1108
1127
|
/**
|
|
1109
1128
|
* Auto-add OCI standard labels (revision, created, version).
|
|
1110
1129
|
*
|
|
@@ -1113,7 +1132,7 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1113
1132
|
* - org.opencontainers.image.created (build timestamp)
|
|
1114
1133
|
* - org.opencontainers.image.version (from image tag)
|
|
1115
1134
|
*/
|
|
1116
|
-
oci:
|
|
1135
|
+
oci: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1117
1136
|
}>>;
|
|
1118
1137
|
/**
|
|
1119
1138
|
* Compile the server entry to a single static binary using
|
|
@@ -1130,7 +1149,7 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1130
1149
|
*
|
|
1131
1150
|
* Pass `true` to enable with defaults, or an object to override.
|
|
1132
1151
|
*/
|
|
1133
|
-
compile:
|
|
1152
|
+
compile: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TObject<{
|
|
1134
1153
|
/**
|
|
1135
1154
|
* Bun target triple, e.g. `bun-linux-x64-musl`,
|
|
1136
1155
|
* `bun-linux-arm64-musl`, or `bun-linux-x64-modern-musl`
|
|
@@ -1138,19 +1157,19 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1138
1157
|
*
|
|
1139
1158
|
* @default derived from host arch — always linux-musl.
|
|
1140
1159
|
*/
|
|
1141
|
-
target:
|
|
1160
|
+
target: import("typebox").TOptional<import("typebox").TString>;
|
|
1142
1161
|
/**
|
|
1143
1162
|
* Base image for the generated Dockerfile.
|
|
1144
1163
|
*
|
|
1145
1164
|
* @default "gcr.io/distroless/static-debian12"
|
|
1146
1165
|
*/
|
|
1147
|
-
base:
|
|
1166
|
+
base: import("typebox").TOptional<import("typebox").TString>;
|
|
1148
1167
|
/**
|
|
1149
1168
|
* Minify the compiled output.
|
|
1150
1169
|
*
|
|
1151
1170
|
* @default true
|
|
1152
1171
|
*/
|
|
1153
|
-
minify:
|
|
1172
|
+
minify: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1154
1173
|
}>]>>;
|
|
1155
1174
|
}>>;
|
|
1156
1175
|
/**
|
|
@@ -1158,7 +1177,7 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1158
1177
|
*
|
|
1159
1178
|
* Note: Set `target: "static"` to enable static site generation.
|
|
1160
1179
|
*/
|
|
1161
|
-
static:
|
|
1180
|
+
static: import("typebox").TOptional<import("typebox").TObject<{
|
|
1162
1181
|
/**
|
|
1163
1182
|
* Surge domain for deployment.
|
|
1164
1183
|
*
|
|
@@ -1168,7 +1187,7 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1168
1187
|
* @example "my-app.surge.sh"
|
|
1169
1188
|
* @example "my-custom-domain.com"
|
|
1170
1189
|
*/
|
|
1171
|
-
domain:
|
|
1190
|
+
domain: import("typebox").TOptional<import("typebox").TString>;
|
|
1172
1191
|
}>>;
|
|
1173
1192
|
/**
|
|
1174
1193
|
* PWA (Progressive Web App) configuration.
|
|
@@ -1176,29 +1195,29 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1176
1195
|
* Generates a web app manifest and enables installability.
|
|
1177
1196
|
* Requires a client-side bundle (React).
|
|
1178
1197
|
*/
|
|
1179
|
-
pwa:
|
|
1198
|
+
pwa: import("typebox").TOptional<import("typebox").TObject<{
|
|
1180
1199
|
/**
|
|
1181
1200
|
* Full application name displayed on the splash screen
|
|
1182
1201
|
* and in the OS app switcher.
|
|
1183
1202
|
*/
|
|
1184
|
-
name:
|
|
1203
|
+
name: import("typebox").TString;
|
|
1185
1204
|
/**
|
|
1186
1205
|
* Short name displayed on the home screen icon.
|
|
1187
1206
|
* Falls back to `name` if omitted.
|
|
1188
1207
|
*/
|
|
1189
|
-
shortName:
|
|
1208
|
+
shortName: import("typebox").TOptional<import("typebox").TString>;
|
|
1190
1209
|
/**
|
|
1191
1210
|
* Theme color used for the browser toolbar and OS chrome.
|
|
1192
1211
|
*
|
|
1193
1212
|
* @default "#ffffff"
|
|
1194
1213
|
*/
|
|
1195
|
-
themeColor:
|
|
1214
|
+
themeColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1196
1215
|
/**
|
|
1197
1216
|
* Background color for the splash screen.
|
|
1198
1217
|
*
|
|
1199
1218
|
* @default "#ffffff"
|
|
1200
1219
|
*/
|
|
1201
|
-
backgroundColor:
|
|
1220
|
+
backgroundColor: import("typebox").TOptional<import("typebox").TString>;
|
|
1202
1221
|
/**
|
|
1203
1222
|
* Display mode for the installed PWA.
|
|
1204
1223
|
*
|
|
@@ -1209,22 +1228,22 @@ declare const buildOptions: _$alepha.Atom<_$typebox.TObject<{
|
|
|
1209
1228
|
*
|
|
1210
1229
|
* @default "standalone"
|
|
1211
1230
|
*/
|
|
1212
|
-
display:
|
|
1231
|
+
display: import("typebox").TOptional<import("typebox").TUnsafe<"browser" | "standalone" | "fullscreen" | "minimal-ui">>;
|
|
1213
1232
|
/**
|
|
1214
1233
|
* Enable offline support via service worker.
|
|
1215
1234
|
*
|
|
1216
1235
|
* TODO: Not yet implemented.
|
|
1217
1236
|
*/
|
|
1218
|
-
offline:
|
|
1237
|
+
offline: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1219
1238
|
}>>;
|
|
1220
1239
|
/**
|
|
1221
1240
|
* Sitemap generation configuration.
|
|
1222
1241
|
*/
|
|
1223
|
-
sitemap:
|
|
1242
|
+
sitemap: import("typebox").TOptional<import("typebox").TObject<{
|
|
1224
1243
|
/**
|
|
1225
1244
|
* Base URL for sitemap entries.
|
|
1226
1245
|
*/
|
|
1227
|
-
hostname:
|
|
1246
|
+
hostname: import("typebox").TString;
|
|
1228
1247
|
}>>;
|
|
1229
1248
|
}>, "alepha.cli.build.options">;
|
|
1230
1249
|
/**
|
|
@@ -1250,12 +1269,12 @@ declare const DEFAULT_IGNORE: string[];
|
|
|
1250
1269
|
* });
|
|
1251
1270
|
* ```
|
|
1252
1271
|
*/
|
|
1253
|
-
declare const changelogOptions:
|
|
1272
|
+
declare const changelogOptions: import("alepha").Atom<import("typebox").TObject<{
|
|
1254
1273
|
/**
|
|
1255
1274
|
* Scopes to ignore (e.g., "project", "release", "chore").
|
|
1256
1275
|
* Commits like `feat(chore): ...` will be excluded from changelog.
|
|
1257
1276
|
*/
|
|
1258
|
-
ignore:
|
|
1277
|
+
ignore: import("typebox").TOptional<import("typebox").TArray<import("typebox").TString>>;
|
|
1259
1278
|
}>, "alepha.cli.changelog.options">;
|
|
1260
1279
|
type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
1261
1280
|
//#endregion
|
|
@@ -1266,11 +1285,11 @@ type ChangelogOptions = Static<typeof changelogOptions.schema>;
|
|
|
1266
1285
|
* Defines the available dev configuration options with their defaults.
|
|
1267
1286
|
* Options can be overridden via alepha.config.ts or CLI flags.
|
|
1268
1287
|
*/
|
|
1269
|
-
declare const devOptions:
|
|
1288
|
+
declare const devOptions: import("alepha").Atom<import("typebox").TObject<{
|
|
1270
1289
|
/**
|
|
1271
1290
|
* Disable Vite React plugin.
|
|
1272
1291
|
*/
|
|
1273
|
-
noViteReactPlugin:
|
|
1292
|
+
noViteReactPlugin: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
1274
1293
|
}>, "alepha.cli.dev.options">;
|
|
1275
1294
|
/**
|
|
1276
1295
|
* Type for dev options.
|
|
@@ -1351,7 +1370,7 @@ declare class ViteUtils {
|
|
|
1351
1370
|
/**
|
|
1352
1371
|
* Lazy-load Vite (with rolldown-vite fallback).
|
|
1353
1372
|
*/
|
|
1354
|
-
importVite(): Promise<typeof
|
|
1373
|
+
importVite(): Promise<typeof import("vite")>;
|
|
1355
1374
|
/**
|
|
1356
1375
|
* Lazy-load @vitejs/plugin-react (optional).
|
|
1357
1376
|
*/
|
|
@@ -1381,8 +1400,8 @@ declare class ViteUtils {
|
|
|
1381
1400
|
/**
|
|
1382
1401
|
* We need to close the Vite dev server after build is done.
|
|
1383
1402
|
*/
|
|
1384
|
-
protected onReady:
|
|
1385
|
-
protected onStop:
|
|
1403
|
+
protected onReady: import("alepha").HookPrimitive<"ready">;
|
|
1404
|
+
protected onStop: import("alepha").HookPrimitive<"stop">;
|
|
1386
1405
|
runAlepha(opts: {
|
|
1387
1406
|
entry: AppEntry;
|
|
1388
1407
|
mode: "production" | "development";
|
|
@@ -1411,7 +1430,7 @@ declare class ViteBuildProvider {
|
|
|
1411
1430
|
* - Environment loading
|
|
1412
1431
|
*/
|
|
1413
1432
|
declare class AlephaCliUtils {
|
|
1414
|
-
protected readonly log:
|
|
1433
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
1415
1434
|
protected readonly fs: FileSystemProvider;
|
|
1416
1435
|
protected readonly envUtils: EnvUtils;
|
|
1417
1436
|
protected readonly boot: AppEntryProvider;
|
|
@@ -1514,7 +1533,7 @@ interface WorkspaceContext {
|
|
|
1514
1533
|
* - Bun
|
|
1515
1534
|
*/
|
|
1516
1535
|
declare class PackageManagerUtils {
|
|
1517
|
-
protected readonly log:
|
|
1536
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
1518
1537
|
protected readonly fs: FileSystemProvider;
|
|
1519
1538
|
protected readonly alepha: Alepha;
|
|
1520
1539
|
/**
|
|
@@ -1592,12 +1611,6 @@ interface DependencyModes {
|
|
|
1592
1611
|
react?: boolean;
|
|
1593
1612
|
expo?: boolean;
|
|
1594
1613
|
tailwind?: boolean;
|
|
1595
|
-
shadcn?: boolean;
|
|
1596
|
-
/**
|
|
1597
|
-
* SaaS starter: implies `shadcn` + adds the alepha auth + admin registry
|
|
1598
|
-
* components on top via `shadcn add @alepha/...`.
|
|
1599
|
-
*/
|
|
1600
|
-
saas?: boolean;
|
|
1601
1614
|
/**
|
|
1602
1615
|
* Whether the project is a workspace package inside a monorepo.
|
|
1603
1616
|
*/
|
|
@@ -1615,10 +1628,9 @@ interface DependencyModes {
|
|
|
1615
1628
|
* - Example code (HelloController, Home component)
|
|
1616
1629
|
*/
|
|
1617
1630
|
declare class ProjectScaffolder {
|
|
1618
|
-
protected readonly log:
|
|
1631
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
1619
1632
|
protected readonly colors: ConsoleColorProvider;
|
|
1620
1633
|
protected readonly fs: FileSystemProvider;
|
|
1621
|
-
protected readonly shell: ShellProvider;
|
|
1622
1634
|
protected readonly pm: PackageManagerUtils;
|
|
1623
1635
|
protected readonly utils: AlephaCliUtils;
|
|
1624
1636
|
/**
|
|
@@ -1640,13 +1652,7 @@ declare class ProjectScaffolder {
|
|
|
1640
1652
|
*/
|
|
1641
1653
|
checkWorkspace?: boolean;
|
|
1642
1654
|
packageJson?: boolean | DependencyModes;
|
|
1643
|
-
|
|
1644
|
-
* `true` writes a tsconfig.json if one doesn't already exist (parent
|
|
1645
|
-
* dirs included). `"local"` writes one when none exists *in this
|
|
1646
|
-
* directory* — used by shadcn since the CLI reads the local
|
|
1647
|
-
* tsconfig directly for import-alias detection.
|
|
1648
|
-
*/
|
|
1649
|
-
tsconfigJson?: boolean | "local";
|
|
1655
|
+
tsconfigJson?: boolean;
|
|
1650
1656
|
biomeJson?: boolean;
|
|
1651
1657
|
editorconfig?: boolean;
|
|
1652
1658
|
agentMd?: boolean;
|
|
@@ -1658,7 +1664,6 @@ declare class ProjectScaffolder {
|
|
|
1658
1664
|
}): Promise<void>;
|
|
1659
1665
|
ensureTsConfig(root: string, opts?: {
|
|
1660
1666
|
force?: boolean;
|
|
1661
|
-
localOnly?: boolean;
|
|
1662
1667
|
}): Promise<void>;
|
|
1663
1668
|
ensureBiomeConfig(root: string, opts?: {
|
|
1664
1669
|
force?: boolean;
|
|
@@ -1716,16 +1721,8 @@ declare class ProjectScaffolder {
|
|
|
1716
1721
|
* - src/api/controllers/HelloController.ts (example controller)
|
|
1717
1722
|
*/
|
|
1718
1723
|
ensureApiProject(root: string, opts?: {
|
|
1719
|
-
saas?: boolean;
|
|
1720
1724
|
force?: boolean;
|
|
1721
1725
|
}): Promise<void>;
|
|
1722
|
-
/**
|
|
1723
|
-
* Best-effort lookup for the developer's git email — seeded as
|
|
1724
|
-
* `ADMIN_EMAILS` in the SaaS project's `.env`. Returns undefined if git
|
|
1725
|
-
* isn't available or `user.email` isn't configured; the caller then falls
|
|
1726
|
-
* back to the neutral `admin@alepha.dev`.
|
|
1727
|
-
*/
|
|
1728
|
-
protected detectGitEmail(): Promise<string | undefined>;
|
|
1729
1726
|
/**
|
|
1730
1727
|
* Ensure web/React project structure exists.
|
|
1731
1728
|
*
|
|
@@ -1737,8 +1734,6 @@ declare class ProjectScaffolder {
|
|
|
1737
1734
|
ensureWebProject(root: string, opts?: {
|
|
1738
1735
|
api?: boolean;
|
|
1739
1736
|
tailwind?: boolean;
|
|
1740
|
-
shadcn?: boolean;
|
|
1741
|
-
saas?: boolean;
|
|
1742
1737
|
force?: boolean;
|
|
1743
1738
|
}): Promise<void>;
|
|
1744
1739
|
/**
|
|
@@ -1762,9 +1757,7 @@ declare class ProjectScaffolder {
|
|
|
1762
1757
|
pm?: "yarn" | "npm" | "pnpm" | "bun";
|
|
1763
1758
|
api?: boolean;
|
|
1764
1759
|
react?: boolean;
|
|
1765
|
-
tailwind?: boolean;
|
|
1766
|
-
shadcn?: boolean | string; /** boolean toggle, or a string preset id (default `b0` when bare). */
|
|
1767
|
-
saas?: boolean | string;
|
|
1760
|
+
tailwind?: boolean;
|
|
1768
1761
|
force?: boolean;
|
|
1769
1762
|
};
|
|
1770
1763
|
args?: string;
|
|
@@ -1779,6 +1772,171 @@ declare class ProjectScaffolder {
|
|
|
1779
1772
|
protected existsInParents(root: string, filename: string): Promise<boolean>;
|
|
1780
1773
|
}
|
|
1781
1774
|
//#endregion
|
|
1775
|
+
//#region ../../src/cli/core/tasks/BuildCloudflareTask.d.ts
|
|
1776
|
+
interface WranglerConfig {
|
|
1777
|
+
[key: string]: any;
|
|
1778
|
+
}
|
|
1779
|
+
/**
|
|
1780
|
+
* Build-time snapshot describing what the workspace needs at deploy
|
|
1781
|
+
* time. Written to `dist/manifest.json` alongside `wrangler.jsonc`.
|
|
1782
|
+
*
|
|
1783
|
+
* Lets `alepha platform up --prebuilt` skip the Vite-based
|
|
1784
|
+
* introspection step on the deploy side — and lets Alepha Rocket skip
|
|
1785
|
+
* the workspace's runtime `npm install` because no app source is
|
|
1786
|
+
* booted at deploy time. The manifest captures the bits of primitive
|
|
1787
|
+
* data that the deploy steps (provision, secrets, hooks) need to
|
|
1788
|
+
* know.
|
|
1789
|
+
*/
|
|
1790
|
+
interface BuildManifest {
|
|
1791
|
+
version: 1;
|
|
1792
|
+
project: string;
|
|
1793
|
+
/**
|
|
1794
|
+
* Default environment when `--env` is omitted at deploy time.
|
|
1795
|
+
* Captured from `platformOptions.default` (defaults to `"production"`).
|
|
1796
|
+
*/
|
|
1797
|
+
defaultEnv: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Multi-tenancy mode (`none` | `optional` | `required`). Captured from
|
|
1800
|
+
* `platformOptions.tenancy` so the prebuilt deploy side (Rocket) can
|
|
1801
|
+
* validate `--tenant` without re-evaluating `alepha.config.ts`.
|
|
1802
|
+
*/
|
|
1803
|
+
tenancy?: "none" | "optional" | "required";
|
|
1804
|
+
/**
|
|
1805
|
+
* Resolved `platform({ environments: ... })` map. Captured at build
|
|
1806
|
+
* time from the workspace's `alepha.config.ts` so the deploy side
|
|
1807
|
+
* doesn't need to re-evaluate the config. Each value is the same
|
|
1808
|
+
* `EnvironmentConfig` shape consumed by the orchestrator (adapter,
|
|
1809
|
+
* domain, zone, jurisdiction, accountId).
|
|
1810
|
+
*/
|
|
1811
|
+
environments: Record<string, {
|
|
1812
|
+
adapter: "cloudflare" | "vercel";
|
|
1813
|
+
domain?: string;
|
|
1814
|
+
zone?: string;
|
|
1815
|
+
jurisdiction?: "eu" | "fedramp";
|
|
1816
|
+
accountId?: string;
|
|
1817
|
+
}>;
|
|
1818
|
+
resources: {
|
|
1819
|
+
hasDatabase: boolean;
|
|
1820
|
+
hasBucket: boolean;
|
|
1821
|
+
hasKV: boolean;
|
|
1822
|
+
hasQueue: boolean;
|
|
1823
|
+
hasCron: boolean;
|
|
1824
|
+
};
|
|
1825
|
+
/**
|
|
1826
|
+
* All distinct cron expressions registered by `$scheduler`
|
|
1827
|
+
* primitives. Empty when `hasCron` is false.
|
|
1828
|
+
*/
|
|
1829
|
+
crons: string[];
|
|
1830
|
+
/**
|
|
1831
|
+
* `$container()` descriptors — image, port, lifecycle settings.
|
|
1832
|
+
* Used both to populate Cloudflare Containers bindings in
|
|
1833
|
+
* wrangler.jsonc and (in future) to know which images Rocket should
|
|
1834
|
+
* pull on the deploy side.
|
|
1835
|
+
*/
|
|
1836
|
+
containers: Array<{
|
|
1837
|
+
name: string;
|
|
1838
|
+
className: string;
|
|
1839
|
+
image: string;
|
|
1840
|
+
port: number;
|
|
1841
|
+
sleepAfter: string;
|
|
1842
|
+
instanceType: string;
|
|
1843
|
+
maxInstances: number;
|
|
1844
|
+
}>;
|
|
1845
|
+
/**
|
|
1846
|
+
* Every env var the app declares via `$env`, captured from
|
|
1847
|
+
* `alepha.dump().env` at build time. The deploy `secrets` step uses this
|
|
1848
|
+
* as the worker-secret allowlist (minus build/binding vars) so CI can
|
|
1849
|
+
* deliver secrets straight from `process.env` without a `.env` file —
|
|
1850
|
+
* `platform.secrets.keys` overrides it when set. Empty when introspection
|
|
1851
|
+
* was unavailable (older artifacts / prebuilt mode).
|
|
1852
|
+
*/
|
|
1853
|
+
env: string[];
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Generate Cloudflare Workers deployment configuration.
|
|
1857
|
+
*
|
|
1858
|
+
* Creates:
|
|
1859
|
+
* - wrangler.jsonc with worker configuration
|
|
1860
|
+
* - main.cloudflare.js entry point for Cloudflare Workers
|
|
1861
|
+
*/
|
|
1862
|
+
declare class BuildCloudflareTask extends BuildTask {
|
|
1863
|
+
protected readonly fs: FileSystemProvider;
|
|
1864
|
+
protected readonly viteUtils: ViteUtils;
|
|
1865
|
+
protected readonly warningComment: string;
|
|
1866
|
+
run(ctx: BuildTaskContext): Promise<void>;
|
|
1867
|
+
protected generateCloudflare(ctx: BuildTaskContext, distDir: string): Promise<void>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Write `dist/manifest.json` — a build-time snapshot of everything
|
|
1870
|
+
* downstream tooling needs to know about the app without re-booting
|
|
1871
|
+
* it. Used by `alepha platform up --prebuilt` (and Alepha Rocket) so
|
|
1872
|
+
* the deploy path can skip the Vite-based introspection step and the
|
|
1873
|
+
* workspace's runtime npm install.
|
|
1874
|
+
*/
|
|
1875
|
+
protected writeManifest(ctx: BuildTaskContext, root: string, distDir: string, name: string, containers: ContainerDescriptor[]): Promise<void>;
|
|
1876
|
+
protected enhanceDomain(wrangler: WranglerConfig): void;
|
|
1877
|
+
protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1878
|
+
protected discoverCrons(ctx: BuildTaskContext): string[];
|
|
1879
|
+
protected enhanceDatabase(wrangler: WranglerConfig): void;
|
|
1880
|
+
protected static readonly D1_BINDING = "DB";
|
|
1881
|
+
protected enhanceD1(wrangler: WranglerConfig): void;
|
|
1882
|
+
protected enhanceHyperdrive(wrangler: WranglerConfig): void;
|
|
1883
|
+
protected enhanceR2(wrangler: WranglerConfig): void;
|
|
1884
|
+
protected enhanceKV(wrangler: WranglerConfig): void;
|
|
1885
|
+
protected enhanceQueue(wrangler: WranglerConfig): void;
|
|
1886
|
+
protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1887
|
+
/**
|
|
1888
|
+
* Discover `$container` primitives and emit the matching Cloudflare
|
|
1889
|
+
* Containers bindings, Durable Object bindings, and migrations into
|
|
1890
|
+
* `wrangler.jsonc`. The DO class declarations are added later, when
|
|
1891
|
+
* the worker entry point is written.
|
|
1892
|
+
*
|
|
1893
|
+
* Returns the list of container descriptors so
|
|
1894
|
+
* `writeWorkerEntryPoint` can emit `export class <NAME> extends
|
|
1895
|
+
* Container` declarations referencing them.
|
|
1896
|
+
*/
|
|
1897
|
+
protected discoverContainers(ctx: BuildTaskContext): ContainerDescriptor[];
|
|
1898
|
+
/**
|
|
1899
|
+
* Expand a short image ref (e.g. `alepha-rocket:0.1.0`) into the
|
|
1900
|
+
* fully-qualified `registry.cloudflare.com/<account>/<image>:<tag>`
|
|
1901
|
+
* URL that wrangler validates at deploy time.
|
|
1902
|
+
*
|
|
1903
|
+
* Cloudflare Containers only pulls from `registry.cloudflare.com`;
|
|
1904
|
+
* wrangler accepts either a Dockerfile path or a fully-qualified
|
|
1905
|
+
* registry URL in the `image` field — not a bare DockerHub-style
|
|
1906
|
+
* name. We let `$container({ image })` callers write the short
|
|
1907
|
+
* form (it matches what `wrangler containers push <local>` accepts
|
|
1908
|
+
* + matches the local docker tag) and rewrite to the CF registry
|
|
1909
|
+
* URL here.
|
|
1910
|
+
*
|
|
1911
|
+
* Pass-through cases:
|
|
1912
|
+
* - already a full URL: starts with `registry.cloudflare.com/`
|
|
1913
|
+
* or contains a scheme/`://`
|
|
1914
|
+
* - looks like a Dockerfile path: starts with `./` or `/`
|
|
1915
|
+
*/
|
|
1916
|
+
protected resolveContainerImage(image: string): string;
|
|
1917
|
+
protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
|
|
1918
|
+
protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
|
|
1919
|
+
}
|
|
1920
|
+
interface ContainerDescriptor {
|
|
1921
|
+
name: string;
|
|
1922
|
+
className: string;
|
|
1923
|
+
image: string;
|
|
1924
|
+
port: number;
|
|
1925
|
+
sleepAfter: string;
|
|
1926
|
+
/**
|
|
1927
|
+
* Cloudflare Containers instance class.
|
|
1928
|
+
*
|
|
1929
|
+
* `dev` is the wrangler-pre-GA name; the platform accepts it but
|
|
1930
|
+
* emits a deprecation warning telling you to use `lite`. We
|
|
1931
|
+
* silently translate at write time (see `discoverContainers`
|
|
1932
|
+
* default + `enhanceContainers` write) so older
|
|
1933
|
+
* `$container({ instanceType: "dev" })` declarations keep working.
|
|
1934
|
+
*/
|
|
1935
|
+
instanceType: "dev" | "lite" | "basic" | "standard";
|
|
1936
|
+
maxInstances: number;
|
|
1937
|
+
envVars?: Record<string, string>;
|
|
1938
|
+
}
|
|
1939
|
+
//#endregion
|
|
1782
1940
|
//#region ../../src/cli/core/tasks/BuildTask.d.ts
|
|
1783
1941
|
interface BuildTaskContext {
|
|
1784
1942
|
/**
|
|
@@ -1814,6 +1972,34 @@ interface BuildTaskContext {
|
|
|
1814
1972
|
* Raw CLI flags passed through from the command.
|
|
1815
1973
|
* Tasks can read flags relevant to their domain.
|
|
1816
1974
|
*/
|
|
1975
|
+
/**
|
|
1976
|
+
* Build-time snapshot of primitive data, read from
|
|
1977
|
+
* `dist/manifest.json`. Populated only in `--prebuilt` mode when a
|
|
1978
|
+
* previous build's manifest is present — lets BuildCloudflareTask
|
|
1979
|
+
* regenerate `wrangler.jsonc` without re-booting the workspace.
|
|
1980
|
+
* `null` when introspection (`ctx.alepha`) is the source of truth.
|
|
1981
|
+
*/
|
|
1982
|
+
manifest: BuildManifest | null;
|
|
1983
|
+
/**
|
|
1984
|
+
* Resolved `platform({ default, environments, ... })` options from
|
|
1985
|
+
* the workspace's `alepha.config.ts`. Populated by `BuildCommand`
|
|
1986
|
+
* from the CLI's Alepha instance (where alepha.config.ts ran) —
|
|
1987
|
+
* BuildCloudflareTask uses these to write the corresponding fields
|
|
1988
|
+
* into `dist/manifest.json` so the deploy side doesn't need to
|
|
1989
|
+
* re-load `alepha.config.ts`. `null` when no platform options were
|
|
1990
|
+
* declared.
|
|
1991
|
+
*/
|
|
1992
|
+
platformOptions: {
|
|
1993
|
+
default?: string;
|
|
1994
|
+
tenancy?: "none" | "optional" | "required";
|
|
1995
|
+
environments?: Record<string, {
|
|
1996
|
+
adapter: "cloudflare" | "vercel";
|
|
1997
|
+
domain?: string;
|
|
1998
|
+
zone?: string;
|
|
1999
|
+
jurisdiction?: "eu" | "fedramp";
|
|
2000
|
+
accountId?: string;
|
|
2001
|
+
}>;
|
|
2002
|
+
} | null;
|
|
1817
2003
|
flags?: {
|
|
1818
2004
|
image?: boolean | string;
|
|
1819
2005
|
/**
|
|
@@ -1874,57 +2060,6 @@ declare class BuildClientTask extends BuildTask {
|
|
|
1874
2060
|
postBuildCleanUpForIndexHtml(dist?: string): Promise<void>;
|
|
1875
2061
|
}
|
|
1876
2062
|
//#endregion
|
|
1877
|
-
//#region ../../src/cli/core/tasks/BuildCloudflareTask.d.ts
|
|
1878
|
-
interface WranglerConfig {
|
|
1879
|
-
[key: string]: any;
|
|
1880
|
-
}
|
|
1881
|
-
/**
|
|
1882
|
-
* Generate Cloudflare Workers deployment configuration.
|
|
1883
|
-
*
|
|
1884
|
-
* Creates:
|
|
1885
|
-
* - wrangler.jsonc with worker configuration
|
|
1886
|
-
* - main.cloudflare.js entry point for Cloudflare Workers
|
|
1887
|
-
*/
|
|
1888
|
-
declare class BuildCloudflareTask extends BuildTask {
|
|
1889
|
-
protected readonly fs: FileSystemProvider;
|
|
1890
|
-
protected readonly viteUtils: ViteUtils;
|
|
1891
|
-
protected readonly warningComment: string;
|
|
1892
|
-
run(ctx: BuildTaskContext): Promise<void>;
|
|
1893
|
-
protected generateCloudflare(ctx: BuildTaskContext, distDir: string): Promise<void>;
|
|
1894
|
-
protected enhanceDomain(wrangler: WranglerConfig): void;
|
|
1895
|
-
protected enhanceCron(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1896
|
-
protected enhanceDatabase(wrangler: WranglerConfig): void;
|
|
1897
|
-
protected static readonly D1_BINDING = "DB";
|
|
1898
|
-
protected enhanceD1(wrangler: WranglerConfig): void;
|
|
1899
|
-
protected enhanceHyperdrive(wrangler: WranglerConfig): void;
|
|
1900
|
-
protected enhanceR2(wrangler: WranglerConfig): void;
|
|
1901
|
-
protected enhanceKV(wrangler: WranglerConfig): void;
|
|
1902
|
-
protected enhanceQueue(wrangler: WranglerConfig): void;
|
|
1903
|
-
protected enhanceEmail(ctx: BuildTaskContext, wrangler: WranglerConfig): void;
|
|
1904
|
-
/**
|
|
1905
|
-
* Discover `$container` primitives and emit the matching Cloudflare
|
|
1906
|
-
* Containers bindings, Durable Object bindings, and migrations into
|
|
1907
|
-
* `wrangler.jsonc`. The DO class declarations are added later, when
|
|
1908
|
-
* the worker entry point is written.
|
|
1909
|
-
*
|
|
1910
|
-
* Returns the list of container descriptors so
|
|
1911
|
-
* `writeWorkerEntryPoint` can emit `export class <NAME> extends
|
|
1912
|
-
* Container` declarations referencing them.
|
|
1913
|
-
*/
|
|
1914
|
-
protected enhanceContainers(ctx: BuildTaskContext, wrangler: WranglerConfig): ContainerDescriptor[];
|
|
1915
|
-
protected writeWorkerEntryPoint(root: string, distDir: string, containers?: ContainerDescriptor[]): Promise<void>;
|
|
1916
|
-
}
|
|
1917
|
-
interface ContainerDescriptor {
|
|
1918
|
-
name: string;
|
|
1919
|
-
className: string;
|
|
1920
|
-
image: string;
|
|
1921
|
-
port: number;
|
|
1922
|
-
sleepAfter: string;
|
|
1923
|
-
instanceType: "dev" | "basic" | "standard";
|
|
1924
|
-
maxInstances: number;
|
|
1925
|
-
envVars?: Record<string, string>;
|
|
1926
|
-
}
|
|
1927
|
-
//#endregion
|
|
1928
2063
|
//#region ../../src/cli/core/tasks/BuildCompressTask.d.ts
|
|
1929
2064
|
interface CompressOptions {
|
|
1930
2065
|
/**
|
|
@@ -2028,6 +2163,14 @@ declare class BuildDockerTask extends BuildTask {
|
|
|
2028
2163
|
*/
|
|
2029
2164
|
protected cleanupPreCompileArtifacts(root: string, distDir: string): Promise<void>;
|
|
2030
2165
|
protected copyMigrations(root: string, distDir: string): Promise<boolean>;
|
|
2166
|
+
/**
|
|
2167
|
+
* Whether the produced `dist/package.json` declares any runtime
|
|
2168
|
+
* dependencies. Alepha apps normally bundle everything into the
|
|
2169
|
+
* server entry via Vite, leaving `dependencies: {}` — in which case
|
|
2170
|
+
* the generated Dockerfile's `RUN npm install` is wasted work
|
|
2171
|
+
* (and emits deprecation noise). Skip the line when empty.
|
|
2172
|
+
*/
|
|
2173
|
+
protected hasRuntimeDeps(root: string, distDir: string): Promise<boolean>;
|
|
2031
2174
|
protected writeDockerfile(root: string, distDir: string, opts: {
|
|
2032
2175
|
compile: ResolvedCompile | null;
|
|
2033
2176
|
standard: {
|
|
@@ -2035,6 +2178,7 @@ declare class BuildDockerTask extends BuildTask {
|
|
|
2035
2178
|
command: string;
|
|
2036
2179
|
};
|
|
2037
2180
|
hasMigrations: boolean;
|
|
2181
|
+
hasDeps: boolean;
|
|
2038
2182
|
install: string[];
|
|
2039
2183
|
}): Promise<void>;
|
|
2040
2184
|
protected buildDockerImage(ctx: BuildTaskContext, distDir: string): Promise<void>;
|
|
@@ -2088,7 +2232,7 @@ declare class BuildPwaTask extends BuildTask {
|
|
|
2088
2232
|
*/
|
|
2089
2233
|
declare class BuildServerTask extends BuildTask {
|
|
2090
2234
|
protected readonly alepha: Alepha;
|
|
2091
|
-
protected readonly log:
|
|
2235
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2092
2236
|
protected readonly fs: FileSystemProvider;
|
|
2093
2237
|
protected readonly viteUtils: ViteUtils;
|
|
2094
2238
|
run(ctx: BuildTaskContext): Promise<void>;
|
|
@@ -2110,7 +2254,7 @@ declare class BuildServerTask extends BuildTask {
|
|
|
2110
2254
|
protected generateExternals(distDir: string, externals: string[]): Promise<void>;
|
|
2111
2255
|
protected loadJsonFile(path: string): Promise<any>;
|
|
2112
2256
|
protected stripClientManifest(manifest: Record<string, any> | undefined): Record<string, any> | undefined;
|
|
2113
|
-
protected extractEntryFromBundle(root: string, entry: string, result:
|
|
2257
|
+
protected extractEntryFromBundle(root: string, entry: string, result: vite.Rollup.RollupOutput | vite.Rollup.RollupOutput[] | vite.Rollup.RollupWatcher): string;
|
|
2114
2258
|
}
|
|
2115
2259
|
//#endregion
|
|
2116
2260
|
//#region ../../src/cli/core/tasks/BuildSitemapTask.d.ts
|
|
@@ -2215,7 +2359,7 @@ declare class BuildVercelTask extends BuildTask {
|
|
|
2215
2359
|
//#region ../../src/cli/core/commands/build.d.ts
|
|
2216
2360
|
declare class BuildCommand {
|
|
2217
2361
|
protected readonly alepha: Alepha;
|
|
2218
|
-
protected readonly log:
|
|
2362
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2219
2363
|
protected readonly utils: AlephaCliUtils;
|
|
2220
2364
|
protected readonly pm: PackageManagerUtils;
|
|
2221
2365
|
protected readonly scaffolder: ProjectScaffolder;
|
|
@@ -2279,6 +2423,20 @@ declare class BuildCommand {
|
|
|
2279
2423
|
* Order matters — compress must be last.
|
|
2280
2424
|
*/
|
|
2281
2425
|
protected readonly pipeline: (BuildVercelTask | BuildClientTask | BuildServerTask | BuildAssetsTask | BuildSitemapTask | BuildPwaTask | BuildPrerenderTask | BuildCloudflareTask | BuildDockerTask | BuildStaticTask | BuildCompressTask)[];
|
|
2426
|
+
/**
|
|
2427
|
+
* Value aliases accepted for `--target`.
|
|
2428
|
+
*
|
|
2429
|
+
* These let the CLI accept short forms (e.g. `--target cf`) that are
|
|
2430
|
+
* canonicalized to a real {@link BuildTarget} before they flow into the
|
|
2431
|
+
* pipeline. The enum in `flags.target` must also list the alias so it
|
|
2432
|
+
* passes schema validation.
|
|
2433
|
+
*/
|
|
2434
|
+
protected readonly targetAliases: Record<string, BuildTarget>;
|
|
2435
|
+
/**
|
|
2436
|
+
* Canonicalize a raw `--target` value, mapping any known alias
|
|
2437
|
+
* (e.g. `cf` → `cloudflare`) to its real {@link BuildTarget}.
|
|
2438
|
+
*/
|
|
2439
|
+
protected resolveTarget(target: string | undefined): BuildTarget | undefined;
|
|
2282
2440
|
/**
|
|
2283
2441
|
* Resolve the effective runtime based on target and explicit runtime flag.
|
|
2284
2442
|
*
|
|
@@ -2290,15 +2448,21 @@ declare class BuildCommand {
|
|
|
2290
2448
|
* @throws {AlephaError} If an incompatible runtime is specified for a target
|
|
2291
2449
|
*/
|
|
2292
2450
|
protected resolveRuntime(target: BuildTarget | undefined, runtime: BuildRuntime | undefined): BuildRuntime;
|
|
2293
|
-
readonly build:
|
|
2294
|
-
stats:
|
|
2295
|
-
target:
|
|
2296
|
-
runtime:
|
|
2297
|
-
image:
|
|
2298
|
-
compile:
|
|
2299
|
-
prebuilt:
|
|
2300
|
-
sitemap:
|
|
2301
|
-
}>,
|
|
2451
|
+
readonly build: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2452
|
+
stats: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TUnsafe<"json">]>>;
|
|
2453
|
+
target: import("typebox").TOptional<import("typebox").TUnsafe<"bare" | "docker" | "vercel" | "cloudflare" | "static" | "cf">>;
|
|
2454
|
+
runtime: import("typebox").TOptional<import("typebox").TUnsafe<"node" | "bun" | "workerd">>;
|
|
2455
|
+
image: import("typebox").TOptional<import("typebox").TUnion<[import("typebox").TBoolean, import("typebox").TString]>>;
|
|
2456
|
+
compile: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2457
|
+
prebuilt: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2458
|
+
sitemap: import("typebox").TOptional<import("typebox").TString>;
|
|
2459
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Read `dist/manifest.json` produced by a previous `alepha build`.
|
|
2462
|
+
* Returns null when absent or unparseable — caller falls back to the
|
|
2463
|
+
* Vite-introspection path.
|
|
2464
|
+
*/
|
|
2465
|
+
protected loadManifest(root: string): Promise<BuildManifest | null>;
|
|
2302
2466
|
}
|
|
2303
2467
|
//#endregion
|
|
2304
2468
|
//#region ../../src/cli/core/commands/clean.d.ts
|
|
@@ -2306,12 +2470,12 @@ declare class CleanCommand {
|
|
|
2306
2470
|
/**
|
|
2307
2471
|
* Clean the project, removing the "dist" directory
|
|
2308
2472
|
*/
|
|
2309
|
-
readonly clean:
|
|
2473
|
+
readonly clean: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2310
2474
|
}
|
|
2311
2475
|
//#endregion
|
|
2312
2476
|
//#region ../../src/cli/core/commands/db.d.ts
|
|
2313
2477
|
declare class DbCommand {
|
|
2314
|
-
protected readonly log:
|
|
2478
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2315
2479
|
protected readonly fs: FileSystemProvider;
|
|
2316
2480
|
protected readonly utils: AlephaCliUtils;
|
|
2317
2481
|
protected readonly pm: PackageManagerUtils;
|
|
@@ -2321,44 +2485,44 @@ declare class DbCommand {
|
|
|
2321
2485
|
/**
|
|
2322
2486
|
* Check if database migrations are up to date.
|
|
2323
2487
|
*/
|
|
2324
|
-
protected readonly check:
|
|
2325
|
-
provider:
|
|
2326
|
-
}>,
|
|
2488
|
+
protected readonly check: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2489
|
+
provider: import("typebox").TOptional<import("typebox").TString>;
|
|
2490
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2327
2491
|
/**
|
|
2328
2492
|
* Generate database migration files
|
|
2329
2493
|
*/
|
|
2330
|
-
protected readonly create:
|
|
2331
|
-
provider:
|
|
2332
|
-
custom:
|
|
2333
|
-
name:
|
|
2334
|
-
}>,
|
|
2494
|
+
protected readonly create: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2495
|
+
provider: import("typebox").TOptional<import("typebox").TString>;
|
|
2496
|
+
custom: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2497
|
+
name: import("typebox").TOptional<import("typebox").TString>;
|
|
2498
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2335
2499
|
/**
|
|
2336
2500
|
* Push database schema changes directly to the database
|
|
2337
2501
|
*/
|
|
2338
|
-
protected readonly push:
|
|
2339
|
-
provider:
|
|
2340
|
-
dryRun:
|
|
2341
|
-
}>,
|
|
2502
|
+
protected readonly push: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2503
|
+
provider: import("typebox").TOptional<import("typebox").TString>;
|
|
2504
|
+
dryRun: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2505
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2342
2506
|
/**
|
|
2343
2507
|
* Apply pending database migrations
|
|
2344
2508
|
*/
|
|
2345
|
-
protected readonly apply:
|
|
2346
|
-
provider:
|
|
2347
|
-
}>,
|
|
2509
|
+
protected readonly apply: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2510
|
+
provider: import("typebox").TOptional<import("typebox").TString>;
|
|
2511
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2348
2512
|
/**
|
|
2349
2513
|
* Launch Drizzle Studio database browser
|
|
2350
2514
|
*/
|
|
2351
|
-
protected readonly studio:
|
|
2352
|
-
provider:
|
|
2353
|
-
}>,
|
|
2515
|
+
protected readonly studio: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2516
|
+
provider: import("typebox").TOptional<import("typebox").TString>;
|
|
2517
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2354
2518
|
/**
|
|
2355
2519
|
* Parent command for migration operations.
|
|
2356
2520
|
*/
|
|
2357
|
-
protected readonly migrations:
|
|
2521
|
+
protected readonly migrations: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2358
2522
|
/**
|
|
2359
2523
|
* Parent command for database operations.
|
|
2360
2524
|
*/
|
|
2361
|
-
readonly db:
|
|
2525
|
+
readonly db: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2362
2526
|
/**
|
|
2363
2527
|
* Run a drizzle-kit command for all database providers in an Alepha instance.
|
|
2364
2528
|
*/
|
|
@@ -2433,7 +2597,7 @@ type OnAlephaLoadedHook = (alepha: Alepha, server: ViteDevServer) => Promise<voi
|
|
|
2433
2597
|
* - Shared changes → Reload Alepha → Let HMR propagate
|
|
2434
2598
|
*/
|
|
2435
2599
|
declare class ViteDevServerProvider {
|
|
2436
|
-
protected readonly log:
|
|
2600
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2437
2601
|
protected readonly fs: FileSystemProvider;
|
|
2438
2602
|
protected readonly colors: ConsoleColorProvider;
|
|
2439
2603
|
protected readonly viteUtils: ViteUtils;
|
|
@@ -2553,7 +2717,17 @@ declare class ViteDevServerProvider {
|
|
|
2553
2717
|
*/
|
|
2554
2718
|
protected setupEnvironment(): Promise<void>;
|
|
2555
2719
|
/**
|
|
2556
|
-
* Invalidate modules and all their importers
|
|
2720
|
+
* Invalidate modules and all their importers, across both client and
|
|
2721
|
+
* SSR module graphs.
|
|
2722
|
+
*
|
|
2723
|
+
* Vite registers a file under multiple module ids (one per query
|
|
2724
|
+
* variant — e.g. `?v=…`, `?import` and the bare path), and `getModuleById`
|
|
2725
|
+
* only matches one. For workspace-linked source files (`@alepha/ui/...`)
|
|
2726
|
+
* the SSR-graph entry is keyed by the absolute path while the client
|
|
2727
|
+
* may use the package-qualified id. `getModulesByFile` returns every
|
|
2728
|
+
* variant Vite knows about for a given absolute path — invalidating
|
|
2729
|
+
* each catches both halves of the dual graph and prevents stale SSR
|
|
2730
|
+
* compiled exports from surviving across edits.
|
|
2557
2731
|
*/
|
|
2558
2732
|
protected invalidateModulesWithImporters(changedFiles: Set<string>): void;
|
|
2559
2733
|
/**
|
|
@@ -2588,7 +2762,7 @@ declare class ViteDevServerProvider {
|
|
|
2588
2762
|
//#endregion
|
|
2589
2763
|
//#region ../../src/cli/core/commands/dev.d.ts
|
|
2590
2764
|
declare class DevCommand {
|
|
2591
|
-
protected readonly log:
|
|
2765
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2592
2766
|
protected readonly fs: FileSystemProvider;
|
|
2593
2767
|
protected readonly utils: AlephaCliUtils;
|
|
2594
2768
|
protected readonly pm: PackageManagerUtils;
|
|
@@ -2605,9 +2779,9 @@ declare class DevCommand {
|
|
|
2605
2779
|
* When run from a workspace root (with apps/ directory), spawns all apps in parallel.
|
|
2606
2780
|
* When run from an app directory, starts a single Vite dev server.
|
|
2607
2781
|
*/
|
|
2608
|
-
readonly dev:
|
|
2609
|
-
only:
|
|
2610
|
-
}>,
|
|
2782
|
+
readonly dev: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2783
|
+
only: import("typebox").TOptional<import("typebox").TString>;
|
|
2784
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2611
2785
|
/**
|
|
2612
2786
|
* Discover apps in the workspace root.
|
|
2613
2787
|
*
|
|
@@ -2658,7 +2832,7 @@ declare class DevCommand {
|
|
|
2658
2832
|
* - `feat(cli): add command` → included
|
|
2659
2833
|
*/
|
|
2660
2834
|
declare class GitMessageParser {
|
|
2661
|
-
protected readonly log:
|
|
2835
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2662
2836
|
/**
|
|
2663
2837
|
* Parse a git commit line into a structured Commit object.
|
|
2664
2838
|
*
|
|
@@ -2702,7 +2876,7 @@ interface ChangelogEntry {
|
|
|
2702
2876
|
* - `alepha gen changelog | tee -a CHANGELOG.md` - Append to file
|
|
2703
2877
|
*/
|
|
2704
2878
|
declare class ChangelogCommand {
|
|
2705
|
-
protected readonly log:
|
|
2879
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2706
2880
|
protected readonly git: GitProvider;
|
|
2707
2881
|
protected readonly parser: GitMessageParser;
|
|
2708
2882
|
protected readonly config: Readonly<{
|
|
@@ -2730,30 +2904,30 @@ declare class ChangelogCommand {
|
|
|
2730
2904
|
* Get the latest version tag.
|
|
2731
2905
|
*/
|
|
2732
2906
|
protected getLatestTag(git: (cmd: string) => Promise<string>): Promise<string | null>;
|
|
2733
|
-
readonly command:
|
|
2907
|
+
readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2734
2908
|
/**
|
|
2735
2909
|
* Show changes from this ref (tag, commit, branch).
|
|
2736
2910
|
* Defaults to the latest version tag.
|
|
2737
2911
|
* Example: --from=1.0.0
|
|
2738
2912
|
*/
|
|
2739
|
-
from:
|
|
2913
|
+
from: import("typebox").TOptional<import("typebox").TString>;
|
|
2740
2914
|
/**
|
|
2741
2915
|
* Show changes up to this ref (tag, commit, branch).
|
|
2742
2916
|
* Defaults to HEAD.
|
|
2743
2917
|
* Example: --to=main
|
|
2744
2918
|
*/
|
|
2745
|
-
to:
|
|
2746
|
-
}>,
|
|
2919
|
+
to: import("typebox").TOptional<import("typebox").TString>;
|
|
2920
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2747
2921
|
}
|
|
2748
2922
|
//#endregion
|
|
2749
2923
|
//#region ../../src/cli/core/commands/gen/openapi.d.ts
|
|
2750
2924
|
declare class OpenApiCommand {
|
|
2751
|
-
protected readonly log:
|
|
2925
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2752
2926
|
protected readonly utils: AlephaCliUtils;
|
|
2753
2927
|
protected readonly fs: FileSystemProvider;
|
|
2754
|
-
readonly command:
|
|
2755
|
-
out:
|
|
2756
|
-
}>,
|
|
2928
|
+
readonly command: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2929
|
+
out: import("typebox").TOptional<import("typebox").TString>;
|
|
2930
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2757
2931
|
}
|
|
2758
2932
|
//#endregion
|
|
2759
2933
|
//#region ../../src/cli/core/commands/init.d.ts
|
|
@@ -2763,46 +2937,75 @@ declare class InitCommand {
|
|
|
2763
2937
|
* Ensure the project has the necessary Alepha configuration files.
|
|
2764
2938
|
* Add the correct dependencies to package.json and install them.
|
|
2765
2939
|
*/
|
|
2766
|
-
readonly init:
|
|
2767
|
-
pm:
|
|
2768
|
-
api:
|
|
2769
|
-
react:
|
|
2770
|
-
tailwind:
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
force: _$typebox.TOptional<_$typebox.TBoolean>;
|
|
2774
|
-
}>, _$typebox.TOptional<_$typebox.TString>, _$typebox.TObject<_$typebox.TProperties>>;
|
|
2940
|
+
readonly init: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2941
|
+
pm: import("typebox").TOptional<import("typebox").TUnsafe<"bun" | "yarn" | "npm" | "pnpm">>;
|
|
2942
|
+
api: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2943
|
+
react: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2944
|
+
tailwind: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2945
|
+
force: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2946
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2775
2947
|
}
|
|
2776
2948
|
//#endregion
|
|
2777
2949
|
//#region ../../src/cli/core/commands/lint.d.ts
|
|
2778
2950
|
declare class LintCommand {
|
|
2779
2951
|
protected readonly utils: AlephaCliUtils;
|
|
2780
2952
|
protected readonly scaffolder: ProjectScaffolder;
|
|
2781
|
-
readonly lint:
|
|
2953
|
+
readonly lint: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2954
|
+
}
|
|
2955
|
+
//#endregion
|
|
2956
|
+
//#region ../../src/cli/core/commands/pack.d.ts
|
|
2957
|
+
/**
|
|
2958
|
+
* Pack the workspace into a deployable `tar.gz`.
|
|
2959
|
+
*
|
|
2960
|
+
* The tar contains everything a remote runner (Alepha Rocket, or any
|
|
2961
|
+
* `alepha platform <op> --prebuilt` consumer) needs to deploy the app:
|
|
2962
|
+
*
|
|
2963
|
+
* dist/ pre-built output (incl. manifest.json)
|
|
2964
|
+
* migrations/ SQL files (if present)
|
|
2965
|
+
*
|
|
2966
|
+
* No source, no `alepha.config.ts`, no `package.json` — the deploy
|
|
2967
|
+
* side reads everything from `dist/manifest.json` and never touches
|
|
2968
|
+
* source. Excludes: `node_modules`, `.DS_Store`, macOS AppleDouble
|
|
2969
|
+
* (`._*`), `.alepha` build cache, `e2e`, `playwright-report`,
|
|
2970
|
+
* `coverage`.
|
|
2971
|
+
*
|
|
2972
|
+
* Output name: `<project-name>-<tag>.tar.gz` (default tag
|
|
2973
|
+
* "latest"). Project name comes from `package.json.name`. Naming
|
|
2974
|
+
* mirrors Docker tags — same artifact, different tag = different
|
|
2975
|
+
* file.
|
|
2976
|
+
*/
|
|
2977
|
+
declare class PackCommand {
|
|
2978
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2979
|
+
protected readonly fs: FileSystemProvider;
|
|
2980
|
+
protected readonly shell: ShellProvider;
|
|
2981
|
+
readonly pack: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2982
|
+
tag: import("typebox").TOptional<import("typebox").TString>;
|
|
2983
|
+
output: import("typebox").TOptional<import("typebox").TString>;
|
|
2984
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2782
2985
|
}
|
|
2783
2986
|
//#endregion
|
|
2784
2987
|
//#region ../../src/cli/core/commands/root.d.ts
|
|
2785
2988
|
declare class RootCommand {
|
|
2786
|
-
protected readonly log:
|
|
2989
|
+
protected readonly log: import("alepha/logger").Logger;
|
|
2787
2990
|
protected readonly cli: CliProvider;
|
|
2788
2991
|
protected readonly alepha: Alepha;
|
|
2789
2992
|
protected readonly color: ConsoleColorProvider;
|
|
2790
2993
|
/**
|
|
2791
2994
|
* Called when no command is provided
|
|
2792
2995
|
*/
|
|
2793
|
-
readonly root:
|
|
2794
|
-
version:
|
|
2795
|
-
}>,
|
|
2996
|
+
readonly root: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
2997
|
+
version: import("typebox").TOptional<import("typebox").TBoolean>;
|
|
2998
|
+
}>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2796
2999
|
}
|
|
2797
3000
|
//#endregion
|
|
2798
3001
|
//#region ../../src/cli/core/commands/test.d.ts
|
|
2799
3002
|
declare class TestCommand {
|
|
2800
3003
|
protected readonly utils: AlephaCliUtils;
|
|
2801
3004
|
protected readonly scaffolder: ProjectScaffolder;
|
|
2802
|
-
readonly test:
|
|
2803
|
-
config:
|
|
2804
|
-
}>,
|
|
2805
|
-
VITEST_ARGS:
|
|
3005
|
+
readonly test: import("alepha/command").CommandPrimitive<import("typebox").TObject<{
|
|
3006
|
+
config: import("typebox").TOptional<import("typebox").TString>;
|
|
3007
|
+
}>, import("typebox").TOptional<import("typebox").TString>, import("typebox").TObject<{
|
|
3008
|
+
VITEST_ARGS: import("typebox").TOptional<import("typebox").TString>;
|
|
2806
3009
|
}>>;
|
|
2807
3010
|
}
|
|
2808
3011
|
//#endregion
|
|
@@ -2813,7 +3016,7 @@ declare class TypecheckCommand {
|
|
|
2813
3016
|
/**
|
|
2814
3017
|
* Run TypeScript type checking across the codebase with no emit.
|
|
2815
3018
|
*/
|
|
2816
|
-
readonly typecheck:
|
|
3019
|
+
readonly typecheck: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2817
3020
|
}
|
|
2818
3021
|
//#endregion
|
|
2819
3022
|
//#region ../../src/cli/core/commands/verify.d.ts
|
|
@@ -2833,14 +3036,14 @@ declare class VerifyCommand {
|
|
|
2833
3036
|
* - Build the project
|
|
2834
3037
|
* - Clean the project again
|
|
2835
3038
|
*/
|
|
2836
|
-
readonly verify:
|
|
3039
|
+
readonly verify: import("alepha/command").CommandPrimitive<import("typebox").TObject<import("typebox").TProperties>, import("typebox").TSchema, import("typebox").TObject<import("typebox").TProperties>>;
|
|
2837
3040
|
}
|
|
2838
3041
|
//#endregion
|
|
2839
3042
|
//#region ../../src/cli/core/providers/AlephaCliExtensionProvider.d.ts
|
|
2840
3043
|
declare class AlephaCliExtensionProvider {
|
|
2841
3044
|
protected readonly alepha: Alepha;
|
|
2842
3045
|
protected readonly fs: FileSystemProvider;
|
|
2843
|
-
protected readonly onConfigure:
|
|
3046
|
+
protected readonly onConfigure: import("alepha").HookPrimitive<"configure">;
|
|
2844
3047
|
}
|
|
2845
3048
|
//#endregion
|
|
2846
3049
|
//#region ../../src/cli/core/index.d.ts
|
|
@@ -2848,11 +3051,11 @@ declare class AlephaCliExtensionProvider {
|
|
|
2848
3051
|
* Services, providers, and build tasks — no commands.
|
|
2849
3052
|
* Use this module when you need CLI utilities without registering commands.
|
|
2850
3053
|
*/
|
|
2851
|
-
declare const AlephaCliServices:
|
|
3054
|
+
declare const AlephaCliServices: import("alepha").Service<import("alepha").Module>;
|
|
2852
3055
|
/**
|
|
2853
3056
|
* Full CLI module — all services and commands.
|
|
2854
3057
|
*/
|
|
2855
|
-
declare const AlephaCli:
|
|
3058
|
+
declare const AlephaCli: import("alepha").Service<import("alepha").Module>;
|
|
2856
3059
|
//#endregion
|
|
2857
|
-
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,
|
|
3060
|
+
export { AlephaCli, AlephaCliExtensionProvider, AlephaCliServices, AlephaCliUtils, AppEntry, AppEntryOptions, AppEntryProvider, BufferedLogger, BuildAssetsTask, BuildClientTask, BuildCloudflareTask, BuildCommand, BuildCompressTask, BuildDockerTask, BuildManifest, BuildOptions, BuildPrerenderTask, BuildRuntime, BuildServerTask, BuildSitemapTask, BuildStaticTask, BuildTarget, BuildTask, BuildTaskContext, BuildVercelTask, ChangelogCommand, ChangelogOptions, CleanCommand, Commit, CompressOptions, DEFAULT_IGNORE, DbCommand, DependencyModes, DevCommand, DevOptions, DevServerOptions, GitMessageParser, GitProvider, InitCommand, LintCommand, OnAlephaLoadedHook, OpenApiCommand, PackCommand, PackageManagerUtils, PreloadManifest, ProjectScaffolder, RootCommand, TestCommand, TypecheckCommand, VerifyCommand, ViteBuildProvider, ViteDevServerProvider, ViteUtils, WorkspaceContext, alephaPackageJson, appEntryOptions, buildOptions, changelogOptions, devOptions, version };
|
|
2858
3061
|
//# sourceMappingURL=index.d.ts.map
|