@ai-matrx/chat 0.3.11 → 0.3.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.
Files changed (129) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/agent-copy/export.d.ts +10 -2
  3. package/dist/agent-copy/export.js +3 -2
  4. package/dist/agents/components/agent-widgets/chat-assistant/CompactAssistantInput.js +1 -1
  5. package/dist/agents/components/debug/SandboxFileViewer.js +1 -3
  6. package/dist/agents/components/inputs/AgentVariablesInline.js +1 -1
  7. package/dist/agents/components/inputs/smart-input/AgentTextarea.js +1 -1
  8. package/dist/agents/components/inputs/smart-input/InputActionButtons.js +1 -1
  9. package/dist/agents/components/inputs/smart-input/composer/ComposerAgentPeek.js +6 -6
  10. package/dist/agents/components/messages-display/TranscriptIntegrityCopyButton.js +4 -4
  11. package/dist/agents/components/messages-display/user/UserActionBar.js +3 -18
  12. package/dist/agents/components/run/AgentRunHeader.js +1 -2
  13. package/dist/agents/components/shared/AgentConversationColumn.js +1 -1
  14. package/dist/agents/components/shared/AgentHeader.js +1 -2
  15. package/dist/agents/components/shared/AgentHeaderMobile.js +1 -2
  16. package/dist/agents/components/working-document/DocumentLinkPicker.d.ts +1 -1
  17. package/dist/agents/components/working-document/WorkingDocumentPanel.js +1 -1
  18. package/dist/agents/components/working-document/documents-workspace/DocumentsListRail.js +2 -2
  19. package/dist/agents/components/working-document/documents-workspace/DocumentsWorkspace.js +2 -2
  20. package/dist/agents/hooks/useInstanceInputUndoRedo.d.ts +1 -1
  21. package/dist/agents/hooks/useInstanceInputUndoRedo.js +1 -1
  22. package/dist/agents/hooks/useWorkingDocument.js +7 -6
  23. package/dist/agents/model-registry/model-classes.d.ts +1 -43
  24. package/dist/agents/model-registry/model-classes.js +1 -40
  25. package/dist/agents/model-registry/parse.d.ts +1 -88
  26. package/dist/agents/model-registry/parse.js +1 -246
  27. package/dist/agents/prompt-preview/PromptPreviewContent.js +1 -3
  28. package/dist/agents/redux/agent-definition/selectors.d.ts +8 -8
  29. package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.d.ts +14 -0
  30. package/dist/agents/redux/execution-system/active-requests/active-requests.selectors.js +30 -0
  31. package/dist/agents/redux/execution-system/client-capabilities/desktop-native.provider.js +10 -1
  32. package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.d.ts +18 -16
  33. package/dist/agents/redux/execution-system/instance-working-document/cx-working-document.service.js +101 -52
  34. package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.slice.d.ts +2 -2
  35. package/dist/agents/redux/execution-system/instance-working-document/instance-working-document.thunks.d.ts +1 -1
  36. package/dist/agents/redux/execution-system/instance-working-document/scratchpad.thunks.d.ts +1 -1
  37. package/dist/agents/redux/execution-system/message-crud/refetch-single-message.thunk.js +5 -0
  38. package/dist/agents/redux/execution-system/thunks/process-stream.js +2 -2
  39. package/dist/agents/redux/execution-system/utils/stream-block-accumulator.d.ts +14 -0
  40. package/dist/agents/redux/execution-system/utils/stream-block-accumulator.js +28 -0
  41. package/dist/agents/utils/platform-keys.d.ts +15 -0
  42. package/dist/agents/utils/platform-keys.js +69 -0
  43. package/dist/context/sources/scopes.d.ts +1 -1
  44. package/dist/cx-chat/components/user-input/ConversationInput.js +1 -1
  45. package/dist/cx-conversation/ConversationInput.js +1 -1
  46. package/dist/host/db-types.d.ts +23242 -23071
  47. package/dist/host/ui-slots.d.ts +50 -64
  48. package/dist/host/ui-slots.js +12 -52
  49. package/dist/public-chat/components/GuidedVariableInputs.js +1 -1
  50. package/dist/public-chat/components/PublicVariableInputs.js +1 -1
  51. package/dist/react.cjs +11 -23
  52. package/dist/react.cjs.map +1 -1
  53. package/dist/react.js +11 -23
  54. package/dist/react.js.map +1 -1
  55. package/dist/surfaces/manifests/_conversation-document.manifest.js +1 -1
  56. package/dist/tool-call-visualization/registry/registry.js +13 -0
  57. package/dist/ui/composer/useTouchOnlyDevice.js +1 -1
  58. package/dist/ui/skills-types.d.ts +1 -275
  59. package/dist/ui/skills-types.js +1 -0
  60. package/dist/voice-agent/components/VoiceDebugPanel.js +1 -3
  61. package/package.json +60 -34
  62. package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.d.ts +0 -15
  63. package/dist/agents/components/run/run-sidebar/AgentRunsSidebar.js +0 -201
  64. package/dist/agents/components/run-controls/AgentExecutionTestModal.d.ts +0 -36
  65. package/dist/agents/components/run-controls/AgentExecutionTestModal.js +0 -440
  66. package/dist/agents/components/run-controls/AgentLauncherSidebarTester.d.ts +0 -6
  67. package/dist/agents/components/run-controls/AgentLauncherSidebarTester.js +0 -127
  68. package/dist/agents/components/run-controls/AgentWidgetInvokerTester.d.ts +0 -6
  69. package/dist/agents/components/run-controls/AgentWidgetInvokerTester.js +0 -84
  70. package/dist/agents/components/run-controls/CreatorRunPanel.d.ts +0 -22
  71. package/dist/agents/components/run-controls/CreatorRunPanel.js +0 -108
  72. package/dist/agents/components/run-controls/CreatorRunTabContent.d.ts +0 -30
  73. package/dist/agents/components/run-controls/CreatorRunTabContent.js +0 -319
  74. package/dist/agents/components/run-controls/PayloadTab.d.ts +0 -5
  75. package/dist/agents/components/run-controls/PayloadTab.js +0 -388
  76. package/dist/agents/components/run-controls/TesterSettingsPanel.d.ts +0 -71
  77. package/dist/agents/components/run-controls/TesterSettingsPanel.js +0 -470
  78. package/dist/agents/components/shared/AgentOptionsMenu.d.ts +0 -8
  79. package/dist/agents/components/shared/AgentOptionsMenu.js +0 -776
  80. package/dist/agents/components/shared/AgentPeekDuplicateButton.d.ts +0 -8
  81. package/dist/agents/components/shared/AgentPeekDuplicateButton.js +0 -66
  82. package/dist/agents/components/shared/AgentSaveStatus.d.ts +0 -7
  83. package/dist/agents/components/shared/AgentSaveStatus.js +0 -128
  84. package/dist/agents/components/shared/AgentSaveTapButton.d.ts +0 -18
  85. package/dist/agents/components/shared/AgentSaveTapButton.js +0 -105
  86. package/dist/agents/components/shared/useAgentSaveAction.d.ts +0 -33
  87. package/dist/agents/components/shared/useAgentSaveAction.js +0 -179
  88. package/dist/agents/components/shell/AgentsListHeader.d.ts +0 -1
  89. package/dist/agents/components/shell/AgentsListHeader.js +0 -69
  90. package/dist/agents/components/undo-history/AgentEditHistory.d.ts +0 -9
  91. package/dist/agents/components/undo-history/AgentEditHistory.js +0 -244
  92. package/dist/agents/components/unused/AgentSharedHeader.d.ts +0 -3
  93. package/dist/agents/components/unused/AgentSharedHeader.js +0 -134
  94. package/dist/agents/components/widgets/AgentWidgetsPage.d.ts +0 -11
  95. package/dist/agents/components/widgets/AgentWidgetsPage.js +0 -571
  96. package/dist/agents/components/widgets/WidgetVariableInputs.d.ts +0 -8
  97. package/dist/agents/components/widgets/WidgetVariableInputs.js +0 -80
  98. package/dist/agents/components/widgets/build-widget-launch.d.ts +0 -70
  99. package/dist/agents/components/widgets/build-widget-launch.js +0 -90
  100. package/dist/agents/hooks/useAgentAutoSave.d.ts +0 -1
  101. package/dist/agents/hooks/useAgentAutoSave.js +0 -127
  102. package/dist/agents/hooks/useAgentBuilderWriteHandlers.d.ts +0 -9
  103. package/dist/agents/hooks/useAgentBuilderWriteHandlers.js +0 -102
  104. package/dist/agents/hooks/useAgentDuplicateFlow.d.ts +0 -25
  105. package/dist/agents/hooks/useAgentDuplicateFlow.js +0 -133
  106. package/dist/agents/hooks/useAgentUndoRedo.d.ts +0 -31
  107. package/dist/agents/hooks/useAgentUndoRedo.js +0 -134
  108. package/dist/agents/hooks/useAgentUsages.d.ts +0 -17
  109. package/dist/agents/hooks/useAgentUsages.js +0 -36
  110. package/dist/agents/hooks/useDriftAlerts.d.ts +0 -11
  111. package/dist/agents/hooks/useDriftAlerts.js +0 -36
  112. package/dist/agents/hooks/useDriftReport.d.ts +0 -20
  113. package/dist/agents/hooks/useDriftReport.js +0 -34
  114. package/dist/agents/lifecycle/useAgentLifecycleActions.d.ts +0 -17
  115. package/dist/agents/lifecycle/useAgentLifecycleActions.js +0 -63
  116. package/dist/agents/message-flags/useMessageFlags.d.ts +0 -8
  117. package/dist/agents/message-flags/useMessageFlags.js +0 -68
  118. package/dist/agents/services/agent-definition-snapshot.service.d.ts +0 -15
  119. package/dist/agents/services/agent-definition-snapshot.service.js +0 -20
  120. package/dist/agents/surface-catalog-profile.d.ts +0 -96
  121. package/dist/agents/surface-catalog-profile.js +0 -79
  122. package/dist/cx-chat/hooks/useAgentBootstrap.d.ts +0 -1
  123. package/dist/cx-chat/hooks/useAgentBootstrap.js +0 -110
  124. package/dist/host/builder-door.d.ts +0 -61
  125. package/dist/host/builder-door.js +0 -25
  126. package/dist/next/lazy/CreatorRunPanel.d.ts +0 -1
  127. package/dist/next/lazy/CreatorRunPanel.js +0 -11
  128. package/dist/ui/composer/composerSubmit.d.ts +0 -50
  129. package/dist/ui/composer/composerSubmit.js +0 -32
@@ -1,470 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { Label } from "@ai-matrx/design-system";
3
- import { Switch } from "../../../ui/switch.js";
4
- import {
5
- Select,
6
- SelectContent,
7
- SelectItem,
8
- SelectTrigger,
9
- SelectValue
10
- } from "@ai-matrx/design-system";
11
- import {
12
- VARIABLE_PANEL_STYLE_OPTIONS
13
- } from "../inputs/variable-input-variations/variable-input-options.js";
14
- import { VoiceTextarea } from "../../../host/ui-slots.js";
15
- import { ErrorAlchemyMenu } from "../../../host/ui-slots.js";
16
- function SwitchRow({
17
- id,
18
- label,
19
- checked,
20
- onCheckedChange,
21
- disabled,
22
- title
23
- }) {
24
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", title, children: [
25
- /* @__PURE__ */ jsx(
26
- Label,
27
- {
28
- htmlFor: id,
29
- className: `text-[11px] leading-tight ${disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground cursor-pointer"}`,
30
- "aria-disabled": disabled,
31
- children: label
32
- }
33
- ),
34
- /* @__PURE__ */ jsx(
35
- Switch,
36
- {
37
- id,
38
- checked,
39
- onCheckedChange,
40
- disabled,
41
- className: "shrink-0"
42
- }
43
- )
44
- ] });
45
- }
46
- function SectionLabel({ children }) {
47
- return /* @__PURE__ */ jsx("div", { className: "pt-2 pb-0.5 text-[9.5px] font-semibold uppercase tracking-wider text-primary", children });
48
- }
49
- function TesterSettingsPanel({
50
- controller: c,
51
- quickTest,
52
- idPrefix = "tester"
53
- }) {
54
- return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
55
- /* @__PURE__ */ jsx(SectionLabel, { children: "General" }),
56
- /* @__PURE__ */ jsx(
57
- SwitchRow,
58
- {
59
- id: `${idPrefix}-auto-run`,
60
- label: "Auto Run",
61
- checked: c.autoRun,
62
- onCheckedChange: c.setAutoRun,
63
- title: "Start execution immediately after launch"
64
- }
65
- ),
66
- /* @__PURE__ */ jsx(
67
- SwitchRow,
68
- {
69
- id: `${idPrefix}-show-variable-panel`,
70
- label: "Show Variables Panel",
71
- checked: c.showVariablePanel,
72
- onCheckedChange: c.setShowVariablePanel,
73
- title: "Render the variable input panel inside the widget"
74
- }
75
- ),
76
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", children: [
77
- /* @__PURE__ */ jsx(
78
- Label,
79
- {
80
- htmlFor: `${idPrefix}-variables-panel-style`,
81
- className: `text-[11px] leading-tight ${c.showVariablePanel ? "text-foreground cursor-pointer" : "text-muted-foreground cursor-not-allowed"}`,
82
- "aria-disabled": !c.showVariablePanel,
83
- children: "Variables Panel Style"
84
- }
85
- ),
86
- /* @__PURE__ */ jsxs(
87
- Select,
88
- {
89
- value: c.variablesPanelStyle,
90
- onValueChange: (v) => c.setVariablesPanelStyle(v),
91
- disabled: !c.showVariablePanel,
92
- children: [
93
- /* @__PURE__ */ jsx(
94
- SelectTrigger,
95
- {
96
- id: `${idPrefix}-variables-panel-style`,
97
- size: "sm",
98
- className: "h-5 min-w-[4.5rem] max-w-[4.5rem] shrink-0 text-[11px] px-1.5",
99
- children: /* @__PURE__ */ jsx(SelectValue, {})
100
- }
101
- ),
102
- /* @__PURE__ */ jsx(SelectContent, { children: VARIABLE_PANEL_STYLE_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
103
- SelectItem,
104
- {
105
- value: opt.value,
106
- title: opt.description,
107
- children: opt.label
108
- },
109
- opt.value
110
- )) })
111
- ]
112
- }
113
- )
114
- ] }),
115
- /* @__PURE__ */ jsx(
116
- SwitchRow,
117
- {
118
- id: `${idPrefix}-show-pre-execution-gate`,
119
- label: "Show Pre-Execution Gate",
120
- checked: c.showPreExecutionGate,
121
- onCheckedChange: c.setShowPreExecutionGate,
122
- title: "Show a gate UI before executing where the user provides initial text"
123
- }
124
- ),
125
- c.showPreExecutionGate && /* @__PURE__ */ jsx(
126
- "input",
127
- {
128
- id: `${idPrefix}-pre-execution-message`,
129
- type: "text",
130
- value: c.preExecutionMessage,
131
- onChange: (e) => c.setPreExecutionMessage(e.target.value),
132
- placeholder: "Pre-execution message",
133
- className: "h-6 w-full rounded-md border border-border bg-background px-2 text-[11px] leading-tight placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
134
- }
135
- ),
136
- /* @__PURE__ */ jsx(
137
- SwitchRow,
138
- {
139
- id: `${idPrefix}-show-definition-messages`,
140
- label: "Show Definition Messages",
141
- checked: c.showDefinitionMessages,
142
- onCheckedChange: c.setShowDefinitionMessages
143
- }
144
- ),
145
- /* @__PURE__ */ jsx(
146
- SwitchRow,
147
- {
148
- id: `${idPrefix}-show-definition-content`,
149
- label: "Show Definition Content",
150
- checked: c.showDefinitionMessageContent,
151
- onCheckedChange: c.setShowDefinitionMessageContent,
152
- title: "Reveal raw template content inside definition messages"
153
- }
154
- ),
155
- /* @__PURE__ */ jsx(
156
- SwitchRow,
157
- {
158
- id: `${idPrefix}-allow-chat`,
159
- label: "Allow Chat",
160
- checked: c.allowChat,
161
- onCheckedChange: c.setAllowChat,
162
- title: "Permit multi-turn follow-ups after the first response"
163
- }
164
- ),
165
- /* @__PURE__ */ jsx(
166
- SwitchRow,
167
- {
168
- id: `${idPrefix}-hide-reasoning`,
169
- label: "Hide Reasoning",
170
- checked: c.hideReasoning,
171
- onCheckedChange: c.setHideReasoning
172
- }
173
- ),
174
- /* @__PURE__ */ jsx(
175
- SwitchRow,
176
- {
177
- id: `${idPrefix}-hide-tool-results`,
178
- label: "Hide Tool Results",
179
- checked: c.hideToolResults,
180
- onCheckedChange: c.setHideToolResults
181
- }
182
- ),
183
- /* @__PURE__ */ jsxs("div", { className: "pt-2 pb-0.5 flex items-center justify-between gap-2", children: [
184
- /* @__PURE__ */ jsx(
185
- Label,
186
- {
187
- htmlFor: `${idPrefix}-include-editor-context`,
188
- className: "text-[9.5px] font-semibold uppercase tracking-wider text-primary cursor-pointer",
189
- children: "Editor Context"
190
- }
191
- ),
192
- /* @__PURE__ */ jsx(
193
- Switch,
194
- {
195
- id: `${idPrefix}-include-editor-context`,
196
- checked: c.includeEditorContext,
197
- onCheckedChange: c.setIncludeEditorContext,
198
- className: "shrink-0"
199
- }
200
- )
201
- ] }),
202
- /* @__PURE__ */ jsxs(
203
- "div",
204
- {
205
- className: `space-y-1.5 ${c.includeEditorContext ? "" : "opacity-50"}`,
206
- "aria-disabled": !c.includeEditorContext,
207
- title: c.includeEditorContext ? void 0 : "Turn on the Editor Context switch to include these values in the request",
208
- children: [
209
- /* @__PURE__ */ jsx(
210
- EditorContextField,
211
- {
212
- id: `${idPrefix}-editor-selection`,
213
- label: "Selection",
214
- value: c.editorSelection,
215
- onChange: c.setEditorSelection,
216
- rows: 2
217
- }
218
- ),
219
- /* @__PURE__ */ jsx(
220
- EditorContextField,
221
- {
222
- id: `${idPrefix}-editor-before`,
223
- label: "Text Before",
224
- value: c.editorTextBefore,
225
- onChange: c.setEditorTextBefore,
226
- rows: 2
227
- }
228
- ),
229
- /* @__PURE__ */ jsx(
230
- EditorContextField,
231
- {
232
- id: `${idPrefix}-editor-after`,
233
- label: "Text After",
234
- value: c.editorTextAfter,
235
- onChange: c.setEditorTextAfter,
236
- rows: 2
237
- }
238
- ),
239
- /* @__PURE__ */ jsx(
240
- EditorContextField,
241
- {
242
- id: `${idPrefix}-editor-content`,
243
- label: "Full Content",
244
- value: c.editorContent,
245
- onChange: c.setEditorContent,
246
- rows: 3
247
- }
248
- ),
249
- /* @__PURE__ */ jsx(
250
- EditorContextField,
251
- {
252
- id: `${idPrefix}-editor-context`,
253
- label: "Context policies",
254
- value: c.editorContext,
255
- onChange: c.setEditorContext,
256
- rows: 2
257
- }
258
- )
259
- ]
260
- }
261
- ),
262
- quickTest && /* @__PURE__ */ jsxs(Fragment, { children: [
263
- /* @__PURE__ */ jsx(SectionLabel, { children: "Quick Test Features" }),
264
- /* @__PURE__ */ jsx(
265
- SwitchRow,
266
- {
267
- id: `${idPrefix}-apply-variables`,
268
- label: "Apply My Local Variables",
269
- checked: quickTest.applyVariables,
270
- onCheckedChange: quickTest.setApplyVariables,
271
- title: "Send the active conversation's resolved variable values"
272
- }
273
- ),
274
- /* @__PURE__ */ jsx(
275
- SwitchRow,
276
- {
277
- id: `${idPrefix}-apply-user-input`,
278
- label: "Apply My Local User Input",
279
- checked: quickTest.applyUserInput,
280
- onCheckedChange: quickTest.setApplyUserInput,
281
- title: "Send the active conversation's current user input text"
282
- }
283
- ),
284
- /* @__PURE__ */ jsx(
285
- SwitchRow,
286
- {
287
- id: `${idPrefix}-apply-app-context`,
288
- label: "Apply My Local Scopes",
289
- checked: quickTest.applyAppContext,
290
- onCheckedChange: quickTest.setApplyAppContext,
291
- title: "Construct an Application Scope from the active state"
292
- }
293
- )
294
- ] }),
295
- /* @__PURE__ */ jsx(SectionLabel, { children: "Advanced Controls" }),
296
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", children: [
297
- /* @__PURE__ */ jsx(
298
- Label,
299
- {
300
- htmlFor: `${idPrefix}-api-endpoint-mode`,
301
- className: "text-[11px] cursor-pointer leading-tight",
302
- children: "API Endpoint Mode"
303
- }
304
- ),
305
- /* @__PURE__ */ jsxs(
306
- Select,
307
- {
308
- value: c.apiEndpointMode,
309
- onValueChange: (v) => c.setApiEndpointMode(v),
310
- children: [
311
- /* @__PURE__ */ jsx(
312
- SelectTrigger,
313
- {
314
- id: `${idPrefix}-api-endpoint-mode`,
315
- size: "sm",
316
- className: "h-5 min-w-[4.5rem] max-w-[4.5rem] shrink-0 text-[11px] px-1.5",
317
- children: /* @__PURE__ */ jsx(SelectValue, {})
318
- }
319
- ),
320
- /* @__PURE__ */ jsxs(SelectContent, { children: [
321
- /* @__PURE__ */ jsx(SelectItem, { value: "agent", children: "Agent" }),
322
- /* @__PURE__ */ jsx(SelectItem, { value: "manual", children: "Manual" })
323
- ] })
324
- ]
325
- }
326
- )
327
- ] }),
328
- /* @__PURE__ */ jsx(
329
- SwitchRow,
330
- {
331
- id: `${idPrefix}-show-auto-clear-toggle`,
332
- label: "Show Auto-Clear Toggle",
333
- checked: c.showAutoClearToggle,
334
- onCheckedChange: c.setShowAutoClearToggle,
335
- title: "Render the auto-clear toggle inside the widget's input area"
336
- }
337
- ),
338
- /* @__PURE__ */ jsx(
339
- SwitchRow,
340
- {
341
- id: `${idPrefix}-auto-clear`,
342
- label: "Initial Auto-Clear Value",
343
- checked: c.autoClearConversation,
344
- onCheckedChange: c.setAutoClearConversation,
345
- title: "Initial value for the widget's auto-clear behavior"
346
- }
347
- ),
348
- /* @__PURE__ */ jsx(
349
- SwitchRow,
350
- {
351
- id: `${idPrefix}-json-extraction`,
352
- label: "JSON Extraction",
353
- checked: c.jsonExtractionEnabled,
354
- onCheckedChange: c.setJsonExtractionEnabled,
355
- title: "Run StreamingJsonTracker during this request"
356
- }
357
- ),
358
- /* @__PURE__ */ jsx(
359
- SwitchRow,
360
- {
361
- id: `${idPrefix}-json-fuzzy`,
362
- label: "Fuzzy On Finalize",
363
- checked: c.jsonExtractionFuzzy,
364
- onCheckedChange: c.setJsonExtractionFuzzy,
365
- disabled: !c.jsonExtractionEnabled
366
- }
367
- ),
368
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-1", children: [
369
- /* @__PURE__ */ jsx(
370
- Label,
371
- {
372
- htmlFor: `${idPrefix}-json-max`,
373
- className: `text-[11px] leading-tight ${c.jsonExtractionEnabled ? "text-foreground cursor-pointer" : "text-muted-foreground cursor-not-allowed"}`,
374
- children: "Max Results"
375
- }
376
- ),
377
- /* @__PURE__ */ jsx(
378
- "input",
379
- {
380
- id: `${idPrefix}-json-max`,
381
- type: "number",
382
- min: 1,
383
- value: c.jsonExtractionMaxResults,
384
- onChange: (e) => c.setJsonExtractionMaxResults(e.target.value),
385
- disabled: !c.jsonExtractionEnabled,
386
- placeholder: "\u221E",
387
- className: "h-5 w-16 shrink-0 rounded-md border border-border bg-background px-1.5 text-[11px] leading-tight focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"
388
- }
389
- )
390
- ] }),
391
- /* @__PURE__ */ jsx(
392
- JsonTextareaField,
393
- {
394
- id: `${idPrefix}-overrides`,
395
- label: "LLM Overrides (JSON)",
396
- value: c.overridesJson,
397
- onChange: c.setOverridesJson,
398
- placeholder: `{ "temperature": 0.2 }`
399
- }
400
- ),
401
- /* @__PURE__ */ jsx(
402
- JsonTextareaField,
403
- {
404
- id: `${idPrefix}-app-scope`,
405
- label: "Application Scope (JSON)",
406
- value: c.applicationScopeJson,
407
- onChange: c.setApplicationScopeJson,
408
- placeholder: `{ "selection": "..." }`
409
- }
410
- ),
411
- c.jsonError && /* @__PURE__ */ jsxs("div", { className: "rounded-md border border-destructive/40 bg-destructive/10 px-1.5 py-1 text-[10.5px] text-destructive-ink leading-tight", children: [
412
- c.jsonError,
413
- /* @__PURE__ */ jsx(ErrorAlchemyMenu, {})
414
- ] })
415
- ] });
416
- }
417
- function EditorContextField({
418
- id,
419
- label,
420
- value,
421
- onChange,
422
- rows
423
- }) {
424
- return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
425
- /* @__PURE__ */ jsx(
426
- Label,
427
- {
428
- htmlFor: id,
429
- className: "text-[10.5px] text-muted-foreground cursor-pointer leading-tight",
430
- children: label
431
- }
432
- ),
433
- /* @__PURE__ */ jsx(
434
- VoiceTextarea,
435
- {
436
- id,
437
- value,
438
- onChange: (e) => onChange(e.target.value),
439
- rows,
440
- className: "pl-1.5 py-1 text-[11px] leading-tight placeholder:text-muted-foreground"
441
- }
442
- )
443
- ] });
444
- }
445
- function JsonTextareaField({
446
- id,
447
- label,
448
- value,
449
- onChange,
450
- placeholder
451
- }) {
452
- return /* @__PURE__ */ jsxs("div", { className: "space-y-0.5", children: [
453
- /* @__PURE__ */ jsx(Label, { htmlFor: id, className: "text-[11px] cursor-pointer leading-tight", children: label }),
454
- /* @__PURE__ */ jsx(
455
- "textarea",
456
- {
457
- id,
458
- value,
459
- onChange: (e) => onChange(e.target.value),
460
- rows: 3,
461
- spellCheck: false,
462
- placeholder,
463
- className: "w-full resize-y rounded-md border border-border bg-background px-1.5 py-1 font-mono text-[10.5px] leading-tight placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
464
- }
465
- )
466
- ] });
467
- }
468
- export {
469
- TesterSettingsPanel
470
- };
@@ -1,8 +0,0 @@
1
- export declare function AgentOptionsMenu({ agentId, asTapTarget, basePath, }: {
2
- agentId: string;
3
- asTapTarget?: boolean;
4
- /** Base path for routing. Defaults to `/agents`. Admin surfaces pass
5
- * `/administration/agents/system-agents/agents` so internal links stay in the
6
- * admin context. */
7
- basePath?: string;
8
- }): import("react").JSX.Element;