@vibesdotdev/secrets 0.0.2 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +18 -0
- package/README.md +15 -12
- package/dist/backends/encrypted-local/encrypted-local.descriptor.d.ts +10 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.js +24 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.js.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.d.ts +49 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.js +139 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.js.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.d.ts +9 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.js +23 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.js.map +1 -0
- package/dist/backends/encrypted-local/index.d.ts +10 -0
- package/dist/backends/encrypted-local/index.d.ts.map +1 -0
- package/dist/backends/encrypted-local/index.js +13 -0
- package/dist/backends/encrypted-local/index.js.map +1 -0
- package/dist/backends/encrypted-local/schemas/internal.d.ts +24 -0
- package/dist/backends/encrypted-local/schemas/internal.d.ts.map +1 -0
- package/dist/backends/encrypted-local/schemas/internal.js +12 -0
- package/dist/backends/encrypted-local/schemas/internal.js.map +1 -0
- package/dist/backends/encrypted-local/vault-document.d.ts +19 -0
- package/dist/backends/encrypted-local/vault-document.d.ts.map +1 -0
- package/dist/backends/encrypted-local/vault-document.js +122 -0
- package/dist/backends/encrypted-local/vault-document.js.map +1 -0
- package/dist/backends/env-file/env-file.descriptor.d.ts +11 -0
- package/dist/backends/env-file/env-file.descriptor.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.descriptor.js +24 -0
- package/dist/backends/env-file/env-file.descriptor.js.map +1 -0
- package/dist/backends/env-file/env-file.impl.local.d.ts +47 -0
- package/dist/backends/env-file/env-file.impl.local.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.impl.local.js +170 -0
- package/dist/backends/env-file/env-file.impl.local.js.map +1 -0
- package/dist/backends/env-file/env-file.plugin.d.ts +9 -0
- package/dist/backends/env-file/env-file.plugin.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.plugin.js +23 -0
- package/dist/backends/env-file/env-file.plugin.js.map +1 -0
- package/dist/backends/env-file/index.d.ts +10 -0
- package/dist/backends/env-file/index.d.ts.map +1 -0
- package/dist/backends/env-file/index.js +13 -0
- package/dist/backends/env-file/index.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.d.ts +13 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.js +23 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.impl.d.ts +25 -0
- package/dist/backends/host-credentials/host-credentials.impl.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.impl.js +111 -0
- package/dist/backends/host-credentials/host-credentials.impl.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.plugin.d.ts +17 -0
- package/dist/backends/host-credentials/host-credentials.plugin.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.plugin.js +52 -0
- package/dist/backends/host-credentials/host-credentials.plugin.js.map +1 -0
- package/dist/backends/host-credentials/index.d.ts +4 -0
- package/dist/backends/host-credentials/index.d.ts.map +1 -0
- package/dist/backends/host-credentials/index.js +7 -0
- package/dist/backends/host-credentials/index.js.map +1 -0
- package/dist/backends/mounted-files/index.d.ts +3 -0
- package/dist/backends/mounted-files/index.d.ts.map +1 -0
- package/dist/backends/mounted-files/index.js +4 -0
- package/dist/backends/mounted-files/index.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.d.ts +14 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.js +24 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.d.ts +27 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.js +146 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.plugin.d.ts +10 -0
- package/dist/backends/mounted-files/mounted-files.plugin.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.plugin.js +28 -0
- package/dist/backends/mounted-files/mounted-files.plugin.js.map +1 -0
- package/dist/backends/mounted-files/node.d.ts +9 -0
- package/dist/backends/mounted-files/node.d.ts.map +1 -0
- package/dist/backends/mounted-files/node.js +9 -0
- package/dist/backends/mounted-files/node.js.map +1 -0
- package/dist/backends/vault/index.d.ts +11 -0
- package/dist/backends/vault/index.d.ts.map +1 -0
- package/dist/backends/vault/index.js +11 -0
- package/dist/backends/vault/index.js.map +1 -0
- package/dist/backends/vault/secrets-vault.client.d.ts +15 -0
- package/dist/backends/vault/secrets-vault.client.d.ts.map +1 -0
- package/dist/backends/vault/secrets-vault.client.js +120 -0
- package/dist/backends/vault/secrets-vault.client.js.map +1 -0
- package/dist/backends/vault/secrets-vault.impl.d.ts +29 -0
- package/dist/backends/vault/secrets-vault.impl.d.ts.map +1 -0
- package/dist/backends/vault/secrets-vault.impl.js +141 -0
- package/dist/backends/vault/secrets-vault.impl.js.map +1 -0
- package/dist/backends/vault/vault-bootstrap.d.ts +24 -0
- package/dist/backends/vault/vault-bootstrap.d.ts.map +1 -0
- package/dist/backends/vault/vault-bootstrap.js +147 -0
- package/dist/backends/vault/vault-bootstrap.js.map +1 -0
- package/dist/backends/vault/vault-config.d.ts +26 -0
- package/dist/backends/vault/vault-config.d.ts.map +1 -0
- package/dist/backends/vault/vault-config.js +93 -0
- package/dist/backends/vault/vault-config.js.map +1 -0
- package/dist/backends/vault/vault-failures.d.ts +15 -0
- package/dist/backends/vault/vault-failures.d.ts.map +1 -0
- package/dist/backends/vault/vault-failures.js +36 -0
- package/dist/backends/vault/vault-failures.js.map +1 -0
- package/dist/backends/vault/vault-kv.d.ts +22 -0
- package/dist/backends/vault/vault-kv.d.ts.map +1 -0
- package/dist/backends/vault/vault-kv.js +108 -0
- package/dist/backends/vault/vault-kv.js.map +1 -0
- package/dist/backends/vault/vault-transport.d.ts +22 -0
- package/dist/backends/vault/vault-transport.d.ts.map +1 -0
- package/dist/backends/vault/vault-transport.js +104 -0
- package/dist/backends/vault/vault-transport.js.map +1 -0
- package/dist/backends/vault/vault-unseal.sources.d.ts +12 -0
- package/dist/backends/vault/vault-unseal.sources.d.ts.map +1 -0
- package/dist/backends/vault/vault-unseal.sources.js +87 -0
- package/dist/backends/vault/vault-unseal.sources.js.map +1 -0
- package/dist/docs/backends.docs.descriptor.d.ts +1 -1
- package/dist/docs/backends.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/backends.docs.descriptor.js +58 -121
- package/dist/docs/backends.docs.descriptor.js.map +1 -1
- package/dist/docs/encryption.docs.descriptor.d.ts +1 -1
- package/dist/docs/encryption.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/encryption.docs.descriptor.js +90 -96
- package/dist/docs/encryption.docs.descriptor.js.map +1 -1
- package/dist/docs/env-file.docs.descriptor.d.ts +1 -1
- package/dist/docs/env-file.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/env-file.docs.descriptor.js +81 -127
- package/dist/docs/env-file.docs.descriptor.js.map +1 -1
- package/dist/docs/secrets.docs.descriptor.d.ts +4 -0
- package/dist/docs/secrets.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/secrets.docs.descriptor.js +43 -0
- package/dist/docs/secrets.docs.descriptor.js.map +1 -0
- package/dist/domain/attestation/attestation.d.ts +19 -0
- package/dist/domain/attestation/attestation.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.js +104 -0
- package/dist/domain/attestation/attestation.js.map +1 -0
- package/dist/domain/attestation/attestation.kind.d.ts +27 -0
- package/dist/domain/attestation/attestation.kind.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.kind.js +20 -0
- package/dist/domain/attestation/attestation.kind.js.map +1 -0
- package/dist/domain/attestation/attestation.plugin.d.ts +8 -0
- package/dist/domain/attestation/attestation.plugin.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.plugin.js +26 -0
- package/dist/domain/attestation/attestation.plugin.js.map +1 -0
- package/dist/domain/attestation/attestation.provider.d.ts +23 -0
- package/dist/domain/attestation/attestation.provider.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.provider.js +46 -0
- package/dist/domain/attestation/attestation.provider.js.map +1 -0
- package/dist/domain/attestation/claim-files.d.ts +34 -0
- package/dist/domain/attestation/claim-files.d.ts.map +1 -0
- package/dist/domain/attestation/claim-files.js +149 -0
- package/dist/domain/attestation/claim-files.js.map +1 -0
- package/dist/domain/attestation/index.d.ts +8 -0
- package/dist/domain/attestation/index.d.ts.map +1 -0
- package/dist/domain/attestation/index.js +7 -0
- package/dist/domain/attestation/index.js.map +1 -0
- package/dist/domain/attestation/provider.interface.d.ts +2 -0
- package/dist/domain/attestation/provider.interface.d.ts.map +1 -0
- package/dist/domain/attestation/provider.interface.js +2 -0
- package/dist/domain/attestation/provider.interface.js.map +1 -0
- package/dist/domain/attestation/schemas.d.ts +2 -0
- package/dist/domain/attestation/schemas.d.ts.map +1 -0
- package/dist/domain/attestation/schemas.js +2 -0
- package/dist/domain/attestation/schemas.js.map +1 -0
- package/dist/domain/attestation/token.d.ts +14 -0
- package/dist/domain/attestation/token.d.ts.map +1 -0
- package/dist/domain/attestation/token.js +14 -0
- package/dist/domain/attestation/token.js.map +1 -0
- package/dist/domain/client/authenticated-request.d.ts +4 -0
- package/dist/domain/client/authenticated-request.d.ts.map +1 -0
- package/dist/domain/client/authenticated-request.js +440 -0
- package/dist/domain/client/authenticated-request.js.map +1 -0
- package/dist/domain/client/credential-use.d.ts +27 -0
- package/dist/domain/client/credential-use.d.ts.map +1 -0
- package/dist/domain/client/credential-use.js +224 -0
- package/dist/domain/client/credential-use.js.map +1 -0
- package/dist/domain/client/env-handle.d.ts +33 -0
- package/dist/domain/client/env-handle.d.ts.map +1 -0
- package/dist/domain/client/env-handle.js +55 -0
- package/dist/domain/client/env-handle.js.map +1 -0
- package/dist/domain/client/helper.d.ts +10 -0
- package/dist/domain/client/helper.d.ts.map +1 -0
- package/dist/domain/client/helper.js +11 -0
- package/dist/domain/client/helper.js.map +1 -0
- package/dist/domain/client/index.d.ts +11 -0
- package/dist/domain/client/index.d.ts.map +1 -0
- package/dist/domain/client/index.js +10 -0
- package/dist/domain/client/index.js.map +1 -0
- package/dist/domain/client/managed-handle.d.ts +24 -0
- package/dist/domain/client/managed-handle.d.ts.map +1 -0
- package/dist/domain/client/managed-handle.js +93 -0
- package/dist/domain/client/managed-handle.js.map +1 -0
- package/dist/domain/client/secrets-client.d.ts +60 -0
- package/dist/domain/client/secrets-client.d.ts.map +1 -0
- package/dist/domain/client/secrets-client.js +108 -0
- package/dist/domain/client/secrets-client.js.map +1 -0
- package/dist/domain/config/load.d.ts +6 -0
- package/dist/domain/config/load.d.ts.map +1 -0
- package/dist/domain/config/load.js +15 -0
- package/dist/domain/config/load.js.map +1 -0
- package/dist/domain/config/secrets.config.descriptor.d.ts +35 -0
- package/dist/domain/config/secrets.config.descriptor.d.ts.map +1 -0
- package/dist/domain/config/secrets.config.descriptor.js +29 -0
- package/dist/domain/config/secrets.config.descriptor.js.map +1 -0
- package/dist/domain/kinds/index.d.ts +5 -0
- package/dist/domain/kinds/index.d.ts.map +1 -0
- package/dist/domain/kinds/index.js +4 -0
- package/dist/domain/kinds/index.js.map +1 -0
- package/dist/domain/kinds/schemas/store.schema.d.ts +2 -0
- package/dist/domain/kinds/schemas/store.schema.d.ts.map +1 -0
- package/dist/domain/kinds/schemas/store.schema.js +2 -0
- package/dist/domain/kinds/schemas/store.schema.js.map +1 -0
- package/dist/domain/kinds/schemas/store.types.d.ts +2 -0
- package/dist/domain/kinds/schemas/store.types.d.ts.map +1 -0
- package/dist/domain/kinds/schemas/store.types.js.map +1 -0
- package/dist/domain/kinds/secret-key.d.ts +13 -0
- package/dist/domain/kinds/secret-key.d.ts.map +1 -0
- package/dist/domain/kinds/secret-key.js +47 -0
- package/dist/domain/kinds/secret-key.js.map +1 -0
- package/dist/domain/kinds/store-operation.d.ts +3 -0
- package/dist/domain/kinds/store-operation.d.ts.map +1 -0
- package/dist/domain/kinds/store-operation.js +43 -0
- package/dist/domain/kinds/store-operation.js.map +1 -0
- package/dist/domain/kinds/store-selection.d.ts +21 -0
- package/dist/domain/kinds/store-selection.d.ts.map +1 -0
- package/dist/domain/kinds/store-selection.js +57 -0
- package/dist/domain/kinds/store-selection.js.map +1 -0
- package/dist/domain/kinds/store.interface.d.ts +2 -0
- package/dist/domain/kinds/store.interface.d.ts.map +1 -0
- package/dist/domain/kinds/store.interface.js.map +1 -0
- package/dist/domain/kinds/store.kind.d.ts +20 -0
- package/dist/domain/kinds/store.kind.d.ts.map +1 -0
- package/dist/domain/kinds/store.kind.js +33 -0
- package/dist/domain/kinds/store.kind.js.map +1 -0
- package/dist/domain/kinds/store.schema.d.ts +2 -0
- package/dist/domain/kinds/store.schema.d.ts.map +1 -0
- package/dist/domain/kinds/store.schema.js +2 -0
- package/dist/domain/kinds/store.schema.js.map +1 -0
- package/dist/domain/manifest/authentication.d.ts +17 -0
- package/dist/domain/manifest/authentication.d.ts.map +1 -0
- package/dist/domain/manifest/authentication.js +119 -0
- package/dist/domain/manifest/authentication.js.map +1 -0
- package/dist/domain/manifest/canonical.d.ts +6 -0
- package/dist/domain/manifest/canonical.d.ts.map +1 -0
- package/dist/domain/manifest/canonical.js +86 -0
- package/dist/domain/manifest/canonical.js.map +1 -0
- package/dist/domain/manifest/dotenv.d.ts +13 -0
- package/dist/domain/manifest/dotenv.d.ts.map +1 -0
- package/dist/domain/manifest/dotenv.js +132 -0
- package/dist/domain/manifest/dotenv.js.map +1 -0
- package/dist/domain/manifest/import-manifest.schema.d.ts +2 -0
- package/dist/domain/manifest/import-manifest.schema.d.ts.map +1 -0
- package/dist/domain/manifest/import-manifest.schema.js +2 -0
- package/dist/domain/manifest/import-manifest.schema.js.map +1 -0
- package/dist/domain/manifest/index.d.ts +4 -0
- package/dist/domain/manifest/index.d.ts.map +1 -0
- package/dist/domain/manifest/index.js +4 -0
- package/dist/domain/manifest/index.js.map +1 -0
- package/dist/domain/manifest/providers.d.ts +31 -0
- package/dist/domain/manifest/providers.d.ts.map +1 -0
- package/dist/domain/manifest/providers.js +123 -0
- package/dist/domain/manifest/providers.js.map +1 -0
- package/dist/domain/requirements/config-requirements.d.ts +18 -0
- package/dist/domain/requirements/config-requirements.d.ts.map +1 -0
- package/dist/domain/requirements/config-requirements.js +115 -0
- package/dist/domain/requirements/config-requirements.js.map +1 -0
- package/dist/domain/requirements/config-walk.d.ts +29 -0
- package/dist/domain/requirements/config-walk.d.ts.map +1 -0
- package/dist/domain/requirements/config-walk.js +138 -0
- package/dist/domain/requirements/config-walk.js.map +1 -0
- package/dist/domain/requirements/index.d.ts +2 -0
- package/dist/domain/requirements/index.d.ts.map +1 -0
- package/dist/domain/requirements/index.js +2 -0
- package/dist/domain/requirements/index.js.map +1 -0
- package/dist/domain/requirements/resolver.d.ts +27 -0
- package/dist/domain/requirements/resolver.d.ts.map +1 -0
- package/dist/domain/requirements/resolver.js +131 -0
- package/dist/domain/requirements/resolver.js.map +1 -0
- package/dist/domain/requirements/schemas/requirements.d.ts +2 -0
- package/dist/domain/requirements/schemas/requirements.d.ts.map +1 -0
- package/dist/domain/requirements/schemas/requirements.js.map +1 -0
- package/dist/domain/secrets.plugin.d.ts +8 -0
- package/dist/domain/secrets.plugin.d.ts.map +1 -0
- package/dist/domain/secrets.plugin.js +62 -0
- package/dist/domain/secrets.plugin.js.map +1 -0
- package/dist/domain/vault/index.d.ts +9 -0
- package/dist/domain/vault/index.d.ts.map +1 -0
- package/dist/domain/vault/index.js +8 -0
- package/dist/domain/vault/index.js.map +1 -0
- package/dist/domain/vault/secret-record.d.ts +14 -0
- package/dist/domain/vault/secret-record.d.ts.map +1 -0
- package/dist/domain/vault/secret-record.js +52 -0
- package/dist/domain/vault/secret-record.js.map +1 -0
- package/dist/domain/vault/secret.transform.d.ts +46 -0
- package/dist/domain/vault/secret.transform.d.ts.map +1 -0
- package/dist/domain/vault/secret.transform.js +54 -0
- package/dist/domain/vault/secret.transform.js.map +1 -0
- package/dist/exec/attempt-audit.d.ts +15 -0
- package/dist/exec/attempt-audit.d.ts.map +1 -0
- package/dist/exec/attempt-audit.js +35 -0
- package/dist/exec/attempt-audit.js.map +1 -0
- package/dist/exec/audit.d.ts +17 -0
- package/dist/exec/audit.d.ts.map +1 -0
- package/dist/exec/audit.js +29 -0
- package/dist/exec/audit.js.map +1 -0
- package/dist/exec/bootstrap.d.ts +14 -0
- package/dist/exec/bootstrap.d.ts.map +1 -0
- package/dist/exec/bootstrap.js +178 -0
- package/dist/exec/bootstrap.js.map +1 -0
- package/dist/exec/credential-leases.d.ts +56 -0
- package/dist/exec/credential-leases.d.ts.map +1 -0
- package/dist/exec/credential-leases.js +170 -0
- package/dist/exec/credential-leases.js.map +1 -0
- package/dist/exec/credential-process.d.ts +12 -0
- package/dist/exec/credential-process.d.ts.map +1 -0
- package/dist/exec/credential-process.js +108 -0
- package/dist/exec/credential-process.js.map +1 -0
- package/dist/exec/index.d.ts +7 -0
- package/dist/exec/index.d.ts.map +1 -0
- package/dist/exec/index.js +7 -0
- package/dist/exec/index.js.map +1 -0
- package/dist/exec/redactor.core.d.ts +7 -0
- package/dist/exec/redactor.core.d.ts.map +1 -0
- package/dist/exec/redactor.core.js +81 -0
- package/dist/exec/redactor.core.js.map +1 -0
- package/dist/exec/redactor.d.ts +3 -0
- package/dist/exec/redactor.d.ts.map +1 -0
- package/dist/exec/redactor.js +11 -0
- package/dist/exec/redactor.js.map +1 -0
- package/dist/exec/spawn-with-credentials.d.ts +62 -0
- package/dist/exec/spawn-with-credentials.d.ts.map +1 -0
- package/dist/exec/spawn-with-credentials.js +145 -0
- package/dist/exec/spawn-with-credentials.js.map +1 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/schemas/backends/bootstrap.schema.d.ts +16 -0
- package/dist/schemas/backends/bootstrap.schema.d.ts.map +1 -0
- package/dist/schemas/backends/bootstrap.schema.js +14 -0
- package/dist/schemas/backends/bootstrap.schema.js.map +1 -0
- package/dist/schemas/backends/host.schema.d.ts +4 -0
- package/dist/schemas/backends/host.schema.d.ts.map +1 -0
- package/dist/schemas/backends/host.schema.js +2 -0
- package/dist/schemas/backends/host.schema.js.map +1 -0
- package/dist/schemas/backends/unseal.schema.d.ts +30 -0
- package/dist/schemas/backends/unseal.schema.d.ts.map +1 -0
- package/dist/schemas/backends/unseal.schema.js +17 -0
- package/dist/schemas/backends/unseal.schema.js.map +1 -0
- package/dist/schemas/backends/vault.schema.d.ts +61 -0
- package/dist/schemas/backends/vault.schema.d.ts.map +1 -0
- package/dist/schemas/backends/vault.schema.js +36 -0
- package/dist/schemas/backends/vault.schema.js.map +1 -0
- package/dist/schemas/cli/commands/check.schema.d.ts +15 -0
- package/dist/schemas/cli/commands/check.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/check.schema.js +11 -0
- package/dist/schemas/cli/commands/check.schema.js.map +1 -0
- package/dist/schemas/cli/commands/exec.schema.d.ts +25 -0
- package/dist/schemas/cli/commands/exec.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/exec.schema.js +15 -0
- package/dist/schemas/cli/commands/exec.schema.js.map +1 -0
- package/dist/schemas/cli/commands/export.schema.d.ts +12 -0
- package/dist/schemas/cli/commands/export.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/export.schema.js +10 -0
- package/dist/schemas/cli/commands/export.schema.js.map +1 -0
- package/dist/schemas/cli/commands/import.schema.d.ts +11 -0
- package/dist/schemas/cli/commands/import.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/import.schema.js +9 -0
- package/dist/schemas/cli/commands/import.schema.js.map +1 -0
- package/dist/schemas/cli/commands/mint.schema.d.ts +30 -0
- package/dist/schemas/cli/commands/mint.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/mint.schema.js +32 -0
- package/dist/schemas/cli/commands/mint.schema.js.map +1 -0
- package/dist/schemas/cli/commands/precommit.schema.d.ts +8 -0
- package/dist/schemas/cli/commands/precommit.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/precommit.schema.js +6 -0
- package/dist/schemas/cli/commands/precommit.schema.js.map +1 -0
- package/dist/schemas/cli/commands/pull.schema.d.ts +14 -0
- package/dist/schemas/cli/commands/pull.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/pull.schema.js +11 -0
- package/dist/schemas/cli/commands/pull.schema.js.map +1 -0
- package/dist/schemas/cli/commands/push.schema.d.ts +16 -0
- package/dist/schemas/cli/commands/push.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/push.schema.js +13 -0
- package/dist/schemas/cli/commands/push.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/list.schema.d.ts +13 -0
- package/dist/schemas/cli/commands/store/list.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/list.schema.js +9 -0
- package/dist/schemas/cli/commands/store/list.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/reveal.schema.d.ts +13 -0
- package/dist/schemas/cli/commands/store/reveal.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/reveal.schema.js +11 -0
- package/dist/schemas/cli/commands/store/reveal.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/set.schema.d.ts +14 -0
- package/dist/schemas/cli/commands/store/set.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/set.schema.js +4 -0
- package/dist/schemas/cli/commands/store/set.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/unset.schema.d.ts +11 -0
- package/dist/schemas/cli/commands/store/unset.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/unset.schema.js +9 -0
- package/dist/schemas/cli/commands/store/unset.schema.js.map +1 -0
- package/dist/schemas/cli/exec-request.schema.d.ts +18 -0
- package/dist/schemas/cli/exec-request.schema.d.ts.map +1 -0
- package/dist/schemas/cli/exec-request.schema.js +11 -0
- package/dist/schemas/cli/exec-request.schema.js.map +1 -0
- package/dist/schemas/cli/mint-wire.schema.d.ts +18 -0
- package/dist/schemas/cli/mint-wire.schema.d.ts.map +1 -0
- package/dist/schemas/cli/mint-wire.schema.js +16 -0
- package/dist/schemas/cli/mint-wire.schema.js.map +1 -0
- package/dist/schemas/cli/output.schema.d.ts +8 -0
- package/dist/schemas/cli/output.schema.d.ts.map +1 -0
- package/dist/schemas/cli/output.schema.js +7 -0
- package/dist/schemas/cli/output.schema.js.map +1 -0
- package/dist/schemas/cli/redaction.schema.d.ts +10 -0
- package/dist/schemas/cli/redaction.schema.d.ts.map +1 -0
- package/dist/schemas/cli/redaction.schema.js +9 -0
- package/dist/schemas/cli/redaction.schema.js.map +1 -0
- package/dist/schemas/cli/request.schema.d.ts +26 -0
- package/dist/schemas/cli/request.schema.d.ts.map +1 -0
- package/dist/schemas/cli/request.schema.js +27 -0
- package/dist/schemas/cli/request.schema.js.map +1 -0
- package/dist/schemas/cli/selection.schema.d.ts +4 -0
- package/dist/schemas/cli/selection.schema.d.ts.map +1 -0
- package/dist/schemas/cli/selection.schema.js +2 -0
- package/dist/schemas/cli/selection.schema.js.map +1 -0
- package/dist/schemas/cli/terminal.schema.d.ts +8 -0
- package/dist/schemas/cli/terminal.schema.d.ts.map +1 -0
- package/dist/schemas/cli/terminal.schema.js +7 -0
- package/dist/schemas/cli/terminal.schema.js.map +1 -0
- package/dist/schemas/cli/transfer.schema.d.ts +11 -0
- package/dist/schemas/cli/transfer.schema.d.ts.map +1 -0
- package/dist/schemas/cli/transfer.schema.js +5 -0
- package/dist/schemas/cli/transfer.schema.js.map +1 -0
- package/dist/schemas/discovery/backfill.schema.d.ts +30 -0
- package/dist/schemas/discovery/backfill.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/backfill.schema.js +23 -0
- package/dist/schemas/discovery/backfill.schema.js.map +1 -0
- package/dist/schemas/discovery/check-report.schema.d.ts +19 -0
- package/dist/schemas/discovery/check-report.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/check-report.schema.js +17 -0
- package/dist/schemas/discovery/check-report.schema.js.map +1 -0
- package/dist/schemas/discovery/diagnostics.schema.d.ts +29 -0
- package/dist/schemas/discovery/diagnostics.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/diagnostics.schema.js +21 -0
- package/dist/schemas/discovery/diagnostics.schema.js.map +1 -0
- package/dist/schemas/discovery/dotenv.schema.d.ts +12 -0
- package/dist/schemas/discovery/dotenv.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/dotenv.schema.js +11 -0
- package/dist/schemas/discovery/dotenv.schema.js.map +1 -0
- package/dist/schemas/discovery/drift.schema.d.ts +262 -0
- package/dist/schemas/discovery/drift.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/drift.schema.js +31 -0
- package/dist/schemas/discovery/drift.schema.js.map +1 -0
- package/dist/schemas/discovery/import.schema.d.ts +77 -0
- package/dist/schemas/discovery/import.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/import.schema.js +55 -0
- package/dist/schemas/discovery/import.schema.js.map +1 -0
- package/dist/schemas/discovery/requirements.schema.d.ts +235 -0
- package/dist/schemas/discovery/requirements.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/requirements.schema.js +54 -0
- package/dist/schemas/discovery/requirements.schema.js.map +1 -0
- package/dist/schemas/discovery/runtime.schema.d.ts +83 -0
- package/dist/schemas/discovery/runtime.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/runtime.schema.js +20 -0
- package/dist/schemas/discovery/runtime.schema.js.map +1 -0
- package/dist/schemas/discovery/scan.schema.d.ts +13 -0
- package/dist/schemas/discovery/scan.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/scan.schema.js +8 -0
- package/dist/schemas/discovery/scan.schema.js.map +1 -0
- package/dist/schemas/discovery/signatures.schema.d.ts +14 -0
- package/dist/schemas/discovery/signatures.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/signatures.schema.js +12 -0
- package/dist/schemas/discovery/signatures.schema.js.map +1 -0
- package/dist/schemas/domain/attestation/attestation.schema.d.ts +30 -0
- package/dist/schemas/domain/attestation/attestation.schema.d.ts.map +1 -0
- package/dist/schemas/domain/attestation/attestation.schema.js +14 -0
- package/dist/schemas/domain/attestation/attestation.schema.js.map +1 -0
- package/dist/schemas/domain/attestation/provider.schema.d.ts +29 -0
- package/dist/schemas/domain/attestation/provider.schema.d.ts.map +1 -0
- package/dist/schemas/domain/attestation/provider.schema.js +18 -0
- package/dist/schemas/domain/attestation/provider.schema.js.map +1 -0
- package/dist/schemas/domain/config.schema.d.ts +6 -0
- package/dist/schemas/domain/config.schema.d.ts.map +1 -0
- package/dist/schemas/domain/config.schema.js +5 -0
- package/dist/schemas/domain/config.schema.js.map +1 -0
- package/dist/schemas/domain/store/store.schema.d.ts +82 -0
- package/dist/schemas/domain/store/store.schema.d.ts.map +1 -0
- package/dist/schemas/domain/store/store.schema.js +68 -0
- package/dist/schemas/domain/store/store.schema.js.map +1 -0
- package/dist/schemas/domain/store/store.types.d.ts +63 -0
- package/dist/schemas/domain/store/store.types.d.ts.map +1 -0
- package/dist/schemas/domain/store/store.types.js +25 -0
- package/dist/schemas/domain/store/store.types.js.map +1 -0
- package/dist/schemas/domain/testing/filesystem.schema.d.ts +39 -0
- package/dist/schemas/domain/testing/filesystem.schema.d.ts.map +1 -0
- package/dist/schemas/domain/testing/filesystem.schema.js +2 -0
- package/dist/schemas/domain/testing/filesystem.schema.js.map +1 -0
- package/dist/schemas/execution/audit.schema.d.ts +44 -0
- package/dist/schemas/execution/audit.schema.d.ts.map +1 -0
- package/dist/schemas/execution/audit.schema.js +29 -0
- package/dist/schemas/execution/audit.schema.js.map +1 -0
- package/dist/schemas/execution/bootstrap.schema.d.ts +79 -0
- package/dist/schemas/execution/bootstrap.schema.d.ts.map +1 -0
- package/dist/schemas/execution/bootstrap.schema.js +45 -0
- package/dist/schemas/execution/bootstrap.schema.js.map +1 -0
- package/dist/schemas/execution/environment.schema.d.ts +17 -0
- package/dist/schemas/execution/environment.schema.d.ts.map +1 -0
- package/dist/schemas/execution/environment.schema.js +10 -0
- package/dist/schemas/execution/environment.schema.js.map +1 -0
- package/dist/schemas/execution/leverage.schema.d.ts +17 -0
- package/dist/schemas/execution/leverage.schema.d.ts.map +1 -0
- package/dist/schemas/execution/leverage.schema.js +11 -0
- package/dist/schemas/execution/leverage.schema.js.map +1 -0
- package/dist/schemas/execution/prepared.schema.d.ts +28 -0
- package/dist/schemas/execution/prepared.schema.d.ts.map +1 -0
- package/dist/schemas/execution/prepared.schema.js +8 -0
- package/dist/schemas/execution/prepared.schema.js.map +1 -0
- package/dist/schemas/execution/redactor.schema.d.ts +7 -0
- package/dist/schemas/execution/redactor.schema.d.ts.map +1 -0
- package/dist/schemas/execution/redactor.schema.js +6 -0
- package/dist/schemas/execution/redactor.schema.js.map +1 -0
- package/dist/schemas/execution/result.schema.d.ts +55 -0
- package/dist/schemas/execution/result.schema.d.ts.map +1 -0
- package/dist/schemas/execution/result.schema.js +21 -0
- package/dist/schemas/execution/result.schema.js.map +1 -0
- package/dist/schemas/execution/spawn.schema.d.ts +218 -0
- package/dist/schemas/execution/spawn.schema.d.ts.map +1 -0
- package/dist/schemas/execution/spawn.schema.js +52 -0
- package/dist/schemas/execution/spawn.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +11 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/managed/account-client.schema.d.ts +218 -0
- package/dist/schemas/managed/account-client.schema.d.ts.map +1 -0
- package/dist/schemas/managed/account-client.schema.js +31 -0
- package/dist/schemas/managed/account-client.schema.js.map +1 -0
- package/dist/schemas/managed/managed-handle.schema.d.ts +16 -0
- package/dist/schemas/managed/managed-handle.schema.d.ts.map +1 -0
- package/dist/schemas/managed/managed-handle.schema.js +5 -0
- package/dist/schemas/managed/managed-handle.schema.js.map +1 -0
- package/dist/schemas/managed/managed-record.schema.d.ts +148 -0
- package/dist/schemas/managed/managed-record.schema.d.ts.map +1 -0
- package/dist/schemas/managed/managed-record.schema.js +53 -0
- package/dist/schemas/managed/managed-record.schema.js.map +1 -0
- package/dist/schemas/managed/secret.schema.d.ts +261 -0
- package/dist/schemas/managed/secret.schema.d.ts.map +1 -0
- package/dist/schemas/managed/secret.schema.js +114 -0
- package/dist/schemas/managed/secret.schema.js.map +1 -0
- package/dist/schemas/transport/authenticated-request.schema.d.ts +528 -0
- package/dist/schemas/transport/authenticated-request.schema.d.ts.map +1 -0
- package/dist/schemas/transport/authenticated-request.schema.js +78 -0
- package/dist/schemas/transport/authenticated-request.schema.js.map +1 -0
- package/dist/schemas/transport/body.schema.d.ts +7 -0
- package/dist/schemas/transport/body.schema.d.ts.map +1 -0
- package/dist/schemas/transport/body.schema.js +6 -0
- package/dist/schemas/transport/body.schema.js.map +1 -0
- package/dist/schemas/transport/credential-use.schema.d.ts +200 -0
- package/dist/schemas/transport/credential-use.schema.d.ts.map +1 -0
- package/dist/schemas/transport/credential-use.schema.js +64 -0
- package/dist/schemas/transport/credential-use.schema.js.map +1 -0
- package/dist/schemas/transport/file.schema.d.ts +6 -0
- package/dist/schemas/transport/file.schema.d.ts.map +1 -0
- package/dist/schemas/transport/file.schema.js +5 -0
- package/dist/schemas/transport/file.schema.js.map +1 -0
- package/dist/schemas/transport/header.schema.d.ts +17 -0
- package/dist/schemas/transport/header.schema.d.ts.map +1 -0
- package/dist/schemas/transport/header.schema.js +13 -0
- package/dist/schemas/transport/header.schema.js.map +1 -0
- package/dist/schemas/transport/json.schema.d.ts +10 -0
- package/dist/schemas/transport/json.schema.d.ts.map +1 -0
- package/dist/schemas/transport/json.schema.js +2 -0
- package/dist/schemas/transport/json.schema.js.map +1 -0
- package/dist/schemas/transport/outcome.schema.d.ts +10 -0
- package/dist/schemas/transport/outcome.schema.d.ts.map +1 -0
- package/dist/schemas/transport/outcome.schema.js +2 -0
- package/dist/schemas/transport/outcome.schema.js.map +1 -0
- package/dist/schemas/transport/url.schema.d.ts +24 -0
- package/dist/schemas/transport/url.schema.d.ts.map +1 -0
- package/dist/schemas/transport/url.schema.js +20 -0
- package/dist/schemas/transport/url.schema.js.map +1 -0
- package/dist/schemas/ui/reveal.schema.d.ts +25 -0
- package/dist/schemas/ui/reveal.schema.d.ts.map +1 -0
- package/dist/schemas/ui/reveal.schema.js +17 -0
- package/dist/schemas/ui/reveal.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/form.schema.d.ts +70 -0
- package/dist/schemas/ui/svelte/form.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/form.schema.js +15 -0
- package/dist/schemas/ui/svelte/form.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/layout.schema.d.ts +128 -0
- package/dist/schemas/ui/svelte/layout.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/layout.schema.js +29 -0
- package/dist/schemas/ui/svelte/layout.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/state.schema.d.ts +59 -0
- package/dist/schemas/ui/svelte/state.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/state.schema.js +13 -0
- package/dist/schemas/ui/svelte/state.schema.js.map +1 -0
- package/dist/schemas/ui/tui/list.schema.d.ts +45 -0
- package/dist/schemas/ui/tui/list.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/list.schema.js +23 -0
- package/dist/schemas/ui/tui/list.schema.js.map +1 -0
- package/dist/schemas/ui/tui/metadata.schema.d.ts +20 -0
- package/dist/schemas/ui/tui/metadata.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/metadata.schema.js +7 -0
- package/dist/schemas/ui/tui/metadata.schema.js.map +1 -0
- package/dist/schemas/ui/tui/pane.schema.d.ts +24 -0
- package/dist/schemas/ui/tui/pane.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/pane.schema.js +11 -0
- package/dist/schemas/ui/tui/pane.schema.js.map +1 -0
- package/dist/support/credential-signatures.d.ts +17 -0
- package/dist/support/credential-signatures.d.ts.map +1 -0
- package/dist/support/credential-signatures.js +58 -0
- package/dist/support/credential-signatures.js.map +1 -0
- package/dist/support/environment.d.ts +19 -0
- package/dist/support/environment.d.ts.map +1 -0
- package/dist/support/environment.js +28 -0
- package/dist/support/environment.js.map +1 -0
- package/dist/support/file-failure.d.ts +16 -0
- package/dist/support/file-failure.d.ts.map +1 -0
- package/dist/support/file-failure.js +38 -0
- package/dist/support/file-failure.js.map +1 -0
- package/dist/support/path-queue.d.ts +11 -0
- package/dist/support/path-queue.d.ts.map +1 -0
- package/dist/support/path-queue.js +31 -0
- package/dist/support/path-queue.js.map +1 -0
- package/dist/support/runtime-resolver.d.ts +25 -0
- package/dist/support/runtime-resolver.d.ts.map +1 -0
- package/dist/support/runtime-resolver.js +33 -0
- package/dist/support/runtime-resolver.js.map +1 -0
- package/dist/support/secret-value.d.ts +20 -0
- package/dist/support/secret-value.d.ts.map +1 -0
- package/dist/support/secret-value.js +49 -0
- package/dist/support/secret-value.js.map +1 -0
- package/dist/support/store-environment.d.ts +10 -0
- package/dist/support/store-environment.d.ts.map +1 -0
- package/dist/support/store-environment.js +20 -0
- package/dist/support/store-environment.js.map +1 -0
- package/dist/support/test-support/adapter-runtime.d.ts +4 -0
- package/dist/support/test-support/adapter-runtime.d.ts.map +1 -0
- package/dist/support/test-support/adapter-runtime.js +19 -0
- package/dist/support/test-support/adapter-runtime.js.map +1 -0
- package/dist/support/test-support/filesystem-descriptor.d.ts +19 -0
- package/dist/support/test-support/filesystem-descriptor.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-descriptor.js +46 -0
- package/dist/support/test-support/filesystem-descriptor.js.map +1 -0
- package/dist/support/test-support/filesystem-double.d.ts +41 -0
- package/dist/support/test-support/filesystem-double.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-double.js +196 -0
- package/dist/support/test-support/filesystem-double.js.map +1 -0
- package/dist/support/test-support/filesystem-paths.d.ts +3 -0
- package/dist/support/test-support/filesystem-paths.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-paths.js +44 -0
- package/dist/support/test-support/filesystem-paths.js.map +1 -0
- package/dist/support/test-support/path-mechanics.d.ts +6 -0
- package/dist/support/test-support/path-mechanics.d.ts.map +1 -0
- package/dist/support/test-support/path-mechanics.js +31 -0
- package/dist/support/test-support/path-mechanics.js.map +1 -0
- package/dist/support/test-support/private-files.d.ts +3 -0
- package/dist/support/test-support/private-files.d.ts.map +1 -0
- package/dist/support/test-support/private-files.js +52 -0
- package/dist/support/test-support/private-files.js.map +1 -0
- package/dist/support/test-support/register-adapter.d.ts +5 -0
- package/dist/support/test-support/register-adapter.d.ts.map +1 -0
- package/dist/support/test-support/register-adapter.js +20 -0
- package/dist/support/test-support/register-adapter.js.map +1 -0
- package/dist/support/test-support/stub-fetch.d.ts +13 -0
- package/dist/support/test-support/stub-fetch.d.ts.map +1 -0
- package/dist/support/test-support/stub-fetch.js +17 -0
- package/dist/support/test-support/stub-fetch.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec-input.d.ts +39 -0
- package/dist/surfaces/cli/commands/exec/exec-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec-input.js +116 -0
- package/dist/surfaces/cli/commands/exec/exec-input.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.d.ts +57 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.js +66 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.d.ts +33 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.js +110 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.d.ts +47 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.js +82 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.d.ts +16 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.js +57 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.d.ts +11 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.js +54 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.d.ts +12 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.js +100 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.d.ts +10 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.js +27 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.d.ts +11 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.js +132 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.d.ts +30 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.js +57 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.js +23 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.js +113 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.js +171 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.d.ts +4 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.js +16 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.d.ts +16 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.js +32 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.js +20 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.d.ts +17 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.js +41 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.js +22 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.d.ts +20 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.js +93 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.js +47 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.d.ts +23 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.js +60 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.d.ts +14 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.js +30 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.d.ts +28 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.js +76 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.d.ts +20 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.js +57 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.d.ts +59 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.js +66 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.d.ts +27 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.js +136 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.d.ts +8 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.js +17 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request-http.d.ts +31 -0
- package/dist/surfaces/cli/commands/request/request-http.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request-http.js +78 -0
- package/dist/surfaces/cli/commands/request/request-http.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request-input.d.ts +12 -0
- package/dist/surfaces/cli/commands/request/request-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request-input.js +93 -0
- package/dist/surfaces/cli/commands/request/request-input.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.d.ts +71 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.js +61 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.d.ts +11 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.js +135 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.d.ts +18 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.js +24 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.d.ts +42 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.js +38 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.d.ts +10 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.js +147 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.d.ts +45 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.js +46 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.d.ts +9 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.js +128 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set-input.d.ts +13 -0
- package/dist/surfaces/cli/commands/store/set-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set-input.js +66 -0
- package/dist/surfaces/cli/commands/store/set-input.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.d.ts +48 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.js +51 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.d.ts +10 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.js +100 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.js.map +1 -0
- package/dist/surfaces/cli/environment.d.ts +7 -0
- package/dist/surfaces/cli/environment.d.ts.map +1 -0
- package/dist/surfaces/cli/environment.js +7 -0
- package/dist/surfaces/cli/environment.js.map +1 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.d.ts +40 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.d.ts.map +1 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.js +99 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.js.map +1 -0
- package/dist/surfaces/cli/index.d.ts +17 -0
- package/dist/surfaces/cli/index.d.ts.map +1 -0
- package/dist/surfaces/cli/index.js +17 -0
- package/dist/surfaces/cli/index.js.map +1 -0
- package/dist/surfaces/cli/plugin.d.ts +27 -0
- package/dist/surfaces/cli/plugin.d.ts.map +1 -0
- package/dist/surfaces/cli/plugin.js +88 -0
- package/dist/surfaces/cli/plugin.js.map +1 -0
- package/dist/surfaces/cli/secrets-group.descriptor.d.ts +17 -0
- package/dist/surfaces/cli/secrets-group.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/secrets-group.descriptor.js +25 -0
- package/dist/surfaces/cli/secrets-group.descriptor.js.map +1 -0
- package/dist/surfaces/cli/shared/app-target.d.ts +14 -0
- package/dist/surfaces/cli/shared/app-target.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/app-target.js +28 -0
- package/dist/surfaces/cli/shared/app-target.js.map +1 -0
- package/dist/surfaces/cli/shared/output/command-output.d.ts +14 -0
- package/dist/surfaces/cli/shared/output/command-output.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/command-output.js +21 -0
- package/dist/surfaces/cli/shared/output/command-output.js.map +1 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.d.ts +29 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.js +116 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.js.map +1 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.d.ts +17 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.js +12 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.js.map +1 -0
- package/dist/surfaces/cli/shared/output/ui-context.d.ts +10 -0
- package/dist/surfaces/cli/shared/output/ui-context.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/ui-context.js +28 -0
- package/dist/surfaces/cli/shared/output/ui-context.js.map +1 -0
- package/dist/surfaces/cli/shared/parse-options.d.ts +9 -0
- package/dist/surfaces/cli/shared/parse-options.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/parse-options.js +20 -0
- package/dist/surfaces/cli/shared/parse-options.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.d.ts +23 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.js +116 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.d.ts +27 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.js +157 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.d.ts +16 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.js +24 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.d.ts +56 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.js +132 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-selection.d.ts +39 -0
- package/dist/surfaces/cli/shared/stores/store-selection.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-selection.js +79 -0
- package/dist/surfaces/cli/shared/stores/store-selection.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.d.ts +42 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.js +96 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.js.map +1 -0
- package/dist/surfaces/svelte/account/account-errors.d.ts +10 -0
- package/dist/surfaces/svelte/account/account-errors.d.ts.map +1 -0
- package/dist/surfaces/svelte/account/account-errors.js +45 -0
- package/dist/surfaces/svelte/account/account-transport.d.ts +10 -0
- package/dist/surfaces/svelte/account/account-transport.d.ts.map +1 -0
- package/dist/surfaces/svelte/account/account-transport.js +112 -0
- package/dist/surfaces/svelte/client/runtime.d.ts +12 -0
- package/dist/surfaces/svelte/client/runtime.d.ts.map +1 -0
- package/dist/surfaces/svelte/client/runtime.js +107 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte +181 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte.d.ts +13 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte +117 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte.d.ts +16 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte +177 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte.d.ts +13 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte +190 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte.d.ts +48 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte +141 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte.d.ts +28 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte +59 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte.d.ts +10 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte +122 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte.d.ts +24 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte +72 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte.d.ts +36 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/index.d.ts +32 -0
- package/dist/surfaces/svelte/index.d.ts.map +1 -0
- package/dist/surfaces/svelte/index.js +30 -0
- package/dist/surfaces/svelte/loaders.d.ts +47 -0
- package/dist/surfaces/svelte/loaders.d.ts.map +1 -0
- package/dist/surfaces/svelte/loaders.js +64 -0
- package/dist/surfaces/svelte/state-context.d.ts +6 -0
- package/dist/surfaces/svelte/state-context.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-context.js +19 -0
- package/dist/surfaces/svelte/state-owner.d.ts +173 -0
- package/dist/surfaces/svelte/state-owner.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-owner.js +49 -0
- package/dist/surfaces/svelte/state-reader.svelte.d.ts +59 -0
- package/dist/surfaces/svelte/state-reader.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-reader.svelte.js +176 -0
- package/dist/surfaces/svelte/state.svelte.d.ts +30 -0
- package/dist/surfaces/svelte/state.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/state.svelte.js +121 -0
- package/dist/surfaces/svelte/styles.css +8 -0
- package/dist/surfaces/tui/components/InspectorNotices.d.ts +12 -0
- package/dist/surfaces/tui/components/InspectorNotices.d.ts.map +1 -0
- package/dist/surfaces/tui/components/InspectorNotices.js +17 -0
- package/dist/surfaces/tui/components/InspectorNotices.js.map +1 -0
- package/dist/surfaces/tui/components/RevealPane.d.ts +41 -0
- package/dist/surfaces/tui/components/RevealPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/RevealPane.js +35 -0
- package/dist/surfaces/tui/components/RevealPane.js.map +1 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.d.ts +5 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.js +30 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.js.map +1 -0
- package/dist/surfaces/tui/components/SecretsListPane.d.ts +5 -0
- package/dist/surfaces/tui/components/SecretsListPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/SecretsListPane.js +34 -0
- package/dist/surfaces/tui/components/SecretsListPane.js.map +1 -0
- package/dist/surfaces/tui/components/useInspectorKeys.d.ts +16 -0
- package/dist/surfaces/tui/components/useInspectorKeys.d.ts.map +1 -0
- package/dist/surfaces/tui/components/useInspectorKeys.js +63 -0
- package/dist/surfaces/tui/components/useInspectorKeys.js.map +1 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.d.ts +29 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.d.ts.map +1 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.js +101 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.js.map +1 -0
- package/dist/surfaces/tui/index.d.ts +13 -0
- package/dist/surfaces/tui/index.d.ts.map +1 -0
- package/dist/surfaces/tui/index.js +12 -0
- package/dist/surfaces/tui/index.js.map +1 -0
- package/dist/surfaces/tui/secrets-tui.plugin.d.ts +18 -0
- package/dist/surfaces/tui/secrets-tui.plugin.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets-tui.plugin.js +42 -0
- package/dist/surfaces/tui/secrets-tui.plugin.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.d.ts +16 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.js +31 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.d.ts +4 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.js +115 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.d.ts +20 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.js +29 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.d.ts +9 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.js +13 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/state/list-loading.d.ts +4 -0
- package/dist/surfaces/tui/state/list-loading.d.ts.map +1 -0
- package/dist/surfaces/tui/state/list-loading.js +79 -0
- package/dist/surfaces/tui/state/list-loading.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.d.ts +21 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.js +42 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.d.ts +5 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.js +62 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.d.ts +19 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.js +10 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.js.map +1 -0
- package/dist/transport/bounded-body.d.ts +17 -0
- package/dist/transport/bounded-body.d.ts.map +1 -0
- package/dist/transport/bounded-body.js +56 -0
- package/dist/transport/bounded-body.js.map +1 -0
- package/dist/transport/header-value.d.ts +12 -0
- package/dist/transport/header-value.d.ts.map +1 -0
- package/dist/transport/header-value.js +43 -0
- package/dist/transport/header-value.js.map +1 -0
- package/dist/transport/host-file.d.ts +14 -0
- package/dist/transport/host-file.d.ts.map +1 -0
- package/dist/transport/host-file.js +93 -0
- package/dist/transport/host-file.js.map +1 -0
- package/dist/transport/index.d.ts +14 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +14 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/json-body.d.ts +5 -0
- package/dist/transport/json-body.d.ts.map +1 -0
- package/dist/transport/json-body.js +23 -0
- package/dist/transport/json-body.js.map +1 -0
- package/dist/transport/secure-url.d.ts +24 -0
- package/dist/transport/secure-url.d.ts.map +1 -0
- package/dist/transport/secure-url.js +67 -0
- package/dist/transport/secure-url.js.map +1 -0
- package/dist/transport/text.d.ts +10 -0
- package/dist/transport/text.d.ts.map +1 -0
- package/dist/transport/text.js +28 -0
- package/dist/transport/text.js.map +1 -0
- package/docs/contracts.md +94 -0
- package/package.json +363 -65
- package/dist/cli/check/schemas/check-result.d.ts +0 -9
- package/dist/cli/check/schemas/check-result.d.ts.map +0 -1
- package/dist/cli/check/schemas/check-result.js.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.descriptor.js +0 -19
- package/dist/cli/check/secrets.check.cli-command.descriptor.js.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.impl.d.ts +0 -5
- package/dist/cli/check/secrets.check.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.impl.js +0 -135
- package/dist/cli/check/secrets.check.cli-command.impl.js.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.descriptor.js +0 -20
- package/dist/cli/export/secrets.export.cli-command.descriptor.js.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.impl.d.ts +0 -5
- package/dist/cli/export/secrets.export.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.impl.js +0 -104
- package/dist/cli/export/secrets.export.cli-command.impl.js.map +0 -1
- package/dist/cli/hooks/pre-commit-secrets.d.ts +0 -2
- package/dist/cli/hooks/pre-commit-secrets.d.ts.map +0 -1
- package/dist/cli/hooks/pre-commit-secrets.js +0 -68
- package/dist/cli/hooks/pre-commit-secrets.js.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.descriptor.js.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.impl.d.ts +0 -5
- package/dist/cli/import/secrets.import.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.impl.js +0 -155
- package/dist/cli/import/secrets.import.cli-command.impl.js.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/list/secrets.list.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.descriptor.js +0 -18
- package/dist/cli/list/secrets.list.cli-command.descriptor.js.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.impl.d.ts +0 -5
- package/dist/cli/list/secrets.list.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.impl.js +0 -61
- package/dist/cli/list/secrets.list.cli-command.impl.js.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.js +0 -16
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.js.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.d.ts +0 -5
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.js +0 -10
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.js.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.js +0 -20
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.js.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.impl.d.ts +0 -5
- package/dist/cli/pull/secrets.pull.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.impl.js +0 -76
- package/dist/cli/pull/secrets.pull.cli-command.impl.js.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.descriptor.js +0 -22
- package/dist/cli/push/secrets.push.cli-command.descriptor.js.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.impl.d.ts +0 -5
- package/dist/cli/push/secrets.push.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.impl.js +0 -109
- package/dist/cli/push/secrets.push.cli-command.impl.js.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.js +0 -19
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.js.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.d.ts +0 -5
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.js +0 -85
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.js.map +0 -1
- package/dist/cli/secrets.cli-group.descriptor.d.ts +0 -4
- package/dist/cli/secrets.cli-group.descriptor.d.ts.map +0 -1
- package/dist/cli/secrets.cli-group.descriptor.js +0 -11
- package/dist/cli/secrets.cli-group.descriptor.js.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/set/secrets.set.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.descriptor.js +0 -21
- package/dist/cli/set/secrets.set.cli-command.descriptor.js.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.impl.d.ts +0 -5
- package/dist/cli/set/secrets.set.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.impl.js +0 -59
- package/dist/cli/set/secrets.set.cli-command.impl.js.map +0 -1
- package/dist/cli/shared/resolve-environment.d.ts +0 -14
- package/dist/cli/shared/resolve-environment.d.ts.map +0 -1
- package/dist/cli/shared/resolve-environment.js +0 -45
- package/dist/cli/shared/resolve-environment.js.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.descriptor.js.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.impl.d.ts +0 -5
- package/dist/cli/unset/secrets.unset.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.impl.js +0 -31
- package/dist/cli/unset/secrets.unset.cli-command.impl.js.map +0 -1
- package/dist/kinds/index.d.ts +0 -4
- package/dist/kinds/index.d.ts.map +0 -1
- package/dist/kinds/index.js +0 -3
- package/dist/kinds/index.js.map +0 -1
- package/dist/kinds/schemas/store.schema.d.ts +0 -49
- package/dist/kinds/schemas/store.schema.d.ts.map +0 -1
- package/dist/kinds/schemas/store.schema.js +0 -34
- package/dist/kinds/schemas/store.schema.js.map +0 -1
- package/dist/kinds/schemas/store.types.d.ts +0 -28
- package/dist/kinds/schemas/store.types.d.ts.map +0 -1
- package/dist/kinds/schemas/store.types.js.map +0 -1
- package/dist/kinds/store.interface.d.ts +0 -2
- package/dist/kinds/store.interface.d.ts.map +0 -1
- package/dist/kinds/store.interface.js.map +0 -1
- package/dist/kinds/store.kind.d.ts +0 -10
- package/dist/kinds/store.kind.d.ts.map +0 -1
- package/dist/kinds/store.kind.js +0 -36
- package/dist/kinds/store.kind.js.map +0 -1
- package/dist/kinds/store.schema.d.ts +0 -2
- package/dist/kinds/store.schema.d.ts.map +0 -1
- package/dist/kinds/store.schema.js +0 -2
- package/dist/kinds/store.schema.js.map +0 -1
- package/dist/manifest/canonical.d.ts +0 -30
- package/dist/manifest/canonical.d.ts.map +0 -1
- package/dist/manifest/canonical.js +0 -313
- package/dist/manifest/canonical.js.map +0 -1
- package/dist/manifest/import-manifest.schema.d.ts +0 -77
- package/dist/manifest/import-manifest.schema.d.ts.map +0 -1
- package/dist/manifest/import-manifest.schema.js +0 -55
- package/dist/manifest/import-manifest.schema.js.map +0 -1
- package/dist/manifest/index.d.ts +0 -3
- package/dist/manifest/index.d.ts.map +0 -1
- package/dist/manifest/index.js +0 -3
- package/dist/manifest/index.js.map +0 -1
- package/dist/requirements/index.d.ts +0 -2
- package/dist/requirements/index.d.ts.map +0 -1
- package/dist/requirements/index.js +0 -2
- package/dist/requirements/index.js.map +0 -1
- package/dist/requirements/resolver.d.ts +0 -52
- package/dist/requirements/resolver.d.ts.map +0 -1
- package/dist/requirements/resolver.js +0 -196
- package/dist/requirements/resolver.js.map +0 -1
- package/dist/requirements/schemas/requirements.d.ts +0 -27
- package/dist/requirements/schemas/requirements.d.ts.map +0 -1
- package/dist/requirements/schemas/requirements.js.map +0 -1
- package/dist/secrets.plugin.d.ts +0 -8
- package/dist/secrets.plugin.d.ts.map +0 -1
- package/dist/secrets.plugin.js +0 -59
- package/dist/secrets.plugin.js.map +0 -1
- package/src/cli/check/schemas/check-result.ts +0 -8
- package/src/cli/check/secrets.check.cli-command.descriptor.ts +0 -21
- package/src/cli/check/secrets.check.cli-command.impl.ts +0 -163
- package/src/cli/export/secrets.export.cli-command.descriptor.ts +0 -22
- package/src/cli/export/secrets.export.cli-command.impl.ts +0 -139
- package/src/cli/hooks/pre-commit-secrets.ts +0 -73
- package/src/cli/import/secrets.import.cli-command.descriptor.ts +0 -21
- package/src/cli/import/secrets.import.cli-command.impl.ts +0 -178
- package/src/cli/list/secrets.list.cli-command.descriptor.ts +0 -21
- package/src/cli/list/secrets.list.cli-command.impl.ts +0 -79
- package/src/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.ts +0 -18
- package/src/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.ts +0 -11
- package/src/cli/pull/secrets.pull.cli-command.descriptor.ts +0 -22
- package/src/cli/pull/secrets.pull.cli-command.impl.ts +0 -103
- package/src/cli/push/secrets.push.cli-command.descriptor.ts +0 -24
- package/src/cli/push/secrets.push.cli-command.impl.ts +0 -149
- package/src/cli/reveal/secrets.reveal.cli-command.descriptor.ts +0 -21
- package/src/cli/reveal/secrets.reveal.cli-command.impl.ts +0 -108
- package/src/cli/secrets.cli-group.descriptor.ts +0 -13
- package/src/cli/set/secrets.set.cli-command.descriptor.ts +0 -23
- package/src/cli/set/secrets.set.cli-command.impl.ts +0 -77
- package/src/cli/shared/resolve-environment.ts +0 -57
- package/src/cli/unset/secrets.unset.cli-command.descriptor.ts +0 -22
- package/src/cli/unset/secrets.unset.cli-command.impl.ts +0 -41
- package/src/docs/backends.docs.descriptor.ts +0 -151
- package/src/docs/encryption.docs.descriptor.ts +0 -165
- package/src/docs/env-file.docs.descriptor.ts +0 -209
- package/src/index.ts +0 -35
- package/src/kinds/index.ts +0 -12
- package/src/kinds/schemas/store.schema.ts +0 -47
- package/src/kinds/schemas/store.types.ts +0 -35
- package/src/kinds/store.interface.ts +0 -1
- package/src/kinds/store.kind.ts +0 -52
- package/src/kinds/store.schema.ts +0 -8
- package/src/manifest/canonical.ts +0 -324
- package/src/manifest/import-manifest.schema.ts +0 -63
- package/src/manifest/index.ts +0 -12
- package/src/requirements/index.ts +0 -6
- package/src/requirements/resolver.ts +0 -216
- package/src/requirements/schemas/requirements.ts +0 -29
- package/src/secrets.plugin.ts +0 -65
- /package/dist/{kinds → domain/kinds}/schemas/store.types.js +0 -0
- /package/dist/{kinds → domain/kinds}/store.interface.js +0 -0
- /package/dist/{requirements → domain/requirements}/schemas/requirements.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/check/schemas/check-result.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/check/secrets.check.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/export/secrets.export.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/import/secrets.import.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/import/secrets.import.cli-command.descriptor.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/pull/secrets.pull.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/push/secrets.push.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/unset/secrets.unset.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/unset/secrets.unset.cli-command.descriptor.js +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { createFileExclusiveChecked, publishPrivateFile, readFilePrivate, resolveFileSystemAdapter } from '@vibesdotdev/filesystem';
|
|
2
|
+
import { CapabilityError, isCapabilityError } from '@vibesdotdev/kernel';
|
|
3
|
+
import { getPathRoots } from '@vibesdotdev/paths';
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
import { assertSecretKey } from "../../../../domain/kinds/secret-key.js";
|
|
6
|
+
import { DRIFT_INDEX_VERSION, driftIndexSchema } from "../../../../schemas/discovery/drift.schema.js";
|
|
7
|
+
import { isAbsentEntry, outcomeOf } from "../../../../support/file-failure.js";
|
|
8
|
+
import { serializeByPath } from "../../../../support/path-queue.js";
|
|
9
|
+
export { DRIFT_INDEX_VERSION, driftFingerprintRecordSchema, driftIndexSchema } from "../../../../schemas/discovery/drift.schema.js";
|
|
10
|
+
export { backfillFingerprints, compareFingerprints, isKeyRefusal, logger, tryGetStoreValue, tryListStore } from "./drift-backfill.js";
|
|
11
|
+
export const CHECKER_KEY_FILE = 'drift-checker.key';
|
|
12
|
+
export const INDEX_FILE = 'drift-fingerprints.json';
|
|
13
|
+
/** The checker key is 32 random bytes. */
|
|
14
|
+
const CHECKER_KEY_BYTES = 32;
|
|
15
|
+
/** The drift directory is the owner's alone. */
|
|
16
|
+
const DRIFT_DIRECTORY_MODE = 0o700;
|
|
17
|
+
/** The drift home of `runtime`: the host's own files, never a workspace-rooted view. */
|
|
18
|
+
export async function driftFingerprintHome(runtime) {
|
|
19
|
+
const fs = await resolveFileSystemAdapter(runtime, { binding: false });
|
|
20
|
+
return { fs, directory: fs.join(getPathRoots(runtime).activeHome, 'secrets') };
|
|
21
|
+
}
|
|
22
|
+
function keyPath(home) {
|
|
23
|
+
return home.fs.join(home.directory, CHECKER_KEY_FILE);
|
|
24
|
+
}
|
|
25
|
+
function indexPath(home) {
|
|
26
|
+
return home.fs.join(home.directory, INDEX_FILE);
|
|
27
|
+
}
|
|
28
|
+
function toHex(bytes) {
|
|
29
|
+
return Array.from(bytes, (byte) => byte.toString(16).padStart(2, '0')).join('');
|
|
30
|
+
}
|
|
31
|
+
function invalidCheckerKey(path) {
|
|
32
|
+
return new CapabilityError(`The drift checker key ${path} is not a ${CHECKER_KEY_BYTES}-byte key.`, 'INTERNAL', {
|
|
33
|
+
reason: 'data-corrupt',
|
|
34
|
+
retryable: false,
|
|
35
|
+
details: { path },
|
|
36
|
+
recoveryHint: 'Move the file aside; `vibes secrets set` creates a new key (recorded fingerprints must be re-recorded).'
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/** The key file's bytes, or `undefined` when there is none. The key is read only while owner-private. */
|
|
40
|
+
async function readCheckerKey(home) {
|
|
41
|
+
const read = await outcomeOf(() => readFilePrivate(home.fs, keyPath(home), CHECKER_KEY_BYTES + 1));
|
|
42
|
+
if (read.ok)
|
|
43
|
+
return read.value;
|
|
44
|
+
if (isCapabilityError(read.failure) && read.failure.reason === 'filesystem-private-missing')
|
|
45
|
+
return undefined;
|
|
46
|
+
// A key of the wrong size is reported as such, not as the adapter's size refusal.
|
|
47
|
+
if (isCapabilityError(read.failure) && read.failure.reason === 'filesystem-private-too-large') {
|
|
48
|
+
throw invalidCheckerKey(keyPath(home));
|
|
49
|
+
}
|
|
50
|
+
throw read.failure;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The checker key, created on first use. Creation is exclusive (the adapter's
|
|
54
|
+
* `createFileExclusive`, 0600): of two creators one wins and both then read the
|
|
55
|
+
* winner's key. An adapter without the capability refuses typed.
|
|
56
|
+
*/
|
|
57
|
+
export async function loadCheckerKey(home) {
|
|
58
|
+
const existing = await readCheckerKey(home);
|
|
59
|
+
if (existing) {
|
|
60
|
+
if (existing.byteLength !== CHECKER_KEY_BYTES)
|
|
61
|
+
throw invalidCheckerKey(keyPath(home));
|
|
62
|
+
return existing;
|
|
63
|
+
}
|
|
64
|
+
await home.fs.mkdir(home.directory, { recursive: true, mode: DRIFT_DIRECTORY_MODE });
|
|
65
|
+
await createFileExclusiveChecked(home.fs, keyPath(home), crypto.getRandomValues(new Uint8Array(CHECKER_KEY_BYTES)));
|
|
66
|
+
const key = await readCheckerKey(home);
|
|
67
|
+
if (!key || key.byteLength !== CHECKER_KEY_BYTES)
|
|
68
|
+
throw invalidCheckerKey(keyPath(home));
|
|
69
|
+
return key;
|
|
70
|
+
}
|
|
71
|
+
/** HMAC-SHA256 of `value` under the checker key, hex. */
|
|
72
|
+
export async function fingerprintValue(value, checkerKey) {
|
|
73
|
+
// A copy: the key bytes may sit on a shared buffer, which the Web Crypto import does not accept.
|
|
74
|
+
const key = await crypto.subtle.importKey('raw', new Uint8Array(checkerKey), { name: 'HMAC', hash: 'SHA-256' }, false, ['sign']);
|
|
75
|
+
return toHex(new Uint8Array(await crypto.subtle.sign('HMAC', key, new TextEncoder().encode(value))));
|
|
76
|
+
}
|
|
77
|
+
async function readIndexText(home) {
|
|
78
|
+
const read = await outcomeOf(() => home.fs.readFile(indexPath(home), 'utf-8'));
|
|
79
|
+
// Asked for utf-8, the adapter answers text.
|
|
80
|
+
if (read.ok)
|
|
81
|
+
return z.string().parse(read.value);
|
|
82
|
+
if (isAbsentEntry(read.failure))
|
|
83
|
+
return undefined;
|
|
84
|
+
throw new CapabilityError('The drift fingerprint index could not be read.', 'UNAVAILABLE', {
|
|
85
|
+
reason: 'drift-index-unreadable',
|
|
86
|
+
cause: read.failure,
|
|
87
|
+
details: { path: indexPath(home) }
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
export async function loadIndex(home) {
|
|
91
|
+
const path = indexPath(home);
|
|
92
|
+
const text = await readIndexText(home);
|
|
93
|
+
if (text === undefined)
|
|
94
|
+
return { version: DRIFT_INDEX_VERSION, fingerprints: {} };
|
|
95
|
+
// An unreadable or foreign index fails closed: reading it as empty would
|
|
96
|
+
// report drift as absent and the next save would erase the history.
|
|
97
|
+
let rawJson;
|
|
98
|
+
try {
|
|
99
|
+
rawJson = JSON.parse(text);
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
throw new CapabilityError('The drift fingerprint index is not valid JSON.', 'INTERNAL', {
|
|
103
|
+
reason: 'data-corrupt',
|
|
104
|
+
cause: error
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
const parsed = driftIndexSchema.safeParse(rawJson);
|
|
108
|
+
if (!parsed.success) {
|
|
109
|
+
throw new CapabilityError(`The drift fingerprint index ${path} is not a version ${DRIFT_INDEX_VERSION} drift index.`, 'INTERNAL', {
|
|
110
|
+
reason: 'data-corrupt',
|
|
111
|
+
retryable: false,
|
|
112
|
+
recoveryHint: 'Move the file aside; `vibes secrets check` rebuilds it from the stores.'
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return parsed.data;
|
|
116
|
+
}
|
|
117
|
+
/** Publish the index atomically and owner-private. */
|
|
118
|
+
export async function saveIndex(home, index) {
|
|
119
|
+
await home.fs.mkdir(home.directory, { recursive: true, mode: DRIFT_DIRECTORY_MODE });
|
|
120
|
+
await publishPrivateFile(home.fs, indexPath(home), `${JSON.stringify(index, null, 2)}\n`);
|
|
121
|
+
}
|
|
122
|
+
/** An environment or backend name that becomes a property of the index: each `/` segment is a plain name. */
|
|
123
|
+
function assertIndexName(name) {
|
|
124
|
+
for (const segment of name.split('/'))
|
|
125
|
+
assertSecretKey(segment);
|
|
126
|
+
}
|
|
127
|
+
/** The own entry `name` of `table`, created empty when absent (own data property, so `__proto__` is just a name). */
|
|
128
|
+
function ownTable(table, name, make) {
|
|
129
|
+
const existing = Object.hasOwn(table, name) ? table[name] : undefined;
|
|
130
|
+
if (existing)
|
|
131
|
+
return existing;
|
|
132
|
+
const created = make();
|
|
133
|
+
Object.defineProperty(table, name, { value: created, enumerable: true, writable: true, configurable: true });
|
|
134
|
+
return created;
|
|
135
|
+
}
|
|
136
|
+
export async function recordFingerprint(input) {
|
|
137
|
+
const home = input.home;
|
|
138
|
+
assertSecretKey(input.key);
|
|
139
|
+
assertIndexName(input.environment);
|
|
140
|
+
assertIndexName(input.backend);
|
|
141
|
+
const hmac = await fingerprintValue(input.value, await loadCheckerKey(home));
|
|
142
|
+
// The index is read, changed and published as one step per file in this process.
|
|
143
|
+
await serializeByPath(indexPath(home), async () => {
|
|
144
|
+
const index = await loadIndex(home);
|
|
145
|
+
const env = ownTable(index.fingerprints, input.environment, () => ({}));
|
|
146
|
+
const backend = ownTable(env, input.backend, () => ({}));
|
|
147
|
+
Object.defineProperty(backend, input.key, {
|
|
148
|
+
value: { hmac, recordedAt: new Date().toISOString() },
|
|
149
|
+
enumerable: true,
|
|
150
|
+
writable: true,
|
|
151
|
+
configurable: true
|
|
152
|
+
});
|
|
153
|
+
await saveIndex(home, index);
|
|
154
|
+
});
|
|
155
|
+
return hmac;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=drift-fingerprints.impl.consumer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift-fingerprints.impl.consumer.js","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EACP,0BAA0B,EAC1B,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAC,iBAAiB,EAAkB,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAC,gBAAgB,EAAiC,MAAM,+CAA+C,CAAC;AACpI,OAAO,EAAE,aAAa,EAAC,SAAS,EAAE,MAAM,qCAAqC,CAA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,CAAC,KAMvC;IACA,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IACxB,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,gBAAgB,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7E,iFAAiF;IACjF,MAAM,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxE,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACzD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE;YACzC,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE;YACrD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;SAClB,CAAC,CAAC;QACH,MAAM,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove one key's recorded drift fingerprint. `vibes secrets unset` calls it
|
|
3
|
+
* so the index never reports a value that was removed from its store as a
|
|
4
|
+
* fingerprint a later `check --drift` would compare. It reads and writes the
|
|
5
|
+
* index only through the drift module's own loader and atomic publisher, and
|
|
6
|
+
* writes nothing when the index does not hold the key.
|
|
7
|
+
*/
|
|
8
|
+
import { type DriftHome } from './drift-fingerprints.impl.consumer.ts';
|
|
9
|
+
/** True when the index held a fingerprint for `key` in `backend` under `environment` and it was removed. */
|
|
10
|
+
export declare function forgetFingerprint(input: {
|
|
11
|
+
home: DriftHome;
|
|
12
|
+
environment: string;
|
|
13
|
+
backend: string;
|
|
14
|
+
key: string;
|
|
15
|
+
}): Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=drift-forget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift-forget.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/drift-forget.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAEtG,4GAA4G;AAC5G,wBAAsB,iBAAiB,CAAC,KAAK,EAAE;IAC9C,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACZ,GAAG,OAAO,CAAC,OAAO,CAAC,CAYnB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remove one key's recorded drift fingerprint. `vibes secrets unset` calls it
|
|
3
|
+
* so the index never reports a value that was removed from its store as a
|
|
4
|
+
* fingerprint a later `check --drift` would compare. It reads and writes the
|
|
5
|
+
* index only through the drift module's own loader and atomic publisher, and
|
|
6
|
+
* writes nothing when the index does not hold the key.
|
|
7
|
+
*/
|
|
8
|
+
import { serializeByPath } from "../../../../support/path-queue.js";
|
|
9
|
+
import { INDEX_FILE, loadIndex, saveIndex } from "./drift-fingerprints.impl.consumer.js";
|
|
10
|
+
/** True when the index held a fingerprint for `key` in `backend` under `environment` and it was removed. */
|
|
11
|
+
export async function forgetFingerprint(input) {
|
|
12
|
+
const { home, environment, backend, key } = input;
|
|
13
|
+
return serializeByPath(home.fs.join(home.directory, INDEX_FILE), async () => {
|
|
14
|
+
const index = await loadIndex(home);
|
|
15
|
+
const environmentTable = Object.hasOwn(index.fingerprints, environment) ? index.fingerprints[environment] : undefined;
|
|
16
|
+
const backendTable = environmentTable !== undefined && Object.hasOwn(environmentTable, backend) ? environmentTable[backend] : undefined;
|
|
17
|
+
if (backendTable === undefined || !Object.hasOwn(backendTable, key))
|
|
18
|
+
return false;
|
|
19
|
+
delete backendTable[key];
|
|
20
|
+
await saveIndex(home, index);
|
|
21
|
+
return true;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=drift-forget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drift-forget.js","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/drift-forget.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAC,SAAS,EAAC,SAAS,EAAiB,MAAM,uCAAuC,CAAC;AAEtG,4GAA4G;AAC5G,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,KAKvC;IACA,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC;IAClD,OAAO,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,KAAK,IAAI,EAAE;QAC3E,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,CAAC;QACpC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACtH,MAAM,YAAY,GACjB,gBAAgB,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACpH,IAAI,YAAY,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QAClF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC;QACzB,MAAM,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IACb,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type ResolvedSecrets } from "../../../../schemas/execution/leverage.schema.ts";
|
|
2
|
+
export type { LeverageHop } from '../../../../exec/audit.ts';
|
|
3
|
+
export { type ResolvedSecrets } from "../../../../schemas/execution/leverage.schema.ts";
|
|
4
|
+
export { SENSITIVE_FIELD_NAMES, SENSITIVE_QUERY_PARAM_NAMES, normalizeSecretName, redactForPrint, redactSensitivePayload, redactUrlLikeText, shouldRedactFieldName, shouldRedactQueryParamName, tryRedactJson, type RedactedPayloadOutcome } from "../output/payload-redaction.ts";
|
|
5
|
+
/**
|
|
6
|
+
* Shared machinery for the secret-LEVERAGE commands (`secrets exec`,
|
|
7
|
+
* `secrets request`).
|
|
8
|
+
*
|
|
9
|
+
* Contract these commands exist to enforce: secret VALUES are resolved
|
|
10
|
+
* in-process, injected at the point of use (subprocess env / HTTP header),
|
|
11
|
+
* and NEVER written to stdout/stderr — every byte of command output flows
|
|
12
|
+
* through the redactor so even a child process or server that echoes a
|
|
13
|
+
* value back cannot leak it into a terminal, a script capture, or an AI
|
|
14
|
+
* agent's transcript. Agents must use these instead of `secrets reveal`.
|
|
15
|
+
*/
|
|
16
|
+
import { CapabilityError, type RuntimeRef } from '@vibesdotdev/kernel';
|
|
17
|
+
import { type RuntimeExecution } from '@vibesdotdev/kernel/execution';
|
|
18
|
+
/**
|
|
19
|
+
* The execution of `runtime`, the runtime the command was handed; feature code
|
|
20
|
+
* never selects a host implementation. A host with none fails `UNAVAILABLE`
|
|
21
|
+
* `execution-unavailable`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveRuntimeExecution(runtime: RuntimeRef): Promise<RuntimeExecution>;
|
|
24
|
+
/**
|
|
25
|
+
* The one backend the caller names with `--backend <id>`, or undefined.
|
|
26
|
+
*
|
|
27
|
+
* Moved, never removed (rc05 :89, :208, :219): the deleted comma chain
|
|
28
|
+
* (`a,b@env`, "fall back to b when a lacks the key") is replaced by exactly one
|
|
29
|
+
* store answering per (runtime, tier, reference). A chain is refused
|
|
30
|
+
* `INVALID_INPUT` `backend-chain-unsupported`; an `@env` pin is the
|
|
31
|
+
* `--environment` option's job and is refused the same way.
|
|
32
|
+
*/
|
|
33
|
+
export declare function parseSingleBackend(value: string | undefined): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve the requested keys through the one store that answers them: the
|
|
36
|
+
* caller's named `--backend`, else the tier's own store, classifying each as
|
|
37
|
+
* readable, unreadable (set but write-only), or missing, with the one hop
|
|
38
|
+
* recorded for the audit. Nothing falls through to another store.
|
|
39
|
+
*
|
|
40
|
+
* This is the secrets owner's cross-tier read (rc05 :62-63: "Only the secrets
|
|
41
|
+
* owner's commands read across tiers: `vibes secrets exec|request|check
|
|
42
|
+
* --environment T`"), kept inside this package; every other read goes through
|
|
43
|
+
* `runtime.resolveCredential`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveSecretsForLeverage(runtime: RuntimeRef, keys: string[], options: {
|
|
46
|
+
environment?: string;
|
|
47
|
+
backend?: string;
|
|
48
|
+
}): Promise<ResolvedSecrets>;
|
|
49
|
+
/**
|
|
50
|
+
* The typed refusal for keys only a write-only store holds: they exist only
|
|
51
|
+
* inside the deployed runtime. Nothing reads another store for them.
|
|
52
|
+
*/
|
|
53
|
+
export declare function writeOnlyRefusal(command: string, resolved: ResolvedSecrets): CapabilityError;
|
|
54
|
+
export { openLeverageAudit, writeLeverageAudit, type LeverageAuditRecord } from '../../../../exec/audit.ts';
|
|
55
|
+
export { createStreamRedactor, redactValues } from '../../../../exec/redactor.ts';
|
|
56
|
+
//# sourceMappingURL=leverage-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leverage-shared.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/leverage-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACxF,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAC,2BAA2B,EAAC,mBAAmB,EAAC,cAAc,EAAC,sBAAsB,EAAC,iBAAiB,EAAC,qBAAqB,EAAC,0BAA0B,EAAC,aAAa,EAAC,KAAK,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC1Q;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAsC,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAAsB,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAe1F;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAE5F;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAchF;AAyCD;;;;;;;;;;GAUG;AACH,wBAAsB,yBAAyB,CAC9C,OAAO,EAAE,UAAU,EACnB,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,GACjD,OAAO,CAAC,eAAe,CAAC,CAuB1B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,eAAe,CAc5F;AAID,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,mBAAmB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAC,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import {} from "../../../../schemas/execution/leverage.schema.js";
|
|
2
|
+
export {} from "../../../../schemas/execution/leverage.schema.js";
|
|
3
|
+
export { SENSITIVE_FIELD_NAMES, SENSITIVE_QUERY_PARAM_NAMES, normalizeSecretName, redactForPrint, redactSensitivePayload, redactUrlLikeText, shouldRedactFieldName, shouldRedactQueryParamName, tryRedactJson } from "../output/payload-redaction.js";
|
|
4
|
+
/**
|
|
5
|
+
* Shared machinery for the secret-LEVERAGE commands (`secrets exec`,
|
|
6
|
+
* `secrets request`).
|
|
7
|
+
*
|
|
8
|
+
* Contract these commands exist to enforce: secret VALUES are resolved
|
|
9
|
+
* in-process, injected at the point of use (subprocess env / HTTP header),
|
|
10
|
+
* and NEVER written to stdout/stderr — every byte of command output flows
|
|
11
|
+
* through the redactor so even a child process or server that echoes a
|
|
12
|
+
* value back cannot leak it into a terminal, a script capture, or an AI
|
|
13
|
+
* agent's transcript. Agents must use these instead of `secrets reveal`.
|
|
14
|
+
*/
|
|
15
|
+
import { CapabilityError, isCapabilityError } from '@vibesdotdev/kernel';
|
|
16
|
+
import { getRuntimeExecution } from '@vibesdotdev/kernel/execution';
|
|
17
|
+
import { assertSecretKey } from "../../../../domain/kinds/secret-key.js";
|
|
18
|
+
import { outcomeOf } from "../../../../support/file-failure.js";
|
|
19
|
+
import { resolveSecretsEnvironment } from "../../environment.js";
|
|
20
|
+
import { listStoreDescriptors, resolveStoreImplementation, selectStore } from "./store-selection.js";
|
|
21
|
+
/**
|
|
22
|
+
* The execution of `runtime`, the runtime the command was handed; feature code
|
|
23
|
+
* never selects a host implementation. A host with none fails `UNAVAILABLE`
|
|
24
|
+
* `execution-unavailable`.
|
|
25
|
+
*/
|
|
26
|
+
export async function resolveRuntimeExecution(runtime) {
|
|
27
|
+
return getRuntimeExecution(runtime);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The one backend the caller names with `--backend <id>`, or undefined.
|
|
31
|
+
*
|
|
32
|
+
* Moved, never removed (rc05 :89, :208, :219): the deleted comma chain
|
|
33
|
+
* (`a,b@env`, "fall back to b when a lacks the key") is replaced by exactly one
|
|
34
|
+
* store answering per (runtime, tier, reference). A chain is refused
|
|
35
|
+
* `INVALID_INPUT` `backend-chain-unsupported`; an `@env` pin is the
|
|
36
|
+
* `--environment` option's job and is refused the same way.
|
|
37
|
+
*/
|
|
38
|
+
export function parseSingleBackend(value) {
|
|
39
|
+
if (value === undefined)
|
|
40
|
+
return undefined;
|
|
41
|
+
const backend = value.trim();
|
|
42
|
+
if (backend.includes(',') || backend.includes('@')) {
|
|
43
|
+
throw new CapabilityError(`--backend '${value}' names a chain; exactly one store answers each key. Name the one store (--backend <id>) and select another tier with --environment.`, 'INVALID_INPUT', { reason: 'backend-chain-unsupported', details: { backend: value } });
|
|
44
|
+
}
|
|
45
|
+
if (backend.length === 0) {
|
|
46
|
+
throw new CapabilityError('--backend needs a store id.', 'INVALID_INPUT', { reason: 'backend-invalid' });
|
|
47
|
+
}
|
|
48
|
+
return backend;
|
|
49
|
+
}
|
|
50
|
+
/** Only a store's typed absence (`isAbsenceOf`, or `NOT_FOUND` `record-absent`) is "not there"; every other failure propagates. */
|
|
51
|
+
function isStoreAbsence(failure, backend) {
|
|
52
|
+
return (CapabilityError.isAbsenceOf(failure, 'secrets/store', backend) ||
|
|
53
|
+
(isCapabilityError(failure) && failure.code === 'NOT_FOUND' && failure.reason === 'record-absent'));
|
|
54
|
+
}
|
|
55
|
+
/** Ask one store for `keys`, classifying each; only the store's typed NOT_FOUND counts as absence. */
|
|
56
|
+
async function askHop(impl, backend, environment, keys, values) {
|
|
57
|
+
const hop = { backend, environment, resolved: [], writeOnly: [], missing: [] };
|
|
58
|
+
let listed = null;
|
|
59
|
+
for (const key of keys) {
|
|
60
|
+
const read = await outcomeOf(() => impl.get(environment, key));
|
|
61
|
+
if (!read.ok && !isStoreAbsence(read.failure, backend))
|
|
62
|
+
throw read.failure;
|
|
63
|
+
const value = read.ok ? read.value : undefined;
|
|
64
|
+
if (value !== undefined) {
|
|
65
|
+
values[key] = value;
|
|
66
|
+
hop.resolved.push(key);
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
// Distinguish "absent" from "set but not readable back" (write-only
|
|
70
|
+
// backends): consult the listing once, lazily.
|
|
71
|
+
if (listed === null) {
|
|
72
|
+
const listing = await outcomeOf(() => impl.list(environment));
|
|
73
|
+
if (!listing.ok && !isStoreAbsence(listing.failure, backend))
|
|
74
|
+
throw listing.failure;
|
|
75
|
+
listed = new Set(listing.ok ? listing.value.filter((e) => e.hasValue).map((e) => e.key) : []);
|
|
76
|
+
}
|
|
77
|
+
(listed.has(key) ? hop.writeOnly : hop.missing).push(key);
|
|
78
|
+
}
|
|
79
|
+
return hop;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Resolve the requested keys through the one store that answers them: the
|
|
83
|
+
* caller's named `--backend`, else the tier's own store, classifying each as
|
|
84
|
+
* readable, unreadable (set but write-only), or missing, with the one hop
|
|
85
|
+
* recorded for the audit. Nothing falls through to another store.
|
|
86
|
+
*
|
|
87
|
+
* This is the secrets owner's cross-tier read (rc05 :62-63: "Only the secrets
|
|
88
|
+
* owner's commands read across tiers: `vibes secrets exec|request|check
|
|
89
|
+
* --environment T`"), kept inside this package; every other read goes through
|
|
90
|
+
* `runtime.resolveCredential`.
|
|
91
|
+
*/
|
|
92
|
+
export async function resolveSecretsForLeverage(runtime, keys, options) {
|
|
93
|
+
for (const key of keys)
|
|
94
|
+
assertSecretKey(key);
|
|
95
|
+
const descriptors = listStoreDescriptors(runtime);
|
|
96
|
+
const { name: environment, tier } = await resolveSecretsEnvironment(runtime, options.environment);
|
|
97
|
+
// One store answers: the named `--backend`, else the tier's pick (a tie is `store-ambiguous`).
|
|
98
|
+
const backend = parseSingleBackend(options.backend);
|
|
99
|
+
const descriptor = selectStore(descriptors, tier, backend);
|
|
100
|
+
// The one hop is recorded for the audit even when no key was asked.
|
|
101
|
+
const values = {};
|
|
102
|
+
const hop = keys.length > 0
|
|
103
|
+
? await askHop(await resolveStoreImplementation(runtime, descriptor.id), descriptor.id, environment, keys, values)
|
|
104
|
+
: { backend: descriptor.id, environment, resolved: [], writeOnly: [], missing: [] };
|
|
105
|
+
return {
|
|
106
|
+
environment: hop.environment,
|
|
107
|
+
backendId: hop.backend,
|
|
108
|
+
values,
|
|
109
|
+
unreadable: hop.writeOnly.filter((key) => !Object.hasOwn(values, key)),
|
|
110
|
+
missing: hop.missing.filter((key) => !Object.hasOwn(values, key)),
|
|
111
|
+
hops: [hop]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The typed refusal for keys only a write-only store holds: they exist only
|
|
116
|
+
* inside the deployed runtime. Nothing reads another store for them.
|
|
117
|
+
*/
|
|
118
|
+
export function writeOnlyRefusal(command, resolved) {
|
|
119
|
+
return new CapabilityError(`${command}: backend "${resolved.hops[resolved.hops.length - 1]?.backend ?? resolved.backendId}" stores ` +
|
|
120
|
+
`${resolved.unreadable.join(', ')} but cannot read values back (write-only backend). These secrets ` +
|
|
121
|
+
'can only be leveraged inside the deployed runtime.', 'UNAVAILABLE', {
|
|
122
|
+
reason: 'secret-write-only',
|
|
123
|
+
retryable: false,
|
|
124
|
+
recoveryHint: 'Probe the deployed runtime instead, or read an operator copy with --environment local (--backend <id> names one readable store).',
|
|
125
|
+
details: { keys: resolved.unreadable, hops: resolved.hops }
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
// The audit line and the value redactor live with `spawnWithCredentials`
|
|
129
|
+
// (`@vibesdotdev/secrets/exec`); the leverage commands share them from there.
|
|
130
|
+
export { openLeverageAudit, writeLeverageAudit } from "../../../../exec/audit.js";
|
|
131
|
+
export { createStreamRedactor, redactValues } from "../../../../exec/redactor.js";
|
|
132
|
+
//# sourceMappingURL=leverage-shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leverage-shared.js","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/leverage-shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,kDAAkD,CAAC;AAExF,OAAO,EAAwB,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,qBAAqB,EAAC,2BAA2B,EAAC,mBAAmB,EAAC,cAAc,EAAC,sBAAsB,EAAC,iBAAiB,EAAC,qBAAqB,EAAC,0BAA0B,EAAC,aAAa,EAA8B,MAAM,gCAAgC,CAAC;AAC1Q;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAC,iBAAiB,EAAqC,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAwB,MAAM,+BAA+B,CAAC;AAI1F,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EACP,oBAAoB,EACpB,0BAA0B,EAC1B,WAAW,EACV,MAAM,sBAAsB,CAAC;AAI9B;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,OAAmB;IAChE,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC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E,GAAG,CAAC,CAAC;QACtE,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjE,IAAI,EAAE,CAAC,GAAG,CAAC;KACX,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe,EAAE,QAAyB;IAC1E,OAAO,IAAI,eAAe,CACzB,GAAG,OAAO,cAAc,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,IAAI,QAAQ,CAAC,SAAS,WAAW;QACzG,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mEAAmE;QACpG,oDAAoD,EACpD,aAAa,EACb;QACC,MAAM,EAAE,mBAAmB;QAC3B,SAAS,EAAE,KAAK;QAChB,YAAY,EACX,kIAAkI;QACnI,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE;KAC3D,CACD,CAAC;AACH,CAAC;AAED,yEAAyE;AACzE,8EAA8E;AAC9E,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAEjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAC,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type StoreSelectionRuntime } from "../../../../schemas/cli/selection.schema.ts";
|
|
2
|
+
export { type StoreSelectionRuntime } from "../../../../schemas/cli/selection.schema.ts";
|
|
3
|
+
/**
|
|
4
|
+
* The one store pick every `vibes secrets` command shares. A command never
|
|
5
|
+
* sorts descriptors itself: the unnamed pick is the kind's own
|
|
6
|
+
* (`pickTierSecretsStore`: highest priority among the tier's scope stores, a
|
|
7
|
+
* tie is `INVALID_INPUT` `store-ambiguous`), and a named `--backend` must be a
|
|
8
|
+
* registered `secrets/store`. Descriptors are parsed, implementations typed;
|
|
9
|
+
* nothing is cast.
|
|
10
|
+
*/
|
|
11
|
+
import { CapabilityError, type CaughtFailure } from '@vibesdotdev/kernel';
|
|
12
|
+
import type { SecretsStoreImplementation } from '../../../../domain/kinds/store.interface.ts';
|
|
13
|
+
import type { EnvironmentTier, ResolvedSecretsStoreDescriptor } from '../../../../domain/kinds/store.schema.ts';
|
|
14
|
+
/** The runtime has no `secrets/store` kind: no backend plugin was composed. */
|
|
15
|
+
export declare function storeKindUnregistered(): CapabilityError;
|
|
16
|
+
/** Every registered `secrets/store` descriptor, parsed. An unregistered kind is typed `UNAVAILABLE`. */
|
|
17
|
+
export declare function listStoreDescriptors(runtime: StoreSelectionRuntime): ResolvedSecretsStoreDescriptor[];
|
|
18
|
+
/** The one scope store serving `tier`, or undefined when none does. A priority tie is `store-ambiguous`. */
|
|
19
|
+
export declare function pickTierStore(descriptors: readonly ResolvedSecretsStoreDescriptor[], tier: EnvironmentTier): ResolvedSecretsStoreDescriptor | undefined;
|
|
20
|
+
/** The store the caller named with `--backend <id>`: it must be a registered `secrets/store`. */
|
|
21
|
+
export declare function requireNamedStore(descriptors: readonly ResolvedSecretsStoreDescriptor[], id: string): ResolvedSecretsStoreDescriptor;
|
|
22
|
+
/**
|
|
23
|
+
* The store a command acts on: the named `--backend`, else the tier's one
|
|
24
|
+
* store. No store for the tier is `UNAVAILABLE` `secrets-store-unavailable`.
|
|
25
|
+
* `candidates` narrows the unnamed pick by a command's own routing policy
|
|
26
|
+
* (`set` writes only to local stores by default); the pick among the
|
|
27
|
+
* candidates, and its tie rule, stay the kind's.
|
|
28
|
+
*/
|
|
29
|
+
export declare function selectStore(descriptors: readonly ResolvedSecretsStoreDescriptor[], tier: EnvironmentTier, backendId: string | undefined, candidates?: (descriptor: ResolvedSecretsStoreDescriptor) => boolean): ResolvedSecretsStoreDescriptor;
|
|
30
|
+
/**
|
|
31
|
+
* A store's failure as a typed `CapabilityError`: a typed one passes through
|
|
32
|
+
* untouched; anything else (a raw `Error` a backend threw) becomes `UNAVAILABLE`
|
|
33
|
+
* `store-<operation>-failed` carrying it as `cause`. The message never carries
|
|
34
|
+
* a key or a value.
|
|
35
|
+
*/
|
|
36
|
+
export declare function typedStoreFailure(caught: CaughtFailure, operation: 'read' | 'write' | 'list', store: string): CapabilityError;
|
|
37
|
+
/** The implementation of one registered store. */
|
|
38
|
+
export declare function resolveStoreImplementation(runtime: StoreSelectionRuntime, id: string): Promise<SecretsStoreImplementation>;
|
|
39
|
+
//# sourceMappingURL=store-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-selection.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/store-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACzF;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAC,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,KAAK,EACZ,eAAe,EACf,8BAA8B,EAE7B,MAAM,0CAA0C,CAAC;AAElD,+EAA+E;AAC/E,wBAAgB,qBAAqB,IAAI,eAAe,CAMvD;AAED,wGAAwG;AACxG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,8BAA8B,EAAE,CAGrG;AAED,4GAA4G;AAC5G,wBAAgB,aAAa,CAC5B,WAAW,EAAE,SAAS,8BAA8B,EAAE,EACtD,IAAI,EAAE,eAAe,GACnB,8BAA8B,GAAG,SAAS,CAE5C;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAChC,WAAW,EAAE,SAAS,8BAA8B,EAAE,EACtD,EAAE,EAAE,MAAM,GACR,8BAA8B,CAUhC;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAC1B,WAAW,EAAE,SAAS,8BAA8B,EAAE,EACtD,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,UAAU,GAAE,CAAC,UAAU,EAAE,8BAA8B,KAAK,OAAoB,GAC9E,8BAA8B,CAShC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EACpC,KAAK,EAAE,MAAM,GACX,eAAe,CAQjB;AAED,kDAAkD;AAClD,wBAAgB,0BAA0B,CACzC,OAAO,EAAE,qBAAqB,EAC9B,EAAE,EAAE,MAAM,GACR,OAAO,CAAC,0BAA0B,CAAC,CAErC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {} from "../../../../schemas/cli/selection.schema.js";
|
|
2
|
+
export {} from "../../../../schemas/cli/selection.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* The one store pick every `vibes secrets` command shares. A command never
|
|
5
|
+
* sorts descriptors itself: the unnamed pick is the kind's own
|
|
6
|
+
* (`pickTierSecretsStore`: highest priority among the tier's scope stores, a
|
|
7
|
+
* tie is `INVALID_INPUT` `store-ambiguous`), and a named `--backend` must be a
|
|
8
|
+
* registered `secrets/store`. Descriptors are parsed, implementations typed;
|
|
9
|
+
* nothing is cast.
|
|
10
|
+
*/
|
|
11
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
12
|
+
import { parseSecretsStoreDescriptors, pickTierSecretsStore } from "../../../../domain/kinds/store-selection.js";
|
|
13
|
+
/** The runtime has no `secrets/store` kind: no backend plugin was composed. */
|
|
14
|
+
export function storeKindUnregistered() {
|
|
15
|
+
return new CapabilityError('No secrets/store kind registered. Register a secrets backend plugin first.', 'UNAVAILABLE', { reason: 'secrets-store-unregistered', retryable: false });
|
|
16
|
+
}
|
|
17
|
+
/** Every registered `secrets/store` descriptor, parsed. An unregistered kind is typed `UNAVAILABLE`. */
|
|
18
|
+
export function listStoreDescriptors(runtime) {
|
|
19
|
+
if (!runtime.hasKind('secrets/store'))
|
|
20
|
+
throw storeKindUnregistered();
|
|
21
|
+
return parseSecretsStoreDescriptors(runtime.query('secrets/store').descriptors());
|
|
22
|
+
}
|
|
23
|
+
/** The one scope store serving `tier`, or undefined when none does. A priority tie is `store-ambiguous`. */
|
|
24
|
+
export function pickTierStore(descriptors, tier) {
|
|
25
|
+
return pickTierSecretsStore(descriptors, tier);
|
|
26
|
+
}
|
|
27
|
+
/** The store the caller named with `--backend <id>`: it must be a registered `secrets/store`. */
|
|
28
|
+
export function requireNamedStore(descriptors, id) {
|
|
29
|
+
const named = descriptors.find((descriptor) => descriptor.id === id);
|
|
30
|
+
if (named)
|
|
31
|
+
return named;
|
|
32
|
+
const available = descriptors.map((descriptor) => descriptor.id).sort();
|
|
33
|
+
throw new CapabilityError(`No secrets store '${id}' is registered.`, 'INVALID_INPUT', {
|
|
34
|
+
reason: 'store-unknown',
|
|
35
|
+
retryable: false,
|
|
36
|
+
recoveryHint: available.length > 0 ? `Available stores: ${available.join(', ')}` : 'No secrets stores are registered.',
|
|
37
|
+
details: { store: id, available }
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The store a command acts on: the named `--backend`, else the tier's one
|
|
42
|
+
* store. No store for the tier is `UNAVAILABLE` `secrets-store-unavailable`.
|
|
43
|
+
* `candidates` narrows the unnamed pick by a command's own routing policy
|
|
44
|
+
* (`set` writes only to local stores by default); the pick among the
|
|
45
|
+
* candidates, and its tie rule, stay the kind's.
|
|
46
|
+
*/
|
|
47
|
+
export function selectStore(descriptors, tier, backendId, candidates = () => true) {
|
|
48
|
+
if (backendId !== undefined)
|
|
49
|
+
return requireNamedStore(descriptors, backendId);
|
|
50
|
+
const picked = pickTierStore(descriptors.filter(candidates), tier);
|
|
51
|
+
if (picked)
|
|
52
|
+
return picked;
|
|
53
|
+
throw new CapabilityError(`No secrets store available for tier: ${tier}`, 'UNAVAILABLE', {
|
|
54
|
+
reason: 'secrets-store-unavailable',
|
|
55
|
+
retryable: false,
|
|
56
|
+
details: { tier }
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A store's failure as a typed `CapabilityError`: a typed one passes through
|
|
61
|
+
* untouched; anything else (a raw `Error` a backend threw) becomes `UNAVAILABLE`
|
|
62
|
+
* `store-<operation>-failed` carrying it as `cause`. The message never carries
|
|
63
|
+
* a key or a value.
|
|
64
|
+
*/
|
|
65
|
+
export function typedStoreFailure(caught, operation, store) {
|
|
66
|
+
const failure = CapabilityError.from(caught);
|
|
67
|
+
if (failure.reason !== 'untyped')
|
|
68
|
+
return failure;
|
|
69
|
+
return new CapabilityError(`The secrets store '${store}' could not ${operation} the secret.`, 'UNAVAILABLE', {
|
|
70
|
+
reason: `store-${operation}-failed`,
|
|
71
|
+
cause: caught,
|
|
72
|
+
details: { store }
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/** The implementation of one registered store. */
|
|
76
|
+
export function resolveStoreImplementation(runtime, id) {
|
|
77
|
+
return runtime.query('secrets/store').withId(id).resolve();
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=store-selection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-selection.js","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/store-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAA8B,MAAM,6CAA6C,CAAC;AACzF;;;;;;;GAOG;AAEH,OAAO,EAAE,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAC,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAQhH,+EAA+E;AAC/E,MAAM,UAAU,qBAAqB;IACpC,OAAO,IAAI,e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ingerprintOutcome } from "../../../../schemas/cli/transfer.schema.ts";
|
|
3
|
+
/**
|
|
4
|
+
* What `secrets pull` and `secrets push` share when they copy one store's
|
|
5
|
+
* values into another: the `--key` filter (every key validated), the source
|
|
6
|
+
* read (a write-only store is refused, never copied as empty), the destination
|
|
7
|
+
* write (a raw backend failure typed), and the drift fingerprint each copied
|
|
8
|
+
* value records, exactly as `secrets set` does.
|
|
9
|
+
*/
|
|
10
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
11
|
+
import * as z from 'zod/v4';
|
|
12
|
+
import type { SecretsStoreImplementation } from '../../../../domain/kinds/store.interface.ts';
|
|
13
|
+
/** The keys a `--key` option names, each validated; undefined when it names none. */
|
|
14
|
+
export declare function parseKeyFilter(value: z.infer<typeof keyOptionSchema>): Set<string> | undefined;
|
|
15
|
+
/** Copying a store's environment onto itself is not a copy. */
|
|
16
|
+
export declare function assertDistinctStores(source: {
|
|
17
|
+
id: string;
|
|
18
|
+
environment: string;
|
|
19
|
+
}, target: {
|
|
20
|
+
id: string;
|
|
21
|
+
environment: string;
|
|
22
|
+
}): void;
|
|
23
|
+
/**
|
|
24
|
+
* Every value the source holds for `environment` (narrowed to `filter`). A
|
|
25
|
+
* source that lists a key as set but returns no value for it is write-only:
|
|
26
|
+
* copying would silently drop it, so the copy is refused `UNAVAILABLE`
|
|
27
|
+
* `secret-write-only`, naming the keys.
|
|
28
|
+
*/
|
|
29
|
+
export declare function readSourceSecrets(source: SecretsStoreImplementation, environment: string, filter: ReadonlySet<string> | undefined): Promise<Record<string, string>>;
|
|
30
|
+
/** Write `secrets` to the destination; a raw backend failure is typed. */
|
|
31
|
+
export declare function writeTargetSecrets(target: SecretsStoreImplementation, environment: string, secrets: Record<string, string>): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Record each copied value's drift fingerprint under the destination store, as
|
|
34
|
+
* `secrets set` does. A failure does not undo the copy: it is counted and
|
|
35
|
+
* returned for the command to report. Values are never reported.
|
|
36
|
+
*/
|
|
37
|
+
export declare function recordCopiedFingerprints(runtime: RuntimeRef, input: {
|
|
38
|
+
environment: string;
|
|
39
|
+
backend: string;
|
|
40
|
+
secrets: Readonly<Record<string, string>>;
|
|
41
|
+
}): Promise<FingerprintOutcome>;
|
|
42
|
+
//# sourceMappingURL=store-transfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-transfer.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/cli/shared/stores/store-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAC,KAAK,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EAAE,eAAe,EAAC,KAAK,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrG;;;;;;GAMG;AAEH,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAK9F,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAS9F;AAED,+DAA+D;AAC/D,wBAAgB,oBAAoB,CACnC,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAC3C,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACzC,IAAI,CAaN;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACtC,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAoBjC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