tacodex 0.1.10 → 0.1.11

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 (2) hide show
  1. package/bin/postinstall.js +30 -0
  2. package/package.json +4 -1
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ // Postinstall script to set execute permissions on binaries
3
+
4
+ import { chmod } from "node:fs/promises";
5
+ import { existsSync } from "node:fs";
6
+ import path from "node:path";
7
+ import { fileURLToPath } from "node:url";
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+
12
+ const vendorRoot = path.join(__dirname, "..", "vendor");
13
+
14
+ const binaries = [
15
+ "x86_64-unknown-linux-musl/codex/codex",
16
+ "aarch64-unknown-linux-musl/codex/codex",
17
+ "x86_64-apple-darwin/codex/codex",
18
+ "aarch64-apple-darwin/codex/codex",
19
+ ];
20
+
21
+ for (const binary of binaries) {
22
+ const binaryPath = path.join(vendorRoot, binary);
23
+ if (existsSync(binaryPath)) {
24
+ try {
25
+ await chmod(binaryPath, 0o755);
26
+ } catch (err) {
27
+ // Ignore errors (e.g., on Windows)
28
+ }
29
+ }
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tacodex",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Tacodex - Multi-agent orchestration CLI based on Codex",
5
5
  "license": "Apache-2.0",
6
6
  "bin": {
@@ -10,6 +10,9 @@
10
10
  "engines": {
11
11
  "node": ">=16"
12
12
  },
13
+ "scripts": {
14
+ "postinstall": "node bin/postinstall.js"
15
+ },
13
16
  "files": [
14
17
  "bin",
15
18
  "vendor"