@teaflask/assistant 0.9.0 → 0.10.1
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/appearance/theme.d.ts +9 -8
- package/dist/components/approval-card.js +13 -10
- package/dist/components/assistant-companion.js +12 -9
- package/dist/components/primitives/checkbox.js +8 -0
- package/dist/components/teaflask-assistant-provider.d.ts +4 -3
- package/dist/components/use-register-assistant-surface.js +4 -2
- package/dist/contract/telemetry.d.ts +23 -2
- package/dist/core/assistant-session-registry.js +10 -0
- package/dist/core/companion-drawer-flag.js +18 -4
- package/dist/core/connection-epoch.d.ts +3 -0
- package/dist/core/connection-epoch.js +18 -1
- package/dist/core/conversation-adoption.js +7 -0
- package/dist/core/conversation-contract.d.ts +1 -0
- package/dist/core/epoch-sync.js +3 -1
- package/dist/core/execution-handlers.d.ts +1 -1
- package/dist/core/execution-handlers.js +4 -4
- package/dist/core/surface-registry.js +2 -2
- package/dist/core/turn-failed-anchors.d.ts +7 -0
- package/dist/core/turn-failed-anchors.js +42 -0
- package/dist/generated/models/apiErrorCode.d.ts +3 -0
- package/dist/generated/models/apiErrorCode.js +3 -0
- package/dist/generated/models/failureReasonCode.d.ts +33 -0
- package/dist/generated/models/failureReasonCode.js +10 -0
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/turnFailedMarker.d.ts +3 -0
- package/dist/headless.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/persistence/panel-open.js +41 -0
- package/dist/persistence/stored-thread.d.ts +3 -2
- package/dist/persistence/stored-thread.js +2 -0
- package/dist/styles.css +1 -1
- package/dist/transport/stream-resume.d.ts +2 -0
- package/dist/transport/stream-resume.js +8 -0
- package/package.json +1 -1
|
@@ -30,8 +30,9 @@ export interface AssistantThemeTokens {
|
|
|
30
30
|
/**
|
|
31
31
|
* Sets `--tf-card-foreground`, the text color inside approval cards and
|
|
32
32
|
* tool views: an approval's heading, and the row titles, badges and values
|
|
33
|
-
* of a tool view, including the request details an approval can show
|
|
34
|
-
*
|
|
33
|
+
* of a tool view, including the request details an approval can show, and
|
|
34
|
+
* the label of an approval's "Don't ask again" checkbox. An approval's
|
|
35
|
+
* request sentence and the other lines inside these cards use
|
|
35
36
|
* `mutedForeground`. Defaults to the same value as `foreground`.
|
|
36
37
|
*/
|
|
37
38
|
cardForeground?: string;
|
|
@@ -56,8 +57,9 @@ export interface AssistantThemeTokens {
|
|
|
56
57
|
*/
|
|
57
58
|
popoverForeground?: string;
|
|
58
59
|
/**
|
|
59
|
-
* Sets `--tf-primary`, the fill of solid buttons such as Send and Stop
|
|
60
|
-
*
|
|
60
|
+
* Sets `--tf-primary`, the fill of solid buttons such as Send and Stop, and
|
|
61
|
+
* the tick of an approval's "Don't ask again" checkbox. Defaults to
|
|
62
|
+
* `#171717` in light mode and `#ededed` in dark mode.
|
|
61
63
|
*/
|
|
62
64
|
primary?: string;
|
|
63
65
|
/**
|
|
@@ -66,10 +68,9 @@ export interface AssistantThemeTokens {
|
|
|
66
68
|
*/
|
|
67
69
|
primaryForeground?: string;
|
|
68
70
|
/**
|
|
69
|
-
* Sets `--tf-secondary`, the fill of the secondary buttons: Deny
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* a ChatGPT sign-in is in progress. Hovered, the fill shifts slightly
|
|
71
|
+
* Sets `--tf-secondary`, the fill of the secondary buttons: Deny and Back
|
|
72
|
+
* on an approval card, Cancel and Keep editing under a question, and Cancel
|
|
73
|
+
* while a ChatGPT sign-in is in progress. Hovered, the fill shifts slightly
|
|
73
74
|
* toward its own text color under a light `accent` wash, so a themed fill
|
|
74
75
|
* stays visible. Defaults to transparent, so these buttons stay quiet until
|
|
75
76
|
* you set it.
|
|
@@ -5,6 +5,7 @@ import { activityTitleOf } from "../core/activity-title.js";
|
|
|
5
5
|
import { humanizedToolName } from "../core/tool-call-display.js";
|
|
6
6
|
import { ApprovalsContext } from "./approval-context.js";
|
|
7
7
|
import { TfButton } from "./primitives/button.js";
|
|
8
|
+
import { TfCheckbox } from "./primitives/checkbox.js";
|
|
8
9
|
import { TfTextarea } from "./primitives/textarea.js";
|
|
9
10
|
import { Spinner } from "./streaming-states.js";
|
|
10
11
|
export const APPROVED_NOTE = "Approved";
|
|
@@ -37,6 +38,7 @@ export function ApprovalCard({ card }) {
|
|
|
37
38
|
const { submitDecision } = useContext(ApprovalsContext);
|
|
38
39
|
const [denying, setDenying] = useState(false);
|
|
39
40
|
const [feedback, setFeedback] = useState("");
|
|
41
|
+
const [trustTicked, setTrustTicked] = useState(false);
|
|
40
42
|
const submittedForStatusRef = useRef(null);
|
|
41
43
|
const [submittedForStatus, setSubmittedForStatus] = useState(null);
|
|
42
44
|
const submitted = submittedForStatus === card.status;
|
|
@@ -51,10 +53,11 @@ export function ApprovalCard({ card }) {
|
|
|
51
53
|
};
|
|
52
54
|
return (_jsxs("div", { "data-tf-approval-card": "", className: "tf:my-2 tf:rounded-2xl tf:border tf:border-tf-border tf:bg-tf-card tf:p-4 tf:text-tf-card-foreground", role: "group", "aria-label": "Approval request", children: [_jsx(CardHeader, { card: card }), _jsx("p", { "data-tf-approval-prompt": "", className: "tf:mt-3 tf:m-0 tf:text-tf-label tf:leading-relaxed tf:text-tf-muted-foreground", children: card.prompt.trim() === ""
|
|
53
55
|
? "This tool needs your approval before it can run."
|
|
54
|
-
: card.prompt }), _jsx("div", { "data-tf-approval-footer": "", children: _jsx(CardFooter, { card: card, denying: denying, submitted: submitted, feedback: feedback, onFeedbackChange: setFeedback, onApprove: () => {
|
|
55
|
-
submitOnce({
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
: card.prompt }), _jsx("div", { "data-tf-approval-footer": "", children: _jsx(CardFooter, { card: card, denying: denying, submitted: submitted, feedback: feedback, onFeedbackChange: setFeedback, trustTicked: trustTicked, onTrustTickedChange: setTrustTicked, onApprove: () => {
|
|
57
|
+
submitOnce({
|
|
58
|
+
approved: true,
|
|
59
|
+
...(trustTicked && _cardOffersTrust(card) ? { trust: true } : {}),
|
|
60
|
+
});
|
|
58
61
|
}, onStartDenying: () => {
|
|
59
62
|
setDenying(true);
|
|
60
63
|
}, onStopDenying: () => {
|
|
@@ -70,7 +73,7 @@ export function ApprovalCard({ card }) {
|
|
|
70
73
|
function CardHeader({ card }) {
|
|
71
74
|
return (_jsxs("div", { className: "tf:min-w-0", children: [_jsx("p", { "data-tf-approval-title": "", className: "tf:m-0 tf:text-tf-heading tf:font-semibold", children: "Approval required" }), _jsx("p", { className: "tf:mt-0.5 tf:m-0 tf:truncate tf:font-mono tf:text-xs tf:text-tf-muted-foreground", children: _toolDisplayNameOf(card.toolName) }), card.asker.kind === "coworker" ? (_jsxs("p", { "data-tf-approval-asker": "", className: "tf:mt-1 tf:m-0 tf:truncate tf:text-xs tf:text-tf-muted-foreground", children: ["Asked by a coworker \u2014 ", _coworkerLabelOf(card.asker.label)] })) : null] }));
|
|
72
75
|
}
|
|
73
|
-
function CardFooter({ card, denying, submitted, feedback, onFeedbackChange,
|
|
76
|
+
function CardFooter({ card, denying, submitted, feedback, onFeedbackChange, trustTicked, onTrustTickedChange, onApprove, onStartDenying, onStopDenying, onSendDenial, }) {
|
|
74
77
|
switch (card.status.kind) {
|
|
75
78
|
case "submitting":
|
|
76
79
|
return (_jsx("p", { className: "tf:mt-3 tf:flex tf:items-center tf:gap-2 tf:text-tf-label tf:text-tf-muted-foreground", children: _jsx(Spinner, { label: "Sending\u2026" }) }));
|
|
@@ -78,7 +81,7 @@ function CardFooter({ card, denying, submitted, feedback, onFeedbackChange, onAp
|
|
|
78
81
|
case "stale":
|
|
79
82
|
return (_jsx("p", { className: "tf:mt-3 tf:text-tf-label tf:text-tf-muted-foreground", children: approvalSettledNoteOf(card.status, card.asker) }));
|
|
80
83
|
case "actionable":
|
|
81
|
-
return (_jsxs("div", { className: "tf:mt-3 tf:space-y-3", "aria-busy": submitted, children: [card.status.errorSentence !== null ? (_jsx("p", { role: "alert", className: "tf:m-0 tf:text-tf-label tf:text-tf-destructive", children: card.status.errorSentence })) : null, denying ? (_jsx(DenialForm, { asker: card.asker, feedback: feedback, submitted: submitted, onFeedbackChange: onFeedbackChange, onSend: onSendDenial, onBack: onStopDenying })) : (_jsx(DecisionButtons, { card: card, submitted: submitted,
|
|
84
|
+
return (_jsxs("div", { className: "tf:mt-3 tf:space-y-3", "aria-busy": submitted, children: [card.status.errorSentence !== null ? (_jsx("p", { role: "alert", className: "tf:m-0 tf:text-tf-label tf:text-tf-destructive", children: card.status.errorSentence })) : null, denying ? (_jsx(DenialForm, { asker: card.asker, feedback: feedback, submitted: submitted, onFeedbackChange: onFeedbackChange, onSend: onSendDenial, onBack: onStopDenying })) : (_jsx(DecisionButtons, { card: card, submitted: submitted, trustTicked: trustTicked, onTrustTickedChange: onTrustTickedChange, onApprove: onApprove, onStartDenying: onStartDenying }))] }));
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
function DenialForm({ asker, feedback, submitted, onFeedbackChange, onSend, onBack, }) {
|
|
@@ -88,16 +91,16 @@ function DenialForm({ asker, feedback, submitted, onFeedbackChange, onSend, onBa
|
|
|
88
91
|
onFeedbackChange(event.target.value);
|
|
89
92
|
} }), _jsxs("div", { className: "tf:flex tf:gap-2", children: [_jsx(TfButton, { disabled: submitted, onClick: onSend, children: "Send denial" }), _jsx(TfButton, { variant: "secondary", disabled: submitted, onClick: onBack, children: "Back" })] })] }));
|
|
90
93
|
}
|
|
91
|
-
function DecisionButtons({ card, submitted,
|
|
92
|
-
return (_jsxs(_Fragment, { children: [_jsxs("
|
|
94
|
+
function DecisionButtons({ card, submitted, trustTicked, onTrustTickedChange, onApprove, onStartDenying, }) {
|
|
95
|
+
return (_jsxs(_Fragment, { children: [_cardOffersTrust(card) ? (_jsxs("label", { "data-tf-approval-trust": "", className: "tf:flex tf:w-fit tf:cursor-pointer tf:items-center tf:gap-2 tf:text-tf-label", children: [_jsx(TfCheckbox, { checked: trustTicked, disabled: submitted, onCheckedChange: onTrustTickedChange }), _trustLabelOf(card.asker)] })) : null, _jsxs("div", { className: "tf:flex tf:flex-wrap tf:gap-2", children: [_jsx(TfButton, { disabled: submitted, onClick: onApprove, children: "Approve" }), _jsx(TfButton, { variant: "secondary", disabled: submitted, onClick: onStartDenying, children: "Deny" })] }), card.gated ? (_jsx("p", { className: "tf:m-0 tf:text-xs tf:text-tf-muted-foreground", children: GATED_NOTE })) : null] }));
|
|
93
96
|
}
|
|
94
97
|
function _cardOffersTrust(card) {
|
|
95
98
|
return !card.gated && card.trustAvailable;
|
|
96
99
|
}
|
|
97
100
|
function _trustLabelOf(asker) {
|
|
98
101
|
return asker.kind === "coworker"
|
|
99
|
-
? "
|
|
100
|
-
: "
|
|
102
|
+
? "Don't ask again in this task"
|
|
103
|
+
: "Don't ask again in this conversation";
|
|
101
104
|
}
|
|
102
105
|
function _coworkerLabelOf(label) {
|
|
103
106
|
const title = activityTitleOf(label);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback, useEffect, useRef, useState, useSyncExternalStore, } from "react";
|
|
4
|
-
import { closeCompanionDrawer, companionDrawerOpen, openCompanionDrawer, } from "../core/companion-drawer-flag.js";
|
|
3
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore, } from "react";
|
|
4
|
+
import { closeCompanionDrawer, companionDrawerOpen, openCompanionDrawer, restoreCompanionDrawer, } from "../core/companion-drawer-flag.js";
|
|
5
5
|
import { companionChromeOf } from "../core/companion-presence.js";
|
|
6
6
|
import { readPanelMode, subscribePanelMode, writePanelMode, } from "../persistence/panel-mode.js";
|
|
7
7
|
import { useAssistantAppearance } from "./appearance-context.js";
|
|
@@ -21,7 +21,7 @@ function AssistantCompanionInner({ corner = "bottom-right", "aria-label": ariaLa
|
|
|
21
21
|
const { publishableKey } = useAssistantSession();
|
|
22
22
|
const surfaces = useAssistantSurfacePresence();
|
|
23
23
|
const { rootProps } = useAssistantAppearance();
|
|
24
|
-
const drawer = useCompanionDrawer();
|
|
24
|
+
const drawer = useCompanionDrawer(publishableKey);
|
|
25
25
|
const panelMode = usePanelMode(publishableKey);
|
|
26
26
|
const sidebarFits = useViewportFitsSidebar();
|
|
27
27
|
const dock = sidebarFits && panelMode === "sidebar" ? "sidebar" : "floating";
|
|
@@ -35,26 +35,29 @@ function AssistantCompanionInner({ corner = "bottom-right", "aria-label": ariaLa
|
|
|
35
35
|
usePerchClearance(dockRef, dockVisible);
|
|
36
36
|
return (_jsxs(_Fragment, { children: [_jsx("div", { ref: dockRef, popover: "manual", "data-tf-assistant": "", "data-tf-companion-dock": corner, onToggle: parkOnForcedHide, ...rootProps, children: chrome === "companion" ? (_jsx(MinimizedCompanion, { ariaLabel: ariaLabel, onOpen: drawer.open })) : null }), chrome === "drawer" || drawer.expanded || drawer.exiting ? (_jsx(CompanionDrawer, { open: chrome === "drawer", exiting: drawer.exiting, focusOnOpen: drawer.openedByGesture, onOpenChange: drawer.changeOpen, corner: corner, dock: dock, onDockChange: sidebarFits ? changeDock : null })) : null] }));
|
|
37
37
|
}
|
|
38
|
-
function useCompanionDrawer() {
|
|
38
|
+
function useCompanionDrawer(publishableKey) {
|
|
39
39
|
const expanded = useCell(companionDrawerOpen);
|
|
40
40
|
const [drawerExiting, setDrawerExiting] = useState(false);
|
|
41
41
|
const [openedByGesture, setOpenedByGesture] = useState(false);
|
|
42
42
|
if (drawerExiting && expanded) {
|
|
43
43
|
setDrawerExiting(false);
|
|
44
44
|
}
|
|
45
|
+
useLayoutEffect(() => {
|
|
46
|
+
restoreCompanionDrawer(publishableKey);
|
|
47
|
+
}, [publishableKey]);
|
|
45
48
|
const openDrawer = useCallback(() => {
|
|
46
49
|
setOpenedByGesture(true);
|
|
47
|
-
openCompanionDrawer();
|
|
48
|
-
}, []);
|
|
50
|
+
openCompanionDrawer(publishableKey);
|
|
51
|
+
}, [publishableKey]);
|
|
49
52
|
const changeDrawerOpen = useCallback((next) => {
|
|
50
53
|
setOpenedByGesture(next);
|
|
51
54
|
if (next) {
|
|
52
|
-
openCompanionDrawer();
|
|
55
|
+
openCompanionDrawer(publishableKey);
|
|
53
56
|
return;
|
|
54
57
|
}
|
|
55
58
|
setDrawerExiting(true);
|
|
56
|
-
closeCompanionDrawer();
|
|
57
|
-
}, []);
|
|
59
|
+
closeCompanionDrawer(publishableKey);
|
|
60
|
+
}, [publishableKey]);
|
|
58
61
|
useEffect(() => {
|
|
59
62
|
if (!drawerExiting) {
|
|
60
63
|
return;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { cx } from "./cx.js";
|
|
4
|
+
export function TfCheckbox({ onCheckedChange, className, ...props }) {
|
|
5
|
+
return (_jsx("input", { type: "checkbox", className: cx("tf:m-0 tf:size-4 tf:accent-tf-primary", "tf:focus-visible:outline-2 tf:focus-visible:outline-tf-ring", "tf:disabled:cursor-not-allowed", className), onChange: (event) => {
|
|
6
|
+
onCheckedChange(event.target.checked);
|
|
7
|
+
}, ...props }));
|
|
8
|
+
}
|
|
@@ -86,9 +86,10 @@ export interface TeaflaskAssistantProviderBaseProps {
|
|
|
86
86
|
*/
|
|
87
87
|
onError?: (error: Error) => void;
|
|
88
88
|
/**
|
|
89
|
-
* Called with product analytics events (approval submits
|
|
90
|
-
*
|
|
91
|
-
* error goes to `onError`.
|
|
89
|
+
* Called with product analytics events (approval submits, stream failures
|
|
90
|
+
* and failed replies) that you can forward to your own analytics. If it
|
|
91
|
+
* throws, the error goes to `onError`. Without it, each failed reply writes
|
|
92
|
+
* one console warning with its reason code instead.
|
|
92
93
|
*/
|
|
93
94
|
onTelemetry?: (event: AssistantTelemetryEvent) => void;
|
|
94
95
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { assistantSurfaceRegistry, } from "../core/surface-registry.js";
|
|
4
|
+
import { useAssistantSession } from "./teaflask-assistant-provider.js";
|
|
4
5
|
export function useRegisterAssistantSurface(kind, active = true) {
|
|
6
|
+
const { publishableKey } = useAssistantSession();
|
|
5
7
|
useEffect(() => {
|
|
6
8
|
if (!active) {
|
|
7
9
|
return;
|
|
8
10
|
}
|
|
9
|
-
return assistantSurfaceRegistry.register(kind);
|
|
10
|
-
}, [kind, active]);
|
|
11
|
+
return assistantSurfaceRegistry.register(kind, publishableKey);
|
|
12
|
+
}, [kind, active, publishableKey]);
|
|
11
13
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export type { FailureReasonCode } from "../generated/models/index.js";
|
|
2
|
+
import type { FailureReasonCode } from "../generated/models/index.js";
|
|
1
3
|
/**
|
|
2
4
|
* Why clicking approve or deny sent nothing. "no_active_thread" means no
|
|
3
5
|
* conversation was open; "card_missing" means the request was no longer shown;
|
|
@@ -64,12 +66,31 @@ export interface StreamFailedTelemetryEvent {
|
|
|
64
66
|
last_committed_sse_id: string | null;
|
|
65
67
|
};
|
|
66
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Reported to onTelemetry when a reply fails while the user is watching. The
|
|
71
|
+
* user sees one general sentence, so this event's reason_code is how your page
|
|
72
|
+
* learns why; log it and never show it. Failures replayed when a conversation
|
|
73
|
+
* reopens are not reported again.
|
|
74
|
+
*/
|
|
75
|
+
export interface TurnFailedTelemetryEvent {
|
|
76
|
+
/** Always "turn_failed". */
|
|
77
|
+
name: "turn_failed";
|
|
78
|
+
/**
|
|
79
|
+
* The conversation's thread_id, the failed reply's turn_id, and its
|
|
80
|
+
* reason_code, the same code the stream's turn_failed event carries as
|
|
81
|
+
* reasonCode.
|
|
82
|
+
*/
|
|
83
|
+
properties: {
|
|
84
|
+
thread_id: string;
|
|
85
|
+
turn_id: string;
|
|
86
|
+
reason_code: FailureReasonCode;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
67
89
|
/**
|
|
68
90
|
* Any event passed to the provider's onTelemetry callback, for forwarding to
|
|
69
91
|
* your own analytics. None carry message text, tool arguments or prompts.
|
|
70
92
|
*/
|
|
71
|
-
export type AssistantTelemetryEvent = ApprovalSubmitTelemetryEvent | StreamFailedTelemetryEvent;
|
|
93
|
+
export type AssistantTelemetryEvent = ApprovalSubmitTelemetryEvent | StreamFailedTelemetryEvent | TurnFailedTelemetryEvent;
|
|
72
94
|
export declare function streamFailureClassOf(error: Error, context: {
|
|
73
95
|
sawBodyBytes: boolean;
|
|
74
96
|
}): StreamFailureClass;
|
|
75
|
-
export {};
|
|
@@ -167,6 +167,7 @@ class SessionEntry {
|
|
|
167
167
|
this._reportToEveryRegistrant(error);
|
|
168
168
|
},
|
|
169
169
|
onTelemetry: (event) => {
|
|
170
|
+
this._warnOfAFailureNoHostLogs(event);
|
|
170
171
|
for (const registration of [...this.registrations]) {
|
|
171
172
|
try {
|
|
172
173
|
registration.registrant.onTelemetry?.(event);
|
|
@@ -230,6 +231,15 @@ class SessionEntry {
|
|
|
230
231
|
}
|
|
231
232
|
return merged;
|
|
232
233
|
}
|
|
234
|
+
_warnOfAFailureNoHostLogs(event) {
|
|
235
|
+
if (event.name !== "turn_failed" || this._someRegistrantLogsTelemetry()) {
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
console.warn("[teaflask] reply failed:", event.properties.reason_code, event.properties.turn_id);
|
|
239
|
+
}
|
|
240
|
+
_someRegistrantLogsTelemetry() {
|
|
241
|
+
return [...this.registrations].some((registration) => registration.registrant.onTelemetry !== null);
|
|
242
|
+
}
|
|
233
243
|
_reportToEveryRegistrant(error) {
|
|
234
244
|
for (const registration of [...this.registrations]) {
|
|
235
245
|
try {
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
+
import { readPanelOpen, writePanelOpen } from "../persistence/panel-open.js";
|
|
1
2
|
import { ObservableCell } from "./observable-cell.js";
|
|
2
3
|
const _openCell = new ObservableCell(false);
|
|
4
|
+
const _settledKeys = new Set();
|
|
3
5
|
export const companionDrawerOpen = _openCell;
|
|
4
|
-
export function openCompanionDrawer() {
|
|
5
|
-
|
|
6
|
+
export function openCompanionDrawer(publishableKey) {
|
|
7
|
+
_writeCompanionDrawer(publishableKey, true);
|
|
6
8
|
}
|
|
7
|
-
export function closeCompanionDrawer() {
|
|
8
|
-
|
|
9
|
+
export function closeCompanionDrawer(publishableKey) {
|
|
10
|
+
_writeCompanionDrawer(publishableKey, false);
|
|
11
|
+
}
|
|
12
|
+
export function restoreCompanionDrawer(publishableKey) {
|
|
13
|
+
if (_settledKeys.has(publishableKey)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
_settledKeys.add(publishableKey);
|
|
17
|
+
_openCell.set(readPanelOpen(publishableKey));
|
|
18
|
+
}
|
|
19
|
+
function _writeCompanionDrawer(publishableKey, open) {
|
|
20
|
+
_settledKeys.add(publishableKey);
|
|
21
|
+
_openCell.set(open);
|
|
22
|
+
writePanelOpen(publishableKey, open);
|
|
9
23
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Message } from "@ag-ui/core";
|
|
2
|
+
import type { AssistantTelemetryEvent } from "../contract/telemetry.js";
|
|
2
3
|
import { ServingReplayStreamAgent } from "../transport/replay-stream-agent.js";
|
|
3
4
|
import { type StreamResumeStore } from "../transport/stream-resume.js";
|
|
4
5
|
import type { TokenSession } from "../transport/token-session.js";
|
|
@@ -109,6 +110,8 @@ export interface ConnectionEpochDeps {
|
|
|
109
110
|
onRunSettled: () => void;
|
|
110
111
|
onQuietClose: (stillStreaming: () => boolean) => void;
|
|
111
112
|
onWorkflowRestarted: () => void;
|
|
113
|
+
onTelemetry: (event: AssistantTelemetryEvent) => void;
|
|
114
|
+
settledFailedTurnId: string | null;
|
|
112
115
|
}
|
|
113
116
|
export interface ConnectionEpoch {
|
|
114
117
|
epochId: number;
|
|
@@ -15,7 +15,7 @@ import { toolErrorRecorder, wellFormedToolErrorAnchorsOf, } from "./tool-error-a
|
|
|
15
15
|
import { toolDecisionRecorder, wellFormedToolDecisionAnchorsOf, } from "./tool-decision-anchors.js";
|
|
16
16
|
import { toolDenialRecorder, wellFormedToolDenialAnchorsOf, } from "./tool-denial-anchors.js";
|
|
17
17
|
import { toolRefusalRecorder, wellFormedToolRefusalAnchorsOf, } from "./tool-refusal-anchors.js";
|
|
18
|
-
import { turnFailedMarkerRecorder, wellFormedFailAnchorsOf, } from "./turn-failed-anchors.js";
|
|
18
|
+
import { failedTurnRecorder, turnFailedMarkerRecorder, wellFormedFailAnchorsOf, } from "./turn-failed-anchors.js";
|
|
19
19
|
import { turnUsageRecorder, wellFormedTurnUsageAnchorsOf, } from "./turn-usage-anchors.js";
|
|
20
20
|
import { messagesRecorder, streamErrorRecorder } from "./messages-cell.js";
|
|
21
21
|
import { withdrawnReplyRecorder, withoutWithdrawnReplies, } from "./withdrawn-anchors.js";
|
|
@@ -110,6 +110,19 @@ function _runMarkerSubscriptionsOf(agent, deps) {
|
|
|
110
110
|
deps.publishMarkerAnchors();
|
|
111
111
|
}
|
|
112
112
|
})),
|
|
113
|
+
agent.subscribe(failedTurnRecorder((failed) => {
|
|
114
|
+
if (!_isNewsToTheHost(failed, deps)) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
deps.onTelemetry({
|
|
118
|
+
name: "turn_failed",
|
|
119
|
+
properties: {
|
|
120
|
+
thread_id: deps.threadId,
|
|
121
|
+
turn_id: failed.turnId,
|
|
122
|
+
reason_code: failed.reasonCode,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
})),
|
|
113
126
|
agent.subscribe(subagentDeliveryMarkerRecorder((deliveryRunId, messageId, results) => {
|
|
114
127
|
if (deps.resume.recordSubagentDelivery(deliveryRunId, messageId, results)) {
|
|
115
128
|
deps.publishMarkerAnchors();
|
|
@@ -124,6 +137,10 @@ function _runMarkerSubscriptionsOf(agent, deps) {
|
|
|
124
137
|
})),
|
|
125
138
|
];
|
|
126
139
|
}
|
|
140
|
+
function _isNewsToTheHost(failed, deps) {
|
|
141
|
+
return (failed.turnId !== deps.settledFailedTurnId &&
|
|
142
|
+
deps.resume.recordFailedTurnReported(failed.turnId));
|
|
143
|
+
}
|
|
127
144
|
function _visibleAnchorOf(messageId, agent, deps) {
|
|
128
145
|
const visible = _visibleMessagesOf(agent, deps);
|
|
129
146
|
if (visible.some((message) => message.id === messageId)) {
|
|
@@ -117,6 +117,7 @@ function _finishAdoption(store, detail) {
|
|
|
117
117
|
resume,
|
|
118
118
|
approvalInbox,
|
|
119
119
|
coworkerRequestTurns: detail.turns,
|
|
120
|
+
settledFailedTurnId: _settledFailedTurnIdOf(detail.turns),
|
|
120
121
|
};
|
|
121
122
|
if (!continuing) {
|
|
122
123
|
store.questionDrafts.clearAll();
|
|
@@ -152,6 +153,10 @@ function adoptCoworkerRequests(store, turns) {
|
|
|
152
153
|
publishApprovalCards(store, active.approvalInbox.cards());
|
|
153
154
|
}
|
|
154
155
|
}
|
|
156
|
+
function _settledFailedTurnIdOf(turns) {
|
|
157
|
+
const newest = turns.at(-1);
|
|
158
|
+
return newest?.status === "failed" ? newest.id : null;
|
|
159
|
+
}
|
|
155
160
|
export function adoptRefreshedDetail(store, detail) {
|
|
156
161
|
const active = store._active;
|
|
157
162
|
if (active?.thread.id !== detail.thread.id) {
|
|
@@ -168,6 +173,7 @@ export function adoptRefreshedDetail(store, detail) {
|
|
|
168
173
|
resume: active.resume,
|
|
169
174
|
approvalInbox: active.approvalInbox,
|
|
170
175
|
coworkerRequestTurns: active.coworkerRequestTurns,
|
|
176
|
+
settledFailedTurnId: active.settledFailedTurnId,
|
|
171
177
|
};
|
|
172
178
|
}
|
|
173
179
|
_adoptWireModelPick(store, detail.thread, { evenWhenDirty: false });
|
|
@@ -217,6 +223,7 @@ export function enterConversationFromSend(store, thread, turn, sentPick) {
|
|
|
217
223
|
resume,
|
|
218
224
|
approvalInbox,
|
|
219
225
|
coworkerRequestTurns: [],
|
|
226
|
+
settledFailedTurnId: null,
|
|
220
227
|
};
|
|
221
228
|
if (sameModelPick(store._modelPick, sentPick)) {
|
|
222
229
|
_adoptWireModelPick(store, thread, { evenWhenDirty: true });
|
|
@@ -17,6 +17,7 @@ export interface ActiveConversation {
|
|
|
17
17
|
resume: StreamResumeStore;
|
|
18
18
|
approvalInbox: ApprovalInbox;
|
|
19
19
|
coworkerRequestTurns: readonly ServingAssistantTurn[];
|
|
20
|
+
settledFailedTurnId: string | null;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* State and controls for writing and sending messages in the open conversation,
|
package/dist/core/epoch-sync.js
CHANGED
|
@@ -89,6 +89,8 @@ function _mintEpochDeps(store, active, epochId) {
|
|
|
89
89
|
onRunSettled: store.handleRunSettled,
|
|
90
90
|
onQuietClose: store.handleStreamClosedQuietly,
|
|
91
91
|
onWorkflowRestarted: store.handleWorkflowRestarted,
|
|
92
|
+
onTelemetry: store.deps.onTelemetry,
|
|
93
|
+
settledFailedTurnId: active.settledFailedTurnId,
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
export function retireEpoch(store) {
|
|
@@ -228,7 +230,7 @@ export function publishActivity(store) {
|
|
|
228
230
|
}
|
|
229
231
|
function _executionHandlers(store, threadId) {
|
|
230
232
|
const capabilities = store.deps.hostCapabilitiesOf();
|
|
231
|
-
return executionHandlersFor(capabilities.navigate, capabilities.executeActionIntent, threadId);
|
|
233
|
+
return executionHandlersFor(capabilities.navigate, capabilities.executeActionIntent, threadId, store.deps.publishableKey);
|
|
232
234
|
}
|
|
233
235
|
function _publishCoworkerWork(store) {
|
|
234
236
|
const coworkerWork = coworkerExecutionWorkOf(store._epoch?.executionInbox.entries() ?? [], store._approvalsCell.get());
|
|
@@ -6,4 +6,4 @@ export type HostNavigate = (path: string) => void | Promise<void>;
|
|
|
6
6
|
export type ExecuteActionIntent = (intent: ActionIntent) => Promise<HttpIntentResult>;
|
|
7
7
|
export { ASK_QUESTIONS_REQUEST_KIND, HIGHLIGHT_REQUEST_KIND, HTTP_INTENT_REQUEST_KIND, KIND_UNSUPPORTED_OUTCOME, MEMBER_ANSWERABLE_KINDS, NAVIGATE_REQUEST_KIND, PREFILL_FORM_REQUEST_KIND, READ_PAGE_REQUEST_KIND, type ExecutionOutcome, } from "./execution-kinds.js";
|
|
8
8
|
import { type ExecutionOutcome } from "./execution-kinds.js";
|
|
9
|
-
export declare function executionHandlersFor(navigate: HostNavigate | null, executeActionIntent: ExecuteActionIntent | null, threadId: string): ReadonlyMap<string, ExecutionHandler>;
|
|
9
|
+
export declare function executionHandlersFor(navigate: HostNavigate | null, executeActionIntent: ExecuteActionIntent | null, threadId: string, publishableKey: string): ReadonlyMap<string, ExecutionHandler>;
|
|
@@ -45,10 +45,10 @@ const ACTION_FAILURE_REASON_MAX_ESCAPED_CHARS = 14_000;
|
|
|
45
45
|
const ACTION_FAILURE_ENVELOPE_RESERVE_DOOR_CHARS = 1_024;
|
|
46
46
|
const ACTION_FAILURE_PAYLOAD_MAX_DOOR_CHARS = 20_000 - ACTION_FAILURE_ENVELOPE_RESERVE_DOOR_CHARS;
|
|
47
47
|
const ACTION_FAILURE_REASON_MIN_ESCAPED_CHARS = 2_000;
|
|
48
|
-
export function executionHandlersFor(navigate, executeActionIntent, threadId) {
|
|
48
|
+
export function executionHandlersFor(navigate, executeActionIntent, threadId, publishableKey) {
|
|
49
49
|
const handlers = new Map();
|
|
50
50
|
if (navigate !== null) {
|
|
51
|
-
handlers.set(NAVIGATE_REQUEST_KIND, (entry) => _navigateOutcomeOf(navigate, entry));
|
|
51
|
+
handlers.set(NAVIGATE_REQUEST_KIND, (entry) => _navigateOutcomeOf(navigate, publishableKey, entry));
|
|
52
52
|
}
|
|
53
53
|
if (executeActionIntent !== null) {
|
|
54
54
|
handlers.set(HTTP_INTENT_REQUEST_KIND, (entry) => _httpIntentOutcomeOf(executeActionIntent, entry));
|
|
@@ -58,7 +58,7 @@ export function executionHandlersFor(navigate, executeActionIntent, threadId) {
|
|
|
58
58
|
handlers.set(PREFILL_FORM_REQUEST_KIND, (entry) => _prefillFormOutcomeOf(entry));
|
|
59
59
|
return handlers;
|
|
60
60
|
}
|
|
61
|
-
async function _navigateOutcomeOf(navigate, entry) {
|
|
61
|
+
async function _navigateOutcomeOf(navigate, publishableKey, entry) {
|
|
62
62
|
const path = _appRelativePathOf(entry.action);
|
|
63
63
|
if (path === null) {
|
|
64
64
|
return UNUSABLE_PATH_OUTCOME;
|
|
@@ -69,7 +69,7 @@ async function _navigateOutcomeOf(navigate, entry) {
|
|
|
69
69
|
catch (error) {
|
|
70
70
|
return _navigationFailedOutcome(path, error);
|
|
71
71
|
}
|
|
72
|
-
openCompanionDrawer();
|
|
72
|
+
openCompanionDrawer(publishableKey);
|
|
73
73
|
const result = { navigated: true, path };
|
|
74
74
|
return { ok: true, result: { ...result } };
|
|
75
75
|
}
|
|
@@ -7,9 +7,9 @@ export class AssistantSurfaceRegistry {
|
|
|
7
7
|
tokens = new Set();
|
|
8
8
|
listeners = new Set();
|
|
9
9
|
snapshot = NO_SURFACES;
|
|
10
|
-
register(kind) {
|
|
10
|
+
register(kind, publishableKey) {
|
|
11
11
|
if (kind === "full-surface") {
|
|
12
|
-
closeCompanionDrawer();
|
|
12
|
+
closeCompanionDrawer(publishableKey);
|
|
13
13
|
}
|
|
14
14
|
const token = { kind };
|
|
15
15
|
this.tokens.add(token);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { receiptOf, wellFormedReceiptAnchorsOf, withReceiptAnchored, type AnchoredReceipts } from "./receipt-anchors.js";
|
|
2
|
+
import { FailureReasonCode } from "../generated/models/index.js";
|
|
2
3
|
import type { AgentSubscriber } from "@ag-ui/client";
|
|
3
4
|
/**
|
|
4
5
|
* The failure sentences for a failed turn, split by whether they are shown
|
|
@@ -10,3 +11,9 @@ export declare const turnFailedReceiptOf: typeof receiptOf;
|
|
|
10
11
|
export declare const withTurnFailedAnchored: typeof withReceiptAnchored;
|
|
11
12
|
export declare const wellFormedFailAnchorsOf: typeof wellFormedReceiptAnchorsOf;
|
|
12
13
|
export declare function turnFailedMarkerRecorder(onReceiptAnchored: (failedRunId: string, messageId: string, position: keyof AnchoredTurnFailReceipts, receipts: string[]) => void): AgentSubscriber;
|
|
14
|
+
export interface FailedTurn {
|
|
15
|
+
turnId: string;
|
|
16
|
+
reasonCode: FailureReasonCode;
|
|
17
|
+
}
|
|
18
|
+
export declare function failedTurnOf(value: unknown): FailedTurn | null;
|
|
19
|
+
export declare function failedTurnRecorder(onFailedLive: (failed: FailedTurn) => void): AgentSubscriber;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { receiptMarkerRecorder, receiptOf, wellFormedReceiptAnchorsOf, withReceiptAnchored, } from "./receipt-anchors.js";
|
|
2
2
|
import { TURN_FAILED_EVENT_NAME } from "../contract/events.js";
|
|
3
|
+
import { FailureReasonCode, } from "../generated/models/index.js";
|
|
3
4
|
export const EMPTY_TURN_FAILED_ANCHORS = new Map();
|
|
4
5
|
export const turnFailedReceiptOf = receiptOf;
|
|
5
6
|
export const withTurnFailedAnchored = withReceiptAnchored;
|
|
@@ -7,3 +8,44 @@ export const wellFormedFailAnchorsOf = wellFormedReceiptAnchorsOf;
|
|
|
7
8
|
export function turnFailedMarkerRecorder(onReceiptAnchored) {
|
|
8
9
|
return receiptMarkerRecorder(TURN_FAILED_EVENT_NAME, onReceiptAnchored);
|
|
9
10
|
}
|
|
11
|
+
export function failedTurnOf(value) {
|
|
12
|
+
if (typeof value !== "object" || value === null) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
const payload = value;
|
|
16
|
+
if (typeof payload.turnId !== "string" || payload.turnId === "") {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
turnId: payload.turnId,
|
|
21
|
+
reasonCode: _knownCodeOf(payload.reasonCode),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function _knownCodeOf(code) {
|
|
25
|
+
const known = Object.values(FailureReasonCode);
|
|
26
|
+
return known.includes(code)
|
|
27
|
+
? code
|
|
28
|
+
: FailureReasonCode.internal_error;
|
|
29
|
+
}
|
|
30
|
+
export function failedTurnRecorder(onFailedLive) {
|
|
31
|
+
let pending = null;
|
|
32
|
+
return {
|
|
33
|
+
onRunInitialized() {
|
|
34
|
+
pending = null;
|
|
35
|
+
},
|
|
36
|
+
onCustomEvent({ event }) {
|
|
37
|
+
if (event.name === TURN_FAILED_EVENT_NAME) {
|
|
38
|
+
pending = failedTurnOf(event.value);
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
onRunFinishedEvent() {
|
|
42
|
+
pending = null;
|
|
43
|
+
},
|
|
44
|
+
onRunErrorEvent() {
|
|
45
|
+
if (pending !== null) {
|
|
46
|
+
onFailedLive(pending);
|
|
47
|
+
}
|
|
48
|
+
pending = null;
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -89,11 +89,14 @@ export declare const ApiErrorCode: {
|
|
|
89
89
|
readonly ORG_ACTION_PROPOSAL_STALE: "ORG_ACTION_PROPOSAL_STALE";
|
|
90
90
|
readonly ACTION_GRANTED_BY_PUBLISHED_AGENTS: "ACTION_GRANTED_BY_PUBLISHED_AGENTS";
|
|
91
91
|
readonly ORG_ACTION_PROPOSAL_CHANGED: "ORG_ACTION_PROPOSAL_CHANGED";
|
|
92
|
+
readonly ORG_ACTION_PROPOSAL_NEEDS_A_CHOICE: "ORG_ACTION_PROPOSAL_NEEDS_A_CHOICE";
|
|
93
|
+
readonly ORG_ACTION_CHANGED: "ORG_ACTION_CHANGED";
|
|
92
94
|
readonly ORG_ACTION_PROPOSAL_NOT_EDITABLE: "ORG_ACTION_PROPOSAL_NOT_EDITABLE";
|
|
93
95
|
readonly ORG_ACTION_SCAN_ALREADY_RUNNING: "ORG_ACTION_SCAN_ALREADY_RUNNING";
|
|
94
96
|
readonly ORG_ACTION_SPEC_UPLOADS_NOT_AVAILABLE: "ORG_ACTION_SPEC_UPLOADS_NOT_AVAILABLE";
|
|
95
97
|
readonly ORG_ACTION_SPEC_UPLOAD_INVALID: "ORG_ACTION_SPEC_UPLOAD_INVALID";
|
|
96
98
|
readonly ORG_ACTION_SPEC_UPLOAD_TOO_LARGE: "ORG_ACTION_SPEC_UPLOAD_TOO_LARGE";
|
|
99
|
+
readonly ORG_ACTION_SPEC_UPLOAD_NEEDS_GRAPHQL_ENDPOINT: "ORG_ACTION_SPEC_UPLOAD_NEEDS_GRAPHQL_ENDPOINT";
|
|
97
100
|
readonly ORG_SITEMAP_PAGE_INVALID: "ORG_SITEMAP_PAGE_INVALID";
|
|
98
101
|
readonly ORG_SITEMAP_ROUTE_ALREADY_REGISTERED: "ORG_SITEMAP_ROUTE_ALREADY_REGISTERED";
|
|
99
102
|
readonly ORG_SITEMAP_PAGE_ALREADY_ARCHIVED: "ORG_SITEMAP_PAGE_ALREADY_ARCHIVED";
|
|
@@ -88,11 +88,14 @@ export const ApiErrorCode = {
|
|
|
88
88
|
ORG_ACTION_PROPOSAL_STALE: "ORG_ACTION_PROPOSAL_STALE",
|
|
89
89
|
ACTION_GRANTED_BY_PUBLISHED_AGENTS: "ACTION_GRANTED_BY_PUBLISHED_AGENTS",
|
|
90
90
|
ORG_ACTION_PROPOSAL_CHANGED: "ORG_ACTION_PROPOSAL_CHANGED",
|
|
91
|
+
ORG_ACTION_PROPOSAL_NEEDS_A_CHOICE: "ORG_ACTION_PROPOSAL_NEEDS_A_CHOICE",
|
|
92
|
+
ORG_ACTION_CHANGED: "ORG_ACTION_CHANGED",
|
|
91
93
|
ORG_ACTION_PROPOSAL_NOT_EDITABLE: "ORG_ACTION_PROPOSAL_NOT_EDITABLE",
|
|
92
94
|
ORG_ACTION_SCAN_ALREADY_RUNNING: "ORG_ACTION_SCAN_ALREADY_RUNNING",
|
|
93
95
|
ORG_ACTION_SPEC_UPLOADS_NOT_AVAILABLE: "ORG_ACTION_SPEC_UPLOADS_NOT_AVAILABLE",
|
|
94
96
|
ORG_ACTION_SPEC_UPLOAD_INVALID: "ORG_ACTION_SPEC_UPLOAD_INVALID",
|
|
95
97
|
ORG_ACTION_SPEC_UPLOAD_TOO_LARGE: "ORG_ACTION_SPEC_UPLOAD_TOO_LARGE",
|
|
98
|
+
ORG_ACTION_SPEC_UPLOAD_NEEDS_GRAPHQL_ENDPOINT: "ORG_ACTION_SPEC_UPLOAD_NEEDS_GRAPHQL_ENDPOINT",
|
|
96
99
|
ORG_SITEMAP_PAGE_INVALID: "ORG_SITEMAP_PAGE_INVALID",
|
|
97
100
|
ORG_SITEMAP_ROUTE_ALREADY_REGISTERED: "ORG_SITEMAP_ROUTE_ALREADY_REGISTERED",
|
|
98
101
|
ORG_SITEMAP_PAGE_ALREADY_ARCHIVED: "ORG_SITEMAP_PAGE_ALREADY_ARCHIVED",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a reply failed, coarse on purpose since it is visible in the browser.
|
|
3
|
+
* "model_unavailable": the AI model did not respond; "rate_limited": too many
|
|
4
|
+
* requests right now; "credential_declined": an API key or connected ChatGPT
|
|
5
|
+
* plan was refused; "out_of_credit": your Teaflask organization has no funds to
|
|
6
|
+
* pay for replies; "too_long": the message or conversation is too long;
|
|
7
|
+
* "content_refused": the model's content policy refused the message;
|
|
8
|
+
* "configuration_error": the assistant's setup asks for something its model
|
|
9
|
+
* cannot do; "internal_error": anything else. Treat an unknown code as
|
|
10
|
+
* "internal_error".
|
|
11
|
+
*/
|
|
12
|
+
export type FailureReasonCode = (typeof FailureReasonCode)[keyof typeof FailureReasonCode];
|
|
13
|
+
/**
|
|
14
|
+
* Why a reply failed, coarse on purpose since it is visible in the browser.
|
|
15
|
+
* "model_unavailable": the AI model did not respond; "rate_limited": too many
|
|
16
|
+
* requests right now; "credential_declined": an API key or connected ChatGPT
|
|
17
|
+
* plan was refused; "out_of_credit": your Teaflask organization has no funds to
|
|
18
|
+
* pay for replies; "too_long": the message or conversation is too long;
|
|
19
|
+
* "content_refused": the model's content policy refused the message;
|
|
20
|
+
* "configuration_error": the assistant's setup asks for something its model
|
|
21
|
+
* cannot do; "internal_error": anything else. Treat an unknown code as
|
|
22
|
+
* "internal_error".
|
|
23
|
+
*/
|
|
24
|
+
export declare const FailureReasonCode: {
|
|
25
|
+
readonly model_unavailable: "model_unavailable";
|
|
26
|
+
readonly rate_limited: "rate_limited";
|
|
27
|
+
readonly credential_declined: "credential_declined";
|
|
28
|
+
readonly out_of_credit: "out_of_credit";
|
|
29
|
+
readonly too_long: "too_long";
|
|
30
|
+
readonly content_refused: "content_refused";
|
|
31
|
+
readonly configuration_error: "configuration_error";
|
|
32
|
+
readonly internal_error: "internal_error";
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const FailureReasonCode = {
|
|
2
|
+
model_unavailable: "model_unavailable",
|
|
3
|
+
rate_limited: "rate_limited",
|
|
4
|
+
credential_declined: "credential_declined",
|
|
5
|
+
out_of_credit: "out_of_credit",
|
|
6
|
+
too_long: "too_long",
|
|
7
|
+
content_refused: "content_refused",
|
|
8
|
+
configuration_error: "configuration_error",
|
|
9
|
+
internal_error: "internal_error",
|
|
10
|
+
};
|
|
@@ -45,6 +45,7 @@ export * from "./errorEnvelope.js";
|
|
|
45
45
|
export * from "./evidenceAfterVoidRecordedMarker.js";
|
|
46
46
|
export * from "./evidenceAfterVoidRecordedMarkerError.js";
|
|
47
47
|
export * from "./evidenceAfterVoidRecordedMarkerResult.js";
|
|
48
|
+
export * from "./failureReasonCode.js";
|
|
48
49
|
export * from "./fileSource.js";
|
|
49
50
|
export * from "./functionCall.js";
|
|
50
51
|
export * from "./getServingAssistantThreadParams.js";
|
|
@@ -45,6 +45,7 @@ export * from "./errorEnvelope.js";
|
|
|
45
45
|
export * from "./evidenceAfterVoidRecordedMarker.js";
|
|
46
46
|
export * from "./evidenceAfterVoidRecordedMarkerError.js";
|
|
47
47
|
export * from "./evidenceAfterVoidRecordedMarkerResult.js";
|
|
48
|
+
export * from "./failureReasonCode.js";
|
|
48
49
|
export * from "./fileSource.js";
|
|
49
50
|
export * from "./functionCall.js";
|
|
50
51
|
export * from "./getServingAssistantThreadParams.js";
|
package/dist/headless.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { TeaflaskAssistantProvider, type TeaflaskAssistantAnonymousProps, type TeaflaskAssistantIdentityProps, type TeaflaskAssistantProviderBaseProps, type TeaflaskAssistantProviderProps, } from "./components/teaflask-assistant-provider.js";
|
|
2
2
|
export type { AssistantTheme, AssistantThemeDarkTokens, AssistantThemeMode, AssistantThemeTokens, } from "./appearance/theme.js";
|
|
3
3
|
export type { ActionsAdapter, ActionIntent, ActionIntentAction, ActionIntentGraphQL, CookiesActionsAdapter, HeadersActionsAdapter, RequestActionsAdapter, } from "./contract/actions-adapter.js";
|
|
4
|
-
export type { ApprovalSubmitTelemetryEvent, AssistantTelemetryEvent, StreamFailedTelemetryEvent, } from "./contract/telemetry.js";
|
|
4
|
+
export type { ApprovalSubmitTelemetryEvent, AssistantTelemetryEvent, StreamFailedTelemetryEvent, TurnFailedTelemetryEvent, } from "./contract/telemetry.js";
|
|
5
5
|
export type { AssistantSuggestion, AssistantSuggestionInput, AssistantSuggestionKind, } from "./components/conversation-view.js";
|
|
6
6
|
export type { IconAdapter, JsonSchema, ToolViewAdapter, ToolViewCall, ToolViewInstance, ToolViewProps, ToolViewRegistration, ToolViewRegistry, } from "./core/tool-view.js";
|
|
7
7
|
export { useAssistantConversation, type AssistantConversation, type OpenConversation, } from "./components/use-assistant-conversation.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type { ServingErrorCode, ServingErrorCodeOnTheWire, } from "./contract/er
|
|
|
14
14
|
export type { ServingAssistantThread, TurnStatus } from "./contract/threads.js";
|
|
15
15
|
export { activeFoldElapsedOf, settledFoldDurationOf, type BlockTiming, type SegmentDuration, } from "./core/segment-timing.js";
|
|
16
16
|
export type { MemoryUpdated } from "./core/memory-provenance-anchors.js";
|
|
17
|
-
export type { ApprovalSubmitDropReason, ApprovalSubmitTelemetryEvent, AssistantTelemetryEvent, StreamFailedTelemetryEvent, StreamFailureClass, } from "./contract/telemetry.js";
|
|
17
|
+
export type { ApprovalSubmitDropReason, ApprovalSubmitTelemetryEvent, AssistantTelemetryEvent, FailureReasonCode, StreamFailedTelemetryEvent, StreamFailureClass, TurnFailedTelemetryEvent, } from "./contract/telemetry.js";
|
|
18
18
|
export type { ToolCallDisplay, ToolCallState, ToolCallViewModel, } from "./core/tool-call-display.js";
|
|
19
19
|
export { TOOL_CALL_ICONS, toolCallPresentationOf, type ToolCallIcon, type ToolCallPresentation, } from "./core/tool-call-presentation.js";
|
|
20
20
|
export { actionToolName, actionToolViews, resolvedToolViewsOf, type IconAdapter, type JsonSchema, type ResolvedToolView, type ResolvedToolViewIcon, type ToolViewAdapter, type ToolViewCall, type ToolViewInstance, type ToolViewProps, type ToolViewRegistration, type ToolViewRegistry, type ToolViewResolution, type ToolViewThemeMode, } from "./core/tool-view.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const PANEL_OPEN_VALUE = "open";
|
|
2
|
+
export function readPanelOpen(publishableKey) {
|
|
3
|
+
try {
|
|
4
|
+
return (_storage()?.getItem(_storageKeyFor(publishableKey)) === PANEL_OPEN_VALUE);
|
|
5
|
+
}
|
|
6
|
+
catch {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export function writePanelOpen(publishableKey, open) {
|
|
11
|
+
if (!open) {
|
|
12
|
+
clearPanelOpen(publishableKey);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
_storage()?.setItem(_storageKeyFor(publishableKey), PANEL_OPEN_VALUE);
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export function clearPanelOpen(publishableKey) {
|
|
22
|
+
try {
|
|
23
|
+
_storage()?.removeItem(_storageKeyFor(publishableKey));
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function _storageKeyFor(publishableKey) {
|
|
29
|
+
return `tf-assistant:${publishableKey}:panel-open`;
|
|
30
|
+
}
|
|
31
|
+
function _storage() {
|
|
32
|
+
if (typeof window === "undefined") {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
return window.sessionStorage;
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -9,8 +9,9 @@ export declare function writeStoredThread(publishableKey: string, stored: Stored
|
|
|
9
9
|
export declare function clearStoredThread(publishableKey: string): void;
|
|
10
10
|
/**
|
|
11
11
|
* Forgets the conversation this browser would resume for the given publishable
|
|
12
|
-
* key
|
|
13
|
-
*
|
|
12
|
+
* key and closes the assistant panel for the next page load, so the next person
|
|
13
|
+
* on this device starts fresh. Call it in your sign-out handler; it works even
|
|
14
|
+
* on pages where the assistant is not mounted.
|
|
14
15
|
*/
|
|
15
16
|
export declare function resetAssistant(options: {
|
|
16
17
|
publishableKey: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { clearPanelOpen } from "./panel-open.js";
|
|
1
2
|
export function readStoredThread(publishableKey) {
|
|
2
3
|
const raw = _storage()?.getItem(_storageKeyFor(publishableKey)) ?? null;
|
|
3
4
|
if (raw === null) {
|
|
@@ -28,6 +29,7 @@ export function clearStoredThread(publishableKey) {
|
|
|
28
29
|
}
|
|
29
30
|
export function resetAssistant(options) {
|
|
30
31
|
clearStoredThread(options.publishableKey);
|
|
32
|
+
clearPanelOpen(options.publishableKey);
|
|
31
33
|
}
|
|
32
34
|
function _storageKeyFor(publishableKey) {
|
|
33
35
|
return `tf-assistant:${publishableKey}:thread`;
|
package/dist/styles.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-content:"";--tw-outline-style:solid}}}@layer theme;@layer base{[data-tf-assistant] button,[data-tf-assistant] textarea,[data-tf-assistant] input,[data-tf-assistant] select{font:inherit}}@layer components,utilities;.tf\:\@container{container-type:inline-size}.tf\:pointer-events-auto{pointer-events:auto}.tf\:pointer-events-none{pointer-events:none}.tf\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tf\:absolute{position:absolute}.tf\:fixed{position:fixed}.tf\:relative{position:relative}.tf\:sticky{position:sticky}.tf\:-inset-2{inset:calc(var(--tf-spacing,.25rem) * -2)}.tf\:inset-0{inset:0}.tf\:inset-auto{inset:auto}.tf\:inset-x-0{inset-inline:0}.tf\:inset-y-0{inset-block:0}.tf\:start-0{inset-inline-start:calc(var(--tf-spacing,.25rem) * 0)}.tf\:start-1\/2{inset-inline-start:50%}.tf\:start-2{inset-inline-start:calc(var(--tf-spacing,.25rem) * 2)}.tf\:-end-0\.5{inset-inline-end:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:-top-0\.5{top:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:top-0{top:0}.tf\:top-5\.5{top:calc(var(--tf-spacing,.25rem) * 5.5)}.tf\:top-14{top:calc(var(--tf-spacing,.25rem) * 14)}.tf\:right-0{right:0}.tf\:right-2{right:calc(var(--tf-spacing,.25rem) * 2)}.tf\:right-4{right:calc(var(--tf-spacing,.25rem) * 4)}.tf\:-bottom-0\.5{bottom:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:bottom-0{bottom:0}.tf\:bottom-3{bottom:calc(var(--tf-spacing,.25rem) * 3)}.tf\:bottom-4{bottom:calc(var(--tf-spacing,.25rem) * 4)}.tf\:bottom-full{bottom:100%}.tf\:left-2\.5{left:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:left-4{left:calc(var(--tf-spacing,.25rem) * 4)}.tf\:left-auto{left:auto}.tf\:isolate{isolation:isolate}.tf\:col-start-1{grid-column-start:1}.tf\:row-start-1{grid-row-start:1}.tf\:m-0{margin:0}.tf\:m-auto{margin:auto}.tf\:mx-auto{margin-inline:auto}.tf\:my-1{margin-block:var(--tf-spacing,.25rem)}.tf\:my-1\.5{margin-block:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:my-2{margin-block:calc(var(--tf-spacing,.25rem) * 2)}.tf\:my-3{margin-block:calc(var(--tf-spacing,.25rem) * 3)}.tf\:my-auto{margin-block:auto}.tf\:ms-auto{margin-inline-start:auto}.tf\:me-auto{margin-inline-end:auto}.tf\:mt-0\.5{margin-top:calc(var(--tf-spacing,.25rem) * .5)}.tf\:mt-1{margin-top:var(--tf-spacing,.25rem)}.tf\:mt-1\.5{margin-top:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:mt-2{margin-top:calc(var(--tf-spacing,.25rem) * 2)}.tf\:mt-3{margin-top:calc(var(--tf-spacing,.25rem) * 3)}.tf\:mr-auto{margin-right:auto}.tf\:mb-1{margin-bottom:var(--tf-spacing,.25rem)}.tf\:mb-2{margin-bottom:calc(var(--tf-spacing,.25rem) * 2)}.tf\:mb-3{margin-bottom:calc(var(--tf-spacing,.25rem) * 3)}.tf\:-ml-1\.5{margin-left:calc(var(--tf-spacing,.25rem) * -1.5)}.tf\:ml-auto{margin-left:auto}.tf\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tf\:block{display:block}.tf\:contents{display:contents}.tf\:flex{display:flex}.tf\:grid{display:grid}.tf\:hidden{display:none}.tf\:inline-flex{display:inline-flex}.tf\:inline-grid{display:inline-grid}.tf\:size-1\.5{width:calc(var(--tf-spacing,.25rem) * 1.5);height:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:size-2{width:calc(var(--tf-spacing,.25rem) * 2);height:calc(var(--tf-spacing,.25rem) * 2)}.tf\:size-3{width:calc(var(--tf-spacing,.25rem) * 3);height:calc(var(--tf-spacing,.25rem) * 3)}.tf\:size-3\.5{width:calc(var(--tf-spacing,.25rem) * 3.5);height:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:size-4{width:calc(var(--tf-spacing,.25rem) * 4);height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:size-6{width:calc(var(--tf-spacing,.25rem) * 6);height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:size-7{width:calc(var(--tf-spacing,.25rem) * 7);height:calc(var(--tf-spacing,.25rem) * 7)}.tf\:size-8{width:calc(var(--tf-spacing,.25rem) * 8);height:calc(var(--tf-spacing,.25rem) * 8)}.tf\:size-9{width:calc(var(--tf-spacing,.25rem) * 9);height:calc(var(--tf-spacing,.25rem) * 9)}.tf\:size-full{width:100%;height:100%}.tf\:h-2\.5{height:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:h-4{height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:h-5{height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:h-5\.5{height:calc(var(--tf-spacing,.25rem) * 5.5)}.tf\:h-6{height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:h-7{height:calc(var(--tf-spacing,.25rem) * 7)}.tf\:h-8{height:calc(var(--tf-spacing,.25rem) * 8)}.tf\:h-9{height:calc(var(--tf-spacing,.25rem) * 9)}.tf\:h-11{height:calc(var(--tf-spacing,.25rem) * 11)}.tf\:h-12{height:calc(var(--tf-spacing,.25rem) * 12)}.tf\:h-14{height:calc(var(--tf-spacing,.25rem) * 14)}.tf\:h-\[calc\(100dvh-2rem\)\]{height:calc(100dvh - 2rem)}.tf\:h-\[min\(68dvh\,52rem\,calc\(100dvh-6rem\)\)\]{height:min(68dvh,52rem,100dvh - 6rem)}.tf\:h-dvh{height:100dvh}.tf\:h-full{height:100%}.tf\:h-px{height:1px}.tf\:max-h-48{max-height:calc(var(--tf-spacing,.25rem) * 48)}.tf\:max-h-60{max-height:calc(var(--tf-spacing,.25rem) * 60)}.tf\:max-h-64{max-height:calc(var(--tf-spacing,.25rem) * 64)}.tf\:max-h-72{max-height:calc(var(--tf-spacing,.25rem) * 72)}.tf\:max-h-96{max-height:calc(var(--tf-spacing,.25rem) * 96)}.tf\:max-h-\[min\(32rem\,calc\(100vh-6rem\)\)\]{max-height:min(32rem,100vh - 6rem)}.tf\:max-h-dvh{max-height:100dvh}.tf\:min-h-0{min-height:0}.tf\:min-h-5{min-height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:min-h-6{min-height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:min-h-11{min-height:calc(var(--tf-spacing,.25rem) * 11)}.tf\:w-1\/2{width:50%}.tf\:w-1\/4{width:25%}.tf\:w-2\/5{width:40%}.tf\:w-3\/5{width:60%}.tf\:w-4{width:calc(var(--tf-spacing,.25rem) * 4)}.tf\:w-5{width:calc(var(--tf-spacing,.25rem) * 5)}.tf\:w-10\/12{width:83.3333%}.tf\:w-11\/12{width:91.6667%}.tf\:w-52{width:calc(var(--tf-spacing,.25rem) * 52)}.tf\:w-72{width:calc(var(--tf-spacing,.25rem) * 72)}.tf\:w-80{width:calc(var(--tf-spacing,.25rem) * 80)}.tf\:w-104{width:calc(var(--tf-spacing,.25rem) * 104)}.tf\:w-\[calc\(100vw-2rem\)\]{width:calc(100vw - 2rem)}.tf\:w-\[clamp\(24rem\,44vw\,46rem\)\]{width:clamp(24rem,44vw,46rem)}.tf\:w-fit{width:fit-content}.tf\:w-full{width:100%}.tf\:w-px{width:1px}.tf\:max-w-3xl{max-width:var(--tf-container-3xl,48rem)}.tf\:max-w-56{max-width:calc(var(--tf-spacing,.25rem) * 56)}.tf\:max-w-\[calc\(100\%-1\.25rem\)\]{max-width:calc(100% - 1.25rem)}.tf\:max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.tf\:max-w-\[calc\(100vw-3rem\)\]{max-width:calc(100vw - 3rem)}.tf\:max-w-full{max-width:100%}.tf\:max-w-md{max-width:var(--tf-container-md,28rem)}.tf\:max-w-xl{max-width:var(--tf-container-xl,36rem)}.tf\:min-w-0{min-width:0}.tf\:min-w-5{min-width:calc(var(--tf-spacing,.25rem) * 5)}.tf\:min-w-6{min-width:calc(var(--tf-spacing,.25rem) * 6)}.tf\:min-w-56{min-width:calc(var(--tf-spacing,.25rem) * 56)}.tf\:flex-1{flex:1}.tf\:shrink-0{flex-shrink:0}.tf\:-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.tf\:-rotate-90{rotate:-90deg}.tf\:rotate-0{rotate:0deg}.tf\:rotate-90{rotate:90deg}.tf\:animate-tf-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite tf-pulse}.tf\:animate-tf-spin{animation:1s linear infinite tf-spin}.tf\:cursor-pointer{cursor:pointer}.tf\:cursor-text{cursor:text}.tf\:resize-none{resize:none}.tf\:list-none{list-style-type:none}.tf\:appearance-none{appearance:none}.tf\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.tf\:grid-cols-\[minmax\(6rem\,30\%\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(6rem,30%) minmax(0,1fr)}.tf\:flex-col{flex-direction:column}.tf\:flex-wrap{flex-wrap:wrap}.tf\:place-items-center{place-items:center}.tf\:items-baseline{align-items:baseline}.tf\:items-center{align-items:center}.tf\:items-end{align-items:flex-end}.tf\:items-start{align-items:flex-start}.tf\:justify-between{justify-content:space-between}.tf\:justify-center{justify-content:center}.tf\:justify-end{justify-content:flex-end}.tf\:justify-start{justify-content:flex-start}.tf\:gap-0\.5{gap:calc(var(--tf-spacing,.25rem) * .5)}.tf\:gap-1{gap:var(--tf-spacing,.25rem)}.tf\:gap-1\.5{gap:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:gap-2{gap:calc(var(--tf-spacing,.25rem) * 2)}.tf\:gap-2\.5{gap:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:gap-3{gap:calc(var(--tf-spacing,.25rem) * 3)}.tf\:gap-6{gap:calc(var(--tf-spacing,.25rem) * 6)}.tf\:gap-px{gap:1px}:where(.tf\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tf-spacing,.25rem) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tf-spacing,.25rem) * 3) * calc(1 - var(--tw-space-y-reverse)))}.tf\:gap-x-3{column-gap:calc(var(--tf-spacing,.25rem) * 3)}.tf\:gap-y-2{row-gap:calc(var(--tf-spacing,.25rem) * 2)}.tf\:self-start{align-self:flex-start}.tf\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tf\:overflow-auto{overflow:auto}.tf\:overflow-hidden{overflow:hidden}.tf\:overflow-visible{overflow:visible}.tf\:overflow-x-auto{overflow-x:auto}.tf\:overflow-y-auto{overflow-y:auto}.tf\:overscroll-contain{overscroll-behavior:contain}.tf\:rounded{border-radius:.25rem}.tf\:rounded-2xl{border-radius:var(--tf-radius-2xl,1rem)}.tf\:rounded-3xl{border-radius:var(--tf-radius-3xl,1.5rem)}.tf\:rounded-\[3px\]{border-radius:3px}.tf\:rounded-\[5px\]{border-radius:5px}.tf\:rounded-full{border-radius:3.40282e38px}.tf\:rounded-lg{border-radius:var(--tf-radius-lg,.5rem)}.tf\:rounded-md{border-radius:var(--tf-radius-md,.375rem)}.tf\:rounded-none{border-radius:0}.tf\:rounded-tf{border-radius:var(--_tf-radius)}.tf\:rounded-xl{border-radius:var(--tf-radius-xl,.75rem)}.tf\:rounded-t-xl{border-top-left-radius:var(--tf-radius-xl,.75rem);border-top-right-radius:var(--tf-radius-xl,.75rem)}.tf\:rounded-b-xl{border-bottom-right-radius:var(--tf-radius-xl,.75rem);border-bottom-left-radius:var(--tf-radius-xl,.75rem)}.tf\:border{border-style:var(--tw-border-style);border-width:1px}.tf\:border-0{border-style:var(--tw-border-style);border-width:0}.tf\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tf\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tf\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.tf\:border-tf-background{border-color:var(--_tf-background)}.tf\:border-tf-border{border-color:var(--_tf-border)}.tf\:border-tf-input{border-color:var(--_tf-input)}.tf\:bg-current{background-color:currentColor}.tf\:bg-tf-accent{background-color:var(--_tf-accent)}.tf\:bg-tf-background{background-color:var(--_tf-background)}.tf\:bg-tf-border{background-color:var(--_tf-border)}.tf\:bg-tf-card{background-color:var(--_tf-card)}.tf\:bg-tf-destructive{background-color:var(--_tf-destructive)}.tf\:bg-tf-emphasis{background-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:bg-tf-emphasis{background-color:color-mix(in oklab, var(--_tf-foreground) var(--_tf-emphasis-mix), var(--_tf-muted))}}.tf\:bg-tf-foreground{background-color:var(--_tf-foreground)}.tf\:bg-tf-muted{background-color:var(--_tf-muted)}.tf\:bg-tf-muted-foreground{background-color:var(--_tf-muted-foreground)}.tf\:bg-tf-primary{background-color:var(--_tf-primary)}.tf\:bg-tf-secondary{background-color:var(--_tf-secondary)}.tf\:bg-tf-transparent,.tf\:bg-transparent{background-color:#0000}.tf\:p-0{padding:0}.tf\:p-1{padding:var(--tf-spacing,.25rem)}.tf\:p-2{padding:calc(var(--tf-spacing,.25rem) * 2)}.tf\:p-3{padding:calc(var(--tf-spacing,.25rem) * 3)}.tf\:p-3\.5{padding:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:p-4{padding:calc(var(--tf-spacing,.25rem) * 4)}.tf\:p-6{padding:calc(var(--tf-spacing,.25rem) * 6)}.tf\:px-0{padding-inline:0}.tf\:px-1{padding-inline:var(--tf-spacing,.25rem)}.tf\:px-1\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:px-2{padding-inline:calc(var(--tf-spacing,.25rem) * 2)}.tf\:px-2\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:px-3{padding-inline:calc(var(--tf-spacing,.25rem) * 3)}.tf\:px-3\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:px-4{padding-inline:calc(var(--tf-spacing,.25rem) * 4)}.tf\:px-6{padding-inline:calc(var(--tf-spacing,.25rem) * 6)}.tf\:py-0\.5{padding-block:calc(var(--tf-spacing,.25rem) * .5)}.tf\:py-1{padding-block:var(--tf-spacing,.25rem)}.tf\:py-1\.5{padding-block:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:py-2{padding-block:calc(var(--tf-spacing,.25rem) * 2)}.tf\:py-2\.5{padding-block:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:py-3{padding-block:calc(var(--tf-spacing,.25rem) * 3)}.tf\:py-4{padding-block:calc(var(--tf-spacing,.25rem) * 4)}.tf\:py-6{padding-block:calc(var(--tf-spacing,.25rem) * 6)}.tf\:py-\[5px\]{padding-block:5px}.tf\:py-px{padding-block:1px}.tf\:ps-0{padding-inline-start:0}.tf\:ps-2{padding-inline-start:calc(var(--tf-spacing,.25rem) * 2)}.tf\:ps-6{padding-inline-start:calc(var(--tf-spacing,.25rem) * 6)}.tf\:ps-7{padding-inline-start:calc(var(--tf-spacing,.25rem) * 7)}.tf\:ps-11{padding-inline-start:calc(var(--tf-spacing,.25rem) * 11)}.tf\:ps-20{padding-inline-start:calc(var(--tf-spacing,.25rem) * 20)}.tf\:pe-0\.5{padding-inline-end:calc(var(--tf-spacing,.25rem) * .5)}.tf\:pe-3{padding-inline-end:calc(var(--tf-spacing,.25rem) * 3)}.tf\:pt-1{padding-top:var(--tf-spacing,.25rem)}.tf\:pt-1\.5{padding-top:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:pt-2{padding-top:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pt-3{padding-top:calc(var(--tf-spacing,.25rem) * 3)}.tf\:pt-4{padding-top:calc(var(--tf-spacing,.25rem) * 4)}.tf\:pt-16{padding-top:calc(var(--tf-spacing,.25rem) * 16)}.tf\:pr-2{padding-right:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pb-0\.5{padding-bottom:calc(var(--tf-spacing,.25rem) * .5)}.tf\:pb-1{padding-bottom:var(--tf-spacing,.25rem)}.tf\:pb-2{padding-bottom:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pb-4{padding-bottom:calc(var(--tf-spacing,.25rem) * 4)}.tf\:pb-5{padding-bottom:calc(var(--tf-spacing,.25rem) * 5)}.tf\:pb-6{padding-bottom:calc(var(--tf-spacing,.25rem) * 6)}.tf\:pb-16{padding-bottom:calc(var(--tf-spacing,.25rem) * 16)}.tf\:pb-\[calc\(0\.5rem_\+_env\(safe-area-inset-bottom\)\)\]{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}.tf\:pl-4{padding-left:calc(var(--tf-spacing,.25rem) * 4)}.tf\:text-center{text-align:center}.tf\:text-left{text-align:left}.tf\:text-start{text-align:start}.tf\:font-mono{font-family:var(--tf-font-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.tf\:font-tf-sans{font-family:var(--_tf-font-sans)}.tf\:text-3xl{font-size:var(--tf-text-3xl,1.875rem);line-height:var(--tw-leading,var(--tf-text-3xl--line-height,calc(2.25 / 1.875)))}.tf\:text-sm{font-size:var(--tf-text-sm,.875rem);line-height:var(--tw-leading,var(--tf-text-sm--line-height,calc(1.25 / .875)))}.tf\:text-tf-body{font-size:.9375rem;line-height:var(--tw-leading,1.6)}.tf\:text-xl{font-size:var(--tf-text-xl,1.25rem);line-height:var(--tw-leading,var(--tf-text-xl--line-height,calc(1.75 / 1.25)))}.tf\:text-xs{font-size:var(--tf-text-xs,.75rem);line-height:var(--tw-leading,var(--tf-text-xs--line-height,calc(1 / .75)))}.tf\:text-tf-heading{letter-spacing:var(--tw-tracking,-.02em);font-size:.9375rem}.tf\:text-\[11px\]{font-size:11px}.tf\:text-tf-label{font-size:.8125rem}.tf\:leading-4{--tw-leading:calc(var(--tf-spacing,.25rem) * 4);line-height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:leading-5{--tw-leading:calc(var(--tf-spacing,.25rem) * 5);line-height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:leading-\[1\.35\]{--tw-leading:1.35;line-height:1.35}.tf\:leading-none{--tw-leading:1;line-height:1}.tf\:leading-relaxed{--tw-leading:var(--tf-leading-relaxed,1.625);line-height:var(--tf-leading-relaxed,1.625)}.tf\:font-medium{--tw-font-weight:var(--tf-font-weight-medium,500);font-weight:var(--tf-font-weight-medium,500)}.tf\:font-normal{--tw-font-weight:var(--tf-font-weight-normal,400);font-weight:var(--tf-font-weight-normal,400)}.tf\:font-semibold{--tw-font-weight:var(--tf-font-weight-semibold,600);font-weight:var(--tf-font-weight-semibold,600)}.tf\:tracking-\[-0\.04em\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tf\:text-balance{text-wrap:balance}.tf\:break-words{overflow-wrap:break-word}.tf\:wrap-anywhere{overflow-wrap:anywhere}.tf\:whitespace-nowrap{white-space:nowrap}.tf\:whitespace-pre-wrap{white-space:pre-wrap}.tf\:text-inherit{color:inherit}.tf\:text-tf-card-foreground{color:var(--_tf-card-foreground)}.tf\:text-tf-destructive{color:var(--_tf-destructive)}.tf\:text-tf-foreground{color:var(--_tf-foreground)}.tf\:text-tf-muted-foreground{color:var(--_tf-muted-foreground)}.tf\:text-tf-popover-foreground{color:var(--_tf-popover-foreground)}.tf\:text-tf-primary-foreground{color:var(--_tf-primary-foreground)}.tf\:text-tf-secondary-foreground{color:var(--_tf-secondary-foreground)}.tf\:lowercase{text-transform:lowercase}.tf\:italic{font-style:italic}.tf\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tf\:no-underline{text-decoration-line:none}.tf\:underline{text-decoration-line:underline}.tf\:underline-offset-2{text-underline-offset:2px}.tf\:opacity-0{opacity:0}.tf\:opacity-45{opacity:.45}.tf\:opacity-100{opacity:1}.tf\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:shadow-tf-control{--tw-shadow:0px 1px 2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:ring-tf-border{--tw-ring-color:var(--_tf-border)}.tf\:transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-\[opacity\,transform\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:outline-none{--tw-outline-style:none;outline-style:none}.tf\:select-none{-webkit-user-select:none;user-select:none}.tf\:ring-inset{--tw-ring-inset:inset}.tf\:group-focus-within\/assistant-message\:opacity-100:is(:where(.tf\:group\/assistant-message):focus-within *),.tf\:group-focus-within\/user-message\:opacity-100:is(:where(.tf\:group\/user-message):focus-within *){opacity:1}@media (hover:hover){.tf\:group-hover\/assistant-message\:opacity-100:is(:where(.tf\:group\/assistant-message):hover *){opacity:1}.tf\:group-hover\/row\:text-tf-accent-foreground:is(:where(.tf\:group\/row):hover *){color:var(--_tf-accent-foreground)}.tf\:group-hover\/subagent\:opacity-100:is(:where(.tf\:group\/subagent):hover *),.tf\:group-hover\/user-message\:opacity-100:is(:where(.tf\:group\/user-message):hover *){opacity:1}}.tf\:group-focus-visible\/subagent\:opacity-100:is(:where(.tf\:group\/subagent):focus-visible *),.tf\:group-aria-expanded\/subagent\:opacity-100:is(:where(.tf\:group\/subagent)[aria-expanded=true] *){opacity:1}.tf\:placeholder\:text-tf-muted-foreground::placeholder{color:var(--_tf-muted-foreground)}.tf\:backdrop\:bg-black\/20::backdrop{background-color:var(--tf-color-black,#000)}@supports (color:color-mix(in lab, red, red)){.tf\:backdrop\:bg-black\/20::backdrop{background-color:color-mix(in oklab, var(--tf-color-black,#000) 20%, transparent)}}.tf\:after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.tf\:after\:absolute:after{content:var(--tw-content);position:absolute}.tf\:after\:inset-0:after{content:var(--tw-content);inset:0}.tf\:after\:-z-10:after{content:var(--tw-content);z-index:calc(10 * -1)}.tf\:after\:rounded-tf:after{content:var(--tw-content);border-radius:var(--_tf-radius)}.tf\:after\:bg-tf-accent:after{content:var(--tw-content);background-color:var(--_tf-accent)}.tf\:after\:opacity-0:after{content:var(--tw-content);opacity:0}.tf\:after\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:first\:mt-0:first-child{margin-top:0}.tf\:first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.tf\:last\:mb-0:last-child{margin-bottom:0}.tf\:open\:flex:is([open],:popover-open,:open){display:flex}.tf\:open\:flex\!:is([open],:popover-open,:open){display:flex!important}.tf\:empty\:hidden:empty{display:none}.tf\:focus-within\:border-tf-foreground\/25:focus-within{border-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:focus-within\:border-tf-foreground\/25:focus-within{border-color:color-mix(in oklab, var(--_tf-foreground) 25%, transparent)}}.tf\:focus-within\:outline-2:focus-within{outline-style:var(--tw-outline-style);outline-width:2px}.tf\:focus-within\:-outline-offset-2:focus-within{outline-offset:calc(2px * -1)}.tf\:focus-within\:outline-tf-ring:focus-within{outline-color:var(--_tf-ring)}@media (hover:hover){.tf\:hover\:bg-tf-accent:hover{background-color:var(--_tf-accent)}.tf\:hover\:text-tf-accent-foreground:hover{color:var(--_tf-accent-foreground)}.tf\:hover\:text-tf-foreground:hover{color:var(--_tf-foreground)}.tf\:hover\:opacity-90:hover{opacity:.9}.tf\:hover\:after\:opacity-100:hover:after{content:var(--tw-content);opacity:1}}.tf\:focus-visible\:opacity-100:focus-visible{opacity:1}.tf\:focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tf\:focus-visible\:outline-offset-1:focus-visible{outline-offset:1px}.tf\:focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.tf\:focus-visible\:outline-tf-ring:focus-visible{outline-color:var(--_tf-ring)}.tf\:focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.tf\:disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.tf\:disabled\:bg-tf-muted:disabled{background-color:var(--_tf-muted)}.tf\:disabled\:text-tf-muted-foreground:disabled{color:var(--_tf-muted-foreground)}.tf\:disabled\:opacity-50:disabled{opacity:.5}.tf\:disabled\:opacity-100:disabled{opacity:1}.tf\:disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:aria-checked\:bg-tf-emphasis[aria-checked=true]{background-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:aria-checked\:bg-tf-emphasis[aria-checked=true]{background-color:color-mix(in oklab, var(--_tf-foreground) var(--_tf-emphasis-mix), var(--_tf-muted))}}.tf\:aria-checked\:text-tf-foreground[aria-checked=true]{color:var(--_tf-foreground)}.tf\:aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.tf\:aria-disabled\:opacity-70[aria-disabled=true]{opacity:.7}.tf\:aria-\[current\=true\]\:bg-tf-accent[aria-current=true]{background-color:var(--_tf-accent)}.tf\:aria-\[current\=true\]\:text-tf-accent-foreground[aria-current=true]{color:var(--_tf-accent-foreground)}@media (prefers-reduced-motion:reduce){.tf\:motion-reduce\:animate-none{animation:none}}@media (min-width:40rem){.tf\:sm\:mt-24{margin-top:calc(var(--tf-spacing,.25rem) * 24)}.tf\:sm\:h-\[calc\(100dvh-12rem\)\]{height:calc(100dvh - 12rem)}.tf\:sm\:max-h-144{max-height:calc(var(--tf-spacing,.25rem) * 144)}.tf\:sm\:w-full{width:100%}.tf\:sm\:max-w-2xl{max-width:var(--tf-container-2xl,42rem)}}@media (min-width:48rem){.tf\:md\:px-2\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 2.5)}}@container (min-width:28rem){.tf\:\@md\:text-2xl{font-size:var(--tf-text-2xl,1.5rem);line-height:var(--tw-leading,var(--tf-text-2xl--line-height,calc(2 / 1.5)))}}@media (pointer:coarse){.tf\:pointer-coarse\:opacity-100{opacity:1}}.tf\:\[\&_\[data-tf-prompt-go\]\]\:opacity-0 [data-tf-prompt-go]{opacity:0}.tf\:\[\&_\[data-tf-prompt-go\]\]\:transition-opacity [data-tf-prompt-go]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}@media (hover:hover){.tf\:hover\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100:hover [data-tf-prompt-go]{opacity:1}}.tf\:focus-visible\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100:focus-visible [data-tf-prompt-go]{opacity:1}@media (pointer:coarse){.tf\:pointer-coarse\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100 [data-tf-prompt-go]{opacity:1}}.tf\:\[\&_\[data-tf-prompt-mark\]\]\:text-tf-muted-foreground [data-tf-prompt-mark]{color:var(--_tf-muted-foreground)}.tf\:\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}[data-tf-approval-text-preview]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}[data-tf-approval-card]{max-height:calc(var(--_tf-suspension-well-max-height,min(45dvh, 36rem)) - 1rem);overflow-y:auto}[data-tf-question-panel]{max-height:calc(var(--_tf-suspension-well-max-height,min(45dvh, 36rem)) - 1rem);flex-direction:column;display:flex;overflow-y:auto}[data-tf-question-panel] [data-tf-question-answers]{min-height:2.75rem;overflow-y:auto}[data-tf-question-panel] [data-tf-question-answers][data-tf-has-options]{min-height:6rem}[data-tf-question-panel] [data-tf-question-answers][data-tf-fold-below]{-webkit-mask-image:linear-gradient(#000 calc(100% - 2rem),#0000);mask-image:linear-gradient(#000 calc(100% - 2rem),#0000)}[data-tf-message-list]:has(~[data-tf-composer-anchor] [data-tf-subagent-pill]) [data-tf-activity-tail]{height:4rem}[data-tf-message-list]:has([data-tf-scroll-away-jump])~[data-tf-composer-anchor] [data-tf-activity-slot]{visibility:hidden;opacity:0;pointer-events:none}[data-tf-message-list] details:not([open])::details-content{display:none}@media (hover:none),(pointer:coarse){[data-tf-disclosure-chevron]{opacity:1}}@keyframes tf-pulse{50%{opacity:.5}}@keyframes tf-spin{to{transform:rotate(360deg)}}[data-tf-assistant]{color-scheme:var(--tf-color-scheme,light);--_tf-background:var(--tf-background,#fff);--_tf-foreground:var(--tf-foreground,#171717);--_tf-card:var(--tf-card,#fff);--_tf-card-foreground:var(--tf-card-foreground,var(--_tf-foreground));--_tf-popover:var(--tf-popover,var(--_tf-background));--_tf-popover-foreground:var(--tf-popover-foreground,var(--_tf-foreground));--_tf-primary:var(--tf-primary,#171717);--_tf-primary-foreground:var(--tf-primary-foreground,#fff);--_tf-secondary:var(--tf-secondary,transparent);--_tf-secondary-foreground:var(--tf-secondary-foreground,var(--_tf-foreground));--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-emphasis-mix:10%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 65%, var(--_tf-background))}}[data-tf-assistant]{--_tf-shimmer-peak-hover:var(--_tf-shimmer-peak);--_tf-accent:var(--tf-accent,#0000000d);--_tf-accent-foreground:var(--tf-accent-foreground,var(--_tf-foreground));--_tf-destructive:var(--tf-destructive,#e70022);--_tf-border:var(--tf-border,#00000014);--_tf-input:var(--tf-input,#00000014);--_tf-ring:var(--tf-ring,#0070f7);--_tf-radius:var(--tf-radius,.5rem);--_tf-font-sans:var(--tf-font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif)}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{color-scheme:var(--tf-color-scheme,dark);--_tf-background:var(--_tf-dark-background,var(--tf-background,#000));--_tf-foreground:var(--_tf-dark-foreground,var(--tf-foreground,#ededed));--_tf-card:var(--_tf-dark-card,var(--tf-card,#000));--_tf-card-foreground:var(--_tf-dark-card-foreground,var(--tf-card-foreground,var(--_tf-foreground)));--_tf-popover:var(--_tf-dark-popover,var(--tf-popover,var(--_tf-background)));--_tf-popover-foreground:var(--_tf-dark-popover-foreground,var(--tf-popover-foreground,var(--_tf-foreground)));--_tf-primary:var(--_tf-dark-primary,var(--tf-primary,#ededed));--_tf-primary-foreground:var(--_tf-dark-primary-foreground,var(--tf-primary-foreground,#000));--_tf-secondary:var(--_tf-dark-secondary,var(--tf-secondary,transparent));--_tf-secondary-foreground:var(--_tf-dark-secondary-foreground,var(--tf-secondary-foreground,var(--_tf-foreground)));--_tf-muted:var(--_tf-dark-muted,var(--tf-muted,#1a1a1a));--_tf-muted-foreground:var(--_tf-dark-muted-foreground,var(--tf-muted-foreground,#a0a0a0));--_tf-emphasis-mix:16%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 20%, var(--_tf-foreground))}}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak-hover:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak-hover:color-mix(in oklab, var(--_tf-muted-foreground) 80%, var(--_tf-background))}}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-accent:var(--_tf-dark-accent,var(--tf-accent,#ffffff12));--_tf-accent-foreground:var(--_tf-dark-accent-foreground,var(--tf-accent-foreground,var(--_tf-foreground)));--_tf-destructive:var(--_tf-dark-destructive,var(--tf-destructive,#f32e40));--_tf-border:var(--_tf-dark-border,var(--tf-border,#ffffff24));--_tf-input:var(--_tf-dark-input,var(--tf-input,#ffffff24));--_tf-ring:var(--_tf-dark-ring,var(--tf-ring,#50a8ff))}[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{color-scheme:var(--tf-color-scheme,light);--_tf-background:var(--tf-background,#fff);--_tf-foreground:var(--tf-foreground,#171717);--_tf-card:var(--tf-card,#fff);--_tf-card-foreground:var(--tf-card-foreground,var(--_tf-foreground));--_tf-popover:var(--tf-popover,var(--_tf-background));--_tf-popover-foreground:var(--tf-popover-foreground,var(--_tf-foreground));--_tf-primary:var(--tf-primary,#171717);--_tf-primary-foreground:var(--tf-primary-foreground,#fff);--_tf-secondary:var(--tf-secondary,transparent);--_tf-secondary-foreground:var(--tf-secondary-foreground,var(--_tf-foreground));--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-emphasis-mix:10%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 65%, var(--_tf-background))}}[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:var(--_tf-shimmer-peak);--_tf-accent:var(--tf-accent,#0000000d);--_tf-accent-foreground:var(--tf-accent-foreground,var(--_tf-foreground));--_tf-destructive:var(--tf-destructive,#e70022);--_tf-border:var(--tf-border,#00000014);--_tf-input:var(--tf-input,#00000014);--_tf-ring:var(--tf-ring,#0070f7)}@media (prefers-color-scheme:dark){[data-tf-assistant][data-tf-theme=auto]{color-scheme:var(--tf-color-scheme,dark);--_tf-background:var(--_tf-dark-background,var(--tf-background,#000));--_tf-foreground:var(--_tf-dark-foreground,var(--tf-foreground,#ededed));--_tf-card:var(--_tf-dark-card,var(--tf-card,#000));--_tf-card-foreground:var(--_tf-dark-card-foreground,var(--tf-card-foreground,var(--_tf-foreground)));--_tf-popover:var(--_tf-dark-popover,var(--tf-popover,var(--_tf-background)));--_tf-popover-foreground:var(--_tf-dark-popover-foreground,var(--tf-popover-foreground,var(--_tf-foreground)));--_tf-primary:var(--_tf-dark-primary,var(--tf-primary,#ededed));--_tf-primary-foreground:var(--_tf-dark-primary-foreground,var(--tf-primary-foreground,#000));--_tf-secondary:var(--_tf-dark-secondary,var(--tf-secondary,transparent));--_tf-secondary-foreground:var(--_tf-dark-secondary-foreground,var(--tf-secondary-foreground,var(--_tf-foreground)));--_tf-muted:var(--_tf-dark-muted,var(--tf-muted,#1a1a1a));--_tf-muted-foreground:var(--_tf-dark-muted-foreground,var(--tf-muted-foreground,#a0a0a0));--_tf-emphasis-mix:16%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 20%, var(--_tf-foreground))}}[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:color-mix(in oklab, var(--_tf-muted-foreground) 80%, var(--_tf-background))}}[data-tf-assistant][data-tf-theme=auto]{--_tf-accent:var(--_tf-dark-accent,var(--tf-accent,#ffffff12));--_tf-accent-foreground:var(--_tf-dark-accent-foreground,var(--tf-accent-foreground,var(--_tf-foreground)));--_tf-destructive:var(--_tf-dark-destructive,var(--tf-destructive,#f32e40));--_tf-border:var(--_tf-dark-border,var(--tf-border,#ffffff24));--_tf-input:var(--_tf-dark-input,var(--tf-input,#ffffff24));--_tf-ring:var(--_tf-dark-ring,var(--tf-ring,#50a8ff))}}[data-tf-assistant][data-tf-glass],[data-tf-assistant] [data-tf-glass]{--_tf-glass-ground:var(--_tf-background);color:var(--_tf-foreground);background:var(--_tf-glass-ground);box-shadow:0 1px 1px #0000001a,0 2px 8px #0000001a,0 3px 12px #00000014,0 3px 20px #0000000f,0 4px 40px #0000000f}[data-tf-assistant][data-tf-glass][data-tf-popover],[data-tf-assistant] [data-tf-glass][data-tf-popover]{--_tf-glass-ground:var(--_tf-popover);color:var(--_tf-popover-foreground)}[data-tf-assistant] [data-tf-subagent-pill]>[data-tf-glass]{box-shadow:0 1px 1px #0000001a,0 2px 8px #0000001a}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) and (background:color-mix(in srgb, red 50%, transparent)){[data-tf-assistant][data-tf-glass],[data-tf-assistant] [data-tf-glass]{--_tf-glass-coat:color-mix(in srgb, var(--_tf-glass-ground) 35%, transparent);background:linear-gradient(180deg, #ffffff14 0%, #ffffff05 45%), var(--_tf-glass-coat);border-color:color-mix(in srgb, var(--_tf-foreground) 22%, transparent);-webkit-backdrop-filter:blur(16px)saturate(1.5);backdrop-filter:blur(16px)saturate(1.5);--_tf-muted:color-mix(in srgb, var(--_tf-foreground) 10%, transparent);box-shadow:inset 0 1px #ffffff4d,0 24px 60px #00000059}[data-tf-glass] [data-tf-composer-wash]{background:color-mix(in srgb, var(--_tf-foreground) 6%, transparent)}[data-tf-glass] [data-tf-composer-ground]{background:0 0}[data-tf-glass] [data-tf-conversation]>[inert]{visibility:hidden}[data-tf-glass] [data-tf-child-transcript]{background:0 0}[data-tf-assistant] [data-tf-subagent-pill]>[data-tf-glass]{box-shadow:inset 0 1px #ffffff4d,0 8px 24px #0000001f}}[data-tf-assistant] [data-tf-disclosure]{box-shadow:0 8px 24px #0000001a}[data-tf-assistant] [data-tf-disclosure][data-tf-surface-inset]{top:.5rem}@supports (color:oklch(from red calc(l + sign(0.5 - l) * 0.06) c h / alpha)){[data-tf-assistant] [data-tf-secondary]:hover{background-color:oklch(from var(--_tf-secondary) calc(l + sign(.5 - l) * .06) c h / alpha)}[data-tf-assistant] [data-tf-secondary]:after{background-color:rgb(from var(--_tf-accent) r g b / min(alpha, .3))}}[data-tf-assistant],[data-tf-assistant] :where(:not([data-tf-host-view] *)),[data-tf-assistant] :where(:not([data-tf-host-view] *)):before,[data-tf-assistant] :where(:not([data-tf-host-view] *)):after{box-sizing:border-box;border-color:var(--_tf-border)}[data-tf-assistant]{font-family:var(--_tf-font-sans);color:var(--_tf-foreground)}[data-tf-sheet]{--_tf-swipe-drag:0px;touch-action:pan-y pinch-zoom;transition:translate .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete}[data-tf-sheet=left]{translate:-100%}[data-tf-sheet=right]{translate:100%}[data-tf-sheet][open]{translate:var(--_tf-swipe-drag) 0}@starting-style{[data-tf-sheet=left][open]{translate:-100%}[data-tf-sheet=right][open]{translate:100%}}[data-tf-sheet][data-tf-swipe-dragging]{transition:none}[data-tf-sheet]::backdrop{opacity:0;transition:opacity .18s ease-out, display .18s allow-discrete, overlay .18s allow-discrete;background-color:#0006}[data-tf-sheet][open]::backdrop{opacity:1}@starting-style{[data-tf-sheet][open]::backdrop{opacity:0}}[data-tf-floating-panel]{--_tf-swipe-drag:0px;transition:translate .22s cubic-bezier(.22, 1, .36, 1), scale .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete;translate:0 8px;scale:.92}[data-tf-floating-panel]:popover-open{translate:0 var(--_tf-swipe-drag);scale:1}@starting-style{[data-tf-floating-panel]:popover-open{translate:0 8px;scale:.92}}[data-tf-floating-panel=bottom-right]{transform-origin:100% 100%}[data-tf-floating-panel=bottom-left]{transform-origin:0 100%}[data-tf-floating-panel][data-tf-swipe-dragging]{transition:none}[data-tf-floating-panel][data-tf-panel-dock=sidebar]{border-left:1px solid var(--_tf-border);opacity:0;transform-origin:100%;transition:translate .22s cubic-bezier(.22, 1, .36, 1), opacity .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete;translate:.75rem;scale:1}[data-tf-floating-panel][data-tf-panel-dock=sidebar]:popover-open{opacity:1;translate:0}@starting-style{[data-tf-floating-panel][data-tf-panel-dock=sidebar]:popover-open{opacity:0;translate:.75rem;scale:1}}[data-tf-floating-panel]:not([data-tf-panel-dock=sidebar]) [data-tf-swipe-handle]{touch-action:pinch-zoom}[data-tf-floating-panel]:has(>[data-tf-disclosure]) [data-tf-conversation]{filter:blur(8px)}[data-tf-assistant]:has(>[data-tf-disclosure]) [data-tf-conversation],[data-tf-conversation]:has(#tf-model-picker-menu) [data-tf-message-list]{filter:blur(8px);pointer-events:none}[data-tf-activity-step]{position:relative}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{background:var(--_tf-foreground);width:1px;position:absolute;inset-block:1.55rem -.45rem;inset-inline-start:.47rem}@supports (color:color-mix(in lab, red, red)){[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{background:color-mix(in srgb, var(--_tf-foreground) 14%, transparent)}}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{content:"";pointer-events:none}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):has(+[data-tf-activity-narration]):after{inset-block-end:0}[data-tf-decision-scroll-well]{max-height:var(--_tf-suspension-well-max-height,min(45dvh, 36rem))}[data-tf-assistant-palette]{--_tf-suspension-well-max-height:min(20rem, 100dvh - 25rem)}[data-tf-panel-dock=floating]{--_tf-suspension-well-max-height:min(26rem, 68dvh - 13rem)}[data-tf-decision-scroll-well][data-tf-fold-below]{-webkit-mask-image:linear-gradient(#000 calc(100% - 2rem),#0000);mask-image:linear-gradient(#000 calc(100% - 2rem),#0000)}[data-tf-conversation]:has([data-tf-subagent-disclosure])>[data-tf-conversation-body]>:not([data-tf-composer-anchor]),[data-tf-conversation]:has([data-tf-subagent-disclosure]) [data-tf-composer-anchor]>:not([data-tf-activity-slot]),[data-tf-conversation]:has([data-tf-subagent-disclosure]) [data-tf-activity-slot] [data-tf-shelf-item]:not([data-tf-subagent-pill]){filter:blur(8px);pointer-events:none}@media (prefers-reduced-motion:reduce){[data-tf-sheet],[data-tf-sheet]::backdrop,[data-tf-floating-panel]{transition-duration:1ms}}[data-reduce-motion=true] [data-tf-sheet],[data-reduce-motion=true] [data-tf-sheet]::backdrop,[data-reduce-motion=true] [data-tf-floating-panel]{transition-duration:1ms}[data-tf-companion-dock]{pointer-events:none;inset:auto;bottom:calc(1rem + var(--_tf-companion-lift,0px));transition:bottom .18s cubic-bezier(.22, 1, .36, 1), display .18s allow-discrete, overlay .18s allow-discrete;background:0 0;border:none;flex-direction:column;align-items:flex-end;margin:0;padding:0;display:none;overflow:visible}[data-tf-companion-dock]:popover-open{display:flex}[data-tf-companion-perch]{opacity:1;transition:opacity .18s cubic-bezier(.22,1,.36,1)}@starting-style{[data-tf-companion-perch]{opacity:0}}[data-tf-companion-dock=bottom-right]{right:1rem}[data-tf-companion-dock=bottom-left]{align-items:flex-start;left:1rem}[data-tf-companion-grabber]{border-radius:var(--_tf-radius);background:var(--_tf-muted-foreground);opacity:.4;width:2.25rem;height:.25rem;display:none;position:absolute;top:.25rem;left:50%;translate:-50%}@media (hover:none),(pointer:coarse){[data-tf-companion-grabber]{display:block}}[data-tf-floating-panel][data-tf-panel-dock=sidebar] [data-tf-companion-grabber]{display:none}[data-tf-companion-body]{pointer-events:auto}[data-tf-companion-perch]{display:flex;position:relative}[data-tf-companion-body]{justify-content:center;align-items:center;width:4.5rem;height:4.5rem;transition:opacity .15s;display:flex}[data-tf-companion-body]:hover{opacity:.7}[data-tf-companion-body]:active{opacity:.55}[data-tf-companion-mark]{justify-content:center;align-items:center;width:4rem;height:4rem;display:flex}[data-tf-companion-mark] [data-tf-host-view]>*{object-fit:contain;width:100%;height:100%}[data-tf-companion-welcome-mark]{display:flex}@media (prefers-reduced-motion:reduce){[data-tf-companion-dock],[data-tf-companion-perch],[data-tf-companion-body]{transition-duration:1ms}}[data-reduce-motion=true] [data-tf-companion-dock],[data-reduce-motion=true] [data-tf-companion-perch],[data-reduce-motion=true] [data-tf-companion-body]{transition-duration:1ms}[data-tf-markdown]{overflow-wrap:break-word}[data-tf-markdown]>:first-child{margin-top:0}[data-tf-markdown]>:last-child{margin-bottom:0}[data-tf-markdown] a{color:var(--_tf-foreground);text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:var(--_tf-muted-foreground);-webkit-text-decoration-color:var(--_tf-muted-foreground);text-decoration-color:var(--_tf-muted-foreground)}[data-tf-markdown] a:hover{-webkit-text-decoration-color:var(--_tf-foreground);-webkit-text-decoration-color:var(--_tf-foreground);text-decoration-color:var(--_tf-foreground)}[data-tf-markdown] a[data-tf-markdown-image]{text-decoration:none}[data-tf-markdown] a[data-tf-markdown-image] [data-tf-markdown-image-label]{text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:var(--_tf-muted-foreground);-webkit-text-decoration-color:var(--_tf-muted-foreground);text-decoration-color:var(--_tf-muted-foreground)}[data-tf-markdown] a[data-tf-markdown-image]:hover [data-tf-markdown-image-label]{-webkit-text-decoration-color:var(--_tf-foreground);-webkit-text-decoration-color:var(--_tf-foreground);text-decoration-color:var(--_tf-foreground)}[data-tf-markdown] [data-tf-markdown-image-marker]{color:var(--_tf-muted-foreground)}[data-tf-markdown] span[data-tf-markdown-image]{color:var(--_tf-foreground)}[data-tf-markdown] li::marker{color:var(--_tf-muted-foreground)}[data-tf-markdown] p{margin-block:1.25rem;line-height:1.75}[data-tf-markdown] h1{letter-spacing:-.04em;margin-block:2rem .875rem;font-size:1.75rem;font-weight:600}[data-tf-markdown] h2{letter-spacing:-.04em;margin-block:2rem .875rem;font-size:1.5rem;font-weight:600}[data-tf-markdown] h3{letter-spacing:-.02em;margin-block:1.75rem .75rem;font-size:1.25rem;font-weight:600}[data-tf-markdown] h4,[data-tf-markdown] h5,[data-tf-markdown] h6{margin-block:.875rem .25rem;font-size:.9375rem;font-weight:500}[data-tf-markdown] ul,[data-tf-markdown] ol{margin-block:.75rem;padding-left:1.25rem}[data-tf-markdown] ul{list-style:outside}[data-tf-markdown] ol{list-style:decimal}[data-tf-markdown] li{margin-block:.625rem;line-height:1.75}[data-tf-markdown] blockquote{border-left:2px solid var(--_tf-border);color:var(--_tf-muted-foreground);margin-block:.75rem;padding-left:1rem}[data-tf-markdown] hr{border:0;border-top:1px solid var(--_tf-border);margin-block:.75rem}[data-tf-markdown] table{border-collapse:separate;border-spacing:0;text-align:left;width:100%;margin-block:.75rem}[data-tf-markdown] th{background:var(--_tf-muted);padding:.375rem .75rem;font-weight:500}[data-tf-markdown] th:first-child{border-start-start-radius:var(--_tf-radius)}[data-tf-markdown] th:last-child{border-start-end-radius:var(--_tf-radius)}[data-tf-markdown] td{border-inline-start:1px solid var(--_tf-border);border-bottom:1px solid var(--_tf-border);padding:.375rem .75rem}[data-tf-markdown] td:last-child{border-inline-end:1px solid var(--_tf-border)}[data-tf-markdown] tr:last-child td:first-child{border-end-start-radius:var(--_tf-radius)}[data-tf-markdown] tr:last-child td:last-child{border-end-end-radius:var(--_tf-radius)}[data-tf-tool-view-card] [data-tf-markdown]{font-size:.8125rem;line-height:1.5}[data-tf-tool-view-card] [data-tf-markdown] p,[data-tf-tool-view-card] [data-tf-markdown] ul,[data-tf-tool-view-card] [data-tf-markdown] ol,[data-tf-tool-view-card] [data-tf-markdown] blockquote,[data-tf-tool-view-card] [data-tf-markdown] table,[data-tf-tool-view-card] [data-tf-markdown] hr{margin-block:.5rem;line-height:1.5}[data-tf-tool-view-card] [data-tf-markdown] li{margin-block:.125rem}[data-tf-tool-view-card] [data-tf-markdown] h1,[data-tf-tool-view-card] [data-tf-markdown] h2,[data-tf-tool-view-card] [data-tf-markdown] h3,[data-tf-tool-view-card] [data-tf-markdown] h4,[data-tf-tool-view-card] [data-tf-markdown] h5,[data-tf-tool-view-card] [data-tf-markdown] h6{letter-spacing:0;margin-block:.75rem .25rem;font-size:.8125rem}[data-tf-tool-view-card] [data-tf-markdown] th,[data-tf-tool-view-card] [data-tf-markdown] td{padding:.25rem .5rem}[data-tf-markdown] :where(:not(pre))>code{background:var(--_tf-muted);border-radius:calc(var(--_tf-radius) - 2px);padding:.125rem .375rem;font-size:.85em}[data-tf-code-html] pre{background:0 0;margin:0;padding:0}[data-tf-assistant]{--shiki-foreground:var(--_tf-foreground);--shiki-background:transparent;--shiki-token-comment:var(--_tf-muted-foreground);--shiki-token-keyword:var(--_tf-foreground);--shiki-token-string:var(--_tf-muted-foreground);--shiki-token-constant:var(--_tf-foreground);--shiki-token-function:var(--_tf-foreground);--shiki-token-parameter:var(--_tf-foreground);--shiki-token-punctuation:var(--_tf-muted-foreground);--shiki-token-string-expression:var(--_tf-muted-foreground);--shiki-token-link:var(--_tf-foreground)}[data-tf-markdown]:not([data-tf-assistant] [data-tf-markdown]){--_tf-foreground:var(--tf-foreground,#171717);--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-border:var(--tf-border,#00000014);--_tf-radius:var(--tf-radius,.5rem);--shiki-foreground:var(--_tf-foreground);--shiki-background:transparent;--shiki-token-comment:var(--_tf-muted-foreground);--shiki-token-keyword:var(--_tf-foreground);--shiki-token-string:var(--_tf-muted-foreground);--shiki-token-constant:var(--_tf-foreground);--shiki-token-function:var(--_tf-foreground);--shiki-token-parameter:var(--_tf-foreground);--shiki-token-punctuation:var(--_tf-muted-foreground);--shiki-token-string-expression:var(--_tf-muted-foreground);--shiki-token-link:var(--_tf-foreground)}@keyframes tf-shimmer{0%{background-position:180% 0}to{background-position:-180% 0}}[data-tf-shimmer-highlight]{pointer-events:none;-webkit-user-select:none;user-select:none;color:#0000;background-image:linear-gradient(90deg, transparent 25%, var(--_tf-shimmer-peak) 45% 55%, transparent 75%);background-position:180% 0;background-repeat:no-repeat;background-size:175% 100%;-webkit-background-clip:text;background-clip:text;animation:1.35s linear infinite tf-shimmer}[data-tf-assistant] summary:hover{--_tf-shimmer-peak:var(--_tf-shimmer-peak-hover)}@media (prefers-reduced-motion:reduce){[data-tf-shimmer-highlight]{background-image:none;animation:none}}[data-reduce-motion=true] [data-tf-shimmer-highlight]{background-image:none;animation:none}[data-reduce-motion=true] [data-tf-working-dot],[data-reduce-motion=true] [data-tf-spinner]{animation:none}[data-tf-composer-wash]{background:var(--_tf-muted)}@supports (color:color-mix(in lab, red, red)){[data-tf-composer-wash]{background:color-mix(in oklab, var(--_tf-muted) 30%, var(--_tf-background))}}[data-tf-composer-wash]{box-shadow:0 4px 16px -8px #00000014,0 1px 2px #0000000a}[data-tf-composer-wash]:focus-within{box-shadow:0 6px 24px -8px #0000001f,0 1px 2px #0000000d}.tf-highlight-ring{z-index:2147483000;pointer-events:none;border:2px solid var(--_tf-ring,#0070f7);box-shadow:0 0 0 4px var(--_tf-ring,#0070f7);border-radius:6px;position:fixed}@supports (color:color-mix(in lab, red, red)){.tf-highlight-ring{box-shadow:0 0 0 4px color-mix(in oklab, var(--_tf-ring,#0070f7) 25%, transparent)}}.tf-highlight-ring{opacity:1;transition:opacity .3s;animation:1.2s ease-out 2 tf-highlight-pulse}.tf-highlight-ring[data-tf-highlight-leaving=true]{opacity:0}@keyframes tf-highlight-pulse{0%{box-shadow:0 0 0 4px color-mix(in oklab, var(--_tf-ring,#0070f7) 45%, transparent)}to{box-shadow:0 0 0 10px color-mix(in oklab, var(--_tf-ring,#0070f7) 0%, transparent)}}@media (prefers-reduced-motion:reduce){.tf-highlight-ring{transition-duration:1ms;animation:none}}[data-reduce-motion=true] .tf-highlight-ring{transition-duration:1ms;animation:none}[data-tf-glass] [data-tf-subagent-pill]>[data-tf-glass]{background:var(--_tf-background);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 1px 2px #0000000a}button[data-tf-subagent-entry]{border-radius:.75rem}button[data-tf-subagent-entry]:hover,button[data-tf-subagent-entry]:focus-visible{background:var(--_tf-muted)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-content:"";--tw-outline-style:solid}}}@layer theme;@layer base{[data-tf-assistant] button,[data-tf-assistant] textarea,[data-tf-assistant] input,[data-tf-assistant] select{font:inherit}}@layer components,utilities;.tf\:\@container{container-type:inline-size}.tf\:pointer-events-auto{pointer-events:auto}.tf\:pointer-events-none{pointer-events:none}.tf\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tf\:absolute{position:absolute}.tf\:fixed{position:fixed}.tf\:relative{position:relative}.tf\:sticky{position:sticky}.tf\:-inset-2{inset:calc(var(--tf-spacing,.25rem) * -2)}.tf\:inset-0{inset:0}.tf\:inset-auto{inset:auto}.tf\:inset-x-0{inset-inline:0}.tf\:inset-y-0{inset-block:0}.tf\:start-0{inset-inline-start:calc(var(--tf-spacing,.25rem) * 0)}.tf\:start-1\/2{inset-inline-start:50%}.tf\:start-2{inset-inline-start:calc(var(--tf-spacing,.25rem) * 2)}.tf\:-end-0\.5{inset-inline-end:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:-top-0\.5{top:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:top-0{top:0}.tf\:top-5\.5{top:calc(var(--tf-spacing,.25rem) * 5.5)}.tf\:top-14{top:calc(var(--tf-spacing,.25rem) * 14)}.tf\:right-0{right:0}.tf\:right-2{right:calc(var(--tf-spacing,.25rem) * 2)}.tf\:right-4{right:calc(var(--tf-spacing,.25rem) * 4)}.tf\:-bottom-0\.5{bottom:calc(var(--tf-spacing,.25rem) * -.5)}.tf\:bottom-0{bottom:0}.tf\:bottom-3{bottom:calc(var(--tf-spacing,.25rem) * 3)}.tf\:bottom-4{bottom:calc(var(--tf-spacing,.25rem) * 4)}.tf\:bottom-full{bottom:100%}.tf\:left-2\.5{left:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:left-4{left:calc(var(--tf-spacing,.25rem) * 4)}.tf\:left-auto{left:auto}.tf\:isolate{isolation:isolate}.tf\:col-start-1{grid-column-start:1}.tf\:row-start-1{grid-row-start:1}.tf\:m-0{margin:0}.tf\:m-auto{margin:auto}.tf\:mx-auto{margin-inline:auto}.tf\:my-1{margin-block:var(--tf-spacing,.25rem)}.tf\:my-1\.5{margin-block:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:my-2{margin-block:calc(var(--tf-spacing,.25rem) * 2)}.tf\:my-3{margin-block:calc(var(--tf-spacing,.25rem) * 3)}.tf\:my-auto{margin-block:auto}.tf\:ms-auto{margin-inline-start:auto}.tf\:me-auto{margin-inline-end:auto}.tf\:mt-0\.5{margin-top:calc(var(--tf-spacing,.25rem) * .5)}.tf\:mt-1{margin-top:var(--tf-spacing,.25rem)}.tf\:mt-1\.5{margin-top:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:mt-2{margin-top:calc(var(--tf-spacing,.25rem) * 2)}.tf\:mt-3{margin-top:calc(var(--tf-spacing,.25rem) * 3)}.tf\:mr-auto{margin-right:auto}.tf\:mb-1{margin-bottom:var(--tf-spacing,.25rem)}.tf\:mb-2{margin-bottom:calc(var(--tf-spacing,.25rem) * 2)}.tf\:mb-3{margin-bottom:calc(var(--tf-spacing,.25rem) * 3)}.tf\:-ml-1\.5{margin-left:calc(var(--tf-spacing,.25rem) * -1.5)}.tf\:ml-auto{margin-left:auto}.tf\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tf\:block{display:block}.tf\:contents{display:contents}.tf\:flex{display:flex}.tf\:grid{display:grid}.tf\:hidden{display:none}.tf\:inline-flex{display:inline-flex}.tf\:inline-grid{display:inline-grid}.tf\:size-1\.5{width:calc(var(--tf-spacing,.25rem) * 1.5);height:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:size-2{width:calc(var(--tf-spacing,.25rem) * 2);height:calc(var(--tf-spacing,.25rem) * 2)}.tf\:size-3{width:calc(var(--tf-spacing,.25rem) * 3);height:calc(var(--tf-spacing,.25rem) * 3)}.tf\:size-3\.5{width:calc(var(--tf-spacing,.25rem) * 3.5);height:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:size-4{width:calc(var(--tf-spacing,.25rem) * 4);height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:size-6{width:calc(var(--tf-spacing,.25rem) * 6);height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:size-7{width:calc(var(--tf-spacing,.25rem) * 7);height:calc(var(--tf-spacing,.25rem) * 7)}.tf\:size-8{width:calc(var(--tf-spacing,.25rem) * 8);height:calc(var(--tf-spacing,.25rem) * 8)}.tf\:size-9{width:calc(var(--tf-spacing,.25rem) * 9);height:calc(var(--tf-spacing,.25rem) * 9)}.tf\:size-full{width:100%;height:100%}.tf\:h-2\.5{height:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:h-4{height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:h-5{height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:h-5\.5{height:calc(var(--tf-spacing,.25rem) * 5.5)}.tf\:h-6{height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:h-7{height:calc(var(--tf-spacing,.25rem) * 7)}.tf\:h-8{height:calc(var(--tf-spacing,.25rem) * 8)}.tf\:h-9{height:calc(var(--tf-spacing,.25rem) * 9)}.tf\:h-11{height:calc(var(--tf-spacing,.25rem) * 11)}.tf\:h-12{height:calc(var(--tf-spacing,.25rem) * 12)}.tf\:h-14{height:calc(var(--tf-spacing,.25rem) * 14)}.tf\:h-\[calc\(100dvh-2rem\)\]{height:calc(100dvh - 2rem)}.tf\:h-\[min\(68dvh\,52rem\,calc\(100dvh-6rem\)\)\]{height:min(68dvh,52rem,100dvh - 6rem)}.tf\:h-dvh{height:100dvh}.tf\:h-full{height:100%}.tf\:h-px{height:1px}.tf\:max-h-48{max-height:calc(var(--tf-spacing,.25rem) * 48)}.tf\:max-h-60{max-height:calc(var(--tf-spacing,.25rem) * 60)}.tf\:max-h-64{max-height:calc(var(--tf-spacing,.25rem) * 64)}.tf\:max-h-72{max-height:calc(var(--tf-spacing,.25rem) * 72)}.tf\:max-h-96{max-height:calc(var(--tf-spacing,.25rem) * 96)}.tf\:max-h-\[min\(32rem\,calc\(100vh-6rem\)\)\]{max-height:min(32rem,100vh - 6rem)}.tf\:max-h-dvh{max-height:100dvh}.tf\:min-h-0{min-height:0}.tf\:min-h-5{min-height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:min-h-6{min-height:calc(var(--tf-spacing,.25rem) * 6)}.tf\:min-h-11{min-height:calc(var(--tf-spacing,.25rem) * 11)}.tf\:w-1\/2{width:50%}.tf\:w-1\/4{width:25%}.tf\:w-2\/5{width:40%}.tf\:w-3\/5{width:60%}.tf\:w-4{width:calc(var(--tf-spacing,.25rem) * 4)}.tf\:w-5{width:calc(var(--tf-spacing,.25rem) * 5)}.tf\:w-10\/12{width:83.3333%}.tf\:w-11\/12{width:91.6667%}.tf\:w-52{width:calc(var(--tf-spacing,.25rem) * 52)}.tf\:w-72{width:calc(var(--tf-spacing,.25rem) * 72)}.tf\:w-80{width:calc(var(--tf-spacing,.25rem) * 80)}.tf\:w-104{width:calc(var(--tf-spacing,.25rem) * 104)}.tf\:w-\[calc\(100vw-2rem\)\]{width:calc(100vw - 2rem)}.tf\:w-\[clamp\(24rem\,44vw\,46rem\)\]{width:clamp(24rem,44vw,46rem)}.tf\:w-fit{width:fit-content}.tf\:w-full{width:100%}.tf\:w-px{width:1px}.tf\:max-w-3xl{max-width:var(--tf-container-3xl,48rem)}.tf\:max-w-56{max-width:calc(var(--tf-spacing,.25rem) * 56)}.tf\:max-w-\[calc\(100\%-1\.25rem\)\]{max-width:calc(100% - 1.25rem)}.tf\:max-w-\[calc\(100vw-2rem\)\]{max-width:calc(100vw - 2rem)}.tf\:max-w-\[calc\(100vw-3rem\)\]{max-width:calc(100vw - 3rem)}.tf\:max-w-full{max-width:100%}.tf\:max-w-md{max-width:var(--tf-container-md,28rem)}.tf\:max-w-xl{max-width:var(--tf-container-xl,36rem)}.tf\:min-w-0{min-width:0}.tf\:min-w-5{min-width:calc(var(--tf-spacing,.25rem) * 5)}.tf\:min-w-6{min-width:calc(var(--tf-spacing,.25rem) * 6)}.tf\:min-w-56{min-width:calc(var(--tf-spacing,.25rem) * 56)}.tf\:flex-1{flex:1}.tf\:shrink-0{flex-shrink:0}.tf\:-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.tf\:-rotate-90{rotate:-90deg}.tf\:rotate-0{rotate:0deg}.tf\:rotate-90{rotate:90deg}.tf\:animate-tf-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite tf-pulse}.tf\:animate-tf-spin{animation:1s linear infinite tf-spin}.tf\:cursor-pointer{cursor:pointer}.tf\:cursor-text{cursor:text}.tf\:resize-none{resize:none}.tf\:list-none{list-style-type:none}.tf\:appearance-none{appearance:none}.tf\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.tf\:grid-cols-\[minmax\(6rem\,30\%\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(6rem,30%) minmax(0,1fr)}.tf\:flex-col{flex-direction:column}.tf\:flex-wrap{flex-wrap:wrap}.tf\:place-items-center{place-items:center}.tf\:items-baseline{align-items:baseline}.tf\:items-center{align-items:center}.tf\:items-end{align-items:flex-end}.tf\:items-start{align-items:flex-start}.tf\:justify-between{justify-content:space-between}.tf\:justify-center{justify-content:center}.tf\:justify-end{justify-content:flex-end}.tf\:justify-start{justify-content:flex-start}.tf\:gap-0\.5{gap:calc(var(--tf-spacing,.25rem) * .5)}.tf\:gap-1{gap:var(--tf-spacing,.25rem)}.tf\:gap-1\.5{gap:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:gap-2{gap:calc(var(--tf-spacing,.25rem) * 2)}.tf\:gap-2\.5{gap:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:gap-3{gap:calc(var(--tf-spacing,.25rem) * 3)}.tf\:gap-6{gap:calc(var(--tf-spacing,.25rem) * 6)}.tf\:gap-px{gap:1px}:where(.tf\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tf-spacing,.25rem) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tf-spacing,.25rem) * 3) * calc(1 - var(--tw-space-y-reverse)))}.tf\:gap-x-3{column-gap:calc(var(--tf-spacing,.25rem) * 3)}.tf\:gap-y-2{row-gap:calc(var(--tf-spacing,.25rem) * 2)}.tf\:self-start{align-self:flex-start}.tf\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tf\:overflow-auto{overflow:auto}.tf\:overflow-hidden{overflow:hidden}.tf\:overflow-visible{overflow:visible}.tf\:overflow-x-auto{overflow-x:auto}.tf\:overflow-y-auto{overflow-y:auto}.tf\:overscroll-contain{overscroll-behavior:contain}.tf\:rounded{border-radius:.25rem}.tf\:rounded-2xl{border-radius:var(--tf-radius-2xl,1rem)}.tf\:rounded-3xl{border-radius:var(--tf-radius-3xl,1.5rem)}.tf\:rounded-\[3px\]{border-radius:3px}.tf\:rounded-\[5px\]{border-radius:5px}.tf\:rounded-full{border-radius:3.40282e38px}.tf\:rounded-lg{border-radius:var(--tf-radius-lg,.5rem)}.tf\:rounded-md{border-radius:var(--tf-radius-md,.375rem)}.tf\:rounded-none{border-radius:0}.tf\:rounded-tf{border-radius:var(--_tf-radius)}.tf\:rounded-xl{border-radius:var(--tf-radius-xl,.75rem)}.tf\:rounded-t-xl{border-top-left-radius:var(--tf-radius-xl,.75rem);border-top-right-radius:var(--tf-radius-xl,.75rem)}.tf\:rounded-b-xl{border-bottom-right-radius:var(--tf-radius-xl,.75rem);border-bottom-left-radius:var(--tf-radius-xl,.75rem)}.tf\:border{border-style:var(--tw-border-style);border-width:1px}.tf\:border-0{border-style:var(--tw-border-style);border-width:0}.tf\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tf\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tf\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.tf\:border-tf-background{border-color:var(--_tf-background)}.tf\:border-tf-border{border-color:var(--_tf-border)}.tf\:border-tf-input{border-color:var(--_tf-input)}.tf\:bg-current{background-color:currentColor}.tf\:bg-tf-accent{background-color:var(--_tf-accent)}.tf\:bg-tf-background{background-color:var(--_tf-background)}.tf\:bg-tf-border{background-color:var(--_tf-border)}.tf\:bg-tf-card{background-color:var(--_tf-card)}.tf\:bg-tf-destructive{background-color:var(--_tf-destructive)}.tf\:bg-tf-emphasis{background-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:bg-tf-emphasis{background-color:color-mix(in oklab, var(--_tf-foreground) var(--_tf-emphasis-mix), var(--_tf-muted))}}.tf\:bg-tf-foreground{background-color:var(--_tf-foreground)}.tf\:bg-tf-muted{background-color:var(--_tf-muted)}.tf\:bg-tf-muted-foreground{background-color:var(--_tf-muted-foreground)}.tf\:bg-tf-primary{background-color:var(--_tf-primary)}.tf\:bg-tf-secondary{background-color:var(--_tf-secondary)}.tf\:bg-tf-transparent,.tf\:bg-transparent{background-color:#0000}.tf\:p-0{padding:0}.tf\:p-1{padding:var(--tf-spacing,.25rem)}.tf\:p-2{padding:calc(var(--tf-spacing,.25rem) * 2)}.tf\:p-3{padding:calc(var(--tf-spacing,.25rem) * 3)}.tf\:p-3\.5{padding:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:p-4{padding:calc(var(--tf-spacing,.25rem) * 4)}.tf\:p-6{padding:calc(var(--tf-spacing,.25rem) * 6)}.tf\:px-0{padding-inline:0}.tf\:px-1{padding-inline:var(--tf-spacing,.25rem)}.tf\:px-1\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:px-2{padding-inline:calc(var(--tf-spacing,.25rem) * 2)}.tf\:px-2\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:px-3{padding-inline:calc(var(--tf-spacing,.25rem) * 3)}.tf\:px-3\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 3.5)}.tf\:px-4{padding-inline:calc(var(--tf-spacing,.25rem) * 4)}.tf\:px-6{padding-inline:calc(var(--tf-spacing,.25rem) * 6)}.tf\:py-0\.5{padding-block:calc(var(--tf-spacing,.25rem) * .5)}.tf\:py-1{padding-block:var(--tf-spacing,.25rem)}.tf\:py-1\.5{padding-block:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:py-2{padding-block:calc(var(--tf-spacing,.25rem) * 2)}.tf\:py-2\.5{padding-block:calc(var(--tf-spacing,.25rem) * 2.5)}.tf\:py-3{padding-block:calc(var(--tf-spacing,.25rem) * 3)}.tf\:py-4{padding-block:calc(var(--tf-spacing,.25rem) * 4)}.tf\:py-6{padding-block:calc(var(--tf-spacing,.25rem) * 6)}.tf\:py-\[5px\]{padding-block:5px}.tf\:py-px{padding-block:1px}.tf\:ps-0{padding-inline-start:0}.tf\:ps-2{padding-inline-start:calc(var(--tf-spacing,.25rem) * 2)}.tf\:ps-6{padding-inline-start:calc(var(--tf-spacing,.25rem) * 6)}.tf\:ps-7{padding-inline-start:calc(var(--tf-spacing,.25rem) * 7)}.tf\:ps-11{padding-inline-start:calc(var(--tf-spacing,.25rem) * 11)}.tf\:ps-20{padding-inline-start:calc(var(--tf-spacing,.25rem) * 20)}.tf\:pe-0\.5{padding-inline-end:calc(var(--tf-spacing,.25rem) * .5)}.tf\:pe-3{padding-inline-end:calc(var(--tf-spacing,.25rem) * 3)}.tf\:pt-1{padding-top:var(--tf-spacing,.25rem)}.tf\:pt-1\.5{padding-top:calc(var(--tf-spacing,.25rem) * 1.5)}.tf\:pt-2{padding-top:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pt-3{padding-top:calc(var(--tf-spacing,.25rem) * 3)}.tf\:pt-4{padding-top:calc(var(--tf-spacing,.25rem) * 4)}.tf\:pt-16{padding-top:calc(var(--tf-spacing,.25rem) * 16)}.tf\:pr-2{padding-right:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pb-0\.5{padding-bottom:calc(var(--tf-spacing,.25rem) * .5)}.tf\:pb-1{padding-bottom:var(--tf-spacing,.25rem)}.tf\:pb-2{padding-bottom:calc(var(--tf-spacing,.25rem) * 2)}.tf\:pb-4{padding-bottom:calc(var(--tf-spacing,.25rem) * 4)}.tf\:pb-5{padding-bottom:calc(var(--tf-spacing,.25rem) * 5)}.tf\:pb-6{padding-bottom:calc(var(--tf-spacing,.25rem) * 6)}.tf\:pb-16{padding-bottom:calc(var(--tf-spacing,.25rem) * 16)}.tf\:pb-\[calc\(0\.5rem_\+_env\(safe-area-inset-bottom\)\)\]{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}.tf\:pl-4{padding-left:calc(var(--tf-spacing,.25rem) * 4)}.tf\:text-center{text-align:center}.tf\:text-left{text-align:left}.tf\:text-start{text-align:start}.tf\:font-mono{font-family:var(--tf-font-mono,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace)}.tf\:font-tf-sans{font-family:var(--_tf-font-sans)}.tf\:text-3xl{font-size:var(--tf-text-3xl,1.875rem);line-height:var(--tw-leading,var(--tf-text-3xl--line-height,calc(2.25 / 1.875)))}.tf\:text-sm{font-size:var(--tf-text-sm,.875rem);line-height:var(--tw-leading,var(--tf-text-sm--line-height,calc(1.25 / .875)))}.tf\:text-tf-body{font-size:.9375rem;line-height:var(--tw-leading,1.6)}.tf\:text-xl{font-size:var(--tf-text-xl,1.25rem);line-height:var(--tw-leading,var(--tf-text-xl--line-height,calc(1.75 / 1.25)))}.tf\:text-xs{font-size:var(--tf-text-xs,.75rem);line-height:var(--tw-leading,var(--tf-text-xs--line-height,calc(1 / .75)))}.tf\:text-tf-heading{letter-spacing:var(--tw-tracking,-.02em);font-size:.9375rem}.tf\:text-\[11px\]{font-size:11px}.tf\:text-tf-label{font-size:.8125rem}.tf\:leading-4{--tw-leading:calc(var(--tf-spacing,.25rem) * 4);line-height:calc(var(--tf-spacing,.25rem) * 4)}.tf\:leading-5{--tw-leading:calc(var(--tf-spacing,.25rem) * 5);line-height:calc(var(--tf-spacing,.25rem) * 5)}.tf\:leading-\[1\.35\]{--tw-leading:1.35;line-height:1.35}.tf\:leading-none{--tw-leading:1;line-height:1}.tf\:leading-relaxed{--tw-leading:var(--tf-leading-relaxed,1.625);line-height:var(--tf-leading-relaxed,1.625)}.tf\:font-medium{--tw-font-weight:var(--tf-font-weight-medium,500);font-weight:var(--tf-font-weight-medium,500)}.tf\:font-normal{--tw-font-weight:var(--tf-font-weight-normal,400);font-weight:var(--tf-font-weight-normal,400)}.tf\:font-semibold{--tw-font-weight:var(--tf-font-weight-semibold,600);font-weight:var(--tf-font-weight-semibold,600)}.tf\:tracking-\[-0\.04em\]{--tw-tracking:-.04em;letter-spacing:-.04em}.tf\:text-balance{text-wrap:balance}.tf\:break-words{overflow-wrap:break-word}.tf\:wrap-anywhere{overflow-wrap:anywhere}.tf\:whitespace-nowrap{white-space:nowrap}.tf\:whitespace-pre-wrap{white-space:pre-wrap}.tf\:text-inherit{color:inherit}.tf\:text-tf-card-foreground{color:var(--_tf-card-foreground)}.tf\:text-tf-destructive{color:var(--_tf-destructive)}.tf\:text-tf-foreground{color:var(--_tf-foreground)}.tf\:text-tf-muted-foreground{color:var(--_tf-muted-foreground)}.tf\:text-tf-popover-foreground{color:var(--_tf-popover-foreground)}.tf\:text-tf-primary-foreground{color:var(--_tf-primary-foreground)}.tf\:text-tf-secondary-foreground{color:var(--_tf-secondary-foreground)}.tf\:lowercase{text-transform:lowercase}.tf\:italic{font-style:italic}.tf\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tf\:no-underline{text-decoration-line:none}.tf\:underline{text-decoration-line:underline}.tf\:underline-offset-2{text-underline-offset:2px}.tf\:accent-tf-primary{accent-color:var(--_tf-primary)}.tf\:opacity-0{opacity:0}.tf\:opacity-45{opacity:.45}.tf\:opacity-100{opacity:1}.tf\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:shadow-tf-control{--tw-shadow:0px 1px 2px var(--tw-shadow-color,#0000000a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:ring-tf-border{--tw-ring-color:var(--_tf-border)}.tf\:transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-\[opacity\,transform\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:outline-none{--tw-outline-style:none;outline-style:none}.tf\:select-none{-webkit-user-select:none;user-select:none}.tf\:ring-inset{--tw-ring-inset:inset}.tf\:group-focus-within\/assistant-message\:opacity-100:is(:where(.tf\:group\/assistant-message):focus-within *),.tf\:group-focus-within\/user-message\:opacity-100:is(:where(.tf\:group\/user-message):focus-within *){opacity:1}@media (hover:hover){.tf\:group-hover\/assistant-message\:opacity-100:is(:where(.tf\:group\/assistant-message):hover *){opacity:1}.tf\:group-hover\/row\:text-tf-accent-foreground:is(:where(.tf\:group\/row):hover *){color:var(--_tf-accent-foreground)}.tf\:group-hover\/subagent\:opacity-100:is(:where(.tf\:group\/subagent):hover *),.tf\:group-hover\/user-message\:opacity-100:is(:where(.tf\:group\/user-message):hover *){opacity:1}}.tf\:group-focus-visible\/subagent\:opacity-100:is(:where(.tf\:group\/subagent):focus-visible *),.tf\:group-aria-expanded\/subagent\:opacity-100:is(:where(.tf\:group\/subagent)[aria-expanded=true] *){opacity:1}.tf\:placeholder\:text-tf-muted-foreground::placeholder{color:var(--_tf-muted-foreground)}.tf\:backdrop\:bg-black\/20::backdrop{background-color:var(--tf-color-black,#000)}@supports (color:color-mix(in lab, red, red)){.tf\:backdrop\:bg-black\/20::backdrop{background-color:color-mix(in oklab, var(--tf-color-black,#000) 20%, transparent)}}.tf\:after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.tf\:after\:absolute:after{content:var(--tw-content);position:absolute}.tf\:after\:inset-0:after{content:var(--tw-content);inset:0}.tf\:after\:-z-10:after{content:var(--tw-content);z-index:calc(10 * -1)}.tf\:after\:rounded-tf:after{content:var(--tw-content);border-radius:var(--_tf-radius)}.tf\:after\:bg-tf-accent:after{content:var(--tw-content);background-color:var(--_tf-accent)}.tf\:after\:opacity-0:after{content:var(--tw-content);opacity:0}.tf\:after\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}.tf\:first\:mt-0:first-child{margin-top:0}.tf\:first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.tf\:last\:mb-0:last-child{margin-bottom:0}.tf\:open\:flex:is([open],:popover-open,:open){display:flex}.tf\:open\:flex\!:is([open],:popover-open,:open){display:flex!important}.tf\:empty\:hidden:empty{display:none}.tf\:focus-within\:border-tf-foreground\/25:focus-within{border-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:focus-within\:border-tf-foreground\/25:focus-within{border-color:color-mix(in oklab, var(--_tf-foreground) 25%, transparent)}}.tf\:focus-within\:outline-2:focus-within{outline-style:var(--tw-outline-style);outline-width:2px}.tf\:focus-within\:-outline-offset-2:focus-within{outline-offset:calc(2px * -1)}.tf\:focus-within\:outline-tf-ring:focus-within{outline-color:var(--_tf-ring)}@media (hover:hover){.tf\:hover\:bg-tf-accent:hover{background-color:var(--_tf-accent)}.tf\:hover\:text-tf-accent-foreground:hover{color:var(--_tf-accent-foreground)}.tf\:hover\:text-tf-foreground:hover{color:var(--_tf-foreground)}.tf\:hover\:opacity-90:hover{opacity:.9}.tf\:hover\:after\:opacity-100:hover:after{content:var(--tw-content);opacity:1}}.tf\:focus-visible\:opacity-100:focus-visible{opacity:1}.tf\:focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tf\:focus-visible\:outline-offset-1:focus-visible{outline-offset:1px}.tf\:focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.tf\:focus-visible\:outline-tf-ring:focus-visible{outline-color:var(--_tf-ring)}.tf\:focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.tf\:disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.tf\:disabled\:bg-tf-muted:disabled{background-color:var(--_tf-muted)}.tf\:disabled\:text-tf-muted-foreground:disabled{color:var(--_tf-muted-foreground)}.tf\:disabled\:opacity-50:disabled{opacity:.5}.tf\:disabled\:opacity-100:disabled{opacity:1}.tf\:disabled\:shadow-none:disabled{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.tf\:aria-checked\:bg-tf-emphasis[aria-checked=true]{background-color:var(--_tf-foreground)}@supports (color:color-mix(in lab, red, red)){.tf\:aria-checked\:bg-tf-emphasis[aria-checked=true]{background-color:color-mix(in oklab, var(--_tf-foreground) var(--_tf-emphasis-mix), var(--_tf-muted))}}.tf\:aria-checked\:text-tf-foreground[aria-checked=true]{color:var(--_tf-foreground)}.tf\:aria-disabled\:cursor-not-allowed[aria-disabled=true]{cursor:not-allowed}.tf\:aria-disabled\:opacity-70[aria-disabled=true]{opacity:.7}.tf\:aria-\[current\=true\]\:bg-tf-accent[aria-current=true]{background-color:var(--_tf-accent)}.tf\:aria-\[current\=true\]\:text-tf-accent-foreground[aria-current=true]{color:var(--_tf-accent-foreground)}@media (prefers-reduced-motion:reduce){.tf\:motion-reduce\:animate-none{animation:none}}@media (min-width:40rem){.tf\:sm\:mt-24{margin-top:calc(var(--tf-spacing,.25rem) * 24)}.tf\:sm\:h-\[calc\(100dvh-12rem\)\]{height:calc(100dvh - 12rem)}.tf\:sm\:max-h-144{max-height:calc(var(--tf-spacing,.25rem) * 144)}.tf\:sm\:w-full{width:100%}.tf\:sm\:max-w-2xl{max-width:var(--tf-container-2xl,42rem)}}@media (min-width:48rem){.tf\:md\:px-2\.5{padding-inline:calc(var(--tf-spacing,.25rem) * 2.5)}}@container (min-width:28rem){.tf\:\@md\:text-2xl{font-size:var(--tf-text-2xl,1.5rem);line-height:var(--tw-leading,var(--tf-text-2xl--line-height,calc(2 / 1.5)))}}@media (pointer:coarse){.tf\:pointer-coarse\:opacity-100{opacity:1}}.tf\:\[\&_\[data-tf-prompt-go\]\]\:opacity-0 [data-tf-prompt-go]{opacity:0}.tf\:\[\&_\[data-tf-prompt-go\]\]\:transition-opacity [data-tf-prompt-go]{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--tf-default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--tf-default-transition-duration,.15s))}@media (hover:hover){.tf\:hover\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100:hover [data-tf-prompt-go]{opacity:1}}.tf\:focus-visible\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100:focus-visible [data-tf-prompt-go]{opacity:1}@media (pointer:coarse){.tf\:pointer-coarse\:\[\&_\[data-tf-prompt-go\]\]\:opacity-100 [data-tf-prompt-go]{opacity:1}}.tf\:\[\&_\[data-tf-prompt-mark\]\]\:text-tf-muted-foreground [data-tf-prompt-mark]{color:var(--_tf-muted-foreground)}.tf\:\[\&\:\:-webkit-details-marker\]\:hidden::-webkit-details-marker{display:none}[data-tf-approval-text-preview]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}[data-tf-approval-card]{max-height:calc(var(--_tf-suspension-well-max-height,min(45dvh, 36rem)) - 1rem);overflow-y:auto}[data-tf-question-panel]{max-height:calc(var(--_tf-suspension-well-max-height,min(45dvh, 36rem)) - 1rem);flex-direction:column;display:flex;overflow-y:auto}[data-tf-question-panel] [data-tf-question-answers]{min-height:2.75rem;overflow-y:auto}[data-tf-question-panel] [data-tf-question-answers][data-tf-has-options]{min-height:6rem}[data-tf-question-panel] [data-tf-question-answers][data-tf-fold-below]{-webkit-mask-image:linear-gradient(#000 calc(100% - 2rem),#0000);mask-image:linear-gradient(#000 calc(100% - 2rem),#0000)}[data-tf-message-list]:has(~[data-tf-composer-anchor] [data-tf-subagent-pill]) [data-tf-activity-tail]{height:4rem}[data-tf-message-list]:has([data-tf-scroll-away-jump])~[data-tf-composer-anchor] [data-tf-activity-slot]{visibility:hidden;opacity:0;pointer-events:none}[data-tf-message-list] details:not([open])::details-content{display:none}@media (hover:none),(pointer:coarse){[data-tf-disclosure-chevron]{opacity:1}}@keyframes tf-pulse{50%{opacity:.5}}@keyframes tf-spin{to{transform:rotate(360deg)}}[data-tf-assistant]{color-scheme:var(--tf-color-scheme,light);--_tf-background:var(--tf-background,#fff);--_tf-foreground:var(--tf-foreground,#171717);--_tf-card:var(--tf-card,#fff);--_tf-card-foreground:var(--tf-card-foreground,var(--_tf-foreground));--_tf-popover:var(--tf-popover,var(--_tf-background));--_tf-popover-foreground:var(--tf-popover-foreground,var(--_tf-foreground));--_tf-primary:var(--tf-primary,#171717);--_tf-primary-foreground:var(--tf-primary-foreground,#fff);--_tf-secondary:var(--tf-secondary,transparent);--_tf-secondary-foreground:var(--tf-secondary-foreground,var(--_tf-foreground));--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-emphasis-mix:10%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 65%, var(--_tf-background))}}[data-tf-assistant]{--_tf-shimmer-peak-hover:var(--_tf-shimmer-peak);--_tf-accent:var(--tf-accent,#0000000d);--_tf-accent-foreground:var(--tf-accent-foreground,var(--_tf-foreground));--_tf-destructive:var(--tf-destructive,#e70022);--_tf-border:var(--tf-border,#00000014);--_tf-input:var(--tf-input,#00000014);--_tf-ring:var(--tf-ring,#0070f7);--_tf-radius:var(--tf-radius,.5rem);--_tf-font-sans:var(--tf-font-sans,ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif)}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{color-scheme:var(--tf-color-scheme,dark);--_tf-background:var(--_tf-dark-background,var(--tf-background,#000));--_tf-foreground:var(--_tf-dark-foreground,var(--tf-foreground,#ededed));--_tf-card:var(--_tf-dark-card,var(--tf-card,#000));--_tf-card-foreground:var(--_tf-dark-card-foreground,var(--tf-card-foreground,var(--_tf-foreground)));--_tf-popover:var(--_tf-dark-popover,var(--tf-popover,var(--_tf-background)));--_tf-popover-foreground:var(--_tf-dark-popover-foreground,var(--tf-popover-foreground,var(--_tf-foreground)));--_tf-primary:var(--_tf-dark-primary,var(--tf-primary,#ededed));--_tf-primary-foreground:var(--_tf-dark-primary-foreground,var(--tf-primary-foreground,#000));--_tf-secondary:var(--_tf-dark-secondary,var(--tf-secondary,transparent));--_tf-secondary-foreground:var(--_tf-dark-secondary-foreground,var(--tf-secondary-foreground,var(--_tf-foreground)));--_tf-muted:var(--_tf-dark-muted,var(--tf-muted,#1a1a1a));--_tf-muted-foreground:var(--_tf-dark-muted-foreground,var(--tf-muted-foreground,#a0a0a0));--_tf-emphasis-mix:16%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 20%, var(--_tf-foreground))}}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak-hover:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-shimmer-peak-hover:color-mix(in oklab, var(--_tf-muted-foreground) 80%, var(--_tf-background))}}[data-tf-theme=dark] [data-tf-assistant],[data-tf-assistant][data-tf-theme=dark]{--_tf-accent:var(--_tf-dark-accent,var(--tf-accent,#ffffff12));--_tf-accent-foreground:var(--_tf-dark-accent-foreground,var(--tf-accent-foreground,var(--_tf-foreground)));--_tf-destructive:var(--_tf-dark-destructive,var(--tf-destructive,#f32e40));--_tf-border:var(--_tf-dark-border,var(--tf-border,#ffffff24));--_tf-input:var(--_tf-dark-input,var(--tf-input,#ffffff24));--_tf-ring:var(--_tf-dark-ring,var(--tf-ring,#50a8ff))}[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{color-scheme:var(--tf-color-scheme,light);--_tf-background:var(--tf-background,#fff);--_tf-foreground:var(--tf-foreground,#171717);--_tf-card:var(--tf-card,#fff);--_tf-card-foreground:var(--tf-card-foreground,var(--_tf-foreground));--_tf-popover:var(--tf-popover,var(--_tf-background));--_tf-popover-foreground:var(--tf-popover-foreground,var(--_tf-foreground));--_tf-primary:var(--tf-primary,#171717);--_tf-primary-foreground:var(--tf-primary-foreground,#fff);--_tf-secondary:var(--tf-secondary,transparent);--_tf-secondary-foreground:var(--tf-secondary-foreground,var(--_tf-foreground));--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-emphasis-mix:10%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 65%, var(--_tf-background))}}[data-tf-assistant][data-tf-theme=light],[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:var(--_tf-shimmer-peak);--_tf-accent:var(--tf-accent,#0000000d);--_tf-accent-foreground:var(--tf-accent-foreground,var(--_tf-foreground));--_tf-destructive:var(--tf-destructive,#e70022);--_tf-border:var(--tf-border,#00000014);--_tf-input:var(--tf-input,#00000014);--_tf-ring:var(--tf-ring,#0070f7)}@media (prefers-color-scheme:dark){[data-tf-assistant][data-tf-theme=auto]{color-scheme:var(--tf-color-scheme,dark);--_tf-background:var(--_tf-dark-background,var(--tf-background,#000));--_tf-foreground:var(--_tf-dark-foreground,var(--tf-foreground,#ededed));--_tf-card:var(--_tf-dark-card,var(--tf-card,#000));--_tf-card-foreground:var(--_tf-dark-card-foreground,var(--tf-card-foreground,var(--_tf-foreground)));--_tf-popover:var(--_tf-dark-popover,var(--tf-popover,var(--_tf-background)));--_tf-popover-foreground:var(--_tf-dark-popover-foreground,var(--tf-popover-foreground,var(--_tf-foreground)));--_tf-primary:var(--_tf-dark-primary,var(--tf-primary,#ededed));--_tf-primary-foreground:var(--_tf-dark-primary-foreground,var(--tf-primary-foreground,#000));--_tf-secondary:var(--_tf-dark-secondary,var(--tf-secondary,transparent));--_tf-secondary-foreground:var(--_tf-dark-secondary-foreground,var(--tf-secondary-foreground,var(--_tf-foreground)));--_tf-muted:var(--_tf-dark-muted,var(--tf-muted,#1a1a1a));--_tf-muted-foreground:var(--_tf-dark-muted-foreground,var(--tf-muted-foreground,#a0a0a0));--_tf-emphasis-mix:16%;--_tf-shimmer-peak:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak:color-mix(in oklab, var(--_tf-muted-foreground) 20%, var(--_tf-foreground))}}[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:var(--_tf-muted-foreground)}@supports (color:color-mix(in lab, red, red)){[data-tf-assistant][data-tf-theme=auto]{--_tf-shimmer-peak-hover:color-mix(in oklab, var(--_tf-muted-foreground) 80%, var(--_tf-background))}}[data-tf-assistant][data-tf-theme=auto]{--_tf-accent:var(--_tf-dark-accent,var(--tf-accent,#ffffff12));--_tf-accent-foreground:var(--_tf-dark-accent-foreground,var(--tf-accent-foreground,var(--_tf-foreground)));--_tf-destructive:var(--_tf-dark-destructive,var(--tf-destructive,#f32e40));--_tf-border:var(--_tf-dark-border,var(--tf-border,#ffffff24));--_tf-input:var(--_tf-dark-input,var(--tf-input,#ffffff24));--_tf-ring:var(--_tf-dark-ring,var(--tf-ring,#50a8ff))}}[data-tf-assistant][data-tf-glass],[data-tf-assistant] [data-tf-glass]{--_tf-glass-ground:var(--_tf-background);color:var(--_tf-foreground);background:var(--_tf-glass-ground);box-shadow:0 1px 1px #0000001a,0 2px 8px #0000001a,0 3px 12px #00000014,0 3px 20px #0000000f,0 4px 40px #0000000f}[data-tf-assistant][data-tf-glass][data-tf-popover],[data-tf-assistant] [data-tf-glass][data-tf-popover]{--_tf-glass-ground:var(--_tf-popover);color:var(--_tf-popover-foreground)}[data-tf-assistant] [data-tf-subagent-pill]>[data-tf-glass]{box-shadow:0 1px 1px #0000001a,0 2px 8px #0000001a}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) and (background:color-mix(in srgb, red 50%, transparent)){[data-tf-assistant][data-tf-glass],[data-tf-assistant] [data-tf-glass]{--_tf-glass-coat:color-mix(in srgb, var(--_tf-glass-ground) 35%, transparent);background:linear-gradient(180deg, #ffffff14 0%, #ffffff05 45%), var(--_tf-glass-coat);border-color:color-mix(in srgb, var(--_tf-foreground) 22%, transparent);-webkit-backdrop-filter:blur(16px)saturate(1.5);backdrop-filter:blur(16px)saturate(1.5);--_tf-muted:color-mix(in srgb, var(--_tf-foreground) 10%, transparent);box-shadow:inset 0 1px #ffffff4d,0 24px 60px #00000059}[data-tf-glass] [data-tf-composer-wash]{background:color-mix(in srgb, var(--_tf-foreground) 6%, transparent)}[data-tf-glass] [data-tf-composer-ground]{background:0 0}[data-tf-glass] [data-tf-conversation]>[inert]{visibility:hidden}[data-tf-glass] [data-tf-child-transcript]{background:0 0}[data-tf-assistant] [data-tf-subagent-pill]>[data-tf-glass]{box-shadow:inset 0 1px #ffffff4d,0 8px 24px #0000001f}}[data-tf-assistant] [data-tf-disclosure]{box-shadow:0 8px 24px #0000001a}[data-tf-assistant] [data-tf-disclosure][data-tf-surface-inset]{top:.5rem}@supports (color:oklch(from red calc(l + sign(0.5 - l) * 0.06) c h / alpha)){[data-tf-assistant] [data-tf-secondary]:hover{background-color:oklch(from var(--_tf-secondary) calc(l + sign(.5 - l) * .06) c h / alpha)}[data-tf-assistant] [data-tf-secondary]:after{background-color:rgb(from var(--_tf-accent) r g b / min(alpha, .3))}}[data-tf-assistant],[data-tf-assistant] :where(:not([data-tf-host-view] *)),[data-tf-assistant] :where(:not([data-tf-host-view] *)):before,[data-tf-assistant] :where(:not([data-tf-host-view] *)):after{box-sizing:border-box;border-color:var(--_tf-border)}[data-tf-assistant]{font-family:var(--_tf-font-sans);color:var(--_tf-foreground)}[data-tf-sheet]{--_tf-swipe-drag:0px;touch-action:pan-y pinch-zoom;transition:translate .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete}[data-tf-sheet=left]{translate:-100%}[data-tf-sheet=right]{translate:100%}[data-tf-sheet][open]{translate:var(--_tf-swipe-drag) 0}@starting-style{[data-tf-sheet=left][open]{translate:-100%}[data-tf-sheet=right][open]{translate:100%}}[data-tf-sheet][data-tf-swipe-dragging]{transition:none}[data-tf-sheet]::backdrop{opacity:0;transition:opacity .18s ease-out, display .18s allow-discrete, overlay .18s allow-discrete;background-color:#0006}[data-tf-sheet][open]::backdrop{opacity:1}@starting-style{[data-tf-sheet][open]::backdrop{opacity:0}}[data-tf-floating-panel]{--_tf-swipe-drag:0px;transition:translate .22s cubic-bezier(.22, 1, .36, 1), scale .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete;translate:0 8px;scale:.92}[data-tf-floating-panel]:popover-open{translate:0 var(--_tf-swipe-drag);scale:1}@starting-style{[data-tf-floating-panel]:popover-open{translate:0 8px;scale:.92}}[data-tf-floating-panel=bottom-right]{transform-origin:100% 100%}[data-tf-floating-panel=bottom-left]{transform-origin:0 100%}[data-tf-floating-panel][data-tf-swipe-dragging]{transition:none}[data-tf-floating-panel][data-tf-panel-dock=sidebar]{border-left:1px solid var(--_tf-border);opacity:0;transform-origin:100%;transition:translate .22s cubic-bezier(.22, 1, .36, 1), opacity .22s cubic-bezier(.22, 1, .36, 1), display .22s allow-discrete, overlay .22s allow-discrete;translate:.75rem;scale:1}[data-tf-floating-panel][data-tf-panel-dock=sidebar]:popover-open{opacity:1;translate:0}@starting-style{[data-tf-floating-panel][data-tf-panel-dock=sidebar]:popover-open{opacity:0;translate:.75rem;scale:1}}[data-tf-floating-panel]:not([data-tf-panel-dock=sidebar]) [data-tf-swipe-handle]{touch-action:pinch-zoom}[data-tf-floating-panel]:has(>[data-tf-disclosure]) [data-tf-conversation]{filter:blur(8px)}[data-tf-assistant]:has(>[data-tf-disclosure]) [data-tf-conversation],[data-tf-conversation]:has(#tf-model-picker-menu) [data-tf-message-list]{filter:blur(8px);pointer-events:none}[data-tf-activity-step]{position:relative}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{background:var(--_tf-foreground);width:1px;position:absolute;inset-block:1.55rem -.45rem;inset-inline-start:.47rem}@supports (color:color-mix(in lab, red, red)){[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{background:color-mix(in srgb, var(--_tf-foreground) 14%, transparent)}}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):after{content:"";pointer-events:none}[data-tf-activity-step]:not(:last-child):not([data-tf-activity-narration]):has(+[data-tf-activity-narration]):after{inset-block-end:0}[data-tf-decision-scroll-well]{max-height:var(--_tf-suspension-well-max-height,min(45dvh, 36rem))}[data-tf-assistant-palette]{--_tf-suspension-well-max-height:min(20rem, 100dvh - 25rem)}[data-tf-panel-dock=floating]{--_tf-suspension-well-max-height:min(26rem, 68dvh - 13rem)}[data-tf-decision-scroll-well][data-tf-fold-below]{-webkit-mask-image:linear-gradient(#000 calc(100% - 2rem),#0000);mask-image:linear-gradient(#000 calc(100% - 2rem),#0000)}[data-tf-conversation]:has([data-tf-subagent-disclosure])>[data-tf-conversation-body]>:not([data-tf-composer-anchor]),[data-tf-conversation]:has([data-tf-subagent-disclosure]) [data-tf-composer-anchor]>:not([data-tf-activity-slot]),[data-tf-conversation]:has([data-tf-subagent-disclosure]) [data-tf-activity-slot] [data-tf-shelf-item]:not([data-tf-subagent-pill]){filter:blur(8px);pointer-events:none}@media (prefers-reduced-motion:reduce){[data-tf-sheet],[data-tf-sheet]::backdrop,[data-tf-floating-panel]{transition-duration:1ms}}[data-reduce-motion=true] [data-tf-sheet],[data-reduce-motion=true] [data-tf-sheet]::backdrop,[data-reduce-motion=true] [data-tf-floating-panel]{transition-duration:1ms}[data-tf-companion-dock]{pointer-events:none;inset:auto;bottom:calc(1rem + var(--_tf-companion-lift,0px));transition:bottom .18s cubic-bezier(.22, 1, .36, 1), display .18s allow-discrete, overlay .18s allow-discrete;background:0 0;border:none;flex-direction:column;align-items:flex-end;margin:0;padding:0;display:none;overflow:visible}[data-tf-companion-dock]:popover-open{display:flex}[data-tf-companion-perch]{opacity:1;transition:opacity .18s cubic-bezier(.22,1,.36,1)}@starting-style{[data-tf-companion-perch]{opacity:0}}[data-tf-companion-dock=bottom-right]{right:1rem}[data-tf-companion-dock=bottom-left]{align-items:flex-start;left:1rem}[data-tf-companion-grabber]{border-radius:var(--_tf-radius);background:var(--_tf-muted-foreground);opacity:.4;width:2.25rem;height:.25rem;display:none;position:absolute;top:.25rem;left:50%;translate:-50%}@media (hover:none),(pointer:coarse){[data-tf-companion-grabber]{display:block}}[data-tf-floating-panel][data-tf-panel-dock=sidebar] [data-tf-companion-grabber]{display:none}[data-tf-companion-body]{pointer-events:auto}[data-tf-companion-perch]{display:flex;position:relative}[data-tf-companion-body]{justify-content:center;align-items:center;width:4.5rem;height:4.5rem;transition:opacity .15s;display:flex}[data-tf-companion-body]:hover{opacity:.7}[data-tf-companion-body]:active{opacity:.55}[data-tf-companion-mark]{justify-content:center;align-items:center;width:4rem;height:4rem;display:flex}[data-tf-companion-mark] [data-tf-host-view]>*{object-fit:contain;width:100%;height:100%}[data-tf-companion-welcome-mark]{display:flex}@media (prefers-reduced-motion:reduce){[data-tf-companion-dock],[data-tf-companion-perch],[data-tf-companion-body]{transition-duration:1ms}}[data-reduce-motion=true] [data-tf-companion-dock],[data-reduce-motion=true] [data-tf-companion-perch],[data-reduce-motion=true] [data-tf-companion-body]{transition-duration:1ms}[data-tf-markdown]{overflow-wrap:break-word}[data-tf-markdown]>:first-child{margin-top:0}[data-tf-markdown]>:last-child{margin-bottom:0}[data-tf-markdown] a{color:var(--_tf-foreground);text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:var(--_tf-muted-foreground);-webkit-text-decoration-color:var(--_tf-muted-foreground);text-decoration-color:var(--_tf-muted-foreground)}[data-tf-markdown] a:hover{-webkit-text-decoration-color:var(--_tf-foreground);-webkit-text-decoration-color:var(--_tf-foreground);text-decoration-color:var(--_tf-foreground)}[data-tf-markdown] a[data-tf-markdown-image]{text-decoration:none}[data-tf-markdown] a[data-tf-markdown-image] [data-tf-markdown-image-label]{text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:var(--_tf-muted-foreground);-webkit-text-decoration-color:var(--_tf-muted-foreground);text-decoration-color:var(--_tf-muted-foreground)}[data-tf-markdown] a[data-tf-markdown-image]:hover [data-tf-markdown-image-label]{-webkit-text-decoration-color:var(--_tf-foreground);-webkit-text-decoration-color:var(--_tf-foreground);text-decoration-color:var(--_tf-foreground)}[data-tf-markdown] [data-tf-markdown-image-marker]{color:var(--_tf-muted-foreground)}[data-tf-markdown] span[data-tf-markdown-image]{color:var(--_tf-foreground)}[data-tf-markdown] li::marker{color:var(--_tf-muted-foreground)}[data-tf-markdown] p{margin-block:1.25rem;line-height:1.75}[data-tf-markdown] h1{letter-spacing:-.04em;margin-block:2rem .875rem;font-size:1.75rem;font-weight:600}[data-tf-markdown] h2{letter-spacing:-.04em;margin-block:2rem .875rem;font-size:1.5rem;font-weight:600}[data-tf-markdown] h3{letter-spacing:-.02em;margin-block:1.75rem .75rem;font-size:1.25rem;font-weight:600}[data-tf-markdown] h4,[data-tf-markdown] h5,[data-tf-markdown] h6{margin-block:.875rem .25rem;font-size:.9375rem;font-weight:500}[data-tf-markdown] ul,[data-tf-markdown] ol{margin-block:.75rem;padding-left:1.25rem}[data-tf-markdown] ul{list-style:outside}[data-tf-markdown] ol{list-style:decimal}[data-tf-markdown] li{margin-block:.625rem;line-height:1.75}[data-tf-markdown] blockquote{border-left:2px solid var(--_tf-border);color:var(--_tf-muted-foreground);margin-block:.75rem;padding-left:1rem}[data-tf-markdown] hr{border:0;border-top:1px solid var(--_tf-border);margin-block:.75rem}[data-tf-markdown] table{border-collapse:separate;border-spacing:0;text-align:left;width:100%;margin-block:.75rem}[data-tf-markdown] th{background:var(--_tf-muted);padding:.375rem .75rem;font-weight:500}[data-tf-markdown] th:first-child{border-start-start-radius:var(--_tf-radius)}[data-tf-markdown] th:last-child{border-start-end-radius:var(--_tf-radius)}[data-tf-markdown] td{border-inline-start:1px solid var(--_tf-border);border-bottom:1px solid var(--_tf-border);padding:.375rem .75rem}[data-tf-markdown] td:last-child{border-inline-end:1px solid var(--_tf-border)}[data-tf-markdown] tr:last-child td:first-child{border-end-start-radius:var(--_tf-radius)}[data-tf-markdown] tr:last-child td:last-child{border-end-end-radius:var(--_tf-radius)}[data-tf-tool-view-card] [data-tf-markdown]{font-size:.8125rem;line-height:1.5}[data-tf-tool-view-card] [data-tf-markdown] p,[data-tf-tool-view-card] [data-tf-markdown] ul,[data-tf-tool-view-card] [data-tf-markdown] ol,[data-tf-tool-view-card] [data-tf-markdown] blockquote,[data-tf-tool-view-card] [data-tf-markdown] table,[data-tf-tool-view-card] [data-tf-markdown] hr{margin-block:.5rem;line-height:1.5}[data-tf-tool-view-card] [data-tf-markdown] li{margin-block:.125rem}[data-tf-tool-view-card] [data-tf-markdown] h1,[data-tf-tool-view-card] [data-tf-markdown] h2,[data-tf-tool-view-card] [data-tf-markdown] h3,[data-tf-tool-view-card] [data-tf-markdown] h4,[data-tf-tool-view-card] [data-tf-markdown] h5,[data-tf-tool-view-card] [data-tf-markdown] h6{letter-spacing:0;margin-block:.75rem .25rem;font-size:.8125rem}[data-tf-tool-view-card] [data-tf-markdown] th,[data-tf-tool-view-card] [data-tf-markdown] td{padding:.25rem .5rem}[data-tf-markdown] :where(:not(pre))>code{background:var(--_tf-muted);border-radius:calc(var(--_tf-radius) - 2px);padding:.125rem .375rem;font-size:.85em}[data-tf-code-html] pre{background:0 0;margin:0;padding:0}[data-tf-assistant]{--shiki-foreground:var(--_tf-foreground);--shiki-background:transparent;--shiki-token-comment:var(--_tf-muted-foreground);--shiki-token-keyword:var(--_tf-foreground);--shiki-token-string:var(--_tf-muted-foreground);--shiki-token-constant:var(--_tf-foreground);--shiki-token-function:var(--_tf-foreground);--shiki-token-parameter:var(--_tf-foreground);--shiki-token-punctuation:var(--_tf-muted-foreground);--shiki-token-string-expression:var(--_tf-muted-foreground);--shiki-token-link:var(--_tf-foreground)}[data-tf-markdown]:not([data-tf-assistant] [data-tf-markdown]){--_tf-foreground:var(--tf-foreground,#171717);--_tf-muted:var(--tf-muted,#f2f2f2);--_tf-muted-foreground:var(--tf-muted-foreground,#4d4d4d);--_tf-border:var(--tf-border,#00000014);--_tf-radius:var(--tf-radius,.5rem);--shiki-foreground:var(--_tf-foreground);--shiki-background:transparent;--shiki-token-comment:var(--_tf-muted-foreground);--shiki-token-keyword:var(--_tf-foreground);--shiki-token-string:var(--_tf-muted-foreground);--shiki-token-constant:var(--_tf-foreground);--shiki-token-function:var(--_tf-foreground);--shiki-token-parameter:var(--_tf-foreground);--shiki-token-punctuation:var(--_tf-muted-foreground);--shiki-token-string-expression:var(--_tf-muted-foreground);--shiki-token-link:var(--_tf-foreground)}@keyframes tf-shimmer{0%{background-position:180% 0}to{background-position:-180% 0}}[data-tf-shimmer-highlight]{pointer-events:none;-webkit-user-select:none;user-select:none;color:#0000;background-image:linear-gradient(90deg, transparent 25%, var(--_tf-shimmer-peak) 45% 55%, transparent 75%);background-position:180% 0;background-repeat:no-repeat;background-size:175% 100%;-webkit-background-clip:text;background-clip:text;animation:1.35s linear infinite tf-shimmer}[data-tf-assistant] summary:hover{--_tf-shimmer-peak:var(--_tf-shimmer-peak-hover)}@media (prefers-reduced-motion:reduce){[data-tf-shimmer-highlight]{background-image:none;animation:none}}[data-reduce-motion=true] [data-tf-shimmer-highlight]{background-image:none;animation:none}[data-reduce-motion=true] [data-tf-working-dot],[data-reduce-motion=true] [data-tf-spinner]{animation:none}[data-tf-composer-wash]{background:var(--_tf-muted)}@supports (color:color-mix(in lab, red, red)){[data-tf-composer-wash]{background:color-mix(in oklab, var(--_tf-muted) 30%, var(--_tf-background))}}[data-tf-composer-wash]{box-shadow:0 4px 16px -8px #00000014,0 1px 2px #0000000a}[data-tf-composer-wash]:focus-within{box-shadow:0 6px 24px -8px #0000001f,0 1px 2px #0000000d}.tf-highlight-ring{z-index:2147483000;pointer-events:none;border:2px solid var(--_tf-ring,#0070f7);box-shadow:0 0 0 4px var(--_tf-ring,#0070f7);border-radius:6px;position:fixed}@supports (color:color-mix(in lab, red, red)){.tf-highlight-ring{box-shadow:0 0 0 4px color-mix(in oklab, var(--_tf-ring,#0070f7) 25%, transparent)}}.tf-highlight-ring{opacity:1;transition:opacity .3s;animation:1.2s ease-out 2 tf-highlight-pulse}.tf-highlight-ring[data-tf-highlight-leaving=true]{opacity:0}@keyframes tf-highlight-pulse{0%{box-shadow:0 0 0 4px color-mix(in oklab, var(--_tf-ring,#0070f7) 45%, transparent)}to{box-shadow:0 0 0 10px color-mix(in oklab, var(--_tf-ring,#0070f7) 0%, transparent)}}@media (prefers-reduced-motion:reduce){.tf-highlight-ring{transition-duration:1ms;animation:none}}[data-reduce-motion=true] .tf-highlight-ring{transition-duration:1ms;animation:none}[data-tf-glass] [data-tf-subagent-pill]>[data-tf-glass]{background:var(--_tf-background);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 1px 2px #0000000a}button[data-tf-subagent-entry]{border-radius:.75rem}button[data-tf-subagent-entry]:hover,button[data-tf-subagent-entry]:focus-visible{background:var(--_tf-muted)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
@@ -36,8 +36,10 @@ export declare class StreamResumeStore {
|
|
|
36
36
|
private readonly anchoredResumptions;
|
|
37
37
|
private readonly anchoredFailedRuns;
|
|
38
38
|
private readonly anchoredDeliveryRuns;
|
|
39
|
+
private readonly reportedFailedTurns;
|
|
39
40
|
recordResumeAnchor(runId: string | null, messageId: string, markerValue: unknown, markerTimestamp: number | null): boolean;
|
|
40
41
|
recordTurnFailedReceipts(failedRunId: string, messageId: string, position: keyof AnchoredTurnFailReceipts, receipts: string[]): boolean;
|
|
42
|
+
recordFailedTurnReported(turnId: string): boolean;
|
|
41
43
|
recordSubagentDelivery(deliveryRunId: string, messageId: string, results: DeliveredResult[]): boolean;
|
|
42
44
|
recordToolError(toolCallId: string, errorText: string): void;
|
|
43
45
|
recordToolRefusal(toolCallId: string, sentence: string): void;
|
|
@@ -37,6 +37,7 @@ export class StreamResumeStore {
|
|
|
37
37
|
anchoredResumptions = new Set();
|
|
38
38
|
anchoredFailedRuns = new Set();
|
|
39
39
|
anchoredDeliveryRuns = new Set();
|
|
40
|
+
reportedFailedTurns = new Set();
|
|
40
41
|
recordResumeAnchor(runId, messageId, markerValue, markerTimestamp) {
|
|
41
42
|
const attempt = _wireCounterOf(markerValue, "attempt");
|
|
42
43
|
const carriesRound = typeof markerValue === "object" &&
|
|
@@ -60,6 +61,13 @@ export class StreamResumeStore {
|
|
|
60
61
|
this.turnFailedAnchors = withTurnFailedAnchored(this.turnFailedAnchors, messageId, position, receipts);
|
|
61
62
|
return true;
|
|
62
63
|
}
|
|
64
|
+
recordFailedTurnReported(turnId) {
|
|
65
|
+
if (this.reportedFailedTurns.has(turnId)) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
this.reportedFailedTurns.add(turnId);
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
63
71
|
recordSubagentDelivery(deliveryRunId, messageId, results) {
|
|
64
72
|
if (this.anchoredDeliveryRuns.has(deliveryRunId)) {
|
|
65
73
|
return false;
|
package/package.json
CHANGED