@creator-notes/cnotes 0.124.0 → 0.124.2

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.124.0",
3
+ "version": "0.124.2",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -478,7 +478,7 @@ Examples:
478
478
  .addHelpText("after", `
479
479
  Each result (JSON) carries enough to pick a canvas in one round-trip:
480
480
  id, displayId cite / navigate
481
- matchedBy "lexical" | "semantic" | "both", how the query matched
481
+ matchedBy "id" | "lexical" | "semantic" | "both", how the query matched (id: its CANVAS-n id starts with the query)
482
482
  relevance 0..1 blended score (higher is closer)
483
483
  purpose, themes, contains, noteCount
484
484
  snippet why it matched (semantic excerpt, else the purpose)
@@ -2840,7 +2840,7 @@ Examples:
2840
2840
  .command("begin")
2841
2841
  .description("Open an agent-run session — captures a before-snapshot and makes the run active for this server")
2842
2842
  .requiredOption("--canvas <id>", "Canvas ID to bracket")
2843
- .requiredOption("--prompt <text>", "Run headline. Verb-first, at most 110 characters. The platform may rewrite it. The body is kept.")
2843
+ .requiredOption("--prompt <text>", "Run headline. Past-tense verb first, at most 80 characters, no \", so…\" clause; the server refuses one that is not. A blank line, then the body.")
2844
2844
  .option("--rationale <text>", "Optional rationale (e.g. agent's plan)")
2845
2845
  .option("--force", "If an active run already exists on this server, end it server-side and start a fresh one")
2846
2846
  .option("--detached", "Open an independent run that does NOT become the active run on this server. Writes attach to it only through the printed CNOTES_AGENT_RUN_ID / CNOTES_AGENT_BEFORE_SNAPSHOT_ID exports. Use when another agent may hold the active run on this machine.")
@@ -2970,7 +2970,7 @@ alongside it (eval the printed exports so your writes carry it).
2970
2970
  .command("wrap")
2971
2971
  .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.")
2972
2972
  .requiredOption("--canvas <id>", "Canvas ID")
2973
- .requiredOption("--prompt <text>", "Run headline. Verb-first, at most 110 characters. The platform may rewrite it. The body is kept.")
2973
+ .requiredOption("--prompt <text>", "Run headline. Past-tense verb first, at most 80 characters, no \", so…\" clause; the server refuses one that is not. A blank line, then the body.")
2974
2974
  .option("--rationale <text>", "Optional rationale (e.g. agent's plan)")
2975
2975
  .argument("<command...>", "Command to execute (e.g. -- bash -c '...')")
2976
2976
  .addHelpText("after", `
@@ -42,7 +42,7 @@ export function registerOperationsCommands(program) {
42
42
  ops
43
43
  .command("begin")
44
44
  .description("Open a new agent-run operation in the current workspace")
45
- .option("--prompt <text>", "Run headline. Verb-first, at most 110 characters. A blank line then the body. The platform may rewrite the headline. The body is kept. Returned as headline plus headlineWarnings.")
45
+ .option("--prompt <text>", "Run headline. Past-tense verb first, at most 80 characters, no \", so…\" clause; the server refuses one that is not. A blank line, then the body. Returned as headline plus headlineWarnings.")
46
46
  .option("--rationale <text>", "Optional free-form rationale; shown on expand alongside the intent")
47
47
  .option("--force", "If an active run already exists on this server, end it server-side and start a fresh one")
48
48
  .option("--detached", "Open an independent run that does NOT become the active run on this server. Writes attach to it only while CNOTES_AGENT_RUN_ID=<its id> is set. Use when another agent may hold the active run on this machine.")
@@ -52,8 +52,8 @@ export const INTENT_COMMANDS = {
52
52
  */
53
53
  export const INTENT_CHILD_ENV = "CNOTES_INTENT_CHILD";
54
54
  export const INTENT_OPTION_DESCRIPTION = "Timeline headline for this change: opens an agent run for this one command and closes it after, " +
55
- "so no `operations begin`/`end` is needed. Verb-first, at most 110 characters " +
56
- '("Added the pricing risks to the Q1 roadmap"). When a run is already open, the write joins it instead.';
55
+ "so no `operations begin`/`end` is needed. Past-tense verb first, at most 80 characters, no \", so…\" clause; " +
56
+ 'the server refuses one that is not ("Added the pricing risks to the Q1 roadmap"). When a run is already open, the write joins it instead.';
57
57
  const brackets = new WeakMap();
58
58
  /** Add `--intent` to every command in INTENT_COMMANDS. Call after all commands are registered. */
59
59
  export function applyIntentOptions(program) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.124.0",
3
+ "version": "0.124.2",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -61,7 +61,7 @@ When the writes belong together but cannot be one command (several notes and new
61
61
  7. **Content changes are versions.** `cnotes versions create` changes a note's body; fetch the current body first and edit that, since people edit between sessions. `notes update` changes metadata only (type, tags, pin, archive).
62
62
  8. **Inside a draft, propose and stop.** Shared notes change through `cnotes draft propose`; the hand-over is `cnotes draft ask`, then stop. Never merge or approve work you built ([references/drafts.md](references/drafts.md)).
63
63
  9. **Ask before spending something the user cannot get back:** `cnotes upgrade` uses the workspace's one-time trial, `cnotes feedback submit` files a report in their name, `cnotes types dimension backfill --yes` spends one model call per existing note.
64
- 10. **Timeline headlines start with a past-tense verb and name the object** ("Shipped the public comic canvas", never "V1"): the `--intent`, an `operations begin --prompt`, a version `--description`, a milestone. The server rejects a milestone headline that does not. A milestone body, the lines after the headline, is at most 280 characters.
64
+ 10. **Timeline headlines start with a past-tense verb and name the object** ("Shipped the public comic canvas", never "V1"): the `--intent`, an `operations begin --prompt`, a version `--description`, a milestone. A run headline (`--intent`, `--prompt`) is also a title: at most 80 characters, no ", so…" clause, detail after a blank line. The server refuses a run or milestone headline that breaks this. A milestone body, the lines after the headline, is at most 280 characters.
65
65
 
66
66
  ### Decisions
67
67
 
@@ -107,7 +107,7 @@ To trace a change back to the agent that made it, read the BY column (in JSON, `
107
107
 
108
108
  ## Writing a good `--prompt`
109
109
 
110
- The prompt is the timeline row's headline, and the server lints it like every headline: start with a past-tense verb and name the specific object, in the user's terms for that object. An imperative ("Re-cite the notes ...") is accepted but warns `not_verb_first`.
110
+ The prompt's first line is the History row's title. Start with a past-tense verb and name the specific object, in the user's terms for that object. The server refuses a headline over 80 characters, one with a consequence clause (", so…", ", because…", ", which…"), a second sentence, a display id or an em dash, and nothing is started; put the detail after a blank line, where it shows when the row is opened. An imperative ("Re-cite the notes ...") is accepted but warns `not_verb_first`.
111
111
 
112
112
  - "Built a fan-out under the Goals heading with Q1 milestones"
113
113
  - "Reorganized the roadmap canvas into a SWOT layout"