@inkeep/open-knowledge 0.49.0-beta.2 → 0.49.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.
- package/dist/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/{acp-harness-probe-ziMiy7xh.mjs → acp-harness-probe-DxBf-LTU.mjs} +2 -2
- package/dist/assets/skills/packs/codebase-wiki/SKILL.md +1 -1
- package/dist/assets/skills/packs/entity-vault/SKILL.md +2 -2
- package/dist/assets/skills/packs/knowledge-base/SKILL.md +6 -6
- package/dist/assets/skills/packs/knowledge-base/consolidate/SKILL.md +2 -2
- package/dist/assets/skills/packs/knowledge-base/research/SKILL.md +5 -5
- package/dist/assets/skills/packs/okf/SKILL.md +1 -1
- package/dist/assets/skills/packs/plain-notes/SKILL.md +1 -1
- package/dist/assets/skills/packs/software-lifecycle/SKILL.md +6 -6
- package/dist/assets/skills/packs/software-lifecycle/frame-a-proposal/SKILL.md +3 -3
- package/dist/assets/skills/packs/software-lifecycle/record-a-decision/SKILL.md +7 -7
- package/dist/assets/skills/packs/software-lifecycle/review-a-design/SKILL.md +4 -4
- package/dist/assets/skills/packs/software-lifecycle/write-a-postmortem/SKILL.md +2 -2
- package/dist/assets/skills/packs/software-lifecycle/write-a-spec/SKILL.md +5 -5
- package/dist/assets/skills/packs/worldbuilding/SKILL.md +1 -1
- package/dist/assets/skills/packs/writing-pipeline/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +3 -3
- package/dist/assets/skills/project/references/starter-packs.md +1 -1
- package/dist/cli.mjs +31 -31
- package/dist/config-schema.json +38 -0
- package/dist/config.user.schema.json +38 -0
- package/dist/constants-C_nRJliJ.mjs +2 -0
- package/dist/{fs-traced-Cq61rC8q.mjs → fs-traced-By5aY-RE.mjs} +2 -2
- package/dist/fs-traced-CkLhqsEn.mjs +1 -0
- package/dist/git-handle-BOyHOuUW.mjs +1 -0
- package/dist/{git-handle-DyGrpFVy.mjs → git-handle-CxyKwEl2.mjs} +2 -2
- package/dist/index.d.mts +17 -0
- package/dist/index.mjs +1 -1
- package/dist/init-DX85IP2w.mjs +1 -0
- package/dist/{init-CrBI6vIT.mjs → init-uGxYY6UM.mjs} +17 -17
- package/dist/{launch-json-removal-BiYW3EuW.mjs → launch-json-removal-Dhdwq5FP.mjs} +2 -2
- package/dist/loader-CENRqebF.mjs +1 -0
- package/dist/{loader-CPPSnf2M.mjs → loader-CNksYhN0.mjs} +2 -2
- package/dist/md-manager-CK3MY8qo.mjs +2 -0
- package/dist/{open-browser-gBhxldMU.mjs → open-browser-WfQL3wzU.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-Bk5wWu5b.mjs → preview-BZSyDCZ1.mjs} +2 -2
- package/dist/preview-BuphBmlc.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-C3nXNwXU.js → ActivityModeContent-Dfn7Nlez.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-88NqxyAN.js → AgentDiffPane-CyHhN5YO.js} +2 -2
- package/dist/public/assets/{AgentThreadClientBinder-DNvb1Kvi.js → AgentThreadClientBinder-Dg7kpSW2.js} +1 -1
- package/dist/public/assets/{AppMenubar-_6okky_d.js → AppMenubar-DgbuW3Mn.js} +1 -1
- package/dist/public/assets/BugReportHistory-CF0synre.js +1 -0
- package/dist/public/assets/{BugReportHistoryDialog-DgM3N4RP.js → BugReportHistoryDialog-RyYP9c6e.js} +1 -1
- package/dist/public/assets/ChangedOutsideBadge-DqZ2TDGM.js +1 -0
- package/dist/public/assets/CodeMirrorPropInput-DgV9gATY.js +3 -0
- package/dist/public/assets/{ConfigSharingInfoTooltip-BhNgrS2h.js → ConfigSharingInfoTooltip-C34Mqu2n.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-CAqiYyjs.js → ConsentDialogBody-D2cqdMrg.js} +1 -1
- package/dist/public/assets/{CopyButton-DfXJBl0I.js → CopyButton-DysciFW5.js} +1 -1
- package/dist/public/assets/{DiffView-Bc5gwnAV.js → DiffView-vtrGUscK.js} +1 -1
- package/dist/public/assets/DocumentContext-BVLbIfH2.js +38 -0
- package/dist/public/assets/{EditorModeToggle-hNtfjPSO.js → EditorModeToggle-CtE8ZJiD.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-D6R1KFya.js → EnableSyncConfirmDialog-_hiHVbZX.js} +1 -1
- package/dist/public/assets/FeedbackForm-GmlPVpar.js +1 -0
- package/dist/public/assets/{GraphPanel-CD7b7bEO.js → GraphPanel-Duz6DAfx.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-Boio2l_W.js → ImportSkillDialog-8uZq0fE4.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-CVU6CMtT.js → LintConfigEditor-DlBcCkCe.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BC3be05i.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-eSS8gOcB.js +2 -0
- package/dist/public/assets/{McpConsentDialogBody-BCWXnE1x.js → McpConsentDialogBody-DH2Kth2j.js} +1 -1
- package/dist/public/assets/{Mermaid-DT9lZOmy.js → Mermaid-EN9ImzAU.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-BA7XEwxt.js → MermaidDocEditor-iAjxxs_n.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-CSZXCqwG.js → RegisteredAgentIcon-B0CO1bW-.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-UQSprqDe.js → ReportBugDialogBody-DfM9Liz9.js} +1 -1
- package/dist/public/assets/SchemaConfigEditor-CDNOEozy.js +1 -0
- package/dist/public/assets/SessionsHost-BVng_fwc.js +2 -0
- package/dist/public/assets/SettingsDialogBody-CCdFxE-F.js +12 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-B8RBBcyE.js → ShareBranchSwitchDialog-BfXB6yAf.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-CWWtfyfF.js → ShareReceiveDialog-DhyJYkDM.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-C5AIXfjD.js → ShareReceiveMissDialog-BWlcptnT.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-9ueqFia8.js → SkillEditBanner-B_rCSPhd.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-BXnRlN9C.js → SkillOriginInline-CayMH5aY.js} +1 -1
- package/dist/public/assets/SkillToolbarControls-CcJo2WHo.js +1 -0
- package/dist/public/assets/SlidesToolbarControls-BLaXC3GF.js +1 -0
- package/dist/public/assets/SourceEditor-CxhxTb3c.js +1 -0
- package/dist/public/assets/TerminalPanel-B2LAcV5N.js +146 -0
- package/dist/public/assets/{TerminalWindowApp-C01zGAL4.js → TerminalWindowApp-DucJDTXJ.js} +1 -1
- package/dist/public/assets/{TextDocEditor-Dy3xqFER.js → TextDocEditor-C1SHIJF2.js} +1 -1
- package/dist/public/assets/ThreadView-RDfDoNg-.js +10 -0
- package/dist/public/assets/{TimelineDiffPane-C0N2AQ-_.js → TimelineDiffPane-BreQDbb5.js} +2 -2
- package/dist/public/assets/{abnfDiagram-VRR7QNED-Df7YgB-u.js → abnfDiagram-VRR7QNED-BT4E4K73.js} +1 -1
- package/dist/public/assets/{agent-diff-store-CjnUWyJv.js → agent-diff-store-D7h8uSqv.js} +1 -1
- package/dist/public/assets/agent-visibility-DUGhAO32.js +1 -0
- package/dist/public/assets/{arc-CVPlXeVn.js → arc-DWS63c4g.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-DKDnEx-J.js +1 -0
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-Cid8pwpH.js → architectureDiagram-ZJ3FMSHR-C7ATAQRT.js} +1 -1
- package/dist/public/assets/arrow-up-right-0IN5lFEX.js +1 -0
- package/dist/public/assets/auth-state-cache-DBut4s-H.js +11 -0
- package/dist/public/assets/{blockDiagram-677ZJIJ3-CbwD0mr1.js → blockDiagram-677ZJIJ3-0XzCwsjs.js} +1 -1
- package/dist/public/assets/{braces-PuTG97X6.js → braces-Ytg60O62.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-CZHW-U3Z.js → c4Diagram-LMCZKHZV-DF_YvBJq.js} +1 -1
- package/dist/public/assets/{calendar-Dze0sDp0.js → calendar-BFaqjDfb.js} +1 -1
- package/dist/public/assets/{case-sensitive-DyF7sIpA.js → case-sensitive-DvBZDISP.js} +1 -1
- package/dist/public/assets/channel-wzRnnGj4.js +1 -0
- package/dist/public/assets/check-BLuQ2zvV.js +1 -0
- package/dist/public/assets/{checkbox-DqQC4GOw.js → checkbox-V0IoPAe3.js} +1 -1
- package/dist/public/assets/{chevron-down-CRb8csep.js → chevron-down-DrpHBSgH.js} +1 -1
- package/dist/public/assets/chevron-left-BUr-yKA4.js +1 -0
- package/dist/public/assets/chevron-right-BU8AeJST.js +1 -0
- package/dist/public/assets/{chevron-up-BZk9M0QL.js → chevron-up-CsH_dTwv.js} +1 -1
- package/dist/public/assets/chunk-2Q5K7J3B-Wikzf0nz.js +1 -0
- package/dist/public/assets/{chunk-32BRIVSS-DT6F-uh7.js → chunk-32BRIVSS-BBQ-hEPd.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-z8Dc0FTi.js → chunk-52WLFC77-DuzENKI7.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-CTroACwQ.js → chunk-5FCAYU7R-D--noBEp.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-BiVTlY9X.js → chunk-5HE753X5-BmVsWMWw.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-D5PSiL8d.js → chunk-5JV3BV7I-BPYqpeB9.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-Bxf6m0R0.js → chunk-5TONJI2A-DltPJUSb.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-CRkhjuQ5.js → chunk-5VM5RSS4-BfP_UIjE.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-CIezx2MS.js → chunk-7BUUIJ7U-CY9HO1D_.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-4vkcoUCs.js → chunk-BIQX33UG-CYDmLpMo.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-CC8ch_fx.js → chunk-BO2N2NFS-BsdqXBeH.js} +13 -13
- package/dist/public/assets/{chunk-C7G6YPKG-CfSnkt3g.js → chunk-C7G6YPKG-BG-T54dx.js} +1 -1
- package/dist/public/assets/{chunk-CQNSW5MT-DY98Y9zl.js → chunk-CQNSW5MT-B2t29R4y.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-BK-vm9jf.js → chunk-CYSBUYHQ-s_ScbNzb.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-DZw4ZtXy.js → chunk-EMLP6XTP-BNzghYiW.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-Bk_23Lji.js → chunk-EX3LRPZG-DOXxHijP.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-Bcld6_cI.js → chunk-FWX5IMBZ-C-_in5O6.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-CFg4tiNL.js → chunk-HOUHSVGY-BLbx-9Cm.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-D2_LgSCG.js → chunk-ICXQ74PX-CT_UjeBu.js} +1 -1
- package/dist/public/assets/{chunk-JG7HCLWE-DvlaYzpW.js → chunk-JG7HCLWE-B0c_hwBR.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-CLgWJdHV.js → chunk-JWPE2WC7-C89PFunr.js} +1 -1
- package/dist/public/assets/{chunk-MOJQB5TN-ChUfYEEn.js → chunk-MOJQB5TN-3AJz0oxu.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-BGXPWMly.js → chunk-MOZMSUNE-CfcFCsPH.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-CivbNyHY.js → chunk-OGEWGWER-CFjtHjSl.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-DWgnErEt.js → chunk-OSBZ3O6U-C7Q07ixC.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-B7d6ISYj.js → chunk-PUDLZKDR-BGahXoNe.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-91W5kPi9.js → chunk-Q4XR5HBZ-biPgC2C1.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-4F2Itui7.js → chunk-QBLGF6JB-Bd2KWVj9.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-hR8tQLXq.js → chunk-R7FJI6CG-BU13FFbO.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-DycaSFT5.js → chunk-RYQCIY6F-DGsn_2cw.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-CHI_dfPQ.js → chunk-U6XO7XAA-DEpEBtwM.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-Bw7Trikr.js → chunk-V7JOEXUC-DGxur8ZW.js} +1 -1
- package/dist/public/assets/chunk-VAUOI2AC-DpeuLCbu.js +1 -0
- package/dist/public/assets/{chunk-VR4S4FIN-td2s33cT.js → chunk-VR4S4FIN-DOd4oQIX.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-BL3R8kzV.js → chunk-WYO6CB5R-Dj0234fq.js} +2 -2
- package/dist/public/assets/chunk-XXDRQBXY-CZqAAXUK.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-Cg9yDbvj.js → chunk-YOTPTUD7-C30yZrh0.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-DdQ8WlYq.js → chunk-ZGVPDNZ5-YEqz23C6.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-DuiWBTeF.js → chunk-ZIRB5QZD-D_Sq2Pbf.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-jai99ZcL.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-B6bv8jQ6.js +1 -0
- package/dist/public/assets/client-version-BCNpEu2n.js +1 -0
- package/dist/public/assets/{cm-theme-CUwlOcHl.js → cm-theme-BouxP4zt.js} +1 -1
- package/dist/public/assets/code-highlighter-impl-BYAPyAoO.js +144 -0
- package/dist/public/assets/comment-chips-D31Mefsd.js +5 -0
- package/dist/public/assets/{config-context-3DA5oQRi.js → config-context-D-k7Feh7.js} +1 -1
- package/dist/public/assets/config-provider-BJJQMCvL.js +5 -0
- package/dist/public/assets/{cose-bilkent-JH36ORCC-YCEFr4ip.js → cose-bilkent-JH36ORCC-CE39J3kc.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-DKtMkKMv.js +1 -0
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BRxY_0dy.js → cynefinDiagram-TSTJHNR4-DrYykUwe.js} +1 -1
- package/dist/public/assets/{dagre-4yTvJ5bN.js → dagre-D8D-4Y8L.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-BTPOxYfv.js → dagre-VKFMJZFB-BBs4IH3J.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY-C6lvEDUr.js → diagram-FQU43EPY-B0s2m7E-.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-BHMtTNZp.js → diagram-G47NLZAW-BbP-tBhd.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-CaxSgclq.js → diagram-NH7WQ7WH-kp48H_e8.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-C_1H_cmz.js → diagram-OA4YK3LP-Sh8MTEDH.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-hy5nz4b2.js → diagram-WEI45ONY-CHaTUq63.js} +1 -1
- package/dist/public/assets/{dialog-DwFomKjP.js → dialog-C6agJYxQ.js} +1 -1
- package/dist/public/assets/{dist-CJtNQVui.js → dist-10-BopoT.js} +1 -1
- package/dist/public/assets/{dist-Cz7Q9WAs.js → dist-B5Efgy8u.js} +1 -1
- package/dist/public/assets/{dist-KXQQa8Xt.js → dist-BBHnhLg7.js} +1 -1
- package/dist/public/assets/{dist-BHX9GuTC.js → dist-BLMHNKEA.js} +1 -1
- package/dist/public/assets/{dist-C7PQBily.js → dist-BMhliXXv.js} +1 -1
- package/dist/public/assets/{dist-DdN4_oB-.js → dist-BffqGJEV.js} +1 -1
- package/dist/public/assets/{dist-DgD72kci.js → dist-BzlU6YYd.js} +1 -1
- package/dist/public/assets/{dist-HbUc9U1a.js → dist-CgtlFWkf.js} +1 -1
- package/dist/public/assets/{dist-AhKSYQhE2.js → dist-ChcSYE9s.js} +1 -1
- package/dist/public/assets/{dist-BX-8uxZE.js → dist-DFRu_FnY.js} +1 -1
- package/dist/public/assets/{dist-CdZbZpjt.js → dist-DNKLFEzM.js} +1 -1
- package/dist/public/assets/dist-SMRIgJ7J2.js +579 -0
- package/dist/public/assets/{dist-aEzrjz-4.js → dist-SYn7UuDc.js} +1 -1
- package/dist/public/assets/{dist-CFDOSoEm.js → dist-e-KRYl_U.js} +1 -1
- package/dist/public/assets/{doc-paths-BUecntHC.js → doc-paths--BtzZubq.js} +1 -1
- package/dist/public/assets/{documents-events-KbhMdUCf.js → documents-events-CN6qju_L.js} +1 -1
- package/dist/public/assets/{download-QOlmqXQ8.js → download-Bq4sKAdj.js} +1 -1
- package/dist/public/assets/{dropdown-menu-DRytYgB4.js → dropdown-menu-BhMtMvZp.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-CSOwp-KN.js → ebnfDiagram-CCIWWBDH-C5sFbOCC.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-CulC3etm.js → erDiagram-Q63AITRT-IzYkNb6y.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-DYp_ccag.js +1 -0
- package/dist/public/assets/{eye-CArKS_Md.js → eye-DYUvwA0Z.js} +1 -1
- package/dist/public/assets/{field-iFofWrdC.js → field-Ds_anNod.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-CqEuXZ5y.js → file-tree-adapter-F3EuvfSm.js} +1 -1
- package/dist/public/assets/{file-tree-utils-BsQPHRxA.js → file-tree-utils-D09ASMfu.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-BoiEI6fi.js +1 -0
- package/dist/public/assets/{folder-DxrU2PLH.js → folder-Cnftw7jd.js} +1 -1
- package/dist/public/assets/{folder-config-api-CM5ZFHjG.js → folder-config-api-Dhk4j3NE.js} +1 -1
- package/dist/public/assets/{folder-open-ee990ToL.js → folder-open-DoQalFip.js} +1 -1
- package/dist/public/assets/{follow-file-ClrF9UKc.js → follow-file-BYg1kvW1.js} +1 -1
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-iVPMtR6h.js → ganttDiagram-NO4QXBWP-PZlgotcv.js} +1 -1
- package/dist/public/assets/gherkin-CMIKyHk7.js +1 -0
- package/dist/public/assets/{git-branch-B0WeYwW-.js → git-branch-BWBPTGqT.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-afDp1_T4.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-DdI0uf23.js → gitGraphDiagram-IHSO6WYX-CnOfuKSB.js} +1 -1
- package/dist/public/assets/{globals-BbucswUi.js → globals-C-kRTFCu.js} +2 -2
- package/dist/public/assets/globals-D9Q1kf3c.css +1 -0
- package/dist/public/assets/{graphlib-2sje7ygs.js → graphlib-fvEEtLhE.js} +1 -1
- package/dist/public/assets/{hash-CDGtqqEo.js → hash-BZXl_HqD.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-nVG7xLpg.js → highlighted-body-OFNGDK62-BaYzQjQZ.js} +1 -1
- package/dist/public/assets/html-void-elements-Bkr32DGT.js +1 -0
- package/dist/public/assets/i18n-B-su7WGL.js +1 -0
- package/dist/public/assets/index-zKi6jfeI.js +2097 -0
- package/dist/public/assets/info-DKCQHKI2-CrDaHnZ5.js +1 -0
- package/dist/public/assets/{info-BnJuC0vW.js → info-Jj1j2YxC.js} +1 -1
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-CCLCXbok.js → infoDiagram-FWYZ7A6U-Dvre6R3A.js} +1 -1
- package/dist/public/assets/{input-group-BgDCDWUR.js → input-group-CFpex2uW.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-DYNfj8DM.js → ishikawaDiagram-FXEZZL3T-CGbM4PcO.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-D3IdBiiM.js → journeyDiagram-5HDEW3XC-DE9Pf5_r.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-CF_ZN-jM.js → kanban-definition-HUTT4EX6-jPGc8KH6.js} +1 -1
- package/dist/public/assets/lib-BHGXbMkc.js +9 -0
- package/dist/public/assets/lib-DcrRfjuF.js +29 -0
- package/dist/public/assets/{line-BA7emVey.js → line-BJ5gC8Dy.js} +1 -1
- package/dist/public/assets/{linear-CUFA2OWO.js → linear-EWMuktsp.js} +1 -1
- package/dist/public/assets/{lint-config-client-Ctx6XxuK.js → lint-config-client-DMsg3XE_.js} +1 -1
- package/dist/public/assets/list-plus-IYEFhKGU.js +1 -0
- package/dist/public/assets/loader-circle-Coob8S41.js +1 -0
- package/dist/public/assets/{local-menu-action-bus-iy6v2osW.js → local-menu-action-bus-DLozq_c4.js} +1 -1
- package/dist/public/assets/{map-DbAr_xa0.js → map-DuXZfTxZ.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-D9sFjZMg.js → markdownlint-rule-browser-ClWCRE-k.js} +1 -1
- package/dist/public/assets/mascot-outline-CtS592mc.js +1 -0
- package/dist/public/assets/mermaid-GHXKKRXX-Dif_zbtJ.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-B8FUrn7y.js → mermaid-parser.core-BVNQnpl1.js} +2 -2
- package/dist/public/assets/{mermaid.core-gcfl0bT0.js → mermaid.core-T6rBx5Mh.js} +3 -3
- package/dist/public/assets/messages-08fVqpq6.js +1 -0
- package/dist/public/assets/messages-9TiHLKyB.js +1 -0
- package/dist/public/assets/messages-B6_-Jcig.js +1 -0
- package/dist/public/assets/messages-Bb2E22t5.js +1 -0
- package/dist/public/assets/messages-CN01LMHY.js +1 -0
- package/dist/public/assets/messages-DJJz1KAA.js +1 -0
- package/dist/public/assets/messages-DNrStzR0.js +1 -0
- package/dist/public/assets/messages-DcFADkmi.js +1 -0
- package/dist/public/assets/messages-Djq--rqJ.js +1 -0
- package/dist/public/assets/messages-DoUQmGUb.js +1 -0
- package/dist/public/assets/messages-bfwA7F7-.js +1 -0
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-9ySd_DkR.js → mindmap-definition-LN4V7U3C-CumX92oT.js} +1 -1
- package/dist/public/assets/minus-DPAjfzCa.js +1 -0
- package/dist/public/assets/{miss-dialog-store-B3cHkf8G.js → miss-dialog-store--ihxgGwV.js} +1 -1
- package/dist/public/assets/navigation-targets-DdXUwF8B.js +1 -0
- package/dist/public/assets/{now-B4vxsI1S.js → now-z5ELVWrb.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DJGfoyLt.js → open-managed-artifact-tab-cqLHNiqt.js} +1 -1
- package/dist/public/assets/{ordinal-Cfxeoxe-.js → ordinal-BXAn9evv.js} +1 -1
- package/dist/public/assets/packet-7NZHBO7P-DbOy7CAU.js +1 -0
- package/dist/public/assets/{panel-right-open-Cc56I_GE.js → panel-right-open-BhUOm1Eq.js} +1 -1
- package/dist/public/assets/{paperclip-D7KMFbO9.js → paperclip-9gdTBktj.js} +1 -1
- package/dist/public/assets/{pegDiagram-2B236MQR-cNCSiNUP.js → pegDiagram-2B236MQR-CTdEF3cw.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-CR3AYTQU.js → pending-receive-nav-store-D_Yd5Kkr.js} +1 -1
- package/dist/public/assets/pie-RZYD4A2V-Bj39C3bk.js +1 -0
- package/dist/public/assets/{pieDiagram-ENE6RG2P-C2bxi6W1.js → pieDiagram-ENE6RG2P-DEG5bAYb.js} +1 -1
- package/dist/public/assets/{project-paths--7l9Mqe-.js → project-paths-BcFu3O1A.js} +1 -1
- package/dist/public/assets/{prop-types-CC3zyaqH.js → prop-types-C25REwA7.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-C8AftH1G.js → quadrantDiagram-ABIIQ3AL-DqmV_ECa.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-8Y-4N9H-.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-DbyANRn-.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-CelDcVQi.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-GO9BaS2J.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-DINlAt_U.js +1 -0
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-CZh61tJk.js → railroadDiagram-RFXS5EU6-D1VOXkhy.js} +1 -1
- package/dist/public/assets/receive-store-DJ3Z6bz8.js +2 -0
- package/dist/public/assets/{refresh-cw-DGLnzhho.js → refresh-cw-REpEMEB2.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-CQLu3M38.js → requirementDiagram-TGXJPOKE-CWGls4-H.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-Bjus_sTX.js → sankeyDiagram-HTMAVEWB-D00ONs8l.js} +1 -1
- package/dist/public/assets/schema-fields-view-intent-CgNFg8m7.js +1 -0
- package/dist/public/assets/{select-BU4xT6VN.js → select-CRztynyQ.js} +1 -1
- package/dist/public/assets/{selection-context-DT0NuiRB.js → selection-context-CEsFBd_P.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-BR7Ay_cV.js → sequenceDiagram-DBY2YBRQ-BBwn6ouJ.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-B6c4PqMD.js → sizeCapture-X5ZJPWSS-eBkr-Eez.js} +1 -1
- package/dist/public/assets/skill-actions-Cawlws49.js +2 -0
- package/dist/public/assets/{skill-scope-DEvpbPXx.js → skill-scope-DG4fOw_k.js} +1 -1
- package/dist/public/assets/{skills-api-BpuwZVN9.js → skills-api-Djw9cUyq.js} +1 -1
- package/dist/public/assets/{square-pen-CEIus1aL.js → square-pen-D3oI-YUs.js} +1 -1
- package/dist/public/assets/{src-BFmudBKQ.js → src-CJ94lzX3.js} +1 -1
- package/dist/public/assets/{src-_qYX43MU.js → src-hWhZz0ry.js} +2 -2
- package/dist/public/assets/{stateDiagram-2N3HPSRC-DJmlM8IW.js → stateDiagram-2N3HPSRC-CuLDPCky.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-_9elEbD9.js +1 -0
- package/dist/public/assets/{swimlanes-5IMT3BWC-D8ijXWBf.js → swimlanes-5IMT3BWC-Bwx6YXUK.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-B_LHFsm2.js +8 -0
- package/dist/public/assets/{tag-pill-input-D_VrZ0_G.js → tag-pill-input-Ckot4BtE.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-BhYFP54I.js → target-navigation-intent-DgeN3LEN.js} +1 -1
- package/dist/public/assets/{telemetry-impl-oH89uFEx.js → telemetry-impl-CQgbydAH.js} +2 -2
- package/dist/public/assets/{telemetry-startup-DNYyG34o.js → telemetry-startup-BJn8ZOlL.js} +1 -1
- package/dist/public/assets/terminal-DQu0Rduz.js +1 -0
- package/dist/public/assets/terminal-command-events-7vlkZt-0.js +1 -0
- package/dist/public/assets/{terminal-launch-events-BBTNOGCs.js → terminal-launch-events-8IGUYuVb.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-L6O0yS3Y.js → terminal-telemetry-Bup2OV8O.js} +1 -1
- package/dist/public/assets/text-viewer-languages-DVJ3G2Gh.js +2 -0
- package/dist/public/assets/thread-client-B3j1-NNf.js +1 -0
- package/dist/public/assets/{timeline-definition-FHXFAJF6-DwBMj07Z.js → timeline-definition-FHXFAJF6-DecPknli.js} +1 -1
- package/dist/public/assets/{trash-2-Ccq_llrY.js → trash-2-XqjnGI2m.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-BWkcCjcr.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-Bz0LgCcV.js +1 -0
- package/dist/public/assets/{triangle-alert-V8YoC6ss.js → triangle-alert-CA0Kx2Dz.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BTwaT6Tt.js → typing-burst-detector-Bcxs6e1d.js} +3 -3
- package/dist/public/assets/{undo-2-bYFSgQwb.js → undo-2-CtBobs44.js} +1 -1
- package/dist/public/assets/uninstall-rbukHZUq.js +1 -0
- package/dist/public/assets/{use-activity-panel-DENpfNoH.js → use-activity-panel-ov91fgMH.js} +1 -1
- package/dist/public/assets/{use-collab-url-ktBqBALq.js → use-collab-url-1XQxLP3g.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-Bz9dSt4p.js → use-live-xterm-theme-3-VRWhHM.js} +1 -1
- package/dist/public/assets/{use-open-skill-Bq2DfJ8n.js → use-open-skill-BNfVgdFz.js} +1 -1
- package/dist/public/assets/use-settings-route-BT3ZJmxN.js +1 -0
- package/dist/public/assets/{use-skill-directory-D5XiyMts.js → use-skill-directory-CtN1niVI.js} +1 -1
- package/dist/public/assets/{use-skill-origin-BmEyp0Uh.js → use-skill-origin-DQf3raAN.js} +1 -1
- package/dist/public/assets/{use-skills-0q5Zcw-J.js → use-skills-BrkAxYWH.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-DUjSxVhq.js → use-terminal-enabled-EeeyWLnr.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-CpB81ux4.js → use-timeline-entry-diff-t4CQRU4t.js} +4 -4
- package/dist/public/assets/use-workspace-J_BwpJRd.js +1 -0
- package/dist/public/assets/{vennDiagram-L72KCM5P-DZxwOiUn.js → vennDiagram-L72KCM5P-Bg5DY_Cn.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-Bx1-jXoM.js +1 -0
- package/dist/public/assets/{wardleyDiagram-EHGQE667-D44Ff-nh.js → wardleyDiagram-EHGQE667-DJ8tw7ym.js} +1 -1
- package/dist/public/assets/workspace-paths-DokE-xT8.js +1 -0
- package/dist/public/assets/{wrench-D8b4qpCM.js → wrench-CNmrVb8V.js} +1 -1
- package/dist/public/assets/x-OtqSgHKA.js +1 -0
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-B_4MyxsA.js → xychartDiagram-FW5EYKEG-7eWDzOaJ.js} +1 -1
- package/dist/public/index.html +158 -129
- package/dist/public/uninstall.html +19 -15
- package/dist/{repair-launch-json-SpkGaIbQ.mjs → repair-launch-json-Ca96yug3.mjs} +2 -2
- package/dist/{repair-mcp-configs-6yfv7PDz.mjs → repair-mcp-configs-BmeaoniW.mjs} +2 -2
- package/dist/repair-skills-BxDCyrpW.mjs +1 -0
- package/dist/{repair-skills-Qa8asXi-.mjs → repair-skills-xb6EtJ_i.mjs} +2 -2
- package/dist/schemas/v0/config.user.schema.json +38 -0
- package/dist/server-lock-CSAtOeDZ.mjs +1 -0
- package/dist/{server-lock-DsDrc4RU.mjs → server-lock-D7MC1H2C.mjs} +2 -2
- package/dist/{skill-teardown-lrVGmvNz.mjs → skill-teardown-Bp4PXaVu.mjs} +2 -2
- package/dist/{sleep-ByqzSHar.mjs → sleep-DVOInM4H.mjs} +5 -5
- package/dist/src-Cz6nVs_k.mjs +1 -0
- package/dist/src-D8NOF4IF.mjs +2032 -0
- package/dist/{src-BU5VUa22.mjs → src-DOtg_Yy3.mjs} +6 -6
- package/dist/{src-azBs1EPY.mjs → src-DevJlbVv.mjs} +127 -127
- package/dist/start-Bdmc9Zwo.mjs +1 -0
- package/dist/{start-CfaFUwr3.mjs → start-DjEQzpUP.mjs} +3 -3
- package/dist/{write-project-skill-g7odZSI2.mjs → write-project-skill-CstNID_e.mjs} +4 -4
- package/package.json +4 -4
- package/dist/constants-DyV618jN.mjs +0 -2
- package/dist/fs-traced-WMTb98_i.mjs +0 -1
- package/dist/git-handle-CtdWfsLv.mjs +0 -1
- package/dist/init-BpyLNGZy.mjs +0 -1
- package/dist/loader-BXM73qNg.mjs +0 -1
- package/dist/md-manager-C54e9m9K.mjs +0 -2
- package/dist/preview-CKzgyv7F.mjs +0 -1
- package/dist/public/assets/BugReportHistory-C_4-NQ-j.js +0 -1
- package/dist/public/assets/ChangedOutsideBadge-DCLuBScT.js +0 -1
- package/dist/public/assets/CodeMirrorPropInput-nxbfw9bv.js +0 -3
- package/dist/public/assets/DocumentContext-CfyZrOH1.js +0 -38
- package/dist/public/assets/FeedbackForm-CZ6u31dO.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-4_S8d2s7.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-B8dqEG77.js +0 -2
- package/dist/public/assets/SchemaConfigEditor-C3FA7iH5.js +0 -1
- package/dist/public/assets/SessionsHost-DYHLsEW-.js +0 -2
- package/dist/public/assets/SettingsDialogBody-G6-YBwQX.js +0 -12
- package/dist/public/assets/SkillToolbarControls-DtovBTF2.js +0 -1
- package/dist/public/assets/SourceEditor-Dr9urM9j.js +0 -1
- package/dist/public/assets/TerminalPanel-BqsEcNCi.js +0 -146
- package/dist/public/assets/ThreadView-lm-6Edan.js +0 -6
- package/dist/public/assets/agent-visibility-BxHoyzki.js +0 -1
- package/dist/public/assets/architecture-TIHT7OUA-Bu3B2Eu7.js +0 -1
- package/dist/public/assets/arrow-up-right-Gp4MuO-g.js +0 -1
- package/dist/public/assets/auth-state-cache-BtIe91M8.js +0 -11
- package/dist/public/assets/channel-BBYqtvcN.js +0 -1
- package/dist/public/assets/check-DLRoQSSY.js +0 -1
- package/dist/public/assets/chevron-left-BRFq0qcJ.js +0 -1
- package/dist/public/assets/chevron-right-BjiB8LDf.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-DeGCwTid.js +0 -1
- package/dist/public/assets/chunk-VAUOI2AC-B4WVYMGW.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-DjPNLLex.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-CusZeKDE.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-3Dd_UHkU.js +0 -1
- package/dist/public/assets/client-version-CyS4Akwb.js +0 -1
- package/dist/public/assets/comment-chips-Dbrqmzd1.js +0 -7
- package/dist/public/assets/config-provider-DdEnUd2F.js +0 -4
- package/dist/public/assets/cynefin-VYW2F7L2-Dh2yc-Yt.js +0 -1
- package/dist/public/assets/dist-P5PuqHtu2.js +0 -586
- package/dist/public/assets/eventmodeling-45OFAUF4-CoqTTBqG.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-BKkbdW0r.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-D2tde3MB.js +0 -1
- package/dist/public/assets/globals-Bl3fKb9V.css +0 -1
- package/dist/public/assets/index-CgjnaYaj.js +0 -2092
- package/dist/public/assets/info-DKCQHKI2-DIQGY0RW.js +0 -1
- package/dist/public/assets/lib-CtlgmvnR.js +0 -29
- package/dist/public/assets/loader-circle-B0OUuKph.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-uJrCvmwj.js +0 -1
- package/dist/public/assets/minus-CKcpBpdR.js +0 -1
- package/dist/public/assets/navigation-targets-BTpBtlo2.js +0 -1
- package/dist/public/assets/packet-7NZHBO7P-C6h6PguP.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-BgsL62qC.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-2Fukjsh1.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-BXQstaOW.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-D4DJxFB6.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-B9wL5Mgq.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-TRaMzMt0.js +0 -1
- package/dist/public/assets/receive-store-Dc_eiYW6.js +0 -2
- package/dist/public/assets/schema-fields-view-intent-Df0KnOO8.js +0 -1
- package/dist/public/assets/skill-actions-BlJ8nSSo.js +0 -2
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-DJeEhrn3.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-D5vkX5fS.js +0 -8
- package/dist/public/assets/text-viewer-languages-DEjz8Rlz.js +0 -2
- package/dist/public/assets/thread-client-BVh92ozO.js +0 -1
- package/dist/public/assets/treeView-QDETBFTQ-DItjR5Rl.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-D1JSLPGs.js +0 -1
- package/dist/public/assets/uninstall-TDyS8cYc.js +0 -1
- package/dist/public/assets/use-settings-route-B10M97I7.js +0 -1
- package/dist/public/assets/use-workspace-BVw2SUvV.js +0 -1
- package/dist/public/assets/wardley-OPB4EBWU-BEy33__G.js +0 -1
- package/dist/public/assets/x-B3zGPHCO.js +0 -1
- package/dist/repair-skills-D0WSZUFt.mjs +0 -1
- package/dist/server-lock-BoNixvAi.mjs +0 -1
- package/dist/src-B-TXZyjI.mjs +0 -1
- package/dist/src-YfpQ2LX0.mjs +0 -2030
- package/dist/start-VOlPJi60.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-DZrMHlZH.js → ActivityPanelDiffView-CPRjA-1R.js} +0 -0
- /package/dist/public/assets/{SkillModeBanner-DFgrdWyf.js → SkillModeBanner-DzwdRe8-.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-CL4duhlG.js → __vite-browser-external-neOsIWyW.js} +0 -0
- /package/dist/public/assets/{agent-presence-C8KjkxgZ.js → agent-presence-1vhA03qX.js} +0 -0
- /package/dist/public/assets/{array-DRGYhAwX.js → array-C_NrAdxI.js} +0 -0
- /package/dist/public/assets/{asset-dispatch-O9x3rXhj.js → asset-dispatch-qrq0uplE.js} +0 -0
- /package/dist/public/assets/{auth-prompt-store-DQ_HcDxh.js → auth-prompt-store-CcGlao2A.js} +0 -0
- /package/dist/public/assets/{badge-CnYDYmI5.js → badge-BVZ2oTto.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-CTDrJ2_V.js → chunk-KEIR6QF5-CUEbS00h.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-WQQLMo_s.js → chunk-Y2CYZVJY-DD_NReQM.js} +0 -0
- /package/dist/public/assets/{clike-BfpXCH0g.js → clike-fkc4XEp3.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter-DPkNOslT.js → clipboard-adapter-BTORRh1U.js} +0 -0
- /package/dist/public/assets/{colors-BY0RBIvp.js → colors-CQ-pUTip.js} +0 -0
- /package/dist/public/assets/{copilot-CuzHDCzI.js → copilot-CHW7txhf.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-BbgVV4EV.js → createLucideIcon-BbftclCc.js} +0 -0
- /package/dist/public/assets/{cursor-W0skD8YU.js → cursor-lV4EgEIO.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-Ck6hca6m.js → cytoscape.esm-BFZHbRez.js} +0 -0
- /package/dist/public/assets/{defaultLocale-C9lDPH35.js → defaultLocale-B_FbTTbl.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-BwR5S9HF.js → desktop-bridge-types-D2lP_C4_.js} +0 -0
- /package/dist/public/assets/{diff-CvjWTdgS.js → diff-C18NQUVj.js} +0 -0
- /package/dist/public/assets/{dist-zYQJXuRH.js → dist-B7yUMXxJ.js} +0 -0
- /package/dist/public/assets/{dist-CTHTGkF4.js → dist-BPSCL3GQ.js} +0 -0
- /package/dist/public/assets/{dist-DIZJMUWy.js → dist-BWQ444Pw.js} +0 -0
- /package/dist/public/assets/{dist-CpRBr-Ct.js → dist-CRq7u4Aw.js} +0 -0
- /package/dist/public/assets/{dist-DmEZHXvB.js → dist-CrwFIHTH.js} +0 -0
- /package/dist/public/assets/{documents-fetch-DK-kdvYE.js → documents-fetch-BWxQ88TF.js} +0 -0
- /package/dist/public/assets/{external-link-COF7NUCm.js → external-link-BkZU8kDC.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-DEz_ryBu.js → file-tree-rename-validation-CHpqbXz_.js} +0 -0
- /package/dist/public/assets/{form-CGbOgaUs.js → form-uH0T1Qcu.js} +0 -0
- /package/dist/public/assets/{format-CFFWVvag.js → format-CqpPD7fR.js} +0 -0
- /package/dist/public/assets/{go-D-9nxjMR.js → go-BZZXdOuI.js} +0 -0
- /package/dist/public/assets/{init-Dpr8Tcj2.js → init-DtLQcSuO.js} +0 -0
- /package/dist/public/assets/{input-CtKG6a5B.js → input-CX1W4pdJ.js} +0 -0
- /package/dist/public/assets/{isObject-B_BLuINR.js → isObject-CJkdVXYX.js} +0 -0
- /package/dist/public/assets/{katex-7OG0ksww.js → katex-BE6VA85g.js} +0 -0
- /package/dist/public/assets/{libesm-Dcsy_--i.js → libesm-DO519K1n.js} +0 -0
- /package/dist/public/assets/{lint-plugin-meta-BnniPb1r.js → lint-plugin-meta-BUTpI0_4.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-jJ5hyYK1.js → lru-string-cache-a0Cuo2yI.js} +0 -0
- /package/dist/public/assets/{lua-qAotk3Jg.js → lua-CFX1gUBY.js} +0 -0
- /package/dist/public/assets/{markdownit-DoX6x6DK.js → markdownit-CIgVFnWs.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-Dz4H-8gV.js → mcp-consent-store-Dxs6JZLB.js} +0 -0
- /package/dist/public/assets/{min-CCEG0l64.js → min-DCU_CWsT.js} +0 -0
- /package/dist/public/assets/{overlay-layers-CBGNHxJK.js → overlay-layers-AaBEWClb.js} +0 -0
- /package/dist/public/assets/{panel-UxAkffLp.js → panel-9S5Pf2VO.js} +0 -0
- /package/dist/public/assets/{panzoom.es-H6kNXvjN.js → panzoom.es-DMxgpZcZ.js} +0 -0
- /package/dist/public/assets/{parse-api-error-BFe1cdS7.js → parse-api-error-DkZQPwyl.js} +0 -0
- /package/dist/public/assets/{path-56QyJhyg.js → path-DIlZIGue.js} +0 -0
- /package/dist/public/assets/{pdf-CYHvv2Oq.js → pdf-Cy3gQIcO.js} +0 -0
- /package/dist/public/assets/{pdf.worker-B8Ju19hh.js → pdf.worker-BdzhldWt.js} +0 -0
- /package/dist/public/assets/{perl-E4P7BXaC.js → perl-BgmVruQ7.js} +0 -0
- /package/dist/public/assets/{properties-DXHbGwrb.js → properties-BdJtqVJl.js} +0 -0
- /package/dist/public/assets/{r-DCDstkyG.js → r-fecYfHVx.js} +0 -0
- /package/dist/public/assets/{rough.esm-DE_lJ5Ge.js → rough.esm-COSPye1d.js} +0 -0
- /package/dist/public/assets/{ruby-DeKk3LV3.js → ruby-D4ycjIcU.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-B1YjvGbL.js → share-metadata-rows-Btw33WmH.js} +0 -0
- /package/dist/public/assets/{shell-BRtU48Yb.js → shell-S4EbCTPW.js} +0 -0
- /package/dist/public/assets/{skeleton-DS8zjX9Q.js → skeleton-DDVOgHvc.js} +0 -0
- /package/dist/public/assets/{sortable.esm-BT6d9PDz.js → sortable.esm-CRNKDjgg.js} +0 -0
- /package/dist/public/assets/{sql-XsKG_-B3.js → sql-wdiPK9a0.js} +0 -0
- /package/dist/public/assets/{src-DLd5TgYd.js → src-BWFYg8Yg.js} +0 -0
- /package/dist/public/assets/{startup-marks-BJYEMeGu.js → startup-marks-BSFaenPs.js} +0 -0
- /package/dist/public/assets/{stex-B3qxBOBU.js → stex-DO4KgX7A.js} +0 -0
- /package/dist/public/assets/{swift-CGhDVaQR.js → swift-ClTSRUoT.js} +0 -0
- /package/dist/public/assets/{textarea-CUVLEZhx.js → textarea-B18-RfF_.js} +0 -0
- /package/dist/public/assets/{thread-draft-staging-BXLyxk1u.js → thread-draft-staging-CLYszvki.js} +0 -0
- /package/dist/public/assets/{timeline-diff-store-sC1fl4YV.js → timeline-diff-store-Buwf-OFI.js} +0 -0
- /package/dist/public/assets/{toml-DkvxgD0C.js → toml-Dzi4mOhV.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-B7_xP0xS.js → use-installed-clis-BQyVc15P.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-C3vaXrG0.js → useLintConfigViewMode-MCAU0u93.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BbgVV4EV.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-BO2N2NFS-CC8ch_fx.js";export{e as Mermaid};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BbgVV4EV.js";var t=e(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ba as e,E as t,Fa as n,Ha as r,La as i,Oo as a,Ra as o,Sa as s,So as c,Ua as l,Va as u,Wa as d,dr as f,ni as p,qa as ee,wo as m,xa as h}from"./dist-P5PuqHtu2.js";import{l as g,o as te,r as ne}from"./doc-paths-BUecntHC.js";import{o as re,r as ie}from"./file-tree-utils-BsQPHRxA.js";import{o as ae}from"./skill-scope-DEvpbPXx.js";var _=null,v=new Set;function y(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function oe(e,t){return e===null?!1:e===t?!0:y(e.pages,t.pages)&&y(e.folderPaths,t.folderPaths)&&y(e.assetPaths??new Set,t.assetPaths??new Set)&&y(e.filePaths??new Set,t.filePaths??new Set)&&se(e.pageIcons,t.pageIcons)}function se(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function ce(e,t){let n=new Map;for(let r of e){let e=t(r);e&&!n.has(e)&&n.set(e,r)}return n}function le(e,t){let n=new Map,r=[...e].sort((e,t)=>e.localeCompare(t));for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function ue(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function de(){return _}function fe(e){if(!oe(_,e)){_=e;for(let t of Array.from(v))try{t(e)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function pe(e){if(v.add(e),_!==null)try{e(_)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{v.delete(e)}}function me(e,t){let n=e.replace(/^\/+|\/+$/g,``);return`${h}${n?`${n}/`:``}${t}`}function he(e){return e.scope===`project`?ee(e.path):d(e.scope,e.name)}function ge(e,t){return e.scope===`project`?`${e.path.replace(/\/SKILL\.mdx?$/i,``)}/${ee(t)}`:l(e.scope,e.name,t)}function b(e){let t=u(e);return t?.kind===`skill`?t.name:null}var x=`pane-main`;function S(e){return T(e)&&!e.includes(`\0doc-tab:`)}function C(e){return e.startsWith(`\0`)}function w(e){return typeof e==`string`&&!!e}function T(e){return typeof e==`string`&&!!e}function E(e){return typeof e==`number`&&Number.isFinite(e)&&e>0}function _e(e,t=new Set){if(!Array.isArray(e))return[];let n=new Set,r=[];for(let i of e)!S(i)||n.has(i)||!C(i)&&t.has(i)||(n.add(i),C(i)||t.add(i),r.push(i));return r}function ve(e,t){if(!Array.isArray(e))return[];let n=new Set(t),r=new Set,i=[];for(let t of e)!T(t)||!n.has(t)||r.has(t)||(r.add(t),i.push(t));return i}function ye(e,t){return T(t)&&e.includes(t)?t:null}function be(e,t,n){if(!t||!n.has(t))return t;let r=e.indexOf(t);for(let t=r+1;t<e.length;t++)if(!n.has(e[t]))return e[t]??null;for(let t=r-1;t>=0;t--)if(!n.has(e[t]))return e[t]??null;return null}function xe(e,t=new Set){if(!w(e.id))return null;let n=_e(e.openTabs,t),r=Array.isArray(e.newTabIds)?e.newTabIds.filter(e=>T(e)&&!n.includes(e)):[],i=ye(n,e.activeTabId),a=T(e.activeNewTabId)&&r.includes(e.activeNewTabId)?e.activeNewTabId:null,o=i??(a===null?n[0]??null:null),s=o===null?a??r[0]??null:null,c=ve(e.pinnedTabIds,n),l=S(e.previewTabId)&&n.includes(e.previewTabId)&&!c.includes(e.previewTabId)?e.previewTabId:null;return{id:e.id,openTabs:n,pinnedTabIds:c,activeTabId:o,previewTabId:l,newTabIds:r,activeNewTabId:s,activeTarget:o!==null&&o===i?e.activeTarget??null:null,size:E(e.size)?e.size:1}}function D(e){if(e.length===0)return[];let t=e.reduce((e,t)=>e+(E(t.size)?t.size:0),0);if(t<=0){let t=100/e.length;return e.map(e=>({...e,size:t}))}return e.map(e=>({...e,size:(E(e.size)?e.size:0)/t*100}))}function O(e,t=100){return{id:e,openTabs:[],pinnedTabIds:[],activeTabId:null,previewTabId:null,newTabIds:[],activeNewTabId:null,activeTarget:null,size:t}}function k(e=()=>x){let t=O(e());return{panes:[t],focusedPaneId:t.id}}function Se(e){let t=e.panes.map(e=>({...e,previewTabId:null,newTabIds:[],activeNewTabId:null,activeTarget:null}));return{panes:t,focusedPaneId:t.some(t=>t.id===e.focusedPaneId)?e.focusedPaneId:t[0]?.id??x}}function Ce(e){let t=A(e);return{panes:t.panes.map(({id:e,openTabs:t,pinnedTabIds:n,activeTabId:r,size:i})=>({id:e,openTabs:t,pinnedTabIds:n,activeTabId:r,size:i})),focusedPaneId:t.focusedPaneId}}function we(e,t=()=>x){let n=()=>{let e=t();return{panes:[{id:e,openTabs:[],pinnedTabIds:[],activeTabId:null,size:100}],focusedPaneId:e}};if(typeof e!=`object`||!e)return n();let r=e;if(!Array.isArray(r.panes))return n();let i=new Set,a=[];for(let[e,t]of r.panes.entries()){if(typeof t!=`object`||!t)continue;let n=t;!w(n.id)||i.has(n.id)||(i.add(n.id),a.push({pane:n,id:n.id,visualIndex:e}))}if(a.length===0)return n();let o=w(r.focusedPaneId)?r.focusedPaneId:null,s=[...a].sort((e,t)=>e.id===o?-1:t.id===o?1:e.visualIndex-t.visualIndex),c=new Set,l=new Map;for(let{pane:e,id:t}of s){let n=_e(e.openTabs,c),r=ye(n,e.activeTabId);l.set(t,{id:t,openTabs:n,pinnedTabIds:ve(e.pinnedTabIds,n),activeTabId:r??n[0]??null,size:E(e.size)?e.size:1})}let u=a.flatMap(({id:e})=>{let t=l.get(e);return t&&t.openTabs.length>0?[t]:[]});if(u.length===0)return n();let d=D(u);return{panes:d,focusedPaneId:o&&d.some(e=>e.id===o)?o:d[0].id}}function A(e){let t=new Set,n=new Set,r=e.panes.flatMap(e=>{if(!w(e.id)||t.has(e.id))return[];let r=xe(e,n);return r?(t.add(r.id),[r]):[]});if(r.length===0)return k();let i=D(r);return{panes:i,focusedPaneId:i.some(t=>t.id===e.focusedPaneId)?e.focusedPaneId:i[0].id}}function Te(e){return e.panes.find(t=>t.id===e.focusedPaneId)??e.panes[0]??O(x)}function j(e,t){return e.panes.some(e=>e.id===t)?{...e,focusedPaneId:t}:e}function M(e,t){let n=e.panes.find(t=>t.id===e.focusedPaneId);return n?.openTabs.includes(t)||n?.newTabIds.includes(t)?n:e.panes.find(e=>e.openTabs.includes(t)||e.newTabIds.includes(t))??null}function Ee(e,t){return S(t)?M(e,t):null}function De(e){return e.panes.flatMap(e=>e.openTabs)}function Oe(e){let t=new Set(De(e));return e.panes.flatMap(e=>e.pinnedTabIds.filter(e=>t.has(e)))}function N(e,t,n){return{...e,panes:e.panes.map(e=>e.id===t?n(e):e)}}function ke(e,t,n,r){let i=e.panes.find(e=>e.id===t);if(!i)return e;let a=new Set(i.openTabs),o=n.filter(e=>a.has(e));for(let e of i.openTabs)o.includes(e)||o.push(e);let s=new Set(i.pinnedTabIds),c=o.indexOf(r),l=c>=0&&c<i.pinnedTabIds.length,u=i.openTabs.includes(r)?o.filter(e=>e===r?l:s.has(e)):i.pinnedTabIds;return N(e,t,e=>({...e,openTabs:o,pinnedTabIds:u,previewTabId:e.previewTabId===r?null:e.previewTabId}))}function P(e,t){let n=e.newTabIds.indexOf(t);if(n>=0){let r=e.newTabIds.filter(e=>e!==t),i=e.activeNewTabId===t,a=i?r[n]??r[n-1]??null:e.activeNewTabId,o=i&&a===null?e.openTabs[e.openTabs.length-1]??null:e.activeTabId;return{...e,newTabIds:r,activeNewTabId:a,activeTabId:o,activeTarget:a===null&&o===e.activeTabId?e.activeTarget:null}}if(e.openTabs.indexOf(t)<0)return e;let r=new Set([t]),i=be(e.openTabs,e.activeTabId,r),a=e.activeTabId===t&&i===null?e.activeNewTabId??e.newTabIds[e.newTabIds.length-1]??null:e.activeNewTabId;return{...e,openTabs:e.openTabs.filter(e=>e!==t),pinnedTabIds:e.pinnedTabIds.filter(e=>e!==t),activeTabId:i,activeNewTabId:a,previewTabId:e.previewTabId===t?null:e.previewTabId,activeTarget:a===null&&i===e.activeTabId?e.activeTarget:null}}function F(e){let t=e.panes.filter(e=>e.openTabs.length||e.newTabIds.length);if(t.length===0)return k(()=>e.focusedPaneId||x);let n=D(t);return{panes:n,focusedPaneId:n.some(t=>t.id===e.focusedPaneId)?e.focusedPaneId:n[0].id}}function Ae(e,t){let n=e.panes.flatMap(e=>{let n=new Set([...e.openTabs,...e.newTabIds]),r=(t.get(e.id)??[]).filter((e,t,r)=>n.has(e)&&r.indexOf(e)===t);if(r.length===0)return[];let i=new Set(r),a=e.openTabs.filter(e=>i.has(e)),o=e.newTabIds.filter(e=>i.has(e)),s=(e.activeTabId&&i.has(e.activeTabId)?e.activeTabId:null)??(e.activeNewTabId&&i.has(e.activeNewTabId)?e.activeNewTabId:null)??r[0],c=a.includes(s)?s:null,l=o.includes(s)?s:null;return[{...e,openTabs:a,pinnedTabIds:e.pinnedTabIds.filter(e=>i.has(e)),activeTabId:c,previewTabId:e.previewTabId&&i.has(e.previewTabId)?e.previewTabId:null,newTabIds:o,activeNewTabId:l,activeTarget:c===e.activeTabId?e.activeTarget:null}]});if(n.length===0)return k(()=>e.focusedPaneId||x);let r=D(n);return{panes:r,focusedPaneId:r.some(t=>t.id===e.focusedPaneId)?e.focusedPaneId:r[0].id}}function je(e,t,n){let r=new Set(t),i=Math.max(0,Math.min(n,e.length)),a=0;for(let t=0;t<i;t+=1){let n=e[t];n&&r.has(n)&&(a+=1)}return a}function Me(e,t,n,r){let i=M(e,t),a=e.panes.find(e=>e.id===n);if(!i||!a)return e;let o=i.newTabIds.includes(t);if(i.id===a.id){if(o){let a=i.newTabIds.filter(e=>e!==t),o=Math.max(0,Math.min(r,a.length));return N(e,n,e=>({...e,newTabIds:[...a.slice(0,o),t,...a.slice(o)],activeNewTabId:t,activeTabId:null,activeTarget:null}))}let a=i.openTabs.filter(e=>e!==t),s=Math.max(0,Math.min(r,a.length));return ke(e,n,[...a.slice(0,s),t,...a.slice(s)],t)}let s=i.pinnedTabIds.includes(t),c=P(i,t),l=Math.max(0,Math.min(r,o?a.newTabIds.length:a.openTabs.length)),u=o?{...a,newTabIds:[...a.newTabIds.slice(0,l),t,...a.newTabIds.slice(l)],activeNewTabId:t,activeTabId:null,activeTarget:null}:{...a,openTabs:[...a.openTabs.slice(0,l),t,...a.openTabs.slice(l)],pinnedTabIds:s?[...a.pinnedTabIds,t]:a.pinnedTabIds,activeNewTabId:null,activeTabId:t,activeTarget:null},d=e.panes.map(e=>e.id===i.id?c:e.id===a.id?u:e);return j(F({...e,panes:d}),a.id)}function Ne(e,t,n,r,i){let a=M(e,t),o=e.panes.find(e=>e.id===n);if(!a||!o)return e;if(a.id===o.id&&a.openTabs.length+a.newTabIds.length===1)return j(e,a.id);let s=i();if(!w(s)||e.panes.some(e=>e.id===s))return e;let c=a.pinnedTabIds.includes(t),l=P(a,t),u=a.id===o.id?l:o,d=u.size/2,f={...u,size:d},p=a.newTabIds.includes(t),ee={...O(s,d),openTabs:p?[]:[t],pinnedTabIds:c&&!p?[t]:[],activeTabId:p?null:t,previewTabId:null,newTabIds:p?[t]:[],activeNewTabId:p?t:null},m=e.panes.map(e=>e.id===a.id?l:e),h=m.findIndex(e=>e.id===o.id);if(h<0)return e;m[h]=f;let g=r===`left`?h:h+1,te=[...m.slice(0,g),ee,...m.slice(g)];return j(F({...e,panes:te}),s)}function Pe(e,t,n){let r=new Set(n),i=e.panes.find(e=>e.id===t);if(!i||r.size===0)return e;let a=be(i.openTabs,i.activeTabId,r);return F(N(e,t,e=>{let t={...e,openTabs:e.openTabs.filter(e=>!r.has(e)),pinnedTabIds:e.pinnedTabIds.filter(e=>!r.has(e)),activeTabId:a,previewTabId:e.previewTabId&&r.has(e.previewTabId)?null:e.previewTabId,activeTarget:a===e.activeTabId?e.activeTarget:null};return e.newTabIds.reduce((e,t)=>r.has(t)?P(e,t):e,t)}))}function Fe(e,t){let n=new Map,r=new Set;for(let i of e.panes)for(let e of i.openTabs){let a=t(e),o=S(a)?a:null;n.set(e,o),o&&!C(o)&&i.pinnedTabIds.includes(e)&&r.add(o)}let i=new Set,a=e.panes.map(e=>{let t=new Map,a=new Set,o=[];for(let r of e.openTabs){let e=n.get(r);!e||a.has(e)||!C(e)&&i.has(e)||(a.add(e),C(e)||i.add(e),t.set(r,e),o.push(e))}let s=new Set(e.pinnedTabIds.flatMap(e=>t.get(e)??[])),c=o.filter(e=>C(e)?s.has(e):r.has(e)),l=e.activeTabId?t.get(e.activeTabId)??null:null,u=e.previewTabId&&t.get(e.previewTabId)===e.previewTabId?e.previewTabId:null;return{...e,openTabs:o,pinnedTabIds:c,activeTabId:l,previewTabId:u&&!c.includes(u)?u:null,activeTarget:l!==null&&l===e.activeTabId?e.activeTarget:null}});return F({...e,panes:a})}function Ie(e,t){return Fe(e,e=>t(e)?e:null)}function I(e){return{workspace:e,openedTabId:null,replacedPreviewTabId:null,consumedNewTabId:null}}function L(e,t={openedTabId:null,replacedPreviewTabId:null,consumedNewTabId:null}){return{workspace:A(e),...t}}function Le(e,t,n){let r=e.panes.find(e=>e.id===t);return r?r.newTabIds.includes(n)?j(N(e,t,e=>({...e,activeTabId:null,activeNewTabId:n,activeTarget:null})),t):r.openTabs.includes(n)?j(N(e,t,e=>({...e,activeTabId:n,activeNewTabId:null,activeTarget:e.activeTabId===n?e.activeTarget:null})),t):e:e}function Re(e,t){switch(t.type){case`open-target`:{if(!S(t.tabId))return I(e);let n=e.panes.find(e=>e.id===t.paneId);if(!n)return I(e);let r=t.consumeActiveNewTab&&n.activeNewTabId?n.activeNewTabId:null,i=r===null?e:N(e,n.id,e=>P(e,r)),a=i.panes.find(e=>e.id===t.paneId&&e.openTabs.includes(t.tabId))??M(i,t.tabId),o=a!==null&&a.id!==t.paneId&&t.existingTabBehavior===`open-in-pane`&&C(t.tabId);if(a&&!o)return a.id!==t.paneId&&t.existingTabBehavior===`open-in-pane`?(i=Me(i,t.tabId,t.paneId,n.openTabs.length),i=N(i,t.paneId,e=>({...e,activeTarget:t.target,previewTabId:t.disposition===`permanent`&&e.previewTabId===t.tabId?null:e.previewTabId})),L(i,{openedTabId:t.tabId,replacedPreviewTabId:null,consumedNewTabId:r})):(i=N(i,a.id,e=>({...e,activeTabId:t.tabId,activeNewTabId:null,activeTarget:t.target,previewTabId:t.disposition===`permanent`&&e.previewTabId===t.tabId?null:e.previewTabId})),i=j(i,a.id),i=F(i),L(i,{openedTabId:t.tabId,replacedPreviewTabId:null,consumedNewTabId:r}));let s=i.panes.find(e=>e.id===t.paneId);if(!s)return I(e);let c=t.disposition===`preview`?s.previewTabId:null;return i=N(i,t.paneId,e=>{let n=c?e.openTabs.indexOf(c):-1,r=c?e.openTabs.filter(e=>e!==c):e.openTabs,i=n<0?[...r,t.tabId]:[...r.slice(0,n),t.tabId,...r.slice(n)];return{...e,openTabs:i,pinnedTabIds:e.pinnedTabIds.filter(e=>e!==c),activeTabId:t.tabId,activeNewTabId:null,activeTarget:t.target,previewTabId:t.disposition===`preview`?t.tabId:e.previewTabId}}),i=j(i,t.paneId),L(i,{openedTabId:t.tabId,replacedPreviewTabId:c,consumedNewTabId:r})}case`activate-tab`:return L(Le(e,t.paneId,t.tabId));case`promote-preview`:return L(N(e,t.paneId,e=>({...e,previewTabId:e.previewTabId===t.tabId?null:e.previewTabId})));case`promote-all-previews`:return L({...e,panes:e.panes.map(e=>({...e,previewTabId:null}))});case`open-new-tab`:{if(!T(t.tabId))return I(e);let n=M(e,t.tabId);return n?L(Le(e,n.id,t.tabId)):e.panes.some(e=>e.id===t.paneId)?L(j(N(e,t.paneId,e=>({...e,newTabIds:[...e.newTabIds,t.tabId],activeTabId:null,activeNewTabId:t.tabId,activeTarget:null})),t.paneId)):I(e)}case`close-tabs`:return L(Pe(e,t.paneId,t.tabIds));case`pin-tab`:return L(N(e,t.paneId,e=>e.openTabs.includes(t.tabId)?{...e,pinnedTabIds:e.pinnedTabIds.includes(t.tabId)?e.pinnedTabIds:[...e.pinnedTabIds,t.tabId],previewTabId:e.previewTabId===t.tabId?null:e.previewTabId}:e));case`unpin-tab`:return L(N(e,t.paneId,e=>({...e,pinnedTabIds:e.pinnedTabIds.filter(e=>e!==t.tabId)})));case`reorder-tabs`:return L(ke(e,t.paneId,t.tabIds,t.draggedTabId));case`move-tab`:return L(Me(e,t.tabId,t.paneId,t.index));case`split-tab`:return L(Ne(e,t.tabId,t.paneId,t.side,()=>t.newPaneId));case`resize-panes`:return t.sizes.length!==e.panes.length||t.sizes.some(e=>!E(e))?I(e):L({...e,panes:e.panes.map((e,n)=>({...e,size:t.sizes[n]??e.size}))});case`remap-tabs`:return L(Fe(e,t.remap));case`prune-tabs`:return L(Ie(e,t.keep));default:return I(e)}}function ze(e,t,n=25){return!w(t.paneId)||!T(t.tabId)||n<=0?[...e]:[t,...e.filter(e=>e.tabId!==t.tabId)].slice(0,n)}function Be(e){return s.includes(e)}function Ve(e,t,n){return typeof e!=`string`||!n.includes(e)?null:tt(e)===(t===`skills`)?e:null}function R(){return $(we(null),null,{})}var He=`ok-editor-tabs-v1:`,z=`\0folder:`,B=`\0asset:`,V=`\0skill-file:`,H=`\0skill-preview:`,U=/\.(md|mdx)$/i;function Ue(e){return U.test(e)?e.replace(U,``):null}function W(e){if(typeof e!=`string`||e.length===0||e.includes(`\0doc-tab:`))return!1;let t=e;return t.startsWith(z)?t.length>8:t.startsWith(B)?t.length>7:t.startsWith(V)?Ke(t)!==null:t.startsWith(H)?Ye(t)!==null:!0}var We=`:`;function Ge(e){let t=e.host===void 0?e.name:`${e.name}${We}${e.host}`;return`${V}${e.scope}/${t}/${e.path}`}function Ke(e){if(!e.startsWith(V))return null;let t=e.slice(12).split(`/`);if(t.length<3)return null;let[n,r,...i]=t,a=i.join(`/`);if(!n||!r||!a||!Be(n))return null;let o=r.indexOf(We),s=o===-1?r:r.slice(0,o),c=o===-1?void 0:r.slice(o+1);return s?{scope:n,name:s,path:a,...c?{host:c}:{}}:null}function qe(e){return`${H}${g(e)}`}function Je(e,t,n,r){for(let i of e){let e=J(i);if(e.kind===`skill-preview`&&e.flavor===t&&e.name===n&&e.level===r)return i}return null}function Ye(e){return e.startsWith(H)?te(e.slice(15)):null}function G(e){return e}function K(e){return`${z}${e}`}function q(e){return`${B}${e}`}function Xe(e,t){let n=b(e);if(n){let e=ae(n);return{baseName:e,extension:``,label:e,prefix:``}}let r=o(e);if(r){let e=r.rel?r.rel.split(`/`).pop()??r.rel:ae(r.name);return{baseName:e,extension:``,label:e,prefix:``}}let i=e.lastIndexOf(`/`),a=i<0?e:e.slice(i+1),s=U.test(t)&&U.test(a)?``:t,c=`${a}${s}`;return i<0?{baseName:a,extension:s,label:c,prefix:``}:{baseName:a,extension:s,label:c,prefix:`${e.slice(0,i)}/`}}function Ze(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return G(e.docName);case`folder`:return K(e.folderPath);case`missing`:return G(e.target);case`asset`:return q(e.assetPath);case`skill-file`:return Ge(e);case`skills`:return null;case`skill-preview`:return qe(e)}}function J(e){let t=e;if(t.startsWith(z))return{kind:`folder`,folderPath:t.slice(8)};if(t.startsWith(B))return{kind:`asset`,assetPath:t.slice(7)};let n=Ye(t);if(n)return{kind:`skill-preview`,...n};let r=Ke(t);return r?{kind:`skill-file`,...r}:{kind:`doc`,docName:t}}function Qe(e){let t=J(e);return t.kind===`doc`?t.docName:null}function $e(e,t){return e||t>0}function Y(t){return u(t)!=null||e(t)?.kind===`skill`||o(t)!=null}var et=/(?:^|\/)skills\/[^/]+\/(?:SKILL|references\/.+)$/;function X(e){return et.test(e)}function tt(e){let t=J(e);return t.kind===`skill-file`||t.kind===`skill-preview`||t.kind===`doc`&&(Y(t.docName)||X(t.docName))}function Z(e,t){if(!Array.isArray(e)||t<=0)return[];let n=[],r=new Set;for(let i of e)if(W(i)&&!r.has(i)&&(r.add(i),n.push(i),n.length>=t))break;return n}function nt(e,t,n){if(t<=0)return[];let r=new Set(Z(n,2**53-1)),i=Z(e,2**53-1);if(r.size===0&&i.length<=t)return i;let a=[],o=0;for(let e=i.length-1;e>=0;e--){let n=i[e];if(r.has(n)){a.push(n);continue}o>=t||(o++,a.push(n))}return a.reverse()}function rt(e,t){let n=new Set(Z(t,2**53-1));return Z(e,2**53-1).filter(e=>!n.has(e))}function it(e,t,n){let r=Z(t,2**53-1),i=new Set(r),a=new Set(n),o=new Set,s=[];for(let t of e)o.has(t)||!i.has(t)&&!a.has(t)||(o.add(t),s.push(t));for(let e of[...r,...n])o.has(e)||(o.add(e),s.push(e));return s}function at(e,{pages:t,folderPaths:r,assetPaths:i,filePaths:a,keepMissingDocName:o=null,keepHashDocName:s=null}){return Z(e,2**53-1).filter(e=>{let c=J(e);if(c.kind===`folder`)return r.has(c.folderPath);if(c.kind===`asset`)return i.has(c.assetPath)||a?.has(c.assetPath)===!0;if(c.kind===`skill-file`||c.kind===`skill-preview`)return!0;let l=Ue(c.docName);return t.has(c.docName)||l!==null&&t.has(l)||n(c.docName)||c.docName===o||c.docName===s})}function ot(e,t,n,r=[],i=[],a=[]){if(t.length===0&&r.length===0&&a.length===0)return Z(e,n);let o=new Map(t.map(e=>[e.fromDocName,e.toDocName])),s=new Map(a.flatMap(e=>{let t=Ue(e.fromPath);return t?[[t,e.toPath]]:[]})),c=new Map(a.flatMap(e=>{let t=Ue(e.toPath);return t?[[e.fromPath,t]]:[]})),l=e=>ct(Q(e,r),a),u=(e,t)=>{let n=o.get(e);if(n)return n;let r=s.get(e);return r?q(r):t},d=e=>{let t=c.get(e);return t?G(t):q(l(e))},f=[],p=new Set;for(let t of e){if(!W(t))continue;let e=J(t),a=e.kind===`doc`?u(e.docName,t):e.kind===`folder`?K(Q(e.folderPath,r)):e.kind===`asset`?d(e.assetPath):t;if(!p.has(a)&&(p.add(a),f.push(a),i.length===0&&f.length>=n))break}return i.length===0?f:nt(f,n,i.flatMap(e=>{if(!W(e))return[];let t=J(e);return[t.kind===`doc`?u(t.docName,e):t.kind===`folder`?K(Q(t.folderPath,r)):t.kind===`asset`?d(t.assetPath):e]}))}function st(e,t,n=[],r=[]){return ot(e,t,2**53-1,n,[],r)}function Q(e,t){for(let{fromPath:n,toPath:r}of t){if(e===n)return r;if(e.startsWith(`${n}/`))return`${r}${e.slice(n.length)}`}return e}function ct(e,t){for(let{fromPath:n,toPath:r}of t)if(e===n)return r;return e}function lt(e){if(typeof e!=`object`||!e)return R();let t=e;if(!Array.isArray(t.panes))return R();let n=typeof t.activeTabByMode==`object`&&t.activeTabByMode!==null&&!Array.isArray(t.activeTabByMode)?t.activeTabByMode:{};return $(we(t),typeof t.updatedAt==`string`?t.updatedAt:null,n)}function $(e,t,n){let r=e.panes.flatMap(e=>e.openTabs);return{activeTabByMode:{files:Ve(n.files,`files`,r),skills:Ve(n.skills,`skills`,r)},updatedAt:t,panes:e.panes,focusedPaneId:e.focusedPaneId}}function ut(e,t={files:null,skills:null},n=()=>new Date){return $(Ce(e),n().toISOString(),t)}function dt(e){return`${He}${e}`}function ft(e,t){if(!e)return R();try{let n=e.getItem(t);return n?lt(JSON.parse(n)):R()}catch(e){return console.warn(`[editor-tabs] failed to read local tab session:`,e),R()}}function pt(e,t,n){if(e)try{e.setItem(t,JSON.stringify(lt(n)))}catch(e){console.warn(`[editor-tabs] failed to write local tab session:`,e)}}function mt(e){return e?e.kind===`skills`||e.kind===`skill-file`||e.kind===`skill-preview`?!0:e.kind===`doc`&&(Y(e.docName)||X(e.docName)):!1}function ht(e){let t=e.trim();return{normalizedTarget:t.replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function gt(e){return ne(e).replace(/\/+$/g,``)}function _t(e){let t=new Set;for(let n of e)for(let e of ie(n))t.add(e);return t}function vt(e,t){if(!t)return;let n=p(e);if(n)return t.get(n)}function yt(e,t){if(!t||e.includes(`/`))return;let n=p(e);if(n)return t.get(n)}function bt(e,t){return t?`${e}${t}`:(e.split(`/`).pop()??``).lastIndexOf(`.`)>0?e:`${e}.md`}function xt(e,t){if(!re(e))return null;let n=i(e);if(n)return{kind:`doc`,target:n,docName:n};if(t.pages.has(e))return null;let r=bt(e,t.docExt);return{kind:`asset`,target:r,assetPath:r,mediaKind:a(r.slice(r.lastIndexOf(`.`)+1))}}function St(t,a){if(n(t)){let n=e(t);if(n?.kind===`skill`&&n.scope===`project`){let e=r(n.name);return{kind:`doc`,target:e,docName:e}}return{kind:`doc`,target:t,docName:t}}if(b(t))return{kind:`doc`,target:t,docName:t};let o=i(t);if(o)return{kind:`doc`,target:o,docName:o};let{normalizedTarget:s,expectsFolder:l}=ht(t);if(!s)return{kind:`missing`,target:s};if(!l&&(m(s)||c(s)))return{kind:`doc`,target:s,docName:s};let u=gt(t);if(!l&&a.pages.has(s))return{kind:`doc`,target:s,docName:s};if(!l&&u!==s&&a.pages.has(u))return{kind:`doc`,target:u,docName:u};if(!l){let e=vt(u,a.pagesBySlug);if(e)return{kind:`doc`,target:e,docName:e}}let d=`${u}/index`;if(a.pages.has(d))return{kind:`folder-index`,target:u,folderPath:u,docName:d,noteKind:`canonical-index`};let f=u.split(`/`).pop(),p=f?`${u}/${f}`:null;if(p&&a.pages.has(p))return{kind:`folder-index`,target:u,folderPath:u,docName:p,noteKind:`legacy-folder-note`};if(!l){let e=yt(u,a.pagesByBasename);if(e)return{kind:`doc`,target:e,docName:e}}if((a.folderPaths??_t(a.pages)).has(u))return{kind:`folder`,target:u,folderPath:u};if(!l){let e=xt(s,a);if(e)return e}return{kind:`missing`,target:u||s}}function Ct(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function wt(e,n,r=t){return typeof n!=`number`||!f(n,r)?null:{kind:`large-file`,target:e,docName:e,size:n,limit:r}}function Tt(e,n,r=t){return e.kind!==`doc`&&e.kind!==`folder-index`?e:wt(e.docName,n.get(e.docName)?.size,r)??e}function Et(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`skill-file`:case`skills`:case`skill-preview`:case`folder`:return null}}export{de as $,qe as A,A as B,ft as C,st as D,Q as E,Oe as F,N as G,ze as H,De as I,he as J,b as K,j as L,Xe as M,pt as N,$e as O,Ee as P,ce as Q,Te as R,lt as S,ot as T,je as U,Ae as V,Re as W,ue as X,me as Y,le as Z,X as _,wt as a,dt as b,Tt as c,Qe as d,fe as et,G as f,K as g,Je as h,mt as i,Ze as j,Ge as k,q as l,at as m,Et as n,xt as o,rt as p,ge as q,Ct as r,St as s,_t as t,pe as tt,ut as u,Y as v,it as w,J as x,tt as y,Se as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-EMLP6XTP-DZw4ZtXy.js";export{e as createPacketServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-YOTPTUD7-Cg9yDbvj.js";export{e as createPieServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-QBLGF6JB-4F2Itui7.js";export{e as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-5TONJI2A-Bxf6m0R0.js";export{e as createRailroadServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-5HE753X5-BiVTlY9X.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-U6XO7XAA-CHI_dfPQ.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-JG7HCLWE-DvlaYzpW.js";export{e as createRailroadPegServices};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{an as e}from"./dist-P5PuqHtu2.js";function t(t){return e(t)}function n(e,t){switch(e.kind){case`ok`:return null;case`not-git`:return`This folder doesn't contain a git repository. Pick a different folder?`;case`wrong-repo`:return`This folder is a clone of ${e.actualOwner}/${e.actualRepo}, not ${t.owner}/${t.repo}. Pick a different folder?`;case`wrong-host`:return`This folder is a clone of ${t.owner}/${t.repo} on ${e.actualHost}, not ${t.host}. Pick a folder cloned from ${t.host}?`;case`no-origin`:case`non-github`:case`symlink-escape`:return`This folder isn't a clone of ${t.owner}/${t.repo}. Pick a different folder?`}}function r(e){return e.kind===`unsupported-version`?{kind:`unsupported-version`,message:`Update OpenKnowledge to open this share.`}:e.kind===`invalid`?{kind:`invalid`,message:`Invalid share URL.`}:null}function i(e){let t=e.split(`
|
|
2
|
-
`).map(e=>e.trim()).filter(e=>e.length>0&&!/^Cloning into /i.test(e)),n=t.filter(e=>/^remote:/i.test(e)),r=n[n.length-1];if(r)return r.replace(/^remote:\s*/i,``).trim();let i=t.find(e=>/^fatal:/i.test(e));return i?i.replace(/^fatal:\s*/i,``).trim():t[0]??``}function a(e){let t=[`[receive]`];return e.q2_path!==void 0&&t.push(`q2_path=${e.q2_path}`),e.folder_validate!==void 0&&t.push(`folder_validate=${e.folder_validate}`),e.branch_action!==void 0&&t.push(`branch_action=${e.branch_action}`),e.branch!==void 0&&t.push(`branch=${e.branch}`),e.doc_check!==void 0&&t.push(`doc_check=${e.doc_check}`),e.branch_dialog_action!==void 0&&t.push(`branch_dialog_action=${e.branch_dialog_action}`),e.verdict_cell!==void 0&&t.push(`verdict_cell=${e.verdict_cell}`),t.join(` `)}function o(){let e=null,t=new Set,n=!1,r=null;function i(){for(let e of t)e()}function a(){e!==null&&(e=null,i())}return{install({bridge:t}){if(t)return n?r??void 0:(n=!0,r=t.onShareReceived(t=>{e=t,i()}),()=>{r?.(),r=null,n=!1,a()})},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dismiss(){a()}}}var s=o();function c(e){return s.install(e)}export{a,i,s as n,n as o,t as r,r as s,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./utils-CPqDy6Hr.js";import{t as i}from"./badge-CnYDYmI5.js";var a=n(),o=e();function s(e){let n=(0,a.c)(5),{className:s}=e,c;n[0]===s?c=n[1]:(c=r(`h-4 px-1 text-[10px]`,s),n[0]=s,n[1]=c);let l;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,o.jsx)(t,{id:`YBt9YP`}),n[2]=l):l=n[2];let u;return n[3]===c?u=n[4]:(u=(0,o.jsx)(i,{variant:`gray`,className:c,children:l}),n[3]=c,n[4]=u),u}var c=null,l=new Set;function u(e){c=e;for(let t of l)t(e)}function d(e){return c===e?(c=null,!0):!1}function f(e){return l.add(e),()=>{l.delete(e)}}export{s as i,u as n,f as r,d as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{L as n,Qn as r,hr as i,i as a}from"./DocumentContext-CfyZrOH1.js";import{t as o}from"./react-f2sANaYj.js";import{n as s,r as c}from"./dist-Nvb76hAm.js";import{t as l}from"./compiler-runtime-BfE3aGVn.js";import{s as u}from"./local-menu-action-bus-iy6v2osW.js";import{t as d}from"./utils-CPqDy6Hr.js";import{t as f}from"./use-workspace-BVw2SUvV.js";import{c as p,i as m,n as h,o as g,s as _,t as v}from"./ChangedOutsideBadge-DCLuBScT.js";import{t as y}from"./button-RQ5o7P7w.js";import{c as b,i as x,l as S,o as C,t as w}from"./dist-Bi80hc1t.js";import{i as T,n as E,t as D}from"./tooltip-x7BNUa3s.js";import{a as O,c as k,i as A,n as j,o as M,r as N,s as P,t as F}from"./dialog-DwFomKjP.js";import{_ as I,a as L,c as R,d as z,f as B,g as V,h as H,i as U,l as W,m as G,n as K,o as q,p as J,r as Y,s as X,t as ee,u as te}from"./dist-G89kioZo.js";import{a as ne,d as re,f as ie,i as ae,n as oe,o as se,p as ce,u as le}from"./dropdown-menu-DRytYgB4.js";import{t as ue}from"./label-BT2yjpKR.js";import{C as de,a as fe,f as pe,h as me,m as he,n as ge,o as _e,p as ve,r as ye,s as be,t as xe}from"./agent-visibility-BxHoyzki.js";import{$t as Se,Cn as Ce,Ct as we,Jt as Te,Nt as Ee,Pt as De,Sn as Oe,Sr as ke,Va as Ae,Wa as je,_n as Me,ga as Ne,gn as Pe,hn as Fe,it as Ie,kt as Le,mn as Re,nn as ze,oi as Be,rt as Ve,tn as He,wn as Ue,xn as We,yn as Ge,za as Ke}from"./dist-P5PuqHtu2.js";import{t as qe}from"./createLucideIcon-BbgVV4EV.js";import{t as Je}from"./RegisteredAgentIcon-CSZXCqwG.js";import{n as Ye,r as Xe}from"./ManagedArtifactProperties-B8dqEG77.js";import{t as Ze}from"./check-DLRoQSSY.js";import{t as Qe}from"./chevron-right-BjiB8LDf.js";import{n as $e}from"./CopyButton-DfXJBl0I.js";import{t as et}from"./folder-open-ee990ToL.js";import{t as tt}from"./folder-DxrU2PLH.js";import{t as nt}from"./trash-2-Ccq_llrY.js";import{n as rt}from"./dist-DmEZHXvB.js";import{t as it}from"./input-CtKG6a5B.js";import{t as at}from"./dist-CpRBr-Ct.js";import{i as ot}from"./use-settings-route-B10M97I7.js";import{t as st}from"./parse-api-error-BFe1cdS7.js";import{J as ct,q as lt,x as ut}from"./navigation-targets-BTpBtlo2.js";import{c as dt,n as ft,o as pt}from"./documents-events-KbhMdUCf.js";import{a as mt,c as ht,f as gt,n as _t,r as vt}from"./skill-scope-DEvpbPXx.js";import{t as yt}from"./badge-CnYDYmI5.js";import{C as bt,O as xt,S as St,a as Ct,b as wt,j as Tt,k as Et,l as Dt,n as Ot,p as kt,r as At,t as jt,v as Mt,y as Nt}from"./skills-api-BpuwZVN9.js";import{n as Pt}from"./config-context-3DA5oQRi.js";import{t as Ft}from"./use-skills-0q5Zcw-J.js";import{t as It}from"./use-open-skill-Bq2DfJ8n.js";import{n as Lt}from"./clipboard-adapter-DPkNOslT.js";import{t as Rt}from"./DiffView-Bc5gwnAV.js";var Z=e(o(),1),Q=t(),zt=`ContextMenu`,[Bt,Vt]=b(zt,[I]),Ht=I(),[Ut,Wt]=Bt(zt),Gt=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:i,modal:a=!0}=e,[o,s]=Z.useState(!1),c=Ht(t),l=w(r),u=Z.useCallback(e=>{s(e),l(e)},[l]);return(0,Q.jsx)(Ut,{scope:t,open:o,onOpenChange:u,modal:a,children:(0,Q.jsx)(B,{...c,dir:i,open:o,onOpenChange:u,modal:a,children:n})})};Gt.displayName=zt;var Kt=`ContextMenuTrigger`,qt=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...i}=e,a=Wt(Kt,n),o=Ht(n),s=Z.useRef({x:0,y:0}),c=Z.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),l=Z.useRef(0),u=Z.useCallback(()=>window.clearTimeout(l.current),[]),d=e=>{s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return Z.useEffect(()=>u,[u]),Z.useEffect(()=>void(r&&u()),[r,u]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ee,{...o,virtualRef:c}),(0,Q.jsx)(S.span,{"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,...i,ref:t,style:{WebkitTouchCallout:`none`,...e.style},onContextMenu:r?e.onContextMenu:C(e.onContextMenu,e=>{u(),d(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:C(e.onPointerDown,Cn(e=>{u(),l.current=window.setTimeout(()=>d(e),700)})),onPointerMove:r?e.onPointerMove:C(e.onPointerMove,Cn(u)),onPointerCancel:r?e.onPointerCancel:C(e.onPointerCancel,Cn(u)),onPointerUp:r?e.onPointerUp:C(e.onPointerUp,Cn(u))})]})});qt.displayName=Kt;var Jt=`ContextMenuPortal`,Yt=e=>{let{__scopeContextMenu:t,...n}=e,r=Ht(t);return(0,Q.jsx)(W,{...r,...n})};Yt.displayName=Jt;var Xt=`ContextMenuContent`,Zt=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Wt(Xt,n),a=Ht(n),o=Z.useRef(!1);return(0,Q.jsx)(U,{...a,...r,ref:t,side:`right`,sideOffset:2,align:`start`,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),!t.defaultPrevented&&o.current&&t.preventDefault(),o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),!t.defaultPrevented&&!i.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Zt.displayName=Xt;var Qt=`ContextMenuGroup`,$t=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(L,{...i,...r,ref:t})});$t.displayName=Qt;var en=`ContextMenuLabel`,tn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(R,{...i,...r,ref:t})});tn.displayName=en;var nn=`ContextMenuItem`,rn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(q,{...i,...r,ref:t})});rn.displayName=nn;var an=`ContextMenuCheckboxItem`,on=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(Y,{...i,...r,ref:t})});on.displayName=an;var sn=`ContextMenuRadioGroup`,cn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(te,{...i,...r,ref:t})});cn.displayName=sn;var ln=`ContextMenuRadioItem`,un=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(z,{...i,...r,ref:t})});un.displayName=ln;var dn=`ContextMenuItemIndicator`,fn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(X,{...i,...r,ref:t})});fn.displayName=dn;var pn=`ContextMenuSeparator`,mn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(J,{...i,...r,ref:t})});mn.displayName=pn;var hn=`ContextMenuArrow`,gn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(K,{...i,...r,ref:t})});gn.displayName=hn;var _n=`ContextMenuSub`,vn=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:i,defaultOpen:a}=e,o=Ht(t),[s,c]=x({prop:i,defaultProp:a??!1,onChange:r,caller:_n});return(0,Q.jsx)(G,{...o,open:s,onOpenChange:c,children:n})};vn.displayName=_n;var yn=`ContextMenuSubTrigger`,bn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(V,{...i,...r,ref:t})});bn.displayName=yn;var xn=`ContextMenuSubContent`,Sn=Z.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=Ht(n);return(0,Q.jsx)(H,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-context-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-context-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-context-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-context-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Sn.displayName=xn;function Cn(e){return t=>t.pointerType===`mouse`?void 0:e(t)}var wn=Gt,Tn=qt,En=Yt,Dn=Zt,On=$t,kn=tn,An=rn,jn=on,Mn=fn,Nn=mn,Pn=vn,Fn=bn,In=Sn,Ln=qe(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Rn=qe(`cloud-download`,[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]]),zn=qe(`list-plus`,[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]),Bn=qe(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),Vn=qe(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),$=l();function Hn(e){return{async install(t){let n;try{n=await e.buildAndOpen(t?.force?{force:!0}:void 0)}catch(e){return{ok:!1,reason:`bridge-error`,message:e instanceof Error?e.message:String(e)}}return n.ok?{ok:!0,path:n.path}:{ok:!1,reason:n.reason,message:n.message}}}}function Un(e={}){let t=e.fetch??globalThis.fetch,n=`${e.apiOrigin??``}/api/install-skill`;return{async install(e){let r;try{r=await t(n,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e?.force?{force:!0}:{})})}catch(e){return{ok:!1,reason:`network-error`,message:e instanceof Error?e.message:String(e)}}if(!r.ok){let e=`HTTP ${r.status}`;try{let t=st(await r.json());t&&(e=t)}catch{}return{ok:!1,reason:`http-error`,message:e}}let i;try{i=await r.json()}catch(e){return{ok:!1,reason:`parse-error`,message:e instanceof Error?e.message:`Invalid server response`}}return!i||typeof i.status!=`string`?{ok:!1,reason:`parse-error`,message:`Invalid server response shape`}:i.status===`failed`?{ok:!1,reason:`build-failed`,message:i.buildError??`unknown build failure`}:{ok:!0,path:i.outputPath,handoffWarning:i.handoffError?.message}}}}function Wn(){if(typeof window>`u`)return null;let e=window.okDesktop?.skill;return e?Hn(e):Un()}var Gn=`ok:skill:cowork:installed`,Kn=`1`,qn=250,Jn=`/api/skill/install-state`;function Yn(e){return`${Gn}:v${e}`}var Xn=new Map;async function Zn(e={},t={}){let n=t.force?`__force__`:`__default__`,r=Xn.get(n);if(r)return r;let i=Qn(e,t);return Xn.set(n,i),i.finally(()=>{Xn.get(n)===i&&Xn.delete(n)}),i}async function Qn(e,t){let n=e.installer===void 0?Wn():e.installer,r=$n(e.storage),i=e.fetchSnapshot??tr,a=e.serverTimeoutMs??qn,o=null;if(!t.force){try{o=await nr(i(),a)}catch(e){console.warn(`[cowork-skill] server install-state check failed; falling through:`,e)}if(o){let e=o.targets[`claude-cowork`]??null;if(e&&e.version===o.currentVersion)return{kind:`already-installed`,source:`server`}}}let s=Yn(o?.currentVersion??e.fallbackSkillVersion??er());if(!t.force&&r?.getItem(s)===Kn)return{kind:`already-installed`,source:`local`};if(!n)return{kind:`host-unsupported`};let c=await n.install({force:t.force??!1});if(!c.ok)return{kind:`install-failed`,reason:c.reason,message:c.message};try{r?.setItem(s,Kn)}catch(e){console.warn(`[cowork-skill] storage.setItem failed (guard will not persist):`,e)}return{kind:`installed-now`,path:c.path,handoffWarning:c.handoffWarning}}function $n(e){if(e!==void 0)return e;if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function er(){return typeof window>`u`?`unknown`:window.okDesktop?.appVersion??`unknown`}async function tr(){let e;try{e=await fetch(Jn,{method:`GET`,cache:`no-store`})}catch{return null}if(!e.ok)return null;try{let t=await e.json();return typeof t?.currentVersion==`string`?t:null}catch{return null}}async function nr(e,t){return Promise.race([e,new Promise(e=>{setTimeout(()=>e(null),t)})])}function rr(e){return Zn({},e)}function ir(){return Zn({},{force:!0})}async function ar(e,t){let n;try{n=await t(`/api/handoff`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})}catch(e){return{ok:!1,reason:`dispatch-error`,detail:e instanceof Error?e.message:String(e)}}return n.status===200?{ok:!0}:n.status===404?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned 404`}:n.status===422?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned ${n.status}`}:{ok:!1,reason:`dispatch-error`,detail:`POST /api/handoff returned ${n.status}`}}async function or(e,t={}){let n=t.fetch??globalThis.fetch.bind(globalThis);switch(e.target){case`claude-cowork`:return ar({target:`claude-cowork`,url:Se({mode:`cowork`},e)},n);case`claude-code`:return ar({target:`claude-code`,url:Se({mode:`code`},e)},n);case`codex`:return ar({target:`codex`,url:He(e)},n);case`cursor`:return ar({target:`cursor`,url:ze(e),workspacePath:e.projectDir},n);case`copilot`:return{ok:!1,reason:`invalid-payload`,detail:`copilot is terminal-only; launch via requestTerminalLaunch`};case`opencode`:return{ok:!1,reason:`invalid-payload`,detail:`opencode is terminal-only; launch via requestTerminalLaunch`};case`pi`:return{ok:!1,reason:`invalid-payload`,detail:`pi is terminal-only; launch via requestTerminalLaunch`};case`antigravity`:return{ok:!1,reason:`invalid-payload`,detail:`antigravity is terminal-only; launch via requestTerminalLaunch`};case`openclaw`:return{ok:!1,reason:`invalid-payload`,detail:`openclaw is terminal-only; launch via requestTerminalLaunch`};case`hermes`:return{ok:!1,reason:`invalid-payload`,detail:`hermes is terminal-only; launch via requestTerminalLaunch`};default:{let t=e.target;return{ok:!1,reason:`invalid-payload`,detail:`unknown target: ${String(t)}`}}}}async function sr(e,t={}){let n=t.okDesktop??(typeof window<`u`?window.okDesktop:void 0);if(n?.shell?.recordHandoff)try{await n.shell.recordHandoff(e)}catch(e){(t.warn??(e=>console.warn(e)))(`[handoff] recordHandoff IPC rejected (telemetry skipped): ${e instanceof Error?e.message:String(e)}`)}}function cr(e,t,n){let r=n===`\\`?t.replaceAll(`/`,`\\`):t;return`${e.endsWith(n)?e.slice(0,-1):e}${n}${r}`}var lr=/\.(md|mdx)$/i;function ur(e){return lr.test(e)?e:`${e}.md`}var dr=`open-knowledge:agent-thread-launch`;function fr(e,t=typeof window>`u`?new EventTarget:window){t.dispatchEvent(new CustomEvent(dr,{detail:e}))}function pr(e,t=typeof window>`u`?new EventTarget:window){let n=t=>{let n=t instanceof CustomEvent?t.detail:void 0;n&&typeof n.agentId==`string`&&e(n)};return t.addEventListener(dr,n),()=>t.removeEventListener(dr,n)}function mr(e){if(!e.docName||!e.workspace)return null;let t=ur(e.docName),{contentDir:n,pathSeparator:r}=e.workspace;return{docContext:{relativePath:t},projectDir:n,docPath:cr(n,t,r)}}function hr(e){return e.workspace?.contentDir?{docContext:null,projectDir:e.workspace.contentDir,docPath:``}:null}function gr(e){return e.workspace?.contentDir?{docContext:null,createDescription:e.description,createScenario:e.scenario,createMentions:e.mentions,projectDir:e.workspace.contentDir,docPath:``}:null}function _r(e){return ve(e.installUrl).then(()=>void 0)}function vr(e){return!e.workspace?.contentDir||!e.folderRelativePath?null:{docContext:null,folderRelativePath:e.folderRelativePath,projectDir:e.workspace.contentDir,docPath:``}}function yr(e){return!e.workspace?.contentDir||!e.skillName?null:{docContext:null,skill:{name:e.skillName,scope:e.scope},projectDir:e.workspace.contentDir,docPath:``}}function br(e){if(!e.workspace?.contentDir)return null;let{contentDir:t,pathSeparator:n}=e.workspace;if(e.docName){let r=e.docRelativePath??ur(e.docName),i={scope:`doc`,docRelativePath:r,instruction:e.instruction,mentions:e.mentions};return{docContext:null,compose:e.selection===void 0?i:{...i,selection:e.selection},projectDir:t,docPath:cr(t,r,n)}}return e.folderRelativePath?{docContext:null,compose:{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}:{docContext:null,compose:{scope:`project`,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}}function xr(e){return`Opened in ${e}.`}function Sr(e,t=1){return t>=3?`Couldn't reach ${e} — please try again later.`:t===2?`Still couldn't reach ${e} — try one more time?`:`Couldn't reach ${e} — try again?`}function Cr(e){return e>=3?null:e===2?`Try one more time`:`Retry`}function wr(e,t,n,r,i){let a=i===void 0?{}:{scope:i};return t.ok?{target:e,host:n,outcome:`ok`,ts:r,...a}:{target:e,host:n,outcome:`error`,ts:r,reason:t.reason,...a}}function Tr(e,t,n,r){if(e.scope===`doc`){let i={scope:`doc`,docRelativePath:e.docRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r};return e.selection===void 0?i:{...i,selection:e.selection}}return e.scope===`folder`?{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}:{scope:`project`,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}}function Er(e,t,n,r){return e.compose?Te(Tr(e.compose,t,n,r)):e.selection?We({...e.selection,target:t,transport:r}):e.skill?Oe(e.skill.name,e.skill.scope,n):e.ask?Re(e.ask.relativePath,e.ask.instruction,n,t,r):Be(e.docContext===null?e.folderRelativePath?Ge(e.folderRelativePath,n,e.instruction,r):e.createDescription===void 0?Pe(n,e.instruction,r):Fe(e.createDescription,n,e.createScenario??`new-project`,e.createMentions??[],r):Me(e.docContext.relativePath,n,e.instruction,r))}function Dr(e,t){let n=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||n?`${Ve} ${Er(e,Ee[t].handoffTarget,!1,`terminal`)}`:Ce(e.docContext?.relativePath??null)}function Or(e){let t=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||t?`${Ie} ${Er(e,`claude-code`,!1,`terminal`)}`:Ue(e.docContext?.relativePath??null)}function kr(e){let t=e.docContext?.relativePath;return typeof t!=`string`||t===``?null:t.replace(/\.(md|mdx)$/,``)}function Ar(e){let t=[e.compose?.instruction,e.selection?.instruction,e.ask?.instruction,e.createDescription,e.instruction];for(let e of t)if(typeof e==`string`&&e.trim()!==``)return e;return null}function jr(e,t){fr({agentSource:t?.agent?.source??`registry`,agentId:t?.agent?.id??``,prompt:Or(e),docName:kr(e),titleHint:Ar(e)})}async function Mr(e,t,n,r=1){if(e===`claude-cowork`&&r===1){let e;try{e=await n.ensureCoworkSkillInstalled()}catch(e){let t=e instanceof Error?e.message:String(e);return n.toast.error(`Couldn't install OpenKnowledge skill — ${t}`),{ok:!1,reason:`dispatch-error`,detail:`install-error: ${t}`}}if(e.kind===`installed-now`)return n.toast.success(`OpenKnowledge skill saved. Upload it in Claude Desktop, then click Cowork again.`),{ok:!0};if(e.kind===`install-failed`){let t=e.message??e.reason;return n.toast.error(`Couldn't install OpenKnowledge skill — ${t}`),{ok:!1,reason:`dispatch-error`,detail:`install-failed: ${t}`}}}let i={target:e,projectDir:t.projectDir,docPath:t.docPath,prompt:Er(t,e,n.autoOpen,`url`)},a=await n.dispatchHandoff(i),o=n.isElectronHost()?`electron`:`web`,s=n.now().toISOString(),c=t.compose,l=wr(e,a,o,s,t.selection!=null||c?.scope===`doc`&&c.selection!==void 0?`selection`:void 0);await n.recordHandoff(l);let u=n.getDisplayName(e);if(a.ok)n.toast.success(xr(u));else{let i=Cr(r),a=Sr(u,r);i===null?n.toast.error(a):n.toast.error(a,{action:{label:i,onClick:()=>{Mr(e,t,n,r+1)}}})}return a}function Nr(e){return he.find(t=>t.id===e)?.displayName??e}function Pr(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Fr(){return{dispatchHandoff:or,recordHandoff:sr,toast:{success:e=>{rt.success(e)},error:(e,t)=>{rt.error(e,t?{action:t.action}:void 0)}},now:()=>new Date,isElectronHost:()=>Pr(),getDisplayName:Nr,ensureCoworkSkillInstalled:rr,autoOpen:!0}}function Ir(){let e=(0,$.c)(2),{merged:t}=Pt(),n=t?.appearance?.preview?.autoOpen??!0,r;return e[0]===n?r=e[1]:(r={dispatch:(e,t)=>Mr(e,t,{...Fr(),autoOpen:n}),reinstallCoworkSkill:ir},e[0]=n,e[1]=r),r}function Lr(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(wn,{"data-slot":`context-menu`,...n}),t[2]=n,t[3]=r),r}function Rr(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`select-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Tn,{"data-slot":`context-menu-trigger`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function zr(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(On,{"data-slot":`context-menu-group`,...n}),t[2]=n,t[3]=r),r}function Br(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(Pn,{"data-slot":`context-menu-sub`,...n}),t[2]=n,t[3]=r),r}function Vr(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(En,{children:(0,Q.jsx)(Dn,{"data-slot":`context-menu-content`,className:i,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Hr(e){let t=(0,$.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,inset:r,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s;t[5]===n?s=t[6]:(s=d(`group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive`,n),t[5]=n,t[6]=s);let c;return t[7]!==r||t[8]!==i||t[9]!==s||t[10]!==o?(c=(0,Q.jsx)(An,{"data-slot":`context-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[7]=r,t[8]=i,t[9]=s,t[10]=o,t[11]=c):c=t[11],c}function Ur(e){let t=(0,$.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,inset:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o;t[5]===r?o=t[6]:(o=d(`flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,r),t[5]=r,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(Qe,{className:`ml-auto`}),t[7]=s):s=t[7];let c;return t[8]!==n||t[9]!==i||t[10]!==a||t[11]!==o?(c=(0,Q.jsxs)(Fn,{"data-slot":`context-menu-sub-trigger`,"data-inset":i,className:o,...a,children:[n,s]}),t[8]=n,t[9]=i,t[10]=a,t[11]=o,t[12]=c):c=t[12],c}function Wr(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`z-50 max-h-(--radix-context-menu-content-available-height) min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:overflow-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:duration-0 subtle-scrollbar`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(In,{"data-slot":`context-menu-sub-content`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Gr(e){let t=(0,$.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:i,children:r,checked:n,inset:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s;t[6]===i?s=t[7]:(s=d(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,i),t[6]=i,t[7]=s);let c;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2`,children:(0,Q.jsx)(Mn,{children:(0,Q.jsx)(Ze,{})})}),t[8]=c):c=t[8];let l;return t[9]!==n||t[10]!==r||t[11]!==a||t[12]!==o||t[13]!==s?(l=(0,Q.jsxs)(jn,{"data-slot":`context-menu-checkbox-item`,"data-inset":a,className:s,checked:n,...o,children:[c,r]}),t[9]=n,t[10]=r,t[11]=a,t[12]=o,t[13]=s,t[14]=l):l=t[14],l}function Kr(e){let t=(0,$.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,inset:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=d(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==i||t[8]!==a?(o=(0,Q.jsx)(kn,{"data-slot":`context-menu-label`,"data-inset":r,className:a,...i}),t[6]=r,t[7]=i,t[8]=a,t[9]=o):o=t[9],o}function qr(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`-mx-1 my-1 h-px bg-border`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Nn,{"data-slot":`context-menu-separator`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Jr(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(zr,{...r}):(0,Q.jsx)(ae,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Yr(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Hr,{...r}):(0,Q.jsx)(ne,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Xr(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Gr,{...r}):(0,Q.jsx)(oe,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Zr(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Kr,{...r}):(0,Q.jsx)(se,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Qr(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(qr,{...r}):(0,Q.jsx)(le,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function $r(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Br,{...r}):(0,Q.jsx)(re,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ei(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Wr,{...r}):(0,Q.jsx)(ie,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ti(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Q.jsx)(Ur,{...r}):(0,Q.jsx)(ce,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var ni=Object.freeze({hosts:null,source:null}),ri=new Map,ii=new Map;function ai(e,t){return`${e}:${t}`}function oi(e){return ri.get(e)??ni}function si(e,t){let n=ii.get(e)??new Set;return ii.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&&ii.delete(e)}}function ci(e,t){let n=oi(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?ri.delete(e):ri.set(e,r);for(let t of ii.get(e)??[])t()}}var li=Le.options,ui=`min-w-[24rem]`;function di(e,t){let n=(0,$.c)(45),r=t.installingName===e.name,i=(0,Z.useRef)(e),[a,o]=(0,Z.useState)(!1),s=(0,Z.useRef)(!1),c,l;n[0]===r?(c=n[1],l=n[2]):(c=()=>{s.current&&!r&&o(!0),s.current=r},l=[r],n[0]=r,n[1]=c,n[2]=l),(0,Z.useEffect)(c,l);let u,d;n[3]===e?(u=n[4],d=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},d=[e],n[3]=e,n[4]=u,n[5]=d),(0,Z.useEffect)(u,d);let f=r||a,p;n[6]!==e.name||n[7]!==e.scope?(p=ai(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=p):p=n[8];let m=p,h,g;n[9]===m?(h=n[10],g=n[11]):(h=e=>si(m,e),g=()=>oi(m),n[9]=m,n[10]=h,n[11]=g);let _=(0,Z.useSyncExternalStore)(h,g),v=_.hosts,y=_.source,b,x;n[12]!==y||n[13]!==m||n[14]!==e.hosts?(b=()=>{y!==null&&e.hosts[0]===y&&ci(m,{source:null})},x=[e.hosts,y,m],n[12]=y,n[13]=m,n[14]=e.hosts,n[15]=b,n[16]=x):(b=n[15],x=n[16]),(0,Z.useEffect)(b,x);let S=e.linkMode===!0,C=v??e.hosts,w;n[17]===C?w=n[18]:(w=new Set(C),n[17]=C,n[18]=w);let T=w,E=v?v.length>0:e.installed,D=(0,Z.useRef)(e.hosts),O,k;n[19]!==v||n[20]!==e.hosts?(O=()=>{v===null&&(D.current=e.hosts)},k=[v,e.hosts],n[19]=v,n[20]=e.hosts,n[21]=O,n[22]=k):(O=n[21],k=n[22]),(0,Z.useEffect)(O,k);let A;n[23]===e.hosts?A=n[24]:(A=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=A);let j=A,M,N;n[25]!==m||n[26]!==j?(M=()=>{let e=oi(m).hosts;e&&[...e].sort().join(`,`)===j&&ci(m,{hosts:null})},N=[j,m],n[25]=m,n[26]=j,n[27]=M,n[28]=N):(M=n[27],N=n[28]),(0,Z.useEffect)(M,N);let P=(0,Z.useRef)(null),F=(0,Z.useRef)(null),I,L;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>()=>{P.current&&clearTimeout(P.current),F.current?.(),F.current=null},L=[],n[29]=I,n[30]=L):(I=n[29],L=n[30]),(0,Z.useEffect)(I,L);let R;n[31]!==t||n[32]!==m||n[33]!==e?(R=function(n,r){D.current=n,ci(m,{hosts:n}),P.current&&clearTimeout(P.current);let i=async()=>{F.current=null,P.current=null;let r=await t.install(e,n.filter(ke));if(!r.ok){ci(m,{hosts:null});return}D.current=[...r.hosts],ci(m,{hosts:[...r.hosts]})};r?(F.current=()=>void i(),P.current=setTimeout(()=>void i(),350)):(F.current=null,i())},n[31]=t,n[32]=m,n[33]=e,n[34]=R):R=n[34];let z=R,B;return n[35]!==t||n[36]!==z||n[37]!==T||n[38]!==E||n[39]!==f||n[40]!==y||n[41]!==m||n[42]!==S||n[43]!==e?(B={hostSet:T,installed:E,installing:f,toggleEditor(e,t){let n=new Set(D.current);t?n.add(e):n.delete(e),z([...n],!0)},installAll(){let t=D.current.filter(mi),n=e.installableEditors??li,r=li.filter(e=>n.includes(e)||D.current.includes(e));z([...t,...r],!1)},linkMode:S,sourceHost:y??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>Nt({scope:e.scope,name:e.name,dir:n,mode:r})).then(pi)},unplaceAt(n){t.runLocationWrite(e,()=>Et({scope:e.scope,name:e.name,path:n})).then(fi)},setSource(n){ci(m,{source:n}),t.runLocationWrite(e,()=>xt({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(ci(m,{source:null}),rt.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=z,n[37]=T,n[38]=E,n[39]=f,n[40]=y,n[41]=m,n[42]=S,n[43]=e,n[44]=B):B=n[44],B}function fi(e){e.ok||rt.error(e.error)}function pi(e){e.ok||rt.error(e.error)}function mi(e){return!li.includes(e)}function hi(e){let t=(0,$.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,Q.jsx)(T,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,Q.jsx)(E,{side:`right`,className:`max-w-xs`,children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,Q.jsxs)(D,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function gi(e){let t=(0,$.c)(165),{toggles:n,skill:r,onResolveFork:i,onRunStart:a,menuKind:o}=e,l=o===void 0?`dropdown`:o,{_:u}=c(),{hostSet:d,toggleEditor:f,installAll:p}=n,m;t[0]===r?m=t[1]:(m=e=>r?`${ht(e,r.scope)}/${r.name}`:null,t[0]=r,t[1]=m);let g=m,_=Ft(),b;t[2]!==_.data||t[3]!==_.status||t[4]!==r?(b=r!==void 0&&((r.hosts??[]).includes(`agents`)||_.status===`ready`&&_.data.some(Oi)),t[2]=_.data,t[3]=_.status,t[4]=r,t[5]=b):b=t[5];let x=b,S;t[6]!==_.data||t[7]!==_.status||t[8]!==r?(S=r?.hostAliases??(r&&_.status===`ready`?Object.assign({},..._.data.filter(e=>e.scope===r.scope).map(Di)):{}),t[6]=_.data,t[7]=_.status,t[8]=r,t[9]=S):S=t[9];let C=S,w;t[10]!==_.data||t[11]!==_.status||t[12]!==r?(w=r?.installableEditors??(r&&_.status===`ready`?_.data.find(e=>e.scope===r.scope)?.installableEditors:void 0),t[10]=_.data,t[11]=_.status,t[12]=r,t[13]=w):w=t[13];let T=w,E,D,O,k,A,j,M;if(t[14]!==u||t[15]!==C||t[16]!==_.data||t[17]!==_.status||t[18]!==d||t[19]!==x||t[20]!==p||t[21]!==T||t[22]!==l||t[23]!==i||t[24]!==a||t[25]!==g||t[26]!==r||t[27]!==f||t[28]!==n){let e=T?new Set(T):null,o;t[36]===C?o=t[37]:(o=e=>!(e in C),t[36]=C,t[37]=o);let c=(x?[`agents`,...li]:li).filter(o).filter(t=>t===`agents`||e===null||e.has(t)||d.has(t)),m;t[38]===g?m=t[39]:(m=e=>g(e),t[38]=g,t[39]=m);let b=new Set(c.map(m)),S=r?.scope===`global`?`~/`:``,w;t[40]!==S||t[41]!==r?(w=r?.path?.includes(`/`)?`${S}${r.path.replace(/\/SKILL\.mdx?$/i,``)}`:null,t[40]=S,t[41]=r,t[42]=w):w=t[42];let N=w,P=N!==null&&!b.has(N)?N:null,F=P===null?n.sourceHost??r?.hosts?.[0]:void 0,I;t[43]===C?I=t[44]:(I=e=>_t(C,e),t[43]=C,t[44]=I);let L=I,R=Ei,z;t[45]!==u||t[46]!==L?(z=e=>{let t=L(e);return t.length===0?!0:window.confirm(u({id:`Uobeu9`,values:{0:t.map(R).join(`, `),rootRel:e}}))},t[45]=u,t[46]=L,t[47]=z):z=t[47];let B=z,V;t[48]!==u||t[49]!==r?(V=(e,t)=>{let n=e.includes(`/`)?e:ht(e,r?.scope??`project`);return(0,Q.jsx)(hi,{hint:u({id:`0dslv8`,values:{0:R(e),1:R(e),2:r?.name??``,poolRootRel:t,subRoot:n}}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":u({id:`G6Lrs_`,values:{0:R(e)}}),onClick:i=>{i.preventDefault(),i.stopPropagation(),window.confirm(u({id:`iiqOKM`,values:{0:R(e),1:r.name,2:R(e),subRoot:n,poolRootRel:t}}))&&wt({scope:r.scope,root:n,action:`unlink`,exclude:[r.name]}).then(e=>{e.ok?pt():rt.error(u({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,Q.jsx)(h,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},t[48]=u,t[49]=r,t[50]=V):V=t[50];let H=V,U;t[51]===r?.conflictHosts?U=t[52]:(U=r?.conflictHosts??[],t[51]=r?.conflictHosts,t[52]=U);let W;t[53]===U?W=t[54]:(W=new Set(U),t[53]=U,t[54]=W);let G=W,K;t[55]===r?.driftPaths?K=t[56]:(K=r?.driftPaths??[],t[55]=r?.driftPaths,t[56]=K);let q;t[57]===K?q=t[58]:(q=new Set(K),t[57]=K,t[58]=q);let J=q;E=n.installing;let Y=Ti,X;t[59]===r?.symlinkedHosts?X=t[60]:(X=r?.symlinkedHosts??[],t[59]=r?.symlinkedHosts,t[60]=X);let ee;t[61]===X?ee=t[62]:(ee=new Set(X),t[61]=X,t[62]=ee);let te=ee,ne=[...[...d].filter(e=>e!==F&&!(e in C)&&!G.has(e)&&!e.includes(`/`)).map(e=>te.has(e)?`link`:`copy`),...(r?.customPlacements??[]).map(wi)],re=ne.filter(Ci).length;O=ne.length===0?n.linkMode?`link`:`copy`:re*2>=ne.length?`link`:`copy`;let ie;t[63]!==C||t[64]!==G||t[65]!==d||t[66]!==te||t[67]!==g||t[68]!==F?(ie=[...d].filter(e=>e!==F&&!(e in C)&&!G.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:g(e)??R(e),mode:te.has(e)?`link`:`copy`})),t[63]=C,t[64]=G,t[65]=d,t[66]=te,t[67]=g,t[68]=F,t[69]=ie):ie=t[69];let ae;t[70]===r?.customPlacements?ae=t[71]:(ae=r?.customPlacements??[],t[70]=r?.customPlacements,t[71]=ae);let oe;if(t[72]!==S||t[73]!==ie||t[74]!==ae){let e;t[76]===S?e=t[77]:(e=e=>({target:vt(e),display:`${S}${e.path}`,mode:e.mode}),t[76]=S,t[77]=e),oe=[...ie,...ae.map(e)],t[72]=S,t[73]=ie,t[74]=ae,t[75]=oe}else oe=t[75];D=oe;let se;t[78]!==u||t[79]!==a||t[80]!==n?(se=(e,t,r)=>{let i=r===`link`?`copy`:`link`;return(0,Q.jsx)(hi,{hint:u(r===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 font-normal text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(u(i===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}))&&(a?.(),n.convertLocation?.(e,i))},"data-testid":`skill-convert-${e}`,children:r===`link`?(0,Q.jsx)(s,{id:`uUCrBv`}):(0,Q.jsx)(s,{id:`iaPtht`})})})},t[78]=u,t[79]=a,t[80]=n,t[81]=se):se=t[81];let ce=se,le;t[82]===r?.customPlacements?le=t[83]:(le=r?.customPlacements??[],t[82]=r?.customPlacements,t[83]=le);let ue=new Map(le.map(Si)),de=new Set(ue.keys());if(_.status===`ready`&&r){for(let e of _.data)if(e.scope===r.scope)for(let t of e.customPlacements??[]){let e=vt(t);e!==``&&de.add(e)}}let fe=r===void 0?[]:[...de].sort().map(e=>({root:e,display:`${S}${e}/${r.name}`,placed:ue.get(e)??null})).filter(e=>!b.has(e.display)&&e.display!==N&&!(e.root in C)),pe;t[84]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,Q.jsx)(s,{id:`npcziF`}),t[84]=pe):pe=t[84];let me;t[85]===u?me=t[86]:(me=u({id:`6f_UX4`}),t[85]=u,t[86]=me);let he;t[87]===p?he=t[88]:(he=()=>p(),t[87]=p,t[88]=he);let ge;t[89]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,Q.jsx)(s,{id:`N40H-G`}),t[89]=ge):ge=t[89];let _e;t[90]!==E||t[91]!==he?(_e=(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:E,onClick:he,"data-testid":`skill-install-all`,children:ge}),t[90]=E,t[91]=he,t[92]=_e):_e=t[92];let ve;t[93]!==me||t[94]!==_e?(ve=(0,Q.jsx)(hi,{hint:me,children:_e}),t[93]=me,t[94]=_e,t[95]=ve):ve=t[95],t[96]!==l||t[97]!==ve?(k=(0,Q.jsxs)(Zr,{menuKind:l,className:`flex items-center justify-between gap-2`,children:[pe,ve]}),t[96]=l,t[97]=ve,t[98]=k):k=t[98],t[99]!==u||t[100]!==H||t[101]!==E||t[102]!==l||t[103]!==P||t[104]!==L?(A=P===null?null:(0,Q.jsx)(hi,{hint:u({id:`pXB6SL`}),children:(0,Q.jsxs)(Xr,{menuKind:l,disabled:E,checked:!0,onSelect:xi,"data-testid":`skill-source-row`,children:[(0,Q.jsx)(tt,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,Q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Q.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:P}),(()=>{let e=Y(P).split(`/`).slice(0,-1).join(`/`),t=L(e);return t.length>0?(0,Q.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>H(t,e))}):null})(),(0,Q.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,Q.jsx)(s,{id:`tiFPjk`})})]})]})}),t[99]=u,t[100]=H,t[101]=E,t[102]=l,t[103]=P,t[104]=L,t[105]=A):A=t[105];let ye;t[106]!==u||t[107]!==H||t[108]!==E||t[109]!==B||t[110]!==G||t[111]!==ce||t[112]!==J||t[113]!==O||t[114]!==d||t[115]!==te||t[116]!==l||t[117]!==i||t[118]!==g||t[119]!==r?.hosts||t[120]!==F||t[121]!==L||t[122]!==f||t[123]!==n?(ye=e=>{let t=g(e),a=e===`agents`?`.agents`:Ne[e],o=Y(t).split(`/`).slice(0,-1).join(`/`),c=L(o);return(0,Q.jsx)(hi,{hint:G.has(e)?u({id:`8HvJlU`,values:{0:t??a}}):e===F?t?u({id:`ssk6rl`,values:{path:t}}):a:d.has(e)?u(t?{id:`9ieZhu`,values:{path:t}}:{id:`n3T3EE`,values:{label:a}}):u(t?O===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}:{id:`Pp0Vgd`,values:{label:a}}),children:(0,Q.jsxs)(Xr,{menuKind:l,disabled:E,checked:d.has(e),onCheckedChange:t=>{G.has(e)||t===!0&&!B(o)||f(e,t===!0)},onSelect:bi,className:`group`,"data-testid":`skill-install-editor-${e}`,children:[(0,Q.jsx)(h,{host:e,"aria-hidden":!0,className:`size-4`}),(0,Q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Q.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:t??a}),c.length>0?(0,Q.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${e}`,children:c.map(e=>H(e,o))}):null,G.has(e)?(0,Q.jsx)(hi,{hint:u({id:`_O7dJS`}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:t=>{t.preventDefault(),i?.(e)},"data-testid":`skill-fork-chip-${e}`,children:(0,Q.jsx)(s,{id:`jng7Ko`})})}):e===F?(0,Q.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,Q.jsx)(s,{id:`tiFPjk`})}):d.has(e)&&r?.hosts?(0,Q.jsxs)(Q.Fragment,{children:[!E&&(te.has(e)?`link`:`copy`)!==O?ce(e,t??a,te.has(e)?`link`:`copy`):null,(0,Q.jsx)(hi,{hint:u({id:`nBgzKO`}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:t=>{t.preventDefault(),t.stopPropagation(),n.setSource?.(e)},"data-testid":`skill-set-source-${e}`,children:(0,Q.jsx)(s,{id:`VNNRfN`})})})]}):null,!E&&J.has(Y(t))?(0,Q.jsx)(hi,{hint:u({id:`iz1LdD`}),children:(0,Q.jsx)(v,{testId:`skill-drift-${e}`})}):null]})]})},e)},t[106]=u,t[107]=H,t[108]=E,t[109]=B,t[110]=G,t[111]=ce,t[112]=J,t[113]=O,t[114]=d,t[115]=te,t[116]=l,t[117]=i,t[118]=g,t[119]=r?.hosts,t[120]=F,t[121]=L,t[122]=f,t[123]=n,t[124]=ye):ye=t[124],j=c.map(ye);let be;t[125]!==u||t[126]!==H||t[127]!==E||t[128]!==B||t[129]!==ce||t[130]!==J||t[131]!==O||t[132]!==l||t[133]!==L||t[134]!==n?(be=e=>(0,Q.jsx)(hi,{hint:e.placed===null?u(O===`link`?{id:`ybWWR2`,values:{0:e.display}}:{id:`fDjZxw`,values:{0:e.display}}):u({id:`C0cll5`,values:{0:e.display}}),children:(0,Q.jsxs)(Xr,{menuKind:l,disabled:E,checked:e.placed!==null,onCheckedChange:t=>{if(t===!0&&e.placed===null){if(!B(e.root))return;n.placeAt(e.root,O)}else e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:yi,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,Q.jsx)(h,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,Q.jsx)(tt,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,Q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Q.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),L(e.root).length>0?(0,Q.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:L(e.root).map(t=>H(t,e.root))}):null,!E&&e.placed!==null&&J.has(e.placed.path)?(0,Q.jsx)(hi,{hint:u({id:`iz1LdD`}),children:(0,Q.jsx)(v,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,Q.jsxs)(Q.Fragment,{children:[!E&&e.placed.mode!==O?ce(e.root,e.display,e.placed.mode):null,(0,Q.jsx)(hi,{hint:u({id:`nBgzKO`}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:t=>{t.preventDefault(),t.stopPropagation(),n.setSource?.(e.root)},"data-testid":`skill-set-source-custom-${e.root}`,children:(0,Q.jsx)(s,{id:`VNNRfN`})})})]})]})]})},e.root),t[125]=u,t[126]=H,t[127]=E,t[128]=B,t[129]=ce,t[130]=J,t[131]=O,t[132]=l,t[133]=L,t[134]=n,t[135]=be):be=t[135],M=fe.map(be),t[14]=u,t[15]=C,t[16]=_.data,t[17]=_.status,t[18]=d,t[19]=x,t[20]=p,t[21]=T,t[22]=l,t[23]=i,t[24]=a,t[25]=g,t[26]=r,t[27]=f,t[28]=n,t[29]=E,t[30]=D,t[31]=O,t[32]=k,t[33]=A,t[34]=j,t[35]=M}else E=t[29],D=t[30],O=t[31],k=t[32],A=t[33],j=t[34],M=t[35];let N;t[136]!==u||t[137]!==E||t[138]!==D||t[139]!==O||t[140]!==a||t[141]!==n?(N=D.length>0&&n.convertLocations?(0,Q.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,className:`h-auto whitespace-normal p-0 text-left font-normal text-[11px] text-muted-foreground leading-snug hover:bg-transparent hover:text-foreground`,onClick:e=>{e.preventDefault();let t=O===`link`?`copy`:`link`,r=D.filter(e=>e.mode!==t);if(r.length===0)return;let i=u(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`}),o=u(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),s=r.map(vi).join(`
|
|
2
|
-
`);window.confirm(`${i}\n\n${o}\n\n${s}\n\n${u({id:`Cu6GXQ`})}`)&&(a?.(),n.convertLocations?.(r.map(e=>({target:e.target,mode:t}))))},disabled:E,"data-testid":`skill-convert-all`,children:O===`link`?(0,Q.jsx)(s,{id:`rcJmK8`}):(0,Q.jsx)(s,{id:`LBv_TR`})}),(0,Q.jsx)(hi,{hint:u({id:`0J6nhG`}),children:(0,Q.jsx)(y,{variant:`ghost`,size:`sm`,"aria-label":u({id:`qJSo0_`}),className:`size-4 shrink-0 rounded-full border border-border/60 p-0 font-normal text-[9px] text-muted-foreground hover:border-foreground/40 hover:bg-transparent hover:text-foreground`,onClick:_i,"data-testid":`skill-convert-all-help`,children:`?`})})]}):null,t[136]=u,t[137]=E,t[138]=D,t[139]=O,t[140]=a,t[141]=n,t[142]=N):N=t[142];let P;t[143]===l?P=t[144]:(P=(0,Q.jsx)(Qr,{menuKind:l}),t[143]=l,t[144]=P);let F;t[145]===u?F=t[146]:(F=u({id:`jqe7Yq`}),t[145]=u,t[146]=F);let I;t[147]===r?.scope?I=t[148]:(I=()=>{window.location.hash=r?.scope===`global`?`#settings/user-skills`:`#settings/skills`},t[147]=r?.scope,t[148]=I);let L,R;t[149]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsx)(Vn,{"aria-hidden":!0}),R=(0,Q.jsx)(s,{id:`ZBF9fn`}),t[149]=L,t[150]=R):(L=t[149],R=t[150]);let z;t[151]!==l||t[152]!==I?(z=(0,Q.jsxs)(Yr,{menuKind:l,onSelect:I,children:[L,R]}),t[151]=l,t[152]=I,t[153]=z):z=t[153];let B;t[154]!==F||t[155]!==z?(B=(0,Q.jsx)(hi,{hint:F,children:z}),t[154]=F,t[155]=z,t[156]=B):B=t[156];let V;return t[157]!==N||t[158]!==P||t[159]!==B||t[160]!==k||t[161]!==A||t[162]!==j||t[163]!==M?(V=(0,Q.jsxs)(Q.Fragment,{children:[k,A,j,M,N,P,B]}),t[157]=N,t[158]=P,t[159]=B,t[160]=k,t[161]=A,t[162]=j,t[163]=M,t[164]=V):V=t[164],V}function _i(e){return e.preventDefault()}function vi(e){return e.display}function yi(e){return e.preventDefault()}function bi(e){return e.preventDefault()}function xi(e){return e.preventDefault()}function Si(e){return[vt(e),e]}function Ci(e){return e===`link`}function wi(e){return e.mode}function Ti(e){return(e??``).replace(/^~\//,``)}function Ei(e){return e===`agents`?`.agents`:Ne[e]??e}function Di(e){return e.hostAliases??{}}function Oi(e){return e.hosts.includes(`agents`)||e.path.startsWith(`.agents/`)}function ki(e){let t=(0,$.c)(23),{onAddProperty:n,className:r,problemCount:i,problemMessages:a}=e,o=i===void 0?0:i,{_:l}=c(),u=o>0,f;t[0]!==l||t[1]!==u||t[2]!==o?(f=l(u?{id:`3KOHFt`,values:{problemCount:o}}:{id:`81H_23`}),t[0]=l,t[1]=u,t[2]=o,t[3]=f):f=t[3];let p=f,m;t[4]===r?m=t[5]:(m=d(`relative`,r),t[4]=r,t[5]=m);let h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Q.jsx)(zn,{}),t[6]=h):h=t[6];let g;t[7]!==u||t[8]!==o?(g=u?(0,Q.jsx)(yt,{variant:`notification`,"aria-hidden":`true`,"data-testid":`add-properties-problem-badge`,className:`pointer-events-none absolute -top-0.5 -right-0.5 size-3.5 rounded-full p-0 font-sans text-[9px] leading-none tabular-nums`,children:o>9?`9+`:o}):null,t[7]=u,t[8]=o,t[9]=g):g=t[9];let _;t[10]===g?_=t[11]:(_=(0,Q.jsxs)(T,{children:[h,g]}),t[10]=g,t[11]=_);let v;t[12]!==p||t[13]!==n||t[14]!==m||t[15]!==_?(v=(0,Q.jsx)(y,{variant:`ghost`,size:`icon`,"aria-label":p,onClick:n,"data-testid":`add-properties-button`,className:m,asChild:!0,children:_}),t[12]=p,t[13]=n,t[14]=m,t[15]=_,t[16]=v):v=t[16];let b;t[17]!==u||t[18]!==a?(b=(0,Q.jsx)(E,{side:`bottom`,children:u?(0,Q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,Q.jsx)(`span`,{className:`font-medium`,children:(0,Q.jsx)(s,{id:`AwrGuz`})}),a?.map(Ai),(0,Q.jsx)(`span`,{className:`pt-0.5 opacity-70`,children:(0,Q.jsx)(s,{id:`yh5-4s`})})]}):(0,Q.jsx)(s,{id:`81H_23`})}),t[17]=u,t[18]=a,t[19]=b):b=t[19];let x;return t[20]!==v||t[21]!==b?(x=(0,Q.jsxs)(D,{children:[v,b]}),t[20]=v,t[21]=b,t[22]=x):x=t[22],x}function Ai(e,t){return(0,Q.jsx)(`span`,{className:`opacity-90`,children:e},t)}function ji(e){return e?at._({id:`wTcjov`}):null}function Mi(e){let t=(0,$.c)(46),{_:i}=c(),a=n(),o=g(),l=de(),d=pe();if(a)return null;let{input:f,installStates:p,dispatch:m}=e,h=f===null,_,v,y,b,x,S,C,w,T,E,D;if(t[0]!==i||t[1]!==m||t[2]!==f||t[3]!==h||t[4]!==p||t[5]!==d||t[6]!==l||t[7]!==o){let e=ji(h),n;t[19]===d?n=t[20]:(n=e=>xe(d,e.id),t[19]=d,t[20]=n);let a=me.filter(n),c;t[21]===d?c=t[22]:(c=e=>ge(d,e.source,e.id,!0,e.supported),t[21]=d,t[22]=c);let u=l.filter(c),g=o?De.filter(e=>ye(d,e,o.installedClis)):[];y=a.length>0,b=o!==null&&g.length>0,x=u.length>0,v=Br,t[23]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsxs)(Ur,{children:[(0,Q.jsx)(r,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[23]=D):D=t[23],_=Wr,S=`max-h-80`,C=x?(0,Q.jsxs)(zr,{"aria-label":i({id:`vPKX2i`}),children:[(0,Q.jsxs)(Kr,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(be,{})]}),u.map(t=>{let n=t.name;return(0,Q.jsxs)(Hr,{onSelect:()=>{f!==null&&jr(f,{agent:{source:t.source,id:t.id}})},disabled:h,"data-testid":`empty-space-open-in-thread-${t.id}`,"aria-label":e?i({id:`gtGQ9S`,values:{agentName:n,hint:e}}):void 0,children:[(0,Q.jsx)(Je,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`5PrrYw`,values:{agentName:n}})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[24]!==y||t[25]!==b||t[26]!==x?(w=x&&(b||y)?(0,Q.jsx)(qr,{}):null,t[24]=y,t[25]=b,t[26]=x,t[27]=w):w=t[27],T=b?(0,Q.jsxs)(zr,{"aria-label":i({id:`ALhMYW`}),children:[(0,Q.jsx)(Kr,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),g.map(t=>{let{displayName:n}=Ee[t];return(0,Q.jsxs)(Hr,{onSelect:()=>{f!==null&&o.launchInTerminal(f,t)},disabled:h,"data-testid":`empty-space-open-in-terminal-${t}`,"aria-label":i(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(_e,{id:fe(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,E=y?(0,Q.jsxs)(Q.Fragment,{children:[b?(0,Q.jsx)(qr,{}):null,(0,Q.jsxs)(zr,{"aria-label":i({id:`BBqGS9`}),children:[(0,Q.jsx)(Kr,{children:(0,Q.jsx)(s,{id:`BBqGS9`})}),a.map(t=>{let n=!h,{displayName:r}=t,a=i(e?{id:`1ZpfyB`,values:{displayName:r,hint:e}}:{id:`WqLq6M`,values:{displayName:r}});return(0,Q.jsxs)(Hr,{disabled:!n,onSelect:()=>{if(f){if(p[t.id]?.installed!==!0){_r(t);return}m(t.id,f)}},"data-testid":`empty-space-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(_e,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:t.displayName}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=i,t[1]=m,t[2]=f,t[3]=h,t[4]=p,t[5]=d,t[6]=l,t[7]=o,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D}else _=t[8],v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18];let O;t[28]!==y||t[29]!==b||t[30]!==x?(O=x||b||y?(0,Q.jsx)(qr,{}):null,t[28]=y,t[29]=b,t[30]=x,t[31]=O):O=t[31];let k;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsx)(u,{"aria-hidden":`true`}),t[32]=k):k=t[32];let A;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsxs)(Hr,{onSelect:ot,"data-testid":`empty-space-open-in-settings`,children:[k,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[33]=A):A=t[33];let j;t[34]!==_||t[35]!==S||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==O?(j=(0,Q.jsxs)(_,{className:S,children:[C,w,T,E,O,A]}),t[34]=_,t[35]=S,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=O,t[41]=j):j=t[41];let M;return t[42]!==v||t[43]!==D||t[44]!==j?(M=(0,Q.jsxs)(v,{children:[D,j]}),t[42]=v,t[43]=D,t[44]=j,t[45]=M):M=t[45],M}function Ni(e){return e?at._({id:`wTcjov`}):null}function Pi(e){let t=(0,$.c)(47),{_:i}=c(),a=n(),o=g(),l=de(),d=pe();if(a)return null;let{input:f,installStates:p,dispatch:m,onBeforeLaunch:h}=e,_=f===null,v,y,b,x,S,C,w,T,E,D,O;if(t[0]!==i||t[1]!==m||t[2]!==f||t[3]!==_||t[4]!==p||t[5]!==h||t[6]!==d||t[7]!==l||t[8]!==o){let e=Ni(_),n;t[20]===d?n=t[21]:(n=e=>xe(d,e.id),t[20]=d,t[21]=n);let a=me.filter(n),c;t[22]===d?c=t[23]:(c=e=>ge(d,e.source,e.id,!0,e.supported),t[22]=d,t[23]=c);let u=l.filter(c),g=o?De.filter(e=>ye(d,e,o.installedClis)):[];b=a.length>0,x=o!==null&&g.length>0,S=u.length>0,y=re,t[24]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsxs)(ce,{children:[(0,Q.jsx)(r,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[24]=O):O=t[24],v=ie,C=`max-h-80`,w=S?(0,Q.jsxs)(ae,{"aria-label":i({id:`vPKX2i`}),children:[(0,Q.jsxs)(se,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(be,{})]}),u.map(t=>{let n=t.name;return(0,Q.jsxs)(ne,{onSelect:()=>{f!==null&&(h?.(),jr(f,{agent:{source:t.source,id:t.id}}))},disabled:_,"data-testid":`file-tree-open-in-thread-${t.id}`,"aria-label":e?i({id:`gtGQ9S`,values:{agentName:n,hint:e}}):void 0,children:[(0,Q.jsx)(Je,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`5PrrYw`,values:{agentName:n}})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[25]!==b||t[26]!==x||t[27]!==S?(T=S&&(x||b)?(0,Q.jsx)(le,{}):null,t[25]=b,t[26]=x,t[27]=S,t[28]=T):T=t[28],E=x?(0,Q.jsxs)(ae,{"aria-label":i({id:`ALhMYW`}),children:[(0,Q.jsx)(se,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),g.map(t=>{let{displayName:n}=Ee[t];return(0,Q.jsxs)(ne,{onSelect:()=>{f!==null&&(h?.(),o.launchInTerminal(f,t))},disabled:_,"data-testid":`file-tree-open-in-terminal-${t}`,"aria-label":i(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(_e,{id:fe(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,D=b?(0,Q.jsxs)(Q.Fragment,{children:[x?(0,Q.jsx)(le,{}):null,(0,Q.jsxs)(ae,{"aria-label":i({id:`BBqGS9`}),children:[(0,Q.jsx)(se,{children:(0,Q.jsx)(s,{id:`BBqGS9`})}),a.map(t=>{let n=!_,{displayName:r}=t,a=i(e?{id:`1ZpfyB`,values:{displayName:r,hint:e}}:{id:`WqLq6M`,values:{displayName:r}});return(0,Q.jsxs)(ne,{disabled:!n,onSelect:()=>{if(f){if(h?.(),p[t.id]?.installed!==!0){_r(t);return}m(t.id,f)}},"data-testid":`file-tree-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(_e,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:t.displayName}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=i,t[1]=m,t[2]=f,t[3]=_,t[4]=p,t[5]=h,t[6]=d,t[7]=l,t[8]=o,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D,t[19]=O}else v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18],O=t[19];let k;t[29]!==b||t[30]!==x||t[31]!==S?(k=S||x||b?(0,Q.jsx)(le,{}):null,t[29]=b,t[30]=x,t[31]=S,t[32]=k):k=t[32];let A;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(u,{"aria-hidden":`true`}),t[33]=A):A=t[33];let j;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Q.jsxs)(ne,{onSelect:ot,"data-testid":`file-tree-open-in-settings`,children:[A,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[34]=j):j=t[34];let M;t[35]!==v||t[36]!==C||t[37]!==w||t[38]!==T||t[39]!==E||t[40]!==D||t[41]!==k?(M=(0,Q.jsxs)(v,{className:C,children:[w,T,E,D,k,j]}),t[35]=v,t[36]=C,t[37]=w,t[38]=T,t[39]=E,t[40]=D,t[41]=k,t[42]=M):M=t[42];let N;return t[43]!==y||t[44]!==O||t[45]!==M?(N=(0,Q.jsxs)(y,{children:[O,M]}),t[43]=y,t[44]=O,t[45]=M,t[46]=N):N=t[46],N}function Fi(e){let t=Ae(e);if(t)return{scope:`project`,name:t.name,rel:t.rel};let n=Ke(e);return n?{scope:`global`,name:n.name,rel:n.rel}:null}function Ii(e,t,n){return e.filter(e=>{let r=ut(e);if(r.kind===`skill-file`)return r.scope===t&&r.name===n;if(r.kind!==`doc`)return!1;let i=Fi(r.docName);return i?.scope===t&&i.name===n})}function Li(e,t,n){let r=lt(t,n);return e.filter(e=>{let i=ut(e);return i.kind===`skill-file`?i.scope===t.scope&&i.name===t.name&&i.path===n:i.kind===`doc`&&i.docName===r})}function Ri(e,t,n){let r=Fi(e);if(!r||r.rel===null)return null;let i=t.find(e=>e.scope===r.scope&&e.name===r.name);if(!i||i.managed)return null;let a=`references/${r.rel}${n}`;return lt(i,a)===e?{skill:i,filePath:a}:null}function zi(e,t){let n=new Map(t.map(e=>[`${e.scope}\u0000${e.name}`,e])),r=[];for(let t of e){let e=Fi(t);if(!e||n.has(`${e.scope}\u0000${e.name}`))continue;let i=e.scope===`project`?`global`:`project`,a=n.get(`${i}\u0000${e.name}`);e.rel===null&&a!==void 0?r.push({kind:`retarget`,fromDocName:t,toDocName:ct(a)}):r.push({kind:`close`,docName:t})}return r}function Bi(){let e=(0,$.c)(15),{openTabs:t,closeDocument:n}=a(),r=Ye(),i;e[0]===t?i=e[1]:(i=t.some(Hi),e[0]=t,e[1]=i);let o=i,s;e[2]===o?s=e[3]:(s={enabled:o},e[2]=o,e[3]=s);let c=Ft(s),l=(0,Z.useRef)(null),u;e[4]!==n||e[5]!==t||e[6]!==r||e[7]!==c.data||e[8]!==c.status?(u=()=>{if(c.status!==`ready`)return;let e=c.data,i=`${t.join(``)}\u0002${e.map(Vi).sort().join(``)}`;if(l.current===i)return;l.current=i;let a=zi(t,e);for(let e of a)e.kind===`retarget`?r(e.fromDocName,e.toDocName):n(e.docName)},e[4]=n,e[5]=t,e[6]=r,e[7]=c.data,e[8]=c.status,e[9]=u):u=e[9];let d;e[10]!==n||e[11]!==t||e[12]!==r||e[13]!==c?(d=[c,t,r,n],e[10]=n,e[11]=t,e[12]=r,e[13]=c,e[14]=d):d=e[14],(0,Z.useEffect)(u,d)}function Vi(e){return`${e.scope}\u0000${e.name}`}function Hi(e){return Fi(e)!==null}function Ui(e){let t=(0,$.c)(19),{skill:n,onOpenChange:r,onDeleted:i}=e,{_:o}=c(),{setSkillsSidebar:s,closeTabs:l,openTabs:u}=a(),[d,f]=(0,Z.useState)(!1),p;t[0]!==o||t[1]!==l||t[2]!==i||t[3]!==r||t[4]!==u||t[5]!==s?(p=async function(e){s(!0),f(!0);let t=await Ot(e.scope,e.name);if(f(!1),!t.ok){let{error:e}=t;rt.error(o({id:`AtBdnD`,values:{error:e}}));return}rt.success(o({id:`h9QFb9`,values:{0:e.name}})),l(Ii(u,e.scope,e.name),{force:!0}),i(),r(!1)},t[0]=o,t[1]=l,t[2]=i,t[3]=r,t[4]=u,t[5]=s,t[6]=p):p=t[6];let h=p,g=n!==null,_;t[7]!==d||t[8]!==r?(_=e=>{!e&&!d&&r(!1)},t[7]=d,t[8]=r,t[9]=_):_=t[9];let v;t[10]!==o||t[11]!==d||t[12]!==h||t[13]!==n?(v=n?(0,Q.jsx)(m,{itemName:o({id:`ExUzM4`,values:{0:n.name}}),isSubmitting:d,onDelete:()=>h(n),customDescription:n.origin?.source&&/\/plugins\/(?:cache|marketplaces)\//.test(n.origin.source)?o({id:`WnsbUT`,values:{0:n.path}}):o({id:`E1Da_b`,values:{0:n.path}})}):null,t[10]=o,t[11]=d,t[12]=h,t[13]=n,t[14]=v):v=t[14];let y;return t[15]!==g||t[16]!==_||t[17]!==v?(y=(0,Q.jsx)(F,{open:g,onOpenChange:_,children:v}),t[15]=g,t[16]=_,t[17]=v,t[18]=y):y=t[18],y}function Wi(e){let t=e.split(`/`);return t.some(e=>e===``||e===`.`||e===`..`)||t.length===0||t.length===1&&t[0].toLowerCase()===`skill.md`?!1:!/\s/.test(e)}function Gi(e){let t=(0,$.c)(66),{target:n,onOpenChange:r}=e,{_:i}=c(),{openTarget:o}=a(),l=(0,Z.useId)(),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.prefix??`references/`)},t[0]=n,t[1]=m);let h=n?.skill.scope,g=n?.skill.name,_=n?.prefix,v;if(t[2]!==h||t[3]!==g||t[4]!==_?(v=[h,g,_],t[2]=h,t[3]=g,t[4]=_,t[5]=v):v=t[5],(0,Z.useEffect)(m,v),!n)return null;let b,x,S,C;t[6]!==u||t[7]!==f?(C=u.trim(),x=C===``||!Wi(C),b=!x&&!f,S=C.includes(`/`)?C.split(`/`).slice(0,-1).join(`/`):null,t[6]=u,t[7]=f,t[8]=b,t[9]=x,t[10]=S,t[11]=C):(b=t[8],x=t[9],S=t[10],C=t[11]);let w=S,T;t[12]!==i||t[13]!==b||t[14]!==r||t[15]!==o||t[16]!==n||t[17]!==C?(T=async function(){if(!n||!b)return;p(!0);let e=/\.mdx?$/i.test(C),t=await Tt({scope:n.skill.scope,name:n.skill.name,path:C,content:e?`# ${C.split(`/`).pop()?.replace(/\.mdx?$/i,``)??``}\n`:``});if(p(!1),!t.ok){rt.error(i({id:`a_2_uB`,values:{0:t.error,trimmed:C}}));return}if(rt.success(i({id:`MXSt4t`,values:{0:t.path}})),e){let e=lt(n.skill,C);o({kind:`doc`,target:e,docName:e})}r(!1)},t[12]=i,t[13]=b,t[14]=r,t[15]=o,t[16]=n,t[17]=C,t[18]=T):T=t[18];let E=T,D;t[19]!==r||t[20]!==f?(D=e=>{!e&&!f&&r(!1)},t[19]=r,t[20]=f,t[21]=D):D=t[21];let j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Q.jsx)(k,{children:(0,Q.jsx)(s,{id:`wQvvZY`})}),t[22]=j):j=t[22];let N;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Q.jsxs)(P,{children:[j,(0,Q.jsx)(O,{children:(0,Q.jsx)(s,{id:`lM4c-I`})})]}),t[23]=N):N=t[23];let I;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Q.jsx)(s,{id:`I6gXOa`}),t[24]=I):I=t[24];let L;t[25]===l?L=t[26]:(L=(0,Q.jsx)(ue,{htmlFor:l,children:I}),t[25]=l,t[26]=L);let R;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>d(e.target.value),t[27]=R):R=t[27];let z=x&&C!==``,B;t[28]===E?B=t[29]:(B=e=>{e.key===`Enter`&&E()},t[28]=E,t[29]=B);let V;t[30]!==l||t[31]!==u||t[32]!==z||t[33]!==B?(V=(0,Q.jsx)(it,{id:l,value:u,onChange:R,placeholder:`references/notes.md`,"aria-invalid":z,onKeyDown:B}),t[30]=l,t[31]=u,t[32]=z,t[33]=B,t[34]=V):V=t[34];let H;t[35]!==w||t[36]!==x||t[37]!==C?(H=x&&C!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):w?(0,Q.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:(0,Q.jsx)(s,{id:`9lso1Y`,values:{folderPart:w},components:{0:(0,Q.jsx)(`span`,{className:`font-mono text-foreground/80`})}})}):null,t[35]=w,t[36]=x,t[37]=C,t[38]=H):H=t[38];let U;t[39]!==L||t[40]!==V||t[41]!==H?(U=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[L,V,H]}),t[39]=L,t[40]=V,t[41]=H,t[42]=U):U=t[42];let W;t[43]===r?W=t[44]:(W=()=>r(!1),t[43]=r,t[44]=W);let G;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Q.jsx)(s,{id:`dEgA5A`}),t[45]=G):G=t[45];let K;t[46]!==f||t[47]!==W?(K=(0,Q.jsx)(y,{variant:`outline`,onClick:W,disabled:f,children:G}),t[46]=f,t[47]=W,t[48]=K):K=t[48];let q;t[49]===E?q=t[50]:(q=()=>void E(),t[49]=E,t[50]=q);let J=!b,Y;t[51]===f?Y=t[52]:(Y=f?(0,Q.jsx)(s,{id:`E9bKSA`}):(0,Q.jsx)(s,{id:`hYgDIe`}),t[51]=f,t[52]=Y);let X;t[53]!==q||t[54]!==J||t[55]!==Y?(X=(0,Q.jsx)(y,{onClick:q,disabled:J,children:Y}),t[53]=q,t[54]=J,t[55]=Y,t[56]=X):X=t[56];let ee;t[57]!==K||t[58]!==X?(ee=(0,Q.jsxs)(M,{children:[K,X]}),t[57]=K,t[58]=X,t[59]=ee):ee=t[59];let te;t[60]!==U||t[61]!==ee?(te=(0,Q.jsxs)(A,{className:`sm:max-w-md`,children:[N,U,ee]}),t[60]=U,t[61]=ee,t[62]=te):te=t[62];let ne;return t[63]!==te||t[64]!==D?(ne=(0,Q.jsx)(F,{open:!0,onOpenChange:D,children:te}),t[63]=te,t[64]=D,t[65]=ne):ne=t[65],ne}function Ki(e){let t=(0,$.c)(18),{target:n,onOpenChange:r}=e,{_:i}=c(),{setSkillsSidebar:o,closeTabs:s,openTabs:l}=a(),[u,d]=(0,Z.useState)(!1),f;t[0]!==i||t[1]!==s||t[2]!==r||t[3]!==l||t[4]!==o?(f=async function(e){let{skill:t,filePath:n}=e;o(!0),d(!0);let a=await At({scope:t.scope,name:t.name,path:n});if(d(!1),!a.ok){rt.error(i({id:`CBT70t`,values:{0:a.error}}));return}if(!a.existed){rt.error(i({id:`q4efaG`,values:{filePath:n}})),r(!1);return}rt.success(i({id:`gOmloS`,values:{filePath:n}})),s(Li(l,t,n),{force:!0}),r(!1)},t[0]=i,t[1]=s,t[2]=r,t[3]=l,t[4]=o,t[5]=f):f=t[5];let p=f,h=n!==null,g;t[6]!==u||t[7]!==r?(g=e=>{!e&&!u&&r(!1)},t[6]=u,t[7]=r,t[8]=g):g=t[8];let _;t[9]!==i||t[10]!==u||t[11]!==p||t[12]!==n?(_=n?(0,Q.jsx)(m,{itemName:i({id:`wZPUJx`,values:{0:n.filePath}}),isSubmitting:u,onDelete:()=>p(n),customDescription:i({id:`ppzof_`,values:{0:mt(n.skill.path),1:n.filePath,2:n.skill.name}})}):null,t[9]=i,t[10]=u,t[11]=p,t[12]=n,t[13]=_):_=t[13];let v;return t[14]!==h||t[15]!==g||t[16]!==_?(v=(0,Q.jsx)(F,{open:h,onOpenChange:g,children:_}),t[14]=h,t[15]=g,t[16]=_,t[17]=v):v=t[17],v}function qi(e){let t=(0,$.c)(64),{target:n,onOpenChange:r}=e,{_:i}=c(),a=Ye(),o=(0,Z.useId)(),[l,u]=(0,Z.useState)(``),[d,f]=(0,Z.useState)(!1),p;t[0]===n?p=t[1]:(p=()=>{n&&u(n.filePath)},t[0]=n,t[1]=p);let m=n?.skill.scope,h=n?.skill.name,g=n?.filePath,_;if(t[2]!==m||t[3]!==h||t[4]!==g?(_=[m,h,g],t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5],(0,Z.useEffect)(p,_),!n)return null;let v,b,x;t[6]!==l||t[7]!==n.filePath?(b=l.trim(),x=b===n.filePath,v=b===``||!Wi(b),t[6]=l,t[7]=n.filePath,t[8]=v,t[9]=b,t[10]=x):(v=t[8],b=t[9],x=t[10]);let S=v,C=!S&&!x&&!d,w;t[11]!==i||t[12]!==C||t[13]!==r||t[14]!==a||t[15]!==n||t[16]!==b?(w=async function(){if(!n||!C)return;f(!0);let e=await St({scope:n.skill.scope,name:n.skill.name,from:n.filePath,to:b});if(f(!1),!e.ok){rt.error(i({id:`11ukmX`,values:{0:e.error}}));return}e.fromDocName!==void 0&&e.toDocName!==void 0&&a(e.fromDocName,e.toDocName),rt.success(i({id:`XszXjc`,values:{0:e.to}})),r(!1)},t[11]=i,t[12]=C,t[13]=r,t[14]=a,t[15]=n,t[16]=b,t[17]=w):w=t[17];let T=w,E;t[18]!==r||t[19]!==d?(E=e=>{!e&&!d&&r(!1)},t[18]=r,t[19]=d,t[20]=E):E=t[20];let D;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(k,{children:(0,Q.jsx)(s,{id:`yckias`})}),t[21]=D):D=t[21];let j;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Q.jsxs)(P,{children:[D,(0,Q.jsx)(O,{children:(0,Q.jsx)(s,{id:`HzVAoz`})})]}),t[22]=j):j=t[22];let N;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Q.jsx)(s,{id:`I6gXOa`}),t[23]=N):N=t[23];let I;t[24]===o?I=t[25]:(I=(0,Q.jsx)(ue,{htmlFor:o,children:N}),t[24]=o,t[25]=I);let L;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>u(e.target.value),t[26]=L):L=t[26];let R=S&&b!==``,z;t[27]===T?z=t[28]:(z=e=>{e.key===`Enter`&&T()},t[27]=T,t[28]=z);let B;t[29]!==o||t[30]!==l||t[31]!==R||t[32]!==z?(B=(0,Q.jsx)(it,{id:o,value:l,onChange:L,"aria-invalid":R,onKeyDown:z}),t[29]=o,t[30]=l,t[31]=R,t[32]=z,t[33]=B):B=t[33];let V;t[34]!==S||t[35]!==b?(V=S&&b!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):null,t[34]=S,t[35]=b,t[36]=V):V=t[36];let H;t[37]!==I||t[38]!==B||t[39]!==V?(H=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[I,B,V]}),t[37]=I,t[38]=B,t[39]=V,t[40]=H):H=t[40];let U;t[41]===r?U=t[42]:(U=()=>r(!1),t[41]=r,t[42]=U);let W;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,Q.jsx)(s,{id:`dEgA5A`}),t[43]=W):W=t[43];let G;t[44]!==d||t[45]!==U?(G=(0,Q.jsx)(y,{variant:`outline`,onClick:U,disabled:d,children:W}),t[44]=d,t[45]=U,t[46]=G):G=t[46];let K;t[47]===T?K=t[48]:(K=()=>void T(),t[47]=T,t[48]=K);let q=!C,J;t[49]===d?J=t[50]:(J=d?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[49]=d,t[50]=J);let Y;t[51]!==K||t[52]!==q||t[53]!==J?(Y=(0,Q.jsx)(y,{onClick:K,disabled:q,children:J}),t[51]=K,t[52]=q,t[53]=J,t[54]=Y):Y=t[54];let X;t[55]!==G||t[56]!==Y?(X=(0,Q.jsxs)(M,{children:[G,Y]}),t[55]=G,t[56]=Y,t[57]=X):X=t[57];let ee;t[58]!==H||t[59]!==X?(ee=(0,Q.jsxs)(A,{className:`sm:max-w-md`,children:[j,H,X]}),t[58]=H,t[59]=X,t[60]=ee):ee=t[60];let te;return t[61]!==ee||t[62]!==E?(te=(0,Q.jsx)(F,{open:!0,onOpenChange:E,children:ee}),t[61]=ee,t[62]=E,t[63]=te):te=t[63],te}function Ji(e){let t=(0,$.c)(59),{target:n,onOpenChange:r}=e,{_:i}=c(),a=(0,Z.useId)(),[o,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(!1),[g,_]=(0,Z.useState)(``),[v,b]=(0,Z.useState)(!1),x;t[0]===n?x=t[1]:(x=()=>{if(l(null),d(null),p(!1),h(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){p(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${ht(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,d],[a,l]])Dt({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):p(!0))}).catch(()=>{o.signal.aborted||p(!0)});return()=>o.abort()},t[0]=n,t[1]=x);let S=n?.skill.scope,C=n?.skill.name,w=n?.editor,T;if(t[2]!==S||t[3]!==C||t[4]!==w?(T=[S,C,w],t[2]=S,t[3]=C,t[4]=w,t[5]=T):T=t[5],(0,Z.useEffect)(x,T),!n)return null;let{skill:E,editor:D}=n,N;t[6]!==i||t[7]!==D||t[8]!==r||t[9]!==E.name||t[10]!==E.scope||t[11]!==n||t[12]!==g?(N=async function(e){if(!n)return;b(!0);let t=await bt({scope:E.scope,name:E.name,editor:D,action:e,...e===`rename`?{toName:g.trim()}:{}});if(b(!1),!t.ok){rt.error(i({id:`MIF36T`,values:{0:t.error}}));return}rt.success(i(e===`align`?{id:`QKgePK`,values:{editor:D}}:e===`make-source`?{id:`It9oAP`,values:{editor:D}}:{id:`b2ezG_`,values:{0:g.trim()}})),r(!1)},t[6]=i,t[7]=D,t[8]=r,t[9]=E.name,t[10]=E.scope,t[11]=n,t[12]=g,t[13]=N):N=t[13];let I=N,L,R;t[14]!==E.name||t[15]!==g?(R=g.trim(),L=R===``||!we.test(R)||R===E.name,t[14]=E.name,t[15]=g,t[16]=L,t[17]=R):(L=t[16],R=t[17]);let z=L,B;t[18]!==v||t[19]!==r?(B=e=>{!e&&!v&&r(!1)},t[18]=v,t[19]=r,t[20]=B):B=t[20];let V;t[21]!==D||t[22]!==E.name?(V=(0,Q.jsx)(k,{children:(0,Q.jsx)(s,{id:`q8aCbb`,values:{0:E.name,editor:D}})}),t[21]=D,t[22]=E.name,t[23]=V):V=t[23];let H;t[24]===D?H=t[25]:(H=(0,Q.jsx)(O,{children:(0,Q.jsx)(s,{id:`QASTNu`,values:{editor:D}})}),t[24]=D,t[25]=H);let U;t[26]!==H||t[27]!==V?(U=(0,Q.jsxs)(P,{children:[V,H]}),t[26]=H,t[27]=V,t[28]=U):U=t[28];let W;t[29]!==u||t[30]!==o||t[31]!==f?(W=u!==null&&o!==null?(0,Q.jsx)(Rt,{oldContent:u,newContent:o,layout:`unified`}):f?(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`5BlXTD`})}):(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`1V17kO`})}),t[29]=u,t[30]=o,t[31]=f,t[32]=W):W=t[32];let G;t[33]!==I||t[34]!==D||t[35]!==a||t[36]!==z||t[37]!==m||t[38]!==E.name||t[39]!==g||t[40]!==R?(G=m?(0,Q.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,Q.jsx)(ue,{htmlFor:a,children:(0,Q.jsx)(s,{id:`pSimwP`,values:{editor:D}})}),(0,Q.jsx)(it,{id:a,value:g,onChange:e=>_(e.target.value),placeholder:`${E.name}-${D}`,"aria-invalid":z&&R!==``,onKeyDown:e=>{e.key===`Enter`&&!z&&I(`rename`)}})]}):null,t[33]=I,t[34]=D,t[35]=a,t[36]=z,t[37]=m,t[38]=E.name,t[39]=g,t[40]=R,t[41]=G):G=t[41];let K;t[42]!==W||t[43]!==G?(K=(0,Q.jsxs)(j,{className:`min-h-0 flex-1 overflow-auto`,children:[W,G]}),t[42]=W,t[43]=G,t[44]=K):K=t[44];let q;t[45]!==I||t[46]!==v||t[47]!==D||t[48]!==z||t[49]!==m||t[50]!==E.name?(q=(0,Q.jsx)(M,{children:m?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(y,{variant:`outline`,onClick:()=>h(!1),disabled:v,children:(0,Q.jsx)(s,{id:`iH8pgl`})}),(0,Q.jsx)(y,{onClick:()=>void I(`rename`),disabled:v||z,children:(0,Q.jsx)(s,{id:`AT0e50`})})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(y,{variant:`outline`,onClick:()=>{_(`${E.name}-${D}`),h(!0)},disabled:v,children:(0,Q.jsx)(s,{id:`AT0e50`})}),(0,Q.jsx)(y,{variant:`outline`,onClick:()=>void I(`make-source`),disabled:v,children:(0,Q.jsx)(s,{id:`xWomUD`,values:{editor:D}})}),(0,Q.jsx)(y,{onClick:()=>void I(`align`),disabled:v,children:(0,Q.jsx)(s,{id:`PZn2LP`})})]})}),t[45]=I,t[46]=v,t[47]=D,t[48]=z,t[49]=m,t[50]=E.name,t[51]=q):q=t[51];let J;t[52]!==U||t[53]!==K||t[54]!==q?(J=(0,Q.jsxs)(A,{className:`flex max-h-[85vh] w-full max-w-3xl flex-col`,children:[U,K,q]}),t[52]=U,t[53]=K,t[54]=q,t[55]=J):J=t[55];let Y;return t[56]!==J||t[57]!==B?(Y=(0,Q.jsx)(F,{open:!0,onOpenChange:B,children:J}),t[56]=J,t[57]=B,t[58]=Y):Y=t[58],Y}function Yi(e){let t=(0,$.c)(75),{skill:n,existingNames:r,onOpenChange:i,onRenamed:a}=e,o=Xe(),c=n!==null,l=(0,Z.useId)(),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.name)},t[0]=n,t[1]=m);let h=n?.scope,g=n?.name,_;if(t[2]!==h||t[3]!==g?(_=[h,g],t[2]=h,t[3]=g,t[4]=_):_=t[4],(0,Z.useEffect)(m,_),!n)return null;let v,b,x,S,C,w;if(t[5]!==r||t[6]!==u||t[7]!==n.name){C=u.trim(),w=C===n.name;let e;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\s/,t[14]=e):e=t[14];let i;t[15]===u?i=t[16]:(i=e.test(u),t[15]=u,t[16]=i),v=i,S=C.length>64,b=C===``||!we.test(C)||S,x=!b&&!w&&r.has(C),t[5]=r,t[6]=u,t[7]=n.name,t[8]=v,t[9]=b,t[10]=x,t[11]=S,t[12]=C,t[13]=w}else v=t[8],b=t[9],x=t[10],S=t[11],C=t[12],w=t[13];let T=x,E=!b&&!T&&!w&&!f,D;t[17]!==E||t[18]!==i||t[19]!==a||t[20]!==o||t[21]!==n||t[22]!==C?(D=async function(){if(!n||!E)return;p(!0);let e=await o({scope:n.scope,name:n.name},C);p(!1),e.ok&&(a?.(C),i(!1))},t[17]=E,t[18]=i,t[19]=a,t[20]=o,t[21]=n,t[22]=C,t[23]=D):D=t[23];let j=D,N;t[24]===i?N=t[25]:(N=e=>e?null:i(!1),t[24]=i,t[25]=N);let I;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Q.jsx)(k,{children:(0,Q.jsx)(s,{id:`dw_3cv`})}),t[26]=I):I=t[26];let L;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsxs)(P,{children:[I,(0,Q.jsx)(O,{children:(0,Q.jsx)(s,{id:`R9IDFz`})})]}),t[27]=L):L=t[27];let R;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(R=(0,Q.jsx)(s,{id:`6YtxFj`}),t[28]=R):R=t[28];let z;t[29]===l?z=t[30]:(z=(0,Q.jsx)(ue,{htmlFor:l,children:R}),t[29]=l,t[30]=z);let B;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>d(e.target.value),t[31]=B):B=t[31];let V;t[32]===j?V=t[33]:(V=e=>{e.key===`Enter`&&j()},t[32]=j,t[33]=V);let H=b||T,U=b&&C!==``||T?`${l}-error`:void 0,W;t[34]!==l||t[35]!==u||t[36]!==V||t[37]!==H||t[38]!==U?(W=(0,Q.jsx)(it,{id:l,value:u,onChange:B,onKeyDown:V,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,maxLength:64,"aria-invalid":H,"aria-describedby":U,className:`font-mono`}),t[34]=l,t[35]=u,t[36]=V,t[37]=H,t[38]=U,t[39]=W):W=t[39];let G;t[40]!==T||t[41]!==v||t[42]!==l||t[43]!==b||t[44]!==S||t[45]!==C?(G=b&&C!==``?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:v?(0,Q.jsx)(s,{id:`iUwpZI`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}}):S?(0,Q.jsx)(s,{id:`lK9c4T`}):(0,Q.jsx)(s,{id:`A50vr3`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}})}):T?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:(0,Q.jsx)(s,{id:`YJ1BTp`})}):null,t[40]=T,t[41]=v,t[42]=l,t[43]=b,t[44]=S,t[45]=C,t[46]=G):G=t[46];let K;t[47]!==z||t[48]!==W||t[49]!==G?(K=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[z,W,G]}),t[47]=z,t[48]=W,t[49]=G,t[50]=K):K=t[50];let q;t[51]===i?q=t[52]:(q=()=>i(!1),t[51]=i,t[52]=q);let J;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,Q.jsx)(s,{id:`dEgA5A`}),t[53]=J):J=t[53];let Y;t[54]!==f||t[55]!==q?(Y=(0,Q.jsx)(y,{variant:`outline`,className:`font-mono uppercase`,onClick:q,disabled:f,children:J}),t[54]=f,t[55]=q,t[56]=Y):Y=t[56];let X;t[57]===j?X=t[58]:(X=()=>void j(),t[57]=j,t[58]=X);let ee=!E,te;t[59]===f?te=t[60]:(te=f?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[59]=f,t[60]=te);let ne;t[61]!==X||t[62]!==ee||t[63]!==te?(ne=(0,Q.jsx)(y,{onClick:X,disabled:ee,children:te}),t[61]=X,t[62]=ee,t[63]=te,t[64]=ne):ne=t[64];let re;t[65]!==Y||t[66]!==ne?(re=(0,Q.jsxs)(M,{children:[Y,ne]}),t[65]=Y,t[66]=ne,t[67]=re):re=t[67];let ie;t[68]!==K||t[69]!==re?(ie=(0,Q.jsxs)(A,{children:[L,K,re]}),t[68]=K,t[69]=re,t[70]=ie):ie=t[70];let ae;return t[71]!==c||t[72]!==ie||t[73]!==N?(ae=(0,Q.jsx)(F,{open:c,onOpenChange:N,children:ie}),t[71]=c,t[72]=ie,t[73]=N,t[74]=ae):ae=t[74],ae}function Xi(){let e=(0,$.c)(5),{_:t}=c(),n=gt(),r=Ye(),i=Ft(),a;return e[0]!==t||e[1]!==r||e[2]!==n||e[3]!==i?(a=async(e,a)=>{if(a===e.scope)return!1;ft(e.scope,e.name);let o=await Mt({name:e.name,fromScope:e.scope,toScope:a});if(dt(e.scope,e.name),!o.ok)return rt.error(t({id:`07eGJB`,values:{0:o.error}})),!1;rt.success(t({id:`yhI6P0`,values:{0:e.name,1:n[a]}}));let s=i.status===`ready`?i.data.find(t=>t.scope===e.scope&&t.name===e.name):void 0;return r(s?ct(s):je(e.scope,e.name),a===`project`&&o.path!==void 0?`${o.path.replace(/\/+$/,``)}/SKILL`:je(a,e.name)),!0},e[0]=t,e[1]=r,e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Zi(e){let t=(0,$.c)(38),{target:n,onOpenChange:r}=e,i=gt(),a=Xi(),[o,c]=(0,Z.useState)(!1);if(!n)return null;let{scope:l,name:u,toScope:d}=n,f;t[0]!==o||t[1]!==r?(f=e=>!e&&!o&&r(!1),t[0]=o,t[1]=r,t[2]=f):f=t[2];let p=i[d],m;t[3]===p?m=t[4]:(m=(0,Q.jsx)(k,{children:(0,Q.jsx)(s,{id:`SXEdCq`,values:{0:p}})}),t[3]=p,t[4]=m);let h=i[l],g=i[d],_=i[d],v;t[5]!==u||t[6]!==h||t[7]!==g||t[8]!==_?(v={0:h,1:g,2:_,name:u},t[5]=u,t[6]=h,t[7]=g,t[8]=_,t[9]=v):v=t[9];let b;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(b={0:(0,Q.jsx)(`code`,{className:`font-mono`})},t[10]=b):b=t[10];let x;t[11]===v?x=t[12]:(x=(0,Q.jsx)(O,{children:(0,Q.jsx)(s,{id:`7bIiJ7`,values:v,components:b})}),t[11]=v,t[12]=x);let S;t[13]!==m||t[14]!==x?(S=(0,Q.jsxs)(P,{children:[m,x]}),t[13]=m,t[14]=x,t[15]=S):S=t[15];let C;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Q.jsx)(s,{id:`dEgA5A`}),t[16]=C):C=t[16];let w;t[17]===o?w=t[18]:(w=(0,Q.jsx)(N,{asChild:!0,children:(0,Q.jsx)(y,{variant:`outline`,disabled:o,children:C})}),t[17]=o,t[18]=w);let T;t[19]!==a||t[20]!==u||t[21]!==r||t[22]!==l||t[23]!==d?(T=async()=>{c(!0),await a({scope:l,name:u},d),c(!1),r(!1)},t[19]=a,t[20]=u,t[21]=r,t[22]=l,t[23]=d,t[24]=T):T=t[24];let E;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Q.jsx)(s,{id:`QWdKwH`}),t[25]=E):E=t[25];let D;t[26]!==o||t[27]!==T?(D=(0,Q.jsx)(y,{"data-testid":`skill-scope-move-confirm`,disabled:o,onClick:T,children:E}),t[26]=o,t[27]=T,t[28]=D):D=t[28];let j;t[29]!==w||t[30]!==D?(j=(0,Q.jsxs)(M,{children:[w,D]}),t[29]=w,t[30]=D,t[31]=j):j=t[31];let I;t[32]!==S||t[33]!==j?(I=(0,Q.jsxs)(A,{className:`sm:max-w-md`,children:[S,j]}),t[32]=S,t[33]=j,t[34]=I):I=t[34];let L;return t[35]!==f||t[36]!==I?(L=(0,Q.jsx)(F,{open:!0,onOpenChange:f,children:I}),t[35]=f,t[36]=I,t[37]=L):L=t[37],L}function Qi(){let e=(0,$.c)(50),{_:t}=c(),n=It(),[r,i]=(0,Z.useState)(null),[a,o]=(0,Z.useState)(null),[s,l]=(0,Z.useState)(null),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(null),[g,_]=(0,Z.useState)(null),[v,y]=(0,Z.useState)(null),b;e[0]===t?b=e[1]:(b=async function(e,n,r){y(e.name);let i=await kt({scope:e.scope,name:e.name,...n?{targets:[...n]}:{},...r?.linkMode===void 0?{}:{linkMode:r.linkMode}});if(y(null),!i.ok)return rt.error(t({id:`Mj8R8K`,values:{0:i.error}})),i;let a=$i,o=new Set(i.hosts),s=i.hosts.filter(t=>!e.hosts.includes(t)),c=e.hosts.filter(e=>!o.has(e)),l=e=>{let t=i.warningCodes.indexOf(e);return t>=0?i.warnings[t]:void 0},u=l(`no-targets`);if(u)return rt.warning(u),i;if(s.length>0){let e=l(`scripts-present`);e&&rt.warning(e);let t=l(`no-description`);t&&rt.warning(t)}return i.hosts.length===0?rt.success(t({id:`4pDZ2N`,values:{0:e.name}})):s.length>0&&c.length===0?rt.success(t({id:`PPFQ3o`,values:{0:e.name,1:a(s)}})):c.length>0&&s.length===0?rt.success(t({id:`OOIVJo`,values:{0:e.name,1:a(c)}})):s.length>0&&c.length>0?rt.success(t({id:`OxplNM`,values:{0:e.name,1:a(s),2:a(c)}})):rt.success(t({id:`wDgmsr`,values:{0:e.name,1:a(i.hosts)}})),i},e[0]=t,e[1]=b);let x=b,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=async function(e,t){if(t.length!==0){y(e.name);for(let{target:n,mode:r}of t){let t=await jt({scope:e.scope,name:e.name,target:n,mode:r});if(!t.ok){rt.error(t.error);break}}y(null)}},e[2]=S):S=e[2];let C=S,w;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=async function(e,t){y(e.name);let n=await t();return y(null),n},e[3]=w):w=e[3];let T=w,E;e[4]!==t||e[5]!==n?(E=async function(e,r){let i=await Ct({scope:e.scope,name:e.name,existingNames:r});if(!i.ok){rt.error(t({id:`UPjaXD`,values:{0:e.name,1:i.error}}));return}rt.success(t({id:`0g7rCZ`,values:{0:i.name}})),n(e.scope,i.name)},e[4]=t,e[5]=n,e[6]=E):E=e[6];let D=E,O,k;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{e||i(null)},k=()=>i(null),e[7]=O,e[8]=k):(O=e[7],k=e[8]);let A;e[9]===r?A=e[10]:(A=(0,Q.jsx)(Ui,{skill:r,onOpenChange:O,onDeleted:k}),e[9]=r,e[10]=A);let j=a?.skill??null,M=a?.existingNames??ta,N,P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>{e||o(null)},N=()=>o(null),e[11]=N,e[12]=P):(N=e[11],P=e[12]);let F;e[13]!==j||e[14]!==M?(F=(0,Q.jsx)(Yi,{skill:j,existingNames:M,onOpenChange:P,onRenamed:N}),e[13]=j,e[14]=M,e[15]=F):F=e[15];let I;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>{e||l(null)},e[16]=I):I=e[16];let L;e[17]===s?L=e[18]:(L=(0,Q.jsx)(Zi,{target:s,onOpenChange:I}),e[17]=s,e[18]=L);let R;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(R=e=>{e||d(null)},e[19]=R):R=e[19];let z;e[20]===u?z=e[21]:(z=(0,Q.jsx)(qi,{target:u,onOpenChange:R}),e[20]=u,e[21]=z);let B;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>{e||p(null)},e[22]=B):B=e[22];let V;e[23]===f?V=e[24]:(V=(0,Q.jsx)(Ki,{target:f,onOpenChange:B}),e[23]=f,e[24]=V);let H;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(H=e=>{e||h(null)},e[25]=H):H=e[25];let U;e[26]===m?U=e[27]:(U=(0,Q.jsx)(Gi,{target:m,onOpenChange:H}),e[26]=m,e[27]=U);let W;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>{e||_(null)},e[28]=W):W=e[28];let G;e[29]===g?G=e[30]:(G=(0,Q.jsx)(Ji,{target:g,onOpenChange:W}),e[29]=g,e[30]=G);let K;e[31]!==F||e[32]!==L||e[33]!==z||e[34]!==V||e[35]!==U||e[36]!==G||e[37]!==A?(K=(0,Q.jsxs)(Q.Fragment,{children:[A,F,L,z,V,U,G]}),e[31]=F,e[32]=L,e[33]=z,e[34]=V,e[35]=U,e[36]=G,e[37]=A,e[38]=K):K=e[38];let q=K,J,Y,X,ee,te,ne;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(J=(e,t)=>o({skill:e,existingNames:t}),Y=(e,t)=>l({scope:e.scope,name:e.name,toScope:t}),X=(e,t)=>d({skill:e,filePath:t}),ee=(e,t)=>p({skill:e,filePath:t}),te=(e,t)=>h(t===void 0?{skill:e}:{skill:e,prefix:t}),ne=(e,t)=>_({skill:e,editor:t}),e[39]=J,e[40]=Y,e[41]=X,e[42]=ee,e[43]=te,e[44]=ne):(J=e[39],Y=e[40],X=e[41],ee=e[42],te=e[43],ne=e[44]);let re;return e[45]!==q||e[46]!==D||e[47]!==x||e[48]!==v?(re={installingName:v,install:x,convertLocations:C,runLocationWrite:T,duplicate:D,requestDelete:i,requestRename:J,requestScopeMove:Y,requestFileRename:X,requestFileDelete:ee,requestFileCreate:te,requestForkResolve:ne,dialogs:q},e[45]=q,e[46]=D,e[47]=x,e[48]=v,e[49]=re):re=e[49],re}function $i(e){return e.map(ea).join(`, `)}function ea(e){return Ne[e]??e}var ta=new Set;function na(e){let t=(0,$.c)(68),{skill:n,filePath:r,actions:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,{_:l}=c(),u=typeof window<`u`?window.okDesktop:void 0,d;t[0]!==r||t[1]!==n.absolutePath?(d=n.absolutePath?`${mt(n.absolutePath)}/${r}`:void 0,t[0]=r,t[1]=n.absolutePath,t[2]=d):d=t[2];let f=d,p;t[3]===n.path?p=t[4]:(p=mt(n.path),t[3]=n.path,t[4]=p);let m=`${p}/${r}`,h;t[5]===l?h=t[6]:(h=async function(e){try{await Lt(e),rt.success(l({id:`SXCSQd`}))}catch{rt.error(l({id:`cRHuuI`}))}},t[5]=l,t[6]=h);let g=h,_;t[7]!==i||t[8]!==r||t[9]!==n?(_=()=>i.requestFileRename(n,r),t[7]=i,t[8]=r,t[9]=n,t[10]=_):_=t[10];let v,y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Q.jsx)(Bn,{"aria-hidden":!0}),y=(0,Q.jsx)(s,{id:`2wxgft`}),t[11]=v,t[12]=y):(v=t[11],y=t[12]);let b;t[13]!==o||t[14]!==_?(b=(0,Q.jsxs)(Yr,{menuKind:o,onSelect:_,children:[v,y]}),t[13]=o,t[14]=_,t[15]=b):b=t[15];let x;t[16]!==f||t[17]!==o?(x=u&&f?(0,Q.jsxs)(Yr,{menuKind:o,onSelect:()=>void u.shell.showItemInFolder(f),children:[(0,Q.jsx)(et,{"aria-hidden":!0}),(0,Q.jsx)(s,{id:`LtSYdi`})]}):null,t[16]=f,t[17]=o,t[18]=x):x=t[18];let S,C;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Q.jsx)($e,{"aria-hidden":!0}),C=(0,Q.jsx)(s,{id:`zd00pH`}),t[19]=S,t[20]=C):(S=t[19],C=t[20]);let w;t[21]===o?w=t[22]:(w=(0,Q.jsxs)(ti,{menuKind:o,children:[S,C]}),t[21]=o,t[22]=w);let T;t[23]!==f||t[24]!==g||t[25]!==o?(T=f?(0,Q.jsx)(Yr,{menuKind:o,onSelect:()=>void g(f),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[23]=f,t[24]=g,t[25]=o,t[26]=T):T=t[26];let E;t[27]!==g||t[28]!==m?(E=()=>void g(m),t[27]=g,t[28]=m,t[29]=E):E=t[29];let D;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(s,{id:`xloBjn`}),t[30]=D):D=t[30];let O;t[31]!==o||t[32]!==E?(O=(0,Q.jsx)(Yr,{menuKind:o,onSelect:E,children:D}),t[31]=o,t[32]=E,t[33]=O):O=t[33];let k;t[34]!==o||t[35]!==T||t[36]!==O?(k=(0,Q.jsxs)(Jr,{menuKind:o,children:[T,O]}),t[34]=o,t[35]=T,t[36]=O,t[37]=k):k=t[37];let A;t[38]!==o||t[39]!==k?(A=(0,Q.jsx)(ei,{menuKind:o,children:k}),t[38]=o,t[39]=k,t[40]=A):A=t[40];let j;t[41]!==o||t[42]!==w||t[43]!==A?(j=(0,Q.jsxs)($r,{menuKind:o,children:[w,A]}),t[41]=o,t[42]=w,t[43]=A,t[44]=j):j=t[44];let M;t[45]!==o||t[46]!==j||t[47]!==b||t[48]!==x?(M=(0,Q.jsxs)(Jr,{menuKind:o,children:[b,x,j]}),t[45]=o,t[46]=j,t[47]=b,t[48]=x,t[49]=M):M=t[49];let N;t[50]===o?N=t[51]:(N=(0,Q.jsx)(Qr,{menuKind:o}),t[50]=o,t[51]=N);let P;t[52]!==i||t[53]!==r||t[54]!==n?(P=()=>i.requestFileDelete(n,r),t[52]=i,t[53]=r,t[54]=n,t[55]=P):P=t[55];let F,I;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Q.jsx)(nt,{"aria-hidden":!0}),I=(0,Q.jsx)(s,{id:`cnGeoo`}),t[56]=F,t[57]=I):(F=t[56],I=t[57]);let L;t[58]!==o||t[59]!==P?(L=(0,Q.jsxs)(Yr,{menuKind:o,variant:`destructive`,onSelect:P,children:[F,I]}),t[58]=o,t[59]=P,t[60]=L):L=t[60];let R;t[61]!==o||t[62]!==L?(R=(0,Q.jsx)(Jr,{menuKind:o,children:L}),t[61]=o,t[62]=L,t[63]=R):R=t[63];let z;return t[64]!==M||t[65]!==N||t[66]!==R?(z=(0,Q.jsxs)(Q.Fragment,{children:[M,N,R]}),t[64]=M,t[65]=N,t[66]=R,t[67]=z):z=t[67],z}function ra(e){let t=(0,$.c)(15),{skill:n,actions:r,existingNames:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,s=f(),c=_().states,{dispatch:l}=Ir(),u=typeof window<`u`?window.okDesktop:void 0,d;t[0]!==n.name||t[1]!==n.scope||t[2]!==s?(d=yr({skillName:n.name,scope:n.scope,workspace:s}),t[0]=n.name,t[1]=n.scope,t[2]=s,t[3]=d):d=t[3];let p=d,m;t[4]!==l||t[5]!==p||t[6]!==c||t[7]!==o?(m=o===`context`?(0,Q.jsx)(Mi,{input:p,installStates:c,dispatch:l}):(0,Q.jsx)(Pi,{input:p,installStates:c,isElectronHost:u!=null,dispatch:l}),t[4]=l,t[5]=p,t[6]=c,t[7]=o,t[8]=m):m=t[8];let h;return t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==n||t[13]!==m?(h=(0,Q.jsx)(ia,{actions:r,existingNames:i,menuKind:o,skill:n,openWithAi:m}),t[9]=r,t[10]=i,t[11]=o,t[12]=n,t[13]=m,t[14]=h):h=t[14],h}function ia(e){let t=(0,$.c)(124),{actions:n,existingNames:r,menuKind:a,openWithAi:o,skill:l}=e,{_:u}=c(),d=gt(),f=di(l,n),m=typeof window<`u`?window.okDesktop:void 0,h=l.absolutePath,g;t[0]===u?g=t[1]:(g=async function(e){try{await Lt(e),rt.success(u({id:`SXCSQd`}))}catch{rt.error(u({id:`cRHuuI`}))}},t[0]=u,t[1]=g);let _=g,v;t[2]!==h||t[3]!==a?(v=m&&h?(0,Q.jsxs)(Yr,{menuKind:a,onSelect:()=>void m.shell.showItemInFolder(h),children:[(0,Q.jsx)(et,{"aria-hidden":!0}),(0,Q.jsx)(s,{id:`LtSYdi`})]}):null,t[2]=h,t[3]=a,t[4]=v):v=t[4];let y,b;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,Q.jsx)($e,{"aria-hidden":!0}),b=(0,Q.jsx)(s,{id:`zd00pH`}),t[5]=y,t[6]=b):(y=t[5],b=t[6]);let x;t[7]===a?x=t[8]:(x=(0,Q.jsxs)(ti,{menuKind:a,children:[y,b]}),t[7]=a,t[8]=x);let S;t[9]!==h||t[10]!==_||t[11]!==a?(S=h?(0,Q.jsx)(Yr,{menuKind:a,onSelect:()=>void _(h),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[9]=h,t[10]=_,t[11]=a,t[12]=S):S=t[12];let C;t[13]!==_||t[14]!==l.path?(C=()=>void _(l.path),t[13]=_,t[14]=l.path,t[15]=C):C=t[15];let w;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Q.jsx)(s,{id:`xloBjn`}),t[16]=w):w=t[16];let T;t[17]!==a||t[18]!==C?(T=(0,Q.jsx)(Yr,{menuKind:a,onSelect:C,children:w}),t[17]=a,t[18]=C,t[19]=T):T=t[19];let E;t[20]!==a||t[21]!==S||t[22]!==T?(E=(0,Q.jsxs)(Jr,{menuKind:a,children:[S,T]}),t[20]=a,t[21]=S,t[22]=T,t[23]=E):E=t[23];let D;t[24]!==a||t[25]!==E?(D=(0,Q.jsx)(ei,{menuKind:a,children:E}),t[24]=a,t[25]=E,t[26]=D):D=t[26];let O;t[27]!==a||t[28]!==D||t[29]!==x?(O=(0,Q.jsxs)($r,{menuKind:a,children:[x,D]}),t[27]=a,t[28]=D,t[29]=x,t[30]=O):O=t[30];let k;t[31]!==a||t[32]!==o||t[33]!==O||t[34]!==v?(k=(0,Q.jsxs)(Jr,{menuKind:a,children:[v,o,O]}),t[31]=a,t[32]=o,t[33]=O,t[34]=v,t[35]=k):k=t[35];let A;t[36]===a?A=t[37]:(A=(0,Q.jsx)(Qr,{menuKind:a}),t[36]=a,t[37]=A);let j;t[38]!==n||t[39]!==r||t[40]!==l?(j=()=>void n.duplicate(l,r),t[38]=n,t[39]=r,t[40]=l,t[41]=j):j=t[41];let M,N;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(i,{"aria-hidden":!0}),N=(0,Q.jsx)(s,{id:`euc6Ns`}),t[42]=M,t[43]=N):(M=t[42],N=t[43]);let P;t[44]!==a||t[45]!==j?(P=(0,Q.jsxs)(Yr,{menuKind:a,onSelect:j,children:[M,N]}),t[44]=a,t[45]=j,t[46]=P):P=t[46];let F;t[47]!==n||t[48]!==r||t[49]!==l?(F=()=>n.requestRename(l,r),t[47]=n,t[48]=r,t[49]=l,t[50]=F):F=t[50];let I,L;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Q.jsx)(Bn,{"aria-hidden":!0}),L=(0,Q.jsx)(s,{id:`2wxgft`}),t[51]=I,t[52]=L):(I=t[51],L=t[52]);let R;t[53]!==a||t[54]!==F?(R=(0,Q.jsxs)(Yr,{menuKind:a,onSelect:F,children:[I,L]}),t[53]=a,t[54]=F,t[55]=R):R=t[55];let z;t[56]!==n||t[57]!==l?(z=()=>n.requestFileCreate(l),t[56]=n,t[57]=l,t[58]=z):z=t[58];let B,V;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,Q.jsx)(p,{"aria-hidden":!0}),V=(0,Q.jsx)(s,{id:`HdkSiO`}),t[59]=B,t[60]=V):(B=t[59],V=t[60]);let H;t[61]!==a||t[62]!==z?(H=(0,Q.jsxs)(Yr,{menuKind:a,onSelect:z,children:[B,V]}),t[61]=a,t[62]=z,t[63]=H):H=t[63];let U,W;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,Q.jsx)(Rn,{"aria-hidden":!0}),W=(0,Q.jsx)(s,{id:`TKQ7K-`}),t[64]=U,t[65]=W):(U=t[64],W=t[65]);let G;t[66]===a?G=t[67]:(G=(0,Q.jsxs)(ti,{menuKind:a,children:[U,W]}),t[66]=a,t[67]=G);let K;t[68]!==n||t[69]!==l?(K=e=>n.requestForkResolve(l,e),t[68]=n,t[69]=l,t[70]=K):K=t[70];let q;t[71]!==f||t[72]!==a||t[73]!==l||t[74]!==K?(q=(0,Q.jsx)(gi,{toggles:f,skill:l,menuKind:a,onResolveFork:K}),t[71]=f,t[72]=a,t[73]=l,t[74]=K,t[75]=q):q=t[75];let J;t[76]!==a||t[77]!==q?(J=(0,Q.jsx)(Jr,{menuKind:a,children:q}),t[76]=a,t[77]=q,t[78]=J):J=t[78];let Y;t[79]!==a||t[80]!==J?(Y=(0,Q.jsx)(ei,{menuKind:a,className:ui,children:J}),t[79]=a,t[80]=J,t[81]=Y):Y=t[81];let X;t[82]!==a||t[83]!==G||t[84]!==Y?(X=(0,Q.jsxs)($r,{menuKind:a,children:[G,Y]}),t[82]=a,t[83]=G,t[84]=Y,t[85]=X):X=t[85];let ee;t[86]!==n||t[87]!==l?(ee=()=>n.requestScopeMove(l,l.scope===`project`?`global`:`project`),t[86]=n,t[87]=l,t[88]=ee):ee=t[88];let te;t[89]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,Q.jsx)(Ln,{"aria-hidden":!0}),t[89]=te):te=t[89];let ne;t[90]!==d.global||t[91]!==d.project||t[92]!==l.scope?(ne=l.scope===`project`?(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.global}}):(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.project}}),t[90]=d.global,t[91]=d.project,t[92]=l.scope,t[93]=ne):ne=t[93];let re;t[94]!==a||t[95]!==ee||t[96]!==ne?(re=(0,Q.jsxs)(Yr,{menuKind:a,onSelect:ee,children:[te,ne]}),t[94]=a,t[95]=ee,t[96]=ne,t[97]=re):re=t[97];let ie;t[98]!==a||t[99]!==P||t[100]!==R||t[101]!==H||t[102]!==X||t[103]!==re?(ie=(0,Q.jsxs)(Jr,{menuKind:a,children:[P,R,H,X,re]}),t[98]=a,t[99]=P,t[100]=R,t[101]=H,t[102]=X,t[103]=re,t[104]=ie):ie=t[104];let ae;t[105]===a?ae=t[106]:(ae=(0,Q.jsx)(Qr,{menuKind:a}),t[105]=a,t[106]=ae);let oe;t[107]!==n||t[108]!==l?(oe=()=>n.requestDelete(l),t[107]=n,t[108]=l,t[109]=oe):oe=t[109];let se,ce;t[110]===Symbol.for(`react.memo_cache_sentinel`)?(se=(0,Q.jsx)(nt,{"aria-hidden":!0}),ce=(0,Q.jsx)(s,{id:`cnGeoo`}),t[110]=se,t[111]=ce):(se=t[110],ce=t[111]);let le;t[112]!==a||t[113]!==oe?(le=(0,Q.jsxs)(Yr,{menuKind:a,variant:`destructive`,onSelect:oe,children:[se,ce]}),t[112]=a,t[113]=oe,t[114]=le):le=t[114];let ue;t[115]!==a||t[116]!==le?(ue=(0,Q.jsx)(Jr,{menuKind:a,children:le}),t[115]=a,t[116]=le,t[117]=ue):ue=t[117];let de;return t[118]!==k||t[119]!==A||t[120]!==ie||t[121]!==ae||t[122]!==ue?(de=(0,Q.jsxs)(Q.Fragment,{children:[k,A,ie,ae,ue]}),t[118]=k,t[119]=A,t[120]=ie,t[121]=ae,t[122]=ue,t[123]=de):de=t[123],de}export{Nr as A,Rr as C,mr as D,vr as E,ur as F,cr as I,Vn as L,jr as M,Ir as N,hr as O,pr as P,zn as R,Ur as S,gr as T,zr as _,Ri as a,Br as b,Mi as c,ui as d,gi as f,Vr as g,Gr as h,Zi as i,_r as j,Dr as k,ki as l,Lr as m,na as n,Bi as o,di as p,Qi as r,Pi as s,ra as t,li as u,Hr as v,br as w,Wr as x,qr as y,Ln as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-WQQLMo_s.js";import"./src-BFmudBKQ.js";import"./chunk-WYO6CB5R-BL3R8kzV.js";import"./chunk-ICXQ74PX-D2_LgSCG.js";import"./chunk-HOUHSVGY-CFg4tiNL.js";import"./chunk-Q4XR5HBZ-91W5kPi9.js";import"./chunk-7BUUIJ7U-CIezx2MS.js";import"./chunk-OGEWGWER-CivbNyHY.js";import"./chunk-32BRIVSS-DT6F-uh7.js";import"./chunk-XXDRQBXY-DjPNLLex.js";import"./chunk-VR4S4FIN-td2s33cT.js";import"./chunk-C7G6YPKG-CfSnkt3g.js";import"./chunk-ZGVPDNZ5-DdQ8WlYq.js";import"./chunk-52WLFC77-z8Dc0FTi.js";import"./chunk-FWX5IMBZ-Bcld6_cI.js";import{i as t,n,r,t as i}from"./chunk-EX3LRPZG-Bk_23Lji.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-WQQLMo_s.js";import"./src-BFmudBKQ.js";import"./chunk-WYO6CB5R-BL3R8kzV.js";import"./chunk-ICXQ74PX-D2_LgSCG.js";import"./chunk-HOUHSVGY-CFg4tiNL.js";import"./chunk-Q4XR5HBZ-91W5kPi9.js";import"./chunk-7BUUIJ7U-CIezx2MS.js";import"./chunk-OGEWGWER-CivbNyHY.js";import"./chunk-32BRIVSS-DT6F-uh7.js";import"./chunk-XXDRQBXY-DjPNLLex.js";import"./chunk-VR4S4FIN-td2s33cT.js";import"./chunk-C7G6YPKG-CfSnkt3g.js";import"./chunk-ZGVPDNZ5-DdQ8WlYq.js";import"./chunk-52WLFC77-z8Dc0FTi.js";import"./chunk-FWX5IMBZ-Bcld6_cI.js";import"./chunk-ZIRB5QZD-DuiWBTeF.js";import{r as t,t as n}from"./chunk-PUDLZKDR-B7d6ISYj.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
|
|
2
|
-
.swimlane.cluster rect {
|
|
3
|
-
stroke: ${e.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,`getStyles`)});export{r as diagram};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-zYQJXuRH.js","./chunk-CYidjpOJ.js","./w3c-keyname-hgmz1BF7.js","./dist-DdN4_oB-.js","./dist-BHX9GuTC.js","./dist-Cz7Q9WAs.js","./dist-DgD72kci.js","./dist-CFDOSoEm.js","./dist-CJtNQVui.js","./dist-AhKSYQhE2.js","./dist-CdZbZpjt.js","./dist-aEzrjz-4.js","./dist-C7PQBily.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./preload-helper-Chd9yIcd.js";var t=new Map;function n(e){let n=t.get(e);if(n)return n;let i=r(e);return t.set(e,i),i}async function r(t){switch(t){case`bash`:case`shell`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{shell:e}=await import(`./shell-BRtU48Yb.js`);return{shell:e}},[],import.meta.url)).shell);case`c`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{c:e}=await import(`./clike-BfpXCH0g.js`);return{c:e}},[],import.meta.url)).c);case`cpp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{cpp:e}=await import(`./clike-BfpXCH0g.js`);return{cpp:e}},[],import.meta.url)).cpp);case`csharp`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{csharp:e}=await import(`./clike-BfpXCH0g.js`);return{csharp:e}},[],import.meta.url)).csharp);case`css`:case`less`:case`scss`:return(await e(async()=>{let{css:e}=await import(`./dist-DdN4_oB-.js`).then(e=>e.r);return{css:e}},__vite__mapDeps([3,1,0,2,4]),import.meta.url)).css().language;case`diff`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{diff:e}=await import(`./diff-CvjWTdgS.js`);return{diff:e}},[],import.meta.url)).diff);case`go`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{go:e}=await import(`./go-D-9nxjMR.js`);return{go:e}},[],import.meta.url)).go);case`ini`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{properties:e}=await import(`./properties-DXHbGwrb.js`);return{properties:e}},[],import.meta.url)).properties);case`java`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{java:e}=await import(`./clike-BfpXCH0g.js`);return{java:e}},[],import.meta.url)).java);case`javascript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-Cz7Q9WAs.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript().language;case`json`:return(await e(async()=>{let{json:e}=await import(`./dist-CFDOSoEm.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;case`kotlin`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{kotlin:e}=await import(`./clike-BfpXCH0g.js`);return{kotlin:e}},[],import.meta.url)).kotlin);case`lua`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{lua:e}=await import(`./lua-qAotk3Jg.js`);return{lua:e}},[],import.meta.url)).lua);case`markdown`:return(await e(async()=>{let{markdown:e}=await import(`./dist-CJtNQVui.js`).then(e=>e.t);return{markdown:e}},__vite__mapDeps([8,1,6,0,2,9,3,4,5]),import.meta.url)).markdown().language;case`objectivec`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{objectiveC:e}=await import(`./clike-BfpXCH0g.js`);return{objectiveC:e}},[],import.meta.url)).objectiveC);case`perl`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{perl:e}=await import(`./perl-E4P7BXaC.js`);return{perl:e}},[],import.meta.url)).perl);case`python`:return(await e(async()=>{let{python:e}=await import(`./dist-CdZbZpjt.js`);return{python:e}},__vite__mapDeps([10,6,0,1,2,4]),import.meta.url)).python().language;case`r`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{r:e}=await import(`./r-DCDstkyG.js`);return{r:e}},[],import.meta.url)).r);case`ruby`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{ruby:e}=await import(`./ruby-DeKk3LV3.js`);return{ruby:e}},[],import.meta.url)).ruby);case`rust`:return(await e(async()=>{let{rust:e}=await import(`./dist-aEzrjz-4.js`);return{rust:e}},__vite__mapDeps([11,0,1,2,4]),import.meta.url)).rust().language;case`sql`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{standardSQL:e}=await import(`./sql-XsKG_-B3.js`);return{standardSQL:e}},[],import.meta.url)).standardSQL);case`swift`:return(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{swift:e}=await import(`./swift-CGhDVaQR.js`);return{swift:e}},[],import.meta.url)).swift);case`typescript`:return(await e(async()=>{let{javascript:e}=await import(`./dist-Cz7Q9WAs.js`).then(e=>e.t);return{javascript:e}},__vite__mapDeps([5,1,6,0,2,4]),import.meta.url)).javascript({typescript:!0,jsx:!0}).language;case`html`:case`xml`:return(await e(async()=>{let{html:e}=await import(`./dist-AhKSYQhE2.js`).then(e=>e.t);return{html:e}},__vite__mapDeps([9,1,3,0,2,4,5,6]),import.meta.url)).html().language;case`yaml`:return(await e(async()=>{let{yaml:e}=await import(`./dist-C7PQBily.js`).then(e=>e.t);return{yaml:e}},__vite__mapDeps([12,1,0,2,4]),import.meta.url)).yaml().language;default:return null}}async function i(t,r){if(t===`canvas`)return(await e(async()=>{let{json:e}=await import(`./dist-CFDOSoEm.js`).then(e=>e.t);return{json:e}},__vite__mapDeps([7,1,0,2,4]),import.meta.url)).json().language;if(r){let e=await n(r);if(e)return e}return t===`toml`?(await e(async()=>{let{StreamLanguage:e}=await import(`./dist-zYQJXuRH.js`).then(e=>e.h);return{StreamLanguage:e}},__vite__mapDeps([0,1,2]),import.meta.url)).StreamLanguage.define((await e(async()=>{let{toml:e}=await import(`./toml-DkvxgD0C.js`);return{toml:e}},[],import.meta.url)).toml):null}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{n as r}from"./dist-DmEZHXvB.js";import{t as i}from"./dist-CpRBr-Ct.js";var a=e(t(),1),o=n(),s=`ok-acp-agent-settings-v1`;function c(e){return`${e.source}:${e.id}`}function l(){try{let e=localStorage.getItem(s);if(e===null)return{};let t=JSON.parse(e);return typeof t==`object`&&t?t:{}}catch{return{}}}function u(e){try{localStorage.setItem(s,JSON.stringify(e))}catch(e){console.warn(`[acp-settings] could not persist agent settings`,e)}}function d(e,t,n){let r=l(),i=r[e]??{};r[e]={...i,config:{...i.config,[t]:n}},u(r)}function f(e){let t=l()[e]?.config;if(typeof t!=`object`||!t)return;let n={};for(let[e,r]of Object.entries(t))(typeof r==`string`||typeof r==`boolean`)&&(n[e]=r);return Object.keys(n).length>0?n:void 0}function p(e,t){if(t===``)return;let n=l();n[e]={...n[e]??{},modeId:t},u(n)}function m(e){let t=l()[e]?.modeId;return typeof t==`string`&&t!==``?t:void 0}var h=64e3;function g(e){if(typeof e!=`object`||!e)return null;let t=e;return t.type===`text`&&typeof t.text==`string`?t.text:null}var _=class{items=[];plan=[];turnActive=!1;tokenUsage=null;terminals={};toolCallIndex=new Map;permissionIndex=new Map;permissionByToolCall=new Map;permissionsByToolCall={};messageIndex=new Map;runtimeConsentIndex=new Map;lastConsentIndex=null;appliedCount=0;dirty=!1;snapshot={items:[],plan:[],turnActive:!1,tokenUsage:null,terminals:{},permissionsByToolCall:{}};sync(e){e.length<this.appliedCount&&this.reset();for(let t=this.appliedCount;t<e.length;t++)this.applyEvent(e[t]);return this.appliedCount=e.length,this.dirty&&=(this.snapshot={items:[...this.items],plan:this.plan,turnActive:this.turnActive,tokenUsage:this.tokenUsage,terminals:{...this.terminals},permissionsByToolCall:{...this.permissionsByToolCall}},!1),this.snapshot}reset(){this.items=[],this.plan=[],this.turnActive=!1,this.tokenUsage=null,this.terminals={},this.toolCallIndex=new Map,this.permissionIndex=new Map,this.permissionByToolCall=new Map,this.permissionsByToolCall={},this.messageIndex=new Map,this.runtimeConsentIndex=new Map,this.lastConsentIndex=null,this.appliedCount=0,this.dirty=!0}applyEvent(e){switch(this.dirty=!0,e.kind){case`user_message`:this.items.push({kind:`message`,role:`user`,text:e.content,messageId:`user-${this.items.length}`}),this.messageIndex.clear();break;case`turn_started`:this.turnActive=!0;break;case`turn_ended`:this.turnActive=!1,this.messageIndex.clear();break;case`status`:if(e.status===`exited`&&(this.turnActive=!1),this.lastConsentIndex!==null){let t=this.items[this.lastConsentIndex];t?.kind===`runtime_consent`&&t.install===`running`&&(e.status===`spawning`||e.status===`ready`||e.status===`running`?this.items[this.lastConsentIndex]={...t,install:`done`}:(e.status===`error`||e.status===`exited`)&&(this.items[this.lastConsentIndex]={...t,install:`failed`}))}e.status===`error`&&e.detail?this.items.push({kind:`notice`,text:e.detail,tone:`error`}):e.status===`auth_required`&&e.detail&&this.items.push({kind:`notice`,text:e.detail,tone:`info`});break;case`permission_request`:{let t=e.toolCall.toolCallId??null,n={kind:`permission`,requestId:e.requestId,title:e.toolCall.title??`Permission required`,toolKind:e.toolCall.kind??`other`,options:e.options,resolved:null,toolCallId:t,mergedIntoToolCall:t!==null&&this.toolCallIndex.has(t)};this.permissionIndex.set(e.requestId,this.items.length),t!==null&&(this.permissionByToolCall.set(t,this.items.length),this.permissionsByToolCall[t]=n),this.items.push(n);break}case`permission_resolved`:{let t=this.permissionIndex.get(e.requestId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`permission`)break;let r={...n,resolved:{optionId:e.optionId,auto:e.auto}};this.items[t]=r,r.toolCallId!==null&&(this.permissionsByToolCall[r.toolCallId]=r);break}case`runtime_consent_request`:this.runtimeConsentIndex.set(e.requestId,this.items.length),this.lastConsentIndex=this.items.length,this.items.push({kind:`runtime_consent`,requestId:e.requestId,runtime:e.runtime,displayName:e.displayName,provides:e.provides,version:e.version,approxSizeMB:e.approxSizeMB,sourceHost:e.sourceHost,agentName:e.agentName,resolved:null,install:null,progress:null});break;case`runtime_consent_resolved`:{let t=this.runtimeConsentIndex.get(e.requestId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`runtime_consent`)break;this.items[t]={...n,resolved:e.decision,install:e.decision===`granted`?`running`:null};break}case`runtime_install_progress`:{if(this.lastConsentIndex===null)break;let t=this.items[this.lastConsentIndex];if(t===void 0||t.kind!==`runtime_consent`)break;this.items[this.lastConsentIndex]={...t,progress:{receivedBytes:e.receivedBytes??0,totalBytes:e.totalBytes??null}};break}case`terminal_created`:this.terminals[e.terminalId]={terminalId:e.terminalId,command:e.command,args:e.args,output:``,truncated:!1,exit:null};break;case`terminal_output`:{let t=this.terminals[e.terminalId];if(t===void 0)break;let n=t.output+e.chunk,r=t.truncated;n.length>h&&(n=n.slice(-h),r=!0),this.terminals[e.terminalId]={...t,output:n,truncated:r};break}case`terminal_exit`:{let t=this.terminals[e.terminalId];if(t===void 0)break;this.terminals[e.terminalId]={...t,exit:{exitCode:e.exitCode,signal:e.signal}};break}case`session_update`:this.applyUpdate(e.update);break;default:break}}mergePermissionInto(e){let t=this.permissionByToolCall.get(e);if(t===void 0)return;let n=this.items[t];if(n===void 0||n.kind!==`permission`||n.mergedIntoToolCall)return;let r={...n,mergedIntoToolCall:!0};this.items[t]=r,this.permissionsByToolCall[e]=r}pushMessageChunk(e,t,n){let r=`${e}:${t}`,i=this.messageIndex.get(r);if(i!==void 0&&i===this.items.length-1){let e=this.items[i];this.items[i]={...e,text:e.text+n};return}this.messageIndex.set(r,this.items.length),this.items.push({kind:`message`,role:e,text:n,messageId:t})}applyUpdate(e){switch(e.sessionUpdate){case`agent_message_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`agent`,y(e),t);break}case`agent_thought_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`thought`,y(e),t);break}case`user_message_chunk`:{let t=g(e.content);t!==null&&this.pushMessageChunk(`user`,y(e),t);break}case`tool_call`:{let t={kind:`tool_call`,toolCallId:e.toolCallId,title:e.title??`Tool call`,toolKind:e.kind??`other`,status:e.status??`pending`,diffs:[],terminalIds:[],content:[],locations:b(e.locations),rawInput:e.rawInput};x(t,e.content),this.toolCallIndex.set(e.toolCallId,this.items.length),this.items.push(t),this.mergePermissionInto(e.toolCallId);break}case`tool_call_update`:{let t=this.toolCallIndex.get(e.toolCallId);if(t===void 0)break;let n=this.items[t];if(n.kind!==`tool_call`)break;let r={...n,diffs:[...n.diffs],terminalIds:[...n.terminalIds],content:[...n.content]};e.status&&(r.status=e.status),e.title&&(r.title=e.title),e.locations&&(r.locations=b(e.locations));let i=e.rawInput;i!==void 0&&(r.rawInput=i),x(r,e.content),this.items[t]=r;break}case`plan`:{let t=e.entries;Array.isArray(t)&&(this.plan=t.map(e=>e).filter(e=>typeof e.content==`string`).map(e=>({content:e.content,priority:typeof e.priority==`string`?e.priority:void 0,status:typeof e.status==`string`?e.status:void 0})));break}case`usage_update`:{let t=e;this.tokenUsage={used:typeof t.used==`number`?t.used:void 0,size:typeof t.size==`number`?t.size:void 0};break}default:{let t=e.usage;t!==void 0&&(this.tokenUsage={used:t.used,size:t.size});break}}}};function v(e){let t=e.resolved;if(t===null)return null;if(t.optionId===null)return t.auto?{kind:`dismissed`}:{kind:`denied`,auto:!1,optionName:null};let n=e.options.find(e=>e.optionId===t.optionId);if(n===void 0)return{kind:`dismissed`};let r=n.kind.startsWith(`reject`),i=n.kind.startsWith(`allow`);return!r&&!i?{kind:`dismissed`}:{kind:r?`denied`:`approved`,auto:t.auto,optionName:n.name}}function y(e){let t=e.messageId;return typeof t==`string`?t:`default`}function b(e){return Array.isArray(e)?e.map(e=>e).filter(e=>typeof e.path==`string`).map(e=>({path:e.path,line:typeof e.line==`number`?e.line:void 0})):[]}function x(e,t){if(Array.isArray(t))for(let n of t){let t=n;if(t.type===`diff`&&typeof t.path==`string`&&typeof t.newText==`string`)e.diffs.push({path:t.path,oldText:typeof t.oldText==`string`?t.oldText:null,newText:t.newText});else if(t.type===`terminal`&&typeof t.terminalId==`string`)e.terminalIds.includes(t.terminalId)||e.terminalIds.push(t.terminalId);else if(t.type===`content`){let n=g(t.content);n!==null&&e.content.push(n)}else{let n=g(t);n!==null&&e.content.push(n)}}}var S=500,C=15e3,w=3e4,T=9e4,E=8e3,D=class extends Error{code;constructor(e,t){super(t),this.name=`ThreadResumeError`,this.code=e}},O=class extends Error{constructor(){super(`agent-thread channel is not connected`),this.name=`ThreadChannelUnavailableError`}},k=class{url=null;ws=null;reconnectDelay=S;reconnectTimer=null;threads=new Map;listeners=new Set;pendingCreates=new Map;pendingResumes=new Map;openedArchived=new Set;reqCounter=0;status=`idle`;version=0;setUrl(e){e!==this.url&&(this.url=e,this.teardownSocket(),e===null?this.setStatus(`idle`):this.connect())}subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));threadsSnapshot=[];threadsSnapshotVersion=-1;getThreads=()=>(this.threadsSnapshotVersion!==this.version&&(this.threadsSnapshot=[...this.threads.values()].map(e=>e.info).sort((e,t)=>e.createdAt-t.createdAt),this.threadsSnapshotVersion=this.version),this.threadsSnapshot);openTabsSnapshot=[];openTabsSnapshotVersion=-1;getOpenTabs=()=>(this.openTabsSnapshotVersion!==this.version&&(this.openTabsSnapshot=[...this.threads.values()].map(e=>e.info).filter(e=>e.archived!==!0||this.openedArchived.has(e.threadId)).sort((e,t)=>e.createdAt-t.createdAt),this.openTabsSnapshotVersion=this.version),this.openTabsSnapshot);archivedSnapshot=[];archivedSnapshotVersion=-1;getArchivedThreads=()=>(this.archivedSnapshotVersion!==this.version&&(this.archivedSnapshot=[...this.threads.values()].map(e=>e.info).filter(e=>e.archived===!0).sort((e,t)=>t.lastActivityAt-e.lastActivityAt),this.archivedSnapshotVersion=this.version),this.archivedSnapshot);getThread=e=>this.threads.get(e)??null;modelBuilders=new Map;getThreadModel=e=>{let t=this.threads.get(e);if(t===void 0)return null;let n=this.modelBuilders.get(e);return n===void 0&&(n=new _,this.modelBuilders.set(e,n)),n.sync(t.events)};getConnectionStatus=()=>this.status;async createThread(e){this.connectNow(),await this.waitForOpen(E),this.reqCounter+=1;let t=`create-${this.reqCounter}`,n=new Promise((e,n)=>{let r=setTimeout(()=>{this.pendingCreates.delete(t),n(Error(`thread creation timed out`))},w);this.pendingCreates.set(t,{resolve:e,reject:n,timer:r})}),r=c(e.agent),i=f(r),a=m(r),o=i!==void 0||a!==void 0?{...i===void 0?{}:{config:i},...a===void 0?{}:{modeId:a}}:void 0;return this.send({op:`create`,reqId:t,...e,...o===void 0?{}:{settings:o}}),n}prompt(e,t){this.reqCounter+=1,this.send({op:`prompt`,threadId:e,reqId:`prompt-${this.reqCounter}`,content:t})}editQueued(e,t,n){let r=n.trim();r!==``&&this.send({op:`queue_edit`,threadId:e,id:t,content:r})}removeQueued(e,t){this.send({op:`queue_remove`,threadId:e,id:t})}respondPermission(e,t,n){this.send({op:`permission_response`,threadId:e,requestId:t,outcome:n})}respondRuntimeConsent(e,t,n){this.send({op:`runtime_consent_response`,threadId:e,requestId:t,outcome:n})}cancel(e){this.send({op:`cancel`,threadId:e})}setMode(e,t){this.send({op:`set_mode`,threadId:e,modeId:t})}renameThread(e,t){let n=t.trim();n!==``&&this.send({op:`rename`,threadId:e,title:n})}setConfigOption(e,t,n){this.send({op:`set_config_option`,threadId:e,configId:t,value:n})}closeThread(e){let t=this.threads.get(e);if(t?.info.archived===!0){this.send({op:`unsubscribe`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.set(e,{info:t.info,events:[],lastSeq:-1}),this.bump();return}this.send({op:`close`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.delete(e)&&this.bump()}openArchivedThread(e){let t=this.threads.get(e);t===void 0||t.info.archived!==!0||this.openedArchived.has(e)||(this.openedArchived.add(e),this.send({op:`subscribe`,threadId:e,sinceSeq:t.lastSeq+1}),this.bump())}deleteThread(e){this.send({op:`delete`,threadId:e}),this.openedArchived.delete(e),this.modelBuilders.delete(e),this.threads.delete(e)&&this.bump()}async resumeThread(e,t){this.connectNow(),await this.waitForOpen(E),this.reqCounter+=1;let n=`resume-${this.reqCounter}`,r=new Promise((e,t)=>{let r=setTimeout(()=>{this.pendingResumes.delete(n),t(new D(`timeout`,`resume timed out`))},T);this.pendingResumes.set(n,{resolve:e,reject:t,timer:r})});return this.send({op:`resume`,threadId:e,reqId:n,prompt:t}),r}connectNow(){this.url===null||this.ws!==null||(this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.reconnectDelay=S,this.connect())}waitForOpen(e){return this.ws!==null&&this.ws.readyState===WebSocket.OPEN?Promise.resolve():new Promise((t,n)=>{let r=e=>{clearTimeout(a),i(),e?t():n(new O)},i=this.subscribe(()=>{this.ws!==null&&this.ws.readyState===WebSocket.OPEN&&r(!0)}),a=setTimeout(()=>r(!1),e)})}connect(){if(this.url===null)return;this.setStatus(`connecting`);let e;try{e=new WebSocket(this.url)}catch{this.scheduleReconnect();return}this.ws=e,e.onopen=()=>{if(this.ws===e){this.reconnectDelay=S,this.setStatus(`open`),this.send({op:`list`});for(let[e,t]of this.threads)t.info.archived===!0&&!this.openedArchived.has(e)||this.send({op:`subscribe`,threadId:e,sinceSeq:t.lastSeq+1})}},e.onmessage=t=>{if(this.ws!==e||typeof t.data!=`string`)return;let n;try{n=JSON.parse(t.data)}catch{return}this.handleFrame(n)},e.onclose=()=>{this.ws===e&&(this.ws=null,this.setStatus(`closed`),this.scheduleReconnect())},e.onerror=()=>{}}teardownSocket(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null);for(let e of this.pendingCreates.values())clearTimeout(e.timer),e.reject(new O);this.pendingCreates.clear();for(let e of this.pendingResumes.values())clearTimeout(e.timer),e.reject(new O);this.pendingResumes.clear();let e=this.ws;if(this.ws=null,e!==null)try{e.close()}catch{}}scheduleReconnect(){if(this.url===null||this.reconnectTimer!==null)return;let e=this.reconnectDelay;this.reconnectDelay=Math.min(this.reconnectDelay*2,C),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},e)}send(e){let t=this.ws;if(!(t===null||t.readyState!==WebSocket.OPEN))try{t.send(JSON.stringify(e))}catch{}}handleFrame(e){switch(e.op){case`created`:{let t=this.pendingCreates.get(e.reqId);t!==void 0&&(this.pendingCreates.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`threads`:{let t=new Set;for(let n of e.threads){t.add(n.threadId);let e=this.threads.has(n.threadId);this.upsertInfo(n),!e&&n.archived!==!0&&this.send({op:`subscribe`,threadId:n.threadId,sinceSeq:0})}let n=!1;for(let e of Array.from(this.threads.keys()))t.has(e)||(this.threads.delete(e),this.modelBuilders.delete(e),this.openedArchived.delete(e),n=!0);n&&this.bump();return}case`resumed`:{let t=this.pendingResumes.get(e.reqId);t!==void 0&&(this.pendingResumes.delete(e.reqId),clearTimeout(t.timer),t.resolve(e.info)),this.upsertInfo(e.info);return}case`subscribed`:this.upsertInfo(e.info);return;case`info`:this.upsertInfo(e.info);return;case`event`:this.appendEvents(e.threadId,e.seq,[e.event]);return;case`events`:this.appendEvents(e.threadId,e.fromSeq,e.events);return;case`error`:if(e.reqId!==void 0){let t=this.pendingCreates.get(e.reqId);if(t!==void 0){this.pendingCreates.delete(e.reqId),clearTimeout(t.timer),t.reject(Error(e.message));return}let n=this.pendingResumes.get(e.reqId);if(n!==void 0){this.pendingResumes.delete(e.reqId),clearTimeout(n.timer),n.reject(new D(e.code,e.message));return}if(e.reqId.startsWith(`prompt-`)){r.error(i._({id:`XNBGZw`,values:{0:e.message}}));return}}console.warn(`[agent-threads] server error frame:`,e.code,e.message);return;default:return}}appendEvents(e,t,n){let r=this.threads.get(e);if(r===void 0||n.length===0)return;let i=Math.max(r.lastSeq+1-t,0);if(i>=n.length)return;let a=i===0?n:n.slice(i),o=r.info;for(let e of a)o=A(o,e);this.threads.set(e,{info:o,events:[...r.events,...a],lastSeq:t+n.length-1}),this.bump()}upsertInfo(e){let t=this.threads.get(e.threadId);t===void 0?this.threads.set(e.threadId,{info:e,events:[],lastSeq:-1}):e.archived===!0&&t.info.archived!==!0?(this.openedArchived.delete(e.threadId),this.modelBuilders.delete(e.threadId),this.threads.set(e.threadId,{info:e,events:[],lastSeq:-1})):this.threads.set(e.threadId,{...t,info:e}),this.bump()}setStatus(e){this.status!==e&&(this.status=e,this.bump())}bump(){this.version+=1;for(let e of this.listeners)e()}};function A(e,t){switch(t.kind){case`status`:return{...e,status:t.status,lastActivityAt:t.ts};case`title_changed`:return{...e,title:t.title,lastActivityAt:t.ts};default:return{...e,lastActivityAt:t.ts}}}var j=new k;function M(){return j}function N(){return(0,a.useSyncExternalStore)(j.subscribe,j.getOpenTabs,j.getOpenTabs)}function P(){return(0,a.useSyncExternalStore)(j.subscribe,j.getArchivedThreads,j.getArchivedThreads)}function F(e){let t=(0,o.c)(2),n;t[0]===e?n=t[1]:(n=()=>j.getThread(e),t[0]=e,t[1]=n);let r=n;return(0,a.useSyncExternalStore)(j.subscribe,r,r)}function I(e){let t=(0,o.c)(2),n;t[0]===e?n=t[1]:(n=()=>j.getThreadModel(e),t[0]=e,t[1]=n);let r=n;return(0,a.useSyncExternalStore)(j.subscribe,r,r)}function L(){return(0,a.useSyncExternalStore)(j.subscribe,j.getConnectionStatus,j.getConnectionStatus)}function R(e){if(e===null)return null;try{let t=new URL(e);return t.pathname=`/collab/thread`,t.search=``,t.toString()}catch{return null}}export{F as a,P as c,c as d,d as f,R as i,N as l,D as n,L as o,p,M as r,I as s,O as t,v as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-CQNSW5MT-DY98Y9zl.js";export{e as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-R7FJI6CG-hR8tQLXq.js";export{e as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./globals-BbucswUi.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a,t as o}from"./dist-Nvb76hAm.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{t as c}from"./utils-CPqDy6Hr.js";import{t as l}from"./button-RQ5o7P7w.js";import{t as u}from"./checkbox-DqQC4GOw.js";import{t as d}from"./label-BT2yjpKR.js";import{n as f,t as p}from"./radio-group-CmCnommQ.js";import{Bt as m,zt as h}from"./dist-P5PuqHtu2.js";import{t as g}from"./check-DLRoQSSY.js";import{t as _}from"./loader-circle-B0OUuKph.js";import{t as v}from"./input-CtKG6a5B.js";import{t as y}from"./dist-CpRBr-Ct.js";import{t as b}from"./badge-CnYDYmI5.js";import{t as x}from"./textarea-CUVLEZhx.js";var S=e(r(),1),C=t(),w=s();async function T(){let e=typeof window>`u`?void 0:window.okUninstall;if(e===void 0)return null;try{let t=await e.ready();return t.kind===`screen`?t.screen:null}catch{return null}}function E(e){let t=typeof window>`u`?void 0:window.okUninstall;t!==void 0&&t.send(e).catch(()=>void 0)}var D=n();function O(e){let t=(0,w.c)(6),{items:n}=e,r;if(t[0]!==n){let e;t[2]===n.length?e=t[3]:(e=(e,t)=>(0,D.jsxs)(`li`,{className:`relative pb-5 pl-[30px] last:pb-1`,children:[t<n.length-1&&(0,D.jsx)(`span`,{"aria-hidden":`true`,className:`absolute top-[22px] bottom-0.5 left-[9px] w-0.5 bg-border`}),(0,D.jsx)(`span`,{"aria-hidden":`true`,className:c(`absolute top-px left-0 inline-flex size-5 items-center justify-center rounded-full`,e.done?`bg-primary/15 text-primary`:`border-[1.5px] border-muted-foreground/50`),children:e.done&&(0,D.jsx)(g,{className:`size-3`})}),(0,D.jsx)(`span`,{className:`sr-only`,children:e.done?(0,D.jsx)(i,{id:`clJ3qM`}):(0,D.jsx)(i,{id:`yU_9ur`})}),(0,D.jsxs)(`span`,{className:`block`,children:[(0,D.jsx)(`span`,{className:`font-medium`,children:e.label}),e.detail!==void 0&&(0,D.jsx)(`span`,{className:`mt-0.5 block text-muted-foreground leading-snug`,children:e.detail})]})]},e.label),t[2]=n.length,t[3]=e),r=n.map(e),t[0]=n,t[1]=r}else r=t[1];let a;return t[4]===r?a=t[5]:(a=(0,D.jsx)(`ol`,{className:`mb-1.5`,children:r}),t[4]=r,t[5]=a),a}function k(e){let t=(0,w.c)(49),{notice:n,onConfirm:r,onCancel:i,onRevealLog:o}=e,{_:s}=a(),c=(0,S.useId)(),u=(0,S.useId)(),d=n.cancelLabel!==void 0,f,p;t[0]!==d||t[1]!==i||t[2]!==r?(f=()=>{let e=e=>{e.key===`Escape`&&(d?i():r())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},p=[d,i,r],t[0]=d,t[1]=i,t[2]=r,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,S.useEffect)(f,p);let m;t[5]!==n.title||t[6]!==c?(m=(0,D.jsx)(`h1`,{id:c,className:`font-medium text-base leading-none`,children:n.title}),t[5]=n.title,t[6]=c,t[7]=m):m=t[7];let h;t[8]===n.subtitle?h=t[9]:(h=n.subtitle!==void 0&&(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-snug`,children:n.subtitle}),t[8]=n.subtitle,t[9]=h);let g;t[10]!==m||t[11]!==h?(g=(0,D.jsxs)(`header`,{className:`shrink-0 space-y-4 px-6 pt-5 pb-3.5`,children:[m,h]}),t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===n.paragraphs?_=t[14]:(_=n.paragraphs.map(A),t[13]=n.paragraphs,t[14]=_);let v;t[15]===n.checklist?v=t[16]:(v=n.checklist!==void 0&&(0,D.jsx)(O,{items:n.checklist}),t[15]=n.checklist,t[16]=v);let y;t[17]!==s||t[18]!==n.log?(y=n.log!==void 0&&(0,D.jsx)(`section`,{"aria-label":s({id:`Oi56Cu`}),tabIndex:0,className:`subtle-scrollbar mt-0.5 mb-2.5 min-h-20 flex-1 overflow-auto rounded-lg border border-border border-dotted bg-muted/40 px-3 py-2.5 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,children:(0,D.jsx)(`pre`,{className:`select-text whitespace-pre-wrap font-mono text-xs leading-relaxed wrap-anywhere`,children:n.log})}),t[17]=s,t[18]=n.log,t[19]=y):y=t[19];let b;t[20]===n.footnote?b=t[21]:(b=n.footnote!==void 0&&(0,D.jsx)(`p`,{className:`select-text text-muted-foreground text-xs wrap-anywhere`,children:n.footnote}),t[20]=n.footnote,t[21]=b);let x;t[22]!==n.logRevealLabel||t[23]!==o?(x=n.logRevealLabel!==void 0&&(0,D.jsx)(`p`,{className:`mt-0.5`,children:(0,D.jsx)(l,{type:`button`,variant:`link-muted`,size:`xs`,className:`h-auto px-0 underline underline-offset-2`,onClick:o,children:n.logRevealLabel})}),t[22]=n.logRevealLabel,t[23]=o,t[24]=x):x=t[24];let C;t[25]!==u||t[26]!==x||t[27]!==_||t[28]!==v||t[29]!==y||t[30]!==b?(C=(0,D.jsxs)(`div`,{id:u,className:`flex min-h-0 flex-1 flex-col px-6 pt-1 pb-4 text-sm`,children:[_,v,y,b,x]}),t[25]=u,t[26]=x,t[27]=_,t[28]=v,t[29]=y,t[30]=b,t[31]=C):C=t[31];let T;t[32]!==n.cancelLabel||t[33]!==i?(T=n.cancelLabel!==void 0&&(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:i,children:n.cancelLabel}),t[32]=n.cancelLabel,t[33]=i,t[34]=T):T=t[34];let E=n.danger===!0?`destructive`:`default`,k=!d,j;t[35]!==n.confirmLabel||t[36]!==r||t[37]!==E||t[38]!==k?(j=(0,D.jsx)(l,{type:`button`,variant:E,autoFocus:k,onClick:r,children:n.confirmLabel}),t[35]=n.confirmLabel,t[36]=r,t[37]=E,t[38]=k,t[39]=j):j=t[39];let M;t[40]!==T||t[41]!==j?(M=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[T,j]}),t[40]=T,t[41]=j,t[42]=M):M=t[42];let N;return t[43]!==u||t[44]!==C||t[45]!==M||t[46]!==g||t[47]!==c?(N=(0,D.jsxs)(`div`,{role:`alertdialog`,"aria-labelledby":c,"aria-describedby":u,className:`flex h-dvh flex-col bg-background text-foreground`,children:[g,C,M]}),t[43]=u,t[44]=C,t[45]=M,t[46]=g,t[47]=c,t[48]=N):N=t[48],N}function A(e){return(0,D.jsx)(`p`,{className:`mb-2.5 leading-normal`,children:e},e)}function j(e){return e.open||e.running?`active`:e.recent?`recent`:null}function M(e){return e.split(`/`).filter(Boolean).at(-1)??e}function N(e){let t=(0,w.c)(9),{status:n}=e,{_:r}=a(),i;t[0]===r?i=t[1]:(i=r({id:`s_ereB`}),t[0]=r,t[1]=i);let o;t[2]===r?o=t[3]:(o=r({id:`_2cM9E`}),t[2]=r,t[3]=o);let s;t[4]!==i||t[5]!==o?(s={active:i,recent:o},t[4]=i,t[5]=o,t[6]=s):s=t[6];let c=s[n],l;return t[7]===c?l=t[8]:(l=(0,D.jsx)(b,{variant:`secondary`,className:`rounded-sm text-muted-foreground`,children:c}),t[7]=c,t[8]=l),l}function P(e){let t=(0,w.c)(28),{project:n,checked:r,onCheckedChange:i}=e,{_:o}=a(),s=(0,S.useId)(),c;t[0]===n?c=t[1]:(c=j(n),t[0]=n,t[1]=c);let l=c,f;t[2]===i?f=t[3]:(f=e=>i(e===!0),t[2]=i,t[3]=f);let p;t[4]!==o||t[5]!==n.path?(p=o({id:`CHfFN_`,values:{0:n.path}}),t[4]=o,t[5]=n.path,t[6]=p):p=t[6];let m;t[7]!==s||t[8]!==r||t[9]!==f||t[10]!==p?(m=(0,D.jsx)(u,{id:s,className:`mt-0.5`,checked:r,onCheckedChange:f,"aria-label":p}),t[7]=s,t[8]=r,t[9]=f,t[10]=p,t[11]=m):m=t[11];let h;t[12]===n.path?h=t[13]:(h=M(n.path),t[12]=n.path,t[13]=h);let g;t[14]===h?g=t[15]:(g=(0,D.jsx)(`span`,{className:`w-full truncate font-medium text-sm`,children:h}),t[14]=h,t[15]=g);let _;t[16]===n.path?_=t[17]:(_=(0,D.jsx)(`span`,{className:`w-full select-text break-words text-muted-foreground text-xs`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==s||t[19]!==g||t[20]!==_?(v=(0,D.jsxs)(d,{htmlFor:s,className:`min-w-0 flex-col items-start gap-0.5 font-normal`,children:[g,_]}),t[18]=s,t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;t[22]===l?y=t[23]:(y=l!==null&&(0,D.jsx)(`div`,{className:`flex justify-end max-sm:col-start-2 max-sm:justify-start`,children:(0,D.jsx)(N,{status:l})}),t[22]=l,t[23]=y);let b;return t[24]!==m||t[25]!==v||t[26]!==y?(b=(0,D.jsxs)(`div`,{className:`grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-2.5 border-border/60 border-b px-3 py-2.5 last:border-b-0 hover:bg-accent/40 max-sm:grid-cols-[auto_minmax(0,1fr)]`,children:[m,v,y]}),t[24]=m,t[25]=v,t[26]=y,t[27]=b):b=t[27],b}function F(e){let t=(0,w.c)(45),{projects:n,onConfirm:r,onCancel:o}=e,{_:s}=a(),[c,f]=(0,S.useState)(ne),p=(0,S.useId)(),m=(0,S.useId)(),h=(0,S.useId)(),g=n.length>0&&c.size===n.length?!0:c.size>0?`indeterminate`:!1,_;t[0]===n?_=t[1]:(_=e=>f(e?new Set(n.map(I)):new Set),t[0]=n,t[1]=_);let v=_,y,b;t[2]!==o||t[3]!==n?(y=()=>{let e=e=>{if(e.key===`Escape`){o();return}(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`a`&&(e.preventDefault(),f(new Set(n.map(te))))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},b=[o,n],t[2]=o,t[3]=n,t[4]=y,t[5]=b):(y=t[4],b=t[5]),(0,S.useEffect)(y,b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,D.jsx)(i,{id:`PrVaZo`}),t[6]=x):x=t[6];let C;t[7]===p?C=t[8]:(C=(0,D.jsx)(`h1`,{id:p,className:`font-medium leading-none text-base`,children:x}),t[7]=p,t[8]=C);let T;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,D.jsx)(i,{id:`keop3U`}),t[9]=T):T=t[9];let E;t[10]===m?E=t[11]:(E=(0,D.jsx)(`p`,{id:m,className:`text-sm text-muted-foreground`,children:T}),t[10]=m,t[11]=E);let O;t[12]!==C||t[13]!==E?(O=(0,D.jsxs)(`header`,{className:`shrink-0 px-6 pt-5 pb-3.5 space-y-4`,children:[C,E]}),t[12]=C,t[13]=E,t[14]=O):O=t[14];let k;t[15]===s?k=t[16]:(k=s({id:`QySH4I`}),t[15]=s,t[16]=k);let A;t[17]!==s||t[18]!==n||t[19]!==h||t[20]!==g||t[21]!==c||t[22]!==v?(A=n.length===0?(0,D.jsx)(`div`,{className:`rounded-lg border border-border p-4`,children:(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`bKt9Jk`})})}):(0,D.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border`,children:[(0,D.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2.5 border-border border-b px-3 py-2.5 bg-muted/30`,children:[(0,D.jsx)(u,{id:h,checked:g,onCheckedChange:e=>v(e===!0)}),(0,D.jsx)(d,{htmlFor:h,className:`flex-1 font-medium text-sm`,children:(0,D.jsx)(i,{id:`wgNoIs`})}),(0,D.jsxs)(`span`,{role:`status`,"aria-label":s({id:`nsUDL8`,values:{0:c.size,1:n.length}}),className:`text-muted-foreground text-xs tabular-nums`,children:[c.size,` / `,n.length]})]}),(0,D.jsx)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-scroll [scrollbar-gutter:stable]`,children:n.map((e,t)=>(0,D.jsx)(P,{project:e,checked:c.has(t),onCheckedChange:e=>{f(n=>{let r=new Set(n);return e?r.add(t):r.delete(t),r})}},e.path))})]}),t[17]=s,t[18]=n,t[19]=h,t[20]=g,t[21]=c,t[22]=v,t[23]=A):A=t[23];let j;t[24]!==A||t[25]!==k?(j=(0,D.jsx)(`section`,{"aria-label":k,className:`flex min-h-0 flex-1 flex-col px-6 py-3.5`,children:A}),t[24]=A,t[25]=k,t[26]=j):j=t[26];let M;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,D.jsx)(i,{id:`dEgA5A`}),t[27]=M):M=t[27];let N;t[28]===o?N=t[29]:(N=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:o,children:M}),t[28]=o,t[29]=N);let F;t[30]!==r||t[31]!==c?(F=()=>r([...c].sort(ee)),t[30]=r,t[31]=c,t[32]=F):F=t[32];let L;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(i,{id:`J7nMqi`}),t[33]=L):L=t[33];let R;t[34]===F?R=t[35]:(R=(0,D.jsx)(l,{type:`button`,variant:`destructive`,onClick:F,children:L}),t[34]=F,t[35]=R);let z;t[36]!==N||t[37]!==R?(z=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[N,R]}),t[36]=N,t[37]=R,t[38]=z):z=t[38];let B;return t[39]!==m||t[40]!==j||t[41]!==z||t[42]!==O||t[43]!==p?(B=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":p,"aria-describedby":m,className:`flex h-dvh flex-col overflow-hidden bg-background text-foreground`,children:[O,j,z]}),t[39]=m,t[40]=j,t[41]=z,t[42]=O,t[43]=p,t[44]=B):B=t[44],B}function ee(e,t){return e-t}function te(e,t){return t}function I(e,t){return t}function ne(){return new Set}function L(){let e=(0,w.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(_,{"aria-hidden":`true`,className:`mx-auto mb-4 size-8 animate-spin text-primary motion-reduce:animate-none`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,D.jsx)(`h1`,{className:`mb-2 font-medium text-base leading-none`,children:(0,D.jsx)(i,{id:`j2229h`})}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(`main`,{className:`grid h-dvh place-items-center bg-background text-foreground`,children:(0,D.jsxs)(`div`,{role:`status`,className:`max-w-vw px-7 py-7 text-center`,children:[t,n,(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-relaxed`,children:(0,D.jsx)(i,{id:`kCjkGY`})})]})}),e[2]=r):r=e[2],r}function R(){let{_:e}=a();return{"workflow-fit":e({id:`5vAI6Z`}),"missing-feature":e({id:`cH0dkG`}),"hard-to-start":e({id:`uoJF_D`}),unreliable:e({id:`WGMoTY`}),"switched-tool":e({id:`jO18NZ`}),"one-off":e({id:`S3qu11`}),other:e({id:`aQyGJc`})}}function z(e){let t=(0,w.c)(86),{onSend:n,onSkip:r}=e,{_:o}=a(),s=R(),[c,g]=(0,S.useState)(``),[_,y]=(0,S.useState)(``),[b,C]=(0,S.useState)(!1),[T,E]=(0,S.useState)(``),O=(0,S.useRef)(null),k=(0,S.useId)(),A=(0,S.useId)(),j=(0,S.useId)(),M=(0,S.useId)(),N=(0,S.useId)(),P=(0,S.useId)(),F,ee;t[0]===b?(F=t[1],ee=t[2]):(F=()=>{b&&O.current?.focus()},ee=[b],t[0]=b,t[1]=F,t[2]=ee),(0,S.useEffect)(F,ee);let te;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,D.jsx)(i,{id:`ElyuiT`}),t[3]=te):te=t[3];let I;t[4]===k?I=t[5]:(I=(0,D.jsx)(`h1`,{id:k,className:`font-medium leading-none text-base`,children:te}),t[4]=k,t[5]=I);let ne;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,D.jsx)(i,{id:`ZDOq9A`}),t[6]=ne):ne=t[6];let L;t[7]===A?L=t[8]:(L=(0,D.jsx)(`p`,{id:A,className:`text-muted-foreground text-sm`,children:ne}),t[7]=A,t[8]=L);let z;t[9]!==I||t[10]!==L?(z=(0,D.jsxs)(`header`,{className:`px-6 pt-5 pb-3.5 space-y-4`,children:[I,L]}),t[9]=I,t[10]=L,t[11]=z):z=t[11];let B;t[12]!==T||t[13]!==b||t[14]!==_||t[15]!==n||t[16]!==c?(B=e=>{e.preventDefault();let t=_.trim(),r=b?T.trim():``;n({...c===``?{}:{reason:c},...t===``?{}:{note:t},...r===``?{}:{email:r}})},t[12]=T,t[13]=b,t[14]=_,t[15]=n,t[16]=c,t[17]=B):B=t[17];let re;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,D.jsx)(i,{id:`oxdGJn`}),t[18]=re):re=t[18];let V;t[19]===j?V=t[20]:(V=(0,D.jsx)(`p`,{id:j,className:`mb-2 font-medium text-sm`,children:re}),t[19]=j,t[20]=V);let H;t[21]!==j||t[22]!==s?(H=m.map(e=>(0,D.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-1 py-1`,children:[(0,D.jsx)(f,{id:`${j}-${e.value}`,value:e.value}),(0,D.jsx)(d,{htmlFor:`${j}-${e.value}`,className:`font-normal text-sm leading-snug`,children:s[e.value]})]},e.value)),t[21]=j,t[22]=s,t[23]=H):H=t[23];let U;t[24]!==j||t[25]!==c||t[26]!==H?(U=(0,D.jsx)(p,{"aria-labelledby":j,value:c,onValueChange:g,children:H}),t[24]=j,t[25]=c,t[26]=H,t[27]=U):U=t[27];let W;t[28]!==V||t[29]!==U?(W=(0,D.jsxs)(`div`,{className:`mb-6`,children:[V,U]}),t[28]=V,t[29]=U,t[30]=W):W=t[30];let ie;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,D.jsx)(i,{id:`axQ1h6`}),t[31]=ie):ie=t[31];let G;t[32]===M?G=t[33]:(G=(0,D.jsx)(d,{htmlFor:M,className:`mb-2 font-medium text-sm`,children:ie}),t[32]=M,t[33]=G);let K;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(K=e=>y(e.target.value),t[34]=K):K=t[34];let q;t[35]!==_||t[36]!==M?(q=(0,D.jsx)(x,{id:M,rows:3,maxLength:h,value:_,onChange:K}),t[35]=_,t[36]=M,t[37]=q):q=t[37];let J;t[38]!==G||t[39]!==q?(J=(0,D.jsxs)(`div`,{className:`mb-6`,children:[G,q]}),t[38]=G,t[39]=q,t[40]=J):J=t[40];let ae;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ae=e=>C(e===!0),t[41]=ae):ae=t[41];let Y;t[42]!==b||t[43]!==N?(Y=(0,D.jsx)(u,{id:N,checked:b,onCheckedChange:ae}),t[42]=b,t[43]=N,t[44]=Y):Y=t[44];let oe;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,D.jsx)(i,{id:`xEb24l`}),t[45]=oe):oe=t[45];let X;t[46]===N?X=t[47]:(X=(0,D.jsx)(d,{htmlFor:N,className:`font-medium text-sm`,children:oe}),t[46]=N,t[47]=X);let Z;t[48]!==Y||t[49]!==X?(Z=(0,D.jsxs)(`div`,{className:`mb-2 flex items-center gap-2.5`,children:[Y,X]}),t[48]=Y,t[49]=X,t[50]=Z):Z=t[50];let se=!b,ce;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,D.jsx)(i,{id:`ATGYL1`}),t[51]=ce):ce=t[51];let Q;t[52]===P?Q=t[53]:(Q=(0,D.jsx)(d,{htmlFor:P,className:`mb-2 font-medium text-sm sr-only`,children:ce}),t[52]=P,t[53]=Q);let le;t[54]===o?le=t[55]:(le=o({id:`JHf6qZ`}),t[54]=o,t[55]=le);let ue=!b,de;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(de=e=>E(e.target.value),t[56]=de):de=t[56];let fe;t[57]!==T||t[58]!==P||t[59]!==le||t[60]!==ue?(fe=(0,D.jsx)(v,{id:P,ref:O,type:`email`,maxLength:320,autoComplete:`email`,spellCheck:!1,placeholder:le,disabled:ue,value:T,onChange:de}),t[57]=T,t[58]=P,t[59]=le,t[60]=ue,t[61]=fe):fe=t[61];let $;t[62]!==se||t[63]!==Q||t[64]!==fe?($=(0,D.jsxs)(`div`,{className:`mb-6`,hidden:se,children:[Q,fe]}),t[62]=se,t[63]=Q,t[64]=fe,t[65]=$):$=t[65];let pe;t[66]!==W||t[67]!==J||t[68]!==Z||t[69]!==$?(pe=(0,D.jsxs)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-auto px-6 pt-1 pb-4`,children:[W,J,Z,$]}),t[66]=W,t[67]=J,t[68]=Z,t[69]=$,t[70]=pe):pe=t[70];let me;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,D.jsx)(i,{id:`6Uau97`}),t[71]=me):me=t[71];let he;t[72]===r?he=t[73]:(he=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:r,children:me}),t[72]=r,t[73]=he);let ge;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,D.jsx)(l,{type:`submit`,children:(0,D.jsx)(i,{id:`xMsnTe`})}),t[74]=ge):ge=t[74];let _e;t[75]===he?_e=t[76]:(_e=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[he,ge]}),t[75]=he,t[76]=_e);let ve;t[77]!==pe||t[78]!==_e||t[79]!==B?(ve=(0,D.jsxs)(`form`,{className:`flex min-h-0 flex-1 flex-col`,onSubmit:B,children:[pe,_e]}),t[77]=pe,t[78]=_e,t[79]=B,t[80]=ve):ve=t[80];let ye;return t[81]!==A||t[82]!==ve||t[83]!==z||t[84]!==k?(ye=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":k,"aria-describedby":A,className:`flex h-dvh flex-col bg-background text-foreground`,children:[z,ve]}),t[81]=A,t[82]=ve,t[83]=z,t[84]=k,t[85]=ye):ye=t[85],ye}function B(){let e=(0,w.c)(9),[t,n]=(0,S.useState)(null),r,a;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!0;return T().then(t=>{e&&n(t)}),()=>{e=!1}},a=[],e[0]=r,e[1]=a):(r=e[0],a=e[1]),(0,S.useEffect)(r,a),t!==null)switch(t.kind){case`picker`:{let n;return e[2]===t.projects?n=e[3]:(n=(0,D.jsx)(F,{projects:t.projects,onConfirm:G,onCancel:ie}),e[2]=t.projects,e[3]=n),n}case`survey`:{let t;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(z,{onSend:W,onSkip:U}),e[4]=t):t=e[4],t}case`progress`:{let t;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(L,{}),e[5]=t):t=e[5],t}case`notice`:{let n;return e[6]===t.notice?n=e[7]:(n=(0,D.jsx)(k,{notice:t.notice,onConfirm:H,onCancel:V,onRevealLog:re}),e[6]=t.notice,e[7]=n),n}default:return t}let o;return e[8]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,D.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center bg-background p-8 text-foreground`,children:(0,D.jsx)(`p`,{className:`text-center text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`tzGWeg`})})}),e[8]=o):o=e[8],o}function re(){return E({kind:`notice-reveal-log`})}function V(){return E({kind:`notice-cancel`})}function H(){return E({kind:`notice-confirm`})}function U(){return E({kind:`survey-skip`})}function W(e){return E({kind:`survey-send`,...e})}function ie(){return E({kind:`picker-cancel`})}function G(e){return E({kind:`picker-confirm`,selectedIndexes:e})}var K=document.getElementById(`root`);if(!K)throw Error(`Root element not found`);(0,C.createRoot)(K).render((0,D.jsx)(S.StrictMode,{children:(0,D.jsx)(o,{i18n:y,children:(0,D.jsx)(B,{})})}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{Li as r}from"./dist-P5PuqHtu2.js";var i=e(t(),1),a=n(),o={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},s=Object.keys(o),c=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-editor-mode`,category:`general`,title:{id:`vPXOUw`},description:{id:`buNXgr`},scope:{id:`uBAxNB`},bindings:[{mac:`⌥⌘ M`,windowsLinux:`Ctrl Alt M`,match:{code:`KeyM`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`l9HUtd`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`toggle-agent-panel`,category:`general`,title:{id:`4-Phgi`},description:{id:`4ivBhl`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`,match:{code:`KeyL`,anyMod:!0,shiftKey:!0,allowExtraModifiers:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`add-comment`,category:`wysiwyg`,title:{id:`G4m8rL`},description:{id:`bGOTXx`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`,match:{key:`m`,mod:!0,shiftKey:!0}}]},{id:`view-source-at-cursor`,category:`wysiwyg`,title:{id:`zq2eBA`},description:{id:`cU-seF`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ E`,windowsLinux:`Ctrl Alt E`,match:{code:`KeyE`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],l=c,u=new Map(c.map(e=>[e.id,e]));function d(e){let t=u.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function f(){return r()?`mac`:`windowsLinux`}var p=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function m(e){return e.split(` / `).map(e=>p.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function h(e,t=f()){return t===`mac`?e.mac:e.windowsLinux}function g(e,t=f()){return m(h(e,t))}function _(e,t=f()){return h(d(e).bindings[0],t)}function v(e,t=f()){return g(d(e).bindings[0],t)}function y(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function b(e,t,n=f()){return d(t).bindings.some(t=>{let r=x(t.match,n);return r?C(e,r,n):!1})}function x(e,t){return e?S(e)?e:e[t]??null:null}function S(e){return`key`in e||`code`in e}function C(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var w=`#settings`;function T(e){return`#settings/${e}`}var E=`open-knowledge:settings-section-intent`;function D(e){if(typeof window>`u`)return()=>{};let t=t=>{let{detail:n}=t;typeof n==`string`&&n.length>0&&e(n)};return window.addEventListener(E,t),()=>window.removeEventListener(E,t)}function O(e){if(typeof window>`u`)return;let t=T(e);if(I(window.location.hash)){window.history.replaceState(null,``,t),window.dispatchEvent(new CustomEvent(E,{detail:e}));return}window.location.hash!==t&&(window.location.hash=t)}var k=`configure-agents`;function A(){O(k)}var j=`plugins-manage`;function M(){O(j)}function N(e){return`plugin:${e}`}function P(e){O(N(e))}function F(e){return y(e.target)?!1:b(e,`settings`)}function I(e){let t=e.replace(/^#/,``);return t===`settings`?!0:t.startsWith(`settings/`)&&t.length>9}function L(e){let t=e.replace(/^#/,``);if(!t.startsWith(`settings/`))return null;let n=t.slice(9);return n.length>0?n:null}function R(){return typeof window>`u`?``:window.location.hash}function z(){let e=(0,a.c)(5),[t,n]=(0,i.useState)(H),[r,o]=(0,i.useState)(V),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{(0,i.startTransition)(()=>{let e=R();n(I(e)),o(L(e))})};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l=B,u;return e[2]!==t||e[3]!==r?(u={open:t,section:r,close:l},e[2]=t,e[3]=r,e[4]=u):u=e[4],u}function B(){typeof window>`u`||I(R())&&window.history.back()}function V(){return L(R())}function H(){return I(R())}export{y as _,P as a,z as c,s as d,_ as f,m as g,v as h,A as i,l,g as m,I as n,M as o,h as p,F as r,D as s,w as t,o as u,b as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{Kt as r}from"./dist-P5PuqHtu2.js";var i=`M25.2339 6.78134C25.5199 7.35734 25.8179 8.47234 26.0179 9.07834C26.0189 9.08234 26.0209 9.08634 26.0219 9.09134C26.0229 9.09534 26.0249 9.10034 26.0259 9.10434C26.0539 9.19734 26.0949 9.29533 26.1519 9.41633C26.2919 9.71133 26.5269 10.1173 27.1299 11.1683C27.3259 11.4643 27.5209 11.7693 27.7119 12.0903C29.9739 15.1623 29.3259 20.1913 27.0469 22.9153C26.7779 23.2953 26.4869 23.6043 26.1889 23.8863C26.1519 23.9253 26.1129 23.9643 26.0729 24.0033C25.3159 24.7543 24.2949 25.4673 23.6129 25.8323C22.7469 26.2983 22.1349 26.5483 21.6299 26.7463C20.3649 27.3063 19.0609 27.7733 17.6569 28.0423C15.9649 28.3513 14.1939 28.4433 12.4569 28.1373C11.4779 27.9663 10.5119 27.6663 9.60891 27.2493C8.77491 26.8663 7.99192 26.3853 7.26992 25.8403C6.83592 25.5393 6.43893 25.2343 6.08093 24.9383C5.57893 24.5223 5.15993 24.1263 4.83493 23.7793C4.04993 22.9443 3.31593 21.8893 2.80893 21.0953C2.72593 20.9663 2.64792 20.8433 2.57592 20.7293C2.56192 20.7093 2.54793 20.6893 2.53393 20.6703C2.08593 20.0263 1.71892 19.3293 1.43792 18.5993C1.42892 18.5453 1.42093 18.4903 1.41293 18.4353C1.32093 17.7443 1.08292 16.9423 1.01092 15.6333C0.984921 15.0653 0.998928 14.4013 1.12393 13.6353C1.20693 13.1413 1.31993 12.9023 1.40893 12.7113C1.43593 12.6543 1.46193 12.6023 1.48593 12.5483C1.56793 12.3653 1.59392 12.1563 1.63592 11.9083C1.68992 11.5883 1.76992 11.1943 2.04592 10.7553C2.94392 9.37934 3.36792 8.81934 3.66592 8.33934C3.75592 8.20334 3.84292 8.08134 3.94192 7.96634C4.21592 7.64634 4.67693 7.29534 5.10293 7.05734C5.16693 7.02234 5.23093 6.98834 5.29193 6.95534C5.62993 6.77834 6.22592 6.30135 6.66992 5.92035C6.83692 5.77635 7.08193 5.60735 7.37393 5.40935C7.67393 5.20535 8.02593 4.96934 8.39193 4.70234C9.32093 4.02634 9.84091 3.69134 10.2599 3.42334C10.3799 3.34734 10.4919 3.27734 10.6049 3.20834C10.9609 2.98834 11.4149 2.73034 11.8869 2.48634C12.4519 2.19334 13.0469 1.92133 13.5089 1.72233C14.7399 1.30233 16.0539 1.01333 17.4169 1.00033C18.1169 0.991333 18.7939 1.16534 19.2389 1.43034C19.6869 1.69534 19.8689 2.00335 19.8039 2.23935C19.7379 2.47835 19.4399 2.63634 19.0109 2.74734C18.5789 2.85634 18.0469 2.92035 17.4889 2.96135C16.3639 3.04235 15.2399 3.36435 14.1499 3.80835C12.8199 4.35135 11.5379 5.07133 10.2719 5.84733C9.38691 6.39133 8.51192 6.97334 7.63592 7.56834C7.54492 7.63034 7.45492 7.69135 7.36492 7.75235C6.97392 8.06635 6.58293 8.38134 6.22293 8.66334C5.97893 8.85734 5.76793 9.04834 5.59393 9.21434C5.26893 9.52334 5.02393 9.74334 4.81893 9.93934C4.67793 10.0753 4.55793 10.2013 4.45593 10.3443C4.40093 10.4213 4.32992 10.5273 4.24792 10.6593C3.90492 11.1933 3.44493 12.1693 3.15393 13.1173C3.01893 13.5363 2.87991 14.0343 2.79391 14.5253C2.66591 15.2253 2.65594 15.9053 2.71994 16.2373C2.82794 16.8193 2.95593 17.4833 3.14093 18.0553C3.31293 18.6003 3.52991 19.0583 3.70791 19.2823C3.81591 19.4183 3.90394 19.5473 3.99594 19.6913C4.09394 19.8413 4.19191 20.0073 4.31091 20.2033C4.47891 20.4803 4.68592 20.8163 5.00192 21.2493C5.36492 21.7463 5.61793 22.1043 5.83493 22.4023C6.14493 22.8243 6.38591 23.1343 6.83691 23.5033C7.33891 23.9113 7.86593 24.3113 8.26693 24.6393C8.44893 24.7883 8.66993 24.9443 8.90493 25.0963C9.21593 25.2963 9.55192 25.4893 9.85592 25.6703C10.1059 25.8203 10.3059 25.9633 10.4869 26.0863C10.5429 26.1243 10.5979 26.1603 10.6519 26.1943C10.8699 26.2803 11.0929 26.3593 11.3159 26.4283C11.3539 26.4323 11.3949 26.4353 11.4369 26.4393C11.6509 26.4573 11.9089 26.4733 12.2209 26.5133C12.7169 26.5753 13.1399 26.6603 13.6019 26.7243C13.9589 26.7733 14.3409 26.8083 14.7729 26.7893C15.0729 26.7753 15.4069 26.7353 15.7389 26.6813C16.2349 26.6023 16.7179 26.4943 17.0569 26.4473C17.1499 26.4343 17.2359 26.4343 17.3209 26.4373C17.3489 26.4393 17.3799 26.4413 17.4109 26.4433C17.4119 26.4433 17.4119 26.4433 17.4129 26.4433C17.4199 26.4433 17.4279 26.4443 17.4349 26.4443C18.2329 26.2413 19.0259 25.9433 19.7959 25.5983C19.8609 25.5633 19.9259 25.5273 19.9899 25.4913C20.3059 25.3173 20.6049 25.1383 20.7869 24.9943C20.9829 24.8393 21.5189 24.5373 22.0579 24.1853C22.4109 23.9553 22.7649 23.7053 23.0369 23.4833C23.1949 23.3553 23.3689 23.2693 23.5479 23.1773C23.7129 23.0923 23.8809 23.0013 24.0349 22.8653C24.1109 22.7983 24.1869 22.7173 24.2639 22.6303C24.3309 22.5563 24.4039 22.4723 24.4759 22.3923C24.5459 22.3153 24.7199 22.1723 24.9139 21.9793C25.0079 21.8863 25.1059 21.7783 25.1909 21.6713C25.2199 21.6323 25.2489 21.5943 25.2769 21.5553C25.5919 21.0403 25.8779 20.5003 26.1019 19.9653C26.1299 19.8403 26.1379 19.7293 26.1279 19.6373C26.1199 19.5703 26.1029 19.5113 26.0839 19.4503C26.0599 19.3643 26.0329 19.2773 26.0239 19.1723C26.0169 19.0893 26.0309 19.0043 26.0629 18.9543C26.0779 18.9323 26.0969 18.9143 26.1129 18.8993C26.1329 18.8823 26.1499 18.8673 26.1569 18.8443C26.1609 18.8273 26.1579 18.8073 26.1529 18.7833C26.1459 18.7443 26.1369 18.6943 26.1539 18.6293C26.2189 18.3853 26.2869 18.1103 26.3319 17.8383C26.3829 17.5393 26.4049 17.2433 26.3949 17.0123C26.3849 16.7493 26.3909 16.3823 26.3469 16.0003C26.3179 15.7343 26.2659 15.4663 26.1979 15.2383C26.1319 15.0143 26.0219 14.7913 25.9039 14.5783C25.7629 14.3223 25.6119 14.0783 25.5169 13.8453C25.4969 13.7983 25.4999 13.7263 25.4999 13.6323C25.5009 13.5673 25.4999 13.4913 25.4919 13.4083C25.3239 13.1243 25.1459 12.8423 24.9589 12.5483C24.9479 12.5413 24.9369 12.5333 24.9249 12.5263C24.6689 12.3503 24.3139 12.1173 24.0769 11.5503C24.0179 11.4063 24.0069 11.2983 23.9969 11.1993C23.9859 11.1013 23.9799 11.0183 23.9289 10.9093C23.8709 10.7853 23.7759 10.6583 23.6709 10.4993C23.5849 10.3703 23.4899 10.2133 23.4199 10.0423C23.3819 9.95134 23.3509 9.85734 23.3329 9.75934C23.3299 9.74334 23.3269 9.72534 23.3229 9.70634C23.2899 9.52734 23.2439 9.26534 23.2409 8.98634C23.0209 8.24434 22.8339 7.48833 22.6519 6.77633C22.3429 5.57133 22.0519 4.54234 21.3329 3.95434C20.9839 3.65334 20.5689 3.35433 20.2459 3.05433C19.9259 2.75633 19.7449 2.47534 19.8019 2.23834C19.8639 2.00634 20.1589 1.82934 20.6659 1.80534C21.1699 1.78334 21.8699 1.93235 22.5209 2.39235C23.6159 3.14235 24.2029 4.38334 24.5599 5.35734C24.5829 5.40834 24.6049 5.46034 24.6259 5.51234C24.7849 5.89434 24.9529 6.22834 25.1199 6.55534C25.1579 6.63034 25.1969 6.70834 25.2339 6.78134Z`,a=n(),o=e(t(),1);function s(){let e=(0,a.c)(3),[t,n]=(0,o.useState)(u),i,s;return e[0]===t?(i=e[1],s=e[2]):(i=()=>{if(t!==null||window.okDesktop)return;let e=!0;return fetch(`/api/workspace`).then(async t=>{let i=await t.json().catch(l);if(!e||!t.ok)return;let a=r.safeParse(i);a.success&&n({contentDir:a.data.contentDir,pathSeparator:a.data.pathSeparator})}).catch(c),()=>{e=!1}},s=[t],e[0]=t,e[1]=i,e[2]=s),(0,o.useEffect)(i,s),t}function c(e){console.warn(`[useWorkspace] /api/workspace fetch failed:`,e)}function l(){return null}function u(){return d()}function d(e=typeof window>`u`?void 0:window){if(!e)return null;let t=e.okDesktop;return t?{contentDir:t.config.projectPath,pathSeparator:t.platform===`win32`?`\\`:`/`}:null}export{i as n,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-CTDrJ2_V.js";import{n as e}from"./chunk-5FCAYU7R-CTroACwQ.js";export{e as createWardleyServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-BbgVV4EV.js";var t=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./repair-skills-Qa8asXi-.mjs";export{e as repairSkills};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,o as t,r as n}from"./server-lock-DsDrc4RU.mjs";export{n as markServerLockDraining,e as releaseServerLock,t as updateServerLockPort};
|
package/dist/src-B-TXZyjI.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$o as e,Lo as t,Os as n,P as r,Po as i,R as a,Ro as o,d as s,ds as c,l,ts as u}from"./src-azBs1EPY.mjs";import{$ as d,$i as f,$n as p,$r as m,$t as h,A as g,Ai as _,An as v,At as y,B as b,Bi as x,Bn as S,Br as C,Bt as w,C as T,Ci as E,Cn as D,Cr as O,Ct as k,D as A,Di as j,Dn as M,Dt as N,E as P,Ei as F,En as I,Et as L,F as R,Fi as z,Fn as B,Fr as V,Ft as H,G as U,Gi as W,Gn as G,Gr as K,Gt as q,H as J,Hi as Y,Hn as X,Hr as Z,Ht as Q,I as $,Ii as ee,In as te,Ir as ne,It as re,J as ie,Ji as ae,Jn as oe,Jr as se,Jt as ce,K as le,Ki as ue,Kn as de,Kr as fe,Kt as pe,L as me,Li as he,Ln as ge,Lr as _e,Lt as ve,M as ye,Mi as be,Mn as xe,Mr as Se,Mt as Ce,N as we,Ni as Te,Nn as Ee,Nr as De,Nt as Oe,O as ke,Oi as Ae,On as je,Ot as Me,P as Ne,Pi as Pe,Pn as Fe,Pr as Ie,Pt as Le,Q as Re,Qi as ze,Qn as Be,Qr as Ve,Qt as He,R as Ue,Ri as We,Rn as Ge,Rr as Ke,Rt as qe,S as Je,Si as Ye,Sn as Xe,Sr as Ze,St as Qe,T as $e,Ti as et,Tn as tt,Tr as nt,Tt as rt,U as it,Ui as at,Un as ot,Ur as st,Ut as ct,V as lt,Vi as ut,Vn as dt,Vr as ft,Vt as pt,W as mt,Wi as ht,Wn as gt,Wr as _t,Wt as vt,X as yt,Xi as bt,Xn as xt,Xr as St,Xt as Ct,Y as wt,Yi as Tt,Yn as Et,Yr as Dt,Yt as Ot,Z as kt,Zi as At,Zn as jt,Zr as Mt,Zt as Nt,_ as Pt,_a as Ft,_i as It,_n as Lt,_r as Rt,_t as zt,a as Bt,aa as Vt,ai as Ht,an as Ut,ar as Wt,at as Gt,b as Kt,ba as qt,bi as Jt,bn as Yt,br as Xt,bt as Zt,c as Qt,ca as $t,ci as en,cn as tn,cr as nn,d as rn,da as an,di as on,dn as sn,dr as cn,ea as ln,ei as un,en as dn,er as fn,et as pn,f as mn,fa as hn,fi as gn,fn as _n,fr as vn,g as yn,ga as bn,gi as xn,gn as Sn,gr as Cn,gt as wn,h as Tn,ha as En,hi as Dn,hn as On,hr as kn,ht as An,i as jn,ia as Mn,ii as Nn,in as Pn,ir as Fn,it as In,j as Ln,ji as Rn,jn as zn,jr as Bn,jt as Vn,k as Hn,ki as Un,kn as Wn,kt as Gn,l as Kn,la as qn,li as Jn,ln as Yn,lr as Xn,m as Zn,ma as Qn,mi as $n,mn as er,mr as tr,mt as nr,n as rr,na as ir,ni as ar,nn as or,nr as sr,nt as cr,o as lr,oa as ur,oi as dr,on as fr,or as pr,ot as mr,p as hr,pa as gr,pi as _r,pn as vr,pr as yr,q as br,qi as xr,qn as Sr,qr as Cr,qt as wr,r as Tr,ra as Er,ri as Dr,rn as Or,rr as kr,rt as Ar,s as jr,sa as Mr,si as Nr,sn as Pr,sr as Fr,st as Ir,t as Lr,ta as Rr,ti as zr,tn as Br,tr as Vr,tt as Hr,u as Ur,ua as Wr,ui as Gr,un as Kr,ur as qr,v as Jr,va as Yr,vn as Xr,vr as Zr,vt as Qr,w as $r,wi as ei,wn as ti,wr as ni,wt as ri,x as ii,xi as ai,xn as oi,xr as si,xt as ci,y as li,ya as ui,yi as di,yn as fi,yr as pi,yt as mi,z as hi,zi as gi,zn as _i,zr as vi,zt as yi}from"./src-YfpQ2LX0.mjs";import{C as bi,E as xi,T as Si,_ as Ci,b as wi,c as Ti,d as Ei,g as Di,i as Oi,l as ki,m as Ai,n as ji,p as Mi,s as Ni,t as Pi,u as Fi,v as Ii,w as Li,x as Ri,y as zi}from"./fs-traced-Cq61rC8q.mjs";import{a as Bi,d as Vi,f as Hi,i as Ui,l as Wi,n as Gi,r as Ki,t as qi,u as Ji}from"./logger-BZPV1wv8.mjs";import{S as Yi,_ as Xi,a as Zi,c as Qi,f as $i,g as ea,h as ta,i as na,l as ra,m as ia,n as aa,o as oa,p as sa,r as ca,s as la,t as ua,u as da,v as fa,x as pa}from"./server-lock-DsDrc4RU.mjs";export{an as AGENT_ID_MAX_LEN,hn as AGENT_ID_RE,j as AGENT_WRITE_ORIGIN,Yr as AcpPermissionStore,En as AcpRegistry,Ye as AcpThreadManager,Jt as AgentFocusBroadcaster,di as AgentPresenceBroadcaster,Ae as AgentSessionCapacityError,Un as AgentSessionManager,An as AutoStartDisabledError,cn as BUNDLE_IDS,vn as BUNDLE_SCOPE,yr as BUNDLE_SKILL_NAME,S as BacklinkIndex,gi as CC1Broadcaster,u as CC1_CONTRACT_VERSION,Kr as CONFIG_FILENAME,Fe as CONFLICT_MARKER_RE,De as CURSOR_BUNDLE_PATHS_BY_PLATFORM,Pt as ConfigSchema,W as DEFAULT_CHECKPOINT_RETENTION,Mt as DEFAULT_EMBEDDINGS_DIMENSIONS,H as DEFAULT_PACK_ID,lt as DocumentDurabilityState,Ve as EMBEDDINGS_API_KEY_ENV,bn as FEATURED_AGENT_IDS,ue as FILE_SYSTEM_WRITER,Ge as FILE_WATCHER_ORIGIN,K as FileEmbeddingsBackend,Nt as GIT_PREFLIGHT_FAIL_SPAN_NAME,xr as GIT_UPSTREAM_WRITER,ui as GitDirAccessError,h as GitNotAvailableError,dn as GitTooOldError,wn as HOCUSPOCUS_AUTH_REJECTION_REASONS,zt as HocuspocusAuthRejection,Qr as HocuspocusAuthTokenSchema,vi as INSTALLED_AGENTS_SCHEMES,e as LINEAGE_EPOCH_KEY,Ue as LIVE_DERIVED_INDEX_DEBOUNCE_MS,re as LOG_MD_TEMPLATE,rt as MANAGED_RENAME_ORIGIN,E as MAX_ACP_THREADS,_ as MAX_AGENT_SESSIONS,et as MCP_CONNECTION_ID_HEADER,i as MCP_SERVER_NAME,Rn as MIN_EVICTABLE_IDLE_MS,Br as MIN_GIT_VERSION,J as MISSING_OK_CONFIG_MESSAGE,qt as MalformedGitPointerError,pn as McpLogger,it as MissingOkConfigError,Te as OBSERVER_SYNC_ORIGIN,sn as OK_OKIGNORE_TEMPLATE,t as ORPHAN_MODES,n as PROTOCOL_VERSION,qi as PinoLogger,Qi as ProcessLockCollisionError,Kn as ProjectGitInitError,L as ROLLBACK_ORIGIN,_n as ROOT_GITIGNORE_TEMPLATE,ea as RUNTIME_VERSION,gn as RemoteConfigError,ae as SERVICE_WRITER,pr as SKILL_INSTALL_EVENTS_FILE_REL,r as SKILL_STATE_TARGETS,ve as STARTER_FOLDERS,qe as STARTER_FOLDER_FRONTMATTER_FILENAME,yi as STARTER_PACKS,w as STARTER_PACK_IDS,pt as STARTER_TEMPLATES,$e as STATE_MANIFEST_FILENAME,Xi as STATE_SCHEMA_VERSION,c as SYSTEM_DOC_NAME,wr as SeedPrerequisiteError,ce as SeedRootDirError,ua as ServerLockCollisionError,Lr as SingleFileNotAFileError,rr as SingleFileNotFoundError,Tr as SingleFileNotMarkdownError,P as StateManifestError,_i as TagIndex,tr as USER_GLOBAL_BUNDLE_IDS,X as UiLockCollisionError,N as __getShowAllWalkStatsForTesting,Me as __resetShowAllWalkStatsForTesting,ra as acquireProcessLock,aa as acquireServerLock,ot as acquireUiLock,be as applyAgentMarkdownWrite,xe as applyExternalChange,Le as applySeed,A as assertCompatibleStateManifest,or as assertGitAvailable,Yt as assertNeverDiskEvent,ai as attachAcpThreadSocket,nr as attachIdleShutdown,Jr as bootServer,Sr as buildAndOpenSkill,vr as buildConfigYmlContent,wt as buildExecResult,ei as buildOkMcpStdioCommand,nn as buildSkillZip,Q as buildStarterFolderFrontmatterYaml,Tt as buildWipTree,kn as bundleSkillMdPath,fe as canonicalProjectKey,oi as classifyEvents,Pi as classifyFsPath,Cr as clearAllEmbeddingsKeys,un as clearContributors,ct as coercePackId,l as colorFromSeed,bt as commitUpstreamImport,At as commitWip,ze as commitWipFromTree,Or as compareSemver,Zr as composeEffectiveLinterConfig,pi as composeFrontmatterSchemasConfig,B as containsConflictMarkers,Xe as contentHash,zr as contributorCount,Ne as countShadowObjects,R as countStaleAgentWipRefs,$ as countWipRefs,Gn as createApiExtension,ri as createAssetServeMiddleware,U as createCollaborationHost,Bn as createContentFilter,Se as createContentFilterAsync,se as createEmbeddingsSecretStore,jn as createEphemeralProjectDir,Ee as createExternalChangeHandler,mn as createFileLogger,hi as createLiveDerivedIndexExtension,br as createMcpHttpHandler,C as createOsProbe,we as createPersistenceExtension,T as createServer,Ln as createServerObserverExtension,ee as createStreamingErrorWriter,Gi as createTestLogger,Dt as describeStoredEmbeddingsKey,yn as detectClaudeDesktopPresence,Pn as detectGit,ke as detectProjectShape,oe as detectUserSkillHosts,Ar as discoverLockDirs,Ze as discoverMarkdownlintConfig,He as emitPreflightFailureSpan,yt as encodeDocName,kt as encodeFolderRoute,Re as encodeSkillRoute,Ur as ensureProjectGit,er as ensureProjectSkillGitignore,he as errorResponse,D as evictStaleTrackerEntries,y as extractHeadings,In as extractOkBinaryPath,dt as extractWikiLinksFromMarkdown,Ut as fallbackPaths,rn as findEnclosingGitRoot,Xr as findEnclosingProjectRoot,O as findNativeMarkdownlintFile,hr as flushFileLogger,mi as formatAuthRejectionWire,ar as formatContributors,Dr as formatContributorsFrom,Ce as formatPackRationale,f as gcCheckpointRefs,Hr as getCurrentMcpLogger,Nr as getLocalDir,Zn as getLogFilePath,Ki as getLogger,Tn as getLogsDir,fa as getMachineId,zi as getMeter,ur as getMetrics,wi as getTracer,Mr as handleCollabSocketError,Ie as handleSpawnCursor,_r as hasForwardingHeaders,me as hasGcLogLatch,s as iconFromClientName,$t as incrementCollabSocketFilteredError,qn as incrementServerObserverFire,On as initContent,ln as initShadowRepo,Ri as initTelemetry,Kt as initToleranceTelemetryWriter,Ir as installPrettyZodErrors,Ui as installTestLoggers,Et as installUserSkill,on as isAllowedApiOrigin,xn as isAllowedWorkspaceHostHeader,x as isConfigDoc,Zt as isHocuspocusAuthRejectionReason,vt as isKnownPackId,ut as isLinkIndexExcludedDoc,It as isLoopbackAddress,Y as isManagedArtifactDoc,o as isOrphanMode,Pe as isPairedWriteOrigin,V as isPathWithinDir,pa as isProcessAlive,fi as isProjectRoot,$n as isRemoteAdmitted,at as isReservedForUserTree,ti as isSelfWrite,ht as isSystemDoc,ii as isToleranceTelemetryEnabled,Yi as isValidLockPid,tt as lastKnownHash,Rr as listRescueCheckpoints,q as listStarterPacks,Ft as loadCustomAgents,ye as loadPrincipal,da as lockFilePath,Bi as loggerFactory,Wi as logsCurrentPath,Ji as logsPreviousPath,St as makeLazyEmbeddingsKeyStore,ca as markServerLockDraining,mt as mountMcpAndApi,ji as normalizeFsPath,Cn as originGitHubHost,Sn as packageVersionMajorMinor,ci as parseAuthRejectionWire,fr as parseGitVersion,Qe as parseHocuspocusAuthToken,le as parseKeepaliveConnectionId,I as pathToDocName,Oe as planSeed,Bt as prepareSingleFileOpen,Gt as processCommand,mr as processUsage,jt as readAllTargets,Be as readBundleDecision,ni as readOwnNativeRules,$i as readProcessLock,sa as readProcessLockDetailed,b as readProjectHeadState,_t as readProjectLocalSemanticConfig,na as readServerLock,p as readServerPackageVersion,fn as readSkillInstallStateSnapshot,Hn as readStateManifest,Vr as readTargetRecordedAt,sr as readTargetVersion,gt as readUiLock,te as reconcile,Nn as recordContributor,Fr as recordSkillInstallEvent,ie as registerAllTools,M as registerWrite,ia as releaseProcessLock,Zi as releaseServerLock,G as releaseUiLock,je as removeLastKnownHash,xt as reportSkillInstall,Wr as resetMetrics,a as resolveBundleEnabled,Xn as resolveBundledSkillDir,en as resolveContentDir,ne as resolveCursorBinaryDefault,_e as resolveCursorSpawnInvocation,Xt as resolveEffectiveLinterConfig,m as resolveEmbeddingsCredential,Jn as resolveLockDir,si as resolveNativeConfigForDoc,nt as resolveNativeMarkdownlintConfig,pe as resolvePack,jr as resolvePackageVersion,Dn as resolveRemoteAccess,Wt as resolveSkillInstallReportSettings,d as resolveUiInfo,Ht as restoreContributors,li as restoreLifecycleFromConflictsJson,Z as rewriteMarkdownLinksForDocumentRename,st as rewriteWikiLinksForDocumentRename,Pr as runAuthReposSubprocess,tn as runAuthStatusSubprocess,Ot as runCloneSubprocess,Yn as runDeviceFlowSubprocess,cr as runWithMcpLogger,Gr as safeContentPath,Vn as safeSubdir,ir as safetyCheckpoint,F as sanitizeClientName,Er as saveInMemoryCheckpoint,Mn as saveVersion,k as seedBasenameIndex,lr as serializeError,bi as setActiveSpanAttributes,z as setupServerObservers,Vt as shadowGit,Li as shutdownTelemetry,Vi as spansCurrentPath,Hi as spansPreviousPath,Ke as spawnDetached,ge as splitMarkdownBlocks,Wn as startWatcher,We as streamingProblemEvent,dr as swapContributors,Je as teardownToleranceTelemetryWriter,gr as toBroadcasterKey,Oi as tracedAppendFileSync,Ni as tracedLinkSync,Ti as tracedMkdir,ki as tracedMkdirSync,Fi as tracedRename,Ei as tracedRenameSync,Mi as tracedRmSync,Ai as tracedRmdirSync,Di as tracedUnlinkSync,Ci as tracedWriteFile,Ii as tracedWriteFileSync,$r as trustSystemCertificates,Qt as untrackTrackedProjectSkillProjection,v as updateLastKnownHash,ta as updateProcessLockPort,oa as updateServerLockPort,de as updateUiLockPort,Qn as validateAgentId,Ct as validateCloneInputs,qr as validateSkillZip,la as waitForServerLockDrain,ft as withHiddenWindowsConsole,Si as withSpan,xi as withSpanSync,kr as writeBundleDecision,Rt as writeMarkdownlintRule,Lt as writeRootGitignoreForNewRepo,g as writeStateManifest,Fn as writeTargetVersion,zn as writeTracker};
|