@deepseek-insight/dsi 0.5.33 → 0.5.34
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.9KCWnpRq.css +2 -0
- package/build/client/_app/immutable/assets/2.DEfYr14g.css +1 -0
- package/build/client/_app/immutable/chunks/-BV4MEqr.js +1 -0
- package/build/client/_app/immutable/chunks/{BO15_-NJ.js → B2hm1w7K.js} +1 -1
- package/build/client/_app/immutable/chunks/{B3Lta-Nn.js → B52Khb6E.js} +1 -1
- package/build/client/_app/immutable/chunks/{DGget9Lk.js → B53Y9F3N.js} +1 -1
- package/build/client/_app/immutable/chunks/B5GSQvZ-.js +1 -0
- package/build/client/_app/immutable/chunks/{Da0rl5Rb.js → B9fOkvHb.js} +1 -1
- package/build/client/_app/immutable/chunks/{CIZRvqf3.js → BC5nqwvj.js} +1 -1
- package/build/client/_app/immutable/chunks/{CVJBb63S.js → BFsDYOFz.js} +1 -1
- package/build/client/_app/immutable/chunks/{BOGXkyy3.js → BGQXNvll.js} +1 -1
- package/build/client/_app/immutable/chunks/{1KjP5PPV.js → BIUi504d.js} +1 -1
- package/build/client/_app/immutable/chunks/{wRPKccfz.js → BIvFR1xA.js} +1 -1
- package/build/client/_app/immutable/chunks/{BS84xqUl.js → BKYpDGvC.js} +1 -1
- package/build/client/_app/immutable/chunks/{DzNl4lTU.js → BNx4_m7U.js} +1 -1
- package/build/client/_app/immutable/chunks/{BhMqa9V0.js → BOKyldQm.js} +1 -1
- package/build/client/_app/immutable/chunks/{BFYiBR8b.js → BRNBFqQ_.js} +1 -1
- package/build/client/_app/immutable/chunks/{B5bIZjCh.js → B_6pr4k2.js} +1 -1
- package/build/client/_app/immutable/chunks/{BoJ5ww2X.js → BfChGCnE.js} +1 -1
- package/build/client/_app/immutable/chunks/{BK9wQfnJ.js → Bi25XSWW.js} +1 -1
- package/build/client/_app/immutable/chunks/{CXDjw6BI.js → Bi5NvDds.js} +1 -1
- package/build/client/_app/immutable/chunks/{CjMviqoD.js → Bl78Sc72.js} +1 -1
- package/build/client/_app/immutable/chunks/{D2Punuji.js → Bn64J6A-.js} +1 -1
- package/build/client/_app/immutable/chunks/{BQFPW2iU.js → Bp4vT1Ke.js} +1 -1
- package/build/client/_app/immutable/chunks/{DnA33f7e.js → C-58cZAk.js} +1 -1
- package/build/client/_app/immutable/chunks/{FDKaBHdO.js → C1rk31qs.js} +1 -1
- package/build/client/_app/immutable/chunks/{eNqKaSDb.js → C2vkjTiv.js} +1 -1
- package/build/client/_app/immutable/chunks/{C7xeaPF2.js → C48u-2qp.js} +1 -1
- package/build/client/_app/immutable/chunks/{D9XozwcM.js → C7a8i7sD.js} +1 -1
- package/build/client/_app/immutable/chunks/{tziyL5EM.js → C7iYNw8X.js} +1 -1
- package/build/client/_app/immutable/chunks/{CA7VtFsM.js → C8wGq5T2.js} +1 -1
- package/build/client/_app/immutable/chunks/{DVsJyQaB.js → CDTTZjYW.js} +1 -1
- package/build/client/_app/immutable/chunks/{CQNMOuVz.js → CEj_BGCY.js} +1 -1
- package/build/client/_app/immutable/chunks/{dg-Ik0Xp.js → CG77uzLI.js} +1 -1
- package/build/client/_app/immutable/chunks/{DfxnqpU2.js → CI1tkkzb.js} +1 -1
- package/build/client/_app/immutable/chunks/{DTVIMflS.js → CItDRTlN.js} +1 -1
- package/build/client/_app/immutable/chunks/{BKMUCRSB.js → CLvIgAhR.js} +1 -1
- package/build/client/_app/immutable/chunks/{7Qwz4TD3.js → CPbUcKPc.js} +1 -1
- package/build/client/_app/immutable/chunks/CPhcxli7.js +1 -0
- package/build/client/_app/immutable/chunks/{BtWgux0k.js → CRe9IZg0.js} +1 -1
- package/build/client/_app/immutable/chunks/CT1m72HM.js +1 -0
- package/build/client/_app/immutable/chunks/{DHChdxxK.js → CaAId7nh.js} +1 -1
- package/build/client/_app/immutable/chunks/{5W1abxrJ.js → CdFbOrCf.js} +1 -1
- package/build/client/_app/immutable/chunks/{Dufckt0T.js → Cdn_bzx2.js} +1 -1
- package/build/client/_app/immutable/chunks/{D_4vyw9k.js → CmNEu9LM.js} +1 -1
- package/build/client/_app/immutable/chunks/{BNCXVe_Y.js → CnAA0dO8.js} +1 -1
- package/build/client/_app/immutable/chunks/{_OxPZn8v.js → CpX84bXa.js} +1 -1
- package/build/client/_app/immutable/chunks/{D-p2gaJO.js → CvWnUnS1.js} +1 -1
- package/build/client/_app/immutable/chunks/{qDr7l6ST.js → CvjdFV1E.js} +1 -1
- package/build/client/_app/immutable/chunks/{XM-sjL-p.js → Cx__ttXF.js} +1 -1
- package/build/client/_app/immutable/chunks/CxnI-Htc.js +8 -0
- package/build/client/_app/immutable/chunks/D07HHvcI.js +2 -0
- package/build/client/_app/immutable/chunks/D0uZseUH.js +1 -0
- package/build/client/_app/immutable/chunks/D25JjSwh.js +1 -0
- package/build/client/_app/immutable/chunks/{T453H1uG.js → D3bC95qg.js} +1 -1
- package/build/client/_app/immutable/chunks/{DtdNJetN.js → D4Ogpdhb.js} +1 -1
- package/build/client/_app/immutable/chunks/{DrLWFO8Z.js → D4xFb7_b.js} +1 -1
- package/build/client/_app/immutable/chunks/{CfqeI44h.js → D5ecapQY.js} +1 -1
- package/build/client/_app/immutable/chunks/{NxBjh70M.js → DJ36HFmi.js} +1 -1
- package/build/client/_app/immutable/chunks/{CfKp2keY.js → Dea0pTfN.js} +4 -4
- package/build/client/_app/immutable/chunks/{CWRt23V2.js → Dn4fSUjR.js} +1 -1
- package/build/client/_app/immutable/chunks/{BnEcDyty.js → DqRXQwgi.js} +1 -1
- package/build/client/_app/immutable/chunks/{CT33sMmw.js → DsZdPfqt.js} +1 -1
- package/build/client/_app/immutable/chunks/{CKk3hDrH.js → DypDva7F.js} +1 -1
- package/build/client/_app/immutable/chunks/{CwpTIVX4.js → GNZHLVjs.js} +1 -1
- package/build/client/_app/immutable/chunks/{KCYBrblk.js → GhVfcgWW.js} +4 -4
- package/build/client/_app/immutable/chunks/HwuqC1sa.js +1 -0
- package/build/client/_app/immutable/chunks/{hFCLiR2C.js → J3KpJGd_.js} +1 -1
- package/build/client/_app/immutable/chunks/{pRzztTzl.js → OVDjSnH6.js} +1 -1
- package/build/client/_app/immutable/chunks/{BDws8KMN.js → RIIj2qfU.js} +1 -1
- package/build/client/_app/immutable/chunks/{CbmGLQlS.js → ZwJo3zrp.js} +1 -1
- package/build/client/_app/immutable/chunks/{CWJVj28H.js → a1Hqq5w-.js} +1 -1
- package/build/client/_app/immutable/chunks/{BP1EDRMh.js → iK_uzrhN.js} +1 -1
- package/build/client/_app/immutable/chunks/{4BUyCMHs.js → l5GiMY16.js} +1 -1
- package/build/client/_app/immutable/chunks/{5BuKkouu.js → qkxAgKjo.js} +1 -1
- package/build/client/_app/immutable/chunks/{CfPrYC2A.js → xRO38jd8.js} +1 -1
- package/build/client/_app/immutable/entry/app.JnGE9QaY.js +2 -0
- package/build/client/_app/immutable/entry/start.B82JjWXe.js +1 -0
- package/build/client/_app/immutable/nodes/0.Ba4j9lPa.js +1 -0
- package/build/client/_app/immutable/nodes/1.DibfLi2p.js +1 -0
- package/build/client/_app/immutable/nodes/2.ChfcYWGA.js +331 -0
- 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/{dsh-connection.js-BSzUs8-n.js → dsh-connection.js-Lnv7PlHw.js} +23 -1
- package/build/server/chunks/chunks/{dsh-events.js-DEZgATm-.js → dsh-events.js-CyvSb4O3.js} +40 -3
- package/build/server/chunks/chunks/{git-probe.js-DoWgYcXG.js → git-probe.js-dOJ4Z5Hb.js} +3 -3
- package/build/server/chunks/chunks/{internal.js-L3lTruRr.js → internal.js-CiAyaHU8.js} +2 -2
- package/build/server/chunks/chunks/{state.js-YbeUlJBc.js → state.js-DDFKGUCM.js} +2 -2
- package/build/server/chunks/chunks/{watcher.js-ZBFDj7d0.js → watcher.js-bCH9-ZiR.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-C12q5Acf.js → _server.ts.js-CqAXkMAm.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-CdMcLL0n.js → _server.ts.js-FBi0PplP.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/dsh/directory/{_server.ts.js-BJMlDa_R.js → _server.ts.js-BAfRDeE_.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/pick-directory/{_server.ts.js-C5xgupWg.js → _server.ts.js-N21TnqYh.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/presets/{_server.ts.js-DG0cxf9Y.js → _server.ts.js-C5ckDTov.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/{_server.ts.js-CjIzvUMY.js → _server.ts.js-CEPz4kVZ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/cancel/{_server.ts.js-DqvT86T0.js → _server.ts.js-CUB5TKnW.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/catalog/{_server.ts.js-BzBZnI3P.js → _server.ts.js-BfDAa0Vb.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/changes/_server.ts.js-QiLS5yAj.js +142 -0
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/command/{_server.ts.js-DHWvuiKn.js → _server.ts.js-C5kJrRx-.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-ARtFWpnE.js → _server.ts.js-CYZUxBob.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/fork/{_server.ts.js-rH3qhAct.js → _server.ts.js-y5sqH_UC.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/goal/{_server.ts.js-D_fm0cJY.js → _server.ts.js-BoYIpj-f.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-BqpeQTZq.js → _server.ts.js-DGGCIii3.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/models/{_server.ts.js-CHKAkZEq.js → _server.ts.js-B8bmQCwT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/permission/{_server.ts.js-DmjKvFqc.js → _server.ts.js-BBexDstc.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/prompt/{_server.ts.js-N1651orW.js → _server.ts.js-fd9StFXw.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/rename/{_server.ts.js-w1dYBirS.js → _server.ts.js-98HaDusY.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/respond/{_server.ts.js-Bwb62OTc.js → _server.ts.js-DN9APffn.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/select-model/{_server.ts.js-D2BCSITG.js → _server.ts.js-CeROEmUY.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/sessions/{_server.ts.js-t_DpnCyJ.js → _server.ts.js-DKHmiqIs.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/{_server.ts.js-BddU8qpx.js → _server.ts.js-S6XZDJmC.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-file-bytes/{_server.ts.js-Di_7wqCI.js → _server.ts.js-Boxbod_L.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspace-tree/{_server.ts.js-DPz9GQJJ.js → _server.ts.js-CA4PUERZ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/{_server.ts.js-C1jO88hY.js → _server.ts.js-BObM3Axz.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/delete/{_server.ts.js-C1akVoP3.js → _server.ts.js-CA34p4GV.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/rename/{_server.ts.js-C4RkBuGZ.js → _server.ts.js-DPoRM_7u.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/workspace/file-write/{_server.ts.js-D1gyOGEM.js → _server.ts.js-BIOHsnn2.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-events/{_server.ts.js-D5XlAzdL.js → _server.ts.js-Ci5XitWP.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/{_server.ts.js-BKJbQR9z.js → _server.ts.js-p-potXo3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-map/{_server.ts.js-CehoxXA_.js → _server.ts.js-DYFs7MEO.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/git-status/{_server.ts.js-DMhaSADa.js → _server.ts.js-BB2bcMwC.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/workspace/write-gate/{_server.ts.js-BQRvPo9G.js → _server.ts.js-DFnO84k1.js} +4 -4
- package/build/server/chunks/entries/pages/{_error.svelte.js-CYWDZLI7.js → _error.svelte.js-CfEcN0a5.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.server.ts.js-C3_-EdaG.js → _page.server.ts.js-Cqf2xfOc.js} +3 -3
- package/build/server/chunks/entries/pages/{_page.svelte.js-D-nbMlOD.js → _page.svelte.js-5qYAGNkZ.js} +572 -86
- package/build/server/chunks/{handler-Dtl9b654.js → handler-C29GDWFA.js} +3 -3
- package/build/server/chunks/{index.js-Dm6-G-_6.js → index.js-CzsX25WI.js} +2 -2
- package/build/server/chunks/{manifest.js-CqSIh_aQ.js → manifest.js-BKlTd1KI.js} +44 -37
- package/build/server/chunks/nodes/{0.js-CWZQcgo6.js → 0.js-D1vjUdTF.js} +3 -3
- package/build/server/chunks/nodes/1.js-Dv0mcT1C.js +9 -0
- package/build/server/chunks/nodes/{2.js-BUXLNNKI.js → 2.js-043RuGl0.js} +7 -7
- package/package.json +3 -2
- package/build/client/_app/immutable/assets/0.BU1D48E8.css +0 -2
- package/build/client/_app/immutable/assets/2.PKDcj4V6.css +0 -1
- package/build/client/_app/immutable/chunks/C6qkDvEg.js +0 -2
- package/build/client/_app/immutable/chunks/CCeZTRyg.js +0 -1
- package/build/client/_app/immutable/chunks/CM2YlsBZ.js +0 -1
- package/build/client/_app/immutable/chunks/CWCyOfZL.js +0 -1
- package/build/client/_app/immutable/chunks/DB0_Ut01.js +0 -1
- package/build/client/_app/immutable/chunks/DFZg0vdm.js +0 -8
- package/build/client/_app/immutable/chunks/DKLs56Hm.js +0 -1
- package/build/client/_app/immutable/chunks/E-1cXrsM.js +0 -1
- package/build/client/_app/immutable/chunks/N_z8g1dA.js +0 -1
- package/build/client/_app/immutable/entry/app.CivPp_F8.js +0 -2
- package/build/client/_app/immutable/entry/start.BS5ewb9B.js +0 -1
- package/build/client/_app/immutable/nodes/0.ze9O6tWo.js +0 -1
- package/build/client/_app/immutable/nodes/1.DLvBQOBf.js +0 -1
- package/build/client/_app/immutable/nodes/2.BCq5Ttag.js +0 -174
- package/build/server/chunks/nodes/1.js-BXDgJSsl.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1790337423419"}
|
package/build/handler.js
CHANGED
|
@@ -2,9 +2,9 @@ import './shims.js';
|
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import 'node:process';
|
|
5
|
-
export { h as handler } from './server/chunks/handler-
|
|
6
|
-
import './server/chunks/index.js-
|
|
7
|
-
import './server/chunks/manifest.js-
|
|
5
|
+
export { h as handler } from './server/chunks/handler-C29GDWFA.js';
|
|
6
|
+
import './server/chunks/index.js-CzsX25WI.js';
|
|
7
|
+
import './server/chunks/manifest.js-BKlTd1KI.js';
|
|
8
8
|
import './env.js';
|
|
9
9
|
import 'node:buffer';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -16,7 +16,7 @@ import './server/chunks/chunks/shared.js-HQ0rfhm4.js';
|
|
|
16
16
|
import './server/chunks/chunks/uneval.js-BJ9Qq2SF.js';
|
|
17
17
|
import './server/chunks/chunks/utils.js-CAdNO8Tu.js';
|
|
18
18
|
import 'node:url';
|
|
19
|
-
import './server/chunks/chunks/internal.js-
|
|
19
|
+
import './server/chunks/chunks/internal.js-CiAyaHU8.js';
|
|
20
20
|
import './server/chunks/chunks/server.js-11-pxAWV.js';
|
|
21
21
|
import './server/chunks/chunks/internal2.js-BcS47nI-.js';
|
|
22
22
|
import './server/chunks/chunks/exports.js-DH_tjtdv.js';
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
2
|
import fs__default from 'node:fs';
|
|
3
3
|
import process from 'node:process';
|
|
4
|
-
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-
|
|
4
|
+
import { p as polka, h as handler, f as format_listening_address } from './server/chunks/handler-C29GDWFA.js';
|
|
5
5
|
import { env, timeout_env } from './env.js';
|
|
6
6
|
import { rm } from 'node:fs/promises';
|
|
7
7
|
import './shims.js';
|
|
@@ -14,12 +14,12 @@ import 'node:stream';
|
|
|
14
14
|
import './server/chunks/chunks/shared.js-HQ0rfhm4.js';
|
|
15
15
|
import './server/chunks/chunks/uneval.js-BJ9Qq2SF.js';
|
|
16
16
|
import './server/chunks/chunks/utils.js-CAdNO8Tu.js';
|
|
17
|
-
import './server/chunks/index.js-
|
|
18
|
-
import './server/chunks/chunks/internal.js-
|
|
17
|
+
import './server/chunks/index.js-CzsX25WI.js';
|
|
18
|
+
import './server/chunks/chunks/internal.js-CiAyaHU8.js';
|
|
19
19
|
import './server/chunks/chunks/server.js-11-pxAWV.js';
|
|
20
20
|
import './server/chunks/chunks/internal2.js-BcS47nI-.js';
|
|
21
21
|
import './server/chunks/chunks/exports.js-DH_tjtdv.js';
|
|
22
|
-
import './server/chunks/manifest.js-
|
|
22
|
+
import './server/chunks/manifest.js-BKlTd1KI.js';
|
|
23
23
|
import 'node:url';
|
|
24
24
|
|
|
25
25
|
const path = env('SOCKET_PATH', false);
|
package/build/server/chunks/chunks/{dsh-connection.js-BSzUs8-n.js → dsh-connection.js-Lnv7PlHw.js}
RENAMED
|
@@ -1728,6 +1728,28 @@ var DshConnection = class {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
return { accepted: true };
|
|
1730
1730
|
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Authenticated GET of one Host path (Edited-Files Card transport,
|
|
1733
|
+
* 2026-09-25 — the changes.summary route's arm; Transport Probe note).
|
|
1734
|
+
* Same cookie ladder as rpc(): mint-or-reuse, ONE 401 re-mint retry,
|
|
1735
|
+
* then the response object as-is — the caller owns status mapping.
|
|
1736
|
+
*/
|
|
1737
|
+
async fetchHostPath(path, signal) {
|
|
1738
|
+
const attempt = async () => {
|
|
1739
|
+
const cookie = await this.auth.ensureCookie();
|
|
1740
|
+
return this.fetchFn(`${this.baseUrl}${path}`, {
|
|
1741
|
+
method: "GET",
|
|
1742
|
+
headers: cookie === null ? {} : { cookie },
|
|
1743
|
+
...signal !== void 0 ? { signal } : {}
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1746
|
+
let response = await attempt();
|
|
1747
|
+
if (response.status === 401) {
|
|
1748
|
+
this.auth.invalidate();
|
|
1749
|
+
response = await attempt();
|
|
1750
|
+
}
|
|
1751
|
+
return response;
|
|
1752
|
+
}
|
|
1731
1753
|
/** One $events/result answer under the CURRENT generation's clientId. */
|
|
1732
1754
|
sendEventResult(rpcId, value) {
|
|
1733
1755
|
return this.rpc(REMOTE_EVENT_RESULT_ENDPOINT, {
|
|
@@ -2014,4 +2036,4 @@ function normalizePreset(row, overlayEnglish = true) {
|
|
|
2014
2036
|
}
|
|
2015
2037
|
|
|
2016
2038
|
export { DshRpcError as D, isPromptImageMediaType as a, buildPromptContent as b, getDshConnection as g, isSubagentRejection as i, mapRpcFailure as m, statusFor as s };
|
|
2017
|
-
//# sourceMappingURL=dsh-connection.js-
|
|
2039
|
+
//# sourceMappingURL=dsh-connection.js-Lnv7PlHw.js.map
|
|
@@ -64,7 +64,6 @@ var SILENT_TYPES = /* @__PURE__ */ new Set([
|
|
|
64
64
|
"team/message/queued",
|
|
65
65
|
"team/task",
|
|
66
66
|
"todo/write",
|
|
67
|
-
"turn/start",
|
|
68
67
|
"web/deepseek-search-llm-request"
|
|
69
68
|
]);
|
|
70
69
|
/** Stable bubble id for one assistant step (chunk merge key). */
|
|
@@ -277,7 +276,19 @@ function entryForEvent(event) {
|
|
|
277
276
|
}
|
|
278
277
|
case "turn/end": {
|
|
279
278
|
const reason = data?.reason;
|
|
280
|
-
if (reason?.kind !== "error")
|
|
279
|
+
if (reason?.kind !== "error") {
|
|
280
|
+
const turnNum = typeof data?.turn === "number" ? data.turn : 0;
|
|
281
|
+
return {
|
|
282
|
+
kind: "turn-lifecycle",
|
|
283
|
+
id: `tl:${turnNum}:end`,
|
|
284
|
+
seq: event.seq,
|
|
285
|
+
time: event.time,
|
|
286
|
+
turn: turnNum,
|
|
287
|
+
phase: "end",
|
|
288
|
+
reasonKind: readStr(reason?.kind),
|
|
289
|
+
...reason?.kind === "aborted" ? { abortKind: readStr(reason.reason?.kind) } : {}
|
|
290
|
+
};
|
|
291
|
+
}
|
|
281
292
|
const message = readStr(reason.error?.message) ?? "turn ended with an error";
|
|
282
293
|
return {
|
|
283
294
|
kind: "turn-error",
|
|
@@ -288,6 +299,17 @@ function entryForEvent(event) {
|
|
|
288
299
|
...readStr(reason.error?.code) !== void 0 ? { code: readStr(reason.error?.code) } : {}
|
|
289
300
|
};
|
|
290
301
|
}
|
|
302
|
+
case "turn/start": {
|
|
303
|
+
const turnNum = typeof data?.turn === "number" ? data.turn : 0;
|
|
304
|
+
return {
|
|
305
|
+
kind: "turn-lifecycle",
|
|
306
|
+
id: `tl:${turnNum}:start`,
|
|
307
|
+
seq: event.seq,
|
|
308
|
+
time: event.time,
|
|
309
|
+
turn: turnNum,
|
|
310
|
+
phase: "start"
|
|
311
|
+
};
|
|
312
|
+
}
|
|
291
313
|
case "tool/ptc-dispatch-start":
|
|
292
314
|
case "tool/ptc-dispatch": {
|
|
293
315
|
const parentCallId = readStr(data?.parentCallId);
|
|
@@ -414,6 +436,17 @@ function entryForEvent(event) {
|
|
|
414
436
|
...readViewFrom(event.view) !== void 0 ? { readView: readViewFrom(event.view) } : {}
|
|
415
437
|
};
|
|
416
438
|
}
|
|
439
|
+
case "workspace/changes": {
|
|
440
|
+
const turn = data?.turn;
|
|
441
|
+
const numeric = typeof turn === "number" && Number.isFinite(turn);
|
|
442
|
+
return {
|
|
443
|
+
kind: "files-edited",
|
|
444
|
+
id: numeric ? `fe:${turn}` : "fe:unknown",
|
|
445
|
+
seq: event.seq,
|
|
446
|
+
time: event.time,
|
|
447
|
+
turn: numeric ? turn : 0
|
|
448
|
+
};
|
|
449
|
+
}
|
|
417
450
|
default: return {
|
|
418
451
|
kind: "unknown-event",
|
|
419
452
|
id: `ev:${event.seq}`,
|
|
@@ -546,6 +579,10 @@ function mergeEntries(existing, incoming) {
|
|
|
546
579
|
}
|
|
547
580
|
continue;
|
|
548
581
|
}
|
|
582
|
+
if (candidate.kind === "files-edited" && entry.kind === "files-edited") {
|
|
583
|
+
if (entry.seq > candidate.seq) merged[at] = { ...entry };
|
|
584
|
+
continue;
|
|
585
|
+
}
|
|
549
586
|
}
|
|
550
587
|
const calls = /* @__PURE__ */ new Map();
|
|
551
588
|
for (const e of merged) if (e.kind === "tool-call") calls.set(e.callId, e);
|
|
@@ -705,4 +742,4 @@ function historyToEvents(history) {
|
|
|
705
742
|
}
|
|
706
743
|
|
|
707
744
|
export { entryForEvent as a, collapseSystemPromptEntries as c, eventsToEntries as e, historyToEvents as h, mergeEntries as m, truncate as t };
|
|
708
|
-
//# sourceMappingURL=dsh-events.js-
|
|
745
|
+
//# sourceMappingURL=dsh-events.js-CyvSb4O3.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDshConnection } from './dsh-connection.js-
|
|
2
|
-
import { h as historyToEvents } from './dsh-events.js-
|
|
1
|
+
import { g as getDshConnection } from './dsh-connection.js-Lnv7PlHw.js';
|
|
2
|
+
import { h as historyToEvents } from './dsh-events.js-CyvSb4O3.js';
|
|
3
3
|
import { a as foldKnobs, f as filterKnobEvents, F as FULL_ACCESS_PRESET } from './permission-state.js-B7UpAHBv.js';
|
|
4
4
|
import { promises } from 'node:fs';
|
|
5
5
|
import * as nodePath from 'node:path';
|
|
@@ -216,4 +216,4 @@ async function gitStatus(repo) {
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
export { GitUnavailableError as G, gitStatus as a, gitFileHead as b, detectRepos as d, gitGateEnabled as g, isInsideRoot as i, parsePorcelainStatus as p, resolveEnclosingRepo as r };
|
|
219
|
-
//# sourceMappingURL=git-probe.js-
|
|
219
|
+
//# sourceMappingURL=git-probe.js-dOJ4Z5Hb.js.map
|
|
@@ -722,7 +722,7 @@ var options = {
|
|
|
722
722
|
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"%paraglide.locale%\">\n <head>\n <meta charset=\"utf-8\" />\n <link rel=\"icon\" href=\"" + assets + "/favicon.svg\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n " + head + "\n </head>\n <body data-sveltekit-preload-data=\"tap\">\n <div style=\"display: contents\">" + body + "</div>\n </body>\n</html>\n",
|
|
723
723
|
error: error_template_default
|
|
724
724
|
},
|
|
725
|
-
version_hash: "
|
|
725
|
+
version_hash: "1jgn7x0"
|
|
726
726
|
};
|
|
727
727
|
async function get_hooks() {
|
|
728
728
|
let handle;
|
|
@@ -745,4 +745,4 @@ async function get_hooks() {
|
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
export { __commonJSMin as _, set_public_env as a, set_read_implementation as b, onDestroy as c, __exportAll as d, get_hooks as g, index_server_exports as i, options as o, public_env as p, read_implementation as r, set_private_env as s };
|
|
748
|
-
//# sourceMappingURL=internal.js-
|
|
748
|
+
//# sourceMappingURL=internal.js-CiAyaHU8.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as index_server_exports } from './internal.js-
|
|
1
|
+
import { i as index_server_exports } from './internal.js-CiAyaHU8.js';
|
|
2
2
|
import './shared.js-HQ0rfhm4.js';
|
|
3
3
|
import './exports.js-DH_tjtdv.js';
|
|
4
4
|
import { U as snapshot, J as getContext, G as noop } from './server.js-11-pxAWV.js';
|
|
@@ -303,4 +303,4 @@ var page = {
|
|
|
303
303
|
};
|
|
304
304
|
|
|
305
305
|
export { afterNavigate as a, backtoworkspace2 as b, replaceState as c, dshunreachable1 as d, currentLocale as e, page as p, reapednote1 as r, sessionnotfound2 as s, t, unexpectederror1 as u };
|
|
306
|
-
//# sourceMappingURL=state.js-
|
|
306
|
+
//# sourceMappingURL=state.js-DDFKGUCM.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as readA2aConfig } from './insight-config.js-XUD5BN0g.js';
|
|
2
2
|
import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-BylhmazO.js';
|
|
3
|
-
import { g as getDshConnection } from './dsh-connection.js-
|
|
4
|
-
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-
|
|
3
|
+
import { g as getDshConnection } from './dsh-connection.js-Lnv7PlHw.js';
|
|
4
|
+
import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-CyvSb4O3.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-bCH9-ZiR.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as listRecent } from '../../../../chunks/db.js-BylhmazO.js';
|
|
2
|
-
import { e as ensureStarted } from '../../../../chunks/watcher.js-
|
|
2
|
+
import { e as ensureStarted } from '../../../../chunks/watcher.js-bCH9-ZiR.js';
|
|
3
3
|
import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
5
5
|
import '../../../../chunks/config.js-B0w1-uCA.js';
|
|
@@ -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-Lnv7PlHw.js';
|
|
14
|
+
import '../../../../chunks/dsh-events.js-CyvSb4O3.js';
|
|
15
15
|
import '../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
16
16
|
import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
17
17
|
|
|
@@ -60,4 +60,4 @@ var GET = ({ url }) => {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export { GET };
|
|
63
|
-
//# sourceMappingURL=_server.ts.js-
|
|
63
|
+
//# sourceMappingURL=_server.ts.js-CqAXkMAm.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
2
|
-
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-
|
|
3
|
-
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-
|
|
2
|
+
import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
3
|
+
import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-bCH9-ZiR.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-B0w1-uCA.js';
|
|
@@ -12,7 +12,7 @@ import 'yaml';
|
|
|
12
12
|
import '../../../../../chunks/settings-home2.js-f75-B6RI.js';
|
|
13
13
|
import '../../../../../chunks/db.js-BylhmazO.js';
|
|
14
14
|
import 'node:sqlite';
|
|
15
|
-
import '../../../../../chunks/dsh-events.js-
|
|
15
|
+
import '../../../../../chunks/dsh-events.js-CyvSb4O3.js';
|
|
16
16
|
import '../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
17
17
|
import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
18
18
|
|
|
@@ -98,4 +98,4 @@ var POST = async ({ request }) => {
|
|
|
98
98
|
};
|
|
99
99
|
|
|
100
100
|
export { POST };
|
|
101
|
-
//# sourceMappingURL=_server.ts.js-
|
|
101
|
+
//# sourceMappingURL=_server.ts.js-FBi0PplP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -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-BAfRDeE_.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -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-N21TnqYh.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -32,4 +32,4 @@ var GET = async () => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { GET };
|
|
35
|
-
//# sourceMappingURL=_server.ts.js-
|
|
35
|
+
//# sourceMappingURL=_server.ts.js-C5ckDTov.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -43,4 +43,4 @@ var GET = async ({ params, url }) => {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
export { GET };
|
|
46
|
-
//# sourceMappingURL=_server.ts.js-
|
|
46
|
+
//# sourceMappingURL=_server.ts.js-CEPz4kVZ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -32,4 +32,4 @@ var POST = async ({ params }) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export { POST };
|
|
35
|
-
//# sourceMappingURL=_server.ts.js-
|
|
35
|
+
//# sourceMappingURL=_server.ts.js-CUB5TKnW.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -41,4 +41,4 @@ var GET = async ({ params }) => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export { GET };
|
|
44
|
-
//# sourceMappingURL=_server.ts.js-
|
|
44
|
+
//# sourceMappingURL=_server.ts.js-BfDAa0Vb.js.map
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { g as getDshConnection } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
2
|
+
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
|
+
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
|
+
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
5
|
+
import '../../../../../../../chunks/settings-document.js-BRTO59Al.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 '../../../../../../../chunks/shared.js-HQ0rfhm4.js';
|
|
12
|
+
import '../../../../../../../chunks/uneval.js-BJ9Qq2SF.js';
|
|
13
|
+
|
|
14
|
+
//#region src/routes/api/dsh/session/[sessionId]/changes/+server.ts
|
|
15
|
+
/**
|
|
16
|
+
* api-dsh — GET /api/dsh/session/[sessionId]/changes (Edited-Files Card,
|
|
17
|
+
* 2026-09-25 — ADR The Edited-Files Card D2; Transport Probe note names the
|
|
18
|
+
* arm: the Host's authenticated /api/changes.summary route — the SDK does
|
|
19
|
+
* not publish workspaceChanges.summary and the service carries no @Remote).
|
|
20
|
+
*
|
|
21
|
+
* The wire event carried only { turn }; the card asks THIS route for the
|
|
22
|
+
* summary the Host keeps while its Session lives. Status mapping:
|
|
23
|
+
* 400 bad-params — sessionId empty, or seq/turn not positive integers
|
|
24
|
+
* 410 unavailable — the Host answered 404 (Session disposed or never
|
|
25
|
+
* recorded): the card's degraded-strip signal
|
|
26
|
+
* 502 upstream — transport failure or a body that fails validation
|
|
27
|
+
* The response body mirrors the Host's served shape — Pick<WorkspaceChangesSummary,
|
|
28
|
+
* 'turn' | 'files' | 'total' | 'added' | 'deleted'> (ui-deliverables changes.ts:30):
|
|
29
|
+
* cwd and snapshot stay Host-side by the Host's own contract.
|
|
30
|
+
*/
|
|
31
|
+
function isRecord(value) {
|
|
32
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
33
|
+
}
|
|
34
|
+
function isSafeNonNegative(value) {
|
|
35
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
36
|
+
}
|
|
37
|
+
/** Structural validation at the wire boundary — the isChangesSummary face
|
|
38
|
+
* (ui-deliverables changes.ts:65-71), server-side. Module-local: SvelteKit
|
|
39
|
+
* +server.ts permits only handler exports (the 2026-09-25 500 bug). */
|
|
40
|
+
function isChangesSummary(value) {
|
|
41
|
+
if (!isRecord(value)) return false;
|
|
42
|
+
const { turn, files, total, added, deleted } = value;
|
|
43
|
+
if (!isSafeNonNegative(turn) || !isSafeNonNegative(total) || !isSafeNonNegative(added) || !isSafeNonNegative(deleted)) return false;
|
|
44
|
+
if (!Array.isArray(files)) return false;
|
|
45
|
+
return files.every((f) => {
|
|
46
|
+
if (!isRecord(f)) return false;
|
|
47
|
+
const { path, display, added: a, deleted: d, binary, oversized } = f;
|
|
48
|
+
if (typeof path !== "string" || path.length === 0) return false;
|
|
49
|
+
if (typeof display !== "string" || display.length === 0) return false;
|
|
50
|
+
if (!isSafeNonNegative(a) || !isSafeNonNegative(d)) return false;
|
|
51
|
+
if (binary !== void 0 && binary !== true) return false;
|
|
52
|
+
if (oversized !== void 0 && oversized !== true) return false;
|
|
53
|
+
return true;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
var GET = async ({ params, url }) => {
|
|
57
|
+
const sessionId = params.sessionId;
|
|
58
|
+
const seq = Number(url.searchParams.get("seq"));
|
|
59
|
+
const turn = Number(url.searchParams.get("turn"));
|
|
60
|
+
const indexParam = url.searchParams.get("index");
|
|
61
|
+
const index = indexParam === null ? null : Number(indexParam);
|
|
62
|
+
if (indexParam !== null && (!Number.isSafeInteger(index) || index < 0)) return json({
|
|
63
|
+
ok: false,
|
|
64
|
+
error: {
|
|
65
|
+
code: "bad-params",
|
|
66
|
+
message: "index must be a non-negative integer"
|
|
67
|
+
}
|
|
68
|
+
}, { status: 400 });
|
|
69
|
+
if (sessionId.length === 0 || !Number.isSafeInteger(seq) || seq < 1 || !Number.isSafeInteger(turn) || turn < 1) return json({
|
|
70
|
+
ok: false,
|
|
71
|
+
error: {
|
|
72
|
+
code: "bad-params",
|
|
73
|
+
message: "sessionId is required; seq and turn must be positive integers"
|
|
74
|
+
}
|
|
75
|
+
}, { status: 400 });
|
|
76
|
+
let response;
|
|
77
|
+
try {
|
|
78
|
+
const hostPath = index === null ? `/api/changes.summary?sessionId=${encodeURIComponent(sessionId)}&seq=${seq}` : `/api/changes.diff?sessionId=${encodeURIComponent(sessionId)}&seq=${seq}&index=${index}`;
|
|
79
|
+
response = await getDshConnection().fetchHostPath(hostPath);
|
|
80
|
+
} catch {
|
|
81
|
+
return json({
|
|
82
|
+
ok: false,
|
|
83
|
+
error: {
|
|
84
|
+
code: "upstream",
|
|
85
|
+
message: "changes summary transport failed"
|
|
86
|
+
}
|
|
87
|
+
}, { status: 502 });
|
|
88
|
+
}
|
|
89
|
+
if (response.status === 404) return json({
|
|
90
|
+
ok: false,
|
|
91
|
+
error: {
|
|
92
|
+
code: "unavailable",
|
|
93
|
+
message: "the summary is no longer available"
|
|
94
|
+
}
|
|
95
|
+
}, { status: 410 });
|
|
96
|
+
if (!response.ok) return json({
|
|
97
|
+
ok: false,
|
|
98
|
+
error: {
|
|
99
|
+
code: "upstream",
|
|
100
|
+
message: `changes summary HTTP ${response.status}`
|
|
101
|
+
}
|
|
102
|
+
}, { status: 502 });
|
|
103
|
+
let body;
|
|
104
|
+
try {
|
|
105
|
+
body = await response.json();
|
|
106
|
+
} catch {
|
|
107
|
+
return json({
|
|
108
|
+
ok: false,
|
|
109
|
+
error: {
|
|
110
|
+
code: "upstream",
|
|
111
|
+
message: "changes summary is not valid JSON"
|
|
112
|
+
}
|
|
113
|
+
}, { status: 502 });
|
|
114
|
+
}
|
|
115
|
+
if (index !== null) {
|
|
116
|
+
if (!isRecord(body) || body.kind !== "text" && body.kind !== "binary" && body.kind !== "oversized") return json({
|
|
117
|
+
ok: false,
|
|
118
|
+
error: {
|
|
119
|
+
code: "upstream",
|
|
120
|
+
message: "changes diff failed validation"
|
|
121
|
+
}
|
|
122
|
+
}, { status: 502 });
|
|
123
|
+
return json({
|
|
124
|
+
ok: true,
|
|
125
|
+
diff: body
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (!isChangesSummary(body)) return json({
|
|
129
|
+
ok: false,
|
|
130
|
+
error: {
|
|
131
|
+
code: "upstream",
|
|
132
|
+
message: "changes summary failed validation"
|
|
133
|
+
}
|
|
134
|
+
}, { status: 502 });
|
|
135
|
+
return json({
|
|
136
|
+
ok: true,
|
|
137
|
+
summary: body
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export { GET };
|
|
142
|
+
//# sourceMappingURL=_server.ts.js-QiLS5yAj.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -84,4 +84,4 @@ var POST = async ({ params, request }) => {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
export { POST };
|
|
87
|
-
//# sourceMappingURL=_server.ts.js-
|
|
87
|
+
//# sourceMappingURL=_server.ts.js-C5kJrRx-.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { h as historyToEvents, e as eventsToEntries, a as entryForEvent } from '../../../../../../../chunks/dsh-events.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
2
|
+
import { h as historyToEvents, e as eventsToEntries, a as entryForEvent } from '../../../../../../../chunks/dsh-events.js-CyvSb4O3.js';
|
|
3
3
|
import { f as filterKnobEvents, p as permissionFromProjection } from '../../../../../../../chunks/permission-state.js-B7UpAHBv.js';
|
|
4
4
|
import { i as imageLimitsFromProjection } from '../../../../../../../chunks/image-limits.js-CUdJ0f7r.js';
|
|
5
5
|
import { g as goalFromProjection } from '../../../../../../../chunks/goal-projection.js-0_34t60K.js';
|
|
@@ -212,4 +212,4 @@ var GET = async ({ params, url, setHeaders }) => {
|
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
export { GET };
|
|
215
|
-
//# sourceMappingURL=_server.ts.js-
|
|
215
|
+
//# sourceMappingURL=_server.ts.js-CYZUxBob.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -57,4 +57,4 @@ var POST = async ({ params, request }) => {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export { POST };
|
|
60
|
-
//# sourceMappingURL=_server.ts.js-
|
|
60
|
+
//# sourceMappingURL=_server.ts.js-y5sqH_UC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DshRpcError, s as statusFor, m as mapRpcFailure, g as getDshConnection } from '../../../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { D as DshRpcError, s as statusFor, m as mapRpcFailure, g as getDshConnection } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
2
2
|
import { g as goalFromProjection } from '../../../../../../../chunks/goal-projection.js-0_34t60K.js';
|
|
3
3
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
@@ -137,4 +137,4 @@ var POST = async ({ params, request }) => {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
export { POST };
|
|
140
|
-
//# sourceMappingURL=_server.ts.js-
|
|
140
|
+
//# sourceMappingURL=_server.ts.js-BoYIpj-f.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-
|
|
2
|
-
import { h as historyToEvents, e as eventsToEntries } from '../../../../../../../chunks/dsh-events.js-
|
|
1
|
+
import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
2
|
+
import { h as historyToEvents, e as eventsToEntries } from '../../../../../../../chunks/dsh-events.js-CyvSb4O3.js';
|
|
3
3
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
4
4
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
5
5
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -54,4 +54,4 @@ var GET = async ({ params, url, setHeaders }) => {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
export { GET };
|
|
57
|
-
//# sourceMappingURL=_server.ts.js-
|
|
57
|
+
//# sourceMappingURL=_server.ts.js-DGGCIii3.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -34,4 +34,4 @@ var GET = async ({ params, setHeaders }) => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export { GET };
|
|
37
|
-
//# sourceMappingURL=_server.ts.js-
|
|
37
|
+
//# sourceMappingURL=_server.ts.js-B8bmQCwT.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -91,4 +91,4 @@ var POST = async ({ params, request }) => {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export { POST };
|
|
94
|
-
//# sourceMappingURL=_server.ts.js-
|
|
94
|
+
//# sourceMappingURL=_server.ts.js-BBexDstc.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as isPromptImageMediaType, g as getDshConnection, b as buildPromptContent, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-
|
|
1
|
+
import { a as isPromptImageMediaType, g as getDshConnection, b as buildPromptContent, s as statusFor, m as mapRpcFailure } from '../../../../../../../chunks/dsh-connection.js-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -93,4 +93,4 @@ var POST = async ({ params, request }) => {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export { POST };
|
|
96
|
-
//# sourceMappingURL=_server.ts.js-
|
|
96
|
+
//# sourceMappingURL=_server.ts.js-fd9StFXw.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -56,4 +56,4 @@ var POST = async ({ params, request }) => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
export { POST };
|
|
59
|
-
//# sourceMappingURL=_server.ts.js-
|
|
59
|
+
//# sourceMappingURL=_server.ts.js-98HaDusY.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
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-Lnv7PlHw.js';
|
|
2
2
|
import { j as json } from '../../../../../../../chunks/utils.js-CAdNO8Tu.js';
|
|
3
3
|
import '../../../../../../../chunks/config.js-B0w1-uCA.js';
|
|
4
4
|
import '../../../../../../../chunks/insight-config.js-XUD5BN0g.js';
|
|
@@ -68,4 +68,4 @@ var POST = async ({ params, request }) => {
|
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
export { POST };
|
|
71
|
-
//# sourceMappingURL=_server.ts.js-
|
|
71
|
+
//# sourceMappingURL=_server.ts.js-DN9APffn.js.map
|