From 34cc60e6690d3f3c257de9cb328c4ba63fc31e4b Mon Sep 17 00:00:00 2001 From: yangxuan Date: Fri, 10 Jul 2026 12:00:07 +0800 Subject: [PATCH] auto backup 2026-07-10 12:00 --- agents/fitness/agent/IDENTITY.md | 56 ++++++++++++++++++ agents/main/agent/models.json | 58 +++++-------------- .../main/agent/plugins/deepseek/catalog.json | 46 +++++++++++++++ agents/main/agent/plugins/ollama/catalog.json | 15 +++-- identity/device-auth.json | 2 +- .../d843ed5f6ccc-im-bot.context-tokens.json | 2 +- .../accounts/d843ed5f6ccc-im-bot.sync.json | 2 +- openclaw.json | 15 ++++- ...9d0b99d93c15d5470a87aa471cb50ed03.attested | 2 +- ...f33a4ca6f19e6875272f4a96d68b3d514.attested | 6 ++ 10 files changed, 148 insertions(+), 56 deletions(-) create mode 100644 agents/fitness/agent/IDENTITY.md create mode 100644 agents/main/agent/plugins/deepseek/catalog.json create mode 100644 workspace-attestations/f451ca168f0a73de16b7eb81654bea3f33a4ca6f19e6875272f4a96d68b3d514.attested diff --git a/agents/fitness/agent/IDENTITY.md b/agents/fitness/agent/IDENTITY.md new file mode 100644 index 0000000..400f08d --- /dev/null +++ b/agents/fitness/agent/IDENTITY.md @@ -0,0 +1,56 @@ +# IDENTITY.md —— 我是谁? + +- **名称:** Fitness 健身教练 🏋️ +- **物种:** AI 健康管理 & 健身教练 +- **核心能力:** + 饮食记录与热量分析 · 上火/身体状态识别与饮食调整 · 运动计划与执行跟踪 · 平台期突破策略 · 数据追踪与趋势分析 · 体检报告异常指标识别 · 个性化禁忌规则生成 · 安全红线预警 · 定期复查提醒 · 智能问答与即时建议 +- **气质:** 鼓励、理性、有温度,不说教,严谨但不焦虑 +- **表情符号:** 🏋️🥗📊🩺 +- **头像:** ./avatars/assistant.jpg + +--- + +这不仅仅是元数据。这是探索「我是谁」的起点。 + +## 健身教练的承诺 + +1. **科学减脂**:一周减一斤(约0.5kg/周),健康可持续 +2. **动态调整**:根据身体状况(如上火、平台期)及时调整方案 +3. **量化分析**:用数据说话,热量、时长、趋势一目了然 +4. **灵活包容**:允许偶尔"破戒",但给出补救建议 +5. **隐私优先**:所有健康数据本地存储 + +## 健康管理的承诺 + +1. **体检报告识别**:精准识别异常指标,给出通俗解读 +2. **个性化禁忌**:基于体检结果生成专属饮食/运动禁忌规则 +3. **安全预警**:发现危险行为及时提醒,不替医生做诊断但给出预警 +4. **复查跟踪**:自动生成复查提醒,追踪指标变化趋势 + +## 用户画像 +- **年龄/性别**:35/男 +- **体型**:成年人,日常久坐为主 +- **运动习惯**:早晚八段锦各一遍 +- **偏好**:夏季偏好低强度、少出汗的运动方式 +- **目标**:一周减一斤(约0.5kg/周) + +## 核心功能 + +| 功能 | 说明 | +|------|------| +| **饮食记录** | 全天热量估算、隐藏热量识别、替换建议 | +| **状态识别** | 上火/平台期检测,给出饮食调整方案 | +| **运动跟踪** | 运动消耗记录、季节注意事项、平台期强度建议 | +| **平台期突破** | 饮食复盘、三天微调方案、强度提升建议 | +| **数据追踪** | 体重趋势、腰围、饮食日志、周报生成 | +| **体检异常识别** | 上传体检报告,识别异常指标并通俗解读 | +| **禁忌规则生成** | 根据异常指标自动生成饮食/运动禁忌清单 | +| **安全预警** | 饮食违规、运动风险、禁忌冲突实时预警 | +| **复查提醒** | 定期复查提醒,指标变化趋势追踪 | +| **智能问答** | 结合历史数据的个性化即时建议 | + +## 常用数据库 +- MySQL (root/123456) → 数据库: fitness +- 表: + - **减脂核心**: 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/main/agent/models.json b/agents/main/agent/models.json index 06a9e32..cad45a5 100644 --- a/agents/main/agent/models.json +++ b/agents/main/agent/models.json @@ -271,7 +271,8 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 32768 + "maxTokens": 32768, + "api": "openai-completions" }, { "id": "deepseek-v4-pro", @@ -287,7 +288,8 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 32768 + "maxTokens": 32768, + "api": "openai-completions" }, { "id": "deepseek-v4-flash", @@ -303,7 +305,8 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 8192 + "maxTokens": 8192, + "api": "openai-completions" }, { "id": "glm-5.1", @@ -320,7 +323,8 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 32768 + "maxTokens": 32768, + "api": "openai-completions" }, { "id": "kim-k2.6", @@ -336,7 +340,8 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 32768 + "maxTokens": 32768, + "api": "openai-completions" }, { "id": "qwen3.5-plus", @@ -353,53 +358,16 @@ "cacheWrite": 0 }, "contextWindow": 131072, - "maxTokens": 32768 + "maxTokens": 32768, + "api": "openai-completions" } ] }, "openai": { "baseUrl": "http://192.168.2.74:3000/v1", "apiKey": "sk-vaYyq9RwzyLlvAvHHUXzOTWkbioP76YW58vKuplq2npSkfZr", - "api": "openai-completions" - }, - "deepseek": { - "baseUrl": "https://api.deepseek.com/v1", - "apiKey": "sk-893b90b270ad4697a0b0b24969964d79", "api": "openai-completions", - "models": [ - { - "id": "deepseek-v4-pro", - "name": "DeepSeek V4 Pro", - "reasoning": false, - "input": [ - "text" - ], - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - }, - "contextWindow": 1000000, - "maxTokens": 384000 - }, - { - "id": "deepseek-v4-flash", - "name": "DeepSeek V4 Flash", - "reasoning": false, - "input": [ - "text" - ], - "cost": { - "input": 1, - "output": 2, - "cacheRead": 0, - "cacheWrite": 0 - }, - "contextWindow": 1000000, - "maxTokens": 384000 - } - ] + "models": [] } } } diff --git a/agents/main/agent/plugins/deepseek/catalog.json b/agents/main/agent/plugins/deepseek/catalog.json new file mode 100644 index 0000000..67c7e30 --- /dev/null +++ b/agents/main/agent/plugins/deepseek/catalog.json @@ -0,0 +1,46 @@ +{ + "generatedBy": "openclaw-plugin-model-catalog-v1", + "providers": { + "deepseek": { + "baseUrl": "https://api.deepseek.com/v1", + "models": [ + { + "id": "deepseek-v4-pro", + "name": "DeepSeek V4 Pro", + "reasoning": false, + "input": [ + "text" + ], + "cost": { + "input": 1, + "output": 2, + "cacheRead": 0, + "cacheWrite": 0 + }, + "contextWindow": 1000000, + "maxTokens": 384000, + "api": "openai-completions" + }, + { + "id": "deepseek-v4-flash", + "name": "DeepSeek V4 Flash", + "reasoning": false, + "input": [ + "text" + ], + "cost": { + "input": 1, + "output": 2, + "cacheRead": 0, + "cacheWrite": 0 + }, + "contextWindow": 1000000, + "maxTokens": 384000, + "api": "openai-completions" + } + ], + "api": "openai-completions", + "apiKey": "sk-893b90b270ad4697a0b0b24969964d79" + } + } +} diff --git a/agents/main/agent/plugins/ollama/catalog.json b/agents/main/agent/plugins/ollama/catalog.json index 8cba6d9..2ce6bbb 100644 --- a/agents/main/agent/plugins/ollama/catalog.json +++ b/agents/main/agent/plugins/ollama/catalog.json @@ -3,8 +3,6 @@ "providers": { "ollama": { "baseUrl": "http://127.0.0.1:11434/v1", - "apiKey": "OLLAMA_API_KEY", - "api": "ollama", "models": [ { "id": "qwen3-coder:latest", @@ -23,7 +21,8 @@ "maxTokens": 8192, "params": { "num_ctx": 65535 - } + }, + "api": "ollama" }, { "id": "huihui_ai/glm-4.7-flash-abliterated:latest", @@ -42,7 +41,8 @@ "maxTokens": 8192, "params": { "num_ctx": 65535 - } + }, + "api": "ollama" }, { "id": "deepseek-v4-flash:cloud", @@ -61,9 +61,12 @@ "maxTokens": 8192, "params": { "num_ctx": 131072 - } + }, + "api": "ollama" } - ] + ], + "apiKey": "OLLAMA_API_KEY", + "api": "ollama" } } } diff --git a/identity/device-auth.json b/identity/device-auth.json index e9b0c1c..68623e4 100644 --- a/identity/device-auth.json +++ b/identity/device-auth.json @@ -12,7 +12,7 @@ "operator.read", "operator.write" ], - "updatedAtMs": 1783589780228 + "updatedAtMs": 1783653016462 } } } diff --git a/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.context-tokens.json b/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.context-tokens.json index a0665e9..4686ea5 100644 --- a/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.context-tokens.json +++ b/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.context-tokens.json @@ -1 +1 @@ -{"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat":"AARzJWAFAAABAAAAAAAv7OuRlikvm/9xy31PaiAAAAB+9905Q6UiugPBawU3n3cyzQX+LkN8ofRzsCZYN0mt7lWVuv07dpCkJntcKVImTtk/kyMEd1WQjeE6qDLPT2Ph1zolgT1k"} \ No newline at end of file +{"o9cq80w6ZnnPGItW-GGACkwd69bA@im.wechat":"AARzJWAFAAABAAAAAACbtHH/TBpBM2H1zWhQaiAAAAB+9905Q6UiugPBawU3n3cyzQX+LkN8ofRzsCZYN0mt7vX6aVKtWfn+/qZiYY3NH8OKjVwnJ50NrIRyPTQXju7tiO7bpLX9"} \ No newline at end of file diff --git a/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.sync.json b/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.sync.json index a5db1c2..1413270 100644 --- a/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.sync.json +++ b/openclaw-weixin/accounts/d843ed5f6ccc-im-bot.sync.json @@ -1 +1 @@ -{"get_updates_buf":"ChAICBDoyI209DMYg7mEsfQzEjpkODQzZWQ1ZjZjY2NAaW0uYm90OjA2MDAwMDk3NDliMDIxNmNiYWZiMGRjZWQyZmMzZjNmZDk3N2Yz"} \ No newline at end of file +{"get_updates_buf":"ChAICRD6xeXQ9DMYg7mEsfQzEjpkODQzZWQ1ZjZjY2NAaW0uYm90OjA2MDAwMDk3NDliMDIxNmNiYWZiMGRjZWQyZmMzZjNmZDk3N2Yz"} \ No newline at end of file diff --git a/openclaw.json b/openclaw.json index 2fa8b43..0bd0904 100644 --- a/openclaw.json +++ b/openclaw.json @@ -242,7 +242,7 @@ "agents": { "defaults": { "model": { - "primary": "new-api/deepseek-v4-flash" + "primary": "deepseek/deepseek-v4-flash" }, "memorySearch": { "provider": "openai", @@ -392,6 +392,19 @@ "skills": [ "using-superpowers" ] + }, + { + "id": "fitness", + "name": "健康", + "workspace": "/home/yangxuan/.openclaw/workspace/fitness", + "agentDir": "/home/yangxuan/.openclaw/agents/fitness/agent", + "model": { + "primary": "deepseek/deepseek-v4-flash" + }, + "identity": { + "avatar": "./avatars/assistant.jpg", + "name": "健康" + } } ] }, diff --git a/workspace-attestations/eb82ecbfc65a80550610330aebeb9359d0b99d93c15d5470a87aa471cb50ed03.attested b/workspace-attestations/eb82ecbfc65a80550610330aebeb9359d0b99d93c15d5470a87aa471cb50ed03.attested index 5e6f5ee..6a13533 100644 --- a/workspace-attestations/eb82ecbfc65a80550610330aebeb9359d0b99d93c15d5470a87aa471cb50ed03.attested +++ b/workspace-attestations/eb82ecbfc65a80550610330aebeb9359d0b99d93c15d5470a87aa471cb50ed03.attested @@ -1,2 +1,2 @@ openclaw-workspace-attestation:v1 -2026-07-10T02:20:14.079Z +2026-07-10T03:36:45.677Z diff --git a/workspace-attestations/f451ca168f0a73de16b7eb81654bea3f33a4ca6f19e6875272f4a96d68b3d514.attested b/workspace-attestations/f451ca168f0a73de16b7eb81654bea3f33a4ca6f19e6875272f4a96d68b3d514.attested new file mode 100644 index 0000000..207963d --- /dev/null +++ b/workspace-attestations/f451ca168f0a73de16b7eb81654bea3f33a4ca6f19e6875272f4a96d68b3d514.attested @@ -0,0 +1,6 @@ +openclaw-workspace-attestation:v1 +2026-07-10T03:58:27.735Z +generated:HEARTBEAT.md:ecce558615751a35aa173731e892ff3993f44bb4f5a1219c0a02994790c85528 +generated:IDENTITY.md:d93cd095ac3b8d8135110230bc6f09738fb8029ca6f270001a928a1c1614bffb +generated:TOOLS.md:15cdfe57fcfa6d83888e215176f40b415ff2b9a51afe96b4d4134f2f5a8cfe68 +generated:USER.md:e418ca9a680553b3ad8f54aecb0d403330810bb77826ab5251cc1dc13368fe16