@mnemonik/shared 6.17.0 → 6.18.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/dist/usageGuide.d.ts +4 -4
- package/dist/usageGuide.d.ts.map +1 -1
- package/dist/usageGuide.js +9 -7
- package/dist/usageGuide.js.map +1 -1
- package/package.json +1 -1
- package/src/usageGuide.ts +9 -7
package/dist/usageGuide.d.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for the usage guide.
|
|
5
5
|
* Shared usage guide content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-07-17 - Doc-drift
|
|
9
|
-
*
|
|
7
|
+
* Version: 2.84
|
|
8
|
+
* Updated: 2026-07-17 - Doc-drift continuous disposition: every finding ends
|
|
9
|
+
* in an edit, evidenced verdict, or needs-review route.
|
|
10
10
|
*
|
|
11
11
|
* This guide focuses on HOW to use Mnemonik effectively, not WHAT tools exist.
|
|
12
12
|
* Tool schemas already tell agents what's available - they need the workflow.
|
|
13
13
|
*/
|
|
14
|
-
export declare const USAGE_GUIDE = "# Mnemonik Workflow Guide (v2.
|
|
14
|
+
export declare const USAGE_GUIDE = "# Mnemonik Workflow Guide (v2.84)\n\n## Workflow\n\nsession_bootstrap \u2192 memory_search \u2192 file_context \u2192 [work] \u2192 memory_add \u2192 memory_state\n\n## Tool Selection by Stage\n\n### Session start\n- session_bootstrap: loads context, policies, pending tasks (call once, first thing)\n- memory_search: search by task domain; set workflowContext (feature_implementation, debugging, exploration, policy_review)\n- projects: resolve project IDs if context unclear\n- policy: review safety rules\n\n### Before editing files\n- file_context: fetch memories for the file \u2014 call for EVERY file you edit\n- memory_search: second search scoped to file/module if needed\n- mnemonik.docs({ action: 'links' }): check doc couplings for the file\n\n### During implementation\n- memory_get: retrieve specific memory by id\n- memory_update: refine memory created this session\n- memory_info: query history, provenance, confidence breakdown, links, graph\n- assist: get tool guidance if uncertain\n\n### Documentation drift\n- Drift is drift: every finding returned by mnemonik.docs({ action: 'drift' }) is normal development work, including prose that requires agent reasoning. Queue size is never a reason to defer or dismiss it.\n- Start with mnemonik.docs({ action: 'drift', summaryOnly: true }) for the document inventory, choose a document, then use its exact retrieve call for a bounded work packet.\n- Each packet resolves the current Markdown heading range and current code locations from stable heading/symbol/snippet identities. Use those current locations; line numbers are display metadata and may move.\n- Work every finding in packet order. Prose versus code is not a scope distinction; it only changes which project evidence is relevant.\n- Fix update_doc/regenerate_doc findings in the document. For settled verify_and_report findings, submit mnemonik.docs({ action: 'verdicts', items: [...] }) with an independent cited evidence string for every item. If available evidence cannot settle a claim, call mnemonik.docs({ action: 'flag_for_review', findingId, evidence }) and continue.\n- Absence of repository evidence is not refutation. Claims about human intent, plans, positioning, or external facts require affirmative contradictory evidence to refute; otherwise flag them for review and continue.\n- Follow each document's retrieveMore call and the inventory cursor until complete. remainingFindings > 0 also means the task is not complete: continue immediately. Do not sample the queue, design a separate execution strategy, ask the user to triage routine uncertainty, suppress, or down-rank obligations because the queue is large.\n\n### After significant work\n- memory_add: save decisions, outcomes, patterns, bug root causes\n- memory_state: reinforce (memory helped), supersede (replace outdated), deprecate, penalize, dispute\n- tasks: mark tasks in progress or complete\n- mnemonik.docs({ action: 'status' }): view doc-truth health (legacy coupling counts are diagnostic only \u2014 do not act on them as drift)\n\n### Diagnostics\n- doctor: when tool calls fail or behavior is inconsistent\n- scanner: refresh embeddings, trigger scans, check drift\n\n## Skip conditions\n\nSkip memory tools for: formatting-only edits, trivial one-line changes, mechanical refactors, git operations, running tests.\n\n## Completion gate\n\nNever tell the user significant work is done without calling memory_add first in the same response. Changes made + responding next = completion. \"Progress updates\" count.\n\n## Memory search tips\n\n- Query should include task intent + key entities\n- Set workflowContext when you know the phase\n- Use currentFile to boost file-linked memories\n- Use filterOnly:true only for narrow filters (no embedding, requires >=1 filter)\n\n## Proactive heuristics\n\n- Long sessions: re-run memory_search after switching topics\n- Conflicting info: use memory_state to supersede/dispute\n- High-impact changes: save memory immediately after verification\n- Act on every docTruthFindings/_docDrift obligation: edit update_doc/regenerate_doc findings, submit supported verify_and_report verdicts, or flag an evidenced uncertainty for review and continue. linkedDocs and stale-coupling counts alone remain legacy diagnostics\n\n## Anti-fade (every ~10 tool calls)\n\nCheck: (1) memory_search before work? (2) file_context before edit? (3) memory_add after completing? No session_bootstrap? Call it now.\n";
|
|
15
15
|
//# sourceMappingURL=usageGuide.d.ts.map
|
package/dist/usageGuide.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usageGuide.d.ts","sourceRoot":"","sources":["../src/usageGuide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"usageGuide.d.ts","sourceRoot":"","sources":["../src/usageGuide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,WAAW,w2IAqEvB,CAAC"}
|
package/dist/usageGuide.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for the usage guide.
|
|
5
5
|
* Shared usage guide content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-07-17 - Doc-drift
|
|
9
|
-
*
|
|
7
|
+
* Version: 2.84
|
|
8
|
+
* Updated: 2026-07-17 - Doc-drift continuous disposition: every finding ends
|
|
9
|
+
* in an edit, evidenced verdict, or needs-review route.
|
|
10
10
|
*
|
|
11
11
|
* This guide focuses on HOW to use Mnemonik effectively, not WHAT tools exist.
|
|
12
12
|
* Tool schemas already tell agents what's available - they need the workflow.
|
|
13
13
|
*/
|
|
14
|
-
export const USAGE_GUIDE = `# Mnemonik Workflow Guide (v2.
|
|
14
|
+
export const USAGE_GUIDE = `# Mnemonik Workflow Guide (v2.84)
|
|
15
15
|
|
|
16
16
|
## Workflow
|
|
17
17
|
|
|
@@ -40,8 +40,10 @@ session_bootstrap → memory_search → file_context → [work] → memory_add
|
|
|
40
40
|
- Drift is drift: every finding returned by mnemonik.docs({ action: 'drift' }) is normal development work, including prose that requires agent reasoning. Queue size is never a reason to defer or dismiss it.
|
|
41
41
|
- Start with mnemonik.docs({ action: 'drift', summaryOnly: true }) for the document inventory, choose a document, then use its exact retrieve call for a bounded work packet.
|
|
42
42
|
- Each packet resolves the current Markdown heading range and current code locations from stable heading/symbol/snippet identities. Use those current locations; line numbers are display metadata and may move.
|
|
43
|
-
-
|
|
44
|
-
-
|
|
43
|
+
- Work every finding in packet order. Prose versus code is not a scope distinction; it only changes which project evidence is relevant.
|
|
44
|
+
- Fix update_doc/regenerate_doc findings in the document. For settled verify_and_report findings, submit mnemonik.docs({ action: 'verdicts', items: [...] }) with an independent cited evidence string for every item. If available evidence cannot settle a claim, call mnemonik.docs({ action: 'flag_for_review', findingId, evidence }) and continue.
|
|
45
|
+
- Absence of repository evidence is not refutation. Claims about human intent, plans, positioning, or external facts require affirmative contradictory evidence to refute; otherwise flag them for review and continue.
|
|
46
|
+
- Follow each document's retrieveMore call and the inventory cursor until complete. remainingFindings > 0 also means the task is not complete: continue immediately. Do not sample the queue, design a separate execution strategy, ask the user to triage routine uncertainty, suppress, or down-rank obligations because the queue is large.
|
|
45
47
|
|
|
46
48
|
### After significant work
|
|
47
49
|
- memory_add: save decisions, outcomes, patterns, bug root causes
|
|
@@ -73,7 +75,7 @@ Never tell the user significant work is done without calling memory_add first in
|
|
|
73
75
|
- Long sessions: re-run memory_search after switching topics
|
|
74
76
|
- Conflicting info: use memory_state to supersede/dispute
|
|
75
77
|
- High-impact changes: save memory immediately after verification
|
|
76
|
-
- Act on every docTruthFindings/_docDrift obligation: edit update_doc/regenerate_doc findings
|
|
78
|
+
- Act on every docTruthFindings/_docDrift obligation: edit update_doc/regenerate_doc findings, submit supported verify_and_report verdicts, or flag an evidenced uncertainty for review and continue. linkedDocs and stale-coupling counts alone remain legacy diagnostics
|
|
77
79
|
|
|
78
80
|
## Anti-fade (every ~10 tool calls)
|
|
79
81
|
|
package/dist/usageGuide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usageGuide.js","sourceRoot":"","sources":["../src/usageGuide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"usageGuide.js","sourceRoot":"","sources":["../src/usageGuide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqE1B,CAAC"}
|
package/package.json
CHANGED
package/src/usageGuide.ts
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for the usage guide.
|
|
5
5
|
* Shared usage guide content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-07-17 - Doc-drift
|
|
9
|
-
*
|
|
7
|
+
* Version: 2.84
|
|
8
|
+
* Updated: 2026-07-17 - Doc-drift continuous disposition: every finding ends
|
|
9
|
+
* in an edit, evidenced verdict, or needs-review route.
|
|
10
10
|
*
|
|
11
11
|
* This guide focuses on HOW to use Mnemonik effectively, not WHAT tools exist.
|
|
12
12
|
* Tool schemas already tell agents what's available - they need the workflow.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
export const USAGE_GUIDE = `# Mnemonik Workflow Guide (v2.
|
|
15
|
+
export const USAGE_GUIDE = `# Mnemonik Workflow Guide (v2.84)
|
|
16
16
|
|
|
17
17
|
## Workflow
|
|
18
18
|
|
|
@@ -41,8 +41,10 @@ session_bootstrap → memory_search → file_context → [work] → memory_add
|
|
|
41
41
|
- Drift is drift: every finding returned by mnemonik.docs({ action: 'drift' }) is normal development work, including prose that requires agent reasoning. Queue size is never a reason to defer or dismiss it.
|
|
42
42
|
- Start with mnemonik.docs({ action: 'drift', summaryOnly: true }) for the document inventory, choose a document, then use its exact retrieve call for a bounded work packet.
|
|
43
43
|
- Each packet resolves the current Markdown heading range and current code locations from stable heading/symbol/snippet identities. Use those current locations; line numbers are display metadata and may move.
|
|
44
|
-
-
|
|
45
|
-
-
|
|
44
|
+
- Work every finding in packet order. Prose versus code is not a scope distinction; it only changes which project evidence is relevant.
|
|
45
|
+
- Fix update_doc/regenerate_doc findings in the document. For settled verify_and_report findings, submit mnemonik.docs({ action: 'verdicts', items: [...] }) with an independent cited evidence string for every item. If available evidence cannot settle a claim, call mnemonik.docs({ action: 'flag_for_review', findingId, evidence }) and continue.
|
|
46
|
+
- Absence of repository evidence is not refutation. Claims about human intent, plans, positioning, or external facts require affirmative contradictory evidence to refute; otherwise flag them for review and continue.
|
|
47
|
+
- Follow each document's retrieveMore call and the inventory cursor until complete. remainingFindings > 0 also means the task is not complete: continue immediately. Do not sample the queue, design a separate execution strategy, ask the user to triage routine uncertainty, suppress, or down-rank obligations because the queue is large.
|
|
46
48
|
|
|
47
49
|
### After significant work
|
|
48
50
|
- memory_add: save decisions, outcomes, patterns, bug root causes
|
|
@@ -74,7 +76,7 @@ Never tell the user significant work is done without calling memory_add first in
|
|
|
74
76
|
- Long sessions: re-run memory_search after switching topics
|
|
75
77
|
- Conflicting info: use memory_state to supersede/dispute
|
|
76
78
|
- High-impact changes: save memory immediately after verification
|
|
77
|
-
- Act on every docTruthFindings/_docDrift obligation: edit update_doc/regenerate_doc findings
|
|
79
|
+
- Act on every docTruthFindings/_docDrift obligation: edit update_doc/regenerate_doc findings, submit supported verify_and_report verdicts, or flag an evidenced uncertainty for review and continue. linkedDocs and stale-coupling counts alone remain legacy diagnostics
|
|
78
80
|
|
|
79
81
|
## Anti-fade (every ~10 tool calls)
|
|
80
82
|
|