@deepseek-insight/dsi 0.5.8 → 0.5.10

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.
Files changed (181) hide show
  1. package/README.md +27 -60
  2. package/bin/dsi.mjs +108 -8
  3. package/build/client/_app/immutable/assets/0.B-x78bUH.css +2 -0
  4. package/build/client/_app/immutable/assets/2.DHY7FpOZ.css +1 -0
  5. package/build/client/_app/immutable/chunks/{CJ_zvTBg.js → 1KjP5PPV.js} +1 -1
  6. package/build/client/_app/immutable/chunks/{BAZKJuQw.js → 4BUyCMHs.js} +1 -1
  7. package/build/client/_app/immutable/chunks/{qEGLx2Wc.js → 5BuKkouu.js} +1 -1
  8. package/build/client/_app/immutable/chunks/{Cj-Zm41R.js → 5W1abxrJ.js} +1 -1
  9. package/build/client/_app/immutable/chunks/{DlQrSOw4.js → 7Qwz4TD3.js} +1 -1
  10. package/build/client/_app/immutable/chunks/{2irkVCIh.js → B3Lta-Nn.js} +1 -1
  11. package/build/client/_app/immutable/chunks/{Dr0pcX_F.js → B5bIZjCh.js} +1 -1
  12. package/build/client/_app/immutable/chunks/{CZXl7qUb.js → BDws8KMN.js} +1 -1
  13. package/build/client/_app/immutable/chunks/{CmbEK4CY.js → BFYiBR8b.js} +1 -1
  14. package/build/client/_app/immutable/chunks/{BI4pMaIG.js → BK9wQfnJ.js} +1 -1
  15. package/build/client/_app/immutable/chunks/{Beo7Z46k.js → BKMUCRSB.js} +1 -1
  16. package/build/client/_app/immutable/chunks/BLOKPG58.js +1 -0
  17. package/build/client/_app/immutable/chunks/{D16vkywU.js → BNCXVe_Y.js} +1 -1
  18. package/build/client/_app/immutable/chunks/{DtBGId5S.js → BO15_-NJ.js} +1 -1
  19. package/build/client/_app/immutable/chunks/{CfZ7uSQe.js → BOGXkyy3.js} +1 -1
  20. package/build/client/_app/immutable/chunks/{BhNEBkk_.js → BP1EDRMh.js} +1 -1
  21. package/build/client/_app/immutable/chunks/{Bn9NRi0R.js → BQFPW2iU.js} +1 -1
  22. package/build/client/_app/immutable/chunks/{D7fX-3xy.js → BS84xqUl.js} +1 -1
  23. package/build/client/_app/immutable/chunks/{DVXVVWkX.js → BhMqa9V0.js} +1 -1
  24. package/build/client/_app/immutable/chunks/{OmE6SGvs.js → BnEcDyty.js} +1 -1
  25. package/build/client/_app/immutable/chunks/{D4gq_dik.js → BoJ5ww2X.js} +1 -1
  26. package/build/client/_app/immutable/chunks/{BnF5Jm-h.js → BtWgux0k.js} +1 -1
  27. package/build/client/_app/immutable/chunks/BuVjHIij.js +1 -0
  28. package/build/client/_app/immutable/chunks/{CA_WNCsl.js → C7xeaPF2.js} +1 -1
  29. package/build/client/_app/immutable/chunks/{GBaNblmo.js → CA7VtFsM.js} +1 -1
  30. package/build/client/_app/immutable/chunks/{9TvT6fta.js → CIZRvqf3.js} +1 -1
  31. package/build/client/_app/immutable/chunks/{DuM1hSCa.js → CKk3hDrH.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CM2YlsBZ.js +1 -0
  33. package/build/client/_app/immutable/chunks/CNIDhcUc.js +2 -0
  34. package/build/client/_app/immutable/chunks/{DzVMo6mB.js → CQNMOuVz.js} +1 -1
  35. package/build/client/_app/immutable/chunks/{wFIeY1Cf.js → CVJBb63S.js} +1 -1
  36. package/build/client/_app/immutable/chunks/CWCyOfZL.js +1 -0
  37. package/build/client/_app/immutable/chunks/{Dg_UWGX7.js → CWJVj28H.js} +1 -1
  38. package/build/client/_app/immutable/chunks/{sIEmSkn6.js → CWRt23V2.js} +1 -1
  39. package/build/client/_app/immutable/chunks/{DWDfcLfy.js → CXDjw6BI.js} +1 -1
  40. package/build/client/_app/immutable/chunks/{BBKpNcUe.js → CbmGLQlS.js} +1 -1
  41. package/build/client/_app/immutable/chunks/{raVGrKQy.js → CfKp2keY.js} +4 -4
  42. package/build/client/_app/immutable/chunks/{LWre5GKl.js → CfPrYC2A.js} +1 -1
  43. package/build/client/_app/immutable/chunks/{zpcgJjUg.js → CfqeI44h.js} +1 -1
  44. package/build/client/_app/immutable/chunks/{BJL7RCQE.js → CjMviqoD.js} +1 -1
  45. package/build/client/_app/immutable/chunks/Ct7xT-0E.js +1 -0
  46. package/build/client/_app/immutable/chunks/{DGarjVZC.js → CwpTIVX4.js} +1 -1
  47. package/build/client/_app/immutable/chunks/{C1JXY9b5.js → D-p2gaJO.js} +1 -1
  48. package/build/client/_app/immutable/chunks/{CWVpRRWx.js → D2Punuji.js} +1 -1
  49. package/build/client/_app/immutable/chunks/{CWKM3f5q.js → D9XozwcM.js} +1 -1
  50. package/build/client/_app/immutable/chunks/DChUx8Ds.js +1 -0
  51. package/build/client/_app/immutable/chunks/DFZg0vdm.js +8 -0
  52. package/build/client/_app/immutable/chunks/{BOfSXrr7.js → DHChdxxK.js} +1 -1
  53. package/build/client/_app/immutable/chunks/DKLs56Hm.js +1 -0
  54. package/build/client/_app/immutable/chunks/{D0I62FkS.js → DTVIMflS.js} +1 -1
  55. package/build/client/_app/immutable/chunks/{D8-5qLJg.js → DVsJyQaB.js} +1 -1
  56. package/build/client/_app/immutable/chunks/{Btk-1DaX.js → D_4vyw9k.js} +1 -1
  57. package/build/client/_app/immutable/chunks/{CPgSxomx.js → Da0rl5Rb.js} +1 -1
  58. package/build/client/_app/immutable/chunks/{DPKol_4Z.js → DfxnqpU2.js} +1 -1
  59. package/build/client/_app/immutable/chunks/DnA33f7e.js +3 -0
  60. package/build/client/_app/immutable/chunks/{6GKQw8m6.js → DrLWFO8Z.js} +1 -1
  61. package/build/client/_app/immutable/chunks/{DITEY8D_.js → DtdNJetN.js} +1 -1
  62. package/build/client/_app/immutable/chunks/{DLOOos_8.js → Dufckt0T.js} +1 -1
  63. package/build/client/_app/immutable/chunks/{DAS1CLuE.js → DzNl4lTU.js} +1 -1
  64. package/build/client/_app/immutable/chunks/E-1cXrsM.js +1 -0
  65. package/build/client/_app/immutable/chunks/{DYqsupvX.js → FDKaBHdO.js} +1 -1
  66. package/build/client/_app/immutable/chunks/FmeCgKwk.js +1 -0
  67. package/build/client/_app/immutable/chunks/{BrTsmS-o.js → KCYBrblk.js} +5 -5
  68. package/build/client/_app/immutable/chunks/N_z8g1dA.js +1 -0
  69. package/build/client/_app/immutable/chunks/{DbcKN35_.js → NxBjh70M.js} +1 -1
  70. package/build/client/_app/immutable/chunks/{B1YSaoU7.js → T453H1uG.js} +1 -1
  71. package/build/client/_app/immutable/chunks/{DqwfDHZH.js → XM-sjL-p.js} +1 -1
  72. package/build/client/_app/immutable/chunks/{CcL1k2On.js → _OxPZn8v.js} +1 -1
  73. package/build/client/_app/immutable/chunks/{DvCMcJ3P.js → dg-Ik0Xp.js} +1 -1
  74. package/build/client/_app/immutable/chunks/{Cd6K7Y8m.js → eNqKaSDb.js} +1 -1
  75. package/build/client/_app/immutable/chunks/{mVHw7KEX.js → hFCLiR2C.js} +1 -1
  76. package/build/client/_app/immutable/chunks/{Rh9cy7xg.js → pRzztTzl.js} +1 -1
  77. package/build/client/_app/immutable/chunks/{Cb1pwoev.js → qDr7l6ST.js} +1 -1
  78. package/build/client/_app/immutable/chunks/{nDMCpPkF.js → tziyL5EM.js} +1 -1
  79. package/build/client/_app/immutable/chunks/{UNxFjlik.js → wRPKccfz.js} +1 -1
  80. package/build/client/_app/immutable/entry/app.BQBFBQPC.js +2 -0
  81. package/build/client/_app/immutable/entry/start.Cz8Ti8Dy.js +1 -0
  82. package/build/client/_app/immutable/nodes/0.Cl1RKBMO.js +1 -0
  83. package/build/client/_app/immutable/nodes/1.D8GGUpeE.js +1 -0
  84. package/build/client/_app/immutable/nodes/2.LG4wpZ6R.js +174 -0
  85. package/build/client/_app/immutable/workers/settings-css-worker-DRH2OcAG.js +93 -0
  86. package/build/client/_app/immutable/workers/settings-html-worker-DQLddT9h.js +506 -0
  87. package/build/client/_app/immutable/workers/settings-json-worker-D_Dqrls5.js +62 -0
  88. package/build/client/_app/immutable/workers/settings-ts-worker-DkYoA6bF.js +67738 -0
  89. package/build/client/_app/version.json +1 -1
  90. package/build/env.js +2 -2
  91. package/build/handler.js +9 -9
  92. package/build/index.js +9 -9
  93. package/build/server/chunks/chunks/{app-config.svelte.js-Co9jacqT.js → app-config.svelte.js-BkhuJ9bF.js} +2 -2
  94. package/build/server/chunks/chunks/{config.js-BBYogCe7.js → config.js-D2vQdial.js} +9 -2
  95. package/build/server/chunks/chunks/{db.js-C4EPtpZT.js → db.js-Cya8uRCD.js} +2 -2
  96. package/build/server/chunks/chunks/{db2.js-BYr2lzQs.js → db2.js-CPqi0hcH.js} +2 -2
  97. package/build/server/chunks/chunks/{dsh-connection.js-D52KwDXm.js → dsh-connection.js-DlwhJZaV.js} +3 -3
  98. package/build/server/chunks/chunks/{exports.js-DMiPee3x.js → exports.js-DH_tjtdv.js} +4 -4
  99. package/build/server/chunks/chunks/git-probe.js-nfLEa58f.js +219 -0
  100. package/build/server/chunks/chunks/image-limits.js-CUdJ0f7r.js +41 -0
  101. package/build/server/chunks/chunks/{insight-config.js-BAitz0O1.js → insight-config.js-BwcV3Bct.js} +5 -159
  102. package/build/server/chunks/chunks/{internal.js-CLhwhxSl.js → internal.js-Cuz_sBks.js} +6 -5
  103. package/build/server/chunks/chunks/{internal2.js-D-DAuSVh.js → internal2.js-BcS47nI-.js} +2 -2
  104. package/build/server/chunks/chunks/{image-limits.js-BMPZ55kJ.js → permission-state.js-yvwUSnug.js} +8 -41
  105. package/build/server/chunks/chunks/runtime.js-BPLc5RLR.js +854 -0
  106. package/build/server/chunks/chunks/{server.js-DoCd0fEo.js → server.js-11-pxAWV.js} +73 -2
  107. package/build/server/chunks/chunks/settings-document.js-BIwLIxnE.js +162 -0
  108. package/build/server/chunks/chunks/{shared.js-C4-Py8s_.js → shared.js-HQ0rfhm4.js} +4 -4
  109. package/build/server/chunks/chunks/{state.js-Ct3UbrbR.js → state.js-CwHEPfXH.js} +42 -10
  110. package/build/server/chunks/chunks/{utils.js-tOWCe9Wk.js → utils.js-CAdNO8Tu.js} +6 -6
  111. package/build/server/chunks/chunks/{watcher.js-CZl6B1Gm.js → watcher.js-CmpeTgh-.js} +4 -4
  112. package/build/server/chunks/entries/endpoints/api/a2a/_id_/{_server.ts.js-BiJNs-w9.js → _server.ts.js-D5AWBpBQ.js} +7 -6
  113. package/build/server/chunks/entries/endpoints/api/a2a/{_server.ts.js-DpYiPNfK.js → _server.ts.js-BZvM0qV8.js} +9 -8
  114. package/build/server/chunks/entries/endpoints/api/a2a/register/{_server.ts.js-hsrqtyai.js → _server.ts.js-CwQ8v1Gr.js} +9 -8
  115. package/build/server/chunks/entries/endpoints/api/config/{_server.ts.js-C22-pOYW.js → _server.ts.js-DRFbC3XB.js} +6 -5
  116. package/build/server/chunks/entries/endpoints/api/dsh/directory/{_server.ts.js-GB8GCnt9.js → _server.ts.js-1NUslX2J.js} +7 -6
  117. package/build/server/chunks/entries/endpoints/api/dsh/pick-directory/{_server.ts.js-1f1lp4p6.js → _server.ts.js-BaNBBHLR.js} +7 -6
  118. package/build/server/chunks/entries/endpoints/api/dsh/presets/{_server.ts.js-bQ6fWiaE.js → _server.ts.js-CW2NY_YQ.js} +7 -6
  119. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/attachment/{_server.ts.js-Dpn0vlL4.js → _server.ts.js-QA9zJsqt.js} +7 -6
  120. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/cancel/{_server.ts.js-BCKU6r0e.js → _server.ts.js-CVXZhV9H.js} +7 -6
  121. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/catalog/{_server.ts.js-B6CP7Ox-.js → _server.ts.js-Cit4Casr.js} +7 -6
  122. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/command/{_server.ts.js-CuIGYst7.js → _server.ts.js-CyjB1woG.js} +7 -6
  123. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/events/{_server.ts.js-BJk9GfEb.js → _server.ts.js-DllJ8vBI.js} +9 -7
  124. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/fork/{_server.ts.js-BRjJibko.js → _server.ts.js-BNnAmzy2.js} +7 -6
  125. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/goal/{_server.ts.js-Du0XmI7X.js → _server.ts.js-BM_jJMFG.js} +7 -6
  126. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/history/{_server.ts.js-BmxbonR_.js → _server.ts.js-qKiwUxSN.js} +7 -6
  127. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/models/{_server.ts.js-B03gh2aZ.js → _server.ts.js-CZ0zXTiV.js} +7 -6
  128. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/permission/{_server.ts.js-BO9Iy5Ki.js → _server.ts.js-3o3S3pHm.js} +7 -6
  129. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/prompt/{_server.ts.js-qr2peU-n.js → _server.ts.js-DsCnz_8J.js} +7 -6
  130. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/rename/{_server.ts.js-D4PIEynR.js → _server.ts.js-6QBc29c0.js} +7 -6
  131. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/respond/{_server.ts.js-CcBAtZWB.js → _server.ts.js-Cur_rwoa.js} +7 -6
  132. package/build/server/chunks/entries/endpoints/api/dsh/session/_sessionId_/select-model/{_server.ts.js-CE1gTwwX.js → _server.ts.js-BBRIvxEV.js} +7 -6
  133. package/build/server/chunks/entries/endpoints/api/dsh/sessions/{_server.ts.js-GugaguYO.js → _server.ts.js-HXmuGYk_.js} +7 -6
  134. package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/{_server.ts.js-D7ZCMRXo.js → _server.ts.js-BtF78EDX.js} +7 -6
  135. package/build/server/chunks/entries/endpoints/api/dsh/workspace-file-bytes/{_server.ts.js-BeLFfBNx.js → _server.ts.js-DaxAqI2r.js} +7 -6
  136. package/build/server/chunks/entries/endpoints/api/dsh/workspace-tree/{_server.ts.js-CUMrE1yT.js → _server.ts.js-Cp3JRhml.js} +7 -6
  137. package/build/server/chunks/entries/endpoints/api/dsh/workspaces/{_server.ts.js-CPTg8pND.js → _server.ts.js-DCHNOxOw.js} +7 -6
  138. package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/delete/{_server.ts.js-ikZ2NK35.js → _server.ts.js-CTCYuknC.js} +7 -6
  139. package/build/server/chunks/entries/endpoints/api/dsh/workspaces/_workspaceId_/rename/{_server.ts.js-DO-sihfI.js → _server.ts.js-B1O7CmG7.js} +7 -6
  140. package/build/server/chunks/entries/endpoints/api/prompts/_id_/{_server.ts.js-CtWIL8u1.js → _server.ts.js-CMAYot0u.js} +7 -6
  141. package/build/server/chunks/entries/endpoints/api/prompts/{_server.ts.js-CCV5F65b.js → _server.ts.js-Bk-I6Cmq.js} +7 -6
  142. package/build/server/chunks/entries/endpoints/api/prompts/use/{_server.ts.js-5zjPgL0k.js → _server.ts.js-CWdigZaS.js} +7 -6
  143. package/build/server/chunks/entries/endpoints/api/settings/{_server.ts.js-DGy6xjPE.js → _server.ts.js-BgZ3eon4.js} +6 -5
  144. package/build/server/chunks/entries/endpoints/api/workspace/file-write/_server.ts.js-CMDHM8Ts.js +109 -0
  145. package/build/server/chunks/entries/endpoints/api/workspace/git-events/_server.ts.js-DsrelTvu.js +295 -0
  146. package/build/server/chunks/entries/endpoints/api/workspace/git-file-head/_server.ts.js-Bjo1hSe3.js +87 -0
  147. package/build/server/chunks/entries/endpoints/api/workspace/git-map/_server.ts.js-kbPAnTV6.js +75 -0
  148. package/build/server/chunks/entries/endpoints/api/workspace/git-status/_server.ts.js-CGSk5JWn.js +80 -0
  149. package/build/server/chunks/entries/hooks.server.js-B7FsvqtT.js +307 -0
  150. package/build/server/chunks/entries/pages/_error.svelte.js-BcGj5uWu.js +183 -0
  151. package/build/server/chunks/entries/pages/{_page.server.ts.js-BGXwU4Ay.js → _page.server.ts.js-CNU4x-f1.js} +5 -4
  152. package/build/server/chunks/entries/pages/{_page.svelte.js-BxAPMhC5.js → _page.svelte.js-vy-eThLC.js} +5297 -392
  153. package/build/server/chunks/{handler-D4tuQz0Q.js → handler-uNq08tmU.js} +8 -8
  154. package/build/server/chunks/{index.js-Bj9XVTa8.js → index.js-vyc3xio1.js} +35 -35
  155. package/build/server/chunks/{manifest.js-zxk8d3d8.js → manifest.js-Cx3f-cHu.js} +72 -44
  156. package/build/server/chunks/nodes/{0.js-DCyDo8-C.js → 0.js-BRdcKR1I.js} +3 -3
  157. package/build/server/chunks/nodes/1.js-Dp8B4lMj.js +9 -0
  158. package/build/server/chunks/nodes/2.js-D_OTrlKi.js +26 -0
  159. package/package.json +6 -3
  160. package/build/client/_app/immutable/assets/0.DqFt8jIM.css +0 -2
  161. package/build/client/_app/immutable/assets/2.dKbN8ToR.css +0 -1
  162. package/build/client/_app/immutable/chunks/BoyJtMif.js +0 -1
  163. package/build/client/_app/immutable/chunks/Bp4uuUjI.js +0 -3
  164. package/build/client/_app/immutable/chunks/CDt9a7EA.js +0 -2
  165. package/build/client/_app/immutable/chunks/CV7-m-Xm.js +0 -1
  166. package/build/client/_app/immutable/chunks/CsHVnZCH.js +0 -1
  167. package/build/client/_app/immutable/chunks/D1qzYj9m.js +0 -1
  168. package/build/client/_app/immutable/chunks/DXeGLmed.js +0 -8
  169. package/build/client/_app/immutable/chunks/ESmLJICu.js +0 -1
  170. package/build/client/_app/immutable/chunks/PaZBB01u.js +0 -1
  171. package/build/client/_app/immutable/chunks/UmdltqoE.js +0 -1
  172. package/build/client/_app/immutable/chunks/i0VQdJtv.js +0 -1
  173. package/build/client/_app/immutable/entry/app.CQ41dis3.js +0 -2
  174. package/build/client/_app/immutable/entry/start.DjPg9fbN.js +0 -1
  175. package/build/client/_app/immutable/nodes/0.B_ZEZy7b.js +0 -1
  176. package/build/client/_app/immutable/nodes/1.-77Wm-KY.js +0 -1
  177. package/build/client/_app/immutable/nodes/2.B4TGPB8b.js +0 -69
  178. package/build/server/chunks/entries/endpoints/api/dsh/workspace-file/save/_server.ts.js-CO9iOVa4.js +0 -110
  179. package/build/server/chunks/entries/pages/_error.svelte.js-B6WyZdis.js +0 -41
  180. package/build/server/chunks/nodes/1.js-DK1imDS5.js +0 -9
  181. package/build/server/chunks/nodes/2.js-YT-YLp-v.js +0 -24
@@ -244,6 +244,77 @@ function skip_nodes(remove = true) {
244
244
  }
245
245
  }
246
246
  //#endregion
247
+ //#region node_modules/.pnpm/svelte@5.56.10/node_modules/svelte/src/internal/shared/clone.js
248
+ /** @import { Snapshot } from './types' */
249
+ /**
250
+ * In dev, we keep track of which properties could not be cloned. In prod
251
+ * we don't bother, but we keep a dummy array around so that the
252
+ * signature stays the same
253
+ * @type {string[]}
254
+ */
255
+ var empty = [];
256
+ /**
257
+ * @template T
258
+ * @param {T} value
259
+ * @param {boolean} [skip_warning]
260
+ * @param {boolean} [no_tojson]
261
+ * @returns {Snapshot<T>}
262
+ */
263
+ function snapshot(value, skip_warning = false, no_tojson = false) {
264
+ return clone(value, /* @__PURE__ */ new Map(), "", empty, null, no_tojson);
265
+ }
266
+ /**
267
+ * @template T
268
+ * @param {T} value
269
+ * @param {Map<T, Snapshot<T>>} cloned
270
+ * @param {string} path
271
+ * @param {string[]} paths
272
+ * @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call
273
+ * @param {boolean} [no_tojson]
274
+ * @returns {Snapshot<T>}
275
+ */
276
+ function clone(value, cloned, path, paths, original = null, no_tojson = false) {
277
+ if (typeof value === "object" && value !== null) {
278
+ var unwrapped = cloned.get(value);
279
+ if (unwrapped !== void 0) return unwrapped;
280
+ if (value instanceof Map) return new Map(value);
281
+ if (value instanceof Set) return new Set(value);
282
+ if (is_array(value)) {
283
+ var copy = Array(value.length);
284
+ cloned.set(value, copy);
285
+ if (original !== null) cloned.set(original, copy);
286
+ for (var i = 0; i < value.length; i += 1) {
287
+ var element = value[i];
288
+ if (i in value) copy[i] = clone(element, cloned, path, paths, null, no_tojson);
289
+ }
290
+ return copy;
291
+ }
292
+ if (get_prototype_of(value) === object_prototype) {
293
+ /** @type {Snapshot<any>} */
294
+ copy = {};
295
+ cloned.set(value, copy);
296
+ if (original !== null) cloned.set(original, copy);
297
+ for (var key of Object.keys(value)) copy[key] = clone(value[key], cloned, path, paths, null, no_tojson);
298
+ return copy;
299
+ }
300
+ if (value instanceof Date) return structuredClone(value);
301
+ if (typeof value.toJSON === "function" && !no_tojson) return clone(
302
+ /** @type {T & { toJSON(): any } } */
303
+ value.toJSON(),
304
+ cloned,
305
+ path,
306
+ paths,
307
+ value
308
+ );
309
+ }
310
+ if (value instanceof EventTarget) return value;
311
+ try {
312
+ return structuredClone(value);
313
+ } catch (e) {
314
+ return value;
315
+ }
316
+ }
317
+ //#endregion
247
318
  //#region node_modules/.pnpm/svelte@5.56.10/node_modules/svelte/src/internal/shared/context.js
248
319
  /**
249
320
  * @template T
@@ -4100,5 +4171,5 @@ function derived(fn) {
4100
4171
  };
4101
4172
  }
4102
4173
 
4103
- export { spread_props as $, push$1 as A, component_context as B, hydration_mismatch as C, pop$1 as D, run as E, noop as F, hasContext as G, HYDRATION_ERROR as H, getContext as I, getAllContexts as J, getAbortSignal as K, LEGACY_PROPS as L, createContext as M, ssr_context as N, lifecycle_function_unavailable as O, experimental_async_required as P, get_render_context as Q, hydratable_serialization_failed as R, writable as S, readable as T, head as U, escape_html as V, bind_props as W, attr as X, attr_style as Y, attr_class as Z, stringify as _, get_first_child as a, attributes as a0, clsx as a1, ensure_array_like as a2, element as a3, html as a4, props_id as a5, get_next_sibling as b, set_hydrating as c, define_property as d, set_hydrate_node as e, flushSync as f, get as g, hydration_failed as h, init_operations as i, clear_text_content as j, component_root as k, hydrate_node as l, mutable_source as m, create_text as n, boundary as o, array_from as p, is_passive_event as q, render as r, set as s, set_active_reaction as t, set_active_effect as u, active_reaction as v, active_effect as w, setContext as x, derived as y, hydrating as z };
4104
- //# sourceMappingURL=server.js-DoCd0fEo.js.map
4174
+ export { spread_props as $, hydrating as A, push$1 as B, component_context as C, hydration_mismatch as D, pop$1 as E, run as F, noop as G, HYDRATION_ERROR as H, hasContext as I, getContext as J, getAllContexts as K, LEGACY_PROPS as L, getAbortSignal as M, createContext as N, lifecycle_function_unavailable as O, experimental_async_required as P, get_render_context as Q, hydratable_serialization_failed as R, writable as S, readable as T, snapshot as U, head as V, escape_html as W, bind_props as X, attr as Y, attr_style as Z, attr_class as _, get_first_child as a, attributes as a0, clsx as a1, ensure_array_like as a2, element as a3, stringify as a4, html as a5, props_id as a6, get_next_sibling as b, set_hydrating as c, define_property as d, set_hydrate_node as e, flushSync as f, get as g, hydration_failed as h, init_operations as i, clear_text_content as j, component_root as k, hydrate_node as l, mutable_source as m, create_text as n, boundary as o, array_from as p, is_passive_event as q, render as r, set as s, set_active_reaction as t, set_active_effect as u, active_reaction as v, active_effect as w, setContext as x, derived as y, ssr_context as z };
4175
+ //# sourceMappingURL=server.js-11-pxAWV.js.map
@@ -0,0 +1,162 @@
1
+ import { i as isConfigRecord } from './config.js-D2vQdial.js';
2
+ import { existsSync, readFileSync, cpSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
3
+ import { dirname, join } from 'node:path';
4
+ import { homedir } from 'node:os';
5
+ import { stringify, parseDocument, parse } from 'yaml';
6
+
7
+ //#region src/lib/server/settings-document.ts
8
+ /**
9
+ * Settings document — raw-document access to DSI's and DSH's settings
10
+ * files for the settings editor panel (ADR The Settings Panel, 2026-09-07,
11
+ * D1/D2/D5). The YAML file is the authority: this module reads raw text,
12
+ * gates saves on a YAML parse, and writes atomically. It owns the one-time
13
+ * migration from DSI's legacy `~/.dsi/config.json` (D1): convert
14
+ * once, never touch the legacy file again, never run twice (a second
15
+ * resolve sees settings.yaml present and no-ops).
16
+ *
17
+ * Section readers (insight-config.ts) keep their own clamps and no-cache
18
+ * contract; they trigger the migration through this module and parse the
19
+ * same YAML home. The browser never learns a filesystem path — the API
20
+ * route (wave 2) is the only consumer of these functions.
21
+ */
22
+ /** `~/.dsi/settings.yaml` — DSI's settings home (post-migration). */
23
+ var DSI_SETTINGS_PATH = join(homedir(), ".dsi", "settings.yaml");
24
+ /** `~/.dsh/settings.yaml` — the harness's settings home (DSH-owned). */
25
+ var DSH_SETTINGS_PATH = join(homedir(), ".dsh", "settings.yaml");
26
+ /** Resolve the DSI settings path: explicit arg → env override → default. */
27
+ function dsiSettingsPath(configPath) {
28
+ return process.env.DSI_CONFIG_PATH ?? DSI_SETTINGS_PATH;
29
+ }
30
+ /** Resolve the DSH settings path: explicit arg → env override → default. */
31
+ function dshSettingsPath(configPath) {
32
+ return configPath ?? process.env.DSH_SETTINGS_PATH ?? DSH_SETTINGS_PATH;
33
+ }
34
+ /** Resolve a target to its settings path (unknown targets are a bug at the
35
+ * caller — the route validates before this point; this switch is total). */
36
+ function resolveSettingsPath(target, configPath) {
37
+ switch (target) {
38
+ case "dsi": return dsiSettingsPath();
39
+ case "dsh": return dshSettingsPath(configPath);
40
+ }
41
+ }
42
+ /** Parse failure carrying the YAML parser's own position (line 1-based,
43
+ * column 0-based — surfaced verbatim to the editor banner). */
44
+ var SettingsParseError = class extends Error {
45
+ line;
46
+ column;
47
+ constructor(message, line, column) {
48
+ super(message);
49
+ this.line = line;
50
+ this.column = column;
51
+ this.name = "SettingsParseError";
52
+ }
53
+ };
54
+ /**
55
+ * One-time DSI migration (ADR D1): when settings.yaml is absent and the
56
+ * legacy config.json exists, parse the JSON and write it as YAML —
57
+ * atomically, so a crash mid-migration never leaves a torn file. The
58
+ * legacy file is READ ONLY here, never written, never read again once
59
+ * settings.yaml exists (a second resolve no-ops — the migration cannot
60
+ * run twice by construction).
61
+ * @param settingsPath - the resolved settings.yaml path.
62
+ * @param legacyPath - the legacy config.json path (same directory).
63
+ */
64
+ function migrateLegacyDsiConfig(settingsPath, legacyPath) {
65
+ if (existsSync(settingsPath)) return;
66
+ const legacy = join(dirname(settingsPath), "config.json");
67
+ if (!existsSync(legacy)) return;
68
+ let parsed;
69
+ try {
70
+ parsed = JSON.parse(readFileSync(legacy, "utf-8"));
71
+ } catch {
72
+ return;
73
+ }
74
+ writeAtomic(settingsPath, stringify(parsed));
75
+ }
76
+ /** Resolve the template home: explicit arg → `DSI_TEMPLATE_PATH` env (set
77
+ * by bin/dsi.mjs from the package root) → `template/.dsi` under the cwd
78
+ * (dev runs). */
79
+ function templateHomePath(templatePath) {
80
+ return process.env.DSI_TEMPLATE_PATH ?? join(process.cwd(), "template", ".dsi");
81
+ }
82
+ /**
83
+ * First-start home bootstrap (template/.dsi): when the DSI home directory is
84
+ * absent, clone the shipped template (settings.yaml, prompts.sqlite seed,
85
+ * a2a.sqlite ledger) into place. An existing home is NEVER touched; a missing
86
+ * template is a silent no-op so builds without one degrade to the defaults
87
+ * contract.
88
+ * @param homePath - test seam overriding the operator home directory.
89
+ * @param templatePath - test seam overriding the template directory.
90
+ * @returns `exists` (home present), `cloned` (template copied), or
91
+ * `no-template` (nothing to copy from).
92
+ */
93
+ function ensureDsiHome(homePath, templatePath) {
94
+ const home = homePath ?? dirname(DSI_SETTINGS_PATH);
95
+ if (existsSync(home)) return "exists";
96
+ const template = templateHomePath();
97
+ if (!existsSync(template)) return "no-template";
98
+ cpSync(template, home, { recursive: true });
99
+ return "cloned";
100
+ }
101
+ /** Atomic write: temp file in the target directory, then rename. */
102
+ function writeAtomic(path, text) {
103
+ mkdirSync(dirname(path), { recursive: true });
104
+ const temp = join(dirname(path), `.${basenameOf(path)}.${process.pid}.tmp`);
105
+ writeFileSync(temp, text, "utf-8");
106
+ renameSync(temp, path);
107
+ }
108
+ function basenameOf(path) {
109
+ const parts = path.split(/[\\/]/);
110
+ return parts[parts.length - 1] || path;
111
+ }
112
+ /**
113
+ * Read a settings document as raw text, running the DSI migration first
114
+ * (dsi target only — DSH owns its own file lifecycle).
115
+ * @param target - which document to read.
116
+ * @param configPath - test seam overriding the resolved path.
117
+ */
118
+ function readSettingsDocument(target, configPath) {
119
+ const path = resolveSettingsPath(target, configPath);
120
+ if (target === "dsi") {
121
+ ensureDsiHome(dirname(path));
122
+ migrateLegacyDsiConfig(path);
123
+ }
124
+ if (!existsSync(path)) return {
125
+ text: "",
126
+ missing: true
127
+ };
128
+ return {
129
+ text: readFileSync(path, "utf-8"),
130
+ missing: false
131
+ };
132
+ }
133
+ /**
134
+ * Validate and atomically save a settings document. A parse failure throws
135
+ * {@link SettingsParseError} and writes NOTHING (ADR D5).
136
+ * @param target - which document to save.
137
+ * @param text - the whole edited document text.
138
+ * @param configPath - test seam overriding the resolved path.
139
+ */
140
+ function saveSettingsDocument(target, text, configPath) {
141
+ const path = resolveSettingsPath(target, configPath);
142
+ const error = parseDocument(text, { strict: false }).errors[0];
143
+ if (error !== void 0) {
144
+ const pos = error.linePos?.[0];
145
+ throw new SettingsParseError(error.message, pos?.line ?? null, pos?.col ?? null);
146
+ }
147
+ writeAtomic(path, text);
148
+ }
149
+ /** Parse YAML into a record for section readers (JSON is a YAML subset, so
150
+ * the same parse serves both shapes). Null on missing/invalid. */
151
+ function parseYamlSettings(text) {
152
+ if (text.trim() === "") return null;
153
+ try {
154
+ const parsed = parse(text);
155
+ return isConfigRecord(parsed) ? parsed : null;
156
+ } catch {
157
+ return null;
158
+ }
159
+ }
160
+
161
+ export { SettingsParseError as S, ensureDsiHome as e, migrateLegacyDsiConfig as m, parseYamlSettings as p, readSettingsDocument as r, saveSettingsDocument as s };
162
+ //# sourceMappingURL=settings-document.js-BIwLIxnE.js.map
@@ -75,7 +75,7 @@ class ActionFailure {
75
75
  }
76
76
  }
77
77
 
78
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/utils/functions.js
78
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/utils/functions.js
79
79
  function noop() {}
80
80
  /**
81
81
  * @template T
@@ -614,7 +614,7 @@ function stringify_primitive(thing) {
614
614
  return String(thing);
615
615
  }
616
616
  //#endregion
617
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/utils.js
617
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/utils.js
618
618
  var text_encoder = new TextEncoder();
619
619
  /**
620
620
  * Like node's path.relative, but without using node
@@ -658,7 +658,7 @@ function base64_decode(encoded) {
658
658
  return bytes;
659
659
  }
660
660
  //#endregion
661
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/utils/error.js
661
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/utils/error.js
662
662
  /**
663
663
  * @param {unknown} err
664
664
  * @return {Error}
@@ -772,4 +772,4 @@ function split_remote_key(key) {
772
772
  }
773
773
 
774
774
  export { ActionFailure as A, HttpError as H, INVALIDATED_PARAM as I, Redirect as R, SvelteKitError as S, TRAILING_SLASH_PARAM as T, get_message as a, get_relative_path as b, coalesce_to_error as c, normalize_error as d, create_remote_key as e, parse_remote_arg as f, get_status as g, stringify$1 as h, split_remote_key as i, base64_encode as j, noop as n, once as o, parse as p, stringify as s, text_encoder as t };
775
- //# sourceMappingURL=shared.js-C4-Py8s_.js.map
775
+ //# sourceMappingURL=shared.js-HQ0rfhm4.js.map
@@ -1,16 +1,48 @@
1
- import { i as index_server_exports } from './internal.js-CLhwhxSl.js';
2
- import './shared.js-C4-Py8s_.js';
3
- import './exports.js-DMiPee3x.js';
4
- import { I as getContext, F as noop } from './server.js-DoCd0fEo.js';
5
- import './utils.js-tOWCe9Wk.js';
1
+ import { i as index_server_exports } from './internal.js-Cuz_sBks.js';
2
+ import './shared.js-HQ0rfhm4.js';
3
+ import './exports.js-DH_tjtdv.js';
4
+ import { U as snapshot, J as getContext, G as noop } from './server.js-11-pxAWV.js';
5
+ import { U as UI_LOCALES } from './config.js-D2vQdial.js';
6
+ import { c as getLocale } from './runtime.js-BPLc5RLR.js';
7
+ import './utils.js-CAdNO8Tu.js';
6
8
 
9
+ //#region src/lib/services/locale/locale-state.svelte.ts
10
+ var state = { locale: "en" };
11
+ function currentLocale() {
12
+ const tracked = snapshot(state).locale;
13
+ try {
14
+ const runtime = getLocale();
15
+ if (UI_LOCALES.includes(runtime)) return runtime;
16
+ } catch {}
17
+ return UI_LOCALES.includes(tracked) ? tracked : "en";
18
+ }
19
+ /**
20
+ * The translation seat: `t(m.key)` in a template. THE instant-switch
21
+ * mechanism (bug-fix 2026-09-12 — "re-renders instantly" was a lie: a
22
+ * bare `m.key()` reads no reactive state, so Svelte never re-ran it and
23
+ * labels only changed after a reload).
24
+ *
25
+ * - reads `state.locale` FIRST, so the calling template registers a
26
+ * reactive dependency and re-runs on every setLocale;
27
+ * - then calls the message fn, which resolves the (already switched)
28
+ * runtime locale — cookie/localStorage on the client, request-scoped
29
+ * AsyncLocalStorage during SSR.
30
+ */
31
+ function t(fn) {
32
+ snapshot(state).locale;
33
+ try {
34
+ const runtime = getLocale();
35
+ if (UI_LOCALES.includes(runtime)) return fn();
36
+ } catch {}
37
+ return fn();
38
+ }
7
39
  var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
8
40
  var placeholder_url = "a:";
9
41
  if (is_legacy) {
10
42
  new URL(placeholder_url);
11
43
  }
12
44
  //#endregion
13
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/client/client.js
45
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/client/client.js
14
46
  /** @import { RemoteFunctionDataNode, ServerNodesResponse, ServerRedirectNode } from 'types' */
15
47
  /** @import { CacheEntry } from './remote-functions/cache.svelte.js' */
16
48
  /** @import { Query } from './remote-functions/query/instance.svelte.js' */
@@ -52,12 +84,12 @@ function replaceState(url, state) {
52
84
  throw new Error("Cannot call replaceState(...) on the server");
53
85
  }
54
86
  //#endregion
55
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
87
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
56
88
  function context() {
57
89
  return getContext("__request__");
58
90
  }
59
91
  //#endregion
60
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/app/state/index.js
92
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/app/state/index.js
61
93
  /**
62
94
  * A read-only reactive object with information about the current page, serving several use cases:
63
95
  * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))
@@ -110,5 +142,5 @@ var page = {
110
142
  }
111
143
  };
112
144
 
113
- export { afterNavigate as a, page as p, replaceState as r };
114
- //# sourceMappingURL=state.js-Ct3UbrbR.js.map
145
+ export { afterNavigate as a, currentLocale as c, page as p, replaceState as r, t };
146
+ //# sourceMappingURL=state.js-CwHEPfXH.js.map
@@ -1,4 +1,4 @@
1
- import { H as HttpError, R as Redirect, c as coalesce_to_error, g as get_status, a as get_message, p as parse, n as noop, S as SvelteKitError } from './shared.js-C4-Py8s_.js';
1
+ import { H as HttpError, R as Redirect, c as coalesce_to_error, g as get_status, a as get_message, p as parse, n as noop, S as SvelteKitError } from './shared.js-HQ0rfhm4.js';
2
2
  import { u as uneval } from './uneval.js-BJ9Qq2SF.js';
3
3
 
4
4
  const text_encoder = new TextEncoder();
@@ -346,7 +346,7 @@ parseSetCookie.parse = parseSetCookie;
346
346
  parseSetCookie.parseString = parseString;
347
347
  parseSetCookie.splitCookiesString = splitCookiesString;
348
348
  //#endregion
349
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/form-utils.js
349
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/form-utils.js
350
350
  /** @import { RemoteForm } from '@sveltejs/kit' */
351
351
  /** @import { BinaryFormMeta, InternalRemoteFormIssue } from 'types' */
352
352
  /** @import { StandardSchemaV1 } from '@standard-schema/spec' */
@@ -665,7 +665,7 @@ function deep_set(object, keys, value) {
665
665
  else current[final_key] = value;
666
666
  }
667
667
  //#endregion
668
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/utils/http.js
668
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/utils/http.js
669
669
  /**
670
670
  * Given an Accept header and a list of possible content types, pick
671
671
  * the most suitable one to respond with
@@ -737,7 +737,7 @@ function is_form_content_type(request) {
737
737
  return is_content_type(request, "application/x-www-form-urlencoded", "multipart/form-data", "text/plain", BINARY_FORM_CONTENT_TYPE);
738
738
  }
739
739
  //#endregion
740
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/utils/escape.js
740
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/utils/escape.js
741
741
  /**
742
742
  * When inside a double-quoted attribute value, only `&` and `"` hold special meaning.
743
743
  * @see https://html.spec.whatwg.org/multipage/parsing.html#attribute-value-(double-quoted)-state
@@ -773,7 +773,7 @@ function escape_html(str, is_attr) {
773
773
  });
774
774
  }
775
775
  //#endregion
776
- //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_516d88433e8c68d15ca595d506c600a7/node_modules/@sveltejs/kit/src/runtime/server/utils.js
776
+ //#region node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.0_svelte@5.56.10_vite@8.2.2_@type_60f7eb265b11a32382764d70df8bbe24/node_modules/@sveltejs/kit/src/runtime/server/utils.js
777
777
  /** @import { ServerHooks } from 'types' */
778
778
  /**
779
779
  * @param {Partial<Record<import('types').HttpMethod, any>>} mod
@@ -930,4 +930,4 @@ function create_replacer(transport) {
930
930
  }
931
931
 
932
932
  export { ENDPOINT_METHODS as E, PAGE_METHODS as P, handle_fatal_error as a, method_not_allowed as b, handle_error_and_jsonify as c, get_global_name as d, create_replacer as e, format_server_error as f, get_set_cookies as g, has_prerendered_path as h, is_form_content_type as i, json as j, serialize_uses as k, clarify_devalue_error as l, merge_tracing as m, negotiate as n, get_node_type as o, parseString as p, isRedirect as q, redirect_response as r, static_error_page as s, text as t, escape_html as u, error as v, with_request_store as w, deserialize_binary_form as x };
933
- //# sourceMappingURL=utils.js-tOWCe9Wk.js.map
933
+ //# sourceMappingURL=utils.js-CAdNO8Tu.js.map
@@ -1,6 +1,6 @@
1
- import { c as readA2aConfig } from './insight-config.js-BAitz0O1.js';
2
- import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-C4EPtpZT.js';
3
- import { g as getDshConnection } from './dsh-connection.js-D52KwDXm.js';
1
+ import { c as readA2aConfig } from './insight-config.js-BwcV3Bct.js';
2
+ import { i as insertWaiting, o as openA2aDb, s as settleRow, p as pruneTerminalBefore, l as listWaiting } from './db.js-Cya8uRCD.js';
3
+ import { g as getDshConnection } from './dsh-connection.js-DlwhJZaV.js';
4
4
  import { a as entryForEvent, h as historyToEvents } from './dsh-events.js-BtDxaV6Q.js';
5
5
 
6
6
  //#region src/lib/server/a2a/matcher.ts
@@ -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-CZl6B1Gm.js.map
473
+ //# sourceMappingURL=watcher.js-CmpeTgh-.js.map
@@ -1,13 +1,14 @@
1
- import { g as getRow } from '../../../../../chunks/db.js-C4EPtpZT.js';
2
- import { j as json } from '../../../../../chunks/utils.js-tOWCe9Wk.js';
3
- import '../../../../../chunks/insight-config.js-BAitz0O1.js';
4
- import '../../../../../chunks/config.js-BBYogCe7.js';
1
+ import { g as getRow } from '../../../../../chunks/db.js-Cya8uRCD.js';
2
+ import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
3
+ import '../../../../../chunks/insight-config.js-BwcV3Bct.js';
4
+ import '../../../../../chunks/config.js-D2vQdial.js';
5
+ import '../../../../../chunks/settings-document.js-BIwLIxnE.js';
5
6
  import 'node:fs';
6
7
  import 'node:path';
7
8
  import 'node:os';
8
9
  import 'yaml';
9
10
  import 'node:sqlite';
10
- import '../../../../../chunks/shared.js-C4-Py8s_.js';
11
+ import '../../../../../chunks/shared.js-HQ0rfhm4.js';
11
12
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
12
13
 
13
14
  //#region src/routes/api/a2a/[id]/+server.ts
@@ -34,4 +35,4 @@ var GET = ({ params }) => {
34
35
  };
35
36
 
36
37
  export { GET };
37
- //# sourceMappingURL=_server.ts.js-BiJNs-w9.js.map
38
+ //# sourceMappingURL=_server.ts.js-D5AWBpBQ.js.map
@@ -1,16 +1,17 @@
1
- import { a as listRecent } from '../../../../chunks/db.js-C4EPtpZT.js';
2
- import { e as ensureStarted } from '../../../../chunks/watcher.js-CZl6B1Gm.js';
3
- import { j as json } from '../../../../chunks/utils.js-tOWCe9Wk.js';
4
- import '../../../../chunks/insight-config.js-BAitz0O1.js';
5
- import '../../../../chunks/config.js-BBYogCe7.js';
1
+ import { a as listRecent } from '../../../../chunks/db.js-Cya8uRCD.js';
2
+ import { e as ensureStarted } from '../../../../chunks/watcher.js-CmpeTgh-.js';
3
+ import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
4
+ import '../../../../chunks/insight-config.js-BwcV3Bct.js';
5
+ import '../../../../chunks/config.js-D2vQdial.js';
6
+ import '../../../../chunks/settings-document.js-BIwLIxnE.js';
6
7
  import 'node:fs';
7
8
  import 'node:path';
8
9
  import 'node:os';
9
10
  import 'yaml';
10
11
  import 'node:sqlite';
11
- import '../../../../chunks/dsh-connection.js-D52KwDXm.js';
12
+ import '../../../../chunks/dsh-connection.js-DlwhJZaV.js';
12
13
  import '../../../../chunks/dsh-events.js-BtDxaV6Q.js';
13
- import '../../../../chunks/shared.js-C4-Py8s_.js';
14
+ import '../../../../chunks/shared.js-HQ0rfhm4.js';
14
15
  import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
15
16
 
16
17
  //#region src/routes/api/a2a/+server.ts
@@ -58,4 +59,4 @@ var GET = ({ url }) => {
58
59
  };
59
60
 
60
61
  export { GET };
61
- //# sourceMappingURL=_server.ts.js-DpYiPNfK.js.map
62
+ //# sourceMappingURL=_server.ts.js-BZvM0qV8.js.map
@@ -1,17 +1,18 @@
1
- import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-BAitz0O1.js';
2
- import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-D52KwDXm.js';
3
- import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-CZl6B1Gm.js';
1
+ import { c as readA2aConfig } from '../../../../../chunks/insight-config.js-BwcV3Bct.js';
2
+ import { g as getDshConnection } from '../../../../../chunks/dsh-connection.js-DlwhJZaV.js';
3
+ import { c as configureWatcher, r as registerWatch } from '../../../../../chunks/watcher.js-CmpeTgh-.js';
4
4
  import { m as mintA2aId } from '../../../../../chunks/a2a-protocol.js-C77mVg2Q.js';
5
- import { j as json } from '../../../../../chunks/utils.js-tOWCe9Wk.js';
6
- import '../../../../../chunks/config.js-BBYogCe7.js';
5
+ import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
6
+ import '../../../../../chunks/config.js-D2vQdial.js';
7
+ import '../../../../../chunks/settings-document.js-BIwLIxnE.js';
7
8
  import 'node:fs';
8
9
  import 'node:path';
9
10
  import 'node:os';
10
11
  import 'yaml';
11
- import '../../../../../chunks/db.js-C4EPtpZT.js';
12
+ import '../../../../../chunks/db.js-Cya8uRCD.js';
12
13
  import 'node:sqlite';
13
14
  import '../../../../../chunks/dsh-events.js-BtDxaV6Q.js';
14
- import '../../../../../chunks/shared.js-C4-Py8s_.js';
15
+ import '../../../../../chunks/shared.js-HQ0rfhm4.js';
15
16
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
16
17
 
17
18
  //#region src/routes/api/a2a/register/+server.ts
@@ -96,4 +97,4 @@ var POST = async ({ request }) => {
96
97
  };
97
98
 
98
99
  export { POST };
99
- //# sourceMappingURL=_server.ts.js-hsrqtyai.js.map
100
+ //# sourceMappingURL=_server.ts.js-CwQ8v1Gr.js.map
@@ -1,11 +1,12 @@
1
- import { d as readSidebarConfig, e as readPanelConfig, c as readA2aConfig, f as readHomeConfig, g as readConversationConfig, h as readChatConfig } from '../../../../chunks/insight-config.js-BAitz0O1.js';
2
- import { j as json } from '../../../../chunks/utils.js-tOWCe9Wk.js';
3
- import '../../../../chunks/config.js-BBYogCe7.js';
1
+ import { d as readSidebarConfig, e as readPanelConfig, c as readA2aConfig, f as readHomeConfig, g as readConversationConfig, h as readChatConfig } from '../../../../chunks/insight-config.js-BwcV3Bct.js';
2
+ import { j as json } from '../../../../chunks/utils.js-CAdNO8Tu.js';
3
+ import '../../../../chunks/config.js-D2vQdial.js';
4
+ import '../../../../chunks/settings-document.js-BIwLIxnE.js';
4
5
  import 'node:fs';
5
6
  import 'node:path';
6
7
  import 'node:os';
7
8
  import 'yaml';
8
- import '../../../../chunks/shared.js-C4-Py8s_.js';
9
+ import '../../../../chunks/shared.js-HQ0rfhm4.js';
9
10
  import '../../../../chunks/uneval.js-BJ9Qq2SF.js';
10
11
 
11
12
  //#region src/routes/api/config/+server.ts
@@ -32,4 +33,4 @@ var GET = async () => {
32
33
  };
33
34
 
34
35
  export { GET };
35
- //# sourceMappingURL=_server.ts.js-C22-pOYW.js.map
36
+ //# sourceMappingURL=_server.ts.js-DRFbC3XB.js.map
@@ -1,12 +1,13 @@
1
- import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-D52KwDXm.js';
2
- import { j as json } from '../../../../../chunks/utils.js-tOWCe9Wk.js';
3
- import '../../../../../chunks/config.js-BBYogCe7.js';
4
- import '../../../../../chunks/insight-config.js-BAitz0O1.js';
1
+ import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DlwhJZaV.js';
2
+ import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
3
+ import '../../../../../chunks/config.js-D2vQdial.js';
4
+ import '../../../../../chunks/insight-config.js-BwcV3Bct.js';
5
+ import '../../../../../chunks/settings-document.js-BIwLIxnE.js';
5
6
  import 'node:fs';
6
7
  import 'node:path';
7
8
  import 'node:os';
8
9
  import 'yaml';
9
- import '../../../../../chunks/shared.js-C4-Py8s_.js';
10
+ import '../../../../../chunks/shared.js-HQ0rfhm4.js';
10
11
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
11
12
 
12
13
  //#region src/routes/api/dsh/directory/+server.ts
@@ -40,4 +41,4 @@ var GET = async ({ url }) => {
40
41
  };
41
42
 
42
43
  export { GET };
43
- //# sourceMappingURL=_server.ts.js-GB8GCnt9.js.map
44
+ //# sourceMappingURL=_server.ts.js-1NUslX2J.js.map
@@ -1,12 +1,13 @@
1
- import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-D52KwDXm.js';
2
- import { j as json } from '../../../../../chunks/utils.js-tOWCe9Wk.js';
3
- import '../../../../../chunks/config.js-BBYogCe7.js';
4
- import '../../../../../chunks/insight-config.js-BAitz0O1.js';
1
+ import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DlwhJZaV.js';
2
+ import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
3
+ import '../../../../../chunks/config.js-D2vQdial.js';
4
+ import '../../../../../chunks/insight-config.js-BwcV3Bct.js';
5
+ import '../../../../../chunks/settings-document.js-BIwLIxnE.js';
5
6
  import 'node:fs';
6
7
  import 'node:path';
7
8
  import 'node:os';
8
9
  import 'yaml';
9
- import '../../../../../chunks/shared.js-C4-Py8s_.js';
10
+ import '../../../../../chunks/shared.js-HQ0rfhm4.js';
10
11
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
11
12
 
12
13
  //#region src/routes/api/dsh/pick-directory/+server.ts
@@ -33,4 +34,4 @@ var POST = async ({ request }) => {
33
34
  };
34
35
 
35
36
  export { POST };
36
- //# sourceMappingURL=_server.ts.js-1f1lp4p6.js.map
37
+ //# sourceMappingURL=_server.ts.js-BaNBBHLR.js.map
@@ -1,12 +1,13 @@
1
- import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-D52KwDXm.js';
2
- import { j as json } from '../../../../../chunks/utils.js-tOWCe9Wk.js';
3
- import '../../../../../chunks/config.js-BBYogCe7.js';
4
- import '../../../../../chunks/insight-config.js-BAitz0O1.js';
1
+ import { g as getDshConnection, s as statusFor, m as mapRpcFailure } from '../../../../../chunks/dsh-connection.js-DlwhJZaV.js';
2
+ import { j as json } from '../../../../../chunks/utils.js-CAdNO8Tu.js';
3
+ import '../../../../../chunks/config.js-D2vQdial.js';
4
+ import '../../../../../chunks/insight-config.js-BwcV3Bct.js';
5
+ import '../../../../../chunks/settings-document.js-BIwLIxnE.js';
5
6
  import 'node:fs';
6
7
  import 'node:path';
7
8
  import 'node:os';
8
9
  import 'yaml';
9
- import '../../../../../chunks/shared.js-C4-Py8s_.js';
10
+ import '../../../../../chunks/shared.js-HQ0rfhm4.js';
10
11
  import '../../../../../chunks/uneval.js-BJ9Qq2SF.js';
11
12
 
12
13
  //#region src/routes/api/dsh/presets/+server.ts
@@ -30,4 +31,4 @@ var GET = async () => {
30
31
  };
31
32
 
32
33
  export { GET };
33
- //# sourceMappingURL=_server.ts.js-bQ6fWiaE.js.map
34
+ //# sourceMappingURL=_server.ts.js-CW2NY_YQ.js.map