@agentvault/agentvault 0.19.62 → 0.19.64

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 CHANGED
@@ -88763,18 +88763,22 @@ async function runCreateCommand(options) {
88763
88763
  \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D
88764
88764
  `);
88765
88765
  console.log(" Step 1/7 \u2014 Preflight checks...");
88766
+ const userHome = process.env.HOME ?? process.env.USERPROFILE ?? "";
88766
88767
  const extraPaths = [
88767
- `${home}/.local/bin`,
88768
- `${home}/.pnpm/bin`,
88769
- `${home}/Library/pnpm/bin`,
88768
+ `${userHome}/.local/bin`,
88769
+ `${userHome}/.pnpm/bin`,
88770
+ `${userHome}/Library/pnpm/bin`,
88770
88771
  "/usr/local/bin",
88771
88772
  "/opt/homebrew/bin"
88772
88773
  ].join(":");
88773
88774
  const env = { ...process.env, PATH: `${extraPaths}:${process.env.PATH ?? ""}` };
88774
88775
  try {
88775
- execSync("openclaw --version", { stdio: "pipe", env });
88776
- } catch {
88777
- console.error(" Error: 'openclaw' not found in PATH. Is OpenClaw installed?");
88776
+ const result = execSync("openclaw --version", { stdio: "pipe", env });
88777
+ console.log(` OpenClaw found: ${result?.toString().trim()}`);
88778
+ } catch (err) {
88779
+ console.error(` Error: 'openclaw' not found in PATH. Is OpenClaw installed?`);
88780
+ console.error(` Debug \u2014 PATH includes: ${env.PATH?.split(":").filter((p2) => p2.includes("local")).join(", ")}`);
88781
+ console.error(` Debug \u2014 error: ${err?.message?.slice(0, 200)}`);
88778
88782
  process.exit(1);
88779
88783
  }
88780
88784
  if (!existsSync2(configPath)) {