@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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +7 -5
- package/dist/commands/canvas-milestone.d.ts +1 -1
- package/dist/commands/canvas-milestone.d.ts.map +1 -1
- package/dist/commands/canvas-milestone.js +6 -3
- package/dist/commands/canvas-milestone.js.map +1 -1
- package/dist/commands/canvas.d.ts.map +1 -1
- package/dist/commands/canvas.js +87 -37
- package/dist/commands/canvas.js.map +1 -1
- package/dist/commands/notes.d.ts.map +1 -1
- package/dist/commands/notes.js +16 -2
- package/dist/commands/notes.js.map +1 -1
- package/dist/commands/operations.d.ts +9 -0
- package/dist/commands/operations.d.ts.map +1 -1
- package/dist/commands/operations.js +151 -46
- package/dist/commands/operations.js.map +1 -1
- package/dist/commands/versions.d.ts.map +1 -1
- package/dist/commands/versions.js +4 -2
- package/dist/commands/versions.js.map +1 -1
- package/dist/lib/active-run.d.ts +62 -0
- package/dist/lib/active-run.d.ts.map +1 -0
- package/dist/lib/active-run.js +75 -0
- package/dist/lib/active-run.js.map +1 -0
- package/dist/lib/auth-store.d.ts +66 -0
- package/dist/lib/auth-store.d.ts.map +1 -1
- package/dist/lib/auth-store.js +204 -28
- package/dist/lib/auth-store.js.map +1 -1
- package/dist/lib/build-schema.d.ts +1 -1
- package/dist/lib/build-schema.js +1 -1
- package/dist/lib/build-schema.js.map +1 -1
- package/dist/lib/headline-warnings.d.ts +8 -0
- package/dist/lib/headline-warnings.d.ts.map +1 -0
- package/dist/lib/headline-warnings.js +27 -0
- package/dist/lib/headline-warnings.js.map +1 -0
- package/dist/lib/milestone-message.d.ts.map +1 -1
- package/dist/lib/milestone-message.js +5 -4
- package/dist/lib/milestone-message.js.map +1 -1
- package/dist/mcp-server.js +2 -2
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/skills/attention-planner/SKILL.md +3 -2
- package/skills/attention-planner/references/attention-type.md +5 -4
- package/skills/attention-planner/references/card-shapes.md +14 -17
- package/skills/attention-planner/references/orientation-canvas.md +3 -2
- package/skills/cnotes/SKILL.md +31 -12
- package/skills/cnotes/references/humanizer.md +8 -0
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -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
|
|
163
|
-
# notes (the requested notes stay whole).
|
|
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
|
|
241
|
-
#
|
|
242
|
-
#
|
|
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 "
|
|
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,
|
|
549
|
-
# the body. Verb-first
|
|
550
|
-
#
|
|
551
|
-
#
|
|
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
|
|
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
|
|
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
|
---
|