@datatechsolutions/ui 2.11.17 → 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-PNN6KWXQ.js → chunk-4X7ITYP2.js} +113 -16
- package/dist/chunk-4X7ITYP2.js.map +1 -0
- package/dist/{chunk-57OBMWRA.mjs → chunk-LIYKHVLG.mjs} +113 -16
- package/dist/chunk-LIYKHVLG.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-57OBMWRA.mjs.map +0 -1
- package/dist/chunk-PNN6KWXQ.js.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
|
|
@@ -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 }) {
|
|
@@ -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
|