@creator-notes/cnotes 0.121.6 → 0.121.8

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creator-notes-cli",
3
- "version": "0.121.6",
3
+ "version": "0.121.8",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -490,11 +490,19 @@ Examples:
490
490
  noteIds,
491
491
  isArchived,
492
492
  });
493
+ // Success needs one result per note sent (PM-157). An agent once got
494
+ // `{"archived": true}` for 21 notes that all stayed active; a missing
495
+ // results array read as "nothing failed" and exited 0.
496
+ if (!Array.isArray(data.results) || data.results.length !== noteIds.length) {
497
+ const err = new CliError(`The server did not confirm the ${isArchived ? "archive" : "unarchive"}: it answered for ${Array.isArray(data.results) ? data.results.length : "none"} of ${noteIds.length} notes.`, EXIT_CODES.GENERIC, "Read the notes back (cnotes notes get <id>) before assuming anything changed; `cnotes notes update <id> --archive` archives one note and returns its state.", { response: data });
498
+ err.name = "BulkArchiveUnconfirmed";
499
+ throw err;
500
+ }
493
501
  // Per-item results ({noteId, displayId?, status, error?}). Partial
494
502
  // failure keeps exit 0 (callers inspect results[].error — documented
495
503
  // contract), but when EVERY note failed nothing was archived and
496
504
  // exiting 0 would report success to an agent keying on the exit code.
497
- const results = (data.results || []);
505
+ const results = data.results;
498
506
  const successStatus = isArchived ? "archived" : "unarchived";
499
507
  const failedResults = results.filter((r) => r.status !== successStatus);
500
508
  const allFailed = results.length > 0 && failedResults.length === results.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.121.6",
3
+ "version": "0.121.8",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,8 +36,8 @@ sections size themselves around their content, so no coordinates.
36
36
  The hero at the top: `richtext` large, untinted, `# <card title>` shortened to
37
37
  under 50 characters, the one line legible at zoom-to-fit. The banner directly
38
38
  under it: `richtext` medium, untinted, no heading, at most five sentences, in the
39
- cnotes skill's banner order (hard rule 7 in its `references/canvas-elements.md`): what happened,
40
- what this board is for, who answers and where, how to read it. Then the lines
39
+ cnotes skill's banner order (hard rule 7 in its `references/canvas-elements.md`): the situation
40
+ (never who asked), what this board is for, who answers and where, how to read it. Then the lines
41
41
  only this canvas needs: the block day and time, "answer on the card", where the
42
42
  portals go. A banner that opens with the block time and the reading order and
43
43
  never says what the card is about fails the cnotes cold-reader test.
@@ -22,7 +22,7 @@ Every note and canvas you write is context: what the next reader, a teammate or
22
22
  5. **Create notes in one batch.** `cnotes notes create --notes '[{"key":"A","type":"Insight","markdownFile":"./a.md"}, ...]'`. Each body starts with a `# h1` (the title): a headline of at most 80 characters that names the claim or the object, with no ", so…" / ", because…" clause, no display id and no em dash; the body's first sentence carries the why. The server refuses a note or version whose title breaks this and says what to change. Cross-link inside the batch with `[@A: Title](relationship:<verb>)`. Detail: [references/notes.md](references/notes.md).
23
23
  6. **Grade what you wrote.** `cnotes quality <displayIds...> --fail-below 4`, then revise weak notes with `cnotes versions create <id> --description "<what changed>" --markdown-file <path>`. A level 3 with `unsure: true` and nothing under `missing`, or a `needs_agent` answer, means the grader abstained: grade that note yourself with `cnotes quality record <id> --graded-version <n> --level <1-4> --criteria '<json>'`, one reason per rubric criterion, and rewrite only a criterion that is really unmet.
24
24
  7. **Lay out the canvas.** `cnotes canvas place <canvasId> --spec layout.json` packs items without overlap. A spec can carry the notes too (see the fast path below), which folds steps 5 and 7 into one call. For a new canvas, `canvas create --spec` takes the same spec, so creating the canvas, its notes and its layout is one call; its name follows the title rule in step 5 (a short headline, `·` between its parts), and the server refuses one that does not. Every canvas opens with a hero: one `large` untinted text card at the top-left, above everything, holding `# <the goal's result>` in under 50 characters, with the four-line banner under it at `medium`. It is the only text legible at zoom-to-fit. Read [references/canvas-elements.md](references/canvas-elements.md) (rules 7 and 9) before choosing elements and [references/canvas-layout.md](references/canvas-layout.md) before writing the spec.
25
- 8. **Read it back.** `cnotes canvas read <canvasId>`: every claim must appear in a note with a display ID, the hero must name the goal's result, and the banner must make sense to someone who was not in the session. A write that touches no canvas gets the same test: `cnotes notes get <id> --expand` on what you wrote, read as the next session will, without this conversation.
25
+ 8. **Read it back.** `cnotes canvas read <canvasId>`: every claim must appear in a note with a display ID, the hero must name the goal's result, and the banner must make sense to someone who was not in the session and never say who asked for the board (the timeline holds that; rule 7). A write that touches no canvas gets the same test: `cnotes notes get <id> --expand` on what you wrote, read as the next session will, without this conversation.
26
26
  9. **Close the run.** `cnotes operations end`.
27
27
  10. **Link the result.** End your reply with the canvas link (see [Surfacing the canvas link](#surfacing-the-canvas-link)).
28
28
 
@@ -39,7 +39,7 @@ A canvas holds two tiers of content, and the difference is load-bearing:
39
39
  | 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 |
40
40
  | 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 |
41
41
  | 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 |
42
- | Orientation: what happened, 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 Guide note |
42
+ | 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 |
43
43
  | Emphasis — restating a key claim for screen presence | a **text** element that QUOTES a note (the note stays the home) | the text element as the only copy |
44
44
  | An image tile (logo, mockup, screenshot) | a **text** element holding the image, beside the owning note; embed the same image in the note body via `cnotes files upload <path> --markdown` so the note stays self-contained | the image as the knowledge itself |
45
45
  | 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 |
@@ -80,13 +80,14 @@ A canvas holds two tiers of content, and the difference is load-bearing:
80
80
  - One hero per canvas. A section or band heading is never `large` (rule 9).
81
81
 
82
82
  **The banner** sits directly under the hero: one `medium` untinted text card, no heading (the hero is its heading).
83
- Write one line each, in this order, no paragraphs:
84
- 1. **What happened.** Dated, with names a stranger can look up. "On 19 Sep 2026 Deniss asked why CreatorNotes logs what people open but not what agents read."
85
- 2. **What it's for.** The decision or artifact the board produces.
86
- 3. **Who acts.** Who decides or builds, and where the answer goes (a mention chip, rule 2).
83
+ It describes the work, never the session that built the board. Write one line each, in this order, no paragraphs:
84
+ 1. **The situation.** What is true in the work that makes this board necessary, with the people and things named so a stranger can look them up: "Ten Clio workstreams are in play: five moved between 26 Oct and 2 Nov, five have no status newer than September." Date it only when it is an event the reader could look up (a meeting, a decision, a release): "On 2 Nov 2026 Settlement Financials adoption became the week's priority."
85
+ 2. **What it's for.** The decision or artifact the board produces, in the reader's words.
86
+ 3. **What is open, and where the answer goes.** Who decides or builds, and the card the outcome lands on (a mention chip, rule 2). Name a person only when the reader could not be sure it is them; a board one person works alone never tells them their own job.
87
87
  4. **How to read it.** The cue only: "Read left to right." Don't list each frame's contents; the frames say that.
88
88
  Keep each line under ~20 words. Break long lines; never merge them into a paragraph.
89
89
  Name things before you point at them: no "the ad", "the app", "the scope".
90
+ Never narrate the request. "On 30 Oct 2026 Deniss asked to keep track of moving parts" says what the agent was told and nothing about the work, and the timeline already records who asked, when, and what was done under the run's headline. Cut "asked", "requested", "wanted", "this session" and any paraphrase of the prompt, then check the line still says something.
90
91
  Cut: frame counts ("in five moments"), method notes ("fat-marker sketches", "coral marks…"), and recaps of what the strip below says.
91
92
  Wayfind and Attention canvases add their own lines after these four, never instead.
92
93
 
@@ -142,8 +143,8 @@ Run all three before ending your operation:
142
143
  **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 an Argument or Poster board has no note with a `medium` face (rule 4), 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.
143
144
 
144
145
  **The cold-reader test.** Cover everything but the hero and the banner.
145
- Can a stranger say what happened, what the board produces, and who acts?
146
- Fail it if the banner only gives reading order, uses unnamed referents, or runs as a paragraph.
146
+ Can a stranger say what the situation is, what the board produces, and where the answer goes?
147
+ Fail it if the banner only gives reading order, uses unnamed referents, runs as a paragraph, or narrates the request ("asked", "requested", a dated line about the session).
147
148
  Test the banner text itself, not your memory of the run.
148
149
 
149
150
  ## Worked example
@@ -72,7 +72,7 @@ cnotes canvas create "<name>" --goal "<text>" --audience "<text>" --spec spec.js
72
72
  # The first sentence is the result the board produces; the second is the verifier, so a reader (or
73
73
  # the digest) can tell finished from not. The server REJECTS a goal with no "Done when" sentence or
74
74
  # over 60 words. Leave out: the list of sections (the frames show it), the method ("research
75
- # Tufte"), dates (banner line 1) and the audience (--audience). "Track X" / "Explore X" are briefs
75
+ # Tufte"), the situation and its date (banner line 1) and the audience (--audience). "Track X" / "Explore X" are briefs
76
76
  # to yourself, not results; give them an exit ("Decide which X ship next. Done when ...").
77
77
  # `canvas read` prints the goal under the title, so re-read it before adding to a board and keep
78
78
  # the board inside it; fix a stale goal with `canvas update --goal`. The banner restates the goal
@@ -152,6 +152,7 @@ filler), really (as intensifier), might, perhaps, kind of, thrilled, excited.
152
152
  | Negation-reversal with a clipped echo ("X was not the bottleneck. Y was.") | state the claim by consequence, not as a "Not X. Y." flip |
153
153
  | Rule-of-three triples ("Focused. Aligned. Measurable.") | one claim that carries its own weight |
154
154
  | Throat-clearing openers ("a thread on", "I want to share") | open with the problem or the payoff |
155
+ | Narrating the request in a banner or note ("On 30 Oct 2026 Deniss asked for…", "this session") | state the situation in the work; the timeline already holds who asked, when, and what was done |
155
156
  | Thread-bro formatting ("1/", "follow for more") | write as prose with a standalone first line |
156
157
  | Engagement bait ("comment YES", "drop a fire emoji") | end on the value, not the ask |
157
158
  | Numbers with no baseline, date, or source | pair every number with its baseline and where it came from |
@@ -107,7 +107,7 @@ A good leaf goal: `Decide which phone-section bugs ship in the next PR. Done whe
107
107
  6. **Lay out the tree canvas**: `cnotes canvas create "<Outcome> · Goal Tree" --goal "<the root's two sentences>"`,
108
108
  then one `cnotes canvas place` spec with one column per depth, root on the
109
109
  right, each Goal note in its column, and "depends on" edges from parent to
110
- child. The `large` hero first (the root goal's result in under 50 characters, cnotes hard rule 7), then the banner in the cnotes skill's banner order: what happened, what
110
+ child. The `large` hero first (the root goal's result in under 50 characters, cnotes hard rule 7), then the banner in the cnotes skill's banner order: the situation (never who asked), what
111
111
  the tree decides, who works it, how to read it (right to left).
112
112
  7. **Read it back.** `cnotes goals tree <root>` must list every goal with no
113
113
  "To fix" lines you can repair. Then close the run and give the user the tree
@@ -233,7 +233,7 @@ breadboard as context.
233
233
  Create the notes in one batch (`cnotes notes create --notes "$(cat batch.json)"`),
234
234
  cross-linked with `@key` placeholders, then lay out the sections with one
235
235
  `cnotes canvas place` spec. The `large` hero first (what the shape achieves, in under 50 characters, cnotes hard rule 7), then the banner in the cnotes skill's banner
236
- order: what happened and who asked, what this board decides, who decides
236
+ order: the situation (never who asked), what this board decides, who decides
237
237
  it, how to read it.
238
238
  7. **Iterate with the user** on requirements and shapes until the fit check
239
239
  shows one shape the user wants. Every change is a new version of its note.
@@ -123,9 +123,9 @@ The learner names a subject: a canvas, an area, a project.
123
123
  Mission note, the Sources note and the starting-point records in one
124
124
  `cnotes notes create` batch, then one `cnotes canvas place` spec with the
125
125
  `large` hero (the mission in under 50 characters, cnotes hard rule 7), the banner under it and the four sections. The banner follows the cnotes skill's banner
126
- order (rule 7 in its `references/canvas-elements.md`): who asked and why,
127
- the mission in the learner's words, how a session runs, how the four frames
128
- read.
126
+ order (rule 7 in its `references/canvas-elements.md`): the learner's situation
127
+ (what they must do and what they do not yet know; never who asked), the
128
+ mission in the learner's words, how a session runs, how the four frames read.
129
129
  6. **Close the run, give the canvas link, offer lesson 1** now or in a fresh
130
130
  session. A fresh session that says "next lesson" continues from the canvas.
131
131
 
@@ -123,8 +123,9 @@ Only when asked ("resolve these", "who owns what"). Run it before step 9's
123
123
  mention. Never bare prose IDs.
124
124
  4. No caption or explainer slop. No "This card captures…", no "Key insight:",
125
125
  no recap text cards under rows. A row's frame name is its only label.
126
- 5. The banner is four short lines: what happened (dated, named), what the
127
- board is for, who acts on it, then `Read left to right.` and nothing more.
126
+ 5. The banner is four short lines: the interview (who spoke, about what, on
127
+ what date; never the request), what the board is for, who acts on it, then
128
+ `Read left to right.` and nothing more.
128
129
  6. Run the humanizer from the cnotes skill on every title and the banner.
129
130
  7. End-user PII stays out. Name the interviewee by role and company unless
130
131
  the transcript note already names them in its title.
@@ -138,7 +138,7 @@ The user arrives with a loose idea.
138
138
  5. **Place the map** in one `cnotes canvas place` spec: the `large` hero (the destination in under 50 characters, cnotes hard rule 7), the orientation banner under it,
139
139
  the four sections with their contents, blocking edges (blocker → dependent,
140
140
  label "blocks"). Banner is at most five sentences in the cnotes skill's banner
141
- order (hard rule 7 in its `references/canvas-elements.md`): what happened and who asked,
141
+ order (hard rule 7 in its `references/canvas-elements.md`): the situation (never who asked),
142
142
  the destination in reader's words, who resolves tickets and how, then how the
143
143
  four frames read. Name notes as titled mentions (`[QUESTION-12: Title](relationship:references)`), which render as chips; a bare display ID in a card is a defect.
144
144
  6. **Fire the research subagents** for frontier research tickets; fold whatever