Commit 0cfa78a
feat(observe): autostart the observe web UI + lifecycle controls (restart, config opt-out, stable port) (#403)
* docs(specs): observe UI overhaul + autostart design spec
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(plans): TDD implementation plans for observe autostart (PR 1) + UI overhaul (PR 2)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(observe): config resolvers for autostart + port (env > .rn-agent/config.json > default 7333)
Implements parsePort, DEFAULT_OBSERVE_PORT, resolveObserveAutostart, and
resolveObservePort with env > config > default precedence matching existing
resolveAutoConnect pattern.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(observe): restart action + config-resolved port in observe tool
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(observe): pin unique port in observe-tool test so the suite never binds the real default 7333
* feat(observe): per-project state file records the live UI url (GH #383 state-file pattern)
* feat(observe): autostart web UI at MCP boot in RN projects (non-fatal, env/config gated)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(observe): SessionStart URL notice + /observe command covers stop/restart and autostart opt-out
* fix(observe): route /observe sub-arguments via $ARGUMENTS + tolerate null config in hook notice
* build(cdp-bridge): rebuild dist for observe autostart + lifecycle (PR1 tasks 1-5)
dist/ is the shipped artifact for the plugin (not gitignored, per 86e54ac).
Tasks 1-5 of the observe-autostart-lifecycle spec landed src/test changes but
left the compiled output stale; this brings dist back in sync via `tsc` so
the shipped plugin actually carries the autostart, port-resolution, restart
action, and state-file behaviors.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: changeset for observe autostart + lifecycle
Also applies the oxfmt fix on observe-state-file.test.js caught by the
repo-wide `npx oxfmt --check` gate.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(observe): prove stop closes the port while the worker process stays alive
* fix(observe): make autostart fire-and-forget so a throwing logger can never reject main()
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(observe): serialize start/stop so a stop racing a pending start cannot orphan the server (PR #403 review)
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent e080ace commit 0cfa78a
21 files changed
Lines changed: 3521 additions & 34 deletions
File tree
- .changeset
- commands
- docs/superpowers
- plans
- specs
- hooks
- scripts/cdp-bridge
- dist
- observability
- tools
- src
- observability
- tools
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments