@altimateai/altimate-code 0.1.4 → 0.1.10

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/altimate-code CHANGED
@@ -17,7 +17,7 @@ function run(target) {
17
17
  process.exit(code)
18
18
  }
19
19
 
20
- const envPath = process.env.ALTIMATE_CLI_BIN_PATH
20
+ const envPath = process.env.ALTIMATE_CODE_BIN_PATH
21
21
  if (envPath) {
22
22
  run(envPath)
23
23
  }
@@ -50,7 +50,8 @@ let arch = archMap[os.arch()]
50
50
  if (!arch) {
51
51
  arch = os.arch()
52
52
  }
53
- const base = "@altimateai/altimate-code-" + platform + "-" + arch
53
+ const scope = "@altimateai"
54
+ const base = "altimate-code-" + platform + "-" + arch
54
55
  const binary = platform === "windows" ? "altimate-code.exe" : "altimate-code"
55
56
 
56
57
  function supportsAvx2() {
@@ -154,7 +155,7 @@ function findBinary(startDir) {
154
155
  const modules = path.join(current, "node_modules")
155
156
  if (fs.existsSync(modules)) {
156
157
  for (const name of names) {
157
- const candidate = path.join(modules, name, "bin", binary)
158
+ const candidate = path.join(modules, scope, name, "bin", binary)
158
159
  if (fs.existsSync(candidate)) return candidate
159
160
  }
160
161
  }
@@ -170,7 +171,7 @@ const resolved = findBinary(scriptDir)
170
171
  if (!resolved) {
171
172
  console.error(
172
173
  "It seems that your package manager failed to install the right version of the altimate-code CLI for your platform. You can try manually installing " +
173
- names.map((n) => `\"${n}\"`).join(" or ") +
174
+ names.map((n) => `\"${scope}/${n}\"`).join(" or ") +
174
175
  " package",
175
176
  )
176
177
  process.exit(1)
package/package.json CHANGED
@@ -6,19 +6,19 @@
6
6
  "scripts": {
7
7
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
8
8
  },
9
- "version": "0.1.4",
9
+ "version": "v0.1.10",
10
10
  "license": "MIT",
11
11
  "optionalDependencies": {
12
- "@altimateai/altimate-code-linux-x64": "0.1.4",
13
- "@altimateai/altimate-code-linux-arm64-musl": "0.1.4",
14
- "@altimateai/altimate-code-darwin-x64": "0.1.4",
15
- "@altimateai/altimate-code-windows-x64": "0.1.4",
16
- "@altimateai/altimate-code-linux-x64-musl": "0.1.4",
17
- "@altimateai/altimate-code-darwin-x64-baseline": "0.1.4",
18
- "@altimateai/altimate-code-linux-x64-baseline-musl": "0.1.4",
19
- "@altimateai/altimate-code-linux-x64-baseline": "0.1.4",
20
- "@altimateai/altimate-code-linux-arm64": "0.1.4",
21
- "@altimateai/altimate-code-darwin-arm64": "0.1.4",
22
- "@altimateai/altimate-code-windows-x64-baseline": "0.1.4"
12
+ "@altimateai/altimate-code-linux-x64": "v0.1.10",
13
+ "@altimateai/altimate-code-linux-arm64-musl": "v0.1.10",
14
+ "@altimateai/altimate-code-darwin-x64": "v0.1.10",
15
+ "@altimateai/altimate-code-windows-x64": "v0.1.10",
16
+ "@altimateai/altimate-code-linux-x64-musl": "v0.1.10",
17
+ "@altimateai/altimate-code-darwin-x64-baseline": "v0.1.10",
18
+ "@altimateai/altimate-code-linux-x64-baseline-musl": "v0.1.10",
19
+ "@altimateai/altimate-code-linux-x64-baseline": "v0.1.10",
20
+ "@altimateai/altimate-code-linux-arm64": "v0.1.10",
21
+ "@altimateai/altimate-code-darwin-arm64": "v0.1.10",
22
+ "@altimateai/altimate-code-windows-x64-baseline": "v0.1.10"
23
23
  }
24
24
  }
package/postinstall.mjs CHANGED
@@ -85,18 +85,6 @@ function prepareBinDirectory(binaryName) {
85
85
  return { binDir, targetPath }
86
86
  }
87
87
 
88
- function symlinkBinary(sourcePath, binaryName) {
89
- const { targetPath } = prepareBinDirectory(binaryName)
90
-
91
- fs.symlinkSync(sourcePath, targetPath)
92
- console.log(`altimate-code binary symlinked: ${targetPath} -> ${sourcePath}`)
93
-
94
- // Verify the file exists after operation
95
- if (!fs.existsSync(targetPath)) {
96
- throw new Error(`Failed to symlink binary to ${targetPath}`)
97
- }
98
- }
99
-
100
88
  async function main() {
101
89
  try {
102
90
  if (os.platform() === "win32") {