codex-mobile-re 0.1.126 → 0.1.129

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.
Files changed (40) hide show
  1. package/dist/assets/{AutomationsPanel-BG5WNzLL.js → AutomationsPanel-DNsTBfFe.js} +1 -1
  2. package/dist/assets/AutomationsPanel-Dz1E0PMi.css +1 -0
  3. package/dist/assets/DirectoryHub-DcMzIMOW.css +1 -0
  4. package/dist/assets/DirectoryHub-DjzGaPq6.js +2 -0
  5. package/dist/assets/QueuedMessages-D6bvkQIC.css +1 -0
  6. package/dist/assets/{QueuedMessages-DkXhK9_E.js → QueuedMessages-DNVDZvsM.js} +1 -1
  7. package/dist/assets/ReviewPane-BFBDQWlW.css +1 -0
  8. package/dist/assets/{ReviewPane-Q1apY3Rc.js → ReviewPane-DLogJNGk.js} +1 -1
  9. package/dist/assets/{RightFilePreview-K0lk7NSB.js → RightFilePreview-DIz4AIh6.js} +1 -1
  10. package/dist/assets/{RightFilesPanel-C2R_CasS.js → RightFilesPanel-C7leH782.js} +1 -1
  11. package/dist/assets/{RightGitPanel-BIDR_XQR.js → RightGitPanel-BaFysyCQ.js} +2 -2
  12. package/dist/assets/RightGitPanel-CQgG9pXB.css +1 -0
  13. package/dist/assets/{SettingsDialog-Cz3Diu2d.js → SettingsDialog-BRMjc7tX.js} +3 -3
  14. package/dist/assets/SettingsDialog-C6mYdSFF.css +1 -0
  15. package/dist/assets/ThreadConversation-BB19p4J3.js +39 -0
  16. package/dist/assets/ThreadConversation-BEc1XQXz.css +1 -0
  17. package/dist/assets/ThreadPendingRequestPanel-BlBoJVzv.css +1 -0
  18. package/dist/assets/{ThreadPendingRequestPanel-BQRNFUqD.js → ThreadPendingRequestPanel-rVtQUq_G.js} +1 -1
  19. package/dist/assets/{ThreadTerminalPanel-ClZp6HSO.js → ThreadTerminalPanel-BPYLKihX.js} +1 -1
  20. package/dist/assets/common-DEPjExR-.js +5 -0
  21. package/dist/assets/index-DI_rCYF6.css +1 -0
  22. package/dist/assets/index-rc4ZsEIH.js +83 -0
  23. package/dist/index.html +2 -2
  24. package/dist-cli/index.js +2731 -1915
  25. package/dist-cli/index.js.map +1 -1
  26. package/package.json +2 -7
  27. package/dist/assets/AutomationsPanel-C0tUnD5v.css +0 -1
  28. package/dist/assets/DirectoryHub-CIMpqeOS.js +0 -2
  29. package/dist/assets/DirectoryHub-H8mvYc6K.css +0 -1
  30. package/dist/assets/QueuedMessages-C52y5f0s.css +0 -1
  31. package/dist/assets/ReviewPane-DVGtf9wy.css +0 -1
  32. package/dist/assets/RightGitPanel-BIfYCYjs.css +0 -1
  33. package/dist/assets/SettingsDialog-6Hp1Io8B.css +0 -1
  34. package/dist/assets/ThreadConversation-Cth4Ay1q.js +0 -39
  35. package/dist/assets/ThreadConversation-DqAd1OVb.css +0 -1
  36. package/dist/assets/ThreadPendingRequestPanel-B_vwlr0u.css +0 -1
  37. package/dist/assets/common-BeuopZEI.js +0 -5
  38. package/dist/assets/index-CvF3au4s.js +0 -83
  39. package/dist/assets/index-QHluWmps.css +0 -1
  40. package/scripts/fix-pty-native-build.cjs +0 -70
@@ -1,70 +0,0 @@
1
- const { chmodSync, existsSync, lstatSync, readFileSync, realpathSync, rmSync, writeFileSync } = require('node:fs')
2
- const { dirname, join } = require('node:path')
3
- const { spawnSync } = require('node:child_process')
4
-
5
- const PTY_PACKAGES = [
6
- 'node-pty',
7
- ]
8
-
9
- function packageRoot(name) {
10
- try {
11
- return dirname(require.resolve(`${name}/package.json`))
12
- } catch {
13
- return null
14
- }
15
- }
16
-
17
- function isBrokenSymlink(path) {
18
- try {
19
- return lstatSync(path).isSymbolicLink() && !existsSync(realpathSync(path))
20
- } catch {
21
- try {
22
- return lstatSync(path).isSymbolicLink() && !existsSync(path)
23
- } catch {
24
- return false
25
- }
26
- }
27
- }
28
-
29
- function patchMakefile(makefile) {
30
- const source = readFileSync(makefile, 'utf8')
31
- const patched = source.replace(
32
- /^cmd_copy = ln -f "\$<" "\$@" 2>\/dev\/null \|\| \(rm -rf "\$@" && cp -af "\$<" "\$@"\)$/m,
33
- 'cmd_copy = rm -rf "$@" && cp -af "$<" "$@"',
34
- )
35
- if (patched !== source) {
36
- writeFileSync(makefile, patched)
37
- }
38
- }
39
-
40
- function ensureSpawnHelperExecutable(root) {
41
- if (process.platform !== 'darwin' && process.platform !== 'linux') return
42
- const helperPath = join(root, 'prebuilds', `${process.platform}-${process.arch}`, 'spawn-helper')
43
- if (existsSync(helperPath)) {
44
- chmodSync(helperPath, 0o755)
45
- }
46
- }
47
-
48
- for (const name of PTY_PACKAGES) {
49
- const root = packageRoot(name)
50
- if (!root) continue
51
- ensureSpawnHelperExecutable(root)
52
-
53
- const buildDir = join(root, 'build')
54
- const makefile = join(buildDir, 'Makefile')
55
- const binary = join(buildDir, 'Release', 'pty.node')
56
- if (!existsSync(makefile) || !isBrokenSymlink(binary)) continue
57
-
58
- try {
59
- patchMakefile(makefile)
60
- rmSync(binary, { force: true })
61
- const result = spawnSync('make', ['BUILDTYPE=Release', '-C', buildDir], {
62
- stdio: 'inherit',
63
- })
64
- if (result.status !== 0) {
65
- console.warn(`[postinstall] Failed to repair ${name} native PTY build`)
66
- }
67
- } catch (error) {
68
- console.warn(`[postinstall] Failed to repair ${name} native PTY build: ${error.message}`)
69
- }
70
- }