@selvajs/selva 4.21.0-beta.22 → 4.21.0-beta.23
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/B58dPMPq.js +1 -0
- package/build/client/_app/immutable/chunks/B58dPMPq.js.br +1 -0
- package/build/client/_app/immutable/chunks/B58dPMPq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{4yJQa0sB.js → DtmN00GS.js} +3 -3
- package/build/client/_app/immutable/chunks/DtmN00GS.js.br +0 -0
- package/build/client/_app/immutable/chunks/{4yJQa0sB.js.gz → DtmN00GS.js.gz} +0 -0
- package/build/client/_app/immutable/entry/{app.S4XqZiwS.js → app.Dl3HM1mx.js} +2 -2
- package/build/client/_app/immutable/entry/app.Dl3HM1mx.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Dl3HM1mx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.js +1 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BZJQikE5.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 +219 -187
- package/build/server/chunks/AppHeader.js +1 -1
- package/build/server/chunks/Callout.js +1 -1
- package/build/server/chunks/ConfirmDialog.js +1 -1
- package/build/server/chunks/DataTable.js +1 -1
- package/build/server/chunks/DefinitionCard.js +2 -2
- package/build/server/chunks/EmptyState.js +1 -1
- package/build/server/chunks/ErrorScreen.js +1 -1
- package/build/server/chunks/FilterableDropdown.js +1 -1
- package/build/server/chunks/PageContent.js +1 -1
- package/build/server/chunks/SectionHeader.js +1 -1
- package/build/server/chunks/SettingsMenu.js +1 -1
- package/build/server/chunks/SideNav.js +1 -1
- package/build/server/chunks/StatCard.js +1 -1
- package/build/server/chunks/UserAvatar.js +1 -1
- package/build/server/chunks/UserRowIdentity.js +1 -1
- package/build/server/chunks/activity.js +1 -1
- package/build/server/chunks/alert-dialog.js +1 -1
- package/build/server/chunks/arrow-left.js +1 -1
- package/build/server/chunks/arrow-right.js +1 -1
- package/build/server/chunks/{keepalive-DbmLH4v1.js → async-solve-Doflh4BJ.js} +5 -3
- package/build/server/chunks/async-solve-Doflh4BJ.js.map +1 -0
- package/build/server/chunks/asyncSolves.server.js +22 -0
- package/build/server/chunks/asyncSolves.server.js.map +1 -0
- package/build/server/chunks/auth-bootstrap.server.js +1 -1
- package/build/server/chunks/badge.js +1 -1
- package/build/server/chunks/boot.server.js +1 -1
- package/build/server/chunks/building-complex.js +1 -1
- package/build/server/chunks/button.js +1 -1
- package/build/server/chunks/card-content.js +1 -1
- package/build/server/chunks/card-description.js +1 -1
- package/build/server/chunks/card-header.js +1 -1
- package/build/server/chunks/card-title.js +1 -1
- package/build/server/chunks/chevron-down.js +1 -1
- package/build/server/chunks/chevron-left.js +1 -1
- package/build/server/chunks/chevron-right.js +1 -1
- package/build/server/chunks/chevron-up.js +1 -1
- package/build/server/chunks/circle.js +1 -1
- package/build/server/chunks/computeRateLimit.server.js +1 -1
- package/build/server/chunks/copy.js +1 -1
- package/build/server/chunks/create-id.js +1 -1
- package/build/server/chunks/delete-with-blobs.js +1 -1
- package/build/server/chunks/dialog-description.js +1 -1
- package/build/server/chunks/dialog.js +1 -1
- package/build/server/chunks/dom-typeahead.svelte.js +1 -1
- package/build/server/chunks/engine.server.js +2 -1
- package/build/server/chunks/engine.server.js.map +1 -1
- package/build/server/chunks/events.js +1 -1
- package/build/server/chunks/external-link.js +1 -1
- package/build/server/chunks/folder-kanban.js +1 -1
- package/build/server/chunks/folder-open.js +1 -1
- package/build/server/chunks/folders.js +1 -1
- package/build/server/chunks/footerContext.svelte.js +1 -1
- package/build/server/chunks/gauge.js +1 -1
- package/build/server/chunks/handlers.js +1 -1
- package/build/server/chunks/index-server2.js +1 -1
- package/build/server/chunks/input-group.js +1 -1
- package/build/server/chunks/input.js +1 -1
- package/build/server/chunks/instance.js +4 -4
- package/build/server/chunks/instanceAdmins.server.js +1 -1
- package/build/server/chunks/internal.js +1 -1
- package/build/server/chunks/key-round.js +1 -1
- package/build/server/chunks/label.js +1 -1
- package/build/server/chunks/link-2.js +1 -1
- package/build/server/chunks/localeContext.svelte.js +1 -1
- package/build/server/chunks/mail.js +1 -1
- package/build/server/chunks/minus.js +1 -1
- package/build/server/chunks/package.js +1 -1
- package/build/server/chunks/package.js.map +1 -1
- package/build/server/chunks/permissions.server.js +1 -1
- package/build/server/chunks/plus.js +1 -1
- package/build/server/chunks/popper-layer-force-mount.js +1 -1
- package/build/server/chunks/providers.server.js +2 -28133
- package/build/server/chunks/providers.server.js.map +1 -1
- package/build/server/chunks/refresh-cw.js +1 -1
- package/build/server/chunks/registry.js +22 -0
- package/build/server/chunks/registry.js.map +1 -1
- package/build/server/chunks/rotate-ccw.js +1 -1
- package/build/server/chunks/roving-focus-group.js +1 -1
- package/build/server/chunks/scroll-lock.js +1 -1
- package/build/server/chunks/scroll-text.js +1 -1
- package/build/server/chunks/search.js +1 -1
- package/build/server/chunks/search2.js +1 -1
- package/build/server/chunks/select.js +1 -1
- package/build/server/chunks/separator.js +1 -1
- package/build/server/chunks/server-config-write.js +1 -1
- package/build/server/chunks/server.js +28298 -5
- package/build/server/chunks/server.js.map +1 -1
- package/build/server/chunks/server2.js +5 -107
- package/build/server/chunks/server2.js.map +1 -1
- package/build/server/chunks/server3.js +101 -3911
- package/build/server/chunks/server3.js.map +1 -1
- package/build/server/chunks/server4.js +3916 -41
- package/build/server/chunks/server4.js.map +1 -1
- package/build/server/chunks/server5.js +45 -0
- package/build/server/chunks/server5.js.map +1 -0
- package/build/server/chunks/settings.js +1 -1
- package/build/server/chunks/severity.js +1 -1
- package/build/server/chunks/shield-check.js +1 -1
- package/build/server/chunks/shield.js +1 -1
- package/build/server/chunks/signInMaxAge.server.js +1 -1
- package/build/server/chunks/solve.server.js +4 -3
- package/build/server/chunks/solve.server.js.map +1 -1
- package/build/server/chunks/star.js +1 -1
- package/build/server/chunks/state.js +1 -1
- package/build/server/chunks/sveltekit.js +1 -1
- package/build/server/chunks/tabs-trigger.js +1 -1
- package/build/server/chunks/textarea.js +1 -1
- package/build/server/chunks/toast-state.svelte.js +1 -1
- package/build/server/chunks/toggle-group-item.js +1 -1
- package/build/server/chunks/trash.js +1 -1
- package/build/server/chunks/user-plus.js +1 -1
- package/build/server/chunks/users.js +1 -1
- package/build/server/chunks/utils.js +1 -1
- package/build/server/chunks/x.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-authorization-server/_server.ts.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/_server.ts.js +1 -1
- package/build/server/entries/endpoints/.well-known/oauth-protected-resource/mcp/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/compute/actions/_server.ts.js +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/system/health/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/admin/system/update/_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/files/_...path_/_server.ts.js +1 -1
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js +8 -4
- package/build/server/entries/endpoints/api/v1/compute/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js +12 -3
- package/build/server/entries/endpoints/api/v1/definitions/_guid_/solve/_server.ts.js.map +1 -1
- package/build/server/entries/endpoints/api/v1/solves/_solveId_/_server.ts.js +32 -0
- package/build/server/entries/endpoints/api/v1/solves/_solveId_/_server.ts.js.map +1 -0
- package/build/server/entries/endpoints/auth/email/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/callback/_server.ts.js +1 -1
- package/build/server/entries/endpoints/auth/supabase/start/_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 +2 -2
- 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/hooks.server.js +2 -1
- package/build/server/entries/hooks.server.js.map +1 -1
- package/build/server/entries/pages/_error.svelte.js +1 -1
- package/build/server/entries/pages/_layout.svelte.js +1 -1
- package/build/server/entries/pages/_page.svelte.js +1 -1
- package/build/server/entries/pages/accept-invite/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/_error.svelte.js +1 -1
- package/build/server/entries/pages/admin/_layout.svelte.js +2 -2
- package/build/server/entries/pages/admin/_page.svelte.js +2 -2
- package/build/server/entries/pages/admin/audit/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/compute/_page.svelte.js +2 -2
- package/build/server/entries/pages/admin/organizations/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/projects/_id_/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/system/_page.server.ts.js +1 -1
- package/build/server/entries/pages/admin/system/_page.svelte.js +1 -1
- package/build/server/entries/pages/admin/users/_page.svelte.js +1 -1
- package/build/server/entries/pages/auth/email/sent/_page.svelte.js +1 -1
- package/build/server/entries/pages/auth/email/start/_page.svelte.js +1 -1
- package/build/server/entries/pages/docs/api/_page.svelte.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.server.ts.js +1 -1
- package/build/server/entries/pages/library/_guid_/_page.svelte.js +68 -6
- package/build/server/entries/pages/library/_guid_/_page.svelte.js.map +1 -1
- package/build/server/entries/pages/library/_layout.svelte.js +1 -1
- package/build/server/entries/pages/library/_page.svelte.js +1 -1
- package/build/server/entries/pages/login/_page.svelte.js +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.server.ts.js +1 -1
- package/build/server/entries/pages/oauth/authorize/_page.svelte.js +1 -1
- package/build/server/entries/pages/projects/_layout.svelte.js +1 -1
- package/build/server/entries/pages/projects/_page.server.ts.js +1 -1
- package/build/server/entries/pages/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/setup/_page.server.ts.js +1 -1
- package/build/server/entries/pages/setup/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/_layout.svelte.js +2 -2
- package/build/server/entries/pages/team/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/activity/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/compute/_page.svelte.js +2 -2
- package/build/server/entries/pages/team/members/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/projects/_page.server.ts.js +1 -1
- package/build/server/entries/pages/team/projects/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/reclaim/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/settings/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/shares/_page.svelte.js +1 -1
- package/build/server/entries/pages/team/tokens/_page.svelte.js +1 -1
- package/build/server/index.js +1 -1
- package/build/server/manifest-full.js +8 -1
- package/build/server/manifest.js +8 -1
- package/build/server/nodes/21.js +1 -1
- package/build/server/remote-entry.js +1 -1
- package/build/server/server.js +8 -1
- package/package.json +6 -6
- package/templates/.env.example +2 -1
- package/build/client/_app/immutable/chunks/4yJQa0sB.js.br +0 -0
- package/build/client/_app/immutable/chunks/D6XUYEYz.js +0 -1
- package/build/client/_app/immutable/chunks/D6XUYEYz.js.br +0 -1
- package/build/client/_app/immutable/chunks/D6XUYEYz.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.S4XqZiwS.js.br +0 -0
- package/build/client/_app/immutable/entry/app.S4XqZiwS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.CYY9kOE5.js +0 -1
- package/build/client/_app/immutable/nodes/21.CYY9kOE5.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.CYY9kOE5.js.gz +0 -0
- package/build/server/chunks/keepalive-DbmLH4v1.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, d as spread_props, r as attributes, s as ensure_array_like } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, d as spread_props, r as attributes, s as ensure_array_like } from "./server4.js";
|
|
2
2
|
import { a as toggleMode, o as derivedMode } from "./footerContext.svelte.js";
|
|
3
3
|
import { t as page } from "./state.js";
|
|
4
4
|
import { n as Icon } from "./utils.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, kt as clsx, r as attributes, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, kt as clsx, r as attributes, t as attr_class } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { n as SEVERITY_TEXT, t as SEVERITY_ICON } from "./severity.js";
|
|
4
4
|
import { tv } from "tailwind-variants";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, i as bind_props } from "./
|
|
1
|
+
import { Lt as escape_html, i as bind_props } from "./server4.js";
|
|
2
2
|
import { a as Alert_dialog_footer, c as Alert_dialog_title, i as Alert_dialog_header, n as Alert_dialog_description, o as Alert_dialog_cancel, r as Alert_dialog_content, s as Alert_dialog_action, t as Root } from "./alert-dialog.js";
|
|
3
3
|
// ../ui/src/lib/components/ConfirmDialog.svelte
|
|
4
4
|
function ConfirmDialog($$renderer, $$props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, f as stringify, kt as clsx, n as attr_style, s as ensure_array_like, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, f as stringify, kt as clsx, n as attr_style, s as ensure_array_like, t as attr_class } from "./server4.js";
|
|
2
2
|
// ../ui/src/lib/components/primitives/DataTable.svelte
|
|
3
3
|
function DataTable($$renderer, $$props) {
|
|
4
4
|
$$renderer.component(($$renderer) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, f as stringify, n as attr_style, s as ensure_array_like, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, f as stringify, n as attr_style, s as ensure_array_like, t as attr_class } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
import { t as Arrow_right } from "./arrow-right.js";
|
|
4
|
-
import { t as Server } from "./
|
|
4
|
+
import { t as Server } from "./server5.js";
|
|
5
5
|
import { t as Star } from "./star.js";
|
|
6
6
|
import { n as Toggle_group, t as Toggle_group_item } from "./toggle-group-item.js";
|
|
7
7
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/grid-2x2.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, t as attr_class } from "./server4.js";
|
|
2
2
|
// ../ui/src/lib/components/layout/EmptyState.svelte
|
|
3
3
|
function EmptyState($$renderer, $$props) {
|
|
4
4
|
let { icon: Icon, title, description, size = "md", class: className = "", body, actions } = $$props;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { t as Button } from "./button.js";
|
|
4
4
|
import { t as getLocaleContext } from "./localeContext.svelte.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, ot as snapshot, r as attributes, s as ensure_array_like, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, ot as snapshot, r as attributes, s as ensure_array_like, t as attr_class } from "./server4.js";
|
|
2
2
|
import { f as mergeProps, n as boolToEmptyStrOrUndef, o as createBitsAttrs, r as boolToStr, t as createId, u as attachRef, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { t as cn } from "./utils.js";
|
|
4
4
|
import { n as buttonVariants } from "./button.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, t as attr_class } from "./server4.js";
|
|
2
2
|
// ../ui/src/lib/components/layout/SectionHeader.svelte
|
|
3
3
|
function SectionHeader($$renderer, $$props) {
|
|
4
4
|
let { eyebrow, title, description, actions, class: className = "" } = $$props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ALL_ORG_PERMISSIONS } from "./schemas2.js";
|
|
2
2
|
import { n as OPERATOR_PLATFORM_PERMISSIONS } from "./types3.js";
|
|
3
|
-
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, n as attr_style, r as attributes, s as ensure_array_like, t as attr_class } from "./
|
|
3
|
+
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, n as attr_style, r as attributes, s as ensure_array_like, t as attr_class } from "./server4.js";
|
|
4
4
|
import { a as toggleMode, r as useFooter } from "./footerContext.svelte.js";
|
|
5
5
|
import { r as on } from "./events.js";
|
|
6
6
|
import "./index-server.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, r as attributes, s as ensure_array_like, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, Ot as attr, a as derived, d as spread_props, r as attributes, s as ensure_array_like, t as attr_class } from "./server4.js";
|
|
2
2
|
import { t as page } from "./state.js";
|
|
3
3
|
import { n as Icon } from "./utils.js";
|
|
4
4
|
import { f as Dropdown_menu_item, l as Dropdown_menu, p as Dropdown_menu_content, u as Dropdown_menu_trigger } from "./SettingsMenu.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, Ot as attr } from "./
|
|
1
|
+
import { Lt as escape_html, Ot as attr } from "./server4.js";
|
|
2
2
|
import { t as Arrow_right } from "./arrow-right.js";
|
|
3
3
|
import { n as Card, t as Card_content } from "./card-content.js";
|
|
4
4
|
// src/lib/components/StatCard.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, t as attr_class } from "./server4.js";
|
|
2
2
|
// src/lib/components/UserAvatar.svelte
|
|
3
3
|
function UserAvatar($$renderer, $$props) {
|
|
4
4
|
$$renderer.component(($$renderer) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, i as bind_props, t as attr_class } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, i as bind_props, t as attr_class } from "./server4.js";
|
|
2
2
|
import { t as Button } from "./button.js";
|
|
3
3
|
import { t as Chevron_left } from "./chevron-left.js";
|
|
4
4
|
import { t as Chevron_right } from "./chevron-right.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/activity.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./
|
|
1
|
+
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { f as mergeProps, t as createId, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { t as cn } from "./utils.js";
|
|
4
4
|
import { n as buttonVariants } from "./button.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/arrow-left.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/arrow-right.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getInputItems } from "./traversal.js";
|
|
2
|
-
// ../solve/dist/
|
|
2
|
+
// ../solve/dist/async-solve-Doflh4BJ.js
|
|
3
3
|
/**
|
|
4
4
|
* Inputs the schema marks `source.kind === 'server'`. Only the host fills them, through
|
|
5
5
|
* `SolveEngine.solve`'s `boundValues`; without a value there they solve on their schema default.
|
|
@@ -20,6 +20,8 @@ function raceAbort(promise, signal) {
|
|
|
20
20
|
var KEEPALIVE_PREFERENCE = "selva-keepalive";
|
|
21
21
|
/** Under the 30 s many load balancers allow an idle upstream. */
|
|
22
22
|
var KEEPALIVE_INTERVAL_MS = 15e3;
|
|
23
|
-
|
|
23
|
+
/** RFC 7240's own preference, so a generic proxy or client already knows what it means. */
|
|
24
|
+
var ASYNC_PREFERENCE = "respond-async";
|
|
25
|
+
export { serverSourcedInputIds as a, raceAbort as i, KEEPALIVE_INTERVAL_MS as n, KEEPALIVE_PREFERENCE as r, ASYNC_PREFERENCE as t };
|
|
24
26
|
|
|
25
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=async-solve-Doflh4BJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-solve-Doflh4BJ.js","names":[],"sources":["../../../../solve/dist/async-solve-Doflh4BJ.js"],"sourcesContent":["import { getInputItems } from \"@selvajs/schemas\";\n// src/shared/server-sourced.ts\n/**\n* Inputs the schema marks `source.kind === 'server'`. Only the host fills them, through\n* `SolveEngine.solve`'s `boundValues`; without a value there they solve on their schema default.\n* The client sends no value for them, and the server refuses one.\n*/\nfunction serverSourcedInputIds(schema) {\n\treturn new Set(getInputItems(schema).filter((item) => item.source?.kind === \"server\").map((item) => item.paramId));\n}\n// src/shared/abort.ts\n/** `promise`'s outcome, or a rejection with `signal`'s reason if that fires first. */\nfunction raceAbort(promise, signal) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst onAbort = () => reject(signal.reason);\n\t\tif (signal.aborted) onAbort();\n\t\tsignal.addEventListener(\"abort\", onAbort, { once: true });\n\t\tpromise.then(resolve, reject).finally(() => signal.removeEventListener(\"abort\", onAbort));\n\t});\n}\n// src/shared/keepalive.ts\nconst KEEPALIVE_PREFERENCE = \"selva-keepalive\";\n/** Under the 30 s many load balancers allow an idle upstream. */\nconst KEEPALIVE_INTERVAL_MS = 15e3;\n// src/shared/async-solve.ts\n/** RFC 7240's own preference, so a generic proxy or client already knows what it means. */\nconst ASYNC_PREFERENCE = \"respond-async\";\n/** Seconds one poll may wait. Under the 30 s many load balancers allow an idle upstream. */\nconst ASYNC_POLL_WAIT_S = 25;\nexport { raceAbort as a, KEEPALIVE_PREFERENCE as i, ASYNC_PREFERENCE as n, serverSourcedInputIds as o, KEEPALIVE_INTERVAL_MS as r, ASYNC_POLL_WAIT_S as t };\n\n//# sourceMappingURL=async-solve-Doflh4BJ.js.map"],"mappings":";;;;;;;AAOA,SAAS,sBAAsB,QAAQ;CACtC,OAAO,IAAI,IAAI,cAAc,MAAM,CAAC,CAAC,QAAQ,SAAS,KAAK,QAAQ,SAAS,QAAQ,CAAC,CAAC,KAAK,SAAS,KAAK,OAAO,CAAC;AAClH;;AAGA,SAAS,UAAU,SAAS,QAAQ;CACnC,OAAO,IAAI,SAAS,SAAS,WAAW;EACvC,MAAM,gBAAgB,OAAO,OAAO,MAAM;EAC1C,IAAI,OAAO,SAAS,QAAQ;EAC5B,OAAO,iBAAiB,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;EACxD,QAAQ,KAAK,SAAS,MAAM,CAAC,CAAC,cAAc,OAAO,oBAAoB,SAAS,OAAO,CAAC;CACzF,CAAC;AACF;AAEA,IAAM,uBAAuB;;AAE7B,IAAM,wBAAwB;;AAG9B,IAAM,mBAAmB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { a as acceptedResponse, t as AsyncSolveStore } from "./server.js";
|
|
2
|
+
// src/lib/server/compute/asyncSolves.server.ts
|
|
3
|
+
var store = null;
|
|
4
|
+
function getAsyncSolves() {
|
|
5
|
+
store ??= new AsyncSolveStore();
|
|
6
|
+
return store;
|
|
7
|
+
}
|
|
8
|
+
/** Who may read a detached solve. A caller with no user (a share link) holds it by its id alone. */
|
|
9
|
+
function asyncSolveOwner(locals) {
|
|
10
|
+
return locals.user ? `user:${locals.user.id}` : null;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Runs `work` detached and answers 202 at once. `work` must resolve to every outcome, errors
|
|
14
|
+
* included, as a response: the request that started it is gone by then.
|
|
15
|
+
*/
|
|
16
|
+
function startAsyncSolve(locals, work) {
|
|
17
|
+
const solveId = getAsyncSolves().start(asyncSolveOwner(locals), work);
|
|
18
|
+
return acceptedResponse(solveId, `/api/v1/solves/${solveId}`);
|
|
19
|
+
}
|
|
20
|
+
export { getAsyncSolves as n, startAsyncSolve as r, asyncSolveOwner as t };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=asyncSolves.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncSolves.server.js","names":[],"sources":["../../../src/lib/server/compute/asyncSolves.server.ts"],"sourcesContent":["import { AsyncSolveStore, acceptedResponse } from '@selvajs/solve/server';\n\n// One store per server process. Module state, like the solve-event bus.\nlet store: AsyncSolveStore | null = null;\n\nexport function getAsyncSolves(): AsyncSolveStore {\n\tstore ??= new AsyncSolveStore();\n\treturn store;\n}\n\n/** Who may read a detached solve. A caller with no user (a share link) holds it by its id alone. */\nexport function asyncSolveOwner(locals: App.Locals): string | null {\n\treturn locals.user ? `user:${locals.user.id}` : null;\n}\n\n/**\n * Runs `work` detached and answers 202 at once. `work` must resolve to every outcome, errors\n * included, as a response: the request that started it is gone by then.\n */\nexport function startAsyncSolve(\n\tlocals: App.Locals,\n\twork: (signal: AbortSignal) => Promise<Response>\n): Response {\n\tconst solveId = getAsyncSolves().start(asyncSolveOwner(locals), work);\n\treturn acceptedResponse(solveId, `/api/v1/solves/${solveId}`);\n}\n"],"mappings":";;AAGA,IAAI,QAAgC;AAEpC,SAAgB,iBAAkC;CACjD,UAAU,IAAI,gBAAgB;CAC9B,OAAO;AACR;;AAGA,SAAgB,gBAAgB,QAAmC;CAClE,OAAO,OAAO,OAAO,QAAQ,OAAO,KAAK,OAAO;AACjD;;;;;AAMA,SAAgB,gBACf,QACA,MACW;CACX,MAAM,UAAU,eAAe,CAAC,CAAC,MAAM,gBAAgB,MAAM,GAAG,IAAI;CACpE,OAAO,iBAAiB,SAAS,kBAAkB,SAAS;AAC7D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as getTenancy, f as getLogger, g as getPermissionStore, h as getOrganizationProvider, o as getDataProvider, r as getAuthProvider, v as getProjectProvider } from "./providers.server.js";
|
|
2
1
|
import { n as env } from "./previous-key.js";
|
|
2
|
+
import { S as getTenancy, f as getLogger, g as getPermissionStore, h as getOrganizationProvider, o as getDataProvider, r as getAuthProvider, v as getProjectProvider } from "./providers.server.js";
|
|
3
3
|
import { t as SYSTEM_CONTEXT } from "./context.js";
|
|
4
4
|
import { d as orgSlugFromName } from "./schemas2.js";
|
|
5
5
|
import { t as ALL_PLATFORM_PERMISSIONS } from "./types3.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, o as element, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, o as element, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { tv } from "tailwind-variants";
|
|
4
4
|
// ../ui/src/lib/components/primitives/badge/badge.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as deploymentSnapshot, D as computeDebugMode, E as RETIRED_KEYS, O as deploymentManifest, Y as diffSnapshots, f as getLogger, j as keyRotationStatus, k as deploymentReport } from "./providers.server.js";
|
|
2
1
|
import { n as env } from "./previous-key.js";
|
|
3
2
|
import { nt as resolveConfig } from "./access.js";
|
|
3
|
+
import { A as deploymentSnapshot, D as computeDebugMode, E as RETIRED_KEYS, O as deploymentManifest, V as diffSnapshots, f as getLogger, j as keyRotationStatus, k as deploymentReport } from "./providers.server.js";
|
|
4
4
|
import { t as findDeploymentDir } from "./selfUpdate.server.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { chmodSync, existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/building-complex.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { tv } from "tailwind-variants";
|
|
4
4
|
// ../ui/src/lib/components/primitives/button/button.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
import { tv } from "tailwind-variants";
|
|
4
4
|
// ../ui/src/lib/components/primitives/card/card.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
// ../ui/src/lib/components/primitives/card/card-description.svelte
|
|
4
4
|
function Card_description($$renderer, $$props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
// ../ui/src/lib/components/primitives/card/card-header.svelte
|
|
4
4
|
function Card_header($$renderer, $$props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
// ../ui/src/lib/components/primitives/card/card-title.svelte
|
|
4
4
|
function Card_title($$renderer, $$props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/chevron-down.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/chevron-left.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/chevron-right.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/chevron-up.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/circle.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as lazyLogger } from "./providers.server.js";
|
|
2
1
|
import { n as env } from "./previous-key.js";
|
|
2
|
+
import { w as lazyLogger } from "./providers.server.js";
|
|
3
3
|
import { O as createApiRateLimiter, j as resolveApiRateLimitConfig } from "./api.js";
|
|
4
4
|
import { t as createComputeRateLimiter } from "./rate-limit.js";
|
|
5
5
|
import "./compute.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/copy.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as run, Rt as ATTACHMENT_KEY, Tt as EFFECT_TRANSPARENT, a as derived, wt as EFFECT_PRESERVED } from "./
|
|
1
|
+
import { Ft as run, Rt as ATTACHMENT_KEY, Tt as EFFECT_TRANSPARENT, a as derived, wt as EFFECT_PRESERVED } from "./server4.js";
|
|
2
2
|
import "./events.js";
|
|
3
3
|
import "./index-server2.js";
|
|
4
4
|
import { clsx } from "clsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as definitionPaths, I as orgPaths } from "./providers.server.js";
|
|
2
2
|
import { t as SYSTEM_CONTEXT } from "./context.js";
|
|
3
3
|
import { _ as listAll, v as walkPages } from "./logging.js";
|
|
4
4
|
// ../server/src/projects/delete-with-blobs.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived, i as bind_props, l as props_id, r as attributes } from "./
|
|
1
|
+
import { a as derived, i as bind_props, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { c as getDataOpenClosed, f as mergeProps, l as getDataTransitionAttrs, n as boolToEmptyStrOrUndef, o as createBitsAttrs, r as boolToStr, t as createId, u as attachRef, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { G as watch, m as PresenceManager, q as Context } from "./scroll-lock.js";
|
|
4
4
|
// ../../node_modules/.pnpm/bits-ui@2.20.2_@internationalized+date@3.12.4_@sveltejs+kit@3.1.1_@opentelemetry+api@1._ee0cc2dca752cac163e62e76ab57f1b7/node_modules/bits-ui/dist/bits/dialog/dialog.svelte.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Lt as escape_html, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./
|
|
1
|
+
import { Lt as escape_html, a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { f as mergeProps, t as createId, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { t as cn } from "./utils.js";
|
|
4
4
|
import { t as getLocaleContext } from "./localeContext.svelte.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived } from "./
|
|
1
|
+
import { a as derived } from "./server4.js";
|
|
2
2
|
import { y as boxWith } from "./create-id.js";
|
|
3
3
|
import { p as noop } from "./scroll-lock.js";
|
|
4
4
|
// ../../node_modules/.pnpm/bits-ui@2.20.2_@internationalized+date@3.12.4_@sveltejs+kit@3.1.1_@opentelemetry+api@1._ee0cc2dca752cac163e62e76ab57f1b7/node_modules/bits-ui/dist/internal/arrays.js
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as SolveEngine, n as DEFAULT_SOLVE_DEADLINE_MS } from "./server.js";
|
|
2
2
|
import { n as env } from "./previous-key.js";
|
|
3
|
+
import { D as computeDebugMode, f as getLogger, w as lazyLogger } from "./providers.server.js";
|
|
3
4
|
import { r as resolveComputeLimits } from "./limits.js";
|
|
4
5
|
import "./compute.js";
|
|
5
6
|
// src/lib/server/computeLimits.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.server.js","names":[],"sources":["../../../src/lib/server/computeLimits.ts","../../../src/lib/server/compute/engine.server.ts"],"sourcesContent":["/**\n * Thin adapter over `@selvajs/server`'s `resolveComputeLimits`: reads the server\n * env once and re-exports the resolved values as named constants.\n *\n * Client-side counterparts (in-flight compute throttle, slider debounce) are\n * bundled into the client and can't read env — see `async-throttle.ts` in\n * `@selvajs/solve/client` and the input components.\n */\n\nimport { env } from '#lib/server/env.js';\nimport { resolveComputeLimits } from '@selvajs/server/compute';\n// Limits resolve at module scope, before the pino swap — a captured logger\n// would pin the boot placeholder, so this needs the forwarding one.\nimport { lazyLogger } from '#lib/server/providers.server.js';\n\n// The logger surfaces malformed env values (a non-numeric COMPUTE_RATE_LIMIT_MAX\n// falls back to its default).\nconst limits = resolveComputeLimits(env, lazyLogger);\n\n/** The whole resolved object — passed wholesale to `SolveEngine` (`compute/engine.server.ts`). */\nexport const computeLimits = limits;\n\n// Per-key compute rate limit (see computeRateLimit.server.ts).\nexport const RATE_LIMIT_WINDOW_MS = limits.rateLimitWindowMs;\nexport const RATE_LIMIT_MAX_REQUESTS = limits.rateLimitMaxRequests;\n\n// Upload caps. Only the .gh cap is an env var. The Rhino.Compute server caps at\n// RHINO_COMPUTE_MAX_REQUEST_SIZE (default 50 MB), so raising\n// MAX_DEFINITION_FILE_SIZE_BYTES past that only defers the 413 to compute:\n// raise it there too.\nexport const MAX_DEFINITION_FILE_SIZE = limits.maxDefinitionFileSize;\nexport const MAX_IMAGE_FILE_SIZE = limits.maxImageFileSize;\n\n// /api/compute JSON request/response body caps. In a production (adapter-node)\n// build these must stay <= the global BODY_SIZE_LIMIT or the global backstop\n// rejects first; under vite dev it isn't enforced.\nexport const COMPUTE_REQUEST_MAX_BYTES = limits.computeRequestMaxBytes;\nexport const COMPUTE_RESPONSE_MAX_BYTES = limits.computeResponseMaxBytes;\n\n// Remote-definition fetch caps (SSRF + slow-loris protection sits in safe-url).\nexport const REMOTE_DEFINITION_MAX_BYTES = limits.remoteDefinitionMaxBytes;\nexport const REMOTE_DEFINITION_FETCH_TIMEOUT_MS = limits.remoteDefinitionFetchTimeoutMs;\n\n// TTL for the in-process cache of REMOTE-fetched .gh bytes. Only the remote path\n// is TTL'd — the definition cache below is keyed on an immutable version id.\nexport const REMOTE_DEFINITION_CACHE_TTL_MS = limits.remoteDefinitionCacheTtlMs;\n\n// Server-side solve-result cache (`cachesolve`).\nexport const COMPUTE_SERVER_CACHESOLVE = limits.computeServerCachesolve;\n\n// Backpressure: queue-depth cap and queue-wait deadline. Both 0 = unbounded/off.\nexport const COMPUTE_MAX_QUEUE_DEPTH = limits.computeMaxQueueDepth;\nexport const COMPUTE_QUEUE_WAIT_MS = limits.computeQueueWaitMs;\n\n// Definition cache — .gh bytes keyed on immutable version id. 0 disables.\nexport const COMPUTE_DEFINITION_CACHE_BYTES = limits.computeDefinitionCacheBytes;\n\n// Solve cache — results, PER warm client (so the worst case is ×16). 0 disables.\nexport const COMPUTE_SOLVE_CACHE_BYTES = limits.computeSolveCacheBytes;\n","/**\n * App-wide `SolveEngine` instance (`@selvajs/solve/server`) — backs the warm\n * client cache, the definition-byte cache, and solve coalescing for the whole app.\n */\n\nimport { DEFAULT_SOLVE_DEADLINE_MS, SolveEngine, type CachedClient } from '@selvajs/solve/server';\nimport { env } from '#lib/server/env.js';\nimport { getLogger } from '#lib/server/providers.server.js';\nimport { computeLimits, COMPUTE_REQUEST_MAX_BYTES } from '#lib/server/computeLimits.js';\nimport { computeDebugMode } from '#lib/server/config/settings.js';\nimport type { ComputeServerConfig } from '@selvajs/platform';\n\n// `verbose` adds lib-level request logs and Compute's raw error bodies, and implies `on`.\nconst COMPUTE_DEBUG_MODE = computeDebugMode(env);\n\nexport const COMPUTE_DEBUG = COMPUTE_DEBUG_MODE !== 'off';\nexport const COMPUTE_DEBUG_VERBOSE = COMPUTE_DEBUG_MODE === 'verbose';\n\nexport const engine = new SolveEngine({\n\tlimits: computeLimits,\n\tdebug: COMPUTE_DEBUG ? (COMPUTE_DEBUG_VERBOSE ? 'verbose' : true) : false,\n\tonDebugLog: (message) => getLogger().debug(message, { component: 'Compute/client-cache' }),\n\tonSolveCoalesced: (key) => {\n\t\tif (COMPUTE_DEBUG) {\n\t\t\t// key = version:server:tree-json — truncate the tree tail for the log.\n\t\t\tgetLogger().debug('Coalesced onto in-flight solve', {\n\t\t\t\tcomponent: 'Compute/single-flight',\n\t\t\t\tkey: `${key.slice(0, 96)}…`\n\t\t\t});\n\t\t}\n\t}\n});\n\n/** Get (or create) the warm client + scheduler for a resolved compute server. */\nexport function getClient(serverConfig: ComputeServerConfig): Promise<CachedClient> {\n\treturn engine.getClient({\n\t\tid: serverConfig.id,\n\t\tserverUrl: serverConfig.serverUrl,\n\t\tapiKey: serverConfig.apiKey\n\t});\n}\n\n/**\n * The solve deadline `server` reports, for the browser's AbortController. A cold client connects\n * first, and a page must not wait on a slow Compute for it: past `waitMs` it gets the default.\n * The connect carries on and warms the client for the first solve.\n */\nexport async function solveDeadlineFor(\n\tserverConfig: ComputeServerConfig,\n\twaitMs = 2_000\n): Promise<number> {\n\tconst fallback = new Promise<number>((resolve) => {\n\t\tsetTimeout(() => resolve(DEFAULT_SOLVE_DEADLINE_MS), waitMs).unref?.();\n\t});\n\tconst reported = getClient(serverConfig).then(\n\t\t({ limits }) => limits.solveDeadlineMs,\n\t\t() => DEFAULT_SOLVE_DEADLINE_MS\n\t);\n\treturn Promise.race([reported, fallback]);\n}\n\n/**\n * The largest solve request Selva takes: the largest a warm compute server reports\n * (`RHINO_COMPUTE_MAX_REQUEST_SIZE`), so that one setting drives both. Until a server has been\n * reached, `COMPUTE_REQUEST_MAX_BYTES`. Each server still refuses what exceeds its own cap.\n */\nexport function computeRequestCap(): number {\n\treturn engine.largestReportedRequestBytes() ?? COMPUTE_REQUEST_MAX_BYTES;\n}\n\n/** Drop the warm client for a server whose config just changed (URL/key rotation or deletion). */\nexport function evictComputeClient(id: string): void {\n\tengine.evictServer(id);\n}\n\n/**\n * Drop cached solve results held by this Selva process (every warm client's\n * scheduler). Separate from the compute server's own `cache/purge`: that one\n * clears Rhino's `cachesolve`, this one clears the layer in front of it.\n */\nexport function clearSolveResultCache(): void {\n\tengine.clearSolveCaches();\n}\n\n/** Drop the `.gh` bytes this Selva process is holding. Costs a storage re-read, nothing more. */\nexport function clearDefinitionCache(): void {\n\tengine.clearDefinitionCache();\n}\n\n/** Solve-cache counters for the admin panel's hit rate. */\nexport function solveCacheStats() {\n\treturn engine.stats().client;\n}\n\n/** Definition-byte-cache counters (hits/misses/evictions/entries/bytes) for admin/debug surfaces. */\nexport function definitionByteCacheStats() {\n\treturn engine.stats().definitionBytes;\n}\n\n/** Materialize a version's bytes through the shared byte cache (render/IO path). */\nexport function loadDefinitionBytes(\n\tversionId: string,\n\tload: () => Promise<Uint8Array>\n): Promise<Uint8Array> {\n\treturn engine.definitionRef(versionId, load).load();\n}\n\nexport type { CachedClient };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"engine.server.js","names":[],"sources":["../../../src/lib/server/computeLimits.ts","../../../src/lib/server/compute/engine.server.ts"],"sourcesContent":["/**\n * Thin adapter over `@selvajs/server`'s `resolveComputeLimits`: reads the server\n * env once and re-exports the resolved values as named constants.\n *\n * Client-side counterparts (in-flight compute throttle, slider debounce) are\n * bundled into the client and can't read env — see `async-throttle.ts` in\n * `@selvajs/solve/client` and the input components.\n */\n\nimport { env } from '#lib/server/env.js';\nimport { resolveComputeLimits } from '@selvajs/server/compute';\n// Limits resolve at module scope, before the pino swap — a captured logger\n// would pin the boot placeholder, so this needs the forwarding one.\nimport { lazyLogger } from '#lib/server/providers.server.js';\n\n// The logger surfaces malformed env values (a non-numeric COMPUTE_RATE_LIMIT_MAX\n// falls back to its default).\nconst limits = resolveComputeLimits(env, lazyLogger);\n\n/** The whole resolved object — passed wholesale to `SolveEngine` (`compute/engine.server.ts`). */\nexport const computeLimits = limits;\n\n// Per-key compute rate limit (see computeRateLimit.server.ts).\nexport const RATE_LIMIT_WINDOW_MS = limits.rateLimitWindowMs;\nexport const RATE_LIMIT_MAX_REQUESTS = limits.rateLimitMaxRequests;\n\n// Upload caps. Only the .gh cap is an env var. The Rhino.Compute server caps at\n// RHINO_COMPUTE_MAX_REQUEST_SIZE (default 50 MB), so raising\n// MAX_DEFINITION_FILE_SIZE_BYTES past that only defers the 413 to compute:\n// raise it there too.\nexport const MAX_DEFINITION_FILE_SIZE = limits.maxDefinitionFileSize;\nexport const MAX_IMAGE_FILE_SIZE = limits.maxImageFileSize;\n\n// /api/compute JSON request/response body caps. In a production (adapter-node)\n// build these must stay <= the global BODY_SIZE_LIMIT or the global backstop\n// rejects first; under vite dev it isn't enforced.\nexport const COMPUTE_REQUEST_MAX_BYTES = limits.computeRequestMaxBytes;\nexport const COMPUTE_RESPONSE_MAX_BYTES = limits.computeResponseMaxBytes;\n\n// Remote-definition fetch caps (SSRF + slow-loris protection sits in safe-url).\nexport const REMOTE_DEFINITION_MAX_BYTES = limits.remoteDefinitionMaxBytes;\nexport const REMOTE_DEFINITION_FETCH_TIMEOUT_MS = limits.remoteDefinitionFetchTimeoutMs;\n\n// TTL for the in-process cache of REMOTE-fetched .gh bytes. Only the remote path\n// is TTL'd — the definition cache below is keyed on an immutable version id.\nexport const REMOTE_DEFINITION_CACHE_TTL_MS = limits.remoteDefinitionCacheTtlMs;\n\n// Server-side solve-result cache (`cachesolve`).\nexport const COMPUTE_SERVER_CACHESOLVE = limits.computeServerCachesolve;\n\n// Backpressure: queue-depth cap and queue-wait deadline. Both 0 = unbounded/off.\nexport const COMPUTE_MAX_QUEUE_DEPTH = limits.computeMaxQueueDepth;\nexport const COMPUTE_QUEUE_WAIT_MS = limits.computeQueueWaitMs;\n\n// Definition cache — .gh bytes keyed on immutable version id. 0 disables.\nexport const COMPUTE_DEFINITION_CACHE_BYTES = limits.computeDefinitionCacheBytes;\n\n// Solve cache — results, PER warm client (so the worst case is ×16). 0 disables.\nexport const COMPUTE_SOLVE_CACHE_BYTES = limits.computeSolveCacheBytes;\n","/**\n * App-wide `SolveEngine` instance (`@selvajs/solve/server`) — backs the warm\n * client cache, the definition-byte cache, and solve coalescing for the whole app.\n */\n\nimport { DEFAULT_SOLVE_DEADLINE_MS, SolveEngine, type CachedClient } from '@selvajs/solve/server';\nimport { env } from '#lib/server/env.js';\nimport { getLogger } from '#lib/server/providers.server.js';\nimport { computeLimits, COMPUTE_REQUEST_MAX_BYTES } from '#lib/server/computeLimits.js';\nimport { computeDebugMode } from '#lib/server/config/settings.js';\nimport type { ComputeServerConfig } from '@selvajs/platform';\n\n// `verbose` adds lib-level request logs and Compute's raw error bodies, and implies `on`.\nconst COMPUTE_DEBUG_MODE = computeDebugMode(env);\n\nexport const COMPUTE_DEBUG = COMPUTE_DEBUG_MODE !== 'off';\nexport const COMPUTE_DEBUG_VERBOSE = COMPUTE_DEBUG_MODE === 'verbose';\n\nexport const engine = new SolveEngine({\n\tlimits: computeLimits,\n\tdebug: COMPUTE_DEBUG ? (COMPUTE_DEBUG_VERBOSE ? 'verbose' : true) : false,\n\tonDebugLog: (message) => getLogger().debug(message, { component: 'Compute/client-cache' }),\n\tonSolveCoalesced: (key) => {\n\t\tif (COMPUTE_DEBUG) {\n\t\t\t// key = version:server:tree-json — truncate the tree tail for the log.\n\t\t\tgetLogger().debug('Coalesced onto in-flight solve', {\n\t\t\t\tcomponent: 'Compute/single-flight',\n\t\t\t\tkey: `${key.slice(0, 96)}…`\n\t\t\t});\n\t\t}\n\t}\n});\n\n/** Get (or create) the warm client + scheduler for a resolved compute server. */\nexport function getClient(serverConfig: ComputeServerConfig): Promise<CachedClient> {\n\treturn engine.getClient({\n\t\tid: serverConfig.id,\n\t\tserverUrl: serverConfig.serverUrl,\n\t\tapiKey: serverConfig.apiKey\n\t});\n}\n\n/**\n * The solve deadline `server` reports, for the browser's AbortController. A cold client connects\n * first, and a page must not wait on a slow Compute for it: past `waitMs` it gets the default.\n * The connect carries on and warms the client for the first solve.\n */\nexport async function solveDeadlineFor(\n\tserverConfig: ComputeServerConfig,\n\twaitMs = 2_000\n): Promise<number> {\n\tconst fallback = new Promise<number>((resolve) => {\n\t\tsetTimeout(() => resolve(DEFAULT_SOLVE_DEADLINE_MS), waitMs).unref?.();\n\t});\n\tconst reported = getClient(serverConfig).then(\n\t\t({ limits }) => limits.solveDeadlineMs,\n\t\t() => DEFAULT_SOLVE_DEADLINE_MS\n\t);\n\treturn Promise.race([reported, fallback]);\n}\n\n/**\n * The largest solve request Selva takes: the largest a warm compute server reports\n * (`RHINO_COMPUTE_MAX_REQUEST_SIZE`), so that one setting drives both. Until a server has been\n * reached, `COMPUTE_REQUEST_MAX_BYTES`. Each server still refuses what exceeds its own cap.\n */\nexport function computeRequestCap(): number {\n\treturn engine.largestReportedRequestBytes() ?? COMPUTE_REQUEST_MAX_BYTES;\n}\n\n/** Drop the warm client for a server whose config just changed (URL/key rotation or deletion). */\nexport function evictComputeClient(id: string): void {\n\tengine.evictServer(id);\n}\n\n/**\n * Drop cached solve results held by this Selva process (every warm client's\n * scheduler). Separate from the compute server's own `cache/purge`: that one\n * clears Rhino's `cachesolve`, this one clears the layer in front of it.\n */\nexport function clearSolveResultCache(): void {\n\tengine.clearSolveCaches();\n}\n\n/** Drop the `.gh` bytes this Selva process is holding. Costs a storage re-read, nothing more. */\nexport function clearDefinitionCache(): void {\n\tengine.clearDefinitionCache();\n}\n\n/** Solve-cache counters for the admin panel's hit rate. */\nexport function solveCacheStats() {\n\treturn engine.stats().client;\n}\n\n/** Definition-byte-cache counters (hits/misses/evictions/entries/bytes) for admin/debug surfaces. */\nexport function definitionByteCacheStats() {\n\treturn engine.stats().definitionBytes;\n}\n\n/** Materialize a version's bytes through the shared byte cache (render/IO path). */\nexport function loadDefinitionBytes(\n\tversionId: string,\n\tload: () => Promise<Uint8Array>\n): Promise<Uint8Array> {\n\treturn engine.definitionRef(versionId, load).load();\n}\n\nexport type { CachedClient };\n"],"mappings":";;;;;;;;;;;;;;AAiBA,IAAM,SAAS,qBAAqB,KAAK,UAAU;;AAGnD,IAAa,gBAAgB;AAG7B,IAAa,uBAAuB,OAAO;AAC3C,IAAa,0BAA0B,OAAO;AAM9C,IAAa,2BAA2B,OAAO;AAC/C,IAAa,sBAAsB,OAAO;AAK1C,IAAa,4BAA4B,OAAO;AAChD,IAAa,6BAA6B,OAAO;AAGjD,IAAa,8BAA8B,OAAO;AAClD,IAAa,qCAAqC,OAAO;AAIzD,IAAa,iCAAiC,OAAO;AAGZ,OAAO;AAGT,OAAO;AACT,OAAO;AAG5C,IAAa,iCAAiC,OAAO;AAGrD,IAAa,4BAA4B,OAAO;;;;;;AC7ChD,IAAM,qBAAqB,iBAAiB,GAAG;AAE/C,IAAa,gBAAgB,uBAAuB;AACpD,IAAa,wBAAwB,uBAAuB;AAE5D,IAAa,SAAS,IAAI,YAAY;CACrC,QAAQ;CACR,OAAO,gBAAiB,wBAAwB,YAAY,OAAQ;CACpE,aAAa,YAAY,UAAU,CAAC,CAAC,MAAM,SAAS,EAAE,WAAW,uBAAuB,CAAC;CACzF,mBAAmB,QAAQ;EAC1B,IAAI,eAEH,UAAU,CAAC,CAAC,MAAM,kCAAkC;GACnD,WAAW;GACX,KAAK,GAAG,IAAI,MAAM,GAAG,EAAE,EAAE;EAC1B,CAAC;CAEH;AACD,CAAC;;AAGD,SAAgB,UAAU,cAA0D;CACnF,OAAO,OAAO,UAAU;EACvB,IAAI,aAAa;EACjB,WAAW,aAAa;EACxB,QAAQ,aAAa;CACtB,CAAC;AACF;;;;;;AAOA,eAAsB,iBACrB,cACA,SAAS,KACS;CAClB,MAAM,WAAW,IAAI,SAAiB,YAAY;EACjD,iBAAiB,QAAQ,yBAAyB,GAAG,MAAM,CAAC,CAAC,QAAQ;CACtE,CAAC;CACD,MAAM,WAAW,UAAU,YAAY,CAAC,CAAC,MACvC,EAAE,aAAa,OAAO,uBACjB,yBACP;CACA,OAAO,QAAQ,KAAK,CAAC,UAAU,QAAQ,CAAC;AACzC;;;;;;AAOA,SAAgB,oBAA4B;CAC3C,OAAO,OAAO,4BAA4B,KAAK;AAChD;;AAGA,SAAgB,mBAAmB,IAAkB;CACpD,OAAO,YAAY,EAAE;AACtB;;;;;;AAOA,SAAgB,wBAA8B;CAC7C,OAAO,iBAAiB;AACzB;;AAGA,SAAgB,uBAA6B;CAC5C,OAAO,qBAAqB;AAC7B;;AAGA,SAAgB,kBAAkB;CACjC,OAAO,OAAO,MAAM,CAAC,CAAC;AACvB;;AAGA,SAAgB,2BAA2B;CAC1C,OAAO,OAAO,MAAM,CAAC,CAAC;AACvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as queue_micro_task, S as active_reaction, T as set_active_reaction, Z as without_reactive_context, jt as define_property, w as set_active_effect, x as active_effect } from "./
|
|
1
|
+
import { $ as queue_micro_task, S as active_reaction, T as set_active_reaction, Z as without_reactive_context, jt as define_property, w as set_active_effect, x as active_effect } from "./server4.js";
|
|
2
2
|
// ../../node_modules/.pnpm/svelte@5.57.3_@typescript-eslint+types@8.72.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
3
3
|
/**
|
|
4
4
|
* Used on elements, as a map of event type -> event handler,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/external-link.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/folder-kanban.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/folder-open.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/folders.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as run, Ot as attr, _ as setContext, a as derived, c as head, g as hasContext, h as getContext, p as html } from "./
|
|
1
|
+
import { Ft as run, Ot as attr, _ as setContext, a as derived, c as head, g as hasContext, h as getContext, p as html } from "./server4.js";
|
|
2
2
|
import { r as on } from "./events.js";
|
|
3
3
|
import { a as createSubscriber, n as SvelteMap, t as MediaQuery } from "./index-server.js";
|
|
4
4
|
import "./index-server2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/gauge.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as definitionPaths, q as actorOf } from "./providers.server.js";
|
|
2
1
|
import { $ as canView, G as scopeAllows, K as canChangeOrgRole, O as ApiErrorCode, Q as canSolve, S as requireManageOrgMembers, T as requireTargetIsOrgMember, W as outsideTokenOrg, Y as canEdit, _ as requireEditableDefinition, a as canCreateProjectIn, et as checkOwnerRemoval, f as requireCanEditProjectSettings, g as requireCanViewProject, i as canActorChangeOrgRole, j as isApiError, k as apiError, l as requireCanCreateDefinition, m as requireCanReclaim, o as projectAccessInputFromRowsWith, p as requireCanManage, q as canCreateDefinition, r as assertCanGrantPlatformPermissions, s as requireActingOrg, t as splitFlatPermissions, u as requireCanCreateProject, w as requireProjectVisibilityAllowed, x as requireManageOrgCompute } from "./access.js";
|
|
2
|
+
import { B as definitionPaths, z as actorOf } from "./providers.server.js";
|
|
3
3
|
import { a as formatApiScope, i as describeApiScope, o as parseApiScope } from "./types.js";
|
|
4
4
|
import { r as hasPermission, t as SYSTEM_CONTEXT } from "./context.js";
|
|
5
5
|
import { a as inventoryWarnings, h as isPlatformServer, m as isOrgServer, n as diffLines, o as summarizeInventory, p as serversVisibleTo, t as diffInventories } from "./inventory.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as ssr_context, y as lifecycle_function_unavailable } from "./
|
|
1
|
+
import { v as ssr_context, y as lifecycle_function_unavailable } from "./server4.js";
|
|
2
2
|
// ../../node_modules/.pnpm/svelte@5.57.3_@typescript-eslint+types@8.72.1/node_modules/svelte/src/index-server.js
|
|
3
3
|
/** @import { SSRContext } from '#server' */
|
|
4
4
|
/** @import { Renderer } from './internal/server/renderer.js' */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./
|
|
1
|
+
import { a as derived, d as spread_props, i as bind_props, kt as clsx, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { r as on } from "./events.js";
|
|
3
3
|
import "./index-server.js";
|
|
4
4
|
import { c as getDataOpenClosed, f as mergeProps, l as getDataTransitionAttrs, o as createBitsAttrs, r as boolToStr, t as createId, u as attachRef, y as boxWith } from "./create-id.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as bind_props, kt as clsx, r as attributes } from "./
|
|
1
|
+
import { i as bind_props, kt as clsx, r as attributes } from "./server4.js";
|
|
2
2
|
import { t as cn } from "./utils.js";
|
|
3
3
|
// ../ui/src/lib/components/primitives/input/input.svelte
|
|
4
4
|
function Input($$renderer, $$props) {
|
|
@@ -3,7 +3,7 @@ import { C as prerender_endpoint_methods, E as prerender_template_nonce, G as se
|
|
|
3
3
|
import { t as uneval$1 } from "./uneval.js";
|
|
4
4
|
import { n as noop, r as once } from "./functions.js";
|
|
5
5
|
import { i as set_env, n as explicit_public_env, r as rendered_env } from "./config.js";
|
|
6
|
-
import { Lt as escape_html$1, a as derived, u as render } from "./
|
|
6
|
+
import { Lt as escape_html$1, a as derived, u as render } from "./server4.js";
|
|
7
7
|
import { t as afterNavigate } from "./navigation.js";
|
|
8
8
|
import { isRedirect, text } from "@sveltejs/kit";
|
|
9
9
|
import { Redirect, SvelteKitError } from "@sveltejs/kit/internal";
|
|
@@ -213,7 +213,7 @@ function server_data_serializer(event, state) {
|
|
|
213
213
|
let promise_id = 1;
|
|
214
214
|
let max_nodes = -1;
|
|
215
215
|
const iterator = create_async_iterator();
|
|
216
|
-
const global = "
|
|
216
|
+
const global = "__sveltekit_qkzvuf";
|
|
217
217
|
/** @param {number} index */
|
|
218
218
|
function get_replacer(index) {
|
|
219
219
|
/** @param {any} thing */
|
|
@@ -1443,7 +1443,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1443
1443
|
"crossorigin"
|
|
1444
1444
|
]);
|
|
1445
1445
|
}
|
|
1446
|
-
const global = "
|
|
1446
|
+
const global = "__sveltekit_qkzvuf";
|
|
1447
1447
|
const { data, chunks } = data_serializer.get_data(csp);
|
|
1448
1448
|
if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!(state.prerendering || state.prerender_default === true))).join("\n ")}`;
|
|
1449
1449
|
if (page_config.csr && client) {
|
|
@@ -1467,7 +1467,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
const blocks = [];
|
|
1470
|
-
const properties = [`base: ${base_expression}`, `version: ${s("
|
|
1470
|
+
const properties = [`base: ${base_expression}`, `version: ${s("1795173490044")}`];
|
|
1471
1471
|
if (assets) properties.push(`assets: ${s(assets)}`);
|
|
1472
1472
|
if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval$1(rendered_env)}`);
|
|
1473
1473
|
if (chunks) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getPermissionStore, h as getOrganizationProvider, r as getAuthProvider } from "./providers.server.js";
|
|
2
1
|
import { O as ApiErrorCode } from "./access.js";
|
|
2
|
+
import { g as getPermissionStore, h as getOrganizationProvider, r as getAuthProvider } from "./providers.server.js";
|
|
3
3
|
import { r as hasPermission, t as SYSTEM_CONTEXT } from "./context.js";
|
|
4
4
|
import { v as walkPages } from "./logging.js";
|
|
5
5
|
import { K as orgHasAnotherOwner, q as serializeOwnerChanges } from "./handlers.js";
|
|
@@ -2363,7 +2363,7 @@ function redirect_response(status, location) {
|
|
|
2363
2363
|
* @param {Response} response
|
|
2364
2364
|
*/
|
|
2365
2365
|
function with_version_header(response) {
|
|
2366
|
-
response.headers.set("x-sveltekit-version", "
|
|
2366
|
+
response.headers.set("x-sveltekit-version", "1795173490044");
|
|
2367
2367
|
return response;
|
|
2368
2368
|
}
|
|
2369
2369
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/key-round.svelte
|
|
4
4
|
var __iconData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as derived, d as spread_props, i as bind_props, l as props_id, r as attributes } from "./
|
|
1
|
+
import { a as derived, d as spread_props, i as bind_props, l as props_id, r as attributes } from "./server4.js";
|
|
2
2
|
import { f as mergeProps, o as createBitsAttrs, t as createId, u as attachRef, y as boxWith } from "./create-id.js";
|
|
3
3
|
import { t as cn } from "./utils.js";
|
|
4
4
|
// ../../node_modules/.pnpm/bits-ui@2.20.2_@internationalized+date@3.12.4_@sveltejs+kit@3.1.1_@opentelemetry+api@1._ee0cc2dca752cac163e62e76ab57f1b7/node_modules/bits-ui/dist/bits/label/label.svelte.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as spread_props } from "./
|
|
1
|
+
import { d as spread_props } from "./server4.js";
|
|
2
2
|
import { n as Icon } from "./utils.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@lucide+svelte@1.66.0_svelte@5.57.3_@typescript-eslint+types@8.72.1_/node_modules/@lucide/svelte/dist/icons/link-2.svelte
|
|
4
4
|
var __iconData = {
|