opencara 0.22.5 → 0.22.6

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