use openaisdk

This commit is contained in:
David Blass
2025-11-13 14:21:53 -05:00
parent f4f2e24ec0
commit 3e547693ae
4 changed files with 814 additions and 287 deletions
+4 -1
View File
@@ -1,5 +1,5 @@
import { spawnSync } from "node:child_process";
import { createWriteStream, existsSync } from "node:fs";
import { chmodSync, createWriteStream, existsSync } from "node:fs";
import { mkdtemp } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
@@ -119,6 +119,9 @@ export async function installFromNpmTarball({
throw new Error(`Executable not found in extracted package at ${cliPath}`);
}
// Make the file executable
chmodSync(cliPath, 0o755);
log.info(`${packageName} installed at ${cliPath}`);
return cliPath;