soulhubcli 1.0.11 → 1.0.12
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 +15 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19023,6 +19023,12 @@ function copyAgentFilesFromPackage(packageDir, targetDir) {
|
|
|
19023
19023
|
import_node_fs8.default.copyFileSync(sourcePath, import_node_path11.default.join(targetDir, destName));
|
|
19024
19024
|
}
|
|
19025
19025
|
}
|
|
19026
|
+
const skillsSource = import_node_path11.default.join(packageDir, "skills");
|
|
19027
|
+
if (import_node_fs8.default.existsSync(skillsSource) && import_node_fs8.default.statSync(skillsSource).isDirectory()) {
|
|
19028
|
+
const skillsTarget = import_node_path11.default.join(targetDir, "skills");
|
|
19029
|
+
import_node_fs8.default.cpSync(skillsSource, skillsTarget, { recursive: true });
|
|
19030
|
+
logger.debug(`Skills directory copied`, { from: skillsSource, to: skillsTarget });
|
|
19031
|
+
}
|
|
19026
19032
|
}
|
|
19027
19033
|
function findOpenClawDir(customDir) {
|
|
19028
19034
|
if (customDir) {
|
|
@@ -20131,13 +20137,19 @@ async function installTeamFromDir(packageDir, targetDir, clawDir) {
|
|
|
20131
20137
|
}
|
|
20132
20138
|
function copyAgentFilesFromDir(sourceDir, targetDir) {
|
|
20133
20139
|
const filesToCopy = ["IDENTITY.md", "SOUL.md", "USER.md", "TOOLS.md", "AGENTS.md", "HEARTBEAT.md"];
|
|
20140
|
+
import_node_fs9.default.mkdirSync(targetDir, { recursive: true });
|
|
20134
20141
|
for (const fileName of filesToCopy) {
|
|
20135
20142
|
const sourcePath = import_node_path12.default.join(sourceDir, fileName);
|
|
20136
20143
|
if (import_node_fs9.default.existsSync(sourcePath)) {
|
|
20137
|
-
import_node_fs9.default.mkdirSync(targetDir, { recursive: true });
|
|
20138
20144
|
import_node_fs9.default.copyFileSync(sourcePath, import_node_path12.default.join(targetDir, fileName));
|
|
20139
20145
|
}
|
|
20140
20146
|
}
|
|
20147
|
+
const skillsSource = import_node_path12.default.join(sourceDir, "skills");
|
|
20148
|
+
if (import_node_fs9.default.existsSync(skillsSource) && import_node_fs9.default.statSync(skillsSource).isDirectory()) {
|
|
20149
|
+
const skillsTarget = import_node_path12.default.join(targetDir, "skills");
|
|
20150
|
+
import_node_fs9.default.cpSync(skillsSource, skillsTarget, { recursive: true });
|
|
20151
|
+
logger.debug(`Skills directory copied`, { from: skillsSource, to: skillsTarget });
|
|
20152
|
+
}
|
|
20141
20153
|
}
|
|
20142
20154
|
async function installDispatcher(dispatcher, resolvedClawDir, clawDir, targetDir, spinner, backupRecord) {
|
|
20143
20155
|
const mainWorkspace = targetDir ? import_node_path12.default.join(resolvedClawDir, "workspace") : getMainWorkspaceDir(resolvedClawDir);
|
|
@@ -20500,13 +20512,13 @@ function formatInstallType(type2) {
|
|
|
20500
20512
|
|
|
20501
20513
|
// src/index.ts
|
|
20502
20514
|
var program2 = new Command();
|
|
20503
|
-
program2.name("soulhub").description("SoulHub CLI - Install and manage AI agent persona templates").version("1.0.
|
|
20515
|
+
program2.name("soulhub").description("SoulHub CLI - Install and manage AI agent persona templates").version("1.0.12").option("--verbose", "Enable verbose debug logging").hook("preAction", () => {
|
|
20504
20516
|
const opts = program2.opts();
|
|
20505
20517
|
const verbose = opts.verbose || process.env.SOULHUB_DEBUG === "1";
|
|
20506
20518
|
logger.init(verbose);
|
|
20507
20519
|
logger.info("CLI started", {
|
|
20508
20520
|
args: process.argv.slice(2),
|
|
20509
|
-
version: "1.0.
|
|
20521
|
+
version: "1.0.12",
|
|
20510
20522
|
node: process.version
|
|
20511
20523
|
});
|
|
20512
20524
|
});
|