arco-workbench 0.1.8 → 0.1.9
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/CONTRIBUTING.md +11 -0
- package/README.md +7 -5
- package/client/dist/assets/{PhosphorBackdrop-D7jdAV_G.js → PhosphorBackdrop-DRu16-Is.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DrDm60h8.js → ThemedBackgroundShaderImpl-BLdwwQ4D.js} +1 -1
- package/client/dist/assets/{XtermView-BGFujb1e.js → XtermView-Xk7_9JaH.js} +1 -1
- package/client/dist/assets/{galleryEditor-D951A2sE.js → galleryEditor-CI8ClzBa.js} +1 -1
- package/client/dist/assets/{index-DD9kFGsF.css → index-BEFgrUJJ.css} +1 -1
- package/client/dist/assets/{index-CsVy3eZm.js → index-C7WzZfsr.js} +246 -244
- package/client/dist/index.html +2 -2
- package/client/src/App.tsx +2 -0
- package/client/src/components/ChatMessage.tsx +33 -8
- package/client/src/components/ChatModeView.tsx +2 -0
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +25 -8
- package/client/src/components/CodexLateCommand.tsx +34 -0
- package/client/src/components/DialogShell.tsx +2 -0
- package/client/src/components/MemberCard.tsx +4 -1
- package/client/src/components/MemberPane.tsx +3 -1
- package/client/src/components/PhoneUpload.tsx +288 -0
- package/client/src/components/PrimaryStatus.tsx +14 -6
- package/client/src/components/RuntimeStateBanner.tsx +5 -0
- package/client/src/components/SkillEditorDialog.tsx +2 -2
- package/client/src/components/SkillsSettings.tsx +17 -5
- package/client/src/components/TerminalInput.tsx +3 -1
- package/client/src/components/WorkflowView.tsx +2 -0
- package/client/src/explorer/ArtifactsLens.tsx +37 -28
- package/client/src/explorer/ExplorerApp.tsx +5 -4
- package/client/src/explorer/types.ts +8 -3
- package/client/src/help/content/cluster.tsx +11 -1
- package/client/src/help/content/composer.tsx +18 -1
- package/client/src/help/content/header.tsx +2 -1
- package/client/src/help/content/misc.tsx +1 -1
- package/client/src/help/content/settings.tsx +1 -1
- package/client/src/help/manualSections/clusters.tsx +3 -0
- package/client/src/help/manualSections/configuration.tsx +3 -1
- package/client/src/help/manualSections/gettingStarted.tsx +4 -4
- package/client/src/help/manualSections/maintenance.tsx +7 -6
- package/client/src/help/manualSections/powerFeatures.tsx +3 -2
- package/client/src/help/manualSections/workspace.tsx +30 -0
- package/client/src/stores/appStore.ts +7 -0
- package/client/src/stores/appStore.types.ts +4 -0
- package/client/src/styles/global.css +109 -0
- package/client/src/utils/phoneTheme.ts +38 -0
- package/client/src/utils/phoneUploadApi.ts +10 -0
- package/client/src/ws/handleServerMessage.ts +23 -6
- package/docs/CLIENT.md +7 -1
- package/docs/FEATURES.md +6 -3
- package/docs/GETTING_STARTED.md +8 -3
- package/docs/INDEX.md +1 -1
- package/docs/OPERATIONS.md +199 -48
- package/docs/PROTOCOL_CLUSTER.md +9 -1
- package/docs/PROVIDERS.md +34 -0
- package/docs/SETTINGS.md +5 -3
- package/native/darwin-arm64/manifest.json +1 -1
- package/native/linux-x64/manifest.json +1 -1
- package/native/win32-x64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +11 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/server/dist/clusterDirector.js +1 -0
- package/server/dist/clusterPeerOps.js +4 -1
- package/server/dist/clusterRehydrate.js +2 -0
- package/server/dist/explorerDocs.d.ts +10 -6
- package/server/dist/explorerDocs.js +75 -34
- package/server/dist/http/attachmentUpload.d.ts +13 -0
- package/server/dist/http/attachmentUpload.js +38 -0
- package/server/dist/http/browserWorktrees.d.ts +23 -0
- package/server/dist/http/browserWorktrees.js +120 -0
- package/server/dist/http/phoneUploadDrafts.d.ts +13 -0
- package/server/dist/http/phoneUploadDrafts.js +125 -0
- package/server/dist/http/phoneUploadListener.d.ts +17 -0
- package/server/dist/http/phoneUploadListener.js +81 -0
- package/server/dist/http/phoneUploadNetwork.d.ts +9 -0
- package/server/dist/http/phoneUploadNetwork.js +106 -0
- package/server/dist/http/phoneUploadPage.d.ts +2 -0
- package/server/dist/http/phoneUploadPage.js +136 -0
- package/server/dist/http/phoneUploadRouteHistory.d.ts +4 -0
- package/server/dist/http/phoneUploadRouteHistory.js +72 -0
- package/server/dist/http/phoneUploadRoutes.d.ts +4 -0
- package/server/dist/http/phoneUploadRoutes.js +419 -0
- package/server/dist/http/phoneUploadTheme.d.ts +17 -0
- package/server/dist/http/phoneUploadTheme.js +96 -0
- package/server/dist/http/projectBinding.d.ts +1 -0
- package/server/dist/http/projectBinding.js +3 -2
- package/server/dist/http/readConfinement.js +5 -1
- package/server/dist/http/router.js +13 -24
- package/server/dist/http/writeConfinement.js +19 -2
- package/server/dist/primitives/seedWorker.d.ts +1 -0
- package/server/dist/primitives/seedWorker.js +2 -1
- package/server/dist/providers/codex-appserver/heldCommands.d.ts +14 -0
- package/server/dist/providers/codex-appserver/heldCommands.js +54 -0
- package/server/dist/providers/codex-appserver/index.d.ts +52 -2
- package/server/dist/providers/codex-appserver/index.js +239 -21
- package/server/dist/providers/codex-appserver/lateCommands.d.ts +62 -0
- package/server/dist/providers/codex-appserver/lateCommands.js +195 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +23 -1
- package/server/dist/providers/codex-appserver/worker.js +89 -20
- package/server/dist/providers/codex.js +2 -2
- package/server/dist/providers/codexCodeMode.d.ts +2 -1
- package/server/dist/providers/codexCodeMode.js +7 -3
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/processKill.d.ts +9 -1
- package/server/dist/workers/processKill.js +26 -10
- package/server/dist/ws/handoffHandlers.js +2 -0
- package/server/dist/ws/turnEngine.js +17 -0
- package/server/package.json +1 -1
- package/server/src/clusterDirector.ts +1 -0
- package/server/src/clusterPeerOps.ts +4 -1
- package/server/src/clusterRehydrate.ts +2 -0
- package/server/src/explorerDocs.ts +75 -34
- package/server/src/http/attachmentUpload.ts +49 -0
- package/server/src/http/browserWorktrees.ts +124 -0
- package/server/src/http/phoneUploadDrafts.ts +118 -0
- package/server/src/http/phoneUploadListener.ts +96 -0
- package/server/src/http/phoneUploadNetwork.ts +117 -0
- package/server/src/http/phoneUploadPage.ts +137 -0
- package/server/src/http/phoneUploadRouteHistory.ts +73 -0
- package/server/src/http/phoneUploadRoutes.ts +398 -0
- package/server/src/http/phoneUploadTheme.ts +97 -0
- package/server/src/http/projectBinding.ts +3 -2
- package/server/src/http/readConfinement.ts +5 -1
- package/server/src/http/router.ts +11 -25
- package/server/src/http/writeConfinement.ts +13 -2
- package/server/src/primitives/seedWorker.ts +3 -1
- package/server/src/providers/codex-appserver/heldCommands.ts +58 -0
- package/server/src/providers/codex-appserver/index.ts +222 -20
- package/server/src/providers/codex-appserver/lateCommands.ts +225 -0
- package/server/src/providers/codex-appserver/worker.ts +85 -21
- package/server/src/providers/codex.ts +2 -2
- package/server/src/providers/codexCodeMode.ts +8 -3
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/processKill.ts +35 -7
- package/server/src/ws/handoffHandlers.ts +2 -0
- package/server/src/ws/turnEngine.ts +15 -0
- package/shared/dist/protocol/chat.d.ts +1 -0
- package/shared/dist/protocol/clusters.d.ts +2 -0
- package/shared/dist/protocol/serverMessages.d.ts +11 -0
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/src/protocol/chat.ts +1 -0
- package/shared/src/protocol/clusters.ts +4 -5
- package/shared/src/protocol/serverMessages.ts +11 -0
- package/shared/src/protocol/workflows.ts +4 -0
package/docs/OPERATIONS.md
CHANGED
|
@@ -71,47 +71,10 @@ come from `ARCO_HOME`, `ARCO_PORT`, `ARCO_HOST`, and the other supported
|
|
|
71
71
|
environment values saved at first install. Existing unowned or modified service
|
|
72
72
|
definitions are refused.
|
|
73
73
|
|
|
74
|
-
On
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
`arco.ps1` files come from an earlier install under the previous package name
|
|
79
|
-
`@ghreprimand/arco`, which provides the same `arco` command. Arco does not
|
|
80
|
-
write those three launcher files itself; npm creates them from the package's
|
|
81
|
-
`bin` entry.
|
|
82
|
-
|
|
83
|
-
To keep a working `arco-workbench` install and its running service, uninstall
|
|
84
|
-
the earlier package and recreate the launchers:
|
|
85
|
-
|
|
86
|
-
```sh
|
|
87
|
-
npm uninstall -g @ghreprimand/arco
|
|
88
|
-
npm rebuild -g arco-workbench
|
|
89
|
-
arco version
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
`npm rebuild -g arco-workbench` recreates the launcher files without replacing
|
|
93
|
-
package files, so it is safe while the service runs. While the launchers are
|
|
94
|
-
missing, the package is still intact when this runs (PowerShell: use
|
|
95
|
-
`$env:APPDATA` in place of `%APPDATA%`):
|
|
96
|
-
|
|
97
|
-
```bat
|
|
98
|
-
node "%APPDATA%\npm\node_modules\arco-workbench\scripts\packaging\arco.mjs" version
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
For a fresh install, uninstall `@ghreprimand/arco` first when
|
|
102
|
-
`npm ls -g --depth=0` lists it, then install `arco-workbench` (see
|
|
103
|
-
[Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies)).
|
|
104
|
-
If a direct overwrite left the service holding package files open, stop or
|
|
105
|
-
uninstall the service before replacing the package. Do not delete
|
|
106
|
-
`%USERPROFILE%\.arco` as a routine step; it holds settings and saved work (see
|
|
107
|
-
[Uninstall](#uninstall) if that data must go).
|
|
108
|
-
|
|
109
|
-
If `npm install -g arco-workbench` fails with `EEXIST` because an `arco` link
|
|
110
|
-
already exists in the global bin folder (for example from `@ghreprimand/arco`
|
|
111
|
-
or an earlier source checkout's `npm link`), remove that link or uninstall the
|
|
112
|
-
listed package (`npm uninstall -g @ghreprimand/arco` when it appears in
|
|
113
|
-
`npm ls -g --depth=0`), then install again. For `EACCES` on Linux or macOS, use
|
|
114
|
-
nvm or a user-owned npm prefix (for example under Homebrew's Node).
|
|
74
|
+
On Linux or macOS, an `EEXIST` error on the global `arco` link can come
|
|
75
|
+
from an earlier package or a source checkout linked with `npm link`. Uninstall
|
|
76
|
+
that package or remove its stale link before installing again. For `EACCES`,
|
|
77
|
+
use nvm or a user-owned npm prefix (for example under Homebrew's Node).
|
|
115
78
|
|
|
116
79
|
The package starts on port 3001 when available and chooses the next free port
|
|
117
80
|
through 3099, then an operating-system-assigned port. It saves and reuses the
|
|
@@ -124,6 +87,54 @@ LaunchAgent `arco-workbench.plist` with label `arco-workbench`, or the Windows
|
|
|
124
87
|
Task Scheduler logon task `arco-workbench`. See
|
|
125
88
|
[`SERVICE_MODE.md`](SERVICE_MODE.md).
|
|
126
89
|
|
|
90
|
+
### Windows install and launcher recovery
|
|
91
|
+
|
|
92
|
+
Use [Updating Arco](#updating-arco) for an existing install. A direct npm
|
|
93
|
+
overwrite can fail while the packaged service holds files open. npm can
|
|
94
|
+
report `EPERM` during cleanup. A separate `EEXIST` on `arco.cmd` means a
|
|
95
|
+
launcher is already present. In the confirmed case it belonged to
|
|
96
|
+
`@ghreprimand/arco`, an earlier package that also provides `arco`. npm
|
|
97
|
+
creates `arco`, `arco.cmd`, and `arco.ps1` from the package's `bin` entry.
|
|
98
|
+
`arco setup` manages the service and shortcuts.
|
|
99
|
+
|
|
100
|
+
Use the same terminal and npm installation that produced the error. In
|
|
101
|
+
PowerShell, check the installed packages and the launchers npm would use:
|
|
102
|
+
|
|
103
|
+
```powershell
|
|
104
|
+
npm ls -g --depth=0
|
|
105
|
+
$prefix = npm prefix -g
|
|
106
|
+
Get-Command arco -All -ErrorAction SilentlyContinue
|
|
107
|
+
Get-ChildItem -LiteralPath $prefix -Name |
|
|
108
|
+
Where-Object { $_ -in 'arco', 'arco.cmd', 'arco.ps1' }
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The usual prefix is `%APPDATA%\npm`. Use the reported prefix for a custom
|
|
112
|
+
installation. If a launcher remains, open it as text and look for
|
|
113
|
+
`node_modules\@ghreprimand\arco`, `node_modules\arco-workbench`, or a
|
|
114
|
+
linked source checkout. Check each remaining launcher, since they can point
|
|
115
|
+
to different targets. Remove only stale launchers whose targets belong to
|
|
116
|
+
the Arco copy being removed.
|
|
117
|
+
|
|
118
|
+
If the older package is listed, remove it with
|
|
119
|
+
`npm uninstall -g @ghreprimand/arco`. If the current package is intact and
|
|
120
|
+
its launchers are missing, recreate them with `npm rebuild -g arco-workbench`.
|
|
121
|
+
Then run `arco version` and `arco doctor`. The version identifies which
|
|
122
|
+
package the launcher reaches. The doctor checks the runtime and native
|
|
123
|
+
modules. If the launcher is missing, run the same checks from the package
|
|
124
|
+
directly in PowerShell:
|
|
125
|
+
|
|
126
|
+
```powershell
|
|
127
|
+
$cli = Join-Path $prefix 'node_modules\arco-workbench\scripts\packaging\arco.mjs'
|
|
128
|
+
node $cli version
|
|
129
|
+
node $cli doctor
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
A failed direct overwrite can leave package files or dependencies incomplete.
|
|
133
|
+
If the installed package cannot run or fails its runtime checks, follow the
|
|
134
|
+
[manual package update steps](#packaged-install) with the service stopped.
|
|
135
|
+
Keep the Arco home with its settings and saved work. To remove all older
|
|
136
|
+
copies, follow [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
|
|
137
|
+
|
|
127
138
|
### Source checkout
|
|
128
139
|
|
|
129
140
|
Contributor source runs retain the checkout commands:
|
|
@@ -473,10 +484,10 @@ for manual review.
|
|
|
473
484
|
|
|
474
485
|
On Windows, `arco.cmd` is acceptable if the PowerShell shim is blocked. After
|
|
475
486
|
uninstalling `arco-workbench`, check `npm ls -g --depth=0` for the earlier
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
487
|
+
`@ghreprimand/arco` package and uninstall it if it is listed and being removed.
|
|
488
|
+
Check the three launcher names in the prefix reported by `npm prefix -g`.
|
|
489
|
+
Follow [Windows install and launcher recovery](#windows-install-and-launcher-recovery)
|
|
490
|
+
to inspect their targets. Remove only stale launchers for the copies removed.
|
|
480
491
|
|
|
481
492
|
### 3. Optional: delete Arco data (permanent)
|
|
482
493
|
|
|
@@ -590,9 +601,10 @@ npm uninstall -g arco-workbench
|
|
|
590
601
|
npm uninstall -g @ghreprimand/arco
|
|
591
602
|
```
|
|
592
603
|
|
|
593
|
-
Then confirm `arco version` no longer runs an old copy. On Windows,
|
|
594
|
-
|
|
595
|
-
|
|
604
|
+
Then confirm `arco version` no longer runs an old copy. On Windows, inspect
|
|
605
|
+
the three launchers under the prefix reported by `npm prefix -g` and remove
|
|
606
|
+
only stale launchers for the copies removed. See
|
|
607
|
+
[Windows install and launcher recovery](#windows-install-and-launcher-recovery).
|
|
596
608
|
|
|
597
609
|
### 3. Stop a source checkout
|
|
598
610
|
|
|
@@ -748,6 +760,145 @@ SSH session reaches it. Set `ARCO_HOST=0.0.0.0` **only** when you deliberately
|
|
|
748
760
|
want LAN/tailnet clients to reach the surface directly - there is no user login,
|
|
749
761
|
only the browser session cookie and the Host and Origin check above.
|
|
750
762
|
|
|
763
|
+
### Upload from phone
|
|
764
|
+
|
|
765
|
+
Open **UPLOAD FROM PHONE** beside Attach and scan the code on a phone on the
|
|
766
|
+
same private network or tailnet as this computer. The picker accepts photos,
|
|
767
|
+
PDFs, text and supported office documents. There is no account or relay. The
|
|
768
|
+
window lists each offered private IPv4 origin as `http://<ipv4>:<port>` from
|
|
769
|
+
the listener (home LAN and Tailscale addresses when present). It never lists
|
|
770
|
+
MagicDNS names, machine names or the desktop page's proxy URL. When several
|
|
771
|
+
origins appear, choose one. The QR encodes the full upload link for that origin
|
|
772
|
+
(`/phone-upload` plus the secret after `#`). The line under the code shows the
|
|
773
|
+
origin only, so you can tell which address and port it is using.
|
|
774
|
+
|
|
775
|
+
When the server itself listens on a private address (`ARCO_HOST` set to
|
|
776
|
+
`0.0.0.0`, `::` or one private address), the code uses that listener. With the
|
|
777
|
+
default loopback bind, opening the window starts a temporary phone listener on
|
|
778
|
+
each private IPv4 network and tailnet address of this computer, container
|
|
779
|
+
bridges excluded, one address at a time and never a wildcard. It tries Arco's
|
|
780
|
+
own port first and takes a free port on an address where that is taken. It
|
|
781
|
+
answers only the phone upload page and its upload endpoint; every other path
|
|
782
|
+
returns 404 and WebSocket upgrades are refused, so the workbench, its API and
|
|
783
|
+
the terminal stay on loopback. It closes about a minute after no code is open
|
|
784
|
+
and no upload is in progress. The main server's bind does not change.
|
|
785
|
+
|
|
786
|
+
Each offered address is marked UNVERIFIED until a file arrives through it.
|
|
787
|
+
After a successful upload the address is marked VERIFIED BY UPLOAD with the
|
|
788
|
+
time it last worked; the open window shows this on its next poll. The address
|
|
789
|
+
and port, its mark and, once it has worked, `Last worked` with the time each
|
|
790
|
+
take their own line, in the choice buttons when several addresses are
|
|
791
|
+
available and under the code for the chosen address, so a narrow window wraps
|
|
792
|
+
them cleanly. If one address does not open on the phone and another is
|
|
793
|
+
offered, close the window, open it again and choose the other address. Arco
|
|
794
|
+
knows it opened a listener there but cannot tell from the computer whether the
|
|
795
|
+
phone can reach it: the firewall or the network (a guest Wi-Fi, a router that
|
|
796
|
+
keeps devices apart) may block it, and settings can change after an address has
|
|
797
|
+
worked. **More info**, shown once in the window, says so and lists what to
|
|
798
|
+
check. Arco does not inspect the
|
|
799
|
+
firewall; reading its rules can need administrator rights and start a password
|
|
800
|
+
prompt.
|
|
801
|
+
|
|
802
|
+
The result is kept in `phone-upload-routes.json` in Arco's home: for each
|
|
803
|
+
address and port, only the time a file last arrived through it, at most 16
|
|
804
|
+
entries, written atomically and read again after a restart. Opening a code and
|
|
805
|
+
failed uploads record nothing, and the file holds no phone address, file name,
|
|
806
|
+
size or link token. If the file cannot be written the upload still succeeds and
|
|
807
|
+
the log has one line with the error code. Deleting the file while Arco is
|
|
808
|
+
stopped returns every address to UNVERIFIED; a running Arco keeps its copy in
|
|
809
|
+
memory and writes it back on the next successful upload.
|
|
810
|
+
|
|
811
|
+
Arco makes no firewall or system change. If the phone cannot open the page,
|
|
812
|
+
check that it is on the same network and that the computer's firewall allows
|
|
813
|
+
incoming connections on the port in the code; **More info** says so. Windows and
|
|
814
|
+
macOS may ask once whether Node.js may accept connections; allow it on private
|
|
815
|
+
networks. The phone itself must connect directly; an upload that arrives
|
|
816
|
+
through a reverse proxy such as Tailscale Serve is refused.
|
|
817
|
+
|
|
818
|
+
The phone page uses the Arco theme that was active on the computer when the
|
|
819
|
+
code was opened: its colours, borders and, for the themes that use a font
|
|
820
|
+
bundled with Arco (Victor Mono, Excalifont), that font. Other theme fonts load
|
|
821
|
+
from the internet on the computer, so the phone uses its own font instead. The
|
|
822
|
+
desktop page sends the theme's applied values with the request that opens the
|
|
823
|
+
code; the server keeps only fixed colour, border and font-name values that pass
|
|
824
|
+
strict checks, and the phone page reads them, and any bundled font, with the
|
|
825
|
+
code's token from the same `/phone-upload` path. No CSS, HTML or URL from the
|
|
826
|
+
desktop reaches the phone page, the page makes no request outside Arco, and the
|
|
827
|
+
page's content security policy is unchanged. A page that cannot read the theme
|
|
828
|
+
keeps its plain look.
|
|
829
|
+
|
|
830
|
+
The code allows uploads for five minutes, with up to 10 files, 20 MiB per file
|
|
831
|
+
and 100 MiB total. Closing it revokes further uploads but keeps files already
|
|
832
|
+
in the draft. The original conversation receives the attachments, and its
|
|
833
|
+
normal Send submits them. Arco removes discarded phone attachments and expires
|
|
834
|
+
unsent ones after 30 minutes. Anyone on the private network who obtains the
|
|
835
|
+
code may put a file in that draft. Plain HTTP can be observed on the network.
|
|
836
|
+
Use a trusted private network and review attachments before sending.
|
|
837
|
+
|
|
838
|
+
#### Same private LAN - upload only
|
|
839
|
+
|
|
840
|
+
Goal: the phone puts files in one draft. The workbench stays on this computer.
|
|
841
|
+
|
|
842
|
+
1. Leave Arco on the default bind (`ARCO_HOST=127.0.0.1`). The desktop page stays
|
|
843
|
+
on loopback (or the packaged local URL).
|
|
844
|
+
2. On the computer, open the conversation and press **UPLOAD FROM PHONE**.
|
|
845
|
+
3. If several addresses appear, each shows the origin, then **UNVERIFIED** or
|
|
846
|
+
**VERIFIED BY UPLOAD**, then **Last worked** with a time when verified, each
|
|
847
|
+
on its own line. Choose the home-LAN origin, for example
|
|
848
|
+
`http://192.0.2.10:3001`. That line is the address and port only. **More info**
|
|
849
|
+
(once in the window) explains reachability and what to check.
|
|
850
|
+
4. On the phone, join the same Wi-Fi or LAN as the computer (not a guest network
|
|
851
|
+
that isolates clients). Scan the QR code so the phone opens the full link.
|
|
852
|
+
Do not type only the origin shown under the code; that address alone is not
|
|
853
|
+
the upload page with the link token. Use **Take Photo** or **Choose Files**.
|
|
854
|
+
5. If the page does not load: confirm the same network; allow incoming
|
|
855
|
+
connections on the private profile for the port in the origin (Windows and
|
|
856
|
+
macOS may ask once); on Linux, allow that TCP port only on the private or LAN
|
|
857
|
+
zone. Do not open it to the public internet. Arco does not change the
|
|
858
|
+
firewall.
|
|
859
|
+
6. After a file arrives, the desktop mark becomes **VERIFIED BY UPLOAD** with
|
|
860
|
+
**Last worked** and the local time. Review attachments, then **Send**.
|
|
861
|
+
|
|
862
|
+
This path is not setting `ARCO_HOST=0.0.0.0` so phones browse the full
|
|
863
|
+
workbench. That bind exposes filesystem and control surfaces with only the
|
|
864
|
+
session cookie and Host/Origin checks (see Exposure posture above).
|
|
865
|
+
|
|
866
|
+
#### Same Tailscale tailnet - upload only
|
|
867
|
+
|
|
868
|
+
Goal: phone and desktop share a Tailscale network; upload uses the Tailscale
|
|
869
|
+
IPv4 origin in the chooser.
|
|
870
|
+
|
|
871
|
+
1. Install Tailscale on the Arco computer and the phone; sign both into the same
|
|
872
|
+
tailnet. MagicDNS names help the operator recognise devices in the Tailscale
|
|
873
|
+
console; they do not appear in Arco's chooser.
|
|
874
|
+
2. Keep Arco on the default loopback bind for the desktop session.
|
|
875
|
+
3. Open **UPLOAD FROM PHONE**. When several addresses appear, choose the
|
|
876
|
+
Tailscale IPv4 origin Arco shows (CGNAT `100.x` form). Origins are always
|
|
877
|
+
`http://<ipv4>:<port>` from the listener; never a MagicDNS name.
|
|
878
|
+
4. On the phone (cellular or another network is fine if Tailscale is up), scan
|
|
879
|
+
the QR for the full upload link. Direct connection only: do not put the
|
|
880
|
+
upload URL behind Tailscale Serve or Funnel; Serve and reverse-proxy uploads
|
|
881
|
+
are refused.
|
|
882
|
+
5. Allow the port in the origin for the Tailscale interface or zone if the OS
|
|
883
|
+
firewall blocks it; do not publish that port on the public internet.
|
|
884
|
+
6. A successful upload marks that origin **VERIFIED BY UPLOAD** as on the LAN
|
|
885
|
+
path.
|
|
886
|
+
|
|
887
|
+
Peer connectivity on a tailnet normally needs no extra inbound ports on the LAN
|
|
888
|
+
edge; still allow the Arco phone-upload port on the Arco host so the phone's
|
|
889
|
+
Tailscale interface can reach that listener.
|
|
890
|
+
|
|
891
|
+
#### Whole Arco on a private network (contrast)
|
|
892
|
+
|
|
893
|
+
When the operator wants the full UI from another device on a trusted private
|
|
894
|
+
network or via Tailscale Serve HTTPS, that is a deliberate bind or Serve setup
|
|
895
|
+
(`ARCO_HOST` and/or Tailscale Serve as in [Remote management](REMOTE_MANAGEMENT.md)
|
|
896
|
+
and Exposure posture). There is still no user password - only the browser
|
|
897
|
+
session cookie and Host/Origin checks. That path is separate from **UPLOAD FROM
|
|
898
|
+
PHONE**. The QR temporary listener answers only `/phone-upload` and its upload
|
|
899
|
+
API; it does not open the workbench, API or terminal. Never use Funnel or any
|
|
900
|
+
public relay to expose Arco or the upload listener.
|
|
901
|
+
|
|
751
902
|
The **Security & Exposure** group in the System modal's Diagnostics tab (and the
|
|
752
903
|
support bundle) reports this posture: bind address, terminal/git/filesystem/
|
|
753
904
|
credential exposure, preview proxy, local model endpoints, and risky env flags -
|
package/docs/PROTOCOL_CLUSTER.md
CHANGED
|
@@ -18,11 +18,15 @@ Cluster mode groups tabs sharing one cwd so members can hand notes between opera
|
|
|
18
18
|
|
|
19
19
|
### Peer messaging (workflow-scoped)
|
|
20
20
|
|
|
21
|
+
Select a sent or received PEER card in the conversation to read the available
|
|
22
|
+
message in a dialog. Older sent records may contain only a preview; the dialog
|
|
23
|
+
says when the full body was not saved. Close the dialog to return to the card.
|
|
24
|
+
|
|
21
25
|
Three workflow-scoped event kinds - emitted on each member's own `broadcastWorkflow` channel so events.jsonl carries the per-member view.
|
|
22
26
|
|
|
23
27
|
#### `peer_message_sent` <-
|
|
24
28
|
|
|
25
|
-
Emitted on the sender's workflow when `peer_send` succeeds.
|
|
29
|
+
Emitted on the sender's workflow when `peer_send` succeeds. New events carry the full content and a compact preview; older sender events may have only the preview. The recipient's matching `peer_message_received` carries the delivered content.
|
|
26
30
|
|
|
27
31
|
```ts
|
|
28
32
|
{
|
|
@@ -32,6 +36,8 @@ Emitted on the sender's workflow when `peer_send` succeeds. Carries a content pr
|
|
|
32
36
|
from: string, // sender workflowId (== workflowId above)
|
|
33
37
|
to: string, // recipient workflowId
|
|
34
38
|
contentPreview: string, // up to 200 chars
|
|
39
|
+
content?: string, // full content on new events
|
|
40
|
+
ts?: number, // original send time
|
|
35
41
|
chainDepth?: number, // auto-turn chain depth; stamped server-side at broadcast (operator-initiated sends ride at depth 0). The auto-turn detector refuses to fire when chainDepth ≥ AUTO_TURN_MAX_CHAIN_DEPTH.
|
|
36
42
|
}
|
|
37
43
|
```
|
|
@@ -1129,6 +1135,8 @@ task-board contents are not part of a cluster snapshot.
|
|
|
1129
1135
|
|
|
1130
1136
|
## Director roles and work size
|
|
1131
1137
|
|
|
1138
|
+
A Director is instructed to answer the operator first. For an unresolved issue, the answer recommends the next step, names its owner, and states any operator decision or action and when it is needed. The Director owns worker coordination and says when a worker already owns the follow-up and the operator has nothing to do. It promises later follow-up only when an available trigger can wake it, and asks the operator to nudge the Director only when progress depends on it. New work waits for operator approval; already approved work continues.
|
|
1139
|
+
|
|
1132
1140
|
A new cluster or preset may have at most one director. Role text beginning with Director or Coordinator identifies a director. Existing clusters and saved presets remain readable without rewriting their roles. Assigning a director to another member is rejected. Legacy clusters that already have two directors remain intact, surface a warning on MEMBERS rows, and still allow REPLACE that preserves both directors' roles. The optional `tier` field is a work-size hint for the director: light for quick edits, standard for normal feature work, and heavy for large or architectural changes. It does not change model or effort and is most useful when several members can take the same work. Template review offers work size only for repeated roles.
|
|
1133
1141
|
|
|
1134
1142
|
## Composer and task editor recovery
|
package/docs/PROVIDERS.md
CHANGED
|
@@ -82,6 +82,40 @@ ACTIVITY > BACKGROUND lists programs the agent started through a shell tool and
|
|
|
82
82
|
|
|
83
83
|
The tracker matches shell-tool commands to process arguments and follows their known children. Claude CLI, Codex exec and app-server, and Cursor ACP supply these events. Providers without a discoverable child-process id do not feed this process tracker. Native and local tool execution keep their existing task reporting.
|
|
84
84
|
|
|
85
|
+
|
|
86
|
+
When a Codex app-server turn ends with a shell command still running, the Arco
|
|
87
|
+
turn is not over. The tab and cluster member card stay WORKING and name the
|
|
88
|
+
command. When the command ends, Arco starts the next Codex turn on the same
|
|
89
|
+
thread with the command, its run time, exit code and the last 4,000 characters
|
|
90
|
+
of output, and shows a "Command ended" line. To the operator it is one turn.
|
|
91
|
+
This does not depend on AUTO-PICKUP and is never charged as a wake.
|
|
92
|
+
|
|
93
|
+
- One continuation when the last waited-on command ends, or at once when one
|
|
94
|
+
fails. Ends within two seconds of each other go into the same continuation;
|
|
95
|
+
a result that arrives while a Codex turn is running is added to that turn.
|
|
96
|
+
- Limits per Arco turn: 30 minutes of waiting in total and 20 continuations.
|
|
97
|
+
At either limit the turn ends with one line naming what still runs.
|
|
98
|
+
- STOP ends the wait at once and nothing continues afterwards. The command is
|
|
99
|
+
left running; its row in ACTIVITY still records how it ends.
|
|
100
|
+
- A message the operator sends during the wait, or an explicit nudge, ends the
|
|
101
|
+
wait: a steering message becomes the next Codex turn at once, a queued
|
|
102
|
+
follow-up runs next as its own turn and that turn receives the result.
|
|
103
|
+
Peer mail stays in the mailbox as during any turn; AUTO-PICKUP considers it
|
|
104
|
+
once the turn has ended.
|
|
105
|
+
- A program meant to keep running is not waited on: one the shell puts in the
|
|
106
|
+
background (`&`, `nohup`) ends its shell at once, and a known server or
|
|
107
|
+
watcher started in the foreground (`npm run dev`, `vite`, `uvicorn`,
|
|
108
|
+
`python -m http.server`, `--watch`, `tail -f`, `docker compose up` without
|
|
109
|
+
`-d`) is shown as running without holding the turn. Codex is told to start
|
|
110
|
+
such programs in the background.
|
|
111
|
+
- Losing the Codex connection, or Codex closing the thread, ends the wait with
|
|
112
|
+
the existing lost-result line.
|
|
113
|
+
|
|
114
|
+
A command that is not waited on keeps the "still running" line for up to five
|
|
115
|
+
minutes after the turn; ACTIVITY keeps its later exit on the original command.
|
|
116
|
+
The wait applies only to the app-server transport; `codex exec` ends its
|
|
117
|
+
process with the turn.
|
|
118
|
+
|
|
85
119
|
## The provider abstraction
|
|
86
120
|
|
|
87
121
|
Every provider implements `ProviderProcess` from `server/src/providers/types.ts`:
|
package/docs/SETTINGS.md
CHANGED
|
@@ -218,9 +218,11 @@ ignored. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the limit.
|
|
|
218
218
|
|
|
219
219
|
Settings > SKILLS offers PIN TO TAB for an Agent tab and PIN TO CLUSTER for all
|
|
220
220
|
members or one exact saved role, including a custom role. Project skills are
|
|
221
|
-
limited to their project; global skills can target any open tab or cluster.
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
limited to their project; global skills can target any open tab or cluster. The
|
|
222
|
+
active tab or its cluster is selected when eligible. After a pin is saved,
|
|
223
|
+
Settings shows the skill, destination and role in one line.
|
|
224
|
+
The cluster SKILLS button beside EFFICIENCY lists sources, scope and availability.
|
|
225
|
+
ADD SKILL pins an available skill to all members or one role; UNPIN removes a pin. New and replaced members inherit cluster pins automatically;
|
|
224
226
|
only the operator controls them. A member's FROM CLUSTER button opens the same
|
|
225
227
|
list without mixing inherited pins into its direct tab settings.
|
|
226
228
|
|
|
@@ -9,6 +9,7 @@ export interface ChatMessage {
|
|
|
9
9
|
id: string;
|
|
10
10
|
role: 'user' | 'assistant' | 'system' | 'peer-sent' | 'peer-received' | 'ctx-divider';
|
|
11
11
|
content: string;
|
|
12
|
+
peerFullContent?: string;
|
|
12
13
|
automaticKind?: AutomaticMessageKind;
|
|
13
14
|
authRecovery?: AuthRecoveryContext;
|
|
14
15
|
operatorQuestion?: OperatorQuestionState;
|
|
@@ -332,10 +332,20 @@ export interface PrimaryThinkingMessage {
|
|
|
332
332
|
workflowId: string;
|
|
333
333
|
text: string;
|
|
334
334
|
}
|
|
335
|
+
export interface CodexLateCommand {
|
|
336
|
+
itemId: string;
|
|
337
|
+
input: string;
|
|
338
|
+
startedAt: number;
|
|
339
|
+
waitingUntil: number;
|
|
340
|
+
waiting?: boolean;
|
|
341
|
+
}
|
|
335
342
|
export interface PrimaryToolUseMessage {
|
|
336
343
|
ollamaExecutionId?: string;
|
|
337
344
|
type: 'primary_tool_use';
|
|
338
345
|
workflowId: string;
|
|
346
|
+
lateCommand?: Omit<CodexLateCommand, 'itemId' | 'input'> & {
|
|
347
|
+
state: 'running' | 'finished' | 'lost' | 'untracked';
|
|
348
|
+
};
|
|
339
349
|
tool: string;
|
|
340
350
|
input: string;
|
|
341
351
|
status?: 'started' | 'in_progress' | 'completed' | 'failed';
|
|
@@ -515,6 +525,7 @@ export interface ProviderConversationStateMessage {
|
|
|
515
525
|
}
|
|
516
526
|
export interface WorkflowStateSnapshotMessage {
|
|
517
527
|
type: 'workflow_state_snapshot';
|
|
528
|
+
codexLateCommands?: CodexLateCommand[];
|
|
518
529
|
providerConversation?: 'unavailable' | 'awaiting-reading';
|
|
519
530
|
workflowId: string;
|
|
520
531
|
workers: Record<string, WorkerState>;
|
|
@@ -224,6 +224,7 @@ export interface WorkerConfig {
|
|
|
224
224
|
sandbox?: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
225
225
|
drainSteer?: () => SteerItem[];
|
|
226
226
|
peekSteer?: () => readonly SteerItem[];
|
|
227
|
+
pendingInput?: () => 'steer' | 'follow-up' | undefined;
|
|
227
228
|
requeueSteer?: (items: SteerItem[], bucket: 'steer' | 'follow-up') => void;
|
|
228
229
|
onSteerDelivered?: (items: SteerItem[]) => void;
|
|
229
230
|
workflowId?: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"node-pty": "1.1.0"
|
|
5
5
|
},
|
|
6
6
|
"name": "arco-workbench",
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.9",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/ghreprimand/arco.git"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"word-extractor": "1.0.4",
|
|
67
67
|
"ws": "8.22.0",
|
|
68
68
|
"xlsx": "0.20.3",
|
|
69
|
-
"@arco/shared": "0.1.
|
|
69
|
+
"@arco/shared": "0.1.9"
|
|
70
70
|
},
|
|
71
71
|
"bundleDependencies": [
|
|
72
72
|
"@arco/shared",
|
|
@@ -12,6 +12,7 @@ export function buildClusterDirectorDoctrine(role) {
|
|
|
12
12
|
'You are the operator-assigned Director of THIS Arco cluster: you coordinate, read the diff, and land. Peers implement, build, and test.',
|
|
13
13
|
'At the start of each turn, inspect pending peer mail. If the injected shared plan is marked OUTLINE, call cluster_plan_read before deciding what to do.',
|
|
14
14
|
'Reconcile relevant tasks, new peer evidence, repository state and applicable project instructions before reporting status. Read the broader plan or history when relevant or stale. Check an operator problem against the affected priorities and open items before asking them anything.',
|
|
15
|
+
'Answer the operator first. If an issue remains open, recommend the next step, name who owns the work, and say what the operator needs to decide or do and when, if anything. You own coordination with workers. When a worker already owns the follow-up and the operator has nothing to do, say so. Promise later follow-up only when an available trigger can wake you; otherwise explain who must act and when. Ask the operator to nudge the Director only when progress depends on it. New work waits for the operator\'s approval; continue already approved work as usual.',
|
|
15
16
|
'When this cluster has an Advisor, consult it before a design decision or when the evidence is thin; the decision remains yours.',
|
|
16
17
|
'Delegate implementation, builds, and test runs only through peer_send and track them on the board. Do not write or edit product code or tests yourself.',
|
|
17
18
|
'Stay available to the operator. Hand long-running work to peers: the project\'s checks to the tester (or a builder when there is no tester), CI watching to the change\'s author. Use their reports of what was done, run and not covered; do not run builds, test suites or CI waits yourself.',
|
|
@@ -301,6 +301,7 @@ export async function peerSend(ctx, args, opts) {
|
|
|
301
301
|
artifacts.push({ name: basename(abs), contentBase64: data.toString('base64'), byteLength: data.byteLength });
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
+
const createdAt = new Date().toISOString();
|
|
304
305
|
try {
|
|
305
306
|
await clusterMailbox.enqueue(resolved, {
|
|
306
307
|
msgId,
|
|
@@ -308,7 +309,7 @@ export async function peerSend(ctx, args, opts) {
|
|
|
308
309
|
fromDisplayName,
|
|
309
310
|
toWorkflowId: resolved,
|
|
310
311
|
content: args.content,
|
|
311
|
-
createdAt
|
|
312
|
+
createdAt,
|
|
312
313
|
delivered: false,
|
|
313
314
|
...(artifacts?.length ? { artifacts } : {}),
|
|
314
315
|
}, opts?.maxContentBytes !== undefined ? { maxContentBytes: opts.maxContentBytes } : undefined);
|
|
@@ -337,6 +338,8 @@ export async function peerSend(ctx, args, opts) {
|
|
|
337
338
|
from: ctx.workflowId,
|
|
338
339
|
to: resolved,
|
|
339
340
|
contentPreview: args.content.length > 200 ? `${args.content.slice(0, 200)}…` : args.content,
|
|
341
|
+
content: args.content,
|
|
342
|
+
ts: Date.parse(createdAt),
|
|
340
343
|
});
|
|
341
344
|
const warning = guard && clusterBudget.takeWarning(ctx.workflowId, guard, guardDecision.count)
|
|
342
345
|
? `Warn-only threshold exceeded: ${guardDecision.count}/${guard.threshold} peer messages this primary turn. Mail accepted. Consolidate related same-recipient information; required work and review still apply.`
|
|
@@ -45,6 +45,8 @@ export async function rehydrateClusterOnce(clusterId, opts) {
|
|
|
45
45
|
from: m.fromWorkflowId,
|
|
46
46
|
to: m.toWorkflowId,
|
|
47
47
|
contentPreview: m.content.length > 200 ? `${m.content.slice(0, 200)}…` : m.content,
|
|
48
|
+
content: m.content,
|
|
49
|
+
...(Number.isFinite(Date.parse(m.createdAt)) ? { ts: Date.parse(m.createdAt) } : {}),
|
|
48
50
|
};
|
|
49
51
|
// broadcastWorkflow stamps the event into the SENDER's events.jsonl
|
|
50
52
|
// and fans out to that workflow's live observers. The cluster
|
|
@@ -7,18 +7,22 @@ export interface DocEntry {
|
|
|
7
7
|
project: string;
|
|
8
8
|
cwd: string;
|
|
9
9
|
rel: string;
|
|
10
|
+
branch?: string;
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
interface DocsPage {
|
|
12
13
|
entries: DocEntry[];
|
|
13
14
|
partial: boolean;
|
|
14
|
-
|
|
15
|
+
projects?: Array<{
|
|
16
|
+
cwd: string;
|
|
17
|
+
project: string;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export declare function collectProjectDocsPage(project: string, limit?: number, global?: ScanBudget): Promise<DocsPage>;
|
|
15
21
|
export declare function collectProjectDocs(project: string, limit?: number): Promise<DocEntry[]>;
|
|
16
22
|
export declare function collectDocsPage(opts?: {
|
|
17
23
|
project?: string;
|
|
18
|
-
}): Promise<
|
|
19
|
-
entries: DocEntry[];
|
|
20
|
-
partial: boolean;
|
|
21
|
-
}>;
|
|
24
|
+
}): Promise<DocsPage>;
|
|
22
25
|
export declare function collectDocs(opts?: {
|
|
23
26
|
project?: string;
|
|
24
27
|
}): Promise<DocEntry[]>;
|
|
28
|
+
export {};
|