uigraph 1.0.0 → 1.0.2
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/README.md +30 -51
- package/dist/bin.mjs +1608 -59037
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-D7zWJuPJ.js +1 -0
- package/dist/viewer/assets/actor-avatar-Bu-mKKXB.js +1 -0
- package/dist/viewer/assets/{api-adapters-CnQpLiWI.js → api-adapters-tfr51BsS.js} +1 -1
- package/dist/viewer/assets/{api-endpoints-DCA5GNpC.js → api-endpoints-D-Whnnwd.js} +9 -9
- package/dist/viewer/assets/{api-group-endpoints-page-Di42W69y.js → api-group-endpoints-page-B9R1EI4i.js} +9 -9
- package/dist/viewer/assets/{arc-Cn8owoDw.js → arc-DauzQXFu.js} +1 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-CXzgHd-c.js +36 -0
- package/dist/viewer/assets/{arrow-left-DWcMgM2U.js → arrow-left-DpQqmf17.js} +1 -1
- package/dist/viewer/assets/avatar-DAFUyk1i.js +43 -0
- package/dist/viewer/assets/badge-hR3QvPWv.js +1 -0
- package/dist/viewer/assets/better-delete-confirmation-modal-CGEQ5O4X.js +1 -0
- package/dist/viewer/assets/better-dialog-DcIxFWwk.js +1 -0
- package/dist/viewer/assets/{blockDiagram-I7D4REHJ-CbYzOsL_.js → blockDiagram-I7D4REHJ-CFHWUw4z.js} +2 -2
- package/dist/viewer/assets/{brands-Bd4RklRx.js → brands-DtmA1AhP.js} +1 -1
- package/dist/viewer/assets/button-DZj74qS7.js +1 -0
- package/dist/viewer/assets/{c4Diagram-7LVT6UL2-CLkVbphC.js → c4Diagram-7LVT6UL2-BHSggPKI.js} +6 -6
- package/dist/viewer/assets/{calendar-C0xdI_ag.js → calendar-Bolgc8E5.js} +1 -1
- package/dist/viewer/assets/channel-CNRSofFP.js +1 -0
- package/dist/viewer/assets/{check-XjanpAFg.js → check-BpmCQNbj.js} +1 -1
- package/dist/viewer/assets/checkbox-CFJfXL6R.js +1 -0
- package/dist/viewer/assets/{chevron-down-R7pQzyLD.js → chevron-down-DDsUE_xz.js} +1 -1
- package/dist/viewer/assets/{chevron-up-CRPypfOs.js → chevron-up-DVznKMGv.js} +1 -1
- package/dist/viewer/assets/{chunk-2Q5K7J3B-CcvtugCu.js → chunk-2Q5K7J3B-CNfz5YDQ.js} +1 -1
- package/dist/viewer/assets/{chunk-5VM5RSS4-CpZHHr12.js → chunk-5VM5RSS4-CwIhjvMe.js} +1 -1
- package/dist/viewer/assets/{chunk-F27PBJKO-DeAl4iOc.js → chunk-F27PBJKO-YFexFJof.js} +1 -1
- package/dist/viewer/assets/{chunk-IMKFNOWR-BfrPe7pS.js → chunk-IMKFNOWR-GY2yrvuo.js} +1 -1
- package/dist/viewer/assets/{chunk-JWPE2WC7-DDjyvUmZ.js → chunk-JWPE2WC7-xd0JGvne.js} +1 -1
- package/dist/viewer/assets/chunk-OB3PAWPO-DJIP1M4r.js +12 -0
- package/dist/viewer/assets/{chunk-POPQ4Y6H-DkDb0mzz.js → chunk-POPQ4Y6H-Bh6rizEy.js} +1 -1
- package/dist/viewer/assets/{chunk-SVP7TREG-D-K2XIGs.js → chunk-SVP7TREG-DtNrjvpq.js} +1 -1
- package/dist/viewer/assets/{chunk-TICWLB2K-DWMQQx6z.js → chunk-TICWLB2K-DrERwtw8.js} +1 -1
- package/dist/viewer/assets/{chunk-XXDRQBXY-DfkljAyM.js → chunk-XXDRQBXY-fYo04iwY.js} +1 -1
- package/dist/viewer/assets/{circle-alert-pm13M-Ef.js → circle-alert-Bl7DXYD_.js} +1 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-D7PO-ME9.js +1 -0
- package/dist/viewer/assets/color-input-ClkkG_kZ.js +11 -0
- package/dist/viewer/assets/{common-Y7ySZBdh.js → common-DLCsGQ-t.js} +1 -1
- package/dist/viewer/assets/{component-icons-D1BDAuEt.js → component-icons-MJ61E9nt.js} +2 -2
- package/dist/viewer/assets/{copy-CN4K2f_R.js → copy-DMJJonQF.js} +1 -1
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-Dplz8nVT.js +1 -0
- package/dist/viewer/assets/cross-button-D5qst1tj.js +1 -0
- package/dist/viewer/assets/{cynefin-OW5HDTMX-yz-uw9Kz.js → cynefin-OW5HDTMX-DiBs4CI8.js} +1 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-COXS8-dI.js +62 -0
- package/dist/viewer/assets/{dagre-GXQ25YYZ-zjZDwXOe.js → dagre-GXQ25YYZ-K8qvfG8D.js} +2 -2
- package/dist/viewer/assets/dashboard-diagrams-page-Cb0xNr4W.js +2 -0
- package/dist/viewer/assets/dashboard-diagrams-page-inner-CD--zr5q.js +1 -0
- package/dist/viewer/assets/dashboard-docs-page-BfWR9Ai9.js +2 -0
- package/dist/viewer/assets/dashboard-docs-page-inner-BLbX-YwF.js +67 -0
- package/dist/viewer/assets/dashboard-layout-sTeeHNsZ.js +1 -0
- package/dist/viewer/assets/dashboard-lens-layout-D-tu_4kn.js +1 -0
- package/dist/viewer/assets/dashboard-map-frame-page-7pDmbTSe.js +1 -0
- package/dist/viewer/assets/dashboard-plans-page-CfwOZ34A.js +1 -0
- package/dist/viewer/assets/dashboard-service-apis-k93fjW51.js +1 -0
- package/dist/viewer/assets/{dashboard-service-diagrams-CIjk95Jk.js → dashboard-service-diagrams-BIWUxX-Y.js} +3 -3
- package/dist/viewer/assets/dashboard-service-docs-CnniTD6Q.js +1 -0
- package/dist/viewer/assets/{dashboard-service-overview-CzePVPjl.js → dashboard-service-overview-CGBu4omY.js} +5 -5
- package/dist/viewer/assets/dashboard-services-DEscIO2O.js +1 -0
- package/dist/viewer/assets/{db-type-badge-DOgu1Pyc.js → db-type-badge-UbPgpwQf.js} +2 -2
- package/dist/viewer/assets/debounce-Cp8eREM4-D7o-Pzb-.js +2 -0
- package/dist/viewer/assets/{dependencies-CYdEztHw.js → dependencies-DK2GDlhQ.js} +1 -1
- package/dist/viewer/assets/{dependency-graph-DbyfN-rC.js → dependency-graph-xBEnCS0J.js} +3 -3
- package/dist/viewer/assets/{diagram-S7CK7UJ4-q-NHkUCx.js → diagram-S7CK7UJ4-D-liadVe.js} +2 -2
- package/dist/viewer/assets/diagram-UQ7AKVKN-CnA8mgXp.js +41 -0
- package/dist/viewer/assets/{diagram-VSXAHHWV-DZc1kHGx.js → diagram-VSXAHHWV-Ck7dgRFR.js} +2 -2
- package/dist/viewer/assets/diagram-VX7I27RA-Cm1LHbu3.js +24 -0
- package/dist/viewer/assets/diagram-Z3DM3KII-DV3yBUCB.js +24 -0
- package/dist/viewer/assets/diagram-live-preview-DzJ7Nxp1.js +2 -0
- package/dist/viewer/assets/{diagram-portal-page-CWxuok9E.js → diagram-portal-page-gguGLULH.js} +24 -24
- package/dist/viewer/assets/{diagrams-C1xkRPqT.js → diagrams-BqBSv2eb.js} +4 -4
- package/dist/viewer/assets/dialog-D7wzTt0L.js +6 -0
- package/dist/viewer/assets/{doc-file-content-B06roi8L.js → doc-file-content-Be0au9Vo.js} +4 -4
- package/dist/viewer/assets/{download-CLdCXVsO.js → download-DhyZ3g4F.js} +1 -1
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BXbHVQvG.js +1 -0
- package/dist/viewer/assets/{editor-vqK4qAnB.js → editor-F9o4zoeB.js} +2 -2
- package/dist/viewer/assets/{erDiagram-RLTQ6QDP-BWuA-aqV.js → erDiagram-RLTQ6QDP-DMfiWput.js} +2 -2
- package/dist/viewer/assets/{file-text-BvszilVL.js → file-text-BFqJQ67P.js} +1 -1
- package/dist/viewer/assets/flow-diagram-preview-B83UU1n_.js +1 -0
- package/dist/viewer/assets/{flowDiagram-HODETNUW-Db0QtNj4.js → flowDiagram-HODETNUW-BNFS2Mkr.js} +1 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-DFDsYJNp.js +292 -0
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-BVHabPDp.js +106 -0
- package/dist/viewer/assets/global-loader-XJO9_e0l.js +1 -0
- package/dist/viewer/assets/{globe-Jl6eIZmG.js → globe-CJ35KsQW.js} +1 -1
- package/dist/viewer/assets/gql-FFIj8zdp.js +1 -0
- package/dist/viewer/assets/{grid-scroll-body-CPqSxU6-.js → grid-scroll-body-DC5pYDPJ.js} +2 -2
- package/dist/viewer/assets/iconBase-DtqdW2XR.js +1 -0
- package/dist/viewer/assets/index-B6MxYIzs.js +1 -0
- package/dist/viewer/assets/index-BC5xdBQU.js +48 -0
- package/dist/viewer/assets/index-BIrx3oY4.js +1 -0
- package/dist/viewer/assets/{index-jm22RWpY.js → index-BZGsDmUx.js} +5 -5
- package/dist/viewer/assets/{index-Poftp9f1.js → index-BZXhpoWr.js} +4 -4
- package/dist/viewer/assets/index-Bn2bqqMd.js +1 -0
- package/dist/viewer/assets/{index-HU5pz3kj.js → index-BpCVYTvP.js} +36 -36
- package/dist/viewer/assets/{index-Bt2YHgxl.js → index-CBOYhBKJ.js} +1 -1
- package/dist/viewer/assets/index-CH7cEAxj.js +17 -0
- package/dist/viewer/assets/index-CIf0GId3.js +74 -0
- package/dist/viewer/assets/{index-D7MEHpJf.js → index-Ck66Ic_p.js} +4 -4
- package/dist/viewer/assets/index-Cp9mIQ8F.js +1 -0
- package/dist/viewer/assets/{index-c6Bxcoqm.js → index-DDmBuMKI.js} +1 -1
- package/dist/viewer/assets/{index-BSyJbFDG.js → index-DY3BFyb6.js} +1 -1
- package/dist/viewer/assets/{index-BS94XVnd.js → index-DkzZ-ZvR.js} +1 -1
- package/dist/viewer/assets/{index-C_43VC19.js → index-PglMbhys.js} +1 -1
- package/dist/viewer/assets/infoDiagram-27XIBGKW-CG-wwxBf.js +2 -0
- package/dist/viewer/assets/input--C59pq6j.js +1 -0
- package/dist/viewer/assets/{ishikawaDiagram-5VMMS53U-C4PzFnZ4.js → ishikawaDiagram-5VMMS53U-BlgV7ceJ.js} +2 -2
- package/dist/viewer/assets/{journeyDiagram-3NMN7TZE-Dpn3bBNo.js → journeyDiagram-3NMN7TZE-Cn03_Xl6.js} +2 -2
- package/dist/viewer/assets/{kanban-definition-UXKFOSKX-CJ99H4G6.js → kanban-definition-UXKFOSKX-CJogvDPY.js} +6 -6
- package/dist/viewer/assets/{layout-Bfvxt_D5.js → layout-B26eC4yQ.js} +1 -1
- package/dist/viewer/assets/{lens-run-page-DZneics-.js → lens-run-page-Ba1ppzJt.js} +3 -3
- package/dist/viewer/assets/lens-runs-page-BnUS57LM.js +1 -0
- package/dist/viewer/assets/{link-2-C75goIOt.js → link-2-D1e0xznG.js} +1 -1
- package/dist/viewer/assets/linked-project-dot-BY1gEES9.js +543 -0
- package/dist/viewer/assets/{loader-circle-C5jZoM7X.js → loader-circle-CiqyoJF7.js} +1 -1
- package/dist/viewer/assets/{merge-Cy7YkrN7.js → merge-BhOMvhW1.js} +1 -1
- package/dist/viewer/assets/mermaid.core-BDgZg3kW.js +312 -0
- package/dist/viewer/assets/method-badge-DErZP7y5.js +1 -0
- package/dist/viewer/assets/{mindmap-definition-YA3MSWOX-yQCKA-K4.js → mindmap-definition-YA3MSWOX-DFkLu0ac.js} +2 -2
- package/dist/viewer/assets/nav-links-DZWMpwMR.js +61 -0
- package/dist/viewer/assets/{network-COWNXGMM.js → network-B1apzT1s.js} +1 -1
- package/dist/viewer/assets/{nosql-editor-modal-DTiWkc_r.js → nosql-editor-modal-CvH0SWAi.js} +5 -5
- package/dist/viewer/assets/not-found-page-C-fn8QeM.js +1 -0
- package/dist/viewer/assets/organization-dependency-graph-page-BryP-iJL.js +1 -0
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-g1cM14-L.js +1 -0
- package/dist/viewer/assets/{pieDiagram-E7YTZNPT-DqnkpCX4.js → pieDiagram-E7YTZNPT-WEnDsMY3.js} +2 -2
- package/dist/viewer/assets/{plus-DQakmTjA.js → plus-DbyuOgKB.js} +1 -1
- package/dist/viewer/assets/popover-476u3TN0.js +1 -0
- package/dist/viewer/assets/preload-helper-BlTxHScW.js +1 -0
- package/dist/viewer/assets/{quadrantDiagram-AXDQQJYC-iQjJfars.js → quadrantDiagram-AXDQQJYC-NdfQCpzF.js} +2 -2
- package/dist/viewer/assets/query-D9oj6LGx.js +50 -0
- package/dist/viewer/assets/{quill-rCHj4fCw.js → quill-Cde5JMRD.js} +1 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-BYhlXlMY.js +1 -0
- package/dist/viewer/assets/{react-BNzYaZuG.js → react-Bx48XWN4.js} +1 -1
- package/dist/viewer/assets/react-flow-wrapper-BcbvHgxz.js +277 -0
- package/dist/viewer/assets/{requirementDiagram-BXWQKSXE-Bv-Vh1dW.js → requirementDiagram-BXWQKSXE-C25Bcm2L.js} +2 -2
- package/dist/viewer/assets/{sankeyDiagram-P5KCCOFB-C__uD07f.js → sankeyDiagram-P5KCCOFB-h8LiCsgk.js} +2 -2
- package/dist/viewer/assets/scroll-area-RagrStGj.js +6 -0
- package/dist/viewer/assets/{search-DW-qhXLk.js → search-vw7ucoOs.js} +1 -1
- package/dist/viewer/assets/section-loader-C4hOfhQS.js +1 -0
- package/dist/viewer/assets/section-not-found-BnrXiPog.js +1 -0
- package/dist/viewer/assets/select-D9fbrr7O.js +1 -0
- package/dist/viewer/assets/{sequenceDiagram-WJ2MYXX4-1RbvcHwO.js → sequenceDiagram-WJ2MYXX4-CDRVvD30.js} +2 -2
- package/dist/viewer/assets/{service-context-C17u_Fw9.js → service-context-D5nBtU18.js} +1 -1
- package/dist/viewer/assets/{service-database-list-page-cYuDHIls.js → service-database-list-page-DBjaDLVy.js} +2 -2
- package/dist/viewer/assets/service-database-page-CenNCgwf.js +2 -0
- package/dist/viewer/assets/service-database-page-inner-gS51TQTZ.js +85 -0
- package/dist/viewer/assets/{service-doc-Dir8g83J.js → service-doc-C-jHqT1U.js} +4 -4
- package/dist/viewer/assets/{service-doc-preview-modal-bJ6tJ5YR.js → service-doc-preview-modal-5sX6FOu1.js} +2 -2
- package/dist/viewer/assets/service-layout-Bf0vZBCH.js +1 -0
- package/dist/viewer/assets/service-pages-CFikvX4t.js +1 -0
- package/dist/viewer/assets/{services-Crqkffr5.js → services-Ivav34WC.js} +4 -4
- package/dist/viewer/assets/{share-2-BmYmqN4k.js → share-2-CQEaWbfH.js} +1 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BJ6ndnPM.js +1 -0
- package/dist/viewer/assets/stateDiagram-D77RDMKH-B_tNCX3o.js +1 -0
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-Dl9wqdli.js +1 -0
- package/dist/viewer/assets/{style-DgSU0bQl.js → style-BPesJvJr.js} +8 -8
- package/dist/viewer/assets/super-circle-loader-DSkos6uP.js +1 -0
- package/dist/viewer/assets/super-logo-loader-Cxlbn6MB.js +1 -0
- package/dist/viewer/assets/swimlanes-42K2YHIH-CzURzYwf.js +1 -0
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-DrIlwFtk.js +8 -0
- package/dist/viewer/assets/table-B4pFND-o.js +1 -0
- package/dist/viewer/assets/textarea-Clgdv3Oi.js +1 -0
- package/dist/viewer/assets/{timeline-definition-24CTP7MA-C4yuLwUH.js → timeline-definition-24CTP7MA-D0YXQE1U.js} +2 -2
- package/dist/viewer/assets/ui-graph-logo-gHowu5gP.js +1 -0
- package/dist/viewer/assets/{upload-CRsS43j9.js → upload-CYb3nN_5.js} +1 -1
- package/dist/viewer/assets/{uploads-BOQHX9l4.js → uploads-CX2kdXbM.js} +8 -8
- package/dist/viewer/assets/{use-debounced-value-Ba-kkCUY.js → use-debounced-value-BpNFJd3C.js} +1 -1
- package/dist/viewer/assets/{use-localstorage-DIisTx-J.js → use-localstorage-D233xVb0.js} +1 -1
- package/dist/viewer/assets/use-permissions-BvmxJJ5r.js +1 -0
- package/dist/viewer/assets/{use-scoped-storage-C4RzED-E.js → use-scoped-storage-DL1XVp1j.js} +1 -1
- package/dist/viewer/assets/useMutation-D5ZHwHsx.js +1 -0
- package/dist/viewer/assets/useQuery-Dhe6uxrL.js +1 -0
- package/dist/viewer/assets/{vennDiagram-4TSXK5OY-BCtqXZqe.js → vennDiagram-4TSXK5OY-SSjHlqCQ.js} +2 -2
- package/dist/viewer/assets/{wardleyDiagram-VM6X3IG4-D3OtZJoT.js → wardleyDiagram-VM6X3IG4-CZWNdQxH.js} +2 -2
- package/dist/viewer/assets/{xychartDiagram-S5SC5T6Z-DxLL2CHH.js → xychartDiagram-S5SC5T6Z-B2qAGeb0.js} +2 -2
- package/dist/viewer/assets/zod-BMU4UTQt.js +1 -0
- package/dist/viewer/index.html +10 -1
- package/package.json +57 -57
- package/dist/abort-signals-B4fc3ahg.mjs +0 -34
- package/dist/agents.md +0 -28
- package/dist/anthropic-messages-KPxCHqBN.mjs +0 -14327
- package/dist/auth-storage-BvNH97p9.mjs +0 -2180
- package/dist/azure-openai-config-BbeCSg4y.mjs +0 -55
- package/dist/azure-openai-responses-BRzy8RfL.mjs +0 -182
- package/dist/classifier-shared-DBUHiTGw.mjs +0 -105
- package/dist/cli-2R6QQFp1.mjs +0 -451
- package/dist/cloudflare-workers-ai-system-one-BfqwmRQf.mjs +0 -44
- package/dist/config-D8DMGzIq.mjs +0 -647
- package/dist/cross-spawn-B2jIQPlu.mjs +0 -404
- package/dist/diagnostics-xdSgQR8t.mjs +0 -131
- package/dist/dist-BRyghrKX.mjs +0 -404
- package/dist/dist-D0EzrblG.mjs +0 -12161
- package/dist/dist-EKhnHWHG.mjs +0 -140221
- package/dist/dist-pQtuusFv.mjs +0 -1243
- package/dist/easter-egg-3d-C9_btlWn.mjs +0 -1225
- package/dist/env-api-keys-uytNub6O.mjs +0 -122
- package/dist/error-body-FhmCtR7m.mjs +0 -101
- package/dist/esm-D5isprgl.mjs +0 -1533
- package/dist/esm-DnqE4pfM.mjs +0 -104876
- package/dist/execute-BoTKl80U.mjs +0 -1715
- package/dist/github-copilot-headers-DWcTgoXr.mjs +0 -22
- package/dist/google-generative-ai-Brs5YpJo.mjs +0 -332
- package/dist/google-shared-2CyYa4VE.mjs +0 -33438
- package/dist/google-vertex-DZDUQPKa.mjs +0 -378
- package/dist/hash-DN7ukSfd.mjs +0 -16
- package/dist/headers-GhQHLk-3.mjs +0 -17
- package/dist/jiti-9kWALm4Y.mjs +0 -5439
- package/dist/jiti-loader-f21DrY1K.mjs +0 -27
- package/dist/jiti-static-loader-BI_w28l7.mjs +0 -41704
- package/dist/json-parse-B2mHg7o7.mjs +0 -381
- package/dist/keybinding-hints-D0nLU3ZH.mjs +0 -17899
- package/dist/lib-Dj1gKQJc.mjs +0 -24379
- package/dist/llama-cpp-classify-C73BoMYd.mjs +0 -344
- package/dist/mistral-conversations-DXVR7znL.mjs +0 -698
- package/dist/models-DBdii9gQ.mjs +0 -1255
- package/dist/multipart-parser-DLw9Z0uJ.mjs +0 -298
- package/dist/node-B0NU8X55.mjs +0 -2479
- package/dist/node-B8gaKm9g.mjs +0 -23
- package/dist/openai-I3_AqKDX.mjs +0 -17357
- package/dist/openai-codex-responses-PcZHDuBD.mjs +0 -1198
- package/dist/openai-completions-a_mH01ii.mjs +0 -994
- package/dist/openai-decisions-Du8y4mQG.mjs +0 -142
- package/dist/openai-prompt-cache-Bc6qNWt0.mjs +0 -8
- package/dist/openai-responses-a9lV_U7O.mjs +0 -270
- package/dist/openai-responses-shared-CDs_PBiH.mjs +0 -598
- package/dist/openrouter-images-D0Zc8Cjs.mjs +0 -125
- package/dist/photon_rs-DCvMOMu0.mjs +0 -4252
- package/dist/pi-messages-B5ietIBq.mjs +0 -306
- package/dist/plan-prompt.md +0 -56
- package/dist/prompt.md +0 -44
- package/dist/provider-env-BJhgA66g.mjs +0 -37
- package/dist/provider-retry-DXYM7rVE.mjs +0 -79
- package/dist/runtime-DTkBxiaM.mjs +0 -2822
- package/dist/sanitize-unicode-CqChtoM6.mjs +0 -26
- package/dist/shell-836_JFnI.mjs +0 -162
- package/dist/source-CKPndhKl.mjs +0 -478
- package/dist/src-DNm2QRm3.mjs +0 -5028
- package/dist/system-one-shared-DUAFtNa8.mjs +0 -75
- package/dist/token-DEUkymby.mjs +0 -56
- package/dist/token-util-Cx5S4eKt.mjs +0 -3
- package/dist/tool-DHDYqsyG.mjs +0 -6673
- package/dist/transform-messages-BClk99Vn.mjs +0 -477
- package/dist/typesafe-system-one-D2d8j8hZ.mjs +0 -24
- package/dist/typescript-Br-vsRJV.mjs +0 -6737
- package/dist/uuid-CNCZqNBb.mjs +0 -49
- package/dist/v2-1z8ijsD3.mjs +0 -6120
- package/dist/viewer/assets/abnfDiagram-VCTEODGH-j5YaKnl9.js +0 -1
- package/dist/viewer/assets/actor-avatar-DqmoY8Xc.js +0 -1
- package/dist/viewer/assets/architectureDiagram-5GKGNRK7-D80cJKz_.js +0 -36
- package/dist/viewer/assets/avatar-BI7D-Aia.js +0 -43
- package/dist/viewer/assets/badge-870-A4Y6.js +0 -1
- package/dist/viewer/assets/better-delete-confirmation-modal-Dib31LVb.js +0 -1
- package/dist/viewer/assets/better-dialog-D3AAiahr.js +0 -1
- package/dist/viewer/assets/button-DadqadpO.js +0 -1
- package/dist/viewer/assets/channel-DRkt3LIn.js +0 -1
- package/dist/viewer/assets/checkbox-BXpR079x.js +0 -1
- package/dist/viewer/assets/classDiagram-ZZMXUADV-G5CebNaC.js +0 -1
- package/dist/viewer/assets/classDiagram-v2-VYDZK3BY-G5CebNaC.js +0 -1
- package/dist/viewer/assets/color-input-Efm-lxDy.js +0 -11
- package/dist/viewer/assets/cose-bilkent-JH36ORCC-CrSHFmnp.js +0 -1
- package/dist/viewer/assets/cross-button-5Sr5rWVP.js +0 -1
- package/dist/viewer/assets/cynefinDiagram-5FMLGOSQ-Bdl_eBdu.js +0 -62
- package/dist/viewer/assets/dashboard-diagrams-page-DMupOe1m.js +0 -2
- package/dist/viewer/assets/dashboard-diagrams-page-inner-Dh0yKh2A.js +0 -1
- package/dist/viewer/assets/dashboard-docs-page-DWJ1qOQz.js +0 -2
- package/dist/viewer/assets/dashboard-docs-page-inner-Fs6G3oGo.js +0 -67
- package/dist/viewer/assets/dashboard-layout-D36InAaB.js +0 -1
- package/dist/viewer/assets/dashboard-lens-layout-Cv1Xx3hY.js +0 -1
- package/dist/viewer/assets/dashboard-map-frame-page-CTn61NUO.js +0 -1
- package/dist/viewer/assets/dashboard-plans-page-DxFJkrgK.js +0 -1
- package/dist/viewer/assets/dashboard-service-apis-BHtD9s5z.js +0 -1
- package/dist/viewer/assets/dashboard-service-docs-Uv_1uxxO.js +0 -1
- package/dist/viewer/assets/dashboard-services-CUP-L4Jg.js +0 -1
- package/dist/viewer/assets/diagram-UQ7AKVKN-DhFcurW6.js +0 -41
- package/dist/viewer/assets/diagram-VX7I27RA-DE1nREE8.js +0 -24
- package/dist/viewer/assets/diagram-Z3DM3KII-CSrYcCbc.js +0 -24
- package/dist/viewer/assets/diagram-live-preview-i5doxXLH.js +0 -2
- package/dist/viewer/assets/dialog-D_HtNS17.js +0 -6
- package/dist/viewer/assets/ebnfDiagram-PWID7BFC-BfL8m_sf.js +0 -1
- package/dist/viewer/assets/flow-diagram-preview-T0Z4iMVU.js +0 -1
- package/dist/viewer/assets/ganttDiagram-EL5Y4UJY-CsITpniw.js +0 -292
- package/dist/viewer/assets/gitGraphDiagram-WWUBYQGX-B4eCBGoe.js +0 -106
- package/dist/viewer/assets/iconBase-BoDZfJgC.js +0 -1
- package/dist/viewer/assets/index-5E1tJ7yK.js +0 -125
- package/dist/viewer/assets/index-7XpV2DRw.js +0 -1
- package/dist/viewer/assets/index-C0Rs3s9Z.js +0 -1
- package/dist/viewer/assets/index-CzHjJWeV.js +0 -1
- package/dist/viewer/assets/index-DcEA6SIV.js +0 -74
- package/dist/viewer/assets/infoDiagram-27XIBGKW-lTebN5Ix.js +0 -2
- package/dist/viewer/assets/input-YvHTVS0E.js +0 -1
- package/dist/viewer/assets/lens-runs-page-DoAOObxx.js +0 -1
- package/dist/viewer/assets/linked-project-dot-Ds2uEmJ9.js +0 -543
- package/dist/viewer/assets/mermaid.core-BCRBv8Us.js +0 -312
- package/dist/viewer/assets/method-badge-DMYDKdDZ.js +0 -1
- package/dist/viewer/assets/nav-links-8vT2ixiI.js +0 -61
- package/dist/viewer/assets/not-found-page-CnfLlhS4.js +0 -1
- package/dist/viewer/assets/organization-dependency-graph-page-3xqIxjNx.js +0 -1
- package/dist/viewer/assets/pegDiagram-XKGWAZYB-CMXqeAum.js +0 -1
- package/dist/viewer/assets/popover-CN9ni1N3.js +0 -1
- package/dist/viewer/assets/railroadDiagram-O6MQD6OU-CfqToX3W.js +0 -1
- package/dist/viewer/assets/react-flow-wrapper-BPlRstyO.js +0 -276
- package/dist/viewer/assets/scroll-area-BodE-n7W.js +0 -6
- package/dist/viewer/assets/section-loader-BzpYM_Nx.js +0 -1
- package/dist/viewer/assets/select-DDtnmSET.js +0 -1
- package/dist/viewer/assets/service-database-page-CMi1wF4h.js +0 -2
- package/dist/viewer/assets/service-database-page-inner-CoqAj93L.js +0 -85
- package/dist/viewer/assets/service-layout-0NMm_bKG.js +0 -1
- package/dist/viewer/assets/service-pages-dfnc91SU.js +0 -1
- package/dist/viewer/assets/sizeCapture-INFHLROL-BRJi3gCg.js +0 -1
- package/dist/viewer/assets/stateDiagram-D77RDMKH-DdLsfxgy.js +0 -1
- package/dist/viewer/assets/stateDiagram-v2-MP3YSRHH-DFwg8Qki.js +0 -1
- package/dist/viewer/assets/super-circle-loader-D8MElOMh.js +0 -1
- package/dist/viewer/assets/super-logo-loader-DJYiRbCS.js +0 -1
- package/dist/viewer/assets/swimlanes-42K2YHIH-AuYjrPqh.js +0 -1
- package/dist/viewer/assets/swimlanesDiagram-VR7AAH4N-0nIGA8_4.js +0 -8
- package/dist/viewer/assets/table-Bi4Auk9Z.js +0 -1
- package/dist/viewer/assets/textarea-MgxZ5x6-.js +0 -1
- package/dist/viewer/assets/ui-graph-logo-D4jRhd4z.js +0 -1
- package/dist/viewer/assets/use-permissions-6JVET753.js +0 -1
- package/dist/viewer/assets/useMutation-CmVaR9zz.js +0 -1
- package/dist/viewer/assets/useQuery-B8yYhO0c.js +0 -1
- package/dist/viewer/assets/zod-Dc4H6VVJ.js +0 -1
- package/dist/virtual-modules-DnCx0Gdx.mjs +0 -340
package/dist/config-D8DMGzIq.mjs
DELETED
|
@@ -1,647 +0,0 @@
|
|
|
1
|
-
import { a as __toESM } from "./bin.mjs";
|
|
2
|
-
import { t as require_cross_spawn } from "./cross-spawn-B2jIQPlu.mjs";
|
|
3
|
-
import { basename, dirname, join, resolve, sep, win32 } from "path";
|
|
4
|
-
import { realpathSync, statSync } from "node:fs";
|
|
5
|
-
import { accessSync as accessSync$1, constants as constants$1, existsSync as existsSync$1, readFileSync as readFileSync$1, realpathSync as realpathSync$1 } from "fs";
|
|
6
|
-
import { homedir } from "os";
|
|
7
|
-
import { isAbsolute as isAbsolute$1, join as join$1, relative as relative$1, resolve as resolve$1, sep as sep$1 } from "node:path";
|
|
8
|
-
import { homedir as homedir$1 } from "node:os";
|
|
9
|
-
import { createRequire } from "module";
|
|
10
|
-
import { fileURLToPath } from "url";
|
|
11
|
-
import { spawn, spawnSync } from "node:child_process";
|
|
12
|
-
import { fileURLToPath as fileURLToPath$1 } from "node:url";
|
|
13
|
-
//#region node_modules/.pnpm/@earendil-works+pi-coding-agent@1.2.0_@aws-sdk+credential-provider-node@3.972.86_@model_cb83c1bd7a7ff5cede8c43e329c5cf76/node_modules/@earendil-works/pi-coding-agent/dist/utils/child-process.js
|
|
14
|
-
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
15
|
-
const EXIT_STDIO_GRACE_MS = 100;
|
|
16
|
-
function spawnProcess(command, args, options) {
|
|
17
|
-
return process.platform === "win32" ? (0, import_cross_spawn.default)(command, args, options) : spawn(command, args, options);
|
|
18
|
-
}
|
|
19
|
-
function spawnProcessSync(command, args, options) {
|
|
20
|
-
return process.platform === "win32" ? import_cross_spawn.default.sync(command, args, options) : spawnSync(command, args, options);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Wait for a child process to terminate without hanging on inherited stdio handles.
|
|
24
|
-
*
|
|
25
|
-
* A short-lived child can `exit` while a detached descendant keeps its stdout/stderr
|
|
26
|
-
* pipe open. We must not resolve and destroy the streams on a fixed deadline measured
|
|
27
|
-
* from `exit`, or output still being written past that deadline is silently lost
|
|
28
|
-
* (earendil-works/pi#5303). Instead, after `exit` we wait for the pipes to fall idle:
|
|
29
|
-
* the grace timer is re-armed on every chunk, so an actively writing descendant keeps
|
|
30
|
-
* us reading, while a quiet inherited handle (e.g. a Windows daemonized descendant
|
|
31
|
-
* that never lets `close` fire) still releases us after the grace elapses.
|
|
32
|
-
*/
|
|
33
|
-
function waitForChildProcess(child) {
|
|
34
|
-
return new Promise((resolve, reject) => {
|
|
35
|
-
let settled = false;
|
|
36
|
-
let exited = false;
|
|
37
|
-
let exitCode = null;
|
|
38
|
-
let postExitTimer;
|
|
39
|
-
let stdoutEnded = child.stdout === null;
|
|
40
|
-
let stderrEnded = child.stderr === null;
|
|
41
|
-
const cleanup = () => {
|
|
42
|
-
if (postExitTimer) {
|
|
43
|
-
clearTimeout(postExitTimer);
|
|
44
|
-
postExitTimer = void 0;
|
|
45
|
-
}
|
|
46
|
-
child.removeListener("error", onError);
|
|
47
|
-
child.removeListener("exit", onExit);
|
|
48
|
-
child.removeListener("close", onClose);
|
|
49
|
-
child.stdout?.removeListener("end", onStdoutEnd);
|
|
50
|
-
child.stderr?.removeListener("end", onStderrEnd);
|
|
51
|
-
child.stdout?.removeListener("data", onData);
|
|
52
|
-
child.stderr?.removeListener("data", onData);
|
|
53
|
-
};
|
|
54
|
-
const finalize = (code) => {
|
|
55
|
-
if (settled) return;
|
|
56
|
-
settled = true;
|
|
57
|
-
cleanup();
|
|
58
|
-
child.stdout?.destroy();
|
|
59
|
-
child.stderr?.destroy();
|
|
60
|
-
resolve(code);
|
|
61
|
-
};
|
|
62
|
-
const maybeFinalizeAfterExit = () => {
|
|
63
|
-
if (!exited || settled) return;
|
|
64
|
-
if (stdoutEnded && stderrEnded) finalize(exitCode);
|
|
65
|
-
};
|
|
66
|
-
const armIdleTimer = () => {
|
|
67
|
-
if (postExitTimer) clearTimeout(postExitTimer);
|
|
68
|
-
postExitTimer = setTimeout(() => finalize(exitCode), EXIT_STDIO_GRACE_MS);
|
|
69
|
-
};
|
|
70
|
-
const onData = () => {
|
|
71
|
-
if (exited && !settled) armIdleTimer();
|
|
72
|
-
};
|
|
73
|
-
const onStdoutEnd = () => {
|
|
74
|
-
stdoutEnded = true;
|
|
75
|
-
maybeFinalizeAfterExit();
|
|
76
|
-
};
|
|
77
|
-
const onStderrEnd = () => {
|
|
78
|
-
stderrEnded = true;
|
|
79
|
-
maybeFinalizeAfterExit();
|
|
80
|
-
};
|
|
81
|
-
const onError = (err) => {
|
|
82
|
-
if (settled) return;
|
|
83
|
-
settled = true;
|
|
84
|
-
cleanup();
|
|
85
|
-
reject(err);
|
|
86
|
-
};
|
|
87
|
-
const onExit = (code) => {
|
|
88
|
-
exited = true;
|
|
89
|
-
exitCode = code;
|
|
90
|
-
maybeFinalizeAfterExit();
|
|
91
|
-
if (!settled) armIdleTimer();
|
|
92
|
-
};
|
|
93
|
-
const onClose = (code) => {
|
|
94
|
-
finalize(code);
|
|
95
|
-
};
|
|
96
|
-
child.stdout?.once("end", onStdoutEnd);
|
|
97
|
-
child.stderr?.once("end", onStderrEnd);
|
|
98
|
-
child.stdout?.on("data", onData);
|
|
99
|
-
child.stderr?.on("data", onData);
|
|
100
|
-
child.once("error", onError);
|
|
101
|
-
child.once("exit", onExit);
|
|
102
|
-
child.once("close", onClose);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region node_modules/.pnpm/@earendil-works+pi-coding-agent@1.2.0_@aws-sdk+credential-provider-node@3.972.86_@model_cb83c1bd7a7ff5cede8c43e329c5cf76/node_modules/@earendil-works/pi-coding-agent/dist/utils/paths.js
|
|
107
|
-
const UNICODE_SPACES = /[\u00A0\u2000-\u200A\u202F\u205F\u3000]/g;
|
|
108
|
-
/**
|
|
109
|
-
* Resolve a path to its canonical (real) form, following symlinks.
|
|
110
|
-
* Falls back to the raw path if resolution fails (e.g. the target does
|
|
111
|
-
* not exist yet), so that callers never crash on missing filesystem
|
|
112
|
-
* entries.
|
|
113
|
-
*/
|
|
114
|
-
function canonicalizePath(path) {
|
|
115
|
-
try {
|
|
116
|
-
return realpathSync(path);
|
|
117
|
-
} catch {
|
|
118
|
-
return path;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function getFileRevision(path) {
|
|
122
|
-
try {
|
|
123
|
-
const stats = statSync(path, { bigint: true });
|
|
124
|
-
return `${stats.dev}:${stats.ino}:${stats.size}:${stats.mtimeNs}:${stats.ctimeNs}`;
|
|
125
|
-
} catch {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Returns true if the value is NOT a package source (npm:, git:, etc.),
|
|
131
|
-
* a built-in extension (builtin:), or a remote URL protocol. Bare names,
|
|
132
|
-
* relative paths, and file: URLs are considered local.
|
|
133
|
-
*/
|
|
134
|
-
function isLocalPath(value) {
|
|
135
|
-
const trimmed = value.trim();
|
|
136
|
-
if (trimmed.startsWith("npm:") || trimmed.startsWith("git:") || trimmed.startsWith("github:") || trimmed.startsWith("http:") || trimmed.startsWith("https:") || trimmed.startsWith("ssh:") || trimmed.startsWith("builtin:")) return false;
|
|
137
|
-
return true;
|
|
138
|
-
}
|
|
139
|
-
/** Convert Git Bash, MSYS, Cygwin, and WSL drive paths to a form native Windows APIs accept. */
|
|
140
|
-
function normalizeWindowsShellPath(filePath) {
|
|
141
|
-
if (!filePath.startsWith("/") || filePath.startsWith("//") || filePath.includes("\\")) return filePath;
|
|
142
|
-
const match = filePath.match(/^\/(?:mnt\/|cygdrive\/)?([a-z])(?:\/(.*))?$/i);
|
|
143
|
-
if (!match) return filePath;
|
|
144
|
-
const suffix = match[2]?.replaceAll("/", "\\");
|
|
145
|
-
return `${match[1].toUpperCase()}:\\${suffix ?? ""}`;
|
|
146
|
-
}
|
|
147
|
-
function normalizePath(input, options = {}) {
|
|
148
|
-
let normalized = options.trim ? input.trim() : input;
|
|
149
|
-
if (options.normalizeUnicodeSpaces) normalized = normalized.replace(UNICODE_SPACES, " ");
|
|
150
|
-
if (options.stripAtPrefix && normalized.startsWith("@")) normalized = normalized.slice(1);
|
|
151
|
-
if (process.platform === "win32") normalized = normalizeWindowsShellPath(normalized);
|
|
152
|
-
if (options.expandTilde ?? true) {
|
|
153
|
-
const home = options.homeDir ?? homedir$1();
|
|
154
|
-
if (normalized === "~") return home;
|
|
155
|
-
if (normalized.startsWith("~/") || process.platform === "win32" && normalized.startsWith("~\\")) return join$1(home, normalized.slice(2));
|
|
156
|
-
}
|
|
157
|
-
if (/^file:\/\//.test(normalized)) return fileURLToPath$1(normalized);
|
|
158
|
-
return normalized;
|
|
159
|
-
}
|
|
160
|
-
function resolvePath(input, baseDir = process.cwd(), options = {}) {
|
|
161
|
-
const normalized = normalizePath(input, options);
|
|
162
|
-
const normalizedBaseDir = normalizePath(baseDir);
|
|
163
|
-
return isAbsolute$1(normalized) ? resolve$1(normalized) : resolve$1(normalizedBaseDir, normalized);
|
|
164
|
-
}
|
|
165
|
-
function getCwdRelativePath(filePath, cwd) {
|
|
166
|
-
const resolvedCwd = resolvePath(cwd);
|
|
167
|
-
const resolvedPath = resolvePath(filePath, resolvedCwd);
|
|
168
|
-
const relativePath = relative$1(resolvedCwd, resolvedPath);
|
|
169
|
-
return relativePath === "" || relativePath !== ".." && !relativePath.startsWith(`..${sep$1}`) && !isAbsolute$1(relativePath) ? relativePath || "." : void 0;
|
|
170
|
-
}
|
|
171
|
-
function formatPathRelativeToCwdOrAbsolute(filePath, cwd) {
|
|
172
|
-
const absolutePath = resolvePath(filePath, cwd);
|
|
173
|
-
return (getCwdRelativePath(absolutePath, cwd) ?? absolutePath).split(sep$1).join("/");
|
|
174
|
-
}
|
|
175
|
-
function markPathIgnoredByCloudSync(path) {
|
|
176
|
-
const attrs = process.platform === "darwin" ? ["com.dropbox.ignored", "com.apple.fileprovider.ignore#P"] : process.platform === "linux" ? ["user.com.dropbox.ignored"] : [];
|
|
177
|
-
for (const attr of attrs) if (process.platform === "darwin") spawnProcessSync("xattr", [
|
|
178
|
-
"-w",
|
|
179
|
-
attr,
|
|
180
|
-
"1",
|
|
181
|
-
path
|
|
182
|
-
], {
|
|
183
|
-
encoding: "utf-8",
|
|
184
|
-
stdio: "ignore"
|
|
185
|
-
});
|
|
186
|
-
else spawnProcessSync("setfattr", [
|
|
187
|
-
"-n",
|
|
188
|
-
attr,
|
|
189
|
-
"-v",
|
|
190
|
-
"1",
|
|
191
|
-
path
|
|
192
|
-
], {
|
|
193
|
-
encoding: "utf-8",
|
|
194
|
-
stdio: "ignore"
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region node_modules/.pnpm/@earendil-works+pi-coding-agent@1.2.0_@aws-sdk+credential-provider-node@3.972.86_@model_cb83c1bd7a7ff5cede8c43e329c5cf76/node_modules/@earendil-works/pi-coding-agent/dist/utils/text.js
|
|
199
|
-
/** Split a leading UTF-8 byte order mark from decoded text. */
|
|
200
|
-
function splitBom(content) {
|
|
201
|
-
return content.startsWith("") ? {
|
|
202
|
-
bom: "",
|
|
203
|
-
text: content.slice(1)
|
|
204
|
-
} : {
|
|
205
|
-
bom: "",
|
|
206
|
-
text: content
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
/** Remove a leading UTF-8 byte order mark from decoded text. */
|
|
210
|
-
function stripBom(content) {
|
|
211
|
-
return splitBom(content).text;
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/@earendil-works+pi-coding-agent@1.2.0_@aws-sdk+credential-provider-node@3.972.86_@model_cb83c1bd7a7ff5cede8c43e329c5cf76/node_modules/@earendil-works/pi-coding-agent/dist/config.js
|
|
215
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
216
|
-
const __dirname = dirname(__filename);
|
|
217
|
-
/**
|
|
218
|
-
* Detect if we're running as a Bun compiled binary.
|
|
219
|
-
* Bun binaries have import.meta.url containing "$bunfs", "~BUN", or "%7EBUN" (Bun's virtual filesystem path)
|
|
220
|
-
*/
|
|
221
|
-
const isBunBinary = import.meta.url.includes("$bunfs") || import.meta.url.includes("~BUN") || import.meta.url.includes("%7EBUN");
|
|
222
|
-
/** Detect if Bun is the runtime (compiled binary or bun run) */
|
|
223
|
-
const isBunRuntime = !!process.versions.bun;
|
|
224
|
-
const isBundledNode = typeof PI_BUNDLED_NODE !== "undefined" && PI_BUNDLED_NODE;
|
|
225
|
-
function normalizeSelfUpdatePackageTarget(target) {
|
|
226
|
-
if (typeof target === "string") return {
|
|
227
|
-
packageName: target,
|
|
228
|
-
installSpec: target
|
|
229
|
-
};
|
|
230
|
-
return {
|
|
231
|
-
packageName: target.packageName,
|
|
232
|
-
installSpec: target.installSpec ?? target.packageName
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function makeSelfUpdateCommand(installStep, uninstallStep) {
|
|
236
|
-
if (!uninstallStep) return installStep;
|
|
237
|
-
return {
|
|
238
|
-
...installStep,
|
|
239
|
-
display: `${uninstallStep.display} && ${installStep.display}`,
|
|
240
|
-
steps: [uninstallStep, installStep]
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
function makeSelfUpdateCommandStep(command, args) {
|
|
244
|
-
return {
|
|
245
|
-
command,
|
|
246
|
-
args,
|
|
247
|
-
display: [command, ...args].map((arg) => /\s/.test(arg) ? `"${arg}"` : arg).join(" ")
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function detectInstallMethod() {
|
|
251
|
-
if (isBunBinary) return "bun-binary";
|
|
252
|
-
const resolvedPath = `${__dirname}\0${process.execPath || ""}`.toLowerCase().replace(/\\/g, "/");
|
|
253
|
-
if (resolvedPath.includes("/pnpm/") || resolvedPath.includes("/.pnpm/")) return "pnpm";
|
|
254
|
-
if (resolvedPath.includes("/yarn/") || resolvedPath.includes("/.yarn/")) return "yarn";
|
|
255
|
-
if (isBunRuntime || resolvedPath.includes("/install/global/node_modules/")) return "bun";
|
|
256
|
-
if (resolvedPath.includes("/npm/") || resolvedPath.includes("/node_modules/")) return "npm";
|
|
257
|
-
return "unknown";
|
|
258
|
-
}
|
|
259
|
-
function getInferredNpmInstall() {
|
|
260
|
-
const packageDir = getPackageDir();
|
|
261
|
-
const path = process.platform === "win32" || packageDir.includes("\\") ? win32 : {
|
|
262
|
-
basename,
|
|
263
|
-
dirname
|
|
264
|
-
};
|
|
265
|
-
const parent = path.dirname(packageDir);
|
|
266
|
-
let root;
|
|
267
|
-
if (path.basename(parent).startsWith("@") && path.basename(path.dirname(parent)) === "node_modules") root = path.dirname(parent);
|
|
268
|
-
else if (path.basename(parent) === "node_modules") root = parent;
|
|
269
|
-
if (!root) return void 0;
|
|
270
|
-
const rootParent = path.dirname(root);
|
|
271
|
-
if (path.basename(rootParent) === "lib") return {
|
|
272
|
-
root,
|
|
273
|
-
prefix: path.dirname(rootParent)
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
function getSelfUpdateCommandForMethod(method, installedPackageName, updatePackageTarget = installedPackageName, npmCommand) {
|
|
277
|
-
const target = normalizeSelfUpdatePackageTarget(updatePackageTarget);
|
|
278
|
-
switch (method) {
|
|
279
|
-
case "bun-binary": return;
|
|
280
|
-
case "pnpm": {
|
|
281
|
-
const match = readCommandOutput("pnpm", ["root", "-g"]) ? void 0 : /^(.*[\\/]global[\\/][^\\/]+)[\\/]\.pnpm[\\/]/.exec(getPackageDir());
|
|
282
|
-
const binDirArgs = match ? [`--config.global-bin-dir=${process.env.PNPM_HOME || dirname(dirname(match[1]))}`] : [];
|
|
283
|
-
return makeSelfUpdateCommand(makeSelfUpdateCommandStep("pnpm", [
|
|
284
|
-
"install",
|
|
285
|
-
"-g",
|
|
286
|
-
"--ignore-scripts",
|
|
287
|
-
"--config.minimumReleaseAge=0",
|
|
288
|
-
...binDirArgs,
|
|
289
|
-
target.installSpec
|
|
290
|
-
]), target.packageName === installedPackageName ? void 0 : makeSelfUpdateCommandStep("pnpm", [
|
|
291
|
-
"remove",
|
|
292
|
-
"-g",
|
|
293
|
-
...binDirArgs,
|
|
294
|
-
installedPackageName
|
|
295
|
-
]));
|
|
296
|
-
}
|
|
297
|
-
case "yarn": return makeSelfUpdateCommand(makeSelfUpdateCommandStep("yarn", [
|
|
298
|
-
"global",
|
|
299
|
-
"add",
|
|
300
|
-
"--ignore-scripts",
|
|
301
|
-
target.installSpec
|
|
302
|
-
]), target.packageName === installedPackageName ? void 0 : makeSelfUpdateCommandStep("yarn", [
|
|
303
|
-
"global",
|
|
304
|
-
"remove",
|
|
305
|
-
installedPackageName
|
|
306
|
-
]));
|
|
307
|
-
case "bun": return makeSelfUpdateCommand(makeSelfUpdateCommandStep("bun", [
|
|
308
|
-
"install",
|
|
309
|
-
"-g",
|
|
310
|
-
"--ignore-scripts",
|
|
311
|
-
"--minimum-release-age=0",
|
|
312
|
-
target.installSpec
|
|
313
|
-
]), target.packageName === installedPackageName ? void 0 : makeSelfUpdateCommandStep("bun", [
|
|
314
|
-
"uninstall",
|
|
315
|
-
"-g",
|
|
316
|
-
installedPackageName
|
|
317
|
-
]));
|
|
318
|
-
case "npm": {
|
|
319
|
-
const [command = "npm", ...npmArgs] = npmCommand ?? [];
|
|
320
|
-
const inferred = npmCommand?.length ? void 0 : getInferredNpmInstall();
|
|
321
|
-
const prefixArgs = [...npmArgs, ...inferred ? ["--prefix", inferred.prefix] : []];
|
|
322
|
-
return makeSelfUpdateCommand(makeSelfUpdateCommandStep(command, [
|
|
323
|
-
...prefixArgs,
|
|
324
|
-
"install",
|
|
325
|
-
"-g",
|
|
326
|
-
"--ignore-scripts",
|
|
327
|
-
"--min-release-age=0",
|
|
328
|
-
target.installSpec
|
|
329
|
-
]), target.packageName === installedPackageName ? void 0 : makeSelfUpdateCommandStep(command, [
|
|
330
|
-
...prefixArgs,
|
|
331
|
-
"uninstall",
|
|
332
|
-
"-g",
|
|
333
|
-
installedPackageName
|
|
334
|
-
]));
|
|
335
|
-
}
|
|
336
|
-
case "unknown": return;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
function readCommandOutput(command, args, options = {}) {
|
|
340
|
-
const result = spawnProcessSync(command, args, {
|
|
341
|
-
encoding: "utf-8",
|
|
342
|
-
stdio: [
|
|
343
|
-
"ignore",
|
|
344
|
-
"pipe",
|
|
345
|
-
"pipe"
|
|
346
|
-
]
|
|
347
|
-
});
|
|
348
|
-
if (result.status === 0) return result.stdout.trim() || void 0;
|
|
349
|
-
if (options.requireSuccess) {
|
|
350
|
-
const reason = result.error?.message || result.stderr.trim() || `exit code ${result.status ?? "unknown"}`;
|
|
351
|
-
throw new Error(`Failed to run ${[command, ...args].join(" ")}: ${reason}`);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function getGlobalPackageRoots(method, _packageName, npmCommand) {
|
|
355
|
-
switch (method) {
|
|
356
|
-
case "npm": {
|
|
357
|
-
const configured = !!npmCommand?.length;
|
|
358
|
-
const [command = "npm", ...npmArgs] = npmCommand ?? [];
|
|
359
|
-
if (configured && command === "bun") {
|
|
360
|
-
const bunBin = readCommandOutput(command, [
|
|
361
|
-
...npmArgs,
|
|
362
|
-
"pm",
|
|
363
|
-
"bin",
|
|
364
|
-
"-g"
|
|
365
|
-
], { requireSuccess: true });
|
|
366
|
-
const roots = [join(homedir(), ".bun", "install", "global", "node_modules")];
|
|
367
|
-
if (bunBin) roots.push(join(dirname(bunBin), "install", "global", "node_modules"));
|
|
368
|
-
return roots;
|
|
369
|
-
}
|
|
370
|
-
return [readCommandOutput(command, [
|
|
371
|
-
...npmArgs,
|
|
372
|
-
"root",
|
|
373
|
-
"-g"
|
|
374
|
-
], { requireSuccess: configured }), (configured ? void 0 : getInferredNpmInstall())?.root].filter((x) => !!x);
|
|
375
|
-
}
|
|
376
|
-
case "pnpm": {
|
|
377
|
-
const root = readCommandOutput("pnpm", ["root", "-g"]);
|
|
378
|
-
if (root) return [root, dirname(root)];
|
|
379
|
-
const match = /^(.*[\\/]global[\\/][^\\/]+)[\\/]\.pnpm[\\/]/.exec(getPackageDir());
|
|
380
|
-
return match ? [match[1]] : [];
|
|
381
|
-
}
|
|
382
|
-
case "yarn": {
|
|
383
|
-
const dir = readCommandOutput("yarn", ["global", "dir"]);
|
|
384
|
-
return dir ? [dir, join(dir, "node_modules")] : [];
|
|
385
|
-
}
|
|
386
|
-
case "bun": {
|
|
387
|
-
const bunBin = readCommandOutput("bun", [
|
|
388
|
-
"pm",
|
|
389
|
-
"bin",
|
|
390
|
-
"-g"
|
|
391
|
-
]);
|
|
392
|
-
const roots = [join(homedir(), ".bun", "install", "global", "node_modules")];
|
|
393
|
-
if (bunBin) roots.push(join(dirname(bunBin), "install", "global", "node_modules"));
|
|
394
|
-
return roots;
|
|
395
|
-
}
|
|
396
|
-
case "bun-binary":
|
|
397
|
-
case "unknown": return [];
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
function normalizeExistingPathForComparison(path, resolveSymlinks) {
|
|
401
|
-
const resolvedPath = resolve(path);
|
|
402
|
-
if (!existsSync$1(resolvedPath)) return;
|
|
403
|
-
let normalizedPath = resolvedPath;
|
|
404
|
-
if (resolveSymlinks) try {
|
|
405
|
-
normalizedPath = realpathSync$1(resolvedPath);
|
|
406
|
-
} catch {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
if (process.platform === "win32") normalizedPath = normalizedPath.toLowerCase();
|
|
410
|
-
return normalizedPath;
|
|
411
|
-
}
|
|
412
|
-
function getPathComparisonCandidates(path) {
|
|
413
|
-
return Array.from(new Set([normalizeExistingPathForComparison(path, false), normalizeExistingPathForComparison(path, true)].filter((candidate) => !!candidate)));
|
|
414
|
-
}
|
|
415
|
-
function getEntrypointPackageDir() {
|
|
416
|
-
const entrypoint = process.argv[1];
|
|
417
|
-
if (!entrypoint) return void 0;
|
|
418
|
-
let dir = dirname(entrypoint);
|
|
419
|
-
while (dir !== dirname(dir)) {
|
|
420
|
-
if (existsSync$1(join(dir, "package.json"))) return dir;
|
|
421
|
-
dir = dirname(dir);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
function isSelfUpdatePathWritable() {
|
|
425
|
-
const packageDir = getPackageDir();
|
|
426
|
-
try {
|
|
427
|
-
accessSync$1(packageDir, constants$1.W_OK);
|
|
428
|
-
accessSync$1(dirname(packageDir), constants$1.W_OK);
|
|
429
|
-
return true;
|
|
430
|
-
} catch {
|
|
431
|
-
return false;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
function isManagedByGlobalPackageManager(method, packageName, npmCommand) {
|
|
435
|
-
const packageDirCandidates = [getPackageDir(), getEntrypointPackageDir()].filter((dir) => !!dir).flatMap((dir) => getPathComparisonCandidates(dir));
|
|
436
|
-
return getGlobalPackageRoots(method, packageName, npmCommand).some((root) => {
|
|
437
|
-
return getPathComparisonCandidates(root).some((normalizedRoot) => {
|
|
438
|
-
const rootPrefix = normalizedRoot.endsWith(sep) ? normalizedRoot : `${normalizedRoot}${sep}`;
|
|
439
|
-
return packageDirCandidates.some((packageDir) => packageDir.startsWith(rootPrefix));
|
|
440
|
-
});
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
function getSelfUpdateCommand(packageName, npmCommand, updatePackageTarget = packageName) {
|
|
444
|
-
const method = detectInstallMethod();
|
|
445
|
-
const command = getSelfUpdateCommandForMethod(method, packageName, updatePackageTarget, npmCommand);
|
|
446
|
-
if (!command || !isManagedByGlobalPackageManager(method, packageName, npmCommand) || !isSelfUpdatePathWritable()) return;
|
|
447
|
-
return command;
|
|
448
|
-
}
|
|
449
|
-
function getSelfUpdateUnavailableInstruction(packageName, npmCommand, updatePackageTarget = packageName) {
|
|
450
|
-
const method = detectInstallMethod();
|
|
451
|
-
const target = normalizeSelfUpdatePackageTarget(updatePackageTarget);
|
|
452
|
-
if (method === "bun-binary") return `Download from: https://github.com/earendil-works/pi/releases/latest`;
|
|
453
|
-
const command = getSelfUpdateCommandForMethod(method, packageName, target, npmCommand);
|
|
454
|
-
if (command) {
|
|
455
|
-
if (isManagedByGlobalPackageManager(method, packageName, npmCommand) && !isSelfUpdatePathWritable()) return `This installation is managed by a global ${method} install, but the install path is not writable. Update it yourself with: ${command.display}`;
|
|
456
|
-
return `This installation is not managed by a global ${method} install. Update it with the package manager, wrapper, or source checkout that provides it.`;
|
|
457
|
-
}
|
|
458
|
-
return `Update ${target.installSpec} using the package manager, wrapper, or source checkout that provides this installation.`;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Get the base directory for resolving package assets (themes, package.json, README.md, CHANGELOG.md).
|
|
462
|
-
* - For Bun binary: returns the directory containing the executable
|
|
463
|
-
* - For Node.js: returns the package root containing package.json
|
|
464
|
-
* - Ignores Bun binary metadata copied into dist/ when the package root is available
|
|
465
|
-
*/
|
|
466
|
-
function findNodePackageDir(startDir) {
|
|
467
|
-
let dir = startDir;
|
|
468
|
-
while (dir !== dirname(dir)) {
|
|
469
|
-
if (existsSync$1(join(dir, "package.json"))) {
|
|
470
|
-
const parent = dirname(dir);
|
|
471
|
-
if (basename(dir) === "dist" && existsSync$1(join(parent, "package.json"))) return parent;
|
|
472
|
-
return dir;
|
|
473
|
-
}
|
|
474
|
-
dir = dirname(dir);
|
|
475
|
-
}
|
|
476
|
-
return startDir;
|
|
477
|
-
}
|
|
478
|
-
function getPackageDir() {
|
|
479
|
-
const envDir = process.env.PI_PACKAGE_DIR;
|
|
480
|
-
if (envDir) return normalizePath(envDir);
|
|
481
|
-
if (isBunBinary) return dirname(process.execPath);
|
|
482
|
-
return findNodePackageDir(__dirname);
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* Get path to built-in themes directory (shipped with package)
|
|
486
|
-
* - For Bun binary: theme/ next to executable
|
|
487
|
-
* - For Node.js (dist/): dist/modes/interactive/theme/
|
|
488
|
-
* - For source (src/): src/modes/interactive/theme/
|
|
489
|
-
*/
|
|
490
|
-
function getThemesDir() {
|
|
491
|
-
if (isBunBinary) return join(getPackageDir(), "theme");
|
|
492
|
-
const packageDir = getPackageDir();
|
|
493
|
-
const srcOrDist = existsSync$1(join(packageDir, "src")) ? "src" : "dist";
|
|
494
|
-
return join(packageDir, srcOrDist, "modes", "interactive", "theme");
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Get path to HTML export template directory (shipped with package)
|
|
498
|
-
* - For Bun binary: export-html/ next to executable
|
|
499
|
-
* - For Node.js (dist/): dist/core/export-html/
|
|
500
|
-
* - For source (src/): src/core/export-html/
|
|
501
|
-
*/
|
|
502
|
-
function getExportTemplateDir() {
|
|
503
|
-
if (isBunBinary) return join(getPackageDir(), "export-html");
|
|
504
|
-
const packageDir = getPackageDir();
|
|
505
|
-
const srcOrDist = existsSync$1(join(packageDir, "src")) ? "src" : "dist";
|
|
506
|
-
return join(packageDir, srcOrDist, "core", "export-html");
|
|
507
|
-
}
|
|
508
|
-
/** Get path to package.json */
|
|
509
|
-
function getPackageJsonPath() {
|
|
510
|
-
return join(getPackageDir(), "package.json");
|
|
511
|
-
}
|
|
512
|
-
/** Get path to README.md */
|
|
513
|
-
function getReadmePath() {
|
|
514
|
-
return resolve(join(getPackageDir(), "README.md"));
|
|
515
|
-
}
|
|
516
|
-
/** Get path to docs directory */
|
|
517
|
-
function getDocsPath() {
|
|
518
|
-
return resolve(join(getPackageDir(), "docs"));
|
|
519
|
-
}
|
|
520
|
-
/** Get path to examples directory */
|
|
521
|
-
function getExamplesPath() {
|
|
522
|
-
return resolve(join(getPackageDir(), "examples"));
|
|
523
|
-
}
|
|
524
|
-
/** Get path to CHANGELOG.md */
|
|
525
|
-
function getChangelogPath() {
|
|
526
|
-
return resolve(join(getPackageDir(), "CHANGELOG.md"));
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* Get path to built-in interactive assets directory.
|
|
530
|
-
* - For Bun binary: assets/ next to executable
|
|
531
|
-
* - For Node.js (dist/): dist/modes/interactive/assets/
|
|
532
|
-
* - For source (src/): src/modes/interactive/assets/
|
|
533
|
-
*/
|
|
534
|
-
function getInteractiveAssetsDir() {
|
|
535
|
-
if (isBunBinary) return join(getPackageDir(), "assets");
|
|
536
|
-
const packageDir = getPackageDir();
|
|
537
|
-
const srcOrDist = existsSync$1(join(packageDir, "src")) ? "src" : "dist";
|
|
538
|
-
return join(packageDir, srcOrDist, "modes", "interactive", "assets");
|
|
539
|
-
}
|
|
540
|
-
/** Get path to a bundled interactive asset */
|
|
541
|
-
function getBundledInteractiveAssetPath(name) {
|
|
542
|
-
return join(getInteractiveAssetsDir(), name);
|
|
543
|
-
}
|
|
544
|
-
let quickJSWasmPath;
|
|
545
|
-
/**
|
|
546
|
-
* Get path to `quickjs-wasi/quickjs.wasm`, the VM that runs codemode scripts. Resolved once so the
|
|
547
|
-
* compiled module cached per path keeps working after an update removes this install (#10439).
|
|
548
|
-
*/
|
|
549
|
-
function getQuickJSWasmPath() {
|
|
550
|
-
quickJSWasmPath ??= createRequire(import.meta.url).resolve("quickjs-wasi/quickjs.wasm");
|
|
551
|
-
return quickJSWasmPath;
|
|
552
|
-
}
|
|
553
|
-
/** Resolve the codemode worker entry for a release runtime. */
|
|
554
|
-
function resolveCodemodeWorkerSpecifier(runtime, moduleUrl) {
|
|
555
|
-
if (runtime === "bun-binary") return "./src/extensions/codemode/worker.ts";
|
|
556
|
-
if (runtime === "bundled-node") return new URL("./codemode-worker.js", moduleUrl);
|
|
557
|
-
}
|
|
558
|
-
let codemodeWorkerDataUrl;
|
|
559
|
-
/**
|
|
560
|
-
* Get the codemode worker entry, or undefined to use the worker that ships next to pi-codemode.
|
|
561
|
-
* The Bun and Node release builds both pass the worker as an extra entrypoint.
|
|
562
|
-
*/
|
|
563
|
-
function getCodemodeWorkerSpecifier() {
|
|
564
|
-
const runtime = isBunBinary ? "bun-binary" : isBundledNode ? "bundled-node" : "unbundled";
|
|
565
|
-
const specifier = resolveCodemodeWorkerSpecifier(runtime, import.meta.url);
|
|
566
|
-
if (runtime !== "bundled-node" || !(specifier instanceof URL)) return specifier;
|
|
567
|
-
codemodeWorkerDataUrl ??= new URL(`data:text/javascript;base64,${readFileSync$1(specifier).toString("base64")}`);
|
|
568
|
-
return codemodeWorkerDataUrl;
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* Detect that the package this process runs from changed on disk, for example after `pi update`
|
|
572
|
-
* in another terminal. Code loaded on demand can then be missing or from another version.
|
|
573
|
-
*
|
|
574
|
-
* Checks the package.json read at startup. Resolving it again would walk up past a deleted install
|
|
575
|
-
* and could find an unrelated package.json, such as one in the home directory.
|
|
576
|
-
*/
|
|
577
|
-
function detectInstallChange(packageJsonPath = startupPackageJsonPath) {
|
|
578
|
-
if (isBunBinary || !packageJsonPath) return void 0;
|
|
579
|
-
let installed;
|
|
580
|
-
try {
|
|
581
|
-
installed = JSON.parse(stripBom(readFileSync$1(packageJsonPath, "utf-8")));
|
|
582
|
-
} catch (error) {
|
|
583
|
-
return error.code === "ENOENT" ? { kind: "removed" } : void 0;
|
|
584
|
-
}
|
|
585
|
-
return installed.version && installed.version !== VERSION ? {
|
|
586
|
-
kind: "updated",
|
|
587
|
-
version: installed.version
|
|
588
|
-
} : void 0;
|
|
589
|
-
}
|
|
590
|
-
let pkg = {};
|
|
591
|
-
/** The package.json this process started from, if one existed. */
|
|
592
|
-
let startupPackageJsonPath;
|
|
593
|
-
try {
|
|
594
|
-
const packageJsonPath = getPackageJsonPath();
|
|
595
|
-
pkg = JSON.parse(stripBom(readFileSync$1(packageJsonPath, "utf-8")));
|
|
596
|
-
startupPackageJsonPath = packageJsonPath;
|
|
597
|
-
} catch (e) {
|
|
598
|
-
if (e.code !== "ENOENT") throw e;
|
|
599
|
-
}
|
|
600
|
-
const piConfigName = pkg.piConfig?.name;
|
|
601
|
-
const PACKAGE_NAME = pkg.name || "@earendil-works/pi-coding-agent";
|
|
602
|
-
const APP_NAME = piConfigName || "pi";
|
|
603
|
-
const APP_TITLE = piConfigName ? APP_NAME : "π";
|
|
604
|
-
const CONFIG_DIR_NAME = pkg.piConfig?.configDir || ".pi";
|
|
605
|
-
const VERSION = pkg.version || "0.0.0";
|
|
606
|
-
const ENV_AGENT_DIR = `${APP_NAME.toUpperCase()}_CODING_AGENT_DIR`;
|
|
607
|
-
const ENV_SESSION_DIR = `${APP_NAME.toUpperCase()}_CODING_AGENT_SESSION_DIR`;
|
|
608
|
-
function expandTildePath(path) {
|
|
609
|
-
return normalizePath(path);
|
|
610
|
-
}
|
|
611
|
-
const DEFAULT_SHARE_VIEWER_URL = "https://pi.dev/session/";
|
|
612
|
-
/** Get the share viewer URL for a gist ID. */
|
|
613
|
-
function getShareViewerUrl(gistId) {
|
|
614
|
-
return `${process.env.PI_SHARE_VIEWER_URL || DEFAULT_SHARE_VIEWER_URL}#${gistId}`;
|
|
615
|
-
}
|
|
616
|
-
/** Get the agent config directory (e.g., ~/.pi/agent/) */
|
|
617
|
-
function getAgentDir() {
|
|
618
|
-
const envDir = process.env[ENV_AGENT_DIR];
|
|
619
|
-
if (envDir) return expandTildePath(envDir);
|
|
620
|
-
return join(homedir(), CONFIG_DIR_NAME, "agent");
|
|
621
|
-
}
|
|
622
|
-
/** Get path to user's custom themes directory */
|
|
623
|
-
function getCustomThemesDir() {
|
|
624
|
-
return join(getAgentDir(), "themes");
|
|
625
|
-
}
|
|
626
|
-
/** Get path to auth.json */
|
|
627
|
-
function getAuthPath() {
|
|
628
|
-
return join(getAgentDir(), "auth.json");
|
|
629
|
-
}
|
|
630
|
-
/** Get path to settings.json */
|
|
631
|
-
function getSettingsPath() {
|
|
632
|
-
return join(getAgentDir(), "settings.json");
|
|
633
|
-
}
|
|
634
|
-
/** Get path to managed binaries directory (fd, rg) */
|
|
635
|
-
function getBinDir() {
|
|
636
|
-
return join(getAgentDir(), "bin");
|
|
637
|
-
}
|
|
638
|
-
/** Get path to sessions directory */
|
|
639
|
-
function getSessionsDir() {
|
|
640
|
-
return join(getAgentDir(), "sessions");
|
|
641
|
-
}
|
|
642
|
-
/** Get path to debug log file */
|
|
643
|
-
function getDebugLogPath() {
|
|
644
|
-
return join(getAgentDir(), `${APP_NAME}-debug.log`);
|
|
645
|
-
}
|
|
646
|
-
//#endregion
|
|
647
|
-
export { getThemesDir as A, markPathIgnoredByCloudSync as B, getQuickJSWasmPath as C, getSessionsDir as D, getSelfUpdateUnavailableInstruction as E, canonicalizePath as F, waitForChildProcess as G, resolvePath as H, formatPathRelativeToCwdOrAbsolute as I, getCwdRelativePath as L, isBundledNode as M, splitBom as N, getSettingsPath as O, stripBom as P, getFileRevision as R, getPackageDir as S, getSelfUpdateCommand as T, spawnProcess as U, normalizePath as V, spawnProcessSync as W, getCustomThemesDir as _, ENV_SESSION_DIR as a, getExamplesPath as b, detectInstallChange as c, getAgentDir as d, getAuthPath as f, getCodemodeWorkerSpecifier as g, getChangelogPath as h, ENV_AGENT_DIR as i, isBunBinary as j, getShareViewerUrl as k, detectInstallMethod as l, getBundledInteractiveAssetPath as m, APP_TITLE as n, PACKAGE_NAME as o, getBinDir as p, CONFIG_DIR_NAME as r, VERSION as s, APP_NAME as t, expandTildePath as u, getDebugLogPath as v, getReadmePath as w, getExportTemplateDir as x, getDocsPath as y, isLocalPath as z };
|