@selvajs/selva 4.21.0-beta.17 → 4.21.0-beta.19
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/build/adapter-node.js +1 -1
- package/build/client/_app/immutable/chunks/a5NclWb-.js +2 -0
- package/build/client/_app/immutable/chunks/a5NclWb-.js.br +0 -0
- package/build/client/_app/immutable/chunks/a5NclWb-.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.CqykPefk.js → app.D3YN7-nC.js} +2 -2
- package/build/client/_app/immutable/entry/app.D3YN7-nC.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D3YN7-nC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.B2EnikH5.js → 20.B8bN-AYw.js} +1 -1
- package/build/client/_app/immutable/nodes/20.B8bN-AYw.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.B8bN-AYw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.C7VDbaM3.js → 25.DbMk0htM.js} +20 -20
- package/build/client/_app/immutable/nodes/25.DbMk0htM.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DbMk0htM.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/.vite/manifest.json +58 -2
- package/build/server/chunks/DefinitionCard.js +1 -1
- package/build/server/chunks/DefinitionCard.js.map +1 -1
- package/build/server/chunks/api.js +1 -1
- package/build/server/chunks/baseHDR.js +5 -0
- package/build/server/chunks/baseHDR.js.map +1 -0
- package/build/server/chunks/capture.js +5 -0
- package/build/server/chunks/capture.js.map +1 -0
- package/build/server/chunks/diff.js +1 -8
- package/build/server/chunks/diff.js.map +1 -1
- package/build/server/chunks/grasshopper.js +23 -1
- package/build/server/chunks/grasshopper.js.map +1 -1
- package/build/server/chunks/handlers.js +71 -25
- package/build/server/chunks/handlers.js.map +1 -1
- package/build/server/chunks/instance.js +3 -3
- package/build/server/chunks/instanceAdmins.server.js +1 -1
- package/build/server/chunks/internal.js +1 -1
- package/build/server/chunks/inventory.js +59 -16
- package/build/server/chunks/inventory.js.map +1 -1
- package/build/server/chunks/package.js +2 -1
- package/build/server/chunks/package.js.map +1 -1
- package/build/server/chunks/path.js +7 -0
- package/build/server/chunks/path.js.map +1 -0
- package/build/server/chunks/presets.server.js +1 -1
- package/build/server/chunks/providers.server.js +21 -12
- package/build/server/chunks/providers.server.js.map +1 -1
- package/build/server/chunks/registry.js +18 -3
- package/build/server/chunks/registry.js.map +1 -1
- package/build/server/chunks/solve.js +5 -0
- package/build/server/chunks/solve.js.map +1 -0
- package/build/server/chunks/stash-instance.js +94 -0
- package/build/server/chunks/stash-instance.js.map +1 -0
- package/build/server/chunks/sveltekit.js +2 -1
- package/build/server/chunks/sveltekit.js.map +1 -1
- package/build/server/chunks/types4.js +10 -0
- package/build/server/chunks/types4.js.map +1 -0
- package/build/server/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js +3 -2
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/image/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/publish/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/schema/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_linkId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/share-links/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/changes/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/inventory/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/schema/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/_versionId_/scripts/_scriptId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/versions/check/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/starred/_guid_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/me/token/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/assets/_kind_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/members/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/members/_userId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/tokens/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/orgs/_orgId_/tokens/_tokenId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/reclaim/_server.ts.js +1 -1
- package/build/server/entries/endpoints/docs/api/openapi.yaml/_server.ts.js +1 -1
- package/build/server/entries/endpoints/mcp/_server.ts.js +1232 -92
- package/build/server/entries/endpoints/mcp/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/mcp/files/_token_/_name_/_server.ts.js +18 -0
- package/build/server/entries/endpoints/mcp/files/_token_/_name_/_server.ts.js.map +1 -0
- package/build/server/entries/hooks.server.js +8 -3
- package/build/server/entries/hooks.server.js.map +1 -1
- package/build/server/entries/pages/projects/_page.svelte.js +12 -6
- package/build/server/entries/pages/projects/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/team/tokens/_page.server.ts.js +1 -1
- package/build/server/manifest-full.js +8 -1
- package/build/server/manifest.js +8 -1
- package/build/server/nodes/20.js +1 -1
- package/build/server/nodes/25.js +1 -1
- package/build/server/server.js +8 -1
- package/package.json +7 -6
- package/templates/.env.example +6 -0
- package/build/client/_app/immutable/chunks/Cv7GBWJh.js +0 -2
- package/build/client/_app/immutable/chunks/Cv7GBWJh.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv7GBWJh.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CqykPefk.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CqykPefk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.B2EnikH5.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.B2EnikH5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.C7VDbaM3.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.C7VDbaM3.js.gz +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as getUserProfileStore, T as providers } from "../../../../chunks/providers.server.js";
|
|
2
2
|
import { t as SYSTEM_CONTEXT } from "../../../../chunks/context.js";
|
|
3
|
-
import {
|
|
3
|
+
import { J as canManageApiTokenRoster, Z as listOrgApiTokens } from "../../../../chunks/handlers.js";
|
|
4
4
|
import { t as apiTokenCodec } from "../../../../chunks/token2.server.js";
|
|
5
5
|
import { t as offeredTokenPresets } from "../../../../chunks/presets.server.js";
|
|
6
6
|
import { redirect } from "@sveltejs/kit";
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "_app",
|
|
10
10
|
assets: new Set(["baseHDR.hdr","favicon/apple-touch-icon.png","favicon/favicon-96x96.png","favicon/favicon.ico","favicon/favicon.svg","favicon/site.webmanifest","favicon/web-app-manifest-192x192.png","favicon/web-app-manifest-512x512.png","robots.txt"]),
|
|
11
11
|
mime_types: {".png":"image/png",".ico":"image/x-icon",".svg":"image/svg+xml",".webmanifest":"application/manifest+json",".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.D3YN7-nC.js",imports:["_app/immutable/entry/start.B312GghS.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/Ch_UJBk-.js","_app/immutable/chunks/B3e8ZKjr.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.D3YN7-nC.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -634,6 +634,13 @@ return {
|
|
|
634
634
|
page: null,
|
|
635
635
|
endpoint: __memo(() => import('./entries/endpoints/mcp/_server.ts.js'))
|
|
636
636
|
},
|
|
637
|
+
{
|
|
638
|
+
id: "/mcp/files/[token]/[name]",
|
|
639
|
+
pattern: /^\/mcp\/files\/([^/]+?)\/([^/]+?)\/?$/,
|
|
640
|
+
params: [{"name":"token","optional":false,"rest":false,"chained":false},{"name":"name","optional":false,"rest":false,"chained":false}],
|
|
641
|
+
page: null,
|
|
642
|
+
endpoint: __memo(() => import('./entries/endpoints/mcp/files/_token_/_name_/_server.ts.js'))
|
|
643
|
+
},
|
|
637
644
|
{
|
|
638
645
|
id: "/oauth/authorize",
|
|
639
646
|
pattern: /^\/oauth\/authorize\/?$/,
|
package/build/server/manifest.js
CHANGED
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "_app",
|
|
10
10
|
assets: new Set(["baseHDR.hdr","favicon/apple-touch-icon.png","favicon/favicon-96x96.png","favicon/favicon.ico","favicon/favicon.svg","favicon/site.webmanifest","favicon/web-app-manifest-192x192.png","favicon/web-app-manifest-512x512.png","robots.txt"]),
|
|
11
11
|
mime_types: {".png":"image/png",".ico":"image/x-icon",".svg":"image/svg+xml",".webmanifest":"application/manifest+json",".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.D3YN7-nC.js",imports:["_app/immutable/entry/start.B312GghS.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/Ch_UJBk-.js","_app/immutable/chunks/B3e8ZKjr.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.D3YN7-nC.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -634,6 +634,13 @@ return {
|
|
|
634
634
|
page: null,
|
|
635
635
|
endpoint: __memo(() => import('./entries/endpoints/mcp/_server.ts.js'))
|
|
636
636
|
},
|
|
637
|
+
{
|
|
638
|
+
id: "/mcp/files/[token]/[name]",
|
|
639
|
+
pattern: /^\/mcp\/files\/([^/]+?)\/([^/]+?)\/?$/,
|
|
640
|
+
params: [{"name":"token","optional":false,"rest":false,"chained":false},{"name":"name","optional":false,"rest":false,"chained":false}],
|
|
641
|
+
page: null,
|
|
642
|
+
endpoint: __memo(() => import('./entries/endpoints/mcp/files/_token_/_name_/_server.ts.js'))
|
|
643
|
+
},
|
|
637
644
|
{
|
|
638
645
|
id: "/oauth/authorize",
|
|
639
646
|
pattern: /^\/oauth\/authorize\/?$/,
|
package/build/server/nodes/20.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/library/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/library/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/20.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/20.B8bN-AYw.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/B3e8ZKjr.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/lMQbJOeE.js","_app/immutable/chunks/a5NclWb-.js","_app/immutable/chunks/1VJx1aVI.js","_app/immutable/chunks/CoB4qHba.js","_app/immutable/chunks/DG4fF26P.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/D_-42ATH.js","_app/immutable/chunks/OznVWGiS.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/DEthS42j.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/Nv1S5RTq.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/BEzPIk5e.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/CivEAG-M.js","_app/immutable/chunks/C9yuuH4J.js","_app/immutable/chunks/Jlr_WNWs.js","_app/immutable/chunks/CXFC38jr.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/aBYenH6-.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/DIOXhUNn.js","_app/immutable/chunks/CSy_25b1.js","_app/immutable/chunks/CBf5ToEX.js","_app/immutable/chunks/BUENW6k7.js","_app/immutable/chunks/TZzCN567.js","_app/immutable/chunks/B9-uqzXO.js","_app/immutable/chunks/Cms9vBTq.js","_app/immutable/chunks/CUaHcctM.js","_app/immutable/chunks/BLG35vEW.js","_app/immutable/chunks/CNij7yXO.js","_app/immutable/chunks/BkTC9VdY.js","_app/immutable/chunks/1AvDtYi1.js","_app/immutable/chunks/D6cAtf8B.js","_app/immutable/chunks/DR4HRB4w.js","_app/immutable/chunks/BQmUk61d.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
package/build/server/nodes/25.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/projects/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/projects/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/25.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/25.DbMk0htM.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/B3e8ZKjr.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/D6SQx3MR.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/OznVWGiS.js","_app/immutable/chunks/B9-uqzXO.js","_app/immutable/chunks/CivEAG-M.js","_app/immutable/chunks/B7VqKSCZ.js","_app/immutable/chunks/gNgZDPHs.js","_app/immutable/chunks/BSN2qO1R.js","_app/immutable/chunks/Bct5vmEM.js","_app/immutable/chunks/a5NclWb-.js","_app/immutable/chunks/lMQbJOeE.js","_app/immutable/chunks/1VJx1aVI.js","_app/immutable/chunks/CoB4qHba.js","_app/immutable/chunks/DG4fF26P.js","_app/immutable/chunks/D_-42ATH.js","_app/immutable/chunks/ChEklEBB.js","_app/immutable/chunks/nJUe9gXb.js","_app/immutable/chunks/DmlEI0uK.js","_app/immutable/chunks/Cms9vBTq.js","_app/immutable/chunks/CUaHcctM.js","_app/immutable/chunks/C9yuuH4J.js","_app/immutable/chunks/BPWrsj_h.js","_app/immutable/chunks/v0PYjZZ5.js","_app/immutable/chunks/CXFC38jr.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/CdTxvcQ4.js","_app/immutable/chunks/CNij7yXO.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/TZzCN567.js","_app/immutable/chunks/BLG35vEW.js","_app/immutable/chunks/aBYenH6-.js","_app/immutable/chunks/BEzPIk5e.js","_app/immutable/chunks/BCgmDXNw.js","_app/immutable/chunks/CK2nnbJa.js","_app/immutable/chunks/BkTC9VdY.js","_app/immutable/chunks/1AvDtYi1.js","_app/immutable/chunks/D6cAtf8B.js","_app/immutable/chunks/ZGbF6Eux.js","_app/immutable/chunks/DR4HRB4w.js","_app/immutable/chunks/Cj9-pF71.js","_app/immutable/chunks/BQmUk61d.js","_app/immutable/chunks/DIYaLgLs.js","_app/immutable/chunks/Uzaejkud.js","_app/immutable/chunks/CSy_25b1.js","_app/immutable/chunks/BVVRTJCQ.js","_app/immutable/chunks/BFtd89gK.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
package/build/server/server.js
CHANGED
|
@@ -10,7 +10,7 @@ return {
|
|
|
10
10
|
app_path: "_app",
|
|
11
11
|
assets: new Set(["baseHDR.hdr","favicon/apple-touch-icon.png","favicon/favicon-96x96.png","favicon/favicon.ico","favicon/favicon.svg","favicon/site.webmanifest","favicon/web-app-manifest-192x192.png","favicon/web-app-manifest-512x512.png","robots.txt"]),
|
|
12
12
|
mime_types: {".png":"image/png",".ico":"image/x-icon",".svg":"image/svg+xml",".webmanifest":"application/manifest+json",".txt":"text/plain"},
|
|
13
|
-
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.B312GghS.js",app:"_app/immutable/entry/app.D3YN7-nC.js",imports:["_app/immutable/entry/start.B312GghS.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/Ch_UJBk-.js","_app/immutable/chunks/B3e8ZKjr.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.D3YN7-nC.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
|
|
15
15
|
nodes: [
|
|
16
16
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -635,6 +635,13 @@ return {
|
|
|
635
635
|
page: null,
|
|
636
636
|
endpoint: __memo(() => import('./entries/endpoints/mcp/_server.ts.js'))
|
|
637
637
|
},
|
|
638
|
+
{
|
|
639
|
+
id: "/mcp/files/[token]/[name]",
|
|
640
|
+
pattern: /^\/mcp\/files\/([^/]+?)\/([^/]+?)\/?$/,
|
|
641
|
+
params: [{"name":"token","optional":false,"rest":false,"chained":false},{"name":"name","optional":false,"rest":false,"chained":false}],
|
|
642
|
+
page: null,
|
|
643
|
+
endpoint: __memo(() => import('./entries/endpoints/mcp/files/_token_/_name_/_server.ts.js'))
|
|
644
|
+
},
|
|
638
645
|
{
|
|
639
646
|
id: "/oauth/authorize",
|
|
640
647
|
pattern: /^\/oauth\/authorize\/?$/,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selvajs/selva",
|
|
3
|
-
"version": "4.21.0-beta.
|
|
3
|
+
"version": "4.21.0-beta.19",
|
|
4
4
|
"description": "Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VektorNode",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"mode-watcher": "^1.1.0",
|
|
44
44
|
"nodemailer": "^10.3.1",
|
|
45
45
|
"pino": "^10.4.0",
|
|
46
|
+
"playwright-core": "^1.64.1",
|
|
46
47
|
"rhino3dm": "8.35.0",
|
|
47
48
|
"sharp": "^0.35.5",
|
|
48
49
|
"tailwind-merge": "^3.7.0",
|
|
@@ -61,15 +62,15 @@
|
|
|
61
62
|
"rimraf": "^6.1.3",
|
|
62
63
|
"tw-animate-css": "^1.4.0",
|
|
63
64
|
"vitest": "^5.0.5",
|
|
64
|
-
"@selvajs/compute": "5.1.0-beta.
|
|
65
|
+
"@selvajs/compute": "5.1.0-beta.4",
|
|
65
66
|
"@selvajs/config": "0.0.4",
|
|
66
67
|
"@selvajs/header-auth-provider": "0.11.1",
|
|
67
68
|
"@selvajs/local-provider": "0.17.0-beta.5",
|
|
68
|
-
"@selvajs/mcp": "0.2.0-beta.
|
|
69
|
-
"@selvajs/notifications": "0.3.1-beta.
|
|
69
|
+
"@selvajs/mcp": "0.2.0-beta.3",
|
|
70
|
+
"@selvajs/notifications": "0.3.1-beta.9",
|
|
70
71
|
"@selvajs/platform": "1.1.0-beta.8",
|
|
71
|
-
"@selvajs/schemas": "5.4.0-beta.
|
|
72
|
-
"@selvajs/server": "3.0.0-beta.
|
|
72
|
+
"@selvajs/schemas": "5.4.0-beta.6",
|
|
73
|
+
"@selvajs/server": "3.0.0-beta.14",
|
|
73
74
|
"@selvajs/solve": "2.1.0-beta.8",
|
|
74
75
|
"@selvajs/supabase-provider": "0.21.0-beta.8",
|
|
75
76
|
"@selvajs/ui": "7.1.0-beta.11",
|
package/templates/.env.example
CHANGED
|
@@ -274,6 +274,12 @@ BODY_SIZE_LIMIT=256M
|
|
|
274
274
|
# comma-separated (a web MCP inspector). Native clients send no Origin.
|
|
275
275
|
# MCP_ALLOWED_ORIGINS=
|
|
276
276
|
#
|
|
277
|
+
# MCP_PREVIEW_BROWSER Chromium or Chrome that selva_capture_preview renders
|
|
278
|
+
# Selva's viewer in, headless. Unset: the one `npx playwright install
|
|
279
|
+
# --with-deps chromium` puts in place. Without either, that tool says so and
|
|
280
|
+
# every other tool still works.
|
|
281
|
+
# MCP_PREVIEW_BROWSER=/usr/bin/chromium
|
|
282
|
+
#
|
|
277
283
|
# API_TOKEN_RATE_LIMIT_MAX requests per API token per minute. 0 turns it off.
|
|
278
284
|
# API_TOKEN_RATE_LIMIT_MAX=600
|
|
279
285
|
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as e,D as t,Ft as n,H as r,J as i,L as a,Ot as o,Q as s,St as c,T as l,U as u,V as d,_ as f,dt as p,ft as m,kt as h,m as g,mt as _,n as v,ot as y,pt as b,q as x,r as S,t as C,v as w}from"./sphvlIzg.js";import{r as T}from"./Ca-1xMUo.js";import{t as ee}from"./lMQbJOeE.js";import{t as te}from"./1VJx1aVI.js";import{t as ne}from"./CoB4qHba.js";import{n as E,t as D}from"./DG4fF26P.js";var O={name:`grid-2x2`,size:24,node:[[`path`,{d:`M12 3v18`}],[`path`,{d:`M3 12h18`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`}]],aliases:[`grid-2-x-2`]};O.node;var k=new Set([`$$slots`,`$$events`,`$$legacy`]);function A(e,t){let n=v(t,k);T(e,S(()=>n,{get icon(){return O}}))}var j={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`}],[`path`,{d:`M3 12h.01`}],[`path`,{d:`M3 19h.01`}],[`path`,{d:`M8 5h13`}],[`path`,{d:`M8 12h13`}],[`path`,{d:`M8 19h13`}]]};j.node;var M=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=v(t,M);T(e,S(()=>n,{get icon(){return j}}))}var P=u(`<!> <!>`,1);function F(e,t){h(t,!0);let n=C(t,`size`,3,`md`);var i=r(),a=m(i);{let e=c(()=>n()===`sm`?`sm`:`default`);l(a,()=>E,(n,r)=>{r(n,{type:`single`,variant:`outline`,get size(){return s(e)},get value(){return t.mode},onValueChange:e=>{(e===`grid`||e===`list`)&&t.onChange(e)},children:(e,t)=>{var n=P(),r=m(n);l(r,()=>D,(e,t)=>{t(e,{value:`grid`,"aria-label":`Grid view`,title:`Grid view`,children:(e,t)=>{A(e,{})},$$slots:{default:!0}})});var i=_(r,2);l(i,()=>D,(e,t)=>{t(e,{value:`list`,"aria-label":`List view`,title:`List view`,children:(e,t)=>{N(e,{})},$$slots:{default:!0}})}),d(e,n)},$$slots:{default:!0}})})}d(e,i),o()}function I(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}function L(e){let t=I(e);return{h1:t%360,h2:(t>>3)%360}}function R(e){let t=e?.trim()??``;return t?t[0].toUpperCase():`?`}function z(e){let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<1)return`just now`;if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}var B={draft:`bg-muted text-muted-foreground border-border`,review:`bg-yellow-50 text-yellow-700 border-yellow-200 dark:bg-yellow-950/30 dark:text-yellow-400 dark:border-yellow-800`,published:`bg-green-50 text-green-700 border-green-200 dark:bg-green-950/30 dark:text-green-400 dark:border-green-800`,archived:`bg-muted text-muted-foreground border-border opacity-60`,pending:`bg-muted text-muted-foreground border-border`},V={draft:`bg-muted-foreground`,review:`bg-yellow-500`,published:`bg-green-500`,archived:`bg-muted-foreground`,pending:`bg-muted-foreground`},H=e=>B[e]??B.draft,U=e=>V[e]??V.draft;function W(e){let t=Date.now()-new Date(e).getTime(),n=Math.floor(t/6e4);if(n<60)return`${n}m`;let r=Math.floor(n/60);if(r<24)return`${r}h`;let i=Math.floor(r/24);return i<7?`${i}d`:`${Math.floor(i/7)}w`}var re=u(`<img class="absolute inset-0 h-full w-full object-cover"/>`),ie=u(`<div class="tool-cover-fallback absolute inset-0 flex items-center justify-center"><span class="bg-card/70 text-foreground flex size-16 items-center justify-center rounded-xl text-3xl font-semibold shadow-sm backdrop-blur-sm"> </span></div>`),ae=u(`<div class="absolute top-2.5 left-2.5"><span><span></span> </span></div>`),oe=u(`<button type="button"><!></button>`),se=u(`<div class="absolute inset-0 flex items-center justify-center bg-black/25"><div class="h-5 w-5 animate-spin rounded-full border-2 border-white border-t-transparent"></div></div>`),ce=u(`<span class="text-muted-foreground shrink-0"> </span>`),le=u(`<p class="mb-1.5 flex items-center gap-1.5 text-xs"><span class="project-chip max-w-full truncate rounded-full px-2 py-0.5 font-medium"> </span> <!></p>`),ue=u(`<p class="text-muted-foreground mt-1 line-clamp-2 text-[13px] leading-relaxed"> </p>`),G=u(`<span class="bg-muted text-muted-foreground rounded-full px-2 py-0.5 text-xs"> </span>`),de=u(`<div class="mt-2.5 flex flex-wrap gap-1"><!> <!></div>`),fe=u(`<div class="text-muted-foreground mt-2.5 flex items-center gap-1.5 font-mono text-[11px]"><!> <span class="truncate"> </span></div>`),pe=u(`<span class="text-foreground flex items-center gap-1 font-medium opacity-60 transition-opacity group-hover:opacity-100">Open <!></span>`),me=u(`<div role="button" class="group border-border bg-card focus-visible:ring-ring flex cursor-pointer flex-col overflow-hidden rounded-xl border text-left shadow-[0_1px_0_rgba(0,0,0,0.03)] transition duration-200 hover:-translate-y-0.5 hover:shadow-[0_10px_30px_-16px_rgba(0,0,0,0.18)] focus:outline-none focus-visible:ring-2 aria-disabled:cursor-not-allowed aria-disabled:opacity-60"><div class="border-border relative aspect-16/10 overflow-hidden border-b"><!> <!> <!> <!></div> <div class="flex flex-1 flex-col p-3.5"><!> <p class="truncate text-[14px] font-semibold"> </p> <!> <!> <div class="mt-auto"><!> <hr class="border-border my-3"/> <div class="text-muted-foreground flex items-center justify-between text-xs"><span> </span> <!></div></div></div></div>`);function K(r,l){h(l,!0);let u=C(l,`showStatus`,3,!1),m=C(l,`loading`,3,!1),v=C(l,`starred`,3,!1),x=C(l,`starBusy`,3,!1),S=c(()=>L(l.record.guid)),T=c(()=>l.projectName?L(l.projectName).h1:0);function E(){m()||l.onOpen(l.record)}function D(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),E())}var O=me(),k=p(O),A=p(k),j=e=>{var t=re();y(()=>{g(t,`src`,l.record.coverImage),g(t,`alt`,l.record.displayName)}),d(e,t)},M=e=>{var t=ie();let r;var i=p(t),o=b(i,!0);n(t),y(e=>{r=f(t,``,r,{"--tool-h1":s(S).h1,"--tool-h2":s(S).h2}),a(o,e)},[()=>R(l.record.displayName)]),d(e,t)};e(A,e=>{l.record.coverImage?e(j):e(M,-1)});var N=_(A,2),P=e=>{var t=ae(),r=p(t),i=p(r),o=_(i);n(r),n(t),y((e,t)=>{w(r,1,`inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 font-mono text-[11px] tracking-wide ${e??``}`),w(i,1,`h-1.5 w-1.5 rounded-full ${t??``}`),a(o,` ${l.record.status??``}`)},[()=>H(l.record.status),()=>U(l.record.status)]),d(e,t)};e(N,e=>{u()&&e(P)});var F=_(N,2),I=e=>{var t=oe(),r=p(t);{let e=c(()=>v()?`fill-current`:``);ne(r,{get class(){return`h-3.5 w-3.5 ${s(e)??``}`}})}n(t),y(()=>{g(t,`title`,v()?`Unstar`:`Star`),g(t,`aria-label`,v()?`Unstar definition`:`Star definition`),g(t,`aria-pressed`,v()),t.disabled=x(),w(t,1,`absolute top-2 right-2 flex h-7 w-7 items-center justify-center rounded-full backdrop-blur-sm transition-all disabled:opacity-60 ${v()?`bg-amber-400/90 text-white`:`bg-black/40 text-white opacity-0 group-hover:opacity-100 hover:bg-black/55 pointer-coarse:opacity-100`}`)}),i(`click`,t,e=>{e.stopPropagation(),e.preventDefault(),l.onToggleStar?.(l.record.guid)}),d(e,t)};e(F,e=>{l.onToggleStar&&e(I)});var B=_(F,2),V=e=>{var t=se();d(e,t)};e(B,e=>{m()&&e(V)}),n(k);var W=_(k,2),K=p(W),he=t=>{var r=le(),i=p(r);let o;var c=b(i,!0),u=_(i,2),m=e=>{var t=ce(),n=b(t,!0);y(()=>a(n,l.projectVisibility)),d(e,t)};e(u,e=>{l.projectVisibility&&e(m)}),n(r),y(()=>{o=f(i,``,o,{"--project-h":s(T)}),a(c,l.projectName)}),d(t,r)};e(K,e=>{l.projectName&&e(he)});var q=_(K,2),ge=b(q,!0),J=_(q,2),_e=e=>{var t=ue(),n=b(t,!0);y(()=>a(n,l.record.description)),d(e,t)};e(J,e=>{l.record.description&&e(_e)});var Y=_(J,2),ve=r=>{var i=de(),o=p(i);t(o,16,()=>l.record.tags.slice(0,3),e=>e,(e,t)=>{var n=G(),r=b(n,!0);y(()=>a(r,t)),d(e,n)});var s=_(o,2),c=e=>{var t=G(),n=b(t);y(e=>{g(t,`title`,e),a(n,`+${l.record.tags.length-3}`)},[()=>l.record.tags.slice(3).join(`, `)]),d(e,t)};e(s,e=>{l.record.tags.length>3&&e(c)}),n(i),d(r,i)};e(Y,e=>{l.record.tags?.length&&e(ve)});var X=_(Y,2),Z=p(X),ye=e=>{var t=fe(),r=p(t);te(r,{class:`h-3 w-3 shrink-0 opacity-70`});var i=_(r,2),o=b(i,!0);n(t),y(()=>{g(t,`title`,`Solves on ${l.serverName??``}`),a(o,l.serverName)}),d(e,t)};e(Z,e=>{u()&&l.serverName&&e(ye)});var Q=_(Z,4),$=p(Q),be=b($),xe=_($,2),Se=e=>{var t=pe(),r=_(p(t));ee(r,{class:`h-3 w-3`}),n(t),d(e,t)};e(xe,e=>{l.onToggleStar&&e(Se)}),n(Q),n(X),n(W),n(O),y((e,t)=>{g(O,`tabindex`,m()?-1:0),g(O,`aria-disabled`,m()),a(ge,l.record.displayName),a(be,`Updated ${e??``}
|
|
2
|
-
· ${t??``}`)},[()=>z(l.record.updatedAt),()=>l.record.solveCount>0?`${l.record.solveCount.toLocaleString()} runs`:`No runs yet`]),i(`click`,O,E),i(`keydown`,O,D),d(r,O),o()}x([`click`,`keydown`]);export{z as a,F as c,H as i,W as n,L as o,U as r,R as s,K as t};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|