@datatechsolutions/ui 2.11.16 → 2.11.18
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/astrlabe/contracts.d.mts +1 -1
- package/dist/astrlabe/contracts.d.ts +1 -1
- package/dist/astrlabe/index.js +235 -183
- package/dist/astrlabe/index.js.map +1 -1
- package/dist/astrlabe/index.mjs +137 -85
- package/dist/astrlabe/index.mjs.map +1 -1
- package/dist/astrlabe/workflow-canvas.js +2 -2
- package/dist/astrlabe/workflow-canvas.mjs +1 -1
- package/dist/{chunk-2JK7GQYA.js → chunk-4X7ITYP2.js} +125 -28
- package/dist/chunk-4X7ITYP2.js.map +1 -0
- package/dist/{chunk-4B47R7VI.mjs → chunk-LIYKHVLG.mjs} +125 -28
- package/dist/chunk-LIYKHVLG.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-2JK7GQYA.js.map +0 -1
- package/dist/chunk-4B47R7VI.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunk4X7ITYP2_js = require('../chunk-4X7ITYP2.js');
|
|
5
5
|
require('../chunk-4XID6LOC.js');
|
|
6
6
|
require('../chunk-S7KHTUHA.js');
|
|
7
7
|
require('../chunk-UZ3CMNUJ.js');
|
|
@@ -13,7 +13,7 @@ require('../chunk-YXN2K77G.js');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Workspace", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk4X7ITYP2_js.Workspace; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
19
19
|
//# sourceMappingURL=workflow-canvas.js.map
|
|
@@ -340,7 +340,7 @@ var LOGIC_NODE_GRADIENTS = {
|
|
|
340
340
|
note: "from-yellow-400 to-amber-500",
|
|
341
341
|
entity: "from-blue-400 to-cyan-500",
|
|
342
342
|
datasource: "from-cyan-500 to-blue-600",
|
|
343
|
-
model_provider: "from-
|
|
343
|
+
model_provider: "from-slate-500 to-gray-600",
|
|
344
344
|
group: "from-slate-400 to-gray-500"
|
|
345
345
|
};
|
|
346
346
|
var LOGIC_NODE_BADGE_COLORS = {
|
|
@@ -363,7 +363,7 @@ var LOGIC_NODE_BADGE_COLORS = {
|
|
|
363
363
|
note: "bg-yellow-100 text-yellow-700 dark:bg-yellow-500/20 dark:text-yellow-300",
|
|
364
364
|
entity: "bg-blue-100 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300",
|
|
365
365
|
datasource: "bg-cyan-100 text-cyan-700 dark:bg-cyan-500/20 dark:text-cyan-300",
|
|
366
|
-
model_provider: "bg-
|
|
366
|
+
model_provider: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300",
|
|
367
367
|
group: "bg-slate-100 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300"
|
|
368
368
|
};
|
|
369
369
|
var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
@@ -386,7 +386,7 @@ var LOGIC_NODE_BADGE_SOFT_COLORS = {
|
|
|
386
386
|
note: "bg-yellow-50 text-yellow-600 dark:bg-yellow-500/20 dark:text-yellow-400",
|
|
387
387
|
entity: "bg-blue-50 text-blue-600 dark:bg-blue-500/20 dark:text-blue-400",
|
|
388
388
|
datasource: "bg-cyan-50 text-cyan-600 dark:bg-cyan-500/20 dark:text-cyan-400",
|
|
389
|
-
model_provider: "bg-
|
|
389
|
+
model_provider: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400",
|
|
390
390
|
group: "bg-slate-50 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400"
|
|
391
391
|
};
|
|
392
392
|
var LOGIC_ICON_MAP = {
|
|
@@ -438,7 +438,7 @@ var NODE_BORDER_COLORS = {
|
|
|
438
438
|
list_operator: "border-lime-300/50 dark:border-lime-600/50",
|
|
439
439
|
note: "border-gray-200/50 dark:border-gray-700/50",
|
|
440
440
|
datasource: "border-cyan-300/50 dark:border-cyan-600/50",
|
|
441
|
-
model_provider: "border-
|
|
441
|
+
model_provider: "border-slate-300/50 dark:border-slate-600/50"
|
|
442
442
|
};
|
|
443
443
|
function getNodeStateClass(selected, nodeType, customBorder) {
|
|
444
444
|
if (selected) return NODE_SELECTED_CLASS;
|
|
@@ -469,7 +469,7 @@ var MINIMAP_NODE_COLORS = {
|
|
|
469
469
|
note: "#eab308",
|
|
470
470
|
entity: "#3b82f6",
|
|
471
471
|
datasource: "#06b6d4",
|
|
472
|
-
model_provider: "#
|
|
472
|
+
model_provider: "#64748b",
|
|
473
473
|
group: "#64748b"
|
|
474
474
|
};
|
|
475
475
|
var LOGIC_NODE_HANDLE_COLORS = {
|
|
@@ -492,7 +492,7 @@ var LOGIC_NODE_HANDLE_COLORS = {
|
|
|
492
492
|
note: "!bg-yellow-500",
|
|
493
493
|
entity: "!bg-blue-500",
|
|
494
494
|
datasource: "!bg-cyan-500",
|
|
495
|
-
model_provider: "!bg-
|
|
495
|
+
model_provider: "!bg-slate-500",
|
|
496
496
|
group: "!bg-slate-500"
|
|
497
497
|
};
|
|
498
498
|
var INSERTABLE_NODES = [
|
|
@@ -2773,7 +2773,11 @@ var PROVIDER_LOGOS = {
|
|
|
2773
2773
|
openai_api: "https://www.svgrepo.com/show/306500/openai.svg",
|
|
2774
2774
|
google_vertex: SI("googlegemini", "8E75B2"),
|
|
2775
2775
|
azure_openai: SI("microsoftazure", "0078D4"),
|
|
2776
|
-
anthropic_api: SI("anthropic", "D4A27F")
|
|
2776
|
+
anthropic_api: SI("anthropic", "D4A27F"),
|
|
2777
|
+
groq: SI("groq", "000000"),
|
|
2778
|
+
mistral: SI("mistralai", "FF7000"),
|
|
2779
|
+
huggingface: SI("huggingface", "FFD21E"),
|
|
2780
|
+
ollama: SI("ollama", "FFFFFF")
|
|
2777
2781
|
};
|
|
2778
2782
|
var PROVIDER_TYPE_LABELS = {
|
|
2779
2783
|
aws_bedrock: "AWS Bedrock",
|
|
@@ -2781,6 +2785,10 @@ var PROVIDER_TYPE_LABELS = {
|
|
|
2781
2785
|
google_vertex: "Google Vertex AI",
|
|
2782
2786
|
azure_openai: "Azure OpenAI",
|
|
2783
2787
|
anthropic_api: "Anthropic API",
|
|
2788
|
+
groq: "Groq Cloud",
|
|
2789
|
+
mistral: "Mistral AI",
|
|
2790
|
+
huggingface: "Hugging Face",
|
|
2791
|
+
ollama: "Ollama (Local)",
|
|
2784
2792
|
custom: "Custom"
|
|
2785
2793
|
};
|
|
2786
2794
|
var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, data, selected }) {
|
|
@@ -2800,8 +2808,8 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
|
|
|
2800
2808
|
iconClassName: "flex h-11 w-11 items-center justify-center rounded-xl bg-gradient-to-br from-amber-400 to-orange-500 shadow-lg"
|
|
2801
2809
|
}
|
|
2802
2810
|
) }),
|
|
2803
|
-
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-
|
|
2804
|
-
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-
|
|
2811
|
+
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
|
|
2812
|
+
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
|
|
2805
2813
|
] });
|
|
2806
2814
|
}
|
|
2807
2815
|
const providerLabel = PROVIDER_TYPE_LABELS[config.providerType] ?? config.providerType;
|
|
@@ -2826,11 +2834,11 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
|
|
|
2826
2834
|
icon: logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logo, alt: providerLabel, className: "h-6 w-6 object-contain", loading: "lazy" }) : /* @__PURE__ */ jsxRuntime.jsx(outline.KeyIcon, { className: "h-6 w-6 text-white" }),
|
|
2827
2835
|
title: displayName,
|
|
2828
2836
|
description: providerLabel,
|
|
2829
|
-
iconClassName:
|
|
2837
|
+
iconClassName: `flex h-11 w-11 items-center justify-center rounded-xl shadow-lg ${logo ? "bg-white/10 dark:bg-white/5 p-2" : "bg-gradient-to-br from-slate-600 to-slate-700 p-1.5"}`
|
|
2830
2838
|
}
|
|
2831
2839
|
),
|
|
2832
2840
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardMeta, { compact: isCompact, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
2833
|
-
/* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-
|
|
2841
|
+
/* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[10px] font-semibold text-slate-700 dark:bg-slate-500/20 dark:text-slate-300", children: providerLabel }),
|
|
2834
2842
|
regionLabel && /* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: regionLabel }),
|
|
2835
2843
|
/* @__PURE__ */ jsxRuntime.jsx(NodeCardBadge, { className: `rounded-full px-2 py-0.5 text-[10px] font-medium ${isConfigured ? "bg-green-100 text-green-700 dark:bg-green-500/20 dark:text-green-300" : "bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300"}`, children: isConfigured ? "Configured" : "Setup needed" }),
|
|
2836
2844
|
config.modelFilter && config.modelFilter.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(NodeCardBadge, { className: "rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-medium text-gray-600 dark:bg-white/10 dark:text-gray-300", children: [
|
|
@@ -2841,8 +2849,8 @@ var ModelProviderFlowNode = react.memo(function ModelProviderFlowNode2({ id, dat
|
|
|
2841
2849
|
] })
|
|
2842
2850
|
}
|
|
2843
2851
|
),
|
|
2844
|
-
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-
|
|
2845
|
-
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-
|
|
2852
|
+
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Right, id: "right-out", colorClass: "!bg-slate-500" }),
|
|
2853
|
+
/* @__PURE__ */ jsxRuntime.jsx(WorkflowHandle, { type: "source", position: react$1.Position.Bottom, id: "bottom-out", colorClass: "!bg-slate-500" })
|
|
2846
2854
|
] });
|
|
2847
2855
|
});
|
|
2848
2856
|
var GROUP_COLORS = {
|
|
@@ -5044,7 +5052,11 @@ var PROVIDER_TYPES = [
|
|
|
5044
5052
|
{ value: "google_vertex", label: "Google Vertex AI" },
|
|
5045
5053
|
{ value: "azure_openai", label: "Azure OpenAI" },
|
|
5046
5054
|
{ value: "anthropic_api", label: "Anthropic API" },
|
|
5047
|
-
{ value: "
|
|
5055
|
+
{ value: "groq", label: "Groq Cloud" },
|
|
5056
|
+
{ value: "mistral", label: "Mistral AI" },
|
|
5057
|
+
{ value: "huggingface", label: "Hugging Face Inference" },
|
|
5058
|
+
{ value: "ollama", label: "Ollama (Local)" },
|
|
5059
|
+
{ value: "custom", label: "Custom OpenAI-compatible" }
|
|
5048
5060
|
];
|
|
5049
5061
|
var REGION_OPTIONS = {
|
|
5050
5062
|
aws_bedrock: [
|
|
@@ -5054,19 +5066,53 @@ var REGION_OPTIONS = {
|
|
|
5054
5066
|
{ value: "eu-central-1", label: "Europe (Frankfurt)" },
|
|
5055
5067
|
{ value: "ap-northeast-1", label: "Asia Pacific (Tokyo)" },
|
|
5056
5068
|
{ value: "ap-southeast-1", label: "Asia Pacific (Singapore)" },
|
|
5057
|
-
{ value: "
|
|
5069
|
+
{ value: "ap-south-1", label: "Asia Pacific (Mumbai)" },
|
|
5070
|
+
{ value: "sa-east-1", label: "South America (S\xE3o Paulo)" },
|
|
5071
|
+
{ value: "ca-central-1", label: "Canada (Central)" }
|
|
5058
5072
|
],
|
|
5059
5073
|
google_vertex: [
|
|
5060
5074
|
{ value: "us-central1", label: "US Central (Iowa)" },
|
|
5061
5075
|
{ value: "us-east4", label: "US East (Virginia)" },
|
|
5062
5076
|
{ value: "europe-west4", label: "Europe West (Netherlands)" },
|
|
5063
|
-
{ value: "
|
|
5077
|
+
{ value: "europe-west1", label: "Europe West (Belgium)" },
|
|
5078
|
+
{ value: "asia-northeast1", label: "Asia NE (Tokyo)" },
|
|
5079
|
+
{ value: "asia-southeast1", label: "Asia SE (Singapore)" },
|
|
5080
|
+
{ value: "southamerica-east1", label: "South America (S\xE3o Paulo)" }
|
|
5064
5081
|
],
|
|
5065
5082
|
azure_openai: [
|
|
5066
5083
|
{ value: "eastus", label: "East US" },
|
|
5084
|
+
{ value: "eastus2", label: "East US 2" },
|
|
5067
5085
|
{ value: "westeurope", label: "West Europe" },
|
|
5068
5086
|
{ value: "swedencentral", label: "Sweden Central" },
|
|
5069
|
-
{ value: "japaneast", label: "Japan East" }
|
|
5087
|
+
{ value: "japaneast", label: "Japan East" },
|
|
5088
|
+
{ value: "australiaeast", label: "Australia East" },
|
|
5089
|
+
{ value: "canadaeast", label: "Canada East" },
|
|
5090
|
+
{ value: "uksouth", label: "UK South" }
|
|
5091
|
+
]
|
|
5092
|
+
};
|
|
5093
|
+
var MODEL_FAMILIES = {
|
|
5094
|
+
aws_bedrock: [
|
|
5095
|
+
{ id: "claude", label: "Anthropic Claude", models: ["anthropic.claude-haiku-4-5-v1:0", "anthropic.claude-sonnet-4-6-v1:0", "anthropic.claude-opus-4-6-v1:0"] },
|
|
5096
|
+
{ id: "nova", label: "Amazon Nova", models: ["amazon.nova-lite-v1:0", "amazon.nova-pro-v1:0"] },
|
|
5097
|
+
{ id: "llama", label: "Meta Llama", models: ["meta.llama3-3-70b-instruct-v1:0"] },
|
|
5098
|
+
{ id: "mistral-bedrock", label: "Mistral AI", models: ["mistral.mistral-large-2411-v1:0"] }
|
|
5099
|
+
],
|
|
5100
|
+
openai_api: [
|
|
5101
|
+
{ id: "gpt5", label: "GPT-5 Family", models: ["openai.gpt-5-v1:0", "openai.gpt-5-mini-v1:0"] }
|
|
5102
|
+
],
|
|
5103
|
+
google_vertex: [
|
|
5104
|
+
{ id: "gemini", label: "Gemini Family", models: ["google.gemini-3-flash-v1:0", "google.gemini-3-1-pro-v1:0"] }
|
|
5105
|
+
],
|
|
5106
|
+
anthropic_api: [
|
|
5107
|
+
{ id: "claude-direct", label: "Claude Family", models: ["anthropic.claude-haiku-4-5-v1:0", "anthropic.claude-sonnet-4-6-v1:0", "anthropic.claude-opus-4-6-v1:0"] }
|
|
5108
|
+
],
|
|
5109
|
+
groq: [
|
|
5110
|
+
{ id: "groq-llama", label: "Llama (Groq)", models: ["meta.llama3-3-70b-instruct-v1:0"] },
|
|
5111
|
+
{ id: "groq-mixtral", label: "Mixtral (Groq)", models: ["mistral.mixtral-8x7b-v1:0"] }
|
|
5112
|
+
],
|
|
5113
|
+
mistral: [
|
|
5114
|
+
{ id: "mistral-large", label: "Mistral Large", models: ["mistral.mistral-large-2411-v1:0"] },
|
|
5115
|
+
{ id: "mistral-small", label: "Mistral Small", models: ["mistral.mistral-small-v1:0"] }
|
|
5070
5116
|
]
|
|
5071
5117
|
};
|
|
5072
5118
|
function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
@@ -5077,12 +5123,40 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5077
5123
|
const [endpoint, setEndpoint] = react.useState(config.endpoint ?? "");
|
|
5078
5124
|
const [credentialRef, setCredentialRef] = react.useState(config.credentialRef ?? "");
|
|
5079
5125
|
const [apiKeyRef, setApiKeyRef] = react.useState(config.apiKeyRef ?? "");
|
|
5126
|
+
const [selectedFamilies, setSelectedFamilies] = react.useState(() => {
|
|
5127
|
+
const families2 = MODEL_FAMILIES[config.providerType] ?? [];
|
|
5128
|
+
const filter = new Set(config.modelFilter ?? []);
|
|
5129
|
+
const selected = /* @__PURE__ */ new Set();
|
|
5130
|
+
for (const family of families2) {
|
|
5131
|
+
if (family.models.some((m) => filter.has(m)) || filter.size === 0) {
|
|
5132
|
+
selected.add(family.id);
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5135
|
+
return selected;
|
|
5136
|
+
});
|
|
5080
5137
|
const regions = REGION_OPTIONS[providerType] ?? [];
|
|
5138
|
+
const families = MODEL_FAMILIES[providerType] ?? [];
|
|
5081
5139
|
const showRegion = regions.length > 0;
|
|
5082
|
-
const showEndpoint = providerType === "custom" || providerType === "azure_openai";
|
|
5083
|
-
const showApiKey =
|
|
5140
|
+
const showEndpoint = providerType === "custom" || providerType === "azure_openai" || providerType === "ollama";
|
|
5141
|
+
const showApiKey = ["openai_api", "anthropic_api", "groq", "mistral", "huggingface", "custom"].includes(providerType);
|
|
5084
5142
|
const showCredentialRef = providerType === "aws_bedrock" || providerType === "google_vertex";
|
|
5143
|
+
const handleToggleFamily = (familyId) => {
|
|
5144
|
+
setSelectedFamilies((previous) => {
|
|
5145
|
+
const next = new Set(previous);
|
|
5146
|
+
if (next.has(familyId)) next.delete(familyId);
|
|
5147
|
+
else next.add(familyId);
|
|
5148
|
+
return next;
|
|
5149
|
+
});
|
|
5150
|
+
};
|
|
5151
|
+
const handleProviderChange = (value) => {
|
|
5152
|
+
const newType = value;
|
|
5153
|
+
setProviderType(newType);
|
|
5154
|
+
setRegion("");
|
|
5155
|
+
const newFamilies = MODEL_FAMILIES[newType] ?? [];
|
|
5156
|
+
setSelectedFamilies(new Set(newFamilies.map((f) => f.id)));
|
|
5157
|
+
};
|
|
5085
5158
|
const handleSave = () => {
|
|
5159
|
+
const modelFilter = families.filter((f) => selectedFamilies.has(f.id)).flatMap((f) => f.models);
|
|
5086
5160
|
onSave({
|
|
5087
5161
|
...config,
|
|
5088
5162
|
providerType,
|
|
@@ -5090,7 +5164,8 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5090
5164
|
region: region || void 0,
|
|
5091
5165
|
endpoint: endpoint.trim() || void 0,
|
|
5092
5166
|
credentialRef: credentialRef.trim() || void 0,
|
|
5093
|
-
apiKeyRef: apiKeyRef.trim() || void 0
|
|
5167
|
+
apiKeyRef: apiKeyRef.trim() || void 0,
|
|
5168
|
+
modelFilter
|
|
5094
5169
|
});
|
|
5095
5170
|
};
|
|
5096
5171
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -5109,10 +5184,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5109
5184
|
{
|
|
5110
5185
|
label: t("providerTypeLabel"),
|
|
5111
5186
|
value: providerType,
|
|
5112
|
-
onValueChange:
|
|
5113
|
-
setProviderType(value);
|
|
5114
|
-
setRegion("");
|
|
5115
|
-
},
|
|
5187
|
+
onValueChange: handleProviderChange,
|
|
5116
5188
|
options: PROVIDER_TYPES.map((pt) => ({ value: pt.value, label: pt.label }))
|
|
5117
5189
|
}
|
|
5118
5190
|
),
|
|
@@ -5132,7 +5204,7 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5132
5204
|
label: t("endpointLabel"),
|
|
5133
5205
|
value: endpoint,
|
|
5134
5206
|
onValueChange: setEndpoint,
|
|
5135
|
-
placeholder: t("endpointPlaceholder")
|
|
5207
|
+
placeholder: providerType === "ollama" ? "http://localhost:11434" : t("endpointPlaceholder")
|
|
5136
5208
|
}
|
|
5137
5209
|
),
|
|
5138
5210
|
showApiKey && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5152,9 +5224,34 @@ function ModelProviderNodeConfigForm({ config, onSave, onCancel }) {
|
|
|
5152
5224
|
label: t("credentialRefLabel"),
|
|
5153
5225
|
value: credentialRef,
|
|
5154
5226
|
onValueChange: setCredentialRef,
|
|
5155
|
-
placeholder: t("credentialRefPlaceholder")
|
|
5227
|
+
placeholder: providerType === "aws_bedrock" ? "arn:aws:iam::role/bedrock-role" : t("credentialRefPlaceholder")
|
|
5156
5228
|
}
|
|
5157
5229
|
),
|
|
5230
|
+
families.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
5231
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700 dark:text-gray-300", children: t("modelFamiliesLabel") }),
|
|
5232
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1.5", children: families.map((family) => {
|
|
5233
|
+
const isSelected = selectedFamilies.has(family.id);
|
|
5234
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5235
|
+
"button",
|
|
5236
|
+
{
|
|
5237
|
+
type: "button",
|
|
5238
|
+
onClick: () => handleToggleFamily(family.id),
|
|
5239
|
+
className: `flex w-full items-center gap-3 rounded-lg border px-3 py-2 text-left transition-all ${isSelected ? "border-indigo-500/30 bg-indigo-50/50 dark:border-indigo-400/20 dark:bg-indigo-500/5" : "border-gray-200/50 hover:border-gray-300 dark:border-white/10 dark:hover:border-white/20"}`,
|
|
5240
|
+
children: [
|
|
5241
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-4 w-4 shrink-0 items-center justify-center rounded ${isSelected ? "bg-indigo-500 text-white" : "border border-gray-300 dark:border-gray-600"}`, children: isSelected && /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "h-3 w-3", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", clipRule: "evenodd" }) }) }),
|
|
5242
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
5243
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium text-gray-900 dark:text-white", children: family.label }),
|
|
5244
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-2 text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
5245
|
+
family.models.length,
|
|
5246
|
+
" models"
|
|
5247
|
+
] })
|
|
5248
|
+
] })
|
|
5249
|
+
]
|
|
5250
|
+
},
|
|
5251
|
+
family.id
|
|
5252
|
+
);
|
|
5253
|
+
}) })
|
|
5254
|
+
] }),
|
|
5158
5255
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5159
5256
|
ConfigFormActions,
|
|
5160
5257
|
{
|
|
@@ -7376,5 +7473,5 @@ exports.useModalStore = useModalStore;
|
|
|
7376
7473
|
exports.useWorkflowBuilderClient = useWorkflowBuilderClient;
|
|
7377
7474
|
exports.useWorkflowBuilderClientOptional = useWorkflowBuilderClientOptional;
|
|
7378
7475
|
exports.useWorkflowStore = useWorkflowStore;
|
|
7379
|
-
//# sourceMappingURL=chunk-
|
|
7380
|
-
//# sourceMappingURL=chunk-
|
|
7476
|
+
//# sourceMappingURL=chunk-4X7ITYP2.js.map
|
|
7477
|
+
//# sourceMappingURL=chunk-4X7ITYP2.js.map
|