@llmnative/agentico 0.24.0 → 0.25.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/index.mjs CHANGED
@@ -496,7 +496,7 @@ var Ke = {
496
496
  projectsMemory: "Memory",
497
497
  projectsDefaultRunner: "The default one",
498
498
  projectsNoMemory: "None",
499
- projectsReadOnly: "Only who administers the platform changes them.",
499
+ projectsReadOnly: "Only who administers the platform changes the runner; the memory of your namespace is yours to choose.",
500
500
  connectionsError: "Something went wrong: {error}",
501
501
  harnessGroup: "{provider} · on the runner",
502
502
  harnessNoCredit: "The credit of the subscription is over until {at}.",
@@ -716,7 +716,7 @@ var Ke = {
716
716
  projectsMemory: "Memoria",
717
717
  projectsDefaultRunner: "Quello predefinito",
718
718
  projectsNoMemory: "Nessuna",
719
- projectsReadOnly: "Li cambia solo chi amministra la piattaforma.",
719
+ projectsReadOnly: "Il runner lo cambia solo chi amministra la piattaforma; la memoria del tuo namespace la scegli tu.",
720
720
  connectionsError: "Qualcosa non è andato: {error}",
721
721
  harnessGroup: "{provider} · sul runner",
722
722
  harnessNoCredit: "Il credito dell’abbonamento è finito fino alle {at}.",
@@ -936,7 +936,7 @@ var Ke = {
936
936
  projectsMemory: "Gedächtnis",
937
937
  projectsDefaultRunner: "Der Standard",
938
938
  projectsNoMemory: "Keines",
939
- projectsReadOnly: "Nur wer die Plattform verwaltet, ändert sie.",
939
+ projectsReadOnly: "Den Runner ändert nur, wer die Plattform verwaltet; das Gedächtnis Ihres Namespace wählen Sie selbst.",
940
940
  connectionsError: "Etwas ist schiefgelaufen: {error}",
941
941
  harnessGroup: "{provider} · auf dem Runner",
942
942
  harnessNoCredit: "Das Guthaben des Abonnements ist bis {at} aufgebraucht.",
@@ -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 && a.hasRunner && /* @__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
  });
@@ -5456,7 +5457,7 @@ function Ci({ backend: e, me: t }) {
5456
5457
  let [t, n, r] = await Promise.all([
5457
5458
  e.projects.list(),
5458
5459
  i ? e.fleet.list() : Promise.resolve([]),
5459
- i ? e.memories.list() : Promise.resolve([])
5460
+ e.memories.list()
5460
5461
  ]);
5461
5462
  o(t.namespaces), c(n), u(r), f(null);
5462
5463
  } catch (e) {
@@ -5499,12 +5500,12 @@ function Ci({ backend: e, me: t }) {
5499
5500
  className: "font-mono text-xs text-muted-foreground",
5500
5501
  children: e.namespace
5501
5502
  })]
5502
- }), i ? /* @__PURE__ */ G(h, {
5503
+ }), i || e.namespace === t.namespace ? /* @__PURE__ */ G(h, {
5503
5504
  appearance: "empty",
5504
5505
  showNotice: !1,
5505
5506
  onSubmit: () => !1,
5506
5507
  className: "contents",
5507
- children: [/* @__PURE__ */ W(E, {
5508
+ children: [i ? /* @__PURE__ */ W(E, {
5508
5509
  name: `runner-${e.namespace}`,
5509
5510
  label: n.projectsRunner,
5510
5511
  defaultValue: e.runner?.id ?? "",
@@ -5519,6 +5520,9 @@ function Ci({ backend: e, me: t }) {
5519
5520
  onChange: ({ value: t }) => {
5520
5521
  t && m(e.namespace, { runnerId: String(t) });
5521
5522
  }
5523
+ }) : /* @__PURE__ */ W("span", {
5524
+ className: "text-sm",
5525
+ children: e.runner?.name ?? n.projectsDefaultRunner
5522
5526
  }), /* @__PURE__ */ W(E, {
5523
5527
  name: `memory-${e.namespace}`,
5524
5528
  label: n.projectsMemory,
@@ -5673,10 +5677,11 @@ function Ei() {
5673
5677
  label: e.connectionsTab,
5674
5678
  children: /* @__PURE__ */ W(vi, {
5675
5679
  backend: s,
5676
- me: d
5680
+ me: d,
5681
+ ...a ? { cloud: a } : {}
5677
5682
  })
5678
5683
  }, "connections"),
5679
- s && d?.role === "platform" && /* @__PURE__ */ W(k, {
5684
+ s && d && d.role !== "member" && /* @__PURE__ */ W(k, {
5680
5685
  label: e.memoryTab,
5681
5686
  children: /* @__PURE__ */ W(xi, { backend: s })
5682
5687
  }, "memory"),