@solidxai/core-ui 0.1.23-beta.1 → 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/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/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/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: ComparisonStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConfigComparison.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/agentConfigComparison.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAA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AA;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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AA0BtD,MAAM,CAAC,IAAM,mBAAmB,GAAG,6DAA6D,CAAC;AAEjG,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,IAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC1J,CAAC;AAED,MAAM,UAAgB,oBAAoB,CAAC,OAA2E,EAAE,MAAoB;;;;;;wBACzH,qBAAM,QAAQ,CAA6B,+BAA+B,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;oBAAnH,QAAQ,GAAG,SAAwG;oBACzH,IAAI,CAAC,CAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAA;wBAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;oBACjG,sBAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAC;;;;CAC3B;AAED,MAAM,UAAgB,cAAc,CAAC,OAA4F,EAAE,MAAoB;;;;;;wBACpI,qBAAM,QAAQ,CAAuB,oCAAoC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAA,EAAE,CAAC,EAAA;;oBAAlH,QAAQ,GAAG,SAAuG;oBACxH,IAAI,OAAO,CAAA,MAAA,QAAQ,CAAC,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAA,KAAK,QAAQ,IAAI,OAAO,CAAA,MAAA,QAAQ,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 }[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidxai/core-ui",
|
|
3
|
-
"version": "0.1.23-beta.
|
|
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",
|