saeeol 1.4.3 → 1.4.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.
@@ -15,12 +15,11 @@ function getBinaryName() {
15
15
 
16
16
  function findBinary() {
17
17
  const binaryName = getBinaryName()
18
- const ext = process.platform === "win32" ? ".exe" : "saeeol"
19
18
  const binaryRel = process.platform === "win32" ? "bin/saeeol.exe" : "bin/saeeol"
20
19
 
21
20
  // 1. Look in node_modules of this package
22
21
  const scriptDir = dirname(realpathSync(__filename))
23
- const localModules = join(scriptDir, "..", "node_modules", binaryName, binaryRel)
22
+ const localModules = join(scriptDir, "node_modules", binaryName, binaryRel)
24
23
  if (existsSync(localModules)) return localModules
25
24
 
26
25
  // 2. Walk up to find node_modules
@@ -34,7 +33,7 @@ function findBinary() {
34
33
  }
35
34
 
36
35
  // 3. Download directory (postinstall fallback)
37
- const downloadPath = join(scriptDir, "..", "download", process.platform === "win32" ? `${binaryName}.exe` : binaryName.replace(`saeeol-${process.platform === "win32" ? "windows" : process.platform}-`, "saeeol"))
36
+ const downloadPath = join(scriptDir, "download", process.platform === "win32" ? `${binaryName}.exe` : "saeeol")
38
37
  if (existsSync(downloadPath)) return downloadPath
39
38
 
40
39
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saeeol",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "AI agent engine for SAEEOL",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,10 +8,10 @@
8
8
  "url": "https://github.com/byfabulist/fabulist"
9
9
  },
10
10
  "bin": {
11
- "saeeol": "./bin/saeeol"
11
+ "saeeol": "cli.js"
12
12
  },
13
13
  "files": [
14
- "bin/",
14
+ "cli.js",
15
15
  "postinstall.js"
16
16
  ],
17
17
  "scripts": {