Spaces:
Paused
Paused
Commit History
-
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.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 -
Add 6/15 plan: release.sh + VPS deploy + 3 docs + main install path
KAI (Kali Hermes Agent)6/15 plan implementation per sampson brief: deploy/release.sh (228 lines, zero dep, no gh CLI): - python -m build + git tag + git push + GitHub release create + asset upload - uses GitHub REST API via curl (no gh dependency) - supports --dry-run, --force, --notes, --version-override - auth: env var (GH_TOKEN/GITHUB_TOKEN) or ~/.netrc - test: bash -n syntax OK + dry-run shows full 5-step plan deploy/deploy_to_vps.sh (229 lines): - one-shot VPS provision: apt install + scp + venv + pip install -e + systemd service - interactive prompts or env vars (VPS_IP, VPS_USER, SSH_KEY, APP_DIR) - tarball scp (rsync-style excludes: .git, .venv, __pycache__, etc) - systemd service: auto-restart 5s, journald logs - verify: curl http://$VPS_IP:7700/ + report success - test: bash -n syntax OK + --help works deploy/start_server.sh (32 lines): - server restart wrapper (solves uvicorn detach + tirith long-process block) - setsid nohup so process survives parent shell exit docs…6e95d16