@creator-notes/cnotes 0.104.1 → 0.105.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creator-notes-cli",
3
- "version": "0.104.1",
3
+ "version": "0.105.0",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -1468,6 +1468,47 @@ Examples:
1468
1468
  handleError(error, cfg.json);
1469
1469
  }
1470
1470
  });
1471
+ canvas
1472
+ .command("add-quote")
1473
+ .description("Quote words from a note onto a canvas as a quote card pinned to the note's saved version")
1474
+ .argument("<canvasId>", "Canvas ID (CANVAS-<n> or id)")
1475
+ .requiredOption("--note <ref>", "The note to quote (display id like TRANSCRIPT-4, or id)")
1476
+ .requiredOption("--text <words>", "The exact words to quote; they must appear in the note's saved version")
1477
+ .addOption(new Option("--style <style>", "How the card shows the words").choices(["pull", "highlight", "evidence"]))
1478
+ .option("--x <n>", "Raw X position (default: beside the note's card, else below everything)")
1479
+ .option("--y <n>", "Raw Y position")
1480
+ .addHelpText("after", `
1481
+ A quote is evidence, not a claim: the words stay pinned to the version they came
1482
+ from and never change. To say what a quote means, write an Insight that cites
1483
+ the source note.
1484
+
1485
+ Examples:
1486
+ $ cnotes canvas add-quote CANVAS-12 --note TRANSCRIPT-4 --text "We lose them at the invite step"
1487
+ $ cnotes canvas add-quote CANVAS-12 --note TRANSCRIPT-4 --text "every time" --style highlight
1488
+ `)
1489
+ .action(async (canvasId, opts) => {
1490
+ const cfg = resolveConfig(program.opts());
1491
+ const api = new ApiClient(cfg.serverUrl, cfg.token, cfg.workspaceId);
1492
+ try {
1493
+ const position = rawPosition(opts);
1494
+ const data = await api.post(canvasActionPath(canvasId, cfg.workspaceId), {
1495
+ action: "addQuote",
1496
+ note: opts.note,
1497
+ text: opts.text,
1498
+ ...(opts.style ? { style: opts.style } : {}),
1499
+ ...(position ? { positionX: position.x, positionY: position.y } : {}),
1500
+ });
1501
+ if (cfg.quiet)
1502
+ outputQuiet(String(data.nodeId ?? ""));
1503
+ else if (cfg.json)
1504
+ outputJson(data);
1505
+ else
1506
+ console.log(`Quoted ${data.noteDisplayId} v${data.versionNumber} on ${canvasId} at (${data.positionX}, ${data.positionY})`);
1507
+ }
1508
+ catch (error) {
1509
+ handleError(error, cfg.json);
1510
+ }
1511
+ });
1471
1512
  canvas
1472
1513
  .command("bulk-add")
1473
1514
  .description("Add multiple notes to a canvas in one operation with positions")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.104.1",
3
+ "version": "0.105.0",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,6 +34,7 @@ A canvas holds two tiers of content, and the difference is load-bearing:
34
34
  | 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 |
35
35
  | 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 |
36
36
  | "A connects to B" between two notes | a labeled **edge** (short verb phrase), notes only | prose explaining the connection |
37
+ | The exact line from a transcript or note that carries a point | a **quote card** (`add-quote`): the words pinned to that note's version, citing it; interpretation goes in an Insight | pasting the words into a new note or a text element, where they drift from the source |
37
38
  | 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" |
38
39
  | 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 |
39
40
 
@@ -122,6 +122,13 @@ cnotes canvas add-richtext ... # DEPRECATED alias of add-text (identical flags
122
122
  # N distinct things = N notes first, then --notes ID1,ID2,ID3 (canvas-elements.md).
123
123
  cnotes canvas add-list <canvasId> --description "<markdown>" [--notes <id1,id2,...>] [--view list|grid] [--section SECTION-<n>]
124
124
  cnotes canvas add-link <canvasId> --target <otherCanvasId> [--section SECTION-<n>]
125
+ # quote = the exact words from one note, pinned to its SAVED version (a quote card).
126
+ # Evidence, not a claim: the words never change, and the card says "now vN" once the
127
+ # note moves on. Lands beside the note's card when it is on the board, else below
128
+ # everything. `canvas read` shows it as a blockquote with its source and version.
129
+ # The words must appear in the saved version (exit 3 otherwise). Say what a quote
130
+ # means in an Insight that cites the source note, never in the card.
131
+ cnotes canvas add-quote <canvasId> --note <TRANSCRIPT-4> --text "<exact words>" [--style pull|highlight|evidence]
125
132
  # section = a NAMED REGION frame (Miro-style). Renders behind content; dragging the frame
126
133
  # carries whatever sits inside it. Mints SECTION-<n>: mention [[SECTION-<n>]] from a note
127
134
  # body to deep-link readers to that region. Name like a place ("Shaping", "Open Questions").