@llmnative/runner 1.5.0 → 2.0.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/README.md +10 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +42 -23
- package/dist/client.mjs.map +1 -1
- package/dist/setup-app/assets/{NetworkCanvasImpl--7M6QHBl-CKRvOQvv.js → NetworkCanvasImpl--7M6QHBl-HRFVqMos.js} +1 -1
- package/dist/setup-app/assets/{index-Da8UbNNk.js → index-cU306rv9.js} +3 -3
- package/dist/setup-app/assets/{index.es-C1uJwPig.js → index.es-2REYI59Q.js} +1 -1
- package/dist/setup-app/assets/{lucide-react-BO665uFF.js → lucide-react-CVuJULNh.js} +1 -1
- package/dist/setup-app/index.html +1 -1
- package/dist/steps.js +1 -1
- package/dist/steps.mjs +2 -2
- package/dist/types/client/index.d.ts +68 -7
- package/dist/types/ui/texts.d.ts +30 -0
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +145 -8
- package/dist/ui.mjs.map +1 -1
- package/install/coolify.yaml +2 -2
- package/install/install.sh +1 -1
- package/llms.txt +1 -0
- package/openapi/v1.yaml +38 -9
- package/package.json +1 -1
package/dist/ui.mjs
CHANGED
|
@@ -169,6 +169,16 @@ var N = {
|
|
|
169
169
|
consolePlatformSave: "Save",
|
|
170
170
|
consolePlatformRevokeConfirm: "Disconnect {name}? It will no longer reach this runner.",
|
|
171
171
|
consoleRequestMatch: "The request you opened",
|
|
172
|
+
consoleRequestApp: "For the app «{app}»: it will see the organizations it makes and those you grant it.",
|
|
173
|
+
consolePlatformApp: "app «{app}»",
|
|
174
|
+
consoleGrants: "Organizations asked for",
|
|
175
|
+
consoleGrantsHint: "An app asked for an organization that another app made on this runner. Granting it, the app uses its accounts too.",
|
|
176
|
+
consoleGrantFrom: "{name} ({app}) asks for the organization «{tenant}», at {at}",
|
|
177
|
+
consoleGrantApproved: "{name} now sees «{tenant}».",
|
|
178
|
+
consoleGrantDenied: "Refused.",
|
|
179
|
+
consoleTenantPlatforms: "Apps that see it",
|
|
180
|
+
consoleTenantPlatformsNone: "Only the admin and the platforms connected before 2.0.",
|
|
181
|
+
consoleUngrant: "Take away",
|
|
172
182
|
consoleApprove: "Approve",
|
|
173
183
|
consoleDeny: "Refuse",
|
|
174
184
|
consoleApproved: "Approved: {name} is connected.",
|
|
@@ -340,6 +350,16 @@ var N = {
|
|
|
340
350
|
consolePlatformSave: "Salva",
|
|
341
351
|
consolePlatformRevokeConfirm: "Scollegare {name}? Non raggiungerà più questo runner.",
|
|
342
352
|
consoleRequestMatch: "La richiesta che hai aperto",
|
|
353
|
+
consoleRequestApp: "Per l'app «{app}»: vedrà le organizzazioni che crea e quelle che le concedi.",
|
|
354
|
+
consolePlatformApp: "app «{app}»",
|
|
355
|
+
consoleGrants: "Organizzazioni richieste",
|
|
356
|
+
consoleGrantsHint: "Un'app ha chiesto un'organizzazione che un'altra app ha creato su questo runner. Concedendola, l'app usa anche i suoi account.",
|
|
357
|
+
consoleGrantFrom: "{name} ({app}) chiede l'organizzazione «{tenant}», alle {at}",
|
|
358
|
+
consoleGrantApproved: "{name} ora vede «{tenant}».",
|
|
359
|
+
consoleGrantDenied: "Rifiutata.",
|
|
360
|
+
consoleTenantPlatforms: "App che la vedono",
|
|
361
|
+
consoleTenantPlatformsNone: "Solo l'admin e le piattaforme collegate prima della 2.0.",
|
|
362
|
+
consoleUngrant: "Togli",
|
|
343
363
|
consoleApprove: "Approva",
|
|
344
364
|
consoleDeny: "Rifiuta",
|
|
345
365
|
consoleApproved: "Approvata: {name} è collegato.",
|
|
@@ -1485,6 +1505,11 @@ function le({ client: e, locale: n, texts: r, onSignOut: i, approve: a }) {
|
|
|
1485
1505
|
approve: a,
|
|
1486
1506
|
onAnswered: O
|
|
1487
1507
|
}),
|
|
1508
|
+
/* @__PURE__ */ A(pe, {
|
|
1509
|
+
client: e,
|
|
1510
|
+
t: o,
|
|
1511
|
+
onAnswered: O
|
|
1512
|
+
}),
|
|
1488
1513
|
/* @__PURE__ */ A(h, {
|
|
1489
1514
|
title: o.consoleStatus,
|
|
1490
1515
|
loading: !s && !m,
|
|
@@ -1637,7 +1662,28 @@ function ue({ client: e, t }) {
|
|
|
1637
1662
|
}),
|
|
1638
1663
|
n?.map((n) => {
|
|
1639
1664
|
let r = i[n.id] ?? n.project ?? "";
|
|
1640
|
-
return /* @__PURE__ */
|
|
1665
|
+
return n.app ? /* @__PURE__ */ j("div", {
|
|
1666
|
+
className: "flex flex-wrap items-center gap-2 rounded-md border border-border p-3",
|
|
1667
|
+
children: [/* @__PURE__ */ j("div", {
|
|
1668
|
+
className: "flex flex-1 flex-col gap-1",
|
|
1669
|
+
children: [/* @__PURE__ */ A("span", {
|
|
1670
|
+
className: "font-medium",
|
|
1671
|
+
children: n.name
|
|
1672
|
+
}), /* @__PURE__ */ j("span", {
|
|
1673
|
+
className: "text-xs text-muted-foreground",
|
|
1674
|
+
children: [
|
|
1675
|
+
Q(n.createdAt),
|
|
1676
|
+
" · ",
|
|
1677
|
+
L(t.consolePlatformApp, { app: n.app })
|
|
1678
|
+
]
|
|
1679
|
+
})]
|
|
1680
|
+
}), /* @__PURE__ */ A(f, {
|
|
1681
|
+
icon: "trash",
|
|
1682
|
+
label: t.consoleRevoke,
|
|
1683
|
+
variant: "outline-danger",
|
|
1684
|
+
onClick: () => s(n)
|
|
1685
|
+
})]
|
|
1686
|
+
}, n.id) : /* @__PURE__ */ A(b, {
|
|
1641
1687
|
appearance: "empty",
|
|
1642
1688
|
showNotice: !1,
|
|
1643
1689
|
onSubmit: () => !1,
|
|
@@ -1699,10 +1745,15 @@ function ue({ client: e, t }) {
|
|
|
1699
1745
|
});
|
|
1700
1746
|
}
|
|
1701
1747
|
function de({ client: e, tenant: t, t: n, locale: r, onKey: i, onChange: a }) {
|
|
1702
|
-
let [o, s] = d(!1), [p, h] = d(null), [g, _] = d(!1), v = u(() => e.as({ tenant: t.id }), [e, t.id]),
|
|
1748
|
+
let [o, s] = d(!1), [p, h] = d(null), [g, _] = d(!1), [v, y] = d({}), b = u(() => e.as({ tenant: t.id }), [e, t.id]), S = c(async () => h(await e.platform.keys(t.id)), [e, t.id]);
|
|
1703
1749
|
return l(() => {
|
|
1704
|
-
o && y();
|
|
1705
|
-
}, [
|
|
1750
|
+
o && (S(), t.platforms?.length && e.platform.platformKeys().then((e) => y(Object.fromEntries(e.map((e) => [e.id, e.app ? `${e.name} (${e.app})` : e.name])))).catch(() => void 0));
|
|
1751
|
+
}, [
|
|
1752
|
+
o,
|
|
1753
|
+
S,
|
|
1754
|
+
e,
|
|
1755
|
+
t.platforms
|
|
1756
|
+
]), /* @__PURE__ */ j("div", {
|
|
1706
1757
|
className: "rounded-md border border-border p-3",
|
|
1707
1758
|
children: [
|
|
1708
1759
|
/* @__PURE__ */ j("div", {
|
|
@@ -1740,6 +1791,26 @@ function de({ client: e, tenant: t, t: n, locale: r, onKey: i, onChange: a }) {
|
|
|
1740
1791
|
o && /* @__PURE__ */ j("div", {
|
|
1741
1792
|
className: "mt-3 flex flex-col gap-3",
|
|
1742
1793
|
children: [
|
|
1794
|
+
/* @__PURE__ */ A("h4", {
|
|
1795
|
+
className: "text-sm font-semibold",
|
|
1796
|
+
children: n.consoleTenantPlatforms
|
|
1797
|
+
}),
|
|
1798
|
+
t.platforms?.length ? t.platforms.map((r) => /* @__PURE__ */ j("div", {
|
|
1799
|
+
className: "flex flex-wrap items-center gap-2 text-sm",
|
|
1800
|
+
children: [/* @__PURE__ */ A("span", {
|
|
1801
|
+
className: "flex-1",
|
|
1802
|
+
children: v[r] ?? r
|
|
1803
|
+
}), /* @__PURE__ */ A(f, {
|
|
1804
|
+
label: n.consoleUngrant,
|
|
1805
|
+
variant: "outline-danger",
|
|
1806
|
+
onClick: async () => {
|
|
1807
|
+
await e.grantTenant(t.id, r, !1), await a();
|
|
1808
|
+
}
|
|
1809
|
+
})]
|
|
1810
|
+
}, r)) : /* @__PURE__ */ A("p", {
|
|
1811
|
+
className: "text-sm text-muted-foreground",
|
|
1812
|
+
children: n.consoleTenantPlatformsNone
|
|
1813
|
+
}),
|
|
1743
1814
|
/* @__PURE__ */ A("h4", {
|
|
1744
1815
|
className: "text-sm font-semibold",
|
|
1745
1816
|
children: n.consoleKeys
|
|
@@ -1759,7 +1830,7 @@ function de({ client: e, tenant: t, t: n, locale: r, onKey: i, onChange: a }) {
|
|
|
1759
1830
|
label: n.consoleRevoke,
|
|
1760
1831
|
variant: "outline-danger",
|
|
1761
1832
|
onClick: async () => {
|
|
1762
|
-
await e.platform.revokeKey(t.id, r.id), await
|
|
1833
|
+
await e.platform.revokeKey(t.id, r.id), await S();
|
|
1763
1834
|
}
|
|
1764
1835
|
})
|
|
1765
1836
|
]
|
|
@@ -1777,7 +1848,7 @@ function de({ client: e, tenant: t, t: n, locale: r, onKey: i, onChange: a }) {
|
|
|
1777
1848
|
"accounts",
|
|
1778
1849
|
"act-as-user"
|
|
1779
1850
|
]
|
|
1780
|
-
})).key), await
|
|
1851
|
+
})).key), await S();
|
|
1781
1852
|
}
|
|
1782
1853
|
}) }),
|
|
1783
1854
|
/* @__PURE__ */ A("h4", {
|
|
@@ -1785,7 +1856,7 @@ function de({ client: e, tenant: t, t: n, locale: r, onKey: i, onChange: a }) {
|
|
|
1785
1856
|
children: n.consoleAccounts
|
|
1786
1857
|
}),
|
|
1787
1858
|
/* @__PURE__ */ A(H, {
|
|
1788
|
-
client:
|
|
1859
|
+
client: b,
|
|
1789
1860
|
scope: "tenant",
|
|
1790
1861
|
locale: r,
|
|
1791
1862
|
texts: n
|
|
@@ -1867,7 +1938,7 @@ function fe({ client: e, t, approve: n, onAnswered: r }) {
|
|
|
1867
1938
|
}),
|
|
1868
1939
|
/* @__PURE__ */ A("p", {
|
|
1869
1940
|
className: "text-sm text-muted-foreground",
|
|
1870
|
-
children: i.project ? L(t.consoleRequestProject, { project: i.project }) : t.consoleRequestAll
|
|
1941
|
+
children: i.app ? L(t.consoleRequestApp, { app: i.app }) : i.project ? L(t.consoleRequestProject, { project: i.project }) : t.consoleRequestAll
|
|
1871
1942
|
}),
|
|
1872
1943
|
/* @__PURE__ */ j("div", {
|
|
1873
1944
|
className: "flex flex-wrap gap-2",
|
|
@@ -1888,6 +1959,72 @@ function fe({ client: e, t, approve: n, onAnswered: r }) {
|
|
|
1888
1959
|
})
|
|
1889
1960
|
});
|
|
1890
1961
|
}
|
|
1962
|
+
function pe({ client: e, t, onAnswered: n }) {
|
|
1963
|
+
let [r, i] = d([]), [a, o] = d(null), s = c(async () => {
|
|
1964
|
+
try {
|
|
1965
|
+
i(await e.grantRequests());
|
|
1966
|
+
} catch {
|
|
1967
|
+
i([]);
|
|
1968
|
+
}
|
|
1969
|
+
}, [e]);
|
|
1970
|
+
return l(() => {
|
|
1971
|
+
s();
|
|
1972
|
+
let e = setInterval(() => void s(), 5e3);
|
|
1973
|
+
return () => clearInterval(e);
|
|
1974
|
+
}, [s]), !r.length && !a ? null : /* @__PURE__ */ A(h, {
|
|
1975
|
+
title: t.consoleGrants,
|
|
1976
|
+
children: /* @__PURE__ */ j("div", {
|
|
1977
|
+
className: "flex flex-col gap-3",
|
|
1978
|
+
children: [
|
|
1979
|
+
/* @__PURE__ */ A("p", {
|
|
1980
|
+
className: "text-sm text-muted-foreground",
|
|
1981
|
+
children: t.consoleGrantsHint
|
|
1982
|
+
}),
|
|
1983
|
+
a && /* @__PURE__ */ A(p, {
|
|
1984
|
+
variant: a.variant,
|
|
1985
|
+
children: a.text
|
|
1986
|
+
}),
|
|
1987
|
+
r.map((r) => {
|
|
1988
|
+
let i = async (i) => {
|
|
1989
|
+
await e.answerGrant(r.id, i), o(i ? {
|
|
1990
|
+
variant: "success",
|
|
1991
|
+
text: L(t.consoleGrantApproved, {
|
|
1992
|
+
name: r.keyName,
|
|
1993
|
+
tenant: r.tenant
|
|
1994
|
+
})
|
|
1995
|
+
} : {
|
|
1996
|
+
variant: "info",
|
|
1997
|
+
text: t.consoleGrantDenied
|
|
1998
|
+
}), await s(), await n();
|
|
1999
|
+
};
|
|
2000
|
+
return /* @__PURE__ */ j("div", {
|
|
2001
|
+
className: "flex flex-col gap-2 rounded-md border border-border p-3",
|
|
2002
|
+
children: [/* @__PURE__ */ A("p", {
|
|
2003
|
+
className: "text-sm",
|
|
2004
|
+
children: L(t.consoleGrantFrom, {
|
|
2005
|
+
name: r.keyName,
|
|
2006
|
+
app: r.app ?? "?",
|
|
2007
|
+
tenant: r.tenant,
|
|
2008
|
+
at: Q(r.createdAt)
|
|
2009
|
+
})
|
|
2010
|
+
}), /* @__PURE__ */ j("div", {
|
|
2011
|
+
className: "flex flex-wrap gap-2",
|
|
2012
|
+
children: [/* @__PURE__ */ A(x, {
|
|
2013
|
+
label: t.consoleApprove,
|
|
2014
|
+
variant: "primary",
|
|
2015
|
+
onClick: () => i(!0)
|
|
2016
|
+
}), /* @__PURE__ */ A(x, {
|
|
2017
|
+
label: t.consoleDeny,
|
|
2018
|
+
variant: "outline-danger",
|
|
2019
|
+
onClick: () => i(!1)
|
|
2020
|
+
})]
|
|
2021
|
+
})]
|
|
2022
|
+
}, r.id);
|
|
2023
|
+
})
|
|
2024
|
+
]
|
|
2025
|
+
})
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
1891
2028
|
export { q as AddRunner, W as InstallGuide, H as RunnerAccounts, le as RunnerConsole, ie as RunnersSettings, L as fill, F as runnerTexts, I as textsFor };
|
|
1892
2029
|
|
|
1893
2030
|
//# sourceMappingURL=ui.mjs.map
|