@deepseek-insight/dsi 0.8.1 → 0.8.3
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/0.DyOAkKS-.css +2 -0
- package/build/client/_app/immutable/assets/2.BPprd30B.css +1 -0
- package/build/client/_app/immutable/chunks/{CJ1fzlPC.js → BoHeiMOU.js} +1 -1
- package/build/client/_app/immutable/chunks/C9QAOGL1.js +2 -0
- package/build/client/_app/immutable/chunks/QJuSx3RG.js +1 -0
- package/build/client/_app/immutable/chunks/sC_8Ss7w.js +1 -0
- package/build/client/_app/immutable/entry/{app.DP0oSUf-.js → app.S_mxIoOg.js} +2 -2
- package/build/client/_app/immutable/entry/start.BPQAB3iV.js +1 -0
- package/build/client/_app/immutable/nodes/{1.UuScj-IS.js → 1.D20V6eTe.js} +1 -1
- package/build/client/_app/immutable/nodes/{2.CJRPZhbe.js → 2.BHcBdFqH.js} +223 -223
- package/build/client/_app/version.json +1 -1
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{db.js-B8BUpxGM.js → db.js-DQm6CZ_r.js} +2 -2
- package/build/server/chunks/chunks/{db2.js-CNe3I_g2.js → db2.js-DUhFxA3a.js} +2 -2
- package/build/server/chunks/chunks/{dsh-connection.js-xltcocWy.js → dsh-connection.js-BgeraFA2.js} +2 -2
- package/build/server/chunks/chunks/{dsh-events.js-CGuF_had.js → dsh-events.js-BUkLR6ZV.js} +13 -1
- package/build/server/chunks/chunks/{git-probe.js-CUsTmhmV.js → git-probe.js-CLF37SRh.js} +3 -3
- package/build/server/chunks/chunks/{insight-config.js-CaHHJpFK.js → insight-config.js-Dp_2gB5J.js} +5 -3
- package/build/server/chunks/chunks/{internal2.js-Pv5iygVN.js → internal2.js-Ba5p8uFM.js} +2 -2
- package/build/server/chunks/chunks/registry.js-C2MdrfNv.js +954 -0
- package/build/server/chunks/chunks/{state.js-BCaKzPy6.js → state.js-BSiAgink.js} +2 -2
- package/build/server/chunks/chunks/{watcher.js-DcT3cS4v.js → watcher.js-BVKnoQUw.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/a2a/_id_/{_server.ts.js-19pFOjH8.js → _server.ts.js-BjzdVwdY.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-BcUn6axe.js → _server.ts.js-3kQCQuHT.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-oMpzLZoy.js → _server.ts.js-BUBTCLFn.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/browser/_id_/activate/_server.ts.js-CogDOHKu.js +45 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/close/{_server.ts.js-DC3qPMQS.js → _server.ts.js-xOt7LnS1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/browser/_id_/closetab/_server.ts.js-CSmVPvSM.js +44 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/element/_server.ts.js-BA40oCDW.js +43 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/input/{_server.ts.js-CHNcK7BH.js → _server.ts.js-EX7eVzjp.js} +6 -5
- package/build/server/chunks/entries/endpoints/api/browser/_id_/mcp/{_server.ts.js-CYkOJL2O.js → _server.ts.js-B_EcmyFt.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/browser/_id_/navigate/{_server.ts.js-DHTDi8KR.js → _server.ts.js-C3dYbyS3.js} +12 -8
- package/build/server/chunks/entries/endpoints/api/browser/_id_/opentab/_server.ts.js-CMhJJO25.js +45 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/page/{_server.ts.js-Y5khEC2l.js → _server.ts.js-DIW4uI2S.js} +5 -4
- package/build/server/chunks/entries/endpoints/api/browser/_id_/stream/{_server.ts.js-BmjgfZD2.js → _server.ts.js-CIPIlq5X.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/browser/_id_/tabs/_server.ts.js-CoEdOiml.js +34 -0
- package/build/server/chunks/entries/endpoints/api/browser/_id_/viewport/{_server.ts.js-IxS-goi1.js → _server.ts.js-CdELUoGT.js} +7 -5
- package/build/server/chunks/entries/endpoints/api/browser/{_server.ts.js-6STmJ7FD.js → _server.ts.js-ea6HpNGh.js} +15 -5
- package/build/server/chunks/entries/endpoints/api/config/{_server.ts.js-BVyx8gPc.js → _server.ts.js-C8XDnDwe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/directory/{_server.ts.js-CNJbv6CC.js → _server.ts.js-BFmWshpv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/jobs/{_server.ts.js-CDWmXDJX.js → _server.ts.js-DATWy5mQ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/jobs/follow/{_server.ts.js-BDXQcQSL.js → _server.ts.js-CugOD1Zd.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/pick-directory/{_server.ts.js-CgedtzOg.js → _server.ts.js-DCupM4da.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/presets/{_server.ts.js-ut2pK15B.js → _server.ts.js-Bh1btvr9.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/{_server.ts.js-Ct2W7g4c.js → _server.ts.js-Cb8SBWVw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/cancel/{_server.ts.js-Rke3V_qh.js → _server.ts.js-WI9yH2iG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/catalog/{_server.ts.js-BYHm5WBA.js → _server.ts.js-bN9adUqz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/changes/{_server.ts.js-B_bEUKkt.js → _server.ts.js-Bxlm966G.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/command/{_server.ts.js-D78fGUQk.js → _server.ts.js-CM-raN_Q.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-CgB_c7zG.js → _server.ts.js-BzP30TXW.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/fork/{_server.ts.js-dVaW22_K.js → _server.ts.js-DvNkrTaY.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/goal/{_server.ts.js-Dl8SBXdH.js → _server.ts.js-DXbCrefw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-BKDiwMIE.js → _server.ts.js-B7YRQhuJ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/models/{_server.ts.js-D3FY2Wxt.js → _server.ts.js-C_AEaLLJ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/path/{_server.ts.js-BWuIEdjl.js → _server.ts.js-Dj-pF5ik.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/permission/{_server.ts.js-CeiQFOGP.js → _server.ts.js-BX9FWJ6g.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/prompt/{_server.ts.js-lMofZOns.js → _server.ts.js-CQ2Bmtu4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/rename/{_server.ts.js-CNalVHrK.js → _server.ts.js-Ha7xjnKW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/respond/{_server.ts.js-I2s8qvcV.js → _server.ts.js-BOg6llHk.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/select-model/{_server.ts.js-DTKELD7v.js → _server.ts.js-DBqGALzZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/sessions/{_server.ts.js-BXSD__Gg.js → _server.ts.js-CvA8WDDb.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/{_server.ts.js-C9IZl2Qh.js → _server.ts.js-BfjNH40j.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-tree/{_server.ts.js-BRXu3UtL.js → _server.ts.js-De_qumyr.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/{_server.ts.js-DmnpiaD2.js → _server.ts.js-tFpJJHCb.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/delete/{_server.ts.js-C5qCdsdm.js → _server.ts.js-DVx5GGA_.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/rename/{_server.ts.js-BVUn49yf.js → _server.ts.js-DuKT-aZp.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/_id_/{_server.ts.js-DuCOsoF0.js → _server.ts.js-DsWFidFY.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/{_server.ts.js-2mcRY7IP.js → _server.ts.js-C6j0adQs.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/prompts/use/{_server.ts.js-DZjaHZxU.js → _server.ts.js-BChAg4hm.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/settings/{_server.ts.js-DTVmsohJ.js → _server.ts.js-BPSHqbZN.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/terminal/{_server.ts.js-DZXTArj7.js → _server.ts.js-D5CbUe5k.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/workspace/file-write/{_server.ts.js-LSc5EKH7.js → _server.ts.js-B-5YihUA.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/git-events/{_server.ts.js-DNjiScBe.js → _server.ts.js-DT5jRZFE.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/{_server.ts.js-CHMbLoSn.js → _server.ts.js-DtW-utrd.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/git-map/{_server.ts.js-BgM4JEAm.js → _server.ts.js-8AIAo9jX.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/git-status/{_server.ts.js-BH0cLS8o.js → _server.ts.js-CMw96vjY.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/workspace/write-gate/{_server.ts.js-BzlV3cVT.js → _server.ts.js-DKufa14_.js} +5 -5
- package/build/server/chunks/entries/pages/{_error.svelte.js-BRyCyR0c.js → _error.svelte.js-D8-G0evO.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DttLUwdf.js → _page.server.ts.js-7x6ZfGoB.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.svelte.js-CKY8hz9T.js → _page.svelte.js-7xWLRsiZ.js} +333 -158
- package/build/server/chunks/{handler-D1oqmwyy.js → handler-BedQ0jP-.js} +3 -3
- package/build/server/chunks/{index.js-BZ8zP9wS.js → index.js-BF6tPPQs.js} +2 -2
- package/build/server/chunks/{manifest.js-CA6PuZTD.js → manifest.js-3c0p7QAl.js} +90 -55
- package/build/server/chunks/nodes/{0.js-DtkNHIFx.js → 0.js-B3i7sGR_.js} +3 -3
- package/build/server/chunks/nodes/1.js-eUf50uxI.js +9 -0
- package/build/server/chunks/nodes/{2.js-P1boc94A.js → 2.js-CgnRGwm6.js} +8 -8
- package/package.json +2 -7
- package/skills/dsi-kb-scenario/SKILL.md +67 -0
- package/template/.dsi/prompts.sqlite-shm +0 -0
- package/template/.dsi/prompts.sqlite-wal +0 -0
- package/template/.dsi/settings.yaml +8 -1
- package/build/client/_app/immutable/assets/0.DBVVEjy9.css +0 -2
- package/build/client/_app/immutable/assets/2.BhBfHqja.css +0 -1
- package/build/client/_app/immutable/chunks/C0tWPpc3.js +0 -2
- package/build/client/_app/immutable/chunks/gZFoJ-NI.js +0 -1
- package/build/client/_app/immutable/chunks/xkjLeSzJ.js +0 -1
- package/build/client/_app/immutable/entry/start.mBp3LB6J.js +0 -1
- package/build/server/chunks/chunks/registry.js-BTiJ1Kaj.js +0 -577
- package/build/server/chunks/nodes/1.js-Q6zZupRG.js +0 -9
- /package/build/client/_app/immutable/nodes/{0.Dm_ry-Pr.js → 0.6dTmg1Xv.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as index_server_exports } from './index-server.js-DmIEbDVz.js';
|
|
2
2
|
import './shared.js-HQ0rfhm4.js';
|
|
3
|
-
import './internal2.js-
|
|
3
|
+
import './internal2.js-Ba5p8uFM.js';
|
|
4
4
|
import './exports.js-DH_tjtdv.js';
|
|
5
5
|
import { U as snapshot, g as getContext, n as noop } from './server.js-B1bDXhHu.js';
|
|
6
6
|
import { U as UI_LOCALES } from './config.js-vThvQeMn.js';
|
|
@@ -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-BSiAgink.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-Dp_2gB5J.js';
|
|
2
|
+
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-DQm6CZ_r.js';
|
|
3
|
+
import { g as getDshConnection } from './dsh-connection.js-BgeraFA2.js';
|
|
4
|
+
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-BUkLR6ZV.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-BVKnoQUw.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getRow } from '../../../../../chunks/db.js-
|
|
1
|
+
import { g as getRow } from '../../../../../chunks/db.js-DQm6CZ_r.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -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-BjzdVwdY.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
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-DQm6CZ_r.js';
|
|
2
|
+
import { e as ensureStarted } from '../../../../chunks/watcher.js-BVKnoQUw.js';
|
|
3
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
|
-
import '../../../../chunks/insight-config.js-
|
|
4
|
+
import '../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
5
5
|
import '../../../../chunks/config.js-vThvQeMn.js';
|
|
6
6
|
import '../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
7
7
|
import 'node:fs';
|
|
@@ -10,8 +10,8 @@ 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-BgeraFA2.js';
|
|
14
|
+
import '../../../../chunks/dsh-events.js-BUkLR6ZV.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-3kQCQuHT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
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-Dp_2gB5J.js';
|
|
2
|
+
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-BgeraFA2.js';
|
|
3
|
+
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-BVKnoQUw.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
6
|
import '../../../../../chunks/config.js-vThvQeMn.js';
|
|
@@ -10,9 +10,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-DQm6CZ_r.js';
|
|
14
14
|
import 'node:sqlite';
|
|
15
|
-
import '../../../../../chunks/dsh-events.js-
|
|
15
|
+
import '../../../../../chunks/dsh-events.js-BUkLR6ZV.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-BUBTCLFn.js.map
|
package/build/server/chunks/entries/endpoints/api/browser/_id_/activate/_server.ts.js-CogDOHKu.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-Gw1puaik.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]/activate/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/activate — move the glass's face to another tab
|
|
20
|
+
* (ADR-0040 D1/D2/D4): lazy attach, per-switch first-frame seed, pointer
|
|
21
|
+
* move. The answer IS the boundary frame (seq + jpeg) so the panel never
|
|
22
|
+
* waits on a blank paint; the SSE then resumes from that seq.
|
|
23
|
+
*/
|
|
24
|
+
var POST = async (ctx) => {
|
|
25
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
26
|
+
let body;
|
|
27
|
+
try {
|
|
28
|
+
body = await ctx.request.json();
|
|
29
|
+
} catch {
|
|
30
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
31
|
+
}
|
|
32
|
+
if (typeof body.targetId !== "string" || !body.targetId) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
33
|
+
try {
|
|
34
|
+
return json(await browserRegistry.activate(ctx.params.id, body.targetId));
|
|
35
|
+
} catch (err) {
|
|
36
|
+
if (err instanceof BrowserRegistryRefusal) return json({
|
|
37
|
+
error: err.code,
|
|
38
|
+
reason: err.message
|
|
39
|
+
}, { status: err.code === "NO_SESSION" ? 404 : err.code === "NO_TARGET" ? 404 : 409 });
|
|
40
|
+
throw err;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { POST };
|
|
45
|
+
//# sourceMappingURL=_server.ts.js-CogDOHKu.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -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-xOt7LnS1.js.map
|
package/build/server/chunks/entries/endpoints/api/browser/_id_/closetab/_server.ts.js-CSmVPvSM.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-Gw1puaik.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]/closetab/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/closetab — close ONE tab (the strip ✕, BUGFIX round 3).
|
|
20
|
+
* Body { targetId }. Closing the LAST tab is refused (NO_TARGET): session
|
|
21
|
+
* death belongs to the kill ladder (trash / reaper), never to a tab ✕.
|
|
22
|
+
*/
|
|
23
|
+
var POST = async (ctx) => {
|
|
24
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
25
|
+
let body;
|
|
26
|
+
try {
|
|
27
|
+
body = await ctx.request.json();
|
|
28
|
+
} catch {
|
|
29
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
30
|
+
}
|
|
31
|
+
if (typeof body.targetId !== "string" || !body.targetId) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
32
|
+
try {
|
|
33
|
+
return json(await browserRegistry.closeTab(ctx.params.id, body.targetId));
|
|
34
|
+
} catch (err) {
|
|
35
|
+
if (err instanceof BrowserRegistryRefusal) return json({
|
|
36
|
+
error: err.code,
|
|
37
|
+
reason: err.message
|
|
38
|
+
}, { status: err.code === "NO_SESSION" ? 404 : err.code === "NO_TARGET" ? 404 : 409 });
|
|
39
|
+
throw err;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { POST };
|
|
44
|
+
//# sourceMappingURL=_server.ts.js-CSmVPvSM.js.map
|
package/build/server/chunks/entries/endpoints/api/browser/_id_/element/_server.ts.js-BA40oCDW.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-Gw1puaik.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]/element/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/element — what the page has under viewport coords
|
|
20
|
+
* (BUGFIX 2026-10-25): the glass context menu's data pass. Chrome's NATIVE
|
|
21
|
+
* right-click menu is browser UI and never renders in the screencast, so
|
|
22
|
+
* DSI renders its own; this answers href/src/text under the point.
|
|
23
|
+
*/
|
|
24
|
+
var POST = async (ctx) => {
|
|
25
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
26
|
+
let body;
|
|
27
|
+
try {
|
|
28
|
+
body = await ctx.request.json();
|
|
29
|
+
} catch {
|
|
30
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
31
|
+
}
|
|
32
|
+
if (typeof body.x !== "number" || typeof body.y !== "number" || !Number.isFinite(body.x) || !Number.isFinite(body.y)) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
33
|
+
const targetId = typeof body.targetId === "string" && body.targetId ? body.targetId : void 0;
|
|
34
|
+
try {
|
|
35
|
+
return json(await browserRegistry.elementAt(ctx.params.id, body.x, body.y, targetId));
|
|
36
|
+
} catch (err) {
|
|
37
|
+
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" || err.code === "NO_TARGET" ? 404 : 409 });
|
|
38
|
+
throw err;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { POST };
|
|
43
|
+
//# sourceMappingURL=_server.ts.js-BA40oCDW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -65,14 +65,15 @@ var POST = async (ctx) => {
|
|
|
65
65
|
const input = validate(body);
|
|
66
66
|
if (!input) return json({ error: "BAD_INPUT" }, { status: 400 });
|
|
67
67
|
try {
|
|
68
|
-
|
|
68
|
+
const tid = body.targetId;
|
|
69
|
+
await browserRegistry.dispatch(ctx.params.id, input, typeof tid === "string" && tid ? tid : void 0);
|
|
69
70
|
return json({ ok: true });
|
|
70
71
|
} catch (err) {
|
|
71
|
-
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" ? 404 : 409 });
|
|
72
|
+
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" || err.code === "NO_TARGET" ? 404 : 409 });
|
|
72
73
|
if (err.name === "RelayClosedError") return json({ error: "CLOSED" }, { status: 409 });
|
|
73
74
|
throw err;
|
|
74
75
|
}
|
|
75
76
|
};
|
|
76
77
|
|
|
77
78
|
export { POST };
|
|
78
|
-
//# sourceMappingURL=_server.ts.js-
|
|
79
|
+
//# sourceMappingURL=_server.ts.js-EX7eVzjp.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -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-B_EcmyFt.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -35,19 +35,23 @@ var POST = async (ctx) => {
|
|
|
35
35
|
} catch {
|
|
36
36
|
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
37
37
|
}
|
|
38
|
+
const targetId = typeof body.targetId === "string" && body.targetId ? body.targetId : void 0;
|
|
38
39
|
if (!("url" in body) === !("action" in body)) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
39
40
|
try {
|
|
40
41
|
if ("url" in body) {
|
|
41
42
|
if (typeof body.url !== "string" || !URL_OK.test(body.url)) return json({ error: "BAD_URL" }, { status: 400 });
|
|
42
|
-
await browserRegistry.navigate(ctx.params.id, body.url, {
|
|
43
|
+
await browserRegistry.navigate(ctx.params.id, body.url, {
|
|
44
|
+
waitLoad: true,
|
|
45
|
+
targetId
|
|
46
|
+
});
|
|
43
47
|
return json({
|
|
44
|
-
...await browserRegistry.pageInfo(ctx.params.id),
|
|
45
|
-
...await browserRegistry.navInfo(ctx.params.id)
|
|
48
|
+
...await browserRegistry.pageInfo(ctx.params.id, targetId),
|
|
49
|
+
...await browserRegistry.navInfo(ctx.params.id, targetId)
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
if (typeof body.action !== "string" || !ACTIONS.has(body.action)) return json({ error: "BAD_ACTION" }, { status: 400 });
|
|
49
|
-
if (body.action === "reload") return json(await browserRegistry.reload(ctx.params.id));
|
|
50
|
-
const info = await browserRegistry.pageHistory(ctx.params.id, body.action);
|
|
53
|
+
if (body.action === "reload") return json(await browserRegistry.reload(ctx.params.id, targetId));
|
|
54
|
+
const info = await browserRegistry.pageHistory(ctx.params.id, body.action, targetId);
|
|
51
55
|
return json(info);
|
|
52
56
|
} catch (err) {
|
|
53
57
|
if (err instanceof BrowserRegistryRefusal) return json({
|
|
@@ -59,4 +63,4 @@ var POST = async (ctx) => {
|
|
|
59
63
|
};
|
|
60
64
|
|
|
61
65
|
export { POST };
|
|
62
|
-
//# sourceMappingURL=_server.ts.js-
|
|
66
|
+
//# sourceMappingURL=_server.ts.js-C3dYbyS3.js.map
|
package/build/server/chunks/entries/endpoints/api/browser/_id_/opentab/_server.ts.js-CMhJJO25.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-Gw1puaik.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]/opentab/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/opentab — open a NEW tab in the glass and make it the
|
|
20
|
+
* active face (the context menu's 'open in new tab' verbs, BUGFIX
|
|
21
|
+
* 2026-10-25). Body { url } — http(s) or data: like navigate.
|
|
22
|
+
*/
|
|
23
|
+
var URL_OK = /^https?:\/\/|^data:text\/html/;
|
|
24
|
+
var POST = async (ctx) => {
|
|
25
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
26
|
+
let body;
|
|
27
|
+
try {
|
|
28
|
+
body = await ctx.request.json();
|
|
29
|
+
} catch {
|
|
30
|
+
return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
31
|
+
}
|
|
32
|
+
if (typeof body.url !== "string" || !URL_OK.test(body.url)) return json({ error: "BAD_URL" }, { status: 400 });
|
|
33
|
+
try {
|
|
34
|
+
return json(await browserRegistry.openTab(ctx.params.id, body.url));
|
|
35
|
+
} catch (err) {
|
|
36
|
+
if (err instanceof BrowserRegistryRefusal) return json({
|
|
37
|
+
error: err.code,
|
|
38
|
+
reason: err.message
|
|
39
|
+
}, { status: err.code === "NO_SESSION" ? 404 : err.code === "NO_TARGET" ? 404 : 409 });
|
|
40
|
+
throw err;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { POST };
|
|
45
|
+
//# sourceMappingURL=_server.ts.js-CMhJJO25.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -22,7 +22,8 @@ import '../../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
|
22
22
|
var GET = async (ctx) => {
|
|
23
23
|
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
const tid = ctx.url.searchParams.get("targetId") ?? void 0;
|
|
26
|
+
return json(await browserRegistry.pageInfo(ctx.params.id, tid || void 0));
|
|
26
27
|
} catch (err) {
|
|
27
28
|
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" ? 404 : 409 });
|
|
28
29
|
throw err;
|
|
@@ -30,4 +31,4 @@ var GET = async (ctx) => {
|
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
export { GET };
|
|
33
|
-
//# sourceMappingURL=_server.ts.js-
|
|
34
|
+
//# sourceMappingURL=_server.ts.js-DIW4uI2S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -71,4 +71,4 @@ var GET = (ctx) => {
|
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export { GET };
|
|
74
|
-
//# sourceMappingURL=_server.ts.js-
|
|
74
|
+
//# sourceMappingURL=_server.ts.js-CIPIlq5X.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
|
+
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
|
+
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
|
+
import '../../../../../../chunks/settings-document.js-Gw1puaik.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]/tabs/+server.ts
|
|
18
|
+
/**
|
|
19
|
+
* /api/browser/[id]/tabs — enumerate the glass context's pages (ADR-0040
|
|
20
|
+
* D5): the tab strip's feed. type:page only; read-only, never attaches,
|
|
21
|
+
* never streams (D1 — only the active tab streams).
|
|
22
|
+
*/
|
|
23
|
+
var GET = async (ctx) => {
|
|
24
|
+
if (browserRegistry.isClosed(ctx.params.id)) return json({ error: "CLOSED" }, { status: 409 });
|
|
25
|
+
try {
|
|
26
|
+
return json({ tabs: await browserRegistry.listTabs(ctx.params.id) });
|
|
27
|
+
} catch (err) {
|
|
28
|
+
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" ? 404 : 409 });
|
|
29
|
+
throw err;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { GET };
|
|
34
|
+
//# sourceMappingURL=_server.ts.js-CoEdOiml.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry, B as BrowserRegistryRefusal } from '../../../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -30,13 +30,15 @@ var POST = async (ctx) => {
|
|
|
30
30
|
}
|
|
31
31
|
if (typeof body.width !== "number" || typeof body.height !== "number" || !Number.isFinite(body.width) || !Number.isFinite(body.height)) return json({ error: "BAD_REQUEST" }, { status: 400 });
|
|
32
32
|
try {
|
|
33
|
-
|
|
33
|
+
const targetId = typeof body.targetId === "string" && body.targetId ? body.targetId : void 0;
|
|
34
|
+
if (targetId) await browserRegistry.setViewport(ctx.params.id, body.width, body.height, targetId);
|
|
35
|
+
else await browserRegistry.setViewport(ctx.params.id, body.width, body.height);
|
|
34
36
|
return json({ ok: true });
|
|
35
37
|
} catch (err) {
|
|
36
|
-
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" ? 404 : 409 });
|
|
38
|
+
if (err instanceof BrowserRegistryRefusal) return json({ error: err.code }, { status: err.code === "NO_SESSION" || err.code === "NO_TARGET" ? 404 : 409 });
|
|
37
39
|
throw err;
|
|
38
40
|
}
|
|
39
41
|
};
|
|
40
42
|
|
|
41
43
|
export { POST };
|
|
42
|
-
//# sourceMappingURL=_server.ts.js-
|
|
44
|
+
//# sourceMappingURL=_server.ts.js-CdELUoGT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as browserRegistry } from '../../../../chunks/registry.js-
|
|
1
|
+
import { b as browserRegistry } from '../../../../chunks/registry.js-C2MdrfNv.js';
|
|
2
2
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -21,9 +21,19 @@ import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
|
21
21
|
* returns { id, port }. The registry owns every refusal.
|
|
22
22
|
*/
|
|
23
23
|
var GET = () => json({ sessions: browserRegistry.list() });
|
|
24
|
-
var POST = async () => {
|
|
24
|
+
var POST = async (event) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
let width;
|
|
27
|
+
let height;
|
|
28
|
+
try {
|
|
29
|
+
const body = event?.request ? await event.request.json() : {};
|
|
30
|
+
if (typeof body.width === "number" && body.width >= 200) width = Math.round(body.width);
|
|
31
|
+
if (typeof body.height === "number" && body.height >= 120) height = Math.round(body.height);
|
|
32
|
+
} catch {}
|
|
33
|
+
const info = await browserRegistry.open({
|
|
34
|
+
width,
|
|
35
|
+
height
|
|
36
|
+
});
|
|
27
37
|
return json(info);
|
|
28
38
|
} catch (e) {
|
|
29
39
|
return json({
|
|
@@ -34,4 +44,4 @@ var POST = async () => {
|
|
|
34
44
|
};
|
|
35
45
|
|
|
36
46
|
export { GET, POST };
|
|
37
|
-
//# sourceMappingURL=_server.ts.js-
|
|
47
|
+
//# sourceMappingURL=_server.ts.js-ea6HpNGh.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as readSettingsHomes, g as readJobsConfig, e as readPromptsConfig, h as readSidebarConfig, i as readPanelConfig, c as readA2aConfig, k as readHomeConfig, l as readConversationConfig, m as readChatConfig } from '../../../../chunks/insight-config.js-
|
|
2
|
-
import { r as resolvePromptsDbPath } from '../../../../chunks/db2.js-
|
|
1
|
+
import { f as readSettingsHomes, g as readJobsConfig, e as readPromptsConfig, h as readSidebarConfig, i as readPanelConfig, c as readA2aConfig, k as readHomeConfig, l as readConversationConfig, m as readChatConfig } from '../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
2
|
+
import { r as resolvePromptsDbPath } from '../../../../chunks/db2.js-DUhFxA3a.js';
|
|
3
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
5
|
import '../../../../chunks/config.js-vThvQeMn.js';
|
|
@@ -50,4 +50,4 @@ var GET = async () => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export { GET };
|
|
53
|
-
//# sourceMappingURL=_server.ts.js-
|
|
53
|
+
//# sourceMappingURL=_server.ts.js-C8XDnDwe.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-BgeraFA2.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -42,4 +42,4 @@ var GET = async ({ url }) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
export { GET };
|
|
45
|
-
//# sourceMappingURL=_server.ts.js-
|
|
45
|
+
//# sourceMappingURL=_server.ts.js-BFmWshpv.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-BgeraFA2.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -122,4 +122,4 @@ var POST = async ({ request }) => {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
export { GET, POST };
|
|
125
|
-
//# sourceMappingURL=_server.ts.js-
|
|
125
|
+
//# sourceMappingURL=_server.ts.js-DATWy5mQ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDshConnection } from '../../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import '../../../../../../chunks/insight-config.js-
|
|
1
|
+
import { g as getDshConnection } from '../../../../../../chunks/dsh-connection.js-BgeraFA2.js';
|
|
2
|
+
import '../../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
3
3
|
import '../../../../../../chunks/config.js-vThvQeMn.js';
|
|
4
4
|
import '../../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
5
5
|
import 'node:fs';
|
|
@@ -53,4 +53,4 @@ var GET = ({ url }) => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
export { GET };
|
|
56
|
-
//# sourceMappingURL=_server.ts.js-
|
|
56
|
+
//# sourceMappingURL=_server.ts.js-CugOD1Zd.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-BgeraFA2.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
-
import '../../../../../chunks/insight-config.js-
|
|
3
|
+
import '../../../../../chunks/insight-config.js-Dp_2gB5J.js';
|
|
4
4
|
import '../../../../../chunks/config.js-vThvQeMn.js';
|
|
5
5
|
import '../../../../../chunks/settings-document.js-Gw1puaik.js';
|
|
6
6
|
import 'node:fs';
|
|
@@ -35,4 +35,4 @@ var POST = async ({ request }) => {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export { POST };
|
|
38
|
-
//# sourceMappingURL=_server.ts.js-
|
|
38
|
+
//# sourceMappingURL=_server.ts.js-DCupM4da.js.map
|