@gadicc/loom 1.38.0 → 2.0.1
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 +103 -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 +33 -28
- 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 +7 -4
- package/esm/src/cli/migrationEnv.js.map +1 -0
- package/esm/src/cli/mod.d.ts +19 -7
- package/esm/src/cli/mod.d.ts.map +1 -1
- package/esm/src/cli/mod.js +2010 -745
- 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 +21 -15
- package/esm/src/cli/vercelBuildEnv.js.map +1 -0
- package/esm/src/cli/vercelEnvMask.d.ts +2 -2
- package/esm/src/cli/vercelEnvMask.d.ts.map +1 -1
- package/esm/src/cli/vercelEnvMask.js +8 -4
- 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 +45 -22
- package/esm/src/cli/vercelProjectRelease.js.map +1 -0
- package/esm/src/cli/vercelPulledEnv.d.ts +1 -1
- package/esm/src/cli/vercelPulledEnv.d.ts.map +1 -1
- package/esm/src/cli/vercelPulledEnv.js +1 -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/esm-package.md +35 -0
- package/skills/loom/references/local-development.md +261 -29
- package/skills/loom-mail/SKILL.md +1 -0
- 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 +26794 -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 -582
- package/script/src/cli/mod.d.ts.map +0 -1
- package/script/src/cli/mod.js +0 -17010
- 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 -418
- package/script/src/cli/vercelEnvMask.d.ts +0 -38
- package/script/src/cli/vercelEnvMask.d.ts.map +0 -1
- package/script/src/cli/vercelEnvMask.js +0 -142
- 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/cli/vercelPulledEnv.d.ts +0 -65
- package/script/src/cli/vercelPulledEnv.d.ts.map +0 -1
- package/script/src/cli/vercelPulledEnv.js +0 -138
- 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
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LOCAL_DEV_LOCK_TIMEOUT_MS = exports.LOCAL_DEV_LOCK_LIVE_HOLDER_STALE_AFTER_MS = exports.LOCAL_DEV_LOCK_STALE_AFTER_MS = exports.LOCAL_DEV_LOCK_HEARTBEAT_MS = void 0;
|
|
7
|
-
exports.breakStaleLock = breakStaleLock;
|
|
8
|
-
exports.withLocalDevLock = withLocalDevLock;
|
|
9
|
-
const node_crypto_1 = require("node:crypto");
|
|
10
|
-
const node_fs_1 = require("node:fs");
|
|
11
|
-
const promises_1 = require("node:fs/promises");
|
|
12
|
-
const node_os_1 = require("node:os");
|
|
13
|
-
const node_path_1 = require("node:path");
|
|
14
|
-
const node_process_1 = __importDefault(require("node:process"));
|
|
15
|
-
/** Holders refresh the lock this often while they run. */
|
|
16
|
-
exports.LOCAL_DEV_LOCK_HEARTBEAT_MS = 5_000;
|
|
17
|
-
/**
|
|
18
|
-
* A lock nobody refreshed for this long is stale whatever its host or PID:
|
|
19
|
-
* its holder crashed, was killed, or is on a machine that went away.
|
|
20
|
-
*/
|
|
21
|
-
exports.LOCAL_DEV_LOCK_STALE_AFTER_MS = 60_000;
|
|
22
|
-
/**
|
|
23
|
-
* A holder on this host whose process still exists (paused with Ctrl-Z or
|
|
24
|
-
* stopped in a debugger, say) keeps its lock this long without refreshing.
|
|
25
|
-
*/
|
|
26
|
-
exports.LOCAL_DEV_LOCK_LIVE_HOLDER_STALE_AFTER_MS = 5 * 60_000;
|
|
27
|
-
/** Default wait for another sync; well beyond the stale thresholds. */
|
|
28
|
-
exports.LOCAL_DEV_LOCK_TIMEOUT_MS = 10 * 60_000;
|
|
29
|
-
/**
|
|
30
|
-
* Before breaking a lock, a waiter must itself see it unrefreshed for this
|
|
31
|
-
* long, which spans two heartbeats. That protects live holders after a
|
|
32
|
-
* suspend/resume, under clock skew, and in another PID namespace.
|
|
33
|
-
*/
|
|
34
|
-
const MIN_UNREFRESHED_OBSERVATION_MS = 12_000;
|
|
35
|
-
// A longer gap between polls means this process was suspended, so earlier
|
|
36
|
-
// observations say nothing about the holder.
|
|
37
|
-
const MAX_POLL_GAP_MS = 10_000;
|
|
38
|
-
// Breaking a lock takes milliseconds; an older break lock is from a crash.
|
|
39
|
-
const BREAK_LOCK_STALE_AFTER_MS = 10_000;
|
|
40
|
-
const DEFAULT_SIGNALS = ["SIGHUP", "SIGINT", "SIGTERM"];
|
|
41
|
-
function errorCode(error) {
|
|
42
|
-
return error?.code;
|
|
43
|
-
}
|
|
44
|
-
function defaultIsProcessAlive(pid) {
|
|
45
|
-
if (pid === node_process_1.default.pid)
|
|
46
|
-
return true;
|
|
47
|
-
try {
|
|
48
|
-
node_process_1.default.kill(pid, 0);
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
// Only ESRCH proves the process is gone. EPERM means it belongs to
|
|
53
|
-
// someone else, and a sandbox may refuse the probe.
|
|
54
|
-
return errorCode(error) !== "ESRCH";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function parseHolder(text) {
|
|
58
|
-
try {
|
|
59
|
-
const value = JSON.parse(text);
|
|
60
|
-
return typeof value.pid === "number" &&
|
|
61
|
-
typeof value.hostname === "string" &&
|
|
62
|
-
typeof value.startedAt === "string" &&
|
|
63
|
-
typeof value.token === "string"
|
|
64
|
-
? value
|
|
65
|
-
: null;
|
|
66
|
-
}
|
|
67
|
-
catch {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
async function readLock(lockPath) {
|
|
72
|
-
try {
|
|
73
|
-
const [text, lockStat] = await Promise.all([
|
|
74
|
-
(0, promises_1.readFile)(lockPath, "utf8"),
|
|
75
|
-
(0, promises_1.stat)(lockPath),
|
|
76
|
-
]);
|
|
77
|
-
return { holder: parseHolder(text), mtimeMs: lockStat.mtimeMs, text };
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
if (errorCode(error) === "ENOENT")
|
|
81
|
-
return null;
|
|
82
|
-
throw error;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/** Removes the lock only if it still has the content this process read. */
|
|
86
|
-
async function unlinkIfUnchanged(lockPath, text) {
|
|
87
|
-
try {
|
|
88
|
-
if (await (0, promises_1.readFile)(lockPath, "utf8") === text)
|
|
89
|
-
await (0, promises_1.unlink)(lockPath);
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
if (errorCode(error) !== "ENOENT")
|
|
93
|
-
throw error;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/** Creates a file exclusively with `text`, or returns false if it exists. */
|
|
97
|
-
async function createExclusive(path, text) {
|
|
98
|
-
const handle = await (0, promises_1.open)(path, "wx").catch((error) => {
|
|
99
|
-
if (errorCode(error) === "EEXIST")
|
|
100
|
-
return null;
|
|
101
|
-
throw error;
|
|
102
|
-
});
|
|
103
|
-
if (!handle)
|
|
104
|
-
return false;
|
|
105
|
-
try {
|
|
106
|
-
await handle.writeFile(text, "utf8");
|
|
107
|
-
await handle.close();
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
await handle.close().catch(() => { });
|
|
111
|
-
await (0, promises_1.unlink)(path).catch(() => { });
|
|
112
|
-
throw error;
|
|
113
|
-
}
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Removes a stale lock while holding `<lock>.break`, so that waiters break
|
|
118
|
-
* a crashed lock one at a time. Each breaker re-reads the lock under the
|
|
119
|
-
* break lock and removes it only if it still has the stale content, so a
|
|
120
|
-
* later breaker can never remove the fresh lock a previous waiter created.
|
|
121
|
-
* Returns false when another process is breaking it; the caller re-checks.
|
|
122
|
-
*/
|
|
123
|
-
async function breakStaleLock(lockPath, staleText, options) {
|
|
124
|
-
const breakPath = `${lockPath}.break`;
|
|
125
|
-
const breakText = `${(0, node_crypto_1.randomUUID)()}\n`;
|
|
126
|
-
if (!await createExclusive(breakPath, breakText)) {
|
|
127
|
-
const breakLock = await readLock(breakPath);
|
|
128
|
-
if (breakLock &&
|
|
129
|
-
options.now() - breakLock.mtimeMs > BREAK_LOCK_STALE_AFTER_MS) {
|
|
130
|
-
await unlinkIfUnchanged(breakPath, breakLock.text);
|
|
131
|
-
}
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
try {
|
|
135
|
-
const current = await (0, promises_1.readFile)(lockPath, "utf8").catch((error) => {
|
|
136
|
-
if (errorCode(error) === "ENOENT")
|
|
137
|
-
return null;
|
|
138
|
-
throw error;
|
|
139
|
-
});
|
|
140
|
-
if (current === staleText) {
|
|
141
|
-
await options.beforeBreak?.();
|
|
142
|
-
await unlinkIfUnchanged(lockPath, staleText);
|
|
143
|
-
}
|
|
144
|
-
return true;
|
|
145
|
-
}
|
|
146
|
-
finally {
|
|
147
|
-
await unlinkIfUnchanged(breakPath, breakText);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
function describeHolder(holder) {
|
|
151
|
-
return holder
|
|
152
|
-
? `process ${holder.pid} on ${holder.hostname}, started ${holder.startedAt}`
|
|
153
|
-
: "a process whose lock record is unreadable";
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Runs `run` while holding an exclusive lock file, so concurrent Loom
|
|
157
|
-
* commands in one project do not rebuild and reinstall the linked package at
|
|
158
|
-
* the same time. A waiting process runs `run` after the holder finishes, so
|
|
159
|
-
* it re-checks freshness instead of repeating the work.
|
|
160
|
-
*
|
|
161
|
-
* The holder refreshes the lock's modification time every `heartbeatMs` and
|
|
162
|
-
* removes it on SIGHUP/SIGINT/SIGTERM. A waiter breaks a lock it has seen
|
|
163
|
-
* unrefreshed for `staleAfterMs`, whatever its host or PID, or sooner (after
|
|
164
|
-
* two missed heartbeats) when the lock is already older than that or its
|
|
165
|
-
* process is gone on this host. Waiting longer than `timeoutMs` fails with a
|
|
166
|
-
* message naming the holder and the lock file.
|
|
167
|
-
*/
|
|
168
|
-
async function withLocalDevLock(lockPath, run, options = {}) {
|
|
169
|
-
const now = options.now ?? Date.now;
|
|
170
|
-
const sleep = options.sleep ??
|
|
171
|
-
((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
|
|
172
|
-
const hostname = options.hostname ?? (0, node_os_1.hostname)();
|
|
173
|
-
const isProcessAlive = options.isProcessAlive ?? defaultIsProcessAlive;
|
|
174
|
-
const timeoutMs = options.timeoutMs ?? exports.LOCAL_DEV_LOCK_TIMEOUT_MS;
|
|
175
|
-
const staleAfterMs = options.staleAfterMs ?? exports.LOCAL_DEV_LOCK_STALE_AFTER_MS;
|
|
176
|
-
const pollMs = options.pollMs ?? 250;
|
|
177
|
-
const deadline = now() + timeoutMs;
|
|
178
|
-
const own = {
|
|
179
|
-
hostname,
|
|
180
|
-
pid: node_process_1.default.pid,
|
|
181
|
-
startedAt: "",
|
|
182
|
-
token: (0, node_crypto_1.randomUUID)(),
|
|
183
|
-
};
|
|
184
|
-
let ownText = "";
|
|
185
|
-
let waited = false;
|
|
186
|
-
// What this waiter has seen of the current lock, by its own clock.
|
|
187
|
-
let observed = null;
|
|
188
|
-
await (0, promises_1.mkdir)((0, node_path_1.dirname)(lockPath), { recursive: true });
|
|
189
|
-
while (true) {
|
|
190
|
-
own.startedAt = new Date(now()).toISOString();
|
|
191
|
-
ownText = `${JSON.stringify(own)}\n`;
|
|
192
|
-
if (await createExclusive(lockPath, ownText))
|
|
193
|
-
break;
|
|
194
|
-
const lock = await readLock(lockPath);
|
|
195
|
-
if (!lock)
|
|
196
|
-
continue;
|
|
197
|
-
const holder = lock.holder;
|
|
198
|
-
const time = now();
|
|
199
|
-
const signature = `${lock.mtimeMs}:${lock.text}`;
|
|
200
|
-
if (!observed || observed.signature !== signature ||
|
|
201
|
-
time - observed.lastPoll > MAX_POLL_GAP_MS) {
|
|
202
|
-
observed = { lastPoll: time, signature, since: time };
|
|
203
|
-
}
|
|
204
|
-
observed.lastPoll = time;
|
|
205
|
-
const unrefreshedFor = time - observed.since;
|
|
206
|
-
const onThisHost = holder !== null && holder.hostname === hostname;
|
|
207
|
-
const aliveHere = onThisHost && isProcessAlive(holder.pid);
|
|
208
|
-
const deadHere = onThisHost && !aliveHere;
|
|
209
|
-
// A process that still exists here is probably paused, not gone.
|
|
210
|
-
const unrefreshedLimit = aliveHere
|
|
211
|
-
? Math.max(staleAfterMs, exports.LOCAL_DEV_LOCK_LIVE_HOLDER_STALE_AFTER_MS)
|
|
212
|
-
: staleAfterMs;
|
|
213
|
-
const stale = unrefreshedFor >= unrefreshedLimit ||
|
|
214
|
-
(unrefreshedFor >= MIN_UNREFRESHED_OBSERVATION_MS &&
|
|
215
|
-
(deadHere ||
|
|
216
|
-
(!aliveHere && time - lock.mtimeMs >= staleAfterMs)));
|
|
217
|
-
if (stale) {
|
|
218
|
-
if (await breakStaleLock(lockPath, lock.text, {
|
|
219
|
-
beforeBreak: options.beforeBreak,
|
|
220
|
-
now,
|
|
221
|
-
})) {
|
|
222
|
-
observed = null;
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
else if (!waited) {
|
|
227
|
-
waited = true;
|
|
228
|
-
options.onWait?.(holder);
|
|
229
|
-
}
|
|
230
|
-
if (now() >= deadline) {
|
|
231
|
-
throw new Error(`Timed out after ${Math.round(timeoutMs / 1000)}s waiting for another Loom dev sync (${describeHolder(holder)}) that holds ${lockPath}. If no Loom command is running in this project, delete that file and rerun.`);
|
|
232
|
-
}
|
|
233
|
-
await sleep(pollMs);
|
|
234
|
-
}
|
|
235
|
-
let lost = false;
|
|
236
|
-
const heartbeat = setInterval(() => {
|
|
237
|
-
(0, promises_1.readFile)(lockPath, "utf8")
|
|
238
|
-
.then((text) => {
|
|
239
|
-
if (text !== ownText) {
|
|
240
|
-
lost = true;
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
if (options.touch)
|
|
244
|
-
return options.touch(lockPath);
|
|
245
|
-
const time = new Date();
|
|
246
|
-
return (0, promises_1.utimes)(lockPath, time, time);
|
|
247
|
-
})
|
|
248
|
-
.catch(() => { });
|
|
249
|
-
}, options.heartbeatMs ?? exports.LOCAL_DEV_LOCK_HEARTBEAT_MS);
|
|
250
|
-
const handle = {
|
|
251
|
-
waited,
|
|
252
|
-
assertHeld: async (changesMade = false) => {
|
|
253
|
-
let text = null;
|
|
254
|
-
for (let attempt = 1;; attempt += 1) {
|
|
255
|
-
try {
|
|
256
|
-
text = await (0, promises_1.readFile)(lockPath, "utf8");
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
catch (error) {
|
|
260
|
-
if (errorCode(error) === "ENOENT")
|
|
261
|
-
break;
|
|
262
|
-
if (attempt >= 3) {
|
|
263
|
-
throw new Error(`Could not read the dev sync lock ${lockPath}: ${error.message}`);
|
|
264
|
-
}
|
|
265
|
-
await sleep(50 * attempt);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
if (text !== ownText)
|
|
269
|
-
lost = true;
|
|
270
|
-
if (lost) {
|
|
271
|
-
throw new Error(`This Loom command lost the dev sync lock (${lockPath}): it stopped refreshing it, for example while paused, and another Loom command took over. ${changesMade
|
|
272
|
-
? "It had already changed the project (an override, build, or install) and stopped there; run `loom dev sync` to bring the local Loom package up to date."
|
|
273
|
-
: "It stopped before making changes; rerun it."}`);
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
};
|
|
277
|
-
// The heartbeat must never keep a finished command alive.
|
|
278
|
-
heartbeat.unref?.();
|
|
279
|
-
const signalTarget = options.signalTarget ??
|
|
280
|
-
node_process_1.default;
|
|
281
|
-
const signals = options.signals ?? DEFAULT_SIGNALS;
|
|
282
|
-
const handledSignals = [];
|
|
283
|
-
const removeSignalHandlers = () => {
|
|
284
|
-
for (const signal of handledSignals.splice(0)) {
|
|
285
|
-
signalTarget.off(signal, onSignal);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
// Release synchronously, then re-raise so the default action still ends
|
|
289
|
-
// the process with the usual signal status.
|
|
290
|
-
function onSignal(signal) {
|
|
291
|
-
clearInterval(heartbeat);
|
|
292
|
-
try {
|
|
293
|
-
if ((0, node_fs_1.readFileSync)(lockPath, "utf8") === ownText)
|
|
294
|
-
(0, node_fs_1.unlinkSync)(lockPath);
|
|
295
|
-
}
|
|
296
|
-
catch {
|
|
297
|
-
// Gone already, or unreadable: nothing to release.
|
|
298
|
-
}
|
|
299
|
-
removeSignalHandlers();
|
|
300
|
-
signalTarget.kill(node_process_1.default.pid, signal);
|
|
301
|
-
}
|
|
302
|
-
for (const signal of signals) {
|
|
303
|
-
try {
|
|
304
|
-
signalTarget.on(signal, onSignal);
|
|
305
|
-
handledSignals.push(signal);
|
|
306
|
-
}
|
|
307
|
-
catch {
|
|
308
|
-
// Some runtimes cannot listen for every signal (Deno on Windows).
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
try {
|
|
312
|
-
return await run(handle);
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
clearInterval(heartbeat);
|
|
316
|
-
removeSignalHandlers();
|
|
317
|
-
// Never remove a lock another process took over after judging ours stale.
|
|
318
|
-
await unlinkIfUnchanged(lockPath, ownText);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loom repository paths whose content can change the generated npm package.
|
|
3
|
-
* Release equivalence (`git diff`) and local build fingerprints share this list.
|
|
4
|
-
* It includes every script `scripts/build_npm.ts` imports.
|
|
5
|
-
*/
|
|
6
|
-
export declare const LOOM_PACKAGE_RELEVANT_PATHS: readonly string[];
|
|
7
|
-
/**
|
|
8
|
-
* Build stamp written into Loom's `npm/` output by `scripts/build_npm.ts`.
|
|
9
|
-
* The build excludes it from the packed package, so it never reaches npm or a
|
|
10
|
-
* consumer's `node_modules`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const LOOM_BUILD_STAMP_FILE = ".loom-build.json";
|
|
13
|
-
/** Content identity and provenance of one local Loom npm build. */
|
|
14
|
-
export type LoomBuildStamp = {
|
|
15
|
-
/** Package version the build wrote into `npm/package.json`. */
|
|
16
|
-
packageVersion?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Git HEAD of the Loom checkout when the build started, or null when git
|
|
19
|
-
* could not tell. Absent from stamps written before builds recorded it.
|
|
20
|
-
*/
|
|
21
|
-
sourceCommit?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Whether that checkout had tracked changes or untracked files git does
|
|
24
|
-
* not ignore when the build started; null when git could not tell. Absent
|
|
25
|
-
* from stamps written before builds recorded it.
|
|
26
|
-
*/
|
|
27
|
-
sourceDirty?: boolean | null;
|
|
28
|
-
/**
|
|
29
|
-
* Written by `loom dev sync`, never by a build: the source fingerprint (as
|
|
30
|
-
* the syncing Loom computes it) of a fresh build that still produced no
|
|
31
|
-
* provenance, because the checkout's own build script predates it. Until
|
|
32
|
-
* the fingerprint changes, sync judges staleness by it alone instead of
|
|
33
|
-
* rebuilding on every run.
|
|
34
|
-
*/
|
|
35
|
-
legacyBuildFingerprint?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Digest of the packed output the build produced; see
|
|
38
|
-
* {@link computePackageContentDigest}. Absent from stamps written before
|
|
39
|
-
* builds recorded it.
|
|
40
|
-
*/
|
|
41
|
-
packageDigest?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Fingerprint of the package-relevant source content when the build
|
|
44
|
-
* started; see {@link computeLoomSourceFingerprint}.
|
|
45
|
-
*/
|
|
46
|
-
sourceFingerprint: string;
|
|
47
|
-
version: 1;
|
|
48
|
-
};
|
|
49
|
-
/** What git reported about a Loom checkout when a build started. */
|
|
50
|
-
export type LoomSourceProvenance = {
|
|
51
|
-
sourceCommit: string | null;
|
|
52
|
-
sourceDirty: boolean | null;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Asks git for a checkout's HEAD commit and whether its working tree differs
|
|
56
|
-
* from it: tracked changes, untracked files that are not ignored (listed
|
|
57
|
-
* individually, whatever `status.showUntrackedFiles` says), or files marked
|
|
58
|
-
* skip-worktree or assume-unchanged, whose changes `git status` hides.
|
|
59
|
-
* `git` runs one git command in the checkout and returns its stdout, or null
|
|
60
|
-
* when it failed (git missing, not a repository). Whatever git cannot answer
|
|
61
|
-
* is null.
|
|
62
|
-
*/
|
|
63
|
-
export declare function readLoomSourceProvenance(git: (args: string[]) => string | null): LoomSourceProvenance;
|
|
64
|
-
/**
|
|
65
|
-
* Settles a build's provenance from what git reported when the build started
|
|
66
|
-
* and when it finished. Any change in between (a commit, a checkout, an
|
|
67
|
-
* edit, which `sourcesChanged` reports from the source fingerprints, or git
|
|
68
|
-
* becoming unable to tell) means the output may mix two states, so the build
|
|
69
|
-
* is stamped dirty, which `loom dev published` refuses; the starting commit
|
|
70
|
-
* is kept. A start git could not read stays unknown.
|
|
71
|
-
*/
|
|
72
|
-
export declare function settleLoomBuildProvenance(start: LoomSourceProvenance, end: LoomSourceProvenance, sourcesChanged: boolean): {
|
|
73
|
-
changedDuringBuild: boolean;
|
|
74
|
-
provenance: LoomSourceProvenance;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Whether a stamp records the build's provenance and output digest. Stamps
|
|
78
|
-
* from older build scripts lack them.
|
|
79
|
-
*/
|
|
80
|
-
export declare function hasLoomBuildProvenance(stamp: LoomBuildStamp): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Hashes the content of every package-relevant file in a Loom checkout.
|
|
83
|
-
* Unlike modification times, the result changes exactly when a rebuild could
|
|
84
|
-
* produce a different package, including after checkouts that restore older
|
|
85
|
-
* timestamps and edits made while a build is running.
|
|
86
|
-
*/
|
|
87
|
-
export declare function computeLoomSourceFingerprint(sourceRoot: string): Promise<string>;
|
|
88
|
-
/** Size and modification time of each package-relevant source file. */
|
|
89
|
-
export type LoomSourceSnapshot = Map<string, {
|
|
90
|
-
mtimeMs: number;
|
|
91
|
-
size: number;
|
|
92
|
-
}>;
|
|
93
|
-
/** Records {@link LoomSourceSnapshot} for a Loom checkout. */
|
|
94
|
-
export declare function snapshotLoomSources(sourceRoot: string): Promise<LoomSourceSnapshot>;
|
|
95
|
-
/**
|
|
96
|
-
* Whether any package-relevant source file was written while a build ran,
|
|
97
|
-
* from snapshots taken when it started (at `startedAtMs`) and when it
|
|
98
|
-
* finished. Content alone misses an edit that was reverted before the build
|
|
99
|
-
* finished, but the revert rewrites the file:
|
|
100
|
-
* - a file added, removed, resized or with a new modification time counts;
|
|
101
|
-
* - so does one modified at or after the start;
|
|
102
|
-
* - on filesystems with coarse timestamps (a whole-second modification time)
|
|
103
|
-
* an edit can keep the old value, so a file modified shortly before the
|
|
104
|
-
* start counts as well.
|
|
105
|
-
*/
|
|
106
|
-
export declare function loomSourcesWrittenDuringBuild(start: LoomSourceSnapshot, end: LoomSourceSnapshot, startedAtMs: number): boolean;
|
|
107
|
-
/** Serializes the build stamp that `scripts/build_npm.ts` writes. */
|
|
108
|
-
export declare function formatLoomBuildStamp(stamp: Omit<LoomBuildStamp, "version">): string;
|
|
109
|
-
/** Reads a build stamp, returning null when it is absent or unrecognized. */
|
|
110
|
-
export declare function readLoomBuildStamp(packagePath: string): Promise<LoomBuildStamp | null>;
|
|
111
|
-
/**
|
|
112
|
-
* Digest of a built package's files by path and content, filtered as
|
|
113
|
-
* {@link findPackageTreeDifference} filters them: its root ignore rules,
|
|
114
|
-
* npm's always-ignored names, and every dot entry, which Loom's packing
|
|
115
|
-
* approximation treats as unpacked although npm would pack some. The build
|
|
116
|
-
* stamp records it, so any later edit to those files shows.
|
|
117
|
-
*/
|
|
118
|
-
export declare function computePackageContentDigest(root: string): Promise<string>;
|
|
119
|
-
/**
|
|
120
|
-
* Compares a built package directory with the copy a package manager
|
|
121
|
-
* installed from it, by file list and byte content. Returns a short
|
|
122
|
-
* description of the first difference, or null when the installed copy
|
|
123
|
-
* matches.
|
|
124
|
-
*
|
|
125
|
-
* Both trees are filtered by the build's packing rules (its root
|
|
126
|
-
* `.npmignore` plus npm's always-ignored names), so a build that only adds a
|
|
127
|
-
* new top-level entry is still detected. When those rules cannot be read
|
|
128
|
-
* literally, top-level build entries absent from the installed copy are
|
|
129
|
-
* skipped instead.
|
|
130
|
-
*/
|
|
131
|
-
export declare function findPackageTreeDifference(builtRoot: string, installedRoot: string): Promise<string | null>;
|
|
132
|
-
/**
|
|
133
|
-
* Cheap signature of an installed package tree: its real path plus each
|
|
134
|
-
* file's path, size, inode, and modification time (no file contents), or
|
|
135
|
-
* null when it is not installed. pnpm links unchanged files from its
|
|
136
|
-
* content-addressed store, so the signature changes when the package is
|
|
137
|
-
* replaced with different content. Lets a process tell whether the package
|
|
138
|
-
* it loaded was replaced later.
|
|
139
|
-
*/
|
|
140
|
-
export declare function computePackageTreeSignature(root: string): Promise<string | null>;
|
|
141
|
-
/**
|
|
142
|
-
* Reads the override pnpm recorded for a package in the lockfile's top-level
|
|
143
|
-
* `overrides:` map. pnpm records the override map it actually applied, so
|
|
144
|
-
* this proves whether an override took effect.
|
|
145
|
-
*/
|
|
146
|
-
export declare function getLockfileOverride(lockfileText: string, name: string): string | null;
|
|
147
|
-
/** The root importer's lockfile entry for one direct dependency. */
|
|
148
|
-
export type LockfileImporterDependency = {
|
|
149
|
-
specifier?: string;
|
|
150
|
-
version?: string;
|
|
151
|
-
};
|
|
152
|
-
/** Reads a direct dependency of the root importer (`.`) from a lockfile. */
|
|
153
|
-
export declare function getLockfileRootImporterDependency(lockfileText: string, name: string): LockfileImporterDependency | null;
|
|
154
|
-
/**
|
|
155
|
-
* Groups lockfile snapshot keys by `name@version`, collecting the peer (and
|
|
156
|
-
* patch) suffix of each variant, for example `(react@19.2.0)`.
|
|
157
|
-
*/
|
|
158
|
-
export declare function getLockfileSnapshotVariants(lockfileText: string): Map<string, Set<string>>;
|
|
159
|
-
/** A package version whose number of lockfile peer variants grew. */
|
|
160
|
-
export type PeerVariantDuplicate = {
|
|
161
|
-
after: number;
|
|
162
|
-
before: number;
|
|
163
|
-
/** `name@version`. */
|
|
164
|
-
packageVersion: string;
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* Lists `name@version` entries that have more than one peer variant after a
|
|
168
|
-
* lockfile change and more variants than before it. Pre-existing duplicates
|
|
169
|
-
* are ignored so warnings point only at what the change introduced.
|
|
170
|
-
*/
|
|
171
|
-
export declare function findNewPeerVariantDuplicates(beforeLockfileText: string | null, afterLockfileText: string): PeerVariantDuplicate[];
|
|
172
|
-
//# sourceMappingURL=localDevPackage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localDevPackage.d.ts","sourceRoot":"","sources":["../../../src/src/cli/localDevPackage.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAAS,MAAM,EAiBxD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,mEAAmE;AACnE,MAAM,MAAM,cAAc,GAAG;IAC3B,+DAA+D;IAC/D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF,oEAAoE;AACpE,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,GAAG,IAAI,GACrC,oBAAoB,CAgBtB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,EAC3B,GAAG,EAAE,oBAAoB,EACzB,cAAc,EAAE,OAAO;;;EAUxB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,WAG3D;AA2DD;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAAC,UAAU,EAAE,MAAM,mBAUpE;AAED,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEhF,8DAA8D;AAC9D,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC,CAO7B;AASD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,kBAAkB,EACzB,GAAG,EAAE,kBAAkB,EACvB,WAAW,EAAE,MAAM,WAmBpB;AAED,qEAAqE;AACrE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,UAG1E;AAED,6EAA6E;AAC7E,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CA0BhC;AA0HD;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,MAAM,mBAuB7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAC7C,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA6CxB;AAED;;;;;;;GAOG;AACH,wBAAsB,2BAA2B,CAAC,IAAI,EAAE,MAAM,0BAa7D;AAiED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAMrE;AAED,oEAAoE;AACpE,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,GACX,0BAA0B,GAAG,IAAI,CAgCnC;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,EAAE,MAAM,4BAqB/D;AAED,qEAAqE;AACrE,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,kBAAkB,EAAE,MAAM,GAAG,IAAI,EACjC,iBAAiB,EAAE,MAAM,GACxB,oBAAoB,EAAE,CAmBxB"}
|