@organizaone/o1-code 0.21.12 → 0.22.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 +8 -6
- package/bundled/qc-helper/docs/configuration/settings.md +1 -1
- package/bundled/qc-helper/docs/features/mcp.md +5 -0
- package/bundled/qc-helper/docs/support/troubleshooting.md +124 -1
- package/chunks/{MaxSizedBox-2BZ3RGAN.js → MaxSizedBox-H6TTYZHO.js} +17 -17
- package/chunks/{StandaloneSessionPicker-URVHQ33H.js → StandaloneSessionPicker-G5FLW7TR.js} +34 -34
- package/chunks/{acp-subagent-executor-42HUHYWJ.js → acp-subagent-executor-PFIDAFOD.js} +19 -19
- package/chunks/{acpAgent-UE6Q6MDF.js → acpAgent-4PUZMTSI.js} +59 -59
- package/chunks/{agent-VSQDBKEV.js → agent-XS2VGVGO.js} +9 -9
- package/chunks/{agent-headless-5YJRNIU5.js → agent-headless-474ZYFSJ.js} +9 -9
- package/chunks/{all-providers-5WYELER7.js → all-providers-67KTP3MN.js} +2 -2
- package/chunks/{anthropicContentGenerator-LSPXJPRJ.js → anthropicContentGenerator-RTEGRYPV.js} +5 -5
- package/chunks/{bridge-64LWK7ZZ.js → bridge-HPTKSOIC.js} +19 -19
- package/chunks/{chunk-5BYEVKPE.js → chunk-2GNKUQNV.js} +48 -36
- package/chunks/{chunk-QSD4NNX7.js → chunk-35IZ2AEV.js} +4 -4
- package/chunks/{chunk-Q54TVLH3.js → chunk-3CJZHWKH.js} +1 -1
- package/chunks/{chunk-IIKBLS7C.js → chunk-3HQMSMNA.js} +1 -1
- package/chunks/{chunk-HAY7GH4C.js → chunk-3J63UVMG.js} +1 -1
- package/chunks/{chunk-FVJIDUCS.js → chunk-3OLRYJYM.js} +3 -3
- package/chunks/{chunk-PF6NLBU6.js → chunk-44YL3A4I.js} +1 -1
- package/chunks/{chunk-VPJNFLYT.js → chunk-4T3CEDPG.js} +5 -5
- package/chunks/{chunk-BW6UNNZZ.js → chunk-54DBAFQ2.js} +1 -1
- package/chunks/{chunk-SZUKUDET.js → chunk-5OKLHC2S.js} +1 -1
- package/chunks/{chunk-KLX3T6PQ.js → chunk-62T6BNFW.js} +4 -4
- package/chunks/{chunk-SC4A56UI.js → chunk-63XITVIE.js} +13 -13
- package/chunks/{chunk-PNDBIR3F.js → chunk-6MXIK5CK.js} +1 -1
- package/chunks/{chunk-QRH53G66.js → chunk-6N5O34AT.js} +5 -5
- package/chunks/{chunk-AYMTL6TQ.js → chunk-6XZZIE7V.js} +2 -2
- package/chunks/{chunk-W4HW4F2K.js → chunk-73K63OUJ.js} +7 -7
- package/chunks/{chunk-FJNY44SK.js → chunk-7FFS7D63.js} +1 -1
- package/chunks/{chunk-ZW75AOWT.js → chunk-7MFRXLVG.js} +1 -1
- package/chunks/{chunk-FRIJJ7WU.js → chunk-7O3XB3FJ.js} +2 -2
- package/chunks/{chunk-P5527KPA.js → chunk-AFXPLQYA.js} +3 -3
- package/chunks/{chunk-GU3KTDRS.js → chunk-ARKI4LOD.js} +3 -3
- package/chunks/{chunk-JP3U5UJT.js → chunk-B4WT73ZC.js} +2 -2
- package/chunks/{chunk-MI274MXI.js → chunk-BPZ6GQBH.js} +2 -2
- package/chunks/{chunk-4TG4VKHM.js → chunk-C6O3NG4T.js} +1 -1
- package/chunks/{chunk-ZHSDP46E.js → chunk-COBKDL54.js} +2 -2
- package/chunks/{chunk-TEOWSK2Y.js → chunk-CQ33RPSY.js} +10 -39
- package/chunks/{chunk-F5ZZD2XJ.js → chunk-D24NFPPO.js} +4 -4
- package/chunks/{chunk-3RUE4AI5.js → chunk-DGEOQOYK.js} +5 -5
- package/chunks/{chunk-X7NIVYXT.js → chunk-DNROOYR3.js} +2 -2
- package/chunks/{chunk-VI5LU5B3.js → chunk-EOIZZLQD.js} +1 -1
- package/chunks/{chunk-VRM2DCPN.js → chunk-EU7GXSE7.js} +7 -7
- package/chunks/{chunk-FSRV6E3A.js → chunk-EUIN36RL.js} +1 -1
- package/chunks/{chunk-NZPDU6XI.js → chunk-F5JXVZVJ.js} +2 -2
- package/chunks/{chunk-S22AMPHY.js → chunk-FI7LCEJ7.js} +27 -27
- package/chunks/{chunk-UNJ76GRD.js → chunk-FLIJQ7IC.js} +3 -3
- package/chunks/{chunk-RKRKWBGP.js → chunk-FT7HBT5S.js} +2 -2
- package/chunks/{chunk-KBPYRECY.js → chunk-FXSQ3EB2.js} +3 -3
- package/chunks/{chunk-RQI34L4L.js → chunk-GDOMZBF3.js} +1 -1
- package/chunks/{chunk-JZ7WLEQD.js → chunk-GLKPOCPH.js} +2 -2
- package/chunks/{chunk-6L6GONYZ.js → chunk-GW7QA3HN.js} +3 -3
- package/chunks/{chunk-P4JFO6QK.js → chunk-GXHLZHKS.js} +138 -65
- package/chunks/{chunk-LDS54GK7.js → chunk-HEFYYQ5F.js} +6 -4
- package/chunks/{chunk-LGTZFPFW.js → chunk-HLBNALL4.js} +1 -1
- package/chunks/{chunk-OAFLRECK.js → chunk-I3OOIGJI.js} +3 -3
- package/chunks/{chunk-XCVFETTO.js → chunk-IFJ3RGFY.js} +2 -2
- package/chunks/{chunk-5PVKPNPU.js → chunk-IRP7MQRE.js} +2 -2
- package/chunks/{chunk-VLUANPNK.js → chunk-IUDP2ML3.js} +3 -3
- package/chunks/{chunk-67V7FWU5.js → chunk-JFKJW3BP.js} +1 -1
- package/chunks/{chunk-G4UJA6OG.js → chunk-K44D6MLS.js} +445 -90
- package/chunks/{chunk-4SLOHBMI.js → chunk-KL5NEBVZ.js} +4 -4
- package/chunks/{chunk-YUOS4XKC.js → chunk-KSQ3A4MU.js} +5 -5
- package/chunks/{chunk-Q66RODNA.js → chunk-LSRS3YN5.js} +1 -1
- package/chunks/{chunk-QNDIPLLG.js → chunk-LSY2TNVO.js} +3 -3
- package/chunks/{chunk-4FVGYTTB.js → chunk-LWQVH7RG.js} +3 -3
- package/chunks/{chunk-CTZADE6E.js → chunk-LZCNINKB.js} +1 -1
- package/chunks/{chunk-IRZVUNMA.js → chunk-MVWEGM3N.js} +1 -1
- package/chunks/{chunk-MFAY5A2G.js → chunk-OJ2CVNVP.js} +1 -1
- package/chunks/{chunk-QRWZYAPM.js → chunk-P3H5PNSO.js} +1 -1
- package/chunks/{chunk-XQJEGIG4.js → chunk-PFBUKEWV.js} +9 -4
- package/chunks/{chunk-NJ7MEKVG.js → chunk-PT32HMCN.js} +1 -1
- package/chunks/{chunk-WOIQYP7B.js → chunk-PVYRIVM3.js} +1 -1
- package/chunks/{chunk-6WVOYUEJ.js → chunk-RBZFW23K.js} +3 -3
- package/chunks/{chunk-LM76NVKF.js → chunk-ROE3Y42D.js} +2 -2
- package/chunks/{chunk-AAW2TG66.js → chunk-S2JADXCO.js} +31 -3
- package/chunks/{chunk-4UL6MLEV.js → chunk-SHOCUW3R.js} +2 -2
- package/chunks/{chunk-4BG7FAZ2.js → chunk-SKQECA3Y.js} +1 -1
- package/chunks/{chunk-4UGXSLHA.js → chunk-SN3M4SEK.js} +13 -13
- package/chunks/{chunk-SLBP47PK.js → chunk-SPRNR2PU.js} +2 -2
- package/chunks/{chunk-EN3GYRXW.js → chunk-STL6XNJK.js} +3 -3
- package/chunks/{chunk-FIYTBZDZ.js → chunk-TAHFZVR5.js} +7 -7
- package/chunks/{chunk-IKSQVGB2.js → chunk-TD2B7LOS.js} +1 -1
- package/chunks/{chunk-I5LCZWR4.js → chunk-TZ7PFWVT.js} +1 -1
- package/chunks/{chunk-KH3ZMOQV.js → chunk-UUAWQAX6.js} +5 -5
- package/chunks/{chunk-HTD3FZXG.js → chunk-VMLVJOQL.js} +2 -2
- package/chunks/{chunk-GJUXJFGB.js → chunk-WCPTHHFI.js} +1 -1
- package/chunks/{chunk-B6FDV2GG.js → chunk-X2SSZR6M.js} +5 -5
- package/chunks/{chunk-7MHQGT7Y.js → chunk-XGXVMNHI.js} +4 -4
- package/chunks/{chunk-DM2DB5YS.js → chunk-XHQEB4WW.js} +1 -1
- package/chunks/{chunk-446EUCXY.js → chunk-XZDGZX34.js} +2 -2
- package/chunks/{chunk-HYKRT564.js → chunk-Y34E6WY7.js} +8 -8
- package/chunks/{chunk-Q7SHVWFV.js → chunk-YEG2VKSR.js} +2 -2
- package/chunks/{chunk-ADTBSWJM.js → chunk-YRKUDWZP.js} +2 -2
- package/chunks/{chunk-XCFEMYMZ.js → chunk-YXTBS65N.js} +2 -2
- package/chunks/{chunk-G6CFJOUC.js → chunk-ZBP2DKL7.js} +1 -1
- package/chunks/{chunk-OALPTFEF.js → chunk-ZPJTYCOY.js} +2 -2
- package/chunks/{chunk-J7XZGEYH.js → chunk-ZUBCKLDM.js} +3 -3
- package/chunks/{codex-subagent-executor-HUZ2RBO4.js → codex-subagent-executor-CVPJBY7H.js} +19 -19
- package/chunks/{contextCommand-UCBQCZPT.js → contextCommand-VQP42E45.js} +19 -19
- package/chunks/{core-runtime-33VWCL5W.js → core-runtime-UGTGVETQ.js} +17 -17
- package/chunks/{create-sub-session-EKZSCCOT.js → create-sub-session-W7HDHA47.js} +18 -18
- package/chunks/{daemon-git-worktree-guard-PVGNE2VK.js → daemon-git-worktree-guard-OYHWZ4DT.js} +17 -17
- package/chunks/{daemon-status-provider-HCY7J7MU.js → daemon-status-provider-BPA4OMKT.js} +23 -23
- package/chunks/{daemon-trust-policy-RY2NJKC4.js → daemon-trust-policy-LR3O2LHO.js} +23 -23
- package/chunks/{daemon-trust-policy-monitor-QZGG6ZRG.js → daemon-trust-policy-monitor-XYJBQS5K.js} +23 -23
- package/chunks/{deferred-core-runtime-UQBHRN26.js → deferred-core-runtime-2JRX7S37.js} +17 -17
- package/chunks/{edit-ITG7FT2N.js → edit-C5EXC227.js} +11 -11
- package/chunks/{en-TGA7IM7I.js → en-QBY42TC3.js} +25 -0
- package/chunks/{enterPlanMode-FPEK4BIB.js → enterPlanMode-LRUOZ2DX.js} +9 -9
- package/chunks/{environment-R72KBJYN.js → environment-AK5W47CA.js} +19 -19
- package/chunks/{errors-F7FV45GH.js → errors-V77HGFV3.js} +19 -19
- package/chunks/{execution-tool-O6ZQT4QK.js → execution-tool-NK2ST2RX.js} +11 -11
- package/chunks/{execution-worker-AKAHKG4U.js → execution-worker-QO36YMNT.js} +14 -14
- package/chunks/{exitPlanMode-E3X6O2KI.js → exitPlanMode-OPS5BP27.js} +9 -9
- package/chunks/{fast-path-NYJY3CTG.js → fast-path-SAXQN2PO.js} +2 -2
- package/chunks/{foreground-runner-3DWMIR57.js → foreground-runner-WUF5YIVW.js} +23 -19
- package/chunks/{glob-UF4UY2H3.js → glob-EAIWIACU.js} +9 -9
- package/chunks/{goal-tools-5PYBCVXE.js → goal-tools-IM4K7YYV.js} +9 -9
- package/chunks/{handleAutoUpdate-MWT23FAM.js → handleAutoUpdate-XGWLFCZ3.js} +20 -20
- package/chunks/{i18n-FGEDPY3X.js → i18n-A3JWISCI.js} +18 -18
- package/chunks/{initializer-U3VL76VN.js → initializer-WF7GJJSN.js} +23 -23
- package/chunks/{installationInfo-7T2AMMB5.js → installationInfo-UGZLB5DE.js} +17 -17
- package/chunks/{list-XJHO2ULF.js → list-XL33NYFQ.js} +25 -25
- package/chunks/{llm-GOWMM7X6.js → llm-5ZIFZWYM.js} +48 -48
- package/chunks/{llm-content-generator-IU5UXRT5.js → llm-content-generator-IP6THV2F.js} +4 -4
- package/chunks/{loadedSettingsAdapter-JPTRNBK4.js → loadedSettingsAdapter-BBOBGOFY.js} +23 -23
- package/chunks/{local-execution-environment-JRKVTL4S.js → local-execution-environment-OHZ6JHBJ.js} +14 -14
- package/chunks/{loggingContentGenerator-OEWKCKMT.js → loggingContentGenerator-ZB6YBQ4A.js} +9 -9
- package/chunks/{managed-npm-update-OUV36XDV.js → managed-npm-update-U2LTQRW5.js} +107 -26
- package/chunks/{mcp-SGAE27LZ.js → mcp-7TSDK7XG.js} +23 -23
- package/chunks/{model-call-collection-ZJ44DP57.js → model-call-collection-Q6XLRBD4.js} +1 -1
- package/chunks/{model-configuration-KDYH62W7.js → model-configuration-YHPN6XLJ.js} +24 -24
- package/chunks/{modelConfigUtils-Y6ROWGQR.js → modelConfigUtils-KXEA5X5L.js} +19 -19
- package/chunks/{monitor-4QUEE5PD.js → monitor-YUS5UHUB.js} +9 -9
- package/chunks/{nonInteractiveCli-OM7DDCIR.js → nonInteractiveCli-H5OSIGXO.js} +50 -50
- package/chunks/{nonInteractiveToolExecutor-DI7QR4NJ.js → nonInteractiveToolExecutor-KOOCZSZM.js} +10 -10
- package/chunks/{notebook-edit-VE3PZOBS.js → notebook-edit-XYZLSPWF.js} +10 -10
- package/chunks/{omni-HOD7DV7N.js → omni-QS5RRGPB.js} +9 -9
- package/chunks/{openaiContentGenerator-MMFYMCWS.js → openaiContentGenerator-37E2A7VN.js} +6 -6
- package/chunks/{openaiResponsesContentGenerator-SSIBVYVO.js → openaiResponsesContentGenerator-PMCEAG55.js} +4 -4
- package/chunks/{processUtils-65C36IP2.js → processUtils-CQXO2K7O.js} +2 -2
- package/chunks/{prompt-terminal-ledger-UDXHJGTR.js → prompt-terminal-ledger-ZRCMVONU.js} +18 -18
- package/chunks/{pt-M2VNXLYO.js → pt-DHKQQO6C.js} +25 -0
- package/chunks/{pty-host-process-UP752FWV.js → pty-host-process-KO4H32QM.js} +1 -1
- package/chunks/{reactive-degrade-2UHNPYQG.js → reactive-degrade-ZJ3JVKAL.js} +8 -8
- package/chunks/{read-file-NXZBG4AF.js → read-file-MOY3AEWH.js} +1 -1
- package/chunks/{resumeHistoryUtils-GAFAJJ32.js → resumeHistoryUtils-HATXAZWB.js} +22 -22
- package/chunks/{ripGrep-BTNYROLP.js → ripGrep-DRZ55VHF.js} +1 -1
- package/chunks/{run-o1-code-serve-JPHA76ZV.js → run-o1-code-serve-QG3EUGCC.js} +32 -32
- package/chunks/{sandboxConfig-UCP6JH76.js → sandboxConfig-67KD25RA.js} +17 -17
- package/chunks/{scheduled-tasks-MAAZRWDD.js → scheduled-tasks-SUK36YBV.js} +22 -22
- package/chunks/{scheduler-OEDDDVZS.js → scheduler-VGATQHDI.js} +19 -19
- package/chunks/{serve-W53YA4E6.js → serve-4JYKC5U3.js} +23 -23
- package/chunks/{server-BIOYLQ4S.js → server-ID2MQUOZ.js} +48 -48
- package/chunks/{session-YJEXIQYW.js → session-FEM6CGKX.js} +1 -1
- package/chunks/{session-HWYQLWRW.js → session-SBJFEMA7.js} +51 -51
- package/chunks/{session-attachments-root-GQGU56M6.js → session-attachments-root-ILVWUB6H.js} +17 -17
- package/chunks/{session-pr-refresh-SWXWY5G7.js → session-pr-refresh-PMD3YR6L.js} +21 -21
- package/chunks/{settings-QXVMNILF.js → settings-7BOOCLET.js} +22 -22
- package/chunks/{shell-P3A6NR2F.js → shell-PWH465OV.js} +9 -9
- package/chunks/{skill-TJVM366F.js → skill-6CYVI2NR.js} +1 -1
- package/chunks/{skill-settings-GBIWXUSF.js → skill-settings-5HIZWK7Y.js} +22 -22
- package/chunks/{spawnChannel-YNHVMRUM.js → spawnChannel-OOMVR63F.js} +18 -18
- package/chunks/{standalone-update-BPLEMHR3.js → standalone-update-MXJDDVFO.js} +19 -19
- package/chunks/{startInteractiveUI-LKHQEMJC.js → startInteractiveUI-IHLZORH3.js} +4805 -4243
- package/chunks/{supervisor-runner-MDQEC376.js → supervisor-runner-I3KOH7AT.js} +6 -2
- package/chunks/{team-create-PKMF5MWH.js → team-create-NNXUJHYM.js} +9 -9
- package/chunks/{team-plan-approval-MMTFDTUP.js → team-plan-approval-NGGXGRN5.js} +9 -9
- package/chunks/{terminal-image-renderer-PQKSRFG6.js → terminal-image-renderer-QPJZUQOY.js} +17 -17
- package/chunks/{theme-manager-JAUIL6A6.js → theme-manager-YN3VTWUS.js} +17 -17
- package/chunks/{tool-result-media-EFRG36K3.js → tool-result-media-ELNVF7HV.js} +9 -9
- package/chunks/{tool-search-ADQSAKUL.js → tool-search-3MQVPZN2.js} +1 -1
- package/chunks/{total-session-admission-WR52JIJF.js → total-session-admission-RQ2GWA4J.js} +19 -19
- package/chunks/{trustedFolders-MICSTOQU.js → trustedFolders-ANMISMAZ.js} +18 -18
- package/chunks/{update-relaunch-KME3VVNC.js → update-relaunch-ANCIYSER.js} +11 -6
- package/chunks/{updateCheck-3TEZS32Z.js → updateCheck-QGDY5DY2.js} +19 -19
- package/chunks/{upload-config-2UYVTNDH.js → upload-config-V6CJBH2Z.js} +6 -6
- package/chunks/{useAutoAcceptIndicator-M22TBUGG.js → useAutoAcceptIndicator-H4PUESJW.js} +26 -26
- package/chunks/{validateNonInterActiveAuth-IYB7C4RT.js → validateNonInterActiveAuth-3D6LYNKP.js} +47 -47
- package/chunks/{version-MNDZPW5E.js → version-M7PIODKT.js} +1 -1
- package/chunks/{web-fetch-4WV34U3H.js → web-fetch-VJSQST7P.js} +1 -1
- package/chunks/{web-search-RWIHTXBO.js → web-search-CVFACVJV.js} +7 -7
- package/chunks/{workflow-OLMHA4BB.js → workflow-O3XZL3Z4.js} +10 -10
- package/chunks/{workspace-providers-status-ZK5RTIRW.js → workspace-providers-status-M47T3M22.js} +27 -27
- package/chunks/{workspace-registration-store-OFBYI2AM.js → workspace-registration-store-HGSY3RON.js} +1 -1
- package/chunks/{workspace-registry-24UG35RO.js → workspace-registry-LYEI3DR3.js} +19 -19
- package/chunks/{workspace-runtime-coordinator-JTMGRKL6.js → workspace-runtime-coordinator-OHXZ4IPK.js} +19 -19
- package/chunks/{workspace-service-4F3QNU5O.js → workspace-service-VII7ZCF7.js} +26 -26
- package/chunks/{workspace-skills-status-CQJRAMY2.js → workspace-skills-status-7GG3A3TL.js} +23 -23
- package/chunks/{workspace-trust-reconciler-5EZ6XHNZ.js → workspace-trust-reconciler-GGKNXRVC.js} +25 -25
- package/chunks/{write-file-6KJ6PRKR.js → write-file-K5V3EMTE.js} +11 -11
- package/chunks/{zoom-image-OCGXTGXD.js → zoom-image-TROZVSMN.js} +1 -1
- package/cli-entry.js +13 -48
- package/cli.js +16 -16
- package/execution-worker.js +1 -1
- package/export-transcript-document.js +1 -1
- package/locales/en.js +36 -0
- package/locales/pt.js +36 -0
- package/node_modules/koffi/LICENSE.txt +22 -0
- package/node_modules/koffi/README.md +46 -0
- package/node_modules/koffi/index.cjs +1 -0
- package/node_modules/koffi/index.d.ts +390 -0
- package/node_modules/koffi/index.js +2 -0
- package/node_modules/koffi/indirect.cjs +1 -0
- package/node_modules/koffi/indirect.js +2 -0
- package/node_modules/koffi/package.json +63 -0
- package/node_modules/koffi/src/koffi/index.cjs +327 -0
- package/node_modules/koffi/src/koffi/index.js +312 -0
- package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
- package/node_modules/koffi/src/koffi/indirect.js +311 -0
- package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
- package/node_modules/koffi/src/koffi/src/static.js +173 -0
- package/package.json +25 -2
- package/release-notes.json +18 -0
- package/web-shell/assets/{abnfDiagram-VCTEODGH-Blm8csld.js → abnfDiagram-VCTEODGH-1p6NHpAP.js} +1 -1
- package/web-shell/assets/{arc-DP_rbVda.js → arc-zZSvt9kN.js} +1 -1
- package/web-shell/assets/{architectureDiagram-5GKGNRK7-EjLTuk5n.js → architectureDiagram-5GKGNRK7-C1H1DVM2.js} +1 -1
- package/web-shell/assets/{blockDiagram-NRAW4CY4-BSp3kH8e.js → blockDiagram-NRAW4CY4-CLvQiMuT.js} +1 -1
- package/web-shell/assets/{c4Diagram-UCG6FXSJ-DgdEOH_H.js → c4Diagram-UCG6FXSJ-verRTIfv.js} +1 -1
- package/web-shell/assets/channel-BL_seGtn.js +1 -0
- package/web-shell/assets/{chunk-2Q5K7J3B-CTfcSXdR.js → chunk-2Q5K7J3B-BIX6o24B.js} +1 -1
- package/web-shell/assets/{chunk-5VM5RSS4-DSvHcY83.js → chunk-5VM5RSS4-hp0xJxSu.js} +1 -1
- package/web-shell/assets/{chunk-F27PBJKO-DQxZ4sQG.js → chunk-F27PBJKO-BHY8_5WY.js} +1 -1
- package/web-shell/assets/{chunk-G27WJ6UU-CkxSTxNF.js → chunk-G27WJ6UU-Bq3iuQSE.js} +1 -1
- package/web-shell/assets/{chunk-JWPE2WC7-0Jyf4kN0.js → chunk-JWPE2WC7-nl0EYjjD.js} +1 -1
- package/web-shell/assets/{chunk-LCL6LL3I-CfodE2oy.js → chunk-LCL6LL3I-CstAiHwj.js} +1 -1
- package/web-shell/assets/{chunk-POPQ4Y6H-DKNG_Q8j.js → chunk-POPQ4Y6H-BWSrwMPq.js} +1 -1
- package/web-shell/assets/{chunk-SVP7TREG-fJLgHhdK.js → chunk-SVP7TREG-BHoHrDvN.js} +1 -1
- package/web-shell/assets/{chunk-XXDRQBXY-B5SXZxzv.js → chunk-XXDRQBXY-_raB2Fx7.js} +1 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-CSUKMc0D.js +1 -0
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-CSUKMc0D.js +1 -0
- package/web-shell/assets/{cose-bilkent-JH36ORCC-cAsM9PHD.js → cose-bilkent-JH36ORCC-DzohBTSN.js} +1 -1
- package/web-shell/assets/{cynefin-OW5HDTMX-DRnaoZZ1.js → cynefin-OW5HDTMX-DUuz4IOx.js} +1 -1
- package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BGP5RBk9.js → cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js} +1 -1
- package/web-shell/assets/{dagre-3AP2YEHR-BT4s62Rf.js → dagre-3AP2YEHR-DccvRFOk.js} +1 -1
- package/web-shell/assets/{diagram-S7CK7UJ4-CAMMwuGP.js → diagram-S7CK7UJ4-iGT749Oj.js} +1 -1
- package/web-shell/assets/{diagram-UQ7AKVKN-UR0L_1o7.js → diagram-UQ7AKVKN-DO-brOdV.js} +1 -1
- package/web-shell/assets/{diagram-VSXAHHWV-CKqMzuGn.js → diagram-VSXAHHWV-BTxQOmxL.js} +1 -1
- package/web-shell/assets/{diagram-VX7I27RA-13tiWaGu.js → diagram-VX7I27RA-B4qvwv51.js} +1 -1
- package/web-shell/assets/{diagram-Z3DM3KII-Bf-aoo5R.js → diagram-Z3DM3KII-rBgjOTjS.js} +1 -1
- package/web-shell/assets/{ebnfDiagram-PWID7BFC-5rUl0IMJ.js → ebnfDiagram-PWID7BFC-pm_yhGF5.js} +1 -1
- package/web-shell/assets/{erDiagram-SSCWMZ5O-GREvBu1Z.js → erDiagram-SSCWMZ5O-CYu1ceNm.js} +1 -1
- package/web-shell/assets/{flowDiagram-A5DVABFB-B6Psdym5.js → flowDiagram-A5DVABFB-VaNRVW2d.js} +1 -1
- package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Cb24GKog.js → ganttDiagram-EL5Y4UJY-DyvaaUFV.js} +1 -1
- package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bg7qw5JL.js → gitGraphDiagram-WWUBYQGX-ATr3REtt.js} +1 -1
- package/web-shell/assets/{index-DTLx9svT.js → index-B3YLpUKu.js} +1 -1
- package/web-shell/assets/{index-C1iC-XWx.js → index-C4N7bP4K.js} +3 -3
- package/web-shell/assets/{infoDiagram-RXCK75RN-Cx0asY0r.js → infoDiagram-RXCK75RN-C94by8Av.js} +1 -1
- package/web-shell/assets/{ishikawaDiagram-5VMMS53U-3NBLOZEv.js → ishikawaDiagram-5VMMS53U-DzjDX0-x.js} +1 -1
- package/web-shell/assets/{journeyDiagram-EYS64GPL-DNgiQP6o.js → journeyDiagram-EYS64GPL-BW955BgY.js} +1 -1
- package/web-shell/assets/{kanban-definition-3QL26DDD-JuQXfRp_.js → kanban-definition-3QL26DDD-BtbAjdCr.js} +1 -1
- package/web-shell/assets/{layout-Cev2Ff0R.js → layout-U3vDc3pe.js} +1 -1
- package/web-shell/assets/{linear-BfVni-EP.js → linear-B5nTSs6h.js} +1 -1
- package/web-shell/assets/{mermaid.core-DT3Pzm8u.js → mermaid.core-ezhLxuW5.js} +6 -6
- package/web-shell/assets/{mindmap-definition-FBJOCRG2-BFIKt6yc.js → mindmap-definition-FBJOCRG2-BVcRjZNc.js} +1 -1
- package/web-shell/assets/{pegDiagram-XKGWAZYB-BIZ_N-Ep.js → pegDiagram-XKGWAZYB-BnYXkIZM.js} +1 -1
- package/web-shell/assets/{pieDiagram-E7YTZNPT-DVudbGYK.js → pieDiagram-E7YTZNPT-DooJLvL9.js} +1 -1
- package/web-shell/assets/{quadrantDiagram-AXDQQJYC-MauYSAxr.js → quadrantDiagram-AXDQQJYC-MywT58KI.js} +1 -1
- package/web-shell/assets/{railroadDiagram-O6MQD6OU-CAc0Jodi.js → railroadDiagram-O6MQD6OU-kZGgDmOU.js} +1 -1
- package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C3QPrwWL.js → requirementDiagram-EFPCY7ZU-BTR494PR.js} +1 -1
- package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BY4QnzoU.js → sankeyDiagram-P5KCCOFB-DCC0qZFO.js} +1 -1
- package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BQCkD6LS.js → sequenceDiagram-WJ2MYXX4-DDvDBq18.js} +1 -1
- package/web-shell/assets/{sizeCapture-X5ZJPWSS-DNisR9q3.js → sizeCapture-X5ZJPWSS-C3GSzMrx.js} +1 -1
- package/web-shell/assets/{stateDiagram-HBIQ2CUA-CbqDtAdm.js → stateDiagram-HBIQ2CUA-Dr4BXIdu.js} +1 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DPa_JZnG.js +1 -0
- package/web-shell/assets/{swimlanes-XN3QIQJK-Yf5JgSO3.js → swimlanes-XN3QIQJK-CTc5retR.js} +1 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-WV4-2ySQ.js +8 -0
- package/web-shell/assets/{timeline-definition-24CTP7MA-ZHueEzUo.js → timeline-definition-24CTP7MA-DlCHZahl.js} +1 -1
- package/web-shell/assets/{vennDiagram-4TSXK5OY-DAGFdAuB.js → vennDiagram-4TSXK5OY-DSEiDJ6-.js} +1 -1
- package/web-shell/assets/{wardleyDiagram-VM6X3IG4-C5aBn2nB.js → wardleyDiagram-VM6X3IG4-BSky5BAj.js} +1 -1
- package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Cok1KJLN.js → xychartDiagram-S5SC5T6Z-C-_l5Eqg.js} +1 -1
- package/web-shell/index.html +1 -1
- package/web-shell/sw.js +1 -1
- package/web-shell/assets/channel-CLKVanLU.js +0 -1
- package/web-shell/assets/classDiagram-DTDB5LWJ-C8qMaQFg.js +0 -1
- package/web-shell/assets/classDiagram-v2-JRS7N3AN-C8qMaQFg.js +0 -1
- package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Bwshffk9.js +0 -1
- package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DYX1d77n.js +0 -8
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __esm = (fn, res, err) => function __init() {
|
|
8
|
+
if (err) throw err[0];
|
|
9
|
+
try {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw err = [e], e;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var __export = (target, all) => {
|
|
16
|
+
for (var name in all)
|
|
17
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
18
|
+
};
|
|
19
|
+
var __copyProps = (to, from, except, desc) => {
|
|
20
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
+
for (let key of __getOwnPropNames(from))
|
|
22
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
+
}
|
|
25
|
+
return to;
|
|
26
|
+
};
|
|
27
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
+
mod
|
|
34
|
+
));
|
|
35
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
|
+
|
|
37
|
+
// ../cnoke/src/abi.js
|
|
38
|
+
function determineAbi() {
|
|
39
|
+
let abi = process.arch.toString();
|
|
40
|
+
if (abi == "riscv32" || abi == "riscv64") {
|
|
41
|
+
let file = openFile(process.execPath, "r");
|
|
42
|
+
try {
|
|
43
|
+
let header = readElfHeader(file);
|
|
44
|
+
let float_abi = header.e_flags & 6;
|
|
45
|
+
switch (float_abi) {
|
|
46
|
+
case 0:
|
|
47
|
+
{
|
|
48
|
+
}
|
|
49
|
+
break;
|
|
50
|
+
case 2:
|
|
51
|
+
{
|
|
52
|
+
abi += "f";
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
case 4:
|
|
56
|
+
{
|
|
57
|
+
abi += "d";
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case 6:
|
|
61
|
+
{
|
|
62
|
+
abi += "q";
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
} finally {
|
|
67
|
+
file.close();
|
|
68
|
+
}
|
|
69
|
+
} else if (abi == "arm") {
|
|
70
|
+
let file = openFile(process.execPath, "r");
|
|
71
|
+
try {
|
|
72
|
+
let header = readElfHeader(file);
|
|
73
|
+
if (header.e_flags & 1024) {
|
|
74
|
+
abi += "hf";
|
|
75
|
+
} else if (header.e_flags & 512) {
|
|
76
|
+
abi += "sf";
|
|
77
|
+
} else {
|
|
78
|
+
throw new Error("Unknown ARM floating-point ABI");
|
|
79
|
+
}
|
|
80
|
+
} finally {
|
|
81
|
+
file.close();
|
|
82
|
+
}
|
|
83
|
+
} else if (abi == "ppc64") {
|
|
84
|
+
let file = openFile(process.execPath, "r");
|
|
85
|
+
try {
|
|
86
|
+
let header = readElfHeader(file);
|
|
87
|
+
switch (header.ei_data) {
|
|
88
|
+
case 1:
|
|
89
|
+
{
|
|
90
|
+
abi += "le";
|
|
91
|
+
}
|
|
92
|
+
break;
|
|
93
|
+
case 2:
|
|
94
|
+
{
|
|
95
|
+
abi += "be";
|
|
96
|
+
}
|
|
97
|
+
break;
|
|
98
|
+
default:
|
|
99
|
+
throw new Error("Invalid ELF endianness value");
|
|
100
|
+
}
|
|
101
|
+
} finally {
|
|
102
|
+
file.close();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return abi;
|
|
106
|
+
}
|
|
107
|
+
function readElfHeader(file, offset = 0) {
|
|
108
|
+
let buf = file.read(offset, 512);
|
|
109
|
+
if (buf.length < 16)
|
|
110
|
+
throw new Error("Truncated header");
|
|
111
|
+
if (buf[0] != 127 || buf[1] != 69 || buf[2] != 76 || buf[3] != 70)
|
|
112
|
+
throw new Error("Invalid magic number");
|
|
113
|
+
if (buf[6] != 1)
|
|
114
|
+
throw new Error("Invalid ELF version");
|
|
115
|
+
if (buf[5] != 1)
|
|
116
|
+
throw new Error("Big-endian architectures are not supported");
|
|
117
|
+
switch (buf[4]) {
|
|
118
|
+
case 1:
|
|
119
|
+
{
|
|
120
|
+
if (buf.length < 68)
|
|
121
|
+
throw new Error("Truncated ELF header");
|
|
122
|
+
return {
|
|
123
|
+
ei_class: 32,
|
|
124
|
+
ei_data: buf[5],
|
|
125
|
+
e_machine: buf.readUInt16LE(18),
|
|
126
|
+
e_flags: buf.readUInt32LE(36),
|
|
127
|
+
e_phoff: buf.readUInt32LE(28),
|
|
128
|
+
e_phentsize: buf.readUInt16LE(42),
|
|
129
|
+
e_phnum: buf.readUInt16LE(44)
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
case 2:
|
|
134
|
+
{
|
|
135
|
+
if (buf.length < 120)
|
|
136
|
+
throw new Error("Truncated ELF header");
|
|
137
|
+
return {
|
|
138
|
+
ei_class: 64,
|
|
139
|
+
ei_data: buf[5],
|
|
140
|
+
e_machine: buf.readUInt16LE(18),
|
|
141
|
+
e_flags: buf.readUInt32LE(48),
|
|
142
|
+
e_phoff: buf.readBigUInt64LE(32),
|
|
143
|
+
e_phentsize: buf.readUInt16LE(54),
|
|
144
|
+
e_phnum: buf.readUInt16LE(56)
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
default:
|
|
149
|
+
throw new Error("Invalid ELF class");
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function openFile(filename, flags) {
|
|
153
|
+
let fd = import_node_fs.default.openSync(filename, flags);
|
|
154
|
+
return new FileHandle(fd);
|
|
155
|
+
}
|
|
156
|
+
var import_node_fs, FileHandle;
|
|
157
|
+
var init_abi = __esm({
|
|
158
|
+
"../cnoke/src/abi.js"() {
|
|
159
|
+
import_node_fs = __toESM(require("node:fs"), 1);
|
|
160
|
+
FileHandle = class {
|
|
161
|
+
constructor(fd) {
|
|
162
|
+
this.fd = fd;
|
|
163
|
+
}
|
|
164
|
+
close() {
|
|
165
|
+
import_node_fs.default.closeSync(this.fd);
|
|
166
|
+
}
|
|
167
|
+
[Symbol.dispose]() {
|
|
168
|
+
import_node_fs.default.closeSync(this.fd);
|
|
169
|
+
}
|
|
170
|
+
read(offset, len) {
|
|
171
|
+
let buf = Buffer.allocUnsafe(len);
|
|
172
|
+
let read = import_node_fs.default.readSync(this.fd, buf, 0, len, offset);
|
|
173
|
+
return buf.subarray(0, read);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// package.json
|
|
180
|
+
var package_default;
|
|
181
|
+
var init_package = __esm({
|
|
182
|
+
"package.json"() {
|
|
183
|
+
package_default = { name: "koffi", version: "3.3.2", cnoke: { api: "../../vendor/node-api-headers", output: "../../bin/Koffi/{{ toolchain }}", node: 16, napi: 8 } };
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
// src/init.js
|
|
188
|
+
var init_exports = {};
|
|
189
|
+
__export(init_exports, {
|
|
190
|
+
detectPlatform: () => detectPlatform,
|
|
191
|
+
loadDynamic: () => loadDynamic,
|
|
192
|
+
wrapNative: () => wrapNative
|
|
193
|
+
});
|
|
194
|
+
function detectPlatform() {
|
|
195
|
+
if (process.versions.napi == null || process.versions.napi < package_default.cnoke.napi) {
|
|
196
|
+
let major = parseInt(process.versions.node, 10);
|
|
197
|
+
throw new Error(`This engine is based on Node ${process.versions.node}, but ${package_default.name} does not support the Node ${major}.x branch (Node-API < ${package_default.cnoke.napi})`);
|
|
198
|
+
}
|
|
199
|
+
let abi = determineAbi();
|
|
200
|
+
let pkg2 = `${process.platform}-${process.arch}`;
|
|
201
|
+
let triplets2 = [`${process.platform}_${abi}`];
|
|
202
|
+
if (process.platform == "linux")
|
|
203
|
+
triplets2.push(`musl_${abi}`);
|
|
204
|
+
return [package_default.version, pkg2, triplets2];
|
|
205
|
+
}
|
|
206
|
+
function loadDynamic(dirname, pkg2, triplets2) {
|
|
207
|
+
let suffix = "/../../build/koffi";
|
|
208
|
+
let root = dirname + suffix;
|
|
209
|
+
let roots = [root];
|
|
210
|
+
let native2 = null;
|
|
211
|
+
let err = null;
|
|
212
|
+
if (process["resourcesPath"] != null) {
|
|
213
|
+
let suffixes = [
|
|
214
|
+
"/koffi",
|
|
215
|
+
"/koffi/build",
|
|
216
|
+
"/node_modules/koffi/build"
|
|
217
|
+
];
|
|
218
|
+
for (let suffix2 of suffixes)
|
|
219
|
+
roots.push(process["resourcesPath"] + suffix2);
|
|
220
|
+
}
|
|
221
|
+
let names = [
|
|
222
|
+
`${__dirname}/../../../@koromix/koffi-${pkg2}`,
|
|
223
|
+
...triplets2.flatMap((triplet) => roots.map((dir) => `${dir}/${triplet}/koffi.node`))
|
|
224
|
+
];
|
|
225
|
+
for (let name of names) {
|
|
226
|
+
if (!import_node_fs2.default.existsSync(name))
|
|
227
|
+
continue;
|
|
228
|
+
try {
|
|
229
|
+
native2 = require2(name);
|
|
230
|
+
break;
|
|
231
|
+
} catch (e) {
|
|
232
|
+
err ??= e;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
if (native2 == null && err != null)
|
|
236
|
+
throw err;
|
|
237
|
+
return native2;
|
|
238
|
+
}
|
|
239
|
+
function wrapNative(native2, version2) {
|
|
240
|
+
if (native2 == null)
|
|
241
|
+
throw new Error("Cannot find the native Koffi module; did you bundle it correctly?");
|
|
242
|
+
if (native2.version != version2)
|
|
243
|
+
throw new Error("Mismatched native Koffi modules");
|
|
244
|
+
let load = native2.load;
|
|
245
|
+
let register = native2.register;
|
|
246
|
+
native2.register = (...args) => {
|
|
247
|
+
if (args.length >= 3 && typeof args[1] == "function") {
|
|
248
|
+
process.emitWarning("Using koffi.register() with a custom this value was deprecated in Koffi 2.17, use function.bind() instead", "DeprecationWarning", "KOFFI009");
|
|
249
|
+
args[1] = args[1].bind(args[0]);
|
|
250
|
+
args = args.slice(1);
|
|
251
|
+
}
|
|
252
|
+
return register(...args);
|
|
253
|
+
};
|
|
254
|
+
native2.load = (...args) => {
|
|
255
|
+
let lib = load(...args);
|
|
256
|
+
lib.cdecl = import_node_util.default.deprecate((...args2) => lib.func("__cdecl", ...args2), "The koffi.cdecl() function was deprecated in Koffi 2.7, use koffi.func(...) instead", "KOFFI003");
|
|
257
|
+
lib.stdcall = import_node_util.default.deprecate((...args2) => lib.func("__stdcall", ...args2), 'The koffi.stdcall() function was deprecated in Koffi 2.7, use koffi.func("__stdcall", ...) instead', "KOFFI004");
|
|
258
|
+
lib.fastcall = import_node_util.default.deprecate((...args2) => lib.func("__fastcall", ...args2), 'The koffi.fastcall() function was deprecated in Koffi 2.7, use koffi.func("__fastcall", ...) instead', "KOFFI005");
|
|
259
|
+
lib.thiscall = import_node_util.default.deprecate((...args2) => lib.func("__thiscall", ...args2), 'The koffi.thiscall() function was deprecated in Koffi 2.7, use koffi.func("__thiscall", ...) instead', "KOFFI006");
|
|
260
|
+
return lib;
|
|
261
|
+
};
|
|
262
|
+
native2.resolve = import_node_util.default.deprecate(native2.type, "The koffi.resolve() function was deprecated in Koffi 3.0, use koffi.type() instead", "KOFFI007");
|
|
263
|
+
native2.introspect = import_node_util.default.deprecate(native2.type, "The koffi.introspect() function was deprecated in Koffi 3.0, use koffi.type() instead", "KOFFI008");
|
|
264
|
+
}
|
|
265
|
+
var import_node_util, import_node_fs2, import_node_module, require2;
|
|
266
|
+
var init_init = __esm({
|
|
267
|
+
"src/init.js"() {
|
|
268
|
+
import_node_util = __toESM(require("node:util"));
|
|
269
|
+
import_node_fs2 = __toESM(require("node:fs"));
|
|
270
|
+
import_node_module = require("node:module");
|
|
271
|
+
init_abi();
|
|
272
|
+
init_package();
|
|
273
|
+
require2 = (0, import_node_module.createRequire)(__filename);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
// indirect.cjs
|
|
278
|
+
var { detectPlatform: detectPlatform2, loadDynamic: loadDynamic2, wrapNative: wrapNative2 } = (init_init(), __toCommonJS(init_exports));
|
|
279
|
+
var [version, pkg, triplets] = detectPlatform2();
|
|
280
|
+
var native = loadDynamic2(__dirname, pkg, triplets);
|
|
281
|
+
wrapNative2(native, version);
|
|
282
|
+
module.exports = {
|
|
283
|
+
default: native,
|
|
284
|
+
"LibraryHandle": native["LibraryHandle"],
|
|
285
|
+
"TypeObject": native["TypeObject"],
|
|
286
|
+
"Union": native["Union"],
|
|
287
|
+
"address": native["address"],
|
|
288
|
+
"alias": native["alias"],
|
|
289
|
+
"alignof": native["alignof"],
|
|
290
|
+
"alloc": native["alloc"],
|
|
291
|
+
"array": native["array"],
|
|
292
|
+
"as": native["as"],
|
|
293
|
+
"call": native["call"],
|
|
294
|
+
"config": native["config"],
|
|
295
|
+
"decode": native["decode"],
|
|
296
|
+
"disposable": native["disposable"],
|
|
297
|
+
"encode": native["encode"],
|
|
298
|
+
"enumeration": native["enumeration"],
|
|
299
|
+
"errno": native["errno"],
|
|
300
|
+
"extension": native["extension"],
|
|
301
|
+
"free": native["free"],
|
|
302
|
+
"in": native["in"],
|
|
303
|
+
"inout": native["inout"],
|
|
304
|
+
"introspect": native["introspect"],
|
|
305
|
+
"load": native["load"],
|
|
306
|
+
"node": native["node"],
|
|
307
|
+
"offsetof": native["offsetof"],
|
|
308
|
+
"opaque": native["opaque"],
|
|
309
|
+
"os": native["os"],
|
|
310
|
+
"out": native["out"],
|
|
311
|
+
"pack": native["pack"],
|
|
312
|
+
"pointer": native["pointer"],
|
|
313
|
+
"proto": native["proto"],
|
|
314
|
+
"register": native["register"],
|
|
315
|
+
"reset": native["reset"],
|
|
316
|
+
"resolve": native["resolve"],
|
|
317
|
+
"sizeof": native["sizeof"],
|
|
318
|
+
"stats": native["stats"],
|
|
319
|
+
"struct": native["struct"],
|
|
320
|
+
"type": native["type"],
|
|
321
|
+
"types": native["types"],
|
|
322
|
+
"union": native["union"],
|
|
323
|
+
"unregister": native["unregister"],
|
|
324
|
+
"version": native["version"],
|
|
325
|
+
"view": native["view"]
|
|
326
|
+
};
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
// src/init.js
|
|
2
|
+
import util from "node:util";
|
|
3
|
+
import fs2 from "node:fs";
|
|
4
|
+
import { createRequire } from "node:module";
|
|
5
|
+
|
|
6
|
+
// ../cnoke/src/abi.js
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
function determineAbi() {
|
|
9
|
+
let abi = process.arch.toString();
|
|
10
|
+
if (abi == "riscv32" || abi == "riscv64") {
|
|
11
|
+
let file = openFile(process.execPath, "r");
|
|
12
|
+
try {
|
|
13
|
+
let header = readElfHeader(file);
|
|
14
|
+
let float_abi = header.e_flags & 6;
|
|
15
|
+
switch (float_abi) {
|
|
16
|
+
case 0:
|
|
17
|
+
{
|
|
18
|
+
}
|
|
19
|
+
break;
|
|
20
|
+
case 2:
|
|
21
|
+
{
|
|
22
|
+
abi += "f";
|
|
23
|
+
}
|
|
24
|
+
break;
|
|
25
|
+
case 4:
|
|
26
|
+
{
|
|
27
|
+
abi += "d";
|
|
28
|
+
}
|
|
29
|
+
break;
|
|
30
|
+
case 6:
|
|
31
|
+
{
|
|
32
|
+
abi += "q";
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
} finally {
|
|
37
|
+
file.close();
|
|
38
|
+
}
|
|
39
|
+
} else if (abi == "arm") {
|
|
40
|
+
let file = openFile(process.execPath, "r");
|
|
41
|
+
try {
|
|
42
|
+
let header = readElfHeader(file);
|
|
43
|
+
if (header.e_flags & 1024) {
|
|
44
|
+
abi += "hf";
|
|
45
|
+
} else if (header.e_flags & 512) {
|
|
46
|
+
abi += "sf";
|
|
47
|
+
} else {
|
|
48
|
+
throw new Error("Unknown ARM floating-point ABI");
|
|
49
|
+
}
|
|
50
|
+
} finally {
|
|
51
|
+
file.close();
|
|
52
|
+
}
|
|
53
|
+
} else if (abi == "ppc64") {
|
|
54
|
+
let file = openFile(process.execPath, "r");
|
|
55
|
+
try {
|
|
56
|
+
let header = readElfHeader(file);
|
|
57
|
+
switch (header.ei_data) {
|
|
58
|
+
case 1:
|
|
59
|
+
{
|
|
60
|
+
abi += "le";
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
case 2:
|
|
64
|
+
{
|
|
65
|
+
abi += "be";
|
|
66
|
+
}
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
throw new Error("Invalid ELF endianness value");
|
|
70
|
+
}
|
|
71
|
+
} finally {
|
|
72
|
+
file.close();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return abi;
|
|
76
|
+
}
|
|
77
|
+
function readElfHeader(file, offset = 0) {
|
|
78
|
+
let buf = file.read(offset, 512);
|
|
79
|
+
if (buf.length < 16)
|
|
80
|
+
throw new Error("Truncated header");
|
|
81
|
+
if (buf[0] != 127 || buf[1] != 69 || buf[2] != 76 || buf[3] != 70)
|
|
82
|
+
throw new Error("Invalid magic number");
|
|
83
|
+
if (buf[6] != 1)
|
|
84
|
+
throw new Error("Invalid ELF version");
|
|
85
|
+
if (buf[5] != 1)
|
|
86
|
+
throw new Error("Big-endian architectures are not supported");
|
|
87
|
+
switch (buf[4]) {
|
|
88
|
+
case 1:
|
|
89
|
+
{
|
|
90
|
+
if (buf.length < 68)
|
|
91
|
+
throw new Error("Truncated ELF header");
|
|
92
|
+
return {
|
|
93
|
+
ei_class: 32,
|
|
94
|
+
ei_data: buf[5],
|
|
95
|
+
e_machine: buf.readUInt16LE(18),
|
|
96
|
+
e_flags: buf.readUInt32LE(36),
|
|
97
|
+
e_phoff: buf.readUInt32LE(28),
|
|
98
|
+
e_phentsize: buf.readUInt16LE(42),
|
|
99
|
+
e_phnum: buf.readUInt16LE(44)
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
break;
|
|
103
|
+
case 2:
|
|
104
|
+
{
|
|
105
|
+
if (buf.length < 120)
|
|
106
|
+
throw new Error("Truncated ELF header");
|
|
107
|
+
return {
|
|
108
|
+
ei_class: 64,
|
|
109
|
+
ei_data: buf[5],
|
|
110
|
+
e_machine: buf.readUInt16LE(18),
|
|
111
|
+
e_flags: buf.readUInt32LE(48),
|
|
112
|
+
e_phoff: buf.readBigUInt64LE(32),
|
|
113
|
+
e_phentsize: buf.readUInt16LE(54),
|
|
114
|
+
e_phnum: buf.readUInt16LE(56)
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
throw new Error("Invalid ELF class");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function openFile(filename, flags) {
|
|
123
|
+
let fd = fs.openSync(filename, flags);
|
|
124
|
+
return new FileHandle(fd);
|
|
125
|
+
}
|
|
126
|
+
var FileHandle = class {
|
|
127
|
+
constructor(fd) {
|
|
128
|
+
this.fd = fd;
|
|
129
|
+
}
|
|
130
|
+
close() {
|
|
131
|
+
fs.closeSync(this.fd);
|
|
132
|
+
}
|
|
133
|
+
[Symbol.dispose]() {
|
|
134
|
+
fs.closeSync(this.fd);
|
|
135
|
+
}
|
|
136
|
+
read(offset, len) {
|
|
137
|
+
let buf = Buffer.allocUnsafe(len);
|
|
138
|
+
let read = fs.readSync(this.fd, buf, 0, len, offset);
|
|
139
|
+
return buf.subarray(0, read);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
// package.json
|
|
144
|
+
var package_default = { name: "koffi", version: "3.3.2", cnoke: { api: "../../vendor/node-api-headers", output: "../../bin/Koffi/{{ toolchain }}", node: 16, napi: 8 } };
|
|
145
|
+
|
|
146
|
+
// src/init.js
|
|
147
|
+
var require2 = createRequire(import.meta.url);
|
|
148
|
+
function detectPlatform() {
|
|
149
|
+
if (process.versions.napi == null || process.versions.napi < package_default.cnoke.napi) {
|
|
150
|
+
let major = parseInt(process.versions.node, 10);
|
|
151
|
+
throw new Error(`This engine is based on Node ${process.versions.node}, but ${package_default.name} does not support the Node ${major}.x branch (Node-API < ${package_default.cnoke.napi})`);
|
|
152
|
+
}
|
|
153
|
+
let abi = determineAbi();
|
|
154
|
+
let pkg2 = `${process.platform}-${process.arch}`;
|
|
155
|
+
let triplets2 = [`${process.platform}_${abi}`];
|
|
156
|
+
if (process.platform == "linux")
|
|
157
|
+
triplets2.push(`musl_${abi}`);
|
|
158
|
+
return [package_default.version, pkg2, triplets2];
|
|
159
|
+
}
|
|
160
|
+
function loadDynamic(dirname, pkg2, triplets2) {
|
|
161
|
+
let suffix = "/../../build/koffi";
|
|
162
|
+
let root = dirname + suffix;
|
|
163
|
+
let roots = [root];
|
|
164
|
+
let native2 = null;
|
|
165
|
+
let err = null;
|
|
166
|
+
if (process["resourcesPath"] != null) {
|
|
167
|
+
let suffixes = [
|
|
168
|
+
"/koffi",
|
|
169
|
+
"/koffi/build",
|
|
170
|
+
"/node_modules/koffi/build"
|
|
171
|
+
];
|
|
172
|
+
for (let suffix2 of suffixes)
|
|
173
|
+
roots.push(process["resourcesPath"] + suffix2);
|
|
174
|
+
}
|
|
175
|
+
let names = [
|
|
176
|
+
`${import.meta.dirname}/../../../@koromix/koffi-${pkg2}`,
|
|
177
|
+
...triplets2.flatMap((triplet) => roots.map((dir) => `${dir}/${triplet}/koffi.node`))
|
|
178
|
+
];
|
|
179
|
+
for (let name of names) {
|
|
180
|
+
if (!fs2.existsSync(name))
|
|
181
|
+
continue;
|
|
182
|
+
try {
|
|
183
|
+
native2 = require2(name);
|
|
184
|
+
break;
|
|
185
|
+
} catch (e) {
|
|
186
|
+
err ??= e;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
if (native2 == null && err != null)
|
|
190
|
+
throw err;
|
|
191
|
+
return native2;
|
|
192
|
+
}
|
|
193
|
+
function wrapNative(native2, version2) {
|
|
194
|
+
if (native2 == null)
|
|
195
|
+
throw new Error("Cannot find the native Koffi module; did you bundle it correctly?");
|
|
196
|
+
if (native2.version != version2)
|
|
197
|
+
throw new Error("Mismatched native Koffi modules");
|
|
198
|
+
let load = native2.load;
|
|
199
|
+
let register = native2.register;
|
|
200
|
+
native2.register = (...args) => {
|
|
201
|
+
if (args.length >= 3 && typeof args[1] == "function") {
|
|
202
|
+
process.emitWarning("Using koffi.register() with a custom this value was deprecated in Koffi 2.17, use function.bind() instead", "DeprecationWarning", "KOFFI009");
|
|
203
|
+
args[1] = args[1].bind(args[0]);
|
|
204
|
+
args = args.slice(1);
|
|
205
|
+
}
|
|
206
|
+
return register(...args);
|
|
207
|
+
};
|
|
208
|
+
native2.load = (...args) => {
|
|
209
|
+
let lib = load(...args);
|
|
210
|
+
lib.cdecl = util.deprecate((...args2) => lib.func("__cdecl", ...args2), "The koffi.cdecl() function was deprecated in Koffi 2.7, use koffi.func(...) instead", "KOFFI003");
|
|
211
|
+
lib.stdcall = util.deprecate((...args2) => lib.func("__stdcall", ...args2), 'The koffi.stdcall() function was deprecated in Koffi 2.7, use koffi.func("__stdcall", ...) instead', "KOFFI004");
|
|
212
|
+
lib.fastcall = util.deprecate((...args2) => lib.func("__fastcall", ...args2), 'The koffi.fastcall() function was deprecated in Koffi 2.7, use koffi.func("__fastcall", ...) instead', "KOFFI005");
|
|
213
|
+
lib.thiscall = util.deprecate((...args2) => lib.func("__thiscall", ...args2), 'The koffi.thiscall() function was deprecated in Koffi 2.7, use koffi.func("__thiscall", ...) instead', "KOFFI006");
|
|
214
|
+
return lib;
|
|
215
|
+
};
|
|
216
|
+
native2.resolve = util.deprecate(native2.type, "The koffi.resolve() function was deprecated in Koffi 3.0, use koffi.type() instead", "KOFFI007");
|
|
217
|
+
native2.introspect = util.deprecate(native2.type, "The koffi.introspect() function was deprecated in Koffi 3.0, use koffi.type() instead", "KOFFI008");
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// indirect.js
|
|
221
|
+
var [version, pkg, triplets] = detectPlatform();
|
|
222
|
+
var native = loadDynamic(import.meta.dirname, pkg, triplets);
|
|
223
|
+
wrapNative(native, version);
|
|
224
|
+
var mod_LibraryHandle = native.LibraryHandle;
|
|
225
|
+
var mod_TypeObject = native.TypeObject;
|
|
226
|
+
var mod_Union = native.Union;
|
|
227
|
+
var mod_address = native.address;
|
|
228
|
+
var mod_alias = native.alias;
|
|
229
|
+
var mod_alignof = native.alignof;
|
|
230
|
+
var mod_alloc = native.alloc;
|
|
231
|
+
var mod_array = native.array;
|
|
232
|
+
var mod_as = native.as;
|
|
233
|
+
var mod_call = native.call;
|
|
234
|
+
var mod_config = native.config;
|
|
235
|
+
var mod_decode = native.decode;
|
|
236
|
+
var mod_disposable = native.disposable;
|
|
237
|
+
var mod_encode = native.encode;
|
|
238
|
+
var mod_enumeration = native.enumeration;
|
|
239
|
+
var mod_errno = native.errno;
|
|
240
|
+
var mod_extension = native.extension;
|
|
241
|
+
var mod_free = native.free;
|
|
242
|
+
var mod_in = native.in;
|
|
243
|
+
var mod_inout = native.inout;
|
|
244
|
+
var mod_introspect = native.introspect;
|
|
245
|
+
var mod_load = native.load;
|
|
246
|
+
var mod_node = native.node;
|
|
247
|
+
var mod_offsetof = native.offsetof;
|
|
248
|
+
var mod_opaque = native.opaque;
|
|
249
|
+
var mod_os = native.os;
|
|
250
|
+
var mod_out = native.out;
|
|
251
|
+
var mod_pack = native.pack;
|
|
252
|
+
var mod_pointer = native.pointer;
|
|
253
|
+
var mod_proto = native.proto;
|
|
254
|
+
var mod_register = native.register;
|
|
255
|
+
var mod_reset = native.reset;
|
|
256
|
+
var mod_resolve = native.resolve;
|
|
257
|
+
var mod_sizeof = native.sizeof;
|
|
258
|
+
var mod_stats = native.stats;
|
|
259
|
+
var mod_struct = native.struct;
|
|
260
|
+
var mod_type = native.type;
|
|
261
|
+
var mod_types = native.types;
|
|
262
|
+
var mod_union = native.union;
|
|
263
|
+
var mod_unregister = native.unregister;
|
|
264
|
+
var mod_version = native.version;
|
|
265
|
+
var mod_view = native.view;
|
|
266
|
+
var indirect_default = native;
|
|
267
|
+
export {
|
|
268
|
+
mod_LibraryHandle as LibraryHandle,
|
|
269
|
+
mod_TypeObject as TypeObject,
|
|
270
|
+
mod_Union as Union,
|
|
271
|
+
mod_address as address,
|
|
272
|
+
mod_alias as alias,
|
|
273
|
+
mod_alignof as alignof,
|
|
274
|
+
mod_alloc as alloc,
|
|
275
|
+
mod_array as array,
|
|
276
|
+
mod_as as as,
|
|
277
|
+
mod_call as call,
|
|
278
|
+
mod_config as config,
|
|
279
|
+
mod_decode as decode,
|
|
280
|
+
indirect_default as default,
|
|
281
|
+
mod_disposable as disposable,
|
|
282
|
+
mod_encode as encode,
|
|
283
|
+
mod_enumeration as enumeration,
|
|
284
|
+
mod_errno as errno,
|
|
285
|
+
mod_extension as extension,
|
|
286
|
+
mod_free as free,
|
|
287
|
+
mod_in as in,
|
|
288
|
+
mod_inout as inout,
|
|
289
|
+
mod_introspect as introspect,
|
|
290
|
+
mod_load as load,
|
|
291
|
+
mod_node as node,
|
|
292
|
+
mod_offsetof as offsetof,
|
|
293
|
+
mod_opaque as opaque,
|
|
294
|
+
mod_os as os,
|
|
295
|
+
mod_out as out,
|
|
296
|
+
mod_pack as pack,
|
|
297
|
+
mod_pointer as pointer,
|
|
298
|
+
mod_proto as proto,
|
|
299
|
+
mod_register as register,
|
|
300
|
+
mod_reset as reset,
|
|
301
|
+
mod_resolve as resolve,
|
|
302
|
+
mod_sizeof as sizeof,
|
|
303
|
+
mod_stats as stats,
|
|
304
|
+
mod_struct as struct,
|
|
305
|
+
mod_type as type,
|
|
306
|
+
mod_types as types,
|
|
307
|
+
mod_union as union,
|
|
308
|
+
mod_unregister as unregister,
|
|
309
|
+
mod_version as version,
|
|
310
|
+
mod_view as view
|
|
311
|
+
};
|