openbot
|
3598358293
|
feat(session): M1 session manager — binding table, /switch, reaper, sqlite
- (channel, chat_id) -> {agent, acp_session_id} binding table
- prompt(): auto-create binding, per-chat turn serialization, image blocks
- switch(): /switch semantics; --continue migrates hub-side text ONLY
(tool state does not migrate, documented)
- update relay: ACP session/update -> delta/thinking/tool_start/tool_end/
plan/final events via per-binding event sink
- cwd whitelist per agent (fnmatch, ~ expanded, realpath)
- idle reaper: expire bindings after idle_ttl_s, close unbound processes;
max_sessions cap with LRU eviction
- sqlite persistence (bindings + session_records) — DB is fact source,
config.json only bootstrap
- process death: client+binding dropped, SessionError surfaced
- tests: 39 passed (mock ACP agent subprocess)
|
2026-10-06 11:45:19 +08:00 |
|
openbot
|
d698ae8a60
|
feat(channels): add wecom / wecom-app / weixin IM channels (M1.5)
- base.py: IMChannel protocol + InboundMessage + shared helpers
(split_message_text utf-8 byte-safe, clean_control_chars ZWSP hygiene)
- editable_stream.py: create-edit-flush streaming fallback pattern
- wecom.py: aibot WebSocket long-connection (replyStream streaming,
allowlist, reconnect backoff, auth-failure terminal)
- wecom_app.py: self-built app HTTP callback (stdlib server, WXBizMsgCrypt
AES-CBC round-trip, access_token cache, media download; works in both
WeCom client and WeChat via WeChat-plugin, no streaming on this path)
- weixin.py: WeChat bot QR login + getupdates long-poll + sendmessage
- tests: 28 passed (mock transports, crypt roundtrip, stream coalesce)
Ported from dsh-im (xmanrui) protocol facts and resilience patterns.
|
2026-10-06 11:33:07 +08:00 |
|
openbot
|
bf8748b21b
|
design v0.5: IM channels - WeCom aibot long-connection + WeChat customer service
|
2026-10-06 11:10:46 +08:00 |
|
openbot
|
8a84f96250
|
design: record M0 findings (ndjson transport, M0 done)
|
2026-10-06 11:07:21 +08:00 |
|
openbot
|
33d8ac3046
|
test: fix ndjson partial-tail truncation point
|
2026-10-06 11:07:14 +08:00 |
|
openbot
|
82c3763e5c
|
M0: framing (ndjson + lsp-frame), ACPClient, mock agent fixture, probe script; real claude-code-acp handshake verified
|
2026-10-06 11:05:40 +08:00 |
|
openbot
|
d96d4f73bb
|
design v0.4: IM/NATS as peer channels (NATS only handles message transport), all examples JSON
|
2026-10-06 10:41:52 +08:00 |
|
openbot
|
27d4da67fb
|
design v0.3.1: DESIGN.md apply review feedback (NATS client role, JSON config)
|
2026-10-06 10:33:54 +08:00 |
|
openbot
|
dad43aa1fd
|
design v0.3.1: apply review feedback (NATS client role, JSON config)
|
2026-10-06 10:33:08 +08:00 |
|
openbot
|
4aee2446cb
|
design v0.3: web admin UI, /switch command, monitoring dashboard
|
2026-10-06 10:31:09 +08:00 |
|
openbot
|
54cbd773ee
|
chore: last naming refs
|
2026-10-06 10:16:44 +08:00 |
|
openbot
|
65ca560640
|
fix: package/config naming to agenthub
|
2026-10-06 10:16:32 +08:00 |
|
openbot
|
de4a3337ec
|
rename acp-bridge -> agenthub; design v0.2: front-end agnostic entry + supervisor orchestration + depth guard
|
2026-10-06 10:16:15 +08:00 |
|
openbot
|
951fada34b
|
init: project skeleton + design docs (ACP bridge)
|
2026-10-06 09:59:08 +08:00 |
|