opencara 0.22.6 → 0.22.7
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.
- package/dist/index.js +11 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3929,7 +3929,7 @@ function commitAndPush(worktreePath, issueNumber, issueTitle) {
|
|
|
3929
3929
|
gitExec2([...credArgs, "push", "-u", "origin", "HEAD"], worktreePath);
|
|
3930
3930
|
return filesChanged;
|
|
3931
3931
|
}
|
|
3932
|
-
function createPR(worktreePath, issueNumber, issueTitle, summary) {
|
|
3932
|
+
function createPR(worktreePath, issueNumber, issueTitle, summary, branchName) {
|
|
3933
3933
|
const title = `Implement #${issueNumber}: ${issueTitle}`;
|
|
3934
3934
|
const body = [
|
|
3935
3935
|
`Part of #${issueNumber}`,
|
|
@@ -3940,7 +3940,11 @@ function createPR(worktreePath, issueNumber, issueTitle, summary) {
|
|
|
3940
3940
|
"---",
|
|
3941
3941
|
"*Automated by OpenCara implement agent*"
|
|
3942
3942
|
].join("\n");
|
|
3943
|
-
const
|
|
3943
|
+
const args = ["pr", "create", "--title", title, "--body", body];
|
|
3944
|
+
if (branchName) {
|
|
3945
|
+
args.push("--head", branchName);
|
|
3946
|
+
}
|
|
3947
|
+
const output = ghExec(args, worktreePath);
|
|
3944
3948
|
const prUrl = output.trim().split("\n").pop()?.trim() ?? "";
|
|
3945
3949
|
const prNumberMatch = prUrl.match(/\/pull\/(\d+)/);
|
|
3946
3950
|
if (!prNumberMatch) {
|
|
@@ -4011,7 +4015,7 @@ async function executeImplementTask(client, agentId, task, deps, timeoutSeconds,
|
|
|
4011
4015
|
const filesChanged = gitOps.commitAndPush(worktreePath, issueNumber, issueTitle);
|
|
4012
4016
|
logger.log(` Pushed ${filesChanged} file(s) to ${branchName}`);
|
|
4013
4017
|
logger.log(" Creating pull request...");
|
|
4014
|
-
const pr = gitOps.createPR(worktreePath, issueNumber, issueTitle, aiResult.output.summary);
|
|
4018
|
+
const pr = gitOps.createPR(worktreePath, issueNumber, issueTitle, aiResult.output.summary, branchName);
|
|
4015
4019
|
logger.log(` PR #${pr.prNumber} created: ${pr.prUrl}`);
|
|
4016
4020
|
const report = {
|
|
4017
4021
|
branch: branchName,
|
|
@@ -5527,7 +5531,7 @@ function sleep2(ms, signal) {
|
|
|
5527
5531
|
async function startAgent(agentId, platformUrl, agentInfo, reviewDeps, consumptionDeps, options) {
|
|
5528
5532
|
const client = new ApiClient(platformUrl, {
|
|
5529
5533
|
authToken: options?.authToken,
|
|
5530
|
-
cliVersion: "0.22.
|
|
5534
|
+
cliVersion: "0.22.7",
|
|
5531
5535
|
versionOverride: options?.versionOverride,
|
|
5532
5536
|
onTokenRefresh: options?.onTokenRefresh
|
|
5533
5537
|
});
|
|
@@ -5813,7 +5817,7 @@ async function startBatchAgents(config, agents, pollIntervalMs, oauthToken, opti
|
|
|
5813
5817
|
const { versionOverride, verbose, instancesOverride, agentOwner, userOrgs } = options;
|
|
5814
5818
|
const client = new ApiClient(config.platformUrl, {
|
|
5815
5819
|
authToken: oauthToken,
|
|
5816
|
-
cliVersion: "0.22.
|
|
5820
|
+
cliVersion: "0.22.7",
|
|
5817
5821
|
versionOverride,
|
|
5818
5822
|
onTokenRefresh: () => getValidToken(config.platformUrl, { configPath: config.authFile })
|
|
5819
5823
|
});
|
|
@@ -6156,7 +6160,7 @@ agentCommand.command("start").description("Start agents in polling mode").option
|
|
|
6156
6160
|
}
|
|
6157
6161
|
config = loadConfig();
|
|
6158
6162
|
}
|
|
6159
|
-
console.log(formatVersionBanner("0.22.
|
|
6163
|
+
console.log(formatVersionBanner("0.22.7", "6ac9177"));
|
|
6160
6164
|
if (config.agents && config.agents.length > 0) {
|
|
6161
6165
|
const toolEntries = config.agents.map((a) => ({
|
|
6162
6166
|
tool: a.tool,
|
|
@@ -6979,7 +6983,7 @@ var statusCommand = new Command4("status").description("Show agent config, conne
|
|
|
6979
6983
|
});
|
|
6980
6984
|
|
|
6981
6985
|
// src/index.ts
|
|
6982
|
-
var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version(`${"0.22.
|
|
6986
|
+
var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version(`${"0.22.7"} (${"6ac9177"})`);
|
|
6983
6987
|
program.addCommand(agentCommand);
|
|
6984
6988
|
program.addCommand(authCommand());
|
|
6985
6989
|
program.addCommand(dedupCommand());
|