@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
|
@@ -1,749 +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.LOOM_EXTERNAL_SKILLS_GITIGNORE_LINE = exports.LOOM_EXTERNAL_SKILLS_CACHE = exports.LOOM_SKILLS_LOCK = void 0;
|
|
7
|
-
exports.readProjectSkillsLock = readProjectSkillsLock;
|
|
8
|
-
exports.computeSkillContentHash = computeSkillContentHash;
|
|
9
|
-
exports.syncInstalledPackageSkills = syncInstalledPackageSkills;
|
|
10
|
-
exports.syncExternalProjectSkills = syncExternalProjectSkills;
|
|
11
|
-
exports.removeLegacyNextSkillLink = removeLegacyNextSkillLink;
|
|
12
|
-
exports.checkProjectSkills = checkProjectSkills;
|
|
13
|
-
exports.setProjectSkillDisabled = setProjectSkillDisabled;
|
|
14
|
-
exports.getProjectSkillStatus = getProjectSkillStatus;
|
|
15
|
-
const node_crypto_1 = require("node:crypto");
|
|
16
|
-
const promises_1 = require("node:fs/promises");
|
|
17
|
-
const node_os_1 = require("node:os");
|
|
18
|
-
const node_path_1 = require("node:path");
|
|
19
|
-
const node_process_1 = __importDefault(require("node:process"));
|
|
20
|
-
const externalSkills_js_1 = require("./externalSkills.js");
|
|
21
|
-
exports.LOOM_SKILLS_LOCK = "loom-skills.lock.json";
|
|
22
|
-
exports.LOOM_EXTERNAL_SKILLS_CACHE = ".loom/skills";
|
|
23
|
-
exports.LOOM_EXTERNAL_SKILLS_GITIGNORE_LINE = ".loom/skills/";
|
|
24
|
-
const LEGACY_EXTERNAL_TARGET_FRAGMENT = "/node_modules/@gadicc/loom/skills/recommended/";
|
|
25
|
-
function emptyLock() {
|
|
26
|
-
return { disabled: [], skills: {}, version: 1 };
|
|
27
|
-
}
|
|
28
|
-
async function pathExists(path) {
|
|
29
|
-
try {
|
|
30
|
-
await (0, promises_1.lstat)(path);
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
if (error.code === "ENOENT")
|
|
35
|
-
return false;
|
|
36
|
-
throw error;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async function readJsonIfExists(path) {
|
|
40
|
-
try {
|
|
41
|
-
return JSON.parse(await (0, promises_1.readFile)(path, "utf8"));
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
if (error.code === "ENOENT")
|
|
45
|
-
return null;
|
|
46
|
-
throw error;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/** Reads the committed project skill policy, returning an empty v1 policy when absent. */
|
|
50
|
-
async function readProjectSkillsLock(cwd) {
|
|
51
|
-
const lock = await readJsonIfExists((0, node_path_1.join)(cwd, exports.LOOM_SKILLS_LOCK));
|
|
52
|
-
if (!lock)
|
|
53
|
-
return emptyLock();
|
|
54
|
-
if (lock.version !== 1 || !lock.skills || !Array.isArray(lock.disabled)) {
|
|
55
|
-
throw new Error(`Unsupported or invalid ${exports.LOOM_SKILLS_LOCK}.`);
|
|
56
|
-
}
|
|
57
|
-
return lock;
|
|
58
|
-
}
|
|
59
|
-
function stableLock(lock) {
|
|
60
|
-
return {
|
|
61
|
-
disabled: [...new Set(lock.disabled)].sort(),
|
|
62
|
-
skills: Object.fromEntries(Object.entries(lock.skills).sort(([left], [right]) => left.localeCompare(right))),
|
|
63
|
-
version: 1,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function canonicalLock(lock) {
|
|
67
|
-
return JSON.stringify(stableLock(lock));
|
|
68
|
-
}
|
|
69
|
-
async function writeLockIfChanged(cwd, lock) {
|
|
70
|
-
const path = (0, node_path_1.join)(cwd, exports.LOOM_SKILLS_LOCK);
|
|
71
|
-
const stable = stableLock(lock);
|
|
72
|
-
const text = `${JSON.stringify(stable, null, 2)}\n`;
|
|
73
|
-
let current = null;
|
|
74
|
-
try {
|
|
75
|
-
current = await (0, promises_1.readFile)(path, "utf8");
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
if (error.code !== "ENOENT")
|
|
79
|
-
throw error;
|
|
80
|
-
}
|
|
81
|
-
if (current === text)
|
|
82
|
-
return false;
|
|
83
|
-
if (current !== null) {
|
|
84
|
-
try {
|
|
85
|
-
// Formatting belongs to the consumer. Only rewrite the lock when its
|
|
86
|
-
// stable data changes, so project formatters cannot create a sync loop.
|
|
87
|
-
if (canonicalLock(JSON.parse(current)) ===
|
|
88
|
-
canonicalLock(stable)) {
|
|
89
|
-
return false;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
catch {
|
|
93
|
-
// Invalid lock content is handled by the normal rewrite path below.
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
await (0, promises_1.writeFile)(path, text, "utf8");
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
async function collectSkillFiles(root, current, files) {
|
|
100
|
-
for (const entry of await (0, promises_1.readdir)(current, { withFileTypes: true })) {
|
|
101
|
-
const path = (0, node_path_1.join)(current, entry.name);
|
|
102
|
-
if (entry.isDirectory()) {
|
|
103
|
-
if (entry.name !== ".git" && entry.name !== "node_modules") {
|
|
104
|
-
await collectSkillFiles(root, path, files);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
else if (entry.isFile()) {
|
|
108
|
-
files.push({
|
|
109
|
-
content: await (0, promises_1.readFile)(path),
|
|
110
|
-
relativePath: (0, node_path_1.relative)(root, path).split(node_path_1.sep).join("/"),
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
else if (entry.isSymbolicLink()) {
|
|
114
|
-
throw new Error(`Skill directories may not contain symlinks: ${path}`);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
/** Computes Loom's deterministic path-and-content digest for one skill tree. */
|
|
119
|
-
async function computeSkillContentHash(skillPath) {
|
|
120
|
-
const files = [];
|
|
121
|
-
await collectSkillFiles(skillPath, skillPath, files);
|
|
122
|
-
files.sort((left, right) => left.relativePath.localeCompare(right.relativePath));
|
|
123
|
-
const hash = (0, node_crypto_1.createHash)("sha256");
|
|
124
|
-
for (const file of files) {
|
|
125
|
-
hash.update(file.relativePath);
|
|
126
|
-
hash.update(file.content);
|
|
127
|
-
}
|
|
128
|
-
return hash.digest("hex");
|
|
129
|
-
}
|
|
130
|
-
async function parseSkillName(skillFile) {
|
|
131
|
-
try {
|
|
132
|
-
const text = await (0, promises_1.readFile)(skillFile, "utf8");
|
|
133
|
-
const frontmatter = text.match(/^---\s*\n([\s\S]*?)\n---(?:\s*\n|$)/)?.[1];
|
|
134
|
-
const name = frontmatter?.match(/^name:\s*["']?([^\s"']+)["']?\s*$/m)?.[1];
|
|
135
|
-
return name && /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(name) ? name : null;
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
if (error.code === "ENOENT")
|
|
139
|
-
return null;
|
|
140
|
-
throw error;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async function packageRoots(nodeModules) {
|
|
144
|
-
const roots = [];
|
|
145
|
-
let entries;
|
|
146
|
-
try {
|
|
147
|
-
entries = await (0, promises_1.readdir)(nodeModules, { withFileTypes: true });
|
|
148
|
-
}
|
|
149
|
-
catch (error) {
|
|
150
|
-
if (error.code === "ENOENT")
|
|
151
|
-
return roots;
|
|
152
|
-
throw error;
|
|
153
|
-
}
|
|
154
|
-
for (const entry of entries) {
|
|
155
|
-
if (entry.name.startsWith("."))
|
|
156
|
-
continue;
|
|
157
|
-
const path = (0, node_path_1.join)(nodeModules, entry.name);
|
|
158
|
-
if (entry.name.startsWith("@")) {
|
|
159
|
-
let scopedEntries;
|
|
160
|
-
try {
|
|
161
|
-
scopedEntries = await (0, promises_1.readdir)(path, { withFileTypes: true });
|
|
162
|
-
}
|
|
163
|
-
catch {
|
|
164
|
-
continue;
|
|
165
|
-
}
|
|
166
|
-
for (const scoped of scopedEntries) {
|
|
167
|
-
roots.push({
|
|
168
|
-
packageName: `${entry.name}/${scoped.name}`,
|
|
169
|
-
path: (0, node_path_1.join)(path, scoped.name),
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
roots.push({ packageName: entry.name, path });
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return roots;
|
|
178
|
-
}
|
|
179
|
-
async function discoverPackageSkills(cwd) {
|
|
180
|
-
const found = [];
|
|
181
|
-
for (const root of await packageRoots((0, node_path_1.join)(cwd, "node_modules"))) {
|
|
182
|
-
if (root.packageName === "@gadicc/loom")
|
|
183
|
-
continue;
|
|
184
|
-
const packageJson = await readJsonIfExists((0, node_path_1.join)(root.path, "package.json"));
|
|
185
|
-
if (!packageJson)
|
|
186
|
-
continue;
|
|
187
|
-
const candidates = [
|
|
188
|
-
root.path,
|
|
189
|
-
(0, node_path_1.join)(root.path, "skills"),
|
|
190
|
-
(0, node_path_1.join)(root.path, ".agents", "skills"),
|
|
191
|
-
];
|
|
192
|
-
const rootName = await parseSkillName((0, node_path_1.join)(root.path, "SKILL.md"));
|
|
193
|
-
if (rootName) {
|
|
194
|
-
const contentHash = await computeSkillContentHash(root.path);
|
|
195
|
-
found.push({
|
|
196
|
-
contentHash,
|
|
197
|
-
packageName: root.packageName,
|
|
198
|
-
packageVersion: packageJson.version,
|
|
199
|
-
path: root.path,
|
|
200
|
-
selector: `npm:${root.packageName}:${rootName}`,
|
|
201
|
-
skillName: rootName,
|
|
202
|
-
sourcePath: (0, node_path_1.relative)(cwd, root.path),
|
|
203
|
-
});
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
for (const candidate of candidates) {
|
|
207
|
-
let entries;
|
|
208
|
-
try {
|
|
209
|
-
entries = await (0, promises_1.readdir)(candidate, { withFileTypes: true });
|
|
210
|
-
}
|
|
211
|
-
catch {
|
|
212
|
-
continue;
|
|
213
|
-
}
|
|
214
|
-
for (const entry of entries) {
|
|
215
|
-
if (!entry.isDirectory() && !entry.isSymbolicLink())
|
|
216
|
-
continue;
|
|
217
|
-
const skillPath = (0, node_path_1.join)(candidate, entry.name);
|
|
218
|
-
const skillName = await parseSkillName((0, node_path_1.join)(skillPath, "SKILL.md"));
|
|
219
|
-
if (!skillName)
|
|
220
|
-
continue;
|
|
221
|
-
found.push({
|
|
222
|
-
contentHash: await computeSkillContentHash(skillPath),
|
|
223
|
-
packageName: root.packageName,
|
|
224
|
-
packageVersion: packageJson.version,
|
|
225
|
-
path: skillPath,
|
|
226
|
-
selector: `npm:${root.packageName}:${skillName}`,
|
|
227
|
-
skillName,
|
|
228
|
-
sourcePath: (0, node_path_1.relative)(cwd, skillPath),
|
|
229
|
-
});
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return found.sort((left, right) => left.skillName.localeCompare(right.skillName) ||
|
|
234
|
-
left.packageName.localeCompare(right.packageName));
|
|
235
|
-
}
|
|
236
|
-
function projectSkillPath(cwd, skillName) {
|
|
237
|
-
return (0, node_path_1.join)(cwd, ".agents", "skills", skillName);
|
|
238
|
-
}
|
|
239
|
-
async function linkState(path, expectedTarget) {
|
|
240
|
-
try {
|
|
241
|
-
const info = await (0, promises_1.lstat)(path);
|
|
242
|
-
if (!info.isSymbolicLink())
|
|
243
|
-
return "custom";
|
|
244
|
-
const target = await (0, promises_1.readlink)(path);
|
|
245
|
-
const resolved = (0, node_path_1.resolve)((0, node_path_1.dirname)(path), target);
|
|
246
|
-
if (resolved === (0, node_path_1.resolve)(expectedTarget))
|
|
247
|
-
return "expected";
|
|
248
|
-
if (resolved.split(node_path_1.sep).join("/").includes(LEGACY_EXTERNAL_TARGET_FRAGMENT)) {
|
|
249
|
-
return "legacy";
|
|
250
|
-
}
|
|
251
|
-
return "custom";
|
|
252
|
-
}
|
|
253
|
-
catch (error) {
|
|
254
|
-
if (error.code === "ENOENT") {
|
|
255
|
-
return "missing";
|
|
256
|
-
}
|
|
257
|
-
throw error;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
async function ensureSkillLink(cwd, skillName, target, allowLegacyReplacement, previousTarget) {
|
|
261
|
-
const path = projectSkillPath(cwd, skillName);
|
|
262
|
-
let state = await linkState(path, target);
|
|
263
|
-
if (state === "custom" && previousTarget &&
|
|
264
|
-
await linkState(path, previousTarget) === "expected") {
|
|
265
|
-
state = "legacy";
|
|
266
|
-
}
|
|
267
|
-
if (state === "expected")
|
|
268
|
-
return { changed: false, preserved: false };
|
|
269
|
-
if (state === "custom" ||
|
|
270
|
-
(state === "legacy" && !allowLegacyReplacement && !previousTarget)) {
|
|
271
|
-
return { changed: false, preserved: true };
|
|
272
|
-
}
|
|
273
|
-
if (state === "legacy")
|
|
274
|
-
await (0, promises_1.unlink)(path);
|
|
275
|
-
await (0, promises_1.mkdir)((0, node_path_1.dirname)(path), { recursive: true });
|
|
276
|
-
await (0, promises_1.symlink)((0, node_path_1.relative)((0, node_path_1.dirname)(path), target), path, "dir");
|
|
277
|
-
return { changed: true, preserved: false };
|
|
278
|
-
}
|
|
279
|
-
async function removeManagedLink(cwd, skillName, target) {
|
|
280
|
-
const path = projectSkillPath(cwd, skillName);
|
|
281
|
-
if (await linkState(path, target) !== "expected")
|
|
282
|
-
return false;
|
|
283
|
-
await (0, promises_1.unlink)(path);
|
|
284
|
-
return true;
|
|
285
|
-
}
|
|
286
|
-
async function removeLegacyPackagedSkillLink(cwd, skillName) {
|
|
287
|
-
const path = projectSkillPath(cwd, skillName);
|
|
288
|
-
try {
|
|
289
|
-
const info = await (0, promises_1.lstat)(path);
|
|
290
|
-
if (!info.isSymbolicLink())
|
|
291
|
-
return false;
|
|
292
|
-
const target = (0, node_path_1.resolve)((0, node_path_1.dirname)(path), await (0, promises_1.readlink)(path))
|
|
293
|
-
.split(node_path_1.sep)
|
|
294
|
-
.join("/");
|
|
295
|
-
if (!target.includes(`${LEGACY_EXTERNAL_TARGET_FRAGMENT}${skillName}`)) {
|
|
296
|
-
return false;
|
|
297
|
-
}
|
|
298
|
-
await (0, promises_1.unlink)(path);
|
|
299
|
-
return true;
|
|
300
|
-
}
|
|
301
|
-
catch (error) {
|
|
302
|
-
if (error.code === "ENOENT")
|
|
303
|
-
return false;
|
|
304
|
-
throw error;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
function packageSnapshotPath(cwd, name, entry) {
|
|
308
|
-
return (0, node_path_1.join)(cwd, "loom-skills", "npm", encodeURIComponent(entry.packageName), encodeURIComponent(name), entry.contentHash);
|
|
309
|
-
}
|
|
310
|
-
function packageSkillTarget(cwd, entry) {
|
|
311
|
-
return (0, node_path_1.resolve)(cwd, entry.cachePath ?? entry.sourcePath);
|
|
312
|
-
}
|
|
313
|
-
/** Restores recorded npm skills; named adoption or updates require explicit selection. */
|
|
314
|
-
async function syncInstalledPackageSkills(cwd, options = {}) {
|
|
315
|
-
const changedFiles = [];
|
|
316
|
-
const notes = [];
|
|
317
|
-
const hadLock = await pathExists((0, node_path_1.join)(cwd, exports.LOOM_SKILLS_LOCK));
|
|
318
|
-
const lock = await readProjectSkillsLock(cwd);
|
|
319
|
-
const discovered = await discoverPackageSkills(cwd);
|
|
320
|
-
const selected = new Set(options.skillNames ?? []);
|
|
321
|
-
for (const name of selected) {
|
|
322
|
-
const recorded = lock.skills[name];
|
|
323
|
-
const matches = discovered.filter((skill) => skill.skillName === name &&
|
|
324
|
-
(recorded?.kind !== "package" ||
|
|
325
|
-
skill.packageName === recorded.packageName));
|
|
326
|
-
if (matches.length !== 1) {
|
|
327
|
-
throw new Error(`npm skill ${name} must have exactly one installed source.`);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
const claimedNames = new Set();
|
|
331
|
-
for (const skill of discovered) {
|
|
332
|
-
if (lock.disabled.includes(skill.selector))
|
|
333
|
-
continue;
|
|
334
|
-
const existing = lock.skills[skill.skillName];
|
|
335
|
-
if (existing?.kind === "external")
|
|
336
|
-
continue;
|
|
337
|
-
if (existing?.kind === "package" && existing.packageName !== skill.packageName)
|
|
338
|
-
continue;
|
|
339
|
-
if (claimedNames.has(skill.skillName))
|
|
340
|
-
continue;
|
|
341
|
-
claimedNames.add(skill.skillName);
|
|
342
|
-
const adopt = selected.has(skill.skillName) ||
|
|
343
|
-
(options.update && existing?.kind === "package" && !selected.size);
|
|
344
|
-
if (!existing && !adopt) {
|
|
345
|
-
notes.push(`Available npm skill ${skill.skillName} from ${skill.packageName}; review then run \`loom skills add ${skill.skillName}\` or disable it.`);
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
const approved = existing?.kind === "package" ? existing : undefined;
|
|
349
|
-
if (approved && approved.contentHash !== skill.contentHash && !adopt) {
|
|
350
|
-
notes.push(`npm skill ${skill.skillName} has changed; sync keeps its recorded content. Review then run \`loom skills update ${skill.skillName}\`.`);
|
|
351
|
-
// Keep a frozen snapshot active even after its supplying package changes.
|
|
352
|
-
if (approved.cachePath &&
|
|
353
|
-
await pathExists((0, node_path_1.join)(packageSkillTarget(cwd, approved), "SKILL.md")) &&
|
|
354
|
-
await computeSkillContentHash(packageSkillTarget(cwd, approved)) ===
|
|
355
|
-
approved.contentHash) {
|
|
356
|
-
const linked = await ensureSkillLink(cwd, skill.skillName, packageSkillTarget(cwd, approved), false);
|
|
357
|
-
if (linked.changed) {
|
|
358
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skill.skillName)));
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
continue;
|
|
362
|
-
}
|
|
363
|
-
const destination = packageSnapshotPath(cwd, skill.skillName, skill);
|
|
364
|
-
if (!await pathExists((0, node_path_1.join)(destination, "SKILL.md")) ||
|
|
365
|
-
await computeSkillContentHash(destination) !== skill.contentHash) {
|
|
366
|
-
await (0, promises_1.mkdir)((0, node_path_1.dirname)(destination), { recursive: true });
|
|
367
|
-
const partial = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_path_1.dirname)(destination), ".partial-"));
|
|
368
|
-
try {
|
|
369
|
-
await copySkillDirectory(skill.path, partial);
|
|
370
|
-
if (await computeSkillContentHash(partial) !== skill.contentHash) {
|
|
371
|
-
throw new Error(`npm skill changed during adoption: ${skill.skillName}`);
|
|
372
|
-
}
|
|
373
|
-
await (0, promises_1.mkdir)((0, node_path_1.dirname)(destination), { recursive: true });
|
|
374
|
-
await (0, promises_1.rm)(destination, { recursive: true, force: true });
|
|
375
|
-
await (0, promises_1.rename)(partial, destination);
|
|
376
|
-
changedFiles.push((0, node_path_1.relative)(cwd, destination));
|
|
377
|
-
}
|
|
378
|
-
finally {
|
|
379
|
-
await (0, promises_1.rm)(partial, { recursive: true, force: true });
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
const linked = await ensureSkillLink(cwd, skill.skillName, destination, false, approved ? packageSkillTarget(cwd, approved) : undefined);
|
|
383
|
-
if (linked.preserved) {
|
|
384
|
-
notes.push(`Preserved custom skill path for ${skill.skillName}.`);
|
|
385
|
-
continue;
|
|
386
|
-
}
|
|
387
|
-
lock.skills[skill.skillName] = {
|
|
388
|
-
kind: "package",
|
|
389
|
-
packageName: skill.packageName,
|
|
390
|
-
packageVersion: skill.packageVersion,
|
|
391
|
-
contentHash: skill.contentHash,
|
|
392
|
-
sourcePath: skill.sourcePath,
|
|
393
|
-
cachePath: (0, node_path_1.relative)(cwd, destination),
|
|
394
|
-
};
|
|
395
|
-
if (linked.changed) {
|
|
396
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skill.skillName)));
|
|
397
|
-
}
|
|
398
|
-
if (adopt) {
|
|
399
|
-
notes.push(`Adopted npm skill ${skill.skillName} from ${skill.packageName} at ${skill.contentHash.slice(0, 12)}. Disable with \`loom skills disable ${skill.skillName}\`.`);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
for (const [name, entry] of Object.entries(lock.skills)) {
|
|
403
|
-
if (entry.kind !== "package" || !entry.cachePath ||
|
|
404
|
-
lock.disabled.includes(`npm:${entry.packageName}:${name}`))
|
|
405
|
-
continue;
|
|
406
|
-
const target = packageSkillTarget(cwd, entry);
|
|
407
|
-
if (!await pathExists((0, node_path_1.join)(target, "SKILL.md")) ||
|
|
408
|
-
await computeSkillContentHash(target) !== entry.contentHash)
|
|
409
|
-
continue;
|
|
410
|
-
const linked = await ensureSkillLink(cwd, name, target, false);
|
|
411
|
-
if (linked.changed) {
|
|
412
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, name)));
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
if ((hadLock || Object.keys(lock.skills).length > 0) &&
|
|
416
|
-
await writeLockIfChanged(cwd, lock))
|
|
417
|
-
changedFiles.push(exports.LOOM_SKILLS_LOCK);
|
|
418
|
-
return { changedFiles: [...new Set(changedFiles)], notes };
|
|
419
|
-
}
|
|
420
|
-
async function runGit(runner, args, cwd, env) {
|
|
421
|
-
const result = await runner("git", args, { cwd, env, stdio: "pipe" });
|
|
422
|
-
if (result.code !== 0) {
|
|
423
|
-
throw new Error(`git ${args.join(" ")} failed: ${result.stderr.trim() || result.code}`);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
async function checkoutExternalSource(skill, checkoutRoot, runner, env) {
|
|
427
|
-
const checkout = (0, node_path_1.join)(checkoutRoot, `${skill.skillName}-${skill.source.revision.slice(0, 12)}`);
|
|
428
|
-
await (0, promises_1.mkdir)(checkout, { recursive: true });
|
|
429
|
-
await runGit(runner, ["init", "--quiet"], checkout, env);
|
|
430
|
-
await runGit(runner, ["remote", "add", "origin", skill.source.repositoryUrl], checkout, env);
|
|
431
|
-
await runGit(runner, ["fetch", "--depth", "1", "origin", skill.source.revision], checkout, env);
|
|
432
|
-
await runGit(runner, ["checkout", "--detach", "FETCH_HEAD"], checkout, env);
|
|
433
|
-
const sourcePath = (0, node_path_1.resolve)(checkout, skill.source.sourcePath);
|
|
434
|
-
if (sourcePath !== (0, node_path_1.resolve)(checkout) &&
|
|
435
|
-
!sourcePath.startsWith(`${(0, node_path_1.resolve)(checkout)}${node_path_1.sep}`)) {
|
|
436
|
-
throw new Error(`External skill path escapes its checkout: ${skill.skillName}`);
|
|
437
|
-
}
|
|
438
|
-
if (!await parseSkillName((0, node_path_1.join)(sourcePath, "SKILL.md"))) {
|
|
439
|
-
throw new Error(`External skill has no valid SKILL.md: ${skill.skillName}`);
|
|
440
|
-
}
|
|
441
|
-
return sourcePath;
|
|
442
|
-
}
|
|
443
|
-
async function copySkillDirectory(source, destination) {
|
|
444
|
-
await (0, promises_1.mkdir)(destination, { recursive: true });
|
|
445
|
-
for (const entry of await (0, promises_1.readdir)(source, { withFileTypes: true })) {
|
|
446
|
-
const from = (0, node_path_1.join)(source, entry.name);
|
|
447
|
-
const to = (0, node_path_1.join)(destination, entry.name);
|
|
448
|
-
if (entry.isDirectory() &&
|
|
449
|
-
(entry.name === ".git" || entry.name === "node_modules"))
|
|
450
|
-
continue;
|
|
451
|
-
if (entry.isDirectory())
|
|
452
|
-
await copySkillDirectory(from, to);
|
|
453
|
-
else if (entry.isFile())
|
|
454
|
-
await (0, promises_1.copyFile)(from, to);
|
|
455
|
-
else
|
|
456
|
-
throw new Error(`External skill contains unsupported link: ${from}`);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
function externalCachePath(cwd, skill) {
|
|
460
|
-
return (0, node_path_1.join)(cwd, exports.LOOM_EXTERNAL_SKILLS_CACHE, skill.skillName, skill.source.revision);
|
|
461
|
-
}
|
|
462
|
-
async function hydrateExternalSkill(cwd, skill, runner, env) {
|
|
463
|
-
const destination = externalCachePath(cwd, skill);
|
|
464
|
-
if (await pathExists((0, node_path_1.join)(destination, "SKILL.md"))) {
|
|
465
|
-
const currentHash = await computeSkillContentHash(destination);
|
|
466
|
-
if (currentHash === skill.source.contentHash)
|
|
467
|
-
return false;
|
|
468
|
-
}
|
|
469
|
-
const checkoutRoot = await (0, promises_1.mkdtemp)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "loom-skill-checkout-"));
|
|
470
|
-
const partial = `${destination}.partial-${node_process_1.default.pid}`;
|
|
471
|
-
try {
|
|
472
|
-
const sourcePath = await checkoutExternalSource(skill, checkoutRoot, runner, env);
|
|
473
|
-
const hash = await computeSkillContentHash(sourcePath);
|
|
474
|
-
if (hash !== skill.source.contentHash) {
|
|
475
|
-
throw new Error(`Content hash mismatch for ${skill.skillName} at ${skill.source.revision}.`);
|
|
476
|
-
}
|
|
477
|
-
await (0, promises_1.rm)(partial, { force: true, recursive: true });
|
|
478
|
-
await copySkillDirectory(sourcePath, partial);
|
|
479
|
-
await (0, promises_1.mkdir)((0, node_path_1.dirname)(destination), { recursive: true });
|
|
480
|
-
await (0, promises_1.rm)(destination, { force: true, recursive: true });
|
|
481
|
-
await (0, promises_1.rename)(partial, destination);
|
|
482
|
-
return true;
|
|
483
|
-
}
|
|
484
|
-
finally {
|
|
485
|
-
await (0, promises_1.rm)(partial, { force: true, recursive: true });
|
|
486
|
-
await (0, promises_1.rm)(checkoutRoot, { force: true, recursive: true });
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function lockedExternalSkill(name, entry, catalog) {
|
|
490
|
-
return {
|
|
491
|
-
skillName: name,
|
|
492
|
-
description: catalog?.description ?? name,
|
|
493
|
-
license: { ...catalog?.license, status: entry.licenseStatus },
|
|
494
|
-
sourceLabel: catalog?.sourceLabel ?? entry.repositoryUrl,
|
|
495
|
-
sourceUrl: catalog?.sourceUrl ?? entry.repositoryUrl,
|
|
496
|
-
source: {
|
|
497
|
-
contentHash: entry.contentHash,
|
|
498
|
-
repositoryUrl: entry.repositoryUrl,
|
|
499
|
-
revision: entry.revision,
|
|
500
|
-
ref: entry.revision,
|
|
501
|
-
sourcePath: entry.sourcePath,
|
|
502
|
-
},
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
/** Hydrates selected external skills at catalog-pinned revisions and updates links. */
|
|
506
|
-
async function syncExternalProjectSkills(cwd, context, options) {
|
|
507
|
-
const changedFiles = [];
|
|
508
|
-
const notes = [];
|
|
509
|
-
const env = options.env ?? node_process_1.default.env;
|
|
510
|
-
const lock = await readProjectSkillsLock(cwd);
|
|
511
|
-
const all = options.skills ?? (0, externalSkills_js_1.getAllExternalSkills)();
|
|
512
|
-
const applicable = options.skills ?? (0, externalSkills_js_1.getRecommendedExternalSkills)(context.packageJson, context.activeFeatureKeys, await pathExists((0, node_path_1.join)(cwd, "pnpm-lock.yaml")));
|
|
513
|
-
const byName = new Map(all.map((skill) => [skill.skillName, skill]));
|
|
514
|
-
const selected = new Set(options.skillNames ?? []);
|
|
515
|
-
if (options.adoptRecommended) {
|
|
516
|
-
for (const skill of applicable)
|
|
517
|
-
selected.add(skill.skillName);
|
|
518
|
-
}
|
|
519
|
-
for (const [name, entry] of Object.entries(lock.skills)) {
|
|
520
|
-
if (entry.kind === "external")
|
|
521
|
-
selected.add(name);
|
|
522
|
-
}
|
|
523
|
-
const unknown = [...selected].filter((name) => !byName.has(name) && lock.skills[name]?.kind !== "external");
|
|
524
|
-
if (unknown.length) {
|
|
525
|
-
throw new Error(`Unknown external skill: ${unknown.join(", ")}`);
|
|
526
|
-
}
|
|
527
|
-
const accepted = new Set(options.acceptUnknownLicense ?? []);
|
|
528
|
-
for (const skillName of [...selected].sort()) {
|
|
529
|
-
const recorded = lock.skills[skillName];
|
|
530
|
-
// Existing provenance wins even if the catalog recommends the same name.
|
|
531
|
-
if (recorded?.kind === "package")
|
|
532
|
-
continue;
|
|
533
|
-
const catalogSkill = byName.get(skillName);
|
|
534
|
-
const update = options.update &&
|
|
535
|
-
(options.skillNames === undefined ||
|
|
536
|
-
options.skillNames.includes(skillName));
|
|
537
|
-
const skill = recorded?.kind === "external" && !update
|
|
538
|
-
? lockedExternalSkill(skillName, recorded, catalogSkill)
|
|
539
|
-
: catalogSkill;
|
|
540
|
-
if (!skill) {
|
|
541
|
-
throw new Error(`No reviewed catalog revision for ${skillName}.`);
|
|
542
|
-
}
|
|
543
|
-
const selector = `external:${skillName}`;
|
|
544
|
-
if (lock.disabled.includes(selector)) {
|
|
545
|
-
if (await removeLegacyPackagedSkillLink(cwd, skillName)) {
|
|
546
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skillName)));
|
|
547
|
-
notes.push(`Removed legacy packaged link for disabled skill ${skillName}.`);
|
|
548
|
-
}
|
|
549
|
-
continue;
|
|
550
|
-
}
|
|
551
|
-
const existing = lock.skills[skillName];
|
|
552
|
-
const acknowledged = existing?.kind === "external" &&
|
|
553
|
-
existing.licenseAcknowledged === true || accepted.has(skillName);
|
|
554
|
-
if (skill.license.status !== "verified" && !acknowledged) {
|
|
555
|
-
if (await removeLegacyPackagedSkillLink(cwd, skillName)) {
|
|
556
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skillName)));
|
|
557
|
-
notes.push(`Removed the legacy packaged ${skillName} link because Loom no longer redistributes its content.`);
|
|
558
|
-
}
|
|
559
|
-
notes.push(`Did not install ${skillName}: upstream declares no clear license. Re-run with \`--accept-unknown-license ${skillName}\` after reviewing ${skill.sourceUrl}.`);
|
|
560
|
-
continue;
|
|
561
|
-
}
|
|
562
|
-
const hydrated = await hydrateExternalSkill(cwd, skill, options.commandRunner, env);
|
|
563
|
-
const target = externalCachePath(cwd, skill);
|
|
564
|
-
const linked = await ensureSkillLink(cwd, skillName, target, true, existing?.kind === "external"
|
|
565
|
-
? (0, node_path_1.join)(cwd, exports.LOOM_EXTERNAL_SKILLS_CACHE, skillName, existing.revision)
|
|
566
|
-
: undefined);
|
|
567
|
-
if (linked.preserved) {
|
|
568
|
-
notes.push(`Preserved custom skill path for ${skillName}.`);
|
|
569
|
-
continue;
|
|
570
|
-
}
|
|
571
|
-
lock.skills[skillName] = {
|
|
572
|
-
contentHash: skill.source.contentHash,
|
|
573
|
-
kind: "external",
|
|
574
|
-
licenseAcknowledged: acknowledged || undefined,
|
|
575
|
-
licenseStatus: skill.license.status,
|
|
576
|
-
repositoryUrl: skill.source.repositoryUrl,
|
|
577
|
-
revision: skill.source.revision,
|
|
578
|
-
sourcePath: skill.source.sourcePath,
|
|
579
|
-
};
|
|
580
|
-
if (hydrated) {
|
|
581
|
-
notes.push(`Installed ${skillName} at ${skill.source.revision.slice(0, 12)}.`);
|
|
582
|
-
}
|
|
583
|
-
if (linked.changed) {
|
|
584
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skillName)));
|
|
585
|
-
notes.push(`Linked external skill ${skillName} from the project cache.`);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
if (await writeLockIfChanged(cwd, lock))
|
|
589
|
-
changedFiles.push(exports.LOOM_SKILLS_LOCK);
|
|
590
|
-
return { changedFiles: [...new Set(changedFiles)], notes };
|
|
591
|
-
}
|
|
592
|
-
/** Removes only the retired Next skill symlink created by older Loom releases. */
|
|
593
|
-
async function removeLegacyNextSkillLink(cwd) {
|
|
594
|
-
return await removeLegacyPackagedSkillLink(cwd, "next-best-practices");
|
|
595
|
-
}
|
|
596
|
-
/** Checks package activations and external skill locks, caches, and catalog revisions. */
|
|
597
|
-
async function checkProjectSkills(cwd, context, strict = false) {
|
|
598
|
-
const warnings = [];
|
|
599
|
-
const issues = [];
|
|
600
|
-
const suggestions = new Set();
|
|
601
|
-
const lock = await readProjectSkillsLock(cwd);
|
|
602
|
-
const discovered = await discoverPackageSkills(cwd);
|
|
603
|
-
for (const skill of discovered) {
|
|
604
|
-
if (lock.disabled.includes(skill.selector))
|
|
605
|
-
continue;
|
|
606
|
-
const entry = lock.skills[skill.skillName];
|
|
607
|
-
if (entry?.kind === "external")
|
|
608
|
-
continue;
|
|
609
|
-
if (entry?.kind !== "package" || entry.packageName !== skill.packageName) {
|
|
610
|
-
warnings.push(`Installed npm package ${skill.packageName} provides unadopted skill ${skill.skillName}.`);
|
|
611
|
-
suggestions.add(`Review then run \`loom skills add ${skill.skillName}\` or \`loom skills disable ${skill.skillName}\`.`);
|
|
612
|
-
continue;
|
|
613
|
-
}
|
|
614
|
-
if (entry.contentHash !== skill.contentHash) {
|
|
615
|
-
warnings.push(`npm skill ${skill.skillName} differs from its recorded content; review before updating.`);
|
|
616
|
-
suggestions.add(`Review then run \`loom skills update ${skill.skillName}\`.`);
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
for (const [name, entry] of Object.entries(lock.skills)) {
|
|
620
|
-
if (entry.kind !== "package" ||
|
|
621
|
-
lock.disabled.includes(`npm:${entry.packageName}:${name}`))
|
|
622
|
-
continue;
|
|
623
|
-
const target = packageSkillTarget(cwd, entry);
|
|
624
|
-
const present = await pathExists((0, node_path_1.join)(target, "SKILL.md"));
|
|
625
|
-
if (!present ||
|
|
626
|
-
await linkState(projectSkillPath(cwd, name), target) !== "expected") {
|
|
627
|
-
(strict ? issues : warnings).push(`Recorded npm skill is not hydrated and linked: ${name}.`);
|
|
628
|
-
suggestions.add("Run `loom skills sync` to restore recorded skills.");
|
|
629
|
-
}
|
|
630
|
-
else if (await computeSkillContentHash(target) !== entry.contentHash) {
|
|
631
|
-
(strict ? issues : warnings).push(`Recorded npm skill content does not match its approved hash: ${name}.`);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
const applicable = (0, externalSkills_js_1.getRecommendedExternalSkills)(context.packageJson, context.activeFeatureKeys, await pathExists((0, node_path_1.join)(cwd, "pnpm-lock.yaml")));
|
|
635
|
-
const applicableNames = new Set(applicable.map((skill) => skill.skillName));
|
|
636
|
-
const catalog = new Map((0, externalSkills_js_1.getAllExternalSkills)().map((skill) => [skill.skillName, skill]));
|
|
637
|
-
const names = new Set(applicableNames);
|
|
638
|
-
for (const [skillName, entry] of Object.entries(lock.skills)) {
|
|
639
|
-
if (entry.kind === "external")
|
|
640
|
-
names.add(skillName);
|
|
641
|
-
}
|
|
642
|
-
for (const skillName of names) {
|
|
643
|
-
if (lock.disabled.includes(`external:${skillName}`))
|
|
644
|
-
continue;
|
|
645
|
-
let skill = catalog.get(skillName);
|
|
646
|
-
const entry = lock.skills[skillName];
|
|
647
|
-
if (!skill) {
|
|
648
|
-
warnings.push(`Locked external skill is no longer present in Loom's catalog: ${skillName}.`);
|
|
649
|
-
if (entry?.kind !== "external")
|
|
650
|
-
continue;
|
|
651
|
-
skill = lockedExternalSkill(skillName, entry);
|
|
652
|
-
}
|
|
653
|
-
if (entry?.kind !== "external") {
|
|
654
|
-
if (!applicableNames.has(skillName))
|
|
655
|
-
continue;
|
|
656
|
-
const message = skill.license.status === "verified"
|
|
657
|
-
? `Recommended external skill is not adopted: ${skill.skillName} (${skill.sourceLabel}).`
|
|
658
|
-
: `Recommended external skill requires license review before adoption: ${skill.skillName} (${skill.sourceLabel}).`;
|
|
659
|
-
if (strict) {
|
|
660
|
-
warnings.push(message);
|
|
661
|
-
suggestions.add(`Review then adopt or disable ${skill.skillName}; adoption is optional.`);
|
|
662
|
-
}
|
|
663
|
-
continue;
|
|
664
|
-
}
|
|
665
|
-
const target = (0, node_path_1.join)(cwd, exports.LOOM_EXTERNAL_SKILLS_CACHE, skill.skillName, entry.revision);
|
|
666
|
-
const state = await linkState(projectSkillPath(cwd, skill.skillName), target);
|
|
667
|
-
if (state !== "expected" || !await pathExists((0, node_path_1.join)(target, "SKILL.md"))) {
|
|
668
|
-
(strict ? issues : warnings).push(`External skill is not hydrated and linked: ${skill.skillName}.`);
|
|
669
|
-
suggestions.add("Run `loom skills sync`.");
|
|
670
|
-
continue;
|
|
671
|
-
}
|
|
672
|
-
if (await computeSkillContentHash(target) !== entry.contentHash) {
|
|
673
|
-
(strict ? issues : warnings).push(`External skill content hash mismatch: ${skillName}.`);
|
|
674
|
-
suggestions.add("Run `loom skills sync` to restore recorded skills.");
|
|
675
|
-
}
|
|
676
|
-
if (entry.revision !== skill.source.revision ||
|
|
677
|
-
entry.contentHash !== skill.source.contentHash) {
|
|
678
|
-
warnings.push(`External skill is behind Loom's reviewed catalog: ${skill.skillName}.`);
|
|
679
|
-
suggestions.add(`Run \`loom skills update ${skillName}\`.`);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
return { issues, suggestions: [...suggestions], warnings };
|
|
683
|
-
}
|
|
684
|
-
/** Toggles a project opt-out while retaining recorded adoption for restoration. */
|
|
685
|
-
async function setProjectSkillDisabled(cwd, skillName, disabled) {
|
|
686
|
-
const lock = await readProjectSkillsLock(cwd);
|
|
687
|
-
const entry = lock.skills[skillName];
|
|
688
|
-
const packageSelectors = (await discoverPackageSkills(cwd))
|
|
689
|
-
.filter((skill) => skill.skillName === skillName).map((skill) => skill.selector);
|
|
690
|
-
const selectors = entry?.kind === "package"
|
|
691
|
-
? [`npm:${entry.packageName}:${skillName}`]
|
|
692
|
-
: entry?.kind === "external"
|
|
693
|
-
? [`external:${skillName}`]
|
|
694
|
-
: [...packageSelectors, `external:${skillName}`];
|
|
695
|
-
if (disabled)
|
|
696
|
-
lock.disabled.push(...selectors);
|
|
697
|
-
else {
|
|
698
|
-
lock.disabled = lock.disabled.filter((item) => !selectors.includes(item) && !item.endsWith(`:${skillName}`));
|
|
699
|
-
}
|
|
700
|
-
const changedFiles = [];
|
|
701
|
-
if (disabled && entry) {
|
|
702
|
-
const target = entry.kind === "package"
|
|
703
|
-
? packageSkillTarget(cwd, entry)
|
|
704
|
-
: (0, node_path_1.join)(cwd, exports.LOOM_EXTERNAL_SKILLS_CACHE, skillName, entry.revision);
|
|
705
|
-
if (await removeManagedLink(cwd, skillName, target)) {
|
|
706
|
-
changedFiles.push((0, node_path_1.relative)(cwd, projectSkillPath(cwd, skillName)));
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
if (await writeLockIfChanged(cwd, lock))
|
|
710
|
-
changedFiles.push(exports.LOOM_SKILLS_LOCK);
|
|
711
|
-
return {
|
|
712
|
-
changedFiles,
|
|
713
|
-
notes: [
|
|
714
|
-
disabled
|
|
715
|
-
? `Disabled automatic activation for ${skillName}.`
|
|
716
|
-
: entry
|
|
717
|
-
? `Enabled restoration for ${skillName}; run \`loom skills sync\`.`
|
|
718
|
-
: `Cleared the opt-out for ${skillName}; review then run \`loom skills add ${skillName}\`.`,
|
|
719
|
-
],
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
/** Returns display-oriented project skill status without mutating the project. */
|
|
723
|
-
async function getProjectSkillStatus(cwd, context) {
|
|
724
|
-
const lock = await readProjectSkillsLock(cwd);
|
|
725
|
-
const discovered = await discoverPackageSkills(cwd);
|
|
726
|
-
const applicable = new Set((0, externalSkills_js_1.getRecommendedExternalSkills)(context.packageJson, context.activeFeatureKeys, await pathExists((0, node_path_1.join)(cwd, "pnpm-lock.yaml"))).map((skill) => skill.skillName));
|
|
727
|
-
const external = await Promise.all((0, externalSkills_js_1.getAllExternalSkills)().map(async (skill) => {
|
|
728
|
-
const entry = lock.skills[skill.skillName];
|
|
729
|
-
const installed = entry?.kind === "external" && await pathExists((0, node_path_1.join)(cwd, exports.LOOM_EXTERNAL_SKILLS_CACHE, skill.skillName, entry.revision, "SKILL.md"));
|
|
730
|
-
return {
|
|
731
|
-
adopted: entry?.kind === "external",
|
|
732
|
-
applicable: applicable.has(skill.skillName),
|
|
733
|
-
installed,
|
|
734
|
-
licenseStatus: skill.license.status,
|
|
735
|
-
skillName: skill.skillName,
|
|
736
|
-
revision: skill.source.revision,
|
|
737
|
-
};
|
|
738
|
-
}));
|
|
739
|
-
return {
|
|
740
|
-
disabled: lock.disabled,
|
|
741
|
-
external,
|
|
742
|
-
packageSkills: discovered.map((skill) => ({
|
|
743
|
-
active: lock.skills[skill.skillName]?.kind === "package",
|
|
744
|
-
disabled: lock.disabled.includes(skill.selector),
|
|
745
|
-
packageName: skill.packageName,
|
|
746
|
-
skillName: skill.skillName,
|
|
747
|
-
})),
|
|
748
|
-
};
|
|
749
|
-
}
|