Commit Graph

65 Commits

Author SHA1 Message Date
Liang Jiaqing
4e2b806917 Refactor: use native st.expander for folding turns, optimize stream trigger, and adjust window width 2026-04-03 11:47:07 +08:00
Liang Jiaqing
88f32b208b feat: support NativeToolClient and optimize tool use format for native API 2026-04-01 23:09:48 +08:00
Liang Jiaqing
629e57ad83 Refactor: 统一消息格式和Session架构重构
核心改动:
- 统一所有Session内部使用Claude content-block格式
- 引入BaseSession基类,简化代码结构
- tool_results从字符串改为结构化字典列表
- NativeClaudeSession增强:支持cr_token、metadata、thinking提取
- ToolClient简化:删除structured分支,统一使用protocol prompt
- MixinSession支持按名称选择session
- ljqCtrl_sop增加DPI坐标陷阱警告
2026-04-01 22:20:18 +08:00
Liang Jiaqing
f320d141a0 feat: CDP bridge extension integration - ext_ws session type, DOM-channel CDP/batch/cookies/tabs, autofill bringToFront fix, await support in SOP 2026-03-30 20:01:27 +08:00
Liang Jiaqing
bc5d1eafaf feat: add --bg/--input flags to agentmain, rename & simplify subagent SOP 2026-03-30 15:03:28 +08:00
Liang Jiaqing
473659ba6e refactor: agent loop done_hooks, inline_eval, scheduler logging & health_check
- agent_loop: for→while, _done_hooks callback mechanism, max_turns=40
- agentmain: pass self to handler, abort clears task queue
- stapp: heartbeat yield for Streamlit StopException detection
- ga: _inline_eval param for in-process eval, no_tool thresholds tuned
- scheduler: logging, max_delay_hours, weekday repeat, health_check()
2026-03-30 13:51:21 +08:00
Liang Jiaqing
53c492b682 agentmain: auto-switch cn schema for glm/minimax/kimi; tools_schema: trim descriptions; hub: fix scroll position on refresh 2026-03-29 15:08:11 +08:00
Liang Jiaqing
a5dbce396a refactor: remove XAI/Gemini sessions, add MixinSession fallback, improve error handling
- Remove GeminiSession and XaiSession from llmcore.py
- Add MixinSession: multi-endpoint fallback with exponential backoff
- ga.py: handle empty/incomplete/max_tokens responses
- Update mykey_template.py and GETTING_STARTED.md accordingly
2026-03-28 08:14:35 +08:00
Liang Jiaqing
ff258dd0a9 refine: context window, timeout, abort guard, code_run multi-call check, clean logs 2026-03-26 21:31:48 +08:00
Liang Jiaqing
ddce7ef549 feat: reflect hot-reload + enhance prompt caching & history compression 2026-03-24 22:58:20 +08:00
Liang Jiaqing
6f6d9f6570 feat: add NativeOAISession + minor fixes (code_run script fallback, thinking prompt tags) 2026-03-22 22:19:46 +08:00
Liang Jiaqing
a9f0e9628f fix: llm session tweaks & agent init refactor 2026-03-22 09:55:24 +08:00
Liang Jiaqing
fdc24e4dd0 add NativeClaudeSession+NativeToolClient, support parallel tool calls, fix tool_calls[-1:], add llm log 2026-03-21 12:13:46 +08:00
Liang Jiaqing
00038cd1ae refactor: unify LLM session constructors to accept cfg dict 2026-03-17 16:52:12 +08:00
Jiaqing Liang
d896355bad fix: key_info regex residue accumulation bug - non-greedy match stopped at first 工作记忆 leaving tail behind 2026-03-16 13:57:52 +08:00
Jiaqing Liang
065a5ee4bf refactor: working memory dict, merge chat paths, simplify SKILL docs 2026-03-16 13:18:41 +08:00
Liang Jiaqing
68a936eb2c debug print result; kimi temp=1.0 compat 2026-03-14 20:34:57 +08:00
Vivi 8n24
6fe93e9cb4 Add chat app adapters for QQ, Feishu, WeCom, and DingTalk 2026-03-13 16:04:18 +08:00
Liang Jiaqing
fd7bf241d0 rename sidercall.py to llmcore.py; add cache-aware cd to compress_history_tags 2026-03-13 13:21:32 +08:00
Liang Jiaqing
3942fe2056 minor: round-end newline, web error msg, autonomous subagent review, tmwebdriver troubleshoot 2026-03-12 22:24:35 +08:00
Jiaqing Liang
9f10e55d5e fix: defensive CDP config init (makedirs+try/except); tweak autonomous sop wording 2026-03-12 12:59:05 +08:00
Jiaqing Liang
006b915533 refactor: scheduler to JSON+cooldown, update SOP 2026-03-11 12:11:22 +08:00
Liang Jiaqing
2b387f2dcf ref: simplify feishu history injection, tune web_scan/plan_sop/driver 2026-03-09 08:55:22 +08:00
AspasZhang
7d444d065e feat: 添加飞书机器人集成 (#13)
* feat: add Feishu bot integration

- Add fsapp.py: Feishu bot webhook handler (root directory)
- Add assets/SETUP_FEISHU.md: Setup guide for Feishu integration
- Add assets/install_python_windows.bat: Windows Python installer script

* fix: 历史注入仅在飞书场景生效,避免混入本地CLI历史

* fix: fsapp调用put_task时传source='feishu'以触发历史注入

---------

Co-authored-by: 张洲嘉 <zhangzhoujia@zhangzhoujiadeMacBook-Air.local>
2026-03-09 08:45:11 +08:00
Liang Jiaqing
61d07a16a6 update: minor fixes to agentmain, mykey_template, sidercall 2026-03-07 22:34:23 +08:00
Liang Jiaqing
fd9f172588 style: simplify open/write + shorten prompt text 2026-03-06 21:49:43 +08:00
Liang Jiaqing
959cf6a5a6 refactor: use script_dir for init paths 2026-03-06 21:44:49 +08:00
Liang Jiaqing
cccbecb974 Merge PR #6: 火山引擎适配 + 路径修复
# Conflicts:
#	.gitignore
#	agentmain.py
2026-03-06 21:43:04 +08:00
Liang Jiaqing
524944dfc8 安全性提升:TID动态生成+Streamlit页面排除+工作记忆修复 2026-03-06 18:54:09 +08:00
wangmc1024
ffd08bcd21 允许消息内容中包含HTML代码并直接渲染 | 将纯相对路径改为基于脚本文件的绝对路径,便于全局调用 2026-03-05 22:59:26 +08:00
Liang Jiaqing
ed75d103f5 优化中间输出频率/plan_sop重构/autofill batch示例/README便携版链接 2026-03-04 17:14:13 +08:00
Liang Jiaqing
3f8407a853 CDP bridge扩展完善+SOP精简+insight修复+plan_sop+autonomous_sop更新 2026-03-04 12:02:50 +08:00
Jiaqing Liang
9219042a8f feat: add --reflect mode with error handling + scheduler/autonomous scripts 2026-03-02 23:25:31 +08:00
remy
df3b347653 Add retry/backoff and richer error logs for relay calls 2026-03-02 00:38:27 +10:00
remy
998382aebe Add responses api_mode support for OpenAI relay 2026-03-02 00:17:25 +10:00
Jiaqing Liang
07a53889fb fix: ljqCtrl Press list bug, update SOPs (must call working_mem), agentmain round-end marker 2026-02-24 16:43:05 +08:00
Jiaqing Liang
860d305c44 friendlier exit messages for tgapp; scheduler sleep-first and dir check 2026-02-24 11:13:24 +08:00
Liang Jiaqing
ac2f8ad1e1 agentmain: add timeout+sampling snapshot for task queue consumer 2026-02-23 21:51:21 +08:00
Liang Jiaqing
bb8331f926 fix: add try/except for LLM init, improve working memory prompt, fix autonomous report format 2026-02-21 13:33:28 +08:00
Liang Jiaqing
b8ce2ecf13 fix: move input outside try block to allow Ctrl+C exit 2026-02-20 12:54:29 +08:00
Liang Jiaqing
08d6cedc7d feat: 优化LLM显示、修复API路径、重构自主操作SOP、添加sche_tasks到gitignore
- agentmain.py: LLM列表显示增加backend类型
- sidercall.py: 统一API endpoint路径为/v1/chat/completions
- autonomous_operation_sop.md: 重构任务选择逻辑和报告目录规则
- .gitignore: 添加sche_tasks/目录排除
- 移除git追踪的sche_tasks任务报告文件
2026-02-20 11:10:04 +08:00
Liang Jiaqing
2cb7c079a7 refactor: use vars(mykey) to preserve key order, fix .items() iteration 2026-02-19 09:28:29 +08:00
Liang Jiaqing
38b5b3b86d refactor: insight两层场景映射格式 + L0同步 + 模板更新 2026-02-18 11:28:25 +08:00
Liang Jiaqing
55b5b4f8a3 fix: dedup working_mem hint, flush incremental output tail, sche_tasks path, CLI KeyboardInterrupt handling; add Termux instructions to README 2026-02-18 11:05:40 +08:00
Liang Jiaqing
f8e501a27a feat: add XaiSession backend, improve handler switch & tg resilience 2026-02-17 13:18:09 +08:00
Liang Jiaqing
32ad26f4ce feat: subagent SOP, autonomous SOP overhaul, ga.py try-block fix, launch llm_no param, agentmain streamline 2026-02-16 19:08:55 +08:00
Liang Jiaqing
480b131a0a update: README重写+agentmain/tgapp改进+SOP优化 2026-02-15 08:49:12 +08:00
Liang Jiaqing
ab48b35ca9 refactor: 使用假端口实现调度器单例控制
- 恢复 agentmain.py 到原始状态
- launch.pyw 使用端口 65432 检测单例
- 避免重复启动调度器实例
2026-02-14 10:17:26 +08:00
Liang Jiaqing
cf8c191ae9 feat: 添加调度器单例控制和launch启动集成
- agentmain.py: 添加单例锁机制,防止重复启动
- launch.pyw: 集成调度器启动,支持--no-scheduler参数
2026-02-14 10:13:16 +08:00
Liang Jiaqing
12d79b7847 feat: 添加定时任务调度器和相关配置
- 新增定时任务调度器(agentmain.py):支持基于时间戳的任务自动执行
- 添加scheduled_task_sop.md:定时任务执行流程文档
- 优化agent_loop.py:移除错误提示emoji
- 调整sidercall.py:降低context_win至10000
- 更新.gitignore:忽略tasks目录,白名单scheduled_task_sop.md
2026-02-14 10:10:10 +08:00