@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.
Files changed (280) hide show
  1. package/README.md +8 -6
  2. package/bundled/qc-helper/docs/configuration/settings.md +1 -1
  3. package/bundled/qc-helper/docs/features/mcp.md +5 -0
  4. package/bundled/qc-helper/docs/support/troubleshooting.md +124 -1
  5. package/chunks/{MaxSizedBox-2BZ3RGAN.js → MaxSizedBox-H6TTYZHO.js} +17 -17
  6. package/chunks/{StandaloneSessionPicker-URVHQ33H.js → StandaloneSessionPicker-G5FLW7TR.js} +34 -34
  7. package/chunks/{acp-subagent-executor-42HUHYWJ.js → acp-subagent-executor-PFIDAFOD.js} +19 -19
  8. package/chunks/{acpAgent-UE6Q6MDF.js → acpAgent-4PUZMTSI.js} +59 -59
  9. package/chunks/{agent-VSQDBKEV.js → agent-XS2VGVGO.js} +9 -9
  10. package/chunks/{agent-headless-5YJRNIU5.js → agent-headless-474ZYFSJ.js} +9 -9
  11. package/chunks/{all-providers-5WYELER7.js → all-providers-67KTP3MN.js} +2 -2
  12. package/chunks/{anthropicContentGenerator-LSPXJPRJ.js → anthropicContentGenerator-RTEGRYPV.js} +5 -5
  13. package/chunks/{bridge-64LWK7ZZ.js → bridge-HPTKSOIC.js} +19 -19
  14. package/chunks/{chunk-5BYEVKPE.js → chunk-2GNKUQNV.js} +48 -36
  15. package/chunks/{chunk-QSD4NNX7.js → chunk-35IZ2AEV.js} +4 -4
  16. package/chunks/{chunk-Q54TVLH3.js → chunk-3CJZHWKH.js} +1 -1
  17. package/chunks/{chunk-IIKBLS7C.js → chunk-3HQMSMNA.js} +1 -1
  18. package/chunks/{chunk-HAY7GH4C.js → chunk-3J63UVMG.js} +1 -1
  19. package/chunks/{chunk-FVJIDUCS.js → chunk-3OLRYJYM.js} +3 -3
  20. package/chunks/{chunk-PF6NLBU6.js → chunk-44YL3A4I.js} +1 -1
  21. package/chunks/{chunk-VPJNFLYT.js → chunk-4T3CEDPG.js} +5 -5
  22. package/chunks/{chunk-BW6UNNZZ.js → chunk-54DBAFQ2.js} +1 -1
  23. package/chunks/{chunk-SZUKUDET.js → chunk-5OKLHC2S.js} +1 -1
  24. package/chunks/{chunk-KLX3T6PQ.js → chunk-62T6BNFW.js} +4 -4
  25. package/chunks/{chunk-SC4A56UI.js → chunk-63XITVIE.js} +13 -13
  26. package/chunks/{chunk-PNDBIR3F.js → chunk-6MXIK5CK.js} +1 -1
  27. package/chunks/{chunk-QRH53G66.js → chunk-6N5O34AT.js} +5 -5
  28. package/chunks/{chunk-AYMTL6TQ.js → chunk-6XZZIE7V.js} +2 -2
  29. package/chunks/{chunk-W4HW4F2K.js → chunk-73K63OUJ.js} +7 -7
  30. package/chunks/{chunk-FJNY44SK.js → chunk-7FFS7D63.js} +1 -1
  31. package/chunks/{chunk-ZW75AOWT.js → chunk-7MFRXLVG.js} +1 -1
  32. package/chunks/{chunk-FRIJJ7WU.js → chunk-7O3XB3FJ.js} +2 -2
  33. package/chunks/{chunk-P5527KPA.js → chunk-AFXPLQYA.js} +3 -3
  34. package/chunks/{chunk-GU3KTDRS.js → chunk-ARKI4LOD.js} +3 -3
  35. package/chunks/{chunk-JP3U5UJT.js → chunk-B4WT73ZC.js} +2 -2
  36. package/chunks/{chunk-MI274MXI.js → chunk-BPZ6GQBH.js} +2 -2
  37. package/chunks/{chunk-4TG4VKHM.js → chunk-C6O3NG4T.js} +1 -1
  38. package/chunks/{chunk-ZHSDP46E.js → chunk-COBKDL54.js} +2 -2
  39. package/chunks/{chunk-TEOWSK2Y.js → chunk-CQ33RPSY.js} +10 -39
  40. package/chunks/{chunk-F5ZZD2XJ.js → chunk-D24NFPPO.js} +4 -4
  41. package/chunks/{chunk-3RUE4AI5.js → chunk-DGEOQOYK.js} +5 -5
  42. package/chunks/{chunk-X7NIVYXT.js → chunk-DNROOYR3.js} +2 -2
  43. package/chunks/{chunk-VI5LU5B3.js → chunk-EOIZZLQD.js} +1 -1
  44. package/chunks/{chunk-VRM2DCPN.js → chunk-EU7GXSE7.js} +7 -7
  45. package/chunks/{chunk-FSRV6E3A.js → chunk-EUIN36RL.js} +1 -1
  46. package/chunks/{chunk-NZPDU6XI.js → chunk-F5JXVZVJ.js} +2 -2
  47. package/chunks/{chunk-S22AMPHY.js → chunk-FI7LCEJ7.js} +27 -27
  48. package/chunks/{chunk-UNJ76GRD.js → chunk-FLIJQ7IC.js} +3 -3
  49. package/chunks/{chunk-RKRKWBGP.js → chunk-FT7HBT5S.js} +2 -2
  50. package/chunks/{chunk-KBPYRECY.js → chunk-FXSQ3EB2.js} +3 -3
  51. package/chunks/{chunk-RQI34L4L.js → chunk-GDOMZBF3.js} +1 -1
  52. package/chunks/{chunk-JZ7WLEQD.js → chunk-GLKPOCPH.js} +2 -2
  53. package/chunks/{chunk-6L6GONYZ.js → chunk-GW7QA3HN.js} +3 -3
  54. package/chunks/{chunk-P4JFO6QK.js → chunk-GXHLZHKS.js} +138 -65
  55. package/chunks/{chunk-LDS54GK7.js → chunk-HEFYYQ5F.js} +6 -4
  56. package/chunks/{chunk-LGTZFPFW.js → chunk-HLBNALL4.js} +1 -1
  57. package/chunks/{chunk-OAFLRECK.js → chunk-I3OOIGJI.js} +3 -3
  58. package/chunks/{chunk-XCVFETTO.js → chunk-IFJ3RGFY.js} +2 -2
  59. package/chunks/{chunk-5PVKPNPU.js → chunk-IRP7MQRE.js} +2 -2
  60. package/chunks/{chunk-VLUANPNK.js → chunk-IUDP2ML3.js} +3 -3
  61. package/chunks/{chunk-67V7FWU5.js → chunk-JFKJW3BP.js} +1 -1
  62. package/chunks/{chunk-G4UJA6OG.js → chunk-K44D6MLS.js} +445 -90
  63. package/chunks/{chunk-4SLOHBMI.js → chunk-KL5NEBVZ.js} +4 -4
  64. package/chunks/{chunk-YUOS4XKC.js → chunk-KSQ3A4MU.js} +5 -5
  65. package/chunks/{chunk-Q66RODNA.js → chunk-LSRS3YN5.js} +1 -1
  66. package/chunks/{chunk-QNDIPLLG.js → chunk-LSY2TNVO.js} +3 -3
  67. package/chunks/{chunk-4FVGYTTB.js → chunk-LWQVH7RG.js} +3 -3
  68. package/chunks/{chunk-CTZADE6E.js → chunk-LZCNINKB.js} +1 -1
  69. package/chunks/{chunk-IRZVUNMA.js → chunk-MVWEGM3N.js} +1 -1
  70. package/chunks/{chunk-MFAY5A2G.js → chunk-OJ2CVNVP.js} +1 -1
  71. package/chunks/{chunk-QRWZYAPM.js → chunk-P3H5PNSO.js} +1 -1
  72. package/chunks/{chunk-XQJEGIG4.js → chunk-PFBUKEWV.js} +9 -4
  73. package/chunks/{chunk-NJ7MEKVG.js → chunk-PT32HMCN.js} +1 -1
  74. package/chunks/{chunk-WOIQYP7B.js → chunk-PVYRIVM3.js} +1 -1
  75. package/chunks/{chunk-6WVOYUEJ.js → chunk-RBZFW23K.js} +3 -3
  76. package/chunks/{chunk-LM76NVKF.js → chunk-ROE3Y42D.js} +2 -2
  77. package/chunks/{chunk-AAW2TG66.js → chunk-S2JADXCO.js} +31 -3
  78. package/chunks/{chunk-4UL6MLEV.js → chunk-SHOCUW3R.js} +2 -2
  79. package/chunks/{chunk-4BG7FAZ2.js → chunk-SKQECA3Y.js} +1 -1
  80. package/chunks/{chunk-4UGXSLHA.js → chunk-SN3M4SEK.js} +13 -13
  81. package/chunks/{chunk-SLBP47PK.js → chunk-SPRNR2PU.js} +2 -2
  82. package/chunks/{chunk-EN3GYRXW.js → chunk-STL6XNJK.js} +3 -3
  83. package/chunks/{chunk-FIYTBZDZ.js → chunk-TAHFZVR5.js} +7 -7
  84. package/chunks/{chunk-IKSQVGB2.js → chunk-TD2B7LOS.js} +1 -1
  85. package/chunks/{chunk-I5LCZWR4.js → chunk-TZ7PFWVT.js} +1 -1
  86. package/chunks/{chunk-KH3ZMOQV.js → chunk-UUAWQAX6.js} +5 -5
  87. package/chunks/{chunk-HTD3FZXG.js → chunk-VMLVJOQL.js} +2 -2
  88. package/chunks/{chunk-GJUXJFGB.js → chunk-WCPTHHFI.js} +1 -1
  89. package/chunks/{chunk-B6FDV2GG.js → chunk-X2SSZR6M.js} +5 -5
  90. package/chunks/{chunk-7MHQGT7Y.js → chunk-XGXVMNHI.js} +4 -4
  91. package/chunks/{chunk-DM2DB5YS.js → chunk-XHQEB4WW.js} +1 -1
  92. package/chunks/{chunk-446EUCXY.js → chunk-XZDGZX34.js} +2 -2
  93. package/chunks/{chunk-HYKRT564.js → chunk-Y34E6WY7.js} +8 -8
  94. package/chunks/{chunk-Q7SHVWFV.js → chunk-YEG2VKSR.js} +2 -2
  95. package/chunks/{chunk-ADTBSWJM.js → chunk-YRKUDWZP.js} +2 -2
  96. package/chunks/{chunk-XCFEMYMZ.js → chunk-YXTBS65N.js} +2 -2
  97. package/chunks/{chunk-G6CFJOUC.js → chunk-ZBP2DKL7.js} +1 -1
  98. package/chunks/{chunk-OALPTFEF.js → chunk-ZPJTYCOY.js} +2 -2
  99. package/chunks/{chunk-J7XZGEYH.js → chunk-ZUBCKLDM.js} +3 -3
  100. package/chunks/{codex-subagent-executor-HUZ2RBO4.js → codex-subagent-executor-CVPJBY7H.js} +19 -19
  101. package/chunks/{contextCommand-UCBQCZPT.js → contextCommand-VQP42E45.js} +19 -19
  102. package/chunks/{core-runtime-33VWCL5W.js → core-runtime-UGTGVETQ.js} +17 -17
  103. package/chunks/{create-sub-session-EKZSCCOT.js → create-sub-session-W7HDHA47.js} +18 -18
  104. package/chunks/{daemon-git-worktree-guard-PVGNE2VK.js → daemon-git-worktree-guard-OYHWZ4DT.js} +17 -17
  105. package/chunks/{daemon-status-provider-HCY7J7MU.js → daemon-status-provider-BPA4OMKT.js} +23 -23
  106. package/chunks/{daemon-trust-policy-RY2NJKC4.js → daemon-trust-policy-LR3O2LHO.js} +23 -23
  107. package/chunks/{daemon-trust-policy-monitor-QZGG6ZRG.js → daemon-trust-policy-monitor-XYJBQS5K.js} +23 -23
  108. package/chunks/{deferred-core-runtime-UQBHRN26.js → deferred-core-runtime-2JRX7S37.js} +17 -17
  109. package/chunks/{edit-ITG7FT2N.js → edit-C5EXC227.js} +11 -11
  110. package/chunks/{en-TGA7IM7I.js → en-QBY42TC3.js} +25 -0
  111. package/chunks/{enterPlanMode-FPEK4BIB.js → enterPlanMode-LRUOZ2DX.js} +9 -9
  112. package/chunks/{environment-R72KBJYN.js → environment-AK5W47CA.js} +19 -19
  113. package/chunks/{errors-F7FV45GH.js → errors-V77HGFV3.js} +19 -19
  114. package/chunks/{execution-tool-O6ZQT4QK.js → execution-tool-NK2ST2RX.js} +11 -11
  115. package/chunks/{execution-worker-AKAHKG4U.js → execution-worker-QO36YMNT.js} +14 -14
  116. package/chunks/{exitPlanMode-E3X6O2KI.js → exitPlanMode-OPS5BP27.js} +9 -9
  117. package/chunks/{fast-path-NYJY3CTG.js → fast-path-SAXQN2PO.js} +2 -2
  118. package/chunks/{foreground-runner-3DWMIR57.js → foreground-runner-WUF5YIVW.js} +23 -19
  119. package/chunks/{glob-UF4UY2H3.js → glob-EAIWIACU.js} +9 -9
  120. package/chunks/{goal-tools-5PYBCVXE.js → goal-tools-IM4K7YYV.js} +9 -9
  121. package/chunks/{handleAutoUpdate-MWT23FAM.js → handleAutoUpdate-XGWLFCZ3.js} +20 -20
  122. package/chunks/{i18n-FGEDPY3X.js → i18n-A3JWISCI.js} +18 -18
  123. package/chunks/{initializer-U3VL76VN.js → initializer-WF7GJJSN.js} +23 -23
  124. package/chunks/{installationInfo-7T2AMMB5.js → installationInfo-UGZLB5DE.js} +17 -17
  125. package/chunks/{list-XJHO2ULF.js → list-XL33NYFQ.js} +25 -25
  126. package/chunks/{llm-GOWMM7X6.js → llm-5ZIFZWYM.js} +48 -48
  127. package/chunks/{llm-content-generator-IU5UXRT5.js → llm-content-generator-IP6THV2F.js} +4 -4
  128. package/chunks/{loadedSettingsAdapter-JPTRNBK4.js → loadedSettingsAdapter-BBOBGOFY.js} +23 -23
  129. package/chunks/{local-execution-environment-JRKVTL4S.js → local-execution-environment-OHZ6JHBJ.js} +14 -14
  130. package/chunks/{loggingContentGenerator-OEWKCKMT.js → loggingContentGenerator-ZB6YBQ4A.js} +9 -9
  131. package/chunks/{managed-npm-update-OUV36XDV.js → managed-npm-update-U2LTQRW5.js} +107 -26
  132. package/chunks/{mcp-SGAE27LZ.js → mcp-7TSDK7XG.js} +23 -23
  133. package/chunks/{model-call-collection-ZJ44DP57.js → model-call-collection-Q6XLRBD4.js} +1 -1
  134. package/chunks/{model-configuration-KDYH62W7.js → model-configuration-YHPN6XLJ.js} +24 -24
  135. package/chunks/{modelConfigUtils-Y6ROWGQR.js → modelConfigUtils-KXEA5X5L.js} +19 -19
  136. package/chunks/{monitor-4QUEE5PD.js → monitor-YUS5UHUB.js} +9 -9
  137. package/chunks/{nonInteractiveCli-OM7DDCIR.js → nonInteractiveCli-H5OSIGXO.js} +50 -50
  138. package/chunks/{nonInteractiveToolExecutor-DI7QR4NJ.js → nonInteractiveToolExecutor-KOOCZSZM.js} +10 -10
  139. package/chunks/{notebook-edit-VE3PZOBS.js → notebook-edit-XYZLSPWF.js} +10 -10
  140. package/chunks/{omni-HOD7DV7N.js → omni-QS5RRGPB.js} +9 -9
  141. package/chunks/{openaiContentGenerator-MMFYMCWS.js → openaiContentGenerator-37E2A7VN.js} +6 -6
  142. package/chunks/{openaiResponsesContentGenerator-SSIBVYVO.js → openaiResponsesContentGenerator-PMCEAG55.js} +4 -4
  143. package/chunks/{processUtils-65C36IP2.js → processUtils-CQXO2K7O.js} +2 -2
  144. package/chunks/{prompt-terminal-ledger-UDXHJGTR.js → prompt-terminal-ledger-ZRCMVONU.js} +18 -18
  145. package/chunks/{pt-M2VNXLYO.js → pt-DHKQQO6C.js} +25 -0
  146. package/chunks/{pty-host-process-UP752FWV.js → pty-host-process-KO4H32QM.js} +1 -1
  147. package/chunks/{reactive-degrade-2UHNPYQG.js → reactive-degrade-ZJ3JVKAL.js} +8 -8
  148. package/chunks/{read-file-NXZBG4AF.js → read-file-MOY3AEWH.js} +1 -1
  149. package/chunks/{resumeHistoryUtils-GAFAJJ32.js → resumeHistoryUtils-HATXAZWB.js} +22 -22
  150. package/chunks/{ripGrep-BTNYROLP.js → ripGrep-DRZ55VHF.js} +1 -1
  151. package/chunks/{run-o1-code-serve-JPHA76ZV.js → run-o1-code-serve-QG3EUGCC.js} +32 -32
  152. package/chunks/{sandboxConfig-UCP6JH76.js → sandboxConfig-67KD25RA.js} +17 -17
  153. package/chunks/{scheduled-tasks-MAAZRWDD.js → scheduled-tasks-SUK36YBV.js} +22 -22
  154. package/chunks/{scheduler-OEDDDVZS.js → scheduler-VGATQHDI.js} +19 -19
  155. package/chunks/{serve-W53YA4E6.js → serve-4JYKC5U3.js} +23 -23
  156. package/chunks/{server-BIOYLQ4S.js → server-ID2MQUOZ.js} +48 -48
  157. package/chunks/{session-YJEXIQYW.js → session-FEM6CGKX.js} +1 -1
  158. package/chunks/{session-HWYQLWRW.js → session-SBJFEMA7.js} +51 -51
  159. package/chunks/{session-attachments-root-GQGU56M6.js → session-attachments-root-ILVWUB6H.js} +17 -17
  160. package/chunks/{session-pr-refresh-SWXWY5G7.js → session-pr-refresh-PMD3YR6L.js} +21 -21
  161. package/chunks/{settings-QXVMNILF.js → settings-7BOOCLET.js} +22 -22
  162. package/chunks/{shell-P3A6NR2F.js → shell-PWH465OV.js} +9 -9
  163. package/chunks/{skill-TJVM366F.js → skill-6CYVI2NR.js} +1 -1
  164. package/chunks/{skill-settings-GBIWXUSF.js → skill-settings-5HIZWK7Y.js} +22 -22
  165. package/chunks/{spawnChannel-YNHVMRUM.js → spawnChannel-OOMVR63F.js} +18 -18
  166. package/chunks/{standalone-update-BPLEMHR3.js → standalone-update-MXJDDVFO.js} +19 -19
  167. package/chunks/{startInteractiveUI-LKHQEMJC.js → startInteractiveUI-IHLZORH3.js} +4805 -4243
  168. package/chunks/{supervisor-runner-MDQEC376.js → supervisor-runner-I3KOH7AT.js} +6 -2
  169. package/chunks/{team-create-PKMF5MWH.js → team-create-NNXUJHYM.js} +9 -9
  170. package/chunks/{team-plan-approval-MMTFDTUP.js → team-plan-approval-NGGXGRN5.js} +9 -9
  171. package/chunks/{terminal-image-renderer-PQKSRFG6.js → terminal-image-renderer-QPJZUQOY.js} +17 -17
  172. package/chunks/{theme-manager-JAUIL6A6.js → theme-manager-YN3VTWUS.js} +17 -17
  173. package/chunks/{tool-result-media-EFRG36K3.js → tool-result-media-ELNVF7HV.js} +9 -9
  174. package/chunks/{tool-search-ADQSAKUL.js → tool-search-3MQVPZN2.js} +1 -1
  175. package/chunks/{total-session-admission-WR52JIJF.js → total-session-admission-RQ2GWA4J.js} +19 -19
  176. package/chunks/{trustedFolders-MICSTOQU.js → trustedFolders-ANMISMAZ.js} +18 -18
  177. package/chunks/{update-relaunch-KME3VVNC.js → update-relaunch-ANCIYSER.js} +11 -6
  178. package/chunks/{updateCheck-3TEZS32Z.js → updateCheck-QGDY5DY2.js} +19 -19
  179. package/chunks/{upload-config-2UYVTNDH.js → upload-config-V6CJBH2Z.js} +6 -6
  180. package/chunks/{useAutoAcceptIndicator-M22TBUGG.js → useAutoAcceptIndicator-H4PUESJW.js} +26 -26
  181. package/chunks/{validateNonInterActiveAuth-IYB7C4RT.js → validateNonInterActiveAuth-3D6LYNKP.js} +47 -47
  182. package/chunks/{version-MNDZPW5E.js → version-M7PIODKT.js} +1 -1
  183. package/chunks/{web-fetch-4WV34U3H.js → web-fetch-VJSQST7P.js} +1 -1
  184. package/chunks/{web-search-RWIHTXBO.js → web-search-CVFACVJV.js} +7 -7
  185. package/chunks/{workflow-OLMHA4BB.js → workflow-O3XZL3Z4.js} +10 -10
  186. package/chunks/{workspace-providers-status-ZK5RTIRW.js → workspace-providers-status-M47T3M22.js} +27 -27
  187. package/chunks/{workspace-registration-store-OFBYI2AM.js → workspace-registration-store-HGSY3RON.js} +1 -1
  188. package/chunks/{workspace-registry-24UG35RO.js → workspace-registry-LYEI3DR3.js} +19 -19
  189. package/chunks/{workspace-runtime-coordinator-JTMGRKL6.js → workspace-runtime-coordinator-OHXZ4IPK.js} +19 -19
  190. package/chunks/{workspace-service-4F3QNU5O.js → workspace-service-VII7ZCF7.js} +26 -26
  191. package/chunks/{workspace-skills-status-CQJRAMY2.js → workspace-skills-status-7GG3A3TL.js} +23 -23
  192. package/chunks/{workspace-trust-reconciler-5EZ6XHNZ.js → workspace-trust-reconciler-GGKNXRVC.js} +25 -25
  193. package/chunks/{write-file-6KJ6PRKR.js → write-file-K5V3EMTE.js} +11 -11
  194. package/chunks/{zoom-image-OCGXTGXD.js → zoom-image-TROZVSMN.js} +1 -1
  195. package/cli-entry.js +13 -48
  196. package/cli.js +16 -16
  197. package/execution-worker.js +1 -1
  198. package/export-transcript-document.js +1 -1
  199. package/locales/en.js +36 -0
  200. package/locales/pt.js +36 -0
  201. package/node_modules/koffi/LICENSE.txt +22 -0
  202. package/node_modules/koffi/README.md +46 -0
  203. package/node_modules/koffi/index.cjs +1 -0
  204. package/node_modules/koffi/index.d.ts +390 -0
  205. package/node_modules/koffi/index.js +2 -0
  206. package/node_modules/koffi/indirect.cjs +1 -0
  207. package/node_modules/koffi/indirect.js +2 -0
  208. package/node_modules/koffi/package.json +63 -0
  209. package/node_modules/koffi/src/koffi/index.cjs +327 -0
  210. package/node_modules/koffi/src/koffi/index.js +312 -0
  211. package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
  212. package/node_modules/koffi/src/koffi/indirect.js +311 -0
  213. package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
  214. package/node_modules/koffi/src/koffi/src/static.js +173 -0
  215. package/package.json +25 -2
  216. package/release-notes.json +18 -0
  217. package/web-shell/assets/{abnfDiagram-VCTEODGH-Blm8csld.js → abnfDiagram-VCTEODGH-1p6NHpAP.js} +1 -1
  218. package/web-shell/assets/{arc-DP_rbVda.js → arc-zZSvt9kN.js} +1 -1
  219. package/web-shell/assets/{architectureDiagram-5GKGNRK7-EjLTuk5n.js → architectureDiagram-5GKGNRK7-C1H1DVM2.js} +1 -1
  220. package/web-shell/assets/{blockDiagram-NRAW4CY4-BSp3kH8e.js → blockDiagram-NRAW4CY4-CLvQiMuT.js} +1 -1
  221. package/web-shell/assets/{c4Diagram-UCG6FXSJ-DgdEOH_H.js → c4Diagram-UCG6FXSJ-verRTIfv.js} +1 -1
  222. package/web-shell/assets/channel-BL_seGtn.js +1 -0
  223. package/web-shell/assets/{chunk-2Q5K7J3B-CTfcSXdR.js → chunk-2Q5K7J3B-BIX6o24B.js} +1 -1
  224. package/web-shell/assets/{chunk-5VM5RSS4-DSvHcY83.js → chunk-5VM5RSS4-hp0xJxSu.js} +1 -1
  225. package/web-shell/assets/{chunk-F27PBJKO-DQxZ4sQG.js → chunk-F27PBJKO-BHY8_5WY.js} +1 -1
  226. package/web-shell/assets/{chunk-G27WJ6UU-CkxSTxNF.js → chunk-G27WJ6UU-Bq3iuQSE.js} +1 -1
  227. package/web-shell/assets/{chunk-JWPE2WC7-0Jyf4kN0.js → chunk-JWPE2WC7-nl0EYjjD.js} +1 -1
  228. package/web-shell/assets/{chunk-LCL6LL3I-CfodE2oy.js → chunk-LCL6LL3I-CstAiHwj.js} +1 -1
  229. package/web-shell/assets/{chunk-POPQ4Y6H-DKNG_Q8j.js → chunk-POPQ4Y6H-BWSrwMPq.js} +1 -1
  230. package/web-shell/assets/{chunk-SVP7TREG-fJLgHhdK.js → chunk-SVP7TREG-BHoHrDvN.js} +1 -1
  231. package/web-shell/assets/{chunk-XXDRQBXY-B5SXZxzv.js → chunk-XXDRQBXY-_raB2Fx7.js} +1 -1
  232. package/web-shell/assets/classDiagram-DTDB5LWJ-CSUKMc0D.js +1 -0
  233. package/web-shell/assets/classDiagram-v2-JRS7N3AN-CSUKMc0D.js +1 -0
  234. package/web-shell/assets/{cose-bilkent-JH36ORCC-cAsM9PHD.js → cose-bilkent-JH36ORCC-DzohBTSN.js} +1 -1
  235. package/web-shell/assets/{cynefin-OW5HDTMX-DRnaoZZ1.js → cynefin-OW5HDTMX-DUuz4IOx.js} +1 -1
  236. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-BGP5RBk9.js → cynefinDiagram-5FMLGOSQ-CUWRH3bQ.js} +1 -1
  237. package/web-shell/assets/{dagre-3AP2YEHR-BT4s62Rf.js → dagre-3AP2YEHR-DccvRFOk.js} +1 -1
  238. package/web-shell/assets/{diagram-S7CK7UJ4-CAMMwuGP.js → diagram-S7CK7UJ4-iGT749Oj.js} +1 -1
  239. package/web-shell/assets/{diagram-UQ7AKVKN-UR0L_1o7.js → diagram-UQ7AKVKN-DO-brOdV.js} +1 -1
  240. package/web-shell/assets/{diagram-VSXAHHWV-CKqMzuGn.js → diagram-VSXAHHWV-BTxQOmxL.js} +1 -1
  241. package/web-shell/assets/{diagram-VX7I27RA-13tiWaGu.js → diagram-VX7I27RA-B4qvwv51.js} +1 -1
  242. package/web-shell/assets/{diagram-Z3DM3KII-Bf-aoo5R.js → diagram-Z3DM3KII-rBgjOTjS.js} +1 -1
  243. package/web-shell/assets/{ebnfDiagram-PWID7BFC-5rUl0IMJ.js → ebnfDiagram-PWID7BFC-pm_yhGF5.js} +1 -1
  244. package/web-shell/assets/{erDiagram-SSCWMZ5O-GREvBu1Z.js → erDiagram-SSCWMZ5O-CYu1ceNm.js} +1 -1
  245. package/web-shell/assets/{flowDiagram-A5DVABFB-B6Psdym5.js → flowDiagram-A5DVABFB-VaNRVW2d.js} +1 -1
  246. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Cb24GKog.js → ganttDiagram-EL5Y4UJY-DyvaaUFV.js} +1 -1
  247. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Bg7qw5JL.js → gitGraphDiagram-WWUBYQGX-ATr3REtt.js} +1 -1
  248. package/web-shell/assets/{index-DTLx9svT.js → index-B3YLpUKu.js} +1 -1
  249. package/web-shell/assets/{index-C1iC-XWx.js → index-C4N7bP4K.js} +3 -3
  250. package/web-shell/assets/{infoDiagram-RXCK75RN-Cx0asY0r.js → infoDiagram-RXCK75RN-C94by8Av.js} +1 -1
  251. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-3NBLOZEv.js → ishikawaDiagram-5VMMS53U-DzjDX0-x.js} +1 -1
  252. package/web-shell/assets/{journeyDiagram-EYS64GPL-DNgiQP6o.js → journeyDiagram-EYS64GPL-BW955BgY.js} +1 -1
  253. package/web-shell/assets/{kanban-definition-3QL26DDD-JuQXfRp_.js → kanban-definition-3QL26DDD-BtbAjdCr.js} +1 -1
  254. package/web-shell/assets/{layout-Cev2Ff0R.js → layout-U3vDc3pe.js} +1 -1
  255. package/web-shell/assets/{linear-BfVni-EP.js → linear-B5nTSs6h.js} +1 -1
  256. package/web-shell/assets/{mermaid.core-DT3Pzm8u.js → mermaid.core-ezhLxuW5.js} +6 -6
  257. package/web-shell/assets/{mindmap-definition-FBJOCRG2-BFIKt6yc.js → mindmap-definition-FBJOCRG2-BVcRjZNc.js} +1 -1
  258. package/web-shell/assets/{pegDiagram-XKGWAZYB-BIZ_N-Ep.js → pegDiagram-XKGWAZYB-BnYXkIZM.js} +1 -1
  259. package/web-shell/assets/{pieDiagram-E7YTZNPT-DVudbGYK.js → pieDiagram-E7YTZNPT-DooJLvL9.js} +1 -1
  260. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-MauYSAxr.js → quadrantDiagram-AXDQQJYC-MywT58KI.js} +1 -1
  261. package/web-shell/assets/{railroadDiagram-O6MQD6OU-CAc0Jodi.js → railroadDiagram-O6MQD6OU-kZGgDmOU.js} +1 -1
  262. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C3QPrwWL.js → requirementDiagram-EFPCY7ZU-BTR494PR.js} +1 -1
  263. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BY4QnzoU.js → sankeyDiagram-P5KCCOFB-DCC0qZFO.js} +1 -1
  264. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BQCkD6LS.js → sequenceDiagram-WJ2MYXX4-DDvDBq18.js} +1 -1
  265. package/web-shell/assets/{sizeCapture-X5ZJPWSS-DNisR9q3.js → sizeCapture-X5ZJPWSS-C3GSzMrx.js} +1 -1
  266. package/web-shell/assets/{stateDiagram-HBIQ2CUA-CbqDtAdm.js → stateDiagram-HBIQ2CUA-Dr4BXIdu.js} +1 -1
  267. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DPa_JZnG.js +1 -0
  268. package/web-shell/assets/{swimlanes-XN3QIQJK-Yf5JgSO3.js → swimlanes-XN3QIQJK-CTc5retR.js} +1 -1
  269. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-WV4-2ySQ.js +8 -0
  270. package/web-shell/assets/{timeline-definition-24CTP7MA-ZHueEzUo.js → timeline-definition-24CTP7MA-DlCHZahl.js} +1 -1
  271. package/web-shell/assets/{vennDiagram-4TSXK5OY-DAGFdAuB.js → vennDiagram-4TSXK5OY-DSEiDJ6-.js} +1 -1
  272. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-C5aBn2nB.js → wardleyDiagram-VM6X3IG4-BSky5BAj.js} +1 -1
  273. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-Cok1KJLN.js → xychartDiagram-S5SC5T6Z-C-_l5Eqg.js} +1 -1
  274. package/web-shell/index.html +1 -1
  275. package/web-shell/sw.js +1 -1
  276. package/web-shell/assets/channel-CLKVanLU.js +0 -1
  277. package/web-shell/assets/classDiagram-DTDB5LWJ-C8qMaQFg.js +0 -1
  278. package/web-shell/assets/classDiagram-v2-JRS7N3AN-C8qMaQFg.js +0 -1
  279. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Bwshffk9.js +0 -1
  280. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DYX1d77n.js +0 -8
package/locales/en.js CHANGED
@@ -8,6 +8,42 @@
8
8
  // The key serves as both the translation key and the default English text
9
9
 
10
10
  export default {
11
+ 'The conversation could not be saved for restart. Keep this session open and try again.':
12
+ 'The conversation could not be saved for restart. Keep this session open and try again.',
13
+ 'Close this session and update using the instructions below.':
14
+ 'Close this session and update using the instructions below.',
15
+ 'Prepare update': 'Prepare update',
16
+ 'Conversation recording is disabled. Keep this conversation open; updates take effect after you close and open the app.':
17
+ 'Conversation recording is disabled. Keep this conversation open; updates take effect after you close and open the app.',
18
+ 'The update is prepared, but restarting failed: {{error}}. Open the app again to resume your saved conversation.':
19
+ 'The update is prepared, but restarting failed: {{error}}. Open the app again to resume your saved conversation.',
20
+ 'Enable automatic update checks and prepare npm updates while idle.':
21
+ 'Enable automatic update checks and prepare npm updates while idle.',
22
+ '{{product}} update': '{{product}} update',
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.',
26
+ 'Preparing the update': 'Preparing the update',
27
+ 'Ready to restart': 'Ready to restart',
28
+ 'The update could not be prepared': 'The update could not be prepared',
29
+ Restarting: 'Restarting',
30
+ 'Update and restart': 'Update and restart',
31
+ 'Restart and update': 'Restart and update',
32
+ 'Continue using': 'Continue using',
33
+ 'Try again': 'Try again',
34
+ Later: 'Later',
35
+ 'Update now, or continue and update the next time you open the app.':
36
+ 'Update now, or continue and update the next time you open the app.',
37
+ 'You can continue using the app. The update takes effect after restarting.':
38
+ 'You can continue using the app. The update takes effect after restarting.',
39
+ 'The update is prepared. Restart now, or apply it the next time you open the app.':
40
+ 'The update is prepared. Restart now, or apply it the next time you open the app.',
41
+ 'Your current version is still available.':
42
+ 'Your current version is still available.',
43
+ 'Opening the prepared version.': 'Opening the prepared version.',
44
+ '↑↓ choose · enter select · esc later':
45
+ '↑↓ choose · enter select · esc later',
46
+ 'PgUp/PgDn details · esc later': 'PgUp/PgDn details · esc later',
11
47
  '{{count}} characters copied': '{{count}} characters copied',
12
48
  'Clipboard images are unavailable in this session. Attach the image file directly.':
13
49
  'Clipboard images are unavailable in this session. Attach the image file directly.',
package/locales/pt.js CHANGED
@@ -7,6 +7,42 @@
7
7
  // Portuguese translations for O1-Code CLI (pt-BR)
8
8
 
9
9
  export default {
10
+ 'The conversation could not be saved for restart. Keep this session open and try again.':
11
+ 'Não foi possível salvar a conversa para reiniciar. Mantenha esta sessão aberta e tente novamente.',
12
+ 'Close this session and update using the instructions below.':
13
+ 'Feche esta sessão e atualize seguindo as instruções abaixo.',
14
+ 'Prepare update': 'Preparar atualização',
15
+ 'Conversation recording is disabled. Keep this conversation open; updates take effect after you close and open the app.':
16
+ 'A gravação de conversas está desativada. Mantenha esta conversa aberta; as atualizações serão aplicadas após fechar e abrir o aplicativo.',
17
+ 'The update is prepared, but restarting failed: {{error}}. Open the app again to resume your saved conversation.':
18
+ 'A atualização está preparada, mas não foi possível reiniciar: {{error}}. Abra o aplicativo novamente para retomar sua conversa salva.',
19
+ 'Enable automatic update checks and prepare npm updates while idle.':
20
+ 'Verificar atualizações automaticamente e preparar atualizações npm enquanto estiver ocioso.',
21
+ '{{product}} update': 'Atualização do {{product}}',
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.',
25
+ 'Preparing the update': 'Preparando a atualização',
26
+ 'Ready to restart': 'Tudo pronto para reiniciar',
27
+ 'The update could not be prepared': 'Não foi possível preparar a atualização',
28
+ Restarting: 'Reiniciando',
29
+ 'Update and restart': 'Atualizar e reiniciar',
30
+ 'Restart and update': 'Reiniciar e atualizar',
31
+ 'Continue using': 'Continuar usando',
32
+ 'Try again': 'Tentar novamente',
33
+ Later: 'Depois',
34
+ 'Update now, or continue and update the next time you open the app.':
35
+ 'Atualize agora ou continue e atualize na próxima vez que abrir o aplicativo.',
36
+ 'You can continue using the app. The update takes effect after restarting.':
37
+ 'Você pode continuar usando. A atualização será aplicada após reiniciar.',
38
+ 'The update is prepared. Restart now, or apply it the next time you open the app.':
39
+ 'A atualização está preparada. Reinicie agora ou aplique na próxima abertura.',
40
+ 'Your current version is still available.':
41
+ 'Sua versão atual continua disponível.',
42
+ 'Opening the prepared version.': 'Abrindo a versão preparada.',
43
+ '↑↓ choose · enter select · esc later':
44
+ '↑↓ escolher · enter selecionar · esc depois',
45
+ 'PgUp/PgDn details · esc later': 'PgUp/PgDn detalhes · esc depois',
10
46
  '{{count}} characters copied': '{{count}} caracteres copiados',
11
47
  'Clipboard images are unavailable in this session. Attach the image file directly.':
12
48
  'As imagens da área de transferência estão indisponíveis nesta sessão. Anexe o arquivo de imagem diretamente.',
@@ -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
+ }