@organizaone/o1-code 0.22.1 → 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.
Files changed (274) hide show
  1. package/bundled/qc-helper/docs/support/troubleshooting.md +4 -0
  2. package/chunks/{MaxSizedBox-RVGQPVQO.js → MaxSizedBox-H6TTYZHO.js} +17 -17
  3. package/chunks/{StandaloneSessionPicker-BMI42LHG.js → StandaloneSessionPicker-G5FLW7TR.js} +33 -33
  4. package/chunks/{acp-subagent-executor-UAXJUFQK.js → acp-subagent-executor-PFIDAFOD.js} +19 -19
  5. package/chunks/{acpAgent-4ZEY3OME.js → acpAgent-4PUZMTSI.js} +58 -58
  6. package/chunks/{agent-NH2EHRJ3.js → agent-XS2VGVGO.js} +9 -9
  7. package/chunks/{agent-headless-SNT5BKJU.js → agent-headless-474ZYFSJ.js} +9 -9
  8. package/chunks/{all-providers-7WVHE4GD.js → all-providers-67KTP3MN.js} +2 -2
  9. package/chunks/{anthropicContentGenerator-CJDEP3M6.js → anthropicContentGenerator-RTEGRYPV.js} +5 -5
  10. package/chunks/{bridge-RTND6IB6.js → bridge-HPTKSOIC.js} +19 -19
  11. package/chunks/{chunk-VUPOGOOS.js → chunk-2GNKUQNV.js} +43 -30
  12. package/chunks/{chunk-YK6Z7PNX.js → chunk-35IZ2AEV.js} +4 -4
  13. package/chunks/{chunk-GR4V6J5L.js → chunk-3CJZHWKH.js} +1 -1
  14. package/chunks/{chunk-OPWIQQ3C.js → chunk-3HQMSMNA.js} +1 -1
  15. package/chunks/{chunk-KQ7E7FOJ.js → chunk-3J63UVMG.js} +1 -1
  16. package/chunks/{chunk-QWDKIHIR.js → chunk-3OLRYJYM.js} +3 -3
  17. package/chunks/{chunk-SRA3CI5I.js → chunk-44YL3A4I.js} +1 -1
  18. package/chunks/{chunk-NPFU56EO.js → chunk-4T3CEDPG.js} +5 -5
  19. package/chunks/{chunk-HUW7MDI7.js → chunk-54DBAFQ2.js} +1 -1
  20. package/chunks/{chunk-LGXLBYI3.js → chunk-5OKLHC2S.js} +1 -1
  21. package/chunks/{chunk-RXJMYK2R.js → chunk-62T6BNFW.js} +4 -4
  22. package/chunks/{chunk-44NP2DKE.js → chunk-63XITVIE.js} +13 -13
  23. package/chunks/{chunk-NAEZE5OL.js → chunk-6MXIK5CK.js} +1 -1
  24. package/chunks/{chunk-F2EWJITM.js → chunk-6N5O34AT.js} +5 -5
  25. package/chunks/{chunk-KWV4ZB3F.js → chunk-6XZZIE7V.js} +2 -2
  26. package/chunks/{chunk-KNWO6F63.js → chunk-73K63OUJ.js} +7 -7
  27. package/chunks/{chunk-IKHE2AI7.js → chunk-7FFS7D63.js} +1 -1
  28. package/chunks/{chunk-FLBRWOOW.js → chunk-7MFRXLVG.js} +1 -1
  29. package/chunks/{chunk-FYI2IX5L.js → chunk-7O3XB3FJ.js} +2 -2
  30. package/chunks/{chunk-OCOO6CMW.js → chunk-AFXPLQYA.js} +3 -3
  31. package/chunks/{chunk-R6HGPORE.js → chunk-ARKI4LOD.js} +3 -3
  32. package/chunks/{chunk-YRVUYXMC.js → chunk-B4WT73ZC.js} +2 -2
  33. package/chunks/{chunk-VFMFOTNC.js → chunk-BPZ6GQBH.js} +2 -2
  34. package/chunks/{chunk-AOO6ZUFV.js → chunk-C6O3NG4T.js} +1 -1
  35. package/chunks/{chunk-RUJW2EYS.js → chunk-COBKDL54.js} +2 -2
  36. package/chunks/{chunk-SDB4PPQF.js → chunk-CQ33RPSY.js} +8 -8
  37. package/chunks/{chunk-RANMV3VA.js → chunk-D24NFPPO.js} +4 -4
  38. package/chunks/{chunk-VSZBTI6Z.js → chunk-DGEOQOYK.js} +5 -5
  39. package/chunks/{chunk-IZBRJ2HF.js → chunk-DNROOYR3.js} +2 -2
  40. package/chunks/{chunk-F6YTVAGO.js → chunk-EOIZZLQD.js} +1 -1
  41. package/chunks/{chunk-JSL55Y6I.js → chunk-EU7GXSE7.js} +7 -7
  42. package/chunks/{chunk-UHPISANS.js → chunk-EUIN36RL.js} +1 -1
  43. package/chunks/{chunk-Z6WSMXW5.js → chunk-F5JXVZVJ.js} +2 -2
  44. package/chunks/{chunk-QUVGCD32.js → chunk-FI7LCEJ7.js} +27 -27
  45. package/chunks/{chunk-3DE6KFXZ.js → chunk-FLIJQ7IC.js} +3 -3
  46. package/chunks/{chunk-RQPDN23V.js → chunk-FT7HBT5S.js} +2 -2
  47. package/chunks/{chunk-BSW6OIM7.js → chunk-FXSQ3EB2.js} +3 -3
  48. package/chunks/{chunk-Z2HNRDOD.js → chunk-GDOMZBF3.js} +1 -1
  49. package/chunks/{chunk-H7IF7CAJ.js → chunk-GLKPOCPH.js} +2 -2
  50. package/chunks/{chunk-4A6A4AS6.js → chunk-GW7QA3HN.js} +3 -3
  51. package/chunks/{chunk-4GJBQ3MM.js → chunk-GXHLZHKS.js} +1 -1
  52. package/chunks/{chunk-AG4W5EZN.js → chunk-HEFYYQ5F.js} +2 -2
  53. package/chunks/{chunk-PWXL2VKU.js → chunk-HLBNALL4.js} +1 -1
  54. package/chunks/{chunk-TOIXYNL6.js → chunk-I3OOIGJI.js} +3 -3
  55. package/chunks/{chunk-BUDPTG55.js → chunk-IFJ3RGFY.js} +2 -2
  56. package/chunks/{chunk-FAKFP7PE.js → chunk-IRP7MQRE.js} +2 -2
  57. package/chunks/{chunk-KK2RIV4A.js → chunk-IUDP2ML3.js} +3 -3
  58. package/chunks/{chunk-IIICLNER.js → chunk-JFKJW3BP.js} +1 -1
  59. package/chunks/{chunk-VHMXJAL4.js → chunk-K44D6MLS.js} +48 -48
  60. package/chunks/{chunk-YDBDPF4G.js → chunk-KL5NEBVZ.js} +4 -4
  61. package/chunks/{chunk-4MANEJTL.js → chunk-KSQ3A4MU.js} +5 -5
  62. package/chunks/{chunk-WZSZXEAQ.js → chunk-LSRS3YN5.js} +1 -1
  63. package/chunks/{chunk-PAEZIQXY.js → chunk-LSY2TNVO.js} +3 -3
  64. package/chunks/{chunk-CGTBVU3O.js → chunk-LWQVH7RG.js} +2 -2
  65. package/chunks/{chunk-VMYLENRS.js → chunk-LZCNINKB.js} +1 -1
  66. package/chunks/{chunk-T374RNAS.js → chunk-MVWEGM3N.js} +1 -1
  67. package/chunks/{chunk-F4FU6VM5.js → chunk-OJ2CVNVP.js} +1 -1
  68. package/chunks/{chunk-7CKBM5N3.js → chunk-P3H5PNSO.js} +1 -1
  69. package/chunks/{chunk-E27VESCX.js → chunk-PFBUKEWV.js} +2 -2
  70. package/chunks/{chunk-N5KJNQIZ.js → chunk-PT32HMCN.js} +1 -1
  71. package/chunks/{chunk-KRLE7IDY.js → chunk-PVYRIVM3.js} +1 -1
  72. package/chunks/{chunk-6E6FTN4Z.js → chunk-RBZFW23K.js} +3 -3
  73. package/chunks/{chunk-7BGLVYAH.js → chunk-ROE3Y42D.js} +2 -2
  74. package/chunks/{chunk-O5AS4OOX.js → chunk-SHOCUW3R.js} +2 -2
  75. package/chunks/{chunk-5POXLSBR.js → chunk-SKQECA3Y.js} +1 -1
  76. package/chunks/{chunk-EMXYZZ5Y.js → chunk-SN3M4SEK.js} +13 -13
  77. package/chunks/{chunk-LWC7HPRI.js → chunk-SPRNR2PU.js} +2 -2
  78. package/chunks/{chunk-BKZ3FWIY.js → chunk-STL6XNJK.js} +3 -3
  79. package/chunks/{chunk-BDZ6CKXF.js → chunk-TAHFZVR5.js} +7 -7
  80. package/chunks/{chunk-GCEFGJQL.js → chunk-TD2B7LOS.js} +1 -1
  81. package/chunks/{chunk-Y4DKB3I4.js → chunk-TZ7PFWVT.js} +1 -1
  82. package/chunks/{chunk-6HVK5AB6.js → chunk-UUAWQAX6.js} +5 -5
  83. package/chunks/{chunk-HA4IBUMM.js → chunk-VMLVJOQL.js} +2 -2
  84. package/chunks/{chunk-WKYZUJ5O.js → chunk-WCPTHHFI.js} +1 -1
  85. package/chunks/{chunk-DYPQF4VS.js → chunk-X2SSZR6M.js} +5 -5
  86. package/chunks/{chunk-EADQN4GH.js → chunk-XGXVMNHI.js} +4 -4
  87. package/chunks/{chunk-KIF3TIH4.js → chunk-XHQEB4WW.js} +1 -1
  88. package/chunks/{chunk-U7HTBVK6.js → chunk-XZDGZX34.js} +2 -2
  89. package/chunks/{chunk-2TXSMV3M.js → chunk-Y34E6WY7.js} +8 -8
  90. package/chunks/{chunk-BFD5HYRL.js → chunk-YEG2VKSR.js} +2 -2
  91. package/chunks/{chunk-E6Q7UUWN.js → chunk-YRKUDWZP.js} +2 -2
  92. package/chunks/{chunk-O5BCFPOB.js → chunk-YXTBS65N.js} +2 -2
  93. package/chunks/{chunk-AN76M2SF.js → chunk-ZBP2DKL7.js} +1 -1
  94. package/chunks/{chunk-3HYHMJZ7.js → chunk-ZPJTYCOY.js} +2 -2
  95. package/chunks/{chunk-GDRXAL2V.js → chunk-ZUBCKLDM.js} +3 -3
  96. package/chunks/{codex-subagent-executor-QKMKATHR.js → codex-subagent-executor-CVPJBY7H.js} +19 -19
  97. package/chunks/{contextCommand-Q4HCSERF.js → contextCommand-VQP42E45.js} +19 -19
  98. package/chunks/{core-runtime-77F57PX4.js → core-runtime-UGTGVETQ.js} +17 -17
  99. package/chunks/{create-sub-session-F5JXMYGW.js → create-sub-session-W7HDHA47.js} +18 -18
  100. package/chunks/{daemon-git-worktree-guard-ZQCJ7RWX.js → daemon-git-worktree-guard-OYHWZ4DT.js} +17 -17
  101. package/chunks/{daemon-status-provider-TOCJXPVE.js → daemon-status-provider-BPA4OMKT.js} +23 -23
  102. package/chunks/{daemon-trust-policy-YGUS4YMJ.js → daemon-trust-policy-LR3O2LHO.js} +23 -23
  103. package/chunks/{daemon-trust-policy-monitor-ENPQVTNO.js → daemon-trust-policy-monitor-XYJBQS5K.js} +23 -23
  104. package/chunks/{deferred-core-runtime-ULSOQU3T.js → deferred-core-runtime-2JRX7S37.js} +17 -17
  105. package/chunks/{edit-TSSCUSYW.js → edit-C5EXC227.js} +11 -11
  106. package/chunks/{en-XSSA4TGG.js → en-QBY42TC3.js} +1 -0
  107. package/chunks/{enterPlanMode-ZSQKJKZQ.js → enterPlanMode-LRUOZ2DX.js} +9 -9
  108. package/chunks/{environment-EAKV3SOY.js → environment-AK5W47CA.js} +19 -19
  109. package/chunks/{errors-GGFY5RFH.js → errors-V77HGFV3.js} +19 -19
  110. package/chunks/{execution-tool-VACK7N45.js → execution-tool-NK2ST2RX.js} +11 -11
  111. package/chunks/{execution-worker-627YBBCO.js → execution-worker-QO36YMNT.js} +14 -14
  112. package/chunks/{exitPlanMode-MUPEFJZW.js → exitPlanMode-OPS5BP27.js} +9 -9
  113. package/chunks/{fast-path-RTN33F3G.js → fast-path-SAXQN2PO.js} +2 -2
  114. package/chunks/{foreground-runner-AB6I7DAO.js → foreground-runner-WUF5YIVW.js} +19 -19
  115. package/chunks/{glob-2CHWQ3H5.js → glob-EAIWIACU.js} +9 -9
  116. package/chunks/{goal-tools-XLPICZ5T.js → goal-tools-IM4K7YYV.js} +9 -9
  117. package/chunks/{handleAutoUpdate-NZPFDQK6.js → handleAutoUpdate-XGWLFCZ3.js} +20 -20
  118. package/chunks/{i18n-FV2KRBLI.js → i18n-A3JWISCI.js} +18 -18
  119. package/chunks/{initializer-CTPFYJCS.js → initializer-WF7GJJSN.js} +23 -23
  120. package/chunks/{installationInfo-IJIMCPDB.js → installationInfo-UGZLB5DE.js} +17 -17
  121. package/chunks/{list-TIROYVTJ.js → list-XL33NYFQ.js} +25 -25
  122. package/chunks/{llm-YA3VVASU.js → llm-5ZIFZWYM.js} +48 -48
  123. package/chunks/{llm-content-generator-5BMSF46V.js → llm-content-generator-IP6THV2F.js} +4 -4
  124. package/chunks/{loadedSettingsAdapter-V3A6MMRM.js → loadedSettingsAdapter-BBOBGOFY.js} +23 -23
  125. package/chunks/{local-execution-environment-PFBURDOE.js → local-execution-environment-OHZ6JHBJ.js} +14 -14
  126. package/chunks/{loggingContentGenerator-RCDGCQQS.js → loggingContentGenerator-ZB6YBQ4A.js} +9 -9
  127. package/chunks/{managed-npm-update-4EBV5AOX.js → managed-npm-update-U2LTQRW5.js} +30 -19
  128. package/chunks/{mcp-VDFHAJKP.js → mcp-7TSDK7XG.js} +23 -23
  129. package/chunks/{model-call-collection-CER6UKZQ.js → model-call-collection-Q6XLRBD4.js} +1 -1
  130. package/chunks/{model-configuration-RJ6KIRTB.js → model-configuration-YHPN6XLJ.js} +24 -24
  131. package/chunks/{modelConfigUtils-YCRDHNRZ.js → modelConfigUtils-KXEA5X5L.js} +19 -19
  132. package/chunks/{monitor-3DZ6543L.js → monitor-YUS5UHUB.js} +9 -9
  133. package/chunks/{nonInteractiveCli-PGIOCHOP.js → nonInteractiveCli-H5OSIGXO.js} +50 -50
  134. package/chunks/{nonInteractiveToolExecutor-7YVAC45H.js → nonInteractiveToolExecutor-KOOCZSZM.js} +10 -10
  135. package/chunks/{notebook-edit-EC3X76GJ.js → notebook-edit-XYZLSPWF.js} +10 -10
  136. package/chunks/{omni-NTS5DKKW.js → omni-QS5RRGPB.js} +9 -9
  137. package/chunks/{openaiContentGenerator-HE3UYNTG.js → openaiContentGenerator-37E2A7VN.js} +6 -6
  138. package/chunks/{openaiResponsesContentGenerator-V3QXQKGY.js → openaiResponsesContentGenerator-PMCEAG55.js} +4 -4
  139. package/chunks/{processUtils-Q77SJQTK.js → processUtils-CQXO2K7O.js} +2 -2
  140. package/chunks/{prompt-terminal-ledger-FIRVFZQ6.js → prompt-terminal-ledger-ZRCMVONU.js} +18 -18
  141. package/chunks/{pt-KI6OT4C4.js → pt-DHKQQO6C.js} +1 -0
  142. package/chunks/{reactive-degrade-R7SJ2NH6.js → reactive-degrade-ZJ3JVKAL.js} +8 -8
  143. package/chunks/{read-file-NRMGUMQM.js → read-file-MOY3AEWH.js} +1 -1
  144. package/chunks/{resumeHistoryUtils-O2COILCI.js → resumeHistoryUtils-HATXAZWB.js} +21 -21
  145. package/chunks/{ripGrep-WQJTNYRZ.js → ripGrep-DRZ55VHF.js} +1 -1
  146. package/chunks/{run-o1-code-serve-TBV42OCR.js → run-o1-code-serve-QG3EUGCC.js} +32 -32
  147. package/chunks/{sandboxConfig-4GA3BYJS.js → sandboxConfig-67KD25RA.js} +17 -17
  148. package/chunks/{scheduled-tasks-6VDCN5PB.js → scheduled-tasks-SUK36YBV.js} +22 -22
  149. package/chunks/{scheduler-P5IJ7A74.js → scheduler-VGATQHDI.js} +19 -19
  150. package/chunks/{serve-2ZQ532LO.js → serve-4JYKC5U3.js} +23 -23
  151. package/chunks/{server-BUDZHTIT.js → server-ID2MQUOZ.js} +48 -48
  152. package/chunks/{session-26SOOJEN.js → session-FEM6CGKX.js} +1 -1
  153. package/chunks/{session-CKAFUD43.js → session-SBJFEMA7.js} +51 -51
  154. package/chunks/{session-attachments-root-MJ3BQ3LD.js → session-attachments-root-ILVWUB6H.js} +17 -17
  155. package/chunks/{session-pr-refresh-OB6N6BHR.js → session-pr-refresh-PMD3YR6L.js} +21 -21
  156. package/chunks/{settings-6AXVX7VZ.js → settings-7BOOCLET.js} +22 -22
  157. package/chunks/{shell-ENJCXAKQ.js → shell-PWH465OV.js} +9 -9
  158. package/chunks/{skill-JI7DIIC5.js → skill-6CYVI2NR.js} +1 -1
  159. package/chunks/{skill-settings-QM6FE65C.js → skill-settings-5HIZWK7Y.js} +22 -22
  160. package/chunks/{spawnChannel-YT5XGUD4.js → spawnChannel-OOMVR63F.js} +18 -18
  161. package/chunks/{standalone-update-PQTPOQ7H.js → standalone-update-MXJDDVFO.js} +19 -19
  162. package/chunks/{startInteractiveUI-YTXYK5FE.js → startInteractiveUI-IHLZORH3.js} +59 -59
  163. package/chunks/{supervisor-runner-GTHTY2VP.js → supervisor-runner-I3KOH7AT.js} +2 -2
  164. package/chunks/{team-create-JFKXHYVG.js → team-create-NNXUJHYM.js} +9 -9
  165. package/chunks/{team-plan-approval-XTW6G7MY.js → team-plan-approval-NGGXGRN5.js} +9 -9
  166. package/chunks/{terminal-image-renderer-GDTTKHI4.js → terminal-image-renderer-QPJZUQOY.js} +17 -17
  167. package/chunks/{theme-manager-MRHNSAFC.js → theme-manager-YN3VTWUS.js} +17 -17
  168. package/chunks/{tool-result-media-MXVFMVH2.js → tool-result-media-ELNVF7HV.js} +9 -9
  169. package/chunks/{tool-search-RK5PYIEA.js → tool-search-3MQVPZN2.js} +1 -1
  170. package/chunks/{total-session-admission-KPWNF4I7.js → total-session-admission-RQ2GWA4J.js} +19 -19
  171. package/chunks/{trustedFolders-SWKT5ICG.js → trustedFolders-ANMISMAZ.js} +18 -18
  172. package/chunks/{update-relaunch-EXMQLKEJ.js → update-relaunch-ANCIYSER.js} +5 -5
  173. package/chunks/{updateCheck-MP42WBSG.js → updateCheck-QGDY5DY2.js} +19 -19
  174. package/chunks/{upload-config-AIRMZDHT.js → upload-config-V6CJBH2Z.js} +6 -6
  175. package/chunks/{useAutoAcceptIndicator-K3T576EB.js → useAutoAcceptIndicator-H4PUESJW.js} +25 -25
  176. package/chunks/{validateNonInterActiveAuth-4KATGUJO.js → validateNonInterActiveAuth-3D6LYNKP.js} +47 -47
  177. package/chunks/{version-JEM4ONGO.js → version-M7PIODKT.js} +1 -1
  178. package/chunks/{web-fetch-TZXOJ74M.js → web-fetch-VJSQST7P.js} +1 -1
  179. package/chunks/{web-search-RDZCW5MX.js → web-search-CVFACVJV.js} +7 -7
  180. package/chunks/{workflow-NTR7LISE.js → workflow-O3XZL3Z4.js} +10 -10
  181. package/chunks/{workspace-providers-status-BOEHLEC6.js → workspace-providers-status-M47T3M22.js} +27 -27
  182. package/chunks/{workspace-registration-store-A4RBAXBF.js → workspace-registration-store-HGSY3RON.js} +1 -1
  183. package/chunks/{workspace-registry-QADKTWBR.js → workspace-registry-LYEI3DR3.js} +19 -19
  184. package/chunks/{workspace-runtime-coordinator-M2LCS2XW.js → workspace-runtime-coordinator-OHXZ4IPK.js} +19 -19
  185. package/chunks/{workspace-service-7P5UZHEE.js → workspace-service-VII7ZCF7.js} +26 -26
  186. package/chunks/{workspace-skills-status-MRA7H2M5.js → workspace-skills-status-7GG3A3TL.js} +23 -23
  187. package/chunks/{workspace-trust-reconciler-JTU5ZT3E.js → workspace-trust-reconciler-GGKNXRVC.js} +25 -25
  188. package/chunks/{write-file-TYMBS3Z4.js → write-file-K5V3EMTE.js} +11 -11
  189. package/chunks/{zoom-image-OYDAJGIC.js → zoom-image-TROZVSMN.js} +1 -1
  190. package/cli.js +15 -15
  191. package/execution-worker.js +1 -1
  192. package/export-transcript-document.js +1 -1
  193. package/locales/en.js +2 -0
  194. package/locales/pt.js +2 -0
  195. package/node_modules/koffi/LICENSE.txt +22 -0
  196. package/node_modules/koffi/README.md +46 -0
  197. package/node_modules/koffi/index.cjs +1 -0
  198. package/node_modules/koffi/index.d.ts +390 -0
  199. package/node_modules/koffi/index.js +2 -0
  200. package/node_modules/koffi/indirect.cjs +1 -0
  201. package/node_modules/koffi/indirect.js +2 -0
  202. package/node_modules/koffi/package.json +63 -0
  203. package/node_modules/koffi/src/koffi/index.cjs +327 -0
  204. package/node_modules/koffi/src/koffi/index.js +312 -0
  205. package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
  206. package/node_modules/koffi/src/koffi/indirect.js +311 -0
  207. package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
  208. package/node_modules/koffi/src/koffi/src/static.js +173 -0
  209. package/package.json +25 -2
  210. package/release-notes.json +7 -0
  211. package/web-shell/assets/{abnfDiagram-VCTEODGH-2Dj_wAO-.js → abnfDiagram-VCTEODGH-1p6NHpAP.js} +1 -1
  212. package/web-shell/assets/{arc-CM8UdMfv.js → arc-zZSvt9kN.js} +1 -1
  213. package/web-shell/assets/{architectureDiagram-5GKGNRK7-DVRUp2sY.js → architectureDiagram-5GKGNRK7-C1H1DVM2.js} +1 -1
  214. package/web-shell/assets/{blockDiagram-NRAW4CY4-LlLViOqt.js → blockDiagram-NRAW4CY4-CLvQiMuT.js} +1 -1
  215. package/web-shell/assets/{c4Diagram-UCG6FXSJ-s9MPoxak.js → c4Diagram-UCG6FXSJ-verRTIfv.js} +1 -1
  216. package/web-shell/assets/channel-BL_seGtn.js +1 -0
  217. package/web-shell/assets/{chunk-2Q5K7J3B-HlTfhwBU.js → chunk-2Q5K7J3B-BIX6o24B.js} +1 -1
  218. package/web-shell/assets/{chunk-5VM5RSS4-CxS42ksC.js → chunk-5VM5RSS4-hp0xJxSu.js} +1 -1
  219. package/web-shell/assets/{chunk-F27PBJKO-DPeeODpW.js → chunk-F27PBJKO-BHY8_5WY.js} +1 -1
  220. package/web-shell/assets/{chunk-G27WJ6UU-CQYZmE5k.js → chunk-G27WJ6UU-Bq3iuQSE.js} +1 -1
  221. package/web-shell/assets/{chunk-JWPE2WC7-Bq0TMyxv.js → chunk-JWPE2WC7-nl0EYjjD.js} +1 -1
  222. package/web-shell/assets/{chunk-LCL6LL3I-BtnHzA-D.js → chunk-LCL6LL3I-CstAiHwj.js} +1 -1
  223. package/web-shell/assets/{chunk-POPQ4Y6H-BRNWOxIT.js → chunk-POPQ4Y6H-BWSrwMPq.js} +1 -1
  224. package/web-shell/assets/{chunk-SVP7TREG-By9FnFN2.js → chunk-SVP7TREG-BHoHrDvN.js} +1 -1
  225. package/web-shell/assets/{chunk-XXDRQBXY-w0nYUkdp.js → chunk-XXDRQBXY-_raB2Fx7.js} +1 -1
  226. package/web-shell/assets/classDiagram-DTDB5LWJ-CSUKMc0D.js +1 -0
  227. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CSUKMc0D.js +1 -0
  228. package/web-shell/assets/{cose-bilkent-JH36ORCC-YpgXH3_-.js → cose-bilkent-JH36ORCC-DzohBTSN.js} +1 -1
  229. package/web-shell/assets/{cynefin-OW5HDTMX-BamkWNPO.js → cynefin-OW5HDTMX-DUuz4IOx.js} +1 -1
  230. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Dpxn8LCb.js → cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js} +1 -1
  231. package/web-shell/assets/{dagre-3AP2YEHR-CxuJQGMd.js → dagre-3AP2YEHR-DccvRFOk.js} +1 -1
  232. package/web-shell/assets/{diagram-S7CK7UJ4-DjccNeUH.js → diagram-S7CK7UJ4-iGT749Oj.js} +1 -1
  233. package/web-shell/assets/{diagram-UQ7AKVKN-8EkBLWb_.js → diagram-UQ7AKVKN-DO-brOdV.js} +1 -1
  234. package/web-shell/assets/{diagram-VSXAHHWV-CdR64P66.js → diagram-VSXAHHWV-BTxQOmxL.js} +1 -1
  235. package/web-shell/assets/{diagram-VX7I27RA-CjQqXx8a.js → diagram-VX7I27RA-B4qvwv51.js} +1 -1
  236. package/web-shell/assets/{diagram-Z3DM3KII-CPVQ6neh.js → diagram-Z3DM3KII-rBgjOTjS.js} +1 -1
  237. package/web-shell/assets/{ebnfDiagram-PWID7BFC-Cd2nbw6-.js → ebnfDiagram-PWID7BFC-pm_yhGF5.js} +1 -1
  238. package/web-shell/assets/{erDiagram-SSCWMZ5O-BGnAX0IM.js → erDiagram-SSCWMZ5O-CYu1ceNm.js} +1 -1
  239. package/web-shell/assets/{flowDiagram-A5DVABFB-DcX08Nbr.js → flowDiagram-A5DVABFB-VaNRVW2d.js} +1 -1
  240. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-CVXiMVzW.js → ganttDiagram-EL5Y4UJY-DyvaaUFV.js} +1 -1
  241. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-BBxhu9G7.js → gitGraphDiagram-WWUBYQGX-ATr3REtt.js} +1 -1
  242. package/web-shell/assets/{index-B5aKf1AA.js → index-B3YLpUKu.js} +1 -1
  243. package/web-shell/assets/{index-zwHrQxqv.js → index-C4N7bP4K.js} +3 -3
  244. package/web-shell/assets/{infoDiagram-RXCK75RN-C-1qC66j.js → infoDiagram-RXCK75RN-C94by8Av.js} +1 -1
  245. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-C8_mTu_r.js → ishikawaDiagram-5VMMS53U-DzjDX0-x.js} +1 -1
  246. package/web-shell/assets/{journeyDiagram-EYS64GPL-CROANElQ.js → journeyDiagram-EYS64GPL-BW955BgY.js} +1 -1
  247. package/web-shell/assets/{kanban-definition-3QL26DDD-DfeA7UBv.js → kanban-definition-3QL26DDD-BtbAjdCr.js} +1 -1
  248. package/web-shell/assets/{layout-Dkjy38dJ.js → layout-U3vDc3pe.js} +1 -1
  249. package/web-shell/assets/{linear-Bk2c8hgK.js → linear-B5nTSs6h.js} +1 -1
  250. package/web-shell/assets/{mermaid.core-BQpb5--e.js → mermaid.core-ezhLxuW5.js} +6 -6
  251. package/web-shell/assets/{mindmap-definition-FBJOCRG2-niwVx50h.js → mindmap-definition-FBJOCRG2-BVcRjZNc.js} +1 -1
  252. package/web-shell/assets/{pegDiagram-XKGWAZYB-CzwTglvx.js → pegDiagram-XKGWAZYB-BnYXkIZM.js} +1 -1
  253. package/web-shell/assets/{pieDiagram-E7YTZNPT-BOTnaopZ.js → pieDiagram-E7YTZNPT-DooJLvL9.js} +1 -1
  254. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-ANc-jmLm.js → quadrantDiagram-AXDQQJYC-MywT58KI.js} +1 -1
  255. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DactPRXN.js → railroadDiagram-O6MQD6OU-kZGgDmOU.js} +1 -1
  256. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BhJYhbQx.js → requirementDiagram-EFPCY7ZU-BTR494PR.js} +1 -1
  257. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CKmj4FSV.js → sankeyDiagram-P5KCCOFB-DCC0qZFO.js} +1 -1
  258. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-qqYmFKVm.js → sequenceDiagram-WJ2MYXX4-DDvDBq18.js} +1 -1
  259. package/web-shell/assets/{sizeCapture-X5ZJPWSS-IZThfnGj.js → sizeCapture-X5ZJPWSS-C3GSzMrx.js} +1 -1
  260. package/web-shell/assets/{stateDiagram-HBIQ2CUA-DRVEahaQ.js → stateDiagram-HBIQ2CUA-Dr4BXIdu.js} +1 -1
  261. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DPa_JZnG.js +1 -0
  262. package/web-shell/assets/{swimlanes-XN3QIQJK-C-gt3GcA.js → swimlanes-XN3QIQJK-CTc5retR.js} +1 -1
  263. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-WV4-2ySQ.js +8 -0
  264. package/web-shell/assets/{timeline-definition-24CTP7MA-CyyrqcKX.js → timeline-definition-24CTP7MA-DlCHZahl.js} +1 -1
  265. package/web-shell/assets/{vennDiagram-4TSXK5OY-cuY4y_eV.js → vennDiagram-4TSXK5OY-DSEiDJ6-.js} +1 -1
  266. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Dh2Zg335.js → wardleyDiagram-VM6X3IG4-BSky5BAj.js} +1 -1
  267. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CmGN9rRU.js → xychartDiagram-S5SC5T6Z-C-_l5Eqg.js} +1 -1
  268. package/web-shell/index.html +1 -1
  269. package/web-shell/sw.js +1 -1
  270. package/web-shell/assets/channel-NvsLvieh.js +0 -1
  271. package/web-shell/assets/classDiagram-DTDB5LWJ-BhmijuT4.js +0 -1
  272. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BhmijuT4.js +0 -1
  273. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Ck-zs-A0.js +0 -1
  274. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C9LTcitD.js +0 -8
package/locales/en.js CHANGED
@@ -21,6 +21,8 @@ export default {
21
21
  'Enable automatic update checks and prepare npm updates while idle.',
22
22
  '{{product}} update': '{{product}} update',
23
23
  'A new version is available': 'A new version is available',
24
+ 'Update {{current}} → {{latest}}. The update dialog opens when this session is idle and the prompt is empty.':
25
+ 'Update {{current}} → {{latest}}. The update dialog opens when this session is idle and the prompt is empty.',
24
26
  'Preparing the update': 'Preparing the update',
25
27
  'Ready to restart': 'Ready to restart',
26
28
  'The update could not be prepared': 'The update could not be prepared',
package/locales/pt.js CHANGED
@@ -20,6 +20,8 @@ export default {
20
20
  'Verificar atualizações automaticamente e preparar atualizações npm enquanto estiver ocioso.',
21
21
  '{{product}} update': 'Atualização do {{product}}',
22
22
  'A new version is available': 'Uma nova versão está disponível',
23
+ 'Update {{current}} → {{latest}}. The update dialog opens when this session is idle and the prompt is empty.':
24
+ 'Atualização {{current}} → {{latest}}. O diálogo abrirá quando esta sessão estiver ociosa e o campo de mensagem estiver vazio.',
23
25
  'Preparing the update': 'Preparando a atualização',
24
26
  'Ready to restart': 'Tudo pronto para reiniciar',
25
27
  'The update could not be prepared': 'Não foi possível preparar a atualização',
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2026 Niels Martignène <niels.martignene@protonmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to use,
8
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
9
+ Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,46 @@
1
+ # Overview
2
+
3
+ Koffi is a fast and easy-to-use dynamic C FFI module for Node.js, featuring:
4
+
5
+ * Low-overhead compared to a static Node-API implementation (see [benchmarks](https://koffi.dev/benchmarks))
6
+ * Support for primitive and aggregate data types (structs and fixed-size arrays), both by reference (pointer) and by value
7
+ * Support for synchronous and asynchronous calls
8
+ * Javascript functions can be used as C callbacks
9
+ * Well-tested code base for popular OS/architecture combinations
10
+
11
+ The following combinations of OS and architectures __are officially supported and tested__ at the moment:
12
+
13
+ ISA / OS | Windows | Linux/glibc | Linux/musl | macOS | FreeBSD | OpenBSD | Android
14
+ ------------------ | -------- | ----------- | ----------- | -------- | ----------- | ----------- | -----------
15
+ x86_64 (AMD64) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes
16
+ ARM64 (AArch64) LE | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes
17
+ x86 (IA32) [^1] | ✅ Yes | ✅ Yes | 🟨 Probably | ⬜️ *N/A* | ✅ Yes | ✅ Yes | ⬜️ *N/A*
18
+ ARM32 LE [^2] | ⬜️ *N/A* | ✅ Yes | 🟨 Probably | ⬜️ *N/A* | 🟨 Probably | 🟨 Probably | 🟨 Probably
19
+ RISC-V 64 [^3] | ⬜️ *N/A* | ✅ Yes | 🟨 Probably | ⬜️ *N/A* | 🟨 Probably | 🟨 Probably | ⬜️ *N/A*
20
+ LoongArch64 | ⬜️ *N/A* | ✅ Yes | 🟨 Probably | ⬜️ *N/A* | 🟨 Probably | 🟨 Probably | ⬜️ *N/A*
21
+ PowerPC 64 LE [^4] | ⬜️ *N/A* | ✅ Yes | 🟨 Probably | ⬜️ *N/A* | 🟨 Probably | 🟨 Probably | ⬜️ *N/A*
22
+
23
+ [^1]: The following call conventions are supported: cdecl, stdcall, MS fastcall, thiscall.
24
+ [^2]: The prebuilt binary uses the hard float ABI and expects a VFP coprocessor. Build from source to use Koffi with a different ABI (softfp, soft).
25
+ [^3]: The prebuilt binary uses the LP64D (double-precision float) ABI. The LP64 ABI is supported in theory if you build Koffi from source but this is untested. The LP64F ABI is not supported.
26
+ [^4]: Only the ELFv2 Power64 Little Endian ABI is supported for now.
27
+
28
+ Go to the web site for more information: https://koffi.dev/
29
+
30
+ # Project history
31
+
32
+ You can consult the [changelog](https://koffi.dev/changelog) on the official website.
33
+
34
+ Major version increments can include breaking API changes, use the [migration guide](https://koffi.dev/changelog#migration-guide) for more information.
35
+
36
+ # Build manually
37
+
38
+ Koffi is built with a custom CMake-wrapper called CNoke, which also lives in this repository. Don't try to run CMake manually because it will fail.
39
+
40
+ Follow the [documented build instructions](https://koffi.dev/contribute#build-from-source) to build Koffi from source.
41
+
42
+ # License
43
+
44
+ This program is free software: you can redistribute it and/or modify it under the terms of the **MIT License**.
45
+
46
+ Find more information here: https://choosealicense.com/licenses/mit/
@@ -0,0 +1 @@
1
+ module.exports = require("./src/koffi/index.cjs");
@@ -0,0 +1,390 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // SPDX-FileCopyrightText: 2026 Niels Martignène <niels.martignene@protonmail.com>
3
+
4
+ type PrimitiveKind = 'Void' | 'Bool' | 'Int8' | 'UInt8' | 'Int16' | 'Int16S' | 'UInt16' | 'UInt16S' |
5
+ 'Int32' | 'Int32S' | 'UInt32' | 'UInt32S' | 'Int64' | 'Int64S' | 'UInt64' | 'UInt64S' |
6
+ 'String' | 'String16' | 'Pointer' | 'Record' | 'Union' | 'Array' | 'Float32' | 'Float64' |
7
+ 'Prototype' | 'Callback';
8
+ type ArrayHint = 'Array' | 'Typed' | 'Buffer' | 'String';
9
+
10
+ type PrototypeInfo = {
11
+ name: string;
12
+ arguments: TypeObject[];
13
+ result: TypeObject
14
+ };
15
+
16
+ interface IKoffiDirectionMarker { __brand: 'IKoffiDirectionMarker' }
17
+ interface IKoffiPointerCast { __brand: 'IKoffiPointerCast' }
18
+
19
+ export type TypeObject = {
20
+ name: string;
21
+ primitive: PrimitiveKind;
22
+ size: number;
23
+ alignment: number;
24
+ disposable: boolean;
25
+ length?: number;
26
+ hint?: ArrayHint;
27
+ ref?: TypeObject;
28
+ members?: Record<string, { name: string, type: TypeObject, offset: number }>;
29
+ proto?: PrototypeInfo;
30
+ values?: Record<string, number | bigint>;
31
+ };
32
+
33
+ type TypeSpec = string | TypeObject | IKoffiDirectionMarker;
34
+ type TypeSpecWithAlignment = TypeSpec | [number, TypeSpec];
35
+
36
+ type KoffiFunction = {
37
+ (...args: any[]) : any;
38
+ async: (...args: any[]) => any;
39
+ info: PrototypeInfo;
40
+ };
41
+ export type KoffiFunc<T extends (...args: any) => any> = T & {
42
+ async: (...args: [...Parameters<T>, (err: any, result: ReturnType<T>) => void]) => void;
43
+ info: PrototypeInfo;
44
+ };
45
+
46
+ type LoadOptions = {
47
+ lazy?: boolean,
48
+ global?: boolean,
49
+ deep?: boolean
50
+ };
51
+
52
+ export type LibraryHandle = {
53
+ func(definition: string): KoffiFunction;
54
+ func(name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
55
+ func(convention: string, name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
56
+
57
+ /** @deprecated */ cdecl(definition: string): KoffiFunction;
58
+ /** @deprecated */ cdecl(name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
59
+ /** @deprecated */ stdcall(definition: string): KoffiFunction;
60
+ /** @deprecated */ stdcall(name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
61
+ /** @deprecated */ fastcall(definition: string): KoffiFunction;
62
+ /** @deprecated */ fastcall(name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
63
+ /** @deprecated */ thiscall(definition: string): KoffiFunction;
64
+ /** @deprecated */ thiscall(name: string | number, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
65
+
66
+ symbol(name: string): any;
67
+ /** @deprecated */ symbol(name: string, type: TypeSpec): any;
68
+
69
+ unload(): void;
70
+ };
71
+
72
+ export function load(path: string | null, options?: LoadOptions): LibraryHandle;
73
+
74
+ export function struct(name: string | null | undefined, def: Record<string, TypeSpecWithAlignment>): TypeObject;
75
+ export function struct(ref: TypeObject, def: Record<string, TypeSpecWithAlignment>): TypeObject;
76
+ export function struct(def: Record<string, TypeSpecWithAlignment>): TypeObject;
77
+ export function pack(name: string | null | undefined, def: Record<string, TypeSpecWithAlignment>): TypeObject;
78
+ export function pack(ref: TypeObject, def: Record<string, TypeSpecWithAlignment>): TypeObject;
79
+ export function pack(def: Record<string, TypeSpecWithAlignment>): TypeObject;
80
+
81
+ export function union(name: string | null | undefined, def: Record<string, TypeSpecWithAlignment>): TypeObject;
82
+ export function union(ref: TypeObject, def: Record<string, TypeSpecWithAlignment>): TypeObject;
83
+ export function union(def: Record<string, TypeSpecWithAlignment>): TypeObject;
84
+
85
+ export class Union {
86
+ constructor(type: TypeSpec);
87
+ [s: string]: any;
88
+ }
89
+
90
+ export function enumeration(name: string | null | undefined, def: Record<string, number | bigint>, storage?: TypeSpec | null) : TypeObject;
91
+ export function enumeration(def: Record<string, number | bigint>, storage?: TypeSpec | null) : TypeObject;
92
+
93
+ export function array(ref: TypeSpec, len: number, hint?: ArrayHint | null): TypeObject;
94
+ export function array(ref: TypeSpec, countedBy: string, maxLen: number, hint?: ArrayHint | null): TypeObject;
95
+
96
+ export function opaque(name: string | null | undefined): TypeObject;
97
+ export function opaque(): TypeObject;
98
+
99
+ export function pointer(ref: TypeSpec): TypeObject;
100
+ export function pointer(ref: TypeSpec, count: number): TypeObject;
101
+ export function pointer(name: string | null | undefined, ref: TypeSpec, countedBy?: string | null): TypeObject;
102
+ export function pointer(name: string | null | undefined, ref: TypeSpec, count: number): TypeObject;
103
+
104
+ export function out(type: TypeSpec): IKoffiDirectionMarker;
105
+ export function inout(type: TypeSpec): IKoffiDirectionMarker;
106
+
107
+ export function disposable(type: TypeSpec): TypeObject;
108
+ export function disposable(type: TypeSpec, freeFunction: Function): TypeObject;
109
+ export function disposable(name: string | null | undefined, type: TypeSpec): TypeObject;
110
+ export function disposable(name: string | null | undefined, type: TypeSpec, freeFunction: Function): TypeObject;
111
+
112
+ export function proto(definition: string): TypeObject;
113
+ export function proto(result: TypeSpec, arguments: TypeSpec[]): TypeObject;
114
+ export function proto(convention: string, result: TypeSpec, arguments: TypeSpec[]): TypeObject;
115
+ export function proto(name: string | null | undefined, result: TypeSpec, arguments: TypeSpec[]): TypeObject;
116
+ export function proto(convention: string, name: string | null | undefined, result: TypeSpec, arguments: TypeSpec[]): TypeObject;
117
+
118
+ export function register(callback: Function, type: TypeSpec): bigint;
119
+ /** @deprecated */ export function register(thisValue: any, callback: Function, type: TypeSpec): bigint;
120
+ export function unregister(callback: bigint): void;
121
+
122
+ export function as(value: any, type: TypeSpec): IKoffiPointerCast;
123
+ export function address(value: any): bigint;
124
+ export function call(value: any, type: TypeSpec, ...args: any[]): any;
125
+ export function view(ref: any, len: number): ArrayBuffer;
126
+
127
+ export const decode: {
128
+ (value: any, type: TypeSpec): any;
129
+ (value: any, type: TypeSpec, len: number): any;
130
+ (value: any, offset: number, type: TypeSpec): any;
131
+ (value: any, offset: number, type: TypeSpec, len: number): any;
132
+
133
+ char(ptr: any): number;
134
+ short(ptr: any): number;
135
+ int(ptr: any): number;
136
+ long(ptr: any): number | bigint;
137
+ longlong(ptr: any): number | bigint;
138
+ uchar(ptr: any): number;
139
+ ushort(ptr: any): number;
140
+ uint(ptr: any): number;
141
+ ulong(ptr: any): number | bigint;
142
+ ulonglong(ptr: any): number | bigint;
143
+
144
+ int8(ptr: any): number;
145
+ int16(ptr: any): number;
146
+ int32(ptr: any): number;
147
+ int64(ptr: any): number | bigint;
148
+ uint8(ptr: any): number;
149
+ uint16(ptr: any): number;
150
+ uint32(ptr: any): number;
151
+ uint64(ptr: any): number | bigint;
152
+
153
+ int8le(ptr: any): number;
154
+ int8be(ptr: any): number;
155
+ int16le(ptr: any): number;
156
+ int16be(ptr: any): number;
157
+ int32le(ptr: any): number;
158
+ int32be(ptr: any): number;
159
+ int64le(ptr: any): number | bigint;
160
+ int64be(ptr: any): number | bigint;
161
+ uint8le(ptr: any): number;
162
+ uint8be(ptr: any): number;
163
+ uint16le(ptr: any): number;
164
+ uint16be(ptr: any): number;
165
+ uint32le(ptr: any): number;
166
+ uint32be(ptr: any): number;
167
+ uint64le(ptr: any): number | bigint;
168
+ uint64be(ptr: any): number | bigint;
169
+
170
+ float(ptr: any): number;
171
+ double(ptr: any): number;
172
+
173
+ string(ptr: any, length?: number | bigint): string;
174
+ string16(ptr: any, length?: number | bigint): string;
175
+ string32(ptr: any, length?: number | bigint): string;
176
+ wstring(ptr: any, length?: number | bigint): string;
177
+ };
178
+
179
+ export function encode(ref: any, type: TypeSpec, value: any): void;
180
+ export function encode(ref: any, type: TypeSpec, value: any, len: number): void;
181
+ export function encode(ref: any, offset: number, type: TypeSpec): void;
182
+ export function encode(ref: any, offset: number, type: TypeSpec, value: any): void;
183
+ export function encode(ref: any, offset: number, type: TypeSpec, value: any, len: number): void;
184
+
185
+ export function type(type: TypeSpec): TypeObject;
186
+ export function sizeof(type: TypeSpec): number;
187
+ export function alignof(type: TypeSpec): number;
188
+ export function offsetof(type: TypeSpec, member_name: string): number;
189
+ /** @deprecated */ export function resolve(type: TypeSpec): TypeObject;
190
+ /** @deprecated */ export function introspect(type: TypeSpec): TypeObject;
191
+
192
+ export function alias(name: string, type: TypeSpec): TypeObject;
193
+
194
+ type KoffiConfig = {
195
+ sync_stack_size?: number;
196
+ sync_heap_size?: number;
197
+ async_stack_size?: number;
198
+ async_heap_size?: number;
199
+ resident_async_pools?: number;
200
+ max_async_calls?: number;
201
+ max_type_size?: number;
202
+ };
203
+ type KoffiStats = {
204
+ disposed: number,
205
+ callbacks: number
206
+ };
207
+
208
+ export function config(): KoffiConfig;
209
+ export function config(cfg: KoffiConfig): KoffiConfig;
210
+ export function stats(): KoffiStats;
211
+
212
+ export function alloc(type: TypeSpec, length: number): any;
213
+ export function free(value: any): void;
214
+
215
+ export function errno(): number;
216
+ export function errno(value: number): number;
217
+
218
+ export function reset(): void;
219
+
220
+ export const internal: boolean;
221
+ export const extension: string;
222
+
223
+ export const os: {
224
+ errno: Record<string, number>
225
+ };
226
+
227
+ // https://koffi.dev/input#standard-types
228
+ type PrimitiveTypes =
229
+ | 'bool'
230
+ | 'char'
231
+ | 'char16_t'
232
+ | 'char16'
233
+ | 'char32_t'
234
+ | 'char32'
235
+ | 'double'
236
+ | 'float'
237
+ | 'float32'
238
+ | 'float64'
239
+ | 'int'
240
+ | 'int8_t'
241
+ | 'int8'
242
+ | 'int16_be_t'
243
+ | 'int16_be'
244
+ | 'int16_le_t'
245
+ | 'int16_le'
246
+ | 'int16_t'
247
+ | 'int16'
248
+ | 'int32_be_t'
249
+ | 'int32_be'
250
+ | 'int32_le_t'
251
+ | 'int32_le'
252
+ | 'int32_t'
253
+ | 'int32'
254
+ | 'int64_be_t'
255
+ | 'int64_be'
256
+ | 'int64_le_t'
257
+ | 'int64_le'
258
+ | 'int64_t'
259
+ | 'int64'
260
+ | 'intptr_t'
261
+ | 'intptr'
262
+ | 'long long'
263
+ | 'long'
264
+ | 'longlong'
265
+ | 'short'
266
+ | 'size_t'
267
+ | 'str'
268
+ | 'str16'
269
+ | 'str32'
270
+ | 'string'
271
+ | 'string16'
272
+ | 'string32'
273
+ | 'uchar'
274
+ | 'uint'
275
+ | 'uint8_t'
276
+ | 'uint8'
277
+ | 'uint16_be_t'
278
+ | 'uint16_be'
279
+ | 'uint16_le_t'
280
+ | 'uint16_le'
281
+ | 'uint16_t'
282
+ | 'uint16'
283
+ | 'uint32_be_t'
284
+ | 'uint32_be'
285
+ | 'uint32_le_t'
286
+ | 'uint32_le'
287
+ | 'uint32_t'
288
+ | 'uint32'
289
+ | 'uint64_be_t'
290
+ | 'uint64_be'
291
+ | 'uint64_le_t'
292
+ | 'uint64_le'
293
+ | 'uint64_t'
294
+ | 'uint64'
295
+ | 'uintptr_t'
296
+ | 'uintptr'
297
+ | 'ulong'
298
+ | 'ulonglong'
299
+ | 'unsigned char'
300
+ | 'unsigned int'
301
+ | 'unsigned long long'
302
+ | 'unsigned long'
303
+ | 'unsigned short'
304
+ | 'ushort'
305
+ | 'void'
306
+ | 'wchar'
307
+ | 'wchar_t';
308
+ export const types: Record<PrimitiveTypes, TypeObject>;
309
+
310
+ export namespace node {
311
+ export const env: { __brand: 'IKoffiNodeEnv' };
312
+
313
+ type PollOptions = {
314
+ readable?: boolean;
315
+ writable?: boolean;
316
+ disconnect?: boolean;
317
+ };
318
+
319
+ type PollEvents = {
320
+ readable: boolean;
321
+ writable: boolean;
322
+ disconnect: boolean;
323
+ };
324
+
325
+ export class PollHandle {
326
+ start(opts: PollOptions, callback: (ev: PollEvents) => void): void;
327
+ start(callback: (ev: PollEvents) => void): void;
328
+ stop(): void;
329
+
330
+ close(): void;
331
+
332
+ unref(): void;
333
+ ref(): void;
334
+ }
335
+
336
+ export function poll(fd: number, opts: PollOptions, callback: (ev: PollEvents) => void): PollHandle;
337
+ export function poll(fd: number, callback: (ev: PollEvents) => void): PollHandle;
338
+ }
339
+
340
+ export const version: string;
341
+
342
+ // We want the same module with a default export and named exports.
343
+ // If someone knows a better way, feel free to help ;)
344
+
345
+ declare const DefaultObject: {
346
+ LibraryHandle: LibraryHandle;
347
+ TypeObject: TypeObject;
348
+ Union: Union;
349
+
350
+ address: typeof address;
351
+ alias: typeof alias;
352
+ alignof: typeof alignof;
353
+ alloc: typeof alloc;
354
+ array: typeof array;
355
+ as: typeof as;
356
+ call: typeof call;
357
+ config: typeof config;
358
+ decode: typeof decode;
359
+ disposable: typeof disposable;
360
+ encode: typeof encode;
361
+ enumeration: typeof enumeration;
362
+ errno: typeof errno;
363
+ extension: typeof extension;
364
+ free: typeof free;
365
+ inout: typeof inout;
366
+ introspect: typeof introspect;
367
+ load: typeof load;
368
+ node: typeof node;
369
+ offsetof: typeof offsetof;
370
+ opaque: typeof opaque;
371
+ os: typeof os;
372
+ out: typeof out;
373
+ pack: typeof pack;
374
+ pointer: typeof pointer;
375
+ proto: typeof proto;
376
+ register: typeof register;
377
+ reset: typeof reset;
378
+ resolve: typeof resolve;
379
+ sizeof: typeof sizeof;
380
+ stats: typeof stats;
381
+ struct: typeof struct;
382
+ type: typeof type;
383
+ types: typeof types;
384
+ union: typeof union;
385
+ unregister: typeof unregister;
386
+ version: typeof version;
387
+ view: typeof view;
388
+ }
389
+
390
+ export default DefaultObject;
@@ -0,0 +1,2 @@
1
+ export { default } from "./src/koffi/index.js";
2
+ export * from "./src/koffi/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("./src/koffi/indirect.cjs");
@@ -0,0 +1,2 @@
1
+ export { default } from "./src/koffi/indirect.js";
2
+ export * from "./src/koffi/indirect.js";
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "koffi",
3
+ "version": "3.3.2",
4
+ "description": "Fast and easy-to-use dynamic C FFI (foreign function interface) for Node.js",
5
+ "keywords": [
6
+ "foreign",
7
+ "function",
8
+ "interface",
9
+ "ffi",
10
+ "binding",
11
+ "c",
12
+ "napi"
13
+ ],
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Koromix/koffi"
17
+ },
18
+ "homepage": "https://koffi.dev/",
19
+ "author": {
20
+ "name": "Niels Martignène",
21
+ "email": "niels.martignene@protonmail.com",
22
+ "url": "https://koromix.dev/"
23
+ },
24
+ "license": "MIT",
25
+ "cnoke": {
26
+ "api": "../../vendor/node-api-headers",
27
+ "output": "build/koffi/{{ toolchain }}",
28
+ "node": 16,
29
+ "napi": 8
30
+ },
31
+ "funding": "https://liberapay.com/Koromix",
32
+ "type": "module",
33
+ "main": "./index.cjs",
34
+ "module": "./index.js",
35
+ "exports": {
36
+ ".": {
37
+ "import": "./index.js",
38
+ "require": "./index.cjs",
39
+ "types": "./index.d.ts"
40
+ },
41
+ "./indirect": {
42
+ "import": "./indirect.js",
43
+ "require": "./indirect.cjs",
44
+ "types": "./index.d.ts"
45
+ }
46
+ },
47
+ "types": "./index.d.ts",
48
+ "files": [
49
+ "index.cjs",
50
+ "index.js",
51
+ "index.d.ts",
52
+ "indirect.cjs",
53
+ "indirect.js",
54
+ "LICENSE.txt",
55
+ "README.md",
56
+ "src/koffi/index.cjs",
57
+ "src/koffi/index.js",
58
+ "src/koffi/indirect.cjs",
59
+ "src/koffi/indirect.js",
60
+ "src/koffi/src/static.cjs",
61
+ "src/koffi/src/static.js"
62
+ ]
63
+ }