@teaflask/assistant 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/custom-elements.json +264 -0
- package/dist/appearance/theme.d.ts +138 -0
- package/dist/components/approval-card.js +3 -3
- package/dist/components/approval-context.d.ts +20 -0
- package/dist/components/assistant-companion.d.ts +15 -0
- package/dist/components/assistant-page.d.ts +61 -0
- package/dist/components/assistant-palette.d.ts +12 -0
- package/dist/components/assistant-palette.js +2 -2
- package/dist/components/child-transcript.js +1 -1
- package/dist/components/companion-header-disclosure.js +1 -1
- package/dist/components/companion-history-menu.js +1 -1
- package/dist/components/composer.js +11 -65
- package/dist/components/conversation-context.d.ts +6 -0
- package/dist/components/conversation-gate-card.js +1 -1
- package/dist/components/conversation-view.d.ts +11 -0
- package/dist/components/elicitation-context.d.ts +39 -0
- package/dist/components/model-picker-chip.js +4 -2
- package/dist/components/primitives/button.js +25 -17
- package/dist/components/primitives/floating-panel.js +1 -1
- package/dist/components/provider-chip.js +8 -1
- package/dist/components/question-panel-footer.js +1 -1
- package/dist/components/react-tool-view.d.ts +7 -0
- package/dist/components/subagent-count-pill.js +2 -2
- package/dist/components/subagent-group-row.js +1 -26
- package/dist/components/subagent-preview-popover.js +1 -1
- package/dist/components/subscription-connect-arms.js +6 -4
- package/dist/components/subscription-connect-flow.js +30 -45
- package/dist/components/subscription-connected-standing.js +9 -6
- package/dist/components/subscription-plan-notice.js +4 -2
- package/dist/components/teaflask-assistant-provider.d.ts +99 -0
- package/dist/components/teaflask-assistant.d.ts +33 -0
- package/dist/components/tool-views/action-view.js +1 -1
- package/dist/components/tool-views/parts-classes.d.ts +5 -5
- package/dist/components/tool-views/parts-classes.js +5 -5
- package/dist/components/tool-views/parts.d.ts +44 -0
- package/dist/components/tool-views/questions-view.js +2 -2
- package/dist/components/tool-views/view-dom.d.ts +76 -0
- package/dist/components/transcript.js +2 -2
- package/dist/components/use-assistant-activity.d.ts +5 -0
- package/dist/components/use-assistant-conversation.d.ts +99 -2
- package/dist/components/use-store-cell.d.ts +5 -0
- package/dist/components/use-thread-dispatches.js +8 -366
- package/dist/components/use-transcript-folds.js +2 -1
- package/dist/components/use-transcript.d.ts +55 -2
- package/dist/components/use-transcript.js +7 -2
- package/dist/contract/actions-adapter.d.ts +78 -0
- package/dist/contract/errors.d.ts +6 -1
- package/dist/contract/events.d.ts +1 -3
- package/dist/contract/identity.d.ts +1 -1
- package/dist/contract/subscriptions.d.ts +2 -2
- package/dist/contract/subscriptions.js +1 -1
- package/dist/contract/telemetry.d.ts +45 -0
- package/dist/contract/threads.d.ts +5 -1
- package/dist/core/activity.d.ts +44 -0
- package/dist/core/approval-inbox.d.ts +69 -0
- package/dist/core/assistant-session-registry.js +15 -0
- package/dist/core/composer-attachments.js +82 -0
- package/dist/core/composer-input-state.js +1 -0
- package/dist/core/composer-policy.d.ts +20 -0
- package/dist/core/connection-epoch.d.ts +65 -2
- package/dist/core/conversation-adoption.js +3 -0
- package/dist/core/conversation-contract.d.ts +112 -1
- package/dist/core/conversation-publish.js +1 -0
- package/dist/core/conversation-store.d.ts +3 -0
- package/dist/core/conversation-store.js +7 -0
- package/dist/core/dispatch-poll.js +81 -0
- package/dist/core/elicitation-answers.js +12 -0
- package/dist/core/elicitation-cards.d.ts +14 -0
- package/dist/core/elicitation-pickers.d.ts +16 -0
- package/dist/core/memory-provenance-anchors.d.ts +16 -0
- package/dist/core/observable-cell.d.ts +12 -0
- package/dist/core/pending-decision-gap.d.ts +9 -0
- package/dist/core/question-drafts.d.ts +59 -0
- package/dist/core/receipt-anchors.d.ts +9 -0
- package/dist/core/segment-timing.d.ts +23 -0
- package/dist/core/subagent-delivery-anchors.d.ts +7 -0
- package/dist/core/subagent-ledger-join.js +176 -0
- package/dist/core/subagent-rows.d.ts +68 -0
- package/dist/core/thread-dispatch-ledger.js +303 -0
- package/dist/core/tool-call-display.d.ts +71 -0
- package/dist/core/tool-call-presentation.d.ts +34 -1
- package/dist/core/tool-call-presentation.js +0 -1
- package/dist/core/tool-schema-anchors.d.ts +6 -0
- package/dist/core/tool-view.d.ts +174 -1
- package/dist/core/transcript-rows.d.ts +138 -3
- package/dist/core/turn-failed-anchors.d.ts +4 -0
- package/dist/core/user-turn-ledger.d.ts +3 -0
- package/dist/generated/models/apiErrorCode.d.ts +1 -0
- package/dist/generated/models/apiErrorCode.js +1 -0
- package/dist/generated/models/assistantTurnStatus.d.ts +16 -0
- package/dist/generated/models/servingAssistantThreadResponse.d.ts +23 -0
- package/dist/generated/models/servingAttachmentResponse.d.ts +29 -0
- package/dist/generated/models/servingErrorCode.d.ts +18 -0
- package/dist/generated/models/servingTurnAttachmentResponse.d.ts +12 -0
- package/dist/generated/models/siteTheme.d.ts +1 -0
- package/dist/generated/models/thinkingEffort.d.ts +10 -0
- package/dist/generated/models/threadModelPickResponse.d.ts +12 -0
- package/dist/headless.d.ts +9 -4
- package/dist/index.d.ts +2 -6
- package/dist/index.js +0 -3
- package/dist/persistence/stored-thread.d.ts +5 -0
- package/dist/styles.css +1 -1
- package/dist/transport/serving-error.d.ts +21 -0
- package/package.json +6 -25
- package/dist/affordances/highlight.d.ts +0 -3
- package/dist/affordances/prefill.d.ts +0 -14
- package/dist/components/activity-rail.d.ts +0 -12
- package/dist/components/activity-shelf.d.ts +0 -7
- package/dist/components/agent-identity-mark.d.ts +0 -7
- package/dist/components/appearance-context.d.ts +0 -14
- package/dist/components/approval-card.d.ts +0 -7
- package/dist/components/assistant-palette-body.d.ts +0 -3
- package/dist/components/assistant-transcript.d.ts +0 -47
- package/dist/components/attachment-chips.d.ts +0 -4
- package/dist/components/child-transcript.d.ts +0 -22
- package/dist/components/companion-drawer-body.d.ts +0 -1
- package/dist/components/companion-drawer.d.ts +0 -10
- package/dist/components/companion-header-disclosure.d.ts +0 -20
- package/dist/components/companion-history-menu.d.ts +0 -15
- package/dist/components/companion-mark-image.d.ts +0 -3
- package/dist/components/companion-mark-image.js +0 -18
- package/dist/components/companion-mark.d.ts +0 -1
- package/dist/components/companion-mode-menu.d.ts +0 -15
- package/dist/components/composer-attachment-chip.d.ts +0 -7
- package/dist/components/composer-banner.d.ts +0 -4
- package/dist/components/composer.d.ts +0 -4
- package/dist/components/conversation-gate-card.d.ts +0 -8
- package/dist/components/conversation-surfaces-provider.d.ts +0 -6
- package/dist/components/copy-text-button.d.ts +0 -5
- package/dist/components/elicitation-receipt-row.d.ts +0 -4
- package/dist/components/human-file-size.d.ts +0 -1
- package/dist/components/icons.d.ts +0 -15
- package/dist/components/lazy-body.d.ts +0 -4
- package/dist/components/markdown/assistant-markdown.d.ts +0 -3
- package/dist/components/markdown/code-block.d.ts +0 -4
- package/dist/components/markdown/highlight.d.ts +0 -1
- package/dist/components/markdown/markdown-structure.d.ts +0 -16
- package/dist/components/markdown/memoized-blocks.d.ts +0 -6
- package/dist/components/markdown/paced-assistant-markdown.d.ts +0 -4
- package/dist/components/markdown/reveal-pacer.d.ts +0 -20
- package/dist/components/markdown/shiki-highlighter.d.ts +0 -1
- package/dist/components/markdown/streaming-repair.d.ts +0 -1
- package/dist/components/markdown/use-highlighted-html.d.ts +0 -1
- package/dist/components/markdown/use-paced-reveal.d.ts +0 -5
- package/dist/components/memory-updated-footer.d.ts +0 -4
- package/dist/components/message-list-row.d.ts +0 -13
- package/dist/components/message-list-slots.d.ts +0 -25
- package/dist/components/message-list-slots.js +0 -1
- package/dist/components/message-list.d.ts +0 -23
- package/dist/components/model-picker-chip.d.ts +0 -1
- package/dist/components/model-picker-effort.d.ts +0 -4
- package/dist/components/model-picker-panels.d.ts +0 -22
- package/dist/components/notice-banner.d.ts +0 -8
- package/dist/components/operation-icons.d.ts +0 -19
- package/dist/components/pretty-print.d.ts +0 -1
- package/dist/components/primitives/autofocus.d.ts +0 -1
- package/dist/components/primitives/button.d.ts +0 -10
- package/dist/components/primitives/cx.d.ts +0 -1
- package/dist/components/primitives/dialog.d.ts +0 -7
- package/dist/components/primitives/disclosure.d.ts +0 -22
- package/dist/components/primitives/file-input.d.ts +0 -5
- package/dist/components/primitives/floating-panel.d.ts +0 -15
- package/dist/components/primitives/kbd.d.ts +0 -2
- package/dist/components/primitives/sheet.d.ts +0 -11
- package/dist/components/primitives/sheet.js +0 -18
- package/dist/components/primitives/textarea.d.ts +0 -7
- package/dist/components/primitives/use-dock-reflow.d.ts +0 -2
- package/dist/components/primitives/use-swipe-dismiss.d.ts +0 -17
- package/dist/components/provider-chip.d.ts +0 -8
- package/dist/components/question-panel-answers.d.ts +0 -29
- package/dist/components/question-panel-footer.d.ts +0 -9
- package/dist/components/question-panel.d.ts +0 -4
- package/dist/components/reasoning-row.d.ts +0 -4
- package/dist/components/receipt-rows.d.ts +0 -3
- package/dist/components/run-status-announcer.d.ts +0 -5
- package/dist/components/scroll-follow-guards.d.ts +0 -1
- package/dist/components/served-suggestions.d.ts +0 -3
- package/dist/components/slot-boundary.d.ts +0 -11
- package/dist/components/standing-poll.d.ts +0 -1
- package/dist/components/streaming-states.d.ts +0 -12
- package/dist/components/subagent-count-pill.d.ts +0 -8
- package/dist/components/subagent-current-work.d.ts +0 -6
- package/dist/components/subagent-delegation-surface.d.ts +0 -9
- package/dist/components/subagent-delivery-divider.d.ts +0 -5
- package/dist/components/subagent-drill-in.d.ts +0 -8
- package/dist/components/subagent-execution-work.d.ts +0 -3
- package/dist/components/subagent-group-row.d.ts +0 -26
- package/dist/components/subagent-preview-popover.d.ts +0 -8
- package/dist/components/subscription-connect-arms.d.ts +0 -25
- package/dist/components/subscription-connect-flow.d.ts +0 -60
- package/dist/components/subscription-connected-standing.d.ts +0 -16
- package/dist/components/subscription-plan-notice.d.ts +0 -1
- package/dist/components/subscription-recheck.d.ts +0 -10
- package/dist/components/surface-boundary.d.ts +0 -8
- package/dist/components/suspension-surfaces.d.ts +0 -3
- package/dist/components/thread-list.d.ts +0 -16
- package/dist/components/tool-arguments-summary.d.ts +0 -2
- package/dist/components/tool-call-rows.d.ts +0 -10
- package/dist/components/tool-row.d.ts +0 -7
- package/dist/components/tool-view-registry-context.d.ts +0 -3
- package/dist/components/tool-view-slot.d.ts +0 -11
- package/dist/components/tool-views/action-view.d.ts +0 -1
- package/dist/components/tool-views/command-view.d.ts +0 -1
- package/dist/components/tool-views/docs-search-view.d.ts +0 -10
- package/dist/components/tool-views/file-edit-view.d.ts +0 -1
- package/dist/components/tool-views/questions-view.d.ts +0 -1
- package/dist/components/transcript.d.ts +0 -3
- package/dist/components/use-agent-subscriber.d.ts +0 -3
- package/dist/components/use-agent-subscriber.js +0 -13
- package/dist/components/use-answer-list-fold.d.ts +0 -6
- package/dist/components/use-assistant-surface-presence.d.ts +0 -2
- package/dist/components/use-child-replay-stream.d.ts +0 -20
- package/dist/components/use-latest-ref.d.ts +0 -2
- package/dist/components/use-member-toggle-outrank.d.ts +0 -6
- package/dist/components/use-perch-clearance.d.ts +0 -2
- package/dist/components/use-question-panel-keys.d.ts +0 -32
- package/dist/components/use-register-assistant-surface.d.ts +0 -2
- package/dist/components/use-resolved-theme-mode.d.ts +0 -3
- package/dist/components/use-roster-disclosure.d.ts +0 -20
- package/dist/components/use-roster-preview.d.ts +0 -24
- package/dist/components/use-thread-dispatches.d.ts +0 -8
- package/dist/components/use-transcript-folds.d.ts +0 -26
- package/dist/components/user-message.d.ts +0 -6
- package/dist/contract/actions-adapter.js +0 -1
- package/dist/contract/assistant-config.js +0 -1
- package/dist/contract/dispatches.d.ts +0 -15
- package/dist/contract/errors.js +0 -1
- package/dist/contract/identity.js +0 -1
- package/dist/core/activity-title.d.ts +0 -1
- package/dist/core/agent-identity.d.ts +0 -2
- package/dist/core/approval-decision.d.ts +0 -6
- package/dist/core/approval-resolved.d.ts +0 -7
- package/dist/core/assistant-prose.d.ts +0 -2
- package/dist/core/assistant-session-registry.d.ts +0 -51
- package/dist/core/attachment-uploads.d.ts +0 -5
- package/dist/core/block-timing-anchors.d.ts +0 -5
- package/dist/core/companion-drawer-flag.d.ts +0 -4
- package/dist/core/companion-presence.d.ts +0 -7
- package/dist/core/composer-input-state.d.ts +0 -8
- package/dist/core/connection-driver.d.ts +0 -3
- package/dist/core/conversation-adoption.d.ts +0 -13
- package/dist/core/conversation-contract.js +0 -1
- package/dist/core/conversation-publish.d.ts +0 -8
- package/dist/core/conversation-refresh.d.ts +0 -4
- package/dist/core/conversation-send.d.ts +0 -6
- package/dist/core/disposable-subscriber.d.ts +0 -6
- package/dist/core/disposable-subscriber.js +0 -18
- package/dist/core/dock-reflow.d.ts +0 -5
- package/dist/core/elicitation-answers.d.ts +0 -7
- package/dist/core/epoch-sync.d.ts +0 -12
- package/dist/core/error-copy.d.ts +0 -3
- package/dist/core/execution-driver.d.ts +0 -37
- package/dist/core/host-fill.d.ts +0 -1
- package/dist/core/hotkey.d.ts +0 -18
- package/dist/core/identity-pair.d.ts +0 -14
- package/dist/core/idle-recheck.d.ts +0 -3
- package/dist/core/messages-cell.d.ts +0 -11
- package/dist/core/perch-clearance.d.ts +0 -19
- package/dist/core/question-receipt.d.ts +0 -11
- package/dist/core/reasoning-copy.d.ts +0 -2
- package/dist/core/run-folds.d.ts +0 -43
- package/dist/core/run-status.d.ts +0 -4
- package/dist/core/settle-refresh.d.ts +0 -9
- package/dist/core/step-caption.d.ts +0 -2
- package/dist/core/stop-copy.d.ts +0 -1
- package/dist/core/stop-settle.d.ts +0 -5
- package/dist/core/stream-trouble.d.ts +0 -5
- package/dist/core/subagent-brief.d.ts +0 -3
- package/dist/core/subagent-presence.d.ts +0 -10
- package/dist/core/subagent-roster.d.ts +0 -35
- package/dist/core/surface-registry.d.ts +0 -16
- package/dist/core/suspension-queue.d.ts +0 -14
- package/dist/core/tail-slot-pool.d.ts +0 -13
- package/dist/core/time-labels.d.ts +0 -7
- package/dist/core/tool-call-display-anchors.d.ts +0 -11
- package/dist/core/tool-cancel-anchors.d.ts +0 -5
- package/dist/core/tool-decision-anchors.d.ts +0 -6
- package/dist/core/tool-error-anchors.d.ts +0 -5
- package/dist/core/tool-flag-anchors.d.ts +0 -9
- package/dist/core/tool-offload-anchors.d.ts +0 -5
- package/dist/core/tool-outcome.d.ts +0 -9
- package/dist/core/tool-refusal-anchors.d.ts +0 -5
- package/dist/core/tool-result-envelope.d.ts +0 -3
- package/dist/core/tool-sentence-anchors.d.ts +0 -11
- package/dist/core/transcript-lease.d.ts +0 -2
- package/dist/core/turn-failure-copy.d.ts +0 -4
- package/dist/core/turns-backfill.d.ts +0 -14
- package/dist/core/wire-sentence-cap.d.ts +0 -1
- package/dist/generated/serving.d.ts +0 -38
- package/dist/markdown.d.ts +0 -4
- package/dist/markdown.js +0 -4
- package/dist/persistence/execution-ledger.d.ts +0 -7
- package/dist/persistence/panel-mode.d.ts +0 -6
- package/dist/persistence/plan-notice.d.ts +0 -3
- package/dist/reader/accessible-name.d.ts +0 -3
- package/dist/reader/interactivity.d.ts +0 -11
- package/dist/reader/layout-probe.d.ts +0 -29
- package/dist/reader/line-diff.d.ts +0 -1
- package/dist/reader/read-page.d.ts +0 -12
- package/dist/reader/redaction.d.ts +0 -3
- package/dist/reader/render.d.ts +0 -3
- package/dist/reader/roles.d.ts +0 -8
- package/dist/reader/snapshot-compaction.d.ts +0 -5
- package/dist/reader/snapshot-node.d.ts +0 -4
- package/dist/reader/snapshot-root.d.ts +0 -15
- package/dist/reader/snapshot.d.ts +0 -60
- package/dist/reader/visibility.d.ts +0 -8
- package/dist/scroll.d.ts +0 -1
- package/dist/scroll.js +0 -1
- package/dist/transcript-ui.d.ts +0 -15
- package/dist/transcript-ui.js +0 -8
- package/dist/transcript.d.ts +0 -43
- package/dist/transcript.js +0 -38
- package/dist/transport/actions-adapter.d.ts +0 -4
- package/dist/transport/door-budget.d.ts +0 -4
- package/dist/transport/serving-api.d.ts +0 -33
- package/dist/transport/serving-fetch.d.ts +0 -11
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
interface TfSheetProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onOpenChange: (open: boolean) => void;
|
|
5
|
-
side: "left" | "right";
|
|
6
|
-
"aria-label": string;
|
|
7
|
-
className?: string;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare function TfSheet({ open, onOpenChange, side, className, children, ...props }: TfSheetProps): import("react").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useCallback } from "react";
|
|
4
|
-
import { cx } from "./cx.js";
|
|
5
|
-
import { TfDialog } from "./dialog.js";
|
|
6
|
-
import { useSwipeDismiss } from "./use-swipe-dismiss.js";
|
|
7
|
-
export function TfSheet({ open, onOpenChange, side, className, children, ...props }) {
|
|
8
|
-
const dismiss = useCallback(() => {
|
|
9
|
-
onOpenChange(false);
|
|
10
|
-
}, [onOpenChange]);
|
|
11
|
-
const swipe = useSwipeDismiss({
|
|
12
|
-
axis: "x",
|
|
13
|
-
direction: side === "left" ? -1 : 1,
|
|
14
|
-
open,
|
|
15
|
-
onDismiss: dismiss,
|
|
16
|
-
});
|
|
17
|
-
return (_jsx(TfDialog, { open: open, onOpenChange: onOpenChange, "data-tf-sheet": side, "data-tf-glass": "", onPointerDown: swipe.onPointerDown, onPointerMove: swipe.onPointerMove, onPointerUp: swipe.onPointerUp, onPointerCancel: swipe.onPointerCancel, onClickCapture: swipe.onClickCapture, className: cx("tf:m-0 tf:h-dvh tf:max-h-dvh tf:w-80 tf:max-w-[calc(100vw-3rem)] tf:flex-col", "tf:overflow-hidden tf:text-tf-foreground", side === "left" ? "tf:mr-auto" : "tf:ml-auto", className), ...props, children: children }));
|
|
18
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
-
type TfTextareaVariant = "framed" | "bare";
|
|
3
|
-
interface TfTextareaProps extends ComponentPropsWithoutRef<"textarea"> {
|
|
4
|
-
variant?: TfTextareaVariant;
|
|
5
|
-
}
|
|
6
|
-
export declare const TfTextarea: import("react").ForwardRefExoticComponent<TfTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type MouseEvent, type PointerEvent } from "react";
|
|
2
|
-
export interface SwipeDismissOptions {
|
|
3
|
-
axis: "x" | "y";
|
|
4
|
-
direction: 1 | -1;
|
|
5
|
-
open: boolean;
|
|
6
|
-
enabled?: boolean;
|
|
7
|
-
onDismiss: () => void;
|
|
8
|
-
handleSelector?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SwipeDismissHandlers {
|
|
11
|
-
onPointerDown: (event: PointerEvent<HTMLElement>) => void;
|
|
12
|
-
onPointerMove: (event: PointerEvent<HTMLElement>) => void;
|
|
13
|
-
onPointerUp: (event: PointerEvent<HTMLElement>) => void;
|
|
14
|
-
onPointerCancel: (event: PointerEvent<HTMLElement>) => void;
|
|
15
|
-
onClickCapture: (event: MouseEvent<HTMLElement>) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function useSwipeDismiss({ axis, direction, open, enabled, onDismiss, handleSelector, }: SwipeDismissOptions): SwipeDismissHandlers;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionStatus } from "../contract/subscriptions.js";
|
|
2
|
-
export declare function ProviderChipShelf(): import("react").JSX.Element | null;
|
|
3
|
-
export declare function ProviderChip({ statuses, open, onOpenChange, fundingNote, }: {
|
|
4
|
-
statuses: SubscriptionStatus[];
|
|
5
|
-
open: boolean;
|
|
6
|
-
onOpenChange: (open: boolean) => void;
|
|
7
|
-
fundingNote?: string;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { KeyboardEvent, RefObject } from "react";
|
|
2
|
-
import type { QuestionModel } from "../core/elicitation-pickers.js";
|
|
3
|
-
import type { QuestionAnswerDraft } from "../core/question-drafts.js";
|
|
4
|
-
export interface QuestionPanelIds {
|
|
5
|
-
hint: string;
|
|
6
|
-
prompt: string;
|
|
7
|
-
descriptionBase: string;
|
|
8
|
-
custom: string;
|
|
9
|
-
}
|
|
10
|
-
export declare function QuestionPanelAnswers({ question, active, customText, disabled, ids, openDescription, onToggleDescription, overLimitSentence, answersRef, foldBelow, onScroll, rowsRef, customRef, selectOption, activateCustomIfDrafted, setCustomText, optionKeys, customKeys, }: {
|
|
11
|
-
question: QuestionModel;
|
|
12
|
-
active: QuestionAnswerDraft["active"];
|
|
13
|
-
customText: string;
|
|
14
|
-
disabled: boolean;
|
|
15
|
-
ids: QuestionPanelIds;
|
|
16
|
-
openDescription: string | null;
|
|
17
|
-
onToggleDescription: (open: string | null) => void;
|
|
18
|
-
overLimitSentence: string | null;
|
|
19
|
-
answersRef: RefObject<HTMLDivElement | null>;
|
|
20
|
-
foldBelow: boolean;
|
|
21
|
-
onScroll: () => void;
|
|
22
|
-
rowsRef: RefObject<HTMLDivElement | null>;
|
|
23
|
-
customRef: RefObject<HTMLTextAreaElement | null>;
|
|
24
|
-
selectOption: (text: string) => void;
|
|
25
|
-
activateCustomIfDrafted: () => void;
|
|
26
|
-
setCustomText: (text: string) => void;
|
|
27
|
-
optionKeys: (index: number) => (event: KeyboardEvent<HTMLElement>) => void;
|
|
28
|
-
customKeys: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
29
|
-
}): import("react").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { QuestionSetCardModel } from "../core/elicitation-cards.js";
|
|
2
|
-
export declare function QuestionPanelFooter({ card, cursor, gateReason, disabled, submitGated, onProceed, }: {
|
|
3
|
-
card: QuestionSetCardModel;
|
|
4
|
-
cursor: number;
|
|
5
|
-
gateReason: string | null;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
submitGated: boolean;
|
|
8
|
-
onProceed: () => void;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ScrollFollowGuards(): null;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ServedSuggestionsConfig } from "../contract/assistant-config.js";
|
|
2
|
-
import type { AssistantSuggestion } from "./conversation-view.js";
|
|
3
|
-
export declare function servedSuggestionsForPath(config: ServedSuggestionsConfig, pathname: string): readonly AssistantSuggestion[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export declare function HostSlotBoundary({ slot, fallback, children, }: {
|
|
3
|
-
slot: string;
|
|
4
|
-
fallback: ReactNode;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
export declare function SlotOrDefault({ render, fallback, filledAnnex, }: {
|
|
8
|
-
render: () => ReactNode;
|
|
9
|
-
fallback: ReactNode;
|
|
10
|
-
filledAnnex?: ReactNode;
|
|
11
|
-
}): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function pollStanding(refresh: () => void, onExhausted?: () => void): () => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export declare function TypingIndicator(): import("react").JSX.Element;
|
|
3
|
-
export declare function ShimmerText({ children, className, }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
export declare function Spinner({ label, }: {
|
|
8
|
-
label: string;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
10
|
-
export declare function StreamingLine({ children }: {
|
|
11
|
-
children: string;
|
|
12
|
-
}): import("react").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type ThreadDispatch } from "../contract/dispatches.js";
|
|
3
|
-
import { type SubagentRosterEntry } from "../core/subagent-roster.js";
|
|
4
|
-
export declare function SubagentCountPill({ dispatches, threadId, renderPreview, }: {
|
|
5
|
-
dispatches: ReadonlyMap<number, ThreadDispatch>;
|
|
6
|
-
threadId?: string;
|
|
7
|
-
renderPreview?: (entry: SubagentRosterEntry) => ReactNode;
|
|
8
|
-
}): import("react").JSX.Element | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ToolCallViewModel } from "../core/tool-call-display.js";
|
|
2
|
-
export declare const SubagentCurrentWorkContext: import("react").Context<ReadonlyMap<string, ToolCallViewModel>>;
|
|
3
|
-
export type SubagentCurrentWorkPublisher = (childSessionId: string, view: ToolCallViewModel | null) => void;
|
|
4
|
-
export declare const SubagentCurrentWorkPublisherContext: import("react").Context<SubagentCurrentWorkPublisher>;
|
|
5
|
-
export declare function useSubagentCurrentWork(): ReadonlyMap<string, ToolCallViewModel>;
|
|
6
|
-
export declare function useSubagentCurrentWorkPublisher(): SubagentCurrentWorkPublisher;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import type { ThreadDispatch } from "../contract/dispatches.js";
|
|
3
|
-
export declare function focusIfRestorable(opener: HTMLElement | null): void;
|
|
4
|
-
export declare function SubagentDelegationSurface({ dispatches, threadId, renderPreview, children, }: {
|
|
5
|
-
dispatches: ReadonlyMap<number, ThreadDispatch>;
|
|
6
|
-
threadId: string | undefined;
|
|
7
|
-
renderPreview?: (childSessionId: string, variantIndex?: number) => ReactNode;
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
}): import("react").JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DeliveredResult } from "../core/subagent-delivery-anchors.js";
|
|
2
|
-
export declare function deliveryDividerLabelOf(results: readonly DeliveredResult[]): string;
|
|
3
|
-
export declare function SubagentDeliveryDivider({ results, }: {
|
|
4
|
-
results: readonly DeliveredResult[];
|
|
5
|
-
}): import("react").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface SubagentDrillIn {
|
|
2
|
-
open: (childSessionId: string, opener: HTMLElement | null) => void;
|
|
3
|
-
dismiss: () => void;
|
|
4
|
-
openChildSessionId: string | null;
|
|
5
|
-
previewId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const SubagentDrillInContext: import("react").Context<SubagentDrillIn | null>;
|
|
8
|
-
export declare function useSubagentDrillIn(): SubagentDrillIn | null;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CoworkerExecutionWork } from "../core/coworker-execution-work.js";
|
|
2
|
-
export declare const SubagentExecutionWorkContext: import("react").Context<ReadonlyMap<number, CoworkerExecutionWork>>;
|
|
3
|
-
export declare function useSubagentExecutionWork(): ReadonlyMap<number, CoworkerExecutionWork>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type ThreadDispatch } from "../contract/dispatches.js";
|
|
2
|
-
import { type SubagentGroupEntry, type SubagentGroupRow as SubagentGroupRowModel } from "../core/subagent-rows.js";
|
|
3
|
-
import type { CoworkerExecutionWork } from "../core/coworker-execution-work.js";
|
|
4
|
-
export interface SubagentDispatchesJoin {
|
|
5
|
-
byOrdinal: ReadonlyMap<number, ThreadDispatch>;
|
|
6
|
-
}
|
|
7
|
-
export declare const SubagentDispatchesContext: import("react").Context<SubagentDispatchesJoin>;
|
|
8
|
-
export interface ResolvedSubagentEntry {
|
|
9
|
-
toolCallId: string;
|
|
10
|
-
label: string | null;
|
|
11
|
-
running: boolean;
|
|
12
|
-
failed: boolean;
|
|
13
|
-
cancelled: boolean;
|
|
14
|
-
note: string | null;
|
|
15
|
-
childSessionId: string | null;
|
|
16
|
-
identityToken: string | null;
|
|
17
|
-
ordinal: number | null;
|
|
18
|
-
paused: boolean;
|
|
19
|
-
startedAt: string | null;
|
|
20
|
-
settledAt: string | null;
|
|
21
|
-
}
|
|
22
|
-
export declare function resolvedSubagentEntryOf(entry: SubagentGroupEntry, byOrdinal: ReadonlyMap<number, ThreadDispatch>): ResolvedSubagentEntry;
|
|
23
|
-
export declare function SubagentGroupRow({ row }: {
|
|
24
|
-
row: SubagentGroupRowModel;
|
|
25
|
-
}): import("react").JSX.Element;
|
|
26
|
-
export declare function coworkerWorkLabelOf(work: CoworkerExecutionWork | undefined, paused: boolean): string | null;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode, type RefObject } from "react";
|
|
2
|
-
export declare function SubagentPreviewPopover({ id, anchorRef, previewRef, label, children, }: {
|
|
3
|
-
id: string;
|
|
4
|
-
anchorRef: RefObject<HTMLElement | null>;
|
|
5
|
-
previewRef: RefObject<HTMLDivElement | null>;
|
|
6
|
-
label: string;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionAuthorization, SubscriptionProvider } from "../contract/subscriptions.js";
|
|
2
|
-
import { type TfButtonVariant } from "./primitives/button.js";
|
|
3
|
-
export declare const NOT_CONNECTED_HEADLINE = "Didn't connect.";
|
|
4
|
-
export declare function notConnectedExplanationOf(name: string): string;
|
|
5
|
-
export declare function planLimitSentenceOf(name: string): string;
|
|
6
|
-
export declare function notEligibleSentenceOf(name: string): string;
|
|
7
|
-
export declare function checkingPlanSentenceOf(name: string): string;
|
|
8
|
-
export declare function manageUsageUrlOf(provider: SubscriptionProvider): string | null;
|
|
9
|
-
export declare function ManageUsageLink({ provider, variant, }: {
|
|
10
|
-
provider: SubscriptionProvider;
|
|
11
|
-
variant?: TfButtonVariant;
|
|
12
|
-
}): import("react").JSX.Element | null;
|
|
13
|
-
export declare function HeartbeatLine({ sentence, tone, }: {
|
|
14
|
-
sentence: string;
|
|
15
|
-
tone?: "muted" | "foreground";
|
|
16
|
-
}): import("react").JSX.Element;
|
|
17
|
-
export declare function PopupBlocked({ authorization, onCancel, onTabOpened, }: {
|
|
18
|
-
authorization: SubscriptionAuthorization;
|
|
19
|
-
onCancel: () => void;
|
|
20
|
-
onTabOpened: () => void;
|
|
21
|
-
}): import("react").JSX.Element;
|
|
22
|
-
export declare function NotConnected({ name, onBegin, }: {
|
|
23
|
-
name: string;
|
|
24
|
-
onBegin: () => void;
|
|
25
|
-
}): import("react").JSX.Element;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { type SubscriptionAuthorization, type SubscriptionProvider, type SubscriptionStatus } from "../contract/subscriptions.js";
|
|
2
|
-
import type { TokenSession } from "../transport/token-session.js";
|
|
3
|
-
export declare function providerNameOf(provider: SubscriptionProvider): string;
|
|
4
|
-
export declare const DISCLOSURE_LINE = "Conversations here will use your ChatGPT plan's included usage.";
|
|
5
|
-
type ConnectFlowState = {
|
|
6
|
-
kind: "idle";
|
|
7
|
-
} | {
|
|
8
|
-
kind: "starting";
|
|
9
|
-
} | {
|
|
10
|
-
kind: "in_popup";
|
|
11
|
-
popup: Window;
|
|
12
|
-
expiresAt: number;
|
|
13
|
-
} | {
|
|
14
|
-
kind: "popup_blocked";
|
|
15
|
-
authorization: SubscriptionAuthorization;
|
|
16
|
-
expiresAt: number;
|
|
17
|
-
tabOpened: boolean;
|
|
18
|
-
} | {
|
|
19
|
-
kind: "completing";
|
|
20
|
-
} | {
|
|
21
|
-
kind: "checking";
|
|
22
|
-
before: SubscriptionStatus;
|
|
23
|
-
} | {
|
|
24
|
-
kind: "landed";
|
|
25
|
-
before: SubscriptionStatus;
|
|
26
|
-
} | {
|
|
27
|
-
kind: "removed";
|
|
28
|
-
before: SubscriptionStatus;
|
|
29
|
-
} | {
|
|
30
|
-
kind: "not_connected";
|
|
31
|
-
} | {
|
|
32
|
-
kind: "error";
|
|
33
|
-
sentence: string;
|
|
34
|
-
};
|
|
35
|
-
interface SubscriptionConnectFlow {
|
|
36
|
-
flow: ConnectFlowState;
|
|
37
|
-
flowInProgress: boolean;
|
|
38
|
-
errorSentence: string | null;
|
|
39
|
-
begin: () => void;
|
|
40
|
-
disconnect: () => void;
|
|
41
|
-
cancel: () => void;
|
|
42
|
-
noteTabOpened: () => void;
|
|
43
|
-
}
|
|
44
|
-
export declare function useSubscriptionConnectFlow(status: SubscriptionStatus, session: TokenSession, refreshSubscriptions: () => void, noteSignedIn: () => void): SubscriptionConnectFlow;
|
|
45
|
-
export declare function ProviderConnectSection({ status, session, refreshSubscriptions, refreshStandingAndGate, onSignedIn, }: {
|
|
46
|
-
status: SubscriptionStatus;
|
|
47
|
-
session: TokenSession;
|
|
48
|
-
refreshSubscriptions: () => void;
|
|
49
|
-
refreshStandingAndGate: () => void;
|
|
50
|
-
onSignedIn: () => void;
|
|
51
|
-
}): import("react").JSX.Element;
|
|
52
|
-
export declare function ConnectFlow({ name, flow, errorSentence, onBegin, onCancel, onTabOpened, }: {
|
|
53
|
-
name: string;
|
|
54
|
-
flow: ConnectFlowState;
|
|
55
|
-
errorSentence: string | null;
|
|
56
|
-
onBegin: () => void;
|
|
57
|
-
onCancel: () => void;
|
|
58
|
-
onTabOpened: () => void;
|
|
59
|
-
}): import("react").JSX.Element;
|
|
60
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionStatus } from "../contract/subscriptions.js";
|
|
2
|
-
interface ConnectOutcome {
|
|
3
|
-
headline: string;
|
|
4
|
-
detail: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function ConnectedStanding({ name, status, errorSentence, outcome, rechecking, onRecheck, onReconnect, onDisconnect, }: {
|
|
7
|
-
name: string;
|
|
8
|
-
status: SubscriptionStatus;
|
|
9
|
-
errorSentence: string | null;
|
|
10
|
-
outcome: ConnectOutcome | null;
|
|
11
|
-
rechecking: boolean;
|
|
12
|
-
onRecheck: () => void;
|
|
13
|
-
onReconnect: () => void;
|
|
14
|
-
onDisconnect: () => void;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function SubscriptionPlanNotice(): import("react").JSX.Element | null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SubscriptionStatus } from "../contract/subscriptions.js";
|
|
2
|
-
import type { TokenSession } from "../transport/token-session.js";
|
|
3
|
-
interface SubscriptionRecheckControl {
|
|
4
|
-
rechecking: boolean;
|
|
5
|
-
errorSentence: string | null;
|
|
6
|
-
recheck: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useRefreshStandingAndGate(): () => void;
|
|
9
|
-
export declare function useSubscriptionRecheck(status: SubscriptionStatus | null, session: TokenSession, refresh: () => void): SubscriptionRecheckControl;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export declare function SurfaceBoundary({ surface, shelfItem, degrade, onError, children, }: {
|
|
3
|
-
surface: string;
|
|
4
|
-
shelfItem?: boolean;
|
|
5
|
-
degrade?: "card" | "silent";
|
|
6
|
-
onError?: (error: Error) => void;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ServingAssistantThread } from "../contract/threads.js";
|
|
2
|
-
export interface ThreadGroup {
|
|
3
|
-
label: string;
|
|
4
|
-
threads: ServingAssistantThread[];
|
|
5
|
-
}
|
|
6
|
-
export declare function groupThreadsByRecency(threads: readonly ServingAssistantThread[], now: Date): ThreadGroup[];
|
|
7
|
-
interface ThreadHistoryProps {
|
|
8
|
-
threads: ServingAssistantThread[];
|
|
9
|
-
activeThreadId: string | null;
|
|
10
|
-
onSelectThread: (thread: ServingAssistantThread) => void;
|
|
11
|
-
onNewConversation: () => void;
|
|
12
|
-
touch?: boolean;
|
|
13
|
-
safeAreaBottom?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function ThreadHistory({ threads, activeThreadId, onSelectThread, onNewConversation, touch, safeAreaBottom, }: ThreadHistoryProps): import("react").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ApprovalCardModel } from "../core/approval-inbox.js";
|
|
2
|
-
import type { ToolCallRow } from "../core/transcript-rows.js";
|
|
3
|
-
import type { ToolRowSlot } from "./message-list-slots.js";
|
|
4
|
-
export declare function ToolCallRows({ row, cards, inCurrentTurn, decisionSurfacesInShelf, toolRow, }: {
|
|
5
|
-
row: ToolCallRow;
|
|
6
|
-
cards: readonly ApprovalCardModel[];
|
|
7
|
-
inCurrentTurn?: boolean;
|
|
8
|
-
decisionSurfacesInShelf?: boolean;
|
|
9
|
-
toolRow?: ToolRowSlot;
|
|
10
|
-
}): import("react").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ToolCallViewModel } from "../core/tool-call-display.js";
|
|
2
|
-
export declare function ToolRow({ view, awaitingInput, decisionBearing, inCurrentTurn, }: {
|
|
3
|
-
view: ToolCallViewModel;
|
|
4
|
-
awaitingInput?: boolean;
|
|
5
|
-
decisionBearing?: boolean;
|
|
6
|
-
inCurrentTurn?: boolean;
|
|
7
|
-
}): import("react").JSX.Element;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ToolViewRegistry } from "../core/tool-view.js";
|
|
2
|
-
export declare const ToolViewRegistryContext: import("react").Context<Readonly<Record<string, import("../headless.js").ToolViewRegistration>> | null>;
|
|
3
|
-
export declare function useToolViewRegistry(): ToolViewRegistry | undefined;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ResolvedToolView, ResolvedToolViewIcon, ToolViewCall } from "../core/tool-view.js";
|
|
2
|
-
import type { ToolCallIcon } from "../core/tool-call-presentation.js";
|
|
3
|
-
export declare function ToolViewSlot({ views, call, }: {
|
|
4
|
-
views: readonly ResolvedToolView[];
|
|
5
|
-
call: ToolViewCall;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
export declare function ToolViewIconSlot({ icons, call, icon, }: {
|
|
8
|
-
icons: readonly ResolvedToolViewIcon[];
|
|
9
|
-
call: ToolViewCall;
|
|
10
|
-
icon: ToolCallIcon;
|
|
11
|
-
}): import("react").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const actionToolView: import("../../headless.js").ToolViewAdapter<Record<string, unknown>, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const commandToolView: import("../../headless.js").ToolViewAdapter<Record<string, unknown>, unknown>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface DocsSearchHit {
|
|
2
|
-
slug: string;
|
|
3
|
-
anchor: string;
|
|
4
|
-
title: string;
|
|
5
|
-
heading: string | null;
|
|
6
|
-
facts: string | null;
|
|
7
|
-
content: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const docsSearchToolView: import("../../headless.js").ToolViewAdapter<Record<string, unknown>, unknown>;
|
|
10
|
-
export declare function docsSearchHitsOf(resultText: string): DocsSearchHit[] | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fileEditToolView: import("../../headless.js").ToolViewAdapter<Record<string, unknown>, unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const questionsToolView: import("../../headless.js").ToolViewAdapter<Record<string, unknown>, unknown>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AbstractAgent, AgentSubscriber } from "@ag-ui/client";
|
|
2
|
-
import type { DisposableAgentSubscriber } from "../core/disposable-subscriber.js";
|
|
3
|
-
export declare function useAgentSubscriber(agent: Pick<AbstractAgent, "subscribe">, subscriberOf: () => AgentSubscriber | DisposableAgentSubscriber): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
export function useAgentSubscriber(agent, subscriberOf) {
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const made = subscriberOf();
|
|
6
|
-
const { subscriber, dispose } = "subscriber" in made ? made : { subscriber: made, dispose: undefined };
|
|
7
|
-
const subscription = agent.subscribe(subscriber);
|
|
8
|
-
return () => {
|
|
9
|
-
dispose?.();
|
|
10
|
-
subscription.unsubscribe();
|
|
11
|
-
};
|
|
12
|
-
}, [agent, subscriberOf]);
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Message } from "@ag-ui/core";
|
|
2
|
-
import { type ThreadDispatch } from "../contract/dispatches.js";
|
|
3
|
-
import type { MarkerAnchorsSnapshot } from "../core/connection-epoch.js";
|
|
4
|
-
import type { TokenSession } from "../transport/token-session.js";
|
|
5
|
-
type ChildStreamEnd = "open" | "clean" | "error";
|
|
6
|
-
interface ChildReplayStream {
|
|
7
|
-
messages: readonly Message[];
|
|
8
|
-
streamEnd: ChildStreamEnd;
|
|
9
|
-
tailed: boolean;
|
|
10
|
-
slotDenied: boolean;
|
|
11
|
-
anchors: MarkerAnchorsSnapshot;
|
|
12
|
-
retry: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function useChildReplayStream({ session, threadId, childSessionId, refreshLedger, }: {
|
|
15
|
-
session: TokenSession;
|
|
16
|
-
threadId: string;
|
|
17
|
-
childSessionId: string;
|
|
18
|
-
refreshLedger: () => Promise<ThreadDispatch | undefined>;
|
|
19
|
-
}): ChildReplayStream;
|
|
20
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type KeyboardEvent, type RefObject } from "react";
|
|
2
|
-
import type { QuestionSetCardModel } from "../core/elicitation-cards.js";
|
|
3
|
-
import type { QuestionModel } from "../core/elicitation-pickers.js";
|
|
4
|
-
import { type QuestionAnswerDraft, type QuestionDraftStore } from "../core/question-drafts.js";
|
|
5
|
-
import type { ElicitationSurface } from "./elicitation-context.js";
|
|
6
|
-
type ActiveChoice = QuestionAnswerDraft["active"];
|
|
7
|
-
interface QuestionPanelKeysInput {
|
|
8
|
-
card: QuestionSetCardModel;
|
|
9
|
-
drafts: QuestionDraftStore;
|
|
10
|
-
submitQuestionAnswers: ElicitationSurface["submitQuestionAnswers"];
|
|
11
|
-
cursor: number;
|
|
12
|
-
question: QuestionModel;
|
|
13
|
-
active: ActiveChoice;
|
|
14
|
-
customText: string;
|
|
15
|
-
answerable: boolean;
|
|
16
|
-
closeDescription: () => void;
|
|
17
|
-
}
|
|
18
|
-
interface ActiveChoiceWriters {
|
|
19
|
-
selectOption: (text: string) => void;
|
|
20
|
-
activateCustomIfDrafted: () => void;
|
|
21
|
-
setCustomText: (text: string) => void;
|
|
22
|
-
}
|
|
23
|
-
interface QuestionPanelKeys extends ActiveChoiceWriters {
|
|
24
|
-
rowsRef: RefObject<HTMLDivElement | null>;
|
|
25
|
-
customRef: RefObject<HTMLTextAreaElement | null>;
|
|
26
|
-
goTo: (next: number) => void;
|
|
27
|
-
proceed: () => void;
|
|
28
|
-
optionKeys: (index: number) => (event: KeyboardEvent<HTMLElement>) => void;
|
|
29
|
-
customKeys: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function useQuestionPanelKeys(input: QuestionPanelKeysInput): QuestionPanelKeys;
|
|
32
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
interface RosterDisclosure {
|
|
3
|
-
open: boolean;
|
|
4
|
-
rosterId: string;
|
|
5
|
-
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
6
|
-
wrapperRef: RefObject<HTMLDivElement | null>;
|
|
7
|
-
onWrapperPointerEnter: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
8
|
-
onWrapperPointerLeave: (event: React.PointerEvent<HTMLDivElement>) => void;
|
|
9
|
-
onWrapperBlur: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
10
|
-
onTriggerPointerDown: (event: React.PointerEvent<HTMLButtonElement>) => void;
|
|
11
|
-
onTriggerPointerCancel: () => void;
|
|
12
|
-
onTriggerFocus: () => void;
|
|
13
|
-
onTriggerClick: () => void;
|
|
14
|
-
onTriggerKeyDown: (event: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
15
|
-
close: () => void;
|
|
16
|
-
refocusTrigger: () => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function useRosterDisclosure(): RosterDisclosure;
|
|
19
|
-
export declare function useFloatingDismiss(floatingRef: RefObject<HTMLDivElement | null>, triggerRef: RefObject<HTMLButtonElement | null>, onClose: () => void): void;
|
|
20
|
-
export {};
|