@centralu/darwin-arm64 0.1.0-beta.42 → 0.1.0-beta.43
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/Centralu.app/Contents/Info.plist +2 -2
- package/Centralu.app/Contents/MacOS/centralu +0 -0
- package/Centralu.app/Contents/MacOS/centralu-keeper +0 -0
- package/Centralu.app/Contents/Resources/content/centralu-keeper +0 -0
- package/Centralu.app/Contents/Resources/content/content-manifest.json +8 -8
- package/Centralu.app/Contents/Resources/content/content-manifest.json.sig +1 -1
- package/Centralu.app/Contents/Resources/content/host/bundle-info.json +2 -2
- package/Centralu.app/Contents/Resources/content/host/centralu-package.json +5 -5
- package/Centralu.app/Contents/Resources/content/host/main.mjs +12560 -10337
- package/Centralu.app/Contents/Resources/content/host/pty-broker.mjs +42 -16
- package/Centralu.app/Contents/Resources/resources/host/bundle-info.json +2 -2
- package/Centralu.app/Contents/Resources/resources/host/centralu-package.json +5 -5
- package/Centralu.app/Contents/Resources/resources/host/main.mjs +12560 -10337
- package/Centralu.app/Contents/Resources/resources/host/pty-broker.mjs +42 -16
- package/Centralu.app/Contents/_CodeSignature/CodeResources +24 -24
- package/package.json +1 -1
|
@@ -11,18 +11,20 @@
|
|
|
11
11
|
* what the terminals do on stdout.
|
|
12
12
|
*
|
|
13
13
|
* - in: `{op:'spawn', id, file, args, cwd, env, cols, rows}` · `{op:'write', id, data}` · `{op:'resize', id, cols, rows}`
|
|
14
|
-
* · `{op:'kill', id}`
|
|
14
|
+
* · `{op:'kill', id}` · `{op:'open', url}` (an `https` address in the person's browser, review of #1685)
|
|
15
15
|
* - out: `{ev:'ready'}` once · `{ev:'spawned', id, pid}` · `{ev:'error', id, message}` · `{ev:'data', id, data}` ·
|
|
16
16
|
* `{ev:'exit', id, exitCode, signal}`
|
|
17
17
|
*
|
|
18
18
|
* Its stdin closing means the host is gone: it exits, which closes every pseudoconsole and so ends each shell as the
|
|
19
19
|
* host's own would have. What a shell started outside its console stays.
|
|
20
20
|
*/
|
|
21
|
+
import { spawn } from 'node:child_process'
|
|
21
22
|
import { createRequire } from 'node:module'
|
|
22
23
|
import { createInterface } from 'node:readline'
|
|
23
24
|
|
|
24
25
|
const require = createRequire(import.meta.url)
|
|
25
|
-
|
|
26
|
+
/** node-pty, loaded as the broker starts (`main`); a test that imports this file for `handle` loads none */
|
|
27
|
+
let pty
|
|
26
28
|
|
|
27
29
|
/** @type {Map<number, any>} */
|
|
28
30
|
const ptys = new Map()
|
|
@@ -48,7 +50,25 @@ function spawnPty(m) {
|
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
/**
|
|
54
|
+
* The person's browser at an address (Antigravity's sign-in page): started from here, outside the host's job, so it
|
|
55
|
+
* outlives the sign-in and the host. `detached`, so libuv puts it in no job of this process's either (it ends with this
|
|
56
|
+
* one otherwise); never through a shell, and only an `https` address. `start` is `spawn` (a test gives its own)
|
|
57
|
+
*/
|
|
58
|
+
function open(url, start) {
|
|
59
|
+
if (typeof url !== 'string' || !/^https:\/\//i.test(url)) return
|
|
60
|
+
try {
|
|
61
|
+
const child = start('rundll32', ['url.dll,FileProtocolHandler', url], { detached: true, stdio: 'ignore', windowsHide: true })
|
|
62
|
+
child.on('error', () => {})
|
|
63
|
+
child.unref()
|
|
64
|
+
} catch {
|
|
65
|
+
// The sign-in times out, which says the browser did not open
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** One request from the host. `start` starts what `open` opens: `spawn`, or a test's stand-in so no browser opens */
|
|
70
|
+
export function handle(m, start = spawn) {
|
|
71
|
+
if (m.op === 'open') return open(m.url, start)
|
|
52
72
|
if (m.op === 'spawn') {
|
|
53
73
|
let p
|
|
54
74
|
try {
|
|
@@ -81,16 +101,22 @@ function handle(m) {
|
|
|
81
101
|
}
|
|
82
102
|
}
|
|
83
103
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
m
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
104
|
+
function main() {
|
|
105
|
+
pty = require('node-pty')
|
|
106
|
+
const lines = createInterface({ input: process.stdin })
|
|
107
|
+
lines.on('line', (line) => {
|
|
108
|
+
let m
|
|
109
|
+
try {
|
|
110
|
+
m = JSON.parse(line)
|
|
111
|
+
} catch {
|
|
112
|
+
return
|
|
113
|
+
}
|
|
114
|
+
handle(m)
|
|
115
|
+
})
|
|
116
|
+
// The host is gone (closed, crashed, killed): every pseudoconsole closes with this process
|
|
117
|
+
lines.on('close', () => process.exit(0))
|
|
118
|
+
send({ ev: 'ready' })
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Started as the broker (`node pty-broker.mjs`, which every start is); a test imports it with this flag set to read `handle`
|
|
122
|
+
if (!globalThis.__ccPtyBrokerImported) main()
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Resources/content/centralu-keeper</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
nKFTJJ/CsWGgOXbGIs5RB/EFrig=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Resources/content/content-manifest.json</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
pdnkBe3xzH2iSjnt4LxJv8KBIHM=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Resources/content/content-manifest.json.sig</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
gytPeQ1q5JWZKE62fYOFo6b+ZSg=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Resources/content/host/app-template/AGENTS.md</key>
|
|
20
20
|
<data>
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
</data>
|
|
59
59
|
<key>Resources/content/host/bundle-info.json</key>
|
|
60
60
|
<data>
|
|
61
|
-
|
|
61
|
+
ngFn4l4CGv6ZsRFY23WEDNMmKH0=
|
|
62
62
|
</data>
|
|
63
63
|
<key>Resources/content/host/centralu-package.json</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
ik0lut/he0ZeCHl+3z8Zf3ZWswU=
|
|
66
66
|
</data>
|
|
67
67
|
<key>Resources/content/host/codex-orchestrator-bridge.mjs</key>
|
|
68
68
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Resources/content/host/main.mjs</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
o3kiK7FS9DWXs/+63w6Kp5gSOZQ=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Resources/content/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
76
76
|
<data>
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
</data>
|
|
343
343
|
<key>Resources/content/host/pty-broker.mjs</key>
|
|
344
344
|
<data>
|
|
345
|
-
|
|
345
|
+
4WhSF+Re8H7WYQz/vVP2eh5bctQ=
|
|
346
346
|
</data>
|
|
347
347
|
<key>Resources/content/host/remote-install.mjs</key>
|
|
348
348
|
<data>
|
|
@@ -402,11 +402,11 @@
|
|
|
402
402
|
</data>
|
|
403
403
|
<key>Resources/resources/host/bundle-info.json</key>
|
|
404
404
|
<data>
|
|
405
|
-
|
|
405
|
+
ngFn4l4CGv6ZsRFY23WEDNMmKH0=
|
|
406
406
|
</data>
|
|
407
407
|
<key>Resources/resources/host/centralu-package.json</key>
|
|
408
408
|
<data>
|
|
409
|
-
|
|
409
|
+
ik0lut/he0ZeCHl+3z8Zf3ZWswU=
|
|
410
410
|
</data>
|
|
411
411
|
<key>Resources/resources/host/codex-orchestrator-bridge.mjs</key>
|
|
412
412
|
<data>
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
</data>
|
|
415
415
|
<key>Resources/resources/host/main.mjs</key>
|
|
416
416
|
<data>
|
|
417
|
-
|
|
417
|
+
o3kiK7FS9DWXs/+63w6Kp5gSOZQ=
|
|
418
418
|
</data>
|
|
419
419
|
<key>Resources/resources/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
420
420
|
<data>
|
|
@@ -686,7 +686,7 @@
|
|
|
686
686
|
</data>
|
|
687
687
|
<key>Resources/resources/host/pty-broker.mjs</key>
|
|
688
688
|
<data>
|
|
689
|
-
|
|
689
|
+
4WhSF+Re8H7WYQz/vVP2eh5bctQ=
|
|
690
690
|
</data>
|
|
691
691
|
<key>Resources/resources/host/remote-install.mjs</key>
|
|
692
692
|
<data>
|
|
@@ -727,30 +727,30 @@
|
|
|
727
727
|
<dict>
|
|
728
728
|
<key>cdhash</key>
|
|
729
729
|
<data>
|
|
730
|
-
|
|
730
|
+
q2cXILKoMpNpNEtuGte9wEKjjK8=
|
|
731
731
|
</data>
|
|
732
732
|
<key>requirement</key>
|
|
733
|
-
<string>cdhash H"
|
|
733
|
+
<string>cdhash H"ab671720b2a8329369344b6e1ad7bdc042a38caf"</string>
|
|
734
734
|
</dict>
|
|
735
735
|
<key>Resources/content/centralu-keeper</key>
|
|
736
736
|
<dict>
|
|
737
737
|
<key>hash2</key>
|
|
738
738
|
<data>
|
|
739
|
-
+
|
|
739
|
+
fD2UrV9glF7Z5wv8Xv+uffzVuUMVyqECaDRJUY9bqYM=
|
|
740
740
|
</data>
|
|
741
741
|
</dict>
|
|
742
742
|
<key>Resources/content/content-manifest.json</key>
|
|
743
743
|
<dict>
|
|
744
744
|
<key>hash2</key>
|
|
745
745
|
<data>
|
|
746
|
-
|
|
746
|
+
DOaswtyU6cNdL/5k5rGqgyZSc30BCVFhBlTVIM+t26U=
|
|
747
747
|
</data>
|
|
748
748
|
</dict>
|
|
749
749
|
<key>Resources/content/content-manifest.json.sig</key>
|
|
750
750
|
<dict>
|
|
751
751
|
<key>hash2</key>
|
|
752
752
|
<data>
|
|
753
|
-
|
|
753
|
+
63RxDnpXlP8YxvhXhRg8Dj+rjEaM4rDNCe3MQbR8PsM=
|
|
754
754
|
</data>
|
|
755
755
|
</dict>
|
|
756
756
|
<key>Resources/content/host/app-template/AGENTS.md</key>
|
|
@@ -827,14 +827,14 @@
|
|
|
827
827
|
<dict>
|
|
828
828
|
<key>hash2</key>
|
|
829
829
|
<data>
|
|
830
|
-
|
|
830
|
+
1YOx1CQOR+V+7vFfxnOdZvbIaYaLAT5J3wzQwmqTOY8=
|
|
831
831
|
</data>
|
|
832
832
|
</dict>
|
|
833
833
|
<key>Resources/content/host/centralu-package.json</key>
|
|
834
834
|
<dict>
|
|
835
835
|
<key>hash2</key>
|
|
836
836
|
<data>
|
|
837
|
-
|
|
837
|
+
90POh4VdkXFX8/CKWD/1I9dqlEAV5jPyzFUiE0Mqma0=
|
|
838
838
|
</data>
|
|
839
839
|
</dict>
|
|
840
840
|
<key>Resources/content/host/codex-orchestrator-bridge.mjs</key>
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
<dict>
|
|
849
849
|
<key>hash2</key>
|
|
850
850
|
<data>
|
|
851
|
-
|
|
851
|
+
67l5HF2Lm9AZbgK58OW9LMUIOk2XEz5Xq0R3BN0wCqs=
|
|
852
852
|
</data>
|
|
853
853
|
</dict>
|
|
854
854
|
<key>Resources/content/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
@@ -1324,7 +1324,7 @@
|
|
|
1324
1324
|
<dict>
|
|
1325
1325
|
<key>hash2</key>
|
|
1326
1326
|
<data>
|
|
1327
|
-
|
|
1327
|
+
PPq+9h1JvFsLjNk/aCYPqkk0n4nHSFP5i3cyvJ57a8M=
|
|
1328
1328
|
</data>
|
|
1329
1329
|
</dict>
|
|
1330
1330
|
<key>Resources/content/host/remote-install.mjs</key>
|
|
@@ -1429,14 +1429,14 @@
|
|
|
1429
1429
|
<dict>
|
|
1430
1430
|
<key>hash2</key>
|
|
1431
1431
|
<data>
|
|
1432
|
-
|
|
1432
|
+
1YOx1CQOR+V+7vFfxnOdZvbIaYaLAT5J3wzQwmqTOY8=
|
|
1433
1433
|
</data>
|
|
1434
1434
|
</dict>
|
|
1435
1435
|
<key>Resources/resources/host/centralu-package.json</key>
|
|
1436
1436
|
<dict>
|
|
1437
1437
|
<key>hash2</key>
|
|
1438
1438
|
<data>
|
|
1439
|
-
|
|
1439
|
+
90POh4VdkXFX8/CKWD/1I9dqlEAV5jPyzFUiE0Mqma0=
|
|
1440
1440
|
</data>
|
|
1441
1441
|
</dict>
|
|
1442
1442
|
<key>Resources/resources/host/codex-orchestrator-bridge.mjs</key>
|
|
@@ -1450,7 +1450,7 @@
|
|
|
1450
1450
|
<dict>
|
|
1451
1451
|
<key>hash2</key>
|
|
1452
1452
|
<data>
|
|
1453
|
-
|
|
1453
|
+
67l5HF2Lm9AZbgK58OW9LMUIOk2XEz5Xq0R3BN0wCqs=
|
|
1454
1454
|
</data>
|
|
1455
1455
|
</dict>
|
|
1456
1456
|
<key>Resources/resources/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
@@ -1926,7 +1926,7 @@
|
|
|
1926
1926
|
<dict>
|
|
1927
1927
|
<key>hash2</key>
|
|
1928
1928
|
<data>
|
|
1929
|
-
|
|
1929
|
+
PPq+9h1JvFsLjNk/aCYPqkk0n4nHSFP5i3cyvJ57a8M=
|
|
1930
1930
|
</data>
|
|
1931
1931
|
</dict>
|
|
1932
1932
|
<key>Resources/resources/host/remote-install.mjs</key>
|