@inkeep/open-knowledge 0.54.0-beta.4 → 0.54.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-harness-probe-goll8rs6.mjs → acp-harness-probe-BCOlBAWH.mjs} +2 -2
- package/dist/cli.mjs +61 -61
- package/dist/constants-sbERnR0e.mjs +2 -0
- package/dist/git-handle-Bhi37DC5.mjs +1 -0
- package/dist/{git-handle-VkMM709H.mjs → git-handle-rOWtim7I.mjs} +2 -2
- package/dist/index.mjs +206 -206
- package/dist/init-DSbeDx7w.mjs +1 -0
- package/dist/{init-1LhcFmkO.mjs → init-DXf3dcgC.mjs} +23 -23
- package/dist/{launch-json-removal-p3Z7fS0T.mjs → launch-json-removal-C2j5vIYF.mjs} +2 -2
- package/dist/loader-CCz4CmE8.mjs +1 -0
- package/dist/{loader-B1dOaZUl.mjs → loader-CRCSIiyo.mjs} +2 -2
- package/dist/md-manager-CFxg-xpz.mjs +2 -0
- package/dist/{open-browser-aO-bvl8i.mjs → open-browser-Z_iLYd6k.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/preview-DXzv4gA0.mjs +1 -0
- package/dist/{preview-4y9fFXuz.mjs → preview-MWPJVd2e.mjs} +2 -2
- package/dist/public/assets/{ActivityModeContent-DZkplL0F.js → ActivityModeContent-CyPQUkSG.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-Bcz43Lfp.js → AgentDiffPane-CaBWiwwZ.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-DmTKBcdn.js → AgentThreadClientBinder-CG2b5VCC.js} +1 -1
- package/dist/public/assets/{BugReportHistory-B8cA4YSy.js → BugReportHistory-DuFz31j1.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-By9HjIWI.js → BugReportHistoryDialog-Cc7Edg4R.js} +1 -1
- package/dist/public/assets/{ChangedOutsideBadge-nkvFjEbv.js → ChangedOutsideBadge-DFge_7HG.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BcWeEej4.js → CodeMirrorPropInput-Co1ATmkY.js} +3 -3
- package/dist/public/assets/{ConfigSharingInfoTooltip-PyuM3MSL.js → ConfigSharingInfoTooltip-D-WJuzEA.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-CcEUkzY7.js → ConsentDialogBody-DGovwv5w.js} +1 -1
- package/dist/public/assets/{DiffView-UblppyKd.js → DiffView-SBlKwzTo.js} +1 -1
- package/dist/public/assets/{DocumentContext-DRQjwAk8.js → DocumentContext-DiLKOxrG.js} +1 -1
- package/dist/public/assets/{EditorModeToggle-BAilPj4p.js → EditorModeToggle-DwxL589w.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-pt0Q14Bj.js → EnableSyncConfirmDialog-CTlqDQ-t.js} +1 -1
- package/dist/public/assets/FeedbackForm-RrB0tnZB.js +1 -0
- package/dist/public/assets/GraphPanel-VR9VuXcj.js +44 -0
- package/dist/public/assets/{ImportSkillDialog-BsopcQIb.js → ImportSkillDialog-iEHBNa53.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-Cwvw8jiT.js → LintConfigEditor-Bc2Hjcq_.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-5NeHnKky.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-J4h9WTET.js → ManagedArtifactProperties-BoFhXjHM.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-DqNF1H2Y.js → McpConsentDialogBody-DOdCI68o.js} +1 -1
- package/dist/public/assets/{Mermaid-k_TkbCC5.js → Mermaid-ukCAxO5k.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-BuDKh5PR.js → MermaidDocEditor-CbNiJqcL.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-Dsi8oXsX.js → PropertyDisplayRow-CeA9XOKE.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-Df-5nwMc.js → RegisteredAgentIcon-CP1iDML-.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-B-OwIuer.js → ReportBugDialogBody-Djk7n9lR.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-CSni9krI.js → SchemaConfigEditor-DW62SaoV.js} +1 -1
- package/dist/public/assets/{SessionsHost-CN8Gr-lE.js → SessionsHost-DATpsDjT.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-D7DTpysk.js → SettingsDialogBody-Bueode84.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-BSy9MKqq.js → ShareBranchSwitchDialog-nBazAtNU.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DzDBs_cQ.js → ShareReceiveDialog-CYUaconU.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-B3mTbHjN.js → ShareReceiveMissDialog-BdTda1es.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-BSUogItW.js → SkillEditBanner-C3z3p9Yk.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-BIHw_CwG.js → SkillOriginInline-DiC6nYwA.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-BX3ULUFJ.js → SkillToolbarControls-C6EJTKZP.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-BvaGl1WK.js → SlidesToolbarControls-DBUg7THF.js} +1 -1
- package/dist/public/assets/{SourceEditor-BadmhUO3.js → SourceEditor-BesJplxX.js} +1 -1
- package/dist/public/assets/{TerminalPanel-Cq-7OViL.js → TerminalPanel-oZHZafqG.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-B__Z2sX9.js → TerminalWindowApp-BDd3v9Lj.js} +1 -1
- package/dist/public/assets/{TextDocEditor-B9uZfeAm.js → TextDocEditor-DSyRNDEF.js} +1 -1
- package/dist/public/assets/{ThreadView-BFNqMhMO.js → ThreadView-BHLhKoXn.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-CwNmKTlr.js → TimelineDiffPane-DnieQKUQ.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Dd_PygYQ.js → agent-diff-store-kLss-Lir.js} +1 -1
- package/dist/public/assets/{auth-state-cache-BScBukJw.js → auth-state-cache-DOfpLZU2.js} +1 -1
- package/dist/public/assets/{checkbox-DrzOiX31.js → checkbox-hfBCQ901.js} +1 -1
- package/dist/public/assets/{client-version-BghIjrC7.js → client-version-DJbFgVXJ.js} +1 -1
- package/dist/public/assets/{cm-theme-DABB1ZYg.js → cm-theme-Dn2dmDeX.js} +1 -1
- package/dist/public/assets/{comment-chips-BC9801yt.js → comment-chips-DuKZq4y4.js} +1 -1
- package/dist/public/assets/{config-provider-I3CKVNwm.js → config-provider-CqoRLVmz.js} +3 -3
- package/dist/public/assets/{dialog-BEzJgVLl.js → dialog-HdfR4WGm.js} +1 -1
- package/dist/public/assets/{dist-DZeKfr2D.js → dist--WnO2sB5.js} +1 -1
- package/dist/public/assets/{dist-C2q7iJ0S.js → dist-BSvfI8ZZ.js} +1 -1
- package/dist/public/assets/{dist-CXh6YF5N.js → dist-BnhQCLzV.js} +1 -1
- package/dist/public/assets/{dist-Dw4tYVWb.js → dist-BqaY2U46.js} +1 -1
- package/dist/public/assets/{dist-C4aw4jb-.js → dist-BxlS_DPI.js} +1 -1
- package/dist/public/assets/{dist-Dbif8qVU.js → dist-C771h__g.js} +47 -47
- package/dist/public/assets/{dist-BS7oLtu4.js → dist-C7Jl9EE4.js} +1 -1
- package/dist/public/assets/{dist-Bw8GUXfu.js → dist-CFOQHKzD.js} +1 -1
- package/dist/public/assets/{dist-Cyqnhs6C.js → dist-CWKs7Oul.js} +1 -1
- package/dist/public/assets/{dist-59MFMSex.js → dist-CYIfcXeV.js} +1 -1
- package/dist/public/assets/{dist-eF6JWWXy.js → dist-CmY53eJ2.js} +1 -1
- package/dist/public/assets/{dist-TAEqsAE2.js → dist-DOzmQFuG.js} +1 -1
- package/dist/public/assets/{dist-BpgwQrZq.js → dist-DSNMZ2oD.js} +1 -1
- package/dist/public/assets/{doc-paths-FbLt7pOZ.js → doc-paths-D4mBEiVg.js} +1 -1
- package/dist/public/assets/{documents-events-BRM_PHTg.js → documents-events-Bb6poN70.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-Cy-pKDMw.js → file-tree-adapter-BPyupSyB.js} +1 -1
- package/dist/public/assets/{file-tree-utils-B_Z245JQ.js → file-tree-utils-DH9xQnZk.js} +1 -1
- package/dist/public/assets/{folder-config-api-smq9rJ6i.js → folder-config-api-CwUBSjSc.js} +1 -1
- package/dist/public/assets/{follow-file-Ceau8yTp.js → follow-file-DsvWV_tV.js} +1 -1
- package/dist/public/assets/i18n-C7EyVFIh.js +1 -0
- package/dist/public/assets/index-CFR5dooW.js +2095 -0
- package/dist/public/assets/{input-group-CQuwDjWz.js → input-group-CtGtXCSV.js} +1 -1
- package/dist/public/assets/{lint-config-client-Cfk9MVlR.js → lint-config-client-DH1UzRoS.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-D8FSAnGB.js → markdownlint-rule-browser-OpruPEWo.js} +1 -1
- package/dist/public/assets/{messages-CMG9Lj05.js → messages-BJGa1ZJY.js} +1 -1
- package/dist/public/assets/{messages-BMoQDQc_.js → messages-CESQ4-PH.js} +1 -1
- package/dist/public/assets/{messages-CVNsZx40.js → messages-Cv1hylEq.js} +1 -1
- package/dist/public/assets/{messages-lvE5PH7B.js → messages-DChvcxeU.js} +1 -1
- package/dist/public/assets/{messages-uA4Li3MA.js → messages-DQ0CTh4S.js} +1 -1
- package/dist/public/assets/{messages-CJ8LdbwC.js → messages-Dbyhdvx8.js} +1 -1
- package/dist/public/assets/{messages-DmP-SA82.js → messages-DdNXqJNT.js} +1 -1
- package/dist/public/assets/{messages-56Q4EEHo.js → messages-DsOf1FF4.js} +1 -1
- package/dist/public/assets/{messages-BdAdI0Xb.js → messages-Dtd8mpVI.js} +1 -1
- package/dist/public/assets/{messages-Y1-25067.js → messages-DygG1SLe.js} +1 -1
- package/dist/public/assets/{messages-Cqyp-KWD.js → messages-FYlHk604.js} +1 -1
- package/dist/public/assets/{navigation-targets-CNLECuIl.js → navigation-targets-2ieFyUYm.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-D536006g.js → open-managed-artifact-tab-yTCCkm3Q.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BcwD3th3.js → pending-receive-nav-store-CQdmUN-y.js} +1 -1
- package/dist/public/assets/{project-paths-Bh4QrZyu.js → project-paths-BfXMrXgO.js} +1 -1
- package/dist/public/assets/{prop-types-DueJGg_I.js → prop-types-B-pqwsrL.js} +1 -1
- package/dist/public/assets/{receive-store-WrYYFeA_.js → receive-store-ChL8kr-a.js} +1 -1
- package/dist/public/assets/{selection-context-D5lGdlc2.js → selection-context-xv0h7ukK.js} +1 -1
- package/dist/public/assets/{skill-actions-DDGb7EPU.js → skill-actions-BaxLLVx5.js} +1 -1
- package/dist/public/assets/{skill-scope-DzFDJFzg.js → skill-scope-AohZTtzS.js} +1 -1
- package/dist/public/assets/{skills-api-CJ5rrxN4.js → skills-api-4MJqui79.js} +1 -1
- package/dist/public/assets/{src-RqxOR-b5.js → src-B57VCv_p.js} +1 -1
- package/dist/public/assets/{tag-pill-input-D1kRyBfY.js → tag-pill-input-D_yK4ylS.js} +1 -1
- package/dist/public/assets/target-navigation-intent-BBuo58_u.js +1 -0
- package/dist/public/assets/{telemetry-startup-bOgIvzTl.js → telemetry-startup-Bv621CCj.js} +1 -1
- package/dist/public/assets/{terminal-cli-display-LGEYWj1E.js → terminal-cli-display-dcNRer7W.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-Blwr-MuG.js → terminal-launch-events-BUwTzoNp.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-gJL2W2M1.js → terminal-telemetry-HPyrnMe8.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-D5qXizja.js → text-viewer-languages-T1NeWFZw.js} +2 -2
- package/dist/public/assets/{typing-burst-detector-BxKZWXyS.js → typing-burst-detector-DunfaZK_.js} +1 -1
- package/dist/public/assets/{uninstall-Bzym8ebu.js → uninstall-DuCZC0T6.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BXGARyuX.js → use-activity-panel-BIFDhH5M.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-D6NhEZ3g.js → use-apply-config-color-theme-loDqT2Gp.js} +1 -1
- package/dist/public/assets/{use-collab-url-zzFnAVdf.js → use-collab-url-nd8SD60O.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-CVnTG8rN.js → use-live-xterm-theme-4zXc2kDX.js} +1 -1
- package/dist/public/assets/{use-open-skill-BtOIk7cy.js → use-open-skill-DT-amfex.js} +1 -1
- package/dist/public/assets/{use-popular-skills-DL84jEVD.js → use-popular-skills-C34vXefg.js} +1 -1
- package/dist/public/assets/{use-settings-route-D_aV7jaY.js → use-settings-route-CjP7WLeR.js} +1 -1
- package/dist/public/assets/{use-skill-origin-c_TOcUcA.js → use-skill-origin-CvHKrgSa.js} +1 -1
- package/dist/public/assets/{use-skills-D62_cIP8.js → use-skills-DC7kl5ac.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-DtCFVak9.js → use-terminal-enabled-DrQnoA4t.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-CNjr3sGx.js → use-timeline-entry-diff-CJrnWWmE.js} +1 -1
- package/dist/public/assets/{use-workspace-CSyrLeU-.js → use-workspace-DeC16-uw.js} +1 -1
- package/dist/public/index.html +96 -96
- package/dist/public/uninstall.html +9 -9
- package/dist/{repair-launch-json-DtjpuzGD.mjs → repair-launch-json-DbQ8tRRg.mjs} +2 -2
- package/dist/{repair-mcp-configs-CpLZa5wm.mjs → repair-mcp-configs-B2bJ84nG.mjs} +2 -2
- package/dist/repair-skills-CfUnMV-w.mjs +4 -0
- package/dist/repair-skills-Zd1EgRWD.mjs +1 -0
- package/dist/server-lock-B_7-s4Ni.mjs +1 -0
- package/dist/{server-lock-BcMI7LPa.mjs → server-lock-Df6KzkHc.mjs} +2 -2
- package/dist/skill-teardown-D0apn5ZB.mjs +2 -0
- package/dist/src-0V35ESCr.mjs +2040 -0
- package/dist/{src-DwrBInPi.mjs → src-43mz6z1W.mjs} +1 -1
- package/dist/src-BMvWnBzf.mjs +1 -0
- package/dist/{src-D4Hs-xbj.mjs → src-DgQEuS4u.mjs} +124 -124
- package/dist/{src-DejcZdwi.mjs → src-M20Juao5.mjs} +4 -4
- package/dist/start-C-0SoHZT.mjs +12 -0
- package/dist/start-CF6VcJlJ.mjs +1 -0
- package/dist/{ui-CUazU4-N.mjs → ui-B6sInofo.mjs} +3 -3
- package/dist/{write-project-skill-CfZWfJ9i.mjs → write-project-skill-DoB0BMXQ.mjs} +2 -2
- package/package.json +5 -5
- package/dist/constants-Ca7s9E30.mjs +0 -2
- package/dist/git-handle-CJlm8-vo.mjs +0 -1
- package/dist/init-6BAlligb.mjs +0 -1
- package/dist/loader-D7TDgOWg.mjs +0 -1
- package/dist/md-manager-24J-gXbl.mjs +0 -2
- package/dist/preview-Czz8RxXF.mjs +0 -1
- package/dist/public/assets/FeedbackForm-DSzRwYUY.js +0 -1
- package/dist/public/assets/GraphPanel-DJOSWtaU.js +0 -44
- package/dist/public/assets/ManagedArtifactProperties-BxqYq-vz.js +0 -1
- package/dist/public/assets/i18n-C6bWJ3KG.js +0 -1
- package/dist/public/assets/index-7uIH663t.js +0 -2095
- package/dist/public/assets/target-navigation-intent-CEKXRok6.js +0 -1
- package/dist/repair-skills-50iK_FZu.mjs +0 -1
- package/dist/repair-skills-VOh2bl4b.mjs +0 -4
- package/dist/server-lock-DKpfiw3g.mjs +0 -1
- package/dist/skill-teardown-BgZauNrL.mjs +0 -2
- package/dist/src-Biqy_5j-.mjs +0 -1
- package/dist/src-DlyTtkF7.mjs +0 -2040
- package/dist/start-CdldmqUl.mjs +0 -12
- package/dist/start-CuS_0ULJ.mjs +0 -1
- /package/dist/public/assets/{asset-dispatch-D3iE-ozy.js → asset-dispatch-CD6rGcnF.js} +0 -0
- /package/dist/public/assets/{auth-prompt-store-CGGURy6q.js → auth-prompt-store-B25Qo1Wd.js} +0 -0
- /package/dist/public/assets/{badge-9YSkJvX1.js → badge-I_vhU4ix.js} +0 -0
- /package/dist/public/assets/{copilot-CArBqDJb.js → copilot-yXSa3JY-.js} +0 -0
- /package/dist/public/assets/{cursor-57XyUT4e.js → cursor-Dp3I7a4x.js} +0 -0
- /package/dist/public/assets/{dist-CKTV8VhP.js → dist-DUigN4NY.js} +0 -0
- /package/dist/public/assets/{documents-fetch-CmKHzzyC.js → documents-fetch-BUP_UXnp.js} +0 -0
- /package/dist/public/assets/{external-link-D2rJDkPo.js → external-link-DGqXfQJy.js} +0 -0
- /package/dist/public/assets/{field-qO40YP0i.js → field-DpnmTdW9.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-CA8wJBtP.js → file-tree-rename-validation-Dnm9G3PU.js} +0 -0
- /package/dist/public/assets/{info-t9FlqODl.js → info-DmvKnBgp.js} +0 -0
- /package/dist/public/assets/{input-BOZIAwC9.js → input-lp6-d0mX.js} +0 -0
- /package/dist/public/assets/{list-plus-BNMN-4Q1.js → list-plus-CT84Vd_h.js} +0 -0
- /package/dist/public/assets/{minus-Bb6js_J8.js → minus-CeGy7JpL.js} +0 -0
- /package/dist/public/assets/{miss-dialog-store-DjHIi4SB.js → miss-dialog-store-CveL5d4F.js} +0 -0
- /package/dist/public/assets/{panel-BuHp9NtA.js → panel-DzcaKH-k.js} +0 -0
- /package/dist/public/assets/{panel-right-open-BOkLqn79.js → panel-right-open-DjTdbkpr.js} +0 -0
- /package/dist/public/assets/{paperclip-4cjxtiAW.js → paperclip-qucBdEp9.js} +0 -0
- /package/dist/public/assets/{refresh-cw-GfxaObdQ.js → refresh-cw-CcQnr_fh.js} +0 -0
- /package/dist/public/assets/{skeleton-BOVIbSHk.js → skeleton-D4wPMdlV.js} +0 -0
- /package/dist/public/assets/{spinner-BSwGtQmT.js → spinner-BxJv3FRl.js} +0 -0
- /package/dist/public/assets/{square-pen-CWk8tSV9.js → square-pen-NShYDQ74.js} +0 -0
- /package/dist/public/assets/{startup-marks-keinYBPT.js → startup-marks-oOFRcumX.js} +0 -0
- /package/dist/public/assets/{stex-C-5D68LN.js → stex-CT86a3ly.js} +0 -0
- /package/dist/public/assets/{terminal-CGKubt36.js → terminal-DbJygh5J.js} +0 -0
- /package/dist/public/assets/{trash-2-Cb2kofzK.js → trash-2-Co21mefL.js} +0 -0
- /package/dist/public/assets/{triangle-alert-C2LwEy6p.js → triangle-alert-CRXAJBn4.js} +0 -0
- /package/dist/public/assets/{undo-2-DaH8BFfI.js → undo-2-DAbhEXY-.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-BiKNpdXV.js → use-installed-clis-DZ3aSVtd.js} +0 -0
- /package/dist/public/assets/{wrench-WVdwk1J-.js → wrench-Pum_Z20m.js} +0 -0
- /package/dist/public/assets/{x-B63yPb4s.js → x-DddVxTPq.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{Er as t,Or as n,bn as r,cn as i,ir as a,jr as o,lr as s,nn as c,rr as l,vn as u}from"./DocumentContext-DRQjwAk8.js";import{n as d,r as f}from"./dist-Nvb76hAm.js";import{t as p}from"./compiler-runtime-BfE3aGVn.js";import{c as m}from"./local-menu-action-bus-Cypryz6Z.js";import{t as h}from"./utils-CPqDy6Hr.js";import{t as g}from"./button-CA0dewJJ.js";import{i as _,n as ee,t as te}from"./tooltip-DHXgxWLL.js";import{nt as v}from"./CodeMirrorPropInput-BcWeEej4.js";import{Dn as y,On as b,Un as x,Wn as S,bi as C,or as w}from"./dist-Dbif8qVU.js";import{t as T}from"./dist-DUfEoSbR.js";import{n as E}from"./dist-B6jB2qbD2.js";import{t as ne}from"./createLucideIcon-Bhw2PmPp.js";import{t as re}from"./x-B63yPb4s.js";import{f as ie}from"./doc-paths-FbLt7pOZ.js";var D=ne(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),O=p(),k=`245,158,11`,ae=k,oe={fill:.22,line:.7},A={fill:.45,line:1},se=.45;function ce(e,t){let n=ae,{fill:r,line:i}=t?A:oe;return[`border-radius:2px`,`padding-bottom:1px`,...e.id===null?[]:[`cursor:pointer`],`background-color:rgba(${n},${r})`,`box-shadow:inset 0 -2px 0 rgba(${n},${i})`,``].join(`;`)}function j(e){return e.map(e=>e.id??`·`).join(`|`)}function le(e){let t=null;for(let n of e)n.id!==null&&(t===null||n.to-n.from<t.to-t.from)&&(t=n);return t?.id??null}function ue(e,t){return e.id===null||e.id===t}function de(e,t=null){let n=[...e].filter(e=>e.from<e.to).sort((e,t)=>e.from-t.from||e.to-t.to||(e.id??``).localeCompare(t.id??``));if(n.length===0)return[];let r=[...new Set(n.flatMap(e=>[e.from,e.to]))].sort((e,t)=>e-t),i=[],a=null,o=()=>{if(a===null)return;let e=a.covering.find(e=>ue(e,t));i.push({from:a.from,to:a.to,style:ce(e??a.covering[0],e!==void 0),threadId:le(a.covering)}),a=null};for(let e=0;e<r.length-1;e++){let t=r[e],i=r[e+1],s=n.filter(e=>e.from<=t&&e.to>=i);if(s.length===0){o();continue}if(a!==null&&a.to===t&&j(a.covering)===j(s)){a.to=i;continue}o(),a={from:t,to:i,covering:s}}return o(),i}var M=`data-comment-reveal`;function N(e){return typeof CSS<`u`&&CSS.escape?CSS.escape(e):e}function P(e){return e===``?null:document.querySelector(`[data-testid="property-row"][data-key="${N(e)}"]`)}function fe(e){let t=P(e);if(t===null)return null;let n=t.getBoundingClientRect();return n.height===0&&n.width===0?null:n}function pe(e){P(e)?.scrollIntoView({block:`center`,behavior:`smooth`})}function F(e){if(e.quote===``)return!1;let t=e.path.length===0?e.key:e.path[e.path.length-1],n=Array.from(document.querySelectorAll(`[data-testid="property-row"][data-key="${N(String(t))}"]`)),r=Array.from(document.querySelectorAll(`[data-testid="property-row"]`));for(let t of[...n,...r]){let n=t.querySelector(`textarea, input`);if(n===null)continue;let r=I(n.value,e.quote,e.start,e.end);if(r!==null)return t.scrollIntoView({block:`center`,behavior:`smooth`}),n.focus(),n.setSelectionRange(r.start,r.end),me(n),!0}return!1}function I(e,t,n,r){if(n!==void 0&&r!==void 0&&e.slice(n,r)===t)return{start:n,end:r};let i=e.indexOf(t);return i<0?null:{start:i,end:i+t.length}}function me(e){e.style.setProperty(`--comment-reveal-fill`,`rgba(${k},${se})`),e.setAttribute(M,`true`);let t=()=>{e.removeAttribute(M),e.style.removeProperty(`--comment-reveal-fill`)};e.addEventListener(`blur`,t,{once:!0}),e.addEventListener(`pointerdown`,t,{once:!0}),e.addEventListener(`keydown`,t,{once:!0})}function L(e,{includeBlockComponents:t=!1}={}){let n=``,r=[];return e.descendants((e,i)=>{if(e.isText&&e.text){for(let t=0;t<e.text.length;t++)n+=e.text[t],r.push(i+t);return!0}if(e.isBlock&&!t)return!0;let a=y(e);if(a.length>0){let t=i+e.nodeSize-1;for(let e=0;e<a.length;e++)n+=a[e],r.push(e===a.length-1?t:i)}return!0}),{text:n,positions:r}}function R(e,t){let n=[];if(t===``)return n;let r=e.indexOf(t);for(;r!==-1;)n.push(r),r=e.indexOf(t,r+1);return n}function z(e,t,n){let r=n?.prefix??``,i=n?.suffix??``;if(r===``&&i===``)return null;let a=r===``?[0]:w(e,r,{syntaxIn:`needle`}).map(e=>e.end),o=i===``?[e.length]:w(e,i,{syntaxIn:`needle`}).map(e=>e.start);if(a.length!==1||o.length!==1)return null;let s=a[0],c=o[0];for(;s<c&&/\s/.test(e[s]??``);)s+=1;for(;c>s&&/\s/.test(e[c-1]??``);)--c;if(c<=s)return null;let l=C(t.length);return c-s>l?null:{start:s,end:c}}function B(e,t){let n=e.positions[t.start],r=e.positions[t.end-1];return n==null||r==null?null:{from:n,to:r+1}}function V(e,t,n){if(t.length===0)return null;let r=R(e.text,t).map(e=>({start:e,end:e+t.length}));if(r.length===0&&(r=w(e.text,t,{syntaxIn:`needle`})),r.length===0){let r=z(e.text,t,n);return r===null?null:B(e,r)}let i=n?.prefix??``,a=n?.suffix??``,o=t=>e.text.includes(t)||w(e.text,t,{syntaxIn:`needle`}).length>0;if(i!==``&&a!==``&&!o(i+t+a)&&o(i+a))return null;let s=x({prefix:i,suffix:a},{syntaxInContext:!0}),c=t=>s===0||S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0})>=s;if(r.length===1){if(!c(r[0])){let r=z(e.text,t,n);return r===null?null:B(e,r)}return B(e,r[0])}let l=[],u=-1;for(let t of r){let n=S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0});n>u?(u=n,l=[t]):n===u&&l.push(t)}if(!c(l[0])){let r=z(e.text,t,n);return r===null?null:B(e,r)}return B(e,l[0])}var H=64;function he(e,t,n){return{prefix:b(e,Math.max(0,t-H),t),suffix:b(e,n,Math.min(e.content.size,n+H))}}function U(e,t,n){return W(e)(t,n)}function W(e){let t=L(e),n=null;return(r,i)=>{let a=V(t,r,i);return a===null?(n??=L(e,{includeBlockComponents:!0}),V(n,r,i)):a}}var ge=220,_e=24,ve=600;function G(e,t){return i(e,()=>{let n=c(e);t(),window.setTimeout(()=>n.release(),ve)})}function ye(e){let t=e.viewTop+e.insetTop,n=e.viewBottom-ge;return e.anchorTop>=t&&e.anchorBottom<=n?0:e.anchorTop-(t+_e)}function K(e){let t=e?.parentElement??null;for(;t;){let e=getComputedStyle(t).overflowY;if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return null}function q(e){let t=Number.parseFloat(getComputedStyle(e).scrollPaddingTop);return Number.isFinite(t)?t:0}function J(e,t,n,r){let i=v(e);if(!i)return!1;let a=K(i.dom);if(!a)return G(n,()=>e.commands.scrollIntoView());let o,s;try{o=i.coordsAtPos(t.from),s=i.coordsAtPos(t.to)}catch{return!1}let c=a.getBoundingClientRect(),l=ye({anchorTop:o.top,anchorBottom:Math.max(o.bottom,s.bottom),viewTop:c.top,viewBottom:c.bottom,insetTop:q(a)});if(l===0)return!0;let u=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;return G(n,()=>a.scrollTo({top:a.scrollTop+l,behavior:r?.instant||u?`auto`:`smooth`}))}var be=1e4,xe=80,Se=1500,Y=[`wheel`,`touchstart`,`mousedown`,`keydown`];function Ce(e){let t=!1,n=null,i=null,s=-1,c=()=>{let r=u(e.docName);if(!r||r.isDestroyed)return!1;if(t||(t=!0,l(e.threadId)),e.quote===``)return n===null&&(n=Date.now(),a(e.threadId)),!0;let o=r.state.doc.content.size;return(i===null||o!==s)&&(i=U(r.state.doc,e.quote,e.context),s=o),!i||!J(r,i,e.docName,{instant:!0})?!1:(n===null&&(n=Date.now(),a(e.threadId)),!0)};o(`comments`),c(),u(e.docName)===null&&window.location.assign(ie(e.docName));let d=!1,f=()=>{if(!d){d=!0,h(),window.clearInterval(g),window.clearTimeout(_);for(let e of Y)window.removeEventListener(e,p,!0)}},p=()=>f(),m=()=>{c()&&n!==null&&Date.now()-n>=Se&&f()},h=r(m),g=window.setInterval(m,xe),_=window.setTimeout(()=>{n===null&&E.error(t?T._({id:`KeXgA-`}):T._({id:`JDQ5I5`})),f()},be);for(let e of Y)window.addEventListener(e,p,!0);m()}var X=e();function we(){return t().length}function Te(){let e=(0,O.c)(4),n=t(),r;if(e[0]!==n){r=new Map;for(let e of n){let t=s(e)?.docName;t!==void 0&&r.set(t,(r.get(t)??0)+1)}e[0]=n,e[1]=r}else r=e[1];let i;return e[2]===r?i=e[3]:(i=[...r].map(Ee),e[2]=r,e[3]=i),i}function Ee(e){let[t,n]=e;return{docName:t,count:n}}function De(e){let t=(0,O.c)(34),{count:n,docs:r,attached:i,onAttach:a,onDismiss:o}=e,s;t[0]===r?s=t[1]:(s=r===void 0?[]:r,t[0]=r,t[1]=s);let c=s,{_:l}=f();if(n===0)return null;if(!i){let e;t[2]===l?e=t[3]:(e=l({id:`UpOct_`}),t[2]=l,t[3]=e);let n,r,i;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=h(`h-auto min-h-0 gap-1 rounded-md border border-dashed bg-transparent px-1.5 py-0.5`,`text-xs font-normal text-muted-foreground hover:bg-muted/60 hover:text-foreground`),r=(0,X.jsx)(m,{className:`size-3`}),i=(0,X.jsx)(d,{id:`VbyRUy`}),t[4]=n,t[5]=r,t[6]=i):(n=t[4],r=t[5],i=t[6]);let o;return t[7]!==a||t[8]!==e?(o=(0,X.jsxs)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-pressed":!1,"aria-label":e,onClick:a,"data-testid":`composer-context-chip-comments`,className:n,children:[r,i]}),t[7]=a,t[8]=e,t[9]=o):o=t[9],o}let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=h(`inline-flex items-center gap-1 rounded-md border bg-muted/60 py-0.5 pr-0.5 pl-1.5`,`text-xs text-muted-foreground`),t[10]=u):u=t[10];let p;t[11]===l?p=t[12]:(p=l({id:`2zvUIK`}),t[11]=l,t[12]=p);let v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,X.jsx)(D,{className:`size-3`}),t[13]=v):v=t[13];let y;t[14]!==n||t[15]!==c.length?(y=c.length>1?(0,X.jsx)(d,{id:`5TmrYN`,values:{0:c.length,count:n}}):(0,X.jsx)(d,{id:`eiUA4k`,values:{count:n}}),t[14]=n,t[15]=c.length,t[16]=y):y=t[16];let b;t[17]!==p||t[18]!==y?(b=(0,X.jsx)(_,{asChild:!0,children:(0,X.jsxs)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":p,onClick:ke,"data-testid":`composer-comments-open-panel`,className:`h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground`,children:[v,y]})}),t[17]=p,t[18]=y,t[19]=b):b=t[19];let x;t[20]===c?x=t[21]:(x=(0,X.jsx)(ee,{className:`max-w-64`,children:c.length>1?(0,X.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:c.map(Oe)}):(0,X.jsx)(d,{id:`2zvUIK`})}),t[20]=c,t[21]=x);let S;t[22]!==b||t[23]!==x?(S=(0,X.jsxs)(te,{children:[b,x]}),t[22]=b,t[23]=x,t[24]=S):S=t[24];let C;t[25]===l?C=t[26]:(C=l({id:`pFRz_E`}),t[25]=l,t[26]=C);let w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,X.jsx)(re,{className:`size-3`}),t[27]=w):w=t[27];let T;t[28]!==o||t[29]!==C?(T=(0,X.jsx)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":C,onClick:o,className:`size-4 p-0 text-muted-foreground hover:text-foreground`,children:w}),t[28]=o,t[29]=C,t[30]=T):T=t[30];let E;return t[31]!==T||t[32]!==S?(E=(0,X.jsxs)(`span`,{"data-testid":`composer-context-chip-comments`,className:u,children:[S,T]}),t[31]=T,t[32]=S,t[33]=E):E=t[33],E}function Oe(e){return(0,X.jsxs)(`li`,{className:`flex items-baseline gap-1.5`,children:[(0,X.jsx)(`span`,{className:`tabular-nums`,children:e.count}),(0,X.jsx)(`span`,{className:`truncate`,children:Z(e.docName)})]},e.docName)}function ke(){return n()}function Z(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Ae(e,t){let n=e;for(let e of t)n+=typeof e==`number`?`[${e}]`:`.${e}`;return n}function je(e){Ce({docName:e.docName,quote:e.target.kind===`property`?``:e.anchor?.quote??``,threadId:e.id,context:e.anchor??void 0});let{target:t,anchor:n}=e;if(t.kind!==`property`||n===null)return;let r=0,i=()=>{F({key:t.key,path:t.path,quote:n.quote,start:n.start,end:n.end})||(r+=1,!(r>=Q)&&requestAnimationFrame(i))};requestAnimationFrame(i)}var Q=30;function Me(e){return{docName:e.docName,body:e.instruction,propertyKey:e.property,quote:e.passage?.exact??``,anchorLost:e.anchorLost,prefix:e.passage?.prefix??``,suffix:e.passage?.suffix??``,repeats:e.passageRepeats}}var $=48;function Ne(e){let t=e.replace(/\s+/g,` `).trimStart();return t.length>$?`…${t.slice(-$)}`:t}function Pe(e){let t=e.replace(/\s+/g,` `).trimEnd();return t.length>$?`${t.slice(0,$)}…`:t}function Fe(e){if(!e.repeats)return null;let t=Ne(e.prefix),n=Pe(e.suffix);return t===``&&n===``?null:`(This text appears more than once in the file. The one meant is ${t===``?`at the start of the file, followed by "${n}"`:n===``?`at the end of the file, preceded by "${t}"`:`between "${t}" and "${n}"`} — match that context rather than the first occurrence.)`}function Ie(e,t,n){let r=t.trim(),i=[];if(i.push(r.length>0?r:`Address the following review comments by editing the documents directly.`),i.push(``),i.push(e.length===1?`The comment:`:`The ${e.length} comments:`),e.forEach((e,t)=>{if(i.push(``),e.propertyKey){let n=e.quote.trim();if(n===``)i.push(`${t+1}. In \`${e.docName}\`, on the \`${e.propertyKey}\` property (frontmatter):`),i.push(``),i.push(` ${e.body.trim()}`);else{i.push(`${t+1}. In \`${e.docName}\`, on this text within the \`${e.propertyKey}\` property (frontmatter):`),i.push(``);for(let e of n.split(`
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{Er as t,Or as n,bn as r,cn as i,ir as a,jr as o,lr as s,nn as c,rr as l,vn as u}from"./DocumentContext-DiLKOxrG.js";import{n as d,r as f}from"./dist-Nvb76hAm.js";import{t as p}from"./compiler-runtime-BfE3aGVn.js";import{c as m}from"./local-menu-action-bus-Cypryz6Z.js";import{t as h}from"./utils-CPqDy6Hr.js";import{t as g}from"./button-CA0dewJJ.js";import{i as _,n as ee,t as te}from"./tooltip-DHXgxWLL.js";import{nt as v}from"./CodeMirrorPropInput-Co1ATmkY.js";import{Dn as y,On as b,Un as x,Wn as S,bi as C,or as w}from"./dist-C771h__g.js";import{t as T}from"./dist-DUfEoSbR.js";import{n as E}from"./dist-B6jB2qbD2.js";import{t as ne}from"./createLucideIcon-Bhw2PmPp.js";import{t as re}from"./x-DddVxTPq.js";import{f as ie}from"./doc-paths-D4mBEiVg.js";var D=ne(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),O=p(),k=`245,158,11`,ae=k,oe={fill:.22,line:.7},A={fill:.45,line:1},se=.45;function ce(e,t){let n=ae,{fill:r,line:i}=t?A:oe;return[`border-radius:2px`,`padding-bottom:1px`,...e.id===null?[]:[`cursor:pointer`],`background-color:rgba(${n},${r})`,`box-shadow:inset 0 -2px 0 rgba(${n},${i})`,``].join(`;`)}function j(e){return e.map(e=>e.id??`·`).join(`|`)}function le(e){let t=null;for(let n of e)n.id!==null&&(t===null||n.to-n.from<t.to-t.from)&&(t=n);return t?.id??null}function ue(e,t){return e.id===null||e.id===t}function de(e,t=null){let n=[...e].filter(e=>e.from<e.to).sort((e,t)=>e.from-t.from||e.to-t.to||(e.id??``).localeCompare(t.id??``));if(n.length===0)return[];let r=[...new Set(n.flatMap(e=>[e.from,e.to]))].sort((e,t)=>e-t),i=[],a=null,o=()=>{if(a===null)return;let e=a.covering.find(e=>ue(e,t));i.push({from:a.from,to:a.to,style:ce(e??a.covering[0],e!==void 0),threadId:le(a.covering)}),a=null};for(let e=0;e<r.length-1;e++){let t=r[e],i=r[e+1],s=n.filter(e=>e.from<=t&&e.to>=i);if(s.length===0){o();continue}if(a!==null&&a.to===t&&j(a.covering)===j(s)){a.to=i;continue}o(),a={from:t,to:i,covering:s}}return o(),i}var M=`data-comment-reveal`;function N(e){return typeof CSS<`u`&&CSS.escape?CSS.escape(e):e}function P(e){return e===``?null:document.querySelector(`[data-testid="property-row"][data-key="${N(e)}"]`)}function fe(e){let t=P(e);if(t===null)return null;let n=t.getBoundingClientRect();return n.height===0&&n.width===0?null:n}function pe(e){P(e)?.scrollIntoView({block:`center`,behavior:`smooth`})}function F(e){if(e.quote===``)return!1;let t=e.path.length===0?e.key:e.path[e.path.length-1],n=Array.from(document.querySelectorAll(`[data-testid="property-row"][data-key="${N(String(t))}"]`)),r=Array.from(document.querySelectorAll(`[data-testid="property-row"]`));for(let t of[...n,...r]){let n=t.querySelector(`textarea, input`);if(n===null)continue;let r=I(n.value,e.quote,e.start,e.end);if(r!==null)return t.scrollIntoView({block:`center`,behavior:`smooth`}),n.focus(),n.setSelectionRange(r.start,r.end),me(n),!0}return!1}function I(e,t,n,r){if(n!==void 0&&r!==void 0&&e.slice(n,r)===t)return{start:n,end:r};let i=e.indexOf(t);return i<0?null:{start:i,end:i+t.length}}function me(e){e.style.setProperty(`--comment-reveal-fill`,`rgba(${k},${se})`),e.setAttribute(M,`true`);let t=()=>{e.removeAttribute(M),e.style.removeProperty(`--comment-reveal-fill`)};e.addEventListener(`blur`,t,{once:!0}),e.addEventListener(`pointerdown`,t,{once:!0}),e.addEventListener(`keydown`,t,{once:!0})}function L(e,{includeBlockComponents:t=!1}={}){let n=``,r=[];return e.descendants((e,i)=>{if(e.isText&&e.text){for(let t=0;t<e.text.length;t++)n+=e.text[t],r.push(i+t);return!0}if(e.isBlock&&!t)return!0;let a=y(e);if(a.length>0){let t=i+e.nodeSize-1;for(let e=0;e<a.length;e++)n+=a[e],r.push(e===a.length-1?t:i)}return!0}),{text:n,positions:r}}function R(e,t){let n=[];if(t===``)return n;let r=e.indexOf(t);for(;r!==-1;)n.push(r),r=e.indexOf(t,r+1);return n}function z(e,t,n){let r=n?.prefix??``,i=n?.suffix??``;if(r===``&&i===``)return null;let a=r===``?[0]:w(e,r,{syntaxIn:`needle`}).map(e=>e.end),o=i===``?[e.length]:w(e,i,{syntaxIn:`needle`}).map(e=>e.start);if(a.length!==1||o.length!==1)return null;let s=a[0],c=o[0];for(;s<c&&/\s/.test(e[s]??``);)s+=1;for(;c>s&&/\s/.test(e[c-1]??``);)--c;if(c<=s)return null;let l=C(t.length);return c-s>l?null:{start:s,end:c}}function B(e,t){let n=e.positions[t.start],r=e.positions[t.end-1];return n==null||r==null?null:{from:n,to:r+1}}function V(e,t,n){if(t.length===0)return null;let r=R(e.text,t).map(e=>({start:e,end:e+t.length}));if(r.length===0&&(r=w(e.text,t,{syntaxIn:`needle`})),r.length===0){let r=z(e.text,t,n);return r===null?null:B(e,r)}let i=n?.prefix??``,a=n?.suffix??``,o=t=>e.text.includes(t)||w(e.text,t,{syntaxIn:`needle`}).length>0;if(i!==``&&a!==``&&!o(i+t+a)&&o(i+a))return null;let s=x({prefix:i,suffix:a},{syntaxInContext:!0}),c=t=>s===0||S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0})>=s;if(r.length===1){if(!c(r[0])){let r=z(e.text,t,n);return r===null?null:B(e,r)}return B(e,r[0])}let l=[],u=-1;for(let t of r){let n=S(e.text,t,{prefix:i,suffix:a},{syntaxIn:`none`,syntaxInContext:!0});n>u?(u=n,l=[t]):n===u&&l.push(t)}if(!c(l[0])){let r=z(e.text,t,n);return r===null?null:B(e,r)}return B(e,l[0])}var H=64;function he(e,t,n){return{prefix:b(e,Math.max(0,t-H),t),suffix:b(e,n,Math.min(e.content.size,n+H))}}function U(e,t,n){return W(e)(t,n)}function W(e){let t=L(e),n=null;return(r,i)=>{let a=V(t,r,i);return a===null?(n??=L(e,{includeBlockComponents:!0}),V(n,r,i)):a}}var ge=220,_e=24,ve=600;function G(e,t){return i(e,()=>{let n=c(e);t(),window.setTimeout(()=>n.release(),ve)})}function ye(e){let t=e.viewTop+e.insetTop,n=e.viewBottom-ge;return e.anchorTop>=t&&e.anchorBottom<=n?0:e.anchorTop-(t+_e)}function K(e){let t=e?.parentElement??null;for(;t;){let e=getComputedStyle(t).overflowY;if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return null}function q(e){let t=Number.parseFloat(getComputedStyle(e).scrollPaddingTop);return Number.isFinite(t)?t:0}function J(e,t,n,r){let i=v(e);if(!i)return!1;let a=K(i.dom);if(!a)return G(n,()=>e.commands.scrollIntoView());let o,s;try{o=i.coordsAtPos(t.from),s=i.coordsAtPos(t.to)}catch{return!1}let c=a.getBoundingClientRect(),l=ye({anchorTop:o.top,anchorBottom:Math.max(o.bottom,s.bottom),viewTop:c.top,viewBottom:c.bottom,insetTop:q(a)});if(l===0)return!0;let u=window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;return G(n,()=>a.scrollTo({top:a.scrollTop+l,behavior:r?.instant||u?`auto`:`smooth`}))}var be=1e4,xe=80,Se=1500,Y=[`wheel`,`touchstart`,`mousedown`,`keydown`];function Ce(e){let t=!1,n=null,i=null,s=-1,c=()=>{let r=u(e.docName);if(!r||r.isDestroyed)return!1;if(t||(t=!0,l(e.threadId)),e.quote===``)return n===null&&(n=Date.now(),a(e.threadId)),!0;let o=r.state.doc.content.size;return(i===null||o!==s)&&(i=U(r.state.doc,e.quote,e.context),s=o),!i||!J(r,i,e.docName,{instant:!0})?!1:(n===null&&(n=Date.now(),a(e.threadId)),!0)};o(`comments`),c(),u(e.docName)===null&&window.location.assign(ie(e.docName));let d=!1,f=()=>{if(!d){d=!0,h(),window.clearInterval(g),window.clearTimeout(_);for(let e of Y)window.removeEventListener(e,p,!0)}},p=()=>f(),m=()=>{c()&&n!==null&&Date.now()-n>=Se&&f()},h=r(m),g=window.setInterval(m,xe),_=window.setTimeout(()=>{n===null&&E.error(t?T._({id:`KeXgA-`}):T._({id:`JDQ5I5`})),f()},be);for(let e of Y)window.addEventListener(e,p,!0);m()}var X=e();function we(){return t().length}function Te(){let e=(0,O.c)(4),n=t(),r;if(e[0]!==n){r=new Map;for(let e of n){let t=s(e)?.docName;t!==void 0&&r.set(t,(r.get(t)??0)+1)}e[0]=n,e[1]=r}else r=e[1];let i;return e[2]===r?i=e[3]:(i=[...r].map(Ee),e[2]=r,e[3]=i),i}function Ee(e){let[t,n]=e;return{docName:t,count:n}}function De(e){let t=(0,O.c)(34),{count:n,docs:r,attached:i,onAttach:a,onDismiss:o}=e,s;t[0]===r?s=t[1]:(s=r===void 0?[]:r,t[0]=r,t[1]=s);let c=s,{_:l}=f();if(n===0)return null;if(!i){let e;t[2]===l?e=t[3]:(e=l({id:`UpOct_`}),t[2]=l,t[3]=e);let n,r,i;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(n=h(`h-auto min-h-0 gap-1 rounded-md border border-dashed bg-transparent px-1.5 py-0.5`,`text-xs font-normal text-muted-foreground hover:bg-muted/60 hover:text-foreground`),r=(0,X.jsx)(m,{className:`size-3`}),i=(0,X.jsx)(d,{id:`VbyRUy`}),t[4]=n,t[5]=r,t[6]=i):(n=t[4],r=t[5],i=t[6]);let o;return t[7]!==a||t[8]!==e?(o=(0,X.jsxs)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-pressed":!1,"aria-label":e,onClick:a,"data-testid":`composer-context-chip-comments`,className:n,children:[r,i]}),t[7]=a,t[8]=e,t[9]=o):o=t[9],o}let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=h(`inline-flex items-center gap-1 rounded-md border bg-muted/60 py-0.5 pr-0.5 pl-1.5`,`text-xs text-muted-foreground`),t[10]=u):u=t[10];let p;t[11]===l?p=t[12]:(p=l({id:`2zvUIK`}),t[11]=l,t[12]=p);let v;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,X.jsx)(D,{className:`size-3`}),t[13]=v):v=t[13];let y;t[14]!==n||t[15]!==c.length?(y=c.length>1?(0,X.jsx)(d,{id:`5TmrYN`,values:{0:c.length,count:n}}):(0,X.jsx)(d,{id:`eiUA4k`,values:{count:n}}),t[14]=n,t[15]=c.length,t[16]=y):y=t[16];let b;t[17]!==p||t[18]!==y?(b=(0,X.jsx)(_,{asChild:!0,children:(0,X.jsxs)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":p,onClick:ke,"data-testid":`composer-comments-open-panel`,className:`h-auto min-h-0 gap-1 px-0.5 py-0 text-xs font-normal text-muted-foreground hover:text-foreground`,children:[v,y]})}),t[17]=p,t[18]=y,t[19]=b):b=t[19];let x;t[20]===c?x=t[21]:(x=(0,X.jsx)(ee,{className:`max-w-64`,children:c.length>1?(0,X.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:c.map(Oe)}):(0,X.jsx)(d,{id:`2zvUIK`})}),t[20]=c,t[21]=x);let S;t[22]!==b||t[23]!==x?(S=(0,X.jsxs)(te,{children:[b,x]}),t[22]=b,t[23]=x,t[24]=S):S=t[24];let C;t[25]===l?C=t[26]:(C=l({id:`pFRz_E`}),t[25]=l,t[26]=C);let w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,X.jsx)(re,{className:`size-3`}),t[27]=w):w=t[27];let T;t[28]!==o||t[29]!==C?(T=(0,X.jsx)(g,{type:`button`,size:`sm`,variant:`ghost`,"aria-label":C,onClick:o,className:`size-4 p-0 text-muted-foreground hover:text-foreground`,children:w}),t[28]=o,t[29]=C,t[30]=T):T=t[30];let E;return t[31]!==T||t[32]!==S?(E=(0,X.jsxs)(`span`,{"data-testid":`composer-context-chip-comments`,className:u,children:[S,T]}),t[31]=T,t[32]=S,t[33]=E):E=t[33],E}function Oe(e){return(0,X.jsxs)(`li`,{className:`flex items-baseline gap-1.5`,children:[(0,X.jsx)(`span`,{className:`tabular-nums`,children:e.count}),(0,X.jsx)(`span`,{className:`truncate`,children:Z(e.docName)})]},e.docName)}function ke(){return n()}function Z(e){let t=e.lastIndexOf(`/`);return t>=0?e.slice(t+1):e}function Ae(e,t){let n=e;for(let e of t)n+=typeof e==`number`?`[${e}]`:`.${e}`;return n}function je(e){Ce({docName:e.docName,quote:e.target.kind===`property`?``:e.anchor?.quote??``,threadId:e.id,context:e.anchor??void 0});let{target:t,anchor:n}=e;if(t.kind!==`property`||n===null)return;let r=0,i=()=>{F({key:t.key,path:t.path,quote:n.quote,start:n.start,end:n.end})||(r+=1,!(r>=Q)&&requestAnimationFrame(i))};requestAnimationFrame(i)}var Q=30;function Me(e){return{docName:e.docName,body:e.instruction,propertyKey:e.property,quote:e.passage?.exact??``,anchorLost:e.anchorLost,prefix:e.passage?.prefix??``,suffix:e.passage?.suffix??``,repeats:e.passageRepeats}}var $=48;function Ne(e){let t=e.replace(/\s+/g,` `).trimStart();return t.length>$?`…${t.slice(-$)}`:t}function Pe(e){let t=e.replace(/\s+/g,` `).trimEnd();return t.length>$?`${t.slice(0,$)}…`:t}function Fe(e){if(!e.repeats)return null;let t=Ne(e.prefix),n=Pe(e.suffix);return t===``&&n===``?null:`(This text appears more than once in the file. The one meant is ${t===``?`at the start of the file, followed by "${n}"`:n===``?`at the end of the file, preceded by "${t}"`:`between "${t}" and "${n}"`} — match that context rather than the first occurrence.)`}function Ie(e,t,n){let r=t.trim(),i=[];if(i.push(r.length>0?r:`Address the following review comments by editing the documents directly.`),i.push(``),i.push(e.length===1?`The comment:`:`The ${e.length} comments:`),e.forEach((e,t)=>{if(i.push(``),e.propertyKey){let n=e.quote.trim();if(n===``)i.push(`${t+1}. In \`${e.docName}\`, on the \`${e.propertyKey}\` property (frontmatter):`),i.push(``),i.push(` ${e.body.trim()}`);else{i.push(`${t+1}. In \`${e.docName}\`, on this text within the \`${e.propertyKey}\` property (frontmatter):`),i.push(``);for(let e of n.split(`
|
|
2
2
|
`))i.push(` > ${e}`);i.push(``),i.push(` ${e.body.trim()}`)}e.anchorLost&&(i.push(``),i.push(n===``?` (Note: \`${e.propertyKey}\` is no longer in this document's frontmatter — it was renamed or removed since the comment was written. Do not apply this to a different property; if you cannot tell what it now refers to, say so instead of guessing.)`:` (Note: that text is no longer in \`${e.propertyKey}\` — the value was edited, reshaped, or removed since the comment was written. Do not apply this to a different property or a different part of the value; if you cannot tell what it now refers to, say so instead of guessing.)`));return}i.push(`${t+1}. In \`${e.docName}\`, on this passage:`),i.push(``);for(let t of e.quote.split(`
|
|
3
3
|
`))i.push(` > ${t}`);i.push(``),i.push(` ${e.body.trim()}`);let n=Fe(e);n!==null&&(i.push(``),i.push(` ${n}`)),e.anchorLost&&(i.push(``),i.push(` (Note: this passage is no longer in the document — it was edited or removed since the comment was written. Do not apply this to a different passage; if you cannot tell what it now refers to, say so instead of guessing.)`))}),n&&n.markdown.trim().length>0){i.push(``),i.push(`Also in scope, selected in \`${n.docName}\` (not a comment):`),i.push(``);for(let e of n.markdown.trim().split(`
|
|
4
4
|
`))i.push(`> ${e}`)}return i.join(`
|