@mnemonik/shared 7.97.1 → 7.98.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/ambientPointer.d.ts.map +1 -1
- package/dist/ambientPointer.js +2 -1
- package/dist/ambientPointer.js.map +1 -1
- package/dist/apiOrigin.d.ts +3 -0
- package/dist/apiOrigin.d.ts.map +1 -0
- package/dist/apiOrigin.js +5 -0
- package/dist/apiOrigin.js.map +1 -0
- package/dist/ast/astChunker.d.ts +12 -12
- package/dist/ast/astChunker.js +32 -32
- package/dist/ast/grammars.d.ts +9 -9
- package/dist/ast/grammars.js +15 -15
- package/dist/codeScanner.d.ts +56 -43
- package/dist/codeScanner.d.ts.map +1 -1
- package/dist/codeScanner.js +262 -143
- package/dist/codeScanner.js.map +1 -1
- package/dist/contextBudget.js +2 -2
- package/dist/contextBudget.js.map +1 -1
- package/dist/gitEditDetector.d.ts +6 -6
- package/dist/gitEditDetector.js +7 -7
- package/dist/hookRuntime.d.ts +35 -2
- package/dist/hookRuntime.d.ts.map +1 -1
- package/dist/hookRuntime.js +127 -33
- package/dist/hookRuntime.js.map +1 -1
- package/dist/hookTimeouts.d.ts +6 -6
- package/dist/hookTimeouts.js +6 -6
- package/dist/hostAdapter.d.ts +135 -0
- package/dist/hostAdapter.d.ts.map +1 -0
- package/dist/hostAdapter.js +323 -0
- package/dist/hostAdapter.js.map +1 -0
- package/dist/hostBinary.d.ts +29 -0
- package/dist/hostBinary.d.ts.map +1 -0
- package/dist/hostBinary.js +179 -0
- package/dist/hostBinary.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.ts +26 -26
- package/dist/instructions.js +26 -26
- package/dist/jitDeliveryAck.d.ts.map +1 -1
- package/dist/jitDeliveryAck.js +2 -0
- package/dist/jitDeliveryAck.js.map +1 -1
- package/dist/projectIdentityFile.d.ts +25 -0
- package/dist/projectIdentityFile.d.ts.map +1 -0
- package/dist/projectIdentityFile.js +87 -0
- package/dist/projectIdentityFile.js.map +1 -0
- package/dist/projectSetupHandoff.d.ts +24 -0
- package/dist/projectSetupHandoff.d.ts.map +1 -0
- package/dist/projectSetupHandoff.js +249 -0
- package/dist/projectSetupHandoff.js.map +1 -0
- package/dist/protectedPaths.d.ts +9 -0
- package/dist/protectedPaths.d.ts.map +1 -0
- package/dist/protectedPaths.js +66 -0
- package/dist/protectedPaths.js.map +1 -0
- package/dist/readiness.d.ts +143 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +304 -0
- package/dist/readiness.js.map +1 -0
- package/dist/repositoryFingerprint.d.ts +50 -0
- package/dist/repositoryFingerprint.d.ts.map +1 -0
- package/dist/repositoryFingerprint.js +160 -0
- package/dist/repositoryFingerprint.js.map +1 -0
- package/dist/repositoryRoot.d.ts +56 -0
- package/dist/repositoryRoot.d.ts.map +1 -0
- package/dist/repositoryRoot.js +226 -0
- package/dist/repositoryRoot.js.map +1 -0
- package/dist/runtimeReader.d.ts +102 -0
- package/dist/runtimeReader.d.ts.map +1 -0
- package/dist/runtimeReader.js +408 -0
- package/dist/runtimeReader.js.map +1 -0
- package/dist/runtimeSigners.d.ts +37 -0
- package/dist/runtimeSigners.d.ts.map +1 -0
- package/dist/runtimeSigners.js +507 -0
- package/dist/runtimeSigners.js.map +1 -0
- package/dist/scannerSupervisor.d.ts +35 -0
- package/dist/scannerSupervisor.d.ts.map +1 -0
- package/dist/scannerSupervisor.js +2 -0
- package/dist/scannerSupervisor.js.map +1 -0
- package/dist/secretPatterns.d.ts +9 -9
- package/dist/secretPatterns.d.ts.map +1 -1
- package/dist/secretPatterns.js +27 -25
- package/dist/secretPatterns.js.map +1 -1
- package/dist/testing/hostAdapterConformance.d.ts +17 -0
- package/dist/testing/hostAdapterConformance.d.ts.map +1 -0
- package/dist/testing/hostAdapterConformance.js +477 -0
- package/dist/testing/hostAdapterConformance.js.map +1 -0
- package/dist/usageGuide.d.ts +1 -1
- package/dist/usageGuide.d.ts.map +1 -1
- package/dist/usageGuide.js +4 -4
- package/package.json +7 -2
- package/queries/bash.tags.scm +1 -1
- package/queries/groovy.tags.scm +1 -1
- package/scripts/vendor-grammars.ts +13 -13
- package/src/ambientPointer.ts +2 -1
- package/src/apiOrigin.ts +4 -0
- package/src/ast/astChunker.ts +39 -39
- package/src/ast/grammars.ts +16 -16
- package/src/codeScanner.ts +274 -149
- package/src/contextBudget.ts +2 -2
- package/src/gitEditDetector.ts +7 -7
- package/src/hookRuntime.ts +162 -34
- package/src/hookTimeouts.ts +6 -6
- package/src/hostAdapter.ts +468 -0
- package/src/hostBinary.ts +205 -0
- package/src/index.ts +20 -0
- package/src/instructions.ts +26 -26
- package/src/jitDeliveryAck.ts +2 -0
- package/src/projectIdentityFile.ts +100 -0
- package/src/projectSetupHandoff.ts +275 -0
- package/src/protectedPaths.ts +88 -0
- package/src/readiness.ts +516 -0
- package/src/repositoryFingerprint.ts +199 -0
- package/src/repositoryRoot.ts +261 -0
- package/src/runtimeReader.ts +495 -0
- package/src/runtimeSigners.ts +577 -0
- package/src/scannerSupervisor.ts +26 -0
- package/src/secretPatterns.ts +27 -25
- package/src/testing/hostAdapterConformance.ts +538 -0
- package/src/usageGuide.ts +4 -4
- package/test-fixtures/identity/runner.d.mts +12 -0
- package/test-fixtures/identity/runner.mjs +282 -0
- package/tests/fixtures/repository-fingerprint-v1.golden.json +834 -0
- package/tests/projectIdentity.test.ts +56 -0
- package/tests/readiness.test.ts +158 -0
- package/tests/repositoryFingerprint.test.ts +26 -0
- package/tsconfig.test.json +9 -0
- package/wasm/bash.tags.scm +1 -1
- package/wasm/groovy.tags.scm +1 -1
- package/wasm/javascript.tags.scm +2 -2
- package/wasm/solidity.tags.scm +1 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { stat } from 'node:fs/promises';
|
|
2
|
+
import { join, win32 } from 'node:path';
|
|
3
|
+
import { homedir } from 'node:os';
|
|
4
|
+
/** Native locations shared by preflight discovery and verified host adapters. */
|
|
5
|
+
export function hostBinaryDescriptor(host, deps = {}) {
|
|
6
|
+
if (host === 'claude-code')
|
|
7
|
+
return {
|
|
8
|
+
binary: 'claude',
|
|
9
|
+
windowsBinary: {
|
|
10
|
+
locations: [
|
|
11
|
+
['APPDATA', 'npm/claude.cmd'],
|
|
12
|
+
['USERPROFILE', '.local/bin/claude.exe'],
|
|
13
|
+
],
|
|
14
|
+
extensions: ['.cmd', '.exe'],
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
if (host === 'codex')
|
|
18
|
+
return {
|
|
19
|
+
binary: 'codex',
|
|
20
|
+
desktopPaths: (deps.platform ?? process.platform) === 'darwin'
|
|
21
|
+
? [
|
|
22
|
+
'/Applications/ChatGPT.app/Contents/Resources/codex',
|
|
23
|
+
join(deps.env?.HOME ?? homedir(), 'Applications/ChatGPT.app/Contents/Resources/codex'),
|
|
24
|
+
]
|
|
25
|
+
: [],
|
|
26
|
+
windowsBinary: {
|
|
27
|
+
locations: [
|
|
28
|
+
['APPDATA', 'npm/codex.cmd'],
|
|
29
|
+
['LOCALAPPDATA', 'Programs/OpenAI/Codex/bin/codex.exe'],
|
|
30
|
+
],
|
|
31
|
+
extensions: ['.cmd', '.exe'],
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
binary: 'cursor',
|
|
36
|
+
desktopPaths: (deps.platform ?? process.platform) === 'darwin'
|
|
37
|
+
? ['/Applications/Cursor.app/Contents/Resources/app/bin/cursor']
|
|
38
|
+
: ['/usr/share/cursor/bin/cursor', '/opt/Cursor/resources/app/bin/cursor'],
|
|
39
|
+
windowsBinary: {
|
|
40
|
+
locations: [
|
|
41
|
+
['LOCALAPPDATA', 'Programs/cursor/resources/app/bin/cursor.cmd'],
|
|
42
|
+
['LOCALAPPDATA', 'Programs/cursor/Cursor.exe'],
|
|
43
|
+
],
|
|
44
|
+
extensions: ['.cmd', '.exe'],
|
|
45
|
+
productVersion: true,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export class HostBinaryNotFoundError extends Error {
|
|
50
|
+
searchedLocations;
|
|
51
|
+
constructor(searchedLocations) {
|
|
52
|
+
super('host_binary_not_found');
|
|
53
|
+
this.searchedLocations = searchedLocations;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/** cmd parses shell syntax even with execFile's shell:false. Only fixed, safe arguments.
|
|
57
|
+
* Parentheses are ordinary inside a quoted token, and a profile path may carry
|
|
58
|
+
* them (`C:\\Users\\Jane (Admin)\\...`). */
|
|
59
|
+
export function quoteHostArgument(value) {
|
|
60
|
+
if (/["%!?^&|<>\r\n\0]/.test(value))
|
|
61
|
+
throw new Error('unsafe_host_argument');
|
|
62
|
+
return `"${value.replace(/\\+$/, '$&$&')}"`;
|
|
63
|
+
}
|
|
64
|
+
export function createHostBinary(deps, name, windows, run, desktopPaths = []) {
|
|
65
|
+
const env = deps.env ?? process.env;
|
|
66
|
+
const onWindows = (deps.platform ?? process.platform) === 'win32';
|
|
67
|
+
const variable = (name) => env[Object.keys(env)
|
|
68
|
+
.sort()
|
|
69
|
+
.find((key) => key.toUpperCase() === name.toUpperCase()) ?? name];
|
|
70
|
+
const absolute = (file) => win32.isAbsolute(file) && win32.parse(file).root.length > 1;
|
|
71
|
+
const system = win32.join(variable('SystemRoot') ?? 'C:\\Windows', 'System32');
|
|
72
|
+
const exists = deps.binaryExists ??
|
|
73
|
+
(async (file) => (await stat(file).catch(() => undefined))?.isFile() === true);
|
|
74
|
+
const options = { env, timeout: 5000, maxBuffer: 64 * 1024, windowsHide: true };
|
|
75
|
+
// A failed lookup is not cached: the vendor binary may appear later in the
|
|
76
|
+
// same process (an install in progress), and the next call must see it.
|
|
77
|
+
let pending;
|
|
78
|
+
const resolve = () => (pending ??= (async () => {
|
|
79
|
+
if (!onWindows)
|
|
80
|
+
return name;
|
|
81
|
+
const searchedLocations = [];
|
|
82
|
+
const accept = async (file) => absolute(file) &&
|
|
83
|
+
windows.extensions.includes(win32.extname(file).toLowerCase()) &&
|
|
84
|
+
(await exists(file));
|
|
85
|
+
for (const [key, relative] of windows.locations) {
|
|
86
|
+
const root = variable(key);
|
|
87
|
+
if (!root)
|
|
88
|
+
continue;
|
|
89
|
+
const file = win32.join(root, relative);
|
|
90
|
+
searchedLocations.push(file);
|
|
91
|
+
if (await accept(file))
|
|
92
|
+
return file;
|
|
93
|
+
}
|
|
94
|
+
if (!absolute(system))
|
|
95
|
+
throw new Error('invalid_system_root');
|
|
96
|
+
const { stdout } = await run(win32.join(system, 'where.exe'), [name], options).catch((error) => {
|
|
97
|
+
if (error.code === 1)
|
|
98
|
+
throw new HostBinaryNotFoundError(searchedLocations);
|
|
99
|
+
throw error;
|
|
100
|
+
});
|
|
101
|
+
for (const candidate of stdout.split(/\r?\n/)) {
|
|
102
|
+
const file = candidate.trim();
|
|
103
|
+
if (await accept(file))
|
|
104
|
+
return file;
|
|
105
|
+
}
|
|
106
|
+
throw new HostBinaryNotFoundError(searchedLocations);
|
|
107
|
+
})().catch((error) => {
|
|
108
|
+
pending = undefined;
|
|
109
|
+
throw error;
|
|
110
|
+
}));
|
|
111
|
+
return {
|
|
112
|
+
resolve,
|
|
113
|
+
async findOnDisk() {
|
|
114
|
+
const native = onWindows
|
|
115
|
+
? windows.locations.flatMap(([key, path]) => {
|
|
116
|
+
const root = variable(key);
|
|
117
|
+
return root ? [win32.join(root, path)] : [];
|
|
118
|
+
})
|
|
119
|
+
: [];
|
|
120
|
+
const paths = (variable('PATH') ?? '').split(onWindows ? ';' : ':');
|
|
121
|
+
const candidates = [
|
|
122
|
+
...native,
|
|
123
|
+
...paths.flatMap((path) => onWindows
|
|
124
|
+
? windows.extensions.map((extension) => win32.join(path.replace(/^"|"$/g, ''), name + extension))
|
|
125
|
+
: [join(path, name)]),
|
|
126
|
+
...(!onWindows ? desktopPaths : []),
|
|
127
|
+
];
|
|
128
|
+
for (const file of candidates)
|
|
129
|
+
if ((!onWindows || absolute(file)) && (await exists(file)))
|
|
130
|
+
return file;
|
|
131
|
+
return undefined;
|
|
132
|
+
},
|
|
133
|
+
async execute(args, cwd) {
|
|
134
|
+
const file = await resolve();
|
|
135
|
+
const execution = {
|
|
136
|
+
...options,
|
|
137
|
+
cwd,
|
|
138
|
+
timeout: args[1] === 'login' ? 120_000 : onWindows ? 30_000 : 5000,
|
|
139
|
+
};
|
|
140
|
+
if (!onWindows) {
|
|
141
|
+
try {
|
|
142
|
+
return await run(file, args, execution);
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
if (error.code !== 'ENOENT')
|
|
146
|
+
throw error;
|
|
147
|
+
for (const candidate of desktopPaths) {
|
|
148
|
+
if (!(await exists(candidate)))
|
|
149
|
+
continue;
|
|
150
|
+
const result = await run(candidate, args, execution);
|
|
151
|
+
pending = Promise.resolve(candidate);
|
|
152
|
+
return result;
|
|
153
|
+
}
|
|
154
|
+
throw new HostBinaryNotFoundError(desktopPaths);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (windows.productVersion && /\.exe$/i.test(file) && args[0] === '--version')
|
|
158
|
+
return run(win32.join(system, 'WindowsPowerShell', 'v1.0', 'powershell.exe'), [
|
|
159
|
+
'-NoProfile',
|
|
160
|
+
'-NonInteractive',
|
|
161
|
+
'-Command',
|
|
162
|
+
`(Get-Item -LiteralPath '${file.replace(/'/g, "''")}').VersionInfo.ProductVersion`,
|
|
163
|
+
], execution);
|
|
164
|
+
if (!/\.(cmd|bat)$/i.test(file))
|
|
165
|
+
return run(file, args, execution);
|
|
166
|
+
const command = [quoteHostArgument(file), ...args.map(quoteHostArgument)];
|
|
167
|
+
command[0] = '"' + command[0];
|
|
168
|
+
command[command.length - 1] += '"';
|
|
169
|
+
const comspec = variable('ComSpec') ?? win32.join(system, 'cmd.exe');
|
|
170
|
+
if (!absolute(comspec))
|
|
171
|
+
throw new Error('invalid_comspec');
|
|
172
|
+
return run(comspec, ['/d', '/s', '/c', ...command], {
|
|
173
|
+
...execution,
|
|
174
|
+
windowsVerbatimArguments: true,
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=hostBinary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostBinary.js","sourceRoot":"","sources":["../src/hostBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AASlC,iFAAiF;AACjF,MAAM,UAAU,oBAAoB,CAClC,IAAwC,EACxC,IAAI,GAAkD,EAAE;IAExD,IAAI,IAAI,KAAK,aAAa;QACxB,OAAO;YACL,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE;gBACb,SAAS,EAAE;oBACT,CAAC,SAAS,EAAE,gBAAgB,CAAC;oBAC7B,CAAC,aAAa,EAAE,uBAAuB,CAAC;iBACzC;gBACD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;aAC7B;SACF,CAAC;IACJ,IAAI,IAAI,KAAK,OAAO;QAClB,OAAO;YACL,MAAM,EAAE,OAAO;YACf,YAAY,EACV,CAAC,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,QAAQ;gBAC9C,CAAC,CAAC;oBACE,oDAAoD;oBACpD,IAAI,CACF,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,OAAO,EAAE,EAC3B,mDAAmD,CACpD;iBACF;gBACH,CAAC,CAAC,EAAE;YACR,aAAa,EAAE;gBACb,SAAS,EAAE;oBACT,CAAC,SAAS,EAAE,eAAe,CAAC;oBAC5B,CAAC,cAAc,EAAE,qCAAqC,CAAC;iBACxD;gBACD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,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Y;oBACZ,iBAAiB;oBACjB,UAAU;oBACV,2BAA2B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,+BAA+B;iBACnF,EACD,SAAS,CACV,CAAC;YACJ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;gBAAE,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;YACnE,MAAM,OAAO,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC1E,OAAO,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC9B,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC;YACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YACrE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;YAC3D,OAAO,GAAG,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,EAAE;gBAClD,GAAG,SAAS;gBACZ,wBAAwB,EAAE,IAAI;aAC/B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { MCP_INSTRUCTIONS, MCP_INSTRUCTIONS_RAW, getMcpInstructions } from './instructions.js';
|
|
8
8
|
export { USAGE_GUIDE } from './usageGuide.js';
|
|
9
|
-
export { CodeScanner, MAX_SCANNED_FILE_BYTES, AUTHORITY_FILE_MATCHERS, BUILT_IN_IGNORE_DIRS, DEFAULT_INCLUDE_EXTENSIONS, languageForExtension, makeIgnoreMatcher, isGitBoundary, FIXTURE_PATH_RE, isFixturePath, isSecretFile, isAuthorityOnlyPath, logAstCapabilityOnce, type CodeChunk, type ScanOptions, } from './codeScanner.js';
|
|
9
|
+
export { CodeScanner, MAX_SCANNED_FILE_BYTES, MAX_PUSH_CHUNK_CONTENT_LENGTH, AUTHORITY_FILE_MATCHERS, BUILT_IN_IGNORE_DIRS, DEFAULT_INCLUDE_EXTENSIONS, languageForExtension, makeIgnoreMatcher, isGitBoundary, FIXTURE_PATH_RE, isFixturePath, isSecretFile, isAuthorityOnlyPath, logAstCapabilityOnce, type CodeChunk, type ScanOptions, } from './codeScanner.js';
|
|
10
10
|
export { AST_LANGUAGE_IDS, QUERY_CHAIN, VENDORED_ARTIFACT_DIR, astArtifactReport, astCapabilityReport, grammarArtifactBasename, loadGrammar, loadedGrammarIds, resolveAstLanguage, type AstLanguageId, type GrammarBinding, type GrammarLoad, type GrammarUnavailableReason, } from './ast/grammars.js';
|
|
11
11
|
export { MAX_AST_PARSE_BYTES, chunkWithAst, type AstChunk, type AstChunkResult, } from './ast/astChunker.js';
|
|
12
12
|
export { SECRET_PATTERNS, SECRET_REDACTION_PLACEHOLDER, scrubSecrets, redactHighEntropyTokens, } from './secretPatterns.js';
|
|
@@ -14,4 +14,14 @@ export { FETCH_TIMEOUT_MS, TELEMETRY_TIMEOUT_MS, POST_TOOL_TIMEOUT_MS, MCP_PRECH
|
|
|
14
14
|
export { persistJitDeliveryRef, readPendingJitDeliveryRefs, reportJitDeliveryRefsAttached, acknowledgeJitDeliveryRefs, pruneExpiredJitDeliveryRefs, applyJitDeliveryReceiptResponse, normalizeJitHookVersion, type JitReceiptClientEvent, type JitReceiptClientEventName, type JitReceiptEventContext, } from './jitDeliveryAck.js';
|
|
15
15
|
export * from './settingsIo.js';
|
|
16
16
|
export * from './claudeProxySettings.js';
|
|
17
|
+
export * from './repositoryFingerprint.js';
|
|
18
|
+
export * from './projectIdentityFile.js';
|
|
19
|
+
export * from './repositoryRoot.js';
|
|
20
|
+
export * from './protectedPaths.js';
|
|
21
|
+
export * from './readiness.js';
|
|
22
|
+
export * from './hostAdapter.js';
|
|
23
|
+
export * from './hostBinary.js';
|
|
24
|
+
export type { ServiceDefinition, SupervisorStatus, ServiceOperation, ServiceResult, } from './scannerSupervisor.js';
|
|
25
|
+
export { apiOrigin } from './apiOrigin.js';
|
|
26
|
+
export { WINDOWS_SERVICE_BUDGET_MS } from './scannerSupervisor.js';
|
|
17
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,wBAAwB,GAC9B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,cAAc,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,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AAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,YAAY,EACZ,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,EAC/B,uBAAuB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,GACd,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { MCP_INSTRUCTIONS, MCP_INSTRUCTIONS_RAW, getMcpInstructions } from './instructions.js';
|
|
8
8
|
export { USAGE_GUIDE } from './usageGuide.js';
|
|
9
|
-
export { CodeScanner, MAX_SCANNED_FILE_BYTES, AUTHORITY_FILE_MATCHERS, BUILT_IN_IGNORE_DIRS, DEFAULT_INCLUDE_EXTENSIONS, languageForExtension, makeIgnoreMatcher, isGitBoundary, FIXTURE_PATH_RE, isFixturePath, isSecretFile, isAuthorityOnlyPath, logAstCapabilityOnce, } from './codeScanner.js';
|
|
9
|
+
export { CodeScanner, MAX_SCANNED_FILE_BYTES, MAX_PUSH_CHUNK_CONTENT_LENGTH, AUTHORITY_FILE_MATCHERS, BUILT_IN_IGNORE_DIRS, DEFAULT_INCLUDE_EXTENSIONS, languageForExtension, makeIgnoreMatcher, isGitBoundary, FIXTURE_PATH_RE, isFixturePath, isSecretFile, isAuthorityOnlyPath, logAstCapabilityOnce, } from './codeScanner.js';
|
|
10
10
|
export { AST_LANGUAGE_IDS, QUERY_CHAIN, VENDORED_ARTIFACT_DIR, astArtifactReport, astCapabilityReport, grammarArtifactBasename, loadGrammar, loadedGrammarIds, resolveAstLanguage, } from './ast/grammars.js';
|
|
11
11
|
export { MAX_AST_PARSE_BYTES, chunkWithAst, } from './ast/astChunker.js';
|
|
12
12
|
export { SECRET_PATTERNS, SECRET_REDACTION_PLACEHOLDER, scrubSecrets, redactHighEntropyTokens, } from './secretPatterns.js';
|
|
@@ -14,4 +14,13 @@ export { FETCH_TIMEOUT_MS, TELEMETRY_TIMEOUT_MS, POST_TOOL_TIMEOUT_MS, MCP_PRECH
|
|
|
14
14
|
export { persistJitDeliveryRef, readPendingJitDeliveryRefs, reportJitDeliveryRefsAttached, acknowledgeJitDeliveryRefs, pruneExpiredJitDeliveryRefs, applyJitDeliveryReceiptResponse, normalizeJitHookVersion, } from './jitDeliveryAck.js';
|
|
15
15
|
export * from './settingsIo.js';
|
|
16
16
|
export * from './claudeProxySettings.js';
|
|
17
|
+
export * from './repositoryFingerprint.js';
|
|
18
|
+
export * from './projectIdentityFile.js';
|
|
19
|
+
export * from './repositoryRoot.js';
|
|
20
|
+
export * from './protectedPaths.js';
|
|
21
|
+
export * from './readiness.js';
|
|
22
|
+
export * from './hostAdapter.js';
|
|
23
|
+
export * from './hostBinary.js';
|
|
24
|
+
export { apiOrigin } from './apiOrigin.js';
|
|
25
|
+
export { WINDOWS_SERVICE_BUDGET_MS } from './scannerSupervisor.js';
|
|
17
26
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,GAGrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GAKnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,YAAY,GAGb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,YAAY,EACZ,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC1B,2BAA2B,EAC3B,+BAA+B,EAC/B,uBAAuB,GAIxB,MAAM,qBAAqB,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAA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AAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/instructions.d.ts
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* Version: 2.110
|
|
8
8
|
* Updated: 2026-08-27
|
|
9
9
|
*
|
|
10
|
-
* v2.110
|
|
10
|
+
* v2.110 - Reordered and compressed the universal instructions to fit the
|
|
11
11
|
* 2,048-character transport limit. The first 512 characters now carry
|
|
12
12
|
* the server purpose, self-scoping bootstrap condition, required cwd,
|
|
13
13
|
* and memory-as-augmentation stance. The retrieval, task pagination,
|
|
14
14
|
* and tool-floor capabilities remain in a shorter factual form.
|
|
15
15
|
*
|
|
16
|
-
* v2.109
|
|
16
|
+
* v2.109 - Compressed the v2.108 memory-search clause. It restated, verbatim,
|
|
17
17
|
* the same search guidance carried by SESSION_OPENER_INSTRUCTION
|
|
18
|
-
* (bootstrapDigestRender.ts)
|
|
18
|
+
* (bootstrapDigestRender.ts) - and both co-occur in the same agent
|
|
19
19
|
* session as the bootstrap digest's capabilities.search block, which
|
|
20
20
|
* already states the memory_search/code_search call signatures in
|
|
21
21
|
* full. Kept the essential behavior (memory holds the why; search it
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
* with Grep/Read; reach for code_search when concepts don't share
|
|
24
24
|
* the user's words), dropped the restated call shapes, and pointed at
|
|
25
25
|
* the session context's capabilities block for the exact signatures
|
|
26
|
-
* once it loads
|
|
26
|
+
* once it loads - this text fires at `initialize`, before any
|
|
27
27
|
* digest exists, so it cannot point "above" the way the trimmed
|
|
28
28
|
* SESSION_OPENER clause does. recall-first-class plan, Task A3
|
|
29
29
|
* rider (reviewer-flagged: character-for-character duplicate).
|
|
30
|
-
* v2.108
|
|
30
|
+
* v2.108 - Added front-loaded education that persistent project memory is part
|
|
31
31
|
* of the agent's working knowledge. A live Config-B fixture rejected
|
|
32
32
|
* the first generic invitation: the agent searched code, docs, and git
|
|
33
33
|
* history, then called the rationale undocumented without searching
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* wording stays a compact startup floor, not a token-heavy tutorial or
|
|
39
39
|
* recurring nudge.
|
|
40
40
|
*
|
|
41
|
-
* v2.106
|
|
41
|
+
* v2.106 - Added a static "Which tool for what" floor map. Rides the already-
|
|
42
42
|
* cached instructions at near-zero cost and gives every agent a baseline
|
|
43
43
|
* "which tool for what" for the under-surfaced tools (memory_add,
|
|
44
44
|
* memory_state, memory_info, memory_links, assist, search_summaries,
|
|
@@ -46,55 +46,55 @@
|
|
|
46
46
|
* nudges; memory_info in particular has no reactive trigger, so the floor
|
|
47
47
|
* is its only education.
|
|
48
48
|
*
|
|
49
|
-
* v2.105
|
|
49
|
+
* v2.105 - Bootstrap's agent-facing label is generic project context. Use the
|
|
50
50
|
* canonical text body's stable `PROJECT_CONTEXT schemaVersion=` marker
|
|
51
51
|
* for the self-scoping check instead of teaching agents to call the
|
|
52
52
|
* user's project "Mnemonik".
|
|
53
53
|
*
|
|
54
|
-
* v2.104
|
|
54
|
+
* v2.104 - Disambiguated persistent project task memories from Claude Code's
|
|
55
55
|
* host-local TaskList and made completeness proactive. A request for a
|
|
56
56
|
* complete/all list must build cursor continuation into the first Code
|
|
57
57
|
* Mode program; guidance returned after an incomplete outer call is too
|
|
58
58
|
* late to preserve the one-round-trip workflow.
|
|
59
59
|
*
|
|
60
|
-
* v2.103
|
|
60
|
+
* v2.103 - Added the compact Discover -> Select -> Hydrate interpretation
|
|
61
61
|
* fallback for Config-A. Dynamic response orchestration remains
|
|
62
62
|
* authoritative; this sentence only teaches an un-orchestrated client
|
|
63
63
|
* how to act on retrieval envelopes without walking full bodies.
|
|
64
64
|
*
|
|
65
|
-
* v2.102
|
|
65
|
+
* v2.102 - Strengthened the self-bootstrap trigger to a compelling imperative.
|
|
66
66
|
* The v2.101 phrasing ("At the start of a session, unless ... call ...")
|
|
67
67
|
* was too soft; agents on a blind first turn skipped it. Real-world hole
|
|
68
68
|
* it must cover: Cursor's FIRST chat after an IDE open fires no
|
|
69
69
|
* sessionStart (confirmed by hook-stdin capture), and beforeSubmitPrompt
|
|
70
70
|
* has NO model-facing output field (only user_message, shown to the
|
|
71
|
-
* human)
|
|
71
|
+
* human) - so neither the silent digest nor the hook's
|
|
72
72
|
* session_bootstrap_required directive reaches the model. The MCP
|
|
73
73
|
* instruction is the ONLY model-facing channel left for that turn, so it
|
|
74
74
|
* now leads with the blind-state check + a hard "FIRST action MUST be
|
|
75
75
|
* session_bootstrap, before you reply" and an explicit cwd-REQUIRED
|
|
76
76
|
* clause. Still self-scoping: skips when the "Mnemonik project context"
|
|
77
77
|
* block is already present (working hook/proxy delivery), so config-B/C
|
|
78
|
-
* with live delivery don't double-call. cwd stays host-agnostic
|
|
78
|
+
* with live delivery don't double-call. cwd stays host-agnostic - the
|
|
79
79
|
* agent passes the project root it is working in (Cursor exposes the
|
|
80
80
|
* working dir to HOOKS via the stdin `workspace_roots[0]`, which cwdOf
|
|
81
81
|
* already reads; it is NOT an agent-readable env var, so the instruction
|
|
82
82
|
* must not name one).
|
|
83
83
|
*
|
|
84
|
-
* v2.101
|
|
84
|
+
* v2.101 - Stripped to a single instruction: the session_bootstrap trigger.
|
|
85
85
|
* MCP instructions are set at Server construction (initialize), before
|
|
86
|
-
* the server knows the client, so they cannot be scoped per-IDE
|
|
86
|
+
* the server knows the client, so they cannot be scoped per-IDE - and
|
|
87
87
|
* IDE != config (a Claude Code user may be config-B or -C). The content
|
|
88
88
|
* is therefore universal and SELF-SCOPING: it conditions on whether a
|
|
89
89
|
* "Mnemonik project context" block is already present (config-B/C with
|
|
90
|
-
* working delivery
|
|
91
|
-
* delivery missed
|
|
90
|
+
* working delivery -> skip; config-A and any host where hook/proxy
|
|
91
|
+
* delivery missed -> call). Re-enabled in production
|
|
92
92
|
* (MNEMONIK_INSTRUCTIONS_ENABLED=true in both ECS task defs). This is the
|
|
93
|
-
* reliable trigger that makes the agent self-bootstrap
|
|
93
|
+
* reliable trigger that makes the agent self-bootstrap - tool results
|
|
94
94
|
* always reach the model, which hook injection cannot guarantee on a
|
|
95
95
|
* no-tool-call turn (e.g. Cursor "hello").
|
|
96
96
|
*
|
|
97
|
-
* v2.100
|
|
97
|
+
* v2.100 - Skill + IDE rule templates retired entirely. They were the
|
|
98
98
|
* file-written home of the workflow; agents followed them unreliably and
|
|
99
99
|
* forgot them over long sessions (the same fate these MCP instructions
|
|
100
100
|
* suffer), so they are gone. `filesToWrite` now carries only
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
* orchestration layer (host hooks + proxy); these instructions stay lean
|
|
104
104
|
* and are the Config-A fallback only.
|
|
105
105
|
*
|
|
106
|
-
* v2.99
|
|
106
|
+
* v2.99 - Orchestration-aware framing. These static MCP instructions are
|
|
107
107
|
* delivered at `initialize`, before the server knows the actor's tier
|
|
108
108
|
* (no project/proxy/hooks state yet), so they cannot be served per-tier.
|
|
109
109
|
* Instead the CONTENT is now tier-correct: the self-drive calls
|
|
@@ -114,29 +114,29 @@
|
|
|
114
114
|
* The orchestration layer (proxy + host hooks) is authoritative for
|
|
115
115
|
* B/C; this block is primarily Config-A's driver.
|
|
116
116
|
*
|
|
117
|
-
* v2.98
|
|
117
|
+
* v2.98 - Doc truth contracts are the normal drift surface. linkedDocs and
|
|
118
118
|
* doc_code_couplings remain legacy diagnostics only; docs drift
|
|
119
119
|
* defaults to truth findings and legacy:true is explicit debug.
|
|
120
|
-
* v2.97
|
|
120
|
+
* v2.97 - Dropped legacy doc-coupling action guidance. Coupling rows are
|
|
121
121
|
* not truth findings (plan §1).
|
|
122
|
-
* v2.96
|
|
122
|
+
* v2.96 - Replace conditional memory_discover guidance with structural fix:
|
|
123
123
|
* bootstrap now includes _methodCatalog (discoverMemoryTools({})) so
|
|
124
124
|
* agents have the memory_tools calling convention from turn one.
|
|
125
125
|
* Instruction updated to reference _methodCatalog directly.
|
|
126
126
|
* Superseded 2026-07-13: a real Config-B host persisted the expanded
|
|
127
127
|
* 15.1KB hook output instead of injecting it. Bootstrap now carries a
|
|
128
128
|
* compact discovery bridge; memory_discover({}) owns the full catalog.
|
|
129
|
-
* v2.95
|
|
129
|
+
* v2.95 - Drop `augments` from JIT directive verdict list per plan §5 default
|
|
130
130
|
* (augments downgrades to ambient via the parallel recall gate, not
|
|
131
131
|
* the directive lane). See jit-knowledge-injector.md §5 decision note.
|
|
132
|
-
* v2.94
|
|
132
|
+
* v2.94 - Add JIT directive teaching (docs/development/jit-knowledge-injector.md §2.3).
|
|
133
133
|
*
|
|
134
|
-
* Code mode permanent
|
|
134
|
+
* Code mode permanent - all memory operations via memory_tools sandbox.
|
|
135
135
|
* memory_add, file_context etc. are now mnemonik.* methods, not standalone tools.
|
|
136
136
|
*
|
|
137
137
|
* Zero-cooperation rewrite. Context auto-loads if session_bootstrap is skipped.
|
|
138
138
|
* Session summaries are auto-saved if agent doesn't call mnemonik.memory_add().
|
|
139
|
-
* Instructions drastically simplified
|
|
139
|
+
* Instructions drastically simplified - the server handles the workflow now.
|
|
140
140
|
*
|
|
141
141
|
* Token-optimised rewrite (superseded by later instruction rewrites).
|
|
142
142
|
*/
|
package/dist/instructions.js
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* Version: 2.110
|
|
8
8
|
* Updated: 2026-08-27
|
|
9
9
|
*
|
|
10
|
-
* v2.110
|
|
10
|
+
* v2.110 - Reordered and compressed the universal instructions to fit the
|
|
11
11
|
* 2,048-character transport limit. The first 512 characters now carry
|
|
12
12
|
* the server purpose, self-scoping bootstrap condition, required cwd,
|
|
13
13
|
* and memory-as-augmentation stance. The retrieval, task pagination,
|
|
14
14
|
* and tool-floor capabilities remain in a shorter factual form.
|
|
15
15
|
*
|
|
16
|
-
* v2.109
|
|
16
|
+
* v2.109 - Compressed the v2.108 memory-search clause. It restated, verbatim,
|
|
17
17
|
* the same search guidance carried by SESSION_OPENER_INSTRUCTION
|
|
18
|
-
* (bootstrapDigestRender.ts)
|
|
18
|
+
* (bootstrapDigestRender.ts) - and both co-occur in the same agent
|
|
19
19
|
* session as the bootstrap digest's capabilities.search block, which
|
|
20
20
|
* already states the memory_search/code_search call signatures in
|
|
21
21
|
* full. Kept the essential behavior (memory holds the why; search it
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
* with Grep/Read; reach for code_search when concepts don't share
|
|
24
24
|
* the user's words), dropped the restated call shapes, and pointed at
|
|
25
25
|
* the session context's capabilities block for the exact signatures
|
|
26
|
-
* once it loads
|
|
26
|
+
* once it loads - this text fires at `initialize`, before any
|
|
27
27
|
* digest exists, so it cannot point "above" the way the trimmed
|
|
28
28
|
* SESSION_OPENER clause does. recall-first-class plan, Task A3
|
|
29
29
|
* rider (reviewer-flagged: character-for-character duplicate).
|
|
30
|
-
* v2.108
|
|
30
|
+
* v2.108 - Added front-loaded education that persistent project memory is part
|
|
31
31
|
* of the agent's working knowledge. A live Config-B fixture rejected
|
|
32
32
|
* the first generic invitation: the agent searched code, docs, and git
|
|
33
33
|
* history, then called the rationale undocumented without searching
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* wording stays a compact startup floor, not a token-heavy tutorial or
|
|
39
39
|
* recurring nudge.
|
|
40
40
|
*
|
|
41
|
-
* v2.106
|
|
41
|
+
* v2.106 - Added a static "Which tool for what" floor map. Rides the already-
|
|
42
42
|
* cached instructions at near-zero cost and gives every agent a baseline
|
|
43
43
|
* "which tool for what" for the under-surfaced tools (memory_add,
|
|
44
44
|
* memory_state, memory_info, memory_links, assist, search_summaries,
|
|
@@ -46,55 +46,55 @@
|
|
|
46
46
|
* nudges; memory_info in particular has no reactive trigger, so the floor
|
|
47
47
|
* is its only education.
|
|
48
48
|
*
|
|
49
|
-
* v2.105
|
|
49
|
+
* v2.105 - Bootstrap's agent-facing label is generic project context. Use the
|
|
50
50
|
* canonical text body's stable `PROJECT_CONTEXT schemaVersion=` marker
|
|
51
51
|
* for the self-scoping check instead of teaching agents to call the
|
|
52
52
|
* user's project "Mnemonik".
|
|
53
53
|
*
|
|
54
|
-
* v2.104
|
|
54
|
+
* v2.104 - Disambiguated persistent project task memories from Claude Code's
|
|
55
55
|
* host-local TaskList and made completeness proactive. A request for a
|
|
56
56
|
* complete/all list must build cursor continuation into the first Code
|
|
57
57
|
* Mode program; guidance returned after an incomplete outer call is too
|
|
58
58
|
* late to preserve the one-round-trip workflow.
|
|
59
59
|
*
|
|
60
|
-
* v2.103
|
|
60
|
+
* v2.103 - Added the compact Discover -> Select -> Hydrate interpretation
|
|
61
61
|
* fallback for Config-A. Dynamic response orchestration remains
|
|
62
62
|
* authoritative; this sentence only teaches an un-orchestrated client
|
|
63
63
|
* how to act on retrieval envelopes without walking full bodies.
|
|
64
64
|
*
|
|
65
|
-
* v2.102
|
|
65
|
+
* v2.102 - Strengthened the self-bootstrap trigger to a compelling imperative.
|
|
66
66
|
* The v2.101 phrasing ("At the start of a session, unless ... call ...")
|
|
67
67
|
* was too soft; agents on a blind first turn skipped it. Real-world hole
|
|
68
68
|
* it must cover: Cursor's FIRST chat after an IDE open fires no
|
|
69
69
|
* sessionStart (confirmed by hook-stdin capture), and beforeSubmitPrompt
|
|
70
70
|
* has NO model-facing output field (only user_message, shown to the
|
|
71
|
-
* human)
|
|
71
|
+
* human) - so neither the silent digest nor the hook's
|
|
72
72
|
* session_bootstrap_required directive reaches the model. The MCP
|
|
73
73
|
* instruction is the ONLY model-facing channel left for that turn, so it
|
|
74
74
|
* now leads with the blind-state check + a hard "FIRST action MUST be
|
|
75
75
|
* session_bootstrap, before you reply" and an explicit cwd-REQUIRED
|
|
76
76
|
* clause. Still self-scoping: skips when the "Mnemonik project context"
|
|
77
77
|
* block is already present (working hook/proxy delivery), so config-B/C
|
|
78
|
-
* with live delivery don't double-call. cwd stays host-agnostic
|
|
78
|
+
* with live delivery don't double-call. cwd stays host-agnostic - the
|
|
79
79
|
* agent passes the project root it is working in (Cursor exposes the
|
|
80
80
|
* working dir to HOOKS via the stdin `workspace_roots[0]`, which cwdOf
|
|
81
81
|
* already reads; it is NOT an agent-readable env var, so the instruction
|
|
82
82
|
* must not name one).
|
|
83
83
|
*
|
|
84
|
-
* v2.101
|
|
84
|
+
* v2.101 - Stripped to a single instruction: the session_bootstrap trigger.
|
|
85
85
|
* MCP instructions are set at Server construction (initialize), before
|
|
86
|
-
* the server knows the client, so they cannot be scoped per-IDE
|
|
86
|
+
* the server knows the client, so they cannot be scoped per-IDE - and
|
|
87
87
|
* IDE != config (a Claude Code user may be config-B or -C). The content
|
|
88
88
|
* is therefore universal and SELF-SCOPING: it conditions on whether a
|
|
89
89
|
* "Mnemonik project context" block is already present (config-B/C with
|
|
90
|
-
* working delivery
|
|
91
|
-
* delivery missed
|
|
90
|
+
* working delivery -> skip; config-A and any host where hook/proxy
|
|
91
|
+
* delivery missed -> call). Re-enabled in production
|
|
92
92
|
* (MNEMONIK_INSTRUCTIONS_ENABLED=true in both ECS task defs). This is the
|
|
93
|
-
* reliable trigger that makes the agent self-bootstrap
|
|
93
|
+
* reliable trigger that makes the agent self-bootstrap - tool results
|
|
94
94
|
* always reach the model, which hook injection cannot guarantee on a
|
|
95
95
|
* no-tool-call turn (e.g. Cursor "hello").
|
|
96
96
|
*
|
|
97
|
-
* v2.100
|
|
97
|
+
* v2.100 - Skill + IDE rule templates retired entirely. They were the
|
|
98
98
|
* file-written home of the workflow; agents followed them unreliably and
|
|
99
99
|
* forgot them over long sessions (the same fate these MCP instructions
|
|
100
100
|
* suffer), so they are gone. `filesToWrite` now carries only
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
* orchestration layer (host hooks + proxy); these instructions stay lean
|
|
104
104
|
* and are the Config-A fallback only.
|
|
105
105
|
*
|
|
106
|
-
* v2.99
|
|
106
|
+
* v2.99 - Orchestration-aware framing. These static MCP instructions are
|
|
107
107
|
* delivered at `initialize`, before the server knows the actor's tier
|
|
108
108
|
* (no project/proxy/hooks state yet), so they cannot be served per-tier.
|
|
109
109
|
* Instead the CONTENT is now tier-correct: the self-drive calls
|
|
@@ -114,29 +114,29 @@
|
|
|
114
114
|
* The orchestration layer (proxy + host hooks) is authoritative for
|
|
115
115
|
* B/C; this block is primarily Config-A's driver.
|
|
116
116
|
*
|
|
117
|
-
* v2.98
|
|
117
|
+
* v2.98 - Doc truth contracts are the normal drift surface. linkedDocs and
|
|
118
118
|
* doc_code_couplings remain legacy diagnostics only; docs drift
|
|
119
119
|
* defaults to truth findings and legacy:true is explicit debug.
|
|
120
|
-
* v2.97
|
|
120
|
+
* v2.97 - Dropped legacy doc-coupling action guidance. Coupling rows are
|
|
121
121
|
* not truth findings (plan §1).
|
|
122
|
-
* v2.96
|
|
122
|
+
* v2.96 - Replace conditional memory_discover guidance with structural fix:
|
|
123
123
|
* bootstrap now includes _methodCatalog (discoverMemoryTools({})) so
|
|
124
124
|
* agents have the memory_tools calling convention from turn one.
|
|
125
125
|
* Instruction updated to reference _methodCatalog directly.
|
|
126
126
|
* Superseded 2026-07-13: a real Config-B host persisted the expanded
|
|
127
127
|
* 15.1KB hook output instead of injecting it. Bootstrap now carries a
|
|
128
128
|
* compact discovery bridge; memory_discover({}) owns the full catalog.
|
|
129
|
-
* v2.95
|
|
129
|
+
* v2.95 - Drop `augments` from JIT directive verdict list per plan §5 default
|
|
130
130
|
* (augments downgrades to ambient via the parallel recall gate, not
|
|
131
131
|
* the directive lane). See jit-knowledge-injector.md §5 decision note.
|
|
132
|
-
* v2.94
|
|
132
|
+
* v2.94 - Add JIT directive teaching (docs/development/jit-knowledge-injector.md §2.3).
|
|
133
133
|
*
|
|
134
|
-
* Code mode permanent
|
|
134
|
+
* Code mode permanent - all memory operations via memory_tools sandbox.
|
|
135
135
|
* memory_add, file_context etc. are now mnemonik.* methods, not standalone tools.
|
|
136
136
|
*
|
|
137
137
|
* Zero-cooperation rewrite. Context auto-loads if session_bootstrap is skipped.
|
|
138
138
|
* Session summaries are auto-saved if agent doesn't call mnemonik.memory_add().
|
|
139
|
-
* Instructions drastically simplified
|
|
139
|
+
* Instructions drastically simplified - the server handles the workflow now.
|
|
140
140
|
*
|
|
141
141
|
* Token-optimised rewrite (superseded by later instruction rewrites).
|
|
142
142
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jitDeliveryAck.d.ts","sourceRoot":"","sources":["../src/jitDeliveryAck.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jitDeliveryAck.d.ts","sourceRoot":"","sources":["../src/jitDeliveryAck.ts"],"names":[],"mappings":"AAqBA,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAOpE;AAED,MAAM,MAAM,yBAAyB,GACjC,kBAAkB,GAClB,aAAa,GACb,qBAAqB,GACrB,kBAAkB,GAClB,gBAAgB,CAAC;AAErB,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,oBAAoB,CAAC;IACtC,KAAK,EAAE,yBAAyB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,kBAAkB,GAAG,2BAA2B,CAAC;CAC3D;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAC/C;AA0CD,kFAAkF;AAClF,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CA8BT;AAED,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,MAAM,EAAE,CAyCV;AAED,wBAAgB,6BAA6B,CAC3C,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,IAAI,CAMN;AAED,4EAA4E;AAC5E,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,IAAI,CAUN;AAED,qFAAqF;AACrF,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,IAAI,CAUN;AAED,gFAAgF;AAChF,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,oBAAoB,EAAE,MAAM,EAAE,EAC9B,QAAQ,EAAE;IAAE,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,EAChF,OAAO,CAAC,EAAE,sBAAsB,GAC/B,IAAI,CAYN"}
|
package/dist/jitDeliveryAck.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ensureWindowsPrivateDirectorySync } from './runtimeSigners.js';
|
|
1
2
|
import { createHash } from 'node:crypto';
|
|
2
3
|
import { chmodSync, closeSync, constants, existsSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync, } from 'node:fs';
|
|
3
4
|
import { join } from 'node:path';
|
|
@@ -45,6 +46,7 @@ function ensurePrivateDirectory(path) {
|
|
|
45
46
|
try {
|
|
46
47
|
if (existsSync(path) && lstatSync(path).isSymbolicLink())
|
|
47
48
|
return false;
|
|
49
|
+
ensureWindowsPrivateDirectorySync(path);
|
|
48
50
|
mkdirSync(path, { recursive: true, mode: 0o700 });
|
|
49
51
|
chmodSync(path, 0o700);
|
|
50
52
|
return lstatSync(path).isDirectory() && !lstatSync(path).isSymbolicLink();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jitDeliveryAck.js","sourceRoot":"","sources":["../src/jitDeliveryAck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,UA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