Commit Graph
38 Commits
Author SHA1 Message Date
Liang Jiaqing 5aaa26e69b file_write: support content arg in native mode, strip it in text-emulated mode 2026-05-06 10:30:08 +08:00
Liang Jiaqing 340d663b77 feat: add SSL verify option and enable TG draft 2026-04-27 18:15:57 +08:00
Junghwan a48cbc7fbf fix(schema): align file_write mode default with implementation
assets/tools_schema.json declares file_write.mode default as 'append',
but assets/tools_schema_cn.json and ga.py both default to 'overwrite':

    # ga.py:369
    mode = args.get("mode", "overwrite")

Since the i18n switch in 7cadbd7 loads the English schema for en_*
locales, an LLM that trusts the schema default and omits the mode
parameter will silently overwrite instead of append. Align the English
schema with the Chinese schema and the Python handler so all three
agree on 'overwrite'.
2026-04-27 10:06:15 +08:00
Liang Jiaqing f40eaa9cb6 fix: clarify start_long_term_update should only be called when task is completed (not mid-task) 2026-04-18 13:09:01 +08:00
Jiaqing Liang 5b595e9ca5 fix: inline_eval exec() exception escaping crash; update schema description 2026-04-17 16:06:13 +08:00
Liang Jiaqing 51ed38c6c0 fix: clarify file_write usage — content before call 2026-04-17 00:04:12 +08:00
Liang Jiaqing ce72054a09 feat: multi code_run support, inline_eval logging & cwd fix, tool reinject upgrade 2026-04-16 12:56:17 +08:00
Liang Jiaqing a160a7c5d5 feat: enhance CDP bridge management and fix JS falsy returns
- background.js: Add management API, auto-return for JS, refactor new tab capture
- simphtml.py: Fix falsy return value bug, flatten return structure
- agent_loop.py: Simplify UI icons
- manifest.json: Add management permission
- tools_schema: Optimize prompts for web tools
- tmwebdriver_sop.md: Update documentation
2026-04-08 18:28:33 +08:00
Liang Jiaqing ffbde98952 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 d135fa5f04 docs: update save_to_file desc, add iframe scan note, cdp_bridge notice 2026-03-31 09:04:22 +08:00
Liang Jiaqing 15974a7081 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 19a8fdfbc0 refine: tool schema descriptions, docstring format, context_win 18000→20000 2026-03-29 13:06:06 +08:00
Liang Jiaqing 3ed92ee6c5 MixinSession: spring-back to primary + translate tools_schema to English 2026-03-29 12:48:36 +08:00
Liang Jiaqing f9ace0e2a6 refactor MixinSession._raw_ask: simplify retry logic, skip yielding first-only error chunk 2026-03-29 10:53:26 +08:00
Liang Jiaqing 47160dcc01 refactor: optimize code extraction priority in tool handlers & update autofill SOP 2026-03-27 19:43:46 +08:00
Jiaqing Liang 96d8344713 style: remove trailing periods in tool schema descriptions (-31 tokens/round) 2026-03-23 13:56:03 +08:00
Jiaqing Liang 0e06bdf411 feat: add file ref expansion syntax for file_patch and file_write 2026-03-23 13:50:11 +08:00
Liang Jiaqing 80b8d35d80 add NativeClaudeSession+NativeToolClient, support parallel tool calls, fix tool_calls[-1:], add llm log 2026-03-21 12:13:46 +08:00
Jiaqing Liang 835e8b1e77 feat: 添加web_scan的text_only参数支持Shadow DOM文本提取 2026-03-11 14:48:19 +08:00
Liang Jiaqing 484dd11613 优化中间输出频率/plan_sop重构/autofill batch示例/README便携版链接 2026-03-04 17:14:13 +08:00
Liang Jiaqing 846f38364f 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 1396794a38 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 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 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 d7608a01f3 chore: minor tweaks - fix newline replace scope, relax turn limits, wording 2026-02-22 23:59:16 +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 df478d81e1 improve update_working_mem tool description; adb_ui u2 priority; autonomous_operation framework lock 2026-02-16 11:31:58 +08:00
Liang Jiaqing caa39776ce refactor: web_scan focus_item -> tabs_only, simplify tab-only mode 2026-02-15 10:05:55 +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
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 a9209daaf7 feat: stream LLM responses and improve agent UI 2026-02-04 18:56:50 +08:00
Jiaqing Liang a25f7b8a29 feat: improve system compatibility and increase stdout buffer limit to 8000 2026-02-02 15:22:05 +08:00
Liang Jiaqing f0ccb7dfb9 Update agent code and tool schema 2026-02-01 16:07:18 +08:00
Liang Jiaqing 35a1b70208 Refactor: restructure directory and clean up redundant scripts 2026-02-01 08:58:26 +08:00