@inkeep/open-knowledge 0.58.3 → 0.58.4
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.
- package/dist/{acp-harness-probe-BqRZMQAH.mjs → acp-harness-probe-DNOO15gu.mjs} +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-DNRKbd5q.mjs +2 -0
- package/dist/index.d.mts +23 -3
- package/dist/index.mjs +7 -7
- package/dist/init-BLeyELSU.mjs +1 -0
- package/dist/init-CFzjnMz4.mjs +638 -0
- package/dist/{launch-json-removal-CFCVxwJI.mjs → launch-json-removal-CHt_-USW.mjs} +2 -2
- package/dist/{loader-BNUzjusA.mjs → loader-BQUB7-qM.mjs} +2 -2
- package/dist/loader-Ddpe_96M.mjs +1 -0
- package/dist/{open-browser-CsDN5cE2.mjs → open-browser-CtfBqG33.mjs} +2 -2
- package/dist/preview-Dozh6AHh.mjs +1 -0
- package/dist/{preview-DJ78BUTV.mjs → preview-nsZxaHZ-.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-CkRlezNg.js → ActivityModeContent-DBbldt0k.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-h0q7uJEz.js → AgentDiffPane-DwjS2yV9.js} +2 -2
- package/dist/public/assets/{AgentThreadClientBinder-DTYzWGtR.js → AgentThreadClientBinder-DoFc7NfG.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-DysJtQun.js → CodeMirrorPropInput-Bbe8zInO.js} +3 -3
- package/dist/public/assets/{DocumentContext-fhZinGJS.js → DocumentContext-BC38uC8R.js} +2 -2
- package/dist/public/assets/{EditorModeToggle-C-AfyZsi.js → EditorModeToggle-K2dlTUFw.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-VBfYxggq.js → EnableSyncConfirmDialog-Crl0PHbt.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-BCY1kgwR.js → ExcalidrawDocEditor-C89vengD.js} +6 -6
- package/dist/public/assets/FeedbackForm-wyWA05iX.js +1 -0
- package/dist/public/assets/{GraphPanel-CDbqbQEy.js → GraphPanel-BioJjRJE.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-BKa4VhrB.js → ImportSkillDialog-CTisXGKo.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DQ-UiGFS.js → LintConfigEditor-2PX1Y8Gp.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BkJurdY8.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-ZSXrcUs4.js → ManagedArtifactProperties-Bmcgejtj.js} +1 -1
- package/dist/public/assets/McpConsentDialogBody-5ojAKZte.js +1 -0
- package/dist/public/assets/{Mermaid-B3SF6uX9.js → Mermaid-CHnWO5AG.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-DDIZonZi.js → MermaidDocEditor-Q13CWidl.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-C_4wTQjO.js → PropertyDisplayRow-DVXahRWZ.js} +2 -2
- package/dist/public/assets/{SchemaConfigEditor-BWJXhfqK.js → SchemaConfigEditor-BzfcQ3Bd.js} +1 -1
- package/dist/public/assets/{SessionsHost-DEygqnZG.js → SessionsHost-Bn80i4wO.js} +2 -2
- package/dist/public/assets/SettingsDialogBody-CBraPHPP.js +13 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-uJB6JRNs.js → ShareBranchSwitchDialog-DIQmuIkz.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DZEmg6tP.js → ShareReceiveDialog-BWuqWxsw.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-CkA5xIH-.js → ShareReceiveMissDialog-CjolEfpx.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-BSvrDTc_.js → SkillInstallMenu-CIrDCCxr.js} +2 -2
- package/dist/public/assets/{SkillToolbarControls-CNsrHOA9.js → SkillToolbarControls-B9LFwwR_.js} +1 -1
- package/dist/public/assets/{SourceEditor-BeA8rPo1.js → SourceEditor-BwO15VQF.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-Ca0AxfIE.js → TerminalWindowApp-BgTVBGP9.js} +1 -1
- package/dist/public/assets/{TextDocEditor-C-71OJg5.js → TextDocEditor-DHilRKxH.js} +1 -1
- package/dist/public/assets/{ThreadView-b4CyDDFy.js → ThreadView-7sbMEVak.js} +3 -3
- package/dist/public/assets/{TimelineDiffPane-ClRO4nAR.js → TimelineDiffPane-DBuwXW3c.js} +2 -2
- package/dist/public/assets/{abnfDiagram-VRR7QNED-knnj_PT_.js → abnfDiagram-VRR7QNED-CC-3oNGg.js} +1 -1
- package/dist/public/assets/{agent-diff-store-CEQOUFj8.js → agent-diff-store-C3QOPAgw.js} +1 -1
- package/dist/public/assets/{ar-SA-G6X2FPQ2-qC3UGBFq.js → ar-SA-G6X2FPQ2-DyHN48ct.js} +1 -1
- package/dist/public/assets/{arc-DAcMCn7-.js → arc-BTS87qIk.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-CfXPaavr.js +1 -0
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-D1d1IF8c.js → architectureDiagram-ZJ3FMSHR-4_dHD-uY.js} +1 -1
- package/dist/public/assets/{auth-state-cache-2hiDYaE_.js → auth-state-cache-DBcpAYj1.js} +2 -2
- package/dist/public/assets/{az-AZ-76LH7QW2-3yyofIua.js → az-AZ-76LH7QW2-DnitJ10x.js} +1 -1
- package/dist/public/assets/{bg-BG-XCXSNQG7-mIWM67ej.js → bg-BG-XCXSNQG7-D8ztF3Vf.js} +1 -1
- package/dist/public/assets/{blockDiagram-677ZJIJ3-CCPISvxu.js → blockDiagram-677ZJIJ3-DDmTWkY7.js} +1 -1
- package/dist/public/assets/{bn-BD-2XOGV67Q-Bkf_FPty.js → bn-BD-2XOGV67Q-CIbNQjuB.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-CwKiAjmk.js → c4Diagram-LMCZKHZV-CipXxfyN.js} +1 -1
- package/dist/public/assets/{ca-ES-6MX7JW3Y-Dqm4avPh.js → ca-ES-6MX7JW3Y-FXkg14vw.js} +1 -1
- package/dist/public/assets/channel-SZoC-PVl.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-C2ffvMR3.js +1 -0
- package/dist/public/assets/{chunk-32BRIVSS-CCM7e-Su.js → chunk-32BRIVSS-BGfEotqY.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-B4uYl0F2.js → chunk-52WLFC77-BxWUWkZN.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-Czh6wiUR.js → chunk-5FCAYU7R-BqFS84lK.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-B1DblOKN.js → chunk-5HE753X5-FuqeM3Lk.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-RsDEs6Ge.js → chunk-5JV3BV7I-DtF3727F.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-DogbK1Ad.js → chunk-5TONJI2A-CrYz1k-D.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-BF2HQvpB.js → chunk-5VM5RSS4-B9-r6K5d.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-xEEu5-FS.js → chunk-7BUUIJ7U-C4LcvRKI.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-B7Vy6lL0.js → chunk-BIQX33UG-Cyl5VCln.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-B4xzYp_-.js → chunk-BO2N2NFS-CHdHgk-M.js} +3 -3
- package/dist/public/assets/{chunk-C7G6YPKG-BwypedOp.js → chunk-C7G6YPKG-DNj4qHp9.js} +1 -1
- package/dist/public/assets/{chunk-CQNSW5MT-BynKyX7Q.js → chunk-CQNSW5MT-B89oo6uQ.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-CcAiRoQK.js → chunk-CYSBUYHQ-BEZlgSou.js} +1 -1
- package/dist/public/assets/{chunk-EIO257PC-BoZXoDbT.js → chunk-EIO257PC-DqCiBPM0.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-DvXwGbp5.js → chunk-EMLP6XTP-TAV8Yk8h.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-DfEAiOzO.js → chunk-EX3LRPZG-mAAgmbjm.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-B4ZXMGoS.js → chunk-FWX5IMBZ-B2SauNuc.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-65tb2y7t.js → chunk-HOUHSVGY-fSFxsWEA.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-C0yJImAd.js → chunk-ICXQ74PX-BQe1Tadw.js} +1 -1
- package/dist/public/assets/{chunk-JG7HCLWE-BU2ul_l0.js → chunk-JG7HCLWE-Ccv3ZGae.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-Bm7YzRd8.js → chunk-JWPE2WC7-Dn44e_g7.js} +1 -1
- package/dist/public/assets/{chunk-K2UTITRG-BnLtCQ5o.js → chunk-K2UTITRG-CkBPVYIW.js} +4 -4
- package/dist/public/assets/{chunk-MOJQB5TN-C4Np4juh.js → chunk-MOJQB5TN-BKB_eH6x.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-BWz-3SfV.js → chunk-MOZMSUNE-5PZcKuoK.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-CH6_8nwG.js → chunk-OGEWGWER-CazgdTF7.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-CwvpgmWl.js → chunk-OSBZ3O6U-D9UBjnO6.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-COdtF29Q.js → chunk-PUDLZKDR-Cjq7brjA.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-COHmvE5y.js → chunk-Q4XR5HBZ-CUaphLMo.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-d5Yr5Tud.js → chunk-QBLGF6JB-Cv0vVCzu.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-0KFt0CQV.js → chunk-R7FJI6CG-DpvHn4ee.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-D5XITLLt.js → chunk-RYQCIY6F-DbFDXExl.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-CupUpWVp.js → chunk-U6XO7XAA-Cek9_Khm.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-DNpJji2b.js → chunk-V7JOEXUC-Bbc5z4-F.js} +1 -1
- package/dist/public/assets/chunk-VAUOI2AC-BYt4ybRk.js +1 -0
- package/dist/public/assets/{chunk-VR4S4FIN-CcSVahzV.js → chunk-VR4S4FIN-V7_7sr9q.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-BK6nF3AC.js → chunk-WYO6CB5R-DpZX-_mW.js} +1 -1
- package/dist/public/assets/chunk-XXDRQBXY-HZnulEE8.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-DeI4sxm8.js → chunk-YOTPTUD7-652A10gX.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-CD0hJytC.js → chunk-ZGVPDNZ5-CQ5EdC_w.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-BKl57JW2.js → chunk-ZIRB5QZD-MDehklKw.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-BDRzp3gY.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-rM9c2SNh.js +1 -0
- package/dist/public/assets/{client-version-D7sx1Rjr.js → client-version-Cea4CPxm.js} +1 -1
- package/dist/public/assets/{comment-chips-aVRkvAE8.js → comment-chips-PokDlHuL.js} +1 -1
- package/dist/public/assets/{config-provider-BfPKv7D_.js → config-provider-C7t6oRiN.js} +3 -3
- package/dist/public/assets/{cose-bilkent-JH36ORCC-C3Dw2AY1.js → cose-bilkent-JH36ORCC-0DPzkGFy.js} +1 -1
- package/dist/public/assets/{cs-CZ-2BRQDIVT-DPI0xS3p.js → cs-CZ-2BRQDIVT-4hog6eEU.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-BurVqQR8.js +1 -0
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-0j4PUNun.js → cynefinDiagram-TSTJHNR4-Ce8QtGQX.js} +1 -1
- package/dist/public/assets/{da-DK-5WZEPLOC-mws3ctf_.js → da-DK-5WZEPLOC-Cw8K5DaJ.js} +1 -1
- package/dist/public/assets/{dagre-DmuiTOlc.js → dagre-DRhKgI1C.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-C5McRTWv.js → dagre-VKFMJZFB-DIK6Rj3Y.js} +1 -1
- package/dist/public/assets/{de-DE-XR44H4JA-BvIPZaw8.js → de-DE-XR44H4JA-DVuMP924.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY-COXUF2Fa.js → diagram-FQU43EPY-CwHYBYXs.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-DcTWci_k.js → diagram-G47NLZAW-DdyCu452.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-BWflTcUM.js → diagram-NH7WQ7WH-LYbIJVga.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-DmyHK6Uv.js → diagram-OA4YK3LP-C4IrjAmJ.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-BMNwAQOM.js → diagram-WEI45ONY-CxDGGrsH.js} +1 -1
- package/dist/public/assets/{dist-C9OQHbOq.js → dist-D7CYCFMw.js} +1 -1
- package/dist/public/assets/{dist-B5zKreyL.js → dist-D8LuoEeH.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-vv8VxW0v.js → ebnfDiagram-CCIWWBDH-C-5RtUWh.js} +1 -1
- package/dist/public/assets/{el-GR-BZB4AONW-DyE5PfLy.js → el-GR-BZB4AONW-C9nJXCFS.js} +1 -1
- package/dist/public/assets/{en-B4ZKOASM-Bvs96qZ9.js → en-B4ZKOASM-C8r_kkvD.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-D99HFDmt.js → erDiagram-Q63AITRT-DIzO4SJX.js} +1 -1
- package/dist/public/assets/{es-ES-U4NZUMDT-CLAlEmaN.js → es-ES-U4NZUMDT-B-af9pXw.js} +1 -1
- package/dist/public/assets/{eu-ES-A7QVB2H4-W8kalISp.js → eu-ES-A7QVB2H4-CoDA9Sdg.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-CIhM5sSt.js +1 -0
- package/dist/public/assets/{fa-IR-HGAKTJCU-DtlvlSbU.js → fa-IR-HGAKTJCU-BOsX1WF-.js} +1 -1
- package/dist/public/assets/{fi-FI-Z5N7JZ37-D4tg9oBW.js → fi-FI-Z5N7JZ37-D2ez2ZlS.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-D2Rbs6gz.js +1 -0
- package/dist/public/assets/{follow-file-CYsvUcRm.js → follow-file-4OaGQKr8.js} +1 -1
- package/dist/public/assets/{fr-FR-RHASNOE6-DSKWvc17.js → fr-FR-RHASNOE6-BY5EGoOF.js} +1 -1
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-4rYSxgTk.js → ganttDiagram-NO4QXBWP-8PSkZEAT.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-J9qtcZ1R.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-B-JYRBJR.js → gitGraphDiagram-IHSO6WYX-B-JOxyLz.js} +1 -1
- package/dist/public/assets/{gl-ES-HMX3MZ6V-DpIeQ4bP.js → gl-ES-HMX3MZ6V-qXnjJIHQ.js} +1 -1
- package/dist/public/assets/globals-DMVk7DOF.css +1 -0
- package/dist/public/assets/{graphlib-DAeCAIBG.js → graphlib-Bca5_bGX.js} +1 -1
- package/dist/public/assets/{he-IL-6SHJWFNN-CI1yJVoQ.js → he-IL-6SHJWFNN-CFsN-USg.js} +1 -1
- package/dist/public/assets/{hi-IN-IWLTKZ5I-Di65OfK_.js → hi-IN-IWLTKZ5I-CqKVyGj6.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-D9JxC14A.js → highlighted-body-OFNGDK62-BJvKOAMn.js} +1 -1
- package/dist/public/assets/{hu-HU-A5ZG7DT2-Dhd9h4U-.js → hu-HU-A5ZG7DT2-DSPzwV5b.js} +1 -1
- package/dist/public/assets/i18n-BzFVw6me.js +1 -0
- package/dist/public/assets/{id-ID-SAP4L64H-DPxjnq8h.js → id-ID-SAP4L64H-CgzYZSBc.js} +1 -1
- package/dist/public/assets/image-GAAHSSAO-5p1gJr75.js +1 -0
- package/dist/public/assets/{index-fgKdyOTx.js → index-DjHwk3he.js} +14 -14
- package/dist/public/assets/info-DKCQHKI2-DD5uTkIX.js +1 -0
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-B1noKQo-.js → infoDiagram-FWYZ7A6U-mx8f7iPh.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-VT_xRTeN.js → ishikawaDiagram-FXEZZL3T-BuAgYXdN.js} +1 -1
- package/dist/public/assets/{it-IT-JPQ66NNP-jaLmZpJB.js → it-IT-JPQ66NNP-Cbzf4vFl.js} +1 -1
- package/dist/public/assets/{ja-JP-DBVTYXUO-B4aVMNjr.js → ja-JP-DBVTYXUO-BeJZQpCg.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-hZkXlNse.js → journeyDiagram-5HDEW3XC-MNcBq7uJ.js} +1 -1
- package/dist/public/assets/{kaa-6HZHGXH3-CmhWkOLC.js → kaa-6HZHGXH3-CFheClmE.js} +1 -1
- package/dist/public/assets/{kab-KAB-ZGHBKWFO-DoShMy3x.js → kab-KAB-ZGHBKWFO-BFsRcn49.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-CCJUo3T8.js → kanban-definition-HUTT4EX6-COinwujW.js} +1 -1
- package/dist/public/assets/{kk-KZ-P5N5QNE5-COAIPK0i.js → kk-KZ-P5N5QNE5-BPI3eUa1.js} +1 -1
- package/dist/public/assets/{km-KH-HSX4SM5Z-DKSteKlA.js → km-KH-HSX4SM5Z-C50966Zh.js} +1 -1
- package/dist/public/assets/{ko-KR-MTYHY66A-BtBnTkOi.js → ko-KR-MTYHY66A-CRYJDKDg.js} +1 -1
- package/dist/public/assets/{ku-TR-6OUDTVRD-CEK-GsEz.js → ku-TR-6OUDTVRD-BSo-Dd_x.js} +1 -1
- package/dist/public/assets/{line-DUDdT47G.js → line-DNiGqPCO.js} +1 -1
- package/dist/public/assets/{linear-Crk4IoXk.js → linear-xbwWMH62.js} +1 -1
- package/dist/public/assets/{lt-LT-XHIRWOB4-BmAyvAEI.js → lt-LT-XHIRWOB4-jli1XLTx.js} +1 -1
- package/dist/public/assets/{lv-LV-5QDEKY6T-DA5xluCn.js → lv-LV-5QDEKY6T-BR9SPOPR.js} +1 -1
- package/dist/public/assets/{map-BDIKqs6_.js → map-C3qCYjwS.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-B5Hqnx8j.js → markdownlint-rule-browser-B4O09K7a.js} +1 -1
- package/dist/public/assets/mcp-consent-store-det7BJOm.js +1 -0
- package/dist/public/assets/mermaid-GHXKKRXX-DazaS16n.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-D2CROPB1.js → mermaid-parser.core-BBPl0FMj.js} +2 -2
- package/dist/public/assets/{mermaid.core-BuJUNf8U.js → mermaid.core-DOV4ohAA.js} +3 -3
- package/dist/public/assets/mermaid.core-IC601_VA.js +1 -0
- package/dist/public/assets/messages-7TQ4p_5e.js +1 -0
- package/dist/public/assets/messages-BAyOSOzR.js +1 -0
- package/dist/public/assets/messages-BLbXONgk.js +1 -0
- package/dist/public/assets/messages-BjIH4q0G.js +1 -0
- package/dist/public/assets/messages-BzRqDtdz.js +1 -0
- package/dist/public/assets/messages-Cimiq3nE.js +1 -0
- package/dist/public/assets/messages-Cn23SiIt.js +1 -0
- package/dist/public/assets/messages-Cpdcajhh.js +1 -0
- package/dist/public/assets/messages-DEperCf5.js +1 -0
- package/dist/public/assets/messages-Vju40UVv.js +1 -0
- package/dist/public/assets/messages-agMQw_WX.js +1 -0
- package/dist/public/assets/messages-pwWS2IL9.js +1 -0
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-Bl6uV6Lm.js → mindmap-definition-LN4V7U3C-39XsdHH5.js} +1 -1
- package/dist/public/assets/{mr-IN-CRQNXWMA-kzVrk4KT.js → mr-IN-CRQNXWMA-B24Wsks1.js} +1 -1
- package/dist/public/assets/{my-MM-5M5IBNSE-C03pkQqY.js → my-MM-5M5IBNSE-Bj30kqKI.js} +1 -1
- package/dist/public/assets/{nb-NO-T6EIAALU-D_gIJTI-.js → nb-NO-T6EIAALU-DatPxDXD.js} +1 -1
- package/dist/public/assets/{nl-NL-IS3SIHDZ-CXElU0hW.js → nl-NL-IS3SIHDZ-B2fUSC8t.js} +1 -1
- package/dist/public/assets/{nn-NO-6E72VCQL-Ceb8Ve7D.js → nn-NO-6E72VCQL-DDxnlhvK.js} +1 -1
- package/dist/public/assets/{now-bW4oeoIl.js → now-Dc8JGmJD.js} +1 -1
- package/dist/public/assets/{oc-FR-POXYY2M6-CRKfWy2i.js → oc-FR-POXYY2M6-D7fzX_sU.js} +1 -1
- package/dist/public/assets/{ordinal-B_yUPenZ.js → ordinal-Ty7u85Xr.js} +1 -1
- package/dist/public/assets/{pa-IN-N4M65BXN-NUYWLogt.js → pa-IN-N4M65BXN-SaZb20kb.js} +1 -1
- package/dist/public/assets/packet-7NZHBO7P-uEy_fRve.js +1 -0
- package/dist/public/assets/{pegDiagram-2B236MQR-D83zLysn.js → pegDiagram-2B236MQR-BUxDD3GL.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-ONj5lhiT.js → pending-receive-nav-store-CUM2yGMy.js} +1 -1
- package/dist/public/assets/percentages-BXMCSKIN-B2JTvaAU.js +1 -0
- package/dist/public/assets/pie-RZYD4A2V-DL5cp9cu.js +1 -0
- package/dist/public/assets/{pieDiagram-ENE6RG2P-BBQltVoV.js → pieDiagram-ENE6RG2P-1sOBJQHQ.js} +1 -1
- package/dist/public/assets/{pl-PL-T2D74RX3-1kZEkwrk.js → pl-PL-T2D74RX3-h6Z3lTne.js} +1 -1
- package/dist/public/assets/{pt-BR-5N22H2LF-BpVpG_sm.js → pt-BR-5N22H2LF-DlxyjlAr.js} +1 -1
- package/dist/public/assets/{pt-PT-UZXXM6DQ-Dt-BthzA.js → pt-PT-UZXXM6DQ-DNXmHfC1.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-ldLXXC4J.js → quadrantDiagram-ABIIQ3AL-tPv8zdVV.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-CuIUvG5Z.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-B58UdQaJ.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-BECWp2un.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-DGuWtaQ-.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-a5L7BUX-.js +1 -0
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-CY5TyY5o.js → railroadDiagram-RFXS5EU6-B3tLL240.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-D-qBM6x3.js → requirementDiagram-TGXJPOKE-DhHXNMVT.js} +1 -1
- package/dist/public/assets/{ro-RO-JPDTUUEW-CTQxC6e7.js → ro-RO-JPDTUUEW-CXHjWFsO.js} +1 -1
- package/dist/public/assets/{ru-RU-B4JR7IUQ-D-IbrJHQ.js → ru-RU-B4JR7IUQ-D06hnNmU.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-4wKHzubg.js → sankeyDiagram-HTMAVEWB-1ilqTXwC.js} +1 -1
- package/dist/public/assets/{selection-context-DuA_ASqU.js → selection-context-0QPVSyyM.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-Bq9nfuu1.js → sequenceDiagram-DBY2YBRQ-BAMyeFAB.js} +1 -1
- package/dist/public/assets/{si-LK-N5RQ5JYF-B08JEnWP.js → si-LK-N5RQ5JYF-YE-rWrHA.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-CUojmTih.js → sizeCapture-X5ZJPWSS-CDFPhPD1.js} +1 -1
- package/dist/public/assets/{sk-SK-C5VTKIMK-DKiB59oC.js → sk-SK-C5VTKIMK-C_KOcl7t.js} +1 -1
- package/dist/public/assets/{skill-actions-Doa3tEIs.js → skill-actions-H0gbk5VS.js} +1 -1
- package/dist/public/assets/{sl-SI-NN7IZMDC-BSAcUhRQ.js → sl-SI-NN7IZMDC-Byp-FmeV.js} +1 -1
- package/dist/public/assets/{src-BSW4lJKj.js → src-C-kGu7U9.js} +1 -1
- package/dist/public/assets/{src-DkaryqIP.js → src-Cdq2Q5Qg.js} +1 -1
- package/dist/public/assets/{stateDiagram-2N3HPSRC-DI3RANB_.js → stateDiagram-2N3HPSRC-DUg1gyYz.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-C8Q0uhsP.js +1 -0
- package/dist/public/assets/subset-shared.chunk-D_2xdrY5.js +1 -0
- package/dist/public/assets/{subset-worker.chunk-bIbcogEt.js → subset-worker.chunk-QRhlZYcU.js} +1 -1
- package/dist/public/assets/{sv-SE-XGPEYMSR-CVxFnqb6.js → sv-SE-XGPEYMSR-C1i36jhp.js} +1 -1
- package/dist/public/assets/{swimlanes-5IMT3BWC-czYaHjHH.js → swimlanes-5IMT3BWC-DDwZeFLm.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-6ZWNCIe_.js +8 -0
- package/dist/public/assets/{ta-IN-2NMHFXQM-nuD9kYIt.js → ta-IN-2NMHFXQM-BgTKuoDU.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DF041M4B.js → telemetry-impl-B-PaTlR_.js} +2 -2
- package/dist/public/assets/{telemetry-startup-CmSqjT8K.js → telemetry-startup-toj6ifVD.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-B0r5kVWT.js → text-viewer-languages-BTH8XtqT.js} +2 -2
- package/dist/public/assets/{th-TH-HPSO5L25-CxExgzJb.js → th-TH-HPSO5L25-CBPWq2Hm.js} +1 -1
- package/dist/public/assets/{timeline-definition-FHXFAJF6-BV85Esey.js → timeline-definition-FHXFAJF6-1ZfgYI4B.js} +1 -1
- package/dist/public/assets/tool-list-format-DhJHEdvi.js +1 -0
- package/dist/public/assets/{tr-TR-DEFEU3FU-DYWUOYn6.js → tr-TR-DEFEU3FU-Bqf8MT9l.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-LNEmtxg6.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-BNKoqHS4.js +1 -0
- package/dist/public/assets/{typing-burst-detector-CNzMrPyU.js → typing-burst-detector-BSBim2fh.js} +1 -1
- package/dist/public/assets/{uk-UA-QMV73CPH-C542W3SW.js → uk-UA-QMV73CPH-B8xMayiT.js} +1 -1
- package/dist/public/assets/{uninstall-LCcNjUXD.js → uninstall-DjCmbDes.js} +1 -1
- package/dist/public/assets/{use-activity-panel-DWkua4mU.js → use-activity-panel-Dsk5r0Dh.js} +1 -1
- package/dist/public/assets/{use-open-skill-CF6YGijJ.js → use-open-skill-BNgqZmZx.js} +1 -1
- package/dist/public/assets/{use-popular-skills-C0WZ7Hn9.js → use-popular-skills-CfasFpLW.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-C6CSKsS1.js → use-terminal-enabled-nco9YpDh.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-DS87boyw.js → use-timeline-entry-diff-C_A3TeSj.js} +1 -1
- package/dist/public/assets/{vennDiagram-L72KCM5P-DmPLyya7.js → vennDiagram-L72KCM5P-DRxF9Ym_.js} +1 -1
- package/dist/public/assets/{vi-VN-M7AON7JQ-CcAz_c2T.js → vi-VN-M7AON7JQ-CsNxB65e.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-Dcha9lJH.js +1 -0
- package/dist/public/assets/{wardleyDiagram-EHGQE667-BJpq2N9m.js → wardleyDiagram-EHGQE667-khYyBrTg.js} +1 -1
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-YBQc3R8e.js → xychartDiagram-FW5EYKEG-BdB2A2wD.js} +1 -1
- package/dist/public/assets/{zh-CN-LNUGB5OW-BciqcnjI.js → zh-CN-LNUGB5OW-DeZOAXhO.js} +1 -1
- package/dist/public/assets/{zh-HK-E62DVLB3-D3GsXTBu.js → zh-HK-E62DVLB3-D3AiD63n.js} +1 -1
- package/dist/public/assets/{zh-TW-RAJ6MFWO-Bq3Qa4rq.js → zh-TW-RAJ6MFWO-B65Fg6Sv.js} +1 -1
- package/dist/public/index.html +29 -28
- package/dist/public/uninstall.html +5 -5
- package/dist/{repair-launch-json-BNxqmSw6.mjs → repair-launch-json-DV-4N-CH.mjs} +2 -2
- package/dist/{repair-mcp-configs-CSM_13ZB.mjs → repair-mcp-configs-SHlFuxIK.mjs} +2 -2
- package/dist/{repair-skills-CE-cFHgC.mjs → repair-skills-D7rSfppe.mjs} +2 -2
- package/dist/repair-skills-aO5Yt4lm.mjs +1 -0
- package/dist/{skill-teardown-v6hvkG1K.mjs → skill-teardown-Cx7h3ooY.mjs} +2 -2
- package/dist/src-AGay8K3D.mjs +1 -0
- package/dist/{src-5UBRvZzQ.mjs → src-CE47LOyE.mjs} +2 -2
- package/dist/{src-B8XCBdBS.mjs → src-COqGK-op.mjs} +1 -1
- package/dist/{src-C9i4ShN8.mjs → src-Cqh-Fhfh.mjs} +338 -338
- package/dist/start-DUCWHC0m.mjs +1 -0
- package/dist/{start-CUipbuin.mjs → start-DXiJn8Mq.mjs} +4 -4
- package/dist/{ui-Dasu2qV2.mjs → ui-C7ao4aMi.mjs} +3 -3
- package/dist/{write-project-skill-Dx5URYrZ.mjs → write-project-skill-B7q9oxw9.mjs} +2 -2
- package/package.json +4 -4
- package/dist/constants-DZHTT3pe.mjs +0 -2
- package/dist/init-CRLhF28A.mjs +0 -1
- package/dist/init-E3Ac2WEW.mjs +0 -638
- package/dist/loader-q9Wn_r0S.mjs +0 -1
- package/dist/preview-DY_W_BiN.mjs +0 -1
- package/dist/public/assets/FeedbackForm-Dm6y8bD2.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-ztuL-dRJ.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-D3HC9epv.js +0 -1
- package/dist/public/assets/SettingsDialogBody-Obx5WZiI.js +0 -13
- package/dist/public/assets/architecture-TIHT7OUA-C59gH0UQ.js +0 -1
- package/dist/public/assets/channel-BZ-VB5e5.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-BON-PfVv.js +0 -1
- package/dist/public/assets/chunk-VAUOI2AC-b-P4PVCZ.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-C4fyWhi0.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-go51AAkq.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-DR8oYYgO.js +0 -1
- package/dist/public/assets/cynefin-VYW2F7L2-CsWQeq6p.js +0 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-BChy_Csy.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-DHFplz2a.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-DQUQFCq5.js +0 -1
- package/dist/public/assets/globals-ungA9FjT.css +0 -1
- package/dist/public/assets/i18n-OKq2zgJD.js +0 -1
- package/dist/public/assets/image-GAAHSSAO-CckXhe2c.js +0 -1
- package/dist/public/assets/info-DKCQHKI2-CKJqlojn.js +0 -1
- package/dist/public/assets/mcp-consent-store-Ngwhy1qL.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-D1P-rROf.js +0 -1
- package/dist/public/assets/mermaid.core-CfXtT_3s.js +0 -1
- package/dist/public/assets/messages-4c5nNBiJ.js +0 -1
- package/dist/public/assets/messages-C9cU3MwW.js +0 -1
- package/dist/public/assets/messages-CZrkiUlH.js +0 -1
- package/dist/public/assets/messages-CmYi8S53.js +0 -1
- package/dist/public/assets/messages-CxUlt8sa.js +0 -1
- package/dist/public/assets/messages-D5VXKR25.js +0 -1
- package/dist/public/assets/messages-D5zW0t5v.js +0 -1
- package/dist/public/assets/messages-D6c_oVqQ.js +0 -1
- package/dist/public/assets/messages-DN4QTNMp.js +0 -1
- package/dist/public/assets/messages-Dbr15TAB.js +0 -1
- package/dist/public/assets/messages-GpbpkDIs.js +0 -1
- package/dist/public/assets/messages-gyFFyNQP.js +0 -1
- package/dist/public/assets/packet-7NZHBO7P-BS3qzmNZ.js +0 -1
- package/dist/public/assets/percentages-BXMCSKIN-DmeA9TJI.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-5fwhFOGJ.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-DEv4Gy6P.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-iAyoDnL4.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-CfZI-cI-.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BpN_xiZE.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-0BEnaZxE.js +0 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-Coqb9qeJ.js +0 -1
- package/dist/public/assets/subset-shared.chunk-BQ3Tgd7s.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-CNbzmNHk.js +0 -8
- package/dist/public/assets/treeView-QDETBFTQ-VKFybHav.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-DNw21m3T.js +0 -1
- package/dist/public/assets/wardley-OPB4EBWU-nAMO0Thv.js +0 -1
- package/dist/repair-skills-CfNnIkaz.mjs +0 -1
- package/dist/src-CrquWaeh.mjs +0 -1
- package/dist/start-9OzIKmtM.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-DfOGYFKD.js → ActivityPanelDiffView-DPjwW8in.js} +0 -0
- /package/dist/public/assets/{AppMenubar-CjfdcPvL.js → AppMenubar-DzA6PAJ1.js} +0 -0
- /package/dist/public/assets/{BugReportHistoryDialog-DhDY1eLj.js → BugReportHistoryDialog-DNOoF0sF.js} +0 -0
- /package/dist/public/assets/{ConsentDialogBody-Y4cfUMAq.js → ConsentDialogBody-D4L2e425.js} +0 -0
- /package/dist/public/assets/{ReportBugDialogBody-ClJwLWPA.js → ReportBugDialogBody-BTwtPNzB.js} +0 -0
- /package/dist/public/assets/{SkillEditBanner-CPPbmflR.js → SkillEditBanner-BqzwArWv.js} +0 -0
- /package/dist/public/assets/{SkillOriginInline-DMtUBx23.js → SkillOriginInline-9ArgS7v6.js} +0 -0
- /package/dist/public/assets/{SlidesToolbarControls-CkLjOqlc.js → SlidesToolbarControls-BZvu5Syj.js} +0 -0
- /package/dist/public/assets/{TerminalPanel-D-jB2vUq.js → TerminalPanel-B4u8CA0m.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-g8yGDQhL.js → __vite-browser-external-BobEXftM.js} +0 -0
- /package/dist/public/assets/{array-D67YMGqZ.js → array-Dq4wW3VD.js} +0 -0
- /package/dist/public/assets/{calendar-CDq749kY.js → calendar-By9WFv7f.js} +0 -0
- /package/dist/public/assets/{chunk-6U3AYISY-B--tftBz.js → chunk-6U3AYISY-BmerJy-e.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-DA0vH4gz.js → chunk-KEIR6QF5-DTbPJftr.js} +0 -0
- /package/dist/public/assets/{chunk-SRAX5OIU-D6f9JaK-.js → chunk-SRAX5OIU-CoWcq_Cz.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-DHM6U_p1.js → chunk-Y2CYZVJY-6OZAfZOy.js} +0 -0
- /package/dist/public/assets/{chunk-Z3N5DIM6-C9zJb4GP.js → chunk-Z3N5DIM6-_vHzKWKQ.js} +0 -0
- /package/dist/public/assets/{chunk-ZUYEQ4TG-Dodt9o_e.js → chunk-ZUYEQ4TG-D1GKhcAx.js} +0 -0
- /package/dist/public/assets/{clike-ClD4GGYu.js → clike-D0HTSj3G.js} +0 -0
- /package/dist/public/assets/{code-highlighter-impl-qBYedCvd.js → code-highlighter-impl-u_GiXGcZ.js} +0 -0
- /package/dist/public/assets/{colors-DUmObusx.js → colors-q6zKP-2e.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-DUWnLp6A.js → cytoscape.esm-CYrVBcJU.js} +0 -0
- /package/dist/public/assets/{defaultLocale-CcFjU4mH.js → defaultLocale-DvNiTMpe.js} +0 -0
- /package/dist/public/assets/{diff-CGqGN152.js → diff-D1tXr_3N.js} +0 -0
- /package/dist/public/assets/{directory-open-01563666-BsjI1dje.js → directory-open-01563666-BH0BUZvH.js} +0 -0
- /package/dist/public/assets/{directory-open-4ed118d0-Cr-adpod.js → directory-open-4ed118d0-Cqq3tiWl.js} +0 -0
- /package/dist/public/assets/{dist-DUjqnkfe.js → dist-C7QvIWsS.js} +0 -0
- /package/dist/public/assets/{dist-XCBdHrHf.js → dist-CbvvMO_r.js} +0 -0
- /package/dist/public/assets/{dist-B8Mmna7x.js → dist-CrpG6qZF.js} +0 -0
- /package/dist/public/assets/{dist-jcpKYagw.js → dist-DJO8o4ls2.js} +0 -0
- /package/dist/public/assets/{file-open-002ab408-CqvNtGH4.js → file-open-002ab408-DWNEJNab.js} +0 -0
- /package/dist/public/assets/{file-open-7c801643-CFxIJEr1.js → file-open-7c801643-C54zS8Cf.js} +0 -0
- /package/dist/public/assets/{file-save-3189631c-DBZHxDBc.js → file-save-3189631c-dfe2nlyw.js} +0 -0
- /package/dist/public/assets/{file-save-745eba88-Cr_Hdq6q.js → file-save-745eba88-CacClePY.js} +0 -0
- /package/dist/public/assets/{gherkin-YSBFBoYo.js → gherkin-qTr9I9RT.js} +0 -0
- /package/dist/public/assets/{globals-D0MkEylX.js → globals--kx1ORbr.js} +0 -0
- /package/dist/public/assets/{go-oRmUxXc3.js → go-C89M6Tnn.js} +0 -0
- /package/dist/public/assets/{image-blob-reduce.esm-GlMEXUED.js → image-blob-reduce.esm-ByCvOQ_W.js} +0 -0
- /package/dist/public/assets/{init-DxOF-_xJ.js → init-C5wy6wX9.js} +0 -0
- /package/dist/public/assets/{isObject-BvqO90Hg.js → isObject-CrVeB5-O.js} +0 -0
- /package/dist/public/assets/{libesm-CHno8Gdp.js → libesm-CKzT_-OB.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-BWaFDWoA.js → lru-string-cache-BTiUx3Aq.js} +0 -0
- /package/dist/public/assets/{lua-DV3clYiA.js → lua-BDdZkU6-.js} +0 -0
- /package/dist/public/assets/{min-EtigG2IF.js → min-C-Zt4aXq.js} +0 -0
- /package/dist/public/assets/{panzoom.es-CJEbHa5M.js → panzoom.es-g57oTMWV.js} +0 -0
- /package/dist/public/assets/{path-BiSKFaHa.js → path-BzgPJcRu.js} +0 -0
- /package/dist/public/assets/{pdf-CphvkvFf.js → pdf-RD5YSNVl.js} +0 -0
- /package/dist/public/assets/{pdf.worker-DgNionhU.js → pdf.worker-CFwHIAhl.js} +0 -0
- /package/dist/public/assets/{perl-ChbLh42i.js → perl-CH_ML9FS.js} +0 -0
- /package/dist/public/assets/{pica-DWp0Zm-C.js → pica-Bgen8wyU.js} +0 -0
- /package/dist/public/assets/{properties-hdGo-XtY.js → properties-Cu9oAWIy.js} +0 -0
- /package/dist/public/assets/{r-DwB9JNpB.js → r-BhELqv5F.js} +0 -0
- /package/dist/public/assets/{receive-store-D0DFBX0k.js → receive-store-DHalgzeU.js} +0 -0
- /package/dist/public/assets/{rough.esm-D9U56URH.js → rough.esm-BNPcTkf4.js} +0 -0
- /package/dist/public/assets/{roundRect-CMj4cyko.js → roundRect-B-qJc5D4.js} +0 -0
- /package/dist/public/assets/{ruby-BUcnw96j.js → ruby-Wd_f1AJm.js} +0 -0
- /package/dist/public/assets/{schema-fields-view-intent-CoNpCLbi.js → schema-fields-view-intent-BgCPyXRP.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-Du5-A4jA.js → share-metadata-rows-C-n5eqv8.js} +0 -0
- /package/dist/public/assets/{shell-DSJ2GwXm.js → shell-BmuXbfbH.js} +0 -0
- /package/dist/public/assets/{sql-B-i6Dufg.js → sql-C7H020ne.js} +0 -0
- /package/dist/public/assets/{src-ByslrfV1.js → src-DCB0oFdU.js} +0 -0
- /package/dist/public/assets/{swift-HJxS_Ap4.js → swift-Dj6qhJqd.js} +0 -0
- /package/dist/public/assets/{tabs-CRpX6M4x.js → tabs-CP1Rtjct.js} +0 -0
- /package/dist/public/assets/{tag-pill-input-JkB_BjW_.js → tag-pill-input-BbNgNG5U.js} +0 -0
- /package/dist/public/assets/{thread-client-C_R9DwId.js → thread-client-fD965i1D.js} +0 -0
- /package/dist/public/assets/{thread-draft-staging-D6aoApVx.js → thread-draft-staging-BEPXwAou.js} +0 -0
- /package/dist/public/assets/{toml-_ie-LwSE.js → toml-BgTQFVve.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-B-E3bjid.js → useLintConfigViewMode-YTBzsyjH.js} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1504,22 +1504,22 @@ export default function okBridge(pi: {
|
|
|
1504
1504
|
`)?d.endsWith(`
|
|
1505
1505
|
`)||(d=`${d}\n`):d=d.replace(/\n+$/,``),f&&(d=d.replace(/\r\n/g,`
|
|
1506
1506
|
`).replace(/\n/g,`\r
|
|
1507
|
-
`));let p=`${a?``:``}${d}`;return p!==i&&n$(e,p,{mode:X7(e)}),{kind:l?`overwritten`:`written`}}const JCe=`open-knowledge-ui`;function o9(e,t,n){try{return g(e.detectPath?.(t,n)??pe(e.configPath(t,n)))}catch{return!1}}function s9(e,t,n,r,i){let a=e.serverName(t),o;try{o=i??e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:a,error:t instanceof Error?t.message:String(t)}}let s=!n.skipAvailabilityCheck||e.offerOnlyWhenDetected===!0;if(!i&&s&&!o9(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:o,serverName:a};if(i!==void 0)try{D7(o,t)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),configScope:`project`}}if(e.format===`file`)return XCe(e,o,a,n,{isProjectScope:i!==void 0});let c;try{c=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}try{v(pe(o),{recursive:!0})}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}let l={action:`written`},u;try{r$(`${o}.lock`,()=>{let t=bCe(o).writePath;if(v(pe(t),{recursive:!0}),e.format===`toml`){let n=KCe(R7(),t,e.topLevelKey,a,c);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason);return}if(e.format===`yaml`){let n=qCe(t,e.topLevelKey,a,c);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason);return}let n=GCe(t,e.topLevelKey,a,c,e.serverMapSubKey);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason)},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){u=e instanceof Error?e:Error(String(e))}return u?{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:u.message,...i===void 0?{}:{configScope:`project`}}:l.action===`declined`?{editorId:e.id,label:e.label,action:`declined`,configPath:o,serverName:a,declineReason:l.declineReason,...i===void 0?{}:{configScope:`project`}}:{editorId:e.id,label:e.label,action:l.action,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}}}const YCe={pi:cCe};function XCe(e,t,n,r,i){let a=i.isProjectScope?{configScope:`project`}:{},o=r=>({editorId:e.id,label:e.label,action:`failed`,configPath:t,serverName:n,error:r instanceof Error?r.message:String(r),...a}),s=YCe[e.id];if(!s)return o(Error(`No managed-file builder registered for editor "${e.id}" (format: 'file' targets need a MANAGED_FILE_BUILDERS entry).`));let c;try{c=s(r)}catch(e){return o(e)}try{v(pe(t),{recursive:!0})}catch(e){return o(e)}let l={action:`written`};try{r$(`${t}.lock`,()=>{let e=null;try{e=S(t,`utf-8`)}catch{e=null}if(e===c){l.action=`overwritten`;return}n$(t,c,e===null?void 0:{mode:X7(t)}),l.action=e===null?`written`:`overwritten`},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){return o(e)}return{editorId:e.id,label:e.label,action:l.action,configPath:t,serverName:n,...a}}async function ZCe(e){let t=wSe(e.editors).filter(e=>e.scope===`global`),n={mode:`published`,skipAvailabilityCheck:!0};return t.map(t=>s9(t,``,n,e.home))}function c9(e,t,n,r){let i=u9(e,t,n,r);return i.kind===`present`?i.entry:null}function l9(e,t,n,r){let i=a9(e,t,r);if(!F7(i))return{kind:`no-entry`};let a=i[n];return F7(a)?{kind:`present`,entry:a}:{kind:`no-entry`}}function u9(e,t,n,r){let i;try{i=r??e.configPath(t,n)}catch{return{kind:`absent`}}if(!g(i))return{kind:`absent`};try{if(ee(i).size>e9)return{kind:`decline`,reason:`oversize`}}catch{return{kind:`decline`,reason:`unparseable`}}let a;try{a=S(i,`utf-8`)}catch{return{kind:`decline`,reason:`unparseable`}}if(a.trim()===``)return{kind:`absent`};if(e.format===`file`)return{kind:`present`,entry:sCe(a)};let o=e.serverName(t);if(e.format===`toml`){let t;try{t=R7().parseToObject(a)}catch{return{kind:`decline`,reason:`unparseable`}}return l9(t,e.topLevelKey,o,e.serverMapSubKey)}if(e.format===`yaml`){let t=(0,Kt.parseDocument)(a.charCodeAt(0)===65279?a.slice(1):a);return t.errors.length>0?{kind:`decline`,reason:`unparseable`}:l9(t.toJS()??{},e.topLevelKey,o,e.serverMapSubKey)}let s=Z7(a);return s?Q7(s,e.topLevelKey)>1?{kind:`decline`,reason:`duplicate-container`}:l9(m6(s),e.topLevelKey,o,e.serverMapSubKey):{kind:`decline`,reason:`unparseable`}}function QCe(e,t){let n=[];for(let r of V5)o9(c7[r],e,t)&&n.push(r);return n}function $Ce(e,t,n){let r=c7[e],i=e===`opencode`?pSe:fSe,a=[],o=r.projectConfigPath?.(t);o!==void 0&&a.push({scope:`project`,configPath:o});try{a.push({scope:`user`,configPath:r.configPath(t,n)})}catch{}for(let o of a){let a=c9(r,t,n,o.configPath);if(a!==null&&i(a))return{editorId:e,scope:o.scope,configPath:o.configPath}}return null}function d9(){return N(O(),`.ok`,`bug-reports`)}function ewe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=d9(),r=`${t}-bugreport`,i=N(n,`${r}.zip`);for(let e=2;g(i);e+=1)i=N(n,`${r}-${e}.zip`);return i}function f9(e,t){let n=N(e,`.ok`,`config.yml`);if(g(n))try{let e=S(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 g(N(e,`.ok`))?Ae(`sha256`).update(ve(e)).digest(`hex`).slice(0,12):null}function twe(){let e={timestamp:new Date().toISOString(),platform:k(),osType:A(),osRelease:ce(),hostname:`[redacted]`,uptime:j(),freeMem:oe(),totalMem:ue(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=l(`sw_vers -productVersion 2>/dev/null`,A3({encoding:`utf8`})).trim()}catch{}try{let t=N(__dirname,`..`,`..`,`package.json`);g(t)&&(e.okVersion=JSON.parse(S(t,`utf8`)).version)}catch{}return e}const nwe=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function p9(e){let t=fe(e);return nwe.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function rwe(e,t){return h9(e,t).files}const iwe=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function m9(e,t=`com.inkeep.open-knowledge`){let n=N(e,`${t}.ShipIt`);return g(n)?iwe.map(e=>N(n,e)).filter(e=>g(e)):[]}function h9(e,t){if(!g(t))return{files:[],excludedByProjectSlug:0};let n=C(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>N(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(p9),i=[],a=r.filter(t=>{try{return S(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=>!p9(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function awe(e){let t=N(e,`.ok`,`local`);return g(t)?{files:[`server.lock`,`last-spawn-error.log`,fX].map(e=>N(t,e)).filter(e=>g(e))}:{files:[]}}function owe(e){let t=N(e,`.ok`,`local`,`logs`);return g(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>N(t,e)).filter(e=>g(e))}:{files:[]}}function g9(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=yo(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 _9(e){for(let t of e.files)try{g9({zipfile:e.zipfile,name:`${e.prefix}/${fe(t)}`,content:S(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 swe(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??N(O(),`.ok`,`logs`),o=t.projectDir?f9(t.projectDir,i):null;v(pe(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=twe();s.desktop=t.desktop??null,s.language=t.language??null;let{files:c,excludedByProjectSlug:l}=h9(o,a),{files:u}=t.projectDir?awe(t.projectDir):{files:[]},{files:d}=t.projectDir?owe(t.projectDir):{files:[]},f=t.shipItLogFiles??[];i?.info({logFileCount:c.length,logFilesExcludedByProjectSlug:l,lockFileCount:u.length,localSinkFileCount:d.length,shipItLogFileCount:f.length},`files collected`);let p=[],m=[],{ZipFile:g}=await import(`./yazl-BlMyAOcT.mjs`).then(t=>e(t.t(),1)),_=new g;_9({zipfile:_,files:[...c,...f],prefix:`logs`,redact:n,bundleFiles:m,redactions:p,logger:i}),_9({zipfile:_,files:u,prefix:`lockdir`,redact:n,bundleFiles:m,redactions:p,logger:i}),_9({zipfile:_,files:d,prefix:`local-logs`,redact:n,bundleFiles:m,redactions:p,logger:i});for(let e of t.extraFiles??[])try{let t=S(e.sourcePath),n=`extra/${e.zipName??fe(e.sourcePath)}`;_.addBuffer(t,n),m.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&g9({zipfile:_,name:`note.txt`,content:t.note,redact:n,bundleFiles:m,redactions:p});let y=JSON.stringify(s,null,2);_.addBuffer(Buffer.from(y,`utf8`),`sysinfo.json`),m.push(`sysinfo.json`);let b={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:m,redactions:p,sysinfo:s};_.addBuffer(Buffer.from(JSON.stringify(b,null,2),`utf8`),`MANIFEST.json`);let x=p.reduce((e,t)=>e+t.lineCount,0),C=new Set(f.map(e=>`logs/${fe(e)}`)),w=m.filter(e=>C.has(e)),T=o?m.filter(e=>e.startsWith(`logs/`)&&!p9(e)&&!C.has(e)):[],E=[`# Bug Report Bundle`,``,`Generated: ${b.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${b.disciplineVersion}`,``,`## Contents`,``,...m.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}`),``]:[],...w.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:`,...w.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${qne.join(`, `)}`,x>0?`${x} line(s) were scrubbed across ${p.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(`
|
|
1508
|
-
`);_.addBuffer(Buffer.from(E,`utf8`),`README.md`),_.end();let D=h(r);return _.outputStream.pipe(D),await new Promise((e,t)=>{D.on(`close`,e),D.on(`error`,t)}),i?.info({bundlePath:r,fileCount:m.length,redactionCount:x},`bundle written`),{zipPath:r,summary:{projectSlug:o,files:m,redactions:p,redactedLineCount:x,generatedAt:b.generatedAt}}}function
|
|
1507
|
+
`));let p=`${a?``:``}${d}`;return p!==i&&n$(e,p,{mode:X7(e)}),{kind:l?`overwritten`:`written`}}const JCe=`open-knowledge-ui`;function o9(e,t,n){try{return g(e.detectPath?.(t,n)??pe(e.configPath(t,n)))}catch{return!1}}function YCe(e,t,n){try{let r=ve(pe(e.configPath(t,n))),i=ve(e.detectPath?.(t,n)??r);return i===r||r.startsWith(i+ye)}catch{return!1}}function s9(e,t,n,r,i){let a=e.serverName(t),o;try{o=i??e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:a,error:t instanceof Error?t.message:String(t)}}let s=!n.skipAvailabilityCheck||e.offerOnlyWhenDetected===!0||YCe(e,t,r);if(!i&&s&&!o9(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:o,serverName:a};if(i!==void 0)try{D7(o,t)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),configScope:`project`}}if(e.format===`file`)return ZCe(e,o,a,n,{isProjectScope:i!==void 0});let c;try{c=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}try{v(pe(o),{recursive:!0})}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}let l={action:`written`},u;try{r$(`${o}.lock`,()=>{let t=bCe(o).writePath;if(v(pe(t),{recursive:!0}),e.format===`toml`){let n=KCe(R7(),t,e.topLevelKey,a,c);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason);return}if(e.format===`yaml`){let n=qCe(t,e.topLevelKey,a,c);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason);return}let n=GCe(t,e.topLevelKey,a,c,e.serverMapSubKey);l.action=n.kind,n.kind===`declined`&&(l.declineReason=n.reason)},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){u=e instanceof Error?e:Error(String(e))}return u?{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:u.message,...i===void 0?{}:{configScope:`project`}}:l.action===`declined`?{editorId:e.id,label:e.label,action:`declined`,configPath:o,serverName:a,declineReason:l.declineReason,...i===void 0?{}:{configScope:`project`}}:{editorId:e.id,label:e.label,action:l.action,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}}}const XCe={pi:cCe};function ZCe(e,t,n,r,i){let a=i.isProjectScope?{configScope:`project`}:{},o=r=>({editorId:e.id,label:e.label,action:`failed`,configPath:t,serverName:n,error:r instanceof Error?r.message:String(r),...a}),s=XCe[e.id];if(!s)return o(Error(`No managed-file builder registered for editor "${e.id}" (format: 'file' targets need a MANAGED_FILE_BUILDERS entry).`));let c;try{c=s(r)}catch(e){return o(e)}try{v(pe(t),{recursive:!0})}catch(e){return o(e)}let l={action:`written`};try{r$(`${t}.lock`,()=>{let e=null;try{e=S(t,`utf-8`)}catch{e=null}if(e===c){l.action=`overwritten`;return}n$(t,c,e===null?void 0:{mode:X7(t)}),l.action=e===null?`written`:`overwritten`},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){return o(e)}return{editorId:e.id,label:e.label,action:l.action,configPath:t,serverName:n,...a}}async function QCe(e){let t=wSe(e.editors).filter(e=>e.scope===`global`),n={mode:`published`,skipAvailabilityCheck:!0};return t.map(t=>s9(t,``,n,e.home))}function c9(e,t,n,r){let i=u9(e,t,n,r);return i.kind===`present`?i.entry:null}function l9(e,t,n,r){let i=a9(e,t,r);if(!F7(i))return{kind:`no-entry`};let a=i[n];return F7(a)?{kind:`present`,entry:a}:{kind:`no-entry`}}function u9(e,t,n,r){let i;try{i=r??e.configPath(t,n)}catch{return{kind:`absent`}}if(!g(i))return{kind:`absent`};try{if(ee(i).size>e9)return{kind:`decline`,reason:`oversize`}}catch{return{kind:`decline`,reason:`unparseable`}}let a;try{a=S(i,`utf-8`)}catch{return{kind:`decline`,reason:`unparseable`}}if(a.trim()===``)return{kind:`absent`};if(e.format===`file`)return{kind:`present`,entry:sCe(a)};let o=e.serverName(t);if(e.format===`toml`){let t;try{t=R7().parseToObject(a)}catch{return{kind:`decline`,reason:`unparseable`}}return l9(t,e.topLevelKey,o,e.serverMapSubKey)}if(e.format===`yaml`){let t=(0,Kt.parseDocument)(a.charCodeAt(0)===65279?a.slice(1):a);return t.errors.length>0?{kind:`decline`,reason:`unparseable`}:l9(t.toJS()??{},e.topLevelKey,o,e.serverMapSubKey)}let s=Z7(a);return s?Q7(s,e.topLevelKey)>1?{kind:`decline`,reason:`duplicate-container`}:l9(m6(s),e.topLevelKey,o,e.serverMapSubKey):{kind:`decline`,reason:`unparseable`}}function $Ce(e,t){let n=[];for(let r of V5)o9(c7[r],e,t)&&n.push(r);return n}function ewe(e,t,n){let r=c7[e],i=e===`opencode`?pSe:fSe,a=[],o=r.projectConfigPath?.(t);o!==void 0&&a.push({scope:`project`,configPath:o});try{a.push({scope:`user`,configPath:r.configPath(t,n)})}catch{}for(let o of a){let a=c9(r,t,n,o.configPath);if(a!==null&&i(a))return{editorId:e,scope:o.scope,configPath:o.configPath}}return null}function d9(){return N(O(),`.ok`,`bug-reports`)}function twe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=d9(),r=`${t}-bugreport`,i=N(n,`${r}.zip`);for(let e=2;g(i);e+=1)i=N(n,`${r}-${e}.zip`);return i}function f9(e,t){let n=N(e,`.ok`,`config.yml`);if(g(n))try{let e=S(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 g(N(e,`.ok`))?Ae(`sha256`).update(ve(e)).digest(`hex`).slice(0,12):null}function nwe(){let e={timestamp:new Date().toISOString(),platform:k(),osType:A(),osRelease:ce(),hostname:`[redacted]`,uptime:j(),freeMem:oe(),totalMem:ue(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=l(`sw_vers -productVersion 2>/dev/null`,A3({encoding:`utf8`})).trim()}catch{}try{let t=N(__dirname,`..`,`..`,`package.json`);g(t)&&(e.okVersion=JSON.parse(S(t,`utf8`)).version)}catch{}return e}const rwe=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function p9(e){let t=fe(e);return rwe.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function iwe(e,t){return h9(e,t).files}const awe=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function m9(e,t=`com.inkeep.open-knowledge`){let n=N(e,`${t}.ShipIt`);return g(n)?awe.map(e=>N(n,e)).filter(e=>g(e)):[]}function h9(e,t){if(!g(t))return{files:[],excludedByProjectSlug:0};let n=C(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>N(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(p9),i=[],a=r.filter(t=>{try{return S(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=>!p9(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function owe(e){let t=N(e,`.ok`,`local`);return g(t)?{files:[`server.lock`,`last-spawn-error.log`,fX].map(e=>N(t,e)).filter(e=>g(e))}:{files:[]}}function swe(e){let t=N(e,`.ok`,`local`,`logs`);return g(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>N(t,e)).filter(e=>g(e))}:{files:[]}}function g9(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=yo(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 _9(e){for(let t of e.files)try{g9({zipfile:e.zipfile,name:`${e.prefix}/${fe(t)}`,content:S(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 cwe(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??N(O(),`.ok`,`logs`),o=t.projectDir?f9(t.projectDir,i):null;v(pe(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=nwe();s.desktop=t.desktop??null,s.language=t.language??null;let{files:c,excludedByProjectSlug:l}=h9(o,a),{files:u}=t.projectDir?owe(t.projectDir):{files:[]},{files:d}=t.projectDir?swe(t.projectDir):{files:[]},f=t.shipItLogFiles??[];i?.info({logFileCount:c.length,logFilesExcludedByProjectSlug:l,lockFileCount:u.length,localSinkFileCount:d.length,shipItLogFileCount:f.length},`files collected`);let p=[],m=[],{ZipFile:g}=await import(`./yazl-BlMyAOcT.mjs`).then(t=>e(t.t(),1)),_=new g;_9({zipfile:_,files:[...c,...f],prefix:`logs`,redact:n,bundleFiles:m,redactions:p,logger:i}),_9({zipfile:_,files:u,prefix:`lockdir`,redact:n,bundleFiles:m,redactions:p,logger:i}),_9({zipfile:_,files:d,prefix:`local-logs`,redact:n,bundleFiles:m,redactions:p,logger:i});for(let e of t.extraFiles??[])try{let t=S(e.sourcePath),n=`extra/${e.zipName??fe(e.sourcePath)}`;_.addBuffer(t,n),m.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&g9({zipfile:_,name:`note.txt`,content:t.note,redact:n,bundleFiles:m,redactions:p});let y=JSON.stringify(s,null,2);_.addBuffer(Buffer.from(y,`utf8`),`sysinfo.json`),m.push(`sysinfo.json`);let b={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:m,redactions:p,sysinfo:s};_.addBuffer(Buffer.from(JSON.stringify(b,null,2),`utf8`),`MANIFEST.json`);let x=p.reduce((e,t)=>e+t.lineCount,0),C=new Set(f.map(e=>`logs/${fe(e)}`)),w=m.filter(e=>C.has(e)),T=o?m.filter(e=>e.startsWith(`logs/`)&&!p9(e)&&!C.has(e)):[],E=[`# Bug Report Bundle`,``,`Generated: ${b.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${b.disciplineVersion}`,``,`## Contents`,``,...m.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}`),``]:[],...w.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:`,...w.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${qne.join(`, `)}`,x>0?`${x} line(s) were scrubbed across ${p.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(`
|
|
1508
|
+
`);_.addBuffer(Buffer.from(E,`utf8`),`README.md`),_.end();let D=h(r);return _.outputStream.pipe(D),await new Promise((e,t)=>{D.on(`close`,e),D.on(`error`,t)}),i?.info({bundlePath:r,fileCount:m.length,redactionCount:x},`bundle written`),{zipPath:r,summary:{projectSlug:o,files:m,redactions:p,redactedLineCount:x,generatedAt:b.generatedAt}}}function lwe(e){return Y5(e)||Q5(e)||oCe(e)}const v9=10*1024*1024;function uwe(e,t,n,r){let i=u9(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(!lwe(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);return e.format===`file`?(D(a,{force:!0}),{kind:`removed`}):e.format===`toml`?pwe(a,o):e.format===`yaml`?fwe(a,e.topLevelKey,o):dwe(a,e.topLevelKey,e.serverMapSubKey,o)}function dwe(e,t,n,r){let i;try{i=S(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>v9)return{kind:`declined`,reason:`oversize`};let{text:a,changed:o}=ICe(i,r9(t,n,r));return o?(n$(e,a,{mode:X7(e)}),{kind:`removed`}):{kind:`not-present`}}function fwe(e,t,n){let r;try{r=S(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>v9)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=(0,Kt.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=Y7(a);a.trim()===``||a.endsWith(`
|
|
1509
1509
|
`)?c.endsWith(`
|
|
1510
1510
|
`)||(c=`${c}\n`):c=c.replace(/\n+$/,``),l&&(c=c.replace(/\r\n/g,`
|
|
1511
1511
|
`).replace(/\n/g,`\r
|
|
1512
|
-
`));let u=`${i?``:``}${c}`;return u!==r&&n$(e,u,{mode:X7(e)}),{kind:`removed`}}function
|
|
1512
|
+
`));let u=`${i?``:``}${c}`;return u!==r&&n$(e,u,{mode:X7(e)}),{kind:`removed`}}function pwe(e,t){let n=R7();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=S(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,o=Y7(a),s=a.trim()===``||a.endsWith(`
|
|
1513
1513
|
`),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(`
|
|
1514
1514
|
`)||(l=`${l}\n`):l=l.replace(/\n+$/,``),o&&(l=l.replace(/\r\n/g,`
|
|
1515
1515
|
`).replace(/\n/g,`\r
|
|
1516
|
-
`));let u=`${i?``:``}${l}`;return u!==r&&n$(e,u,{mode:X7(e)}),{kind:`removed`}}function pwe(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}function mwe(e){let{priorCommand:t,priorArgs:n}=y9(e.priorEntry);return{event:`mcp-config-migrate`,scope:e.scope,surface:e.surface,editorId:e.editorId,configPath:e.configPath,priorCommand:t,priorArgs:n}}function y9(e){return{priorCommand:typeof e.command==`string`?e.command.slice(0,200):null,priorArgs:Array.isArray(e.args)?e.args.slice(0,10).map(e=>typeof e==`string`?e.slice(0,200):e):null}}function hwe(e,t,n={}){let r=jye(e,t);if(!g(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(S(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!Eve(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??v3)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};if(typeof a.machineId==`string`)return a.machineId===(n.machineId??Aye())?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a};let o=n.host??se();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function gwe(e,t,n={}){let r=n.isAlive??v3,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 _we(e){let t=e.inspect??(t=>hwe(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=gwe(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 b9(e){if(!g(e))return{value:null,path:e,source:null,doc:null};let t;try{t=S(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,Kt.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return F7(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function vwe(e,t){return e.map(e=>{let n=e.path.map(e=>typeof e==`symbol`?String(e):e),r={path:n,message:e.message,issueCode:e.code};if(t.doc!==null&&t.source!==null){let e=Gc({file:t.path,source:t.source,doc:t.doc,path:n});if(e!==void 0)return{...r,source:e}}return r})}function ywe(e){let t=e??process.cwd(),n=[],r=[],i=[],a=[],o=a$(`user`,t),s=t$({absPath:o});r.push(...s.diagnostics),!s.valid&&s.sidelinedTo!==void 0&&i.push({from:o,to:s.sidelinedTo}),s.valid&&s.source!==void 0&&n.push(o);let c=(e,t=!1)=>{let i=b9(e);if(i.diagnostic!==void 0&&r.push(i.diagnostic),i.value===null)return{};let o=_l({value:i.value,file:i.path,source:i.source,doc:i.doc});r.push(...o),n.push(e);let s=o.length>0?yl(i.value):i.value;return t&&a.push(...qc({value:s,file:i.path,source:i.source,doc:i.doc})),s},l=ve(t,`.ok`,`config.yml`),u=c(l,!0),d=c(a$(`project-local`,t)),f=ll(s.value,u,d),p=cSe.safeParse(f);if(!p.success){let e=b9(l),t={code:`SCHEMA_INVALID`,issues:vwe(p.error.issues,e)};throw Error(cl(t))}return{config:p.data,sources:n,diagnostics:r,sidelined:i,ignoredCommittedKeys:a}}function x9(e){return e.replace(/:\d+$/,``)}function S9(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:x9(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:x9(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:x9(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}function C9(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=Ll(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`).filter(e=>e.length>0);if(r.length<5||r[2]!==`blob`)return null;let i,a,o,s;try{i=decodeURIComponent(r[0]),a=decodeURIComponent(r[1]),o=decodeURIComponent(r[3]),s=r.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!i||!a||!o||s.length===0||s.some(e=>e.length===0)?null:{host:n,owner:i,repo:a,branch:o,path:s.join(`/`)}}function w9(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=Ll(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`);if(r.length<5||r[0]!==``||r[3]!==`tree`)return null;let i=r.slice(5);i.length===1&&i[0]===``&&i.pop();let a,o,s,c;try{a=decodeURIComponent(r[1]),o=decodeURIComponent(r[2]),s=decodeURIComponent(r[4]),c=i.map(e=>decodeURIComponent(e))}catch{return null}return!a||!o||!s||c.some(e=>e.length===0)?null:{host:n,owner:a,repo:o,branch:s,path:c.join(`/`)}}function bwe(e){let t=C9(e);if(t)return{kind:`doc`,...t};let n=w9(e);return n?{kind:`folder`,...n}:null}async function xwe(e,t){let n,r;try{n=await Te(ve(e)),r=await Te(ve(pe(e)))}catch{return{kind:`not-git`}}if(!T9(n,r))return{kind:`symlink-escape`};let i=N(n,`.git`),a;try{a=ee(i)}catch{return{kind:`not-git`}}if(a.isDirectory()){let e;try{e=await Te(i)}catch{return{kind:`not-git`}}if(!T9(e,n))return{kind:`symlink-escape`}}else if(!a.isFile())return{kind:`not-git`};let o=PX(n);if(o.kind!==`repository`)return{kind:`not-git`};let s=o.repository.readRemoteUrl(`origin`);if(s.kind===`unreadable`)return{kind:`not-git`};if(s.kind===`absent`)return s.reason===`config-missing`?{kind:`not-git`}:{kind:`no-origin`};let c=s.url,l=S9(c);if(l===null)return{kind:`non-github`};let u=Ll(l.hostname);if(u===null)return{kind:`non-github`};let d=u===t.host.toLowerCase(),f=l.owner.toLowerCase()===t.owner.toLowerCase(),p=l.name.toLowerCase()===t.repo.toLowerCase();return!d&&f&&p?{kind:`wrong-host`,actualHost:u}:!d||!f||!p?{kind:`wrong-repo`,actualOwner:l.owner,actualRepo:l.name}:{kind:`ok`,gitRemoteUrl:`https://${u}/${l.owner}/${l.name}.git`}}function T9(e,t){if(e===t)return!0;let n=_e(t,e);return n.length>0&&!n.startsWith(`..`)&&!M(n)}const Swe=`# >>> open-knowledge cli >>>`,Cwe=`# <<< open-knowledge cli <<<`,wwe=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function Twe(e){return N(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}[...y6.map(e=>v6[e])];function Ewe(e){if(!M(e))throw Error(`skill cleanup requires an absolute home directory; got ${JSON.stringify(e)}`);let t=ve(e);if(t===ye||pe(t)===t)throw Error(`skill cleanup refuses to operate on the filesystem root (${t})`);return t}function E9(e){let t=Ewe(e),n=[];for(let e of y6){let r=v6[e];n.push({path:N(t,`.agents`,`skills`,r),bundleId:e,scope:`central`});for(let i of Nl)n.push({path:N(t,i.skillsRoot,r),bundleId:e,scope:`host`,hostDir:i.hostDir})}return n}function Dwe(e,t){let n=[];for(let r of E9(e))if(r.bundleId===t)try{D(r.path,{recursive:!0,force:!0})}catch(e){n.push(e instanceof Error?e:Error(String(e)))}if(n.length>0)throw AggregateError(n,`Failed to remove ${n.length} path(s) for ${t}`)}const Owe=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=s9(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=A7(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function kwe(e,t,n={},r=Owe){let i=[];for(let a of t){let t=c7[a];for(let a of r)i.push(a.write(t,e,n))}return i}function Awe(e,t,n={}){return{integrations:kwe(e,t,n)}}function jwe(e){return t$({absPath:a$(`user`,e,e),sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function D9({home:e=O(),env:t=process.env}={}){let n=jwe(e),{override:r,preferenceList:i}=Vme(t),{locale:a,source:o}=bw({override:r,storedPreference:n,supportedLocales:Vo,preferenceList:i,autoDetectableLocales:sre});return{preference:n,locale:a,source:o,systemLanguages:i}}function O9(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function Mwe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function k9(e,t){if(typeof e==`string`)return O9(e,t.contentDir);if(Array.isArray(e))return e.map(e=>k9(e,t));if(!Mwe(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=k9(i,t);return n}function A9(e,t){let n=S(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
1516
|
+
`));let u=`${i?``:``}${l}`;return u!==r&&n$(e,u,{mode:X7(e)}),{kind:`removed`}}function mwe(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}function hwe(e){let{priorCommand:t,priorArgs:n}=y9(e.priorEntry);return{event:`mcp-config-migrate`,scope:e.scope,surface:e.surface,editorId:e.editorId,configPath:e.configPath,priorCommand:t,priorArgs:n}}function y9(e){return{priorCommand:typeof e.command==`string`?e.command.slice(0,200):null,priorArgs:Array.isArray(e.args)?e.args.slice(0,10).map(e=>typeof e==`string`?e.slice(0,200):e):null}}function gwe(e,t,n={}){let r=jye(e,t);if(!g(r))return{status:`missing`,lockPath:r};let i;try{i=JSON.parse(S(r,`utf-8`))}catch{return{status:`corrupt`,lockPath:r}}if(!i||typeof i!=`object`||!Eve(i.pid))return{status:`corrupt`,lockPath:r};let a=i;if(!(n.isAlive??v3)(a.pid))return{status:`dead-pid`,lockPath:r,lock:a};if(typeof a.machineId==`string`)return a.machineId===(n.machineId??Aye())?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a};let o=n.host??se();return a.hostname===o?{status:`alive`,lockPath:r,lock:a}:{status:`foreign-host`,lockPath:r,lock:a}}function _we(e,t,n={}){let r=n.isAlive??v3,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 vwe(e){let t=e.inspect??(t=>gwe(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=_we(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 b9(e){if(!g(e))return{value:null,path:e,source:null,doc:null};let t;try{t=S(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,Kt.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return F7(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function ywe(e,t){return e.map(e=>{let n=e.path.map(e=>typeof e==`symbol`?String(e):e),r={path:n,message:e.message,issueCode:e.code};if(t.doc!==null&&t.source!==null){let e=Gc({file:t.path,source:t.source,doc:t.doc,path:n});if(e!==void 0)return{...r,source:e}}return r})}function bwe(e){let t=e??process.cwd(),n=[],r=[],i=[],a=[],o=a$(`user`,t),s=t$({absPath:o});r.push(...s.diagnostics),!s.valid&&s.sidelinedTo!==void 0&&i.push({from:o,to:s.sidelinedTo}),s.valid&&s.source!==void 0&&n.push(o);let c=(e,t=!1)=>{let i=b9(e);if(i.diagnostic!==void 0&&r.push(i.diagnostic),i.value===null)return{};let o=_l({value:i.value,file:i.path,source:i.source,doc:i.doc});r.push(...o),n.push(e);let s=o.length>0?yl(i.value):i.value;return t&&a.push(...qc({value:s,file:i.path,source:i.source,doc:i.doc})),s},l=ve(t,`.ok`,`config.yml`),u=c(l,!0),d=c(a$(`project-local`,t)),f=ll(s.value,u,d),p=cSe.safeParse(f);if(!p.success){let e=b9(l),t={code:`SCHEMA_INVALID`,issues:ywe(p.error.issues,e)};throw Error(cl(t))}return{config:p.data,sources:n,diagnostics:r,sidelined:i,ignoredCommittedKeys:a}}function x9(e){return e.replace(/:\d+$/,``)}function S9(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:x9(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:x9(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:x9(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}function C9(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=Ll(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`).filter(e=>e.length>0);if(r.length<5||r[2]!==`blob`)return null;let i,a,o,s;try{i=decodeURIComponent(r[0]),a=decodeURIComponent(r[1]),o=decodeURIComponent(r[3]),s=r.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!i||!a||!o||s.length===0||s.some(e=>e.length===0)?null:{host:n,owner:i,repo:a,branch:o,path:s.join(`/`)}}function w9(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`https:`)return null;let n=Ll(t.hostname);if(n===null)return null;let r=t.pathname.split(`/`);if(r.length<5||r[0]!==``||r[3]!==`tree`)return null;let i=r.slice(5);i.length===1&&i[0]===``&&i.pop();let a,o,s,c;try{a=decodeURIComponent(r[1]),o=decodeURIComponent(r[2]),s=decodeURIComponent(r[4]),c=i.map(e=>decodeURIComponent(e))}catch{return null}return!a||!o||!s||c.some(e=>e.length===0)?null:{host:n,owner:a,repo:o,branch:s,path:c.join(`/`)}}function xwe(e){let t=C9(e);if(t)return{kind:`doc`,...t};let n=w9(e);return n?{kind:`folder`,...n}:null}async function Swe(e,t){let n,r;try{n=await Te(ve(e)),r=await Te(ve(pe(e)))}catch{return{kind:`not-git`}}if(!T9(n,r))return{kind:`symlink-escape`};let i=N(n,`.git`),a;try{a=ee(i)}catch{return{kind:`not-git`}}if(a.isDirectory()){let e;try{e=await Te(i)}catch{return{kind:`not-git`}}if(!T9(e,n))return{kind:`symlink-escape`}}else if(!a.isFile())return{kind:`not-git`};let o=PX(n);if(o.kind!==`repository`)return{kind:`not-git`};let s=o.repository.readRemoteUrl(`origin`);if(s.kind===`unreadable`)return{kind:`not-git`};if(s.kind===`absent`)return s.reason===`config-missing`?{kind:`not-git`}:{kind:`no-origin`};let c=s.url,l=S9(c);if(l===null)return{kind:`non-github`};let u=Ll(l.hostname);if(u===null)return{kind:`non-github`};let d=u===t.host.toLowerCase(),f=l.owner.toLowerCase()===t.owner.toLowerCase(),p=l.name.toLowerCase()===t.repo.toLowerCase();return!d&&f&&p?{kind:`wrong-host`,actualHost:u}:!d||!f||!p?{kind:`wrong-repo`,actualOwner:l.owner,actualRepo:l.name}:{kind:`ok`,gitRemoteUrl:`https://${u}/${l.owner}/${l.name}.git`}}function T9(e,t){if(e===t)return!0;let n=_e(t,e);return n.length>0&&!n.startsWith(`..`)&&!M(n)}const Cwe=`# >>> open-knowledge cli >>>`,wwe=`# <<< open-knowledge cli <<<`,Twe=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function Ewe(e){return N(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}[...y6.map(e=>v6[e])];function Dwe(e){if(!M(e))throw Error(`skill cleanup requires an absolute home directory; got ${JSON.stringify(e)}`);let t=ve(e);if(t===ye||pe(t)===t)throw Error(`skill cleanup refuses to operate on the filesystem root (${t})`);return t}function E9(e){let t=Dwe(e),n=[];for(let e of y6){let r=v6[e];n.push({path:N(t,`.agents`,`skills`,r),bundleId:e,scope:`central`});for(let i of Nl)n.push({path:N(t,i.skillsRoot,r),bundleId:e,scope:`host`,hostDir:i.hostDir})}return n}function Owe(e,t){let n=[];for(let r of E9(e))if(r.bundleId===t)try{D(r.path,{recursive:!0,force:!0})}catch(e){n.push(e instanceof Error?e:Error(String(e)))}if(n.length>0)throw AggregateError(n,`Failed to remove ${n.length} path(s) for ${t}`)}const kwe=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=s9(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=A7(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function Awe(e,t,n={},r=kwe){let i=[];for(let a of t){let t=c7[a];for(let a of r)i.push(a.write(t,e,n))}return i}function jwe(e,t,n={}){return{integrations:Awe(e,t,n)}}function Mwe(e){return t$({absPath:a$(`user`,e,e),sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function D9({home:e=O(),env:t=process.env}={}){let n=Mwe(e),{override:r,preferenceList:i}=Vme(t),{locale:a,source:o}=bw({override:r,storedPreference:n,supportedLocales:Vo,preferenceList:i,autoDetectableLocales:sre});return{preference:n,locale:a,source:o,systemLanguages:i}}function O9(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function Nwe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function k9(e,t){if(typeof e==`string`)return O9(e,t.contentDir);if(Array.isArray(e))return e.map(e=>k9(e,t));if(!Nwe(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=k9(i,t);return n}function A9(e,t){let n=S(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
1517
1517
|
`),i=n.split(`
|
|
1518
1518
|
`),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=k9(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}ne(e,r?`${a.join(`
|
|
1519
1519
|
`)}\n`:a.join(`
|
|
1520
1520
|
`))}function j9(e,t){let n=S(e,`utf-8`);if(n.trim().length!==0)try{let r=k9(JSON.parse(n),t),i=n.endsWith(`
|
|
1521
1521
|
`)?`
|
|
1522
|
-
`:``;ne(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=O9(n,t.contentDir);r!==n&&ne(e,r)}}function M9(e,t){let n=S(e,`utf-8`),r=O9(n,t.contentDir);r!==n&&ne(e,r)}function N9(e){try{return C(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>N(e,t.name))}catch{return[]}}const
|
|
1523
|
-
`)}\n`:null}catch{return null}}function
|
|
1524
|
-
`:`not-running (${C})\n`;if(ne(N(_,`state`,`server-status.txt`),oe),e.processDir&&g(e.processDir)){let t=N(_,`process`);v(t,{recursive:!0}),m(e.processDir,t,{recursive:!0})}let O=e.redact===!0;O&&
|
|
1522
|
+
`:``;ne(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=O9(n,t.contentDir);r!==n&&ne(e,r)}}function M9(e,t){let n=S(e,`utf-8`),r=O9(n,t.contentDir);r!==n&&ne(e,r)}function N9(e){try{return C(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>N(e,t.name))}catch{return[]}}const Pwe=new Set([`agent-presence.json`,`agent-effects.json`,`runtime.json`]);function P9(e){return/\.log\.\d+$/.test(e)}function Fwe(e){return e.endsWith(`.jsonl`)||e.endsWith(`.log`)||P9(e)}function Iwe(e){let t={contentDir:e.contentDir};for(let n of[`telemetry`,`logs`,`process`])for(let r of N9(N(e.stagingDir,n)))Fwe(r)?A9(r,t):r.endsWith(`.json`)?j9(r,t):M9(r,t);for(let n of N9(N(e.stagingDir,`state`))){let e=fe(n);n.endsWith(`.jsonl`)?A9(n,t):Pwe.has(e)?j9(n,t):M9(n,t)}}const F9=[`.ok`,`local`,`telemetry`],I9=[`.ok`,`local`,`logs`],L9=[`.ok`,`local`,`loss-capture`],R9=`spans-current.jsonl`,z9=`spans-prev.jsonl`,B9=`server-current.jsonl`,V9=`server-prev.jsonl`,H9=`loss-current.jsonl`,U9=`loss-prev.jsonl`;function Lwe(e){return N(e,...F9,R9)}function Rwe(e){return N(e,...F9,z9)}function zwe(e){return N(e,...I9,B9)}function Bwe(e){return N(e,...I9,V9)}function Vwe(e){return N(e,...L9,H9)}function Hwe(e){return N(e,...L9,U9)}const W9=1e3;async function Uwe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(W9)});return t.ok?await t.text():null}catch{return null}}async function Wwe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-effects`,{signal:AbortSignal.timeout(W9)});return t.ok?await t.text():null}catch{return null}}async function Gwe(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/watcher-recent`,{signal:AbortSignal.timeout(W9)});return t.ok?await t.text():null}catch{return null}}function Kwe(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(`
|
|
1523
|
+
`)}\n`:null}catch{return null}}function qwe(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`log`,`--oneline`,`-50`],A3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function Jwe(e){let t=N(e,`.git`,`ok`);if(!g(t))return null;let n=u(`git`,[`-C`,t,`for-each-ref`,`--sort=-creatordate`,`--count=50`,`--format=%(refname)%09%(creatordate:iso-strict)%09%(contents:subject)`,`refs/checkpoints/`],A3({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function G9(){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 Ywe(){return{nodeVersion:process.version,platform:k(),arch:ie()}}function Xwe(){return process.env.OTEL_SDK_DISABLED===`false`}function K9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function q9(e){if(!g(e))return{};let t;try{t=(0,Kt.parse)(S(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(!K9(t))return{};let n=t.telemetry;if(!K9(n))return{};let r=n.localSink;return K9(r)?r:{}}function J9(e){return typeof e==`boolean`?e:void 0}function Zwe(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function Y9(e){if(K9(e))return Zwe(e.maxBytes)}function Qwe(e){let t=q9(a$(`project`,e)),n=q9(a$(`project-local`,e));return{enabled:J9(n.enabled)??J9(t.enabled)??!0,spansMaxBytes:Y9(n.spans)??Y9(t.spans)??52428800,logsMaxBytes:Y9(n.logs)??Y9(t.logs)??26214400}}function $we(e){return Ae(`sha256`).update(e).digest(`hex`)}function eTe(e){let t=S(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function tTe(e){let t=S(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 X9(e,t){if(!g(e))return!1;try{return v(pe(t),{recursive:!0}),m(e,t),!0}catch{return!1}}function Z9(e){let t=[],n=e=>{let r=C(e,{withFileTypes:!0});for(let i of r){let r=N(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const nTe=new Set([`.jsonl`]);function Q9(e){let t=e.lastIndexOf(`.`);return t===-1?!1:nTe.has(e.slice(t))}const rTe=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function iTe(e){if(P9(e))return!0;let t=e.lastIndexOf(`.`);return t===-1?!1:rTe.has(e.slice(t))}function aTe(e){let t=[];for(let n of Z9(e)){let r=$9(e,n);if(!iTe(r))continue;let{redacted:i,patterns:a,lineCount:o}=yo(S(n,`utf-8`));a.length!==0&&(ne(n,i),t.push({file:r,lineCount:o,patterns:a}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function $9(e,t){return _e(e,t).split(ye).join(`/`)}async function oTe(e){let t=ve(e.contentDir),n=ve(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??Uwe,a=r.fetchAgentEffects??Wwe,o=r.fetchWatcherRecent??Gwe,s=r.readShadowHead??qwe,c=r.readCheckpointRefs??Jwe,l=r.now??(()=>new Date),u=r.okVersion??(()=>`0.58.4`),d=r.readDesktopEnv??G9,f=r.readLanguage??D9,p=r.readRuntime??Ywe,h=r.isOtlpPushEnabled??Xwe,_=y(N(le(),`ok-bundle-`));try{v(N(_,`telemetry`),{recursive:!0}),v(N(_,`logs`),{recursive:!0}),v(N(_,`state`),{recursive:!0}),X9(Lwe(n),N(_,`telemetry`,R9)),X9(Rwe(n),N(_,`telemetry`,z9)),X9(zwe(n),N(_,`logs`,B9)),X9(Bwe(n),N(_,`logs`,V9));for(let t of e.userLogFiles??[])X9(t,N(_,`logs`,fe(t)));let y=N(n,`.ok`,`local`),b=N(y,`server.lock`),x=`not-running`,C=`no server.lock`,w=null;if(g(b)){X9(b,N(_,`state`,`server.lock`));try{let e=S(b,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?w=t.port:C=`lock present but no port`}catch{C=`lock present but unparseable`}}if(w!==null){let e=await i(w);e===null?C=`agent-presence endpoint at :${w} unreachable`:(ne(N(_,`state`,`agent-presence.json`),e),x=`running`,C=``);let t=await a(w);t!==null&&ne(N(_,`state`,`agent-effects.json`),t);let n=await o(w);if(n!==null){let e=Kwe(n);e!==null&&ne(N(_,`state`,`watcher-recent.jsonl`),e)}}let T=s(t);T!==null&&ne(N(_,`state`,`shadow-head.txt`),T);let E=c(t);E!==null&&ne(N(_,`state`,`checkpoint-refs.txt`),E),X9(Vwe(n),N(_,`state`,H9)),X9(Hwe(n),N(_,`state`,U9)),X9(N(y,`last-spawn-error.log`),N(_,`state`,`last-spawn-error.log`)),X9(N(y,dX),N(_,`state`,dX)),X9(N(y,fX),N(_,`state`,fX));let te=p(),re=d(),ie=f(),ae={ok:{version:u(),nodeVersion:te.nodeVersion,platform:te.platform,arch:te.arch},host:{desktop:re,language:ie}};ne(N(_,`state`,`runtime.json`),`${JSON.stringify(ae,null,2)}\n`);let oe=x===`running`?`running
|
|
1524
|
+
`:`not-running (${C})\n`;if(ne(N(_,`state`,`server-status.txt`),oe),e.processDir&&g(e.processDir)){let t=N(_,`process`);v(t,{recursive:!0}),m(e.processDir,t,{recursive:!0})}let O=e.redact===!0;O&&Iwe({stagingDir:_,contentDir:t}),e.note&&ne(N(_,`note.txt`),e.note);let se=null;e.scrubSecrets===!0&&(se=aTe(_));for(let t of e.extraFiles??[])X9(t.sourcePath,N(_,`extra`,t.zipName??fe(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let k=Qwe(n),ce=Z9(_),le=[],ue=0,A=0;for(let e of ce){let t=$9(_,e),n=ee(e).size,r=Q9(t)?eTe(e):0;le.push({path:t,bytes:n,lines:r}),ue+=n,t.startsWith(`telemetry/`)&&Q9(t)&&(A+=tTe(e))}let j={applied:O};se!==null&&(j.secretScrub=se);let de={schemaVersion:2,createdAt:l().toISOString(),ok:{version:u(),nodeVersion:te.nodeVersion,platform:te.platform,arch:te.arch},host:{desktop:re,language:ie},contentDir:{pathSha256:$we(t),absolutePath:O?`<CONTENT_DIR>`:t},telemetry:{localSink:k,otlpPushEnabled:h()},redaction:j,serverStatus:x,files:le};ne(N(_,`manifest.json`),`${JSON.stringify(de,null,2)}\n`);let pe=ce.some(e=>{try{return S(e,`utf-8`).includes(t)}catch{return!1}}),me={totalBytes:ue,fileCount:le.length,docNameCount:A,contentDirVisible:pe,redacted:O},M=!1;return{stagingDir:_,manifest:de,summary:me,cleanup:()=>{M||(M=!0,D(_,{recursive:!0,force:!0}))}}}catch(e){throw D(_,{recursive:!0,force:!0}),e}}async function sTe(e){let{collected:t,outputPath:n}=e,r=pe(n);if(!g(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);let i=new Pye.ZipFile,a=Z9(t.stagingDir);for(let e of a){let n=$9(t.stagingDir,e);i.addFile(e,n)}i.end();let o=h(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 cTe(e,t){let n=N(e,`.ok`,`config.yml`);if(g(n))try{let t=(0,Kt.parse)(S(n,`utf-8`)),r=F7(t)?t.content:void 0,i=F7(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return ve(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 ve(e)}async function lTe(e,t,n,r){let i=f9(t,e.logger),a=await oTe({contentDir:cTe(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,userLogFiles:[...iwe(i,e.userLogsDir??N(O(),`.ok`,`logs`)),...m9(e.cachesDir??N(O(),`Library`,`Caches`))],deps:{readDesktopEnv:n,readLanguage:r,logger:e.logger}});try{v(pe(e.outputPath),{recursive:!0}),await sTe({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 uTe(e){let{projectDir:t}=e,n=e.readDesktopEnv??G9,r=e.readLanguage??D9;if(e.level===`full`&&t!==void 0)return lTe(e,t,n,r);let{zipPath:i,summary:a}=await cwe({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,shipItLogFiles:m9(e.cachesDir??N(O(),`Library`,`Caches`)),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}}}export{V5 as ALL_EDITOR_IDS,H5 as EDITOR_LABELS,c7 as EDITOR_TARGETS,lSe as HOSTS_WITH_USER_SKILL_DIR,JCe as LAUNCH_CONFIG_NAME,Cwe as PATH_SHIM_BEGIN,Twe as PATH_SHIM_BLOCK_RE,wwe as PATH_SHIM_END,DCe as addOkPathsToGitExclude,D7 as assertProjectPathSafe,Z5 as buildManagedServerEntry,mwe as buildMcpConfigDeclineEvent,hwe as buildMcpConfigMigrateEvent,u9 as classifyExistingMcpEntry,uTe as collectReportBundle,Xt as createTokenStore,twe as defaultBugReportZipPath,Be as detectGh,$Ce as detectInstalledEditors,CSe as editorConfigPathDisplay,SSe as editorEntryLocator,W7 as formatTrackedRemediation,ACe as getExcludedOkPaths,ECe as getNativeTomlMcpEditor,H7 as getOkArtifactPaths,Y5 as isEntryUpToDate,Q5 as isOwnManagedEntry,bwe as loadConfig,Qt as makeLazyProbeTokenStore,d9 as okBugReportsDir,C9 as parseGitHubBlobUrl,xwe as parseGitHubShareUrl,w9 as parseGitHubTreeUrl,S9 as parseGitUrl,Ewe as pathInstallMarkerPath,rCe as previewContent,ewe as probeOwnManagedEditorMcpEntry,U7 as probeTrackedOkPaths,c9 as readExistingMcpEntry,kCe as readSharingMode,jCe as readSkillsShared,yo as redactContent,OCe as removeOkPathsFromGitExclude,uwe as removeOwnMcpEntry,hCe as removeProjectSkill,Owe as removeUserGlobalSkillBundle,dCe as resolveProjectRoot,vwe as runStop,MCe as setSkillsShared,y9 as truncatePriorEntry,E9 as userGlobalSkillBundleTargets,Swe as validateLocalFolderForShare,s9 as writeEditorMcpConfig,jwe as writeProjectAiIntegrations,A7 as writeProjectSkill,QCe as writeUserMcpConfigs};
|
|
1525
1525
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./init-CFzjnMz4.mjs";export{e as runInit};
|