dominds 1.2.4 → 1.2.6

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 (144) hide show
  1. package/dist/agent-priming.js +2051 -0
  2. package/dist/apps/app-lock-file.js +228 -0
  3. package/dist/apps/assigned-port.js +124 -0
  4. package/dist/apps/enabled-apps.js +472 -7
  5. package/dist/apps/manifest.js +37 -0
  6. package/dist/apps/override-paths.js +0 -5
  7. package/dist/apps/problems.js +43 -0
  8. package/dist/apps/resolution-file.js +370 -0
  9. package/dist/apps/runtime.js +5 -17
  10. package/dist/cli/disable.js +10 -6
  11. package/dist/cli/enable.js +21 -19
  12. package/dist/cli/install.js +40 -18
  13. package/dist/cli/uninstall.js +6 -6
  14. package/dist/cli/update.js +38 -13
  15. package/dist/docs/app-constitution.md +85 -18
  16. package/dist/docs/app-constitution.zh.md +86 -21
  17. package/dist/docs/dialog-system.md +1 -1
  18. package/dist/docs/dialog-system.zh.md +1 -1
  19. package/dist/docs/dominds-agent-priming.md +218 -0
  20. package/dist/docs/dominds-agent-priming.zh.md +196 -0
  21. package/dist/docs/drive-logic-context-refactor-plan.zh.md +338 -0
  22. package/dist/docs/keep-going.md +176 -0
  23. package/dist/docs/keep-going.zh.md +162 -0
  24. package/dist/docs/showing-by-doing.md +208 -0
  25. package/dist/docs/showing-by-doing.zh.md +177 -0
  26. package/dist/docs/team-mgmt-toolset.md +482 -0
  27. package/dist/docs/team-mgmt-toolset.zh.md +426 -0
  28. package/dist/llm/defaults.yaml +1 -1
  29. package/dist/llm/driver.js +4093 -0
  30. package/dist/minds/promptdocs.js +263 -0
  31. package/dist/server/api-routes.js +333 -0
  32. package/dist/server/prompts-routes.js +545 -0
  33. package/dist/server/server-core.js +4 -0
  34. package/dist/shared/team-mgmt-manual.js +120 -0
  35. package/dist/shared/types/prompts.js +2 -0
  36. package/dist/shared/types/tellask.js +8 -0
  37. package/dist/showing-by-doing.js +1091 -0
  38. package/dist/snippets/README.en.md +3 -0
  39. package/dist/snippets/README.md +4 -0
  40. package/dist/static/assets/{_basePickBy-CupsMxbi.js → _basePickBy-5YF_9hQW.js} +3 -3
  41. package/dist/static/assets/{_basePickBy-CupsMxbi.js.map → _basePickBy-5YF_9hQW.js.map} +1 -1
  42. package/dist/static/assets/{_baseUniq-BDcVFZR0.js → _baseUniq-jhU9AUhp.js} +2 -2
  43. package/dist/static/assets/{_baseUniq-BDcVFZR0.js.map → _baseUniq-jhU9AUhp.js.map} +1 -1
  44. package/dist/static/assets/{arc-E_Wq3ZBA.js → arc-CxfO0spY.js} +2 -2
  45. package/dist/static/assets/{arc-E_Wq3ZBA.js.map → arc-CxfO0spY.js.map} +1 -1
  46. package/dist/static/assets/{architectureDiagram-VXUJARFQ-522n5Xxv.js → architectureDiagram-VXUJARFQ-DdfdIFQM.js} +7 -7
  47. package/dist/static/assets/{architectureDiagram-VXUJARFQ-522n5Xxv.js.map → architectureDiagram-VXUJARFQ-DdfdIFQM.js.map} +1 -1
  48. package/dist/static/assets/{blockDiagram-VD42YOAC-BLN9Y7a8.js → blockDiagram-VD42YOAC-Cwqz2taZ.js} +7 -7
  49. package/dist/static/assets/{blockDiagram-VD42YOAC-BLN9Y7a8.js.map → blockDiagram-VD42YOAC-Cwqz2taZ.js.map} +1 -1
  50. package/dist/static/assets/{c4Diagram-YG6GDRKO-BwhzzgYq.js → c4Diagram-YG6GDRKO-B4tMGdJJ.js} +3 -3
  51. package/dist/static/assets/{c4Diagram-YG6GDRKO-BwhzzgYq.js.map → c4Diagram-YG6GDRKO-B4tMGdJJ.js.map} +1 -1
  52. package/dist/static/assets/{channel-fLVkm5NV.js → channel-vcTCKrpR.js} +2 -2
  53. package/dist/static/assets/{channel-fLVkm5NV.js.map → channel-vcTCKrpR.js.map} +1 -1
  54. package/dist/static/assets/{chunk-4BX2VUAB-1D1VasqQ.js → chunk-4BX2VUAB-9jaRyZiz.js} +2 -2
  55. package/dist/static/assets/{chunk-4BX2VUAB-1D1VasqQ.js.map → chunk-4BX2VUAB-9jaRyZiz.js.map} +1 -1
  56. package/dist/static/assets/{chunk-55IACEB6-CdrmLoJU.js → chunk-55IACEB6-CqFPCghN.js} +2 -2
  57. package/dist/static/assets/{chunk-55IACEB6-CdrmLoJU.js.map → chunk-55IACEB6-CqFPCghN.js.map} +1 -1
  58. package/dist/static/assets/{chunk-B4BG7PRW-BT6zSZ9C.js → chunk-B4BG7PRW-BVwJVEzB.js} +5 -5
  59. package/dist/static/assets/{chunk-B4BG7PRW-BT6zSZ9C.js.map → chunk-B4BG7PRW-BVwJVEzB.js.map} +1 -1
  60. package/dist/static/assets/{chunk-DI55MBZ5-D2pGqzLg.js → chunk-DI55MBZ5-i9DDRLYs.js} +4 -4
  61. package/dist/static/assets/{chunk-DI55MBZ5-D2pGqzLg.js.map → chunk-DI55MBZ5-i9DDRLYs.js.map} +1 -1
  62. package/dist/static/assets/{chunk-FMBD7UC4-Dly3juUJ.js → chunk-FMBD7UC4-DtB9tnhF.js} +2 -2
  63. package/dist/static/assets/{chunk-FMBD7UC4-Dly3juUJ.js.map → chunk-FMBD7UC4-DtB9tnhF.js.map} +1 -1
  64. package/dist/static/assets/{chunk-QN33PNHL-BgEarQt4.js → chunk-QN33PNHL-Bzbixp1o.js} +2 -2
  65. package/dist/static/assets/{chunk-QN33PNHL-BgEarQt4.js.map → chunk-QN33PNHL-Bzbixp1o.js.map} +1 -1
  66. package/dist/static/assets/{chunk-QZHKN3VN-DedC1KyN.js → chunk-QZHKN3VN-CI-C5uv0.js} +2 -2
  67. package/dist/static/assets/{chunk-QZHKN3VN-DedC1KyN.js.map → chunk-QZHKN3VN-CI-C5uv0.js.map} +1 -1
  68. package/dist/static/assets/{chunk-TZMSLE5B-BEqexZui.js → chunk-TZMSLE5B-CANsFBw_.js} +2 -2
  69. package/dist/static/assets/{chunk-TZMSLE5B-BEqexZui.js.map → chunk-TZMSLE5B-CANsFBw_.js.map} +1 -1
  70. package/dist/static/assets/{classDiagram-2ON5EDUG-BrreExL9.js → classDiagram-2ON5EDUG-D00eOaDx.js} +6 -6
  71. package/dist/static/assets/{classDiagram-2ON5EDUG-BrreExL9.js.map → classDiagram-2ON5EDUG-D00eOaDx.js.map} +1 -1
  72. package/dist/static/assets/{classDiagram-v2-WZHVMYZB-BrreExL9.js → classDiagram-v2-WZHVMYZB-D00eOaDx.js} +6 -6
  73. package/dist/static/assets/{classDiagram-v2-WZHVMYZB-BrreExL9.js.map → classDiagram-v2-WZHVMYZB-D00eOaDx.js.map} +1 -1
  74. package/dist/static/assets/{clone-BbCzdf37.js → clone-BvOc2yso.js} +2 -2
  75. package/dist/static/assets/{clone-BbCzdf37.js.map → clone-BvOc2yso.js.map} +1 -1
  76. package/dist/static/assets/{cose-bilkent-S5V4N54A-EkgySXec.js → cose-bilkent-S5V4N54A-DSYAdAyx.js} +2 -2
  77. package/dist/static/assets/{cose-bilkent-S5V4N54A-EkgySXec.js.map → cose-bilkent-S5V4N54A-DSYAdAyx.js.map} +1 -1
  78. package/dist/static/assets/{dagre-6UL2VRFP-zF1TxR2b.js → dagre-6UL2VRFP-B7J4YtNM.js} +7 -7
  79. package/dist/static/assets/{dagre-6UL2VRFP-zF1TxR2b.js.map → dagre-6UL2VRFP-B7J4YtNM.js.map} +1 -1
  80. package/dist/static/assets/{diagram-PSM6KHXK-YfLDy7xM.js → diagram-PSM6KHXK-htuDE0_8.js} +8 -8
  81. package/dist/static/assets/{diagram-PSM6KHXK-YfLDy7xM.js.map → diagram-PSM6KHXK-htuDE0_8.js.map} +1 -1
  82. package/dist/static/assets/{diagram-QEK2KX5R-DT2Sl1-I.js → diagram-QEK2KX5R-g1GZbARf.js} +7 -7
  83. package/dist/static/assets/{diagram-QEK2KX5R-DT2Sl1-I.js.map → diagram-QEK2KX5R-g1GZbARf.js.map} +1 -1
  84. package/dist/static/assets/{diagram-S2PKOQOG-DuYxXn1P.js → diagram-S2PKOQOG-DYvwVsZm.js} +7 -7
  85. package/dist/static/assets/{diagram-S2PKOQOG-DuYxXn1P.js.map → diagram-S2PKOQOG-DYvwVsZm.js.map} +1 -1
  86. package/dist/static/assets/{erDiagram-Q2GNP2WA-SIbEeh3n.js → erDiagram-Q2GNP2WA-CuCw1fng.js} +5 -5
  87. package/dist/static/assets/{erDiagram-Q2GNP2WA-SIbEeh3n.js.map → erDiagram-Q2GNP2WA-CuCw1fng.js.map} +1 -1
  88. package/dist/static/assets/{flowDiagram-NV44I4VS-CLNKs4id.js → flowDiagram-NV44I4VS-B7e0sjm_.js} +6 -6
  89. package/dist/static/assets/{flowDiagram-NV44I4VS-CLNKs4id.js.map → flowDiagram-NV44I4VS-B7e0sjm_.js.map} +1 -1
  90. package/dist/static/assets/{ganttDiagram-JELNMOA3-tFaNfSzJ.js → ganttDiagram-JELNMOA3-BZRuh3DE.js} +3 -3
  91. package/dist/static/assets/{ganttDiagram-JELNMOA3-tFaNfSzJ.js.map → ganttDiagram-JELNMOA3-BZRuh3DE.js.map} +1 -1
  92. package/dist/static/assets/{gitGraphDiagram-V2S2FVAM-DqO129yJ.js → gitGraphDiagram-V2S2FVAM-B8lN7T9U.js} +8 -8
  93. package/dist/static/assets/{gitGraphDiagram-V2S2FVAM-DqO129yJ.js.map → gitGraphDiagram-V2S2FVAM-B8lN7T9U.js.map} +1 -1
  94. package/dist/static/assets/{graph-CcuoS4cG.js → graph-CVmBZVHx.js} +3 -3
  95. package/dist/static/assets/{graph-CcuoS4cG.js.map → graph-CVmBZVHx.js.map} +1 -1
  96. package/dist/static/assets/{index-C6rZcGnP.js → index-BMt8OZ6H.js} +442 -102
  97. package/dist/static/assets/index-BMt8OZ6H.js.map +1 -0
  98. package/dist/static/assets/{index-CTkAdCTv.css → index-BiNcBn_U.css} +52 -0
  99. package/dist/static/assets/{infoDiagram-HS3SLOUP-DJx03jNn.js → infoDiagram-HS3SLOUP-Bs7DwY4Q.js} +6 -6
  100. package/dist/static/assets/{infoDiagram-HS3SLOUP-DJx03jNn.js.map → infoDiagram-HS3SLOUP-Bs7DwY4Q.js.map} +1 -1
  101. package/dist/static/assets/{journeyDiagram-XKPGCS4Q-CKkr3KnL.js → journeyDiagram-XKPGCS4Q-7zHAqy6Q.js} +5 -5
  102. package/dist/static/assets/{journeyDiagram-XKPGCS4Q-CKkr3KnL.js.map → journeyDiagram-XKPGCS4Q-7zHAqy6Q.js.map} +1 -1
  103. package/dist/static/assets/{kanban-definition-3W4ZIXB7-CbSqCiEs.js → kanban-definition-3W4ZIXB7-DJaBY2Ug.js} +3 -3
  104. package/dist/static/assets/{kanban-definition-3W4ZIXB7-CbSqCiEs.js.map → kanban-definition-3W4ZIXB7-DJaBY2Ug.js.map} +1 -1
  105. package/dist/static/assets/{layout-D7-FKbaT.js → layout-DCgFs2G2.js} +5 -5
  106. package/dist/static/assets/{layout-D7-FKbaT.js.map → layout-DCgFs2G2.js.map} +1 -1
  107. package/dist/static/assets/{linear-BuDfNBon.js → linear-3qLxTIu4.js} +2 -2
  108. package/dist/static/assets/{linear-BuDfNBon.js.map → linear-3qLxTIu4.js.map} +1 -1
  109. package/dist/static/assets/{mindmap-definition-VGOIOE7T-BDwLe04b.js → mindmap-definition-VGOIOE7T-D8LVSYNe.js} +4 -4
  110. package/dist/static/assets/{mindmap-definition-VGOIOE7T-BDwLe04b.js.map → mindmap-definition-VGOIOE7T-D8LVSYNe.js.map} +1 -1
  111. package/dist/static/assets/{pieDiagram-ADFJNKIX-BoZQsSD6.js → pieDiagram-ADFJNKIX-K7J0sf-_.js} +8 -8
  112. package/dist/static/assets/{pieDiagram-ADFJNKIX-BoZQsSD6.js.map → pieDiagram-ADFJNKIX-K7J0sf-_.js.map} +1 -1
  113. package/dist/static/assets/{quadrantDiagram-AYHSOK5B-DCwmFmS8.js → quadrantDiagram-AYHSOK5B-BjOUsjH1.js} +3 -3
  114. package/dist/static/assets/{quadrantDiagram-AYHSOK5B-DCwmFmS8.js.map → quadrantDiagram-AYHSOK5B-BjOUsjH1.js.map} +1 -1
  115. package/dist/static/assets/{requirementDiagram-UZGBJVZJ-b103XjYN.js → requirementDiagram-UZGBJVZJ-B2Q3tMos.js} +4 -4
  116. package/dist/static/assets/{requirementDiagram-UZGBJVZJ-b103XjYN.js.map → requirementDiagram-UZGBJVZJ-B2Q3tMos.js.map} +1 -1
  117. package/dist/static/assets/{sankeyDiagram-TZEHDZUN-Dpa0Lvc2.js → sankeyDiagram-TZEHDZUN-BG5wvCeZ.js} +2 -2
  118. package/dist/static/assets/{sankeyDiagram-TZEHDZUN-Dpa0Lvc2.js.map → sankeyDiagram-TZEHDZUN-BG5wvCeZ.js.map} +1 -1
  119. package/dist/static/assets/{sequenceDiagram-WL72ISMW-DmmctZww.js → sequenceDiagram-WL72ISMW-BuLOLu3-.js} +4 -4
  120. package/dist/static/assets/{sequenceDiagram-WL72ISMW-DmmctZww.js.map → sequenceDiagram-WL72ISMW-BuLOLu3-.js.map} +1 -1
  121. package/dist/static/assets/{stateDiagram-FKZM4ZOC-rzlWUEGW.js → stateDiagram-FKZM4ZOC-CWCqsmNr.js} +9 -9
  122. package/dist/static/assets/{stateDiagram-FKZM4ZOC-rzlWUEGW.js.map → stateDiagram-FKZM4ZOC-CWCqsmNr.js.map} +1 -1
  123. package/dist/static/assets/{stateDiagram-v2-4FDKWEC3-kNazIMQu.js → stateDiagram-v2-4FDKWEC3-DYbP1xu4.js} +5 -5
  124. package/dist/static/assets/{stateDiagram-v2-4FDKWEC3-kNazIMQu.js.map → stateDiagram-v2-4FDKWEC3-DYbP1xu4.js.map} +1 -1
  125. package/dist/static/assets/{timeline-definition-IT6M3QCI-8Jf8mEk1.js → timeline-definition-IT6M3QCI-DaPtomWv.js} +3 -3
  126. package/dist/static/assets/{timeline-definition-IT6M3QCI-8Jf8mEk1.js.map → timeline-definition-IT6M3QCI-DaPtomWv.js.map} +1 -1
  127. package/dist/static/assets/{treemap-GDKQZRPO-pzngdrcL.js → treemap-GDKQZRPO-cEZjfkb6.js} +5 -5
  128. package/dist/static/assets/{treemap-GDKQZRPO-pzngdrcL.js.map → treemap-GDKQZRPO-cEZjfkb6.js.map} +1 -1
  129. package/dist/static/assets/{xychartDiagram-PRI3JC2R-BfBVgrdy.js → xychartDiagram-PRI3JC2R-7zI4Kz0F.js} +3 -3
  130. package/dist/static/assets/{xychartDiagram-PRI3JC2R-BfBVgrdy.js.map → xychartDiagram-PRI3JC2R-7zI4Kz0F.js.map} +1 -1
  131. package/dist/static/index.html +2 -2
  132. package/dist/team.js +52 -48
  133. package/dist/tellask.js +439 -0
  134. package/dist/tools/context-health.js +177 -0
  135. package/dist/tools/diag.js +583 -0
  136. package/dist/tools/fs.js +194 -68
  137. package/dist/tools/prompts/memory/en/principles.md +13 -5
  138. package/dist/tools/prompts/memory/en/tools.md +11 -36
  139. package/dist/tools/prompts/memory/zh/principles.md +18 -8
  140. package/dist/tools/prompts/memory/zh/tools.md +11 -36
  141. package/dist/tools/team-mgmt.js +3487 -0
  142. package/dist/utils/task-doc.js +236 -0
  143. package/package.json +1 -1
  144. package/dist/static/assets/index-C6rZcGnP.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-zF1TxR2b.js","assets/graph-CcuoS4cG.js","assets/_baseUniq-BDcVFZR0.js","assets/layout-D7-FKbaT.js","assets/_basePickBy-CupsMxbi.js","assets/clone-BbCzdf37.js","assets/cose-bilkent-S5V4N54A-EkgySXec.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-YG6GDRKO-BwhzzgYq.js","assets/chunk-TZMSLE5B-BEqexZui.js","assets/flowDiagram-NV44I4VS-CLNKs4id.js","assets/chunk-FMBD7UC4-Dly3juUJ.js","assets/chunk-55IACEB6-CdrmLoJU.js","assets/chunk-QN33PNHL-BgEarQt4.js","assets/channel-fLVkm5NV.js","assets/erDiagram-Q2GNP2WA-SIbEeh3n.js","assets/gitGraphDiagram-V2S2FVAM-DqO129yJ.js","assets/chunk-4BX2VUAB-1D1VasqQ.js","assets/chunk-QZHKN3VN-DedC1KyN.js","assets/treemap-GDKQZRPO-pzngdrcL.js","assets/ganttDiagram-JELNMOA3-tFaNfSzJ.js","assets/linear-BuDfNBon.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-HS3SLOUP-DJx03jNn.js","assets/pieDiagram-ADFJNKIX-BoZQsSD6.js","assets/arc-E_Wq3ZBA.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-AYHSOK5B-DCwmFmS8.js","assets/xychartDiagram-PRI3JC2R-BfBVgrdy.js","assets/requirementDiagram-UZGBJVZJ-b103XjYN.js","assets/sequenceDiagram-WL72ISMW-DmmctZww.js","assets/classDiagram-2ON5EDUG-BrreExL9.js","assets/chunk-B4BG7PRW-BT6zSZ9C.js","assets/classDiagram-v2-WZHVMYZB-BrreExL9.js","assets/stateDiagram-FKZM4ZOC-rzlWUEGW.js","assets/chunk-DI55MBZ5-D2pGqzLg.js","assets/stateDiagram-v2-4FDKWEC3-kNazIMQu.js","assets/journeyDiagram-XKPGCS4Q-CKkr3KnL.js","assets/timeline-definition-IT6M3QCI-8Jf8mEk1.js","assets/mindmap-definition-VGOIOE7T-BDwLe04b.js","assets/kanban-definition-3W4ZIXB7-CbSqCiEs.js","assets/sankeyDiagram-TZEHDZUN-Dpa0Lvc2.js","assets/diagram-S2PKOQOG-DuYxXn1P.js","assets/diagram-QEK2KX5R-DT2Sl1-I.js","assets/blockDiagram-VD42YOAC-BLN9Y7a8.js","assets/architectureDiagram-VXUJARFQ-522n5Xxv.js","assets/diagram-PSM6KHXK-YfLDy7xM.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-B7J4YtNM.js","assets/graph-CVmBZVHx.js","assets/_baseUniq-jhU9AUhp.js","assets/layout-DCgFs2G2.js","assets/_basePickBy-5YF_9hQW.js","assets/clone-BvOc2yso.js","assets/cose-bilkent-S5V4N54A-DSYAdAyx.js","assets/cytoscape.esm-Bm8DJGmZ.js","assets/c4Diagram-YG6GDRKO-B4tMGdJJ.js","assets/chunk-TZMSLE5B-CANsFBw_.js","assets/flowDiagram-NV44I4VS-B7e0sjm_.js","assets/chunk-FMBD7UC4-DtB9tnhF.js","assets/chunk-55IACEB6-CqFPCghN.js","assets/chunk-QN33PNHL-Bzbixp1o.js","assets/channel-vcTCKrpR.js","assets/erDiagram-Q2GNP2WA-CuCw1fng.js","assets/gitGraphDiagram-V2S2FVAM-B8lN7T9U.js","assets/chunk-4BX2VUAB-9jaRyZiz.js","assets/chunk-QZHKN3VN-CI-C5uv0.js","assets/treemap-GDKQZRPO-cEZjfkb6.js","assets/ganttDiagram-JELNMOA3-BZRuh3DE.js","assets/linear-3qLxTIu4.js","assets/init-ZxktEp_H.js","assets/defaultLocale-B2RvLBDe.js","assets/infoDiagram-HS3SLOUP-Bs7DwY4Q.js","assets/pieDiagram-ADFJNKIX-K7J0sf-_.js","assets/arc-CxfO0spY.js","assets/ordinal-CxptdPJm.js","assets/quadrantDiagram-AYHSOK5B-BjOUsjH1.js","assets/xychartDiagram-PRI3JC2R-7zI4Kz0F.js","assets/requirementDiagram-UZGBJVZJ-B2Q3tMos.js","assets/sequenceDiagram-WL72ISMW-BuLOLu3-.js","assets/classDiagram-2ON5EDUG-D00eOaDx.js","assets/chunk-B4BG7PRW-BVwJVEzB.js","assets/classDiagram-v2-WZHVMYZB-D00eOaDx.js","assets/stateDiagram-FKZM4ZOC-CWCqsmNr.js","assets/chunk-DI55MBZ5-i9DDRLYs.js","assets/stateDiagram-v2-4FDKWEC3-DYbP1xu4.js","assets/journeyDiagram-XKPGCS4Q-7zHAqy6Q.js","assets/timeline-definition-IT6M3QCI-DaPtomWv.js","assets/mindmap-definition-VGOIOE7T-D8LVSYNe.js","assets/kanban-definition-3W4ZIXB7-DJaBY2Ug.js","assets/sankeyDiagram-TZEHDZUN-BG5wvCeZ.js","assets/diagram-S2PKOQOG-DYvwVsZm.js","assets/diagram-QEK2KX5R-g1GZbARf.js","assets/blockDiagram-VD42YOAC-Cwqz2taZ.js","assets/architectureDiagram-VXUJARFQ-DdfdIFQM.js","assets/diagram-PSM6KHXK-htuDE0_8.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -3495,6 +3495,9 @@ class CreateDialogFlowController {
3495
3495
  return;
3496
3496
  }
3497
3497
  const strings = () => getUiStrings(this.deps.getLanguage());
3498
+ const stripTaskdocSuffixForMatch = (value) => {
3499
+ return value.endsWith(".tsk") ? value.slice(0, -4) : value;
3500
+ };
3498
3501
  let createInFlight = false;
3499
3502
  let selectedSuggestionIndex = -1;
3500
3503
  let currentSuggestions = [];
@@ -3965,22 +3968,33 @@ class CreateDialogFlowController {
3965
3968
  setPrimingMoreVisible(false);
3966
3969
  });
3967
3970
  const updateSuggestions = (query) => {
3968
- const normalized = query.trim().toLowerCase();
3971
+ const normalizedRaw = query.trim().toLowerCase();
3972
+ if (!normalizedRaw) {
3973
+ hideSuggestions();
3974
+ return;
3975
+ }
3976
+ const normalized = stripTaskdocSuffixForMatch(normalizedRaw);
3969
3977
  if (!normalized) {
3970
3978
  hideSuggestions();
3971
3979
  return;
3972
3980
  }
3973
- currentSuggestions = this.deps.getTaskDocuments().filter(
3974
- (doc) => doc.relativePath.toLowerCase().includes(normalized) || doc.name.toLowerCase().includes(normalized)
3975
- ).map((doc) => ({
3981
+ currentSuggestions = this.deps.getTaskDocuments().filter((doc) => {
3982
+ const relativePathForMatch = stripTaskdocSuffixForMatch(doc.relativePath.toLowerCase());
3983
+ const nameForMatch = stripTaskdocSuffixForMatch(doc.name.toLowerCase());
3984
+ return relativePathForMatch.includes(normalized) || nameForMatch.includes(normalized);
3985
+ }).map((doc) => ({
3976
3986
  ...doc,
3977
- _score: this.calculateSortScore(
3978
- doc.name.toLowerCase().includes(normalized),
3979
- doc.relativePath.toLowerCase().includes(normalized),
3980
- doc.name.toLowerCase().startsWith(normalized),
3981
- doc.relativePath.toLowerCase().startsWith(normalized),
3982
- doc.name.toLowerCase() === normalized
3983
- )
3987
+ _score: (() => {
3988
+ const relativePathForMatch = stripTaskdocSuffixForMatch(doc.relativePath.toLowerCase());
3989
+ const nameForMatch = stripTaskdocSuffixForMatch(doc.name.toLowerCase());
3990
+ return this.calculateSortScore(
3991
+ nameForMatch.includes(normalized),
3992
+ relativePathForMatch.includes(normalized),
3993
+ nameForMatch.startsWith(normalized),
3994
+ relativePathForMatch.startsWith(normalized),
3995
+ nameForMatch === normalized
3996
+ );
3997
+ })()
3984
3998
  })).sort((a2, b2) => {
3985
3999
  if (a2._score !== b2._score) return b2._score - a2._score;
3986
4000
  if (a2.name.length !== b2.name.length) return a2.name.length - b2.name.length;
@@ -3993,11 +4007,13 @@ class CreateDialogFlowController {
3993
4007
  selectedSuggestionIndex = -1;
3994
4008
  return;
3995
4009
  }
3996
- suggestions.innerHTML = currentSuggestions.map(
3997
- (doc, index) => `<div class="suggestion ${index === selectedSuggestionIndex ? "selected" : ""}" data-index="${String(index)}"><div class="suggestion-path">${escapeHtml$2(
4010
+ suggestions.innerHTML = currentSuggestions.map((doc, index) => {
4011
+ const showName = doc.name.trim() !== "" && doc.name !== doc.relativePath;
4012
+ const nameHtml = showName ? `<div class="suggestion-name">${escapeHtml$2(doc.name)}</div>` : "";
4013
+ return `<div class="suggestion ${index === selectedSuggestionIndex ? "selected" : ""}" data-index="${String(index)}"><div class="suggestion-path">${escapeHtml$2(
3998
4014
  doc.relativePath
3999
- )}</div><div class="suggestion-name">${escapeHtml$2(doc.name)}</div></div>`
4000
- ).join("");
4015
+ )}</div>${nameHtml}</div>`;
4016
+ }).join("");
4001
4017
  suggestions.style.display = "block";
4002
4018
  selectedSuggestionIndex = -1;
4003
4019
  };
@@ -97364,12 +97380,12 @@ var registerDefaultLayoutLoaders = /* @__PURE__ */ __name(() => {
97364
97380
  registerLayoutLoaders([
97365
97381
  {
97366
97382
  name: "dagre",
97367
- loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-6UL2VRFP-zF1TxR2b.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
97383
+ loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./dagre-6UL2VRFP-B7J4YtNM.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0), "loader")
97368
97384
  },
97369
97385
  ...[
97370
97386
  {
97371
97387
  name: "cose-bilkent",
97372
- loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-EkgySXec.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
97388
+ loader: /* @__PURE__ */ __name(async () => await __vitePreload(() => import("./cose-bilkent-S5V4N54A-DSYAdAyx.js"), true ? __vite__mapDeps([6,7]) : void 0), "loader")
97373
97389
  }
97374
97390
  ]
97375
97391
  ]);
@@ -97809,7 +97825,7 @@ var detector = /* @__PURE__ */ __name((txt) => {
97809
97825
  }, "detector");
97810
97826
  var loader = /* @__PURE__ */ __name(async () => {
97811
97827
  const { diagram: diagram2 } = await __vitePreload(async () => {
97812
- const { diagram: diagram22 } = await import("./c4Diagram-YG6GDRKO-BwhzzgYq.js");
97828
+ const { diagram: diagram22 } = await import("./c4Diagram-YG6GDRKO-B4tMGdJJ.js");
97813
97829
  return { diagram: diagram22 };
97814
97830
  }, true ? __vite__mapDeps([8,9]) : void 0);
97815
97831
  return { id, diagram: diagram2 };
@@ -97829,7 +97845,7 @@ var detector2 = /* @__PURE__ */ __name((txt, config2) => {
97829
97845
  }, "detector");
97830
97846
  var loader2 = /* @__PURE__ */ __name(async () => {
97831
97847
  const { diagram: diagram2 } = await __vitePreload(async () => {
97832
- const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-CLNKs4id.js");
97848
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B7e0sjm_.js");
97833
97849
  return { diagram: diagram22 };
97834
97850
  }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
97835
97851
  return { id: id2, diagram: diagram2 };
@@ -97855,7 +97871,7 @@ var detector3 = /* @__PURE__ */ __name((txt, config2) => {
97855
97871
  }, "detector");
97856
97872
  var loader3 = /* @__PURE__ */ __name(async () => {
97857
97873
  const { diagram: diagram2 } = await __vitePreload(async () => {
97858
- const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-CLNKs4id.js");
97874
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B7e0sjm_.js");
97859
97875
  return { diagram: diagram22 };
97860
97876
  }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
97861
97877
  return { id: id3, diagram: diagram2 };
@@ -97872,7 +97888,7 @@ var detector4 = /* @__PURE__ */ __name((txt) => {
97872
97888
  }, "detector");
97873
97889
  var loader4 = /* @__PURE__ */ __name(async () => {
97874
97890
  const { diagram: diagram2 } = await __vitePreload(async () => {
97875
- const { diagram: diagram22 } = await import("./erDiagram-Q2GNP2WA-SIbEeh3n.js");
97891
+ const { diagram: diagram22 } = await import("./erDiagram-Q2GNP2WA-CuCw1fng.js");
97876
97892
  return { diagram: diagram22 };
97877
97893
  }, true ? __vite__mapDeps([15,12,13,14]) : void 0);
97878
97894
  return { id: id4, diagram: diagram2 };
@@ -97889,7 +97905,7 @@ var detector5 = /* @__PURE__ */ __name((txt) => {
97889
97905
  }, "detector");
97890
97906
  var loader5 = /* @__PURE__ */ __name(async () => {
97891
97907
  const { diagram: diagram2 } = await __vitePreload(async () => {
97892
- const { diagram: diagram22 } = await import("./gitGraphDiagram-V2S2FVAM-DqO129yJ.js");
97908
+ const { diagram: diagram22 } = await import("./gitGraphDiagram-V2S2FVAM-B8lN7T9U.js");
97893
97909
  return { diagram: diagram22 };
97894
97910
  }, true ? __vite__mapDeps([16,17,18,19,2,4,5]) : void 0);
97895
97911
  return { id: id5, diagram: diagram2 };
@@ -97906,7 +97922,7 @@ var detector6 = /* @__PURE__ */ __name((txt) => {
97906
97922
  }, "detector");
97907
97923
  var loader6 = /* @__PURE__ */ __name(async () => {
97908
97924
  const { diagram: diagram2 } = await __vitePreload(async () => {
97909
- const { diagram: diagram22 } = await import("./ganttDiagram-JELNMOA3-tFaNfSzJ.js");
97925
+ const { diagram: diagram22 } = await import("./ganttDiagram-JELNMOA3-BZRuh3DE.js");
97910
97926
  return { diagram: diagram22 };
97911
97927
  }, true ? __vite__mapDeps([20,21,22,23]) : void 0);
97912
97928
  return { id: id6, diagram: diagram2 };
@@ -97923,7 +97939,7 @@ var detector7 = /* @__PURE__ */ __name((txt) => {
97923
97939
  }, "detector");
97924
97940
  var loader7 = /* @__PURE__ */ __name(async () => {
97925
97941
  const { diagram: diagram2 } = await __vitePreload(async () => {
97926
- const { diagram: diagram22 } = await import("./infoDiagram-HS3SLOUP-DJx03jNn.js");
97942
+ const { diagram: diagram22 } = await import("./infoDiagram-HS3SLOUP-Bs7DwY4Q.js");
97927
97943
  return { diagram: diagram22 };
97928
97944
  }, true ? __vite__mapDeps([24,19,2,4,5]) : void 0);
97929
97945
  return { id: id7, diagram: diagram2 };
@@ -97939,7 +97955,7 @@ var detector8 = /* @__PURE__ */ __name((txt) => {
97939
97955
  }, "detector");
97940
97956
  var loader8 = /* @__PURE__ */ __name(async () => {
97941
97957
  const { diagram: diagram2 } = await __vitePreload(async () => {
97942
- const { diagram: diagram22 } = await import("./pieDiagram-ADFJNKIX-BoZQsSD6.js");
97958
+ const { diagram: diagram22 } = await import("./pieDiagram-ADFJNKIX-K7J0sf-_.js");
97943
97959
  return { diagram: diagram22 };
97944
97960
  }, true ? __vite__mapDeps([25,17,19,2,4,5,26,27,22]) : void 0);
97945
97961
  return { id: id8, diagram: diagram2 };
@@ -97955,7 +97971,7 @@ var detector9 = /* @__PURE__ */ __name((txt) => {
97955
97971
  }, "detector");
97956
97972
  var loader9 = /* @__PURE__ */ __name(async () => {
97957
97973
  const { diagram: diagram2 } = await __vitePreload(async () => {
97958
- const { diagram: diagram22 } = await import("./quadrantDiagram-AYHSOK5B-DCwmFmS8.js");
97974
+ const { diagram: diagram22 } = await import("./quadrantDiagram-AYHSOK5B-BjOUsjH1.js");
97959
97975
  return { diagram: diagram22 };
97960
97976
  }, true ? __vite__mapDeps([28,21,22,23]) : void 0);
97961
97977
  return { id: id9, diagram: diagram2 };
@@ -97972,7 +97988,7 @@ var detector10 = /* @__PURE__ */ __name((txt) => {
97972
97988
  }, "detector");
97973
97989
  var loader10 = /* @__PURE__ */ __name(async () => {
97974
97990
  const { diagram: diagram2 } = await __vitePreload(async () => {
97975
- const { diagram: diagram22 } = await import("./xychartDiagram-PRI3JC2R-BfBVgrdy.js");
97991
+ const { diagram: diagram22 } = await import("./xychartDiagram-PRI3JC2R-7zI4Kz0F.js");
97976
97992
  return { diagram: diagram22 };
97977
97993
  }, true ? __vite__mapDeps([29,22,27,21,23]) : void 0);
97978
97994
  return { id: id10, diagram: diagram2 };
@@ -97989,7 +98005,7 @@ var detector11 = /* @__PURE__ */ __name((txt) => {
97989
98005
  }, "detector");
97990
98006
  var loader11 = /* @__PURE__ */ __name(async () => {
97991
98007
  const { diagram: diagram2 } = await __vitePreload(async () => {
97992
- const { diagram: diagram22 } = await import("./requirementDiagram-UZGBJVZJ-b103XjYN.js");
98008
+ const { diagram: diagram22 } = await import("./requirementDiagram-UZGBJVZJ-B2Q3tMos.js");
97993
98009
  return { diagram: diagram22 };
97994
98010
  }, true ? __vite__mapDeps([30,12,13]) : void 0);
97995
98011
  return { id: id11, diagram: diagram2 };
@@ -98006,7 +98022,7 @@ var detector12 = /* @__PURE__ */ __name((txt) => {
98006
98022
  }, "detector");
98007
98023
  var loader12 = /* @__PURE__ */ __name(async () => {
98008
98024
  const { diagram: diagram2 } = await __vitePreload(async () => {
98009
- const { diagram: diagram22 } = await import("./sequenceDiagram-WL72ISMW-DmmctZww.js");
98025
+ const { diagram: diagram22 } = await import("./sequenceDiagram-WL72ISMW-BuLOLu3-.js");
98010
98026
  return { diagram: diagram22 };
98011
98027
  }, true ? __vite__mapDeps([31,9,18]) : void 0);
98012
98028
  return { id: id12, diagram: diagram2 };
@@ -98026,7 +98042,7 @@ var detector13 = /* @__PURE__ */ __name((txt, config2) => {
98026
98042
  }, "detector");
98027
98043
  var loader13 = /* @__PURE__ */ __name(async () => {
98028
98044
  const { diagram: diagram2 } = await __vitePreload(async () => {
98029
- const { diagram: diagram22 } = await import("./classDiagram-2ON5EDUG-BrreExL9.js");
98045
+ const { diagram: diagram22 } = await import("./classDiagram-2ON5EDUG-D00eOaDx.js");
98030
98046
  return { diagram: diagram22 };
98031
98047
  }, true ? __vite__mapDeps([32,33,11,12,13]) : void 0);
98032
98048
  return { id: id13, diagram: diagram2 };
@@ -98046,7 +98062,7 @@ var detector14 = /* @__PURE__ */ __name((txt, config2) => {
98046
98062
  }, "detector");
98047
98063
  var loader14 = /* @__PURE__ */ __name(async () => {
98048
98064
  const { diagram: diagram2 } = await __vitePreload(async () => {
98049
- const { diagram: diagram22 } = await import("./classDiagram-v2-WZHVMYZB-BrreExL9.js");
98065
+ const { diagram: diagram22 } = await import("./classDiagram-v2-WZHVMYZB-D00eOaDx.js");
98050
98066
  return { diagram: diagram22 };
98051
98067
  }, true ? __vite__mapDeps([34,33,11,12,13]) : void 0);
98052
98068
  return { id: id14, diagram: diagram2 };
@@ -98066,7 +98082,7 @@ var detector15 = /* @__PURE__ */ __name((txt, config2) => {
98066
98082
  }, "detector");
98067
98083
  var loader15 = /* @__PURE__ */ __name(async () => {
98068
98084
  const { diagram: diagram2 } = await __vitePreload(async () => {
98069
- const { diagram: diagram22 } = await import("./stateDiagram-FKZM4ZOC-rzlWUEGW.js");
98085
+ const { diagram: diagram22 } = await import("./stateDiagram-FKZM4ZOC-CWCqsmNr.js");
98070
98086
  return { diagram: diagram22 };
98071
98087
  }, true ? __vite__mapDeps([35,36,12,13,1,2,3,4]) : void 0);
98072
98088
  return { id: id15, diagram: diagram2 };
@@ -98089,7 +98105,7 @@ var detector16 = /* @__PURE__ */ __name((txt, config2) => {
98089
98105
  }, "detector");
98090
98106
  var loader16 = /* @__PURE__ */ __name(async () => {
98091
98107
  const { diagram: diagram2 } = await __vitePreload(async () => {
98092
- const { diagram: diagram22 } = await import("./stateDiagram-v2-4FDKWEC3-kNazIMQu.js");
98108
+ const { diagram: diagram22 } = await import("./stateDiagram-v2-4FDKWEC3-DYbP1xu4.js");
98093
98109
  return { diagram: diagram22 };
98094
98110
  }, true ? __vite__mapDeps([37,36,12,13]) : void 0);
98095
98111
  return { id: id16, diagram: diagram2 };
@@ -98106,7 +98122,7 @@ var detector17 = /* @__PURE__ */ __name((txt) => {
98106
98122
  }, "detector");
98107
98123
  var loader17 = /* @__PURE__ */ __name(async () => {
98108
98124
  const { diagram: diagram2 } = await __vitePreload(async () => {
98109
- const { diagram: diagram22 } = await import("./journeyDiagram-XKPGCS4Q-CKkr3KnL.js");
98125
+ const { diagram: diagram22 } = await import("./journeyDiagram-XKPGCS4Q-7zHAqy6Q.js");
98110
98126
  return { diagram: diagram22 };
98111
98127
  }, true ? __vite__mapDeps([38,9,11,26]) : void 0);
98112
98128
  return { id: id17, diagram: diagram2 };
@@ -98176,7 +98192,7 @@ var detector18 = /* @__PURE__ */ __name((txt, config2 = {}) => {
98176
98192
  }, "detector");
98177
98193
  var loader18 = /* @__PURE__ */ __name(async () => {
98178
98194
  const { diagram: diagram2 } = await __vitePreload(async () => {
98179
- const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-CLNKs4id.js");
98195
+ const { diagram: diagram22 } = await import("./flowDiagram-NV44I4VS-B7e0sjm_.js");
98180
98196
  return { diagram: diagram22 };
98181
98197
  }, true ? __vite__mapDeps([10,11,12,13,14]) : void 0);
98182
98198
  return { id: id18, diagram: diagram2 };
@@ -98193,7 +98209,7 @@ var detector19 = /* @__PURE__ */ __name((txt) => {
98193
98209
  }, "detector");
98194
98210
  var loader19 = /* @__PURE__ */ __name(async () => {
98195
98211
  const { diagram: diagram2 } = await __vitePreload(async () => {
98196
- const { diagram: diagram22 } = await import("./timeline-definition-IT6M3QCI-8Jf8mEk1.js");
98212
+ const { diagram: diagram22 } = await import("./timeline-definition-IT6M3QCI-DaPtomWv.js");
98197
98213
  return { diagram: diagram22 };
98198
98214
  }, true ? __vite__mapDeps([39,26]) : void 0);
98199
98215
  return { id: id19, diagram: diagram2 };
@@ -98210,7 +98226,7 @@ var detector20 = /* @__PURE__ */ __name((txt) => {
98210
98226
  }, "detector");
98211
98227
  var loader20 = /* @__PURE__ */ __name(async () => {
98212
98228
  const { diagram: diagram2 } = await __vitePreload(async () => {
98213
- const { diagram: diagram22 } = await import("./mindmap-definition-VGOIOE7T-BDwLe04b.js");
98229
+ const { diagram: diagram22 } = await import("./mindmap-definition-VGOIOE7T-D8LVSYNe.js");
98214
98230
  return { diagram: diagram22 };
98215
98231
  }, true ? __vite__mapDeps([40,12,13]) : void 0);
98216
98232
  return { id: id20, diagram: diagram2 };
@@ -98227,7 +98243,7 @@ var detector21 = /* @__PURE__ */ __name((txt) => {
98227
98243
  }, "detector");
98228
98244
  var loader21 = /* @__PURE__ */ __name(async () => {
98229
98245
  const { diagram: diagram2 } = await __vitePreload(async () => {
98230
- const { diagram: diagram22 } = await import("./kanban-definition-3W4ZIXB7-CbSqCiEs.js");
98246
+ const { diagram: diagram22 } = await import("./kanban-definition-3W4ZIXB7-DJaBY2Ug.js");
98231
98247
  return { diagram: diagram22 };
98232
98248
  }, true ? __vite__mapDeps([41,11]) : void 0);
98233
98249
  return { id: id21, diagram: diagram2 };
@@ -98244,7 +98260,7 @@ var detector22 = /* @__PURE__ */ __name((txt) => {
98244
98260
  }, "detector");
98245
98261
  var loader22 = /* @__PURE__ */ __name(async () => {
98246
98262
  const { diagram: diagram2 } = await __vitePreload(async () => {
98247
- const { diagram: diagram22 } = await import("./sankeyDiagram-TZEHDZUN-Dpa0Lvc2.js");
98263
+ const { diagram: diagram22 } = await import("./sankeyDiagram-TZEHDZUN-BG5wvCeZ.js");
98248
98264
  return { diagram: diagram22 };
98249
98265
  }, true ? __vite__mapDeps([42,27,22]) : void 0);
98250
98266
  return { id: id22, diagram: diagram2 };
@@ -98261,7 +98277,7 @@ var detector23 = /* @__PURE__ */ __name((txt) => {
98261
98277
  }, "detector");
98262
98278
  var loader23 = /* @__PURE__ */ __name(async () => {
98263
98279
  const { diagram: diagram2 } = await __vitePreload(async () => {
98264
- const { diagram: diagram22 } = await import("./diagram-S2PKOQOG-DuYxXn1P.js");
98280
+ const { diagram: diagram22 } = await import("./diagram-S2PKOQOG-DYvwVsZm.js");
98265
98281
  return { diagram: diagram22 };
98266
98282
  }, true ? __vite__mapDeps([43,17,19,2,4,5]) : void 0);
98267
98283
  return { id: id23, diagram: diagram2 };
@@ -98277,7 +98293,7 @@ var detector24 = /* @__PURE__ */ __name((txt) => {
98277
98293
  }, "detector");
98278
98294
  var loader24 = /* @__PURE__ */ __name(async () => {
98279
98295
  const { diagram: diagram2 } = await __vitePreload(async () => {
98280
- const { diagram: diagram22 } = await import("./diagram-QEK2KX5R-DT2Sl1-I.js");
98296
+ const { diagram: diagram22 } = await import("./diagram-QEK2KX5R-g1GZbARf.js");
98281
98297
  return { diagram: diagram22 };
98282
98298
  }, true ? __vite__mapDeps([44,17,19,2,4,5]) : void 0);
98283
98299
  return { id: id24, diagram: diagram2 };
@@ -98293,7 +98309,7 @@ var detector25 = /* @__PURE__ */ __name((txt) => {
98293
98309
  }, "detector");
98294
98310
  var loader25 = /* @__PURE__ */ __name(async () => {
98295
98311
  const { diagram: diagram2 } = await __vitePreload(async () => {
98296
- const { diagram: diagram22 } = await import("./blockDiagram-VD42YOAC-BLN9Y7a8.js");
98312
+ const { diagram: diagram22 } = await import("./blockDiagram-VD42YOAC-Cwqz2taZ.js");
98297
98313
  return { diagram: diagram22 };
98298
98314
  }, true ? __vite__mapDeps([45,11,5,2,1,14]) : void 0);
98299
98315
  return { id: id25, diagram: diagram2 };
@@ -98310,7 +98326,7 @@ var detector26 = /* @__PURE__ */ __name((txt) => {
98310
98326
  }, "detector");
98311
98327
  var loader26 = /* @__PURE__ */ __name(async () => {
98312
98328
  const { diagram: diagram2 } = await __vitePreload(async () => {
98313
- const { diagram: diagram22 } = await import("./architectureDiagram-VXUJARFQ-522n5Xxv.js");
98329
+ const { diagram: diagram22 } = await import("./architectureDiagram-VXUJARFQ-DdfdIFQM.js");
98314
98330
  return { diagram: diagram22 };
98315
98331
  }, true ? __vite__mapDeps([46,17,19,2,4,5,7]) : void 0);
98316
98332
  return { id: id26, diagram: diagram2 };
@@ -98327,7 +98343,7 @@ var detector27 = /* @__PURE__ */ __name((txt) => {
98327
98343
  }, "detector");
98328
98344
  var loader27 = /* @__PURE__ */ __name(async () => {
98329
98345
  const { diagram: diagram2 } = await __vitePreload(async () => {
98330
- const { diagram: diagram22 } = await import("./diagram-PSM6KHXK-YfLDy7xM.js");
98346
+ const { diagram: diagram22 } = await import("./diagram-PSM6KHXK-htuDE0_8.js");
98331
98347
  return { diagram: diagram22 };
98332
98348
  }, true ? __vite__mapDeps([47,13,17,19,2,4,5,23,27,22]) : void 0);
98333
98349
  return { id: id27, diagram: diagram2 };
@@ -99185,6 +99201,9 @@ class DomindsMermaidBlock extends HTMLElement {
99185
99201
  if (!customElements.get("dominds-mermaid-block")) {
99186
99202
  customElements.define("dominds-mermaid-block", DomindsMermaidBlock);
99187
99203
  }
99204
+ const WORKSPACE_FILE_LINK_PREFIX = "/ws/";
99205
+ const WORKSPACE_FILE_PREVIEW_ROUTE = "/f";
99206
+ const DOMINDS_RTWS_DATA_ATTR = "data-dominds-rtws";
99188
99207
  function slugifyHeadingId(raw) {
99189
99208
  const trimmed = raw.trim();
99190
99209
  if (!trimmed) return "";
@@ -99202,6 +99221,131 @@ function parseFenceLanguage(info2) {
99202
99221
  if (spaceIndex < 0) return trimmed;
99203
99222
  return trimmed.slice(0, spaceIndex);
99204
99223
  }
99224
+ function parseWorkspaceFileLinkTarget(rawHref) {
99225
+ const trimmed = rawHref.trim();
99226
+ if (!trimmed.startsWith(WORKSPACE_FILE_LINK_PREFIX)) return null;
99227
+ const queryIdx = trimmed.indexOf("?");
99228
+ const hashIdx = trimmed.indexOf("#");
99229
+ const cutIdxCandidates = [queryIdx, hashIdx].filter((idx) => idx >= 0);
99230
+ const endIdx = cutIdxCandidates.length > 0 ? Math.min(...cutIdxCandidates) : trimmed.length;
99231
+ const hrefWithoutQueryOrHash = trimmed.slice(0, endIdx);
99232
+ if (hrefWithoutQueryOrHash.length < 1) return null;
99233
+ const lineColMatch = hrefWithoutQueryOrHash.match(/^(.*):([1-9]\d*)(?::([1-9]\d*))?$/);
99234
+ const rawPath = lineColMatch ? lineColMatch[1] : hrefWithoutQueryOrHash;
99235
+ if (!rawPath.startsWith(WORKSPACE_FILE_LINK_PREFIX)) return null;
99236
+ if (rawPath.endsWith("/")) return null;
99237
+ let absolutePath = rawPath;
99238
+ try {
99239
+ absolutePath = decodeURIComponent(rawPath);
99240
+ } catch {
99241
+ absolutePath = rawPath;
99242
+ }
99243
+ if (!absolutePath.startsWith(WORKSPACE_FILE_LINK_PREFIX)) return null;
99244
+ const lineRaw = lineColMatch?.[2];
99245
+ const columnRaw = lineColMatch?.[3];
99246
+ const line2 = typeof lineRaw === "string" ? Number.parseInt(lineRaw, 10) : void 0;
99247
+ const column2 = typeof columnRaw === "string" ? Number.parseInt(columnRaw, 10) : void 0;
99248
+ return {
99249
+ absolutePath,
99250
+ line: typeof line2 === "number" ? line2 : void 0,
99251
+ column: typeof column2 === "number" ? column2 : void 0
99252
+ };
99253
+ }
99254
+ function normalizeSlashPath(value) {
99255
+ return value.replace(/\\/g, "/");
99256
+ }
99257
+ function normalizeRtwsAbsPath(value) {
99258
+ const normalized = normalizeSlashPath(value).replace(/\/+/g, "/");
99259
+ if (normalized === "/") return normalized;
99260
+ return normalized.replace(/\/+$/g, "");
99261
+ }
99262
+ function getCurrentRtwsAbsPath() {
99263
+ if (typeof document !== "undefined") {
99264
+ const raw = document.documentElement.getAttribute(DOMINDS_RTWS_DATA_ATTR);
99265
+ if (typeof raw === "string") {
99266
+ const trimmed = raw.trim();
99267
+ if (trimmed.length > 0 && trimmed.startsWith("/")) {
99268
+ return normalizeRtwsAbsPath(trimmed);
99269
+ }
99270
+ }
99271
+ }
99272
+ if (typeof window === "undefined") return null;
99273
+ try {
99274
+ const cached = window.localStorage.getItem("dominds.rtws");
99275
+ if (typeof cached !== "string") return null;
99276
+ const trimmed = cached.trim();
99277
+ if (trimmed.length < 1 || !trimmed.startsWith("/")) return null;
99278
+ return normalizeRtwsAbsPath(trimmed);
99279
+ } catch {
99280
+ return null;
99281
+ }
99282
+ }
99283
+ function toRtwsRelativePath(absolutePath, rtwsAbsPath) {
99284
+ const normalizedAbs = normalizeRtwsAbsPath(absolutePath);
99285
+ const normalizedRtws = normalizeRtwsAbsPath(rtwsAbsPath);
99286
+ if (normalizedAbs === normalizedRtws) return null;
99287
+ const prefix = normalizedRtws === "/" ? "/" : `${normalizedRtws}/`;
99288
+ if (!normalizedAbs.startsWith(prefix)) return null;
99289
+ const relativePath = normalizedAbs.slice(prefix.length);
99290
+ if (relativePath.length < 1) return null;
99291
+ if (relativePath.includes("\0")) return null;
99292
+ const segments = relativePath.split("/");
99293
+ if (segments.some((segment) => segment.length < 1 || segment === "." || segment === "..")) {
99294
+ return null;
99295
+ }
99296
+ return relativePath;
99297
+ }
99298
+ function resolveWorkspaceFilePreviewTarget(linkTarget) {
99299
+ const rtwsAbsPath = getCurrentRtwsAbsPath();
99300
+ if (rtwsAbsPath === null) return null;
99301
+ const relativePath = toRtwsRelativePath(linkTarget.absolutePath, rtwsAbsPath);
99302
+ if (relativePath === null) return null;
99303
+ return {
99304
+ relativePath,
99305
+ line: linkTarget.line,
99306
+ column: linkTarget.column
99307
+ };
99308
+ }
99309
+ function getAuthFromCurrentUrl() {
99310
+ if (typeof window === "undefined") return null;
99311
+ try {
99312
+ const url = new URL(window.location.href);
99313
+ const auth = url.searchParams.get("auth");
99314
+ if (typeof auth !== "string") return null;
99315
+ const trimmed = auth.trim();
99316
+ return trimmed.length > 0 ? trimmed : null;
99317
+ } catch {
99318
+ return null;
99319
+ }
99320
+ }
99321
+ function buildWorkspaceFilePreviewHref(target) {
99322
+ const encodedPath = target.relativePath.split("/").map((segment) => encodeURIComponent(segment)).join("/");
99323
+ const routePath = `${WORKSPACE_FILE_PREVIEW_ROUTE}/${encodedPath}`;
99324
+ const params = new URLSearchParams();
99325
+ if (typeof target.line === "number") {
99326
+ params.set("line", String(target.line));
99327
+ }
99328
+ if (typeof target.column === "number") {
99329
+ params.set("column", String(target.column));
99330
+ }
99331
+ const auth = getAuthFromCurrentUrl();
99332
+ if (auth !== null) {
99333
+ params.set("auth", auth);
99334
+ }
99335
+ const query = params.toString();
99336
+ if (query.length < 1) return routePath;
99337
+ return `${routePath}?${query}`;
99338
+ }
99339
+ function applyOpenInNewTabAttrs(token2) {
99340
+ token2.attrSet("target", "_blank");
99341
+ const relValue = token2.attrGet("rel");
99342
+ const relTokens = new Set(
99343
+ typeof relValue === "string" ? relValue.split(/\s+/).map((part) => part.trim()).filter((part) => part.length > 0) : []
99344
+ );
99345
+ relTokens.add("noopener");
99346
+ relTokens.add("noreferrer");
99347
+ token2.attrSet("rel", Array.from(relTokens).join(" "));
99348
+ }
99205
99349
  function installDomindsMathBlockRule(md2) {
99206
99350
  md2.block.ruler.before(
99207
99351
  "fence",
@@ -99297,15 +99441,17 @@ installDomindsMathBlockRule(md);
99297
99441
  md.renderer.rules.link_open = (tokens, idx, options, _env, self2) => {
99298
99442
  const token2 = tokens[idx];
99299
99443
  const href = token2.attrGet("href");
99300
- if (typeof href === "string" && /^https?:\/\//i.test(href.trim())) {
99301
- token2.attrSet("target", "_blank");
99302
- const relValue = token2.attrGet("rel");
99303
- const relTokens = new Set(
99304
- typeof relValue === "string" ? relValue.split(/\s+/).map((part) => part.trim()).filter((part) => part.length > 0) : []
99305
- );
99306
- relTokens.add("noopener");
99307
- relTokens.add("noreferrer");
99308
- token2.attrSet("rel", Array.from(relTokens).join(" "));
99444
+ if (typeof href === "string") {
99445
+ const workspaceFileLink = parseWorkspaceFileLinkTarget(href);
99446
+ const previewTarget = workspaceFileLink === null ? null : resolveWorkspaceFilePreviewTarget(workspaceFileLink);
99447
+ if (previewTarget) {
99448
+ token2.attrSet("href", buildWorkspaceFilePreviewHref(previewTarget));
99449
+ applyOpenInNewTabAttrs(token2);
99450
+ return self2.renderToken(tokens, idx, options);
99451
+ }
99452
+ if (/^https?:\/\//i.test(href.trim())) {
99453
+ applyOpenInNewTabAttrs(token2);
99454
+ }
99309
99455
  }
99310
99456
  return self2.renderToken(tokens, idx, options);
99311
99457
  };
@@ -102322,7 +102468,7 @@ ${event.content}`;
102322
102468
  box-sizing: border-box;
102323
102469
  padding: 0 12px 10px 12px;
102324
102470
  pointer-events: none;
102325
- z-index: 50;
102471
+ z-index: var(--dominds-z-sticky, 50);
102326
102472
  }
102327
102473
 
102328
102474
  .scroll-to-bottom-wrap.hidden {
@@ -104884,7 +105030,7 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
104884
105030
  align-items: center;
104885
105031
  justify-content: center;
104886
105032
  background: transparent;
104887
- z-index: 2;
105033
+ z-index: var(--dominds-z-local-handle, 2);
104888
105034
  }
104889
105035
 
104890
105036
  .input-resize-handle::after {
@@ -104914,7 +105060,7 @@ const _DomindsQ4HInput = class _DomindsQ4HInput extends HTMLElement {
104914
105060
  padding: 10px;
104915
105061
  background: var(--dominds-sidebar-bg, #f8f9fa);
104916
105062
  position: relative;
104917
- z-index: 1;
105063
+ z-index: var(--dominds-z-local-raised, 1);
104918
105064
  }
104919
105065
 
104920
105066
  .input-wrapper {
@@ -107585,7 +107731,7 @@ class DomindsTeamMembers extends HTMLElement {
107585
107731
  align-items: center;
107586
107732
  justify-content: center;
107587
107733
  font-size: var(--dominds-font-size-sm, 12px);
107588
- z-index: 10;
107734
+ z-index: var(--dominds-z-local-overlay, 10);
107589
107735
  border-radius: 10px;
107590
107736
  }
107591
107737
 
@@ -110383,7 +110529,7 @@ const _RunningDialogList = class _RunningDialogList extends HTMLElement {
110383
110529
  content: '';
110384
110530
  position: absolute;
110385
110531
  inset: -28px;
110386
- z-index: 0;
110532
+ z-index: var(--dominds-z-local-base, 0);
110387
110533
  pointer-events: none;
110388
110534
  background:
110389
110535
  radial-gradient(
@@ -110407,7 +110553,7 @@ const _RunningDialogList = class _RunningDialogList extends HTMLElement {
110407
110553
  bottom: 0;
110408
110554
  left: -120%;
110409
110555
  width: 240%;
110410
- z-index: 0;
110556
+ z-index: var(--dominds-z-local-base, 0);
110411
110557
  transform: translateX(0);
110412
110558
  pointer-events: none;
110413
110559
  opacity: 0.5;
@@ -110438,7 +110584,7 @@ const _RunningDialogList = class _RunningDialogList extends HTMLElement {
110438
110584
  content: '';
110439
110585
  position: absolute;
110440
110586
  inset: 0;
110441
- z-index: 0;
110587
+ z-index: var(--dominds-z-local-base, 0);
110442
110588
  pointer-events: none;
110443
110589
  border-radius: 8px;
110444
110590
  background:
@@ -110459,7 +110605,7 @@ const _RunningDialogList = class _RunningDialogList extends HTMLElement {
110459
110605
  .dialog-item.state-proceeding > .dialog-row,
110460
110606
  .dialog-item.gen-active > .dialog-row {
110461
110607
  position: relative;
110462
- z-index: 1;
110608
+ z-index: var(--dominds-z-local-raised, 1);
110463
110609
  }
110464
110610
 
110465
110611
  @keyframes dialogScanlineSweep {
@@ -112319,13 +112465,6 @@ ${formatUiLanguageOptionLabel({
112319
112465
  --dominds-line-height-tight: 1.18;
112320
112466
  --dominds-line-height-dense: 1.24;
112321
112467
  --dominds-line-height-base: 1.38;
112322
- --dominds-z-sidebar-mobile: 10;
112323
- --dominds-z-overlay-modal: 1000;
112324
- --dominds-z-overlay-popover: 1002;
112325
- --dominds-z-overlay-reminders: 2000;
112326
- --dominds-z-overlay-toast: 3000;
112327
- --dominds-z-overlay-toast-history: 4100;
112328
- --dominds-z-overlay-problems: 4200;
112329
112468
  }
112330
112469
 
112331
112470
  .app-container {
@@ -112688,6 +112827,11 @@ ${formatUiLanguageOptionLabel({
112688
112827
  left: auto;
112689
112828
  transform: none;
112690
112829
  background: var(--dominds-fg, #333333);
112830
+ background: color-mix(
112831
+ in srgb,
112832
+ var(--dominds-fg, #333333) var(--dominds-alpha-surface-tooltip, 94%),
112833
+ transparent
112834
+ );
112691
112835
  color: var(--dominds-bg, #ffffff);
112692
112836
  padding: 6px 8px;
112693
112837
  border-radius: 6px;
@@ -112701,7 +112845,7 @@ ${formatUiLanguageOptionLabel({
112701
112845
  opacity: 0;
112702
112846
  pointer-events: none;
112703
112847
  transition: opacity 0.15s ease;
112704
- z-index: var(--dominds-z-overlay-popover);
112848
+ z-index: var(--dominds-z-overlay-tooltip, 1100);
112705
112849
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
112706
112850
  }
112707
112851
 
@@ -112714,6 +112858,11 @@ ${formatUiLanguageOptionLabel({
112714
112858
  transform: none;
112715
112859
  border: 6px solid transparent;
112716
112860
  border-bottom-color: var(--dominds-fg, #333333);
112861
+ border-bottom-color: color-mix(
112862
+ in srgb,
112863
+ var(--dominds-fg, #333333) var(--dominds-alpha-surface-tooltip, 94%),
112864
+ transparent
112865
+ );
112717
112866
  }
112718
112867
 
112719
112868
  #navibar-context-health-wrap:hover .navibar-tooltip {
@@ -112729,9 +112878,14 @@ ${formatUiLanguageOptionLabel({
112729
112878
  border: 1px solid var(--dominds-border, #e0e0e0);
112730
112879
  border-radius: 8px;
112731
112880
  background: var(--dominds-bg, #ffffff);
112881
+ background: color-mix(
112882
+ in srgb,
112883
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-panel, 96%),
112884
+ transparent
112885
+ );
112732
112886
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
112733
112887
  overflow: hidden;
112734
- z-index: var(--dominds-z-overlay-problems);
112888
+ z-index: var(--dominds-z-overlay-problems, 1200);
112735
112889
  display: flex;
112736
112890
  flex-direction: column;
112737
112891
  }
@@ -112887,11 +113041,16 @@ ${formatUiLanguageOptionLabel({
112887
113041
  min-width: 300px;
112888
113042
  max-width: 380px;
112889
113043
  background: var(--dominds-sidebar-bg, #f8f9fa);
113044
+ background: color-mix(
113045
+ in srgb,
113046
+ var(--dominds-sidebar-bg, #f8f9fa) var(--dominds-alpha-surface-popover, 92%),
113047
+ transparent
113048
+ );
112890
113049
  border: 1px solid var(--dominds-border, #e0e0e0);
112891
113050
  border-radius: 8px;
112892
113051
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
112893
113052
  padding: 4px;
112894
- z-index: var(--dominds-z-overlay-popover);
113053
+ z-index: var(--dominds-z-overlay-popover, 1000);
112895
113054
  }
112896
113055
 
112897
113056
  .ui-language-menu-item {
@@ -112998,12 +113157,13 @@ ${formatUiLanguageOptionLabel({
112998
113157
  .toast-history-modal {
112999
113158
  position: fixed;
113000
113159
  inset: 0;
113001
- z-index: var(--dominds-z-overlay-toast-history);
113002
- display: flex;
113160
+ z-index: var(--dominds-z-overlay-toast-history, 2100);
113161
+ display: flex;
113003
113162
  align-items: flex-start;
113004
113163
  justify-content: center;
113005
113164
  padding: 48px 10px 10px;
113006
113165
  background: rgba(0, 0, 0, 0.35);
113166
+ background: color-mix(in srgb, #000000 var(--dominds-alpha-overlay-backdrop, 35%), transparent);
113007
113167
  }
113008
113168
 
113009
113169
  .toast-history-modal.hidden {
@@ -113014,6 +113174,11 @@ ${formatUiLanguageOptionLabel({
113014
113174
  width: min(860px, calc(100vw - 32px));
113015
113175
  max-height: calc(100vh - 72px);
113016
113176
  background: var(--dominds-bg, #ffffff);
113177
+ background: color-mix(
113178
+ in srgb,
113179
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-panel, 96%),
113180
+ transparent
113181
+ );
113017
113182
  border: 1px solid var(--dominds-border, #e0e0e0);
113018
113183
  border-radius: 10px;
113019
113184
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
@@ -114193,7 +114358,7 @@ ${formatUiLanguageOptionLabel({
114193
114358
  position: absolute;
114194
114359
  left: -280px;
114195
114360
  transition: left 0.3s ease;
114196
- z-index: var(--dominds-z-sidebar-mobile);
114361
+ z-index: var(--dominds-z-sidebar-mobile, 120);
114197
114362
  resize: none;
114198
114363
  }
114199
114364
 
@@ -114214,7 +114379,7 @@ ${formatUiLanguageOptionLabel({
114214
114379
  left: 0;
114215
114380
  right: 0;
114216
114381
  bottom: 0;
114217
- z-index: var(--dominds-z-overlay-modal);
114382
+ z-index: var(--dominds-z-overlay-modal, 2000);
114218
114383
  display: flex;
114219
114384
  align-items: center;
114220
114385
  justify-content: center;
@@ -114246,12 +114411,22 @@ ${formatUiLanguageOptionLabel({
114246
114411
  right: 0;
114247
114412
  bottom: 0;
114248
114413
  background: rgba(0, 0, 0, 0.5);
114414
+ background: color-mix(
114415
+ in srgb,
114416
+ #000000 var(--dominds-alpha-overlay-backdrop-strong, 50%),
114417
+ transparent
114418
+ );
114249
114419
  backdrop-filter: blur(2px);
114250
114420
  }
114251
114421
 
114252
114422
  .modal-content {
114253
114423
  position: relative;
114254
114424
  background: var(--dominds-bg, #ffffff);
114425
+ background: color-mix(
114426
+ in srgb,
114427
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-panel, 96%),
114428
+ transparent
114429
+ );
114255
114430
  border: 1px solid var(--dominds-border, #e0e0e0);
114256
114431
  border-radius: 10px;
114257
114432
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
@@ -114443,13 +114618,18 @@ ${formatUiLanguageOptionLabel({
114443
114618
  left: 0;
114444
114619
  right: 0;
114445
114620
  background: var(--dominds-bg, #ffffff);
114621
+ background: color-mix(
114622
+ in srgb,
114623
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-popover, 92%),
114624
+ transparent
114625
+ );
114446
114626
  border: 1px solid var(--dominds-border, #e0e0e0);
114447
114627
  border-top: none;
114448
114628
  border-radius: 0 0 6px 6px;
114449
114629
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
114450
114630
  max-height: 400px;
114451
114631
  overflow-y: auto;
114452
- z-index: var(--dominds-z-overlay-popover);
114632
+ z-index: var(--dominds-z-overlay-popover, 1000);
114453
114633
  display: none;
114454
114634
  }
114455
114635
 
@@ -114783,6 +114963,11 @@ ${formatUiLanguageOptionLabel({
114783
114963
  /* Simple modal theming */
114784
114964
  .modal-content {
114785
114965
  background: var(--dominds-bg);
114966
+ background: color-mix(
114967
+ in srgb,
114968
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-panel, 96%),
114969
+ transparent
114970
+ );
114786
114971
  border-color: var(--dominds-border);
114787
114972
  }
114788
114973
 
@@ -114817,6 +115002,11 @@ ${formatUiLanguageOptionLabel({
114817
115002
 
114818
115003
  .task-doc-suggestions {
114819
115004
  background: var(--dominds-bg);
115005
+ background: color-mix(
115006
+ in srgb,
115007
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-popover, 92%),
115008
+ transparent
115009
+ );
114820
115010
  border-color: var(--dominds-border);
114821
115011
  }
114822
115012
 
@@ -114852,10 +115042,14 @@ ${formatUiLanguageOptionLabel({
114852
115042
  flex-direction: column;
114853
115043
  border: 1px solid var(--dominds-border, #e0e0e0);
114854
115044
  background: var(--dominds-bg, #ffffff);
115045
+ background: color-mix(
115046
+ in srgb,
115047
+ var(--dominds-bg, #ffffff) var(--dominds-alpha-surface-reminders, 92%),
115048
+ transparent
115049
+ );
114855
115050
  border-radius: 10px;
114856
115051
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
114857
- z-index: var(--dominds-z-overlay-reminders);
114858
- opacity: 0.92;
115052
+ z-index: var(--dominds-z-overlay-reminders, 900);
114859
115053
  }
114860
115054
 
114861
115055
  .reminders-widget-header {
@@ -115737,31 +115931,46 @@ ${content}`;
115737
115931
  const prevBtn = target.closest("#course-navi-prev");
115738
115932
  if (prevBtn) {
115739
115933
  if (this.toolbarCurrentCourse > 1) {
115934
+ const targetCourse = this.toolbarCurrentCourse - 1;
115740
115935
  const dc = this.shadowRoot?.querySelector(
115741
115936
  "#dialog-container"
115742
115937
  );
115743
115938
  if (dc && typeof dc.setCurrentCourse === "function") {
115744
- await dc.setCurrentCourse(this.toolbarCurrentCourse - 1);
115939
+ await dc.setCurrentCourse(targetCourse);
115745
115940
  }
115746
- this.toolbarCurrentCourse = Math.max(1, this.toolbarCurrentCourse - 1);
115941
+ this.toolbarCurrentCourse = Math.max(1, targetCourse);
115747
115942
  this.updateToolbarCourseDisplay();
115943
+ if (this.currentDialog) {
115944
+ this.syncAddressBarToDeepLink({
115945
+ kind: "dialog",
115946
+ rootId: this.currentDialog.rootId,
115947
+ selfId: this.currentDialog.selfId,
115948
+ course: this.toolbarCurrentCourse
115949
+ });
115950
+ }
115748
115951
  }
115749
115952
  return;
115750
115953
  }
115751
115954
  const nextBtn = target.closest("#course-navi-next");
115752
115955
  if (nextBtn) {
115753
115956
  if (this.toolbarCurrentCourse < this.toolbarTotalCourses) {
115957
+ const targetCourse = this.toolbarCurrentCourse + 1;
115754
115958
  const dc = this.shadowRoot?.querySelector(
115755
115959
  "#dialog-container"
115756
115960
  );
115757
115961
  if (dc && typeof dc.setCurrentCourse === "function") {
115758
- await dc.setCurrentCourse(this.toolbarCurrentCourse + 1);
115962
+ await dc.setCurrentCourse(targetCourse);
115759
115963
  }
115760
- this.toolbarCurrentCourse = Math.min(
115761
- this.toolbarTotalCourses,
115762
- this.toolbarCurrentCourse + 1
115763
- );
115964
+ this.toolbarCurrentCourse = Math.min(this.toolbarTotalCourses, targetCourse);
115764
115965
  this.updateToolbarCourseDisplay();
115966
+ if (this.currentDialog) {
115967
+ this.syncAddressBarToDeepLink({
115968
+ kind: "dialog",
115969
+ rootId: this.currentDialog.rootId,
115970
+ selfId: this.currentDialog.selfId,
115971
+ course: this.toolbarCurrentCourse
115972
+ });
115973
+ }
115765
115974
  }
115766
115975
  return;
115767
115976
  }
@@ -116392,9 +116601,10 @@ ${content}`;
116392
116601
  const params = new URLSearchParams(window.location.search);
116393
116602
  const rootId = (params.get("rootId") ?? "").trim();
116394
116603
  const selfRaw = (params.get("selfId") ?? "").trim();
116604
+ const course = parseOptionalInt(params.get("course"));
116395
116605
  if (rootId === "") return null;
116396
116606
  const selfId = selfRaw === "" ? rootId : selfRaw;
116397
- return { kind: "dialog", rootId, selfId };
116607
+ return { kind: "dialog", rootId, selfId, course };
116398
116608
  }
116399
116609
  if (kind === "callsite") {
116400
116610
  const params = new URLSearchParams(window.location.search);
@@ -116481,7 +116691,7 @@ ${content}`;
116481
116691
  status: rootMatch.status
116482
116692
  };
116483
116693
  }
116484
- buildDialogDeepLinkUrl(rootId, selfId) {
116694
+ buildDialogDeepLinkUrl(rootId, selfId, course) {
116485
116695
  const url = new URL(window.location.href);
116486
116696
  url.searchParams.delete("rootId");
116487
116697
  url.searchParams.delete("selfId");
@@ -116494,6 +116704,38 @@ ${content}`;
116494
116704
  url.pathname = "/dl/dialog";
116495
116705
  url.searchParams.set("rootId", rootId);
116496
116706
  url.searchParams.set("selfId", selfId);
116707
+ if (typeof course === "number") {
116708
+ url.searchParams.set("course", String(Math.floor(course)));
116709
+ }
116710
+ return url;
116711
+ }
116712
+ buildCallsiteDeepLinkUrl(rootId, selfId, course, callId) {
116713
+ const url = this.buildDialogDeepLinkUrl(rootId, selfId);
116714
+ url.pathname = "/dl/callsite";
116715
+ url.searchParams.set("course", String(Math.floor(course)));
116716
+ url.searchParams.set("callId", callId);
116717
+ return url;
116718
+ }
116719
+ buildGenseqDeepLinkUrl(rootId, selfId, course, genseq) {
116720
+ const url = this.buildDialogDeepLinkUrl(rootId, selfId);
116721
+ url.pathname = "/dl/genseq";
116722
+ url.searchParams.set("course", String(Math.floor(course)));
116723
+ url.searchParams.set("genseq", String(Math.floor(genseq)));
116724
+ return url;
116725
+ }
116726
+ buildQ4HDeepLinkUrl(params) {
116727
+ const url = this.buildDialogDeepLinkUrl(params.rootId, params.selfId);
116728
+ url.pathname = "/dl/q4h";
116729
+ url.searchParams.set("qid", params.questionId);
116730
+ if (typeof params.course === "number") {
116731
+ url.searchParams.set("course", String(Math.floor(params.course)));
116732
+ }
116733
+ if (typeof params.messageIndex === "number") {
116734
+ url.searchParams.set("msg", String(Math.floor(params.messageIndex)));
116735
+ }
116736
+ if (typeof params.callId === "string" && params.callId.trim() !== "") {
116737
+ url.searchParams.set("callId", params.callId.trim());
116738
+ }
116497
116739
  return url;
116498
116740
  }
116499
116741
  stripUrlAuthParamAfterSuccessfulOpen() {
@@ -116512,6 +116754,48 @@ ${content}`;
116512
116754
  }
116513
116755
  window.history.replaceState({}, "", target.toString());
116514
116756
  }
116757
+ syncAddressBarToDeepLink(intent) {
116758
+ let target = null;
116759
+ if (intent.kind === "dialog") {
116760
+ target = this.buildDialogDeepLinkUrl(intent.rootId, intent.selfId, intent.course);
116761
+ } else if (intent.kind === "callsite") {
116762
+ target = this.buildCallsiteDeepLinkUrl(
116763
+ intent.rootId,
116764
+ intent.selfId,
116765
+ intent.course,
116766
+ intent.callId
116767
+ );
116768
+ } else if (intent.kind === "genseq") {
116769
+ target = this.buildGenseqDeepLinkUrl(
116770
+ intent.rootId,
116771
+ intent.selfId,
116772
+ intent.course,
116773
+ intent.genseq
116774
+ );
116775
+ } else if (intent.kind === "q4h") {
116776
+ const rootId = intent.rootId?.trim() ?? "";
116777
+ const selfId = intent.selfId?.trim() ?? "";
116778
+ if (rootId !== "" && selfId !== "") {
116779
+ target = this.buildQ4HDeepLinkUrl({
116780
+ questionId: intent.questionId,
116781
+ rootId,
116782
+ selfId,
116783
+ course: intent.course,
116784
+ messageIndex: intent.messageIndex,
116785
+ callId: intent.callId
116786
+ });
116787
+ }
116788
+ } else {
116789
+ const _exhaustive = intent;
116790
+ return _exhaustive;
116791
+ }
116792
+ if (!target) return;
116793
+ const current = new URL(window.location.href);
116794
+ if (current.pathname === target.pathname && current.search === target.search && current.hash === target.hash) {
116795
+ return;
116796
+ }
116797
+ window.history.replaceState({}, "", target.toString());
116798
+ }
116515
116799
  async copyTextToClipboard(text2) {
116516
116800
  try {
116517
116801
  if (navigator.clipboard && typeof navigator.clipboard.writeText === "function") {
@@ -116622,6 +116906,9 @@ ${content}`;
116622
116906
  status: resolvedStatus
116623
116907
  };
116624
116908
  };
116909
+ const ensureDialogSelectedWithoutAddressSync = async (dialogInfo2) => {
116910
+ await this.restoreDialogFromDeepLink(dialogInfo2);
116911
+ };
116625
116912
  if (intent.kind === "dialog") {
116626
116913
  const dialogInfo2 = await resolveDialogInfoForDeepLink(intent.rootId, intent.selfId);
116627
116914
  if (!dialogInfo2) {
@@ -116629,8 +116916,17 @@ ${content}`;
116629
116916
  this.pendingDeepLink = null;
116630
116917
  return;
116631
116918
  }
116632
- await this.selectDialog(dialogInfo2);
116919
+ await ensureDialogSelectedWithoutAddressSync(dialogInfo2);
116920
+ if (typeof intent.course === "number") {
116921
+ const dialogContainer2 = this.shadowRoot?.querySelector(
116922
+ "#dialog-container"
116923
+ );
116924
+ if (dialogContainer2) {
116925
+ await dialogContainer2.setCurrentCourse(intent.course);
116926
+ }
116927
+ }
116633
116928
  this.q4hInput?.focusInput();
116929
+ this.syncAddressBarToDeepLink(intent);
116634
116930
  this.pendingDeepLink = null;
116635
116931
  return;
116636
116932
  }
@@ -116641,7 +116937,7 @@ ${content}`;
116641
116937
  this.pendingDeepLink = null;
116642
116938
  return;
116643
116939
  }
116644
- await this.selectDialog(dialogInfo2);
116940
+ await ensureDialogSelectedWithoutAddressSync(dialogInfo2);
116645
116941
  const dialogContainer2 = this.shadowRoot?.querySelector(
116646
116942
  "#dialog-container"
116647
116943
  );
@@ -116655,6 +116951,7 @@ ${content}`;
116655
116951
  })
116656
116952
  );
116657
116953
  }
116954
+ this.syncAddressBarToDeepLink(intent);
116658
116955
  this.q4hInput?.focusInput();
116659
116956
  this.pendingDeepLink = null;
116660
116957
  return;
@@ -116666,7 +116963,7 @@ ${content}`;
116666
116963
  this.pendingDeepLink = null;
116667
116964
  return;
116668
116965
  }
116669
- await this.selectDialog(dialogInfo2);
116966
+ await ensureDialogSelectedWithoutAddressSync(dialogInfo2);
116670
116967
  const dialogContainer2 = this.shadowRoot?.querySelector(
116671
116968
  "#dialog-container"
116672
116969
  );
@@ -116680,6 +116977,7 @@ ${content}`;
116680
116977
  })
116681
116978
  );
116682
116979
  }
116980
+ this.syncAddressBarToDeepLink(intent);
116683
116981
  this.q4hInput?.focusInput();
116684
116982
  this.pendingDeepLink = null;
116685
116983
  return;
@@ -116699,7 +116997,7 @@ ${content}`;
116699
116997
  this.pendingDeepLink = null;
116700
116998
  return;
116701
116999
  }
116702
- await this.selectDialog(dialogInfo);
117000
+ await ensureDialogSelectedWithoutAddressSync(dialogInfo);
116703
117001
  const dialogContainer = this.shadowRoot?.querySelector(
116704
117002
  "#dialog-container"
116705
117003
  );
@@ -116741,6 +117039,15 @@ ${content}`;
116741
117039
  } else {
116742
117040
  this.q4hInput?.focusInput();
116743
117041
  }
117042
+ this.syncAddressBarToDeepLink({
117043
+ kind: "q4h",
117044
+ questionId: intent.questionId,
117045
+ rootId,
117046
+ selfId,
117047
+ course,
117048
+ messageIndex,
117049
+ callId
117050
+ });
116744
117051
  this.pendingDeepLink = null;
116745
117052
  } finally {
116746
117053
  this.deepLinkInFlight = false;
@@ -117305,6 +117612,17 @@ ${content}`;
117305
117612
  const resolved = workspace !== "" ? workspace : rtws;
117306
117613
  if (resolved !== "") {
117307
117614
  this.backendRtws = resolved;
117615
+ document.documentElement.setAttribute("data-dominds-rtws", resolved);
117616
+ try {
117617
+ window.localStorage.setItem("dominds.rtws", resolved);
117618
+ } catch {
117619
+ }
117620
+ } else {
117621
+ document.documentElement.removeAttribute("data-dominds-rtws");
117622
+ try {
117623
+ window.localStorage.removeItem("dominds.rtws");
117624
+ } catch {
117625
+ }
117308
117626
  }
117309
117627
  }
117310
117628
  if (data && typeof data.version === "string") {
@@ -117315,6 +117633,11 @@ ${content}`;
117315
117633
  console.error("Failed to load rtws info:", error2);
117316
117634
  this.backendRtws = "Unknown rtws";
117317
117635
  this.backendVersion = "";
117636
+ document.documentElement.removeAttribute("data-dominds-rtws");
117637
+ try {
117638
+ window.localStorage.removeItem("dominds.rtws");
117639
+ } catch {
117640
+ }
117318
117641
  this.updateRtwsInfo();
117319
117642
  }
117320
117643
  }
@@ -117453,7 +117776,7 @@ ${content}`;
117453
117776
  this.q4hInput.setDisabled(disabled);
117454
117777
  }
117455
117778
  }
117456
- async selectDialog(dialog) {
117779
+ async applyDialogSelection(dialog, options) {
117457
117780
  const selfId = dialog.selfId || dialog.rootId;
117458
117781
  const rootId = dialog.rootId || dialog.selfId;
117459
117782
  if (!selfId || !rootId) {
@@ -117571,14 +117894,30 @@ ${content}`;
117571
117894
  this.renderRemindersWidget();
117572
117895
  this.setupRemindersWidgetDrag();
117573
117896
  }
117574
- this.syncAddressBarToDialogDeepLink(normalizedDialog);
117575
- const t2 = getUiStrings(this.uiLanguage);
117576
- this.showSuccess(t2.dialogLoadedToast);
117897
+ if (options.syncAddressBar) {
117898
+ this.syncAddressBarToDialogDeepLink(normalizedDialog);
117899
+ }
117900
+ if (options.showLoadedToast) {
117901
+ const t2 = getUiStrings(this.uiLanguage);
117902
+ this.showSuccess(t2.dialogLoadedToast);
117903
+ }
117577
117904
  } catch (error2) {
117578
117905
  const message = error2 instanceof Error ? error2.message : "Unknown error";
117579
117906
  this.showError(`Failed to load dialog: ${message}`, "error");
117580
117907
  }
117581
117908
  }
117909
+ async selectDialog(dialog) {
117910
+ await this.applyDialogSelection(dialog, { syncAddressBar: true, showLoadedToast: true });
117911
+ }
117912
+ async restoreDialogFromDeepLink(dialog) {
117913
+ const selfId = dialog.selfId || dialog.rootId;
117914
+ const rootId = dialog.rootId || dialog.selfId;
117915
+ const current = this.currentDialog;
117916
+ if (current && current.rootId === rootId && current.selfId === selfId) {
117917
+ return;
117918
+ }
117919
+ await this.applyDialogSelection(dialog, { syncAddressBar: false, showLoadedToast: false });
117920
+ }
117582
117921
  /**
117583
117922
  * Get the current dialog info (for E2E testing)
117584
117923
  * @returns Current dialog info or null if no dialog selected
@@ -117739,7 +118078,7 @@ ${content}`;
117739
118078
  const color2 = kind === "error" ? "var(--dominds-danger, #721c24)" : kind === "warning" ? "var(--dominds-warning, #856404)" : "var(--dominds-fg, #333333)";
117740
118079
  const border = kind === "error" ? "var(--dominds-danger-border, #f5c6cb)" : kind === "warning" ? "var(--dominds-warning-border, #ffeaa7)" : "var(--dominds-border, #e0e0e0)";
117741
118080
  const box = document.createElement("div");
117742
- box.style.cssText = `position: fixed; top: 18px; right: 18px; padding: 8px 12px; border-radius: 8px; background: ${bg}; color: ${color2}; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid ${border}; z-index: var(--dominds-z-overlay-toast); font-size: var(--dominds-font-size-sm, 12px); display:flex; align-items:center; gap:8px; animation: slideDown 0.2s ease-out;`;
118081
+ box.style.cssText = `position: fixed; top: 18px; right: 18px; padding: 8px 12px; border-radius: 8px; background: ${bg}; background: color-mix(in srgb, ${bg} var(--dominds-alpha-toast-bg, 80%), transparent); color: ${color2}; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 1px solid ${border}; z-index: var(--dominds-z-overlay-toast, 1300); font-size: var(--dominds-font-size-sm, 12px); display:flex; align-items:center; gap:8px; animation: slideDown 0.2s ease-out;`;
117743
118082
  const iconSpan = document.createElement("span");
117744
118083
  iconSpan.className = `icon-mask ${this.getToastIconClass(kind)}`;
117745
118084
  iconSpan.setAttribute("aria-hidden", "true");
@@ -119196,6 +119535,7 @@ const _DomindsConnectionStatus = class _DomindsConnectionStatus extends HTMLElem
119196
119535
  align-items: center;
119197
119536
  gap: 5px;
119198
119537
  height: 20px;
119538
+ position: relative;
119199
119539
  box-sizing: border-box;
119200
119540
  padding: 0 9px;
119201
119541
  border-radius: 10px;
@@ -119340,7 +119680,7 @@ const _DomindsConnectionStatus = class _DomindsConnectionStatus extends HTMLElem
119340
119680
  border-radius: 4px;
119341
119681
  font-size: 5px;
119342
119682
  white-space: nowrap;
119343
- z-index: 1000;
119683
+ z-index: var(--dominds-z-overlay-tooltip, 1100);
119344
119684
  opacity: 0;
119345
119685
  pointer-events: none;
119346
119686
  transition: opacity 0.2s ease;
@@ -120819,9 +121159,9 @@ class DomindsSetup extends HTMLElement {
120819
121159
  .chip.ok{border-color:color-mix(in srgb, var(--dominds-success,#28a745) 45%, var(--dominds-border,#e0e0e0));color:var(--dominds-success,#28a745);}
120820
121160
  .chip.warn{border-color:color-mix(in srgb, var(--dominds-warning,#ffc107) 45%, var(--dominds-border,#e0e0e0));color:var(--dominds-warning,#ffc107);}
120821
121161
 
120822
- .modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:10000;}
120823
- .modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);}
120824
- .modal-content{position:relative;max-width:1100px;width:min(1100px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;background:var(--dominds-bg-secondary,#ffffff);border:1px solid var(--dominds-border,#e0e0e0);border-radius:12px;box-shadow:var(--shadow-lg,0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1));}
121162
+ .modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:var(--dominds-z-overlay-modal,2000);}
121163
+ .modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);background:color-mix(in srgb,#000000 var(--dominds-alpha-overlay-backdrop-strong,50%),transparent);}
121164
+ .modal-content{position:relative;max-width:1100px;width:min(1100px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;background:var(--dominds-bg-secondary,#ffffff);background:color-mix(in srgb,var(--dominds-bg-secondary,#ffffff) var(--dominds-alpha-surface-panel,96%),transparent);border:1px solid var(--dominds-border,#e0e0e0);border-radius:12px;box-shadow:var(--shadow-lg,0 10px 15px -3px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1));}
120825
121165
  .modal-header{position:sticky;top:0;display:flex;align-items:center;gap:10px;padding:12px 12px;background:var(--dominds-bg-secondary,#ffffff);border-bottom:1px solid var(--dominds-border,#e0e0e0);}
120826
121166
  .modal-title{font-weight:650;color:var(--dominds-fg,#333333);}
120827
121167
  .modal-body{padding:12px;}
@@ -121029,4 +121369,4 @@ export {
121029
121369
  clear$2 as y,
121030
121370
  defaultConfig2 as z
121031
121371
  };
121032
- //# sourceMappingURL=index-C6rZcGnP.js.map
121372
+ //# sourceMappingURL=index-BMt8OZ6H.js.map