@c4t4/heyamigo 0.1.9 → 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/README.md +7 -11
- package/dist/memory/preamble.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,30 +62,26 @@ npm install -g @anthropic-ai/claude-code
|
|
|
62
62
|
claude
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
Run `claude` and follow the login instructions.
|
|
65
|
+
Run `claude` and follow the login instructions. You need an [Anthropic account](https://console.anthropic.com). After logging in, exit claude.
|
|
66
66
|
|
|
67
|
-
### 2.
|
|
67
|
+
### 2. Run the setup wizard
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
|
-
|
|
71
|
-
cd heyamigo
|
|
72
|
-
npm install
|
|
73
|
-
npm run setup
|
|
70
|
+
npx @c4t4/heyamigo setup
|
|
74
71
|
```
|
|
75
72
|
|
|
76
|
-
The wizard handles
|
|
73
|
+
That's it. The wizard handles everything:
|
|
77
74
|
- WhatsApp pairing (QR code + pairing code)
|
|
78
75
|
- Browser setup (optional)
|
|
79
76
|
- Personality selection
|
|
80
|
-
- Knowledge import (optional)
|
|
81
77
|
|
|
82
|
-
|
|
78
|
+
### 3. Start the bot
|
|
83
79
|
|
|
84
80
|
```bash
|
|
85
|
-
heyamigo start
|
|
81
|
+
npx @c4t4/heyamigo start
|
|
86
82
|
```
|
|
87
83
|
|
|
88
|
-
|
|
84
|
+
Runs in the background, auto-restarts on crash, survives SSH disconnect.
|
|
89
85
|
|
|
90
86
|
---
|
|
91
87
|
|
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' +
|