@rely-ai/caliber 1.19.0 → 1.19.1

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/bin.js +21 -16
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1382,11 +1382,15 @@ var ClaudeCliProvider = class {
1382
1382
  const combined = this.buildCombinedPrompt(options);
1383
1383
  const args = ["-p"];
1384
1384
  if (options.model) args.push("--model", options.model);
1385
- const child = spawn2(CLAUDE_CLI_BIN, args, {
1385
+ const child = IS_WINDOWS2 ? spawn2([CLAUDE_CLI_BIN, ...args].join(" "), {
1386
1386
  cwd: process.cwd(),
1387
1387
  stdio: ["pipe", "pipe", "inherit"],
1388
1388
  env: process.env,
1389
- ...IS_WINDOWS2 && { shell: true }
1389
+ shell: true
1390
+ }) : spawn2(CLAUDE_CLI_BIN, args, {
1391
+ cwd: process.cwd(),
1392
+ stdio: ["pipe", "pipe", "inherit"],
1393
+ env: process.env
1390
1394
  });
1391
1395
  child.stdin.end(combined);
1392
1396
  let settled = false;
@@ -1446,11 +1450,15 @@ ${msg.content}
1446
1450
  return new Promise((resolve2, reject) => {
1447
1451
  const args = ["-p"];
1448
1452
  if (model) args.push("--model", model);
1449
- const child = spawn2(CLAUDE_CLI_BIN, args, {
1453
+ const child = IS_WINDOWS2 ? spawn2([CLAUDE_CLI_BIN, ...args].join(" "), {
1450
1454
  cwd: process.cwd(),
1451
1455
  stdio: ["pipe", "pipe", "inherit"],
1452
1456
  env: process.env,
1453
- ...IS_WINDOWS2 && { shell: true }
1457
+ shell: true
1458
+ }) : spawn2(CLAUDE_CLI_BIN, args, {
1459
+ cwd: process.cwd(),
1460
+ stdio: ["pipe", "pipe", "inherit"],
1461
+ env: process.env
1454
1462
  });
1455
1463
  child.stdin.end(combinedPrompt);
1456
1464
  const chunks = [];
@@ -3200,18 +3208,13 @@ function openDiffsInEditor(editor, files) {
3200
3208
  const cmd = editor === "cursor" ? "cursor" : "code";
3201
3209
  for (const file of files) {
3202
3210
  try {
3203
- if (file.originalPath) {
3204
- spawn3(cmd, ["--diff", file.originalPath, file.proposedPath], {
3205
- stdio: "ignore",
3206
- detached: true,
3207
- ...IS_WINDOWS3 && { shell: true }
3208
- }).unref();
3211
+ if (IS_WINDOWS3) {
3212
+ const quote = (s) => `"${s}"`;
3213
+ const parts = file.originalPath ? [cmd, "--diff", quote(file.originalPath), quote(file.proposedPath)] : [cmd, quote(file.proposedPath)];
3214
+ spawn3(parts.join(" "), { shell: true, stdio: "ignore", detached: true }).unref();
3209
3215
  } else {
3210
- spawn3(cmd, [file.proposedPath], {
3211
- stdio: "ignore",
3212
- detached: true,
3213
- ...IS_WINDOWS3 && { shell: true }
3214
- }).unref();
3216
+ const args = file.originalPath ? ["--diff", file.originalPath, file.proposedPath] : [file.proposedPath];
3217
+ spawn3(cmd, args, { stdio: "ignore", detached: true }).unref();
3215
3218
  }
3216
3219
  } catch {
3217
3220
  continue;
@@ -8602,7 +8605,9 @@ acquireLock();
8602
8605
  if (process.env.CALIBER_LOCAL) {
8603
8606
  process.env.CALIBER_SKIP_UPDATE_CHECK = "1";
8604
8607
  }
8605
- var isQuickExit = ["--version", "-V", "--help", "-h"].some((f) => process.argv.includes(f));
8608
+ var userArgs = process.argv.slice(2);
8609
+ var hasCommand = userArgs.some((a) => !a.startsWith("-"));
8610
+ var isQuickExit = !hasCommand || ["--version", "-V", "--help", "-h"].some((f) => userArgs.includes(f));
8606
8611
  if (!isQuickExit) {
8607
8612
  await checkForUpdates();
8608
8613
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.19.0",
3
+ "version": "1.19.1",
4
4
  "description": "Analyze your codebase and generate optimized AI agent configs (CLAUDE.md, .cursorrules, skills) — no API key needed",
5
5
  "type": "module",
6
6
  "bin": {