@miao-ai/node 0.1.0 → 0.1.1
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/README.md +16 -9
- package/dist/binary.js +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ manages its process lifecycle, and exposes the full transport-independent
|
|
|
5
5
|
client API.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @miao-ai/node@0.1.
|
|
8
|
+
npm install @miao-ai/node@0.1.1
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
```js
|
|
@@ -19,21 +19,28 @@ try {
|
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Node.js 20 or newer is required. Version `0.1.
|
|
23
|
-
validated macOS arm64 and
|
|
24
|
-
follow after native validation. Runtime packages are optional dependencies
|
|
22
|
+
Node.js 20 or newer is required. Version `0.1.1` platform packages cover
|
|
23
|
+
validated macOS arm64, Windows x64, and Linux x64 hosts. macOS x64 and Linux
|
|
24
|
+
arm64 follow after native validation. Runtime packages are optional dependencies
|
|
25
25
|
selected by npm; do not install with `--omit=optional`.
|
|
26
26
|
|
|
27
|
-
On Windows x64,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
untrusted Apps in
|
|
27
|
+
On Windows x64, or on Linux hosts without usable bubblewrap isolation, only a
|
|
28
|
+
new Runtime data directory starts in disclosed `full-access` compatibility
|
|
29
|
+
mode. Existing settings are not overwritten, and explicit restricted modes
|
|
30
|
+
still fail closed. Do not run untrusted Apps in compatibility mode.
|
|
31
31
|
|
|
32
32
|
Secrets belong in `secrets` or the child environment, never in
|
|
33
33
|
`binaryArguments`. Runtime protocol output is reserved for stdout; diagnostics
|
|
34
34
|
are bounded, redacted, and delivered through stderr.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Before starting a real Agent, persist the active Provider and its
|
|
37
|
+
`api_key_env` name in the selected `dataDir/settings.json`, then inject the
|
|
38
|
+
matching value through `secrets`. Passing a secret alone does not select a
|
|
39
|
+
Provider or rewrite Settings. With no credential declaration the Runtime keeps
|
|
40
|
+
its offline management surface; a declared but missing environment variable
|
|
41
|
+
fails closed.
|
|
42
|
+
|
|
43
|
+
Runtime `0.22.1` and SDK `0.1.1` deliberately use independent SemVer.
|
|
37
44
|
The descriptor's protocol, schema, operations, and features determine
|
|
38
45
|
compatibility.
|
|
39
46
|
|
package/dist/binary.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createRequire } from "node:module";
|
|
|
6
6
|
import { delimiter, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { RUNTIME_PROTOCOL_VERSION } from "@miao-ai/protocol";
|
|
8
8
|
import { RuntimeBinaryNotFoundError } from "./errors.js";
|
|
9
|
-
const RUNTIME_PLATFORM_VERSION = "0.22.
|
|
9
|
+
const RUNTIME_PLATFORM_VERSION = "0.22.1";
|
|
10
10
|
const PLATFORM_PACKAGES = new Map([
|
|
11
11
|
[
|
|
12
12
|
"darwin-arm64",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miao-ai/node",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Node.js process, socket, and remote transports for Miao Runtime",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"miao",
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"prepack": "node ../../scripts/prepare-package.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@miao-ai/client": "0.1.
|
|
38
|
-
"@miao-ai/protocol": "0.1.
|
|
37
|
+
"@miao-ai/client": "0.1.1",
|
|
38
|
+
"@miao-ai/protocol": "0.1.1"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@miao-ai/runtime-darwin-arm64": "0.22.
|
|
42
|
-
"@miao-ai/runtime-
|
|
41
|
+
"@miao-ai/runtime-darwin-arm64": "0.22.1",
|
|
42
|
+
"@miao-ai/runtime-linux-x64": "0.22.1",
|
|
43
|
+
"@miao-ai/runtime-win32-x64": "0.22.1"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@types/node": "^22.0.0",
|