config/agent.yaml 加 quotas 段;core/storage/usage.py 加 check_daily_quota (COUNT usage_events WHERE user_id+kind+created_at>=本地今日 00:00); SeedreamTool / SeedanceTool ctor 收 daily_limit, execute() 起手 if 超额 返 [Error] 不调远端不烧钱。错误串只暴露已用/上限 + 重置时间,不写 yaml 路径 (避免 LLM 转述泄漏内部 schema 给外部用户)。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| fs.py | ||
| run_python.py | ||
| seedance.py | ||
| seedream.py | ||
| shell.py | ||
| skill_tool.py | ||