@mnemonik/shared 6.11.1 → 6.12.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAUH;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsGG;AAUH;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAa3C;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,2uDAAuB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAuB,CAAC"}
|
package/dist/instructions.js
CHANGED
|
@@ -118,9 +118,15 @@ Project work items and pending tasks live in mnemonik.tasks, not the host TaskLi
|
|
|
118
118
|
* tsc resolution found it).
|
|
119
119
|
*/
|
|
120
120
|
export function getMcpInstructions() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
// Bind through globalThis so this package compiles without `@types/node`.
|
|
122
|
+
// Keep the literal `process.env.MNEMONIK_INSTRUCTIONS_ENABLED` form so the
|
|
123
|
+
// env_vars authority (process.env.NAME) can discover the read.
|
|
124
|
+
const process = globalThis
|
|
125
|
+
.process;
|
|
126
|
+
if (!process?.env) {
|
|
127
|
+
return INSTRUCTIONS_CONTENT;
|
|
128
|
+
}
|
|
129
|
+
if (process.env.MNEMONIK_INSTRUCTIONS_ENABLED === 'false') {
|
|
124
130
|
return '';
|
|
125
131
|
}
|
|
126
132
|
return INSTRUCTIONS_CONTENT;
|
package/dist/instructions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,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
|
@@ -120,9 +120,15 @@ Project work items and pending tasks live in mnemonik.tasks, not the host TaskLi
|
|
|
120
120
|
* tsc resolution found it).
|
|
121
121
|
*/
|
|
122
122
|
export function getMcpInstructions(): string {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
// Bind through globalThis so this package compiles without `@types/node`.
|
|
124
|
+
// Keep the literal `process.env.MNEMONIK_INSTRUCTIONS_ENABLED` form so the
|
|
125
|
+
// env_vars authority (process.env.NAME) can discover the read.
|
|
126
|
+
const process = (globalThis as { process?: { env?: Record<string, string | undefined> } })
|
|
127
|
+
.process;
|
|
128
|
+
if (!process?.env) {
|
|
129
|
+
return INSTRUCTIONS_CONTENT;
|
|
130
|
+
}
|
|
131
|
+
if (process.env.MNEMONIK_INSTRUCTIONS_ENABLED === 'false') {
|
|
126
132
|
return '';
|
|
127
133
|
}
|
|
128
134
|
return INSTRUCTIONS_CONTENT;
|