Commit 3d87f8d
feat: write runtime port file for frontend discovery
After binding to a port (which may differ from configured due to auto-retry),
writes the actual port number to {config_dir}/port. Removes the file on
shutdown to prevent stale discovery.
Frontends can read ~/Library/Application Support/{PluginName}/port to find
the correct port, then verify via /health that the plugin identity matches.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bb1af6b commit 3d87f8d
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
602 | 610 | | |
603 | 611 | | |
604 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
605 | 624 | | |
606 | 625 | | |
607 | 626 | | |
| |||
0 commit comments