@inkeep/open-knowledge 0.84.0-beta.3 → 0.84.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +6 -6
- package/dist/constants-DVqvzhbh.mjs +1 -0
- package/dist/{dist-BGJh5L15.mjs → dist-BWAvfDuW.mjs} +1 -1
- package/dist/{dist-Bxhfiafh.mjs → dist-C01O4iH2.mjs} +501 -501
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{init-DGuKwx2e.mjs → init-BxVdZi-q.mjs} +2 -2
- package/dist/init-CflGUOQW.mjs +1 -0
- package/dist/{launch-json-removal-BoLnWuw8.mjs → launch-json-removal-DCpJPTRd.mjs} +1 -1
- package/dist/loader-BBciDpto.mjs +1 -0
- package/dist/{loader-CwnBJ5G_.mjs → loader-D8c6sLKH.mjs} +1 -1
- package/dist/{open-browser-OupsHA1M.mjs → open-browser-etXAlZ_w.mjs} +1 -1
- package/dist/{preview-BStZha-C.mjs → preview-B6BmcZp2.mjs} +1 -1
- package/dist/preview-Olt-dcII.mjs +1 -0
- package/dist/public/assets/{AccountSection-BsoknTRm.js → AccountSection-BQs9T7Qi.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-DZbyWBlo.js → ActivityModeContent-DUZhyjXJ.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-DvtOOL5J.js → AddPropertiesButton-BYfH1-WT.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-D_gmSJG4.js → AgentConnectionsSection-o3ST7BQH.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-D9olUVts.js → AgentDiffPane-Bbzn3FVb.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-BRpsTDMH.js → AgentIconCluster-BeSduTM5.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-BTlP3z2T.js → AgentThreadClientBinder-DcCQm7Nm.js} +1 -1
- package/dist/public/assets/AppMenubar-Dgz756Er.js +1 -0
- package/dist/public/assets/{AttachmentsSection-DdqsNOtE.js → AttachmentsSection-DUlkIP4l.js} +1 -1
- package/dist/public/assets/{AuthModal-CkHLmy_N.js → AuthModal-oJIksUwH.js} +1 -1
- package/dist/public/assets/{BugReportHistory-BPO915fE.js → BugReportHistory-B0y8PoGi.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-CY6vlR_h.js → BugReportHistoryDialog-Dqm3l3bd.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BTCkQ8gy.js → CodeMirrorPropInput-Drb1OUJC.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-CGhUvR3J.js → ConsentDialogBody-TWGdET4r.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-BPc0bEex.js → ContentRulesSection-LsFc1XAM.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-BVzts2c4.js → DiffViewBoundary-CQwFsSb2.js} +1 -1
- package/dist/public/assets/{DocumentContext-Cgpe7PUq.js → DocumentContext-Dkr34TWR.js} +1 -1
- package/dist/public/assets/{EditorModeToggle-8PbuUKPX.js → EditorModeToggle-Do7kGUFS.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-DPjKh0Z6.js → ExcalidrawDocEditor-madW2o5c.js} +1 -1
- package/dist/public/assets/FeedbackForm-DgHrtWvi.js +1 -0
- package/dist/public/assets/{GraphPanel-COpuyFxT.js → GraphPanel-B5Mg9hLe.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-BRMCNFIO.js → ImportSkillDialog-DQlC1UVZ.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-DrVzxhzA.js → LinkPreviewsSection-BGwx2pBe.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-CYgb3HLw.js → LintConfigEditor-CnJnzFnT.js} +1 -1
- package/dist/public/assets/{LintingSection-DwEExyYA.js → LintingSection-Bz-f01q8.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-Cejw-D7l.js → ManagedArtifactProperties-BRRc9Nck.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-CRowlH3M.js +1 -0
- package/dist/public/assets/{MermaidDocEditor-TV8MQtbb.js → MermaidDocEditor-D00SA4S5.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-G-tyEPOW.js → NetworkAccessSection-BrQ04PAl.js} +1 -1
- package/dist/public/assets/{OkignoreSection-DUIPj4Vl.js → OkignoreSection-B65Debem.js} +1 -1
- package/dist/public/assets/{PageListContext-CYKNvec7.js → PageListContext-CLm_fRR9.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-Ctdx9_AL.js → ProjectTemplatesSection-Cgz1Gipq.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-DULpBoN1.js → PropertyDisplayRow-CejfREf8.js} +1 -1
- package/dist/public/assets/{PublishToGitHubDialog-BcpO5RKl.js → PublishToGitHubDialog-C3G5gU4a.js} +1 -1
- package/dist/public/assets/{RegisteredAgentIcon-Begcc-nC.js → RegisteredAgentIcon-CWqSvSAf.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-CPjEs_zr.js → ReportBugDialogBody-xJE9h5I4.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-DwuaKFu1.js → ReportBugMenuTrigger-BcNRdrQT.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-D79vqFmf.js → SchemaConfigEditor-DfNwto81.js} +1 -1
- package/dist/public/assets/{SearchSection-Dx8-C7aO.js → SearchSection-6N-xV3m6.js} +1 -1
- package/dist/public/assets/{SessionsHost-DhB6vMF-.js → SessionsHost-Dt0YX7e4.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-BmlfRDFb.js → SettingsDialogBody-CX3cuu2A.js} +2 -2
- package/dist/public/assets/{ShareReceiveMissDialog-0PE01E7W.js → ShareReceiveMissDialog-bUB0ammT.js} +1 -1
- package/dist/public/assets/{SkillCostValue-Bajv3P86.js → SkillCostValue-tiv0OMS7.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-B0ZxQBAN.js → SkillEditBanner-CwGW7u29.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-BKGY1iRx.js → SkillForkDialog-HDotxj-S.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-CuOKJ4_n.js → SkillInstallMenu-syd5rOWa.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-BrUb4Fgy.js → SkillOriginInline-ek2j3kre.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-CT26YXuL.js → SkillToolbarControls-Cs2gtZl9.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-dqXRCM3C.js → SkillsManagerSection-C6lWLXvH.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-D-0pa5F-.js → SlidesToolbarControls-5WOf5-kU.js} +1 -1
- package/dist/public/assets/{SourceEditor-DghQVHvX.js → SourceEditor-DCI5wuU2.js} +1 -1
- package/dist/public/assets/{SpellingSettings-C3y5UjRC.js → SpellingSettings-AV7ODzdq.js} +1 -1
- package/dist/public/assets/{SyncSection-DmMPCcrO.js → SyncSection-Dy1x052n.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-7CGaFHUk.js → SyncStatusBadge-CI4kJKJz.js} +1 -1
- package/dist/public/assets/{TemplateRow-C8tLmbrb.js → TemplateRow-CKPSBcvy.js} +1 -1
- package/dist/public/assets/{TerminalLaunchContext-58PQDilg.js → TerminalLaunchContext-DgUTkKSb.js} +1 -1
- package/dist/public/assets/{TerminalPanel-DOYDhObX.js → TerminalPanel-BarBipqm.js} +1 -1
- package/dist/public/assets/{TerminalSection-BBA8y3S1.js → TerminalSection-DhkctuaS.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-DFmcq1vG.js → TerminalWindowApp-BiHTk4jD.js} +1 -1
- package/dist/public/assets/{TextDocEditor-DxghXof_.js → TextDocEditor-MTT9X-UX.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-rW_Rhi3t.js → ThemePluginSection-Bmm0ezpW.js} +1 -1
- package/dist/public/assets/{ThreadView-BcdaDwyX.js → ThreadView-CTTrHNJC.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-DbgES6nK.js → TimelineDiffPane-q_M_-BhG.js} +1 -1
- package/dist/public/assets/{agent-connections-Bc1t_U_m.js → agent-connections-7wgDgnqZ.js} +1 -1
- package/dist/public/assets/{agent-registry-3ko3YkCm.js → agent-registry-Cs85mdZV.js} +1 -1
- package/dist/public/assets/{bridge-BqL-1MyE.js → bridge-Jy9bpSqg.js} +1 -1
- package/dist/public/assets/{card-CHd8wMSS.js → card-BDi8CQBG.js} +1 -1
- package/dist/public/assets/{catalog-nXBoyoEn.js → catalog-Fc3slEfq.js} +1 -1
- package/dist/public/assets/{comment-chips-D7PAXgFJ.js → comment-chips-CoLxBx92.js} +1 -1
- package/dist/public/assets/{config-errors-DCSQBhyj.js → config-errors-DnAsM78K.js} +1 -1
- package/dist/public/assets/{config-provider-DBgrt1kx.js → config-provider-DXmc67dU.js} +1 -1
- package/dist/public/assets/config-schema-D59L2aVm.js +1 -0
- package/dist/public/assets/{constants-editors-05BNhhVl.js → constants-editors-bLWf6BtK.js} +1 -1
- package/dist/public/assets/{constants-product-DhAo-666.js → constants-product-tr6vTp-D.js} +1 -1
- package/dist/public/assets/{css-color-to-hex-Dk3DSeEK.js → css-color-to-hex-C9tauY10.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-DGQuNlgn.js → doc-undo-manager-C_pnWJYM.js} +1 -1
- package/dist/public/assets/{documents-events-C04vpPEp.js → documents-events-DdFfHk7W.js} +1 -1
- package/dist/public/assets/field-controls-CKm3BgiK.js +1 -0
- package/dist/public/assets/{field-controls-BqsFU6aY.js → field-controls-hlVaDlD0.js} +1 -1
- package/dist/public/assets/{folder-config-api-bwKmZWh2.js → folder-config-api-CX9qXRQC.js} +1 -1
- package/dist/public/assets/{frontmatter-tags-B7FS--Ga.js → frontmatter-tags-CUlOAi99.js} +1 -1
- package/dist/public/assets/{index-C_8iI96N.js → index-DlH3oHvT.js} +19 -19
- package/dist/public/assets/{lint-config-client-C0cPUFg9.js → lint-config-client-Dris_9kn.js} +1 -1
- package/dist/public/assets/{lint-plugins-24yMjYos.js → lint-plugins-CINC49yJ.js} +1 -1
- package/dist/public/assets/{markdown-lint-DxrbxECW.js → markdown-lint-tXEf2MDv.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-C-vo_WXw.js → markdownlint-rule-browser-DQbNHswB.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-ge0q0US7.js → pending-receive-nav-store-Dx3tjU3M.js} +1 -1
- package/dist/public/assets/platform-labels-BPRIEv67.js +1 -0
- package/dist/public/assets/{preferred-session-events-DZS0rMoL.js → preferred-session-events-UCAyZlN5.js} +1 -1
- package/dist/public/assets/{progress-BXjvg4DI.js → progress-kP97a1rO.js} +1 -1
- package/dist/public/assets/{project-paths-B82COK8C.js → project-paths-4aL5STlX.js} +1 -1
- package/dist/public/assets/{restart-collab-server-C16c-Ep9.js → restart-collab-server-D2OLLel5.js} +1 -1
- package/dist/public/assets/{saved-themes-client-CmQnQ6kY.js → saved-themes-client-Cx7GJLm9.js} +1 -1
- package/dist/public/assets/{schema-section-eljmMDBb.js → schema-section-CVZJtaH2.js} +1 -1
- package/dist/public/assets/{schemas-api-BM3O7zA1.js → schemas-api-JUnildTL.js} +1 -1
- package/dist/public/assets/{schemas-cc1-hKlHTZpE.js → schemas-cc1-By47OR1C.js} +1 -1
- package/dist/public/assets/{selection-context-C68gF2Oq.js → selection-context-C6c6vB_u.js} +1 -1
- package/dist/public/assets/{sign-in-terminal-events-Uy8J-zPE.js → sign-in-terminal-events-DfMaOZjE.js} +1 -1
- package/dist/public/assets/{skill-scope-CxuIje2Y.js → skill-scope-qLtpopQG.js} +1 -1
- package/dist/public/assets/{skill-targets-schema-BqGbUdGW.js → skill-targets-schema-BX4GqOjw.js} +1 -1
- package/dist/public/assets/{skills-api-Cwv39pKK.js → skills-api-DFdWVDY1.js} +1 -1
- package/dist/public/assets/{src-COG_7U42.js → src-DmaohtEC.js} +1 -1
- package/dist/public/assets/storage-scope-BI-jwbPM.js +1 -0
- package/dist/public/assets/{tag-pill-input-DoehfrBo.js → tag-pill-input-4ndm7-qi.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-vPUm3fxK.js → terminal-launch-events-qwe1BiG1.js} +1 -1
- package/dist/public/assets/{thread-client-BoGcOSf9.js → thread-client-B4wfB-2h.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-BKuWOIaA.js → typing-burst-detector-DrGckpC8.js} +1 -1
- package/dist/public/assets/{use-activity-panel-BgzoGLEn.js → use-activity-panel-CkJrJb3b.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DsCyuU3O.js → use-apply-config-color-theme-DMXoMpUV.js} +1 -1
- package/dist/public/assets/{use-collab-url-CEI12fca.js → use-collab-url-B0dWOEHI.js} +1 -1
- package/dist/public/assets/{use-conflicts-CpABgIGI.js → use-conflicts-pFzwHTnA.js} +1 -1
- package/dist/public/assets/{use-git-sync-status-BQYF2F5Z.js → use-git-sync-status-CJx_G2N9.js} +1 -1
- package/dist/public/assets/use-installed-clis-Bq2JB-bo.js +2 -0
- package/dist/public/assets/{use-live-xterm-theme-CkVAs5Ql.js → use-live-xterm-theme-MtGSciv9.js} +1 -1
- package/dist/public/assets/{use-open-skill-CDNmRdpj.js → use-open-skill-BfvvQFrP.js} +1 -1
- package/dist/public/assets/{use-semantic-search-status-BYu4PoVz.js → use-semantic-search-status-BX5aUgnK.js} +1 -1
- package/dist/public/assets/{use-skill-origin-Be1NTkgW.js → use-skill-origin-ywt3YYti.js} +1 -1
- package/dist/public/assets/{use-skill-targets-Cf23drqO.js → use-skill-targets-RLdS0VLQ.js} +1 -1
- package/dist/public/assets/{use-skills-gbn1t63C.js → use-skills-CyNJ4hcP.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-CYPFWXCG.js → use-terminal-enabled-Bux88unS.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-Cb24Bjqb.js → use-timeline-entry-diff-CQd38y1M.js} +1 -1
- package/dist/public/assets/{use-workspace-BafUpQnS.js → use-workspace-C_QPbelO.js} +1 -1
- package/dist/public/index.html +63 -63
- package/dist/{registry-probes-c5NiVSQQ.mjs → registry-probes-CetDjX_j.mjs} +1 -1
- package/dist/{removal-file-path-CNAwyHXo.mjs → removal-file-path-Djea2-om.mjs} +1 -1
- package/dist/{repair-launch-json-BT9bYx1n.mjs → repair-launch-json-BNvTpRS_.mjs} +1 -1
- package/dist/{repair-mcp-configs-DjtDZjPL.mjs → repair-mcp-configs-CxYH74IT.mjs} +1 -1
- package/dist/{src-D0AexutX.mjs → src-BILMinJo.mjs} +1 -1
- package/dist/src-BUgL_R1i.mjs +1 -0
- package/dist/start-_aKlfpQ5.mjs +1 -0
- package/dist/{start-DumQRn6S.mjs → start-lJXFuEW7.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-DkpwkeOT.mjs +0 -1
- package/dist/init-MqhtKFBc.mjs +0 -1
- package/dist/loader-DqyZtaL2.mjs +0 -1
- package/dist/preview-CiJP75fX.mjs +0 -1
- package/dist/public/assets/AppMenubar-D7u5sV7t.js +0 -1
- package/dist/public/assets/FeedbackForm-w2RNhl0R.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-sO6f840l.js +0 -1
- package/dist/public/assets/config-schema-xOnB5jc5.js +0 -1
- package/dist/public/assets/field-controls-CnF_w0df.js +0 -1
- package/dist/public/assets/platform-labels-CtgIRyUl.js +0 -1
- package/dist/public/assets/storage-scope-67lIepq6.js +0 -1
- package/dist/public/assets/use-installed-clis-CXwm5pk2.js +0 -2
- package/dist/src-vA9lJ7v2.mjs +0 -1
- package/dist/start-DWdrJgWH.mjs +0 -1
package/dist/public/index.html
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
-->
|
|
95
95
|
<script>(() => { try { const raw = localStorage.getItem('ok-language-v1'); if (!raw) return; const o = JSON.parse(raw); if (typeof o?.locale !== 'string' || !/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{2,8})*$/.test(o.locale)) return; document.documentElement.lang = o.locale; document.documentElement.dir = o.dir === 'rtl' ? 'rtl' : 'ltr'; } catch {} })();</script>
|
|
96
96
|
<style>html { background-color: #fafafa } html.dark { background-color: #171717 }</style>
|
|
97
|
-
<script type="module" crossorigin src="./assets/index-
|
|
97
|
+
<script type="module" crossorigin src="./assets/index-DlH3oHvT.js"></script>
|
|
98
98
|
<link rel="modulepreload" crossorigin href="./assets/chunk-CYidjpOJ.js">
|
|
99
99
|
<link rel="modulepreload" crossorigin href="./assets/react-f2sANaYj.js">
|
|
100
100
|
<link rel="modulepreload" crossorigin href="./assets/react-dom-DPxgxlDT.js">
|
|
@@ -127,10 +127,10 @@
|
|
|
127
127
|
<link rel="modulepreload" crossorigin href="./assets/constants-github-DOek7bCt.js">
|
|
128
128
|
<link rel="modulepreload" crossorigin href="./assets/doc-extensions-CcO7K8uD-B004ggqh.js">
|
|
129
129
|
<link rel="modulepreload" crossorigin href="./assets/logging-renderer-log-Bvxj7ztp.js">
|
|
130
|
-
<link rel="modulepreload" crossorigin href="./assets/constants-product-
|
|
131
|
-
<link rel="modulepreload" crossorigin href="./assets/constants-editors-
|
|
132
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-targets-schema-
|
|
133
|
-
<link rel="modulepreload" crossorigin href="./assets/schemas-api-
|
|
130
|
+
<link rel="modulepreload" crossorigin href="./assets/constants-product-tr6vTp-D.js">
|
|
131
|
+
<link rel="modulepreload" crossorigin href="./assets/constants-editors-bLWf6BtK.js">
|
|
132
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-targets-schema-BX4GqOjw.js">
|
|
133
|
+
<link rel="modulepreload" crossorigin href="./assets/schemas-api-JUnildTL.js">
|
|
134
134
|
<link rel="modulepreload" crossorigin href="./assets/dist-C_FzPxEX2.js">
|
|
135
135
|
<link rel="modulepreload" crossorigin href="./assets/dist-BGzUo_18.js">
|
|
136
136
|
<link rel="modulepreload" crossorigin href="./assets/messages-BOWt1g5R.js">
|
|
@@ -138,11 +138,11 @@
|
|
|
138
138
|
<link rel="modulepreload" crossorigin href="./assets/client-version-uAhaPZPt.js">
|
|
139
139
|
<link rel="modulepreload" crossorigin href="./assets/dist-Nvb76hAm.js">
|
|
140
140
|
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-theme-CYFG76sS.js">
|
|
141
|
-
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-
|
|
142
|
-
<link rel="modulepreload" crossorigin href="./assets/css-color-to-hex-
|
|
141
|
+
<link rel="modulepreload" crossorigin href="./assets/use-apply-config-color-theme-DMXoMpUV.js">
|
|
142
|
+
<link rel="modulepreload" crossorigin href="./assets/css-color-to-hex-C9tauY10.js">
|
|
143
143
|
<link rel="modulepreload" crossorigin href="./assets/constants-upload-CVKO8P4d.js">
|
|
144
|
-
<link rel="modulepreload" crossorigin href="./assets/saved-themes-client-
|
|
145
|
-
<link rel="modulepreload" crossorigin href="./assets/config-provider-
|
|
144
|
+
<link rel="modulepreload" crossorigin href="./assets/saved-themes-client-Cx7GJLm9.js">
|
|
145
|
+
<link rel="modulepreload" crossorigin href="./assets/config-provider-DXmc67dU.js">
|
|
146
146
|
<link rel="modulepreload" crossorigin href="./assets/dist-Dc8tD1th.js">
|
|
147
147
|
<link rel="modulepreload" crossorigin href="./assets/ccount-BoHE53_k.js">
|
|
148
148
|
<link rel="modulepreload" crossorigin href="./assets/lib-QQS1Brzc.js">
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
<link rel="modulepreload" crossorigin href="./assets/documents-fetch-Y7Dt9_Tn.js">
|
|
165
165
|
<link rel="modulepreload" crossorigin href="./assets/note-window-mode-CI3Yju9B.js">
|
|
166
166
|
<link rel="modulepreload" crossorigin href="./assets/structural-freshness-CIbkMFA3-CWi_lyiW.js">
|
|
167
|
-
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-
|
|
167
|
+
<link rel="modulepreload" crossorigin href="./assets/CodeMirrorPropInput-Drb1OUJC.js">
|
|
168
168
|
<link rel="modulepreload" crossorigin href="./assets/dist-CSCUSbQc.js">
|
|
169
169
|
<link rel="modulepreload" crossorigin href="./assets/dist-DTFuvKje.js">
|
|
170
170
|
<link rel="modulepreload" crossorigin href="./assets/dist-CRjqnzU7.js">
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
<link rel="modulepreload" crossorigin href="./assets/context-api-D2PVlCLE.js">
|
|
192
192
|
<link rel="modulepreload" crossorigin href="./assets/switch-BKZTXkzu.js">
|
|
193
193
|
<link rel="modulepreload" crossorigin href="./assets/lib-JGveGkyb.js">
|
|
194
|
-
<link rel="modulepreload" crossorigin href="./assets/bridge-
|
|
194
|
+
<link rel="modulepreload" crossorigin href="./assets/bridge-Jy9bpSqg.js">
|
|
195
195
|
<link rel="modulepreload" crossorigin href="./assets/lib-7Zm1Z07d.js">
|
|
196
196
|
<link rel="modulepreload" crossorigin href="./assets/lib-TFtgHRaJ.js">
|
|
197
197
|
<link rel="modulepreload" crossorigin href="./assets/git-branch-CeTudSak.js">
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
<link rel="modulepreload" crossorigin href="./assets/circle-check-nK1yRBIw.js">
|
|
208
208
|
<link rel="modulepreload" crossorigin href="./assets/copy-DpWa6i2v.js">
|
|
209
209
|
<link rel="modulepreload" crossorigin href="./assets/download-BouT3__0.js">
|
|
210
|
-
<link rel="modulepreload" crossorigin href="./assets/frontmatter-tags-
|
|
210
|
+
<link rel="modulepreload" crossorigin href="./assets/frontmatter-tags-CUlOAi99.js">
|
|
211
211
|
<link rel="modulepreload" crossorigin href="./assets/settings-2-DoBlNQMk.js">
|
|
212
212
|
<link rel="modulepreload" crossorigin href="./assets/prop-types-ZtKgQMRh.js">
|
|
213
213
|
<link rel="modulepreload" crossorigin href="./assets/hash-C4CJQURT.js">
|
|
@@ -220,59 +220,59 @@
|
|
|
220
220
|
<link rel="modulepreload" crossorigin href="./assets/sparkles-BS2TX_Um.js">
|
|
221
221
|
<link rel="modulepreload" crossorigin href="./assets/react-error-boundary-6ac6QM6R.js">
|
|
222
222
|
<link rel="modulepreload" crossorigin href="./assets/CopyButton-BGYz3S5f.js">
|
|
223
|
-
<link rel="modulepreload" crossorigin href="./assets/config-errors-
|
|
224
|
-
<link rel="modulepreload" crossorigin href="./assets/schemas-cc1-
|
|
225
|
-
<link rel="modulepreload" crossorigin href="./assets/documents-events-
|
|
223
|
+
<link rel="modulepreload" crossorigin href="./assets/config-errors-DnAsM78K.js">
|
|
224
|
+
<link rel="modulepreload" crossorigin href="./assets/schemas-cc1-By47OR1C.js">
|
|
225
|
+
<link rel="modulepreload" crossorigin href="./assets/documents-events-DdFfHk7W.js">
|
|
226
226
|
<link rel="modulepreload" crossorigin href="./assets/parse-api-error-B5EVRh3T.js">
|
|
227
227
|
<link rel="modulepreload" crossorigin href="./assets/diagnostic-breadcrumb-Cr0C15nJ.js">
|
|
228
228
|
<link rel="modulepreload" crossorigin href="./assets/perf-DZJpLc5j.js">
|
|
229
229
|
<link rel="modulepreload" crossorigin href="./assets/startup-marks-aftNzVFI.js">
|
|
230
|
-
<link rel="modulepreload" crossorigin href="./assets/PageListContext-
|
|
230
|
+
<link rel="modulepreload" crossorigin href="./assets/PageListContext-CLm_fRR9.js">
|
|
231
231
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-rename-validation-CQF8z42p.js">
|
|
232
232
|
<link rel="modulepreload" crossorigin href="./assets/badge-DmdA1C7r.js">
|
|
233
233
|
<link rel="modulepreload" crossorigin href="./assets/input-C-Qm8YDT.js">
|
|
234
234
|
<link rel="modulepreload" crossorigin href="./assets/kbd-Cg1nrB7U.js">
|
|
235
235
|
<link rel="modulepreload" crossorigin href="./assets/dist-D1AbXGbs.js">
|
|
236
236
|
<link rel="modulepreload" crossorigin href="./assets/popover-BhiLJhH5.js">
|
|
237
|
-
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-
|
|
237
|
+
<link rel="modulepreload" crossorigin href="./assets/use-collab-url-B0dWOEHI.js">
|
|
238
238
|
<link rel="modulepreload" crossorigin href="./assets/excalidraw-scene-WvG0vu5I.js">
|
|
239
239
|
<link rel="modulepreload" crossorigin href="./assets/known-skill-dirs-DtxJ8qaH.js">
|
|
240
240
|
<link rel="modulepreload" crossorigin href="./assets/constants-skills-BLHVRW90.js">
|
|
241
|
-
<link rel="modulepreload" crossorigin href="./assets/skill-scope-
|
|
242
|
-
<link rel="modulepreload" crossorigin href="./assets/skills-api-
|
|
243
|
-
<link rel="modulepreload" crossorigin href="./assets/storage-scope-
|
|
244
|
-
<link rel="modulepreload" crossorigin href="./assets/use-workspace-
|
|
241
|
+
<link rel="modulepreload" crossorigin href="./assets/skill-scope-qLtpopQG.js">
|
|
242
|
+
<link rel="modulepreload" crossorigin href="./assets/skills-api-DFdWVDY1.js">
|
|
243
|
+
<link rel="modulepreload" crossorigin href="./assets/storage-scope-BI-jwbPM.js">
|
|
244
|
+
<link rel="modulepreload" crossorigin href="./assets/use-workspace-C_QPbelO.js">
|
|
245
245
|
<link rel="modulepreload" crossorigin href="./assets/utils-random-uuid-D7CMpgvf.js">
|
|
246
|
-
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-
|
|
246
|
+
<link rel="modulepreload" crossorigin href="./assets/DocumentContext-Dkr34TWR.js">
|
|
247
247
|
<link rel="modulepreload" crossorigin href="./assets/dist-BKgU0kag.js">
|
|
248
248
|
<link rel="modulepreload" crossorigin href="./assets/dist-d0R4nnoB.js">
|
|
249
249
|
<link rel="modulepreload" crossorigin href="./assets/dist-UouvQIiM.js">
|
|
250
250
|
<link rel="modulepreload" crossorigin href="./assets/dropdown-menu-DtLu9NwU.js">
|
|
251
|
-
<link rel="modulepreload" crossorigin href="./assets/comment-chips-
|
|
251
|
+
<link rel="modulepreload" crossorigin href="./assets/comment-chips-CoLxBx92.js">
|
|
252
252
|
<link rel="modulepreload" crossorigin href="./assets/file-tree-adapter-BeSKxnyg.js">
|
|
253
253
|
<link rel="modulepreload" crossorigin href="./assets/acp-thread-protocol-6IlNVy7A.js">
|
|
254
|
-
<link rel="modulepreload" crossorigin href="./assets/thread-client-
|
|
254
|
+
<link rel="modulepreload" crossorigin href="./assets/thread-client-B4wfB-2h.js">
|
|
255
255
|
<link rel="modulepreload" crossorigin href="./assets/tool-list-format-CS7MZY1Q.js">
|
|
256
256
|
<link rel="modulepreload" crossorigin href="./assets/image-attachment-IPVf2vc9.js">
|
|
257
257
|
<link rel="modulepreload" crossorigin href="./assets/workspace-paths-BjilyZF6.js">
|
|
258
|
-
<link rel="modulepreload" crossorigin href="./assets/progress-
|
|
258
|
+
<link rel="modulepreload" crossorigin href="./assets/progress-kP97a1rO.js">
|
|
259
259
|
<link rel="modulepreload" crossorigin href="./assets/radio-group-G1GR05Rb.js">
|
|
260
260
|
<link rel="modulepreload" crossorigin href="./assets/separator-D7s_9ZwH.js">
|
|
261
261
|
<link rel="modulepreload" crossorigin href="./assets/toggle-group-B7p69Qfd.js">
|
|
262
262
|
<link rel="modulepreload" crossorigin href="./assets/useQuery-ZeEDLtxh.js">
|
|
263
263
|
<link rel="modulepreload" crossorigin href="./assets/markdownit-Cn1WWq3J.js">
|
|
264
|
-
<link rel="modulepreload" crossorigin href="./assets/markdown-lint-
|
|
264
|
+
<link rel="modulepreload" crossorigin href="./assets/markdown-lint-tXEf2MDv.js">
|
|
265
265
|
<link rel="modulepreload" crossorigin href="./assets/format-Yv4YAHdV.js">
|
|
266
266
|
<link rel="modulepreload" crossorigin href="./assets/braces--g9Mwtim.js">
|
|
267
|
-
<link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-
|
|
267
|
+
<link rel="modulepreload" crossorigin href="./assets/PropertyDisplayRow-CejfREf8.js">
|
|
268
268
|
<link rel="modulepreload" crossorigin href="./assets/grip-vertical-DNbkgWZL.js">
|
|
269
|
-
<link rel="modulepreload" crossorigin href="./assets/SkillCostValue-
|
|
269
|
+
<link rel="modulepreload" crossorigin href="./assets/SkillCostValue-tiv0OMS7.js">
|
|
270
270
|
<link rel="modulepreload" crossorigin href="./assets/textarea-qPZDtk8V.js">
|
|
271
|
-
<link rel="modulepreload" crossorigin href="./assets/selection-context-
|
|
272
|
-
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-
|
|
273
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skills-
|
|
274
|
-
<link rel="modulepreload" crossorigin href="./assets/folder-config-api-
|
|
275
|
-
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-
|
|
271
|
+
<link rel="modulepreload" crossorigin href="./assets/selection-context-C6c6vB_u.js">
|
|
272
|
+
<link rel="modulepreload" crossorigin href="./assets/lint-config-client-Dris_9kn.js">
|
|
273
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skills-CyNJ4hcP.js">
|
|
274
|
+
<link rel="modulepreload" crossorigin href="./assets/folder-config-api-CX9qXRQC.js">
|
|
275
|
+
<link rel="modulepreload" crossorigin href="./assets/ManagedArtifactProperties-BRRc9Nck.js">
|
|
276
276
|
<link rel="modulepreload" crossorigin href="./assets/arrow-up-right-nJaICi16.js">
|
|
277
277
|
<link rel="modulepreload" crossorigin href="./assets/git-merge-VDBzSZBV.js">
|
|
278
278
|
<link rel="modulepreload" crossorigin href="./assets/refresh-cw-CC7UZEnZ.js">
|
|
@@ -280,94 +280,94 @@
|
|
|
280
280
|
<link rel="modulepreload" crossorigin href="./assets/DisclosureWarning-DGH1_U0o.js">
|
|
281
281
|
<link rel="modulepreload" crossorigin href="./assets/handoff-ClTYrgLm.js">
|
|
282
282
|
<link rel="modulepreload" crossorigin href="./assets/terminal-command-events-DylLB9_L.js">
|
|
283
|
-
<link rel="modulepreload" crossorigin href="./assets/use-conflicts-
|
|
284
|
-
<link rel="modulepreload" crossorigin href="./assets/use-git-sync-status-
|
|
283
|
+
<link rel="modulepreload" crossorigin href="./assets/use-conflicts-pFzwHTnA.js">
|
|
284
|
+
<link rel="modulepreload" crossorigin href="./assets/use-git-sync-status-CJx_G2N9.js">
|
|
285
285
|
<link rel="modulepreload" crossorigin href="./assets/keyboard-shortcuts-FtScAm_I.js">
|
|
286
286
|
<link rel="modulepreload" crossorigin href="./assets/use-settings-route-DT86DJkF.js">
|
|
287
|
-
<link rel="modulepreload" crossorigin href="./assets/SyncStatusBadge-
|
|
287
|
+
<link rel="modulepreload" crossorigin href="./assets/SyncStatusBadge-CI4kJKJz.js">
|
|
288
288
|
<link rel="modulepreload" crossorigin href="./assets/cursor-B6reg1lS.js">
|
|
289
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-registry-
|
|
290
|
-
<link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-
|
|
289
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-registry-Cs85mdZV.js">
|
|
290
|
+
<link rel="modulepreload" crossorigin href="./assets/RegisteredAgentIcon-CWqSvSAf.js">
|
|
291
291
|
<link rel="modulepreload" crossorigin href="./assets/file-plus-DKxOZh2k.js">
|
|
292
292
|
<link rel="modulepreload" crossorigin href="./assets/list-plus-CYMJBvrm.js">
|
|
293
293
|
<link rel="modulepreload" crossorigin href="./assets/folder-QqUoFRPR.js">
|
|
294
294
|
<link rel="modulepreload" crossorigin href="./assets/copilot-Dh1BU6kS.js">
|
|
295
295
|
<link rel="modulepreload" crossorigin href="./assets/OpenInAgentMenuItem-Bd9Zl2ks.js">
|
|
296
296
|
<link rel="modulepreload" crossorigin href="./assets/mascot-outline-CtS592mc.js">
|
|
297
|
-
<link rel="modulepreload" crossorigin href="./assets/AgentIconCluster-
|
|
297
|
+
<link rel="modulepreload" crossorigin href="./assets/AgentIconCluster-BeSduTM5.js">
|
|
298
298
|
<link rel="modulepreload" crossorigin href="./assets/ChangedOutsideBadge-BB-SCUmw.js">
|
|
299
299
|
<link rel="modulepreload" crossorigin href="./assets/dist-ecS2llwR.js">
|
|
300
300
|
<link rel="modulepreload" crossorigin href="./assets/context-menu-CKOBjlWm.js">
|
|
301
|
-
<link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-
|
|
301
|
+
<link rel="modulepreload" crossorigin href="./assets/SkillInstallMenu-syd5rOWa.js">
|
|
302
302
|
<link rel="modulepreload" crossorigin href="./assets/DeleteConfirmationDialog-DrwlL-Hc.js">
|
|
303
303
|
<link rel="modulepreload" crossorigin href="./assets/monitor-IXzxTnmk.js">
|
|
304
304
|
<link rel="modulepreload" crossorigin href="./assets/field-DFJgKWGh.js">
|
|
305
|
-
<link rel="modulepreload" crossorigin href="./assets/agent-connections-
|
|
305
|
+
<link rel="modulepreload" crossorigin href="./assets/agent-connections-7wgDgnqZ.js">
|
|
306
306
|
<link rel="modulepreload" crossorigin href="./assets/bool-pref-CqB9j4bL.js">
|
|
307
|
-
<link rel="modulepreload" crossorigin href="./assets/TerminalLaunchContext-
|
|
307
|
+
<link rel="modulepreload" crossorigin href="./assets/TerminalLaunchContext-DgUTkKSb.js">
|
|
308
308
|
<link rel="modulepreload" crossorigin href="./assets/agent-launcher-labels-BtrP7a_g.js">
|
|
309
309
|
<link rel="modulepreload" crossorigin href="./assets/terminal-cli-display-BbrhD8t2.js">
|
|
310
310
|
<link rel="modulepreload" crossorigin href="./assets/open-managed-artifact-tab-2lsv2g--.js">
|
|
311
|
-
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-
|
|
312
|
-
<link rel="modulepreload" crossorigin href="./assets/platform-labels-
|
|
311
|
+
<link rel="modulepreload" crossorigin href="./assets/use-open-skill-BfvvQFrP.js">
|
|
312
|
+
<link rel="modulepreload" crossorigin href="./assets/platform-labels-BPRIEv67.js">
|
|
313
313
|
<link rel="modulepreload" crossorigin href="./assets/clipboard-adapter-DOdbK8py.js">
|
|
314
|
-
<link rel="modulepreload" crossorigin href="./assets/AddPropertiesButton-
|
|
314
|
+
<link rel="modulepreload" crossorigin href="./assets/AddPropertiesButton-BYfH1-WT.js">
|
|
315
315
|
<link rel="modulepreload" crossorigin href="./assets/case-sensitive-DIxypOE0.js">
|
|
316
316
|
<link rel="modulepreload" crossorigin href="./assets/chevron-left-C5T97PNU.js">
|
|
317
317
|
<link rel="modulepreload" crossorigin href="./assets/lint-plugin-meta-CtDE2R0v.js">
|
|
318
318
|
<link rel="modulepreload" crossorigin href="./assets/wrench-DqFwoSdV.js">
|
|
319
319
|
<link rel="modulepreload" crossorigin href="./assets/panel-My61A8fk.js">
|
|
320
320
|
<link rel="modulepreload" crossorigin href="./assets/skeleton-BPb29aFG.js">
|
|
321
|
-
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-
|
|
321
|
+
<link rel="modulepreload" crossorigin href="./assets/typing-burst-detector-DrGckpC8.js">
|
|
322
322
|
<link rel="modulepreload" crossorigin href="./assets/miss-dialog-store-CsiJb9Ou.js">
|
|
323
|
-
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-
|
|
323
|
+
<link rel="modulepreload" crossorigin href="./assets/pending-receive-nav-store-Dx3tjU3M.js">
|
|
324
324
|
<link rel="modulepreload" crossorigin href="./assets/target-navigation-intent-D7IZjXLN.js">
|
|
325
|
-
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-
|
|
325
|
+
<link rel="modulepreload" crossorigin href="./assets/terminal-launch-events-qwe1BiG1.js">
|
|
326
326
|
<link rel="modulepreload" crossorigin href="./assets/contact-email-store-hvqYKCGj.js">
|
|
327
327
|
<link rel="modulepreload" crossorigin href="./assets/bug-report-send-manager-Btm-R8Ei.js">
|
|
328
328
|
<link rel="modulepreload" crossorigin href="./assets/InstallInClaudeDesktopDialog-DNy01p3t.js">
|
|
329
329
|
<link rel="modulepreload" crossorigin href="./assets/package-PkCmIx3S.js">
|
|
330
330
|
<link rel="modulepreload" crossorigin href="./assets/overlay-layers-CKMAjef3.js">
|
|
331
|
-
<link rel="modulepreload" crossorigin href="./assets/preferred-session-events-
|
|
331
|
+
<link rel="modulepreload" crossorigin href="./assets/preferred-session-events-UCAyZlN5.js">
|
|
332
332
|
<link rel="modulepreload" crossorigin href="./assets/panel-right-open-BSU2gtLb.js">
|
|
333
333
|
<link rel="modulepreload" crossorigin href="./assets/rotate-ccw-Zi1IjIg9.js">
|
|
334
334
|
<link rel="modulepreload" crossorigin href="./assets/square-pen-BoydeSu6.js">
|
|
335
335
|
<link rel="modulepreload" crossorigin href="./assets/undo-2-xEF_s_Io.js">
|
|
336
336
|
<link rel="modulepreload" crossorigin href="./assets/form-B5jOJJqd.js">
|
|
337
|
-
<link rel="modulepreload" crossorigin href="./assets/AuthModal-
|
|
337
|
+
<link rel="modulepreload" crossorigin href="./assets/AuthModal-oJIksUwH.js">
|
|
338
338
|
<link rel="modulepreload" crossorigin href="./assets/dist-CzJghaXH.js">
|
|
339
339
|
<link rel="modulepreload" crossorigin href="./assets/dist-6WGIsHaB.js">
|
|
340
340
|
<link rel="modulepreload" crossorigin href="./assets/text-viewer-languages-i07xql9H.js">
|
|
341
|
-
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-
|
|
341
|
+
<link rel="modulepreload" crossorigin href="./assets/EditorModeToggle-Do7kGUFS.js">
|
|
342
342
|
<link rel="modulepreload" crossorigin href="./assets/ImageAttachments-By1ZcRNT.js">
|
|
343
|
-
<link rel="modulepreload" crossorigin href="./assets/TemplateRow-
|
|
343
|
+
<link rel="modulepreload" crossorigin href="./assets/TemplateRow-CKPSBcvy.js">
|
|
344
344
|
<link rel="modulepreload" crossorigin href="./assets/ConfigSharingInfoTooltip-B2YLIcK1.js">
|
|
345
345
|
<link rel="modulepreload" crossorigin href="./assets/RowDisclosure-D3-qDfvX.js">
|
|
346
|
-
<link rel="modulepreload" crossorigin href="./assets/project-paths-
|
|
347
|
-
<link rel="modulepreload" crossorigin href="./assets/PublishToGitHubDialog-
|
|
348
|
-
<link rel="modulepreload" crossorigin href="./assets/use-installed-clis-
|
|
349
|
-
<link rel="modulepreload" crossorigin href="./assets/ReportBugMenuTrigger-
|
|
346
|
+
<link rel="modulepreload" crossorigin href="./assets/project-paths-4aL5STlX.js">
|
|
347
|
+
<link rel="modulepreload" crossorigin href="./assets/PublishToGitHubDialog-C3G5gU4a.js">
|
|
348
|
+
<link rel="modulepreload" crossorigin href="./assets/use-installed-clis-Bq2JB-bo.js">
|
|
349
|
+
<link rel="modulepreload" crossorigin href="./assets/ReportBugMenuTrigger-BcNRdrQT.js">
|
|
350
350
|
<link rel="modulepreload" crossorigin href="./assets/SkillModeBanner-DaZYmbfZ.js">
|
|
351
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skill-targets-
|
|
352
|
-
<link rel="modulepreload" crossorigin href="./assets/card-
|
|
351
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skill-targets-RLdS0VLQ.js">
|
|
352
|
+
<link rel="modulepreload" crossorigin href="./assets/card-BDi8CQBG.js">
|
|
353
353
|
<link rel="modulepreload" crossorigin href="./assets/app-menubar-gate-P063SDEt.js">
|
|
354
|
-
<link rel="modulepreload" crossorigin href="./assets/use-semantic-search-status-
|
|
354
|
+
<link rel="modulepreload" crossorigin href="./assets/use-semantic-search-status-BX5aUgnK.js">
|
|
355
355
|
<link rel="modulepreload" crossorigin href="./assets/agent-diff-store-C4k2G19B.js">
|
|
356
356
|
<link rel="modulepreload" crossorigin href="./assets/ok-CuhxIlf5.js">
|
|
357
357
|
<link rel="modulepreload" crossorigin href="./assets/config-ignore-nested-error-events-KWA8lP9v.js">
|
|
358
358
|
<link rel="modulepreload" crossorigin href="./assets/settings-fields-B9-s2szc.js">
|
|
359
359
|
<link rel="modulepreload" crossorigin href="./assets/settings-host-gates-CrE1dxiq.js">
|
|
360
|
-
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-
|
|
360
|
+
<link rel="modulepreload" crossorigin href="./assets/use-live-xterm-theme-MtGSciv9.js">
|
|
361
361
|
<link rel="modulepreload" crossorigin href="./assets/alert-BY4HHcfV.js">
|
|
362
362
|
<link rel="modulepreload" crossorigin href="./assets/input-group-D_ozMCmW.js">
|
|
363
|
-
<link rel="modulepreload" crossorigin href="./assets/use-skill-origin-
|
|
364
|
-
<link rel="modulepreload" crossorigin href="./assets/catalog-
|
|
363
|
+
<link rel="modulepreload" crossorigin href="./assets/use-skill-origin-ywt3YYti.js">
|
|
364
|
+
<link rel="modulepreload" crossorigin href="./assets/catalog-Fc3slEfq.js">
|
|
365
365
|
<link rel="modulepreload" crossorigin href="./assets/agent-presence-B1gg-8rU.js">
|
|
366
366
|
<link rel="modulepreload" crossorigin href="./assets/auth-prompt-store-CKSBhTB-.js">
|
|
367
367
|
<link rel="modulepreload" crossorigin href="./assets/auth-state-cache-cHC7MUdm.js">
|
|
368
368
|
<link rel="modulepreload" crossorigin href="./assets/config-validation-events-Ct4V3svt.js">
|
|
369
369
|
<link rel="modulepreload" crossorigin href="./assets/lazy-with-preload-C6mj3pvQ.js">
|
|
370
|
-
<link rel="modulepreload" crossorigin href="./assets/restart-collab-server-
|
|
370
|
+
<link rel="modulepreload" crossorigin href="./assets/restart-collab-server-D2OLLel5.js">
|
|
371
371
|
<link rel="modulepreload" crossorigin href="./assets/receive-store-DAY0OPjn.js">
|
|
372
372
|
<link rel="modulepreload" crossorigin href="./assets/terminal-telemetry-DkL8V654.js">
|
|
373
373
|
<link rel="modulepreload" crossorigin href="./assets/timeline-diff-store-BpioNUVS.js">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./rolldown-runtime-tZXQYakl.mjs";import{$d as r,Bc as i,Fc as a,La as o,Vu as s,Zd as c,bf as l,ef as u,gf as d,nf as f,pf as p,sd as m,yf as h}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{Eo as g,In as _,Qo as v,Vo as y,Xn as b,Zo as x,dr as ee,is as S,m as C,ma as te,rs as ne}from"./dist-
|
|
1
|
+
import{i as e,o as t,t as n}from"./rolldown-runtime-tZXQYakl.mjs";import{$d as r,Bc as i,Fc as a,La as o,Vu as s,Zd as c,bf as l,ef as u,gf as d,nf as f,pf as p,sd as m,yf as h}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{Eo as g,In as _,Qo as v,Vo as y,Xn as b,Zo as x,dr as ee,is as S,m as C,ma as te,rs as ne}from"./dist-C01O4iH2.mjs";import{$ as re,A as w,J as ie,M as T,O as E,P as ae,R as oe,T as se,X as D,at as ce,ct as le,d as ue,dt as de,f as fe,it as pe,j as me,k as he,lt as ge,nt as _e,o as ve,rt as ye,tt as be,v as xe,w as Se,x as Ce,y as we}from"./init-BxVdZi-q.mjs";import{t as Te}from"./is-object-BGze3w87.mjs";import{t as Ee}from"./removal-file-path-Djea2-om.mjs";import{spawn as De}from"node:child_process";import{basename as O,dirname as k,join as A,resolve as j,win32 as Oe}from"node:path";import{accessSync as ke,constants as M,existsSync as N,lstatSync as P,mkdirSync as Ae,readFileSync as F,readdirSync as I,realpathSync as L,rmSync as je,rmdirSync as Me,statSync as R,unlinkSync as Ne}from"node:fs";import{homedir as z}from"node:os";import{createHash as Pe}from"node:crypto";import{isDeepStrictEqual as Fe}from"node:util";import{setTimeout as Ie}from"node:timers/promises";var Le=s();let Re;function ze(){return Re}function Be(e,t){if(t!==void 0&&t.length>0)return t;try{return ee(e)?.rootPath}catch{return}}function Ve(e){let t=Be(e.cwd,e.configuredProjectName),n=_({name:`cli`,project:t});return Re=n,n.info({command:e.command,cwd:e.cwd,project:t},`cli command started`),n}function B(){return i(a)}function V(){return d().keyringService}function H(e){try{e()}catch{}}var He=class{backend=`keyring`;onKeychainRead;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(V(),e).getPassword()}catch(t){return H(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return H(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return H(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(V(),e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(V(),e).deletePassword()}catch{}}},U=class{backend=`file`;authFile;constructor(e){this.authFile=e??A(v(),`auth.yml`)}read(){if(!N(this.authFile))return{};try{let e=F(this.authFile,`utf-8`);return(0,Le.parse)(e)??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=k(this.authFile);N(t)||Ae(t,{recursive:!0,mode:448}),x(this.authFile,(0,Le.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},Ue=class{backend=`keyring`;keychain;file;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ${B()} to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function We(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(V(),`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
|
|
2
2
|
`),H(()=>t?.onBackendSelected?.({backend:`keyring`})),new Ue(new He(t?.onKeychainRead),new U(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (${B()}) — OS keychain unavailable: ${r}\n`),H(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new U(e)}}function Ge(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (${B()})\n`),r(new U(e))},n)});try{return await Promise.race([We(e),r])}catch{return new U(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function Ke(e){let t=Ge(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token,login:n.login}}}}function qe(e){let t=Ge(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function Je(e,t){let n=[],r=new U(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));let i;try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(V(),`__probe__`);let r,a=await new He(e=>{e.kind===`read-error`&&(r=e.error??`read-error`)}).get(e);if(r!==void 0)i=r;else if(a!=null)try{new t(V(),e).deletePassword(),n.push(`keychain`)}catch(e){i=e instanceof Error?e.name:`delete-error`}}catch{}return{touched:n,keychainError:i}}function Ye(e){let t={...e};return delete t.ELECTRON_RUN_AS_NODE,t}function Xe(e){let t=e?.code;return t===`ENOENT`||t===`EACCES`||t===`EPERM`?{ok:!1,reason:`not-installed`}:{ok:!1,reason:`spawn-error`}}function Ze(e){return g({detached:!0,stdio:`ignore`,shell:!1,env:Ye(e)})}function Qe(e,t,n={}){let r=(n.spawn??De)(e,[...t],Ze(n.env??process.env));return r.unref(),r}function $e(e,t,n={}){let r=n.spawn??De,i=n.timeoutMs??2e3;return new Promise(a=>{let o=!1,s=e=>{o||(o=!0,a(e))},c=setTimeout(()=>s({ok:!1,reason:`timeout`}),i);try{let i=r(e,[...t],Ze(n.env??process.env));i.once(`error`,e=>{clearTimeout(c),s(Xe(e))}),i.once(`spawn`,()=>{clearTimeout(c),s({ok:!0})});try{i.unref()}catch{}}catch(e){clearTimeout(c),s(Xe(e))}})}const et=p.stable.appId,W=[p.stable,p.beta];function tt(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return R(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function nt(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}let t=e.homeDir??z();for(let n of W)for(let r of[A(t,`Applications`),`/Applications`]){let t=A(r,`${n.productName}.app`);if(rt(e,A(t,`Contents`,`MacOS`,n.productName)))return t}return null}function rt(e,t){try{let n=e.statSync(t);return n?typeof n.isFile==`function`&&n.isFile():!1}catch{return!1}}function it(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&W.find(t=>e.execPath.toLowerCase().endsWith(`\\${h(t).toLowerCase()}`)))return e.execPath;let t=e.env.LOCALAPPDATA;if(t)for(let n of W)for(let r of l(n)){let i=Oe.join(t,`Programs`,r,h(n));if(rt(e,i))return i}return null}function at(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`&&W.find(t=>e.execPath.endsWith(`/${t.linuxExecutableName}`)))return e.execPath;for(let t of W){let n=`/opt/${t.productName}/${t.linuxExecutableName}`;if(rt(e,n))return n}return null}function ot(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`&&e.platform!==`win32`&&e.platform!==`linux`)return{available:!1,reason:`unsupported-platform`};let t;try{t=e.platform===`darwin`?nt(e):e.platform===`win32`?it(e):at(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:!(e.isTTY===!0||e.platform===`win32`&&e.isTTY===void 0&&!e.env.CI)||e.env.SSH_CONNECTION||e.env.SSH_TTY||e.platform===`linux`&&!e.env.DISPLAY&&!e.env.WAYLAND_DISPLAY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function st(e,t){let n=e.log??(e=>console.error(e)),r=e.platform??process.platform;n("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let i=t?.bundlePath;if(!i){n(`Desktop launch skipped: no resolved desktop executable (caller bug).`);return}if(r===`darwin`){Qe(`open`,[`-a`,i],{spawn:e.spawn});return}Qe(i,[],{spawn:e.spawn})}function ct(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found (checked the standard install locations for this OS). Install it from https://openknowledge.ai/download, or omit --mode for browser mode.`;case`darwin-only`:case`unsupported-platform`:return`Desktop app is not available on this platform. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect the desktop install (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available but launch dispatch did not fire (caller bug).`}}function G(e){return e.replace(/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}\u200b\ufeff]/gu,e=>`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`)}function lt(e){return Pe(`sha256`).update(e).digest(`hex`)}function K(e){return A(v(j(e)),`pi-trust`)}function ut(e,t){return A(K(e),lt(j(t)))}function dt(e,t,n){return A(ut(e,t),`${lt(n)}.json`)}var q=class extends Error{constructor(e,t,n,r){super(`Pi trust receipt at ${G(e)} ${G(t)}; ${G(n)}`,{cause:r}),this.name=`PiTrustReceiptError`}};function J(e,t,n){let r=n.code,i=n instanceof Error?n.message:String(n),a;switch(r){case`EACCES`:case`EPERM`:a=`check receipt and parent-directory permissions, then retry`;break;case`ENOENT`:a=`the location no longer exists; restore access to its expected location, then retry`;break;default:a=`check the path and available storage, then retry`}return new q(e,`could not ${t}: ${i}`,a,n)}function Y(e){let t;try{t=P(e)}catch(t){if(t.code===`ENOENT`)return!1;throw J(e,`be inspected`,t)}if(!t.isDirectory())throw new q(e,`is not a regular directory`,`restore the intended receipt directory without a symlink, then retry`);return!0}function ft(e,t){return Object.keys(e).length===t.length&&t.every(t=>Object.hasOwn(e,t))}function pt(e,t){if(!Te(e)||!ft(e,[`version`,`cwd`,`configuredTrustPath`,`canonicalTrustPath`,`state`,`previous`])||e.version!==1||typeof e.cwd!=`string`||e.cwd!==j(e.cwd)||typeof e.configuredTrustPath!=`string`||e.configuredTrustPath!==j(e.configuredTrustPath)||typeof e.canonicalTrustPath!=`string`||e.canonicalTrustPath!==j(e.canonicalTrustPath)||e.state!==`pending`&&e.state!==`committed`||!Te(e.previous))throw new q(t,`has invalid contents`,`restore a valid ownership record from a backup without guessing its trust decision, then retry`);let n;if(e.previous.present===!1&&ft(e.previous,[`present`]))n={present:!1};else if(e.previous.present===!0&&ft(e.previous,[`present`,`value`]))n={present:!0,value:e.previous.value};else throw new q(t,`has an invalid previous decision`,`restore the recorded previous decision from a backup without guessing its value, then retry`);return{version:1,cwd:e.cwd,configuredTrustPath:e.configuredTrustPath,canonicalTrustPath:e.canonicalTrustPath,state:e.state,previous:n}}function mt(e,t,n){let r;try{r=P(n)}catch(e){throw J(n,`be inspected`,e)}if(!r.isFile())throw new q(n,`is not a regular file`,`restore the intended receipt as a regular file without a symlink, then retry`);let i;try{i=F(n,`utf8`)}catch(e){throw J(n,`be read`,e)}let a;try{a=JSON.parse(i)}catch(e){throw new q(n,`is not valid JSON`,`repair its JSON syntax without changing the recorded decision, then retry`,e)}let o=pt(a,n);if(o.cwd!==j(t)||n!==dt(e,t,o.canonicalTrustPath))throw new q(n,`does not match its project or trust-store location`,`restore the ownership record to its original project and trust-store location, then retry`);return{path:n,record:o}}function ht(e,t){let{record:n,path:r}=t;for(let t of[K(e),ut(e,n.cwd)])if(!Y(t))throw new q(t,`no longer exists`,`restore access to the expected receipt directory, then retry`);let i=mt(e,n.cwd,r);if(!Fe(i.record,n))throw new q(r,`changed while its trust decision was being updated`,`retry to read its current ownership record`);return i}function gt(e,t,n,r,i){let a={version:1,cwd:j(t),configuredTrustPath:j(n),canonicalTrustPath:j(r),state:`pending`,previous:i},o=dt(e,a.cwd,a.canonicalTrustPath),s=`${JSON.stringify(a,null,2)}\n`;if(!Fe(pt(JSON.parse(s),o),a))throw new q(o,`cannot preserve the previous decision as JSON`,`provide the original decision as a JSON value before retrying`);Y(K(e)),Y(k(o));try{Ae(k(o),{recursive:!0,mode:448})}catch(e){throw J(k(o),`be created`,e)}let c;try{c=P(o,{throwIfNoEntry:!1})}catch(e){throw J(o,`be inspected`,e)}if(c)throw new q(o,`already exists`,`reconcile the existing ownership record before recording another grant`);try{x(o,s,{mode:384})}catch(e){throw J(o,`be written`,e)}return{path:o,record:a}}function _t(e,t){let n=ht(e,t);if(n.record.state!==`pending`)throw new q(n.path,`is already committed`,`use the current ownership record without committing it again`);let r={...n.record,state:`committed`};try{x(n.path,`${JSON.stringify(r,null,2)}\n`,{mode:384})}catch(e){throw J(n.path,`be committed`,e)}return{path:n.path,record:r}}function X(e,t){if(!Y(K(e)))return[];let n=ut(e,t);if(!Y(n))return[];let r;try{r=I(n).sort()}catch(e){throw J(n,`be listed`,e)}return r.filter(e=>/^[a-f0-9]{64}\.json$/.test(e)).map(r=>mt(e,t,A(n,r)))}function Z(e,t){let n=ht(e,t);try{Ne(n.path)}catch(e){throw J(n.path,`be removed after reconciling its grant`,e)}for(let t of[k(n.path),K(e)])try{Me(t)}catch(e){let n=e.code;if(n!==`ENOTEMPTY`&&n!==`EEXIST`&&n!==`ENOENT`)throw J(t,`be removed after reconciling its grant`,e)}}var vt=n(((t,n)=>{var r=e(`constants`),i=process.cwd,a=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return a||=i.call(process),a};try{process.cwd()}catch{}if(typeof process.chdir==`function`){var s=process.chdir;process.chdir=function(e){a=null,s.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,s)}n.exports=c;function c(e){r.hasOwnProperty(`O_SYMLINK`)&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=c(e.chownSync),e.fchownSync=c(e.fchownSync),e.lchownSync=c(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,r){r&&process.nextTick(r)},e.lchownSync=function(){}),o===`win32`&&(e.rename=typeof e.rename==`function`?(function(t){function n(n,r,i){var a=Date.now(),o=0;t(n,r,function s(c){if(c&&(c.code===`EACCES`||c.code===`EPERM`||c.code===`EBUSY`)&&Date.now()-a<6e4){setTimeout(function(){e.stat(r,function(e,a){e&&e.code===`ENOENT`?t(n,r,s):i(c)})},o),o<100&&(o+=10);return}i&&i(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.rename):e.rename),e.read=typeof e.read==`function`?(function(t){function n(n,r,i,a,o,s){var c;if(s&&typeof s==`function`){var l=0;c=function(u,d,f){if(u&&u.code===`EAGAIN`&&l<10)return l++,t.call(e,n,r,i,a,o,c);s.apply(this,arguments)}}return t.call(e,n,r,i,a,o,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n})(e.read):e.read,e.readSync=typeof e.readSync==`function`?(function(t){return function(n,r,i,a,o){for(var s=0;;)try{return t.call(e,n,r,i,a,o)}catch(e){if(e.code===`EAGAIN`&&s<10){s++;continue}throw e}}})(e.readSync):e.readSync;function t(e){e.lchmod=function(t,n,i){e.open(t,r.O_WRONLY|r.O_SYMLINK,n,function(t,r){if(t){i&&i(t);return}e.fchmod(r,n,function(t){e.close(r,function(e){i&&i(t||e)})})})},e.lchmodSync=function(t,n){var i=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,n),a=!0,o;try{o=e.fchmodSync(i,n),a=!1}finally{if(a)try{e.closeSync(i)}catch{}else e.closeSync(i)}return o}}function n(e){r.hasOwnProperty(`O_SYMLINK`)&&e.futimes?(e.lutimes=function(t,n,i,a){e.open(t,r.O_SYMLINK,function(t,r){if(t){a&&a(t);return}e.futimes(r,n,i,function(t){e.close(r,function(e){a&&a(t||e)})})})},e.lutimesSync=function(t,n,i){var a=e.openSync(t,r.O_SYMLINK),o,s=!0;try{o=e.futimesSync(a,n,i),s=!1}finally{if(s)try{e.closeSync(a)}catch{}else e.closeSync(a)}return o}):e.futimes&&(e.lutimes=function(e,t,n,r){r&&process.nextTick(r)},e.lutimesSync=function(){})}function i(t){return t&&function(n,r,i){return t.call(e,n,r,function(e){d(e)&&(e=null),i&&i.apply(this,arguments)})}}function a(t){return t&&function(n,r){try{return t.call(e,n,r)}catch(e){if(!d(e))throw e}}}function s(t){return t&&function(n,r,i,a){return t.call(e,n,r,i,function(e){d(e)&&(e=null),a&&a.apply(this,arguments)})}}function c(t){return t&&function(n,r,i){try{return t.call(e,n,r,i)}catch(e){if(!d(e))throw e}}}function l(t){return t&&function(n,r,i){typeof r==`function`&&(i=r,r=null);function a(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),i&&i.apply(this,arguments)}return r?t.call(e,n,r,a):t.call(e,n,a)}}function u(t){return t&&function(n,r){var i=r?t.call(e,n,r):t.call(e,n);return i&&(i.uid<0&&(i.uid+=4294967296),i.gid<0&&(i.gid+=4294967296)),i}}function d(e){return!e||e.code===`ENOSYS`||(!process.getuid||process.getuid()!==0)&&(e.code===`EINVAL`||e.code===`EPERM`)}}})),yt=n(((t,n)=>{var r=e(`stream`).Stream;n.exports=i;function i(e){return{ReadStream:t,WriteStream:n};function t(n,i){if(!(this instanceof t))return new t(n,i);r.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags=`r`,this.mode=438,this.bufferSize=65536,i||={};for(var o=Object.keys(i),s=0,c=o.length;s<c;s++){var l=o[s];this[l]=i[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.end===void 0)this.end=1/0;else if(typeof this.end!=`number`)throw TypeError(`end must be a Number`);if(this.start>this.end)throw Error(`start must be <= end`);this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){a.emit(`error`,e),a.readable=!1;return}a.fd=t,a.emit(`open`,t),a._read()})}function n(t,i){if(!(this instanceof n))return new n(t,i);r.call(this),this.path=t,this.fd=null,this.writable=!0,this.flags=`w`,this.encoding=`binary`,this.mode=438,this.bytesWritten=0,i||={};for(var a=Object.keys(i),o=0,s=a.length;o<s;o++){var c=a[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=`number`)throw TypeError(`start must be a Number`);if(this.start<0)throw Error(`start must be >= zero`);this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}})),bt=n(((e,t)=>{t.exports=r;var n=Object.getPrototypeOf||function(e){return e.__proto__};function r(e){if(typeof e!=`object`||!e)return e;if(e instanceof Object)var t={__proto__:n(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}})),xt=n(((t,n)=>{var r=e(`fs`),i=vt(),a=yt(),o=bt(),s=e(`util`),c,l;typeof Symbol==`function`&&typeof Symbol.for==`function`?(c=Symbol.for(`graceful-fs.queue`),l=Symbol.for(`graceful-fs.previous`)):(c=`___graceful-fs.queue`,l=`___graceful-fs.previous`);function u(){}function d(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var f=u;s.debuglog?f=s.debuglog(`gfs4`):/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&(f=function(){var e=s.format.apply(s,arguments);e=`GFS4: `+e.split(/\n/).join(`
|
|
3
3
|
GFS4: `),console.error(e)}),r[c]||(d(r,global[c]||[]),r.close=(function(e){function t(t,n){return e.call(r,t,function(e){e||g(),typeof n==`function`&&n.apply(this,arguments)})}return Object.defineProperty(t,l,{value:e}),t})(r.close),r.closeSync=(function(e){function t(t){e.apply(r,arguments),g()}return Object.defineProperty(t,l,{value:e}),t})(r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||``)&&process.on(`exit`,function(){f(r[c]),e(`assert`).equal(r[c].length,0)})),global[c]||d(global,r[c]),n.exports=p(o(r)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched&&(n.exports=p(r),r.__patched=!0);function p(e){i(e),e.gracefulify=p,e.createReadStream=te,e.createWriteStream=ne;var t=e.readFile;e.readFile=n;function n(e,n,r){return typeof n==`function`&&(r=n,n=null),i(e,n,r);function i(e,n,r,a){return t(e,n,function(t){t&&(t.code===`EMFILE`||t.code===`ENFILE`)?m([i,[e,n,r],t,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=o;function o(e,t,n,i){return typeof n==`function`&&(i=n,n=null),a(e,t,n,i);function a(e,t,n,i,o){return r(e,t,n,function(r){r&&(r.code===`EMFILE`||r.code===`ENFILE`)?m([a,[e,t,n,i],r,o||Date.now(),Date.now()]):typeof i==`function`&&i.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=c);function c(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return s(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=u);function u(e,t,n,r){return typeof n==`function`&&(r=n,n=0),i(e,t,n,r);function i(e,t,n,r,a){return l(e,t,n,function(o){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}var d=e.readdir;e.readdir=h;var f=/^v[0-5]\./;function h(e,t,n){typeof t==`function`&&(n=t,t=null);var r=f.test(process.version)?function(e,t,n,r){return d(e,i(e,t,n,r))}:function(e,t,n,r){return d(e,t,i(e,t,n,r))};return r(e,t,n);function i(e,t,n,i){return function(a,o){a&&(a.code===`EMFILE`||a.code===`ENFILE`)?m([r,[e,t,n],a,i||Date.now(),Date.now()]):(o&&o.sort&&o.sort(),typeof n==`function`&&n.call(this,a,o))}}}if(process.version.substr(0,4)===`v0.8`){var g=a(e);x=g.ReadStream,S=g.WriteStream}var _=e.ReadStream;_&&(x.prototype=Object.create(_.prototype),x.prototype.open=ee);var v=e.WriteStream;v&&(S.prototype=Object.create(v.prototype),S.prototype.open=C),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return S},set:function(e){S=e},enumerable:!0,configurable:!0});var y=x;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(e){y=e},enumerable:!0,configurable:!0});var b=S;Object.defineProperty(e,"FileWriteStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0});function x(e,t){return this instanceof x?(_.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function ee(){var e=this;w(e.path,e.flags,e.mode,function(t,n){t?(e.autoClose&&e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n),e.read())})}function S(e,t){return this instanceof S?(v.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function C(){var e=this;w(e.path,e.flags,e.mode,function(t,n){t?(e.destroy(),e.emit(`error`,t)):(e.fd=n,e.emit(`open`,n))})}function te(t,n){return new e.ReadStream(t,n)}function ne(t,n){return new e.WriteStream(t,n)}var re=e.open;e.open=w;function w(e,t,n,r){return typeof n==`function`&&(r=n,n=null),i(e,t,n,r);function i(e,t,n,r,a){return re(e,t,n,function(o,s){o&&(o.code===`EMFILE`||o.code===`ENFILE`)?m([i,[e,t,n,r],o,a||Date.now(),Date.now()]):typeof r==`function`&&r.apply(this,arguments)})}}return e}function m(e){f(`ENQUEUE`,e[0].name,e[1]),r[c].push(e),_()}var h;function g(){for(var e=Date.now(),t=0;t<r[c].length;++t)r[c][t].length>2&&(r[c][t][3]=e,r[c][t][4]=e);_()}function _(){if(clearTimeout(h),h=void 0,r[c].length!==0){var e=r[c].shift(),t=e[0],n=e[1],i=e[2],a=e[3],o=e[4];if(a===void 0)f(`RETRY`,t.name,n),t.apply(null,n);else if(Date.now()-a>=6e4){f(`TIMEOUT`,t.name,n);var s=n.pop();typeof s==`function`&&s.call(null,i)}else{var l=Date.now()-o,u=Math.max(o-a,1);l>=Math.min(u*1.2,100)?(f(`RETRY`,t.name,n),t.apply(null,n.concat([a]))):r[c].push(e)}h===void 0&&(h=setTimeout(_,0))}}})),St=n(((e,t)=>{function n(e,t){typeof t==`boolean`&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error(`RetryOperation timeout occurred`)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0){if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1}var r=this,i=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n);return this._options.unref&&i.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log(`Using RetryOperation.try() is deprecated`),this.attempt(e)},n.prototype.start=function(e){console.log(`Using RetryOperation.start() is deprecated`),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=i,n=o)}return t}})),Ct=n((e=>{var t=St();e.operation=function(n){return new t(e.timeouts(n),{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error(`minTimeout is greater than maxTimeout`);for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*t.factor**+e);return r=Math.min(r,t.maxTimeout),r},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],t)typeof t[i]==`function`&&r.push(i);for(var a=0;a<r.length;a++){var o=r[a],s=t[o];t[o]=function(r){var i=e.operation(n),a=Array.prototype.slice.call(arguments,1),o=a.pop();a.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),o.apply(this,arguments))}),i.attempt(function(){r.apply(t,a)})}.bind(t,s),t[o].options=n}}})),wt=n(((e,t)=>{t.exports=Ct()})),Tt=n(((e,t)=>{t.exports=[`SIGABRT`,`SIGALRM`,`SIGHUP`,`SIGINT`,`SIGTERM`],process.platform!==`win32`&&t.exports.push(`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&t.exports.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`,`SIGUNUSED`)})),Et=n(((t,n)=>{var r=global.process;let i=function(e){return e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`};if(!i(r))n.exports=function(){return function(){}};else{var a=e(`assert`),o=Tt(),s=/^win/i.test(r.platform),c=e(`events`);typeof c!=`function`&&(c=c.EventEmitter);var l;r.__signal_exit_emitter__?l=r.__signal_exit_emitter__:(l=r.__signal_exit_emitter__=new c,l.count=0,l.emitted={}),l.infinite||(l.setMaxListeners(1/0),l.infinite=!0),n.exports=function(e,t){if(!i(global.process))return function(){};a.equal(typeof e,`function`,`a callback must be provided for exit handler`),p===!1&&m();var n=`exit`;return t&&t.alwaysLast&&(n=`afterexit`),l.on(n,e),function(){l.removeListener(n,e),l.listeners(`exit`).length===0&&l.listeners(`afterexit`).length===0&&u()}};var u=function(){!p||!i(global.process)||(p=!1,o.forEach(function(e){try{r.removeListener(e,f[e])}catch{}}),r.emit=_,r.reallyExit=h,--l.count)};n.exports.unload=u;var d=function(e,t,n){l.emitted[e]||(l.emitted[e]=!0,l.emit(e,t,n))},f={};o.forEach(function(e){f[e]=function(){i(global.process)&&r.listeners(e).length===l.count&&(u(),d(`exit`,null,e),d(`afterexit`,null,e),s&&e===`SIGHUP`&&(e=`SIGINT`),r.kill(r.pid,e))}}),n.exports.signals=function(){return o};var p=!1,m=function(){p||!i(global.process)||(p=!0,l.count+=1,o=o.filter(function(e){try{return r.on(e,f[e]),!0}catch{return!1}}),r.emit=v,r.reallyExit=g)};n.exports.load=m;var h=r.reallyExit,g=function(e){i(global.process)&&(r.exitCode=e||0,d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),h.call(r,r.exitCode))},_=r.emit,v=function(e,t){if(e===`exit`&&i(global.process)){t!==void 0&&(r.exitCode=t);var n=_.apply(this,arguments);return d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),n}return _.apply(this,arguments)}}})),Dt=n(((e,t)=>{let n=Symbol();function r(e,t,r){let i=t[n];if(i)return t.stat(e,(e,t)=>{if(e)return r(e);r(null,t.mtime,i)});let a=new Date(Math.ceil(Date.now()/1e3)*1e3+5);t.utimes(e,a,a,i=>{if(i)return r(i);t.stat(e,(e,i)=>{if(e)return r(e);let a=i.mtime.getTime()%1e3==0?`s`:`ms`;Object.defineProperty(t,n,{value:a}),r(null,i.mtime,a)})})}function i(e){let t=Date.now();return e===`s`&&(t=Math.ceil(t/1e3)*1e3),new Date(t)}t.exports.probe=r,t.exports.getMtime=i})),Ot=n(((t,n)=>{let r=e(`path`),i=xt(),a=wt(),o=Et(),s=Dt(),c={};function l(e,t){return t.lockfilePath||`${e}.lock`}function u(e,t,n){if(!t.realpath)return n(null,r.resolve(e));t.fs.realpath(e,n)}function d(e,t,n){let r=l(e,t);t.fs.mkdir(r,i=>{if(!i)return s.probe(r,t.fs,(e,i,a)=>{if(e)return t.fs.rmdir(r,()=>{}),n(e);n(null,i,a)});if(i.code!==`EEXIST`)return n(i);if(t.stale<=0)return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));t.fs.stat(r,(r,i)=>{if(r)return r.code===`ENOENT`?d(e,{...t,stale:0},n):n(r);if(!f(i,t))return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));p(e,t,r=>{if(r)return n(r);d(e,{...t,stale:0},n)})})})}function f(e,t){return e.mtime.getTime()<Date.now()-t.stale}function p(e,t,n){t.fs.rmdir(l(e,t),e=>{if(e&&e.code!==`ENOENT`)return n(e);n()})}function m(e,t){let n=c[e];n.updateTimeout||(n.updateDelay=n.updateDelay||t.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,t.fs.stat(n.lockfilePath,(r,i)=>{let a=n.lastUpdate+t.stale<Date.now();if(r)return r.code===`ENOENT`||a?h(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,m(e,t));if(n.mtime.getTime()!==i.mtime.getTime())return h(e,n,Object.assign(Error(`Unable to update lock within the stale threshold`),{code:`ECOMPROMISED`}));let o=s.getMtime(n.mtimePrecision);t.fs.utimes(n.lockfilePath,o,o,r=>{let i=n.lastUpdate+t.stale<Date.now();if(!n.released){if(r)return r.code===`ENOENT`||i?h(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,m(e,t));n.mtime=o,n.lastUpdate=Date.now(),n.updateDelay=null,m(e,t)}})})},n.updateDelay),n.updateTimeout.unref&&n.updateTimeout.unref())}function h(e,t,n){t.released=!0,t.updateTimeout&&clearTimeout(t.updateTimeout),c[e]===t&&delete c[e],t.options.onCompromised(n)}function g(e,t,n){t={stale:1e4,update:null,realpath:!0,retries:0,fs:i,onCompromised:e=>{throw e},...t},t.retries=t.retries||0,t.retries=typeof t.retries==`number`?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2e3),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1e3),u(e,t,(e,r)=>{if(e)return n(e);let i=a.operation(t.retries);i.attempt(()=>{d(r,t,(e,a,o)=>{if(i.retry(e))return;if(e)return n(i.mainError());let s=c[r]={lockfilePath:l(r,t),mtime:a,mtimePrecision:o,options:t,lastUpdate:Date.now()};m(r,t),n(null,e=>{if(s.released)return e&&e(Object.assign(Error(`Lock is already released`),{code:`ERELEASED`}));_(r,{...t,realpath:!1},e)})})})})}function _(e,t,n){t={fs:i,realpath:!0,...t},u(e,t,(e,r)=>{if(e)return n(e);let i=c[r];if(!i)return n(Object.assign(Error(`Lock is not acquired/owned by you`),{code:`ENOTACQUIRED`}));i.updateTimeout&&clearTimeout(i.updateTimeout),i.released=!0,delete c[r],p(r,t,n)})}function v(e,t,n){t={stale:1e4,realpath:!0,fs:i,...t},t.stale=Math.max(t.stale||0,2e3),u(e,t,(e,r)=>{if(e)return n(e);t.fs.stat(l(r,t),(e,r)=>e?e.code===`ENOENT`?n(null,!1):n(e):n(null,!f(r,t)))})}function y(){return c}o(()=>{for(let e in c){let t=c[e].options;try{t.fs.rmdirSync(l(e,t))}catch{}}}),n.exports.lock=g,n.exports.unlock=_,n.exports.check=v,n.exports.getLocks=y})),kt=n(((e,t)=>{let n=xt();function r(e){let t=[`mkdir`,`realpath`,`stat`,`rmdir`,`utimes`],n={...e};return t.forEach(t=>{n[t]=(...n)=>{let r=n.pop(),i;try{i=e[`${t}Sync`](...n)}catch(e){return r(e)}r(null,i)}}),n}function i(e){return(...t)=>new Promise((n,r)=>{t.push((e,t)=>{e?r(e):n(t)}),e(...t)})}function a(e){return(...t)=>{let n,r;if(t.push((e,t)=>{n=e,r=t}),e(...t),n)throw n;return r}}function o(e){if(e={...e},e.fs=r(e.fs||n),typeof e.retries==`number`&&e.retries>0||e.retries&&typeof e.retries.retries==`number`&&e.retries.retries>0)throw Object.assign(Error(`Cannot use retries with the sync api`),{code:`ESYNC`});return e}t.exports={toPromise:i,toSync:a,toSyncOptions:o}})),At=t(n(((e,t)=>{let n=Ot(),{toPromise:r,toSync:i,toSyncOptions:a}=kt();async function o(e,t){let i=await r(n.lock)(e,t);return r(i)}function s(e,t){let r=i(n.lock)(e,a(t));return i(r)}function c(e,t){return r(n.unlock)(e,t)}function l(e,t){return i(n.unlock)(e,a(t))}function u(e,t){return r(n.check)(e,t)}function d(e,t){return i(n.check)(e,a(t))}t.exports=o,t.exports.lock=o,t.exports.unlock=c,t.exports.lockSync=s,t.exports.unlockSync=l,t.exports.check=u,t.exports.checkSync=d}))(),1);const jt=5e3;function Mt(e,t,n){if(!(e instanceof Error)||!(`code`in e)||e.code!==`ELOCKED`)throw e;let r=t-performance.now();if(r<=0)throw Object.assign(Error(`Could not acquire Pi trust lock at ${n}.lock within ${jt}ms`,{cause:e}),{code:`ELOCKED`});return Math.min(25,r)}function Nt(e,t){ze()?.warn(t,e)}function Pt(e,t){if(e.length===0)return;if(e.length===1)throw e[0];let[n,r]=e,i=n instanceof Error?n.message:String(n),a=r instanceof Error?r.message:String(r);throw AggregateError(e,`Pi trust update failed: ${i}\nReleasing Pi trust lock ${t}.lock also failed: ${a}`)}async function Ft(e,t,n){await ne(`${t}.ok.lock`,async()=>{let t=performance.now()+jt,r;for(;;)try{r=await At.default.lock(k(e),{realpath:!1,lockfilePath:`${e}.lock`});break}catch(n){await Ie(Mt(n,t,e))}let i=[];try{n()}catch(e){i.push(e)}finally{try{await r()}catch(e){i.push(e)}}Pt(i,e)},{onWarn:Nt})}function It(e,t,n){S(`${t}.ok.lock`,()=>{let t=performance.now()+jt,r=new Int32Array(new SharedArrayBuffer(4)),i;for(;;)try{i=At.default.lockSync(k(e),{realpath:!1,lockfilePath:`${e}.lock`});break}catch(n){Atomics.wait(r,0,0,Mt(n,t,e))}let a=[];try{n()}catch(e){a.push(e)}finally{try{i()}catch(e){a.push(e)}}Pt(a,e)},{onWarn:Nt})}const Lt=[`settings.json`,`prompts`,`themes`,`SYSTEM.md`,`APPEND_SYSTEM.md`];var Rt=class extends Error{name=`PiResourceInspectionError`};function zt(e){let t;try{t=P(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}let n;try{n=R(e)}catch(e){throw t.isSymbolicLink()&&e.code===`ENOENT`?new Rt(me(`missing-symlink-target`),{cause:e}):e}return ke(e,M.R_OK|(n.isDirectory()?M.X_OK:0)),!0}function Bt(e){return e===`open-knowledge`||e.startsWith(`open-knowledge-`)}function Vt(e,t,n){let r=e;try{let i=L(e),a;r=t;try{a=L(t)}catch(e){if(e.code!==`ENOENT`)throw e;a=j(t)}let o=A(a,`.agents`,`skills`),s=[];for(let e of Lt)r=A(i,`.pi`,e),zt(r)&&s.push(r);if(r=A(i,`.pi`,`extensions`),zt(r))for(let t of I(r).sort()){let i=A(r,t);j(n)!==A(j(e),`.pi`,`extensions`,t)&&s.push(i)}for(let e of[A(i,`.pi`,`skills`),A(i,`.agents`,`skills`)])if(e!==o&&(r=e,zt(e)))for(let t of I(e).sort())Bt(t)||s.push(A(e,t));let c=k(i);for(;c!==i;){r=A(c,`.agents`,`skills`),r!==o&&zt(r)&&s.push(r);let e=k(c);if(e===c)break;c=e}return s.length===0?{kind:`none`}:{kind:`shared`,paths:s.sort()}}catch(e){return{kind:`unreadable`,error:`Could not inspect Pi project resources at ${G(r)}: ${e instanceof Rt?e.message:me(T(e))}`}}}function Ht(e,t,n){let r=j(e),i=le({home:t,env:n??(t===void 0?process.env:{})});return{cwd:r,bridgePath:D.pi.projectConfigPath(r),trustPath:A(i,`trust.json`)}}function Ut(e){try{let t=L(e);return R(t).isDirectory()?(ke(t,M.X_OK),{kind:`ready`,project:{path:e,canonical:t}}):{kind:`refused`,error:`Pi project path ${G(e)} is not a directory; restore the intended project directory, then retry`}}catch(t){return{kind:`refused`,error:`Pi project directory ${G(e)} could not be resolved or accessed: ${G(t instanceof Error?t.message:String(t))}; restore the directory or symlink and check its permissions, then retry`}}}function Wt(e){let t=Ut(e.path);if(t.kind===`refused`)return t.error;if(t.project.canonical!==e.canonical)return`Pi project path ${G(e.path)} changed while waiting for its trust lock; restore the intended project location, then retry`}function Gt(e,t,n){let r=ve(D.pi,e,n,t);if(r.kind===`absent`)return{state:`absent`,text:null};if(r.kind!==`present`)return{state:`unreadable`,text:null};let i=r.entry,a=Array.isArray(i.args)&&typeof i.args[0]==`string`?i.args[0]:null;return ye(i)?{state:`own-current`,text:a}:se(i)?{state:`own-stale`,text:a}:{state:`foreign`,text:a}}function Kt(e,t){let n;try{n=F(e.path,`utf-8`)}catch(t){let n=t.code;return e.kind===`missing`&&n===`ENOENT`?{state:`untrusted`,entries:{},trailingNewline:!1}:{state:`unreadable`,reason:T(t)}}if(n.trim()===``)return{state:`untrusted`,entries:{},trailingNewline:!1};let r;try{r=JSON.parse(n)}catch{return{state:`unreadable`,reason:`invalid-json`}}return Te(r)?{state:r[t]===!0?`trusted`:`untrusted`,entries:r,trailingNewline:n.endsWith(`
|
|
4
4
|
`)}:{state:`unreadable`,reason:`invalid-json`}}function qt(e){switch(e){case`invalid-json`:return`the file is not a valid JSON object; repair its JSON, then retry`;case`path-changed`:return`the path changed while waiting for its lock; retry to check its current state`;case`unavailable-root`:return`the filesystem root is unavailable; reconnect the drive or network share, then retry`;default:return me(e)}}function Q(e,t){return{kind:`refused`,error:`trust store ${G(e)}: ${qt(t)}`}}function Jt(e){let t=Ee(e);try{switch(t.kind){case`declined`:return Q(e,t.reason);case`ready`:return{kind:`ready`,path:L(t.path)};case`not-present`:break;default:throw Error(`unhandled trust file resolution: ${t}`)}let n=k(e),r=[O(e)],i=P(n,{throwIfNoEntry:!1});for(;!i;){let t=k(n);if(t===n)return Q(e,`unavailable-root`);r.unshift(O(n)),n=t,i=P(n,{throwIfNoEntry:!1})}try{return{kind:`missing`,path:A(L(n),...r)}}catch(t){return Q(e,i.isSymbolicLink()&&t.code===`ENOENT`?`missing-symlink-target`:T(t))}}catch(t){return Q(e,T(t))}}function Yt(e,t){let n=Jt(e);return n.kind===`refused`?n:n.path!==t.path||t.kind===`ready`&&n.kind===`missing`?Q(e,`path-changed`):n}function Xt(e,t,n){let r=Ht(e,t,n),i=Ut(r.cwd);if(i.kind===`refused`)return{...r,project:`unavailable`,error:i.error};let a=Gt(r.cwd,r.bridgePath,t).state,o=Jt(r.trustPath),s=o.kind===`refused`?`unreadable`:o.kind===`missing`?`untrusted`:Kt(o,i.project.canonical).state;return{...r,project:`ready`,canonicalCwd:i.project.canonical,bridge:a,trust:s,bridgeLoadable:(a===`own-current`||a===`own-stale`)&&s===`trusted`,otherExtensions:Zt(r.bridgePath).displayNames}}function Zt(e){let t=k(e),n=O(e);try{return{displayNames:I(t).filter(e=>e!==n&&e.endsWith(`.ts`)).sort().map(e=>G(JSON.stringify(e)))}}catch{return{displayNames:[]}}}async function Qt(e,t={mode:`published`},n,r,i){let a=Ht(e,n,r),o=Ut(a.cwd);if(o.kind===`refused`)return{...a,ok:!1,bridge:`refused-project-path`,trust:`skipped`,error:o.error};if(i!==void 0&&o.project.canonical!==i)return{...a,ok:!1,bridge:`refused-project-path`,trust:`skipped`,error:`The approved Pi project directory ${G(i)} no longer matches the current directory ${G(o.project.canonical)}. Reopen the intended project and approve the Pi integration again; no bridge or trust settings were changed.`};let s=Gt(a.cwd,a.bridgePath,n);if(s.state===`foreign`)return{...a,ok:!1,bridge:`refused-foreign`,trust:`skipped`};if(s.state===`unreadable`)return{...a,ok:!1,bridge:`refused-unreadable`,trust:`skipped`};let c;if(s.state===`absent`)c=`written`;else{let e;try{e=Se(t)}catch{e=void 0}c=e!==void 0&&s.text===e?`unchanged`:`refreshed`}if(c!==`unchanged`){let e=we(D.pi,a.cwd,t,n,a.bridgePath);if(e.action!==`written`&&e.action!==`overwritten`)return{...a,ok:!1,bridge:`failed`,trust:`skipped`,error:e.error===void 0?`bridge write ${e.action}`:G(e.error)}}let l=await $t(a.trustPath,o.project,n??z());return{...a,ok:l.action===`already-trusted`||l.action===`added`,bridge:c,trust:l.action,...l.error===void 0?{}:{error:l.error}}}async function $t(e,t,n){let r=t.canonical,i=Jt(e);if(i.kind===`refused`)return{action:`refused-unreadable`,error:i.error};try{Ae(k(i.path),{recursive:!0})}catch(e){return{action:`failed`,error:G(e instanceof Error?e.message:String(e))}}let a={action:`added`};try{await Ft(e,i.path,()=>{let o=Wt(t);if(o){a.action=`refused-unreadable`,a.error=o;return}let s=Yt(e,i);if(s.kind===`refused`){a.action=`refused-unreadable`,a.error=s.error;return}let c=Kt(s,r);if(c.state===`trusted`){a.action=`already-trusted`;return}if(c.state===`unreadable`){a.action=`refused-unreadable`,a.error=Q(e,c.reason).error;return}let l=$(n,()=>{let t=X(n,r).find(e=>e.record.canonicalTrustPath===s.path);return t&&Z(n,t),gt(n,r,e,s.path,Object.hasOwn(c.entries,r)?{present:!0,value:c.entries[r]}:{present:!1})}),u={...c.entries,[r]:!0},d=JSON.stringify(u,null,2)+(c.trailingNewline?`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as e,S as t}from"./init-
|
|
1
|
+
import{M as e,S as t}from"./init-BxVdZi-q.mjs";import{lstatSync as n,statSync as r}from"node:fs";function i(i){let a;try{a=n(i).isSymbolicLink()}catch(t){return t.code===`ENOENT`?{kind:`not-present`}:{kind:`declined`,reason:e(t)}}let o=t(i);if(o.readPath===null)return{kind:`declined`,reason:`unresolved-symlink`};try{if(!r(o.readPath).isFile())return{kind:`declined`,reason:`not-a-file`}}catch(t){return{kind:`declined`,reason:a&&t.code===`ENOENT`?`missing-symlink-target`:e(t)}}return{kind:`ready`,path:o.writePath,symlink:a}}export{i as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./launch-json-removal-
|
|
1
|
+
import{t as e}from"./launch-json-removal-DCpJPTRd.mjs";import{join as t}from"node:path";function n(n){let i=n.logger??r,a=t(n.projectDir,`.claude`,`launch.json`);if(n.reclaimDisableEnv===`1`)return i({event:`launch-json-repair-skipped`,severity:`info`,reason:`reclaim-disabled`}),{outcome:{configPath:a,outcome:`skipped-reclaim-disabled`},repairedCount:0};let o;try{o=(n.removeOwnLaunchEntryFn??e)(n.projectDir)}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`launch-json-repair-write-failed`,severity:`warn`,configPath:a}),{outcome:{configPath:a,outcome:`write-failed`,error:t},repairedCount:0}}let s=o.kind===`removed`;return s&&i({event:`launch-json-repair-removed`,severity:`info`,configPath:a}),{outcome:{configPath:a,outcome:o.kind},repairedCount:+!!s}}function r(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{n as repairLaunchJson};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{J as t,X as n,et as r,f as i,rt as a,y as o}from"./init-
|
|
1
|
+
import{T as e}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{J as t,X as n,et as r,f as i,rt as a,y as o}from"./init-BxVdZi-q.mjs";import{homedir as s}from"node:os";function c(e){let{priorCommand:t,priorArgs:n}=l(e.priorEntry);return{event:`mcp-config-migrate`,scope:e.scope,surface:e.surface,editorId:e.editorId,configPath:e.configPath,priorCommand:t,priorArgs:n}}function l(e){return{priorCommand:typeof e.command==`string`?e.command.slice(0,200):null,priorArgs:Array.isArray(e.args)?e.args.slice(0,10).map(e=>typeof e==`string`?e.slice(0,200):e):null}}function u(e){let r=e.logger??m,i=e.home??s(),a=[];if(e.reclaimDisableEnv===`1`)return r({event:`mcp-config-repair-skipped`,severity:`info`,reason:`reclaim-disabled`}),{outcomes:a,repairedCount:0};for(let o of t){let t=n[o],s=d(()=>t.configPath(``,i));if(s!==null&&a.push(f({scope:`user`,editorId:o,target:t,home:i,cwd:``,configPath:s,configPathOverride:void 0,logger:r})),t.projectConfigPath){let n=t.projectConfigPath,i=d(()=>n(e.projectDir));i!==null&&a.push(f({scope:`project`,editorId:o,target:t,home:void 0,cwd:e.projectDir,configPath:i,configPathOverride:i,logger:r}))}}return{outcomes:a,repairedCount:a.filter(e=>e.outcome===`repaired`).length}}function d(e){try{return e()}catch{return null}}function f(t){let n={scope:t.scope,editorId:t.editorId,configPath:t.configPath},s=i(t.target,t.cwd,t.home,t.configPathOverride);if(s===null)return{...n,outcome:`no-entry`};if(t.target.format===`file`){if(a(s))return{...n,outcome:`canonical`}}else{let i=e(s);if(i.kind===`recognized`&&i.disposition===`keep`){let e=r(s,t.target.buildEntry(t.cwd,{}));if(e.length===0)return{...n,outcome:`canonical`};let i=p(t,n,o(t.target,t.cwd,{mode:`published`,skipAvailabilityCheck:!0,pruneOnly:!0},t.home,t.configPathOverride));return(i.outcome===`repaired`||i.outcome===`canonical`)&&t.logger({event:i.outcome===`repaired`?`mcp-config-repair-pruned`:`mcp-config-repair-prune-unchanged`,severity:i.outcome===`repaired`?`info`:`warn`,scope:t.scope,editorId:t.editorId,configPath:t.configPath,keys:e}),i.outcome===`canonical`?{...n,outcome:`prune-unchanged`}:i}if(i.kind===`declined`&&t.scope===`project`)return t.logger({event:`mcp-config-repair-skipped-foreign`,severity:`info`,scope:t.scope,editorId:t.editorId,configPath:t.configPath,reason:i.reason}),{...n,outcome:`foreign`,reason:i.reason}}return t.logger({...c({scope:t.scope,surface:`cli-repair`,editorId:t.editorId,configPath:t.configPath,priorEntry:s}),severity:`info`}),p(t,n,o(t.target,t.cwd,{mode:`published`,skipAvailabilityCheck:!0},t.home,t.configPathOverride))}function p(e,t,n){if(n.action===`failed`){let r=n.error??`unknown write failure`;return e.logger({event:`mcp-config-repair-write-failed`,severity:`warn`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,error:r}),{...t,outcome:`write-failed`,error:r}}return n.action===`declined`?(e.logger({event:`mcp-config-repair-declined`,severity:`warn`,scope:e.scope,editorId:e.editorId,configPath:e.configPath,reason:n.declineReason}),{...t,outcome:`declined`,reason:n.declineReason}):n.action===`skipped-flag`?{...t,outcome:`canonical`}:{...t,outcome:`repaired`}}function m(e){process.stderr.write(`${JSON.stringify(e)}\n`)}export{l as n,u as repairMcpConfigs,c as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-tZXQYakl.mjs";import{Gc as t,H as n,Kc as r,Ml as i,Nl as a,U as o,Vc as s,Vu as c,W as l,_a as u,cf as d,ga as ee,gf as f,l as p,u as te,vf as m,xf as h}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{Eo as g,Fi as _,Pi as v,Qo as y,Sa as b,Zn as x,_i as S,ai as C,di as w,dr as T,es as E,kt as D,m as O,ns as k,sr as A,ts as j,vi as M,wr as N,xs as P,yi as ne}from"./dist-Bxhfiafh.mjs";import{t as F}from"./yazl-BBz29IQN.mjs";import{Ct as I,ot as re,st as ie}from"./init-DGuKwx2e.mjs";import{l as ae,x as oe}from"./registry-probes-c5NiVSQQ.mjs";import{c as se}from"./colors-r_owlCuY.mjs";import{t as ce}from"./is-object-BGze3w87.mjs";import{n as le}from"./constants-DkpwkeOT.mjs";import"./loader-CwnBJ5G_.mjs";import"./preview-BStZha-C.mjs";import{execSync as ue,spawnSync as de}from"node:child_process";import{basename as L,dirname as R,isAbsolute as fe,join as z,relative as pe,resolve as B,sep as V}from"node:path";import{closeSync as me,cpSync as he,createWriteStream as ge,existsSync as H,lstatSync as _e,mkdirSync as U,mkdtempSync as ve,openSync as ye,readFileSync as W,readSync as be,readdirSync as G,readlinkSync as xe,realpathSync as Se,rmSync as K,rmdirSync as Ce,statSync as we,writeFileSync as q}from"node:fs";import{arch as Te,freemem as Ee,homedir as J,hostname as De,platform as Oe,release as ke,tmpdir as Ae,totalmem as je,type as Me,uptime as Ne}from"node:os";import"node:fs/promises";import{createHash as Pe}from"node:crypto";function Fe(e,t){let n=t.map(e=>[P(e),e]);for(let t of e){let e=P(t);if(e===null)continue;let r=n.find(([t])=>t===e);if(r!==void 0)return r[1]}}function Ie(e){let{override:t,storedPreference:n,preferenceList:r,supportedLocales:i}=e,a=e.autoDetectableLocales??i;if(t!==void 0){let e=Fe([t],i);if(e!==void 0)return{locale:e,source:`override`}}if(n!==void 0&&n!==`system`&&i.includes(n))return{locale:n,source:`explicit`};let o=Fe(r,a);return o===void 0?{locale:`en`,source:`fallback`}:{locale:o,source:`system`}}function Le(e,t=Date.now()){let n=Date.parse(e);if(!Number.isFinite(n))return`unknown`;let r=Math.floor(Math.max(0,t-n)/1e3);if(r<60)return`${r}s ago`;let i=Math.floor(r/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}const Re=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`audit`,`deinit`,`auth`]);function ze(e,t,n=T){if(e!==void 0&&!Re.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Be=null;function Ve(e){Be=e}function He(){return Be??process.cwd()}const Ue=`Open Knowledge`;function We(e={}){let t=e.platformName??process.platform,n=e.productName??f().productName;return re(t).join(ie({...e,platformName:t}),n)}function Ge(e={}){let t=e.platformName??process.platform,n=e.home??J(),r=e.env??process.env,i=re(t),a;return a=t===`win32`?r.LOCALAPPDATA||i.join(n,`AppData`,`Local`):t===`darwin`?i.join(n,`Library`,`Caches`):r.XDG_CACHE_HOME||i.join(n,`.cache`),i.join(a,`${f().packageName.replaceAll(`/`,``)}-updater`)}function Ke(e){if(typeof e!=`object`||!e)return null;let t=e.recentProjects;if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`object`||!e)continue;let t=e;typeof t.path==`string`&&typeof t.name==`string`&&n.push({path:t.path,name:t.name})}return n}function qe(e){let t=z(e,`state.json`);if(!H(t))return[];let n;try{n=JSON.parse(W(t,`utf-8`))}catch{return[]}return Ke(n)??[]}function Je(e){let t=z(e,`state.json`);if(!H(t))return!1;try{return Ke(JSON.parse(W(t,`utf-8`)))!==null}catch{return!1}}const Ye=8192;function Xe(e,t){if(e.outcome===`not-present`)return`not-present (no DiagnosticReports directory)`;if(e.outcome===`unreadable-directory`)return`unreadable (${e.directoryErrorCode??`unknown`} reading DiagnosticReports)`;let n=[`${e.windowDays}d`,`${e.foreignIgnored} other-process report(s) ignored`,`${e.unparseable} unparseable`];e.droppedOverCap>0&&n.push(`${e.droppedOverCap} older dropped over cap`);let r=e.files.length-t;return r>0&&n.push(`${r} vanished before staging`),e.outcome===`none-in-window`?`none found in window (${n.join(`; `)})`:`${t} collected (${n.join(`; `)})`}function Ze(e){return e.replace(/\\+\/?/g,e=>{if(!e.endsWith(`/`))return e;let t=e.length-1;return`${`\\`.repeat(t-t%2)}/`})}const Qe=RegExp(`("(?:${[`crashReporterKey`,`bootSessionUUID`,`deviceIdentifierForVendor`].join(`|`)})"\\s*:\\s*)"[^"]*"`,`g`);function $e(e){return e.replace(Qe,`$1"[REDACTED-DEVICE-ID]"`)}function et(e){return $e(Ze(e))}const tt=/^(\d{4}-\d{2}-\d{2}) (\d{2}:\d{2}:\d{2})(\.\d+)? ([+-]\d{2})(\d{2})$/;function nt(e){if(typeof e!=`string`)return null;let t=tt.exec(e.trim());if(t===null)return null;let[,n,r,i=``,a,o]=t,s=Date.parse(`${n}T${r}${i}${a}:${o}`);return Number.isNaN(s)?null:s}function rt(e){let t=ye(e,`r`);try{let e=Buffer.alloc(Ye),n=0,r=!1;for(;n<Ye;){let i=be(t,e,n,Ye-n,n);if(i===0){r=!0;break}let a=n;n+=i;let o=e.subarray(0,n).indexOf(10,a);if(o!==-1)return e.subarray(0,o).toString(`utf-8`)}return r?e.subarray(0,n).toString(`utf-8`):null}finally{me(t)}}function it(e){try{let t=rt(e);if(t===null)return{kind:`unreadable`};let n=JSON.parse(t);if(typeof n!=`object`||!n)return{kind:`unreadable`};let{name:r,app_name:i,timestamp:a}=n,o=typeof r==`string`?r:typeof i==`string`?i:null;return o===null?{kind:`unreadable`}:{kind:`named`,name:o,timestampMs:nt(a)}}catch{return{kind:`unreadable`}}}function at(e){return e===`OpenKnowledge`||e.startsWith(`OpenKnowledge `)}function ot(e,t){let n={files:[],foreignIgnored:0,unparseable:0,droppedOverCap:0,windowDays:7},r;try{r=G(e,{withFileTypes:!0})}catch(e){let t=e.code;return t===`ENOENT`?{...n,outcome:`not-present`}:{...n,outcome:`unreadable-directory`,directoryErrorCode:t??`unknown`}}let i=t.getTime()-6048e5,a=[],o=0,s=0;for(let t of r){if(!t.isFile()||!t.name.endsWith(`.ips`))continue;let n=z(e,t.name),r;try{r=we(n).mtimeMs}catch{continue}if(r<i)continue;let c=it(n),l=c.kind===`named`&&c.timestampMs!==null?c.timestampMs:r;if(c.kind===`unreadable`){s+=1;continue}if(!at(c.name)){o+=1;continue}a.push({path:n,atMs:l})}a.sort((e,t)=>t.atMs-e.atMs);let c=a.slice(0,25),l={foreignIgnored:o,unparseable:s,droppedOverCap:a.length-c.length,windowDays:7};return c.length===0?{...l,files:[],outcome:`none-in-window`}:{...l,files:c.map(e=>e.path),outcome:`collected`}}function Y(){return z(y(),`bug-reports`)}function st(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Y(),r=`${t}-bugreport`,i=z(n,`${r}.zip`);for(let e=2;H(i);e+=1)i=z(n,`${r}-${e}.zip`);return i}function ct(e,t){let{scrubbed:n}=e;return n!==void 0&&n.patterns.length>0?{file:t,lineCount:n.lineCount,patterns:[...n.patterns]}:null}function lt(e,t){let n=z(e,`.ok`,`config.yml`);if(H(n))try{let e=W(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return H(z(e,`.ok`))?Pe(`sha256`).update(B(e)).digest(`hex`).slice(0,12):null}function ut(){let e={timestamp:new Date().toISOString(),platform:Oe(),osType:Me(),osRelease:ke(),hostname:`[redacted]`,uptime:Ne(),freeMem:Ee(),totalMem:je(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=ue(`sw_vers -productVersion 2>/dev/null`,g({encoding:`utf8`})).trim()}catch{}try{let t=z(__dirname,`..`,`..`,`package.json`);H(t)&&(e.okVersion=JSON.parse(W(t,`utf8`)).version)}catch{}return e}const dt=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function ft(e){let t=L(e);return dt.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function pt(e,t){return _t(e,t).files}const mt=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function ht(e,t=ae){let n=z(e,`${t}.ShipIt`);if(!H(n))return[];let r;try{r=G(n)}catch{return[]}return mt.flatMap(e=>r.map(t=>{if(t===e)return{entry:t,suffix:-1};if(!t.startsWith(`${e}.`))return null;let n=t.slice(e.length+1);return/^\d+$/.test(n)?{entry:t,suffix:Number(n)}:null}).filter(e=>e!==null).sort((e,t)=>e.suffix-t.suffix).slice(0,4).map(e=>z(n,e.entry)))}function gt(e){if(!H(e))return[];try{let t=new Map;for(let n of G(e).filter(e=>e.endsWith(`.yaml`)).sort()){let e=n.endsWith(`.sent.yaml`)?n.slice(0,-p.length):n.slice(0,-5),r=t.get(e);r===void 0?t.set(e,[n]):r.push(n)}return[...t.values()].slice(-25).flat().map(t=>z(e,t))}catch{return[]}}function _t(e,t){if(!H(t))return{files:[],excludedByProjectSlug:0};let n=G(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>z(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(ft),i=[],a=r.filter(t=>{try{return W(t,`utf8`).includes(`"project":"${e}"`)}catch{return i.push(t),!1}});if(a.length===0)return{files:n,excludedByProjectSlug:0};let o=new Set([...a,...i]);return{files:n.filter(e=>!ft(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function vt(e){let n=z(e,`.ok`,`local`);return H(n)?{files:[`server.lock`,`last-spawn-error.log`,t,s].map(e=>z(n,e)).filter(e=>H(e))}:{files:[]}}function yt(e){let t=z(e,`.ok`,`local`,`logs`);return H(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>z(t,e)).filter(e=>H(e))}:{files:[]}}function bt(e){let t=0,n=new Map,r=e.replace(/("(?:docName|doc\.name|documentName)"\s*:\s*")((?:[^"\\]|\\.)*)"/g,(e,r,i)=>{t+=1;let a=n.get(i);return a===void 0&&(a=`doc#${Pe(`sha256`).update(i).digest(`hex`).slice(0,12)}`,n.set(i,a)),`${r}${a}"`});for(let[e,i]of[...n].sort(([e],[t])=>t.length-e.length)){if(e.length===0||!r.includes(e))continue;let n=r.split(e);t+=n.length-1,r=n.join(i)}return{text:r,count:t}}function xt(e){let t=e.revealDocNames?e.content:bt(e.content).text;if(e.redact){let{redacted:n,patterns:r,lineCount:i}=u(t);e.zipfile.addBuffer(Buffer.from(n,`utf8`),e.name),e.bundleFiles.push(e.name),r.length>0&&e.redactions.push({file:e.name,lineCount:i,patterns:r})}else e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name)}function X(e){for(let t of e.files)try{let n=W(t,`utf8`);xt({zipfile:e.zipfile,name:`${e.prefix}/${L(t)}`,content:t.endsWith(`.ips`)?et(n):n,redact:e.redact,revealDocNames:e.revealDocNames,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function St(t){let{redact:n,outputPath:r,logger:i}=t,a=t.revealDocNames??!1,o=t.userLogsDir??z(y(),`logs`),s=t.projectDir?lt(t.projectDir,i):null;U(R(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=ut();c.desktop=t.desktop??null,c.language=t.language??null;let{files:l,excludedByProjectSlug:u}=_t(s,o),{files:d}=t.projectDir?vt(t.projectDir):{files:[]},{files:f}=t.projectDir?yt(t.projectDir):{files:[]},p=t.shipItLogFiles??[],m=t.diagnosticReports?.files??[];i?.info({logFileCount:l.length,logFilesExcludedByProjectSlug:u,lockFileCount:d.length,localSinkFileCount:f.length,shipItLogFileCount:p.length,diagnosticReportCount:m.length},`files collected`);let h=[],g=[],{ZipFile:_}=await import(`./yazl-BsCX6KWo.mjs`).then(t=>e(t.default,1)),v=new _;X({zipfile:v,files:[...l,...p],prefix:`logs`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:d,prefix:`lockdir`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:f,prefix:`local-logs`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:t.bugReportLedgerFiles??[],prefix:te,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:m,prefix:`diagnostic-reports`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i});for(let e of t.extraFiles??[])try{let t=W(e.sourcePath),n=`extra/${e.zipName??L(e.sourcePath)}`;v.addBuffer(t,n),g.push(n);let r=ct(e,n);r!==null&&h.push(r)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&xt({zipfile:v,name:`note.txt`,content:t.note,redact:n,revealDocNames:a,bundleFiles:g,redactions:h});let b=new Set(m.map(e=>`diagnostic-reports/${L(e)}`)),x=g.filter(e=>b.has(e)),S=t.diagnosticReports===void 0?`not-collected (no collection attempted)`:Xe(t.diagnosticReports,x.length);v.addBuffer(Buffer.from(`${S}\n`,`utf8`),`state/diagnostic-reports-status.txt`),g.push(`state/diagnostic-reports-status.txt`);let C=JSON.stringify(c,null,2);v.addBuffer(Buffer.from(C,`utf8`),`sysinfo.json`),g.push(`sysinfo.json`);let w={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:g,redactions:h,sysinfo:c};v.addBuffer(Buffer.from(JSON.stringify(w,null,2),`utf8`),`MANIFEST.json`);let T=h.reduce((e,t)=>e+t.lineCount,0),E=new Set(p.map(e=>`logs/${L(e)}`)),D=g.filter(e=>E.has(e)),O=new Set((t.bugReportLedgerFiles??[]).map(e=>`${te}/${L(e)}`)),k=g.filter(e=>O.has(e)),A=s?g.filter(e=>e.startsWith(`logs/`)&&!ft(e)&&!E.has(e)):[],j=x.length>0?[`Crash reports under diagnostic-reports/ are rewritten on the way in,`,`independently of this setting: escaped path separators are normalised`,`so the scrub above can read them, and the identifiers that link this`,`machine's bundles to each other are replaced. Nothing else is changed;`,`they are not byte-identical to the files macOS wrote.`]:[],M=j.length>0?[`Redaction was disabled for this bundle; file contents are unmodified,`,`with one exception.`,...j]:[`Redaction was disabled for this bundle; file contents are unmodified.`],N=[`# Bug Report Bundle`,``,`Generated: ${w.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${w.disciplineVersion}`,``,`## Contents`,``,...g.map(e=>`- ${e}`),``,`## Privacy`,``,...A.length>0?[`Scope: some collected logs are user-wide rather than project-scoped.`,`These are written once per machine per day and can contain activity`,`from other projects open on this machine, including captured console`,`output:`,...A.map(e=>`- ${e}`),``]:[],...D.length>0?[`Installer logs: written by the macOS update helper rather than by`,`OpenKnowledge itself, and machine-wide rather than scoped to any one`,`project. They record the install and update history of this app on`,`this machine. Only this app is collected, never other applications`,`that use the same update mechanism:`,...D.map(e=>`- ${e}`),``]:[],...x.length>0?[`Crash reports: written by macOS itself rather than by OpenKnowledge,`,`and machine-wide rather than scoped to any one project. They record`,`why the operating system ended a process of this app — the signal or`,`exception, the code-signing verdict, and whatever text the process`,`left behind as it died. They also carry machine details the OS puts`,`in every report: the account uid, the Mac model, and the name of the`,`process that launched this app, which on a managed machine can be`,`internal tooling. The identifiers that would link this machine's`,`bundles to each other are replaced before bundling. Only this`,`app's own reports are collected, never another application's, though`,`a report of ours still names the processes it ran alongside:`,...x.map(e=>`- ${e}`),``]:[],...k.length>0?[`Send history: a small record for each bug report previously generated`,`on this machine — when it was generated, whether sending it`,`succeeded, and why it failed if it did. This is what makes a failed`,`send diagnosable at all. It is machine-wide rather than scoped to`,`this project, so it names the other projects reports were filed`,`from. It carries no document content:`,...k.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${ee.join(`, `)}`,T>0?`${T} line(s) were scrubbed across ${h.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,...j,``,`This bundle is safe to attach to a GitHub issue.`]:M].join(`
|
|
1
|
+
import{o as e}from"./rolldown-runtime-tZXQYakl.mjs";import{Gc as t,H as n,Kc as r,Ml as i,Nl as a,U as o,Vc as s,Vu as c,W as l,_a as u,cf as d,ga as ee,gf as f,l as p,u as te,vf as m,xf as h}from"./md-manager-BGnqyqi1-BfETHApY.mjs";import{Eo as g,Fi as _,Pi as v,Qo as y,Sa as b,Zn as x,_i as S,ai as C,di as w,dr as T,es as E,kt as D,m as O,ns as k,sr as A,ts as j,vi as M,wr as N,xs as P,yi as ne}from"./dist-C01O4iH2.mjs";import{t as F}from"./yazl-BBz29IQN.mjs";import{Ct as I,ot as re,st as ie}from"./init-BxVdZi-q.mjs";import{l as ae,x as oe}from"./registry-probes-CetDjX_j.mjs";import{c as se}from"./colors-r_owlCuY.mjs";import{t as ce}from"./is-object-BGze3w87.mjs";import{n as le}from"./constants-DVqvzhbh.mjs";import"./loader-D8c6sLKH.mjs";import"./preview-B6BmcZp2.mjs";import{execSync as ue,spawnSync as de}from"node:child_process";import{basename as L,dirname as R,isAbsolute as fe,join as z,relative as pe,resolve as B,sep as V}from"node:path";import{closeSync as me,cpSync as he,createWriteStream as ge,existsSync as H,lstatSync as _e,mkdirSync as U,mkdtempSync as ve,openSync as ye,readFileSync as W,readSync as be,readdirSync as G,readlinkSync as xe,realpathSync as Se,rmSync as K,rmdirSync as Ce,statSync as we,writeFileSync as q}from"node:fs";import{arch as Te,freemem as Ee,homedir as J,hostname as De,platform as Oe,release as ke,tmpdir as Ae,totalmem as je,type as Me,uptime as Ne}from"node:os";import"node:fs/promises";import{createHash as Pe}from"node:crypto";function Fe(e,t){let n=t.map(e=>[P(e),e]);for(let t of e){let e=P(t);if(e===null)continue;let r=n.find(([t])=>t===e);if(r!==void 0)return r[1]}}function Ie(e){let{override:t,storedPreference:n,preferenceList:r,supportedLocales:i}=e,a=e.autoDetectableLocales??i;if(t!==void 0){let e=Fe([t],i);if(e!==void 0)return{locale:e,source:`override`}}if(n!==void 0&&n!==`system`&&i.includes(n))return{locale:n,source:`explicit`};let o=Fe(r,a);return o===void 0?{locale:`en`,source:`fallback`}:{locale:o,source:`system`}}function Le(e,t=Date.now()){let n=Date.parse(e);if(!Number.isFinite(n))return`unknown`;let r=Math.floor(Math.max(0,t-n)/1e3);if(r<60)return`${r}s ago`;let i=Math.floor(r/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}const Re=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`audit`,`deinit`,`auth`]);function ze(e,t,n=T){if(e!==void 0&&!Re.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Be=null;function Ve(e){Be=e}function He(){return Be??process.cwd()}const Ue=`Open Knowledge`;function We(e={}){let t=e.platformName??process.platform,n=e.productName??f().productName;return re(t).join(ie({...e,platformName:t}),n)}function Ge(e={}){let t=e.platformName??process.platform,n=e.home??J(),r=e.env??process.env,i=re(t),a;return a=t===`win32`?r.LOCALAPPDATA||i.join(n,`AppData`,`Local`):t===`darwin`?i.join(n,`Library`,`Caches`):r.XDG_CACHE_HOME||i.join(n,`.cache`),i.join(a,`${f().packageName.replaceAll(`/`,``)}-updater`)}function Ke(e){if(typeof e!=`object`||!e)return null;let t=e.recentProjects;if(!Array.isArray(t))return null;let n=[];for(let e of t){if(typeof e!=`object`||!e)continue;let t=e;typeof t.path==`string`&&typeof t.name==`string`&&n.push({path:t.path,name:t.name})}return n}function qe(e){let t=z(e,`state.json`);if(!H(t))return[];let n;try{n=JSON.parse(W(t,`utf-8`))}catch{return[]}return Ke(n)??[]}function Je(e){let t=z(e,`state.json`);if(!H(t))return!1;try{return Ke(JSON.parse(W(t,`utf-8`)))!==null}catch{return!1}}const Ye=8192;function Xe(e,t){if(e.outcome===`not-present`)return`not-present (no DiagnosticReports directory)`;if(e.outcome===`unreadable-directory`)return`unreadable (${e.directoryErrorCode??`unknown`} reading DiagnosticReports)`;let n=[`${e.windowDays}d`,`${e.foreignIgnored} other-process report(s) ignored`,`${e.unparseable} unparseable`];e.droppedOverCap>0&&n.push(`${e.droppedOverCap} older dropped over cap`);let r=e.files.length-t;return r>0&&n.push(`${r} vanished before staging`),e.outcome===`none-in-window`?`none found in window (${n.join(`; `)})`:`${t} collected (${n.join(`; `)})`}function Ze(e){return e.replace(/\\+\/?/g,e=>{if(!e.endsWith(`/`))return e;let t=e.length-1;return`${`\\`.repeat(t-t%2)}/`})}const Qe=RegExp(`("(?:${[`crashReporterKey`,`bootSessionUUID`,`deviceIdentifierForVendor`].join(`|`)})"\\s*:\\s*)"[^"]*"`,`g`);function $e(e){return e.replace(Qe,`$1"[REDACTED-DEVICE-ID]"`)}function et(e){return $e(Ze(e))}const tt=/^(\d{4}-\d{2}-\d{2}) (\d{2}:\d{2}:\d{2})(\.\d+)? ([+-]\d{2})(\d{2})$/;function nt(e){if(typeof e!=`string`)return null;let t=tt.exec(e.trim());if(t===null)return null;let[,n,r,i=``,a,o]=t,s=Date.parse(`${n}T${r}${i}${a}:${o}`);return Number.isNaN(s)?null:s}function rt(e){let t=ye(e,`r`);try{let e=Buffer.alloc(Ye),n=0,r=!1;for(;n<Ye;){let i=be(t,e,n,Ye-n,n);if(i===0){r=!0;break}let a=n;n+=i;let o=e.subarray(0,n).indexOf(10,a);if(o!==-1)return e.subarray(0,o).toString(`utf-8`)}return r?e.subarray(0,n).toString(`utf-8`):null}finally{me(t)}}function it(e){try{let t=rt(e);if(t===null)return{kind:`unreadable`};let n=JSON.parse(t);if(typeof n!=`object`||!n)return{kind:`unreadable`};let{name:r,app_name:i,timestamp:a}=n,o=typeof r==`string`?r:typeof i==`string`?i:null;return o===null?{kind:`unreadable`}:{kind:`named`,name:o,timestampMs:nt(a)}}catch{return{kind:`unreadable`}}}function at(e){return e===`OpenKnowledge`||e.startsWith(`OpenKnowledge `)}function ot(e,t){let n={files:[],foreignIgnored:0,unparseable:0,droppedOverCap:0,windowDays:7},r;try{r=G(e,{withFileTypes:!0})}catch(e){let t=e.code;return t===`ENOENT`?{...n,outcome:`not-present`}:{...n,outcome:`unreadable-directory`,directoryErrorCode:t??`unknown`}}let i=t.getTime()-6048e5,a=[],o=0,s=0;for(let t of r){if(!t.isFile()||!t.name.endsWith(`.ips`))continue;let n=z(e,t.name),r;try{r=we(n).mtimeMs}catch{continue}if(r<i)continue;let c=it(n),l=c.kind===`named`&&c.timestampMs!==null?c.timestampMs:r;if(c.kind===`unreadable`){s+=1;continue}if(!at(c.name)){o+=1;continue}a.push({path:n,atMs:l})}a.sort((e,t)=>t.atMs-e.atMs);let c=a.slice(0,25),l={foreignIgnored:o,unparseable:s,droppedOverCap:a.length-c.length,windowDays:7};return c.length===0?{...l,files:[],outcome:`none-in-window`}:{...l,files:c.map(e=>e.path),outcome:`collected`}}function Y(){return z(y(),`bug-reports`)}function st(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`),n=Y(),r=`${t}-bugreport`,i=z(n,`${r}.zip`);for(let e=2;H(i);e+=1)i=z(n,`${r}-${e}.zip`);return i}function ct(e,t){let{scrubbed:n}=e;return n!==void 0&&n.patterns.length>0?{file:t,lineCount:n.lineCount,patterns:[...n.patterns]}:null}function lt(e,t){let n=z(e,`.ok`,`config.yml`);if(H(n))try{let e=W(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return H(z(e,`.ok`))?Pe(`sha256`).update(B(e)).digest(`hex`).slice(0,12):null}function ut(){let e={timestamp:new Date().toISOString(),platform:Oe(),osType:Me(),osRelease:ke(),hostname:`[redacted]`,uptime:Ne(),freeMem:Ee(),totalMem:je(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=ue(`sw_vers -productVersion 2>/dev/null`,g({encoding:`utf8`})).trim()}catch{}try{let t=z(__dirname,`..`,`..`,`package.json`);H(t)&&(e.okVersion=JSON.parse(W(t,`utf8`)).version)}catch{}return e}const dt=[{prefix:`cli`,projectTagged:!0},{prefix:`desktop`,projectTagged:!1},{prefix:`mcp`,projectTagged:!1}];function ft(e){let t=L(e);return dt.some(e=>e.projectTagged&&t.startsWith(`${e.prefix}.`))}function pt(e,t){return _t(e,t).files}const mt=[`ShipIt_stderr.log`,`ShipIt_stdout.log`];function ht(e,t=ae){let n=z(e,`${t}.ShipIt`);if(!H(n))return[];let r;try{r=G(n)}catch{return[]}return mt.flatMap(e=>r.map(t=>{if(t===e)return{entry:t,suffix:-1};if(!t.startsWith(`${e}.`))return null;let n=t.slice(e.length+1);return/^\d+$/.test(n)?{entry:t,suffix:Number(n)}:null}).filter(e=>e!==null).sort((e,t)=>e.suffix-t.suffix).slice(0,4).map(e=>z(n,e.entry)))}function gt(e){if(!H(e))return[];try{let t=new Map;for(let n of G(e).filter(e=>e.endsWith(`.yaml`)).sort()){let e=n.endsWith(`.sent.yaml`)?n.slice(0,-p.length):n.slice(0,-5),r=t.get(e);r===void 0?t.set(e,[n]):r.push(n)}return[...t.values()].slice(-25).flat().map(t=>z(e,t))}catch{return[]}}function _t(e,t){if(!H(t))return{files:[],excludedByProjectSlug:0};let n=G(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>z(t,e));if(!e)return{files:n,excludedByProjectSlug:0};let r=n.filter(ft),i=[],a=r.filter(t=>{try{return W(t,`utf8`).includes(`"project":"${e}"`)}catch{return i.push(t),!1}});if(a.length===0)return{files:n,excludedByProjectSlug:0};let o=new Set([...a,...i]);return{files:n.filter(e=>!ft(e)||o.has(e)),excludedByProjectSlug:r.length-o.size}}function vt(e){let n=z(e,`.ok`,`local`);return H(n)?{files:[`server.lock`,`last-spawn-error.log`,t,s].map(e=>z(n,e)).filter(e=>H(e))}:{files:[]}}function yt(e){let t=z(e,`.ok`,`local`,`logs`);return H(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>z(t,e)).filter(e=>H(e))}:{files:[]}}function bt(e){let t=0,n=new Map,r=e.replace(/("(?:docName|doc\.name|documentName)"\s*:\s*")((?:[^"\\]|\\.)*)"/g,(e,r,i)=>{t+=1;let a=n.get(i);return a===void 0&&(a=`doc#${Pe(`sha256`).update(i).digest(`hex`).slice(0,12)}`,n.set(i,a)),`${r}${a}"`});for(let[e,i]of[...n].sort(([e],[t])=>t.length-e.length)){if(e.length===0||!r.includes(e))continue;let n=r.split(e);t+=n.length-1,r=n.join(i)}return{text:r,count:t}}function xt(e){let t=e.revealDocNames?e.content:bt(e.content).text;if(e.redact){let{redacted:n,patterns:r,lineCount:i}=u(t);e.zipfile.addBuffer(Buffer.from(n,`utf8`),e.name),e.bundleFiles.push(e.name),r.length>0&&e.redactions.push({file:e.name,lineCount:i,patterns:r})}else e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name)}function X(e){for(let t of e.files)try{let n=W(t,`utf8`);xt({zipfile:e.zipfile,name:`${e.prefix}/${L(t)}`,content:t.endsWith(`.ips`)?et(n):n,redact:e.redact,revealDocNames:e.revealDocNames,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n},`bug-report: skipped unreadable file`)}}async function St(t){let{redact:n,outputPath:r,logger:i}=t,a=t.revealDocNames??!1,o=t.userLogsDir??z(y(),`logs`),s=t.projectDir?lt(t.projectDir,i):null;U(R(r),{recursive:!0}),i?.info({projectSlug:s},`gathering diagnostic data`);let c=ut();c.desktop=t.desktop??null,c.language=t.language??null;let{files:l,excludedByProjectSlug:u}=_t(s,o),{files:d}=t.projectDir?vt(t.projectDir):{files:[]},{files:f}=t.projectDir?yt(t.projectDir):{files:[]},p=t.shipItLogFiles??[],m=t.diagnosticReports?.files??[];i?.info({logFileCount:l.length,logFilesExcludedByProjectSlug:u,lockFileCount:d.length,localSinkFileCount:f.length,shipItLogFileCount:p.length,diagnosticReportCount:m.length},`files collected`);let h=[],g=[],{ZipFile:_}=await import(`./yazl-BsCX6KWo.mjs`).then(t=>e(t.default,1)),v=new _;X({zipfile:v,files:[...l,...p],prefix:`logs`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:d,prefix:`lockdir`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:f,prefix:`local-logs`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:t.bugReportLedgerFiles??[],prefix:te,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i}),X({zipfile:v,files:m,prefix:`diagnostic-reports`,redact:n,revealDocNames:a,bundleFiles:g,redactions:h,logger:i});for(let e of t.extraFiles??[])try{let t=W(e.sourcePath),n=`extra/${e.zipName??L(e.sourcePath)}`;v.addBuffer(t,n),g.push(n);let r=ct(e,n);r!==null&&h.push(r)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&xt({zipfile:v,name:`note.txt`,content:t.note,redact:n,revealDocNames:a,bundleFiles:g,redactions:h});let b=new Set(m.map(e=>`diagnostic-reports/${L(e)}`)),x=g.filter(e=>b.has(e)),S=t.diagnosticReports===void 0?`not-collected (no collection attempted)`:Xe(t.diagnosticReports,x.length);v.addBuffer(Buffer.from(`${S}\n`,`utf8`),`state/diagnostic-reports-status.txt`),g.push(`state/diagnostic-reports-status.txt`);let C=JSON.stringify(c,null,2);v.addBuffer(Buffer.from(C,`utf8`),`sysinfo.json`),g.push(`sysinfo.json`);let w={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:s,files:g,redactions:h,sysinfo:c};v.addBuffer(Buffer.from(JSON.stringify(w,null,2),`utf8`),`MANIFEST.json`);let T=h.reduce((e,t)=>e+t.lineCount,0),E=new Set(p.map(e=>`logs/${L(e)}`)),D=g.filter(e=>E.has(e)),O=new Set((t.bugReportLedgerFiles??[]).map(e=>`${te}/${L(e)}`)),k=g.filter(e=>O.has(e)),A=s?g.filter(e=>e.startsWith(`logs/`)&&!ft(e)&&!E.has(e)):[],j=x.length>0?[`Crash reports under diagnostic-reports/ are rewritten on the way in,`,`independently of this setting: escaped path separators are normalised`,`so the scrub above can read them, and the identifiers that link this`,`machine's bundles to each other are replaced. Nothing else is changed;`,`they are not byte-identical to the files macOS wrote.`]:[],M=j.length>0?[`Redaction was disabled for this bundle; file contents are unmodified,`,`with one exception.`,...j]:[`Redaction was disabled for this bundle; file contents are unmodified.`],N=[`# Bug Report Bundle`,``,`Generated: ${w.generatedAt}`,`Project: ${s??`(unscoped)`}`,`Discipline version: ${w.disciplineVersion}`,``,`## Contents`,``,...g.map(e=>`- ${e}`),``,`## Privacy`,``,...A.length>0?[`Scope: some collected logs are user-wide rather than project-scoped.`,`These are written once per machine per day and can contain activity`,`from other projects open on this machine, including captured console`,`output:`,...A.map(e=>`- ${e}`),``]:[],...D.length>0?[`Installer logs: written by the macOS update helper rather than by`,`OpenKnowledge itself, and machine-wide rather than scoped to any one`,`project. They record the install and update history of this app on`,`this machine. Only this app is collected, never other applications`,`that use the same update mechanism:`,...D.map(e=>`- ${e}`),``]:[],...x.length>0?[`Crash reports: written by macOS itself rather than by OpenKnowledge,`,`and machine-wide rather than scoped to any one project. They record`,`why the operating system ended a process of this app — the signal or`,`exception, the code-signing verdict, and whatever text the process`,`left behind as it died. They also carry machine details the OS puts`,`in every report: the account uid, the Mac model, and the name of the`,`process that launched this app, which on a managed machine can be`,`internal tooling. The identifiers that would link this machine's`,`bundles to each other are replaced before bundling. Only this`,`app's own reports are collected, never another application's, though`,`a report of ours still names the processes it ran alongside:`,...x.map(e=>`- ${e}`),``]:[],...k.length>0?[`Send history: a small record for each bug report previously generated`,`on this machine — when it was generated, whether sending it`,`succeeded, and why it failed if it did. This is what makes a failed`,`send diagnosable at all. It is machine-wide rather than scoped to`,`this project, so it names the other projects reports were filed`,`from. It carries no document content:`,...k.map(e=>`- ${e}`),``]:[],...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${ee.join(`, `)}`,T>0?`${T} line(s) were scrubbed across ${h.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,...j,``,`This bundle is safe to attach to a GitHub issue.`]:M].join(`
|
|
2
2
|
`);v.addBuffer(Buffer.from(N,`utf8`),`README.md`),v.end();let P=ge(r);return v.outputStream.pipe(P),await new Promise((e,t)=>{P.on(`close`,e),P.on(`error`,t)}),i?.info({bundlePath:r,fileCount:g.length,redactionCount:T},`bundle written`),{zipPath:r,summary:{projectSlug:s,files:g,redactions:h,redactedLineCount:T,generatedAt:w.generatedAt}}}var Ct=c(),wt=e(F(),1),Z=e(se(),1);function Tt(e){let t=k(`user`,e,e);return E({absPath:t,sideline:!1,warn:()=>{}}).value.appearance?.language??`system`}function Et({home:e=J(),env:t=process.env}={}){let n=Tt(e),{override:r,preferenceList:o}=j(t),{locale:s,source:c}=Ie({override:r,storedPreference:n,supportedLocales:a,preferenceList:o,autoDetectableLocales:i});return{preference:n,locale:s,source:c,systemLanguages:o}}function Dt(e){let t=new Set([e]);try{t.add(Se.native(e))}catch{return[e].filter(e=>e.length>0)}return[...t].filter(e=>e.length>0).sort((e,t)=>t.length-e.length)}function Ot(e,t){let n=e;for(let e of t)n.includes(e)&&(n=n.split(e).join(`<CONTENT_DIR>`));return n}function kt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function At(e,t){if(typeof e==`string`)return Ot(e,t.contentDirSpellings);if(Array.isArray(e))return e.map(e=>At(e,t));if(!kt(e))return e;let n={};for(let[r,i]of Object.entries(e))n[r]=At(i,t);return n}function jt(e,t){let n=W(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
3
3
|
`),i=n.split(`
|
|
4
4
|
`),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(e!==i.length-1||n!==``){if(n.length===0){a.push(``);continue}try{let e=At(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}let o=r?`${a.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./md-manager-BGnqyqi1-BfETHApY.mjs";import"./src-BILMinJo.mjs";import"./init-BxVdZi-q.mjs";import"./registry-probes-CetDjX_j.mjs";import"./start-lJXFuEW7.mjs";import{n as e}from"./loader-D8c6sLKH.mjs";import"./preview-B6BmcZp2.mjs";import"./repair-mcp-configs-CxYH74IT.mjs";export{e as loadConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as e,m as t,p as n,r}from"./start-lJXFuEW7.mjs";export{r as bootStartServer,n as resolveBundledReactShellDir,t as resolveHost,e as startCommand};
|