@creator-notes/cnotes 0.78.0 → 0.80.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 (46) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +7 -5
  3. package/dist/commands/canvas-milestone.d.ts +1 -1
  4. package/dist/commands/canvas-milestone.d.ts.map +1 -1
  5. package/dist/commands/canvas-milestone.js +6 -3
  6. package/dist/commands/canvas-milestone.js.map +1 -1
  7. package/dist/commands/canvas.d.ts.map +1 -1
  8. package/dist/commands/canvas.js +87 -37
  9. package/dist/commands/canvas.js.map +1 -1
  10. package/dist/commands/notes.d.ts.map +1 -1
  11. package/dist/commands/notes.js +16 -2
  12. package/dist/commands/notes.js.map +1 -1
  13. package/dist/commands/operations.d.ts +9 -0
  14. package/dist/commands/operations.d.ts.map +1 -1
  15. package/dist/commands/operations.js +151 -46
  16. package/dist/commands/operations.js.map +1 -1
  17. package/dist/commands/versions.d.ts.map +1 -1
  18. package/dist/commands/versions.js +4 -2
  19. package/dist/commands/versions.js.map +1 -1
  20. package/dist/lib/active-run.d.ts +62 -0
  21. package/dist/lib/active-run.d.ts.map +1 -0
  22. package/dist/lib/active-run.js +75 -0
  23. package/dist/lib/active-run.js.map +1 -0
  24. package/dist/lib/auth-store.d.ts +66 -0
  25. package/dist/lib/auth-store.d.ts.map +1 -1
  26. package/dist/lib/auth-store.js +204 -28
  27. package/dist/lib/auth-store.js.map +1 -1
  28. package/dist/lib/build-schema.d.ts +1 -1
  29. package/dist/lib/build-schema.js +1 -1
  30. package/dist/lib/build-schema.js.map +1 -1
  31. package/dist/lib/headline-warnings.d.ts +8 -0
  32. package/dist/lib/headline-warnings.d.ts.map +1 -0
  33. package/dist/lib/headline-warnings.js +27 -0
  34. package/dist/lib/headline-warnings.js.map +1 -0
  35. package/dist/lib/milestone-message.d.ts.map +1 -1
  36. package/dist/lib/milestone-message.js +5 -4
  37. package/dist/lib/milestone-message.js.map +1 -1
  38. package/dist/mcp-server.js +2 -2
  39. package/dist/mcp-server.js.map +1 -1
  40. package/package.json +1 -1
  41. package/skills/attention-planner/SKILL.md +3 -2
  42. package/skills/attention-planner/references/attention-type.md +5 -4
  43. package/skills/attention-planner/references/card-shapes.md +14 -17
  44. package/skills/attention-planner/references/orientation-canvas.md +3 -2
  45. package/skills/cnotes/SKILL.md +31 -12
  46. package/skills/cnotes/references/humanizer.md +8 -0
@@ -159,8 +159,12 @@ cnotes notes get MEETING-12 PRD-3 IDEA-7
159
159
  # references). Each linked note is labelled `assumes -> OBSERVATION-6K13`.
160
160
  # --depth N (default 1, max 4) walks further, deduped, and stops at 40 notes
161
161
  # with a notice when truncated. --rel assumes,depends-on limits which slugs
162
- # are followed. --summary keeps the title and opening paragraph of linked
163
- # notes (the requested notes stay whole). --incoming also includes notes that
162
+ # are followed. --summary keeps the title and the first real prose paragraph
163
+ # of linked notes (the requested notes stay whole). It skips leading headings,
164
+ # blank lines, and chip-only lines, so a Metric that starts
165
+ # `## Primary measure` returns the sentence after it, not the heading.
166
+ # Heading-only notes fall back to the last heading text; list-only notes
167
+ # fall back to the first list. --incoming also includes notes that
164
168
  # link to the target (`assumes <- OTHER-1`).
165
169
  cnotes notes get DECISION-6KN --expand
166
170
  cnotes notes get DECISION-6KN --expand --depth 2 --rel assumes,depends-on
@@ -237,9 +241,12 @@ cnotes notes create --notes '[
237
241
  {"key":"B","type":"Insight","markdown":"# Fix\n[@A: Problem](relationship:resolves)"}
238
242
  ]'
239
243
  # Each item: {key, type, markdown | markdownFile, tags?, changeDescription?}.
240
- # changeDescription is version 1's timeline line. `{displayId}` in it is
241
- # replaced with the new note's display id. Omit it and the platform later
242
- # writes a title plus a summary.
244
+ # changeDescription is version 1's timeline line: a verb-first headline
245
+ # (specific object in the first 40 characters, at most 110 characters), a
246
+ # blank line, then a body the agent owns. `{displayId}` is filled in. A
247
+ # failing agent headline may be rewritten; the body is kept. The response
248
+ # includes `headline` and `headlineWarnings`. Omit the line and the platform
249
+ # later writes one. Human-typed editor text only gets the token filled.
243
250
  # On validation failure the response lists every bad item by index + key + field
244
251
  # (and `details.items` in --json mode), so you can fix the whole batch in one shot.
245
252
  # Each .results[] item carries .type + .rubric — keep them when filtering JSON.
@@ -308,7 +315,7 @@ who knows what changed.
308
315
  cnotes versions list <noteId>
309
316
 
310
317
  # Create a new version (updates note content)
311
- cnotes versions create <noteId> --description "what changed" --markdown-file <path.md>
318
+ cnotes versions create <noteId> --description "Added the pricing objection from the call" --markdown-file <path.md>
312
319
  cnotes versions create <noteId> --description "what changed" --markdown "<short content>" # inline (short only)
313
320
  cnotes versions create <noteId> --description "what changed" --markdown-stdin < changes.md
314
321
  ```
@@ -545,10 +552,12 @@ cnotes canvas from-template <templateId> --populate # Auto-populat
545
552
  # Templates: sprint-retrospective, swot-analysis, kanban-board, feature-prioritization, meeting-notes, product-roadmap
546
553
 
547
554
  # Milestones — the same canvasSnapshots rows the web UI saves (kind "milestone").
548
- # The message is one field: the first line is the timeline headline, the rest is
549
- # the body. Verb-first wording (verb, specific object, twist) is guidance, not a
550
- # check. See https://creatornotes.app/blog/timeline-as-navigation
551
- # The text you pass is stored as written and is not replaced by an AI summary.
555
+ # The message is one field: the first line is the timeline headline, a blank
556
+ # line, then the body. Verb-first, specific object in the first 40 characters,
557
+ # headline at most 110 characters. The platform may rewrite an agent headline
558
+ # and leaves the body. `headlineWarnings` comes back on the JSON response.
559
+ # See https://creatornotes.app/blog/timeline-as-navigation
560
+ # An AI summary is stored separately and does not replace this message.
552
561
  # If an operations run is active, the save attaches to it and records that run's
553
562
  # actor, so an agent milestone is not labelled as a human edit.
554
563
  cnotes canvas milestone create <canvasId> --message "Opened pricing question: charge for agents or the workspace?"
@@ -1222,9 +1231,19 @@ Agent via `CURSOR_CONVERSATION_ID` (`bc-…`). The timeline then offers resume
1222
1231
  Override with `CNOTES_AGENT_SESSION_ID` + `CNOTES_AGENT_SESSION_KIND` when needed.
1223
1232
 
1224
1233
 
1225
- **Always close the run.** If `begin` succeeded, `end` must run — otherwise the operation stays `running` and subsequent `cnotes operations begin` calls will refuse (with a clear "active run already exists, end it first or pass --force" message). The server-side reaper will eventually mark a stale `running` row as `abandoned` after about an hour, but that's a safety net, not the intended flow.
1234
+ **Always close the run.** If `begin` succeeded, `end` must run — otherwise the operation stays `running` and subsequent `cnotes operations begin` calls will refuse (with a clear "active run already exists" message naming the ways out). The server-side reaper marks a stale `running` row as `abandoned` after about an hour; `begin` checks the server and forgets such a run on its own, so a crashed earlier session never needs `--force`. `cnotes operations open` lists the runs this machine has open with the server's view of each; `--prune` forgets the ones no longer running.
1226
1235
 
1227
- **If something goes wrong mid-batch** and you can't recover: `cnotes operations end --force` (on a future begin) ends the prior run server-side and starts a fresh one.
1236
+ **If something goes wrong mid-batch** and you can't recover: `cnotes operations begin --force` ends the prior run server-side and starts a fresh one. Only do this to a run you abandoned yourself: `--force` ends whichever run holds the active slot, which may be another agent's.
1237
+
1238
+ **Two agents on one machine.** Each run is tracked on its own. The active run (plain `begin`) is only the implicit default for writes that carry no run id. A second agent opens its own run with `--detached` and carries the returned id in `CNOTES_AGENT_RUN_ID` (or passes it to `end --agent-run-id`); a detached run never touches the shared active-run pointer, so neither agent can clobber or close the other's run:
1239
+
1240
+ ```bash
1241
+ RUN=$(cnotes operations begin --prompt "Triage inbox" --detached -q)
1242
+ CNOTES_AGENT_RUN_ID=$RUN cnotes notes create --notes '[ ... ]'
1243
+ cnotes operations end --agent-run-id $RUN
1244
+ ```
1245
+
1246
+ `end` resolves the run from `--agent-run-id`, then `CNOTES_AGENT_RUN_ID`, then the active pointer, and refuses (exit code 5) a run this machine did not open — only the actor who opened a run can end it server-side too. Ending one run never clears or ends another. `--force` on `end` is the explicit override for a run opened elsewhere.
1228
1247
 
1229
1248
  #### Writing a good `--prompt`
1230
1249
 
@@ -259,6 +259,14 @@ These are objective and never need judgment. Enforce them on every write:
259
259
  items are N typed notes, not a wall of text.
260
260
  - **No placeholder or artifact tokens** — "lorem ipsum", "TODO", "[insert X]",
261
261
  "as an AI language model", or leftover template markers never ship in saved prose.
262
+ - **Timeline headlines are the platform's. Bodies are the agent's.** A
263
+ `changeDescription`, milestone `--message`, or operations `--prompt` is a
264
+ verb-first past-tense headline (specific object in the first 40 characters,
265
+ at most 110 characters), a blank line, then a body of at most 280 characters.
266
+ No Created, Updated, Edited, or Changed. No dates, weekdays, or times. No
267
+ leftover `{displayId}`. No em dashes. The platform rewrites a failing agent
268
+ headline and leaves the body. Human-typed editor text only gets `{displayId}`
269
+ filled. One change per headline.
262
270
  - **Valid mention syntax and live links** — no broken links, no malformed mentions.
263
271
 
264
272
  ---