@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 +18 -2
- package/dist/chat.js +1 -1
- package/dist/{chunk-I5HGKZCB.js → chunk-A4AABEX4.js} +446 -326
- package/dist/globals.css +3 -6
- package/dist/index.js +1 -1
- package/dist/styles.css +3 -6
- package/package.json +1 -1
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
|
-
*
|
|
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
|
/**
|