@inkeep/open-knowledge 0.84.0-beta.0 → 0.84.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/cli.mjs +71 -71
  2. package/dist/config-schema.json +4 -4
  3. package/dist/config.project.schema.json +1 -1
  4. package/dist/config.user.schema.json +4 -4
  5. package/dist/constants-CYVYQ2Ib.mjs +1 -0
  6. package/dist/{dist-BmMYmJrU.mjs → dist-Bc3_Wt6N.mjs} +487 -487
  7. package/dist/dist-CvUzxHSS.mjs +1 -0
  8. package/dist/index.d.mts +12 -3
  9. package/dist/index.mjs +213 -213
  10. package/dist/init-B1y8bkga.mjs +1 -0
  11. package/dist/{init-D29QcTZq.mjs → init-ZiC_qPS2.mjs} +59 -59
  12. package/dist/{launch-json-removal-5ndYNGXL.mjs → launch-json-removal-AkSL-k1w.mjs} +1 -1
  13. package/dist/loader-CQKOpKdM.mjs +1 -0
  14. package/dist/{loader-CUPoyzHp.mjs → loader-DXV01FEG.mjs} +1 -1
  15. package/dist/{md-manager-BGnqyqi1-BfETHApY.mjs → md-manager-BGnqyqi1-BTvqIsKE.mjs} +137 -137
  16. package/dist/{open-browser-BM0E2IrX.mjs → open-browser-tzVDF1eD.mjs} +1 -1
  17. package/dist/parse-worker.mjs +1 -1
  18. package/dist/preview-CXeJgzGh.mjs +1 -0
  19. package/dist/{preview-BfxmnsOn.mjs → preview-CfRTddxX.mjs} +1 -1
  20. package/dist/public/assets/AccountSection-DzdMuT_J.js +1 -0
  21. package/dist/public/assets/{ActivityModeContent-DZbyWBlo.js → ActivityModeContent-DoZnuYGa.js} +1 -1
  22. package/dist/public/assets/{AddPropertiesButton-DvtOOL5J.js → AddPropertiesButton-DD0OBA-l.js} +2 -2
  23. package/dist/public/assets/AgentConnectionsSection-uSC5Wl25.js +1 -0
  24. package/dist/public/assets/{AgentDiffPane-D9olUVts.js → AgentDiffPane-BDig4K3J.js} +1 -1
  25. package/dist/public/assets/{AgentIconCluster-BRpsTDMH.js → AgentIconCluster-Qf_VPGzc.js} +1 -1
  26. package/dist/public/assets/{AgentThreadClientBinder-BTlP3z2T.js → AgentThreadClientBinder-DEy57m8m.js} +1 -1
  27. package/dist/public/assets/AppMenubar-CnD-jxNS.js +1 -0
  28. package/dist/public/assets/{AttachmentsSection-DdqsNOtE.js → AttachmentsSection-BWJyVXgH.js} +1 -1
  29. package/dist/public/assets/{AuthModal-CkHLmy_N.js → AuthModal-SudaNBin.js} +1 -1
  30. package/dist/public/assets/{BugReportHistory-BPO915fE.js → BugReportHistory-DXLqvyNw.js} +1 -1
  31. package/dist/public/assets/{BugReportHistoryDialog-CY6vlR_h.js → BugReportHistoryDialog-CkyHUUkn.js} +1 -1
  32. package/dist/public/assets/{CodeMirrorPropInput-BTCkQ8gy.js → CodeMirrorPropInput-DrSmujd5.js} +1 -1
  33. package/dist/public/assets/{ConsentDialogBody-CGhUvR3J.js → ConsentDialogBody-BRj-qPxP.js} +1 -1
  34. package/dist/public/assets/{ContentRulesSection-BPc0bEex.js → ContentRulesSection-CffRuHfA.js} +1 -1
  35. package/dist/public/assets/{DiffViewBoundary-BVzts2c4.js → DiffViewBoundary-DyfPtl_S.js} +1 -1
  36. package/dist/public/assets/{DocumentContext-Cgpe7PUq.js → DocumentContext-D8TnLZMo.js} +1 -1
  37. package/dist/public/assets/{EditorModeToggle-8PbuUKPX.js → EditorModeToggle-DFb9s9P6.js} +1 -1
  38. package/dist/public/assets/{ExcalidrawDocEditor-DPjKh0Z6.js → ExcalidrawDocEditor-0C73ad4N.js} +1 -1
  39. package/dist/public/assets/FeedbackForm-BLpLr_CW.js +1 -0
  40. package/dist/public/assets/{GraphPanel-COpuyFxT.js → GraphPanel-K91KgPSG.js} +1 -1
  41. package/dist/public/assets/{ImageAttachments-By1ZcRNT.js → ImageAttachments-Dovmnniy.js} +1 -1
  42. package/dist/public/assets/{ImportSkillDialog-BRMCNFIO.js → ImportSkillDialog-CNeazF-G.js} +1 -1
  43. package/dist/public/assets/{LinkPreviewsSection-DrVzxhzA.js → LinkPreviewsSection-BH7oUnak.js} +1 -1
  44. package/dist/public/assets/{LintConfigEditor-CYgb3HLw.js → LintConfigEditor-CBDD_tLD.js} +1 -1
  45. package/dist/public/assets/{LintingSection-DwEExyYA.js → LintingSection-BHt8QqtA.js} +1 -1
  46. package/dist/public/assets/ManagedArtifactProperties-DevwE2aa.js +1 -0
  47. package/dist/public/assets/{ManagedArtifactProperties-Cejw-D7l.js → ManagedArtifactProperties-IjwB8-yG.js} +1 -1
  48. package/dist/public/assets/{MermaidDocEditor-TV8MQtbb.js → MermaidDocEditor-L8DaX5Id.js} +1 -1
  49. package/dist/public/assets/{NetworkAccessSection-G-tyEPOW.js → NetworkAccessSection-DnVCXfdh.js} +1 -1
  50. package/dist/public/assets/{OkignoreSection-DUIPj4Vl.js → OkignoreSection-CK7dC70g.js} +1 -1
  51. package/dist/public/assets/{PageListContext-CYKNvec7.js → PageListContext-aYEmqTv4.js} +1 -1
  52. package/dist/public/assets/{ProjectTemplatesSection-Ctdx9_AL.js → ProjectTemplatesSection-C1cqcdG5.js} +1 -1
  53. package/dist/public/assets/{PropertyDisplayRow-DULpBoN1.js → PropertyDisplayRow-i2I1A0Ba.js} +2 -2
  54. package/dist/public/assets/{PublishToGitHubDialog-BcpO5RKl.js → PublishToGitHubDialog-C9dpKyMf.js} +1 -1
  55. package/dist/public/assets/RegisteredAgentIcon-DjlAkIlP.js +1 -0
  56. package/dist/public/assets/ReportBugDialogBody-DLBMwSqE.js +3 -0
  57. package/dist/public/assets/{ReportBugMenuTrigger-DwuaKFu1.js → ReportBugMenuTrigger-AJRYHH_Y.js} +1 -1
  58. package/dist/public/assets/{SchemaConfigEditor-D79vqFmf.js → SchemaConfigEditor-C6HvOFuV.js} +1 -1
  59. package/dist/public/assets/{SearchSection-Dx8-C7aO.js → SearchSection-Cj1r4r7t.js} +1 -1
  60. package/dist/public/assets/SessionsHost-BIQfFpNX.js +2 -0
  61. package/dist/public/assets/{SettingsDialogBody-BmlfRDFb.js → SettingsDialogBody-CNDQb7sY.js} +2 -2
  62. package/dist/public/assets/{ShareReceiveMissDialog-0PE01E7W.js → ShareReceiveMissDialog-D9rmTdNf.js} +1 -1
  63. package/dist/public/assets/{SharingSection-BvdibR47.js → SharingSection-Bjl_f8Kj.js} +1 -1
  64. package/dist/public/assets/{SkillCostValue-Bajv3P86.js → SkillCostValue-Cxzi3vI1.js} +1 -1
  65. package/dist/public/assets/{SkillEditBanner-B0ZxQBAN.js → SkillEditBanner-VIoAHWvy.js} +1 -1
  66. package/dist/public/assets/{SkillForkDialog-BKGY1iRx.js → SkillForkDialog-bphSE5Zm.js} +1 -1
  67. package/dist/public/assets/{SkillInstallMenu-CuOKJ4_n.js → SkillInstallMenu-taqzd9mr.js} +1 -1
  68. package/dist/public/assets/{SkillOriginInline-BrUb4Fgy.js → SkillOriginInline-oYxSvlYQ.js} +1 -1
  69. package/dist/public/assets/{SkillToolbarControls-CT26YXuL.js → SkillToolbarControls-Bncu3tVe.js} +1 -1
  70. package/dist/public/assets/{SkillsManagerSection-dqXRCM3C.js → SkillsManagerSection-B5fmoY8R.js} +1 -1
  71. package/dist/public/assets/{SlidesPluginSection-Bk1073RP.js → SlidesPluginSection-gB_5IAe_.js} +1 -1
  72. package/dist/public/assets/{SlidesToolbarControls-D-0pa5F-.js → SlidesToolbarControls-DUmYa_3C.js} +1 -1
  73. package/dist/public/assets/{SourceEditor-DghQVHvX.js → SourceEditor-DPM24wFV.js} +1 -1
  74. package/dist/public/assets/{SpellingSettings-C3y5UjRC.js → SpellingSettings-BJoBhzez.js} +1 -1
  75. package/dist/public/assets/SyncSection-BXL3vVGV.js +1 -0
  76. package/dist/public/assets/SyncStatusBadge-BY0dbdUl.js +1 -0
  77. package/dist/public/assets/{TemplateRow-C8tLmbrb.js → TemplateRow-BxUG6C5_.js} +1 -1
  78. package/dist/public/assets/{TerminalLaunchContext-58PQDilg.js → TerminalLaunchContext-CJTkwtCs.js} +1 -1
  79. package/dist/public/assets/{TerminalPanel-DOYDhObX.js → TerminalPanel-DVlVrgmd.js} +1 -1
  80. package/dist/public/assets/{TerminalSection-BBA8y3S1.js → TerminalSection-C2iU1i4h.js} +1 -1
  81. package/dist/public/assets/{TerminalWindowApp-DFmcq1vG.js → TerminalWindowApp-Cl41lh1g.js} +1 -1
  82. package/dist/public/assets/{TextDocEditor-DxghXof_.js → TextDocEditor-Cfgoa8Ap.js} +1 -1
  83. package/dist/public/assets/{ThemePluginSection-rW_Rhi3t.js → ThemePluginSection-BK71Plgj.js} +1 -1
  84. package/dist/public/assets/{ThreadView-BcdaDwyX.js → ThreadView-EM0ArHvn.js} +3 -3
  85. package/dist/public/assets/{TimelineDiffPane-DbgES6nK.js → TimelineDiffPane-Bcrv-3ap.js} +1 -1
  86. package/dist/public/assets/{agent-connections-Bc1t_U_m.js → agent-connections-D2w6claM.js} +1 -1
  87. package/dist/public/assets/agent-registry-B4dxoiaL.js +1 -0
  88. package/dist/public/assets/{bridge-BqL-1MyE.js → bridge-DsUUjTsy.js} +1 -1
  89. package/dist/public/assets/{calendar-U3XIfpfI.js → calendar-B94KcaTl.js} +1 -1
  90. package/dist/public/assets/{card-CHd8wMSS.js → card-CBVFHVPp.js} +1 -1
  91. package/dist/public/assets/{catalog-nXBoyoEn.js → catalog-Bdh906tM.js} +1 -1
  92. package/dist/public/assets/{comment-chips-D7PAXgFJ.js → comment-chips-Dc9AyaeT.js} +1 -1
  93. package/dist/public/assets/{config-errors-DCSQBhyj.js → config-errors-tVoeK4OC.js} +1 -1
  94. package/dist/public/assets/{config-provider-DBgrt1kx.js → config-provider-BpDfgoSI.js} +1 -1
  95. package/dist/public/assets/config-schema-CQminH5Z.js +1 -0
  96. package/dist/public/assets/{constants-editors-05BNhhVl.js → constants-editors-DLxv8SuP.js} +1 -1
  97. package/dist/public/assets/constants-product-C4Nt9vD3.js +1 -0
  98. package/dist/public/assets/{css-color-to-hex-Dk3DSeEK.js → css-color-to-hex-D-oM_f97.js} +1 -1
  99. package/dist/public/assets/{doc-undo-manager-DGQuNlgn.js → doc-undo-manager-Cl0eevTV.js} +1 -1
  100. package/dist/public/assets/{documents-events-C04vpPEp.js → documents-events-C7Jq0Exs.js} +1 -1
  101. package/dist/public/assets/field-controls-DPAPGMXV.js +1 -0
  102. package/dist/public/assets/{field-controls-BqsFU6aY.js → field-controls-DpJXxyPk.js} +1 -1
  103. package/dist/public/assets/{folder-config-api-bwKmZWh2.js → folder-config-api-z8QlaVAB.js} +1 -1
  104. package/dist/public/assets/{frontmatter-tags-B7FS--Ga.js → frontmatter-tags-DIPhIb6q.js} +1 -1
  105. package/dist/public/assets/index-BMLZ69to.js +2205 -0
  106. package/dist/public/assets/{input-group-D_ozMCmW.js → input-group-CvtNBDpz.js} +1 -1
  107. package/dist/public/assets/{lint-config-client-C0cPUFg9.js → lint-config-client-Cj3Jt5m2.js} +1 -1
  108. package/dist/public/assets/{lint-plugins-24yMjYos.js → lint-plugins-RYXoVRXF.js} +1 -1
  109. package/dist/public/assets/{markdown-lint-DxrbxECW.js → markdown-lint-BVkEhglC.js} +1 -1
  110. package/dist/public/assets/{markdownlint-rule-browser-C-vo_WXw.js → markdownlint-rule-browser-ldRZcg6r.js} +1 -1
  111. package/dist/public/assets/messages-BGmazN_U.js +1 -0
  112. package/dist/public/assets/messages-B_44cpaN.js +1 -0
  113. package/dist/public/assets/messages-BcrGi_eE.js +1 -0
  114. package/dist/public/assets/messages-CLW4C_8a.js +1 -0
  115. package/dist/public/assets/messages-CfPKtrVG.js +1 -0
  116. package/dist/public/assets/messages-Cqjl8Mn1.js +1 -0
  117. package/dist/public/assets/messages-CrST-PfZ.js +1 -0
  118. package/dist/public/assets/messages-Crqxy7un.js +1 -0
  119. package/dist/public/assets/messages-Cs1spxzv.js +1 -0
  120. package/dist/public/assets/messages-D9RqT3Hq.js +1 -0
  121. package/dist/public/assets/messages-DNPfTsXY.js +1 -0
  122. package/dist/public/assets/messages-DidnvYXX.js +1 -0
  123. package/dist/public/assets/messages-VaXD108f.js +1 -0
  124. package/dist/public/assets/pending-receive-nav-store-CBvL7hAw.js +1 -0
  125. package/dist/public/assets/platform-labels-jdatkx8d.js +1 -0
  126. package/dist/public/assets/{preferred-session-events-DZS0rMoL.js → preferred-session-events-BMXrfZPQ.js} +1 -1
  127. package/dist/public/assets/{progress-BXjvg4DI.js → progress-76173s7V.js} +1 -1
  128. package/dist/public/assets/{project-paths-B82COK8C.js → project-paths-DhRV4pus.js} +1 -1
  129. package/dist/public/assets/{restart-collab-server-C16c-Ep9.js → restart-collab-server-BLCoCY2a.js} +1 -1
  130. package/dist/public/assets/saved-themes-client-CeB36dNr.js +1 -0
  131. package/dist/public/assets/{schema-section-eljmMDBb.js → schema-section-CYDmXwKv.js} +1 -1
  132. package/dist/public/assets/{schemas-api-BM3O7zA1.js → schemas-api-BbYGQuTW.js} +1 -1
  133. package/dist/public/assets/{schemas-cc1-hKlHTZpE.js → schemas-cc1-CR2ooa34.js} +1 -1
  134. package/dist/public/assets/{selection-context-C68gF2Oq.js → selection-context-BUZTIeDP.js} +1 -1
  135. package/dist/public/assets/{sign-in-terminal-events-Uy8J-zPE.js → sign-in-terminal-events-B_AuVu-u.js} +1 -1
  136. package/dist/public/assets/{skill-scope-CxuIje2Y.js → skill-scope-N3jmnGIX.js} +1 -1
  137. package/dist/public/assets/{skill-targets-schema-BqGbUdGW.js → skill-targets-schema-BujW07bM.js} +1 -1
  138. package/dist/public/assets/{skills-api-Cwv39pKK.js → skills-api-C4z5vWyd.js} +1 -1
  139. package/dist/public/assets/{src-COG_7U42.js → src-D7rCHhfK.js} +1 -1
  140. package/dist/public/assets/storage-scope-DSPgNqch.js +1 -0
  141. package/dist/public/assets/{tag-pill-input-DoehfrBo.js → tag-pill-input-C0Dbn5VR.js} +1 -1
  142. package/dist/public/assets/{terminal-launch-events-vPUm3fxK.js → terminal-launch-events-C-sad7ou.js} +1 -1
  143. package/dist/public/assets/{thread-client-BoGcOSf9.js → thread-client-CHIeG-eB.js} +1 -1
  144. package/dist/public/assets/{typing-burst-detector-BKuWOIaA.js → typing-burst-detector-iu7L-hA6.js} +1 -1
  145. package/dist/public/assets/{uninstall-DiNfurw6.js → uninstall-D2-KYdsO.js} +1 -1
  146. package/dist/public/assets/{use-activity-panel-BgzoGLEn.js → use-activity-panel-WtogOEEi.js} +1 -1
  147. package/dist/public/assets/{use-apply-config-color-theme-DsCyuU3O.js → use-apply-config-color-theme-DiRXrQH-.js} +1 -1
  148. package/dist/public/assets/{use-apply-config-language-BvXQKexF.js → use-apply-config-language-COUD5OO7.js} +2 -2
  149. package/dist/public/assets/{use-collab-url-CEI12fca.js → use-collab-url-BPJukLUh.js} +1 -1
  150. package/dist/public/assets/{use-conflicts-CpABgIGI.js → use-conflicts-DgaZPKZv.js} +1 -1
  151. package/dist/public/assets/{use-git-sync-status-BQYF2F5Z.js → use-git-sync-status-BwJMuoUW.js} +1 -1
  152. package/dist/public/assets/use-installed-clis-DlMKIYvM.js +2 -0
  153. package/dist/public/assets/{use-live-xterm-theme-CkVAs5Ql.js → use-live-xterm-theme-D4uCjklq.js} +1 -1
  154. package/dist/public/assets/{use-open-skill-CDNmRdpj.js → use-open-skill-Bl-rypEG.js} +1 -1
  155. package/dist/public/assets/{use-semantic-search-status-BYu4PoVz.js → use-semantic-search-status-CrlWLidR.js} +1 -1
  156. package/dist/public/assets/{use-skill-origin-Be1NTkgW.js → use-skill-origin-E-sT1iHg.js} +1 -1
  157. package/dist/public/assets/{use-skill-targets-Cf23drqO.js → use-skill-targets-DtHz-14o.js} +1 -1
  158. package/dist/public/assets/{use-skills-gbn1t63C.js → use-skills-C6ZneXh8.js} +1 -1
  159. package/dist/public/assets/{use-terminal-enabled-CYPFWXCG.js → use-terminal-enabled-DeBsOZ1A.js} +1 -1
  160. package/dist/public/assets/{use-timeline-entry-diff-Cb24Bjqb.js → use-timeline-entry-diff-nEONCY6R.js} +1 -1
  161. package/dist/public/assets/{use-workspace-BafUpQnS.js → use-workspace-Dyz_XHeI.js} +1 -1
  162. package/dist/public/index.html +74 -74
  163. package/dist/public/uninstall.html +4 -4
  164. package/dist/registry-probes-DNaU56kl.mjs +17 -0
  165. package/dist/{removal-file-path-BdSClBgZ.mjs → removal-file-path-BuLpw6F5.mjs} +1 -1
  166. package/dist/{repair-launch-json-C-OCcoOV.mjs → repair-launch-json-CtAdQsRf.mjs} +1 -1
  167. package/dist/{repair-mcp-configs-Ck7wXNVg.mjs → repair-mcp-configs-Bfys7jKY.mjs} +1 -1
  168. package/dist/schemas/v0/config.project.schema.json +1 -1
  169. package/dist/schemas/v0/config.user.schema.json +4 -4
  170. package/dist/src-C6syC3v6.mjs +11 -0
  171. package/dist/src-LtjCkl-j.mjs +1 -0
  172. package/dist/start-BcbkXw2n.mjs +5 -0
  173. package/dist/start-DdmSNHh0.mjs +1 -0
  174. package/package.json +4 -4
  175. package/dist/constants-CJTSHFDQ.mjs +0 -1
  176. package/dist/dist-BUsVlOD-.mjs +0 -1
  177. package/dist/init-6eE8auCX.mjs +0 -1
  178. package/dist/loader-CisLPZPW.mjs +0 -1
  179. package/dist/preview-DQ-4J61L.mjs +0 -1
  180. package/dist/public/assets/AccountSection-BsoknTRm.js +0 -1
  181. package/dist/public/assets/AgentConnectionsSection-D_gmSJG4.js +0 -1
  182. package/dist/public/assets/AppMenubar-D7u5sV7t.js +0 -1
  183. package/dist/public/assets/FeedbackForm-w2RNhl0R.js +0 -1
  184. package/dist/public/assets/ManagedArtifactProperties-sO6f840l.js +0 -1
  185. package/dist/public/assets/RegisteredAgentIcon-Begcc-nC.js +0 -1
  186. package/dist/public/assets/ReportBugDialogBody-CPjEs_zr.js +0 -3
  187. package/dist/public/assets/SessionsHost-DhB6vMF-.js +0 -2
  188. package/dist/public/assets/SyncSection-DmMPCcrO.js +0 -1
  189. package/dist/public/assets/SyncStatusBadge-7CGaFHUk.js +0 -1
  190. package/dist/public/assets/agent-registry-3ko3YkCm.js +0 -1
  191. package/dist/public/assets/config-schema-xOnB5jc5.js +0 -1
  192. package/dist/public/assets/constants-product-DhAo-666.js +0 -1
  193. package/dist/public/assets/field-controls-CnF_w0df.js +0 -1
  194. package/dist/public/assets/index-C_8iI96N.js +0 -2205
  195. package/dist/public/assets/messages-9pu0eKMD.js +0 -1
  196. package/dist/public/assets/messages-BCv3uDH5.js +0 -1
  197. package/dist/public/assets/messages-BGib4TMp.js +0 -1
  198. package/dist/public/assets/messages-BOWt1g5R.js +0 -1
  199. package/dist/public/assets/messages-BtwWpZz0.js +0 -1
  200. package/dist/public/assets/messages-BtzlQnhk.js +0 -1
  201. package/dist/public/assets/messages-BxPgHAGT.js +0 -1
  202. package/dist/public/assets/messages-C_IQGWPh.js +0 -1
  203. package/dist/public/assets/messages-CgvGzWvU.js +0 -1
  204. package/dist/public/assets/messages-CmBBJ_lX.js +0 -1
  205. package/dist/public/assets/messages-D07eucGp.js +0 -1
  206. package/dist/public/assets/messages-DHQmHLsP.js +0 -1
  207. package/dist/public/assets/messages-R6IvK1vE.js +0 -1
  208. package/dist/public/assets/pending-receive-nav-store-ge0q0US7.js +0 -1
  209. package/dist/public/assets/platform-labels-CtgIRyUl.js +0 -1
  210. package/dist/public/assets/saved-themes-client-CmQnQ6kY.js +0 -1
  211. package/dist/public/assets/storage-scope-67lIepq6.js +0 -1
  212. package/dist/public/assets/use-installed-clis-CXwm5pk2.js +0 -2
  213. package/dist/registry-probes-NShX9Gbx.mjs +0 -17
  214. package/dist/src-BPKOub-z.mjs +0 -11
  215. package/dist/src-CZcP6UNX.mjs +0 -1
  216. package/dist/start-CPHxqFwe.mjs +0 -5
  217. package/dist/start-s51e4yCV.mjs +0 -1
  218. /package/dist/public/assets/{ChangedOutsideBadge-BB-SCUmw.js → ChangedOutsideBadge-Dzr-p6dI.js} +0 -0
  219. /package/dist/public/assets/{DeleteConfirmationDialog-DrwlL-Hc.js → DeleteConfirmationDialog-BXUDIZYO.js} +0 -0
  220. /package/dist/public/assets/{SkillModeBanner-DaZYmbfZ.js → SkillModeBanner-DcxGGSM7.js} +0 -0
  221. /package/dist/public/assets/{alert-BY4HHcfV.js → alert-rmEQg7oS.js} +0 -0
  222. /package/dist/public/assets/{format-Yv4YAHdV.js → format-INdUJq6M.js} +0 -0
  223. /package/dist/public/assets/{sortable.esm-DuJVOTXv.js → sortable.esm-k5B4BkZq.js} +0 -0
  224. /package/dist/public/assets/{textarea-qPZDtk8V.js → textarea-CWb90goJ.js} +0 -0
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-DBqLYfio.js";import{n as l,r as u,t as d}from"./collapsible-BKbszYZV.js";import{i as f,n as p,o as m,s as h,t as g}from"./select-Bu4Wm3Rf.js";import{t as _}from"./button-DzgjsZzC.js";import{n as v}from"./dist-BGzUo_18.js";import{t as y}from"./dist-C_FzPxEX2.js";import{n as b}from"./config-errors-DCSQBhyj.js";import{v as x}from"./documents-events-C04vpPEp.js";import{f as S,h as C}from"./share-D-LUU2aX-DfD-mrg-.js";import{i as w}from"./use-apply-config-theme-CYFG76sS.js";import{t as T}from"./createLucideIcon-DdBzwsHe.js";import{n as E,t as D}from"./arrow-up-BGHhPj4y.js";import{t as ee}from"./arrow-up-right-nJaICi16.js";import{t as O}from"./chevron-right-Bofu4lib.js";import{n as k,t as te}from"./settings-2-DoBlNQMk.js";import{t as A}from"./git-merge-VDBzSZBV.js";import{t as j}from"./spinner-Bx8xD6f8.js";import{t as M}from"./refresh-cw-CC7UZEnZ.js";import{t as N}from"./terminal-Cpb4l1oH.js";import{t as P}from"./triangle-alert-BXrUEeRU.js";import{t as F}from"./badge-DmdA1C7r.js";import{a as I,c as ne,i as L,n as re,o as ie,r as ae,s as oe,t as se}from"./dialog-BJEjKJjL.js";import{a as R,l as ce}from"./use-settings-route-DT86DJkF.js";import{c as le,h as ue,l as de}from"./doc-hash-BJkweiX9.js";import"./config-provider-DBgrt1kx.js";import{a as z,i as fe,r as pe,t as me}from"./popover-BhiLJhH5.js";import{n as he}from"./use-git-sync-status-BQYF2F5Z.js";import{n as ge}from"./use-conflicts-CpABgIGI.js";import{n as B,t as _e}from"./DisclosureWarning-DGH1_U0o.js";import{t as ve}from"./terminal-command-events-DylLB9_L.js";var V=T(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),ye=T(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),be=T(`cloud-alert`,[[`path`,{d:`M12 12v4`,key:`tww15h`}],[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.128 16.949A7 7 0 1 1 15.71 8h1.79a1 1 0 0 1 0 9h-1.642`,key:`1namsd`}]]),xe=T(`cloud-off`,[[`path`,{d:`M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057`,key:`1uxyv8`}],[`path`,{d:`M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78`,key:`99tcn7`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),H=T(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),Se=T(`git-commit-vertical`,[[`path`,{d:`M12 3v6`,key:`1holv5`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`M12 15v6`,key:`a9ows0`}]]),Ce=T(`laptop`,[[`path`,{d:`M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z`,key:`1pdavp`}],[`path`,{d:`M20.054 15.987H3.946`,key:`14rxg9`}]]),we=T(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]),Te=T(`user-cog`,[[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m14.305 16.53.923-.382`,key:`1itpsq`}],[`path`,{d:`m15.228 13.852-.923-.383`,key:`eplpkm`}],[`path`,{d:`m16.852 12.228-.383-.923`,key:`13v3q0`}],[`path`,{d:`m16.852 17.772-.383.924`,key:`1i8mnm`}],[`path`,{d:`m19.148 12.228.383-.923`,key:`1q8j1v`}],[`path`,{d:`m19.53 18.696-.382-.924`,key:`vk1qj3`}],[`path`,{d:`m20.772 13.852.924-.383`,key:`n880s0`}],[`path`,{d:`m20.772 16.148.924.383`,key:`1g6xey`}],[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),U=a(),W=e(n(),1);function Ee(){let e=(0,U.c)(2),{projectLocalBinding:t,projectLocalSynced:n}=w();if(t===null||!n)return null;let r;return e[0]===t?r=e[1]:(r=e=>{let n=e?`full`:`off`,r=t.patch({autoSync:{mode:n,enabled:e}});return r.ok?{ok:!0}:{ok:!1,error:b(r.error)}},e[0]=t,e[1]=r),r}function De(){let e=(0,U.c)(2),{projectLocalBinding:t,projectLocalSynced:n}=w();if(t===null||!n)return null;let r;return e[0]===t?r=e[1]:(r=e=>{let n=t.patch({autoSync:{mode:e,enabled:null}});return n.ok?{ok:!0}:{ok:!1,error:b(n.error)}},e[0]=t,e[1]=r),r}function Oe(){let e=(0,U.c)(2),{projectBinding:t,projectSynced:n}=w();if(t===null||!n)return null;let r;return e[0]===t?r=e[1]:(r=e=>{let n=t.patch({autoSync:{default:e}});return n.ok?{ok:!0}:{ok:!1,error:b(n.error)}},e[0]=t,e[1]=r),r}function ke(){let e=(0,U.c)(2),{projectLocalBinding:t,projectLocalSynced:n}=w();if(t===null||!n)return null;let r;return e[0]===t?r=e[1]:(r=e=>{let n=t.patch({autoSync:e});return n.ok?{ok:!0}:{ok:!1,error:b(n.error)}},e[0]=t,e[1]=r),r}function Ae(e,t){let n=(0,U.c)(12),{_:r}=i(),[a,o]=(0,W.useState)(!1),s;n[0]!==r||n[1]!==e?(s=function(t){if(e===null)return v.info(r({id:`fiMNLl`}),{id:`sync-settings-not-ready`}),!1;let n=e(t);if(!n.ok){console.error(`[sync] toggle failed:`,n.error);let e=n.error;return v.error(r(t?{id:`04RA0-`,values:{detail:e}}:{id:`qjHMHf`,values:{detail:e}})),!1}return!0},n[0]=r,n[1]=e,n[2]=s):s=n[2];let c=s,l;n[3]===c?l=n[4]:(l=function(e){if(e){o(!0);return}c(!1)},n[3]=c,n[4]=l);let u=l,d;n[5]!==c||n[6]!==t?(d=function(){c(!0)&&(o(!1),t?.onEnabled?.())},n[5]=c,n[6]=t,n[7]=d):d=n[7];let f=d,p;return n[8]!==a||n[9]!==f||n[10]!==u?(p={confirmOpen:a,setConfirmOpen:o,onToggleRequest:u,onConfirm:f},n[8]=a,n[9]=f,n[10]=u,n[11]=p):p=n[11],p}function je(e,t,n){let r=(0,U.c)(15),{_:a}=i(),[o,s]=(0,W.useState)(!1),[c,l]=(0,W.useState)(null),u;r[0]!==a||r[1]!==n||r[2]!==e?(u=function(t){if(e===null)return v.info(a({id:`fiMNLl`}),{id:`sync-settings-not-ready`}),!1;let r=e(t);if(!r.ok){console.error(`[sync] mode change failed:`,r.error);let e=r.error;return v.error(a({id:`nOEDQs`,values:{detail:e}})),!1}return n?.onApplied?.(t),!0},r[0]=a,r[1]=n,r[2]=e,r[3]=u):u=r[3];let d=u,f;r[4]!==d||r[5]!==t?(f=function(e){if(e!==t){if(e===`off`){d(`off`);return}l(e),s(!0)}},r[4]=d,r[5]=t,r[6]=f):f=r[6];let p=f,m;r[7]!==d||r[8]!==c?(m=function(){c!==null&&d(c)&&s(!1)},r[7]=d,r[8]=c,r[9]=m):m=r[9];let h=m,g;return r[10]!==o||r[11]!==h||r[12]!==p||r[13]!==c?(g={confirmOpen:o,setConfirmOpen:s,pendingMode:c,onModeSelect:p,onConfirm:h},r[10]=o,r[11]=h,r[12]=p,r[13]=c,r[14]=g):g=r[14],g}function Me(){let e=(0,U.c)(2),{projectLocalBinding:t,projectLocalSynced:n}=w();if(t===null||!n)return null;let r;return e[0]===t?r=e[1]:(r=e=>{let n=t.patch({autoSync:e});return n.ok?{ok:!0}:{ok:!1,error:b(n.error)}},e[0]=t,e[1]=r),r}function Ne(e,t){let n=(0,U.c)(18),{_:r}=i(),a=Me(),[o,s]=(0,W.useState)(!1),[c,l]=(0,W.useState)(null),u;n[0]===e?u=n[1]:(u=C(e)??`off`,n[0]=e,n[1]=u);let d=u,f;n[2]!==r||n[3]!==a?(f=function(e){if(a===null)return v.info(r({id:`fiMNLl`}),{id:`sync-settings-not-ready`}),!1;let t=a(e);if(!t.ok){console.error(`[sync] badge control failed:`,t.error);let e=t.error;return v.error(r({id:`ZVOhXM`,values:{detail:e}})),!1}return!0},n[2]=r,n[3]=a,n[4]=f):f=n[4];let p=f,m;n[5]!==p||n[6]!==d?(m=function(e){if(e!==d){if(e===`off`){p({mode:`off`,enabled:null,resumeMode:null});return}l(e),s(!0)}},n[5]=p,n[6]=d,n[7]=m):m=n[7];let h=m,g;n[8]!==p||n[9]!==c?(g=function(){c!==null&&p({mode:c,enabled:null,resumeMode:null})&&(s(!1),l(null))},n[8]=p,n[9]=c,n[10]=g):g=n[10];let _=g,y=c===`follow`?t:0,b;return n[11]!==o||n[12]!==d||n[13]!==_||n[14]!==h||n[15]!==c||n[16]!==y?(b={mode:d,confirmOpen:o,setConfirmOpen:s,pendingMode:c,strandedCommitCount:y,onModeSelect:h,onConfirm:_},n[11]=o,n[12]=d,n[13]=_,n[14]=h,n[15]=c,n[16]=y,n[17]=b):b=n[17],b}async function Pe(e){let t=await fetch(`/api/sync/trigger`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({op:e})});if(!t.ok)throw Error(`sync trigger failed: ${t.status}`)}var Fe=5e3,Ie=15e3,Le=3e4,Re=0;function ze(){let e=Date.now();e-Re<Le||(Re=e,Pe(`fetch`).catch(()=>{Re===e&&(Re=0)}))}async function Be(e){try{let t=await fetch(`/api/git/worktree-status`,{signal:e});if(!t.ok)return console.warn(`[sync] worktree status read failed: http`,t.status),{kind:`failed`,reason:`http`};let n=await t.json();return n.readable===!1?{kind:`unreadable`}:{kind:`ok`,status:n}}catch(t){return e.aborted?{kind:`failed`,reason:`aborted`}:(console.warn(`[sync] worktree status read failed: network`,t instanceof Error?t.message:t),{kind:`failed`,reason:`network`})}}var Ve={status:null,unreadable:!1,stale:!1,lastReadAt:null};function He(e){let t=(0,U.c)(9),[n,r]=(0,W.useState)(Ve),i,a;t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(!e)return;let t=!1,n=!1,i=!1,a=null;function o(){if(n){i=!0;return}n=!0;let e=new AbortController;a=e;let s=setTimeout(()=>e.abort(),Ie);Be(e.signal).then(e=>{if(!t){if(e.kind===`ok`){r({status:e.status,unreadable:!1,stale:!1,lastReadAt:Date.now()});return}if(e.kind===`unreadable`){r(We);return}r(Ue)}}).finally(()=>{clearTimeout(s),a===e&&(a=null),n=!1,i&&!t&&(i=!1,o())})}o(),ze();let s=setInterval(o,Fe),c=x(e=>{e.includes(`sync-status`)&&o()});return()=>{t=!0,clearInterval(s),c(),a?.abort()}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,W.useEffect)(i,a);let o=e&&n.status===null&&!n.unreadable,s;return t[3]!==n.lastReadAt||t[4]!==n.stale||t[5]!==n.status||t[6]!==n.unreadable||t[7]!==o?(s={status:n.status,loading:o,unreadable:n.unreadable,stale:n.stale,lastReadAt:n.lastReadAt},t[3]=n.lastReadAt,t[4]=n.stale,t[5]=n.status,t[6]=n.unreadable,t[7]=o,t[8]=s):s=t[8],s}function Ue(e){return e.status===null?e.unreadable?e:{...e,unreadable:!0,stale:!1}:e.unreadable||e.stale?e:{...e,stale:!0}}function We(e){return{...e,unreadable:!0,stale:!1}}var G=t();function K(e){let t=(0,U.c)(4),{variant:n}=e;if((n===void 0?`full`:n)===`follow`){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(ne,{children:(0,G.jsx)(r,{id:`W7mERj`})}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsxs)(G.Fragment,{children:[e,(0,G.jsx)(I,{children:(0,G.jsx)(r,{id:`KmVekT`})})]}),t[1]=n):n=t[1],n}let i;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(ne,{children:(0,G.jsx)(r,{id:`Uo2Rj7`})}),t[2]=i):i=t[2];let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,G.jsxs)(G.Fragment,{children:[i,(0,G.jsx)(I,{children:(0,G.jsx)(r,{id:`n6hXUm`})})]}),t[3]=a):a=t[3],a}function q(e){let t=(0,U.c)(2),{variant:n}=e,r=n===void 0?`full`:n,i;return t[0]===r?i=t[1]:(i=(0,G.jsx)(_e,{children:r===`follow`?(0,G.jsx)(Ke,{}):(0,G.jsx)(Ge,{})}),t[0]=r,t[1]=i),i}function Ge(){let e=(0,U.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(B,{icon:(0,G.jsx)(ye,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`cdmk8A`}),body:(0,G.jsx)(r,{id:`YaeyFh`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(B,{icon:(0,G.jsx)(Se,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`9i21pa`}),body:(0,G.jsx)(r,{id:`KIIamL`})}),e[1]=n):n=e[1];let i;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsxs)(G.Fragment,{children:[t,n,(0,G.jsx)(B,{icon:(0,G.jsx)(k,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`8cpeU3`}),body:(0,G.jsx)(r,{id:`DELNQk`})})]}),e[2]=i):i=e[2],i}function Ke(){let e=(0,U.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(B,{icon:(0,G.jsx)(V,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`0xnQ_X`}),body:(0,G.jsx)(r,{id:`aCoQfY`})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(B,{icon:(0,G.jsx)(Ce,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`5rnB76`}),body:(0,G.jsx)(r,{id:`kXNv8P`})}),e[1]=n):n=e[1];let i;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsxs)(G.Fragment,{children:[t,n,(0,G.jsx)(B,{icon:(0,G.jsx)(A,{"aria-hidden":`true`,className:`mt-0.5 size-4 shrink-0 text-muted-foreground`}),title:(0,G.jsx)(r,{id:`oBK5fD`}),body:(0,G.jsx)(r,{id:`8Wav8y`})})]}),e[2]=i):i=e[2],i}function qe(e){let t=(0,U.c)(24),{open:n,onOpenChange:i,onConfirm:a,variant:o,strandedCommitCount:s}=e,c=o===void 0?`full`:o,l=s===void 0?0:s,u=c===`follow`&&l>0,d;t[0]===c?d=t[1]:(d=(0,G.jsx)(oe,{children:(0,G.jsx)(K,{variant:c})}),t[0]=c,t[1]=d);let f;t[2]===c?f=t[3]:(f=(0,G.jsx)(q,{variant:c}),t[2]=c,t[3]=f);let p;t[4]!==u||t[5]!==l?(p=u&&(0,G.jsx)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:(0,G.jsx)(r,{id:`caw8gO`,values:{strandedCommitCount:l}})}),t[4]=u,t[5]=l,t[6]=p):p=t[6];let m;t[7]!==f||t[8]!==p?(m=(0,G.jsxs)(re,{children:[f,p]}),t[7]=f,t[8]=p,t[9]=m):m=t[9];let h;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,G.jsx)(ae,{asChild:!0,children:(0,G.jsx)(_,{variant:`outline`,children:(0,G.jsx)(r,{id:`dEgA5A`})})}),t[10]=h):h=t[10];let g;t[11]===c?g=t[12]:(g=c===`follow`?(0,G.jsx)(r,{id:`jTUxaN`}):(0,G.jsx)(r,{id:`pPiV8s`}),t[11]=c,t[12]=g);let v;t[13]!==a||t[14]!==g?(v=(0,G.jsxs)(ie,{children:[h,(0,G.jsx)(_,{onClick:a,children:g})]}),t[13]=a,t[14]=g,t[15]=v):v=t[15];let y;t[16]!==d||t[17]!==m||t[18]!==v?(y=(0,G.jsxs)(L,{className:`sm:max-w-lg`,children:[d,m,v]}),t[16]=d,t[17]=m,t[18]=v,t[19]=y):y=t[19];let b;return t[20]!==i||t[21]!==n||t[22]!==y?(b=(0,G.jsx)(se,{open:n,onOpenChange:i,children:y}),t[20]=i,t[21]=n,t[22]=y,t[23]=b):b=t[23],b}async function Je(e){let t=await fetch(`/api/sync/resolve-blocking`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:e})});if(!t.ok)throw Error(`sync resolve-blocking failed: ${t.status}`)}function Ye(){return typeof window<`u`&&window.okDesktop!=null}function Xe(e){let t=(0,U.c)(23),{paths:n}=e,[i,a]=(0,W.useState)(null),[o,s]=(0,W.useState)(!1);if(n.length===0)return null;let c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=async function(e){a(e),s(!1);try{await Je(e),a(null)}catch{s(!0),a(null)}},t[0]=c):c=t[0];let l=c,u=i!==null,d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,G.jsx)(`span`,{id:`sync-blocking-heading`,className:`text-xs font-medium text-foreground`,children:(0,G.jsx)(r,{id:`sdvHp3`})}),t[1]=d):d=t[1];let f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,G.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[d,(0,G.jsx)(`span`,{className:`text-2xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`H4doZt`})})]}),t[2]=f):f=t[2];let p;t[3]===n?p=t[4]:(p=n.map(Qe),t[3]=n,t[4]=p);let m;t[5]===p?m=t[6]:(m=(0,G.jsx)(`ul`,{"aria-labelledby":`sync-blocking-heading`,className:`flex max-h-28 flex-col gap-1 overflow-y-auto overscroll-contain`,"data-testid":`sync-blocking-list`,children:p}),t[5]=p,t[6]=m);let h;t[7]===o?h=t[8]:(h=o&&(0,G.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive`,"data-testid":`sync-blocking-error`,children:(0,G.jsx)(r,{id:`FsEXax`})}),t[7]=o,t[8]=h);let g;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>void l(`commit`),t[9]=g):g=t[9];let v;t[10]===i?v=t[11]:(v=i===`commit`&&(0,G.jsx)(j,{"aria-hidden":`true`,"data-icon":`inline-start`}),t[10]=i,t[11]=v);let y;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,G.jsx)(r,{id:`N7Lau6`}),t[12]=y):y=t[12];let b;t[13]!==u||t[14]!==v?(b=(0,G.jsxs)(_,{size:`xs`,disabled:u,onClick:g,"data-testid":`sync-blocking-commit`,children:[v,y]}),t[13]=u,t[14]=v,t[15]=b):b=t[15];let x;t[16]===u?x=t[17]:(x=Ye()&&(0,G.jsxs)(_,{variant:`link-muted`,size:`xs`,className:`self-start p-0`,disabled:u,onClick:Ze,"data-testid":`sync-blocking-terminal`,children:[(0,G.jsx)(N,{"data-icon":`inline-start`}),(0,G.jsx)(r,{id:`6EoD0z`})]}),t[16]=u,t[17]=x);let S;return t[18]!==b||t[19]!==x||t[20]!==m||t[21]!==h?(S=(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 border-t pt-3`,children:[f,m,h,b,x]}),t[18]=b,t[19]=x,t[20]=m,t[21]=h,t[22]=S):S=t[22],S}function Ze(){return ve(`git-status`)}function Qe(e){return(0,G.jsx)(`li`,{title:e,className:`min-w-0 truncate font-mono text-2xs text-foreground`,children:e},e)}function J(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function $e(e){return e===``?[]:e.split(`/`)}function et(e){if(e.length===0)return``;let t=$e(J(e[0]));for(let n of e.slice(1)){let e=$e(J(n)),r=0;for(;r<t.length&&r<e.length&&t[r]===e[r];)r++;if(t=t.slice(0,r),t.length===0)break}return t.join(`/`)}function Y(e,t){return e===``?t:t.slice(e.length+1)}function tt(e,t=8){if(e.length===0)return{prefix:``,groups:[],loose:[]};if(e.length===1)return{prefix:``,groups:[],loose:[{entry:e[0],label:e[0].path}]};let n=et(e.map(e=>e.path)),r=e.map(e=>{let t=Y(n,e.path);return{entry:e,rel:t,key:J(t)}}),i=()=>new Set(r.map(e=>e.key));for(;i().size>t;){let e=Math.max(...r.map(e=>$e(e.key).length));if(e===0)break;for(let t of r)$e(t.key).length===e&&(t.key=J(t.key))}let a=new Map;for(let{entry:e,rel:t,key:n}of r){let r=a.get(n)??[];r.push({entry:e,label:n===``?t:t.slice(n.length+1)}),a.set(n,r)}let o=[],s=[];for(let[e,t]of a)if(e===``||t.length===1)for(let e of t)s.push({entry:e.entry,label:Y(n,e.entry.path)});else o.push({dir:e,rows:t});return o.sort((e,t)=>t.rows.length-e.rows.length||e.dir.localeCompare(t.dir)),s.sort((e,t)=>e.entry.path.localeCompare(t.entry.path)),{prefix:n,groups:o,loose:s}}function nt(e=`sync`,t){Pe(e).catch(e=>{console.warn(`[sync-badge] manual sync trigger failed`,e instanceof Error?e.message:e),t?.()})}function rt(e){typeof window>`u`||ue(window.location.hash,e)||(window.location.hash=e)}function it(e){return e.kind===`doc`?de(e.docName):le(e.path)}var at=3e4;function X(e,t,n){let r=n-t;return r<6e4?e({id:`xOTzt5`}):r<36e5?e({id:`_rP3HI`,values:{minutes:Math.floor(r/6e4)}}):r<864e5?e({id:`nYeBmY`,values:{hours:Math.floor(r/36e5)}}):new Date(t).toLocaleDateString()}function Z(e,t){return X(e,new Date(t).getTime(),Date.now())}function ot(){let e=(0,U.c)(2),[t,n]=(0,W.useState)(st),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=setInterval(()=>n(Date.now()),at);return()=>clearInterval(e)},i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,W.useEffect)(r,i),t}function st(){return Date.now()}function Q(e){return e.syncMode===`follow`}var ct=[`git-operation-in-progress`,`unsafe-incoming-symlinks`];function $(e){return ct.includes(e)}function lt(e){return e.state===`idle`&&e.conflictCount>0?`conflict`:(e.state===`idle`||e.state===`offline`)&&$(e.pausedReason)?`disabled`:e.state}function ut(e){let t=(0,U.c)(12),{status:n}=e;switch(lt(n)){case`dormant`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(H,{className:`size-3.5 text-muted-foreground`}),t[0]=e):e=t[0],e}case`idle`:{if(n.ahead>0||n.behind>0){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(M,{className:`size-3.5 text-muted-foreground`}),t[1]=e):e=t[1],e}let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(H,{className:`size-3.5 text-muted-foreground`}),t[2]=e):e=t[2],e}case`fetching`:case`pulling`:case`pushing`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(j,{"aria-hidden":`true`,icon:M,className:`size-3.5 text-muted-foreground`}),t[3]=e):e=t[3],e}case`conflict`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(P,{className:`size-3.5 text-amber-500`}),t[4]=e):e=t[4],e}case`offline`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(xe,{className:`size-3.5 text-muted-foreground`}),t[5]=e):e=t[5],e}case`auth-error`:{let e;return t[6]===n?e=t[7]:(e=Et(n)?(0,G.jsx)(be,{className:`size-3.5 text-destructive`}):(0,G.jsx)(we,{className:`size-3.5 text-destructive`}),t[6]=n,t[7]=e),e}case`disabled`:{if(n.pausedReason){let e;return t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(P,{className:`size-3.5 text-amber-500`}),t[8]=e):e=t[8],e}if(n.ahead>0||n.behind>0){let e;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(M,{className:`size-3.5 text-muted-foreground`}),t[9]=e):e=t[9],e}let e;return t[10]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(H,{className:`size-3.5 text-muted-foreground`}),t[10]=e):e=t[10],e}default:{let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(H,{className:`size-3.5 text-muted-foreground`}),t[11]=e):e=t[11],e}}}function dt(e){switch(lt(e)){case`idle`:return!Q(e)&&e.ahead>0?`↑${e.ahead}`:e.behind>0?`↓${e.behind}`:``;case`fetching`:case`pulling`:case`pushing`:return``;case`conflict`:return e.conflictCount>0?`${e.conflictCount}`:``;case`offline`:return``;case`auth-error`:return``;default:return``}}function ft(e){let t=Q(e),n=lt(e);switch(n){case`dormant`:return y._({id:`RmBY0A`});case`idle`:return t?y._({id:`j5CWO4`}):y._({id:`N2FcBE`});case`fetching`:return t?y._({id:`7IsvrP`}):y._({id:`Wgmlsw`});case`pulling`:return t?y._({id:`JL3si7`}):y._({id:`4uNLmk`});case`pushing`:return y._({id:`iycx_A`});case`conflict`:return y._({id:`IInnZo`});case`offline`:return y._({id:`6Aih4U`});case`auth-error`:return y._({id:`mHVPm5`});case`disabled`:return e.pausedReason?y._({id:`U6wmNc`}):y._({id:`BWTzAb`});default:return n}}var pt=[`git-index-locked`],mt={"git-index-locked":{id:`sOcMdy`},"git-operation-in-progress":{id:`mJTr6D`},"external-changes-pending":{id:`W9_Bub`},"dirty-tree":{id:`a5Gha5`},"non-content-merge-failure":{id:`sIxSSP`},"detached-head":{id:`uQNW00`},"diverged-local-commits":{id:`LQsCPn`},"auth-error":{id:`mHVPm5`},"protected-branch":{id:`8fc_3j`},"no-push-permission":{id:`EiVgl5`},"no-commits-yet":{id:`-ZVU5v`},"unsafe-incoming-symlinks":{id:`8qsUJv`}};function ht(e){return Object.hasOwn(mt,e)}function gt(e,t){return ht(t)?e(mt[t]):t}function _t(e){return pt.includes(e)}function vt(e){throw Error(`Unhandled node-rendered paused reason: ${String(e)}`)}function yt(e){let t=(0,U.c)(3),{reason:n}=e;switch(n){case`git-index-locked`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(r,{id:`Qca--K`,components:{0:(0,G.jsx)(`span`,{dir:`ltr`,className:`font-mono`})}}),t[0]=e):e=t[0],e}default:{let e;return t[1]===n?e=t[2]:(e=vt(n),t[1]=n,t[2]=e),e}}}function bt(e){let t=(0,U.c)(4),{paths:n}=e;if(n===void 0||n.length===0)return null;let r;t[0]===n?r=t[1]:(r=n.map(xt),t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(`ul`,{className:`flex max-h-28 flex-col gap-1 overflow-y-auto overscroll-contain`,"data-testid":`sync-refused-symlinks`,children:r}),t[2]=r,t[3]=i),i}function xt(e){return(0,G.jsx)(`li`,{title:e,dir:`ltr`,className:`min-w-0 truncate font-mono text-2xs text-foreground`,children:e},e)}function St(e){let t=(0,U.c)(7),{reason:n}=e,{_:r}=i();if(_t(n)){let e;return t[0]===n?e=t[1]:(e=(0,G.jsx)(yt,{reason:n}),t[0]=n,t[1]=e),e}let a;t[2]!==r||t[3]!==n?(a=gt(r,n),t[2]=r,t[3]=n,t[4]=a):a=t[4];let o;return t[5]===a?o=t[6]:(o=(0,G.jsx)(G.Fragment,{children:a}),t[5]=a,t[6]=o),o}function Ct(e,t){let n=[];switch(e){case`not-authenticated`:n.push(y._({id:`ycIX5i`}));break;case`no-collaborator`:n.push(y._({id:`EiVgl5`}));break;case`private-no-access`:n.push(y._({id:`07gHun`}));break;case`repo-not-found`:n.push(y._({id:`uksqrP`}));break;default:n.push(y._({id:`EiVgl5`}))}return n.push(...wt(t)),n}function wt(e){let t=[];if(e?.resolvedLogin){let n=e.resolvedLogin;t.push(y._({id:`ZKVuLY`,values:{login:n}}))}return e?.declaredLogin&&t.push(Tt(e.declaredLogin,e.declaredSource)),t}function Tt(e,t){switch(t){case`remote-url`:return y._({id:`CMd-g-`,values:{declaredLogin:e}});case`credential-config`:return y._({id:`akOe4q`,values:{declaredLogin:e}});default:return y._({id:`GBEqoP`,values:{declaredLogin:e}})}}function Et(e){return e.pushErrorCode===`auth-not-found-as-identity`||e.pullErrorCode===`auth-not-found-as-identity`}function Dt(e){return e?.pausedReason===`auth-error`&&Et(e)}function Ot(e){return e?.checkStatus===`denied`&&e.deniedReason===`not-authenticated`}function kt(e){return typeof e?.webUrl==`string`}function At(e){return e!=null&&!kt(e)}function jt(e){return e?.transport===void 0||e.transport===`https`}function Mt(e,t){switch(e){case`auth-401`:return t?y._({id:`-Qw-1t`}):y._({id:`LVWA9A`});case`auth-scope-mismatch`:return t?y._({id:`Zue_jx`}):y._({id:`yLyiQV`});case`auth-no-credential`:return t?y._({id:`uCaIdy`}):y._({id:`xJ7qrb`});default:return null}}function Nt(e,t){let n=Mt(e,t);if(n!==null)return n;switch(e){case`auth-403`:return y._({id:`EiVgl5`});case`semantic-protected-branch`:return y._({id:`T0OVm7`});case`auth-not-found-as-identity`:return y._({id:`jRsjlF`});default:return y._({id:`1AumWo`})}}function Pt(e,t){let n=Mt(e,t);if(n!==null)return n;switch(e){case`auth-403`:return y._({id:`RgbKEe`});case`auth-not-found-as-identity`:return y._({id:`jRsjlF`});default:return y._({id:`jZ_E5M`})}}function Ft(e,t){let n=Mt(e,t);if(n!==null)return n;switch(e){case`auth-403`:return y._({id:`RgbKEe`});case`semantic-protected-branch`:return y._({id:`T0OVm7`});case`auth-not-found-as-identity`:return y._({id:`jRsjlF`});default:return y._({id:`cUk6TF`})}}function It(e){let t=kt(e.remote),n=e.pushErrorCode!=null||e.pushError!=null,r=e.pullErrorCode!=null||e.pullError!=null;if(n&&r&&(e.pushErrorCode==null?e.pullErrorCode==null&&e.pushError===e.pullError:e.pushErrorCode===e.pullErrorCode))return[{key:`sync`,direction:null,message:e.pushErrorCode==null?e.pushError:Ft(e.pushErrorCode,t)}];let i=n&&r,a=[];return n&&a.push({key:`push`,direction:i?`push`:null,message:e.pushErrorCode?Nt(e.pushErrorCode,t):e.pushError}),r&&a.push({key:`pull`,direction:i?`pull`:null,message:e.pullErrorCode?Pt(e.pullErrorCode,t):e.pullError}),a}function Lt(e){return e?.checkStatus===`unknown`&&e.unknownError===`token-invalid`}function Rt(e){return lt(e)===`auth-error`&&Et(e)?y._({id:`EkEFE3`}):ft(e)}function zt(e){let t=Q(e),n=lt(e);if(n===`conflict`&&e.conflictCount>0){let{conflictCount:t}=e;return y._({id:`cUK8lW`,values:{conflictCount:t}})}if(n===`idle`){let{ahead:n,behind:r}=e;return t?r>0?y._({id:`9o1bIV`,values:{behind:r}}):y._({id:`j5CWO4`}):n>0&&r>0?y._({id:`5F5HYj`,values:{ahead:n,behind:r}}):n>0?y._({id:`PdA9NZ`,values:{ahead:n}}):r>0?y._({id:`9o1bIV`,values:{behind:r}}):y._({id:`N2FcBE`})}return Rt(e)}function Bt(e){let t=(0,U.c)(3),{children:n,id:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,G.jsx)(`span`,{id:r,className:`font-mono uppercase tracking-wide text-2xs text-muted-foreground`,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function Vt(e){switch(e){case`M`:return y._({id:`tgWuMB`});case`A`:return y._({id:`hp8OtS`});case`D`:return y._({id:`vGjmyl`});case`R`:return y._({id:`QeREu8`});case`C`:return y._({id:`6V3Ea3`});case`U`:return y._({id:`cyoNqf`});case`T`:return y._({id:`zWZBPx`});case`?`:return y._({id:`C2abof`});case`!`:return y._({id:`xDKOFk`});default:return y._({id:`cNsIJf`})}}function Ht(e){switch(e){case`D`:return`destructive`;case`U`:return`warning`;default:return`gray`}}function Ut(e){let t=(0,U.c)(25),{entry:n,dimmed:r,label:i}=e,a;t[0]===n.code?a=t[1]:(a=Vt(n.code),t[0]=n.code,t[1]=a);let l=a,u=n.open,d=`truncate text-start font-mono text-2xs ${r?`text-muted-foreground/60`:`text-foreground`}`,f;t[2]===n.code?f=t[3]:(f=Ht(n.code),t[2]=n.code,t[3]=f);let p;t[4]===n.code?p=t[5]:(p=(0,G.jsx)(`span`,{"aria-hidden":!0,children:n.code}),t[4]=n.code,t[5]=p);let m;t[6]===l?m=t[7]:(m=(0,G.jsx)(`span`,{className:`sr-only`,children:l}),t[6]=l,t[7]=m);let h;t[8]!==f||t[9]!==p||t[10]!==m?(h=(0,G.jsx)(o,{asChild:!0,children:(0,G.jsxs)(F,{variant:f,className:`size-4 shrink-0 justify-center p-0 text-2xs leading-none`,children:[p,m]})}),t[8]=f,t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]===l?g=t[13]:(g=(0,G.jsx)(s,{children:l}),t[12]=l,t[13]=g);let v;t[14]!==h||t[15]!==g?(v=(0,G.jsxs)(c,{children:[h,g]}),t[14]=h,t[15]=g,t[16]=v):v=t[16];let y;t[17]!==n.path||t[18]!==i||t[19]!==u||t[20]!==d?(y=u?(0,G.jsxs)(c,{children:[(0,G.jsx)(o,{asChild:!0,children:(0,G.jsx)(pe,{asChild:!0,children:(0,G.jsx)(_,{variant:`link-muted`,size:`xs`,className:`h-auto min-h-6 min-w-0 shrink justify-start overflow-hidden p-0 font-normal`,"aria-label":n.path,onClick:()=>rt(it(u)),"data-testid":`worktree-row-open`,children:(0,G.jsx)(`span`,{dir:`auto`,className:`min-w-0 ${d}`,children:i})})})}),(0,G.jsx)(s,{dir:`auto`,className:`font-mono text-2xs`,children:n.path})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(c,{children:[(0,G.jsx)(o,{asChild:!0,children:(0,G.jsx)(`span`,{dir:`auto`,tabIndex:0,className:`min-w-0 rounded-xs focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 ${d}`,children:i})}),(0,G.jsx)(s,{dir:`auto`,className:`font-mono text-2xs`,children:n.path})]}),i!==n.path&&(0,G.jsx)(`span`,{className:`sr-only`,children:n.path})]}),t[17]=n.path,t[18]=i,t[19]=u,t[20]=d,t[21]=y):y=t[21];let b;return t[22]!==v||t[23]!==y?(b=(0,G.jsxs)(`li`,{className:`flex min-w-0 items-center gap-2`,children:[v,y]}),t[22]=v,t[23]=y,t[24]=b):b=t[24],b}function Wt(e){let t=(0,U.c)(15),{rows:n,dimmed:i}=e,[a,o]=(0,W.useState)(!1),s=n.length>6,c;t[0]!==n||t[1]!==a?(c=a?n:n.slice(0,6),t[0]=n,t[1]=a,t[2]=c):c=t[2];let l=c,u=n.length-6,d;if(t[3]!==i||t[4]!==l){let e;t[6]===i?e=t[7]:(e=e=>{let{entry:t,label:n}=e;return(0,G.jsx)(Ut,{entry:t,dimmed:i,label:n},`${t.code}:${t.path}`)},t[6]=i,t[7]=e),d=l.map(e),t[3]=i,t[4]=l,t[5]=d}else d=t[5];let f;t[8]!==s||t[9]!==u||t[10]!==a?(f=s&&(0,G.jsx)(`li`,{children:(0,G.jsx)(_,{variant:`link-muted`,size:`xs`,"aria-expanded":a,className:`h-auto min-h-6 justify-start p-0 text-2xs font-normal`,onClick:()=>o(Gt),"data-testid":`worktree-rows-show-all`,children:a?(0,G.jsx)(r,{id:`H86f9p`}):(0,G.jsx)(r,{id:`B6Lac2`,values:{overflowCount:u}})})}),t[8]=s,t[9]=u,t[10]=a,t[11]=f):f=t[11];let p;return t[12]!==d||t[13]!==f?(p=(0,G.jsxs)(`ul`,{className:`flex flex-col gap-1`,children:[d,f]}),t[12]=d,t[13]=f,t[14]=p):p=t[14],p}function Gt(e){return!e}function Kt(e){let t=(0,U.c)(25),{group:n,prefix:i,dimmed:a}=e,f=n.rows.length,[p,m]=(0,W.useState)(!1),h=i===``?n.dir:`${i}/${n.dir}`,g=`size-3 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none ${p?`rotate-90`:``}`,v;t[0]===g?v=t[1]:(v=(0,G.jsx)(O,{className:g,"aria-hidden":!0}),t[0]=g,t[1]=v);let y;t[2]===n.dir?y=t[3]:(y=(0,G.jsx)(`span`,{dir:`auto`,className:`min-w-0 truncate text-start font-mono text-2xs text-muted-foreground`,children:n.dir}),t[2]=n.dir,t[3]=y);let b;t[4]===f?b=t[5]:(b=(0,G.jsx)(`span`,{"aria-hidden":!0,className:`ms-auto shrink-0 ps-1 text-2xs text-muted-foreground tabular-nums`,children:f}),t[4]=f,t[5]=b);let x;t[6]===f?x=t[7]:(x=(0,G.jsx)(`span`,{className:`sr-only`,children:(0,G.jsx)(r,{id:`u3BOHd`,values:{fileCount:f}})}),t[6]=f,t[7]=x);let S;t[8]!==v||t[9]!==y||t[10]!==b||t[11]!==x?(S=(0,G.jsx)(o,{asChild:!0,children:(0,G.jsx)(u,{asChild:!0,children:(0,G.jsxs)(_,{variant:`ghost`,size:`xs`,className:`h-auto min-h-6 w-full justify-start gap-1 px-0 font-normal`,children:[v,y,b,x]})})}),t[8]=v,t[9]=y,t[10]=b,t[11]=x,t[12]=S):S=t[12];let C;t[13]===h?C=t[14]:(C=(0,G.jsx)(s,{dir:`auto`,className:`font-mono text-2xs`,children:h}),t[13]=h,t[14]=C);let w;t[15]!==S||t[16]!==C?(w=(0,G.jsxs)(c,{children:[S,C]}),t[15]=S,t[16]=C,t[17]=w):w=t[17];let T;t[18]!==a||t[19]!==n.rows?(T=(0,G.jsx)(l,{className:`ps-4`,children:(0,G.jsx)(Wt,{rows:n.rows,dimmed:a})}),t[18]=a,t[19]=n.rows,t[20]=T):T=t[20];let E;return t[21]!==p||t[22]!==w||t[23]!==T?(E=(0,G.jsxs)(d,{open:p,onOpenChange:m,className:`flex flex-col gap-1`,children:[w,T]}),t[21]=p,t[22]=w,t[23]=T,t[24]=E):E=t[24],E}function qt(e){let t=(0,U.c)(39),{title:n,note:i,entries:a,dimmed:o}=e,s=o===void 0?!1:o;if(a.length===0)return null;let c=a.length,f,p,m,h,g,v,y,b,x;if(t[0]!==s||t[1]!==a||t[2]!==c||t[3]!==i||t[4]!==n){let{prefix:e,groups:o,loose:S}=tt(a);m=S,p=d,b=`flex flex-col gap-1`;let C;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,G.jsx)(O,{className:`size-3 shrink-0 text-muted-foreground transition-transform motion-reduce:transition-none group-data-[state=open]:rotate-90`,"aria-hidden":!0}),t[14]=C):C=t[14];let w;t[15]===n?w=t[16]:(w=(0,G.jsx)(`span`,{className:`text-2xs font-medium text-muted-foreground`,children:n}),t[15]=n,t[16]=w);let T;t[17]===c?T=t[18]:(T=(0,G.jsx)(`span`,{className:`ms-auto shrink-0 ps-1 text-2xs text-muted-foreground tabular-nums`,children:(0,G.jsx)(r,{id:`u3BOHd`,values:{fileCount:c}})}),t[17]=c,t[18]=T),t[19]!==w||t[20]!==T?(x=(0,G.jsx)(u,{asChild:!0,children:(0,G.jsxs)(_,{variant:`ghost`,size:`xs`,className:`group h-auto min-h-6 w-full justify-start gap-1 px-0 font-normal data-[state=open]:bg-transparent`,children:[C,w,T]})}),t[19]=w,t[20]=T,t[21]=x):x=t[21],f=l,h=`flex flex-col gap-1 ps-3`,t[22]===i?g=t[23]:(g=i&&(0,G.jsx)(`span`,{className:`text-2xs text-muted-foreground/80`,children:i}),t[22]=i,t[23]=g),v=e!==``&&(0,G.jsxs)(`span`,{dir:`auto`,className:`break-all font-mono text-2xs text-muted-foreground`,children:[e,`/`]}),y=o.map(t=>(0,G.jsx)(Kt,{group:t,prefix:e,dimmed:s},e===``?t.dir:`${e}/${t.dir}`)),t[0]=s,t[1]=a,t[2]=c,t[3]=i,t[4]=n,t[5]=f,t[6]=p,t[7]=m,t[8]=h,t[9]=g,t[10]=v,t[11]=y,t[12]=b,t[13]=x}else f=t[5],p=t[6],m=t[7],h=t[8],g=t[9],v=t[10],y=t[11],b=t[12],x=t[13];let S;t[24]!==s||t[25]!==m?(S=m.length>0&&(0,G.jsx)(Wt,{rows:m,dimmed:s}),t[24]=s,t[25]=m,t[26]=S):S=t[26];let C;t[27]!==f||t[28]!==h||t[29]!==g||t[30]!==v||t[31]!==y||t[32]!==S?(C=(0,G.jsxs)(f,{className:h,children:[g,v,y,S]}),t[27]=f,t[28]=h,t[29]=g,t[30]=v,t[31]=y,t[32]=S,t[33]=C):C=t[33];let w;return t[34]!==p||t[35]!==b||t[36]!==x||t[37]!==C?(w=(0,G.jsxs)(p,{className:b,children:[x,C]}),t[34]=p,t[35]=b,t[36]=x,t[37]=C,t[38]=w):w=t[38],w}function Jt(e){let t=(0,U.c)(9),{direction:n,count:r}=e,{_:a}=i();if(r<=0)return null;let o;t[0]===n?o=t[1]:(o=n===`behind`?(0,G.jsx)(E,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}):(0,G.jsx)(D,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),t[0]=n,t[1]=o);let s;t[2]!==a||t[3]!==r||t[4]!==n?(s=a(n===`behind`?{id:`sKHiNR`,values:{count:r}}:{id:`9ZxzfT`,values:{count:r}}),t[2]=a,t[3]=r,t[4]=n,t[5]=s):s=t[5];let c;return t[6]!==o||t[7]!==s?(c=(0,G.jsxs)(`span`,{className:`flex flex-1 items-center gap-1.5 rounded-md bg-muted px-2 py-1 text-xs text-foreground`,children:[o,s]}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}function Yt(e){let t=new Set,n=[],r=[];for(let i of[...e.staged,...e.notStaged,...e.untracked])t.has(i.path)||(t.add(i.path),(i.syncScoped?n:r).push(i));return{willPush:n,wontPush:r}}function Xt(e){let t=(0,U.c)(6),{lastReadAt:n}=e,{_:a}=i(),o=ot(),s;t[0]!==a||t[1]!==n||t[2]!==o?(s=X(a,n,o),t[0]=a,t[1]=n,t[2]=o,t[3]=s):s=t[3];let c=s,l;return t[4]===c?l=t[5]:(l=(0,G.jsx)(`p`,{className:`text-2xs text-muted-foreground`,"data-testid":`worktree-stale`,children:(0,G.jsx)(r,{id:`e-pP6g`,values:{staleRelative:c}})}),t[4]=c,t[5]=l),l}function Zt(e){let t=(0,U.c)(36),{status:n,worktree:a,loading:o,unreadable:s,stale:c,lastReadAt:l}=e,u;t[0]===a?u=t[1]:(u=a?Yt(a):{willPush:[],wontPush:[]},t[0]=a,t[1]=u);let{willPush:d,wontPush:f}=u,p;t[2]===a?.incoming?p=t[3]:(p=a?.incoming??[],t[2]=a?.incoming,t[3]=p);let m=p,{_:h}=i(),g=c&&!s&&a!==null&&l!==null,_=a!==null&&d.length===0&&f.length===0&&m.length===0,v;t[4]!==h||t[5]!==g||t[6]!==s?(v=s?h({id:`L9ox9k`}):g?h({id:`_LK4d6`}):``,t[4]=h,t[5]=g,t[6]=s,t[7]=v):v=t[7];let y=v,b;t[8]===y?b=t[9]:(b=(0,G.jsx)(`div`,{className:`sr-only`,role:`status`,"aria-live":`polite`,"data-testid":`worktree-announcer`,children:y}),t[8]=y,t[9]=b);let x;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,G.jsx)(Bt,{id:`worktree-status-label`,children:(0,G.jsx)(r,{id:`uAQUqI`})}),t[10]=x):x=t[10];let S;t[11]!==s||t[12]!==a?(S=!s&&a&&(a.branch||a.detached)&&(0,G.jsx)(`span`,{className:`min-w-0 truncate font-mono text-2xs text-muted-foreground`,"data-testid":`worktree-branch`,children:a.detached?(0,G.jsx)(r,{id:`OBdkpo`}):a.upstream?`${a.branch} → ${a.upstream}`:a.branch}),t[11]=s,t[12]=a,t[13]=S):S=t[13];let C;t[14]===S?C=t[15]:(C=(0,G.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2`,children:[x,S]}),t[14]=S,t[15]=C);let w;t[16]!==n.ahead||t[17]!==n.behind?(w=(n.behind>0||n.ahead>0)&&(0,G.jsxs)(`div`,{className:`flex items-stretch gap-2`,children:[(0,G.jsx)(Jt,{direction:`behind`,count:n.behind}),(0,G.jsx)(Jt,{direction:`ahead`,count:n.ahead})]}),t[16]=n.ahead,t[17]=n.behind,t[18]=w):w=t[18];let T;t[19]!==_||t[20]!==m||t[21]!==o||t[22]!==s||t[23]!==d||t[24]!==f||t[25]!==a?(T=s?(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,"data-testid":`worktree-unreadable`,children:(0,G.jsx)(r,{id:`L9ox9k`})}):o?(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`eolhcI`})}):_?(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`WfcERq`})}):a&&(0,G.jsxs)(`section`,{className:`flex max-h-56 flex-col gap-2.5 overflow-y-auto overscroll-contain focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,tabIndex:0,"aria-labelledby":`worktree-status-label`,"data-testid":`worktree-listing`,children:[(0,G.jsx)(qt,{title:(0,G.jsx)(r,{id:`NcwbBM`}),entries:m}),(0,G.jsx)(qt,{title:(0,G.jsx)(r,{id:`JOhCT9`}),entries:d}),(0,G.jsx)(qt,{title:(0,G.jsx)(r,{id:`vsFXfP`}),note:(0,G.jsx)(r,{id:`PxZCNM`}),entries:f,dimmed:!0}),a.truncated&&(0,G.jsx)(`p`,{className:`text-2xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`KvwJv8`})})]}),t[19]=_,t[20]=m,t[21]=o,t[22]=s,t[23]=d,t[24]=f,t[25]=a,t[26]=T):T=t[26];let E;t[27]!==l||t[28]!==g?(E=g&&l!==null&&(0,G.jsx)(Xt,{lastReadAt:l}),t[27]=l,t[28]=g,t[29]=E):E=t[29];let D;return t[30]!==E||t[31]!==b||t[32]!==C||t[33]!==w||t[34]!==T?(D=(0,G.jsxs)(`div`,{className:`flex flex-col gap-2.5 border-t pt-3`,children:[b,C,w,T,E]}),t[30]=E,t[31]=b,t[32]=C,t[33]=w,t[34]=T,t[35]=D):D=t[35],D}function Qt(e){let t=(0,U.c)(19),{pulledAt:n,pushedAt:r,combinedAt:a}=e,{_:o}=i(),s,c,l;if(t[0]!==o||t[1]!==a||t[2]!==n||t[3]!==r){s=n===null?null:Z(o,n),c=r===null?null:Z(o,r);let e=a===null?null:Z(o,a);l=s!==null&&c!==null?o({id:`1TA-aJ`,values:{pulled:s,pushed:c}}):s===null?c===null?e===null?null:o({id:`irnKr_`,values:{updatedRelative:e}}):o({id:`lPkjpD`,values:{pushed:c}}):o({id:`xW5AUw`,values:{pulled:s}}),t[0]=o,t[1]=a,t[2]=n,t[3]=r,t[4]=s,t[5]=c,t[6]=l}else s=t[4],c=t[5],l=t[6];let u=l,d=s!==null||c!==null;if(u===null){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,G.jsx)(`span`,{}),t[7]=e):e=t[7],e}let f;t[8]!==u||t[9]!==d?(f=d&&(0,G.jsx)(`span`,{className:`sr-only`,"data-testid":`sync-popover-last-sync-label`,children:u}),t[8]=u,t[9]=d,t[10]=f):f=t[10];let p;t[11]!==u||t[12]!==s||t[13]!==c||t[14]!==d?(p=d?(0,G.jsxs)(`span`,{"aria-hidden":`true`,className:`inline-flex items-center gap-1`,children:[s!==null&&(0,G.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,G.jsx)(E,{className:`size-3`}),s]}),s!==null&&c!==null&&(0,G.jsx)(`span`,{children:`·`}),c!==null&&(0,G.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,G.jsx)(D,{className:`size-3`}),c]})]}):(0,G.jsx)(`span`,{"aria-hidden":`true`,children:u}),t[11]=u,t[12]=s,t[13]=c,t[14]=d,t[15]=p):p=t[15];let m;return t[16]!==f||t[17]!==p?(m=(0,G.jsxs)(`span`,{className:`text-xs text-muted-foreground`,"data-testid":`sync-popover-last-sync`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18],m}function $t(){let e=(0,U.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,G.jsx)(pe,{asChild:!0,children:(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:en,"data-testid":`sync-popover-add-host-token`,children:(0,G.jsx)(r,{id:`zXZJoN`})})}),e[0]=t):t=e[0],t}function en(){return R()}function tn(e){let t=(0,U.c)(152),{status:n,onSignIn:a,onSetIdentity:o}=e,{_:s}=i(),{conflictCount:c}=n,{projectLocalConfig:l,projectLocalSynced:u}=w(),d=l?.autoSync,{mode:v,confirmOpen:y,setConfirmOpen:b,pendingMode:x,strandedCommitCount:C,onModeSelect:T,onConfirm:O}=Ne(d,n.ahead),{status:k,loading:A,unreadable:N,stale:P,lastReadAt:F}=He(!0),I=v===`follow`,ne;t[0]===n?ne=t[1]:(ne=lt(n),t[0]=n,t[1]=ne);let L=ne,re;t[2]===n?re=t[3]:(re=Et(n),t[2]=n,t[3]=re);let ie=re,ae=n.lastPullOkUtc??null,oe=n.lastPushOkUtc??null,se=n.lastRunUtc??n.lastSyncUtc??null,R=n.pushPermission?.checkStatus===`denied`&&n.pushPermission.deniedReason!==`not-authenticated`&&!ie,ce;t[4]===n.remote?ce=t[5]:(ce=kt(n.remote),t[4]=n.remote,t[5]=ce);let le=ce,ue=!R,z=L===`fetching`||L===`pulling`||L===`pushing`,[fe,me]=(0,W.useState)(null),he,B;t[6]===z?(he=t[7],B=t[8]):(he=()=>{z||me(null)},B=[z],t[6]=z,t[7]=he,t[8]=B),(0,W.useEffect)(he,B);let _e;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(_e=e=>{me(t=>t===e?null:t)},t[9]=_e):_e=t[9];let ve=_e,V=z?fe??(L===`pushing`?`push`:`pull`):null,ye;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(ye=e=>{me(e),nt(e,()=>ve(e))},t[10]=ye):ye=t[10];let be=ye,xe=L===`dormant`||L===`auth-error`||n.state===`conflict`,H=xe||n.conflictCount>0,Se;t[11]===n.blockingPaths?Se=t[12]:(Se=n.blockingPaths??[],t[11]=n.blockingPaths,t[12]=Se);let Ce=Se,{conflicts:we}=ge(),Ee;t[13]===we?Ee=t[14]:(Ee=we.find(sn)?.docName??null,t[13]=we,t[14]=Ee);let De=Ee,Oe;t[15]===n?Oe=t[16]:(Oe=(0,G.jsx)(ut,{status:n}),t[15]=n,t[16]=Oe);let ke;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,G.jsx)(`span`,{className:`text-1sm font-medium`,children:(0,G.jsx)(r,{id:`yZepkk`})}),t[17]=ke):ke=t[17];let Ae;t[18]===Oe?Ae=t[19]:(Ae=(0,G.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[Oe,ke]}),t[18]=Oe,t[19]=Ae);let je;t[20]!==s||t[21]!==n.remote?(je=n.remote&&(n.remote.webUrl?(0,G.jsxs)(`a`,{href:n.remote.webUrl,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex min-w-0 items-center gap-0.5 text-xs text-foreground hover:text-primary hover:underline`,"aria-label":s({id:`1nke1r`,values:{0:n.remote.label}}),children:[(0,G.jsx)(`span`,{className:`truncate`,children:n.remote.label}),(0,G.jsx)(ee,{className:`size-3.5 shrink-0`,"aria-hidden":!0})]}):(0,G.jsx)(`span`,{className:`min-w-0 truncate text-xs text-foreground`,children:n.remote.label})),t[20]=s,t[21]=n.remote,t[22]=je):je=t[22];let Me;t[23]!==Ae||t[24]!==je?(Me=(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[Ae,je]}),t[23]=Ae,t[24]=je,t[25]=Me):Me=t[25];let Pe=x??`full`,Fe;t[26]!==y||t[27]!==O||t[28]!==b||t[29]!==C||t[30]!==Pe?(Fe=(0,G.jsx)(qe,{open:y,onOpenChange:b,onConfirm:O,variant:Pe,strandedCommitCount:C}),t[26]=y,t[27]=O,t[28]=b,t[29]=C,t[30]=Pe,t[31]=Fe):Fe=t[31];let Ie;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(Ie=(0,G.jsx)(Bt,{children:(0,G.jsx)(r,{id:`CnOGgs`})}),t[32]=Ie):Ie=t[32];let Le;t[33]===T?Le=t[34]:(Le=e=>{S(e)&&T(e)},t[33]=T,t[34]=Le);let Re=!u,ze;t[35]===s?ze=t[36]:(ze=s({id:`CnOGgs`}),t[35]=s,t[36]=ze);let Be;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,G.jsx)(h,{}),t[37]=Be):Be=t[37];let Ve;t[38]===ze?Ve=t[39]:(Ve=(0,G.jsx)(m,{size:`sm`,className:`w-full text-xs`,"aria-label":ze,"data-testid":`sync-mode-select`,children:Be}),t[38]=ze,t[39]=Ve);let Ue;t[40]===s?Ue=t[41]:(Ue=s({id:`BWTzAb`}),t[40]=s,t[41]=Ue);let We;t[42]===Ue?We=t[43]:(We=(0,G.jsx)(f,{value:`off`,className:`text-xs`,children:Ue}),t[42]=Ue,t[43]=We);let K;t[44]===s?K=t[45]:(K=s({id:`tlGXxX`}),t[44]=s,t[45]=K);let q;t[46]===K?q=t[47]:(q=(0,G.jsx)(f,{value:`follow`,className:`text-xs`,children:K}),t[46]=K,t[47]=q);let Ge;t[48]===s?Ge=t[49]:(Ge=s({id:`IXiG0B`}),t[48]=s,t[49]=Ge);let Ke;t[50]!==R||t[51]!==Ge?(Ke=(0,G.jsx)(f,{value:`full`,className:`text-xs`,disabled:R,children:Ge}),t[50]=R,t[51]=Ge,t[52]=Ke):Ke=t[52];let Je;t[53]!==We||t[54]!==q||t[55]!==Ke?(Je=(0,G.jsxs)(p,{children:[We,q,Ke]}),t[53]=We,t[54]=q,t[55]=Ke,t[56]=Je):Je=t[56];let Ye;t[57]!==v||t[58]!==Le||t[59]!==Re||t[60]!==Ve||t[61]!==Je?(Ye=(0,G.jsxs)(g,{value:v,onValueChange:Le,disabled:Re,children:[Ve,Je]}),t[57]=v,t[58]=Le,t[59]=Re,t[60]=Ve,t[61]=Je,t[62]=Ye):Ye=t[62];let Ze;t[63]===v?Ze=t[64]:(Ze=(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,"data-testid":`sync-popover-mode-line`,children:v===`off`?(0,G.jsx)(r,{id:`qD3krc`}):v===`follow`?(0,G.jsx)(r,{id:`PGRnbw`}):(0,G.jsx)(r,{id:`zBiFZh`})}),t[63]=v,t[64]=Ze);let Qe;t[65]!==Ye||t[66]!==Ze?(Qe=(0,G.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[Ie,Ye,Ze]}),t[65]=Ye,t[66]=Ze,t[67]=Qe):Qe=t[67];let J;t[68]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,G.jsx)(Bt,{children:(0,G.jsx)(r,{id:`BWTzAb`})}),t[68]=J):J=t[68];let $e=z||xe,et;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(et=()=>be(`pull`),t[69]=et):et=t[69];let Y;t[70]===V?Y=t[71]:(Y=V===`pull`?(0,G.jsx)(j,{"aria-hidden":`true`,"data-icon":`inline-start`}):(0,G.jsx)(E,{"data-icon":`inline-start`}),t[70]=V,t[71]=Y);let tt;t[72]===Symbol.for(`react.memo_cache_sentinel`)?(tt=(0,G.jsx)(r,{id:`e4GHWP`}),t[72]=tt):tt=t[72];let it;t[73]!==$e||t[74]!==Y?(it=(0,G.jsxs)(_,{variant:`outline`,size:`xs`,className:`flex-1`,disabled:$e,onClick:et,"data-testid":`sync-popover-pull`,children:[Y,tt]}),t[73]=$e,t[74]=Y,t[75]=it):it=t[75];let at;t[76]!==z||t[77]!==ue||t[78]!==H||t[79]!==V?(at=ue&&(0,G.jsxs)(_,{variant:`outline`,size:`xs`,className:`flex-1`,disabled:z||H,onClick:()=>be(`push`),"data-testid":`sync-popover-push`,children:[V===`push`?(0,G.jsx)(j,{"aria-hidden":`true`,"data-icon":`inline-start`}):(0,G.jsx)(D,{"data-icon":`inline-start`}),(0,G.jsx)(r,{id:`uO9WLl`})]}),t[76]=z,t[77]=ue,t[78]=H,t[79]=V,t[80]=at):at=t[80];let X;t[81]!==it||t[82]!==at?(X=(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[it,at]}),t[81]=it,t[82]=at,t[83]=X):X=t[83];let Z;t[84]!==z||t[85]!==ue||t[86]!==H||t[87]!==V?(Z=ue&&(0,G.jsxs)(_,{size:`xs`,className:`w-full`,disabled:z||H,onClick:()=>be(`sync`),"data-testid":`sync-popover-sync`,children:[V===`sync`?(0,G.jsx)(j,{"aria-hidden":`true`,icon:M,"data-icon":`inline-start`}):(0,G.jsx)(M,{"data-icon":`inline-start`}),(0,G.jsx)(r,{id:`YEzhIr`})]}),t[84]=z,t[85]=ue,t[86]=H,t[87]=V,t[88]=Z):Z=t[88];let ot;t[89]!==X||t[90]!==Z?(ot=(0,G.jsxs)(`div`,{className:`flex flex-col gap-2 border-t pt-3`,children:[J,X,Z]}),t[89]=X,t[90]=Z,t[91]=ot):ot=t[91];let st;if(t[92]!==s||t[93]!==n){let e;t[95]===s?e=t[96]:(e=e=>(0,G.jsx)(`p`,{className:`text-xs text-destructive`,children:e.direction===`push`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`font-medium`,children:[s({id:`uO9WLl`}),`: `]}),e.message]}):e.direction===`pull`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`font-medium`,children:[s({id:`e4GHWP`}),`: `]}),e.message]}):e.message},e.key),t[95]=s,t[96]=e),st=It(n).map(e),t[92]=s,t[93]=n,t[94]=st}else st=t[94];let Q;t[97]===n?Q=t[98]:(Q=Dt(n)&&n.pushPermission?.checkStatus===`denied`?wt(n.pushPermission).map(on):null,t[97]=n,t[98]=Q);let ct;t[99]!==n.pausedReason||t[100]!==n.pushPermission?(ct=n.pausedReason===`no-push-permission`&&n.pushPermission?.checkStatus===`denied`?wt(n.pushPermission).map(an):null,t[99]=n.pausedReason,t[100]=n.pushPermission,t[101]=ct):ct=t[101];let $;t[102]!==st||t[103]!==Q||t[104]!==ct?($=(0,G.jsxs)(`div`,{role:`status`,"aria-live":`polite`,className:`flex flex-col gap-3.5 empty:sr-only`,"data-testid":`sync-popover-status`,children:[st,Q,ct]}),t[102]=st,t[103]=Q,t[104]=ct,t[105]=$):$=t[105];let dt;t[106]!==Ce||t[107]!==I||t[108]!==R||t[109]!==a||t[110]!==n?(dt=!I&&Ot(n.pushPermission)?(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`ycIX5i`})}),a&&(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:a,children:(0,G.jsx)(r,{id:`5lWFkC`})})]}):Ce.length>0?(0,G.jsx)(Xe,{paths:Ce}):Dt(n)?null:n.pausedReason?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,G.jsx)(St,{reason:n.pausedReason})}),(0,G.jsx)(bt,{paths:n.refusedSymlinkPaths})]}):!I&&R&&n.pushPermission?.checkStatus===`denied`?Ct(n.pushPermission.deniedReason,n.pushPermission).map(rn):Lt(n.pushPermission)?(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`C_cPoW`})}),a&&(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:a,children:(0,G.jsx)(r,{id:`5lWFkC`})})]}):null,t[106]=Ce,t[107]=I,t[108]=R,t[109]=a,t[110]=n,t[111]=dt):dt=t[111];let ft;t[112]!==De||t[113]!==L?(ft=L===`conflict`&&(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-amber-700 dark:text-amber-400`,children:(0,G.jsx)(r,{id:`ko386X`})}),De!==null&&(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>rt(de(De)),children:(0,G.jsx)(r,{id:`5k0NLb`})})]}),t[112]=De,t[113]=L,t[114]=ft):ft=t[114];let pt;t[115]!==le||t[116]!==a||t[117]!==L||t[118]!==n?(pt=L===`auth-error`&&!Dt(n)&&(le?a&&(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-destructive`,children:(0,G.jsx)(r,{id:`Vl1H8I`})}),(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:a,children:(0,G.jsx)(r,{id:`5lWFkC`})})]}):jt(n.remote)?(0,G.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,G.jsx)(`p`,{className:`min-w-0 flex-1 text-xs text-destructive`,"data-testid":`sync-popover-auth-error-unverified`,children:(0,G.jsx)(r,{id:`FioJgb`})}),(0,G.jsx)($t,{})]}):(0,G.jsx)(`p`,{className:`text-xs text-destructive`,"data-testid":`sync-popover-auth-error-no-token`,children:(0,G.jsx)(r,{id:`w-Wt3H`})})),t[115]=le,t[116]=a,t[117]=L,t[118]=n,t[119]=pt):pt=t[119];let mt;t[120]===c?mt=t[121]:(mt=c>0&&(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:(0,G.jsx)(r,{id:`B4_ipX`,values:{conflictCount:c}})}),t[120]=c,t[121]=mt);let ht;t[122]!==n||t[123]!==k||t[124]!==F||t[125]!==A||t[126]!==P||t[127]!==N?(ht=(0,G.jsx)(Zt,{status:n,worktree:k,loading:A,unreadable:N,stale:P,lastReadAt:F}),t[122]=n,t[123]=k,t[124]=F,t[125]=A,t[126]=P,t[127]=N,t[128]=ht):ht=t[128];let gt;t[129]!==se||t[130]!==ae||t[131]!==oe?(gt=(0,G.jsx)(Qt,{pulledAt:ae,pushedAt:oe,combinedAt:se}),t[129]=se,t[130]=ae,t[131]=oe,t[132]=gt):gt=t[132];let _t;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,G.jsx)(pe,{asChild:!0,children:(0,G.jsxs)(_,{variant:`link`,size:`xs`,className:`h-auto p-0 text-xs text-muted-foreground hover:font-medium hover:text-foreground hover:no-underline`,onClick:nn,"data-testid":`sync-popover-settings`,children:[(0,G.jsx)(te,{"data-icon":`inline-start`}),(0,G.jsx)(r,{id:`VNgKZz`})]})}),t[133]=_t):_t=t[133];let vt;t[134]===gt?vt=t[135]:(vt=(0,G.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[gt,_t]}),t[134]=gt,t[135]=vt);let yt;t[136]!==o||t[137]!==n.identityUnresolved?(yt=n.identityUnresolved&&o&&(0,G.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed p-2`,children:[(0,G.jsx)(Te,{className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,G.jsx)(`p`,{className:`text-xs leading-snug text-muted-foreground`,children:(0,G.jsx)(r,{id:`nrGWJ7`})}),(0,G.jsx)(_,{variant:`outline`,size:`xs`,className:`self-start`,onClick:o,children:(0,G.jsx)(r,{id:`keNFEd`})})]})]}),t[136]=o,t[137]=n.identityUnresolved,t[138]=yt):yt=t[138];let xt;return t[139]!==Me||t[140]!==Fe||t[141]!==Qe||t[142]!==ot||t[143]!==$||t[144]!==dt||t[145]!==ft||t[146]!==pt||t[147]!==mt||t[148]!==ht||t[149]!==vt||t[150]!==yt?(xt=(0,G.jsxs)(`div`,{className:`flex flex-col gap-3.5`,children:[Me,Fe,Qe,ot,$,dt,ft,pt,mt,ht,vt,yt]}),t[139]=Me,t[140]=Fe,t[141]=Qe,t[142]=ot,t[143]=$,t[144]=dt,t[145]=ft,t[146]=pt,t[147]=mt,t[148]=ht,t[149]=vt,t[150]=yt,t[151]=xt):xt=t[151],xt}function nn(){return ce({advanced:!0})}function rn(e){return(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e},e)}function an(e){return(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e},e)}function on(e){return(0,G.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e},e)}function sn(e){return e.docName!==null}function cn(e){let t=(0,U.c)(68),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{onSignIn:a,onSetIdentity:l}=n,{_:u}=i(),{status:d,fetchError:f}=he();if(!d){if(f){let e;t[2]===u?e=t[3]:(e=u({id:`iqIDv4`}),t[2]=u,t[3]=e);let n;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,G.jsx)(xe,{className:`size-3.5`}),t[4]=n):n=t[4];let i;t[5]===e?i=t[6]:(i=(0,G.jsx)(o,{asChild:!0,children:(0,G.jsx)(_,{variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground`,"aria-label":e,disabled:!0,children:n})}),t[5]=e,t[6]=i);let a;t[7]===f?a=t[8]:(a=(0,G.jsx)(s,{children:f===`network`?(0,G.jsx)(r,{id:`I5AfhE`}):(0,G.jsx)(r,{id:`uKRYiW`})}),t[7]=f,t[8]=a);let l;return t[9]!==i||t[10]!==a?(l=(0,G.jsxs)(c,{children:[i,a]}),t[9]=i,t[10]=a,t[11]=l):l=t[11],l}return null}if(!d.hasRemote)return null;let p;t[12]===d?p=t[13]:(p=dt(d),t[12]=d,t[13]=p);let m=p,h,g,v,y,b,x,S,C,w,T,E,D;if(t[14]!==u||t[15]!==d){let e=Rt(d);x=!!d.identityUnresolved,b=me,y=c,v=o,D=!0,g=z,E=!0,h=_,S=`ghost`,C=`icon-sm`,w=`text-muted-foreground relative`,T=u(x?{id:`DFfRbX`,values:{syncStateLabel:e}}:{id:`F4vEsL`,values:{syncStateLabel:e}}),t[14]=u,t[15]=d,t[16]=h,t[17]=g,t[18]=v,t[19]=y,t[20]=b,t[21]=x,t[22]=S,t[23]=C,t[24]=w,t[25]=T,t[26]=E,t[27]=D}else h=t[16],g=t[17],v=t[18],y=t[19],b=t[20],x=t[21],S=t[22],C=t[23],w=t[24],T=t[25],E=t[26],D=t[27];let ee;t[28]===d?ee=t[29]:(ee=(0,G.jsx)(ut,{status:d}),t[28]=d,t[29]=ee);let O;t[30]===m?O=t[31]:(O=m&&(0,G.jsx)(`span`,{className:`absolute -top-0.5 -right-0.5 text-[9px] leading-none font-medium bg-background border rounded-full px-0.5`,children:m}),t[30]=m,t[31]=O);let k;t[32]!==m||t[33]!==x?(k=!m&&x&&(0,G.jsx)(`span`,{className:`absolute -top-0.5 -right-0.5 size-1.5 rounded-full bg-amber-500 ring-2 ring-background`,"aria-hidden":!0}),t[32]=m,t[33]=x,t[34]=k):k=t[34];let te;t[35]!==h||t[36]!==O||t[37]!==k||t[38]!==S||t[39]!==C||t[40]!==w||t[41]!==T||t[42]!==ee?(te=(0,G.jsxs)(h,{variant:S,size:C,className:w,"aria-label":T,children:[ee,O,k]}),t[35]=h,t[36]=O,t[37]=k,t[38]=S,t[39]=C,t[40]=w,t[41]=T,t[42]=ee,t[43]=te):te=t[43];let A;t[44]!==g||t[45]!==te||t[46]!==E?(A=(0,G.jsx)(g,{asChild:E,children:te}),t[44]=g,t[45]=te,t[46]=E,t[47]=A):A=t[47];let j;t[48]!==v||t[49]!==A||t[50]!==D?(j=(0,G.jsx)(v,{asChild:D,children:A}),t[48]=v,t[49]=A,t[50]=D,t[51]=j):j=t[51];let M;t[52]===d?M=t[53]:(M=zt(d),t[52]=d,t[53]=M);let N;t[54]===M?N=t[55]:(N=(0,G.jsx)(s,{children:M}),t[54]=M,t[55]=N);let P;t[56]!==y||t[57]!==j||t[58]!==N?(P=(0,G.jsxs)(y,{children:[j,N]}),t[56]=y,t[57]=j,t[58]=N,t[59]=P):P=t[59];let F;t[60]!==l||t[61]!==a||t[62]!==d?(F=(0,G.jsx)(fe,{align:`end`,className:`flex max-h-(--radix-popover-content-available-height) w-80 flex-col overflow-y-auto p-3`,children:(0,G.jsx)(tn,{status:d,onSignIn:a,onSetIdentity:l})}),t[60]=l,t[61]=a,t[62]=d,t[63]=F):F=t[63];let I;return t[64]!==b||t[65]!==P||t[66]!==F?(I=(0,G.jsxs)(b,{children:[P,F]}),t[64]=b,t[65]=P,t[66]=F,t[67]=I):I=t[67],I}export{je as C,V as E,ke as S,H as T,q as _,wt as a,Oe as b,Et as c,$ as d,jt as f,K as g,qe as h,lt as i,kt as l,Lt as m,bt as n,Ft as o,Ot as p,cn as r,At as s,St as t,Dt as u,Pe as v,De as w,Ee as x,Ae as y};
@@ -1 +0,0 @@
1
- import{_ as e,a as t,f as n,g as r,i,m as a,p as o,s,t as c,u as l,v as u,y as ee}from"./schemas-B93JY9Ef.js";import{Bt as te,Gt as ne,Ht as re,Rt as ie,Ut as ae,Vt as oe,Wt as se,zt as ce}from"./schemas-api-BM3O7zA1.js";import{i as d,t as f}from"./constants-editors-05BNhhVl.js";import{b as le}from"./handoff-ClTYrgLm.js";var p=[...f,`gemini`],m=c(p);function h(e){return p.includes(e)}var ue=c([`acp`,`terminal`,`external`]),de=c([...le,`gemini`]),fe=c([`claude-cowork`,`claude-code`,`codex`,`cursor`,`copilot`,`opencode`,`pi`,`antigravity`,`openclaw`,`hermes`]),g=c([`mcp`,`skill`]),_=[`project`,`user`,`session`],v=c(_),y=u().regex(/^[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+\/[a-z0-9-]+$/).transform(e=>e),pe=u().min(1).transform(e=>e),me=u().min(1).transform(e=>e);function b(e){return`${e.agent}/${e.piece}/${e.scope}/${e.kind}`}function x(e){return e}function he(e){return e}var ge=[`editor-user-config`,`editor-project-config`,`editor-project-skill-root`,`editor-user-skill-root`],S=x(`central-skill-store`);function C(e,t){return x(`${e}:${t}`)}function _e(e){if(e===S)return{kind:`central-skill-store`};let t=e.indexOf(`:`);if(t===-1)return null;let n=e.slice(0,t),r=e.slice(t+1);return!ge.includes(n)||!f.includes(r)?null:{kind:n,editor:r}}var ve=e=>e===void 0?[]:Array.isArray(e)?[...e]:[e];function w(e){let{sharedWith:t,prerequisites:n,consentClass:r,installability:i,preferred:a,troubleshooting:o,...s}=e;return{...s,troubleshooting:ve(o),id:b({agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind}),sharedWith:t??[],prerequisites:n??[],consentClass:r??`none`,installability:i??`installable`,preferred:a??!1}}function T(e){let{offerOnlyWhenDetected:t,offersConnectionRow:n,detectionSources:r,modes:i,...a}=e,o={};for(let[e,t]of Object.entries(i))o[e]={requirements:t.requirements,caveats:t.caveats??[]};return{...a,offerOnlyWhenDetected:t??!1,offersConnectionRow:n??!1,detectionSources:r??[],modes:o}}var E=(e,t,n,r)=>b({agent:e,piece:t,scope:n,kind:r}),D=e=>({piece:`mcp`,level:`required`,satisfiedByAny:e}),O=e=>({piece:`skill`,level:`recommended`,satisfiedByAny:e}),k=(...e)=>({mode:`probeable`,strictness:e}),ye=(e,t)=>({mode:`unprobeable`,reason:e,...t===void 0?{}:{note:t}}),A=(e,t)=>({id:he(e),...t===void 0?{}:{params:t}}),be=(e,t)=>{let n=oe.find(t=>t===e);return n===void 0?void 0:A(`followup.${n}`,{agent:t})},j=(e,t)=>({kind:`source-read`,ref:e,...t===void 0?{}:{note:t}}),M=(e,t)=>t===void 0?{confidence:`verified`,evidence:e}:{confidence:`verified`,evidence:e,verifiedAgainst:t},xe=(e,t)=>({confidence:`contested`,evidence:e,verifiedAgainst:t});function N(e){return{acpAgentId:e.acpAgentId,featuredOrder:e.featuredOrder,harnessCli:e.harnessCli,harnessReadsEditorConfig:e.readsEditorConfig,harnessReadsEditorConfigAttestation:e.readsEditorConfigAttestation,verifiedPosture:e.verifiedPosture}}function P(e){let{appBrandName:t,tagline:n,...r}=e;return{...r,...t===void 0?{}:{appBrandName:t},...n===void 0?{}:{tagline:n}}}var F=(e,t)=>({kind:`observation`,ref:e,note:t}),I={observedAt:`2026-07-02`},L={cliEditors:`packages/cli/src/commands/editors.ts`,coreEditors:`packages/core/src/constants/editors.ts`,acpRegistry:`packages/server/src/acp/registry.ts`,threadManager:`packages/server/src/acp/thread-manager.ts`,writeProjectSkill:`packages/cli/src/integrations/write-project-skill.ts`,repairSkills:`packages/cli/src/commands/repair-skills.ts`,skillInstall:`packages/server/src/skill-install.ts`,presenceProbes:`packages/desktop/src/main/integrations-settings.ts`};function R(e){return w({agent:e.agent,piece:`mcp`,scope:`user`,kind:`config-entry`,pathId:C(`editor-user-config`,e.agent),probe:k(...e.strictness),attestation:e.attestation,audience:`this-user`,installability:e.installability,notInstallableReason:e.notInstallableReason,guidance:A(`guidance.mcp.user-config`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function z(e){return w({agent:e.agent,piece:`mcp`,scope:`project`,kind:`config-entry`,pathId:C(`editor-project-config`,e.fileOwner??e.agent),sharedWith:e.sharedWith,consentClass:e.consentClass,probe:k(...e.strictness),attestation:e.attestation,audience:`this-project`,guidance:A(`guidance.mcp.project-config`,{agent:e.agent}),followup:be(e.consentClass,e.agent),troubleshooting:e.troubleshooting})}function B(e){return w({agent:e.agent,piece:`skill`,scope:`project`,kind:`skill-bundle-copy`,pathId:C(`editor-project-skill-root`,e.agent),prerequisites:e.prerequisites,probe:k(`reclaim-permissive`),attestation:e.attestation,audience:`this-project`,guidance:A(`guidance.skill.project`,{agent:e.agent}),troubleshooting:e.troubleshooting})}function V(e){return w({agent:e.agent,piece:`skill`,scope:`user`,kind:`skill-bundle-copy`,pathId:C(`editor-user-skill-root`,e.agent),probe:k(`reclaim-permissive`),attestation:e.attestation,audience:`this-user`,guidance:A(`guidance.skill.user`,{agent:e.agent})})}function H(e){return w({agent:e,piece:`mcp`,scope:`session`,kind:`session-injection`,probe:ye(`session-scoped`),attestation:M([j(L.threadManager,`the session MCP config the thread manager builds per thread`)]),audience:`this-project`,installability:`not-installable`,notInstallableReason:`session-scoped`,guidance:A(`guidance.mcp.session-injection`,{agent:e})})}var U={claude:T({id:`claude`,setupDocSlug:d.claude,offersConnectionRow:!0,detectionSources:[`cli-on-path:claude`,`scheme-handler:claude-code`],satisfiers:[R({agent:`claude`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:M([j(L.cliEditors,`user-global MCP config target`)])}),z({agent:`claude`,sharedWith:[`copilot`],consentClass:`approve-once`,strictness:[`reclaim-permissive`,`pre-approval-exact`,`injection-functional`],attestation:M([j(L.cliEditors),j(L.coreEditors)]),troubleshooting:A(`troubleshooting.claude.project-entry-not-approved`,{agent:`claude`})}),B({agent:`claude`,prerequisites:[E(`claude`,`mcp`,`project`,`config-entry`)],attestation:M([j(L.coreEditors),j(L.repairSkills)])}),V({agent:`claude`,attestation:M([j(L.coreEditors),j(L.skillInstall)])}),H(`claude`)],modes:{external:{requirements:[D([E(`claude`,`mcp`,`user`,`config-entry`),E(`claude`,`mcp`,`project`,`config-entry`)]),O([E(`claude`,`skill`,`project`,`skill-bundle-copy`),E(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`claude`,`mcp`,`user`,`config-entry`),E(`claude`,`mcp`,`project`,`config-entry`)]),O([E(`claude`,`skill`,`project`,`skill-bundle-copy`),E(`claude`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`claude`,`mcp`,`session`,`session-injection`),E(`claude`,`mcp`,`user`,`config-entry`),E(`claude`,`mcp`,`project`,`config-entry`)]),O([E(`claude`,`skill`,`project`,`skill-bundle-copy`),E(`claude`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`claude-acp`,featuredOrder:0,harnessCli:`claude`,readsEditorConfig:`claude`,readsEditorConfigAttestation:M([j(L.threadManager,`the injection-skip probe reads the managed entry for this editor`),F(`claude-acp adapter`,`The adapter runs Claude Code, which loads the MCP entry OK writes for the Claude editor on its own, so injecting a same-name duplicate would be redundant.`)],I),verifiedPosture:`asks`}),external:P({targetId:`claude-code`,knownOrder:1,visible:!0,displayName:`Claude`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Agentic coding in Claude Desktop's Code tab.`})}),"claude-desktop":T({id:`claude-desktop`,setupDocSlug:d[`claude-desktop`],offersConnectionRow:!1,detectionSources:[`scheme-handler:claude-code`],satisfiers:[R({agent:`claude-desktop`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors,`user-global config target; its path resolution throws on Linux`)]),troubleshooting:A(`troubleshooting.claude-desktop.per-tool-approval`,{agent:`claude-desktop`})})],modes:{external:{requirements:[D([E(`claude-desktop`,`mcp`,`user`,`config-entry`)]),O([])]}},external:P({targetId:`claude-cowork`,knownOrder:0,visible:!1,displayName:`Claude Cowork`,appBrandName:`Claude Desktop`,schemes:[`claude:`],installUrl:`https://claude.com/download`,tagline:`Conversational pairing in Claude Desktop's Cowork tab.`})}),cursor:T({id:`cursor`,setupDocSlug:d.cursor,offersConnectionRow:!0,detectionSources:[`cli-on-path:cursor`,`scheme-handler:cursor`],satisfiers:[R({agent:`cursor`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors)])}),z({agent:`cursor`,consentClass:`enable-manually`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors),j(L.coreEditors),{kind:`observation`,ref:`cursor-3.19.19-project-server-default-off`,note:`project .cursor/mcp.json server listed Disabled under Customize → MCPs with no prompt; enabled via the per-source toggle in its Configure dialog; with a same-named user-level entry present, the user entry connected and the disabled project entry did not shadow it`}],{version:`3.19.19`,observedAt:`2026-09-09`}),troubleshooting:A(`troubleshooting.cursor.project-entry-not-loaded`,{agent:`cursor`})}),B({agent:`cursor`,prerequisites:[E(`cursor`,`mcp`,`project`,`config-entry`)],attestation:M([j(L.coreEditors),j(L.repairSkills)])}),V({agent:`cursor`,attestation:M([j(L.coreEditors),j(L.skillInstall)])}),H(`cursor`)],modes:{external:{requirements:[D([E(`cursor`,`mcp`,`user`,`config-entry`),E(`cursor`,`mcp`,`project`,`config-entry`)]),O([E(`cursor`,`skill`,`project`,`skill-bundle-copy`),E(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`cursor`,`mcp`,`user`,`config-entry`),E(`cursor`,`mcp`,`project`,`config-entry`)]),O([E(`cursor`,`skill`,`project`,`skill-bundle-copy`),E(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`cursor`,`mcp`,`session`,`session-injection`)]),O([E(`cursor`,`skill`,`project`,`skill-bundle-copy`),E(`cursor`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`cursor`,featuredOrder:3,harnessCli:`cursor`,readsEditorConfig:null,readsEditorConfigAttestation:M([F(`cursor-agent mcp list`,`Reports a config-declared entry that has not been approved as "not loaded (needs approval)", so a present entry says nothing about whether the agent will have the tools.`),j(L.threadManager,`the one agent the skip probe never stands down for`)],{observedAt:`2026-08-20`}),verifiedPosture:`self-managed`}),external:P({targetId:`cursor`,knownOrder:3,visible:!0,displayName:`Cursor`,schemes:[`cursor:`],installUrl:`https://cursor.com/`,tagline:`AI-first VS Code fork with multi-file edits.`})}),codex:T({id:`codex`,setupDocSlug:d.codex,offersConnectionRow:!0,detectionSources:[`cli-on-path:codex`,`scheme-handler:codex`],satisfiers:[R({agent:`codex`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:M([j(L.cliEditors,`TOML user-global config target`)])}),z({agent:`codex`,consentClass:`trust-gated`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:xe([j(L.cliEditors,`project config path added by analogy with the other editors`),{kind:`upstream-issue`,ref:`openai/codex#13025`,note:`open, reproduced on builds newer than the one OK checked`},{kind:`upstream-issue`,ref:`openai/codex#36960`,note:`requires an explicit trust decision in rust-v0.147.0, reverting #36935's automatic trust from the same release; builds from 0.113 asked but did not reliably persist the answer (#14547); codex exec never asks`},{kind:`vendor-doc`,ref:`OpenAI Codex: Advanced configuration`,note:`project-scoped config loads only for a trusted project`},{kind:`observation`,ref:`codex-desktop-project-config-load`,note:`single non-repro on 26.623.81905; the CLI honors it only for a trusted project`}],{version:`26.707.72221`,observedAt:`2026-07-15`}),troubleshooting:[A(`troubleshooting.codex.desktop-project-config`,{agent:`codex`,honoredByDesktop:!1}),A(`troubleshooting.codex.folder-trust`,{agent:`codex`})]}),B({agent:`codex`,prerequisites:[E(`codex`,`mcp`,`project`,`config-entry`)],attestation:M([j(L.coreEditors),j(L.repairSkills)]),troubleshooting:A(`troubleshooting.codex.folder-trust`,{agent:`codex`})}),V({agent:`codex`,attestation:M([j(L.coreEditors),j(L.skillInstall)])}),H(`codex`)],modes:{external:{requirements:[D([E(`codex`,`mcp`,`user`,`config-entry`),E(`codex`,`mcp`,`project`,`config-entry`)]),O([E(`codex`,`skill`,`project`,`skill-bundle-copy`),E(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`codex`,`mcp`,`user`,`config-entry`),E(`codex`,`mcp`,`project`,`config-entry`)]),O([E(`codex`,`skill`,`project`,`skill-bundle-copy`),E(`codex`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`codex`,`mcp`,`session`,`session-injection`),E(`codex`,`mcp`,`user`,`config-entry`),E(`codex`,`mcp`,`project`,`config-entry`)]),O([E(`codex`,`skill`,`project`,`skill-bundle-copy`),E(`codex`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`codex-acp`,featuredOrder:1,harnessCli:`codex`,readsEditorConfig:`codex`,readsEditorConfigAttestation:M([j(L.cliEditors,`the managed MCP entry OK writes into the Codex TOML config`),F(`codex-acp adapter`,`The adapter runs the Codex CLI, which loads the MCP servers declared in its own config, so the managed entry is already in the session.`)],I),verifiedPosture:`self-managed`}),external:P({targetId:`codex`,knownOrder:2,visible:!0,displayName:`ChatGPT`,appBrandName:`ChatGPT Desktop`,schemes:[`codex:`],installUrl:`https://developers.openai.com/codex/app`,tagline:`OpenAI's ChatGPT desktop app, home of the Codex agent.`})}),copilot:T({id:`copilot`,setupDocSlug:d.copilot,offersConnectionRow:!0,detectionSources:[`cli-on-path:copilot`],satisfiers:[R({agent:`copilot`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors)])}),z({agent:`copilot`,fileOwner:`claude`,sharedWith:[`claude`],consentClass:`trust-gated`,strictness:[`reclaim-permissive`],attestation:M([{kind:`vendor-doc`,ref:`GitHub Copilot CLI — MCP configuration`,note:"reads workspace `.mcp.json` or `.github/mcp.json`"},{kind:`vendor-doc`,ref:`GitHub Docs: Adding MCP servers for Copilot CLI`,note:`project-level servers load only after folder-trust confirmation; skipped silently in untrusted folders; under copilot -p they load only in an already-trusted folder unless GITHUB_COPILOT_PROMPT_MODE_WORKSPACE_MCP=true`},j(L.coreEditors,`OK deliberately writes no second copy for copilot`)],{version:`copilot CLI 1.0.80`,observedAt:`2026-08-20`}),troubleshooting:A(`troubleshooting.copilot.shared-workspace-config`,{agent:`copilot`,sourceAgent:`claude`})}),B({agent:`copilot`,prerequisites:[E(`copilot`,`mcp`,`project`,`config-entry`),E(`copilot`,`mcp`,`user`,`config-entry`)],attestation:M([j(L.coreEditors),j(L.writeProjectSkill)])}),V({agent:`copilot`,attestation:M([j(L.coreEditors),j(L.skillInstall)])}),H(`copilot`)],modes:{external:{requirements:[D([E(`copilot`,`mcp`,`user`,`config-entry`),E(`copilot`,`mcp`,`project`,`config-entry`)]),O([E(`copilot`,`skill`,`project`,`skill-bundle-copy`),E(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`copilot`,`mcp`,`user`,`config-entry`),E(`copilot`,`mcp`,`project`,`config-entry`)]),O([E(`copilot`,`skill`,`project`,`skill-bundle-copy`),E(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`copilot`,`mcp`,`session`,`session-injection`)]),O([E(`copilot`,`skill`,`project`,`skill-bundle-copy`),E(`copilot`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`github-copilot-cli`,featuredOrder:4,harnessCli:null,readsEditorConfig:null,readsEditorConfigAttestation:{confidence:`assumed`,evidence:[F(`copilot CLI 1.0.80`,"The CLI does read a workspace `.mcp.json`, but nobody has observed the ACP adapter loading the managed entry inside a session. Claiming it would stand our injection down on an unverified read and risk a thread with no OK tools, so the claim stays unmade and OK keeps injecting.")],verifiedAgainst:{version:`1.0.80`,observedAt:`2026-08-20`}},verifiedPosture:null}),external:P({targetId:`copilot`,knownOrder:4,visible:!1,displayName:`GitHub Copilot`,schemes:[],installUrl:`https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-getting-started`,tagline:`GitHub's terminal-native coding agent.`})}),opencode:T({id:`opencode`,setupDocSlug:d.opencode,offersConnectionRow:!0,detectionSources:[`cli-on-path:opencode`],satisfiers:[R({agent:`opencode`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:M([j(L.cliEditors,`XDG config dir; the win32 location is by analogy and unverified`)])}),z({agent:`opencode`,consentClass:`none`,strictness:[`reclaim-permissive`,`injection-functional`],attestation:M([j(L.cliEditors,`the one project config that is not under a dotdir`)])}),B({agent:`opencode`,prerequisites:[E(`opencode`,`mcp`,`project`,`config-entry`)],attestation:M([j(L.coreEditors),j(L.repairSkills)])}),V({agent:`opencode`,attestation:M([j(L.coreEditors),j(L.skillInstall)])}),H(`opencode`)],modes:{external:{requirements:[D([E(`opencode`,`mcp`,`user`,`config-entry`),E(`opencode`,`mcp`,`project`,`config-entry`)]),O([E(`opencode`,`skill`,`project`,`skill-bundle-copy`),E(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`opencode`,`mcp`,`user`,`config-entry`),E(`opencode`,`mcp`,`project`,`config-entry`)]),O([E(`opencode`,`skill`,`project`,`skill-bundle-copy`),E(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`opencode`,`mcp`,`session`,`session-injection`),E(`opencode`,`mcp`,`user`,`config-entry`),E(`opencode`,`mcp`,`project`,`config-entry`)]),O([E(`opencode`,`skill`,`project`,`skill-bundle-copy`),E(`opencode`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`opencode`,featuredOrder:5,harnessCli:`opencode`,readsEditorConfig:`opencode`,readsEditorConfigAttestation:M([j(L.cliEditors,`the managed MCP entry OK writes into the opencode config`),F(`opencode-acp adapter`,`The adapter runs opencode, which loads its own configured MCP servers, so the managed entry is already in the session.`)],I),verifiedPosture:null}),external:P({targetId:`opencode`,knownOrder:5,visible:!1,displayName:`OpenCode`,schemes:[],installUrl:`https://opencode.ai`,tagline:`Open-source terminal coding agent; bring any local model.`})}),openclaw:T({id:`openclaw`,setupDocSlug:d.openclaw,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:openclaw`],satisfiers:[R({agent:`openclaw`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors,"the one two-level server map, nested under `mcp.servers`")])}),w({agent:`openclaw`,piece:`skill`,scope:`user`,kind:`central-store-copy`,pathId:S,probe:k(`reclaim-permissive`),attestation:M([j(L.coreEditors),j(L.skillInstall,`the hub is written only when it already exists`)]),audience:`this-user`,guidance:A(`guidance.skill.central-store`,{agent:`openclaw`}),troubleshooting:A(`troubleshooting.openclaw.central-store-missing`,{agent:`openclaw`})})],modes:{external:{requirements:[D([E(`openclaw`,`mcp`,`user`,`config-entry`)]),O([E(`openclaw`,`skill`,`user`,`central-store-copy`)])]},terminal:{requirements:[D([E(`openclaw`,`mcp`,`user`,`config-entry`)]),O([E(`openclaw`,`skill`,`user`,`central-store-copy`)])]}},external:P({targetId:`openclaw`,knownOrder:8,visible:!1,displayName:`OpenClaw`,schemes:[],installUrl:`https://openclaw.ai`,tagline:`Open-source agent gateway; runs agents against your MCP servers.`})}),pi:T({id:`pi`,setupDocSlug:d.pi,offersConnectionRow:!0,detectionSources:[`cli-on-path:pi`],satisfiers:[w({agent:`pi`,piece:`mcp`,scope:`project`,kind:`managed-file`,pathId:C(`editor-project-config`,`pi`),probe:k(`reclaim-permissive`,`injection-functional`),attestation:M([j(L.cliEditors,`OK owns the whole file; currency is a first-line sentinel`),j(L.acpRegistry,`the thread provisions this file instead of injecting`)]),audience:`this-project`,guidance:A(`guidance.mcp.managed-file`,{agent:`pi`}),troubleshooting:A(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),B({agent:`pi`,prerequisites:[E(`pi`,`mcp`,`project`,`managed-file`)],attestation:M([j(L.coreEditors),j(L.writeProjectSkill)]),troubleshooting:A(`troubleshooting.pi.folder-trust`,{agent:`pi`})}),V({agent:`pi`,attestation:M([j(L.coreEditors,`the agent home nests one level below the dotdir`),j(L.skillInstall)])})],modes:{external:{requirements:[D([E(`pi`,`mcp`,`project`,`managed-file`)]),O([E(`pi`,`skill`,`project`,`skill-bundle-copy`),E(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`pi`,`mcp`,`project`,`managed-file`)]),O([E(`pi`,`skill`,`project`,`skill-bundle-copy`),E(`pi`,`skill`,`user`,`skill-bundle-copy`)])]},acp:{requirements:[D([E(`pi`,`mcp`,`project`,`managed-file`)]),O([E(`pi`,`skill`,`project`,`skill-bundle-copy`),E(`pi`,`skill`,`user`,`skill-bundle-copy`)])]}},acp:N({acpAgentId:`pi-acp`,featuredOrder:null,harnessCli:`pi`,readsEditorConfig:`pi`,readsEditorConfigAttestation:M([F(`pi-acp@0.0.33`,"Pi has no MCP client at all: it accepts `mcpServers` at session/new, stores them write-only and never connects. Its wiring is a managed extension FILE in the project, which OK provisions instead of injecting — the same mapping, a different shape."),j(L.threadManager,`the bridge route that provisions the extension instead of injecting`)],{version:`0.0.33`,observedAt:`2026-08-20`}),verifiedPosture:`autonomous`}),external:P({targetId:`pi`,knownOrder:6,visible:!1,displayName:`Pi`,schemes:[],installUrl:`https://pi.dev`,tagline:`Minimal open-source terminal coding agent, extensible in TypeScript.`})}),antigravity:T({id:`antigravity`,setupDocSlug:d.antigravity,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:antigravity`],satisfiers:[R({agent:`antigravity`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors,`one user-global file shared by the IDE, the app and the CLI; per project you can only filter it`)])}),V({agent:`antigravity`,attestation:M([j(L.coreEditors),j(L.skillInstall)])})],modes:{external:{requirements:[D([E(`antigravity`,`mcp`,`user`,`config-entry`)]),O([E(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]},terminal:{requirements:[D([E(`antigravity`,`mcp`,`user`,`config-entry`)]),O([E(`antigravity`,`skill`,`user`,`skill-bundle-copy`)])]}},external:P({targetId:`antigravity`,knownOrder:7,visible:!1,displayName:`Antigravity`,schemes:[],installUrl:`https://antigravity.google`,tagline:"Google's agentic IDE + `agy` terminal agent."})}),"lm-studio":T({id:`lm-studio`,setupDocSlug:d[`lm-studio`],offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[],satisfiers:[R({agent:`lm-studio`,strictness:[`reclaim-permissive`],installability:`not-installable`,notInstallableReason:`no-non-interactive-verb`,attestation:M([j(L.cliEditors,`two candidate locations, resolved against what already exists`),{kind:`upstream-issue`,ref:`lmstudio-ai/lmstudio-bug-tracker#1371`,note:`documented config path differs from the one the app reads on macOS`},j(L.presenceProbes,`deliberately absent from the presence probes`)]),troubleshooting:A(`troubleshooting.lm-studio.config-path-mismatch`,{agent:`lm-studio`})})],modes:{external:{requirements:[D([E(`lm-studio`,`mcp`,`user`,`config-entry`)]),O([])]}}}),hermes:T({id:`hermes`,setupDocSlug:d.hermes,offersConnectionRow:!0,offerOnlyWhenDetected:!0,detectionSources:[`cli-on-path:hermes`],satisfiers:[R({agent:`hermes`,strictness:[`reclaim-permissive`],attestation:M([j(L.cliEditors,`the one YAML target; the whole config is a single user-global file`)])})],modes:{external:{requirements:[D([E(`hermes`,`mcp`,`user`,`config-entry`)]),O([])]},terminal:{requirements:[D([E(`hermes`,`mcp`,`user`,`config-entry`)]),O([])]}},external:P({targetId:`hermes`,knownOrder:9,visible:!1,displayName:`Hermes`,schemes:[],installUrl:`https://hermes-agent.nousresearch.com`,tagline:`Nous Research's terminal coding agent.`})}),gemini:T({id:`gemini`,setupDocSlug:null,detectionSources:[`harness-bin:gemini`],satisfiers:[H(`gemini`)],modes:{acp:{requirements:[D([E(`gemini`,`mcp`,`session`,`session-injection`)]),O([])]}},acp:N({acpAgentId:`gemini`,featuredOrder:2,harnessCli:`gemini`,readsEditorConfig:null,readsEditorConfigAttestation:M([j(L.coreEditors,`gemini reaches OK as an ACP agent only; it has no editor config target`)],I),verifiedPosture:null})})};function Se(e){return U[e]}var Ce=Object.values(U).flatMap(e=>e.satisfiers),we=new Map(Ce.map(e=>[e.id,e]));function Te(e){return we.get(e)}var W=Object.values(U).flatMap(e=>e.acp===void 0?[]:[{record:e,acp:e.acp}]).sort((e,t)=>e.acp.acpAgentId.localeCompare(t.acp.acpAgentId));W.filter(({acp:e})=>e.featuredOrder!==null).sort((e,t)=>(e.acp.featuredOrder??0)-(t.acp.featuredOrder??0)).map(({acp:e})=>e.acpAgentId);var Ee=Object.fromEntries(W.flatMap(({acp:e})=>e.harnessCli===null?[]:[[e.acpAgentId,e.harnessCli]]));Object.fromEntries(W.flatMap(({acp:e})=>e.harnessReadsEditorConfig===null?[]:[[e.acpAgentId,e.harnessReadsEditorConfig]]));var De=Object.fromEntries(W.flatMap(({acp:e})=>e.verifiedPosture===null?[]:[[e.acpAgentId,e.verifiedPosture]])),Oe=Object.values(U).flatMap(e=>e.external===void 0?[]:[e.external]).sort((e,t)=>e.knownOrder-t.knownOrder),ke=Oe.map(({targetId:e,displayName:t,appBrandName:n,schemes:r,installUrl:i,tagline:a})=>({id:e,displayName:t,...n===void 0?{}:{appBrandName:n},schemes:r,installUrl:i,...a===void 0?{}:{tagline:a}})),Ae=new Set(Oe.filter(e=>e.visible).map(e=>e.targetId)),je=ke.filter(e=>Ae.has(e.id)),Me=f.filter(e=>U[e].offersConnectionRow),Ne=new Map(Object.values(U).flatMap(e=>e.external===void 0?[]:[[e.external.targetId,e.id]]));function Pe(e){return Ne.get(e)}var Fe=new Map(Object.values(U).flatMap(e=>e.modes.terminal===void 0?[]:[[e.id,e.id]]));function Ie(e){return Fe.get(e)}Object.fromEntries(Object.values(U).flatMap(e=>{let t=e.satisfiers.find(e=>e.piece===`mcp`&&e.scope===`project`&&e.consentClass!==`none`)?.consentClass;return t===void 0?[]:[[e.id,t]]})),new Set(ie);var Le=[{id:`mcp-preapproval`,piece:`mcp`,scope:`project`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!1},{id:`tool-autoapprove`,piece:`mcp`,requiredStrictness:`pre-approval-exact`,revokedByForeignEntry:!0}];Le.map(e=>e.id);var G={satisfied:{counts:!0,exception:null},"present-consent-unknown":{counts:!0,exception:`info`},absent:{counts:!1,exception:null},foreign:{counts:!1,exception:`warning`},"foreign-replaceable":{counts:!1,exception:`warning`},drifted:{counts:!1,exception:`warning`},excluded:{counts:!1,exception:`info`},"structural-na":{counts:!1,exception:`info`},undetected:{counts:!1,exception:null},unprobeable:{counts:!0,exception:`info`},unprobed:{counts:!1,exception:`info`}};c([`count-unverified`,`not-count`]);var Re={acp:{unprobed:`count-unverified`},terminal:{unprobed:`count-unverified`},external:{unprobed:`not-count`}};c([`acp-catalog-supported`,`harness-cli-on-path`,`os-scheme-handler`]);var ze={acp:{signal:`acp-catalog-supported`,unresolved:`show`,negativeOutranksOverride:!0},terminal:{signal:`harness-cli-on-path`,unresolved:`show`,negativeOutranksOverride:!1},external:{signal:`os-scheme-handler`,unresolved:`hide`,negativeOutranksOverride:!1}};function K(e){return typeof e==`object`&&!!e}function q(e,t){if(!K(e))return;let{satisfiers:n}=e;if(!K(n))return;let r=n[t];if(!K(r))return;let{state:i,strictness:a,sharedWith:o}=r;if(typeof i!=`string`||i.length===0)return;let s=Array.isArray(a)?a.filter(e=>typeof e==`string`):void 0,c=Array.isArray(o)?o.filter(e=>typeof e==`string`&&h(e)):void 0;return{state:i,...s===void 0?{}:{strictness:s},...c===void 0||c.length===0?{}:{sharedWith:c}}}function Be(e,t){if(!K(e))return!1;let{detected:n}=e;return Array.isArray(n)&&n.includes(t)}function J(e,t){return e.probe.mode===`unprobeable`?`unprobeable`:q(t,e.id)?.state??`unprobed`}function Y(e){return ne(e)?G[e]:G.unprobed}function Ve(e,t){let n=e.filter(e=>{let n=Te(e);return n===void 0?!0:!Y(J(n,t)).counts});return n.length===e.length?n:[]}function He(e){return Y(e).exception===`warning`}function Ue(e){return e.state===`foreign`?`foreign`:e.state===`structural-na`?`structural-na`:e.installability===`not-installable`?`not-installable`:e.agentFolded?`agent-undetected`:null}function We(e,t){let n=t?.probed===!0?Be(t,e.id):null;return{detected:n,folded:e.offerOnlyWhenDetected&&n===!1}}function Ge(e,t){return(q(t,e.id)?.sharedWith??[]).filter(t=>t!==e.agent)}var Ke=_.filter(e=>e!==`session`);function qe(e){return te.includes(e)}function Je(e,t,n){let r=[];for(let i of e.satisfiers){if(!qe(i.kind))continue;let a=J(i,t),o=t?.satisfiers?.[i.id]?.path,s=Y(a),c=Ve(i.prerequisites,t),l=Ue({state:a,installability:i.installability,agentFolded:n});r.push({satisfierId:i.id,agentId:e.id,piece:i.piece,scope:i.scope,kind:i.kind,...i.pathId===void 0?{}:{pathId:i.pathId},...o===void 0?{}:{resolvedPath:o},audience:i.audience,state:a,checked:s.counts,exception:s.exception,folded:a===`undetected`,enabled:l===null,disabledReason:l,sharedWith:i.sharedWith,sharedFolderWith:Ge(i,t),prerequisites:i.prerequisites,unmetPrerequisites:c,consentClass:i.consentClass,installability:i.installability,...i.guidance===void 0?{}:{guidance:i.guidance},...i.followup===void 0?{}:{followup:i.followup},troubleshooting:i.troubleshooting})}return r}function Ye(e){let t=[];for(let n of Ke){let r=e.filter(e=>e.scope===n);r.length!==0&&t.push({scope:n,cells:r})}return t}function Xe(e,t,n){let{detected:r,folded:i}=We(e,n),a=Je(e,t,i);return{agentId:e.id,detected:r,folded:i,setupDocSlug:e.setupDocSlug,scopes:Ye(a)}}function Ze(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`&&h(e)):p}function Qe(e={}){let{agentIds:t,probes:n,detection:r}=e;return{rows:Ze(t).map(e=>U[e]).filter(e=>e!==void 0).map(e=>Xe(e,n,r))}}var X={agent:m},$e={"followup.enable-manually":{params:e(X)},"guidance.mcp.user-config":{params:e(X)},"guidance.mcp.project-config":{params:e(X)},"guidance.mcp.session-injection":{params:e(X)},"guidance.mcp.managed-file":{params:e(X)},"guidance.skill.project":{params:e(X)},"guidance.skill.user":{params:e(X)},"guidance.skill.central-store":{params:e(X)},"troubleshooting.claude.project-entry-not-approved":{params:e(X)},"troubleshooting.claude-desktop.per-tool-approval":{params:e(X)},"troubleshooting.cursor.project-entry-not-loaded":{params:e({...X,server:u().optional()})},"troubleshooting.codex.desktop-project-config":{params:e({...X,honoredByDesktop:t()})},"troubleshooting.codex.folder-trust":{params:e(X)},"troubleshooting.copilot.shared-workspace-config":{params:e({...X,sourceAgent:m})},"troubleshooting.openclaw.central-store-missing":{params:e(X)},"troubleshooting.pi.folder-trust":{params:e(X)},"troubleshooting.lm-studio.config-path-mismatch":{params:e(X)}};Object.keys($e).sort(),Ce.flatMap(e=>e.probe.mode===`probeable`?[{satisfierId:e.id,agent:e.agent,piece:e.piece,scope:e.scope,kind:e.kind,pathId:e.pathId??null,strictness:e.probe.strictness}]:[]).map(e=>e.satisfierId);var et={verified:3,unverifiable:2,unverified:1};function tt(e,t){let n=ze[e],r=typeof t==`boolean`?t:null;return{signal:n.signal,resolved:r,show:r??n.unresolved===`show`}}function nt(e,t,n){let r=Te(e);if(r===void 0)return{id:e,state:`absent`,counts:!1,confidence:`unverified`,exception:G.absent.exception,consentClass:`none`,troubleshooting:[]};let i=J(r,n),a=!ne(i)||i===`unprobed`,o=Re[t].unprobed===`count-unverified`;return{id:e,state:i,counts:a?o:Y(i).counts,confidence:a?`unverified`:i===`unprobeable`?`unverifiable`:`verified`,exception:Y(i).exception,consentClass:r.consentClass,...r.guidance===void 0?{}:{guidance:r.guidance},...r.followup===void 0?{}:{followup:r.followup},troubleshooting:r.troubleshooting}}function rt(e,t,n){let r=e.satisfiedByAny.map(e=>nt(e,t,n));if(r.length===0)return{piece:e.piece,level:e.level,status:`nothing-required`,confidence:null,satisfiedBy:null,options:r};let i=null;for(let e of r)e.counts&&(i===null||et[e.confidence]>et[i.confidence])&&(i=e);return{piece:e.piece,level:e.level,status:i===null?`unmet`:`met`,confidence:i?.confidence??null,satisfiedBy:i?.id??null,options:r}}var it=[`absent`,`structural-na`];function at(e,t){let n=[];for(let r of Le){let i=e.satisfiers.filter(e=>e.piece===r.piece&&e.kind!==`session-injection`&&(r.scope===void 0||e.scope===r.scope));r.revokedByForeignEntry&&i.some(e=>it.includes(J(e,t))?!1:!ot(q(t,e.id),r.requiredStrictness))||i.some(e=>e.probe.mode!==`probeable`||!e.probe.strictness.includes(r.requiredStrictness)||!Y(J(e,t)).counts?!1:ot(q(t,e.id),r.requiredStrictness))&&n.push(r.id)}return n}function ot(e,t){return e?.strictness?.includes(t)===!0}function st(e){let{agentId:t,mode:n,probes:r,modeSignal:i}=e,a=h(t)?Se(t):void 0;if(a===void 0)return{agentId:t,mode:n,verdict:`not-registered`,visibility:{...tt(n,i),show:!0},requirements:[],grantedCapabilities:[],modeCaveats:[]};let o=tt(n,i),s=a.modes[n];if(s===void 0)return{agentId:t,mode:n,verdict:`mode-not-available`,visibility:o,requirements:[],grantedCapabilities:[],modeCaveats:[]};let c=s.requirements.map(e=>rt(e,n,r)),l=c.some(e=>e.level===`required`&&e.status===`unmet`),u=c.some(e=>e.status===`unmet`);return{agentId:t,mode:n,verdict:l?`blocked`:u?`ready-with-nudges`:`ready`,visibility:o,requirements:c,grantedCapabilities:at(a,r),modeCaveats:s.caveats}}var ct=c(f),Z=o({kind:c([`source-read`,`measured`,`vendor-doc`,`upstream-issue`,`observation`]),ref:u().min(1),note:u().optional()}),Q=o({version:u().min(1).optional(),observedAt:u().min(1)}),lt=s(`confidence`,[o({confidence:l(`verified`),evidence:i(Z).min(1),verifiedAgainst:Q.optional()}),o({confidence:l(`assumed`),evidence:i(Z).min(1),verifiedAgainst:Q.optional()}),o({confidence:l(`contested`),evidence:i(Z).min(1),verifiedAgainst:Q})]),$=o({id:me,params:r(u(),ee([u(),n(),t()])).optional()}),ut=s(`mode`,[o({mode:l(`probeable`),strictness:i(re).min(1)}),o({mode:l(`unprobeable`),reason:c([`no-readable-state`,`different-machine`,`no-programmatic-path`,`session-scoped`]),note:u().optional()})]),dt=c([`this-project`,`this-user`,`this-machine`]),ft=c([`installable`,`user-completes`,`not-installable`]),pt=o({id:y,agent:m,piece:g,scope:v,kind:se,pathId:pe.optional(),sharedWith:i(m).default([]),prerequisites:i(y).default([]),consentClass:ce.default(`none`),probe:ut,attestation:lt,audience:dt,installability:ft.default(`installable`),notInstallableReason:c([`no-non-interactive-verb`,`session-scoped`,`no-surface`]).optional(),preferred:t().default(!1),guidance:$.optional(),followup:$.optional(),troubleshooting:i($).default([])}),mt=o({piece:g,level:ae,satisfiedByAny:i(y)}),ht=o({acpAgentId:u().min(1),featuredOrder:n().int().nonnegative().nullable(),harnessCli:de.nullable(),harnessReadsEditorConfig:ct.nullable(),harnessReadsEditorConfigAttestation:lt,verifiedPosture:c([`asks`,`self-managed`,`autonomous`]).nullable()}),gt=o({cliId:u().min(1)}),_t=o({targetId:fe,knownOrder:n().int().nonnegative(),visible:t(),displayName:u().min(1),appBrandName:u().min(1).optional(),schemes:i(u().min(1)),installUrl:u().min(1),tagline:u().min(1).optional()}),vt=o({requirements:i(mt),caveats:i($).default([])});o({id:m,setupDocSlug:u().min(1).nullable(),offerOnlyWhenDetected:t().default(!1),offersConnectionRow:t().default(!1),detectionSources:i(u().min(1)).default([]),satisfiers:i(pt),modes:a(ue,vt),acp:ht.optional(),terminal:gt.optional(),external:_t.optional()}),o({id:u().min(1),requiredStrictness:re,scope:v.optional(),piece:g,revokedByForeignEntry:t().default(!1),guidance:$.optional()});export{Ee as a,Me as c,Pe as d,Ie as f,He as i,ke as l,_e as m,Qe as n,De as o,Se as p,Be as r,U as s,st as t,je as u};
@@ -1 +0,0 @@
1
- import"./saved-themes-client-CmQnQ6kY.js";
@@ -1 +0,0 @@
1
- var e={stable:{appId:`com.inkeep.open-knowledge`,productName:`OpenKnowledge`,packageName:`@inkeep/open-knowledge-desktop`,linuxExecutableName:`openknowledge`,linuxPackageNames:{deb:`openknowledge`,rpm:`OpenKnowledge`},cliCommandNames:[`ok`,`open-knowledge`],mcpServerName:`open-knowledge`,mcpChainTag:``,npmDistTag:`latest`,userHomeDirName:`.ok`,keyringService:`open-knowledge`},beta:{appId:`com.inkeep.open-knowledge.beta`,productName:`OpenKnowledge Beta`,packageName:`openknowledge-beta-desktop`,linuxExecutableName:`openknowledge-beta`,linuxPackageNames:{deb:`openknowledge-beta-desktop`,rpm:`openknowledge-beta-desktop`},cliCommandNames:[`ok-beta`,`open-knowledge-beta`],mcpServerName:`open-knowledge-beta`,mcpChainTag:`-beta`,npmDistTag:`beta`,userHomeDirName:`.ok-beta`,keyringService:`open-knowledge-beta`}},t=e.stable.productName,n=`OK_CHANNEL`;function r(t){return Object.hasOwn(e,t)}function i(n){return n===`stable`?`${t} (Stable)`:r(n)?e[n].productName:`${t} (${n})`}function a(e){return(e.split(/[\\/]/).pop()??``).replace(/\.exe$/i,``)}function o(t={},i=globalThis.process?.execPath??``){let o=t[n]?.trim().toLowerCase();if(o){if(r(o))return o;throw Error(`Unsupported ${n}=${JSON.stringify(o)}. Expected ${Object.keys(e).join(` or `)}.`)}let s=a(i);for(let t of Object.keys(e)){if(t===`stable`)continue;let n=e[t];if(s===n.linuxExecutableName||s===n.productName||s.startsWith(`${n.productName} `))return t}return`stable`}function s(){return e[o()]}export{s as n,i as r,e as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./field-controls-BqsFU6aY.js";export{e as SectionSkeleton};