@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.
- package/dist/memory/preamble.js +3 -0
- package/package.json +1 -1
package/dist/memory/preamble.js
CHANGED
|
@@ -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' +
|