@creator-notes/cnotes 0.104.1 → 0.105.1
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/dist/commands/canvas.js
CHANGED
|
@@ -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
|
@@ -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").
|
|
@@ -219,6 +219,13 @@ cnotes notes retype <displayId> --type <NewType>
|
|
|
219
219
|
- **Always start markdown content with a `# h1` heading.** This becomes the note title. Follow proper markdown structure: `## h2` for major sections, `### h3` for subsections. Well-structured heading hierarchy is expected for all notes.
|
|
220
220
|
- **Relationship mentions in markdown**: Use `[NOTE-123: Title](relationship:<type>)` — plain text "NOTE-123" does NOT create clickable mentions, and the title-less form renders as "Untitled". Match `<type>` to the verb your prose uses (`blocks`, `depends-on`, …); `references` is for pure citations. The typed wiki form `[[blocks::NOTE-123]]` is equivalent — it's how note bodies serialize mentions back to you, and an untyped `[[NOTE-123]]` is a plain reference.
|
|
221
221
|
- **The classic miss: capturing an answer/outcome that lives in another note.** "The answer is the packaging decision in DECISION-24" saved as plain prose creates no chip, no relationship, no backlink — the graph never learns the question was answered. Write the mention with the verb as its type: `Answered by [DECISION-24: Title](relationship:answered-by)`. `notes create` and `versions create` detect bare IDs that name real notes and return them in `plainTextIdWarnings` (stderr + `--json`), each with a paste-ready rewrite carrying the note's actual title — treat every entry as a fix instruction (save a corrected version) unless the bare ID is deliberate prose.
|
|
222
|
+
- **Quoting another note's exact words**: write a quote block, the words in a blockquote and a last line citing the version they came from with a `quotes` mention pinned to it. Read the version number and its time from `cnotes versions list <id>`; the words must be that version's, verbatim:
|
|
223
|
+
```markdown
|
|
224
|
+
> We lose them at the invite step
|
|
225
|
+
>
|
|
226
|
+
> — from [[quotes::TRANSCRIPT-4@v5]] v5, 12 Oct 2026, 4:55 pm
|
|
227
|
+
```
|
|
228
|
+
It is a hard copy: the version never changes, so the block never goes stale, and saving it records a `quotes` relationship pinned to v5. Say what the quote means in your own sentences around it.
|
|
222
229
|
- **Reuse an existing relationship type before inventing one.** Run `cnotes rel types` (or read the list printed by `cnotes workspace current`) and pick the closest existing label. The type slot is free-form, so an unknown label is auto-created as a custom workspace type rather than dropped — but that means a typo or a needless synonym (`support` vs `supports`, `relates-to` vs `related-to`) silently pollutes the workspace's type vocabulary forever. Only coin a new type when nothing existing fits.
|
|
223
230
|
- Names are normalized to lowercase + hyphens, so `Depends On`, `depends on`, and `depends-on` all resolve to the same type. When `cnotes notes create` does create new types, it reports them (`+ created N new relationship types: …`) — treat that line as a prompt to double-check you didn't mean an existing one.
|
|
224
231
|
- Common built-in types to reach for first:
|