@spencerboucher/switchyard 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -16
- package/dist/policies/worker.js +1866 -1777
- package/dist/switchyard.mjs +5526 -4684
- package/package.json +1 -1
- package/web-dist/assets/AutomationView-DwZ_2m9J.js +2 -0
- package/web-dist/assets/AutomationView-DwZ_2m9J.js.map +1 -0
- package/web-dist/assets/Checkbox-DR78wXsg.js +2 -0
- package/web-dist/assets/{Checkbox-BnRsg6ki.js.map → Checkbox-DR78wXsg.js.map} +1 -1
- package/web-dist/assets/DangerZone-CBnW9h0p.js +2 -0
- package/web-dist/assets/{DangerZone-BicyqXv8.js.map → DangerZone-CBnW9h0p.js.map} +1 -1
- package/web-dist/assets/Field-DS2BMoqA.js +2 -0
- package/web-dist/assets/{Field-Cp-08kpe.js.map → Field-DS2BMoqA.js.map} +1 -1
- package/web-dist/assets/{Markdown-BPWc6K6m.js → Markdown-BIO6MBTM.js} +7 -7
- package/web-dist/assets/{Markdown-BPWc6K6m.js.map → Markdown-BIO6MBTM.js.map} +1 -1
- package/web-dist/assets/NavigationEditor-C0J7vDXL.js +2 -0
- package/web-dist/assets/NavigationEditor-C0J7vDXL.js.map +1 -0
- package/web-dist/assets/Overlay-DPZqU_vB.js +2 -0
- package/web-dist/assets/Overlay-DPZqU_vB.js.map +1 -0
- package/web-dist/assets/Priority-0hv1Vpg7.js +2 -0
- package/web-dist/assets/{Priority-ZGpTH645.js.map → Priority-0hv1Vpg7.js.map} +1 -1
- package/web-dist/assets/RadioCards-CN5xELnc.js +2 -0
- package/web-dist/assets/RadioCards-CN5xELnc.js.map +1 -0
- package/web-dist/assets/ScopeSelect-BaJjip1Y.js +2 -0
- package/web-dist/assets/ScopeSelect-BaJjip1Y.js.map +1 -0
- package/web-dist/assets/SegmentedControl-CRmhE-Kn.js +2 -0
- package/web-dist/assets/SegmentedControl-CRmhE-Kn.js.map +1 -0
- package/web-dist/assets/Select-CN7M29ap.js +2 -0
- package/web-dist/assets/{Select-DHRR7IAK.js.map → Select-CN7M29ap.js.map} +1 -1
- package/web-dist/assets/Switch-CZMY83Fw.js +2 -0
- package/web-dist/assets/{Switch-D5pVfZgf.js.map → Switch-CZMY83Fw.js.map} +1 -1
- package/web-dist/assets/Tabs-_1w3hoAR.js +2 -0
- package/web-dist/assets/Tabs-_1w3hoAR.js.map +1 -0
- package/web-dist/assets/TextLink-BpF2vLiL.js +2 -0
- package/web-dist/assets/{TextLink-BGtYWCW9.js.map → TextLink-BpF2vLiL.js.map} +1 -1
- package/web-dist/assets/UINodeRenderer-DqIkLhF8.js +4 -0
- package/web-dist/assets/UINodeRenderer-DqIkLhF8.js.map +1 -0
- package/web-dist/assets/UnfilteredNote-22-Qjb-f.js +2 -0
- package/web-dist/assets/UnfilteredNote-22-Qjb-f.js.map +1 -0
- package/web-dist/assets/api-RftVSu44.js +2 -0
- package/web-dist/assets/api-RftVSu44.js.map +1 -0
- package/web-dist/assets/{arrow-down-Dn3KG_JI.js → arrow-down-CzjHSpfM.js} +2 -2
- package/web-dist/assets/{arrow-down-Dn3KG_JI.js.map → arrow-down-CzjHSpfM.js.map} +1 -1
- package/web-dist/assets/{arrow-up-BiPtOqqy.js → arrow-up-B4YU8Bg0.js} +2 -2
- package/web-dist/assets/{arrow-up-BiPtOqqy.js.map → arrow-up-B4YU8Bg0.js.map} +1 -1
- package/web-dist/assets/attention-CEgIsUuq.js +2 -0
- package/web-dist/assets/attention-CEgIsUuq.js.map +1 -0
- package/web-dist/assets/automations-DnydDML9.js +2 -0
- package/web-dist/assets/{automations-IX9DQNk8.js.map → automations-DnydDML9.js.map} +1 -1
- package/web-dist/assets/board-BPxxc8G4.js +6 -0
- package/web-dist/assets/board-BPxxc8G4.js.map +1 -0
- package/web-dist/assets/{calendar-clock-DVlat602.js → calendar-clock-B3bQkNKq.js} +2 -2
- package/web-dist/assets/{calendar-clock-DVlat602.js.map → calendar-clock-B3bQkNKq.js.map} +1 -1
- package/web-dist/assets/chevron-right-DuAbbYQ-.js +2 -0
- package/web-dist/assets/{chevron-right-BM1IJI2z.js.map → chevron-right-DuAbbYQ-.js.map} +1 -1
- package/web-dist/assets/code-D5IB7jTT.js +28 -0
- package/web-dist/assets/code-D5IB7jTT.js.map +1 -0
- package/web-dist/assets/{core.esm-C4dCvG0s.js → core.esm-BbOnWvFK.js} +2 -2
- package/web-dist/assets/{core.esm-C4dCvG0s.js.map → core.esm-BbOnWvFK.js.map} +1 -1
- package/web-dist/assets/describe-DWsoiUix.js +5 -0
- package/web-dist/assets/describe-DWsoiUix.js.map +1 -0
- package/web-dist/assets/enroll-CV77Sk6h.js +2 -0
- package/web-dist/assets/{enroll-GUEF5Uxu.js.map → enroll-CV77Sk6h.js.map} +1 -1
- package/web-dist/assets/git-branch-Dr8PvfHN.js +2 -0
- package/web-dist/assets/git-branch-Dr8PvfHN.js.map +1 -0
- package/web-dist/assets/grip-vertical-Bc5pJHHF.js +2 -0
- package/web-dist/assets/grip-vertical-Bc5pJHHF.js.map +1 -0
- package/web-dist/assets/{hand-B6lvj014.js → hand-B2TrADIv.js} +2 -2
- package/web-dist/assets/{hand-B6lvj014.js.map → hand-B2TrADIv.js.map} +1 -1
- package/web-dist/assets/haptics-O69vKVoK.js +2 -0
- package/web-dist/assets/haptics-O69vKVoK.js.map +1 -0
- package/web-dist/assets/index-BXQwol8u.css +2 -0
- package/web-dist/assets/index-cmIcNnnF.js +17 -0
- package/web-dist/assets/index-cmIcNnnF.js.map +1 -0
- package/web-dist/assets/{link-2-CCq9WzMy.js → link-2-M5ENDPWT.js} +2 -2
- package/web-dist/assets/{link-2-CCq9WzMy.js.map → link-2-M5ENDPWT.js.map} +1 -1
- package/web-dist/assets/logic-CG2E-voG.js +2 -0
- package/web-dist/assets/{logic-BnSIy9_P.js.map → logic-CG2E-voG.js.map} +1 -1
- package/web-dist/assets/logic-D_vBBkcD.js +4 -0
- package/web-dist/assets/logic-D_vBBkcD.js.map +1 -0
- package/web-dist/assets/more-CVjg2O5h.js +2 -0
- package/web-dist/assets/more-CVjg2O5h.js.map +1 -0
- package/web-dist/assets/pencil-y_4AgVa2.js +2 -0
- package/web-dist/assets/pencil-y_4AgVa2.js.map +1 -0
- package/web-dist/assets/{play-NHO6U6cY.js → play-CYKX2aVL.js} +2 -2
- package/web-dist/assets/{play-NHO6U6cY.js.map → play-CYKX2aVL.js.map} +1 -1
- package/web-dist/assets/{plus-C83uJhbf.js → plus-B6uH1yKa.js} +2 -2
- package/web-dist/assets/{plus-C83uJhbf.js.map → plus-B6uH1yKa.js.map} +1 -1
- package/web-dist/assets/policyLogic-CioD2rMm.js +2 -0
- package/web-dist/assets/{policyLogic-DqKyFQEW.js.map → policyLogic-CioD2rMm.js.map} +1 -1
- package/web-dist/assets/prefs-V29Ms2ZL.js +2 -0
- package/web-dist/assets/prefs-V29Ms2ZL.js.map +1 -0
- package/web-dist/assets/queue-BGK9c062.js +2 -0
- package/web-dist/assets/queue-BGK9c062.js.map +1 -0
- package/web-dist/assets/repo-CuL_qbqU.js +5 -0
- package/web-dist/assets/repo-CuL_qbqU.js.map +1 -0
- package/web-dist/assets/{rotate-ccw-BRrlVEAQ.js → rotate-ccw-DvfmNYNE.js} +2 -2
- package/web-dist/assets/{rotate-ccw-BRrlVEAQ.js.map → rotate-ccw-DvfmNYNE.js.map} +1 -1
- package/web-dist/assets/{search-C5H14z0D.js → search-GTFKEqAS.js} +2 -2
- package/web-dist/assets/{search-C5H14z0D.js.map → search-GTFKEqAS.js.map} +1 -1
- package/web-dist/assets/selection-CAMJBh5A.js +9 -0
- package/web-dist/assets/selection-CAMJBh5A.js.map +1 -0
- package/web-dist/assets/settings-o7k_MPK7.js +9 -0
- package/web-dist/assets/settings-o7k_MPK7.js.map +1 -0
- package/web-dist/assets/states-BUWwUyu-.js +60 -0
- package/web-dist/assets/states-BUWwUyu-.js.map +1 -0
- package/web-dist/assets/{terminal-CATQN_17.js → terminal-DGVFZER3.js} +2 -2
- package/web-dist/assets/{terminal-CATQN_17.js.map → terminal-DGVFZER3.js.map} +1 -1
- package/web-dist/assets/terminal-login-Gy6aLzgC.js +2 -0
- package/web-dist/assets/{terminal-login-BdkmJdOO.js.map → terminal-login-Gy6aLzgC.js.map} +1 -1
- package/web-dist/assets/useBreakpoint-DoLUoCMf.js +2 -0
- package/web-dist/assets/useBreakpoint-DoLUoCMf.js.map +1 -0
- package/web-dist/assets/useIndicator-BKqIsw2Q.js +2 -0
- package/web-dist/assets/useIndicator-BKqIsw2Q.js.map +1 -0
- package/web-dist/assets/useNow-BS_9T7IY.js +2 -0
- package/web-dist/assets/useNow-BS_9T7IY.js.map +1 -0
- package/web-dist/assets/useResource-CPN6cDQ5.js +2 -0
- package/web-dist/assets/useResource-CPN6cDQ5.js.map +1 -0
- package/web-dist/assets/useSwipeTabs-XRK0_O6T.js +2 -0
- package/web-dist/assets/useSwipeTabs-XRK0_O6T.js.map +1 -0
- package/web-dist/assets/workboard-FE6bAMnW.js +3 -0
- package/web-dist/assets/workboard-FE6bAMnW.js.map +1 -0
- package/web-dist/index.html +7 -7
- package/web-dist/sw.js +1 -1
- package/web-dist/sw.js.map +1 -1
- package/web-dist/assets/AutomationView-B4O_teaB.js +0 -2
- package/web-dist/assets/AutomationView-B4O_teaB.js.map +0 -1
- package/web-dist/assets/Button-C7TQGuSX.js +0 -2
- package/web-dist/assets/Button-C7TQGuSX.js.map +0 -1
- package/web-dist/assets/Card-DzHrwFrv.js +0 -2
- package/web-dist/assets/Card-DzHrwFrv.js.map +0 -1
- package/web-dist/assets/Checkbox-BnRsg6ki.js +0 -2
- package/web-dist/assets/DangerZone-BicyqXv8.js +0 -2
- package/web-dist/assets/Field-Cp-08kpe.js +0 -2
- package/web-dist/assets/Priority-ZGpTH645.js +0 -2
- package/web-dist/assets/SegmentedControl-Cvkz7C_A.js +0 -2
- package/web-dist/assets/SegmentedControl-Cvkz7C_A.js.map +0 -1
- package/web-dist/assets/Select-DHRR7IAK.js +0 -2
- package/web-dist/assets/Switch-D5pVfZgf.js +0 -2
- package/web-dist/assets/Tabs-2GilVMsH.js +0 -2
- package/web-dist/assets/Tabs-2GilVMsH.js.map +0 -1
- package/web-dist/assets/TextLink-BGtYWCW9.js +0 -2
- package/web-dist/assets/UINodeRenderer-BaANWHvJ.js +0 -4
- package/web-dist/assets/UINodeRenderer-BaANWHvJ.js.map +0 -1
- package/web-dist/assets/UnfilteredNote-zVO8ajSi.js +0 -2
- package/web-dist/assets/UnfilteredNote-zVO8ajSi.js.map +0 -1
- package/web-dist/assets/ViewSelect-C9gNftWK.js +0 -2
- package/web-dist/assets/ViewSelect-C9gNftWK.js.map +0 -1
- package/web-dist/assets/api-DMrk4xwq.js +0 -2
- package/web-dist/assets/api-DMrk4xwq.js.map +0 -1
- package/web-dist/assets/attention-B9uawu1d.js +0 -2
- package/web-dist/assets/attention-B9uawu1d.js.map +0 -1
- package/web-dist/assets/automations-IX9DQNk8.js +0 -2
- package/web-dist/assets/board-BUAI4L7M.js +0 -6
- package/web-dist/assets/board-BUAI4L7M.js.map +0 -1
- package/web-dist/assets/check-CEnbWw4D.js +0 -2
- package/web-dist/assets/check-CEnbWw4D.js.map +0 -1
- package/web-dist/assets/chevron-right-BM1IJI2z.js +0 -2
- package/web-dist/assets/code-Dav4E15n.js +0 -25
- package/web-dist/assets/code-Dav4E15n.js.map +0 -1
- package/web-dist/assets/describe-B66LJTqU.js +0 -2
- package/web-dist/assets/describe-B66LJTqU.js.map +0 -1
- package/web-dist/assets/describe-BeFxHr2Y.js +0 -5
- package/web-dist/assets/describe-BeFxHr2Y.js.map +0 -1
- package/web-dist/assets/enroll-GUEF5Uxu.js +0 -2
- package/web-dist/assets/external-link-B3hnazCa.js +0 -2
- package/web-dist/assets/external-link-B3hnazCa.js.map +0 -1
- package/web-dist/assets/index-BUZpNu-R.js +0 -22
- package/web-dist/assets/index-BUZpNu-R.js.map +0 -1
- package/web-dist/assets/index-C9iuCGwg.css +0 -2
- package/web-dist/assets/keyboardLayers-BZOygMAH.js +0 -2
- package/web-dist/assets/keyboardLayers-BZOygMAH.js.map +0 -1
- package/web-dist/assets/logic-BBQ4d1GC.js +0 -4
- package/web-dist/assets/logic-BBQ4d1GC.js.map +0 -1
- package/web-dist/assets/logic-BnSIy9_P.js +0 -2
- package/web-dist/assets/more-C1oPXLVM.js +0 -2
- package/web-dist/assets/more-C1oPXLVM.js.map +0 -1
- package/web-dist/assets/pencil-DeML-0z2.js +0 -2
- package/web-dist/assets/pencil-DeML-0z2.js.map +0 -1
- package/web-dist/assets/policyLogic-DqKyFQEW.js +0 -2
- package/web-dist/assets/queue-DWSd1kia.js +0 -2
- package/web-dist/assets/queue-DWSd1kia.js.map +0 -1
- package/web-dist/assets/repo-DRwGWCut.js +0 -2
- package/web-dist/assets/repo-DRwGWCut.js.map +0 -1
- package/web-dist/assets/settings-B0IbaTOd.js +0 -12
- package/web-dist/assets/settings-B0IbaTOd.js.map +0 -1
- package/web-dist/assets/states-hyf_ATdQ.js +0 -58
- package/web-dist/assets/states-hyf_ATdQ.js.map +0 -1
- package/web-dist/assets/terminal-login-BdkmJdOO.js +0 -2
- package/web-dist/assets/timer-DFrvOKOy.js +0 -2
- package/web-dist/assets/timer-DFrvOKOy.js.map +0 -1
- package/web-dist/assets/useBreakpoint-BYCN9s8X.js +0 -2
- package/web-dist/assets/useBreakpoint-BYCN9s8X.js.map +0 -1
- package/web-dist/assets/useNow-DXyC-YfE.js +0 -2
- package/web-dist/assets/useNow-DXyC-YfE.js.map +0 -1
- package/web-dist/assets/useResource-DYNGG9XS.js +0 -2
- package/web-dist/assets/useResource-DYNGG9XS.js.map +0 -1
- package/web-dist/assets/workboard-BJCZsLp5.js +0 -3
- package/web-dist/assets/workboard-BJCZsLp5.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Website and documentation: **https://switchyard-site.pages.dev**
|
|
|
6
6
|
|
|
7
7
|
A coding agent has to run where your repositories, toolchains and logins are: your laptop, a workstation, a home server. You, on the other hand, are not always sitting in front of that machine. Switchyard keeps the agents where the work is and lets you follow along from anywhere: start a session from your phone, answer the question it asks while you are on your laptop, take over from a terminal, and get a notification when the result is ready for review. Every client looks at the same live session, and closing one never stops the work.
|
|
8
8
|
|
|
9
|
-
Switchyard tracks what you are working on as branches: each has a worktree and one agent session, wherever it runs, and the issues, pull requests and board columns that go with it. On top of that it adds GitHub
|
|
9
|
+
Switchyard tracks what you are working on as branches: each has a worktree and one agent session, wherever it runs, and the issues, pull requests and board columns that go with it. On top of that it adds scopes fed by your GitHub issues, scheduled automations and a review flow, so an agent can work through a backlog while you are away and hand everything back for you to accept. Switchyard aims to preserve continuity with your evolving Pi setup: plugins own their workflows and optional adapters translate supported interactions, not arbitrary custom terminal UIs. See [the ownership contract](docs/plugin-boundaries.md).
|
|
10
10
|
|
|
11
11
|
## How it fits together
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ There are three kinds of parts:
|
|
|
39
39
|
|
|
40
40
|
- **The coordinator** is the one always-on service. It keeps tasks, schedules, notifications, devices and the shared view of every session, and it decides what runs where. It never runs an agent and never holds your provider credentials, so it can live anywhere: a container, a small server, or your laptop.
|
|
41
41
|
- **Hosts** are your machines. A host agent runs Pi as your OS user, with your repositories, worktrees, Pi packages and model logins, and connects *outbound* to the coordinator. A host needs no open ports, and a laptop can come and go: its sessions keep running while the coordinator is down, and the events catch up when it returns.
|
|
42
|
-
- **Clients** show
|
|
42
|
+
- **Clients** show scopes: a scope is a named part of your work, and a herdr or tmux client can mirror one scope, everything, or nothing. The web app works on desktop and as an installed app on a phone; in a terminal you get Pi's own TUI for any session (`switchyard tui`, or a whole herdr session mirroring Switchyard), and the scriptable CLI works over the same API. Any client can watch, answer and steer a session; none of them owns it.
|
|
43
43
|
|
|
44
44
|
For a single machine, `switchyard up` runs the coordinator and a host in one process. For more, run the coordinator as a server and enroll each machine as a host. The protocol is the same either way.
|
|
45
45
|
|
|
@@ -55,7 +55,7 @@ sequenceDiagram
|
|
|
55
55
|
participant Coord as Coordinator
|
|
56
56
|
participant Host as Host (Pi)
|
|
57
57
|
|
|
58
|
-
Coord->>Coord: A
|
|
58
|
+
Coord->>Coord: A scope's GitHub source finds an issue assigned to you (Not started)
|
|
59
59
|
You->>Phone: Start it on the Board
|
|
60
60
|
Phone->>Coord: Open its branch
|
|
61
61
|
Coord->>Host: Create the worktree, start Pi
|
|
@@ -69,10 +69,10 @@ sequenceDiagram
|
|
|
69
69
|
Coord->>Host: Archive the sessions, remove the worktree
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
1. **Work arrives or you start it.** A [
|
|
72
|
+
1. **Work arrives or you start it.** A [scope](docs/scopes.md) with a GitHub source lists the issues assigned to you in the Board's Not started column. Starting one, or opening any branch from New session, makes its git worktree inside the repository (`<repo>/.worktrees/<branch>` by default) and its primary session. A branch that already has a session opens that session instead.
|
|
73
73
|
2. **The agent asks, you answer anywhere.** Questions and approvals from Pi and its plugins appear as cards in every client and as a notification on the device you are most likely to see. Answer once; every client shows the result.
|
|
74
74
|
3. **You can step in.** Join from any client to watch and send messages, steer the current turn or queue a follow-up, or open Pi's own terminal for the session. A second session on the same branch is possible when you ask for it; it nests under the first.
|
|
75
|
-
4. **The branch moves with its pull request.** Working, In review when the pull request opens, Merged when it merges. With write-back on,
|
|
75
|
+
4. **The branch moves with its pull request.** Working, In review when the pull request opens, Merged when it merges. With write-back on, Switchyard moves the issue's card on your GitHub Projects board too.
|
|
76
76
|
5. **Cleanup follows the merge.** With "Remove merged worktrees" on, a merged, clean, idle worktree is removed and its sessions archived.
|
|
77
77
|
|
|
78
78
|
**Automations use tasks.** A task has an objective, acceptance criteria, dependencies and a priority; an automation (a schedule, a webhook, another task finishing) or the task board makes it ready, and Switchyard dispatches it once to a host, where it gets its own worktree and session, runs your checks, and waits in Review with its diff for you to accept. See [the specification](docs/spec.md).
|
|
@@ -82,8 +82,9 @@ sequenceDiagram
|
|
|
82
82
|
| Area | What you get |
|
|
83
83
|
|---|---|
|
|
84
84
|
| **Branches** | One row per branch with its primary session; extra sessions and subagents nested under it; open a new or existing branch in one step; the same branch on two hosts is one row |
|
|
85
|
-
| **Board** | Branches by stage (Not started, Working, In review, Merged), or by a GitHub Projects board's columns for a
|
|
86
|
-
| **
|
|
85
|
+
| **Board** | Branches by stage (Not started, Working, In review, Merged), or by a GitHub Projects board's columns for a GitHub scope |
|
|
86
|
+
| **Scopes** | Named parts of your work: projects you choose and sessions you pin, or the GitHub issues assigned to you (or every open issue on a Projects board), with worktrees for their branches and card moves on your board ([scopes.md](docs/scopes.md)) |
|
|
87
|
+
| **Clients** | The web app, the phone and the CLI, and herdr and tmux sessions that mirror a scope as a tab per active branch ([clients.md](docs/clients.md)) |
|
|
87
88
|
| **Sessions** | Persistent Pi conversations on any host; the same live session in every client; steer or queue follow-ups; take over and return to automation; resume after crashes with the same conversation (never a silent new one); import existing Pi sessions; switch model and effort, see context use and compact, a slash-command picker |
|
|
88
89
|
| **Workspaces** | A git worktree per branch inside the repository, discovery of worktrees you made yourself, setup commands, `.worktreeinclude` to copy ignored files such as `.env` into new worktrees, removal that refuses to lose uncommitted or unmerged work, and project folders per host whose repositories are added automatically |
|
|
89
90
|
| **Tasks and automations** | A task board (Backlog, Ready, In progress, Review, Done) for dispatched work; dependencies with cycle detection; priorities; per-project concurrency limits; a Queue view explaining why queued work waits |
|
|
@@ -104,14 +105,15 @@ sequenceDiagram
|
|
|
104
105
|
| **Branch** | A project on a branch: the unit of work, listed on Sessions and the Board. Derived from its workspaces and sessions |
|
|
105
106
|
| **Workspace** | A branch's checkout on one host: the main checkout or a git worktree |
|
|
106
107
|
| **Session** | One persistent Pi conversation in a workspace. Each branch has a **primary** session; others are **extras**; **subagents** belong to the session that started them |
|
|
107
|
-
| **
|
|
108
|
-
| **Issue** | One issue a
|
|
108
|
+
| **Scope** | A named part of your work: a set of projects you choose and pins, or the issues of a GitHub source (those assigned to you, or a board's open issues). Not a permission |
|
|
109
|
+
| **Issue** | One issue a scope's GitHub source follows, attached to the branch it is worked on |
|
|
109
110
|
| **Stage** | Where a branch is: Not started, Working, In review, Merged |
|
|
110
|
-
| **
|
|
111
|
-
| **Device** |
|
|
112
|
-
| **Terminal** | A
|
|
111
|
+
| **Client** | Anything signed in that shows your work: the web app, the phone, the CLI, or a herdr or tmux session, which holds Pi you start there by hand and mirrors nothing, everything or one scope, a tab per active branch |
|
|
112
|
+
| **Device** | The credential a client signs in with: a browser, an installed web app or a machine's CLI |
|
|
113
|
+
| **Terminal session** | A session whose Pi runs its own TUI in a pseudo-terminal Switchyard holds; the other kind is an RPC session |
|
|
113
114
|
| **Task** | A unit of dispatched work, with an objective and acceptance criteria, on the task board |
|
|
114
115
|
| **Run** | One attempt at a task, carried out in a session |
|
|
116
|
+
| **Module** | Code that adds one kind of host, client, scope or trigger: herdr and tmux are client modules, GitHub is a scope module |
|
|
115
117
|
| **Adapter** | Code that renders a specific Pi plugin's questions and state as structured UI |
|
|
116
118
|
|
|
117
119
|
A seeded **Vanilla** profile runs stock Pi (no extensions, skills or prompt templates).
|
|
@@ -132,7 +134,7 @@ switchyard up
|
|
|
132
134
|
```sh
|
|
133
135
|
docker run -d --name switchyard -p 127.0.0.1:7400:7400 -v switchyard-data:/data \
|
|
134
136
|
-e SWITCHYARD_PUBLIC_URL=https://switchyard.example.com \
|
|
135
|
-
ghcr.io/justmytwospence/switchyard:0.
|
|
137
|
+
ghcr.io/justmytwospence/switchyard:0.22.0
|
|
136
138
|
# Single sign-on is required off localhost: see docs/auth.md
|
|
137
139
|
```
|
|
138
140
|
|
|
@@ -169,16 +171,18 @@ Switchyard is young and moving quickly. It is tested against Pi `>=1.4.0 <1.7.0`
|
|
|
169
171
|
| Guide | Covers |
|
|
170
172
|
|---|---|
|
|
171
173
|
| [Getting started](docs/getting-started.md) | Install, first host, first session, phone and terminal |
|
|
172
|
-
| [Model](docs/model.md) | Branches, sessions,
|
|
173
|
-
| [
|
|
174
|
+
| [Model](docs/model.md) | Branches, sessions, scopes, devices and clients, and how they fit together |
|
|
175
|
+
| [Scopes](docs/scopes.md) | Named parts of your work; GitHub issues, worktrees for their branches, Projects board write-back |
|
|
176
|
+
| [Clients](docs/clients.md) | The web app, the phone, the CLI, and herdr and tmux sessions that mirror a scope |
|
|
174
177
|
| [Deployment](docs/deployment.md) | Single machine, server, reverse proxies, VPNs, hosts, environment reference, privilege model |
|
|
175
178
|
| [Sign-in and devices](docs/auth.md) | The owner model, single sign-on, passkeys, terminal approval, single sign-on, host enrollment, revocation |
|
|
176
179
|
| [CLI](docs/cli.md) | Every `switchyard` command and credentials |
|
|
177
180
|
| [Keyboard shortcuts](docs/keyboard-shortcuts.md) | Vim-style app navigation, palette controls and the `?` help sheet |
|
|
178
|
-
| [
|
|
181
|
+
| [Terminal sessions](docs/terminal-sessions.md) | Pi's own TUI for every session, from any terminal; sessions you start yourself |
|
|
179
182
|
| [Operations](docs/operations.md) | Backup, restore, migrations, retention, logs, health, diagnostics |
|
|
180
183
|
| [Policies](docs/policies.md) | Agent tools, guardrails, approvals and budgets |
|
|
181
184
|
| [GitHub](docs/github.md) | Host authentication, PR review and merge, issue tasks |
|
|
185
|
+
| [Modules](docs/modules.md) | The kinds of host, client, scope and trigger, and what another project can add |
|
|
182
186
|
| [Adapters](docs/adapters.md) | Rendering a Pi plugin's UI in every client; shipping an adapter with your Pi package |
|
|
183
187
|
| [Architecture](docs/architecture.md) | Components, data ownership, the host and client protocols, packages |
|
|
184
188
|
| [Development](docs/development.md) | Building, testing (including against real Pi), contributing |
|