metame-cli 1.4.31 → 1.4.33
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 +42 -19
- package/index.js +237 -149
- package/package.json +3 -2
- package/scripts/bin/dispatch_to +92 -0
- package/scripts/daemon-claude-engine.js +5 -2
- package/scripts/daemon-runtime-lifecycle.js +4 -2
- package/scripts/daemon-task-scheduler.js +28 -3
- package/scripts/daemon.js +40 -3
- package/scripts/docs/agent-guide.md +50 -0
- package/scripts/docs/file-transfer.md +32 -0
- package/scripts/feishu-adapter.js +6 -2
- package/scripts/memory-extract.js +2 -2
- package/scripts/memory-gc.js +2 -2
- package/scripts/memory-write.js +0 -1
- package/scripts/memory.js +1 -1
- package/scripts/platform.js +172 -0
- package/scripts/reliability-core.test.js +15 -3
- package/scripts/schema.js +43 -10
- package/scripts/skill-evolution.test.js +7 -1
- package/scripts/sync-readme.js +64 -0
- package/scripts/templates/default-global-claude.md +19 -0
- package/scripts/utils.test.js +12 -5
- package/scripts/migrate-v2.js +0 -112
- package/scripts/self-reflect.js +0 -285
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# MetaMe
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<img src="./
|
|
4
|
+
<img src="./logo_high_contrast.png" alt="MetaMe Logo" width="200"/>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
<a href="./README.md">English</a> | <a href="./README中文版.md">中文</a>
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
> **Your digital twin. Lives on your
|
|
17
|
+
> **Your digital twin. Lives on your machine.**
|
|
18
18
|
|
|
19
|
-
MetaMe is an AI that lives on your machine — remembers how you think, stays online 24/7, and takes commands from your phone via Telegram or Feishu. Not in the cloud. In your computer.
|
|
19
|
+
MetaMe is an AI that lives on your machine — remembers how you think, stays online 24/7, and takes commands from your phone via Telegram or Feishu. Not in the cloud. In your computer. Runs natively on macOS and Windows.
|
|
20
20
|
|
|
21
21
|
No cloud. Your machine, your data.
|
|
22
22
|
|
|
23
|
-
**macOS / Linux:**
|
|
24
23
|
```bash
|
|
25
24
|
curl -fsSL https://raw.githubusercontent.com/Yaron9/MetaMe/main/install.sh | bash
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
**
|
|
29
|
-
```
|
|
30
|
-
|
|
27
|
+
**Already have Node.js ≥ 18:**
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g metame-cli
|
|
30
|
+
metame
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
**
|
|
34
|
-
```
|
|
33
|
+
**Windows (PowerShell):**
|
|
34
|
+
```powershell
|
|
35
35
|
npm install -g metame-cli
|
|
36
36
|
metame
|
|
37
37
|
```
|
|
@@ -177,7 +177,7 @@ Chain skills into multi-step workflows — research → write → publish — fu
|
|
|
177
177
|
| `cwd` | Working directory for the task |
|
|
178
178
|
| `timeout` | Max run time |
|
|
179
179
|
|
|
180
|
-
> **Scheduled tasks require system registration.** Run `metame daemon install-launchd` and tasks fire on schedule even with the screen locked
|
|
180
|
+
> **Scheduled tasks require system registration.** Run `metame daemon install-launchd` (macOS) or `metame daemon install-task-scheduler` (Windows) and tasks fire on schedule even with the screen locked — as long as the machine is on.
|
|
181
181
|
|
|
182
182
|
### 5. Skills That Evolve Themselves
|
|
183
183
|
|
|
@@ -199,17 +199,11 @@ Task fails → skill-scout finds a skill → installs → retries → succeeds
|
|
|
199
199
|
|
|
200
200
|
## Quick Start
|
|
201
201
|
|
|
202
|
-
**macOS / Linux:**
|
|
203
202
|
```bash
|
|
204
203
|
curl -fsSL https://raw.githubusercontent.com/Yaron9/MetaMe/main/install.sh | bash
|
|
205
204
|
```
|
|
206
205
|
|
|
207
|
-
**
|
|
208
|
-
```powershell
|
|
209
|
-
irm https://raw.githubusercontent.com/Yaron9/MetaMe/main/install.ps1 | iex
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
**Already have Node.js ≥ 18 (any platform):**
|
|
206
|
+
**Already have Node.js ≥ 18:**
|
|
213
207
|
```bash
|
|
214
208
|
npm install -g metame-cli
|
|
215
209
|
metame
|
|
@@ -224,7 +218,7 @@ metame
|
|
|
224
218
|
| 3. Cognitive interview | Just chat — MetaMe will automatically start a deep interview on first run | Builds `~/.claude_profile.yaml` (your digital twin's brain) |
|
|
225
219
|
| 4. Connect phone | Say "help me set up mobile access" or "connect my phone" | Interactive wizard for Telegram/Feishu bot setup → `~/.metame/daemon.yaml` |
|
|
226
220
|
| 5. Start daemon | `metame start` | Background daemon launches, bot goes online |
|
|
227
|
-
| 6. Register with system | macOS: `metame daemon install-launchd` · Linux: see below | Always-on, crash recovery |
|
|
221
|
+
| 6. Register with system | macOS: `metame daemon install-launchd` · Windows: `metame daemon install-task-scheduler` · Linux: see below | Always-on, crash recovery |
|
|
228
222
|
|
|
229
223
|
> **First time?** Just run `metame` and talk naturally. The interview and setup are conversational — no commands to memorize.
|
|
230
224
|
|
|
@@ -236,6 +230,18 @@ npm install -g metame-cli
|
|
|
236
230
|
> **What does system registration mean?**
|
|
237
231
|
> Once registered, MetaMe runs in the background automatically — screen locked, lid closed, woken from sleep — as long as the machine is on. Scheduled tasks fire on time. No terminal window needed.
|
|
238
232
|
|
|
233
|
+
**Windows — register with Task Scheduler:**
|
|
234
|
+
|
|
235
|
+
```powershell
|
|
236
|
+
metame daemon install-task-scheduler
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
> The daemon auto-starts at login. Remove with: `schtasks /delete /tn "MetaMe-Daemon" /f`
|
|
240
|
+
|
|
241
|
+
> **Windows notes:** Emoji display uses ASCII fallback (`[OK]`, `[FAIL]`) for GBK terminal compatibility. Named Pipes replace Unix sockets for IPC. `/mac` commands are not available.
|
|
242
|
+
|
|
243
|
+
> **Windows users: install natively, not via WSL.** WSL often fails to inherit the host's network proxy (causing npm install and Claude API timeouts), has path mapping issues, and process management doesn't interoperate. `npm install -g metame-cli` directly in PowerShell/CMD is the most reliable approach.
|
|
244
|
+
|
|
239
245
|
**WSL2 / Linux — register with systemd:**
|
|
240
246
|
|
|
241
247
|
```bash
|
|
@@ -282,6 +288,7 @@ systemctl --user start metame
|
|
|
282
288
|
| **Heartbeat System** | Three-layer programmable nervous system. Layer 0 kernel always-on (zero config). Layer 1 system evolution built-in (distill + memory + skills). Layer 2 your custom scheduled tasks with `require_idle`, `precondition`, `notify`, workflows. |
|
|
283
289
|
| **Multi-Agent** | Multiple projects with dedicated chat groups. `/agent bind` for one-tap setup. True parallel execution. |
|
|
284
290
|
| **Browser Automation** | Built-in Playwright MCP. Browser control out of the box for every user. |
|
|
291
|
+
| **Cross-Platform** | Native support for macOS and Windows. Platform abstraction layer handles spawn, IPC, process management, and terminal encoding automatically. |
|
|
285
292
|
| **Provider Relay** | Route through any Anthropic-compatible API. Use GPT-4, DeepSeek, Gemini — zero config file mutation. |
|
|
286
293
|
| **Metacognition** | Detects behavioral patterns (decision style, comfort zones, goal drift) and injects mirror observations. Zero extra API cost. |
|
|
287
294
|
| **Multi-User ACL** | Role-based permission system (admin / member / stranger). Share bots with teammates safely. Dynamic user management via `/user` commands with hot-reload config. |
|
|
@@ -414,7 +421,7 @@ All agents share your cognitive profile (`~/.claude_profile.yaml`) — they all
|
|
|
414
421
|
```
|
|
415
422
|
┌─────────────┐ Telegram/Feishu ┌──────────────────────────────┐
|
|
416
423
|
│ Your Phone │ ◄──────────────────────► │ MetaMe Daemon │
|
|
417
|
-
└─────────────┘ │ (your
|
|
424
|
+
└─────────────┘ │ (your machine, 24/7) │
|
|
418
425
|
│ │
|
|
419
426
|
│ ┌──────────────┐ │
|
|
420
427
|
│ │ Claude Code │ │
|
|
@@ -475,6 +482,22 @@ Includes: cognitive profile injection, daemon (Telegram/Feishu), heartbeat tasks
|
|
|
475
482
|
|
|
476
483
|
Use the plugin if you prefer not to install a global npm package and only need mobile access while Claude Code is open. Use the npm CLI (`metame-cli`) for 24/7 daemon, the `metame` command, and first-run interview.
|
|
477
484
|
|
|
485
|
+
## Contributing
|
|
486
|
+
|
|
487
|
+
MetaMe is early-stage and evolving fast. Every issue and PR directly shapes the project.
|
|
488
|
+
|
|
489
|
+
**Report a bug or request a feature:**
|
|
490
|
+
- Open an [Issue](https://github.com/Yaron9/MetaMe/issues) — describe what happened, what you expected, and your environment (macOS/Windows/WSL, Node version).
|
|
491
|
+
|
|
492
|
+
**Submit a PR:**
|
|
493
|
+
1. Fork the repo and create a branch from `main`
|
|
494
|
+
2. All source edits go in `scripts/` — run `npm run sync:plugin` to sync to `plugin/scripts/`
|
|
495
|
+
3. Run `npx eslint scripts/daemon*.js` — zero errors required
|
|
496
|
+
4. Run `npm test` — all tests must pass
|
|
497
|
+
5. Open a PR against `main` with a clear description
|
|
498
|
+
|
|
499
|
+
**Good first contributions:** Windows edge cases, new `/commands`, documentation improvements, test coverage.
|
|
500
|
+
|
|
478
501
|
## License
|
|
479
502
|
|
|
480
503
|
MIT
|