@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 o = Q(), { locale: s } = I(), c = a.role === "platform", l = B(() => e.connections(), [e]), [u, d] = H(null), [f, p] = H(null), [m, h] = H(null), [g, _] = H(null), v = R(async () => {
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
- d((await l.load()).providers.length), c && p(await e.fleet.list()), h(null);
5070
+ f((await u.load()).providers.length), l && m(await e.fleet.list()), g(null);
5071
5071
  } catch (e) {
5072
- h(gi(e));
5072
+ g(gi(e));
5073
5073
  }
5074
5074
  }, [
5075
5075
  e,
5076
- l,
5077
- c
5076
+ u,
5077
+ l
5078
5078
  ]);
5079
5079
  z(() => {
5080
- v();
5081
- }, [v]);
5082
- let y = () => {
5083
- _(null), v();
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: o.connectionsIntro
5090
+ children: s.connectionsIntro
5091
5091
  }),
5092
- m && /* @__PURE__ */ W(r, {
5092
+ h && /* @__PURE__ */ W(r, {
5093
5093
  variant: "danger",
5094
- children: N(o.connectionsError, { error: m })
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: o.cloudTitle,
5102
- description: o.cloudDescription,
5103
- badge: u ? /* @__PURE__ */ W(i, {
5101
+ title: s.cloudTitle,
5102
+ description: s.cloudDescription,
5103
+ badge: d ? /* @__PURE__ */ W(i, {
5104
5104
  variant: "success",
5105
- children: N(o.cloudConnected, { count: u })
5105
+ children: N(s.cloudConnected, { count: d })
5106
5106
  }) : /* @__PURE__ */ W(i, {
5107
5107
  variant: "light",
5108
- children: o.cloudNone
5108
+ children: s.cloudNone
5109
5109
  }),
5110
- onClick: () => _("cloud")
5110
+ onClick: () => v("cloud")
5111
5111
  }),
5112
- c && f?.map((e) => /* @__PURE__ */ W(b, {
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: o.runnerDraining
5118
+ children: s.runnerDraining
5119
5119
  }) : e.isDefault ? /* @__PURE__ */ W(i, {
5120
5120
  variant: "info",
5121
- children: o.runnerDefault
5121
+ children: s.runnerDefault
5122
5122
  }) : void 0,
5123
- onClick: () => _({ runner: e })
5123
+ onClick: () => v({ runner: e })
5124
5124
  }, e.id)),
5125
- !c && /* @__PURE__ */ W(b, {
5125
+ !l && /* @__PURE__ */ W(b, {
5126
5126
  icon: "server",
5127
- title: o.runnerOfProject,
5128
- description: o.runnerOfProjectDescription,
5129
- onClick: () => _("mine")
5127
+ title: s.runnerOfProject,
5128
+ description: s.runnerOfProjectDescription,
5129
+ onClick: () => v("mine")
5130
5130
  }),
5131
- c && /* @__PURE__ */ W(b, {
5131
+ l && /* @__PURE__ */ W(b, {
5132
5132
  icon: "plus",
5133
5133
  dashed: !0,
5134
- title: o.runnerAdd,
5135
- description: o.runnerAddDescription,
5136
- onClick: () => _("add")
5134
+ title: s.runnerAdd,
5135
+ description: s.runnerAddDescription,
5136
+ onClick: () => v("add")
5137
5137
  })
5138
5138
  ]
5139
5139
  }),
5140
- g === "cloud" && /* @__PURE__ */ W(S, {
5141
- title: o.cloudTitle,
5140
+ _ === "cloud" && /* @__PURE__ */ W(S, {
5141
+ title: s.cloudTitle,
5142
5142
  size: "xl",
5143
- onClose: y,
5143
+ onClose: x,
5144
5144
  footer: /* @__PURE__ */ W(n, {
5145
5145
  variant: "link",
5146
- label: o.settingsClose,
5147
- onClick: y
5146
+ label: s.settingsClose,
5147
+ onClick: x
5148
5148
  }),
5149
5149
  children: /* @__PURE__ */ W(t, {
5150
- store: l,
5151
- readOnly: a.role === "member"
5150
+ ...o ?? {},
5151
+ store: u,
5152
+ readOnly: o?.readOnly ?? a.role === "member"
5152
5153
  })
5153
5154
  }),
5154
- g === "mine" && /* @__PURE__ */ W(S, {
5155
- title: o.runnerOfProject,
5155
+ _ === "mine" && /* @__PURE__ */ W(S, {
5156
+ title: s.runnerOfProject,
5156
5157
  size: "lg",
5157
- onClose: y,
5158
+ onClose: x,
5158
5159
  footer: /* @__PURE__ */ W(n, {
5159
5160
  variant: "link",
5160
- label: o.settingsClose,
5161
- onClick: y
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: s
5167
+ locale: c
5167
5168
  })
5168
5169
  }),
5169
- g === "add" && /* @__PURE__ */ W(le, {
5170
+ _ === "add" && /* @__PURE__ */ W(le, {
5170
5171
  fleet: e.fleet,
5171
- t: ue(s),
5172
- locale: s,
5173
- onClose: y,
5174
- onAdded: y
5172
+ t: ue(c),
5173
+ locale: c,
5174
+ onClose: x,
5175
+ onAdded: x
5175
5176
  }),
5176
- g && typeof g == "object" && /* @__PURE__ */ W(yi, {
5177
+ _ && typeof _ == "object" && /* @__PURE__ */ W(yi, {
5177
5178
  backend: e,
5178
- runner: g.runner,
5179
- onClose: y
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, {