metame-cli 1.2.1 → 1.3.0
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 +113 -30
- package/index.js +402 -2
- package/package.json +3 -2
- package/scripts/daemon-default.yaml +49 -0
- package/scripts/daemon.js +1082 -0
- package/scripts/distill.js +220 -19
- package/scripts/feishu-adapter.js +189 -0
- package/scripts/schema.js +9 -0
- package/scripts/telegram-adapter.js +196 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# MetaMe Daemon Configuration
|
|
2
|
+
# Generated by: metame daemon init
|
|
3
|
+
|
|
4
|
+
telegram:
|
|
5
|
+
enabled: false
|
|
6
|
+
bot_token: null
|
|
7
|
+
allowed_chat_ids: []
|
|
8
|
+
|
|
9
|
+
feishu:
|
|
10
|
+
enabled: false
|
|
11
|
+
app_id: null
|
|
12
|
+
app_secret: null
|
|
13
|
+
allowed_chat_ids: []
|
|
14
|
+
|
|
15
|
+
heartbeat:
|
|
16
|
+
tasks: []
|
|
17
|
+
# Examples — uncomment or add your own:
|
|
18
|
+
#
|
|
19
|
+
# Scheduled task (calls claude -p with your profile context):
|
|
20
|
+
# - name: "morning-news"
|
|
21
|
+
# prompt: "抓取今天的AI领域重要新闻,整理成3条摘要,中英双语。"
|
|
22
|
+
# interval: "24h"
|
|
23
|
+
# model: "haiku"
|
|
24
|
+
# notify: true
|
|
25
|
+
#
|
|
26
|
+
# - name: "weekly-review"
|
|
27
|
+
# prompt: "基于我的profile,生成本周个人成长回顾和下周建议。"
|
|
28
|
+
# interval: "7d"
|
|
29
|
+
# model: "haiku"
|
|
30
|
+
# notify: true
|
|
31
|
+
#
|
|
32
|
+
# Script task (runs a local script directly, no claude -p):
|
|
33
|
+
# - name: "distill"
|
|
34
|
+
# type: "script"
|
|
35
|
+
# command: "node ~/.metame/distill.js"
|
|
36
|
+
# interval: "6h"
|
|
37
|
+
# precondition: "test -s ~/.metame/raw_signals.jsonl"
|
|
38
|
+
# notify: false
|
|
39
|
+
#
|
|
40
|
+
# precondition: shell command, empty output → skip (zero tokens)
|
|
41
|
+
# type: "script" → runs command directly instead of claude -p
|
|
42
|
+
|
|
43
|
+
budget:
|
|
44
|
+
daily_limit: 50000
|
|
45
|
+
warning_threshold: 0.8
|
|
46
|
+
|
|
47
|
+
daemon:
|
|
48
|
+
log_max_size: 1048576
|
|
49
|
+
heartbeat_check_interval: 60
|