@centralu/win32-x64 0.1.0-beta.78 → 0.1.0-beta.79
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.
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* **The terminal broker** (Windows, #1067;
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* host, as it does on macOS and Linux, while agents, Run commands, git and app servers end with it.
|
|
8
|
-
*
|
|
9
|
-
* A plain `.mjs`, started with `node <path>` in development and beside the bundled host alike (the Codex bridge's way,
|
|
10
|
-
* `adapters/bridge-path.ts`). Its whole protocol is one JSON object per line: the host's requests on stdin,
|
|
11
|
-
* what the terminals do on stdout.
|
|
12
|
-
*
|
|
2
|
+
* **The terminal broker** (Windows, #1067; host side `broker-pty.ts`). The host starts it before it joins the job object that ends
|
|
3
|
+
* its work with it (`lifecycle/work-job.ts`), so its terminals are outside that job: what a person starts from one (`code .`, the
|
|
4
|
+
* browser `claude auth login` opens, a background server) outlives the host, as on macOS and Linux; agents, Run commands, git and
|
|
5
|
+
* app servers end with it. A plain `.mjs`, started with `node <path>` in development and beside the bundled host
|
|
6
|
+
* (`adapters/bridge-path.ts`). One JSON object per line:
|
|
13
7
|
* - in: `{op:'spawn', id, file, args, cwd, env, cols, rows}` · `{op:'write', id, data}` · `{op:'resize', id, cols, rows}`
|
|
14
|
-
* · `{op:'kill', id}` · `{op:'open', url}` (an `https` address in the person's browser
|
|
8
|
+
* · `{op:'kill', id}` · `{op:'open', url}` (an `https` address in the person's browser)
|
|
15
9
|
* - out: `{ev:'ready'}` once · `{ev:'spawned', id, pid}` · `{ev:'error', id, message}` · `{ev:'data', id, data}` ·
|
|
16
10
|
* `{ev:'exit', id, exitCode, signal}`
|
|
17
|
-
*
|
|
18
|
-
* Its stdin closing means the host is gone: it exits, which closes every pseudoconsole and so ends each shell as the
|
|
19
|
-
* host's own would have. What a shell started outside its console stays.
|
|
11
|
+
* Its stdin closing means the host is gone: it exits, closing every pseudoconsole and so ending each shell in one; what a shell started outside its console stays.
|
|
20
12
|
*/
|
|
21
13
|
import { spawn } from 'node:child_process'
|
|
22
14
|
import { createRequire } from 'node:module'
|