opencara 0.22.4 → 0.22.5

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 +12 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3949,6 +3949,12 @@ function createPR(worktreePath, issueNumber, issueTitle, summary) {
3949
3949
  const prNumber = parseInt(prNumberMatch[1], 10);
3950
3950
  return { prNumber, prUrl };
3951
3951
  }
3952
+ function ensurePromptViaArg(commandTemplate) {
3953
+ if (commandTemplate.includes("${PROMPT}")) return commandTemplate;
3954
+ const binaryName = commandTemplate.trim().split(/\s+/)[0];
3955
+ if (binaryName !== "claude") return commandTemplate;
3956
+ return commandTemplate + " -p '${PROMPT}'";
3957
+ }
3952
3958
  async function executeImplement(task, worktreePath, deps, timeoutSeconds, signal, runTool = executeTool) {
3953
3959
  const timeoutMs = timeoutSeconds * 1e3;
3954
3960
  if (timeoutMs <= TIMEOUT_SAFETY_MARGIN_MS6) {
@@ -3956,8 +3962,9 @@ async function executeImplement(task, worktreePath, deps, timeoutSeconds, signal
3956
3962
  }
3957
3963
  const effectiveTimeout = timeoutMs - TIMEOUT_SAFETY_MARGIN_MS6;
3958
3964
  const prompt2 = buildImplementPrompt(task);
3965
+ const effectiveCommand = ensurePromptViaArg(deps.commandTemplate);
3959
3966
  const result = await runTool(
3960
- deps.commandTemplate,
3967
+ effectiveCommand,
3961
3968
  prompt2,
3962
3969
  effectiveTimeout,
3963
3970
  signal,
@@ -5527,7 +5534,7 @@ function sleep2(ms, signal) {
5527
5534
  async function startAgent(agentId, platformUrl, agentInfo, reviewDeps, consumptionDeps, options) {
5528
5535
  const client = new ApiClient(platformUrl, {
5529
5536
  authToken: options?.authToken,
5530
- cliVersion: "0.22.4",
5537
+ cliVersion: "0.22.5",
5531
5538
  versionOverride: options?.versionOverride,
5532
5539
  onTokenRefresh: options?.onTokenRefresh
5533
5540
  });
@@ -5813,7 +5820,7 @@ async function startBatchAgents(config, agents, pollIntervalMs, oauthToken, opti
5813
5820
  const { versionOverride, verbose, instancesOverride, agentOwner, userOrgs } = options;
5814
5821
  const client = new ApiClient(config.platformUrl, {
5815
5822
  authToken: oauthToken,
5816
- cliVersion: "0.22.4",
5823
+ cliVersion: "0.22.5",
5817
5824
  versionOverride,
5818
5825
  onTokenRefresh: () => getValidToken(config.platformUrl, { configPath: config.authFile })
5819
5826
  });
@@ -6156,7 +6163,7 @@ agentCommand.command("start").description("Start agents in polling mode").option
6156
6163
  }
6157
6164
  config = loadConfig();
6158
6165
  }
6159
- console.log(formatVersionBanner("0.22.4", "d9e98a4"));
6166
+ console.log(formatVersionBanner("0.22.5", "dd7af5e"));
6160
6167
  if (config.agents && config.agents.length > 0) {
6161
6168
  const toolEntries = config.agents.map((a) => ({
6162
6169
  tool: a.tool,
@@ -6979,7 +6986,7 @@ var statusCommand = new Command4("status").description("Show agent config, conne
6979
6986
  });
6980
6987
 
6981
6988
  // src/index.ts
6982
- var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version(`${"0.22.4"} (${"d9e98a4"})`);
6989
+ var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version(`${"0.22.5"} (${"dd7af5e"})`);
6983
6990
  program.addCommand(agentCommand);
6984
6991
  program.addCommand(authCommand());
6985
6992
  program.addCommand(dedupCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencara",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Distributed AI code review agent — poll, review, and submit PR reviews using your own AI tools",
5
5
  "type": "module",
6
6
  "license": "MIT",