worktrust 0.11.12 → 0.11.14
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/CHANGELOG.md +57 -0
- package/README.md +19 -4
- package/SECURITY.md +13 -0
- package/cli-menu-remote.mjs +8 -4
- package/engine-release.json +1 -1
- package/package-release.json +1 -1
- package/package.json +4 -2
- package/remote-cli.mjs +5 -3
- package/remote-connections.mjs +5 -3
- package/remote-daemon.mjs +59 -6
- package/remote-desk-sessions.mjs +192 -0
- package/remote-health.mjs +220 -0
- package/remote-protocol.mjs +189 -16
- package/remote-run.mjs +27 -5
- package/remote-sessions.mjs +2 -2
- package/remote-settings.mjs +49 -1
- package/remote-terminal-sessions.mjs +1 -0
- package/worktrust.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,63 @@
|
|
|
2
2
|
|
|
3
3
|
The WorkTrust CLI, newest first. What the tool is and how to use it: [README.md](README.md).
|
|
4
4
|
|
|
5
|
+
## 0.11.14: the phone keeps its link, the link flow asks about browsers and modes, and dictation that hears you
|
|
6
|
+
|
|
7
|
+
**Back in the app, the session carries on.** When the WorkTrust app comes back to the front after you sent a prompt and
|
|
8
|
+
opened another app, Remote Agent now sends it what happened in between: the phone asks for the session's events after the
|
|
9
|
+
last one it holds, and the CLI answers from its own journal on this computer, page by page (at most 200 events and 1 MB
|
|
10
|
+
per page), sealed for that phone alone. Nothing is run for it and nothing new is written; it is answered while remote
|
|
11
|
+
control is paused too, as a status read is. A session this computer never ran is refused, so the phone drops it.
|
|
12
|
+
|
|
13
|
+
**A message you sent just before leaving is no longer stuck at "Delivery unconfirmed".** The app keeps an unconfirmed
|
|
14
|
+
message sealed on the phone and sends it again on its new connection, under its own id. The CLI used to see the new seal
|
|
15
|
+
as a conflict and drop it silently, while the agent was already working on it. It now answers that resend as the
|
|
16
|
+
duplicate it is, with the receipts it already gave, after checking it opens under your phone's signature on this
|
|
17
|
+
channel: nothing runs twice, and another message under the same id is still refused.
|
|
18
|
+
|
|
19
|
+
**Older apps and older CLIs are unaffected.** The phone asks this by a probe of its own first; a CLI before 0.11.14 drops
|
|
20
|
+
the probe and the phone asks it nothing new.
|
|
21
|
+
|
|
22
|
+
**After "✓ Phone linked" and what it may reach, the CLI asks two more things.** "May your confirmed phones add a browser?"
|
|
23
|
+
(what `npx worktrust remote phones allow-endorse on|off` sets) and "Which agent modes may a phone start here?": Manual and
|
|
24
|
+
Plan, + Edit automatically, or + Auto (what `npx worktrust remote modes allow|deny` sets). Each question marks the setting
|
|
25
|
+
as it is now. Both answers are taken first and only then written, through the same door as the typed commands, so Ctrl+C
|
|
26
|
+
or Esc at either question leaves both as they were. Without a terminal, or with `--yes`, nothing is asked and the commands
|
|
27
|
+
are named. `remote access` ends with the same two questions.
|
|
28
|
+
|
|
29
|
+
**Remote Agent › Modes.** The menu's modes row is now called Modes and names the ceiling beside it (Manual, Plan; + Edit;
|
|
30
|
+
+ Auto). `remote phones allow-endorse` writes through the one settings door too; a change from the app or the web can never
|
|
31
|
+
turn it on.
|
|
32
|
+
|
|
33
|
+
## 0.11.13: computer health in Remote Agent, and continue a session on this computer
|
|
34
|
+
|
|
35
|
+
**This computer's health, live on your phone and in the browser.** The Remote Agent service reads memory pressure, free
|
|
36
|
+
memory, swap and its growth over two minutes, the load per core, the GPU's utilisation (Apple silicon) and the three
|
|
37
|
+
programs using the most memory (by name only) every 15 seconds, with no model and no sudo, and sends them sealed to your
|
|
38
|
+
linked phones and browsers; the relay passes them on and keeps none. Red (critical pressure, or under 5 % free while swap
|
|
39
|
+
grows for two minutes) shows in `remote status` and the Remote Agent menu, and a new session is refused with "This
|
|
40
|
+
computer is under heavy memory load" until it eases; running sessions continue.
|
|
41
|
+
|
|
42
|
+
**Continue a session on this computer.**
|
|
43
|
+
**Carry on in the chat from your phone or a browser.** Remote Agent now lists this computer's recent Claude Code sessions
|
|
44
|
+
(the last 20 by activity) to the WorkTrust app and the web Remote Console, and continues the one you pick through the same
|
|
45
|
+
start as a session begun from the phone: Claude Code's own `--resume`, the approval tool, the deny rules (no release,
|
|
46
|
+
pipeline or deploy from a remote session) and the agent modes you allowed here. From then on it is a remote session like
|
|
47
|
+
any other, in the normal sessions list, and its turns from the phone are not your AI Hours.
|
|
48
|
+
|
|
49
|
+
**Only what it needs, only from folders you granted.** The CLI opens Claude Code's own transcript folders for your granted
|
|
50
|
+
projects and roots' projects only, never the store as a whole, and drops a transcript whose recorded folder is another. Per
|
|
51
|
+
session it sends, sealed end to end, only its id, the project's id, the last activity time, a title (Claude Code's own
|
|
52
|
+
summary when there is one, else the first line you typed, cut to 80 characters) and the model when recorded. Nothing
|
|
53
|
+
else of a transcript leaves this computer, and WorkTrust's servers see none of it. The list goes only to a phone or
|
|
54
|
+
browser that asks for it; an older app never receives it.
|
|
55
|
+
|
|
56
|
+
**One owner per conversation.** A session is refused while it is open here: its transcript was written in the last 30
|
|
57
|
+
seconds, a Claude Code process names it (`--resume`), or a Claude Code window open in that project folder started before
|
|
58
|
+
its last line. The phone and the browser say "This session is open on the computer. Close it there first." Agents running
|
|
59
|
+
in that window do not come along. On Windows, where the CLI cannot read the process list without a shell, the list stays
|
|
60
|
+
empty for now.
|
|
61
|
+
|
|
5
62
|
## 0.11.12: a smaller code to link a phone, access chosen at once, Esc stops a command, and decoy keys
|
|
6
63
|
|
|
7
64
|
**Decoy keys beside the real one.** `connect` and `update` write a few decoy credential files next to the computer's key,
|
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ computer in WorkTrust under Sources, Devices. More under [Undo](#undo).
|
|
|
67
67
|
On a computer that is not connected yet:
|
|
68
68
|
|
|
69
69
|
```
|
|
70
|
-
WorkTrust CLI 0.11.
|
|
70
|
+
WorkTrust CLI 0.11.14
|
|
71
71
|
Not connected yet
|
|
72
72
|
|
|
73
73
|
> 1 Look at this computer npx worktrust look
|
|
@@ -84,13 +84,13 @@ On a computer that is not connected yet:
|
|
|
84
84
|
Once it is connected (80 columns; on a wide terminal each row's sentence stands on the row itself, as a fourth column):
|
|
85
85
|
|
|
86
86
|
```
|
|
87
|
-
WorkTrust CLI 0.11.
|
|
87
|
+
WorkTrust CLI 0.11.14
|
|
88
88
|
Account you@example.com
|
|
89
89
|
This computer imac · connected since 2026-11-03
|
|
90
90
|
Remote Agent approved, 2 connections
|
|
91
91
|
Sharing session hook on · AI apps on (7) · Remote Agent approved
|
|
92
92
|
|
|
93
|
-
1 Update WorkTrust · up to date (0.11.
|
|
93
|
+
1 Update WorkTrust · up to date (0.11.14) npx worktrust update
|
|
94
94
|
> 2 Check this computer npx worktrust
|
|
95
95
|
3 Remote Agent › npx worktrust remote …
|
|
96
96
|
4 Import earlier history › npx worktrust history …
|
|
@@ -193,11 +193,21 @@ whole.
|
|
|
193
193
|
grant an "always allow". Those are decided at this keyboard or not at all.
|
|
194
194
|
|
|
195
195
|
**Modes with a ceiling.** Manual and Plan are always there. Edit automatically and Auto exist only once you allow them
|
|
196
|
-
here with `remote modes allow
|
|
196
|
+
here with `remote modes allow`, in the menu under Remote Agent › Modes, or when a phone links: after what it may reach,
|
|
197
|
+
the CLI asks which modes a phone may start and whether your confirmed phones may add a browser (Ctrl+C or Esc changes
|
|
198
|
+
neither). The computer refuses a mode above what you allowed.
|
|
197
199
|
|
|
198
200
|
**Sealed end to end.** The computer holds one outbound connection and opens no port. Messages are sealed between your
|
|
199
201
|
phone and this computer; the relay passes them on and cannot read a prompt, a file, a path, an output or a model name.
|
|
200
202
|
|
|
203
|
+
**This computer's health, on your phone.** While Remote Agent runs, it reads a few numbers of this computer every 15
|
|
204
|
+
seconds, itself, with no model and no sudo: memory pressure, free memory, swap and how fast it grows, the CPU load per
|
|
205
|
+
core, the GPU's utilisation on Apple silicon, and the three programs using the most memory, by name only (never their
|
|
206
|
+
arguments, paths or window titles). The newest reading stays in `~/.worktrust/remote/health.json`; it goes sealed to
|
|
207
|
+
your linked phones and browsers only, and the relay keeps none of it. When memory runs out (critical pressure, or under
|
|
208
|
+
5 % free while swap keeps growing), `remote status` and the menu say so in red, and a phone cannot start a new session
|
|
209
|
+
until it eases; sessions already running continue.
|
|
210
|
+
|
|
201
211
|
A session steered from a phone is recorded as an agent run. It never counts as your AI Hours.
|
|
202
212
|
|
|
203
213
|
The details: [Remote Agent: steer this computer's agents](#remote-agent-steer-this-computers-agents-from-your-phone-or-browser-npx-worktrust-remote).
|
|
@@ -774,6 +784,11 @@ Off until you run `npx worktrust remote app` (or `remote web`) at this keyboard;
|
|
|
774
784
|
told why.
|
|
775
785
|
- One outbound connection to the WorkTrust gateway, end-to-end encrypted: the gateway relays sealed messages and reads no
|
|
776
786
|
prompt, file, path, output or model name. No port is opened on this computer.
|
|
787
|
+
- Continue a session on this computer (0.11.13): the phone or the browser lists this computer's recent Claude Code
|
|
788
|
+
sessions in your granted folders (the last 20; per session only its id, the project, the last activity, a title of at
|
|
789
|
+
most 80 characters and the model, sealed end to end) and continues the one you pick with Claude Code's own `--resume`,
|
|
790
|
+
under the same rules as a session started from the phone. A session open here (written in the last 30 seconds, named
|
|
791
|
+
by a running Claude Code, or in a Claude Code window open in that folder) is refused until you close it here.
|
|
777
792
|
- A session steered from a phone is never your AI Hours: the service records it in `~/.worktrust/remote/steered.jsonl`
|
|
778
793
|
before the agent starts, and the session hook sends it as an agent run (`session_kind` headless, `steered_from`
|
|
779
794
|
remote).
|
package/SECURITY.md
CHANGED
|
@@ -256,6 +256,12 @@ What it is: standing remote execution of AI agents on this computer, steered fro
|
|
|
256
256
|
under keys from an authenticated X25519 handshake). The gateway sees ids, message types, times and size classes.
|
|
257
257
|
- At most once. Every command is written to `~/.worktrust/remote/journal.jsonl` and flushed to disk before an agent runs; a
|
|
258
258
|
repeat is answered from the journal, and a command an interrupted daemon left mid-way is closed as failed, never run again.
|
|
259
|
+
Since 0.11.14 a phone's own resend sealed again on a new connection (same id, same idempotency key, and it opens under
|
|
260
|
+
that phone's signature) is answered with the stored receipts and never run again; anything else under a stored id is
|
|
261
|
+
refused as a conflict.
|
|
262
|
+
- Catch-up (0.11.14). A linked phone may ask for a session's journaled events after a sequence it holds; the daemon re-seals
|
|
263
|
+
at most 200 events or 1 MB per page for that phone alone, runs nothing and writes nothing. It is the same sealed traffic
|
|
264
|
+
the phone received live; the gateway sees only the message type and sizes.
|
|
259
265
|
- Approvals are classified on this computer. Only project edits, the reviewed test, build and lint commands, and outward
|
|
260
266
|
messages shown whole can be approved from a phone, each by a signed decision bound to the exact action, single use,
|
|
261
267
|
five minutes at most; offline or no answer is a denial. Claude Code also gets deny rules for pushes, installs, deploys
|
|
@@ -264,6 +270,13 @@ What it is: standing remote execution of AI agents on this computer, steered fro
|
|
|
264
270
|
grant only folders whose code you trust. The phone's keys are on the phone: until you revoke it, whoever unlocks it can
|
|
265
271
|
steer agents within these rules. macOS asks for folder access per program, so the access you grant the service's `node`
|
|
266
272
|
covers every script that `node` runs.
|
|
273
|
+
- Continuing a desk session (0.11.13). The daemon reads Claude Code's transcript folders of granted projects only (the
|
|
274
|
+
encoded folder of each granted path, never the whole store; a transcript whose recorded folder is another is dropped),
|
|
275
|
+
at most the first and last 64 KB of a file, and sends per session only its id, the project's id, the last activity, an
|
|
276
|
+
80-character title and the model, sealed, to a phone that asked. A resume is refused unless the id is in that list,
|
|
277
|
+
under the project named, and nothing on this computer holds it (`ps`, and `lsof` or /proc for a window's folder; a
|
|
278
|
+
process list it cannot read counts as holding it). The title is the first line typed when Claude Code wrote no summary:
|
|
279
|
+
what you typed first in a session reaches your own phones and browsers.
|
|
267
280
|
- Hours. A remote-steered session is never your AI Hours (see README).
|
|
268
281
|
|
|
269
282
|
## Python distribution and explicit agent observations
|
package/cli-menu-remote.mjs
CHANGED
|
@@ -13,7 +13,8 @@ import { choose, muted, remoteState, runShown, typed } from "./cli-menu.mjs";
|
|
|
13
13
|
import { makeProjectsFolder, pickFolder, pickerCommand, suggestedFolders } from "./folder-picker.mjs";
|
|
14
14
|
import { awaitingName, awaitingRow, connections } from "./remote-connections.mjs";
|
|
15
15
|
import { loadIdentity, loadProjects, loadRoots, loadSettings } from "./remote-store.mjs";
|
|
16
|
-
import { allowedModes } from "./remote-settings.mjs";
|
|
16
|
+
import { allowedModes, ceilingOf } from "./remote-settings.mjs";
|
|
17
|
+
import { HEALTH_REFUSAL, keptHealth } from "./remote-health.mjs";
|
|
17
18
|
|
|
18
19
|
const BACK = { label: "← Back", hint: "Esc", back: true }; // its name and its key say it: no sentence of its own (owner, 2026-11-14)
|
|
19
20
|
const tilde = (path) => (path.startsWith(homedir()) ? `~${path.slice(homedir().length)}` : path);
|
|
@@ -162,7 +163,7 @@ export function approval() { try { return Boolean(loadIdentity()); } catch { ret
|
|
|
162
163
|
* `approved` is approval()'s answer, `act` what each row does. NOT APPROVED: the approval is first and chosen, and what
|
|
163
164
|
* cannot work before it cannot be chosen. By the code: `remote pair` and adding a project or a root refuse without this
|
|
164
165
|
* computer's remote keys (remote-cli.mjs needPaired, remote-settings.mjs applyRules), and no phone can be linked, so there
|
|
165
|
-
* is no connection to list and nothing to pause.
|
|
166
|
+
* is no connection to list and nothing to pause. Modes is a local setting and Status only reads: both stay.
|
|
166
167
|
* APPROVED: Link a phone first, and approving again stays (new keys). NOT KNOWN: every row can be chosen and the title says so.
|
|
167
168
|
*
|
|
168
169
|
* PART OF PREMIUM (owner, 2026-11-14; docs/remote-agents/ISSUER.md §12): when WorkTrust itself answered `premium_required`
|
|
@@ -182,7 +183,7 @@ export function remoteItems(approved, paused, act = {}, access = null) {
|
|
|
182
183
|
...(approved ? [link, approve] : [approve, link]),
|
|
183
184
|
{ label: "Projects ›", hint: "npx worktrust remote projects", info: "Folders a phone may steer an agent in.", run: act.projects, ...wait },
|
|
184
185
|
{ label: "Roots for new projects ›", hint: "npx worktrust remote roots", info: "Where a phone may open and create projects.", run: act.roots, ...wait },
|
|
185
|
-
{ label: "
|
|
186
|
+
{ label: "Modes ›", hint: "npx worktrust remote modes", info: "Agent modes a phone may start. This computer is the limit.", run: act.modes, ...(act.modesNote ? { note: { text: act.modesNote, tone: "dim" } } : {}) },
|
|
186
187
|
{ label: "Connections ›", hint: "npx worktrust remote connections", info: "Phones and browsers linked here.", run: act.connections, ...wait },
|
|
187
188
|
{ label: paused ? "Resume" : "Pause", hint: `npx worktrust remote ${paused ? "resume" : "pause"}`, info: paused ? "Lets linked phones steer agents here again." : "Stops every phone until you resume. Links stay.", run: act.pause, ...wait },
|
|
188
189
|
{ label: "Status", hint: "npx worktrust remote status", info: "Shows if Remote Agent is on and what is linked. Only reads.", run: act.status },
|
|
@@ -213,7 +214,9 @@ export async function remoteMenu(term, io, header) {
|
|
|
213
214
|
const road = (which) => async () => ((await runShown(term, io, ["remote", which, ...(approved ? ["--repair"] : [])])) === false ? false : approved === false && approval() === true ? "back" : true);
|
|
214
215
|
// 0.11.12: a linked phone with no reach chosen yet is said first, and its row opens the access step (awaitingRow).
|
|
215
216
|
const waiting = state?.remoteAccess === "premium_required" ? null : awaitingName();
|
|
216
|
-
|
|
217
|
+
// HEAVY MEMORY LOAD (remote-health.mjs): the remote service's newest sample, red, is said first, in red; Enter shows the figures.
|
|
218
|
+
const red = keptHealth()?.level === "red" ? [{ label: "Health: heavy memory load", note: { text: "red", tone: "red" }, hint: "npx worktrust remote status", info: `${HEALTH_REFUSAL}. New sessions wait; running ones continue. Enter shows the figures.`, run: () => runShown(term, io, ["remote", "status"]) }] : [];
|
|
219
|
+
return [...red, ...(waiting ? [awaitingRow(waiting, (args) => runShown(term, io, args))] : []), ...remoteItems(approved, paused, {
|
|
217
220
|
approve: () => level(term, header, approved ? "Approve this computer again (new keys)" : "Approve this computer", () => [
|
|
218
221
|
{ label: "With the WorkTrust app", hint: `npx worktrust remote app${approved ? " --repair" : ""}`, info: "One QR: the app approves and links this phone.", run: road("app") },
|
|
219
222
|
{ label: "In the browser", hint: `npx worktrust remote web${approved ? " --repair" : ""}`, info: "Opens WorkTrust in your browser, where you approve.", run: road("web") },
|
|
@@ -221,6 +224,7 @@ export async function remoteMenu(term, io, header) {
|
|
|
221
224
|
], io),
|
|
222
225
|
link: () => runShown(term, io, ["remote", "pair"]),
|
|
223
226
|
projects: () => projectsMenu(term, io, header), roots: () => rootsMenu(term, io, header), modes: () => modesMenu(term, io, header), connections: () => connectionsMenu(term, io, header),
|
|
227
|
+
modesNote: (() => { try { return { plan: "Manual, Plan", edit: "+ Edit", auto: "+ Auto" }[ceilingOf(allowedModes(loadSettings()))]; } catch { return null; } })(), // 0.11.14: the ceiling in a word
|
|
224
228
|
pause: () => runShown(term, io, ["remote", paused ? "resume" : "pause"]),
|
|
225
229
|
status: () => runShown(term, io, ["remote", "status"]),
|
|
226
230
|
upgrade: () => showUpgrade(term, io, state?.upgrade ?? null), upgradeHint: state?.upgrade ? String(state.upgrade).replace(/^https?:\/\//, "") : undefined,
|
package/engine-release.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"keyId":"608168ccdef72562fc91f9c0f9f2c2d6876bece7f7362cb545b818f7947da6b5","payload":{"files":{"chat-exports.mjs":"f026c5a063f62c22ba6f25474a9d9fdbb6074beebbfe1faff2a876c437a1a000","claude-mod.mjs":"02d86b0cdddf39879efc5194c0a5be6b41456faedec28963dc123a4e88dc3942","cli-colour.mjs":"9736ab0801b3889967134a916680acb9dc3d614db6fd221be9c5ae7079d9d173","cli-look.mjs":"1c8eea30fa57dbdbf260e5e45f017a9ca85c77bd511569f931bfd80c8cdb648a","cli-menu-remote.mjs":"
|
|
1
|
+
{"keyId":"608168ccdef72562fc91f9c0f9f2c2d6876bece7f7362cb545b818f7947da6b5","payload":{"files":{"chat-exports.mjs":"f026c5a063f62c22ba6f25474a9d9fdbb6074beebbfe1faff2a876c437a1a000","claude-mod.mjs":"02d86b0cdddf39879efc5194c0a5be6b41456faedec28963dc123a4e88dc3942","cli-colour.mjs":"9736ab0801b3889967134a916680acb9dc3d614db6fd221be9c5ae7079d9d173","cli-look.mjs":"1c8eea30fa57dbdbf260e5e45f017a9ca85c77bd511569f931bfd80c8cdb648a","cli-menu-remote.mjs":"f8a8ad8407680d9af8b95fc434096ee1fc3624e4e2e36eeb4460fe6ab76bf8d4","cli-menu.mjs":"f6eb43e71c8c941c79736f5073c393d3a349077a2a21af5cd75687b24731178b","cli-stop.mjs":"34f63fb7d27723d52650475582c3b8d36aa57e37457ebf55ab24449743df9847","commit-rules.mjs":"e94cc32a5415f6d9e978145ab9505ac4ae0bac9431e6e9104b9b37155260b51f","config-edits.mjs":"527a7674f9d52b284bfda3b8089eb4b930a709bf14aedbec7f6eef1e59ef52ee","count-behaviour.mjs":"06b0ecbc222087160dc64c0b302391631e8e799038364c317c6cd28449c5044d","credential-decoy.mjs":"8b9a264a3739fb9f58f8b9102b93a14292962689c8557ff7fad332dcfac3f7d9","credential-store.mjs":"8a83e7086fadaba31b0923101851d348d67cf3c87610f6d3e73a774f64435392","credential-vault-scripts.mjs":"7e42fe1db3885c2dec6f1de87bebfbefe2292d29179a68f3da87d19eb6c7704b","credential-vault.mjs":"279baabb217e2a3f170e8d7f2b271a88484531f9031c441360ea91561a70da99","export-facts.mjs":"3bbb46c80e8678b5cea7e15dcbfc456a2b48595053241c2b3cea508092f9b917","folder-picker.mjs":"daeb379626d5716f91f588064c6b4083618279320c006c177960cc93f056d96a","git-commits.mjs":"af0ed45a2a42c8e17cabfb3649a2f524dbf80230f8a6ec1c6b775fed7d34dc9c","history-outbox.mjs":"85c70389effc5b4ec9d9b33af9192314e67f47af2752515b42a7959344ce2354","history-progress.mjs":"dcc25ee94b727f2605a763349a4d8764640335d6cf0043fb6108cebeed16dcb9","log-session.mjs":"171f4abb0d603d58446129e007de9e9dc0f707bde33b1b4481a134376ed301c8","node-guide.mjs":"5bf52c5028b07a80ec4d41be365eb025dfce74328f41f928a26ce6737b1f9cc4","orchestration-contract.mjs":"ec08f303a166365b99e70b675de4cfe76c6156c2567e14b5569f6d992f0231b7","orchestration-evidence.mjs":"d0d06cecf0eb08e5c6e653c62a4f45b1eddf2119c2acb8341056b34f488d214a","orchestration-report.mjs":"d4e0a9ad8e4a01b462d22c6b1866aac291565c533ff476085d3367cb6d59bc1b","package-integrity.mjs":"a8210c9494a56bfb9a5ea3d10064c7a269f0b6330c0af7c0700e706c3c0224e3","preserve-lines.mjs":"2df64a69687aa51219bf7b86b88d175cc50990fa29574b31897e41a9ebeecf43","preserve-summary.mjs":"137f781ed7021596a3f0ea67afcf2ab8616ac293f833dbb8f176e838e0ed8321","preserve.mjs":"cd111cae0f53a25a2d878a158479abfb1ace353361454843f91a16d241101d46","project-modes.mjs":"ada26e68297fbeb90e4e91d75a90fd2d7cc107b999a9702840675b5a7529463e","remote-adapter-claude-code.mjs":"d0558bb123a29a934db1bf8162e7c3f37e8ccde4c502178d47e9b4cbb3a0491b","remote-adapter-codex.mjs":"0370611044e6f5f6ef3ca370e0f6ef237468f01ecc890b019da8167730eb75eb","remote-adapter-opencode.mjs":"062c571cc4ab972412044066c236a9f20794cfb841c66cc9c0e9e5ec1133699e","remote-adapter-terminal.mjs":"c047a362474abb90b7968b8a624358af40a989ad137166a03bc955409ff1dc82","remote-admin.mjs":"ac4d434c0a374159b27accac3fdd0324ff96ffe32227fba054cc62d00e58d35b","remote-agent-switch.mjs":"7ff5448f29f05a47d7298d730b21243a1bcf8a215b434a0c7fbf5f3cb0889041","remote-approval-bridge.mjs":"092f17b7969e4f35bea064315d04dcde1faa6a3fd3e737dcc05aece82c7a37c4","remote-approvals.mjs":"63847226e398f9eb5b8d3989ba2b2436fbedd898385eb5f2f63bbdf07fbe6852","remote-attachments.mjs":"2e9c1277329a45cf26c0c62abda632cf0ab9fad78d0504416ecee9805220e16c","remote-cdp.mjs":"70e333a1ebe845e872cc3a703a0a507391f8ce59640bdbd662bdad55eeff216b","remote-changes.mjs":"2141fece4961a5bc1bb1b046f78222812617457b1ba6452275eac6a897e62e19","remote-claude-events.mjs":"58822471203c6a1b66cf81c115c4d713657c3dea5c7b98df959f894ee5b2e704","remote-claude-progress.mjs":"2ca626d3dbc16d8d570abe1df6477b7e44ffb43c1d9145228ec5ea1928e415ca","remote-cli.mjs":"07c03d66dcee3a52ce30265dd2ed73cf5829e37dd965e743ed42cc1c992ea2ce","remote-coalesce.mjs":"cb0967d9cfe81e3892bcade8349d6814db98be8c2adbdb54df0b8d1b142f65d1","remote-codex-events.mjs":"58657d6070a50c837737cb85f5a1eaf9c2cbc4e1adfe3e970748ab3b2af94631","remote-connections.mjs":"7178bbad6f04c59a32d0a68472c50145c65c041d94cb5c3c8a60925da78c8cfb","remote-countdown.mjs":"b1020c59fcae3cbf6c355976b2a5ef80a3476ffadcd9949e8e884bedfd1efa06","remote-daemon.mjs":"629b5f87fce9cecf14b80dfb9c85e46af0052ac5e67e41dc5b9d56fc8b58a1bb","remote-desk-sessions.mjs":"3a342e525fdf43ba54b40576f84a2399baa0c03c54f9184bfc153242fb50e4a3","remote-endorse.mjs":"89eda4883567176703e01e44d83e987271bc2a6134e108f517b3b213719a21f9","remote-health.mjs":"0f37d08f97fc6e08c69792cf3d22201b3103a28bdb19613b5abb02b80eb91983","remote-inventory.mjs":"98a65a066772ef183f405a1455c02db6827f06e80ed601796c65c19f9be10f09","remote-journal.mjs":"907ebd48c53162b22dc743ef95b53c1a6be6886a7495605b5cfa820b8de9d330","remote-live-preview.mjs":"faa70f9260ac05037204c2a0c3facf4ffe42f68408948390b341b453a2932289","remote-opencode-events.mjs":"3108375501ead2c2c78bce1435cc2a9fe6d2af1d7ff1fb42e12ff3e0f5d9af9c","remote-opencode-session.mjs":"681b201d833a7d7d025122b3a79663bcdc0a989aefd39d8018a28113d8810caf","remote-pairing.mjs":"b27625cc3b5313091252bc8ae907b4b969b96be0fe8c2ee3e9000c767ea60175","remote-pipeline-config.mjs":"00cde6a61ce21144c51ac56fce42fee159aa9dba6586218a7ea790ce4a6bd40b","remote-pipeline-parsers.mjs":"43ca0d332d7bc883c4759a754a555815ae5dfe133446b91ba9f2e48a350fa20f","remote-pipeline.mjs":"b856ead989b29ddb618ef69bbacd104bae2b02c9d1c5214291d08ce469a8b24e","remote-policy.mjs":"16ea015ad5de3c357bce730ea8ea98571dc981d8591fb5156b1941b2c557a381","remote-preview.mjs":"fe504ad6f83dcb4a4ebdcc018686a9a5a900c47cdf8c45b75e7d02e2f3056155","remote-projects.mjs":"ec8c530ad3e880bca21a4d4078ecd68b6aaafcc442b50087127868d952034d5f","remote-protocol.mjs":"5b9e2f98e6f34bbe974c668e045f45c5eaad790a3f0763f01eb381c6ef9e10a2","remote-qr.mjs":"a0f4044f0afe8a636be14cf5afe10f53404b57262c23fea37f8cf30b6d0a5220","remote-release-plans.mjs":"11884a62b7d6dcccb5e154a26603bdf650f7b40f946329fb174d8c13729bec74","remote-releases.mjs":"fb08b72593ea00013c8b679e0c0d7dee95b0fd7cc5fd31b80ac575d0e340927d","remote-run.mjs":"7bdb3aa1327dd64ce79bd3038ad844ba32ccf9c82eb436116f437d3a48e4e871","remote-screen-approvals.mjs":"c43ab286d36a38d17639d155782ffa017f1a9b6806a09b82ed0142a1290b6000","remote-screen-push.mjs":"4ee8bd48d24b2c87581e9f33d8354a86381f7febd82f89ed509a7a87c1442608","remote-screen-states.mjs":"7c3c86a584bebf52461f3cab39c05ea2a13910061704d48fc622956e842940f7","remote-service.mjs":"a3a5502e0f6f43b04e37ee778f43d88f4c219776439cfed0d8fa0b511e0c9637","remote-session-list.mjs":"494fdbe20f0542806ac6c42ad149c52e2d3ace23a3a7567f96dc7e80d092c727","remote-sessions.mjs":"b4028b4247245013e9c2e4451f8dbb0ebff531066b78a4ea62499985464a4c43","remote-settings.mjs":"4bf5b9ded17332a6fd11ea326476b7e8595aa010eb6c449520469c35a231441b","remote-steered.mjs":"d7afde92c62c87abbdb84b0cfea2eea4752e90a2e453e52a54812c4fe0395190","remote-steering.mjs":"593447f3b7abbf3b91237d6d8a1aebcce9fbddc5ea5874341241ee45d83e5196","remote-store.mjs":"592a87f0ab8f53cc8eee1318a309310e27cb01d4549caebad6d51c3fad1b75ac","remote-terminal-cli.mjs":"82a048b75e412d0b6db076afbb84cab7c754dec72b6c8b6af4d4906b38e988a7","remote-terminal-sessions.mjs":"51b8140d46962eb035ff4ae60e5afea3c83244ea824412ca20e74a8318bbc3a5","remote-transport.mjs":"68650fd77ea09b5762377f87cabdc1c73a34d77324aa5bf0cd9742094a50c32b","runtime-install.mjs":"aab47b52c79d726ef428a24f982c648fa3f1c2dc2b574f633611d02924864e5f","self-update.mjs":"378e3620d48c72cf0bf812be408883b995cdb2223de34a20f762dd73eeffb258","session-databases.mjs":"a16ffbc50ccc0e78f370ebe07f871d1a80f1977472e478e3599e7abfdc90c1b7","session-local-models.mjs":"bacd38ff8dd3056b552982ec52eb57c7b8ca86e1a46cd4cba30fc340e3e28fd4","session-readers.mjs":"14cbd2c92d87511b396feaa54710f00d5e3929b55e01dc559f39c5def13777a2","setup-mcp.mjs":"b732e3dd9b3e522b7cc8acf167ce28ba8f1a8dee797ee15bd7c3b02919b13e6f","stack-rules.mjs":"b23c56e72ec56ba02b17ed895f869172d988c468a697e8d6026b0e268f61e489","stretch-evidence.mjs":"5f5667b92adf11b1a5a6330a0f26dd6db73d56fe60823d9a5246dab71d27d380","transcript-readers.mjs":"3dfdd9d2189063f24dbd5c2abec6bb21e2bb36f22b89d0d84282e12216022670","worktrust-launch.mjs":"84801bd29d472d48188c126b9ebe3989a3132b54e13cc4fe534ff7c383a294ee","worktrust.mjs":"0c50a284db3ca1890958fd70e639a9c4b3cc1acbc3ce57a3b6c45ce023d6335e"},"format":"worktrust-package/1","kind":"engine","version":"0.11.14"},"signature":"YzdsauUThGlNqMrRrJMBXj1fikmJmZOABC2Xbnibl-pU3RJDuE9_FFzNPwuPZsLgypbNjIJ-vKSo9_TxFFqoBg"}
|
package/package-release.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"keyId":"608168ccdef72562fc91f9c0f9f2c2d6876bece7f7362cb545b818f7947da6b5","payload":{"files":{"AGENTS.md":"e8abb38c293b57b71d3a6163d6242d1f375e773372b91b6d8ce39c584c51262a","CHANGELOG.md":"
|
|
1
|
+
{"keyId":"608168ccdef72562fc91f9c0f9f2c2d6876bece7f7362cb545b818f7947da6b5","payload":{"files":{"AGENTS.md":"e8abb38c293b57b71d3a6163d6242d1f375e773372b91b6d8ce39c584c51262a","CHANGELOG.md":"4642551fbb5992970ae7b99e5978b08a1085423a68ffa97f0ac14a09e4cb37b1","CLAUDE.md":"5933504f93e5a40369a4790e96dd5dad791d849d3178b1833eb64088e456aaeb","LICENSE":"eb210c9cab5dbb6a2c293a003a7604e7fb6e5f7b95ab22b382171dc7adeed41a","README.md":"b0ee9b8bf08f15b3521e47e1af664d6bd9a9fe4bd7e7e747d1aa5d9df3c3c3f4","SECURITY.md":"9c7c73b6eca30884bb175967a0daa49ab804d214b4073ff645d7d51444407252","chat-exports.mjs":"f026c5a063f62c22ba6f25474a9d9fdbb6074beebbfe1faff2a876c437a1a000","claude-mod.mjs":"02d86b0cdddf39879efc5194c0a5be6b41456faedec28963dc123a4e88dc3942","cli-colour.mjs":"9736ab0801b3889967134a916680acb9dc3d614db6fd221be9c5ae7079d9d173","cli-look.mjs":"1c8eea30fa57dbdbf260e5e45f017a9ca85c77bd511569f931bfd80c8cdb648a","cli-menu-remote.mjs":"f8a8ad8407680d9af8b95fc434096ee1fc3624e4e2e36eeb4460fe6ab76bf8d4","cli-menu.mjs":"f6eb43e71c8c941c79736f5073c393d3a349077a2a21af5cd75687b24731178b","cli-stop.mjs":"34f63fb7d27723d52650475582c3b8d36aa57e37457ebf55ab24449743df9847","commit-rules.mjs":"e94cc32a5415f6d9e978145ab9505ac4ae0bac9431e6e9104b9b37155260b51f","config-edits.mjs":"527a7674f9d52b284bfda3b8089eb4b930a709bf14aedbec7f6eef1e59ef52ee","count-behaviour.mjs":"06b0ecbc222087160dc64c0b302391631e8e799038364c317c6cd28449c5044d","credential-decoy.mjs":"8b9a264a3739fb9f58f8b9102b93a14292962689c8557ff7fad332dcfac3f7d9","credential-store.mjs":"8a83e7086fadaba31b0923101851d348d67cf3c87610f6d3e73a774f64435392","credential-vault-scripts.mjs":"7e42fe1db3885c2dec6f1de87bebfbefe2292d29179a68f3da87d19eb6c7704b","credential-vault.mjs":"279baabb217e2a3f170e8d7f2b271a88484531f9031c441360ea91561a70da99","engine-release.json":"ac2c74e44ee0541c5215427f8d048415f87779665a8353ee330b9a8d778ede4c","export-facts.mjs":"3bbb46c80e8678b5cea7e15dcbfc456a2b48595053241c2b3cea508092f9b917","folder-picker.mjs":"daeb379626d5716f91f588064c6b4083618279320c006c177960cc93f056d96a","git-commits.mjs":"af0ed45a2a42c8e17cabfb3649a2f524dbf80230f8a6ec1c6b775fed7d34dc9c","history-outbox.mjs":"85c70389effc5b4ec9d9b33af9192314e67f47af2752515b42a7959344ce2354","history-progress.mjs":"dcc25ee94b727f2605a763349a4d8764640335d6cf0043fb6108cebeed16dcb9","log-session.mjs":"171f4abb0d603d58446129e007de9e9dc0f707bde33b1b4481a134376ed301c8","node-guide.mjs":"5bf52c5028b07a80ec4d41be365eb025dfce74328f41f928a26ce6737b1f9cc4","orchestration-contract.mjs":"ec08f303a166365b99e70b675de4cfe76c6156c2567e14b5569f6d992f0231b7","orchestration-evidence.mjs":"d0d06cecf0eb08e5c6e653c62a4f45b1eddf2119c2acb8341056b34f488d214a","orchestration-report.mjs":"d4e0a9ad8e4a01b462d22c6b1866aac291565c533ff476085d3367cb6d59bc1b","package-integrity.mjs":"a8210c9494a56bfb9a5ea3d10064c7a269f0b6330c0af7c0700e706c3c0224e3","package.json":"0034198c6a5a36d428acb2c8e4e4af6581d20516f2a3a16889f8beeed401b49e","preserve-lines.mjs":"2df64a69687aa51219bf7b86b88d175cc50990fa29574b31897e41a9ebeecf43","preserve-summary.mjs":"137f781ed7021596a3f0ea67afcf2ab8616ac293f833dbb8f176e838e0ed8321","preserve.mjs":"cd111cae0f53a25a2d878a158479abfb1ace353361454843f91a16d241101d46","project-modes.mjs":"ada26e68297fbeb90e4e91d75a90fd2d7cc107b999a9702840675b5a7529463e","remote-adapter-claude-code.mjs":"d0558bb123a29a934db1bf8162e7c3f37e8ccde4c502178d47e9b4cbb3a0491b","remote-adapter-codex.mjs":"0370611044e6f5f6ef3ca370e0f6ef237468f01ecc890b019da8167730eb75eb","remote-adapter-opencode.mjs":"062c571cc4ab972412044066c236a9f20794cfb841c66cc9c0e9e5ec1133699e","remote-adapter-terminal.mjs":"c047a362474abb90b7968b8a624358af40a989ad137166a03bc955409ff1dc82","remote-admin.mjs":"ac4d434c0a374159b27accac3fdd0324ff96ffe32227fba054cc62d00e58d35b","remote-agent-switch.mjs":"7ff5448f29f05a47d7298d730b21243a1bcf8a215b434a0c7fbf5f3cb0889041","remote-approval-bridge.mjs":"092f17b7969e4f35bea064315d04dcde1faa6a3fd3e737dcc05aece82c7a37c4","remote-approvals.mjs":"63847226e398f9eb5b8d3989ba2b2436fbedd898385eb5f2f63bbdf07fbe6852","remote-attachments.mjs":"2e9c1277329a45cf26c0c62abda632cf0ab9fad78d0504416ecee9805220e16c","remote-cdp.mjs":"70e333a1ebe845e872cc3a703a0a507391f8ce59640bdbd662bdad55eeff216b","remote-changes.mjs":"2141fece4961a5bc1bb1b046f78222812617457b1ba6452275eac6a897e62e19","remote-claude-events.mjs":"58822471203c6a1b66cf81c115c4d713657c3dea5c7b98df959f894ee5b2e704","remote-claude-progress.mjs":"2ca626d3dbc16d8d570abe1df6477b7e44ffb43c1d9145228ec5ea1928e415ca","remote-cli.mjs":"07c03d66dcee3a52ce30265dd2ed73cf5829e37dd965e743ed42cc1c992ea2ce","remote-coalesce.mjs":"cb0967d9cfe81e3892bcade8349d6814db98be8c2adbdb54df0b8d1b142f65d1","remote-codex-events.mjs":"58657d6070a50c837737cb85f5a1eaf9c2cbc4e1adfe3e970748ab3b2af94631","remote-connections.mjs":"7178bbad6f04c59a32d0a68472c50145c65c041d94cb5c3c8a60925da78c8cfb","remote-countdown.mjs":"b1020c59fcae3cbf6c355976b2a5ef80a3476ffadcd9949e8e884bedfd1efa06","remote-daemon.mjs":"629b5f87fce9cecf14b80dfb9c85e46af0052ac5e67e41dc5b9d56fc8b58a1bb","remote-desk-sessions.mjs":"3a342e525fdf43ba54b40576f84a2399baa0c03c54f9184bfc153242fb50e4a3","remote-endorse.mjs":"89eda4883567176703e01e44d83e987271bc2a6134e108f517b3b213719a21f9","remote-health.mjs":"0f37d08f97fc6e08c69792cf3d22201b3103a28bdb19613b5abb02b80eb91983","remote-inventory.mjs":"98a65a066772ef183f405a1455c02db6827f06e80ed601796c65c19f9be10f09","remote-journal.mjs":"907ebd48c53162b22dc743ef95b53c1a6be6886a7495605b5cfa820b8de9d330","remote-live-preview.mjs":"faa70f9260ac05037204c2a0c3facf4ffe42f68408948390b341b453a2932289","remote-opencode-events.mjs":"3108375501ead2c2c78bce1435cc2a9fe6d2af1d7ff1fb42e12ff3e0f5d9af9c","remote-opencode-session.mjs":"681b201d833a7d7d025122b3a79663bcdc0a989aefd39d8018a28113d8810caf","remote-pairing.mjs":"b27625cc3b5313091252bc8ae907b4b969b96be0fe8c2ee3e9000c767ea60175","remote-pipeline-config.mjs":"00cde6a61ce21144c51ac56fce42fee159aa9dba6586218a7ea790ce4a6bd40b","remote-pipeline-parsers.mjs":"43ca0d332d7bc883c4759a754a555815ae5dfe133446b91ba9f2e48a350fa20f","remote-pipeline.mjs":"b856ead989b29ddb618ef69bbacd104bae2b02c9d1c5214291d08ce469a8b24e","remote-policy.mjs":"16ea015ad5de3c357bce730ea8ea98571dc981d8591fb5156b1941b2c557a381","remote-preview.mjs":"fe504ad6f83dcb4a4ebdcc018686a9a5a900c47cdf8c45b75e7d02e2f3056155","remote-projects.mjs":"ec8c530ad3e880bca21a4d4078ecd68b6aaafcc442b50087127868d952034d5f","remote-protocol.mjs":"5b9e2f98e6f34bbe974c668e045f45c5eaad790a3f0763f01eb381c6ef9e10a2","remote-qr.mjs":"a0f4044f0afe8a636be14cf5afe10f53404b57262c23fea37f8cf30b6d0a5220","remote-release-plans.mjs":"11884a62b7d6dcccb5e154a26603bdf650f7b40f946329fb174d8c13729bec74","remote-releases.mjs":"fb08b72593ea00013c8b679e0c0d7dee95b0fd7cc5fd31b80ac575d0e340927d","remote-run.mjs":"7bdb3aa1327dd64ce79bd3038ad844ba32ccf9c82eb436116f437d3a48e4e871","remote-screen-approvals.mjs":"c43ab286d36a38d17639d155782ffa017f1a9b6806a09b82ed0142a1290b6000","remote-screen-push.mjs":"4ee8bd48d24b2c87581e9f33d8354a86381f7febd82f89ed509a7a87c1442608","remote-screen-states.mjs":"7c3c86a584bebf52461f3cab39c05ea2a13910061704d48fc622956e842940f7","remote-service.mjs":"a3a5502e0f6f43b04e37ee778f43d88f4c219776439cfed0d8fa0b511e0c9637","remote-session-list.mjs":"494fdbe20f0542806ac6c42ad149c52e2d3ace23a3a7567f96dc7e80d092c727","remote-sessions.mjs":"b4028b4247245013e9c2e4451f8dbb0ebff531066b78a4ea62499985464a4c43","remote-settings.mjs":"4bf5b9ded17332a6fd11ea326476b7e8595aa010eb6c449520469c35a231441b","remote-steered.mjs":"d7afde92c62c87abbdb84b0cfea2eea4752e90a2e453e52a54812c4fe0395190","remote-steering.mjs":"593447f3b7abbf3b91237d6d8a1aebcce9fbddc5ea5874341241ee45d83e5196","remote-store.mjs":"592a87f0ab8f53cc8eee1318a309310e27cb01d4549caebad6d51c3fad1b75ac","remote-terminal-cli.mjs":"82a048b75e412d0b6db076afbb84cab7c754dec72b6c8b6af4d4906b38e988a7","remote-terminal-sessions.mjs":"51b8140d46962eb035ff4ae60e5afea3c83244ea824412ca20e74a8318bbc3a5","remote-transport.mjs":"68650fd77ea09b5762377f87cabdc1c73a34d77324aa5bf0cd9742094a50c32b","runtime-install.mjs":"aab47b52c79d726ef428a24f982c648fa3f1c2dc2b574f633611d02924864e5f","self-update.mjs":"378e3620d48c72cf0bf812be408883b995cdb2223de34a20f762dd73eeffb258","session-databases.mjs":"a16ffbc50ccc0e78f370ebe07f871d1a80f1977472e478e3599e7abfdc90c1b7","session-local-models.mjs":"bacd38ff8dd3056b552982ec52eb57c7b8ca86e1a46cd4cba30fc340e3e28fd4","session-readers.mjs":"14cbd2c92d87511b396feaa54710f00d5e3929b55e01dc559f39c5def13777a2","setup-mcp.mjs":"b732e3dd9b3e522b7cc8acf167ce28ba8f1a8dee797ee15bd7c3b02919b13e6f","stack-rules.mjs":"b23c56e72ec56ba02b17ed895f869172d988c468a697e8d6026b0e268f61e489","stretch-evidence.mjs":"5f5667b92adf11b1a5a6330a0f26dd6db73d56fe60823d9a5246dab71d27d380","transcript-readers.mjs":"3dfdd9d2189063f24dbd5c2abec6bb21e2bb36f22b89d0d84282e12216022670","worktrust-launch.mjs":"84801bd29d472d48188c126b9ebe3989a3132b54e13cc4fe534ff7c383a294ee","worktrust.mjs":"0c50a284db3ca1890958fd70e639a9c4b3cc1acbc3ce57a3b6c45ce023d6335e"},"format":"worktrust-package/1","kind":"npm","version":"0.11.14"},"signature":"3yaMKKdP54D1XqziI9ZuQYPZ23eWptlmRayQQOXE9Gm5ufkoX3_TKu975GItEHnQszH9iOHC9YXlRjvJGpt2Cg"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worktrust",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14",
|
|
4
4
|
"description": "Couple this computer to WorkTrust: approve a code in your browser, and every AI app here reports what you built. Metadata only, no dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"remote-approvals.mjs",
|
|
85
85
|
"remote-sessions.mjs",
|
|
86
86
|
"remote-session-list.mjs",
|
|
87
|
+
"remote-desk-sessions.mjs",
|
|
87
88
|
"remote-changes.mjs",
|
|
88
89
|
"remote-endorse.mjs",
|
|
89
90
|
"remote-daemon.mjs",
|
|
@@ -104,7 +105,8 @@
|
|
|
104
105
|
"node-guide.mjs",
|
|
105
106
|
"remote-countdown.mjs",
|
|
106
107
|
"remote-connections.mjs",
|
|
107
|
-
"remote-admin.mjs"
|
|
108
|
+
"remote-admin.mjs",
|
|
109
|
+
"remote-health.mjs"
|
|
108
110
|
],
|
|
109
111
|
"engines": {
|
|
110
112
|
"node": ">=18"
|
package/remote-cli.mjs
CHANGED
|
@@ -49,6 +49,7 @@ import { accessCommand, askLine, connectionsCommand, disconnectCommand, linkedSu
|
|
|
49
49
|
import { installService, removeService, serviceState, servicePlatform } from "./remote-service.mjs";
|
|
50
50
|
import { terminalQr } from "./remote-qr.mjs";
|
|
51
51
|
import { webSocketAvailable } from "./remote-transport.mjs";
|
|
52
|
+
import { healthLine, keptHealth } from "./remote-health.mjs";
|
|
52
53
|
import { guideToNode, remoteStopsHere } from "./node-guide.mjs";
|
|
53
54
|
import { inventory } from "./remote-inventory.mjs";
|
|
54
55
|
import { allowCommand, parsePipelineConfig, PIPELINE_FILE } from "./remote-pipeline-config.mjs";
|
|
@@ -173,8 +174,8 @@ async function phones(io, rest) {
|
|
|
173
174
|
if (rest[1] !== "on" && rest[1] !== "off") io.fail("npx worktrust remote phones allow-endorse on|off");
|
|
174
175
|
if (rest[1] === "on" && !process.stdin.isTTY) io.fail("endorsements are allowed at this keyboard, in a terminal");
|
|
175
176
|
if (rest[1] === "on" && !(await askTyped(" A phone confirmed here may then add a browser it scanned as a controller of this computer. Allow it?"))) { io.say(" Not changed."); return; }
|
|
176
|
-
|
|
177
|
-
io.say(
|
|
177
|
+
const done = applySettingsChange({ what: "endorse", on: rest[1] === "on" }, { kind: "keyboard" }); // the one door (remote-settings.mjs)
|
|
178
|
+
io.say(` ✓ ${done.message}`);
|
|
178
179
|
return;
|
|
179
180
|
}
|
|
180
181
|
if (rest[0] === "remove" && (rest[1] === "--all" || io.has("all"))) { // EVERY DEVICE OFF, FROM THE SOURCE (owner, 2026-11-09): the daemon reads this list per message
|
|
@@ -282,9 +283,10 @@ function status(io) {
|
|
|
282
283
|
const agents = inventory({ env: { ...process.env, PATH: settings.agent_path ?? process.env.PATH } }).reports.filter((r) => r.installed);
|
|
283
284
|
const summary = { enabled: settings.enabled, paused: settings.paused, paired: Boolean(identity), device_id: identity?.device_id ?? null, fingerprint: keys ? fingerprintOf(keys) : null,
|
|
284
285
|
gateway: gatewayOf(settings), gateway_default: settings.gateway === null || settings.gateway === undefined, service, node_websocket: webSocketAvailable(), phones: { confirmed: phonesList.confirmed.length, pending: phonesList.pending.length, browsers_added: phonesList.confirmed.filter((p) => p.how === "endorsed").length, allow_endorse: settings.allow_endorse === true }, projects: loadProjects().length, modes_allowed: allowedModes(settings), admin: settings.admin !== false,
|
|
285
|
-
agents: agents.map((a) => ({ adapter: a.adapter, version: a.version, adapter_ready: a.capabilities.start, switched_off: a.capabilities.start && (a.adapter === "codex" || a.adapter === "opencode") && settings[a.adapter] !== true, models: a.models === null ? "not listed" : a.models.length })), invite_open: Boolean(readJson("invite.json")?.used === false) };
|
|
286
|
+
agents: agents.map((a) => ({ adapter: a.adapter, version: a.version, adapter_ready: a.capabilities.start, switched_off: a.capabilities.start && (a.adapter === "codex" || a.adapter === "opencode") && settings[a.adapter] !== true, models: a.models === null ? "not listed" : a.models.length })), invite_open: Boolean(readJson("invite.json")?.used === false), health: keptHealth() };
|
|
286
287
|
if (io.has("json")) { io.say(JSON.stringify(summary, null, 2)); return; }
|
|
287
288
|
io.say(` Remote: ${settings.enabled ? (settings.paused ? `paused (${settings.paused === "desk" ? "here" : "from a phone"})` : "on") : "off"}`);
|
|
289
|
+
io.say(healthLine(summary.health)); // the remote service's newest sample, a minute old at most (remote-health.mjs)
|
|
288
290
|
io.say(` Paired: ${identity ? `${identity.device_id} · key ${summary.fingerprint}` : "no"}`);
|
|
289
291
|
io.say(` Gateway: ${summary.gateway === PRODUCTION_GATEWAY ? `${new URL(PRODUCTION_GATEWAY).host} (WorkTrust's)` : `${summary.gateway}${isLoopbackGateway(summary.gateway) ? " (this computer: dev relay)" : " (chosen here)"}`}`);
|
|
290
292
|
io.say(` Service: ${service.kind === "foreground" ? "none on this system: run `npx worktrust remote run`" : `${service.installed ? "installed" : "not installed"}, ${service.running ? "running" : "not running"}`}`);
|
package/remote-connections.mjs
CHANGED
|
@@ -285,11 +285,13 @@ export function awaitingAccess(phones = loadPhones(), roots = loadRoots(), proje
|
|
|
285
285
|
return connections({ ...phones, pending: [] }).find((c) => c.device_id === newest.device_id) ?? null;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
/** The access step in this terminal
|
|
288
|
+
/** The access step in this terminal (interactive only with a terminal on both ends and no --yes), then the 0.11.14 questions. */
|
|
289
289
|
export async function reachStep(io, apply) {
|
|
290
290
|
const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY) && !io.has?.("yes");
|
|
291
|
-
const menu = interactive ? await import("./cli-menu.mjs") : null;
|
|
292
|
-
|
|
291
|
+
const menu = interactive ? await import("./cli-menu.mjs") : null, term = menu?.createTerminal() ?? null;
|
|
292
|
+
const reach = await accessStep(io, { apply, interactive, term, choose: menu?.choose ?? null });
|
|
293
|
+
await (await import("./remote-settings.mjs")).trustStep(io, { apply, interactive, term, choose: menu?.choose ?? null }); // may phones add a browser; the modes
|
|
294
|
+
return reach;
|
|
293
295
|
}
|
|
294
296
|
|
|
295
297
|
/** `remote access`: the newest linked phone, then the same step. */
|
package/remote-daemon.mjs
CHANGED
|
@@ -18,15 +18,17 @@ import { createProject, rootLabel, sessionProjects, worktreeMain } from "./remot
|
|
|
18
18
|
import { agentOptionsOf } from "./remote-inventory.mjs";
|
|
19
19
|
import { allowedModes, applySettingsChange } from "./remote-settings.mjs";
|
|
20
20
|
import { adminInventory } from "./remote-admin.mjs";
|
|
21
|
+
import { deskBodyFor } from "./remote-desk-sessions.mjs";
|
|
21
22
|
|
|
22
23
|
// What a paused computer still answers: reading, configuring, disconnecting, and taking work away (a pipeline's cancel).
|
|
23
24
|
const LIVE_COMMANDS = new Set(["preview.live_start", "preview.live_input", "preview.live_viewport", "preview.live_follow"]);
|
|
24
25
|
const DEVICE_COMMANDS = new Set(["inventory.get", "device.configure", "status.get", "pairing.revoke", "release.list", "pipeline.cancel"]);
|
|
26
|
+
const NEW_SESSIONS = new Set(["agent.start", "release.start"]);
|
|
25
27
|
const KEEP_REMOVED = 20;
|
|
26
28
|
const MAX_PENDING_PHONES = 10;
|
|
27
29
|
|
|
28
30
|
export function createDaemonCore(o) {
|
|
29
|
-
// o: { local, issuerKeys, journal, now, random, send(frame), inventory(refresh), log(kind, fields), sessions?, approvals? }
|
|
31
|
+
// o: { local, issuerKeys, journal, now, random, send(frame), inventory(refresh), log(kind, fields), sessions?, approvals?, health?() }
|
|
30
32
|
const channels = new Map(loadChannels().map((c) => [c.channel_id, c]));
|
|
31
33
|
const confirmed = () => confirmedFingerprints(loadPhones());
|
|
32
34
|
const self = o.local.claims.device_id;
|
|
@@ -39,15 +41,17 @@ export function createDaemonCore(o) {
|
|
|
39
41
|
* asks again on every inventory.get.
|
|
40
42
|
*/
|
|
41
43
|
const extendedPeers = new Set(), switchPeers = new Set(); // release 33: `model_switch` only for a phone that asked for it
|
|
42
|
-
const
|
|
44
|
+
const deskPeers = new Set(); // release 36: `desk_sessions` (and the `in_use` refusal) only for a phone that asked for them
|
|
45
|
+
const EXTENDED_KEYS = ["agent_options", "modes_allowed", "admin", "folders", "connections", "desk_sessions"];
|
|
43
46
|
const withoutSwitch = (body) => (body.agent_options ? { ...body, agent_options: body.agent_options.map(({ model_switch: _drop, ...o }) => o) } : body);
|
|
44
|
-
const bodyFor = (channel, record) => (record.type !== "device.inventory" ? record.body
|
|
47
|
+
const bodyFor = (channel, record) => deskBodyFor(deskPeers.has(channel.peer_device_id), record.type, record.type !== "device.inventory" ? record.body
|
|
45
48
|
: extendedPeers.has(channel.peer_device_id) ? (switchPeers.has(channel.peer_device_id) ? record.body : withoutSwitch(record.body))
|
|
46
49
|
: Object.fromEntries(Object.entries(record.body).filter(([key]) => !EXTENDED_KEYS.includes(key))));
|
|
47
50
|
|
|
48
|
-
function sealAll(record) {
|
|
51
|
+
function sealAll(record, only = null) { // `only`: one phone's channel (a catch-up page is for the phone that asked)
|
|
49
52
|
for (const [id, channel] of channels) {
|
|
50
53
|
if (!confirmed().has(channel.peer_fingerprint)) { channels.delete(id); continue; } // a revoked phone hears nothing
|
|
54
|
+
if (only !== null && channel.peer_device_id !== only) continue;
|
|
51
55
|
const draft = { protocol_version: channel.protocol_version, session_id: record.session_id, device_id: self, event_seq: record.event_seq, type: record.type, occurred_at: record.occurred_at, command_id: record.command_id, notify: record.notify, ...(record.lane ? { lane: record.lane } : {}) };
|
|
52
56
|
const sealed = P.sealEvent(channel, draft, bodyFor(channel, record), o.random);
|
|
53
57
|
if (!sealed.ok) { o.log("seal_refused", { type: record.type, code: sealed.code }); continue; }
|
|
@@ -85,10 +89,31 @@ export function createDaemonCore(o) {
|
|
|
85
89
|
/** Re-seal what the journal holds for a session after `after` (session.attach): same event_seq, so the phone dedups. */
|
|
86
90
|
const replay = (sessionId, after) => { for (const record of o.journal.eventsAfter(sessionId, after)) sealAll(record); };
|
|
87
91
|
|
|
92
|
+
/**
|
|
93
|
+
* THE CATCH-UP (release 37, CLI 0.11.14; PROTOCOL.md §Catch-up): session.attach with `after`, `max_events` and `max_bytes`
|
|
94
|
+
* re-seals, for the asking phone alone, the journaled events after `after`, in order, at most max_events of them and
|
|
95
|
+
* at most max_bytes of their canonical records (one always, so every page moves; both capped by the protocol's own
|
|
96
|
+
* bounds whatever was asked). A session this computer never ran or journaled is `not_found`. Reading only: it runs no
|
|
97
|
+
* agent, writes no event of its own, and is answered while the computer is paused, like status.get.
|
|
98
|
+
*/
|
|
99
|
+
function catchUp(sessionId, payload, phone) {
|
|
100
|
+
if (!sessions?.get?.(sessionId) && !o.journal.session(sessionId)) return "not_found";
|
|
101
|
+
const most = Math.min(payload.max_events, P.CATCH_UP_MAX_EVENTS), room = Math.min(payload.max_bytes, P.CATCH_UP_MAX_BYTES);
|
|
102
|
+
let sent = 0, bytes = 0;
|
|
103
|
+
for (const record of o.journal.eventsAfter(sessionId, payload.after)) {
|
|
104
|
+
const weight = P.canonicalJson(record).length;
|
|
105
|
+
if (sent >= most || (sent > 0 && bytes + weight > room)) break;
|
|
106
|
+
sealAll(record, phone);
|
|
107
|
+
sent += 1; bytes += weight;
|
|
108
|
+
}
|
|
109
|
+
o.log("catch_up", { sent });
|
|
110
|
+
return "taken";
|
|
111
|
+
}
|
|
112
|
+
|
|
88
113
|
function inventoryBody(refresh) {
|
|
89
114
|
const settings = loadSettings();
|
|
90
115
|
const inv = o.inventory(refresh);
|
|
91
|
-
|
|
116
|
+
const body = {
|
|
92
117
|
remote_enabled: settings.enabled && settings.paused === null,
|
|
93
118
|
default_adapter: settings.default_adapter ?? null,
|
|
94
119
|
default_model: settings.default_model ?? null,
|
|
@@ -108,6 +133,9 @@ export function createDaemonCore(o) {
|
|
|
108
133
|
// Every session this computer knows, live or in the journal, newest activity first, with its name and its release task.
|
|
109
134
|
sessions: (sessions?.listAll?.() ?? sessions?.list() ?? []).map((s) => ({ ...s, ...(releases?.ownerOf(s.session_id) ?? {}) })).slice(0, 100),
|
|
110
135
|
};
|
|
136
|
+
// Release 36, read only while a phone that asked is linked: this computer's own Claude Code sessions, under the projects above.
|
|
137
|
+
if (o.desk && deskPeers.size > 0) { try { body.desk_sessions = o.desk.list().filter((d) => body.projects.some((p) => p.project_id === d.project_id)); } catch { o.log("desk_unreadable", {}); } }
|
|
138
|
+
return body;
|
|
111
139
|
}
|
|
112
140
|
|
|
113
141
|
function resendReceipts(entry) {
|
|
@@ -117,6 +145,24 @@ export function createDaemonCore(o) {
|
|
|
117
145
|
else if (P.DELIVERY_RANK[entry.state] >= P.DELIVERY_RANK.AGENT_ACCEPTED) emit(meta.session_id ?? null, "command.agent_accepted", {}, entry.command_id);
|
|
118
146
|
}
|
|
119
147
|
|
|
148
|
+
/**
|
|
149
|
+
* THE PHONE'S OWN RESEND UNDER A NEW SEAL (release 37). A phone that was away comes back on a new channel and sends a
|
|
150
|
+
* message it kept, unconfirmed, sealed again under its OWN id and idempotency key (remote-client outbox-store.ts): other
|
|
151
|
+
* bytes, so the ledger calls it a conflict, and dropping it left the phone at "Delivery unconfirmed" for ever while the
|
|
152
|
+
* agent ran. Same id, same key, same sender, and it OPENS (the phone's signature, this channel): it is that duplicate,
|
|
153
|
+
* answered with the stored receipts again. It is never admitted and never dispatched, so nothing runs twice; anything
|
|
154
|
+
* else under a stored id stays a conflict and is dropped, as before.
|
|
155
|
+
*/
|
|
156
|
+
function resealed(channel, envelope, input) {
|
|
157
|
+
const entry = o.journal.entry(envelope.command_id);
|
|
158
|
+
const same = entry !== null && entry.idempotency_key === input.idempotency_key && entry.sender_device_id === input.sender_device_id;
|
|
159
|
+
const opened = same ? P.openCommand(channel, envelope, o.now()) : null;
|
|
160
|
+
if (!opened || (!opened.ok && opened.code !== "expired")) return o.log("command_dropped", { code: "conflict", command_id: envelope.command_id });
|
|
161
|
+
if (opened.ok) { channels.set(channel.channel_id, opened.value.channel); persist(); }
|
|
162
|
+
o.log("command_resealed", { command_id: envelope.command_id });
|
|
163
|
+
return resendReceipts(entry);
|
|
164
|
+
}
|
|
165
|
+
|
|
120
166
|
function reject(env, reason) {
|
|
121
167
|
o.journal.advance(env.command_id, { kind: "device_rejected", expired: reason === "expired" }, o.now(), reason);
|
|
122
168
|
emit(env.session_id, "command.rejected", { reason }, env.command_id);
|
|
@@ -180,10 +226,12 @@ export function createDaemonCore(o) {
|
|
|
180
226
|
async function dispatch(env, payload) {
|
|
181
227
|
const settings = loadSettings();
|
|
182
228
|
if (!settings.enabled) return "remote_paused";
|
|
229
|
+
if (env.type === "session.attach" && payload.after !== undefined) return catchUp(env.session_id, payload, env.sender_device_id); // reading, also while paused
|
|
183
230
|
if (settings.paused !== null && !DEVICE_COMMANDS.has(env.type)) return "remote_paused";
|
|
184
231
|
if (env.type === "inventory.get") {
|
|
185
232
|
if (payload.extended === true && env.sender_device_id) extendedPeers.add(env.sender_device_id);
|
|
186
233
|
if (payload.extended === true && payload.model_switch === true && env.sender_device_id) switchPeers.add(env.sender_device_id); // kept, as extendedPeers
|
|
234
|
+
if (payload.extended === true && payload.desk_sessions === true && env.sender_device_id) deskPeers.add(env.sender_device_id);
|
|
187
235
|
if (payload.device_name && env.sender_device_id) rememberName(env.sender_device_id, payload.device_name);
|
|
188
236
|
emit(null, "device.inventory", inventoryBody(payload.refresh_models));
|
|
189
237
|
return "taken";
|
|
@@ -208,6 +256,9 @@ export function createDaemonCore(o) {
|
|
|
208
256
|
return "taken";
|
|
209
257
|
}
|
|
210
258
|
if (env.type === "approval.decision") return approvals.decide(payload.decision_token).ok ? "taken" : "approval_invalid";
|
|
259
|
+
// HEAVY MEMORY LOAD (remote-health.mjs, 2026-11-15): while red, no NEW session starts; running sessions continue. `busy`
|
|
260
|
+
// is the reason every phone already knows; the run terminal says "This computer is under heavy memory load".
|
|
261
|
+
if (NEW_SESSIONS.has(env.type) && o.health?.()?.refusing === true) { o.log("session_refused", { reason: "memory_load", type: env.type }); return "busy"; }
|
|
211
262
|
if (P.RELEASE_COMMANDS.has(env.type)) return releases ? releases.handle(env, payload) : "unsupported"; // remote-releases.mjs
|
|
212
263
|
if (env.type === "attachment.put" || env.type === "attachment.clear") return o.attachments ? o.attachments.handle(env, payload) : "unsupported"; // remote-attachments.mjs
|
|
213
264
|
if (env.type === "preview.targets" || env.type === "preview.render") return o.preview ? o.preview.handle(env, payload) : "unsupported"; // remote-preview.mjs
|
|
@@ -226,7 +277,7 @@ export function createDaemonCore(o) {
|
|
|
226
277
|
if (!confirmed().has(channel.peer_fingerprint)) { channels.delete(channel.channel_id); persist(); return o.log("command_dropped", { code: "not_confirmed" }); }
|
|
227
278
|
const input = { command_id: envelope.command_id, idempotency_key: envelope.idempotency_key, sender_device_id: envelope.sender_device_id, digest: P.envelopeDigest(envelope) };
|
|
228
279
|
const found = o.journal.find(input);
|
|
229
|
-
if (found === "conflict") return
|
|
280
|
+
if (found === "conflict") return resealed(channel, envelope, input);
|
|
230
281
|
if (found !== "unknown") return resendReceipts(found.duplicate);
|
|
231
282
|
const opened = P.openCommand(channel, envelope, o.now());
|
|
232
283
|
if (!opened.ok && opened.code !== "expired") return o.log("command_dropped", { code: opened.code, command_id: envelope.command_id });
|
|
@@ -271,6 +322,8 @@ export function createDaemonCore(o) {
|
|
|
271
322
|
|
|
272
323
|
return {
|
|
273
324
|
emit, replay, receiveCommand, receiveHello, inventoryBody,
|
|
325
|
+
/** The computer's health (remote-health.mjs): device-wide on the transient lane, to every open channel, never journaled. */
|
|
326
|
+
emitHealth(body) { if (channels.size > 0) emit(null, "device.health", body, null, "none", { transient: true }); },
|
|
274
327
|
/** The gateway's device.revoked: a phone this computer will no longer hear from. */
|
|
275
328
|
peerRevoked(event) { return dropPhone(event.device_id, event.reason === "unpaired" ? "phone" : "revoked"); },
|
|
276
329
|
attach(s, a, r = null) { sessions = s; approvals = a; releases = r; },
|