@creator-notes/cnotes 0.83.0 → 0.85.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/dist/commands/draft.d.ts.map +1 -1
- package/dist/commands/draft.js +126 -10
- package/dist/commands/draft.js.map +1 -1
- package/dist/commands/notes.d.ts.map +1 -1
- package/dist/commands/notes.js +10 -5
- package/dist/commands/notes.js.map +1 -1
- package/dist/commands/quality.d.ts +9 -4
- package/dist/commands/quality.d.ts.map +1 -1
- package/dist/commands/quality.js +160 -66
- package/dist/commands/quality.js.map +1 -1
- package/dist/lib/agent-grade.d.ts +24 -0
- package/dist/lib/agent-grade.d.ts.map +1 -0
- package/dist/lib/agent-grade.js +31 -0
- package/dist/lib/agent-grade.js.map +1 -0
- package/dist/lib/draft-view.d.ts +18 -2
- package/dist/lib/draft-view.d.ts.map +1 -1
- package/dist/lib/draft-view.js +25 -9
- package/dist/lib/draft-view.js.map +1 -1
- package/dist/lib/errors.js +2 -2
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/quality.d.ts +84 -6
- package/dist/lib/quality.d.ts.map +1 -1
- package/dist/lib/quality.js +183 -12
- package/dist/lib/quality.js.map +1 -1
- package/dist/lib/rubric-sections.d.ts +29 -0
- package/dist/lib/rubric-sections.d.ts.map +1 -0
- package/dist/lib/rubric-sections.js +77 -0
- package/dist/lib/rubric-sections.js.map +1 -0
- package/dist/lib/shared-rows.d.ts +3 -1
- package/dist/lib/shared-rows.d.ts.map +1 -1
- package/dist/lib/shared-rows.js +3 -0
- package/dist/lib/shared-rows.js.map +1 -1
- package/package.json +1 -1
- package/skills/cnotes/SKILL.md +54 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-sections.d.ts","sourceRoot":"","sources":["../../src/lib/rubric-sections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,iFAAiF;AACjF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CA6BzD;AAED,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAMvD;AAMD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAKlF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which sections a rubric requires, and whether a note's headings include them.
|
|
3
|
+
*
|
|
4
|
+
* Deterministic on purpose: no model, no credits. A rubric requires a section
|
|
5
|
+
* only when it says so, in either of these forms (the label is case-insensitive):
|
|
6
|
+
*
|
|
7
|
+
* Required sections: Problem; Options; Rationale
|
|
8
|
+
* Required sections:
|
|
9
|
+
* - Problem
|
|
10
|
+
* - Options
|
|
11
|
+
*
|
|
12
|
+
* Names are separated by semicolons so a name may contain commas. A period ends
|
|
13
|
+
* a name, so an explanation can follow the list on the same line. A rubric that
|
|
14
|
+
* never declares sections requires none: the check stays quiet instead of
|
|
15
|
+
* inventing headings from prose.
|
|
16
|
+
*
|
|
17
|
+
* Copied to cli/src/lib/rubric-sections.ts. Keep the two files byte-identical;
|
|
18
|
+
* __tests__/agent-grade.test.ts fails when they drift.
|
|
19
|
+
*/
|
|
20
|
+
/** Section names a rubric declares, in declaration order, without duplicates. */
|
|
21
|
+
export function requiredSections(rubric) {
|
|
22
|
+
const names = [];
|
|
23
|
+
const seen = new Set();
|
|
24
|
+
const add = (raw) => {
|
|
25
|
+
const name = raw.split(".")[0]?.trim().replace(/^#+\s*/, "").trim() ?? "";
|
|
26
|
+
if (!name)
|
|
27
|
+
return;
|
|
28
|
+
const key = name.toLowerCase();
|
|
29
|
+
if (seen.has(key))
|
|
30
|
+
return;
|
|
31
|
+
seen.add(key);
|
|
32
|
+
names.push(name);
|
|
33
|
+
};
|
|
34
|
+
const lines = rubric.split(/\r?\n/);
|
|
35
|
+
for (let i = 0; i < lines.length; i++) {
|
|
36
|
+
const match = lines[i].match(/required sections\s*:\s*(.*)$/i);
|
|
37
|
+
if (!match)
|
|
38
|
+
continue;
|
|
39
|
+
const rest = match[1].trim();
|
|
40
|
+
if (rest) {
|
|
41
|
+
for (const part of rest.split(/\s*;\s*/))
|
|
42
|
+
add(part);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
for (let j = i + 1; j < lines.length; j++) {
|
|
46
|
+
const bullet = lines[j].match(/^\s*[-*]\s+(.+)$/);
|
|
47
|
+
if (!bullet)
|
|
48
|
+
break;
|
|
49
|
+
add(bullet[1]);
|
|
50
|
+
i = j;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return names;
|
|
54
|
+
}
|
|
55
|
+
/** ATX heading texts (`#` through `######`), in order. */
|
|
56
|
+
export function headingTexts(markdown) {
|
|
57
|
+
const out = [];
|
|
58
|
+
for (const match of markdown.matchAll(/^#{1,6}[ \t]+(.+?)[ \t]*$/gm)) {
|
|
59
|
+
out.push(match[1].trim());
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
function norm(value) {
|
|
64
|
+
return value.trim().toLowerCase().replace(/\s+/g, " ").replace(/[.:]+$/, "");
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Declared section names that do not appear as a heading in `markdown`.
|
|
68
|
+
* Comparison is case-insensitive. An undeclared rubric returns an empty list.
|
|
69
|
+
*/
|
|
70
|
+
export function missingRequiredSections(markdown, rubric) {
|
|
71
|
+
const required = requiredSections(rubric);
|
|
72
|
+
if (required.length === 0)
|
|
73
|
+
return [];
|
|
74
|
+
const headings = new Set(headingTexts(markdown).map(norm));
|
|
75
|
+
return required.filter((name) => !headings.has(norm(name)));
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=rubric-sections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rubric-sections.js","sourceRo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AAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export interface SharedItem {
|
|
7
7
|
key: string;
|
|
8
|
-
kind: "share" | "review" | "ask";
|
|
8
|
+
kind: "share" | "review" | "ask" | "decide";
|
|
9
|
+
/** A "decide" ask: the draft whose proposed version waits on this person. */
|
|
10
|
+
draftId?: string;
|
|
9
11
|
ts: number;
|
|
10
12
|
senderId: string;
|
|
11
13
|
senderName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-rows.d.ts","sourceRoot":"","sources":["../../src/lib/shared-rows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-rows.d.ts","sourceRoot":"","sources":["../../src/lib/shared-rows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC5C,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;oCACoC;AACpC,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAExD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAYrD"}
|
package/dist/lib/shared-rows.js
CHANGED
|
@@ -21,6 +21,9 @@ export function sharedDetail(item) {
|
|
|
21
21
|
if (item.kind === "ask" && item.ask) {
|
|
22
22
|
return `${item.title} · asked: ${item.ask}`;
|
|
23
23
|
}
|
|
24
|
+
if (item.kind === "decide") {
|
|
25
|
+
return `${item.title} · asks you to decide${item.draftId ? ` · cnotes draft status ${item.draftId}` : ""}`;
|
|
26
|
+
}
|
|
24
27
|
return item.title;
|
|
25
28
|
}
|
|
26
29
|
//# sourceMappingURL=shared-rows.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-rows.js","sourceRoot":"","sources":["../../src/lib/shared-rows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"shared-rows.js","sourceRoot":"","sources":["../../src/lib/shared-rows.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH;oCACoC;AACpC,MAAM,UAAU,eAAe,CAAC,IAAgB;IAC9C,OAAO,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;AAClE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAgB;IAC3C,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC7D,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QACpC,OAAO,GAAG,IAAI,CAAC,KAAK,aAAa,IAAI,CAAC,GAAG,EAAE,CAAC;IAC9C,CAAC;IACD,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,GAAG,IAAI,CAAC,KAAK,wBAAwB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,0BAA0B,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC7G,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC;AACpB,CAAC"}
|
package/package.json
CHANGED
package/skills/cnotes/SKILL.md
CHANGED
|
@@ -251,13 +251,23 @@ cnotes notes create --notes '[
|
|
|
251
251
|
# (and `details.items` in --json mode), so you can fix the whole batch in one shot.
|
|
252
252
|
# Each .results[] item carries .type + .rubric — keep them when filtering JSON.
|
|
253
253
|
|
|
254
|
-
# THEN: grade what you just wrote and revise before ending the run.
|
|
255
|
-
#
|
|
256
|
-
#
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
#
|
|
254
|
+
# THEN: grade what you just wrote and revise before ending the run.
|
|
255
|
+
# You are the grader. Grading spends no credits. `cnotes quality` does not
|
|
256
|
+
# call a server model. It returns a gradeRequest on each ungraded note:
|
|
257
|
+
# task "grade_against_rubric", the type rubric, the note content, and the
|
|
258
|
+
# instruction "Grade this against the rubric". The create response's
|
|
259
|
+
# .selfCheck is this command. Read .items[].gradeRequest (it also sits on
|
|
260
|
+
# .gradeRequests). Do not drop it when you keep only the display id.
|
|
261
|
+
cnotes quality INSIGHT-12 PAINPOINT-4 --fail-below 4 --json
|
|
262
|
+
# Exit 3 until you record a grade. Then:
|
|
263
|
+
cnotes quality record INSIGHT-12 --graded-version 4 --level 3 --criteria '[{"criterion":"Evidence","reason":"Grounded in two tickets."}]' --feedback "The pattern is named." --next-step "Say what would falsify it."
|
|
264
|
+
cnotes quality --canvas CANVAS-60 --json
|
|
265
|
+
cnotes quality --all --limit 200 --no-grade
|
|
266
|
+
# Structural codes (free, no credits): missing_title, empty_body, bare_id,
|
|
267
|
+
# unknown_type, no_rubric, superseded, missing_section.
|
|
268
|
+
# missing_section fires only for headings named in a rubric line
|
|
269
|
+
# "Required sections: Problem; Options". A rubric without that line
|
|
270
|
+
# requires no headings.
|
|
261
271
|
|
|
262
272
|
# Update metadata only (not content — use versions for that)
|
|
263
273
|
# NOTE: --title is NOT available. Title is read-only, derived from the # h1 heading in version content.
|
|
@@ -641,8 +651,10 @@ cnotes shared --quiet # target refs only (CANVAS-12, ...)
|
|
|
641
651
|
|
|
642
652
|
A draft is a private workspace opened FROM the active one. Only the person who
|
|
643
653
|
opened it, and agents using their login, can see it. Nothing in it reaches the
|
|
644
|
-
shared workspace until
|
|
645
|
-
|
|
654
|
+
shared workspace until the person asked approves it: in the browser, or, for
|
|
655
|
+
a proposed version of a board, through their own agent (`cnotes draft accept`
|
|
656
|
+
under their key). The key that built a draft can never land it. You build the
|
|
657
|
+
draft; the person asked decides it.
|
|
646
658
|
|
|
647
659
|
Open a draft before you:
|
|
648
660
|
- rework notes other people read (a guide, a decision others cite);
|
|
@@ -697,16 +709,32 @@ The loop:
|
|
|
697
709
|
conflict with the live board (a card changed on both sides; make your copy
|
|
698
710
|
match the live board's value to clear it), and how many cards changed on
|
|
699
711
|
the live board since you branched.
|
|
700
|
-
4. **Ask, then stop.** `cnotes draft ask --reviewer
|
|
701
|
-
person who decides (an editor of the shared
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
712
|
+
4. **Ask, then stop.** On a branched board, `cnotes draft ask --reviewer
|
|
713
|
+
<their email>` names the person who decides (an editor of the shared
|
|
714
|
+
workspace, usually the board's owner). On a plain draft only `--reviewer me`
|
|
715
|
+
is accepted: the person whose login you use lands it, and naming anyone
|
|
716
|
+
else is refused because a draft is private to them. It prints the link they
|
|
717
|
+
open; post it, then stop. Never try to merge or approve what you built:
|
|
718
|
+
`cnotes draft merge` and `cnotes review complete --outcome approved` on
|
|
719
|
+
your own draft are refused, and pressing Accept or Approve through a
|
|
720
|
+
browser tool is not yours to do either.
|
|
706
721
|
5. **When they send it back,** `cnotes draft status` opens with their line
|
|
707
722
|
("Changes requested by <name>: ..."). Fix it in the draft, run status until
|
|
708
723
|
no check blocks, then `draft ask` again and stop.
|
|
709
724
|
|
|
725
|
+
**Deciding as someone's agent.** When the person whose login you use was
|
|
726
|
+
asked to decide a proposed version of their board, `cnotes shared` lists it
|
|
727
|
+
as `decide` with the draft id. Read it with `cnotes draft status <draftId>`
|
|
728
|
+
(V2 against the live board, each conflict, the checks) and the reworded
|
|
729
|
+
notes with `cnotes draft edits --draft <draftId> --note <NOTE-n>`. Then
|
|
730
|
+
`cnotes draft accept <draftId> --note "why"` lands it as the board's next
|
|
731
|
+
version, as them, or `cnotes draft send-back <draftId> --note "what should
|
|
732
|
+
change"` returns one line to the proposer. Accept re-reads everything first
|
|
733
|
+
and refuses on a blocking check or a conflict. History shows the landing as
|
|
734
|
+
"approved by <them>, through their agent", and Undo stays theirs in the
|
|
735
|
+
browser. Decide only when the person told you how; when unsure, say what you
|
|
736
|
+
read and let them click.
|
|
737
|
+
|
|
710
738
|
What to rely on:
|
|
711
739
|
- **One line says who it waits on.** `draft status`, `draft checkout` and
|
|
712
740
|
`workspace current` print it: nobody asked yet, the changes a person asked
|
|
@@ -1051,7 +1079,7 @@ For any canvas you only *added to* (you already hold its id, so you didn't re-`g
|
|
|
1051
1079
|
|
|
1052
1080
|
### Note Types
|
|
1053
1081
|
- The `--type` parameter must reference an **existing supertag** in the workspace. Free-text type strings are rejected.
|
|
1054
|
-
- **Pick the type, then read its rubric, then write to it — in that order.** Each type carries a `validationPrompt` (its quality rubric: what a good instance contains). Once you know the type, run `cnotes types show <Type>` (or read `typeRubrics` from `cnotes operations begin --json` / `validationPrompt` from `cnotes types list --json`) and author to that rubric so the note lands well-formed
|
|
1082
|
+
- **Pick the type, then read its rubric, then write to it — in that order.** Each type carries a `validationPrompt` (its quality rubric: what a good instance contains). Once you know the type, run `cnotes types show <Type>` (or read `typeRubrics` from `cnotes operations begin --json` / `validationPrompt` from `cnotes types list --json`) and author to that rubric so the note lands well-formed. Example: a Decision needs the alternatives weighed, the rationale, and a revisit trigger, and it cites the cards it depends on (see [Decisions](#decisions)). `cnotes notes create --json` also puts the rubric on **each** `.results[]` item (`type` + `rubric`) and as a top-level `rubrics` array. Do not cut the output down to only `displayId` until you have checked `.results[].rubric`. After the write, you grade: `cnotes quality` hands back `gradeRequest` (rubric + content + "Grade this against the rubric") and spends no credits. Record the grade with `cnotes quality record`. A Decision rubric that declares `Required sections:` fails the free structural check until those `##` headings are present.
|
|
1055
1083
|
- If the type you need doesn't exist, create it first: `cnotes types create "MyType" --display-name "My Type"`
|
|
1056
1084
|
- Type names are **case-sensitive** and use PascalCase (e.g., `Update`, `PainPoint`, `Meeting`).
|
|
1057
1085
|
- The display ID prefix is **auto-derived** from the display name: spaces become hyphens, all uppercase (e.g., display name "Pain Point" → prefix `PAIN-POINT`, display name "Idea" → prefix `IDEA`).
|
|
@@ -1252,8 +1280,16 @@ cnotes canvas add-text <canvasId> --content '# Q1' --x 0 --y 0
|
|
|
1252
1280
|
cnotes canvas place <canvasId> --spec /tmp/q1.json
|
|
1253
1281
|
cnotes canvas add-edge <canvasId> --source <a> --target <b> --label "depends on"
|
|
1254
1282
|
|
|
1255
|
-
# 3. Self-check the notes you wrote
|
|
1256
|
-
cnotes quality
|
|
1283
|
+
# 3. Self-check the notes you wrote. You grade them. This spends no credits.
|
|
1284
|
+
# `cnotes quality --json` returns gradeRequest on each ungraded item:
|
|
1285
|
+
# the rubric, the note content, and "Grade this against the rubric".
|
|
1286
|
+
# Place the note on the ladder (1 Fragment, 2 Taking shape, 3 One move
|
|
1287
|
+
# from strong, 4 Strong). Write a reason for every criterion. Record it.
|
|
1288
|
+
# gradedBy becomes the open run id (this operation), or your agent name
|
|
1289
|
+
# when no run is open. Then run quality again. Exit 3 means revise with
|
|
1290
|
+
# versions create, record a new grade, and check once more.
|
|
1291
|
+
cnotes quality INSIGHT-12 --fail-below 4 --json
|
|
1292
|
+
cnotes quality record INSIGHT-12 --graded-version 4 --level 3 --criteria '[{"criterion":"Evidence","reason":"Grounded in two tickets."}]' --feedback "The pattern is named." --next-step "Say what would falsify it."
|
|
1257
1293
|
|
|
1258
1294
|
# 4. Close the run when done.
|
|
1259
1295
|
cnotes operations end
|