@dreamlake/dreamlake-cli 0.88.1 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/access.d.ts +83 -0
- package/dist/api/access.js +77 -0
- package/dist/api/agent.d.ts +156 -0
- package/dist/api/agent.js +111 -0
- package/dist/api/browser.d.ts +90 -0
- package/dist/api/browser.js +102 -0
- package/dist/api/client.d.ts +54 -0
- package/dist/api/client.js +102 -0
- package/dist/api/common.d.ts +28 -0
- package/dist/api/common.js +16 -0
- package/dist/api/content.d.ts +195 -0
- package/dist/api/content.js +147 -0
- package/dist/api/execution.d.ts +84 -0
- package/dist/api/execution.js +73 -0
- package/dist/api/http.d.ts +19 -0
- package/dist/api/http.js +66 -0
- package/dist/api/index.d.ts +2362 -0
- package/dist/api/index.js +116 -0
- package/dist/api/infra.d.ts +2 -0
- package/dist/api/infra.js +2 -0
- package/dist/api/jobs.d.ts +2 -0
- package/dist/api/jobs.js +2 -0
- package/dist/api/layout.d.ts +2 -0
- package/dist/api/layout.js +2 -0
- package/dist/api/library-edit.d.ts +3 -0
- package/dist/api/library-edit.js +3 -0
- package/dist/api/library-manifest.d.ts +2 -0
- package/dist/api/library-manifest.js +2 -0
- package/dist/api/note-character-plan.d.ts +2 -0
- package/dist/api/note-character-plan.js +2 -0
- package/dist/api/note-editing.d.ts +2 -0
- package/dist/api/note-editing.js +2 -0
- package/dist/api/note-edits.d.ts +21 -0
- package/dist/api/note-edits.js +10 -0
- package/dist/api/note-events.d.ts +5 -0
- package/dist/api/note-events.js +11 -0
- package/dist/api/note-files.d.ts +102 -0
- package/dist/api/note-files.js +107 -0
- package/dist/api/note-html-read.d.ts +2 -0
- package/dist/api/note-html-read.js +2 -0
- package/dist/api/note-html.d.ts +2 -0
- package/dist/api/note-html.js +2 -0
- package/dist/api/note-linger.d.ts +83 -0
- package/dist/api/note-linger.js +270 -0
- package/dist/api/note-presence.d.ts +82 -0
- package/dist/api/note-presence.js +72 -0
- package/dist/api/note-toc.d.ts +2 -0
- package/dist/api/note-toc.js +2 -0
- package/dist/api/notes.d.ts +329 -0
- package/dist/api/notes.js +209 -0
- package/dist/api/open-resources.d.ts +27 -0
- package/dist/api/open-resources.js +102 -0
- package/dist/api/ownership.d.ts +12 -0
- package/dist/api/ownership.js +24 -0
- package/dist/api/platform.d.ts +83 -0
- package/dist/api/platform.js +56 -0
- package/dist/api/presigned-transfer.d.ts +2 -0
- package/dist/api/presigned-transfer.js +2 -0
- package/dist/api/registered-runs.d.ts +48 -0
- package/dist/api/registered-runs.js +33 -0
- package/dist/api/sessions.d.ts +299 -0
- package/dist/api/sessions.js +105 -0
- package/dist/api/storage.d.ts +46 -0
- package/dist/api/storage.js +34 -0
- package/dist/api/streams.d.ts +18 -0
- package/dist/api/streams.js +70 -0
- package/dist/api/vault.d.ts +93 -0
- package/dist/api/vault.js +79 -0
- package/dist/api/workspace.d.ts +180 -0
- package/dist/api/workspace.js +146 -0
- package/dist/cli/agent-identity.d.ts +4 -0
- package/dist/cli/agent-identity.js +21 -0
- package/dist/cli/agents/identity.d.ts +50 -0
- package/dist/cli/agents/identity.js +105 -0
- package/dist/cli/agents/index.d.ts +31 -0
- package/dist/cli/agents/index.js +580 -0
- package/dist/cli/agents/manage.d.ts +43 -0
- package/dist/cli/agents/manage.js +376 -0
- package/dist/cli/agents/spec.d.ts +104 -0
- package/dist/cli/agents/spec.js +280 -0
- package/dist/cli/agents/web.d.ts +7 -0
- package/dist/cli/agents/web.js +109 -0
- package/dist/cli/artifact/incremental.d.ts +21 -0
- package/dist/cli/artifact/incremental.js +80 -0
- package/dist/cli/artifact/index.d.ts +52 -0
- package/dist/cli/artifact/index.js +405 -0
- package/dist/cli/artifact/meta.d.ts +69 -0
- package/dist/cli/artifact/meta.js +189 -0
- package/dist/cli/auth/commands.d.ts +29 -0
- package/dist/cli/auth/commands.js +327 -0
- package/dist/cli/auth/constants.d.ts +13 -0
- package/dist/cli/auth/constants.js +18 -0
- package/dist/cli/auth/credentials.d.ts +37 -0
- package/dist/cli/auth/credentials.js +155 -0
- package/dist/cli/auth/device-flow.d.ts +32 -0
- package/dist/cli/auth/device-flow.js +154 -0
- package/dist/cli/auth/device-secret.d.ts +6 -0
- package/dist/cli/auth/device-secret.js +26 -0
- package/dist/cli/auth/machine.d.ts +15 -0
- package/dist/cli/auth/machine.js +126 -0
- package/dist/cli/auth/materialized.d.ts +32 -0
- package/dist/cli/auth/materialized.js +102 -0
- package/dist/cli/auth/migrate.d.ts +10 -0
- package/dist/cli/auth/migrate.js +75 -0
- package/dist/cli/client.d.ts +102 -0
- package/dist/cli/client.js +206 -0
- package/dist/cli/collection-list.d.ts +3 -0
- package/dist/cli/collection-list.js +25 -0
- package/dist/cli/compat/ctx.d.ts +26 -0
- package/dist/cli/compat/ctx.js +76 -0
- package/dist/cli/compat/dreamdb-wasm-embedded.d.ts +2 -0
- package/dist/cli/compat/dreamdb-wasm-embedded.js +8 -0
- package/dist/cli/compat/dreamdb-wasm.d.ts +1 -0
- package/dist/cli/compat/dreamdb-wasm.js +26 -0
- package/dist/cli/compat/dreamdb.d.ts +112 -0
- package/dist/cli/compat/dreamdb.js +219 -0
- package/dist/cli/compat/flags.d.ts +2 -0
- package/dist/cli/compat/flags.js +13 -0
- package/dist/cli/compat/http.d.ts +23 -0
- package/dist/cli/compat/http.js +137 -0
- package/dist/cli/compat/presignedTransfer.d.ts +139 -0
- package/dist/cli/compat/presignedTransfer.js +580 -0
- package/dist/cli/compat/s3-backend.d.ts +73 -0
- package/dist/cli/compat/s3-backend.js +132 -0
- package/dist/cli/config.d.ts +22 -0
- package/dist/cli/config.js +96 -0
- package/dist/cli/connection/dto.d.ts +159 -0
- package/dist/cli/connection/dto.js +497 -0
- package/dist/cli/connection/index.d.ts +50 -0
- package/dist/cli/connection/index.js +413 -0
- package/dist/cli/connection/oauth.d.ts +23 -0
- package/dist/cli/connection/oauth.js +290 -0
- package/dist/cli/connection/write.d.ts +47 -0
- package/dist/cli/connection/write.js +573 -0
- package/dist/cli/create/index.d.ts +19 -0
- package/dist/cli/create/index.js +209 -0
- package/dist/cli/declare/index.d.ts +29 -0
- package/dist/cli/declare/index.js +304 -0
- package/dist/cli/delete/index.d.ts +18 -0
- package/dist/cli/delete/index.js +232 -0
- package/dist/cli/download/index.d.ts +9 -0
- package/dist/cli/download/index.js +128 -0
- package/dist/cli/env/compose.d.ts +88 -0
- package/dist/cli/env/compose.js +402 -0
- package/dist/cli/env/index.d.ts +176 -0
- package/dist/cli/env/index.js +1011 -0
- package/dist/cli/experiments/index.d.ts +11 -0
- package/dist/cli/experiments/index.js +168 -0
- package/dist/cli/glob.d.ts +1 -0
- package/dist/cli/glob.js +45 -0
- package/dist/cli/graphql-helpers.d.ts +23 -0
- package/dist/cli/graphql-helpers.js +42 -0
- package/dist/cli/graphql.d.ts +10 -0
- package/dist/cli/graphql.js +47 -0
- package/dist/cli/help-examples.generated.d.ts +1 -0
- package/dist/cli/help-examples.generated.js +192 -0
- package/dist/cli/helpers.d.ts +8 -0
- package/dist/cli/helpers.js +106 -0
- package/dist/cli/hosts/api.d.ts +29 -0
- package/dist/cli/hosts/api.js +54 -0
- package/dist/cli/hosts/bootstrap-source.d.ts +1 -0
- package/dist/cli/hosts/bootstrap-source.js +2 -0
- package/dist/cli/hosts/catalog.d.ts +26 -0
- package/dist/cli/hosts/catalog.js +55 -0
- package/dist/cli/hosts/config.d.ts +45 -0
- package/dist/cli/hosts/config.js +179 -0
- package/dist/cli/hosts/credentials.d.ts +19 -0
- package/dist/cli/hosts/credentials.js +173 -0
- package/dist/cli/hosts/enroll.d.ts +17 -0
- package/dist/cli/hosts/enroll.js +109 -0
- package/dist/cli/hosts/enrollments.d.ts +25 -0
- package/dist/cli/hosts/enrollments.js +54 -0
- package/dist/cli/hosts/index.d.ts +6 -0
- package/dist/cli/hosts/index.js +279 -0
- package/dist/cli/hosts/inventory.d.ts +40 -0
- package/dist/cli/hosts/inventory.js +91 -0
- package/dist/cli/hosts/lifecycle.d.ts +15 -0
- package/dist/cli/hosts/lifecycle.js +108 -0
- package/dist/cli/hosts/metrics-source.d.ts +12 -0
- package/dist/cli/hosts/metrics-source.js +89 -0
- package/dist/cli/hosts/observations.d.ts +39 -0
- package/dist/cli/hosts/observations.js +102 -0
- package/dist/cli/hosts/remote.d.ts +5 -0
- package/dist/cli/hosts/remote.js +66 -0
- package/dist/cli/hosts/ssh.d.ts +63 -0
- package/dist/cli/hosts/ssh.js +276 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +288 -0
- package/dist/cli/infra/api.d.ts +95 -0
- package/dist/cli/infra/api.js +291 -0
- package/dist/cli/infra/index.d.ts +5 -0
- package/dist/cli/infra/index.js +102 -0
- package/dist/cli/infra/move.d.ts +15 -0
- package/dist/cli/infra/move.js +123 -0
- package/dist/cli/infra/transfer.d.ts +15 -0
- package/dist/cli/infra/transfer.js +280 -0
- package/dist/cli/jobs/api.d.ts +69 -0
- package/dist/cli/jobs/api.js +121 -0
- package/dist/cli/jobs/index.d.ts +5 -0
- package/dist/cli/jobs/index.js +140 -0
- package/dist/cli/lakeshore/index.d.ts +98 -0
- package/dist/cli/lakeshore/index.js +502 -0
- package/dist/cli/launch/index.d.ts +43 -0
- package/dist/cli/launch/index.js +270 -0
- package/dist/cli/layout/index.d.ts +2 -0
- package/dist/cli/layout/index.js +44 -0
- package/dist/cli/layout/transport.d.ts +12 -0
- package/dist/cli/layout/transport.js +70 -0
- package/dist/cli/library/add.d.ts +60 -0
- package/dist/cli/library/add.js +348 -0
- package/dist/cli/library/cache.d.ts +26 -0
- package/dist/cli/library/cache.js +88 -0
- package/dist/cli/library/config.d.ts +75 -0
- package/dist/cli/library/config.js +198 -0
- package/dist/cli/library/digest.d.ts +5 -0
- package/dist/cli/library/digest.js +19 -0
- package/dist/cli/library/discover.d.ts +87 -0
- package/dist/cli/library/discover.js +534 -0
- package/dist/cli/library/freshness.d.ts +35 -0
- package/dist/cli/library/freshness.js +109 -0
- package/dist/cli/library/generation.d.ts +35 -0
- package/dist/cli/library/generation.js +211 -0
- package/dist/cli/library/index.d.ts +2 -0
- package/dist/cli/library/index.js +36 -0
- package/dist/cli/library/info.d.ts +69 -0
- package/dist/cli/library/info.js +311 -0
- package/dist/cli/library/list.d.ts +33 -0
- package/dist/cli/library/list.js +86 -0
- package/dist/cli/library/manifest.d.ts +81 -0
- package/dist/cli/library/manifest.js +200 -0
- package/dist/cli/library/manifestCache.d.ts +45 -0
- package/dist/cli/library/manifestCache.js +169 -0
- package/dist/cli/library/pull.d.ts +30 -0
- package/dist/cli/library/pull.js +438 -0
- package/dist/cli/library/push.d.ts +72 -0
- package/dist/cli/library/push.js +642 -0
- package/dist/cli/library/rm.d.ts +31 -0
- package/dist/cli/library/rm.js +200 -0
- package/dist/cli/library/search.d.ts +18 -0
- package/dist/cli/library/search.js +181 -0
- package/dist/cli/library/stat.d.ts +15 -0
- package/dist/cli/library/stat.js +127 -0
- package/dist/cli/library/tools.d.ts +104 -0
- package/dist/cli/library/tools.js +163 -0
- package/dist/cli/library/wire.d.ts +47 -0
- package/dist/cli/library/wire.js +120 -0
- package/dist/cli/list/index.d.ts +26 -0
- package/dist/cli/list/index.js +256 -0
- package/dist/cli/notes/api-transport.d.ts +5 -0
- package/dist/cli/notes/api-transport.js +20 -0
- package/dist/cli/notes/character-plan.d.ts +22 -0
- package/dist/cli/notes/character-plan.js +232 -0
- package/dist/cli/notes/document.d.ts +73 -0
- package/dist/cli/notes/document.js +306 -0
- package/dist/cli/notes/edit-commands.d.ts +106 -0
- package/dist/cli/notes/edit-commands.js +623 -0
- package/dist/cli/notes/editing.d.ts +81 -0
- package/dist/cli/notes/editing.js +305 -0
- package/dist/cli/notes/events.d.ts +36 -0
- package/dist/cli/notes/events.js +54 -0
- package/dist/cli/notes/files-commands.d.ts +97 -0
- package/dist/cli/notes/files-commands.js +548 -0
- package/dist/cli/notes/html-read.d.ts +9 -0
- package/dist/cli/notes/html-read.js +90 -0
- package/dist/cli/notes/html.d.ts +73 -0
- package/dist/cli/notes/html.js +381 -0
- package/dist/cli/notes/index.d.ts +123 -0
- package/dist/cli/notes/index.js +1300 -0
- package/dist/cli/notes/linger.d.ts +4 -0
- package/dist/cli/notes/linger.js +96 -0
- package/dist/cli/notes/media-commands.d.ts +5 -0
- package/dist/cli/notes/media-commands.js +51 -0
- package/dist/cli/notes/move-command.d.ts +83 -0
- package/dist/cli/notes/move-command.js +259 -0
- package/dist/cli/notes/rm-command.d.ts +22 -0
- package/dist/cli/notes/rm-command.js +110 -0
- package/dist/cli/notes/select-command.d.ts +12 -0
- package/dist/cli/notes/select-command.js +63 -0
- package/dist/cli/notes/suggest-diff.d.ts +56 -0
- package/dist/cli/notes/suggest-diff.js +311 -0
- package/dist/cli/notes/toc.d.ts +38 -0
- package/dist/cli/notes/toc.js +144 -0
- package/dist/cli/notes/transfer-command.d.ts +6 -0
- package/dist/cli/notes/transfer-command.js +9 -0
- package/dist/cli/notes/version-commands.d.ts +19 -0
- package/dist/cli/notes/version-commands.js +178 -0
- package/dist/cli/nymph/index.d.ts +74 -0
- package/dist/cli/nymph/index.js +349 -0
- package/dist/cli/org/index.d.ts +34 -0
- package/dist/cli/org/index.js +341 -0
- package/dist/cli/ownership/index.d.ts +12 -0
- package/dist/cli/ownership/index.js +122 -0
- package/dist/cli/ownership/metadata-transfer.d.ts +20 -0
- package/dist/cli/ownership/metadata-transfer.js +159 -0
- package/dist/cli/page/index.d.ts +58 -0
- package/dist/cli/page/index.js +387 -0
- package/dist/cli/pipeline/index.d.ts +69 -0
- package/dist/cli/pipeline/index.js +604 -0
- package/dist/cli/progress.d.ts +60 -0
- package/dist/cli/progress.js +276 -0
- package/dist/cli/project/attachments.d.ts +10 -0
- package/dist/cli/project/attachments.js +39 -0
- package/dist/cli/project/grants.d.ts +10 -0
- package/dist/cli/project/grants.js +39 -0
- package/dist/cli/project/index.d.ts +8 -0
- package/dist/cli/project/index.js +92 -0
- package/dist/cli/project/move.d.ts +57 -0
- package/dist/cli/project/move.js +242 -0
- package/dist/cli/project/output.d.ts +2 -0
- package/dist/cli/project/output.js +29 -0
- package/dist/cli/project/stream.d.ts +55 -0
- package/dist/cli/project/stream.js +207 -0
- package/dist/cli/project/transfer-preview.d.ts +8 -0
- package/dist/cli/project/transfer-preview.js +10 -0
- package/dist/cli/prompt.d.ts +1 -0
- package/dist/cli/prompt.js +17 -0
- package/dist/cli/provider/dreamdir.d.ts +52 -0
- package/dist/cli/provider/dreamdir.js +138 -0
- package/dist/cli/provider/index.d.ts +4 -0
- package/dist/cli/provider/index.js +419 -0
- package/dist/cli/provider/jump-worker.d.ts +9 -0
- package/dist/cli/provider/jump-worker.js +141 -0
- package/dist/cli/provider/lifecycle.d.ts +149 -0
- package/dist/cli/provider/lifecycle.js +1390 -0
- package/dist/cli/provider/machine.d.ts +17 -0
- package/dist/cli/provider/machine.js +116 -0
- package/dist/cli/provider/ssh.d.ts +105 -0
- package/dist/cli/provider/ssh.js +305 -0
- package/dist/cli/provider/terraform.d.ts +140 -0
- package/dist/cli/provider/terraform.js +288 -0
- package/dist/cli/providers/index.d.ts +18 -0
- package/dist/cli/providers/index.js +422 -0
- package/dist/cli/python.d.ts +61 -0
- package/dist/cli/python.js +255 -0
- package/dist/cli/queues/index.d.ts +33 -0
- package/dist/cli/queues/index.js +248 -0
- package/dist/cli/queues/slurm.d.ts +10 -0
- package/dist/cli/queues/slurm.js +134 -0
- package/dist/cli/resources.d.ts +72 -0
- package/dist/cli/resources.js +137 -0
- package/dist/cli/run/index.d.ts +15 -0
- package/dist/cli/run/index.js +163 -0
- package/dist/cli/run/input.d.ts +34 -0
- package/dist/cli/run/input.js +135 -0
- package/dist/cli/run/recovery.d.ts +2 -0
- package/dist/cli/run/recovery.js +18 -0
- package/dist/cli/run/setup.d.ts +3 -0
- package/dist/cli/run/setup.js +62 -0
- package/dist/cli/runconfig/index.d.ts +12 -0
- package/dist/cli/runconfig/index.js +130 -0
- package/dist/cli/runnable/index.d.ts +35 -0
- package/dist/cli/runnable/index.js +575 -0
- package/dist/cli/runnable/path.d.ts +115 -0
- package/dist/cli/runnable/path.js +288 -0
- package/dist/cli/runnable/run.d.ts +91 -0
- package/dist/cli/runnable/run.js +239 -0
- package/dist/cli/runnable/upload.d.ts +43 -0
- package/dist/cli/runnable/upload.js +342 -0
- package/dist/cli/runnable/worker.d.ts +1 -0
- package/dist/cli/runnable/worker.js +44 -0
- package/dist/cli/schemas/workflow-spec.schema.json +335 -0
- package/dist/cli/self-update/index.d.ts +5 -0
- package/dist/cli/self-update/index.js +107 -0
- package/dist/cli/self-update/install.d.ts +60 -0
- package/dist/cli/self-update/install.js +428 -0
- package/dist/cli/self-update/paths.d.ts +40 -0
- package/dist/cli/self-update/paths.js +87 -0
- package/dist/cli/self-update/releases.d.ts +41 -0
- package/dist/cli/self-update/releases.js +153 -0
- package/dist/cli/self-update/settings.d.ts +16 -0
- package/dist/cli/self-update/settings.js +68 -0
- package/dist/cli/self-update/update.d.ts +18 -0
- package/dist/cli/self-update/update.js +241 -0
- package/dist/cli/service-accounts/index.d.ts +3 -0
- package/dist/cli/service-accounts/index.js +149 -0
- package/dist/cli/session-affiliation.d.ts +26 -0
- package/dist/cli/session-affiliation.js +135 -0
- package/dist/cli/sessions/affiliation.d.ts +8 -0
- package/dist/cli/sessions/affiliation.js +66 -0
- package/dist/cli/sessions/api.d.ts +55 -0
- package/dist/cli/sessions/api.js +88 -0
- package/dist/cli/sessions/control.d.ts +6 -0
- package/dist/cli/sessions/control.js +159 -0
- package/dist/cli/sessions/conversation.d.ts +15 -0
- package/dist/cli/sessions/conversation.js +118 -0
- package/dist/cli/sessions/index.d.ts +2 -0
- package/dist/cli/sessions/index.js +209 -0
- package/dist/cli/sessions/managed.d.ts +39 -0
- package/dist/cli/sessions/managed.js +63 -0
- package/dist/cli/sessions/redaction.d.ts +2 -0
- package/dist/cli/sessions/redaction.js +11 -0
- package/dist/cli/sessions/runner/exec.d.ts +108 -0
- package/dist/cli/sessions/runner/exec.js +335 -0
- package/dist/cli/sessions/runner/journal.d.ts +26 -0
- package/dist/cli/sessions/runner/journal.js +49 -0
- package/dist/cli/sessions/runner/native.d.ts +48 -0
- package/dist/cli/sessions/runner/native.js +170 -0
- package/dist/cli/sessions/runner/pod.d.ts +30 -0
- package/dist/cli/sessions/runner/pod.js +129 -0
- package/dist/cli/sessions/runner/serve.d.ts +85 -0
- package/dist/cli/sessions/runner/serve.js +558 -0
- package/dist/cli/sessions/sync.d.ts +47 -0
- package/dist/cli/sessions/sync.js +80 -0
- package/dist/cli/sessions/transport.d.ts +14 -0
- package/dist/cli/sessions/transport.js +116 -0
- package/dist/cli/share.d.ts +15 -0
- package/dist/cli/share.js +139 -0
- package/dist/cli/skill/catalog.d.ts +141 -0
- package/dist/cli/skill/catalog.js +442 -0
- package/dist/cli/skill/files.d.ts +89 -0
- package/dist/cli/skill/files.js +264 -0
- package/dist/cli/skill/index.d.ts +268 -0
- package/dist/cli/skill/index.js +1216 -0
- package/dist/cli/skill/manifest.d.ts +30 -0
- package/dist/cli/skill/manifest.js +101 -0
- package/dist/cli/skill/prefs.d.ts +9 -0
- package/dist/cli/skill/prefs.js +32 -0
- package/dist/cli/skill/reminders.d.ts +15 -0
- package/dist/cli/skill/reminders.js +105 -0
- package/dist/cli/skill/tar.d.ts +17 -0
- package/dist/cli/skill/tar.js +195 -0
- package/dist/cli/snapshot/index.d.ts +24 -0
- package/dist/cli/snapshot/index.js +146 -0
- package/dist/cli/source/access.d.ts +45 -0
- package/dist/cli/source/access.js +563 -0
- package/dist/cli/source/control.d.ts +103 -0
- package/dist/cli/source/control.js +546 -0
- package/dist/cli/source/delete.d.ts +89 -0
- package/dist/cli/source/delete.js +463 -0
- package/dist/cli/source/index.d.ts +288 -0
- package/dist/cli/source/index.js +1348 -0
- package/dist/cli/source/share.d.ts +65 -0
- package/dist/cli/source/share.js +530 -0
- package/dist/cli/source/upload.d.ts +62 -0
- package/dist/cli/source/upload.js +258 -0
- package/dist/cli/source/write.d.ts +77 -0
- package/dist/cli/source/write.js +335 -0
- package/dist/cli/spawn.d.ts +28 -0
- package/dist/cli/spawn.js +81 -0
- package/dist/cli/target.d.ts +22 -0
- package/dist/cli/target.js +85 -0
- package/dist/cli/tasks/index.d.ts +38 -0
- package/dist/cli/tasks/index.js +365 -0
- package/dist/cli/team/index.d.ts +37 -0
- package/dist/cli/team/index.js +407 -0
- package/dist/cli/telemetry.d.ts +23 -0
- package/dist/cli/telemetry.js +262 -0
- package/dist/cli/telemetryJournal.d.ts +26 -0
- package/dist/cli/telemetryJournal.js +104 -0
- package/dist/cli/update/index.d.ts +21 -0
- package/dist/cli/update/index.js +284 -0
- package/dist/cli/upload/index.d.ts +11 -0
- package/dist/cli/upload/index.js +261 -0
- package/dist/cli/upload/kinds.d.ts +10 -0
- package/dist/cli/upload/kinds.js +85 -0
- package/dist/cli/upload/multipart.d.ts +21 -0
- package/dist/cli/upload/multipart.js +248 -0
- package/dist/cli/vault/affected-preview.d.ts +15 -0
- package/dist/cli/vault/affected-preview.js +38 -0
- package/dist/cli/vault/cloud.d.ts +55 -0
- package/dist/cli/vault/cloud.js +287 -0
- package/dist/cli/vault/format.d.ts +18 -0
- package/dist/cli/vault/format.js +104 -0
- package/dist/cli/vault/hostCredentials.d.ts +21 -0
- package/dist/cli/vault/hostCredentials.js +71 -0
- package/dist/cli/vault/hostSupersessions.d.ts +18 -0
- package/dist/cli/vault/hostSupersessions.js +68 -0
- package/dist/cli/vault/import.d.ts +3 -0
- package/dist/cli/vault/import.js +79 -0
- package/dist/cli/vault/index.d.ts +14 -0
- package/dist/cli/vault/index.js +225 -0
- package/dist/cli/vault/keys.d.ts +5 -0
- package/dist/cli/vault/keys.js +165 -0
- package/dist/cli/vault/kms.d.ts +6 -0
- package/dist/cli/vault/kms.js +169 -0
- package/dist/cli/vault/list.d.ts +13 -0
- package/dist/cli/vault/list.js +60 -0
- package/dist/cli/vault/listView.d.ts +21 -0
- package/dist/cli/vault/listView.js +123 -0
- package/dist/cli/vault/managementMetadata.d.ts +2 -0
- package/dist/cli/vault/managementMetadata.js +23 -0
- package/dist/cli/vault/mutations.d.ts +8 -0
- package/dist/cli/vault/mutations.js +151 -0
- package/dist/cli/vault/otp.d.ts +6 -0
- package/dist/cli/vault/otp.js +62 -0
- package/dist/cli/vault/otpIntent.d.ts +23 -0
- package/dist/cli/vault/otpIntent.js +76 -0
- package/dist/cli/vault/passImport.d.ts +25 -0
- package/dist/cli/vault/passImport.js +129 -0
- package/dist/cli/vault/passOtp.d.ts +51 -0
- package/dist/cli/vault/passOtp.js +101 -0
- package/dist/cli/vault/passStore.d.ts +26 -0
- package/dist/cli/vault/passStore.js +134 -0
- package/dist/cli/vault/passwordCommand.d.ts +39 -0
- package/dist/cli/vault/passwordCommand.js +101 -0
- package/dist/cli/vault/passwordProbe.d.ts +27 -0
- package/dist/cli/vault/passwordProbe.js +282 -0
- package/dist/cli/vault/passwordRotation.d.ts +9 -0
- package/dist/cli/vault/passwordRotation.js +273 -0
- package/dist/cli/vault/rotationApi.d.ts +13 -0
- package/dist/cli/vault/rotationApi.js +58 -0
- package/dist/cli/vault/rotationCommand.d.ts +2 -0
- package/dist/cli/vault/rotationCommand.js +75 -0
- package/dist/cli/vault/rotationEngine.d.ts +19 -0
- package/dist/cli/vault/rotationEngine.js +65 -0
- package/dist/cli/vault/rotationHelperSource.d.ts +2 -0
- package/dist/cli/vault/rotationHelperSource.js +3 -0
- package/dist/cli/vault/rotationInput.d.ts +11 -0
- package/dist/cli/vault/rotationInput.js +48 -0
- package/dist/cli/vault/rotationJournal.d.ts +16 -0
- package/dist/cli/vault/rotationJournal.js +183 -0
- package/dist/cli/vault/rotationKeys.d.ts +4 -0
- package/dist/cli/vault/rotationKeys.js +48 -0
- package/dist/cli/vault/rotationPrepare.d.ts +17 -0
- package/dist/cli/vault/rotationPrepare.js +108 -0
- package/dist/cli/vault/rotationRemote.d.ts +33 -0
- package/dist/cli/vault/rotationRemote.js +156 -0
- package/dist/cli/vault/rotationState.d.ts +42 -0
- package/dist/cli/vault/rotationState.js +115 -0
- package/dist/cli/vault/rotationTransport.d.ts +18 -0
- package/dist/cli/vault/rotationTransport.js +71 -0
- package/dist/cli/vault/sshSource.d.ts +18 -0
- package/dist/cli/vault/sshSource.js +196 -0
- package/dist/cli/vault/sshSync.d.ts +17 -0
- package/dist/cli/vault/sshSync.js +224 -0
- package/dist/cli/vault/sshTransfer.d.ts +22 -0
- package/dist/cli/vault/sshTransfer.js +140 -0
- package/dist/cli/vault/terraformState.d.ts +66 -0
- package/dist/cli/vault/terraformState.js +252 -0
- package/dist/cli/vault/terraformStateCommand.d.ts +2 -0
- package/dist/cli/vault/terraformStateCommand.js +61 -0
- package/dist/cli/vault/tree.d.ts +43 -0
- package/dist/cli/vault/tree.js +292 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/cli/version.js +9 -0
- package/dist/cli/workflow/index.d.ts +76 -0
- package/dist/cli/workflow/index.js +826 -0
- package/dist/cli/workflow/validate.d.ts +19 -0
- package/dist/cli/workflow/validate.js +353 -0
- package/dist/package.json +1 -0
- package/package.json +28 -10
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
interface SourceCapabilities {
|
|
3
|
+
use: boolean;
|
|
4
|
+
editManagedObjects: boolean;
|
|
5
|
+
manageSettings: boolean;
|
|
6
|
+
deleteSource: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The PRODUCT a Source's external layer points at — `{id, label}`, named by
|
|
10
|
+
* the server (dreamlake-server src/sources/v1/productIdentity.ts).
|
|
11
|
+
*
|
|
12
|
+
* `id` is the stable key — the value the list's `provider` filter matches —
|
|
13
|
+
* and `label` is what a person reads ("Hugging Face", "Cloudflare R2").
|
|
14
|
+
* Servers from before the product-identity change published only a display
|
|
15
|
+
* string, `externalProvider`; {@link readSourceProvider} folds both
|
|
16
|
+
* generations of the wire into this one shape.
|
|
17
|
+
*/
|
|
18
|
+
export interface ProviderIdentity {
|
|
19
|
+
id: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
22
|
+
interface Source {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string | null;
|
|
26
|
+
lifecycle: "active" | "disabled";
|
|
27
|
+
hasExternal: boolean;
|
|
28
|
+
/** What the external layer points at, or null for a Source with none. */
|
|
29
|
+
provider: ProviderIdentity | null;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
capabilities: SourceCapabilities;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* One entry of the RESOLVED view — the union of the internal layer and the
|
|
35
|
+
* external one, with the winner already decided server-side.
|
|
36
|
+
*
|
|
37
|
+
* `canPreview` / `canDownload` / `canDelete` are UI hints and nothing more.
|
|
38
|
+
* The server states this outright (adapters/types.ts:49): they grant no
|
|
39
|
+
* permission, are never consulted when a capability is requested, and are
|
|
40
|
+
* carried in a page that a cursor can replay — so they are necessarily stale.
|
|
41
|
+
*/
|
|
42
|
+
interface SourceEntry {
|
|
43
|
+
name: string;
|
|
44
|
+
path: string;
|
|
45
|
+
kind: "file" | "directory";
|
|
46
|
+
/** Carried on the wire but not consumed here: the external arm's `provider`
|
|
47
|
+
* is `{id, label}` on current servers and a bare label string before the
|
|
48
|
+
* product-identity change, and nothing in browse output renders it. */
|
|
49
|
+
origin: {
|
|
50
|
+
kind: "dreamlake-storage";
|
|
51
|
+
} | {
|
|
52
|
+
kind: "external";
|
|
53
|
+
provider: unknown;
|
|
54
|
+
};
|
|
55
|
+
size: number | null;
|
|
56
|
+
modifiedAt: string | null;
|
|
57
|
+
mediaType: string | null;
|
|
58
|
+
canPreview: boolean;
|
|
59
|
+
canDownload: boolean;
|
|
60
|
+
canDelete: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** Stop runaway recursion into a whole bucket. Surfaced, never silent. */
|
|
63
|
+
declare const MAX_ENTRIES = 10000;
|
|
64
|
+
export declare function ctx(nsFlag?: string): Promise<{
|
|
65
|
+
token: string;
|
|
66
|
+
remote: string;
|
|
67
|
+
ns: string;
|
|
68
|
+
} | null>;
|
|
69
|
+
export type Ctx = NonNullable<Awaited<ReturnType<typeof ctx>>>;
|
|
70
|
+
/**
|
|
71
|
+
* One URL path segment, encoded as one.
|
|
72
|
+
*
|
|
73
|
+
* Namespace slugs and Source ids reach this module from a command line — the
|
|
74
|
+
* slug directly from `--namespace`, the id from a name the caller typed — and a
|
|
75
|
+
* `/` or a `?` in either is not a bad argument, it is a DIFFERENT request.
|
|
76
|
+
* `--namespace 'a/../../b'` interpolated raw addresses another namespace's
|
|
77
|
+
* route while looking like a typo. Encoding keeps a malformed argument a 404.
|
|
78
|
+
*
|
|
79
|
+
* This applies to PATH parameters only. An object's canonical path is not one:
|
|
80
|
+
* §7 puts it in the query string or the body, where it travels as a value and
|
|
81
|
+
* is encoded by the query builder. Nothing here normalizes, trims or re-splits
|
|
82
|
+
* a canonical path — the server owns what a valid one is, and a client that
|
|
83
|
+
* tidied it would change which object was addressed.
|
|
84
|
+
*/
|
|
85
|
+
export declare function seg(v: string): string;
|
|
86
|
+
/**
|
|
87
|
+
* Turn a transport error into something a user can act on. The server's own
|
|
88
|
+
* message is usually good; these three statuses are the ones where it isn't
|
|
89
|
+
* specific enough to tell you what to do next.
|
|
90
|
+
*/
|
|
91
|
+
export declare function explain(err: unknown): string;
|
|
92
|
+
/**
|
|
93
|
+
* Shell-quote a path for display, but only when stdout is a terminal — the
|
|
94
|
+
* same rule GNU ls follows.
|
|
95
|
+
*
|
|
96
|
+
* A path printed here is usually one the user is about to copy straight into
|
|
97
|
+
* `source fetch`, and source paths carry spaces constantly (screen recordings,
|
|
98
|
+
* anything named in a GUI). Printed bare, it pastes as two arguments and the
|
|
99
|
+
* server answers with a 400 about a path they never typed. Printed quoted, it
|
|
100
|
+
* pastes correctly. When stdout is a pipe the consumer wants the raw bytes, so
|
|
101
|
+
* nothing is added — use --print0 for paths that need to survive xargs.
|
|
102
|
+
*/
|
|
103
|
+
declare function displayPath(p: string): string;
|
|
104
|
+
/**
|
|
105
|
+
* Reject anything that is not already a Source v1 canonical path.
|
|
106
|
+
*
|
|
107
|
+
* REJECTS rather than repairs, which is the whole point. The server states the
|
|
108
|
+
* rule and the reason (paths.ts:30): "Deliberately does NOT repair: no
|
|
109
|
+
* collapsing of `//`, no stripping of a leading slash, no resolving of `..`."
|
|
110
|
+
* A client that quietly rewrote `/dbx/x.png` into `dbx/x.png` would address a
|
|
111
|
+
* DIFFERENT object and report success for it.
|
|
112
|
+
*
|
|
113
|
+
* Canonical form (core contract §5.1): the root is `""`, and every other path
|
|
114
|
+
* is a relative path with no leading or trailing slash, no empty segment and
|
|
115
|
+
* no `.` or `..`.
|
|
116
|
+
*
|
|
117
|
+
* This is a client-side pre-check for a better message, never the authority —
|
|
118
|
+
* the server validates every path again and is the only authority on it.
|
|
119
|
+
*
|
|
120
|
+
* The absolute-path affordance this replaces existed for Dropbox, whose API
|
|
121
|
+
* needs a leading slash. Source v1 has no Dropbox connector; the capability
|
|
122
|
+
* left with the migration. If one is ever added, mapping a canonical relative
|
|
123
|
+
* path onto the provider's absolute path is the connector's job — `/` must not
|
|
124
|
+
* leak back into the public Source path contract.
|
|
125
|
+
*/
|
|
126
|
+
declare function checkPath(p: string): string | null;
|
|
127
|
+
/**
|
|
128
|
+
* Refuse a response that is not a Source v1 response.
|
|
129
|
+
*
|
|
130
|
+
* Without this the failure is silent and worse than an error. A legacy server
|
|
131
|
+
* answers list with `{sources: [...]}`, and `res.items ?? []` turned that into
|
|
132
|
+
* an empty array — so the CLI reported "no sources in namespace 'x' — connect
|
|
133
|
+
* one in the DreamLake UI first" to a namespace full of Sources. The user is
|
|
134
|
+
* told a fact about their data that is false, and the actual cause, a server
|
|
135
|
+
* speaking the older protocol, is nowhere on screen.
|
|
136
|
+
*
|
|
137
|
+
* Browse has the same shape of bug with worse consequences: a legacy entry
|
|
138
|
+
* carries `type: "container" | "leaf"` where v1 carries `kind`, so every entry
|
|
139
|
+
* would classify as a file, and `-r` would download nothing while reporting
|
|
140
|
+
* success.
|
|
141
|
+
*
|
|
142
|
+
* So the required fields are checked, and a missing one is named. The old
|
|
143
|
+
* protocol is called out by name where its marker is recognisable, because
|
|
144
|
+
* "upgrade the server" is a different action from "report a bug".
|
|
145
|
+
*/
|
|
146
|
+
export declare function bad(what: string): never;
|
|
147
|
+
export declare function isObject(v: unknown): v is Record<string, unknown>;
|
|
148
|
+
/** A field the contract declares required AND nullable. */
|
|
149
|
+
export declare function nullableString(v: unknown): boolean;
|
|
150
|
+
export declare function checkBooleans(v: unknown, keys: string[], where: string): void;
|
|
151
|
+
/**
|
|
152
|
+
* One wire spelling of a provider, as the canonical identity.
|
|
153
|
+
*
|
|
154
|
+
* Current servers name the product as `{id, label}`; servers from before the
|
|
155
|
+
* product-identity change published a bare display label. A label alone
|
|
156
|
+
* becomes both halves — the old wire carried no stable id, and the label is
|
|
157
|
+
* the only key it ever published, so `id` degrades to "the label" rather than
|
|
158
|
+
* to a value this client invented.
|
|
159
|
+
*
|
|
160
|
+
* Returns null for anything else: an empty string, a pair with either half
|
|
161
|
+
* missing or empty, a number. Those are not degraded providers — rendered,
|
|
162
|
+
* they would be a blank chip on a Source that claims an external layer.
|
|
163
|
+
*/
|
|
164
|
+
export declare function asProviderIdentity(v: unknown): ProviderIdentity | null;
|
|
165
|
+
/**
|
|
166
|
+
* The provider of a Source summary or detail, across both generations of the
|
|
167
|
+
* wire.
|
|
168
|
+
*
|
|
169
|
+
* Required and nullable in each generation: current servers carry
|
|
170
|
+
* `provider: {id, label} | null` (dreamlake-server src/sources/v1/dto.ts),
|
|
171
|
+
* older ones `externalProvider: string | null`, and in both `null` means "no
|
|
172
|
+
* external layer". So a projection carrying NEITHER key is refused — absent
|
|
173
|
+
* would be rendered as a blank provider for a Source that has one — and so is
|
|
174
|
+
* a value that fits neither spelling. `provider` wins when both are present:
|
|
175
|
+
* it is the current contract, and the legacy field is the one a transitional
|
|
176
|
+
* server would keep emitting for old clients.
|
|
177
|
+
*/
|
|
178
|
+
export declare function readSourceProvider(res: Record<string, unknown>, where: string): ProviderIdentity | null;
|
|
179
|
+
/** The filters `GET /namespaces/:ns/sources` declares. Nothing else is sent. */
|
|
180
|
+
export interface SourceListFilters {
|
|
181
|
+
nameContains?: string;
|
|
182
|
+
provider?: string;
|
|
183
|
+
hasExternal?: boolean;
|
|
184
|
+
lifecycle?: "active" | "disabled";
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Resolve `--source <name>` to a source record.
|
|
188
|
+
*
|
|
189
|
+
* Narrowed server-side with `nameContains` and then matched EXACTLY here, which
|
|
190
|
+
* is two different jobs and needs both halves. `nameContains` is a substring
|
|
191
|
+
* search, so it cannot decide which Source was meant — `prod` matches
|
|
192
|
+
* `prod-eu` — and the exact comparison is what does. What the filter buys is
|
|
193
|
+
* that the walk is over the handful of Sources whose names contain the term,
|
|
194
|
+
* not over the whole Namespace: resolving one name used to pull every Source in
|
|
195
|
+
* pages of a hundred, so a Namespace with ten thousand of them cost a hundred
|
|
196
|
+
* round trips before the first byte of the actual command.
|
|
197
|
+
*
|
|
198
|
+
* A Source name is at most 64 characters and the search term cap is 64 code
|
|
199
|
+
* points, so any name that could match is a legal term. There is no case where
|
|
200
|
+
* this has to fall back to an unfiltered walk.
|
|
201
|
+
*
|
|
202
|
+
* On a miss, name what IS available — under the same filter, so the suggestions
|
|
203
|
+
* are near misses rather than the first hundred Sources in the Namespace.
|
|
204
|
+
*/
|
|
205
|
+
export declare function resolveSource(c: Ctx, name: string): Promise<Source>;
|
|
206
|
+
/** What a listing should contain. Default is everything, the way ls works. */
|
|
207
|
+
type Include = "all" | "dirs" | "files";
|
|
208
|
+
/**
|
|
209
|
+
* Collect entries under `root`.
|
|
210
|
+
*
|
|
211
|
+
* Depth: one level by default. `browse` with no path starts at the source
|
|
212
|
+
* root, and recursing there automatically would walk an entire bucket on the
|
|
213
|
+
* user's first command. `-r` opts into the full walk, capped at MAX_ENTRIES so
|
|
214
|
+
* a bucket with a million objects fails loudly instead of hanging.
|
|
215
|
+
*
|
|
216
|
+
* Contents: everything by default. Hiding directories made an ordinary folder
|
|
217
|
+
* of folders report "0 files", which reads as "nothing here" — directories are
|
|
218
|
+
* marked with a trailing slash, so a mixed listing is unambiguous.
|
|
219
|
+
*/
|
|
220
|
+
declare function collect(c: Ctx, sourceId: string, root: string, opts: {
|
|
221
|
+
recursive: boolean;
|
|
222
|
+
include: Include;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
entries: SourceEntry[];
|
|
225
|
+
truncated: boolean;
|
|
226
|
+
containers: number;
|
|
227
|
+
leaves: number;
|
|
228
|
+
}>;
|
|
229
|
+
/**
|
|
230
|
+
* Run `worker` over `items` with at most `limit` in flight. Never rejects —
|
|
231
|
+
* a failing item yields its error so one bad object in a thousand-file
|
|
232
|
+
* download doesn't discard the 999 that succeeded.
|
|
233
|
+
*/
|
|
234
|
+
declare function pool<T, R>(items: T[], limit: number, worker: (item: T, index: number) => Promise<R>): Promise<({
|
|
235
|
+
ok: true;
|
|
236
|
+
value: R;
|
|
237
|
+
} | {
|
|
238
|
+
ok: false;
|
|
239
|
+
error: Error;
|
|
240
|
+
})[]>;
|
|
241
|
+
export interface SourceListOptions {
|
|
242
|
+
namespace?: string;
|
|
243
|
+
limit?: string;
|
|
244
|
+
cursor?: string;
|
|
245
|
+
nameContains?: string;
|
|
246
|
+
provider?: string;
|
|
247
|
+
/** `--external` / `--no-external`; absent means "either". */
|
|
248
|
+
hasExternal?: boolean;
|
|
249
|
+
lifecycle?: string;
|
|
250
|
+
json?: boolean;
|
|
251
|
+
}
|
|
252
|
+
export declare function runSourceList(opts: SourceListOptions): Promise<number>;
|
|
253
|
+
export declare function runSourceConnectors(opts: {
|
|
254
|
+
namespace?: string;
|
|
255
|
+
json?: boolean;
|
|
256
|
+
}): Promise<number>;
|
|
257
|
+
export declare function runSourceBrowse(pathArg: string | undefined, opts: {
|
|
258
|
+
source: string;
|
|
259
|
+
namespace?: string;
|
|
260
|
+
dirs?: boolean;
|
|
261
|
+
files?: boolean;
|
|
262
|
+
recursive?: boolean;
|
|
263
|
+
json?: boolean;
|
|
264
|
+
print0?: boolean;
|
|
265
|
+
}): Promise<number>;
|
|
266
|
+
export declare function runSourceFetch(pathArg: string, opts: {
|
|
267
|
+
source: string;
|
|
268
|
+
namespace?: string;
|
|
269
|
+
json?: boolean;
|
|
270
|
+
}): Promise<number>;
|
|
271
|
+
export declare function runSourceDownload(pathArg: string, opts: {
|
|
272
|
+
source: string;
|
|
273
|
+
namespace?: string;
|
|
274
|
+
output?: string;
|
|
275
|
+
recursive?: boolean;
|
|
276
|
+
}): Promise<number>;
|
|
277
|
+
/**
|
|
278
|
+
* Reject extra positional arguments, and say why they usually happen.
|
|
279
|
+
*
|
|
280
|
+
* Source paths carry spaces far more often than repo paths do — screen
|
|
281
|
+
* recordings, exported assets, anything a person named in a GUI. Unquoted,
|
|
282
|
+
* the shell splits one of those into several argv entries, Commander's default
|
|
283
|
+
* is to ignore the extras, and the user gets a typed path error from the
|
|
284
|
+
* server about a path they never typed.
|
|
285
|
+
*/
|
|
286
|
+
export declare function strictArgs(cmd: Command): Command;
|
|
287
|
+
export declare function registerSourceCommand(program: Command): void;
|
|
288
|
+
export { collect, checkPath, displayPath, pool, MAX_ENTRIES, };
|