@dreamlake/dreamlake-cli 0.100.0 → 0.102.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.
@@ -231,7 +231,7 @@ export function registerNotesCommand(program) {
231
231
  .option("--file <path>", "initial body from a file ('-' for stdin)")
232
232
  .option("--text <string>", "initial body, inline")
233
233
  .option("--public", "anyone can read it (default: private)")
234
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
234
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
235
235
  .option("--json", "emit JSON")
236
236
  .action(async (name, opts) => { process.exitCode = await runNotesCreate(name, opts); });
237
237
  // ── notes list ──
@@ -240,7 +240,7 @@ export function registerNotesCommand(program) {
240
240
  .option("--include-archived", "include archived notes")
241
241
  .option("--limit <n>", "page size", "50")
242
242
  .option("--offset <n>", "skip this many rows first (zero-based paging: 0, 20, 40, …)")
243
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
243
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
244
244
  .option("--shared", "list notes other people shared with you, across namespaces")
245
245
  .option("--json", "emit JSON")
246
246
  .action(async (opts) => { process.exitCode = await runNotesList(opts); });
@@ -250,7 +250,7 @@ export function registerNotesCommand(program) {
250
250
  .description("find notes by title or body text")
251
251
  .option("--include-archived", "include archived notes")
252
252
  .option("--limit <n>", "page size", "50")
253
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
253
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
254
254
  .option("--json", "emit JSON")
255
255
  .action(async (query, opts) => { process.exitCode = await runNotesSearch(query, opts); });
256
256
  // ── notes grep ──
@@ -266,7 +266,7 @@ export function registerNotesCommand(program) {
266
266
  .option("--note <ids>", "comma-separated note ids or slugs to search")
267
267
  .option("-C, --context <n>", "lines of context either side")
268
268
  .option("--limit <n>", "maximum number of hits", "50")
269
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
269
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
270
270
  .option("--json", "emit JSON (each hit carries its etag and character range)")
271
271
  .action(async (query, opts) => { process.exitCode = await runNotesGrep(query, opts); });
272
272
  const media = notes.command("media").allowExcessArguments(false)
@@ -287,7 +287,7 @@ export function registerNotesCommand(program) {
287
287
  .option("--trashed", "list the trash instead of the live files")
288
288
  .option("--content-type <type>", "only files stored with this exact type")
289
289
  .option("--note <ref>", "the note: slug, id or exact title")
290
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
290
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
291
291
  .option("--json", "emit JSON")
292
292
  .option("--limit <n>", "how many files to show")
293
293
  .option("--offset <n>", "skip this many first")
@@ -299,7 +299,7 @@ export function registerNotesCommand(program) {
299
299
  .option("--content-type <type>", "declare the type instead of letting it be inferred")
300
300
  .option("--overwrite", "replace a file already at that path")
301
301
  .option("--note <ref>", "the note: slug, id or exact title")
302
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
302
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
303
303
  .option("--json", "emit JSON")
304
304
  .action(async (local, opts) => { process.exitCode = await runFilesUpload(local, opts); });
305
305
  strict(files.command("download"))
@@ -308,13 +308,13 @@ export function registerNotesCommand(program) {
308
308
  .option("-o, --output <path>", "where to write it; '-' or omitted means stdout")
309
309
  .option("--overwrite", "replace the local file if it exists")
310
310
  .option("--note <ref>", "the note: slug, id or exact title")
311
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
311
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
312
312
  .action(async (file, opts) => { process.exitCode = await runFilesDownload(file, opts); });
313
313
  strict(files.command("cat"))
314
314
  .argument("<file>", "file id or path within the note")
315
315
  .description("print a text file; refuses a binary rather than mangling it")
316
316
  .option("--note <ref>", "the note: slug, id or exact title")
317
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
317
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
318
318
  .option("--json", "emit JSON (includes the etag)")
319
319
  .action(async (file, opts) => { process.exitCode = await runFilesCat(file, opts); });
320
320
  strict(files.command("write"))
@@ -327,7 +327,7 @@ export function registerNotesCommand(program) {
327
327
  .option("--overwrite", "replace a file already at that path")
328
328
  .option("--if-match <etag>", "only write if the file is still at this revision")
329
329
  .option("--note <ref>", "the note: slug, id or exact title")
330
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
330
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
331
331
  .option("--json", "emit JSON")
332
332
  .action(async (p, opts) => { process.exitCode = await runFilesWrite(p, opts); });
333
333
  strict(files.command("mv"))
@@ -337,7 +337,7 @@ export function registerNotesCommand(program) {
337
337
  .option("--overwrite", "replace a file already at the destination")
338
338
  .option("--if-match <etag>", "only move if the file is still at this revision")
339
339
  .option("--note <ref>", "the note: slug, id or exact title")
340
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
340
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
341
341
  .option("--json", "emit JSON")
342
342
  .action(async (file, to, opts) => { process.exitCode = await runFilesMove(file, to, opts); });
343
343
  strict(files.command("cp"))
@@ -347,7 +347,7 @@ export function registerNotesCommand(program) {
347
347
  .option("--idempotency-key <key>", "keep one original text/copy operation for recovery")
348
348
  .option("--overwrite", "replace a file already at the destination")
349
349
  .option("--note <ref>", "the note: slug, id or exact title")
350
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
350
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
351
351
  .option("--json", "emit JSON")
352
352
  .action(async (file, to, opts) => { process.exitCode = await runFilesCopy(file, to, opts); });
353
353
  for (const [action, description] of [
@@ -359,7 +359,7 @@ export function registerNotesCommand(program) {
359
359
  .argument("<operation>", "operation ID from the original response")
360
360
  .description(description)
361
361
  .option("--note <ref>", "the note: slug, id or exact title")
362
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
362
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
363
363
  .option("--json", "emit JSON")
364
364
  .action(async (operation, opts) => { process.exitCode = await runFilesOperation(action, operation, opts); });
365
365
  }
@@ -369,7 +369,7 @@ export function registerNotesCommand(program) {
369
369
  .option("--purge", "delete the stored bytes — not recoverable")
370
370
  .option("--if-match <etag>", "only delete if the file is still at this revision")
371
371
  .option("--note <ref>", "the note: slug, id or exact title")
372
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
372
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
373
373
  .option("--json", "emit JSON")
374
374
  .action(async (file, opts) => { process.exitCode = await runFilesRm(file, opts); });
375
375
  strict(files.command("restore"))
@@ -377,7 +377,7 @@ export function registerNotesCommand(program) {
377
377
  .description("bring a file back from the trash")
378
378
  .option("--path <path>", "restore it here instead of where it was")
379
379
  .option("--note <ref>", "the note: slug, id or exact title")
380
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
380
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
381
381
  .option("--json", "emit JSON")
382
382
  .action(async (file, opts) => { process.exitCode = await runFilesRestore(file, opts); });
383
383
  strict(files.command("preview"))
@@ -387,14 +387,14 @@ export function registerNotesCommand(program) {
387
387
  .option("--revoke", "withdraw the shared link; every copy stops working")
388
388
  .option("--open", "open the link in a browser")
389
389
  .option("--note <ref>", "the note: slug, id or exact title")
390
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
390
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
391
391
  .option("--json", "emit JSON")
392
392
  .action(async (file, opts) => { process.exitCode = await runFilesPreview(file, opts); });
393
393
  // ── notes sections ──
394
394
  strict(notes.command("sections"))
395
395
  .argument("<note>", "note id, slug or name")
396
396
  .description("list the addressable sections (a heading plus everything under it)")
397
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
397
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
398
398
  .option("--json", "emit JSON")
399
399
  .action(async (ref, opts) => { process.exitCode = await runNotesSections(ref, opts); });
400
400
  // ── notes read ──
@@ -422,7 +422,7 @@ export function registerNotesCommand(program) {
422
422
  .option("--format <format>", "incremental format: diff (default) or inline-dff")
423
423
  .option("--legacy", "use the previous body-only/etag interface")
424
424
  .option("--section <anchor>", "print only this section")
425
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
425
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
426
426
  .option("-n, --numbered", "prefix each line with its number, like `cat -n`")
427
427
  .option("--json", "emit exact content, SHA-256 hash and opaque write revision")
428
428
  .option("--if-match <etag>", "verify: fail unless the note is still at this revision")
@@ -436,7 +436,7 @@ export function registerNotesCommand(program) {
436
436
  .option("--legacy", "use the previous diff/etag interface")
437
437
  .requiredOption("--since <ref>", "retained content hash or time reference")
438
438
  .option("--context <n>", "legacy unchanged context lines per hunk (0–100)")
439
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
439
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
440
440
  .option("--json", "emit base/hash/revision and selected patch format")
441
441
  .action(async (ref, opts) => { process.exitCode = await runNotesDiff(ref, opts); });
442
442
  // ── notes write ──
@@ -452,7 +452,7 @@ export function registerNotesCommand(program) {
452
452
  .option("--base-revision <revision>", "compare the target body to this original retained source snapshot")
453
453
  .option("--exact", "require the original revision to remain current")
454
454
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
455
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
455
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
456
456
  .option("--json", "emit JSON")
457
457
  .option("--dry-run", "show the write that would be sent, and send nothing")
458
458
  .action(async (ref, opts) => { process.exitCode = await runNotesWrite(ref, opts); });
@@ -467,7 +467,7 @@ export function registerNotesCommand(program) {
467
467
  .option("--base-revision <revision>", "append against this original retained source snapshot")
468
468
  .option("--exact", "require the original revision to remain current")
469
469
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
470
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
470
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
471
471
  .option("--json", "emit JSON")
472
472
  .option("--dry-run", "show the write that would be sent, and send nothing")
473
473
  .action(async (ref, opts) => { process.exitCode = await runNotesAppend(ref, opts); });
@@ -484,7 +484,7 @@ export function registerNotesCommand(program) {
484
484
  .option("--if-match <revision>", "compatibility exact-mode token; must match --base-revision when both are given")
485
485
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
486
486
  .option("--force", "legacy only: apply without a precondition")
487
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
487
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
488
488
  .option("--json", "emit JSON")
489
489
  .option("--dry-run", "show the write that would be sent, and send nothing")
490
490
  .action(async (ref, opts) => { process.exitCode = await runNotesPatch(ref, opts); });
@@ -498,7 +498,7 @@ export function registerNotesCommand(program) {
498
498
  .option("--text <string>", "the section text, inline")
499
499
  .option("--if-match <etag>", "only insert if the note is still at this etag")
500
500
  .option("--force", "insert without a precondition")
501
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
501
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
502
502
  .option("--json", "emit JSON")
503
503
  .option("--dry-run", "show the write that would be sent, and send nothing")
504
504
  .action(async (ref, opts) => { process.exitCode = await runNotesAddSection(ref, opts); });
@@ -519,7 +519,7 @@ export function registerNotesCommand(program) {
519
519
  .option("--case-sensitive", "match case for a literal query (the default)")
520
520
  .option("--no-case-sensitive", "ignore case for a literal query")
521
521
  .option("--json", "emit matches with note, hash and the source revision")
522
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
522
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
523
523
  .action(async (query, opts) => { process.exitCode = await runNotesFind(query, opts); });
524
524
  strict(notes.command("toc"))
525
525
  .description("the note's outline, with line and character ranges")
@@ -527,7 +527,7 @@ export function registerNotesCommand(program) {
527
527
  .option("--html", "parse as HTML rather than Markdown")
528
528
  .option("--at <revision>", "outline the retained snapshot at this revision")
529
529
  .option("--json", "emit entries with note, hash and the source revision")
530
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
530
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
531
531
  .action(async (opts) => { process.exitCode = await runNotesToc(opts); });
532
532
  strict(notes.command("replace"))
533
533
  .description("replace text; one match required unless --all or --count")
@@ -552,7 +552,7 @@ export function registerNotesCommand(program) {
552
552
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
553
553
  .option("--dry-run", "print what would be written and stop")
554
554
  .option("--json", "emit the new revision")
555
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
555
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
556
556
  .option("--html <markup>", "with --selector: replace the element's contents with markup (not escaped)")
557
557
  .action(async (query, opts) => { process.exitCode = await runNotesReplace(query, opts); });
558
558
  strict(notes.command("insert"))
@@ -574,7 +574,7 @@ export function registerNotesCommand(program) {
574
574
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
575
575
  .option("--dry-run", "print what would be written and stop")
576
576
  .option("--json", "emit the new revision")
577
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
577
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
578
578
  .option("--selector <css>", "insert relative to this element instead of a line")
579
579
  .option("--position <where>", "with --selector: before | after | prepend | append", "append")
580
580
  .action(async (note, opts) => { process.exitCode = await runNotesInsert(note, opts); });
@@ -600,13 +600,13 @@ export function registerNotesCommand(program) {
600
600
  .option("--command-id <id>", "caller-stable id (8–128 chars of A-Za-z0-9._:-); a retry with the same id returns the same receipt")
601
601
  .option("--dry-run", "print what would be written and stop")
602
602
  .option("--json", "emit the new revision")
603
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
603
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
604
604
  .action(async (query, opts) => { process.exitCode = await runNotesDelete(query, opts); });
605
605
  strict(notes.command("command-status"))
606
606
  .argument("<note>", "note id, slug or name")
607
607
  .argument("<command-id>", "the --command-id of an earlier write")
608
608
  .description("the durable outcome of one identified write: pending, accepted, no-write or unknown")
609
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
609
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
610
610
  .option("--json", "emit JSON")
611
611
  .action(async (ref, commandId, opts) => { process.exitCode = await runNotesCommandStatus(ref, commandId, opts); });
612
612
  strict(notes.command("select"))
@@ -618,7 +618,7 @@ export function registerNotesCommand(program) {
618
618
  .option("--hash <sha256>", "require this current source hash before publishing")
619
619
  .option("--note <ref>", "the note: slug, id or exact title")
620
620
  .option("--json", "emit the selection receipt, or CSS element with source revision")
621
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
621
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
622
622
  .action(async (css, opts) => {
623
623
  if (opts.text !== undefined || !css || opts.section !== undefined || opts.occurrence !== undefined || opts.hash !== undefined) {
624
624
  process.exitCode = await runNotesTextSelect(css, opts);
@@ -633,7 +633,7 @@ export function registerNotesCommand(program) {
633
633
  .description("remove a section and everything under it")
634
634
  .option("--if-match <etag>", "only remove if the note is still at this etag")
635
635
  .option("--force", "remove without a precondition")
636
- .option("--namespace <slug>", "whose notes (default: your personal namespace, not an org's)")
636
+ .option("--namespace <slug>", "whose notes (default: selected CLI namespace, otherwise personal)")
637
637
  .option("--json", "emit JSON")
638
638
  .option("--dry-run", "show the write that would be sent, and send nothing")
639
639
  .action(async (ref, anchor, opts) => { process.exitCode = await runNotesRmSection(ref, anchor, opts); });
@@ -670,9 +670,7 @@ export async function runNotesList(opts) {
670
670
  if (opts.json)
671
671
  return emitJson({ notes: rows }), 0;
672
672
  if (rows.length === 0) {
673
- // Name the namespace. Without a --namespace the default is your PERSONAL
674
- // one, and an org's notes live somewhere else entirely — a bare "no
675
- // notes" reads as "there are none" when it means "none here".
673
+ // Always name the effective namespace, including a persisted `su` selection.
676
674
  process.stdout.write(opts.shared
677
675
  ? "no notes shared with you\n"
678
676
  : `no notes in '${c.ns}'\n an organization's notes are in its own namespace — ` +
@@ -1 +1 @@
1
- export declare const VERSION = "0.100.0";
1
+ export declare const VERSION = "0.102.0";
@@ -6,4 +6,4 @@
6
6
  // value means a binary that re-installs the same version forever.
7
7
  //
8
8
  // Editing this by hand does nothing for a release; bump package.json.
9
- export const VERSION = "0.100.0";
9
+ export const VERSION = "0.102.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamlake/dreamlake-cli",
3
- "version": "0.100.0",
3
+ "version": "0.102.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dreamlake-ai/dreamlake-cli.git"
@@ -29,19 +29,20 @@
29
29
  "aws4fetch": "^1.0.20",
30
30
  "commander": "^12.1.0",
31
31
  "ws": "^8.22.0",
32
+ "ws-transport": "npm:ws@8.22.0",
32
33
  "yaml": "^2.6.1"
33
34
  },
34
35
  "engines": {
35
36
  "node": ">=18"
36
37
  },
37
38
  "optionalDependencies": {
38
- "@dreamlake/dreamlake-cli-darwin-arm64": "0.100.0",
39
- "@dreamlake/dreamlake-cli-darwin-x64": "0.100.0",
40
- "@dreamlake/dreamlake-cli-linux-x64": "0.100.0",
41
- "@dreamlake/dreamlake-cli-linux-arm64": "0.100.0",
42
- "@dreamlake/dreamlake-cli-linux-x64-musl": "0.100.0",
43
- "@dreamlake/dreamlake-cli-linux-arm64-musl": "0.100.0",
44
- "@dreamlake/dreamlake-cli-win32-x64": "0.100.0",
45
- "@dreamlake/dreamlake-cli-win32-arm64": "0.100.0"
39
+ "@dreamlake/dreamlake-cli-darwin-arm64": "0.102.0",
40
+ "@dreamlake/dreamlake-cli-darwin-x64": "0.102.0",
41
+ "@dreamlake/dreamlake-cli-linux-x64": "0.102.0",
42
+ "@dreamlake/dreamlake-cli-linux-arm64": "0.102.0",
43
+ "@dreamlake/dreamlake-cli-linux-x64-musl": "0.102.0",
44
+ "@dreamlake/dreamlake-cli-linux-arm64-musl": "0.102.0",
45
+ "@dreamlake/dreamlake-cli-win32-x64": "0.102.0",
46
+ "@dreamlake/dreamlake-cli-win32-arm64": "0.102.0"
46
47
  }
47
48
  }