@creator-notes/cnotes 0.121.8 → 0.121.9
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/dist/commands/notes.js +6 -4
- package/dist/commands/versions.js +6 -4
- package/dist/lib/build-schema.js +1 -1
- package/dist/lib/mention-lint.js +3 -3
- package/dist/mcp-server.js +2 -2
- package/package.json +1 -1
- package/skills/cnotes/SKILL.md +1 -1
- package/skills/cnotes/references/canvas-elements.md +1 -1
- package/skills/cnotes/references/humanizer.md +17 -10
- package/skills/cnotes/references/notes.md +3 -2
- package/skills/cnotes/references/relationships.md +1 -1
package/dist/commands/notes.js
CHANGED
|
@@ -543,10 +543,12 @@ Examples:
|
|
|
543
543
|
" [@<key>: Title](relationship:<type>) → batch placeholder; @<key> is\n" +
|
|
544
544
|
" replaced with the new note's\n" +
|
|
545
545
|
" display ID after creation.\n" +
|
|
546
|
-
" [NOTE-12: Title](relationship:<type>) → existing-note link.\n" +
|
|
547
|
-
" [[<type>::NOTE-12]] → the same link,
|
|
548
|
-
"
|
|
549
|
-
"
|
|
546
|
+
" [NOTE-12: Title](relationship:<type>) → existing-note link, showing its title.\n" +
|
|
547
|
+
" [[<type>::NOTE-12]] → the same link, showing the id alone.\n" +
|
|
548
|
+
" [[<type>::NOTE-12|your words]] → the same link, showing your words.\n" +
|
|
549
|
+
" What you write is what the chip shows (the server keeps a shown title\n" +
|
|
550
|
+
" current). Title a note where the reader first meets it; after that the\n" +
|
|
551
|
+
" id alone reads better than a run of titles.\n" +
|
|
550
552
|
" Pick <type> from the verb your own prose uses: \"blocks X\" → relationship:blocks,\n" +
|
|
551
553
|
" \"depends on X\" → relationship:depends-on. Types are free-form (unknown ones\n" +
|
|
552
554
|
" auto-create); `cnotes rel types` lists the workspace vocabulary — reuse before\n" +
|
|
@@ -57,10 +57,12 @@ Examples:
|
|
|
57
57
|
.command("create")
|
|
58
58
|
.description("Create a new version of a note.\n" +
|
|
59
59
|
" Relationship link syntax (use inside markdown):\n" +
|
|
60
|
-
" [NOTE-12: Title](relationship:<type>) → link an existing note.\n" +
|
|
61
|
-
" [[<type>::NOTE-12]] → the same link,
|
|
62
|
-
"
|
|
63
|
-
"
|
|
60
|
+
" [NOTE-12: Title](relationship:<type>) → link an existing note, showing its title.\n" +
|
|
61
|
+
" [[<type>::NOTE-12]] → the same link, showing the id alone.\n" +
|
|
62
|
+
" [[<type>::NOTE-12|your words]] → the same link, showing your words.\n" +
|
|
63
|
+
" What you write is what the chip shows (the server keeps a shown title\n" +
|
|
64
|
+
" current). Title a note where the reader first meets it; after that the\n" +
|
|
65
|
+
" id alone reads better than a run of titles.\n" +
|
|
64
66
|
" Pick <type> from the verb your own prose uses: \"blocks X\" → relationship:blocks,\n" +
|
|
65
67
|
" \"depends on X\" → relationship:depends-on. Types are free-form (unknown ones\n" +
|
|
66
68
|
" auto-create); `cnotes rel types` lists the workspace vocabulary — reuse before\n" +
|
package/dist/lib/build-schema.js
CHANGED
|
@@ -39,7 +39,7 @@ export const STATIC_SCHEMA = {
|
|
|
39
39
|
noteMention: "[NOTE-12: Title](relationship:<type>)",
|
|
40
40
|
batchPlaceholder: "[@key: Title](relationship:<type>) — '@key' is replaced with the new display ID after batch create",
|
|
41
41
|
rules: [
|
|
42
|
-
"
|
|
42
|
+
"What you write is what the chip shows: `[NOTE-12: Title](relationship:<type>)` shows the note's title (the server keeps it current on every save), `[[<type>::NOTE-12]]` or `[NOTE-12](relationship:<type>)` shows the id alone, `[[<type>::NOTE-12|your words]]` shows your words. Title a note where the reader first meets it; after that the id alone reads better than a run of titles.",
|
|
43
43
|
"Pick the relationship slug from the verb your own prose uses: 'blocks X' → relationship:blocks, 'depends on X' → relationship:depends-on. Slugs are free-form (unknown ones auto-create); `relationships.common` is the workspace's vocabulary, most-linked first, and `cnotes rel types` lists every slug — reuse before coining.",
|
|
44
44
|
"Reserve `references` for pure citations. A verb narrated in prose around a `references` chip is invisible to backlinks and `rel list` — create/version responses flag these as `mentionWarnings`; treat each as a retype instruction.",
|
|
45
45
|
],
|
package/dist/lib/mention-lint.js
CHANGED
|
@@ -30,10 +30,10 @@ const DISPLAY_ID_RE = new RegExp(String.raw `^${DISPLAY_ID_CORE}(@v\d+)?$`);
|
|
|
30
30
|
const AT_KEY_RE = /^@[A-Za-z][\w-]*$/;
|
|
31
31
|
/** Every inline relationship mention, well-formed or not. */
|
|
32
32
|
const MENTION_RE = /\[([^\]]*)\]\(relationship:([^)]*)\)/g;
|
|
33
|
-
/** Extract the target token from link text: the part before an optional `: Title`. */
|
|
33
|
+
/** Extract the target token from link text: the part before an optional `: Title` or `|alias`. */
|
|
34
34
|
function targetOf(linkText) {
|
|
35
|
-
const
|
|
36
|
-
return (
|
|
35
|
+
const cut = linkText.search(/[:|]/);
|
|
36
|
+
return (cut === -1 ? linkText : linkText.slice(0, cut)).trim();
|
|
37
37
|
}
|
|
38
38
|
function isValidTarget(target, allowAtKey) {
|
|
39
39
|
if (DISPLAY_ID_RE.test(target))
|
package/dist/mcp-server.js
CHANGED
|
@@ -366,7 +366,7 @@ const NoteCreateItem = z.object({
|
|
|
366
366
|
.optional()
|
|
367
367
|
.describe("Version 1's timeline line. Verb-first headline, optional blank line, then a body you own. {displayId} is filled in. A failing headline may be rewritten; the body is kept. headlineWarnings comes back on the result. Omit it and the platform later writes one."),
|
|
368
368
|
});
|
|
369
|
-
server.tool("cnotes_notes_create", "Create one or more interlinked notes in a single atomic transaction. FIRST call cnotes_types_show for each target type and author to that rubric — do not skip this. Pass `notes` as one item object or an array; each note's title is its first # h1 heading. Cross-reference in markdown with [@key: Title](relationship:type) (same-batch — @key resolves to the new display ID) or [NOTE-12: Title](relationship:type) (existing note)
|
|
369
|
+
server.tool("cnotes_notes_create", "Create one or more interlinked notes in a single atomic transaction. FIRST call cnotes_types_show for each target type and author to that rubric — do not skip this. Pass `notes` as one item object or an array; each note's title is its first # h1 heading. Cross-reference in markdown with [@key: Title](relationship:type) (same-batch — @key resolves to the new display ID) or [NOTE-12: Title](relationship:type) (existing note). What you write is what the chip shows: ': Title' shows the note's title (the server keeps it current), [[type::NOTE-12]] shows the id alone, [[type::NOTE-12|your words]] shows your words. Title a note where the reader first meets it in a body; after that the id alone reads better than a run of titles. NEVER name another note as bare prose ('see DECISION-12') — plain text creates no chip, no relationship, no backlink; write the mention. Pick the relationship type from the verb your own prose uses ('blocks', 'depends-on', …; free-form — unknown types auto-create); reserve 'references' for pure citations — a verb narrated in prose around a 'references' chip is invisible to backlinks. A `mentionWarnings` array in the result flags narrated verbs it detects; a `plainTextIdWarnings` array flags bare IDs that name real notes, each with a paste-ready mention rewrite — treat both as fix instructions unless the prose genuinely isn't asserting a relationship. Each result item carries `type` + `rubric` (null when the type has no validationPrompt); a top-level `rubrics` array is also present. On validation failure, `details.items` pinpoints the bad item by index + key. " +
|
|
370
370
|
DECISION_CARD_RULE +
|
|
371
371
|
" A Decision must cite what it depends on with a typed verb (depends-on, grounded-in); a references chip does not. An uncited Decision still succeeds. That result carries `hint`, naming the displayId, and the same lines are in the top-level `hints` array, because no typed outgoing relationship was created.", {
|
|
372
372
|
notes: z
|
|
@@ -1405,7 +1405,7 @@ server.tool("cnotes_versions_list", "List versions of a note.", {
|
|
|
1405
1405
|
throw new Error(`Note not found: ${noteId}`);
|
|
1406
1406
|
return note.versions || [];
|
|
1407
1407
|
}));
|
|
1408
|
-
server.tool("cnotes_versions_create", "Create a new version of a note. Content is markdown. To link to other notes, use [NOTE-123: Title](relationship:type) or [[type::NOTE-123]] inside the markdown
|
|
1408
|
+
server.tool("cnotes_versions_create", "Create a new version of a note. Content is markdown. To link to other notes, use [NOTE-123: Title](relationship:type) (shows the note's title, kept current by the server), [[type::NOTE-123]] (shows the id alone) or [[type::NOTE-123|your words]] (shows your words) inside the markdown: what you write is what the chip shows. Title a note where the reader first meets it; after that the id alone reads better than a run of titles. NEVER name another note as bare prose ('see DECISION-12') — plain text creates no chip, no relationship, no backlink; write the mention. This is exactly how to capture 'the answer to this QUESTION is that DECISION': a mention of the decision with a relationship type like 'answered-by'. Pick the relationship type from the verb your own prose uses ('blocks', 'depends-on', 'caused-by', …; free-form — unknown types auto-create); reserve 'references' for pure citations — a verb narrated in prose around a 'references' chip is invisible to backlinks. A `mentionWarnings` array in the result flags narrated verbs it detects; a `plainTextIdWarnings` array flags bare IDs that name real notes, each with a paste-ready mention rewrite — treat both as fix instructions unless the prose genuinely isn't asserting a relationship.", {
|
|
1409
1409
|
noteId: z.string().describe("Note display ID or Convex ID"),
|
|
1410
1410
|
markdown: z.string().describe("New content as markdown"),
|
|
1411
1411
|
description: z.string().describe("Change description (required)"),
|
package/package.json
CHANGED
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -60,7 +60,7 @@ Other writes that belong together (notes on two canvases, a change that needs se
|
|
|
60
60
|
|
|
61
61
|
1. **The exit code is the verdict.** `0` is success. Never decide success from the body, and never re-run a write because a key looked empty: a second `notes create` duplicates the batch.
|
|
62
62
|
2. **Knowledge lives in typed notes.** Text cards, lists, section frames, edges and portals arrange and label; they are unversioned, unsearchable and uncitable. If a future reader needs to find, cite or trust it, it is a note. A text card holds at most three sentences (the orientation banner: four short lines).
|
|
63
|
-
3. **
|
|
63
|
+
3. **Link notes with typed mentions, and show only what the sentence needs.** Three forms, one link: `[NOTE-12: Title](relationship:<verb>)` shows the note's title, `[[<verb>::NOTE-12]]` shows the id alone, `[[<verb>::NOTE-12|your words]]` shows your words (the title is a hover away). The verb is the one your sentence uses (`blocks`, `depends-on`, `answered-by`); `references` is for pure citation only. Show a title once, where the reader first meets the note; after that the id alone keeps the sentence moving ("the cut in [[depends-on::DECISION-6K535]]"), and your own words carry it when it needs a noun. Two titled mentions in one sentence, or a run of them in a list, is a readability defect. A bare `NOTE-12` in prose creates no link and is a defect too, in note bodies and on canvas cards. Reuse the workspace's types (`cnotes schema` ranks them by use; `cnotes rel types` lists all) before coining one.
|
|
64
64
|
4. **Edges are local to one canvas.** When an edge connects two notes, write the same relationship as a mention in a note body, or it exists nowhere off that canvas.
|
|
65
65
|
5. **Place declaratively, edit in place.** Use `canvas place` / `canvas arrange`, never hand-computed x/y. Add to a section with `place --into SECTION-n` (or `--section` on a single add); tidy one with `arrange --section SECTION-n`. Change a text card with `canvas update-text` and a frame with `canvas update-section`. Deleting and re-adding mints new ids and drops edges and `[[SECTION-n]]` mentions.
|
|
66
66
|
6. **Content changes are versions.** `cnotes versions create` changes a note's body (the `# h1` is its title); fetch the current body first and edit that, since people edit between sessions. `notes update` changes metadata only (type, tags, pin, archive).
|
|
@@ -51,7 +51,7 @@ A canvas holds two tiers of content, and the difference is load-bearing:
|
|
|
51
51
|
## Hard rules (each one has burned a real canvas)
|
|
52
52
|
|
|
53
53
|
1. **A canvas element must never be the sole home of a claim.** Verdict tallies, dates, scan provenance, and even a moat-defining sentence have each been authored as text elements — then cited downstream while being unversioned, unsearchable, and uncitable. If a text element says something true and useful, a note says it first; the text element may quote the note. (Canvas-specific wayfinding — how to read THIS canvas — is the one exemption; it has no off-canvas value.)
|
|
54
|
-
2. **Name notes and canvases from text elements with relationship mentions, never bare ids.** `[NOTE-12: Title](relationship:references)` inside a text element renders as a mention chip
|
|
54
|
+
2. **Name notes and canvases from text elements with relationship mentions, never bare ids.** `[NOTE-12: Title](relationship:references)` inside a text element renders as a mention chip, in the same three forms as a note body (the title, `[[NOTE-12]]` for the id alone, `[[NOTE-12|your words]]`; [notes.md](notes.md)), and a list description renders it as a labelled span. "See RISK-64" as plain prose is a defect: the reader gets no link. Pick the relationship type from the verb the sentence uses and reuse the workspace vocabulary. The chip is presentational: it creates no graph relationship, is not searchable, and is not versioned, so a relationship that must survive off the canvas still lives as a mention in a NOTE body (rule 5).
|
|
55
55
|
3. **A text element is capped at card size**: at most 3 sentences, one heading at most, never a list of distinct knowledge items (questions, risks, findings — those are N notes; a 3-line color legend or lane key is fine). The one exception is the orientation banner (four short lines, rule 7). A heading-only text element (`--content '# Q1 Goals'`, or the hero) is of course fine — that is the smallest legitimate use. The cap is physical as much as doctrinal: a text element renders its full content inline, so long blocks explode the canvas — one canvas hit 43,000px tall from eight text reference blocks and had to be rebuilt as notes.
|
|
56
56
|
4. **Detail's HOME is the note body; a note's face on the board is a quote of it, never a restatement.** Write the full content INTO each note's body first. When the board must show a note's claim at the glance, quote it: `add-quote --note <id> --text "<its claim sentence>" --size medium` pins the note's own sentence to its version and draws it as a Quote card (rule 8), so there is one copy and nothing drifts. Write the claim sentence first; the words must be in the saved version, and the same words on another board reuse the same QUOTE-<n>. A text card that restates a note is the anti-pattern: `update-text` edits it with no history, so after one revision only the note tells the truth (47 of 262 text cards on 44 recent boards had grown past the cap this way), and one teaching canvas carried its entire method in text cards over one-line stub notes, so an agent reading it back got seven stubs and no method.
|
|
57
57
|
5. **Edges can connect any node type** (note, text, list, canvas-link, section — plus legacy heading nodes), as long as both endpoints are on the same canvas; labels are short verb phrases ("fixes", "grounds", "depends on"). A section endpoint is addressed by its SECTION-n handle (or the frame's node id), and the edge anchors to the frame's border — use one when the relationship's endpoint is genuinely the whole region ("this cluster feeds that stage"), not as a shortcut for a note-to-note link. `canvas read` returns edges, so they are no longer invisible on read-back — but an edge is still CANVAS-LOCAL: it is not part of the note graph, never appears in `rel list`, is not searchable, and means nothing once you leave this canvas. So any relationship **between notes** that must survive off the canvas has to ALSO exist as a mention inside the note bodies. The mention is the copy that travels; the edge is the copy you can see. Edges to text/list/canvas-link nodes are diagram decoration (pointing a label at a cluster, wiring a portal) and carry no note-to-note relationship to mirror. **Two line styles make two layers.** On a board with more than about eight arrows, give `--line-style dashed` to the ones that say what a card rests on (grounded in, builds on, extends, refines, references) and keep solid for the chain the reader follows (derived from, applies, selects, implements, realizes) and for the Questions that gate it, then say so in a small untinted legend text card beside the banner. One style of arrow everywhere reads as one flat tangle. `canvas update-edge <canvasId> --edge <id> --line-style dashed` restyles an arrow that exists (ids from `canvas get --json`, `edges[].id`).
|
|
@@ -84,7 +84,9 @@ material. Only rewrite existing notes once an audit has named the specific defec
|
|
|
84
84
|
(hype adjective + filler verb + rule-of-three in the same paragraph) is real slop.
|
|
85
85
|
4. **Run the preservation check** — verify nothing in the [preservation gate](#the-preservation-gate)
|
|
86
86
|
changed.
|
|
87
|
-
5. **Save** with a `# h1` title
|
|
87
|
+
5. **Save** with a `# h1` title, each mention in the form its sentence needs
|
|
88
|
+
(the title where the reader first meets the note, the id alone after that;
|
|
89
|
+
[notes.md](notes.md)).
|
|
88
90
|
|
|
89
91
|
### Existing notes and canvases (audit → select → version → verify)
|
|
90
92
|
|
|
@@ -94,8 +96,8 @@ material. Only rewrite existing notes once an audit has named the specific defec
|
|
|
94
96
|
with a change description saying what you fixed.
|
|
95
97
|
4. Fix affected canvas text cards in place with `cnotes canvas update-text`
|
|
96
98
|
(text cards have no version history).
|
|
97
|
-
5. **Verify** numbers, names, IDs, links, mention
|
|
98
|
-
and canvas layout survived unchanged.
|
|
99
|
+
5. **Verify** numbers, names, IDs, links, what each mention shows, tables,
|
|
100
|
+
uncertainty, and canvas layout survived unchanged.
|
|
99
101
|
|
|
100
102
|
---
|
|
101
103
|
|
|
@@ -208,9 +210,11 @@ humanization corrupts a note:
|
|
|
208
210
|
constraint is not slop. Keep it.
|
|
209
211
|
- **Checklists and structured writing** — deliberate structure is not slop.
|
|
210
212
|
Do not flatten a checklist into a paragraph.
|
|
211
|
-
- **Relationship mentions** —
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
- **Relationship mentions** — links intact, and what each shows unchanged: a
|
|
214
|
+
titled `[NOTE-12: Title](relationship:type)` stays titled, an id-only
|
|
215
|
+
`[[type::NOTE-12]]` stays id-only, an alias `[[type::NOTE-12|words]]` keeps
|
|
216
|
+
its words. Never strip a mention to bare text, drop its link, or add titles
|
|
217
|
+
to mentions that had none. And the TYPE must carry the verb: if the prose
|
|
214
218
|
narrates "blocks" / "depends on" around a `references` chip or untyped
|
|
215
219
|
`[[NOTE-12]]`, retype the chip (`relationship:blocks`, `[[blocks::NOTE-12]]`)
|
|
216
220
|
instead of leaving the verb in prose the graph can't see.
|
|
@@ -260,14 +264,17 @@ These are objective and never need judgment. Enforce them on every write:
|
|
|
260
264
|
- **Canvas titles** use the middle dot `·` (U+00B7) as a separator, never an
|
|
261
265
|
em dash or en dash.
|
|
262
266
|
- **Every note starts with a `# h1`** heading — it becomes the title.
|
|
263
|
-
- **Relationship mentions
|
|
264
|
-
|
|
267
|
+
- **Relationship mentions are typed links, never bare `NOTE-123`**:
|
|
268
|
+
`[NOTE-123: Title](relationship:type)` where the reader first meets the note,
|
|
269
|
+
`[[type::NOTE-123]]` after that, `[[type::NOTE-123|your words]]` when the
|
|
270
|
+
sentence needs a phrase. A run of titled mentions is a readability defect:
|
|
271
|
+
show each title once.
|
|
265
272
|
- **Relationship type matches the narrated verb** — prose "Blocks X" around a
|
|
266
273
|
`references`/untyped chip is a graph bug, not a style choice: retype to
|
|
267
274
|
`relationship:blocks` (or `[[blocks::NOTE-123]]`) and drop the redundant verb.
|
|
268
275
|
- **Canvas richtext and list descriptions name notes with relationship mentions** —
|
|
269
|
-
|
|
270
|
-
|
|
276
|
+
the same three forms render as chips; a bare display id in card prose
|
|
277
|
+
("see RISK-64") is a defect.
|
|
271
278
|
- **Richtext stays card-sized** — at most ~3 sentences, one heading; distinct
|
|
272
279
|
items are N typed notes, not a wall of text.
|
|
273
280
|
- **No placeholder or artifact tokens** — "lorem ipsum", "TODO", "[insert X]",
|
|
@@ -261,7 +261,8 @@ each note is judged again; a new label alone keeps them.
|
|
|
261
261
|
```
|
|
262
262
|
- Use inline `markdown` only for short, single-line content.
|
|
263
263
|
- **Always start markdown content with a `# h1` heading.** This becomes the note title. **The title is a headline, not a sentence**: at most 80 characters, naming the claim or the object, with no consequence clause (", so…", ", because…", ", which…"), no display id and no em dash. The body's first sentence carries the why. The server refuses an agent's note or version whose title breaks this (`field: "title"` in a batch) and the message says what to change; a person typing in the editor is never refused. Follow proper markdown structure: `## h2` for major sections, `### h3` for subsections. Well-structured heading hierarchy is expected for all notes.
|
|
264
|
-
- **Relationship mentions in markdown**:
|
|
264
|
+
- **Relationship mentions in markdown**: three forms, one link. `[NOTE-123: Title](relationship:<type>)` shows the note's title (the server writes the current title over yours on every save, so it never goes stale); `[[<type>::NOTE-123]]` and `[NOTE-123](relationship:<type>)` show the id alone; `[[<type>::NOTE-123|your words]]` shows your words, with the title on hover. What you write is what the chip shows. Plain text "NOTE-123" does NOT create a mention. Match `<type>` to the verb your prose uses (`blocks`, `depends-on`, …); `references` is for pure citations, and an untyped `[[NOTE-123]]` is one. Bodies come back to you in the same forms, so a round trip keeps what each chip shows.
|
|
265
|
+
- **Show each title once.** Title a note where the reader first meets it in a body, so they learn what it is; after that write the id alone ("the cut in [[depends-on::DECISION-6K535]]"), and when the sentence needs a noun, your own words ("[[depends-on::DECISION-6K535|the packaging call]]"). A title is a headline, not a phrase: two titled mentions in one sentence, or a run of them in a list, stop the reader every time.
|
|
265
266
|
- **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.
|
|
266
267
|
- **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:
|
|
267
268
|
```markdown
|
|
@@ -281,7 +282,7 @@ each note is judged again; a new label alone keeps them.
|
|
|
281
282
|
- `invalidates` / `supersedes` — supersedes or contradicts another note
|
|
282
283
|
- `related-to` — loose thematic connection
|
|
283
284
|
- `duplicates` — notes covering the same thing
|
|
284
|
-
- Simple mention shorthand: `[NOTE-123]`
|
|
285
|
+
- Simple mention shorthand: `[NOTE-123]` (the id alone), `[NOTE-123: Title]` (the title) or `[NOTE-123|your words]`; all three are "references"
|
|
285
286
|
|
|
286
287
|
## Updating Content vs Metadata
|
|
287
288
|
- To change note **content** (including title), create a new **version**: `cnotes versions create <id> --description "..." --markdown-file ./updated.md`
|
|
@@ -97,7 +97,7 @@ This builds on [@B: The Problem](relationship:extends) and enables [@C: The Work
|
|
|
97
97
|
|
|
98
98
|
The relationship type is free-form, but **reuse an existing type before inventing one** — see Content via Markdown in [notes.md](notes.md) for the reuse rule, why needless synonyms are harmful, and the built-in types to reach for first.
|
|
99
99
|
|
|
100
|
-
**Match the type to your own verb.** If your sentence says "blocks", the mention must say `relationship:blocks` — a verb narrated in prose around a `references` chip (or an untyped `[[NOTE-12]]`) is an edge the graph can't see: backlinks and `rel list` will file it as a plain citation. `notes create` and `versions create` detect this and return a `mentionWarnings` array (--json) plus a stderr note with the exact retyped mention; treat each warning as a retype instruction unless the flagged word genuinely isn't asserting a relationship. Writing the verb right before its chip is fine: "This reopens [[reopens::DECISION-6KW]]" renders as "This reopens → DECISION-6KW
|
|
100
|
+
**Match the type to your own verb.** If your sentence says "blocks", the mention must say `relationship:blocks` — a verb narrated in prose around a `references` chip (or an untyped `[[NOTE-12]]`) is an edge the graph can't see: backlinks and `rel list` will file it as a plain citation. `notes create` and `versions create` detect this and return a `mentionWarnings` array (--json) plus a stderr note with the exact retyped mention; treat each warning as a retype instruction unless the flagged word genuinely isn't asserting a relationship. Writing the verb right before its chip is fine: "This reopens [[reopens::DECISION-6KW]]" renders as "This reopens → DECISION-6KW", because a chip drops its own label when the words just before it say the same thing (whitespace only between them, so not "reopens: …"). The wiki form shows the id alone; `[DECISION-6KW: Title](relationship:reopens)` shows the title and `[[reopens::DECISION-6KW|the earlier call]]` your words (the three forms in [notes.md](notes.md)).
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
## Dependencies (`cnotes deps`)
|