@inkeep/open-knowledge 0.62.0-beta.2 → 0.62.0-beta.21

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 (328) hide show
  1. package/dist/{acp-harness-probe-CsOd2HY8.mjs → acp-harness-probe-kUb2Kidl.mjs} +2 -2
  2. package/dist/assets/skills/packs/codebase-wiki/plugin.json +10 -0
  3. package/dist/assets/skills/packs/entity-vault/plugin.json +10 -0
  4. package/dist/assets/skills/packs/knowledge-base/plugin.json +10 -0
  5. package/dist/assets/skills/packs/okf/plugin.json +10 -0
  6. package/dist/assets/skills/packs/plain-notes/plugin.json +10 -0
  7. package/dist/assets/skills/packs/software-lifecycle/plugin.json +10 -0
  8. package/dist/assets/skills/packs/worldbuilding/plugin.json +10 -0
  9. package/dist/assets/skills/packs/writing-pipeline/plugin.json +10 -0
  10. package/dist/assets/skills/write-skill/SKILL.md +14 -1
  11. package/dist/cli.mjs +59 -59
  12. package/dist/config-schema.json +33 -0
  13. package/dist/config.project-local.schema.json +21 -0
  14. package/dist/config.user.schema.json +18 -0
  15. package/dist/constants-Be43M5S5.mjs +2 -0
  16. package/dist/fs-traced-Cbn6E9Vr.mjs +1 -0
  17. package/dist/{fs-traced-2B_-YK-g.mjs → fs-traced-Dm4NQ6S5.mjs} +2 -2
  18. package/dist/{git-handle-BkSalb6i.mjs → git-handle-B1_kHwxU.mjs} +2 -2
  19. package/dist/git-handle-Bzo9zPMA.mjs +1 -0
  20. package/dist/index.d.mts +27 -7
  21. package/dist/index.mjs +213 -213
  22. package/dist/init-BTSkl-0b.mjs +1 -0
  23. package/dist/{init-1WSRoxGv.mjs → init-BdoxPt_G.mjs} +34 -34
  24. package/dist/{launch-json-removal-FkTYvACR.mjs → launch-json-removal-Bw2sOxEx.mjs} +2 -2
  25. package/dist/{loader-CPTihIGS.mjs → loader-BtTRGXlY.mjs} +2 -2
  26. package/dist/loader-C4kBBP8Q.mjs +1 -0
  27. package/dist/md-manager-BmiopEw3.mjs +2 -0
  28. package/dist/native/native-config.darwin-arm64.node +0 -0
  29. package/dist/native/native-config.darwin-x64.node +0 -0
  30. package/dist/native/native-config.linux-arm64-gnu.node +0 -0
  31. package/dist/native/native-config.linux-arm64-musl.node +0 -0
  32. package/dist/native/native-config.linux-x64-musl.node +0 -0
  33. package/dist/native/native-config.win32-arm64-msvc.node +0 -0
  34. package/dist/native/native-config.win32-x64-msvc.node +0 -0
  35. package/dist/{open-browser-BS9zcVt9.mjs → open-browser-Bjj7OZGh.mjs} +2 -2
  36. package/dist/parse-worker.mjs +1 -1
  37. package/dist/preview-Bw9x5ZVA.mjs +1 -0
  38. package/dist/{preview-CTKAOWbX.mjs → preview-Dvw6A4o_.mjs} +2 -2
  39. package/dist/public/assets/ActivityModeContent-UgHvlRfm.js +1 -0
  40. package/dist/public/assets/AddPropertiesButton-BDADcHDL.js +1 -0
  41. package/dist/public/assets/{AgentDiffPane-BoHib7V-.js → AgentDiffPane-ilX8XDNa.js} +1 -1
  42. package/dist/public/assets/{AgentThreadClientBinder-B6SCKpGN.js → AgentThreadClientBinder-sEhhcDlu.js} +1 -1
  43. package/dist/public/assets/{AppMenubar-8Yu49LrI.js → AppMenubar-D59NBp8t.js} +1 -1
  44. package/dist/public/assets/{BugReportHistory-BVQJb7PU.js → BugReportHistory-C-CVBV3l.js} +1 -1
  45. package/dist/public/assets/{BugReportHistoryDialog-_mgVzUpk.js → BugReportHistoryDialog-DHt-VFrA.js} +1 -1
  46. package/dist/public/assets/CodeMirrorPropInput-7DWVEyfk.js +3 -0
  47. package/dist/public/assets/{ConfigSharingInfoTooltip-Dz5-bsuu.js → ConfigSharingInfoTooltip-vG0lwpqt.js} +1 -1
  48. package/dist/public/assets/{ConsentDialogBody-BOStsOyA.js → ConsentDialogBody-BrU01-jw.js} +1 -1
  49. package/dist/public/assets/DiffView-DBOYN8TZ.js +3 -0
  50. package/dist/public/assets/DocumentContext-BIdKuiG7.js +38 -0
  51. package/dist/public/assets/EditorModeToggle-D6QnlYh6.js +1 -0
  52. package/dist/public/assets/{EnableSyncConfirmDialog-DLAT5Ood.js → EnableSyncConfirmDialog-AO57yzbd.js} +1 -1
  53. package/dist/public/assets/{ExcalidrawDocEditor-CO9dou3t.js → ExcalidrawDocEditor-Bam5rV4w.js} +1 -1
  54. package/dist/public/assets/FeedbackForm-CdHrYizt.js +1 -0
  55. package/dist/public/assets/{GraphPanel-fOz-MZ-A.js → GraphPanel-Dx93IooL.js} +2 -2
  56. package/dist/public/assets/ImportSkillDialog-DW6Z89kM.js +1 -0
  57. package/dist/public/assets/{LintConfigEditor-Ba4tOwrd.js → LintConfigEditor-BeI-xPUE.js} +1 -1
  58. package/dist/public/assets/ManagedArtifactProperties-B5LwwYXJ.js +1 -0
  59. package/dist/public/assets/ManagedArtifactProperties-BZO9kI8m.js +1 -0
  60. package/dist/public/assets/{McpConsentDialogBody-CwRVqAIu.js → McpConsentDialogBody-BhVT9dPx.js} +1 -1
  61. package/dist/public/assets/Mermaid-NYQ6RsUB.js +2 -0
  62. package/dist/public/assets/MermaidDocEditor-Cd89HPoy.js +1 -0
  63. package/dist/public/assets/{PropertyDisplayRow-Cu9Ln0I5.js → PropertyDisplayRow-CG8-hCCj.js} +2 -2
  64. package/dist/public/assets/{RegisteredAgentIcon-9IP3tgIz.js → RegisteredAgentIcon-D_jDwJpu.js} +1 -1
  65. package/dist/public/assets/{ReportBugDialogBody-DPbSt3db.js → ReportBugDialogBody-DBA0DIqE.js} +1 -1
  66. package/dist/public/assets/{SchemaConfigEditor-CpDc03Su.js → SchemaConfigEditor-DpFGHtSP.js} +1 -1
  67. package/dist/public/assets/SessionsHost-DlaikM-O.js +2 -0
  68. package/dist/public/assets/SettingsDialogBody-De-5QcmZ.js +12 -0
  69. package/dist/public/assets/{ShareBranchSwitchDialog-C_pVfS08.js → ShareBranchSwitchDialog-7Edp8Hzf.js} +1 -1
  70. package/dist/public/assets/{ShareReceiveDialog-f65F3P4j.js → ShareReceiveDialog-8IdsRTvy.js} +1 -1
  71. package/dist/public/assets/{ShareReceiveMissDialog-DBnTRDP2.js → ShareReceiveMissDialog-Mz-t9oAA.js} +1 -1
  72. package/dist/public/assets/SkillCostValue-Cku3M1db.js +1 -0
  73. package/dist/public/assets/{SkillEditBanner-19neNY4_.js → SkillEditBanner-BCy7jpzl.js} +1 -1
  74. package/dist/public/assets/SkillInstallMenu-BCHCe8z8.js +2 -0
  75. package/dist/public/assets/{SkillOriginInline-D2lLAD0d.js → SkillOriginInline-C1xgG8JC.js} +1 -1
  76. package/dist/public/assets/SkillToolbarControls-JpHel_UB.js +1 -0
  77. package/dist/public/assets/{SlidesToolbarControls-Le_49a2U.js → SlidesToolbarControls-BB3yJWH1.js} +1 -1
  78. package/dist/public/assets/SourceEditor-DNieshsS.js +1 -0
  79. package/dist/public/assets/{TerminalPanel-Bq3D2u2L.js → TerminalPanel-D9R7DZt8.js} +3 -3
  80. package/dist/public/assets/{TerminalWindowApp-Cs8TCoMa.js → TerminalWindowApp-BxE3Ym8E.js} +1 -1
  81. package/dist/public/assets/TextDocEditor-D8XWlX40.js +1 -0
  82. package/dist/public/assets/{ThemePicker-Cfu6jytm.js → ThemePicker-BEO3X5aw.js} +1 -1
  83. package/dist/public/assets/ThreadView-69VZaOlR.js +14 -0
  84. package/dist/public/assets/{TimelineDiffPane-D7Dq5YL_.js → TimelineDiffPane-C3vnfLo5.js} +1 -1
  85. package/dist/public/assets/{agent-diff-store-DjDBy7Vi.js → agent-diff-store-BhRxu1mZ.js} +1 -1
  86. package/dist/public/assets/alert-dialog-C8E8SkhJ.js +7 -0
  87. package/dist/public/assets/arrow-up-right-CXMA4cr5.js +1 -0
  88. package/dist/public/assets/auth-state-cache-DBv0mprN.js +11 -0
  89. package/dist/public/assets/{braces-CDKuh9KW.js → braces-okUwnkYm.js} +1 -1
  90. package/dist/public/assets/{bug-report-send-manager-C7ZQagFv.js → bug-report-send-manager-Bh0TzGvX.js} +1 -1
  91. package/dist/public/assets/{calendar-BfB8lsjW.js → calendar-C_32W35y.js} +1 -1
  92. package/dist/public/assets/{case-sensitive-BRpV9t7A.js → case-sensitive-B9mhUnHr.js} +1 -1
  93. package/dist/public/assets/check-Bzwwm-o4.js +1 -0
  94. package/dist/public/assets/{checkbox-DF_QVto8.js → checkbox-Bi7zk4c5.js} +1 -1
  95. package/dist/public/assets/{chevron-down-DT2zmBir.js → chevron-down-xENV92Te.js} +1 -1
  96. package/dist/public/assets/chevron-left-B1wYSm9K.js +1 -0
  97. package/dist/public/assets/chevron-right-BVvjaUfh.js +1 -0
  98. package/dist/public/assets/{circle-alert-CuO28qX3.js → circle-alert-CKGYtHdt.js} +1 -1
  99. package/dist/public/assets/client-version-Qo8hmlER.js +1 -0
  100. package/dist/public/assets/{cm-theme-CundV4JI.js → cm-theme-CqnwWjn0.js} +1 -1
  101. package/dist/public/assets/{comment-chips-Df5Rd0T0.js → comment-chips-C2rVq4II.js} +1 -1
  102. package/dist/public/assets/{config-provider-BEdlvRi2.js → config-provider-D-IaOGA6.js} +4 -4
  103. package/dist/public/assets/dialog-BH80AfFt.js +5 -0
  104. package/dist/public/assets/{dist-BkdK7CJv.js → dist--D6RzOfD.js} +1 -1
  105. package/dist/public/assets/dist-1N70TEoy2.js +1 -0
  106. package/dist/public/assets/{dist-DpEQ7fP3.js → dist-CFs5UHD5.js} +1 -1
  107. package/dist/public/assets/{dist-ZzZDT_qa.js → dist-CLS9aKf7.js} +1 -1
  108. package/dist/public/assets/{dist-42PGOjVE.js → dist-CPvLRdmt.js} +1 -1
  109. package/dist/public/assets/{dist-q2W-QRsN.js → dist-D8CXqbDc2.js} +1 -1
  110. package/dist/public/assets/{dist-0WeLsvey2.js → dist-DvxceSuh2.js} +145 -145
  111. package/dist/public/assets/{dist-Dvx6OW-b.js → dist-DxgTfwGf.js} +1 -1
  112. package/dist/public/assets/{dist-Cxi87QtK.js → dist-awmOdYf0.js} +1 -1
  113. package/dist/public/assets/{dist-CbJimssg.js → dist-cQHiWmQq.js} +1 -1
  114. package/dist/public/assets/{dist-DfNDNysF.js → dist-ezYezphN.js} +1 -1
  115. package/dist/public/assets/{dist-Dln1RION.js → dist-tUuSMxU2.js} +1 -1
  116. package/dist/public/assets/{dist-BDokCQTT.js → dist-yHiImJTb.js} +1 -1
  117. package/dist/public/assets/doc-paths-Ci9V3GJP.js +1 -0
  118. package/dist/public/assets/{documents-events-Bswa3218.js → documents-events-KFNF8M1t.js} +1 -1
  119. package/dist/public/assets/{download-BDEHPw74.js → download-Bdmlj4Jo.js} +1 -1
  120. package/dist/public/assets/dropdown-menu-BpLbh79a.js +1 -0
  121. package/dist/public/assets/{eye-CXNadRZD.js → eye-DIJifYDY.js} +1 -1
  122. package/dist/public/assets/{field-DiGsul30.js → field-CtUgODi9.js} +1 -1
  123. package/dist/public/assets/file-tree-adapter-BsjkSG-e.js +1 -0
  124. package/dist/public/assets/{file-tree-utils-BQSHH47w.js → file-tree-utils-Ds7HkJwf.js} +1 -1
  125. package/dist/public/assets/{folder-config-api-3OH-7XRq.js → folder-config-api-BWqau0tQ.js} +1 -1
  126. package/dist/public/assets/{folder-open-Dokmmg9C.js → folder-open-5aQb9yif.js} +1 -1
  127. package/dist/public/assets/{git-branch-C3seqxdn.js → git-branch-BEl3Boky.js} +1 -1
  128. package/dist/public/assets/globals-CicL60No.css +1 -0
  129. package/dist/public/assets/{hash-CXbTGfZC.js → hash-26j3E552.js} +1 -1
  130. package/dist/public/assets/{history-CPr-xzs6.js → history-BteF85_l.js} +1 -1
  131. package/dist/public/assets/i18n-k3aI0GNV.js +1 -0
  132. package/dist/public/assets/index-CSzWQRes.js +2196 -0
  133. package/dist/public/assets/{info-DIn-MtiX.js → info-CqQMSCez.js} +1 -1
  134. package/dist/public/assets/{input-group-ChHhVUP_.js → input-group-BG4x9Co0.js} +1 -1
  135. package/dist/public/assets/{lint-config-client-B_Zy2yNf.js → lint-config-client-Dv_IZf02.js} +1 -1
  136. package/dist/public/assets/{lint-plugin-meta-AbruPv8_.js → lint-plugin-meta-C15NfeTq.js} +1 -1
  137. package/dist/public/assets/{list-plus-Lm4FbPM9.js → list-plus-1_iMFVqs.js} +1 -1
  138. package/dist/public/assets/local-menu-action-bus-BuSRFm5g.js +1 -0
  139. package/dist/public/assets/{markdownlint-rule-browser-hy-0vwkM.js → markdownlint-rule-browser-B8m3JJ8Y.js} +1 -1
  140. package/dist/public/assets/messages-B0BMmqnn.js +1 -0
  141. package/dist/public/assets/messages-B5c6YyNP.js +1 -0
  142. package/dist/public/assets/messages-BzE-c_Uj.js +1 -0
  143. package/dist/public/assets/messages-CNojGJ24.js +1 -0
  144. package/dist/public/assets/messages-CPhl6p5K.js +1 -0
  145. package/dist/public/assets/messages-CUIoZBqe.js +1 -0
  146. package/dist/public/assets/messages-Cw1qxDcG.js +1 -0
  147. package/dist/public/assets/messages-D2PtImxe.js +1 -0
  148. package/dist/public/assets/messages-DEYBrYWV.js +1 -0
  149. package/dist/public/assets/messages-DPi-3ors.js +1 -0
  150. package/dist/public/assets/messages-FV0LJygj.js +1 -0
  151. package/dist/public/assets/messages-bf96uLMn.js +1 -0
  152. package/dist/public/assets/minus-HJRULrSt.js +1 -0
  153. package/dist/public/assets/{miss-dialog-store-0sg4whjI.js → miss-dialog-store-CdkrAlK3.js} +1 -1
  154. package/dist/public/assets/note-window-mode-J_lykVfh.js +1 -0
  155. package/dist/public/assets/{ok-7HU1xjtN.js → ok-D3euoYhD.js} +1 -1
  156. package/dist/public/assets/package-BuoPO9EK.js +1 -0
  157. package/dist/public/assets/page-list-cache-DeM2R6LV.js +1 -0
  158. package/dist/public/assets/{panel-right-open-6pbxqqMD.js → panel-right-open-BXE3r3dB.js} +1 -1
  159. package/dist/public/assets/{paperclip-C6Bt4Kir.js → paperclip-C-okgtwN.js} +1 -1
  160. package/dist/public/assets/{pending-receive-nav-store--uA_Ttz1.js → pending-receive-nav-store-BVpMc8JM.js} +1 -1
  161. package/dist/public/assets/progress-BA2juWmV.js +9 -0
  162. package/dist/public/assets/{project-paths-Be5oNlgO.js → project-paths-DFtdLgxL.js} +1 -1
  163. package/dist/public/assets/prop-types-CCaA1wTK.js +1 -0
  164. package/dist/public/assets/{receive-store-wRD2KuhC.js → receive-store-8SCgMS8t.js} +1 -1
  165. package/dist/public/assets/{refresh-cw-CMZXURW4.js → refresh-cw-D41gUk_B.js} +1 -1
  166. package/dist/public/assets/{select-CErmRiOd.js → select-fWSYgcDA.js} +1 -1
  167. package/dist/public/assets/{selection-context-_FFqOhZk.js → selection-context-zszi1QFC.js} +1 -1
  168. package/dist/public/assets/{separator-DcX0NiAC.js → separator-BmK42_9U.js} +1 -1
  169. package/dist/public/assets/skill-scope-BuVzIUXk.js +1 -0
  170. package/dist/public/assets/skills-api-Dep6MiKT.js +1 -0
  171. package/dist/public/assets/{spinner-BfQfD3gf.js → spinner-DmibE6UV.js} +1 -1
  172. package/dist/public/assets/{square-pen-zbdpw5xR.js → square-pen-BlKNuUz7.js} +1 -1
  173. package/dist/public/assets/{src-CTOqSJUC.js → src-BSLRefUx.js} +1 -1
  174. package/dist/public/assets/{tag-pill-input-lRng_LCn.js → tag-pill-input-CQS5NOhF.js} +1 -1
  175. package/dist/public/assets/target-navigation-intent-pKpCjs2S.js +1 -0
  176. package/dist/public/assets/{telemetry-startup-DjnediLY.js → telemetry-startup-DPx9iYCc.js} +1 -1
  177. package/dist/public/assets/terminal-CmHqE3At.js +1 -0
  178. package/dist/public/assets/{terminal-cli-display-DtlGtdop.js → terminal-cli-display-HlY8wnKB.js} +1 -1
  179. package/dist/public/assets/{terminal-launch-events-BAi370wJ.js → terminal-launch-events-DF6gr1Aw.js} +1 -1
  180. package/dist/public/assets/{terminal-telemetry-v1o4QDEL.js → terminal-telemetry-DIQemiSP.js} +1 -1
  181. package/dist/public/assets/{text-viewer-languages-8mK7FOb6.js → text-viewer-languages-D1G0H8jz.js} +2 -2
  182. package/dist/public/assets/{trash-2-DfA0xAM7.js → trash-2-BVoWHmfV.js} +1 -1
  183. package/dist/public/assets/{triangle-alert-LClCSvEK.js → triangle-alert-CJVfCxE0.js} +1 -1
  184. package/dist/public/assets/typing-burst-detector-DIEPcqLu.js +8 -0
  185. package/dist/public/assets/{undo-2-D0RXWwCv.js → undo-2-CXHp9Ngg.js} +1 -1
  186. package/dist/public/assets/{uninstall-ZkNjYQIp.js → uninstall-hrTOWrpH.js} +1 -1
  187. package/dist/public/assets/{use-activity-panel-BEIbg3tr.js → use-activity-panel-DmQb6ftt.js} +1 -1
  188. package/dist/public/assets/{use-apply-config-color-theme-UfawtLYp.js → use-apply-config-color-theme-CgQvQTC8.js} +1 -1
  189. package/dist/public/assets/{use-collab-url-DqLs_I38.js → use-collab-url-D-KUuG97.js} +1 -1
  190. package/dist/public/assets/{use-live-xterm-theme-yIlEKfu7.js → use-live-xterm-theme-9u7r8aAP.js} +1 -1
  191. package/dist/public/assets/use-open-skill-DPLvxchh.js +1 -0
  192. package/dist/public/assets/{use-settings-route-Lf1FP1Sa.js → use-settings-route-DVQFDRof.js} +1 -1
  193. package/dist/public/assets/use-skill-origin-R1sRvauo.js +1 -0
  194. package/dist/public/assets/use-skills-DAq8jAZe.js +1 -0
  195. package/dist/public/assets/{use-terminal-enabled-er2JoZ-A.js → use-terminal-enabled-Dr8J6UFC.js} +1 -1
  196. package/dist/public/assets/use-timeline-entry-diff--6rU6lJA.js +6 -0
  197. package/dist/public/assets/{use-workspace-BZqaUk-j.js → use-workspace-CmQoGWbG.js} +1 -1
  198. package/dist/public/assets/{wrench-Bx808FyC.js → wrench-JX3g_hHJ.js} +1 -1
  199. package/dist/public/assets/x-wQUDJS55.js +1 -0
  200. package/dist/public/index.html +132 -132
  201. package/dist/public/uninstall.html +14 -14
  202. package/dist/{repair-launch-json-DgqIQIOF.mjs → repair-launch-json-HOcUsTIc.mjs} +2 -2
  203. package/dist/{repair-mcp-configs-DsLiavE4.mjs → repair-mcp-configs-CV_5-AyG.mjs} +2 -2
  204. package/dist/{repair-skills-DIq6H0KE.mjs → repair-skills-Dem7BC1X.mjs} +2 -2
  205. package/dist/repair-skills-T5QwtV-L.mjs +1 -0
  206. package/dist/{resolve-project-root-BjH69ZD8.mjs → resolve-project-root-D42xTuDS.mjs} +4 -4
  207. package/dist/schemas/v0/config.project-local.schema.json +21 -0
  208. package/dist/schemas/v0/config.user.schema.json +18 -0
  209. package/dist/server-lock-BIFxlKM5.mjs +1 -0
  210. package/dist/{server-lock-RKPNHNqb.mjs → server-lock-DgBmHnv3.mjs} +2 -2
  211. package/dist/{skill-teardown-C_JJAnAZ.mjs → skill-teardown-R_4ZT4ie.mjs} +2 -2
  212. package/dist/{sleep-DhRrtbfG.mjs → sleep-D4NlDISj.mjs} +2 -2
  213. package/dist/src-B51qQNNF.mjs +2029 -0
  214. package/dist/src-BDiA4a2R.mjs +20 -0
  215. package/dist/{src-BD1wHyiU.mjs → src-CWk71iRz.mjs} +127 -127
  216. package/dist/src-DXorWxxl.mjs +1 -0
  217. package/dist/src-DYP_-J_-.mjs +1 -0
  218. package/dist/start-CbjI-fRE.mjs +1 -0
  219. package/dist/{start-DFHJtxzc.mjs → start-kzCrMDfY.mjs} +3 -3
  220. package/dist/yazl-BwMlCqRQ.mjs +1 -0
  221. package/dist/{yazl-DZr4PyKA.mjs → yazl-DejPO9b3.mjs} +1 -1
  222. package/package.json +5 -5
  223. package/dist/constants-gwiR1AXZ.mjs +0 -2
  224. package/dist/fs-traced-DjggEXdh.mjs +0 -1
  225. package/dist/git-handle-DaYxKcxM.mjs +0 -1
  226. package/dist/init-768uKYVu.mjs +0 -1
  227. package/dist/loader-CXbb_RbT.mjs +0 -1
  228. package/dist/md-manager-_lKMHY2F.mjs +0 -2
  229. package/dist/preview-B9kGxHb1.mjs +0 -1
  230. package/dist/public/assets/ActivityModeContent-dydHORCJ.js +0 -1
  231. package/dist/public/assets/CodeMirrorPropInput-C4Sgk7Nu.js +0 -3
  232. package/dist/public/assets/DiffView-DI7cYNCJ.js +0 -3
  233. package/dist/public/assets/DocumentContext-BRyLZId_.js +0 -38
  234. package/dist/public/assets/EditorModeToggle-9eGLVUIm.js +0 -1
  235. package/dist/public/assets/FeedbackForm-BugXqXA0.js +0 -1
  236. package/dist/public/assets/ImportSkillDialog-Byz6Z1dj.js +0 -1
  237. package/dist/public/assets/ManagedArtifactProperties-Chh3WUTQ.js +0 -1
  238. package/dist/public/assets/ManagedArtifactProperties-FdkUWPgB.js +0 -1
  239. package/dist/public/assets/Mermaid-C8sqPdnq.js +0 -2
  240. package/dist/public/assets/MermaidDocEditor-D3_VxruW.js +0 -1
  241. package/dist/public/assets/SessionsHost-CjAX0WAW.js +0 -2
  242. package/dist/public/assets/SettingsDialogBody-BeLZ_5xC.js +0 -13
  243. package/dist/public/assets/SkillCostValue-C2xg3KQR.js +0 -1
  244. package/dist/public/assets/SkillInstallMenu-CDr2JYhu.js +0 -2
  245. package/dist/public/assets/SkillToolbarControls-CTxnGRS8.js +0 -1
  246. package/dist/public/assets/SourceEditor-CzJ30keY.js +0 -1
  247. package/dist/public/assets/TextDocEditor-ygMtgeY7.js +0 -1
  248. package/dist/public/assets/ThreadView-B6lIZKv1.js +0 -14
  249. package/dist/public/assets/alert-dialog-D3_HT0Lf.js +0 -7
  250. package/dist/public/assets/arrow-up-right-BD5rQrDA.js +0 -1
  251. package/dist/public/assets/auth-state-cache-rHmLBb9X.js +0 -11
  252. package/dist/public/assets/check-DDzb-wrU.js +0 -1
  253. package/dist/public/assets/chevron-left-7MFpt77_.js +0 -1
  254. package/dist/public/assets/chevron-right-D8IV-Ph_.js +0 -1
  255. package/dist/public/assets/client-version-C04OLNen.js +0 -1
  256. package/dist/public/assets/dialog-CeTXzamA.js +0 -5
  257. package/dist/public/assets/dist-CmGSr9O-.js +0 -1
  258. package/dist/public/assets/doc-paths-CiuwB0oU.js +0 -1
  259. package/dist/public/assets/dropdown-menu-C8skJt-Y.js +0 -1
  260. package/dist/public/assets/file-tree-adapter-B4qIw1fG.js +0 -1
  261. package/dist/public/assets/globals-Cm0uoqGd.css +0 -1
  262. package/dist/public/assets/i18n-D6RCXg6s.js +0 -1
  263. package/dist/public/assets/index-vrkBhpz7.js +0 -2098
  264. package/dist/public/assets/known-skill-dirs-BXzevfAU.js +0 -1
  265. package/dist/public/assets/local-menu-action-bus-IjTSMx8U.js +0 -1
  266. package/dist/public/assets/messages-9jq2H0Oi.js +0 -1
  267. package/dist/public/assets/messages-Bx_f87sx.js +0 -1
  268. package/dist/public/assets/messages-C3miiMeN.js +0 -1
  269. package/dist/public/assets/messages-CDKiFfjp.js +0 -1
  270. package/dist/public/assets/messages-DVwDXAsF.js +0 -1
  271. package/dist/public/assets/messages-Dk8a17Y8.js +0 -1
  272. package/dist/public/assets/messages-DkwLrsWG.js +0 -1
  273. package/dist/public/assets/messages-DqR117DY.js +0 -1
  274. package/dist/public/assets/messages-QUjY9svp.js +0 -1
  275. package/dist/public/assets/messages-WUH3Y5VP.js +0 -1
  276. package/dist/public/assets/messages-dHZujidV.js +0 -1
  277. package/dist/public/assets/messages-xF0EOnP_.js +0 -1
  278. package/dist/public/assets/minus-zMlnd3qf.js +0 -1
  279. package/dist/public/assets/navigation-targets-Df3QXcjS.js +0 -1
  280. package/dist/public/assets/open-managed-artifact-tab-DLCGOaFC.js +0 -1
  281. package/dist/public/assets/progress-BCKE1cPj.js +0 -9
  282. package/dist/public/assets/prop-types-NQri49lM.js +0 -1
  283. package/dist/public/assets/skill-actions-BP-CCkh4.js +0 -1
  284. package/dist/public/assets/skill-scope-CAVgRNo8.js +0 -1
  285. package/dist/public/assets/skills-api-BmxNOfQ0.js +0 -1
  286. package/dist/public/assets/target-navigation-intent-BuGWbfE1.js +0 -1
  287. package/dist/public/assets/terminal-4WK7jXvy.js +0 -1
  288. package/dist/public/assets/typing-burst-detector-ZpjfAtrw.js +0 -8
  289. package/dist/public/assets/use-open-skill-5vxsvMFg.js +0 -1
  290. package/dist/public/assets/use-popular-skills-CrLiCM00.js +0 -1
  291. package/dist/public/assets/use-skill-origin-CvIMw2zJ.js +0 -1
  292. package/dist/public/assets/use-timeline-entry-diff-BI2FRiaG.js +0 -6
  293. package/dist/public/assets/x-C1LzPj_K.js +0 -1
  294. package/dist/repair-skills-D2u8xMCO.mjs +0 -1
  295. package/dist/server-lock-BZi8m82Z.mjs +0 -1
  296. package/dist/src-B_6tF_Gx.mjs +0 -2029
  297. package/dist/src-CNzlP6PP.mjs +0 -1
  298. package/dist/src-D9PIQWsr.mjs +0 -1
  299. package/dist/src-DL44CZGU.mjs +0 -20
  300. package/dist/start-BADrSNko.mjs +0 -1
  301. package/dist/yazl-jVENrf5i.mjs +0 -1
  302. /package/dist/public/assets/{asset-dispatch-BffGDRYN.js → asset-dispatch-CD6rGcnF.js} +0 -0
  303. /package/dist/public/assets/{auth-prompt-store-BXeyTyYx.js → auth-prompt-store-vAFATIFt.js} +0 -0
  304. /package/dist/public/assets/{badge-Bb7mpvxU.js → badge-DGD9B_-e.js} +0 -0
  305. /package/dist/public/assets/{copilot-BvcrBiQu.js → copilot-DMpTxujg.js} +0 -0
  306. /package/dist/public/assets/{createLucideIcon-IawHI4re.js → createLucideIcon-CAkY8Blx.js} +0 -0
  307. /package/dist/public/assets/{cursor-Dy0g2caC.js → cursor-2VSK5BUh.js} +0 -0
  308. /package/dist/public/assets/{dist-BL2TNIf3.js → dist-EbTHn-HD.js} +0 -0
  309. /package/dist/public/assets/{documents-fetch-DMG54QRV.js → documents-fetch-Bw4lKnRN.js} +0 -0
  310. /package/dist/public/assets/{external-link-CxH7AG7J.js → external-link-DGqXfQJy.js} +0 -0
  311. /package/dist/public/assets/{file-tree-rename-validation-MFhw33W7.js → file-tree-rename-validation-DmGgIR2S.js} +0 -0
  312. /package/dist/public/assets/{format-CWkG0foI.js → format-CyaLi0or.js} +0 -0
  313. /package/dist/public/assets/{globals-CKGGll07.js → globals-BuKzWnho.js} +0 -0
  314. /package/dist/public/assets/{input-I1Mvaow8.js → input-Cy2M_Avq.js} +0 -0
  315. /package/dist/public/assets/{panel-Do94xfkL.js → panel-DNPki55m.js} +0 -0
  316. /package/dist/public/assets/{parse-api-error-RlJ5hnUA.js → parse-api-error-DcnXKbfT.js} +0 -0
  317. /package/dist/public/assets/{platform-labels-a3gk_AS8.js → platform-labels-CTgi7sF6.js} +0 -0
  318. /package/dist/public/assets/{popover-Rvl_AsUU.js → popover-DAe-_3rj.js} +0 -0
  319. /package/dist/public/assets/{skeleton-DIxLroLR.js → skeleton-BZIHOzZH.js} +0 -0
  320. /package/dist/public/assets/{sortable.esm-DVUoPZjJ.js → sortable.esm-DK-jMveF.js} +0 -0
  321. /package/dist/public/assets/{startup-marks-CzkHuO_z.js → startup-marks-BYurBbnW.js} +0 -0
  322. /package/dist/public/assets/{stex-D2L90EPe.js → stex-s_JxeNEZ.js} +0 -0
  323. /package/dist/public/assets/{textarea-BtqZ3yY1.js → textarea-BoMa_3jF.js} +0 -0
  324. /package/dist/public/assets/{timeline-diff-store-BaXPeva3.js → timeline-diff-store-ym5Oz1UF.js} +0 -0
  325. /package/dist/public/assets/{tool-list-format-BjLHl4sC.js → tool-list-format-CC-FRU0G.js} +0 -0
  326. /package/dist/public/assets/{use-apply-config-theme-yjXI2GwT.js → use-apply-config-theme-B1eLRQeV.js} +0 -0
  327. /package/dist/public/assets/{use-installed-clis-vg6izNL9.js → use-installed-clis-t29XGX_x.js} +0 -0
  328. /package/dist/public/assets/{workspace-paths-BKo6L6w1.js → workspace-paths-CD0W1etA.js} +0 -0
@@ -1 +0,0 @@
1
- import{Ac as e,Hs as t,Ts as n,U as r,Ws as i,ec as a,q as o,ws as s,x as c,xs as l,y as u}from"./src-BD1wHyiU.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,Ar as y,At as b,B as x,Bi as S,Bn as C,Br as w,Bt as T,C as E,Ca as D,Ci as O,Cn as k,Cr as A,Ct as j,D as M,Da as N,Di as P,Dn as F,Dr as I,Dt as L,E as R,Ea as z,Ei as B,En as V,Er as H,Et as U,F as W,Fi as G,Fn as K,Ft as q,G as J,Gi as Y,Gn as X,Gr as Z,Gt as Q,H as $,Hi as ee,Hn as te,Hr as ne,Ht as re,I as ie,Ii as ae,In as oe,It as se,J as ce,Ji as le,Jn as ue,Jr as de,Jt as fe,K as pe,Ki as me,Kn as he,Kr as ge,Kt as _e,L as ve,Li as ye,Ln as be,Lt as xe,M as Se,Mi as Ce,Mn as we,Mr as Te,Mt as Ee,N as De,Ni as Oe,Nn as ke,Nt as Ae,O as je,Oa as Me,Oi as Ne,On as Pe,Or as Fe,Ot as Ie,P as Le,Pi as Re,Pn as ze,Pt as Be,Q as Ve,Qi as He,Qn as Ue,Qr as We,Qt as Ge,R as Ke,Ri as qe,Rn as Je,Rr as Ye,Rt as Xe,S as Ze,Sa as Qe,Si as $e,Sn as et,Sr as tt,St as nt,T as rt,Ta as it,Ti as at,Tn as ot,Tr as st,Tt as ct,U as lt,Ui as ut,Un as dt,Ur as ft,Ut as pt,V as mt,Vi as ht,Vn as gt,Vr as _t,Vt as vt,W as yt,Wi as bt,Wn as xt,Wr as St,Wt as Ct,X as wt,Xi as Tt,Xn as Et,Xr as Dt,Xt as Ot,Y as kt,Yi as At,Yn as jt,Yr as Mt,Yt as Nt,Z as Pt,Zi as Ft,Zn as It,Zr as Lt,Zt as Rt,_ as zt,_a as Bt,_n as Vt,_r as Ht,a as Ut,aa as Wt,ai as Gt,an as Kt,ar as qt,at as Jt,b as Yt,ba as Xt,bi as Zt,bn as Qt,br as $t,bt as en,c as tn,ca as nn,ci as rn,cn as an,cr as on,ct as sn,d as cn,da as ln,di as un,dn,dr as fn,dt as pn,ea as mn,ei as hn,en as gn,er as _n,et as vn,f as yn,fa as bn,fi as xn,fn as Sn,fr as Cn,g as wn,ga as Tn,gi as En,gn as Dn,gr as On,h as kn,ha as An,hi as jn,hn as Mn,hr as Nn,i as Pn,ia as Fn,ii as In,in as Ln,ir as Rn,it as zn,j as Bn,ji as Vn,jn as Hn,jr as Un,jt as Wn,k as Gn,ki as Kn,kn as qn,kr as Jn,kt as Yn,l as Xn,la as Zn,li as Qn,ln as $n,lr as er,lt as tr,m as nr,ma as rr,mi as ir,mn as ar,mr as or,n as sr,na as cr,ni as lr,nn as ur,nr as dr,nt as fr,o as pr,oa as mr,oi as hr,on as gr,or as _r,ot as vr,p as yr,pa as br,pi as xr,pn as Sr,pr as Cr,q as wr,qi as Tr,qn as Er,qr as Dr,qt as Or,r as kr,ra as Ar,ri as jr,rn as Mr,rr as Nr,rt as Pr,s as Fr,sa as Ir,si as Lr,sn as Rr,sr as zr,st as Br,t as Vr,ta as Hr,ti as Ur,tn as Wr,tr as Gr,tt as Kr,u as qr,ua as Jr,ui as Yr,un as Xr,ur as Zr,ut as Qr,v as $r,va as ei,vi as ti,vn as ni,vr as ri,vt as ii,w as ai,wa as oi,wi as si,wn as ci,wr as li,wt as ui,x as di,xa as fi,xi as pi,xn as mi,xr as hi,xt as gi,y as _i,ya as vi,yi,yn as bi,yr as xi,yt as Si,z as Ci,zi as wi,zn as Ti,zr as Ei,zt as Di}from"./src-B_6tF_Gx.mjs";import{C as Oi,E as ki,T as Ai,_ as ji,b as Mi,c as Ni,d as Pi,g as Fi,i as Ii,l as Li,m as Ri,n as zi,p as Bi,s as Vi,t as Hi,u as Ui,v as Wi,w as Gi,x as Ki,y as qi}from"./fs-traced-2B_-YK-g.mjs";import{a as Ji,d as Yi,f as Xi,i as Zi,l as Qi,n as $i,r as ea,t as ta,u as na}from"./logger-Dq-cRhcP.mjs";import{C as ra,S as ia,_ as aa,a as oa,b as sa,c as ca,d as la,f as ua,g as da,h as fa,i as pa,l as ma,m as ha,n as ga,o as _a,p as va,r as ya,s as ba,t as xa,u as Sa,x as Ca}from"./server-lock-RKPNHNqb.mjs";export{vi as AGENT_ID_MAX_LEN,Xt as AGENT_ID_RE,G as AGENT_WRITE_ORIGIN,z as AcpPermissionStore,D as AcpRegistry,pi as AcpThreadManager,yi as AgentFocusBroadcaster,ti as AgentPresenceBroadcaster,ae as AgentSessionCapacityError,ye as AgentSessionManager,Si as AutoStartDisabledError,Ht as BUNDLE_IDS,ri as BUNDLE_SCOPE,xi as BUNDLE_SKILL_NAME,Et as BacklinkIndex,Tr as CC1Broadcaster,i as CC1_CONTRACT_VERSION,gr as CONFIG_FILENAME,xt as CONFLICT_MARKER_RE,w as CURSOR_BUNDLE_PATHS_BY_PLATFORM,_i as ConfigSchema,f as DEFAULT_CHECKPOINT_RETENTION,In as DEFAULT_EMBEDDINGS_DIMENSIONS,Di as DEFAULT_PACK_ID,lt as DocumentDurabilityState,Gt as EMBEDDINGS_API_KEY_ENV,Vr as EPHEMERAL_PROJECT_DIR_PREFIX,ni as ExposureConsentError,oi as FEATURED_AGENT_IDS,mn as FILE_SYSTEM_WRITER,ue as FILE_WATCHER_ORIGIN,We as FileEmbeddingsBackend,Wr as GIT_PREFLIGHT_FAIL_SPAN_NAME,Hr as GIT_UPSTREAM_WRITER,N as GitDirAccessError,B as GitNotAvailableError,P as GitTooOldError,en as HOCUSPOCUS_AUTH_REJECTION_REASONS,gi as HocuspocusAuthRejection,nt as HocuspocusAuthTokenSchema,ar as HomeProjectRootError,ge as INSTALLED_AGENTS_SCHEMES,Qr as JSON_SCHEMA_DIALECT_2020_12,t as LINEAGE_EPOCH_KEY,x as LIVE_DERIVED_INDEX_DEBOUNCE_MS,T as LOG_MD_TEMPLATE,Yn as MANAGED_RENAME_ORIGIN,$e as MAX_ACP_THREADS,qe as MAX_AGENT_SESSIONS,si as MCP_CONNECTION_ID_HEADER,l as MCP_SERVER_NAME,wi as MIN_EVICTABLE_IDLE_MS,Ne as MIN_GIT_VERSION,yt as MISSING_OK_CONFIG_MESSAGE,Me as MalformedGitPointerError,fr as McpLogger,J as MissingOkConfigError,ht as OBSERVER_SYNC_ORIGIN,Rr as OK_OKIGNORE_TEMPLATE,$t as ONBOARDING_BUNDLE_IDS,s as ORPHAN_MODES,e as PROTOCOL_VERSION,ta as PinoLogger,ma as ProcessLockCollisionError,cn as ProjectGitInitError,b as ROLLBACK_ORIGIN,an as ROOT_GITIGNORE_TEMPLATE,sa as RUNTIME_VERSION,cr as SERVICE_WRITER,Cn as SKILL_INSTALL_EVENTS_FILE_REL,r as SKILL_STATE_TARGETS,vt as STARTER_FOLDERS,re as STARTER_FOLDER_FRONTMATTER_FILENAME,pt as STARTER_PACKS,Ct as STARTER_PACK_IDS,Q as STARTER_TEMPLATES,M as STATE_MANIFEST_FILENAME,Ca as STATE_SCHEMA_VERSION,a as SYSTEM_DOC_NAME,Rt as SeedPrerequisiteError,Ge as SeedRootDirError,xa as ServerLockCollisionError,sr as SingleFileNotAFileError,kr as SingleFileNotFoundError,Pn as SingleFileNotMarkdownError,je as StateManifestError,jt as TagIndex,hi as USER_GLOBAL_BUNDLE_IDS,Wn as __getShowAllWalkStatsForTesting,Ee as __resetShowAllWalkStatsForTesting,Sa as acquireProcessLock,ga as acquireServerLock,S as applyAgentMarkdownWrite,te as applyExternalChange,Xe as applySeed,Gn as assertCompatibleStateManifest,Kn as assertGitAvailable,v as assertNeverDiskEvent,Mn as assertNotHomeProjectRoot,Zt as attachAcpThreadSocket,ii as attachIdleShutdown,Yt as bootServer,Ue as buildAndOpenSkill,$n as buildConfigYmlContent,Pt as buildExecResult,bi as buildIngressPolicy,O as buildOkMcpStdioCommand,or as buildSkillZip,_e as buildStarterFolderFrontmatterYaml,Ar as buildWipTree,tt as bundleSkillMdPath,m as canonicalProjectKey,Dn as canonicalizeForCompare,Hn as classifyEvents,Hi as classifyFsPath,hn as clearAllEmbeddingsKeys,Lr as clearContributors,Or as coercePackId,u as colorFromSeed,Fn as commitUpstreamImport,Wt as commitWip,mr as commitWipFromTree,_ as compareSemver,st as composeEffectiveLinterConfig,H as composeFrontmatterSchemasConfig,X as containsConflictMarkers,we as contentHash,rn as contributorCount,ie as countShadowObjects,ve as countStaleAgentWipRefs,Ke as countWipRefs,Ae as createApiExtension,Ie as createAssetServeMiddleware,wr as createCollaborationHost,Ye as createContentFilter,Ei as createContentFilterAsync,Ur as createEmbeddingsSecretStore,Ut as createEphemeralProjectDir,dt as createExternalChangeHandler,nr as createFileLogger,mt as createLiveDerivedIndexExtension,kt as createMcpHttpHandler,Dr as createOsProbe,W as createPersistenceExtension,rt as createServer,De as createServerObserverExtension,bt as createStreamingErrorWriter,$i as createTestLogger,lr as describeStoredEmbeddingsKey,$r as detectClaudeDesktopPresence,Vn as detectGit,g as detectProjectShape,p as detectUserSkillHosts,Jt as discoverLockDirs,Jn as discoverMarkdownlintConfig,ur as emitPreflightFailureSpan,Ve as encodeDocName,d as encodeFolderRoute,vn as encodeSkillRoute,yn as ensureProjectGit,Xr as ensureProjectSkillGitignore,Y as errorResponse,ke as evictStaleTrackerEntries,Be as extractHeadings,vr as extractOkBinaryPath,It as extractWikiLinksFromMarkdown,Ce as fallbackPaths,yr as findEnclosingGitRoot,Pe as findEnclosingProjectRoot,y as findNativeMarkdownlintFile,kn as flushFileLogger,j as formatAuthRejectionWire,Qn as formatContributors,Yr as formatContributorsFrom,se as formatPackRationale,Ir as gcCheckpointRefs,Pr as getCurrentMcpLogger,Qt as getIngressContext,ir as getLocalDir,wn as getLogFilePath,ea as getLogger,zt as getLogsDir,aa as getMachineId,qi as getMeter,rr as getMetrics,Mi as getTracer,An as handleCollabSocketError,_t as handleSpawnCursor,mi as hasForwardingHeaders,Ci as hasGcLogLatch,c as iconFromClientName,Tn as incrementCollabSocketFilteredError,Bt as incrementServerObserverFire,dn as initContent,nn as initShadowRepo,Ki as initTelemetry,Ze as initToleranceTelemetryWriter,pn as installJsonSchemaDialect,tr as installPrettyZodErrors,Zi as installTestLoggers,_n as installUserSkill,F as isAllowedApiOrigin,ot as isAllowedWorkspaceHostHeader,le as isConfigDoc,ui as isHocuspocusAuthRejectionReason,Vt as isHomeDir,et as isHostAdmitted,fe as isKnownPackId,At as isLinkIndexExcludedDoc,V as isLoopbackAddress,Tt as isManagedArtifactDoc,k as isOriginAdmitted,n as isOrphanMode,ee as isPairedWriteOrigin,ne as isPathWithinDir,ci as isPeerAdmitted,ia as isProcessAlive,qn as isProjectRoot,Ft as isReservedForUserTree,ze as isSelfWrite,He as isSystemDoc,E as isToleranceTelemetryEnabled,ra as isValidLockPid,K as lastKnownHash,Zn as listRescueCheckpoints,Nt as listStarterPacks,it as loadCustomAgents,Le as loadPrincipal,ya as lockAdvertisesUi,la as lockBaseUrl,ua as lockFilePath,Ji as loggerFactory,Qi as logsCurrentPath,na as logsPreviousPath,jr as makeLazyEmbeddingsKeyStore,pa as markServerLockDraining,pe as mountMcpAndApi,zi as normalizeFsPath,A as originGitHubHost,Sn as packageVersionMajorMinor,ct as parseAuthRejectionWire,Oe as parseGitVersion,U as parseHocuspocusAuthToken,ce as parseKeepaliveConnectionId,oe as pathToDocName,xe as planSeed,pr as prepareSingleFileOpen,Br as processCommand,sn as processUsage,Nr as readAllTargets,Rn as readBundleDecision,Un as readOwnNativeRules,va as readProcessLock,ha as readProcessLockDetailed,$ as readProjectHeadState,Lt as readProjectLocalSemanticConfig,oa as readServerLock,qt as readServerPackageVersion,_r as readSkillInstallStateSnapshot,Bn as readStateManifest,zr as readTargetRecordedAt,on as readTargetVersion,he as reconcile,un as recordContributor,Cr as recordSkillInstallEvent,wt as registerAllTools,be as registerWrite,fa as releaseProcessLock,_a as releaseServerLock,Je as removeLastKnownHash,dr as reportSkillInstall,ei as resetMetrics,Gr as resolveBuiltinSkillHosts,o as resolveBundleEnabled,Nn as resolveBundledSkillDir,jn as resolveContentDir,ft as resolveCursorBinaryDefault,St as resolveCursorSpawnInvocation,I as resolveEffectiveLinterConfig,hr as resolveEmbeddingsCredential,En as resolveLockDir,Fe as resolveNativeConfigForDoc,Te as resolveNativeMarkdownlintConfig,Ot as resolvePack,Xn as resolvePackageVersion,fn as resolveSkillInstallReportSettings,Kr as resolveUiInfo,xn as restoreContributors,di as restoreLifecycleFromConflictsJson,Mt as rewriteMarkdownLinksForDocumentRename,Dt as rewriteWikiLinksForDocumentRename,Mr as runAuthReposSubprocess,Ln as runAuthStatusSubprocess,h as runCloneSubprocess,Kt as runDeviceFlowSubprocess,zn as runWithMcpLogger,de as safeContentPath,q as safeSubdir,Jr as safetyCheckpoint,at as sanitizeClientName,ln as saveInMemoryCheckpoint,bn as saveVersion,L as seedBasenameIndex,Fr as seedEphemeralProjectDir,tn as serializeError,Oi as setActiveSpanAttributes,ut as setupServerObservers,br as shadowGit,Gi as shutdownTelemetry,Yi as spansCurrentPath,Xi as spansPreviousPath,Z as spawnDetached,Er as splitMarkdownBlocks,Ti as startWatcher,me as streamingProblemEvent,xr as swapContributors,ai as teardownToleranceTelemetryWriter,fi as toBroadcasterKey,Ii as tracedAppendFileSync,Vi as tracedLinkSync,Ni as tracedMkdir,Li as tracedMkdirSync,Ui as tracedRename,Pi as tracedRenameSync,Bi as tracedRmSync,Ri as tracedRmdirSync,Fi as tracedUnlinkSync,ji as tracedWriteFile,Wi as tracedWriteFileSync,R as trustSystemCertificates,qr as untrackTrackedProjectSkillProjection,C as updateLastKnownHash,da as updateProcessLockPort,ba as updateServerLockPort,Qe as validateAgentId,gn as validateCloneInputs,On as validateSkillZip,ca as waitForServerLockDrain,Re as withHiddenWindowsConsole,Ai as withSpan,ki as withSpanSync,er as writeBundleDecision,li as writeMarkdownlintRule,Sr as writeRootGitignoreForNewRepo,Se as writeStateManifest,Zr as writeTargetVersion,gt as writeTracker};
@@ -1 +0,0 @@
1
- import"./src-BD1wHyiU.mjs";import"./resolve-project-root-BjH69ZD8.mjs";import"./src-DL44CZGU.mjs";import"./acp-harness-probe-CsOd2HY8.mjs";import"./init-1WSRoxGv.mjs";import{n as e}from"./loader-CPTihIGS.mjs";import"./skill-teardown-C_JJAnAZ.mjs";import"./preview-CTKAOWbX.mjs";import"./mcp-migrate-event-9DFnNzHa.mjs";export{e as loadConfig};
@@ -1,20 +0,0 @@
1
- import{o as e}from"./chunk-DTipWd-i.mjs";import{K as t,pt as n,q as r}from"./sleep-DhRrtbfG.mjs";import{Dc as i,Ec as a,bo as o,ct as s,jc as c,lt as l}from"./src-BD1wHyiU.mjs";import{On as u,Pi as d,at as f,ct as p,gi as m,ot as h,st as g}from"./src-B_6tF_Gx.mjs";import{D as ee,F as _,I as v,k as y}from"./fs-traced-2B_-YK-g.mjs";import{C as b,S as x,_ as S,f as C,r as w}from"./server-lock-RKPNHNqb.mjs";import{t as T}from"./yazl-DZr4PyKA.mjs";import{h as E,m as D,x as te}from"./resolve-project-root-BjH69ZD8.mjs";import{c as ne}from"./colors-DSyAT9Cz.mjs";import{a as O,i as k}from"./acp-harness-probe-CsOd2HY8.mjs";import{D as re,E as A,S as j,T as M,_ as ie,b as ae,o as oe}from"./init-1WSRoxGv.mjs";import{n as se}from"./constants-gwiR1AXZ.mjs";import{t as ce}from"./is-object-Bw0-z8qH.mjs";import"./loader-CPTihIGS.mjs";import"./skill-teardown-C_JJAnAZ.mjs";import"./preview-CTKAOWbX.mjs";import{execSync as le,spawnSync as ue}from"node:child_process";import{basename as N,dirname as P,join as F,relative as de,resolve as I,sep as fe}from"node:path";import{cpSync as pe,createWriteStream as me,existsSync as L,lstatSync as he,mkdirSync as R,mkdtempSync as ge,readFileSync as z,readdirSync as B,readlinkSync as _e,rmSync as ve,statSync as ye,writeFileSync as V}from"node:fs";import{arch as be,freemem as xe,homedir as H,hostname as Se,platform as Ce,release as we,tmpdir as Te,totalmem as Ee,type as De,uptime as Oe}from"node:os";import"node:fs/promises";import{createHash as ke}from"node:crypto";var Ae=n();const je=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Me(e,t,n=u){if(e!==void 0&&!je.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Ne=null;function Pe(e){Ne=e}function Fe(){return Ne??process.cwd()}function U(){return F(H(),`.ok`,`bug-reports`)}function Ie(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=U(),r=`${t}-bugreport`,i=F(n,`${r}.zip`);for(let e=2;L(i);e+=1)i=F(n,`${r}-${e}.zip`);return i}function Le(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let e=z(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return L(F(e,`.ok`))?ke(`sha256`).update(I(e)).digest(`hex`).slice(0,12):null}function Re(){let e={timestamp:new Date().toISOString(),platform:Ce(),osType:De(),osRelease:we(),hostname:`[redacted]`,uptime:Oe(),freeMem:xe(),totalMem:Ee(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=le(`sw_vers -productVersion 2>/dev/null`,d({encoding:`utf8`})).trim()}catch{}try{let t=F(__dirname,`..`,`..`,`package.json`);L(t)&&(e.okVersion=JSON.parse(z(t,`utf8`)).version)}catch{}return e}const ze=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function Be(e){let t=N(e);return ze.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function Ve(e,t){return Ge(e,t).files}const He=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function Ue(e,t=O){let n=F(e,`${t}.ShipIt`);return L(n)?He.map(e=>F(n,e)).filter(e=>L(e)):[]}function We(e){if(!L(e))return[];try{return B(e).filter(e=>e.endsWith(`.yaml`)).sort().slice(-25).map(t=>F(e,t))}catch{return[]}}function Ge(e,t){if(!L(t))return{files:[],excludedByProjectSlug:0};let n=B(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>F(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(Be),i=[],a=r.filter(t=>{try{return z(t,`utf8`).includes(`"project":"${e}"`)}catch{return i.push(t),!1}});if(a.length===0)return{files:n,excludedByProjectSlug:0};let o=new Set([...a,...i]);return{files:n.filter(e=>!Be(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function Ke(e){let t=F(e,`.ok`,`local`);return L(t)?{files:[`server.lock`,`last-spawn-error.log`,s].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function qe(e){let t=F(e,`.ok`,`local`,`logs`);return L(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>F(t,e)).filter(e=>L(e))}:{files:[]}}function Je(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=i(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function W(e){for(let t of e.files)try{Je({zipfile:e.zipfile,name:`${e.prefix}/${N(t)}`,content:z(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function Ye(t){let{redact:n,outputPath:r,logger:i}=t,o=t.userLogsDir??F(H(),`.ok`,`logs`),s=t.projectDir?Le(t.projectDir,i):null;R(P(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let l=Re();l.desktop=t.desktop??null,l.language=t.language??null;let{files:u,excludedByProjectSlug:d}=Ge(s,o),{files:f}=t.projectDir?Ke(t.projectDir):{files:[]},{files:p}=t.projectDir?qe(t.projectDir):{files:[]},m=t.shipItLogFiles??[];i?.info({logFileCount:u.length,logFilesExcludedByProjectSlug:d,lockFileCount:f.length,localSinkFileCount:p.length,shipItLogFileCount:m.length},`files collected`);let h=[],g=[],{ZipFile:ee}=await import(`./yazl-jVENrf5i.mjs`).then(t=>e(t.default,1)),_=new ee;W({zipfile:_,files:[...u,...m],prefix:`logs`,redact:n,bundleFiles:g,redactions:h,logger:i}),W({zipfile:_,files:f,prefix:`lockdir`,redact:n,bundleFiles:g,redactions:h,logger:i}),W({zipfile:_,files:p,prefix:`local-logs`,redact:n,bundleFiles:g,redactions:h,logger:i}),W({zipfile:_,files:t.bugReportLedgerFiles??[],prefix:c,redact:n,bundleFiles:g,redactions:h,logger:i});for(let e of t.extraFiles??[])try{let t=z(e.sourcePath),n=`extra/${e.zipName??N(e.sourcePath)}`;_.addBuffer(t,n),g.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Je({zipfile:_,name:`note.txt`,content:t.note,redact:n,bundleFiles:g,redactions:h});let v=JSON.stringify(l,null,2);_.addBuffer(Buffer.from(v,`utf8`),`sysinfo.json`),g.push(`sysinfo.json`);let y={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:g,redactions:h,sysinfo:l};_.addBuffer(Buffer.from(JSON.stringify(y,null,2),`utf8`),`MANIFEST.json`);let b=h.reduce((e,t)=>e+t.lineCount,0),x=new Set(m.map(e=>`logs/${N(e)}`)),S=g.filter(e=>x.has(e)),C=new Set((t.bugReportLedgerFiles??[]).map(e=>`${c}/${N(e)}`)),w=g.filter(e=>C.has(e)),T=s?g.filter(e=>e.startsWith(`logs/`)&&!Be(e)&&!x.has(e)):[],E=[`# Bug Report Bundle`,``,`Generated: ${y.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${y.disciplineVersion}`,``,`## Contents`,``,...g.map(e=>`- ${e}`),``,`## Privacy`,``,...T.length>0?[`Scope: some collected logs are user-wide rather than project-scoped.`,`These are written once per machine per day and can contain activity`,`from other projects open on this machine, including captured console`,`output:`,...T.map(e=>`- ${e}`),``]:[],...S.length>0?[`Installer logs: written by the macOS update helper rather than by`,`OpenKnowledge itself, and machine-wide rather than scoped to any one`,`project. They record the install and update history of this app on`,`this machine. Only this app is collected, never other applications`,`that use the same update mechanism:`,...S.map(e=>`- ${e}`),``]:[],...w.length>0?[`Send history: one small record per bug report previously generated`,`on this machine — when it was generated, whether sending it`,`succeeded, and why it failed if it did. This is what makes a failed`,`send diagnosable at all. It is machine-wide rather than scoped to`,`this project, so it names the other projects reports were filed`,`from. It carries no document content:`,...w.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${a.join(`, `)}`,b>0?`${b} line(s) were scrubbed across ${h.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
2
- `);_.addBuffer(Buffer.from(E,`utf8`),`README.md`),_.end();let D=me(r);return _.outputStream.pipe(D),await new Promise((e,t)=>{D.on(`close`,e),D.on(`error`,t)}),i?.info({bundlePath:r,fileCount:g.length,redactionCount:b},`bundle written`),{zipPath:r,summary:{projectSlug:s,files:g,redactions:h,redactedLineCount:b,generatedAt:y.generatedAt}}}var Xe=e(T(),1),G=e(ne(),1);function Ze(e){return v({absPath:y(`user`,e,e),sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function Qe({home:e=H(),env:n=process.env}={}){let i=Ze(e),{override:a,preferenceList:s}=ee(n),{locale:c,source:l}=o({override:a,storedPreference:i,supportedLocales:r,preferenceList:s,autoDetectableLocales:t});return{preference:i,locale:c,source:l,systemLanguages:s}}function $e(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function et(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function K(e,t){if(typeof e==`string`)return $e(e,t.contentDir);if(Array.isArray(e))return e.map(e=>K(e,t));if(!et(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=K(i,t);return n}function tt(e,t){let n=z(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
3
- `),i=n.split(`
4
- `),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=K(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}V(e,r?`${a.join(`
5
- `)}\n`:a.join(`
6
- `))}function nt(e,t){let n=z(e,`utf-8`);if(n.trim().length!==0)try{let r=K(JSON.parse(n),t),i=n.endsWith(`
7
- `)?`
8
- `:``;V(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=$e(n,t.contentDir);r!==n&&V(e,r)}}function rt(e,t){let n=z(e,`utf-8`),r=$e(n,t.contentDir);r!==n&&V(e,r)}function it(e){try{return B(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>F(e,t.name))}catch{return[]}}const at=new Set([`agent-presence.json`,`agent-effects.json`,`runtime.json`]);function ot(e){return/\.log\.\d+$/.test(e)}function st(e){return e.endsWith(`.jsonl`)||e.endsWith(`.log`)||ot(e)}function ct(e){let t={contentDir:e.contentDir};for(let n of[`telemetry`,`logs`,`process`])for(let r of it(F(e.stagingDir,n)))st(r)?tt(r,t):r.endsWith(`.json`)?nt(r,t):rt(r,t);for(let n of it(F(e.stagingDir,`state`))){let e=N(n);n.endsWith(`.jsonl`)?tt(n,t):at.has(e)?nt(n,t):rt(n,t)}}const lt=[`.ok`,`local`,`telemetry`],ut=[`.ok`,`local`,`logs`],dt=[`.ok`,`local`,`loss-capture`],ft=`spans-current.jsonl`,pt=`spans-prev.jsonl`,mt=`server-current.jsonl`,ht=`server-prev.jsonl`,gt=`loss-current.jsonl`,_t=`loss-prev.jsonl`;function vt(e){return F(e,...lt,ft)}function yt(e){return F(e,...lt,pt)}function bt(e){return F(e,...ut,mt)}function xt(e){return F(e,...ut,ht)}function St(e){return F(e,...dt,gt)}function Ct(e){return F(e,...dt,_t)}const wt=1e3;async function Tt(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(wt)});return t.ok?await t.text():null}catch{return null}}async function Et(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-effects`,{signal:AbortSignal.timeout(wt)});return t.ok?await t.text():null}catch{return null}}async function Dt(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/watcher-recent`,{signal:AbortSignal.timeout(wt)});return t.ok?await t.text():null}catch{return null}}function Ot(e){try{let t=JSON.parse(e);if(typeof t!=`object`||!t)return null;let n=t.decisions;return Array.isArray(n)?n.length===0?``:`${n.map(e=>JSON.stringify(e)).join(`
9
- `)}\n`:null}catch{return null}}function kt(e){let t=F(e,`.git`,`ok`);if(!L(t))return null;let n=ue(`git`,[`-C`,t,`log`,`--oneline`,`-50`],d({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function At(e){let t=F(e,`.git`,`ok`);if(!L(t))return null;let n=ue(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],d({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function jt(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function Mt(){return{nodeVersion:process.version,platform:Ce(),arch:be()}}function Nt(){return process.env.OTEL_SDK_DISABLED===`false`}function q(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Pt(e){if(!L(e))return{};let t;try{t=(0,Ae.parse)(z(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!q(t))return{};let n=t.telemetry;if(!q(n))return{};let r=n.localSink;return q(r)?r:{}}function Ft(e){return typeof e==`boolean`?e:void 0}function It(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function J(e){if(q(e))return It(e.maxBytes)}function Lt(e){let t=Pt(y(`project`,e)),n=Pt(y(`project-local`,e));return{enabled:Ft(n.enabled)??Ft(t.enabled)??!0,spansMaxBytes:J(n.spans)??J(t.spans)??52428800,logsMaxBytes:J(n.logs)??J(t.logs)??26214400}}function Rt(e){return ke(`sha256`).update(e).digest(`hex`)}function zt(e){let t=z(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function Bt(e){let t=z(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function Y(e,t){if(!L(e))return!1;try{return R(P(t),{recursive:!0}),pe(e,t),!0}catch{return!1}}function Vt(e){let t=[],n=e=>{let r=B(e,{withFileTypes:!0});for(let i of r){let r=F(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const Ht=new Set([`.jsonl`]);function Ut(e){let t=e.lastIndexOf(`.`);return t===-1?!1:Ht.has(e.slice(t))}const Wt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`,`.yaml`,`.yml`]);function Gt(e){if(ot(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:Wt.has(e.slice(t))}function Kt(e){let t=[];for(let n of Vt(e)){let r=qt(e,n);if(!Gt(r))continue;let{redacted:a,patterns:o,lineCount:s}=i(z(n,`utf-8`));o.length!==0&&(V(n,a),t.push({file:r,lineCount:s,patterns:o}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function qt(e,t){return de(e,t).split(fe).join(`/`)}async function Jt(e){let t=I(e.contentDir),n=I(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??Tt,a=r.fetchAgentEffects??Et,o=r.fetchWatcherRecent??Dt,u=r.readShadowHead??kt,d=r.readCheckpointRefs??At,f=r.now??(()=>new Date),p=r.okVersion??(()=>se),m=r.readDesktopEnv??jt,h=r.readLanguage??Qe,g=r.readRuntime??Mt,ee=r.isOtlpPushEnabled??Nt,_=ge(F(Te(),`ok-bundle-`));try{R(F(_,`telemetry`),{recursive:!0}),R(F(_,`logs`),{recursive:!0}),R(F(_,`state`),{recursive:!0}),Y(vt(n),F(_,`telemetry`,ft)),Y(yt(n),F(_,`telemetry`,pt)),Y(bt(n),F(_,`logs`,mt)),Y(xt(n),F(_,`logs`,ht));for(let t of e.userLogFiles??[])Y(t,F(_,`logs`,N(t)));for(let t of e.userStateFiles??[])Y(t,F(_,c,N(t)));let v=F(n,`.ok`,`local`),y=F(v,`server.lock`),b=`not-running`,x=`no server.lock`,S=null;if(L(y)){Y(y,F(_,`state`,`server.lock`));try{let e=z(y,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?S=t.port:x=`lock present but no port`}catch{x=`lock present but unparseable`}}if(S!==null){let e=await i(S);e===null?x=`agent-presence endpoint at :${S} unreachable`:(V(F(_,`state`,`agent-presence.json`),e),b=`running`,x=``);let t=await a(S);t!==null&&V(F(_,`state`,`agent-effects.json`),t);let n=await o(S);if(n!==null){let e=Ot(n);e!==null&&V(F(_,`state`,`watcher-recent.jsonl`),e)}}let C=u(t);C!==null&&V(F(_,`state`,`shadow-head.txt`),C);let w=d(t);w!==null&&V(F(_,`state`,`checkpoint-refs.txt`),w),Y(St(n),F(_,`state`,gt)),Y(Ct(n),F(_,`state`,_t)),Y(F(v,`last-spawn-error.log`),F(_,`state`,`last-spawn-error.log`)),Y(F(v,l),F(_,`state`,l)),Y(F(v,s),F(_,`state`,s));let T=g(),E=m(),D=h(),te={ok:{version:p(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:E,language:D}};V(F(_,`state`,`runtime.json`),`${JSON.stringify(te,null,2)}\n`);let ne=b===`running`?`running
10
- `:`not-running (${x})\n`;if(V(F(_,`state`,`server-status.txt`),ne),e.processDir&&L(e.processDir)){let t=F(_,`process`);R(t,{recursive:!0}),pe(e.processDir,t,{recursive:!0})}let O=e.redact===!0;O&&ct({stagingDir:_,contentDir:t}),e.note&&V(F(_,`note.txt`),e.note);let k=null;e.scrubSecrets===!0&&(k=Kt(_));for(let t of e.extraFiles??[])Y(t.sourcePath,F(_,`extra`,t.zipName??N(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let re=Lt(n),A=Vt(_),j=[],M=0,ie=0;for(let e of A){let t=qt(_,e),n=ye(e).size,r=Ut(t)?zt(e):0;j.push({path:t,bytes:n,lines:r}),M+=n,t.startsWith(`telemetry/`)&&Ut(t)&&(ie+=Bt(e))}let ae={applied:O};k!==null&&(ae.secretScrub=k);let oe={schemaVersion:2,createdAt:f().toISOString(),ok:{version:p(),nodeVersion:T.nodeVersion,platform:T.platform,arch:T.arch},host:{desktop:E,language:D},contentDir:{pathSha256:Rt(t),absolutePath:O?`<CONTENT_DIR>`:t},telemetry:{localSink:re,otlpPushEnabled:ee()},redaction:ae,serverStatus:b,files:j};V(F(_,`manifest.json`),`${JSON.stringify(oe,null,2)}\n`);let se=A.some(e=>{try{return z(e,`utf-8`).includes(t)}catch{return!1}}),ce={totalBytes:M,fileCount:j.length,docNameCount:ie,contentDirVisible:se,redacted:O},le=!1;return{stagingDir:_,manifest:oe,summary:ce,cleanup:()=>{le||(le=!0,ve(_,{recursive:!0,force:!0}))}}}catch(e){throw ve(_,{recursive:!0,force:!0}),e}}async function Yt(e){let{collected:t,outputPath:n}=e,r=P(n);if(!L(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new Xe.ZipFile,a=Vt(t.stagingDir);for(let e of a){let n=qt(t.stagingDir,e);i.addFile(e,n)}i.end();let o=me(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Xt(e,t){let n=F(e,`.ok`,`config.yml`);if(L(n))try{let t=(0,Ae.parse)(z(n,`utf-8`)),r=ce(t)?t.content:void 0,i=ce(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return I(e,i)}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return I(e)}async function Zt(e,t,n,r){let i=Le(t,e.logger),a=await Jt({contentDir:Xt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:[...Ve(i,e.userLogsDir??F(H(),`.ok`,`logs`)),...Ue(e.cachesDir??F(H(),`Library`,`Caches`))],userStateFiles:We(e.bugReportsDir??U()),deps:{readDesktopEnv:n,readLanguage:r,logger:e.logger}});try{R(P(e.outputPath),{recursive:!0}),await Yt({collected:a,outputPath:e.outputPath});let t=a.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:i,files:a.manifest.files.map(e=>e.path),redactions:t?.redactions??[],redactedLineCount:t?.redactedLineCount??0,generatedAt:a.manifest.createdAt}}}finally{a.cleanup()}}async function Qt(e){let{projectDir:t}=e,n=e.readDesktopEnv??jt,r=e.readLanguage??Qe;if(e.level===`full`&&t!==void 0)return Zt(e,t,n,r);let{zipPath:i,summary:a}=await Ye({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,shipItLogFiles:Ue(e.cachesDir??F(H(),`Library`,`Caches`)),bugReportLedgerFiles:We(e.bugReportsDir??U()),logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n(),language:r()});return{zipPath:i,summary:{level:e.level,systemWide:t===void 0,projectSlug:a.projectSlug,files:a.files,redactions:a.redactions,redactedLineCount:a.redactedLineCount,generatedAt:a.generatedAt}}}function $t(e,t){if(!L(e))return{status:`missing`,lockPath:e};let n;try{n=JSON.parse(z(e,`utf-8`))}catch{return{status:`corrupt`,lockPath:e}}if(!n||typeof n!=`object`||!b(n.pid))return{status:`corrupt`,lockPath:e};let r=n;if(!(t.isAlive??x)(r.pid))return{status:`dead-pid`,lockPath:e,lock:r};if(typeof r.machineId==`string`)return r.machineId===(t.machineId??S())?{status:`alive`,lockPath:e,lock:r}:{status:`foreign-host`,lockPath:e,lock:r};let i=t.host??Se();return r.hostname===i?{status:`alive`,lockPath:e,lock:r}:{status:`foreign-host`,lockPath:e,lock:r}}function X(e,t,n={}){return $t(C(e,t),n)}function Z(e,t={}){return $t(F(e,`ui.lock`),t)}function en(e){return e.replace(/:\d+$/,``)}function tn(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:en(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:en(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:en(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}const nn=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function rn(e){return F(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const an={existsSync:e=>L(e),readFileSync:(e,t)=>z(e,t),lstatSync:e=>he(e),readlinkSync:e=>_e(e)};function on(e,t=an){let n=rn(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function sn(e){let t=e.replace(nn,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function cn(e,t,n=an){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function ln(e){return D(e)||E(e)||j(e)}const un=10*1024*1024;function dn(e,t,n,r){let i=oe(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!ln(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);if(e.format===`file`){ve(a,{force:!0});let e=k(t,n);return{kind:`removed`,trust:e.action,...e.error===void 0?{}:{trustError:e.error}}}return e.format===`toml`?mn(a,o):e.format===`yaml`?pn(a,e.topLevelKey,o):fn(a,e.topLevelKey,e.serverMapSubKey,o)}function fn(e,t,n,r){let i;try{i=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>un)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=re(i,ie(t,n,r));return o?(_(e,a,{mode:M(e)}),{kind:`removed`}):{kind:`not-present`}}function pn(e,t,n){let r;try{r=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>un)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,Ae.parseDocument)(a);if(o.errors.length>0)return{kind:`declined`,reason:`unparseable`};let s=[t,n];if(!o.hasIn(s))return{kind:`not-present`};o.deleteIn(s);let c=o.toString(),l=A(a);a.trim()===``||a.endsWith(`
11
- `)?c.endsWith(`
12
- `)||(c=`${c}\n`):c=c.replace(/\n+$/,``),l&&(c=c.replace(/\r\n/g,`
13
- `).replace(/\n/g,`\r
14
- `));let u=`${i?``:``}${c}`;return u!==r&&_(e,u,{mode:M(e)}),{kind:`removed`}}function mn(e,t){let n=ae();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=z(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=A(a),s=a.trim()===``||a.endsWith(`
15
- `),c;try{c=n.removeEntry(a,t)}catch{return{kind:`declined`,reason:`unparseable`}}if(!c.existed)return{kind:`not-present`};let l=c.text;s?l.endsWith(`
16
- `)||(l=`${l}\n`):l=l.replace(/\n+$/,``),o&&(l=l.replace(/\r\n/g,`
17
- `).replace(/\n/g,`\r
18
- `));let u=`${i?``:``}${l}`;return u!==r&&_(e,u,{mode:M(e)}),{kind:`removed`}}function hn(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function gn(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function _n(e,t,n,r){if(t.status===`missing`||t.status===`corrupt`)return null;let i=t.lock,a=t.status===`alive`&&w(i)?{port:i.port,status:t.status,pid:i.pid,startedAt:i.startedAt,usage:r}:null;return{directory:i.worktreeRoot,server:{port:i.port,status:t.status,pid:i.pid,startedAt:i.startedAt,usage:r},ui:a,hostname:i.hostname,lockPath:t.lockPath,binary:n==null?null:h(n),command:n,isDesktop:hn(n)}}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:`stale`}const vn=new Set([`running`,`desktop`,`foreign`]);function yn(e){switch(e){case`running`:return G.default.green(e);case`desktop`:return G.default.blue(e);case`foreign`:return G.default.cyan(e);case`stale`:return G.default.yellow(e)}}function bn(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function xn(e){return`${bn(e.server.usage)} | ${bn(e.ui?.usage??null)}`}function Sn(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null?`—`:String(e.ui.port)}`}function Cn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>[e.directory,Sn(e),xn(e),Q(e),String(e.server.pid),gn(e.server.startedAt),e.binary??`—`]),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=yn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=G.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
19
- `)}async function wn(e={}){let t=e.discover??f,n=e.inspect??X,r=e.log??(e=>console.log(e)),i=e.resolveCommand??g,a=e.resolveUsage??p,o=await t(),s=[];for(let e of o){let t=n(e,`server`),r=_n(e,t,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid));r!=null&&s.push(r)}if(e.json){let e=s.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(Cn(e.all?s:s.filter(e=>vn.has(Q(e)))))}function Tn(){return new te(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await wn({all:t.all===!0||e===`all`,json:t.json===!0})})}function En(e,t,n={}){let r=n.isAlive??x,i=[];for(let[n,a]of[[`server`,e],[`ui`,t]])(a.status===`alive`||a.status===`foreign-host`&&r(a.lock.pid))&&i.push({name:n,pid:a.lock.pid,port:a.lock.port});return{targets:i}}function Dn(e){let t=e.inspect??(t=>t===`ui`?Z(e.lockDir):X(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=En(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function On(e,t=x){let n=await f(),r=null;for(let i of n){let n=X(i,`server`),a=Z(i);if($(n,t)&&n.lock.port===e||$(a,t)&&a.lock.port===e)return i;r===null&&($(n,t)&&n.lock.pid===e||$(a,t)&&a.lock.pid===e)&&(r=i)}return r}function kn(e){let t=Dn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function An(e){return new te(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async t=>{let n=t.length===0?void 0:t.join(` `);if(n===void 0){e();let t=Dn({lockDir:m(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await wn({});return}if(n===`all`){let e=await f();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let t=0;for(let n of e){let e=X(n,`server`),r=Z(n);!$(e,x)&&!$(r,x)||(kn(n),t++)}t===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(n)){let e=Number.parseInt(n,10),t=await On(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}kn(t);return}kn(m(I(Fe(),n)))})}export{U as _,nn as a,Me as b,on as c,Z as d,X as f,Ie as g,Yt as h,dn as i,sn as l,Jt as m,An as n,cn as o,Qt as p,Tn as r,rn as s,Dn as t,tn as u,Fe as v,Pe as y};
20
- //# sourceMappingURL=src-DL44CZGU.mjs.map
@@ -1 +0,0 @@
1
- import{S as e,m as t,p as n,r}from"./start-DFHJtxzc.mjs";export{r as bootStartServer,n as resolveBundledReactShellDir,t as resolveHost,e as startCommand};
@@ -1 +0,0 @@
1
- import{t as e}from"./yazl-DZr4PyKA.mjs";export default e();export{};