@gadicc/loom 1.37.0 → 2.0.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/.loom-source-manifest.json +97 -0
- package/README.md +113 -31
- package/db/databaseTls.js +6 -3
- package/db/databaseUrl.js +3 -2
- package/db/drizzle-config.js +14 -16
- package/db/fixtures.d.ts +1 -3
- package/db/fixtures.js +4 -7
- package/esm/bin/loom.d.ts +2 -1
- package/esm/bin/loom.d.ts.map +1 -1
- package/esm/bin/loom.js +37 -10
- package/esm/bin/loom.js.map +1 -0
- package/esm/mod.d.ts +0 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/mod.js.map +1 -0
- package/esm/src/apiKeys/authorize.d.ts.map +1 -1
- package/esm/src/apiKeys/authorize.js +15 -14
- package/esm/src/apiKeys/authorize.js.map +1 -0
- package/esm/src/apiKeys/betterAuth.d.ts.map +1 -1
- package/esm/src/apiKeys/betterAuth.js +1 -0
- package/esm/src/apiKeys/betterAuth.js.map +1 -0
- package/esm/src/apiKeys/country.d.ts.map +1 -1
- package/esm/src/apiKeys/country.js +1 -0
- package/esm/src/apiKeys/country.js.map +1 -0
- package/esm/src/apiKeys/credentials.d.ts.map +1 -1
- package/esm/src/apiKeys/credentials.js +3 -1
- package/esm/src/apiKeys/credentials.js.map +1 -0
- package/esm/src/apiKeys/fingerprint.d.ts.map +1 -1
- package/esm/src/apiKeys/fingerprint.js +1 -0
- package/esm/src/apiKeys/fingerprint.js.map +1 -0
- package/esm/src/apiKeys/lifecycle.d.ts.map +1 -1
- package/esm/src/apiKeys/lifecycle.js +1 -0
- package/esm/src/apiKeys/lifecycle.js.map +1 -0
- package/esm/src/apiKeys/limits.d.ts.map +1 -1
- package/esm/src/apiKeys/limits.js +10 -10
- package/esm/src/apiKeys/limits.js.map +1 -0
- package/esm/src/apiKeys/mod.d.ts +0 -1
- package/esm/src/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/apiKeys/mod.js +1 -1
- package/esm/src/apiKeys/mod.js.map +1 -0
- package/esm/src/apiKeys/permissions.d.ts.map +1 -1
- package/esm/src/apiKeys/permissions.js +1 -0
- package/esm/src/apiKeys/permissions.js.map +1 -0
- package/esm/src/apiKeys/policy.d.ts.map +1 -1
- package/esm/src/apiKeys/policy.js +1 -0
- package/esm/src/apiKeys/policy.js.map +1 -0
- package/esm/src/apiKeys/retention.d.ts.map +1 -1
- package/esm/src/apiKeys/retention.js +1 -0
- package/esm/src/apiKeys/retention.js.map +1 -0
- package/esm/src/apiKeys/types.d.ts.map +1 -1
- package/esm/src/apiKeys/types.js +1 -0
- package/esm/src/apiKeys/types.js.map +1 -0
- package/esm/src/cli/atomicText.d.ts +3 -0
- package/esm/src/cli/atomicText.d.ts.map +1 -0
- package/esm/src/cli/atomicText.js +33 -0
- package/esm/src/cli/atomicText.js.map +1 -0
- package/esm/src/cli/bunLocalDev.d.ts +65 -0
- package/esm/src/cli/bunLocalDev.d.ts.map +1 -0
- package/esm/src/cli/bunLocalDev.js +459 -0
- package/esm/src/cli/bunLocalDev.js.map +1 -0
- package/esm/src/cli/bunProject.d.ts +30 -0
- package/esm/src/cli/bunProject.d.ts.map +1 -0
- package/esm/src/cli/bunProject.js +309 -0
- package/esm/src/cli/bunProject.js.map +1 -0
- package/esm/src/cli/cliBootstrap.d.ts +83 -0
- package/esm/src/cli/cliBootstrap.d.ts.map +1 -0
- package/esm/src/cli/cliBootstrap.js +186 -0
- package/esm/src/cli/cliBootstrap.js.map +1 -0
- package/esm/src/cli/externalSkills.d.ts.map +1 -1
- package/esm/src/cli/externalSkills.js +9 -5
- package/esm/src/cli/externalSkills.js.map +1 -0
- package/esm/src/cli/filesR2Policy.d.ts.map +1 -1
- package/esm/src/cli/filesR2Policy.js +18 -11
- package/esm/src/cli/filesR2Policy.js.map +1 -0
- package/esm/src/cli/generatedBuild.d.ts +42 -0
- package/esm/src/cli/generatedBuild.d.ts.map +1 -0
- package/esm/src/cli/generatedBuild.js +259 -0
- package/esm/src/cli/generatedBuild.js.map +1 -0
- package/esm/src/cli/generatedCleanup.d.ts +7 -0
- package/esm/src/cli/generatedCleanup.d.ts.map +1 -0
- package/esm/src/cli/generatedCleanup.js +67 -0
- package/esm/src/cli/generatedCleanup.js.map +1 -0
- package/esm/src/cli/generatedDevLease.d.ts +8 -0
- package/esm/src/cli/generatedDevLease.d.ts.map +1 -0
- package/esm/src/cli/generatedDevLease.js +39 -0
- package/esm/src/cli/generatedDevLease.js.map +1 -0
- package/esm/src/cli/generatedInstall.d.ts +64 -0
- package/esm/src/cli/generatedInstall.d.ts.map +1 -0
- package/esm/src/cli/generatedInstall.js +466 -0
- package/esm/src/cli/generatedInstall.js.map +1 -0
- package/esm/src/cli/generatedWorkflow.d.ts +34 -0
- package/esm/src/cli/generatedWorkflow.d.ts.map +1 -0
- package/esm/src/cli/generatedWorkflow.js +85 -0
- package/esm/src/cli/generatedWorkflow.js.map +1 -0
- package/esm/src/cli/legacyManagedOutputs.d.ts.map +1 -1
- package/esm/src/cli/legacyManagedOutputs.js +1 -0
- package/esm/src/cli/legacyManagedOutputs.js.map +1 -0
- package/esm/src/cli/localDb.d.ts.map +1 -1
- package/esm/src/cli/localDb.js +35 -30
- package/esm/src/cli/localDb.js.map +1 -0
- package/esm/src/cli/localDevLock.d.ts +9 -0
- package/esm/src/cli/localDevLock.d.ts.map +1 -1
- package/esm/src/cli/localDevLock.js +54 -13
- package/esm/src/cli/localDevLock.js.map +1 -0
- package/esm/src/cli/localDevPackage.d.ts +6 -11
- package/esm/src/cli/localDevPackage.d.ts.map +1 -1
- package/esm/src/cli/localDevPackage.js +51 -48
- package/esm/src/cli/localDevPackage.js.map +1 -0
- package/esm/src/cli/managedFiles.d.ts.map +1 -1
- package/esm/src/cli/managedFiles.js +34 -18
- package/esm/src/cli/managedFiles.js.map +1 -0
- package/esm/src/cli/migrationEnv.d.ts +16 -3
- package/esm/src/cli/migrationEnv.d.ts.map +1 -1
- package/esm/src/cli/migrationEnv.js +9 -6
- package/esm/src/cli/migrationEnv.js.map +1 -0
- package/esm/src/cli/mod.d.ts +20 -7
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +2148 -730
- package/esm/src/cli/mod.js.map +1 -0
- package/esm/src/cli/packageTreeSignature.d.ts +8 -0
- package/esm/src/cli/packageTreeSignature.d.ts.map +1 -0
- package/esm/src/cli/packageTreeSignature.js +60 -0
- package/esm/src/cli/packageTreeSignature.js.map +1 -0
- package/esm/src/cli/processIdentity.d.ts +7 -0
- package/esm/src/cli/processIdentity.d.ts.map +1 -0
- package/esm/src/cli/processIdentity.js +39 -0
- package/esm/src/cli/processIdentity.js.map +1 -0
- package/esm/src/cli/projectSkills.d.ts +1 -1
- package/esm/src/cli/projectSkills.d.ts.map +1 -1
- package/esm/src/cli/projectSkills.js +31 -23
- package/esm/src/cli/projectSkills.js.map +1 -0
- package/esm/src/cli/projectTooling.d.ts +6 -3
- package/esm/src/cli/projectTooling.d.ts.map +1 -1
- package/esm/src/cli/projectTooling.js +86 -41
- package/esm/src/cli/projectTooling.js.map +1 -0
- package/esm/src/cli/releaseConfig.d.ts.map +1 -1
- package/esm/src/cli/releaseConfig.js +5 -3
- package/esm/src/cli/releaseConfig.js.map +1 -0
- package/esm/src/cli/releaseCredentials.d.ts.map +1 -1
- package/esm/src/cli/releaseCredentials.js +19 -31
- package/esm/src/cli/releaseCredentials.js.map +1 -0
- package/esm/src/cli/releaseTrust.d.ts.map +1 -1
- package/esm/src/cli/releaseTrust.js +11 -4
- package/esm/src/cli/releaseTrust.js.map +1 -0
- package/esm/src/cli/releaseTrustCommand.d.ts.map +1 -1
- package/esm/src/cli/releaseTrustCommand.js +6 -4
- package/esm/src/cli/releaseTrustCommand.js.map +1 -0
- package/esm/src/cli/sourceConfig.d.ts +3 -0
- package/esm/src/cli/sourceConfig.d.ts.map +1 -0
- package/esm/src/cli/sourceConfig.js +91 -0
- package/esm/src/cli/sourceConfig.js.map +1 -0
- package/esm/src/cli/sourceDev.d.ts +77 -0
- package/esm/src/cli/sourceDev.d.ts.map +1 -0
- package/esm/src/cli/sourceDev.js +974 -0
- package/esm/src/cli/sourceDev.js.map +1 -0
- package/esm/src/cli/vercelBuildEnv.d.ts.map +1 -1
- package/esm/src/cli/vercelBuildEnv.js +44 -21
- package/esm/src/cli/vercelBuildEnv.js.map +1 -0
- package/esm/src/cli/vercelEnvMask.d.ts +38 -0
- package/esm/src/cli/vercelEnvMask.d.ts.map +1 -0
- package/esm/src/cli/vercelEnvMask.js +140 -0
- package/esm/src/cli/vercelEnvMask.js.map +1 -0
- package/esm/src/cli/vercelProjectRelease.d.ts.map +1 -1
- package/esm/src/cli/vercelProjectRelease.js +47 -24
- package/esm/src/cli/vercelProjectRelease.js.map +1 -0
- package/esm/src/cli/vercelPulledEnv.d.ts +65 -0
- package/esm/src/cli/vercelPulledEnv.d.ts.map +1 -0
- package/esm/src/cli/vercelPulledEnv.js +133 -0
- package/esm/src/cli/vercelPulledEnv.js.map +1 -0
- package/esm/src/clientData/identity.d.ts.map +1 -1
- package/esm/src/clientData/identity.js +1 -0
- package/esm/src/clientData/identity.js.map +1 -0
- package/esm/src/clientData/mod.d.ts +0 -1
- package/esm/src/clientData/mod.d.ts.map +1 -1
- package/esm/src/clientData/mod.js +1 -0
- package/esm/src/clientData/mod.js.map +1 -0
- package/esm/src/files/client.d.ts +1 -1
- package/esm/src/files/client.d.ts.map +1 -1
- package/esm/src/files/client.js +3 -4
- package/esm/src/files/client.js.map +1 -0
- package/esm/src/files/errors.d.ts.map +1 -1
- package/esm/src/files/errors.js +3 -12
- package/esm/src/files/errors.js.map +1 -0
- package/esm/src/files/hash.d.ts +1 -1
- package/esm/src/files/hash.d.ts.map +1 -1
- package/esm/src/files/hash.js +1 -0
- package/esm/src/files/hash.js.map +1 -0
- package/esm/src/files/memory.d.ts.map +1 -1
- package/esm/src/files/memory.js +2 -1
- package/esm/src/files/memory.js.map +1 -0
- package/esm/src/files/metadata.d.ts.map +1 -1
- package/esm/src/files/metadata.js +11 -18
- package/esm/src/files/metadata.js.map +1 -0
- package/esm/src/files/mod.d.ts +0 -1
- package/esm/src/files/mod.d.ts.map +1 -1
- package/esm/src/files/mod.js +1 -1
- package/esm/src/files/mod.js.map +1 -0
- package/esm/src/files/s3.d.ts.map +1 -1
- package/esm/src/files/s3.js +6 -4
- package/esm/src/files/s3.js.map +1 -0
- package/esm/src/files/service.d.ts.map +1 -1
- package/esm/src/files/service.js +3 -4
- package/esm/src/files/service.js.map +1 -0
- package/esm/src/files/types.d.ts.map +1 -1
- package/esm/src/files/types.js +1 -0
- package/esm/src/files/types.js.map +1 -0
- package/esm/src/jobs/catalog.d.ts.map +1 -1
- package/esm/src/jobs/catalog.js +5 -1
- package/esm/src/jobs/catalog.js.map +1 -0
- package/esm/src/jobs/controller.d.ts +1 -1
- package/esm/src/jobs/controller.d.ts.map +1 -1
- package/esm/src/jobs/controller.js +11 -55
- package/esm/src/jobs/controller.js.map +1 -0
- package/esm/src/jobs/direct.d.ts.map +1 -1
- package/esm/src/jobs/direct.js +3 -3
- package/esm/src/jobs/direct.js.map +1 -0
- package/esm/src/jobs/events.d.ts.map +1 -1
- package/esm/src/jobs/events.js +1 -0
- package/esm/src/jobs/events.js.map +1 -0
- package/esm/src/jobs/format.d.ts +5 -5
- package/esm/src/jobs/format.d.ts.map +1 -1
- package/esm/src/jobs/format.js +2 -1
- package/esm/src/jobs/format.js.map +1 -0
- package/esm/src/jobs/http.d.ts +3 -3
- package/esm/src/jobs/http.d.ts.map +1 -1
- package/esm/src/jobs/http.js +1 -0
- package/esm/src/jobs/http.js.map +1 -0
- package/esm/src/jobs/log.d.ts.map +1 -1
- package/esm/src/jobs/log.js +1 -0
- package/esm/src/jobs/log.js.map +1 -0
- package/esm/src/jobs/mod.d.ts.map +1 -1
- package/esm/src/jobs/mod.js +1 -0
- package/esm/src/jobs/mod.js.map +1 -0
- package/esm/src/jobs/run.d.ts.map +1 -1
- package/esm/src/jobs/run.js +1 -0
- package/esm/src/jobs/run.js.map +1 -0
- package/esm/src/jobs/sanitize.d.ts.map +1 -1
- package/esm/src/jobs/sanitize.js +1 -0
- package/esm/src/jobs/sanitize.js.map +1 -0
- package/esm/src/jobs/types.d.ts +1 -0
- package/esm/src/jobs/types.d.ts.map +1 -1
- package/esm/src/jobs/types.js +1 -0
- package/esm/src/jobs/types.js.map +1 -0
- package/esm/src/mail/errors.d.ts.map +1 -1
- package/esm/src/mail/errors.js +8 -42
- package/esm/src/mail/errors.js.map +1 -0
- package/esm/src/mail/memory.d.ts +1 -1
- package/esm/src/mail/memory.d.ts.map +1 -1
- package/esm/src/mail/memory.js +10 -14
- package/esm/src/mail/memory.js.map +1 -0
- package/esm/src/mail/mod.d.ts +0 -1
- package/esm/src/mail/mod.d.ts.map +1 -1
- package/esm/src/mail/mod.js +1 -1
- package/esm/src/mail/mod.js.map +1 -0
- package/esm/src/mail/postal.d.ts +1 -2
- package/esm/src/mail/postal.d.ts.map +1 -1
- package/esm/src/mail/postal.js +22 -18
- package/esm/src/mail/postal.js.map +1 -0
- package/esm/src/mail/retry.d.ts.map +1 -1
- package/esm/src/mail/retry.js +1 -0
- package/esm/src/mail/retry.js.map +1 -0
- package/esm/src/mail/sender.d.ts.map +1 -1
- package/esm/src/mail/sender.js +1 -0
- package/esm/src/mail/sender.js.map +1 -0
- package/esm/src/mail/service.d.ts.map +1 -1
- package/esm/src/mail/service.js +6 -7
- package/esm/src/mail/service.js.map +1 -0
- package/esm/src/mail/types.d.ts.map +1 -1
- package/esm/src/mail/types.js +1 -0
- package/esm/src/mail/types.js.map +1 -0
- package/esm/src/mui/apiKeys.d.ts +10 -11
- package/esm/src/mui/apiKeys.d.ts.map +1 -1
- package/esm/src/mui/apiKeys.js +83 -214
- package/esm/src/mui/apiKeys.js.map +1 -0
- package/esm/src/mui/apiKeysView.d.ts +1 -1
- package/esm/src/mui/apiKeysView.d.ts.map +1 -1
- package/esm/src/mui/apiKeysView.js +11 -9
- package/esm/src/mui/apiKeysView.js.map +1 -0
- package/esm/src/mui/confirm.d.ts +2 -2
- package/esm/src/mui/confirm.d.ts.map +1 -1
- package/esm/src/mui/confirm.js +3 -7
- package/esm/src/mui/confirm.js.map +1 -0
- package/esm/src/mui/mail.d.ts +4 -4
- package/esm/src/mui/mail.d.ts.map +1 -1
- package/esm/src/mui/mail.js +11 -71
- package/esm/src/mui/mail.js.map +1 -0
- package/esm/src/mui/mailView.d.ts +1 -1
- package/esm/src/mui/mailView.d.ts.map +1 -1
- package/esm/src/mui/mailView.js +1 -0
- package/esm/src/mui/mailView.js.map +1 -0
- package/esm/src/mui/mod.d.ts +0 -1
- package/esm/src/mui/mod.d.ts.map +1 -1
- package/esm/src/mui/mod.js +1 -0
- package/esm/src/mui/mod.js.map +1 -0
- package/esm/src/next/apiKeys/mod.d.ts +2 -3
- package/esm/src/next/apiKeys/mod.d.ts.map +1 -1
- package/esm/src/next/apiKeys/mod.js +6 -5
- package/esm/src/next/apiKeys/mod.js.map +1 -0
- package/esm/src/next/auth/client.d.ts +0 -1
- package/esm/src/next/auth/client.d.ts.map +1 -1
- package/esm/src/next/auth/client.js +1 -0
- package/esm/src/next/auth/client.js.map +1 -0
- package/esm/src/next/auth/config.d.ts.map +1 -1
- package/esm/src/next/auth/config.js +11 -17
- package/esm/src/next/auth/config.js.map +1 -0
- package/esm/src/next/auth/localTestLogin.d.ts.map +1 -1
- package/esm/src/next/auth/localTestLogin.js +13 -9
- package/esm/src/next/auth/localTestLogin.js.map +1 -0
- package/esm/src/next/auth/mod.d.ts.map +1 -1
- package/esm/src/next/auth/mod.js +1 -0
- package/esm/src/next/auth/mod.js.map +1 -0
- package/esm/src/next/auth/server.d.ts +2 -2
- package/esm/src/next/auth/server.d.ts.map +1 -1
- package/esm/src/next/auth/server.js +1 -0
- package/esm/src/next/auth/server.js.map +1 -0
- package/esm/src/next/files/mod.d.ts +0 -1
- package/esm/src/next/files/mod.d.ts.map +1 -1
- package/esm/src/next/files/mod.js +1 -1
- package/esm/src/next/files/mod.js.map +1 -0
- package/esm/src/next/files/route.d.ts +1 -1
- package/esm/src/next/files/route.d.ts.map +1 -1
- package/esm/src/next/files/route.js +11 -11
- package/esm/src/next/files/route.js.map +1 -0
- package/esm/src/next/jobs/list.d.ts +5 -5
- package/esm/src/next/jobs/list.d.ts.map +1 -1
- package/esm/src/next/jobs/list.js +15 -19
- package/esm/src/next/jobs/list.js.map +1 -0
- package/esm/src/next/jobs/mod.d.ts.map +1 -1
- package/esm/src/next/jobs/mod.js +1 -0
- package/esm/src/next/jobs/mod.js.map +1 -0
- package/esm/src/next/jobs/paths.d.ts +2 -2
- package/esm/src/next/jobs/paths.d.ts.map +1 -1
- package/esm/src/next/jobs/paths.js +1 -0
- package/esm/src/next/jobs/paths.js.map +1 -0
- package/esm/src/next/jobs/route.d.ts +2 -2
- package/esm/src/next/jobs/route.d.ts.map +1 -1
- package/esm/src/next/jobs/route.js +4 -4
- package/esm/src/next/jobs/route.js.map +1 -0
- package/esm/src/next/jobs/run.d.ts +2 -2
- package/esm/src/next/jobs/run.d.ts.map +1 -1
- package/esm/src/next/jobs/run.js +68 -132
- package/esm/src/next/jobs/run.js.map +1 -0
- package/esm/src/next/jobs/runRequest.d.ts +1 -1
- package/esm/src/next/jobs/runRequest.d.ts.map +1 -1
- package/esm/src/next/jobs/runRequest.js +3 -4
- package/esm/src/next/jobs/runRequest.js.map +1 -0
- package/esm/src/next/jobs/stream.d.ts.map +1 -1
- package/esm/src/next/jobs/stream.js +1 -0
- package/esm/src/next/jobs/stream.js.map +1 -0
- package/esm/src/next/mail/mod.d.ts +0 -1
- package/esm/src/next/mail/mod.d.ts.map +1 -1
- package/esm/src/next/mail/mod.js +1 -1
- package/esm/src/next/mail/mod.js.map +1 -0
- package/esm/src/next/mail/route.d.ts +2 -2
- package/esm/src/next/mail/route.d.ts.map +1 -1
- package/esm/src/next/mail/route.js +1 -0
- package/esm/src/next/mail/route.js.map +1 -0
- package/esm/src/next/pwa/mod.d.ts +0 -4
- package/esm/src/next/pwa/mod.d.ts.map +1 -1
- package/esm/src/next/pwa/mod.js +32 -16
- package/esm/src/next/pwa/mod.js.map +1 -0
- package/esm/src/next/pwa/worker.d.ts +0 -1
- package/esm/src/next/pwa/worker.d.ts.map +1 -1
- package/esm/src/next/pwa/worker.js +1 -0
- package/esm/src/next/pwa/worker.js.map +1 -0
- package/esm/src/next/secrets/constants.d.ts +3 -0
- package/esm/src/next/secrets/constants.d.ts.map +1 -0
- package/esm/src/next/secrets/constants.js +3 -0
- package/esm/src/next/secrets/constants.js.map +1 -0
- package/esm/src/next/secrets/mod.d.ts +1 -3
- package/esm/src/next/secrets/mod.d.ts.map +1 -1
- package/esm/src/next/secrets/mod.js +6 -7
- package/esm/src/next/secrets/mod.js.map +1 -0
- package/esm/src/next/sourceDev.d.ts +6 -0
- package/esm/src/next/sourceDev.d.ts.map +1 -0
- package/esm/src/next/sourceDev.js +41 -0
- package/esm/src/next/sourceDev.js.map +1 -0
- package/esm/src/secrets/encoding.d.ts.map +1 -1
- package/esm/src/secrets/encoding.js +1 -0
- package/esm/src/secrets/encoding.js.map +1 -0
- package/esm/src/secrets/errors.d.ts.map +1 -1
- package/esm/src/secrets/errors.js +3 -7
- package/esm/src/secrets/errors.js.map +1 -0
- package/esm/src/secrets/fingerprint.d.ts.map +1 -1
- package/esm/src/secrets/fingerprint.js +1 -0
- package/esm/src/secrets/fingerprint.js.map +1 -0
- package/esm/src/secrets/frame.d.ts.map +1 -1
- package/esm/src/secrets/frame.js +4 -3
- package/esm/src/secrets/frame.js.map +1 -0
- package/esm/src/secrets/keyring.d.ts.map +1 -1
- package/esm/src/secrets/keyring.js +6 -6
- package/esm/src/secrets/keyring.js.map +1 -0
- package/esm/src/secrets/legacy.d.ts +0 -1
- package/esm/src/secrets/legacy.d.ts.map +1 -1
- package/esm/src/secrets/legacy.js +13 -10
- package/esm/src/secrets/legacy.js.map +1 -0
- package/esm/src/secrets/maintenance.d.ts +0 -1
- package/esm/src/secrets/maintenance.d.ts.map +1 -1
- package/esm/src/secrets/maintenance.js +9 -24
- package/esm/src/secrets/maintenance.js.map +1 -0
- package/esm/src/secrets/mod.d.ts +0 -1
- package/esm/src/secrets/mod.d.ts.map +1 -1
- package/esm/src/secrets/mod.js +1 -1
- package/esm/src/secrets/mod.js.map +1 -0
- package/esm/src/secrets/secrets.d.ts.map +1 -1
- package/esm/src/secrets/secrets.js +38 -30
- package/esm/src/secrets/secrets.js.map +1 -0
- package/package.json +111 -135
- package/skills/loom/SKILL.md +40 -5
- package/skills/loom/references/dependency-upgrades.md +4 -0
- package/skills/loom/references/esm-package.md +35 -0
- package/skills/loom/references/local-development.md +261 -29
- package/skills/loom/references/release-safety.md +10 -3
- package/skills/loom-auth/references/secrets-and-rotation.md +2 -1
- package/skills/loom-mail/SKILL.md +1 -0
- package/skills/loom-scaffold/references/greenfield-workflow.md +2 -1
- package/skills/upgrade-deps/SKILL.md +4 -2
- package/source/bin/loom.ts +50 -0
- package/source/mod.ts +10 -0
- package/source/src/apiKeys/authorize.ts +294 -0
- package/source/src/apiKeys/betterAuth.ts +253 -0
- package/source/src/apiKeys/country.ts +7 -0
- package/source/src/apiKeys/credentials.ts +171 -0
- package/source/src/apiKeys/fingerprint.ts +10 -0
- package/{script/src/apiKeys/lifecycle.d.ts → source/src/apiKeys/lifecycle.ts} +21 -23
- package/source/src/apiKeys/limits.ts +372 -0
- package/source/src/apiKeys/mod.ts +11 -0
- package/source/src/apiKeys/permissions.ts +153 -0
- package/source/src/apiKeys/policy.ts +189 -0
- package/source/src/apiKeys/retention.ts +136 -0
- package/source/src/apiKeys/types.ts +288 -0
- package/source/src/cli/atomicText.ts +38 -0
- package/source/src/cli/bunLocalDev.ts +646 -0
- package/source/src/cli/bunProject.ts +433 -0
- package/source/src/cli/cliBootstrap.ts +313 -0
- package/source/src/cli/externalSkills.ts +315 -0
- package/source/src/cli/filesR2Policy.ts +212 -0
- package/source/src/cli/generatedBuild.ts +380 -0
- package/source/src/cli/generatedCleanup.ts +87 -0
- package/source/src/cli/generatedDevLease.ts +52 -0
- package/source/src/cli/generatedInstall.ts +630 -0
- package/source/src/cli/generatedWorkflow.ts +135 -0
- package/{script/src/cli/legacyManagedOutputs.js → source/src/cli/legacyManagedOutputs.ts} +36 -30
- package/source/src/cli/localDb.ts +548 -0
- package/source/src/cli/localDevLock.ts +462 -0
- package/source/src/cli/localDevPackage.ts +754 -0
- package/source/src/cli/managedFiles.ts +688 -0
- package/source/src/cli/migrationEnv.ts +267 -0
- package/source/src/cli/mod.ts +26788 -0
- package/source/src/cli/packageTreeSignature.ts +65 -0
- package/source/src/cli/processIdentity.ts +38 -0
- package/source/src/cli/projectSkills.ts +1102 -0
- package/source/src/cli/projectTooling.ts +1140 -0
- package/source/src/cli/releaseConfig.ts +36 -0
- package/source/src/cli/releaseCredentials.ts +642 -0
- package/source/src/cli/releaseTrust.ts +194 -0
- package/source/src/cli/releaseTrustCommand.ts +210 -0
- package/source/src/cli/sourceConfig.ts +106 -0
- package/source/src/cli/sourceDev.ts +1279 -0
- package/source/src/cli/vercelBuildEnv.ts +714 -0
- package/source/src/cli/vercelEnvMask.ts +182 -0
- package/source/src/cli/vercelProjectRelease.ts +807 -0
- package/source/src/cli/vercelPulledEnv.ts +174 -0
- package/source/src/clientData/identity.ts +229 -0
- package/source/src/clientData/mod.ts +1 -0
- package/source/src/files/client.ts +75 -0
- package/source/src/files/errors.ts +69 -0
- package/source/src/files/hash.ts +109 -0
- package/source/src/files/memory.ts +158 -0
- package/source/src/files/metadata.ts +251 -0
- package/source/src/files/mod.ts +8 -0
- package/source/src/files/s3.ts +182 -0
- package/source/src/files/service.ts +210 -0
- package/source/src/files/types.ts +171 -0
- package/source/src/jobs/catalog.ts +303 -0
- package/source/src/jobs/controller.ts +156 -0
- package/source/src/jobs/direct.ts +177 -0
- package/source/src/jobs/events.ts +74 -0
- package/source/src/jobs/format.ts +233 -0
- package/source/src/jobs/http.ts +83 -0
- package/source/src/jobs/log.ts +10 -0
- package/source/src/jobs/mod.ts +10 -0
- package/source/src/jobs/run.ts +141 -0
- package/source/src/jobs/sanitize.ts +142 -0
- package/source/src/jobs/types.ts +43 -0
- package/source/src/mail/errors.ts +77 -0
- package/source/src/mail/memory.ts +451 -0
- package/source/src/mail/mod.ts +5 -0
- package/source/src/mail/postal.ts +363 -0
- package/source/src/mail/retry.ts +30 -0
- package/source/src/mail/sender.ts +57 -0
- package/source/src/mail/service.ts +252 -0
- package/source/src/mail/types.ts +229 -0
- package/source/src/mui/apiKeys.tsx +1044 -0
- package/source/src/mui/apiKeysView.ts +535 -0
- package/source/src/mui/confirm.tsx +138 -0
- package/source/src/mui/mail.tsx +279 -0
- package/source/src/mui/mailView.ts +50 -0
- package/source/src/mui/mod.ts +3 -0
- package/source/src/next/apiKeys/mod.ts +393 -0
- package/{script/src/next/auth/client.d.ts → source/src/next/auth/client.ts} +19 -5
- package/source/src/next/auth/config.ts +207 -0
- package/source/src/next/auth/localTestLogin.ts +412 -0
- package/source/src/next/auth/mod.ts +3 -0
- package/source/src/next/auth/server.ts +94 -0
- package/source/src/next/files/mod.ts +1 -0
- package/source/src/next/files/route.ts +621 -0
- package/source/src/next/jobs/list.tsx +90 -0
- package/source/src/next/jobs/mod.ts +5 -0
- package/source/src/next/jobs/paths.ts +70 -0
- package/source/src/next/jobs/route.ts +207 -0
- package/source/src/next/jobs/run.tsx +888 -0
- package/source/src/next/jobs/runRequest.ts +92 -0
- package/source/src/next/jobs/stream.ts +33 -0
- package/source/src/next/mail/mod.ts +1 -0
- package/source/src/next/mail/route.ts +75 -0
- package/source/src/next/pwa/mod.tsx +453 -0
- package/source/src/next/pwa/worker.ts +59 -0
- package/source/src/next/secrets/constants.ts +2 -0
- package/source/src/next/secrets/mod.ts +319 -0
- package/source/src/next/sourceDev.ts +50 -0
- package/source/src/secrets/encoding.ts +102 -0
- package/source/src/secrets/errors.ts +58 -0
- package/source/src/secrets/fingerprint.ts +132 -0
- package/source/src/secrets/frame.ts +119 -0
- package/source/src/secrets/keyring.ts +225 -0
- package/source/src/secrets/legacy.ts +244 -0
- package/source/src/secrets/maintenance.ts +517 -0
- package/source/src/secrets/mod.ts +38 -0
- package/source/src/secrets/secrets.ts +926 -0
- package/db/databaseTls.test.ts +0 -171
- package/db/databaseUrl.test.ts +0 -72
- package/db/neonEndpoint.test.ts +0 -51
- package/db/testing.test.ts +0 -28
- package/deno.json +0 -3
- package/esm/_dnt.polyfills.d.ts +0 -166
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -177
- package/esm/_dnt.shims.d.ts +0 -2
- package/esm/_dnt.shims.d.ts.map +0 -1
- package/esm/_dnt.shims.js +0 -57
- package/esm/package.json +0 -3
- package/script/_dnt.polyfills.d.ts +0 -166
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -180
- package/script/_dnt.shims.d.ts +0 -2
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -60
- package/script/bin/loom.d.ts +0 -2
- package/script/bin/loom.d.ts.map +0 -1
- package/script/bin/loom.js +0 -17
- package/script/mod.d.ts +0 -12
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -27
- package/script/package.json +0 -3
- package/script/src/apiKeys/authorize.d.ts +0 -4
- package/script/src/apiKeys/authorize.d.ts.map +0 -1
- package/script/src/apiKeys/authorize.js +0 -258
- package/script/src/apiKeys/betterAuth.d.ts +0 -123
- package/script/src/apiKeys/betterAuth.d.ts.map +0 -1
- package/script/src/apiKeys/betterAuth.js +0 -169
- package/script/src/apiKeys/country.d.ts +0 -3
- package/script/src/apiKeys/country.d.ts.map +0 -1
- package/script/src/apiKeys/country.js +0 -10
- package/script/src/apiKeys/credentials.d.ts +0 -39
- package/script/src/apiKeys/credentials.d.ts.map +0 -1
- package/script/src/apiKeys/credentials.js +0 -121
- package/script/src/apiKeys/fingerprint.d.ts +0 -3
- package/script/src/apiKeys/fingerprint.d.ts.map +0 -1
- package/script/src/apiKeys/fingerprint.js +0 -8
- package/script/src/apiKeys/lifecycle.d.ts.map +0 -1
- package/script/src/apiKeys/lifecycle.js +0 -7
- package/script/src/apiKeys/limits.d.ts +0 -132
- package/script/src/apiKeys/limits.d.ts.map +0 -1
- package/script/src/apiKeys/limits.js +0 -254
- package/script/src/apiKeys/mod.d.ts +0 -13
- package/script/src/apiKeys/mod.d.ts.map +0 -1
- package/script/src/apiKeys/mod.js +0 -28
- package/script/src/apiKeys/permissions.d.ts +0 -56
- package/script/src/apiKeys/permissions.d.ts.map +0 -1
- package/script/src/apiKeys/permissions.js +0 -136
- package/script/src/apiKeys/policy.d.ts +0 -61
- package/script/src/apiKeys/policy.d.ts.map +0 -1
- package/script/src/apiKeys/policy.js +0 -94
- package/script/src/apiKeys/retention.d.ts +0 -55
- package/script/src/apiKeys/retention.d.ts.map +0 -1
- package/script/src/apiKeys/retention.js +0 -70
- package/script/src/apiKeys/types.d.ts +0 -242
- package/script/src/apiKeys/types.d.ts.map +0 -1
- package/script/src/apiKeys/types.js +0 -2
- package/script/src/cli/externalSkills.d.ts +0 -39
- package/script/src/cli/externalSkills.d.ts.map +0 -1
- package/script/src/cli/externalSkills.js +0 -204
- package/script/src/cli/filesR2Policy.d.ts +0 -33
- package/script/src/cli/filesR2Policy.d.ts.map +0 -1
- package/script/src/cli/filesR2Policy.js +0 -135
- package/script/src/cli/legacyManagedOutputs.d.ts +0 -33
- package/script/src/cli/legacyManagedOutputs.d.ts.map +0 -1
- package/script/src/cli/localDb.d.ts +0 -28
- package/script/src/cli/localDb.d.ts.map +0 -1
- package/script/src/cli/localDb.js +0 -370
- package/script/src/cli/localDevLock.d.ts +0 -97
- package/script/src/cli/localDevLock.d.ts.map +0 -1
- package/script/src/cli/localDevLock.js +0 -320
- package/script/src/cli/localDevPackage.d.ts +0 -172
- package/script/src/cli/localDevPackage.d.ts.map +0 -1
- package/script/src/cli/localDevPackage.js +0 -635
- package/script/src/cli/managedFiles.d.ts +0 -131
- package/script/src/cli/managedFiles.d.ts.map +0 -1
- package/script/src/cli/managedFiles.js +0 -536
- package/script/src/cli/migrationEnv.d.ts +0 -63
- package/script/src/cli/migrationEnv.d.ts.map +0 -1
- package/script/src/cli/migrationEnv.js +0 -217
- package/script/src/cli/mod.d.ts +0 -581
- package/script/src/cli/mod.d.ts.map +0 -1
- package/script/src/cli/mod.js +0 -16850
- package/script/src/cli/projectSkills.d.ts +0 -109
- package/script/src/cli/projectSkills.d.ts.map +0 -1
- package/script/src/cli/projectSkills.js +0 -749
- package/script/src/cli/projectTooling.d.ts +0 -164
- package/script/src/cli/projectTooling.d.ts.map +0 -1
- package/script/src/cli/projectTooling.js +0 -847
- package/script/src/cli/releaseConfig.d.ts +0 -10
- package/script/src/cli/releaseConfig.d.ts.map +0 -1
- package/script/src/cli/releaseConfig.js +0 -26
- package/script/src/cli/releaseCredentials.d.ts +0 -32
- package/script/src/cli/releaseCredentials.d.ts.map +0 -1
- package/script/src/cli/releaseCredentials.js +0 -392
- package/script/src/cli/releaseTrust.d.ts +0 -39
- package/script/src/cli/releaseTrust.d.ts.map +0 -1
- package/script/src/cli/releaseTrust.js +0 -130
- package/script/src/cli/releaseTrustCommand.d.ts +0 -18
- package/script/src/cli/releaseTrustCommand.d.ts.map +0 -1
- package/script/src/cli/releaseTrustCommand.js +0 -145
- package/script/src/cli/vercelBuildEnv.d.ts +0 -62
- package/script/src/cli/vercelBuildEnv.d.ts.map +0 -1
- package/script/src/cli/vercelBuildEnv.js +0 -401
- package/script/src/cli/vercelProjectRelease.d.ts +0 -38
- package/script/src/cli/vercelProjectRelease.d.ts.map +0 -1
- package/script/src/cli/vercelProjectRelease.js +0 -607
- package/script/src/clientData/identity.d.ts +0 -89
- package/script/src/clientData/identity.d.ts.map +0 -1
- package/script/src/clientData/identity.js +0 -134
- package/script/src/clientData/mod.d.ts +0 -3
- package/script/src/clientData/mod.d.ts.map +0 -1
- package/script/src/clientData/mod.js +0 -18
- package/script/src/files/client.d.ts +0 -29
- package/script/src/files/client.d.ts.map +0 -1
- package/script/src/files/client.js +0 -45
- package/script/src/files/errors.d.ts +0 -37
- package/script/src/files/errors.d.ts.map +0 -1
- package/script/src/files/errors.js +0 -76
- package/script/src/files/hash.d.ts +0 -15
- package/script/src/files/hash.d.ts.map +0 -1
- package/script/src/files/hash.js +0 -89
- package/script/src/files/memory.d.ts +0 -29
- package/script/src/files/memory.d.ts.map +0 -1
- package/script/src/files/memory.js +0 -113
- package/script/src/files/metadata.d.ts +0 -10
- package/script/src/files/metadata.d.ts.map +0 -1
- package/script/src/files/metadata.js +0 -189
- package/script/src/files/mod.d.ts +0 -10
- package/script/src/files/mod.d.ts.map +0 -1
- package/script/src/files/mod.js +0 -25
- package/script/src/files/s3.d.ts +0 -29
- package/script/src/files/s3.d.ts.map +0 -1
- package/script/src/files/s3.js +0 -110
- package/script/src/files/service.d.ts +0 -27
- package/script/src/files/service.d.ts.map +0 -1
- package/script/src/files/service.js +0 -139
- package/script/src/files/types.d.ts +0 -134
- package/script/src/files/types.d.ts.map +0 -1
- package/script/src/files/types.js +0 -2
- package/script/src/jobs/catalog.d.ts +0 -32
- package/script/src/jobs/catalog.d.ts.map +0 -1
- package/script/src/jobs/catalog.js +0 -223
- package/script/src/jobs/controller.d.ts +0 -41
- package/script/src/jobs/controller.d.ts.map +0 -1
- package/script/src/jobs/controller.js +0 -151
- package/script/src/jobs/direct.d.ts +0 -36
- package/script/src/jobs/direct.d.ts.map +0 -1
- package/script/src/jobs/direct.js +0 -128
- package/script/src/jobs/events.d.ts +0 -23
- package/script/src/jobs/events.d.ts.map +0 -1
- package/script/src/jobs/events.js +0 -50
- package/script/src/jobs/format.d.ts +0 -16
- package/script/src/jobs/format.d.ts.map +0 -1
- package/script/src/jobs/format.js +0 -193
- package/script/src/jobs/http.d.ts +0 -22
- package/script/src/jobs/http.d.ts.map +0 -1
- package/script/src/jobs/http.js +0 -50
- package/script/src/jobs/log.d.ts +0 -2
- package/script/src/jobs/log.d.ts.map +0 -1
- package/script/src/jobs/log.js +0 -13
- package/script/src/jobs/mod.d.ts +0 -11
- package/script/src/jobs/mod.d.ts.map +0 -1
- package/script/src/jobs/mod.js +0 -26
- package/script/src/jobs/run.d.ts +0 -39
- package/script/src/jobs/run.d.ts.map +0 -1
- package/script/src/jobs/run.js +0 -86
- package/script/src/jobs/sanitize.d.ts +0 -30
- package/script/src/jobs/sanitize.d.ts.map +0 -1
- package/script/src/jobs/sanitize.js +0 -97
- package/script/src/jobs/types.d.ts +0 -31
- package/script/src/jobs/types.d.ts.map +0 -1
- package/script/src/jobs/types.js +0 -2
- package/script/src/mail/errors.d.ts +0 -33
- package/script/src/mail/errors.d.ts.map +0 -1
- package/script/src/mail/errors.js +0 -97
- package/script/src/mail/memory.d.ts +0 -30
- package/script/src/mail/memory.d.ts.map +0 -1
- package/script/src/mail/memory.js +0 -345
- package/script/src/mail/mod.d.ts +0 -7
- package/script/src/mail/mod.d.ts.map +0 -1
- package/script/src/mail/mod.js +0 -22
- package/script/src/mail/postal.d.ts +0 -57
- package/script/src/mail/postal.d.ts.map +0 -1
- package/script/src/mail/postal.js +0 -251
- package/script/src/mail/retry.d.ts +0 -9
- package/script/src/mail/retry.d.ts.map +0 -1
- package/script/src/mail/retry.js +0 -22
- package/script/src/mail/sender.d.ts +0 -5
- package/script/src/mail/sender.d.ts.map +0 -1
- package/script/src/mail/sender.js +0 -52
- package/script/src/mail/service.d.ts +0 -23
- package/script/src/mail/service.d.ts.map +0 -1
- package/script/src/mail/service.js +0 -191
- package/script/src/mail/types.d.ts +0 -176
- package/script/src/mail/types.d.ts.map +0 -1
- package/script/src/mail/types.js +0 -2
- package/script/src/mui/apiKeys.d.ts +0 -171
- package/script/src/mui/apiKeys.d.ts.map +0 -1
- package/script/src/mui/apiKeys.js +0 -470
- package/script/src/mui/apiKeysView.d.ts +0 -193
- package/script/src/mui/apiKeysView.d.ts.map +0 -1
- package/script/src/mui/apiKeysView.js +0 -331
- package/script/src/mui/confirm.d.ts +0 -12
- package/script/src/mui/confirm.d.ts.map +0 -1
- package/script/src/mui/confirm.js +0 -85
- package/script/src/mui/mail.d.ts +0 -29
- package/script/src/mui/mail.d.ts.map +0 -1
- package/script/src/mui/mail.js +0 -159
- package/script/src/mui/mailView.d.ts +0 -20
- package/script/src/mui/mailView.d.ts.map +0 -1
- package/script/src/mui/mailView.js +0 -32
- package/script/src/mui/mod.d.ts +0 -5
- package/script/src/mui/mod.d.ts.map +0 -1
- package/script/src/mui/mod.js +0 -20
- package/script/src/next/apiKeys/mod.d.ts +0 -71
- package/script/src/next/apiKeys/mod.d.ts.map +0 -1
- package/script/src/next/apiKeys/mod.js +0 -227
- package/script/src/next/auth/client.d.ts.map +0 -1
- package/script/src/next/auth/client.js +0 -39
- package/script/src/next/auth/config.d.ts +0 -62
- package/script/src/next/auth/config.d.ts.map +0 -1
- package/script/src/next/auth/config.js +0 -178
- package/script/src/next/auth/localTestLogin.d.ts +0 -75
- package/script/src/next/auth/localTestLogin.d.ts.map +0 -1
- package/script/src/next/auth/localTestLogin.js +0 -291
- package/script/src/next/auth/mod.d.ts +0 -4
- package/script/src/next/auth/mod.d.ts.map +0 -1
- package/script/src/next/auth/mod.js +0 -19
- package/script/src/next/auth/server.d.ts +0 -44
- package/script/src/next/auth/server.d.ts.map +0 -1
- package/script/src/next/auth/server.js +0 -39
- package/script/src/next/files/mod.d.ts +0 -3
- package/script/src/next/files/mod.d.ts.map +0 -1
- package/script/src/next/files/mod.js +0 -18
- package/script/src/next/files/route.d.ts +0 -99
- package/script/src/next/files/route.d.ts.map +0 -1
- package/script/src/next/files/route.js +0 -353
- package/script/src/next/jobs/list.d.ts +0 -25
- package/script/src/next/jobs/list.d.ts.map +0 -1
- package/script/src/next/jobs/list.js +0 -48
- package/script/src/next/jobs/mod.d.ts +0 -6
- package/script/src/next/jobs/mod.d.ts.map +0 -1
- package/script/src/next/jobs/mod.js +0 -21
- package/script/src/next/jobs/paths.d.ts +0 -14
- package/script/src/next/jobs/paths.d.ts.map +0 -1
- package/script/src/next/jobs/paths.js +0 -47
- package/script/src/next/jobs/route.d.ts +0 -48
- package/script/src/next/jobs/route.d.ts.map +0 -1
- package/script/src/next/jobs/route.js +0 -105
- package/script/src/next/jobs/run.d.ts +0 -58
- package/script/src/next/jobs/run.d.ts.map +0 -1
- package/script/src/next/jobs/run.js +0 -592
- package/script/src/next/jobs/runRequest.d.ts +0 -19
- package/script/src/next/jobs/runRequest.d.ts.map +0 -1
- package/script/src/next/jobs/runRequest.js +0 -81
- package/script/src/next/jobs/stream.d.ts +0 -3
- package/script/src/next/jobs/stream.d.ts.map +0 -1
- package/script/src/next/jobs/stream.js +0 -28
- package/script/src/next/mail/mod.d.ts +0 -3
- package/script/src/next/mail/mod.d.ts.map +0 -1
- package/script/src/next/mail/mod.js +0 -18
- package/script/src/next/mail/route.d.ts +0 -12
- package/script/src/next/mail/route.d.ts.map +0 -1
- package/script/src/next/mail/route.js +0 -46
- package/script/src/next/pwa/mod.d.ts +0 -112
- package/script/src/next/pwa/mod.d.ts.map +0 -1
- package/script/src/next/pwa/mod.js +0 -303
- package/script/src/next/pwa/worker.d.ts +0 -27
- package/script/src/next/pwa/worker.d.ts.map +0 -1
- package/script/src/next/pwa/worker.js +0 -33
- package/script/src/next/secrets/mod.d.ts +0 -108
- package/script/src/next/secrets/mod.d.ts.map +0 -1
- package/script/src/next/secrets/mod.js +0 -218
- package/script/src/secrets/encoding.d.ts +0 -32
- package/script/src/secrets/encoding.d.ts.map +0 -1
- package/script/src/secrets/encoding.js +0 -95
- package/script/src/secrets/errors.d.ts +0 -45
- package/script/src/secrets/errors.d.ts.map +0 -1
- package/script/src/secrets/errors.js +0 -45
- package/script/src/secrets/fingerprint.d.ts +0 -43
- package/script/src/secrets/fingerprint.d.ts.map +0 -1
- package/script/src/secrets/fingerprint.js +0 -92
- package/script/src/secrets/frame.d.ts +0 -34
- package/script/src/secrets/frame.d.ts.map +0 -1
- package/script/src/secrets/frame.js +0 -91
- package/script/src/secrets/keyring.d.ts +0 -62
- package/script/src/secrets/keyring.d.ts.map +0 -1
- package/script/src/secrets/keyring.js +0 -202
- package/script/src/secrets/legacy.d.ts +0 -60
- package/script/src/secrets/legacy.d.ts.map +0 -1
- package/script/src/secrets/legacy.js +0 -186
- package/script/src/secrets/maintenance.d.ts +0 -173
- package/script/src/secrets/maintenance.d.ts.map +0 -1
- package/script/src/secrets/maintenance.js +0 -323
- package/script/src/secrets/mod.d.ts +0 -6
- package/script/src/secrets/mod.d.ts.map +0 -1
- package/script/src/secrets/mod.js +0 -24
- package/script/src/secrets/secrets.d.ts +0 -192
- package/script/src/secrets/secrets.d.ts.map +0 -1
- package/script/src/secrets/secrets.js +0 -532
|
@@ -2,14 +2,67 @@
|
|
|
2
2
|
|
|
3
3
|
## Local development
|
|
4
4
|
|
|
5
|
+
Managed Loom local development supports pnpm and Deno dependency owners, plus
|
|
6
|
+
standalone Bun owners with the verified text-lock v2/config1 and project-local
|
|
7
|
+
isolated store (Bun 1.4.3; retained 1.4.2 profile). Bun workspaces/global stores, redirected state/store
|
|
8
|
+
paths, patched or ambiguous resolutions and unsupported locks fail closed. Start
|
|
9
|
+
with `bun install --linker isolated`; a Deno task owner with Bun dependencies
|
|
10
|
+
still installs through Bun. See `docs/project-tooling.md` in the Loom repository
|
|
11
|
+
for the complete scope.
|
|
12
|
+
|
|
13
|
+
Managed Bun refresh also requires literal root package packing rules: no
|
|
14
|
+
`package.json` `files` allowlist, glob-based root ignore rules or nested ignore
|
|
15
|
+
files. Escaped quoted keys in Bun TOML configuration are refused because this
|
|
16
|
+
bounded profile cannot safely interpret them. The child installer explicitly
|
|
17
|
+
disables Bun global-store mode; unsupported configuration is still refused
|
|
18
|
+
before managed changes.
|
|
19
|
+
|
|
20
|
+
## Per-app private generations
|
|
21
|
+
|
|
22
|
+
New explicit `loom dev local <checkout>` activation against a capable native
|
|
23
|
+
checkout builds a verified package at `.loom/generated/<generation>/package`,
|
|
24
|
+
then selects and installs it. Run `bun install --frozen-lockfile --ignore-scripts`
|
|
25
|
+
in the checkout first. Apps keep separate immutable targets, versions and
|
|
26
|
+
canonical source identity. An existing `npm/` link stays legacy until explicitly
|
|
27
|
+
reactivated. Ordinary sync never deletes a generation or moves another app.
|
|
28
|
+
|
|
29
|
+
Private mode supports exact pins and stable full-version ^/~ constraints; pin
|
|
30
|
+
exact for partial, compound or prerelease ranges. Compatible installed range
|
|
31
|
+
versions remain in use; changed incompatible ranges build a matching generation.
|
|
32
|
+
Linux with verifiable boot/PID identity is required. Strict leases never expire
|
|
33
|
+
live or unknown holders. The noninteractive guardian waits for zero exit and
|
|
34
|
+
process-group disappearance, including normal background lifecycle children.
|
|
35
|
+
Cancellation can leave an installer finishing. Deliberately escaped daemons are
|
|
36
|
+
unsupported; unreaped zombies require a working reaper or environment repair.
|
|
37
|
+
|
|
38
|
+
After stopping this app's dev servers, builds and installers, use
|
|
39
|
+
`loom dev recover-install --stopped`, then sync. Recovery repairs only owned
|
|
40
|
+
operation/state and respects current task/dependency ownership and selectors.
|
|
41
|
+
It never restores entire configs. Build failures retain the prior target;
|
|
42
|
+
installer failures retain the selected target for forward repair. Changes during
|
|
43
|
+
build/install refuse stale commits and preserve current config edits. File-package
|
|
44
|
+
hardlinks require checking owner/stamp provenance after install, not only equality
|
|
45
|
+
between installed and generated trees. Source mode remains opt-in and its return
|
|
46
|
+
to generated verifies the actual private target before clearing the release block.
|
|
47
|
+
|
|
48
|
+
Explicit `loom dev prune --stopped` keeps active/installed/locked targets, the
|
|
49
|
+
rollback target and two recent completed generations. It removes only verified
|
|
50
|
+
unreferenced completed copies. Incomplete or unknown attempts require manual
|
|
51
|
+
diagnosis. Stop old readers first. Unused cache alone never blocks production;
|
|
52
|
+
a snapshot's ownership never proves publication. The shared-path timing and Bun
|
|
53
|
+
quarantine details below apply to retained legacy links; private Bun repairs
|
|
54
|
+
always use a fresh target when cached content may be stale.
|
|
55
|
+
|
|
56
|
+
## Manager and release details
|
|
57
|
+
|
|
5
58
|
- For a Loom DB consumer, prefer an existing machine PostgreSQL service with one
|
|
6
59
|
restricted database and role per project. Use `loom db local setup|check` and
|
|
7
60
|
the `loom-db` skill for the local database boundary. Containers remain useful
|
|
8
61
|
for incompatible server versions or extensions.
|
|
9
62
|
|
|
10
63
|
- For local unpublished Loom package development, use `loom dev local <path>`.
|
|
11
|
-
Loom uses a managed `file:` override for pnpm
|
|
12
|
-
entry in the authoritative Deno config for Deno projects.
|
|
64
|
+
Loom uses a managed `file:` override for pnpm and supported Bun projects, and
|
|
65
|
+
a local `links` entry in the authoritative Deno config for Deno projects.
|
|
13
66
|
- The pnpm override goes where the project's pnpm version applies it
|
|
14
67
|
(`packageManager`, else the `pnpm --version` of the pnpm Loom runs; not
|
|
15
68
|
`npm_config_user_agent`, which names the pnpm running the current script), as
|
|
@@ -29,20 +82,28 @@
|
|
|
29
82
|
fails with the detected pnpm version if pnpm still does not apply it.
|
|
30
83
|
- The managed flow keeps the committed dependency/import on a published Loom
|
|
31
84
|
version. `loom dev sync` refreshes with a plain `pnpm install` (or
|
|
32
|
-
`deno install`, according to `project.tooling`)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
85
|
+
`deno install`, according to `project.tooling`). Bun uses
|
|
86
|
+
`bun install --linker isolated`. These avoid intentionally updating unrelated
|
|
87
|
+
locked versions. Do not link or refresh Loom with `pnpm update`; it
|
|
88
|
+
re-resolves Loom's dependency subtree and can leave duplicate peer variants of
|
|
89
|
+
packages such as `@better-auth/core`. To move to another published Loom
|
|
90
|
+
version, set the exact version in package.json and run `pnpm install`, which
|
|
91
|
+
keeps other locked versions. `pnpm add --save-exact @gadicc/loom@<version>`
|
|
92
|
+
(with `-w` at a workspace root with packages) gives the same lockfile but may
|
|
93
|
+
re-sort package.json; it is only needed to replace a local resolution an older
|
|
40
94
|
`pnpm update --no-save` link left under an unchanged pin. The sync fails if
|
|
41
95
|
pnpm-lock.yaml does not record the override afterwards and warns when the
|
|
42
96
|
install added duplicate peer variants.
|
|
97
|
+
- Bun owns only its exact entry in the active package.json `overrides` or
|
|
98
|
+
`resolutions` map, with ownership in ignored `.loom/dev-state.json`; retain
|
|
99
|
+
that record while linked. A plain Bun file install can leave deleted files.
|
|
100
|
+
Legacy shared-path sync moves only the proven local Loom store entry aside, reinstalls, verifies
|
|
101
|
+
full content and removes the backup. Failed refresh restores the old entry
|
|
102
|
+
when safe or prints the retained recovery path. Do not remove unrelated store
|
|
103
|
+
entries or use `bun update`/`bun install --force` to refresh Loom.
|
|
43
104
|
- `loom dev sync` decides freshness by content: it rebuilds when the Loom
|
|
44
|
-
sources differ from the fingerprint stamped into the
|
|
45
|
-
reinstalls when the app's installed copy differs from
|
|
105
|
+
sources differ from the fingerprint stamped into the selected build and
|
|
106
|
+
reinstalls when the app's installed copy differs from that build by file list or
|
|
46
107
|
content, including after a `deno task build` run outside the sync. Use
|
|
47
108
|
`--force` only to rebuild and reinstall unconditionally.
|
|
48
109
|
- Concurrent Loom commands take turns through `.loom/dev-sync.lock`, and
|
|
@@ -50,31 +111,53 @@
|
|
|
50
111
|
waits for the running sync, then re-reads the link and re-checks freshness
|
|
51
112
|
instead of rebuilding again (or re-adding an override removed meanwhile). If
|
|
52
113
|
the Loom package it had loaded was replaced while it waited, it treats that as
|
|
53
|
-
a refresh: `loom env` continues
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
114
|
+
a refresh: `loom env` continues; the noninteractive Node launcher restarts
|
|
115
|
+
other commands once before dispatch, while unsupported launchers retain
|
|
116
|
+
exit 75. For legacy links, the holder refreshes the lock every 5 seconds and removes it on
|
|
117
|
+
Ctrl-C, SIGTERM, or SIGHUP. A lock nobody refreshed for a minute (a crash,
|
|
118
|
+
`kill -9`, another machine) is broken, after about 12 seconds when its process
|
|
119
|
+
is gone on this host or it was already a minute old, and after five minutes
|
|
120
|
+
when its process still exists on this host (a paused command); one waiter
|
|
121
|
+
breaks it at a time under a short `.loom/dev-sync.lock.break` lock. A holder
|
|
122
|
+
that lost its lock stops before its next build, install, or state write. After
|
|
123
|
+
10 minutes of waiting the command fails and names the lock holder.
|
|
62
124
|
- Other Loom commands run the sync automatically while linked. When it refreshes
|
|
63
125
|
the package, `loom env -- <command>` (and so scripts such as `pnpm test` that
|
|
64
126
|
wrap it) still runs its command, with the sync's output on stderr; other
|
|
65
|
-
commands
|
|
66
|
-
code.
|
|
127
|
+
commands use the noninteractive Node launcher's bounded restart to load fresh
|
|
128
|
+
code before dispatch. It preserves the original arguments, working directory,
|
|
129
|
+
environment and streams. It restarts only on an explicit pre-dispatch refresh
|
|
130
|
+
request; an arbitrary child exit 75 never repeats work. A second refresh,
|
|
131
|
+
debugger session, direct Deno/Bun launcher or uninspectable package retains
|
|
132
|
+
exit 75 and requires a new invocation. Node invocations with
|
|
133
|
+
`--preserve-symlinks-main` are refused with status 75 because that flag
|
|
134
|
+
prevents proving which physical bin loaded; remove the flag and rerun.
|
|
67
135
|
- This still avoids the peer-resolution problems we observed with `pnpm link`
|
|
68
136
|
when Loom is consumed by React apps.
|
|
69
137
|
- Treat this as a workaround for current pnpm behavior, not a permanent
|
|
70
138
|
preference. If pnpm's local-link behavior changes enough to preserve peer
|
|
71
139
|
resolution cleanly for Loom, this workaround can be revisited or removed.
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
140
|
+
- Stay in local mode while developing and testing unpublished Loom changes;
|
|
141
|
+
neither a dirty Loom checkout nor a feature branch requires publication for
|
|
142
|
+
local testing. Run `loom dev sync` after Loom edits, then the consumer's
|
|
143
|
+
recorded test/dev/build task. A consumer task that does not invoke Loom does
|
|
144
|
+
not trigger automatic sync, so do not assume a plain `next dev` or `vitest`
|
|
145
|
+
command refreshed the installed package. The noninteractive Node launcher
|
|
146
|
+
normally handles a refresh once. If a command still exits 75, rerun it; that
|
|
147
|
+
exit requests fresh CLI code, not a release. Use `loom dev diagnose` for
|
|
148
|
+
read-only paths, versions, fingerprints and installed parity. Diagnostics do
|
|
149
|
+
not sync or prove publication readiness, and do not print environment values.
|
|
150
|
+
- Before an app release, CD build, or push that triggers production, switch back
|
|
151
|
+
with `loom dev published`, run the printed install command (`pnpm install`,
|
|
152
|
+
`deno install`, or `bun install --linker isolated`), and pass
|
|
153
|
+
`loom check --production`. With Bun, rerun `loom dev published` after install
|
|
154
|
+
to verify the registry copy and clear local state. Publish Loom first only if
|
|
155
|
+
that app actually needs package changes not covered by an existing release.
|
|
156
|
+
Keep local overrides and local lockfile resolutions out of release commits. A
|
|
157
|
+
lockfile linked by an older Loom through `pnpm update --no-save` keeps its
|
|
158
|
+
local resolution through a plain install; restore that lockfile from git when
|
|
159
|
+
it has no other intended changes, as `loom dev published` explains.
|
|
160
|
+
- Each Loom build records its provenance in `<selected-package>/.loom-build.json` (kept out of
|
|
78
161
|
the packed package): the git commit it was built from, whether that checkout
|
|
79
162
|
was dirty, and a digest of the packed output. Dirty means tracked changes,
|
|
80
163
|
untracked files git does not ignore, files marked skip-worktree or
|
|
@@ -155,3 +238,152 @@
|
|
|
155
238
|
- Publishing Loom makes a version available, but it should not move unrelated
|
|
156
239
|
consumer apps; each app upgrades only through its own package and lockfile
|
|
157
240
|
changes.
|
|
241
|
+
|
|
242
|
+
## Bootstrap an older installed CLI
|
|
243
|
+
|
|
244
|
+
A fix in the source checkout is unavailable to a CLI that already loaded an
|
|
245
|
+
older published release. Run the checkout's CLI directly when that older CLI
|
|
246
|
+
cannot complete the first local sync. A fresh checkout needs its generated npm
|
|
247
|
+
artifact before it can be linked:
|
|
248
|
+
|
|
249
|
+
```sh
|
|
250
|
+
LOOM_CHECKOUT=/path/to/loom
|
|
251
|
+
LOOM_APP=/path/to/consumer
|
|
252
|
+
|
|
253
|
+
deno task --config "$LOOM_CHECKOUT/deno.json" build
|
|
254
|
+
deno run -A --config "$LOOM_CHECKOUT/deno.json" \
|
|
255
|
+
"$LOOM_CHECKOUT/bin/loom.ts" --cwd "$LOOM_APP" dev local "$LOOM_CHECKOUT"
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
For an already-linked consumer, replace `dev local "$LOOM_CHECKOUT"` with
|
|
259
|
+
`dev sync`. The explicit config uses the checkout's own dependencies and
|
|
260
|
+
builder; the consumer keeps its recorded manager. Both paths can test dirty,
|
|
261
|
+
unpublished Loom. The direct source launcher retains the safe exit-75 fallback
|
|
262
|
+
for ordinary commands, so use the installed CLI again after sync.
|
|
263
|
+
|
|
264
|
+
Run the consumer's recorded test/dev/build task after syncing. Plain Next.js or
|
|
265
|
+
Vitest tasks that do not invoke Loom need an explicit sync after subsequent Loom
|
|
266
|
+
edits. This remains a generated-artifact workflow; it does not provide live
|
|
267
|
+
source imports or remove the build step.
|
|
268
|
+
|
|
269
|
+
For app release/CD, run `loom dev published`, follow its install instructions,
|
|
270
|
+
then run `loom check --production`. If the installed local build contains new
|
|
271
|
+
package behavior, publish Loom before releasing that app; a release is not
|
|
272
|
+
needed for the preceding local edit/test loop. Never remove a local override
|
|
273
|
+
manually to bypass an unproven build.
|
|
274
|
+
|
|
275
|
+
## Opt-in Next.js library source mode
|
|
276
|
+
|
|
277
|
+
Generated mode remains the default. Source mode is an explicit opt-in layered on
|
|
278
|
+
an existing managed `loom dev local <checkout>` installation. It is initially
|
|
279
|
+
supported for standalone Next.js projects using project-local pnpm or Bun
|
|
280
|
+
isolated installs and package-owned tasks. Deno task owners, Deno links and
|
|
281
|
+
enclosing/global stores remain on generated mode. The consumer needs the native
|
|
282
|
+
Loom artifact with this source-mode helper; an older installed CLI/package must
|
|
283
|
+
first use the checkout bootstrap above.
|
|
284
|
+
|
|
285
|
+
Wrap a Next config object or asynchronous factory with the new helper, passing
|
|
286
|
+
the config's own URL:
|
|
287
|
+
|
|
288
|
+
```ts
|
|
289
|
+
import { withLoomSource } from "@gadicc/loom/next/source-dev";
|
|
290
|
+
import type { NextConfig } from "next";
|
|
291
|
+
|
|
292
|
+
const nextConfig: NextConfig = {
|
|
293
|
+
// Keep the app's existing options.
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export default withLoomSource(nextConfig, import.meta.url);
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
The CLI statically verifies this final wrapper expression. Comments and strings
|
|
300
|
+
are not proof of installation. For a complex config containing template literals
|
|
301
|
+
or regular expressions, move the existing config into an imported module and
|
|
302
|
+
keep `next.config.ts`/`.mjs` as a small wrapper. The URL matters when Next is
|
|
303
|
+
invoked from a parent directory. The helper returns a Next config function, adds
|
|
304
|
+
`transpilePackages` only while source mode is active and permits source only
|
|
305
|
+
during the development-server phase. A build cannot bypass the block by setting
|
|
306
|
+
`NODE_ENV=development`.
|
|
307
|
+
|
|
308
|
+
```sh
|
|
309
|
+
loom dev local /path/to/loom
|
|
310
|
+
loom dev source --watch
|
|
311
|
+
# In another terminal, run the app's existing dev task.
|
|
312
|
+
loom dev diagnose
|
|
313
|
+
loom dev sync
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
`dev source` without `--watch` performs one reconciliation. `dev sync` in source
|
|
317
|
+
mode reconciles library source without a package rebuild or install. The mirror
|
|
318
|
+
lives inside the consumer so React/MUI resolve from the app; only Loom's hard
|
|
319
|
+
dependencies are bound to its installed package graph. Source edits, additions,
|
|
320
|
+
removals and renames are reconciled; deleted wildcard exports have no fallback
|
|
321
|
+
to stale compiled JavaScript. Existing TypeScript consumers need bundler module
|
|
322
|
+
resolution, `noEmit` and `allowImportingTsExtensions` for raw source imports.
|
|
323
|
+
Set the following explicitly in the app's `tsconfig.json`, preserving existing
|
|
324
|
+
options and exclusions; the bounded activation preflight cannot prove inherited
|
|
325
|
+
compiler options:
|
|
326
|
+
|
|
327
|
+
```json
|
|
328
|
+
{
|
|
329
|
+
"compilerOptions": {
|
|
330
|
+
"allowImportingTsExtensions": true,
|
|
331
|
+
"noEmit": true,
|
|
332
|
+
"moduleResolution": "bundler",
|
|
333
|
+
"lib": ["ES2024", "DOM", "DOM.Iterable"]
|
|
334
|
+
},
|
|
335
|
+
"exclude": ["node_modules", ".loom/source-package"]
|
|
336
|
+
}
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
ESNext or newer library settings also work. Excluding the mirror prevents broad
|
|
340
|
+
app globs from adding unused modules and global declarations; TypeScript still
|
|
341
|
+
follows and checks imported source. Raw imports can expose source diagnostics
|
|
342
|
+
that `skipLibCheck` hides in generated declarations, including app global type
|
|
343
|
+
conflicts. Porty's raw PWA imports exposed a Serwist Window augmentation clash;
|
|
344
|
+
Loom now leaves that interface to Serwist while retaining its helper typing.
|
|
345
|
+
|
|
346
|
+
The config helper also preserves a factory's phase, context and asynchronous
|
|
347
|
+
result. Its `default` export condition supports Next's `require()` config loader
|
|
348
|
+
using the same ESM module on Node 22.13 or newer; no CJS artifact is added. The
|
|
349
|
+
installed compiled CLI, Next config guard, runtime DB helpers and packaged
|
|
350
|
+
assets remain authoritative. Changing their transitive code, metadata or
|
|
351
|
+
dependencies requires a generated rebuild, rather than silently mixing old CLI
|
|
352
|
+
behavior with new library contracts.
|
|
353
|
+
|
|
354
|
+
Ctrl-C stops watching **without disabling source mode**. A killed watcher's
|
|
355
|
+
stale lease can be recovered after the shared lock's observation period; a
|
|
356
|
+
second live watcher must wait or be stopped. Temporary missing files during
|
|
357
|
+
editor saves are reported and retried automatically. `dev diagnose` reports
|
|
358
|
+
mirror freshness separately from watcher state. Source mode is persisted in
|
|
359
|
+
`loom.json` under `development.source`; private mirror/state/lock files are
|
|
360
|
+
ignored. Both `loom check --production` and the Next config wrapper refuse
|
|
361
|
+
active, detached or incomplete source transitions. Do not delete the marker to
|
|
362
|
+
work around a failed transition.
|
|
363
|
+
|
|
364
|
+
A package install can replace the source alias. Stop Next, run
|
|
365
|
+
`loom dev source --watch` again and restart Next. The workflow rebinds a valid
|
|
366
|
+
compiled installation and never restores an older install over a newer one.
|
|
367
|
+
Unexpected overlay dependencies (including duplicate React/MUI), redirected
|
|
368
|
+
paths and missing ownership state fail with repair guidance. A stopped/crashed
|
|
369
|
+
watcher does not authorize a release or silently switch back to generated code.
|
|
370
|
+
|
|
371
|
+
To leave source mode:
|
|
372
|
+
|
|
373
|
+
```sh
|
|
374
|
+
loom dev generated
|
|
375
|
+
loom dev published
|
|
376
|
+
# Follow the existing manager-specific published install/readback instructions.
|
|
377
|
+
loom check --production
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
`dev generated` restores the compiled alias and rebuilds/refreshes the selected
|
|
381
|
+
checkout. Only verified fresh generated output clears the source marker; a
|
|
382
|
+
failed rebuild leaves a recoverable release block. `dev published` remains a
|
|
383
|
+
separate release-proof operation and refuses while source mode is active. Dirty
|
|
384
|
+
and unpublished changes can be tested locally throughout; publish Loom only when
|
|
385
|
+
the app release needs package changes not covered by an existing release. The
|
|
386
|
+
helper is a new public API in the upcoming major: committed app config that
|
|
387
|
+
imports it needs that Loom release before the app can return to a registry pin.
|
|
388
|
+
No app is upgraded automatically. Plain Node consumers continue using generated
|
|
389
|
+
JavaScript/declarations; this opt-in does not publish TypeScript-only exports.
|
|
@@ -14,9 +14,16 @@ required smoke check. Preserve the configured project-token or team-token mode.
|
|
|
14
14
|
- After `vercel pull`, or after project-scoped preparation with
|
|
15
15
|
`loom db release prepare-vercel-project production`, treat
|
|
16
16
|
`.vercel/.env.<target>.local` as a plaintext secret file. Mask usable pulled
|
|
17
|
-
values before build output
|
|
18
|
-
`
|
|
19
|
-
|
|
17
|
+
values before build output with a step running
|
|
18
|
+
`loom db release mask-env .vercel/.env.<target>.local` (through the app's
|
|
19
|
+
package runner, for example `pnpm exec`) instead of an inline `::add-mask::`
|
|
20
|
+
script. It reads the file directly, skips only values shorter than 8
|
|
21
|
+
characters and names public by construction (`NEXT_PUBLIC_*`, `VERCEL_GIT_*`,
|
|
22
|
+
and listed non-secret Vercel system variables), masks every other name
|
|
23
|
+
including `VERCEL_AUTOMATION_BYPASS_SECRET` and `TURBO_TOKEN`, and masks
|
|
24
|
+
multi-line values line by line. Sensitive values are not readable there or
|
|
25
|
+
through `vercel env run`; CLI versions may write either an empty value or a
|
|
26
|
+
redaction sentinel.
|
|
20
27
|
- For external prebuilds, query Vercel env metadata, preserve usable pulled
|
|
21
28
|
values, add unique build-only placeholders only for confirmed Sensitive
|
|
22
29
|
entries, and reject any marker across the complete deployable artifact graph,
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
the deployable artifact.
|
|
28
28
|
- Treat `.vercel/.env.<target>.local` as a plaintext secret file even though
|
|
29
29
|
Sensitive entries are redacted. Keep it ignored, mask usable pulled values in
|
|
30
|
-
GitHub Actions
|
|
30
|
+
GitHub Actions with `loom db release mask-env <env-file>`, and never cache or
|
|
31
|
+
upload it as an artifact.
|
|
31
32
|
- `vercel env run` does not provide Sensitive values either. A command that
|
|
32
33
|
genuinely needs a secret outside Vercel runtime needs a separately governed
|
|
33
34
|
secret source; do not reuse a build placeholder.
|
|
@@ -38,6 +38,7 @@ contract.
|
|
|
38
38
|
`POSTAL_FROM_EMAIL` must be a bare address, never `Name <address>`.
|
|
39
39
|
`POSTAL_FROM_NAME` is optional. The webhook value is a JSON array of RSA
|
|
40
40
|
public JWKs with `kid`; it is not a shared secret.
|
|
41
|
+
|
|
41
42
|
6. If jobs is active, register the generated `mail-drain` module in the app's
|
|
42
43
|
full and metadata catalogs and choose an app-owned schedule.
|
|
43
44
|
7. Configure Postal to POST signed events to the generated webhook route.
|
|
@@ -199,7 +199,8 @@ The app-local workflow must:
|
|
|
199
199
|
|
|
200
200
|
1. install frozen dependencies and hydrate Loom's ignored skill links;
|
|
201
201
|
2. run typecheck, Biome, tests, and `loom check --production`;
|
|
202
|
-
3. pull Vercel Production settings and mask readable secrets
|
|
202
|
+
3. pull Vercel Production settings and mask readable secrets with
|
|
203
|
+
`loom db release mask-env .vercel/.env.production.local`;
|
|
203
204
|
4. prepare metadata-backed placeholders only for unreadable Sensitive values;
|
|
204
205
|
5. validate the preserved migration environment with `--connect`;
|
|
205
206
|
6. build and scan the exact prebuilt artifact;
|
|
@@ -48,8 +48,10 @@ For Deno projects:
|
|
|
48
48
|
|
|
49
49
|
When upgrading Loom itself, treat it as the Loom source package rather than a
|
|
50
50
|
consumer: it does not need `loom.json` or `loom check --production`. Run
|
|
51
|
-
`
|
|
52
|
-
|
|
51
|
+
`bun run format` first, then `bun run check`; the gate checks formatting/import
|
|
52
|
+
order, lint, production types, both test runtimes and the publishable npm build
|
|
53
|
+
without changing source. `deno task check` retains quality plus Deno parity.
|
|
54
|
+
Loom's generated `npm/` directory is ignored verification output, so
|
|
53
55
|
never edit or stage it by hand.
|
|
54
56
|
|
|
55
57
|
## 2. Inventory and group upgrades
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import process from "node:process";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
|
|
5
|
+
// Capture the executing module before a consumer alias can be retargeted.
|
|
6
|
+
// Node source invocations retain the manual refresh path.
|
|
7
|
+
const physicalEntryPath = import.meta.url.endsWith(".js")
|
|
8
|
+
? fileURLToPath(import.meta.url)
|
|
9
|
+
: undefined;
|
|
10
|
+
const versions = process.versions as Record<string, string | undefined>;
|
|
11
|
+
const nodeRuntime = !versions.deno && !versions.bun;
|
|
12
|
+
const preservedMain =
|
|
13
|
+
process.execArgv.some((arg) =>
|
|
14
|
+
/^--preserve-symlinks-main(?:=|$)/.test(arg),
|
|
15
|
+
) ||
|
|
16
|
+
/(?:^|[\s"'])--preserve-symlinks-main(?:=|[\s"']|$)/.test(
|
|
17
|
+
process.env.NODE_OPTIONS ?? "",
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
// Refuse before resolving relative helpers: with a preserved main symlink,
|
|
21
|
+
// even importing the bootstrap would resolve beside the consumer's .bin alias.
|
|
22
|
+
if (nodeRuntime && preservedMain) {
|
|
23
|
+
console.error(
|
|
24
|
+
"Loom cannot verify its executing bin with --preserve-symlinks-main. Remove that Node flag and re-run the original command (exit status 75).",
|
|
25
|
+
);
|
|
26
|
+
process.exitCode = 75;
|
|
27
|
+
} else {
|
|
28
|
+
import("../src/cli/cliBootstrap.ts")
|
|
29
|
+
.then(({ runCliBootstrap }) =>
|
|
30
|
+
runCliBootstrap(
|
|
31
|
+
process.argv.slice(2),
|
|
32
|
+
() => import("../src/cli/mod.ts"),
|
|
33
|
+
{
|
|
34
|
+
physicalEntryPath,
|
|
35
|
+
},
|
|
36
|
+
),
|
|
37
|
+
)
|
|
38
|
+
.then(({ code, signal }) => {
|
|
39
|
+
if (signal) {
|
|
40
|
+
// Preserve signal termination after the bootstrap drops its handlers.
|
|
41
|
+
process.kill(process.pid, signal);
|
|
42
|
+
} else {
|
|
43
|
+
process.exitCode = code;
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
.catch((error) => {
|
|
47
|
+
console.error(error);
|
|
48
|
+
process.exitCode = 1;
|
|
49
|
+
});
|
|
50
|
+
}
|
package/source/mod.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./src/apiKeys/mod.ts";
|
|
2
|
+
export * from "./src/clientData/mod.ts";
|
|
3
|
+
export * from "./src/files/mod.ts";
|
|
4
|
+
export * from "./src/jobs/mod.ts";
|
|
5
|
+
export * from "./src/mail/mod.ts";
|
|
6
|
+
export * from "./src/next/auth/mod.ts";
|
|
7
|
+
export * from "./src/next/apiKeys/mod.ts";
|
|
8
|
+
export * from "./src/next/files/mod.ts";
|
|
9
|
+
export * from "./src/next/jobs/mod.ts";
|
|
10
|
+
export * from "./src/next/mail/mod.ts";
|