@mnemonik/shared 7.138.0 → 7.139.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/instructions.d.ts +10 -3
- package/dist/instructions.d.ts.map +1 -1
- package/dist/instructions.js +14 -5
- package/dist/instructions.js.map +1 -1
- package/package.json +1 -1
- package/src/instructions.ts +14 -5
package/dist/instructions.d.ts
CHANGED
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for MCP instructions.
|
|
5
5
|
* Shared instruction content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-
|
|
7
|
+
* Version: 2.113
|
|
8
|
+
* Updated: 2026-10-14
|
|
9
|
+
*
|
|
10
|
+
* v2.113 - Added the Studio boundary sentence (owner-approved wording): what the
|
|
11
|
+
* agent learns about the person belongs in Companion, what it learns
|
|
12
|
+
* about the project belongs here. Made room within the 2,048-character
|
|
13
|
+
* limit by dropping the tasks paragraph's restatement of the four page
|
|
14
|
+
* fields (the retrieval paragraph names them) and tightening the
|
|
15
|
+
* retrieval and memory_discover sentences.
|
|
9
16
|
*
|
|
10
17
|
* v2.112 - memory_add names a user's preference: agents were keeping stated
|
|
11
18
|
* preferences in the host's own memory files instead of Mnemonik.
|
|
@@ -160,7 +167,7 @@ export declare function getMcpInstructions(): string;
|
|
|
160
167
|
* Raw instructions content (always returns the content, ignores env var).
|
|
161
168
|
* Use getMcpInstructions() for production code.
|
|
162
169
|
*/
|
|
163
|
-
export declare const MCP_INSTRUCTIONS_RAW = "Mnemonik provides persistent project memory: decisions, rationale, tasks, and policies across sessions. If no block begins \"PROJECT_CONTEXT schemaVersion=\", session_bootstrap({ cwd }) loads project context when cwd is the real absolute path of the project root; a placeholder or relative path fails. With that block, context is loaded and no session_bootstrap call is needed. Code and docs show current artifacts, git shows changes, and memory carries the why; memory_search recalls rationale or intent, then Grep or Read verifies current source.\n\nmemory_discover supplies exact schemas and examples for unfamiliar
|
|
170
|
+
export declare const MCP_INSTRUCTIONS_RAW = "Mnemonik provides persistent project memory: decisions, rationale, tasks, and policies across sessions. If no block begins \"PROJECT_CONTEXT schemaVersion=\", session_bootstrap({ cwd }) loads project context when cwd is the real absolute path of the project root; a placeholder or relative path fails. With that block, context is loaded and no session_bootstrap call is needed. Code and docs show current artifacts, git shows changes, and memory carries the why; memory_search recalls rationale or intent, then Grep or Read verifies current source.\n\nWhat I learn about you belongs in Companion; what I learn about this project belongs here.\n\nmemory_discover supplies exact schemas and examples for unfamiliar methods; memory_tools runs their async JavaScript.\n\nRetrieval pages use hydrated for complete records, index for pointer rows, extent for totals, and cursor for continuation. Select relevant IDs before hydrating originals; a refined query or cursor reveals more without paging full bodies to discover what exists.\n\nProject work items live in tasks. A pending list requires action:\"list\" and status:\"pending\". A complete listing combines hydrated and index and follows cursor until null.\n\nWhich tool for what:\n- memory_get: hydrates exact originals by id.\n- memory_add: records an experience: a decision and why, what the user said, what you found.\n- memory_state: corrects wrong, outdated, or conflicting memory.\n- memory_info: explains confidence or origin when memory looks suspect.\n- memory_links: connects related decisions so they surface together.\n- assist: measures coverage when search results are thin or empty.\n- search_summaries: finds past work by topic or date across sessions.\n- policy: stores durable enforced rules or preferences, not memories.\n- tasks: creates follow-up work and closes completed work.\n- code_search: finds conceptual code when source wording differs.\n- memory_search: finds rationale, intent, decisions, and prior work.\n- memory_ingest: brings the project's docs and code comments into memory when asked.";
|
|
164
171
|
/**
|
|
165
172
|
* Default export for convenience.
|
|
166
173
|
* Note: This respects the MNEMONIK_INSTRUCTIONS_ENABLED env var.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AA4BH;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAa3C;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,+hEAAuB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAuB,CAAC"}
|
package/dist/instructions.js
CHANGED
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for MCP instructions.
|
|
5
5
|
* Shared instruction content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-
|
|
7
|
+
* Version: 2.113
|
|
8
|
+
* Updated: 2026-10-14
|
|
9
|
+
*
|
|
10
|
+
* v2.113 - Added the Studio boundary sentence (owner-approved wording): what the
|
|
11
|
+
* agent learns about the person belongs in Companion, what it learns
|
|
12
|
+
* about the project belongs here. Made room within the 2,048-character
|
|
13
|
+
* limit by dropping the tasks paragraph's restatement of the four page
|
|
14
|
+
* fields (the retrieval paragraph names them) and tightening the
|
|
15
|
+
* retrieval and memory_discover sentences.
|
|
9
16
|
*
|
|
10
17
|
* v2.112 - memory_add names a user's preference: agents were keeping stated
|
|
11
18
|
* preferences in the host's own memory files instead of Mnemonik.
|
|
@@ -150,11 +157,13 @@
|
|
|
150
157
|
// self-scoping when project context was already loaded through another channel.
|
|
151
158
|
const INSTRUCTIONS_CONTENT = `Mnemonik provides persistent project memory: decisions, rationale, tasks, and policies across sessions. If no block begins "PROJECT_CONTEXT schemaVersion=", session_bootstrap({ cwd }) loads project context when cwd is the real absolute path of the project root; a placeholder or relative path fails. With that block, context is loaded and no session_bootstrap call is needed. Code and docs show current artifacts, git shows changes, and memory carries the why; memory_search recalls rationale or intent, then Grep or Read verifies current source.
|
|
152
159
|
|
|
153
|
-
|
|
160
|
+
What I learn about you belongs in Companion; what I learn about this project belongs here.
|
|
161
|
+
|
|
162
|
+
memory_discover supplies exact schemas and examples for unfamiliar methods; memory_tools runs their async JavaScript.
|
|
154
163
|
|
|
155
|
-
Retrieval pages use hydrated for complete records, index for pointer rows, extent for totals, and cursor for continuation.
|
|
164
|
+
Retrieval pages use hydrated for complete records, index for pointer rows, extent for totals, and cursor for continuation. Select relevant IDs before hydrating originals; a refined query or cursor reveals more without paging full bodies to discover what exists.
|
|
156
165
|
|
|
157
|
-
Project work items live in tasks. A pending list requires action:"list" and status:"pending".
|
|
166
|
+
Project work items live in tasks. A pending list requires action:"list" and status:"pending". A complete listing combines hydrated and index and follows cursor until null.
|
|
158
167
|
|
|
159
168
|
Which tool for what:
|
|
160
169
|
- memory_get: hydrates exact originals by id.
|
package/dist/instructions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AAEH,mFAAmF;AACnF,gFAAgF;AAChF,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;qFAsBwD,CAAC;AAEtF;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB;IAChC,0EAA0E;IAC1E,2EAA2E;IAC3E,+DAA+D;IAC/D,MAAM,OAAO,GAAI,UAAyE;SACvF,OAAO,CAAC;IACX,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC;QAClB,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,6BAA6B,KAAK,OAAO,EAAE,CAAC;QAC1D,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,EAAE,CAAC"}
|
package/package.json
CHANGED
package/src/instructions.ts
CHANGED
|
@@ -4,8 +4,15 @@
|
|
|
4
4
|
* This is the SINGLE SOURCE OF TRUTH for MCP instructions.
|
|
5
5
|
* Shared instruction content imported by the server.
|
|
6
6
|
*
|
|
7
|
-
* Version: 2.
|
|
8
|
-
* Updated: 2026-
|
|
7
|
+
* Version: 2.113
|
|
8
|
+
* Updated: 2026-10-14
|
|
9
|
+
*
|
|
10
|
+
* v2.113 - Added the Studio boundary sentence (owner-approved wording): what the
|
|
11
|
+
* agent learns about the person belongs in Companion, what it learns
|
|
12
|
+
* about the project belongs here. Made room within the 2,048-character
|
|
13
|
+
* limit by dropping the tasks paragraph's restatement of the four page
|
|
14
|
+
* fields (the retrieval paragraph names them) and tightening the
|
|
15
|
+
* retrieval and memory_discover sentences.
|
|
9
16
|
*
|
|
10
17
|
* v2.112 - memory_add names a user's preference: agents were keeping stated
|
|
11
18
|
* preferences in the host's own memory files instead of Mnemonik.
|
|
@@ -151,11 +158,13 @@
|
|
|
151
158
|
// self-scoping when project context was already loaded through another channel.
|
|
152
159
|
const INSTRUCTIONS_CONTENT = `Mnemonik provides persistent project memory: decisions, rationale, tasks, and policies across sessions. If no block begins "PROJECT_CONTEXT schemaVersion=", session_bootstrap({ cwd }) loads project context when cwd is the real absolute path of the project root; a placeholder or relative path fails. With that block, context is loaded and no session_bootstrap call is needed. Code and docs show current artifacts, git shows changes, and memory carries the why; memory_search recalls rationale or intent, then Grep or Read verifies current source.
|
|
153
160
|
|
|
154
|
-
|
|
161
|
+
What I learn about you belongs in Companion; what I learn about this project belongs here.
|
|
162
|
+
|
|
163
|
+
memory_discover supplies exact schemas and examples for unfamiliar methods; memory_tools runs their async JavaScript.
|
|
155
164
|
|
|
156
|
-
Retrieval pages use hydrated for complete records, index for pointer rows, extent for totals, and cursor for continuation.
|
|
165
|
+
Retrieval pages use hydrated for complete records, index for pointer rows, extent for totals, and cursor for continuation. Select relevant IDs before hydrating originals; a refined query or cursor reveals more without paging full bodies to discover what exists.
|
|
157
166
|
|
|
158
|
-
Project work items live in tasks. A pending list requires action:"list" and status:"pending".
|
|
167
|
+
Project work items live in tasks. A pending list requires action:"list" and status:"pending". A complete listing combines hydrated and index and follows cursor until null.
|
|
159
168
|
|
|
160
169
|
Which tool for what:
|
|
161
170
|
- memory_get: hydrates exact originals by id.
|