soulhubcli 1.0.17 → 1.0.19
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/index.cjs +17 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19834,7 +19834,13 @@ async function installSingleAgent(name, targetDir, clawDir, asMain = false) {
|
|
|
19834
19834
|
spinner.text = `Downloading ${source_default.cyan(agent.displayName)} package...`;
|
|
19835
19835
|
const pkgDir = await downloadAgentPackage(name, agent.version);
|
|
19836
19836
|
spinner.succeed(`Package ${source_default.cyan(agent.displayName)} downloaded.`);
|
|
19837
|
+
const showClawHeader = allClawDirs.length > 1;
|
|
19837
19838
|
for (const selectedClawDir of allClawDirs) {
|
|
19839
|
+
if (showClawHeader) {
|
|
19840
|
+
const brand = detectClawBrand(selectedClawDir);
|
|
19841
|
+
console.log();
|
|
19842
|
+
console.log(source_default.bold(`\u2500\u2500 ${brand} (${selectedClawDir}) \u2500\u2500`));
|
|
19843
|
+
}
|
|
19838
19844
|
await installSingleAgentToClaw(name, selectedClawDir, void 0, asMain, pkgDir, agent);
|
|
19839
19845
|
}
|
|
19840
19846
|
import_node_fs9.default.rmSync(pkgDir, { recursive: true, force: true });
|
|
@@ -19911,7 +19917,7 @@ async function installSingleAgentToClaw(name, selectedClawDir, targetDir, asMain
|
|
|
19911
19917
|
addAgentToOpenClawConfig(selectedClawDir, "main", name, true);
|
|
19912
19918
|
} else {
|
|
19913
19919
|
spinner.text = `Registering ${source_default.cyan(agent.displayName)} as worker agent...`;
|
|
19914
|
-
const regResult = registerAgentToOpenClaw(agentId, workspaceDir);
|
|
19920
|
+
const regResult = registerAgentToOpenClaw(agentId, workspaceDir, selectedClawDir || void 0);
|
|
19915
19921
|
if (!regResult.success) {
|
|
19916
19922
|
spinner.fail(`Failed to register ${agentId}: ${regResult.message}`);
|
|
19917
19923
|
return;
|
|
@@ -20120,7 +20126,13 @@ async function installSingleAgentFromDir(packageDir, targetDir, clawDir, asMain
|
|
|
20120
20126
|
printOpenClawInstallHelp();
|
|
20121
20127
|
return;
|
|
20122
20128
|
}
|
|
20129
|
+
const showClawHeader = allClawDirs.length > 1;
|
|
20123
20130
|
for (const selectedClawDir of allClawDirs) {
|
|
20131
|
+
if (showClawHeader) {
|
|
20132
|
+
const brand = detectClawBrand(selectedClawDir);
|
|
20133
|
+
console.log();
|
|
20134
|
+
console.log(source_default.bold(`\u2500\u2500 ${brand} (${selectedClawDir}) \u2500\u2500`));
|
|
20135
|
+
}
|
|
20124
20136
|
await installSingleAgentFromDirToClaw(packageDir, agentName, pkg, selectedClawDir, void 0, asMain);
|
|
20125
20137
|
}
|
|
20126
20138
|
}
|
|
@@ -20179,7 +20191,7 @@ async function installSingleAgentFromDirToClaw(packageDir, agentName, pkg, selec
|
|
|
20179
20191
|
addAgentToOpenClawConfig(selectedClawDir, "main", agentName, true);
|
|
20180
20192
|
} else {
|
|
20181
20193
|
spinner.text = `Registering ${source_default.cyan(agentName)} as worker agent...`;
|
|
20182
|
-
const regResult = registerAgentToOpenClaw(agentId, workspaceDir);
|
|
20194
|
+
const regResult = registerAgentToOpenClaw(agentId, workspaceDir, selectedClawDir || void 0);
|
|
20183
20195
|
if (!regResult.success) {
|
|
20184
20196
|
spinner.fail(`Failed to register ${agentId}: ${regResult.message}`);
|
|
20185
20197
|
return;
|
|
@@ -20417,10 +20429,7 @@ async function tryRestartGateway() {
|
|
|
20417
20429
|
if (result.success) {
|
|
20418
20430
|
restartSpinner.succeed(`${brandName} Gateway restarted successfully.`);
|
|
20419
20431
|
} else {
|
|
20420
|
-
restartSpinner.warn(`Failed to restart ${brandName} Gateway.`);
|
|
20421
|
-
console.log(source_default.yellow(` Reason: ${result.message}`));
|
|
20422
|
-
console.log(source_default.dim(" Please restart manually:"));
|
|
20423
|
-
console.log(source_default.dim(` ${clawCmd} gateway restart`));
|
|
20432
|
+
restartSpinner.warn(`Failed to restart ${brandName} Gateway. Please restart it manually.`);
|
|
20424
20433
|
}
|
|
20425
20434
|
}
|
|
20426
20435
|
|
|
@@ -20706,13 +20715,13 @@ function formatInstallType(type2) {
|
|
|
20706
20715
|
|
|
20707
20716
|
// src/index.ts
|
|
20708
20717
|
var program2 = new Command();
|
|
20709
|
-
program2.name("soulhub").description("SoulHub CLI - Discover, install and manage AI agent souls").version("1.0.
|
|
20718
|
+
program2.name("soulhub").description("SoulHub CLI - Discover, install and manage AI agent souls").version("1.0.19").option("--verbose", "Enable verbose debug logging").hook("preAction", () => {
|
|
20710
20719
|
const opts = program2.opts();
|
|
20711
20720
|
const verbose = opts.verbose || process.env.SOULHUB_DEBUG === "1";
|
|
20712
20721
|
logger.init(verbose);
|
|
20713
20722
|
logger.info("CLI started", {
|
|
20714
20723
|
args: process.argv.slice(2),
|
|
20715
|
-
version: "1.0.
|
|
20724
|
+
version: "1.0.19",
|
|
20716
20725
|
node: process.version
|
|
20717
20726
|
});
|
|
20718
20727
|
});
|