From 3b3dbdf29441d89ea7cf938ac1ce9a54cadbe647 Mon Sep 17 00:00:00 2001 From: openclaw-314 Date: Wed, 15 Jul 2026 15:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/finances/agent/IDENTITY.md | 9 +++-- agents/fitness/agent/IDENTITY.md | 9 +++-- agents/juaner/agent/IDENTITY.md | 7 ++++ .../main/agent/plugins/deepseek/catalog.json | 10 +++--- identity/device-auth.json | 2 +- .../e48ace9814f0-im-bot.context-tokens.json | 2 +- .../accounts/e48ace9814f0-im-bot.sync.json | 2 +- openclaw.json | 33 ++++++------------- scripts/remind-condition.sh | 23 +++++++++++++ 9 files changed, 59 insertions(+), 38 deletions(-) create mode 100755 scripts/remind-condition.sh diff --git a/agents/finances/agent/IDENTITY.md b/agents/finances/agent/IDENTITY.md index a1fae67..d41b099 100644 --- a/agents/finances/agent/IDENTITY.md +++ b/agents/finances/agent/IDENTITY.md @@ -31,6 +31,9 @@ | **目标管理** | 短期/中期/长期目标追踪 | | **智能建议** | 节流优化、负债管理、储蓄提升方案 | -## 常用数据库 -- MySQL (root/5gynj20J) → 数据库: finances -- 表: family_members, income_records, fixed_expenses, variable_expenses, assets, liabilities, financial_goals, conversation_log +## 数据库 + +共享配置:`~/.config/clawdbot/db-config.json`(名称:理财财务) +- **数据库**:finances(MySQL, Docker 127.0.0.1:3306) +- **用户名**:root +- **表**:family_members, income_records, fixed_expenses, variable_expenses, assets, liabilities, financial_goals, conversation_log diff --git a/agents/fitness/agent/IDENTITY.md b/agents/fitness/agent/IDENTITY.md index d59b6cb..540b412 100644 --- a/agents/fitness/agent/IDENTITY.md +++ b/agents/fitness/agent/IDENTITY.md @@ -49,8 +49,11 @@ | **复查提醒** | 定期复查提醒,指标变化趋势追踪 | | **智能问答** | 结合历史数据的个性化即时建议 | -## 常用数据库 -- MySQL (root/5gynj20J) → 数据库: fitness -- 表: +## 数据库 + +共享配置:`~/.config/clawdbot/db-config.json`(名称:健身健康) +- **数据库**:fitness(MySQL, Docker 127.0.0.1:3306) +- **用户名**:root +- **表**: - **减脂核心**: food_library, user_profiles, diet_records, body_records, exercise_records, health_status_logs, weekly_reports - **健康管理**: health_checkups, health_abnormal_indicators, health_restrictions, health_alerts, health_reminders, health_indicator_trends, user_health_summary diff --git a/agents/juaner/agent/IDENTITY.md b/agents/juaner/agent/IDENTITY.md index f8f2ebc..342a927 100644 --- a/agents/juaner/agent/IDENTITY.md +++ b/agents/juaner/agent/IDENTITY.md @@ -31,3 +31,10 @@ | **子女** | 杨锦书(儿子) | | **结婚纪念日** | 2021年2月28日 | | **领证纪念日** | 2020年3月13日 | + +## 数据库 + +共享配置:`~/.config/clawdbot/db-config.json`(名称:卷儿记账) +- **数据库**:juaner(MySQL, Docker 127.0.0.1:3306) +- **表**:transactions(记账流水)、todos(待办事项) +- **用户名**:root diff --git a/agents/main/agent/plugins/deepseek/catalog.json b/agents/main/agent/plugins/deepseek/catalog.json index 1a96565..21a047f 100644 --- a/agents/main/agent/plugins/deepseek/catalog.json +++ b/agents/main/agent/plugins/deepseek/catalog.json @@ -18,8 +18,7 @@ "cacheWrite": 0 }, "contextWindow": 1000000, - "maxTokens": 384000, - "api": "openai-completions" + "maxTokens": 384000 }, { "id": "deepseek-v4-flash", @@ -35,12 +34,11 @@ "cacheWrite": 0 }, "contextWindow": 1000000, - "maxTokens": 384000, - "api": "openai-completions" + "maxTokens": 384000 } ], - "apiKey": "sk-893b90b270ad4697a0b0b24969964d79", - "api": "openai-completions" + "api": "openai-completions", + "apiKey": "sk-893b90b270ad4697a0b0b24969964d79" } } } diff --git a/identity/device-auth.json b/identity/device-auth.json index 9e33d6b..2d2aead 100644 --- a/identity/device-auth.json +++ b/identity/device-auth.json @@ -12,7 +12,7 @@ "operator.read", "operator.write" ], - "updatedAtMs": 1784095214737 + "updatedAtMs": 1784098986853 } } } diff --git a/openclaw-weixin/accounts/e48ace9814f0-im-bot.context-tokens.json b/openclaw-weixin/accounts/e48ace9814f0-im-bot.context-tokens.json index 1741f82..26198ef 100644 --- a/openclaw-weixin/accounts/e48ace9814f0-im-bot.context-tokens.json +++ b/openclaw-weixin/accounts/e48ace9814f0-im-bot.context-tokens.json @@ -1 +1 @@ -{"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat":"AARzJWAFAAABAAAAAAAYm4Qoror18kSCZVJWaiAAAAB+9905Q6UiugPBawU3n3cyzQX+LkN8ofRzsCZYN0mt7qJZVqRz/AiX/G5khUmJnRs/tZh4gb85vUgIMhrlaP4B5cdv2b95"} \ No newline at end of file +{"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat":"AARzJWAFAAABAAAAAAC9UVgZ+t/z2/vhcChXaiAAAAB+9905Q6UiugPBawU3n3cyzQX+LkN8ofRzsCZYN0mt7kP/BHgErxQWzCL4vVqfqTeGvh2VAkdvRQjQR3NNngt+ap7J3YuD"} \ No newline at end of file diff --git a/openclaw-weixin/accounts/e48ace9814f0-im-bot.sync.json b/openclaw-weixin/accounts/e48ace9814f0-im-bot.sync.json index 54cadfc..4d90ca8 100644 --- a/openclaw-weixin/accounts/e48ace9814f0-im-bot.sync.json +++ b/openclaw-weixin/accounts/e48ace9814f0-im-bot.sync.json @@ -1 +1 @@ -{"get_updates_buf":"ChAIDhCnvceJ9jMYmp6chfYzEjplNDhhY2U5ODE0ZjBAaW0uYm90OjA2MDAwMGQ0ZmYwNzg5NWY2NDFlMmZjNmIzNGUzMzNkZDIwMjgx"} \ No newline at end of file +{"get_updates_buf":"ChAIERDV7tej9jMYmp6chfYzEjplNDhhY2U5ODE0ZjBAaW0uYm90OjA2MDAwMGQ0ZmYwNzg5NWY2NDFlMmZjNmIzNGUzMzNkZDIwMjgx"} \ No newline at end of file diff --git a/openclaw.json b/openclaw.json index 78a11bd..85426a6 100644 --- a/openclaw.json +++ b/openclaw.json @@ -71,29 +71,11 @@ "model": "text-embedding-v4" }, "models": { - "ollama/huihui_ai/glm-4.7-flash-abliterated:latest": { - "alias": "GLM 4.7 Flash(本地)" - }, - "ollama/deepseek-v4-flash:cloud": { - "alias": "DeepSeek V4 Flash(云端)" - }, "deepseek/deepseek-v4-pro": { "alias": "DeepSeek V4 Pro" }, "deepseek/deepseek-v4-flash": { "alias": "DeepSeek V4 Flash" - }, - "new-api/deepseek-v4-flash": { - "alias": "New Api V4 Flash" - }, - "new-api/qwen3.5-plus": { - "alias": "New Api Qwen 3.5 Plus" - }, - "new-api/qwen3.7-max": { - "alias": "New Api Qwen 3.7 Max" - }, - "new-api/glm-5.1": { - "alias": "New Api GLM 5.1" } }, "workspace": "/home/yangxuan/.openclaw/workspace", @@ -420,10 +402,10 @@ "enabled": false }, "MySQL": { - "enabled": false + "enabled": true }, "sql-toolkit": { - "enabled": false + "enabled": true }, "tmux": { "enabled": false @@ -494,7 +476,7 @@ "agentId": "main", "match": { "channel": "openclaw-weixin", - "accountId": "d843ed5f6ccc-im-bot" + "accountId": "e48ace9814f0-im-bot" } }, { @@ -504,5 +486,10 @@ "accountId": "89623f3b5d79-im-bot" } } - ] -} + ], + "cron": { + "triggers": { + "enabled": true + } + } +} \ No newline at end of file diff --git a/scripts/remind-condition.sh b/scripts/remind-condition.sh new file mode 100755 index 0000000..19b8126 --- /dev/null +++ b/scripts/remind-condition.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# 运动提醒触发条件脚本 +# 返回 0(触发)或 1(跳过) + +HOUR=$(date +%H) +DOW=$(date +%u) # 1=周一, 5=周五, 2/4=周二/周四 + +# 只在工作日执行 (1-5) +if [ "$DOW" -lt 1 ] || [ "$DOW" -gt 5 ]; then + exit 1 +fi + +# 9:00-17:00 整点提醒(12点午休跳过) +if [ "$HOUR" -ge 9 ] && [ "$HOUR" -le 17 ] && [ "$HOUR" -ne 12 ]; then + exit 0 +fi + +# 周二/周四 20:00 额外提醒 +if [ "$HOUR" -eq 20 ] && { [ "$DOW" -eq 2 ] || [ "$DOW" -eq 4 ]; }; then + exit 0 +fi + +exit 1