@anthonyhaussman/opencode-agy-auth 1.4.8-alpha.0 → 1.4.9-alpha.0
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
CHANGED
|
@@ -268,7 +268,7 @@ function createAgyActivityRequestId() {
|
|
|
268
268
|
import os from "os";
|
|
269
269
|
|
|
270
270
|
// src/sdk/agy-cli-version.ts
|
|
271
|
-
var AGY_CLI_VERSION = "1.4.
|
|
271
|
+
var AGY_CLI_VERSION = "1.4.9";
|
|
272
272
|
|
|
273
273
|
// src/sdk/user-agent.ts
|
|
274
274
|
var cachedUserAgent = null;
|
|
@@ -16153,7 +16153,7 @@ var models_default = {
|
|
|
16153
16153
|
106865006,
|
|
16154
16154
|
106865004,
|
|
16155
16155
|
106828854,
|
|
16156
|
-
|
|
16156
|
+
106329234,
|
|
16157
16157
|
106815069,
|
|
16158
16158
|
106805272,
|
|
16159
16159
|
105979552,
|
|
@@ -16257,8 +16257,8 @@ var models_default = {
|
|
|
16257
16257
|
},
|
|
16258
16258
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16259
16259
|
quotaInfo: {
|
|
16260
|
-
remainingFraction:
|
|
16261
|
-
resetTime: "2026-10-
|
|
16260
|
+
remainingFraction: 1,
|
|
16261
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16262
16262
|
},
|
|
16263
16263
|
recommended: true,
|
|
16264
16264
|
supportedMimeTypes: {
|
|
@@ -16298,8 +16298,8 @@ var models_default = {
|
|
|
16298
16298
|
},
|
|
16299
16299
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16300
16300
|
quotaInfo: {
|
|
16301
|
-
remainingFraction:
|
|
16302
|
-
resetTime: "2026-10-
|
|
16301
|
+
remainingFraction: 1,
|
|
16302
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16303
16303
|
},
|
|
16304
16304
|
recommended: true,
|
|
16305
16305
|
supportedMimeTypes: {
|
|
@@ -16339,8 +16339,8 @@ var models_default = {
|
|
|
16339
16339
|
},
|
|
16340
16340
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16341
16341
|
quotaInfo: {
|
|
16342
|
-
remainingFraction:
|
|
16343
|
-
resetTime: "2026-10-
|
|
16342
|
+
remainingFraction: 1,
|
|
16343
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16344
16344
|
},
|
|
16345
16345
|
recommended: true,
|
|
16346
16346
|
supportedMimeTypes: {
|
|
@@ -16380,8 +16380,8 @@ var models_default = {
|
|
|
16380
16380
|
},
|
|
16381
16381
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16382
16382
|
quotaInfo: {
|
|
16383
|
-
remainingFraction:
|
|
16384
|
-
resetTime: "2026-10-
|
|
16383
|
+
remainingFraction: 1,
|
|
16384
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16385
16385
|
},
|
|
16386
16386
|
recommended: true,
|
|
16387
16387
|
supportedMimeTypes: {
|
|
@@ -16421,8 +16421,8 @@ var models_default = {
|
|
|
16421
16421
|
},
|
|
16422
16422
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16423
16423
|
quotaInfo: {
|
|
16424
|
-
remainingFraction:
|
|
16425
|
-
resetTime: "2026-10-
|
|
16424
|
+
remainingFraction: 1,
|
|
16425
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16426
16426
|
},
|
|
16427
16427
|
recommended: true,
|
|
16428
16428
|
supportedMimeTypes: {
|
|
@@ -16462,8 +16462,8 @@ var models_default = {
|
|
|
16462
16462
|
},
|
|
16463
16463
|
modelProvider: "MODEL_PROVIDER_ANTHROPIC",
|
|
16464
16464
|
quotaInfo: {
|
|
16465
|
-
remainingFraction:
|
|
16466
|
-
resetTime: "2026-10-
|
|
16465
|
+
remainingFraction: 1,
|
|
16466
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
16467
16467
|
},
|
|
16468
16468
|
recommended: true,
|
|
16469
16469
|
supportedMimeTypes: {
|
|
@@ -16501,8 +16501,8 @@ var models_default = {
|
|
|
16501
16501
|
},
|
|
16502
16502
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16503
16503
|
quotaInfo: {
|
|
16504
|
-
remainingFraction: 0.
|
|
16505
|
-
resetTime: "2026-10-
|
|
16504
|
+
remainingFraction: 0.9921193,
|
|
16505
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16506
16506
|
},
|
|
16507
16507
|
recommended: true,
|
|
16508
16508
|
supportedMimeTypes: {
|
|
@@ -16582,8 +16582,8 @@ var models_default = {
|
|
|
16582
16582
|
},
|
|
16583
16583
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16584
16584
|
quotaInfo: {
|
|
16585
|
-
remainingFraction: 0.
|
|
16586
|
-
resetTime: "2026-10-
|
|
16585
|
+
remainingFraction: 0.9921193,
|
|
16586
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16587
16587
|
},
|
|
16588
16588
|
recommended: true,
|
|
16589
16589
|
supportedMimeTypes: {
|
|
@@ -16663,8 +16663,8 @@ var models_default = {
|
|
|
16663
16663
|
},
|
|
16664
16664
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16665
16665
|
quotaInfo: {
|
|
16666
|
-
remainingFraction: 0.
|
|
16667
|
-
resetTime: "2026-10-
|
|
16666
|
+
remainingFraction: 0.9921193,
|
|
16667
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16668
16668
|
},
|
|
16669
16669
|
recommended: true,
|
|
16670
16670
|
supportedMimeTypes: {
|
|
@@ -16741,8 +16741,8 @@ var models_default = {
|
|
|
16741
16741
|
},
|
|
16742
16742
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16743
16743
|
quotaInfo: {
|
|
16744
|
-
remainingFraction: 0.
|
|
16745
|
-
resetTime: "2026-10-
|
|
16744
|
+
remainingFraction: 0.9921193,
|
|
16745
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16746
16746
|
},
|
|
16747
16747
|
recommended: true,
|
|
16748
16748
|
requiresImageOutputOutsideFunctionResponses: true,
|
|
@@ -16819,8 +16819,8 @@ var models_default = {
|
|
|
16819
16819
|
},
|
|
16820
16820
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16821
16821
|
quotaInfo: {
|
|
16822
|
-
remainingFraction: 0.
|
|
16823
|
-
resetTime: "2026-10-
|
|
16822
|
+
remainingFraction: 0.9921193,
|
|
16823
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16824
16824
|
},
|
|
16825
16825
|
recommended: true,
|
|
16826
16826
|
supportedMimeTypes: {
|
|
@@ -16879,7 +16879,7 @@ var models_default = {
|
|
|
16879
16879
|
supportsImages: true,
|
|
16880
16880
|
supportsThinking: true,
|
|
16881
16881
|
supportsVideo: true,
|
|
16882
|
-
|
|
16882
|
+
thinkingLevel: 3
|
|
16883
16883
|
},
|
|
16884
16884
|
"gemini-3.1-flash-image": {
|
|
16885
16885
|
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
@@ -16889,8 +16889,8 @@ var models_default = {
|
|
|
16889
16889
|
model: "MODEL_PLACEHOLDER_M21",
|
|
16890
16890
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16891
16891
|
quotaInfo: {
|
|
16892
|
-
remainingFraction: 0.
|
|
16893
|
-
resetTime: "2026-10-
|
|
16892
|
+
remainingFraction: 0.9921193,
|
|
16893
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16894
16894
|
},
|
|
16895
16895
|
supportedMimeTypes: {
|
|
16896
16896
|
"application/json": true,
|
|
@@ -16940,8 +16940,8 @@ var models_default = {
|
|
|
16940
16940
|
},
|
|
16941
16941
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
16942
16942
|
quotaInfo: {
|
|
16943
|
-
remainingFraction: 0.
|
|
16944
|
-
resetTime: "2026-10-
|
|
16943
|
+
remainingFraction: 0.9921193,
|
|
16944
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
16945
16945
|
},
|
|
16946
16946
|
recommended: true,
|
|
16947
16947
|
supportedMimeTypes: {
|
|
@@ -17021,8 +17021,8 @@ var models_default = {
|
|
|
17021
17021
|
},
|
|
17022
17022
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17023
17023
|
quotaInfo: {
|
|
17024
|
-
remainingFraction: 0.
|
|
17025
|
-
resetTime: "2026-10-
|
|
17024
|
+
remainingFraction: 0.9921193,
|
|
17025
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
17026
17026
|
},
|
|
17027
17027
|
recommended: true,
|
|
17028
17028
|
supportedMimeTypes: {
|
|
@@ -17132,8 +17132,8 @@ var models_default = {
|
|
|
17132
17132
|
},
|
|
17133
17133
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17134
17134
|
quotaInfo: {
|
|
17135
|
-
remainingFraction: 0.
|
|
17136
|
-
resetTime: "2026-10-
|
|
17135
|
+
remainingFraction: 0.9921193,
|
|
17136
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
17137
17137
|
},
|
|
17138
17138
|
recommended: true,
|
|
17139
17139
|
supportedMimeTypes: {
|
|
@@ -17192,7 +17192,7 @@ var models_default = {
|
|
|
17192
17192
|
supportsImages: true,
|
|
17193
17193
|
supportsThinking: true,
|
|
17194
17194
|
supportsVideo: true,
|
|
17195
|
-
|
|
17195
|
+
thinkingLevel: 3
|
|
17196
17196
|
},
|
|
17197
17197
|
"gemini-3.8-flash-low": {
|
|
17198
17198
|
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
@@ -17243,8 +17243,8 @@ var models_default = {
|
|
|
17243
17243
|
},
|
|
17244
17244
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17245
17245
|
quotaInfo: {
|
|
17246
|
-
remainingFraction: 0.
|
|
17247
|
-
resetTime: "2026-10-
|
|
17246
|
+
remainingFraction: 0.9921193,
|
|
17247
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
17248
17248
|
},
|
|
17249
17249
|
recommended: true,
|
|
17250
17250
|
supportedMimeTypes: {
|
|
@@ -17303,7 +17303,7 @@ var models_default = {
|
|
|
17303
17303
|
supportsImages: true,
|
|
17304
17304
|
supportsThinking: true,
|
|
17305
17305
|
supportsVideo: true,
|
|
17306
|
-
|
|
17306
|
+
thinkingLevel: 1
|
|
17307
17307
|
},
|
|
17308
17308
|
"gemini-3.8-flash-medium": {
|
|
17309
17309
|
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
@@ -17354,8 +17354,8 @@ var models_default = {
|
|
|
17354
17354
|
},
|
|
17355
17355
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17356
17356
|
quotaInfo: {
|
|
17357
|
-
remainingFraction: 0.
|
|
17358
|
-
resetTime: "2026-10-
|
|
17357
|
+
remainingFraction: 0.9921193,
|
|
17358
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
17359
17359
|
},
|
|
17360
17360
|
recommended: true,
|
|
17361
17361
|
supportedMimeTypes: {
|
|
@@ -17414,7 +17414,7 @@ var models_default = {
|
|
|
17414
17414
|
supportsImages: true,
|
|
17415
17415
|
supportsThinking: true,
|
|
17416
17416
|
supportsVideo: true,
|
|
17417
|
-
|
|
17417
|
+
thinkingLevel: 2
|
|
17418
17418
|
},
|
|
17419
17419
|
"gemini-3.8-flash-tiered": {
|
|
17420
17420
|
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
@@ -17464,8 +17464,8 @@ var models_default = {
|
|
|
17464
17464
|
},
|
|
17465
17465
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17466
17466
|
quotaInfo: {
|
|
17467
|
-
remainingFraction: 0.
|
|
17468
|
-
resetTime: "2026-10-
|
|
17467
|
+
remainingFraction: 0.9921193,
|
|
17468
|
+
resetTime: "2026-10-28T12:32:56Z"
|
|
17469
17469
|
},
|
|
17470
17470
|
recommended: true,
|
|
17471
17471
|
supportedMimeTypes: {
|
|
@@ -17524,7 +17524,7 @@ var models_default = {
|
|
|
17524
17524
|
supportsImages: true,
|
|
17525
17525
|
supportsThinking: true,
|
|
17526
17526
|
supportsVideo: true,
|
|
17527
|
-
|
|
17527
|
+
thinkingLevel: 3
|
|
17528
17528
|
},
|
|
17529
17529
|
"gemini-4-argon-high": {
|
|
17530
17530
|
apiProvider: "API_PROVIDER_GOOGLE_GEMINI",
|
|
@@ -17793,7 +17793,6 @@ monitors {
|
|
|
17793
17793
|
},
|
|
17794
17794
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
17795
17795
|
quotaInfo: {
|
|
17796
|
-
remainingFraction: 0.8618577,
|
|
17797
17796
|
resetTime: "2026-11-01T16:41:17Z"
|
|
17798
17797
|
},
|
|
17799
17798
|
recommended: true,
|
|
@@ -17854,7 +17853,6 @@ monitors {
|
|
|
17854
17853
|
supportsThinking: true,
|
|
17855
17854
|
supportsVideo: true,
|
|
17856
17855
|
tagTitle: "New",
|
|
17857
|
-
thinkingBudget: -1,
|
|
17858
17856
|
thinkingLevel: 3
|
|
17859
17857
|
},
|
|
17860
17858
|
"gemini-4-argon-low": {
|
|
@@ -18124,7 +18122,6 @@ monitors {
|
|
|
18124
18122
|
},
|
|
18125
18123
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18126
18124
|
quotaInfo: {
|
|
18127
|
-
remainingFraction: 0.8618577,
|
|
18128
18125
|
resetTime: "2026-11-01T16:41:17Z"
|
|
18129
18126
|
},
|
|
18130
18127
|
recommended: true,
|
|
@@ -18185,7 +18182,6 @@ monitors {
|
|
|
18185
18182
|
supportsThinking: true,
|
|
18186
18183
|
supportsVideo: true,
|
|
18187
18184
|
tagTitle: "New",
|
|
18188
|
-
thinkingBudget: -1,
|
|
18189
18185
|
thinkingLevel: 1
|
|
18190
18186
|
},
|
|
18191
18187
|
"gemini-4-argon-medium": {
|
|
@@ -18455,7 +18451,6 @@ monitors {
|
|
|
18455
18451
|
},
|
|
18456
18452
|
modelProvider: "MODEL_PROVIDER_GOOGLE",
|
|
18457
18453
|
quotaInfo: {
|
|
18458
|
-
remainingFraction: 0.8618577,
|
|
18459
18454
|
resetTime: "2026-11-01T16:41:17Z"
|
|
18460
18455
|
},
|
|
18461
18456
|
recommended: true,
|
|
@@ -18516,7 +18511,6 @@ monitors {
|
|
|
18516
18511
|
supportsThinking: true,
|
|
18517
18512
|
supportsVideo: true,
|
|
18518
18513
|
tagTitle: "New",
|
|
18519
|
-
thinkingBudget: -1,
|
|
18520
18514
|
thinkingLevel: 2
|
|
18521
18515
|
},
|
|
18522
18516
|
"gpt-oss-120b-medium": {
|
|
@@ -18534,8 +18528,8 @@ monitors {
|
|
|
18534
18528
|
},
|
|
18535
18529
|
modelProvider: "MODEL_PROVIDER_OPENAI",
|
|
18536
18530
|
quotaInfo: {
|
|
18537
|
-
remainingFraction:
|
|
18538
|
-
resetTime: "2026-10-
|
|
18531
|
+
remainingFraction: 1,
|
|
18532
|
+
resetTime: "2026-10-28T13:20:47Z"
|
|
18539
18533
|
},
|
|
18540
18534
|
recommended: true,
|
|
18541
18535
|
supportsThinking: true,
|
|
@@ -18618,7 +18612,22 @@ function normalizeThinkingConfig(config2) {
|
|
|
18618
18612
|
const levelRaw = record2.thinkingLevel ?? record2.thinking_level;
|
|
18619
18613
|
const includeRaw = record2.includeThoughts ?? record2.include_thoughts;
|
|
18620
18614
|
let thinkingBudget = typeof budgetRaw === "number" && Number.isFinite(budgetRaw) ? budgetRaw : void 0;
|
|
18621
|
-
|
|
18615
|
+
let thinkingLevel;
|
|
18616
|
+
if (typeof levelRaw === "string" && levelRaw.trim().length > 0) {
|
|
18617
|
+
thinkingLevel = levelRaw.trim().toUpperCase();
|
|
18618
|
+
} else if (typeof levelRaw === "number" && Number.isFinite(levelRaw)) {
|
|
18619
|
+
if (levelRaw === 1) {
|
|
18620
|
+
thinkingLevel = "LOW";
|
|
18621
|
+
} else if (levelRaw === 2) {
|
|
18622
|
+
thinkingLevel = "MEDIUM";
|
|
18623
|
+
} else if (levelRaw === 3) {
|
|
18624
|
+
thinkingLevel = "HIGH";
|
|
18625
|
+
} else if (levelRaw === 4) {
|
|
18626
|
+
thinkingLevel = "MINIMAL";
|
|
18627
|
+
} else if (levelRaw > 0) {
|
|
18628
|
+
thinkingLevel = "HIGH";
|
|
18629
|
+
}
|
|
18630
|
+
}
|
|
18622
18631
|
const includeThoughts = typeof includeRaw === "boolean" ? includeRaw : void 0;
|
|
18623
18632
|
if (thinkingBudget === void 0 && thinkingLevel === void 0 && includeThoughts === void 0) {
|
|
18624
18633
|
return void 0;
|
|
@@ -19476,6 +19485,9 @@ function cleanProtobufParts(contents, isClaude) {
|
|
|
19476
19485
|
delete part.type;
|
|
19477
19486
|
delete part.signature;
|
|
19478
19487
|
delete part.state;
|
|
19488
|
+
if (typeof part.text === "string" && /[\ufff9\ufffa\ufffb]/.test(part.text)) {
|
|
19489
|
+
part.text = part.text.replace(/[\ufff9\ufffa\ufffb]/g, "");
|
|
19490
|
+
}
|
|
19479
19491
|
if (isClaude) {
|
|
19480
19492
|
if (part.thoughtSignature === "skip_thought_signature_validator") {
|
|
19481
19493
|
delete part.thoughtSignature;
|