@selvajs/selva 4.20.1-beta.5 → 4.21.0-beta.7
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/{CzfnuBzq.js → BAhtiTKe.js} +1 -1
- package/build/client/_app/immutable/chunks/BAhtiTKe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BAhtiTKe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D-uUm_OB.js → BepzH9eI.js} +4 -4
- package/build/client/_app/immutable/chunks/BepzH9eI.js.br +0 -0
- package/build/client/_app/immutable/chunks/{D-uUm_OB.js.gz → BepzH9eI.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/BmoT9ksD.js +1 -0
- package/build/client/_app/immutable/chunks/BmoT9ksD.js.br +1 -0
- package/build/client/_app/immutable/chunks/BmoT9ksD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{qi43d-TM.js → CKbHmAlc.js} +1 -1
- package/build/client/_app/immutable/chunks/CKbHmAlc.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKbHmAlc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6Y_BUwr.js → CmlXAF26.js} +1 -1
- package/build/client/_app/immutable/chunks/CmlXAF26.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmlXAF26.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BDYCH-_Q.js → D5j4-ZO1.js} +1 -1
- package/build/client/_app/immutable/chunks/D5j4-ZO1.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5j4-ZO1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DW5EJMC7.js +1 -0
- package/build/client/_app/immutable/chunks/DW5EJMC7.js.br +0 -0
- package/build/client/_app/immutable/chunks/DW5EJMC7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DzxE3j6C.js → qXnHMKD9.js} +1 -1
- package/build/client/_app/immutable/chunks/qXnHMKD9.js.br +0 -0
- package/build/client/_app/immutable/chunks/qXnHMKD9.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.BpT6WkO1.js → app.Cmuegtgc.js} +2 -2
- package/build/client/_app/immutable/entry/app.Cmuegtgc.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Cmuegtgc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.D3kiiIk_.js → 1.DWd6YbcT.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DWd6YbcT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.CUNbzjI_.js → 2.CS32Eh9m.js} +1 -1
- package/build/client/_app/immutable/nodes/2.CS32Eh9m.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CS32Eh9m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.9OIre0ah.js → 20.CUK41A3B.js} +1 -1
- package/build/client/_app/immutable/nodes/20.CUK41A3B.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CUK41A3B.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DvC40Ypm.js +1 -0
- package/build/client/_app/immutable/nodes/21.DvC40Ypm.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DvC40Ypm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DkL5kHzA.js +3 -0
- package/build/client/_app/immutable/nodes/24.DkL5kHzA.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DkL5kHzA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.DW1_vMxq.js → 25.D6EkgNRa.js} +1 -1
- package/build/client/_app/immutable/nodes/25.D6EkgNRa.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.D6EkgNRa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.3Z4QUsQQ.js → 3.Ctd9OGCk.js} +1 -1
- package/build/client/_app/immutable/nodes/3.Ctd9OGCk.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Ctd9OGCk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.DmA9lTA-.js → 5.Wh_w3RkZ.js} +1 -1
- package/build/client/_app/immutable/nodes/5.Wh_w3RkZ.js.br +2 -0
- package/build/client/_app/immutable/nodes/5.Wh_w3RkZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.D6WLqCgl.js → 6.C-DiUI5R.js} +1 -1
- package/build/client/_app/immutable/nodes/6.C-DiUI5R.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.C-DiUI5R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CNuRjkv2.js → 7.B8yubYrv.js} +1 -1
- package/build/client/_app/immutable/nodes/7.B8yubYrv.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B8yubYrv.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 +10 -12
- package/build/server/chunks/api.js +9 -2
- package/build/server/chunks/api.js.map +1 -1
- package/build/server/chunks/computeRateLimit.server.js +1 -1
- package/build/server/chunks/grasshopper.js +13 -2
- package/build/server/chunks/grasshopper.js.map +1 -1
- package/build/server/chunks/handlers.js +21 -17
- package/build/server/chunks/handlers.js.map +1 -1
- package/build/server/chunks/instance.js +3 -3
- package/build/server/chunks/internal.js +1 -1
- package/build/server/chunks/liveSolve.server.js +1 -1
- package/build/server/chunks/localeContext.svelte.js +14 -0
- package/build/server/chunks/localeContext.svelte.js.map +1 -1
- package/build/server/chunks/oauth.js +70 -24
- package/build/server/chunks/oauth.js.map +1 -1
- package/build/server/chunks/{outcome-DNrffAXp.js → outcome-D28FgvFK.js} +9 -6
- package/build/server/chunks/outcome-D28FgvFK.js.map +1 -0
- package/build/server/chunks/package.js +1 -1
- package/build/server/chunks/package.js.map +1 -1
- package/build/server/chunks/providers.server.js +4 -2
- package/build/server/chunks/providers.server.js.map +1 -1
- package/build/server/chunks/registry.js +1 -1
- package/build/server/chunks/schema.js +1 -1
- package/build/server/chunks/schema.js.map +1 -1
- package/build/server/chunks/server2.js +2 -2
- package/build/server/chunks/server2.js.map +1 -1
- package/build/server/chunks/serverStats.server.js +1 -1
- package/build/server/chunks/solve.server.js +5 -4
- package/build/server/chunks/solve.server.js.map +1 -1
- package/build/server/chunks/sveltekit.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-authorization-server/_server.ts.js +6 -3
- package/build/server/entries/endpoints/.well-known/oauth-authorization-server/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/_server.ts.js +6 -3
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/mcp/_server.ts.js +6 -3
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/mcp/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/admin/compute/status/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/orgs/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_grantId_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_id_/grants/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/projects/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_id_/disable/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/users/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js +5 -1
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/compute/schema/_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 +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_/solve/_server.ts.js +2 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js.map +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_/schema/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/members/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/projects/_id_/members/_userId_/_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/api/v1/solve/_solveId_/cancel/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/solve-events/_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 +5 -4
- package/build/server/entries/endpoints/mcp/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/oauth/register/_server.ts.js +1 -1
- package/build/server/entries/endpoints/oauth/token/_server.ts.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.server.ts.js +2 -2
- package/build/server/entries/pages/library/_guid_/_page.svelte.js +232 -11
- package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.server.ts.js +3 -2
- package/build/server/entries/pages/oauth/authorize/_page.server.ts.js.map +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.svelte.js +8 -1
- package/build/server/entries/pages/oauth/authorize/_page.svelte.js.map +1 -1
- package/build/server/manifest-full.js +1 -1
- package/build/server/manifest.js +1 -1
- package/build/server/nodes/1.js +1 -1
- package/build/server/nodes/2.js +1 -1
- package/build/server/nodes/20.js +1 -1
- package/build/server/nodes/21.js +1 -1
- package/build/server/nodes/24.js +1 -1
- package/build/server/nodes/25.js +1 -1
- package/build/server/nodes/3.js +1 -1
- package/build/server/nodes/5.js +1 -1
- package/build/server/nodes/6.js +1 -1
- package/build/server/nodes/7.js +1 -1
- package/build/server/server.js +1 -1
- package/package.json +10 -10
- package/build/client/_app/immutable/chunks/BDYCH-_Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDYCH-_Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6Y_BUwr.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6Y_BUwr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzfnuBzq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzfnuBzq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D-uUm_OB.js.br +0 -0
- package/build/client/_app/immutable/chunks/D84F7w9g.js +0 -1
- package/build/client/_app/immutable/chunks/D84F7w9g.js.br +0 -1
- package/build/client/_app/immutable/chunks/D84F7w9g.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQsP4nZb.js +0 -1
- package/build/client/_app/immutable/chunks/DQsP4nZb.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQsP4nZb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DzxE3j6C.js.br +0 -0
- package/build/client/_app/immutable/chunks/DzxE3j6C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qi43d-TM.js.br +0 -0
- package/build/client/_app/immutable/chunks/qi43d-TM.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.BpT6WkO1.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BpT6WkO1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.D3kiiIk_.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.D3kiiIk_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CUNbzjI_.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CUNbzjI_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.9OIre0ah.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.9OIre0ah.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BkNlRItr.js +0 -1
- package/build/client/_app/immutable/nodes/21.BkNlRItr.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BkNlRItr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.CPSunfJJ.js +0 -3
- package/build/client/_app/immutable/nodes/24.CPSunfJJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.CPSunfJJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DW1_vMxq.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DW1_vMxq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.3Z4QUsQQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.3Z4QUsQQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DmA9lTA-.js.br +0 -1
- package/build/client/_app/immutable/nodes/5.DmA9lTA-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.D6WLqCgl.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.D6WLqCgl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CNuRjkv2.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CNuRjkv2.js.gz +0 -0
- package/build/server/chunks/outcome-DNrffAXp.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as isLoopbackRedirect, i as apiScopesFor, n as OAuthError } from "../../../../chunks/oauth.js";
|
|
2
1
|
import { M as isApiError } from "../../../../chunks/access.js";
|
|
3
2
|
import "../../../../chunks/api.js";
|
|
4
|
-
import {
|
|
3
|
+
import { n as OAuthError, o as isLoopbackRedirect, r as apiScopesFor } from "../../../../chunks/oauth.js";
|
|
4
|
+
import { i as oauthServer, n as expectRedemption } from "../../../../chunks/server2.js";
|
|
5
5
|
import { t as publicUrl } from "../../../../chunks/origin.js";
|
|
6
6
|
import { n as toApiRequest } from "../../../../chunks/sveltekit.js";
|
|
7
7
|
import { n as mintConsentToken, r as revokeUnredeemedConsentToken, t as consentOffer } from "../../../../chunks/handlers.js";
|
|
@@ -55,6 +55,7 @@ var load = async (event) => {
|
|
|
55
55
|
levels: offer.levels.map(({ choice, orgs }) => ({
|
|
56
56
|
access: choice.access,
|
|
57
57
|
createsProjects: choice.scopes.includes("create_projects"),
|
|
58
|
+
changes: choice.scopes.includes("write"),
|
|
58
59
|
orgs,
|
|
59
60
|
orgId: (orgs.find((o) => o.id === actingOrgId) ?? orgs[0]).id
|
|
60
61
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.server.ts.js","names":[],"sources":["../../../../../../src/routes/oauth/authorize/+page.server.ts"],"sourcesContent":["import { error, fail, redirect } from '@sveltejs/kit';\nimport { requireRecentSignIn } from '#lib/server/signInMaxAge.server.js';\nimport { apiScopesFor, isLoopbackRedirect, OAuthError } from '@selvajs/server/oauth';\nimport {\n\tconsentOffer,\n\tmintConsentToken,\n\trevokeUnredeemedConsentToken\n} from '@selvajs/server/handlers';\nimport { isApiError } from '@selvajs/server/api';\nimport { toApiRequest } from '#lib/server/api/sveltekit.js';\nimport { expectRedemption, oauthServer } from '#lib/server/oauth/server.js';\nimport { publicUrl } from '#lib/server/origin.js';\nimport type { Actions, PageServerLoad } from './$types';\n\n// The shortest lifetime the token page offers. No refresh tokens: on expiry\n// the client gets a 401 and signs in again.\nconst TOKEN_DAYS = 30;\n\nfunction serverFor(origin: string) {\n\treturn oauthServer(origin) ?? error(503, 'OAuth is not configured on this server.');\n}\n\n/**\n * The authorize query without SvelteKit's `/action` key. The forms post to the\n * same query, so a failed action re-renders this page rather than a bare URL.\n */\nfunction authorizeQuery(url: URL): string {\n\tconst params = new URLSearchParams(url.search);\n\tfor (const key of [...params.keys()]) if (key.startsWith('/')) params.delete(key);\n\treturn params.toString();\n}\n\nasync function parse(url: URL) {\n\ttry {\n\t\tconst query = new URLSearchParams(authorizeQuery(url));\n\t\treturn { request: await serverFor(publicUrl(url).origin).parseAuthorizeRequest(query) };\n\t} catch (err) {\n\t\tif (err instanceof OAuthError) return { problem: err.message };\n\t\tthrow err;\n\t}\n}\n\nexport const load: PageServerLoad = async (event) => {\n\tconst { url, locals } = event;\n\t// A bad client or redirect URI is shown, never redirected: the target is what can't be trusted.\n\tconst { request, problem } = await parse(url);\n\tif (!request) return { ok: false as const, problem };\n\n\t// The hook gates this page; this covers a session that ended between the two.\n\tif (!locals.user || !locals.ctx) {\n\t\tredirect(303, `/login?redirectTo=${encodeURIComponent(url.pathname + url.search)}`);\n\t}\n\tawait requireRecentSignIn(event);\n\n\tconst offer = await consentOffer(toApiRequest(event), request.scopes);\n\tif (!offer) {\n\t\treturn {\n\t\t\tok: false as const,\n\t\t\tproblem: 'Your account can’t give an app this access in your current organization.'\n\t\t};\n\t}\n\tconst actingOrgId = locals.ctx?.actingOrgId;\n\n\treturn {\n\t\tok: true as const,\n\t\tquery: authorizeQuery(url),\n\t\tclientName: request.client.name,\n\t\tbuiltIn: request.client.builtIn,\n\t\tredirectHost: new URL(request.redirectUri).host,\n\t\tloopback: isLoopbackRedirect(request.redirectUri),\n\t\tlevels: offer.levels.map(({ choice, orgs }) => ({\n\t\t\taccess: choice.access,\n\t\t\tcreatesProjects: choice.scopes.includes('create_projects'),\n\t\t\torgs,\n\t\t\torgId: (orgs.find((o) => o.id === actingOrgId) ?? orgs[0]!).id\n\t\t})),\n\t\tdays: TOKEN_DAYS\n\t};\n};\n\nexport const actions: Actions = {\n\tapprove: async (event) => {\n\t\tawait requireRecentSignIn(event);\n\t\tconst form = await event.request.formData();\n\t\tconst { request } = await parse(event.url);\n\t\tif (!request) return fail(400, { error: 'This sign-in request is no longer valid.' });\n\t\tif (!event.locals.ctx) return fail(403, { error: 'Sign in first.' });\n\n\t\tconst api = toApiRequest(event);\n\t\tconst offer = await consentOffer(api, request.scopes);\n\t\tconst choice = offer?.levels.find((l) => l.choice.access === form.get('access'))?.choice;\n\t\tif (!choice) return fail(400, { error: 'That access isn’t available to you.' });\n\t\tlet minted;\n\t\ttry {\n\t\t\tminted = await mintConsentToken(api, String(form.get('orgId') ?? ''), {\n\t\t\t\tname: `${request.client.name} (OAuth)`.slice(0, 100),\n\t\t\t\tscopes: apiScopesFor(choice.scopes),\n\t\t\t\texpiresInDays: TOKEN_DAYS\n\t\t\t});\n\t\t} catch (err) {\n\t\t\tif (isApiError(err)) return fail(err.status, { error: err.message });\n\t\t\tthrow err;\n\t\t}\n\t\texpectRedemption(minted.token.id, () => revokeUnredeemedConsentToken(api, minted.token.id));\n\t\tredirect(\n\t\t\t303,\n\t\t\tserverFor(publicUrl(event.url).origin).approve(request, {\n\t\t\t\ttokenId: minted.token.id,\n\t\t\t\tsecret: minted.secret,\n\t\t\t\tscopes: choice.scopes,\n\t\t\t\texpiresAt: minted.token.expiresAt\n\t\t\t}),\n\t\t\t// The client's registered redirect_uri, which the OAuth core already checked.\n\t\t\t{ external: true }\n\t\t);\n\t},\n\n\tdeny: async ({ url }) => {\n\t\tconst { request } = await parse(url);\n\t\tif (!request) return fail(400, { error: 'This sign-in request is no longer valid.' });\n\t\tredirect(303, serverFor(publicUrl(url).origin).deny(request), { external: true });\n\t}\n};\n"],"mappings":";;;;;;;;;;AAgBA,IAAM,aAAa;AAEnB,SAAS,UAAU,QAAgB;CAClC,OAAO,YAAY,MAAM,KAAK,MAAM,KAAK,yCAAyC;AACnF;;;;;AAMA,SAAS,eAAe,KAAkB;CACzC,MAAM,SAAS,IAAI,gBAAgB,IAAI,MAAM;CAC7C,KAAK,MAA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U;EACxB,MAAM,EAAE,YAAY,MAAM,MAAM,GAAG;EACnC,IAAI,CAAC,SAAS,OAAO,KAAK,KAAK,EAAE,OAAO,2CAA2C,CAAC;EACpF,SAAS,KAAK,UAAU,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,GAAG,EAAE,UAAU,KAAK,CAAC;CACjF;AACD"}
|
|
1
|
+
{"version":3,"file":"_page.server.ts.js","names":[],"sources":["../../../../../../src/routes/oauth/authorize/+page.server.ts"],"sourcesContent":["import { error, fail, redirect } from '@sveltejs/kit';\nimport { requireRecentSignIn } from '#lib/server/signInMaxAge.server.js';\nimport { apiScopesFor, isLoopbackRedirect, OAuthError } from '@selvajs/server/oauth';\nimport {\n\tconsentOffer,\n\tmintConsentToken,\n\trevokeUnredeemedConsentToken\n} from '@selvajs/server/handlers';\nimport { isApiError } from '@selvajs/server/api';\nimport { toApiRequest } from '#lib/server/api/sveltekit.js';\nimport { expectRedemption, oauthServer } from '#lib/server/oauth/server.js';\nimport { publicUrl } from '#lib/server/origin.js';\nimport type { Actions, PageServerLoad } from './$types';\n\n// The shortest lifetime the token page offers. No refresh tokens: on expiry\n// the client gets a 401 and signs in again.\nconst TOKEN_DAYS = 30;\n\nfunction serverFor(origin: string) {\n\treturn oauthServer(origin) ?? error(503, 'OAuth is not configured on this server.');\n}\n\n/**\n * The authorize query without SvelteKit's `/action` key. The forms post to the\n * same query, so a failed action re-renders this page rather than a bare URL.\n */\nfunction authorizeQuery(url: URL): string {\n\tconst params = new URLSearchParams(url.search);\n\tfor (const key of [...params.keys()]) if (key.startsWith('/')) params.delete(key);\n\treturn params.toString();\n}\n\nasync function parse(url: URL) {\n\ttry {\n\t\tconst query = new URLSearchParams(authorizeQuery(url));\n\t\treturn { request: await serverFor(publicUrl(url).origin).parseAuthorizeRequest(query) };\n\t} catch (err) {\n\t\tif (err instanceof OAuthError) return { problem: err.message };\n\t\tthrow err;\n\t}\n}\n\nexport const load: PageServerLoad = async (event) => {\n\tconst { url, locals } = event;\n\t// A bad client or redirect URI is shown, never redirected: the target is what can't be trusted.\n\tconst { request, problem } = await parse(url);\n\tif (!request) return { ok: false as const, problem };\n\n\t// The hook gates this page; this covers a session that ended between the two.\n\tif (!locals.user || !locals.ctx) {\n\t\tredirect(303, `/login?redirectTo=${encodeURIComponent(url.pathname + url.search)}`);\n\t}\n\tawait requireRecentSignIn(event);\n\n\tconst offer = await consentOffer(toApiRequest(event), request.scopes);\n\tif (!offer) {\n\t\treturn {\n\t\t\tok: false as const,\n\t\t\tproblem: 'Your account can’t give an app this access in your current organization.'\n\t\t};\n\t}\n\tconst actingOrgId = locals.ctx?.actingOrgId;\n\n\treturn {\n\t\tok: true as const,\n\t\tquery: authorizeQuery(url),\n\t\tclientName: request.client.name,\n\t\tbuiltIn: request.client.builtIn,\n\t\tredirectHost: new URL(request.redirectUri).host,\n\t\tloopback: isLoopbackRedirect(request.redirectUri),\n\t\tlevels: offer.levels.map(({ choice, orgs }) => ({\n\t\t\taccess: choice.access,\n\t\t\tcreatesProjects: choice.scopes.includes('create_projects'),\n\t\t\tchanges: choice.scopes.includes('write'),\n\t\t\torgs,\n\t\t\torgId: (orgs.find((o) => o.id === actingOrgId) ?? orgs[0]!).id\n\t\t})),\n\t\tdays: TOKEN_DAYS\n\t};\n};\n\nexport const actions: Actions = {\n\tapprove: async (event) => {\n\t\tawait requireRecentSignIn(event);\n\t\tconst form = await event.request.formData();\n\t\tconst { request } = await parse(event.url);\n\t\tif (!request) return fail(400, { error: 'This sign-in request is no longer valid.' });\n\t\tif (!event.locals.ctx) return fail(403, { error: 'Sign in first.' });\n\n\t\tconst api = toApiRequest(event);\n\t\tconst offer = await consentOffer(api, request.scopes);\n\t\tconst choice = offer?.levels.find((l) => l.choice.access === form.get('access'))?.choice;\n\t\tif (!choice) return fail(400, { error: 'That access isn’t available to you.' });\n\t\tlet minted;\n\t\ttry {\n\t\t\tminted = await mintConsentToken(api, String(form.get('orgId') ?? ''), {\n\t\t\t\tname: `${request.client.name} (OAuth)`.slice(0, 100),\n\t\t\t\tscopes: apiScopesFor(choice.scopes),\n\t\t\t\texpiresInDays: TOKEN_DAYS\n\t\t\t});\n\t\t} catch (err) {\n\t\t\tif (isApiError(err)) return fail(err.status, { error: err.message });\n\t\t\tthrow err;\n\t\t}\n\t\texpectRedemption(minted.token.id, () => revokeUnredeemedConsentToken(api, minted.token.id));\n\t\tredirect(\n\t\t\t303,\n\t\t\tserverFor(publicUrl(event.url).origin).approve(request, {\n\t\t\t\ttokenId: minted.token.id,\n\t\t\t\tsecret: minted.secret,\n\t\t\t\tscopes: choice.scopes,\n\t\t\t\texpiresAt: minted.token.expiresAt\n\t\t\t}),\n\t\t\t// The client's registered redirect_uri, which the OAuth core already checked.\n\t\t\t{ external: true }\n\t\t);\n\t},\n\n\tdeny: async ({ url }) => {\n\t\tconst { request } = await parse(url);\n\t\tif (!request) return fail(400, { error: 'This sign-in request is no longer valid.' });\n\t\tredirect(303, serverFor(publicUrl(url).origin).deny(request), { external: true });\n\t}\n};\n"],"mappings":";;;;;;;;;;AAgBA,IAAM,aAAa;AAEnB,SAAS,UAAU,QAAgB;CAClC,OAAO,YAAY,MAAM,KAAK,MAAM,KAAK,yCAAyC;AACnF;;;;;AAMA,SAAS,eAAe,KAAkB;CACzC,MAAM,SAAS,IAAI,gBAAgB,IAAI,MAAM;CAC7C,KAAK,MAAM,OAAO,CAAC,GAAG,OAAO,KAAK,CAAC,GAAG,IAAI,IAAI,WAAW,GAAG,GAAG,OAAO,OAAO,GAAG;CAChF,OAAO,OAAO,SAAS;AACxB;AAEA,eAAe,MAAM,KAAU;CAC9B,IAAI;EACH,MAAM,QAAQ,IAAI,gBAAgB,eAAe,GAAG,CAAC;EACrD,OAAO,EAAE,SAAS,MAAM,UAAU,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,sBAAsB,KAAK,EAAE;CACvF,SAAS,KAAK;EACb,IAAI,eAAe,YAAY,OAAO,EAAE,SAAS,IAA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renderer.component(($$renderer) => {
|
|
10
10
|
let { data, form } = $$props;
|
|
11
|
+
const CHANGES = "create, edit and delete projects and definitions, upload versions and make them live, share definitions by link, manage project members, revoke invites and change the organization’s branding";
|
|
11
12
|
const ACCESS_TEXT = {
|
|
12
13
|
read: "Read: browse definitions and their inputs",
|
|
13
14
|
solve: "Read and run solves: spends your compute budget",
|
|
15
|
+
write: `Read and change: ${CHANGES}.`,
|
|
16
|
+
write_and_solve: `Read, run solves and change: ${CHANGES}. Solves spend your compute budget.`,
|
|
14
17
|
upload: "Upload definitions: create definitions and new versions where you can, and make a version live. It can’t delete or share anything.",
|
|
15
18
|
uploadAndCreate: "Upload definitions: create private projects, definitions and new versions where you can, and make a version live. It can’t delete or share anything."
|
|
16
19
|
};
|
|
17
20
|
let picked = void 0;
|
|
18
|
-
const level = derived(() =>
|
|
21
|
+
const level = derived(() => {
|
|
22
|
+
if (!data.ok) return void 0;
|
|
23
|
+
const preselected = data.levels.filter((l) => !l.changes).at(-1) ?? data.levels[0];
|
|
24
|
+
return data.levels.find((l) => l.access === picked) ?? preselected;
|
|
25
|
+
});
|
|
19
26
|
let pickedOrgId = void 0;
|
|
20
27
|
const orgId = derived(() => level()?.orgs.some((o) => o.id === pickedOrgId) ? pickedOrgId : level()?.orgId);
|
|
21
28
|
head("1wgpi7w", $$renderer, ($$renderer) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte.js","names":["$.derived","$.escape","$.attr","$.stringify","$.ensure_array_like"],"sources":["../../../../../../src/routes/oauth/authorize/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { page } from '$app/state';\n\timport { Badge, Button, Callout, FilterableDropdown } from '@selvajs/ui';\n\timport type { PageData } from './$types';\n\n\tinterface Props {\n\t\tdata: PageData;\n\t\tform?: { error?: string };\n\t}\n\n\tlet { data, form }: Props = $props();\n\n\tconst ACCESS_TEXT = {\n\t\tread: 'Read: browse definitions and their inputs',\n\t\tsolve: 'Read and run solves: spends your compute budget',\n\t\tupload:\n\t\t\t'Upload definitions: create definitions and new versions where you can, and make a version live. It can’t delete or share anything.',\n\t\tuploadAndCreate:\n\t\t\t'Upload definitions: create private projects, definitions and new versions where you can, and make a version live. It can’t delete or share anything.'\n\t} as const;\n\n\t// The widest level is preselected
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":["$.derived","$.escape","$.attr","$.stringify","$.ensure_array_like"],"sources":["../../../../../../src/routes/oauth/authorize/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { page } from '$app/state';\n\timport { Badge, Button, Callout, FilterableDropdown } from '@selvajs/ui';\n\timport type { PageData } from './$types';\n\n\tinterface Props {\n\t\tdata: PageData;\n\t\tform?: { error?: string };\n\t}\n\n\tlet { data, form }: Props = $props();\n\n\t// Everything `write:all` reaches with a key. Org members, sending invites and\n\t// Compute servers are session-only, so they aren't listed.\n\tconst CHANGES =\n\t\t'create, edit and delete projects and definitions, upload versions and make them live, share definitions by link, manage project members, revoke invites and change the organization’s branding';\n\n\tconst ACCESS_TEXT = {\n\t\tread: 'Read: browse definitions and their inputs',\n\t\tsolve: 'Read and run solves: spends your compute budget',\n\t\twrite: `Read and change: ${CHANGES}.`,\n\t\twrite_and_solve: `Read, run solves and change: ${CHANGES}. Solves spend your compute budget.`,\n\t\tupload:\n\t\t\t'Upload definitions: create definitions and new versions where you can, and make a version live. It can’t delete or share anything.',\n\t\tuploadAndCreate:\n\t\t\t'Upload definitions: create private projects, definitions and new versions where you can, and make a version live. It can’t delete or share anything.'\n\t} as const;\n\n\t// The widest level that can't delete is preselected, so one click on Allow\n\t// never grants `write`. Each level lists only the orgs it may be granted in.\n\tlet picked = $state<string | undefined>();\n\tconst level = $derived.by(() => {\n\t\tif (!data.ok) return undefined;\n\t\tconst preselected = data.levels.filter((l) => !l.changes).at(-1) ?? data.levels[0];\n\t\treturn data.levels.find((l) => l.access === picked) ?? preselected;\n\t});\n\n\tlet pickedOrgId = $state<string | undefined>();\n\tconst orgId = $derived(\n\t\tlevel?.orgs.some((o) => o.id === pickedOrgId) ? pickedOrgId : level?.orgId\n\t);\n</script>\n\n<svelte:head>\n\t<title>Connect an app - {page.data.branding.name}</title>\n</svelte:head>\n\n<div class=\"bg-background flex min-h-dvh items-center justify-center px-4 py-12 sm:px-6 lg:px-8\">\n\t<div class=\"w-full max-w-sm space-y-6\">\n\t\t{#if !data.ok}\n\t\t\t<div class=\"space-y-1 text-center\">\n\t\t\t\t<h2 class=\"text-foreground text-2xl font-bold tracking-tight\">Can’t connect</h2>\n\t\t\t\t<p class=\"text-muted-foreground text-sm\">{data.problem}</p>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"space-y-1 text-center\">\n\t\t\t\t<h2 class=\"text-foreground text-2xl font-bold tracking-tight\">\n\t\t\t\t\tConnect {data.clientName}\n\t\t\t\t</h2>\n\t\t\t\t{#if data.builtIn}\n\t\t\t\t\t<Badge variant=\"secondary\">Built into {page.data.branding.name}</Badge>\n\t\t\t\t{:else}\n\t\t\t\t\t<p class=\"text-muted-foreground text-xs\">\n\t\t\t\t\t\tThe app chose this name itself. {page.data.branding.name} hasn’t checked it.\n\t\t\t\t\t</p>\n\t\t\t\t{/if}\n\t\t\t\t<p class=\"text-muted-foreground text-sm\">\n\t\t\t\t\t{data.clientName} wants to use {page.data.branding.name} as you. It gets an API token that lasts\n\t\t\t\t\t{data.days} days. You can revoke it under Team → API tokens.\n\t\t\t\t</p>\n\t\t\t</div>\n\n\t\t\t<Callout tone={data.loopback ? 'warning' : 'info'}>\n\t\t\t\tThe token goes to <span class=\"font-medium\">{data.redirectHost}</span>.\n\t\t\t\t{#if data.loopback}\n\t\t\t\t\tThat is a program on your own computer. Only continue if you just started this connection\n\t\t\t\t\tyourself.\n\t\t\t\t{/if}\n\t\t\t</Callout>\n\n\t\t\t{#if form?.error}\n\t\t\t\t<Callout tone=\"danger\">{form.error}</Callout>\n\t\t\t{/if}\n\n\t\t\t<form method=\"POST\" action=\"?{data.query}&/approve\" class=\"space-y-4\">\n\t\t\t\t{#if level && level.orgs.length > 1}\n\t\t\t\t\t<label class=\"block space-y-2 text-sm\">\n\t\t\t\t\t\t<span class=\"text-foreground font-medium\">Organization</span>\n\t\t\t\t\t\t<FilterableDropdown\n\t\t\t\t\t\t\tname=\"orgId\"\n\t\t\t\t\t\t\titems={level.orgs.map((org) => ({ id: org.id, label: org.name }))}\n\t\t\t\t\t\t\tvalue={orgId}\n\t\t\t\t\t\t\tonChange={(v) => (pickedOrgId = v)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</label>\n\t\t\t\t{:else if level}\n\t\t\t\t\t<input type=\"hidden\" name=\"orgId\" value={orgId} />\n\t\t\t\t\t<p class=\"text-muted-foreground text-sm\">\n\t\t\t\t\t\tIn <span class=\"text-foreground font-medium\">{level.orgs[0]?.name}</span>.\n\t\t\t\t\t</p>\n\t\t\t\t{/if}\n\t\t\t\t<fieldset class=\"space-y-2\">\n\t\t\t\t\t<legend class=\"text-foreground text-sm font-medium\">Access</legend>\n\t\t\t\t\t{#each data.levels as { access, createsProjects } (access)}\n\t\t\t\t\t\t<label class=\"flex items-start gap-2 text-sm\">\n\t\t\t\t\t\t\t<input\n\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\tname=\"access\"\n\t\t\t\t\t\t\t\tvalue={access}\n\t\t\t\t\t\t\t\tchecked={access === level?.access}\n\t\t\t\t\t\t\t\tonchange={() => (picked = access)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<span>{ACCESS_TEXT[createsProjects ? 'uploadAndCreate' : access]}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t{/each}\n\t\t\t\t</fieldset>\n\t\t\t\t<Button type=\"submit\" class=\"w-full\">Allow</Button>\n\t\t\t</form>\n\t\t\t<form method=\"POST\" action=\"?{data.query}&/deny\">\n\t\t\t\t<Button type=\"submit\" variant=\"outline\" class=\"w-full\">Cancel</Button>\n\t\t\t</form>\n\t\t{/if}\n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AA;KACzD,IAAA,KAAK,U;;;;;;;;GAMN,IAAA,MAAM,OAAK;;;;;MACS,WAAA,KAAA,UAAAA,YAAA,KAAK,KAAK,GAAA;;;;;GAGL,WAAA,KAAA,+BAAAC,KAAA,UAAA,IAAAC,UAAA,KAAK,KAAK,EAAA,UAAA,EAAA,oBAAA;GAClC,IAAA,MAAK,KAAI,MAAK,CAAA,CAAC,KAAK,SAAS,GAAC;;;;KAKzB,OAAA,MAAK,CAAA,CAAC,KAAK,KAAK,SAAG;MAAQ,IAAI,IAAI;MAAI,OAAO,IAAI;KAAI,EAAA;KACtD,OAAA,MAAK;KACD,WAAA,MAAO,cAAc;;;GAGzB,OAAA,IAAA,MAAK,GAC2B,WAAA,KAAA,6CAAAD,KAAA,SAAA,MAAK,CAAA,EAAA,2FAAAD,YAEC,MAAK,CAAA,CAAC,KAAK,EAAC,EAAG,IAAI,EAAA,aAAA;;;GAK3D,MAAA,aAAAG,kBAAA,KAAK,MAAM;;IAAM,IAAA,EAAA,QAAQ,oBAAe,WAAA;IAKrC,WAAA,KAAA,kFAAAF,KAAA,SAAA,MAAM,IAAAA,KAAA,WACJ,WAAW,MAAK,CAAA,EAAE,QAAM,IAAA,EAAA,WAAAD,YAG3B,YAAY,kBAAkB,oBAAoB,OAAM,EAAA,gBAAA;;;;;;;;;;;GAMrC,WAAA,KAAA,qCAAAC,KAAA,UAAA,IAAAC,UAAA,KAAK,KAAK,EAAA,OAAA,EAAA,EAAA;;;;;;;;;;;;;CA7EnC,CAAA"}
|
|
@@ -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.BW9gOvFV.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.BW9gOvFV.js",app:"_app/immutable/entry/app.Cmuegtgc.js",imports:["_app/immutable/entry/start.BW9gOvFV.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/DUooINX6.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.Cmuegtgc.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
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.BW9gOvFV.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.BW9gOvFV.js",app:"_app/immutable/entry/app.Cmuegtgc.js",imports:["_app/immutable/entry/start.BW9gOvFV.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/DUooINX6.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.Cmuegtgc.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
package/build/server/nodes/1.js
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
export const index = 1;
|
|
4
4
|
let component_cache;
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_error.svelte.js')).default;
|
|
6
|
-
export const imports = ["_app/immutable/nodes/1.
|
|
6
|
+
export const imports = ["_app/immutable/nodes/1.DWd6YbcT.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/BAhtiTKe.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/CivEAG-M.js","_app/immutable/chunks/B8LXiPqe.js","_app/immutable/chunks/Bx2qumU5.js","_app/immutable/chunks/DIYaLgLs.js"];
|
|
7
7
|
export const stylesheets = [];
|
|
8
8
|
export const fonts = [];
|
package/build/server/nodes/2.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/admin/_layout.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/admin/+layout.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/2.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/2.CS32Eh9m.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/85w20NVU.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/CoLPPvYz.js","_app/immutable/chunks/rIQJtl5L.js","_app/immutable/chunks/qXnHMKD9.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.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/D_-42ATH.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/34Sd6e9o.js","_app/immutable/chunks/1VJx1aVI.js","_app/immutable/chunks/BkTC9VdY.js","_app/immutable/chunks/CKbHmAlc.js","_app/immutable/chunks/BmbAoXqr.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
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.CUK41A3B.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BRA_lgsI.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/DzeQucGI.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/qXnHMKD9.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.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/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.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/21.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/library/_guid_/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/library/[guid]/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/21.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/21.DvC40Ypm.js","_app/immutable/chunks/BepzH9eI.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.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/D_-42ATH.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/B9-uqzXO.js","_app/immutable/chunks/BvRGv1MX.js","_app/immutable/chunks/Dqc45la5.js","_app/immutable/chunks/B187F-XR.js","_app/immutable/chunks/BmbAoXqr.js","_app/immutable/chunks/CBWE8gpj.js","_app/immutable/chunks/Bct5vmEM.js","_app/immutable/chunks/nJUe9gXb.js","_app/immutable/chunks/Cms9vBTq.js","_app/immutable/chunks/CUaHcctM.js","_app/immutable/chunks/1VJx1aVI.js","_app/immutable/chunks/CVl4suwo.js","_app/immutable/chunks/DcS7V4T3.js","_app/immutable/chunks/BLG35vEW.js","_app/immutable/chunks/BCgmDXNw.js","_app/immutable/chunks/CK2nnbJa.js","_app/immutable/chunks/DG4fF26P.js","_app/immutable/chunks/Cj9-pF71.js","_app/immutable/chunks/BQmUk61d.js","_app/immutable/chunks/DIYaLgLs.js","_app/immutable/chunks/DnJObvmm.js","_app/immutable/chunks/DqR8kuM6.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/select.CV-KWLNP.css","_app/immutable/assets/21.DDgTnace.css"];
|
|
10
10
|
export const fonts = [];
|
package/build/server/nodes/24.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/oauth/authorize/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/oauth/authorize/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/24.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/24.DkL5kHzA.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/TZzCN567.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.js","_app/immutable/chunks/BJGlbpZ0.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/ZGbF6Eux.js","_app/immutable/chunks/DIYaLgLs.js","_app/immutable/chunks/CivEAG-M.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.D6EkgNRa.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/BRA_lgsI.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/CivEAG-M.js","_app/immutable/chunks/B7VqKSCZ.js","_app/immutable/chunks/gNgZDPHs.js","_app/immutable/chunks/CBWE8gpj.js","_app/immutable/chunks/Bct5vmEM.js","_app/immutable/chunks/DzeQucGI.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/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/B9-uqzXO.js","_app/immutable/chunks/BLG35vEW.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DW5EJMC7.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/BVVRTJCQ.js","_app/immutable/chunks/BFtd89gK.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
package/build/server/nodes/3.js
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
export const index = 3;
|
|
4
4
|
let component_cache;
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/admin/_error.svelte.js')).default;
|
|
6
|
-
export const imports = ["_app/immutable/nodes/3.
|
|
6
|
+
export const imports = ["_app/immutable/nodes/3.Ctd9OGCk.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/BAhtiTKe.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/CivEAG-M.js","_app/immutable/chunks/B8LXiPqe.js","_app/immutable/chunks/Bx2qumU5.js","_app/immutable/chunks/DIYaLgLs.js"];
|
|
7
7
|
export const stylesheets = [];
|
|
8
8
|
export const fonts = [];
|
package/build/server/nodes/5.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/projects/_layout.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/projects/+layout.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/5.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/5.Wh_w3RkZ.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/qXnHMKD9.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.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/D_-42ATH.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.js","_app/immutable/chunks/BRA_lgsI.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
package/build/server/nodes/6.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/team/_layout.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/team/+layout.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/6.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/6.C-DiUI5R.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/C0bsOHz0.js","_app/immutable/chunks/DqBxcKN2.js","_app/immutable/chunks/rIQJtl5L.js","_app/immutable/chunks/D-1_v2Lf.js","_app/immutable/chunks/ChEklEBB.js","_app/immutable/chunks/qXnHMKD9.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.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/D_-42ATH.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/DBMBAz5L.js","_app/immutable/chunks/1VJx1aVI.js","_app/immutable/chunks/BkTC9VdY.js","_app/immutable/chunks/CKbHmAlc.js","_app/immutable/chunks/BmbAoXqr.js"];
|
|
9
9
|
export const stylesheets = [];
|
|
10
10
|
export const fonts = [];
|
package/build/server/nodes/7.js
CHANGED
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/7.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/7.B8yubYrv.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BHnRUwtv.js","_app/immutable/chunks/BbFMtSJ8.js","_app/immutable/chunks/Ca-1xMUo.js","_app/immutable/chunks/lMQbJOeE.js","_app/immutable/chunks/qXnHMKD9.js","_app/immutable/chunks/C1xbQMZF.js","_app/immutable/chunks/BJGlbpZ0.js","_app/immutable/chunks/D5j4-ZO1.js","_app/immutable/chunks/CoRMsLUN.js","_app/immutable/chunks/DW5EJMC7.js","_app/immutable/chunks/DNFu5yLd.js","_app/immutable/chunks/OznVWGiS.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/D_-42ATH.js","_app/immutable/chunks/BuCeXb-q.js","_app/immutable/chunks/Rbl3OsBf.js","_app/immutable/chunks/CmlXAF26.js","_app/immutable/chunks/DtmJiR65.js","_app/immutable/chunks/zJ-SFdYZ.js","_app/immutable/chunks/Bga9Qxze.js","_app/immutable/chunks/CcWwBvi8.js","_app/immutable/chunks/LbAo7oFZ.js","_app/immutable/chunks/BRA_lgsI.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/7.T1zeJ20D.css"];
|
|
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.BW9gOvFV.js",app:"_app/immutable/entry/app.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.BW9gOvFV.js",app:"_app/immutable/entry/app.Cmuegtgc.js",imports:["_app/immutable/entry/start.BW9gOvFV.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CRzLMJPS.js","_app/immutable/chunks/DUooINX6.js","_app/immutable/chunks/BRA_lgsI.js","_app/immutable/chunks/sphvlIzg.js","_app/immutable/chunks/Cyt8LZpN.js","_app/immutable/chunks/BFJ8iwO4.js","_app/immutable/entry/app.Cmuegtgc.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
|
|
15
15
|
nodes: [
|
|
16
16
|
__memo(() => import('./nodes/0.js')),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selvajs/selva",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.21.0-beta.7",
|
|
4
4
|
"description": "Selva — self-contained Grasshopper-driven web app. Install, configure via .env, deploy.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VektorNode",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"rimraf": "^6.1.3",
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"vitest": "^5.0.5",
|
|
61
|
-
"@selvajs/compute": "5.1.0-beta.0",
|
|
62
61
|
"@selvajs/config": "0.0.4",
|
|
63
|
-
"@selvajs/mcp": "0.1.0",
|
|
64
|
-
"@selvajs/header-auth-provider": "0.11.1",
|
|
65
62
|
"@selvajs/local-provider": "0.16.1-beta.2",
|
|
66
|
-
"@selvajs/
|
|
67
|
-
"@selvajs/
|
|
68
|
-
"@selvajs/
|
|
69
|
-
"@selvajs/
|
|
70
|
-
"@selvajs/
|
|
71
|
-
"@selvajs/
|
|
63
|
+
"@selvajs/compute": "5.1.0-beta.1",
|
|
64
|
+
"@selvajs/header-auth-provider": "0.11.1",
|
|
65
|
+
"@selvajs/mcp": "0.1.0",
|
|
66
|
+
"@selvajs/notifications": "0.3.1-beta.3",
|
|
67
|
+
"@selvajs/platform": "1.1.0-beta.3",
|
|
68
|
+
"@selvajs/schemas": "5.4.0-beta.2",
|
|
69
|
+
"@selvajs/server": "3.0.0-beta.4",
|
|
70
|
+
"@selvajs/solve": "2.1.0-beta.4",
|
|
72
71
|
"@selvajs/supabase-provider": "0.21.0-beta.3",
|
|
72
|
+
"@selvajs/ui": "7.1.0-beta.3",
|
|
73
73
|
"@selvajs/visualization": "1.7.1-beta.1"
|
|
74
74
|
},
|
|
75
75
|
"imports": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{o as strToU8,s as zip}from"./D-uUm_OB.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
�export{o as strToU8,s as zip}from"./D-uUm_OB.js";
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Et as t}from"./sphvlIzg.js";var n={en:{toolsMenu:`Viewer tools`,switchToOrthographic:`Orthographic camera`,switchToPerspective:`Perspective camera`,fitToView:`Fit to view`,views:`Views`,measure:`Measure`,grid:`Grid`,display:`Display`,edges:`Edges`,sceneManager:`Scene manager`,screenshot:`Screenshot`,fullscreen:`Fullscreen`,exitFullscreen:`Exit fullscreen`,viewTop:`Top`,viewFront:`Front`,viewRight:`Right`,viewBack:`Back`,viewLeft:`Left`,viewBottom:`Bottom`,viewIso:`Isometric`,lookTechnical:`Technical`,lookStudio:`Studio`,lookShowcase:`Showcase`,lookNight:`Night`,nightMode:`Night mode`,lookArctic:`Arctic`,lookXray:`X-Ray`,lookLineart:`Line Art`,lookWireframe:`Wireframe`,searchObjects:`Search objects...`,clearSearch:`Clear search`,expandLayer:`Expand layer`,collapseLayer:`Collapse layer`,expandAll:`Expand all`,collapseAll:`Collapse all`,showLayer:`Show layer`,hideLayer:`Hide layer`,showObject:`Show object`,hideObject:`Hide object`,noObjects:`No objects`,noResultsFor:`No results for "{query}"`,objectFallbackName:`Object`,noMetadata:`No metadata`,loadingSchema:`Loading…`,solveBlocked:`The definition stopped this solve. No results were produced.`,solveBlockedTitle:`Solve stopped`,solveMessagesTitle:`Solve messages`,solveMessagesDescription:`This solve reported the following. Continue to see the result.`,solveMessagesConfirm:`Continue`,solveMessagesDiscard:`Discard`,solveMessagesAbort:`Abort`,solveMessagesEscHint:`Esc aborts the solve`,solveMessagesDismiss:`Dismiss`,solveSolving:`Solving…`,solveDone:`Done`,solveStopped:`Stopped`,parametersTab:`Parameters`,moreTab:`More`,scrollTabsBack:`Previous tabs`,scrollTabsForward:`More tabs`,expandSidePanel:`Expand {side} panel`,panelSideLeft:`left`,panelSideRight:`right`,tabNoGroups:`This tab has no groups configured.`,solving:`Solving`,solvingEllipsis:`Solving...`,solvingSubtitle:`This can take a moment…`,pressToCalculate:`Press to calculate`,calculate:`Calculate`,upToDate:`Up to date`,moreActions:`More actions`,calculatesFirst:`Calculates first`,errorCountOne:`{count} error`,errorCountOther:`{count} errors`,warningCountOne:`{count} warning`,warningCountOther:`{count} warnings`,noteCountOne:`{count} note`,noteCountOther:`{count} notes`,lastSolveMessagesOne:`{count} message from the last solve`,lastSolveMessagesOther:`{count} messages from the last solve`,messagesTitle:`Messages`,copyright:`by {name} © {year}`,close:`Close`,toggleTheme:`Toggle theme`,errorTitle:`Error`,goHome:`Go Home`,selectOption:`Select an option...`,noOptionsYet:`No options available yet.`,minValue:`Minimum value is {min}`,maxValue:`Maximum value is {max}`,fineDragHint:`Hold Shift to drag finely`,maxLength:`Maximum {max} characters allowed`,invalidFormat:`Invalid format`,colorPick:`Choose color, currently {color}`,colorArea:`Saturation and brightness`,colorAreaValue:`Saturation {s}%, brightness {v}%`,colorHue:`Hue`,colorHex:`Hex color`,colorHexInvalid:`Enter a hex color such as #2f6fd6`,colorPresets:`Presets`,colorEyedropper:`Pick a color from the screen`,invalidPattern:`Invalid validation pattern configured`,geometryPickAnyOne:`Pick an object`,geometryPickAnyOther:`Pick objects`,geometryPicking:`Pick in the viewport, Esc to cancel`,geometryPickInPanel:`Pick in the Rhino panel`,geometryPickAgain:`Pick again`,geometryClear:`Clear`,geometryPickPointOne:`Pick a point`,geometryPickPointOther:`Pick points`,geometryPickPointCloudOne:`Pick a point cloud`,geometryPickPointCloudOther:`Pick point clouds`,geometryPickCurveOne:`Pick a curve`,geometryPickCurveOther:`Pick curves`,geometryPickLineOne:`Pick a line`,geometryPickLineOther:`Pick lines`,geometryPickPlaneOne:`Pick a plane`,geometryPickPlaneOther:`Pick planes`,geometryPickSurfaceOne:`Pick a surface`,geometryPickSurfaceOther:`Pick surfaces`,geometryPickPolysurfaceOne:`Pick a polysurface`,geometryPickPolysurfaceOther:`Pick polysurfaces`,geometryPickExtrusionOne:`Pick an extrusion`,geometryPickExtrusionOther:`Pick extrusions`,geometryPickMeshOne:`Pick a mesh`,geometryPickMeshOther:`Pick meshes`,geometryPickSubdOne:`Pick a SubD`,geometryPickSubdOther:`Pick SubDs`,geometryPickBlockOne:`Pick a block`,geometryPickBlockOther:`Pick blocks`,fileModeUpload:`Upload`,fileModeUrl:`URL`,fileUrlLabel:`File URL`,fetchFile:`Fetch`,fetchingFile:`Fetching...`,fileUrlPublic:`URL must be publicly accessible (no login required).`,chooseFile:`Choose File or Drag & Drop`,acceptedFormats:`Accepted formats: {formats}`,uploadedFile:`Uploaded file ({ext})`,uploadedFileSize:`Uploaded file ({ext}, {size}MB)`,fileLoaded:`Loaded {ext} ({size} KB)`,urlInvalid:`Invalid URL — make sure it starts with https://`,urlProtocolUnsupported:`Only http:// and https:// URLs are supported.`,urlServerError:`Server returned {status}. Check the URL is correct and publicly accessible.`,fileFormatNotAccepted:`File format "{ext}" is not accepted. Allowed: {formats}`,fileTooLarge:`File too large: {size}MB (max {max}MB).`,fileTooLargeUseUpload:`Download it and use Upload instead.`,fileReadFailed:`Failed to read the downloaded file.`,urlUnreachable:`Could not reach "{host}" — the file may not exist, or the server does not allow browser access.`,urlUnreachableHint:`Check that the URL is correct and the file is publicly accessible. If the server requires login, download the file and use the Upload option instead.`,urlHintSharePoint:`SharePoint/OneDrive blocks browser access. Open the file in SharePoint, use "Download" to save it locally, then upload it here.`,urlHintGoogleDrive:`Google Drive blocks browser access. Use "Download" in Google Drive to save the file locally, then upload it here.`,urlHintDropbox:`Dropbox links may block browser access. Try changing "?dl=0" to "?dl=1" in the URL, or download and upload instead.`,unknownError:`Unknown error`,waitingForData:`Waiting for data...`,waitingForFiles:`Waiting for file data...`,fileCount:`{count} files`,duplicateFilesTitle:`Duplicate file names detected`,duplicatePathsOne:`The following path appears more than once:`,duplicatePathsOther:`The following paths appear more than once:`,duplicateFilesHint:`Rename outputs in your Grasshopper definition so each file has a unique name.`,downloadFile:`Download File`,downloadFiles:`Download {count} Files`,downloading:`Downloading...`,downloadFailed:`Download failed`,copy:`Copy`,copied:`Copied!`,chartReceiving:`Receiving chart data...`,chartRenderFailed:`Failed to render chart`,downloadChartImage:`Download plot as image`,fullscreenUnavailable:`Fullscreen unavailable: {error}`,exitFullscreenFailed:`Exit fullscreen failed: {error}`,imageViewer:`image viewer`,imageLoading:`Loading image…`,imageUnsupported:`Unsupported image format: {ext}. Supported: {formats}`,imageUnknownFormat:`(unknown)`,imageDecodeFailed:`Couldn't decode {file}`,previousImage:`Previous image`,nextImage:`Next image`,zoomHint:`Hold Ctrl or ⌘ and scroll to zoom`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,zoomFit:`Fit`,zoomActual:`Actual pixels`,downloadImage:`Download image`},de:{toolsMenu:`Viewer-Werkzeuge`,switchToOrthographic:`Orthografische Kamera`,switchToPerspective:`Perspektivische Kamera`,fitToView:`Ansicht anpassen`,views:`Ansichten`,measure:`Messen`,grid:`Raster`,display:`Darstellung`,edges:`Kanten`,sceneManager:`Szenen-Manager`,screenshot:`Screenshot`,fullscreen:`Vollbild`,exitFullscreen:`Vollbild beenden`,viewTop:`Oben`,viewFront:`Vorne`,viewRight:`Rechts`,viewBack:`Hinten`,viewLeft:`Links`,viewBottom:`Unten`,viewIso:`Isometrisch`,lookTechnical:`Technisch`,lookStudio:`Studio`,lookShowcase:`Präsentation`,lookNight:`Nacht`,nightMode:`Nachtmodus`,lookArctic:`Arktis`,lookXray:`Röntgen`,lookLineart:`Strichzeichnung`,lookWireframe:`Drahtgitter`,searchObjects:`Objekte suchen...`,clearSearch:`Suche löschen`,expandLayer:`Ebene aufklappen`,collapseLayer:`Ebene zuklappen`,expandAll:`Alle aufklappen`,collapseAll:`Alle zuklappen`,showLayer:`Ebene einblenden`,hideLayer:`Ebene ausblenden`,showObject:`Objekt einblenden`,hideObject:`Objekt ausblenden`,noObjects:`Keine Objekte`,noResultsFor:`Keine Ergebnisse für „{query}“`,objectFallbackName:`Objekt`,noMetadata:`Keine Metadaten`,loadingSchema:`Wird geladen…`,solveBlocked:`Die Definition hat diese Berechnung gestoppt. Es wurden keine Ergebnisse erzeugt.`,solveBlockedTitle:`Berechnung gestoppt`,solveMessagesTitle:`Meldungen zur Berechnung`,solveMessagesDescription:`Diese Berechnung hat Folgendes gemeldet. Weiter, um das Ergebnis zu sehen.`,solveMessagesConfirm:`Weiter`,solveMessagesDiscard:`Verwerfen`,solveMessagesAbort:`Abbrechen`,solveMessagesEscHint:`Esc bricht die Berechnung ab`,solveMessagesDismiss:`Schliessen`,solveSolving:`Berechnung läuft…`,solveDone:`Fertig`,solveStopped:`Abgebrochen`,parametersTab:`Parameter`,moreTab:`Mehr`,scrollTabsBack:`Vorherige Tabs`,scrollTabsForward:`Weitere Tabs`,expandSidePanel:`{side} Bereich aufklappen`,panelSideLeft:`Linken`,panelSideRight:`Rechten`,tabNoGroups:`Für diesen Tab sind keine Gruppen konfiguriert.`,solving:`Berechnung läuft`,solvingEllipsis:`Berechnung läuft...`,solvingSubtitle:`Das kann einen Moment dauern…`,pressToCalculate:`Berechnen`,calculate:`Berechnen`,upToDate:`Berechnet`,moreActions:`Weitere Aktionen`,calculatesFirst:`Berechnet zuerst`,errorCountOne:`{count} Fehler`,errorCountOther:`{count} Fehler`,warningCountOne:`{count} Warnung`,warningCountOther:`{count} Warnungen`,noteCountOne:`{count} Hinweis`,noteCountOther:`{count} Hinweise`,lastSolveMessagesOne:`{count} Meldung der letzten Berechnung`,lastSolveMessagesOther:`{count} Meldungen der letzten Berechnung`,messagesTitle:`Meldungen`,copyright:`von {name} © {year}`,close:`Schliessen`,toggleTheme:`Farbschema wechseln`,errorTitle:`Fehler`,goHome:`Zur Startseite`,selectOption:`Option wählen…`,noOptionsYet:`Noch keine Optionen verfügbar.`,minValue:`Der kleinste erlaubte Wert ist {min}`,maxValue:`Der grösste erlaubte Wert ist {max}`,fineDragHint:`Umschalttaste halten für feine Schritte`,maxLength:`Höchstens {max} Zeichen erlaubt`,invalidFormat:`Ungültiges Format`,colorPick:`Farbe wählen, aktuell {color}`,colorArea:`Sättigung und Helligkeit`,colorAreaValue:`Sättigung {s} %, Helligkeit {v} %`,colorHue:`Farbton`,colorHex:`Hex-Farbe`,colorHexInvalid:`Hex-Farbe eingeben, z. B. #2f6fd6`,colorPresets:`Vorgaben`,colorEyedropper:`Farbe vom Bildschirm aufnehmen`,invalidPattern:`Ungültiges Prüfmuster hinterlegt`,geometryPickAnyOne:`Objekt wählen`,geometryPickAnyOther:`Objekte wählen`,geometryPicking:`Im Ansichtsfenster wählen, Esc bricht ab`,geometryPickInPanel:`Im Rhino-Panel wählen`,geometryPickAgain:`Neu wählen`,geometryClear:`Leeren`,geometryPickPointOne:`Punkt wählen`,geometryPickPointOther:`Punkte wählen`,geometryPickPointCloudOne:`Punktwolke wählen`,geometryPickPointCloudOther:`Punktwolken wählen`,geometryPickCurveOne:`Kurve wählen`,geometryPickCurveOther:`Kurven wählen`,geometryPickLineOne:`Linie wählen`,geometryPickLineOther:`Linien wählen`,geometryPickPlaneOne:`Ebene wählen`,geometryPickPlaneOther:`Ebenen wählen`,geometryPickSurfaceOne:`Fläche wählen`,geometryPickSurfaceOther:`Flächen wählen`,geometryPickPolysurfaceOne:`Flächenverband wählen`,geometryPickPolysurfaceOther:`Flächenverbände wählen`,geometryPickExtrusionOne:`Extrusion wählen`,geometryPickExtrusionOther:`Extrusionen wählen`,geometryPickMeshOne:`Netz wählen`,geometryPickMeshOther:`Netze wählen`,geometryPickSubdOne:`SubD wählen`,geometryPickSubdOther:`SubDs wählen`,geometryPickBlockOne:`Block wählen`,geometryPickBlockOther:`Blöcke wählen`,fileModeUpload:`Hochladen`,fileModeUrl:`URL`,fileUrlLabel:`Datei-URL`,fetchFile:`Abrufen`,fetchingFile:`Wird abgerufen…`,fileUrlPublic:`Die URL muss öffentlich erreichbar sein (ohne Anmeldung).`,chooseFile:`Datei wählen oder hierher ziehen`,acceptedFormats:`Erlaubte Formate: {formats}`,uploadedFile:`Hochgeladene Datei ({ext})`,uploadedFileSize:`Hochgeladene Datei ({ext}, {size} MB)`,fileLoaded:`{ext} geladen ({size} KB)`,urlInvalid:`Ungültige URL – sie muss mit https:// beginnen`,urlProtocolUnsupported:`Nur http://- und https://-URLs werden unterstützt.`,urlServerError:`Der Server antwortete mit {status}. Ist die URL korrekt und öffentlich erreichbar?`,fileFormatNotAccepted:`Dateiformat „{ext}“ ist nicht erlaubt. Erlaubt: {formats}`,fileTooLarge:`Datei zu gross: {size} MB (höchstens {max} MB).`,fileTooLargeUseUpload:`Datei herunterladen und stattdessen über „Hochladen“ einfügen.`,fileReadFailed:`Die heruntergeladene Datei konnte nicht gelesen werden.`,urlUnreachable:`„{host}“ ist nicht erreichbar – die Datei existiert vielleicht nicht, oder der Server erlaubt keinen Zugriff aus dem Browser.`,urlUnreachableHint:`Prüfen, ob die URL stimmt und die Datei öffentlich erreichbar ist. Verlangt der Server eine Anmeldung: Datei herunterladen und über „Hochladen“ einfügen.`,urlHintSharePoint:`SharePoint/OneDrive sperrt den Zugriff aus dem Browser. Datei in SharePoint öffnen, mit „Herunterladen“ lokal speichern und hier hochladen.`,urlHintGoogleDrive:`Google Drive sperrt den Zugriff aus dem Browser. Datei in Google Drive mit „Herunterladen“ lokal speichern und hier hochladen.`,urlHintDropbox:`Dropbox-Links sperren den Zugriff aus dem Browser oft. In der URL „?dl=0“ durch „?dl=1“ ersetzen oder die Datei herunterladen und hochladen.`,unknownError:`Unbekannter Fehler`,waitingForData:`Noch keine Daten`,waitingForFiles:`Noch keine Dateien`,fileCount:`{count} Dateien`,duplicateFilesTitle:`Doppelte Dateinamen`,duplicatePathsOne:`Dieser Pfad kommt mehrfach vor:`,duplicatePathsOther:`Diese Pfade kommen mehrfach vor:`,duplicateFilesHint:`Ausgaben in der Grasshopper-Definition umbenennen, damit jede Datei einen eindeutigen Namen hat.`,downloadFile:`Datei herunterladen`,downloadFiles:`{count} Dateien herunterladen`,downloading:`Wird heruntergeladen…`,downloadFailed:`Download fehlgeschlagen`,copy:`Kopieren`,copied:`Kopiert!`,chartReceiving:`Diagrammdaten werden empfangen…`,chartRenderFailed:`Diagramm konnte nicht dargestellt werden`,downloadChartImage:`Diagramm als Bild herunterladen`,fullscreenUnavailable:`Vollbild nicht verfügbar: {error}`,exitFullscreenFailed:`Vollbild konnte nicht beendet werden: {error}`,imageViewer:`Bildbetrachter`,imageLoading:`Bild wird geladen…`,imageUnsupported:`Bildformat nicht unterstützt: {ext}. Unterstützt: {formats}`,imageUnknownFormat:`(unbekannt)`,imageDecodeFailed:`{file} konnte nicht gelesen werden`,previousImage:`Vorheriges Bild`,nextImage:`Nächstes Bild`,zoomHint:`Zum Zoomen Strg oder ⌘ halten und scrollen`,zoomIn:`Vergrössern`,zoomOut:`Verkleinern`,zoomFit:`Einpassen`,zoomActual:`Originalgrösse`,downloadImage:`Bild herunterladen`}};function r(e){return n[e??`en`]??n.en}function i(e,t){if(!t)return e;let n={...e};for(let[e,r]of Object.entries(t))r!==void 0&&(n[e]=r);return n}function a(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e)}function o(e,t,n){return a(e===1?t:n,{count:e})}var s=Symbol(`viewer-locale-context`);function c(t,n){let a=l(),o={get locale(){return t()??a.locale},get messages(){let e=t();return i(e===void 0||e===a.locale?a.messages:r(e),n?.())}};return e(s,o),o}function l(){return t(s)??{get locale(){return`en`},get messages(){return r(`en`)}}}export{a as i,c as n,o as r,l as t};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{t as component}from"../chunks/D-uUm_OB.js";
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{A as e,D as t,Ft as n,J as r,K as i,L as a,Ot as o,Pt as s,Q as c,S as l,St as u,U as d,V as f,_t as p,dt as m,ft as h,g,h as _,kt as v,lt as y,m as b,mt as x,ot as S,p as C,pt as w,q as T,rt as E,yt as D}from"../chunks/sphvlIzg.js";import{n as O}from"../chunks/BFJ8iwO4.js";import"../chunks/BHnRUwtv.js";import{t as k}from"../chunks/BbFMtSJ8.js";import{t as ee}from"../chunks/TZzCN567.js";import{t as te}from"../chunks/ZGbF6Eux.js";import{t as A}from"../chunks/DIYaLgLs.js";var j=d(`<div class="space-y-1 text-center"><h2 class="text-foreground text-2xl font-bold tracking-tight">Can’t connect</h2> <p class="text-muted-foreground text-sm"> </p></div>`),M=d(`<p class="text-muted-foreground text-xs"> </p>`),N=d(`The token goes to <span class="font-medium"> </span>. <!>`,1),P=d(`<label class="block space-y-2 text-sm"><span class="text-foreground font-medium">Organization</span> <!></label>`),F=d(`<input type="hidden" name="orgId"/> <p class="text-muted-foreground text-sm">In <span class="text-foreground font-medium"> </span>.</p>`,1),I=d(`<label class="flex items-start gap-2 text-sm"><input type="radio" name="access"/> <span> </span></label>`),L=d(`<div class="space-y-1 text-center"><h2 class="text-foreground text-2xl font-bold tracking-tight"> </h2> <!> <p class="text-muted-foreground text-sm"> </p></div> <!> <!> <form method="POST" class="space-y-4"><!> <fieldset class="space-y-2"><legend class="text-foreground text-sm font-medium">Access</legend> <!></fieldset> <!></form> <form method="POST"><!></form>`,1),R=d(`<div class="bg-background flex min-h-dvh items-center justify-center px-4 py-12 sm:px-6 lg:px-8"><div class="w-full max-w-sm space-y-6"><!></div></div>`);function z(d,T){v(T,!0);let z={read:`Read: browse definitions and their inputs`,solve:`Read and run solves: spends your compute budget`,upload:`Upload definitions: create definitions and new versions where you can, and make a version live. It can’t delete or share anything.`,uploadAndCreate:`Upload definitions: create private projects, definitions and new versions where you can, and make a version live. It can’t delete or share anything.`},B=D(void 0),V=u(()=>T.data.ok?T.data.levels.find(e=>e.access===c(B))??T.data.levels.at(-1):void 0),H=D(void 0),U=u(()=>c(V)?.orgs.some(e=>e.id===c(H))?c(H):c(V)?.orgId);var W=R();l(`1wgpi7w`,e=>{E(()=>{y.title=`Connect an app - ${O.data.branding.name??``}`})});var G=m(W),K=m(G),q=e=>{var t=j(),r=x(m(t),2),i=w(r,!0);n(t),S(()=>a(i,T.data.problem)),f(e,t)},J=o=>{var l=L(),d=h(l),v=m(d),y=w(v),E=x(v,2),D=e=>{te(e,{variant:`secondary`,children:(e,t)=>{s();var n=i();S(()=>a(n,`Built into ${O.data.branding.name??``}`)),f(e,n)},$$slots:{default:!0}})},j=e=>{var t=M(),n=w(t);S(()=>a(n,`The app chose this name itself. ${O.data.branding.name??``} hasn’t checked it.`)),f(e,t)};e(E,e=>{T.data.builtIn?e(D):e(j,-1)});var R=x(E,2),W=w(R);n(d);var G=x(d,2);{let t=u(()=>T.data.loopback?`warning`:`info`);A(G,{get tone(){return c(t)},children:(t,n)=>{s();var r=N(),o=x(h(r)),c=w(o,!0),l=x(o,2),u=e=>{var t=i(`That is a program on your own computer. Only continue if you just started this connection
|
|
2
|
-
yourself.`);f(e,t)};e(l,e=>{T.data.loopback&&e(u)}),S(()=>a(c,T.data.redirectHost)),f(t,r)},$$slots:{default:!0}})}var K=x(G,2),q=e=>{A(e,{tone:`danger`,children:(e,t)=>{s();var n=i();S(()=>a(n,T.form.error)),f(e,n)},$$slots:{default:!0}})};e(K,e=>{T.form?.error&&e(q)});var J=x(K,2),Y=m(J),X=e=>{var t=P(),r=x(m(t),2);{let e=u(()=>c(V).orgs.map(e=>({id:e.id,label:e.name})));ee(r,{name:`orgId`,get items(){return c(e)},get value(){return c(U)},onChange:e=>p(H,e,!0)})}n(t),f(e,t)},Z=e=>{var t=F(),r=h(t);C(r);var i=x(r,2),o=x(m(i)),l=w(o,!0);s(),n(i),S(()=>{g(r,c(U)),a(l,c(V).orgs[0]?.name)}),f(e,t)};e(Y,e=>{c(V)&&c(V).orgs.length>1?e(X):c(V)&&e(Z,1)});var Q=x(Y,2),ne=x(m(Q),2);t(ne,17,()=>T.data.levels,({access:e,createsProjects:t})=>e,(e,t)=>{let i=()=>c(t).access,o=()=>c(t).createsProjects;var s=I(),l=m(s);C(l);var u=x(l,2),d=w(u,!0);n(s),S(()=>{g(l,i()),_(l,i()===c(V)?.access),a(d,z[o()?`uploadAndCreate`:i()])}),r(`change`,l,()=>p(B,i(),!0)),f(e,s)}),n(Q);var re=x(Q,2);k(re,{type:`submit`,class:`w-full`,children:(e,t)=>{s();var n=i(`Allow`);f(e,n)},$$slots:{default:!0}}),n(J);var $=x(J,2),ie=m($);k(ie,{type:`submit`,variant:`outline`,class:`w-full`,children:(e,t)=>{s();var n=i(`Cancel`);f(e,n)},$$slots:{default:!0}}),n($),S(()=>{a(y,`Connect ${T.data.clientName??``}`),a(W,`${T.data.clientName??``} wants to use ${O.data.branding.name??``} as you. It gets an API token that lasts
|
|
3
|
-
${T.data.days??``} days. You can revoke it under Team → API tokens.`),b(J,`action`,`?${T.data.query??``}&/approve`),b($,`action`,`?${T.data.query??``}&/deny`)}),f(o,l)};e(K,e=>{T.data.ok?e(J,-1):e(q)}),n(G),n(W),f(d,W),o()}T([`change`]);export{z as component};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@�R�i��=�21W=i�O�ŪW�MdH ������咴�!���Ӓ�O�����/3@e���\i�;�:&�PO��[��
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outcome-DNrffAXp.js","names":[],"sources":["../../../../solve/dist/outcome-DNrffAXp.js"],"sourcesContent":["// src/shared/solve-fn.ts\n/**\n* The solve contract — what a solve returns and what a caller supplies to run one.\n*\n* Lives in `shared/` because both halves of the package speak it: `client/` calls a `SolveFn` and\n* stores its `SolveResult`; `server/` produces the payload one is built from.\n*/\n/**\n* Marker the Grasshopper Message component prepends to a blocking error.\n*\n* Rhino.Compute flattens runtime messages to plain strings with no component attribution, so\n* this is the only way that path can tell a deliberate block from any other solve error. The\n* local WebSocket path carries `isGate` structurally and does not need it — but the component\n* writes the marker unconditionally, because the same definition runs on both.\n*\n* Changing this string breaks blocking on deployed Selva for every already-published\n* definition, since the text is baked into the .gh file's solve output, not the plugin.\n*/\nconst SOLVE_BLOCKED_MARKER = \"[Selva:blocked]\";\n/**\n* Marker the Message component prepends to a remark or warning — the non-blocking levels.\n*\n* Same reason as `SOLVE_BLOCKED_MARKER`: on Rhino.Compute nothing structural survives, and the\n* UI has to tell a message the author chose to write from an incidental Grasshopper warning.\n* Definitions saved before this existed lack it, so the reader falls back to the component name.\n*/\nconst SOLVE_AUTHORED_MARKER = \"[Selva:msg]\";\n/**\n* Marker for an authored message whose author chose Notify = Log.\n*\n* Still theirs — it keeps its attribution and its place in the message list — but it does not\n* interrupt. Errors never carry it: their result is withheld, so they always interrupt.\n*/\nconst SOLVE_LOG_ONLY_MARKER = \"[Selva:log]\";\n// src/shared/compute-diagnostics.ts\n/**\n* Compute's per-message attribution suffix. Anchored to the end and requiring the parenthesised\n* GUID, so an author who writes `component \"x\"` mid-sentence keeps their text intact.\n*/\nconst ATTRIBUTION = /:\\s*component\\s+\"([^\"]*)\"\\s*\\(([0-9a-fA-F-]{36}|\\.\\.\\.)\\)\\s*$/;\n/** The Selva Message component's own name, as `LogRuntimeMessages` reports it. */\nconst MESSAGE_COMPONENT_NAME = \"Message\";\n/**\n* Splits one Compute message string into the author's text and its attribution.\n*\n* Leaves the text alone when the suffix is absent — an exception thrown by a script component\n* has no attribution and must not be truncated on a guess.\n*/\nfunction parseComputeMessage(raw) {\n\tconst blocked = raw.includes(SOLVE_BLOCKED_MARKER);\n\tconst logOnly = !blocked && raw.includes(\"[Selva:log]\");\n\tconst authored = blocked || logOnly || raw.includes(\"[Selva:msg]\");\n\tlet message = raw;\n\tlet source;\n\tconst attribution = ATTRIBUTION.exec(message);\n\tif (attribution) {\n\t\tsource = attribution[1] || void 0;\n\t\tmessage = message.slice(0, attribution.index);\n\t}\n\tif (authored) message = message.replace(SOLVE_BLOCKED_MARKER, \"\").replace(SOLVE_AUTHORED_MARKER, \"\").replace(SOLVE_LOG_ONLY_MARKER, \"\").replace(/^\\s*\\d+\\.\\s*Solution exception:\\s*/, \"\");\n\treturn {\n\t\tmessage: message.replace(/\\s{2,}/g, \" \").trim(),\n\t\tsource,\n\t\tblocked,\n\t\tauthored,\n\t\tlogOnly\n\t};\n}\n/**\n* Rebuilds structured diagnostics from Compute's `errors`/`warnings` arrays.\n*\n* `isGate` comes from the marker the component writes. The component-name fallback is for\n* definitions saved before the non-blocking marker existed; `obj.Name` is the component's type\n* name, not its nickname, so renaming one on the canvas cannot change how it behaves.\n*/\nfunction parseComputeDiagnostics(errors, warnings) {\n\tconst build = (raw, level) => {\n\t\tconst { message, source, authored, logOnly } = parseComputeMessage(raw);\n\t\tconst isGate = (authored || source === MESSAGE_COMPONENT_NAME) && !logOnly;\n\t\treturn {\n\t\t\tlevel,\n\t\t\tmessage,\n\t\t\t...source ? { source } : {},\n\t\t\t...isGate ? { isGate } : {}\n\t\t};\n\t};\n\treturn [...errors.map((raw) => build(raw, \"error\")), ...warnings.map((raw) => build(raw, \"warning\"))];\n}\n// src/shared/outcome.ts\nfunction isLevel(value) {\n\treturn value === \"error\" || value === \"warning\" || value === \"remark\";\n}\n/**\n* One wire diagnostic, normalized: an unknown level reads as a remark, text is trimmed, and\n* `source`/`isGate` are omitted rather than null or false. Null when it carries no message.\n*/\nfunction decodeDiagnostic(entry) {\n\tif (!entry || typeof entry !== \"object\") return null;\n\tconst d = entry;\n\tconst message = typeof d.message === \"string\" ? d.message.trim() : \"\";\n\tif (!message) return null;\n\tconst source = typeof d.source === \"string\" && d.source ? d.source : void 0;\n\treturn {\n\t\tlevel: isLevel(d.level) ? d.level : \"remark\",\n\t\tmessage,\n\t\t...source ? { source } : {},\n\t\t...d.isGate === true ? { isGate: true } : {}\n\t};\n}\nfunction normalizeOutcome(entries, blocked, aborted) {\n\tconst seen = /* @__PURE__ */ new Set();\n\tconst diagnostics = [];\n\tfor (const entry of entries) {\n\t\tconst d = decodeDiagnostic(entry);\n\t\tif (!d) continue;\n\t\tconst key = `${d.level}\\u0000${d.message}\\u0000${d.source ?? \"\"}\\u0000${d.isGate === true}`;\n\t\tif (seen.has(key)) continue;\n\t\tseen.add(key);\n\t\tdiagnostics.push(d);\n\t}\n\treturn {\n\t\tdiagnostics,\n\t\tblocked: blocked || aborted,\n\t\taborted\n\t};\n}\n/**\n* Normalizes a wire outcome with `decodeDiagnostic`, dropping exact repeats, so the same verdict\n* decodes to the same object from either transport. Null when `wire` is not an outcome at all;\n* the caller then falls back. A verdict without a diagnostic list still counts: reading a refusal\n* as \"no outcome\" would let the solve through.\n*/\nfunction decodeOutcome(wire) {\n\tif (!wire || typeof wire !== \"object\") return null;\n\tconst { diagnostics, blocked, aborted } = wire;\n\tconst hasList = Array.isArray(diagnostics);\n\tif (!hasList && blocked === void 0 && aborted === void 0) return null;\n\tconst isTrue = (flag) => flag === true || flag === \"true\";\n\treturn normalizeOutcome(hasList ? diagnostics : [], isTrue(blocked), isTrue(aborted));\n}\n/** The legacy verdict, read from Compute's flattened `errors`/`warnings` and their markers. */\nfunction outcomeFromComputeMessages(errors, warnings) {\n\tconst strings = (list) => list.filter((m) => typeof m === \"string\");\n\tconst errorText = strings(errors);\n\treturn normalizeOutcome(parseComputeDiagnostics(errorText, strings(warnings)), errorText.some((e) => e.includes(SOLVE_BLOCKED_MARKER)), false);\n}\n/**\n* Builds the result a driver reports. A blocked or aborted outcome is \"no result\" whatever the\n* transport sent along: no outputs, no `source` (it holds the withheld outputs), and an empty mesh\n* list so the viewer clears. `errors` and `warnings` are derived from the diagnostics for hosts\n* that only want text.\n*/\nfunction finalizeResult(partial, outcome) {\n\tconst rejected = outcome.blocked || outcome.aborted;\n\tconst meshes = rejected ? [] : partial.meshes;\n\treturn {\n\t\toutputs: rejected ? {} : partial.outputs,\n\t\t...meshes !== void 0 ? { meshes } : {},\n\t\terrors: outcome.diagnostics.filter((d) => d.level === \"error\").map((d) => d.message),\n\t\twarnings: outcome.diagnostics.filter((d) => d.level === \"warning\").map((d) => d.message),\n\t\tdiagnostics: outcome.diagnostics,\n\t\tblocked: outcome.blocked,\n\t\taborted: outcome.aborted,\n\t\t...partial.source !== void 0 && !rejected ? { source: partial.source } : {}\n\t};\n}\nexport { outcomeFromComputeMessages as i, decodeOutcome as n, finalizeResult as r, decodeDiagnostic as t };\n\n//# sourceMappingURL=outcome-DNrffAXp.js.map"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,IAAM,uBAAuB;;;;;;;;AAQ7B,IAAM,wBAAwB;;;;;;;AAO9B,IAAM,wBAAwB;;;;;AAM9B,IAAM,cAAc;;AAEpB,IAAM,yBAAyB;;;;;;;AAO/B,SAAS,oB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