Commit Graph
100 Commits
Author SHA1 Message Date
Liang Jiaqing f52975fd95 Merge PR #23: update plan_sop.md and subagent_sop.md 2026-03-12 22:22:33 +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 03069dbd89 修复自主行动SOP:规划完立即停止+避免模仿低价值任务 2026-03-12 09:29:20 +08:00
Jiaqing Liang 1520a85a9e simphtml: remove dead code (js_cleanDOM, isValidInteractiveElement, redundant return) 2026-03-11 15:18:23 +08:00
Jiaqing Liang 33f2df4270 feat: 添加web_scan的text_only参数支持Shadow DOM文本提取 2026-03-11 14:48:19 +08:00
Jiaqing Liang 006b915533 refactor: scheduler to JSON+cooldown, update SOP 2026-03-11 12:11:22 +08:00
Liang Jiaqing 5dc44ba637 refactor: 优化自主行动SOP - 强化路径提示和格式规范防止history错乱 2026-03-11 10:01:42 +08:00
Liang Jiaqing f0e5d25636 add factory memory entries to insight template 2026-03-10 22:08:57 +08:00
Jiaqing Liang 389fd09765 fix: disable unsafe_allow_html to prevent XSS in chat rendering 2026-03-10 13:55:40 +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 378799f8ea fix: /status命令 is_busy() → is_running 2026-03-09 08:46:05 +08:00
Liang Jiaqing 14f1009ddc fix: unified auto_make_url for all API base_url formats, closes #12 2026-03-08 10:24:54 +08:00
Liang Jiaqing 5eac3c1027 refactor: unified mykeys dict, support mykey.py and mykey.json dual format 2026-03-07 23:33:13 +08:00
Liang Jiaqing 61d07a16a6 update: minor fixes to agentmain, mykey_template, sidercall 2026-03-07 22:34:23 +08:00
Liang Jiaqing 7ab47af8e8 fix: zIndex auto coverage bug + monitor maxchars unlimit + autofill CDP sop update 2026-03-07 10:10:26 +08:00
Liang Jiaqing fd9f172588 style: simplify open/write + shorten prompt text 2026-03-06 21:49:43 +08:00
Liang Jiaqing 2156bc6fc6 restore context_win=10000 max_tokens=6144 2026-03-06 21:46:41 +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 2272f255f2 feat: add file sending support for telegram bot 2026-03-06 19:19:56 +08:00
Liang Jiaqing 524944dfc8 安全性提升:TID动态生成+Streamlit页面排除+工作记忆修复 2026-03-06 18:54:09 +08:00
Jiaqing Liang c6af92e612 feat: web_scan iframe穿透 + plan_sop术语优化 2026-03-06 00:09:52 +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
Liang Jiaqing dcf65d72c7 launch: bind streamlit to localhost + use high port range 18501-18599 2026-03-03 21:05:34 +08:00
Jiaqing Liang 9219042a8f feat: add --reflect mode with error handling + scheduler/autonomous scripts 2026-03-02 23:25:31 +08:00
Jiaqing Liang 5c3193f326 non-verbose output: exhaust stream silently, yield content only; add plan_sop; subagent_sop cleanup 2026-03-02 23:06:07 +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
LJQ 82991c4a69 Merge pull request #2 from frank-marecogito/main
chore(gitignore): add mykey.py to ignore sensitive API keys and credentials
2026-03-02 09:49:19 +08:00
Jiaqing Liang 2655d79acb Update autonomous_operation_sop.md 2026-03-01 23:19:00 +08:00
Liang Jiaqing f27c067b1d autonomous_sop: 加强autonomous_reports路径防护(SOP文本+checkpoint模板双层) 2026-03-01 23:18:36 +08:00
Liang Jiaqing 75ddf8fd1d ljqCtrl: 兼容RDP断开场景的屏幕尺寸/DPI获取; ljqCtrl_sop: ClientToScreen避坑; .gitignore清理 2026-03-01 23:18:36 +08:00
LJQ 392747798a Merge pull request #1 from redreamality/fix/oai-responses-api-mode
Add responses api_mode support for OpenAI relay
2026-03-01 23:16:47 +08:00
Jiaqing Liang 66989fc2e0 chore: 清理 .gitignore 中文注释和乱码 2026-02-27 23:43:24 +08:00
Jiaqing Liang 1d07183d09 refactor: 清理ga.py无用字段,重组subagent_sop结构 2026-02-27 23:41:33 +08:00
Jiaqing Liang b271b48489 update L0: 优化 L1 描述,移除更新机制部分 2026-02-27 23:40:20 +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 a3a3b55f1e feat: add timestamp to model_responses log 2026-02-27 12:33:17 +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 cf1b122107 docs: 更新 QUICK_START.pdf - 添加 Python 3.14 兼容性警告和 requests 安装提示 2026-02-26 20:22:25 +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 63d9bea9b2 tweak: soften checkpoint reminder to optional hint 2026-02-26 12:36:41 +08:00
Liang Jiaqing c9a0b61bf2 tweak: soften checkpoint reminder wording in agent_loop 7-turn prompt 2026-02-26 12:36:13 +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 d417cecc45 mem_scanner: prefer sidebar click over search; sidercall: pid-isolated log path 2026-02-26 06:32:07 +08:00
Jiaqing Liang 9ae045c93c launch: auto port discovery; simphtml: init newTabs; SOP docs update 2026-02-25 12:56:40 +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
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
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 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 ac2f8ad1e1 agentmain: add timeout+sampling snapshot for task queue consumer 2026-02-23 21:51:21 +08:00
Liang Jiaqing abb392ccbc Add stock screening GIF + Alipay expense PNG, expand demo to 2-row layout 2026-02-23 00:17:29 +08:00
Liang Jiaqing cd6c66ea13 style: resize demo screenshots to equal height, adjust table layout 60/40 2026-02-23 00:00:52 +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 2b4ac28c7e docs: add demo section with GIF and screenshots 2026-02-22 23:57:56 +08:00
Liang Jiaqing 09b0cec45a update simphtml.py 2026-02-22 13:27:10 +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 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 8329efeb9c add cookie_grabber extension; minor fixes to TMWebDriver/SOPs/simphtml 2026-02-19 18:40:28 +08:00
Liang Jiaqing 467c4c0eb2 fix: 自主行动按钮立即生效,去掉scope=fragment 2026-02-19 10:26:53 +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 e3d2b3d14c fix: WS session reconnect + replace tornado with wsgiref + simplify SOP 2026-02-18 19:06:21 +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 b4ee34cbc6 refactor: compress system prompt and memory structure for token efficiency 2026-02-17 13:39:41 +08:00
Liang Jiaqing f8e501a27a feat: add XaiSession backend, improve handler switch & tg resilience 2026-02-17 13:18:09 +08:00
Liang Jiaqing 67c7b3fa71 docs: 补充mem_scanner和web_setup SOP;优化代码风格和上下文管理 2026-02-16 22:33:50 +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 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 90bb6868ec improve: fallback search, history compression refactor, tg bot stability 2026-02-16 10:33:45 +08:00
Liang Jiaqing 04833eda0e update SOPs (web_setup, tmwebdriver, autonomous_op) + whitelist adb_ui.py 2026-02-15 13:53:41 +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 f0b7c00876 add tmwebdriver_sop.md to git tracking with file upload guidelines 2026-02-15 09:27:08 +08:00
Liang Jiaqing 480b131a0a update: README重写+agentmain/tgapp改进+SOP优化 2026-02-15 08:49:12 +08:00
Liang Jiaqing 33fc5e6457 update: autonomous SOP扩展探测领域+记忆产出要求; memory SOP加patch安全提醒 2026-02-14 21:04:05 +08:00
Liang Jiaqing 5c3ef2a532 压缩 launch.pyw 代码:124行→90行 (减少34行)
- 合并 import 语句为单行
- 压缩配置变量定义
- 合并 argparse 参数定义
- 压缩 socket 和 subprocess 代码
- 参数名优化:--no-scheduler → --no-sched
- 使用 lambda 统一清理资源
2026-02-14 10:34:52 +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
Liang Jiaqing 4163341bb3 harden execute_js_rich + fix GBK encoding crash on pyw 2026-02-13 15:54:52 +08:00
Liang Jiaqing 8d3582e3b7 feat: add ACK mechanism for WS execute_js + timeout diagnostics
- TMWebDriver: add self.acks dict, HTTP implicit ACK on longpoll dequeue, WS explicit ACK handler, enhanced timeout diagnostics (4 cases)
- Fix: data.get('type') in 'result' -> == 'result'
- JS userscript: send ACK on script receive
- tgapp: fix proxy URL prefix
- mykey_template: add tg/proxy fields
2026-02-13 15:30:49 +08:00
Liang Jiaqing b06cd52cf2 feat: add --no-tg flag to launch.pyw for multi-machine sync 2026-02-13 14:10:02 +08:00
Liang Jiaqing 37a1ff5513 feat: add orig-based tag compression to LLMSession.make_messages 2026-02-13 13:43:05 +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 6bc5f3e80d feat: add verbose mode and telegram bot integration
- Add exhaust() helper for generator handling
- Add verbose parameter to control output verbosity
- Extend next_llm() to support direct index switching
- Add list_llms() and get_llm_name() query methods
- New tgapp.py: Telegram bot with streaming updates
- Update stapp.py to use new LLM query API
2026-02-13 11:21:14 +08:00