@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/cli.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",
|
|
@@ -4690,7 +4690,7 @@
|
|
|
4690
4690
|
"imports": [],
|
|
4691
4691
|
"exports": [],
|
|
4692
4692
|
"inputs": {},
|
|
4693
|
-
"bytes":
|
|
4693
|
+
"bytes": 3401657
|
|
4694
4694
|
},
|
|
4695
4695
|
"dist/cli.js": {
|
|
4696
4696
|
"imports": [
|
package/dist/index.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
|
|
|
@@ -55012,11 +55022,11 @@ function createSyntheticTextResponse(text2, extraHeaders = {}) {
|
|
|
55012
55022
|
});
|
|
55013
55023
|
}
|
|
55014
55024
|
var NATIVE_GOOGLE_ERROR_MESSAGES = {
|
|
55015
|
-
operator_policy: "Antigravity account pool is
|
|
55016
|
-
soft_quota: 'Antigravity account pool is
|
|
55025
|
+
operator_policy: "Antigravity account pool is blocked by the operator quota policy. Adjust the quota floor in /antigravity \u2192 Limits or refresh quota.",
|
|
55026
|
+
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.',
|
|
55017
55027
|
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.",
|
|
55018
55028
|
model_unavailable: "The requested Antigravity model is not available to the configured accounts. Choose another model.",
|
|
55019
|
-
routing_refused: "Routing has no Antigravity account available for this request right now
|
|
55029
|
+
routing_refused: "Routing has no Antigravity account available for this request right now. Wait before sending another request.",
|
|
55020
55030
|
missing_access_token: "Missing access token. Run `opencode auth login` to reauthenticate.",
|
|
55021
55031
|
empty_response: "Antigravity returned an empty response after the internal retry attempts."
|
|
55022
55032
|
};
|
|
@@ -60955,7 +60965,7 @@ function createRequestExecutor(deps) {
|
|
|
60955
60965
|
error: {
|
|
60956
60966
|
code: 412,
|
|
60957
60967
|
status: "FAILED_PRECONDITION",
|
|
60958
|
-
message: "This Antigravity thinking level is
|
|
60968
|
+
message: "This Antigravity thinking level is not offered. Choose another thinking level."
|
|
60959
60969
|
}
|
|
60960
60970
|
}),
|
|
60961
60971
|
{ status: 412, headers: { "Content-Type": "application/json" } }
|
|
@@ -62680,9 +62690,8 @@ function createRequestExecutor(deps) {
|
|
|
62680
62690
|
const originalError = recoveryError.originalError || {
|
|
62681
62691
|
error: { message: "Thinking recovery triggered" }
|
|
62682
62692
|
};
|
|
62683
|
-
|
|
62684
|
-
|
|
62685
|
-
[RECOVERY] Thinking block corruption could not be resolved. Try starting a new session.`;
|
|
62693
|
+
log18.debug("thinking-recovery-failed", { error: originalError });
|
|
62694
|
+
const recoveryMessage = "Antigravity could not repair the conversation's thinking blocks. Start a new session.";
|
|
62686
62695
|
return new Response(
|
|
62687
62696
|
JSON.stringify({
|
|
62688
62697
|
type: "error",
|