@tangle-network/sandbox-ui 0.96.0 → 0.97.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/dist/chat.d.ts CHANGED
@@ -106,7 +106,17 @@ interface AgentProfilePickerProps {
106
106
  onUpdate?: (id: string, draft: AgentProfileDraft) => void | Promise<void>;
107
107
  onDelete?: (id: string) => void | Promise<void>;
108
108
  disabled?: boolean;
109
+ /** Keep the pinned profile visible while preventing profile selection. */
110
+ locked?: boolean;
111
+ /** Tooltip shown on the locked trigger when no `onNewChat` is provided. */
112
+ lockReason?: string;
113
+ /** Offer a fresh chat from the informative lock popover. */
114
+ onNewChat?: () => void;
109
115
  className?: string;
116
+ /** Additional classes for the picker trigger. */
117
+ triggerClassName?: string;
118
+ /** Additional classes for the profile popover. */
119
+ popoverClassName?: string;
110
120
  /** Side the menu opens toward. Defaults to up (composer-anchored). */
111
121
  side?: "top" | "bottom";
112
122
  }
@@ -119,7 +129,7 @@ interface AgentProfilePickerProps {
119
129
  * because the inline form needs its own focus and typing without the menu
120
130
  * stealing keystrokes.
121
131
  */
122
- declare function AgentProfilePicker({ value, onChange, profiles, capabilities, onCreate, onUpdate, onDelete, disabled, className, side, }: AgentProfilePickerProps): React.JSX.Element;
132
+ declare function AgentProfilePicker({ value, onChange, profiles, capabilities, onCreate, onUpdate, onDelete, disabled, locked, lockReason, onNewChat, className, triggerClassName, popoverClassName, side, }: AgentProfilePickerProps): React.JSX.Element;
123
133
 
124
134
  interface AgentSessionHarnessControl {
125
135
  value: HarnessType;
@@ -184,7 +194,7 @@ interface AgentSessionReasoningControl {
184
194
  /**
185
195
  * Agent-profile (mode / toolset / persona) selection. Backend-agnostic — it
186
196
  * sits beside the model in both router-backed and sandbox-backed modes, so the
187
- * same session can switch the agent's identity without touching the harness.
197
+ * profile binding remains independent of harness selection.
188
198
  */
189
199
  interface AgentSessionProfileControl {
190
200
  value: string;
@@ -196,6 +206,12 @@ interface AgentSessionProfileControl {
196
206
  onUpdate?: (id: string, draft: AgentProfileDraft) => void | Promise<void>;
197
207
  onDelete?: (id: string) => void | Promise<void>;
198
208
  disabled?: boolean;
209
+ /** Keep the profile pinned once this conversation has started. */
210
+ locked?: boolean;
211
+ /** Tooltip shown on the locked trigger when no `onNewChat` is provided. */
212
+ lockReason?: string;
213
+ /** Start a fresh chat where the user can select another profile. */
214
+ onNewChat?: () => void;
199
215
  }
200
216
  interface AgentSessionControlsProps {
201
217
  /**
package/dist/chat.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  snapHarnessToModel,
20
20
  snapModelToHarness,
21
21
  validateComposerFiles
22
- } from "./chunk-I5HGKZCB.js";
22
+ } from "./chunk-A4AABEX4.js";
23
23
  import "./chunk-TK46XFLM.js";
24
24
  import {
25
25
  MENTION_PILL_CLASS