@dreamlake/dreamlake-cli 0.88.1 → 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,129 @@
|
|
|
1
|
+
/** Docker execution on an explicitly configured runner. No provider/control-plane credentials. */
|
|
2
|
+
import { readFileSync, realpathSync, statSync } from 'node:fs';
|
|
3
|
+
import { RunnerError } from './exec.js';
|
|
4
|
+
export function loadPodConfig(path) {
|
|
5
|
+
const c = JSON.parse(readFileSync(path, 'utf8'));
|
|
6
|
+
if (!/^(?:[-a-zA-Z0-9./_:]+@)?sha256:[a-f0-9]{64}$/.test(c.image) || !Array.isArray(c.repositories) || !c.repositories.length || !['none', 'bridge'].includes(c.network) || !Number.isFinite(c.cpus) || c.cpus <= 0 || c.cpus > 16 || !Number.isInteger(c.memoryMb) || c.memoryMb < 128 || c.memoryMb > 32768)
|
|
7
|
+
throw new Error('invalid pod config: pinned image, explicit repositories/network and bounded resources required');
|
|
8
|
+
c.repositories = c.repositories.map(p => realpathSync(p));
|
|
9
|
+
for (const path of Object.values(c.envFiles ?? {}))
|
|
10
|
+
if (!path.startsWith('/') || (statSync(path).mode & 0o077))
|
|
11
|
+
throw new Error('pod env files must be absolute and private (mode 600)');
|
|
12
|
+
return c;
|
|
13
|
+
}
|
|
14
|
+
export class Pods {
|
|
15
|
+
exec;
|
|
16
|
+
config;
|
|
17
|
+
owner;
|
|
18
|
+
constructor(exec, config, owner) {
|
|
19
|
+
this.exec = exec;
|
|
20
|
+
this.config = config;
|
|
21
|
+
this.owner = owner;
|
|
22
|
+
}
|
|
23
|
+
async inspect(binding) {
|
|
24
|
+
if (!/^dl-agent-[a-f0-9]{24}$/.test(binding.container) || binding.owner !== this.owner)
|
|
25
|
+
throw new RunnerError('pod_ownership_unverified');
|
|
26
|
+
const r = await this.exec('docker', ['inspect', '--format', '{{json .}}', binding.container], { timeoutMs: 10000 });
|
|
27
|
+
if (r.code !== 0)
|
|
28
|
+
throw new RunnerError('pod_missing');
|
|
29
|
+
const pod = JSON.parse(r.stdout);
|
|
30
|
+
if (pod.Config?.Labels?.['dreamlake.runner'] !== this.owner)
|
|
31
|
+
throw new RunnerError('pod_ownership_unverified');
|
|
32
|
+
return { id: String(pod.Id), running: pod.State?.Running === true };
|
|
33
|
+
}
|
|
34
|
+
async create(commandId, repo, provider, permission, signal, checkpoint) {
|
|
35
|
+
signal.throwIfAborted();
|
|
36
|
+
const path = realpathSync(repo);
|
|
37
|
+
// Exact allowlist: no parent path, symlink or agent-selected image/volume escapes.
|
|
38
|
+
if (!this.config.repositories.includes(path) || /[,\r\n]/.test(path))
|
|
39
|
+
throw new RunnerError('pod_repository_not_configured');
|
|
40
|
+
const binding = { kind: 'pod', container: `dl-agent-${commandId}`, owner: this.owner };
|
|
41
|
+
if (!/^dl-agent-[a-f0-9]{24}$/.test(binding.container))
|
|
42
|
+
throw new RunnerError('invalid_command_id');
|
|
43
|
+
checkpoint(binding);
|
|
44
|
+
const args = ['create', '--name', binding.container, '--label', `dreamlake.runner=${this.owner}`, '--read-only', '--cap-drop=ALL', '--security-opt=no-new-privileges', '--pids-limit=256', '--cpus', String(this.config.cpus), '--memory', `${this.config.memoryMb}m`, '--network', this.config.network, '--user', '1000:1000', '--tmpfs', '/tmp:rw,nosuid,nodev,size=128m', '--mount', `type=bind,source=${path},target=/workspace${permission === 'read-only' ? ',readonly' : ''}`, '--mount', `type=volume,source=${binding.container}-home,target=/home/agent`, '--env', 'HOME=/home/agent', '--env', 'CODEX_HOME=/home/agent/.codex', '--env', 'CLAUDE_CONFIG_DIR=/home/agent/.claude', '--workdir', '/workspace'];
|
|
45
|
+
const envFile = this.config.envFiles?.[provider];
|
|
46
|
+
if (envFile)
|
|
47
|
+
args.push('--env-file', envFile);
|
|
48
|
+
args.push(this.config.image, 'sleep', 'infinity');
|
|
49
|
+
const created = await this.exec('docker', args, { timeoutMs: 60000, signal });
|
|
50
|
+
if (created.code !== 0)
|
|
51
|
+
throw new RunnerError('pod_create_unconfirmed', undefined, true, { sessionSandbox: binding });
|
|
52
|
+
const pod = await this.inspect(binding);
|
|
53
|
+
signal.throwIfAborted();
|
|
54
|
+
const started = await this.exec('docker', ['start', pod.id], { timeoutMs: 30000, signal });
|
|
55
|
+
if (started.code !== 0 || signal.aborted) {
|
|
56
|
+
let stopped = false;
|
|
57
|
+
try {
|
|
58
|
+
await this.stop(binding);
|
|
59
|
+
stopped = true;
|
|
60
|
+
}
|
|
61
|
+
catch { }
|
|
62
|
+
throw new RunnerError('pod_start_unconfirmed', undefined, true, { sessionSandbox: binding, stopped });
|
|
63
|
+
}
|
|
64
|
+
return binding;
|
|
65
|
+
}
|
|
66
|
+
async stop(binding) {
|
|
67
|
+
let pod;
|
|
68
|
+
try {
|
|
69
|
+
pod = await this.inspect(binding);
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (!(error instanceof RunnerError) || error.code !== 'pod_missing')
|
|
73
|
+
throw error;
|
|
74
|
+
// inspect fails for daemon outages too. Only a successful catalog read proves absence.
|
|
75
|
+
const list = await this.exec('docker', ['ps', '-a', '--format', '{{.Names}}'], { timeoutMs: 10000 });
|
|
76
|
+
if (list.code === 0 && !list.stdout.split(/\r?\n/).includes(binding.container))
|
|
77
|
+
return;
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
const r = await this.exec('docker', ['stop', '--time', '5', pod.id], { timeoutMs: 15000 });
|
|
81
|
+
if (r.code !== 0 || (await this.inspect(binding)).running)
|
|
82
|
+
throw new RunnerError('pod_stop_unconfirmed', undefined, true, { sessionSandbox: binding });
|
|
83
|
+
}
|
|
84
|
+
async transcript(binding, provider, nativeId) {
|
|
85
|
+
if (!/^[a-f0-9-]{36}$/i.test(nativeId))
|
|
86
|
+
throw new RunnerError('invalid_native_id');
|
|
87
|
+
const pod = await this.inspect(binding);
|
|
88
|
+
if (!pod.running)
|
|
89
|
+
throw new RunnerError('pod_stopped_resume_before_sync');
|
|
90
|
+
const script = `const fs=require('fs'),path=require('path');const root=process.argv[1],id=process.argv[2];let count=0,found=null;function walk(p){if(++count>20000)throw Error('scan limit');for(const e of fs.readdirSync(p,{withFileTypes:true})){const f=path.join(p,e.name);if(e.isDirectory())walk(f);else if(e.isFile()&&e.name.endsWith('.jsonl')&&e.name.includes(id))found=f;}}walk(root);if(!found)throw Error('transcript missing');if(fs.statSync(found).size>1000000)throw Error('transcript too large');process.stdout.write(JSON.stringify({text:fs.readFileSync(found,'utf8')}));`;
|
|
91
|
+
const r = await this.exec('docker', ['exec', pod.id, 'node', '-e', script, provider === 'claude' ? '/home/agent/.claude/projects' : '/home/agent/.codex/sessions', nativeId], { timeoutMs: 15000 });
|
|
92
|
+
if (r.code !== 0)
|
|
93
|
+
throw new RunnerError('pod_transcript_unavailable');
|
|
94
|
+
return JSON.parse(r.stdout).text;
|
|
95
|
+
}
|
|
96
|
+
run(binding) {
|
|
97
|
+
return async (program, args, options = {}) => {
|
|
98
|
+
options.signal?.throwIfAborted();
|
|
99
|
+
if (!['codex', 'claude'].includes(program))
|
|
100
|
+
throw new RunnerError('pod_program_unsupported');
|
|
101
|
+
const pod = await this.inspect(binding);
|
|
102
|
+
try {
|
|
103
|
+
if (!pod.running) {
|
|
104
|
+
const started = await this.exec('docker', ['start', pod.id], { timeoutMs: 30000, signal: options.signal });
|
|
105
|
+
if (started.code !== 0)
|
|
106
|
+
throw new RunnerError('pod_start_unconfirmed', undefined, true);
|
|
107
|
+
}
|
|
108
|
+
options.signal?.throwIfAborted();
|
|
109
|
+
const r = await this.exec('docker', ['exec', '-i', '--workdir', '/workspace', pod.id, program, ...args], { ...options, cwd: undefined, env: undefined });
|
|
110
|
+
// Killing the docker client alone does not kill the exec inside the container.
|
|
111
|
+
if (r.aborted || r.timedOut)
|
|
112
|
+
await this.stop(binding);
|
|
113
|
+
return r;
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
if (options.signal?.aborted || !pod.running) {
|
|
117
|
+
let stopped = false;
|
|
118
|
+
try {
|
|
119
|
+
await this.stop(binding);
|
|
120
|
+
stopped = true;
|
|
121
|
+
}
|
|
122
|
+
catch { }
|
|
123
|
+
throw new RunnerError('pod_execution_unconfirmed', undefined, true, { sessionSandbox: binding, stopped });
|
|
124
|
+
}
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Pods, type PodConfig } from './pod.js';
|
|
2
|
+
import { RunnerJournal } from './journal.js';
|
|
3
|
+
import type { ClaimedCommand, CommandReceipt, DreamLakeClient, PermissionLevel, SessionsApi } from '../../../api/index.js';
|
|
4
|
+
import { type NativeRoots } from './native.js';
|
|
5
|
+
import { type Run } from './exec.js';
|
|
6
|
+
export interface RunnerOptions {
|
|
7
|
+
client: DreamLakeClient;
|
|
8
|
+
namespace: string;
|
|
9
|
+
version: string;
|
|
10
|
+
home?: string;
|
|
11
|
+
roots?: NativeRoots;
|
|
12
|
+
run?: Run;
|
|
13
|
+
log?: (line: string) => void;
|
|
14
|
+
/** Persisted runner key location; defaults to ~/.dreamlake/session-runner.json */
|
|
15
|
+
trustedRepositories?: string[];
|
|
16
|
+
maxAgentPermission?: PermissionLevel;
|
|
17
|
+
podConfig?: PodConfig;
|
|
18
|
+
stateFile?: string;
|
|
19
|
+
once?: boolean;
|
|
20
|
+
signal?: AbortSignal;
|
|
21
|
+
pollSeconds?: number;
|
|
22
|
+
concurrency?: number;
|
|
23
|
+
}
|
|
24
|
+
/** Stable per machine + Unix user; a random key, not a credential (the owner's token authenticates). */
|
|
25
|
+
export declare function runnerKey(stateFile: string): string;
|
|
26
|
+
/** Provider work in flight, by session (or by command for a start), so `stop` can end a headless
|
|
27
|
+
* turn and wait for it, a second writer is refused, and lease loss or shutdown kills the work. */
|
|
28
|
+
export declare class ActiveProcesses {
|
|
29
|
+
private readonly entries;
|
|
30
|
+
track(key: string, controller: AbortController): () => void;
|
|
31
|
+
/** Abort every process of the key and wait (bounded) for them to end; returns how many were interrupted and whether all ended. */
|
|
32
|
+
cancel(key: string, waitMs?: number): Promise<{
|
|
33
|
+
interrupted: number;
|
|
34
|
+
ended: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
cancelAll(): void;
|
|
37
|
+
has(key: string): boolean;
|
|
38
|
+
}
|
|
39
|
+
/** Bounded provider concurrency; control commands (stop, status, …) never wait behind it. */
|
|
40
|
+
export declare class Semaphore {
|
|
41
|
+
private readonly limit;
|
|
42
|
+
private waiting;
|
|
43
|
+
private used;
|
|
44
|
+
constructor(limit: number);
|
|
45
|
+
acquire(signal?: AbortSignal): Promise<void>;
|
|
46
|
+
release(): void;
|
|
47
|
+
}
|
|
48
|
+
export interface Executors {
|
|
49
|
+
execute(command: ClaimedCommand, signal: AbortSignal): Promise<Record<string, unknown>>;
|
|
50
|
+
}
|
|
51
|
+
export declare function commandExecutors(input: {
|
|
52
|
+
api: SessionsApi;
|
|
53
|
+
run: Run;
|
|
54
|
+
roots: NativeRoots;
|
|
55
|
+
home: string;
|
|
56
|
+
tmux: boolean;
|
|
57
|
+
runnerKey: string;
|
|
58
|
+
active?: ActiveProcesses;
|
|
59
|
+
slots?: Semaphore;
|
|
60
|
+
journal?: RunnerJournal;
|
|
61
|
+
quarantined?: Set<string>;
|
|
62
|
+
trustedRepositories?: string[];
|
|
63
|
+
maxAgentPermission?: PermissionLevel;
|
|
64
|
+
pods?: Pods;
|
|
65
|
+
}): Executors;
|
|
66
|
+
export declare function receiptFor(leaseToken: string, outcome: {
|
|
67
|
+
result?: Record<string, unknown>;
|
|
68
|
+
error?: unknown;
|
|
69
|
+
}, aborted: boolean): CommandReceipt;
|
|
70
|
+
/** One command end to end: lease renewal with a local deadline, execution, one receipt. Exported for tests. */
|
|
71
|
+
export declare function handleCommand(input: {
|
|
72
|
+
api: SessionsApi;
|
|
73
|
+
runnerId: string;
|
|
74
|
+
executors: Executors;
|
|
75
|
+
log: (line: string) => void;
|
|
76
|
+
command: ClaimedCommand;
|
|
77
|
+
now?: () => number;
|
|
78
|
+
shutdown?: AbortSignal;
|
|
79
|
+
tickMs?: number;
|
|
80
|
+
journal?: RunnerJournal;
|
|
81
|
+
}): Promise<import("../../../api/sessions.js").Command<"status" | "start" | "stop" | "resume" | "send" | "sync" | "subagents"> | null>;
|
|
82
|
+
export declare function serve(options: RunnerOptions): Promise<{
|
|
83
|
+
runnerId: string;
|
|
84
|
+
handled: number;
|
|
85
|
+
}>;
|