Commit Graph

76 Commits

Author SHA1 Message Date
Liang Jiaqing
8e829730a9 smart truncation, iframe preservation, streamlit filter
- simphtml: truncate_biggest replaces naive string cut, targets fattest content block via 70% drill-down
- simphtml: iframe children preserved through div proxy (bypass BS4 limitation)
- background/content.js: filter streamlit tabs and skip content script injection
- ga.py: file_content tag regex allows attributes; maxchars 38k->35k
2026-04-06 12:19:20 +08:00
Liang Jiaqing
8d537e954b fix: simphtml visibility/dialog/SVG improvements & minor agent fixes
- simphtml: rewrite visibility inheritance (area-based maxC), add isVisible to childrenInfo,
  fix className SVG compat (getAttribute), expand isDialog detection, hoist deep fixed dialogs,
  clear SVG attrs, fix warning message concat
- ga: return error messages instead of None for code_run/web_execute_js failures
- stapp: disable unsafe_allow_html
- code_run_header: add excepthook hint for ImportError/AttributeError
- mykey_template: remove stale prompt_cache comment
2026-04-03 09:40:09 +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
d922303645 TMWebDriver: add debug logs + CDP bridge refactor (action→cmd, extract buildExecScript, handleWsExec routing) 2026-03-31 20:37:05 +08:00
Jiaqing Liang
86210296c1 fix: MV3 SW keepalive for WS connection via periodic alarm ping 2026-03-31 11:19:48 +08:00
Liang Jiaqing
106c6b04f1 docs: update save_to_file desc, add iframe scan note, cdp_bridge notice 2026-03-31 09:04:22 +08:00
Liang Jiaqing
72a85a0823 fix: buildCdpScript add smartProcessResult to prevent CDP serialization error on complex DOM (GitHub issues, Gmail etc); update SOP docs 2026-03-30 22:30:34 +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
08ac18be6e fix: code_run encoding compat; wechat truncate long code blocks & limit msg count 2026-03-29 17:43:06 +08:00
Liang Jiaqing
52151853b3 fix: encode str input when text=True is intercepted by header wrapper 2026-03-29 15:15:35 +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
fe7e4c0952 refine: tool schema descriptions, docstring format, context_win 18000→20000 2026-03-29 13:06:06 +08:00
Liang Jiaqing
45679509ea MixinSession: spring-back to primary + translate tools_schema to English 2026-03-29 12:48:36 +08:00
Liang Jiaqing
226fa69cc3 refactor MixinSession._raw_ask: simplify retry logic, skip yielding first-only error chunk 2026-03-29 10:53:26 +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
a1c289dbd1 feat(web_driver): support await in executeCode via AsyncFunction fallback 2026-03-27 18:57:47 +08:00
Liang Jiaqing
55a5eae4f6 perf: replace MutationObserver with setInterval to fix performance issue 2026-03-27 18:41:39 +08:00
Jiaqing Liang
04448dcee9 update userscript guard and scheduler flag 2026-03-27 15:41:42 +08:00
Liang Jiaqing
650c14dc1a update wechat group QR code (group 2, as group 1 is full) 2026-03-26 13:37:41 +08:00
Liang Jiaqing
274bbcb9e4 docs: update WeChat group QR code 2026-03-24 22:55:04 +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
Jiaqing Liang
eb8834b9df feat: enhance text_only mode - add form element annotations, block-level line breaks, and whitespace cleanup 2026-03-23 15:26:05 +08:00
Jiaqing Liang
b4bdaf11da style: remove trailing periods in tool schema descriptions (-31 tokens/round) 2026-03-23 13:56:03 +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
8794c85cfe docs: update paths for frontends/ migration 2026-03-22 17:47:56 +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
75a0e86820 docs: update README with enhanced structure, news section, bot interfaces, and comparison table (from hjy) 2026-03-14 08:49:07 +08:00
Liang Jiaqing
0100bf10af refactor: replace insight template comments with real out-of-box entries 2026-03-13 20:50:04 +08:00
Liang Jiaqing
908c1a52ed perf: localhost→127.0.0.1 fix IPv6 2s delay; simphtml radio/checkbox/svg/dropdown fixes; poll interval 0.5→0.2s 2026-03-13 20:13:33 +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
Jiaqing Liang
33f2df4270 feat: 添加web_scan的text_only参数支持Shadow DOM文本提取 2026-03-11 14:48:19 +08:00
Liang Jiaqing
f0e5d25636 add factory memory entries to insight template 2026-03-10 22:08:57 +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
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
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
Liang Jiaqing
3f8407a853 CDP bridge扩展完善+SOP精简+insight修复+plan_sop+autonomous_sop更新 2026-03-04 12:02:50 +08:00
Liang Jiaqing
ffe1f3c4c0 fix: update extension display name to TMWD CDP Bridge 2026-03-04 11:16:42 +08:00
Liang Jiaqing
0ab90af250 rename cookie_grabber -> tmwd_cdp_bridge (CDP bridge extension) 2026-03-04 11:15:32 +08:00
Jiaqing Liang
d010ab1995 refine insight: trim impl details, keep trigger keywords only (1049t) 2026-03-02 21:24:54 +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
75f8ef2564 refactor: improve update_working_checkpoint description and adjust TG bot default behavior 2026-02-27 20:17:49 +08:00
Liang Jiaqing
3a265e0f52 feat: add await detection and friendly prompt (v0.32)
- Detect await usage in sync context
- Auto-wrap with async function
- Return friendly prompt suggesting to avoid await
- Provide alternative solution using global variables
2026-02-27 11:47:06 +08:00
Liang Jiaqing
e30ee43298 update QUICK_START pdf, userscript v0.31, tmwebdriver postMessage docs 2026-02-26 18:11:43 +08:00
Liang Jiaqing
06f7f630e4 feat: iframe postMessage bridge, screenshot SOP, quick start pdf 2026-02-26 14:12:10 +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
83167e47a6 refactor: remove detect_newtab, use session dict diff for new tab detection 2026-02-25 08:47:02 +08:00