@llmnative/agentico 0.24.0 → 0.24.1
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/index.mjs
CHANGED
|
@@ -5064,119 +5064,120 @@ function _i(e) {
|
|
|
5064
5064
|
error: r
|
|
5065
5065
|
};
|
|
5066
5066
|
}
|
|
5067
|
-
function vi({ backend: e, me: a }) {
|
|
5068
|
-
let
|
|
5067
|
+
function vi({ backend: e, me: a, cloud: o }) {
|
|
5068
|
+
let s = Q(), { locale: c } = I(), l = a.role === "platform", u = B(() => o?.store ?? e.connections(), [e, o?.store]), [d, f] = H(null), [p, m] = H(null), [h, g] = H(null), [_, v] = H(null), y = R(async () => {
|
|
5069
5069
|
try {
|
|
5070
|
-
|
|
5070
|
+
f((await u.load()).providers.length), l && m(await e.fleet.list()), g(null);
|
|
5071
5071
|
} catch (e) {
|
|
5072
|
-
|
|
5072
|
+
g(gi(e));
|
|
5073
5073
|
}
|
|
5074
5074
|
}, [
|
|
5075
5075
|
e,
|
|
5076
|
-
|
|
5077
|
-
|
|
5076
|
+
u,
|
|
5077
|
+
l
|
|
5078
5078
|
]);
|
|
5079
5079
|
z(() => {
|
|
5080
|
-
|
|
5081
|
-
}, [
|
|
5082
|
-
let
|
|
5083
|
-
|
|
5080
|
+
y();
|
|
5081
|
+
}, [y]);
|
|
5082
|
+
let x = () => {
|
|
5083
|
+
v(null), y();
|
|
5084
5084
|
};
|
|
5085
5085
|
return /* @__PURE__ */ G("div", {
|
|
5086
5086
|
className: "flex flex-col gap-3",
|
|
5087
5087
|
children: [
|
|
5088
5088
|
/* @__PURE__ */ W("p", {
|
|
5089
5089
|
className: "text-sm text-muted-foreground",
|
|
5090
|
-
children:
|
|
5090
|
+
children: s.connectionsIntro
|
|
5091
5091
|
}),
|
|
5092
|
-
|
|
5092
|
+
h && /* @__PURE__ */ W(r, {
|
|
5093
5093
|
variant: "danger",
|
|
5094
|
-
children: N(
|
|
5094
|
+
children: N(s.connectionsError, { error: h })
|
|
5095
5095
|
}),
|
|
5096
5096
|
/* @__PURE__ */ G("div", {
|
|
5097
5097
|
className: "grid gap-3 sm:grid-cols-2",
|
|
5098
5098
|
children: [
|
|
5099
5099
|
/* @__PURE__ */ W(b, {
|
|
5100
5100
|
icon: "cloud",
|
|
5101
|
-
title:
|
|
5102
|
-
description:
|
|
5103
|
-
badge:
|
|
5101
|
+
title: s.cloudTitle,
|
|
5102
|
+
description: s.cloudDescription,
|
|
5103
|
+
badge: d ? /* @__PURE__ */ W(i, {
|
|
5104
5104
|
variant: "success",
|
|
5105
|
-
children: N(
|
|
5105
|
+
children: N(s.cloudConnected, { count: d })
|
|
5106
5106
|
}) : /* @__PURE__ */ W(i, {
|
|
5107
5107
|
variant: "light",
|
|
5108
|
-
children:
|
|
5108
|
+
children: s.cloudNone
|
|
5109
5109
|
}),
|
|
5110
|
-
onClick: () =>
|
|
5110
|
+
onClick: () => v("cloud")
|
|
5111
5111
|
}),
|
|
5112
|
-
|
|
5112
|
+
l && p?.map((e) => /* @__PURE__ */ W(b, {
|
|
5113
5113
|
icon: "server",
|
|
5114
5114
|
title: e.name,
|
|
5115
5115
|
description: e.url,
|
|
5116
5116
|
badge: e.draining ? /* @__PURE__ */ W(i, {
|
|
5117
5117
|
variant: "warning",
|
|
5118
|
-
children:
|
|
5118
|
+
children: s.runnerDraining
|
|
5119
5119
|
}) : e.isDefault ? /* @__PURE__ */ W(i, {
|
|
5120
5120
|
variant: "info",
|
|
5121
|
-
children:
|
|
5121
|
+
children: s.runnerDefault
|
|
5122
5122
|
}) : void 0,
|
|
5123
|
-
onClick: () =>
|
|
5123
|
+
onClick: () => v({ runner: e })
|
|
5124
5124
|
}, e.id)),
|
|
5125
|
-
!
|
|
5125
|
+
!l && /* @__PURE__ */ W(b, {
|
|
5126
5126
|
icon: "server",
|
|
5127
|
-
title:
|
|
5128
|
-
description:
|
|
5129
|
-
onClick: () =>
|
|
5127
|
+
title: s.runnerOfProject,
|
|
5128
|
+
description: s.runnerOfProjectDescription,
|
|
5129
|
+
onClick: () => v("mine")
|
|
5130
5130
|
}),
|
|
5131
|
-
|
|
5131
|
+
l && /* @__PURE__ */ W(b, {
|
|
5132
5132
|
icon: "plus",
|
|
5133
5133
|
dashed: !0,
|
|
5134
|
-
title:
|
|
5135
|
-
description:
|
|
5136
|
-
onClick: () =>
|
|
5134
|
+
title: s.runnerAdd,
|
|
5135
|
+
description: s.runnerAddDescription,
|
|
5136
|
+
onClick: () => v("add")
|
|
5137
5137
|
})
|
|
5138
5138
|
]
|
|
5139
5139
|
}),
|
|
5140
|
-
|
|
5141
|
-
title:
|
|
5140
|
+
_ === "cloud" && /* @__PURE__ */ W(S, {
|
|
5141
|
+
title: s.cloudTitle,
|
|
5142
5142
|
size: "xl",
|
|
5143
|
-
onClose:
|
|
5143
|
+
onClose: x,
|
|
5144
5144
|
footer: /* @__PURE__ */ W(n, {
|
|
5145
5145
|
variant: "link",
|
|
5146
|
-
label:
|
|
5147
|
-
onClick:
|
|
5146
|
+
label: s.settingsClose,
|
|
5147
|
+
onClick: x
|
|
5148
5148
|
}),
|
|
5149
5149
|
children: /* @__PURE__ */ W(t, {
|
|
5150
|
-
|
|
5151
|
-
|
|
5150
|
+
...o ?? {},
|
|
5151
|
+
store: u,
|
|
5152
|
+
readOnly: o?.readOnly ?? a.role === "member"
|
|
5152
5153
|
})
|
|
5153
5154
|
}),
|
|
5154
|
-
|
|
5155
|
-
title:
|
|
5155
|
+
_ === "mine" && /* @__PURE__ */ W(S, {
|
|
5156
|
+
title: s.runnerOfProject,
|
|
5156
5157
|
size: "lg",
|
|
5157
|
-
onClose:
|
|
5158
|
+
onClose: x,
|
|
5158
5159
|
footer: /* @__PURE__ */ W(n, {
|
|
5159
5160
|
variant: "link",
|
|
5160
|
-
label:
|
|
5161
|
-
onClick:
|
|
5161
|
+
label: s.settingsClose,
|
|
5162
|
+
onClick: x
|
|
5162
5163
|
}),
|
|
5163
5164
|
children: /* @__PURE__ */ W(q, {
|
|
5164
5165
|
client: e.runner(),
|
|
5165
5166
|
scope: "user",
|
|
5166
|
-
locale:
|
|
5167
|
+
locale: c
|
|
5167
5168
|
})
|
|
5168
5169
|
}),
|
|
5169
|
-
|
|
5170
|
+
_ === "add" && /* @__PURE__ */ W(le, {
|
|
5170
5171
|
fleet: e.fleet,
|
|
5171
|
-
t: ue(
|
|
5172
|
-
locale:
|
|
5173
|
-
onClose:
|
|
5174
|
-
onAdded:
|
|
5172
|
+
t: ue(c),
|
|
5173
|
+
locale: c,
|
|
5174
|
+
onClose: x,
|
|
5175
|
+
onAdded: x
|
|
5175
5176
|
}),
|
|
5176
|
-
|
|
5177
|
+
_ && typeof _ == "object" && /* @__PURE__ */ W(yi, {
|
|
5177
5178
|
backend: e,
|
|
5178
|
-
runner:
|
|
5179
|
-
onClose:
|
|
5179
|
+
runner: _.runner,
|
|
5180
|
+
onClose: x
|
|
5180
5181
|
})
|
|
5181
5182
|
]
|
|
5182
5183
|
});
|
|
@@ -5673,7 +5674,8 @@ function Ei() {
|
|
|
5673
5674
|
label: e.connectionsTab,
|
|
5674
5675
|
children: /* @__PURE__ */ W(vi, {
|
|
5675
5676
|
backend: s,
|
|
5676
|
-
me: d
|
|
5677
|
+
me: d,
|
|
5678
|
+
...a ? { cloud: a } : {}
|
|
5677
5679
|
})
|
|
5678
5680
|
}, "connections"),
|
|
5679
5681
|
s && d?.role === "platform" && /* @__PURE__ */ W(k, {
|