@cnwenf/occ 2.1.288 → 2.1.290
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 +92 -33
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
globalThis.MACRO={"VERSION":"2.1.
|
|
2
|
+
globalThis.MACRO={"VERSION":"2.1.290","BINARY_NAME":"occ","BUILD_TIME":"2026-07-29T17:58:05.806Z","FEEDBACK_CHANNEL":"","ISSUES_EXPLAINER":"","NATIVE_PACKAGE_URL":"","PACKAGE_URL":"@cnwenf/occ","VERSION_CHANGELOG":""};
|
|
3
3
|
// @bun
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -59376,7 +59376,11 @@ var init_types2 = __esm(() => {
|
|
|
59376
59376
|
message: 'Entry must have exactly one of "serverName", "serverCommand", or "serverUrl"'
|
|
59377
59377
|
}));
|
|
59378
59378
|
DeniedMcpServerEntrySchema = lazySchema(() => exports_external.object({
|
|
59379
|
-
serverName: exports_external.string().
|
|
59379
|
+
serverName: exports_external.string().min(1, "Server name must be non-empty").refine((name) => name.trim().length > 0, {
|
|
59380
|
+
message: "Server name must not be whitespace-only"
|
|
59381
|
+
}).refine((name) => name === name.trim(), {
|
|
59382
|
+
message: "Server name has leading or trailing whitespace and will never match (names are compared verbatim)"
|
|
59383
|
+
}).optional().describe("Name of the MCP server that is explicitly blocked"),
|
|
59380
59384
|
serverCommand: exports_external.array(exports_external.string()).min(1, "Server command must have at least one element (the command)").optional().describe("Command array [command, ...args] to match exactly for blocked stdio servers"),
|
|
59381
59385
|
serverUrl: exports_external.string().optional().describe('URL pattern with wildcard support (e.g., "https://*.example.com/*") for blocked remote MCP servers')
|
|
59382
59386
|
}).refine((data) => {
|
|
@@ -100325,7 +100329,7 @@ function isFastModeSupportedByModel(modelSetting) {
|
|
|
100325
100329
|
const model = modelSetting ?? getDefaultMainLoopModelSetting();
|
|
100326
100330
|
const parsedModel = parseUserSpecifiedModel(model);
|
|
100327
100331
|
const lower = parsedModel.toLowerCase();
|
|
100328
|
-
return lower.includes("opus-4-
|
|
100332
|
+
return lower.includes("opus-4-7") || lower.includes("opus-4-8") || lower.includes("opus-5");
|
|
100329
100333
|
}
|
|
100330
100334
|
function getFastModeChangeAnnouncement(previousEnabled, newEnabled, model) {
|
|
100331
100335
|
if (Boolean(previousEnabled) === newEnabled) {
|
|
@@ -100567,6 +100571,12 @@ function getOpus46CostTier(fastMode) {
|
|
|
100567
100571
|
}
|
|
100568
100572
|
return COST_TIER_5_25;
|
|
100569
100573
|
}
|
|
100574
|
+
function getOpus5CostTier(fastMode) {
|
|
100575
|
+
if (isFastModeEnabled() && fastMode) {
|
|
100576
|
+
return COST_TIER_10_50;
|
|
100577
|
+
}
|
|
100578
|
+
return COST_TIER_5_25;
|
|
100579
|
+
}
|
|
100570
100580
|
function tokensToUSDCost(modelCosts, usage) {
|
|
100571
100581
|
return usage.input_tokens / 1e6 * modelCosts.inputTokens + usage.output_tokens / 1e6 * modelCosts.outputTokens + (usage.cache_read_input_tokens ?? 0) / 1e6 * modelCosts.promptCacheReadTokens + (usage.cache_creation_input_tokens ?? 0) / 1e6 * modelCosts.promptCacheWriteTokens + (usage.server_tool_use?.web_search_requests ?? 0) * modelCosts.webSearchRequests;
|
|
100572
100582
|
}
|
|
@@ -100576,6 +100586,10 @@ function getModelCosts(model, usage) {
|
|
|
100576
100586
|
const isFastMode = usage.speed === "fast";
|
|
100577
100587
|
return getOpus46CostTier(isFastMode);
|
|
100578
100588
|
}
|
|
100589
|
+
if (shortName === firstPartyNameToCanonical(CLAUDE_OPUS_5_CONFIG.firstParty)) {
|
|
100590
|
+
const isFastMode = usage.speed === "fast";
|
|
100591
|
+
return getOpus5CostTier(isFastMode);
|
|
100592
|
+
}
|
|
100579
100593
|
const costs = MODEL_COSTS[shortName];
|
|
100580
100594
|
if (!costs) {
|
|
100581
100595
|
trackUnknownModelCost(model, shortName);
|
|
@@ -100612,7 +100626,7 @@ function formatPrice(price) {
|
|
|
100612
100626
|
function formatModelPricing(costs) {
|
|
100613
100627
|
return `${formatPrice(costs.inputTokens)}/${formatPrice(costs.outputTokens)} per Mtok`;
|
|
100614
100628
|
}
|
|
100615
|
-
var COST_TIER_3_15, COST_TIER_15_75, COST_TIER_5_25, COST_TIER_30_150, COST_HAIKU_35, COST_HAIKU_45, DEFAULT_UNKNOWN_MODEL_COST, MODEL_COSTS;
|
|
100629
|
+
var COST_TIER_3_15, COST_TIER_15_75, COST_TIER_5_25, COST_TIER_30_150, COST_TIER_10_50, COST_HAIKU_35, COST_HAIKU_45, DEFAULT_UNKNOWN_MODEL_COST, MODEL_COSTS;
|
|
100616
100630
|
var init_modelCost = __esm(() => {
|
|
100617
100631
|
init_analytics();
|
|
100618
100632
|
init_state();
|
|
@@ -100623,6 +100637,7 @@ var init_modelCost = __esm(() => {
|
|
|
100623
100637
|
inputTokens: 3,
|
|
100624
100638
|
outputTokens: 15,
|
|
100625
100639
|
promptCacheWriteTokens: 3.75,
|
|
100640
|
+
promptCacheWrite1hTokens: 6,
|
|
100626
100641
|
promptCacheReadTokens: 0.3,
|
|
100627
100642
|
webSearchRequests: 0.01
|
|
100628
100643
|
};
|
|
@@ -100630,6 +100645,7 @@ var init_modelCost = __esm(() => {
|
|
|
100630
100645
|
inputTokens: 15,
|
|
100631
100646
|
outputTokens: 75,
|
|
100632
100647
|
promptCacheWriteTokens: 18.75,
|
|
100648
|
+
promptCacheWrite1hTokens: 30,
|
|
100633
100649
|
promptCacheReadTokens: 1.5,
|
|
100634
100650
|
webSearchRequests: 0.01
|
|
100635
100651
|
};
|
|
@@ -100637,6 +100653,7 @@ var init_modelCost = __esm(() => {
|
|
|
100637
100653
|
inputTokens: 5,
|
|
100638
100654
|
outputTokens: 25,
|
|
100639
100655
|
promptCacheWriteTokens: 6.25,
|
|
100656
|
+
promptCacheWrite1hTokens: 10,
|
|
100640
100657
|
promptCacheReadTokens: 0.5,
|
|
100641
100658
|
webSearchRequests: 0.01
|
|
100642
100659
|
};
|
|
@@ -100644,13 +100661,23 @@ var init_modelCost = __esm(() => {
|
|
|
100644
100661
|
inputTokens: 30,
|
|
100645
100662
|
outputTokens: 150,
|
|
100646
100663
|
promptCacheWriteTokens: 37.5,
|
|
100664
|
+
promptCacheWrite1hTokens: 60,
|
|
100647
100665
|
promptCacheReadTokens: 3,
|
|
100648
100666
|
webSearchRequests: 0.01
|
|
100649
100667
|
};
|
|
100668
|
+
COST_TIER_10_50 = {
|
|
100669
|
+
inputTokens: 10,
|
|
100670
|
+
outputTokens: 50,
|
|
100671
|
+
promptCacheWriteTokens: 12.5,
|
|
100672
|
+
promptCacheWrite1hTokens: 20,
|
|
100673
|
+
promptCacheReadTokens: 1,
|
|
100674
|
+
webSearchRequests: 0.01
|
|
100675
|
+
};
|
|
100650
100676
|
COST_HAIKU_35 = {
|
|
100651
100677
|
inputTokens: 0.8,
|
|
100652
100678
|
outputTokens: 4,
|
|
100653
100679
|
promptCacheWriteTokens: 1,
|
|
100680
|
+
promptCacheWrite1hTokens: 1.6,
|
|
100654
100681
|
promptCacheReadTokens: 0.08,
|
|
100655
100682
|
webSearchRequests: 0.01
|
|
100656
100683
|
};
|
|
@@ -100658,6 +100685,7 @@ var init_modelCost = __esm(() => {
|
|
|
100658
100685
|
inputTokens: 1,
|
|
100659
100686
|
outputTokens: 5,
|
|
100660
100687
|
promptCacheWriteTokens: 1.25,
|
|
100688
|
+
promptCacheWrite1hTokens: 2,
|
|
100661
100689
|
promptCacheReadTokens: 0.1,
|
|
100662
100690
|
webSearchRequests: 0.01
|
|
100663
100691
|
};
|
|
@@ -100673,7 +100701,8 @@ var init_modelCost = __esm(() => {
|
|
|
100673
100701
|
[firstPartyNameToCanonical(CLAUDE_OPUS_4_CONFIG.firstParty)]: COST_TIER_15_75,
|
|
100674
100702
|
[firstPartyNameToCanonical(CLAUDE_OPUS_4_1_CONFIG.firstParty)]: COST_TIER_15_75,
|
|
100675
100703
|
[firstPartyNameToCanonical(CLAUDE_OPUS_4_5_CONFIG.firstParty)]: COST_TIER_5_25,
|
|
100676
|
-
[firstPartyNameToCanonical(CLAUDE_OPUS_4_6_CONFIG.firstParty)]: COST_TIER_5_25
|
|
100704
|
+
[firstPartyNameToCanonical(CLAUDE_OPUS_4_6_CONFIG.firstParty)]: COST_TIER_5_25,
|
|
100705
|
+
[firstPartyNameToCanonical(CLAUDE_OPUS_5_CONFIG.firstParty)]: COST_TIER_5_25
|
|
100677
100706
|
};
|
|
100678
100707
|
});
|
|
100679
100708
|
|
|
@@ -100937,7 +100966,11 @@ function getDefaultOpusModel() {
|
|
|
100937
100966
|
if (process.env.ANTHROPIC_DEFAULT_OPUS_MODEL) {
|
|
100938
100967
|
return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;
|
|
100939
100968
|
}
|
|
100940
|
-
|
|
100969
|
+
const provider3 = getAPIProvider();
|
|
100970
|
+
if (provider3 === "foundry") {
|
|
100971
|
+
return getModelStrings2().opus46;
|
|
100972
|
+
}
|
|
100973
|
+
if (provider3 === "gateway") {
|
|
100941
100974
|
return getModelStrings2().opus47;
|
|
100942
100975
|
}
|
|
100943
100976
|
return getModelStrings2().opus5;
|
|
@@ -139911,7 +139944,7 @@ function modelSupportsContextManagement(model) {
|
|
|
139911
139944
|
if (provider5 === "firstParty") {
|
|
139912
139945
|
return !canonical.includes("claude-3-");
|
|
139913
139946
|
}
|
|
139914
|
-
return canonical.includes("claude-opus-4") || canonical.includes("claude-sonnet-4") || canonical.includes("claude-haiku-4");
|
|
139947
|
+
return canonical.includes("claude-opus-4") || canonical.includes("claude-sonnet-4") || canonical.includes("claude-haiku-4") || canonical.includes("claude-opus-5");
|
|
139915
139948
|
}
|
|
139916
139949
|
function modelSupportsStructuredOutputs(model) {
|
|
139917
139950
|
const canonical = getCanonicalName(model);
|
|
@@ -203285,7 +203318,7 @@ function modelSupportsAdaptiveThinking(model) {
|
|
|
203285
203318
|
return supported3P;
|
|
203286
203319
|
}
|
|
203287
203320
|
const canonical = getCanonicalName(model);
|
|
203288
|
-
if (canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6")) {
|
|
203321
|
+
if (canonical.includes("opus-4-6") || canonical.includes("sonnet-4-6") || canonical.includes("opus-5")) {
|
|
203289
203322
|
return true;
|
|
203290
203323
|
}
|
|
203291
203324
|
if (canonical.includes("opus") || canonical.includes("sonnet") || canonical.includes("haiku")) {
|
|
@@ -203343,7 +203376,7 @@ function modelSupportsEffort(model) {
|
|
|
203343
203376
|
if (supported3P !== undefined) {
|
|
203344
203377
|
return supported3P;
|
|
203345
203378
|
}
|
|
203346
|
-
if (m5.includes("opus-4-6") || m5.includes("sonnet-4-6")) {
|
|
203379
|
+
if (m5.includes("opus-4-6") || m5.includes("sonnet-4-6") || m5.includes("opus-5")) {
|
|
203347
203380
|
return true;
|
|
203348
203381
|
}
|
|
203349
203382
|
if (m5.includes("haiku") || m5.includes("sonnet") || m5.includes("opus")) {
|
|
@@ -203356,7 +203389,7 @@ function modelSupportsMaxEffort(model) {
|
|
|
203356
203389
|
if (supported3P !== undefined) {
|
|
203357
203390
|
return supported3P;
|
|
203358
203391
|
}
|
|
203359
|
-
if (model.toLowerCase().includes("opus-4-6")) {
|
|
203392
|
+
if (model.toLowerCase().includes("opus-4-6") || model.toLowerCase().includes("opus-5")) {
|
|
203360
203393
|
return true;
|
|
203361
203394
|
}
|
|
203362
203395
|
if (process.env.USER_TYPE === "ant" && resolveAntModel(model)) {
|
|
@@ -203370,7 +203403,7 @@ function modelSupportsXhighEffort(model) {
|
|
|
203370
203403
|
return supported3P;
|
|
203371
203404
|
}
|
|
203372
203405
|
const lower = model.toLowerCase();
|
|
203373
|
-
if (lower.includes("opus-4-7") || lower.includes("opus-4-8")) {
|
|
203406
|
+
if (lower.includes("opus-4-7") || lower.includes("opus-4-8") || lower.includes("opus-5")) {
|
|
203374
203407
|
return true;
|
|
203375
203408
|
}
|
|
203376
203409
|
if (process.env.USER_TYPE === "ant" && resolveAntModel(model)) {
|
|
@@ -263050,11 +263083,11 @@ function getExperimentAdvisorModels() {
|
|
|
263050
263083
|
}
|
|
263051
263084
|
function modelSupportsAdvisor(model) {
|
|
263052
263085
|
const m5 = model.toLowerCase();
|
|
263053
|
-
return m5.includes("opus-4-6") || m5.includes("sonnet-4-6") || process.env.USER_TYPE === "ant";
|
|
263086
|
+
return m5.includes("opus-4-6") || m5.includes("sonnet-4-6") || m5.includes("opus-5") || process.env.USER_TYPE === "ant";
|
|
263054
263087
|
}
|
|
263055
263088
|
function isValidAdvisorModel(model) {
|
|
263056
263089
|
const m5 = model.toLowerCase();
|
|
263057
|
-
return m5.includes("opus-4-6") || m5.includes("sonnet-4-6") || process.env.USER_TYPE === "ant";
|
|
263090
|
+
return m5.includes("opus-4-6") || m5.includes("sonnet-4-6") || m5.includes("opus-5") || process.env.USER_TYPE === "ant";
|
|
263058
263091
|
}
|
|
263059
263092
|
function getInitialAdvisorSetting() {
|
|
263060
263093
|
if (!isAdvisorEnabled()) {
|
|
@@ -452621,6 +452654,11 @@ var init_coreSchemas = __esm(() => {
|
|
|
452621
452654
|
name: exports_external.string(),
|
|
452622
452655
|
status: exports_external.string()
|
|
452623
452656
|
})),
|
|
452657
|
+
mcp_server_errors: exports_external.array(exports_external.object({
|
|
452658
|
+
name: exports_external.string(),
|
|
452659
|
+
type: exports_external.string(),
|
|
452660
|
+
message: exports_external.string()
|
|
452661
|
+
})).optional().describe("@internal MCP server config errors collected during connection"),
|
|
452624
452662
|
model: exports_external.string(),
|
|
452625
452663
|
permissionMode: PermissionModeSchema(),
|
|
452626
452664
|
slash_commands: exports_external.array(exports_external.string()),
|
|
@@ -578367,6 +578405,13 @@ function getDefaultOptionForUser(fastMode = false) {
|
|
|
578367
578405
|
description: `Use the default model (currently ${renderDefaultModelSetting(getDefaultMainLoopModelSetting())})${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`
|
|
578368
578406
|
};
|
|
578369
578407
|
}
|
|
578408
|
+
function getOpus5PricingSuffix(fastMode) {
|
|
578409
|
+
if (getAPIProvider() !== "firstParty")
|
|
578410
|
+
return "";
|
|
578411
|
+
const pricing = formatModelPricing(getOpus5CostTier(fastMode));
|
|
578412
|
+
const fastModeIndicator = fastMode ? ` (${LIGHTNING_BOLT})` : "";
|
|
578413
|
+
return ` \xB7${fastModeIndicator} ${pricing}`;
|
|
578414
|
+
}
|
|
578370
578415
|
function getSonnet5Option() {
|
|
578371
578416
|
const is3P = getAPIProvider() !== "firstParty";
|
|
578372
578417
|
return {
|
|
@@ -578453,13 +578498,13 @@ function getOpus46Option(fastMode = false) {
|
|
|
578453
578498
|
descriptionForModel: "Opus 4.6 - previous Opus version"
|
|
578454
578499
|
};
|
|
578455
578500
|
}
|
|
578456
|
-
function
|
|
578501
|
+
function getOpus5Option(fastMode = false) {
|
|
578457
578502
|
const is3P = getAPIProvider() !== "firstParty";
|
|
578458
578503
|
return {
|
|
578459
|
-
value: is3P ? getModelStrings2().
|
|
578504
|
+
value: is3P ? getModelStrings2().opus5 : "opus",
|
|
578460
578505
|
label: "Opus",
|
|
578461
|
-
description: `Opus
|
|
578462
|
-
descriptionForModel: "Opus
|
|
578506
|
+
description: `Opus 5 \xB7 Best for everyday, complex tasks${getOpus5PricingSuffix(fastMode)}`,
|
|
578507
|
+
descriptionForModel: "Opus 5 - best for everyday, complex tasks"
|
|
578463
578508
|
};
|
|
578464
578509
|
}
|
|
578465
578510
|
function getSonnet5_1MOption() {
|
|
@@ -578480,13 +578525,13 @@ function getSonnet46_1MOption() {
|
|
|
578480
578525
|
descriptionForModel: "Sonnet 4.6 with 1M context window - for long sessions with large codebases"
|
|
578481
578526
|
};
|
|
578482
578527
|
}
|
|
578483
|
-
function
|
|
578528
|
+
function getOpus5_1MOption(fastMode = false) {
|
|
578484
578529
|
const is3P = getAPIProvider() !== "firstParty";
|
|
578485
578530
|
return {
|
|
578486
|
-
value: is3P ? getModelStrings2().
|
|
578531
|
+
value: is3P ? getModelStrings2().opus5 + "[1m]" : "opus[1m]",
|
|
578487
578532
|
label: "Opus (1M context)",
|
|
578488
|
-
description: `Opus
|
|
578489
|
-
descriptionForModel: "Opus
|
|
578533
|
+
description: `Opus 5 for long sessions${getOpus5PricingSuffix(fastMode)}`,
|
|
578534
|
+
descriptionForModel: "Opus 5 with 1M context window - for long sessions with large codebases"
|
|
578490
578535
|
};
|
|
578491
578536
|
}
|
|
578492
578537
|
function getOpus46_1MOption(fastMode = false) {
|
|
@@ -578536,7 +578581,7 @@ function getMaxOpusOption(fastMode = false) {
|
|
|
578536
578581
|
return {
|
|
578537
578582
|
value: "opus",
|
|
578538
578583
|
label: "Opus",
|
|
578539
|
-
description: `Opus
|
|
578584
|
+
description: `Opus 5 \xB7 Best for everyday, complex tasks${fastMode ? getOpus5PricingSuffix(true) : ""}`
|
|
578540
578585
|
};
|
|
578541
578586
|
}
|
|
578542
578587
|
function getMaxSonnet5_1MOption() {
|
|
@@ -578548,21 +578593,21 @@ function getMaxSonnet5_1MOption() {
|
|
|
578548
578593
|
description: `Sonnet 5 with 1M context${billingInfo}${is3P ? "" : ` \xB7 ${formatModelPricing(COST_TIER_3_15)}`}`
|
|
578549
578594
|
};
|
|
578550
578595
|
}
|
|
578551
|
-
function
|
|
578596
|
+
function getMaxOpus5_1MOption(fastMode = false) {
|
|
578552
578597
|
const billingInfo = isClaudeAISubscriber() ? " \xB7 Billed as extra usage" : "";
|
|
578553
578598
|
return {
|
|
578554
578599
|
value: "opus[1m]",
|
|
578555
578600
|
label: "Opus (1M context)",
|
|
578556
|
-
description: `Opus
|
|
578601
|
+
description: `Opus 5 with 1M context${billingInfo}${getOpus5PricingSuffix(fastMode)}`
|
|
578557
578602
|
};
|
|
578558
578603
|
}
|
|
578559
578604
|
function getMergedOpus1MOption(fastMode = false) {
|
|
578560
578605
|
const is3P = getAPIProvider() !== "firstParty";
|
|
578561
578606
|
return {
|
|
578562
|
-
value: is3P ? getModelStrings2().
|
|
578607
|
+
value: is3P ? getModelStrings2().opus5 + "[1m]" : "opus[1m]",
|
|
578563
578608
|
label: "Opus (1M context)",
|
|
578564
|
-
description: `Opus
|
|
578565
|
-
descriptionForModel: "Opus
|
|
578609
|
+
description: `Opus 5 with 1M context \xB7 Best for everyday, complex tasks${!is3P && fastMode ? getOpus5PricingSuffix(fastMode) : ""}`,
|
|
578610
|
+
descriptionForModel: "Opus 5 with 1M context - best for everyday, complex tasks"
|
|
578566
578611
|
};
|
|
578567
578612
|
}
|
|
578568
578613
|
function getOpusPlanOption() {
|
|
@@ -578593,7 +578638,7 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
578593
578638
|
if (isMaxSubscriber() || isTeamPremiumSubscriber()) {
|
|
578594
578639
|
const premiumOptions = [getDefaultOptionForUser(fastMode)];
|
|
578595
578640
|
if (!isOpus1mMergeEnabled() && checkOpus1mAccess()) {
|
|
578596
|
-
premiumOptions.push(
|
|
578641
|
+
premiumOptions.push(getMaxOpus5_1MOption(fastMode));
|
|
578597
578642
|
}
|
|
578598
578643
|
premiumOptions.push(MaxSonnet5Option);
|
|
578599
578644
|
if (checkSonnet1mAccess()) {
|
|
@@ -578611,7 +578656,7 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
578611
578656
|
} else {
|
|
578612
578657
|
standardOptions.push(getMaxOpusOption(fastMode));
|
|
578613
578658
|
if (checkOpus1mAccess()) {
|
|
578614
|
-
standardOptions.push(
|
|
578659
|
+
standardOptions.push(getMaxOpus5_1MOption(fastMode));
|
|
578615
578660
|
}
|
|
578616
578661
|
}
|
|
578617
578662
|
standardOptions.push(MaxHaiku45Option);
|
|
@@ -578626,9 +578671,9 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
578626
578671
|
if (isOpus1mMergeEnabled()) {
|
|
578627
578672
|
payg1POptions.push(getMergedOpus1MOption(fastMode));
|
|
578628
578673
|
} else {
|
|
578629
|
-
payg1POptions.push(
|
|
578674
|
+
payg1POptions.push(getOpus5Option(fastMode));
|
|
578630
578675
|
if (checkOpus1mAccess()) {
|
|
578631
|
-
payg1POptions.push(
|
|
578676
|
+
payg1POptions.push(getOpus5_1MOption(fastMode));
|
|
578632
578677
|
}
|
|
578633
578678
|
}
|
|
578634
578679
|
payg1POptions.push(getHaiku45Option());
|
|
@@ -578784,6 +578829,7 @@ var init_modelOptions = __esm(() => {
|
|
|
578784
578829
|
init_auth6();
|
|
578785
578830
|
init_modelStrings();
|
|
578786
578831
|
init_modelCost();
|
|
578832
|
+
init_figures2();
|
|
578787
578833
|
init_settings2();
|
|
578788
578834
|
init_check1mAccess();
|
|
578789
578835
|
init_providers();
|
|
@@ -738403,6 +738449,8 @@ function sdkCompatToolName(name3) {
|
|
|
738403
738449
|
function buildSystemInitMessage(inputs) {
|
|
738404
738450
|
const settings = getSettings_DEPRECATED();
|
|
738405
738451
|
const outputStyle = settings?.outputStyle ?? DEFAULT_OUTPUT_STYLE_NAME;
|
|
738452
|
+
const mcpClientNames = new Set(inputs.mcpClients.map((client8) => client8.name));
|
|
738453
|
+
const filteredMcpServerErrors = inputs.mcpServerErrors.filter((error52) => !mcpClientNames.has(error52.name));
|
|
738406
738454
|
const initMessage = {
|
|
738407
738455
|
type: "system",
|
|
738408
738456
|
subtype: "init",
|
|
@@ -738413,6 +738461,13 @@ function buildSystemInitMessage(inputs) {
|
|
|
738413
738461
|
name: client8.name,
|
|
738414
738462
|
status: client8.type
|
|
738415
738463
|
})),
|
|
738464
|
+
...filteredMcpServerErrors.length > 0 && {
|
|
738465
|
+
mcp_server_errors: filteredMcpServerErrors.map((error52) => ({
|
|
738466
|
+
name: error52.name,
|
|
738467
|
+
type: error52.type,
|
|
738468
|
+
message: error52.message
|
|
738469
|
+
}))
|
|
738470
|
+
},
|
|
738416
738471
|
model: inputs.model,
|
|
738417
738472
|
permissionMode: inputs.permissionMode,
|
|
738418
738473
|
slash_commands: inputs.commands.filter((c9) => c9.userInvocable !== false).map((c9) => c9.name),
|
|
@@ -742851,6 +742906,7 @@ function useReplBridge(messages, setMessages, abortControllerRef, commands7, mai
|
|
|
742851
742906
|
handleRef.current?.writeSdkMessages([buildSystemInitMessage({
|
|
742852
742907
|
tools: [],
|
|
742853
742908
|
mcpClients: [],
|
|
742909
|
+
mcpServerErrors: [],
|
|
742854
742910
|
model: mainLoopModelRef.current,
|
|
742855
742911
|
permissionMode: state_0.toolPermissionContext.mode,
|
|
742856
742912
|
commands: commandsRef.current.filter(isBridgeSafeCommand),
|
|
@@ -811847,8 +811903,10 @@ var init_claudeApiContent = __esm(() => {
|
|
|
811847
811903
|
init_streaming6();
|
|
811848
811904
|
init_tool_use2();
|
|
811849
811905
|
SKILL_MODEL_VARS = {
|
|
811850
|
-
OPUS_ID: "claude-opus-
|
|
811851
|
-
OPUS_NAME: "Claude Opus
|
|
811906
|
+
OPUS_ID: "claude-opus-5",
|
|
811907
|
+
OPUS_NAME: "Claude Opus 5",
|
|
811908
|
+
PREV_OPUS_ID: "claude-opus-4-8",
|
|
811909
|
+
PREV_OPUS_NAME: "Claude Opus 4.8",
|
|
811852
811910
|
SONNET_ID: "claude-sonnet-4-6",
|
|
811853
811911
|
SONNET_NAME: "Claude Sonnet 4.6",
|
|
811854
811912
|
HAIKU_ID: "claude-haiku-4-5",
|
|
@@ -814853,6 +814911,7 @@ class QueryEngine {
|
|
|
814853
814911
|
yield buildSystemInitMessage({
|
|
814854
814912
|
tools,
|
|
814855
814913
|
mcpClients,
|
|
814914
|
+
mcpServerErrors: [],
|
|
814856
814915
|
model: mainLoopModel,
|
|
814857
814916
|
permissionMode: initialAppState.toolPermissionContext.mode,
|
|
814858
814917
|
commands: commands7,
|