@ethisyscore/plugin-ui 1.92.1 → 1.93.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/components/connectors/index.cjs +20 -9
- package/dist/components/connectors/index.cjs.map +1 -1
- package/dist/components/connectors/index.d.cts +31 -1
- package/dist/components/connectors/index.d.ts +31 -1
- package/dist/components/connectors/index.js +20 -9
- package/dist/components/connectors/index.js.map +1 -1
- package/dist/components/shared/index.cjs +12 -8
- package/dist/components/shared/index.cjs.map +1 -1
- package/dist/components/shared/index.js +13 -9
- package/dist/components/shared/index.js.map +1 -1
- package/dist/components/ui/index.cjs +12 -0
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.cts +38 -2
- package/dist/components/ui/index.d.ts +38 -2
- package/dist/components/ui/index.js +13 -2
- package/dist/components/ui/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -852,6 +852,7 @@ function MappingCompletenessBanner({
|
|
|
852
852
|
operations,
|
|
853
853
|
onSuggestWithAi,
|
|
854
854
|
onOpenMappingEditor,
|
|
855
|
+
onConfigureTranslation,
|
|
855
856
|
suggestingOperationKey = null,
|
|
856
857
|
disableSuggest = false
|
|
857
858
|
}) {
|
|
@@ -877,7 +878,8 @@ function MappingCompletenessBanner({
|
|
|
877
878
|
!op.isToolMapped && /* @__PURE__ */ jsxRuntime.jsx(material.Chip, { label: "No tool mapped", size: "small", color: "warning", variant: "outlined" })
|
|
878
879
|
] }),
|
|
879
880
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "caption", color: "text.secondary", children: [
|
|
880
|
-
"Unmapped required fields:
|
|
881
|
+
"Unmapped required request fields:",
|
|
882
|
+
" ",
|
|
881
883
|
op.unmappedRequiredCanonicalFields.join(", ")
|
|
882
884
|
] })
|
|
883
885
|
] }),
|
|
@@ -901,8 +903,8 @@ function MappingCompletenessBanner({
|
|
|
901
903
|
size: "small",
|
|
902
904
|
variant: "text",
|
|
903
905
|
color: "primary",
|
|
904
|
-
onClick: () => onOpenMappingEditor(op),
|
|
905
|
-
children: "
|
|
906
|
+
onClick: () => (onConfigureTranslation ?? onOpenMappingEditor)(op),
|
|
907
|
+
children: "Configure field translation"
|
|
906
908
|
}
|
|
907
909
|
)
|
|
908
910
|
] })
|
|
@@ -912,20 +914,29 @@ function MappingCompletenessBanner({
|
|
|
912
914
|
};
|
|
913
915
|
return /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { mb: 2 }, children: [
|
|
914
916
|
required.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(material.Alert, { severity: "warning", sx: { mb: optional.length > 0 ? 2 : 0 }, children: [
|
|
915
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: "Required operations
|
|
917
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: "Required operations are missing request-field mappings" }),
|
|
918
|
+
/* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "body2", children: [
|
|
919
|
+
required.length === 1 ? "1 required operation declares" : `${required.length} required operations declare`,
|
|
920
|
+
" ",
|
|
921
|
+
`canonical request fields that aren't mapped to any parameter the tool accepts. The missing piece is the REQUEST-FIELD TRANSLATION: the per-operation map from the operation's canonical field names to the tool's own parameter names. It is not the tool binding, which a row without a "No tool mapped" chip already has. Ethisys Core can't run these reliably until every listed field is translated, and auto-match picks the TOOL, not its fields, so it won't clear them on its own.`
|
|
922
|
+
] }),
|
|
916
923
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "body2", sx: { mb: 1.5 }, children: [
|
|
917
|
-
|
|
924
|
+
'Fix each operation below with "Configure field translation": for every field listed, enter the parameter name the tool actually expects, for example a canonical',
|
|
925
|
+
" ",
|
|
926
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { component: "code", children: "startDate" }),
|
|
927
|
+
" the tool calls",
|
|
918
928
|
" ",
|
|
919
|
-
|
|
929
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { component: "code", children: "start_date" }),
|
|
930
|
+
'. "Suggest with AI" proposes the same translation for you to review in that editor before saving.'
|
|
920
931
|
] }),
|
|
921
932
|
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { spacing: 1.5, children: required.map(renderRow) })
|
|
922
933
|
] }),
|
|
923
934
|
optional.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(material.Alert, { severity: "info", children: [
|
|
924
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: "Optional operations
|
|
935
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.AlertTitle, { children: "Optional operations are missing request-field mappings" }),
|
|
925
936
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "body2", sx: { mb: 1.5 }, children: [
|
|
926
|
-
optional.length === 1 ? "1 optional operation
|
|
937
|
+
optional.length === 1 ? "1 optional operation declares request fields that aren't" : `${optional.length} optional operations declare request fields that aren't`,
|
|
927
938
|
" ",
|
|
928
|
-
`mapped to
|
|
939
|
+
`mapped to the tool's own parameter names. These power extra capabilities and stay off until that request-field translation is supplied, so they are safe to leave if you don't need them, or if this connector exposes no matching tool. Each row below lists exactly which fields are missing; a row without a "No tool mapped" chip already HAS a tool and needs only its fields translated, which auto-match does not do. Use "Configure field translation" on the row to supply it.`
|
|
929
940
|
] }),
|
|
930
941
|
/* @__PURE__ */ jsxRuntime.jsx(material.Stack, { spacing: 1.5, children: optional.map(renderRow) })
|
|
931
942
|
] })
|