@deepseek-insight/dsi 0.8.5 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/{dsi-gb-verifier → glass-dsi}/SKILL.md +57 -5
- package/.agents/skills/glass-dsi/references/cdp-verification.md +132 -0
- package/.agents/skills/glass-dsi/scripts/_connect.mjs +81 -0
- package/.agents/skills/glass-dsi/scripts/glass-url.mjs +48 -0
- package/.agents/skills/glass-dsi/scripts/glass.mjs +84 -0
- package/.agents/skills/glass-url/SKILL.md +117 -0
- package/.agents/skills/glass-url/scripts/_args.mjs +49 -0
- package/.agents/skills/glass-url/scripts/_connect.mjs +99 -0
- package/.agents/skills/glass-url/scripts/glass-url.mjs +114 -0
- package/bin/dsi.mjs +48 -74
- package/bin/lib/zai-patch.mjs +115 -0
- package/build/client/_app/immutable/assets/0.Ch5VtsKp.css +2 -0
- package/build/client/_app/immutable/assets/2.D0QOh44D.css +1 -0
- package/build/client/_app/immutable/chunks/{DwcY-69G.js → 02Wfo2G3.js} +1 -1
- package/build/client/_app/immutable/chunks/0Tfhif1V.js +3 -0
- package/build/client/_app/immutable/chunks/{DUCaFYlx.js → 4bHE1npv.js} +1 -1
- package/build/client/_app/immutable/chunks/{4cwyag_I.js → B4hDUAJl.js} +1 -1
- package/build/client/_app/immutable/chunks/{hC0DBYN6.js → BFNQKoqg.js} +2 -2
- package/build/client/_app/immutable/chunks/{Cr2ck_ss.js → BIPXB-2I.js} +1 -1
- package/build/client/_app/immutable/chunks/{CeLBjOd9.js → BIgv-kQR.js} +1 -1
- package/build/client/_app/immutable/chunks/BK6k1nBs.js +1 -0
- package/build/client/_app/immutable/chunks/{SN3Efo-Q.js → BKwmKcDY.js} +1 -1
- package/build/client/_app/immutable/chunks/{CRFuOqJI.js → BORjuqef.js} +1 -1
- package/build/client/_app/immutable/chunks/{CH_bR_0j.js → BPmZB0-N.js} +1 -1
- package/build/client/_app/immutable/chunks/BROtno1Y.js +1 -0
- package/build/client/_app/immutable/chunks/{DEVxi5CK.js → BT5Iel00.js} +1 -1
- package/build/client/_app/immutable/chunks/{DdI16loP.js → BX3y_1Hh.js} +1 -1
- package/build/client/_app/immutable/chunks/Be-_M64M.js +1 -0
- package/build/client/_app/immutable/chunks/{DuiFyTVb.js → Bea1gxLq.js} +1 -1
- package/build/client/_app/immutable/chunks/{D0uxHECr.js → BpkpgvVw.js} +1 -1
- package/build/client/_app/immutable/chunks/{CB55Rp7-.js → BreZS7EW.js} +1 -1
- package/build/client/_app/immutable/chunks/{BmDADyfH.js → BsS_byzk.js} +1 -1
- package/build/client/_app/immutable/chunks/{BWRXzjmQ.js → Bslg-dr5.js} +1 -1
- package/build/client/_app/immutable/chunks/{BkYT72a1.js → C-YczRN1.js} +1 -1
- package/build/client/_app/immutable/chunks/{DBKMIEwD.js → C2aW4lzo.js} +1 -1
- package/build/client/_app/immutable/chunks/{C4gs6zoI.js → C2qFXaz5.js} +1 -1
- package/build/client/_app/immutable/chunks/{BBd0nTHG.js → C5RyRpOh.js} +1 -1
- package/build/client/_app/immutable/chunks/{DJQr4efH.js → C5iHDVU_.js} +1 -1
- package/build/client/_app/immutable/chunks/{B4F5liKq.js → C7opVlLF.js} +1 -1
- package/build/client/_app/immutable/chunks/{DIxy2USu.js → CAuEkmZ4.js} +1 -1
- package/build/client/_app/immutable/chunks/{BO99LSSA.js → CIkiqgtA.js} +1 -1
- package/build/client/_app/immutable/chunks/{Bpd0I3U7.js → CJesWaZn.js} +1 -1
- package/build/client/_app/immutable/chunks/{at6PQqQ4.js → CRsoS5Y9.js} +1 -1
- package/build/client/_app/immutable/chunks/CTWtsoJD.js +6 -0
- package/build/client/_app/immutable/chunks/{lF8CNVOA.js → CXkrluSK.js} +1 -1
- package/build/client/_app/immutable/chunks/{DmRY6FWm.js → C_8kFZ_X.js} +4 -4
- package/build/client/_app/immutable/chunks/{D6KenyiF.js → Ch7hUoAH.js} +1 -1
- package/build/client/_app/immutable/chunks/{DfUgh5E_.js → CjajmcJs.js} +1 -1
- package/build/client/_app/immutable/chunks/{q5PRaRZk.js → Ck6GS6Vb.js} +1 -1
- package/build/client/_app/immutable/chunks/{eFcFJ9Ld.js → ClGoDr_f.js} +1 -1
- package/build/client/_app/immutable/chunks/{BQC6O_RV.js → ClqGHlec.js} +1 -1
- package/build/client/_app/immutable/chunks/{zypfUZYM.js → CnW6hje6.js} +1 -1
- package/build/client/_app/immutable/chunks/{OW5Q7tGb.js → CpI6VYCH.js} +1 -1
- package/build/client/_app/immutable/chunks/{BXKc4uuX.js → CygwwaiE.js} +1 -1
- package/build/client/_app/immutable/chunks/{Bqwvv7Vf.js → CyhZtsZO.js} +35 -35
- package/build/client/_app/immutable/chunks/{BenkQ_4r.js → D-E2Noqq.js} +1 -1
- package/build/client/_app/immutable/chunks/{DuRZnRVw.js → D4Btzp_A.js} +1 -1
- package/build/client/_app/immutable/chunks/{CdaJvl_A.js → D4C3Jijv.js} +1 -1
- package/build/client/_app/immutable/chunks/D9jhmf3I.js +1 -0
- package/build/client/_app/immutable/chunks/{Cf0aMC4n.js → DCw0gAtv.js} +1 -1
- package/build/client/_app/immutable/chunks/{B6bTO8_7.js → DEW3KpiC.js} +1 -1
- package/build/client/_app/immutable/chunks/{b4-Ro8NH.js → DXD_Wzp9.js} +1 -1
- package/build/client/_app/immutable/chunks/{O6xxeEm8.js → DYLFbKJe.js} +1 -1
- package/build/client/_app/immutable/chunks/{BsBBq-Qk.js → DYu7kgVa.js} +1 -1
- package/build/client/_app/immutable/chunks/Dfexc5qV.js +1 -0
- package/build/client/_app/immutable/chunks/{kzciT-3i.js → DhmUE8Ri.js} +1 -1
- package/build/client/_app/immutable/chunks/{DdJNsJBH.js → DjwX3rAC.js} +1 -1
- package/build/client/_app/immutable/chunks/{CajOZJDl.js → DlOfy8Sx.js} +1 -1
- package/build/client/_app/immutable/chunks/{CK5vhXvt.js → Do7Y1_MQ.js} +1 -1
- package/build/client/_app/immutable/chunks/{ap4GAVq-.js → Dq2XIb1m.js} +1 -1
- package/build/client/_app/immutable/chunks/Ds3NY1WI.js +1 -0
- package/build/client/_app/immutable/chunks/{Czey8tDK.js → DuT_Qr5k.js} +1 -1
- package/build/client/_app/immutable/chunks/{4B6J_kM2.js → DyGggFea.js} +1 -1
- package/build/client/_app/immutable/chunks/{D0ChUnpi.js → Dym4i64U.js} +1 -1
- package/build/client/_app/immutable/chunks/FPsIAiN_.js +1 -0
- package/build/client/_app/immutable/chunks/{CevKuuic.js → GIczpP_D.js} +1 -1
- package/build/client/_app/immutable/chunks/{B2jrDnt8.js → LjOLSmU7.js} +1 -1
- package/build/client/_app/immutable/chunks/VtK73aN-.js +8 -0
- package/build/client/_app/immutable/chunks/{AcmOeh2U.js → ZqoQH_jm.js} +1 -1
- package/build/client/_app/immutable/chunks/{BlwWx85l.js → aXn6rE_7.js} +1 -1
- package/build/client/_app/immutable/chunks/{Czc4_W7v.js → dUOeoGwg.js} +1 -1
- package/build/client/_app/immutable/chunks/f50lp1rr.js +1 -0
- package/build/client/_app/immutable/chunks/{7FnrqGK9.js → lvLrv1cG.js} +1 -1
- package/build/client/_app/immutable/chunks/{CZoElI5B.js → pt3_jHwh.js} +1 -1
- package/build/client/_app/immutable/chunks/{Byu_teLA.js → q8irUX-p.js} +1 -1
- package/build/client/_app/immutable/chunks/{CnxoqrkQ.js → qmOgUo3c.js} +1 -1
- package/build/client/_app/immutable/chunks/{DU8C5thd.js → xvTPLhcB.js} +1 -1
- package/build/client/_app/immutable/chunks/{DFBKiA2Z.js → zp7hrpsC.js} +1 -1
- package/build/client/_app/immutable/entry/app.C_yn4m6w.js +2 -0
- package/build/client/_app/immutable/entry/start.Cvx_lhm5.js +1 -0
- package/build/client/_app/immutable/nodes/0.fsrqKU9i.js +1 -0
- package/build/client/_app/immutable/nodes/1.DZxzqrcK.js +1 -0
- package/build/client/_app/immutable/nodes/2.ckwEPlsL.js +340 -0
- package/build/client/_app/version.json +1 -1
- package/build/handler.js +6 -6
- package/build/index.js +6 -6
- package/build/server/chunks/chunks/{app-config.svelte.js-DCc9d7A4.js → app-config.svelte.js-BXjvTmJu.js} +4 -3
- package/build/server/chunks/chunks/{config.js-s6iKwHD7.js → config.js-r_jw_bQQ.js} +53 -2
- package/build/server/chunks/chunks/{db.js-CxxWK5sn.js → db.js-f2PmBjyD.js} +2 -2
- package/build/server/chunks/chunks/{db2.js-DwJ9lySe.js → db2.js-DkwY64WO.js} +2 -2
- package/build/server/chunks/chunks/{dsh-connection.js-Chtudg1p.js → dsh-connection.js-BW07Aicl.js} +18 -10
- package/build/server/chunks/chunks/{dsh-events.js-BUdvZQmd.js → dsh-events.js-BHf0lLZ5.js} +11 -1
- package/build/server/chunks/chunks/{git-probe.js-BX9FPnet.js → git-probe.js-CQqTV7XX.js} +3 -3
- package/build/server/chunks/chunks/{index-server.js-DmIEbDVz.js → index-server.js-CPkVoRxB.js} +2 -2
- package/build/server/chunks/chunks/{insight-config.js-Db5fe5Df.js → insight-config.js-C5-Rhh5A.js} +13 -4
- package/build/server/chunks/chunks/{internal2.js-CaZaz-a9.js → internal2.js-zTmbne6n.js} +4 -4
- package/build/server/chunks/chunks/{registry.js-syaTZ_-A.js → registry.js-CWnRQ4vx.js} +430 -52
- package/build/server/chunks/chunks/{registry2.js-D3Pr1Rv9.js → registry2.js-CFzpvj9c.js} +17 -1
- package/build/server/chunks/chunks/{server.js-B1bDXhHu.js → server.js-Dijo7DtV.js} +2 -2
- package/build/server/chunks/chunks/{settings-document.js-BHESJ7im.js → settings-document.js-DxKURfc_.js} +2 -2
- package/build/server/chunks/chunks/{state.js-oYjf745s.js → state.js-CPIukTkD.js} +5 -5
- package/build/server/chunks/chunks/{watcher.js-Ci9jsM5l.js → watcher.js-DvlNn8X0.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/a2a/_id_/{_server.ts.js-CHaYhzjy.js → _server.ts.js-DItDXV23.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-CdyqA85c.js → _server.ts.js-Hor8QZb1.js} +8 -8
- package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-DO_FS5b4.js → _server.ts.js-CEvvsa8B.js} +8 -8
- package/build/server/chunks/entries/endpoints/api/browser/_id_/activate/{_server.ts.js-D7Be4JUf.js → _server.ts.js-sXqf-okw.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/close/{_server.ts.js-CGkm2H-U.js → _server.ts.js-Byj9ApJh.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/closetab/{_server.ts.js-D7SLUfOo.js → _server.ts.js-DOIsrzvg.js} +16 -9
- package/build/server/chunks/entries/endpoints/api/browser/_id_/element/{_server.ts.js-C3d_JV-q.js → _server.ts.js-Cq3gmRfE.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/history/_server.ts.js-BGSLIV0t.js +61 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/input/{_server.ts.js-DW0hyVML.js → _server.ts.js-8slca75-.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/mcp/{_server.ts.js-Ev-hdBlf.js → _server.ts.js-CpbdTYds.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/navigate/{_server.ts.js-DZ8-wocV.js → _server.ts.js-Bls9LtLY.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/opentab/{_server.ts.js-aapPrIQK.js → _server.ts.js-DqNi_iW_.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/page/{_server.ts.js-DANA_hMd.js → _server.ts.js-DuXWwo7i.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/stream/{_server.ts.js-BqfseXFy.js → _server.ts.js-DXfqBDEw.js} +17 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/tabs/{_server.ts.js-DFFF9qe-.js → _server.ts.js-Bgnl8lYs.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/viewport/{_server.ts.js-ek6-D4Zm.js → _server.ts.js-FHmQVbrv.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/zoom/_server.ts.js-BV4cBtSA.js +62 -0
- package/build/server/chunks/entries/endpoints/api/browser/{_server.ts.js-CPjKy3ma.js → _server.ts.js-4vgkwh7v.js} +9 -6
- package/build/server/chunks/entries/endpoints/api/config/{_server.ts.js-CWE9NP6g.js → _server.ts.js-C_9kwANR.js} +9 -6
- package/build/server/chunks/entries/endpoints/api/dsh/directory/{_server.ts.js-D-raYQon.js → _server.ts.js-h1OTHcL4.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/jobs/{_server.ts.js-CI4dEHFY.js → _server.ts.js-B6nih9Sd.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/jobs/follow/{_server.ts.js-cnjoSLtY.js → _server.ts.js-Cf17SVmD.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/pick-directory/{_server.ts.js-0UUtapX5.js → _server.ts.js-DjNwMbdS.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/presets/{_server.ts.js-MK5ezU8u.js → _server.ts.js-Cz5aaEhC.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/_server.ts.js-BFBy5O9Y.js +78 -0
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/cancel/{_server.ts.js-wGEl1fuF.js → _server.ts.js-CgEdCo3T.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/catalog/{_server.ts.js-Bz7u2BlD.js → _server.ts.js-Bo_aEnHh.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/changes/{_server.ts.js-yue5aEjr.js → _server.ts.js-Bd2G_GaH.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/command/{_server.ts.js-BFSs5T2m.js → _server.ts.js-DL64FyRw.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-C2i85wQy.js → _server.ts.js-MhOGB66D.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/fork/{_server.ts.js-_toO4f4W.js → _server.ts.js-MjPgXgGO.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/goal/{_server.ts.js-BGJnDV85.js → _server.ts.js-BUjDae5H.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-CQCJg8U8.js → _server.ts.js-dTKd7Hsv.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/models/{_server.ts.js-0ADvdE79.js → _server.ts.js-B82rvKoI.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/path/{_server.ts.js-DyO4T1Ro.js → _server.ts.js-Cqijsi-c.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/permission/{_server.ts.js-CIY7oimw.js → _server.ts.js-CL_vVv2p.js} +29 -6
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/prompt/{_server.ts.js-B-9faNHX.js → _server.ts.js-WS4W9Ly4.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/rename/{_server.ts.js-E7-0zfiH.js → _server.ts.js-B72KGRGh.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/respond/{_server.ts.js-CODtLQ3Q.js → _server.ts.js-DK5xb2b5.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/select-model/{_server.ts.js-BiSxsU-j.js → _server.ts.js-lhT87EQu.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/sessions/{_server.ts.js-C0WJnv2b.js → _server.ts.js-CMhfhbkN.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/subagents/{_server.ts.js-D5bc4xg4.js → _server.ts.js-BLvcFsg6.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/{_server.ts.js-23ycAyUg.js → _server.ts.js-D_rw2Uq6.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-tree/{_server.ts.js-B4w5Jh7f.js → _server.ts.js-DfXpMMpw.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/{_server.ts.js-VQLxDbFE.js → _server.ts.js-2mJCJVxk.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/delete/{_server.ts.js-vs5N5Cya.js → _server.ts.js-BCx0Lzjf.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/rename/{_server.ts.js-BOWhoBHV.js → _server.ts.js-DECaSjwp.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/prompts/_id_/{_server.ts.js-aDEAGfJe.js → _server.ts.js-i_ciJzlb.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/prompts/{_server.ts.js-BZ-nRrTp.js → _server.ts.js-BO1pScn7.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/prompts/use/{_server.ts.js-CkDY1PQ7.js → _server.ts.js-Buhpf7WE.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/settings/{_server.ts.js-CHvgF47Y.js → _server.ts.js-DngUQzcT.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/terminal/_id_/output/{_server.ts.js-BNBxebgG.js → _server.ts.js-DLETP4yQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/terminal/_id_/reattach/{_server.ts.js-DDRJBGIr.js → _server.ts.js-uWl6oxPS.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/terminal/_id_/send/{_server.ts.js-CA0vc_Cm.js → _server.ts.js-DYNmXaAd.js} +9 -2
- package/build/server/chunks/entries/endpoints/api/terminal/_id_/stream/{_server.ts.js-D6L8Gd_f.js → _server.ts.js-C5m3Ktho.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/terminal/{_server.ts.js-CbRT4vBo.js → _server.ts.js-DoTNvcOa.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/file-write/{_server.ts.js-BwD0KaXy.js → _server.ts.js-BzYOJSkI.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/workspace/git-events/{_server.ts.js-DgbMRh3d.js → _server.ts.js-xcNesei9.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/{_server.ts.js-DRqZawic.js → _server.ts.js-DsJWYdxt.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/workspace/git-map/{_server.ts.js-CTXwwwB1.js → _server.ts.js-CNCku9BR.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/workspace/git-status/{_server.ts.js-B4aJBY2w.js → _server.ts.js-nLsNjOxj.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/workspace/write-gate/{_server.ts.js-CDJJA18L.js → _server.ts.js-urQk2-ds.js} +7 -7
- package/build/server/chunks/entries/{hooks.server.js-Iel6oE7w.js → hooks.server.js-CU2RE5vs.js} +3 -3
- package/build/server/chunks/entries/pages/{_error.svelte.js-B-wdFjVG.js → _error.svelte.js-Dss5_PtG.js} +6 -6
- package/build/server/chunks/entries/pages/{_page.server.ts.js-CaoeQzem.js → _page.server.ts.js-BK3Y6eff.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.svelte.js-CY7zcWr4.js → _page.svelte.js-CJboFEGf.js} +2681 -648
- package/build/server/chunks/{handler-DYk4NJto.js → handler-Bn-Z9bWE.js} +3 -3
- package/build/server/chunks/{index.js-kL9MZ99b.js → index.js-NQAT8Awn.js} +4 -4
- package/build/server/chunks/{manifest.js-BrMLQqec.js → manifest.js-hlUhRW1X.js} +79 -65
- package/build/server/chunks/nodes/{0.js-BembYTTr.js → 0.js-CuV3dXVD.js} +3 -3
- package/build/server/chunks/nodes/1.js-CxcLyijV.js +9 -0
- package/build/server/chunks/nodes/{2.js-BezA2RPm.js → 2.js-_lM-D6Dt.js} +10 -10
- package/package.json +2 -2
- package/scripts/dsh-web-synced.sh +21 -5
- package/template/.dsi/prompts.sqlite +0 -0
- package/template/.dsi/prompts.sqlite-shm +0 -0
- package/template/.dsi/prompts.sqlite-wal +0 -0
- package/template/.dsi/settings.yaml +7 -2
- package/build/client/_app/immutable/assets/0.C6AGVUc8.css +0 -2
- package/build/client/_app/immutable/assets/2.gXzZuuwh.css +0 -1
- package/build/client/_app/immutable/chunks/BFOY8uwF.js +0 -1
- package/build/client/_app/immutable/chunks/BHDqH9nE.js +0 -1
- package/build/client/_app/immutable/chunks/CAneZX4t.js +0 -8
- package/build/client/_app/immutable/chunks/CrTRqozz.js +0 -1
- package/build/client/_app/immutable/chunks/DQXo7qdJ.js +0 -1
- package/build/client/_app/immutable/chunks/DxGYLnDH.js +0 -1
- package/build/client/_app/immutable/chunks/HD-mJtOS.js +0 -6
- package/build/client/_app/immutable/chunks/K3xyLTzZ.js +0 -1
- package/build/client/_app/immutable/chunks/cHj8EuyS.js +0 -3
- package/build/client/_app/immutable/chunks/o7DVZODA.js +0 -1
- package/build/client/_app/immutable/chunks/pdYhlwhf.js +0 -1
- package/build/client/_app/immutable/entry/app.DHewwbUQ.js +0 -2
- package/build/client/_app/immutable/entry/start.C0PcwkeZ.js +0 -1
- package/build/client/_app/immutable/nodes/0.CP10wY64.js +0 -1
- package/build/client/_app/immutable/nodes/1.qWvE0DiU.js +0 -1
- package/build/client/_app/immutable/nodes/2.Nw7iFtoh.js +0 -341
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/_server.ts.js-CEiMgzjC.js +0 -46
- package/build/server/chunks/nodes/1.js-CKJjyWGZ.js +0 -9
|
@@ -280,6 +280,17 @@ var TerminalSession = class extends EventEmitter {
|
|
|
280
280
|
this.pty.write(data);
|
|
281
281
|
this.startPassiveSettle();
|
|
282
282
|
}
|
|
283
|
+
/** Resize the PTY to the client's fitted dims (Terminal Desk ADR
|
|
284
|
+
* amendment 2026-11-03, mirroring the DSH handle's `resize` fact 2):
|
|
285
|
+
* the shell re-reads winsize and re-prints its right prompt inside the
|
|
286
|
+
* viewport instead of spilling past the last column. Clamped to sane
|
|
287
|
+
* bounds; a dead session is a no-op. */
|
|
288
|
+
resize(cols, rows) {
|
|
289
|
+
if (this.exited) return;
|
|
290
|
+
const c = Math.max(2, Math.min(500, Math.floor(cols)));
|
|
291
|
+
const r = Math.max(2, Math.min(200, Math.floor(rows)));
|
|
292
|
+
this.pty.resize(c, r);
|
|
293
|
+
}
|
|
283
294
|
/** One passive settle observation; concurrent writes share the watcher. */
|
|
284
295
|
startPassiveSettle() {
|
|
285
296
|
if (this.passiveSettling || this.sendInFlight) return;
|
|
@@ -503,6 +514,11 @@ var TerminalRegistry = class {
|
|
|
503
514
|
write(sessionId, token, data) {
|
|
504
515
|
this.authorized(sessionId, token).write(data);
|
|
505
516
|
}
|
|
517
|
+
/** Resize the PTY to the client's fitted dims (Terminal Desk ADR
|
|
518
|
+
* amendment 2026-11-03 — the DSH handle's `resize` fact, mirrored). */
|
|
519
|
+
resize(sessionId, token, cols, rows) {
|
|
520
|
+
this.authorized(sessionId, token).resize(cols, rows);
|
|
521
|
+
}
|
|
506
522
|
signal(sessionId, token, signal) {
|
|
507
523
|
return this.authorized(sessionId, token).signalForeground(signal);
|
|
508
524
|
}
|
|
@@ -542,4 +558,4 @@ var TerminalRegistry = class {
|
|
|
542
558
|
var terminalRegistry = new TerminalRegistry();
|
|
543
559
|
|
|
544
560
|
export { TerminalRegistryRefusal as T, TerminalSendRefusal as a, terminalRegistry as t };
|
|
545
|
-
//# sourceMappingURL=registry2.js-
|
|
561
|
+
//# sourceMappingURL=registry2.js-CFzpvj9c.js.map
|
|
@@ -4216,5 +4216,5 @@ function derived(fn) {
|
|
|
4216
4216
|
};
|
|
4217
4217
|
}
|
|
4218
4218
|
|
|
4219
|
-
export {
|
|
4220
|
-
//# sourceMappingURL=server.js-
|
|
4219
|
+
export { stringify as $, component_root as A, hydrate_node as B, create_text as C, boundary as D, array_from as E, is_passive_event as F, set_active_reaction as G, HYDRATION_ERROR as H, set_active_effect as I, active_reaction as J, active_effect as K, LEGACY_PROPS as L, derived as M, hydrating as N, push$1 as O, component_context as P, hydration_mismatch as Q, pop$1 as R, readable as S, writable as T, snapshot as U, head as V, escape_html as W, attr as X, ensure_array_like as Y, attr_class as Z, attr_style as _, setContext as a, bind_props as a0, store_get as a1, spread_props as a2, attributes as a3, clsx as a4, element as a5, unsubscribe_stores as a6, html as a7, props_id as a8, getAllContexts as b, getAbortSignal as c, createContext as d, experimental_async_required as e, get_render_context as f, getContext as g, hasContext as h, hydratable_serialization_failed as i, render as j, set as k, lifecycle_function_unavailable as l, get as m, noop as n, flushSync as o, define_property as p, mutable_source as q, run as r, ssr_context as s, init_operations as t, get_first_child as u, get_next_sibling as v, set_hydrating as w, set_hydrate_node as x, hydration_failed as y, clear_text_content as z };
|
|
4220
|
+
//# sourceMappingURL=server.js-Dijo7DtV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as isConfigRecord } from './config.js-
|
|
1
|
+
import { i as isConfigRecord } from './config.js-r_jw_bQQ.js';
|
|
2
2
|
import { existsSync, readFileSync, cpSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
|
|
3
3
|
import { dirname, join } from 'node:path';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
@@ -159,4 +159,4 @@ function parseYamlSettings(text) {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
export { SettingsParseError as S, ensureDsiHome as e, migrateLegacyDsiConfig as m, parseYamlSettings as p, readSettingsDocument as r, saveSettingsDocument as s };
|
|
162
|
-
//# sourceMappingURL=settings-document.js-
|
|
162
|
+
//# sourceMappingURL=settings-document.js-DxKURfc_.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as index_server_exports } from './index-server.js-
|
|
1
|
+
import { i as index_server_exports } from './index-server.js-CPkVoRxB.js';
|
|
2
2
|
import './shared.js-HQ0rfhm4.js';
|
|
3
|
-
import './internal2.js-
|
|
3
|
+
import './internal2.js-zTmbne6n.js';
|
|
4
4
|
import './exports.js-DH_tjtdv.js';
|
|
5
|
-
import { U as snapshot, g as getContext, n as noop } from './server.js-
|
|
6
|
-
import { U as UI_LOCALES } from './config.js-
|
|
5
|
+
import { U as snapshot, g as getContext, n as noop } from './server.js-Dijo7DtV.js';
|
|
6
|
+
import { U as UI_LOCALES } from './config.js-r_jw_bQQ.js';
|
|
7
7
|
import { c as getLocale } from './runtime.js-CCJi3XaY.js';
|
|
8
8
|
import './utils.js-CAdNO8Tu.js';
|
|
9
9
|
|
|
@@ -304,4 +304,4 @@ var page = {
|
|
|
304
304
|
};
|
|
305
305
|
|
|
306
306
|
export { afterNavigate as a, backtoworkspace2 as b, currentLocale as c, dshunreachable1 as d, replaceState as e, page as p, reapednote1 as r, sessionnotfound2 as s, t, unexpectederror1 as u };
|
|
307
|
-
//# sourceMappingURL=state.js-
|
|
307
|
+
//# sourceMappingURL=state.js-CPIukTkD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as readA2aConfig } from './insight-config.js-
|
|
2
|
-
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-
|
|
3
|
-
import { g as getDshConnection } from './dsh-connection.js-
|
|
4
|
-
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-
|
|
1
|
+
import { c as readA2aConfig } from './insight-config.js-C5-Rhh5A.js';
|
|
2
|
+
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-f2PmBjyD.js';
|
|
3
|
+
import { g as getDshConnection } from './dsh-connection.js-BW07Aicl.js';
|
|
4
|
+
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-BHf0lLZ5.js';
|
|
5
5
|
|
|
6
6
|
//#region src/lib/server/a2a/matcher.ts
|
|
7
7
|
/**
|
|
@@ -470,4 +470,4 @@ function registerWatch(row) {
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
export { configureWatcher as c, ensureStarted as e, registerWatch as r };
|
|
473
|
-
//# sourceMappingURL=watcher.js-
|
|
473
|
+
//# sourceMappingURL=watcher.js-DvlNn8X0.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getRow } from '../../../../../chunks/db.js-
|
|
1
|
+
import { g as getRow } from '../../../../../chunks/db.js-f2PmBjyD.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -36,4 +36,4 @@ var GET = ({ params }) => {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { GET };
|
|
39
|
-
//# sourceMappingURL=_server.ts.js-
|
|
39
|
+
//# sourceMappingURL=_server.ts.js-DItDXV23.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { a as listRecent } from '../../../../chunks/db.js-
|
|
2
|
-
import { e as ensureStarted } from '../../../../chunks/watcher.js-
|
|
1
|
+
import { a as listRecent } from '../../../../chunks/db.js-f2PmBjyD.js';
|
|
2
|
+
import { e as ensureStarted } from '../../../../chunks/watcher.js-DvlNn8X0.js';
|
|
3
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
|
-
import '../../../../chunks/insight-config.js-
|
|
5
|
-
import '../../../../chunks/config.js-
|
|
6
|
-
import '../../../../chunks/settings-document.js-
|
|
4
|
+
import '../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
5
|
+
import '../../../../chunks/config.js-r_jw_bQQ.js';
|
|
6
|
+
import '../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'node:os';
|
|
10
10
|
import 'yaml';
|
|
11
11
|
import '../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
12
12
|
import 'node:sqlite';
|
|
13
|
-
import '../../../../chunks/dsh-connection.js-
|
|
14
|
-
import '../../../../chunks/dsh-events.js-
|
|
13
|
+
import '../../../../chunks/dsh-connection.js-BW07Aicl.js';
|
|
14
|
+
import '../../../../chunks/dsh-events.js-BHf0lLZ5.js';
|
|
15
15
|
import '../../../../chunks/merge.js-yMwW440S.js';
|
|
16
16
|
import '../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
17
17
|
import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
@@ -61,4 +61,4 @@ var GET = ({ url }) => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
export { GET };
|
|
64
|
-
//# sourceMappingURL=_server.ts.js-
|
|
64
|
+
//# sourceMappingURL=_server.ts.js-Hor8QZb1.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-
|
|
2
|
-
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-
|
|
3
|
-
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-
|
|
1
|
+
import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
2
|
+
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-BW07Aicl.js';
|
|
3
|
+
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-DvlNn8X0.js';
|
|
4
4
|
import { m as mintA2aId } from '../../../../../chunks/a2a-protocol.js-C77mVg2Q.js';
|
|
5
5
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
6
|
-
import '../../../../../chunks/config.js-
|
|
7
|
-
import '../../../../../chunks/settings-document.js-
|
|
6
|
+
import '../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
7
|
+
import '../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:path';
|
|
10
10
|
import 'node:os';
|
|
11
11
|
import 'yaml';
|
|
12
12
|
import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
13
|
-
import '../../../../../chunks/db.js-
|
|
13
|
+
import '../../../../../chunks/db.js-f2PmBjyD.js';
|
|
14
14
|
import 'node:sqlite';
|
|
15
|
-
import '../../../../../chunks/dsh-events.js-
|
|
15
|
+
import '../../../../../chunks/dsh-events.js-BHf0lLZ5.js';
|
|
16
16
|
import '../../../../../chunks/merge.js-yMwW440S.js';
|
|
17
17
|
import '../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
18
18
|
import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
@@ -99,4 +99,4 @@ var POST = async ({ request }) => {
|
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
export { POST };
|
|
102
|
-
//# sourceMappingURL=_server.ts.js-
|
|
102
|
+
//# sourceMappingURL=_server.ts.js-CEvvsa8B.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -42,4 +42,4 @@ var POST = async (ctx) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export { POST };
|
|
45
|
-
//# sourceMappingURL=_server.ts.js-
|
|
45
|
+
//# sourceMappingURL=_server.ts.js-sXqf-okw.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -29,4 +29,4 @@ var POST = async (ctx) => {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export { POST };
|
|
32
|
-
//# sourceMappingURL=_server.ts.js-
|
|
32
|
+
//# sourceMappingURL=_server.ts.js-Byj9ApJh.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -17,9 +17,13 @@ import '../../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
|
17
17
|
//#region src/routes/api/browser/[id]/closetab/+server.ts
|
|
18
18
|
/**
|
|
19
19
|
* /api/browser/[id]/closetab — close ONE tab (the strip ✕, BUGFIX round 3).
|
|
20
|
-
* Body { targetId }
|
|
21
|
-
*
|
|
20
|
+
* Body { targetId } OR { tabId } (glass-tab-ids: the strip addresses tabs
|
|
21
|
+
* by their session-stable ordinal). A retired/unknown tabId is an EXPLICIT
|
|
22
|
+
* 404 — never a silent nearest-match. Closing the LAST tab is refused
|
|
23
|
+
* (NO_TARGET): session death belongs to the kill ladder (trash / reaper),
|
|
24
|
+
* never to a tab ✕.
|
|
22
25
|
*/
|
|
26
|
+
var NUMERIC = /^\d+$/;
|
|
23
27
|
var POST = async (ctx) => {
|
|
24
28
|
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
25
29
|
let body;
|
|
@@ -28,9 +32,12 @@ var POST = async (ctx) => {
|
|
|
28
32
|
} catch {
|
|
29
33
|
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
30
34
|
}
|
|
31
|
-
|
|
35
|
+
let ref = null;
|
|
36
|
+
if (typeof body.tabId === "number" || typeof body.tabId === "string" && NUMERIC.test(body.tabId)) ref = typeof body.tabId === "number" ? body.tabId : body.tabId;
|
|
37
|
+
else if (typeof body.targetId === "string" && body.targetId) ref = body.targetId;
|
|
38
|
+
if (ref === null) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
32
39
|
try {
|
|
33
|
-
return json(await browserRegistry.closeTab(ctx.params.id,
|
|
40
|
+
return json(await browserRegistry.closeTab(ctx.params.id, ref));
|
|
34
41
|
} catch (err) {
|
|
35
42
|
if (err instanceof BrowserRegistryRefusal) return json({
|
|
36
43
|
error: err.code,
|
|
@@ -41,4 +48,4 @@ var POST = async (ctx) => {
|
|
|
41
48
|
};
|
|
42
49
|
|
|
43
50
|
export { POST };
|
|
44
|
-
//# sourceMappingURL=_server.ts.js-
|
|
51
|
+
//# sourceMappingURL=_server.ts.js-DOIsrzvg.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -40,4 +40,4 @@ var POST = async (ctx) => {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
export { POST };
|
|
43
|
-
//# sourceMappingURL=_server.ts.js-
|
|
43
|
+
//# sourceMappingURL=_server.ts.js-Cq3gmRfE.js.map
|
package/build/server/chunks/entries/endpoints/api/browser/_id_/history/_server.ts.js-BGSLIV0t.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
|
+
import 'node:fs';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:os';
|
|
9
|
+
import 'yaml';
|
|
10
|
+
import '../../../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
11
|
+
import 'node:child_process';
|
|
12
|
+
import 'node:crypto';
|
|
13
|
+
import 'playwright-core';
|
|
14
|
+
import '../../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
15
|
+
import '../../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
16
|
+
|
|
17
|
+
//#region src/routes/api/browser/[id]/history/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/history — the long-press history dropdown's wire
|
|
20
|
+
* (operator-approved 2026-10-28). GET ?targetId=... answers the FOCUSED
|
|
21
|
+
* tab's full navigation history { currentIndex, entries }; POST
|
|
22
|
+
* { targetId?, index } travels to that entry via CDP
|
|
23
|
+
* Page.navigateToHistoryEntry (TRUE history travel — no new entries
|
|
24
|
+
* appended). 404/409 refusals follow the closetab/navigate pattern.
|
|
25
|
+
*/
|
|
26
|
+
var GET = async (ctx) => {
|
|
27
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
28
|
+
const targetId = ctx.url.searchParams.get("targetId") ?? void 0;
|
|
29
|
+
try {
|
|
30
|
+
return json(await browserRegistry.navEntries(ctx.params.id, targetId));
|
|
31
|
+
} catch (err) {
|
|
32
|
+
if (err instanceof BrowserRegistryRefusal) return json({
|
|
33
|
+
error: err.code,
|
|
34
|
+
reason: err.message
|
|
35
|
+
}, { status: err.code === "NO_SESSION" || err.code === "NO_TARGET" ? 404 : 409 });
|
|
36
|
+
throw err;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
var POST = async (ctx) => {
|
|
40
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
41
|
+
let body;
|
|
42
|
+
try {
|
|
43
|
+
body = await ctx.request.json();
|
|
44
|
+
} catch {
|
|
45
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
46
|
+
}
|
|
47
|
+
const targetId = typeof body.targetId === "string" && body.targetId ? body.targetId : void 0;
|
|
48
|
+
if (typeof body.index !== "number") return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
49
|
+
try {
|
|
50
|
+
return json(await browserRegistry.historyTravel(ctx.params.id, body.index, targetId));
|
|
51
|
+
} catch (err) {
|
|
52
|
+
if (err instanceof BrowserRegistryRefusal) return json({
|
|
53
|
+
error: err.code,
|
|
54
|
+
reason: err.message
|
|
55
|
+
}, { status: err.code === "NO_SESSION" || err.code === "NO_TARGET" ? 404 : 409 });
|
|
56
|
+
throw err;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { GET, POST };
|
|
61
|
+
//# sourceMappingURL=_server.ts.js-BGSLIV0t.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -76,4 +76,4 @@ var POST = async (ctx) => {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
export { POST };
|
|
79
|
-
//# sourceMappingURL=_server.ts.js-
|
|
79
|
+
//# sourceMappingURL=_server.ts.js-8slca75-.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -47,4 +47,4 @@ var GET = (ctx) => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export { GET };
|
|
50
|
-
//# sourceMappingURL=_server.ts.js-
|
|
50
|
+
//# sourceMappingURL=_server.ts.js-CpbdTYds.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -63,4 +63,4 @@ var POST = async (ctx) => {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export { POST };
|
|
66
|
-
//# sourceMappingURL=_server.ts.js-
|
|
66
|
+
//# sourceMappingURL=_server.ts.js-Bls9LtLY.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -44,4 +44,4 @@ var POST = async (ctx) => {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export { POST };
|
|
47
|
-
//# sourceMappingURL=_server.ts.js-
|
|
47
|
+
//# sourceMappingURL=_server.ts.js-DqNi_iW_.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -31,4 +31,4 @@ var GET = async (ctx) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export { GET };
|
|
34
|
-
//# sourceMappingURL=_server.ts.js-
|
|
34
|
+
//# sourceMappingURL=_server.ts.js-DuXWwo7i.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -46,6 +46,7 @@ var GET = (ctx) => {
|
|
|
46
46
|
const state = { closed: false };
|
|
47
47
|
let off = null;
|
|
48
48
|
let offActive = null;
|
|
49
|
+
let offDeath = null;
|
|
49
50
|
const stream = new ReadableStream({
|
|
50
51
|
start(controller) {
|
|
51
52
|
const push = (chunk) => {
|
|
@@ -56,6 +57,7 @@ var GET = (ctx) => {
|
|
|
56
57
|
state.closed = true;
|
|
57
58
|
off?.();
|
|
58
59
|
offActive?.();
|
|
60
|
+
offDeath?.();
|
|
59
61
|
}
|
|
60
62
|
};
|
|
61
63
|
let current = null;
|
|
@@ -76,11 +78,21 @@ var GET = (ctx) => {
|
|
|
76
78
|
};
|
|
77
79
|
bind();
|
|
78
80
|
offActive = browserRegistry.onActiveChange(id, () => bind());
|
|
81
|
+
offDeath = browserRegistry.onDeath(id, (reason) => {
|
|
82
|
+
push(sse("died", { reason }));
|
|
83
|
+
state.closed = true;
|
|
84
|
+
off?.();
|
|
85
|
+
offActive?.();
|
|
86
|
+
try {
|
|
87
|
+
controller.close();
|
|
88
|
+
} catch {}
|
|
89
|
+
});
|
|
79
90
|
},
|
|
80
91
|
cancel() {
|
|
81
92
|
state.closed = true;
|
|
82
93
|
off?.();
|
|
83
94
|
offActive?.();
|
|
95
|
+
offDeath?.();
|
|
84
96
|
browserRegistry.noteStreamClose(id);
|
|
85
97
|
}
|
|
86
98
|
});
|
|
@@ -88,4 +100,4 @@ var GET = (ctx) => {
|
|
|
88
100
|
};
|
|
89
101
|
|
|
90
102
|
export { GET };
|
|
91
|
-
//# sourceMappingURL=_server.ts.js-
|
|
103
|
+
//# sourceMappingURL=_server.ts.js-DXfqBDEw.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -31,4 +31,4 @@ var GET = async (ctx) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
export { GET };
|
|
34
|
-
//# sourceMappingURL=_server.ts.js-
|
|
34
|
+
//# sourceMappingURL=_server.ts.js-Bgnl8lYs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
4
|
-
import '../../../../../../chunks/config.js-
|
|
5
|
-
import '../../../../../../chunks/settings-document.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
@@ -41,4 +41,4 @@ var POST = async (ctx) => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export { POST };
|
|
44
|
-
//# sourceMappingURL=_server.ts.js-
|
|
44
|
+
//# sourceMappingURL=_server.ts.js-FHmQVbrv.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { d as readBrowserConfig } from '../../../../../../chunks/insight-config.js-C5-Rhh5A.js';
|
|
2
|
+
import { b as browserRegistry, c as clampZoom, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-CWnRQ4vx.js';
|
|
3
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-r_jw_bQQ.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-DxKURfc_.js';
|
|
6
|
+
import 'node:fs';
|
|
7
|
+
import 'node:path';
|
|
8
|
+
import 'node:os';
|
|
9
|
+
import 'yaml';
|
|
10
|
+
import '../../../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
11
|
+
import 'node:child_process';
|
|
12
|
+
import 'node:crypto';
|
|
13
|
+
import 'playwright-core';
|
|
14
|
+
import '../../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
15
|
+
import '../../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
16
|
+
|
|
17
|
+
//#region src/routes/api/browser/[id]/zoom/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/zoom — the live zoom slider's wire door (2026-10-28,
|
|
20
|
+
* operator-approved). POST {zoom: 0.5..1.25} stores the session zoom and
|
|
21
|
+
* pushes it to every attached tab instantly (registry.setZoom); GET
|
|
22
|
+
* answers the session's current zoom + whether the config knob is even
|
|
23
|
+
* enabled (the panel hides the slider when it is not).
|
|
24
|
+
*/
|
|
25
|
+
var POST = async (ctx) => {
|
|
26
|
+
let body;
|
|
27
|
+
try {
|
|
28
|
+
body = await ctx.request.json();
|
|
29
|
+
} catch {
|
|
30
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
31
|
+
}
|
|
32
|
+
const zoom = clampZoom(body.zoom);
|
|
33
|
+
if (zoom === null) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
34
|
+
try {
|
|
35
|
+
await browserRegistry.setZoom(ctx.params.id, zoom);
|
|
36
|
+
return json({
|
|
37
|
+
ok: true,
|
|
38
|
+
zoom
|
|
39
|
+
});
|
|
40
|
+
} catch (err) {
|
|
41
|
+
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" ? 404 : 409 });
|
|
42
|
+
throw err;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var GET = async (ctx) => {
|
|
46
|
+
const cfg = readBrowserConfig();
|
|
47
|
+
try {
|
|
48
|
+
const e = browserRegistry.peek(ctx.params.id);
|
|
49
|
+
return json({
|
|
50
|
+
zoom: e.zoom ?? cfg.contentZoom,
|
|
51
|
+
knobEnabled: cfg.contentZoom !== 1
|
|
52
|
+
});
|
|
53
|
+
} catch {
|
|
54
|
+
return json({
|
|
55
|
+
zoom: cfg.contentZoom,
|
|
56
|
+
knobEnabled: cfg.contentZoom !== 1
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { GET, POST };
|
|
62
|
+
//# sourceMappingURL=_server.ts.js-BV4cBtSA.js.map
|