@doist/comms-cli 1.9.2 → 1.9.3

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 (38) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +2 -2
  3. package/dist/commands/channel/index.js +15 -15
  4. package/dist/commands/channel/index.js.map +1 -1
  5. package/dist/commands/comment/index.js +7 -7
  6. package/dist/commands/comment/index.js.map +1 -1
  7. package/dist/commands/conversation/index.js +12 -12
  8. package/dist/commands/conversation/index.js.map +1 -1
  9. package/dist/commands/conversation/view.d.ts.map +1 -1
  10. package/dist/commands/conversation/view.js +7 -1
  11. package/dist/commands/conversation/view.js.map +1 -1
  12. package/dist/commands/groups/index.js +7 -7
  13. package/dist/commands/groups/index.js.map +1 -1
  14. package/dist/commands/inbox.js +3 -2
  15. package/dist/commands/inbox.js.map +1 -1
  16. package/dist/commands/msg/index.js +7 -7
  17. package/dist/commands/msg/index.js.map +1 -1
  18. package/dist/commands/react.js +7 -7
  19. package/dist/commands/react.js.map +1 -1
  20. package/dist/commands/search.js +1 -1
  21. package/dist/commands/thread/index.js +29 -29
  22. package/dist/commands/thread/index.js.map +1 -1
  23. package/dist/commands/thread/view.d.ts +1 -1
  24. package/dist/commands/thread/view.d.ts.map +1 -1
  25. package/dist/commands/thread/view.js +3 -1
  26. package/dist/commands/thread/view.js.map +1 -1
  27. package/dist/commands/view.js +6 -6
  28. package/dist/commands/view.js.map +1 -1
  29. package/dist/lib/options.d.ts +2 -0
  30. package/dist/lib/options.d.ts.map +1 -1
  31. package/dist/lib/options.js +4 -0
  32. package/dist/lib/options.js.map +1 -1
  33. package/dist/lib/refs.js +1 -1
  34. package/dist/lib/refs.js.map +1 -1
  35. package/dist/lib/skills/content.d.ts +1 -1
  36. package/dist/lib/skills/content.d.ts.map +1 -1
  37. package/dist/lib/skills/content.js +16 -16
  38. package/package.json +1 -1
@@ -90,7 +90,7 @@ tdc thread view <ref> --raw # Show raw markdown
90
90
  tdc thread create <channel-ref> "Title" "content" # Create a new thread
91
91
  tdc thread create <channel-ref> "Title" "content" --json # Create and return as JSON
92
92
  tdc thread create <channel-ref> "Title" "content" --json --full # Include all thread fields
93
- tdc thread create <channel-ref> "Title" "content" --notify 123,456 # Notify specific users and/or groups by ID
93
+ tdc thread create <channel-ref> "Title" "content" --notify 123,Cbzzm11ZeYZoJYD4a6rti # Notify user and/or group IDs
94
94
  tdc thread create <channel-ref> "Title" "content" --unarchive # Land thread in author's Inbox (overrides default Comms auto-archive)
95
95
  tdc thread create <channel-ref> "Title" "content" --no-unarchive # Force archive even when userSettings.unarchiveNewThreads=true
96
96
  tdc thread create <channel-ref> "Title" "content" --dry-run # Preview without posting
@@ -109,7 +109,7 @@ tdc thread done <ref> --yes # Archive thread (mark done)
109
109
  tdc thread done <ref> --yes --json # Archive and return status as JSON
110
110
  tdc thread mark-read <ref> # Mark a thread read
111
111
  tdc thread mark-read <ref> <ref> --yes # Mark multiple threads read
112
- printf "123\\n456\\n" | tdc thread mark-read --dry-run # Preview bulk mark-read from stdin
112
+ printf "id:CbT8n2Kp4Qx6Rz9Lm3Va\\nid:CbT9m4Qr7Vz2Nx8Lp5Sa\\n" | tdc thread mark-read --dry-run # Preview bulk mark-read from stdin
113
113
  tdc thread mute <ref> # Mute thread for 60 minutes (default)
114
114
  tdc thread mute <ref> --minutes 480 # Mute for custom duration
115
115
  tdc thread mute <ref> --json # Mute and return { id, mutedUntil } as JSON
@@ -245,8 +245,8 @@ tdc channel update <ref> --description "Team discussions" --json --full # Update
245
245
  tdc channel delete <channel-ref> --yes # Permanently delete a channel (requires --yes; usually admin-only)
246
246
  tdc channel delete <ref> --dry-run # Preview deletion
247
247
  tdc channel archive <channel-ref> # Archive a channel (no-op if already archived)
248
- tdc channel unarchive id:<id> # Unarchive a channel (pass id:/numeric ref for archived channels)
249
- tdc channel threads <channel-ref> # List threads in a channel (fuzzy name, id:, numeric ID, or URL)
248
+ tdc channel unarchive id:<id> # Unarchive a channel (pass id: for archived channels)
249
+ tdc channel threads <channel-ref> # List threads in a channel (fuzzy name, id:, or URL)
250
250
  tdc channel threads "general" --unread # Only unread threads
251
251
  tdc channel threads <ref> --archive-filter all # Include archived threads (active|archived|all)
252
252
  tdc channel threads <ref> --since 2026-01-01 # Filter by last-updated date (ISO)
@@ -407,9 +407,9 @@ Run without --dry-run to execute.
407
407
  ## Reference System
408
408
 
409
409
  Commands accept flexible references:
410
- - **Numeric IDs**: \`123\` or \`id:123\`
410
+ - **IDs**: \`id:<id>\` (or a bare ID when unambiguous). Workspace/user IDs are numeric; most Comms entity IDs are opaque strings.
411
411
  - **Comms URLs**: Full \`https://comms.todoist.com/...\` URLs (parsed automatically)
412
- - **Fuzzy names**: For workspaces/users - \`"My Workspace"\` or partial matches
412
+ - **Fuzzy names**: For workspaces/users/channels/groups - \`"My Workspace"\` or partial matches
413
413
 
414
414
  ## Piping Input
415
415
 
@@ -426,26 +426,26 @@ If no content argument is provided and no stdin is piped, the CLI opens \`$EDITO
426
426
  \`tdc thread mark-read\` also accepts thread refs from stdin, one per line:
427
427
 
428
428
  \`\`\`bash
429
- printf "123\\n456\\n" | tdc thread mark-read --yes
429
+ printf "id:CbT8n2Kp4Qx6Rz9Lm3Va\\nid:CbT9m4Qr7Vz2Nx8Lp5Sa\\n" | tdc thread mark-read --yes
430
430
  \`\`\`
431
431
 
432
432
  ## Common Workflows
433
433
 
434
434
  **View by URL (auto-routes to the right command):**
435
435
  \`\`\`bash
436
- tdc view https://comms.todoist.com/1585/ch/100/t/200 # View thread
437
- tdc view https://comms.todoist.com/a/1585/ch/100/t/200 # View thread
438
- tdc view https://comms.todoist.com/a/1585/ch/100/t/200/c/300 # View comment
439
- tdc view https://comms.todoist.com/a/1585/msg/400 # View conversation
440
- tdc view https://comms.todoist.com/a/1585/msg/400/m/500 --json # View message as JSON
436
+ tdc view https://comms.todoist.com/1585/ch/CbC8n2Kp4Qx6Rz9Lm3Va/t/CbT8n2Kp4Qx6Rz9Lm3Va # View thread
437
+ tdc view https://comms.todoist.com/a/1585/ch/CbC8n2Kp4Qx6Rz9Lm3Va/t/CbT8n2Kp4Qx6Rz9Lm3Va # View thread
438
+ tdc view https://comms.todoist.com/a/1585/ch/CbC8n2Kp4Qx6Rz9Lm3Va/t/CbT8n2Kp4Qx6Rz9Lm3Va/c/CbM8n2Kp4Qx6Rz9Lm3Va # View comment
439
+ tdc view https://comms.todoist.com/a/1585/msg/CbV8n2Kp4Qx6Rz9Lm3Va # View conversation
440
+ tdc view https://comms.todoist.com/a/1585/msg/CbV8n2Kp4Qx6Rz9Lm3Va/m/CbS8n2Kp4Qx6Rz9Lm3Va --json # View message as JSON
441
441
  \`\`\`
442
442
 
443
443
  **Check inbox and respond:**
444
444
  \`\`\`bash
445
445
  tdc inbox --unread --json
446
- tdc thread view <id> --unread
447
- tdc thread reply <id> "Thanks, I'll look into this."
448
- tdc thread done <id> --yes
446
+ tdc thread view <thread-ref> --unread
447
+ tdc thread reply <thread-ref> "Thanks, I'll look into this."
448
+ tdc thread done <thread-ref> --yes
449
449
  \`\`\`
450
450
 
451
451
  **Search and review:**
@@ -461,7 +461,7 @@ tdc conversation unread --json
461
461
  tdc conversation list --kind group --json # find a group DM by participants/name
462
462
  tdc conversation view <conversation-id>
463
463
  tdc conversation with "Alice Example"
464
- tdc conversation reply <id> "Got it, thanks!"
464
+ tdc conversation reply <conversation-ref> "Got it, thanks!"
465
465
  \`\`\`
466
466
  `;
467
467
  export const SKILL_FILE_CONTENT = `---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/comms-cli",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "TypeScript CLI for Comms",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",