@c4t4/heyamigo 0.1.10 → 0.1.11

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,4 +1,5 @@
1
1
  import { existsSync, readFileSync } from 'fs';
2
+ import { resolve } from 'path';
2
3
  import { config } from '../config.js';
3
4
  import { masterIndexPath, treeIndexPath } from './paths.js';
4
5
  import { routeIndexes } from './router.js';
@@ -37,7 +38,9 @@ export function buildMemoryPreamble(params) {
37
38
  const sections = [];
38
39
  // Identity — tell Claude its name
39
40
  const botName = config.triggers.aliases[0] ?? 'amigo';
41
+ const personalityPath = resolve(process.cwd(), config.claude.personalityFile);
40
42
  sections.push(`[Identity]\nYour name is ${botName}. People call you ${botName} to get your attention.`);
43
+ sections.push(`[Character]\nWho you are is defined in ${personalityPath}. Stay consistent and loyal to it.`);
41
44
  // Capabilities
42
45
  sections.push('[Capabilities]\n' +
43
46
  'Sending files: include a tag in your reply to send files through WhatsApp:\n' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4t4/heyamigo",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "WhatsApp AI bot powered by Claude with long-term memory, browser control, and role-based access",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",