@creator-notes/cnotes 0.77.0 → 0.79.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 +5 -2
- package/dist/commands/canvas.js.map +1 -1
- package/dist/commands/draft.d.ts.map +1 -1
- package/dist/commands/draft.js +240 -14
- package/dist/commands/draft.js.map +1 -1
- package/dist/commands/notes.d.ts.map +1 -1
- package/dist/commands/notes.js +13 -0
- package/dist/commands/notes.js.map +1 -1
- package/dist/commands/operations.d.ts.map +1 -1
- package/dist/commands/operations.js +3 -1
- package/dist/commands/operations.js.map +1 -1
- package/dist/commands/versions.d.ts.map +1 -1
- package/dist/commands/versions.js +7 -3
- package/dist/commands/versions.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 +1 -1
- 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 +69 -26
- package/skills/cnotes/references/humanizer.md +8 -0
package/README.md
CHANGED
|
@@ -135,8 +135,10 @@ cnotes notes bulk-retype --ids '["NOTE-1","NOTE-3","NOTE-5"]' --type Insight --j
|
|
|
135
135
|
Content and metadata are separate operations:
|
|
136
136
|
|
|
137
137
|
```bash
|
|
138
|
-
# Update content -> create a new version
|
|
139
|
-
|
|
138
|
+
# Update content -> create a new version. First line is the timeline headline
|
|
139
|
+
# (verb-first, at most 110 characters). A blank line, then the body. The
|
|
140
|
+
# platform may rewrite an agent headline. The body is kept.
|
|
141
|
+
cnotes versions create MEETING-42 --description "Added the action items from the review" --markdown-file ./updated.md
|
|
140
142
|
|
|
141
143
|
# Update metadata (type, tags, pin, archive). Title is read-only —
|
|
142
144
|
# change it by creating a new version with a different # h1 heading.
|
|
@@ -160,9 +162,9 @@ cnotes canvas read <canvasId>
|
|
|
160
162
|
# editing, or to confirm a previous agent run actually applied.
|
|
161
163
|
cnotes canvas activity <canvasId> [--limit 50]
|
|
162
164
|
|
|
163
|
-
# Save a milestone. First line is the headline,
|
|
164
|
-
#
|
|
165
|
-
#
|
|
165
|
+
# Save a milestone. First line is the timeline headline (verb-first, at most
|
|
166
|
+
# 110 characters). A blank line, then the body. The platform may rewrite an
|
|
167
|
+
# agent headline. The body is kept. An active operations run is stamped on.
|
|
166
168
|
cnotes canvas milestone create <canvasId> --message "Opened pricing question: charge for agents or the workspace?"
|
|
167
169
|
cnotes canvas milestone list <canvasId>
|
|
168
170
|
cnotes canvas milestone show <milestoneId>
|
|
@@ -4,7 +4,7 @@ import type { Command } from "commander";
|
|
|
4
4
|
* web UI writes (`canvasSnapshots` kind "milestone", via createMilestone).
|
|
5
5
|
*
|
|
6
6
|
* The message is one git-style field: first line is the timeline headline,
|
|
7
|
-
* the rest is the body.
|
|
7
|
+
* the rest is the body. The platform may rewrite an agent headline. The body is kept.
|
|
8
8
|
* Writes ride the active operations run through X-Agent-Run-Id, the same
|
|
9
9
|
* header every other CLI write sends.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas-milestone.d.ts","sourceRoot":"","sources":["../../src/commands/canvas-milestone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"canvas-milestone.d.ts","sourceRoot":"","sources":["../../src/commands/canvas-milestone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CA8KvF"}
|
|
@@ -4,12 +4,13 @@ import { resolveConfig } from "../lib/config.js";
|
|
|
4
4
|
import { handleError } from "../lib/errors.js";
|
|
5
5
|
import { readMilestoneMessage } from "../lib/milestone-message.js";
|
|
6
6
|
import { outputJson, outputQuiet, outputTable, timeAgo, truncate } from "../lib/output.js";
|
|
7
|
+
import { readHeadlineWarnings, reportHeadlineWarnings } from "../lib/headline-warnings.js";
|
|
7
8
|
/**
|
|
8
9
|
* `cnotes canvas milestone`: save and read the same canvas milestones the
|
|
9
10
|
* web UI writes (`canvasSnapshots` kind "milestone", via createMilestone).
|
|
10
11
|
*
|
|
11
12
|
* The message is one git-style field: first line is the timeline headline,
|
|
12
|
-
* the rest is the body.
|
|
13
|
+
* the rest is the body. The platform may rewrite an agent headline. The body is kept.
|
|
13
14
|
* Writes ride the active operations run through X-Agent-Run-Id, the same
|
|
14
15
|
* header every other CLI write sends.
|
|
15
16
|
*/
|
|
@@ -18,8 +19,9 @@ export function registerCanvasMilestoneCommands(canvas, program) {
|
|
|
18
19
|
.command("milestone")
|
|
19
20
|
.description("Save and read canvas milestones. A milestone is a named snapshot of the canvas, like a git tag. " +
|
|
20
21
|
"The message is one field: the first line is the headline shown on the timeline, and the rest is the body. " +
|
|
21
|
-
"
|
|
22
|
-
"
|
|
22
|
+
"The first line is the timeline headline: verb-first, a specific object in the first 40 characters, at most 110 characters. " +
|
|
23
|
+
"A blank line, then the body. The platform may rewrite an agent headline and leaves the body. " +
|
|
24
|
+
"See https://creatornotes.app/blog/timeline-as-navigation");
|
|
23
25
|
milestone
|
|
24
26
|
.command("create")
|
|
25
27
|
.description("Save a milestone for the canvas's current state. Does nothing when there are no unsaved changes. " +
|
|
@@ -60,6 +62,7 @@ Examples:
|
|
|
60
62
|
console.log("No pending canvas changes. Milestone not saved.");
|
|
61
63
|
return;
|
|
62
64
|
}
|
|
65
|
+
reportHeadlineWarnings(readHeadlineWarnings(data));
|
|
63
66
|
if (cfg.quiet) {
|
|
64
67
|
outputQuiet(String(data.id ?? ""));
|
|
65
68
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas-milestone.js","sourceRoot":"","sources":["../../src/commands/canvas-milestone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE3F;;;;;;;;GAQG;AACH,MAAM,UAAU,+BAA+B,CAAC,MAAe,EAAE,OAAgB;IAC/E,MAAM,SAAS,GAAG,MAAM;SACrB,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CACV,kGAAkG;QAClG,4GAA4G;QAC5G,
|
|
1
|
+
{"version":3,"file":"canvas-milestone.js","sourceRoot":"","sources":["../../src/commands/canvas-milestone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM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AC,CAAC;QACzC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../src/commands/canvas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../src/commands/canvas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAyL5C,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAu9F7D"}
|
package/dist/commands/canvas.js
CHANGED
|
@@ -7,6 +7,7 @@ import { ApiError, CliError, EXIT_CODES, handleError, ValidationError } from "..
|
|
|
7
7
|
import { parseJsonOption, readFileSafe } from "../lib/fs-utils.js";
|
|
8
8
|
import { loadConfig, setActiveAgentRunId, clearActiveAgentRunId, getActiveAgentRunId, } from "../lib/auth-store.js";
|
|
9
9
|
import { outputJson, outputTable, outputQuiet, truncate, timeAgo, formatAgo } from "../lib/output.js";
|
|
10
|
+
import { readHeadlineWarnings, reportHeadlineWarnings } from "../lib/headline-warnings.js";
|
|
10
11
|
import { readCanvasMarkdown, renderCanvasMarkdown, parseSharedCanvasLink, sameServerOrigin, readCanvasSection, renderCanvasSectionMarkdown, } from "../lib/canvas-read.js";
|
|
11
12
|
import { resolveAgentSession } from "../lib/claude-session.js";
|
|
12
13
|
import { WARN, dim } from "../lib/style.js";
|
|
@@ -2254,7 +2255,7 @@ Examples:
|
|
|
2254
2255
|
.command("begin")
|
|
2255
2256
|
.description("Open an agent-run session — captures a before-snapshot and makes the run active for this server")
|
|
2256
2257
|
.requiredOption("--canvas <id>", "Canvas ID to bracket")
|
|
2257
|
-
.requiredOption("--prompt <text>", "
|
|
2258
|
+
.requiredOption("--prompt <text>", "Run headline. Verb-first, at most 110 characters. The platform may rewrite it. The body is kept.")
|
|
2258
2259
|
.option("--rationale <text>", "Optional rationale (e.g. agent's plan)")
|
|
2259
2260
|
.option("--force", "If an active run already exists on this server, end it server-side and start a fresh one")
|
|
2260
2261
|
.addHelpText("after", `
|
|
@@ -2338,6 +2339,7 @@ prior run server-side and start fresh.
|
|
|
2338
2339
|
console.error(`# Subsequent cnotes writes will NOT attach to it. Either run \`cnotes auth login\`,`);
|
|
2339
2340
|
console.error(`# or use the env form: eval "$(cnotes canvas agent-run begin --canvas ${opts.canvas} --prompt "...")"`);
|
|
2340
2341
|
}
|
|
2342
|
+
reportHeadlineWarnings(readHeadlineWarnings(data));
|
|
2341
2343
|
if (cfg.quiet) {
|
|
2342
2344
|
outputQuiet(data.agentRunId);
|
|
2343
2345
|
return;
|
|
@@ -2366,7 +2368,7 @@ prior run server-side and start fresh.
|
|
|
2366
2368
|
.command("wrap")
|
|
2367
2369
|
.description("Run a shell command inside an agent-run scope (auto begin + end). Recommended for AI agents — no eval gymnastics, no env-var leakage, auto-closes the run even on subprocess failure.")
|
|
2368
2370
|
.requiredOption("--canvas <id>", "Canvas ID")
|
|
2369
|
-
.requiredOption("--prompt <text>", "
|
|
2371
|
+
.requiredOption("--prompt <text>", "Run headline. Verb-first, at most 110 characters. The platform may rewrite it. The body is kept.")
|
|
2370
2372
|
.option("--rationale <text>", "Optional rationale (e.g. agent's plan)")
|
|
2371
2373
|
.argument("<command...>", "Command to execute (e.g. -- bash -c '...')")
|
|
2372
2374
|
.addHelpText("after", `
|
|
@@ -2389,6 +2391,7 @@ Examples:
|
|
|
2389
2391
|
...(agentSession ? { agentSession } : {}),
|
|
2390
2392
|
});
|
|
2391
2393
|
console.error(`# agent run started: v${begin.beforeSnapshotNumber} (${begin.agentRunId})`);
|
|
2394
|
+
reportHeadlineWarnings(readHeadlineWarnings(begin));
|
|
2392
2395
|
// Step 2: spawn the wrapped command with the run env var set.
|
|
2393
2396
|
// stdio is inherited so the subprocess prints to the user's terminal
|
|
2394
2397
|
// exactly as if they'd run it themselves. Only runId + before-snapshot
|