@opengeni/react 0.29.0 → 0.33.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/approvals.d.ts +14 -0
- package/dist/{chunk-M7X4JZOD.js → chunk-4QOQ2DSR.js} +8 -1
- package/dist/chunk-4QOQ2DSR.js.map +1 -0
- package/dist/{chunk-HQFPO7VX.js → chunk-7CJOAW3V.js} +24 -3
- package/dist/{chunk-HQFPO7VX.js.map → chunk-7CJOAW3V.js.map} +1 -1
- package/dist/{chunk-CSJBF3QJ.js → chunk-A2WITZTI.js} +377 -113
- package/dist/chunk-A2WITZTI.js.map +1 -0
- package/dist/{chunk-BC6RKIHS.js → chunk-GZ4KR67U.js} +11 -11
- package/dist/{chunk-AVLMIWYO.js → chunk-KZRUYCL4.js} +12 -6
- package/dist/chunk-KZRUYCL4.js.map +1 -0
- package/dist/{chunk-IPVOVOW6.js → chunk-MS3FBZ6A.js} +2539 -2174
- package/dist/chunk-MS3FBZ6A.js.map +1 -0
- package/dist/{chunk-OKXCECLG.js → chunk-TCCE5ZU5.js} +171 -22
- package/dist/chunk-TCCE5ZU5.js.map +1 -0
- package/dist/chunk-U255M5EZ.js +178 -0
- package/dist/chunk-U255M5EZ.js.map +1 -0
- package/dist/chunk-ZNNE2VES.js +6413 -0
- package/dist/chunk-ZNNE2VES.js.map +1 -0
- package/dist/client.d.ts +33 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/registry.d.ts +41 -0
- package/dist/commands/types.d.ts +85 -0
- package/dist/components/approval-surface.d.ts +28 -0
- package/dist/components/chat-composer.d.ts +51 -0
- package/dist/components/code-editor.d.ts +43 -0
- package/dist/components/command-palette.d.ts +25 -0
- package/dist/components/composer-transcription-control.d.ts +36 -0
- package/dist/components/composer.d.ts +277 -0
- package/dist/components/copy-button.d.ts +26 -0
- package/dist/components/desktop-viewer.d.ts +85 -0
- package/dist/components/diff-view.d.ts +38 -0
- package/dist/components/enrollment-consent.d.ts +33 -0
- package/dist/components/enrollment-device-flow.d.ts +27 -0
- package/dist/components/file-browser.d.ts +47 -0
- package/dist/components/fleet-tile.d.ts +18 -0
- package/dist/components/human-input-form.d.ts +47 -0
- package/dist/components/machine-card.d.ts +21 -0
- package/dist/components/machine-dock-bar.d.ts +31 -0
- package/dist/components/machine-health-pill.d.ts +9 -0
- package/dist/components/machine-metrics.d.ts +15 -0
- package/dist/components/machine-status-pill.d.ts +54 -0
- package/dist/components/machines/health.d.ts +25 -0
- package/dist/components/machines/machine-detail.d.ts +14 -0
- package/dist/components/machines/metric-history-chart.d.ts +24 -0
- package/dist/components/machines/metric-sparkline.d.ts +9 -0
- package/dist/components/machines/series.d.ts +24 -0
- package/dist/components/machines-dashboard.d.ts +30 -0
- package/dist/components/markdown.d.ts +31 -0
- package/dist/components/message-timeline.d.ts +98 -0
- package/dist/components/model-picker.d.ts +19 -0
- package/dist/components/pierre-diff.d.ts +34 -0
- package/dist/components/pierre-file.d.ts +27 -0
- package/dist/components/queue-draft-policy.d.ts +7 -0
- package/dist/components/queue-surface-implementation.d.ts +20 -0
- package/dist/components/queue-surface-state.d.ts +12 -0
- package/dist/components/queue-surface.d.ts +12 -0
- package/dist/components/sandbox-files.d.ts +49 -0
- package/dist/components/sandbox-terminal.d.ts +123 -0
- package/dist/components/sandbox-workspace.d.ts +128 -0
- package/dist/components/session-chrome.d.ts +70 -0
- package/dist/components/session-status.d.ts +25 -0
- package/dist/components/soften-streaming-markdown.d.ts +13 -0
- package/dist/components/stream-reveal.d.ts +37 -0
- package/dist/components/tip-follow.d.ts +139 -0
- package/dist/components/tooltip.d.ts +16 -0
- package/dist/components/workbench-changes.d.ts +34 -0
- package/dist/components/workspace-dock.d.ts +35 -0
- package/dist/composer.d.ts +11 -7
- package/dist/composer.js +9 -6
- package/dist/hooks/internal.d.ts +46 -0
- package/dist/hooks/use-available-models.d.ts +37 -0
- package/dist/hooks/use-billing-usage.d.ts +26 -0
- package/dist/hooks/use-codex-accounts.d.ts +69 -0
- package/dist/{use-composer-ClHy1rkL.d.ts → hooks/use-composer.d.ts} +16 -24
- package/dist/hooks/use-desktop-stream.d.ts +43 -0
- package/dist/hooks/use-environments.d.ts +35 -0
- package/dist/{use-file-attachments-BmT8WtqO.d.ts → hooks/use-file-attachments.d.ts} +6 -9
- package/dist/hooks/use-goal.d.ts +46 -0
- package/dist/hooks/use-human-input.d.ts +26 -0
- package/dist/hooks/use-last-started-turn-policy.d.ts +27 -0
- package/dist/hooks/use-machine-chip.d.ts +54 -0
- package/dist/hooks/use-machines.d.ts +81 -0
- package/dist/hooks/use-packs.d.ts +27 -0
- package/dist/hooks/use-relay-frame-stream.d.ts +53 -0
- package/dist/hooks/use-rigs.d.ts +87 -0
- package/dist/hooks/use-sandbox-files.d.ts +108 -0
- package/dist/hooks/use-sandbox-git.d.ts +58 -0
- package/dist/hooks/use-sandbox-terminal.d.ts +62 -0
- package/dist/hooks/use-scheduled-tasks.d.ts +15 -0
- package/dist/hooks/use-session-capabilities.d.ts +83 -0
- package/dist/hooks/use-session-control.d.ts +22 -0
- package/dist/hooks/use-session-events.d.ts +92 -0
- package/dist/hooks/use-session-lineage.d.ts +17 -0
- package/dist/hooks/use-session-mcp-approval-policy.d.ts +23 -0
- package/dist/hooks/use-session.d.ts +23 -0
- package/dist/hooks/use-slash-commands.d.ts +66 -0
- package/dist/hooks/use-terminal-stream.d.ts +46 -0
- package/dist/hooks/use-transcription.d.ts +73 -0
- package/dist/hooks/use-turn-queue.d.ts +44 -0
- package/dist/hooks/use-voice-input.d.ts +25 -0
- package/dist/hooks/use-windowed-sections.d.ts +42 -0
- package/dist/hooks/use-workspace-capture.d.ts +49 -0
- package/dist/hooks/use-workspace-edit.d.ts +73 -0
- package/dist/hooks/use-workspace-sessions.d.ts +30 -0
- package/dist/hooks/use-workspaces.d.ts +22 -0
- package/dist/human-input.d.ts +18 -0
- package/dist/index.d.ts +144 -2119
- package/dist/index.js +421 -324
- package/dist/index.js.map +1 -1
- package/dist/lib/clipboard.d.ts +7 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/lib/format.d.ts +48 -0
- package/dist/lib/git-patch.d.ts +8 -0
- package/dist/lib/motion-inspect.d.ts +5 -0
- package/dist/lib/motion.d.ts +14 -0
- package/dist/lib/noto-sans-arabic-loader.d.ts +1 -0
- package/dist/lib/noto-sans-jp-loader.generated.d.ts +1 -0
- package/dist/lib/relay-wire.d.ts +30 -0
- package/dist/lib/use-portal-token-style.d.ts +9 -0
- package/dist/lib/use-theme-type.d.ts +5 -0
- package/dist/lib/use-unicode-fonts.d.ts +12 -0
- package/dist/lib/xterm-renderer.d.ts +19 -0
- package/dist/lib/xterm-theme.d.ts +75 -0
- package/dist/machines.d.ts +30 -413
- package/dist/machines.js +3 -3
- package/dist/model-policy.d.ts +32 -0
- package/dist/model-policy.js +33 -0
- package/dist/model-policy.js.map +1 -0
- package/dist/provider.d.ts +16 -0
- package/dist/{queue-surface-implementation-UQ535OKQ.js → queue-surface-implementation-THPAKGMD.js} +2 -2
- package/dist/{queue-surface-implementation-UQ535OKQ.js.map → queue-surface-implementation-THPAKGMD.js.map} +1 -1
- package/dist/session-context.d.ts +82 -0
- package/dist/session-ui.d.ts +10 -7
- package/dist/session-ui.js +9 -5
- package/dist/session.d.ts +28 -6
- package/dist/session.js +11 -11
- package/dist/timeline/activity-rail.d.ts +19 -0
- package/dist/timeline/disclosure-context.d.ts +14 -0
- package/dist/timeline/entrance.d.ts +14 -0
- package/dist/timeline/fleet-decision-projection.d.ts +9 -0
- package/dist/timeline/fleet-decision-row.d.ts +11 -0
- package/dist/timeline/fold-memory.d.ts +15 -0
- package/dist/timeline/index.d.ts +18 -0
- package/dist/timeline/parsers.d.ts +96 -0
- package/dist/timeline/projection.d.ts +38 -0
- package/dist/timeline/registry.d.ts +40 -0
- package/dist/timeline/screenshot-lightbox.d.ts +26 -0
- package/dist/timeline/seen-activity-ids.d.ts +2 -0
- package/dist/timeline/shared.d.ts +125 -0
- package/dist/timeline/tool-diff.d.ts +8 -0
- package/dist/timeline/tool-display-name.d.ts +10 -0
- package/dist/timeline/tool-renderers.d.ts +5 -0
- package/dist/timeline/turn-summary.d.ts +116 -0
- package/dist/{use-turn-queue-D_1a8W_l.d.ts → timeline/types.d.ts} +41 -69
- package/dist/types/machines.d.ts +11 -0
- package/package.json +8 -4
- package/src/client.ts +1 -0
- package/src/components/composer-transcription-control.tsx +278 -130
- package/src/components/composer.tsx +20 -15
- package/src/components/copy-button.tsx +127 -0
- package/src/components/markdown.tsx +231 -32
- package/src/components/message-timeline.tsx +1304 -378
- package/src/components/model-picker.tsx +83 -43
- package/src/components/queue-surface-implementation.tsx +1 -1
- package/src/components/session-chrome.tsx +942 -0
- package/src/components/soften-streaming-markdown.ts +205 -0
- package/src/components/stream-reveal.ts +195 -0
- package/src/components/tip-follow.ts +459 -0
- package/src/components/tooltip.tsx +103 -0
- package/src/composer.ts +6 -0
- package/src/hooks/internal.ts +30 -4
- package/src/hooks/use-available-models.ts +51 -4
- package/src/hooks/use-composer.ts +23 -3
- package/src/hooks/use-last-started-turn-policy.ts +95 -0
- package/src/hooks/use-session-events.ts +359 -5
- package/src/hooks/use-voice-input.ts +232 -0
- package/src/index.ts +47 -1
- package/src/lib/clipboard.ts +58 -0
- package/src/lib/format.ts +18 -0
- package/src/lib/motion-inspect.ts +5 -0
- package/src/lib/motion.ts +80 -0
- package/src/model-policy.ts +210 -0
- package/src/session-ui.ts +7 -0
- package/src/timeline/activity-rail.tsx +46 -7
- package/src/timeline/entrance.tsx +10 -0
- package/src/timeline/fold-memory.ts +52 -0
- package/src/timeline/index.ts +9 -1
- package/src/timeline/projection.ts +226 -41
- package/src/timeline/seen-activity-ids.ts +19 -0
- package/src/timeline/shared.tsx +1 -1
- package/src/timeline/tool-renderers.tsx +75 -6
- package/src/timeline/turn-summary.tsx +387 -97
- package/src/timeline/types.ts +21 -0
- package/styles/index.css +99 -7
- package/styles/tokens.css +44 -3
- package/dist/chunk-AVLMIWYO.js.map +0 -1
- package/dist/chunk-CSJBF3QJ.js.map +0 -1
- package/dist/chunk-IPVOVOW6.js.map +0 -1
- package/dist/chunk-M7X4JZOD.js.map +0 -1
- package/dist/chunk-OKXCECLG.js.map +0 -1
- package/dist/chunk-ZMNPFZWL.js +0 -3918
- package/dist/chunk-ZMNPFZWL.js.map +0 -1
- package/dist/composer-BMzimGTO.d.ts +0 -528
- package/dist/session-DaONt-dY.d.ts +0 -264
- package/dist/session-context-CAjlaeZb.d.ts +0 -84
- package/dist/session-ui-B5_roA95.d.ts +0 -259
- /package/dist/{chunk-BC6RKIHS.js.map → chunk-GZ4KR67U.js.map} +0 -0
|
@@ -1,528 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as react from 'react';
|
|
3
|
-
import { KeyboardEvent, ButtonHTMLAttributes, ClipboardEvent, RefObject, DragEvent, ChangeEvent, ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
|
-
import * as _opengeni_sdk from '@opengeni/sdk';
|
|
5
|
-
import { Permission, SessionStatus, EffectiveSessionControl, ClientModel, TranscriptionLifecycleStatus, TranscriptionErrorCode, TranscriptionEvent, TranscriptionAdapter, WorkspaceTranscriptionPolicy, TranscriptionTargetSelection, TranscriptionDiagnostic, TranscriptionPolicyBlockReason } from '@opengeni/sdk';
|
|
6
|
-
import { S as SessionClientLike } from './session-context-CAjlaeZb.js';
|
|
7
|
-
import { C as ComposerState } from './use-composer-ClHy1rkL.js';
|
|
8
|
-
import { U as UseFileAttachmentsResult } from './use-file-attachments-BmT8WtqO.js';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The slash-command registry. A command is a SESSION / OPERATOR control — an
|
|
12
|
-
* action on the session or the UI (clear, compact, pause the goal, show help) —
|
|
13
|
-
* NOT a structured way to talk to the agent. The human↔agent channel stays
|
|
14
|
-
* plain chat; the palette only recognizes a leading "/" and never sends a
|
|
15
|
-
* command to the model.
|
|
16
|
-
*
|
|
17
|
-
* Two kinds, modeled by where the handler does its work:
|
|
18
|
-
* - CLIENT commands touch only the local UI (e.g. /help, /clear-view).
|
|
19
|
-
* - SERVER commands call the API through the SDK (e.g. /clear, /compact,
|
|
20
|
-
* /goal).
|
|
21
|
-
* Both are just `run(args, ctx)`; `ctx` exposes the client for server commands
|
|
22
|
-
* and the UI affordances (notice, openHelp, clearView, confirm) for both.
|
|
23
|
-
*/
|
|
24
|
-
/** A positional argument a command accepts after its name. */
|
|
25
|
-
type SlashArg = {
|
|
26
|
-
name: string;
|
|
27
|
-
/** Enter runs only once every required arg is present; otherwise autocompletes. */
|
|
28
|
-
required?: boolean;
|
|
29
|
-
/** Closed value set (rendered as a hint; validated by the command itself). */
|
|
30
|
-
oneOf?: readonly string[];
|
|
31
|
-
description?: string;
|
|
32
|
-
};
|
|
33
|
-
/** Transient feedback surfaced in the composer (generalized error line). */
|
|
34
|
-
type Notice = {
|
|
35
|
-
tone: "ok" | "error";
|
|
36
|
-
message: string;
|
|
37
|
-
};
|
|
38
|
-
/** Everything a command handler can reach. Assembled by the composer. */
|
|
39
|
-
type CommandContext = {
|
|
40
|
-
/** SDK-shaped client for server commands. */
|
|
41
|
-
client: SessionClientLike;
|
|
42
|
-
workspaceId: string;
|
|
43
|
-
/** Null before a session exists (server commands should guard on this). */
|
|
44
|
-
sessionId: string | null;
|
|
45
|
-
status: SessionStatus | null;
|
|
46
|
-
/** The operator's permissions on this workspace (gates command visibility). */
|
|
47
|
-
permissions: Permission[];
|
|
48
|
-
/** Surface a transient ok/error notice in the composer. */
|
|
49
|
-
notice: (notice: Notice) => void;
|
|
50
|
-
/** Open the in-composer /help panel (rendered from the registry). */
|
|
51
|
-
openHelp: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Reset only the LOCAL timeline view — no server call. Returns whether a
|
|
54
|
-
* view-reset affordance was actually wired (and thus had an effect): the host
|
|
55
|
-
* surface supplies one via the composer's `onClearView` prop, and consoles
|
|
56
|
-
* that don't (no resettable local timeline) get `false`. The /clear-view
|
|
57
|
-
* command uses this to avoid reporting a false "cleared" success on a no-op.
|
|
58
|
-
*/
|
|
59
|
-
clearView: () => boolean;
|
|
60
|
-
/** Show the danger confirm bar; resolves true once the operator confirms. */
|
|
61
|
-
confirm: () => Promise<boolean>;
|
|
62
|
-
};
|
|
63
|
-
type CommandResult = {
|
|
64
|
-
status: "ok" | "error";
|
|
65
|
-
message?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Keep the composer draft instead of clearing it on an ok result. Used when a
|
|
68
|
-
* command resolves to a no-op the operator may want to retry — e.g. canceling
|
|
69
|
-
* the /clear confirm bar returns ok (no error) but must NOT wipe the typed
|
|
70
|
-
* "/clear" draft. Default false: a successful command clears the draft.
|
|
71
|
-
*/
|
|
72
|
-
keepDraft?: boolean;
|
|
73
|
-
};
|
|
74
|
-
type SlashCommand = {
|
|
75
|
-
/** Primary token after the slash (no leading "/"). */
|
|
76
|
-
name: string;
|
|
77
|
-
/** Alternate tokens that resolve to this command. */
|
|
78
|
-
aliases?: readonly string[];
|
|
79
|
-
description: string;
|
|
80
|
-
args?: readonly SlashArg[];
|
|
81
|
-
/** Required permission; the command is hidden from the palette without it. */
|
|
82
|
-
permission?: Permission;
|
|
83
|
-
/** Destructive — the palette shows a confirm bar before running. */
|
|
84
|
-
danger?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* Dynamic availability beyond the permission gate (e.g. hide a server command
|
|
87
|
-
* until a session exists). Returning false hides the command.
|
|
88
|
-
*/
|
|
89
|
-
available?: (ctx: Pick<CommandContext, "sessionId" | "status" | "permissions">) => boolean;
|
|
90
|
-
/** Execute the command. Throwing is caught and surfaced as an error notice. */
|
|
91
|
-
run: (args: string[], ctx: CommandContext) => Promise<CommandResult> | CommandResult;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Context the composer supplies for command execution and visibility. The
|
|
96
|
-
* composer owns the UI affordances (notice/openHelp/clearView/confirm), so they
|
|
97
|
-
* are NOT part of this slice — the hook closes over them via `handlers`.
|
|
98
|
-
*/
|
|
99
|
-
type SlashCommandContext = Pick<CommandContext, "client" | "workspaceId" | "sessionId" | "status" | "permissions">;
|
|
100
|
-
/**
|
|
101
|
-
* UI affordances the composer supplies. `confirm` differs from the registry-
|
|
102
|
-
* facing {@link CommandContext.confirm} (which takes no args): the composer's
|
|
103
|
-
* confirm receives the command being run so the confirm bar renders from that
|
|
104
|
-
* exact command's identity. The hook bridges the two in {@link buildContext}.
|
|
105
|
-
*/
|
|
106
|
-
type SlashCommandHandlers = Pick<CommandContext, "notice" | "openHelp" | "clearView"> & {
|
|
107
|
-
confirm: (command: SlashCommand) => Promise<boolean>;
|
|
108
|
-
};
|
|
109
|
-
type ConfirmState = {
|
|
110
|
-
command: SlashCommand;
|
|
111
|
-
/** Resolve the pending confirm() promise. */
|
|
112
|
-
resolve: (confirmed: boolean) => void;
|
|
113
|
-
} | null;
|
|
114
|
-
type UseSlashCommandsOptions = {
|
|
115
|
-
commands: readonly SlashCommand[];
|
|
116
|
-
context: SlashCommandContext | undefined;
|
|
117
|
-
handlers: SlashCommandHandlers;
|
|
118
|
-
/** The current composer draft. */
|
|
119
|
-
value: string;
|
|
120
|
-
/** Replace the composer draft (autocomplete writes through this). */
|
|
121
|
-
setValue: (value: string) => void;
|
|
122
|
-
};
|
|
123
|
-
type UseSlashCommandsResult = {
|
|
124
|
-
/** Whether the palette is open (a command token is being typed). */
|
|
125
|
-
open: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Whether the draft is a slash-command attempt (matches a registered command)
|
|
128
|
-
* — true even after Escape dismisses the popover. The composer blocks its send
|
|
129
|
-
* path while this holds so a command can't be delivered to the agent as chat.
|
|
130
|
-
*/
|
|
131
|
-
isCommandDraft: boolean;
|
|
132
|
-
/** Commands shown for the current token + context, in display order. */
|
|
133
|
-
items: SlashCommand[];
|
|
134
|
-
/** Index into `items` of the highlighted row. */
|
|
135
|
-
highlight: number;
|
|
136
|
-
setHighlight: (index: number) => void;
|
|
137
|
-
/** The matched command once the name is closed by a space (arg-hint mode). */
|
|
138
|
-
activeCommand: SlashCommand | null;
|
|
139
|
-
/** The arg hint string for the active command (footer), or "". */
|
|
140
|
-
activeArgHint: string;
|
|
141
|
-
/**
|
|
142
|
-
* Key handler for the textarea. Returns true when it consumed the event
|
|
143
|
-
* (the composer must then NOT run its send path). Only consumes while open.
|
|
144
|
-
*/
|
|
145
|
-
onKeyDown: (event: KeyboardEvent<HTMLTextAreaElement>) => boolean;
|
|
146
|
-
/** Run the highlighted command (or the active command in arg-hint mode). */
|
|
147
|
-
runHighlighted: () => Promise<void>;
|
|
148
|
-
/**
|
|
149
|
-
* Run the command at an explicitly chosen index (a pointer click on a row).
|
|
150
|
-
* Bypasses the exact-match token heuristic that runHighlighted uses for
|
|
151
|
-
* keyboard Enter, so an explicit click always runs the clicked command.
|
|
152
|
-
*/
|
|
153
|
-
runAt: (index: number) => Promise<void>;
|
|
154
|
-
/** Autocomplete the highlighted command name + a trailing space. */
|
|
155
|
-
autocompleteHighlighted: () => void;
|
|
156
|
-
};
|
|
157
|
-
declare function useSlashCommands(options: UseSlashCommandsOptions): UseSlashCommandsResult;
|
|
158
|
-
|
|
159
|
-
declare const OPEN_WORKSTREAM_CONTROL_EVENT = "opengeni:open-workstream-control";
|
|
160
|
-
type ComposerDelivery = Pick<ComposerState, "value" | "setValue" | "send" | "steer" | "sending" | "canSend" | "error" | "clearError">;
|
|
161
|
-
type ComposerDraftState = Pick<ComposerState, "draftConflict" | "draftSaving" | "resolveDraftConflict" | "restoredResources" | "removeRestoredResource">;
|
|
162
|
-
type ComposerControlState = Pick<ComposerState, "pause" | "pausing" | "resume" | "resumeScope" | "resuming">;
|
|
163
|
-
type ComposerControlLinks = {
|
|
164
|
-
workspaceHref?: string | undefined;
|
|
165
|
-
sessionHref?: ((sessionId: string) => string) | undefined;
|
|
166
|
-
};
|
|
167
|
-
type ChatComposerMessages = {
|
|
168
|
-
messagePlaceholder: string;
|
|
169
|
-
pausedPlaceholder: string;
|
|
170
|
-
inputLabel: string;
|
|
171
|
-
keyboardHint: string;
|
|
172
|
-
slashCommandBlocked: string;
|
|
173
|
-
controlChangedError: string;
|
|
174
|
-
sendFailedError: string;
|
|
175
|
-
dropFiles: string;
|
|
176
|
-
attachFiles: string;
|
|
177
|
-
pauseAriaLabel: string;
|
|
178
|
-
pauseTitle: string;
|
|
179
|
-
sendMessageAriaLabel: string;
|
|
180
|
-
sendAndResumeAriaLabel: string;
|
|
181
|
-
sendTitle: string;
|
|
182
|
-
sendAndResumeTitle: string;
|
|
183
|
-
workspacePaused: string;
|
|
184
|
-
pausedHere: string;
|
|
185
|
-
parentBlocker: string;
|
|
186
|
-
narrowerPause: string;
|
|
187
|
-
pausedBy: (displayName: string) => string;
|
|
188
|
-
queuedAhead: (count: number) => string;
|
|
189
|
-
resumingAndSending: string;
|
|
190
|
-
nextMessageResumes: string;
|
|
191
|
-
resumeThisWorkstream: string;
|
|
192
|
-
resumeShort: string;
|
|
193
|
-
hidePauseDetails: string;
|
|
194
|
-
showPauseDetails: string;
|
|
195
|
-
pauseReasonsLabel: string;
|
|
196
|
-
pausedByLabel: string;
|
|
197
|
-
alsoPausedByLabel: string;
|
|
198
|
-
resumeWorkspace: string;
|
|
199
|
-
resumeFromSession: string;
|
|
200
|
-
sessionCanRun: string;
|
|
201
|
-
stillPausedBy: (displayName: string) => string;
|
|
202
|
-
restoredResourcesLabel: string;
|
|
203
|
-
restoredFile: (fileId: string) => string;
|
|
204
|
-
removeRestoredResource: (index: number) => string;
|
|
205
|
-
uploading: string;
|
|
206
|
-
uploadFailed: string;
|
|
207
|
-
retryAttachment: (name: string) => string;
|
|
208
|
-
retryUpload: string;
|
|
209
|
-
removeAttachment: (name: string) => string;
|
|
210
|
-
confirmCommand: (name: string) => string;
|
|
211
|
-
confirmDescription: (command: SlashCommand) => string;
|
|
212
|
-
cancel: string;
|
|
213
|
-
runCommand: (name: string) => string;
|
|
214
|
-
commands: string;
|
|
215
|
-
slashCommandsLabel: string;
|
|
216
|
-
modelLabel: string;
|
|
217
|
-
close: string;
|
|
218
|
-
danger: string;
|
|
219
|
-
draftConflict: string;
|
|
220
|
-
useOtherDraft: string;
|
|
221
|
-
keepMine: string;
|
|
222
|
-
savingDraft: string;
|
|
223
|
-
formatBytes: (bytes: number) => string;
|
|
224
|
-
formatRelativeTime: (changedAt: string) => string;
|
|
225
|
-
};
|
|
226
|
-
declare const defaultChatComposerMessages: ChatComposerMessages;
|
|
227
|
-
type ComposerSubmitMode = "queue" | "steer";
|
|
228
|
-
type ComposerSubmitBlocker = "disabled" | "attachment" | "sending" | "command" | "empty" | null;
|
|
229
|
-
type UseChatComposerControllerOptions = {
|
|
230
|
-
delivery: ComposerDelivery;
|
|
231
|
-
draft?: ComposerDraftState | undefined;
|
|
232
|
-
control?: ComposerControlState | undefined;
|
|
233
|
-
effectiveControl?: EffectiveSessionControl | null | undefined;
|
|
234
|
-
queuedAheadCount?: number | undefined;
|
|
235
|
-
canControlWorkspace?: boolean | undefined;
|
|
236
|
-
controlLinks?: ComposerControlLinks | undefined;
|
|
237
|
-
disabled?: boolean | undefined;
|
|
238
|
-
attachments?: UseFileAttachmentsResult | undefined;
|
|
239
|
-
commands?: readonly SlashCommand[] | undefined;
|
|
240
|
-
commandContext?: SlashCommandContext | undefined;
|
|
241
|
-
onClearView?: (() => void) | undefined;
|
|
242
|
-
onPaste?: ((event: ClipboardEvent<HTMLTextAreaElement>) => void) | undefined;
|
|
243
|
-
messages?: Partial<ChatComposerMessages> | undefined;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Headless interaction layer for a chat composer. It is the single owner of
|
|
247
|
-
* delivery guards, keyboard routing, command interception, drag/drop, focus,
|
|
248
|
-
* confirmation, and feedback state used by both the preset and primitives.
|
|
249
|
-
*/
|
|
250
|
-
declare function useChatComposerController({ delivery, draft, control, effectiveControl, queuedAheadCount, canControlWorkspace, controlLinks, disabled, attachments, commands, commandContext, onClearView, onPaste, messages: messageOverrides, }: UseChatComposerControllerOptions): {
|
|
251
|
-
id: string;
|
|
252
|
-
rootRef: RefObject<HTMLDivElement | null>;
|
|
253
|
-
textareaRef: RefObject<HTMLTextAreaElement | null>;
|
|
254
|
-
pauseButtonRef: RefObject<HTMLButtonElement | null>;
|
|
255
|
-
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
256
|
-
listboxId: string;
|
|
257
|
-
effectiveControl: EffectiveSessionControl | null | undefined;
|
|
258
|
-
queuedAheadCount: number;
|
|
259
|
-
canControlWorkspace: boolean;
|
|
260
|
-
controlLinks: ComposerControlLinks | undefined;
|
|
261
|
-
disabled: boolean;
|
|
262
|
-
attachments: UseFileAttachmentsResult | undefined;
|
|
263
|
-
messages: {
|
|
264
|
-
messagePlaceholder: string;
|
|
265
|
-
pausedPlaceholder: string;
|
|
266
|
-
inputLabel: string;
|
|
267
|
-
keyboardHint: string;
|
|
268
|
-
slashCommandBlocked: string;
|
|
269
|
-
controlChangedError: string;
|
|
270
|
-
sendFailedError: string;
|
|
271
|
-
dropFiles: string;
|
|
272
|
-
attachFiles: string;
|
|
273
|
-
pauseAriaLabel: string;
|
|
274
|
-
pauseTitle: string;
|
|
275
|
-
sendMessageAriaLabel: string;
|
|
276
|
-
sendAndResumeAriaLabel: string;
|
|
277
|
-
sendTitle: string;
|
|
278
|
-
sendAndResumeTitle: string;
|
|
279
|
-
workspacePaused: string;
|
|
280
|
-
pausedHere: string;
|
|
281
|
-
parentBlocker: string;
|
|
282
|
-
narrowerPause: string;
|
|
283
|
-
pausedBy: (displayName: string) => string;
|
|
284
|
-
queuedAhead: (count: number) => string;
|
|
285
|
-
resumingAndSending: string;
|
|
286
|
-
nextMessageResumes: string;
|
|
287
|
-
resumeThisWorkstream: string;
|
|
288
|
-
resumeShort: string;
|
|
289
|
-
hidePauseDetails: string;
|
|
290
|
-
showPauseDetails: string;
|
|
291
|
-
pauseReasonsLabel: string;
|
|
292
|
-
pausedByLabel: string;
|
|
293
|
-
alsoPausedByLabel: string;
|
|
294
|
-
resumeWorkspace: string;
|
|
295
|
-
resumeFromSession: string;
|
|
296
|
-
sessionCanRun: string;
|
|
297
|
-
stillPausedBy: (displayName: string) => string;
|
|
298
|
-
restoredResourcesLabel: string;
|
|
299
|
-
restoredFile: (fileId: string) => string;
|
|
300
|
-
removeRestoredResource: (index: number) => string;
|
|
301
|
-
uploading: string;
|
|
302
|
-
uploadFailed: string;
|
|
303
|
-
retryAttachment: (name: string) => string;
|
|
304
|
-
retryUpload: string;
|
|
305
|
-
removeAttachment: (name: string) => string;
|
|
306
|
-
confirmCommand: (name: string) => string;
|
|
307
|
-
confirmDescription: (command: SlashCommand) => string;
|
|
308
|
-
cancel: string;
|
|
309
|
-
runCommand: (name: string) => string;
|
|
310
|
-
commands: string;
|
|
311
|
-
slashCommandsLabel: string;
|
|
312
|
-
modelLabel: string;
|
|
313
|
-
close: string;
|
|
314
|
-
danger: string;
|
|
315
|
-
draftConflict: string;
|
|
316
|
-
useOtherDraft: string;
|
|
317
|
-
keepMine: string;
|
|
318
|
-
savingDraft: string;
|
|
319
|
-
formatBytes: (bytes: number) => string;
|
|
320
|
-
formatRelativeTime: (changedAt: string) => string;
|
|
321
|
-
};
|
|
322
|
-
sending: boolean;
|
|
323
|
-
error: Error | null;
|
|
324
|
-
clearError: () => void;
|
|
325
|
-
hasDraftState: boolean;
|
|
326
|
-
draftConflict: Error | null;
|
|
327
|
-
draftSaving: boolean;
|
|
328
|
-
restoredResources: _opengeni_sdk.ResourceRef[];
|
|
329
|
-
removeRestoredResource: ((index: number) => void) | undefined;
|
|
330
|
-
resolveDraftConflict: ((choice: "keep_mine" | "use_remote") => Promise<void>) | undefined;
|
|
331
|
-
hasControl: boolean;
|
|
332
|
-
pausing: boolean;
|
|
333
|
-
resuming: boolean;
|
|
334
|
-
pause: (reason?: string) => Promise<boolean>;
|
|
335
|
-
resume: (reason?: string) => Promise<boolean>;
|
|
336
|
-
resumeScope: (option: EffectiveSessionControl["resumeOptions"][number]) => Promise<boolean>;
|
|
337
|
-
paused: boolean;
|
|
338
|
-
controlDetailsOpen: boolean;
|
|
339
|
-
setControlDetailsOpen: react.Dispatch<react.SetStateAction<boolean>>;
|
|
340
|
-
paletteMounted: boolean;
|
|
341
|
-
setPaletteMounted: react.Dispatch<react.SetStateAction<boolean>>;
|
|
342
|
-
dragging: boolean;
|
|
343
|
-
handleDragOver: (event: DragEvent<HTMLDivElement>) => void;
|
|
344
|
-
handleDragLeave: (event: DragEvent<HTMLDivElement>) => void;
|
|
345
|
-
handleDrop: (event: DragEvent<HTMLDivElement>) => void;
|
|
346
|
-
palette: UseSlashCommandsResult;
|
|
347
|
-
paletteEnabled: boolean;
|
|
348
|
-
commandDraftBlocked: boolean;
|
|
349
|
-
confirmState: ConfirmState;
|
|
350
|
-
settleConfirmation: (confirmed: boolean) => void;
|
|
351
|
-
helpOpen: boolean;
|
|
352
|
-
setHelpOpen: react.Dispatch<react.SetStateAction<boolean>>;
|
|
353
|
-
helpCommands: SlashCommand[];
|
|
354
|
-
activeNotice: Notice | null;
|
|
355
|
-
canSubmit: boolean;
|
|
356
|
-
submitBlocker: ComposerSubmitBlocker;
|
|
357
|
-
submit: (mode: ComposerSubmitMode) => Promise<boolean>;
|
|
358
|
-
handleKeyDown: (event: KeyboardEvent<HTMLTextAreaElement>) => void;
|
|
359
|
-
handlePaste: (event: ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
360
|
-
handleFileChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
361
|
-
focusInput: () => void | undefined;
|
|
362
|
-
setValue: (value: string) => void;
|
|
363
|
-
value: string;
|
|
364
|
-
};
|
|
365
|
-
type ChatComposerController = ReturnType<typeof useChatComposerController>;
|
|
366
|
-
type ChatComposerContextValue = Pick<ChatComposerController, "id" | "value" | "setValue" | "focusInput" | "submit" | "canSubmit" | "submitBlocker" | "disabled" | "sending" | "error" | "clearError" | "attachments" | "messages" | "effectiveControl" | "paused" | "hasControl" | "pausing" | "resuming" | "pause" | "resume" | "resumeScope">;
|
|
367
|
-
/** Read the nearest compound composer's safe accessory-facing state and actions. */
|
|
368
|
-
declare function useChatComposer(): ChatComposerContextValue;
|
|
369
|
-
type ComposerRootProps = Omit<ComponentPropsWithoutRef<"div">, "children"> & {
|
|
370
|
-
controller: ChatComposerController;
|
|
371
|
-
children: ReactNode;
|
|
372
|
-
};
|
|
373
|
-
declare const Root: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
|
|
374
|
-
controller: ChatComposerController;
|
|
375
|
-
children: ReactNode;
|
|
376
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
377
|
-
type ComposerFrameProps = ComponentPropsWithoutRef<"div">;
|
|
378
|
-
declare const Frame: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
379
|
-
type ComposerCommandPaletteProps = {
|
|
380
|
-
className?: string | undefined;
|
|
381
|
-
};
|
|
382
|
-
declare function CommandPalette({ className }: ComposerCommandPaletteProps): react_jsx_runtime.JSX.Element | null;
|
|
383
|
-
type OwnedSurfaceProps = "onDragOver" | "onDragLeave" | "onDrop";
|
|
384
|
-
type ComposerSurfaceProps = Omit<ComponentPropsWithoutRef<"div">, OwnedSurfaceProps>;
|
|
385
|
-
declare const Surface: react.ForwardRefExoticComponent<ComposerSurfaceProps & react.RefAttributes<HTMLDivElement>>;
|
|
386
|
-
declare function PausedState(): react_jsx_runtime.JSX.Element | null;
|
|
387
|
-
declare function RestoredResources(): react_jsx_runtime.JSX.Element | null;
|
|
388
|
-
declare function Attachments(): react_jsx_runtime.JSX.Element | null;
|
|
389
|
-
type OwnedInputProps = "value" | "defaultValue" | "onChange" | "onKeyDown" | "onPaste" | "disabled" | "aria-autocomplete" | "aria-controls" | "aria-activedescendant" | "aria-keyshortcuts";
|
|
390
|
-
type ComposerInputProps = Omit<ComponentPropsWithoutRef<"textarea">, OwnedInputProps>;
|
|
391
|
-
declare const Input: react.ForwardRefExoticComponent<ComposerInputProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
392
|
-
declare function Confirmation(): react_jsx_runtime.JSX.Element | null;
|
|
393
|
-
type ComposerFooterProps = ComponentPropsWithoutRef<"div">;
|
|
394
|
-
declare const Footer: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
395
|
-
type ComposerControlsProps = ComponentPropsWithoutRef<"span">;
|
|
396
|
-
declare const Controls: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
397
|
-
type ComposerHintProps = ComponentPropsWithoutRef<"span">;
|
|
398
|
-
declare const Hint: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
399
|
-
type ComposerActionsProps = ComponentPropsWithoutRef<"span">;
|
|
400
|
-
declare const Actions: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & react.RefAttributes<HTMLSpanElement>>;
|
|
401
|
-
type OwnedButtonProps = "type" | "onClick" | "disabled";
|
|
402
|
-
type ComposerAttachButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, OwnedButtonProps> & {
|
|
403
|
-
accept?: string | undefined;
|
|
404
|
-
multiple?: boolean | undefined;
|
|
405
|
-
};
|
|
406
|
-
declare const AttachButton: react.ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, OwnedButtonProps> & {
|
|
407
|
-
accept?: string | undefined;
|
|
408
|
-
multiple?: boolean | undefined;
|
|
409
|
-
} & react.RefAttributes<HTMLButtonElement>>;
|
|
410
|
-
type ComposerModelPickerProps = {
|
|
411
|
-
models: ClientModel[];
|
|
412
|
-
value?: string | undefined;
|
|
413
|
-
onChange?: ((modelId: string) => void) | undefined;
|
|
414
|
-
label?: string | undefined;
|
|
415
|
-
className?: string | undefined;
|
|
416
|
-
};
|
|
417
|
-
declare function ModelPicker({ models, value, onChange, label, className, }: ComposerModelPickerProps): react_jsx_runtime.JSX.Element;
|
|
418
|
-
type ComposerPauseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, OwnedButtonProps>;
|
|
419
|
-
declare const PauseButton: react.ForwardRefExoticComponent<ComposerPauseButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
420
|
-
type ComposerSendButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, OwnedButtonProps>;
|
|
421
|
-
declare const SendButton: react.ForwardRefExoticComponent<ComposerSendButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
422
|
-
declare function Help(): react_jsx_runtime.JSX.Element;
|
|
423
|
-
declare function Status(): react_jsx_runtime.JSX.Element;
|
|
424
|
-
|
|
425
|
-
type TranscriptionControlState = {
|
|
426
|
-
status: TranscriptionLifecycleStatus;
|
|
427
|
-
generation: number;
|
|
428
|
-
localSessionId: string | null;
|
|
429
|
-
providerSessionId: string | null;
|
|
430
|
-
lastSequence: number;
|
|
431
|
-
partial: string;
|
|
432
|
-
error: {
|
|
433
|
-
code: TranscriptionErrorCode;
|
|
434
|
-
recoverable: boolean;
|
|
435
|
-
} | null;
|
|
436
|
-
acceptedFinalIds: string[];
|
|
437
|
-
audioMilliseconds: number;
|
|
438
|
-
costUsd: number | null;
|
|
439
|
-
};
|
|
440
|
-
declare const INITIAL_TRANSCRIPTION_CONTROL_STATE: TranscriptionControlState;
|
|
441
|
-
type TranscriptionControlAction = {
|
|
442
|
-
type: "start";
|
|
443
|
-
generation: number;
|
|
444
|
-
localSessionId: string;
|
|
445
|
-
} | {
|
|
446
|
-
type: "event";
|
|
447
|
-
generation: number;
|
|
448
|
-
event: TranscriptionEvent;
|
|
449
|
-
} | {
|
|
450
|
-
type: "start.failed";
|
|
451
|
-
generation: number;
|
|
452
|
-
code: TranscriptionErrorCode;
|
|
453
|
-
} | {
|
|
454
|
-
type: "cancel";
|
|
455
|
-
generation: number;
|
|
456
|
-
} | {
|
|
457
|
-
type: "cancel.settled";
|
|
458
|
-
generation: number;
|
|
459
|
-
} | {
|
|
460
|
-
type: "reset";
|
|
461
|
-
};
|
|
462
|
-
type TranscriptionControlTransition = {
|
|
463
|
-
state: TranscriptionControlState;
|
|
464
|
-
/** A newly accepted final to append to the current editable draft once. */
|
|
465
|
-
commit: string | null;
|
|
466
|
-
};
|
|
467
|
-
declare function transitionTranscriptionControl(state: TranscriptionControlState, action: TranscriptionControlAction): TranscriptionControlTransition;
|
|
468
|
-
declare function appendFinalTranscript(draft: string, transcript: string): string;
|
|
469
|
-
type UseTranscriptionOptions = {
|
|
470
|
-
adapter: TranscriptionAdapter | null;
|
|
471
|
-
policy: WorkspaceTranscriptionPolicy;
|
|
472
|
-
selection?: TranscriptionTargetSelection | undefined;
|
|
473
|
-
value: string;
|
|
474
|
-
setValue: (value: string) => void;
|
|
475
|
-
focusInput: () => void;
|
|
476
|
-
disabled?: boolean | undefined;
|
|
477
|
-
createLocalSessionId?: (() => string) | undefined;
|
|
478
|
-
lifecycleTimeouts?: Partial<TranscriptionLifecycleTimeouts> | undefined;
|
|
479
|
-
/** Receives bounded, redacted diagnostics; this detail is never rendered by the hook. */
|
|
480
|
-
onDiagnostic?: ((diagnostic: TranscriptionDiagnostic) => void) | undefined;
|
|
481
|
-
};
|
|
482
|
-
type TranscriptionLifecycleTimeouts = {
|
|
483
|
-
startMs: number;
|
|
484
|
-
cleanupMs: number;
|
|
485
|
-
};
|
|
486
|
-
type UseTranscriptionResult = {
|
|
487
|
-
state: TranscriptionControlState;
|
|
488
|
-
available: boolean;
|
|
489
|
-
unavailableReason: TranscriptionPolicyBlockReason | "adapter_missing" | "composer_disabled" | null;
|
|
490
|
-
start: () => Promise<boolean>;
|
|
491
|
-
cancel: () => Promise<boolean>;
|
|
492
|
-
reset: () => void;
|
|
493
|
-
};
|
|
494
|
-
declare function useTranscription({ adapter, policy, selection, value, setValue, focusInput, disabled, createLocalSessionId, lifecycleTimeouts, onDiagnostic, }: UseTranscriptionOptions): UseTranscriptionResult;
|
|
495
|
-
|
|
496
|
-
type ComposerTranscriptionMessages = {
|
|
497
|
-
start: string;
|
|
498
|
-
stop: string;
|
|
499
|
-
retry: string;
|
|
500
|
-
requestingPermission: string;
|
|
501
|
-
listening: string;
|
|
502
|
-
reconnecting: string;
|
|
503
|
-
cancelling: string;
|
|
504
|
-
unavailableDisabled: string;
|
|
505
|
-
unavailableAdapter: string;
|
|
506
|
-
unavailablePolicy: string;
|
|
507
|
-
errorPermissionDenied: string;
|
|
508
|
-
errorNotSupported: string;
|
|
509
|
-
errorNetwork: string;
|
|
510
|
-
errorProvider: string;
|
|
511
|
-
errorPolicyBlocked: string;
|
|
512
|
-
errorTimeout: string;
|
|
513
|
-
errorCancelled: string;
|
|
514
|
-
errorUnknown: string;
|
|
515
|
-
};
|
|
516
|
-
type ComposerTranscriptionControlProps = {
|
|
517
|
-
adapter: TranscriptionAdapter | null;
|
|
518
|
-
policy: WorkspaceTranscriptionPolicy;
|
|
519
|
-
selection?: TranscriptionTargetSelection | undefined;
|
|
520
|
-
messages?: Partial<ComposerTranscriptionMessages> | undefined;
|
|
521
|
-
className?: string | undefined;
|
|
522
|
-
lifecycleTimeouts?: Partial<TranscriptionLifecycleTimeouts> | undefined;
|
|
523
|
-
onDiagnostic?: ((diagnostic: TranscriptionDiagnostic) => void) | undefined;
|
|
524
|
-
};
|
|
525
|
-
/** One provider-neutral microphone control for the nearest editable composer. */
|
|
526
|
-
declare function ComposerTranscriptionControl({ adapter, policy, selection, messages: overrides, className, lifecycleTimeouts, onDiagnostic, }: ComposerTranscriptionControlProps): react_jsx_runtime.JSX.Element;
|
|
527
|
-
|
|
528
|
-
export { Footer as $, Actions as A, type ComposerAttachButtonProps as B, type ComposerControlLinks as C, type ComposerCommandPaletteProps as D, type ComposerControlState as E, type ComposerControlsProps as F, type ComposerDelivery as G, type ComposerDraftState as H, INITIAL_TRANSCRIPTION_CONTROL_STATE as I, type ComposerFooterProps as J, type ComposerFrameProps as K, type ComposerHintProps as L, type ComposerInputProps as M, type Notice as N, OPEN_WORKSTREAM_CONTROL_EVENT as O, type ComposerModelPickerProps as P, type ComposerPauseButtonProps as Q, type ComposerRootProps as R, type SlashCommand as S, type TranscriptionControlAction as T, type UseSlashCommandsOptions as U, type ComposerSendButtonProps as V, type ComposerSubmitBlocker as W, type ComposerSubmitMode as X, type ComposerSurfaceProps as Y, Confirmation as Z, Controls as _, type ComposerTranscriptionControlProps as a, Frame as a0, Help as a1, Hint as a2, Input as a3, ModelPicker as a4, PauseButton as a5, PausedState as a6, RestoredResources as a7, Root as a8, SendButton as a9, Status as aa, Surface as ab, type UseChatComposerControllerOptions as ac, useChatComposer as ad, useChatComposerController as ae, type SlashCommandContext as b, type ChatComposerMessages as c, type SlashArg as d, type CommandContext as e, type CommandResult as f, ComposerTranscriptionControl as g, type ComposerTranscriptionMessages as h, type ConfirmState as i, type SlashCommandHandlers as j, type TranscriptionControlState as k, type TranscriptionControlTransition as l, type UseSlashCommandsResult as m, type UseTranscriptionOptions as n, type UseTranscriptionResult as o, appendFinalTranscript as p, defaultChatComposerMessages as q, useTranscription as r, AttachButton as s, transitionTranscriptionControl as t, useSlashCommands as u, Attachments as v, type ChatComposerContextValue as w, type ChatComposerController as x, CommandPalette as y, type ComposerActionsProps as z };
|