@dreamlake/dreamlake-cli 0.111.1 → 0.112.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.
Files changed (129) hide show
  1. package/dist/api/skills.js +1 -1
  2. package/dist/cli/agents/index.js +20 -20
  3. package/dist/cli/agents/manage.js +1 -1
  4. package/dist/cli/artifact/index.js +5 -5
  5. package/dist/cli/artifact/meta.js +1 -1
  6. package/dist/cli/auth/commands.d.ts +2 -2
  7. package/dist/cli/auth/commands.js +9 -9
  8. package/dist/cli/auth/device-flow.js +2 -2
  9. package/dist/cli/auth/materialized.d.ts +1 -1
  10. package/dist/cli/auth/materialized.js +1 -1
  11. package/dist/cli/compat/http.js +2 -2
  12. package/dist/cli/compat/presignedTransfer.js +2 -2
  13. package/dist/cli/config.js +2 -2
  14. package/dist/cli/connection/index.js +8 -8
  15. package/dist/cli/connection/oauth.js +3 -3
  16. package/dist/cli/connection/write.js +6 -6
  17. package/dist/cli/create/index.js +2 -2
  18. package/dist/cli/declare/index.js +14 -14
  19. package/dist/cli/delete/index.js +4 -4
  20. package/dist/cli/download/index.js +3 -3
  21. package/dist/cli/env/compose.js +1 -1
  22. package/dist/cli/env/index.js +9 -9
  23. package/dist/cli/experiments/index.js +2 -2
  24. package/dist/cli/experiments/native-commands.js +1 -1
  25. package/dist/cli/experiments/native-run-data.js +1 -1
  26. package/dist/cli/graphql.js +1 -1
  27. package/dist/cli/help-examples.generated.js +253 -253
  28. package/dist/cli/hosts/bootstrap-source.d.ts +1 -1
  29. package/dist/cli/hosts/bootstrap-source.js +1 -1
  30. package/dist/cli/hosts/inventory.js +2 -2
  31. package/dist/cli/hosts/picker.js +2 -2
  32. package/dist/cli/hosts/ssh.js +1 -1
  33. package/dist/cli/hosts/upgrade.d.ts +2 -2
  34. package/dist/cli/hosts/upgrade.js +3 -3
  35. package/dist/cli/index.js +7 -3
  36. package/dist/cli/lakeshore/connections.js +1 -1
  37. package/dist/cli/lakeshore/index.d.ts +1 -1
  38. package/dist/cli/lakeshore/index.js +4 -4
  39. package/dist/cli/launch/index.js +10 -10
  40. package/dist/cli/library/add.js +4 -4
  41. package/dist/cli/library/cache.js +1 -1
  42. package/dist/cli/library/discover.js +1 -1
  43. package/dist/cli/library/freshness.js +1 -1
  44. package/dist/cli/library/index.js +1 -1
  45. package/dist/cli/library/info.js +1 -1
  46. package/dist/cli/library/manifest.js +1 -1
  47. package/dist/cli/library/pull.js +1 -1
  48. package/dist/cli/library/push.js +2 -2
  49. package/dist/cli/library/rm.js +2 -2
  50. package/dist/cli/library/search.js +2 -2
  51. package/dist/cli/library/stat.js +1 -1
  52. package/dist/cli/library/tools.js +1 -1
  53. package/dist/cli/library/wire.js +1 -1
  54. package/dist/cli/list/index.js +4 -4
  55. package/dist/cli/memos/document.d.ts +1 -1
  56. package/dist/cli/memos/document.js +1 -1
  57. package/dist/cli/memos/edit-commands.d.ts +2 -2
  58. package/dist/cli/memos/edit-commands.js +2 -2
  59. package/dist/cli/memos/files-commands.d.ts +1 -1
  60. package/dist/cli/memos/files-commands.js +2 -2
  61. package/dist/cli/memos/index.js +7 -7
  62. package/dist/cli/memos/media-commands.js +1 -1
  63. package/dist/cli/memos/move-command.js +2 -2
  64. package/dist/cli/memos/rm-command.d.ts +1 -1
  65. package/dist/cli/memos/rm-command.js +2 -2
  66. package/dist/cli/namespace.js +2 -2
  67. package/dist/cli/nymph/index.js +4 -4
  68. package/dist/cli/ownership/index.js +1 -1
  69. package/dist/cli/ownership/metadata-transfer.js +2 -2
  70. package/dist/cli/page/index.js +5 -5
  71. package/dist/cli/pipeline/index.js +5 -5
  72. package/dist/cli/project/attachments.js +1 -1
  73. package/dist/cli/project/grants.js +1 -1
  74. package/dist/cli/project/index.js +1 -1
  75. package/dist/cli/project/move.js +3 -3
  76. package/dist/cli/project/stream.js +2 -2
  77. package/dist/cli/provider/dreamdir.js +2 -2
  78. package/dist/cli/provider/index.js +18 -18
  79. package/dist/cli/provider/lifecycle.js +14 -14
  80. package/dist/cli/python.js +4 -4
  81. package/dist/cli/queues/index.js +4 -4
  82. package/dist/cli/queues/slurm.js +2 -2
  83. package/dist/cli/resources.js +2 -2
  84. package/dist/cli/run/index.js +1 -1
  85. package/dist/cli/runconfig/index.js +3 -3
  86. package/dist/cli/runnable/bound.js +3 -3
  87. package/dist/cli/runnable/index.js +14 -14
  88. package/dist/cli/runnable/path.d.ts +1 -1
  89. package/dist/cli/runnable/path.js +1 -1
  90. package/dist/cli/self-update/alias-migration.d.ts +11 -0
  91. package/dist/cli/self-update/alias-migration.js +56 -0
  92. package/dist/cli/self-update/index.d.ts +1 -1
  93. package/dist/cli/self-update/index.js +5 -5
  94. package/dist/cli/self-update/install.js +2 -2
  95. package/dist/cli/self-update/update.d.ts +1 -1
  96. package/dist/cli/self-update/update.js +7 -7
  97. package/dist/cli/session-affiliation.js +1 -1
  98. package/dist/cli/sessions/control.d.ts +1 -1
  99. package/dist/cli/sessions/control.js +2 -2
  100. package/dist/cli/sessions/index.js +5 -5
  101. package/dist/cli/sessions/live.js +1 -1
  102. package/dist/cli/sessions/runner/serve.js +1 -1
  103. package/dist/cli/sessions/wrap.d.ts +2 -2
  104. package/dist/cli/sessions/wrap.js +8 -8
  105. package/dist/cli/skill/index.js +22 -22
  106. package/dist/cli/skill/prefs.js +1 -1
  107. package/dist/cli/skill/read.js +3 -3
  108. package/dist/cli/skill/registry.js +2 -2
  109. package/dist/cli/snapshot/index.js +9 -9
  110. package/dist/cli/source/access.js +3 -3
  111. package/dist/cli/source/control.js +8 -8
  112. package/dist/cli/source/delete.js +6 -6
  113. package/dist/cli/source/index.js +14 -14
  114. package/dist/cli/source/share.js +8 -8
  115. package/dist/cli/source/upload.d.ts +1 -1
  116. package/dist/cli/source/upload.js +2 -2
  117. package/dist/cli/source/write.js +2 -2
  118. package/dist/cli/spawn.js +1 -1
  119. package/dist/cli/tasks/index.js +1 -1
  120. package/dist/cli/update/index.js +2 -2
  121. package/dist/cli/upload/index.js +3 -3
  122. package/dist/cli/upload/multipart.js +1 -1
  123. package/dist/cli/vault/index.js +1 -1
  124. package/dist/cli/vault/sshSync.js +1 -1
  125. package/dist/cli/version.d.ts +1 -1
  126. package/dist/cli/version.js +1 -1
  127. package/dist/cli/workflow/index.d.ts +1 -1
  128. package/dist/cli/workflow/index.js +6 -6
  129. package/package.json +10 -10
@@ -65,12 +65,12 @@ export async function runDeleteProject(slug, opts) {
65
65
  const remote = resolveRemote();
66
66
  const token = resolveToken();
67
67
  if (!token) {
68
- fail("not authenticated. run 'dreamlake login' first");
68
+ fail("not authenticated. run 'dl login' first");
69
69
  return 1;
70
70
  }
71
71
  const namespace = await resolveNamespace(opts.namespace, { token, remote });
72
72
  if (!namespace) {
73
- fail("namespace not specified and no authenticated user found. run 'dreamlake login'");
73
+ fail("namespace not specified and no authenticated user found. run 'dl login'");
74
74
  return 1;
75
75
  }
76
76
  const projects = await fetchProjects(remote, token, namespace);
@@ -145,12 +145,12 @@ export async function runDeleteFile(filePath, opts) {
145
145
  const remote = resolveRemote();
146
146
  const token = resolveToken();
147
147
  if (!token) {
148
- fail("not authenticated. run 'dreamlake login' first");
148
+ fail("not authenticated. run 'dl login' first");
149
149
  return 1;
150
150
  }
151
151
  const namespace = await resolveNamespace(t.namespace, { token, remote });
152
152
  if (!namespace) {
153
- fail("namespace not specified and no authenticated user found. run 'dreamlake login'");
153
+ fail("namespace not specified and no authenticated user found. run 'dl login'");
154
154
  return 1;
155
155
  }
156
156
  const assetPath = "/" + filePath.replace(/^\/+/, "");
@@ -1,4 +1,4 @@
1
- // `dreamlake download --episode <target> --from <path> [-o <out>]`.
1
+ // `dl download --episode <target> --from <path> [-o <out>]`.
2
2
  //
3
3
  // Node-based download (the current server protocol):
4
4
  // GET /nodes/lookup?namespace&project&path&episode → node record
@@ -53,12 +53,12 @@ export async function runDownload(opts) {
53
53
  const remote = resolveRemote();
54
54
  const token = resolveToken();
55
55
  if (!token) {
56
- fail("not authenticated. run 'dreamlake login' first");
56
+ fail("not authenticated. run 'dl login' first");
57
57
  return 1;
58
58
  }
59
59
  const namespace = await resolveNamespace(t.namespace, { token, remote });
60
60
  if (!namespace) {
61
- fail("namespace not specified and no authenticated user found. run 'dreamlake login'");
61
+ fail("namespace not specified and no authenticated user found. run 'dl login'");
62
62
  return 1;
63
63
  }
64
64
  t.namespace = namespace;
@@ -1,4 +1,4 @@
1
- // `dreamlake env compose` — materialize a layered env stack
1
+ // `dl env compose` — materialize a layered env stack
2
2
  // (dreamlake.layers.json, RFC 0007 v3 component grammar) into a runnable
3
3
  // env directory.
4
4
  //
@@ -1,5 +1,5 @@
1
1
  import { collectionList } from "../collection-list.js";
2
- // `dreamlake scene push|create|list|pull|delete|restore` — simulation
2
+ // `dl scene push|create|list|pull|delete|restore` — simulation
3
3
  // environments (one entry file — MuJoCo MJCF or URDF — plus asset files)
4
4
  // under a namespace.
5
5
  //
@@ -14,8 +14,8 @@ import { collectionList } from "../collection-list.js";
14
14
  // (GET .../versions/:v) and hands back presigned S3 URLs; this side just
15
15
  // downloads and hash-verifies. Any HTTP client could do the same.
16
16
  //
17
- // (`dreamlake env` used to be the login-environment switcher; that moved to
18
- // `dreamlake auth env` when MuJoCo envs took the name.)
17
+ // (`dl env` used to be the login-environment switcher; that moved to
18
+ // `dl auth env` when MuJoCo envs took the name.)
19
19
  import { mkdirSync, readdirSync, readFileSync, lstatSync, openSync, readSync, closeSync, writeFileSync, existsSync } from "node:fs";
20
20
  import path from "node:path";
21
21
  import { confirm } from "../prompt.js";
@@ -184,7 +184,7 @@ export function detectEntry(files, explicit, type) {
184
184
  if (mjcf.length > 1)
185
185
  return { error: listed(mjcf, "MJCF") };
186
186
  // No MJCF anywhere. Without an explicit --type, a single root-level *.urdf
187
- // makes this a urdf env — `dreamlake scene push ./robot` just works.
187
+ // makes this a urdf env — `dl scene push ./robot` just works.
188
188
  if (type == null) {
189
189
  const urdf = urdfCandidates(false);
190
190
  if (urdf.length === 1)
@@ -316,7 +316,7 @@ async function pushLocalLayers(args, sources, deps) {
316
316
  if (bad) {
317
317
  fail(`--push-layers: layers[${s.index}] directory '${base}' is not a usable scene name (${bad})`);
318
318
  process.stderr.write(` --push-layers names each scene after its directory. Rename the directory, or push it\n` +
319
- ` yourself: dreamlake scene push ${abs} --name <name>\n`);
319
+ ` yourself: dl scene push ${abs} --name <name>\n`);
320
320
  return 1;
321
321
  }
322
322
  }
@@ -347,7 +347,7 @@ async function pushLocalLayers(args, sources, deps) {
347
347
  }
348
348
  ok(`pushed ${dirs.size} local layer(s)`);
349
349
  process.stdout.write(` now pin them in dreamlake.layers.json ("src": "<namespace>/<name>@<version>" as\n` +
350
- ` printed above), recompose (dreamlake scene compose), and push again.\n`);
350
+ ` printed above), recompose (dl scene compose), and push again.\n`);
351
351
  fail(`composed scene NOT pushed — its stack still references local paths`);
352
352
  return 1;
353
353
  }
@@ -438,7 +438,7 @@ export async function runEnvPush(args, deps = {}) {
438
438
  process.stderr.write(` a pushed scene should carry a fully pinned stack, or nobody can re-open its composition.\n` +
439
439
  ` --push-layers push those local layer dirs as scenes first (named by their basename)\n` +
440
440
  ` --allow-local push anyway; the provenance stays marked non-resolvable\n` +
441
- ` or pin the layers in dreamlake.layers.json and \`dreamlake scene compose\` again.\n`);
441
+ ` or pin the layers in dreamlake.layers.json and \`dl scene compose\` again.\n`);
442
442
  return 1;
443
443
  }
444
444
  }
@@ -724,7 +724,7 @@ export async function runEnvCreate(args, deps = {}) {
724
724
  return 1;
725
725
  const probe = await jsonRequest("GET", `${ctx.remote}/namespaces/${encodeURIComponent(namespace)}/scenes/${encodeURIComponent(name)}`, ctx.token);
726
726
  if (probe.status === 200) {
727
- fail(`scene '${name}' already exists in '${namespace}' — use \`dreamlake scene push\` to add a version`);
727
+ fail(`scene '${name}' already exists in '${namespace}' — use \`dl scene push\` to add a version`);
728
728
  return 1;
729
729
  }
730
730
  if (probe.status !== 404) {
@@ -924,7 +924,7 @@ export async function runEnvDelete(args, deps = {}) {
924
924
  ok(`permanently deleted ${args.name}${typeof n === "number" ? ` (${n} objects removed)` : ""}`);
925
925
  }
926
926
  else {
927
- ok(`deleted ${args.name} (restore with \`dreamlake scene restore ${args.name}\`)`);
927
+ ok(`deleted ${args.name} (restore with \`dl scene restore ${args.name}\`)`);
928
928
  }
929
929
  return 0;
930
930
  }
@@ -63,7 +63,7 @@ function expected(opts) {
63
63
  function context(opts) {
64
64
  const token = resolveToken();
65
65
  if (!token)
66
- throw new BindingError("EXPERIMENTS_AUTH_REQUIRED", "DreamLake login is required.", "Run dreamlake login for the intended environment.");
66
+ throw new BindingError("EXPERIMENTS_AUTH_REQUIRED", "DreamLake login is required.", "Run dl login for the intended environment.");
67
67
  return { remote: resolveRemote(), token, path: `/integrations/dash/ns/${encodeURIComponent(opts.namespace)}` };
68
68
  }
69
69
  function error(err, opts) {
@@ -79,7 +79,7 @@ function error(err, opts) {
79
79
  code = candidate;
80
80
  }
81
81
  catch { /* Do not reflect upstream bodies. */ }
82
- const remediation = err.status === 401 ? "Run dreamlake login for the intended environment." :
82
+ const remediation = err.status === 401 ? "Run dl login for the intended environment." :
83
83
  err.status === 403 ? "Ask a DreamLake organization owner to manage the binding; Dash authorization is also required." :
84
84
  err.status === 409 ? "Refresh the workspace list and binding, review a new preview, then apply its current revision." :
85
85
  err.status === 404 ? "Check the namespace and whether this deployment includes the binding API." :
@@ -7,7 +7,7 @@ export async function runNativeExperiment(action, opts, subject, message) {
7
7
  try {
8
8
  const token = resolveToken();
9
9
  if (!token)
10
- throw new Error("DreamLake login is required; run dreamlake login.");
10
+ throw new Error("DreamLake login is required; run dl login.");
11
11
  if (!opts.namespace || !opts.project)
12
12
  throw new Error("--namespace and --project are required.");
13
13
  const base = `/native-experiments/ns/${encodeURIComponent(opts.namespace)}/projects/${encodeURIComponent(opts.project)}`;
@@ -117,7 +117,7 @@ function metadataPatch(opts) {
117
117
  function client(opts, timeoutMs) {
118
118
  const token = resolveToken();
119
119
  if (!token)
120
- throw new Usage("DreamLake login is required; run dreamlake login.");
120
+ throw new Usage("DreamLake login is required; run dl login.");
121
121
  if (!opts.namespace || !opts.project)
122
122
  throw new Usage("--namespace and --project are required.");
123
123
  const transport = createTransport({ remote: resolveRemote(), token, ...(timeoutMs ? { timeoutMs } : {}),
@@ -12,7 +12,7 @@ export class GraphQLClientError extends Error {
12
12
  export async function gql(query, variables = {}, opts = {}) {
13
13
  const token = resolveToken();
14
14
  if (!token) {
15
- throw new GraphQLClientError("not authenticated. run 'dreamlake login' first");
15
+ throw new GraphQLClientError("not authenticated. run 'dl login' first");
16
16
  }
17
17
  const remote = resolveRemote();
18
18
  let res;