@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 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. After logging in, exit claude and run `npx @c4t4/heyamigo setup` again. You need an [Anthropic account](https://console.anthropic.com). The bot runs on your Claude subscription — no API keys needed.
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. Clone and set up
67
+ ### 2. Run the setup wizard
68
68
 
69
69
  ```bash
70
- git clone https://github.com/C4T4/heyamigo.git
71
- cd heyamigo
72
- npm install
73
- npm run setup
70
+ npx @c4t4/heyamigo setup
74
71
  ```
75
72
 
76
- The wizard handles the rest:
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
- Then:
78
+ ### 3. Start the bot
83
79
 
84
80
  ```bash
85
- heyamigo start
81
+ npx @c4t4/heyamigo start
86
82
  ```
87
83
 
88
- That's it. Runs in the background, auto-restarts on crash, survives SSH disconnect.
84
+ Runs in the background, auto-restarts on crash, survives SSH disconnect.
89
85
 
90
86
  ---
91
87
 
@@ -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.9",
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",