Files
my-assistant/memory/2026-03-29.md
root 0227d525f9 feat: add daily learning summary script with cron task
- Create scripts/daily_learning.sh for daily chat review
- Set up cron task at 3 AM daily
- Log file: logs/daily_learning.log
- Learning records: memory/daily_learning.md
2026-03-30 03:01:34 +08:00

99 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-03-29 Daily Memory
## User Info
- User: 罗国财 (userid: 121922510028034588)
- Role: 产研部门负责人
## MCP Services Configured (4 total)
| Name | URL Key | Purpose |
|------|---------|---------|
| 钉钉文档 | ...?key=70fb6676... | 文档操作 |
| 钉钉MCP | ...?key=1ef173d1... | 日历/日程 |
| 钉钉MCP2 | ...?key=ec174881... | 通讯录/用户 |
| 钉钉待办 | ...?key=7f8ad91c... | 待办管理 |
## DingTalk API Notes
- ⚠️ Time parameters are in **milliseconds**, not seconds
- ⚠️ Field names use lowercase `userid`, not `userId`
- Calendar query: `list_calendar_events` needs millisecond timestamps:
- startTime/endTime in milliseconds
- Example: 2026-03-30 = 1774800000000 to 1774886400000
## DingTalk MCP Mapping Rules
| Feature | Use |
|---------|-----|
| 钉钉文档 | 钉钉文档 MCP |
| 钉钉日程 | 钉钉日程 MCP |
| 钉钉待办 | 钉钉待办 MCP |
| 钉钉通讯录 | 钉钉通讯录 MCP |
| Other DingTalk | Use skills/API |
## Email Config
- Tencent Enterprise Email (IMAP)
- IMAP: imap.exmail.qq.com:993 (SSL)
- SMTP: smtp.exmail.qq.com:465 (SSL)
- Account: lgc@77ircloud.com
- ⚠️ READ ONLY - never delete emails
- Important sender: fj@77ircloud.com
## Email Summary Cron
- Script: scripts/email_summary.py
- Schedule: Daily 9 AM
- Logs: logs/email_summary.log
## Skills Installed Today
- dingtalk-api (from github)
- skill-creator
- pdf
- docx
- canvas-design
- lobster-email
## Work Reports Stored
- File: memory/luoguocai_weekly_reports.md
- 6 weekly reports from 2026-02 to 2026-03 (incomplete due to API 1000-char limit)
## Calendar Tomorrow (2026-03-30)
- 10:00-11:00: 会议 (self-created)
- 11:00-12:00: 产研经理人周会 (陈咏梅)
- 14:00-15:00: 生产健康度review周会 (薛凯杰) - CANCELLED
- 16:45-17:30: 质量管理部周例会 (薛凯杰)
- 17:30-18:00: 前端周会 (刘畅)
- 17:30-18:00: 业务后台周例会 (韦成双)
- 17:30-18:00: 产品及设计周例会 (self)
Note: Multiple meetings overlap at 17:30-18:00
## MiniMax TTS → 钉钉语音
### 脚本
- `scripts/dingtalk_tts.sh` - MiniMax TTS 生成语音并发送到钉钉
### 使用方式
```bash
bash scripts/dingtalk_tts.sh "要说的内容"
```
### 流程
1. MiniMax TTS (hex audio) → Python 解析 → MP3
2. MP3 上传到 oapi.dingtalk.com/media/upload (type=voice)
3. 发送使用 /v1.0/robot/oToMessages/batchSend API
### 关键发现
- DingTalk 语音消息用 MP3 格式即可
- API: POST https://api.dingtalk.com/v1.0/robot/oToMessages/batchSend
- msgKey: sampleAudio
- msgParam: {"mediaId":"xxx","duration":"秒"}
- **重要**: duration 参数使用**秒**(整数),不是毫秒
### ⚠️ 重要规则
**后续回复:如果用户要求语音回复,直接使用 `bash scripts/dingtalk_tts.sh "回复内容"` 发送语音消息**
## 语音处理规则2026-03-30 更新)
**默认规则**
- 用户发语音 → Whisper 转文字 → **文字回复**
- 用户特别标注「语音回复」→ MiniMax TTS → **语音回复**
**简单说**:正常文字回复,特殊要求才语音回复