mnotes-cli 1.10.1 → 1.11.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.
|
@@ -27,6 +27,38 @@ function generateClaudeCodeTemplate(opts) {
|
|
|
27
27
|
7. **READ schema before editing.** Before creating or updating notes, call \`search_notes\` for \`type:config\` notes. Follow their conventions. If none exist, offer to create a starter schema note.
|
|
28
28
|
8. **EVERY note must link.** Outbound \`[[wikilinks]]\` are mandatory — an orphan note is invisible.
|
|
29
29
|
|
|
30
|
+
## Non-Negotiable Checklist
|
|
31
|
+
|
|
32
|
+
These are not suggestions. Skip any step and the wiki degrades.
|
|
33
|
+
|
|
34
|
+
### Session Start (before ANY work)
|
|
35
|
+
- [ ] Call \`project_context_load\` with workspaceId "${opts.workspaceId}"
|
|
36
|
+
- [ ] Call \`recall_knowledge\` for the user's topic — past you already figured things out
|
|
37
|
+
- [ ] Call \`search_notes\` for related wiki pages
|
|
38
|
+
- [ ] If the graph is empty, call \`populate_graph\` (idempotent)
|
|
39
|
+
- [ ] Read any \`type:config\` schema notes before editing the wiki
|
|
40
|
+
|
|
41
|
+
Do not skip this. Do not say "I'll check later." Do not assume you know what's in the wiki.
|
|
42
|
+
|
|
43
|
+
### During Work (every time you learn something)
|
|
44
|
+
- [ ] Non-obvious discovery? → \`knowledge_store\` immediately, do not batch
|
|
45
|
+
- [ ] User drops a URL/paste/file? → run the **ingest loop** (below), not a single note dump
|
|
46
|
+
- [ ] Made an architecture or design decision? → store with key \`arch/{component}\`
|
|
47
|
+
- [ ] Fixed a bug? → store with key \`bug/{id}\`, include root cause
|
|
48
|
+
- [ ] Found a gotcha or footgun? → store with key \`gotcha/{description}\`
|
|
49
|
+
- [ ] User corrected you or clarified a requirement? → store it
|
|
50
|
+
|
|
51
|
+
### What NOT to Store
|
|
52
|
+
- Trivial changes (typo fixes, formatting)
|
|
53
|
+
- Information obvious from reading the code
|
|
54
|
+
- Duplicates — call \`recall_knowledge\` first to check
|
|
55
|
+
|
|
56
|
+
### Session End (before finishing)
|
|
57
|
+
- [ ] Call \`session_log\` with summary, decisions made, and follow-up actions
|
|
58
|
+
- [ ] If you did meaningful work and didn't store anything yet — you forgot. Go back and store it.
|
|
59
|
+
|
|
60
|
+
If you think "this isn't worth saving" — save it anyway. Future you has no context.
|
|
61
|
+
|
|
30
62
|
## The Ingest Loop
|
|
31
63
|
|
|
32
64
|
When the user supplies a source (URL, paste, file):
|
package/dist/templates/codex.js
CHANGED
|
@@ -18,6 +18,32 @@ You are the author and maintainer of a living wiki. Raw sources are immutable in
|
|
|
18
18
|
- If the graph is empty, call \`populate_graph\` (idempotent).
|
|
19
19
|
- Read any notes tagged \`type:config\` before editing.
|
|
20
20
|
|
|
21
|
+
### Non-Negotiable Checklist
|
|
22
|
+
|
|
23
|
+
These are not suggestions. Skip any step and the wiki degrades.
|
|
24
|
+
|
|
25
|
+
**Session Start (before ANY work):**
|
|
26
|
+
- [ ] \`project_context_load\` with workspaceId "${opts.workspaceId}"
|
|
27
|
+
- [ ] \`recall_knowledge\` for the user's topic
|
|
28
|
+
- [ ] \`search_notes\` for related pages
|
|
29
|
+
- [ ] \`populate_graph\` if graph is empty
|
|
30
|
+
- [ ] Read \`type:config\` schema notes before editing
|
|
31
|
+
|
|
32
|
+
Do not skip this. Do not assume you know what's in the wiki.
|
|
33
|
+
|
|
34
|
+
**During Work (every time you learn something):**
|
|
35
|
+
- [ ] Non-obvious discovery → \`knowledge_store\` immediately
|
|
36
|
+
- [ ] Architecture/design decision → \`arch/{component}\`
|
|
37
|
+
- [ ] Bug fix → \`bug/{id}\` with root cause
|
|
38
|
+
- [ ] Gotcha/footgun → \`gotcha/{description}\`
|
|
39
|
+
- [ ] User correction → store it
|
|
40
|
+
|
|
41
|
+
**What NOT to store:** trivial changes, info obvious from code, duplicates (check \`recall_knowledge\` first).
|
|
42
|
+
|
|
43
|
+
**Session End:**
|
|
44
|
+
- [ ] \`session_log\` with summary, decisions, follow-ups
|
|
45
|
+
- [ ] If you did meaningful work and stored nothing — go back and store it
|
|
46
|
+
|
|
21
47
|
### During Work
|
|
22
48
|
- Recall before researching: \`recall_knowledge\`, \`search_notes\`.
|
|
23
49
|
- Store discoveries via \`knowledge_store\` (key: \`<category>/<name>\`, tags: [category]).
|
|
@@ -10,6 +10,28 @@ function generateOpenClawTemplate(opts) {
|
|
|
10
10
|
|
|
11
11
|
You are the author of a living wiki. Notes are interlinked with \`[[wikilinks]]\`. Sources are immutable; your writing is the wiki.
|
|
12
12
|
|
|
13
|
+
## Non-Negotiable Checklist
|
|
14
|
+
|
|
15
|
+
Skip any step and the wiki degrades.
|
|
16
|
+
|
|
17
|
+
**Session Start (before ANY work):**
|
|
18
|
+
- [ ] \`recall_knowledge\` for the user's topic
|
|
19
|
+
- [ ] \`search_notes\` for related pages
|
|
20
|
+
- [ ] \`populate_graph\` if graph is empty
|
|
21
|
+
|
|
22
|
+
Do not skip this. Do not assume you know what's in the wiki.
|
|
23
|
+
|
|
24
|
+
**During Work:**
|
|
25
|
+
- [ ] Non-obvious discovery → \`knowledge_store\` immediately
|
|
26
|
+
- [ ] Decision made → \`decision/{topic}\`
|
|
27
|
+
- [ ] Bug fixed → \`bug/{id}\` with root cause
|
|
28
|
+
- [ ] User correction → store it
|
|
29
|
+
|
|
30
|
+
**What NOT to store:** trivial changes, info obvious from code, duplicates.
|
|
31
|
+
|
|
32
|
+
**Session End:**
|
|
33
|
+
- [ ] If you did meaningful work and stored nothing — go back and store it
|
|
34
|
+
|
|
13
35
|
## Core Loops
|
|
14
36
|
|
|
15
37
|
**Ingest** — when given a source (URL/paste): find 3+ related notes via \`recall_knowledge\`, update or create, link them with \`[[wikilinks]]\`, tag each with \`source/<slug>\`.
|