opencara 0.18.1 → 0.18.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.
- package/dist/index.js +12 -7
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -814,11 +814,16 @@ To authenticate, visit: ${initData.verification_uri}`);
|
|
|
814
814
|
if (Date.now() >= deadline) {
|
|
815
815
|
break;
|
|
816
816
|
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
817
|
+
let tokenRes;
|
|
818
|
+
try {
|
|
819
|
+
tokenRes = await fetchFn(`${platformUrl}/api/auth/device/token`, {
|
|
820
|
+
method: "POST",
|
|
821
|
+
headers: { "Content-Type": "application/json" },
|
|
822
|
+
body: JSON.stringify({ device_code: initData.device_code })
|
|
823
|
+
});
|
|
824
|
+
} catch {
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
822
827
|
if (!tokenRes.ok) {
|
|
823
828
|
try {
|
|
824
829
|
await tokenRes.text();
|
|
@@ -3578,7 +3583,7 @@ function sleep2(ms, signal) {
|
|
|
3578
3583
|
async function startAgent(agentId, platformUrl, agentInfo, reviewDeps, consumptionDeps, options) {
|
|
3579
3584
|
const client = new ApiClient(platformUrl, {
|
|
3580
3585
|
authToken: options?.authToken,
|
|
3581
|
-
cliVersion: "0.18.
|
|
3586
|
+
cliVersion: "0.18.2",
|
|
3582
3587
|
versionOverride: options?.versionOverride,
|
|
3583
3588
|
onTokenRefresh: options?.onTokenRefresh
|
|
3584
3589
|
});
|
|
@@ -4558,7 +4563,7 @@ var statusCommand = new Command4("status").description("Show agent config, conne
|
|
|
4558
4563
|
});
|
|
4559
4564
|
|
|
4560
4565
|
// src/index.ts
|
|
4561
|
-
var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version("0.18.
|
|
4566
|
+
var program = new Command5().name("opencara").description("OpenCara \u2014 distributed AI code review agent").version("0.18.2");
|
|
4562
4567
|
program.addCommand(agentCommand);
|
|
4563
4568
|
program.addCommand(authCommand());
|
|
4564
4569
|
program.addCommand(dedupCommand());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencara",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
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",
|
|
@@ -30,10 +30,13 @@
|
|
|
30
30
|
"node": ">=20"
|
|
31
31
|
},
|
|
32
32
|
"bin": {
|
|
33
|
-
"opencara": "dist/index.js"
|
|
33
|
+
"opencara": "dist/index.js",
|
|
34
|
+
"opencara-codex-agent": "bin/opencara-codex-agent",
|
|
35
|
+
"opencara-gemini-agent": "bin/opencara-gemini-agent"
|
|
34
36
|
},
|
|
35
37
|
"files": [
|
|
36
38
|
"dist",
|
|
39
|
+
"bin",
|
|
37
40
|
"README.md"
|
|
38
41
|
],
|
|
39
42
|
"scripts": {
|