@llmnative/agentico 0.24.1 → 0.26.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: "The runner and the memory of your namespace are yours to choose, among those you administer.",
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: "Runner e memoria del tuo namespace li scegli tu, tra quelli che amministri.",
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: "Runner und Gedächtnis Ihres Namespace wählen Sie selbst, unter denen, die Sie verwalten.",
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.",
@@ -5065,22 +5065,22 @@ function _i(e) {
5065
5065
  };
5066
5066
  }
5067
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 () => {
5068
+ let s = Q(), { locale: c } = I(), l = a.role === "platform", u = a.administers?.runners ?? l, d = B(() => o?.store ?? e.connections(), [e, o?.store]), [f, p] = H(null), [m, h] = H(null), [g, _] = H(null), [v, y] = H(null), x = R(async () => {
5069
5069
  try {
5070
- f((await u.load()).providers.length), l && m(await e.fleet.list()), g(null);
5070
+ p((await d.load()).providers.length), u && h(await e.fleet.list()), _(null);
5071
5071
  } catch (e) {
5072
- g(gi(e));
5072
+ _(gi(e));
5073
5073
  }
5074
5074
  }, [
5075
5075
  e,
5076
- u,
5077
- l
5076
+ d,
5077
+ u
5078
5078
  ]);
5079
5079
  z(() => {
5080
- y();
5081
- }, [y]);
5082
- let x = () => {
5083
- v(null), y();
5080
+ x();
5081
+ }, [x]);
5082
+ let C = () => {
5083
+ y(null), x();
5084
5084
  };
5085
5085
  return /* @__PURE__ */ G("div", {
5086
5086
  className: "flex flex-col gap-3",
@@ -5089,9 +5089,9 @@ function vi({ backend: e, me: a, cloud: o }) {
5089
5089
  className: "text-sm text-muted-foreground",
5090
5090
  children: s.connectionsIntro
5091
5091
  }),
5092
- h && /* @__PURE__ */ W(r, {
5092
+ g && /* @__PURE__ */ W(r, {
5093
5093
  variant: "danger",
5094
- children: N(s.connectionsError, { error: h })
5094
+ children: N(s.connectionsError, { error: g })
5095
5095
  }),
5096
5096
  /* @__PURE__ */ G("div", {
5097
5097
  className: "grid gap-3 sm:grid-cols-2",
@@ -5100,16 +5100,16 @@ function vi({ backend: e, me: a, cloud: o }) {
5100
5100
  icon: "cloud",
5101
5101
  title: s.cloudTitle,
5102
5102
  description: s.cloudDescription,
5103
- badge: d ? /* @__PURE__ */ W(i, {
5103
+ badge: f ? /* @__PURE__ */ W(i, {
5104
5104
  variant: "success",
5105
- children: N(s.cloudConnected, { count: d })
5105
+ children: N(s.cloudConnected, { count: f })
5106
5106
  }) : /* @__PURE__ */ W(i, {
5107
5107
  variant: "light",
5108
5108
  children: s.cloudNone
5109
5109
  }),
5110
- onClick: () => v("cloud")
5110
+ onClick: () => y("cloud")
5111
5111
  }),
5112
- l && p?.map((e) => /* @__PURE__ */ W(b, {
5112
+ u && m?.map((e) => /* @__PURE__ */ W(b, {
5113
5113
  icon: "server",
5114
5114
  title: e.name,
5115
5115
  description: e.url,
@@ -5120,46 +5120,46 @@ function vi({ backend: e, me: a, cloud: o }) {
5120
5120
  variant: "info",
5121
5121
  children: s.runnerDefault
5122
5122
  }) : void 0,
5123
- onClick: () => v({ runner: e })
5123
+ onClick: () => y({ runner: e })
5124
5124
  }, e.id)),
5125
- !l && /* @__PURE__ */ W(b, {
5125
+ !u && a.hasRunner && /* @__PURE__ */ W(b, {
5126
5126
  icon: "server",
5127
5127
  title: s.runnerOfProject,
5128
5128
  description: s.runnerOfProjectDescription,
5129
- onClick: () => v("mine")
5129
+ onClick: () => y("mine")
5130
5130
  }),
5131
- l && /* @__PURE__ */ W(b, {
5131
+ u && /* @__PURE__ */ W(b, {
5132
5132
  icon: "plus",
5133
5133
  dashed: !0,
5134
5134
  title: s.runnerAdd,
5135
5135
  description: s.runnerAddDescription,
5136
- onClick: () => v("add")
5136
+ onClick: () => y("add")
5137
5137
  })
5138
5138
  ]
5139
5139
  }),
5140
- _ === "cloud" && /* @__PURE__ */ W(S, {
5140
+ v === "cloud" && /* @__PURE__ */ W(S, {
5141
5141
  title: s.cloudTitle,
5142
5142
  size: "xl",
5143
- onClose: x,
5143
+ onClose: C,
5144
5144
  footer: /* @__PURE__ */ W(n, {
5145
5145
  variant: "link",
5146
5146
  label: s.settingsClose,
5147
- onClick: x
5147
+ onClick: C
5148
5148
  }),
5149
5149
  children: /* @__PURE__ */ W(t, {
5150
5150
  ...o ?? {},
5151
- store: u,
5151
+ store: d,
5152
5152
  readOnly: o?.readOnly ?? a.role === "member"
5153
5153
  })
5154
5154
  }),
5155
- _ === "mine" && /* @__PURE__ */ W(S, {
5155
+ v === "mine" && /* @__PURE__ */ W(S, {
5156
5156
  title: s.runnerOfProject,
5157
5157
  size: "lg",
5158
- onClose: x,
5158
+ onClose: C,
5159
5159
  footer: /* @__PURE__ */ W(n, {
5160
5160
  variant: "link",
5161
5161
  label: s.settingsClose,
5162
- onClick: x
5162
+ onClick: C
5163
5163
  }),
5164
5164
  children: /* @__PURE__ */ W(q, {
5165
5165
  client: e.runner(),
@@ -5167,54 +5167,55 @@ function vi({ backend: e, me: a, cloud: o }) {
5167
5167
  locale: c
5168
5168
  })
5169
5169
  }),
5170
- _ === "add" && /* @__PURE__ */ W(le, {
5170
+ v === "add" && /* @__PURE__ */ W(le, {
5171
5171
  fleet: e.fleet,
5172
5172
  t: ue(c),
5173
5173
  locale: c,
5174
- onClose: x,
5175
- onAdded: x
5174
+ onClose: C,
5175
+ onAdded: C
5176
5176
  }),
5177
- _ && typeof _ == "object" && /* @__PURE__ */ W(yi, {
5177
+ v && typeof v == "object" && /* @__PURE__ */ W(yi, {
5178
5178
  backend: e,
5179
- runner: _.runner,
5180
- onClose: x
5179
+ runner: v.runner,
5180
+ platform: l,
5181
+ onClose: C
5181
5182
  })
5182
5183
  ]
5183
5184
  });
5184
5185
  }
5185
- function yi({ backend: e, runner: t, onClose: i }) {
5186
- let a = Q(), { locale: o } = I(), [s, c] = H(null), [l, u] = H(null), [d, p] = H(!1);
5186
+ function yi({ backend: e, runner: t, platform: i, onClose: a }) {
5187
+ let o = Q(), { locale: s } = I(), [c, l] = H(null), [u, d] = H(null), [p, m] = H(!1);
5187
5188
  z(() => {
5188
5189
  let n = !0;
5189
5190
  return e.fleet.status(t.id).then((e) => {
5190
- n && c(e);
5191
+ n && l(e);
5191
5192
  }, (e) => {
5192
- n && u(gi(e));
5193
+ n && d(gi(e));
5193
5194
  }), () => {
5194
5195
  n = !1;
5195
5196
  };
5196
5197
  }, [e, t.id]);
5197
- let m = (n) => e.fleet.update(t.id, n).catch((e) => u(gi(e)));
5198
+ let g = (n) => e.fleet.update(t.id, n).catch((e) => d(gi(e)));
5198
5199
  return /* @__PURE__ */ G(S, {
5199
5200
  title: t.name,
5200
5201
  size: "lg",
5201
- onClose: i,
5202
+ onClose: a,
5202
5203
  footer: /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(n, {
5203
5204
  variant: "outline-danger",
5204
5205
  icon: "trash",
5205
- label: a.runnerRemove,
5206
- onClick: () => p(!0)
5206
+ label: o.runnerRemove,
5207
+ onClick: () => m(!0)
5207
5208
  }), /* @__PURE__ */ W(n, {
5208
5209
  variant: "link",
5209
- label: a.settingsClose,
5210
- onClick: i
5210
+ label: o.settingsClose,
5211
+ onClick: a
5211
5212
  })] }),
5212
5213
  children: [/* @__PURE__ */ G("div", {
5213
5214
  className: "flex flex-col gap-4",
5214
5215
  children: [
5215
- l && /* @__PURE__ */ W(r, {
5216
+ u && /* @__PURE__ */ W(r, {
5216
5217
  variant: "danger",
5217
- children: N(a.runnerUnreachable, { error: l })
5218
+ children: N(o.runnerUnreachable, { error: u })
5218
5219
  }),
5219
5220
  /* @__PURE__ */ W(f, { items: [
5220
5221
  {
@@ -5222,14 +5223,14 @@ function yi({ backend: e, runner: t, onClose: i }) {
5222
5223
  value: t.url
5223
5224
  },
5224
5225
  {
5225
- label: a.runnerVersion,
5226
- value: s?.version ?? "…"
5226
+ label: o.runnerVersion,
5227
+ value: c?.version ?? "…"
5227
5228
  },
5228
5229
  {
5229
- label: a.runnerLoad,
5230
- value: s ? N(a.runnerLoadValue, {
5231
- chats: s.load.chats,
5232
- max: s.load.maxChats
5230
+ label: o.runnerLoad,
5231
+ value: c ? N(o.runnerLoadValue, {
5232
+ chats: c.load.chats,
5233
+ max: c.load.maxChats
5233
5234
  }) : "…"
5234
5235
  }
5235
5236
  ] }),
@@ -5239,38 +5240,38 @@ function yi({ backend: e, runner: t, onClose: i }) {
5239
5240
  onSubmit: () => !1,
5240
5241
  children: /* @__PURE__ */ G("div", {
5241
5242
  className: "flex flex-col gap-2",
5242
- children: [/* @__PURE__ */ W(O, {
5243
+ children: [i && !t.owners?.length && /* @__PURE__ */ W(O, {
5243
5244
  name: "isDefault",
5244
- label: a.runnerSetDefault,
5245
+ label: o.runnerSetDefault,
5245
5246
  defaultValue: t.isDefault ? "on" : "",
5246
- onChange: ({ value: e }) => void m({ isDefault: !!e })
5247
+ onChange: ({ value: e }) => void g({ isDefault: !!e })
5247
5248
  }), /* @__PURE__ */ W(O, {
5248
5249
  name: "draining",
5249
- label: a.runnerSetDraining,
5250
+ label: o.runnerSetDraining,
5250
5251
  defaultValue: t.draining ? "on" : "",
5251
- onChange: ({ value: e }) => void m({ draining: !!e })
5252
+ onChange: ({ value: e }) => void g({ draining: !!e })
5252
5253
  })]
5253
5254
  })
5254
5255
  }),
5255
5256
  /* @__PURE__ */ W(q, {
5256
5257
  client: e.runnerOfNamespace(),
5257
5258
  scope: "tenant",
5258
- locale: o
5259
+ locale: s
5259
5260
  })
5260
5261
  ]
5261
- }), d && /* @__PURE__ */ W(C, {
5262
- title: a.runnerRemove,
5262
+ }), p && /* @__PURE__ */ W(C, {
5263
+ title: o.runnerRemove,
5263
5264
  danger: !0,
5264
- onClose: () => p(!1),
5265
+ onClose: () => m(!1),
5265
5266
  onYes: async () => {
5266
5267
  try {
5267
- await e.fleet.remove(t.id), i();
5268
+ await e.fleet.remove(t.id), a();
5268
5269
  } catch (e) {
5269
- u(gi(e));
5270
+ d(gi(e));
5270
5271
  }
5271
- return p(!1), !0;
5272
+ return m(!1), !0;
5272
5273
  },
5273
- children: N(a.runnerRemoveConfirm, { name: t.name })
5274
+ children: N(o.runnerRemoveConfirm, { name: t.name })
5274
5275
  })]
5275
5276
  });
5276
5277
  }
@@ -5456,8 +5457,8 @@ function Ci({ backend: e, me: t }) {
5456
5457
  try {
5457
5458
  let [t, n, r] = await Promise.all([
5458
5459
  e.projects.list(),
5459
- i ? e.fleet.list() : Promise.resolve([]),
5460
- i ? e.memories.list() : Promise.resolve([])
5460
+ e.fleet.list(),
5461
+ e.memories.list()
5461
5462
  ]);
5462
5463
  o(t.namespaces), c(n), u(r), f(null);
5463
5464
  } catch (e) {
@@ -5500,12 +5501,12 @@ function Ci({ backend: e, me: t }) {
5500
5501
  className: "font-mono text-xs text-muted-foreground",
5501
5502
  children: e.namespace
5502
5503
  })]
5503
- }), i ? /* @__PURE__ */ G(h, {
5504
+ }), i || e.namespace === t.namespace ? /* @__PURE__ */ G(h, {
5504
5505
  appearance: "empty",
5505
5506
  showNotice: !1,
5506
5507
  onSubmit: () => !1,
5507
5508
  className: "contents",
5508
- children: [/* @__PURE__ */ W(E, {
5509
+ children: [i || s.length > 0 ? /* @__PURE__ */ W(E, {
5509
5510
  name: `runner-${e.namespace}`,
5510
5511
  label: n.projectsRunner,
5511
5512
  defaultValue: e.runner?.id ?? "",
@@ -5520,6 +5521,9 @@ function Ci({ backend: e, me: t }) {
5520
5521
  onChange: ({ value: t }) => {
5521
5522
  t && m(e.namespace, { runnerId: String(t) });
5522
5523
  }
5524
+ }) : /* @__PURE__ */ W("span", {
5525
+ className: "text-sm",
5526
+ children: e.runner?.name ?? n.projectsDefaultRunner
5523
5527
  }), /* @__PURE__ */ W(E, {
5524
5528
  name: `memory-${e.namespace}`,
5525
5529
  label: n.projectsMemory,
@@ -5678,7 +5682,7 @@ function Ei() {
5678
5682
  ...a ? { cloud: a } : {}
5679
5683
  })
5680
5684
  }, "connections"),
5681
- s && d?.role === "platform" && /* @__PURE__ */ W(k, {
5685
+ s && d && (d.administers?.memories ?? d.role === "platform") && /* @__PURE__ */ W(k, {
5682
5686
  label: e.memoryTab,
5683
5687
  children: /* @__PURE__ */ W(xi, { backend: s })
5684
5688
  }, "memory"),