@yamo/memory-mesh 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/bin/setup.js +21 -1
  2. package/package.json +1 -1
package/bin/setup.js CHANGED
@@ -261,6 +261,22 @@ async function installTools(env) {
261
261
  }
262
262
  }
263
263
 
264
+ async function createShortcuts(env) {
265
+ log('\n⌨️ Creating shortcuts...', 'blue');
266
+ const mmPath = join(env.cwd, 'mm');
267
+ const toolScript = join(env.cwd, 'tools', 'memory_mesh.mjs');
268
+
269
+ const content = `#!/bin/bash\nnode ${toolScript} "$@"\n`;
270
+
271
+ try {
272
+ writeFileSync(mmPath, content);
273
+ fs.chmodSync(mmPath, '755');
274
+ log(' ✓ Created local executable: ./mm', 'green');
275
+ } catch (error) {
276
+ log(` ✗ Failed to create shortcut: ${error.message}`, 'red');
277
+ }
278
+ }
279
+
264
280
  function showUsage(env) {
265
281
  const pkg = JSON.parse(readFileSync(join(packageRoot, 'package.json'), 'utf-8'));
266
282
  log('\n✨ Setup Complete!', 'bright');
@@ -280,7 +296,8 @@ function showUsage(env) {
280
296
  }
281
297
 
282
298
  log('\n🔧 Tools:', 'blue');
283
- log(' • tools/memory_mesh.mjs for semantic operations', 'blue');
299
+ log(' • ./mm <command> (Quick Access)', 'blue');
300
+ log(' • tools/memory_mesh.mjs (Direct Script)', 'blue');
284
301
  }
285
302
 
286
303
  async function main() {
@@ -312,6 +329,9 @@ async function main() {
312
329
  // 4. Project Tools
313
330
  await installTools(env);
314
331
 
332
+ // 5. Create 'mm' shortcut
333
+ await createShortcuts(env);
334
+
315
335
  showUsage(env);
316
336
 
317
337
  log('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamo/memory-mesh",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Portable semantic memory system with Layer 0 Scrubber for YAMO agents (v3 Singularity Edition)",
5
5
  "type": "module",
6
6
  "main": "lib/memory/index.js",