@solidxai/core-ui 0.1.22 → 0.1.23-beta.2
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/components/core/solid-agent/SolidAgent.module.css +65 -0
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.js +190 -64
- package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -1
- package/dist/components/core/solid-agent/SolidAgentChat.tsx +201 -5
- package/dist/components/core/solid-agent/agentEvents.d.ts.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.js +21 -18
- package/dist/components/core/solid-agent/agentEvents.js.map +1 -1
- package/dist/components/core/solid-agent/agentEvents.ts +7 -3
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts +8 -5
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.js +71 -23
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.ts +52 -25
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts +5 -0
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.js +90 -5
- package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentRuntime.ts +37 -1
- package/dist/components/core/solid-agent/client/agentSocket.d.ts +5 -0
- package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.js +19 -2
- package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -1
- package/dist/components/core/solid-agent/client/agentSocket.ts +12 -2
- package/dist/components/core/solid-agent/humanReview.d.ts +5 -1
- package/dist/components/core/solid-agent/humanReview.d.ts.map +1 -1
- package/dist/components/core/solid-agent/humanReview.js +35 -4
- package/dist/components/core/solid-agent/humanReview.js.map +1 -1
- package/dist/components/core/solid-agent/humanReview.ts +37 -5
- package/dist/components/core/solid-agent/types.d.ts +57 -0
- package/dist/components/core/solid-agent/types.d.ts.map +1 -1
- package/dist/components/core/solid-agent/types.js.map +1 -1
- package/dist/components/core/solid-agent/types.ts +25 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.d.ts +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.js +5 -5
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentChatHeaderWidget.tsx +2 -6
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.js +4 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultAgentToolCallWidget.tsx +5 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.d.ts.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js +2 -3
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js.map +1 -1
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.tsx +0 -2
- package/dist/components/core/solid-agent/widgets/solidChatWidgets.module.css +39 -3
- package/dist/helpers/registry.d.ts +2 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +6 -0
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +6 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.ts +15 -0
- package/dist/redux/features/agentSlice.d.ts +5 -1
- package/dist/redux/features/agentSlice.d.ts.map +1 -1
- package/dist/redux/features/agentSlice.js +12 -1
- package/dist/redux/features/agentSlice.js.map +1 -1
- package/dist/redux/features/agentSlice.ts +11 -0
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.css +2 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js +16 -9
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentConfigComparisonPage.tsx +18 -5
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.js +25 -8
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentJobsInboxPage.tsx +28 -4
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +2 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +22 -12
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +20 -10
- package/dist/routes/pages/admin/core/agentConfigComparison.d.ts +17 -0
- package/dist/routes/pages/admin/core/agentConfigComparison.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/agentConfigComparison.js.map +1 -1
- package/dist/routes/pages/admin/core/agentConfigComparison.ts +4 -0
- package/dist/types/extension-registry.d.ts +2 -0
- package/dist/types/extension-registry.d.ts.map +1 -1
- package/dist/types/extension-registry.js +2 -0
- package/dist/types/extension-registry.js.map +1 -1
- package/dist/types/extension-registry.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/solid-core.d.ts +27 -0
- package/package.json +1 -1
|
@@ -304,11 +304,12 @@ function ResourcePreviewDialog({ item, kind, onClose }: { item: Item; kind: "ski
|
|
|
304
304
|
type ResourceView = "card" | "list";
|
|
305
305
|
|
|
306
306
|
const itemLabel = (item: Item) => String(item.name ?? item.displayName ?? item.key ?? "");
|
|
307
|
-
const itemMatches = (item: Item, query: string) => `${itemLabel(item)} ${item.description ?? ""}`.toLowerCase().includes(query);
|
|
307
|
+
const itemMatches = (item: Item, query: string) => `${itemLabel(item)} ${item.key ?? ""} ${item.description ?? ""}`.toLowerCase().includes(query);
|
|
308
308
|
|
|
309
|
-
function AddLinksDialog({ label, options, selected, createUrl, onClose, onConfirm }: {
|
|
309
|
+
function AddLinksDialog({ label, options, selected, createUrl, onClose, onConfirm, onRefresh }: {
|
|
310
310
|
label: string; options: Item[]; selected: Item[]; createUrl?: string;
|
|
311
311
|
onClose: () => void; onConfirm: (ids: number[]) => void;
|
|
312
|
+
onRefresh?: () => void;
|
|
312
313
|
}) {
|
|
313
314
|
const [search, setSearch] = React.useState("");
|
|
314
315
|
const [picked, setPicked] = React.useState<number[]>([]);
|
|
@@ -331,7 +332,8 @@ function AddLinksDialog({ label, options, selected, createUrl, onClose, onConfir
|
|
|
331
332
|
footer={<><SolidButton type="button" variant="secondary" onClick={onClose}>Cancel</SolidButton>
|
|
332
333
|
<SolidButton type="button" disabled={!picked.length} onClick={() => { onConfirm(picked); onClose(); }}>{picked.length ? `Add ${picked.length} ${picked.length === 1 ? singular : plural}` : `Add ${plural}`}</SolidButton></>}>
|
|
333
334
|
<SolidDialogBody><div className="agent-editor__add-dialog">
|
|
334
|
-
<SolidInput autoFocus value={search} placeholder={`Search ${plural}…`} aria-label={`Search ${plural}`} onChange={(event) => setSearch(event.target.value)} />
|
|
335
|
+
<div className="agent-editor__lookup-search"><SolidInput autoFocus value={search} placeholder={`Search ${plural}…`} aria-label={`Search ${plural}`} onChange={(event) => setSearch(event.target.value)} />
|
|
336
|
+
{onRefresh && <button type="button" className="agent-editor__icon-button" aria-label={`Refresh ${plural}`} title={`Refresh ${plural}`} onClick={onRefresh}><RefreshCw size={15} /></button>}</div>
|
|
335
337
|
<div className="agent-editor__add-options" role="group" aria-label={`Available ${plural}`}>
|
|
336
338
|
{visible.length > 0 && <label className="agent-editor__add-option agent-editor__add-option--all">
|
|
337
339
|
<input type="checkbox" checked={allPicked} ref={(element) => { if (element) element.indeterminate = visiblePicked > 0 && !allPicked; }} onChange={toggleAll} />
|
|
@@ -350,9 +352,10 @@ function AddLinksDialog({ label, options, selected, createUrl, onClose, onConfir
|
|
|
350
352
|
</SolidDialog>;
|
|
351
353
|
}
|
|
352
354
|
|
|
353
|
-
function LinkPicker({ label, description, options, selected, onAdd, onAddMany, onRemove, createUrl, render, renderSettings, linkFor, onView, editUrlFor, compact, view, onViewChange, renderRow }: {
|
|
355
|
+
function LinkPicker({ label, description, options, selected, onAdd, onAddMany, onRemove, createUrl, onRefresh, render, renderSettings, linkFor, onView, editUrlFor, compact, view, onViewChange, renderRow }: {
|
|
354
356
|
label: string; description: string; options: Item[]; selected: Item[];
|
|
355
357
|
onAdd?: (id: number) => void; onAddMany?: (ids: number[]) => void; onRemove: (id: number) => void; createUrl?: string;
|
|
358
|
+
onRefresh?: () => void;
|
|
356
359
|
render: (item: Item, link?: Link) => React.ReactNode;
|
|
357
360
|
renderSettings?: (item: Item, link?: Link) => React.ReactNode;
|
|
358
361
|
linkFor?: (id: number) => Link | undefined;
|
|
@@ -368,7 +371,7 @@ function LinkPicker({ label, description, options, selected, onAdd, onAddMany, o
|
|
|
368
371
|
const [searchOpen, setSearchOpen] = React.useState(false);
|
|
369
372
|
const [addOpen, setAddOpen] = React.useState(false);
|
|
370
373
|
const pickerRef = React.useRef<HTMLDivElement>(null);
|
|
371
|
-
const showAssociatedCount = label === "Skills" || label === "Tools";
|
|
374
|
+
const showAssociatedCount = label === "Skills" || label === "Tools" || label === "Secrets";
|
|
372
375
|
const typedName = search.trim();
|
|
373
376
|
const query = typedName.toLowerCase();
|
|
374
377
|
const available = options.filter((item) => !selected.some((selectedItem) => selectedItem.id === item.id) && itemMatches(item, query)).slice(0, 20);
|
|
@@ -430,7 +433,7 @@ function LinkPicker({ label, description, options, selected, onAdd, onAddMany, o
|
|
|
430
433
|
</SolidDropdownMenuContent>
|
|
431
434
|
</SolidDropdownMenu> : <button type="button" aria-label={`Remove ${item.name ?? item.displayName ?? item.key}`} onClick={() => onRemove(item.id)}><Trash2 size={16} /></button>}
|
|
432
435
|
</div>)}</div> : <div className="agent-editor__empty">{selected.length ? `No linked ${label.toLowerCase()} match "${typedName}".` : `No ${label.toLowerCase()} linked yet.`}</div>}
|
|
433
|
-
{addOpen && onAddMany && <AddLinksDialog label={label} options={options} selected={selected} createUrl={createUrl} onClose={() => setAddOpen(false)} onConfirm={onAddMany} />}
|
|
436
|
+
{addOpen && onAddMany && <AddLinksDialog label={label} options={options} selected={selected} createUrl={createUrl} onClose={() => setAddOpen(false)} onConfirm={onAddMany} onRefresh={onRefresh} />}
|
|
434
437
|
</section>;
|
|
435
438
|
}
|
|
436
439
|
|
|
@@ -687,9 +690,13 @@ export function AgentRegistryEditorPage() {
|
|
|
687
690
|
if (new Set(inputs.map((input) => input.name.trim().toLowerCase())).size !== inputs.length) next.inputs = "Input names must be unique.";
|
|
688
691
|
if (stepLimit < 1 || turnStepLimit < 1 || costLimit < 0) next.limits = "Step limits must be positive and cost limit cannot be negative.";
|
|
689
692
|
if (deployment.minProcesses != null && deployment.maxProcesses != null && deployment.minProcesses > deployment.maxProcesses) next.deployment = "Minimum processes cannot exceed maximum processes.";
|
|
693
|
+
const envNames = secretIds.map((id) => secretEnvVarNames[id] ?? "");
|
|
694
|
+
if (envNames.some((value) => !/^[A-Za-z_][A-Za-z0-9_]*$/.test(value) || ["APP_ENCRYPTION_KEY", "DATABASE_URL", "AGENT_HUB_MANAGER_INTERNAL_TOKEN", "AGENT_HUB_BRIDGE_PROCESS_KEY"].includes(value)) || new Set(envNames).size !== envNames.length) {
|
|
695
|
+
next.secrets = "Each linked secret needs a valid, unique environment variable name. Use the pencil icon to update it.";
|
|
696
|
+
}
|
|
690
697
|
setErrors(next);
|
|
691
698
|
if (Object.keys(next).length) {
|
|
692
|
-
setTab(next.systemPrompt ? "persona" : next.limits && isAdmin ? "policies" : "basics");
|
|
699
|
+
setTab(next.secrets ? "secrets" : next.systemPrompt ? "persona" : next.limits && isAdmin ? "policies" : "basics");
|
|
693
700
|
dispatch(showToast({ severity: "error", summary: "Missing information", detail: Object.values(next).join(" ") }));
|
|
694
701
|
return false;
|
|
695
702
|
}
|
|
@@ -868,7 +875,7 @@ export function AgentRegistryEditorPage() {
|
|
|
868
875
|
: <SolidCodeEditor value={systemPrompt} onChange={(value) => { setSystemPrompt(value ?? ""); setErrors((current) => ({ ...current, systemPrompt: "" })); }} language="markdown" wordWrap="on" fontSize={11} height="max(34rem, calc(100dvh - 18rem))" />}
|
|
869
876
|
{errors.systemPrompt && <small className="agent-editor__error">{errors.systemPrompt}</small>}</section> },
|
|
870
877
|
{ value: "skills", label: "Skills", content: <LinkPicker label="Skills" description="Skills available to this agent." options={skills.records} selected={linked(skillIds, skills.records, items(record?.agentSkills).map((link) => link.agentSkillRegistry).filter(Boolean))}
|
|
871
|
-
onAddMany={(ids) => addAll(setSkillIds, ids)} onRemove={(id) => toggle(setSkillIds, id)} createUrl="/admin/core/solid-core/agent-skill-registry/editor/new"
|
|
878
|
+
onRefresh={() => void skills.refetch()} onAddMany={(ids) => addAll(setSkillIds, ids)} onRemove={(id) => toggle(setSkillIds, id)} createUrl="/admin/core/solid-core/agent-skill-registry/editor/new"
|
|
872
879
|
onView={(item) => setPreview({ item, kind: "skill" })} editUrlFor={(item) => `/admin/core/solid-core/agent-skill-registry/editor/${item.id}`}
|
|
873
880
|
linkFor={(id) => linkForTarget(record?.agentSkills, "agentSkillRegistry", id)}
|
|
874
881
|
view={resourceView} onViewChange={setResourceView} renderRow={(item) => <AgentResourceRowWidget rowData={item} />}
|
|
@@ -876,7 +883,7 @@ export function AgentRegistryEditorPage() {
|
|
|
876
883
|
renderSettings={(item) => <div className="agent-editor__link-settings">{linkSetting("Always include", alwaysIncludeValues[item.id] ?? true,
|
|
877
884
|
(checked) => setAlwaysIncludeValues((current) => ({ ...current, [item.id]: checked })), "Add the full skill to the agent prompt. Turn off to load it on demand.")}</div>} /> },
|
|
878
885
|
{ value: "tools", label: "Tools", content: <LinkPicker label="Tools" description="Tools available to this agent." options={tools.records} selected={linked(toolIds, tools.records, items(record?.agentTools).map((link) => link.agentToolRegistry).filter(Boolean))}
|
|
879
|
-
onAddMany={(ids) => addAll(setToolIds, ids)} onRemove={(id) => toggle(setToolIds, id)} createUrl="/admin/core/solid-core/agent-tool-registry/editor/new"
|
|
886
|
+
onRefresh={() => void tools.refetch()} onAddMany={(ids) => addAll(setToolIds, ids)} onRemove={(id) => toggle(setToolIds, id)} createUrl="/admin/core/solid-core/agent-tool-registry/editor/new"
|
|
880
887
|
onView={(item) => setPreview({ item, kind: "tool" })} editUrlFor={(item) => `/admin/core/solid-core/agent-tool-registry/editor/${item.id}`}
|
|
881
888
|
linkFor={(id) => linkForTarget(record?.agentTools, "agentToolRegistry", id)}
|
|
882
889
|
view={resourceView} onViewChange={setResourceView} renderRow={(item) => <AgentResourceRowWidget rowData={item} />}
|
|
@@ -892,8 +899,11 @@ export function AgentRegistryEditorPage() {
|
|
|
892
899
|
<label className="agent-editor__field" key={label as string}><span>{label as string}</span><input type="number" min={label === "Cost limit" ? 0 : 1} step={label === "Cost limit" ? 0.01 : 1} value={value as number} onChange={(event) => (setter as (value: number) => void)(Number(event.target.value))} />{label === "Cost limit" && <small className="agent-editor__hint">Cost is an estimate and is not guaranteed to be correct.</small>}</label>)}
|
|
893
900
|
</div>{errors.limits && <small className="agent-editor__error">{errors.limits}</small>}</section></div> },
|
|
894
901
|
{ value: "secrets", label: "Secrets", content: <LinkPicker label="Secrets" description="Grant access to existing secrets. Secret values are never shown here." options={secrets.records} selected={linked(secretIds, secrets.records, items(record?.agentSecrets).map((link) => link.secret).filter(Boolean))}
|
|
895
|
-
|
|
902
|
+
onRefresh={() => void secrets.refetch()}
|
|
903
|
+
onAddMany={(ids) => { ids.forEach((secretId) => { const secret = secrets.records.find((item) => item.id === secretId); if (secret) { setSecretIds((current) => Array.from(new Set([...current, secretId]))); setSecretEnvVarNames((current) => ({ ...current, [secretId]: String(secret.key ?? secret.name ?? secret.displayName ?? "") })); } }); }}
|
|
904
|
+
createUrl="/admin/core/solid-core/secret/form/new" onRemove={(id) => toggle(setSecretIds, id)}
|
|
896
905
|
compact
|
|
906
|
+
renderSettings={() => errors.secrets ? <small className="agent-editor__error">{errors.secrets}</small> : null}
|
|
897
907
|
render={(item) => <div className="agent-editor__secret"><strong title={item.displayName ?? item.name ?? item.key}>{item.displayName ?? item.name ?? item.key}</strong>
|
|
898
908
|
<button type="button" aria-label={`Edit environment variable name for ${item.displayName ?? item.key}`} onClick={() => beginSecretEnvVarEdit(item)}><Pencil size={16} /></button></div>} /> },
|
|
899
909
|
...(record?.id ? [{ value: "processes", label: "Processes", content: <AgentProcessesPanel agentId={record.id} agentLabel={record.name ?? record.title} /> }] : []),
|
|
@@ -32,11 +32,28 @@ export type ConfigComparison = {
|
|
|
32
32
|
systemPrompt: ComparisonRow & {
|
|
33
33
|
title: string;
|
|
34
34
|
};
|
|
35
|
+
tools?: {
|
|
36
|
+
title: string;
|
|
37
|
+
status: ComparisonStatus;
|
|
38
|
+
rows: ComparisonRow[];
|
|
39
|
+
};
|
|
35
40
|
skills?: {
|
|
36
41
|
title: string;
|
|
37
42
|
status: ComparisonStatus;
|
|
38
43
|
rows: ComparisonRow[];
|
|
39
44
|
};
|
|
45
|
+
generalConfiguration?: {
|
|
46
|
+
title: string;
|
|
47
|
+
status: ComparisonStatus;
|
|
48
|
+
fields: {
|
|
49
|
+
key: string;
|
|
50
|
+
label: string;
|
|
51
|
+
status: ComparisonStatus;
|
|
52
|
+
left: string | number | null;
|
|
53
|
+
right: string | number | null;
|
|
54
|
+
emptyLabel?: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
40
57
|
modelConfiguration: {
|
|
41
58
|
title: string;
|
|
42
59
|
status: Comparison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KACP,CAAC;CACH,CAAC;AACF,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAC9G,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC;AAE/E,eAAO,MAAM,mBAAmB,gEAAgE,CAAC;AAEjG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAIvK;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAI5K"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConfigComparison.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/agentConfigComparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"agentConfigComparison.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/agentConfigComparison.ts"],"names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,CAAC,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAA,KAAK,QAAQ;wBAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;oBAClK,sBAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAC;;;;CAC3B","sourcesContent":["import { solidGet } from \"../../../../http/solidHttp\";\n\nexport type ConfigVersion = { id: number; versionNumber: number; name: string | null; description: string | null; createdAt: string };\nexport type ComparisonStatus = \"matched\" | \"changed\" | \"added\" | \"removed\";\nexport type ComparisonSide = { label: string; summary?: string };\nexport type ComparisonRow = { id?: string; status: ComparisonStatus; diffKey: string | null; left: ComparisonSide | null; right: ComparisonSide | null };\nexport type ConfigComparison = {\n schemaVersion: number;\n agent: { id: number; name: string; title?: string };\n versions: { left: ConfigVersion; right: ConfigVersion };\n sections: {\n systemPrompt: ComparisonRow & { title: string };\n tools?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };\n skills?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };\n generalConfiguration?: { title: string; status: ComparisonStatus; fields: {\n key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null; emptyLabel?: string;\n }[] };\n modelConfiguration: { title: string; status: ComparisonStatus; groups: {\n id: string; title: string; status: ComparisonStatus;\n fields: { key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null }[];\n }[] };\n };\n};\nexport type ConfigDiff = { diffKey: string; title: string; language: string; oldValue: string; newValue: string;\n rows?: { id: string; title: string; oldValue: string; newValue: string }[] };\n\nexport const CONFIG_COMPARE_PATH = \"/admin/core/solid-core/agent-registry/editor/compare-config\";\n\nexport function formatConfigDate(value: string) {\n const date = new Date(value);\n return Number.isNaN(date.getTime()) ? \"Date unavailable\" : new Intl.DateTimeFormat(undefined, { dateStyle: \"medium\", timeStyle: \"short\" }).format(date);\n}\n\nexport async function loadConfigComparison(request: { agentId: number; leftVersionId: number; rightVersionId: number }, signal?: AbortSignal): Promise<ConfigComparison> {\n const response = await solidGet<{ data: ConfigComparison }>(\"/agent-config-version/compare\", { params: request, signal });\n if (!response.data.data?.sections) throw new Error(\"The server returned an invalid comparison.\");\n return response.data.data;\n}\n\nexport async function loadConfigDiff(request: { agentId: number; leftVersionId: number; rightVersionId: number; diffKey: string }, signal?: AbortSignal): Promise<ConfigDiff> {\n const response = await solidGet<{ data: ConfigDiff }>(\"/agent-config-version/compare/diff\", { params: request, signal });\n if (typeof response.data.data?.oldValue !== \"string\" || typeof response.data.data?.newValue !== \"string\") throw new Error(\"The server returned an invalid diff.\");\n return response.data.data;\n}\n"]}
|
|
@@ -10,7 +10,11 @@ export type ConfigComparison = {
|
|
|
10
10
|
versions: { left: ConfigVersion; right: ConfigVersion };
|
|
11
11
|
sections: {
|
|
12
12
|
systemPrompt: ComparisonRow & { title: string };
|
|
13
|
+
tools?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };
|
|
13
14
|
skills?: { title: string; status: ComparisonStatus; rows: ComparisonRow[] };
|
|
15
|
+
generalConfiguration?: { title: string; status: ComparisonStatus; fields: {
|
|
16
|
+
key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null; emptyLabel?: string;
|
|
17
|
+
}[] };
|
|
14
18
|
modelConfiguration: { title: string; status: ComparisonStatus; groups: {
|
|
15
19
|
id: string; title: string; status: ComparisonStatus;
|
|
16
20
|
fields: { key: string; label: string; status: ComparisonStatus; left: string | number | null; right: string | number | null }[];
|
|
@@ -23,6 +23,8 @@ export declare const ExtensionComponentTypes: {
|
|
|
23
23
|
/** Renders the agent identity area on the left side of the chat header. */
|
|
24
24
|
readonly agentChatHeaderWidget: "agentChatHeaderWidget";
|
|
25
25
|
readonly agentTurnCompletionWrapperWidget: "agentTurnCompletionWrapperWidget";
|
|
26
|
+
/** Renders the live view and controls of an AgentHub agent's browser. Receives SolidAgentBrowserPanelWidgetProps. */
|
|
27
|
+
readonly agentBrowserPanelWidget: "agentBrowserPanelWidget";
|
|
26
28
|
readonly chatterMessageWidget: "chatterMessageWidget";
|
|
27
29
|
};
|
|
28
30
|
export type ExtensionComponentType = (typeof ExtensionComponentTypes)[keyof typeof ExtensionComponentTypes];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-registry.d.ts","sourceRoot":"","sources":["../../src/types/extension-registry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;IAyBhC,2EAA2E
|
|
1
|
+
{"version":3,"file":"extension-registry.d.ts","sourceRoot":"","sources":["../../src/types/extension-registry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;IAyBhC,2EAA2E;;;IAI3E,qHAAqH;;;CAK/G,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAC9B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAE3E,wFAAwF;AACxF,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC,CAAC;AAEF,oGAAoG;AACpG,MAAM,MAAM,oCAAoC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E,gGAAgG;AAChG,MAAM,MAAM,kCAAkC,GAAG;IAC7C,oBAAoB,CAAC,EAAE,MAAM,oCAAoC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAazB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -27,6 +27,8 @@ export var ExtensionComponentTypes = {
|
|
|
27
27
|
agentChatHeaderWidget: "agentChatHeaderWidget",
|
|
28
28
|
// Renders the wrapper around one assistant turn, including activity and responses.
|
|
29
29
|
agentTurnCompletionWrapperWidget: "agentTurnCompletionWrapperWidget",
|
|
30
|
+
/** Renders the live view and controls of an AgentHub agent's browser. Receives SolidAgentBrowserPanelWidgetProps. */
|
|
31
|
+
agentBrowserPanelWidget: "agentBrowserPanelWidget",
|
|
30
32
|
// Renders the body of a custom chatter message. Receives SolidChatterMessageWidgetProps.
|
|
31
33
|
chatterMessageWidget: "chatterMessageWidget",
|
|
32
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-registry.js","sourceRoot":"","sources":["../../src/types/extension-registry.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,uBAAuB,GAAG;IACnC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,kBAAkB,EAAE,oBAAoB;IACxC,mBAAmB,EAAE,qBAAqB;IAC1C,mBAAmB,EAAE,qBAAqB;IAC1C,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,UAAU,EAAE,YAAY;IACxB,eAAe,EAAE,gBAAgB;IACjC,kBAAkB,EAAE,oBAAoB;IACxC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,uBAAuB,EAAE,yBAAyB;IAClD,8EAA8E;IAC9E,uEAAuE;IACvE,yBAAyB,EAAE,2BAA2B;IACtD,4EAA4E;IAC5E,oBAAoB,EAAE,sBAAsB;IAC5C,mBAAmB,EAAE,qBAAqB;IAC1C,6BAA6B,EAAE,+BAA+B;IAC9D,2EAA2E;IAC3E,qBAAqB,EAAE,uBAAuB;IAC9C,mFAAmF;IACnF,gCAAgC,EAAE,kCAAkC;
|
|
1
|
+
{"version":3,"file":"extension-registry.js","sourceRoot":"","sources":["../../src/types/extension-registry.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,uB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ashboardWidget: \"dashboardWidget\",\n listFieldWidget: \"listFieldWidget\",\n listRowAction: \"listRowAction\",\n kanbanCardAction: \"kanbanCardAction\",\n listHeaderAction: \"listHeaderAction\",\n kanbanHeaderAction: \"kanbanHeaderAction\",\n formFieldViewWidget: \"formFieldViewWidget\",\n formFieldEditWidget: \"formFieldEditWidget\",\n formAction: \"formAction\",\n formWidget: \"formWidget\",\n kanbanCardWidget: \"kanbanCardWidget\",\n cardWidget: \"cardWidget\",\n settingsWidgets: \"settingsWidget\",\n workflowNodeEditor: \"workflowNodeEditor\",\n workflowNodeDocs: \"workflowNodeDocs\",\n workflowNodeFieldEditor: \"workflowNodeFieldEditor\",\n workflowNodePaletteCard: \"workflowNodePaletteCard\",\n // Rendered inside the SolidX Agent chat when the agent emits a UiWidget event\n // whose `widget` equals the registered name. Receives ChatWidgetProps.\n agentTurnCompletionWidget: \"agentTurnCompletionWidget\",\n // Renders a disclosure around consecutive agent activity items in one turn.\n agentToolGroupWidget: \"agentToolGroupWidget\",\n agentToolCallWidget: \"agentToolCallWidget\",\n agentUserTurnCompletionWidget: \"agentUserTurnCompletionWidget\",\n /** Renders the agent identity area on the left side of the chat header. */\n agentChatHeaderWidget: \"agentChatHeaderWidget\",\n // Renders the wrapper around one assistant turn, including activity and responses.\n agentTurnCompletionWrapperWidget: \"agentTurnCompletionWrapperWidget\",\n /** Renders the live view and controls of an AgentHub agent's browser. Receives SolidAgentBrowserPanelWidgetProps. */\n agentBrowserPanelWidget: \"agentBrowserPanelWidget\",\n\n // Renders the body of a custom chatter message. Receives SolidChatterMessageWidgetProps.\n chatterMessageWidget: \"chatterMessageWidget\",\n} as const;\n\nexport type ExtensionComponentType =\n (typeof ExtensionComponentTypes)[keyof typeof ExtensionComponentTypes];\n\n/** Agent-facing contract for a chat widget that can be selected in a final response. */\nexport type AgentChatWidgetMetadata = {\n name: string;\n description: string;\n propsSchema: Record<string, unknown>;\n};\n\n/** Optional metadata shared by extension registration and the component's dynamic metadata hook. */\nexport type ExtensionComponentAdditionalMetadata = Record<string, unknown>;\n\n/** Components may expose metadata without making the hook mandatory for existing extensions. */\nexport type ExtensionComponentMetadataProvider = {\n getExtensionMetadata?: () => ExtensionComponentAdditionalMetadata;\n};\n\nexport const ExtensionFunctionTypes = {\n onFieldChange: \"onFieldChange\",\n onFieldBlur: \"onFieldBlur\",\n onFormDataLoad: \"onFormDataLoad\",\n onFormLayoutLoad: \"onFormLayoutLoad\",\n onFormLoad: \"onFormLoad\",\n onListLoad: \"onListLoad\",\n onBeforeListDataLoad: \"onBeforeListDataLoad\",\n onTreeLoad: \"onTreeLoad\",\n onBeforeTreeDataLoad: \"onBeforeTreeDataLoad\",\n afterLogin: \"afterLogin\",\n beforeLogout: \"beforeLogout\",\n onApplicationMount: \"onApplicationMount\",\n} as const;\n\nexport type ExtensionFunctionType =\n (typeof ExtensionFunctionTypes)[keyof typeof ExtensionFunctionTypes];\n"]}
|
|
@@ -27,6 +27,8 @@ export const ExtensionComponentTypes = {
|
|
|
27
27
|
agentChatHeaderWidget: "agentChatHeaderWidget",
|
|
28
28
|
// Renders the wrapper around one assistant turn, including activity and responses.
|
|
29
29
|
agentTurnCompletionWrapperWidget: "agentTurnCompletionWrapperWidget",
|
|
30
|
+
/** Renders the live view and controls of an AgentHub agent's browser. Receives SolidAgentBrowserPanelWidgetProps. */
|
|
31
|
+
agentBrowserPanelWidget: "agentBrowserPanelWidget",
|
|
30
32
|
|
|
31
33
|
// Renders the body of a custom chatter message. Receives SolidChatterMessageWidgetProps.
|
|
32
34
|
chatterMessageWidget: "chatterMessageWidget",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
SolidToolGroupWidgetProps,
|
|
42
42
|
SolidAgentTurnWidgetProps,
|
|
43
43
|
SolidAgentChatHeaderWidgetProps,
|
|
44
|
+
SolidAgentBrowserPanelWidgetProps,
|
|
44
45
|
SolidChartRendererProps,
|
|
45
46
|
SolidBeforeListDataLoad,
|
|
46
47
|
SolidBeforeTreeNodeLoad,
|
|
@@ -90,6 +91,7 @@ export type {
|
|
|
90
91
|
SolidToolGroupWidgetProps,
|
|
91
92
|
SolidAgentTurnWidgetProps,
|
|
92
93
|
SolidAgentChatHeaderWidgetProps,
|
|
94
|
+
SolidAgentBrowserPanelWidgetProps,
|
|
93
95
|
SolidBeforeListDataLoad,
|
|
94
96
|
SolidBeforeTreeNodeLoad,
|
|
95
97
|
SolidTreeUiEventResponse,
|
|
@@ -398,6 +398,33 @@ export type SolidAgentChatHeaderWidgetProps = {
|
|
|
398
398
|
displaySessionId: string;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
/** Props of the AgentHub chat's browser panel (ExtensionComponentTypes.agentBrowserPanelWidget). */
|
|
402
|
+
export type SolidAgentBrowserPanelWidgetProps = {
|
|
403
|
+
agentName?: string;
|
|
404
|
+
browser: import("../components/core/solid-agent/client/agentBrowser").AgentBrowserView;
|
|
405
|
+
/** Set while the agent waits for the user in the browser (browser_handoff, or the user took it mid-turn). */
|
|
406
|
+
handoff: { requestId: number; toolName: string | null; question: string } | null;
|
|
407
|
+
/** "side": beside the thread; "stacked": above the thread in a narrow chat; "dialog": the large view. */
|
|
408
|
+
layout: "side" | "stacked" | "dialog";
|
|
409
|
+
/** The chat socket is open; control actions are dropped otherwise. */
|
|
410
|
+
connected: boolean;
|
|
411
|
+
/** Only the header shows; the screen is not mounted, so no live view is streamed. */
|
|
412
|
+
collapsed: boolean;
|
|
413
|
+
/** The live screen, ready-wired: it streams while mounted and takes mouse and keyboard while the user has control. */
|
|
414
|
+
screen: import("react").ReactNode;
|
|
415
|
+
/** Asks for the browser; the agent hands it over after its current step. */
|
|
416
|
+
takeControl: () => boolean;
|
|
417
|
+
/** Gives the browser back (or continues a handoff without taking control). The note goes to the agent. */
|
|
418
|
+
giveBack: (note?: string) => boolean;
|
|
419
|
+
/** Opens an address in the active tab while the user has control. */
|
|
420
|
+
navigate: (url: string) => boolean;
|
|
421
|
+
navigation: (action: "back" | "forward" | "refresh") => boolean;
|
|
422
|
+
dismissError: () => void;
|
|
423
|
+
onToggleCollapsed?: () => void;
|
|
424
|
+
onExpand?: () => void;
|
|
425
|
+
onClose?: () => void;
|
|
426
|
+
}
|
|
427
|
+
|
|
401
428
|
export type SolidSettingsWidgetProps = {
|
|
402
429
|
setting: any;
|
|
403
430
|
value: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidxai/core-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23-beta.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:tailwind": "tailwindcss -i ./src/resources/solid-tailwind.css -o ./src/resources/solid-tailwind-generated.css -c ./tailwind.config.js --minify",
|
|
6
6
|
"check:visibility": "node scripts/check-visibility-classes.mjs",
|