@vibesdotdev/secrets 0.0.2 → 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 +15 -12
- package/dist/backends/encrypted-local/encrypted-local.descriptor.d.ts +10 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.js +24 -0
- package/dist/backends/encrypted-local/encrypted-local.descriptor.js.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.d.ts +49 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.js +139 -0
- package/dist/backends/encrypted-local/encrypted-local.impl.local.js.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.d.ts +9 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.d.ts.map +1 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.js +23 -0
- package/dist/backends/encrypted-local/encrypted-local.plugin.js.map +1 -0
- package/dist/backends/encrypted-local/index.d.ts +10 -0
- package/dist/backends/encrypted-local/index.d.ts.map +1 -0
- package/dist/backends/encrypted-local/index.js +13 -0
- package/dist/backends/encrypted-local/index.js.map +1 -0
- package/dist/backends/encrypted-local/schemas/internal.d.ts +24 -0
- package/dist/backends/encrypted-local/schemas/internal.d.ts.map +1 -0
- package/dist/backends/encrypted-local/schemas/internal.js +12 -0
- package/dist/backends/encrypted-local/schemas/internal.js.map +1 -0
- package/dist/backends/encrypted-local/vault-document.d.ts +19 -0
- package/dist/backends/encrypted-local/vault-document.d.ts.map +1 -0
- package/dist/backends/encrypted-local/vault-document.js +122 -0
- package/dist/backends/encrypted-local/vault-document.js.map +1 -0
- package/dist/backends/env-file/env-file.descriptor.d.ts +11 -0
- package/dist/backends/env-file/env-file.descriptor.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.descriptor.js +24 -0
- package/dist/backends/env-file/env-file.descriptor.js.map +1 -0
- package/dist/backends/env-file/env-file.impl.local.d.ts +47 -0
- package/dist/backends/env-file/env-file.impl.local.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.impl.local.js +170 -0
- package/dist/backends/env-file/env-file.impl.local.js.map +1 -0
- package/dist/backends/env-file/env-file.plugin.d.ts +9 -0
- package/dist/backends/env-file/env-file.plugin.d.ts.map +1 -0
- package/dist/backends/env-file/env-file.plugin.js +23 -0
- package/dist/backends/env-file/env-file.plugin.js.map +1 -0
- package/dist/backends/env-file/index.d.ts +10 -0
- package/dist/backends/env-file/index.d.ts.map +1 -0
- package/dist/backends/env-file/index.js +13 -0
- package/dist/backends/env-file/index.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.d.ts +13 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.js +23 -0
- package/dist/backends/host-credentials/host-credentials.descriptor.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.impl.d.ts +25 -0
- package/dist/backends/host-credentials/host-credentials.impl.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.impl.js +111 -0
- package/dist/backends/host-credentials/host-credentials.impl.js.map +1 -0
- package/dist/backends/host-credentials/host-credentials.plugin.d.ts +17 -0
- package/dist/backends/host-credentials/host-credentials.plugin.d.ts.map +1 -0
- package/dist/backends/host-credentials/host-credentials.plugin.js +52 -0
- package/dist/backends/host-credentials/host-credentials.plugin.js.map +1 -0
- package/dist/backends/host-credentials/index.d.ts +4 -0
- package/dist/backends/host-credentials/index.d.ts.map +1 -0
- package/dist/backends/host-credentials/index.js +7 -0
- package/dist/backends/host-credentials/index.js.map +1 -0
- package/dist/backends/mounted-files/index.d.ts +3 -0
- package/dist/backends/mounted-files/index.d.ts.map +1 -0
- package/dist/backends/mounted-files/index.js +4 -0
- package/dist/backends/mounted-files/index.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.d.ts +14 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.js +24 -0
- package/dist/backends/mounted-files/mounted-files.descriptor.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.d.ts +27 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.js +146 -0
- package/dist/backends/mounted-files/mounted-files.impl.local.js.map +1 -0
- package/dist/backends/mounted-files/mounted-files.plugin.d.ts +10 -0
- package/dist/backends/mounted-files/mounted-files.plugin.d.ts.map +1 -0
- package/dist/backends/mounted-files/mounted-files.plugin.js +28 -0
- package/dist/backends/mounted-files/mounted-files.plugin.js.map +1 -0
- package/dist/backends/mounted-files/node.d.ts +9 -0
- package/dist/backends/mounted-files/node.d.ts.map +1 -0
- package/dist/backends/mounted-files/node.js +9 -0
- package/dist/backends/mounted-files/node.js.map +1 -0
- package/dist/backends/vault/index.d.ts +11 -0
- package/dist/backends/vault/index.d.ts.map +1 -0
- package/dist/backends/vault/index.js +11 -0
- package/dist/backends/vault/index.js.map +1 -0
- package/dist/backends/vault/secrets-vault.client.d.ts +15 -0
- package/dist/backends/vault/secrets-vault.client.d.ts.map +1 -0
- package/dist/backends/vault/secrets-vault.client.js +120 -0
- package/dist/backends/vault/secrets-vault.client.js.map +1 -0
- package/dist/backends/vault/secrets-vault.impl.d.ts +29 -0
- package/dist/backends/vault/secrets-vault.impl.d.ts.map +1 -0
- package/dist/backends/vault/secrets-vault.impl.js +141 -0
- package/dist/backends/vault/secrets-vault.impl.js.map +1 -0
- package/dist/backends/vault/vault-bootstrap.d.ts +24 -0
- package/dist/backends/vault/vault-bootstrap.d.ts.map +1 -0
- package/dist/backends/vault/vault-bootstrap.js +147 -0
- package/dist/backends/vault/vault-bootstrap.js.map +1 -0
- package/dist/backends/vault/vault-config.d.ts +26 -0
- package/dist/backends/vault/vault-config.d.ts.map +1 -0
- package/dist/backends/vault/vault-config.js +93 -0
- package/dist/backends/vault/vault-config.js.map +1 -0
- package/dist/backends/vault/vault-failures.d.ts +15 -0
- package/dist/backends/vault/vault-failures.d.ts.map +1 -0
- package/dist/backends/vault/vault-failures.js +36 -0
- package/dist/backends/vault/vault-failures.js.map +1 -0
- package/dist/backends/vault/vault-kv.d.ts +22 -0
- package/dist/backends/vault/vault-kv.d.ts.map +1 -0
- package/dist/backends/vault/vault-kv.js +108 -0
- package/dist/backends/vault/vault-kv.js.map +1 -0
- package/dist/backends/vault/vault-transport.d.ts +22 -0
- package/dist/backends/vault/vault-transport.d.ts.map +1 -0
- package/dist/backends/vault/vault-transport.js +104 -0
- package/dist/backends/vault/vault-transport.js.map +1 -0
- package/dist/backends/vault/vault-unseal.sources.d.ts +12 -0
- package/dist/backends/vault/vault-unseal.sources.d.ts.map +1 -0
- package/dist/backends/vault/vault-unseal.sources.js +87 -0
- package/dist/backends/vault/vault-unseal.sources.js.map +1 -0
- package/dist/docs/backends.docs.descriptor.d.ts +1 -1
- package/dist/docs/backends.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/backends.docs.descriptor.js +58 -121
- package/dist/docs/backends.docs.descriptor.js.map +1 -1
- package/dist/docs/encryption.docs.descriptor.d.ts +1 -1
- package/dist/docs/encryption.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/encryption.docs.descriptor.js +90 -96
- package/dist/docs/encryption.docs.descriptor.js.map +1 -1
- package/dist/docs/env-file.docs.descriptor.d.ts +1 -1
- package/dist/docs/env-file.docs.descriptor.d.ts.map +1 -1
- package/dist/docs/env-file.docs.descriptor.js +81 -127
- package/dist/docs/env-file.docs.descriptor.js.map +1 -1
- package/dist/docs/secrets.docs.descriptor.d.ts +4 -0
- package/dist/docs/secrets.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/secrets.docs.descriptor.js +43 -0
- package/dist/docs/secrets.docs.descriptor.js.map +1 -0
- package/dist/domain/attestation/attestation.d.ts +19 -0
- package/dist/domain/attestation/attestation.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.js +104 -0
- package/dist/domain/attestation/attestation.js.map +1 -0
- package/dist/domain/attestation/attestation.kind.d.ts +27 -0
- package/dist/domain/attestation/attestation.kind.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.kind.js +20 -0
- package/dist/domain/attestation/attestation.kind.js.map +1 -0
- package/dist/domain/attestation/attestation.plugin.d.ts +8 -0
- package/dist/domain/attestation/attestation.plugin.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.plugin.js +26 -0
- package/dist/domain/attestation/attestation.plugin.js.map +1 -0
- package/dist/domain/attestation/attestation.provider.d.ts +23 -0
- package/dist/domain/attestation/attestation.provider.d.ts.map +1 -0
- package/dist/domain/attestation/attestation.provider.js +46 -0
- package/dist/domain/attestation/attestation.provider.js.map +1 -0
- package/dist/domain/attestation/claim-files.d.ts +34 -0
- package/dist/domain/attestation/claim-files.d.ts.map +1 -0
- package/dist/domain/attestation/claim-files.js +149 -0
- package/dist/domain/attestation/claim-files.js.map +1 -0
- package/dist/domain/attestation/index.d.ts +8 -0
- package/dist/domain/attestation/index.d.ts.map +1 -0
- package/dist/domain/attestation/index.js +7 -0
- package/dist/domain/attestation/index.js.map +1 -0
- package/dist/domain/attestation/provider.interface.d.ts +2 -0
- package/dist/domain/attestation/provider.interface.d.ts.map +1 -0
- package/dist/domain/attestation/provider.interface.js +2 -0
- package/dist/domain/attestation/provider.interface.js.map +1 -0
- package/dist/domain/attestation/schemas.d.ts +2 -0
- package/dist/domain/attestation/schemas.d.ts.map +1 -0
- package/dist/domain/attestation/schemas.js +2 -0
- package/dist/domain/attestation/schemas.js.map +1 -0
- package/dist/domain/attestation/token.d.ts +14 -0
- package/dist/domain/attestation/token.d.ts.map +1 -0
- package/dist/domain/attestation/token.js +14 -0
- package/dist/domain/attestation/token.js.map +1 -0
- package/dist/domain/client/authenticated-request.d.ts +4 -0
- package/dist/domain/client/authenticated-request.d.ts.map +1 -0
- package/dist/domain/client/authenticated-request.js +440 -0
- package/dist/domain/client/authenticated-request.js.map +1 -0
- package/dist/domain/client/credential-use.d.ts +27 -0
- package/dist/domain/client/credential-use.d.ts.map +1 -0
- package/dist/domain/client/credential-use.js +224 -0
- package/dist/domain/client/credential-use.js.map +1 -0
- package/dist/domain/client/env-handle.d.ts +33 -0
- package/dist/domain/client/env-handle.d.ts.map +1 -0
- package/dist/domain/client/env-handle.js +55 -0
- package/dist/domain/client/env-handle.js.map +1 -0
- package/dist/domain/client/helper.d.ts +10 -0
- package/dist/domain/client/helper.d.ts.map +1 -0
- package/dist/domain/client/helper.js +11 -0
- package/dist/domain/client/helper.js.map +1 -0
- package/dist/domain/client/index.d.ts +11 -0
- package/dist/domain/client/index.d.ts.map +1 -0
- package/dist/domain/client/index.js +10 -0
- package/dist/domain/client/index.js.map +1 -0
- package/dist/domain/client/managed-handle.d.ts +24 -0
- package/dist/domain/client/managed-handle.d.ts.map +1 -0
- package/dist/domain/client/managed-handle.js +93 -0
- package/dist/domain/client/managed-handle.js.map +1 -0
- package/dist/domain/client/secrets-client.d.ts +60 -0
- package/dist/domain/client/secrets-client.d.ts.map +1 -0
- package/dist/domain/client/secrets-client.js +108 -0
- package/dist/domain/client/secrets-client.js.map +1 -0
- package/dist/domain/config/load.d.ts +6 -0
- package/dist/domain/config/load.d.ts.map +1 -0
- package/dist/domain/config/load.js +15 -0
- package/dist/domain/config/load.js.map +1 -0
- package/dist/domain/config/secrets.config.descriptor.d.ts +35 -0
- package/dist/domain/config/secrets.config.descriptor.d.ts.map +1 -0
- package/dist/domain/config/secrets.config.descriptor.js +29 -0
- package/dist/domain/config/secrets.config.descriptor.js.map +1 -0
- package/dist/domain/kinds/index.d.ts +5 -0
- package/dist/domain/kinds/index.d.ts.map +1 -0
- package/dist/domain/kinds/index.js +4 -0
- package/dist/domain/kinds/index.js.map +1 -0
- package/dist/domain/kinds/schemas/store.schema.d.ts +2 -0
- package/dist/domain/kinds/schemas/store.schema.d.ts.map +1 -0
- package/dist/domain/kinds/schemas/store.schema.js +2 -0
- package/dist/domain/kinds/schemas/store.schema.js.map +1 -0
- package/dist/domain/kinds/schemas/store.types.d.ts +2 -0
- package/dist/domain/kinds/schemas/store.types.d.ts.map +1 -0
- package/dist/domain/kinds/schemas/store.types.js.map +1 -0
- package/dist/domain/kinds/secret-key.d.ts +13 -0
- package/dist/domain/kinds/secret-key.d.ts.map +1 -0
- package/dist/domain/kinds/secret-key.js +47 -0
- package/dist/domain/kinds/secret-key.js.map +1 -0
- package/dist/domain/kinds/store-operation.d.ts +3 -0
- package/dist/domain/kinds/store-operation.d.ts.map +1 -0
- package/dist/domain/kinds/store-operation.js +43 -0
- package/dist/domain/kinds/store-operation.js.map +1 -0
- package/dist/domain/kinds/store-selection.d.ts +21 -0
- package/dist/domain/kinds/store-selection.d.ts.map +1 -0
- package/dist/domain/kinds/store-selection.js +57 -0
- package/dist/domain/kinds/store-selection.js.map +1 -0
- package/dist/domain/kinds/store.interface.d.ts +2 -0
- package/dist/domain/kinds/store.interface.d.ts.map +1 -0
- package/dist/domain/kinds/store.interface.js.map +1 -0
- package/dist/domain/kinds/store.kind.d.ts +20 -0
- package/dist/domain/kinds/store.kind.d.ts.map +1 -0
- package/dist/domain/kinds/store.kind.js +33 -0
- package/dist/domain/kinds/store.kind.js.map +1 -0
- package/dist/domain/kinds/store.schema.d.ts +2 -0
- package/dist/domain/kinds/store.schema.d.ts.map +1 -0
- package/dist/domain/kinds/store.schema.js +2 -0
- package/dist/domain/kinds/store.schema.js.map +1 -0
- package/dist/domain/manifest/authentication.d.ts +17 -0
- package/dist/domain/manifest/authentication.d.ts.map +1 -0
- package/dist/domain/manifest/authentication.js +119 -0
- package/dist/domain/manifest/authentication.js.map +1 -0
- package/dist/domain/manifest/canonical.d.ts +6 -0
- package/dist/domain/manifest/canonical.d.ts.map +1 -0
- package/dist/domain/manifest/canonical.js +86 -0
- package/dist/domain/manifest/canonical.js.map +1 -0
- package/dist/domain/manifest/dotenv.d.ts +13 -0
- package/dist/domain/manifest/dotenv.d.ts.map +1 -0
- package/dist/domain/manifest/dotenv.js +132 -0
- package/dist/domain/manifest/dotenv.js.map +1 -0
- package/dist/domain/manifest/import-manifest.schema.d.ts +2 -0
- package/dist/domain/manifest/import-manifest.schema.d.ts.map +1 -0
- package/dist/domain/manifest/import-manifest.schema.js +2 -0
- package/dist/domain/manifest/import-manifest.schema.js.map +1 -0
- package/dist/domain/manifest/index.d.ts +4 -0
- package/dist/domain/manifest/index.d.ts.map +1 -0
- package/dist/domain/manifest/index.js +4 -0
- package/dist/domain/manifest/index.js.map +1 -0
- package/dist/domain/manifest/providers.d.ts +31 -0
- package/dist/domain/manifest/providers.d.ts.map +1 -0
- package/dist/domain/manifest/providers.js +123 -0
- package/dist/domain/manifest/providers.js.map +1 -0
- package/dist/domain/requirements/config-requirements.d.ts +18 -0
- package/dist/domain/requirements/config-requirements.d.ts.map +1 -0
- package/dist/domain/requirements/config-requirements.js +115 -0
- package/dist/domain/requirements/config-requirements.js.map +1 -0
- package/dist/domain/requirements/config-walk.d.ts +29 -0
- package/dist/domain/requirements/config-walk.d.ts.map +1 -0
- package/dist/domain/requirements/config-walk.js +138 -0
- package/dist/domain/requirements/config-walk.js.map +1 -0
- package/dist/domain/requirements/index.d.ts +2 -0
- package/dist/domain/requirements/index.d.ts.map +1 -0
- package/dist/domain/requirements/index.js +2 -0
- package/dist/domain/requirements/index.js.map +1 -0
- package/dist/domain/requirements/resolver.d.ts +27 -0
- package/dist/domain/requirements/resolver.d.ts.map +1 -0
- package/dist/domain/requirements/resolver.js +131 -0
- package/dist/domain/requirements/resolver.js.map +1 -0
- package/dist/domain/requirements/schemas/requirements.d.ts +2 -0
- package/dist/domain/requirements/schemas/requirements.d.ts.map +1 -0
- package/dist/domain/requirements/schemas/requirements.js.map +1 -0
- package/dist/domain/secrets.plugin.d.ts +8 -0
- package/dist/domain/secrets.plugin.d.ts.map +1 -0
- package/dist/domain/secrets.plugin.js +62 -0
- package/dist/domain/secrets.plugin.js.map +1 -0
- package/dist/domain/vault/index.d.ts +9 -0
- package/dist/domain/vault/index.d.ts.map +1 -0
- package/dist/domain/vault/index.js +8 -0
- package/dist/domain/vault/index.js.map +1 -0
- package/dist/domain/vault/secret-record.d.ts +14 -0
- package/dist/domain/vault/secret-record.d.ts.map +1 -0
- package/dist/domain/vault/secret-record.js +52 -0
- package/dist/domain/vault/secret-record.js.map +1 -0
- package/dist/domain/vault/secret.transform.d.ts +46 -0
- package/dist/domain/vault/secret.transform.d.ts.map +1 -0
- package/dist/domain/vault/secret.transform.js +54 -0
- package/dist/domain/vault/secret.transform.js.map +1 -0
- package/dist/exec/attempt-audit.d.ts +15 -0
- package/dist/exec/attempt-audit.d.ts.map +1 -0
- package/dist/exec/attempt-audit.js +35 -0
- package/dist/exec/attempt-audit.js.map +1 -0
- package/dist/exec/audit.d.ts +17 -0
- package/dist/exec/audit.d.ts.map +1 -0
- package/dist/exec/audit.js +29 -0
- package/dist/exec/audit.js.map +1 -0
- package/dist/exec/bootstrap.d.ts +14 -0
- package/dist/exec/bootstrap.d.ts.map +1 -0
- package/dist/exec/bootstrap.js +178 -0
- package/dist/exec/bootstrap.js.map +1 -0
- package/dist/exec/credential-leases.d.ts +56 -0
- package/dist/exec/credential-leases.d.ts.map +1 -0
- package/dist/exec/credential-leases.js +170 -0
- package/dist/exec/credential-leases.js.map +1 -0
- package/dist/exec/credential-process.d.ts +12 -0
- package/dist/exec/credential-process.d.ts.map +1 -0
- package/dist/exec/credential-process.js +108 -0
- package/dist/exec/credential-process.js.map +1 -0
- package/dist/exec/index.d.ts +7 -0
- package/dist/exec/index.d.ts.map +1 -0
- package/dist/exec/index.js +7 -0
- package/dist/exec/index.js.map +1 -0
- package/dist/exec/redactor.core.d.ts +7 -0
- package/dist/exec/redactor.core.d.ts.map +1 -0
- package/dist/exec/redactor.core.js +81 -0
- package/dist/exec/redactor.core.js.map +1 -0
- package/dist/exec/redactor.d.ts +3 -0
- package/dist/exec/redactor.d.ts.map +1 -0
- package/dist/exec/redactor.js +11 -0
- package/dist/exec/redactor.js.map +1 -0
- package/dist/exec/spawn-with-credentials.d.ts +62 -0
- package/dist/exec/spawn-with-credentials.d.ts.map +1 -0
- package/dist/exec/spawn-with-credentials.js +145 -0
- package/dist/exec/spawn-with-credentials.js.map +1 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/schemas/backends/bootstrap.schema.d.ts +16 -0
- package/dist/schemas/backends/bootstrap.schema.d.ts.map +1 -0
- package/dist/schemas/backends/bootstrap.schema.js +14 -0
- package/dist/schemas/backends/bootstrap.schema.js.map +1 -0
- package/dist/schemas/backends/host.schema.d.ts +4 -0
- package/dist/schemas/backends/host.schema.d.ts.map +1 -0
- package/dist/schemas/backends/host.schema.js +2 -0
- package/dist/schemas/backends/host.schema.js.map +1 -0
- package/dist/schemas/backends/unseal.schema.d.ts +30 -0
- package/dist/schemas/backends/unseal.schema.d.ts.map +1 -0
- package/dist/schemas/backends/unseal.schema.js +17 -0
- package/dist/schemas/backends/unseal.schema.js.map +1 -0
- package/dist/schemas/backends/vault.schema.d.ts +61 -0
- package/dist/schemas/backends/vault.schema.d.ts.map +1 -0
- package/dist/schemas/backends/vault.schema.js +36 -0
- package/dist/schemas/backends/vault.schema.js.map +1 -0
- package/dist/schemas/cli/commands/check.schema.d.ts +15 -0
- package/dist/schemas/cli/commands/check.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/check.schema.js +11 -0
- package/dist/schemas/cli/commands/check.schema.js.map +1 -0
- package/dist/schemas/cli/commands/exec.schema.d.ts +25 -0
- package/dist/schemas/cli/commands/exec.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/exec.schema.js +15 -0
- package/dist/schemas/cli/commands/exec.schema.js.map +1 -0
- package/dist/schemas/cli/commands/export.schema.d.ts +12 -0
- package/dist/schemas/cli/commands/export.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/export.schema.js +10 -0
- package/dist/schemas/cli/commands/export.schema.js.map +1 -0
- package/dist/schemas/cli/commands/import.schema.d.ts +11 -0
- package/dist/schemas/cli/commands/import.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/import.schema.js +9 -0
- package/dist/schemas/cli/commands/import.schema.js.map +1 -0
- package/dist/schemas/cli/commands/mint.schema.d.ts +30 -0
- package/dist/schemas/cli/commands/mint.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/mint.schema.js +32 -0
- package/dist/schemas/cli/commands/mint.schema.js.map +1 -0
- package/dist/schemas/cli/commands/precommit.schema.d.ts +8 -0
- package/dist/schemas/cli/commands/precommit.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/precommit.schema.js +6 -0
- package/dist/schemas/cli/commands/precommit.schema.js.map +1 -0
- package/dist/schemas/cli/commands/pull.schema.d.ts +14 -0
- package/dist/schemas/cli/commands/pull.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/pull.schema.js +11 -0
- package/dist/schemas/cli/commands/pull.schema.js.map +1 -0
- package/dist/schemas/cli/commands/push.schema.d.ts +16 -0
- package/dist/schemas/cli/commands/push.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/push.schema.js +13 -0
- package/dist/schemas/cli/commands/push.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/list.schema.d.ts +13 -0
- package/dist/schemas/cli/commands/store/list.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/list.schema.js +9 -0
- package/dist/schemas/cli/commands/store/list.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/reveal.schema.d.ts +13 -0
- package/dist/schemas/cli/commands/store/reveal.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/reveal.schema.js +11 -0
- package/dist/schemas/cli/commands/store/reveal.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/set.schema.d.ts +14 -0
- package/dist/schemas/cli/commands/store/set.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/set.schema.js +4 -0
- package/dist/schemas/cli/commands/store/set.schema.js.map +1 -0
- package/dist/schemas/cli/commands/store/unset.schema.d.ts +11 -0
- package/dist/schemas/cli/commands/store/unset.schema.d.ts.map +1 -0
- package/dist/schemas/cli/commands/store/unset.schema.js +9 -0
- package/dist/schemas/cli/commands/store/unset.schema.js.map +1 -0
- package/dist/schemas/cli/exec-request.schema.d.ts +18 -0
- package/dist/schemas/cli/exec-request.schema.d.ts.map +1 -0
- package/dist/schemas/cli/exec-request.schema.js +11 -0
- package/dist/schemas/cli/exec-request.schema.js.map +1 -0
- package/dist/schemas/cli/mint-wire.schema.d.ts +18 -0
- package/dist/schemas/cli/mint-wire.schema.d.ts.map +1 -0
- package/dist/schemas/cli/mint-wire.schema.js +16 -0
- package/dist/schemas/cli/mint-wire.schema.js.map +1 -0
- package/dist/schemas/cli/output.schema.d.ts +8 -0
- package/dist/schemas/cli/output.schema.d.ts.map +1 -0
- package/dist/schemas/cli/output.schema.js +7 -0
- package/dist/schemas/cli/output.schema.js.map +1 -0
- package/dist/schemas/cli/redaction.schema.d.ts +10 -0
- package/dist/schemas/cli/redaction.schema.d.ts.map +1 -0
- package/dist/schemas/cli/redaction.schema.js +9 -0
- package/dist/schemas/cli/redaction.schema.js.map +1 -0
- package/dist/schemas/cli/request.schema.d.ts +26 -0
- package/dist/schemas/cli/request.schema.d.ts.map +1 -0
- package/dist/schemas/cli/request.schema.js +27 -0
- package/dist/schemas/cli/request.schema.js.map +1 -0
- package/dist/schemas/cli/selection.schema.d.ts +4 -0
- package/dist/schemas/cli/selection.schema.d.ts.map +1 -0
- package/dist/schemas/cli/selection.schema.js +2 -0
- package/dist/schemas/cli/selection.schema.js.map +1 -0
- package/dist/schemas/cli/terminal.schema.d.ts +8 -0
- package/dist/schemas/cli/terminal.schema.d.ts.map +1 -0
- package/dist/schemas/cli/terminal.schema.js +7 -0
- package/dist/schemas/cli/terminal.schema.js.map +1 -0
- package/dist/schemas/cli/transfer.schema.d.ts +11 -0
- package/dist/schemas/cli/transfer.schema.d.ts.map +1 -0
- package/dist/schemas/cli/transfer.schema.js +5 -0
- package/dist/schemas/cli/transfer.schema.js.map +1 -0
- package/dist/schemas/discovery/backfill.schema.d.ts +30 -0
- package/dist/schemas/discovery/backfill.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/backfill.schema.js +23 -0
- package/dist/schemas/discovery/backfill.schema.js.map +1 -0
- package/dist/schemas/discovery/check-report.schema.d.ts +19 -0
- package/dist/schemas/discovery/check-report.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/check-report.schema.js +17 -0
- package/dist/schemas/discovery/check-report.schema.js.map +1 -0
- package/dist/schemas/discovery/diagnostics.schema.d.ts +29 -0
- package/dist/schemas/discovery/diagnostics.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/diagnostics.schema.js +21 -0
- package/dist/schemas/discovery/diagnostics.schema.js.map +1 -0
- package/dist/schemas/discovery/dotenv.schema.d.ts +12 -0
- package/dist/schemas/discovery/dotenv.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/dotenv.schema.js +11 -0
- package/dist/schemas/discovery/dotenv.schema.js.map +1 -0
- package/dist/schemas/discovery/drift.schema.d.ts +262 -0
- package/dist/schemas/discovery/drift.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/drift.schema.js +31 -0
- package/dist/schemas/discovery/drift.schema.js.map +1 -0
- package/dist/schemas/discovery/import.schema.d.ts +77 -0
- package/dist/schemas/discovery/import.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/import.schema.js +55 -0
- package/dist/schemas/discovery/import.schema.js.map +1 -0
- package/dist/schemas/discovery/requirements.schema.d.ts +235 -0
- package/dist/schemas/discovery/requirements.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/requirements.schema.js +54 -0
- package/dist/schemas/discovery/requirements.schema.js.map +1 -0
- package/dist/schemas/discovery/runtime.schema.d.ts +83 -0
- package/dist/schemas/discovery/runtime.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/runtime.schema.js +20 -0
- package/dist/schemas/discovery/runtime.schema.js.map +1 -0
- package/dist/schemas/discovery/scan.schema.d.ts +13 -0
- package/dist/schemas/discovery/scan.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/scan.schema.js +8 -0
- package/dist/schemas/discovery/scan.schema.js.map +1 -0
- package/dist/schemas/discovery/signatures.schema.d.ts +14 -0
- package/dist/schemas/discovery/signatures.schema.d.ts.map +1 -0
- package/dist/schemas/discovery/signatures.schema.js +12 -0
- package/dist/schemas/discovery/signatures.schema.js.map +1 -0
- package/dist/schemas/domain/attestation/attestation.schema.d.ts +30 -0
- package/dist/schemas/domain/attestation/attestation.schema.d.ts.map +1 -0
- package/dist/schemas/domain/attestation/attestation.schema.js +14 -0
- package/dist/schemas/domain/attestation/attestation.schema.js.map +1 -0
- package/dist/schemas/domain/attestation/provider.schema.d.ts +29 -0
- package/dist/schemas/domain/attestation/provider.schema.d.ts.map +1 -0
- package/dist/schemas/domain/attestation/provider.schema.js +18 -0
- package/dist/schemas/domain/attestation/provider.schema.js.map +1 -0
- package/dist/schemas/domain/config.schema.d.ts +6 -0
- package/dist/schemas/domain/config.schema.d.ts.map +1 -0
- package/dist/schemas/domain/config.schema.js +5 -0
- package/dist/schemas/domain/config.schema.js.map +1 -0
- package/dist/schemas/domain/store/store.schema.d.ts +82 -0
- package/dist/schemas/domain/store/store.schema.d.ts.map +1 -0
- package/dist/schemas/domain/store/store.schema.js +68 -0
- package/dist/schemas/domain/store/store.schema.js.map +1 -0
- package/dist/schemas/domain/store/store.types.d.ts +63 -0
- package/dist/schemas/domain/store/store.types.d.ts.map +1 -0
- package/dist/schemas/domain/store/store.types.js +25 -0
- package/dist/schemas/domain/store/store.types.js.map +1 -0
- package/dist/schemas/domain/testing/filesystem.schema.d.ts +39 -0
- package/dist/schemas/domain/testing/filesystem.schema.d.ts.map +1 -0
- package/dist/schemas/domain/testing/filesystem.schema.js +2 -0
- package/dist/schemas/domain/testing/filesystem.schema.js.map +1 -0
- package/dist/schemas/execution/audit.schema.d.ts +44 -0
- package/dist/schemas/execution/audit.schema.d.ts.map +1 -0
- package/dist/schemas/execution/audit.schema.js +29 -0
- package/dist/schemas/execution/audit.schema.js.map +1 -0
- package/dist/schemas/execution/bootstrap.schema.d.ts +79 -0
- package/dist/schemas/execution/bootstrap.schema.d.ts.map +1 -0
- package/dist/schemas/execution/bootstrap.schema.js +45 -0
- package/dist/schemas/execution/bootstrap.schema.js.map +1 -0
- package/dist/schemas/execution/environment.schema.d.ts +17 -0
- package/dist/schemas/execution/environment.schema.d.ts.map +1 -0
- package/dist/schemas/execution/environment.schema.js +10 -0
- package/dist/schemas/execution/environment.schema.js.map +1 -0
- package/dist/schemas/execution/leverage.schema.d.ts +17 -0
- package/dist/schemas/execution/leverage.schema.d.ts.map +1 -0
- package/dist/schemas/execution/leverage.schema.js +11 -0
- package/dist/schemas/execution/leverage.schema.js.map +1 -0
- package/dist/schemas/execution/prepared.schema.d.ts +28 -0
- package/dist/schemas/execution/prepared.schema.d.ts.map +1 -0
- package/dist/schemas/execution/prepared.schema.js +8 -0
- package/dist/schemas/execution/prepared.schema.js.map +1 -0
- package/dist/schemas/execution/redactor.schema.d.ts +7 -0
- package/dist/schemas/execution/redactor.schema.d.ts.map +1 -0
- package/dist/schemas/execution/redactor.schema.js +6 -0
- package/dist/schemas/execution/redactor.schema.js.map +1 -0
- package/dist/schemas/execution/result.schema.d.ts +55 -0
- package/dist/schemas/execution/result.schema.d.ts.map +1 -0
- package/dist/schemas/execution/result.schema.js +21 -0
- package/dist/schemas/execution/result.schema.js.map +1 -0
- package/dist/schemas/execution/spawn.schema.d.ts +218 -0
- package/dist/schemas/execution/spawn.schema.d.ts.map +1 -0
- package/dist/schemas/execution/spawn.schema.js +52 -0
- package/dist/schemas/execution/spawn.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +11 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/managed/account-client.schema.d.ts +218 -0
- package/dist/schemas/managed/account-client.schema.d.ts.map +1 -0
- package/dist/schemas/managed/account-client.schema.js +31 -0
- package/dist/schemas/managed/account-client.schema.js.map +1 -0
- package/dist/schemas/managed/managed-handle.schema.d.ts +16 -0
- package/dist/schemas/managed/managed-handle.schema.d.ts.map +1 -0
- package/dist/schemas/managed/managed-handle.schema.js +5 -0
- package/dist/schemas/managed/managed-handle.schema.js.map +1 -0
- package/dist/schemas/managed/managed-record.schema.d.ts +148 -0
- package/dist/schemas/managed/managed-record.schema.d.ts.map +1 -0
- package/dist/schemas/managed/managed-record.schema.js +53 -0
- package/dist/schemas/managed/managed-record.schema.js.map +1 -0
- package/dist/schemas/managed/secret.schema.d.ts +261 -0
- package/dist/schemas/managed/secret.schema.d.ts.map +1 -0
- package/dist/schemas/managed/secret.schema.js +114 -0
- package/dist/schemas/managed/secret.schema.js.map +1 -0
- package/dist/schemas/transport/authenticated-request.schema.d.ts +528 -0
- package/dist/schemas/transport/authenticated-request.schema.d.ts.map +1 -0
- package/dist/schemas/transport/authenticated-request.schema.js +78 -0
- package/dist/schemas/transport/authenticated-request.schema.js.map +1 -0
- package/dist/schemas/transport/body.schema.d.ts +7 -0
- package/dist/schemas/transport/body.schema.d.ts.map +1 -0
- package/dist/schemas/transport/body.schema.js +6 -0
- package/dist/schemas/transport/body.schema.js.map +1 -0
- package/dist/schemas/transport/credential-use.schema.d.ts +200 -0
- package/dist/schemas/transport/credential-use.schema.d.ts.map +1 -0
- package/dist/schemas/transport/credential-use.schema.js +64 -0
- package/dist/schemas/transport/credential-use.schema.js.map +1 -0
- package/dist/schemas/transport/file.schema.d.ts +6 -0
- package/dist/schemas/transport/file.schema.d.ts.map +1 -0
- package/dist/schemas/transport/file.schema.js +5 -0
- package/dist/schemas/transport/file.schema.js.map +1 -0
- package/dist/schemas/transport/header.schema.d.ts +17 -0
- package/dist/schemas/transport/header.schema.d.ts.map +1 -0
- package/dist/schemas/transport/header.schema.js +13 -0
- package/dist/schemas/transport/header.schema.js.map +1 -0
- package/dist/schemas/transport/json.schema.d.ts +10 -0
- package/dist/schemas/transport/json.schema.d.ts.map +1 -0
- package/dist/schemas/transport/json.schema.js +2 -0
- package/dist/schemas/transport/json.schema.js.map +1 -0
- package/dist/schemas/transport/outcome.schema.d.ts +10 -0
- package/dist/schemas/transport/outcome.schema.d.ts.map +1 -0
- package/dist/schemas/transport/outcome.schema.js +2 -0
- package/dist/schemas/transport/outcome.schema.js.map +1 -0
- package/dist/schemas/transport/url.schema.d.ts +24 -0
- package/dist/schemas/transport/url.schema.d.ts.map +1 -0
- package/dist/schemas/transport/url.schema.js +20 -0
- package/dist/schemas/transport/url.schema.js.map +1 -0
- package/dist/schemas/ui/reveal.schema.d.ts +25 -0
- package/dist/schemas/ui/reveal.schema.d.ts.map +1 -0
- package/dist/schemas/ui/reveal.schema.js +17 -0
- package/dist/schemas/ui/reveal.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/form.schema.d.ts +70 -0
- package/dist/schemas/ui/svelte/form.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/form.schema.js +15 -0
- package/dist/schemas/ui/svelte/form.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/layout.schema.d.ts +128 -0
- package/dist/schemas/ui/svelte/layout.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/layout.schema.js +29 -0
- package/dist/schemas/ui/svelte/layout.schema.js.map +1 -0
- package/dist/schemas/ui/svelte/state.schema.d.ts +59 -0
- package/dist/schemas/ui/svelte/state.schema.d.ts.map +1 -0
- package/dist/schemas/ui/svelte/state.schema.js +13 -0
- package/dist/schemas/ui/svelte/state.schema.js.map +1 -0
- package/dist/schemas/ui/tui/list.schema.d.ts +45 -0
- package/dist/schemas/ui/tui/list.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/list.schema.js +23 -0
- package/dist/schemas/ui/tui/list.schema.js.map +1 -0
- package/dist/schemas/ui/tui/metadata.schema.d.ts +20 -0
- package/dist/schemas/ui/tui/metadata.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/metadata.schema.js +7 -0
- package/dist/schemas/ui/tui/metadata.schema.js.map +1 -0
- package/dist/schemas/ui/tui/pane.schema.d.ts +24 -0
- package/dist/schemas/ui/tui/pane.schema.d.ts.map +1 -0
- package/dist/schemas/ui/tui/pane.schema.js +11 -0
- package/dist/schemas/ui/tui/pane.schema.js.map +1 -0
- package/dist/support/credential-signatures.d.ts +17 -0
- package/dist/support/credential-signatures.d.ts.map +1 -0
- package/dist/support/credential-signatures.js +58 -0
- package/dist/support/credential-signatures.js.map +1 -0
- package/dist/support/environment.d.ts +19 -0
- package/dist/support/environment.d.ts.map +1 -0
- package/dist/support/environment.js +28 -0
- package/dist/support/environment.js.map +1 -0
- package/dist/support/file-failure.d.ts +16 -0
- package/dist/support/file-failure.d.ts.map +1 -0
- package/dist/support/file-failure.js +38 -0
- package/dist/support/file-failure.js.map +1 -0
- package/dist/support/path-queue.d.ts +11 -0
- package/dist/support/path-queue.d.ts.map +1 -0
- package/dist/support/path-queue.js +31 -0
- package/dist/support/path-queue.js.map +1 -0
- package/dist/support/runtime-resolver.d.ts +25 -0
- package/dist/support/runtime-resolver.d.ts.map +1 -0
- package/dist/support/runtime-resolver.js +33 -0
- package/dist/support/runtime-resolver.js.map +1 -0
- package/dist/support/secret-value.d.ts +20 -0
- package/dist/support/secret-value.d.ts.map +1 -0
- package/dist/support/secret-value.js +49 -0
- package/dist/support/secret-value.js.map +1 -0
- package/dist/support/store-environment.d.ts +10 -0
- package/dist/support/store-environment.d.ts.map +1 -0
- package/dist/support/store-environment.js +20 -0
- package/dist/support/store-environment.js.map +1 -0
- package/dist/support/test-support/adapter-runtime.d.ts +4 -0
- package/dist/support/test-support/adapter-runtime.d.ts.map +1 -0
- package/dist/support/test-support/adapter-runtime.js +19 -0
- package/dist/support/test-support/adapter-runtime.js.map +1 -0
- package/dist/support/test-support/filesystem-descriptor.d.ts +19 -0
- package/dist/support/test-support/filesystem-descriptor.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-descriptor.js +46 -0
- package/dist/support/test-support/filesystem-descriptor.js.map +1 -0
- package/dist/support/test-support/filesystem-double.d.ts +41 -0
- package/dist/support/test-support/filesystem-double.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-double.js +196 -0
- package/dist/support/test-support/filesystem-double.js.map +1 -0
- package/dist/support/test-support/filesystem-paths.d.ts +3 -0
- package/dist/support/test-support/filesystem-paths.d.ts.map +1 -0
- package/dist/support/test-support/filesystem-paths.js +44 -0
- package/dist/support/test-support/filesystem-paths.js.map +1 -0
- package/dist/support/test-support/path-mechanics.d.ts +6 -0
- package/dist/support/test-support/path-mechanics.d.ts.map +1 -0
- package/dist/support/test-support/path-mechanics.js +31 -0
- package/dist/support/test-support/path-mechanics.js.map +1 -0
- package/dist/support/test-support/private-files.d.ts +3 -0
- package/dist/support/test-support/private-files.d.ts.map +1 -0
- package/dist/support/test-support/private-files.js +52 -0
- package/dist/support/test-support/private-files.js.map +1 -0
- package/dist/support/test-support/register-adapter.d.ts +5 -0
- package/dist/support/test-support/register-adapter.d.ts.map +1 -0
- package/dist/support/test-support/register-adapter.js +20 -0
- package/dist/support/test-support/register-adapter.js.map +1 -0
- package/dist/support/test-support/stub-fetch.d.ts +13 -0
- package/dist/support/test-support/stub-fetch.d.ts.map +1 -0
- package/dist/support/test-support/stub-fetch.js +17 -0
- package/dist/support/test-support/stub-fetch.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec-input.d.ts +39 -0
- package/dist/surfaces/cli/commands/exec/exec-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec-input.js +116 -0
- package/dist/surfaces/cli/commands/exec/exec-input.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.d.ts +57 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.js +66 -0
- package/dist/surfaces/cli/commands/exec/exec.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.d.ts +33 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.js +110 -0
- package/dist/surfaces/cli/commands/exec/exec.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.d.ts +47 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.js +82 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-diagnostics.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.d.ts +16 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.js +57 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-drift.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.d.ts +11 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.js +54 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-json.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.d.ts +12 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.js +100 -0
- package/dist/surfaces/cli/commands/maintenance/check/check-report.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.d.ts +10 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/schemas/check-result.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.js +27 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.d.ts +11 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.js +132 -0
- package/dist/surfaces/cli/commands/maintenance/check/secrets.check.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.d.ts +30 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.js +57 -0
- package/dist/surfaces/cli/commands/maintenance/check/store-availability.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.js +23 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.js +113 -0
- package/dist/surfaces/cli/commands/maintenance/export/secrets.export.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.js +171 -0
- package/dist/surfaces/cli/commands/maintenance/import/secrets.import.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.d.ts +4 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.js +16 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.d.ts +16 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.js +32 -0
- package/dist/surfaces/cli/commands/maintenance/pre-commit/secrets.precommit.cli-command.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.js +20 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.d.ts +17 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.js +41 -0
- package/dist/surfaces/cli/commands/maintenance/pull/secrets.pull.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.js +22 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.d.ts +20 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.js +93 -0
- package/dist/surfaces/cli/commands/maintenance/push/secrets.push.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.d.ts +8 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.js +47 -0
- package/dist/surfaces/cli/commands/maintenance/unset/secrets.unset.cli-command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.d.ts +23 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.js +60 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-input.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.d.ts +14 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.js +30 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-response.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.d.ts +28 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.js +76 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-storage.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.d.ts +20 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.js +57 -0
- package/dist/surfaces/cli/commands/oauth-client/mint-transport.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.d.ts +59 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.js +66 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.d.ts +27 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.js +136 -0
- package/dist/surfaces/cli/commands/oauth-client/mint.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.d.ts +8 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.js +17 -0
- package/dist/surfaces/cli/commands/oauth-client/oauth-client.cli-group.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request-http.d.ts +31 -0
- package/dist/surfaces/cli/commands/request/request-http.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request-http.js +78 -0
- package/dist/surfaces/cli/commands/request/request-http.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request-input.d.ts +12 -0
- package/dist/surfaces/cli/commands/request/request-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request-input.js +93 -0
- package/dist/surfaces/cli/commands/request/request-input.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.d.ts +71 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.js +61 -0
- package/dist/surfaces/cli/commands/request/request.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.d.ts +11 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.js +135 -0
- package/dist/surfaces/cli/commands/request/request.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.d.ts +18 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.js +24 -0
- package/dist/surfaces/cli/commands/store/reveal-audit.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.d.ts +42 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.js +38 -0
- package/dist/surfaces/cli/commands/store/reveal.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.d.ts +10 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.js +147 -0
- package/dist/surfaces/cli/commands/store/reveal.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.d.ts +45 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.js +46 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.d.ts +9 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.js +128 -0
- package/dist/surfaces/cli/commands/store/secrets.list.command.impl.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set-input.d.ts +13 -0
- package/dist/surfaces/cli/commands/store/set-input.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set-input.js +66 -0
- package/dist/surfaces/cli/commands/store/set-input.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.d.ts +48 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.js +51 -0
- package/dist/surfaces/cli/commands/store/set.command.descriptor.js.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.d.ts +10 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.d.ts.map +1 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.js +100 -0
- package/dist/surfaces/cli/commands/store/set.command.impl.js.map +1 -0
- package/dist/surfaces/cli/environment.d.ts +7 -0
- package/dist/surfaces/cli/environment.d.ts.map +1 -0
- package/dist/surfaces/cli/environment.js +7 -0
- package/dist/surfaces/cli/environment.js.map +1 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.d.ts +40 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.d.ts.map +1 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.js +99 -0
- package/dist/surfaces/cli/hooks/pre-commit-secrets.js.map +1 -0
- package/dist/surfaces/cli/index.d.ts +17 -0
- package/dist/surfaces/cli/index.d.ts.map +1 -0
- package/dist/surfaces/cli/index.js +17 -0
- package/dist/surfaces/cli/index.js.map +1 -0
- package/dist/surfaces/cli/plugin.d.ts +27 -0
- package/dist/surfaces/cli/plugin.d.ts.map +1 -0
- package/dist/surfaces/cli/plugin.js +88 -0
- package/dist/surfaces/cli/plugin.js.map +1 -0
- package/dist/surfaces/cli/secrets-group.descriptor.d.ts +17 -0
- package/dist/surfaces/cli/secrets-group.descriptor.d.ts.map +1 -0
- package/dist/surfaces/cli/secrets-group.descriptor.js +25 -0
- package/dist/surfaces/cli/secrets-group.descriptor.js.map +1 -0
- package/dist/surfaces/cli/shared/app-target.d.ts +14 -0
- package/dist/surfaces/cli/shared/app-target.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/app-target.js +28 -0
- package/dist/surfaces/cli/shared/app-target.js.map +1 -0
- package/dist/surfaces/cli/shared/output/command-output.d.ts +14 -0
- package/dist/surfaces/cli/shared/output/command-output.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/command-output.js +21 -0
- package/dist/surfaces/cli/shared/output/command-output.js.map +1 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.d.ts +29 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.js +116 -0
- package/dist/surfaces/cli/shared/output/payload-redaction.js.map +1 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.d.ts +17 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.js +12 -0
- package/dist/surfaces/cli/shared/output/terminal-facts.js.map +1 -0
- package/dist/surfaces/cli/shared/output/ui-context.d.ts +10 -0
- package/dist/surfaces/cli/shared/output/ui-context.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/output/ui-context.js +28 -0
- package/dist/surfaces/cli/shared/output/ui-context.js.map +1 -0
- package/dist/surfaces/cli/shared/parse-options.d.ts +9 -0
- package/dist/surfaces/cli/shared/parse-options.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/parse-options.js +20 -0
- package/dist/surfaces/cli/shared/parse-options.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.d.ts +23 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.js +116 -0
- package/dist/surfaces/cli/shared/stores/drift-backfill.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.d.ts +27 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.js +157 -0
- package/dist/surfaces/cli/shared/stores/drift-fingerprints.impl.consumer.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.d.ts +16 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.js +24 -0
- package/dist/surfaces/cli/shared/stores/drift-forget.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.d.ts +56 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.js +132 -0
- package/dist/surfaces/cli/shared/stores/leverage-shared.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-selection.d.ts +39 -0
- package/dist/surfaces/cli/shared/stores/store-selection.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-selection.js +79 -0
- package/dist/surfaces/cli/shared/stores/store-selection.js.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.d.ts +42 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.d.ts.map +1 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.js +96 -0
- package/dist/surfaces/cli/shared/stores/store-transfer.js.map +1 -0
- package/dist/surfaces/svelte/account/account-errors.d.ts +10 -0
- package/dist/surfaces/svelte/account/account-errors.d.ts.map +1 -0
- package/dist/surfaces/svelte/account/account-errors.js +45 -0
- package/dist/surfaces/svelte/account/account-transport.d.ts +10 -0
- package/dist/surfaces/svelte/account/account-transport.d.ts.map +1 -0
- package/dist/surfaces/svelte/account/account-transport.js +112 -0
- package/dist/surfaces/svelte/client/runtime.d.ts +12 -0
- package/dist/surfaces/svelte/client/runtime.d.ts.map +1 -0
- package/dist/surfaces/svelte/client/runtime.js +107 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte +181 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte.d.ts +13 -0
- package/dist/surfaces/svelte/components/RevealSecretDialog.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte +117 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte.d.ts +16 -0
- package/dist/surfaces/svelte/components/RotateSecretButton.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte +177 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte.d.ts +13 -0
- package/dist/surfaces/svelte/components/SecretEditor.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte +190 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte.d.ts +48 -0
- package/dist/surfaces/svelte/components/SecretForm.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte +141 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte.d.ts +28 -0
- package/dist/surfaces/svelte/components/SecretRevealButton.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte +59 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte.d.ts +10 -0
- package/dist/surfaces/svelte/components/SecretRotateDialog.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte +122 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte.d.ts +24 -0
- package/dist/surfaces/svelte/components/SecretsList.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte +72 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte.d.ts +36 -0
- package/dist/surfaces/svelte/components/SecretsLoader.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/index.d.ts +32 -0
- package/dist/surfaces/svelte/index.d.ts.map +1 -0
- package/dist/surfaces/svelte/index.js +30 -0
- package/dist/surfaces/svelte/loaders.d.ts +47 -0
- package/dist/surfaces/svelte/loaders.d.ts.map +1 -0
- package/dist/surfaces/svelte/loaders.js +64 -0
- package/dist/surfaces/svelte/state-context.d.ts +6 -0
- package/dist/surfaces/svelte/state-context.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-context.js +19 -0
- package/dist/surfaces/svelte/state-owner.d.ts +173 -0
- package/dist/surfaces/svelte/state-owner.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-owner.js +49 -0
- package/dist/surfaces/svelte/state-reader.svelte.d.ts +59 -0
- package/dist/surfaces/svelte/state-reader.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/state-reader.svelte.js +176 -0
- package/dist/surfaces/svelte/state.svelte.d.ts +30 -0
- package/dist/surfaces/svelte/state.svelte.d.ts.map +1 -0
- package/dist/surfaces/svelte/state.svelte.js +121 -0
- package/dist/surfaces/svelte/styles.css +8 -0
- package/dist/surfaces/tui/components/InspectorNotices.d.ts +12 -0
- package/dist/surfaces/tui/components/InspectorNotices.d.ts.map +1 -0
- package/dist/surfaces/tui/components/InspectorNotices.js +17 -0
- package/dist/surfaces/tui/components/InspectorNotices.js.map +1 -0
- package/dist/surfaces/tui/components/RevealPane.d.ts +41 -0
- package/dist/surfaces/tui/components/RevealPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/RevealPane.js +35 -0
- package/dist/surfaces/tui/components/RevealPane.js.map +1 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.d.ts +5 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.js +30 -0
- package/dist/surfaces/tui/components/SecretMetadataPane.js.map +1 -0
- package/dist/surfaces/tui/components/SecretsListPane.d.ts +5 -0
- package/dist/surfaces/tui/components/SecretsListPane.d.ts.map +1 -0
- package/dist/surfaces/tui/components/SecretsListPane.js +34 -0
- package/dist/surfaces/tui/components/SecretsListPane.js.map +1 -0
- package/dist/surfaces/tui/components/useInspectorKeys.d.ts +16 -0
- package/dist/surfaces/tui/components/useInspectorKeys.d.ts.map +1 -0
- package/dist/surfaces/tui/components/useInspectorKeys.js +63 -0
- package/dist/surfaces/tui/components/useInspectorKeys.js.map +1 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.d.ts +29 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.d.ts.map +1 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.js +101 -0
- package/dist/surfaces/tui/components/useRevealLifecycle.js.map +1 -0
- package/dist/surfaces/tui/index.d.ts +13 -0
- package/dist/surfaces/tui/index.d.ts.map +1 -0
- package/dist/surfaces/tui/index.js +12 -0
- package/dist/surfaces/tui/index.js.map +1 -0
- package/dist/surfaces/tui/secrets-tui.plugin.d.ts +18 -0
- package/dist/surfaces/tui/secrets-tui.plugin.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets-tui.plugin.js +42 -0
- package/dist/surfaces/tui/secrets-tui.plugin.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.d.ts +16 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.js +31 -0
- package/dist/surfaces/tui/secrets.tui-app.descriptor.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.d.ts +4 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.js +115 -0
- package/dist/surfaces/tui/secrets.tui-app.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.d.ts +20 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.js +29 -0
- package/dist/surfaces/tui/secrets.tui-open.descriptor.js.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.d.ts +9 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.js +13 -0
- package/dist/surfaces/tui/secrets.tui-open.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/state/list-loading.d.ts +4 -0
- package/dist/surfaces/tui/state/list-loading.d.ts.map +1 -0
- package/dist/surfaces/tui/state/list-loading.js +79 -0
- package/dist/surfaces/tui/state/list-loading.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.d.ts +21 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.js +42 -0
- package/dist/surfaces/tui/state/secrets.tui-state.descriptor.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.d.ts +5 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.js +62 -0
- package/dist/surfaces/tui/state/secrets.tui-state.impl.consumer.js.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.d.ts +19 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.d.ts.map +1 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.js +10 -0
- package/dist/surfaces/tui/state/secrets.tui-state.key.js.map +1 -0
- package/dist/transport/bounded-body.d.ts +17 -0
- package/dist/transport/bounded-body.d.ts.map +1 -0
- package/dist/transport/bounded-body.js +56 -0
- package/dist/transport/bounded-body.js.map +1 -0
- package/dist/transport/header-value.d.ts +12 -0
- package/dist/transport/header-value.d.ts.map +1 -0
- package/dist/transport/header-value.js +43 -0
- package/dist/transport/header-value.js.map +1 -0
- package/dist/transport/host-file.d.ts +14 -0
- package/dist/transport/host-file.d.ts.map +1 -0
- package/dist/transport/host-file.js +93 -0
- package/dist/transport/host-file.js.map +1 -0
- package/dist/transport/index.d.ts +14 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +14 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/json-body.d.ts +5 -0
- package/dist/transport/json-body.d.ts.map +1 -0
- package/dist/transport/json-body.js +23 -0
- package/dist/transport/json-body.js.map +1 -0
- package/dist/transport/secure-url.d.ts +24 -0
- package/dist/transport/secure-url.d.ts.map +1 -0
- package/dist/transport/secure-url.js +67 -0
- package/dist/transport/secure-url.js.map +1 -0
- package/dist/transport/text.d.ts +10 -0
- package/dist/transport/text.d.ts.map +1 -0
- package/dist/transport/text.js +28 -0
- package/dist/transport/text.js.map +1 -0
- package/docs/contracts.md +94 -0
- package/package.json +363 -65
- package/dist/cli/check/schemas/check-result.d.ts +0 -9
- package/dist/cli/check/schemas/check-result.d.ts.map +0 -1
- package/dist/cli/check/schemas/check-result.js.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.descriptor.js +0 -19
- package/dist/cli/check/secrets.check.cli-command.descriptor.js.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.impl.d.ts +0 -5
- package/dist/cli/check/secrets.check.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/check/secrets.check.cli-command.impl.js +0 -135
- package/dist/cli/check/secrets.check.cli-command.impl.js.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.descriptor.js +0 -20
- package/dist/cli/export/secrets.export.cli-command.descriptor.js.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.impl.d.ts +0 -5
- package/dist/cli/export/secrets.export.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/export/secrets.export.cli-command.impl.js +0 -104
- package/dist/cli/export/secrets.export.cli-command.impl.js.map +0 -1
- package/dist/cli/hooks/pre-commit-secrets.d.ts +0 -2
- package/dist/cli/hooks/pre-commit-secrets.d.ts.map +0 -1
- package/dist/cli/hooks/pre-commit-secrets.js +0 -68
- package/dist/cli/hooks/pre-commit-secrets.js.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.descriptor.js.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.impl.d.ts +0 -5
- package/dist/cli/import/secrets.import.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/import/secrets.import.cli-command.impl.js +0 -155
- package/dist/cli/import/secrets.import.cli-command.impl.js.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/list/secrets.list.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.descriptor.js +0 -18
- package/dist/cli/list/secrets.list.cli-command.descriptor.js.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.impl.d.ts +0 -5
- package/dist/cli/list/secrets.list.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/list/secrets.list.cli-command.impl.js +0 -61
- package/dist/cli/list/secrets.list.cli-command.impl.js.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.js +0 -16
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.js.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.d.ts +0 -5
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.js +0 -10
- package/dist/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.js.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.js +0 -20
- package/dist/cli/pull/secrets.pull.cli-command.descriptor.js.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.impl.d.ts +0 -5
- package/dist/cli/pull/secrets.pull.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/pull/secrets.pull.cli-command.impl.js +0 -76
- package/dist/cli/pull/secrets.pull.cli-command.impl.js.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.descriptor.js +0 -22
- package/dist/cli/push/secrets.push.cli-command.descriptor.js.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.impl.d.ts +0 -5
- package/dist/cli/push/secrets.push.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/push/secrets.push.cli-command.impl.js +0 -109
- package/dist/cli/push/secrets.push.cli-command.impl.js.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.js +0 -19
- package/dist/cli/reveal/secrets.reveal.cli-command.descriptor.js.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.d.ts +0 -5
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.js +0 -85
- package/dist/cli/reveal/secrets.reveal.cli-command.impl.js.map +0 -1
- package/dist/cli/secrets.cli-group.descriptor.d.ts +0 -4
- package/dist/cli/secrets.cli-group.descriptor.d.ts.map +0 -1
- package/dist/cli/secrets.cli-group.descriptor.js +0 -11
- package/dist/cli/secrets.cli-group.descriptor.js.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.descriptor.d.ts +0 -4
- package/dist/cli/set/secrets.set.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.descriptor.js +0 -21
- package/dist/cli/set/secrets.set.cli-command.descriptor.js.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.impl.d.ts +0 -5
- package/dist/cli/set/secrets.set.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/set/secrets.set.cli-command.impl.js +0 -59
- package/dist/cli/set/secrets.set.cli-command.impl.js.map +0 -1
- package/dist/cli/shared/resolve-environment.d.ts +0 -14
- package/dist/cli/shared/resolve-environment.d.ts.map +0 -1
- package/dist/cli/shared/resolve-environment.js +0 -45
- package/dist/cli/shared/resolve-environment.js.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.descriptor.d.ts.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.descriptor.js.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.impl.d.ts +0 -5
- package/dist/cli/unset/secrets.unset.cli-command.impl.d.ts.map +0 -1
- package/dist/cli/unset/secrets.unset.cli-command.impl.js +0 -31
- package/dist/cli/unset/secrets.unset.cli-command.impl.js.map +0 -1
- package/dist/kinds/index.d.ts +0 -4
- package/dist/kinds/index.d.ts.map +0 -1
- package/dist/kinds/index.js +0 -3
- package/dist/kinds/index.js.map +0 -1
- package/dist/kinds/schemas/store.schema.d.ts +0 -49
- package/dist/kinds/schemas/store.schema.d.ts.map +0 -1
- package/dist/kinds/schemas/store.schema.js +0 -34
- package/dist/kinds/schemas/store.schema.js.map +0 -1
- package/dist/kinds/schemas/store.types.d.ts +0 -28
- package/dist/kinds/schemas/store.types.d.ts.map +0 -1
- package/dist/kinds/schemas/store.types.js.map +0 -1
- package/dist/kinds/store.interface.d.ts +0 -2
- package/dist/kinds/store.interface.d.ts.map +0 -1
- package/dist/kinds/store.interface.js.map +0 -1
- package/dist/kinds/store.kind.d.ts +0 -10
- package/dist/kinds/store.kind.d.ts.map +0 -1
- package/dist/kinds/store.kind.js +0 -36
- package/dist/kinds/store.kind.js.map +0 -1
- package/dist/kinds/store.schema.d.ts +0 -2
- package/dist/kinds/store.schema.d.ts.map +0 -1
- package/dist/kinds/store.schema.js +0 -2
- package/dist/kinds/store.schema.js.map +0 -1
- package/dist/manifest/canonical.d.ts +0 -30
- package/dist/manifest/canonical.d.ts.map +0 -1
- package/dist/manifest/canonical.js +0 -313
- package/dist/manifest/canonical.js.map +0 -1
- package/dist/manifest/import-manifest.schema.d.ts +0 -77
- package/dist/manifest/import-manifest.schema.d.ts.map +0 -1
- package/dist/manifest/import-manifest.schema.js +0 -55
- package/dist/manifest/import-manifest.schema.js.map +0 -1
- package/dist/manifest/index.d.ts +0 -3
- package/dist/manifest/index.d.ts.map +0 -1
- package/dist/manifest/index.js +0 -3
- package/dist/manifest/index.js.map +0 -1
- package/dist/requirements/index.d.ts +0 -2
- package/dist/requirements/index.d.ts.map +0 -1
- package/dist/requirements/index.js +0 -2
- package/dist/requirements/index.js.map +0 -1
- package/dist/requirements/resolver.d.ts +0 -52
- package/dist/requirements/resolver.d.ts.map +0 -1
- package/dist/requirements/resolver.js +0 -196
- package/dist/requirements/resolver.js.map +0 -1
- package/dist/requirements/schemas/requirements.d.ts +0 -27
- package/dist/requirements/schemas/requirements.d.ts.map +0 -1
- package/dist/requirements/schemas/requirements.js.map +0 -1
- package/dist/secrets.plugin.d.ts +0 -8
- package/dist/secrets.plugin.d.ts.map +0 -1
- package/dist/secrets.plugin.js +0 -59
- package/dist/secrets.plugin.js.map +0 -1
- package/src/cli/check/schemas/check-result.ts +0 -8
- package/src/cli/check/secrets.check.cli-command.descriptor.ts +0 -21
- package/src/cli/check/secrets.check.cli-command.impl.ts +0 -163
- package/src/cli/export/secrets.export.cli-command.descriptor.ts +0 -22
- package/src/cli/export/secrets.export.cli-command.impl.ts +0 -139
- package/src/cli/hooks/pre-commit-secrets.ts +0 -73
- package/src/cli/import/secrets.import.cli-command.descriptor.ts +0 -21
- package/src/cli/import/secrets.import.cli-command.impl.ts +0 -178
- package/src/cli/list/secrets.list.cli-command.descriptor.ts +0 -21
- package/src/cli/list/secrets.list.cli-command.impl.ts +0 -79
- package/src/cli/pre-commit/secrets.pre-commit-check.cli-command.descriptor.ts +0 -18
- package/src/cli/pre-commit/secrets.pre-commit-check.cli-command.impl.ts +0 -11
- package/src/cli/pull/secrets.pull.cli-command.descriptor.ts +0 -22
- package/src/cli/pull/secrets.pull.cli-command.impl.ts +0 -103
- package/src/cli/push/secrets.push.cli-command.descriptor.ts +0 -24
- package/src/cli/push/secrets.push.cli-command.impl.ts +0 -149
- package/src/cli/reveal/secrets.reveal.cli-command.descriptor.ts +0 -21
- package/src/cli/reveal/secrets.reveal.cli-command.impl.ts +0 -108
- package/src/cli/secrets.cli-group.descriptor.ts +0 -13
- package/src/cli/set/secrets.set.cli-command.descriptor.ts +0 -23
- package/src/cli/set/secrets.set.cli-command.impl.ts +0 -77
- package/src/cli/shared/resolve-environment.ts +0 -57
- package/src/cli/unset/secrets.unset.cli-command.descriptor.ts +0 -22
- package/src/cli/unset/secrets.unset.cli-command.impl.ts +0 -41
- package/src/docs/backends.docs.descriptor.ts +0 -151
- package/src/docs/encryption.docs.descriptor.ts +0 -165
- package/src/docs/env-file.docs.descriptor.ts +0 -209
- package/src/index.ts +0 -35
- package/src/kinds/index.ts +0 -12
- package/src/kinds/schemas/store.schema.ts +0 -47
- package/src/kinds/schemas/store.types.ts +0 -35
- package/src/kinds/store.interface.ts +0 -1
- package/src/kinds/store.kind.ts +0 -52
- package/src/kinds/store.schema.ts +0 -8
- package/src/manifest/canonical.ts +0 -324
- package/src/manifest/import-manifest.schema.ts +0 -63
- package/src/manifest/index.ts +0 -12
- package/src/requirements/index.ts +0 -6
- package/src/requirements/resolver.ts +0 -216
- package/src/requirements/schemas/requirements.ts +0 -29
- package/src/secrets.plugin.ts +0 -65
- /package/dist/{kinds → domain/kinds}/schemas/store.types.js +0 -0
- /package/dist/{kinds → domain/kinds}/store.interface.js +0 -0
- /package/dist/{requirements → domain/requirements}/schemas/requirements.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/check/schemas/check-result.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/check/secrets.check.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/export/secrets.export.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/import/secrets.import.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/import/secrets.import.cli-command.descriptor.js +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/pull/secrets.pull.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/push/secrets.push.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/unset/secrets.unset.cli-command.descriptor.d.ts +0 -0
- /package/dist/{cli → surfaces/cli/commands/maintenance}/unset/secrets.unset.cli-command.descriptor.js +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { SecretDescriptorEntrySchema, SecretsListStateSchema, type SecretDescriptorEntry, type SecretsListState } from "../../../schemas/ui/tui/list.schema.ts";
|
|
2
|
+
export declare const secretsListStateKey: import("@vibesdotdev/tui").TuiStateKey<{
|
|
3
|
+
environment: string;
|
|
4
|
+
tier: "local" | "dev" | "staging" | "production" | null;
|
|
5
|
+
secrets: readonly Readonly<{
|
|
6
|
+
id: string;
|
|
7
|
+
key: string;
|
|
8
|
+
source: string;
|
|
9
|
+
hasValue: boolean;
|
|
10
|
+
backend: string;
|
|
11
|
+
backendId: string;
|
|
12
|
+
tier: "local" | "dev" | "staging" | "production";
|
|
13
|
+
}>[];
|
|
14
|
+
loaded: boolean;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
error: string | null;
|
|
17
|
+
lastUpdated: number | null;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=secrets.tui-state.key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.tui-state.key.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/tui/state/secrets.tui-state.key.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAC,sBAAsB,EAAC,KAAK,qBAAqB,EAAC,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAQ7J,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;EAA4D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SecretsListStateSchema } from "../../../schemas/ui/tui/list.schema.js";
|
|
2
|
+
export { SecretDescriptorEntrySchema, SecretsListStateSchema } from "../../../schemas/ui/tui/list.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* The `secrets.list` tui/state key: the secret descriptors the secrets TUI
|
|
5
|
+
* lists (never their values), with the schema every value written to it is
|
|
6
|
+
* parsed by.
|
|
7
|
+
*/
|
|
8
|
+
import { defineTuiStateKey } from '@vibesdotdev/tui/kinds/tui-state';
|
|
9
|
+
export const secretsListStateKey = defineTuiStateKey('secrets.list', SecretsListStateSchema);
|
|
10
|
+
//# sourceMappingURL=secrets.tui-state.key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets.tui-state.key.js","sourceRoot":"","sources":["../../../../src/surfaces/tui/state/secrets.tui-state.key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAC,sBAAsB,EAAmD,MAAM,wCAAwC,CAAC;AAC7J;;;;GAIG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type BoundedText } from "../schemas/transport/body.schema.ts";
|
|
2
|
+
export { type BoundedText } from "../schemas/transport/body.schema.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Bounded reads of a response body and the deadline a request carries. A
|
|
5
|
+
* server that never stops sending, or never answers, must cost this process a
|
|
6
|
+
* bounded amount of memory and time.
|
|
7
|
+
*/
|
|
8
|
+
import type { CaughtFailure } from '@vibesdotdev/kernel';
|
|
9
|
+
/**
|
|
10
|
+
* Read at most `maxBytes` BYTES of `response`'s body, then stop reading and
|
|
11
|
+
* release the connection. The cap is in bytes on the wire, not characters: a
|
|
12
|
+
* multi-byte body cannot exceed it by being clipped after the fact.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readBoundedText(response: Response, maxBytes: number): Promise<BoundedText>;
|
|
15
|
+
/** True for the failure an `AbortSignal.timeout` deadline raises. */
|
|
16
|
+
export declare function isDeadlineFailure(failure: CaughtFailure): boolean;
|
|
17
|
+
//# sourceMappingURL=bounded-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounded-body.d.ts","sourceRoot":"","sources":["../../src/transport/bounded-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA6BhG;AAaD,qEAAqE;AACrE,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEjE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {} from "../schemas/transport/body.schema.js";
|
|
2
|
+
export {} from "../schemas/transport/body.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read at most `maxBytes` BYTES of `response`'s body, then stop reading and
|
|
5
|
+
* release the connection. The cap is in bytes on the wire, not characters: a
|
|
6
|
+
* multi-byte body cannot exceed it by being clipped after the fact.
|
|
7
|
+
*/
|
|
8
|
+
export async function readBoundedText(response, maxBytes) {
|
|
9
|
+
const body = response.body;
|
|
10
|
+
if (body === null)
|
|
11
|
+
return { text: '', truncated: false };
|
|
12
|
+
const reader = body.getReader();
|
|
13
|
+
const chunks = [];
|
|
14
|
+
let received = 0;
|
|
15
|
+
let truncated = false;
|
|
16
|
+
for (;;) {
|
|
17
|
+
const step = await reader.read();
|
|
18
|
+
if (step.done)
|
|
19
|
+
break;
|
|
20
|
+
const remaining = maxBytes - received;
|
|
21
|
+
if (step.value.byteLength > remaining) {
|
|
22
|
+
if (remaining > 0)
|
|
23
|
+
chunks.push(step.value.subarray(0, remaining));
|
|
24
|
+
received += Math.max(remaining, 0);
|
|
25
|
+
truncated = true;
|
|
26
|
+
await reader.cancel();
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
chunks.push(step.value);
|
|
30
|
+
received += step.value.byteLength;
|
|
31
|
+
}
|
|
32
|
+
const joined = new Uint8Array(received);
|
|
33
|
+
let offset = 0;
|
|
34
|
+
for (const chunk of chunks) {
|
|
35
|
+
joined.set(chunk, offset);
|
|
36
|
+
offset += chunk.byteLength;
|
|
37
|
+
}
|
|
38
|
+
const end = truncated ? completeUtf8Length(joined) : joined.byteLength;
|
|
39
|
+
return { text: new TextDecoder().decode(joined.subarray(0, end)), truncated };
|
|
40
|
+
}
|
|
41
|
+
/** The length of `bytes` without a trailing, cut-off UTF-8 sequence (so no U+FFFD is invented at the cut). */
|
|
42
|
+
function completeUtf8Length(bytes) {
|
|
43
|
+
for (let back = 1; back <= Math.min(3, bytes.byteLength); back += 1) {
|
|
44
|
+
const byte = bytes[bytes.byteLength - back];
|
|
45
|
+
if ((byte & 0b1100_0000) === 0b1000_0000)
|
|
46
|
+
continue; // a continuation byte: keep looking for its lead
|
|
47
|
+
const needed = byte >= 0b1111_0000 ? 4 : byte >= 0b1110_0000 ? 3 : byte >= 0b1100_0000 ? 2 : 1;
|
|
48
|
+
return needed > back ? bytes.byteLength - back : bytes.byteLength;
|
|
49
|
+
}
|
|
50
|
+
return bytes.byteLength;
|
|
51
|
+
}
|
|
52
|
+
/** True for the failure an `AbortSignal.timeout` deadline raises. */
|
|
53
|
+
export function isDeadlineFailure(failure) {
|
|
54
|
+
return failure instanceof Error && (failure.name === 'TimeoutError' || failure.name === 'AbortError');
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=bounded-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounded-body.js","sourceRoot":"","sources":["../../src/transport/bounded-body.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type HeaderSetOutcome } from "../schemas/transport/header.schema.ts";
|
|
2
|
+
export { type HeaderSetOutcome } from "../schemas/transport/header.schema.ts";
|
|
3
|
+
/** True when `value` is a header value that can be sent as is: no code unit above U+00FF, no control character but a tab. */
|
|
4
|
+
export declare function isSendableHeaderValue(value: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Set `name: value` on `headers`. A value that is not sendable is refused before
|
|
7
|
+
* `Headers` sees it; if `Headers` still throws, the outcome carries that failure
|
|
8
|
+
* value-free (see {@link HeaderSetOutcome}) instead of letting its value-quoting
|
|
9
|
+
* message escape.
|
|
10
|
+
*/
|
|
11
|
+
export declare function setHeaderValue(headers: Headers, name: string, value: string): HeaderSetOutcome;
|
|
12
|
+
//# sourceMappingURL=header-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-value.d.ts","sourceRoot":"","sources":["../../src/transport/header-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAiB9E,6HAA6H;AAC7H,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAM5D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAQ9F"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {} from "../schemas/transport/header.schema.js";
|
|
2
|
+
export {} from "../schemas/transport/header.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* Header values a credential rides in. The runtime's `Headers` and `fetch` throw
|
|
5
|
+
* a `TypeError` that QUOTES the offending value, so a credential that is not a
|
|
6
|
+
* legal header value must be refused here, by shape, before it reaches either:
|
|
7
|
+
* the refusal names the problem, never the value.
|
|
8
|
+
*
|
|
9
|
+
* A legal value is bytes (every code unit at most U+00FF) with no control
|
|
10
|
+
* character except the tab; anything else cannot be sent and would split or
|
|
11
|
+
* corrupt the message.
|
|
12
|
+
*/
|
|
13
|
+
import { CaughtFailureSchema, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
14
|
+
import { hasControlCharacter } from "./text.js";
|
|
15
|
+
const LATIN1_MAX = 0xff;
|
|
16
|
+
/** True when `value` is a header value that can be sent as is: no code unit above U+00FF, no control character but a tab. */
|
|
17
|
+
export function isSendableHeaderValue(value) {
|
|
18
|
+
if (hasControlCharacter(value, true))
|
|
19
|
+
return false;
|
|
20
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
21
|
+
if (value.charCodeAt(index) > LATIN1_MAX)
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Set `name: value` on `headers`. A value that is not sendable is refused before
|
|
28
|
+
* `Headers` sees it; if `Headers` still throws, the outcome carries that failure
|
|
29
|
+
* value-free (see {@link HeaderSetOutcome}) instead of letting its value-quoting
|
|
30
|
+
* message escape.
|
|
31
|
+
*/
|
|
32
|
+
export function setHeaderValue(headers, name, value) {
|
|
33
|
+
if (!isSendableHeaderValue(value))
|
|
34
|
+
return { ok: false, problem: 'value-not-sendable' };
|
|
35
|
+
try {
|
|
36
|
+
headers.set(name, value);
|
|
37
|
+
}
|
|
38
|
+
catch (thrown) {
|
|
39
|
+
return { ok: false, problem: 'value-rejected', failure: valueFreeFailure(CaughtFailureSchema.parse(thrown)) };
|
|
40
|
+
}
|
|
41
|
+
return { ok: true };
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=header-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-value.js","sourceRoot":"","sources":["../../src/transport/header-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAyB,MAAM,uCAAuC,CAAC;AAC9E;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAC,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,6HAA6H;AAC7H,MAAM,UAAU,qBAAqB,CAAC,KAAa;IAClD,IAAI,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAC,KAAK,GAAG,KAAK,CAAC,MAAM,EAAC,KAAK,IAAI,CAAC,EAAE,CAAC;QACpD,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU;YAAE,OAAO,KAAK,CAAC;IACxD,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,IAAY,EAAE,KAAa;IAC3E,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;IACvF,IAAI,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QACjB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IAC/G,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type HostFileSubject } from "../schemas/transport/file.schema.ts";
|
|
2
|
+
export { type HostFileSubject } from "../schemas/transport/file.schema.ts";
|
|
3
|
+
import { type RuntimeRef } from '@vibesdotdev/kernel';
|
|
4
|
+
/**
|
|
5
|
+
* The text of `path`, at most `maxBytes` bytes, read ITSELF through the
|
|
6
|
+
* adapter's bounded read (never a size check followed by an unbounded read, so a
|
|
7
|
+
* file that grows or a FIFO cannot outrun the cap). A missing file is
|
|
8
|
+
* `NOT_FOUND host-file-missing`, a larger one `INVALID_INPUT host-file-too-large`,
|
|
9
|
+
* and any other read failure `UNAVAILABLE host-file-unreadable` carrying the
|
|
10
|
+
* cause; an adapter that cannot bound a read is `UNAVAILABLE
|
|
11
|
+
* filesystem-versioned-file-unavailable`. The path is never put in the message.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readHostTextFile(runtime: Pick<RuntimeRef, 'hasKind' | 'query'>, path: string, subject: HostFileSubject, maxBytes: number): Promise<string>;
|
|
14
|
+
//# sourceMappingURL=host-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-file.d.ts","sourceRoot":"","sources":["../../src/transport/host-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAW3E,OAAO,EAAyD,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAiD7G;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,OAAO,CAAC,EAC9C,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,CAyBjB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {} from "../schemas/transport/file.schema.js";
|
|
2
|
+
export {} from "../schemas/transport/file.schema.js";
|
|
3
|
+
import { CapabilityError, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
4
|
+
import * as z from 'zod/v4';
|
|
5
|
+
const NativeFailureSchema = z.object({ code: z.string() });
|
|
6
|
+
/** Confirmed absence: the host's `ENOENT`, or a typed `NOT_FOUND` from the adapter. */
|
|
7
|
+
function isConfirmedAbsence(failure) {
|
|
8
|
+
if (failure instanceof CapabilityError)
|
|
9
|
+
return failure.code === 'NOT_FOUND';
|
|
10
|
+
const native = NativeFailureSchema.safeParse(failure);
|
|
11
|
+
return native.success && native.data.code === 'ENOENT';
|
|
12
|
+
}
|
|
13
|
+
async function resolveAdapter(runtime) {
|
|
14
|
+
if (!runtime.hasKind('filesystem/adapter')) {
|
|
15
|
+
throw new CapabilityError('No filesystem/adapter kind is registered on this runtime.', 'UNAVAILABLE', {
|
|
16
|
+
reason: 'filesystem-adapter-not-registered',
|
|
17
|
+
retryable: false
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
const adapter = await runtime
|
|
21
|
+
.query('filesystem/adapter')
|
|
22
|
+
.resolve();
|
|
23
|
+
if (!adapter) {
|
|
24
|
+
throw new CapabilityError('Failed to resolve filesystem/adapter.', 'UNAVAILABLE', {
|
|
25
|
+
reason: 'filesystem-adapter-unavailable',
|
|
26
|
+
retryable: false
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return adapter;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The adapter's size-bounded read, or a typed refusal: a stat-then-read would
|
|
33
|
+
* read a growing file or a FIFO without limit, and an unbounded fallback would
|
|
34
|
+
* read a hostile file whole.
|
|
35
|
+
*/
|
|
36
|
+
function boundedReader(adapter) {
|
|
37
|
+
const read = adapter.readFileVersioned;
|
|
38
|
+
if (!adapter.descriptor.capabilities.includes('versioned-file') || !read) {
|
|
39
|
+
throw new CapabilityError('This filesystem adapter cannot bound a read, which reading a host file needs.', 'UNAVAILABLE', {
|
|
40
|
+
reason: 'filesystem-versioned-file-unavailable',
|
|
41
|
+
retryable: false,
|
|
42
|
+
details: { adapterId: adapter.descriptor.id, capability: 'versioned-file' },
|
|
43
|
+
recoveryHint: 'Select a filesystem adapter that advertises versioned-file.'
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return (path, maxBytes) => read.call(adapter, path, { maxBytes });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The text of `path`, at most `maxBytes` bytes, read ITSELF through the
|
|
50
|
+
* adapter's bounded read (never a size check followed by an unbounded read, so a
|
|
51
|
+
* file that grows or a FIFO cannot outrun the cap). A missing file is
|
|
52
|
+
* `NOT_FOUND host-file-missing`, a larger one `INVALID_INPUT host-file-too-large`,
|
|
53
|
+
* and any other read failure `UNAVAILABLE host-file-unreadable` carrying the
|
|
54
|
+
* cause; an adapter that cannot bound a read is `UNAVAILABLE
|
|
55
|
+
* filesystem-versioned-file-unavailable`. The path is never put in the message.
|
|
56
|
+
*/
|
|
57
|
+
export async function readHostTextFile(runtime, path, subject, maxBytes) {
|
|
58
|
+
const adapter = await resolveAdapter(runtime);
|
|
59
|
+
const read = boundedReader(adapter);
|
|
60
|
+
let result;
|
|
61
|
+
try {
|
|
62
|
+
result = await read(path, maxBytes);
|
|
63
|
+
}
|
|
64
|
+
catch (raw) {
|
|
65
|
+
throw readFailure(CaughtFailureSchema.parse(raw), subject);
|
|
66
|
+
}
|
|
67
|
+
switch (result.status) {
|
|
68
|
+
case 'ok':
|
|
69
|
+
return new TextDecoder().decode(result.bytes);
|
|
70
|
+
case 'not-found':
|
|
71
|
+
throw readFailure(new Error(result.reason), subject, true);
|
|
72
|
+
case 'too-large':
|
|
73
|
+
throw new CapabilityError(`The ${subject.label} is larger than ${maxBytes} bytes.`, 'INVALID_INPUT', {
|
|
74
|
+
reason: 'host-file-too-large',
|
|
75
|
+
retryable: false,
|
|
76
|
+
details: { subject: subject.label, maxBytes }
|
|
77
|
+
});
|
|
78
|
+
case 'unavailable':
|
|
79
|
+
throw readFailure(result.cause ?? new Error(result.reason), subject);
|
|
80
|
+
default:
|
|
81
|
+
throw readFailure(new Error(result.reason), subject);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/** A failed read as its typed refusal: confirmed absence is `NOT_FOUND`, anything else `UNAVAILABLE`. */
|
|
85
|
+
function readFailure(failure, subject, absent = isConfirmedAbsence(failure)) {
|
|
86
|
+
return new CapabilityError(absent ? `The ${subject.label} does not exist.` : `The ${subject.label} could not be read.`, absent ? 'NOT_FOUND' : 'UNAVAILABLE', {
|
|
87
|
+
reason: absent ? 'host-file-missing' : 'host-file-unreadable',
|
|
88
|
+
retryable: false,
|
|
89
|
+
details: { subject: subject.label },
|
|
90
|
+
cause: failure
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=host-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-file.js","sourceRoot":"","sources":["../../src/transport/host-file.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/secrets/transport
|
|
3
|
+
*
|
|
4
|
+
* The generic network/file guards every secrets backend — in this package or
|
|
5
|
+
* in a provider package composing it — parses targets and bounds I/O with.
|
|
6
|
+
* Named re-exports only (STANDING-PRINCIPLES §5: no `export *` barrels).
|
|
7
|
+
*/
|
|
8
|
+
export { isDeadlineFailure, readBoundedText, type BoundedText } from './bounded-body.ts';
|
|
9
|
+
export { isSendableHeaderValue, setHeaderValue, type HeaderSetOutcome } from './header-value.ts';
|
|
10
|
+
export { readHostTextFile, type HostFileSubject } from './host-file.ts';
|
|
11
|
+
export { parseJsonBody, type JsonBodyOutcome } from './json-body.ts';
|
|
12
|
+
export { isDevelopmentHost, isLoopbackHostname, parseSecureUrl, redactUrlForDisplay, scrubUrlFromText, type DevelopmentHostRuntime, type SecureUrlPolicy, type SecureUrlProblem, type SecureUrlResult } from './secure-url.ts';
|
|
13
|
+
export { hasControlCharacter, printableLine } from './text.ts';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAC,eAAe,EAAC,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAC,cAAc,EAAC,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAC,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAC,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAC,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vibesdotdev/secrets/transport
|
|
3
|
+
*
|
|
4
|
+
* The generic network/file guards every secrets backend — in this package or
|
|
5
|
+
* in a provider package composing it — parses targets and bounds I/O with.
|
|
6
|
+
* Named re-exports only (STANDING-PRINCIPLES §5: no `export *` barrels).
|
|
7
|
+
*/
|
|
8
|
+
export { isDeadlineFailure, readBoundedText } from "./bounded-body.js";
|
|
9
|
+
export { isSendableHeaderValue, setHeaderValue } from "./header-value.js";
|
|
10
|
+
export { readHostTextFile } from "./host-file.js";
|
|
11
|
+
export { parseJsonBody } from "./json-body.js";
|
|
12
|
+
export { isDevelopmentHost, isLoopbackHostname, parseSecureUrl, redactUrlForDisplay, scrubUrlFromText } from "./secure-url.js";
|
|
13
|
+
export { hasControlCharacter, printableLine } from "./text.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAC,eAAe,EAAmB,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAC,cAAc,EAAwB,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAuB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAuB,MAAM,gBAAgB,CAAC;AACpE,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAKf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAC,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type JsonBodyOutcome } from "../schemas/transport/json.schema.ts";
|
|
2
|
+
export { type JsonBodyOutcome } from "../schemas/transport/json.schema.ts";
|
|
3
|
+
import type * as z from 'zod/v4';
|
|
4
|
+
export declare function parseJsonBody<S extends z.ZodType>(text: string, schema: S): JsonBodyOutcome<z.output<S>>;
|
|
5
|
+
//# sourceMappingURL=json-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-body.d.ts","sourceRoot":"","sources":["../../src/transport/json-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAQ3E,OAAO,KAAK,KAAK,CAAC,MAAM,QAAQ,CAAC;AAEjC,wBAAgB,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAUxG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {} from "../schemas/transport/json.schema.js";
|
|
2
|
+
export {} from "../schemas/transport/json.schema.js";
|
|
3
|
+
/**
|
|
4
|
+
* Untrusted JSON text, parsed once with a schema. A body is never `as`-cast, and
|
|
5
|
+
* the syntax error of a malformed body is carried to the caller as data rather
|
|
6
|
+
* than thrown: a body that held a secret must not have a parser quote it into a
|
|
7
|
+
* typed refusal, so the caller decides whether the failure travels on.
|
|
8
|
+
*/
|
|
9
|
+
import { CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
10
|
+
export function parseJsonBody(text, schema) {
|
|
11
|
+
let raw;
|
|
12
|
+
try {
|
|
13
|
+
raw = JSON.parse(text);
|
|
14
|
+
}
|
|
15
|
+
catch (thrown) {
|
|
16
|
+
return { ok: false, problem: 'not-json', failure: CaughtFailureSchema.parse(thrown) };
|
|
17
|
+
}
|
|
18
|
+
const parsed = schema.safeParse(raw);
|
|
19
|
+
if (!parsed.success)
|
|
20
|
+
return { ok: false, problem: 'schema-mismatch' };
|
|
21
|
+
return { ok: true, data: parsed.data };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=json-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-body.js","sourceRoot":"","sources":["../../src/transport/json-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAwB,MAAM,qCAAqC,CAAC;AAC3E;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG1D,MAAM,UAAU,aAAa,CAAsB,IAAY,EAAE,MAAS;IACzE,IAAI,GAAqC,CAAC;IAC1C,IAAI,CAAC;QACJ,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QACjB,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IACvF,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACrC,IAAI,CAAC,MAAM,CAAC,OAAO;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;IACtE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type DevelopmentHostRuntime, type SecureUrlPolicy, type SecureUrlResult } from "../schemas/transport/url.schema.ts";
|
|
2
|
+
export { type DevelopmentHostRuntime, type SecureUrlPolicy, type SecureUrlProblem, type SecureUrlResult } from "../schemas/transport/url.schema.ts";
|
|
3
|
+
/** True when the handed runtime declares itself a development host. Absent or `false`: not. */
|
|
4
|
+
export declare function isDevelopmentHost(runtime: DevelopmentHostRuntime): boolean;
|
|
5
|
+
/** `localhost`, any `*.localhost`, `127.0.0.0/8` and `::1`: this machine's own interface. */
|
|
6
|
+
export declare function isLoopbackHostname(hostname: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Parse `raw` as a URL a credential may be sent to. Never throws; the refusal
|
|
9
|
+
* names the problem, never the URL.
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseSecureUrl(raw: string, policy: SecureUrlPolicy): SecureUrlResult;
|
|
12
|
+
/**
|
|
13
|
+
* `text` (an error message a fetch raised) with every spelling of `rawUrl` it
|
|
14
|
+
* may echo replaced by the redacted form: the URL itself, its normalized href,
|
|
15
|
+
* its query string and its userinfo.
|
|
16
|
+
*/
|
|
17
|
+
export declare function scrubUrlFromText(text: string, rawUrl: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* `raw` as a log, audit or warning line may carry it: scheme, host and path
|
|
20
|
+
* only. Userinfo, query and fragment are removed (a token rides there), and
|
|
21
|
+
* text that is not a URL is not echoed at all.
|
|
22
|
+
*/
|
|
23
|
+
export declare function redactUrlForDisplay(raw: string): string;
|
|
24
|
+
//# sourceMappingURL=secure-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secure-url.d.ts","sourceRoot":"","sources":["../../src/transport/secure-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAC,KAAK,eAAe,EAAC,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC3H,OAAO,EAAE,KAAK,sBAAsB,EAAC,KAAK,eAAe,EAAC,KAAK,gBAAgB,EAAC,KAAK,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGjJ,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAE1E;AAED,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAK5D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,eAAe,CAYpF;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAWrE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIvD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {} from "../schemas/transport/url.schema.js";
|
|
2
|
+
export {} from "../schemas/transport/url.schema.js";
|
|
3
|
+
/** True when the handed runtime declares itself a development host. Absent or `false`: not. */
|
|
4
|
+
export function isDevelopmentHost(runtime) {
|
|
5
|
+
return runtime.scope.qualifiers.dev === true;
|
|
6
|
+
}
|
|
7
|
+
/** `localhost`, any `*.localhost`, `127.0.0.0/8` and `::1`: this machine's own interface. */
|
|
8
|
+
export function isLoopbackHostname(hostname) {
|
|
9
|
+
const host = hostname.toLowerCase().replace(/^\[|\]$/g, '').replace(/\.+$/, '');
|
|
10
|
+
if (host === 'localhost' || host.endsWith('.localhost'))
|
|
11
|
+
return true;
|
|
12
|
+
if (host === '::1')
|
|
13
|
+
return true;
|
|
14
|
+
return /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(host);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Parse `raw` as a URL a credential may be sent to. Never throws; the refusal
|
|
18
|
+
* names the problem, never the URL.
|
|
19
|
+
*/
|
|
20
|
+
export function parseSecureUrl(raw, policy) {
|
|
21
|
+
if (!URL.canParse(raw))
|
|
22
|
+
return { ok: false, problem: 'unparseable' };
|
|
23
|
+
const url = new URL(raw);
|
|
24
|
+
if (url.hostname.length === 0)
|
|
25
|
+
return { ok: false, problem: 'host-missing' };
|
|
26
|
+
if (url.username.length > 0 || url.password.length > 0) {
|
|
27
|
+
return { ok: false, problem: 'userinfo-not-allowed' };
|
|
28
|
+
}
|
|
29
|
+
if (url.protocol === 'https:')
|
|
30
|
+
return { ok: true, url };
|
|
31
|
+
if (url.protocol === 'http:' && policy.allowLoopbackHttp && isLoopbackHostname(url.hostname)) {
|
|
32
|
+
return { ok: true, url };
|
|
33
|
+
}
|
|
34
|
+
return { ok: false, problem: 'scheme-not-allowed' };
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* `text` (an error message a fetch raised) with every spelling of `rawUrl` it
|
|
38
|
+
* may echo replaced by the redacted form: the URL itself, its normalized href,
|
|
39
|
+
* its query string and its userinfo.
|
|
40
|
+
*/
|
|
41
|
+
export function scrubUrlFromText(text, rawUrl) {
|
|
42
|
+
const shown = redactUrlForDisplay(rawUrl);
|
|
43
|
+
let out = text.split(rawUrl).join(shown);
|
|
44
|
+
if (URL.canParse(rawUrl)) {
|
|
45
|
+
const url = new URL(rawUrl);
|
|
46
|
+
out = out.split(url.href).join(shown);
|
|
47
|
+
if (url.search.length > 1)
|
|
48
|
+
out = out.split(url.search).join('');
|
|
49
|
+
if (url.password.length > 0)
|
|
50
|
+
out = out.split(url.password).join('[redacted]');
|
|
51
|
+
if (url.username.length > 0)
|
|
52
|
+
out = out.split(url.username).join('[redacted]');
|
|
53
|
+
}
|
|
54
|
+
return out;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* `raw` as a log, audit or warning line may carry it: scheme, host and path
|
|
58
|
+
* only. Userinfo, query and fragment are removed (a token rides there), and
|
|
59
|
+
* text that is not a URL is not echoed at all.
|
|
60
|
+
*/
|
|
61
|
+
export function redactUrlForDisplay(raw) {
|
|
62
|
+
if (!URL.canParse(raw))
|
|
63
|
+
return '[unparseable-url]';
|
|
64
|
+
const url = new URL(raw);
|
|
65
|
+
return `${url.protocol}//${url.host}${url.pathname}`;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=secure-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secure-url.js","sourceRoot":"","sources":["../../src/transport/secure-url.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text checks for values that become part of a protocol message (a header
|
|
3
|
+
* value) or of a line a user reads (a server message), written as code-point
|
|
4
|
+
* scans so no control character is spelled in a pattern.
|
|
5
|
+
*/
|
|
6
|
+
/** True when `text` holds NUL or any control character; a tab is allowed when `allowTab` (a header value). */
|
|
7
|
+
export declare function hasControlCharacter(text: string, allowTab: boolean): boolean;
|
|
8
|
+
/** `text` with every control character replaced by a space, runs of whitespace collapsed, and ends trimmed. */
|
|
9
|
+
export declare function printableLine(text: string): string;
|
|
10
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/transport/text.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,8GAA8G;AAC9G,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAM5E;AAED,+GAA+G;AAC/G,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMlD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text checks for values that become part of a protocol message (a header
|
|
3
|
+
* value) or of a line a user reads (a server message), written as code-point
|
|
4
|
+
* scans so no control character is spelled in a pattern.
|
|
5
|
+
*/
|
|
6
|
+
const TAB = 0x09;
|
|
7
|
+
const DELETE = 0x7f;
|
|
8
|
+
function isControl(code) {
|
|
9
|
+
return code < 0x20 || code === DELETE;
|
|
10
|
+
}
|
|
11
|
+
/** True when `text` holds NUL or any control character; a tab is allowed when `allowTab` (a header value). */
|
|
12
|
+
export function hasControlCharacter(text, allowTab) {
|
|
13
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
14
|
+
const code = text.charCodeAt(index);
|
|
15
|
+
if (isControl(code) && !(allowTab && code === TAB))
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
/** `text` with every control character replaced by a space, runs of whitespace collapsed, and ends trimmed. */
|
|
21
|
+
export function printableLine(text) {
|
|
22
|
+
let out = '';
|
|
23
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
24
|
+
out += isControl(text.charCodeAt(index)) ? ' ' : text[index];
|
|
25
|
+
}
|
|
26
|
+
return out.replace(/\s+/g, ' ').trim();
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../src/transport/text.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,SAAS,SAAS,CAAC,IAAY;IAC9B,OAAO,IAAI,GAAG,IAAI,IAAI,IAAI,KAAK,MAAM,CAAC;AACvC,CAAC;AAED,8GAA8G;AAC9G,MAAM,UAAU,mBAAmB,CAAC,IAAY,EAAE,QAAiB;IAClE,KAAK,IAAI,KAAK,GAAG,CAAC,EAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAC,KAAK,IAAI,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,IAAI,IAAI,KAAK,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;IACjE,CAAC;IACD,OAAO,KAAK,CAAC;AACd,CAAC;AAED,+GAA+G;AAC/G,MAAM,UAAU,aAAa,CAAC,IAAY;IACzC,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,IAAI,KAAK,GAAG,CAAC,EAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAC,KAAK,IAAI,CAAC,EAAE,CAAC;QACnD,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AACxC,CAAC"}
|