finny 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finny",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "AI-powered quantitative trading CLI with TUI interface",
5
5
  "keywords": [
6
6
  "trading",
@@ -27,11 +27,11 @@
27
27
  "postinstall": "node scripts/postinstall.js"
28
28
  },
29
29
  "optionalDependencies": {
30
- "finny-darwin-arm64": "1.0.2",
31
- "finny-darwin-x64": "1.0.2",
32
- "finny-linux-arm64": "1.0.2",
33
- "finny-linux-x64": "1.0.2",
34
- "finny-windows-x64": "1.0.2"
30
+ "finny-darwin-arm64": "1.0.0",
31
+ "finny-darwin-x64": "1.0.0",
32
+ "finny-linux-arm64": "1.0.0",
33
+ "finny-linux-x64": "1.0.0",
34
+ "finny-windows-x64": "1.0.0"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18"
@@ -34,4 +34,21 @@ if (!installed) {
34
34
  console.warn(`\n[finny] Warning: Platform package ${packageName} not found`);
35
35
  console.warn(`[finny] This might happen if optional dependencies are disabled`);
36
36
  console.warn(`[finny] Try: npm install ${packageName}\n`);
37
+ } else {
38
+ // Make binary executable (fix for npm not preserving permissions)
39
+ for (const basePath of possiblePaths) {
40
+ const binaryPath = path.join(basePath, "bin", "finny");
41
+ const binaryPathExe = path.join(basePath, "bin", "finny.exe");
42
+
43
+ try {
44
+ if (fs.existsSync(binaryPath)) {
45
+ fs.chmodSync(binaryPath, 0o755);
46
+ }
47
+ if (fs.existsSync(binaryPathExe)) {
48
+ fs.chmodSync(binaryPathExe, 0o755);
49
+ }
50
+ } catch (e) {
51
+ // Ignore permission errors on Windows
52
+ }
53
+ }
37
54
  }