@inkeep/open-knowledge 0.53.0 → 0.53.2

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 (225) hide show
  1. package/dist/{acp-harness-probe-B5_ar7rl.mjs → acp-harness-probe-BnGJfP5G.mjs} +2 -2
  2. package/dist/assets/skills/project/references/linking.md +1 -1
  3. package/dist/cli.mjs +62 -62
  4. package/dist/constants-CibuukV7.mjs +2 -0
  5. package/dist/git-handle-CEoe8TIl.mjs +1 -0
  6. package/dist/{git-handle-CH1DpBYP.mjs → git-handle-VuHcNtS4.mjs} +2 -2
  7. package/dist/index.mjs +1 -1
  8. package/dist/{init-BGPdBpY7.mjs → init-BbAtilzZ.mjs} +4 -4
  9. package/dist/init-OoQjBgC9.mjs +1 -0
  10. package/dist/{launch-json-removal-BYbu5C86.mjs → launch-json-removal-DfpCmQT9.mjs} +2 -2
  11. package/dist/{loader-ejjX_n1a.mjs → loader-BOUyv05v.mjs} +2 -2
  12. package/dist/loader-P0nrGvJv.mjs +1 -0
  13. package/dist/md-manager-45eVlaBq.mjs +2 -0
  14. package/dist/{open-browser-CtVpc_8x.mjs → open-browser-BA50pLLQ.mjs} +2 -2
  15. package/dist/parse-worker.mjs +1 -1
  16. package/dist/preview-D2AT6aBO.mjs +1 -0
  17. package/dist/{preview-R6iAeACo.mjs → preview-DoBitDZ-.mjs} +2 -2
  18. package/dist/public/assets/{ActivityModeContent-rgEhhGgw.js → ActivityModeContent-BmQRzJZw.js} +1 -1
  19. package/dist/public/assets/{AgentDiffPane-DtG18o1u.js → AgentDiffPane-DCXp5E1P.js} +1 -1
  20. package/dist/public/assets/{AgentThreadClientBinder-DkD2M_dd.js → AgentThreadClientBinder-B7pwGsKU.js} +1 -1
  21. package/dist/public/assets/{BugReportHistory-C59fSH13.js → BugReportHistory-CDRTpJV0.js} +1 -1
  22. package/dist/public/assets/{BugReportHistoryDialog-C2b4xA3d.js → BugReportHistoryDialog--YdGm_GJ.js} +1 -1
  23. package/dist/public/assets/{ChangedOutsideBadge-DdpCQcxq.js → ChangedOutsideBadge-J6l1plFR.js} +1 -1
  24. package/dist/public/assets/CodeMirrorPropInput-DiDkBTg6.js +3 -0
  25. package/dist/public/assets/{ConfigSharingInfoTooltip-4T5uhyyt.js → ConfigSharingInfoTooltip-CuqrTakc.js} +1 -1
  26. package/dist/public/assets/{ConsentDialogBody-DfhGpXdb.js → ConsentDialogBody-CmMu4IpT.js} +1 -1
  27. package/dist/public/assets/{DiffView-C-imhjB8.js → DiffView-BcZip7m3.js} +1 -1
  28. package/dist/public/assets/DocumentContext-J495RUh0.js +38 -0
  29. package/dist/public/assets/{EditorModeToggle-CrnEz11k.js → EditorModeToggle-BsFjeEn4.js} +1 -1
  30. package/dist/public/assets/{EnableSyncConfirmDialog-623sSYbd.js → EnableSyncConfirmDialog-DNDI39lu.js} +1 -1
  31. package/dist/public/assets/FeedbackForm-BwQovorQ.js +1 -0
  32. package/dist/public/assets/{GraphPanel-C-3KrSdC.js → GraphPanel-CsRKre3D.js} +1 -1
  33. package/dist/public/assets/{ImportSkillDialog-B7gKx_GY.js → ImportSkillDialog-DNZi7-O6.js} +1 -1
  34. package/dist/public/assets/{LintConfigEditor-B-XaVu0m.js → LintConfigEditor-nq2Ekm-O.js} +1 -1
  35. package/dist/public/assets/{ManagedArtifactProperties-iclZPRJv.js → ManagedArtifactProperties-CeSsPfJA.js} +1 -1
  36. package/dist/public/assets/ManagedArtifactProperties-D5Q8gGkr.js +1 -0
  37. package/dist/public/assets/{McpConsentDialogBody-BS3RE3LY.js → McpConsentDialogBody-DEhSeOSg.js} +1 -1
  38. package/dist/public/assets/{Mermaid-BHfANkja.js → Mermaid-mUyEEsA0.js} +1 -1
  39. package/dist/public/assets/{MermaidDocEditor-CI90q10w.js → MermaidDocEditor-DceTAjtX.js} +1 -1
  40. package/dist/public/assets/{RegisteredAgentIcon-gjOJZp_B.js → RegisteredAgentIcon-BxpJAHOj.js} +1 -1
  41. package/dist/public/assets/{ReportBugDialogBody-BWXO0gto.js → ReportBugDialogBody-DO7eotFd.js} +1 -1
  42. package/dist/public/assets/{SchemaConfigEditor-eh-ijdLu.js → SchemaConfigEditor-D23bGRYq.js} +1 -1
  43. package/dist/public/assets/{SessionsHost-BOgQOcv6.js → SessionsHost-BD8Io20F.js} +2 -2
  44. package/dist/public/assets/SettingsDialogBody-D_2SfOcL.js +12 -0
  45. package/dist/public/assets/{ShareBranchSwitchDialog-DpmQmmrq.js → ShareBranchSwitchDialog-B7Bl6qR0.js} +1 -1
  46. package/dist/public/assets/{ShareReceiveDialog-C3fS1Ax2.js → ShareReceiveDialog-BmMkjWTr.js} +1 -1
  47. package/dist/public/assets/{ShareReceiveMissDialog-DzeOwnyS.js → ShareReceiveMissDialog-BDYU64bD.js} +1 -1
  48. package/dist/public/assets/{SkillEditBanner-DGB_nnDm.js → SkillEditBanner-B2U7UdOB.js} +1 -1
  49. package/dist/public/assets/{SkillOriginInline-C4x3nMIH.js → SkillOriginInline-B3wOLT3t.js} +1 -1
  50. package/dist/public/assets/{SkillToolbarControls-DXBGIWug.js → SkillToolbarControls-BP8iught.js} +1 -1
  51. package/dist/public/assets/{SlidesToolbarControls-Buv-SEot.js → SlidesToolbarControls-56-P71vE.js} +1 -1
  52. package/dist/public/assets/{SourceEditor-B64VJl_F.js → SourceEditor-8vj7fGo1.js} +1 -1
  53. package/dist/public/assets/{TerminalPanel-Bch10p1r.js → TerminalPanel-Clr6j-jo.js} +3 -3
  54. package/dist/public/assets/{TerminalWindowApp-s4mNyUki.js → TerminalWindowApp-Bzu1XJoP.js} +1 -1
  55. package/dist/public/assets/{TextDocEditor-DtDvo7eF.js → TextDocEditor-Kaj3NBL9.js} +1 -1
  56. package/dist/public/assets/{ThreadView-CGOz1ms_.js → ThreadView-C0oxDyxf.js} +1 -1
  57. package/dist/public/assets/{TimelineDiffPane-B7aD7QN-.js → TimelineDiffPane-CG6Z1uma.js} +1 -1
  58. package/dist/public/assets/{agent-diff-store-BJiYj2BI.js → agent-diff-store-DxMs0J9Y.js} +1 -1
  59. package/dist/public/assets/{auth-state-cache-5wocICj2.js → auth-state-cache-CGY7eNch.js} +3 -3
  60. package/dist/public/assets/{checkbox-vidgONxv.js → checkbox-Bxl4H4lV.js} +1 -1
  61. package/dist/public/assets/client-version-BenFW72U.js +1 -0
  62. package/dist/public/assets/{cm-theme-DZT10ikr.js → cm-theme-BygK2tYf.js} +1 -1
  63. package/dist/public/assets/comment-chips-Q0_SZK9C.js +5 -0
  64. package/dist/public/assets/{config-provider-DGQwNZtP.js → config-provider-B6fsarOv.js} +3 -3
  65. package/dist/public/assets/{dialog-DztIj-ZS.js → dialog-R8GugqUq.js} +1 -1
  66. package/dist/public/assets/{dist-BgBcg3TP.js → dist-BE8rPie-.js} +1 -1
  67. package/dist/public/assets/{dist-CkFATl39.js → dist-BR5M-SiF.js} +1 -1
  68. package/dist/public/assets/{dist-DfLFtHzK.js → dist-BTo1AB3U.js} +1 -1
  69. package/dist/public/assets/{dist-BRmJz2fY.js → dist-BZW14CKf.js} +1 -1
  70. package/dist/public/assets/{dist-z-y_5Bgj.js → dist-CElLQlwI.js} +1 -1
  71. package/dist/public/assets/{dist-DsH7eETa.js → dist-CUhsr-gg.js} +1 -1
  72. package/dist/public/assets/{dist-dO0W-CVt.js → dist-CcIAtWVJ.js} +1 -1
  73. package/dist/public/assets/{dist-DM6osNK2.js → dist-Cfmj7R4I.js} +1 -1
  74. package/dist/public/assets/{dist-ofeGnIBD.js → dist-D7MIhDGJ.js} +1 -1
  75. package/dist/public/assets/{dist-DQyQPRvE.js → dist-DBhufbLS.js} +1 -1
  76. package/dist/public/assets/{dist-BVpMlVG3.js → dist-DRufJFR7.js} +1 -1
  77. package/dist/public/assets/{dist-BiwzWInZ.js → dist-Dm-VLxvd.js} +1 -1
  78. package/dist/public/assets/{dist-GenOktAv.js → dist-ILlrHFKs.js} +183 -183
  79. package/dist/public/assets/{doc-paths-CB3USVY1.js → doc-paths-DAh95jxf.js} +1 -1
  80. package/dist/public/assets/{documents-events-rgFBXE2Z.js → documents-events-CCW6R-r2.js} +1 -1
  81. package/dist/public/assets/{file-tree-adapter-4JTjxhHS.js → file-tree-adapter-Bf1ZqkPA.js} +1 -1
  82. package/dist/public/assets/{file-tree-utils-CYn1f82_.js → file-tree-utils-CgJ4lrP9.js} +1 -1
  83. package/dist/public/assets/{folder-config-api-ByqyyP9w.js → folder-config-api-CKV5STj1.js} +1 -1
  84. package/dist/public/assets/follow-file-D4LD9UAw.js +4 -0
  85. package/dist/public/assets/i18n-C3d0M4ue.js +1 -0
  86. package/dist/public/assets/{index-DmXrGqKD.js → index-Du6HTehY.js} +17 -17
  87. package/dist/public/assets/{input-group-BiaQ-rIw.js → input-group-ClrIuhWi.js} +1 -1
  88. package/dist/public/assets/{lint-config-client-DydgEnDK.js → lint-config-client-xawAT1mQ.js} +1 -1
  89. package/dist/public/assets/lint-plugin-meta-CsGPauME.js +1 -0
  90. package/dist/public/assets/{markdownlint-rule-browser-DwEGxp2H.js → markdownlint-rule-browser-B3UPVPG_.js} +1 -1
  91. package/dist/public/assets/messages-B6wDP6_L.js +1 -0
  92. package/dist/public/assets/messages-BS6hWxWK.js +1 -0
  93. package/dist/public/assets/messages-Bg44_w_B.js +1 -0
  94. package/dist/public/assets/messages-D9hQcSkC.js +1 -0
  95. package/dist/public/assets/messages-DAPhT0w6.js +1 -0
  96. package/dist/public/assets/messages-DaVac3jo.js +1 -0
  97. package/dist/public/assets/messages-Dbqu7ts9.js +1 -0
  98. package/dist/public/assets/messages-DdoJCt_r.js +1 -0
  99. package/dist/public/assets/messages-Djc_MIS0.js +1 -0
  100. package/dist/public/assets/messages-DmHqd1yQ.js +1 -0
  101. package/dist/public/assets/messages-xKq8BSm6.js +1 -0
  102. package/dist/public/assets/navigation-targets-C1boWExT.js +1 -0
  103. package/dist/public/assets/{open-managed-artifact-tab-DpfEVLG-.js → open-managed-artifact-tab-G7xdjHph.js} +1 -1
  104. package/dist/public/assets/{pending-receive-nav-store-BHeTqy0Z.js → pending-receive-nav-store-BZigj_ik.js} +1 -1
  105. package/dist/public/assets/{project-paths-_w2mRvRX.js → project-paths-DOOtPmjl.js} +1 -1
  106. package/dist/public/assets/prop-types-BIrEWnOv.js +1 -0
  107. package/dist/public/assets/{receive-store-R5sEQn80.js → receive-store-BrOspwat.js} +1 -1
  108. package/dist/public/assets/{schema-fields-view-intent-DiE8NL9y.js → schema-fields-view-intent-D0jz38_6.js} +1 -1
  109. package/dist/public/assets/{selection-context-CHJ-gfRx.js → selection-context-PgPm0oHr.js} +1 -1
  110. package/dist/public/assets/{skill-actions-B9BGbzJZ.js → skill-actions-Btw-8DsB.js} +2 -2
  111. package/dist/public/assets/{skill-scope-CFwClOyk.js → skill-scope-8PP6d5Gw.js} +1 -1
  112. package/dist/public/assets/{skills-api-B41p5sp3.js → skills-api-DQ0PK-8O.js} +1 -1
  113. package/dist/public/assets/{src-gXOrH5MP.js → src-DoCu_Oe2.js} +1 -1
  114. package/dist/public/assets/{tag-pill-input-BTKlFD92.js → tag-pill-input-BHj2SAnj.js} +1 -1
  115. package/dist/public/assets/{target-navigation-intent-CIjVZTkZ.js → target-navigation-intent-DpIU3fe6.js} +1 -1
  116. package/dist/public/assets/{telemetry-startup-C8JOSRcr.js → telemetry-startup-htUA83Zn.js} +1 -1
  117. package/dist/public/assets/{terminal-cli-display-CW7j5kqb.js → terminal-cli-display-CgJpdKCI.js} +1 -1
  118. package/dist/public/assets/{terminal-launch-events-CW7Dk9L6.js → terminal-launch-events-DQ0KtteM.js} +1 -1
  119. package/dist/public/assets/{terminal-telemetry-CxkpCpp5.js → terminal-telemetry-CE1yzjKD.js} +1 -1
  120. package/dist/public/assets/{text-viewer-languages-oVDGEYYY.js → text-viewer-languages-epnUVwhY.js} +2 -2
  121. package/dist/public/assets/{typing-burst-detector-fIHJv2J1.js → typing-burst-detector-XmZhxL72.js} +4 -4
  122. package/dist/public/assets/{uninstall-CYpAgTNE.js → uninstall-CDJGY7Qx.js} +1 -1
  123. package/dist/public/assets/{use-activity-panel-BEnqyFcJ.js → use-activity-panel-DeQ1S88x.js} +1 -1
  124. package/dist/public/assets/{use-apply-config-color-theme-Dw8J4H8Z.js → use-apply-config-color-theme-BatIDUX7.js} +1 -1
  125. package/dist/public/assets/{use-collab-url-CbdhvhFJ.js → use-collab-url-7XE2_0_k.js} +1 -1
  126. package/dist/public/assets/{use-live-xterm-theme-B_qB957b.js → use-live-xterm-theme-DS89T4Os.js} +1 -1
  127. package/dist/public/assets/{use-open-skill-Ca4D1I53.js → use-open-skill-CgnR7yXa.js} +1 -1
  128. package/dist/public/assets/{use-popular-skills-ByV4BHXd.js → use-popular-skills-BefXxEcp.js} +1 -1
  129. package/dist/public/assets/{use-settings-route-4qI--CpZ.js → use-settings-route-DN0TWdfX.js} +1 -1
  130. package/dist/public/assets/{use-skill-origin-DGj0sj4C.js → use-skill-origin-COh1_mOK.js} +1 -1
  131. package/dist/public/assets/{use-skills-WWbAKl3q.js → use-skills-C_HuRxth.js} +1 -1
  132. package/dist/public/assets/{use-terminal-enabled-Dz_qAFuD.js → use-terminal-enabled-DPQRp9bB.js} +1 -1
  133. package/dist/public/assets/use-timeline-entry-diff-Bw_6uLLl.js +6 -0
  134. package/dist/public/assets/{use-workspace-BRfhPAI8.js → use-workspace-CNCW4CS8.js} +1 -1
  135. package/dist/public/index.html +102 -102
  136. package/dist/public/uninstall.html +10 -10
  137. package/dist/{repair-launch-json-D4L6s57C.mjs → repair-launch-json-r4ZvDSZL.mjs} +2 -2
  138. package/dist/{repair-mcp-configs-1m14wb_8.mjs → repair-mcp-configs-8YO27I4W.mjs} +2 -2
  139. package/dist/repair-skills-BWNXcIRv.mjs +1 -0
  140. package/dist/{repair-skills-Dn9wtbHi.mjs → repair-skills-Dk0Hee-r.mjs} +2 -2
  141. package/dist/server-lock-CDm0H6LS.mjs +1 -0
  142. package/dist/{server-lock-D8tFCW-G.mjs → server-lock-CeKMy65H.mjs} +2 -2
  143. package/dist/{skill-teardown-riJHlPak.mjs → skill-teardown-DtXC2fAI.mjs} +2 -2
  144. package/dist/{src-CeMQBLDa.mjs → src--XQg-7vm.mjs} +1 -1
  145. package/dist/{src-ISYL0cXX.mjs → src-BwjoUUIl.mjs} +4 -4
  146. package/dist/src-DK8qZiyv.mjs +1 -0
  147. package/dist/{src-RGB2pEts.mjs → src-Dj6UxpKM.mjs} +124 -124
  148. package/dist/{src-BVxZYLJj.mjs → src-DvuwJKkU.mjs} +328 -328
  149. package/dist/start-D_Gfcl0_.mjs +12 -0
  150. package/dist/start-ZpOYP9oW.mjs +1 -0
  151. package/dist/{ui-CyO6JCpp.mjs → ui-7z12LoCq.mjs} +3 -3
  152. package/dist/{write-project-skill-Bx22NW0a.mjs → write-project-skill-DUj7e5tZ.mjs} +3 -3
  153. package/package.json +5 -5
  154. package/dist/constants-BGKDDuS6.mjs +0 -2
  155. package/dist/git-handle-D_uW8fTU.mjs +0 -1
  156. package/dist/init-CJLXPIkG.mjs +0 -1
  157. package/dist/loader-gRh8KR8b.mjs +0 -1
  158. package/dist/md-manager-CUGZ0GRt.mjs +0 -2
  159. package/dist/preview-Ddz36Ink.mjs +0 -1
  160. package/dist/public/assets/CodeMirrorPropInput-Cydg0jHr.js +0 -3
  161. package/dist/public/assets/DocumentContext-BN8gSwJ-.js +0 -38
  162. package/dist/public/assets/FeedbackForm-CiQQiFp-.js +0 -1
  163. package/dist/public/assets/ManagedArtifactProperties-CUMQh4tz.js +0 -1
  164. package/dist/public/assets/SettingsDialogBody-BaYDHshm.js +0 -12
  165. package/dist/public/assets/client-version---DsZj2h.js +0 -1
  166. package/dist/public/assets/comment-chips-BjkVSykR.js +0 -5
  167. package/dist/public/assets/follow-file-kuGZjRsi.js +0 -4
  168. package/dist/public/assets/i18n-CrYaxckE.js +0 -1
  169. package/dist/public/assets/lint-plugin-meta-FPoTE-0t.js +0 -1
  170. package/dist/public/assets/messages-7cAk2vbZ.js +0 -1
  171. package/dist/public/assets/messages-BNv51jKY.js +0 -1
  172. package/dist/public/assets/messages-BS_zCLy8.js +0 -1
  173. package/dist/public/assets/messages-BmYExk_R.js +0 -1
  174. package/dist/public/assets/messages-C3vvvgBK.js +0 -1
  175. package/dist/public/assets/messages-CmD7dBQ3.js +0 -1
  176. package/dist/public/assets/messages-CpVNkvrj.js +0 -1
  177. package/dist/public/assets/messages-CxF28E4J.js +0 -1
  178. package/dist/public/assets/messages-D9UyuwOS.js +0 -1
  179. package/dist/public/assets/messages-DQ5yKIrs.js +0 -1
  180. package/dist/public/assets/messages-DdBrUUBf.js +0 -1
  181. package/dist/public/assets/navigation-targets-iVnea4YK.js +0 -1
  182. package/dist/public/assets/prop-types-ClS-DLuz.js +0 -1
  183. package/dist/public/assets/use-timeline-entry-diff-RrvwSA9l.js +0 -6
  184. package/dist/repair-skills-cJ41S9pk.mjs +0 -1
  185. package/dist/server-lock-CTrzO_5l.mjs +0 -1
  186. package/dist/src-CclRwMug.mjs +0 -1
  187. package/dist/start-8PynebPz.mjs +0 -1
  188. package/dist/start-DqsRiUST.mjs +0 -12
  189. /package/dist/public/assets/{CopyButton-ByR_1gcU.js → CopyButton-CKyZY1PL.js} +0 -0
  190. /package/dist/public/assets/{asset-dispatch-Cz1weVX3.js → asset-dispatch-Ccnji1rt.js} +0 -0
  191. /package/dist/public/assets/{auth-prompt-store-BYOv6_8O.js → auth-prompt-store-C4YJf5De.js} +0 -0
  192. /package/dist/public/assets/{badge-DFX4S3a5.js → badge-BYteLKha.js} +0 -0
  193. /package/dist/public/assets/{copilot-Dh1BU6kS.js → copilot-CmkvU8CH.js} +0 -0
  194. /package/dist/public/assets/{cursor-B6reg1lS.js → cursor-CIl_AjI1.js} +0 -0
  195. /package/dist/public/assets/{dist-DAqA-GDU.js → dist-sSZdzHur.js} +0 -0
  196. /package/dist/public/assets/{documents-fetch-CV8lWh8v.js → documents-fetch-DnpUYK4R.js} +0 -0
  197. /package/dist/public/assets/{download-C3PYuI1f.js → download-Dn5ulvxm.js} +0 -0
  198. /package/dist/public/assets/{external-link-BIMZpgNa.js → external-link-3El87eIe.js} +0 -0
  199. /package/dist/public/assets/{eye-CSz7ogHo.js → eye-DmhHKPNd.js} +0 -0
  200. /package/dist/public/assets/{field-CtVP3IIV.js → field-CvwbVfuf.js} +0 -0
  201. /package/dist/public/assets/{file-tree-rename-validation-CCqiFGp1.js → file-tree-rename-validation-C2Ibtqn6.js} +0 -0
  202. /package/dist/public/assets/{folder-CopDpuy5.js → folder-CWlDik9N.js} +0 -0
  203. /package/dist/public/assets/{folder-open-DUSc8NL8.js → folder-open-BTTec8yg.js} +0 -0
  204. /package/dist/public/assets/{hash-DI30zEBt.js → hash-PyoMEEnH.js} +0 -0
  205. /package/dist/public/assets/{info-CV59RycV.js → info-w0kv2CeC.js} +0 -0
  206. /package/dist/public/assets/{input-BYiOK210.js → input-BFt4qZaV.js} +0 -0
  207. /package/dist/public/assets/{list-plus-DBdmIc6v.js → list-plus-2r7_ATZj.js} +0 -0
  208. /package/dist/public/assets/{minus-D07ZsfDZ.js → minus-DNhR60ON.js} +0 -0
  209. /package/dist/public/assets/{miss-dialog-store-sSyy54tn.js → miss-dialog-store-DzXIxgCB.js} +0 -0
  210. /package/dist/public/assets/{panel-CbGx_cRv.js → panel-D2VXQC58.js} +0 -0
  211. /package/dist/public/assets/{panel-right-open-B66oA9M1.js → panel-right-open-DAyUhiQN.js} +0 -0
  212. /package/dist/public/assets/{paperclip-BlKB6Xwa.js → paperclip-B6sgPA4f.js} +0 -0
  213. /package/dist/public/assets/{refresh-cw-DQervzDZ.js → refresh-cw-CR2QWccs.js} +0 -0
  214. /package/dist/public/assets/{spinner-BqySY7qY.js → spinner-CHTY-VE-.js} +0 -0
  215. /package/dist/public/assets/{square-pen-Cb57Y3fg.js → square-pen-DdAKbKU7.js} +0 -0
  216. /package/dist/public/assets/{startup-marks-Cdkh8q3E.js → startup-marks-CTM7uDIJ.js} +0 -0
  217. /package/dist/public/assets/{stex-PMopVeEZ.js → stex-s_JxeNEZ.js} +0 -0
  218. /package/dist/public/assets/{terminal-Cvoe7pfU.js → terminal-DRi0ugpC.js} +0 -0
  219. /package/dist/public/assets/{textarea-yZk4yd9U.js → textarea-CzW0aR0j.js} +0 -0
  220. /package/dist/public/assets/{trash-2-N0ilsnnr.js → trash-2-BWJWOK8-.js} +0 -0
  221. /package/dist/public/assets/{triangle-alert-COo6wbUK.js → triangle-alert-DV20-jn9.js} +0 -0
  222. /package/dist/public/assets/{undo-2-WGCwknr8.js → undo-2-CMyZc9mZ.js} +0 -0
  223. /package/dist/public/assets/{use-installed-clis-Cydpb5jd.js → use-installed-clis-DmyaQmU9.js} +0 -0
  224. /package/dist/public/assets/{wrench-CP2MIQHF.js → wrench-C3BL-uHg.js} +0 -0
  225. /package/dist/public/assets/{x-DS57FvHW.js → x-BaJrHZK_.js} +0 -0
@@ -1,5 +0,0 @@
1
- import{t as e}from"./jsx-runtime-BUgB2tll.js";import{Cr as t,Dr as n,Mr as r,Or as i,_n as a,cr as o,dr as s,nr as c,yn as l}from"./DocumentContext-BN8gSwJ-.js";import{n as u,r as d}from"./dist-Nvb76hAm.js";import{t as f}from"./compiler-runtime-BfE3aGVn.js";import{c as p}from"./local-menu-action-bus-Cypryz6Z.js";import{t as m}from"./utils-CPqDy6Hr.js";import{t as h}from"./button-CA0dewJJ.js";import{rt as g,st as _}from"./CodeMirrorPropInput-Cydg0jHr.js";import{t as v}from"./checkbox-vidgONxv.js";import{Dn as y,En as b,Vn as x,nr as S,ui as C}from"./dist-GenOktAv.js";import{t as w}from"./createLucideIcon-Bhw2PmPp.js";import{t as ee}from"./chevron-down-DabHDQTe.js";import{t as T}from"./x-DS57FvHW.js";import{f as E}from"./doc-paths-CB3USVY1.js";var D=w(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),O=w(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]),k=f(),A=`245,158,11`,te=A,ne={fill:.22,line:.7},re={fill:.45,line:1},ie=.45;function ae(e,t){let n=te,{fill:r,line:i}=t?re:ne;return[`border-radius:2px`,`padding-bottom:1px`,...e.id===null?[]:[`cursor:pointer`],`background-color:rgba(${n},${r})`,`box-shadow:inset 0 -2px 0 rgba(${n},${i})`,``].join(`;`)}function j(e){return e.map(e=>e.id??`·`).join(`|`)}function M(e){let t=null;for(let n of e)n.id!==null&&(t===null||n.to-n.from<t.to-t.from)&&(t=n);return t?.id??null}function N(e,t){return e.id===null||e.id===t}function oe(e,t=null){let n=[...e].filter(e=>e.from<e.to).sort((e,t)=>e.from-t.from||e.to-t.to||(e.id??``).localeCompare(t.id??``));if(n.length===0)return[];let r=[...new Set(n.flatMap(e=>[e.from,e.to]))].sort((e,t)=>e-t),i=[],a=null,o=()=>{if(a===null)return;let e=a.covering.find(e=>N(e,t));i.push({from:a.from,to:a.to,style:ae(e??a.covering[0],e!==void 0),threadId:M(a.covering)}),a=null};for(let e=0;e<r.length-1;e++){let t=r[e],i=r[e+1],s=n.filter(e=>e.from<=t&&e.to>=i);if(s.length===0){o();continue}if(a!==null&&a.to===t&&j(a.covering)===j(s)){a.to=i;continue}o(),a={from:t,to:i,covering:s}}return o(),i}var P=`data-comment-reveal`;function F(e){return typeof CSS<`u`&&CSS.escape?CSS.escape(e):e}function I(e){return e===``?null:document.querySelector(`[data-testid="property-row"][data-key="${F(e)}"]`)}function se(e){let t=I(e);if(t===null)return null;let n=t.getBoundingClientRect();return n.height===0&&n.width===0?null:n}function ce(e){I(e)?.scrollIntoView({block:`center`,behavior:`smooth`})}function L(e){if(e.quote===``)return!1;let t=e.path.length===0?e.key:e.path[e.path.length-1],n=Array.from(document.querySelectorAll(`[data-testid="property-row"][data-key="${F(String(t))}"]`)),r=Array.from(document.querySelectorAll(`[data-testid="property-row"]`));for(let t of[...n,...r]){let n=t.querySelector(`textarea, input`);if(n===null)continue;let r=le(n.value,e.quote,e.start,e.end);if(r!==null)return t.scrollIntoView({block:`center`,behavior:`smooth`}),n.focus(),n.setSelectionRange(r.start,r.end),ue(n),!0}return!1}function le(e,t,n,r){if(n!==void 0&&r!==void 0&&e.slice(n,r)===t)return{start:n,end:r};let i=e.indexOf(t);return i<0?null:{start:i,end:i+t.length}}function ue(e){e.style.setProperty(`--comment-reveal-fill`,`rgba(${A},${ie})`),e.setAttribute(P,`true`);let t=()=>{e.removeAttribute(P),e.style.removeProperty(`--comment-reveal-fill`)};e.addEventListener(`blur`,t,{once:!0}),e.addEventListener(`pointerdown`,t,{once:!0}),e.addEventListener(`keydown`,t,{once:!0})}function R(e,{includeBlockComponents:t=!1}={}){let n=``,r=[];return e.descendants((e,i)=>{if(e.isText&&e.text){for(let t=0;t<e.text.length;t++)n+=e.text[t],r.push(i+t);return!0}if(e.isBlock&&!t)return!0;let a=b(e);if(a.length>0){let t=i+e.nodeSize-1;for(let e=0;e<a.length;e++)n+=a[e],r.push(e===a.length-1?t:i)}return!0}),{text:n,positions:r}}function z(e,t){let n=[];if(t===``)return n;let r=e.indexOf(t);for(;r!==-1;)n.push(r),r=e.indexOf(t,r+1);return n}function B(e,t,n){let r=n?.prefix??``,i=n?.suffix??``;if(r===``&&i===``)return null;let a=r===``?[0]:S(e,r,{syntaxIn:`needle`}).map(e=>e.end),o=i===``?[e.length]:S(e,i,{syntaxIn:`needle`}).map(e=>e.start);if(a.length!==1||o.length!==1)return null;let s=a[0],c=o[0];for(;s<c&&/\s/.test(e[s]??``);)s+=1;for(;c>s&&/\s/.test(e[c-1]??``);)--c;if(c<=s)return null;let l=C(t.length);return c-s>l?null:{start:s,end:c}}function V(e,t){let n=e.positions[t.start],r=e.positions[t.end-1];return n==null||r==null?null:{from:n,to:r+1}}function H(e,t,n){if(t.length===0)return null;let r=z(e.text,t).map(e=>({start:e,end:e+t.length}));if(r.length===0&&(r=S(e.text,t,{syntaxIn:`needle`})),r.length===0){let r=B(e.text,t,n);return r===null?null:V(e,r)}if(r.length===1)return V(e,r[0]);let i=n?.prefix??``,a=n?.suffix??``,o=[],s=-1;for(let t of r){let n=x(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`});n>s?(s=n,o=[t]):n===s&&o.push(t)}return V(e,o[0])}var U=64;function de(e,t,n){return{prefix:y(e,Math.max(0,t-U),t),suffix:y(e,n,Math.min(e.content.size,n+U))}}function W(e,t,n){return G(e)(t,n)}function G(e){let t=R(e),n=null;return(r,i)=>{let a=H(t,r,i);return a===null?(n??=R(e,{includeBlockComponents:!0}),H(n,r,i)):a}}var fe=220,pe=24;function me(e){let t=e.viewTop+e.insetTop,n=e.viewBottom-fe;return e.anchorTop>=t&&e.anchorBottom<=n?0:e.anchorTop-(t+pe)}function K(e){let t=e?.parentElement??null;for(;t;){let e=getComputedStyle(t).overflowY;if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return null}function q(e){let t=Number.parseFloat(getComputedStyle(e).scrollPaddingTop);return Number.isFinite(t)?t:0}function J(e,t){let n=g(e);if(!n)return;let r=K(n.dom);if(!r){e.commands.scrollIntoView();return}let i,a;try{i=n.coordsAtPos(t.from),a=n.coordsAtPos(t.to)}catch{return}let o=r.getBoundingClientRect(),s=me({anchorTop:i.top,anchorBottom:Math.max(i.bottom,a.bottom),viewTop:o.top,viewBottom:o.bottom,insetTop:q(r)});if(s===0)return;let c=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;r.scrollTo({top:r.scrollTop+s,behavior:c?`auto`:`smooth`})}var he=1e4;function ge(e){let t=()=>{let t=a(e.docName);if(!t||t.isDestroyed)return!1;let n=W(t.state.doc,e.quote,e.context);return n&&(t.chain().focus().setTextSelection(n).run(),J(t,n)),c(e.threadId),!0};if(r(`comments`),t())return;window.location.assign(E(e.docName));let n=!1,i=()=>{n||(n=!0,o(),window.clearTimeout(s))},o=l(()=>{t()&&i()}),s=window.setTimeout(i,he);t()&&i()}var Y=e();function _e(){let e=(0,k.c)(2),t=n(),r;if(e[0]!==t){r=[];for(let e of t){let t=o(e);t!==null&&r.push(t)}e[0]=t,e[1]=r}else r=e[1];return r}function ve(){return i().length}function ye(e){let t=(0,k.c)(34),{count:n,attached:r,expanded:i,onAttach:a,onToggleExpanded:o,onDismiss:s}=e,{_:c}=d();if(n===0)return null;if(!r){let e;t[0]===c?e=t[1]:(e=c({id:`UpOct_`}),t[0]=c,t[1]=e);let n,r,i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(n=m(`h-auto min-h-0 gap-1 rounded-md border border-dashed bg-transparent px-1.5 py-0.5`,`text-xs font-normal text-muted-foreground hover:bg-muted/60 hover:text-foreground`),r=(0,Y.jsx)(p,{className:`size-3`}),i=(0,Y.jsx)(u,{id:`VbyRUy`}),t[2]=n,t[3]=r,t[4]=i):(n=t[2],r=t[3],i=t[4]);let o;return t[5]!==a||t[6]!==e?(o=(0,Y.jsxs)(h,{type:`button`,size:`sm`,variant:`ghost`,"aria-pressed":!1,"aria-label":e,onClick:a,"data-testid":`composer-context-chip-comments`,className:n,children:[r,i]}),t[5]=a,t[6]=e,t[7]=o):o=t[7],o}let l;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(l=m(`inline-flex items-center gap-1 rounded-md border bg-muted/60 py-0.5 pr-0.5 pl-1.5`,`text-xs text-muted-foreground`),t[8]=l):l=t[8];let f;t[9]!==c||t[10]!==i?(f=c(i?{id:`kMKqP_`}:{id:`15MMFT`}),t[9]=c,t[10]=i,t[11]=f):f=t[11];let g;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(D,{className:`size-3`}),t[12]=g):g=t[12];let _;t[13]===n?_=t[14]:(_=(0,Y.jsx)(u,{id:`eiUA4k`,values:{count:n}}),t[13]=n,t[14]=_);let v=i&&`rotate-180`,y;t[15]===v?y=t[16]:(y=m(`size-3 transition-transform`,v),t[15]=v,t[16]=y);let b;t[17]===y?b=t[18]:(b=(0,Y.jsx)(ee,{className:y}),t[17]=y,t[18]=b);let x;t[19]!==i||t[20]!==o||t[21]!==f||t[22]!==_||t[23]!==b?(x=(0,Y.jsxs)(h,{type:`button`,size:`sm`,variant:`ghost`,"aria-expanded":i,"aria-label":f,onClick:o,"data-testid":`composer-comments-peek`,className:`h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground`,children:[g,_,b]}),t[19]=i,t[20]=o,t[21]=f,t[22]=_,t[23]=b,t[24]=x):x=t[24];let S;t[25]===c?S=t[26]:(S=c({id:`pFRz_E`}),t[25]=c,t[26]=S);let C;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Y.jsx)(T,{className:`size-3`}),t[27]=C):C=t[27];let w;t[28]!==s||t[29]!==S?(w=(0,Y.jsx)(h,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":S,onClick:s,className:`size-4 p-0 text-muted-foreground hover:text-foreground`,children:C}),t[28]=s,t[29]=S,t[30]=w):w=t[30];let E;return t[31]!==w||t[32]!==x?(E=(0,Y.jsxs)(`span`,{"data-testid":`composer-context-chip-comments`,className:l,children:[x,w]}),t[31]=w,t[32]=x,t[33]=E):E=t[33],E}function X(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Z(e,t){let n=e;for(let e of t)n+=typeof e==`number`?`[${e}]`:`.${e}`;return n}function be(e){let t=(0,k.c)(14),{thread:n,className:r}=e,i=n.anchor?.quote??``;if(n.target.kind===`property`){let e;t[0]!==n.target.key||t[1]!==n.target.path?(e=Z(n.target.key,n.target.path),t[0]=n.target.key,t[1]=n.target.path,t[2]=e):e=t[2];let a=e,o;t[3]===r?o=t[4]:(o=m(`w-full truncate font-mono text-[11px] text-muted-foreground`,r),t[3]=r,t[4]=o);let s=i===``?``:` “${i}”`,c;return t[5]!==a||t[6]!==o||t[7]!==s?(c=(0,Y.jsxs)(`span`,{className:o,children:[a,`:`,s]}),t[5]=a,t[6]=o,t[7]=s,t[8]=c):c=t[8],c}let a;t[9]===r?a=t[10]:(a=m(`w-full truncate font-mono text-[11px] text-muted-foreground`,r),t[9]=r,t[10]=a);let o;return t[11]!==i||t[12]!==a?(o=(0,Y.jsxs)(`span`,{className:a,children:[`“`,i,`”`]}),t[11]=i,t[12]=a,t[13]=o):o=t[13],o}function Q(e){ge({docName:e.docName,quote:e.target.kind===`property`?``:e.anchor?.quote??``,threadId:e.id,context:e.anchor??void 0});let{target:t,anchor:n}=e;if(t.kind!==`property`||n===null)return;let r=0,i=()=>{L({key:t.key,path:t.path,quote:n.quote,start:n.start,end:n.end})||(r+=1,!(r>=xe)&&requestAnimationFrame(i))};requestAnimationFrame(i)}var xe=30;function Se(e){let n=(0,k.c)(9),{threads:r}=e,{_:a}=d(),o=i();if(r.length===0)return null;let c;if(n[0]!==a||n[1]!==o||n[2]!==r){let e;n[4]!==a||n[5]!==o?(e=e=>{let n=e.status===`orphaned`,r=o.includes(e.id);return(0,Y.jsxs)(`li`,{className:m(`flex items-start gap-2 rounded-md border bg-background/60 px-2 py-1.5`,!r&&`opacity-50`),children:[(0,Y.jsx)(v,{checked:r,onCheckedChange:()=>t(e.id),"aria-label":a({id:`Uoux8m`}),className:`mt-0.5`}),(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,Y.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-1 rounded border px-1 py-px text-[10px] text-muted-foreground`,title:e.docName,children:[(0,Y.jsx)(_,{className:`size-2.5 shrink-0`}),(0,Y.jsx)(`span`,{className:`truncate`,children:X(e.docName)})]}),n&&(0,Y.jsxs)(`span`,{className:`inline-flex shrink-0 items-center gap-1 text-[10px] text-amber-600 dark:text-amber-500`,title:a({id:`MBe6TE`}),children:[(0,Y.jsx)(O,{className:`size-2.5`}),(0,Y.jsx)(u,{id:`2UgoBZ`})]})]}),(0,Y.jsxs)(h,{type:`button`,variant:`ghost`,"aria-label":a({id:`rscgd_`,values:{0:X(e.docName)}}),onClick:()=>Q(e),className:`h-auto min-h-0 w-full min-w-0 flex-col items-start gap-1 px-0 py-0 text-left font-normal hover:bg-transparent`,children:[(0,Y.jsx)(be,{thread:e}),(0,Y.jsx)(`span`,{className:`line-clamp-2 w-full text-xs whitespace-normal text-foreground/90`,children:e.body})]})]}),(0,Y.jsx)(h,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":a({id:`1jym2J`}),onClick:()=>s(e.id),className:`size-5 shrink-0 p-0 text-muted-foreground hover:text-foreground`,children:(0,Y.jsx)(T,{className:`size-3`})})]},e.id)},n[4]=a,n[5]=o,n[6]=e):e=n[6],c=r.map(e),n[0]=a,n[1]=o,n[2]=r,n[3]=c}else c=n[3];let l;return n[7]===c?l=n[8]:(l=(0,Y.jsx)(`ul`,{"data-testid":`composer-comments-list`,className:`mt-1 flex max-h-64 basis-full list-none flex-col gap-1 overflow-y-auto subtle-scrollbar`,children:c}),n[7]=c,n[8]=l),l}function Ce(e){return{docName:e.docName,body:e.instruction,propertyKey:e.property,quote:e.passage?.exact??``,anchorLost:e.anchorLost,prefix:e.passage?.prefix??``,suffix:e.passage?.suffix??``,repeats:e.passageRepeats}}var $=48;function we(e){let t=e.replace(/\s+/g,` `).trimStart();return t.length>$?`…${t.slice(-$)}`:t}function Te(e){let t=e.replace(/\s+/g,` `).trimEnd();return t.length>$?`${t.slice(0,$)}…`:t}function Ee(e){if(!e.repeats)return null;let t=we(e.prefix),n=Te(e.suffix);return t===``&&n===``?null:`(This text appears more than once in the file. The one meant is ${t===``?`at the start of the file, followed by "${n}"`:n===``?`at the end of the file, preceded by "${t}"`:`between "${t}" and "${n}"`} — match that context rather than the first occurrence.)`}function De(e,t,n){let r=t.trim(),i=[];if(i.push(r.length>0?r:`Address the following review comments by editing the documents directly.`),i.push(``),i.push(e.length===1?`The comment:`:`The ${e.length} comments:`),e.forEach((e,t)=>{if(i.push(``),e.propertyKey){let n=e.quote.trim();if(n===``)i.push(`${t+1}. In \`${e.docName}\`, on the \`${e.propertyKey}\` property (frontmatter):`),i.push(``),i.push(` ${e.body.trim()}`);else{i.push(`${t+1}. In \`${e.docName}\`, on this text within the \`${e.propertyKey}\` property (frontmatter):`),i.push(``);for(let e of n.split(`
2
- `))i.push(` > ${e}`);i.push(``),i.push(` ${e.body.trim()}`)}e.anchorLost&&(i.push(``),i.push(n===``?` (Note: \`${e.propertyKey}\` is no longer in this document's frontmatter — it was renamed or removed since the comment was written. Do not apply this to a different property; if you cannot tell what it now refers to, say so instead of guessing.)`:` (Note: that text is no longer in \`${e.propertyKey}\` — the value was edited, reshaped, or removed since the comment was written. Do not apply this to a different property or a different part of the value; if you cannot tell what it now refers to, say so instead of guessing.)`));return}i.push(`${t+1}. In \`${e.docName}\`, on this passage:`),i.push(``);for(let t of e.quote.split(`
3
- `))i.push(` > ${t}`);i.push(``),i.push(` ${e.body.trim()}`);let n=Ee(e);n!==null&&(i.push(``),i.push(` ${n}`)),e.anchorLost&&(i.push(``),i.push(` (Note: this passage is no longer in the document — it was edited or removed since the comment was written. Do not apply this to a different passage; if you cannot tell what it now refers to, say so instead of guessing.)`))}),n&&n.markdown.trim().length>0){i.push(``),i.push(`Also in scope, selected in \`${n.docName}\` (not a comment):`),i.push(``);for(let e of n.markdown.trim().split(`
4
- `))i.push(`> ${e}`)}return i.join(`
5
- `)}export{L as _,Z as a,O as b,_e as c,J as d,q as f,se as g,W as h,X as i,ve as l,G as m,Se as n,Q as o,de as p,De as r,Ce as s,ye as t,K as u,ce as v,D as x,oe as y};
@@ -1,4 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{mn as n,pn as r,un as i}from"./DocumentContext-BN8gSwJ-.js";import{t as a}from"./react-f2sANaYj.js";import{r as o}from"./dist-Nvb76hAm.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{t as c}from"./utils-CPqDy6Hr.js";import{r as l,t as u}from"./button-CA0dewJJ.js";import{$ as d,H as f,J as p,V as m,f as h,l as g,q as _,tt as v,u as y}from"./CodeMirrorPropInput-Cydg0jHr.js";import{t as b}from"./separator-vdmCepR4.js";import{Gi as x,Hi as S,Mi as C,Ni as w,Pi as T,ca as E,fa as D,ji as O,ya as k}from"./dist-GenOktAv.js";import{t as A}from"./dist-DUfEoSbR.js";import{t as j}from"./workspace-paths-CKUFX0v6.js";import{t as M}from"./createLucideIcon-Bhw2PmPp.js";import{t as N}from"./x-DS57FvHW.js";var P=M(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),F=s(),I=t(),L=l(`group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,{variants:{orientation:{horizontal:`[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!`,vertical:`flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!`}},defaultVariants:{orientation:`horizontal`}});function R(e){let t=(0,F.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]!==n||t[5]!==r?(a=c(L({orientation:r}),n),t[4]=n,t[5]=r,t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==i||t[9]!==a?(o=(0,I.jsx)(`div`,{role:`group`,"data-slot":`button-group`,"data-orientation":r,className:a,...i}),t[7]=r,t[8]=i,t[9]=a,t[10]=o):o=t[10],o}function z(e){let t=(0,F.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,orientation:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`vertical`:i,o;t[4]===n?o=t[5]:(o=c(`relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto`,n),t[4]=n,t[5]=o);let s;return t[6]!==a||t[7]!==r||t[8]!==o?(s=(0,I.jsx)(b,{"data-slot":`button-group-separator`,orientation:a,className:o,...r}),t[6]=a,t[7]=r,t[8]=o,t[9]=s):s=t[9],s}var B=e(a(),1),V=`ok-ask-ai-draft-v2`,H={doc:null,dismissed:!1};function U(){if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}var W=null,G=new Set;function K(e){if(e===null)return!0;let t=e.content;return!Array.isArray(t)||t.length===0?!0:t.every(e=>{let t=e.content;return!Array.isArray(t)||t.length===0})}function ee(){let e=U();if(!e)return H;try{let t=e.getItem(V);if(!t)return H;let n=JSON.parse(t);return typeof n!=`object`||!n||Array.isArray(n)?H:{doc:n,dismissed:!1}}catch(e){return console.warn(`failed to parse stored draft — clearing`,e),H}}function te(){return W===null&&(W=ee()),W}function ne(e){let t=U();if(t)try{e&&!K(e)?t.setItem(V,JSON.stringify(e)):t.removeItem(V)}catch{}}function re(){for(let e of G)e()}function ie(){return te()}function ae(e){let t=e&&!K(e)?e:null;W={...te(),doc:t},ne(t),re()}function oe(){ae(null)}var se=`button, a[href], [role="menuitem"], [role="button"], input, textarea, select, [contenteditable="true"]`;function ce(e,t){e.target instanceof HTMLElement&&(!(e.currentTarget instanceof HTMLElement)||!e.currentTarget.contains(e.target)||e.target.closest(se)||(e.preventDefault(),t.current?.focus()))}var le=O;function ue(e){let t=h(e).kind;return t===`folder`||t===`asset`?t:`page`}function de(e){let t=(0,F.c)(14),{items:n,query:r,selectedIndex:a,onSelect:s,loading:c,error:l,hasMore:u}=e,d=c===void 0?!1:c,f=l===void 0?!1:l,p=u===void 0?!1:u,{_:m}=o(),h=(0,B.useId)(),g=(0,B.useRef)(null),_,v;t[0]===a?(_=t[1],v=t[2]):(_=()=>{(g.current?.querySelectorAll(`[role="option"]`))?.item(a)?.scrollIntoView({block:`nearest`})},v=[a],t[0]=a,t[1]=_,t[2]=v),(0,B.useEffect)(_,v);let y=a>=0&&a<n.length?n[a]:null,b;return t[3]!==m||t[4]!==f||t[5]!==p||t[6]!==n||t[7]!==h||t[8]!==d||t[9]!==s||t[10]!==r||t[11]!==a||t[12]!==y?(b=(0,I.jsx)(`div`,{ref:g,className:`w-80 max-w-[min(28rem,90vw)] overflow-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md`,children:d?(0,I.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`polite`,children:m({id:`3m2GBo`})}):f?(0,I.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`assertive`,children:m({id:`weP6me`})}):n.length===0?(0,I.jsx)(`p`,{className:`px-2 py-1.5 text-sm text-muted-foreground`,"aria-live":`polite`,children:r.trim()===``?m({id:`0E9DR6`}):m({id:`yQyglE`})}):(0,I.jsxs)(`div`,{role:`listbox`,id:h,"aria-label":m({id:`05n5wS`}),tabIndex:-1,className:`max-h-64 overflow-y-auto subtle-scrollbar`,children:[(0,I.jsx)(`span`,{className:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`,children:y?y.title:``}),n.map((e,t)=>{let n=t===a,r=ue(e.path),o=r===`folder`,c=o?`${e.path}/`:e.path;return(0,I.jsxs)(`button`,{id:`${h}-option-${t}`,type:`button`,role:`option`,"aria-selected":n,"data-active":n,"data-mention-kind":r,"data-testid":`composer-mention-option-${e.docName}`,className:`flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left ${n?`bg-accent text-accent-foreground`:``}`,onMouseDown:t=>{t.preventDefault(),s(e)},children:[(0,I.jsx)(i,{path:e.path,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),(0,I.jsxs)(`span`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,I.jsxs)(`span`,{className:`flex items-baseline gap-1.5`,children:[(0,I.jsx)(`span`,{className:`truncate text-sm font-medium`,children:e.title}),o?(0,I.jsx)(`span`,{className:`shrink-0 text-[10px] font-medium uppercase tracking-wide text-muted-foreground`,children:m({id:`kNqMMd`})}):null]}),(0,I.jsx)(`span`,{className:`line-clamp-2 break-all text-xs text-muted-foreground`,children:c})]})]},e.docName)}),p?(0,I.jsx)(`div`,{className:`px-2 py-1 text-xs text-muted-foreground`,"aria-hidden":!0,children:m({id:`F1T9y_`})}):null]})}),t[3]=m,t[4]=f,t[5]=p,t[6]=n,t[7]=h,t[8]=d,t[9]=s,t[10]=r,t[11]=a,t[12]=y,t[13]=b):b=t[13],b}var fe=8,q=new k(`composerMentionSuggestion`);function pe(e){return e.kind===`asset`?e.docName.replace(/^\//,``):e.kind===`folder`?e.docName:j(e.docName)}var me=x.create({name:`doc`,topNode:!0,content:`paragraph+`}),he=x.create({name:`paragraph`,group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML(){return[`p`,0]}}),ge=x.create({name:`text`,group:`inline`}),_e=x.create({name:`hardBreak`,group:`inline`,inline:!0,selectable:!1,parseHTML(){return[{tag:`br`}]},renderHTML(){return[`br`]},addKeyboardShortcuts(){return{"Shift-Enter":()=>this.editor.commands.insertContent({type:`hardBreak`})}}}),ve=S.create({name:`composerHistory`,addProseMirrorPlugins(){return[C(),D({"Mod-z":T,"Mod-y":w,"Shift-Mod-z":w})]}}),ye=x.create({name:`composerMention`,group:`inline`,inline:!0,atom:!0,selectable:!0,addAttributes(){return{path:{default:``},label:{default:``}}},parseHTML(){return[{tag:`span[data-composer-mention]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=String(e.attrs.label||e.attrs.path);return[`span`,E(t,{"data-composer-mention":String(e.attrs.path??``),class:`composer-mention-chip`}),`@${n}`]},renderText({node:e}){return`@${e.attrs.path}`},addNodeView(){return({node:e,editor:t,getPos:i})=>{let a=String(e.attrs.path??``),o=String(e.attrs.label||e.attrs.path),s=document.createElement(`span`);s.className=`composer-mention-chip group/mention`,s.setAttribute(`data-composer-mention`,a),s.title=o;let c=document.createElement(`button`);c.type=`button`,c.className=`composer-mention-icon`,c.setAttribute(`aria-label`,A._({id:`Xzy0s0`,values:{fullLabel:o}}));let l=document.createElement(`span`);l.className=`composer-mention-glyph composer-mention-glyph-icon`,l.setAttribute(`aria-hidden`,`true`),l.innerHTML=r(a),c.appendChild(l);let u=document.createElement(`span`);u.className=`composer-mention-glyph composer-mention-glyph-x`,u.setAttribute(`aria-hidden`,`true`),u.innerHTML=n(N),c.appendChild(u),c.addEventListener(`mousedown`,e=>e.preventDefault()),c.addEventListener(`click`,n=>{n.preventDefault();let r=typeof i==`function`?i():null;r!=null&&t.chain().focus().deleteRange({from:r,to:r+e.nodeSize}).run()}),s.appendChild(c);let d=document.createElement(`span`);return d.className=`composer-mention-label`,d.textContent=o,s.appendChild(d),{dom:s}}},addProseMirrorPlugins(){return[Se(this.editor)]}});function be(e){return[me,he,ge,_e,ve,ye,...e?.placeholder?[le.configure({placeholder:e.placeholder,showOnlyWhenEditable:!1})]:[]]}function xe(e=g){let t=[],n=!1,r=null,i=!1;return{snapshot(){return{loaded:n,error:i}},async getItems(a){if(!n){r||=e();try{t=await r,n=!0,i=!1}catch(e){console.error(`[composer-mention] failed to fetch pages`,e),t=[],i=!0}finally{r=null}}return y(t,a).map(e=>({docName:e.docName,title:e.title,path:pe(e)})).filter(e=>e.path!==``)},reset(){t=[],n=!1,r=null,i=!1}}}function Se(e){let t=xe();return _({editor:e,pluginKey:q,char:`@`,items:({query:e})=>t.getItems(e),command:({editor:e,range:t,props:n})=>{try{e.chain().focus().deleteRange(t).insertContent([{type:`composerMention`,attrs:{path:n.path,label:n.title}},{type:`text`,text:` `}]).run()}catch(e){console.error(`[composer-mention] insert failed`,{item:n,range:t},e)}},render:()=>{let e=null,n=null,r=0,i={popup:null,stopAutoUpdate:null},a=null,o=null,s=e=>{n?.command(e)},c=e=>{let n=e.items??[],{loaded:i,error:a}=t.snapshot();return{items:n,query:e.query??``,selectedIndex:r,onSelect:s,loading:!i&&!a,error:a,hasMore:n.length>=fe}},l=()=>{!e||!n||e.updateProps(c(n))};return{onBeforeStart(t){n=t,r=0;let s=m(()=>n,`composer-mention`);i.popup=s.popup,a=s.doPosition,o=s.reveal,e=new d(de,{props:c(t),editor:t.editor}),s.popup.appendChild(e.element),i.stopAutoUpdate=s.startAutoUpdate()},onStart(e){n=e,r=0,l(),o?.()},onUpdate(e){n=e,r=Math.min(r,Math.max(0,e.items.length-1)),l(),a?.()},onKeyDown({event:e}){if(!n)return!1;let t=n.items;if(e.key===`ArrowDown`)return t.length===0?!1:(r=(r+1)%t.length,l(),!0);if(e.key===`ArrowUp`)return t.length===0?!1:(r=(r-1+t.length)%t.length,l(),!0);if(e.key===`Enter`||e.key===`Tab`){let e=t[r];return e?(n.command(e),!0):!1}return!1},onExit(){f(i),a=null,o=null,e?.destroy(),e=null,n=null,r=0,t.reset()}}}})}function J(e){let t=[],n=new Set,r=[];return e.state.doc.forEach(e=>{let i=``;e.forEach(e=>{if(e.type.name===`composerMention`){let r=String(e.attrs.path??``);r!==``&&(i+=`@${r}`,n.has(r)||(n.add(r),t.push(r)))}else e.isText?i+=e.text??``:e.type.name===`hardBreak`&&(i+=`
2
- `)}),r.push(i)}),{instruction:r.join(`
3
- `).trim(),mentions:t}}function Y(e){let{instruction:t,mentions:n}=J(e);return t===``&&n.length===0}function Ce(e){let t=e?.content;return!Array.isArray(t)||t.length===0?!1:t.some(e=>Array.isArray(e.content)&&e.content.length>0)}function we(e){return e.split(`
4
- `).map(e=>({type:`paragraph`,content:e===``?[]:[{type:`text`,text:e}]}))}function Te(e){let t=(0,F.c)(43),{ref:n,ariaLabel:r,onEmptyChange:i,onContentChange:a,onMentionsChange:o,onSubmit:s,onEscape:l,className:u,placeholder:d,initialDoc:f,disabled:m,testId:h}=e,g=m===void 0?!1:m,_=(0,B.useRef)(i),y=(0,B.useRef)(a),b=(0,B.useRef)(o),x=(0,B.useRef)(s),S=(0,B.useRef)(l),C;t[0]!==a||t[1]!==i||t[2]!==l||t[3]!==o||t[4]!==s?(C=()=>{_.current=i,y.current=a,b.current=o,x.current=s,S.current=l},t[0]=a,t[1]=i,t[2]=l,t[3]=o,t[4]=s,t[5]=C):C=t[5],(0,B.useEffect)(C);let w;t[6]===d?w=t[7]:(w=be({placeholder:d}),t[6]=d,t[7]=w);let T=f??void 0,E=!g,D;t[8]===h?D=t[9]:(D=h===void 0?{}:{"data-testid":h},t[8]=h,t[9]=D);let O;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=c(`composer-prosemirror py-1 outline-none`),t[10]=O):O=t[10];let k;t[11]!==r||t[12]!==D?(k={role:`textbox`,"aria-label":r,"aria-multiline":`true`,...D,class:O},t[11]=r,t[12]=D,t[13]=k):k=t[13];let A;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(A=(e,t)=>t.key===`Escape`?q.getState(e.state)?.active?!1:S.current===void 0?(e.dom.blur(),!0):(S.current(),!0):t.key===`Enter`&&!t.shiftKey&&!t.isComposing&&!e.composing?q.getState(e.state)?.active?!1:(x.current(),!0):!1,t[14]=A):A=t[14];let j;t[15]===k?j=t[16]:(j={attributes:k,handleKeyDown:A},t[15]=k,t[16]=j);let M;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(M=e=>{let{editor:t}=e;_.current(Y(t)),y.current?.(t.getJSON()),b.current?.(J(t).mentions)},t[17]=M):M=t[17];let N;t[18]!==j||t[19]!==w||t[20]!==T||t[21]!==E?(N={extensions:w,content:T,immediatelyRender:!0,editable:E,editorProps:j,onUpdate:M},t[18]=j,t[19]=w,t[20]=T,t[21]=E,t[22]=N):N=t[22];let P=v(N),L,R;t[23]!==r||t[24]!==P||t[25]!==d?(L=()=>{if(!P||P.isDestroyed)return;let e=P.extensionManager.extensions.find(Ee);e&&(e.options.placeholder=d??``);let t=P.editorView;t&&(t.dom.setAttribute(`aria-label`,r??``),t.dispatch(P.state.tr.setMeta(`addToHistory`,!1)))},R=[P,d,r],t[23]=r,t[24]=P,t[25]=d,t[26]=L,t[27]=R):(L=t[26],R=t[27]),(0,B.useEffect)(L,R);let z,V;t[28]!==g||t[29]!==P?(z=()=>{if(!P||P.isDestroyed)return;let e=!g;P.isEditable!==e&&P.setEditable(e,!1);let t=P.editorView;t&&(g?t.dom.setAttribute(`aria-disabled`,`true`):t.dom.removeAttribute(`aria-disabled`))},V=[P,g],t[28]=g,t[29]=P,t[30]=z,t[31]=V):(z=t[30],V=t[31]),(0,B.useEffect)(z,V);let H;t[32]!==P||t[33]!==f?(H=()=>{P&&(Y(P)&&Ce(f)&&(console.warn(`composer draft was incompatible with the current schema — clearing it`),oe()),_.current(Y(P)),b.current?.(J(P).mentions))},t[32]=P,t[33]=f,t[34]=H):H=t[34];let U;t[35]===P?U=t[36]:(U=[P],t[35]=P,t[36]=U),(0,B.useEffect)(H,U);let W,G;t[37]===P?(W=t[38],G=t[39]):(W=()=>({focus:()=>P?.commands.focus(),blur:()=>P?.commands.blur(),clear:()=>P?.commands.clearContent(!0),setText:e=>{P&&(P.commands.setContent(e),y.current?.(P.getJSON()),b.current?.(J(P).mentions))},appendText:e=>{!P||e===``||(Y(P)?P.commands.setContent(we(e)):P.commands.insertContentAt(P.state.doc.content.size,[{type:`paragraph`,content:[]},...we(e)]),_.current(Y(P)),y.current?.(P.getJSON()),b.current?.(J(P).mentions))},getContent:()=>P?J(P):{instruction:``,mentions:[]}}),G=[P],t[37]=P,t[38]=W,t[39]=G),(0,B.useImperativeHandle)(n,W,G);let K;return t[40]!==u||t[41]!==P?(K=(0,I.jsx)(p,{editor:P,className:u}),t[40]=u,t[41]=P,t[42]=K):K=t[42],K}function Ee(e){return e.name===`placeholder`}function De(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Oe(e){let t=(0,F.c)(21),{path:n,onRemove:r}=e,{_:a}=o(),s,c;t[0]!==a||t[1]!==n?(s=De(n),c=a({id:`hnq8fP`,values:{label:s}}),t[0]=a,t[1]=n,t[2]=s,t[3]=c):(s=t[2],c=t[3]);let l=c,d=`composer-context-chip-file-${n}`,f;t[4]===r?f=t[5]:(f=e=>{(e.key===`Backspace`||e.key===`Delete`)&&(e.preventDefault(),r())},t[4]=r,t[5]=f);let p;t[6]===n?p=t[7]:(p=(0,I.jsx)(`span`,{className:`absolute top-1/2 left-1/2 inline-flex size-3 -translate-x-1/2 -translate-y-1/2 opacity-100 transition-opacity duration-150 ease-out group-hover/chip:opacity-0 group-focus-within/chip:opacity-0 motion-reduce:transition-none`,children:(0,I.jsx)(i,{path:n,className:`size-3`,showExtensionBadge:!1})}),t[6]=n,t[7]=p);let m;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,I.jsx)(N,{className:`absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2 opacity-0 transition-opacity duration-150 ease-out group-hover/chip:opacity-100 group-focus-within/chip:opacity-100 motion-reduce:transition-none`,"aria-hidden":!0}),t[8]=m):m=t[8];let h;t[9]!==r||t[10]!==l||t[11]!==f||t[12]!==p?(h=(0,I.jsxs)(u,{type:`button`,variant:`ghost`,size:`icon`,"aria-label":l,onClick:r,onKeyDown:f,className:`group/remove relative size-3.5 shrink-0 rounded-sm text-muted-foreground/80 hover:text-foreground`,children:[p,m]}),t[9]=r,t[10]=l,t[11]=f,t[12]=p,t[13]=h):h=t[13];let g;t[14]===s?g=t[15]:(g=(0,I.jsx)(`span`,{className:`min-w-0 truncate`,children:s}),t[14]=s,t[15]=g);let _;return t[16]!==n||t[17]!==d||t[18]!==h||t[19]!==g?(_=(0,I.jsxs)(`span`,{"data-testid":d,title:n,className:`group/chip inline-flex max-w-[14rem] items-center gap-1 rounded-md border bg-muted/40 py-0.5 pr-1.5 pl-1 text-muted-foreground text-xs`,children:[h,g]}),t[16]=n,t[17]=d,t[18]=h,t[19]=g,t[20]=_):_=t[20],_}function ke(e){let t=(0,F.c)(13),{files:n,onRemoveFile:r,className:i,children:a}=e,o;t[0]===n?o=t[1]:(o=n===void 0?[]:n,t[0]=n,t[1]=o);let s=o;if(s.length===0&&B.Children.toArray(a).length===0)return null;let l;t[2]===i?l=t[3]:(l=c(`flex flex-wrap items-center gap-1`,i),t[2]=i,t[3]=l);let u;if(t[4]!==s||t[5]!==r){let e;t[7]===r?e=t[8]:(e=e=>(0,I.jsx)(Oe,{path:e,onRemove:()=>r?.(e)},e),t[7]=r,t[8]=e),u=s.map(e),t[4]=s,t[5]=r,t[6]=u}else u=t[6];let d;return t[9]!==a||t[10]!==l||t[11]!==u?(d=(0,I.jsxs)(`div`,{className:l,"data-testid":`composer-context-chips`,children:[u,a]}),t[9]=a,t[10]=l,t[11]=u,t[12]=d):d=t[12],d}function Ae(){let e=(0,F.c)(2),[t,n]=(0,B.useState)(je),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=window.matchMedia(`(prefers-reduced-motion: reduce)`);n(e.matches);let t=e=>n(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,B.useEffect)(r,i),t}function je(){return typeof window<`u`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function X(e,t){let n=e[t];return typeof n==`string`&&n!==``?n:null}function Me(e){if(typeof e!=`object`||!e)return null;let t=e,n=X(t,`tool`)??X(t,`name`),r=t;if(typeof t.arguments==`object`&&t.arguments!==null)r=t.arguments;else if(typeof t.arguments==`string`)try{let e=JSON.parse(t.arguments);typeof e==`object`&&e&&(r=e)}catch{}return{tool:n,args:r}}var Z=`ok-acp-follow-file-v1`;function Ne(){try{return localStorage.getItem(Z)!==`0`}catch{return!0}}function Pe(e){try{localStorage.setItem(Z,e?`1`:`0`)}catch{}}function Q(e){return e===``||e.startsWith(`/`)||e.startsWith(`\\`)||e.split(`/`).some(e=>e===``||e.startsWith(`.`))?null:e}function $(e,t){let n=t.pathSeparator,r=e=>n===`\\`?e.replaceAll(`\\`,`/`):e,i=r(t.contentDir).replace(/\/$/,``),a=r(e);if(!a.startsWith(`${i}/`))return null;let o=a.slice(i.length+1),s=/\.(md|mdx)$/.exec(o);return s===null?null:Q(o.slice(0,-s[0].length))}var Fe=new Set([`cat`,`ls`,`grep`,`rg`,`find`,`head`,`tail`,`wc`,`sort`,`uniq`,`cut`,`sed`,`awk`,`bat`,`less`,`more`]);function Ie(e,t){let n=[],r=/"([^"]*)"|'([^']*)'|(\S+)/g,i=r.exec(e);for(;i!==null;)n.push(i[1]??i[2]??i[3]??``),i=r.exec(e);let a=n[0];if(a===void 0||!Fe.has(a))return null;for(let e of n.slice(1)){if(e.startsWith(`-`)||/[*?[\]]/.test(e))continue;let n=/\.(md|mdx)$/i.exec(e);if(n===null)continue;if(e.startsWith(`/`)||/^[A-Za-z]:[\\/]/.test(e)){if(t!==null){let n=$(e,t);if(n!==null)return n}continue}let r=Q(e.replace(/^\.\//,``).slice(0,-n[0].length));if(r!==null)return r}return null}function Le(e){if(e===null||e.loading||e.error!==null)return{};let t=e.pages;return{docExists:e=>t.has(e)}}function Re(e,t,n,r){let i=Me(e);if(i===null)return null;let{tool:a,args:o}=i;if(a===`delete`||a===null&&/\bdelete\b/i.test(t))return null;let s=typeof o.document==`object`&&o.document!==null?o.document:null,c=null;if(Array.isArray(o.documents))for(let e=o.documents.length-1;e>=0;e--){let t=o.documents[e];if(typeof t==`object`&&t){c=t;break}}let l=(s===null?null:X(s,`path`))??(c===null?null:X(c,`path`))??X(o,`to`)??X(o,`docName`);if(l!==null)return Q(l.replace(/\.(md|mdx)$/,``));let u=X(o,`command`);if(u!==null){let e=Ie(u,n);return e!==null&&r.docExists!==void 0&&!r.docExists(e)?null:e}return null}function ze(e,t,n={}){if(e.toolKind===`delete`)return null;let r=Re(e.rawInput,e.title,t,n);if(r!==null)return r;if(t===null)return null;let i=e.toolKind!==`edit`&&e.toolKind!==`move`&&n.docExists!==void 0;for(let r=e.locations.length-1;r>=0;r--){let a=e.locations[r];if(a===void 0)continue;let o=$(a.path,t);if(o!==null)return i&&!n.docExists?.(o)?null:o}return null}var Be={lastFollowed:null,yielded:!1,reArmed:!1};function Ve(e,t,n){if(e===null||n.lastFollowed===e)return{navigateTo:null,state:n};if(n.lastFollowed!==null&&t!==null&&t!==n.lastFollowed&&t!==e&&!n.reArmed)return{navigateTo:null,state:{...n,yielded:!0}};if(n.yielded&&!n.reArmed)return{navigateTo:null,state:n};let r={lastFollowed:e,yielded:!1,reArmed:!1};return t===e?{navigateTo:null,state:r}:{navigateTo:e,state:r}}function He(e,t,n={}){let r=null;for(let i of e){if(i.kind!==`tool_call`)continue;let e=ze(i,t,n);e!==null&&(r=e)}return r}export{ae as _,Le as a,P as b,X as c,ke as d,Te as f,ie as g,oe as h,Ne as i,Me as l,ce as m,Ve as n,Q as o,le as p,He as r,Pe as s,Be as t,Ae as u,R as v,z as y};
@@ -1 +0,0 @@
1
- import"./dist-GenOktAv.js";import{t as e}from"./dist-DUfEoSbR.js";import{t}from"./messages-CxF28E4J.js";e.load(`en`,t.messages),e.activate(`en`);
@@ -1 +0,0 @@
1
- var e=`https://openknowledge.ai/docs/advanced/content-rules`,t=[{id:`markdownlint`,label:`markdownlint`,docUrl:`${e}/markdownlint`},{id:`frontmatter`,label:`Frontmatter schemas`,docUrl:`${e}/frontmatter`}];export{t};