Commit Graph

69 Commits

Author SHA1 Message Date
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
fe7e4c0952 refine: tool schema descriptions, docstring format, context_win 18000→20000 2026-03-29 13:06:06 +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
38e2a460e3 refactor: optimize code extraction priority in tool handlers & update autofill SOP 2026-03-27 19:43:46 +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
1b60d2c773 minor: tweak prompt wording, improve OAI history compression 2026-03-25 10:00:16 +08:00
Liang Jiaqing
b92d2bc97d fix: always compress history tags, adjust context trim thresholds 2026-03-25 08:37:46 +08:00
Liang Jiaqing
651e0d2bc8 refactor: extract code_run header to external file, add subprocess gbk fallback patch 2026-03-24 09:52:55 +08:00
Liang Jiaqing
5643bfb5f0 code_run自动注入常用import+memory路径; ljqCtrl_sop补充文本输入方法 2026-03-24 00:00:20 +08:00
Liang Jiaqing
60f40e3c5e feat(wechat): add send_file via CDN upload; fix _strip_md robustness
- Add WxBotClient.send_file() with AES-128-ECB encryption and CDN upload
- Extract [FILE:] tags before _clean() to preserve filenames
- Fix _strip_md: support 3+ backticks via backreference, stop stripping underscores
- Remove verbose key_info echo from update_working_checkpoint
2026-03-23 17:55:20 +08:00
Jiaqing Liang
47e9a55feb feat: add file ref expansion syntax for file_patch and file_write 2026-03-23 13:50:11 +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
fdc24e4dd0 add NativeClaudeSession+NativeToolClient, support parallel tool calls, fix tool_calls[-1:], add llm log 2026-03-21 12:13:46 +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
3942fe2056 minor: round-end newline, web error msg, autonomous subagent review, tmwebdriver troubleshoot 2026-03-12 22:24:35 +08:00
Jiaqing Liang
33f2df4270 feat: 添加web_scan的text_only参数支持Shadow DOM文本提取 2026-03-11 14:48:19 +08:00
Liang Jiaqing
2b387f2dcf ref: simplify feishu history injection, tune web_scan/plan_sop/driver 2026-03-09 08:55:22 +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
313f8a28f0 feat: CDP bridge batch support - cookies/tabs/cdp mixed commands, lazy attach, $N chain refs, file upload & screenshot verified 2026-03-04 13:06:21 +08:00
Jiaqing Liang
066a2995e4 update start_long_term desc: remove single-call limit, add 15-turn rule 2026-03-02 17:25:37 +08:00
Jiaqing Liang
1d07183d09 refactor: 清理ga.py无用字段,重组subagent_sop结构 2026-02-27 23:41:33 +08:00
Jiaqing Liang
66e3ccbf0d refactor: 优化file_read统计逻辑 - 紧凑化+路径修复+编码安全 2026-02-27 23:01:30 +08:00
Jiaqing Liang
bb2d595fb6 重构轮次警告机制并修复路径问题
- 提取next_prompt_patcher回调让handler自定义警告策略
- 修复turn显示不一致问题
- 每10轮注入全局记忆防止上下文丢失
- 强化autonomous_reports路径警告
- 新增subagent测试驱动SOP优化方法
2026-02-27 21:41:52 +08:00
Jiaqing Liang
75f8ef2564 refactor: improve update_working_checkpoint description and adjust TG bot default behavior 2026-02-27 20:17:49 +08:00
Liang Jiaqing
afb0b57a06 fix: add yield in do_ask_user to prevent empty code block rendering as undefined in some Streamlit versions 2026-02-26 12:34:01 +08:00
Liang Jiaqing
f0ce7215ff refine: working_checkpoint desc优化(增量更新/坑排首/全新任务清旧) + CLI最小启动 + web_execute_js兼容tab_id + mem_scanner坑点更新 2026-02-26 12:11:31 +08:00
Liang Jiaqing
708ffb3248 rename: update_working_mem->update_working_ckp, trigger_memory_update->start_long_term_update; add tab_id to execute_js_rich; remove debug print 2026-02-24 22:27:18 +08:00
Liang Jiaqing
3570489ba6 fix: file_patch空值校验 + tool_use解析健壮性提升 2026-02-24 19:08:02 +08:00
Liang Jiaqing
e808ce6878 file_read: default 200 lines, total line count report, fix L_MAX dynamic calc 2026-02-24 09:24:40 +08:00
Liang Jiaqing
a2c6bd9d90 feat: newtab机制支持 & 相关优化 2026-02-22 13:19:17 +08:00
Liang Jiaqing
bf5554e7a8 feat: simphtml保留表单value属性+列表裁剪提示; web_execute_js支持switch_tab_id 2026-02-22 11:03:28 +08:00
Liang Jiaqing
66ae64c98e refine: tool descriptions, js diff top_change, compact find_changed_elements 2026-02-22 09:28:57 +08:00
Liang Jiaqing
b4ee34cbc6 refactor: compress system prompt and memory structure for token efficiency 2026-02-17 13:39:41 +08:00
Liang Jiaqing
dbc28fbc35 fix: print编码防崩 + 未知工具时自动重注入tool schema 2026-02-16 20:15:46 +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
90bb6868ec improve: fallback search, history compression refactor, tg bot stability 2026-02-16 10:33:45 +08:00
Liang Jiaqing
caa39776ce refactor: web_scan focus_item -> tabs_only, simplify tab-only mode 2026-02-15 10:05:55 +08:00
Liang Jiaqing
98c349a1e8 fix: greedy match for file_content extraction; tgapp: add running indicator, HTML formatting, single instance lock; misc improvements 2026-02-13 13:34:21 +08:00
Liang Jiaqing
df6645adcc fix: improve JSON parsing error handling with bad_json mechanism 2026-02-12 21:25:15 +08:00
Jiaqing Liang
1276021422 refactor: restructure memory hierarchy and fix ljqCtrl coordinate logic 2026-02-11 12:54:09 +08:00
Liang Jiaqing
8f593c4eaf refine agent loop and working memory tools 2026-02-10 13:15:31 +08:00
Liang Jiaqing
3a9a5ee2aa fix(mem_scanner): fix context_size logic and update sops 2026-02-09 18:32:15 +08:00
Jiaqing Liang
61daedec3f Update core scripts and tools schema 2026-02-09 14:55:41 +08:00
Jiaqing Liang
3f1fad8ab9 feat: upgrade architecture, add idle monitor, and include new assets 2026-02-09 13:24:08 +08:00
Liang Jiaqing
9bc79db442 Refactor: enhance memory distillation logic and streamline SOP 2026-02-08 18:13:56 +08:00
Liang Jiaqing
1b9438e7b4 feat: optimize web driver, update memory SOP and root welcome guide 2026-02-08 12:10:56 +08:00
Jiaqing Liang
de0cce72e0 Fix stop signal handling and Sider streaming wrapper 2026-02-06 10:39:36 +08:00
Jiaqing Liang
b37b56a780 chore: sync core logic updates 2026-02-05 17:36:30 +08:00