@centralu/darwin-arm64 0.1.0-beta.25 → 0.1.0-beta.27
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 +12 -12
- package/Centralu.app/Contents/Resources/content/content-manifest.json.sig +1 -1
- package/Centralu.app/Contents/Resources/content/host/bundle-info.json +3 -2
- package/Centralu.app/Contents/Resources/content/host/centralu-package.json +5 -5
- package/Centralu.app/Contents/Resources/content/host/codex-orchestrator-bridge.mjs +1 -0
- package/Centralu.app/Contents/Resources/content/host/main.mjs +30061 -27905
- package/Centralu.app/Contents/Resources/content/host/remote-install.mjs +15 -9
- package/Centralu.app/Contents/Resources/resources/host/bundle-info.json +3 -2
- package/Centralu.app/Contents/Resources/resources/host/centralu-package.json +5 -5
- package/Centralu.app/Contents/Resources/resources/host/codex-orchestrator-bridge.mjs +1 -0
- package/Centralu.app/Contents/Resources/resources/host/main.mjs +30061 -27905
- package/Centralu.app/Contents/Resources/resources/host/remote-install.mjs +15 -9
- package/Centralu.app/Contents/_CodeSignature/CodeResources +28 -28
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import { spawnSync } from 'node:child_process'
|
|
|
11
11
|
import { createHash, randomBytes } from 'node:crypto'
|
|
12
12
|
import { chmodSync, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from 'node:fs'
|
|
13
13
|
import { homedir } from 'node:os'
|
|
14
|
-
import { basename, join } from 'node:path'
|
|
14
|
+
import { basename, join, win32 } from 'node:path'
|
|
15
15
|
import { pathToFileURL } from 'node:url'
|
|
16
16
|
|
|
17
17
|
const WORD = /^[0-9A-Za-z][0-9A-Za-z.+-]{0,63}$/
|
|
@@ -176,9 +176,15 @@ function alive(pid) {
|
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
/**
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
/**
|
|
180
|
+
* The system's tar. On Windows the one in System32 (bsdtar): a GNU tar on PATH reads `C:` as a host. Named by its whole
|
|
181
|
+
* path: a `SystemRoot` that is not one from a drive's root is not used (the host's `systemTool` rule, which this script
|
|
182
|
+
* cannot import), since Windows looks a relative program path up in the working directory first (#428).
|
|
183
|
+
*/
|
|
184
|
+
export function tarProgram(platform = process.platform, env = process.env) {
|
|
185
|
+
if (platform !== 'win32') return 'tar'
|
|
186
|
+
const root = /^[A-Za-z]:[\\/]/.test(env.SystemRoot ?? '') ? env.SystemRoot : 'C:\\Windows'
|
|
187
|
+
return win32.join(root, 'System32', 'tar.exe')
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
/** The tarball's bytes, refused unless their sha512 is the integrity the hub read from the signed metadata */
|
|
@@ -258,15 +264,15 @@ export async function install(p, { dataDir = process.env.CC_DATA_DIR || join(hom
|
|
|
258
264
|
const partial = join(l.root, `.partial-${p.version}-${process.pid}`)
|
|
259
265
|
rmSync(partial, { recursive: true, force: true })
|
|
260
266
|
try {
|
|
261
|
-
for (const
|
|
267
|
+
for (const pkg of p.packages) {
|
|
262
268
|
const bytes = await fetchChecked(pkg)
|
|
263
|
-
const file = join(partial, `${i}.tgz`)
|
|
264
269
|
const dest = join(partial, 'node_modules', ...pkg.name.split('/'))
|
|
265
270
|
mkdirSync(dest, { recursive: true })
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
// No path among the arguments (#849): Windows' tar takes its arguments in the ANSI code page, so a profile
|
|
272
|
+
// folder outside it (a name in another script) reached it as "?????" and the unpack failed. The archive comes
|
|
273
|
+
// on stdin, and the destination is the working folder, which Windows hands over whole
|
|
274
|
+
const r = spawnSync(tarProgram(), ['-xzf', '-', '--strip-components', '1'], { cwd: dest, input: bytes, encoding: 'utf8', windowsHide: true, maxBuffer: 16 * 1024 * 1024 })
|
|
268
275
|
if (r.status !== 0) throw new Refusal('unpack', `${pkg.name}: ${(r.stderr || r.error?.message || '').trim().split('\n').at(-1)}`)
|
|
269
|
-
rmSync(file, { force: true })
|
|
270
276
|
}
|
|
271
277
|
const pkgDir = join(partial, 'node_modules', ...parts.pkg.split('/'))
|
|
272
278
|
if (!existsSync(join(pkgDir, parts.host))) throw new Refusal('no_host', p.platform)
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Resources/content/centralu-keeper</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
ELf6tNEorvC2otcCB/C9JNtmZGw=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Resources/content/content-manifest.json</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
QRDgmpzmg7EzWzhZCc5E2qpO4Eg=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Resources/content/content-manifest.json.sig</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
wJ6YXU3DlPUg2QZ0KmfULODgPkY=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Resources/content/host/app-template/AGENTS.md</key>
|
|
20
20
|
<data>
|
|
@@ -58,19 +58,19 @@
|
|
|
58
58
|
</data>
|
|
59
59
|
<key>Resources/content/host/bundle-info.json</key>
|
|
60
60
|
<data>
|
|
61
|
-
|
|
61
|
+
kJUhqmsmZQzBSBYAMqUjpjPPXX0=
|
|
62
62
|
</data>
|
|
63
63
|
<key>Resources/content/host/centralu-package.json</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
JsSX0xVPvbBtY47AhG/oo/mM1Rg=
|
|
66
66
|
</data>
|
|
67
67
|
<key>Resources/content/host/codex-orchestrator-bridge.mjs</key>
|
|
68
68
|
<data>
|
|
69
|
-
|
|
69
|
+
FgYNYlPdLBI9ylM3qg+ZG+cIZlY=
|
|
70
70
|
</data>
|
|
71
71
|
<key>Resources/content/host/main.mjs</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
eVPl3d5o4/F3mUIKbPuvJVOIl04=
|
|
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/remote-install.mjs</key>
|
|
344
344
|
<data>
|
|
345
|
-
|
|
345
|
+
lzWV3GewxtyDFt+/gtJJAPl2ZoU=
|
|
346
346
|
</data>
|
|
347
347
|
<key>Resources/content/host/remote-runtime.json</key>
|
|
348
348
|
<data>
|
|
@@ -398,19 +398,19 @@
|
|
|
398
398
|
</data>
|
|
399
399
|
<key>Resources/resources/host/bundle-info.json</key>
|
|
400
400
|
<data>
|
|
401
|
-
|
|
401
|
+
kJUhqmsmZQzBSBYAMqUjpjPPXX0=
|
|
402
402
|
</data>
|
|
403
403
|
<key>Resources/resources/host/centralu-package.json</key>
|
|
404
404
|
<data>
|
|
405
|
-
|
|
405
|
+
JsSX0xVPvbBtY47AhG/oo/mM1Rg=
|
|
406
406
|
</data>
|
|
407
407
|
<key>Resources/resources/host/codex-orchestrator-bridge.mjs</key>
|
|
408
408
|
<data>
|
|
409
|
-
|
|
409
|
+
FgYNYlPdLBI9ylM3qg+ZG+cIZlY=
|
|
410
410
|
</data>
|
|
411
411
|
<key>Resources/resources/host/main.mjs</key>
|
|
412
412
|
<data>
|
|
413
|
-
|
|
413
|
+
eVPl3d5o4/F3mUIKbPuvJVOIl04=
|
|
414
414
|
</data>
|
|
415
415
|
<key>Resources/resources/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
416
416
|
<data>
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
</data>
|
|
683
683
|
<key>Resources/resources/host/remote-install.mjs</key>
|
|
684
684
|
<data>
|
|
685
|
-
|
|
685
|
+
lzWV3GewxtyDFt+/gtJJAPl2ZoU=
|
|
686
686
|
</data>
|
|
687
687
|
<key>Resources/resources/host/remote-runtime.json</key>
|
|
688
688
|
<data>
|
|
@@ -719,30 +719,30 @@
|
|
|
719
719
|
<dict>
|
|
720
720
|
<key>cdhash</key>
|
|
721
721
|
<data>
|
|
722
|
-
|
|
722
|
+
J2L5hO1cpmAz/d3bnDpj4yqBU94=
|
|
723
723
|
</data>
|
|
724
724
|
<key>requirement</key>
|
|
725
|
-
<string>cdhash H"
|
|
725
|
+
<string>cdhash H"2762f984ed5ca66033fddddb9c3a63e32a8153de"</string>
|
|
726
726
|
</dict>
|
|
727
727
|
<key>Resources/content/centralu-keeper</key>
|
|
728
728
|
<dict>
|
|
729
729
|
<key>hash2</key>
|
|
730
730
|
<data>
|
|
731
|
-
|
|
731
|
+
aC31cqeAunJAi43Qdjd9df3SfyKjju4pBcI12Oeu5Ts=
|
|
732
732
|
</data>
|
|
733
733
|
</dict>
|
|
734
734
|
<key>Resources/content/content-manifest.json</key>
|
|
735
735
|
<dict>
|
|
736
736
|
<key>hash2</key>
|
|
737
737
|
<data>
|
|
738
|
-
|
|
738
|
+
GfgsljLa3byX6UOvFW6zAyppE6AXaeeA28pTPXU46ZA=
|
|
739
739
|
</data>
|
|
740
740
|
</dict>
|
|
741
741
|
<key>Resources/content/content-manifest.json.sig</key>
|
|
742
742
|
<dict>
|
|
743
743
|
<key>hash2</key>
|
|
744
744
|
<data>
|
|
745
|
-
|
|
745
|
+
qKhpRfgivlikw86LJSU88moscQqTCFVr3VW9dimuiYE=
|
|
746
746
|
</data>
|
|
747
747
|
</dict>
|
|
748
748
|
<key>Resources/content/host/app-template/AGENTS.md</key>
|
|
@@ -819,28 +819,28 @@
|
|
|
819
819
|
<dict>
|
|
820
820
|
<key>hash2</key>
|
|
821
821
|
<data>
|
|
822
|
-
|
|
822
|
+
+jhENG+fSPtYVfA2pZuLQlJF0V4AzZHwc8LhKKr56JQ=
|
|
823
823
|
</data>
|
|
824
824
|
</dict>
|
|
825
825
|
<key>Resources/content/host/centralu-package.json</key>
|
|
826
826
|
<dict>
|
|
827
827
|
<key>hash2</key>
|
|
828
828
|
<data>
|
|
829
|
-
|
|
829
|
+
RknIuUQ/lION2pI6iqMgBRiEvobyWC6V1xjcHGOZc6s=
|
|
830
830
|
</data>
|
|
831
831
|
</dict>
|
|
832
832
|
<key>Resources/content/host/codex-orchestrator-bridge.mjs</key>
|
|
833
833
|
<dict>
|
|
834
834
|
<key>hash2</key>
|
|
835
835
|
<data>
|
|
836
|
-
|
|
836
|
+
caNDqli38NahWAZBFoFzv/eKUM/XbZKTJHWN1GP8ZP0=
|
|
837
837
|
</data>
|
|
838
838
|
</dict>
|
|
839
839
|
<key>Resources/content/host/main.mjs</key>
|
|
840
840
|
<dict>
|
|
841
841
|
<key>hash2</key>
|
|
842
842
|
<data>
|
|
843
|
-
|
|
843
|
+
sEelFWm715DASvhUJ6XJ6XdjgJ4mV0KD3KGzyz3ewbU=
|
|
844
844
|
</data>
|
|
845
845
|
</dict>
|
|
846
846
|
<key>Resources/content/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
@@ -1316,7 +1316,7 @@
|
|
|
1316
1316
|
<dict>
|
|
1317
1317
|
<key>hash2</key>
|
|
1318
1318
|
<data>
|
|
1319
|
-
|
|
1319
|
+
S38LUFdHBxTKwmxQAR9X0BWNkglwHibVcpsFFQl6AAk=
|
|
1320
1320
|
</data>
|
|
1321
1321
|
</dict>
|
|
1322
1322
|
<key>Resources/content/host/remote-runtime.json</key>
|
|
@@ -1414,28 +1414,28 @@
|
|
|
1414
1414
|
<dict>
|
|
1415
1415
|
<key>hash2</key>
|
|
1416
1416
|
<data>
|
|
1417
|
-
|
|
1417
|
+
+jhENG+fSPtYVfA2pZuLQlJF0V4AzZHwc8LhKKr56JQ=
|
|
1418
1418
|
</data>
|
|
1419
1419
|
</dict>
|
|
1420
1420
|
<key>Resources/resources/host/centralu-package.json</key>
|
|
1421
1421
|
<dict>
|
|
1422
1422
|
<key>hash2</key>
|
|
1423
1423
|
<data>
|
|
1424
|
-
|
|
1424
|
+
RknIuUQ/lION2pI6iqMgBRiEvobyWC6V1xjcHGOZc6s=
|
|
1425
1425
|
</data>
|
|
1426
1426
|
</dict>
|
|
1427
1427
|
<key>Resources/resources/host/codex-orchestrator-bridge.mjs</key>
|
|
1428
1428
|
<dict>
|
|
1429
1429
|
<key>hash2</key>
|
|
1430
1430
|
<data>
|
|
1431
|
-
|
|
1431
|
+
caNDqli38NahWAZBFoFzv/eKUM/XbZKTJHWN1GP8ZP0=
|
|
1432
1432
|
</data>
|
|
1433
1433
|
</dict>
|
|
1434
1434
|
<key>Resources/resources/host/main.mjs</key>
|
|
1435
1435
|
<dict>
|
|
1436
1436
|
<key>hash2</key>
|
|
1437
1437
|
<data>
|
|
1438
|
-
|
|
1438
|
+
sEelFWm715DASvhUJ6XJ6XdjgJ4mV0KD3KGzyz3ewbU=
|
|
1439
1439
|
</data>
|
|
1440
1440
|
</dict>
|
|
1441
1441
|
<key>Resources/resources/host/node_modules/better-sqlite3/build/Release/better_sqlite3.node</key>
|
|
@@ -1911,7 +1911,7 @@
|
|
|
1911
1911
|
<dict>
|
|
1912
1912
|
<key>hash2</key>
|
|
1913
1913
|
<data>
|
|
1914
|
-
|
|
1914
|
+
S38LUFdHBxTKwmxQAR9X0BWNkglwHibVcpsFFQl6AAk=
|
|
1915
1915
|
</data>
|
|
1916
1916
|
</dict>
|
|
1917
1917
|
<key>Resources/resources/host/remote-runtime.json</key>
|