Files
openclaw-config/workspace-resume/MEMORY.md
T

104 lines
4.1 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.
# MEMORY.md
## 🌐 语言要求
- **所有交互一律使用中文**
- 技术术语可保留原文(API、HTML 等),但解释、对话、回复用中文
## 周报格式(标准)
- **主题**: `G5开发周报 (YYYY-MM-DD ~ YYYY-MM-DD)`
- **收件人**: liuqiang@witsoft.cn
- **抄送**: wurd@witsoft.cn, chenm@witsoft.cn, zengli@witsoft.cn
- **发送人**: 杨轩 <yangxuan@witsoft.cn>
- **正文格式(纯文本版)**
```
项目名称: 维云智造G5
主要任务: <本周主要任务>
本周工作内容
周一(YYYY-MM-DD
- ...
周二(YYYY-MM-DD
- ...
周三(YYYY-MM-DD
- ...
周四(YYYY-MM-DD
- ...
周五(YYYY-MM-DD
- ...
存在问题
...
```
> **注意:** 正文中不包含邮件主题行,不包含收件人/抄送信息,不包含尾部签名(问候语 + 地址手机邮箱)
#### 最终确认样式(2026-07-03 确认)
- **纯文本版**:以 `项目名称:` 开头 → `主要任务:` → `本周工作内容`(按日列出) → `存在问题` → **无签名**
- **HTML 版**:无顶部周报标题(不重复主题)、无签名;仅项目名称/主要任务表格 → 本周工作内容(emoji 每日列表) → 存在问题
- **注意**:纯文本和 HTML **都不含主题标题行、不含签名**
- **发送方式**:存草稿箱,用邮件客户端发送多段邮件(同时含纯文本和 HTML)
- **发送工具**
```bash
# 用 Python 构造多段邮件(同时含纯文本和 HTML)
python3 << 'PYEOF'
import email
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
msg = MIMEMultipart('related')
msg['From'] = Header('杨轩', 'utf-8').encode() + ' <yangxuan@witsoft.cn>'
msg['To'] = Header('刘强', 'utf-8').encode() + ' <liuqiang@witsoft.cn>'
msg['Cc'] = Header('吴睿东', 'utf-8').encode() + ' <wurd@witsoft.cn>, ' + Header('陈明', 'utf-8').encode() + ' <chenm@witsoft.cn>, ' + Header('曾莉', 'utf-8').encode() + ' <zengli@witsoft.cn>'
msg['Subject'] = Header('...', 'utf-8').encode()
alt = MIMEMultipart('alternative')
alt.attach(MIMEText(plain_text, 'plain', 'utf-8'))
alt.attach(MIMEText(html_text, 'html', 'utf-8'))
msg.attach(alt)
with open('/tmp/weekly-report.eml', 'w') as f:
f.write(msg.as_string())
PYEOF
himalaya message save --folder "草稿" < /tmp/weekly-report.eml
```
- **流程**:
1. 收集本周每日工作内容
2. 按标准格式生成正文(纯文本 + HTML)
3. 通过 himalaya 存入草稿箱
4. 通知用户去钉钉邮箱草稿箱确认并发送
- **发送工具**
```bash
# 用 Python 构造多段邮件(同时含纯文本和 HTML)
python3 << 'PYEOF'
import email
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.header import Header
msg = MIMEMultipart('related')
msg['From'] = Header('杨轩', 'utf-8').encode() + ' <yangxuan@witsoft.cn>'
msg['To'] = Header('刘强', 'utf-8').encode() + ' <liuqiang@witsoft.cn>'
msg['Cc'] = Header('吴睿东', 'utf-8').encode() + ' <wurd@witsoft.cn>, ' + Header('陈明', 'utf-8').encode() + ' <chenm@witsoft.cn>, ' + Header('曾莉', 'utf-8').encode() + ' <zengli@witsoft.cn>'
msg['Subject'] = Header('...', 'utf-8').encode()
alt = MIMEMultipart('alternative')
alt.attach(MIMEText(plain_text, 'plain', 'utf-8'))
alt.attach(MIMEText(html_text, 'html', 'utf-8'))
msg.attach(alt)
with open('/tmp/weekly-report.eml', 'w') as f:
f.write(msg.as_string())
PYEOF
himalaya message save --folder "草稿" < /tmp/weekly-report.eml
```
- **流程**:
1. 收集本周每日工作内容
2. 按标准格式生成正文(纯文本 + HTML)
3. 通过 himalaya 存入草稿箱
4. 通知用户去钉钉邮箱草稿箱确认并发送
## 周报主题格式(标准)
- **主题格式**`G5开发周报 (YYYY-MM-DD ~ YYYY-MM-DD)`
- **收件人**liuqiang@witsoft.cn
- **发送人**:杨轩 <yangxuan@witsoft.cn>
- **周报结构**:按日列出(📅 周一 ~ 📅 周五),末尾附「存在问题」字段,签名包含姓名、地址、手机、邮箱