Commit 1af2807
committed
feat(admin): /dispatch setup -- first-run wizard, detection, and a once-ever nudge (issue #92)
- bare /dispatch now detects where the deployment is: valid pointer or explicit
env -> panel exactly as before; cwd scaffold or a reachable queue -> panel
plus one hint; nothing anywhere AND queue unreachable -> the offer. An
exported VALKEY_URL is probed, never trusted -- a dead URL still reaches the
offer, and an ops outage on a configured deployment keeps the banner, never
the wizard
- /dispatch setup: dialogs-first, overlay-per-handoff (the tui suspend handle
exists only inside a ctx.ui.custom factory; dialogs cannot run under a
capturing overlay; stdin belongs to the attached child) -- pick a deploy dir,
consented npm install of @edgehero/pi-dispatch@RUNTIME_VERSION under
import-pi's spawn doctrine (no path in argv, --ignore-scripts, post-install
version assertion that stops the wizard loudly), hand the terminal to
pi-dispatch up (its own y/N gates ARE the host-mutation consents; --yes is
forwarded to nothing), optional user-level service install, pointer written
with the JSON shown verbatim then reapplied in-process, provider key printed
never written, optional setup github hand-off, optional first trigger for the
repo the session sits in (folder pre-filled, flow picked from its .pi/skills
via the shared SKILL_NAME_RE, the in-place-edit warning printed, and the
ai-trigger: allow line PRINTED for the operator to commit -- the wizard never
writes repo files), then the panel
- session_start nudge: reason startup only, hasUI only, sync-only checks, a
marker file makes it once-ever, notify-only
- every step individually declinable; declines continue converge-style;
headless refuses; USED_API unchanged (spawns via node:child_process)
Specs: new DES-FIRST-RUN-SETUP-WIZARD (incl. the recorded rejections);
REQ-ADMIN-VIA-PI-EXTENSION amended (setup, the detection tree, the nudge,
declined-offer acceptance); REQ-DEPLOYMENT-BOOTSTRAP scope carve-in (the wizard
is a driver, not a power); Revision History rows in design.md + requirements.md;
DES-TRIGGER-OUTSIDE-PI, DES-CLI-SURFACE, CONST-BUDGET-BEFORE-TOKENS unchanged,
checked. operate-pi-dispatch SKILL.md gains the setup chapter (operator-typed
only; the model asks the operator to type it). README first-run story; cli/init
next-steps mention the wizard.
Signed-off-by: Rob Boerman <robboerman@live.nl>1 parent 3681ee2 commit 1af2807
11 files changed
Lines changed: 1527 additions & 7 deletions
File tree
- admin
- skills/operate-pi-dispatch
- src
- test
- specs
- worker/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
282 | 292 | | |
283 | 293 | | |
284 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
90 | 99 | | |
91 | 100 | | |
92 | 101 | | |
93 | | - | |
| 102 | + | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| |||
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
138 | | - | |
| 148 | + | |
139 | 149 | | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
655 | 666 | | |
656 | 667 | | |
657 | 668 | | |
658 | | - | |
| 669 | + | |
659 | 670 | | |
660 | 671 | | |
661 | 672 | | |
| |||
744 | 755 | | |
745 | 756 | | |
746 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
747 | 784 | | |
748 | 785 | | |
749 | 786 | | |
| |||
832 | 869 | | |
833 | 870 | | |
834 | 871 | | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
835 | 880 | | |
836 | 881 | | |
837 | 882 | | |
| |||
0 commit comments