acp-extension-codex-linux-arm64 0.8.4 → 0.8.6

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.
@@ -0,0 +1,20 @@
1
+ import { chmodSync, existsSync, statSync } from "node:fs";
2
+ import { fileURLToPath } from "node:url";
3
+ import path from "node:path";
4
+
5
+ if (process.platform !== "win32") {
6
+ const packageDir = path.dirname(fileURLToPath(import.meta.url));
7
+ const binaryPath = path.join(packageDir, "bin", "acp-extension-codex");
8
+
9
+ if (existsSync(binaryPath)) {
10
+ try {
11
+ const st = statSync(binaryPath);
12
+ if ((st.mode & 0o111) === 0) {
13
+ chmodSync(binaryPath, st.mode | 0o111);
14
+ }
15
+ } catch {
16
+ // Best-effort: if chmod fails, the CLI wrapper will surface the error.
17
+ }
18
+ }
19
+ }
20
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acp-extension-codex-linux-arm64",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "description": "An ACP-compatible coding agent powered by Codex - linux arm64 binary",
5
5
  "license": "Apache-2.0",
6
6
  "author": "lody <agent@lody.ai>",
@@ -10,7 +10,11 @@
10
10
  "url": "git+https://github.com/Leeeon233/acp-extension.git"
11
11
  },
12
12
  "bin": {
13
- "codex-acp": "bin/codex-acp"
13
+ "acp-extension-codex": "bin/acp-extension-codex"
14
+ },
15
+ "scripts": {
16
+ "prepack": "node ./ensure-executable.mjs",
17
+ "postinstall": "node ./ensure-executable.mjs"
14
18
  },
15
19
  "os": [
16
20
  "linux"
@@ -19,6 +23,7 @@
19
23
  "arm64"
20
24
  ],
21
25
  "files": [
22
- "bin"
26
+ "bin",
27
+ "ensure-executable.mjs"
23
28
  ]
24
29
  }