@bitkyc08/opencodex 2.100.6 → 2.100.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/gui/dist/assets/App-BfoDjNBU.js +65 -0
- package/gui/dist/assets/App-hklyKJR5.css +1 -0
- package/gui/dist/assets/{Tray-CVqm4S4W.js → Tray-BN6pxM_V.js} +1 -1
- package/gui/dist/assets/brand-mark-CDZQ-wa9.js +1 -0
- package/gui/dist/assets/index-B85uU8rK.css +2 -0
- package/gui/dist/assets/index-Bt9ze3XN.js +138 -0
- package/gui/dist/assets/{segment-thumb-features-COdzmORE.js → segment-thumb-features-BM5n8NMX.js} +1 -1
- package/gui/dist/classic/assets/App-D4cjNg2I.js +64 -0
- package/gui/dist/classic/assets/App-DSivR528.css +1 -0
- package/gui/dist/classic/assets/{Tray-BDlcOLDK.js → Tray-DTgGR7wt.js} +1 -1
- package/gui/dist/classic/assets/index-ALDeKRg9.js +138 -0
- package/gui/dist/classic/assets/usage-companion-chart-BC-Nos9Q.js +1 -0
- package/gui/dist/classic/index.html +1 -1
- package/gui/dist/index.html +2 -2
- package/package.json +2 -2
- package/src/adapters/coding-agent/process-tree.ts +30 -0
- package/src/adapters/coding-agent/profile.ts +1 -1
- package/src/adapters/coding-agent/turn.ts +2 -9
- package/src/adapters/command-code-decision-guard.ts +25 -0
- package/src/adapters/cursor/catalog.ts +14 -0
- package/src/adapters/cursor/effort-map.ts +3 -0
- package/src/adapters/google-usage.ts +28 -0
- package/src/adapters/google.ts +9 -26
- package/src/adapters/qoder/adapter.ts +197 -13
- package/src/adapters/registry.ts +13 -0
- package/src/adapters/step-cli/adapter.ts +401 -0
- package/src/adapters/step-cli/constants.ts +11 -0
- package/src/adapters/step-cli/conversation.ts +159 -0
- package/src/adapters/step-cli/env.ts +49 -0
- package/src/adapters/step-cli/errors.ts +76 -0
- package/src/adapters/step-cli/events.ts +227 -0
- package/src/adapters/step-cli/profiles.ts +134 -0
- package/src/adapters/step-cli/projection.ts +242 -0
- package/src/adapters/step-cli/registry.ts +181 -0
- package/src/adapters/step-cli/session-pool.ts +225 -0
- package/src/adapters/step-cli/session.ts +842 -0
- package/src/adapters/step-cli/stdio-frames.ts +330 -0
- package/src/adapters/step-cli/tool-bridge.ts +92 -0
- package/src/cli/claude.ts +5 -2
- package/src/client/link-management-relay.ts +11 -0
- package/src/client/machine-listener.ts +6 -2
- package/src/codex/account-label.ts +1 -1
- package/src/codex/catalog/gather-capture.ts +2 -1
- package/src/codex/catalog/metadata.ts +48 -2
- package/src/codex/catalog/model-hints.ts +19 -5
- package/src/codex/catalog/model-visibility.ts +4 -7
- package/src/codex/catalog/native-ultrafast.ts +8 -6
- package/src/generated/compatibility-version.json +137 -61
- package/src/generated/model-metadata.ts +1 -1
- package/src/lib/client-error-body.ts +2 -0
- package/src/lib/messages-error-body.ts +3 -1
- package/src/lib/optional-shutdown-hooks.ts +55 -5
- package/src/lib/process-control.ts +3 -2
- package/src/lib/shutdown-budget.ts +5 -0
- package/src/link/remote-platform.ts +24 -9
- package/src/link/ssh-argv.ts +8 -2
- package/src/link/ssh-runner.ts +15 -2
- package/src/oauth/m365-copilot-web-session.ts +28 -4
- package/src/protocols/dto.ts +24 -12
- package/src/protocols/settings.ts +20 -16
- package/src/protocols/shadow.ts +2 -3
- package/src/protocols/trace.ts +24 -2
- package/src/providers/command-code-decision-models.ts +65 -0
- package/src/providers/quota.ts +4 -4
- package/src/providers/registry/entries-core.ts +18 -7
- package/src/providers/registry/entries-extended.ts +41 -0
- package/src/providers/registry/model-seeds.ts +42 -0
- package/src/providers/resolved-model-policy-merge.ts +8 -0
- package/src/providers/resolved-model-policy.ts +185 -165
- package/src/providers/slug-codec.ts +5 -0
- package/src/server/chat-native-eligibility.ts +5 -0
- package/src/server/credential-recovery-attempt.ts +2 -2
- package/src/server/gemini-inbound.ts +15 -11
- package/src/server/gemini-native-catalog.ts +27 -2
- package/src/server/gemini-native-wire.ts +71 -6
- package/src/server/gemini-native.ts +129 -34
- package/src/server/index/gemini-routes.ts +6 -1
- package/src/server/lifecycle.ts +2 -1
- package/src/server/management/agent-settings-routes.ts +26 -28
- package/src/server/management/api-access.ts +5 -3
- package/src/server/management/protocol-routes.ts +3 -1
- package/src/server/management/protocol-settings-patch.ts +25 -10
- package/src/server/management/shared.ts +20 -5
- package/src/server/messages-native-eligibility.ts +4 -0
- package/src/server/messages-native-tool-guard.ts +18 -5
- package/src/server/request-log-generation-window.ts +7 -2
- package/src/server/responses/command-code-decision-refusal.ts +24 -0
- package/src/server/responses/compact.ts +2 -2
- package/src/server/responses/core-combo.ts +18 -3
- package/src/server/responses/core-pipeline.ts +6 -0
- package/src/server/responses/sidecar-execution.ts +10 -7
- package/src/types/config.ts +2 -0
- package/src/usage/expected-prices.ts +17 -0
- package/src/usage/telemetry-contract.ts +3 -0
- package/gui/dist/assets/App-BI8LQ7Qk.css +0 -1
- package/gui/dist/assets/App-CsZ1Gr7S.js +0 -60
- package/gui/dist/assets/brand-mark-BebhnAtV.js +0 -1
- package/gui/dist/assets/index-BtwVlpeQ.css +0 -2
- package/gui/dist/assets/index-CEeMegqE.js +0 -138
- package/gui/dist/classic/assets/App-BJgUWNJ8.js +0 -59
- package/gui/dist/classic/assets/App-CoiVLRW3.css +0 -1
- package/gui/dist/classic/assets/index-B9Jgli_W.js +0 -138
- package/gui/dist/classic/assets/usage-companion-chart-vbzDcND0.js +0 -1
|
@@ -17,6 +17,7 @@ import type { OcxConfig } from "../../types";
|
|
|
17
17
|
|
|
18
18
|
export interface ProtocolSettingsPatch {
|
|
19
19
|
messagesEnabled?: boolean;
|
|
20
|
+
geminiEnabled?: boolean;
|
|
20
21
|
unrepresentable?: UnrepresentablePolicy;
|
|
21
22
|
rollout?: Partial<ProtocolRolloutSettings>;
|
|
22
23
|
}
|
|
@@ -25,7 +26,7 @@ export type ParsedProtocolSettingsPatch =
|
|
|
25
26
|
| { ok: true; patch: ProtocolSettingsPatch }
|
|
26
27
|
| { ok: false; code: string; message: string };
|
|
27
28
|
|
|
28
|
-
const PATCH_KEYS = new Set(["messagesEnabled", "unrepresentable", "rollout"]);
|
|
29
|
+
const PATCH_KEYS = new Set(["messagesEnabled", "geminiEnabled", "unrepresentable", "rollout"]);
|
|
29
30
|
export const PROTOCOL_ROLLOUT_KEYS = [
|
|
30
31
|
"nativeChatCombos",
|
|
31
32
|
"managedMessagesNative",
|
|
@@ -50,15 +51,19 @@ function invalid(code: string, message: string): ParsedProtocolSettingsPatch {
|
|
|
50
51
|
export function parseProtocolSettingsPatch(body: unknown): ParsedProtocolSettingsPatch {
|
|
51
52
|
if (!isRec(body)) return invalid("invalid_body", "body must be a JSON object");
|
|
52
53
|
const keys = Object.keys(body);
|
|
53
|
-
if (keys.length === 0) return invalid("empty_body", "body must set messagesEnabled, unrepresentable or rollout");
|
|
54
|
+
if (keys.length === 0) return invalid("empty_body", "body must set messagesEnabled, geminiEnabled, unrepresentable or rollout");
|
|
54
55
|
for (const key of keys) {
|
|
55
|
-
if (!PATCH_KEYS.has(key)) return invalid("unknown_field", "body accepts only messagesEnabled, unrepresentable and rollout");
|
|
56
|
+
if (!PATCH_KEYS.has(key)) return invalid("unknown_field", "body accepts only messagesEnabled, geminiEnabled, unrepresentable and rollout");
|
|
56
57
|
}
|
|
57
58
|
const patch: ProtocolSettingsPatch = {};
|
|
58
59
|
if (body.messagesEnabled !== undefined) {
|
|
59
60
|
if (typeof body.messagesEnabled !== "boolean") return invalid("invalid_messages_enabled", "messagesEnabled must be a boolean");
|
|
60
61
|
patch.messagesEnabled = body.messagesEnabled;
|
|
61
62
|
}
|
|
63
|
+
if (body.geminiEnabled !== undefined) {
|
|
64
|
+
if (typeof body.geminiEnabled !== "boolean") return invalid("invalid_gemini_enabled", "geminiEnabled must be a boolean");
|
|
65
|
+
patch.geminiEnabled = body.geminiEnabled;
|
|
66
|
+
}
|
|
62
67
|
if (body.unrepresentable !== undefined) {
|
|
63
68
|
if (body.unrepresentable !== "legacy" && body.unrepresentable !== "reject") {
|
|
64
69
|
return invalid("invalid_unrepresentable", "unrepresentable must be \"legacy\" or \"reject\"");
|
|
@@ -131,14 +136,24 @@ export function applyProtocolSettingsPatch(config: OcxConfig, patch: ProtocolSet
|
|
|
131
136
|
}
|
|
132
137
|
|
|
133
138
|
let claudeCodeChanged = false;
|
|
134
|
-
if (patch.messagesEnabled !== undefined) {
|
|
135
|
-
|
|
136
|
-
const surfaces: Rec = isRec(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
if (patch.messagesEnabled !== undefined || patch.geminiEnabled !== undefined) {
|
|
140
|
+
const current = config.apiSurfaces;
|
|
141
|
+
const surfaces: Rec = isRec(current) ? { ...current } : {};
|
|
142
|
+
for (const [name, enabled] of [
|
|
143
|
+
["messages", patch.messagesEnabled],
|
|
144
|
+
["gemini", patch.geminiEnabled],
|
|
145
|
+
] as const) {
|
|
146
|
+
if (enabled === undefined) continue;
|
|
147
|
+
const surface = surfaces[name];
|
|
148
|
+
surfaces[name] = { ...(isRec(surface) ? surface : {}), enabled };
|
|
149
|
+
}
|
|
150
|
+
if (current !== undefined && !isRec(current)) {
|
|
151
|
+
// Repairing the malformed parent must preserve closed sibling surfaces.
|
|
152
|
+
if (patch.messagesEnabled === undefined) surfaces.messages = { enabled: false };
|
|
153
|
+
if (patch.geminiEnabled === undefined) surfaces.gemini = { enabled: false };
|
|
154
|
+
}
|
|
140
155
|
config.apiSurfaces = surfaces as OcxConfig["apiSurfaces"];
|
|
141
|
-
if (
|
|
156
|
+
if (patch.messagesEnabled === false && config.claudeCode?.enabled !== false) {
|
|
142
157
|
commitClaudeCodeBlock(config, { ...(config.claudeCode ?? {}), enabled: false });
|
|
143
158
|
claudeCodeChanged = true;
|
|
144
159
|
}
|
|
@@ -59,7 +59,7 @@ import type { OcxClaudeCodeConfig, OcxClaudeDesktopProfile, OcxConfig, OcxCustom
|
|
|
59
59
|
import type { DesktopProfileModel } from "../../claude/desktop-profile";
|
|
60
60
|
import { drainAndShutdown } from "../lifecycle";
|
|
61
61
|
import { filterRequestLogs, getRequestLogEntries, type RequestLogEntry } from "../request-log";
|
|
62
|
-
import { creditChargeUnrepresentable, estimateComboCost, estimateRequestCost, serviceTierContext, normalizeCostTokens, tokensPerSecond } from "../../usage/cost";
|
|
62
|
+
import { creditChargeUnrepresentable, estimateAttemptCost, estimateComboCost, estimateRequestCost, serviceTierContext, normalizeCostTokens, tokensPerSecond } from "../../usage/cost";
|
|
63
63
|
import { costTokensWithinBound, isRepresentableCreditCount } from "../../usage/credit-billing";
|
|
64
64
|
import type { PersistedUsageAttempt } from "../../usage/log";
|
|
65
65
|
import { usageModelPriceOptions } from "../../usage/model-identity";
|
|
@@ -87,7 +87,7 @@ export type MetricUnavailableReason =
|
|
|
87
87
|
| "usage_missing" | "usage_unsupported" | "output_missing" | "invalid_duration"
|
|
88
88
|
| "price_unmatched" | "invalid_cache_breakdown"
|
|
89
89
|
| "invalid_usage" | "combo_attempt_unavailable"
|
|
90
|
-
| "ttft_missing" | "decode_window_too_short"
|
|
90
|
+
| "ttft_missing" | "decode_window_missing" | "decode_window_too_short"
|
|
91
91
|
// The row is credit-priced, but `providerCredits x creditPriceUsd` cannot be represented (an
|
|
92
92
|
// out-of-bound price or credit count, or an overflowing product). It is deliberately not
|
|
93
93
|
// `price_unmatched`-with-a-token-estimate: falling back would report a different amount than
|
|
@@ -112,9 +112,10 @@ export type CostEstimateReason =
|
|
|
112
112
|
|
|
113
113
|
export type CostResult =
|
|
114
114
|
| { kind: "value"; estimate: NonNullable<ReturnType<typeof estimateRequestCost>>; estimateReasons: CostEstimateReason[] }
|
|
115
|
+
| { kind: "partial"; subtotalUsd: number; unpricedAttempts: number }
|
|
115
116
|
| { kind: "unavailable"; reason: MetricUnavailableReason };
|
|
116
117
|
|
|
117
|
-
export type MetricSource = Pick<RequestLogEntry, "provider" | "model" | "durationMs" | "firstOutputMs" | "genStartMs" | "lastOutputMs" | "usageStatus" | "usage" | "requestedServiceTier" | "configuredServiceTier" | "responseServiceTier" | "tierOutcome" | "routeDecision" | "cacheProvenance"> & {
|
|
118
|
+
export type MetricSource = Pick<RequestLogEntry, "provider" | "model" | "durationMs" | "firstOutputMs" | "genStartMs" | "lastOutputMs" | "protocolTrace" | "usageStatus" | "usage" | "requestedServiceTier" | "configuredServiceTier" | "responseServiceTier" | "tierOutcome" | "routeDecision" | "cacheProvenance"> & {
|
|
118
119
|
attempts?: readonly PersistedUsageAttempt[];
|
|
119
120
|
};
|
|
120
121
|
|
|
@@ -162,7 +163,7 @@ export const MIN_DECODE_WINDOW_MS = 1_000;
|
|
|
162
163
|
* generation window spans both and stops at the last delta rather than at stream close.
|
|
163
164
|
*/
|
|
164
165
|
export function decodeTokPerSecondResult(
|
|
165
|
-
entry: Pick<MetricSource, "durationMs" | "firstOutputMs" | "genStartMs" | "lastOutputMs" | "usageStatus" | "usage">,
|
|
166
|
+
entry: Pick<MetricSource, "durationMs" | "firstOutputMs" | "genStartMs" | "lastOutputMs" | "protocolTrace" | "usageStatus" | "usage">,
|
|
166
167
|
): DecodeTokPerSecondResult {
|
|
167
168
|
if (!entry.usage) return { kind: "unavailable", reason: "usage_missing" };
|
|
168
169
|
if (entry.usageStatus === "unsupported") return { kind: "unavailable", reason: "usage_unsupported" };
|
|
@@ -176,6 +177,7 @@ export function decodeTokPerSecondResult(
|
|
|
176
177
|
return value === null ? { kind: "unavailable", reason: "invalid_duration" }
|
|
177
178
|
: { kind: "value", value, estimated: true, timingBasis: "generation-window" };
|
|
178
179
|
}
|
|
180
|
+
if (entry.protocolTrace?.inbound === "gemini") return { kind: "unavailable", reason: "decode_window_missing" };
|
|
179
181
|
// A row that predates TTFT capture, or a non-streaming turn that never recorded one, has no
|
|
180
182
|
// window to measure. That is a different fact from a bad duration, so it gets its own reason.
|
|
181
183
|
if (entry.firstOutputMs === undefined) return { kind: "unavailable", reason: "ttft_missing" };
|
|
@@ -245,7 +247,20 @@ export function costResult(entry: MetricSource): CostResult {
|
|
|
245
247
|
const estimate = attempts?.length
|
|
246
248
|
? estimateComboCost(attempts, undefined, tier)
|
|
247
249
|
: estimateRequestCost({ provider: entry.provider, model: entry.model, usage: entry.usage, usageStatus: entry.usageStatus, serviceTier: tier, ...usageModelPriceOptions(entry, entry) });
|
|
248
|
-
if (!estimate)
|
|
250
|
+
if (!estimate) {
|
|
251
|
+
// Keep the shared request-total contract. Native Gemini credential replays can show a
|
|
252
|
+
// separate subtotal from the attempts for which we do have a price.
|
|
253
|
+
if (entry.protocolTrace?.inbound === "gemini" && entry.protocolTrace.mode === "native"
|
|
254
|
+
&& attempts?.some(attempt => attempt.recoveryKinds.includes("oauth-401"))) {
|
|
255
|
+
const priced = attempts.flatMap(attempt => estimateAttemptCost(attempt, undefined, tier) ?? []);
|
|
256
|
+
const unpricedAttempts = attempts.length - priced.length;
|
|
257
|
+
const subtotalUsd = priced.reduce((sum, attempt) => sum + attempt.cost.total, 0);
|
|
258
|
+
if (priced.length && unpricedAttempts > 0 && Number.isFinite(subtotalUsd)) {
|
|
259
|
+
return { kind: "partial", subtotalUsd, unpricedAttempts };
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return { kind: "unavailable", reason: unavailableCostReason(entry) };
|
|
263
|
+
}
|
|
249
264
|
// Provenance follows the basis that produced the amount. A credit charge is
|
|
250
265
|
// `providerCredits x creditPriceUsd`; the token rates were resolved only to decide whether the
|
|
251
266
|
// row falls back to them, so anything derived from those rates — a cache-detail caveat, a price
|
|
@@ -14,6 +14,7 @@ import { resolveProtocolSettings } from "../protocols/settings";
|
|
|
14
14
|
import type { RouteResult } from "../router";
|
|
15
15
|
import type { OcxConfig } from "../types";
|
|
16
16
|
import { configuredAnthropicInstance } from "../providers/anthropic-instance";
|
|
17
|
+
import { isCommandCodeDecisionRoute } from "../providers/command-code-decision-models";
|
|
17
18
|
import { requiresVisionPreprocessing } from "../vision";
|
|
18
19
|
import { resolvePinnedEffort } from "./effort-policy";
|
|
19
20
|
|
|
@@ -29,6 +30,7 @@ export type NativeMessagesDeclineReason = Extract<
|
|
|
29
30
|
| "fast-row"
|
|
30
31
|
| "vision-preprocessing"
|
|
31
32
|
| "bridge-only-policy"
|
|
33
|
+
| "compatibility-reject"
|
|
32
34
|
>;
|
|
33
35
|
|
|
34
36
|
/** Request facts the body cannot carry. */
|
|
@@ -137,6 +139,8 @@ export function nativeMessagesDeclineReason(
|
|
|
137
139
|
if (!resolveProtocolSettings(config, route.providerName).rollout.managedMessagesNative) return "rollout-disabled";
|
|
138
140
|
const provider = route.provider;
|
|
139
141
|
if (provider.adapter !== "anthropic") return "cross-wire-ir";
|
|
142
|
+
// Command Code decision models are not chat models (#8997); the bridged path refuses them.
|
|
143
|
+
if (isCommandCodeDecisionRoute(provider, route.modelId)) return "compatibility-reject";
|
|
140
144
|
const credentialDecline = credentialDeclineReason(route, config, selector);
|
|
141
145
|
if (credentialDecline) return credentialDecline;
|
|
142
146
|
if (route.combo || route.routeKind === "combo" || route.routeKind === "policy") return "combo-or-policy-route";
|
|
@@ -64,6 +64,7 @@ export function guardNativeMessagesEmptyToolCatalog(
|
|
|
64
64
|
const permittedInputBlocks = new Set<number>();
|
|
65
65
|
let queuedBytes = 0;
|
|
66
66
|
let settled = false;
|
|
67
|
+
let pendingLineFeed = false;
|
|
67
68
|
const releaseQueued = () => {
|
|
68
69
|
budget.releaseRetained(queuedBytes, scope);
|
|
69
70
|
queuedBytes = 0;
|
|
@@ -74,13 +75,13 @@ export function guardNativeMessagesEmptyToolCatalog(
|
|
|
74
75
|
budget.releaseRetained(permittedInputBlocks.size * 32, scope);
|
|
75
76
|
permittedInputBlocks.clear();
|
|
76
77
|
};
|
|
77
|
-
const enqueue = (controller: ReadableStreamDefaultController<Uint8Array>, text: string, original
|
|
78
|
+
const enqueue = (controller: ReadableStreamDefaultController<Uint8Array>, text: string, original?: string, refusal = false) => {
|
|
78
79
|
const bytes = Buffer.byteLength(text);
|
|
79
80
|
const reservation = budget.reserveTransient(bytes, scope);
|
|
80
81
|
try {
|
|
81
82
|
const encoded = encoder.encode(text);
|
|
82
83
|
if (refusal) frames?.register(encoded, { client: messagesSseLocalFrame("guard", "") });
|
|
83
|
-
else hooks?.output(original, encoded);
|
|
84
|
+
else if (original !== undefined) hooks?.output(original, encoded);
|
|
84
85
|
controller.enqueue(encoded);
|
|
85
86
|
reservation.commitRetained();
|
|
86
87
|
queuedBytes += bytes;
|
|
@@ -136,7 +137,8 @@ export function guardNativeMessagesEmptyToolCatalog(
|
|
|
136
137
|
budget.releaseRetained(32, scope);
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
+
const frame = block + delimiter;
|
|
141
|
+
enqueue(controller, frame, frame);
|
|
140
142
|
if (terminal) {
|
|
141
143
|
settled = true;
|
|
142
144
|
clear();
|
|
@@ -152,6 +154,7 @@ export function guardNativeMessagesEmptyToolCatalog(
|
|
|
152
154
|
for (;;) {
|
|
153
155
|
const block = buffer.next();
|
|
154
156
|
if (block) {
|
|
157
|
+
pendingLineFeed = block.delimiter.endsWith("\r") && buffer.isEmpty();
|
|
155
158
|
buffer.compact();
|
|
156
159
|
process(controller, block.block, block.delimiter);
|
|
157
160
|
return;
|
|
@@ -159,8 +162,18 @@ export function guardNativeMessagesEmptyToolCatalog(
|
|
|
159
162
|
const { done, value } = await reader.read();
|
|
160
163
|
if (settled) return;
|
|
161
164
|
if (!done) {
|
|
162
|
-
hooks?.input(value, buffer.isEmpty());
|
|
163
|
-
|
|
165
|
+
hooks?.input(value, buffer.isEmpty(), !buffer.isEmpty() && buffer.endsWithLineFeed(), pendingLineFeed);
|
|
166
|
+
const fragment = decoder.decode(value, { stream: true });
|
|
167
|
+
if (pendingLineFeed && fragment.length > 0) {
|
|
168
|
+
pendingLineFeed = false;
|
|
169
|
+
if (fragment.startsWith("\n")) {
|
|
170
|
+
// This LF extends an emitted delimiter and carries no frame origin.
|
|
171
|
+
buffer.append(fragment.slice(1));
|
|
172
|
+
enqueue(controller, "\n");
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
buffer.append(fragment);
|
|
164
177
|
continue;
|
|
165
178
|
}
|
|
166
179
|
buffer.append(decoder.decode());
|
|
@@ -18,11 +18,16 @@ export function recordGenerationEvent(logCtx: RequestLogContext, type: unknown,
|
|
|
18
18
|
if (type === "content_block_start" || type === "response.output_item.added") {
|
|
19
19
|
logCtx.generationStartedAt ??= now;
|
|
20
20
|
} else if (type === "content_block_delta" || (type.startsWith("response.") && type.endsWith(".delta"))) {
|
|
21
|
-
logCtx
|
|
22
|
-
logCtx.lastOutputAt = now;
|
|
21
|
+
recordGenerationOutput(logCtx, now);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
/** Mark the receipt of a generated delta after the protocol-specific decoder recognizes it. */
|
|
26
|
+
export function recordGenerationOutput(logCtx: RequestLogContext, now = Date.now()): void {
|
|
27
|
+
logCtx.generationStartedAt ??= now;
|
|
28
|
+
logCtx.lastOutputAt = now;
|
|
29
|
+
}
|
|
30
|
+
|
|
26
31
|
/** Request-relative `genStartMs` / `lastOutputMs`, present only when both ends were observed. */
|
|
27
32
|
export function generationWindowFields(
|
|
28
33
|
logCtx: Pick<RequestLogContext, "generationStartedAt" | "lastOutputAt">,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { markProxyError, rememberProxyErrorMessage } from "../../lib/client-error-body";
|
|
2
|
+
import { COMMAND_CODE_DECISION_MODEL_MESSAGE, isCommandCodeDecisionRoute } from "../../providers/command-code-decision-models";
|
|
3
|
+
import type { OcxProviderConfig } from "../../types";
|
|
4
|
+
import { markPolicyCandidateRefusal } from "./policy-request-scope";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The Responses pipeline's early refusal of a Command Code System One decision model (#8997),
|
|
8
|
+
* taken before sidecar auth or any sidecar work (vision, web search) can spend effort on a request
|
|
9
|
+
* no Command Code chat endpoint will serve. Every combo and policy candidate runs this pipeline.
|
|
10
|
+
*
|
|
11
|
+
* - 404 `model_not_found` is the shape OpenAI itself answers for a model that is not a chat model,
|
|
12
|
+
* and the code combos read as target-local, so a combo listing a decision model moves on.
|
|
13
|
+
* - Policy-candidate provenance: nothing was sent, so policy fallback skips this candidate without
|
|
14
|
+
* committing its hop or making it the next fallback decision's source.
|
|
15
|
+
*/
|
|
16
|
+
export function commandCodeDecisionRouteRefusal(
|
|
17
|
+
provider: Pick<OcxProviderConfig, "baseUrl">, modelId: string, logCtx: object,
|
|
18
|
+
): Response | undefined {
|
|
19
|
+
if (!isCommandCodeDecisionRoute(provider, modelId)) return undefined;
|
|
20
|
+
rememberProxyErrorMessage(logCtx, COMMAND_CODE_DECISION_MODEL_MESSAGE, { status: 404, type: "invalid_request_error", code: "model_not_found" });
|
|
21
|
+
return markPolicyCandidateRefusal(markProxyError(new Response(JSON.stringify({ error: {
|
|
22
|
+
type: "invalid_request_error", code: "model_not_found", param: null, message: COMMAND_CODE_DECISION_MODEL_MESSAGE,
|
|
23
|
+
} }), { status: 404, headers: { "Content-Type": "application/json" } })));
|
|
24
|
+
}
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
usageFromResponsesPayload,
|
|
211
211
|
type RequestLogContext,
|
|
212
212
|
} from "../request-log";
|
|
213
|
-
import {
|
|
213
|
+
import { noteCredentialAttemptSend, sealCredentialRefusal } from "../credential-recovery-attempt";
|
|
214
214
|
import type { AttemptRecoveryKind } from "../../usage/log";
|
|
215
215
|
import {
|
|
216
216
|
consumeForInspection,
|
|
@@ -1290,7 +1290,7 @@ export async function handleResponsesCompact(
|
|
|
1290
1290
|
{ ...init, headers: sendHeaders, body: JSON.stringify({ ...buildCompactSendBody() as typeof compactBody, model: route.modelId }) },
|
|
1291
1291
|
init.signal ?? req.signal, connectMs(), false, physicalFetch);
|
|
1292
1292
|
} : undefined,
|
|
1293
|
-
onPhysicalDispatch: () => {
|
|
1293
|
+
onPhysicalDispatch: () => { noteCredentialAttemptSend(logCtx, route, sendProvider, receipt?.recovery ?? upstreamRecovery); receipt?.onDispatch?.(); },
|
|
1294
1294
|
}),
|
|
1295
1295
|
// Every credential-bearing forward send gets manual redirects, not only
|
|
1296
1296
|
// pool sends: direct mode carries the caller's credential too (#914).
|
|
@@ -94,6 +94,8 @@ import {
|
|
|
94
94
|
import { codexAccountLogLabel, oauthAccountLogLabel } from "../../codex/account-label";
|
|
95
95
|
import { isGenericFailoverProvider, rotateGenericOAuthAccountOn429 } from "../../oauth/generic-account-failover";
|
|
96
96
|
import { codexQuotaScopeForModel, getCodexQuotaHealthSnapshot } from "../../codex/routing";
|
|
97
|
+
import { MAIN_CODEX_ACCOUNT_ID } from "../../codex/account-id";
|
|
98
|
+
import { providerCodexAccountMode } from "../../providers/registry";
|
|
97
99
|
import { isCanonicalOpenAiForwardProvider, OPENAI_CODEX_PROVIDER_ID } from "../../providers/openai-tiers";
|
|
98
100
|
import type { AgentTaskRecoveryFailureReason } from "./agent-task-recovery";
|
|
99
101
|
import {
|
|
@@ -178,7 +180,7 @@ function resolvedComboDestination(config: OcxConfig, target: { provider: string;
|
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
function cooledPoolAccountLabel(config: OcxConfig, providerName: string, modelId: string, label: string | undefined): string | undefined {
|
|
183
|
+
export function cooledPoolAccountLabel(config: OcxConfig, providerName: string, modelId: string, label: string | undefined): string | undefined {
|
|
182
184
|
if (!label) return undefined;
|
|
183
185
|
const instance = configuredAnthropicInstance(config, providerName);
|
|
184
186
|
if (instance && config.providers[providerName]?.authMode === "oauth") {
|
|
@@ -188,10 +190,20 @@ function cooledPoolAccountLabel(config: OcxConfig, providerName: string, modelId
|
|
|
188
190
|
}
|
|
189
191
|
const provider = config.providers[providerName];
|
|
190
192
|
if (!provider || !isCanonicalOpenAiForwardProvider(provider)) return undefined;
|
|
193
|
+
const quotaScope = codexQuotaScopeForModel(modelId);
|
|
194
|
+
// The main account logs as `<provider>-main` and is not a `codexAccounts` entry (#8880). In pool
|
|
195
|
+
// mode the pool rotates past a cooled main itself, so its 429 is account evidence exactly like a
|
|
196
|
+
// pool account's, and parking the target would black out the siblings and main's own recovery for
|
|
197
|
+
// the upstream Retry-After (up to 24h). Direct mode serves main without that check, so there the
|
|
198
|
+
// target cooldown stays the only guard against re-sending to a spent account.
|
|
199
|
+
if (label === `${providerName}-main`) {
|
|
200
|
+
return providerCodexAccountMode(providerName, provider) === "pool"
|
|
201
|
+
&& getCodexQuotaHealthSnapshot(MAIN_CODEX_ACCOUNT_ID, quotaScope) ? label : undefined;
|
|
202
|
+
}
|
|
191
203
|
const matches = (config.codexAccounts ?? []).filter(account =>
|
|
192
204
|
`${providerName}-${codexAccountLogLabel(account)}` === label);
|
|
193
205
|
return matches.length === 1
|
|
194
|
-
&& getCodexQuotaHealthSnapshot(matches[0]!.id,
|
|
206
|
+
&& getCodexQuotaHealthSnapshot(matches[0]!.id, quotaScope)
|
|
195
207
|
? label : undefined;
|
|
196
208
|
}
|
|
197
209
|
|
|
@@ -1815,7 +1827,10 @@ export async function executeComboResponses(
|
|
|
1815
1827
|
const failedTargetKey = targetKey(pick.target);
|
|
1816
1828
|
let failedTargetCooldownRecorded = false;
|
|
1817
1829
|
// The dispatch rewrote this to name the pool account that actually served the turn.
|
|
1818
|
-
|
|
1830
|
+
// The pool logs its main account under the bare provider name and carries "main" only as the
|
|
1831
|
+
// account label, which is stamped for pool and main-pool contexts alone (#8880).
|
|
1832
|
+
const poolAccountLabel = poolAccountProviderLabel(childLog.provider, pick.target.provider)
|
|
1833
|
+
?? (childLog.accountLogLabel === "main" ? `${pick.target.provider}-main` : undefined);
|
|
1819
1834
|
const failedAccount = failure.response.status === 402
|
|
1820
1835
|
? creditRefusedAnthropicAccountLabel(
|
|
1821
1836
|
config, pick.target.provider, pick.target.model, poolAccountLabel, failure.classificationText, failure.upstreamCode,
|
|
@@ -29,6 +29,7 @@ import { InvalidRetainedCompactionSummary, prepareCompactionRetention } from "./
|
|
|
29
29
|
import { responsesHasInstructionImage } from "../../adapters/claude-cli/instruction-images";
|
|
30
30
|
import { markResponseNonReplayable } from "../../lib/upstream-retry";
|
|
31
31
|
import { agyAcpPreflightResponse } from "./agy-acp-preflight";
|
|
32
|
+
import { commandCodeDecisionRouteRefusal } from "./command-code-decision-refusal";
|
|
32
33
|
|
|
33
34
|
/** Compose request phases while retaining the original admission-finally ownership. */
|
|
34
35
|
export async function handleResponsesInner(
|
|
@@ -48,6 +49,11 @@ export async function handleResponsesInner(
|
|
|
48
49
|
try {
|
|
49
50
|
const requestState = await prepareResponsesRequest(requestContext, admissionState, requestDispatchers);
|
|
50
51
|
if (requestState instanceof Response) return requestState;
|
|
52
|
+
// #8997: refuse a Command Code decision model before transport preparation (OAuth credential
|
|
53
|
+
// resolution or refresh), sidecar auth or sidecar work. Nothing is sent, so the candidate is not
|
|
54
|
+
// reported as a compaction-recovery source route either.
|
|
55
|
+
const decisionRefusal = commandCodeDecisionRouteRefusal(requestState.route.provider, requestState.parsed.modelId, logCtx);
|
|
56
|
+
if (decisionRefusal) return decisionRefusal;
|
|
51
57
|
const transportState = await prepareResponsesTransport(requestContext, admissionState, requestState);
|
|
52
58
|
if (transportState instanceof Response) return markProxyError(transportState);
|
|
53
59
|
const agyAcpRefusal = agyAcpPreflightResponse({
|
|
@@ -497,13 +497,16 @@ export async function executeResponsesSidecars(
|
|
|
497
497
|
"auth-recovery",
|
|
498
498
|
`${route.providerName}|${route.modelId}|sidecar-anthropic-429`,
|
|
499
499
|
);
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
500
|
+
let nextAccountId: string | null;
|
|
501
|
+
try {
|
|
502
|
+
nextAccountId = await rotateAnthropicAccountOnResponseForInstance(anthropicInstance,
|
|
503
|
+
originalResponse ?? new Response(null, { status: 429, headers: responseHeaders ?? (retryAfter ? { "retry-after": retryAfter } : undefined) }), {
|
|
504
|
+
config, accountId: transportState.anthropicPoolAccountId, sessionKey: anthropicSessionKey,
|
|
505
|
+
model: route.modelId, requestKey: transportState, decision: transportState.anthropicRouteDecision, currentDecision: currentAnthropicRouteDecision, signal: options.abortSignal,
|
|
506
|
+
allow429Recovery: !sidecarHasCommittedOutput(), allowAccountRefusal: !sidecarHasCommittedOutput(),
|
|
507
|
+
canRetry: hop.allowed && transportState.anthropicPoolFailovers < transportState.anthropicFailoverLimit,
|
|
508
|
+
});
|
|
509
|
+
} catch (error) { hop.permit?.release(); throw error; }
|
|
507
510
|
if (!nextAccountId) {
|
|
508
511
|
hop.permit?.release();
|
|
509
512
|
return null;
|
package/src/types/config.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface OcxApiSurfacesConfig {
|
|
|
24
24
|
* `claudeCode.enabled !== false`"; a present non-boolean value disables the surface.
|
|
25
25
|
*/
|
|
26
26
|
messages?: { enabled?: boolean };
|
|
27
|
+
/** Gemini-compatible routes. The surface is open by default. */
|
|
28
|
+
gemini?: { enabled?: boolean };
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/** Protocol delivery policy (devlog/_plan/260924_protocol_first_class). */
|
|
@@ -98,6 +98,16 @@ const GEMINI_38_FLASH: Cost4 = { input: 0.75, output: 3.75, cacheRead: 0.075, ca
|
|
|
98
98
|
// per 1M through 2026-11-30, stepping up to $4 / $20 / $0.20 on 2026-12-01. Revisit this row
|
|
99
99
|
// then. No free tier. Implicit caching only, so there is no per-token cache-write price.
|
|
100
100
|
const GEMINI_4_ARGON: Cost4 = { input: 2, output: 10, cacheRead: 0.1, cacheWrite: 0 };
|
|
101
|
+
// Standard paid Gemini API rates. Antigravity uses the same token rates as an
|
|
102
|
+
// estimated reference. Its generation usage reports cache hits but no cache-write count.
|
|
103
|
+
const GEMINI_4_API_RATES = [
|
|
104
|
+
{ modelId: "gemini-4-hydrogen", cost4: { input: 1.5, output: 7.5, cacheRead: 0.075, cacheWrite: 0 } },
|
|
105
|
+
{ modelId: "gemini-4-neon", cost4: { input: 3, output: 15, cacheRead: 0.15, cacheWrite: 0 } },
|
|
106
|
+
].map(row => ({
|
|
107
|
+
...row,
|
|
108
|
+
source: `https://ai.google.dev/gemini-api/docs/pricing#${row.modelId} (Standard paid tier)`,
|
|
109
|
+
verifiedAt: "2026-11-19",
|
|
110
|
+
}));
|
|
101
111
|
const MINIMAX_M21_HIGHSPEED: Cost4 = { input: 0.6, output: 2.4, cacheRead: 0.03, cacheWrite: 0.375 };
|
|
102
112
|
const KIMI_K3: Cost4 = { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3 };
|
|
103
113
|
// K3.1 Pro and its highspeed variant: flat 1M-context pricing (no context tiering). Like K3,
|
|
@@ -412,6 +422,12 @@ export const EXPECTED_PRICE_OVERLAYS: readonly ExpectedPriceOverlay[] = [
|
|
|
412
422
|
// 3.7 Flash rides CCA, whose billing equivalence to the Developer API list price is
|
|
413
423
|
// not published, so this is `verified-derived` rather than `verified`: the number is
|
|
414
424
|
// proven, the claim that Antigravity charges it is inferred.
|
|
425
|
+
...GEMINI_4_API_RATES.flatMap(row => [
|
|
426
|
+
row.modelId, ...["low", "medium", "high", "xhigh"].map(effort => `${row.modelId}-${effort}`),
|
|
427
|
+
].map(modelId => ({
|
|
428
|
+
...row, provider: "google-antigravity", modelId,
|
|
429
|
+
source: `derived: Gemini API reference price ${row.source}`, status: "verified-derived" as const,
|
|
430
|
+
}))),
|
|
415
431
|
// Gemini 4 Argon on Antigravity (AI Ultra / Enterprise only): the picker id plus its three
|
|
416
432
|
// verified CCA wire ids. Billing equivalence to the API price is inferred.
|
|
417
433
|
{ provider: "google-antigravity", modelId: "gemini-4-argon", cost4: GEMINI_4_ARGON, source: `derived: Gemini 4 Argon introductory rate through 2026-11-30 ${GEMINI_4_ARGON_PRICING}`, verifiedAt: "2026-10-14", status: "verified-derived" },
|
|
@@ -471,6 +487,7 @@ export const EXPECTED_PRICE_OVERLAYS: readonly ExpectedPriceOverlay[] = [
|
|
|
471
487
|
{ provider: "google-antigravity", modelId: "gemini-3.5-flash-high", cost4: GEMINI_36_FLASH, source: `compat alias -> gemini-3.6-flash-high ${GEMINI_PRICING}`, verifiedAt: "2026-07-22", status: "verified-derived" },
|
|
472
488
|
{ provider: "google-antigravity", modelId: "gemini-3-flash-agent", cost4: GEMINI_36_FLASH, source: `compat alias -> gemini-3.6-flash-high ${GEMINI_PRICING}`, verifiedAt: "2026-07-22", status: "verified-derived" },
|
|
473
489
|
// Direct Google Gemini API current model (verified — published table).
|
|
490
|
+
...GEMINI_4_API_RATES.map(row => ({ ...row, provider: "google", status: "verified" as const })),
|
|
474
491
|
{ provider: "google", modelId: "gemini-3.6-flash", cost4: GEMINI_36_FLASH, source: GEMINI_PRICING, verifiedAt: "2026-07-22", status: "verified" },
|
|
475
492
|
// Developer API row: the price IS published for this surface, so `verified`.
|
|
476
493
|
{ provider: "google", modelId: "gemini-3.7-flash", cost4: GEMINI_37_FLASH, source: GEMINI_37_PRICING, verifiedAt: "2026-08-14", status: "verified" },
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
* being a contract.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
/** Public, opaque account labels used by the usage log and dashboard. */
|
|
16
|
+
export const ACCOUNT_LOG_LABEL_RE = /^(?:main|[po][a-f0-9]{6}|k[a-f0-9]{32})$/;
|
|
17
|
+
|
|
15
18
|
/**
|
|
16
19
|
* Recovery kinds recorded per attempt in the usage log; the dashboard renders localized labels
|
|
17
20
|
* for these wire values.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@layer legacy{.fallback-panel{gap:var(--space-2);flex-direction:column;display:flex}.fallback-panel .card-sub{margin:0;padding:2px 0 0}.fallback-panel h3{margin:0}.fallback-switch-row{justify-content:space-between;align-items:center;gap:var(--space-3);display:flex}.fallback-overrides ul{gap:var(--space-1);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.fallback-overrides li{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.fallback-overrides li>button{margin-left:auto}.fallback-devices{border-collapse:collapse;width:100%}.fallback-devices th,.fallback-devices td{text-align:left;padding:var(--space-1) var(--space-3) var(--space-1) 0;vertical-align:middle}.fallback-devices th:not(:first-child),.fallback-devices td:not(:first-child){width:7rem}.fallback-device-head th{color:var(--muted);font-size:var(--text-label);font-weight:inherit}.fallback-device-id{margin-left:var(--space-2);color:var(--muted)}.fallback-last p{margin:0}.pws-detail-id{font-size:var(--text-caption);color:var(--muted);margin-left:var(--space-2);font-weight:500}.pws-first-response{gap:var(--space-1);margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--border);font-size:var(--text-label);display:grid}.pws-first-response-row{align-items:baseline;gap:var(--space-2);flex-wrap:wrap;display:flex}.pws-first-response-label{min-width:7.5rem;color:var(--muted);font-weight:500}.pws-completion-test{align-items:start;gap:var(--space-2);margin-top:var(--space-4);grid-template-columns:minmax(0,1fr) auto;display:grid}.pws-completion-test>h4,.pws-completion-bulk,.pws-completion-result{grid-column:1/-1}.pws-completion-test>.custom-select{min-width:0}.pws-completion-result{overflow-wrap:anywhere}.pws-completion-bulk-actions{gap:var(--space-2)}.pws-completion-table{border-collapse:collapse;width:100%;margin:var(--space-2) 0}.pws-completion-table td{padding:var(--space-1) var(--space-2) var(--space-1) 0;vertical-align:top}.pws-completion-recovery{align-items:baseline;gap:var(--space-2);margin-top:var(--space-2);font-size:var(--text-label);flex-wrap:wrap;display:flex}@media (width<=640px){.pws-completion-test{grid-template-columns:minmax(0,1fr)}}.codex-account-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;min-width:0;display:flex}.codex-account-auto-switch{flex:none;align-items:center;gap:7px;min-width:0;display:flex}.codex-account-auto-switch-label{font-size:var(--text-label);color:var(--muted);font-weight:var(--weight-medium);white-space:nowrap}.codex-account-auto-switch-input-wrap{align-items:stretch;display:inline-flex;position:relative}.codex-account-auto-switch-input{width:76px;height:30px;font-size:var(--text-label);text-align:right;padding:4px 38px 4px 8px}.codex-account-auto-switch-unit{color:var(--muted);font-size:var(--text-label);pointer-events:none;position:absolute;top:50%;right:25px;transform:translateY(-50%)}.codex-account-auto-switch-input-wrap .ocx-stepper{width:22px}.codex-account-auto-switch-toggle{transform-origin:50%;margin-inline:-3px;transform:scale(.8)}.quota-row--codex-credits .quota-val{white-space:nowrap}.quota-compact:has(>.quota-row--codex-credits){grid-template-columns:minmax(34px,max-content) max-content minmax(34px,max-content) minmax(38px,max-content) minmax(58px,1fr) minmax(30px,max-content);column-gap:8px}.quota-compact:has(>.quota-row--codex-credits)>*{grid-column:1/-1}.quota-compact:has(>.quota-row--codex-credits)>.quota-row:not(.quota-row--credits){grid-template-columns:subgrid}.codex-auth-credits-toggle{align-items:center;gap:var(--space-2);white-space:nowrap;display:inline-flex}.codex-auth-credits-toggle__label{font-size:var(--text-label);color:var(--muted)}.codex-credit-spend{align-items:center;gap:var(--space-2);white-space:nowrap;display:inline-flex}.codex-credit-spend .toggle[aria-pressed=mixed] .toggle-knob{transform:translate(8px,-50%)}.codex-account-credits{align-items:center;gap:7px;display:inline-flex}.codex-account-credits__label{font-size:var(--text-label);color:var(--muted);font-weight:var(--weight-medium);white-space:nowrap}.codex-account-credits__toggle{transform-origin:50%;margin-inline:-3px;transform:scale(.8)}.anthropic-pool-card__native-messages{align-items:flex-start;gap:var(--space-2);margin-top:var(--space-3);cursor:pointer;display:flex}.anthropic-pool-card__native-messages>input{margin:var(--space-0-5) 0 0;accent-color:var(--accent)}.anthropic-pool-card__native-messages>input:focus-visible{outline:var(--space-0-5) solid var(--accent);outline-offset:var(--space-0-5)}.anthropic-pool-card__native-messages-copy{gap:var(--space-1);max-width:var(--prose-measure);display:grid}.anthropic-pool-card__native-messages:has(input:disabled){cursor:default}.anthropic-pool-card__save-warning{margin:var(--space-2) var(--space-4);color:var(--amber);font-size:var(--text-label);line-height:var(--leading-body)}.aqt{gap:var(--space-2);display:grid;container-type:inline-size}.aqt-scroll{border:1px solid var(--border);border-radius:var(--radius-sm);overflow-x:auto}.aqt-table{border-collapse:collapse;width:100%;font-size:var(--text-label)}.aqt-table th,.aqt-table td{padding:var(--space-2);text-align:left;vertical-align:top}.aqt-table thead th,.aqt-group:not(:last-child)>tr:last-child>*{border-bottom:1px solid var(--border)}.aqt-table thead th{color:var(--muted);white-space:nowrap;font-weight:500}.aqt-group--active{background:color-mix(in oklab, var(--green) 6%, transparent)}.aqt-account{white-space:nowrap;font-weight:500}.aqt-account-main{align-items:center;gap:var(--space-2);width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;display:flex}.aqt-account-main:disabled{cursor:default}.aqt-account-main .pwi-auth-dot{margin-right:0}.aqt-account-copy{min-width:0;display:grid}.aqt-account-label{text-overflow:ellipsis;overflow:hidden}.aqt-account-secondary{font-weight:400;font-size:var(--text-caption);text-overflow:ellipsis;overflow:hidden}.aqt-group--details>.aqt-row>*{padding-bottom:var(--space-1)}.aqt-detail{font-weight:400;font-size:var(--text-caption);color:var(--muted);padding-top:0}.aqt-detail>*+*{margin-top:var(--space-1)}.aqt-detail p{margin:0}.aqt-actions-cell{background:var(--bg);width:1%;position:sticky;right:0}.aqt-group--active .aqt-actions-cell{background:color-mix(in oklab, var(--green) 6%, var(--bg))}.aqt-actions{justify-content:flex-end;align-items:center;gap:var(--space-1);flex-wrap:nowrap;display:flex}.aqt-account .pwi-auth-dot{margin-right:var(--space-2);vertical-align:middle;display:inline-block}.aqt-scarce{margin-left:var(--space-1)}.aqt-pool{min-width:9rem}.aqt-table .badge{white-space:nowrap}.aqt-bar{align-items:center;column-gap:var(--space-2);grid-template-columns:2.4rem minmax(2.5rem,1fr) auto;display:grid}.aqt-bar+.aqt-bar{margin-top:var(--space-1)}.aqt-bar-label,.aqt-bar-reset{color:var(--muted);font-size:var(--text-caption);white-space:nowrap}.aqt-bar-reset{grid-column:2/4}.aqt-bar-reset:empty{display:none}.aqt-bar-value{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.aqt-next{margin-top:var(--space-1)}.aqt-status{white-space:nowrap}.aqt-flag--ok{color:var(--green)}.aqt-flag--warn{color:var(--amber)}.aqt-flag--muted{color:var(--muted)}.aqt-flag--danger{color:var(--red);font-weight:500}.aqt-banned{padding:var(--space-1) var(--space-2);border:1px solid color-mix(in oklab, var(--red) 45%, transparent);border-radius:var(--radius-sm);background:var(--red-soft)}.aqt-banned summary{justify-content:center;gap:var(--space-1) var(--space-3);cursor:pointer;flex-wrap:wrap;list-style:none;display:flex}.aqt-banned summary::-webkit-details-marker{display:none}.aqt-banned-text{color:var(--red)}.aqt-banned-more{color:var(--primary,var(--blue));text-decoration:underline}.aqt-banned[open] .aqt-banned-more{display:none}.aqt-banned p{margin:var(--space-1) 0 0;font-size:var(--text-caption);overflow-wrap:anywhere}@container (width<=1100px){.aqt-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.aqt-table,.aqt-group,.aqt-detail-row{display:block}.aqt-group:not(:last-child)>tr:last-child>*{border-bottom:0}.aqt-group:not(:last-child){border-bottom:1px solid var(--border)}.aqt-row{align-items:center;gap:var(--space-2);padding:var(--space-2);grid-template-columns:minmax(0,1fr) auto auto auto;display:grid}.aqt-row>th,.aqt-row>td{padding:0;display:block}.aqt-row>.aqt-account{white-space:normal;grid-area:1/1}.aqt-row>.aqt-plan{grid-area:1/2}.aqt-row>.aqt-status{grid-area:1/3}.aqt-row>.aqt-pool{grid-column:1/-1}.aqt-row>.aqt-actions-cell{grid-area:1/4}.aqt-row>.aqt-pool{align-items:start;column-gap:var(--space-3);grid-template-columns:6.5rem repeat(2,minmax(0,1fr));min-width:0;display:grid}.aqt-row>.aqt-pool--empty,.aqt-row>.aqt-pool--banned{display:block}.aqt-pool>.aqt-bar+.aqt-bar{margin-top:0}.aqt-pool[data-label]:before{content:attr(data-label);color:var(--muted);font-size:var(--text-caption);grid-area:1/1}.aqt-pool>.aqt-next{grid-area:2/1;justify-self:start}.aqt-actions-cell{background:0 0;width:auto;position:static}.aqt-group--active .aqt-actions-cell{background:0 0}.aqt-actions{flex-wrap:wrap;justify-content:flex-start}.aqt-detail-row>.aqt-detail{padding:0 var(--space-2) var(--space-2);display:block}}@container (width<=560px){.aqt-row>.aqt-actions-cell{grid-area:auto/1/auto/-1}.aqt-row>.aqt-pool{grid-template-columns:repeat(2,minmax(0,1fr))}.aqt-pool[data-label]:before{margin-bottom:var(--space-1);grid-area:auto/1/auto/-1}.aqt-pool>.aqt-next{grid-area:auto/1/auto/-1}}.kiro-device-dialog{max-width:var(--prose-measure);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);width:100%;color:var(--text);padding:var(--space-6)}.kiro-device-dialog::backdrop{background:var(--glass-rail)}.kiro-login-choices{gap:var(--space-2);margin-block:var(--space-4);display:grid}.kiro-login-choices .btn{min-height:var(--control-touch);justify-content:flex-start}.kiro-device-code{align-items:center;gap:var(--space-3);margin-block:var(--space-4);flex-wrap:wrap;display:flex}.kiro-device-code-value{font-family:var(--font-code);font-size:var(--text-title);font-weight:var(--weight-semibold);letter-spacing:var(--tracking-wide)}.kiro-device-destination{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.kiro-device-actions{justify-content:flex-end;gap:var(--space-2);margin-top:var(--space-4);display:flex}.kiro-iam-form{gap:var(--space-2);margin-block:var(--space-4);display:grid}.kiro-iam-form label{margin-top:var(--space-2);font-weight:var(--weight-medium)}.kiro-iam-form input,.kiro-iam-form select{width:100%;min-height:var(--control-touch)}.model-price-dialog{flex-direction:column;max-height:calc(100dvh - 16vh);display:flex}.model-price-dialog>.modal-head,.model-price-dialog>.modal-actions{flex:none}.model-price-body{overscroll-behavior:contain;flex:auto;min-height:0;padding:2px;overflow-y:auto}.model-price-body .input{margin-bottom:6px}.model-price-body>.small{text-wrap:balance}.model-price-rates-grid{gap:var(--space-1-5) var(--space-3);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.model-price-rate-field{min-width:0}.model-price-rate-field .field-label{margin-bottom:var(--space-1)}.model-price-rate-field .input{margin-bottom:0}.model-price-mode{border:0;min-width:0;margin:12px 0 0;padding:0}.model-price-mode>legend{margin-bottom:5px;padding:0}.model-price-mode-option{cursor:pointer;align-items:flex-start;gap:8px;padding:6px 0;display:flex}.model-price-mode-option input{accent-color:var(--accent);margin-top:3px}.model-price-mode-option>span{gap:2px;min-width:0;display:grid}.model-price-band{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.model-price-band-title{font-weight:var(--weight-medium);margin-bottom:2px}.model-price-custom-controls{gap:var(--space-2);grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.model-price-custom-controls .field-label{min-height:2.5em}.model-price-dialog .model-display-name-error{margin-top:8px}@media (width<=760px){.model-price-mode-option{min-height:44px}}@media (width<=560px){.model-price-rates-grid{grid-template-columns:1fr}.model-price-custom-controls{grid-template-columns:1fr;gap:4px}.model-price-custom-controls .field-label{min-height:0}}.advisor-consent-check{accent-color:var(--ocx-accent)}.advisor-model-row #advisor-model-hint{margin:6px 0 0;font-size:12px;line-height:16px}.advisor-activity-table th,.advisor-activity-table td{white-space:nowrap}.logs-stack-end.logs-decode-rate{white-space:normal;display:flex}.logs-decode-rate>span:first-child{white-space:nowrap}.logs-decode-rate .text-caption{font-family:var(--font-ui);overflow-wrap:break-word}.log-detail-grid.log-detail-performance-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.log-detail-performance-grid>span{overflow-wrap:break-word;min-width:0}.logs-decode-basis-hint{grid-column:1/-1}.main-inner:has(.claude-page .claudecode-workspace-shell){max-width:980px}.claude-panel-lead{color:var(--muted);font-size:var(--text-label);line-height:var(--leading-body);max-width:var(--prose-measure);margin:0}.claudecode-connection-card{margin-bottom:var(--space-4)}.claudecode-workspace-shell .setting-controls>.custom-select{text-align:right}.claude-page .claude-status-bar{z-index:8;box-shadow:var(--shadow-sm);flex-wrap:wrap;padding:6px 8px 6px 14px;position:sticky;top:12px}.claude-page .claude-status-bar>.claude-status-health{margin-left:0}.claude-status-actions{align-items:center;gap:var(--space-3);margin-left:auto;display:flex}.claude-desktop-roles{margin-bottom:var(--space-4);overflow:hidden}.claude-desktop-section-title{font-size:var(--text-control);font-weight:var(--weight-semibold);line-height:var(--leading-ui);color:var(--text);align-items:baseline;gap:8px;margin:0;display:flex}.claude-desktop-section-title .count{color:var(--muted);font-weight:var(--weight-medium);font-family:var(--font-code);font-size:var(--text-label)}.claude-desktop-roles>.claude-desktop-section-title{padding:12px 16px 4px}.claude-desktop-roles-scope{color:var(--muted);font-size:var(--text-label);margin:0;padding:0 16px 8px}.claude-desktop-roles .setting-controls>.custom-select{text-align:right}.claude-desktop-roles .setting-label{flex:12rem}.claude-desktop-roles .setting-controls{flex:0 auto;min-width:0;max-width:min(60%,28rem)}.claude-desktop-roles .setting-controls>.custom-select,.claude-desktop-roles .select-trigger{max-width:100%}.claude-desktop-roles .select-trigger>span:first-child{text-overflow:ellipsis;min-width:0;overflow:hidden}.claude-desktop-roles .select-trigger>svg{flex:none}.claude-role-option{vertical-align:bottom;min-width:0;max-width:100%;display:inline-flex}.claude-role-option__route{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.claude-role-option__status{white-space:pre;color:var(--muted);flex:none}@media (width<=760px){.claude-desktop-roles .setting-controls{max-width:100%}.claude-desktop-roles .setting-controls>.custom-select,.claude-desktop-roles .select-trigger{width:100%}.claude-desktop-roles .select-trigger{justify-content:space-between}}.claude-desktop-list{gap:var(--space-2);margin-bottom:var(--space-4);flex-direction:column;display:flex}.claude-desktop-list-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.claude-desktop-list-hint{color:var(--muted);font-size:var(--text-label);margin:0}.claude-desktop-list-rows{margin:0;padding:0;list-style:none;overflow:hidden}.claude-desktop-list-row{border-top:1px solid var(--border-soft,var(--border));align-items:center;gap:10px;min-width:0;padding:8px 14px;display:flex}.claude-desktop-list-row:first-child{border-top:none}.claude-desktop-list-names{flex:1;align-items:baseline;gap:8px;min-width:0;display:flex}.claude-desktop-list-names strong,.claude-desktop-list-names code{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.claude-desktop-list-names strong{font-weight:var(--weight-medium)}.claude-desktop-list-names code{color:var(--muted);font-size:11px}.claude-row-quick{color:var(--accent)}.claude-desktop-advanced{margin-bottom:var(--space-4);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.claude-desktop-advanced>summary{cursor:pointer;flex-direction:column;gap:8px;padding:12px 14px;list-style:none;display:flex}.claude-desktop-advanced>summary::-webkit-details-marker{display:none}.claude-desktop-advanced-title{font-weight:var(--weight-semibold);color:var(--text);align-items:center;gap:6px;display:flex}.claude-desktop-advanced-chips{flex-wrap:wrap;gap:6px;display:flex}.claude-desktop-advanced-chip{border-radius:var(--radius-pill);background:var(--raised);max-width:100%;color:var(--muted);font-size:var(--text-label);align-items:baseline;gap:6px;padding:2px 10px;display:inline-flex}.claude-desktop-advanced-chip b{color:var(--text);font-weight:var(--weight-medium)}.claude-desktop-advanced-chip code{text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:11px;overflow:hidden}.claude-desktop-advanced-count{font-family:var(--font-code);color:var(--faint);font-size:11px}.claude-desktop-advanced-desc{color:var(--muted);font-size:var(--text-label);margin:0;padding:0 14px 10px}.claude-desktop-advanced>.ocx-group-stack{padding:0 10px 10px}.claude-visibility{gap:var(--space-2);flex-direction:column;display:flex}.claude-visibility-counts,.claude-visibility-filters,.claude-visibility-preview{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.claude-visibility-count{font-size:var(--text-label);font-weight:var(--weight-medium)}.claude-visibility-count.muted,.claude-visibility-preview{color:var(--muted);font-size:var(--text-label)}.claude-visibility-filters .input[type=search]{flex:1;min-width:160px}.claude-visibility-policy{font-size:var(--text-label);border:none;flex-wrap:wrap;align-items:center;gap:12px;margin:0;padding:0;display:flex}.claude-visibility-policy legend{float:left;font-weight:var(--weight-medium);margin-right:4px}.claude-visibility-policy label{align-items:center;gap:4px;display:inline-flex}.claude-desktop-list-row.hidden-row .claude-desktop-list-names{opacity:.55}.claude-visibility-preview-title{font-weight:var(--weight-medium);color:var(--text)}.remote-link-switch{cursor:pointer}.remote-link-switch:after{content:"";border-radius:50%;transition:transform .15s;display:block}.remote-link-sheet input[type=checkbox],.remote-link-confirm-dialog input[type=checkbox]{accent-color:var(--ocx-fg);width:15px;height:15px;margin:0}@media (prefers-reduced-motion:reduce){.remote-link-page *,.remote-link-page :before,.remote-link-page :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.quota-summary-bar{z-index:var(--z-sticky);border-bottom:1px solid var(--border);background:var(--bg);min-height:34px;font-size:var(--text-label);align-items:center;gap:12px;padding:4px 16px;display:flex;position:sticky;top:0}.quota-summary-scroller{flex:1;align-items:center;gap:2px;min-width:0;display:flex;position:relative}.quota-summary-list{overscroll-behavior-x:contain;scrollbar-width:none;flex-wrap:nowrap;flex:auto;align-items:center;gap:4px;min-width:0;margin:0;padding:3px;list-style:none;display:flex;overflow:auto hidden}.quota-summary-list::-webkit-scrollbar{display:none}.quota-summary-scroller--overflow:before,.quota-summary-scroller--overflow:after{content:"";z-index:1;pointer-events:none;width:12px;position:absolute;top:0;bottom:0}.quota-summary-scroller--overflow:before{background:linear-gradient(to right, var(--bg), transparent);left:24px}.quota-summary-scroller--overflow:after{background:linear-gradient(to left, var(--bg), transparent);right:24px}.quota-summary-scroller--overflow:has(.quota-summary-scroll--prev[aria-disabled=true]):before{display:none}.quota-summary-scroller--overflow:has(.quota-summary-scroll--next[aria-disabled=true]):after{display:none}.quota-summary-scroller--overflow:has(.quota-summary-list:focus-within):before{display:none}.quota-summary-scroller--overflow:has(.quota-summary-list:focus-within):after{display:none}.quota-summary-item{flex:none}.quota-summary-scroll{border:1px solid var(--border);background:var(--surface);width:22px;height:22px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;flex:none;place-items:center;padding:0;font-weight:600;line-height:1;display:inline-grid}.quota-summary-scroll:hover:not([aria-disabled=true]){background:var(--bg)}.quota-summary-scroll[aria-disabled=true]{color:var(--muted);opacity:.45;cursor:default}.quota-summary-scroll:focus-visible{outline:2px solid var(--text);outline-offset:1px}.quota-summary-chip{color:var(--text);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:6px;padding:3px 8px;text-decoration:none;display:inline-flex}.quota-summary-chip:hover,.quota-summary-chip--open{border-color:var(--border)}.quota-summary-chip:focus-visible{outline:2px solid var(--text);outline-offset:1px}.quota-summary-name{color:var(--muted)}.quota-summary-pct{font-variant-numeric:tabular-nums;font-weight:600}.quota-summary-flag{width:14px;height:14px;color:var(--bg);font-size:var(--text-micro);border-radius:50%;place-items:center;font-weight:700;display:inline-grid}.quota-summary-item--warn .quota-summary-chip{background:var(--amber-soft)}.quota-summary-item--warn .quota-summary-pct{color:var(--amber)}.quota-summary-item--warn .quota-summary-flag{background:var(--amber)}.quota-summary-item--critical .quota-summary-chip{border-color:var(--red);background:var(--red-soft)}.quota-summary-item--critical .quota-summary-pct{color:var(--red)}.quota-summary-item .quota-summary-pct--normal{color:var(--text)}.quota-summary-item .quota-summary-pct--warn{color:var(--amber)}.quota-summary-item .quota-summary-pct--critical{color:var(--red)}.quota-summary-item--critical .quota-summary-flag{background:var(--red)}.quota-summary-popover{top:calc(var(--qs-pop-top,0) * 1px);left:calc(var(--qs-pop-left,0) * 1px);z-index:var(--z-popover);border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:260px;max-width:calc(100% - 16px);padding:10px 12px;position:fixed;box-shadow:0 8px 24px #00000024}.quota-summary-popover:before{content:"";left:calc(var(--qs-bridge-left,0) * 1px - 1px);right:calc(var(--qs-bridge-right,0) * 1px - 1px);height:calc((var(--qs-pop-gap,4) + 1) * 1px);position:absolute;bottom:100%}.quota-summary-popover-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;display:flex}.quota-summary-badge{font-size:var(--text-caption);border-radius:999px;padding:1px 6px}.quota-summary-badge--warn{color:var(--amber);background:var(--amber-soft)}.quota-summary-badge--critical{color:var(--red);background:var(--red-soft)}.quota-summary-table{border-collapse:collapse;width:100%}.quota-summary-table th,.quota-summary-table td{text-align:left;white-space:nowrap;padding:3px 0;font-weight:400}.quota-summary-table td.quota-summary-row-pct{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;padding:3px 12px;font-weight:600}.quota-summary-row-reset{color:var(--muted);white-space:normal}.quota-summary-table th[scope=row]{white-space:normal;overflow-wrap:anywhere}.quota-summary-row--warn .quota-summary-row-pct{color:var(--amber)}.quota-summary-row--critical .quota-summary-row-pct{color:var(--red)}.quota-summary-popover-foot{color:var(--muted);font-size:var(--text-caption);flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:6px;display:flex}.quota-summary-updated{color:var(--muted);font-size:var(--text-caption);white-space:nowrap;flex-shrink:0}.quota-summary-popover-link{color:var(--text);text-underline-offset:2px;text-decoration:underline}.quota-summary-popover-link:focus-visible{outline:2px solid var(--text);outline-offset:1px}.quota-summary-updated--stale{color:var(--amber)}.main:has(>.quota-summary-bar):has(>.main-inner--combos .combos-workspace-shell){flex-direction:column;height:100dvh;display:flex}.main:has(>.quota-summary-bar)>.main-inner.main-inner--combos:has(.combos-workspace-shell){flex:auto;height:auto;min-height:0}@media (width<=760px){.quota-summary-table--passive tr,.quota-summary-table--passive th,.quota-summary-table--passive td{display:block}.quota-summary-table--passive td.quota-summary-row-pct{text-align:left;padding:3px 0}.quota-summary-bar{padding:4px 10px;position:static}.quota-summary-popover{top:calc(var(--qs-pop-top,0) * 1px);min-width:0;left:8px;right:8px}.main:has(>.quota-summary-bar):has(>.main-inner--combos .combos-workspace-shell){height:100%;min-height:0}}.section-switcher{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);flex-wrap:wrap;gap:2px;max-width:100%;margin:0 0 16px;padding:2px;display:inline-flex}.section-switcher-btn{appearance:none;color:var(--muted);border-radius:var(--radius-pill);cursor:pointer;font:inherit;font-size:var(--text-control);white-space:nowrap;background:0 0;border:none;align-items:center;padding:5px 14px;display:inline-flex}.section-switcher-btn:hover{color:var(--text)}.section-switcher-btn[aria-current=page]{background:var(--raised);color:var(--text);font-weight:var(--weight-semibold)}.section-switcher-btn:focus-visible{outline:2px solid var(--accent-ring);outline-offset:1px}@media (width<=760px){.section-switcher{display:flex}.section-switcher-btn{min-height:var(--control-touch);flex:auto;justify-content:center}}.app{--titlebar-h:40px;--tl-inset:80px;--chrome-clear:52px}.app--macos{--chrome-clear:124px;--sidebar-column:max(232px, calc(var(--tl-inset) + 52px))}.sidebar-top{z-index:calc(var(--z-overlay,30) + 1);width:232px;height:var(--titlebar-h,40px);border-bottom:1px solid var(--border);background:var(--glass-rail);-webkit-backdrop-filter:var(--glass-blur);-webkit-user-select:none;user-select:none;align-items:center;padding:0 10px 0 14px;display:flex;position:fixed;top:0;left:0}.app--macos .sidebar-top{width:var(--sidebar-column);padding-left:var(--tl-inset,80px)}.sidebar{padding-top:calc(var(--titlebar-h,40px) + 18px)}.sidebar-collapse{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--muted);cursor:pointer;transition:background var(--motion-fast), color var(--motion-fast);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.sidebar-collapse:hover{background:var(--accent-soft);color:var(--text)}.sidebar-collapse:focus-visible{outline:2px solid var(--accent-ring);outline-offset:2px}.sidebar-collapse svg{width:18px;height:18px}.main-top{z-index:var(--z-sticky);height:var(--titlebar-h,40px);background:var(--bg);border-bottom:1px solid var(--border);-webkit-user-select:none;user-select:none;align-items:stretch;display:flex;position:sticky;top:0}.main-top>.quota-summary-bar{border-bottom:none;flex:auto;min-width:0;min-height:0;padding:0 16px;position:static}.main:has(>.main-top):has(>.main-inner--combos .combos-workspace-shell){flex-direction:column;height:100dvh;display:flex}.main:has(>.main-top)>.main-inner.main-inner--combos:has(.combos-workspace-shell){flex:auto;height:auto;min-height:0}@media (width>=761px){.app{transition:grid-template-columns .16s}.app--macos.app--reduced-zoom{transition:none}.app--macos:not(.app--nav-collapsed){grid-template-columns:var(--sidebar-column) minmax(0, 1fr)}.app.app--nav-collapsed{grid-template-columns:0 1fr}.app--nav-collapsed .sidebar{display:none}.app--nav-collapsed .main{grid-column:2}.app--nav-collapsed .sidebar-top{-webkit-backdrop-filter:none;background:0 0;border-bottom:none;width:auto;margin:0;padding:0 12px}.app--macos.app--nav-collapsed .sidebar-top{padding-left:var(--tl-inset,80px)}.app--nav-collapsed .main-top,.app--nav-collapsed .main>.quota-summary-bar{padding-left:var(--chrome-clear,52px)}}@media (width<=760px){.sidebar-top{display:none}.main-top{z-index:auto;position:static}.main:has(>.main-top):has(>.main-inner--combos .combos-workspace-shell){height:100%;min-height:0}.app--macos .mobile-topbar{padding-left:var(--tl-inset,80px)}.app--macos .sidebar.open{padding-top:calc(var(--titlebar-h,40px) + 18px)}}@media (width<=320px){.app--macos .mobile-topbar{flex-wrap:wrap}.app--macos .mobile-topbar-actions{width:calc(100% + var(--tl-inset,80px));margin-left:calc(-1 * var(--tl-inset,80px));justify-content:flex-end}}}
|