@llmist/cli 9.5.0 → 9.5.2
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/dist/cli.js +4 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -79,7 +79,7 @@ import { Command, InvalidArgumentError as InvalidArgumentError2 } from "commande
|
|
|
79
79
|
// package.json
|
|
80
80
|
var package_default = {
|
|
81
81
|
name: "@llmist/cli",
|
|
82
|
-
version: "9.5.
|
|
82
|
+
version: "9.5.2",
|
|
83
83
|
description: "CLI for llmist - run LLM agents from the command line",
|
|
84
84
|
type: "module",
|
|
85
85
|
main: "dist/cli.js",
|
|
@@ -1052,16 +1052,15 @@ async function installNpmPackage(spec, cacheDir) {
|
|
|
1052
1052
|
};
|
|
1053
1053
|
fs5.writeFileSync(path4.join(cacheDir, "package.json"), JSON.stringify(packageJson, null, 2));
|
|
1054
1054
|
const packageSpec = spec.version ? `${spec.package}@${spec.version}` : spec.package;
|
|
1055
|
-
const
|
|
1056
|
-
const installCmd = pm === "bun" ? `bun add "${packageSpec}"` : `npm install "${packageSpec}"`;
|
|
1055
|
+
const installCmd = `npm install "${packageSpec}"`;
|
|
1057
1056
|
try {
|
|
1058
1057
|
execSync(installCmd, {
|
|
1059
|
-
stdio: "
|
|
1058
|
+
stdio: "inherit",
|
|
1060
1059
|
cwd: cacheDir
|
|
1061
1060
|
});
|
|
1062
1061
|
} catch (error) {
|
|
1063
1062
|
const message = error instanceof Error ? error.message : String(error);
|
|
1064
|
-
throw new Error(`Failed to install npm package '${packageSpec}'
|
|
1063
|
+
throw new Error(`Failed to install npm package '${packageSpec}': ${message}`);
|
|
1065
1064
|
}
|
|
1066
1065
|
}
|
|
1067
1066
|
async function installGitPackage(spec, cacheDir) {
|