@gramatr/client 0.6.14 → 0.6.16

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/bin/install.ts CHANGED
@@ -281,6 +281,16 @@ function installClientFiles(): void {
281
281
  for (const f of libs) cpSync(join(libHookSrc, f), join(CLIENT_DIR, 'hooks/lib', f));
282
282
  log(`OK Installed ${hookCount} hooks + ${libs.length} lib modules`);
283
283
  }
284
+
285
+ // Generated constants (schema-constants.ts for PreToolUse validator)
286
+ const generatedSrc = join(hooksSrc, 'generated');
287
+ if (existsSync(generatedSrc)) {
288
+ const destDir = join(CLIENT_DIR, 'hooks/generated');
289
+ mkdirSync(destDir, { recursive: true });
290
+ const generated = readdirSync(generatedSrc).filter(f => f.endsWith('.ts') && !f.endsWith('.test.ts'));
291
+ for (const f of generated) cpSync(join(generatedSrc, f), join(destDir, f));
292
+ log(`OK Installed ${generated.length} generated schema constants`);
293
+ }
284
294
  }
285
295
 
286
296
  // Bin files
@@ -325,7 +325,7 @@ function formatIntelligence(data: RouteResponse): string {
325
325
  if (memoryTier !== 'none') {
326
326
  lines.push('');
327
327
  lines.push('═══ MANDATORY: QUERY GMTR MEMORY BEFORE ANY WORK ═══');
328
- lines.push('Memory tier: ' + memoryTier + ' — You MUST call search_semantic in OBSERVE before creating ISC.');
328
+ lines.push('Memory tier: ' + memoryTier + ' — Use search_results from Packet 1 if present. Only call search_semantic for follow-up queries.');
329
329
  lines.push('Do NOT answer from MEMORY.md alone. GMTR has the live knowledge graph.');
330
330
  }
331
331
 
@@ -79,14 +79,14 @@ function emitClaudeContext(opts: {
79
79
  lines.push(opts.handoffContext);
80
80
  lines.push('');
81
81
  lines.push('Present this context to the user automatically — they expect seamless session continuity.');
82
- lines.push('Query gramatr memory (search_semantic) to enrich this handoff with additional details if needed.');
82
+ lines.push('Query gramatr memory (search_semantic) to enrich this handoff with additional details if needed. For regular prompts, use search_results from Packet 1 instead.');
83
83
  lines.push('');
84
84
  } else if (opts.resumed) {
85
85
  // Resumed but no handoff content — fall back to config data
86
86
  lines.push('## Session Resumed (no handoff context available)');
87
87
  lines.push('');
88
88
  lines.push('This session resumed an existing interaction but the previous session did not save handoff context.');
89
- lines.push('Query gramatr memory (search_semantic) for recent session activity on this project.');
89
+ lines.push('Query gramatr memory (search_semantic) for recent session activity on this project. For regular prompts, use search_results from Packet 1 instead.');
90
90
  lines.push('');
91
91
  }
92
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gramatr/client",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },