@creator-notes/cnotes 0.107.0 → 0.107.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/.claude-plugin/plugin.json +1 -1
- package/dist/commands/canvas.js +2 -2
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/skills/attention-planner/references/orientation-canvas.md +1 -1
- package/skills/cnotes/references/canvas.md +1 -1
- package/skills/transcript-timeline/references/layout.md +1 -1
package/dist/commands/canvas.js
CHANGED
|
@@ -408,7 +408,7 @@ Examples:
|
|
|
408
408
|
"sections) as one list of rectangles, the items that overlap, and with --near a free spot next to an anchor.")
|
|
409
409
|
.argument("<canvasId>", "Canvas ID")
|
|
410
410
|
.option("--near <ref>", "Suggest a free spot next to this item (display id or node id) or point (x,y)")
|
|
411
|
-
.option("--size <WxH>", "Box to find room for with --near (default: a note card,
|
|
411
|
+
.option("--size <WxH>", "Box to find room for with --near (default: a note card, 340x130)", "340x130")
|
|
412
412
|
.addHelpText("after", `
|
|
413
413
|
Sections are containers: they are listed, but a card inside one is not an
|
|
414
414
|
overlap. Read-only.
|
|
@@ -424,7 +424,7 @@ Examples:
|
|
|
424
424
|
try {
|
|
425
425
|
const size = parseSize(opts.size);
|
|
426
426
|
if (!size)
|
|
427
|
-
throw new ValidationError(`--size must look like
|
|
427
|
+
throw new ValidationError(`--size must look like 340x130 (got "${opts.size}")`);
|
|
428
428
|
const data = await api.get(`/api/canvas/${encodeURIComponent(canvasId)}`, {
|
|
429
429
|
workspaceId: cfg.workspaceId,
|
|
430
430
|
});
|
package/dist/mcp-server.js
CHANGED
|
@@ -381,7 +381,7 @@ server.tool("cnotes_canvas_get", "Get canvas details including nodes, edges, and
|
|
|
381
381
|
server.tool("cnotes_canvas_status", "See a canvas's whole layout BEFORE placing or moving anything by x/y: every item (cards, text, lists, portals, sections) as one list of rectangles {kind, ref, x, y, width, height}, the pairs that overlap, and with `near` a free spot next to an anchor. Sections are containers, never overlaps. Read-only.", {
|
|
382
382
|
canvasId: z.string().describe("Canvas ID"),
|
|
383
383
|
near: z.string().optional().describe("Find a free spot next to this item (display id or node id) or point 'x,y'"),
|
|
384
|
-
width: z.number().optional().default(
|
|
384
|
+
width: z.number().optional().default(340).describe("Width of the box to find room for (default: a note card)"),
|
|
385
385
|
height: z.number().optional().default(130).describe("Height of the box to find room for"),
|
|
386
386
|
}, async ({ canvasId, near, width, height }) => withErrorHandling(async () => {
|
|
387
387
|
const data = await api.get(`/api/canvas/${encodeURIComponent(canvasId)}`, { workspaceId });
|
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ The rules are the cnotes skill's rules for text elements (`references/canvas-ele
|
|
|
57
57
|
still carries the mention that travels.
|
|
58
58
|
- Untinted by default. Tint only by role: `#F59E0B` for the constraining rule,
|
|
59
59
|
`#3B82F6` for source evidence. Nothing else.
|
|
60
|
-
- `size: "small"` (560px) beside a
|
|
60
|
+
- `size: "small"` (560px) beside a 340px note card. Put text cards in the same
|
|
61
61
|
frame as the note they project, in a vertical stack under or beside it.
|
|
62
62
|
|
|
63
63
|
A text card that says something no note says is a bug: put it in the note first,
|
|
@@ -33,7 +33,7 @@ cnotes canvas get <canvasId>
|
|
|
33
33
|
# `cnotes canvas place` already avoids overlaps.)
|
|
34
34
|
# See the whole layout before touching x/y: every item's box by kind, the pairs
|
|
35
35
|
# that overlap, and with --near a free spot next to an anchor.
|
|
36
|
-
cnotes canvas status <canvasId> [--near <displayId|nodeId|x,y>] [--size
|
|
36
|
+
cnotes canvas status <canvasId> [--near <displayId|nodeId|x,y>] [--size 340x130]
|
|
37
37
|
|
|
38
38
|
# Read a canvas as STRUCTURE, not just content — one round-trip to think across it.
|
|
39
39
|
# Returns the notes as concatenated markdown in display order (top-to-bottom, then
|
|
@@ -6,7 +6,7 @@ Position carries meaning, so cards use raw `--x/--y` from the math below.
|
|
|
6
6
|
|
|
7
7
|
| Name | Value | Why |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
| CARD_W |
|
|
9
|
+
| CARD_W | 340 | default note card width |
|
|
10
10
|
| CARD_H | 130 | default note card height |
|
|
11
11
|
| PX_PER_MIN | 120 | a 30-minute call is 3,600px wide |
|
|
12
12
|
| LEFT | 80 | inset inside a row frame |
|