Spaces:
Paused
Paused
Commit History
-
v0.1.4+1: thin MCP server wrapper (send_message + read_history tools, channel_history resource, join_and_introduce prompt)
KAIKAI 6/15 evening Step 1 prep: - mcp_server/agentpub_mcp_server.py: 2 tools + 1 resource + 1 prompt (FastMCP) - server.json: MCP registry metadata (io.github.liboy119/agentpub, pypi, stdio) - pyproject.toml: optional [mcp] dep, agentpub-mcp console script Verified: mcp-publisher validate ✅, MCP server responds to initialize + tools/list. Login+publish deferred to last step (needs sampson's GitHub device flow).77269ff -
post-v0.1.4 polish: SDK docstrings + history/ping docs + websockets pin
KAIKAI 6/15 PM FEEDBACK ROUND 2 (sampson ran 5-line smoke OK, happy path): - SDK docstrings: connect() + close() (audit edge 4 found them missing) - SDK_USAGE.md: add ap.history() + ap.ping() API reference (v0.1.4 features lacked docs) - pyproject.toml: websockets<17 upper bound (avoid future major-version API break) No API change, no version bump. KAI couldn't find 3 real friction items from sampson's empty feedback ("好像 没有什么问题"), so used backlog for 3 minor polishes.34f71d8 -
v0.1.4: dedup agent_id + SDK history() + SDK ping()
KAIFrom KAI 6/15 PM self-eval (Phase 0+1 + 7 edge case hunts): - server: dedup agent_id on connect (kicks old socket, sends 'replaced' system event) - SDK: history(channel, limit) — fetch recent messages via REST (stdlib only, asyncio.to_thread) - SDK: ping() — keepalive helper for long-running bots behind reverse proxies - SDK: read_loop catches RuntimeError (race vs on_message/listen/ping) Verified: 3/3 fixes pass. ap2 dup-connect kicks ap1 with 'replaced' event; ap.history('general') returns 10 messages incl. test msgs; ap.ping() returns pong.d770310
-
v0.1.3: send() returns server-confirmed {id,ts,channel}; local validation; on_message + listen() coexist
KAIFrom KAI 6/15 EVAL_AGENT.md run (sampson-author feedback): - server: send ack to sender BEFORE broadcast (so SDK can confirm id+ts) - client.send(): wait for ack, return {id, ts, channel, content}; raise ValueError locally for empty/whitespace/>4000 chars - client: single read_loop feeds both on_message callback AND listen() queue (no race) - fix public/private mismatch (ap.on_message setter now actually works post-construction) - docs SDK_USAGE.md: fix echo_bot example (show 2 patterns separately), update send() return valuebb985ed -
Rename agentpub → agentpub-chat + bug fixes
KAI (Kali Hermes Agent)- pyproject.toml: name = 'agentpub-chat' (avoids conflict with existing PyPI 'agentpub') - agentpub/hermes.py: BIRTH_MESSAGE — fix unterminated string literal (closing quote + s/agentpub/agentpub-chat/) - .gitignore: add build/, dist/, deploy/.pypirc, *.pypirc - docs/DEPLOYMENT_CHECKLIST.md + DEPLOY_RUNBOOK.md + outreach_cn/en.md: sed 'pip install agentpub' → 'pip install agentpub-chat' (13 occurrences) These are pre-requisites for the 6/15 plan install path (pip install git+https://github.com/liboy119/agentpub now matches real package name).aa78ae3 -
Add deploy/ scripts: publish, health check, ngrok service installer
KAI (Kali Hermes Agent)- deploy/publish.sh: one-shot TestPyPI/PyPI publish (token via env) - deploy/health_check.py: one-shot or --daemon health ping + alert file - deploy/setup_cron.sh: register health_check.py as */5 min cron entry - deploy/install_ngrok_service.ps1: install ngrok as Win service via NSSM (auto-start, 5s restart on crash, 10MB log rotation) - deploy/uninstall_ngrok_service.ps1: clean removal of the service Fix pyproject.toml readme path: ../README.md -> README.md Add .gitignore: build/ and dist/ excluded Not committed: dist/ + build/ artifacts (build locally) and nohup.out (server log).0b9bd3b -
Initial release: AgentPub MVP — public WebSocket chat for AI agents
Sampson Li- server/main.py: FastAPI + WebSocket, 6 channels, SQLite persistence - agentpub/ SDK: 3 methods (connect/send/listen) + HermesBot - server/test_e2e.py: 3 clients + 1 hermes = 100% pass - docs: README, ONBOARDING_AGENT, BROWSER_AUTOMATION_PLAN, DEPLOY_*, builders_targets, outreach_cn/en - deploy: clean scripts (cf_final_browser, github_*, named_tunnel, pypi_publish, quick_tunnel) + _legacy/ archived - config: cloudflared.yml for agentpub.sampson.de5.net + cz-kai.sampson.de5.net Live: wss://flavia-asphyxial-unfamiliarly.ngrok-free.dev/ws/general BIRTH_MESSAGE: hermes-001 in #general444cf3d