@creator-notes/cnotes 0.105.3 → 0.106.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creator-notes-cli",
3
- "version": "0.105.3",
3
+ "version": "0.106.0",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -9,6 +9,7 @@ import { parseJsonOption, readFileSafe } from "../lib/fs-utils.js";
9
9
  import { loadConfig, setActiveAgentRunId, registerAgentRun, unregisterAgentRun, isOwnedAgentRun, } from "../lib/auth-store.js";
10
10
  import { outputJson, outputTable, outputQuiet, truncate, timeAgo } from "../lib/output.js";
11
11
  import { readHeadlineWarnings, reportHeadlineWarnings } from "../lib/headline-warnings.js";
12
+ import { formatDoneParts } from "../lib/done-parts.js";
12
13
  import { parseSharedCanvasLink, sameServerOrigin } from "../lib/share-link.js";
13
14
  import { resolveHostAgentSession } from "../lib/claude-session.js";
14
15
  import { WARN, dim } from "../lib/style.js";
@@ -601,6 +602,11 @@ Examples:
601
602
  console.log("This verdict was for an older wording of the goal; it does not count until the board is judged again.");
602
603
  if (s.evidence)
603
604
  console.log(`Why: ${s.evidence}`);
605
+ if (s.parts && s.parts.length > 0) {
606
+ console.log("Parts:");
607
+ for (const line of formatDoneParts(s.parts))
608
+ console.log(line);
609
+ }
604
610
  if (s.cards.length > 0)
605
611
  console.log(`Cards: ${s.cards.join(", ")}`);
606
612
  }
@@ -4,6 +4,7 @@ import { handleError, ValidationError } from "../lib/errors.js";
4
4
  import { outputJson, truncate } from "../lib/output.js";
5
5
  import { extractDoneWhen, normalizeDoneWhen } from "../lib/canvas-goal.js";
6
6
  import { deriveGoalTree } from "../lib/goal-tree.js";
7
+ import { formatDoneParts } from "../lib/done-parts.js";
7
8
  /**
8
9
  * Goal trees from the terminal.
9
10
  *
@@ -60,7 +61,13 @@ async function loadGoal(api, workspaceId, displayId) {
60
61
  displayId: typeof match.displayId === "string" ? match.displayId : null,
61
62
  name: String(match.name ?? match.title ?? "canvas"),
62
63
  score: done.score
63
- ? { level: done.score.level, fresh: done.score.fresh, evidence: done.score.evidence, cards: done.score.cards }
64
+ ? {
65
+ level: done.score.level,
66
+ fresh: done.score.fresh,
67
+ evidence: done.score.evidence,
68
+ cards: done.score.cards,
69
+ parts: done.score.parts ?? null,
70
+ }
64
71
  : null,
65
72
  };
66
73
  }
@@ -138,6 +145,10 @@ Examples:
138
145
  continue;
139
146
  }
140
147
  console.log(`${pad} ${LABEL[n.state]}: ${n.reason}`);
148
+ const parts = n.board?.score?.parts;
149
+ if (parts && parts.length > 0)
150
+ for (const line of formatDoneParts(parts, `${pad} `))
151
+ console.log(line);
141
152
  }
142
153
  console.log("\nCan start now (not met, every child met):");
143
154
  if (view.frontier.length === 0)
@@ -0,0 +1,20 @@
1
+ /**
2
+ * How a done score's parts print (`cnotes canvas done`, `cnotes goals tree`).
3
+ * A goal judged by parts carries one verdict per part of its Done when, and
4
+ * who ruled on it: code, the decision model, or the language model.
5
+ */
6
+ const BY = {
7
+ code: "checked in code",
8
+ decision: "decision model",
9
+ llm: "language model",
10
+ };
11
+ /** One line per part: "met" or "not yet", the part, then who ruled and why. */
12
+ export function formatDoneParts(parts, indent = " ") {
13
+ return parts.map((p) => {
14
+ const mark = p.holds ? "met " : "not yet";
15
+ const who = p.by === "decision" && p.probability !== null ? `${BY.decision}, ${p.probability.toFixed(2)}` : BY[p.by];
16
+ const why = p.why ? `: ${p.why}` : "";
17
+ const cards = p.cards.length > 0 ? ` [${p.cards.join(", ")}]` : "";
18
+ return `${indent}${mark} ${p.part} (${who}${why})${cards}`;
19
+ });
20
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.105.3",
3
+ "version": "0.106.0",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -78,8 +78,12 @@ cnotes canvas update <canvasId> [--title "<text>"] [--goal "<text>"] [--audience
78
78
  # Is the board done? The judge's last reading of whether the goal's "Done when" is true of
79
79
  # the board: met / partly met / not met, the deciding cards and one sentence why. Derived,
80
80
  # never a status anyone sets. --refresh judges now (one model call, editors only; refused
81
- # when the deployment has scoring off). Goal trees (`cnotes goals tree`, goal-tree skill)
82
- # are built from these.
81
+ # when the deployment has scoring off). Where a decision model is configured, the Done when
82
+ # is split once into its parts ("and" separates parts, "or" stays one part), the split is
83
+ # reused until the sentence is reworded, and the verdict lists each part as met or not yet
84
+ # with who ruled (code, the decision model, the language model). A part that names a note
85
+ # type ("a Spec note") needs a card of that type ON the board. Goal trees (`cnotes goals
86
+ # tree`, goal-tree skill) are built from these.
83
87
  cnotes canvas done <canvasId> [--refresh]
84
88
  # Which cards contradict each other, and which claims nothing on the board backs. Writes
85
89
  # nothing and gives no reasons, so read each finding before acting on it. For a real one,
@@ -27,7 +27,7 @@ deliverable.
27
27
  | Child | A `depends-on` mention from the parent's body: `[GOAL-4: Title](relationship:depends-on)` |
28
28
  | Parent's done | Exactly `Done when every child goal is met.` A parent makes no claim of its own |
29
29
  | Board | The canvas where a leaf's work happens. The Goal note sits on it as the hero card, and the canvas goal is the **same two sentences**. That match is how the tree finds the board |
30
- | Leaf's done | The board's done score (`cnotes canvas done`): the judge's reading of whether the Done when is true, 0 not met, 1 partly, 2 met. Or a `met-by` link to the evidence: `[PROOF-7: Title](relationship:met-by)` |
30
+ | Leaf's done | The board's done score (`cnotes canvas done`): the judge's reading of whether the Done when is true, 0 not met, 1 partly, 2 met, listing each part of the Done when as met or not yet where the board is judged by parts. Or a `met-by` link to the evidence: `[PROOF-7: Title](relationship:met-by)` |
31
31
  | Frontier | Goals not met whose children are all met: what can start now. Computed by `cnotes goals tree`, never stored |
32
32
  | Claim | An open canvas comment on the goal's card in the tree canvas: `CLAIM <ISO time> — <what this session is doing>` |
33
33
  | Tree canvas | One canvas named `<Outcome> · Goal Tree` holding every Goal note: root on the right, leaves on the left |