@miden-sdk/node-darwin-x64 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +45 -0
- package/miden_client_web.node +2 -2
- package/package.json +3 -2
package/AGENTS.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# @miden-sdk/node-darwin-x64 - Agent Guide
|
|
2
|
+
|
|
3
|
+
**Audience: AI coding agents** that have landed in this directory and are
|
|
4
|
+
trying to work out what it is.
|
|
5
|
+
|
|
6
|
+
## This is not the SDK
|
|
7
|
+
|
|
8
|
+
This package is one prebuilt native binary, `miden_client_web.node`, for
|
|
9
|
+
macOS on Intel. It carries no JavaScript, no type declarations and no public API.
|
|
10
|
+
There is nothing here to import, and nothing here to call.
|
|
11
|
+
|
|
12
|
+
The SDK is `@miden-sdk/miden-sdk`. Its guide, which is the one you want, is at
|
|
13
|
+
`node_modules/@miden-sdk/miden-sdk/AGENTS.md`.
|
|
14
|
+
|
|
15
|
+
## Why it is installed
|
|
16
|
+
|
|
17
|
+
`@miden-sdk/miden-sdk` lists the three native packages as
|
|
18
|
+
`optionalDependencies`, so your package manager installs only the one matching
|
|
19
|
+
the current platform and silently skips the rest. On Node.js the SDK's loader
|
|
20
|
+
resolves the binary in this order:
|
|
21
|
+
|
|
22
|
+
1. `MIDEN_MODULE_PATH`, or an explicit `modulePath` option
|
|
23
|
+
2. the platform package for `darwin-x64`, which is this one
|
|
24
|
+
3. the SDK's own `prebuilds/` directory
|
|
25
|
+
4. the repo `target/` directory, for local development
|
|
26
|
+
|
|
27
|
+
See `node_modules/@miden-sdk/miden-sdk/js/node/loader.js` for the
|
|
28
|
+
implementation.
|
|
29
|
+
|
|
30
|
+
## If loading failed
|
|
31
|
+
|
|
32
|
+
Do not try to require this package directly, and do not add it to your
|
|
33
|
+
`dependencies` to force it. A failure here is almost always one of:
|
|
34
|
+
|
|
35
|
+
- **Platform mismatch.** The `os` and `cpu` fields in this `package.json` are
|
|
36
|
+
what make npm skip non-matching platforms. A container built on one
|
|
37
|
+
architecture and run on another gets no binary. Install on the target
|
|
38
|
+
platform, or set `MIDEN_MODULE_PATH` to a binary you supply.
|
|
39
|
+
- **`--no-optional`, or a lockfile pinned on another platform.** Optional
|
|
40
|
+
dependencies are how this is delivered; skipping them skips the binary.
|
|
41
|
+
- **musl rather than glibc.** The Linux package links against glibc. Alpine and
|
|
42
|
+
other musl distributions are not covered by it.
|
|
43
|
+
|
|
44
|
+
In the browser none of this applies: the browser build runs WASM and never
|
|
45
|
+
loads a native module.
|
package/miden_client_web.node
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/miden_client_web.node
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 62611920 bytes
|
|
4
|
+
sha256: 7eb0a35dde07b295b29d70efabdd27397dfe668b5b8ae7f8d3cf67004c9d3536
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miden-sdk/node-darwin-x64",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "Miden Client SDK native module for macOS x64 (Intel)",
|
|
5
5
|
"os": [
|
|
6
6
|
"darwin"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"main": "miden_client_web.node",
|
|
12
12
|
"files": [
|
|
13
|
-
"miden_client_web.node"
|
|
13
|
+
"miden_client_web.node",
|
|
14
|
+
"AGENTS.md"
|
|
14
15
|
],
|
|
15
16
|
"license": "MIT",
|
|
16
17
|
"repository": {
|