@cortexkit/opencode-antigravity-auth 3.1.5 → 3.1.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/cli.js.map +1 -1
- package/dist/cli.meta.json +5 -5
- package/dist/index.js +19 -10
- package/dist/index.js.map +2 -2
- package/dist/index.meta.json +14 -14
- package/dist/server.js +20 -10
- package/dist/server.js.map +2 -2
- package/dist/server.meta.json +1 -1
- package/dist/src/ga/server/index.d.ts +1 -1
- package/dist/src/ga/server/index.d.ts.map +1 -1
- package/dist/src/ga/server/index.js +6 -0
- package/dist/src/ga/server/index.js.map +1 -1
- package/dist/src/plugin/request-helpers.js +3 -3
- package/dist/src/plugin/request-helpers.js.map +1 -1
- package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/src/plugin/shared/request-services.js +5 -2
- package/dist/src/plugin/shared/request-services.js.map +1 -1
- package/dist/types/src/ga/server/index.d.ts +1 -1
- package/dist/types/src/ga/server/index.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.meta.json
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"format": "esm"
|
|
121
121
|
},
|
|
122
122
|
"../core/dist/rotation.js": {
|
|
123
|
-
"bytes":
|
|
123
|
+
"bytes": 16236,
|
|
124
124
|
"imports": [],
|
|
125
125
|
"format": "esm"
|
|
126
126
|
},
|
|
@@ -2520,7 +2520,7 @@
|
|
|
2520
2520
|
"format": "esm"
|
|
2521
2521
|
},
|
|
2522
2522
|
"../core/dist/harness-identity.js": {
|
|
2523
|
-
"bytes":
|
|
2523
|
+
"bytes": 4769,
|
|
2524
2524
|
"imports": [],
|
|
2525
2525
|
"format": "esm"
|
|
2526
2526
|
},
|
|
@@ -2546,7 +2546,7 @@
|
|
|
2546
2546
|
"format": "esm"
|
|
2547
2547
|
},
|
|
2548
2548
|
"../core/dist/pre-response-deadline.js": {
|
|
2549
|
-
"bytes":
|
|
2549
|
+
"bytes": 5305,
|
|
2550
2550
|
"imports": [],
|
|
2551
2551
|
"format": "esm"
|
|
2552
2552
|
},
|
|
@@ -2750,7 +2750,7 @@
|
|
|
2750
2750
|
"format": "esm"
|
|
2751
2751
|
},
|
|
2752
2752
|
"../core/dist/vault-enrollment-authority.js": {
|
|
2753
|
-
"bytes":
|
|
2753
|
+
"bytes": 1214,
|
|
2754
2754
|
"imports": [
|
|
2755
2755
|
{
|
|
2756
2756
|
"path": "../core/dist/common-auth-runtime.js",
|
|
@@ -6540,7 +6540,7 @@
|
|
|
6540
6540
|
"format": "esm"
|
|
6541
6541
|
},
|
|
6542
6542
|
"src/plugin/request-helpers.ts": {
|
|
6543
|
-
"bytes":
|
|
6543
|
+
"bytes": 109133,
|
|
6544
6544
|
"imports": [
|
|
6545
6545
|
{
|
|
6546
6546
|
"path": "../core/dist/index.js",
|
|
@@ -7111,7 +7111,7 @@
|
|
|
7111
7111
|
"format": "esm"
|
|
7112
7112
|
},
|
|
7113
7113
|
"src/plugin/shared/request-services.ts": {
|
|
7114
|
-
"bytes":
|
|
7114
|
+
"bytes": 143641,
|
|
7115
7115
|
"imports": [
|
|
7116
7116
|
{
|
|
7117
7117
|
"path": "node:crypto",
|
|
@@ -7681,7 +7681,7 @@
|
|
|
7681
7681
|
"imports": [],
|
|
7682
7682
|
"exports": [],
|
|
7683
7683
|
"inputs": {},
|
|
7684
|
-
"bytes":
|
|
7684
|
+
"bytes": 5326952
|
|
7685
7685
|
},
|
|
7686
7686
|
"dist/index.js": {
|
|
7687
7687
|
"imports": [
|
|
@@ -9082,7 +9082,7 @@
|
|
|
9082
9082
|
"bytesInOutput": 18528
|
|
9083
9083
|
},
|
|
9084
9084
|
"../core/dist/rotation.js": {
|
|
9085
|
-
"bytesInOutput":
|
|
9085
|
+
"bytesInOutput": 12203
|
|
9086
9086
|
},
|
|
9087
9087
|
"../core/dist/account-selector.js": {
|
|
9088
9088
|
"bytesInOutput": 59930
|
|
@@ -9388,7 +9388,7 @@
|
|
|
9388
9388
|
"bytesInOutput": 8757
|
|
9389
9389
|
},
|
|
9390
9390
|
"../core/dist/harness-identity.js": {
|
|
9391
|
-
"bytesInOutput":
|
|
9391
|
+
"bytesInOutput": 4344
|
|
9392
9392
|
},
|
|
9393
9393
|
"../core/dist/model-types.js": {
|
|
9394
9394
|
"bytesInOutput": 93
|
|
@@ -9397,7 +9397,7 @@
|
|
|
9397
9397
|
"bytesInOutput": 572
|
|
9398
9398
|
},
|
|
9399
9399
|
"../core/dist/pre-response-deadline.js": {
|
|
9400
|
-
"bytesInOutput":
|
|
9400
|
+
"bytesInOutput": 4778
|
|
9401
9401
|
},
|
|
9402
9402
|
"../core/dist/project.js": {
|
|
9403
9403
|
"bytesInOutput": 8093
|
|
@@ -9436,7 +9436,7 @@
|
|
|
9436
9436
|
"bytesInOutput": 12539
|
|
9437
9437
|
},
|
|
9438
9438
|
"../core/dist/vault-enrollment-authority.js": {
|
|
9439
|
-
"bytesInOutput":
|
|
9439
|
+
"bytesInOutput": 606
|
|
9440
9440
|
},
|
|
9441
9441
|
"../core/dist/vault-folder-refusal.js": {
|
|
9442
9442
|
"bytesInOutput": 1465
|
|
@@ -9889,7 +9889,7 @@
|
|
|
9889
9889
|
"bytesInOutput": 626
|
|
9890
9890
|
},
|
|
9891
9891
|
"src/plugin/request-helpers.ts": {
|
|
9892
|
-
"bytesInOutput":
|
|
9892
|
+
"bytesInOutput": 65707
|
|
9893
9893
|
},
|
|
9894
9894
|
"src/plugin/thinking-recovery.ts": {
|
|
9895
9895
|
"bytesInOutput": 4816
|
|
@@ -9946,7 +9946,7 @@
|
|
|
9946
9946
|
"bytesInOutput": 7731
|
|
9947
9947
|
},
|
|
9948
9948
|
"src/plugin/shared/request-services.ts": {
|
|
9949
|
-
"bytesInOutput":
|
|
9949
|
+
"bytesInOutput": 96014
|
|
9950
9950
|
},
|
|
9951
9951
|
"src/common-auth-embedded/routing-accessor/handle.js": {
|
|
9952
9952
|
"bytesInOutput": 297
|
|
@@ -10003,7 +10003,7 @@
|
|
|
10003
10003
|
"bytesInOutput": 0
|
|
10004
10004
|
}
|
|
10005
10005
|
},
|
|
10006
|
-
"bytes":
|
|
10006
|
+
"bytes": 2413460
|
|
10007
10007
|
}
|
|
10008
10008
|
}
|
|
10009
10009
|
}
|
package/dist/server.js
CHANGED
|
@@ -4706,7 +4706,7 @@ var init_rotation = __esm({
|
|
|
4706
4706
|
UNCONFIRMED_RATE_LIMIT_MIN_MS = 5e3;
|
|
4707
4707
|
UNCONFIRMED_RATE_LIMIT_MAX_MS = 3e4;
|
|
4708
4708
|
MAX_UNCONFIRMED_RATE_LIMIT_RETRIES = 2;
|
|
4709
|
-
UNCONFIRMED_RATE_LIMIT_MESSAGE = "Antigravity
|
|
4709
|
+
UNCONFIRMED_RATE_LIMIT_MESSAGE = "Antigravity refused the request without a stated reason. If this keeps happening, change the agent system prompt or wait before sending another request.";
|
|
4710
4710
|
DEFAULT_HEALTH_SCORE_CONFIG = {
|
|
4711
4711
|
initial: 70,
|
|
4712
4712
|
successReward: 1,
|
|
@@ -27635,6 +27635,12 @@ var init_harness_identity = __esm({
|
|
|
27635
27635
|
"opencode.ai/docs"
|
|
27636
27636
|
];
|
|
27637
27637
|
HARNESS_IDENTITY_REWRITES = [
|
|
27638
|
+
{
|
|
27639
|
+
// Antigravity refuses requests carrying this stock Pi docs bullet with a
|
|
27640
|
+
// false quota error. Remove its codemode clause, retaining other docs pointers.
|
|
27641
|
+
pattern: /^(- When asked about: extensions \(docs\/extensions\.md, examples\/extensions\/\), themes \(docs\/themes\.md\), skills \(docs\/skills\.md\), prompt templates \(docs\/prompt-templates\.md\), TUI components \(docs\/tui\.md\), keybindings \(docs\/keybindings\.md\), SDK integrations \(docs\/sdk\.md\), custom providers \(docs\/custom-provider\.md\), adding models \(docs\/models\.md\), packages \(docs\/packages\.md\), environment variables \(docs\/environment-variables\.md\), MCP servers \(docs\/mcp\.md\)), codemode scripts and non-LLM models such as classifiers and image models \(docs\/codemode\.md\)\n/gm,
|
|
27642
|
+
replacement: "$1\n"
|
|
27643
|
+
},
|
|
27638
27644
|
{
|
|
27639
27645
|
pattern: /\btools\.opencode\b/g,
|
|
27640
27646
|
replacement: "tools['opencode']"
|
|
@@ -27651,6 +27657,10 @@ var init_harness_identity = __esm({
|
|
|
27651
27657
|
pattern: /if OpenCode honestly/g,
|
|
27652
27658
|
replacement: "if the assistant honestly"
|
|
27653
27659
|
},
|
|
27660
|
+
{
|
|
27661
|
+
pattern: /You are a coding assistant running inside (?:pi, a coding agent harness|Pi-Bolt, a build of pi \(a coding agent harness\) compiled ahead of time)\.(?=$|\s)/g,
|
|
27662
|
+
replacement: "You are a coding assistant."
|
|
27663
|
+
},
|
|
27654
27664
|
{
|
|
27655
27665
|
pattern: /running inside Pi-Bolt, a build of pi \(a coding agent harness\) compiled ahead of time/gi,
|
|
27656
27666
|
replacement: "running inside your development environment"
|
|
@@ -27711,7 +27721,7 @@ var init_pre_response_deadline = __esm({
|
|
|
27711
27721
|
"../core/dist/pre-response-deadline.js"() {
|
|
27712
27722
|
"use strict";
|
|
27713
27723
|
PRE_RESPONSE_DEADLINE_MS = 6e5;
|
|
27714
|
-
PRE_RESPONSE_TIMEOUT_MESSAGE = "Antigravity did not begin a response within the pre-response time limit. Check your connection
|
|
27724
|
+
PRE_RESPONSE_TIMEOUT_MESSAGE = "Antigravity did not begin a response within the pre-response time limit. Check your connection before sending another request.";
|
|
27715
27725
|
PreResponseTimeoutError = class extends Error {
|
|
27716
27726
|
code = 412;
|
|
27717
27727
|
status = "FAILED_PRECONDITION";
|
|
@@ -30598,7 +30608,7 @@ var init_vault_enrollment_authority = __esm({
|
|
|
30598
30608
|
"use strict";
|
|
30599
30609
|
init_common_auth_runtime();
|
|
30600
30610
|
UNSUPPORTED_VAULT_CODE = "unknown_method";
|
|
30601
|
-
VAULT_ACCOUNT_REMEDY = "Vault account access is
|
|
30611
|
+
VAULT_ACCOUNT_REMEDY = "Vault account access is not ready. Connect accounts in the vault, or disconnect the vault to use local accounts.";
|
|
30602
30612
|
}
|
|
30603
30613
|
});
|
|
30604
30614
|
|
|
@@ -46411,11 +46421,11 @@ function createSyntheticTextResponse(text2, extraHeaders = {}) {
|
|
|
46411
46421
|
});
|
|
46412
46422
|
}
|
|
46413
46423
|
var NATIVE_GOOGLE_ERROR_MESSAGES = {
|
|
46414
|
-
operator_policy: "Antigravity account pool is
|
|
46415
|
-
soft_quota: 'Antigravity account pool is
|
|
46424
|
+
operator_policy: "Antigravity account pool is blocked by the operator quota policy. Adjust the quota floor in /antigravity \u2192 Limits or refresh quota.",
|
|
46425
|
+
soft_quota: 'Antigravity account pool is blocked by quota protection. Add accounts, wait for quota reset, or turn off soft quota protection with `"soft_quota_threshold_percent": 100` in antigravity-auth.jsonc.',
|
|
46416
46426
|
pool_unavailable: "Antigravity account pool has no account available within the configured wait limit. Add accounts with `opencode auth login` or wait for quota reset.",
|
|
46417
46427
|
model_unavailable: "The requested Antigravity model is not available to the configured accounts. Choose another model.",
|
|
46418
|
-
routing_refused: "Routing has no Antigravity account available for this request right now
|
|
46428
|
+
routing_refused: "Routing has no Antigravity account available for this request right now. Wait before sending another request.",
|
|
46419
46429
|
missing_access_token: "Missing access token. Run `opencode auth login` to reauthenticate.",
|
|
46420
46430
|
empty_response: "Antigravity returned an empty response after the internal retry attempts."
|
|
46421
46431
|
};
|
|
@@ -50730,7 +50740,7 @@ function createRequestExecutor(deps) {
|
|
|
50730
50740
|
error: {
|
|
50731
50741
|
code: 412,
|
|
50732
50742
|
status: "FAILED_PRECONDITION",
|
|
50733
|
-
message: "This Antigravity thinking level is
|
|
50743
|
+
message: "This Antigravity thinking level is not offered. Choose another thinking level."
|
|
50734
50744
|
}
|
|
50735
50745
|
}),
|
|
50736
50746
|
{ status: 412, headers: { "Content-Type": "application/json" } }
|
|
@@ -52455,9 +52465,8 @@ function createRequestExecutor(deps) {
|
|
|
52455
52465
|
const originalError = recoveryError.originalError || {
|
|
52456
52466
|
error: { message: "Thinking recovery triggered" }
|
|
52457
52467
|
};
|
|
52458
|
-
|
|
52459
|
-
|
|
52460
|
-
[RECOVERY] Thinking block corruption could not be resolved. Try starting a new session.`;
|
|
52468
|
+
log18.debug("thinking-recovery-failed", { error: originalError });
|
|
52469
|
+
const recoveryMessage = "Antigravity could not repair the conversation's thinking blocks. Start a new session.";
|
|
52461
52470
|
return new Response(
|
|
52462
52471
|
JSON.stringify({
|
|
52463
52472
|
type: "error",
|
|
@@ -58097,6 +58106,7 @@ async function pipeResponse(upstream, response, onFailure, onHandoff) {
|
|
|
58097
58106
|
return;
|
|
58098
58107
|
}
|
|
58099
58108
|
const extraHeaders = collectForwardedHeaders(upstream.headers);
|
|
58109
|
+
if (upstream.status >= 400) extraHeaders["x-should-retry"] = "false";
|
|
58100
58110
|
writeResponseHead(response, upstream.status, contentType, extraHeaders);
|
|
58101
58111
|
response.flushHeaders();
|
|
58102
58112
|
onHandoff();
|