@mnemonik/shared 6.8.4 → 6.8.5
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
CHANGED
|
@@ -4,8 +4,13 @@
|
|
|
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-07-
|
|
7
|
+
* Version: 2.105
|
|
8
|
+
* Updated: 2026-07-14
|
|
9
|
+
*
|
|
10
|
+
* v2.105 — Bootstrap's agent-facing label is generic project context. Use the
|
|
11
|
+
* canonical text body's stable `PROJECT_CONTEXT schemaVersion=` marker
|
|
12
|
+
* for the self-scoping check instead of teaching agents to call the
|
|
13
|
+
* user's project "Mnemonik".
|
|
9
14
|
*
|
|
10
15
|
* v2.104 — Disambiguated persistent project task memories from Claude Code's
|
|
11
16
|
* host-local TaskList and made completeness proactive. A request for a
|
|
@@ -110,7 +115,7 @@ export declare function getMcpInstructions(): string;
|
|
|
110
115
|
* Raw instructions content (always returns the content, ignores env var).
|
|
111
116
|
* Use getMcpInstructions() for production code.
|
|
112
117
|
*/
|
|
113
|
-
export declare const MCP_INSTRUCTIONS_RAW = "If your context does not contain a block beginning \"
|
|
118
|
+
export declare const MCP_INSTRUCTIONS_RAW = "If your context does not contain a block beginning \"PROJECT_CONTEXT schemaVersion=\", call session_bootstrap before replying or taking any other action \u2014 e.g. session_bootstrap({ cwd: \"/absolute/path/to/project\" }), where cwd is the real absolute path to the project root you are working in (required; the call fails without it \u2014 substitute your actual path, not the example). It loads this project's prior decisions, open tasks, and policies. If that block is already present, do not call session_bootstrap; the context is already loaded.\n\nLarge retrievals arrive as complete hydrated records plus exact pointer rows and extent/facet counts. Select relevant IDs and hydrate exact originals with mnemonik.memory_get({ memoryIds: [...], includeRaw: true }); refine the query or continue the index cursor when the visible index is incomplete\u2014do not page full bodies merely to discover what exists.\n\nProject work items and pending tasks live in mnemonik.tasks, not the host TaskList. A pending-task list requires mnemonik.tasks({ action:\"list\", status:\"pending\", ... }); never omit action:\"list\". If the request says pending, status:\"pending\" is required\u2014an unfiltered list is wrong. For in-progress, completed, or all-status requests, use the matching status or no status filter. Each list page is { hydrated, index, extent, cursor }, not { tasks }. When the user requests a complete or all-results list, collect [...page.hydrated, ...page.index] in one memory_tools program, repeat the same inner query with each returned cursor until cursor is null, then return compact id/title/status rows. Pointer rows already contain title; use title: row.title ?? row.text without hydrating bodies. Do not stop at the first retrieval envelope.";
|
|
114
119
|
/**
|
|
115
120
|
* Default export for convenience.
|
|
116
121
|
* 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAUH;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAO3C;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,2uDAAuB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAuB,CAAC"}
|
package/dist/instructions.js
CHANGED
|
@@ -4,8 +4,13 @@
|
|
|
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-07-
|
|
7
|
+
* Version: 2.105
|
|
8
|
+
* Updated: 2026-07-14
|
|
9
|
+
*
|
|
10
|
+
* v2.105 — Bootstrap's agent-facing label is generic project context. Use the
|
|
11
|
+
* canonical text body's stable `PROJECT_CONTEXT schemaVersion=` marker
|
|
12
|
+
* for the self-scoping check instead of teaching agents to call the
|
|
13
|
+
* user's project "Mnemonik".
|
|
9
14
|
*
|
|
10
15
|
* v2.104 — Disambiguated persistent project task memories from Claude Code's
|
|
11
16
|
* host-local TaskList and made completeness proactive. A request for a
|
|
@@ -98,7 +103,7 @@
|
|
|
98
103
|
*/
|
|
99
104
|
// Dynamic response orchestration remains authoritative. The second paragraph is the
|
|
100
105
|
// Config-A interpretation fallback when no hook/proxy guidance channel is available.
|
|
101
|
-
const INSTRUCTIONS_CONTENT = `If your context does not contain a block beginning "
|
|
106
|
+
const INSTRUCTIONS_CONTENT = `If your context does not contain a block beginning "PROJECT_CONTEXT schemaVersion=", call session_bootstrap before replying or taking any other action — e.g. session_bootstrap({ cwd: "/absolute/path/to/project" }), where cwd is the real absolute path to the project root you are working in (required; the call fails without it — substitute your actual path, not the example). It loads this project's prior decisions, open tasks, and policies. If that block is already present, do not call session_bootstrap; the context is already loaded.
|
|
102
107
|
|
|
103
108
|
Large retrievals arrive as complete hydrated records plus exact pointer rows and extent/facet counts. Select relevant IDs and hydrate exact originals with mnemonik.memory_get({ memoryIds: [...], includeRaw: true }); refine the query or continue the index cursor when the visible index is incomplete—do not page full bodies merely to discover what exists.
|
|
104
109
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAEH,oFAAoF;AACpF,qFAAqF;AACrF,MAAM,oBAAoB,GAAG;;;;m0BAIsyB,CAAC;AAEp0B;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB;IAChC,MAAM,GAAG,GAAI,UAAyE,CAAC,OAAO;QAC5F,EAAE,GAAG,CAAC;IACR,IAAI,GAAG,EAAE,6BAA6B,KAAK,OAAO,EAAE,CAAC;QACnD,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,13 @@
|
|
|
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-07-
|
|
7
|
+
* Version: 2.105
|
|
8
|
+
* Updated: 2026-07-14
|
|
9
|
+
*
|
|
10
|
+
* v2.105 — Bootstrap's agent-facing label is generic project context. Use the
|
|
11
|
+
* canonical text body's stable `PROJECT_CONTEXT schemaVersion=` marker
|
|
12
|
+
* for the self-scoping check instead of teaching agents to call the
|
|
13
|
+
* user's project "Mnemonik".
|
|
9
14
|
*
|
|
10
15
|
* v2.104 — Disambiguated persistent project task memories from Claude Code's
|
|
11
16
|
* host-local TaskList and made completeness proactive. A request for a
|
|
@@ -99,7 +104,7 @@
|
|
|
99
104
|
|
|
100
105
|
// Dynamic response orchestration remains authoritative. The second paragraph is the
|
|
101
106
|
// Config-A interpretation fallback when no hook/proxy guidance channel is available.
|
|
102
|
-
const INSTRUCTIONS_CONTENT = `If your context does not contain a block beginning "
|
|
107
|
+
const INSTRUCTIONS_CONTENT = `If your context does not contain a block beginning "PROJECT_CONTEXT schemaVersion=", call session_bootstrap before replying or taking any other action — e.g. session_bootstrap({ cwd: "/absolute/path/to/project" }), where cwd is the real absolute path to the project root you are working in (required; the call fails without it — substitute your actual path, not the example). It loads this project's prior decisions, open tasks, and policies. If that block is already present, do not call session_bootstrap; the context is already loaded.
|
|
103
108
|
|
|
104
109
|
Large retrievals arrive as complete hydrated records plus exact pointer rows and extent/facet counts. Select relevant IDs and hydrate exact originals with mnemonik.memory_get({ memoryIds: [...], includeRaw: true }); refine the query or continue the index cursor when the visible index is incomplete—do not page full bodies merely to discover what exists.
|
|
105
110
|
|