@tangle-network/agent-app 0.42.5 → 0.42.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DesignCanvas-AOIVN3SJ.js → DesignCanvas-GUTCY763.js} +2 -2
- package/dist/{DesignCanvasEditor-QQNAZRJQ.js → DesignCanvasEditor-ZO4V7H6A.js} +4 -4
- package/dist/{TimelineEditor-Z7C6BFP5.js → TimelineEditor-SNOAGBV6.js} +2 -2
- package/dist/brand/index.d.ts +35 -0
- package/dist/brand/index.js +89 -0
- package/dist/brand/index.js.map +1 -0
- package/dist/{chunk-YYYXGLLQ.js → chunk-6JYDS34Y.js} +184 -54
- package/dist/chunk-6JYDS34Y.js.map +1 -0
- package/dist/{chunk-FJUOBNIY.js → chunk-A5Z53E3A.js} +3 -3
- package/dist/{chunk-V5XZKHCL.js → chunk-AFQXKJAE.js} +132 -2
- package/dist/chunk-AFQXKJAE.js.map +1 -0
- package/dist/{chunk-S6WS2B32.js → chunk-EX3LD5G6.js} +322 -122
- package/dist/chunk-EX3LD5G6.js.map +1 -0
- package/dist/{chunk-DTS5TZRN.js → chunk-MFI4ZM7W.js} +2 -2
- package/dist/chunk-MFI4ZM7W.js.map +1 -0
- package/dist/{chunk-YEWTVDDT.js → chunk-OVUQNKLM.js} +379 -323
- package/dist/chunk-OVUQNKLM.js.map +1 -0
- package/dist/chunk-ZN5J47UX.js +1 -0
- package/dist/chunk-ZN5J47UX.js.map +1 -0
- package/dist/{command-stack-CkjelfK_.d.ts → command-stack-CcWi_2bN.d.ts} +15 -0
- package/dist/design-canvas-react/engine.d.ts +2 -2
- package/dist/design-canvas-react/engine.js +5 -6
- package/dist/design-canvas-react/index.d.ts +61 -8
- package/dist/design-canvas-react/index.js +10 -9
- package/dist/design-canvas-react/lazy.d.ts +2 -2
- package/dist/design-canvas-react/lazy.js +1 -1
- package/dist/{lazy-BHHqS8-j.d.ts → lazy-2XBVp1_e.d.ts} +6 -2
- package/dist/sequences-react/index.d.ts +94 -2
- package/dist/sequences-react/index.js +12 -2
- package/dist/sequences-react/index.js.map +1 -1
- package/dist/studio/index.d.ts +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/studio-react/index.js +1 -1
- package/dist/teams/index.js +5 -5
- package/dist/teams/invitations-api.js +1 -1
- package/dist/teams/resend.d.ts +36 -0
- package/dist/teams/resend.js +38 -0
- package/dist/teams/resend.js.map +1 -0
- package/dist/web-react/index.d.ts +57 -6
- package/dist/web-react/index.js +361 -200
- package/dist/web-react/index.js.map +1 -1
- package/package.json +25 -10
- package/dist/chunk-DTS5TZRN.js.map +0 -1
- package/dist/chunk-S6WS2B32.js.map +0 -1
- package/dist/chunk-SQV7NUEM.js +0 -136
- package/dist/chunk-SQV7NUEM.js.map +0 -1
- package/dist/chunk-V5XZKHCL.js.map +0 -1
- package/dist/chunk-YEWTVDDT.js.map +0 -1
- package/dist/chunk-YYYXGLLQ.js.map +0 -1
- /package/dist/{DesignCanvas-AOIVN3SJ.js.map → DesignCanvas-GUTCY763.js.map} +0 -0
- /package/dist/{DesignCanvasEditor-QQNAZRJQ.js.map → DesignCanvasEditor-ZO4V7H6A.js.map} +0 -0
- /package/dist/{TimelineEditor-Z7C6BFP5.js.map → TimelineEditor-SNOAGBV6.js.map} +0 -0
- /package/dist/{chunk-FJUOBNIY.js.map → chunk-A5Z53E3A.js.map} +0 -0
|
@@ -375,13 +375,32 @@ interface ModelPickerProps {
|
|
|
375
375
|
* sorts providers by tier).
|
|
376
376
|
*/
|
|
377
377
|
declare function ModelPicker({ value, onChange, models, loading, renderProviderBadge, recommendedLabel }: ModelPickerProps): react.JSX.Element;
|
|
378
|
+
/** One reasoning-budget level: the engine `id` is unchanged (the value the
|
|
379
|
+
* product sends to the loop); only the user-facing `label` is renamed to the
|
|
380
|
+
* plainer "how hard should it think" vocabulary from docs/product-surfaces.md.
|
|
381
|
+
* `low`→Quick, `medium`→Standard, `high`→Extended. The mapping is overridable
|
|
382
|
+
* via `EffortPickerProps.levels`, so a product can relabel without losing the
|
|
383
|
+
* ids the runtime expects. */
|
|
384
|
+
interface EffortLevel {
|
|
385
|
+
id: string;
|
|
386
|
+
label: string;
|
|
387
|
+
}
|
|
388
|
+
declare const DEFAULT_EFFORT_LEVELS: readonly EffortLevel[];
|
|
378
389
|
interface EffortPickerProps {
|
|
379
390
|
value: string;
|
|
380
391
|
onChange: (id: string) => void;
|
|
392
|
+
/** Selectable levels (engine id + user-facing label). Defaults to the plain
|
|
393
|
+
* "Thinking" vocabulary; override to relabel without changing the ids the
|
|
394
|
+
* runtime receives. */
|
|
395
|
+
levels?: readonly EffortLevel[];
|
|
396
|
+
/** Prefix shown before the active level on the pill — the "what is this"
|
|
397
|
+
* context the bare value lacked. Default "Thinking". Pass '' to hide it. */
|
|
398
|
+
label?: string;
|
|
381
399
|
}
|
|
382
|
-
/**
|
|
383
|
-
* it only when the selected model `supportsReasoning`.
|
|
384
|
-
|
|
400
|
+
/** Thinking-budget selector pill, styled to match {@link ModelPicker}. Show
|
|
401
|
+
* it only when the selected model `supportsReasoning`. "Thinking" is the
|
|
402
|
+
* plain-English name for what was internally called "effort". */
|
|
403
|
+
declare function EffortPicker({ value, onChange, levels, label }: EffortPickerProps): react.JSX.Element;
|
|
385
404
|
|
|
386
405
|
interface AgentSessionControlsProps {
|
|
387
406
|
/** Catalog models — canonical provider-prefixed ids. */
|
|
@@ -514,9 +533,41 @@ interface ChatMessagesProps {
|
|
|
514
533
|
* retry button (e.g. when the product retries automatically). */
|
|
515
534
|
onRetry?: () => void;
|
|
516
535
|
/** Zero-state renderer, shown when there are no messages and the turn is
|
|
517
|
-
* neither loading nor errored.
|
|
536
|
+
* neither loading nor errored. When omitted, a branded first-run state is
|
|
537
|
+
* shown ({@link ChatEmptyState}); pass `() => null` to render nothing. */
|
|
518
538
|
renderEmpty?: () => ReactNode;
|
|
539
|
+
/** First-run state config used when `renderEmpty` is not supplied. Lets a
|
|
540
|
+
* product set the headline and the "doors" (e.g. start from a template, ask
|
|
541
|
+
* the agent) without replacing the whole zero-state. */
|
|
542
|
+
emptyState?: ChatEmptyStateProps;
|
|
543
|
+
/** Optional branded header slot rendered above the thread. Off by default to
|
|
544
|
+
* preserve the current layout; pass `{ title }` (or your own node via
|
|
545
|
+
* `header`) to show the Tangle mark + product title in the chat shell. */
|
|
546
|
+
header?: ReactNode;
|
|
519
547
|
}
|
|
548
|
+
/** One starting "door" in the chat first-run state — a concrete, labeled action
|
|
549
|
+
* (start from a template, do it by hand, ask the agent), not a placeholder. */
|
|
550
|
+
interface ChatEmptyDoor {
|
|
551
|
+
label: string;
|
|
552
|
+
description?: string;
|
|
553
|
+
onSelect: () => void;
|
|
554
|
+
}
|
|
555
|
+
interface ChatEmptyStateProps {
|
|
556
|
+
/** Product name shown next to the Tangle mark. Default "Agent". */
|
|
557
|
+
productName?: string;
|
|
558
|
+
/** Headline. Default frames delegation, not messaging. */
|
|
559
|
+
headline?: string;
|
|
560
|
+
/** Subline under the headline. */
|
|
561
|
+
subline?: string;
|
|
562
|
+
/** Up to three concrete starting doors. Omit for a mark-and-prompt-only state. */
|
|
563
|
+
doors?: ChatEmptyDoor[];
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Branded chat first-run state: the Tangle mark, a delegation-framed prompt, and
|
|
567
|
+
* up to three concrete doors. Replaces the blank thread that read as "empty or
|
|
568
|
+
* broken". Concrete + actionable — never a "coming soon" placeholder.
|
|
569
|
+
*/
|
|
570
|
+
declare function ChatEmptyState({ productName, headline, subline, doors, }: ChatEmptyStateProps): react.JSX.Element;
|
|
520
571
|
interface ProposalApprovalHandlers {
|
|
521
572
|
onApprove: (proposalId: string, toolCallId: string) => void | Promise<void>;
|
|
522
573
|
onReject: (proposalId: string, toolCallId: string) => void | Promise<void>;
|
|
@@ -530,6 +581,6 @@ type ToolDetailRenderers = Record<string, (call: ChatToolCallInfo, message: Chat
|
|
|
530
581
|
* model id, tokens/sec, and cost, plus a collapsible thinking section and
|
|
531
582
|
* tool-call chips.
|
|
532
583
|
*/
|
|
533
|
-
declare function ChatMessages({ messages, models, renderMarkdown, renderExtras, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, }: ChatMessagesProps): react.JSX.Element;
|
|
584
|
+
declare function ChatMessages({ messages, models, renderMarkdown, renderExtras, userLabel, agentLabel, loading, approval, onToolCallClick, toolRenderers, error, onRetry, renderEmpty, emptyState, header, }: ChatMessagesProps): react.JSX.Element;
|
|
534
585
|
|
|
535
|
-
export { type ActivityTone, type AgentActivityPage, AgentActivityPanel, type AgentActivityPanelProps, type AgentActivityRecord, AgentSessionControls, type AgentSessionControlsProps, type ChatMessageMetrics, type ChatMessageSegment, ChatMessages, type ChatMessagesProps, type ChatStreamCallbacks, type ChatStreamToolCall, type ChatStreamToolResult, type ChatToolCallInfo, type ChatUiMessage, type ConsumeChatStreamResult, 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, waterfallLayout };
|
|
586
|
+
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, waterfallLayout };
|