unspaghettit 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -18
- package/build/client/_app/immutable/assets/0.DCOD5ne_.css +1 -0
- package/build/client/_app/immutable/assets/0.DCOD5ne_.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DCOD5ne_.css.gz +0 -0
- package/build/client/_app/immutable/assets/12.nv0I59TU.css.gz +0 -0
- package/build/client/_app/immutable/assets/3.B3akUL9A.css.gz +0 -0
- package/build/client/_app/immutable/assets/BehaviorGraph.Bk0xQRZk.css +1 -0
- package/build/client/_app/immutable/assets/BehaviorGraph.Bk0xQRZk.css.br +0 -0
- package/build/client/_app/immutable/assets/BehaviorGraph.Bk0xQRZk.css.gz +0 -0
- package/build/client/_app/immutable/chunks/B3vnQs252.js +1 -0
- package/build/client/_app/immutable/chunks/B3vnQs252.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3vnQs252.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CxyLMlpt2.js → BANF9BhQ2.js} +1 -1
- package/build/client/_app/immutable/chunks/BANF9BhQ2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BANF9BhQ2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJdTO_n6.js +1 -0
- package/build/client/_app/immutable/chunks/BJdTO_n6.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJdTO_n6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPl9BITm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BQ9GodWX2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bcyn5YUg.js +4 -0
- package/build/client/_app/immutable/chunks/Bcyn5YUg.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bcyn5YUg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bfc9rQXP.js +1 -0
- package/build/client/_app/immutable/chunks/Bfc9rQXP.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bfc9rQXP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BfMYiIUi.js → BjxqhpPG.js} +1 -1
- package/build/client/_app/immutable/chunks/BjxqhpPG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjxqhpPG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ByaoVvNB.js +1 -0
- package/build/client/_app/immutable/chunks/ByaoVvNB.js.br +0 -0
- package/build/client/_app/immutable/chunks/ByaoVvNB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BzLd0mTH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8b3IMj8.js +1 -0
- package/build/client/_app/immutable/chunks/C8b3IMj8.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8b3IMj8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CXvvf4uQ.js +1 -0
- package/build/client/_app/immutable/chunks/CXvvf4uQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXvvf4uQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cl7Z3e6-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClC4qR7W2.js +2 -0
- package/build/client/_app/immutable/chunks/ClC4qR7W2.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClC4qR7W2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CuGlh1c2.js +1 -0
- package/build/client/_app/immutable/chunks/CuGlh1c2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CuGlh1c2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwzIdrQR.js +1 -0
- package/build/client/_app/immutable/chunks/CwzIdrQR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CwzIdrQR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5speDV82.js +908 -0
- package/build/client/_app/immutable/chunks/D5speDV82.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5speDV82.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D64sGJRN.js +1 -0
- package/build/client/_app/immutable/chunks/D64sGJRN.js.br +0 -0
- package/build/client/_app/immutable/chunks/D64sGJRN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNaA4QRO2.js +1 -0
- package/build/client/_app/immutable/chunks/DNaA4QRO2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNaA4QRO2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Da59TXPe.js +1 -0
- package/build/client/_app/immutable/chunks/Da59TXPe.js.br +2 -0
- package/build/client/_app/immutable/chunks/Da59TXPe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DhTiE3j02.js +2 -0
- package/build/client/_app/immutable/chunks/DhTiE3j02.js.br +0 -0
- package/build/client/_app/immutable/chunks/DhTiE3j02.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dhqg7r_2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DmyaDy4d2.js +1 -0
- package/build/client/_app/immutable/chunks/DmyaDy4d2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DmyaDy4d2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DryaQyjN2.js +1 -0
- package/build/client/_app/immutable/chunks/DryaQyjN2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DryaQyjN2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DtK8qK5Q2.js +1 -0
- package/build/client/_app/immutable/chunks/DtK8qK5Q2.js.br +0 -0
- package/build/client/_app/immutable/chunks/DtK8qK5Q2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DtblIi6X2.js +1 -0
- package/build/client/_app/immutable/chunks/DtblIi6X2.js.br +1 -0
- package/build/client/_app/immutable/chunks/DtblIi6X2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/UkzDDeO42.js +1 -0
- package/build/client/_app/immutable/chunks/UkzDDeO42.js.br +0 -0
- package/build/client/_app/immutable/chunks/UkzDDeO42.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Vu8LzrwP2.js +1 -0
- package/build/client/_app/immutable/chunks/Vu8LzrwP2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Vu8LzrwP2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_b612aVb.js +1 -0
- package/build/client/_app/immutable/chunks/_b612aVb.js.br +0 -0
- package/build/client/_app/immutable/chunks/_b612aVb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aNMRV4sP2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cMamJTsF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ib21i2T_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/oVMDLirx.js +1 -0
- package/build/client/_app/immutable/chunks/oVMDLirx.js.br +0 -0
- package/build/client/_app/immutable/chunks/oVMDLirx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/olAc024e.js +1 -0
- package/build/client/_app/immutable/chunks/olAc024e.js.br +0 -0
- package/build/client/_app/immutable/chunks/olAc024e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/suTxxv1t.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wXIHzLMQ2.js +1 -0
- package/build/client/_app/immutable/chunks/wXIHzLMQ2.js.br +0 -0
- package/build/client/_app/immutable/chunks/wXIHzLMQ2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wrqalH0a.js +1 -0
- package/build/client/_app/immutable/chunks/wrqalH0a.js.br +0 -0
- package/build/client/_app/immutable/chunks/wrqalH0a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/x60Tn5kT.js +1 -0
- package/build/client/_app/immutable/chunks/x60Tn5kT.js.br +0 -0
- package/build/client/_app/immutable/chunks/x60Tn5kT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BOrLmFwJ.js → yShDxCNj.js} +1 -1
- package/build/client/_app/immutable/chunks/yShDxCNj.js.br +2 -0
- package/build/client/_app/immutable/chunks/yShDxCNj.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Etd-exTb.js +2 -0
- package/build/client/_app/immutable/entry/app.Etd-exTb.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Etd-exTb.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DY2B3u4g.js +1 -0
- package/build/client/_app/immutable/entry/start.DY2B3u4g.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DY2B3u4g.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.tKfYV3__.js +8 -0
- package/build/client/_app/immutable/nodes/0.tKfYV3__.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.tKfYV3__.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.KYdA6ppX.js → 1.CER5ICKt.js} +1 -1
- package/build/client/_app/immutable/nodes/1.CER5ICKt.js.br +1 -0
- package/build/client/_app/immutable/nodes/1.CER5ICKt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.rT7cD8kX.js +1 -0
- package/build/client/_app/immutable/nodes/10.rT7cD8kX.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.rT7cD8kX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BAnV_Y5Y.js +2 -0
- package/build/client/_app/immutable/nodes/11.BAnV_Y5Y.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BAnV_Y5Y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.CMW6a2Lg.js → 12.DCTRFMqo.js} +4 -3
- package/build/client/_app/immutable/nodes/12.DCTRFMqo.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.DCTRFMqo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.DBz20KgG.js → 2.CF488WWF.js} +1 -1
- package/build/client/_app/immutable/nodes/2.CF488WWF.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CF488WWF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CP7CPPVH.js +1 -0
- package/build/client/_app/immutable/nodes/3.CP7CPPVH.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CP7CPPVH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.D1bxCSiM.js +3 -0
- package/build/client/_app/immutable/nodes/4.D1bxCSiM.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.D1bxCSiM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.D6jZgh9y.js +48 -0
- package/build/client/_app/immutable/nodes/5.D6jZgh9y.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.D6jZgh9y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BrBFUA0s.js +1 -0
- package/build/client/_app/immutable/nodes/6.BrBFUA0s.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BrBFUA0s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.pajo8MfM.js +3 -0
- package/build/client/_app/immutable/nodes/7.pajo8MfM.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.pajo8MfM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.Cc80_Igi.js +5 -0
- package/build/client/_app/immutable/nodes/8.Cc80_Igi.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.Cc80_Igi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CemgNJfw.js → 9.D72NaL3l.js} +1 -1
- package/build/client/_app/immutable/nodes/9.D72NaL3l.js.br +1 -0
- package/build/client/_app/immutable/nodes/9.D72NaL3l.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/client/lyriks_logo.svg +148 -0
- package/build/client/lyriks_logo.svg.br +0 -0
- package/build/client/lyriks_logo.svg.gz +0 -0
- package/build/server/chunks/0-8YZc572z.js +15 -0
- package/build/server/chunks/0-8YZc572z.js.map +1 -0
- package/build/server/chunks/1-DxkfSJLu.js +9 -0
- package/build/server/chunks/{1-DPpKAKXV.js.map → 1-DxkfSJLu.js.map} +1 -1
- package/build/server/chunks/10-DkObdGtU.js +9 -0
- package/build/server/chunks/10-DkObdGtU.js.map +1 -0
- package/build/server/chunks/11-DL94HxpZ.js +9 -0
- package/build/server/chunks/11-DL94HxpZ.js.map +1 -0
- package/build/server/chunks/12-CI74sCkt.js +9 -0
- package/build/server/chunks/12-CI74sCkt.js.map +1 -0
- package/build/server/chunks/2-qhWwQ4eL.js +9 -0
- package/build/server/chunks/2-qhWwQ4eL.js.map +1 -0
- package/build/server/chunks/3-CzoZtSTp.js +16 -0
- package/build/server/chunks/3-CzoZtSTp.js.map +1 -0
- package/build/server/chunks/4-CDa9DBsh.js +16 -0
- package/build/server/chunks/4-CDa9DBsh.js.map +1 -0
- package/build/server/chunks/5-qD2xxOrq.js +9 -0
- package/build/server/chunks/5-qD2xxOrq.js.map +1 -0
- package/build/server/chunks/6-B4mWzvDn.js +9 -0
- package/build/server/chunks/6-B4mWzvDn.js.map +1 -0
- package/build/server/chunks/7-zExv-fTN.js +9 -0
- package/build/server/chunks/7-zExv-fTN.js.map +1 -0
- package/build/server/chunks/8-BVrGdQg4.js +9 -0
- package/build/server/chunks/{6-QQ7r8Rd5.js.map → 8-BVrGdQg4.js.map} +1 -1
- package/build/server/chunks/9-BnZLRMYA.js +9 -0
- package/build/server/chunks/9-BnZLRMYA.js.map +1 -0
- package/build/server/chunks/BehaviorGraph-C-9z37Sm.js +788 -0
- package/build/server/chunks/BehaviorGraph-C-9z37Sm.js.map +1 -0
- package/build/server/chunks/Clock-BfMWQpmJ.js +5 -0
- package/build/server/chunks/Clock-BfMWQpmJ.js.map +1 -0
- package/build/server/chunks/DeleteDomain-BvHEgAyp.js +24 -0
- package/build/server/chunks/DeleteDomain-BvHEgAyp.js.map +1 -0
- package/build/server/chunks/{FeatureValidator-B8qEjAUW.js → DeleteFeature-DnK8sBJI.js} +142 -77
- package/build/server/chunks/DeleteFeature-DnK8sBJI.js.map +1 -0
- package/build/server/chunks/DeleteProject-BXZcehHZ.js +41 -0
- package/build/server/chunks/DeleteProject-BXZcehHZ.js.map +1 -0
- package/build/server/chunks/Effect-BJtLR-6l.js +46 -0
- package/build/server/chunks/Effect-BJtLR-6l.js.map +1 -0
- package/build/server/chunks/{FeatureCard-BQOY6gJQ.js → FeatureCard-Bb50FEfp.js} +4 -4
- package/build/server/chunks/{FeatureCard-BQOY6gJQ.js.map → FeatureCard-Bb50FEfp.js.map} +1 -1
- package/build/server/chunks/{FeatureJson-Bv-qiOSf.js → FeatureJson-DYvMEAub.js} +2 -2
- package/build/server/chunks/{FeatureJson-Bv-qiOSf.js.map → FeatureJson-DYvMEAub.js.map} +1 -1
- package/build/server/chunks/{FeatureTransforms-UWDHmWEg.js → FeatureTransforms-B0aI_CJD.js} +10 -3
- package/build/server/chunks/FeatureTransforms-B0aI_CJD.js.map +1 -0
- package/build/server/chunks/{ManageTagsDialog-DBxA3tM2.js → ManageTagsDialog-D5xbAVNB.js} +5 -5
- package/build/server/chunks/ManageTagsDialog-D5xbAVNB.js.map +1 -0
- package/build/server/chunks/{ProgressBar-CfhccQ83.js → ProgressBar-CUC2EZqG.js} +3 -3
- package/build/server/chunks/ProgressBar-CUC2EZqG.js.map +1 -0
- package/build/server/chunks/{ProjectsIndex-CoDrvRya.js → ProjectsIndex-FgIu9dBp.js} +135 -14
- package/build/server/chunks/ProjectsIndex-FgIu9dBp.js.map +1 -0
- package/build/server/chunks/{RenameTag-BuWLMl1m.js → RenameTag-DWIIR4Bx.js} +3 -6
- package/build/server/chunks/RenameTag-DWIIR4Bx.js.map +1 -0
- package/build/server/chunks/ScenarioApplier-YPKECfZe.js +55 -0
- package/build/server/chunks/ScenarioApplier-YPKECfZe.js.map +1 -0
- package/build/server/chunks/SimulatorEngine-DM1F9nCO.js +1391 -0
- package/build/server/chunks/SimulatorEngine-DM1F9nCO.js.map +1 -0
- package/build/server/chunks/StateValue-BBjWox8f.js +105 -0
- package/build/server/chunks/StateValue-BBjWox8f.js.map +1 -0
- package/build/server/chunks/{TagDotStrip-B1XQ0m0Y.js → TagDotStrip-0rn-IJVE.js} +4 -4
- package/build/server/chunks/TagDotStrip-0rn-IJVE.js.map +1 -0
- package/build/server/chunks/{TagFilterSelect-DbO0Qduh.js → TagFilterSelect-Dbu-7Dg4.js} +5 -5
- package/build/server/chunks/{TagFilterSelect-DbO0Qduh.js.map → TagFilterSelect-Dbu-7Dg4.js.map} +1 -1
- package/build/server/chunks/{TagPalette-CtMNYCmu.js → TagPalette-CpdTiC_7.js} +101 -9
- package/build/server/chunks/TagPalette-CpdTiC_7.js.map +1 -0
- package/build/server/chunks/TransitionCatalog-CYXUANy6.js +271 -0
- package/build/server/chunks/TransitionCatalog-CYXUANy6.js.map +1 -0
- package/build/server/chunks/_layout.svelte-pSSG85WT.js +1342 -0
- package/build/server/chunks/_layout.svelte-pSSG85WT.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BKTveFAj.js → _page.svelte-BNH3szkk.js} +22 -17
- package/build/server/chunks/{_page.svelte-BKTveFAj.js.map → _page.svelte-BNH3szkk.js.map} +1 -1
- package/build/server/chunks/_page.svelte-BcuGvUt1.js +37 -0
- package/build/server/chunks/{_page.svelte-B7hT3P8E.js.map → _page.svelte-BcuGvUt1.js.map} +1 -1
- package/build/server/chunks/_page.svelte-BoOMG5Y0.js +37 -0
- package/build/server/chunks/{_page.svelte-De508ek8.js.map → _page.svelte-BoOMG5Y0.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BqSC-1vK.js → _page.svelte-C4PRh_wP.js} +104 -54
- package/build/server/chunks/_page.svelte-C4PRh_wP.js.map +1 -0
- package/build/server/chunks/_page.svelte-Cqn34NXy.js +74 -0
- package/build/server/chunks/_page.svelte-Cqn34NXy.js.map +1 -0
- package/build/server/chunks/{_page.svelte-B1s7jxaQ.js → _page.svelte-DSCeOGv7.js} +15 -10
- package/build/server/chunks/_page.svelte-DSCeOGv7.js.map +1 -0
- package/build/server/chunks/_page.svelte-DqWdGt48.js +182 -0
- package/build/server/chunks/_page.svelte-DqWdGt48.js.map +1 -0
- package/build/server/chunks/_page.svelte-DsQHSEl4.js +49 -0
- package/build/server/chunks/_page.svelte-DsQHSEl4.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BKKCa9H5.js → _page.svelte-Uioz8hsG.js} +18 -11
- package/build/server/chunks/{_page.svelte-BKKCa9H5.js.map → _page.svelte-Uioz8hsG.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Zf9H4KOP.js → _page.svelte-p38jot9e.js} +81 -478
- package/build/server/chunks/_page.svelte-p38jot9e.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BtI2zZ_Z.js → _page.svelte-yN5kzgJ9.js} +251 -447
- package/build/server/chunks/_page.svelte-yN5kzgJ9.js.map +1 -0
- package/build/server/chunks/{_server.ts-DsbbVoOn.js → _server.ts-1CtrHhte.js} +4 -4
- package/build/server/chunks/{_server.ts-DsbbVoOn.js.map → _server.ts-1CtrHhte.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CWvU15tL.js → _server.ts-71Qx1lQb.js} +4 -4
- package/build/server/chunks/{_server.ts-CWvU15tL.js.map → _server.ts-71Qx1lQb.js.map} +1 -1
- package/build/server/chunks/_server.ts-BAyekGHB.js +961 -0
- package/build/server/chunks/_server.ts-BAyekGHB.js.map +1 -0
- package/build/server/chunks/{_server.ts-BihpbxOW.js → _server.ts-BLWhU22T.js} +4 -4
- package/build/server/chunks/{_server.ts-BihpbxOW.js.map → _server.ts-BLWhU22T.js.map} +1 -1
- package/build/server/chunks/{_server.ts-YnfXkeMJ.js → _server.ts-C7EVZVxv.js} +22 -13
- package/build/server/chunks/_server.ts-C7EVZVxv.js.map +1 -0
- package/build/server/chunks/{_server.ts-vcaqdwxS.js → _server.ts-CGjYuLmo.js} +12 -7
- package/build/server/chunks/_server.ts-CGjYuLmo.js.map +1 -0
- package/build/server/chunks/{_server.ts-Dy5zQHe2.js → _server.ts-CX6H8fSE.js} +8 -31
- package/build/server/chunks/_server.ts-CX6H8fSE.js.map +1 -0
- package/build/server/chunks/{_server.ts-BuoQ02BW.js → _server.ts-CyEdTCLr.js} +4 -4
- package/build/server/chunks/{_server.ts-BuoQ02BW.js.map → _server.ts-CyEdTCLr.js.map} +1 -1
- package/build/server/chunks/_server.ts-DKVTM9Pj.js +77 -0
- package/build/server/chunks/_server.ts-DKVTM9Pj.js.map +1 -0
- package/build/server/chunks/{_server.ts-0uNTZKwF.js → _server.ts-Dip65hLJ.js} +15 -9
- package/build/server/chunks/_server.ts-Dip65hLJ.js.map +1 -0
- package/build/server/chunks/{_server.ts-D4EO0VHu.js → _server.ts-Dm0tCs2i.js} +5 -5
- package/build/server/chunks/{_server.ts-D4EO0VHu.js.map → _server.ts-Dm0tCs2i.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BIBWjQI-.js → _server.ts-DsYwK_uW.js} +4 -4
- package/build/server/chunks/{_server.ts-BIBWjQI-.js.map → _server.ts-DsYwK_uW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DDa0Nk_S.js → _server.ts-RCEgegYU.js} +4 -4
- package/build/server/chunks/{_server.ts-DDa0Nk_S.js.map → _server.ts-RCEgegYU.js.map} +1 -1
- package/build/server/chunks/_server.ts-XOLAT4dd.js +146 -0
- package/build/server/chunks/_server.ts-XOLAT4dd.js.map +1 -0
- package/build/server/chunks/_server.ts-afh_zLVi.js +69 -0
- package/build/server/chunks/_server.ts-afh_zLVi.js.map +1 -0
- package/build/server/chunks/{browserContainer-CNX7ANld.js → browserContainer-BdldtueJ.js} +71 -1378
- package/build/server/chunks/browserContainer-BdldtueJ.js.map +1 -0
- package/build/server/chunks/buildSearchDocs-Cyfrnw9G.js +337 -0
- package/build/server/chunks/buildSearchDocs-Cyfrnw9G.js.map +1 -0
- package/build/server/chunks/{builderModeStore.svelte-ihupr-3p.js → builderModeStore.svelte-BEZMQEqn.js} +223 -11
- package/build/server/chunks/builderModeStore.svelte-BEZMQEqn.js.map +1 -0
- package/build/server/chunks/client-C9Cat4DK.js +51 -0
- package/build/server/chunks/{client-DfpLcAZ9.js.map → client-C9Cat4DK.js.map} +1 -1
- package/build/server/chunks/{error.svelte-C35KOpru.js → error.svelte-CzVR_A6P.js} +5 -5
- package/build/server/chunks/{error.svelte-C35KOpru.js.map → error.svelte-CzVR_A6P.js.map} +1 -1
- package/build/server/chunks/featureQueueContext-DuXpyTdC.js +32 -0
- package/build/server/chunks/featureQueueContext-DuXpyTdC.js.map +1 -0
- package/build/server/chunks/featureStore.svelte-DHZf88gu.js +162 -0
- package/build/server/chunks/featureStore.svelte-DHZf88gu.js.map +1 -0
- package/build/server/chunks/{projectsStore.svelte-QDz5PchX.js → featuresStore.svelte-bUyQBg1-.js} +95 -3
- package/build/server/chunks/featuresStore.svelte-bUyQBg1-.js.map +1 -0
- package/build/server/chunks/{hooks.server-Rv301GTB.js → hooks.server-y3jdg_sB.js} +6 -2
- package/build/server/chunks/hooks.server-y3jdg_sB.js.map +1 -0
- package/build/server/chunks/humanize-CkCPfeWi.js +53 -0
- package/build/server/chunks/humanize-CkCPfeWi.js.map +1 -0
- package/build/server/chunks/{index-server-7H0jzj0M.js → index-server-DvBux_Gf.js} +47 -2
- package/build/server/chunks/{index-server-7H0jzj0M.js.map → index-server-DvBux_Gf.js.map} +1 -1
- package/build/server/chunks/{internal-BPKrFkK1.js → internal-BFt8yDlf.js} +5 -5
- package/build/server/chunks/{internal-BPKrFkK1.js.map → internal-BFt8yDlf.js.map} +1 -1
- package/build/server/chunks/projectBundleClient-BtvWPh87.js +168 -0
- package/build/server/chunks/projectBundleClient-BtvWPh87.js.map +1 -0
- package/build/server/chunks/projectContextStore.svelte-jRJGJZ42.js +141 -0
- package/build/server/chunks/projectContextStore.svelte-jRJGJZ42.js.map +1 -0
- package/build/server/chunks/projectFeaturesStore.svelte-BwNEtDIL.js +87 -0
- package/build/server/chunks/projectFeaturesStore.svelte-BwNEtDIL.js.map +1 -0
- package/build/server/chunks/projectStore.svelte-BNuLNxk_.js +230 -0
- package/build/server/chunks/projectStore.svelte-BNuLNxk_.js.map +1 -0
- package/build/server/chunks/{reconcile-Dv7jS3C8.js → reconcile-CVG2LSlW.js} +54 -267
- package/build/server/chunks/reconcile-CVG2LSlW.js.map +1 -0
- package/build/server/chunks/registry-DqAn_hVE.js +21 -0
- package/build/server/chunks/registry-DqAn_hVE.js.map +1 -0
- package/build/server/chunks/{snapshotRepository-BPXCjX92.js → snapshotRepository-8f-2wTrb.js} +30 -5
- package/build/server/chunks/snapshotRepository-8f-2wTrb.js.map +1 -0
- package/build/server/chunks/{state-CpLVNZq7.js → state-CZZtjXLE.js} +3 -3
- package/build/server/chunks/{state-CpLVNZq7.js.map → state-CZZtjXLE.js.map} +1 -1
- package/build/server/chunks/{sync-DZ3dn761.js → sync-Bn6eSUhC.js} +3 -3
- package/build/server/chunks/{sync-DZ3dn761.js.map → sync-Bn6eSUhC.js.map} +1 -1
- package/build/server/chunks/{syncBridge-BwXzPdjJ.js → syncAwareRepositories-DvUjq5Q6.js} +27 -3
- package/build/server/chunks/syncAwareRepositories-DvUjq5Q6.js.map +1 -0
- package/build/server/chunks/{tagPaletteStore.svelte-DfZOBvgY.js → tagPaletteStore.svelte-C71bdzDl.js} +4 -4
- package/build/server/chunks/{tagPaletteStore.svelte-DfZOBvgY.js.map → tagPaletteStore.svelte-C71bdzDl.js.map} +1 -1
- package/build/server/index.js +2 -2
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +74 -29
- package/build/server/manifest.js.map +1 -1
- package/cli/README.md +70 -2
- package/cli/commands/check.ts +190 -0
- package/cli/commands/ci.ts +71 -0
- package/cli/commands/coverage-ingest.ts +112 -0
- package/cli/commands/dashboard.ts +14 -0
- package/cli/commands/init.ts +26 -0
- package/cli/commands/scenarios-adapter.ts +96 -0
- package/cli/commands/theme.ts +62 -0
- package/cli/scenarios/adapter-scaffold.ts +99 -0
- package/cli/scenarios/codegen.ts +7 -1
- package/cli/scenarios/results.ts +85 -0
- package/cli/skills/unspa-audit/SKILL.md +19 -0
- package/cli/skills/unspa-edit/SKILL.md +20 -3
- package/cli/skills/unspa-implement/SKILL.md +28 -0
- package/cli/unspa.ts +136 -2
- package/cli/util/context-files.ts +18 -2
- package/cli/util/theme.ts +34 -0
- package/mcp-server/bin.ts +104 -104
- package/mcp-server/migrate-defaults.ts +164 -164
- package/mcp-server/repo-link.ts +142 -134
- package/mcp-server/resources/guide.ts +24 -4
- package/mcp-server/resources/operations.ts +3 -0
- package/mcp-server/seed-snapshots.ts +22 -22
- package/mcp-server/server.ts +8 -4
- package/mcp-server/sync-aware-repos.ts +79 -79
- package/mcp-server/sync-notifier.ts +180 -127
- package/mcp-server/tools/_codegen.ts +115 -115
- package/mcp-server/tools/_entity_builders.ts +30 -0
- package/mcp-server/tools/_shared.ts +210 -210
- package/mcp-server/tools/action.ts +210 -210
- package/mcp-server/tools/batch.ts +29 -5
- package/mcp-server/tools/effect.ts +139 -135
- package/mcp-server/tools/entity.ts +132 -132
- package/mcp-server/tools/entityField.ts +132 -132
- package/mcp-server/tools/event.ts +116 -116
- package/mcp-server/tools/feature.ts +264 -264
- package/mcp-server/tools/invariant.ts +275 -275
- package/mcp-server/tools/persona.ts +141 -141
- package/mcp-server/tools/project.ts +500 -391
- package/mcp-server/tools/reachabilityGoal.ts +97 -0
- package/mcp-server/tools/read.ts +526 -483
- package/mcp-server/tools/reorder.ts +114 -114
- package/mcp-server/tools/resource.ts +194 -194
- package/mcp-server/tools/rule.ts +302 -302
- package/mcp-server/tools/scenario.ts +4 -1
- package/mcp-server/tools/specGaps.ts +221 -221
- package/mcp-server/tools/state.ts +10 -2
- package/mcp-server/tools/surface.ts +102 -102
- package/mcp-server/tools/transition.ts +96 -96
- package/mcp-server/tools/verification.ts +131 -0
- package/package.json +15 -2
- package/src/app.css +208 -9
- package/src/app.html +15 -1
- package/src/features/behavior-model/application/ports/FeatureRepository.ts +16 -16
- package/src/features/behavior-model/application/use-cases/CreateFeature.ts +24 -24
- package/src/features/behavior-model/application/use-cases/DeleteFeature.ts +8 -8
- package/src/features/behavior-model/application/use-cases/GetFeature.ts +9 -9
- package/src/features/behavior-model/application/use-cases/ListFeatures.ts +10 -10
- package/src/features/behavior-model/application/use-cases/MutateFeature.ts +90 -90
- package/src/features/behavior-model/application/use-cases/SaveFeature.ts +31 -31
- package/src/features/behavior-model/domain/entities/Entity.ts +45 -45
- package/src/features/behavior-model/domain/entities/EventDefinition.ts +35 -35
- package/src/features/behavior-model/domain/entities/Feature.ts +10 -0
- package/src/features/behavior-model/domain/entities/Persona.ts +33 -33
- package/src/features/behavior-model/domain/entities/ReachabilityGoal.ts +39 -0
- package/src/features/behavior-model/domain/entities/Resource.ts +54 -54
- package/src/features/behavior-model/domain/entities/Scenario.ts +15 -0
- package/src/features/behavior-model/domain/entities/StateDefinition.ts +13 -0
- package/src/features/behavior-model/domain/entities/Surface.ts +75 -75
- package/src/features/behavior-model/domain/entities/index.ts +9 -9
- package/src/features/behavior-model/domain/services/BehaviorGraphModel.ts +556 -0
- package/src/features/behavior-model/domain/services/DerivedState.ts +67 -0
- package/src/features/behavior-model/domain/services/EffectApplier.ts +112 -3
- package/src/features/behavior-model/domain/services/EffectiveEntities.ts +166 -166
- package/src/features/behavior-model/domain/services/EntityDeducer.ts +83 -83
- package/src/features/behavior-model/domain/services/EventCatalog.ts +141 -141
- package/src/features/behavior-model/domain/services/FeatureExpressionNormalizer.ts +43 -5
- package/src/features/behavior-model/domain/services/FeatureSharedStateNormalizer.ts +24 -3
- package/src/features/behavior-model/domain/services/FeatureTransforms.ts +33 -0
- package/src/features/behavior-model/domain/services/FeatureValidator.ts +124 -16
- package/src/features/behavior-model/domain/services/PersonaApplier.ts +39 -39
- package/src/features/behavior-model/domain/services/ResourceDeducer.ts +64 -64
- package/src/features/behavior-model/domain/services/ResourceUsage.ts +79 -79
- package/src/features/behavior-model/domain/services/ScenarioApplier.ts +40 -40
- package/src/features/behavior-model/domain/services/SharedStateDefinitions.ts +32 -32
- package/src/features/behavior-model/domain/services/StatePathReferences.ts +249 -217
- package/src/features/behavior-model/domain/services/TransitionCatalog.ts +173 -173
- package/src/features/behavior-model/domain/value-objects/Effect.ts +100 -3
- package/src/features/behavior-model/domain/value-objects/EntityFieldType.ts +57 -57
- package/src/features/behavior-model/domain/value-objects/Expression.ts +22 -2
- package/src/features/behavior-model/domain/value-objects/ParameterType.ts +57 -57
- package/src/features/behavior-model/domain/value-objects/Resource.ts +210 -210
- package/src/features/behavior-model/domain/value-objects/RuleCategory.ts +57 -57
- package/src/features/behavior-model/domain/value-objects/RuleCondition.ts +52 -1
- package/src/features/behavior-model/domain/value-objects/SimulationClock.ts +35 -0
- package/src/features/behavior-model/domain/value-objects/ids.ts +2 -0
- package/src/features/behavior-model/infrastructure/io/FeatureJson.ts +89 -89
- package/src/features/behavior-model/infrastructure/persistence/HttpFeatureRepository.ts +43 -43
- package/src/features/behavior-model/infrastructure/persistence/JsonFolderFeatureRepository.ts +10 -0
- package/src/features/behavior-model/infrastructure/persistence/snapshot-discovery.ts +76 -76
- package/src/features/behavior-model/infrastructure/seed/seedStorefront.ts +967 -967
- package/src/features/behavior-model/presentation/adapters/VisBehaviorGraphRenderer.ts +501 -0
- package/src/features/behavior-model/presentation/components/ActionEditor.svelte +683 -682
- package/src/features/behavior-model/presentation/components/ActionsEditor.svelte +232 -232
- package/src/features/behavior-model/presentation/components/BehaviorGraph.svelte +568 -0
- package/src/features/behavior-model/presentation/components/EffectEditor.svelte +168 -168
- package/src/features/behavior-model/presentation/components/EntityEditor.svelte +241 -248
- package/src/features/behavior-model/presentation/components/EntityFieldRow.svelte +180 -181
- package/src/features/behavior-model/presentation/components/EntityManager.svelte +252 -251
- package/src/features/behavior-model/presentation/components/EventsManager.svelte +373 -372
- package/src/features/behavior-model/presentation/components/FeatureEditor.svelte +396 -348
- package/src/features/behavior-model/presentation/components/FeatureHeader.svelte +165 -148
- package/src/features/behavior-model/presentation/components/FeatureHealthStrip.svelte +110 -110
- package/src/features/behavior-model/presentation/components/HistoryPanel.svelte +154 -154
- package/src/features/behavior-model/presentation/components/NewFeatureForm.svelte +66 -66
- package/src/features/behavior-model/presentation/components/ParameterNameSelect.svelte +84 -84
- package/src/features/behavior-model/presentation/components/ParametersEditor.svelte +411 -411
- package/src/features/behavior-model/presentation/components/PersonaEditor.svelte +244 -244
- package/src/features/behavior-model/presentation/components/PersonasManager.svelte +130 -130
- package/src/features/behavior-model/presentation/components/ReachabilityGoalEditor.svelte +230 -0
- package/src/features/behavior-model/presentation/components/ReachabilityGoalsEditor.svelte +86 -0
- package/src/features/behavior-model/presentation/components/ResourcesManager.svelte +291 -290
- package/src/features/behavior-model/presentation/components/ScenariosEditor.svelte +496 -496
- package/src/features/behavior-model/presentation/components/StateDefinitionsEditor.svelte +356 -356
- package/src/features/behavior-model/presentation/components/SurfaceEntitiesView.svelte +88 -88
- package/src/features/behavior-model/presentation/components/SurfaceInvariantsEditor.svelte +76 -76
- package/src/features/behavior-model/presentation/components/SurfaceList.svelte +300 -300
- package/src/features/behavior-model/presentation/components/SurfaceMetaEditor.svelte +158 -156
- package/src/features/behavior-model/presentation/components/SurfacePanel.svelte +198 -198
- package/src/features/behavior-model/presentation/components/SurfacePersonasView.svelte +122 -122
- package/src/features/behavior-model/presentation/components/SurfaceResourcesView.svelte +113 -113
- package/src/features/behavior-model/presentation/components/SurfaceRulesEditor.svelte +69 -69
- package/src/features/behavior-model/presentation/components/TransitionsManager.svelte +322 -321
- package/src/features/behavior-model/presentation/context/featureQueueContext.ts +78 -0
- package/src/features/behavior-model/presentation/stores/editorStore.svelte.ts +132 -131
- package/src/features/behavior-model/presentation/stores/featureStore.svelte.ts +177 -177
- package/src/features/behavior-model/presentation/stores/featuresStore.svelte.ts +98 -98
- package/src/features/behavior-model/presentation/view-models/BehaviorGraphTheme.ts +44 -0
- package/src/features/behavior-model/presentation/view-models/factories.ts +181 -132
- package/src/features/builder-mode/domain/BuilderModeDashboard.ts +7 -1
- package/src/features/builder-mode/presentation/components/BuilderModeDashboard.svelte +78 -16
- package/src/features/builder-mode/presentation/components/BuilderTagChips.svelte +25 -0
- package/src/features/builder-mode/presentation/stores/builderModeStore.svelte.ts +247 -3
- package/src/features/domains/infrastructure/persistence/JsonFolderDomainRepository.ts +9 -0
- package/src/features/global-search/application/use-cases/LoadSearchIndex.ts +70 -0
- package/src/features/global-search/domain/SearchDoc.ts +111 -0
- package/src/features/global-search/domain/buildSearchDocs.ts +483 -0
- package/src/features/global-search/domain/searchNav.ts +58 -0
- package/src/features/global-search/domain/searchScoring.ts +81 -0
- package/src/features/global-search/infrastructure/adapters/defaultSearchHost.ts +28 -0
- package/src/features/global-search/presentation/components/GlobalSearch.svelte +262 -0
- package/src/features/global-search/presentation/ports/SearchHostPorts.ts +41 -0
- package/src/features/global-search/presentation/searchKindMeta.ts +108 -0
- package/src/features/global-search/presentation/stores/globalSearchStore.svelte.ts +171 -0
- package/src/features/implementation-queue/presentation/components/FloatingQueueWidget.svelte +264 -0
- package/src/features/implementation-queue/presentation/stores/globalQueueStore.svelte.ts +172 -0
- package/src/features/implementation-status/application/ports/ImplementationStatusRepository.ts +8 -8
- package/src/features/implementation-status/application/use-cases/GetImplementationStatus.ts +8 -8
- package/src/features/implementation-status/domain/ApplyCapturedToSpec.ts +323 -322
- package/src/features/implementation-status/domain/FieldDiff.ts +238 -236
- package/src/features/implementation-status/infrastructure/persistence/InMemoryImplementationStatusRepository.ts +21 -21
- package/src/features/implementation-status/presentation/components/ImplementationStatusPanel.svelte +831 -831
- package/src/features/implementation-status/presentation/stores/implementationStatusStore.svelte.ts +97 -97
- package/src/features/library/application/use-cases/ApplyBlueprintsToFeature.ts +33 -33
- package/src/features/library/domain/services/BlueprintApplier.ts +94 -94
- package/src/features/library/infrastructure/blueprints/auth/ResetPasswordBlueprint.ts +332 -332
- package/src/features/library/infrastructure/blueprints/auth/SignInBlueprint.ts +281 -281
- package/src/features/library/infrastructure/blueprints/auth/SignUpBlueprint.ts +299 -299
- package/src/features/library/infrastructure/blueprints/auth/VerifyEmailBlueprint.ts +288 -288
- package/src/features/library/infrastructure/blueprints/auth/shared.ts +146 -146
- package/src/features/library/infrastructure/blueprints/commerce/CartBlueprint.ts +222 -222
- package/src/features/library/infrastructure/blueprints/commerce/CatalogBlueprint.ts +190 -190
- package/src/features/library/infrastructure/blueprints/commerce/CheckoutBlueprint.ts +322 -322
- package/src/features/library/infrastructure/blueprints/commerce/OrderConfirmationBlueprint.ts +172 -172
- package/src/features/library/infrastructure/blueprints/commerce/ProductDetailsBlueprint.ts +290 -290
- package/src/features/library/infrastructure/blueprints/content/ReviewsBlueprint.ts +392 -392
- package/src/features/library/infrastructure/blueprints/onboarding/OnboardingWizardBlueprint.ts +344 -344
- package/src/features/library/infrastructure/blueprints/utility/CanvasBlueprint.ts +419 -419
- package/src/features/library/infrastructure/blueprints/utility/CookieConsentBlueprint.ts +195 -195
- package/src/features/library/infrastructure/blueprints/utility/NotFoundBlueprint.ts +86 -86
- package/src/features/library/infrastructure/blueprints/utility/SearchPaletteBlueprint.ts +192 -192
- package/src/features/library/infrastructure/blueprints/utility/StoreLocatorBlueprint.ts +221 -221
- package/src/features/library/infrastructure/blueprints/utility/TaskBoardBlueprint.ts +196 -196
- package/src/features/maturity/application/use-cases/ScoreFeature.ts +7 -7
- package/src/features/maturity/domain/MaturityReport.ts +70 -70
- package/src/features/maturity/domain/MaturityScorer.ts +1001 -985
- package/src/features/maturity/presentation/components/MaturityPanel.svelte +376 -372
- package/src/features/mcp-tools/application/tools/dryRunSimulate.ts +24 -24
- package/src/features/mcp-tools/application/tools/findStateReferences.ts +19 -19
- package/src/features/mcp-tools/application/tools/generateTypes.ts +0 -1
- package/src/features/mcp-tools/application/tools/getAction.ts +165 -165
- package/src/features/mcp-tools/application/tools/getFeature.ts +5 -5
- package/src/features/mcp-tools/application/tools/getFeatureIndex.ts +79 -79
- package/src/features/mcp-tools/application/tools/getNeighborhood.ts +319 -319
- package/src/features/mcp-tools/application/tools/getSurface.ts +86 -86
- package/src/features/mcp-tools/application/tools/index.ts +56 -56
- package/src/features/mcp-tools/application/tools/listActions.ts +49 -49
- package/src/features/mcp-tools/application/tools/listFeatures.ts +7 -7
- package/src/features/mcp-tools/application/tools/scoreFeature.ts +153 -153
- package/src/features/projects/application/ports/ProjectRepository.ts +14 -14
- package/src/features/projects/application/use-cases/AddFeatureToProject.ts +23 -23
- package/src/features/projects/application/use-cases/CreateProject.ts +16 -16
- package/src/features/projects/application/use-cases/FindProjectContainingFeature.ts +23 -23
- package/src/features/projects/application/use-cases/GetProjectAggregate.ts +131 -131
- package/src/features/projects/application/use-cases/ImportProjectBundle.ts +45 -0
- package/src/features/projects/application/use-cases/MoveFeatureInProject.ts +36 -36
- package/src/features/projects/application/use-cases/RemoveFeatureFromProject.ts +23 -23
- package/src/features/projects/domain/entities/Project.ts +12 -0
- package/src/features/projects/domain/services/InheritedFromProject.ts +130 -130
- package/src/features/projects/infrastructure/persistence/JsonFolderProjectRepository.ts +9 -0
- package/src/features/projects/presentation/components/ProjectCard.svelte +27 -8
- package/src/features/projects/presentation/components/ProjectEditor.svelte +23 -19
- package/src/features/projects/presentation/components/ProjectFeaturesPanel.svelte +433 -433
- package/src/features/projects/presentation/components/ProjectsIndex.svelte +54 -10
- package/src/features/projects/presentation/stores/projectContextStore.svelte.ts +170 -170
- package/src/features/projects/presentation/stores/projectFeaturesStore.svelte.ts +114 -114
- package/src/features/projects/presentation/stores/projectStore.svelte.ts +265 -266
- package/src/features/projects/presentation/stores/projectsStore.svelte.ts +134 -134
- package/src/features/simulator/application/use-cases/RunScenarios.ts +27 -1
- package/src/features/simulator/application/use-cases/SimulateAction.ts +47 -47
- package/src/features/simulator/domain/SimulationResult.ts +79 -79
- package/src/features/simulator/domain/SimulatorEngine.ts +43 -9
- package/src/features/simulator/domain/StateExplorer.ts +369 -0
- package/src/features/simulator/domain/SurfaceReachability.ts +130 -0
- package/src/features/simulator/presentation/components/ParameterInputs.svelte +277 -277
- package/src/features/simulator/presentation/components/PersonaPicker.svelte +52 -52
- package/src/features/simulator/presentation/components/ScenarioPicker.svelte +42 -45
- package/src/features/simulator/presentation/components/SidePanel.svelte +170 -170
- package/src/features/simulator/presentation/components/SimulationResultView.svelte +394 -394
- package/src/features/simulator/presentation/components/SimulatorPanel.svelte +293 -293
- package/src/features/simulator/presentation/components/StateInspector.svelte +101 -101
- package/src/features/simulator/presentation/stores/simulatorStore.svelte.ts +268 -268
- package/src/features/tutorial/presentation/components/CodeBlock.svelte +5 -1
- package/src/features/verification/application/ports/BehavioralIndexReader.ts +12 -0
- package/src/features/verification/application/use-cases/VerifyFeatures.ts +151 -0
- package/src/features/verification/domain/DriftReport.ts +37 -0
- package/src/features/verification/domain/EventCoherenceReport.ts +27 -0
- package/src/features/verification/domain/IndexedImplementation.ts +27 -0
- package/src/features/verification/domain/VerificationReport.ts +59 -0
- package/src/features/verification/domain/VerificationThresholds.ts +52 -0
- package/src/features/verification/domain/VerificationVerdict.ts +43 -0
- package/src/features/verification/domain/aggregateVerdict.ts +244 -0
- package/src/features/verification/domain/analyzeEventCoherence.ts +43 -0
- package/src/features/verification/domain/detectDrift.ts +166 -0
- package/src/features/verification/domain/verifiedCoverage.ts +37 -0
- package/src/features/verification/infrastructure/persistence/FileBehavioralIndexReader.ts +81 -0
- package/src/features/verification/infrastructure/persistence/StaticBehavioralIndexReader.ts +15 -0
- package/src/features/verification/presentation/components/VerifyPanel.svelte +74 -0
- package/src/features/verification/presentation/stores/verificationStore.svelte.ts +64 -0
- package/src/hooks.server.ts +11 -1
- package/src/lib/server/openLocalDirectory.ts +40 -0
- package/src/lib/server/searchIndex.ts +161 -0
- package/src/lib/server/snapshotRepository.ts +37 -37
- package/src/lib/server/sync/YDocManager.ts +391 -391
- package/src/lib/server/sync/historyStore.ts +276 -276
- package/src/lib/server/sync/wsServer.ts +1 -1
- package/src/lib/sync/protocol.ts +147 -147
- package/src/lib/sync/roomId.ts +33 -33
- package/src/lib/theme/registry.ts +77 -0
- package/src/lib/theme/themeStore.svelte.ts +64 -0
- package/src/routes/+layout.svelte +288 -30
- package/src/routes/api/domains/[id]/+server.ts +7 -3
- package/src/routes/api/projects/[id]/+server.ts +14 -4
- package/src/routes/api/projects/import/+server.ts +16 -38
- package/src/routes/api/search-index/+server.ts +16 -0
- package/src/routes/api/snapshots/[id]/+server.ts +56 -44
- package/src/routes/api/snapshots/[id]/implementation-status/+server.ts +13 -13
- package/src/routes/api/snapshots/[id]/verify/+server.ts +37 -0
- package/src/routes/api/sync/reload/+server.ts +157 -157
- package/src/routes/api/system/hub-directory/+server.ts +24 -0
- package/src/routes/features/+page.svelte +484 -484
- package/src/routes/features/[id]/+page.svelte +55 -49
- package/src/routes/features/[id]/graph/+page.svelte +39 -0
- package/src/routes/features/[id]/verify/+page.svelte +89 -0
- package/src/routes/mcp/+page.svelte +16 -1
- package/src/routes/projects/[id]/+page.svelte +70 -70
- package/src/routes/projects/[id]/graph/+page.svelte +79 -0
- package/src/routes/tutorial/+page.svelte +3 -2
- package/src/shared/infrastructure/browserContainer.ts +61 -61
- package/src/shared/presentation/components/KebabMenu.svelte +95 -0
- package/src/shared/presentation/components/MenuItem.svelte +29 -0
- package/src/shared/presentation/components/ProgressBar.svelte +1 -1
- package/src/shared/presentation/toast/SyncToast.svelte +14 -3
- package/src/shared/presentation/toast/viewLinkResolver.ts +32 -0
- package/static/lyriks_logo.svg +148 -0
- package/vite.config.ts +47 -47
- package/build/client/_app/immutable/assets/0.DFMDYAU9.css +0 -1
- package/build/client/_app/immutable/assets/0.DFMDYAU9.css.br +0 -0
- package/build/client/_app/immutable/assets/0.DFMDYAU9.css.gz +0 -0
- package/build/client/_app/immutable/assets/9.nv0I59TU.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BO66rBOa2.js +0 -1
- package/build/client/_app/immutable/chunks/BO66rBOa2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BO66rBOa2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BOrLmFwJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BOrLmFwJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfMYiIUi.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfMYiIUi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bp2_Vghh.js +0 -1
- package/build/client/_app/immutable/chunks/Bp2_Vghh.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bp2_Vghh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bp8HpEPe2.js +0 -4
- package/build/client/_app/immutable/chunks/Bp8HpEPe2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bp8HpEPe2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8rRKIXT.js +0 -1
- package/build/client/_app/immutable/chunks/C8rRKIXT.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8rRKIXT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJjJLwzv2.js +0 -1
- package/build/client/_app/immutable/chunks/CJjJLwzv2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJjJLwzv2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CxyLMlpt2.js.br +0 -0
- package/build/client/_app/immutable/chunks/CxyLMlpt2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D6jhrpTg.js +0 -1
- package/build/client/_app/immutable/chunks/D6jhrpTg.js.br +0 -0
- package/build/client/_app/immutable/chunks/D6jhrpTg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8YEa1po.js +0 -1
- package/build/client/_app/immutable/chunks/D8YEa1po.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8YEa1po.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9dKmajw.js +0 -1
- package/build/client/_app/immutable/chunks/D9dKmajw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9dKmajw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DBJWcC6Y.js +0 -1
- package/build/client/_app/immutable/chunks/DBJWcC6Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBJWcC6Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHoA038D.js +0 -1
- package/build/client/_app/immutable/chunks/DHoA038D.js.br +0 -2
- package/build/client/_app/immutable/chunks/DHoA038D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DKgYpi6_.js +0 -1
- package/build/client/_app/immutable/chunks/DKgYpi6_.js.br +0 -0
- package/build/client/_app/immutable/chunks/DKgYpi6_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DatGSObE.js +0 -1
- package/build/client/_app/immutable/chunks/DatGSObE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DatGSObE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dg0acPpT.js +0 -1
- package/build/client/_app/immutable/chunks/Dg0acPpT.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dg0acPpT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjWKKtqp.js +0 -1
- package/build/client/_app/immutable/chunks/DjWKKtqp.js.br +0 -1
- package/build/client/_app/immutable/chunks/DjWKKtqp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq0DUAz1.js +0 -1
- package/build/client/_app/immutable/chunks/Dq0DUAz1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq0DUAz1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HKLi1Yz3.js +0 -1
- package/build/client/_app/immutable/chunks/HKLi1Yz3.js.br +0 -0
- package/build/client/_app/immutable/chunks/HKLi1Yz3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/N7PXjlRH.js +0 -1
- package/build/client/_app/immutable/chunks/N7PXjlRH.js.br +0 -0
- package/build/client/_app/immutable/chunks/N7PXjlRH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/hpWJNn0t2.js +0 -2
- package/build/client/_app/immutable/chunks/hpWJNn0t2.js.br +0 -0
- package/build/client/_app/immutable/chunks/hpWJNn0t2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/iQu0D9Ux.js +0 -1
- package/build/client/_app/immutable/chunks/iQu0D9Ux.js.br +0 -0
- package/build/client/_app/immutable/chunks/iQu0D9Ux.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CLgh6Mx_.js +0 -2
- package/build/client/_app/immutable/entry/app.CLgh6Mx_.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CLgh6Mx_.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.D5GPCQZD.js +0 -1
- package/build/client/_app/immutable/entry/start.D5GPCQZD.js.br +0 -0
- package/build/client/_app/immutable/entry/start.D5GPCQZD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BOoI-hsu.js +0 -4
- package/build/client/_app/immutable/nodes/0.BOoI-hsu.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BOoI-hsu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.KYdA6ppX.js.br +0 -2
- package/build/client/_app/immutable/nodes/1.KYdA6ppX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DBz20KgG.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DBz20KgG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.19DIoFtw.js +0 -1
- package/build/client/_app/immutable/nodes/3.19DIoFtw.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.19DIoFtw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BvMzqBJj.js +0 -3
- package/build/client/_app/immutable/nodes/4.BvMzqBJj.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BvMzqBJj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.Dq6obSGG.js +0 -42
- package/build/client/_app/immutable/nodes/5.Dq6obSGG.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Dq6obSGG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BOHISqs-.js +0 -5
- package/build/client/_app/immutable/nodes/6.BOHISqs-.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BOHISqs-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CemgNJfw.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CemgNJfw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DejSfIYh.js +0 -5
- package/build/client/_app/immutable/nodes/8.DejSfIYh.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DejSfIYh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CMW6a2Lg.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CMW6a2Lg.js.gz +0 -0
- package/build/server/chunks/0-C_o0oz-N.js +0 -15
- package/build/server/chunks/0-C_o0oz-N.js.map +0 -1
- package/build/server/chunks/1-DPpKAKXV.js +0 -9
- package/build/server/chunks/2-AlfFqtL1.js +0 -9
- package/build/server/chunks/2-AlfFqtL1.js.map +0 -1
- package/build/server/chunks/3-vbjUt_51.js +0 -16
- package/build/server/chunks/3-vbjUt_51.js.map +0 -1
- package/build/server/chunks/4-BNow4x6D.js +0 -16
- package/build/server/chunks/4-BNow4x6D.js.map +0 -1
- package/build/server/chunks/5-D7OCJpxD.js +0 -9
- package/build/server/chunks/5-D7OCJpxD.js.map +0 -1
- package/build/server/chunks/6-QQ7r8Rd5.js +0 -9
- package/build/server/chunks/7-CbPLGaIG.js +0 -9
- package/build/server/chunks/7-CbPLGaIG.js.map +0 -1
- package/build/server/chunks/8-CVO-E-sf.js +0 -9
- package/build/server/chunks/8-CVO-E-sf.js.map +0 -1
- package/build/server/chunks/9-DxT1baO5.js +0 -9
- package/build/server/chunks/9-DxT1baO5.js.map +0 -1
- package/build/server/chunks/FeatureTransforms-UWDHmWEg.js.map +0 -1
- package/build/server/chunks/FeatureValidator-B8qEjAUW.js.map +0 -1
- package/build/server/chunks/ManageTagsDialog-DBxA3tM2.js.map +0 -1
- package/build/server/chunks/ProgressBar-CfhccQ83.js.map +0 -1
- package/build/server/chunks/ProjectsIndex-CoDrvRya.js.map +0 -1
- package/build/server/chunks/RenameTag-BuWLMl1m.js.map +0 -1
- package/build/server/chunks/TagDotStrip-B1XQ0m0Y.js.map +0 -1
- package/build/server/chunks/TagPalette-CtMNYCmu.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BREws55o.js +0 -616
- package/build/server/chunks/_layout.svelte-BREws55o.js.map +0 -1
- package/build/server/chunks/_page.svelte-B1s7jxaQ.js.map +0 -1
- package/build/server/chunks/_page.svelte-B7hT3P8E.js +0 -29
- package/build/server/chunks/_page.svelte-BqSC-1vK.js.map +0 -1
- package/build/server/chunks/_page.svelte-BtI2zZ_Z.js.map +0 -1
- package/build/server/chunks/_page.svelte-De508ek8.js +0 -29
- package/build/server/chunks/_page.svelte-Zf9H4KOP.js.map +0 -1
- package/build/server/chunks/_server.ts-0uNTZKwF.js.map +0 -1
- package/build/server/chunks/_server.ts-DcZPhyhK.js +0 -59
- package/build/server/chunks/_server.ts-DcZPhyhK.js.map +0 -1
- package/build/server/chunks/_server.ts-Dy5zQHe2.js.map +0 -1
- package/build/server/chunks/_server.ts-YnfXkeMJ.js.map +0 -1
- package/build/server/chunks/_server.ts-vcaqdwxS.js.map +0 -1
- package/build/server/chunks/browserContainer-CNX7ANld.js.map +0 -1
- package/build/server/chunks/builderModeStore.svelte-ihupr-3p.js.map +0 -1
- package/build/server/chunks/client-DfpLcAZ9.js +0 -24
- package/build/server/chunks/featuresStore.svelte-DR1gYZyu.js +0 -98
- package/build/server/chunks/featuresStore.svelte-DR1gYZyu.js.map +0 -1
- package/build/server/chunks/hooks.server-Rv301GTB.js.map +0 -1
- package/build/server/chunks/identityStore.svelte-IIvW2_3b.js +0 -59
- package/build/server/chunks/identityStore.svelte-IIvW2_3b.js.map +0 -1
- package/build/server/chunks/projectsStore.svelte-QDz5PchX.js.map +0 -1
- package/build/server/chunks/reconcile-Dv7jS3C8.js.map +0 -1
- package/build/server/chunks/snapshotRepository-BPXCjX92.js.map +0 -1
- package/build/server/chunks/syncBridge-BwXzPdjJ.js.map +0 -1
- package/src/features/implementation-queue/presentation/components/QueuePanel.svelte +0 -204
- package/src/features/implementation-queue/presentation/stores/queueStore.svelte.ts +0 -143
- /package/build/client/_app/immutable/assets/{9.nv0I59TU.css → 12.nv0I59TU.css} +0 -0
- /package/build/client/_app/immutable/assets/{9.nv0I59TU.css.br → 12.nv0I59TU.css.br} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-Dip65hLJ.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/projects/_id_/_server.ts.js"],"sourcesContent":["import { t as getSnapshotRepository } from \"../../../../../chunks/snapshotRepository.js\";\nimport { t as systemClock } from \"../../../../../chunks/Clock.js\";\nimport { n as createSyncAwareProjectRepository } from \"../../../../../chunks/syncAwareRepositories.js\";\nimport { n as saveProjectUseCase, r as getProjectUseCase, t as deleteProjectUseCase } from \"../../../../../chunks/DeleteProject.js\";\nimport { error, json } from \"@sveltejs/kit\";\n//#region src/routes/api/projects/[id]/+server.ts\nvar prerender = false;\nvar GET = async ({ params }) => {\n\tconst id = params.id;\n\tconst { projectRepo } = getSnapshotRepository();\n\tconst project = await getProjectUseCase({ repository: projectRepo })(id);\n\tif (!project) throw error(404, `Project ${id} not found`);\n\treturn json(project);\n};\nvar PUT = async ({ params, request }) => {\n\tconst id = params.id;\n\tlet body;\n\ttry {\n\t\tbody = await request.json();\n\t} catch {\n\t\tthrow error(400, \"Invalid JSON body\");\n\t}\n\tif (!body || typeof body !== \"object\") throw error(400, \"Body must be a Project object\");\n\tconst project = body;\n\tif (project.id !== id) throw error(400, `Body id \"${project.id}\" does not match URL id \"${id}\"`);\n\tif (typeof project.name !== \"string\" || project.name.trim().length === 0) throw error(400, \"Project name is required\");\n\tif (typeof project.description !== \"string\" || project.description.trim().length === 0) throw error(400, \"Project description is required\");\n\tconst { projectRepo } = getSnapshotRepository();\n\tawait saveProjectUseCase({\n\t\trepository: createSyncAwareProjectRepository(projectRepo),\n\t\tclock: systemClock\n\t})(project);\n\treturn json({ ok: true });\n};\nvar DELETE = async ({ params }) => {\n\tconst id = params.id;\n\tconst { projectRepo } = getSnapshotRepository();\n\tawait deleteProjectUseCase({ repository: projectRepo })(id);\n\treturn new Response(null, { status: 204 });\n};\n//#endregion\nexport { DELETE, GET, PUT, prerender };\n"],"names":[],"mappings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AM,KAAK,CAAC,GAAG,EAAE,0BAA0B,CAAC;AACvH,CAAC,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,iCAAiC,CAAC;AAC5I,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,qBAAqB,EAAE;AAChD,CAAC,MAAM,kBAAkB,CAAC;AAC1B,EAAE,UAAU,EAAE,gCAAgC,CAAC,WAAW,CAAC;AAC3D,EAAE,KAAK,EAAE;AACT,EAAE,CAAC,CAAC,OAAO,CAAC;AACZ,CAAC,OAAO,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AAC1B;AACG,IAAC,MAAM,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACnC,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE;AACrB,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,qBAAqB,EAAE;AAChD,CAAC,MAAM,oBAAoB,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC;AAC5D,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;AAC3C;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as getSyncManager, l as loadSnapshotFromDisk, c as computeChangeDescriptor, a as currentActiveUser } from './sync-
|
|
1
|
+
import { h as getSnapshotRepository } from './snapshotRepository-8f-2wTrb.js';
|
|
2
|
+
import { g as getSyncManager, l as loadSnapshotFromDisk, c as computeChangeDescriptor, a as currentActiveUser } from './sync-Bn6eSUhC.js';
|
|
3
3
|
import { p as parseRoomId, m as makeRoomId } from './protocol-3LlFyPP_.js';
|
|
4
4
|
import { g as getSyncEventsHub } from './syncEventsHub-DwyLfgKP.js';
|
|
5
5
|
import { a as asProjectId } from './ids-t7Gjdj0M.js';
|
|
6
6
|
import { e as error, j as json } from './index-CLnuRv4X.js';
|
|
7
|
-
import './TagPalette-
|
|
8
|
-
import './FeatureJson-
|
|
7
|
+
import './TagPalette-CpdTiC_7.js';
|
|
8
|
+
import './FeatureJson-DYvMEAub.js';
|
|
9
9
|
import './ImplementationStatus-7CfVZQtq.js';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'write-file-atomic';
|
|
@@ -103,4 +103,4 @@ var POST = async ({ request }) => {
|
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
export { POST, prerender };
|
|
106
|
-
//# sourceMappingURL=_server.ts-
|
|
106
|
+
//# sourceMappingURL=_server.ts-Dm0tCs2i.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-Dm0tCs2i.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/sync/reload/_server.ts.js"],"sourcesContent":["import { t as getSnapshotRepository } from \"../../../../../chunks/snapshotRepository.js\";\nimport { i as loadSnapshotFromDisk, n as currentActiveUser, r as computeChangeDescriptor, t as getSyncManager } from \"../../../../../chunks/sync.js\";\nimport { a as makeRoomId, o as parseRoomId } from \"../../../../../chunks/protocol.js\";\nimport { t as getSyncEventsHub } from \"../../../../../chunks/syncEventsHub.js\";\nimport { t as asProjectId } from \"../../../../../chunks/ids.js\";\nimport { error, json } from \"@sveltejs/kit\";\n//#region src/routes/api/sync/reload/+server.ts\nvar prerender = false;\n/**\n* Out-of-band invalidation hook for processes that wrote directly to disk\n* (notably the MCP server in standalone mode). The body is\n* { kind, id, name?, op? }\n* — name/op are the MCP-provided human label and verb. We then:\n*\n* 1. Snapshot the room's in-memory state (the \"before\") for diffing.\n* 2. reloadFromDisk to pull in the new state.\n* 3. Snapshot again (the \"after\").\n* 4. Diff before vs after to produce a structured ChangeDescriptor\n* (op = added | removed | renamed | edited | queued | ..., path =\n* [\"FeatureName\", \"SurfaceName\", \"ActionName\"]).\n* 5. For feature events, look up the containing project so toasts can\n* breadcrumb the full hierarchy.\n* 6. Broadcast a rich SyncEvent so consumers (SSE → SyncToast, history\n* panel, etc.) all see the same diff.\n*\n* `id` flows into `statusFilePath(...).join()`, so we re-use the same\n* charset guard that `parseRoomId` enforces on the WebSocket path to make\n* sure an unauthenticated POST can't escape the snapshot directory.\n*/\nvar POST = async ({ request }) => {\n\tlet body;\n\ttry {\n\t\tbody = await request.json();\n\t} catch {\n\t\tthrow error(400, \"Invalid JSON body\");\n\t}\n\tif (!body || typeof body !== \"object\") throw error(400, \"Body must be { kind, id }\");\n\tconst { kind, id, name, op } = body;\n\tif (kind !== \"feature\" && kind !== \"project\" && kind !== \"implementation-status\") throw error(400, \"kind must be feature|project|implementation-status\");\n\tif (typeof id !== \"string\" || id.length === 0) throw error(400, \"id is required\");\n\tif (!parseRoomId(`${kind}:${id}`)) throw error(400, \"id must match [A-Za-z0-9_-]+\");\n\tconst { manager, directory } = getSyncManager();\n\tconst roomKind = kind;\n\tconst roomId = makeRoomId(roomKind, id);\n\tconst previousSnapshot = manager.getSnapshot(roomId);\n\tawait manager.reloadFromDisk(roomId);\n\tlet nextSnapshot = manager.getSnapshot(roomId);\n\tif (nextSnapshot === null && op !== \"delete\") try {\n\t\tawait manager.getOrLoad(roomId);\n\t\tnextSnapshot = manager.getSnapshot(roomId);\n\t} catch {\n\t\ttry {\n\t\t\tnextSnapshot = await loadSnapshotFromDisk(directory, roomKind, id);\n\t\t} catch {}\n\t}\n\tconst { repo: featureRepo, projectRepo } = getSnapshotRepository();\n\tlet resolveFeatureName;\n\tif (roomKind === \"project\") try {\n\t\tconst summaries = await featureRepo.list();\n\t\tconst byId = new Map(summaries.map((s) => [String(s.id), s.name]));\n\t\tresolveFeatureName = (fid) => byId.get(fid);\n\t} catch {}\n\tconst descriptor = op === \"delete\" ? null : computeChangeDescriptor(roomKind, previousSnapshot, nextSnapshot, resolveFeatureName);\n\tlet projectName;\n\tif (roomKind === \"feature\" && op !== \"delete\") try {\n\t\tconst projects = await projectRepo.list();\n\t\tfor (const summary of projects) {\n\t\t\tconst project = await projectRepo.get(asProjectId(String(summary.id)));\n\t\t\tif (project?.featureIds.some((fid) => String(fid) === id)) {\n\t\t\t\tprojectName = project.name;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t} catch {}\n\tconst actingFor = currentActiveUser();\n\tconst event = {\n\t\tkind: roomKind,\n\t\tid,\n\t\t...typeof name === \"string\" && name.length > 0 ? { name } : {},\n\t\t...projectName ? { projectName } : {},\n\t\t...op === \"save\" || op === \"delete\" ? { op } : {},\n\t\t...descriptor ? {\n\t\t\tchangeOp: descriptor.op,\n\t\t\tchangePath: descriptor.path\n\t\t} : {},\n\t\t...op === \"delete\" ? { changeOp: \"deleted\" } : {},\n\t\t...descriptor?.previousName ? { previousName: descriptor.previousName } : {},\n\t\t...actingFor ? { actingFor } : {}\n\t};\n\tgetSyncEventsHub().broadcast(event);\n\treturn json({ ok: true });\n};\n//#endregion\nexport { POST, prerender };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAMA;AACG,IAAC,SAAS,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,IAAI,GAAG,OAAO,EAAE,OAAO,EAAE,KAAK;AAClC,CAAC,IAAI,IAAI;AACT,CAAC,IAAI;AACL,EAAE,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE;AAC7B,CAAC,CAAC,CAAC,MAAM;AACT,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,mBAAmB,CAAC;AACvC,CAAC;AACD,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,2BAA2B,CAAC;AACrF,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,I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AE,IAAI,EAAE,QAAQ;AAChB,EAAE,EAAE;AACJ,EAAE,GAAG,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE;AAChE,EAAE,GAAG,WAAW,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE;AACvC,EAAE,GAAG,EAAE,KAAK,MAAM,IAAI,EAAE,KAAK,QAAQ,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE;AACnD,EAAE,GAAG,UAAU,GAAG;AAClB,GAAG,QAAQ,EAAE,UAAU,CAAC,EAAE;AAC1B,GAAG,UAAU,EAAE,UAAU,CAAC;AAC1B,GAAG,GAAG,EAAE;AACR,EAAE,GAAG,EAAE,KAAK,QAAQ,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE;AACnD,EAAE,GAAG,UAAU,EAAE,YAAY,GAAG,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,GAAG,EAAE;AAC9E,EAAE,GAAG,SAAS,GAAG,EAAE,SAAS,EAAE,GAAG;AACjC,EAAE;AACF,CAAC,gBAAgB,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;AACpC,CAAC,OAAO,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AAC1B;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { I as isTagColor, P as normalizeTagColor } from './TagPalette-CpdTiC_7.js';
|
|
2
|
+
import { h as getSnapshotRepository } from './snapshotRepository-8f-2wTrb.js';
|
|
3
3
|
import { j as json, e as error } from './index-CLnuRv4X.js';
|
|
4
|
-
import './FeatureJson-
|
|
4
|
+
import './FeatureJson-DYvMEAub.js';
|
|
5
5
|
import './ImplementationStatus-7CfVZQtq.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'write-file-atomic';
|
|
@@ -43,4 +43,4 @@ var PUT = async ({ request }) => {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export { GET, PUT, prerender };
|
|
46
|
-
//# sourceMappingURL=_server.ts-
|
|
46
|
+
//# sourceMappingURL=_server.ts-DsYwK_uW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-DsYwK_uW.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/tag-palette/_server.ts.js"],"sourcesContent":["import { a as isTagColor, o as normalizeTagColor } from \"../../../../chunks/TagPalette.js\";\nimport { t as getSnapshotRepository } from \"../../../../chunks/snapshotRepository.js\";\nimport { error, json } from \"@sveltejs/kit\";\n//#region src/routes/api/tag-palette/+server.ts\nvar prerender = false;\nvar GET = async () => {\n\tconst { tagPaletteRepo } = getSnapshotRepository();\n\treturn json(await tagPaletteRepo.get());\n};\nvar PUT = async ({ request }) => {\n\tlet body;\n\ttry {\n\t\tbody = await request.json();\n\t} catch {\n\t\tthrow error(400, \"Invalid JSON body\");\n\t}\n\tif (!body || typeof body !== \"object\") throw error(400, \"Body must be a TagPalette object\");\n\tconst assignmentsRaw = body.assignments;\n\tif (!assignmentsRaw || typeof assignmentsRaw !== \"object\") throw error(400, \"TagPalette.assignments must be an object\");\n\tconst assignments = {};\n\tfor (const [type, value] of Object.entries(assignmentsRaw)) {\n\t\tconst key = type.trim().toLowerCase();\n\t\tif (!key) continue;\n\t\tif (value === null) {\n\t\t\tassignments[key] = null;\n\t\t\tcontinue;\n\t\t}\n\t\tif (!isTagColor(value)) throw error(400, `Invalid value for tag type \"${type}\". Expected #rrggbb or null.`);\n\t\tassignments[key] = normalizeTagColor(value);\n\t}\n\tconst palette = { assignments };\n\tconst { tagPaletteRepo } = getSnapshotRepository();\n\tawait tagPaletteRepo.save(palette);\n\treturn json(palette);\n};\n//#endregion\nexport { GET, PUT, prerender };\n"],"names":[],"mappings":";;;;;;;;;;;AAGA;AACG,IAAC,SAAS,GA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C,KAAK,CAAC;AAC7C,CAAC;AACD,CAAC,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE;AAChC,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,qBAAqB,EAAE;AACnD,CAAC,MAAM,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC;AACnC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC;AACrB;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as getSnapshotRepository } from './snapshotRepository-8f-2wTrb.js';
|
|
2
2
|
import { j as json } from './index-CLnuRv4X.js';
|
|
3
|
-
import './TagPalette-
|
|
4
|
-
import './FeatureJson-
|
|
3
|
+
import './TagPalette-CpdTiC_7.js';
|
|
4
|
+
import './FeatureJson-DYvMEAub.js';
|
|
5
5
|
import './ImplementationStatus-7CfVZQtq.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'write-file-atomic';
|
|
@@ -20,4 +20,4 @@ var GET = async () => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export { GET, prerender };
|
|
23
|
-
//# sourceMappingURL=_server.ts-
|
|
23
|
+
//# sourceMappingURL=_server.ts-RCEgegYU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_server.ts-
|
|
1
|
+
{"version":3,"file":"_server.ts-RCEgegYU.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/projects/_server.ts.js"],"sourcesContent":["import { t as getSnapshotRepository } from \"../../../../chunks/snapshotRepository.js\";\nimport { json } from \"@sveltejs/kit\";\n//#region src/routes/api/projects/+server.ts\nvar prerender = false;\nvar GET = async () => {\n\tconst { projectRepo, directory } = getSnapshotRepository();\n\treturn json({\n\t\tdirectory,\n\t\tsummaries: await projectRepo.list()\n\t});\n};\n//#endregion\nexport { GET, prerender };\n"],"names":[],"mappings":";;;;;;;;;;;AAEA;AACG,IAAC,SAAS,GAAG;AACb,IAAC,GAAG,GAAG,YAAY;AACtB,CAAC,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,qBAAqB,EAAE;AAC3D,CAAC,OAAO,IAAI,CAAC;AACb,EAAE,SAAS;AACX,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC,IAAI;AACnC,EAAE,CAAC;AACH;;;;"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h as getSnapshotRepository, w as walkBySuffix, a as JsonFolderFeatureRepository, b as JsonFolderProjectRepository, J as JsonFolderDomainRepository, F as FEATURE_SUFFIX, P as PROJECT_SUFFIX } from './snapshotRepository-8f-2wTrb.js';
|
|
2
|
+
import { b as buildSearchDocs } from './buildSearchDocs-Cyfrnw9G.js';
|
|
3
|
+
import { j as json } from './index-CLnuRv4X.js';
|
|
4
|
+
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
5
|
+
import writeFileAtomic from 'write-file-atomic';
|
|
6
|
+
import { join } from 'node:path';
|
|
7
|
+
import './TagPalette-CpdTiC_7.js';
|
|
8
|
+
import './FeatureJson-DYvMEAub.js';
|
|
9
|
+
import './ImplementationStatus-7CfVZQtq.js';
|
|
10
|
+
import 'node:os';
|
|
11
|
+
import './Effect-BJtLR-6l.js';
|
|
12
|
+
import './humanize-CkCPfeWi.js';
|
|
13
|
+
import './index-DBqjc0Yf.js';
|
|
14
|
+
|
|
15
|
+
//#region src/lib/server/searchIndex.ts
|
|
16
|
+
/**
|
|
17
|
+
* The header global search used to build its index in the BROWSER on every
|
|
18
|
+
* open: a `list()` plus a `get()` per feature and per project, each an HTTP
|
|
19
|
+
* round-trip, and each `get()` re-parsing the whole snapshot folder on the
|
|
20
|
+
* server (O(N²)). On a large hub that made the panel "way too long to index".
|
|
21
|
+
*
|
|
22
|
+
* This module moves the build server-side and serves it as one precomputed
|
|
23
|
+
* file. The index is kept fresh automatically by a cheap content STAMP rather
|
|
24
|
+
* than any write-path hook: every read compares the current stamp (file count +
|
|
25
|
+
* newest mtime, stat-only, no parse) against the cached/persisted one and only
|
|
26
|
+
* rebuilds when something on disk actually changed. The pure
|
|
27
|
+
* {@link buildSearchDocs} walker stays the single source of truth for "what is
|
|
28
|
+
* searchable" and is reused verbatim.
|
|
29
|
+
*/
|
|
30
|
+
/** Dot-file so `walkBySuffix` (which only descends real subfolders) never
|
|
31
|
+
* mistakes it for a snapshot, and `unspa/*` gitignore already covers it. */
|
|
32
|
+
var INDEX_FILENAME = ".search-index.json";
|
|
33
|
+
var memo = null;
|
|
34
|
+
/**
|
|
35
|
+
* Cheap freshness key over the whole model: how many snapshot files there are
|
|
36
|
+
* plus the newest mtime among them. Stat-only — never parses JSON — so it costs
|
|
37
|
+
* a fraction of a full rebuild. Any save/delete/MCP write bumps a count or an
|
|
38
|
+
* mtime, which is exactly when the index must rebuild.
|
|
39
|
+
*/
|
|
40
|
+
var computeModelStamp = (root) => {
|
|
41
|
+
let count = 0;
|
|
42
|
+
let newest = 0;
|
|
43
|
+
const account = (path) => {
|
|
44
|
+
try {
|
|
45
|
+
const st = statSync(path);
|
|
46
|
+
count += 1;
|
|
47
|
+
if (st.mtimeMs > newest) newest = st.mtimeMs;
|
|
48
|
+
} catch {}
|
|
49
|
+
};
|
|
50
|
+
for (const { path } of walkBySuffix(root, FEATURE_SUFFIX)) account(path);
|
|
51
|
+
for (const { path } of walkBySuffix(root, PROJECT_SUFFIX)) account(path);
|
|
52
|
+
if (existsSync(root)) {
|
|
53
|
+
for (const file of readdirSync(root)) if (file.endsWith(".domain.json")) account(join(root, file));
|
|
54
|
+
}
|
|
55
|
+
return `${count}:${newest}`;
|
|
56
|
+
};
|
|
57
|
+
/** Read every entity once (no O(N²)) and flatten via the shared walker. */
|
|
58
|
+
var buildIndexAt = async (root) => {
|
|
59
|
+
const featureRepo = new JsonFolderFeatureRepository(root);
|
|
60
|
+
const projectRepo = new JsonFolderProjectRepository(root);
|
|
61
|
+
const domainRepo = new JsonFolderDomainRepository(root);
|
|
62
|
+
const [features, projects, domains] = await Promise.all([
|
|
63
|
+
featureRepo.listFull(),
|
|
64
|
+
projectRepo.listFull(),
|
|
65
|
+
domainRepo.listFull()
|
|
66
|
+
]);
|
|
67
|
+
return buildSearchDocs({
|
|
68
|
+
projects: projects.map((project) => ({
|
|
69
|
+
id: String(project.id),
|
|
70
|
+
name: project.name,
|
|
71
|
+
description: project.description,
|
|
72
|
+
tags: project.tags,
|
|
73
|
+
featureIds: project.featureIds.map(String)
|
|
74
|
+
})),
|
|
75
|
+
features,
|
|
76
|
+
domains: domains.map((domain) => ({
|
|
77
|
+
id: String(domain.id),
|
|
78
|
+
name: domain.name,
|
|
79
|
+
description: domain.description
|
|
80
|
+
}))
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
var readPersisted = (filePath) => {
|
|
84
|
+
try {
|
|
85
|
+
if (!existsSync(filePath)) return null;
|
|
86
|
+
const parsed = JSON.parse(readFileSync(filePath, "utf8"));
|
|
87
|
+
if (typeof parsed?.version === "string" && Array.isArray(parsed.docs)) return parsed;
|
|
88
|
+
return null;
|
|
89
|
+
} catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
var persist = async (filePath, version, docs) => {
|
|
94
|
+
const payload = {
|
|
95
|
+
version,
|
|
96
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
97
|
+
docs
|
|
98
|
+
};
|
|
99
|
+
try {
|
|
100
|
+
await writeFileAtomic(filePath, JSON.stringify(payload), "utf8");
|
|
101
|
+
} catch {}
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Resolve the search index for a specific snapshot directory. Returns the
|
|
105
|
+
* cached/persisted docs when the stamp is unchanged, otherwise rebuilds,
|
|
106
|
+
* persists, and memoizes. Exported for tests; the app uses {@link getSearchIndex}.
|
|
107
|
+
*/
|
|
108
|
+
var getSearchIndexFor = async (root) => {
|
|
109
|
+
const stamp = computeModelStamp(root);
|
|
110
|
+
if (memo && memo.root === root && memo.stamp === stamp) return memo.docs;
|
|
111
|
+
const filePath = join(root, INDEX_FILENAME);
|
|
112
|
+
const persisted = readPersisted(filePath);
|
|
113
|
+
if (persisted && persisted.version === stamp) {
|
|
114
|
+
memo = {
|
|
115
|
+
root,
|
|
116
|
+
stamp,
|
|
117
|
+
docs: persisted.docs
|
|
118
|
+
};
|
|
119
|
+
return persisted.docs;
|
|
120
|
+
}
|
|
121
|
+
const docs = await buildIndexAt(root);
|
|
122
|
+
memo = {
|
|
123
|
+
root,
|
|
124
|
+
stamp,
|
|
125
|
+
docs
|
|
126
|
+
};
|
|
127
|
+
await persist(filePath, stamp, docs);
|
|
128
|
+
return docs;
|
|
129
|
+
};
|
|
130
|
+
/** The whole-model search index for the dashboard's resolved snapshot folder. */
|
|
131
|
+
var getSearchIndex = () => getSearchIndexFor(getSnapshotRepository().directory);
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/routes/api/search-index/+server.ts
|
|
134
|
+
var prerender = false;
|
|
135
|
+
/**
|
|
136
|
+
* Serves the precomputed whole-model search index that backs the header global
|
|
137
|
+
* search. The build + freshness logic lives in `$lib/server/searchIndex`; this
|
|
138
|
+
* route is just the transport. Auth rides the same hooks/token as every other
|
|
139
|
+
* `/api` route (the browser sends it via `apiFetch`).
|
|
140
|
+
*/
|
|
141
|
+
var GET = async () => {
|
|
142
|
+
return json({ docs: await getSearchIndex() });
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
export { GET, prerender };
|
|
146
|
+
//# sourceMappingURL=_server.ts-XOLAT4dd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-XOLAT4dd.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/search-index/_server.ts.js"],"sourcesContent":["import { a as JsonFolderFeatureRepository, b as walkBySuffix, c as PROJECT_SUFFIX, n as JsonFolderDomainRepository, r as JsonFolderProjectRepository, s as FEATURE_SUFFIX, t as getSnapshotRepository } from \"../../../../chunks/snapshotRepository.js\";\nimport { t as buildSearchDocs } from \"../../../../chunks/buildSearchDocs.js\";\nimport { json } from \"@sveltejs/kit\";\nimport { existsSync, readFileSync, readdirSync, statSync } from \"node:fs\";\nimport writeFileAtomic from \"write-file-atomic\";\nimport { join } from \"node:path\";\n//#region src/lib/server/searchIndex.ts\n/**\n* The header global search used to build its index in the BROWSER on every\n* open: a `list()` plus a `get()` per feature and per project, each an HTTP\n* round-trip, and each `get()` re-parsing the whole snapshot folder on the\n* server (O(N²)). On a large hub that made the panel \"way too long to index\".\n*\n* This module moves the build server-side and serves it as one precomputed\n* file. The index is kept fresh automatically by a cheap content STAMP rather\n* than any write-path hook: every read compares the current stamp (file count +\n* newest mtime, stat-only, no parse) against the cached/persisted one and only\n* rebuilds when something on disk actually changed. The pure\n* {@link buildSearchDocs} walker stays the single source of truth for \"what is\n* searchable\" and is reused verbatim.\n*/\n/** Dot-file so `walkBySuffix` (which only descends real subfolders) never\n* mistakes it for a snapshot, and `unspa/*` gitignore already covers it. */\nvar INDEX_FILENAME = \".search-index.json\";\nvar memo = null;\n/**\n* Cheap freshness key over the whole model: how many snapshot files there are\n* plus the newest mtime among them. Stat-only — never parses JSON — so it costs\n* a fraction of a full rebuild. Any save/delete/MCP write bumps a count or an\n* mtime, which is exactly when the index must rebuild.\n*/\nvar computeModelStamp = (root) => {\n\tlet count = 0;\n\tlet newest = 0;\n\tconst account = (path) => {\n\t\ttry {\n\t\t\tconst st = statSync(path);\n\t\t\tcount += 1;\n\t\t\tif (st.mtimeMs > newest) newest = st.mtimeMs;\n\t\t} catch {}\n\t};\n\tfor (const { path } of walkBySuffix(root, FEATURE_SUFFIX)) account(path);\n\tfor (const { path } of walkBySuffix(root, PROJECT_SUFFIX)) account(path);\n\tif (existsSync(root)) {\n\t\tfor (const file of readdirSync(root)) if (file.endsWith(\".domain.json\")) account(join(root, file));\n\t}\n\treturn `${count}:${newest}`;\n};\n/** Read every entity once (no O(N²)) and flatten via the shared walker. */\nvar buildIndexAt = async (root) => {\n\tconst featureRepo = new JsonFolderFeatureRepository(root);\n\tconst projectRepo = new JsonFolderProjectRepository(root);\n\tconst domainRepo = new JsonFolderDomainRepository(root);\n\tconst [features, projects, domains] = await Promise.all([\n\t\tfeatureRepo.listFull(),\n\t\tprojectRepo.listFull(),\n\t\tdomainRepo.listFull()\n\t]);\n\treturn buildSearchDocs({\n\t\tprojects: projects.map((project) => ({\n\t\t\tid: String(project.id),\n\t\t\tname: project.name,\n\t\t\tdescription: project.description,\n\t\t\ttags: project.tags,\n\t\t\tfeatureIds: project.featureIds.map(String)\n\t\t})),\n\t\tfeatures,\n\t\tdomains: domains.map((domain) => ({\n\t\t\tid: String(domain.id),\n\t\t\tname: domain.name,\n\t\t\tdescription: domain.description\n\t\t}))\n\t});\n};\nvar readPersisted = (filePath) => {\n\ttry {\n\t\tif (!existsSync(filePath)) return null;\n\t\tconst parsed = JSON.parse(readFileSync(filePath, \"utf8\"));\n\t\tif (typeof parsed?.version === \"string\" && Array.isArray(parsed.docs)) return parsed;\n\t\treturn null;\n\t} catch {\n\t\treturn null;\n\t}\n};\nvar persist = async (filePath, version, docs) => {\n\tconst payload = {\n\t\tversion,\n\t\tgeneratedAt: (/* @__PURE__ */ new Date()).toISOString(),\n\t\tdocs\n\t};\n\ttry {\n\t\tawait writeFileAtomic(filePath, JSON.stringify(payload), \"utf8\");\n\t} catch {}\n};\n/**\n* Resolve the search index for a specific snapshot directory. Returns the\n* cached/persisted docs when the stamp is unchanged, otherwise rebuilds,\n* persists, and memoizes. Exported for tests; the app uses {@link getSearchIndex}.\n*/\nvar getSearchIndexFor = async (root) => {\n\tconst stamp = computeModelStamp(root);\n\tif (memo && memo.root === root && memo.stamp === stamp) return memo.docs;\n\tconst filePath = join(root, INDEX_FILENAME);\n\tconst persisted = readPersisted(filePath);\n\tif (persisted && persisted.version === stamp) {\n\t\tmemo = {\n\t\t\troot,\n\t\t\tstamp,\n\t\t\tdocs: persisted.docs\n\t\t};\n\t\treturn persisted.docs;\n\t}\n\tconst docs = await buildIndexAt(root);\n\tmemo = {\n\t\troot,\n\t\tstamp,\n\t\tdocs\n\t};\n\tawait persist(filePath, stamp, docs);\n\treturn docs;\n};\n/** The whole-model search index for the dashboard's resolved snapshot folder. */\nvar getSearchIndex = () => getSearchIndexFor(getSnapshotRepository().directory);\n//#endregion\n//#region src/routes/api/search-index/+server.ts\nvar prerender = false;\n/**\n* Serves the precomputed whole-model search index that backs the header global\n* search. The build + freshness logic lives in `$lib/server/searchIndex`; this\n* route is just the transport. Auth rides the same hooks/token as every other\n* `/api` route (the browser sends it via `apiFetch`).\n*/\nvar GET = async () => {\n\treturn json({ docs: await getSearchIndex() });\n};\n//#endregion\nexport { GET, prerender };\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAc,GAAG,oBAAoB;AACzC,IAAI,IAAI,GAAG,IAAI;AACf;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,iBAAiB,GAAG,CAAC,IAAI,KAAK;AAClC,CAAC,IAAI,KAAK,GAAG,CAAC;AACd,CAAC,IAAI,MAAM,GAAG,CAAC;AACf,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,KAAK;AAC3B,EAAE,IAAI;AACN,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,CAAC;AAC5B,GAAG,KAAK,IAAI,CAAC;AACb,GAAG,IAAI,EAAE,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,OAAO;AAC/C,EAAE,CAAC,CAAC,MAAM,CAAC;AACX,CAAC,CAAC;AACF,CAAC,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,YAAY,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC;AACzE,CAAC,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,YAAY,CAAC,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,C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AK,EAAE,OAAO,IAAI,CAAC,IAAI;AACzE,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC;AAC5C,CAAC,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC;AAC1C,CAAC,IAAI,SAAS,IAAI,SAAS,CAAC,OAAO,KAAK,KAAK,EAAE;AAC/C,EAAE,IAAI,GAAG;AACT,GAAG,IAAI;AACP,GAAG,KAAK;AACR,GAAG,IAAI,EAAE,SAAS,CAAC;AACnB,GAAG;AACH,EAAE,OAAO,SAAS,CAAC,IAAI;AACvB,CAAC;AACD,CAAC,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC;AACtC,CAAC,IAAI,GAAG;AACR,EAAE,IAAI;AACN,EAAE,KAAK;AACP,EAAE;AACF,EAAE;AACF,CAAC,MAAM,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC;AACrC,CAAC,OAAO,IAAI;AACZ,CAAC;AACD;AACA,IAAI,cAAc,GAAG,MAAM,iBAAiB,CAAC,qBAAqB,EAAE,CAAC,SAAS,CAAC;AAC/E;AACA;AACG,IAAC,SAAS,GAAG;AAChB;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,GAAG,GAAG,YAAY;AACtB,CAAC,OAAO,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,cAAc,EAAE,EAAE,CAAC;AAC9C;;;;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { h as getSnapshotRepository } from './snapshotRepository-8f-2wTrb.js';
|
|
2
|
+
import { j as json, e as error } from './index-CLnuRv4X.js';
|
|
3
|
+
import { spawn } from 'node:child_process';
|
|
4
|
+
import { mkdir } from 'node:fs/promises';
|
|
5
|
+
import './TagPalette-CpdTiC_7.js';
|
|
6
|
+
import './FeatureJson-DYvMEAub.js';
|
|
7
|
+
import './ImplementationStatus-7CfVZQtq.js';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'write-file-atomic';
|
|
10
|
+
import 'node:path';
|
|
11
|
+
import 'node:os';
|
|
12
|
+
import './index-DBqjc0Yf.js';
|
|
13
|
+
|
|
14
|
+
//#region src/lib/server/openLocalDirectory.ts
|
|
15
|
+
var openDirectoryCommand = (directory, platform = process.platform) => {
|
|
16
|
+
switch (platform) {
|
|
17
|
+
case "win32": return {
|
|
18
|
+
command: "explorer.exe",
|
|
19
|
+
args: [directory]
|
|
20
|
+
};
|
|
21
|
+
case "darwin": return {
|
|
22
|
+
command: "open",
|
|
23
|
+
args: [directory]
|
|
24
|
+
};
|
|
25
|
+
default: return {
|
|
26
|
+
command: "xdg-open",
|
|
27
|
+
args: [directory]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var openLocalDirectory = async (directory) => {
|
|
32
|
+
await mkdir(directory, { recursive: true });
|
|
33
|
+
const { command, args } = openDirectoryCommand(directory);
|
|
34
|
+
await new Promise((resolve, reject) => {
|
|
35
|
+
const child = spawn(command, [...args], {
|
|
36
|
+
detached: true,
|
|
37
|
+
stdio: "ignore",
|
|
38
|
+
windowsHide: true
|
|
39
|
+
});
|
|
40
|
+
child.once("error", reject);
|
|
41
|
+
child.once("spawn", () => {
|
|
42
|
+
child.unref();
|
|
43
|
+
resolve();
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/routes/api/system/hub-directory/+server.ts
|
|
49
|
+
var prerender = false;
|
|
50
|
+
var GET = () => {
|
|
51
|
+
const { directory } = getSnapshotRepository();
|
|
52
|
+
return json({ directory });
|
|
53
|
+
};
|
|
54
|
+
var POST = async () => {
|
|
55
|
+
const { directory } = getSnapshotRepository();
|
|
56
|
+
try {
|
|
57
|
+
await openLocalDirectory(directory);
|
|
58
|
+
} catch (cause) {
|
|
59
|
+
console.error(`Could not open snapshot directory "${directory}":`, cause);
|
|
60
|
+
throw error(500, "Could not open the snapshot directory on this computer.");
|
|
61
|
+
}
|
|
62
|
+
return json({
|
|
63
|
+
ok: true,
|
|
64
|
+
directory
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { GET, POST, prerender };
|
|
69
|
+
//# sourceMappingURL=_server.ts-afh_zLVi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_server.ts-afh_zLVi.js","sources":["../../../.svelte-kit/adapter-node/entries/endpoints/api/system/hub-directory/_server.ts.js"],"sourcesContent":["import { t as getSnapshotRepository } from \"../../../../../chunks/snapshotRepository.js\";\nimport { error, json } from \"@sveltejs/kit\";\nimport { spawn } from \"node:child_process\";\nimport { mkdir } from \"node:fs/promises\";\n//#region src/lib/server/openLocalDirectory.ts\nvar openDirectoryCommand = (directory, platform = process.platform) => {\n\tswitch (platform) {\n\t\tcase \"win32\": return {\n\t\t\tcommand: \"explorer.exe\",\n\t\t\targs: [directory]\n\t\t};\n\t\tcase \"darwin\": return {\n\t\t\tcommand: \"open\",\n\t\t\targs: [directory]\n\t\t};\n\t\tdefault: return {\n\t\t\tcommand: \"xdg-open\",\n\t\t\targs: [directory]\n\t\t};\n\t}\n};\nvar openLocalDirectory = async (directory) => {\n\tawait mkdir(directory, { recursive: true });\n\tconst { command, args } = openDirectoryCommand(directory);\n\tawait new Promise((resolve, reject) => {\n\t\tconst child = spawn(command, [...args], {\n\t\t\tdetached: true,\n\t\t\tstdio: \"ignore\",\n\t\t\twindowsHide: true\n\t\t});\n\t\tchild.once(\"error\", reject);\n\t\tchild.once(\"spawn\", () => {\n\t\t\tchild.unref();\n\t\t\tresolve();\n\t\t});\n\t});\n};\n//#endregion\n//#region src/routes/api/system/hub-directory/+server.ts\nvar prerender = false;\nvar GET = () => {\n\tconst { directory } = getSnapshotRepository();\n\treturn json({ directory });\n};\nvar POST = async () => {\n\tconst { directory } = getSnapshotRepository();\n\ttry {\n\t\tawait openLocalDirectory(directory);\n\t} catch (cause) {\n\t\tconsole.error(`Could not open snapshot directory \"${directory}\":`, cause);\n\t\tthrow error(500, \"Could not open the snapshot directory on this computer.\");\n\t}\n\treturn json({\n\t\tok: true,\n\t\tdirectory\n\t});\n};\n//#endregion\nexport { GET, POST, prerender };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA;AACA,IAAI,oBAAoB,GAAG,CAAC,SAAS,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK;AACvE,CAAC,QAAQ,QAAQ;AACjB,EAAE,KAAK,OAAO,EAAE,OAAO;AACvB,GAAG,OAAO,EAAE,cAAc;AAC1B,GAAG,IAAI,EAAE,CAAC,SAAS;AACnB,GAAG;AACH,EAAE,KAAK,QAAQ,EAAE,OAAO;AACxB,GAAG,OAAO,EAAE,MAAM;AAClB,GAAG,IAAI,EAAE,CAAC,SAAS;AACnB,GAAG;AACH,EAAE,SAAS,OAAO;AAClB,GAAG,OAAO,EAAE,UAAU;AACtB,GAAG,IAAI,EAAE,CAAC,SAAS;AACnB,GAAG;AACH;AACA,CAAC;AACD,IAAI,kBAAkB,GAAG,OAAO,SAAS,KAAK;AAC9C,CAAC,MAAM,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAC5C,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AACxC,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;AAC1C,GAAG,QAAQ,EAAE,IAAI;AACjB,GAAG,KAAK,EAAE,QAAQ;AAClB,GAAG,WAAW,EAAE;AAChB,GAAG,CAAC;AACJ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;AAC7B,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM;AAC5B,GAAG,KAAK,CAAC,KAAK,EAAE;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