@rely-ai/caliber 1.46.0 → 1.46.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 +38 -6
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -346,6 +346,10 @@ grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "hook-active" || ech
346
346
  2. Run: \`${bin} refresh && git add ${MANAGED_DOC_PATHS} 2>/dev/null\`
347
347
  3. After it completes, briefly tell the user what Caliber updated. Then proceed with the commit.
348
348
 
349
+ **Valid \`${bin} refresh\` options:** \`--quiet\` (suppress output) and \`--dry-run\` (preview without writing). Do not pass any other flags \u2014 options like \`--auto-approve\`, \`--debug\`, or \`--force\` do not exist and will cause errors.
350
+
351
+ **\`${bin} config\`** takes no flags \u2014 it runs an interactive provider setup. Do not pass \`--provider\`, \`--api-key\`, or \`--endpoint\`.
352
+
349
353
  ${getCaliberNotFoundFallback(platform, bin)}
350
354
  ${BLOCK_END}`;
351
355
  }
@@ -361,6 +365,9 @@ Run: \`grep -q "caliber" .git/hooks/pre-commit 2>/dev/null && echo "hook-active"
361
365
  If hook-active: just commit normally \u2014 Caliber syncs automatically via the hook. Tell the user: "Caliber will sync your agent configs automatically."
362
366
  If no-hook: run \`${bin} refresh && git add ${MANAGED_DOC_PATHS} 2>/dev/null\` before committing, and tell the user what was updated.
363
367
 
368
+ Valid \`${bin} refresh\` options: \`--quiet\` and \`--dry-run\` only. Do not pass \`--auto-approve\`, \`--debug\`, \`--force\`, or any other flags.
369
+ \`${bin} config\` takes no flags \u2014 it is interactive. Do not pass \`--provider\`, \`--api-key\`, or \`--endpoint\`.
370
+
364
371
  If \`${bin}\` is not found, read the setup-caliber skill from .cursor/skills/setup-caliber/SKILL.md and follow its instructions to install Caliber.
365
372
  `;
366
373
  }
@@ -10414,11 +10421,27 @@ function detectAgents(dir) {
10414
10421
  }
10415
10422
  async function promptAgent(detected) {
10416
10423
  const choices = [
10417
- { name: "Claude Code", value: "claude", checked: detected?.includes("claude") ?? false },
10424
+ {
10425
+ name: "Claude Code",
10426
+ value: "claude",
10427
+ checked: detected?.includes("claude") ?? false
10428
+ },
10418
10429
  { name: "Cursor", value: "cursor", checked: detected?.includes("cursor") ?? false },
10419
- { name: "Codex (OpenAI)", value: "codex", checked: detected?.includes("codex") ?? false },
10420
- { name: "OpenCode", value: "opencode", checked: detected?.includes("opencode") ?? false },
10421
- { name: "GitHub Copilot", value: "github-copilot", checked: detected?.includes("github-copilot") ?? false }
10430
+ {
10431
+ name: "Codex (OpenAI)",
10432
+ value: "codex",
10433
+ checked: detected?.includes("codex") ?? false
10434
+ },
10435
+ {
10436
+ name: "OpenCode",
10437
+ value: "opencode",
10438
+ checked: detected?.includes("opencode") ?? false
10439
+ },
10440
+ {
10441
+ name: "GitHub Copilot (sync target \u2014 writes copilot-instructions.md)",
10442
+ value: "github-copilot",
10443
+ checked: detected?.includes("github-copilot") ?? false
10444
+ }
10422
10445
  ];
10423
10446
  const hasDefaults = detected && detected.length > 0;
10424
10447
  const message = hasDefaults ? "Detected agents (press Enter to confirm, or toggle with space)" : "Which coding agents do you use? (toggle with space)";
@@ -10506,7 +10529,9 @@ async function refineLoop(currentSetup, sessionHistory, summarizeSetup2, printSu
10506
10529
  console.log(chalk10.dim('Type "done" to accept, or describe more changes.'));
10507
10530
  } else {
10508
10531
  refineSpinner.fail("Refinement failed \u2014 could not parse AI response.");
10509
- console.log(chalk10.dim('Try rephrasing your request, or type "done" to keep the current config.'));
10532
+ console.log(
10533
+ chalk10.dim('Try rephrasing your request, or type "done" to keep the current config.')
10534
+ );
10510
10535
  }
10511
10536
  }
10512
10537
  }
@@ -11065,6 +11090,13 @@ async function initCommand(options) {
11065
11090
  console.log(chalk13.dim(` Target: ${targetAgent.join(", ")}
11066
11091
  `));
11067
11092
  trackInitAgentSelected(targetAgent, agentAutoDetected);
11093
+ if (targetAgent.length === 1 && targetAgent[0] === "github-copilot") {
11094
+ console.log(
11095
+ chalk13.yellow(
11096
+ " Note: GitHub Copilot is a sync target \u2014 Caliber writes .github/copilot-instructions.md\n but needs an LLM provider (configured above) to power generation.\n For the best experience, also select claude or cursor as a target agent.\n"
11097
+ )
11098
+ );
11099
+ }
11068
11100
  console.log(title.bold(" Step 2/4 \u2014 Setup\n"));
11069
11101
  console.log(chalk13.dim(" Installing sync infrastructure...\n"));
11070
11102
  const hookResult = installPreCommitHook();
@@ -15083,7 +15115,7 @@ function parseAgentOption(value) {
15083
15115
  }
15084
15116
  program.command("init").description("Initialize your project for AI-assisted development").option(
15085
15117
  "--agent <type>",
15086
- "Target agents (comma-separated): claude, cursor, codex, opencode, github-copilot",
15118
+ "Target agents (comma-separated): claude, cursor, codex, opencode, github-copilot. Note: github-copilot is a sync target only \u2014 requires another provider for generation",
15087
15119
  parseAgentOption
15088
15120
  ).option("--source <paths...>", "Related source paths to include as context").option("--dry-run", "Preview changes without writing files").option("--force", "Overwrite existing config without prompting").option("--debug-report", void 0, false).option("--show-tokens", "Show token usage summary at the end").option("--auto-approve", "Run without interactive prompts (auto-accept all)").option("--verbose", "Show detailed logs of each step").option("--thorough", "Deep analysis \u2014 more refinement passes for maximum quality").action(tracked("init", initCommand));
15089
15121
  program.command("bootstrap").description(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "AI context infrastructure for coding agents — keeps CLAUDE.md, Cursor rules, and skills in sync as your codebase evolves",
5
5
  "type": "module",
6
6
  "bin": {