@dreamlake/dreamlake-cli 0.88.0 → 0.89.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 +53 -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 +2330 -0
- package/dist/api/index.js +114 -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 +75 -0
- package/dist/api/note-files.js +65 -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-toc.d.ts +2 -0
- package/dist/api/note-toc.js +2 -0
- package/dist/api/notes.d.ts +304 -0
- package/dist/api/notes.js +181 -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/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 +120 -0
- package/dist/cli/notes/files-commands.js +554 -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 +1303 -0
- package/dist/cli/notes/linger.d.ts +59 -0
- package/dist/cli/notes/linger.js +339 -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 +84 -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,292 @@
|
|
|
1
|
+
import { request } from "./index.js";
|
|
2
|
+
import { resolveRemote, resolveToken } from "../config.js";
|
|
3
|
+
import { pageSize, validCursor } from "./list.js";
|
|
4
|
+
import { kmsView } from "./kms.js";
|
|
5
|
+
import { emitKeypressEvents } from "node:readline";
|
|
6
|
+
const fail = () => {
|
|
7
|
+
throw Error("Invalid vault tree metadata");
|
|
8
|
+
};
|
|
9
|
+
const path = (v) => typeof v === "string" &&
|
|
10
|
+
v.length <= 512 &&
|
|
11
|
+
/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(v);
|
|
12
|
+
const within = (v, p) => v === p || v.startsWith(p + "/");
|
|
13
|
+
const object = (v, keys) => {
|
|
14
|
+
if (!v ||
|
|
15
|
+
typeof v !== "object" ||
|
|
16
|
+
Array.isArray(v) ||
|
|
17
|
+
Object.keys(v).some((k) => !keys.includes(k)))
|
|
18
|
+
fail();
|
|
19
|
+
};
|
|
20
|
+
const text = (v, max = 2048) => typeof v === "string" && v.length <= max;
|
|
21
|
+
export function validateTree(value, prefix, limit) {
|
|
22
|
+
object(value, [
|
|
23
|
+
"schemaVersion",
|
|
24
|
+
"prefix",
|
|
25
|
+
"observedAt",
|
|
26
|
+
"rows",
|
|
27
|
+
"nextCursor",
|
|
28
|
+
]);
|
|
29
|
+
if (value.schemaVersion !== 1 ||
|
|
30
|
+
value.prefix !== prefix ||
|
|
31
|
+
!text(value.observedAt) ||
|
|
32
|
+
!/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}Z$/.test(value.observedAt) ||
|
|
33
|
+
!Number.isFinite(Date.parse(value.observedAt)) ||
|
|
34
|
+
new Date(value.observedAt).toISOString() !== value.observedAt ||
|
|
35
|
+
!Array.isArray(value.rows) ||
|
|
36
|
+
value.rows.length > limit)
|
|
37
|
+
fail();
|
|
38
|
+
let prior = "";
|
|
39
|
+
for (const r of value.rows) {
|
|
40
|
+
object(r, ["kind", "path", "parentPath", "entry", "policy"]);
|
|
41
|
+
if (!["prefix", "entry"].includes(r.kind) ||
|
|
42
|
+
!path(r.path) ||
|
|
43
|
+
!within(r.path, prefix) ||
|
|
44
|
+
r.parentPath !==
|
|
45
|
+
(r.path === prefix ? null : r.path.slice(0, r.path.lastIndexOf("/"))))
|
|
46
|
+
fail();
|
|
47
|
+
const order = r.path + "\0" + r.kind;
|
|
48
|
+
if (prior && order <= prior)
|
|
49
|
+
fail();
|
|
50
|
+
prior = order;
|
|
51
|
+
if (r.kind === "entry") {
|
|
52
|
+
object(r.entry, [
|
|
53
|
+
"name",
|
|
54
|
+
"type",
|
|
55
|
+
"env",
|
|
56
|
+
"keyName",
|
|
57
|
+
"fileName",
|
|
58
|
+
"deleteAt",
|
|
59
|
+
"purgeAt",
|
|
60
|
+
"expiresAt",
|
|
61
|
+
"revision",
|
|
62
|
+
]);
|
|
63
|
+
if (r.entry.name !== r.path ||
|
|
64
|
+
!["string", "totp", "hotp"].includes(r.entry.type) ||
|
|
65
|
+
!((Number.isSafeInteger(r.entry.revision) && r.entry.revision > 0) ||
|
|
66
|
+
(typeof r.entry.revision === "string" &&
|
|
67
|
+
/^[1-9][0-9]*$/.test(r.entry.revision))))
|
|
68
|
+
fail();
|
|
69
|
+
for (const [k, v] of Object.entries(r.entry))
|
|
70
|
+
if (!["revision"].includes(k) && v !== null && !text(v))
|
|
71
|
+
fail();
|
|
72
|
+
}
|
|
73
|
+
else if ("entry" in r)
|
|
74
|
+
fail();
|
|
75
|
+
const p = r.policy;
|
|
76
|
+
object(p, [
|
|
77
|
+
"state",
|
|
78
|
+
"reason",
|
|
79
|
+
"governingPrefix",
|
|
80
|
+
"keyRef",
|
|
81
|
+
"keyId",
|
|
82
|
+
"provider",
|
|
83
|
+
"epoch",
|
|
84
|
+
"migration",
|
|
85
|
+
]);
|
|
86
|
+
if (!["known", "unknown", "unavailable"].includes(p.state) ||
|
|
87
|
+
(p.governingPrefix !== null &&
|
|
88
|
+
(!path(p.governingPrefix) || !within(r.path, p.governingPrefix))))
|
|
89
|
+
fail();
|
|
90
|
+
for (const k of ["reason", "keyRef", "keyId", "provider", "epoch"])
|
|
91
|
+
if (p[k] !== null && !text(p[k]))
|
|
92
|
+
fail();
|
|
93
|
+
if (p.state === "known" &&
|
|
94
|
+
(!p.keyId || !p.keyRef || !["aws-kms", "gcp-kms"].includes(p.provider)))
|
|
95
|
+
fail();
|
|
96
|
+
if (p.state !== "known" &&
|
|
97
|
+
[p.keyId, p.keyRef, p.provider].some((v) => v !== null))
|
|
98
|
+
fail();
|
|
99
|
+
object(p.migration, ["state", "requestId"]);
|
|
100
|
+
if (!["none", "migrating", "completed", "unknown"].includes(p.migration.state) ||
|
|
101
|
+
(p.migration.requestId !== null && !text(p.migration.requestId, 128)))
|
|
102
|
+
fail();
|
|
103
|
+
}
|
|
104
|
+
if (value.nextCursor !== null)
|
|
105
|
+
validCursor(value.nextCursor);
|
|
106
|
+
if (value.nextCursor !== null && !value.rows.length)
|
|
107
|
+
fail();
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
export function treeReader(prefix) {
|
|
111
|
+
if (!path(prefix))
|
|
112
|
+
throw Error("Tree requires an explicit prefix");
|
|
113
|
+
const token = resolveToken();
|
|
114
|
+
if (!token)
|
|
115
|
+
throw Error("Vault authentication required");
|
|
116
|
+
const connection = { remote: resolveRemote(), token };
|
|
117
|
+
return async (options = {}) => {
|
|
118
|
+
const limit = pageSize(options.limit), query = new URLSearchParams({ prefix, limit: String(limit) });
|
|
119
|
+
if (options.cursor !== undefined)
|
|
120
|
+
query.set("cursor", validCursor(options.cursor));
|
|
121
|
+
return validateTree(await request("/v1/vault/tree?" + query, undefined, "GET", undefined, {}, connection), prefix, limit);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/** Escape controls including ANSI/OSC; metadata is never interpreted as terminal commands. */
|
|
125
|
+
export const governingLabel = (policy) => policy.governingPrefix ??
|
|
126
|
+
(policy.state === "known" ? "managed fallback" : policy.state);
|
|
127
|
+
export const terminalText = (v) => String(v ?? "unknown").replace(/[\x00-\x1f\x7f-\x9f]/g, (c) => "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0"));
|
|
128
|
+
/** The existing preview is a counts/blockers observation, never a write permit. */
|
|
129
|
+
export function policyPreviewReader(keyRef) {
|
|
130
|
+
if (keyRef !== undefined && !/^[A-Za-z0-9_-]{1,64}$/.test(keyRef))
|
|
131
|
+
throw Error("Invalid preview key reference");
|
|
132
|
+
const token = resolveToken();
|
|
133
|
+
if (!token)
|
|
134
|
+
throw Error("Vault authentication required");
|
|
135
|
+
const connection = { remote: resolveRemote(), token };
|
|
136
|
+
return async (row) => {
|
|
137
|
+
if (row.kind !== "prefix" || !path(row.path) || !keyRef)
|
|
138
|
+
throw Error("Select a prefix and supply --preview-key");
|
|
139
|
+
const view = kmsView(await request("/v1/vault/kms/preview", { prefix: row.path, keyRef }, "POST", undefined, {}, connection));
|
|
140
|
+
if (view.prefix !== row.path || view.selectedKeyRef !== keyRef || view.readiness !== "not-probed")
|
|
141
|
+
throw Error("Mismatched preview");
|
|
142
|
+
return view;
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
export function previewLines(view) {
|
|
146
|
+
const field = (key) => terminalText(view[key] ?? "unknown");
|
|
147
|
+
return [
|
|
148
|
+
"READ-ONLY POLICY PREVIEW — counts/blockers, not affected-entry list",
|
|
149
|
+
`Prefix: ${field("prefix")} | selected key: ${field("selectedKeyRef")}`,
|
|
150
|
+
`Current governing prefix: ${view.governingPrefix === null ? "managed fallback" : field("governingPrefix")} | key: ${field("keyRef")}`,
|
|
151
|
+
`Can activate: ${field("canActivate")} | can migrate: ${field("canMigrate")}`,
|
|
152
|
+
`Migration required: ${field("migrationRequired")} | supported: ${field("migrationSupported")}`,
|
|
153
|
+
`Has entries: ${field("hasEntries")} | retained receipts/snapshots: ${field("hasWriteReceipts")}/${field("hasHotpReceipts")}/${field("hasPasswordSnapshots")}`,
|
|
154
|
+
`Retained entries: ${field("entryCount")} | write receipts: ${field("writeReceiptCount")}`,
|
|
155
|
+
`HOTP receipts: ${field("hotpReceiptCount")} | password snapshots: ${field("passwordSnapshotCount")}`,
|
|
156
|
+
`Overlapping prefixes: ${terminalText(view.overlappingPrefixes.join(", ") || "none")}`,
|
|
157
|
+
"KMS readiness: not-probed. Observation only; no activation or migration requested.",
|
|
158
|
+
];
|
|
159
|
+
}
|
|
160
|
+
export async function showTree(prefix, options) {
|
|
161
|
+
if (!options.toJson && (!process.stdin.isTTY || !process.stdout.isTTY))
|
|
162
|
+
throw Error("Tree requires a terminal; use --tree --to-json");
|
|
163
|
+
if (options.toJson && options.previewKey)
|
|
164
|
+
throw Error("Preview requires interactive tree");
|
|
165
|
+
const preview = policyPreviewReader(options.previewKey);
|
|
166
|
+
const load = treeReader(prefix);
|
|
167
|
+
let page = await load(options);
|
|
168
|
+
if (options.toJson) {
|
|
169
|
+
process.stdout.write(JSON.stringify(page, null, 2) + "\n");
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const observed = new Map(page.rows.map((row) => [row, page.observedAt]));
|
|
173
|
+
const rows = [...page.rows], seen = new Set(options.cursor ? [options.cursor] : []), collapsed = new Set();
|
|
174
|
+
let selected = 0, busy = false, closed = false, error = "", previewOutput = [];
|
|
175
|
+
const visible = () => rows.filter((r) => ![...collapsed].some((p) => r.path.startsWith(p + "/")));
|
|
176
|
+
const render = () => {
|
|
177
|
+
if (closed)
|
|
178
|
+
return;
|
|
179
|
+
const list = visible();
|
|
180
|
+
selected = Math.min(selected, Math.max(0, list.length - 1));
|
|
181
|
+
const width = Math.max(20, process.stdout.columns || 80), height = previewOutput.length ? 1 : Math.max(3, (process.stdout.rows || 24) - 8);
|
|
182
|
+
const start = Math.max(0, selected - height + 1);
|
|
183
|
+
const lines = [
|
|
184
|
+
`Vault ${terminalText(prefix)} — metadata only`,
|
|
185
|
+
"↑/↓ select · ←/→ collapse/expand · n next · p preview · q quit",
|
|
186
|
+
];
|
|
187
|
+
for (const [ridx, r] of list.slice(start, start + height).entries())
|
|
188
|
+
lines.push(`${start + ridx === selected ? ">" : " "} ${r.kind === "prefix" ? "[prefix]" : "[entry]"} ${terminalText(r.path)} | ${terminalText(r.policy.keyRef)} | ${r.policy.migration.state}`);
|
|
189
|
+
const row = list[selected];
|
|
190
|
+
if (row)
|
|
191
|
+
lines.push(`Governed by: ${terminalText(governingLabel(row.policy))}`, `Policy key: ${terminalText(row.policy.keyId)} (${row.policy.state})`, `Observed page: ${observed.get(row)}; ciphertext key may differ`);
|
|
192
|
+
lines.push(...previewOutput);
|
|
193
|
+
lines.push(error ||
|
|
194
|
+
(busy
|
|
195
|
+
? "Loading…"
|
|
196
|
+
: page.nextCursor
|
|
197
|
+
? "More available — n"
|
|
198
|
+
: "End of current listing"));
|
|
199
|
+
process.stdout.write("\x1b[2J\x1b[H" + lines.map((l) => l.slice(0, width)).join("\n") + "\n");
|
|
200
|
+
};
|
|
201
|
+
emitKeypressEvents(process.stdin);
|
|
202
|
+
const wasRaw = process.stdin.isRaw;
|
|
203
|
+
process.stdin.setRawMode(true);
|
|
204
|
+
process.stdin.resume();
|
|
205
|
+
try {
|
|
206
|
+
await new Promise((resolve) => {
|
|
207
|
+
const done = () => {
|
|
208
|
+
closed = true;
|
|
209
|
+
process.stdin.off("keypress", key);
|
|
210
|
+
process.stdout.off("resize", render);
|
|
211
|
+
resolve();
|
|
212
|
+
};
|
|
213
|
+
const key = async (_str, k) => {
|
|
214
|
+
if (k?.name === "q" || (k?.ctrl && k?.name === "c")) {
|
|
215
|
+
done();
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (busy)
|
|
219
|
+
return;
|
|
220
|
+
const list = visible();
|
|
221
|
+
if (k?.name === "p") {
|
|
222
|
+
const row = list[selected];
|
|
223
|
+
previewOutput = [];
|
|
224
|
+
if (!row || row.kind !== "prefix" || !options.previewKey) {
|
|
225
|
+
error = "Select a prefix and supply --preview-key; no preview requested.";
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
busy = true;
|
|
229
|
+
render();
|
|
230
|
+
try {
|
|
231
|
+
const result = await preview(row);
|
|
232
|
+
if (!closed) {
|
|
233
|
+
previewOutput = previewLines(result);
|
|
234
|
+
error = "";
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
catch {
|
|
238
|
+
if (!closed)
|
|
239
|
+
error = "Policy preview unavailable; no changes requested. Press p to retry.";
|
|
240
|
+
}
|
|
241
|
+
busy = false;
|
|
242
|
+
}
|
|
243
|
+
render();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
previewOutput = [];
|
|
247
|
+
if (k?.name === "down")
|
|
248
|
+
selected = Math.min(selected + 1, list.length - 1);
|
|
249
|
+
if (k?.name === "up")
|
|
250
|
+
selected = Math.max(0, selected - 1);
|
|
251
|
+
if (k?.name === "left" && list[selected]?.kind === "prefix")
|
|
252
|
+
collapsed.add(list[selected].path);
|
|
253
|
+
if (k?.name === "right" && list[selected])
|
|
254
|
+
collapsed.delete(list[selected].path);
|
|
255
|
+
if (k?.name === "n" && page.nextCursor) {
|
|
256
|
+
busy = true;
|
|
257
|
+
render();
|
|
258
|
+
try {
|
|
259
|
+
const cursor = page.nextCursor;
|
|
260
|
+
if (seen.has(cursor))
|
|
261
|
+
throw Error();
|
|
262
|
+
const next = await load({ limit: options.limit, cursor });
|
|
263
|
+
const last = rows.at(-1), first = next.rows[0];
|
|
264
|
+
if (last &&
|
|
265
|
+
first &&
|
|
266
|
+
first.path + "\0" + first.kind <= last.path + "\0" + last.kind)
|
|
267
|
+
throw Error();
|
|
268
|
+
for (const row of next.rows)
|
|
269
|
+
observed.set(row, next.observedAt);
|
|
270
|
+
rows.push(...next.rows);
|
|
271
|
+
seen.add(cursor);
|
|
272
|
+
page = next;
|
|
273
|
+
error = "";
|
|
274
|
+
}
|
|
275
|
+
catch {
|
|
276
|
+
error = "Metadata unavailable; no values read.";
|
|
277
|
+
}
|
|
278
|
+
busy = false;
|
|
279
|
+
}
|
|
280
|
+
render();
|
|
281
|
+
};
|
|
282
|
+
process.stdin.on("keypress", key);
|
|
283
|
+
process.stdout.on("resize", render);
|
|
284
|
+
render();
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
finally {
|
|
288
|
+
process.stdin.setRawMode(wasRaw);
|
|
289
|
+
process.stdin.pause();
|
|
290
|
+
process.stdout.write("\n");
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "0.89.0";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Build-time version of the running binary.
|
|
2
|
+
//
|
|
3
|
+
// Rewritten from package.json by `scripts/build-release.ts` before it
|
|
4
|
+
// compiles, so a published binary always reports the version it shipped as.
|
|
5
|
+
// The self-updater compares this against the channel pointer — a stale
|
|
6
|
+
// value means a binary that re-installs the same version forever.
|
|
7
|
+
//
|
|
8
|
+
// Editing this by hand does nothing for a release; bump package.json.
|
|
9
|
+
export const VERSION = "0.89.0";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import { type DreamlakeOpts } from "../compat/ctx.js";
|
|
3
|
+
import { type DreamdbIO } from "../compat/dreamdb.js";
|
|
4
|
+
export interface ReducedRun {
|
|
5
|
+
runId?: string;
|
|
6
|
+
body: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export declare function reduceRunFile(raw: unknown): ReducedRun;
|
|
9
|
+
export declare function runWorkflowList(opts: {
|
|
10
|
+
namespace?: string;
|
|
11
|
+
json?: boolean;
|
|
12
|
+
}): Promise<number>;
|
|
13
|
+
export declare function runWorkflowCreate(name: string, opts: {
|
|
14
|
+
namespace?: string;
|
|
15
|
+
file?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
tags?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
json?: boolean;
|
|
20
|
+
}): Promise<number>;
|
|
21
|
+
export declare function runWorkflowShow(name: string, opts: {
|
|
22
|
+
namespace?: string;
|
|
23
|
+
json?: boolean;
|
|
24
|
+
}): Promise<number>;
|
|
25
|
+
export declare function runWorkflowUpdate(name: string, opts: {
|
|
26
|
+
namespace?: string;
|
|
27
|
+
file?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
tags?: string;
|
|
30
|
+
message?: string;
|
|
31
|
+
json?: boolean;
|
|
32
|
+
}): Promise<number>;
|
|
33
|
+
export declare function runWorkflowDelete(name: string, opts: {
|
|
34
|
+
namespace?: string;
|
|
35
|
+
yes?: boolean;
|
|
36
|
+
}): Promise<number>;
|
|
37
|
+
export declare function runWorkflowPushRun(name: string, filePath: string, opts: {
|
|
38
|
+
namespace?: string;
|
|
39
|
+
json?: boolean;
|
|
40
|
+
}): Promise<number>;
|
|
41
|
+
export interface WatchRunDeps {
|
|
42
|
+
/** Sleep primitive — injectable so tests don't wait real backoff seconds. */
|
|
43
|
+
sleep?: (ms: number) => Promise<void>;
|
|
44
|
+
/** Terminal-push backoff schedule (ms between attempts). */
|
|
45
|
+
terminalRetryDelaysMs?: number[];
|
|
46
|
+
/** Grace window (ms) for the run file to first appear on cold start. */
|
|
47
|
+
startupGraceMs?: number;
|
|
48
|
+
}
|
|
49
|
+
export declare function runWorkflowWatchRun(name: string, filePath: string, opts: {
|
|
50
|
+
namespace?: string;
|
|
51
|
+
interval?: string;
|
|
52
|
+
}, deps?: WatchRunDeps): Promise<number>;
|
|
53
|
+
/** Dashboard origin (override DREAMLAKE_WEB_URL; else map known hosts;
|
|
54
|
+
* else strip leading api.). */
|
|
55
|
+
export declare function webBase(remote: string): string;
|
|
56
|
+
/** The '.workflow.json' (or '.json') suffix is optional — return the
|
|
57
|
+
* first candidate that reads, so `dreamlake workflow push <name>` just
|
|
58
|
+
* works. Null when nothing exists. */
|
|
59
|
+
export declare function resolveSpecFile(file: string): {
|
|
60
|
+
path: string;
|
|
61
|
+
text: string;
|
|
62
|
+
} | null;
|
|
63
|
+
export interface WorkflowPushArgs extends DreamlakeOpts {
|
|
64
|
+
file: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
namespace?: string;
|
|
67
|
+
}
|
|
68
|
+
export declare function runDreamlakeWorkflowPush(args: WorkflowPushArgs, deps?: {
|
|
69
|
+
dreamdb?: DreamdbIO;
|
|
70
|
+
}): Promise<number>;
|
|
71
|
+
export declare const APPEND_LOCAL_ERROR: {
|
|
72
|
+
error: string;
|
|
73
|
+
message: string;
|
|
74
|
+
};
|
|
75
|
+
export declare function runDreamlakeWorkflowAppendLocal(): Promise<number>;
|
|
76
|
+
export declare function registerWorkflowCommand(program: Command): void;
|