boubou 0.1.0-beta.2 → 0.1.0-beta.6

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 (147) hide show
  1. package/BUILD.json +620 -85
  2. package/LICENSE +21 -0
  3. package/README.md +94 -23
  4. package/SHA256SUMS +140 -41
  5. package/boubou +0 -0
  6. package/cli.cjs +11 -2
  7. package/licenses/Rust-COPYRIGHT-library.html +22984 -1610
  8. package/licenses/Rust-COPYRIGHT.html +75230 -56114
  9. package/licenses/dependencies/alsa-0.11.0/LICENSE-APACHE +177 -0
  10. package/licenses/dependencies/alsa-0.11.0/LICENSE-MIT +21 -0
  11. package/licenses/dependencies/alsa-sys-0.4.0/LICENSE +21 -0
  12. package/licenses/dependencies/{zerocopy-0.8.63 → asn1-rs-0.7.2}/LICENSE-MIT +1 -2
  13. package/licenses/dependencies/{crypto-common-0.1.7 → asn1-rs-derive-0.6.0}/LICENSE-MIT +1 -1
  14. package/licenses/dependencies/autocfg-1.5.1/LICENSE-APACHE +201 -0
  15. package/licenses/dependencies/{digest-0.10.7 → autocfg-1.5.1}/LICENSE-MIT +1 -1
  16. package/licenses/dependencies/bit-vec-0.9.1/LICENSE-APACHE +201 -0
  17. package/licenses/dependencies/bit-vec-0.9.1/LICENSE-MIT +25 -0
  18. package/licenses/dependencies/{block-buffer-0.10.4 → block-buffer-0.12.1}/LICENSE-MIT +1 -1
  19. package/licenses/dependencies/bytemuck-1.25.2/LICENSE-APACHE +61 -0
  20. package/licenses/dependencies/bytemuck-1.25.2/LICENSE-MIT +9 -0
  21. package/licenses/dependencies/bytemuck-1.25.2/LICENSE-ZLIB +11 -0
  22. package/licenses/dependencies/bytemuck_derive-1.12.1/LICENSE-APACHE +61 -0
  23. package/licenses/dependencies/bytemuck_derive-1.12.1/LICENSE-MIT +9 -0
  24. package/licenses/dependencies/bytemuck_derive-1.12.1/LICENSE-ZLIB +11 -0
  25. package/licenses/dependencies/{cpufeatures-0.2.17 → const-oid-0.10.2}/LICENSE-MIT +1 -1
  26. package/licenses/dependencies/core-foundation-0.10.1/LICENSE-APACHE +201 -0
  27. package/licenses/dependencies/core-foundation-0.10.1/LICENSE-MIT +25 -0
  28. package/licenses/dependencies/cpal-0.18.2/LICENSE +201 -0
  29. package/licenses/dependencies/cpufeatures-0.3.1/LICENSE-MIT +25 -0
  30. package/licenses/dependencies/critical-section-1.2.0/LICENSE-APACHE +201 -0
  31. package/licenses/dependencies/critical-section-1.2.0/LICENSE-MIT +25 -0
  32. package/licenses/dependencies/crypto-common-0.2.2/LICENSE-MIT +25 -0
  33. package/licenses/dependencies/der-parser-10.0.0/LICENSE-APACHE +201 -0
  34. package/licenses/dependencies/der-parser-10.0.0/LICENSE-MIT +25 -0
  35. package/licenses/dependencies/{zerocopy-0.8.63/LICENSE-APACHE → deranged-0.5.9/LICENSE-Apache} +2 -2
  36. package/licenses/dependencies/deranged-0.5.9/LICENSE-MIT +19 -0
  37. package/licenses/dependencies/digest-0.11.3/LICENSE-MIT +26 -0
  38. package/licenses/dependencies/equivalent-1.0.3/LICENSE-APACHE +201 -0
  39. package/licenses/dependencies/equivalent-1.0.3/LICENSE-MIT +25 -0
  40. package/licenses/dependencies/fnv-1.0.7/LICENSE-APACHE +201 -0
  41. package/licenses/dependencies/fnv-1.0.7/LICENSE-MIT +25 -0
  42. package/licenses/dependencies/h2-0.4.20/LICENSE +25 -0
  43. package/licenses/dependencies/hashbrown-0.17.1/LICENSE-APACHE +201 -0
  44. package/licenses/dependencies/hashbrown-0.17.1/LICENSE-MIT +25 -0
  45. package/licenses/dependencies/httpdate-1.0.3/LICENSE-APACHE +201 -0
  46. package/licenses/dependencies/httpdate-1.0.3/LICENSE-MIT +19 -0
  47. package/licenses/dependencies/hybrid-array-0.4.15/LICENSE-MIT +25 -0
  48. package/licenses/dependencies/indexmap-2.14.2/LICENSE-APACHE +201 -0
  49. package/licenses/dependencies/indexmap-2.14.2/LICENSE-MIT +25 -0
  50. package/licenses/dependencies/lazy_static-1.5.1/LICENSE-APACHE +201 -0
  51. package/licenses/dependencies/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  52. package/licenses/dependencies/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  53. package/licenses/dependencies/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  54. package/licenses/dependencies/minimal-lexical-0.2.1/LICENSE-APACHE +201 -0
  55. package/licenses/dependencies/minimal-lexical-0.2.1/LICENSE-MIT +23 -0
  56. package/licenses/dependencies/{zerocopy-0.8.63/LICENSE-BSD → minimal-lexical-0.2.1/LICENSE.md} +14 -1
  57. package/licenses/dependencies/nom-7.1.3/LICENSE +20 -0
  58. package/licenses/dependencies/num-bigint-0.4.8/LICENSE-APACHE +201 -0
  59. package/licenses/dependencies/{rand_core-0.9.5 → num-bigint-0.4.8}/LICENSE-MIT +0 -1
  60. package/licenses/dependencies/num-conv-0.2.2/LICENSE-Apache +177 -0
  61. package/licenses/dependencies/num-conv-0.2.2/LICENSE-MIT +19 -0
  62. package/licenses/dependencies/num-integer-0.1.47/LICENSE-APACHE +201 -0
  63. package/licenses/dependencies/{rand-0.9.5 → num-integer-0.1.47}/LICENSE-MIT +0 -1
  64. package/licenses/dependencies/num-traits-0.2.19/LICENSE-APACHE +201 -0
  65. package/licenses/dependencies/{rand_chacha-0.9.0 → num-traits-0.2.19}/LICENSE-MIT +0 -1
  66. package/licenses/dependencies/oid-registry-0.8.1/LICENSE-APACHE +201 -0
  67. package/licenses/dependencies/oid-registry-0.8.1/LICENSE-MIT +25 -0
  68. package/licenses/dependencies/openssl-probe-0.2.2/LICENSE-APACHE +201 -0
  69. package/licenses/dependencies/openssl-probe-0.2.2/LICENSE-MIT +25 -0
  70. package/licenses/dependencies/pem-4.0.0/LICENSE.md +21 -0
  71. package/licenses/dependencies/pkg-config-0.3.34/LICENSE-APACHE +201 -0
  72. package/licenses/dependencies/pkg-config-0.3.34/LICENSE-MIT +25 -0
  73. package/licenses/dependencies/portable-atomic-1.15.0/LICENSE-APACHE +177 -0
  74. package/licenses/dependencies/portable-atomic-1.15.0/LICENSE-MIT +23 -0
  75. package/licenses/dependencies/powerfmt-0.2.1/LICENSE-Apache +202 -0
  76. package/licenses/dependencies/powerfmt-0.2.1/LICENSE-MIT +19 -0
  77. package/licenses/dependencies/qrcode-0.14.1/LICENSE-APACHE.txt +202 -0
  78. package/licenses/dependencies/qrcode-0.14.1/LICENSE-MIT.txt +19 -0
  79. package/licenses/dependencies/rcgen-0.14.10/LICENSE +214 -0
  80. package/licenses/dependencies/rusticata-macros-4.1.0/LICENSE-APACHE +201 -0
  81. package/licenses/dependencies/rusticata-macros-4.1.0/LICENSE-MIT +25 -0
  82. package/licenses/dependencies/rustls-native-certs-0.8.5/LICENSE +10 -0
  83. package/licenses/dependencies/rustls-native-certs-0.8.5/LICENSE-APACHE +201 -0
  84. package/licenses/dependencies/rustls-native-certs-0.8.5/LICENSE-ISC +15 -0
  85. package/licenses/dependencies/rustls-native-certs-0.8.5/LICENSE-MIT +25 -0
  86. package/licenses/dependencies/rustls-platform-verifier-0.7.1/LICENSE-APACHE +201 -0
  87. package/licenses/dependencies/rustls-platform-verifier-0.7.1/LICENSE-MIT +21 -0
  88. package/licenses/dependencies/security-framework-3.7.0/LICENSE-APACHE +201 -0
  89. package/licenses/dependencies/{version_check-0.9.5 → security-framework-3.7.0}/LICENSE-MIT +2 -1
  90. package/licenses/dependencies/security-framework-sys-2.17.0/LICENSE-APACHE +201 -0
  91. package/licenses/dependencies/security-framework-sys-2.17.0/LICENSE-MIT +20 -0
  92. package/licenses/dependencies/serde_derive-1.0.229/LICENSE-MIT +23 -0
  93. package/licenses/dependencies/sha1-0.11.0/LICENSE-APACHE +201 -0
  94. package/licenses/dependencies/{sha1-0.10.7 → sha1-0.11.0}/LICENSE-MIT +3 -2
  95. package/licenses/dependencies/sha2-0.11.1/LICENSE-APACHE +201 -0
  96. package/licenses/dependencies/{sha2-0.10.9 → sha2-0.11.1}/LICENSE-MIT +3 -2
  97. package/licenses/dependencies/sonora-0.3.0/LICENSE +31 -0
  98. package/licenses/dependencies/sonora-agc2-0.3.0/LICENSE +31 -0
  99. package/licenses/dependencies/sonora-common-audio-0.3.0/LICENSE +31 -0
  100. package/licenses/dependencies/sonora-fft-0.3.0/LICENSE +31 -0
  101. package/licenses/dependencies/sonora-ns-0.3.0/LICENSE +31 -0
  102. package/licenses/dependencies/sonora-simd-0.3.0/LICENSE +31 -0
  103. package/licenses/dependencies/synstructure-0.13.2/LICENSE +7 -0
  104. package/licenses/dependencies/time-0.3.55/LICENSE-Apache +177 -0
  105. package/licenses/dependencies/time-0.3.55/LICENSE-MIT +19 -0
  106. package/licenses/dependencies/time-core-0.1.9/LICENSE-Apache +177 -0
  107. package/licenses/dependencies/time-core-0.1.9/LICENSE-MIT +19 -0
  108. package/licenses/dependencies/time-macros-0.2.32/LICENSE-Apache +177 -0
  109. package/licenses/dependencies/time-macros-0.2.32/LICENSE-MIT +19 -0
  110. package/licenses/dependencies/tokio-macros-2.7.2/LICENSE +22 -0
  111. package/licenses/dependencies/tokio-util-0.7.20/LICENSE +21 -0
  112. package/licenses/dependencies/tracing-attributes-0.1.31/LICENSE +25 -0
  113. package/licenses/dependencies/tungstenite-0.30.0/LICENSE-APACHE +201 -0
  114. package/licenses/dependencies/{rand-0.9.5 → typed-path-0.13.0}/LICENSE-APACHE +1 -1
  115. package/licenses/dependencies/typed-path-0.13.0/LICENSE-MIT +23 -0
  116. package/licenses/dependencies/unicode-xid-0.2.6/LICENSE-APACHE +201 -0
  117. package/licenses/dependencies/unicode-xid-0.2.6/LICENSE-MIT +25 -0
  118. package/licenses/dependencies/x509-parser-0.18.1/LICENSE-APACHE +201 -0
  119. package/licenses/dependencies/x509-parser-0.18.1/LICENSE-MIT +25 -0
  120. package/licenses/dependencies/yasna-0.6.0/LICENSE-APACHE +201 -0
  121. package/licenses/dependencies/yasna-0.6.0/LICENSE-MIT +7 -0
  122. package/licenses/dependencies/{generic-array-0.14.7 → zip-9.4.1}/LICENSE +21 -21
  123. package/linux-x64/boubou +0 -0
  124. package/linux-x64/qwen/models.json +1946 -0
  125. package/linux-x64/qwen/runtime.json +9 -0
  126. package/package.json +14 -7
  127. package/qwen/models.json +3800 -0
  128. package/qwen/runtime.json +8 -0
  129. package/licenses/dependencies/getrandom-0.3.4/LICENSE-APACHE +0 -201
  130. package/licenses/dependencies/getrandom-0.3.4/LICENSE-MIT +0 -26
  131. package/licenses/dependencies/ppv-lite86-0.2.21/LICENSE-APACHE +0 -201
  132. package/licenses/dependencies/ppv-lite86-0.2.21/LICENSE-MIT +0 -25
  133. package/licenses/dependencies/rand_chacha-0.9.0/LICENSE-APACHE +0 -176
  134. package/licenses/dependencies/rand_core-0.9.5/LICENSE-APACHE +0 -187
  135. /package/licenses/dependencies/{tungstenite-0.28.0 → asn1-rs-0.7.2}/LICENSE-APACHE +0 -0
  136. /package/licenses/dependencies/{version_check-0.9.5 → asn1-rs-derive-0.6.0}/LICENSE-APACHE +0 -0
  137. /package/licenses/dependencies/{block-buffer-0.10.4 → block-buffer-0.12.1}/LICENSE-APACHE +0 -0
  138. /package/licenses/dependencies/{cpufeatures-0.2.17 → const-oid-0.10.2}/LICENSE-APACHE +0 -0
  139. /package/licenses/dependencies/{crypto-common-0.1.7 → cpufeatures-0.3.1}/LICENSE-APACHE +0 -0
  140. /package/licenses/dependencies/{digest-0.10.7 → crypto-common-0.2.2}/LICENSE-APACHE +0 -0
  141. /package/licenses/dependencies/{sha1-0.10.7 → digest-0.11.3}/LICENSE-APACHE +0 -0
  142. /package/licenses/dependencies/{dirs-6.0.0 → dirs-7.0.0}/LICENSE-APACHE +0 -0
  143. /package/licenses/dependencies/{dirs-6.0.0 → dirs-7.0.0}/LICENSE-MIT +0 -0
  144. /package/licenses/dependencies/{sha2-0.10.9 → hybrid-array-0.4.15}/LICENSE-APACHE +0 -0
  145. /package/licenses/dependencies/{utf-8-0.7.6 → lazy_static-1.5.1}/LICENSE-MIT +0 -0
  146. /package/licenses/dependencies/{utf-8-0.7.6 → serde_derive-1.0.229}/LICENSE-APACHE +0 -0
  147. /package/licenses/dependencies/{tungstenite-0.28.0 → tungstenite-0.30.0}/LICENSE-MIT +0 -0
package/cli.cjs CHANGED
@@ -2,7 +2,16 @@
2
2
  const { spawn } = require("node:child_process");
3
3
  const { join } = require("node:path");
4
4
 
5
- const child = spawn(join(__dirname, "boubou"), process.argv.slice(2), {
5
+ // The package carries the Apple Silicon build at its root and the x86-64 Linux build in linux-x64/.
6
+ const binary = {
7
+ "darwin-arm64": join(__dirname, "boubou"),
8
+ "linux-x64": join(__dirname, "linux-x64", "boubou"),
9
+ }[`${process.platform}-${process.arch}`];
10
+ if (!binary) {
11
+ console.error("Boubou's npm package runs on Apple Silicon Macs and x86-64 Linux.");
12
+ process.exit(1);
13
+ }
14
+ const child = spawn(binary, process.argv.slice(2), {
6
15
  stdio: "inherit",
7
16
  });
8
17
  let shutdownSignal;
@@ -14,7 +23,7 @@ for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"]) {
14
23
  });
15
24
  }
16
25
  child.once("error", (error) => {
17
- console.error(`Could not start bobo: ${error.message}`);
26
+ console.error(`Could not start boubou: ${error.message}`);
18
27
  process.exitCode = 1;
19
28
  });
20
29
  child.once("exit", (code, signal) => {