@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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -0
- package/dist/commands/auth-keys.js +2 -2
- package/dist/commands/auth-keys.js.map +1 -1
- package/dist/commands/brief.js +1 -1
- package/dist/commands/brief.js.map +1 -1
- package/dist/commands/canvas-milestone.js +3 -3
- package/dist/commands/canvas-milestone.js.map +1 -1
- package/dist/commands/canvas.js +43 -43
- package/dist/commands/canvas.js.map +1 -1
- package/dist/commands/deps.js +3 -3
- package/dist/commands/deps.js.map +1 -1
- package/dist/commands/draft.d.ts.map +1 -1
- package/dist/commands/draft.js +301 -141
- package/dist/commands/draft.js.map +1 -1
- package/dist/commands/feedback.js +3 -3
- package/dist/commands/feedback.js.map +1 -1
- package/dist/commands/files.js +3 -3
- package/dist/commands/files.js.map +1 -1
- package/dist/commands/focus.js +3 -3
- package/dist/commands/focus.js.map +1 -1
- package/dist/commands/init.js +1 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/notes.js +12 -12
- package/dist/commands/notes.js.map +1 -1
- package/dist/commands/operations.js +4 -4
- package/dist/commands/operations.js.map +1 -1
- package/dist/commands/quality.js +1 -1
- package/dist/commands/quality.js.map +1 -1
- package/dist/commands/relationships.d.ts +5 -0
- package/dist/commands/relationships.d.ts.map +1 -1
- package/dist/commands/relationships.js +13 -8
- package/dist/commands/relationships.js.map +1 -1
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +10 -7
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/schema.js +1 -1
- package/dist/commands/schema.js.map +1 -1
- package/dist/commands/search.js +2 -2
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/shared.js +1 -1
- package/dist/commands/shared.js.map +1 -1
- package/dist/commands/theme.js +5 -5
- package/dist/commands/theme.js.map +1 -1
- package/dist/commands/timeline.js +1 -1
- package/dist/commands/timeline.js.map +1 -1
- package/dist/commands/types.js +4 -4
- package/dist/commands/types.js.map +1 -1
- package/dist/commands/upgrade.js +1 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/commands/versions.js +2 -2
- package/dist/commands/versions.js.map +1 -1
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +90 -9
- package/dist/commands/workspace.js.map +1 -1
- package/dist/lib/api-client.d.ts +19 -1
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +32 -2
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +20 -5
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/draft-view.d.ts +306 -0
- package/dist/lib/draft-view.d.ts.map +1 -0
- package/dist/lib/draft-view.js +358 -0
- package/dist/lib/draft-view.js.map +1 -0
- package/dist/lib/errors.d.ts +6 -0
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +64 -1
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/urls.d.ts +15 -0
- package/dist/lib/urls.d.ts.map +1 -1
- package/dist/lib/urls.js +20 -0
- package/dist/lib/urls.js.map +1 -1
- package/dist/mcp-server.js +5 -1
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/skills/cnotes/SKILL.md +86 -60
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
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
|
|
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
|
-
- **
|
|
665
|
-
workspace
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
- **
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
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
|
|
738
|
+
the work onto the shared timeline when it lands.
|
|
713
739
|
|
|
714
740
|
### Review requests (`cnotes review` / `cnotes reviews`)
|
|
715
741
|
|