Commit a45da32
committed
feat: add BotsChat CLI with browser login and E2E encryption
- New packages/cli/ — full CLI client (chat, channels, sessions, tasks,
jobs, models, tokens, messages, config, status, setup)
- Browser-based login: CLI starts local HTTP server, opens browser for
OAuth (Google/GitHub/Apple), receives credentials via redirect callback
- E2E encryption: encrypt/decrypt messages, job summaries, task data
- WebSocket chat: single-shot, interactive REPL, streaming, pipe mode
- Bundle CLI into plugin package as bin/botschat-cli.mjs (tsup, 52KB)
- Add SKILL.md for OpenClaw skill support (npx skills add)
- Web: handle cli_port/cli_state params for CLI login callback
- Web: show success banner on cli_done redirect
- README: add CLI section with npx usage examples
- E2E test: CDP-based browser login test (tests/cli-login-e2e.mjs)1 parent d23562d commit a45da32
31 files changed
Lines changed: 5719 additions & 99 deletions
File tree
- packages
- cli
- src
- commands
- lib
- plugin
- bin
- web/src
- components
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
256 | 322 | | |
257 | 323 | | |
258 | 324 | | |
| |||
0 commit comments