numbl 0.4.12 → 0.4.13

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 (30) hide show
  1. package/dist-browser/browser.js +1 -1
  2. package/dist-browser/numbl-core/fileIOAdapter.d.ts +4 -0
  3. package/dist-browser/numbl-core/native/lapack-bridge.d.ts +1 -1
  4. package/dist-browser/numbl-core/native/wasm-lapack-bridge.d.ts +114 -0
  5. package/dist-browser/numbl-core/native/wasm-lapack-browser.d.ts +34 -0
  6. package/dist-browser/numbl-core/runtime/datetime-format.d.ts +10 -0
  7. package/dist-browser/numbl-core/runtime/display.d.ts +5 -1
  8. package/dist-browser/numbl-core/runtime/index.d.ts +1 -1
  9. package/dist-browser/numbl-core/version.d.ts +1 -1
  10. package/dist-browser/vfs/BrowserFileIOAdapter.d.ts +1 -0
  11. package/dist-cli/cli.js +433 -130
  12. package/dist-lib/cli-fileio.d.ts +62 -0
  13. package/dist-lib/cli-scan.d.ts +6 -0
  14. package/dist-lib/cli-system.d.ts +13 -0
  15. package/dist-lib/lib.js +367 -72
  16. package/dist-lib/node.d.ts +30 -0
  17. package/dist-lib/node.js +829 -0
  18. package/dist-lib/numbl-core/fileIOAdapter.d.ts +4 -0
  19. package/dist-lib/numbl-core/native/lapack-bridge.d.ts +1 -1
  20. package/dist-lib/numbl-core/native/wasm-lapack-bridge.d.ts +114 -0
  21. package/dist-lib/numbl-core/native/wasm-lapack-browser.d.ts +34 -0
  22. package/dist-lib/numbl-core/runtime/datetime-format.d.ts +10 -0
  23. package/dist-lib/numbl-core/runtime/display.d.ts +5 -1
  24. package/dist-lib/numbl-core/runtime/index.d.ts +1 -1
  25. package/dist-lib/numbl-core/version.d.ts +1 -1
  26. package/dist-lib/vfs/BrowserFileIOAdapter.d.ts +1 -0
  27. package/dist-site-viewer/assets/{index-CGE1_vZ-.js → index-C2ItFYSf.js} +322 -322
  28. package/dist-site-viewer/assets/{numbl-worker-DddtCPW_.js → numbl-worker-CtfdLxJh.js} +114 -102
  29. package/dist-site-viewer/index.html +1 -1
  30. package/package.json +6 -2
@@ -0,0 +1,30 @@
1
+ /**
2
+ * numbl Node entry point ("numbl/node").
3
+ *
4
+ * Node.js implementations of the platform adapters consumed by executeCode
5
+ * (ExecOptions.fileIO / ExecOptions.system), plus the directory scanner used
6
+ * to build the workspace file set from search-path directories. These are
7
+ * the same implementations the numbl CLI uses; they are exported here so
8
+ * Node hosts embedding numbl do not have to vendor them.
9
+ *
10
+ * Usage:
11
+ * import { executeCode } from "numbl";
12
+ * import {
13
+ * NodeFileIOAdapter,
14
+ * NodeSystemAdapter,
15
+ * scanMFiles,
16
+ * } from "numbl/node";
17
+ *
18
+ * const searchPaths = ["/path/to/matlab/code"];
19
+ * const workspaceFiles = searchPaths.flatMap(p => scanMFiles(p));
20
+ * executeCode(
21
+ * 'disp("hello")',
22
+ * { fileIO: new NodeFileIOAdapter(), system: new NodeSystemAdapter() },
23
+ * workspaceFiles,
24
+ * "eval.m",
25
+ * searchPaths
26
+ * );
27
+ */
28
+ export { NodeFileIOAdapter } from "./cli-fileio.js";
29
+ export { NodeSystemAdapter } from "./cli-system.js";
30
+ export { scanMFiles } from "./cli-scan.js";