cliproxy-codex-termux 0.77.7-cliproxy → 0.77.8-cliproxy

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/bin/codex CHANGED
Binary file
package/bin/codex-exec CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cliproxy-codex-termux",
3
- "version": "0.77.7-cliproxy",
3
+ "version": "0.77.8-cliproxy",
4
4
  "description": "Codex CLI with CLIProxyAPIPlus models pre-integrated. All models (Gemini, Claude, Qwen, Grok, Kiro) appear in /model selector. For Android Termux ARM64.",
5
5
  "type": "module",
6
6
  "main": "bin/codex.js",
@@ -13,10 +13,14 @@
13
13
  "bin/codex-exec.js",
14
14
  "bin/codex",
15
15
  "bin/codex-exec",
16
+ "scripts/postinstall.js",
16
17
  "README.md"
17
18
  ],
19
+ "scripts": {
20
+ "postinstall": "node scripts/postinstall.js"
21
+ },
18
22
  "peerDependencies": {
19
- "cliproxy-server-termux": "^1.0.0"
23
+ "cliproxy-server-termux": "^1.1.0"
20
24
  },
21
25
  "peerDependenciesMeta": {
22
26
  "cliproxy-server-termux": {
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { chmod } from 'fs/promises';
4
+ import { join, dirname } from 'path';
5
+ import { fileURLToPath } from 'url';
6
+
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const __dirname = dirname(__filename);
9
+
10
+ const BINARIES = [
11
+ join(__dirname, '..', 'bin', 'codex'),
12
+ join(__dirname, '..', 'bin', 'codex-exec')
13
+ ];
14
+
15
+ async function postinstall() {
16
+ try {
17
+ console.log('šŸ”§ Setting up Codex binaries...\n');
18
+
19
+ for (const binary of BINARIES) {
20
+ try {
21
+ await chmod(binary, 0o755);
22
+ console.log(`āœ… Set executable: ${binary.split('/').pop()}`);
23
+ } catch (error) {
24
+ console.warn(`āš ļø Could not chmod ${binary}:`, error.message);
25
+ }
26
+ }
27
+
28
+ console.log('\nšŸŽ‰ Codex CLI ready!');
29
+ console.log('\nUsage:');
30
+ console.log(' codex /model - Select AI model');
31
+ console.log(' codex "your prompt" - Chat with AI');
32
+ console.log('\nNote: Server must be running for dynamic models');
33
+ console.log(' Start server: cliproxy-server &');
34
+ } catch (error) {
35
+ console.error('āŒ Postinstall failed:', error);
36
+ process.exit(1);
37
+ }
38
+ }
39
+
40
+ postinstall();