@rely-ai/caliber 1.19.1 → 1.19.2

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 +15 -18
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1382,15 +1382,11 @@ 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 = IS_WINDOWS2 ? spawn2([CLAUDE_CLI_BIN, ...args].join(" "), {
1385
+ const child = spawn2(CLAUDE_CLI_BIN, args, {
1386
1386
  cwd: process.cwd(),
1387
1387
  stdio: ["pipe", "pipe", "inherit"],
1388
1388
  env: process.env,
1389
- shell: true
1390
- }) : spawn2(CLAUDE_CLI_BIN, args, {
1391
- cwd: process.cwd(),
1392
- stdio: ["pipe", "pipe", "inherit"],
1393
- env: process.env
1389
+ ...IS_WINDOWS2 && { shell: true }
1394
1390
  });
1395
1391
  child.stdin.end(combined);
1396
1392
  let settled = false;
@@ -1450,15 +1446,11 @@ ${msg.content}
1450
1446
  return new Promise((resolve2, reject) => {
1451
1447
  const args = ["-p"];
1452
1448
  if (model) args.push("--model", model);
1453
- const child = IS_WINDOWS2 ? spawn2([CLAUDE_CLI_BIN, ...args].join(" "), {
1449
+ const child = spawn2(CLAUDE_CLI_BIN, args, {
1454
1450
  cwd: process.cwd(),
1455
1451
  stdio: ["pipe", "pipe", "inherit"],
1456
1452
  env: process.env,
1457
- shell: true
1458
- }) : spawn2(CLAUDE_CLI_BIN, args, {
1459
- cwd: process.cwd(),
1460
- stdio: ["pipe", "pipe", "inherit"],
1461
- env: process.env
1453
+ ...IS_WINDOWS2 && { shell: true }
1462
1454
  });
1463
1455
  child.stdin.end(combinedPrompt);
1464
1456
  const chunks = [];
@@ -3208,13 +3200,18 @@ function openDiffsInEditor(editor, files) {
3208
3200
  const cmd = editor === "cursor" ? "cursor" : "code";
3209
3201
  for (const file of files) {
3210
3202
  try {
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();
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();
3215
3209
  } else {
3216
- const args = file.originalPath ? ["--diff", file.originalPath, file.proposedPath] : [file.proposedPath];
3217
- spawn3(cmd, args, { stdio: "ignore", detached: true }).unref();
3210
+ spawn3(cmd, [file.proposedPath], {
3211
+ stdio: "ignore",
3212
+ detached: true,
3213
+ ...IS_WINDOWS3 && { shell: true }
3214
+ }).unref();
3218
3215
  }
3219
3216
  } catch {
3220
3217
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.19.1",
3
+ "version": "1.19.2",
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": {