@juspay/shooter 1.19.0 → 1.21.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/build/client/_app/immutable/assets/11.F10lvwyh.css +1 -0
- package/build/client/_app/immutable/assets/11.F10lvwyh.css.br +0 -0
- package/build/client/_app/immutable/assets/11.F10lvwyh.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.BHi6pjT2.css +1 -0
- package/build/client/_app/immutable/assets/2.BHi6pjT2.css.br +0 -0
- package/build/client/_app/immutable/assets/2.BHi6pjT2.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{ZS5XYDx_.js → B1bOvemT.js} +1 -1
- package/build/client/_app/immutable/chunks/B1bOvemT.js.br +0 -0
- package/build/client/_app/immutable/chunks/{ZS5XYDx_.js.gz → B1bOvemT.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{DCDL_9ys.js → BmfLecb1.js} +1 -1
- package/build/client/_app/immutable/chunks/BmfLecb1.js.br +0 -0
- package/build/client/_app/immutable/chunks/BmfLecb1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C87ZRWX0.js +1 -0
- package/build/client/_app/immutable/chunks/C87ZRWX0.js.br +0 -0
- package/build/client/_app/immutable/chunks/C87ZRWX0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BvmdJful.js → CJulw9ux.js} +1 -1
- package/build/client/_app/immutable/chunks/CJulw9ux.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJulw9ux.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DOEXXmsh.js +3 -0
- package/build/client/_app/immutable/chunks/DOEXXmsh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DOEXXmsh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ClIPTXf3.js → DomZZqvG.js} +1 -1
- package/build/client/_app/immutable/chunks/DomZZqvG.js.br +0 -0
- package/build/client/_app/immutable/chunks/DomZZqvG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DA4Zt9Me.js → EqMAkEha.js} +1 -1
- package/build/client/_app/immutable/chunks/EqMAkEha.js.br +0 -0
- package/build/client/_app/immutable/chunks/EqMAkEha.js.gz +0 -0
- package/build/client/_app/immutable/chunks/J5-Cr5oR.js +6 -0
- package/build/client/_app/immutable/chunks/J5-Cr5oR.js.br +0 -0
- package/build/client/_app/immutable/chunks/J5-Cr5oR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BB2l8o4X.js → i5iZvmIH.js} +1 -1
- package/build/client/_app/immutable/chunks/i5iZvmIH.js.br +0 -0
- package/build/client/_app/immutable/chunks/i5iZvmIH.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.D4TXlu7A.js → app.CeSxgGat.js} +2 -2
- package/build/client/_app/immutable/entry/app.CeSxgGat.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CeSxgGat.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DrnJFwxA.js +1 -0
- package/build/client/_app/immutable/entry/start.DrnJFwxA.js.br +2 -0
- package/build/client/_app/immutable/entry/start.DrnJFwxA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.oaPwxh1O.js +10 -0
- package/build/client/_app/immutable/nodes/0.oaPwxh1O.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.oaPwxh1O.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BVnLUSs-.js → 1.DMPyoM-M.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DMPyoM-M.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DMPyoM-M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.D1wl2wPX.js → 10.Cbm7nQKK.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Cbm7nQKK.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Cbm7nQKK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CKmZjP_a.js +2 -0
- package/build/client/_app/immutable/nodes/11.CKmZjP_a.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CKmZjP_a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.zlrdNFtH.js +13 -0
- package/build/client/_app/immutable/nodes/2.zlrdNFtH.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.zlrdNFtH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.Wfz3TcJd.js → 3.BgLpGnzb.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BgLpGnzb.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BgLpGnzb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CBX9A3ka.js → 4.BFYS2g9C.js} +3 -3
- package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BFYS2g9C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.DIVKuZc9.js → 5.Avc1-gVb.js} +1 -1
- package/build/client/_app/immutable/nodes/5.Avc1-gVb.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Avc1-gVb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.DtZAEPXb.js → 6.Dw2wEssJ.js} +1 -1
- package/build/client/_app/immutable/nodes/6.Dw2wEssJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Dw2wEssJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.MfBRh32I.js → 7.DwKZjoBg.js} +1 -1
- package/build/client/_app/immutable/nodes/7.DwKZjoBg.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DwKZjoBg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.DVE6LnOC.js → 8.ZUAI6g5E.js} +1 -1
- package/build/client/_app/immutable/nodes/8.ZUAI6g5E.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.ZUAI6g5E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.BCel5OqI.js → 9.I_KGXPwB.js} +1 -1
- package/build/client/_app/immutable/nodes/9.I_KGXPwB.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.I_KGXPwB.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-DJqyZZTr.js → 0-vrTNAfZB.js} +4 -2
- package/build/server/chunks/0-vrTNAfZB.js.map +1 -0
- package/build/server/chunks/{1-2YUVen1F.js → 1-nbr-bOoF.js} +2 -2
- package/build/server/chunks/{1-2YUVen1F.js.map → 1-nbr-bOoF.js.map} +1 -1
- package/build/server/chunks/{10-D1X7LB3v.js → 10-ChyvvJ6w.js} +2 -2
- package/build/server/chunks/{10-D1X7LB3v.js.map → 10-ChyvvJ6w.js.map} +1 -1
- package/build/server/chunks/{11-qXSPdF5j.js → 11-6ZAjL3uU.js} +4 -4
- package/build/server/chunks/11-6ZAjL3uU.js.map +1 -0
- package/build/server/chunks/{2-BD7kj1mt.js → 2-DWFRVDWJ.js} +3 -3
- package/build/server/chunks/{2-BD7kj1mt.js.map → 2-DWFRVDWJ.js.map} +1 -1
- package/build/server/chunks/{3-oNjv-BhZ.js → 3-CKANM_WM.js} +2 -2
- package/build/server/chunks/{3-oNjv-BhZ.js.map → 3-CKANM_WM.js.map} +1 -1
- package/build/server/chunks/{4-Bb5VFhsO.js → 4-D92KnTmb.js} +3 -3
- package/build/server/chunks/{4-Bb5VFhsO.js.map → 4-D92KnTmb.js.map} +1 -1
- package/build/server/chunks/{5-oNoWuIsn.js → 5-BxVjs2qi.js} +2 -2
- package/build/server/chunks/{5-oNoWuIsn.js.map → 5-BxVjs2qi.js.map} +1 -1
- package/build/server/chunks/{6-DRJGUqHG.js → 6-Cbf1AAMQ.js} +2 -2
- package/build/server/chunks/{6-DRJGUqHG.js.map → 6-Cbf1AAMQ.js.map} +1 -1
- package/build/server/chunks/{7-_giJiu0L.js → 7-CMK2quEf.js} +2 -2
- package/build/server/chunks/{7-_giJiu0L.js.map → 7-CMK2quEf.js.map} +1 -1
- package/build/server/chunks/{8-zvWAVNT5.js → 8-DhdfkfDM.js} +2 -2
- package/build/server/chunks/{8-zvWAVNT5.js.map → 8-DhdfkfDM.js.map} +1 -1
- package/build/server/chunks/{9-DVyDL445.js → 9-CPpxtRM5.js} +2 -2
- package/build/server/chunks/{9-DVyDL445.js.map → 9-CPpxtRM5.js.map} +1 -1
- package/build/server/chunks/Banner-BgaAs1rs.js.map +1 -1
- package/build/server/chunks/Button-D0hZ7JYt.js.map +1 -1
- package/build/server/chunks/Icon-D0GBnDcs.js.map +1 -1
- package/build/server/chunks/Input-OmIiydSx.js.map +1 -1
- package/build/server/chunks/Pill-4xJ-VhAA.js.map +1 -1
- package/build/server/chunks/Shimmer-Dw2uvTC1.js.map +1 -1
- package/build/server/chunks/_error.svelte-CZnkxeLr.js.map +1 -1
- package/build/server/chunks/_layout.svelte-DfgNGGiM.js.map +1 -1
- package/build/server/chunks/_page.svelte-BTlfUsBp.js.map +1 -1
- package/build/server/chunks/_page.svelte-BX2FMgSg.js.map +1 -1
- package/build/server/chunks/_page.svelte-C7B0qdrC.js.map +1 -1
- package/build/server/chunks/_page.svelte-CE7COWnF.js.map +1 -1
- package/build/server/chunks/_page.svelte-CWsjjd4l.js.map +1 -1
- package/build/server/chunks/_page.svelte-D5S2hkBk.js.map +1 -1
- package/build/server/chunks/_page.svelte-D_Ey8QRG.js.map +1 -1
- package/build/server/chunks/{_page.svelte-BLo2v_8E.js → _page.svelte-Gv9p8nlS.js} +3 -4
- package/build/server/chunks/_page.svelte-Gv9p8nlS.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BUBLUSGo.js → _page.svelte-dabsQl9c.js} +206 -5
- package/build/server/chunks/_page.svelte-dabsQl9c.js.map +1 -0
- package/build/server/chunks/_page.svelte-tBuIq8Pg.js.map +1 -1
- package/build/server/chunks/_server.ts-B-evHL2q.js +13 -0
- package/build/server/chunks/_server.ts-B-evHL2q.js.map +1 -0
- package/build/server/chunks/_server.ts-BB46Fbqn.js +59 -0
- package/build/server/chunks/_server.ts-BB46Fbqn.js.map +1 -0
- package/build/server/chunks/{_server.ts-DMm0hBP4.js → _server.ts-BWVlO8iV.js} +8 -5
- package/build/server/chunks/_server.ts-BWVlO8iV.js.map +1 -0
- package/build/server/chunks/{_server.ts-BRAzC6W1.js → _server.ts-BevnuePu.js} +27 -6
- package/build/server/chunks/_server.ts-BevnuePu.js.map +1 -0
- package/build/server/chunks/_server.ts-CA5KUENM.js +95 -0
- package/build/server/chunks/_server.ts-CA5KUENM.js.map +1 -0
- package/build/server/chunks/{_server.ts-DhJx0DLr.js → _server.ts-CC2K8-L2.js} +16 -7
- package/build/server/chunks/_server.ts-CC2K8-L2.js.map +1 -0
- package/build/server/chunks/{_server.ts-Bi0Oe4PF.js → _server.ts-CD7JP3fz.js} +14 -9
- package/build/server/chunks/_server.ts-CD7JP3fz.js.map +1 -0
- package/build/server/chunks/{_server.ts-C_OOUqsd.js → _server.ts-D0zRDSx0.js} +2 -2
- package/build/server/chunks/{_server.ts-C_OOUqsd.js.map → _server.ts-D0zRDSx0.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DxT9IlZF.js → _server.ts-Dp-hXW_I.js} +3 -3
- package/build/server/chunks/{_server.ts-DxT9IlZF.js.map → _server.ts-Dp-hXW_I.js.map} +1 -1
- package/build/server/chunks/_server.ts-DpRr0Tfh.js +68 -0
- package/build/server/chunks/_server.ts-DpRr0Tfh.js.map +1 -0
- package/build/server/chunks/{_server.ts-Bjbr7glm.js → _server.ts-QN-Bo5ql.js} +12 -5
- package/build/server/chunks/_server.ts-QN-Bo5ql.js.map +1 -0
- package/build/server/chunks/_server.ts-VzDcFFgy.js +157 -0
- package/build/server/chunks/_server.ts-VzDcFFgy.js.map +1 -0
- package/build/server/chunks/{_server.ts-BrqaMMAa.js → _server.ts-W6i3EnGX.js} +29 -6
- package/build/server/chunks/_server.ts-W6i3EnGX.js.map +1 -0
- package/build/server/chunks/{_server.ts-CRVNEOd2.js → _server.ts-X1R7L_QI.js} +3 -3
- package/build/server/chunks/{_server.ts-CRVNEOd2.js.map → _server.ts-X1R7L_QI.js.map} +1 -1
- package/build/server/chunks/cache-BlMaDsHi.js.map +1 -1
- package/build/server/chunks/guest-registry-Dxvd7p-g.js +48 -0
- package/build/server/chunks/guest-registry-Dxvd7p-g.js.map +1 -0
- package/build/server/chunks/index-CoYB03g7.js.map +1 -1
- package/build/server/chunks/index2-dSGQ9Eaa.js.map +1 -1
- package/build/server/chunks/{pty-manager-41h3IK8K.js → pty-manager-ZqXqa-6A.js} +6 -2
- package/build/server/chunks/pty-manager-ZqXqa-6A.js.map +1 -0
- package/build/server/chunks/root-D4IoFC8F.js.map +1 -1
- package/build/server/chunks/share-auth-BS7JuiHf.js +27 -0
- package/build/server/chunks/share-auth-BS7JuiHf.js.map +1 -0
- package/build/server/chunks/share-store-B9jMpVg0.js +127 -0
- package/build/server/chunks/share-store-B9jMpVg0.js.map +1 -0
- package/build/server/chunks/state.svelte-CmHqngc_.js.map +1 -1
- package/build/server/chunks/stores-CRYxfF0o.js.map +1 -1
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +57 -22
- package/build/server/manifest.js.map +1 -1
- package/package.json +2 -2
- package/server.ts +10 -3
- package/src/lib/modules/client/dashboard/AutopilotPanel.svelte +400 -0
- package/src/lib/modules/client/dashboard/index.ts +1 -0
- package/src/lib/modules/client/neurolink/provider-config.ts +13 -37
- package/src/lib/modules/client/terminal/ShareGate.svelte +96 -0
- package/src/lib/modules/client/terminal/ShareSheet.svelte +395 -0
- package/src/lib/modules/client/terminal/xterm-wrapper.ts +19 -2
- package/src/lib/modules/server/sessions/autopilot-engine.ts +346 -0
- package/src/lib/modules/server/sessions/litellm-client.ts +115 -0
- package/src/lib/modules/server/sessions/next-step-consensus.ts +185 -0
- package/src/lib/modules/server/sessions/summary-store.ts +111 -0
- package/src/lib/modules/server/terminal/pty-manager.ts +6 -0
- package/src/lib/modules/server/terminal/share-auth.ts +37 -0
- package/src/lib/modules/server/terminal/share-store.ts +172 -0
- package/src/lib/modules/server/ws/events-handler.ts +32 -0
- package/src/lib/modules/server/ws/guest-registry.ts +49 -0
- package/src/lib/modules/server/ws/server.ts +22 -3
- package/src/lib/modules/server/ws/session-handler.ts +18 -4
- package/src/lib/modules/server/ws/terminal-handler.ts +21 -2
- package/src/lib/modules/server/ws/ticket-store.ts +18 -10
- package/src/lib/types/autopilot.ts +73 -0
- package/src/lib/types/generated/Client.ts +25 -1
- package/src/lib/types/generated/Share.ts +404 -0
- package/src/lib/types/generated/WsProtocol.ts +73 -2
- package/src/lib/types/generated/index.ts +1 -0
- package/src/lib/types/index.ts +1 -0
- package/src/lib/types/terminal-client.ts +21 -2
- package/src/lib/types/ws.ts +1 -0
- package/src/routes/+layout.server.ts +2 -0
- package/src/routes/+layout.svelte +19 -4
- package/src/routes/+page.svelte +9 -1
- package/src/routes/api/autopilot/+server.ts +74 -0
- package/src/routes/api/neurolink-proxy/+server.ts +31 -6
- package/src/routes/api/notify/+server.ts +20 -3
- package/src/routes/api/summaries/+server.ts +99 -0
- package/src/routes/api/terminals/[id]/+server.ts +14 -3
- package/src/routes/api/terminals/[id]/paste-image/+server.ts +8 -4
- package/src/routes/api/terminals/[id]/resize/+server.ts +8 -4
- package/src/routes/api/terminals/[id]/share/+server.ts +98 -0
- package/src/routes/api/terminals/[id]/share/auth/+server.ts +81 -0
- package/src/routes/api/terminals/[id]/share/status/+server.ts +11 -0
- package/src/routes/api/ws-ticket/+server.ts +26 -5
- package/src/routes/terminals/[id]/+page.svelte +184 -43
- package/build/client/_app/immutable/assets/11.v5KA95xm.css +0 -1
- package/build/client/_app/immutable/assets/11.v5KA95xm.css.br +0 -0
- package/build/client/_app/immutable/assets/11.v5KA95xm.css.gz +0 -0
- package/build/client/_app/immutable/assets/2.DjiwkLqE.css +0 -1
- package/build/client/_app/immutable/assets/2.DjiwkLqE.css.br +0 -0
- package/build/client/_app/immutable/assets/2.DjiwkLqE.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BB2l8o4X.js.br +0 -0
- package/build/client/_app/immutable/chunks/BB2l8o4X.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BcqA7eKM.js +0 -3
- package/build/client/_app/immutable/chunks/BcqA7eKM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BcqA7eKM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvmdJful.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvmdJful.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CR6bkGJW.js +0 -6
- package/build/client/_app/immutable/chunks/CR6bkGJW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CR6bkGJW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClIPTXf3.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClIPTXf3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DA4Zt9Me.js.br +0 -0
- package/build/client/_app/immutable/chunks/DA4Zt9Me.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCDL_9ys.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCDL_9ys.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZS5XYDx_.js.br +0 -0
- package/build/client/_app/immutable/chunks/pRcLbE0d.js +0 -1
- package/build/client/_app/immutable/chunks/pRcLbE0d.js.br +0 -0
- package/build/client/_app/immutable/chunks/pRcLbE0d.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D4TXlu7A.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D4TXlu7A.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BBQhtURO.js +0 -1
- package/build/client/_app/immutable/entry/start.BBQhtURO.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BBQhtURO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.1zylwAPT.js +0 -10
- package/build/client/_app/immutable/nodes/0.1zylwAPT.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.1zylwAPT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BVnLUSs-.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BVnLUSs-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.D1wl2wPX.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.D1wl2wPX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.C18nMGmp.js +0 -2
- package/build/client/_app/immutable/nodes/11.C18nMGmp.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.C18nMGmp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D1Mm0DUX.js +0 -13
- package/build/client/_app/immutable/nodes/2.D1Mm0DUX.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D1Mm0DUX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.Wfz3TcJd.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Wfz3TcJd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CBX9A3ka.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CBX9A3ka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DIVKuZc9.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.DIVKuZc9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DtZAEPXb.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DtZAEPXb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.MfBRh32I.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.MfBRh32I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.DVE6LnOC.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DVE6LnOC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BCel5OqI.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BCel5OqI.js.gz +0 -0
- package/build/server/chunks/0-DJqyZZTr.js.map +0 -1
- package/build/server/chunks/11-qXSPdF5j.js.map +0 -1
- package/build/server/chunks/_page.svelte-BLo2v_8E.js.map +0 -1
- package/build/server/chunks/_page.svelte-BUBLUSGo.js.map +0 -1
- package/build/server/chunks/_server.ts-BRAzC6W1.js.map +0 -1
- package/build/server/chunks/_server.ts-Bi0Oe4PF.js.map +0 -1
- package/build/server/chunks/_server.ts-Bjbr7glm.js.map +0 -1
- package/build/server/chunks/_server.ts-BrqaMMAa.js.map +0 -1
- package/build/server/chunks/_server.ts-DMm0hBP4.js.map +0 -1
- package/build/server/chunks/_server.ts-DhJx0DLr.js.map +0 -1
- package/build/server/chunks/events-handler-Dm1mNPQP.js +0 -20
- package/build/server/chunks/events-handler-Dm1mNPQP.js.map +0 -1
- package/build/server/chunks/pty-manager-41h3IK8K.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-BX2FMgSg.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/activity/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-BX2FMgSg.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/activity/_page.svelte.js"],"sourcesContent":["import { ad as head } from \"../../../chunks/index.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../chunks/exports.js\";\nimport \"../../../chunks/utils2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../../chunks/root.js\";\nimport \"../../../chunks/state.svelte.js\";\nimport \"../../../chunks/markdown.js\";\n/* empty css */\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n head(\"13r34ge\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>Activity Feed - Shooter</title>`);\n });\n $$renderer3.push(`<meta name=\"description\" content=\"Real-time activity feed\"/>`);\n });\n $$renderer2.push(`<main class=\"main\"><h1 class=\"page-title svelte-13r34ge\">Activity Feed</h1> `);\n {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--></main>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;AAQA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,WAAW,KAAK;AAClD,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,sCAAsC,CAAC,CAAC;AAClE,MAAM,CAAC,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,4DAA4D,CAAC,CAAC;AACtF,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,4EAA4E,CAAC,CAAC;AACpG,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACvC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-C7B0qdrC.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/neurolink/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-C7B0qdrC.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/neurolink/_page.svelte.js"],"sourcesContent":["import { ae as ensure_array_like, a6 as attr_class, a4 as stringify, ab as escape_html } from \"../../../chunks/index.js\";\nimport \"../../../chunks/markdown.js\";\nimport { B as Button } from \"../../../chunks/Button.js\";\n/* empty css */\nimport { I as Input } from \"../../../chunks/Input.js\";\nimport { P as Pill } from \"../../../chunks/Pill.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n let logs = [];\n let prompt = \"\";\n async function send() {\n if (!prompt.trim() || true) {\n return;\n }\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n $$renderer3.push(`<div class=\"page svelte-sjabew\"><header class=\"svelte-sjabew\"><h1 class=\"svelte-sjabew\">NeuroLink</h1> <span class=\"version svelte-sjabew\">new NeuroLink()</span> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n Pill($$renderer3, { text: \"Loading...\", classes: \"pill-loading\" });\n }\n $$renderer3.push(`<!--]--></header> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <div class=\"log svelte-sjabew\" id=\"log\"><!--[-->`);\n const each_array_1 = ensure_array_like(logs);\n for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {\n let entry = each_array_1[i];\n $$renderer3.push(`<div${attr_class(`log-entry ${stringify(entry.type)}`, \"svelte-sjabew\")}>${escape_html(entry.text)}</div>`);\n }\n $$renderer3.push(`<!--]--></div> <div class=\"input-bar svelte-sjabew\">`);\n Input($$renderer3, {\n name: \"prompt\",\n placeholder: \"Loading SDK...\",\n classes: \"input-prompt\",\n get value() {\n return prompt;\n },\n set value($$value) {\n prompt = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----> `);\n Button($$renderer3, {\n classes: \"btn-primary\",\n onclick: send,\n disabled: true,\n text: \"Send\"\n });\n $$renderer3.push(`<!----></div></div>`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;AAMA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO;AAC5B,IAAI,IAAI,IAAI,GAAG,EAAE;AACjB,IAAI,IAAI,MAAM,GAAG,EAAE;AACnB,IAAI,eAAe,IAAI,GAAG;AAC1B,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,IAAI,EAAE;AAClC,QAAQ;AACR,MAAM;AACN,IA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IAAI,KAAK,GAAG;AACpB,UAAU,OAAO,MAAM;AACvB,QAAQ,CAAC;AACT,QAAQ,IAAI,KAAK,CAAC,OAAO,EAAE;AAC3B,UAAU,MAAM,GAAG,OAAO;AAC1B,UAAU,SAAS,GAAG,KAAK;AAC3B,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,MAAM,MAAM,CAAC,WAAW,EAAE;AAC1B,QAAQ,OAAO,EAAE,aAAa;AAC9B,QAAQ,OAAO,EAAE,IAAI;AACrB,QAAQ,QAAQ,EAAE,IAAI;AACtB,QAAQ,IAAI,EAAE;AACd,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC;AAC7C,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-CE7COWnF.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_id_/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-CE7COWnF.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/session/_id_/_page.svelte.js"],"sourcesContent":["import { ad as head, ab as escape_html } from \"../../../../chunks/index.js\";\nimport \"../../../../chunks/client2.js\";\nimport \"../../../../chunks/markdown.js\";\n/* empty css */\n/* empty css */\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let messages = [];\n head(\"1a2wdfb\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>${escape_html(\"Session\")} - Shooter</title>`);\n });\n $$renderer3.push(`<meta name=\"description\" content=\"Session conversation view\"/>`);\n });\n $$renderer2.push(`<main class=\"main session-page-main svelte-1a2wdfb\">`);\n if (messages.length === 0) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"loading-container\" aria-live=\"polite\" aria-busy=\"true\"><div class=\"shimmer shimmer-header\" aria-hidden=\"true\"></div> <div class=\"chat-container\"><div class=\"shimmer shimmer-bubble shimmer-bubble-user\" aria-hidden=\"true\"></div> <div class=\"shimmer shimmer-bubble shimmer-bubble-assistant\" aria-hidden=\"true\"></div> <div class=\"shimmer shimmer-bubble shimmer-bubble-user-short\" aria-hidden=\"true\"></div> <div class=\"shimmer shimmer-bubble shimmer-bubble-assistant-wide\" aria-hidden=\"true\"></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--></main>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;AAGA;AACA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,QAAQ,GAAG,EAAE;AACrB,IAAI,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,CAAC,WAAW,KAAK;AAClD,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC9E,MAAM,CAAC,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,8DAA8D,CAAC,CAAC;AACxF,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,oDAAoD,CAAC,CAAC;AAC5E,IAAI,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AAC/B,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,qgBAAqgB,CAAC,CAAC;AAC/hB,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACvC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-CWsjjd4l.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/project/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-CWsjjd4l.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/project/_page.svelte.js"],"sourcesContent":["import { ad as head, ae as ensure_array_like, ab as escape_html } from \"../../../chunks/index.js\";\nimport { o as onDestroy } from \"../../../chunks/index-server.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../../chunks/exports.js\";\nimport \"../../../chunks/utils2.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../../chunks/root.js\";\nimport \"../../../chunks/state.svelte.js\";\nimport \"../../../chunks/client2.js\";\nimport \"../../../chunks/markdown.js\";\n/* empty css */\nimport { S as Shimmer } from \"../../../chunks/Shimmer.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n onDestroy(() => {\n });\n head(\"urn6fi\", $$renderer2, ($$renderer3) => {\n $$renderer3.title(($$renderer4) => {\n $$renderer4.push(`<title>${escape_html(\"Project\")} - Shooter</title>`);\n });\n $$renderer3.push(`<meta name=\"description\" content=\"Project sessions sorted by latest update\"/>`);\n });\n $$renderer2.push(`<main class=\"main\">`);\n {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--> `);\n {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"loading-container\">`);\n Shimmer($$renderer2, { classes: \"shimmer-header\" });\n $$renderer2.push(`<!----> <!--[-->`);\n const each_array = ensure_array_like(Array(4));\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n each_array[i];\n Shimmer($$renderer2, { classes: \"shimmer-card\" });\n }\n $$renderer2.push(`<!--]--></div>`);\n }\n $$renderer2.push(`<!--]--></main>`);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;AAYA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,SAAS,CAAC,MAAM;AACpB,IAAI,CAAC,CAAC;AACN,IAAI,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAC,WAAW,KAAK;AACjD,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,KAAK;AACzC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;AAC9E,MAAM,CAAC,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,6EAA6E,CAAC,CAAC;AACvG,IAAI,CAAC,CAAC;AACN,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC;AAC3C,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AACjC,IAAI;AACJ,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,+BAA+B,CAAC,CAAC;AACzD,MAAM,OAAO,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AACzD,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,MAAM,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE;AACvE,QAAQ,UAAU,CAAC,CAAC,CAAC;AACrB,QAAQ,OAAO,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACzD,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACxC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACvC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-D5S2hkBk.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/sos/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-D5S2hkBk.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/sos/_page.svelte.js"],"sourcesContent":["import { ad as head } from \"../../../chunks/index.js\";\nimport { g as goto } from \"../../../chunks/client.js\";\nimport { B as Button } from \"../../../chunks/Button.js\";\n/* empty css */\nimport { I as Input } from \"../../../chunks/Input.js\";\nimport { B as Banner } from \"../../../chunks/Banner.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let error = \"\";\n let newLabel = \"\";\n let creating = false;\n function getConfig() {\n try {\n const saved = localStorage.getItem(\"shooter_config\");\n return saved ? JSON.parse(saved) : null;\n } catch {\n return null;\n }\n }\n async function create() {\n const config = getConfig();\n if (!config || !newLabel.trim()) {\n return;\n }\n creating = true;\n try {\n const res = await fetch(\"/api/sos\", {\n body: JSON.stringify({ label: newLabel.trim() }),\n headers: {\n Authorization: `Bearer ${config.apiKey}`,\n \"Content-Type\": \"application/json\"\n },\n method: \"POST\"\n });\n if (res.ok) {\n const created = await res.json();\n void goto(`/sos/${created.id}`);\n } else {\n const d = await res.json().catch(() => ({}));\n error = d.error ?? `Failed to create (${res.status})`;\n }\n } catch {\n error = \"Network error — could not create super-session\";\n } finally {\n creating = false;\n }\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"1ggfn1w\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Session Over Sessions - Shooter</title>`);\n });\n });\n $$renderer3.push(`<main class=\"main sos-list svelte-1ggfn1w\"><div class=\"page-head svelte-1ggfn1w\"><div><h1 class=\"svelte-1ggfn1w\">Session Over Sessions</h1> <p class=\"subtitle svelte-1ggfn1w\">Coordinate multiple running agents as one super-session.</p></div></div> <div class=\"create-row svelte-1ggfn1w\">`);\n Input($$renderer3, {\n dataType: \"text\",\n placeholder: \"New super-session label…\",\n classes: \"sos-create-input\",\n get value() {\n return newLabel;\n },\n set value($$value) {\n newLabel = $$value;\n $$settled = false;\n }\n });\n $$renderer3.push(`<!----> `);\n Button($$renderer3, {\n text: creating ? \"Creating…\" : \"Create\",\n disabled: creating || !newLabel.trim(),\n onclick: create,\n classes: \"btn-create\"\n });\n $$renderer3.push(`<!----></div> `);\n if (error) {\n $$renderer3.push(\"<!--[0-->\");\n Banner($$renderer3, { text: error, classes: \"banner-error\" });\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<p class=\"muted svelte-1ggfn1w\">Loading…</p>`);\n }\n $$renderer3.push(`<!--]--></main>`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;AAMA,SAAS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,QAAQ,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ;AAC/C,QAAQ,QAAQ,EAAE,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;AAC9C,QAAQ,OAAO,EAAE,MAAM;AACvB,QAAQ,OAAO,EAAE;AACjB,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACxC,MAAM,IAAI,KAAK,EAAE;AACjB,QAAQ,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACrC,QAAQ,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM;AACb,QAAQ,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AACnC,MAAM;AACN,QAAQ,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACrC,QAAQ,WAAW,CAAC,IAAI,CAAC,CAAC,4CAA4C,CAAC,CAAC;AACxE,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;AACzC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte-D_Ey8QRG.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/terminals/_page.svelte.js"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"_page.svelte-D_Ey8QRG.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/terminals/_page.svelte.js"],"sourcesContent":["import { ad as head, ae as ensure_array_like } from \"../../../chunks/index.js\";\nimport { g as goto } from \"../../../chunks/client.js\";\nimport { R as RefreshSvg, E as EmptyState, c as clearCache } from \"../../../chunks/cache.js\";\nimport { S as SettingsSvg } from \"../../../chunks/settings.js\";\nimport \"../../../chunks/markdown.js\";\nimport { o as onDestroy } from \"../../../chunks/index-server.js\";\nimport { B as Button } from \"../../../chunks/Button.js\";\n/* empty css */\nimport { I as Icon } from \"../../../chunks/Icon.js\";\nimport { S as Shimmer } from \"../../../chunks/Shimmer.js\";\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const CACHE_KEY = \"shooter_terminals\";\n let terminals = [];\n let loading = false;\n onDestroy(() => {\n });\n async function fetchTerminals() {\n {\n return;\n }\n }\n async function forceRefresh() {\n loading = true;\n clearCache(CACHE_KEY);\n await fetchTerminals();\n }\n function navigateToConfig() {\n void goto();\n }\n function handleNewTerminal() {\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"1ewpmn2\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Terminals - Shooter</title>`);\n });\n $$renderer4.push(`<meta name=\"description\" content=\"Active terminal sessions on this machine\"/>`);\n });\n $$renderer3.push(`<main class=\"main\"><div class=\"page-header\"><div class=\"page-header-content\"><div><h1 class=\"page-title\">Terminals</h1> <p class=\"page-description\">Active terminal sessions on this machine</p></div> <div class=\"page-actions\">`);\n Button($$renderer3, {\n classes: \"btn-secondary\",\n onclick: forceRefresh,\n disabled: loading,\n children: ($$renderer4) => {\n Icon($$renderer4, { svg: RefreshSvg, classes: \"icon-14\" });\n $$renderer4.push(`<!----> Refresh`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!----> `);\n Button($$renderer3, {\n classes: \"btn-primary\",\n onclick: handleNewTerminal,\n children: ($$renderer4) => {\n $$renderer4.push(`<span class=\"plus-icon svelte-1ewpmn2\">+</span> New Terminal`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!----></div></div></div> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> `);\n if (loading && terminals.length === 0) {\n $$renderer3.push(\"<!--[0-->\");\n $$renderer3.push(`<div class=\"loading-container\"><!--[-->`);\n const each_array = ensure_array_like(Array(4));\n for (let i = 0, $$length = each_array.length; i < $$length; i++) {\n each_array[i];\n Shimmer($$renderer3, { classes: \"shimmer-card\" });\n }\n $$renderer3.push(`<!--]--></div>`);\n } else {\n $$renderer3.push(\"<!--[1-->\");\n {\n let icon = function($$renderer4) {\n Icon($$renderer4, { svg: SettingsSvg, classes: \"icon-24\" });\n };\n EmptyState($$renderer3, {\n title: \"Configuration Required\",\n description: \"Set up your API credentials to view terminal sessions\",\n icon,\n children: ($$renderer4) => {\n Button($$renderer4, {\n classes: \"btn-primary\",\n onclick: navigateToConfig,\n text: \"Configure Settings\"\n });\n }\n });\n }\n }\n $$renderer3.push(`<!--]--></main> `);\n {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]-->`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAUA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,MAAM,SAAS,GAAG,mBAAmB;AACzC,IAAI,IAAI,SAAS,GAAG,EAAE;AACtB,IAAI,IAAI,OAAO,GAAG,KAAK;AACvB,IAAI,SAAS,CAAC,MAAM;AACpB,IAAI,CAAC,CAAC;AACN,IAAI,eAAe,cAAc,GAAG;AACpC,MAAM;AACN,QAAQ;AACR,MAAM;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WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACvE,UAAU,CAAC;AACX,UAAU,UAAU,CAAC,WAAW,EAAE;AAClC,YAAY,KAAK,EAAE,wBAAwB;AAC3C,YAAY,WAAW,EAAE,uDAAuD;AAChF,YAAY,IAAI;AAChB,YAAY,QAAQ,EAAE,CAAC,WAAW,KAAK;AACvC,cAAc,MAAM,CAAC,WAAW,EAAE;AAClC,gBAAgB,OAAO,EAAE,aAAa;AACtC,gBAAgB,OAAO,EAAE,gBAAgB;AACzC,gBAAgB,IAAI,EAAE;AACtB,eAAe,CAAC;AAChB,YAAY;AACZ,WAAW,CAAC;AACZ,QAAQ;AACR,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,CAAC;AAC1C,MAAM;AACN,QAAQ,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,MAAM;AACN,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAClC,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -102,9 +102,8 @@ const PROVIDERS = [
|
|
|
102
102
|
model: "mistral-small-2506"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
cors: "
|
|
106
|
-
envKeys: ["
|
|
107
|
-
extraEnvKeys: ["LITELLM_MODEL"],
|
|
105
|
+
cors: "proxy",
|
|
106
|
+
envKeys: ["LITELLM_BASE_URL"],
|
|
108
107
|
id: "litellm",
|
|
109
108
|
label: "LiteLLM",
|
|
110
109
|
model: "open-large"
|
|
@@ -458,4 +457,4 @@ function _page($$renderer, $$props) {
|
|
|
458
457
|
}
|
|
459
458
|
|
|
460
459
|
export { _page as default };
|
|
461
|
-
//# sourceMappingURL=_page.svelte-
|
|
460
|
+
//# sourceMappingURL=_page.svelte-Gv9p8nlS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-Gv9p8nlS.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/config/_page.svelte.js"],"sourcesContent":["import { a6 as attr_class, a4 as stringify, a9 as attr, ab as escape_html, ae as ensure_array_like, ad as head } from \"../../../chunks/index.js\";\nimport \"../../../chunks/markdown.js\";\nimport { B as Button } from \"../../../chunks/Button.js\";\n/* empty css */\nimport { I as Input } from \"../../../chunks/Input.js\";\nimport { I as Icon } from \"../../../chunks/Icon.js\";\nimport { B as Banner } from \"../../../chunks/Banner.js\";\nfunction Step($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { stepIndex, label, icon, classes } = $$props;\n $$renderer2.push(`<div${attr_class(`step ${stringify(classes ?? \"\")}`, \"svelte-1i4mzd9\")} role=\"button\" tabindex=\"0\">`);\n if (typeof icon === \"string\" && icon.length > 0) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"step-icon-container\"><img class=\"step-icon\"${attr(\"src\", icon)} alt=\"\"/></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n $$renderer2.push(`<div class=\"step-index-container svelte-1i4mzd9\"><div class=\"step-index-text svelte-1i4mzd9\">${escape_html(stepIndex)}</div></div>`);\n }\n $$renderer2.push(`<!--]--> <div class=\"step-text svelte-1i4mzd9\">${escape_html(label)}</div> <div class=\"separator svelte-1i4mzd9\"></div></div>`);\n });\n}\nfunction Stepper($$renderer, $$props) {\n let { steps, currentStepIndex, classes } = $$props;\n $$renderer.push(`<div${attr_class(`container ${stringify(classes ?? \"\")}`, \"svelte-dvxh34\")}><!--[-->`);\n const each_array = ensure_array_like(steps);\n for (let stepIndex = 0, $$length = each_array.length; stepIndex < $$length; stepIndex++) {\n let currentStep = each_array[stepIndex];\n $$renderer.push(`<div${attr_class(\"step-container svelte-dvxh34\", void 0, {\n \"active-step\": currentStepIndex === stepIndex,\n \"completed-step\": currentStepIndex > stepIndex\n })}>`);\n Step($$renderer, {\n label: currentStep.label,\n icon: currentStep.icon,\n stepIndex: stepIndex + 1\n });\n $$renderer.push(`<!----></div>`);\n }\n $$renderer.push(`<!--]--></div>`);\n}\nfunction Card($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { children, title, description, classes } = $$props;\n $$renderer2.push(`<div${attr_class(`card ${stringify(classes ?? \"\")}`, \"svelte-15b0v7e\")}>`);\n if (typeof title === \"string\" && title.length > 0) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"card-header svelte-15b0v7e\"><div class=\"card-title svelte-15b0v7e\">${escape_html(title)}</div> `);\n if (typeof description === \"string\" && description.length > 0) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"card-description svelte-15b0v7e\">${escape_html(description)}</div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]--> <div class=\"card-content svelte-15b0v7e\">`);\n children($$renderer2);\n $$renderer2.push(`<!----></div></div>`);\n });\n}\nfunction toErrorMessage(err) {\n if (err instanceof Error) {\n return err.message;\n }\n if (typeof err === \"string\") {\n return err;\n }\n return String(err);\n}\nconst PROVIDERS = [\n {\n cors: \"proxy\",\n envKeys: [\"GOOGLE_AI_API_KEY\"],\n id: \"google-ai\",\n label: \"Google AI\",\n model: \"gemini-3.1-flash-lite-preview\"\n },\n {\n cors: \"proxy\",\n envKeys: [\"ANTHROPIC_API_KEY\"],\n id: \"anthropic\",\n label: \"Anthropic\",\n model: \"claude-haiku-4-5-20251001\"\n },\n {\n cors: \"proxy\",\n envKeys: [\"OPENAI_API_KEY\"],\n id: \"openai\",\n label: \"OpenAI\",\n model: \"gpt-4o-mini\"\n },\n {\n cors: \"proxy\",\n envKeys: [\"MISTRAL_API_KEY\"],\n id: \"mistral\",\n label: \"Mistral\",\n model: \"mistral-small-2506\"\n },\n {\n cors: \"proxy\",\n envKeys: [\"LITELLM_BASE_URL\"],\n id: \"litellm\",\n label: \"LiteLLM\",\n model: \"open-large\"\n }\n];\nconst AlertTriangleSvg = '<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\\n <path d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/>\\n <line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"/>\\n <line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"/>\\n</svg>\\n';\nconst CheckCircleSvg = '<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\\n <path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/>\\n <polyline points=\"22 4 12 14.01 9 11.01\"/>\\n</svg>\\n';\nconst PlaySvg = '<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\\n <polygon points=\"5 3 19 12 5 21 5 3\"/>\\n</svg>\\n';\nconst XCircleSvg = '<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\\n <line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"/>\\n <line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"/>\\n</svg>\\n';\nfunction _page($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n const { data } = $$props;\n let serverUrl = \"\";\n let apiKey = \"\";\n let deviceToken = \"\";\n let result = \"\";\n let loading = false;\n let statusType = \"\";\n let qrDataUrl = \"\";\n let qrServerUrl = \"\";\n let qrLoading = false;\n let qrError = \"\";\n async function fetchQrCode() {\n if (!apiKey.trim()) {\n qrError = \"Save an API key first to generate a QR code\";\n return;\n }\n qrLoading = true;\n qrError = \"\";\n qrDataUrl = \"\";\n qrServerUrl = \"\";\n try {\n const response = await fetch(\"/api/qr-config\", { headers: { Authorization: `Bearer ${apiKey.trim()}` } });\n if (!response.ok) {\n const data3 = await response.json();\n qrError = data3.error || \"Failed to generate QR code\";\n return;\n }\n const data2 = await response.json();\n qrDataUrl = data2.dataUrl;\n qrServerUrl = data2.serverUrl;\n } catch (error) {\n qrError = `Network error: ${toErrorMessage(error)}`;\n } finally {\n qrLoading = false;\n }\n }\n function getNativeBridge() {\n if (typeof window === \"undefined\") {\n return null;\n }\n if (window.ShooterBridge) {\n return window.ShooterBridge;\n }\n if (window.ShooterNativeBridge) {\n return window.ShooterNativeBridge;\n }\n return null;\n }\n function getDefaultServerUrl() {\n return window.location.origin;\n }\n async function saveConfiguration() {\n loading = true;\n result = \"\";\n statusType = \"\";\n try {\n const trimmedUrl = serverUrl.trim().replace(/\\/+$/, \"\");\n localStorage.setItem(\"shooter_config\", JSON.stringify({\n apiKey: apiKey.trim(),\n deviceToken: deviceToken.trim(),\n lastUpdated: Date.now(),\n serverUrl: trimmedUrl || getDefaultServerUrl()\n }));\n const bridge = getNativeBridge();\n if (bridge) {\n bridge.saveConfig?.(JSON.stringify({\n apiKey: apiKey.trim(),\n serverUrl: trimmedUrl || getDefaultServerUrl()\n }));\n }\n const response = await fetch(\"/api/health\");\n if (response.ok) {\n result = \"Configuration saved successfully\";\n statusType = \"success\";\n } else {\n result = \"Configuration saved but system health check failed\";\n statusType = \"warning\";\n }\n } catch (error) {\n result = `Configuration failed: ${toErrorMessage(error)}`;\n statusType = \"error\";\n }\n loading = false;\n }\n async function testConfiguration() {\n if (!apiKey.trim()) {\n result = \"API key is required for testing\";\n statusType = \"error\";\n return;\n }\n loading = true;\n result = \"\";\n statusType = \"\";\n try {\n const testPayload = {\n data: { source: \"config-test\", timestamp: Date.now() },\n message: `Configuration test at ${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`,\n title: \"Configuration Test\"\n };\n if (deviceToken.trim()) {\n testPayload.deviceToken = deviceToken.trim();\n }\n const response = await fetch(\"/api/notify\", {\n body: JSON.stringify(testPayload),\n headers: {\n Authorization: `Bearer ${apiKey}`,\n \"Content-Type\": \"application/json\"\n },\n method: \"POST\"\n });\n const data2 = await response.json();\n if (response.ok) {\n result = \"Test notification sent successfully\";\n statusType = \"success\";\n } else {\n result = `Test failed: ${typeof data2.error === \"string\" ? data2.error : \"Unknown error\"}`;\n statusType = \"error\";\n }\n } catch (error) {\n result = `Network error: ${toErrorMessage(error)}`;\n statusType = \"error\";\n }\n loading = false;\n }\n function clearConfiguration() {\n }\n let $$settled = true;\n let $$inner_renderer;\n function $$render_inner($$renderer3) {\n head(\"1gp6n77\", $$renderer3, ($$renderer4) => {\n $$renderer4.title(($$renderer5) => {\n $$renderer5.push(`<title>Settings - Shooter</title>`);\n });\n $$renderer4.push(`<meta name=\"description\" content=\"Configure notification system settings\"/>`);\n });\n $$renderer3.push(`<main class=\"main\"><div class=\"settings-container svelte-1gp6n77\"><div style=\"margin-bottom: var(--space-4);\"><a href=\"/\" class=\"back-link\">← Back to Projects</a></div> <div class=\"page-header\"><h1 class=\"page-title\">Settings</h1> <p class=\"page-description\">Configure your API credentials and notification preferences</p></div> <div class=\"settings-grid svelte-1gp6n77\"><section class=\"settings-section svelte-1gp6n77\">`);\n Card($$renderer3, {\n title: \"Server Configuration\",\n description: \"Configure server connection and credentials\",\n children: ($$renderer4) => {\n Input($$renderer4, {\n name: \"serverUrl\",\n label: \"Server URL\",\n dataType: \"text\",\n placeholder: \"https://shooter.breezehq.dev\",\n infoMessage: \"Base URL of your Shooter server. Apps will reload with this URL on next launch.\",\n get value() {\n return serverUrl;\n },\n set value($$value) {\n serverUrl = $$value;\n $$settled = false;\n }\n });\n $$renderer4.push(`<!----> `);\n Input($$renderer4, {\n name: \"apiKey\",\n label: \"API Key\",\n dataType: \"password\",\n placeholder: \"Enter your API key\",\n infoMessage: \"Required for sending notifications\",\n get value() {\n return apiKey;\n },\n set value($$value) {\n apiKey = $$value;\n $$settled = false;\n }\n });\n $$renderer4.push(`<!----> <p class=\"input-help svelte-1gp6n77\">Find this in your <code class=\"svelte-1gp6n77\">~/.shooter/.env</code> file. Run <code class=\"svelte-1gp6n77\">shooter setup</code> to generate\n one.</p> `);\n Input($$renderer4, {\n name: \"deviceToken\",\n label: \"Device Token\",\n dataType: \"text\",\n placeholder: \"64-character hex string\",\n infoMessage: \"Device token from app registration\",\n classes: \"input-mono\",\n get value() {\n return deviceToken;\n },\n set value($$value) {\n deviceToken = $$value;\n $$settled = false;\n }\n });\n $$renderer4.push(`<!----> <p class=\"input-help svelte-1gp6n77\">Optional — only needed for iOS/Android push notifications.</p>`);\n }\n });\n $$renderer3.push(`<!----> `);\n if (result) {\n $$renderer3.push(\"<!--[0-->\");\n const bannerSvg = statusType === \"success\" ? CheckCircleSvg : statusType === \"error\" ? XCircleSvg : AlertTriangleSvg;\n {\n let icon = function($$renderer4) {\n Icon($$renderer4, { svg: bannerSvg, classes: \"icon-16\" });\n };\n Banner($$renderer3, {\n text: result,\n classes: `banner-${stringify(statusType || \"info\")}`,\n icon,\n $$slots: { icon: true }\n });\n }\n } else {\n $$renderer3.push(\"<!--[-1-->\");\n }\n $$renderer3.push(`<!--]--> <div class=\"button-group svelte-1gp6n77\">`);\n Button($$renderer3, {\n classes: \"btn-secondary\",\n onclick: testConfiguration,\n disabled: loading || !apiKey.trim(),\n children: ($$renderer4) => {\n if (!loading) {\n $$renderer4.push(\"<!--[0-->\");\n Icon($$renderer4, { svg: PlaySvg, classes: \"icon-14\" });\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]--> Test Connection`);\n },\n $$slots: { default: true }\n });\n $$renderer3.push(`<!----> `);\n Button($$renderer3, {\n classes: \"btn-primary\",\n onclick: saveConfiguration,\n disabled: loading || !apiKey.trim(),\n showLoader: loading,\n text: \"Save Changes\"\n });\n $$renderer3.push(`<!----></div></section> <aside class=\"settings-sidebar svelte-1gp6n77\">`);\n Card($$renderer3, {\n title: \"Setup Guide\",\n children: ($$renderer4) => {\n Stepper($$renderer4, {\n steps: [\n { label: \"Get API Key\" },\n { label: \"Find Device Token\" },\n { label: \"Test Connection\" }\n ],\n currentStepIndex: apiKey.trim() && deviceToken.trim() ? 2 : apiKey.trim() ? 1 : 0,\n classes: \"setup-stepper\"\n });\n }\n });\n $$renderer3.push(`<!----> `);\n Card($$renderer3, {\n title: \"Mobile App Setup\",\n description: \"Scan to connect your mobile app\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"qr-section svelte-1gp6n77\">`);\n {\n $$renderer4.push(\"<!--[-1-->\");\n if (qrDataUrl) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"qr-container svelte-1gp6n77\"><img${attr(\"src\", qrDataUrl)} alt=\"QR code for mobile app pairing\" class=\"qr-image svelte-1gp6n77\"/></div> <p class=\"qr-hint svelte-1gp6n77\">Scan this QR code with the Shooter iOS or Android app to connect.</p> `);\n if (qrServerUrl) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<p class=\"qr-server-url svelte-1gp6n77\">Server: <code class=\"svelte-1gp6n77\">${escape_html(qrServerUrl)}</code></p>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n }\n $$renderer4.push(`<!--]-->`);\n } else if (qrLoading) {\n $$renderer4.push(\"<!--[1-->\");\n $$renderer4.push(`<div class=\"qr-placeholder svelte-1gp6n77\"><p class=\"qr-loading-text svelte-1gp6n77\">Generating QR code...</p></div>`);\n } else if (qrError) {\n $$renderer4.push(\"<!--[2-->\");\n $$renderer4.push(`<p class=\"qr-error svelte-1gp6n77\">${escape_html(qrError)}</p>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<p class=\"qr-description svelte-1gp6n77\">Generate a QR code containing your server URL and API key. Your mobile app can\n scan it to auto-configure the connection.</p>`);\n }\n $$renderer4.push(`<!--]--> `);\n Button($$renderer4, {\n classes: \"btn-secondary btn-sm\",\n onclick: fetchQrCode,\n disabled: qrLoading || !apiKey.trim(),\n text: qrDataUrl ? \"Regenerate QR Code\" : \"Generate QR Code\"\n });\n $$renderer4.push(`<!---->`);\n }\n $$renderer4.push(`<!--]--></div>`);\n }\n });\n $$renderer3.push(`<!----> `);\n Card($$renderer3, {\n title: \"AI Providers\",\n description: \"NeuroLink-powered summaries and AI features\",\n children: ($$renderer4) => {\n $$renderer4.push(`<div class=\"ai-providers svelte-1gp6n77\"><!--[-->`);\n const each_array = ensure_array_like(PROVIDERS);\n for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n let provider = each_array[$$index];\n $$renderer4.push(`<div class=\"provider-row svelte-1gp6n77\">`);\n Icon($$renderer4, {\n svg: data.aiProviders[provider.id] ? CheckCircleSvg : XCircleSvg,\n classes: \"icon-14\"\n });\n $$renderer4.push(`<!----> <span class=\"provider-label svelte-1gp6n77\">${escape_html(provider.label)}</span> <span${attr_class(\"provider-status svelte-1gp6n77\", void 0, { \"configured\": data.aiProviders[provider.id] })}>${escape_html(data.aiProviders[provider.id] ? \"configured\" : \"not configured\")}</span></div>`);\n }\n $$renderer4.push(`<!--]--> `);\n if (data.activeProvider) {\n $$renderer4.push(\"<!--[0-->\");\n $$renderer4.push(`<div class=\"active-provider svelte-1gp6n77\">Active: <strong>${escape_html(data.activeProvider)}</strong></div>`);\n } else if (Object.values(data.aiProviders).some(Boolean)) {\n $$renderer4.push(\"<!--[1-->\");\n $$renderer4.push(`<div class=\"active-provider svelte-1gp6n77\">Auto-detected from configured keys</div>`);\n } else {\n $$renderer4.push(\"<!--[-1-->\");\n $$renderer4.push(`<p class=\"ai-help svelte-1gp6n77\">Run <code class=\"svelte-1gp6n77\">shooter setup</code> to configure AI providers for summaries.</p>`);\n }\n $$renderer4.push(`<!--]--></div>`);\n }\n });\n $$renderer3.push(`<!----> `);\n Card($$renderer3, {\n title: \"Danger Zone\",\n children: ($$renderer4) => {\n $$renderer4.push(`<p class=\"danger-description svelte-1gp6n77\">Clear all saved configuration data from this device.</p> `);\n Button($$renderer4, {\n classes: \"btn-danger btn-sm\",\n onclick: clearConfiguration,\n text: \"Clear Configuration\"\n });\n $$renderer4.push(`<!---->`);\n }\n });\n $$renderer3.push(`<!----></aside></div></div></main>`);\n }\n do {\n $$settled = true;\n $$inner_renderer = $$renderer2.copy();\n $$render_inner($$inner_renderer);\n } while (!$$settled);\n $$renderer2.subsume($$inner_renderer);\n });\n}\nexport {\n _page as default\n};\n"],"names":[],"mappings":";;;;;;;;;;AAOA,SAAS,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE;AACnC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO;AACrD,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,4BAA4B,CAAC,CAAC;AAC3H,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;AACrD,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,uDAAuD,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAA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AAY,OAAO,EAAE,kBAAkB;AACvC,YAAY,IAAI,EAAE;AAClB,WAAW,CAAC;AACZ,UAAU,WAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC;AACrC,QAAQ;AACR,OAAO,CAAC;AACR,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,kCAAkC,CAAC,CAAC;AAC5D,IAAI;AACJ,IAAI,GAAG;AACP,MAAM,SAAS,GAAG,IAAI;AACtB,MAAM,gBAAgB,GAAG,WAAW,CAAC,IAAI,EAAE;AAC3C,MAAM,cAAc,CAAC,gBAAgB,CAAC;AACtC,IAAI,CAAC,QAAQ,CAAC,SAAS;AACvB,IAAI,WAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACzC,EAAE,CAAC,CAAC;AACJ;;;;"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { aw as head, au as escape_html, a6 as derived, at as bind_props, ap as attr_class, an as stringify, as as attr, ax as ensure_array_like, aA as clsx, av as spread_props } from './index-CoYB03g7.js';
|
|
1
|
+
import { aw as head, au as escape_html, a6 as derived, ao as store_get, at as bind_props, ap as attr_class, an as stringify, as as attr, ax as ensure_array_like, aA as clsx, aq as unsubscribe_stores, av as spread_props } from './index-CoYB03g7.js';
|
|
2
2
|
import { g as goto } from './client-Ds1brw-8.js';
|
|
3
|
-
import {
|
|
3
|
+
import { p as page } from './stores-CRYxfF0o.js';
|
|
4
4
|
import './markdown-W_mTBct0.js';
|
|
5
|
+
import { o as onDestroy } from './index-server-Bq3cnK69.js';
|
|
5
6
|
import { S as SvelteMap } from './index-server2-BJrT0wnA.js';
|
|
6
|
-
import {
|
|
7
|
+
import { B as Button, h as html } from './Button-D0hZ7JYt.js';
|
|
8
|
+
import { I as Input } from './Input-OmIiydSx.js';
|
|
7
9
|
import './root-D4IoFC8F.js';
|
|
8
10
|
import './index2-dSGQ9Eaa.js';
|
|
9
11
|
import './state.svelte-CmHqngc_.js';
|
|
@@ -390,6 +392,23 @@ function CommandMenu($$renderer, $$props) {
|
|
|
390
392
|
bind_props($$props, { open });
|
|
391
393
|
});
|
|
392
394
|
}
|
|
395
|
+
function getApiKey() {
|
|
396
|
+
try {
|
|
397
|
+
const saved = localStorage.getItem("shooter_config");
|
|
398
|
+
if (!saved) {
|
|
399
|
+
return "";
|
|
400
|
+
}
|
|
401
|
+
const parsed = JSON.parse(saved);
|
|
402
|
+
if (parsed && typeof parsed === "object") {
|
|
403
|
+
const obj = parsed;
|
|
404
|
+
if (typeof obj.apiKey === "string") {
|
|
405
|
+
return obj.apiKey;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
} catch {
|
|
409
|
+
}
|
|
410
|
+
return "";
|
|
411
|
+
}
|
|
393
412
|
function CommandPalette($$renderer, $$props) {
|
|
394
413
|
$$renderer.component(($$renderer2) => {
|
|
395
414
|
let { commands, onClose, open = false } = $$props;
|
|
@@ -436,6 +455,175 @@ function getShortcutList() {
|
|
|
436
455
|
{ description: "Keyboard shortcuts", keys: `${modLabel}+/` }
|
|
437
456
|
];
|
|
438
457
|
}
|
|
458
|
+
function ShareSheet($$renderer, $$props) {
|
|
459
|
+
$$renderer.component(($$renderer2) => {
|
|
460
|
+
const { open = false, shareUrl, terminalId } = $$props;
|
|
461
|
+
let active = false;
|
|
462
|
+
let currentMode = null;
|
|
463
|
+
let mode = "view";
|
|
464
|
+
let password = "";
|
|
465
|
+
let busy = false;
|
|
466
|
+
let errorMsg = null;
|
|
467
|
+
let copied = false;
|
|
468
|
+
const PASSWORD_ALPHABET = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789";
|
|
469
|
+
const canSubmit = derived(() => active ? password.length === 0 || password.length >= 6 : password.length >= 6);
|
|
470
|
+
function generatePassword() {
|
|
471
|
+
const bytes = crypto.getRandomValues(new Uint8Array(16));
|
|
472
|
+
password = Array.from(bytes, (b) => PASSWORD_ALPHABET[b % PASSWORD_ALPHABET.length]).join("");
|
|
473
|
+
}
|
|
474
|
+
async function saveShare() {
|
|
475
|
+
if (busy || !canSubmit()) {
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
busy = true;
|
|
479
|
+
errorMsg = null;
|
|
480
|
+
try {
|
|
481
|
+
const res = await fetch(`/api/terminals/${terminalId}/share`, {
|
|
482
|
+
body: JSON.stringify({ mode, ...password ? { password } : {} }),
|
|
483
|
+
headers: {
|
|
484
|
+
Authorization: `Bearer ${getApiKey()}`,
|
|
485
|
+
"Content-Type": "application/json"
|
|
486
|
+
},
|
|
487
|
+
method: "PUT"
|
|
488
|
+
});
|
|
489
|
+
if (!res.ok) {
|
|
490
|
+
const data = await res.json().catch(() => ({}));
|
|
491
|
+
errorMsg = data.error ?? "Failed to save share.";
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
const info = await res.json();
|
|
495
|
+
active = info.active;
|
|
496
|
+
currentMode = info.mode ?? null;
|
|
497
|
+
password = "";
|
|
498
|
+
} catch {
|
|
499
|
+
errorMsg = "Failed to reach the server.";
|
|
500
|
+
} finally {
|
|
501
|
+
busy = false;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
async function revokeShare() {
|
|
505
|
+
if (busy) {
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
busy = true;
|
|
509
|
+
errorMsg = null;
|
|
510
|
+
try {
|
|
511
|
+
const res = await fetch(`/api/terminals/${terminalId}/share`, {
|
|
512
|
+
headers: { Authorization: `Bearer ${getApiKey()}` },
|
|
513
|
+
method: "DELETE"
|
|
514
|
+
});
|
|
515
|
+
if (!res.ok) {
|
|
516
|
+
errorMsg = "Failed to revoke share.";
|
|
517
|
+
return;
|
|
518
|
+
}
|
|
519
|
+
active = false;
|
|
520
|
+
currentMode = null;
|
|
521
|
+
password = "";
|
|
522
|
+
} catch {
|
|
523
|
+
errorMsg = "Failed to reach the server.";
|
|
524
|
+
} finally {
|
|
525
|
+
busy = false;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
async function copyUrl() {
|
|
529
|
+
try {
|
|
530
|
+
await navigator.clipboard.writeText(shareUrl);
|
|
531
|
+
copied = true;
|
|
532
|
+
setTimeout(
|
|
533
|
+
() => {
|
|
534
|
+
copied = false;
|
|
535
|
+
},
|
|
536
|
+
2e3
|
|
537
|
+
);
|
|
538
|
+
} catch {
|
|
539
|
+
errorMsg = "Failed to copy.";
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
let $$settled = true;
|
|
543
|
+
let $$inner_renderer;
|
|
544
|
+
function $$render_inner($$renderer3) {
|
|
545
|
+
if (open) {
|
|
546
|
+
$$renderer3.push("<!--[0-->");
|
|
547
|
+
$$renderer3.push(`<div class="share-backdrop svelte-fj2rhy" role="presentation"><div class="share-sheet svelte-fj2rhy" role="dialog" aria-label="Share terminal" tabindex="-1"><div class="share-sheet-header svelte-fj2rhy"><h2 class="share-sheet-title svelte-fj2rhy">Share terminal</h2> <button class="share-sheet-close svelte-fj2rhy" aria-label="Close">×</button></div> `);
|
|
548
|
+
if (active) {
|
|
549
|
+
$$renderer3.push("<!--[0-->");
|
|
550
|
+
$$renderer3.push(`<div class="share-active-row svelte-fj2rhy"><span class="share-active-dot svelte-fj2rhy"></span> <span class="share-active-label svelte-fj2rhy">Sharing is active (${escape_html(currentMode === "control" ? "full control" : "view only")})</span></div> <div class="share-url-row svelte-fj2rhy"><span class="share-url svelte-fj2rhy">${escape_html(shareUrl)}</span> `);
|
|
551
|
+
Button($$renderer3, {
|
|
552
|
+
classes: "btn-secondary btn-sm",
|
|
553
|
+
onclick: () => {
|
|
554
|
+
void copyUrl();
|
|
555
|
+
},
|
|
556
|
+
text: copied ? "Copied" : "Copy"
|
|
557
|
+
});
|
|
558
|
+
$$renderer3.push(`<!----></div>`);
|
|
559
|
+
} else {
|
|
560
|
+
$$renderer3.push("<!--[-1-->");
|
|
561
|
+
$$renderer3.push(`<p class="share-sheet-sub svelte-fj2rhy">Anyone with this page's link and the password below can access this terminal.</p>`);
|
|
562
|
+
}
|
|
563
|
+
$$renderer3.push(`<!--]--> <div class="share-field svelte-fj2rhy"><span class="share-field-label svelte-fj2rhy">Access</span> <div class="share-mode-toggle svelte-fj2rhy"><button${attr_class(`share-mode-btn ${stringify("share-mode-active")}`, "svelte-fj2rhy")}>View only</button> <button${attr_class(`share-mode-btn ${stringify("")}`, "svelte-fj2rhy")}>Full control</button></div></div> <div class="share-field svelte-fj2rhy"><span class="share-field-label svelte-fj2rhy">${escape_html(active ? "New password (leave empty to keep current)" : "Password (min 6 chars)")}</span> <div class="share-password-row svelte-fj2rhy">`);
|
|
564
|
+
Input($$renderer3, {
|
|
565
|
+
dataType: "text",
|
|
566
|
+
placeholder: "Password",
|
|
567
|
+
classes: "share-password-input",
|
|
568
|
+
get value() {
|
|
569
|
+
return password;
|
|
570
|
+
},
|
|
571
|
+
set value($$value) {
|
|
572
|
+
password = $$value;
|
|
573
|
+
$$settled = false;
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
$$renderer3.push(`<!----> `);
|
|
577
|
+
Button($$renderer3, {
|
|
578
|
+
classes: "btn-secondary btn-sm",
|
|
579
|
+
onclick: generatePassword,
|
|
580
|
+
text: "Generate"
|
|
581
|
+
});
|
|
582
|
+
$$renderer3.push(`<!----></div></div> `);
|
|
583
|
+
if (errorMsg) {
|
|
584
|
+
$$renderer3.push("<!--[0-->");
|
|
585
|
+
$$renderer3.push(`<p class="share-error svelte-fj2rhy">${escape_html(errorMsg)}</p>`);
|
|
586
|
+
} else {
|
|
587
|
+
$$renderer3.push("<!--[-1-->");
|
|
588
|
+
}
|
|
589
|
+
$$renderer3.push(`<!--]--> <div class="share-actions svelte-fj2rhy">`);
|
|
590
|
+
if (active) {
|
|
591
|
+
$$renderer3.push("<!--[0-->");
|
|
592
|
+
Button($$renderer3, {
|
|
593
|
+
classes: "btn-danger btn-sm",
|
|
594
|
+
onclick: () => {
|
|
595
|
+
void revokeShare();
|
|
596
|
+
},
|
|
597
|
+
disabled: busy,
|
|
598
|
+
text: "Stop sharing"
|
|
599
|
+
});
|
|
600
|
+
} else {
|
|
601
|
+
$$renderer3.push("<!--[-1-->");
|
|
602
|
+
}
|
|
603
|
+
$$renderer3.push(`<!--]--> `);
|
|
604
|
+
Button($$renderer3, {
|
|
605
|
+
classes: "btn-primary btn-sm",
|
|
606
|
+
onclick: () => {
|
|
607
|
+
void saveShare();
|
|
608
|
+
},
|
|
609
|
+
disabled: busy || !canSubmit(),
|
|
610
|
+
showLoader: busy,
|
|
611
|
+
text: active ? "Update" : "Start sharing"
|
|
612
|
+
});
|
|
613
|
+
$$renderer3.push(`<!----></div></div></div>`);
|
|
614
|
+
} else {
|
|
615
|
+
$$renderer3.push("<!--[-1-->");
|
|
616
|
+
}
|
|
617
|
+
$$renderer3.push(`<!--]-->`);
|
|
618
|
+
}
|
|
619
|
+
do {
|
|
620
|
+
$$settled = true;
|
|
621
|
+
$$inner_renderer = $$renderer2.copy();
|
|
622
|
+
$$render_inner($$inner_renderer);
|
|
623
|
+
} while (!$$settled);
|
|
624
|
+
$$renderer2.subsume($$inner_renderer);
|
|
625
|
+
});
|
|
626
|
+
}
|
|
439
627
|
function ShortcutsHelp($$renderer, $$props) {
|
|
440
628
|
$$renderer.component(($$renderer2) => {
|
|
441
629
|
const { onClose, open } = $$props;
|
|
@@ -469,11 +657,17 @@ function ShortcutsHelp($$renderer, $$props) {
|
|
|
469
657
|
}
|
|
470
658
|
function _page($$renderer, $$props) {
|
|
471
659
|
$$renderer.component(($$renderer2) => {
|
|
660
|
+
var $$store_subs;
|
|
472
661
|
let terminal = null;
|
|
662
|
+
let authMode = null;
|
|
663
|
+
let shareSheetOpen = false;
|
|
473
664
|
let showShortcutsHelp = false;
|
|
474
665
|
let showCommandPalette = false;
|
|
666
|
+
const terminalId = derived(() => store_get($$store_subs ??= {}, "$page", page).params.id);
|
|
475
667
|
const isRunning = derived(() => terminal?.status === "running");
|
|
476
668
|
const commandName = derived(() => "terminal");
|
|
669
|
+
const isOwner = derived(() => authMode === "owner");
|
|
670
|
+
const shareUrl = derived(() => typeof window !== "undefined" ? `${window.location.origin}/terminals/${terminalId()}` : "");
|
|
477
671
|
const paletteCommands = derived(() => {
|
|
478
672
|
const cmds = [
|
|
479
673
|
{ action: () => void goto(), label: "Go to Home" },
|
|
@@ -489,7 +683,7 @@ function _page($$renderer, $$props) {
|
|
|
489
683
|
label: "Show keyboard shortcuts"
|
|
490
684
|
}
|
|
491
685
|
];
|
|
492
|
-
if (isRunning()) {
|
|
686
|
+
if (isRunning() && isOwner()) {
|
|
493
687
|
cmds.push({ action: () => void killTerminal(), label: "Kill terminal" });
|
|
494
688
|
}
|
|
495
689
|
return cmds;
|
|
@@ -522,6 +716,12 @@ function _page($$renderer, $$props) {
|
|
|
522
716
|
}
|
|
523
717
|
});
|
|
524
718
|
$$renderer3.push(`<!----> `);
|
|
719
|
+
ShareSheet($$renderer3, {
|
|
720
|
+
open: shareSheetOpen,
|
|
721
|
+
terminalId: terminalId() ?? "",
|
|
722
|
+
shareUrl: shareUrl()
|
|
723
|
+
});
|
|
724
|
+
$$renderer3.push(`<!----> `);
|
|
525
725
|
CommandPalette($$renderer3, {
|
|
526
726
|
commands: paletteCommands(),
|
|
527
727
|
onClose: () => {
|
|
@@ -543,8 +743,9 @@ function _page($$renderer, $$props) {
|
|
|
543
743
|
$$render_inner($$inner_renderer);
|
|
544
744
|
} while (!$$settled);
|
|
545
745
|
$$renderer2.subsume($$inner_renderer);
|
|
746
|
+
if ($$store_subs) unsubscribe_stores($$store_subs);
|
|
546
747
|
});
|
|
547
748
|
}
|
|
548
749
|
|
|
549
750
|
export { _page as default };
|
|
550
|
-
//# sourceMappingURL=_page.svelte-
|
|
751
|
+
//# sourceMappingURL=_page.svelte-dabsQl9c.js.map
|