@creator-notes/cnotes 0.121.10 → 0.124.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/dist/commands/canvas.js +1 -1
- package/dist/commands/draft.js +8 -2
- package/dist/commands/notes-import.js +129 -0
- package/dist/commands/notes.js +2 -0
- package/dist/commands/quality.js +55 -4
- package/dist/commands/skills.js +27 -5
- package/dist/lib/install-skill.js +62 -11
- package/dist/lib/intent-run.js +1 -0
- package/dist/lib/note-import.js +128 -0
- package/dist/lib/quality.js +43 -0
- package/dist/mcp-server.js +5 -5
- package/package.json +1 -1
- package/skills/attention-planner/SKILL.md +3 -1
- package/skills/attention-planner/references/attention-type.md +5 -3
- package/skills/cnotes/SKILL.md +45 -62
- package/skills/cnotes/references/agents-together.md +1 -1
- package/skills/cnotes/references/billing.md +8 -8
- package/skills/cnotes/references/canvas-elements.md +20 -20
- package/skills/cnotes/references/canvas-layout.md +37 -29
- package/skills/cnotes/references/canvas.md +4 -2
- package/skills/cnotes/references/drafts.md +7 -5
- package/skills/cnotes/references/humanizer.md +31 -31
- package/skills/cnotes/references/more-commands.md +9 -9
- package/skills/cnotes/references/notes.md +17 -14
- package/skills/cnotes/references/operations.md +13 -12
- package/skills/cnotes/references/output.md +23 -0
- package/skills/cnotes/references/relationships.md +11 -11
- package/skills/fat-marker-flows/SKILL.md +10 -13
- package/skills/goal-tree/SKILL.md +2 -2
- package/skills/howto-filmstrips/SKILL.md +10 -10
- package/skills/teach-workspace/SKILL.md +5 -2
- package/skills/transcript-timeline/SKILL.md +7 -7
- package/skills/transcript-timeline/references/layout.md +6 -6
- package/skills/wayfind/SKILL.md +36 -33
|
@@ -16,17 +16,17 @@ The vocabulary is five elements:
|
|
|
16
16
|
| Element | What it is | CLI |
|
|
17
17
|
|---|---|---|
|
|
18
18
|
| **note** | A reusable knowledge object: typed, versioned, searchable, with a display ID other notes can mention | `add-node`, `place` `type:"note"` |
|
|
19
|
-
| **text** | Free-form rich text placed directly on the canvas
|
|
19
|
+
| **text** | Free-form rich text placed directly on the canvas, markdown (headings, emphasis, images), optional background tint (none by default). Wire type is `richtext`. | `add-text`, `place` `type:"richtext"` |
|
|
20
20
|
| **list** | A container whose content is its MEMBER NOTES; the description is a one-line frame | `add-list` |
|
|
21
21
|
| **section** | A named region frame (Miro-style). Mints `SECTION-<n>`, mention-addressable | `add-section` |
|
|
22
22
|
| **canvas** | A portal to another canvas | `add-link`, `place` `type:"canvas"` |
|
|
23
23
|
|
|
24
|
-
**There is no separate heading element.** A heading is a **text** element whose content is a markdown heading and which has no background tint: `add-text <canvasId> --content '# Q1 Goals'`. (An older `text` node kind
|
|
24
|
+
**There is no separate heading element.** A heading is a **text** element whose content is a markdown heading and which has no background tint: `add-text <canvasId> --content '# Q1 Goals'`. (An older `text` node kind, plain string + font size, is retired: existing ones still render and can be moved or deleted, but nothing creates them any more.)
|
|
25
25
|
|
|
26
26
|
A canvas holds two tiers of content, and the difference is load-bearing:
|
|
27
27
|
|
|
28
|
-
- **Notes** are the knowledge tier: typed, versioned, searchable, citable by display ID
|
|
29
|
-
- **Everything else
|
|
28
|
+
- **Notes** are the knowledge tier: typed, versioned, searchable, citable by display ID, the only tier whose content other notes can mention, search can find, and history records. Anything a future reader must find, cite, verify, or build on lives here.
|
|
29
|
+
- **Everything else**, text elements, list containers, section frames, edges, portals, is the presentation tier: orientation, grouping, emphasis, navigation. Text elements, lists, edges and portals have no display ID (nothing can cite them), no version history (they mutate silently), and no search presence. (Sections are the one exception: a frame mints a `SECTION-<n>` you can mention, it addresses a *place*, not knowledge.) They shape how the knowledge lands; they never hold the knowledge. The board's own sentences belong to this tier too: what this card means for the next one is true only here, so a text card is its home (the connective row in the table below).
|
|
30
30
|
|
|
31
31
|
**Two questions decide every piece of content, in order.** *Home:* will any future reader, a person or the next agent session pointed at this canvas for context, need to find, cite, revise or trust these words after today? If yes, it MUST be a note, whatever it looks like on the board; "it renders nicely on the canvas" is never a reason to put knowledge in a text element, since that trades permanent legibility (versions, search, citable IDs) for screen presence now. *Face:* must the board show these words at the glance, zoomed to fit? If yes, the note gets a face, a quote of its claim sentence (rule 4), sized by reach (rule 9); if no, the tile is enough.
|
|
32
32
|
|
|
@@ -38,8 +38,8 @@ A board is made of three kinds of words, and a board that holds only the first k
|
|
|
38
38
|
|---|---|---|
|
|
39
39
|
| A claim, fact, decision, risk, question, verdict, score, spec, or example worth keeping | A typed **note** (right supertag, `# h1` title) | a text element |
|
|
40
40
|
| N distinct things (questions, risks, options, findings) | **N notes** in a **section** frame named for the set (`place` with a section container); a list container only when the set must read as one card | bullets in one text element, or prose in a list `--description` |
|
|
41
|
-
| A named REGION of the canvas ("Shaping", "Open Questions") | a **section** frame (`add-section`)
|
|
42
|
-
| A heading / one-line label where a frame is too heavy (a column header inside a frame, a lane key) | a **text** element holding a markdown heading
|
|
41
|
+
| A named REGION of the canvas ("Shaping", "Open Questions") | a **section** frame (`add-section`), draggable region, mention-addressable as `[[SECTION-<n>]]` from note bodies | a floating text heading over an implied area |
|
|
42
|
+
| A heading / one-line label where a frame is too heavy (a column header inside a frame, a lane key) | a **text** element holding a markdown heading,`add-text --content '# Q1 Goals'`, no `--color` (leave it untinted), title case | a tinted card, or a section frame for something that isn't a region |
|
|
43
43
|
| The board's goal, readable at zoom-to-fit | one `large` untinted **text** hero at the top-left, `# <the goal's result>`, shaped by rule 7 | a `medium` heading standing in for it, the canvas name repeated, a tinted hero |
|
|
44
44
|
| Orientation: the situation, what the board is for, how to read it | one `medium` **text** banner per canvas, directly under the hero, shaped by rule 7 (a band may add a one-line one) | a paragraph banner, a reading-order-only banner, a banner that narrates the request ("Deniss asked…"), a Guide note |
|
|
45
45
|
| A note's claim the board must show at the glance | a **Quote face** of that note (`add-quote` of its claim sentence, rule 4), sized by reach (rule 9) | a text card restating it, or the bare tile when the argument rests on this note |
|
|
@@ -48,28 +48,28 @@ A board is made of three kinds of words, and a board that holds only the first k
|
|
|
48
48
|
| A grid of images for review (mood board) | N text-element image tiles in a `grid` place spec + ONE note holding the decision criteria / rationale for the set | a caption note per tile, or rationale in the tiles |
|
|
49
49
|
| "A connects to B" between two notes | a labeled **edge** (short verb phrase), notes only | prose explaining the connection |
|
|
50
50
|
| The exact line from a transcript or note that carries a point | a **Quote note** (`add-quote`): the words pinned to that note's version, drawn on the board as a quote, reusable on any canvas as the same QUOTE-<n>; interpretation goes in an Insight | pasting the words into a new note or a text element, where they drift from the source |
|
|
51
|
-
| A pointer to another canvas | a **portal
|
|
51
|
+
| A pointer to another canvas | a **portal**,`add-link` on the CLI, `{"type": "canvas", "linkedCanvasId": ...}` in place specs, returned as `canvasLinkNodes` by `canvas get` | a text element saying "see other canvas" |
|
|
52
52
|
| Backstage narration (scripts, speaker notes) | NOTES on a PRIVATE sibling canvas (cue-card text elements are fine there); portal FROM the private canvas TO the shared one, never the reverse | narration on the shared canvas |
|
|
53
53
|
|
|
54
54
|
## Hard rules (each one has burned a real canvas)
|
|
55
55
|
|
|
56
|
-
1. **A canvas element must never be the sole home of a claim.** Verdict tallies, dates, scan provenance, and even a moat-defining sentence have each been authored as text elements
|
|
56
|
+
1. **A canvas element must never be the sole home of a claim.** Verdict tallies, dates, scan provenance, and even a moat-defining sentence have each been authored as text elements, then cited downstream while being unversioned, unsearchable, and uncitable. If a text element says something true and useful, a note says it first; the text element may quote the note. (The board's own words are the exemption, because they have no off-canvas value: how to read THIS canvas, and the connectives that say what one card means for the next. The test is whether the sentence would still be true on another board; if it would, it is a claim and lives in a note.)
|
|
57
57
|
2. **Name notes and canvases from text elements with relationship mentions, never bare ids.** `[NOTE-12: Title](relationship:references)` inside a text element renders as a mention chip, in the same three forms as a note body (the title, `[[NOTE-12]]` for the id alone, `[[NOTE-12|your words]]`; [notes.md](notes.md)), and a list description renders it as a labelled span. "See RISK-64" as plain prose is a defect: the reader gets no link. Pick the relationship type from the verb the sentence uses and reuse the workspace vocabulary. The chip is presentational: it creates no graph relationship, is not searchable, and is not versioned, so a relationship that must survive off the canvas still lives as a mention in a NOTE body (rule 5).
|
|
58
|
-
3. **A text element is capped at card size**: at most 3 sentences, one heading at most, never a list of distinct knowledge items (questions, risks, findings
|
|
59
|
-
4. **Detail's HOME is the note body; a note's face on the board is a quote of it, never a restatement.** Write the full content INTO each note's body first. When the board must show a note's claim at the glance, quote it: `add-quote --note <id> --text "<its claim sentence>" --size medium` pins the note's own sentence to its version and draws it as a Quote card (rule 8), so there is one copy and nothing drifts. Write the claim sentence first; the words must be in the saved version, and the same words on another board reuse the same QUOTE-<n>. A text card that restates a note is the anti-pattern: `update-text` edits it with no history, so after one revision only the note tells the truth (47 of 262 text cards on 44 recent boards had grown past the cap this way), and one teaching canvas carried its entire method in text cards over one-line stub notes, so an agent reading it back got seven stubs and no method. A connective (decision table) is not a restatement: it says what the note means for the next card, which the note itself does not say, and it names the note by chip rather than repeating it.
|
|
60
|
-
5. **Edges can connect any node type** (note, text, list, canvas-link, section
|
|
61
|
-
6. **Color is a ROLE or it is absent.** Default neutral
|
|
58
|
+
3. **A text element is capped at card size**: at most 3 sentences, one heading at most, never a list of distinct knowledge items (questions, risks, findings, those are N notes; a 3-line color legend or lane key is fine). The one exception is the orientation banner (four short lines, rule 7). A heading-only text element (`--content '# Q1 Goals'`, or the hero) is of course fine, that is the smallest legitimate use. The cap is physical as much as doctrinal: a text element renders its full content inline, so long blocks explode the canvas, one canvas hit 43,000px tall from eight text reference blocks and had to be rebuilt as notes.
|
|
59
|
+
4. **Detail's HOME is the note body; a note's face on the board is a quote of it, never a restatement.** Write the full content INTO each note's body first. When the board must show a note's claim at the glance, quote it: a `quote` leaf in the place spec under the note (`{"kind":"item","type":"quote","noteId":"@A","text":"<its claim sentence>","size":"medium"}`, [canvas-layout.md](canvas-layout.md)), or `add-quote --note <id> --text "<its claim sentence>" --size medium` on a board that exists. Either pins the note's own sentence to its version and draws it as a Quote card (rule 8), so there is one copy and nothing drifts. Write the claim sentence first; the words must be in the saved version, and the same words on another board reuse the same QUOTE-<n>. A text card that restates a note is the anti-pattern: `update-text` edits it with no history, so after one revision only the note tells the truth (47 of 262 text cards on 44 recent boards had grown past the cap this way), and one teaching canvas carried its entire method in text cards over one-line stub notes, so an agent reading it back got seven stubs and no method. A connective (decision table) is not a restatement: it says what the note means for the next card, which the note itself does not say, and it names the note by chip rather than repeating it.
|
|
60
|
+
5. **Edges can connect any node type** (note, text, list, canvas-link, section, plus legacy heading nodes), as long as both endpoints are on the same canvas; labels are short verb phrases ("fixes", "grounds", "depends on"). A section endpoint is addressed by its SECTION-n handle (or the frame's node id), and the edge anchors to the frame's border, use one when the relationship's endpoint is genuinely the whole region ("this cluster feeds that stage"), not as a shortcut for a note-to-note link. `canvas read` returns edges, so they are no longer invisible on read-back, but an edge is still CANVAS-LOCAL: it is not part of the note graph, never appears in `rel list`, is not searchable, and means nothing once you leave this canvas. So any relationship **between notes** that must survive off the canvas has to ALSO exist as a mention inside the note bodies. The mention is the copy that travels; the edge is the copy you can see. Edges to and from text cards and Quote faces carry the board's argument (a quote to the connective that reads it, the connective to the option it rules out, the recommendation to what flips it); they have nothing to mirror, since the board is their home, and a spine with no arrows between its steps is a pile. Edges to list and portal nodes, and a label pointed at a cluster, are decoration. **Two line styles make two layers.** On a board with more than about eight arrows, make the ones that say what a card rests on (grounded in, builds on, extends, refines, references) dashed (`"lineStyle": "dashed"` on the spec edge, `--line-style dashed` on `add-edge`) and keep solid for the chain the reader follows (derived from, applies, selects, implements, realizes) and for the Questions that gate it, then say so in a small untinted legend text card beside the banner. One style of arrow everywhere reads as one flat tangle. `canvas update-edge <canvasId> --edge <id> --line-style dashed` restyles an arrow that exists (ids from `canvas get --json`, `edges[].id`).
|
|
61
|
+
6. **Color is a ROLE or it is absent.** Default neutral, a text element has NO background unless you pass `--color`, and that is usually the right look (an untinted heading is just type on the canvas). When a tint does mean something, pick from the six role hexes and reuse ONE role per meaning, 2–4 roles per canvas max:
|
|
62
62
|
|
|
63
63
|
| Role | Hex | Use for |
|
|
64
64
|
|---|---|---|
|
|
65
65
|
| Evidence | `#3B82F6` | input, quote, data |
|
|
66
66
|
| Commitment | `#22C55E` | decided or owned work |
|
|
67
|
-
| Insight | `#EC4899` | the aha
|
|
67
|
+
| Insight | `#EC4899` | the aha, 1–2 per canvas |
|
|
68
68
|
| Warning | `#F59E0B` | caveat, risk |
|
|
69
69
|
| Danger | `#EF4444` | blocker |
|
|
70
70
|
| People | `#8B5CF6` | person, stakeholder |
|
|
71
71
|
|
|
72
|
-
Do not hand-pick a hex outside this table: the renderer snaps every tint to the nearest role by hue, so an off-palette color does not get you a new shade
|
|
72
|
+
Do not hand-pick a hex outside this table: the renderer snaps every tint to the nearest role by hue, so an off-palette color does not get you a new shade, it just picks a role imprecisely (`#c2410c` lands on Danger, not Warning). A tint colors the CARD only; text inside it keeps the normal prose colors, so the tint can never make a card harder to read. If you cannot name the role, omit the color.
|
|
73
73
|
|
|
74
74
|
Neutral is the default, not the goal. A board where no card carries a role hides its caveat and its commitment among cards that all look alike. When the board has a caveat that could sink the plan, a piece of decided work or the one aha, tint those one to three cards by role. The hero and every heading stay untinted.
|
|
75
75
|
|
|
@@ -94,7 +94,7 @@ A board is made of three kinds of words, and a board that holds only the first k
|
|
|
94
94
|
Cut: frame counts ("in five moments"), method notes ("fat-marker sketches", "coral marks…"), and recaps of what the strip below says.
|
|
95
95
|
Wayfind and Attention canvases add their own lines after these four, never instead.
|
|
96
96
|
|
|
97
|
-
8. **Quotes carry a board's best lines.** A board of same-shaped cards hides its point.
|
|
97
|
+
8. **Quotes carry a board's best lines.** A board of same-shaped cards hides its point. Give every note on the spine (the chain from the situation to the recommendation, Board shapes below) a face: a `quote` leaf of its claim sentence under the note in the place spec (rule 4), which lands inside its frame in the same call. Then find the lines the board rests on that are not claim sentences (a customer's own words, the reason inside a Decision, the number that changes the story) and quote each from its source note the same way. The tile is for the shelf: the sources and references a reader opens on demand. Each face is a Quote note (QUOTE-<n>) that other boards can reuse. On a board that already exists, `add-quote` adds a face beside its source, outside any frame: pull it in with `arrange --section SECTION-<n> --spec` using `existing` leaves for the frame's cards and the quote and a numeric `gap` ([canvas-layout.md](canvas-layout.md)); `place --into` refuses a card that is already on the board.
|
|
98
98
|
- **Size is hierarchy (rule 9).** One `large` quote per board: the line everything rests on. `medium` for one to three supporting lines. `small` for evidence beside the card it backs. Never two large quotes; the hero is the only other large card.
|
|
99
99
|
- **Style follows the job.** `pull` for a line that stands alone. `highlight` when the words need their sentence around them. `evidence` for data or an excerpt backing a claim next to it.
|
|
100
100
|
- **Colour follows rule 6, by meaning.** `insight` for the hero line, `evidence` for customer words and data, `warning` for the caveat that could sink the plan, `people` for a stakeholder speaking. Most quotes stay untinted; tint two at most.
|
|
@@ -141,9 +141,9 @@ The **spine** is the chain the reader follows from the situation to the recommen
|
|
|
141
141
|
|
|
142
142
|
Run all three before ending your operation:
|
|
143
143
|
|
|
144
|
-
**The read-back test (for the next agent):** run `cnotes canvas read` and check that every claim is present as a NOTE section with a display ID, and the reasoning can be followed through note bodies and their mentions. Content that appears only as anonymous text-element prose fails the test even when visible
|
|
144
|
+
**The read-back test (for the next agent):** run `cnotes canvas read` and check that every claim is present as a NOTE section with a display ID, and the reasoning can be followed through note bodies and their mentions. Content that appears only as anonymous text-element prose fails the test even when visible, nothing can cite, search, or version it. List members read back as ID+title links without bodies; that is fine, the IDs are citable and batch-fetchable via `cnotes notes get`. There is no ratio of notes to text cards. Test each text card instead: it is furniture (the hero, the banner, a heading, a legend, a lane key), a connective (true only on this board, joining cards it names by chip), or a sticky on a Working board that will be promoted. Anything else is a claim that needs a note, and a text card that restates a note is a face that should be a quote (rule 4).
|
|
145
145
|
|
|
146
|
-
**The glance test (for the human):** zoomed to fit, a person should grasp what this canvas argues and where to start reading in about 10 seconds. A canvas that passes read-back but renders as an undifferentiated card grid is also not done
|
|
146
|
+
**The glance test (for the human):** zoomed to fit, a person should grasp what this canvas argues and where to start reading in about 10 seconds. A canvas that passes read-back but renders as an undifferentiated card grid is also not done, that is what the hero, section labels, orientation banners, projections, and layout are for. Fail it when there is no `large` hero at the top-left (rule 7), when every text card is the same size (rule 9), when a note on the spine of an Argument or Poster board is a bare tile (rule 4), when the steps of the spine are joined by nothing (no connective, no arrow; rule 5), or when the board's Decision, Risk or one Insight carries no role tint (rule 6): 8 of 262 text cards on 44 recent boards were tinted, so neutral-by-default had been read as neutral-always.
|
|
147
147
|
|
|
148
148
|
**The cold-reader test.** Cover everything but the hero and the banner.
|
|
149
149
|
Can a stranger say what the situation is, what the board produces, and where the answer goes?
|
|
@@ -152,13 +152,13 @@ Test the banner text itself, not your memory of the run.
|
|
|
152
152
|
|
|
153
153
|
## Worked example
|
|
154
154
|
|
|
155
|
-
Right shape (a real competitor scan): 31 typed notes (COMPETITOR profile, FACT evidence row, INSIGHT verdicts per dimension, RISK/IDEA/STRATEGY response bands, QUESTION follow-ups in a list), a quote face on each verdict and on the two customer lines, a connective under each band saying what its cards add up to for the next band, three short text banners framing the bands ("Threats, Steals, Response
|
|
155
|
+
Right shape (a real competitor scan): 31 typed notes (COMPETITOR profile, FACT evidence row, INSIGHT verdicts per dimension, RISK/IDEA/STRATEGY response bands, QUESTION follow-ups in a list), a quote face on each verdict and on the two customer lines, a connective under each band saying what its cards add up to for the next band, three short text banners framing the bands ("Threats, Steals, Response, what hurts us, what's worth taking, the plan"), and labeled edges mirrored as mentions (`FACT-44 --grounds--> INSIGHT-361`).
|
|
156
156
|
|
|
157
|
-
Wrong shape (same content): one 5,000-char text element holding a "deep scan writeup", a text scoreboard holding the verdict tally, and a few notes for leftovers. Search finds nothing, versions record nothing, nothing can cite or link any of it
|
|
157
|
+
Wrong shape (same content): one 5,000-char text element holding a "deep scan writeup", a text scoreboard holding the verdict tally, and a few notes for leftovers. Search finds nothing, versions record nothing, nothing can cite or link any of it, and the headline verdict goes stale the first time someone edits the card.
|
|
158
158
|
|
|
159
159
|
## Current platform limitations (re-check before relying on these)
|
|
160
160
|
|
|
161
|
-
The durable rules above stand on versioning, search, and citability. Four rules also lean on today's platform behavior
|
|
161
|
+
The durable rules above stand on versioning, search, and citability. Four rules also lean on today's platform behavior, if a future release changes these, the corresponding rule can relax:
|
|
162
162
|
|
|
163
163
|
- Mentions inside text elements and list descriptions are presentational chips only: no graph relationship, no search presence, no versions (motivates rule 1 and the mirror-as-mentions half of rule 5).
|
|
164
164
|
- `canvas read` returns sections, edges and portals, but list containers still read back as their one-line frame only. An edge read back is still canvas-local and ungraphed (motivates rule 5's mirror-as-mentions requirement).
|
|
@@ -6,7 +6,7 @@ Read this before putting more than one item on a canvas. Describe structure; the
|
|
|
6
6
|
|
|
7
7
|
- [The layout DSL](#the-layout-dsl)
|
|
8
8
|
- [Leaf item shapes](#leaf-item-shapes)
|
|
9
|
-
- [Section container (frame WITH content
|
|
9
|
+
- [Section container (frame WITH content: preferred)](#section-container-frame-with-content-preferred)
|
|
10
10
|
- [Arrange existing nodes (reflow)](#arrange-existing-nodes-reflow)
|
|
11
11
|
- [Arranged sections](#arranged-sections)
|
|
12
12
|
- [Edges](#edges)
|
|
@@ -17,11 +17,11 @@ Read this before putting more than one item on a canvas. Describe structure; the
|
|
|
17
17
|
|
|
18
18
|
**Don't compute coordinates by hand. Use `cnotes canvas place` with a layout spec.**
|
|
19
19
|
|
|
20
|
-
The server measures every item, packs them into a no-overlap layout, and inserts them in a single batch. You describe **structure** (rows, columns, what's near what)
|
|
20
|
+
The server measures every item, packs them into a no-overlap layout, and inserts them in a single batch. You describe **structure** (rows, columns, what's near what), the server resolves pixels. This is what `cnotes canvas place` is for, and you should reach for it whenever you're adding more than one item.
|
|
21
21
|
|
|
22
|
-
The call is **best-effort, not transactional
|
|
22
|
+
The call is **best-effort, not transactional**: per-item failures are reported in the response (HTTP 207) but the items that succeeded stay on the canvas. Always inspect `items[].error` and `edges[].error` before assuming success.
|
|
23
23
|
|
|
24
|
-
**You don't have to find a free coordinate.** `place` is collision-aware against content already on the canvas. By default (`placement: "auto"`) it drops your layout in a clear band **below everything that's already there**, and if you do pass an `origin` that would overlap, it slides the whole block straight down until it's clear. So appending a new section to a non-empty canvas Just Works
|
|
24
|
+
**You don't have to find a free coordinate.** `place` is collision-aware against content already on the canvas. By default (`placement: "auto"`) it drops your layout in a clear band **below everything that's already there**, and if you do pass an `origin` that would overlap, it slides the whole block straight down until it's clear. So appending a new section to a non-empty canvas Just Works, no need to read existing positions and guess a safe `origin` first. Use `--placement append` to force "below everything", or `--placement exact` (or `"placement": "exact"` in the doc) to honor your `origin` verbatim for pixel-perfect templates.
|
|
25
25
|
|
|
26
26
|
Use `cnotes canvas bulk-add` with explicit `x/y` ONLY for pixel-perfect templates (e.g. demo recordings or tutorial walkthroughs that need to match a specific screenshot).
|
|
27
27
|
|
|
@@ -29,29 +29,29 @@ Use `cnotes canvas bulk-add` with explicit `x/y` ONLY for pixel-perfect template
|
|
|
29
29
|
|
|
30
30
|
A layout document is `{ root, edges?, origin?, placement? }` where `root` is one of four node kinds:
|
|
31
31
|
|
|
32
|
-
- **`stack
|
|
32
|
+
- **`stack`**, items flow along one axis (like CSS flexbox)
|
|
33
33
|
```json
|
|
34
34
|
{ "kind": "stack", "axis": "vertical", "gap": "medium",
|
|
35
35
|
"align": "start", "items": [ /* LayoutNode */ ] }
|
|
36
36
|
```
|
|
37
|
-
- **`grid
|
|
37
|
+
- **`grid`**, N columns, items wrap to new rows (like CSS grid auto-flow)
|
|
38
38
|
```json
|
|
39
39
|
{ "kind": "grid", "columns": 3, "gap": "medium",
|
|
40
40
|
"items": [ /* LayoutNode */ ] }
|
|
41
41
|
```
|
|
42
|
-
- **`anchor
|
|
42
|
+
- **`anchor`**, place a sub-tree relative to an EXISTING canvas node
|
|
43
43
|
```json
|
|
44
44
|
{ "kind": "anchor", "to": "NOTE-12", "direction": "right",
|
|
45
45
|
"gap": "medium", "child": /* LayoutNode */ }
|
|
46
46
|
```
|
|
47
|
-
`direction` is exactly one of `"right"` | `"left"` | `"above"` | `"below"
|
|
48
|
-
- **`item
|
|
47
|
+
`direction` is exactly one of `"right"` | `"left"` | `"above"` | `"below"`, NOT `top`/`bottom`/`up`/`down`.
|
|
48
|
+
- **`item`**, a leaf node (no x/y!). One per visible thing on the canvas.
|
|
49
49
|
|
|
50
50
|
`gap` accepts a preset (`"tight"`, `"medium"`, `"spacious"`) or a raw pixel number. Defaults to `"medium"`. The presets are horizontal / vertical pixels: `tight` 60 / 27, `medium` 200 / 72, `spacious` 400 / 144, so a `medium` horizontal stack puts 200px between cards; pass a number (48) when a row should read as one band.
|
|
51
51
|
|
|
52
52
|
The schema is strict: an unknown or typo'd key anywhere in the doc (e.g. `gapp`, `positionx`) is rejected with the offending key named, rather than silently ignored. Validation errors return `details.issues` with the full path (`doc.root.items[2].direction`), the allowed values, and what you sent.
|
|
53
53
|
|
|
54
|
-
`placement` (top-level, optional) controls where the whole layout sits relative to existing content: `"auto"` (default, collision-aware
|
|
54
|
+
`placement` (top-level, optional) controls where the whole layout sits relative to existing content: `"auto"` (default, collision-aware, below existing content / de-collide), `"append"` (always below everything), `"exact"` (honor `origin` verbatim). `origin` is the top-left corner; omit it and `auto`/`append` pick a safe one for you.
|
|
55
55
|
|
|
56
56
|
## Leaf item shapes
|
|
57
57
|
|
|
@@ -61,22 +61,25 @@ The schema is strict: an unknown or typo'd key anywhere in the doc (e.g. `gapp`,
|
|
|
61
61
|
{ "kind": "item", "type": "richtext", "content": "Read this band left to right.", "size": "medium", "colorHex": "#F59E0B" }
|
|
62
62
|
{ "kind": "item", "type": "list", "description": "Risks tracked weekly — owner: @ana", "noteIds": ["A","B","C"], "viewMode": "list" }
|
|
63
63
|
{ "kind": "item", "type": "canvas", "linkedCanvasId": "abc..." }
|
|
64
|
+
{ "kind": "item", "type": "quote", "noteId": "@problem", "text": "Reviews wait on one person", "size": "medium", "key": "f1" }
|
|
64
65
|
{ "kind": "item", "type": "section", "name": "Open Questions", "width": 800, "height": 500 }
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
`
|
|
68
|
+
A `quote` leaf is a note's face (canvas-elements.md rules 4 and 8): `text` is the exact words from the note's saved version, `noteId` a display id or the `@<key>` of a note the same call creates, `style` (`pull` default, `highlight`, `evidence`), `size` (`small` default, `medium`, `large`), `colorHex` a role hex, `title` your own words for why the line matters. The server makes or reuses the Quote note (`QUOTE-<n>`, the same one `canvas add-quote` would make) and places its card where the solver put the leaf, inside its frame, measured from its words. The response item carries `quoteNoteDisplayId`, `noteDisplayId` and `versionNumber`; `placed: false` means that quote was already on the board. Put the face under or beside its note in the same stack; an edge may name it by `@<key>`. `add-quote` is for a board that already exists.
|
|
69
|
+
|
|
70
|
+
`richtext` IS the **text** element (the CLI's `add-text`), the only free-form text leaf. A heading is a `richtext` leaf whose content is `"# Title"` with no `colorHex`. There is no `"type": "text"` leaf: the old heading node kind is retired and the layout engine rejects it.
|
|
68
71
|
|
|
69
72
|
**New notes in the same call.** A spec can carry a top-level `notes` array in the `notes create` shape (`{key, type, markdown|markdownFile, tags?, changeDescription?}`). A note leaf places one with `"noteId": "@<key>"` and takes `<key>` as its own key, so edges and anchors say `@<key>`; bodies cross-link with `[@<key>: Title](relationship:<verb>)`. The notes are checked before anything is written, created only if the layout solves, need an open run, and come back under `notes` in the `notes create` response shape. A dry run creates nothing. If placing then fails, the notes still exist: fix forward, never re-run the spec.
|
|
70
73
|
|
|
71
74
|
Leaf enums (exact values): richtext `size` = `small` | `medium` | `large`, `colorHex` = a saturated hex (omit for no background); list `viewMode` = `list` | `grid`, list `size` = `sm` | `md` | `lg` | `xl`.
|
|
72
75
|
|
|
73
|
-
A richtext `size` is not a hint
|
|
76
|
+
A richtext `size` is not a hint, it IS the width the card paints: `small` 560px, `medium` 1120px, `large` 1680px, with the height following the content. It sets the type too (headings 30, 56 and 128px; body 14, 24 and 48px), which is why the hero is `large` and an annotation `small` ([canvas-elements.md](canvas-elements.md) rules 7 and 9). A large hero under 50 characters is about 600px tall; a four-line `medium` banner without a heading about 375px. `place` measures that box for you, which is the whole reason to prefer it over hand-picked coordinates: pitch a row of columns for `small` and then send `medium` items and every card runs 460px into its neighbour.
|
|
74
77
|
|
|
75
|
-
## Section container (frame WITH content
|
|
78
|
+
## Section container (frame WITH content: preferred)
|
|
76
79
|
|
|
77
80
|
Beyond the fixed-size leaf above, `section` is also a CONTAINER: wrap any
|
|
78
81
|
stack/grid in a named frame and the solver sizes the frame around the content
|
|
79
|
-
plus padding
|
|
82
|
+
plus padding: no coordinate math, one call. This is how "create a section and
|
|
80
83
|
lay out notes in it" should be expressed:
|
|
81
84
|
|
|
82
85
|
```json
|
|
@@ -89,13 +92,13 @@ lay out notes in it" should be expressed:
|
|
|
89
92
|
}
|
|
90
93
|
```
|
|
91
94
|
|
|
92
|
-
The place response's section item carries its `displayId` (SECTION-<n>)
|
|
95
|
+
The place response's section item carries its `displayId` (SECTION-<n>),
|
|
93
96
|
surface it and mention it as `[[SECTION-<n>]]` from note bodies. For the
|
|
94
97
|
simple case, `add-section --notes id1,id2` is the same thing as a one-liner.
|
|
95
98
|
To **reflow content that ALREADY sits on the canvas** into a section (mixed
|
|
96
|
-
kinds
|
|
99
|
+
kinds: notes, canvas-links, richtext, lists), use `canvas arrange`, do NOT
|
|
97
100
|
hand-compute coordinates with `bulk-move` + `update-section`. To grow or
|
|
98
|
-
rename a frame without moving its contents, use `canvas update-section
|
|
101
|
+
rename a frame without moving its contents, use `canvas update-section`,
|
|
99
102
|
never delete + re-add, which mints a new SECTION-<n> and breaks every
|
|
100
103
|
`[[SECTION-<n>]]` mention pointing at the old one.
|
|
101
104
|
|
|
@@ -151,7 +154,7 @@ sections and lists any card that runs past its frame's edge; fix those with
|
|
|
151
154
|
|
|
152
155
|
The optional `key` lets edges and other items reference this leaf later (`@<key>`).
|
|
153
156
|
|
|
154
|
-
`richtext.content` (the **text** element) accepts markdown directly
|
|
157
|
+
`richtext.content` (the **text** element) accepts markdown directly, the server converts to TipTap before measuring. Markdown including relationship mentions: `[NOTE-X: Title](relationship:verb)` renders as a chip with the real title, so use one wherever the card names a note or canvas (a bare id is a defect), and keep it card-sized per [canvas-elements.md](canvas-elements.md).
|
|
155
158
|
|
|
156
159
|
`list.description` is a one-line **frame**; the content is `noteIds`, the member notes (N distinct things = N notes, see [canvas-elements.md](canvas-elements.md)).
|
|
157
160
|
|
|
@@ -159,20 +162,23 @@ The optional `key` lets edges and other items reference this leaf later (`@<key>
|
|
|
159
162
|
|
|
160
163
|
Edges live at the top level alongside `root`. Each endpoint is resolved in this priority order:
|
|
161
164
|
|
|
162
|
-
1. **`@<key
|
|
163
|
-
2. **Original `noteId`** of a note placed in this call (e.g. `"NOTE-7"`)
|
|
165
|
+
1. **`@<key>`**, any item placed in the same call that carries a matching `key`
|
|
166
|
+
2. **Original `noteId`** of a note placed in this call (e.g. `"NOTE-7"`), no `key` needed
|
|
164
167
|
3. **Display id or convex id** of a node already on the canvas
|
|
165
168
|
|
|
166
169
|
```json
|
|
167
170
|
"edges": [
|
|
168
171
|
{ "from": "@a", "to": "@b", "label": "depends on" },
|
|
169
|
-
{ "from": "NOTE-7", "to": "@a" }
|
|
172
|
+
{ "from": "NOTE-7", "to": "@a" },
|
|
173
|
+
{ "from": "@rec", "to": "OBSERVATION-40", "label": "grounded in", "lineStyle": "dashed" }
|
|
170
174
|
]
|
|
171
175
|
```
|
|
172
176
|
|
|
177
|
+
`lineStyle` is `solid` (the default: the chain the reader follows) or `dashed` (what a card rests on), so a board with two layers of arrows is drawn in one call (canvas-elements.md, rule 5). `canvas update-edge --line-style` restyles an arrow that already exists.
|
|
178
|
+
|
|
173
179
|
## Examples
|
|
174
180
|
|
|
175
|
-
**Argument spine** (a decision read left to right). The shape for an Argument board ([canvas-elements.md](canvas-elements.md), Board shapes). Each step of the argument is one column: a heading naming the step, the note the step rests on
|
|
181
|
+
**Argument spine** (a decision read left to right). The shape for an Argument board ([canvas-elements.md](canvas-elements.md), Board shapes). Each step of the argument is one column: a heading naming the step, the note the step rests on with its face (a `quote` leaf of its claim sentence) under it, and then a `small` connective, the board's own sentence saying what that card means for the next step. Edges join the steps; the rests-on arrow is dashed. The shelf, the sources the spine rests on, is a section of tiles below. One call builds all of it.
|
|
176
182
|
```json
|
|
177
183
|
{
|
|
178
184
|
"notes": [
|
|
@@ -191,6 +197,7 @@ Edges live at the top level alongside `root`. Each endpoint is resolved in this
|
|
|
191
197
|
{ "kind": "stack", "axis": "vertical", "gap": 20, "items": [
|
|
192
198
|
{ "kind": "item", "type": "richtext", "content": "# 1 · What goes wrong" },
|
|
193
199
|
{ "kind": "item", "type": "note", "noteId": "@problem" },
|
|
200
|
+
{ "kind": "item", "type": "quote", "noteId": "@problem", "text": "Every review waits on Ana", "size": "medium", "key": "f1" },
|
|
194
201
|
{ "kind": "item", "type": "richtext", "size": "small", "key": "c1",
|
|
195
202
|
"content": "Four late ships in one month is the cost of one reviewer, not of slow reviewers. So the fix is who reviews, not how fast." }
|
|
196
203
|
] },
|
|
@@ -206,6 +213,7 @@ Edges live at the top level alongside `root`. Each endpoint is resolved in this
|
|
|
206
213
|
{ "kind": "stack", "axis": "vertical", "gap": 20, "items": [
|
|
207
214
|
{ "kind": "item", "type": "richtext", "content": "# 3 · Recommendation" },
|
|
208
215
|
{ "kind": "item", "type": "note", "noteId": "@rec" },
|
|
216
|
+
{ "kind": "item", "type": "quote", "noteId": "@rec", "text": "Name a second reviewer", "size": "small", "key": "f3" },
|
|
209
217
|
{ "kind": "item", "type": "richtext", "size": "small", "key": "c3",
|
|
210
218
|
"content": "Flip it if Ana's load drops under five reviews a week." }
|
|
211
219
|
] }
|
|
@@ -220,14 +228,14 @@ Edges live at the top level alongside `root`. Each endpoint is resolved in this
|
|
|
220
228
|
{ "from": "@c1", "to": "@optA", "label": "so" },
|
|
221
229
|
{ "from": "@c1", "to": "@optB", "label": "so" },
|
|
222
230
|
{ "from": "@c2", "to": "@rec", "label": "selects" },
|
|
223
|
-
{ "from": "@rec", "to": "OBSERVATION-40", "label": "grounded in" }
|
|
231
|
+
{ "from": "@rec", "to": "OBSERVATION-40", "label": "grounded in", "lineStyle": "dashed" }
|
|
224
232
|
]
|
|
225
233
|
}
|
|
226
234
|
```
|
|
227
235
|
- A connective is the board's sentence, not the note's: it says what the card means for the next step and names cards by chip. If it would be true on another board, it is a claim and belongs in a note.
|
|
228
|
-
-
|
|
236
|
+
- Each spine note's face is a `quote` leaf of its claim sentence under the note: `medium` for the one the reader must see first, `small` for the rest (canvas-elements.md rule 4). The words must be in the note's body as written in `notes`, since the server pins the quote to that saved version. On a board that already exists, `canvas add-quote` adds a face beside its source.
|
|
229
237
|
- The shelf is a section so it stays arranged as sources are added; the spine is freeform, like bands.
|
|
230
|
-
-
|
|
238
|
+
- Rests-on arrows say `"lineStyle": "dashed"` in the spec (canvas-elements.md rule 5); `cnotes canvas update-edge <canvasId> --edge <id> --line-style dashed` restyles one that exists.
|
|
231
239
|
|
|
232
240
|
**Bands** (a story read top to bottom). When the user asks for "bands", or the canvas makes one argument in order (the ask, the problem, the root cause, the reframe, what we're solving, the grounding), give each step its own band: a heading naming the step's role, with that step's cards in one row under it. CANVAS-99 is the reference board. Gaps 100 / 20 / 140 reproduce its spacing (bands about 310px apart, cards on a 480px pitch).
|
|
233
241
|
```json
|
|
@@ -354,10 +362,10 @@ Edges live at the top level alongside `root`. Each endpoint is resolved in this
|
|
|
354
362
|
|
|
355
363
|
## Constraints
|
|
356
364
|
|
|
357
|
-
- **Anchors take zero space in their parent
|
|
358
|
-
- **Anchor `to:` must be a node already on the canvas
|
|
359
|
-
- **Never use ALL CAPS** in a text element
|
|
360
|
-
- **Text-element content** is authored as markdown
|
|
365
|
+
- **Anchors take zero space in their parent**, when nested inside a `stack` or `grid`, an anchor reserves no slot, so siblings collapse together. Anchors are best used at the root or as their own top-level branch.
|
|
366
|
+
- **Anchor `to:` must be a node already on the canvas**, local `@key` refs only work for edges, not for anchor targets in this version.
|
|
367
|
+
- **Never use ALL CAPS** in a text element, headings included. Use title case (e.g., "Key Tensions" not "KEY TENSIONS").
|
|
368
|
+
- **Text-element content** is authored as markdown: the server converts it server-side. A heading is `"# Key Tensions"` with no `colorHex`. Keep it card-sized (canvas-elements.md, hard rule 3).
|
|
361
369
|
|
|
362
370
|
## When the layout engine isn't enough
|
|
363
371
|
|
|
@@ -143,6 +143,8 @@ cnotes canvas add-link <canvasId> --target <otherCanvasId> [--section SECTION-<n
|
|
|
143
143
|
# --size small|medium|large and --color <role> (evidence, commitment, insight, warning,
|
|
144
144
|
# danger, people) set hierarchy and meaning; canvas-elements.md rule 8 says when.
|
|
145
145
|
cnotes canvas add-quote <canvasId> --note <TRANSCRIPT-4> --text "<exact words>" [--style pull|highlight|evidence] [--size small|medium|large] [--color <role>] [--title "<why it matters>"]
|
|
146
|
+
# When building a board with `place`, a `quote` leaf in the spec does the same and lands
|
|
147
|
+
# inside its frame (canvas-layout.md); add-quote is for a board that already exists.
|
|
146
148
|
# Restyle a Quote note's card already on the board (its box resizes with it).
|
|
147
149
|
cnotes canvas style-quote <canvasId> --quote QUOTE-<n> [--style ...] [--size ...] [--color <role>|none]
|
|
148
150
|
# section = a NAMED REGION frame (Miro-style). Renders behind content; dragging the frame
|
|
@@ -266,8 +268,8 @@ Agents creating or editing canvas milestones (`cnotes canvas milestone create` /
|
|
|
266
268
|
|
|
267
269
|
**On a large canvas, orient with `cnotes canvas digest <canvasId> --json` before reading note by note.** The digest returns the narrative summary, key themes, and a per-note summary list covering every note on the canvas. Use `canvas read` when you need the structure (frames, edges, portals) or are about to change the canvas.
|
|
268
270
|
|
|
269
|
-
**`--json` field names** (they aren't what you'd guess
|
|
271
|
+
**`--json` field names** (they aren't what you'd guess, the narrative is **`.digest`**, *not* `.narrative` or `.summary`). Top-level shape: `{ status, canvasName, digest, themes[], notes[], noteCount, generatedAt }`. So `--fields digest` gets the narrative, `.canvasName` the title, `.themes[]` the key themes, and `.notes[]` the per-note list (shape below).
|
|
270
272
|
|
|
271
273
|
The `notes` array entries have the shape `{ displayId, title, type, summary }`. When `summary` is `null`, the AI summary hasn't been generated yet (fresh note, or too short to summarize); run `cnotes notes get <displayId> [<displayId>...]` (batch-fetch in one call) if you need full content.
|
|
272
274
|
|
|
273
|
-
If `status` is `"none"` or `"stale"`, the `notes` array is still populated and accurate
|
|
275
|
+
If `status` is `"none"` or `"stale"`, the `notes` array is still populated and accurate, you can start working immediately. Queue a fresh narrative with `cnotes canvas digest <canvasId> --refresh` (a write; needs Pro) only if you need the narrative itself.
|
|
@@ -67,8 +67,8 @@ board's next version (V2), on the live board.
|
|
|
67
67
|
## Commands
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
cnotes draft open "Pricing rethink" --
|
|
71
|
-
cnotes draft open --from-canvas CANVAS-390 --
|
|
70
|
+
cnotes draft open "Pricing rethink" --why "Teams of five pay the solo price and churn at renewal" # opens it; you now work in it
|
|
71
|
+
cnotes draft open --from-canvas CANVAS-390 --why "Screens 4 to 7 still show the old stamp" --answers QUESTION-12 # branch a board, say why
|
|
72
72
|
cnotes notes create --notes '[...]' # lands in the draft (you work in it)
|
|
73
73
|
cnotes notes get DECISION-12 # a SHARED note reads through from the draft (sharedFrom in --json)
|
|
74
74
|
cnotes draft propose DECISION-12 --markdown-file new.md --description "Annual is the default"
|
|
@@ -102,11 +102,13 @@ there yet; `cnotes notes get DECISION-6K12` says which proposal holds one and
|
|
|
102
102
|
the checkout that reaches it.
|
|
103
103
|
|
|
104
104
|
## The loop
|
|
105
|
-
1. **Say why when you open it.** `--
|
|
105
|
+
1. **Say why when you open it.** `--why` is the problem the draft answers,
|
|
106
106
|
in the person's words, never the task: "Reviewers read IBD and controlled
|
|
107
107
|
money as two things", not "Add a glossary". The person reads it as Why at
|
|
108
108
|
the top of the review, and the server refuses one that opens with a verb
|
|
109
|
-
(exit code 3, nothing saved).
|
|
109
|
+
(exit code 3, nothing saved). It is the one line in `cnotes` that must not
|
|
110
|
+
open with a verb: every `--intent`, `--prompt` and `--headline` is a
|
|
111
|
+
past-tense headline, and `--why` is the situation they answer. `--answers QUESTION-12` names the shared note that
|
|
110
112
|
asked (the Question, the Problem, the note holding the request). Both also
|
|
111
113
|
open `draft status` when a later session checks the draft out, so the
|
|
112
114
|
work keeps its direction.
|
|
@@ -158,7 +160,7 @@ the checkout that reaches it.
|
|
|
158
160
|
- `--left-out`: what they might look for and will not find, so they
|
|
159
161
|
neither review for it nor assume it is done.
|
|
160
162
|
|
|
161
|
-
Why is the `--
|
|
163
|
+
Why is the `--why` from step 1. A sentence or two each. Cover the
|
|
162
164
|
headline and read the rest: a line that adds nothing to it is cut. The
|
|
163
165
|
server enforces this the way it enforces milestone headlines: a Changes or
|
|
164
166
|
Left out line that lists items, counts cards, opens with a past-tense verb
|