clawmarketbot 0.1.10 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -29
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -743,8 +743,7 @@ async function runCommand(command, args, options = {}) {
743
743
  return new Promise((resolve, reject) => {
744
744
  const child = spawn(command, args, {
745
745
  cwd: options.cwd,
746
- stdio: options.stdio === "inherit" ? "inherit" : "pipe",
747
- env: options.env
746
+ stdio: options.stdio === "inherit" ? "inherit" : "pipe"
748
747
  });
749
748
  let stdout = "";
750
749
  let stderr = "";
@@ -1077,8 +1076,8 @@ async function commitInstallTransaction(input2) {
1077
1076
  await fs5.mkdir(path4.dirname(input2.workspacePath), { recursive: true });
1078
1077
  await fs5.rename(input2.stagedWorkspacePath, input2.workspacePath);
1079
1078
  movedWorkspace = true;
1080
- await fs5.mkdir(path4.dirname(input2.agentDirPath), { recursive: true });
1081
- await fs5.rename(input2.stagedAgentDirPath, input2.agentDirPath);
1079
+ await fs5.mkdir(path4.dirname(input2.agentRootPath), { recursive: true });
1080
+ await fs5.rename(input2.stagedAgentDirPath, input2.agentRootPath);
1082
1081
  movedAgentDir = true;
1083
1082
  if (input2.memoryDbStagedPath && input2.memoryDbTargetPath && await fileExists(input2.memoryDbStagedPath)) {
1084
1083
  await fs5.mkdir(path4.dirname(input2.memoryDbTargetPath), { recursive: true });
@@ -1370,30 +1369,6 @@ function registerConfigCommands(program2) {
1370
1369
  memoryDbTargetPath: installPaths.targetMemoryDb
1371
1370
  });
1372
1371
  await setupApiKeysFromConfig(botConfig, context.paths.configPath, context.paths.envPath);
1373
- const installerShPath = path4.join(sourceBase, "installer.sh");
1374
- if (await fileExists(installerShPath)) {
1375
- if (botConfig.agent?.id) {
1376
- console.log("\nSkipping installer.sh \u2014 bot-config.json agent declaration handled by CLI.");
1377
- } else {
1378
- console.log("\nRunning post-install hook (installer.sh)...");
1379
- const hookPath = path4.join(sourceRoot, "_clawmarket_installer.sh");
1380
- await fs5.copyFile(installerShPath, hookPath);
1381
- await runCommand("bash", [hookPath, context.paths.stateDir], {
1382
- cwd: sourceRoot,
1383
- stdio: "inherit",
1384
- env: {
1385
- ...process.env,
1386
- CLAWMARKET_CLI_INSTALL: "1",
1387
- CLAWMARKET_AGENT_ID: agentId,
1388
- CLAWMARKET_AGENT_NAME: agentName,
1389
- CLAWMARKET_WORKSPACE: installPaths.targetWorkspace,
1390
- CLAWMARKET_AGENT_ROOT: installPaths.targetAgentRoot,
1391
- CLAWMARKET_CONFIG_PATH: context.paths.configPath,
1392
- CLAWMARKET_STATE_DIR: context.paths.stateDir
1393
- }
1394
- });
1395
- }
1396
- }
1397
1372
  await validateInstalledWorkspace(installPaths.targetWorkspace, botConfig);
1398
1373
  const refreshed = await loadOpenClawContext();
1399
1374
  const installed = refreshed.agents.find((a) => a.id.toLowerCase() === agentId.toLowerCase());
@@ -1554,7 +1529,7 @@ function registerConfigCommands(program2) {
1554
1529
 
1555
1530
  // src/index.ts
1556
1531
  var program = new Command();
1557
- program.name("clawmarketbot").description("CLI tool for ClawMarket - discover, download, and install OpenClaw configs").version("0.1.10");
1532
+ program.name("clawmarketbot").description("CLI tool for ClawMarket - discover, download, and install OpenClaw configs").version("0.1.12");
1558
1533
  registerAuthCommands(program);
1559
1534
  registerConfigCommands(program);
1560
1535
  program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmarketbot",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "private": false,
5
5
  "description": "CLI tool for ClawMarket - discover, download, and install OpenClaw configs",
6
6
  "type": "module",