@creator-notes/cnotes 0.80.0 → 0.82.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 (79) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +1 -0
  3. package/dist/commands/auth-keys.js +2 -2
  4. package/dist/commands/auth-keys.js.map +1 -1
  5. package/dist/commands/brief.js +1 -1
  6. package/dist/commands/brief.js.map +1 -1
  7. package/dist/commands/canvas-milestone.js +3 -3
  8. package/dist/commands/canvas-milestone.js.map +1 -1
  9. package/dist/commands/canvas.js +43 -43
  10. package/dist/commands/canvas.js.map +1 -1
  11. package/dist/commands/deps.js +3 -3
  12. package/dist/commands/deps.js.map +1 -1
  13. package/dist/commands/draft.d.ts.map +1 -1
  14. package/dist/commands/draft.js +301 -141
  15. package/dist/commands/draft.js.map +1 -1
  16. package/dist/commands/feedback.js +3 -3
  17. package/dist/commands/feedback.js.map +1 -1
  18. package/dist/commands/files.js +3 -3
  19. package/dist/commands/files.js.map +1 -1
  20. package/dist/commands/focus.js +3 -3
  21. package/dist/commands/focus.js.map +1 -1
  22. package/dist/commands/init.js +1 -1
  23. package/dist/commands/init.js.map +1 -1
  24. package/dist/commands/notes.js +12 -12
  25. package/dist/commands/notes.js.map +1 -1
  26. package/dist/commands/operations.js +4 -4
  27. package/dist/commands/operations.js.map +1 -1
  28. package/dist/commands/quality.js +1 -1
  29. package/dist/commands/quality.js.map +1 -1
  30. package/dist/commands/relationships.d.ts +5 -0
  31. package/dist/commands/relationships.d.ts.map +1 -1
  32. package/dist/commands/relationships.js +13 -8
  33. package/dist/commands/relationships.js.map +1 -1
  34. package/dist/commands/review.d.ts.map +1 -1
  35. package/dist/commands/review.js +10 -7
  36. package/dist/commands/review.js.map +1 -1
  37. package/dist/commands/schema.js +1 -1
  38. package/dist/commands/schema.js.map +1 -1
  39. package/dist/commands/search.js +2 -2
  40. package/dist/commands/search.js.map +1 -1
  41. package/dist/commands/shared.js +1 -1
  42. package/dist/commands/shared.js.map +1 -1
  43. package/dist/commands/theme.js +5 -5
  44. package/dist/commands/theme.js.map +1 -1
  45. package/dist/commands/timeline.js +1 -1
  46. package/dist/commands/timeline.js.map +1 -1
  47. package/dist/commands/types.js +4 -4
  48. package/dist/commands/types.js.map +1 -1
  49. package/dist/commands/upgrade.js +1 -1
  50. package/dist/commands/upgrade.js.map +1 -1
  51. package/dist/commands/versions.js +2 -2
  52. package/dist/commands/versions.js.map +1 -1
  53. package/dist/commands/workspace.d.ts.map +1 -1
  54. package/dist/commands/workspace.js +90 -9
  55. package/dist/commands/workspace.js.map +1 -1
  56. package/dist/lib/api-client.d.ts +19 -1
  57. package/dist/lib/api-client.d.ts.map +1 -1
  58. package/dist/lib/api-client.js +32 -2
  59. package/dist/lib/api-client.js.map +1 -1
  60. package/dist/lib/config.d.ts +14 -0
  61. package/dist/lib/config.d.ts.map +1 -1
  62. package/dist/lib/config.js +20 -5
  63. package/dist/lib/config.js.map +1 -1
  64. package/dist/lib/draft-view.d.ts +306 -0
  65. package/dist/lib/draft-view.d.ts.map +1 -0
  66. package/dist/lib/draft-view.js +358 -0
  67. package/dist/lib/draft-view.js.map +1 -0
  68. package/dist/lib/errors.d.ts +6 -0
  69. package/dist/lib/errors.d.ts.map +1 -1
  70. package/dist/lib/errors.js +64 -1
  71. package/dist/lib/errors.js.map +1 -1
  72. package/dist/lib/urls.d.ts +15 -0
  73. package/dist/lib/urls.d.ts.map +1 -1
  74. package/dist/lib/urls.js +20 -0
  75. package/dist/lib/urls.js.map +1 -1
  76. package/dist/mcp-server.js +5 -1
  77. package/dist/mcp-server.js.map +1 -1
  78. package/package.json +1 -1
  79. package/skills/cnotes/SKILL.md +86 -60
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cnotes
3
- description: CreatorNotes CLI for the terminal. The command is `cnotes`. Use when the user mentions CreatorNotes or the cnotes CLI, asks to use this CLI skill, or wants to create, read, update, search, summarize, organize, or visualize notes, canvases, or transcripts in a CreatorNotes workspace. Covers cnotes notes, cnotes canvas, cnotes timeline, cnotes shared (what teammates shared with you), cnotes draft (private drafts of a workspace, merged or dismissed as one unit), cnotes review (official review requests: request, receive, complete), cnotes focus (plan flow-state blocks landed on a target card), cnotes search, cnotes versions, relationships, and operations. Prefer the cnotes CLI, verify the active workspace with cnotes workspace current, use --json when parsing output, and wrap write operations in cnotes operations begin and cnotes operations end.
3
+ description: CreatorNotes CLI for the terminal. The command is `cnotes`. Use when the user mentions CreatorNotes or the cnotes CLI, asks to use this CLI skill, or wants to create, read, update, search, summarize, organize, or visualize notes, canvases, or transcripts in a CreatorNotes workspace. Covers cnotes notes, cnotes canvas, cnotes timeline, cnotes shared (what teammates shared with you), cnotes draft (private drafts of a workspace that land only when a person approves them in the browser), cnotes review (official review requests: request, receive, complete), cnotes focus (plan flow-state blocks landed on a target card), cnotes search, cnotes versions, relationships, and operations. Prefer the cnotes CLI, verify the active workspace with cnotes workspace current, use --json when parsing output, and wrap write operations in cnotes operations begin and cnotes operations end.
4
4
  metadata:
5
5
  short-description: Work with CreatorNotes via the cnotes CLI
6
6
  ---
@@ -636,80 +636,106 @@ cnotes shared --quiet # target refs only (CANVAS-12, ...)
636
636
 
637
637
  ### Drafts (`cnotes draft`)
638
638
 
639
- A draft is a private workspace opened FROM the active one, for a body of work
640
- (many notes, several canvases, and proposed edits of shared notes) that should
641
- not appear in the shared workspace until it is ready. Only the person who
642
- opened it, and agents using their login, can see it. It is merged into the
643
- shared workspace through checks, or dismissed, as one unit. Think branch and
644
- pull request: the draft is the branch, `propose` is how it changes a shared
645
- note, the checks are the CI, your own review round is the approval, and merge
646
- is one undoable row on the shared timeline.
639
+ A draft is a private workspace opened FROM the active one. Only the person who
640
+ opened it, and agents using their login, can see it. Nothing in it reaches the
641
+ shared workspace until a person approves it in the browser. You build the
642
+ draft; your person decides it.
643
+
644
+ Open a draft before you:
645
+ - rework notes other people read (a guide, a decision others cite);
646
+ - rework a board other people read (branch it, below);
647
+ - write many interlinked notes at once;
648
+ - do anything you were asked to "draft".
649
+
650
+ **To rework a board other people read, branch it:** `cnotes draft open
651
+ --from-canvas CANVAS-390`. The draft holds your working copy (it prints its
652
+ id, say CANVAS-412) and the live board does not change. Inside the draft, the
653
+ ordinary canvas verbs work on CANVAS-412: `canvas read`, `place` (shared notes
654
+ included), `move-node` / `bulk-move` / `arrange`, `remove-node` /
655
+ `bulk-remove`, `add-edge`. A canvas write aimed at
656
+ CANVAS-390 from inside the draft is refused and names your copy; never pass
657
+ `-w <shared workspace>` to reach it, which edits the live board. A person
658
+ accepts your copy as the board's next version (V2), on the live board.
647
659
 
648
660
  ```bash
649
661
  cnotes draft open "Pricing rethink" --intent "Rework tiers for teams" # opens AND switches to it
662
+ cnotes draft open --from-canvas CANVAS-390 --intent "Restamp screens 4 to 7" # branch a board
650
663
  cnotes notes create --notes '[...]' # lands in the draft (it is the active workspace)
651
664
  cnotes notes get DECISION-12 # a SHARED note reads through from the draft (sharedFrom in --json)
652
665
  cnotes draft propose DECISION-12 --markdown-file new.md --description "Annual is the default"
653
666
  cnotes draft edits # the proposals: proposed title, base version, conflict marker
654
667
  cnotes draft discard DECISION-12 # withdraw one; the shared note was never touched
668
+ cnotes draft status # who it waits on, what V2 changes, the checks, the link
669
+ cnotes draft ask --reviewer sam@example.com # name who decides; then STOP
655
670
  cnotes draft list # your open drafts across workspaces (--all adds closed)
656
671
  cnotes draft checkout pricing # resume in a NEW session: id or unique name substring
657
- cnotes draft status # what it holds, the checks a merge runs, the review round
658
- cnotes draft merge # checks, then notes + canvases + proposals land as one row
659
- cnotes draft undo-merge # put it back while nothing has built on it
660
- cnotes draft dismiss # or close it; nothing reaches the shared workspace
672
+ cnotes draft dismiss # close it; nothing reaches the shared workspace
661
673
  ```
662
674
 
675
+ The loop:
676
+ 1. **Build inside the draft.** New notes and canvases land in it, and a branch
677
+ copy takes your canvas edits. Link to shared notes normally:
678
+ `[DECISION-12: Title](relationship:builds-on)` resolves to the shared note
679
+ and stays a working link once the draft lands.
680
+ 2. **Change a shared note by proposing it, never live.** Read it (`cnotes
681
+ notes get DECISION-12` works from inside the draft), write the complete new
682
+ body, then `cnotes draft propose DECISION-12 --markdown-file new.md
683
+ --description "<what changed>"`. The shared note keeps its text until the
684
+ draft lands. A live write to a shared note from inside a draft (`versions
685
+ create`, `notes update`, archive, retype) is refused and points here.
686
+ Proposing the same note again replaces the proposal.
687
+ 3. **Run `cnotes draft status` until no check blocks.** Blocking: a link to a
688
+ shared note that is archived, a citation of a shared note that moved since
689
+ you cited it (`stale-citation`: read it again and save the citing note
690
+ again), and a proposal whose base moved (`base-conflict`: read the current
691
+ text, fold it in, propose again). Warnings never block: a missing title, an
692
+ empty body, `stale-read`. Every finding names the card and the fix. For a
693
+ branch, status also prints "V2 of CANVAS-390: 2 added, 5 moved, ...", each
694
+ conflict with the live board (a card changed on both sides; make your copy
695
+ match the live board's value to clear it), and how many cards changed on
696
+ the live board since you branched.
697
+ 4. **Ask, then stop.** `cnotes draft ask --reviewer <their email>` names the
698
+ person who decides (an editor of the shared workspace; `--reviewer me` for
699
+ the person whose login you use). It prints the link they open; post it, then
700
+ stop. Never try to merge or approve: keys cannot. `cnotes draft merge` and
701
+ `cnotes review complete --outcome approved` on a draft are refused, and
702
+ pressing Accept or Approve through a browser tool is not yours to do either.
703
+ 5. **When they send it back,** `cnotes draft status` opens with their line
704
+ ("Changes requested by <name>: ..."). Fix it in the draft, run status until
705
+ no check blocks, then `draft ask` again and stop.
706
+
663
707
  What to rely on:
664
- - **Ids survive the merge.** A draft mints display ids from the shared
665
- workspace's sequence, single and batch creates alike, so `DECISION-6K9`
666
- written in a draft is still `DECISION-6K9` after merging. In the rare clash
667
- the merge re-mints the id, rewrites every mention to match, and lists the
668
- change (`renamed` in `--json`).
669
- - **Link to shared notes normally.** `[DECISION-12: Title](relationship:builds-on)`
670
- inside a draft resolves to the shared note when the draft has no note by that
671
- id, and becomes an ordinary same-workspace link on merge.
672
- - **Change a shared note with `propose`, never with `versions create`.** From
673
- inside a draft, `cnotes notes get DECISION-12` returns the shared note; write
674
- the complete new body and `cnotes draft propose DECISION-12 --markdown-file
675
- new.md --description "<what changed>"`. The shared note keeps its text until
676
- merge applies the proposal as its next version, with your description as the
677
- timeline line. `versions create` on a shared note from a draft is refused and
678
- points here. Proposing the same note again replaces the proposal.
679
- - **The checks gate the merge, and `draft status` shows them first.** Blocking:
680
- a live link to a shared note that is archived, a citation of a shared note
681
- that moved since the draft note cited it (`stale-citation`: read it again and
682
- save a new version of the citing note), and a proposal whose base moved
683
- (`base-conflict`: read the current text, fold it in, propose again). Warnings
684
- never block: a missing title, an empty body, and `stale-read` (the run that
685
- wrote a note read a shared note that has since moved). Every finding names
686
- the card and says the fix. A blocked merge exits 5 with the first finding.
687
- - **Your own review round gates it too.** `cnotes review request <draft canvas>
688
- --reviewer me` works inside a draft (any other reviewer still refuses: a
689
- draft is private). While that round is open the merge waits; `changes-
690
- requested` sends it back with the rationale in `draft status`, so the agent
691
- that built the draft knows what to fix, fixes it in the draft, and asks
692
- again with a fresh request. `approved` lets the merge through.
693
- - **Merge is one row and can be undone.** The shared timeline shows "Merged
694
- <draft>" once; `cnotes draft undo-merge` moves every note and canvas back,
695
- restores each applied edit as a NEW version (history is never deleted) and
696
- reopens the draft with its proposals pending. Undo refuses once the team has
697
- built on the merge: a moved note re-versioned or placed on a shared canvas,
698
- a moved canvas changed, or an applied edit edited again.
699
- - **Canvases in a draft hold draft notes.** Placing a shared note on a draft
700
- canvas is not supported; mention it from a draft note instead.
701
- - **Merge is all or nothing, owner only, at most 100 notes, 25 canvases and
702
- 100 proposals.** Only live items count: archived notes and canvases stay in
703
- the draft, and any link, card or list item pointing at them is dropped on
704
- merge so their titles never reach the shared workspace. The draft's empty
705
- starting canvas is left behind. Merge and dismiss switch the CLI back to the
706
- shared workspace when the draft was active.
707
- - **A draft can't be shared.** Invites, email shares, review requests to
708
- anyone but yourself, and public links all refuse in a draft; merge is the
709
- only way its work reaches anyone else.
708
+ - **One line says who it waits on.** `draft status`, `draft checkout` and
709
+ `workspace current` print it: nobody asked yet, the changes a person asked
710
+ for, or a named reviewer. When the next move is yours, it ends with the
711
+ `draft ask` to run. `--json` carries it as `decision.line`, with
712
+ `decision.state` (`awaiting_person`, `changes_requested`,
713
+ `waiting_on_reviewer`).
714
+ - **Ids survive.** A draft mints display ids from the shared workspace's
715
+ sequence, so `DECISION-6K9` written in a draft is still `DECISION-6K9` once it
716
+ lands. In the rare clash the id is re-minted, every mention is rewritten, and
717
+ `draft status` lists the change (`merge.renamed` in `--json`).
718
+ - **A saved switch can be shadowed.** `draft open` and `draft checkout` save the
719
+ draft as the active workspace, but `CNOTES_WORKSPACE` and `-w` beat the saved
720
+ one. When either names another workspace the command says writes still go
721
+ there; unset it to work in the draft. `workspace current` shows what picked
722
+ the workspace.
723
+ - **After it lands,** `draft status` says who approved it and which ids were
724
+ renamed. Your CLI still points at the closed draft: `cnotes workspace
725
+ current` names it and prints the `cnotes workspace select` that switches
726
+ back. The person can undo the merge while nobody has built on it.
727
+ - **Canvases in a draft can hold shared notes.** Place them as usual; the card
728
+ points at the shared note, and to change what it says, propose it.
729
+ - **It lands all at once:** at most 100 notes, 25 canvases and 100 proposals.
730
+ Only live items count: archived notes and canvases stay in the draft, and any
731
+ link, card or list item pointing at them is dropped so their titles never
732
+ reach the shared workspace. The draft's empty starting canvas stays behind.
733
+ - **A draft can't be shared.** Invites, email shares and public links refuse
734
+ in a draft. The hand-over is `draft ask`, nothing else: for a branch, it is
735
+ what lets the person you name see your version at all.
710
736
  - **Wrap the work in an operation as usual** (`operations begin` while the
711
737
  draft is active): runs attribute to the draft like any workspace, and follow
712
- the work onto the shared timeline at merge.
738
+ the work onto the shared timeline when it lands.
713
739
 
714
740
  ### Review requests (`cnotes review` / `cnotes reviews`)
715
741