Liang Jiaqing
bd9e45f761
feat(file_read): fuzzy file suggestion on not-found with history dirs; sync L1 template
2026-04-15 20:58:29 +08:00
Jiaqing Liang
e3a2526932
feat: add plan mode (enter/exit/completion check/verification gate/periodic hints)
2026-04-15 17:02:54 +08:00
Jiaqing Liang
d111db5454
fix prompt flow
2026-04-15 13:57:36 +08:00
Liang Jiaqing
d0a9b5de08
fix: use script_dir for cwd path instead of relative path
2026-04-14 23:38:32 +08:00
Liang Jiaqing
0da9bd15c9
refactor: turn_end_callback + desktop pet + keychain
...
- agent_loop: next_prompt_patcher -> turn_end_callback with full context
- agent_loop: exit logic unified (break + callback), no early return
- ga: summary extraction moved from tool_after_callback to turn_end_callback
- ga: _turn_end_hooks support for external subscribers
- stapp: desktop pet button with HTTP status push
- keychain: XOR-masked secret storage with SecretStr
- gitignore: whitelist keychain.py
2026-04-13 18:27:17 +08:00
Liang Jiaqing
62ac73c773
feat: task模式干预机制 _stop/_keyinfo/_intervene + consume_file
2026-04-11 17:14:35 +08:00
Liang Jiaqing
3531146792
fix: restore stop signal detection broken by render_segments cache optimization
...
- stapp.py: add st.empty() after render_segments to force Streamlit StopException check on every iteration (incl. heartbeat)
- agentmain.py: fix nround type check, fix timeout comment
2026-04-11 16:25:19 +08:00
Liang Jiaqing
7bfd6e43e6
fix: _fix_messages for Claude API compliance, raw_ask simplify, no_tool orphan fix, summary extraction improvement
2026-04-11 13:24:33 +08:00
Jiaqing Liang
5a1d3a41da
fix: handle window object serialization in CDP bridge; improve file_write error msg; minor llmcore style cleanup
2026-04-10 14:04:41 +08:00
Liang Jiaqing
4b18ad683f
Fix tool call conversion and working checkpoint result
2026-04-10 10:45:00 +08:00
Liang Jiaqing
cc283a96f3
fix: verbose logic & insight wording & file_read anchor skip
2026-04-10 09:56:22 +08:00
Liang Jiaqing
53a859058a
Refactor: simplify smart_format to string-only and enhance tool output truncation limits
2026-04-06 22:50:23 +08:00
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
97abc43a40
refactor(simphtml): rewrite list detection & cutlist for multi-list support
...
- simphtml: replace center-point ancestor-chain approach with global container scan;
support multiple lists per page; add container-scoped selector prefixes;
inline FAKE ELEMENT hints with hidden item previews; remove findMainContent
- ga: hot-reload simphtml on each web_scan; fix file_read total_lines for keyword search;
add errors='replace' for global_mem encoding safety
- llmcore: stabilize NativeClaude session/device IDs across requests;
rename no_system_prompt to fake_cc_system_prompt; deep-copy message content
- launch: adjust window width 700->600
2026-04-03 19:38:51 +08:00
Liang Jiaqing
da40ba413b
feat: fold_turns UI折叠 + 放宽输出限制 + 压缩history/key_info标签 + context_win调大
2026-04-03 10:43:15 +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
404ea1947b
fix: llmcore工具调用正则兼容tool_call标签,最小长度改为0
2026-04-01 09:30:55 +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
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