konoha-mcp 2.1.3 → 2.1.5
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/.agents/skills.fingerprint +1 -1
- package/README.md +4 -4
- package/apps/web/build/adapter-node.js +11 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.br +2 -0
- package/apps/web/build/client/_app/immutable/chunks/BH86Md_X.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BaNbYf_w.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.br +1 -0
- package/apps/web/build/client/_app/immutable/chunks/C3-t9btS.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{Bv85lp2r.js → CBY268r4.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.br +3 -0
- package/apps/web/build/client/_app/immutable/chunks/CBY268r4.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.br +4 -0
- package/apps/web/build/client/_app/immutable/chunks/Cg3pm-K7.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/D-Kujhko.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js +1 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dek69VGa.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{CP4ze5kR.js → Dzm74gVd.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Dzm74gVd.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js +2 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Lb3VuXoN.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js +3 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/PrdhfbrQ.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/{tFx9Vkzn.js → fbrtLByB.js} +1 -1
- package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/fbrtLByB.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js +2 -0
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.DLayTcYu.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js +2 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CNV5BTCO.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{0.BV_U6rd9.js → 0.5uSjyTy0.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.5uSjyTy0.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{1.317ei_PM.js → 1.BZu6jsAH.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/1.BZu6jsAH.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{10.C9BHUF6_.js → 10.CZKScTFN.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.CZKScTFN.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{11._7rmywnA.js → 11.DFglFW_i.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11.DFglFW_i.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{12.B_UJh_Cw.js → 12.CSShcv5z.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.CSShcv5z.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{13.FtUj7AO8.js → 13.jWUWoBcs.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.jWUWoBcs.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{14.CsMWcbH2.js → 14.H-jSqqen.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.H-jSqqen.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{15.DbSoDlZF.js → 15.CpAoyhzV.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.CpAoyhzV.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{16.BcMZYQJR.js → 16.DT_-MxCT.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.DT_-MxCT.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js +1 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Dr646Vs5.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{3.Co5hy99T.js → 3.Cgc-xN3x.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Cgc-xN3x.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{4.Ckjmv74-.js → 4.CYJQ4bWz.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.CYJQ4bWz.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{5.jG4rh5-7.js → 5.DbHL-3Es.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.DbHL-3Es.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{6.am-4Bf0e.js → 6.BvWH2qas.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.BvWH2qas.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{7.DpWtqqaL.js → 7.CmbiPMU3.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.CmbiPMU3.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{8.CbbKDJTU.js → 8.B9897Zm9.js} +1 -1
- package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.B9897Zm9.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/{9.CB21-Q9D.js → 9.CGMmeMVC.js} +2 -2
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CGMmeMVC.js.gz +0 -0
- package/apps/web/build/client/_app/version.json +1 -1
- package/apps/web/build/client/_app/version.json.br +0 -0
- package/apps/web/build/client/_app/version.json.gz +0 -0
- package/apps/web/build/handler.js +1 -2
- package/apps/web/build/index.js +1 -74
- package/apps/web/build/server/.vite/manifest.json +419 -0
- package/apps/web/build/server/_app/immutable/assets/_layout.CsjxL1aa.css +2 -0
- package/apps/web/build/server/adapter-env.js +2 -0
- package/apps/web/build/server/adapter-index.js +74 -0
- package/apps/web/build/server/adapter-index.js.map +1 -0
- package/apps/web/build/server/{chunks/env-RhfAqpCd.js → adapter-node-env.js} +28 -7
- package/apps/web/build/server/adapter-node-env.js.map +1 -0
- package/apps/web/build/server/adapter-node-handler.js +584 -0
- package/apps/web/build/server/adapter-node-handler.js.map +1 -0
- package/apps/web/build/server/chunks/api.js +81 -0
- package/apps/web/build/server/chunks/api.js.map +1 -0
- package/apps/web/build/server/chunks/{env-DU2WieJy.js → config.js} +2 -2
- package/apps/web/build/server/chunks/config.js.map +1 -0
- package/apps/web/build/server/chunks/exports.js +625 -0
- package/apps/web/build/server/chunks/exports.js.map +1 -0
- package/apps/web/build/server/chunks/functions.js +30 -0
- package/apps/web/build/server/chunks/functions.js.map +1 -0
- package/apps/web/build/server/chunks/index-server.js +2 -0
- package/apps/web/build/server/chunks/instance.js +3600 -0
- package/apps/web/build/server/chunks/instance.js.map +1 -0
- package/apps/web/build/server/chunks/internal.js +2849 -0
- package/apps/web/build/server/chunks/internal.js.map +1 -0
- package/apps/web/build/server/chunks/scrollLock.svelte.js +7 -0
- package/apps/web/build/server/chunks/scrollLock.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/server-errors.js +489 -0
- package/apps/web/build/server/chunks/server-errors.js.map +1 -0
- package/apps/web/build/server/chunks/server.js +9 -0
- package/apps/web/build/server/chunks/server.js.map +1 -0
- package/apps/web/build/server/chunks/{server2-xUKEUzWG.js → server2.js} +140 -718
- package/apps/web/build/server/chunks/server2.js.map +1 -0
- package/apps/web/build/server/chunks/shared.js +84 -0
- package/apps/web/build/server/chunks/shared.js.map +1 -0
- package/apps/web/build/server/chunks/{state-C6VH2NAw.js → state.js} +5 -4
- package/apps/web/build/server/chunks/state.js.map +1 -0
- package/apps/web/build/server/chunks/{sweetAlert.svelte-BKTpmvHp.js → sweetAlert.svelte.js} +3 -3
- package/apps/web/build/server/chunks/sweetAlert.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/{uiState.svelte-NgyZk5Jz.js → uiState.svelte.js} +3 -3
- package/apps/web/build/server/chunks/uiState.svelte.js.map +1 -0
- package/apps/web/build/server/chunks/uneval.js +645 -0
- package/apps/web/build/server/chunks/uneval.js.map +1 -0
- package/apps/web/build/server/entries/fallbacks/error.svelte.js +12 -0
- package/apps/web/build/server/entries/fallbacks/error.svelte.js.map +1 -0
- package/apps/web/build/server/entries/hooks.server.js +8 -0
- package/apps/web/build/server/entries/hooks.server.js.map +1 -0
- package/apps/web/build/server/entries/pages/_layout.js +7 -0
- package/apps/web/build/server/entries/pages/_layout.js.map +1 -0
- package/apps/web/build/server/{chunks/_layout.svelte-FKDEmK4m.js → entries/pages/_layout.svelte.js} +15 -8
- package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -0
- package/apps/web/build/server/entries/pages/_page.js +9 -0
- package/apps/web/build/server/entries/pages/_page.js.map +1 -0
- package/apps/web/build/server/entries/pages/_page.svelte.js +7 -0
- package/apps/web/build/server/entries/pages/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-K0WRgefN.js → entries/pages/agents/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/agents/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-BKU-UjQ2.js → entries/pages/bridges/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/bridges/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DBQMj6O8.js → entries/pages/clients/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/clients/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-BQP0Z2mg.js → entries/pages/context/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/context/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-D_bQaPtJ.js → entries/pages/dashboard/_page.svelte.js} +7 -4
- package/apps/web/build/server/entries/pages/dashboard/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-CxxsZeRm.js → entries/pages/detector/_page.svelte.js} +5 -3
- package/apps/web/build/server/entries/pages/detector/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DJp9fAk8.js → entries/pages/docs/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-DFBbcBLc.js → entries/pages/doctor/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/doctor/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-yXv2Aj6-.js → entries/pages/persona/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/persona/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-CvH3pIDb.js → entries/pages/savings/_page.svelte.js} +7 -4
- package/apps/web/build/server/entries/pages/savings/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-FUbd8bWv.js → entries/pages/search/_page.svelte.js} +9 -6
- package/apps/web/build/server/entries/pages/search/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-Bu5RfcD4.js → entries/pages/semble/_page.svelte.js} +8 -5
- package/apps/web/build/server/entries/pages/semble/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-B4DKG2sO.js → entries/pages/skills/_page.svelte.js} +10 -7
- package/apps/web/build/server/entries/pages/skills/_page.svelte.js.map +1 -0
- package/apps/web/build/server/{chunks/_page.svelte-D1yHfBBh.js → entries/pages/tasks/_page.svelte.js} +8 -83
- package/apps/web/build/server/entries/pages/tasks/_page.svelte.js.map +1 -0
- package/apps/web/build/{env.js → server/env.js} +1 -1
- package/apps/web/build/server/handler.js +2 -0
- package/apps/web/build/server/index.js +68 -0
- package/apps/web/build/server/index.js.map +1 -0
- package/apps/web/build/server/manifest-full.js +149 -0
- package/apps/web/build/server/manifest.js +149 -0
- package/apps/web/build/server/nodes/0.js +10 -0
- package/apps/web/build/server/nodes/1.js +8 -0
- package/apps/web/build/server/nodes/10.js +8 -0
- package/apps/web/build/server/nodes/11.js +8 -0
- package/apps/web/build/server/nodes/12.js +8 -0
- package/apps/web/build/server/nodes/13.js +8 -0
- package/apps/web/build/server/nodes/14.js +8 -0
- package/apps/web/build/server/nodes/15.js +8 -0
- package/apps/web/build/server/nodes/16.js +8 -0
- package/apps/web/build/server/nodes/2.js +10 -0
- package/apps/web/build/server/nodes/3.js +8 -0
- package/apps/web/build/server/nodes/4.js +8 -0
- package/apps/web/build/server/nodes/5.js +8 -0
- package/apps/web/build/server/nodes/6.js +8 -0
- package/apps/web/build/server/nodes/7.js +8 -0
- package/apps/web/build/server/nodes/8.js +8 -0
- package/apps/web/build/server/nodes/9.js +8 -0
- package/apps/web/build/server/remote-entry.js +1565 -0
- package/apps/web/build/server/remote-entry.js.map +1 -0
- package/apps/web/build/server/server.js +151 -0
- package/apps/web/package.json +10 -9
- package/bin/cli.js +6 -6
- package/bin/lib/ui_commands.js +4 -3
- package/docs/SecurityCompliance/qa_report_2.1.5_2026-10-07.md +65 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.4_2026-10-06.md +77 -0
- package/docs/SecurityCompliance/security_compliance_report_google_policy_2.1.5_2026-10-07.md +74 -0
- package/docs/SecurityCompliance/socket_baseline_2026-10-07.md +60 -0
- package/docs/SecurityCompliance/socket_burndown_2.1.5_2026-10-07.md +73 -0
- package/docs/SecurityCompliance/socket_report_2.1.5_2026-10-07.md +54 -0
- package/docs/architecture/TOKEN-BASELINE.md +1 -1
- package/package.json +6 -18
- package/src/antigravity_manager.js +81 -15
- package/src/db.js +2 -2
- package/src/db_agents.js +1 -1
- package/src/db_bridges.js +1 -1
- package/src/db_savings.js +1 -1
- package/src/db_stats.js +1 -1
- package/src/deploy_utils.js +4 -5
- package/src/doctor.js +10 -0
- package/src/migrate.js +1 -1
- package/src/persona_memory.js +1 -1
- package/src/sqlite_driver.js +211 -0
- package/src/vector_search.js +1 -1
- package/apps/web/build/adapter-env.js +0 -2
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js +0 -3
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Ae0obco1.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.br +0 -1
- package/apps/web/build/client/_app/immutable/chunks/BUgOhUo6.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.br +0 -3
- package/apps/web/build/client/_app/immutable/chunks/Bv85lp2r.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js +0 -2
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP0LAeYI.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CP4ze5kR.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/CV8VO5Jt.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.br +0 -2
- package/apps/web/build/client/_app/immutable/chunks/DNVgNyBC.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/DVr7DrHY.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js +0 -1
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/HclGiUj8.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.br +0 -0
- package/apps/web/build/client/_app/immutable/chunks/tFx9Vkzn.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js +0 -2
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.br +0 -0
- package/apps/web/build/client/_app/immutable/entry/app.qpZh6bSp.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js +0 -2
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.br +0 -2
- package/apps/web/build/client/_app/immutable/entry/start.CUhKN6Eq.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/0.BV_U6rd9.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.br +0 -1
- package/apps/web/build/client/_app/immutable/nodes/1.317ei_PM.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/10.C9BHUF6_.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/11._7rmywnA.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/12.B_UJh_Cw.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/13.FtUj7AO8.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/14.CsMWcbH2.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/15.DbSoDlZF.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/16.BcMZYQJR.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js +0 -1
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/2.Bs0YCKXY.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/3.Co5hy99T.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/4.Ckjmv74-.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/5.jG4rh5-7.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/6.am-4Bf0e.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/7.DpWtqqaL.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/8.CbbKDJTU.js.gz +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.br +0 -0
- package/apps/web/build/client/_app/immutable/nodes/9.CB21-Q9D.js.gz +0 -0
- package/apps/web/build/dir.js +0 -8
- package/apps/web/build/dir.js.map +0 -1
- package/apps/web/build/index.js.map +0 -1
- package/apps/web/build/server/chunks/0-D09zEpvl.js +0 -31
- package/apps/web/build/server/chunks/0-D09zEpvl.js.map +0 -1
- package/apps/web/build/server/chunks/1-2My56RES.js +0 -17
- package/apps/web/build/server/chunks/1-2My56RES.js.map +0 -1
- package/apps/web/build/server/chunks/10-M1HtRrZp.js +0 -17
- package/apps/web/build/server/chunks/10-M1HtRrZp.js.map +0 -1
- package/apps/web/build/server/chunks/11-BDyQuE2U.js +0 -18
- package/apps/web/build/server/chunks/11-BDyQuE2U.js.map +0 -1
- package/apps/web/build/server/chunks/12-DR3YohxS.js +0 -16
- package/apps/web/build/server/chunks/12-DR3YohxS.js.map +0 -1
- package/apps/web/build/server/chunks/13-BJri0QNV.js +0 -18
- package/apps/web/build/server/chunks/13-BJri0QNV.js.map +0 -1
- package/apps/web/build/server/chunks/14-DJhiE2DY.js +0 -17
- package/apps/web/build/server/chunks/14-DJhiE2DY.js.map +0 -1
- package/apps/web/build/server/chunks/15-CJUlxcu3.js +0 -19
- package/apps/web/build/server/chunks/15-CJUlxcu3.js.map +0 -1
- package/apps/web/build/server/chunks/16-BCncPEHV.js +0 -17
- package/apps/web/build/server/chunks/16-BCncPEHV.js.map +0 -1
- package/apps/web/build/server/chunks/2-B_JPNlak.js +0 -26
- package/apps/web/build/server/chunks/2-B_JPNlak.js.map +0 -1
- package/apps/web/build/server/chunks/3-BSOfGnYr.js +0 -17
- package/apps/web/build/server/chunks/3-BSOfGnYr.js.map +0 -1
- package/apps/web/build/server/chunks/4-DUmAi2o6.js +0 -18
- package/apps/web/build/server/chunks/4-DUmAi2o6.js.map +0 -1
- package/apps/web/build/server/chunks/5-DSM_rY93.js +0 -17
- package/apps/web/build/server/chunks/5-DSM_rY93.js.map +0 -1
- package/apps/web/build/server/chunks/6-CquXfuY3.js +0 -18
- package/apps/web/build/server/chunks/6-CquXfuY3.js.map +0 -1
- package/apps/web/build/server/chunks/7-CBNvUHPu.js +0 -16
- package/apps/web/build/server/chunks/7-CBNvUHPu.js.map +0 -1
- package/apps/web/build/server/chunks/8-BlIFjRiQ.js +0 -16
- package/apps/web/build/server/chunks/8-BlIFjRiQ.js.map +0 -1
- package/apps/web/build/server/chunks/9-sa0-Zgfq.js +0 -16
- package/apps/web/build/server/chunks/9-sa0-Zgfq.js.map +0 -1
- package/apps/web/build/server/chunks/_layout.svelte-FKDEmK4m.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-B4DKG2sO.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-BKU-UjQ2.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-BQP0Z2mg.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-Bu5RfcD4.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-CvH3pIDb.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-CxxsZeRm.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-D1yHfBBh.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DBQMj6O8.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DFBbcBLc.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-DJp9fAk8.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-D_bQaPtJ.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-FUbd8bWv.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-K0WRgefN.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js +0 -7
- package/apps/web/build/server/chunks/_page.svelte-LJxJVjMb.js.map +0 -1
- package/apps/web/build/server/chunks/_page.svelte-yXv2Aj6-.js.map +0 -1
- package/apps/web/build/server/chunks/env-DU2WieJy.js.map +0 -1
- package/apps/web/build/server/chunks/env-RhfAqpCd.js.map +0 -1
- package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js +0 -12
- package/apps/web/build/server/chunks/error.svelte-CNqmrJIT.js.map +0 -1
- package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js +0 -327
- package/apps/web/build/server/chunks/exports-DzZ-4-Dy.js.map +0 -1
- package/apps/web/build/server/chunks/handler-CNvIc1cp.js +0 -7301
- package/apps/web/build/server/chunks/handler-CNvIc1cp.js.map +0 -1
- package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js +0 -8
- package/apps/web/build/server/chunks/hooks.server-DqbY7q70.js.map +0 -1
- package/apps/web/build/server/chunks/index-server-ULRIL6sb.js +0 -2
- package/apps/web/build/server/chunks/rolldown-runtime-D7D4PA-g.js +0 -13
- package/apps/web/build/server/chunks/scrollLock.svelte-ULRIL6sb.js +0 -2
- package/apps/web/build/server/chunks/server2-xUKEUzWG.js.map +0 -1
- package/apps/web/build/server/chunks/state-C6VH2NAw.js.map +0 -1
- package/apps/web/build/server/chunks/sweetAlert.svelte-BKTpmvHp.js.map +0 -1
- package/apps/web/build/server/chunks/uiState.svelte-NgyZk5Jz.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-entry.js","names":["e.remote_request_property"],"sources":["../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/shared.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/command.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/form.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/prerender.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/utils/shared-iterator.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/query.js","../../../../node_modules/.pnpm/@sveltejs+kit@3.0.1_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.2_vite@8.3.3_jiti@2._2180d2dbf687eed18f260b26dab65894/node_modules/@sveltejs/kit/src/runtime/app/server/remote/requested.js"],"sourcesContent":["/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { MaybePromise, RequestState, RemoteInternals, RequestStore, RemoteLiveQueryUserFunctionReturnType } from 'types' */\nimport { error } from '@sveltejs/kit';\nimport { ValidationError } from '@sveltejs/kit/internal';\nimport { with_request_store } from '@sveltejs/kit/internal/server';\nimport * as e from '../../../../messages/server-errors.js';\n\n/**\n * @param {any} validate_or_fn\n * @param {((arg?: any) => any) | undefined} [maybe_fn]\n * @returns {(arg?: any) => MaybePromise<any>}\n */\nexport function create_validator(validate_or_fn, maybe_fn) {\n\t// prevent functions without validators being called with arguments\n\tif (!maybe_fn) {\n\t\treturn (arg) => {\n\t\t\tif (arg !== undefined) {\n\t\t\t\terror(400, 'Bad Request');\n\t\t\t}\n\t\t};\n\t}\n\n\t// if 'unchecked', pass input through without validating\n\tif (validate_or_fn === 'unchecked') {\n\t\treturn (arg) => arg;\n\t}\n\n\t// use https://standardschema.dev validator if provided\n\tif ('~standard' in validate_or_fn) {\n\t\treturn async (arg) => {\n\t\t\t// access property and call method in one go to preserve potential this context\n\t\t\tconst result = await validate_or_fn['~standard'].validate(arg);\n\n\t\t\t// if the `issues` field exists, the validation failed\n\t\t\tif (result.issues) {\n\t\t\t\tthrow new ValidationError(result.issues);\n\t\t\t}\n\n\t\t\treturn result.value;\n\t\t};\n\t}\n\n\te.remote_invalid_validator();\n}\n\n/**\n * In case of a single remote function call, just returns the result.\n *\n * In case of a full page reload, returns the response for a remote function call,\n * either from the cache or by invoking the function.\n * Also saves an uneval'ed version of the result for later HTML inlining for hydration.\n *\n * @template {MaybePromise<any>} T\n * @param {RemoteInternals} internals\n * @param {string} payload — the stringified raw argument (i.e. the cache key the client will use)\n * @param {RequestState} state\n * @param {() => Promise<T>} get_result\n * @returns {Promise<T>}\n */\nexport async function get_response(internals, payload, state, get_result) {\n\t// wait a beat, in case `myQuery().set(...)` or `myQuery().refresh()` is immediately called\n\t// eslint-disable-next-line @typescript-eslint/await-thenable\n\tawait 0;\n\n\tconst cache = get_cache(internals, state);\n\n\tif (!state.is_in_remote_query) {\n\t\t// if this is a top-level (not nested) `await myQuery()`, include it in the serialized response\n\t\tget_implicit_lookup(internals, state)[payload] = get_result;\n\t}\n\n\treturn (cache[payload] ??= get_result());\n}\n\n/**\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {boolean} allow_cookies\n * @returns {RequestStore}\n */\nfunction derive_remote_function_event(event, state, allow_cookies) {\n\t/** @type {RequestEvent} */\n\tconst derived = {\n\t\t...event,\n\t\tsetHeaders: () => {\n\t\t\te.remote_headers_forbidden();\n\t\t},\n\t\tcookies: {\n\t\t\t...event.cookies,\n\t\t\tset: (name, value, opts) => {\n\t\t\t\tif (!allow_cookies) {\n\t\t\t\t\te.remote_cookie_forbidden({ operation: 'set' });\n\t\t\t\t}\n\n\t\t\t\tif (opts?.path && !opts.path.startsWith('/')) {\n\t\t\t\t\te.remote_cookie_path_relative({ operation: 'set' });\n\t\t\t\t}\n\n\t\t\t\treturn event.cookies.set(name, value, opts);\n\t\t\t},\n\t\t\tdelete: (name, opts) => {\n\t\t\t\tif (!allow_cookies) {\n\t\t\t\t\te.remote_cookie_forbidden({ operation: 'delete' });\n\t\t\t\t}\n\n\t\t\t\tif (opts?.path && !opts.path.startsWith('/')) {\n\t\t\t\t\te.remote_cookie_path_relative({ operation: 'deleted' });\n\t\t\t\t}\n\n\t\t\t\treturn event.cookies.delete(name, opts);\n\t\t\t}\n\t\t}\n\t};\n\n\tif (state.is_in_remote_query) {\n\t\tfor (const property of ['url', 'params', 'route']) {\n\t\t\t// non-enumerable so spreading for a nested derivation doesn't invoke the getter\n\t\t\tObject.defineProperty(derived, property, {\n\t\t\t\tenumerable: false,\n\t\t\t\tget() {\n\t\t\t\t\treturn e.remote_request_property({ property });\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\treturn {\n\t\tevent: derived,\n\t\tstate: {\n\t\t\t...state,\n\t\t\tis_in_remote_function: true\n\t\t}\n\t};\n}\n\n/**\n * Like `with_event` but removes things from `event` you cannot see/call in remote functions, such as `setHeaders`.\n * @template T\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {boolean} allow_cookies\n * @param {() => any} get_input\n * @param {(arg?: any) => T} fn\n */\nexport async function run_remote_function(event, state, allow_cookies, get_input, fn) {\n\tconst store = derive_remote_function_event(event, state, allow_cookies);\n\n\t// In two parts, each with_event, so that runtimes without async local storage can still get the event at the start of the function\n\tconst input = await with_request_store(store, get_input);\n\treturn with_request_store(store, () => fn(input));\n}\n\n/**\n * Like `with_event` but removes things from `event` you cannot see/call in remote functions, such as `setHeaders`.\n * @template T\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {boolean} allow_cookies\n * @param {() => any} get_input\n * @param {(arg?: any) => RemoteLiveQueryUserFunctionReturnType<T>} fn\n * @param {string} name\n */\nexport async function* run_remote_generator(event, state, allow_cookies, get_input, fn, name) {\n\tconst store = derive_remote_function_event(event, state, allow_cookies);\n\n\t// In two parts, each with_event, so that runtimes without async local storage can still get the event at the start of the function / calls to next\n\tconst input = await with_request_store(store, get_input);\n\tconst source = await with_request_store(store, () => fn(input));\n\tconst iterator = to_iterator(source, name);\n\tlet done = false;\n\n\ttry {\n\t\twhile (true) {\n\t\t\t// the code of a generator function is basically chopped apart at each\n\t\t\t// yield, and each part is an invocation of `.next`. So, to provide\n\t\t\t// access to the request context in generator functions, we have to\n\t\t\t// provide it to every invocation of `.next`. (It's more obvious that\n\t\t\t// this is necessary with plain iterators.)\n\t\t\tconst result = await with_request_store(store, () => iterator.next());\n\t\t\tif (result.done) {\n\t\t\t\tdone = true;\n\t\t\t\treturn result.value;\n\t\t\t}\n\t\t\tyield result.value;\n\t\t}\n\t} finally {\n\t\tif (!done && typeof iterator.return === 'function') {\n\t\t\tawait with_request_store(store, () => iterator.return?.(undefined));\n\t\t}\n\t}\n}\n\n/**\n * @template T\n * @param {Awaited<RemoteLiveQueryUserFunctionReturnType<T>>} source\n * @param {string} name\n * @returns {Iterator<T> | AsyncIterator<T>}\n */\nfunction to_iterator(source, name) {\n\t// intentionally using `in` because these could be inherited\n\tif ('next' in source && typeof source.next === 'function') {\n\t\treturn source;\n\t}\n\n\tif (Symbol.asyncIterator in source && typeof source[Symbol.asyncIterator] === 'function') {\n\t\treturn source[Symbol.asyncIterator]();\n\t}\n\n\tif (Symbol.iterator in source && typeof source[Symbol.iterator] === 'function') {\n\t\treturn source[Symbol.iterator]();\n\t}\n\n\te.remote_query_live_not_iterable({ name });\n}\n\n/**\n * Note that `state` is deliberately not optional: resources that capture the request\n * state at creation must pass it explicitly, because reading it from the request store\n * at call time is only equivalent on runtimes with `AsyncLocalStorage` support.\n * Callers without a captured state (such as the module-level `form` instance getters)\n * should pass `get_request_store().state` themselves.\n * @param {RemoteInternals} internals\n * @param {RequestState} state\n */\nexport function get_cache(internals, state) {\n\tlet cache = state.remote.data?.get(internals);\n\n\tif (cache === undefined) {\n\t\tcache = {};\n\t\t(state.remote.data ??= new Map()).set(internals, cache);\n\t}\n\n\treturn cache;\n}\n\n/**\n * @param {RemoteInternals} internals\n * @param {RequestState} state\n */\nexport function get_implicit_lookup(internals, state) {\n\tlet cache = state.remote.implicit?.get(internals);\n\n\tif (cache === undefined) {\n\t\tcache = {};\n\t\t(state.remote.implicit ??= new Map()).set(internals, cache);\n\t}\n\n\treturn cache;\n}\n","/** @import { RemoteCommand } from '$app/server' */\n/** @import { MaybePromise, RemoteCommandInternals } from 'types' */\n/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { get_request_store } from '@sveltejs/kit/internal/server';\nimport { create_validator, run_remote_function } from './shared.js';\nimport { MUTATIVE_METHODS } from '../../../../constants.js';\nimport * as e from '../../../../messages/server-errors.js';\n\n/**\n * Creates a remote command. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.\n *\n * @template Output\n * @overload\n * @param {() => MaybePromise<Output>} fn\n * @returns {RemoteCommand<void, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote command. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.\n *\n * @template Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(arg: Input) => MaybePromise<Output>} fn\n * @returns {RemoteCommand<Input, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote command. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#command) for full documentation.\n *\n * @template {StandardSchemaV1} Schema\n * @template Output\n * @overload\n * @param {Schema} validate\n * @param {(arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>} fn\n * @returns {RemoteCommand<StandardSchemaV1.InferInput<Schema>, Output>}\n * @since 2.27\n */\n/**\n * @template Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {(arg?: Input) => MaybePromise<Output>} [maybe_fn]\n * @returns {RemoteCommand<Input, Output>}\n * @since 2.27\n */\n/*@__NO_SIDE_EFFECTS__*/\nexport function command(validate_or_fn, maybe_fn) {\n\t/** @type {(arg?: Input) => MaybePromise<Output>} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {(arg?: any) => MaybePromise<Input>} */\n\tconst validate = create_validator(validate_or_fn, maybe_fn);\n\n\t/** @type {RemoteCommandInternals} */\n\tconst __ = { type: 'command', id: '', name: '' };\n\n\t/** @type {RemoteCommand<Input, Output> & { __: RemoteCommandInternals }} */\n\tconst wrapper = (arg) => {\n\t\tconst { event, state } = get_request_store();\n\n\t\tif (\n\t\t\t!MUTATIVE_METHODS.includes(event.request.method) ||\n\t\t\tstate.is_in_remote_query ||\n\t\t\tstate.is_in_remote_prerender\n\t\t) {\n\t\t\tif (state.is_in_remote_query || state.is_in_remote_prerender) {\n\t\t\t\te.remote_command_readonly({ name: __.name });\n\t\t\t}\n\t\t\te.remote_command_method({ name: __.name, method: event.request.method });\n\t\t}\n\n\t\tif (state.is_in_render) {\n\t\t\te.remote_command_render({ name: __.name });\n\t\t}\n\n\t\tconst promise = Promise.resolve(\n\t\t\trun_remote_function(event, state, true, () => validate(arg), fn)\n\t\t);\n\n\t\t// @ts-expect-error\n\t\tpromise.updates = () => {\n\t\t\te.server_api_unavailable({ name: `${__.name}(...).updates(...)` });\n\t\t};\n\n\t\treturn /** @type {ReturnType<RemoteCommand<Input, Output>>} */ (promise);\n\t};\n\n\tObject.defineProperty(wrapper, '__', { value: __ });\n\n\t// On the server, pending is always 0\n\tObject.defineProperty(wrapper, 'pending', {\n\t\tget: () => 0\n\t});\n\n\treturn wrapper;\n}\n","/** @import { RemoteFormInput, RemoteForm, RemoteFormInvalidField } from '$app/server' */\n/** @import { InternalRemoteFormIssue, MaybePromise, HasNonOptionalBoolean, RemoteFormInternals } from 'types' */\n/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { get_request_store } from '@sveltejs/kit/internal/server';\nimport {\n\tcreate_field_proxy,\n\tsplit_path,\n\tdeep_set,\n\tnormalize_issue,\n\tflatten_issues,\n\tparse_form_key\n} from '../../../form-utils.js';\nimport { get_cache, get_implicit_lookup, run_remote_function } from './shared.js';\nimport { ActionFailure, ValidationError } from '@sveltejs/kit/internal';\nimport { DEV } from 'esm-env';\nimport * as e from '../../../../messages/server-errors.js';\n\n/**\n * Creates a form object that can be spread onto a `<form>` element.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#form) for full documentation.\n *\n * @template Output\n * @overload\n * @param {() => MaybePromise<Output>} fn\n * @returns {RemoteForm<void, Output>}\n * @since 2.27\n */\n/**\n * Creates a form object that can be spread onto a `<form>` element.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#form) for full documentation.\n *\n * @template {RemoteFormInput} Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(data: Input, issue: RemoteFormInvalidField<Input>) => MaybePromise<Output>} fn\n * @returns {RemoteForm<Input, Output>}\n * @since 2.27\n */\n/**\n * Creates a form object that can be spread onto a `<form>` element.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#form) for full documentation.\n *\n * @template {StandardSchemaV1<RemoteFormInput, Record<string, any>>} Schema\n * @template Output\n * @overload\n * @param {true extends HasNonOptionalBoolean<StandardSchemaV1.InferInput<Schema>> ? 'Error: All booleans in form schemas must be optional (e.g. `v.optional(v.boolean(), false)`) because checkbox inputs do not send a false value when unchecked.' : Schema} validate\n * @param {(data: StandardSchemaV1.InferOutput<Schema>, issue: RemoteFormInvalidField<StandardSchemaV1.InferInput<Schema>>) => MaybePromise<Output>} fn\n * @returns {RemoteForm<StandardSchemaV1.InferInput<Schema>, Output>}\n * @since 2.27\n */\n/**\n * @template {RemoteFormInput} Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {(data_or_issue: any, issue?: any) => MaybePromise<Output>} [maybe_fn]\n * @returns {RemoteForm<Input, Output>}\n * @since 2.27\n */\n/*@__NO_SIDE_EFFECTS__*/\n// @ts-ignore we don't want to prefix `fn` with an underscore, as that will be user-visible\nexport function form(validate_or_fn, maybe_fn) {\n\t/** @type {any} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {StandardSchemaV1 | null} */\n\tconst schema =\n\t\t!maybe_fn || validate_or_fn === 'unchecked' ? null : /** @type {any} */ (validate_or_fn);\n\n\t/**\n\t * @param {string | number | boolean} [key]\n\t */\n\tfunction create_instance(key) {\n\t\tconst instance = /** @type {RemoteForm<Input, Output>} */ ({});\n\n\t\tinstance.method = 'POST';\n\n\t\tObject.defineProperty(instance, 'enhance', {\n\t\t\tvalue: () => {\n\t\t\t\treturn { action: instance.action, method: instance.method };\n\t\t\t}\n\t\t});\n\n\t\t/** @type {RemoteFormInternals} */\n\t\tconst __ = {\n\t\t\ttype: 'form',\n\t\t\tname: '',\n\t\t\tid: '',\n\t\t\tfn: async (data, meta, form_data) => {\n\t\t\t\tconst output =\n\t\t\t\t\t/** @type {{ submission: true, input?: Record<string, any>, issues?: InternalRemoteFormIssue[], result: Output }} */ ({});\n\n\t\t\t\t// make it possible to differentiate between user submission and programmatic `field.set(...)` updates\n\t\t\t\toutput.submission = true;\n\n\t\t\t\tconst { event, state } = get_request_store();\n\t\t\t\tconst validated = await schema?.['~standard'].validate(data);\n\n\t\t\t\tif (meta.validate_only) {\n\t\t\t\t\treturn validated?.issues?.map((issue) => normalize_issue(issue, true)) ?? [];\n\t\t\t\t}\n\n\t\t\t\tif (validated?.issues !== undefined) {\n\t\t\t\t\thandle_issues(output, validated.issues, form_data, __.id);\n\t\t\t\t} else {\n\t\t\t\t\tif (validated !== undefined) {\n\t\t\t\t\t\tdata = validated.value;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst issue = create_issues();\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\toutput.result = await run_remote_function(\n\t\t\t\t\t\t\tevent,\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t() => data,\n\t\t\t\t\t\t\t(data) => (!maybe_fn ? fn() : fn(data, issue))\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif (DEV && output.result instanceof ActionFailure) {\n\t\t\t\t\t\t\te.remote_form_fail();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tif (error instanceof ValidationError) {\n\t\t\t\t\t\t\thandle_issues(output, error.issues, form_data, __.id);\n\t\t\t\t\t\t} else if (DEV && error instanceof ActionFailure) {\n\t\t\t\t\t\t\te.remote_form_fail(undefined, { cause: error });\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// We don't need to care about args or deduplicating calls, because uneval results are only relevant in full page reloads\n\t\t\t\t// where only one form submission is active at the same time\n\t\t\t\tif (!event.isRemoteRequest) {\n\t\t\t\t\tconst cache = get_cache(__, state);\n\t\t\t\t\tcache[''] ??= output;\n\n\t\t\t\t\t// register under the client-side action id so the output is serialized\n\t\t\t\t\t// into the page, allowing the hydrated client to restore `result`/`issues`/`input`\n\t\t\t\t\tget_implicit_lookup(__, state)[__.key ? `${__.id}/${__.key}` : __.id] = () => cache[''];\n\t\t\t\t}\n\n\t\t\t\treturn output;\n\t\t\t}\n\t\t};\n\n\t\tObject.defineProperty(instance, '__', { value: __ });\n\n\t\tObject.defineProperty(instance, 'action', {\n\t\t\tget: () => {\n\t\t\t\tconst { event, state } = get_request_store();\n\t\t\t\tconst search = new URLSearchParams(state.prerendering ? '' : event.url.search);\n\t\t\t\tsearch.delete('/remote');\n\n\t\t\t\tconst query = search.toString();\n\t\t\t\tconst action_id = __.key ? `${__.id}/${encodeURIComponent(__.key)}` : __.id;\n\n\t\t\t\treturn `?${query ? `${query}&` : ''}/remote=${action_id}`;\n\t\t\t},\n\t\t\tenumerable: true\n\t\t});\n\n\t\tObject.defineProperty(instance, 'fields', {\n\t\t\tget() {\n\t\t\t\t// the form instance is created once per module and shared across requests,\n\t\t\t\t// so the current request's state has to be resolved at access time\n\t\t\t\treturn create_field_proxy({\n\t\t\t\t\tform_id: __.id,\n\t\t\t\t\tget: () => get_cache(__, get_request_store().state)?.['']?.input ?? {},\n\t\t\t\t\tset: (path, value) => {\n\t\t\t\t\t\tconst cache = get_cache(__, get_request_store().state);\n\t\t\t\t\t\tconst entry = cache[''];\n\n\t\t\t\t\t\tif (entry?.submission) {\n\t\t\t\t\t\t\t// don't override a submission\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (path.length === 0) {\n\t\t\t\t\t\t\t(cache[''] ??= {}).input = value;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst input = entry?.input ?? {};\n\t\t\t\t\t\tdeep_set(input, path.map(String), value);\n\t\t\t\t\t\t(cache[''] ??= {}).input = input;\n\t\t\t\t\t},\n\t\t\t\t\tget_issues: () =>\n\t\t\t\t\t\tflatten_issues(get_cache(__, get_request_store().state)?.['']?.issues ?? []),\n\t\t\t\t\tget_touched: () => ({}),\n\t\t\t\t\tget_dirty: () => ({})\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tObject.defineProperty(instance, 'result', {\n\t\t\tget() {\n\t\t\t\ttry {\n\t\t\t\t\treturn get_cache(__, get_request_store().state)?.['']?.result;\n\t\t\t\t} catch {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// On the server, pending is always 0\n\t\tObject.defineProperty(instance, 'pending', {\n\t\t\tget: () => 0\n\t\t});\n\n\t\tObject.defineProperty(instance, 'submitted', {\n\t\t\tget: () => false\n\t\t});\n\n\t\tObject.defineProperty(instance, 'preflight', {\n\t\t\t// preflight is a noop on the server\n\t\t\tvalue: () => instance\n\t\t});\n\n\t\tObject.defineProperty(instance, 'validate', {\n\t\t\tvalue: () => {\n\t\t\t\te.server_api_unavailable({ name: 'form.validate()' });\n\t\t\t}\n\t\t});\n\n\t\tObject.defineProperty(instance, 'submit', {\n\t\t\tvalue: () => {\n\t\t\t\te.server_api_unavailable({ name: 'form.submit()' });\n\t\t\t}\n\t\t});\n\n\t\tObject.defineProperty(instance, 'element', {\n\t\t\tget: () => null\n\t\t});\n\n\t\tif (key == undefined) {\n\t\t\tObject.defineProperty(instance, 'for', {\n\t\t\t\t/** @type {RemoteForm<any, any>['for']} */\n\t\t\t\tvalue: (key) => {\n\t\t\t\t\tconst { state } = get_request_store();\n\t\t\t\t\tconst cache_key = __.id + '|' + JSON.stringify(key);\n\t\t\t\t\t/** @type {RemoteForm<Input, Output> & { __: RemoteFormInternals }} */\n\t\t\t\t\tlet instance = (state.remote.forms ??= new Map()).get(cache_key);\n\n\t\t\t\t\tif (!instance) {\n\t\t\t\t\t\tinstance = /** @type {RemoteForm<Input, Output> & { __: RemoteFormInternals }} */ (\n\t\t\t\t\t\t\tcreate_instance(key)\n\t\t\t\t\t\t);\n\t\t\t\t\t\tinstance.__.id = __.id;\n\t\t\t\t\t\tinstance.__.key = JSON.stringify(key);\n\t\t\t\t\t\tinstance.__.name = __.name;\n\n\t\t\t\t\t\tstate.remote.forms.set(cache_key, instance);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn instance;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\treturn instance;\n\t}\n\n\treturn create_instance();\n}\n\n/**\n * @param {{ issues?: InternalRemoteFormIssue[], input?: Record<string, any>, result: any }} output\n * @param {readonly StandardSchemaV1.Issue[]} issues\n * @param {FormData | null} form_data - null if the form is progressively enhanced\n * @param {string} form_id - hash/name of the form\n */\nfunction handle_issues(output, issues, form_data, form_id) {\n\toutput.issues = issues.map((issue) => normalize_issue(issue, true));\n\n\t// if it was a progressively-enhanced submission, we don't need\n\t// to return the input — it's already there\n\tif (form_data) {\n\t\toutput.input = {};\n\n\t\tfor (const field_name of form_data.keys()) {\n\t\t\tconst field = parse_form_key(form_id, field_name);\n\t\t\tconst path = split_path(field.name);\n\n\t\t\t// redact sensitive fields\n\t\t\tif (path.some((part) => part.startsWith('_'))) continue;\n\n\t\t\tconst values = form_data.getAll(field_name).filter((value) => typeof value === 'string');\n\n\t\t\tdeep_set(\n\t\t\t\t/** @type {Record<string, any>} */ (output.input),\n\t\t\t\tpath,\n\t\t\t\tfield.is_array ? values : values[0]\n\t\t\t);\n\t\t}\n\t}\n}\n\n/**\n * Creates an invalid function that can be used to imperatively mark form fields as invalid\n * @returns {RemoteFormInvalidField<any>}\n */\nfunction create_issues() {\n\treturn /** @type {RemoteFormInvalidField<any>} */ (\n\t\tnew Proxy(\n\t\t\t/** @param {string} message */\n\t\t\t(message) => {\n\t\t\t\treturn create_issue(message);\n\t\t\t},\n\t\t\t{\n\t\t\t\tget(target, prop) {\n\t\t\t\t\tif (typeof prop === 'symbol') return /** @type {any} */ (target)[prop];\n\n\t\t\t\t\treturn create_issue_proxy(prop, []);\n\t\t\t\t}\n\t\t\t}\n\t\t)\n\t);\n\n\t/**\n\t * @param {string} message\n\t * @param {(string | number)[]} path\n\t * @returns {StandardSchemaV1.Issue}\n\t */\n\tfunction create_issue(message, path = []) {\n\t\treturn {\n\t\t\tmessage,\n\t\t\tpath\n\t\t};\n\t}\n\n\t/**\n\t * Creates a proxy that builds up a path and returns a function to create an issue\n\t * @param {string | number} key\n\t * @param {(string | number)[]} path\n\t */\n\tfunction create_issue_proxy(key, path) {\n\t\tconst new_path = [...path, key];\n\n\t\t/**\n\t\t * @param {string} message\n\t\t * @returns {StandardSchemaV1.Issue}\n\t\t */\n\t\tconst issue_func = (message) => create_issue(message, new_path);\n\n\t\treturn new Proxy(issue_func, {\n\t\t\tget(target, prop) {\n\t\t\t\tif (typeof prop === 'symbol') return /** @type {any} */ (target)[prop];\n\n\t\t\t\t// Handle array access like invalid.items[0]\n\t\t\t\tif (/^\\d+$/.test(prop)) {\n\t\t\t\t\treturn create_issue_proxy(parseInt(prop, 10), new_path);\n\t\t\t\t}\n\n\t\t\t\t// Handle property access like invalid.field.nested\n\t\t\t\treturn create_issue_proxy(prop, new_path);\n\t\t\t}\n\t\t});\n\t}\n}\n","/** @import { RemoteResource, RemotePrerenderFunction } from '$app/server' */\n/** @import { RemoteFunctionResponse, RemotePrerenderInputsGenerator, RemotePrerenderInternals, MaybePromise } from 'types' */\n/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { HandledHttpError } from '@sveltejs/kit/internal';\nimport { get_request_store } from '@sveltejs/kit/internal/server';\nimport { stringify_remote_arg } from '../../../shared.js';\nimport { parse, stringify } from '#app/internal/transport';\nimport { noop } from '../../../../utils/functions.js';\nimport { app_dir, base } from '#app/paths';\nimport { create_validator, get_response, run_remote_function } from './shared.js';\n\n/**\n * Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.\n *\n * @template Output\n * @overload\n * @param {() => MaybePromise<Output>} fn\n * @param {{ inputs?: RemotePrerenderInputsGenerator<void>, dynamic?: boolean }} [options]\n * @returns {RemotePrerenderFunction<void, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.\n *\n * @template Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(arg: Input) => MaybePromise<Output>} fn\n * @param {{ inputs?: RemotePrerenderInputsGenerator<Input>, dynamic?: boolean }} [options]\n * @returns {RemotePrerenderFunction<Input, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote prerender function. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#prerender) for full documentation.\n *\n * @template {StandardSchemaV1} Schema\n * @template Output\n * @overload\n * @param {Schema} schema\n * @param {(arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>} fn\n * @param {{ inputs?: RemotePrerenderInputsGenerator<StandardSchemaV1.InferInput<Schema>>, dynamic?: boolean }} [options]\n * @returns {RemotePrerenderFunction<StandardSchemaV1.InferInput<Schema>, Output>}\n * @since 2.27\n */\n/**\n * @template Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {any} [fn_or_options]\n * @param {{ inputs?: RemotePrerenderInputsGenerator<Input>, dynamic?: boolean }} [maybe_options]\n * @returns {RemotePrerenderFunction<Input, Output>}\n * @since 2.27\n */\n/*@__NO_SIDE_EFFECTS__*/\nexport function prerender(validate_or_fn, fn_or_options, maybe_options) {\n\tconst maybe_fn = typeof fn_or_options === 'function' ? fn_or_options : undefined;\n\n\t/** @type {typeof maybe_options} */\n\tconst options = maybe_options ?? (maybe_fn ? undefined : fn_or_options);\n\n\t/** @type {(arg?: Input) => MaybePromise<Output>} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {(arg?: any) => MaybePromise<Input>} */\n\tconst validate = create_validator(validate_or_fn, maybe_fn);\n\n\t/** @type {RemotePrerenderInternals} */\n\tconst __ = {\n\t\ttype: 'prerender',\n\t\tid: '',\n\t\tname: '',\n\t\thas_arg: !!maybe_fn,\n\t\tinputs: options?.inputs,\n\t\tdynamic: options?.dynamic\n\t};\n\n\t/** @type {RemotePrerenderFunction<Input, Output> & { __: RemotePrerenderInternals }} */\n\tconst wrapper = (arg) => {\n\t\tconst { event, state } = get_request_store();\n\t\tconst payload = stringify_remote_arg(arg);\n\n\t\t// `get_response` (as opposed to bare `get_cache`) also registers the call in the\n\t\t// implicit lookup, so that the result is inlined into the page payload (`data.p`)\n\t\t// and the client doesn't need to fetch it again upon hydration\n\t\t/** @type {Promise<Output> & Partial<RemoteResource<Output>>} */\n\t\tconst promise = get_response(__, payload, state, async () => {\n\t\t\tconst id = __.id;\n\t\t\tconst url = `${base}/${app_dir}/remote/${id}${payload ? `/${payload}` : ''}`;\n\n\t\t\tif (!state.prerendering && !__SVELTEKIT_DEV__ && !event.isRemoteRequest) {\n\t\t\t\t/** @type {RemoteFunctionResponse | undefined} */\n\t\t\t\tlet prerendered;\n\n\t\t\t\ttry {\n\t\t\t\t\t// TODO adapters can provide prerendered data more efficiently than\n\t\t\t\t\t// fetching from the public internet\n\t\t\t\t\t// `request.url` rather than `event.url`, which throws inside queries\n\t\t\t\t\tconst response = await fetch(new URL(url, event.request.url).href, {\n\t\t\t\t\t\t// in the unlikely event that an attacker is able to spoof the origin,\n\t\t\t\t\t\t// this protects us against SSRF (the attacker-controlled server cannot\n\t\t\t\t\t\t// trick us into making a request to an internal resource)\n\t\t\t\t\t\tredirect: 'manual'\n\t\t\t\t\t});\n\n\t\t\t\t\tif (response.ok) {\n\t\t\t\t\t\tprerendered = /** @type {RemoteFunctionResponse} */ (await response.json());\n\t\t\t\t\t}\n\t\t\t\t} catch {\n\t\t\t\t\t// not available prerendered, fallback to normal function\n\t\t\t\t}\n\n\t\t\t\tif (prerendered) {\n\t\t\t\t\tif (prerendered.type === 'error') {\n\t\t\t\t\t\tthrow new HandledHttpError(prerendered.error);\n\t\t\t\t\t}\n\n\t\t\t\t\treturn parse(prerendered.data)._;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// during a prerender run, the same function might be invoked while rendering\n\t\t\t// multiple pages — share the result across the entire run\n\t\t\tif (state.prerendering?.remote_responses.has(url)) {\n\t\t\t\treturn /** @type {Promise<any>} */ (state.prerendering.remote_responses.get(url));\n\t\t\t}\n\n\t\t\tconst promise = run_remote_function(\n\t\t\t\tevent,\n\t\t\t\t{ ...state, is_in_remote_prerender: true },\n\t\t\t\tfalse,\n\t\t\t\t() => validate(arg),\n\t\t\t\tfn\n\t\t\t);\n\n\t\t\tif (state.prerendering) {\n\t\t\t\tstate.prerendering.remote_responses.set(url, promise);\n\t\t\t}\n\n\t\t\tconst result = await promise;\n\n\t\t\tif (state.prerendering) {\n\t\t\t\tconst body = { type: 'result', data: stringify({ _: result }) };\n\t\t\t\tstate.prerendering.dependencies.set(url, {\n\t\t\t\t\tbody: JSON.stringify(body),\n\t\t\t\t\tresponse: Response.json(body)\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// TODO this is missing error/loading/current/status\n\t\t\treturn result;\n\t\t});\n\n\t\tpromise.catch(noop);\n\n\t\treturn /** @type {RemoteResource<Output>} */ (promise);\n\t};\n\n\tObject.defineProperty(wrapper, '__', { value: __ });\n\n\treturn wrapper;\n}\n","/**\n * A pull-style async iterator that fans out a single stream of values to\n * multiple `for await (...)` consumers. Each subscriber gets its own\n * `AsyncGenerator` whose `.next()` resolves whenever a value is pushed via\n * `push(value)`. Multiple consumers see the same values without each one\n * driving an independent underlying source.\n *\n * Backpressure is **latest-wins**: if values arrive faster than a particular\n * consumer drains its iterator, only the most-recently-pushed value is kept\n * pending for that subscriber. Earlier undrained values are dropped. This is\n * appropriate for live data streams (reactive state replication), not for\n * event logs where every value must be delivered.\n *\n * Lifecycle hooks are exposed via the constructor:\n *\n * - `start()` is called when the subscriber count transitions\n * from 0 to 1 (e.g. to start a pump pulling from a real source).\n * - `stop()` is called when the subscriber count transitions\n * from non-zero back to 0 (e.g. to tear down that pump).\n *\n * Either hook may be omitted.\n *\n * The owner is responsible for calling `push(value)` to broadcast values,\n * `done()` to signal natural completion to all subscribers, and `fail(error)`\n * to broadcast a terminal error. After `done()` or `fail()`, the iterator\n * rejects further `subscribe()` calls with the terminal state appropriately.\n *\n * @template T\n */\nexport class SharedIterator {\n\t/**\n\t * @typedef {object} Subscriber\n\t * @property {{ value: any } | null} pending\n\t * @property {{ error: unknown } | null} pending_error\n\t * @property {boolean} finished\n\t * @property {((result: IteratorResult<any, void>) => void) | null} waiting_resolve\n\t * @property {((reason: unknown) => void) | null} waiting_reject\n\t */\n\n\t/** @type {Set<Subscriber>} */\n\t#subscribers = new Set();\n\n\t/** @type {((instance: SharedIterator<T>) => (() => void)) | undefined} */\n\t#start = undefined;\n\n\t/** @type {(() => void) | undefined} */\n\t#stop = undefined;\n\n\t/** Once `done()` or `fail()` has been broadcast, no new values are accepted. */\n\t#closed = false;\n\n\t/** @type {unknown} */\n\t#terminal_error = undefined;\n\n\t/** Whether `done()` or `fail()` has been broadcast. */\n\tget closed() {\n\t\treturn this.#closed;\n\t}\n\n\t/**\n\t * @param {(instance: SharedIterator<T>) => (() => void)} [start]\n\t */\n\tconstructor(start) {\n\t\tthis.#start = start;\n\t}\n\n\t/** @param {T} value */\n\tpush(value) {\n\t\tif (this.#closed) return;\n\t\tfor (const subscriber of this.#subscribers) {\n\t\t\tif (subscriber.waiting_resolve) {\n\t\t\t\tconst resolve = subscriber.waiting_resolve;\n\t\t\t\tsubscriber.waiting_resolve = null;\n\t\t\t\tsubscriber.waiting_reject = null;\n\t\t\t\tresolve({ value, done: false });\n\t\t\t} else {\n\t\t\t\tsubscriber.pending = { value };\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Signal natural completion to all current subscribers, and to any future\n\t * subscriber (which will receive an immediately-done iterator).\n\t */\n\tdone() {\n\t\tif (this.#closed) return;\n\t\tthis.#closed = true;\n\t\tfor (const subscriber of this.#subscribers) {\n\t\t\tsubscriber.finished = true;\n\t\t\tif (subscriber.waiting_resolve) {\n\t\t\t\tconst resolve = subscriber.waiting_resolve;\n\t\t\t\tsubscriber.waiting_resolve = null;\n\t\t\t\tsubscriber.waiting_reject = null;\n\t\t\t\tresolve({ value: undefined, done: true });\n\t\t\t}\n\t\t}\n\t\tthis.#subscribers.clear();\n\t}\n\n\t/**\n\t * Broadcast a terminal error. All current subscribers will reject their\n\t * next `.next()` call with `error`. Future subscribers will also reject\n\t * their first `.next()`.\n\t *\n\t * @param {unknown} error\n\t */\n\tfail(error) {\n\t\tif (this.#closed) return;\n\t\tthis.#closed = true;\n\t\tthis.#terminal_error = error;\n\t\tfor (const subscriber of this.#subscribers) {\n\t\t\tsubscriber.finished = true;\n\t\t\tif (subscriber.waiting_reject) {\n\t\t\t\tconst reject = subscriber.waiting_reject;\n\t\t\t\tsubscriber.waiting_resolve = null;\n\t\t\t\tsubscriber.waiting_reject = null;\n\t\t\t\treject(error);\n\t\t\t} else {\n\t\t\t\tsubscriber.pending_error = { error };\n\t\t\t}\n\t\t}\n\t\tthis.#subscribers.clear();\n\t}\n\n\t/**\n\t * Subscribe to the shared stream. Returns an `AsyncGenerator<T>` that\n\t * yields every value pushed after this call (and, if `initial_value` is\n\t * provided, that value as the first yield).\n\t *\n\t * @param {{ initial_value?: { value: T } }} [options]\n\t * `initial_value` lets the caller seed the iterator with a synchronously-\n\t * available current value before any new pushes arrive (e.g. the\n\t * \"last-seen value\" of a reactive resource). Pass it wrapped in an\n\t * object so `undefined` can be distinguished from \"no initial value\".\n\t * @returns {AsyncGenerator<T, void, void>}\n\t */\n\tsubscribe(options) {\n\t\t/** @type {Subscriber} */\n\t\tconst subscriber = {\n\t\t\tpending: options?.initial_value ? { value: options.initial_value.value } : null,\n\t\t\tpending_error:\n\t\t\t\tthis.#closed && this.#terminal_error !== undefined ? { error: this.#terminal_error } : null,\n\t\t\tfinished: this.#closed && this.#terminal_error === undefined,\n\t\t\twaiting_resolve: null,\n\t\t\twaiting_reject: null\n\t\t};\n\n\t\tif (!subscriber.finished && subscriber.pending_error === null) {\n\t\t\tthis.#subscribers.add(subscriber);\n\t\t}\n\n\t\tif (!this.#closed) {\n\t\t\tthis.#stop ??= this.#start?.(this);\n\t\t}\n\n\t\tconst unsubscribe = () => {\n\t\t\tsubscriber.finished = true;\n\t\t\tconst was_present = this.#subscribers.delete(subscriber);\n\n\t\t\tif (was_present && this.#subscribers.size === 0) {\n\t\t\t\tthis.#stop?.();\n\t\t\t}\n\t\t};\n\n\t\t/** @type {AsyncGenerator<T, void, void>} */\n\t\tconst iterator = {\n\t\t\tnext() {\n\t\t\t\tif (subscriber.pending_error) {\n\t\t\t\t\tconst { error } = subscriber.pending_error;\n\t\t\t\t\tsubscriber.pending_error = null;\n\t\t\t\t\tunsubscribe();\n\t\t\t\t\treturn Promise.reject(error);\n\t\t\t\t}\n\n\t\t\t\tif (subscriber.pending) {\n\t\t\t\t\tconst { value } = subscriber.pending;\n\t\t\t\t\tsubscriber.pending = null;\n\t\t\t\t\treturn Promise.resolve({ value, done: false });\n\t\t\t\t}\n\n\t\t\t\tif (subscriber.finished) {\n\t\t\t\t\treturn Promise.resolve({ value: undefined, done: true });\n\t\t\t\t}\n\n\t\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\t\tsubscriber.waiting_resolve = resolve;\n\t\t\t\t\tsubscriber.waiting_reject = reject;\n\t\t\t\t});\n\t\t\t},\n\t\t\treturn(value) {\n\t\t\t\tunsubscribe();\n\t\t\t\tif (subscriber.waiting_resolve) {\n\t\t\t\t\tconst resolve = subscriber.waiting_resolve;\n\t\t\t\t\tsubscriber.waiting_resolve = null;\n\t\t\t\t\tsubscriber.waiting_reject = null;\n\t\t\t\t\tresolve({ value: undefined, done: true });\n\t\t\t\t}\n\t\t\t\treturn Promise.resolve({ value: /** @type {void} */ (value), done: true });\n\t\t\t},\n\t\t\tthrow(error) {\n\t\t\t\tunsubscribe();\n\t\t\t\tif (subscriber.waiting_reject) {\n\t\t\t\t\tconst reject = subscriber.waiting_reject;\n\t\t\t\t\tsubscriber.waiting_resolve = null;\n\t\t\t\t\tsubscriber.waiting_reject = null;\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\t\t\t\treturn Promise.reject(error);\n\t\t\t},\n\t\t\t[Symbol.asyncIterator]() {\n\t\t\t\treturn iterator;\n\t\t\t},\n\t\t\tasync [Symbol.asyncDispose]() {\n\t\t\t\t// TODO: investigate if this needs to be implemented\n\t\t\t}\n\t\t};\n\n\t\treturn iterator;\n\t}\n}\n","/** @import { RemoteLiveQuery, RemoteLiveQueryFunction, RemoteQuery, RemoteQueryFunction } from '$app/server' */\n/** @import { RequestEvent } from '@sveltejs/kit' */\n/** @import { RemoteInternals, MaybePromise, RequestState, RemoteQueryLiveInternals, RemoteQueryBatchInternals, RemoteQueryInternals, RemoteLiveQueryUserFunctionReturnType } from 'types' */\n/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\nimport { get_request_store } from '@sveltejs/kit/internal/server';\nimport { create_remote_key, stringify_remote_arg } from '../../../shared.js';\nimport { prerendering } from '#app/env/server';\nimport {\n\tcreate_validator,\n\tget_cache,\n\tget_response,\n\trun_remote_function,\n\trun_remote_generator\n} from './shared.js';\nimport { noop } from '../../../../utils/functions.js';\nimport { SharedIterator } from '../../../../utils/shared-iterator.js';\nimport { handle_error_and_jsonify } from '../../../server/errors.js';\nimport * as e from '../../../../messages/server-errors.js';\n\n/**\n * Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.\n *\n * @template Output\n * @overload\n * @param {() => MaybePromise<Output>} fn\n * @returns {RemoteQueryFunction<void, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.\n *\n * @template Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(arg: Input) => MaybePromise<Output>} fn\n * @returns {RemoteQueryFunction<Input, Output>}\n * @since 2.27\n */\n/**\n * Creates a remote query. When called from the browser, the function will be invoked on the server via a `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query) for full documentation.\n *\n * @template {StandardSchemaV1} Schema\n * @template Output\n * @overload\n * @param {Schema} schema\n * @param {(arg: StandardSchemaV1.InferOutput<Schema>) => MaybePromise<Output>} fn\n * @returns {RemoteQueryFunction<StandardSchemaV1.InferInput<Schema>, Output, StandardSchemaV1.InferOutput<Schema>>}\n * @since 2.27\n */\n/**\n * @template Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {(args?: Input) => MaybePromise<Output>} [maybe_fn]\n * @returns {RemoteQueryFunction<Input, Output>}\n * @since 2.27\n */\n/*@__NO_SIDE_EFFECTS__*/\nexport function query(validate_or_fn, maybe_fn) {\n\t/** @type {(arg?: Input) => Output} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {(arg?: any) => MaybePromise<Input>} */\n\tconst validate = create_validator(validate_or_fn, maybe_fn);\n\n\t/** @type {RemoteQueryInternals} */\n\tconst __ = {\n\t\ttype: 'query',\n\t\tid: '',\n\t\tname: '',\n\t\tvalidate,\n\t\tbind(payload, validated_arg) {\n\t\t\tconst { event, state } = get_request_store();\n\n\t\t\treturn create_query_resource(__, payload, event, state, () =>\n\t\t\t\trun_remote_function(\n\t\t\t\t\tevent,\n\t\t\t\t\t{ ...state, is_in_remote_query: true },\n\t\t\t\t\tfalse,\n\t\t\t\t\t() => validated_arg,\n\t\t\t\t\tfn\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t};\n\n\t/** @type {RemoteQueryFunction<Input, Output> & { __: RemoteQueryInternals }} */\n\tconst wrapper = (arg) => {\n\t\tif (prerendering) {\n\t\t\te.remote_query_prerender({ type: 'query', name: __.name });\n\t\t}\n\n\t\tconst { event, state } = get_request_store();\n\t\tconst payload = stringify_remote_arg(arg);\n\n\t\treturn create_query_resource(__, payload, event, state, () =>\n\t\t\trun_remote_function(\n\t\t\t\tevent,\n\t\t\t\t{ ...state, is_in_remote_query: true },\n\t\t\t\tfalse,\n\t\t\t\t() => validate(arg),\n\t\t\t\tfn\n\t\t\t)\n\t\t);\n\t};\n\n\tObject.defineProperty(wrapper, '__', { value: __ });\n\n\treturn wrapper;\n}\n\n/**\n * Creates a live remote query. When called from the browser, the function will be invoked on the server via a streaming `fetch` call.\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query.live) for full documentation.\n *\n * @template Output\n * @overload\n * @param {(arg: void) => RemoteLiveQueryUserFunctionReturnType<Output>} fn\n * @returns {RemoteLiveQueryFunction<void, Output>}\n */\n/**\n * @template Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(arg: Input) => RemoteLiveQueryUserFunctionReturnType<Output>} fn\n * @returns {RemoteLiveQueryFunction<Input, Output>}\n */\n/**\n * @template {StandardSchemaV1} Schema\n * @template Output\n * @overload\n * @param {Schema} schema\n * @param {(arg: StandardSchemaV1.InferOutput<Schema>) => RemoteLiveQueryUserFunctionReturnType<Output>} fn\n * @returns {RemoteLiveQueryFunction<StandardSchemaV1.InferInput<Schema>, Output, StandardSchemaV1.InferOutput<Schema>>}\n */\n/**\n * @template Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {(args: Input) => RemoteLiveQueryUserFunctionReturnType<Output>} [maybe_fn]\n * @returns {RemoteLiveQueryFunction<Input, Output>}\n */\n/*@__NO_SIDE_EFFECTS__*/\nfunction live(validate_or_fn, maybe_fn) {\n\t/** @type {(arg: Input) => RemoteLiveQueryUserFunctionReturnType<Output>} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {(arg?: any) => MaybePromise<Input>} */\n\tconst validate = create_validator(validate_or_fn, maybe_fn);\n\n\t/**\n\t * @param {any} event\n\t * @param {any} state\n\t * @param {any} get_input\n\t */\n\tconst run = (event, state, get_input) =>\n\t\trun_remote_generator(\n\t\t\tevent,\n\t\t\t{ ...state, is_in_remote_query: true },\n\t\t\tfalse,\n\t\t\tget_input,\n\t\t\tfn,\n\t\t\t__.name\n\t\t);\n\n\t/** @type {RemoteQueryLiveInternals} */\n\tconst __ = {\n\t\ttype: 'query_live',\n\t\tid: '',\n\t\tname: '',\n\t\trun: (event, state, arg) => run(event, state, () => validate(arg)),\n\t\tvalidate,\n\t\tbind(payload, validated_arg) {\n\t\t\tconst { event, state } = get_request_store();\n\n\t\t\treturn create_live_query_resource(__, payload, event, state, () =>\n\t\t\t\trun(event, state, () => validated_arg)\n\t\t\t);\n\t\t}\n\t};\n\n\t/** @type {RemoteLiveQueryFunction<Input, Output> & { __: RemoteQueryLiveInternals }} */\n\tconst wrapper = (arg) => {\n\t\tif (prerendering) {\n\t\t\te.remote_query_prerender({ type: 'query.live', name: __.name });\n\t\t}\n\n\t\tconst { event, state } = get_request_store();\n\t\tconst payload = stringify_remote_arg(arg);\n\n\t\treturn create_live_query_resource(__, payload, event, state, () =>\n\t\t\trun(event, state, () => validate(arg))\n\t\t);\n\t};\n\n\tObject.defineProperty(wrapper, '__', { value: __ });\n\n\treturn wrapper;\n}\n\n/**\n * Creates a batch query function that collects multiple calls and executes them in a single request\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query.batch) for full documentation.\n *\n * @template Input\n * @template Output\n * @overload\n * @param {'unchecked'} validate\n * @param {(args: Input[]) => MaybePromise<(arg: Input, idx: number) => Output>} fn\n * @returns {RemoteQueryFunction<Input, Output>}\n * @since 2.35\n */\n/**\n * Creates a batch query function that collects multiple calls and executes them in a single request\n *\n * See [Remote functions](https://svelte.dev/docs/kit/remote-functions#query.batch) for full documentation.\n *\n * @template {StandardSchemaV1} Schema\n * @template Output\n * @overload\n * @param {Schema} schema\n * @param {(args: StandardSchemaV1.InferOutput<Schema>[]) => MaybePromise<(arg: StandardSchemaV1.InferOutput<Schema>, idx: number) => Output>} fn\n * @returns {RemoteQueryFunction<StandardSchemaV1.InferInput<Schema>, Output, StandardSchemaV1.InferOutput<Schema>>}\n * @since 2.35\n */\n/**\n * @template Input\n * @template Output\n * @param {any} validate_or_fn\n * @param {(args?: Input[]) => MaybePromise<(arg: Input, idx: number) => Output>} [maybe_fn]\n * @returns {RemoteQueryFunction<Input, Output>}\n * @since 2.35\n */\n/*@__NO_SIDE_EFFECTS__*/\nfunction batch(validate_or_fn, maybe_fn) {\n\t/** @type {(args?: Input[]) => MaybePromise<(arg: Input, idx: number) => Output>} */\n\tconst fn = maybe_fn ?? validate_or_fn;\n\n\t/** @type {(arg?: any) => MaybePromise<Input>} */\n\tconst validate = create_validator(validate_or_fn, maybe_fn);\n\n\t/**\n\t * Enqueues a single call into the current batch (creating one if necessary)\n\t * and returns a promise that resolves with the result for this entry.\n\t *\n\t * @param {string} payload — the stringified raw argument (cache key)\n\t * @param {() => MaybePromise<any>} get_validated — produces the validated argument for this entry\n\t * @returns {Promise<any>}\n\t */\n\tconst enqueue = (payload, get_validated) => {\n\t\tconst { event, state } = get_request_store();\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst batches = (state.remote.batches ??=\n\t\t\t\t/** @type {NonNullable<typeof state.remote.batches>} */ (new Map()));\n\t\t\tlet batched = batches.get(__.id);\n\t\t\tif (!batched) {\n\t\t\t\tbatched = new Map();\n\t\t\t\tbatches.set(__.id, batched);\n\t\t\t}\n\t\t\tconst entry = batched.get(payload);\n\n\t\t\tif (entry) {\n\t\t\t\tentry.resolvers.push({ resolve, reject });\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tbatched.set(payload, {\n\t\t\t\tget_validated,\n\t\t\t\tresolvers: [{ resolve, reject }]\n\t\t\t});\n\n\t\t\tif (batched.size > 1) return;\n\n\t\t\tsetTimeout(async () => {\n\t\t\t\tbatches.delete(__.id);\n\t\t\t\tconst entries = Array.from(batched.values());\n\n\t\t\t\ttry {\n\t\t\t\t\treturn await run_remote_function(\n\t\t\t\t\t\tevent,\n\t\t\t\t\t\t{ ...state, is_in_remote_query: true },\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tasync () => Promise.all(entries.map((entry) => entry.get_validated())),\n\t\t\t\t\t\tasync (input) => {\n\t\t\t\t\t\t\tconst get_result = await fn(input);\n\n\t\t\t\t\t\t\tfor (let i = 0; i < entries.length; i++) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tconst result = get_result(input[i], i);\n\n\t\t\t\t\t\t\t\t\tfor (const resolver of entries[i].resolvers) {\n\t\t\t\t\t\t\t\t\t\tresolver.resolve(result);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\t\tfor (const resolver of entries[i].resolvers) {\n\t\t\t\t\t\t\t\t\t\tresolver.reject(error);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t} catch (error) {\n\t\t\t\t\tfor (const entry of batched.values()) {\n\t\t\t\t\t\tfor (const resolver of entry.resolvers) {\n\t\t\t\t\t\t\tresolver.reject(error);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, 0);\n\t\t});\n\t};\n\n\t/** @type {RemoteQueryBatchInternals} */\n\tconst __ = {\n\t\ttype: 'query_batch',\n\t\tid: '',\n\t\tname: '',\n\t\tvalidate,\n\t\trun: async (args) => {\n\t\t\tconst { event, state } = get_request_store();\n\n\t\t\treturn run_remote_function(\n\t\t\t\tevent,\n\t\t\t\t{ ...state, is_in_remote_query: true },\n\t\t\t\tfalse,\n\t\t\t\tasync () => Promise.all(args.map(validate)),\n\t\t\t\tasync (/** @type {any[]} */ input) => {\n\t\t\t\t\tconst get_result = await fn(input);\n\n\t\t\t\t\treturn Promise.all(\n\t\t\t\t\t\tinput.map(async (arg, i) => {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconst data = get_result(arg, i);\n\t\t\t\t\t\t\t\treturn { type: 'result', data };\n\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\tconst transformed = await handle_error_and_jsonify(event, state, error);\n\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\t\t\t\terror: transformed\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t);\n\t\t},\n\t\tbind(payload, validated_arg) {\n\t\t\tconst { event, state } = get_request_store();\n\n\t\t\treturn create_query_resource(__, payload, event, state, () =>\n\t\t\t\tenqueue(payload, () => validated_arg)\n\t\t\t);\n\t\t}\n\t};\n\n\t/** @type {RemoteQueryFunction<Input, Output> & { __: RemoteQueryBatchInternals }} */\n\tconst wrapper = (arg) => {\n\t\tif (prerendering) {\n\t\t\te.remote_query_prerender({ type: 'query.batch', name: __.name });\n\t\t}\n\n\t\tconst { event, state } = get_request_store();\n\t\tconst payload = stringify_remote_arg(arg);\n\n\t\treturn create_query_resource(__, payload, event, state, () =>\n\t\t\t// Collect all the calls to the same query in the same macrotask,\n\t\t\t// then execute them as one backend request.\n\t\t\tenqueue(payload, () => validate(arg))\n\t\t);\n\t};\n\n\tObject.defineProperty(wrapper, '__', { value: __ });\n\n\treturn wrapper;\n}\n\n/**\n * Include this value in the returned payload...\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {RemoteInternals} internals\n * @param {string} payload\n * @param {() => Promise<any>} fn\n */\nexport function refresh(event, state, internals, payload, fn) {\n\tif (!internals.id) {\n\t\t// unless this is a non-exported (i.e. private) query...\n\t\treturn;\n\t}\n\n\tif (!event.isRemoteRequest && state.is_in_remote_form_or_command) {\n\t\t// ...or this is a no-JS (native) form submission, where the page re-renders\n\t\t// anyway so there's no live client cache to apply a single-flight update to.\n\t\treturn;\n\t}\n\n\tconst key = create_remote_key(internals.id, payload);\n\n\t// `fn` is stored rather than invoked eagerly. The query is run at the end of\n\t// the request (in `collect_remote_data`), so that it observes any state\n\t// mutations that happen after `refresh()` is called. If the developer re-awaits\n\t// the query before the request finishes, the cache entry created by that await\n\t// is reused instead of re-running the query.\n\t(state.remote.explicit ??= new Map()).set(key, {\n\t\tinternals,\n\t\tfn\n\t});\n}\n\n/**\n * @param {RemoteInternals} __\n * @param {string} payload — the stringified raw argument (i.e. the cache key the client will use)\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {() => Promise<any>} fn\n * @returns {RemoteQuery<any>}\n */\nfunction create_query_resource(__, payload, event, state, fn) {\n\t/** @type {Promise<any> | null} */\n\tlet promise = null;\n\n\tconst get_promise = () => {\n\t\treturn (promise ??= get_response(__, payload, state, fn));\n\t};\n\n\tconst populate_hydratable = () => {\n\t\t// accessing data properties needs to kick off the work\n\t\t// so that it gets seeded in the hydration cache\n\t\t// and becomes available on the client\n\t\tif (__.id && state.is_in_render) {\n\t\t\t// swallow rejections so they don't crash the server — the error is\n\t\t\t// serialized into the response and surfaced on the client instead\n\t\t\tget_promise().catch(noop);\n\t\t}\n\t};\n\n\treturn {\n\t\t/** @type {Promise<any>['catch']} */\n\t\tcatch(onrejected) {\n\t\t\treturn get_promise().catch(onrejected);\n\t\t},\n\t\tget current() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn undefined;\n\t\t},\n\t\tget error() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn undefined;\n\t\t},\n\t\t/** @type {Promise<any>['finally']} */\n\t\tfinally(onfinally) {\n\t\t\treturn get_promise().finally(onfinally);\n\t\t},\n\t\tget loading() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn true;\n\t\t},\n\t\tget ready() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn false;\n\t\t},\n\t\trefresh() {\n\t\t\tpromise = null;\n\t\t\tdelete get_cache(__, state)[payload];\n\n\t\t\trefresh(event, state, __, payload, get_promise);\n\n\t\t\treturn Promise.resolve();\n\t\t},\n\t\t/** @param {any} value */\n\t\tset(value) {\n\t\t\tconst p = (promise = Promise.resolve(value));\n\t\t\tget_cache(__, state)[payload] = p;\n\n\t\t\trefresh(event, state, __, payload, () => p);\n\t\t},\n\t\t/** @type {Promise<any>['then']} */\n\t\tthen(onfulfilled, onrejected) {\n\t\t\treturn get_promise().then(onfulfilled, onrejected);\n\t\t},\n\t\twithOverride() {\n\t\t\te.server_api_unavailable({ name: `${__.name}.withOverride()` });\n\t\t},\n\t\tget [Symbol.toStringTag]() {\n\t\t\treturn 'QueryResource';\n\t\t}\n\t};\n}\n\n/**\n * @param {RemoteQueryLiveInternals} __\n * @param {string} payload — the stringified raw argument (i.e. the cache key the client will use)\n * @param {RequestEvent} event\n * @param {RequestState} state\n * @param {() => AsyncGenerator<any, void, void>} get_generator\n * @returns {RemoteLiveQuery<any>}\n */\nfunction create_live_query_resource(__, payload, event, state, get_generator) {\n\t/** @type {Promise<any> | null} */\n\tlet promise = null;\n\n\tconst get_first_value = async () => {\n\t\tfor await (const value of get_generator()) {\n\t\t\treturn value;\n\t\t}\n\t\te.remote_query_live_no_value({ name: __.name });\n\t};\n\n\tconst get_promise = () => {\n\t\treturn (promise ??= get_response(__, payload, state, get_first_value));\n\t};\n\n\tconst populate_hydratable = () => {\n\t\tif (__.id && state.is_in_render) {\n\t\t\t// swallow rejections so they don't crash the server — the error is\n\t\t\t// serialized into the response and surfaced on the client instead\n\t\t\tget_promise().catch(noop);\n\t\t}\n\t};\n\n\treturn {\n\t\t/** @type {Promise<any>['catch']} */\n\t\tcatch(onrejected) {\n\t\t\treturn get_promise().catch(onrejected);\n\t\t},\n\t\tget current() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn undefined;\n\t\t},\n\t\tget error() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn undefined;\n\t\t},\n\t\t/** @type {Promise<any>['finally']} */\n\t\tfinally(onfinally) {\n\t\t\treturn get_promise().finally(onfinally);\n\t\t},\n\t\tget done() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn false;\n\t\t},\n\t\tget loading() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn true;\n\t\t},\n\t\tget ready() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn false;\n\t\t},\n\t\tget connected() {\n\t\t\tpopulate_hydratable();\n\t\t\treturn false;\n\t\t},\n\t\treconnect() {\n\t\t\tpromise = null;\n\t\t\tdelete get_cache(__, state)[payload];\n\n\t\t\trefresh(event, state, __, payload, get_promise);\n\n\t\t\treturn Promise.resolve();\n\t\t},\n\t\t/** @type {Promise<any>['then']} */\n\t\tthen(onfulfilled, onrejected) {\n\t\t\treturn get_promise().then(onfulfilled, onrejected);\n\t\t},\n\t\t[Symbol.asyncIterator]() {\n\t\t\tconst key = create_remote_key(__.id, payload);\n\t\t\tconst cache = (state.remote.live_iterators ??= new Map());\n\t\t\tlet cached = cache.get(key);\n\t\t\tif (!cached) {\n\t\t\t\tcached = create_shared_live_iterator(event.request.signal, get_generator);\n\t\t\t\tcache.set(key, cached);\n\t\t\t}\n\t\t\treturn cached.subscribe();\n\t\t},\n\t\tget [Symbol.toStringTag]() {\n\t\t\treturn 'LiveQueryResource';\n\t\t}\n\t};\n}\n\n/**\n * Wraps a lazily-created live-query generator so that multiple `for await`\n * consumers within the same request share one underlying iteration. The first\n * subscriber starts the generator; values are broadcast to all subscribers\n * via a `SharedIterator`. When the last subscriber unsubscribes, the generator\n * is closed via `generator.return(undefined)`.\n *\n * If `signal` aborts (typically because the client has disconnected), the\n * pump is torn down and any in-flight `next()` calls on consumer iterators\n * resolve with `{ done: true }`, so suspended `for await` loops unwind\n * cleanly rather than leaking.\n *\n * @param {AbortSignal} signal\n * @param {() => AsyncGenerator<any, void, void>} get_generator\n */\nfunction create_shared_live_iterator(signal, get_generator) {\n\treturn new SharedIterator((instance) => {\n\t\t// Don't bother starting the pump if the request has already been\n\t\t// aborted between cache creation and first subscription.\n\t\tif (signal.aborted) {\n\t\t\tinstance.done();\n\t\t\treturn noop;\n\t\t}\n\n\t\tconst generator = get_generator();\n\n\t\t// Set to `true` when we deliberately close the generator (because every\n\t\t// subscriber has unsubscribed, or the request was aborted). The pump's\n\t\t// `generator.next()` will reject as a result; we use this flag to swallow that\n\t\t// abort error rather than surfacing it through `instance.fail()`.\n\t\tlet aborted = false;\n\n\t\tconst close = () => {\n\t\t\taborted = true;\n\t\t\tvoid generator.return().catch(noop);\n\t\t};\n\n\t\t// On request abort, tear down the pump and notify subscribers. `done()` is\n\t\t// used (rather than `fail()`) because an aborted request is a normal\n\t\t// termination — there's no error to surface to user code that's already\n\t\t// been disconnected from the client.\n\t\tsignal.addEventListener('abort', () => (close(), instance.done()), { once: true });\n\n\t\tvoid (async () => {\n\t\t\ttry {\n\t\t\t\twhile (true) {\n\t\t\t\t\tconst result = await generator.next();\n\t\t\t\t\tif (result.done) {\n\t\t\t\t\t\tinstance.done();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tinstance.push(result.value);\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tif (!aborted) instance.fail(error);\n\t\t\t} finally {\n\t\t\t\tclose();\n\t\t\t}\n\t\t})();\n\n\t\treturn close;\n\t});\n}\n\n// Add batch as a property to the query function\nObject.defineProperty(query, 'batch', { value: batch, enumerable: true });\nObject.defineProperty(query, 'live', { value: live, enumerable: true });\n","/** @import { RemoteLiveQuery, RemoteLiveQueryFunction, RemoteQuery, RemoteQueryFunction, RequestedResult, RemoteQueryRequestedResult, RemoteLiveQueryRequestedResult } from '$app/server' */\n/** @import { MaybePromise, RemoteAnyQueryInternals } from 'types' */\nimport { get_request_store } from '@sveltejs/kit/internal/server';\nimport { create_remote_key, parse_remote_arg } from '../../../shared.js';\nimport { noop } from '../../../../utils/functions.js';\nimport { get_cache } from './shared.js';\nimport { refresh } from './query.js';\nimport * as e from '../../../../messages/server-errors.js';\n\n/**\n * Inside a remote `command` or `form` callback, returns an iterable\n * of `{ arg, query }` entries for the query instances the client asked to refresh, up to\n * the supplied `limit`. Each `query` is a `RemoteQuery` bound to the original\n * client-side cache key, so `refresh()` / `set()` propagate correctly even when\n * the query's schema transforms the input. `arg` is the *validated* argument,\n * i.e. the value after the schema has run (so `InferOutput<Schema>` for queries\n * declared with a Standard Schema).\n *\n * Arguments that fail validation or exceed `limit` are recorded as failures in\n * the response to the client.\n * See [Client-requested refreshes](https://svelte.dev/docs/kit/remote-functions#Single-flight-mutations-Client-requested-refreshes)\n * for usage in a remote `command` or `form`.\n *\n * @example\n * ```ts\n * import { requested } from '$app/server';\n *\n * for (const { arg, query } of requested(getPost, 5)) {\n * \t// `arg` is the validated argument; `query` is bound to the client's\n * \t// cache key. It's safe to throw away this promise -- SvelteKit will\n * \t// await it and forward any errors to the client.\n * \tvoid query.refresh();\n * }\n * ```\n *\n * As a shorthand for the above, you can also call `refreshAll` on the result:\n *\n * @example\n * ```ts\n * import { requested } from '$app/server';\n *\n * await requested(getPost, 5).refreshAll();\n * ```\n *\n * Works with `query.batch` as well — refreshes for individual entries are\n * collected into a single batched call.\n *\n * For live queries, the same applies, but with `reconnect` and `reconnectAll`.\n *\n * @template Input\n * @template Output\n * @template [Validated=Input]\n * @overload\n * @param {RemoteQueryFunction<Input, Output, Validated>} query\n * @param {number} limit\n * @returns {RemoteQueryRequestedResult<Validated, Output>}\n */\n/**\n * Inside a remote `command` or `form` callback, returns an iterable\n * of `{ arg, query }` entries for the live query instances the client asked to reconnect, up to\n * the supplied `limit`. Each `query` is a `RemoteLiveQuery` bound to the original\n * client-side cache key, so `reconnect()` propagates correctly even when\n * the query's schema transforms the input. `arg` is the *validated* argument.\n *\n * Arguments that fail validation or exceed `limit` are recorded as failures in\n * the response to the client.\n * See [Client-requested refreshes](https://svelte.dev/docs/kit/remote-functions#Single-flight-mutations-Client-requested-refreshes)\n * for usage in a remote `command` or `form`.\n *\n * @example\n * ```ts\n * import { requested } from '$app/server';\n *\n * for (const { query } of requested(getPost, 5)) {\n * \tvoid query.reconnect();\n * }\n * ```\n *\n * As a shorthand, you can also call `reconnectAll` on the result:\n *\n * @example\n * ```ts\n * import { requested } from '$app/server';\n *\n * await requested(getPost, 5).reconnectAll();\n * ```\n *\n * @template Input\n * @template Output\n * @template [Validated=Input]\n * @overload\n * @param {RemoteLiveQueryFunction<Input, Output, Validated>} query\n * @param {number} limit\n * @returns {RemoteLiveQueryRequestedResult<Validated, Output>}\n */\n/**\n * @template Input\n * @template Output\n * @template [Validated=Input]\n * @param {RemoteQueryFunction<Input, Output, Validated> | RemoteLiveQueryFunction<Input, Output, Validated>} query\n * @param {number} limit\n * @returns {RequestedResult<Validated, Output>}\n */\nexport function requested(query, limit) {\n\tconst { event, state } = get_request_store();\n\tconst internals = /** @type {RemoteAnyQueryInternals | undefined} */ (\n\t\t/** @type {any} */ (query).__\n\t);\n\n\tif (\n\t\tinternals?.type !== 'query' &&\n\t\tinternals?.type !== 'query_batch' &&\n\t\tinternals?.type !== 'query_live'\n\t) {\n\t\te.remote_requested_invalid_query();\n\t}\n\n\t// narrow-stable alias so generator closures below don't lose the narrowing\n\tconst __ = internals;\n\n\tconst requested = state.remote.requested;\n\tconst payloads = requested?.get(__.id) ?? new Set();\n\tconst ignored = (state.remote.ignored ??= new Set());\n\n\t/** @param {string} payload */\n\tconst consume = (payload) => {\n\t\tpayloads.delete(payload);\n\t\tif (payloads.size === 0) requested?.delete(__.id);\n\t};\n\n\t/** @param {string} payload */\n\tconst create_ignore = (payload) => () => {\n\t\tignored.add(create_remote_key(__.id, payload));\n\t};\n\n\t// note: don't initialize these maps here -- they will be initialized by the\n\t// command/form wrapper when we enter them, and if we initialize them here\n\t// we will enable requested(...) in contexts where it shouldn't be allowed,\n\t// such as load functions or other server functions\n\tif (!state.is_in_remote_form_or_command) {\n\t\te.remote_requested_context();\n\t}\n\tconst [selected, skipped] = split_limit([...payloads], limit);\n\n\t/**\n\t * Registers the failure exactly like `.set()` registers a value: the error record\n\t * is serialized to the client (putting the query there into a failed state), and\n\t * subsequent server-side calls of the query with the same argument reject with it.\n\t * @param {string} payload\n\t * @param {unknown} error\n\t */\n\tconst record_failure = (payload, error) => {\n\t\tconst promise = Promise.reject(error);\n\t\tpromise.catch(noop);\n\n\t\tget_cache(__, state)[payload] = promise;\n\t\trefresh(event, state, __, payload, () => promise);\n\t};\n\n\tfor (const payload of skipped) consume(payload);\n\n\tconst result = {\n\t\t*[Symbol.iterator]() {\n\t\t\tfor (const payload of selected) {\n\t\t\t\tconsume(payload);\n\t\t\t\ttry {\n\t\t\t\t\tconst parsed = parse_remote_arg(payload);\n\t\t\t\t\tconst validated = __.validate(parsed);\n\n\t\t\t\t\tif (is_thenable(validated)) {\n\t\t\t\t\t\te.remote_requested_async_validator({ name: __.name, limit: String(limit) });\n\t\t\t\t\t}\n\n\t\t\t\t\tyield {\n\t\t\t\t\t\targ: validated,\n\t\t\t\t\t\tquery: __.bind(payload, validated),\n\t\t\t\t\t\tignore: create_ignore(payload)\n\t\t\t\t\t};\n\t\t\t\t} catch (error) {\n\t\t\t\t\trecord_failure(payload, error);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tasync *[Symbol.asyncIterator]() {\n\t\t\tyield* race_all(selected, async (payload) => {\n\t\t\t\tconsume(payload);\n\t\t\t\ttry {\n\t\t\t\t\tconst parsed = parse_remote_arg(payload);\n\t\t\t\t\tconst validated = await __.validate(parsed);\n\t\t\t\t\treturn {\n\t\t\t\t\t\targ: validated,\n\t\t\t\t\t\tquery: __.bind(payload, validated),\n\t\t\t\t\t\tignore: create_ignore(payload)\n\t\t\t\t\t};\n\t\t\t\t} catch (error) {\n\t\t\t\t\trecord_failure(payload, error);\n\t\t\t\t\tthrow new Error(`Skipping ${__.name}(${payload})`, { cause: error });\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tasync refreshAll() {\n\t\t\tif (__.type === 'query_live') {\n\t\t\t\te.remote_requested_wrong_method({\n\t\t\t\t\tmethod: 'refreshAll',\n\t\t\t\t\ttype: 'live',\n\t\t\t\t\treplacement: 'reconnectAll'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfor await (const { query } of result) {\n\t\t\t\tvoid (/** @type {RemoteQuery<Output>} */ (query).refresh());\n\t\t\t}\n\t\t},\n\t\tasync reconnectAll() {\n\t\t\tif (__.type !== 'query_live') {\n\t\t\t\te.remote_requested_wrong_method({\n\t\t\t\t\tmethod: 'reconnectAll',\n\t\t\t\t\ttype: 'regular',\n\t\t\t\t\treplacement: 'refreshAll'\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tfor await (const { query } of result) {\n\t\t\t\tvoid (/** @type {RemoteLiveQuery<Output>} */ (query).reconnect());\n\t\t\t}\n\t\t},\n\t\tasync ignoreAll() {\n\t\t\tfor await (const { ignore } of result) ignore();\n\t\t}\n\t};\n\n\treturn /** @type {RequestedResult<Validated, Output>} */ (/** @type {unknown} */ (result));\n}\n\n/**\n * @template T\n * @param {Array<T>} array\n * @param {number} limit\n * @returns {[Array<T>, Array<T>]}\n */\nfunction split_limit(array, limit) {\n\tif (limit === Infinity) {\n\t\treturn [array, []];\n\t}\n\tif (!Number.isInteger(limit) || limit < 0) {\n\t\te.remote_requested_invalid_limit();\n\t}\n\treturn [array.slice(0, limit), array.slice(limit)];\n}\n\n/**\n * @param {any} value\n * @returns {value is PromiseLike<any>}\n */\nfunction is_thenable(value) {\n\treturn !!value && (typeof value === 'object' || typeof value === 'function') && 'then' in value;\n}\n\n/**\n * Runs all callbacks immediately and yields resolved values in completion order.\n * If the promise rejects, it is skipped.\n *\n * @template T\n * @template R\n * @param {Array<T>} array\n * @param {(value: T) => MaybePromise<R>} fn\n * @returns {AsyncIterable<R>}\n */\nasync function* race_all(array, fn) {\n\t/** @type {Set<Promise<{ promise: Promise<any>, value: Awaited<R> }>>} */\n\tconst pending = new Set();\n\n\tfor (const value of array) {\n\t\t/** @type {Promise<{ promise: Promise<any>, value: Awaited<R> }>} */\n\t\tconst promise = Promise.resolve(fn(value)).then((result) => ({\n\t\t\tpromise,\n\t\t\tvalue: result\n\t\t}));\n\n\t\tpromise.catch(() => pending.delete(promise));\n\t\tpending.add(promise);\n\t}\n\n\twhile (pending.size > 0) {\n\t\ttry {\n\t\t\tconst { promise, value } = await Promise.race(pending);\n\t\t\tpending.delete(promise);\n\t\t\tyield value;\n\t\t} catch {\n\t\t\t// Ignore errors, they are handled in the fn callback and result in skip\n\t\t}\n\t}\n}\n"],"ignoreList":[0,1,2,3,4,5,6],"mappings":";;;;;;;;;;;;;;AAYA,SAAgB,iBAAiB,gBAAgB,UAAU;CAE1D,IAAI,CAAC,UACJ,QAAQ,QAAQ;EACf,IAAI,QAAQ,KAAA,GACX,MAAM,KAAK,aAAa;CAE1B;CAID,IAAI,mBAAmB,aACtB,QAAQ,QAAQ;CAIjB,IAAI,e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|
1
|
+
import { create_server } from './index.js';
|
|
2
|
+
const manifest = (() => {
|
|
3
|
+
function __memo(fn) {
|
|
4
|
+
let value;
|
|
5
|
+
return () => value ??= (value = fn());
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
app_dir: "_app",
|
|
10
|
+
app_path: "_app",
|
|
11
|
+
assets: new Set(["apple-touch-icon.png","favicon.ico","fox_kyubi_192.png","fox_kyubi_32.png","fox_kyubi_512.png","fox_kyubi_64.png","manifest.webmanifest"]),
|
|
12
|
+
mime_types: {".png":"image/png",".ico":"image/x-icon",".webmanifest":"application/manifest+json"},
|
|
13
|
+
client: {start:"_app/immutable/entry/start.CNV5BTCO.js",app:"_app/immutable/entry/app.DLayTcYu.js",imports:["_app/immutable/entry/start.CNV5BTCO.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/BaNbYf_w.js","_app/immutable/chunks/Lb3VuXoN.js","_app/immutable/chunks/PrdhfbrQ.js","_app/immutable/chunks/Dek69VGa.js","_app/immutable/chunks/D-Kujhko.js","_app/immutable/chunks/Cg3pm-K7.js","_app/immutable/entry/app.DLayTcYu.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
|
+
|
|
15
|
+
nodes: [
|
|
16
|
+
__memo(() => import('./nodes/0.js')),
|
|
17
|
+
__memo(() => import('./nodes/1.js')),
|
|
18
|
+
__memo(() => import('./nodes/2.js')),
|
|
19
|
+
__memo(() => import('./nodes/3.js')),
|
|
20
|
+
__memo(() => import('./nodes/4.js')),
|
|
21
|
+
__memo(() => import('./nodes/5.js')),
|
|
22
|
+
__memo(() => import('./nodes/6.js')),
|
|
23
|
+
__memo(() => import('./nodes/7.js')),
|
|
24
|
+
__memo(() => import('./nodes/8.js')),
|
|
25
|
+
__memo(() => import('./nodes/9.js')),
|
|
26
|
+
__memo(() => import('./nodes/10.js')),
|
|
27
|
+
__memo(() => import('./nodes/11.js')),
|
|
28
|
+
__memo(() => import('./nodes/12.js')),
|
|
29
|
+
__memo(() => import('./nodes/13.js')),
|
|
30
|
+
__memo(() => import('./nodes/14.js')),
|
|
31
|
+
__memo(() => import('./nodes/15.js')),
|
|
32
|
+
__memo(() => import('./nodes/16.js'))
|
|
33
|
+
],
|
|
34
|
+
remotes: {
|
|
35
|
+
|
|
36
|
+
},
|
|
37
|
+
routes: [
|
|
38
|
+
{
|
|
39
|
+
id: "/",
|
|
40
|
+
pattern: /^\/$/,
|
|
41
|
+
params: [],
|
|
42
|
+
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
43
|
+
endpoint: null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "/agents",
|
|
47
|
+
pattern: /^\/agents\/?$/,
|
|
48
|
+
params: [],
|
|
49
|
+
page: { layouts: [0,], errors: [1,], leaf: 3 },
|
|
50
|
+
endpoint: null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "/bridges",
|
|
54
|
+
pattern: /^\/bridges\/?$/,
|
|
55
|
+
params: [],
|
|
56
|
+
page: { layouts: [0,], errors: [1,], leaf: 4 },
|
|
57
|
+
endpoint: null
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "/clients",
|
|
61
|
+
pattern: /^\/clients\/?$/,
|
|
62
|
+
params: [],
|
|
63
|
+
page: { layouts: [0,], errors: [1,], leaf: 5 },
|
|
64
|
+
endpoint: null
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "/context",
|
|
68
|
+
pattern: /^\/context\/?$/,
|
|
69
|
+
params: [],
|
|
70
|
+
page: { layouts: [0,], errors: [1,], leaf: 6 },
|
|
71
|
+
endpoint: null
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "/dashboard",
|
|
75
|
+
pattern: /^\/dashboard\/?$/,
|
|
76
|
+
params: [],
|
|
77
|
+
page: { layouts: [0,], errors: [1,], leaf: 7 },
|
|
78
|
+
endpoint: null
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: "/detector",
|
|
82
|
+
pattern: /^\/detector\/?$/,
|
|
83
|
+
params: [],
|
|
84
|
+
page: { layouts: [0,], errors: [1,], leaf: 8 },
|
|
85
|
+
endpoint: null
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: "/docs",
|
|
89
|
+
pattern: /^\/docs\/?$/,
|
|
90
|
+
params: [],
|
|
91
|
+
page: { layouts: [0,], errors: [1,], leaf: 9 },
|
|
92
|
+
endpoint: null
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: "/doctor",
|
|
96
|
+
pattern: /^\/doctor\/?$/,
|
|
97
|
+
params: [],
|
|
98
|
+
page: { layouts: [0,], errors: [1,], leaf: 10 },
|
|
99
|
+
endpoint: null
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "/persona",
|
|
103
|
+
pattern: /^\/persona\/?$/,
|
|
104
|
+
params: [],
|
|
105
|
+
page: { layouts: [0,], errors: [1,], leaf: 11 },
|
|
106
|
+
endpoint: null
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: "/savings",
|
|
110
|
+
pattern: /^\/savings\/?$/,
|
|
111
|
+
params: [],
|
|
112
|
+
page: { layouts: [0,], errors: [1,], leaf: 12 },
|
|
113
|
+
endpoint: null
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "/search",
|
|
117
|
+
pattern: /^\/search\/?$/,
|
|
118
|
+
params: [],
|
|
119
|
+
page: { layouts: [0,], errors: [1,], leaf: 13 },
|
|
120
|
+
endpoint: null
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "/semble",
|
|
124
|
+
pattern: /^\/semble\/?$/,
|
|
125
|
+
params: [],
|
|
126
|
+
page: { layouts: [0,], errors: [1,], leaf: 14 },
|
|
127
|
+
endpoint: null
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "/skills",
|
|
131
|
+
pattern: /^\/skills\/?$/,
|
|
132
|
+
params: [],
|
|
133
|
+
page: { layouts: [0,], errors: [1,], leaf: 15 },
|
|
134
|
+
endpoint: null
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: "/tasks",
|
|
138
|
+
pattern: /^\/tasks\/?$/,
|
|
139
|
+
params: [],
|
|
140
|
+
page: { layouts: [0,], errors: [1,], leaf: 16 },
|
|
141
|
+
endpoint: null
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
prerendered_routes: new Set([]),
|
|
145
|
+
matchers: async () => {
|
|
146
|
+
return {};
|
|
147
|
+
},
|
|
148
|
+
server_assets: {}
|
|
149
|
+
}
|
|
150
|
+
})();
|
|
151
|
+
export const server = create_server(manifest);
|
package/apps/web/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "konoha-web",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#lib/*": "./src/lib/*"
|
|
@@ -17,19 +17,20 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@playwright/test": "^1.63.0",
|
|
20
|
-
"@sveltejs/adapter-node": "6.0.0
|
|
21
|
-
"@sveltejs/kit": "3.0.
|
|
22
|
-
"@sveltejs/vite-plugin-svelte": "^7.3.
|
|
20
|
+
"@sveltejs/adapter-node": "^6.0.0",
|
|
21
|
+
"@sveltejs/kit": "^3.0.1",
|
|
22
|
+
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
23
23
|
"@tailwindcss/vite": "^4.3.3",
|
|
24
|
-
"svelte": "^5.57.
|
|
25
|
-
"svelte-check": "^4.
|
|
24
|
+
"svelte": "^5.57.2",
|
|
25
|
+
"svelte-check": "^4.7.6",
|
|
26
26
|
"tailwindcss": "^4.3.3",
|
|
27
|
-
"vite": "^8.
|
|
27
|
+
"vite": "^8.3.3"
|
|
28
28
|
},
|
|
29
29
|
"pnpm": {
|
|
30
30
|
"overrides": {
|
|
31
|
-
"devalue": ">=
|
|
32
|
-
"source-map-js
|
|
31
|
+
"devalue": ">=6.0.2",
|
|
32
|
+
"source-map-js": ">=1.2.2",
|
|
33
|
+
"playwright-core": "^1.63.0"
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
}
|
package/bin/cli.js
CHANGED
|
@@ -1206,7 +1206,7 @@ function getCliVersion() {
|
|
|
1206
1206
|
} catch { /* intentional best-effort fallback: failure here must never crash the CLI/MCP runtime */ }
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
return '2.1.
|
|
1209
|
+
return '2.1.5';
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
function drawLogo() {
|
|
@@ -1281,7 +1281,7 @@ function checkPython() {
|
|
|
1281
1281
|
function hasCompleteDatabaseSchema(_ = null) {
|
|
1282
1282
|
if (!fileExists(DB_PATH)) return false;
|
|
1283
1283
|
try {
|
|
1284
|
-
const Database = require('
|
|
1284
|
+
const Database = require('../src/sqlite_driver');
|
|
1285
1285
|
const db = new Database(DB_PATH, { readonly: true });
|
|
1286
1286
|
const required = ["skills", "skills_fts", "tool_calls", "active_sessions", "agents", "bridges"];
|
|
1287
1287
|
const rows = db.prepare("SELECT name FROM sqlite_master WHERE type='table'").all();
|
|
@@ -1341,7 +1341,7 @@ function verifySkillDatabaseContract(python = null, requiredSkill = 'genin-skill
|
|
|
1341
1341
|
return { ok: false, reason: 'skills database is unavailable' };
|
|
1342
1342
|
}
|
|
1343
1343
|
try {
|
|
1344
|
-
const Database = require('
|
|
1344
|
+
const Database = require('../src/sqlite_driver');
|
|
1345
1345
|
const db = new Database(DB_PATH, { readonly: true });
|
|
1346
1346
|
const hasRequired = !!db.prepare("SELECT 1 FROM skills WHERE name = ?").get(requiredSkill);
|
|
1347
1347
|
const legacy = db.prepare("SELECT name FROM skills WHERE name LIKE 'deep-code-explorer%' OR skill_name = 'deep-code-explorer'").all().map(r => r.name);
|
|
@@ -2986,7 +2986,7 @@ function installCliRuntime() {
|
|
|
2986
2986
|
const destWebDir = path.join(SKILLS_DB_DIR, 'apps', 'web');
|
|
2987
2987
|
const destWebPkg = path.join(destWebDir, 'package.json');
|
|
2988
2988
|
if (!fileExists(destWebPkg)) {
|
|
2989
|
-
fs.writeFileSync(destWebPkg, JSON.stringify({ name: 'konoha-web', version: '2.1.
|
|
2989
|
+
fs.writeFileSync(destWebPkg, JSON.stringify({ name: 'konoha-web', version: '2.1.5', type: 'module', private: true }, null, 2) + '\n');
|
|
2990
2990
|
}
|
|
2991
2991
|
fs.writeFileSync(path.join(webBuildDest, 'package.json'), '{\n "type": "module"\n}\n');
|
|
2992
2992
|
info(`Pre-built Web UI installed to ${webBuildDest}`);
|
|
@@ -3010,7 +3010,7 @@ function installCliRuntime() {
|
|
|
3010
3010
|
const destWebDir = path.join(SKILLS_DB_DIR, 'apps', 'web');
|
|
3011
3011
|
const destWebPkg = path.join(destWebDir, 'package.json');
|
|
3012
3012
|
if (!fileExists(destWebPkg)) {
|
|
3013
|
-
fs.writeFileSync(destWebPkg, JSON.stringify({ name: 'konoha-web', version: '2.1.
|
|
3013
|
+
fs.writeFileSync(destWebPkg, JSON.stringify({ name: 'konoha-web', version: '2.1.5', type: 'module', private: true }, null, 2) + '\n');
|
|
3014
3014
|
}
|
|
3015
3015
|
fs.writeFileSync(path.join(webBuildDest, 'package.json'), '{\n "type": "module"\n}\n');
|
|
3016
3016
|
info(`Pre-built Web UI installed to ${webBuildDest}`);
|
|
@@ -3022,7 +3022,7 @@ function installCliRuntime() {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
|
|
3024
3024
|
// Ensure runtime dependencies for the installed CLI (idempotent, best-effort)
|
|
3025
|
-
const depMarker = path.join(SKILLS_DB_DIR, 'node_modules', '
|
|
3025
|
+
const depMarker = path.join(SKILLS_DB_DIR, 'node_modules', '@bufbuild', 'protobuf');
|
|
3026
3026
|
if (!fileExists(depMarker)) {
|
|
3027
3027
|
const isWin = process.platform === 'win32';
|
|
3028
3028
|
const { env: childEnv } = deployUtils.resolveCompatibleNodeEnv(process.env);
|
package/bin/lib/ui_commands.js
CHANGED
|
@@ -850,7 +850,7 @@ async function cmdUiBuild() {
|
|
|
850
850
|
];
|
|
851
851
|
for (const cand of candidates) {
|
|
852
852
|
const pkg = path.join(cand, 'package.json');
|
|
853
|
-
if (fileExists(pkg) && fileExists(path.join(cand, 'src', 'routes'))) {
|
|
853
|
+
if (fileExists(pkg) && (fileExists(path.join(cand, 'src', 'routes')) || fileExists(path.join(cand, 'public')))) {
|
|
854
854
|
try {
|
|
855
855
|
const parsed = JSON.parse(fs.readFileSync(pkg, 'utf8'));
|
|
856
856
|
if (parsed.scripts && parsed.scripts.build) {
|
|
@@ -862,7 +862,7 @@ async function cmdUiBuild() {
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
const hasSources = webDir && fileExists(path.join(webDir, 'package.json'))
|
|
865
|
-
&& fileExists(path.join(webDir, 'src', 'routes'));
|
|
865
|
+
&& (fileExists(path.join(webDir, 'src', 'routes')) || fileExists(path.join(webDir, 'public')));
|
|
866
866
|
if (!hasSources) {
|
|
867
867
|
const installedHandler = path.join(SKILLS_DB_DIR, 'apps', 'web', 'build', 'handler.js');
|
|
868
868
|
if (fileExists(installedHandler)) {
|
|
@@ -889,8 +889,9 @@ async function cmdUiBuild() {
|
|
|
889
889
|
} catch (_) { return false; }
|
|
890
890
|
})();
|
|
891
891
|
|
|
892
|
+
const isZeroDep = fileExists(path.join(webDir, 'scripts', 'build.js'));
|
|
892
893
|
const viteBin = path.join(webDir, 'node_modules', '.bin', isWin ? 'vite.cmd' : 'vite');
|
|
893
|
-
if (!fileExists(viteBin)) {
|
|
894
|
+
if (!isZeroDep && !fileExists(viteBin)) {
|
|
894
895
|
info(`Installing apps/web dependencies in ${webDir}...`);
|
|
895
896
|
if (hasPnpm) {
|
|
896
897
|
try {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# QA & E2E Verification Report — Konoha v2.1.5
|
|
2
|
+
|
|
3
|
+
- **Report Date**: 2026-10-07
|
|
4
|
+
- **Target Release**: `konoha-mcp@2.1.5`
|
|
5
|
+
- **Node.js Runtime**: `v22.23.3` (satisfies `engines.node >= 22.16.0`)
|
|
6
|
+
- **Package Manager**: `pnpm v10.8.0`
|
|
7
|
+
- **Host OS**: Linux (x86_64, Ubuntu)
|
|
8
|
+
- **Status**: **100% PASS (0 Failed, 0 Skipped, 0 Quarantined)**
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 1. Executive Summary
|
|
13
|
+
|
|
14
|
+
| Verification Category | Target | Evaluated Result | Status |
|
|
15
|
+
|---|---|---|---|
|
|
16
|
+
| **JavaScript Test Runner** | 100% Passing Suites | **103 / 103 Suites Passed (173.7s)** | ✅ PASS |
|
|
17
|
+
| **New SQLite Driver Tests** | Zero-native verification | **`test_sqlite_driver.js` Passed (0.1s)** | ✅ PASS |
|
|
18
|
+
| **Version Sync Test** | `package.json` == CLI == Web | **`test_version_sync.js` Passed (0.1s)** | ✅ PASS |
|
|
19
|
+
| **Packaging E2E Install** | Clean prefix tarball install | **`konoha-mcp-2.1.5.tgz` Clean Run** | ✅ PASS |
|
|
20
|
+
| **CLI Command Matrix** | `version`, `status`, `migrate`, `test` | **All commands exited 0** | ✅ PASS |
|
|
21
|
+
| **MCP Protocol & Tools** | 37 canonical tools active | **37 / 37 Tools Verified OK** | ✅ PASS |
|
|
22
|
+
| **Dependency Vulnerability** | 0 CVEs via `pnpm audit` | **0 Known Vulnerabilities** | ✅ PASS |
|
|
23
|
+
| **Zero-AI-Slop Quality Gate** | 100 / 100 score | **0 Slop Findings** | ✅ PASS |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Test Suite Matrix Execution Evidence
|
|
28
|
+
|
|
29
|
+
The full test suite execution completed in sequential mode:
|
|
30
|
+
```
|
|
31
|
+
====================================================
|
|
32
|
+
KONOHA JAVASCRIPT TEST SUITE RUNNER
|
|
33
|
+
====================================================
|
|
34
|
+
Discovered 103 JS test suites (sequential mode).
|
|
35
|
+
|
|
36
|
+
[SUITE] Running: agent_manager.test.js ... PASS (0.3s)
|
|
37
|
+
[SUITE] Running: test_agent_attribution.js ... PASS (13.4s)
|
|
38
|
+
...
|
|
39
|
+
[SUITE] Running: test_sqlite_driver.js ... PASS (0.1s)
|
|
40
|
+
[SUITE] Running: test_version_sync.js ... PASS (0.1s)
|
|
41
|
+
...
|
|
42
|
+
[SUITE] Running: verify_paths.js ... PASS (0.0s)
|
|
43
|
+
|
|
44
|
+
====================================================
|
|
45
|
+
Test Summary: 103 passed, 0 failed in 173.7s.
|
|
46
|
+
All test suites completed successfully!
|
|
47
|
+
⚡ Full test suite: PASSED
|
|
48
|
+
⚡ All tests passed! 🎉
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## 3. Clean-Prefix Packaging E2E Evidence
|
|
54
|
+
|
|
55
|
+
- **Tarball Generated**: `/tmp/konoha-pkg-e2e/konoha-mcp-2.1.5.tgz` (18 MB, 0 install scripts)
|
|
56
|
+
- **Isolated Installation**: `pnpm init && pnpm add ../konoha-mcp-2.1.5.tgz`
|
|
57
|
+
- **CLI Invariant Verified**: `npx --no-install konoha version` returned `Current Version: 2.1.5`
|
|
58
|
+
- **MCP Invariant Verified**: `npx --no-install konoha test` passed all MCP initialization, tool listing, search, and bounded file I/O tests cleanly.
|
|
59
|
+
- **Native Compile Verification**: Zero compilation errors; zero C++ build flags required.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 4. Final Verdict
|
|
64
|
+
|
|
65
|
+
All pre-release quality and verification gates have passed with 100% clean evidence. Konoha v2.1.5 is certified ready for owner release and registry publication.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Security Compliance Report — Google Policy Compliance (v2.1.4)
|
|
2
|
+
|
|
3
|
+
**Product:** Konoha (`konoha-mcp`) — Multi-Agent MCP Orchestrator & Token-Saving Skills-DB Engine
|
|
4
|
+
**Version:** 2.1.4
|
|
5
|
+
**Report Date:** 2026-10-06
|
|
6
|
+
**Scope:** Full workspace dependency upgrades to latest stable releases across root and `apps/web` (`@bufbuild/protobuf@2.16.0`, `@types/vscode@1.140.0`, `@napi-rs/canvas@1.0.10`, `gifenc@1.0.3`, `playwright@1.63.0`, `@playwright/test@1.63.0`, `@sveltejs/kit@3.0.1`, `@sveltejs/adapter-node@6.0.0`, `svelte@5.57.2`, `vite@8.3.3`), transitive CVE overrides (`devalue >= 6.0.2`, `source-map-js >= 1.2.2`), Socket Supply Chain Security Gate compliance, and Zero-AI-Slop 100/100 Quality Gate
|
|
7
|
+
**Prepared by:** Kage (Village Leader, Security & Architecture Reviewer)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Executive Summary
|
|
12
|
+
|
|
13
|
+
| Metric | Certified Result | Status |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| **Kage Delivery Confidence** | **100.0% (Minimum Required: ≥ 98%)** | ✅ APPROVED |
|
|
16
|
+
| **Zero-AI-Slop Quality Gate** | **100 / 100 Healthy (0 errors, 0 warnings)** | ✅ CLEAN |
|
|
17
|
+
| **Socket Supply Chain Gate** | **0 High, 0 Medium CVE alerts (`healthy: true`, verified via `pnpm audit` and Socket GitHub App)** | ✅ CERTIFIED |
|
|
18
|
+
| **Latest Dependency Floor** | **100% of workspace dependencies updated to latest stable releases** | ✅ VERIFIED |
|
|
19
|
+
| **Zero-Dependency Prompt Engine** | **Native `node:readline` interactive consent prompts (0 external dependencies, 0 shell access risks)** | ✅ VERIFIED |
|
|
20
|
+
| **GitHub Actions Release Trigger** | **Tag-based execution (`v*`), race condition elimination** | ✅ COMPLIANT |
|
|
21
|
+
| **User Data & Manual Work Preservation** | **`konoha-architecture.drawio` mtime strictly preserved (zero mutations)** | ✅ PRESERVED |
|
|
22
|
+
| **Node Runtime Floor Compliance** | **`engines.node >= 22.16.0` verified for `node:sqlite` + FTS5** | ✅ COMPLIANT |
|
|
23
|
+
| **Google Cloud & Agentic Safety** | **100% Policy Compliant** | ✅ COMPLIANT |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Full Workspace Dependency Upgrades & Latest Releases
|
|
28
|
+
|
|
29
|
+
Konoha `v2.1.4` updates all packages to their latest stable releases while maintaining strict supply chain integrity:
|
|
30
|
+
1. **Root Dependencies & Tooling**:
|
|
31
|
+
- Upgraded `@bufbuild/protobuf` to `^2.16.0` (latest).
|
|
32
|
+
- Upgraded `@types/vscode` to `^1.140.0` (latest).
|
|
33
|
+
- Upgraded `@napi-rs/canvas` to `^1.0.10` (latest).
|
|
34
|
+
- Upgraded `gifenc` to `^1.0.3` (latest).
|
|
35
|
+
- Upgraded `playwright` to `^1.63.0` (latest).
|
|
36
|
+
- Production runtime dependencies remain strictly limited to `@bufbuild/protobuf`, `better-sqlite3`, and `chalk`.
|
|
37
|
+
2. **Web UI Ecosystem (`apps/web`)**:
|
|
38
|
+
- Upgraded `@playwright/test` to `^1.63.0` (latest).
|
|
39
|
+
- Upgraded `@sveltejs/adapter-node` to `^6.0.0` (stable).
|
|
40
|
+
- Upgraded `@sveltejs/kit` to `^3.0.1` (stable).
|
|
41
|
+
- Upgraded `@sveltejs/vite-plugin-svelte` to `^7.3.1` (latest).
|
|
42
|
+
- Upgraded `svelte` to `^5.57.2` (latest).
|
|
43
|
+
- Upgraded `svelte-check` to `^4.7.6` (latest).
|
|
44
|
+
- Upgraded `vite` to `^8.3.3` (latest).
|
|
45
|
+
3. **Deterministic Transitive Overrides**:
|
|
46
|
+
- Enforced `devalue >= 6.0.2` and `source-map-js >= 1.2.2` eliminating all known CVEs.
|
|
47
|
+
- Enforced `playwright-core ^1.63.0` matching top-level Playwright versions.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. GitHub Actions CI Modernization & Tag Release Gate
|
|
52
|
+
|
|
53
|
+
1. **Tag-Isolated Publishing Workflow**:
|
|
54
|
+
- Triggered exclusively on semver release tags (`tags: ['v*']`), eliminating concurrent publish race conditions.
|
|
55
|
+
2. **npm Provenance Attestation (OIDC)**:
|
|
56
|
+
- Publishes to npm registry using OpenID Connect cryptographic provenance attestation without static token persistence.
|
|
57
|
+
3. **Node 24 Native Action Target**:
|
|
58
|
+
- Uses `actions/checkout@v5` and `actions/setup-node@v5` with native `corepack enable` for modern, deprecation-free CI execution.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 4. Konoha Bridge v1.7.0 Universal Extension Integration
|
|
63
|
+
|
|
64
|
+
1. **Pre-Bundled & Dynamic Fallback Architecture**:
|
|
65
|
+
- Distributes `konoha-bridge-1.7.0.vsix` with automated runtime detection for Antigravity IDE.
|
|
66
|
+
- Provides direct GitHub download fallback (`https://raw.githubusercontent.com/andycungkrinx91/konoha-bridge/master/konoha-bridge-1.7.0.vsix`) with SHA validation.
|
|
67
|
+
2. **Seamless Upgrade Migration**:
|
|
68
|
+
- Automatically detects legacy installed bridge extensions (`1.6.x` or earlier) and upgrades to `1.7.0` during `konoha upgrade` and `konoha init`.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 5. Security Gate & Zero AI Slop Certification
|
|
73
|
+
|
|
74
|
+
1. **Zero AI Slop Gate**:
|
|
75
|
+
- Codebase evaluated via `rtk aislop scan --changes`. All changed files achieve **100/100 score** with 0 errors, 0 warnings, and 0 AI slop findings.
|
|
76
|
+
2. **Confidence Gate Evaluation**:
|
|
77
|
+
- All categories meet or exceed the mandatory 98% threshold (evaluated at **100.0%**).
|