@tangle-network/agent-app 0.42.17 → 0.42.19

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/index.js CHANGED
@@ -1,4 +1,60 @@
1
1
  import "./chunk-UAKFCMWK.js";
2
+ import {
3
+ DEFAULT_SEQUENCES_MCP_DESCRIPTION,
4
+ MAX_CAPTION_BATCH,
5
+ SEQUENCE_EXPORT_FORMATS,
6
+ SEQUENCE_MCP_TOOLS,
7
+ SEQUENCE_MEDIA_KINDS,
8
+ SEQUENCE_OPERATION_TYPES,
9
+ SEQUENCE_TRACK_KINDS,
10
+ applySequenceOperation,
11
+ applySequenceOperations,
12
+ assertSequenceMediaUrl,
13
+ buildCaptionChunks,
14
+ buildContactSheetManifest,
15
+ buildEdl,
16
+ buildOtio,
17
+ buildSequencesMcpServerEntry,
18
+ buildSrt,
19
+ buildVtt,
20
+ captionCoverage,
21
+ captionTrackNameForLanguage,
22
+ createSequencesMcpHandler,
23
+ findSequenceMcpTool,
24
+ lastClipEndFrame,
25
+ normalizeLanguageTag,
26
+ parseSequenceOperations,
27
+ planLanguageFanout,
28
+ resolveCaptionPlacement,
29
+ resolveCaptionTarget,
30
+ resolvePlaceClipTrack,
31
+ validateAddCaption,
32
+ validateCreateTrack,
33
+ validateDeleteClip,
34
+ validateExtendSequence,
35
+ validateMoveClip,
36
+ validatePlaceClip,
37
+ validateQueueExport,
38
+ validateSequenceOperation,
39
+ validateSequenceOperations,
40
+ validateSetClipDisabled,
41
+ validateSetClipText,
42
+ validateSplitClip,
43
+ validateTrimClip
44
+ } from "./chunk-NEOV2NQ3.js";
45
+ import {
46
+ MIN_SEQUENCE_CLIP_FRAMES,
47
+ assertClipFitsSequence,
48
+ chooseCaptionPlacement,
49
+ clampClipDuration,
50
+ clampClipStart,
51
+ formatSeconds,
52
+ formatTimecode,
53
+ framesToSeconds,
54
+ secondsToFrames,
55
+ snapshotFrame,
56
+ trackIntervals
57
+ } from "./chunk-ZYBWGSAZ.js";
2
58
  import {
3
59
  CANVAS_ELEMENT_KINDS,
4
60
  CANVAS_MCP_TOOLS,
@@ -88,62 +144,6 @@ import {
88
144
  parseAssetSpec,
89
145
  safeParseAssetSpec
90
146
  } from "./chunk-5PTGEJZL.js";
91
- import {
92
- DEFAULT_SEQUENCES_MCP_DESCRIPTION,
93
- MAX_CAPTION_BATCH,
94
- SEQUENCE_EXPORT_FORMATS,
95
- SEQUENCE_MCP_TOOLS,
96
- SEQUENCE_MEDIA_KINDS,
97
- SEQUENCE_OPERATION_TYPES,
98
- SEQUENCE_TRACK_KINDS,
99
- applySequenceOperation,
100
- applySequenceOperations,
101
- assertSequenceMediaUrl,
102
- buildCaptionChunks,
103
- buildContactSheetManifest,
104
- buildEdl,
105
- buildOtio,
106
- buildSequencesMcpServerEntry,
107
- buildSrt,
108
- buildVtt,
109
- captionCoverage,
110
- captionTrackNameForLanguage,
111
- createSequencesMcpHandler,
112
- findSequenceMcpTool,
113
- lastClipEndFrame,
114
- normalizeLanguageTag,
115
- parseSequenceOperations,
116
- planLanguageFanout,
117
- resolveCaptionPlacement,
118
- resolveCaptionTarget,
119
- resolvePlaceClipTrack,
120
- validateAddCaption,
121
- validateCreateTrack,
122
- validateDeleteClip,
123
- validateExtendSequence,
124
- validateMoveClip,
125
- validatePlaceClip,
126
- validateQueueExport,
127
- validateSequenceOperation,
128
- validateSequenceOperations,
129
- validateSetClipDisabled,
130
- validateSetClipText,
131
- validateSplitClip,
132
- validateTrimClip
133
- } from "./chunk-NEOV2NQ3.js";
134
- import {
135
- MIN_SEQUENCE_CLIP_FRAMES,
136
- assertClipFitsSequence,
137
- chooseCaptionPlacement,
138
- clampClipDuration,
139
- clampClipStart,
140
- formatSeconds,
141
- formatTimecode,
142
- framesToSeconds,
143
- secondsToFrames,
144
- snapshotFrame,
145
- trackIntervals
146
- } from "./chunk-ZYBWGSAZ.js";
147
147
  import {
148
148
  PRESET_MIGRATION_SQL,
149
149
  PRESET_TABLES,
@@ -1,12 +1,12 @@
1
+ import {
2
+ InviteAcceptPage
3
+ } from "../chunk-VCPZ3HTN.js";
1
4
  import {
2
5
  MembersPanel
3
6
  } from "../chunk-GNL3MG5J.js";
4
7
  import {
5
8
  InvitationsPanel
6
9
  } from "../chunk-7C64WKAH.js";
7
- import {
8
- InviteAcceptPage
9
- } from "../chunk-VCPZ3HTN.js";
10
10
  import "../chunk-63CE7FEZ.js";
11
11
  export {
12
12
  InvitationsPanel,
@@ -79,6 +79,52 @@ interface StreamChatOptions {
79
79
  */
80
80
  declare function streamChatTurn(opts: StreamChatOptions): Promise<ConsumeChatStreamResult>;
81
81
 
82
+ interface ComposerFile {
83
+ id: string;
84
+ name: string;
85
+ size?: number;
86
+ kind: 'file' | 'folder';
87
+ /** Number of files inside, for a folder chip. */
88
+ fileCount?: number;
89
+ status: 'pending' | 'uploading' | 'ready' | 'error';
90
+ }
91
+ interface ChatComposerProps {
92
+ /** Send the trimmed, non-empty message. Attached files travel separately via
93
+ * `onAttach` + `pendingFiles` (the host consumes and clears them on send). */
94
+ onSend: (message: string) => void;
95
+ /** Stop the in-flight turn; shown in place of Send while `isStreaming`. */
96
+ onCancel?: () => void;
97
+ isStreaming?: boolean;
98
+ /** Block input + send (e.g. while restoring). Distinct from `isStreaming`,
99
+ * which keeps the textarea editable so the next turn can be composed. */
100
+ disabled?: boolean;
101
+ placeholder?: string;
102
+ /** Controlled value. Omit for self-managed internal state (cleared on send). */
103
+ value?: string;
104
+ onValueChange?: (value: string) => void;
105
+ /** Initial text in uncontrolled mode; ignored when `value` is provided. */
106
+ initialValue?: string;
107
+ /** Inline controls (e.g. `<ModelPicker/>` + `<EffortPicker/>` or
108
+ * `<AgentSessionControls/>`). Rendered in a row above the input by default. */
109
+ controls?: ReactNode;
110
+ controlsPlacement?: 'above' | 'footer';
111
+ /** Attachments are opt-in: pass `onAttach` to show the attach button, accept
112
+ * drag-and-drop onto the input, and render `pendingFiles` chips. */
113
+ onAttach?: (files: FileList) => void;
114
+ onAttachFolder?: (files: FileList) => void;
115
+ pendingFiles?: ComposerFile[];
116
+ onRemoveFile?: (id: string) => void;
117
+ accept?: string;
118
+ dropTitle?: string;
119
+ dropDescription?: string;
120
+ /** Cmd/Ctrl+L focuses the input and shows the hint. Default true. */
121
+ focusShortcut?: boolean;
122
+ /** Send button label. Default "Send". */
123
+ sendLabel?: string;
124
+ className?: string;
125
+ }
126
+ declare function ChatComposer({ onSend, onCancel, isStreaming, disabled, placeholder, value, onValueChange, initialValue, controls, controlsPlacement, onAttach, onAttachFolder, pendingFiles, onRemoveFile, accept, dropTitle, dropDescription, focusShortcut, sendLabel, className, }: ChatComposerProps): react.JSX.Element;
127
+
82
128
  /**
83
129
  * Provider brand marks — real logo path data (simple-icons / SVG Logos, both
84
130
  * CC0) inlined so the picker shows actual provider identity instead of
@@ -369,13 +415,21 @@ interface ModelPickerProps {
369
415
  renderProviderBadge?: (provider: string) => ReactNode;
370
416
  /** Section label for `featured` models. */
371
417
  recommendedLabel?: string;
418
+ /** Pin a labeled section to the TOP of the list (above Recommended) for the
419
+ * models a product wants surfaced first — e.g. a tuner app's own fine-tuned
420
+ * models (`{ label: 'Your Fine-Tuned Models', match: (m) => m.provider === 'tuner' }`).
421
+ * Matching models are shown only in this section, not duplicated below. */
422
+ priorityGroup?: {
423
+ label: string;
424
+ match: (model: CatalogModel) => boolean;
425
+ };
372
426
  }
373
427
  /**
374
428
  * Searchable model picker pill + popover: a featured/recommended section
375
429
  * first, then per-provider groups in catalogue order (the server already
376
430
  * sorts providers by tier).
377
431
  */
378
- declare function ModelPicker({ value, onChange, models, loading, renderProviderBadge, recommendedLabel }: ModelPickerProps): react.JSX.Element;
432
+ declare function ModelPicker({ value, onChange, models, loading, renderProviderBadge, recommendedLabel, priorityGroup }: ModelPickerProps): react.JSX.Element;
379
433
  /** One reasoning-budget level: the engine `id` is unchanged (the value the
380
434
  * product sends to the loop); only the user-facing `label` is renamed to the
381
435
  * plainer "how hard should it think" vocabulary from docs/product-surfaces.md.
@@ -589,4 +643,4 @@ declare function useThinkingSeconds(active: boolean): number;
589
643
  */
590
644
  declare function ChatMessages({ messages, models, renderMarkdown, renderExtras, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, emptyState, header, }: ChatMessagesProps): react.JSX.Element;
591
645
 
592
- export { type ActivityTone, type AgentActivityPage, AgentActivityPanel, type AgentActivityPanelProps, type AgentActivityRecord, AgentSessionControls, type AgentSessionControlsProps, type ChatEmptyDoor, ChatEmptyState, type ChatEmptyStateProps, type ChatMessageMetrics, type ChatMessageSegment, ChatMessages, type ChatMessagesProps, type ChatStreamCallbacks, type ChatStreamToolCall, type ChatStreamToolResult, type ChatToolCallInfo, type ChatUiMessage, type ConsumeChatStreamResult, DEFAULT_EFFORT_LEVELS, type EffortLevel, EffortPicker, type EffortPickerProps, FlowWaterfall, type FlowWaterfallProps, MissionActivityLane, type MissionActivityLaneProps, ModelPicker, type ModelPickerProps, type ProposalApprovalHandlers, ProviderLogo, type ProviderLogoProps, RunDrillIn, type RunDrillInProps, type SandboxTerminalConnection, type SandboxTerminalConnectionResponse, SeatPaywall, type SeatPaywallProps, type SmoothRevealOptions, type StreamChatOptions, type TerminalStatusDisplay, type TerminalStatusTone, type ToolDetailRenderers, type ToolRunRecord, type ToolRunStep, type UseSandboxTerminalConnectionOptions, type UseSandboxTerminalConnectionResult, type WaterfallRow, WorkspaceTerminalPanel, type WorkspaceTerminalPanelProps, activityTone, consumeChatStream, dispatchChatStreamLine, formatActivityCost, formatActivityDuration, formatModelCost, formatTokensPerSecond, mergeActivityPages, nextRevealCount, pendingApprovalOf, streamChatTurn, tabTerminalConnectionId, usePending, usePopover, useSandboxTerminalConnection, useSmoothText, useThinkingSeconds, waterfallLayout };
646
+ export { type ActivityTone, type AgentActivityPage, AgentActivityPanel, type AgentActivityPanelProps, type AgentActivityRecord, AgentSessionControls, type AgentSessionControlsProps, CatalogModel, ChatComposer, type ChatComposerProps, type ChatEmptyDoor, ChatEmptyState, type ChatEmptyStateProps, type ChatMessageMetrics, type ChatMessageSegment, ChatMessages, type ChatMessagesProps, type ChatStreamCallbacks, type ChatStreamToolCall, type ChatStreamToolResult, type ChatToolCallInfo, type ChatUiMessage, type ComposerFile, type ConsumeChatStreamResult, DEFAULT_EFFORT_LEVELS, type EffortLevel, EffortPicker, type EffortPickerProps, FlowWaterfall, type FlowWaterfallProps, MissionActivityLane, type MissionActivityLaneProps, ModelPicker, type ModelPickerProps, type ProposalApprovalHandlers, ProviderLogo, type ProviderLogoProps, RunDrillIn, type RunDrillInProps, type SandboxTerminalConnection, type SandboxTerminalConnectionResponse, SeatPaywall, type SeatPaywallProps, type SmoothRevealOptions, type StreamChatOptions, type TerminalStatusDisplay, type TerminalStatusTone, type ToolDetailRenderers, type ToolRunRecord, type ToolRunStep, type UseSandboxTerminalConnectionOptions, type UseSandboxTerminalConnectionResult, type WaterfallRow, WorkspaceTerminalPanel, type WorkspaceTerminalPanelProps, activityTone, consumeChatStream, dispatchChatStreamLine, formatActivityCost, formatActivityDuration, formatModelCost, formatTokensPerSecond, mergeActivityPages, nextRevealCount, pendingApprovalOf, streamChatTurn, tabTerminalConnectionId, usePending, usePopover, useSandboxTerminalConnection, useSmoothText, useThinkingSeconds, waterfallLayout };