@vibesdotdev/secrets 0.0.1 → 1.0.0-rc.3
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 +12 -46
- 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 +366 -69
- package/SPEC.md +0 -47
- 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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env File Backend Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Reads/writes secrets from .env.{environment} files in the bound workspace
|
|
5
|
+
* root (`runtime/workspace-path`); a relative `basePath` resolves against it.
|
|
6
|
+
* Default backend for local and dev tiers.
|
|
7
|
+
*/
|
|
8
|
+
import type { SecretsStoreDescriptor } from '@vibesdotdev/secrets/kinds';
|
|
9
|
+
declare const descriptor: SecretsStoreDescriptor;
|
|
10
|
+
export default descriptor;
|
|
11
|
+
//# sourceMappingURL=env-file.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.descriptor.d.ts","sourceRoot":"","sources":["../../../src/backends/env-file/env-file.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,QAAA,MAAM,UAAU,EAAE,sBAcjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env File Backend Descriptor
|
|
3
|
+
*
|
|
4
|
+
* Reads/writes secrets from .env.{environment} files in the bound workspace
|
|
5
|
+
* root (`runtime/workspace-path`); a relative `basePath` resolves against it.
|
|
6
|
+
* Default backend for local and dev tiers.
|
|
7
|
+
*/
|
|
8
|
+
const descriptor = {
|
|
9
|
+
id: 'env-file',
|
|
10
|
+
kind: 'secrets/store',
|
|
11
|
+
name: 'Environment File',
|
|
12
|
+
description: 'Stores secrets in .env.{environment} files',
|
|
13
|
+
tags: ['local'],
|
|
14
|
+
enabled: true,
|
|
15
|
+
backend: 'env-file',
|
|
16
|
+
selection: 'scope',
|
|
17
|
+
tiers: ['local', 'dev'],
|
|
18
|
+
priority: 0,
|
|
19
|
+
config: {
|
|
20
|
+
basePath: '.'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default descriptor;
|
|
24
|
+
//# sourceMappingURL=env-file.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.descriptor.js","sourceRoot":"","sources":["../../../src/backends/env-file/env-file.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,UAAU,GAA2B;IAC1C,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,4CAA4C;IACzD,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;IACvB,QAAQ,EAAE,CAAC;IACX,MAAM,EAAE;QACP,QAAQ,EAAE,GAAG;KACb;CACD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env File Backend Implementation
|
|
3
|
+
*
|
|
4
|
+
* Reads and writes .env.{environment} files with KEY=VALUE format, through the
|
|
5
|
+
* runtime's filesystem adapter, with the one `.env` grammar of `./manifest`.
|
|
6
|
+
* Preserves comments, blank lines, and ordering on writes; an entry this store
|
|
7
|
+
* does not change is written back as it was. The file is published atomically,
|
|
8
|
+
* owner-private (0600).
|
|
9
|
+
*
|
|
10
|
+
* - The environment is a tier name, validated before a path is built, so no
|
|
11
|
+
* `../` leaves the declared directory.
|
|
12
|
+
* - Keys are environment-variable shaped; a value is one line (a newline, `\r`
|
|
13
|
+
* or NUL is refused) and is quoted so reading it back gives the same value.
|
|
14
|
+
* - A write that would leave the file as it is writes nothing (`unset` of a key
|
|
15
|
+
* that is not there included).
|
|
16
|
+
*/
|
|
17
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
18
|
+
import type { SecretEntry, SecretsStoreImplementation } from '../../domain/kinds/store.interface.ts';
|
|
19
|
+
import type { SecretsStoreDescriptor } from '../../domain/kinds/store.schema.ts';
|
|
20
|
+
declare class EnvFileStore implements SecretsStoreImplementation {
|
|
21
|
+
private readonly runtime;
|
|
22
|
+
readonly id = "env-file";
|
|
23
|
+
readonly descriptor: SecretsStoreDescriptor;
|
|
24
|
+
constructor(desc: SecretsStoreDescriptor, runtime: RuntimeRef);
|
|
25
|
+
/**
|
|
26
|
+
* Where `.env.<environment>` lives: the descriptor's `basePath`, resolved
|
|
27
|
+
* against the bound workspace root (`runtime/workspace-path`) at use. It never
|
|
28
|
+
* follows the launch directory; an unbound host fails with `workspace-unbound`.
|
|
29
|
+
* The host's own files, so the adapter is not the workspace-rooted view.
|
|
30
|
+
*/
|
|
31
|
+
private location;
|
|
32
|
+
/** The file's text; `undefined` only when there is no file. */
|
|
33
|
+
private readText;
|
|
34
|
+
private readLines;
|
|
35
|
+
/** Read-modify-write one file as one step; nothing is written when `change` leaves the text as it was. */
|
|
36
|
+
private modify;
|
|
37
|
+
private put;
|
|
38
|
+
list(environment: string): Promise<SecretEntry[]>;
|
|
39
|
+
get(environment: string, key: string): Promise<string | undefined>;
|
|
40
|
+
set(environment: string, key: string, value: string): Promise<void>;
|
|
41
|
+
unset(environment: string, key: string): Promise<void>;
|
|
42
|
+
getAll(environment: string): Promise<Record<string, string>>;
|
|
43
|
+
setAll(environment: string, secrets: Record<string, string>): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
export declare function createEnvFileStore(runtime: RuntimeRef): import("@vibesdotdev/kernel").RuntimeImplementationWrapper<EnvFileStore>;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=env-file.impl.local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.impl.local.d.ts","sourceRoot":"","sources":["../../../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U,4EAQrD"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Env File Backend Implementation
|
|
3
|
+
*
|
|
4
|
+
* Reads and writes .env.{environment} files with KEY=VALUE format, through the
|
|
5
|
+
* runtime's filesystem adapter, with the one `.env` grammar of `./manifest`.
|
|
6
|
+
* Preserves comments, blank lines, and ordering on writes; an entry this store
|
|
7
|
+
* does not change is written back as it was. The file is published atomically,
|
|
8
|
+
* owner-private (0600).
|
|
9
|
+
*
|
|
10
|
+
* - The environment is a tier name, validated before a path is built, so no
|
|
11
|
+
* `../` leaves the declared directory.
|
|
12
|
+
* - Keys are environment-variable shaped; a value is one line (a newline, `\r`
|
|
13
|
+
* or NUL is refused) and is quoted so reading it back gives the same value.
|
|
14
|
+
* - A write that would leave the file as it is writes nothing (`unset` of a key
|
|
15
|
+
* that is not there included).
|
|
16
|
+
*/
|
|
17
|
+
import { publishPrivateFile, resolveFileSystemAdapter } from '@vibesdotdev/filesystem';
|
|
18
|
+
import { CapabilityError } from '@vibesdotdev/kernel';
|
|
19
|
+
import { createRuntimeImplementation } from '@vibesdotdev/kernel/factory/implementation';
|
|
20
|
+
import * as z from 'zod/v4';
|
|
21
|
+
import { assertEnvironmentSecretKey } from "../../domain/kinds/secret-key.js";
|
|
22
|
+
import { dotenvValues, formatDotenvEntry, parseDotenv } from "../../domain/manifest/dotenv.js";
|
|
23
|
+
import { isAbsentEntry, outcomeOf } from "../../support/file-failure.js";
|
|
24
|
+
import { serializeByPath } from "../../support/path-queue.js";
|
|
25
|
+
import { parseStoreEnvironment } from "../../support/store-environment.js";
|
|
26
|
+
import descriptor from "./env-file.descriptor.js";
|
|
27
|
+
/** A directory this store has to create is the owner's alone. */
|
|
28
|
+
const ENV_DIRECTORY_MODE = 0o700;
|
|
29
|
+
function unreadable(path, cause) {
|
|
30
|
+
return new CapabilityError('The env file could not be read.', 'UNAVAILABLE', {
|
|
31
|
+
reason: 'env-file-unreadable',
|
|
32
|
+
cause,
|
|
33
|
+
details: { store: 'env-file', path }
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function entryIndex(lines, key) {
|
|
37
|
+
return lines.findLastIndex((line) => line.type === 'entry' && line.key === key);
|
|
38
|
+
}
|
|
39
|
+
/** Add an entry before the file's final newline, so appending never leaves a blank line behind. */
|
|
40
|
+
function appendEntry(lines, raw, key, value) {
|
|
41
|
+
const entry = { type: 'entry', raw, key, value };
|
|
42
|
+
const last = lines.at(-1);
|
|
43
|
+
if (last?.type === 'blank' && last.raw === '')
|
|
44
|
+
lines.splice(lines.length - 1, 0, entry);
|
|
45
|
+
else
|
|
46
|
+
lines.push(entry);
|
|
47
|
+
}
|
|
48
|
+
/** The file's text for `lines`: each line as it is, ending in a newline unless the file is empty. */
|
|
49
|
+
function renderLines(lines) {
|
|
50
|
+
const text = lines.map((line) => line.raw).join('\n');
|
|
51
|
+
return text === '' || text.endsWith('\n') ? text : `${text}\n`;
|
|
52
|
+
}
|
|
53
|
+
class EnvFileStore {
|
|
54
|
+
runtime;
|
|
55
|
+
id = 'env-file';
|
|
56
|
+
descriptor;
|
|
57
|
+
constructor(desc, runtime) {
|
|
58
|
+
this.runtime = runtime;
|
|
59
|
+
this.descriptor = desc;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Where `.env.<environment>` lives: the descriptor's `basePath`, resolved
|
|
63
|
+
* against the bound workspace root (`runtime/workspace-path`) at use. It never
|
|
64
|
+
* follows the launch directory; an unbound host fails with `workspace-unbound`.
|
|
65
|
+
* The host's own files, so the adapter is not the workspace-rooted view.
|
|
66
|
+
*/
|
|
67
|
+
async location(environment) {
|
|
68
|
+
const tier = parseStoreEnvironment(environment);
|
|
69
|
+
const fs = await resolveFileSystemAdapter(this.runtime, { binding: false });
|
|
70
|
+
const configured = this.descriptor.config?.basePath ?? '.';
|
|
71
|
+
const directory = fs.isAbsolute(configured)
|
|
72
|
+
? configured
|
|
73
|
+
: fs.join(await this.runtime.context('runtime/workspace-path'), configured);
|
|
74
|
+
return { fs, directory, path: fs.join(directory, `.env.${tier}`) };
|
|
75
|
+
}
|
|
76
|
+
/** The file's text; `undefined` only when there is no file. */
|
|
77
|
+
async readText({ fs, path }) {
|
|
78
|
+
const read = await outcomeOf(() => fs.readFile(path, 'utf-8'));
|
|
79
|
+
// Asked for utf-8, the adapter answers text.
|
|
80
|
+
if (read.ok)
|
|
81
|
+
return z.string().parse(read.value);
|
|
82
|
+
// Only an absent file is an empty store; a denied read is not.
|
|
83
|
+
if (isAbsentEntry(read.failure))
|
|
84
|
+
return undefined;
|
|
85
|
+
throw unreadable(path, read.failure);
|
|
86
|
+
}
|
|
87
|
+
async readLines(environment) {
|
|
88
|
+
const location = await this.location(environment);
|
|
89
|
+
const text = await serializeByPath(location.path, () => this.readText(location));
|
|
90
|
+
return text === undefined ? [] : parseDotenv(text);
|
|
91
|
+
}
|
|
92
|
+
/** Read-modify-write one file as one step; nothing is written when `change` leaves the text as it was. */
|
|
93
|
+
async modify(environment, change) {
|
|
94
|
+
const location = await this.location(environment);
|
|
95
|
+
await serializeByPath(location.path, async () => {
|
|
96
|
+
const before = await this.readText(location);
|
|
97
|
+
const lines = before === undefined ? [] : parseDotenv(before);
|
|
98
|
+
// The unchanged file as this store would write it: a missing final newline alone is not a change.
|
|
99
|
+
const unchanged = renderLines(lines);
|
|
100
|
+
change(lines);
|
|
101
|
+
const after = renderLines(lines);
|
|
102
|
+
if (after === unchanged)
|
|
103
|
+
return;
|
|
104
|
+
await location.fs.mkdir(location.directory, { recursive: true, mode: ENV_DIRECTORY_MODE });
|
|
105
|
+
await publishPrivateFile(location.fs, location.path, after);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
put(lines, key, value) {
|
|
109
|
+
const raw = formatDotenvEntry(key, value);
|
|
110
|
+
const index = entryIndex(lines, key);
|
|
111
|
+
if (index < 0) {
|
|
112
|
+
appendEntry(lines, raw, key, value);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const existing = lines[index];
|
|
116
|
+
// The same value again leaves the line as it is: its `export`, quoting and trailing comment stay.
|
|
117
|
+
if (existing?.type === 'entry' && existing.value === value)
|
|
118
|
+
return;
|
|
119
|
+
lines[index] = { type: 'entry', raw, key, value };
|
|
120
|
+
}
|
|
121
|
+
async list(environment) {
|
|
122
|
+
const lines = await this.readLines(environment);
|
|
123
|
+
return [...dotenvValues(lines)].map(([key, value]) => ({ key, hasValue: value !== '', source: this.id }));
|
|
124
|
+
}
|
|
125
|
+
async get(environment, key) {
|
|
126
|
+
parseStoreEnvironment(environment);
|
|
127
|
+
assertEnvironmentSecretKey(key);
|
|
128
|
+
return dotenvValues(await this.readLines(environment)).get(key);
|
|
129
|
+
}
|
|
130
|
+
async set(environment, key, value) {
|
|
131
|
+
parseStoreEnvironment(environment);
|
|
132
|
+
assertEnvironmentSecretKey(key);
|
|
133
|
+
formatDotenvEntry(key, value);
|
|
134
|
+
await this.modify(environment, (lines) => this.put(lines, key, value));
|
|
135
|
+
}
|
|
136
|
+
async unset(environment, key) {
|
|
137
|
+
parseStoreEnvironment(environment);
|
|
138
|
+
assertEnvironmentSecretKey(key);
|
|
139
|
+
await this.modify(environment, (lines) => {
|
|
140
|
+
// Every occurrence goes, from the end so the indexes still hold.
|
|
141
|
+
for (let index = entryIndex(lines, key); index >= 0; index = entryIndex(lines, key))
|
|
142
|
+
lines.splice(index, 1);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
async getAll(environment) {
|
|
146
|
+
// fromEntries defines own properties, so a `__proto__` key in the file is surfaced, not swallowed.
|
|
147
|
+
return Object.fromEntries(dotenvValues(await this.readLines(environment)));
|
|
148
|
+
}
|
|
149
|
+
async setAll(environment, secrets) {
|
|
150
|
+
parseStoreEnvironment(environment);
|
|
151
|
+
const entries = Object.entries(secrets);
|
|
152
|
+
// Every entry is checked before the file is touched: all land or none do.
|
|
153
|
+
for (const [key, value] of entries)
|
|
154
|
+
formatDotenvEntry(key, value);
|
|
155
|
+
await this.modify(environment, (lines) => {
|
|
156
|
+
for (const [key, value] of entries)
|
|
157
|
+
this.put(lines, key, value);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export function createEnvFileStore(runtime) {
|
|
162
|
+
const store = new EnvFileStore(descriptor, runtime);
|
|
163
|
+
return createRuntimeImplementation({
|
|
164
|
+
id: 'env-file',
|
|
165
|
+
kind: 'secrets/store',
|
|
166
|
+
priority: 0,
|
|
167
|
+
implementation: store
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=env-file.impl.local.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.impl.local.js","sourceRoot":"","sources":["../../../src/backends/env-file/env-file.impl.local.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,kBAAkB,EAAC,wBAAwB,EAAkC,MAAM,yBAAyB,CAAC;AACtH,OAAO,EAAE,eAAe,EAAqC,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAG9E,OAAO,EAAE,YAAY,EAAC,iBAAiB,EAAC,WAAW,EAAkB,MAAM,iCAAiC,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAC,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,iEAAiE;AACjE,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAQjC,SAAS,UAAU,CAAC,IAAY,EAAE,KAAoB;IACrD,OAAO,IAAI,eAAe,CAAC,iCAAiC,EAAE,aAAa,EAA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AAE,iBAAiB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;YACxC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,OAAO;gBAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAmB;IACrD,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACpD,OAAO,2BAA2B,CAAC;QAClC,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,CAAC;QACX,cAAc,EAAE,KAAK;KACrB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets Backend Env-File Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers the env-file secrets/store backend with the runtime.
|
|
5
|
+
* Reads/writes .env.{environment} files. Consumer hardware only (Node/Bun).
|
|
6
|
+
*/
|
|
7
|
+
export declare const secretsBackendEnvFilePlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
8
|
+
export default secretsBackendEnvFilePlugin;
|
|
9
|
+
//# sourceMappingURL=env-file.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.plugin.d.ts","sourceRoot":"","sources":["../../../src/backends/env-file/env-file.plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAAO,MAAM,2BAA2B,6CAoBtC,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets Backend Env-File Plugin
|
|
3
|
+
*
|
|
4
|
+
* Registers the env-file secrets/store backend with the runtime.
|
|
5
|
+
* Reads/writes .env.{environment} files. Consumer hardware only (Node/Bun).
|
|
6
|
+
*/
|
|
7
|
+
import { createRuntimePlugin } from '@vibesdotdev/kernel';
|
|
8
|
+
import descriptor from "./env-file.descriptor.js";
|
|
9
|
+
export const secretsBackendEnvFilePlugin = createRuntimePlugin({
|
|
10
|
+
id: '@vibesdotdev/secrets/backends/env-file',
|
|
11
|
+
name: 'Secrets Backend: Env-File',
|
|
12
|
+
description: 'Env-file secrets backend. Reads/writes .env.{environment} files for local and dev tiers.',
|
|
13
|
+
dependencies: ['secrets'],
|
|
14
|
+
descriptors: [descriptor],
|
|
15
|
+
onRegister: async (runtime) => {
|
|
16
|
+
runtime.registerLoader('secrets/store', 'env-file', async () => {
|
|
17
|
+
const { createEnvFileStore } = await import("./env-file.impl.local.js");
|
|
18
|
+
return createEnvFileStore(runtime);
|
|
19
|
+
}, { priority: 0, origin: 'secrets-backend-env-file' });
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export default secretsBackendEnvFilePlugin;
|
|
23
|
+
//# sourceMappingURL=env-file.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-file.plugin.js","sourceRoot":"","sources":["../../../src/backends/env-file/env-file.plugin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAElD,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;IAC9D,EAAE,EAAE,wCAAwC;IAC5C,IAAI,EAAE,2BAA2B;IACjC,WAAW,EACV,0FAA0F;IAC3F,YAAY,EAAE,CAAC,SAAS,CAAC;IAEzB,WAAW,EAAE,CAAC,UAAU,CAAC;IAEzB,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7B,OAAO,CAAC,cAAc,CACrB,eAAe,EACf,UAAU,EACV,KAAK,IAAI,EAAE;YACV,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,CAAC;YACxE,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,EACD,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,CACnD,CAAC;IACH,CAAC;CACD,CAAC,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/secrets/backends/env-file
|
|
3
|
+
*
|
|
4
|
+
* Env-file secrets backend. Reads/writes .env.{environment} files
|
|
5
|
+
* for local and dev tiers.
|
|
6
|
+
*/
|
|
7
|
+
export { default, secretsBackendEnvFilePlugin } from './env-file.plugin.ts';
|
|
8
|
+
export { default as envFileDescriptor } from './env-file.descriptor.ts';
|
|
9
|
+
export { createEnvFileStore } from './env-file.impl.local.ts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/backends/env-file/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAC,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAG3E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/secrets/backends/env-file
|
|
3
|
+
*
|
|
4
|
+
* Env-file secrets backend. Reads/writes .env.{environment} files
|
|
5
|
+
* for local and dev tiers.
|
|
6
|
+
*/
|
|
7
|
+
// Plugin
|
|
8
|
+
export { default, secretsBackendEnvFilePlugin } from "./env-file.plugin.js";
|
|
9
|
+
// Descriptor
|
|
10
|
+
export { default as envFileDescriptor } from "./env-file.descriptor.js";
|
|
11
|
+
// Implementation factory
|
|
12
|
+
export { createEnvFileStore } from "./env-file.impl.local.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/backends/env-file/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,SAAS;AACT,OAAO,EAAE,OAAO,EAAC,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAE3E,aAAa;AACb,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAExE,yBAAyB;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `host-credentials`: the store a host composes when it boots with a
|
|
3
|
+
* `VIBES_HOST_CREDENTIALS` manifest (rc05 §2.2-§2.3). Scope-selected at
|
|
4
|
+
* priority 1000 on every tier, so while it is composed it answers every
|
|
5
|
+
* unnamed lookup: a manifest key from the captured environment, anything else
|
|
6
|
+
* as not set. Selection is not a chain, so an unlisted key never reaches a
|
|
7
|
+
* lower store.
|
|
8
|
+
*/
|
|
9
|
+
import type { SecretsStoreDescriptor } from '../../domain/kinds/store.schema.ts';
|
|
10
|
+
export declare const HOST_CREDENTIALS_STORE_ID = "host-credentials";
|
|
11
|
+
declare const descriptor: SecretsStoreDescriptor;
|
|
12
|
+
export default descriptor;
|
|
13
|
+
//# sourceMappingURL=host-credentials.descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.descriptor.d.ts","sourceRoot":"","sources":["../../../src/backends/host-credentials/host-credentials.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAEjF,eAAO,MAAM,yBAAyB,qBAAqB,CAAC;AAE5D,QAAA,MAAM,UAAU,EAAE,sBAYjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `host-credentials`: the store a host composes when it boots with a
|
|
3
|
+
* `VIBES_HOST_CREDENTIALS` manifest (rc05 §2.2-§2.3). Scope-selected at
|
|
4
|
+
* priority 1000 on every tier, so while it is composed it answers every
|
|
5
|
+
* unnamed lookup: a manifest key from the captured environment, anything else
|
|
6
|
+
* as not set. Selection is not a chain, so an unlisted key never reaches a
|
|
7
|
+
* lower store.
|
|
8
|
+
*/
|
|
9
|
+
export const HOST_CREDENTIALS_STORE_ID = 'host-credentials';
|
|
10
|
+
const descriptor = {
|
|
11
|
+
id: HOST_CREDENTIALS_STORE_ID,
|
|
12
|
+
kind: 'secrets/store',
|
|
13
|
+
name: 'Host credentials',
|
|
14
|
+
description: 'Credentials a live publisher (vibes secrets exec, a CI step, the orchestrator) put in this process environment and named in VIBES_HOST_CREDENTIALS',
|
|
15
|
+
tags: ['host', 'read-only'],
|
|
16
|
+
enabled: true,
|
|
17
|
+
backend: 'host-credentials',
|
|
18
|
+
selection: 'scope',
|
|
19
|
+
tiers: ['local', 'dev', 'staging', 'production'],
|
|
20
|
+
priority: 1000
|
|
21
|
+
};
|
|
22
|
+
export default descriptor;
|
|
23
|
+
//# sourceMappingURL=host-credentials.descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.descriptor.js","sourceRoot":"","sources":["../../../src/backends/host-credentials/host-credentials.descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAE5D,MAAM,UAAU,GAA2B;IAC1C,EAAE,EAAE,yBAAyB;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACV,oJAAoJ;IACrJ,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC;IAC3B,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,kBAAkB;IAC3B,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,CAAC;IAChD,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type HostCredentialsHost } from "../../schemas/backends/host.schema.ts";
|
|
2
|
+
export { type HostCredentialsHost } from "../../schemas/backends/host.schema.ts";
|
|
3
|
+
/**
|
|
4
|
+
* The `host-credentials` secrets store (rc05 §2.2-§2.3; rc01 §2.1).
|
|
5
|
+
*
|
|
6
|
+
* It answers only the keys a live publisher named in the captured
|
|
7
|
+
* `VIBES_HOST_CREDENTIALS` manifest, from the environment's captured snapshot
|
|
8
|
+
* (never the live process environment).
|
|
9
|
+
*
|
|
10
|
+
* - The manifest is read from the captured snapshot and parsed on every call,
|
|
11
|
+
* and the publisher's liveness is checked on every read, so a changed or
|
|
12
|
+
* replaced manifest is seen at once. A dead publisher, a pid whose start time
|
|
13
|
+
* differs, or a past lease expiry is `AUTH_REQUIRED` `host-credentials-stale`.
|
|
14
|
+
* - An unparseable manifest is `INVALID_INPUT` `manifest-invalid`.
|
|
15
|
+
* - On a `requestPrincipals` host the caller's bearer is the request
|
|
16
|
+
* principal's, so a principal key is refused with `PERMISSION_DENIED`
|
|
17
|
+
* `principal-key-reserved` (rc01 amendments A9, A10).
|
|
18
|
+
* - The store is read-only: a write is `PERMISSION_DENIED` `store-read-only`.
|
|
19
|
+
*/
|
|
20
|
+
import { type HostCredentialsLivenessProbe } from '@vibesdotdev/kernel';
|
|
21
|
+
import type { SecretsStoreImplementation } from '../../domain/kinds/store.interface.ts';
|
|
22
|
+
/** Keys that carry the caller's identity: auth's declared principal keys. */
|
|
23
|
+
export declare const PRINCIPAL_CREDENTIAL_KEYS: ReadonlySet<string>;
|
|
24
|
+
export declare function createHostCredentialsStore(host: HostCredentialsHost, probe: HostCredentialsLivenessProbe): SecretsStoreImplementation;
|
|
25
|
+
//# sourceMappingURL=host-credentials.impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.impl.d.ts","sourceRoot":"","sources":["../../../src/backends/host-credentials/host-credentials.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AACjF;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAMP,KAAK,4BAA4B,EAEhC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAc,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAIpG,6EAA6E;AAC7E,eAAO,MAAM,yBAAyB,EAAE,WAAW,CAAC,MAAM,CAAiC,CAAC;AAkB5F,wBAAgB,0BAA0B,CACzC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,4BAA4B,GACjC,0BAA0B,CAgF5B"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {} from "../../schemas/backends/host.schema.js";
|
|
2
|
+
export {} from "../../schemas/backends/host.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* The `host-credentials` secrets store (rc05 §2.2-§2.3; rc01 §2.1).
|
|
5
|
+
*
|
|
6
|
+
* It answers only the keys a live publisher named in the captured
|
|
7
|
+
* `VIBES_HOST_CREDENTIALS` manifest, from the environment's captured snapshot
|
|
8
|
+
* (never the live process environment).
|
|
9
|
+
*
|
|
10
|
+
* - The manifest is read from the captured snapshot and parsed on every call,
|
|
11
|
+
* and the publisher's liveness is checked on every read, so a changed or
|
|
12
|
+
* replaced manifest is seen at once. A dead publisher, a pid whose start time
|
|
13
|
+
* differs, or a past lease expiry is `AUTH_REQUIRED` `host-credentials-stale`.
|
|
14
|
+
* - An unparseable manifest is `INVALID_INPUT` `manifest-invalid`.
|
|
15
|
+
* - On a `requestPrincipals` host the caller's bearer is the request
|
|
16
|
+
* principal's, so a principal key is refused with `PERMISSION_DENIED`
|
|
17
|
+
* `principal-key-reserved` (rc01 amendments A9, A10).
|
|
18
|
+
* - The store is read-only: a write is `PERMISSION_DENIED` `store-read-only`.
|
|
19
|
+
*/
|
|
20
|
+
import { CapabilityError, HOST_CREDENTIAL_MANIFEST_KEY as HOST_CREDENTIALS_MANIFEST_KEY, checkHostCredentialsPublisher, hostCredentialsStaleError, parseHostCredentialsManifest } from '@vibesdotdev/kernel';
|
|
21
|
+
import { assertSecretKey } from "../../domain/kinds/secret-key.js";
|
|
22
|
+
import { isSecretKey } from "../../support/secret-value.js";
|
|
23
|
+
import descriptor, { HOST_CREDENTIALS_STORE_ID } from "./host-credentials.descriptor.js";
|
|
24
|
+
/** Keys that carry the caller's identity: auth's declared principal keys. */
|
|
25
|
+
export const PRINCIPAL_CREDENTIAL_KEYS = new Set(['VIBES_AUTH_TOKEN']);
|
|
26
|
+
/** The store is read-only; the refusal names the store, never the key asked. */
|
|
27
|
+
function readOnly() {
|
|
28
|
+
return new CapabilityError('The host-credentials store is read-only.', 'PERMISSION_DENIED', {
|
|
29
|
+
reason: 'store-read-only',
|
|
30
|
+
details: { store: HOST_CREDENTIALS_STORE_ID }
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function principalKeyReserved(key) {
|
|
34
|
+
return new CapabilityError(`'${key}' is the caller's identity on this host; it comes from the request principal, never from host credentials.`, 'PERMISSION_DENIED', { reason: 'principal-key-reserved', details: { store: HOST_CREDENTIALS_STORE_ID, key } });
|
|
35
|
+
}
|
|
36
|
+
export function createHostCredentialsStore(host, probe) {
|
|
37
|
+
/** The manifest of the captured environment as it is now: read and parsed on every call, never kept. */
|
|
38
|
+
function manifest() {
|
|
39
|
+
const raw = host.getEnvSnapshot()[HOST_CREDENTIALS_MANIFEST_KEY];
|
|
40
|
+
if (raw === undefined) {
|
|
41
|
+
throw new CapabilityError(`This host has no ${HOST_CREDENTIALS_MANIFEST_KEY} manifest.`, 'INVALID_INPUT', { reason: 'manifest-invalid', details: { key: HOST_CREDENTIALS_MANIFEST_KEY, cause: 'absent' } });
|
|
42
|
+
}
|
|
43
|
+
return parseHostCredentialsManifest(raw, host.declaredScope.hosting?.venue);
|
|
44
|
+
}
|
|
45
|
+
/** The manifest, once its publisher is confirmed live for this read. */
|
|
46
|
+
async function liveManifest() {
|
|
47
|
+
const current = manifest();
|
|
48
|
+
const liveness = await checkHostCredentialsPublisher(current.publisher, probe);
|
|
49
|
+
if (!liveness.live)
|
|
50
|
+
throw hostCredentialsStaleError(liveness);
|
|
51
|
+
return current;
|
|
52
|
+
}
|
|
53
|
+
function refusePrincipalKey(key) {
|
|
54
|
+
if (host.declaredScope.capabilities?.requestPrincipals && PRINCIPAL_CREDENTIAL_KEYS.has(key)) {
|
|
55
|
+
throw principalKeyReserved(key);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/** The manifest keys this store answers: not the caller's identity on a principal host, and no name an object holds as internals. */
|
|
59
|
+
function answerable(current) {
|
|
60
|
+
const named = current.keys.filter(isSecretKey);
|
|
61
|
+
return host.declaredScope.capabilities?.requestPrincipals
|
|
62
|
+
? named.filter((key) => !PRINCIPAL_CREDENTIAL_KEYS.has(key))
|
|
63
|
+
: named;
|
|
64
|
+
}
|
|
65
|
+
/** The captured value of `key`: an own entry of the snapshot only, never one an object inherits. */
|
|
66
|
+
function captured(snapshot, key) {
|
|
67
|
+
return Object.hasOwn(snapshot, key) ? snapshot[key] : undefined;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
id: HOST_CREDENTIALS_STORE_ID,
|
|
71
|
+
descriptor,
|
|
72
|
+
async get(_environment, key) {
|
|
73
|
+
assertSecretKey(key);
|
|
74
|
+
refusePrincipalKey(key);
|
|
75
|
+
const current = await liveManifest();
|
|
76
|
+
if (!current.keys.includes(key))
|
|
77
|
+
return undefined;
|
|
78
|
+
return captured(host.getEnvSnapshot(), key);
|
|
79
|
+
},
|
|
80
|
+
async list() {
|
|
81
|
+
const current = await liveManifest();
|
|
82
|
+
const snapshot = host.getEnvSnapshot();
|
|
83
|
+
return answerable(current).map((key) => ({
|
|
84
|
+
key,
|
|
85
|
+
hasValue: (captured(snapshot, key) ?? '').length > 0,
|
|
86
|
+
source: HOST_CREDENTIALS_STORE_ID
|
|
87
|
+
}));
|
|
88
|
+
},
|
|
89
|
+
async getAll() {
|
|
90
|
+
const current = await liveManifest();
|
|
91
|
+
const snapshot = host.getEnvSnapshot();
|
|
92
|
+
const values = [];
|
|
93
|
+
for (const key of answerable(current)) {
|
|
94
|
+
const value = captured(snapshot, key);
|
|
95
|
+
if (value !== undefined)
|
|
96
|
+
values.push([key, value]);
|
|
97
|
+
}
|
|
98
|
+
return Object.fromEntries(values);
|
|
99
|
+
},
|
|
100
|
+
async set() {
|
|
101
|
+
throw readOnly();
|
|
102
|
+
},
|
|
103
|
+
async unset() {
|
|
104
|
+
throw readOnly();
|
|
105
|
+
},
|
|
106
|
+
async setAll() {
|
|
107
|
+
throw readOnly();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=host-credentials.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.impl.js","sourceRoot":"","sources":["../../../src/backends/host-credentials/host-credentials.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAA4B,MAAM,uCAAuC,CAAC;AACjF;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACP,eAAe,EACf,4BAA4B,IAAI,6BAA6B,EAC7D,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAG3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,WAAW,EA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 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets Backend: host-credentials
|
|
3
|
+
*
|
|
4
|
+
* Composes the `host-credentials` store when this host's captured environment
|
|
5
|
+
* holds a `VIBES_HOST_CREDENTIALS` manifest, and nothing otherwise. The
|
|
6
|
+
* manifest's validity and liveness are judged on every read, so a stale or
|
|
7
|
+
* malformed manifest fails closed instead of letting a lower store answer.
|
|
8
|
+
*/
|
|
9
|
+
import { type HostCredentialsLivenessProbe, type RuntimePlugin } from '@vibesdotdev/kernel';
|
|
10
|
+
/**
|
|
11
|
+
* `probe` overrides liveness probing (tests); absent, the store reads a
|
|
12
|
+
* publisher's start time through the composing runtime's process service.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createSecretsBackendHostCredentialsPlugin(probe?: Partial<HostCredentialsLivenessProbe>): RuntimePlugin;
|
|
15
|
+
export declare const secretsBackendHostCredentialsPlugin: RuntimePlugin;
|
|
16
|
+
export default secretsBackendHostCredentialsPlugin;
|
|
17
|
+
//# sourceMappingURL=host-credentials.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-credentials.plugin.d.ts","sourceRoot":"","sources":["../../../src/backends/host-credentials/host-credentials.plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAMP,KAAK,4BAA4B,EACjC,KAAK,aAAa,EACjB,MAAM,qBAAqB,CAAC;AAI7B;;;GAGG;AACH,wBAAgB,yCAAyC,CACxD,KAAK,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC,GAC3C,aAAa,CAsCf;AAED,eAAO,MAAM,mCAAmC,eAA8C,CAAC;AAE/F,eAAe,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secrets Backend: host-credentials
|
|
3
|
+
*
|
|
4
|
+
* Composes the `host-credentials` store when this host's captured environment
|
|
5
|
+
* holds a `VIBES_HOST_CREDENTIALS` manifest, and nothing otherwise. The
|
|
6
|
+
* manifest's validity and liveness are judged on every read, so a stale or
|
|
7
|
+
* malformed manifest fails closed instead of letting a lower store answer.
|
|
8
|
+
*/
|
|
9
|
+
import { CapabilityError, HOST_CREDENTIAL_MANIFEST_KEY, VibesRuntime, createRuntimePlugin, processServiceLivenessProbe } from '@vibesdotdev/kernel';
|
|
10
|
+
import descriptor, { HOST_CREDENTIALS_STORE_ID } from "./host-credentials.descriptor.js";
|
|
11
|
+
/**
|
|
12
|
+
* `probe` overrides liveness probing (tests); absent, the store reads a
|
|
13
|
+
* publisher's start time through the composing runtime's process service.
|
|
14
|
+
*/
|
|
15
|
+
export function createSecretsBackendHostCredentialsPlugin(probe) {
|
|
16
|
+
return createRuntimePlugin({
|
|
17
|
+
id: '@vibesdotdev/secrets/backends/host-credentials',
|
|
18
|
+
name: 'Secrets Backend: Host Credentials',
|
|
19
|
+
description: 'Answers the keys a live publisher named in VIBES_HOST_CREDENTIALS, from the captured environment.',
|
|
20
|
+
dependencies: ['secrets'],
|
|
21
|
+
onRegister: async (runtime) => {
|
|
22
|
+
if (!(runtime instanceof VibesRuntime)) {
|
|
23
|
+
throw new CapabilityError('host-credentials needs the runtime that composes it.', 'INTERNAL', {
|
|
24
|
+
reason: 'runtime-unavailable',
|
|
25
|
+
details: { store: HOST_CREDENTIALS_STORE_ID }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (!runtime.hasEnvironment)
|
|
29
|
+
return;
|
|
30
|
+
if (runtime.getEnvSnapshot()[HOST_CREDENTIAL_MANIFEST_KEY] === undefined)
|
|
31
|
+
return;
|
|
32
|
+
runtime.registerDescriptor('secrets/store', descriptor);
|
|
33
|
+
runtime.registerLoader('secrets/store', HOST_CREDENTIALS_STORE_ID, async () => {
|
|
34
|
+
const { createHostCredentialsStore } = await import("./host-credentials.impl.js");
|
|
35
|
+
// The process table is read through the runtime's process service,
|
|
36
|
+
// resolved at each probe (a lease never needs it). A lease's `expiresAt`
|
|
37
|
+
// is Unix milliseconds (the publisher writes it from the wall clock), so
|
|
38
|
+
// its verdict reads the wall clock: `runtime.lifecycle.now()` is a
|
|
39
|
+
// monotonic count since an arbitrary start and would never expire a lease.
|
|
40
|
+
const liveness = {
|
|
41
|
+
...processServiceLivenessProbe(runtime),
|
|
42
|
+
nowMs: () => Date.now(),
|
|
43
|
+
...probe
|
|
44
|
+
};
|
|
45
|
+
return { impl: createHostCredentialsStore(runtime, liveness) };
|
|
46
|
+
}, { priority: 0, origin: 'secrets-backend-host-credentials' });
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export const secretsBackendHostCredentialsPlugin = createSecretsBackendHostCredentialsPlugin();
|
|
51
|
+
export default secretsBackendHostCredentialsPlugin;
|
|
52
|
+
//# sourceMappingURL=host-credentials.plugin.js.map
|