@rivus/gateway 0.23.0 → 0.24.0
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 +3 -3
- package/assets/audio-transcriber/THIRD_PARTY_NOTICES.md +1 -3
- package/assets/audio-transcriber/fetch-model.mjs +29 -21
- package/assets/audio-transcriber/npm-shrinkwrap.json +5 -63
- package/assets/audio-transcriber/package.json +1 -1
- package/assets/installation-policy.json +9 -4
- package/dist/bootstrap/feishu.js +3292 -3452
- package/dist/bootstrap/herdr-feishu.js +2 -2
- package/dist/chunks/dist.js +5063 -3744
- package/dist/chunks/herdr-feishu-runtime.js +7 -383
- package/dist/chunks/herdr-socket-client.js +496 -0
- package/dist/chunks/rivus-node-entrypoint.js +432 -88
- package/dist/chunks/{rivus-audio-process.js → superagent-worker-programs.js} +2118 -168
- package/dist/chunks/superagent-worker-wire.js +9 -2
- package/dist/index.js +1 -1
- package/dist/superagent.d.ts +149 -42
- package/package.json +12 -10
- package/dist/chunks/feishu-receive-message.js +0 -113
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ state stay in place; retries retain the original target and failures do not rest
|
|
|
15
15
|
The package ships the reviewed consumer dependency policy at `assets/installation-policy.json`.
|
|
16
16
|
`rivus check-config --load-plugins` imports, validates and registers Plugins and resolves Agent/Automation definitions
|
|
17
17
|
without constructing runtime stores, Endpoints or schedulers; ordinary config checks remain offline.
|
|
18
|
-
See [managed Home upgrades](../../docs/
|
|
18
|
+
See [managed Home upgrades](../../docs/guides/local-deployment.md#managed-home-upgrades).
|
|
19
19
|
|
|
20
20
|
The root exposes `createRivusPluginCatalog`, `resolveRivusAgentDefinition`, `RIVUS_PLUGIN_API_VERSION` and
|
|
21
21
|
`runRivusNodeEntrypoint`, plus nine plugin contracts. Catalog construction and resolution are implemented in Bootstrap.
|
|
@@ -25,9 +25,9 @@ published Bootstrap and MCP entrypoints for complete process graphs.
|
|
|
25
25
|
`@rivus/gateway/bootstrap/feishu` exports only `createRivusDeploymentAdapters` for manifest deployments.
|
|
26
26
|
`agents[].runtime` selects ACP or defaults to Pi; one Home may contain both. The deployment template is
|
|
27
27
|
`feishu-deployment.bootstrap.ts`. The Pi-specific entry, standalone daemon/template and HTTP status options are removed;
|
|
28
|
-
daemon CLI requires `--manifest`. See [local deployment](../../docs/
|
|
28
|
+
daemon CLI requires `--manifest`. See [local deployment](../../docs/guides/local-deployment.md#acp-agents).
|
|
29
29
|
|
|
30
|
-
Gateway installs ACP SDK 1.
|
|
30
|
+
Gateway installs ACP SDK 1.9.0, resolves the declared executable/environment, handles sender allowlists and Human
|
|
31
31
|
permission approvals, and supplies restart-safe provider-session bindings. Its loopback Host Tool bridge maps every
|
|
32
32
|
ACP call to the current Run and Runtime's shared invoker, grants, approvals and operation ledger. Calls without a Run
|
|
33
33
|
are denied. Pi-only Homes create no ACP process, bridge listener or ACP state directory.
|
|
@@ -27,9 +27,7 @@ under the MIT License.
|
|
|
27
27
|
| `opencc-js` 1.4.2 | MIT AND Apache-2.0 (code MIT; dictionary data generated from `opencc-data`, Apache-2.0) |
|
|
28
28
|
| `unbzip2-stream` 1.4.3, `through`, `buffer`, `base64-js` | MIT |
|
|
29
29
|
| `ieee754` | BSD-3-Clause |
|
|
30
|
-
| `tar`
|
|
31
|
-
| `minizlib` | MIT |
|
|
32
|
-
| `@isaacs/fs-minipass` | ISC |
|
|
30
|
+
| `tar` 8.0.5 | BlueOak-1.0.0 |
|
|
33
31
|
|
|
34
32
|
Each installed package carries its license text under `node_modules/<package>`.
|
|
35
33
|
|
|
@@ -16,7 +16,7 @@ import { createReadStream, createWriteStream } from "node:fs";
|
|
|
16
16
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
17
17
|
import { createRequire } from "node:module";
|
|
18
18
|
import { join, resolve } from "node:path";
|
|
19
|
-
import { Readable, Transform } from "node:stream";
|
|
19
|
+
import { PassThrough, Readable, Transform } from "node:stream";
|
|
20
20
|
import { pipeline } from "node:stream/promises";
|
|
21
21
|
|
|
22
22
|
import { extract } from "tar";
|
|
@@ -38,27 +38,35 @@ class IntegrityError extends Error {}
|
|
|
38
38
|
async function extractMembers(archive, directory, members) {
|
|
39
39
|
/** @type {Error | undefined} */
|
|
40
40
|
let mismatch;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
await pipeline(createReadStream(archive), bunzip2(), new PassThrough(), async (source) => {
|
|
42
|
+
// Tar stops at the archive end marker. Keep the pipeline iterator open until the decompressor finishes.
|
|
43
|
+
const chunks = source[Symbol.asyncIterator]();
|
|
44
|
+
const input = { [Symbol.asyncIterator]: () => ({ next: () => chunks.next() }) };
|
|
45
|
+
await extract({
|
|
46
|
+
input,
|
|
47
|
+
cwd: directory,
|
|
48
|
+
filter: (path, entry) => {
|
|
49
|
+
if (!Object.hasOwn(members, path)) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
if (entry.type !== "File" || entry.size !== members[path].size) {
|
|
53
|
+
mismatch ??= new Error(
|
|
54
|
+
`${path} is a ${entry.size}-byte ${entry.type}, not a ${members[path].size}-byte file`
|
|
55
|
+
);
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return true;
|
|
59
|
+
},
|
|
60
|
+
onEntry: (entry) => {
|
|
61
|
+
entry.path = members[entry.path].file;
|
|
62
|
+
},
|
|
63
|
+
preserveOwner: false,
|
|
64
|
+
strict: true
|
|
65
|
+
});
|
|
66
|
+
while (!(await chunks.next()).done) {
|
|
67
|
+
// Consume any padding through the decompressor's final integrity checks.
|
|
68
|
+
}
|
|
60
69
|
});
|
|
61
|
-
await pipeline(createReadStream(archive), bunzip2(), unpack);
|
|
62
70
|
if (mismatch) {
|
|
63
71
|
throw mismatch;
|
|
64
72
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"opencc-js": "1.4.2",
|
|
13
13
|
"sherpa-onnx": "1.13.8",
|
|
14
14
|
"sherpa-onnx-node": "1.13.8",
|
|
15
|
-
"tar": "
|
|
15
|
+
"tar": "8.0.5",
|
|
16
16
|
"unbzip2-stream": "1.4.3"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
@@ -22,18 +22,6 @@
|
|
|
22
22
|
"integrity": "sha512-WxXiHFmD9u/owrzempiDlBB1ZYqiLnm9s6aPc8AlFQalq2tKmqdmMr9GXOupDgzXtqnBipj8Un0gkIm7Sjf8mw==",
|
|
23
23
|
"license": "Apache-2.0"
|
|
24
24
|
},
|
|
25
|
-
"node_modules/@isaacs/fs-minipass": {
|
|
26
|
-
"version": "4.0.1",
|
|
27
|
-
"resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
|
|
28
|
-
"integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",
|
|
29
|
-
"license": "ISC",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"minipass": "^7.0.4"
|
|
32
|
-
},
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=18.0.0"
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
25
|
"node_modules/@wasm-audio-decoders/common": {
|
|
38
26
|
"version": "9.0.7",
|
|
39
27
|
"resolved": "https://registry.npmjs.org/@wasm-audio-decoders/common/-/common-9.0.7.tgz",
|
|
@@ -101,15 +89,6 @@
|
|
|
101
89
|
"ieee754": "^1.1.13"
|
|
102
90
|
}
|
|
103
91
|
},
|
|
104
|
-
"node_modules/chownr": {
|
|
105
|
-
"version": "3.0.0",
|
|
106
|
-
"resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",
|
|
107
|
-
"integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",
|
|
108
|
-
"license": "BlueOak-1.0.0",
|
|
109
|
-
"engines": {
|
|
110
|
-
"node": ">=18"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
92
|
"node_modules/codec-parser": {
|
|
114
93
|
"version": "2.5.0",
|
|
115
94
|
"resolved": "https://registry.npmjs.org/codec-parser/-/codec-parser-2.5.0.tgz",
|
|
@@ -136,27 +115,6 @@
|
|
|
136
115
|
],
|
|
137
116
|
"license": "BSD-3-Clause"
|
|
138
117
|
},
|
|
139
|
-
"node_modules/minipass": {
|
|
140
|
-
"version": "7.1.3",
|
|
141
|
-
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
|
|
142
|
-
"integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
|
|
143
|
-
"license": "BlueOak-1.0.0",
|
|
144
|
-
"engines": {
|
|
145
|
-
"node": ">=16 || 14 >=14.17"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"node_modules/minizlib": {
|
|
149
|
-
"version": "3.1.0",
|
|
150
|
-
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz",
|
|
151
|
-
"integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==",
|
|
152
|
-
"license": "MIT",
|
|
153
|
-
"dependencies": {
|
|
154
|
-
"minipass": "^7.1.2"
|
|
155
|
-
},
|
|
156
|
-
"engines": {
|
|
157
|
-
"node": ">= 18"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
118
|
"node_modules/ogg-opus-decoder": {
|
|
161
119
|
"version": "1.7.5",
|
|
162
120
|
"resolved": "https://registry.npmjs.org/ogg-opus-decoder/-/ogg-opus-decoder-1.7.5.tgz",
|
|
@@ -301,19 +259,12 @@
|
|
|
301
259
|
}
|
|
302
260
|
},
|
|
303
261
|
"node_modules/tar": {
|
|
304
|
-
"version": "
|
|
305
|
-
"resolved": "https://registry.npmjs.org/tar/-/tar-
|
|
306
|
-
"integrity": "sha512-
|
|
262
|
+
"version": "8.0.5",
|
|
263
|
+
"resolved": "https://registry.npmjs.org/tar/-/tar-8.0.5.tgz",
|
|
264
|
+
"integrity": "sha512-iYroSHv/iVs5Bfy7uXCZVTye64oecqEETP3jvxksDcJlf8E3hreHYyhT+Qu7b+JgniditLaQbk4ZujNAnPEX9w==",
|
|
307
265
|
"license": "BlueOak-1.0.0",
|
|
308
|
-
"dependencies": {
|
|
309
|
-
"@isaacs/fs-minipass": "^4.0.0",
|
|
310
|
-
"chownr": "^3.0.0",
|
|
311
|
-
"minipass": "^7.1.2",
|
|
312
|
-
"minizlib": "^3.1.0",
|
|
313
|
-
"yallist": "^5.0.0"
|
|
314
|
-
},
|
|
315
266
|
"engines": {
|
|
316
|
-
"node": ">=
|
|
267
|
+
"node": ">=22"
|
|
317
268
|
}
|
|
318
269
|
},
|
|
319
270
|
"node_modules/through": {
|
|
@@ -331,15 +282,6 @@
|
|
|
331
282
|
"buffer": "^5.2.1",
|
|
332
283
|
"through": "^2.3.8"
|
|
333
284
|
}
|
|
334
|
-
},
|
|
335
|
-
"node_modules/yallist": {
|
|
336
|
-
"version": "5.0.0",
|
|
337
|
-
"resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",
|
|
338
|
-
"integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",
|
|
339
|
-
"license": "BlueOak-1.0.0",
|
|
340
|
-
"engines": {
|
|
341
|
-
"node": ">=18"
|
|
342
|
-
}
|
|
343
285
|
}
|
|
344
286
|
}
|
|
345
287
|
}
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"stateCompatibility": "rivus-home-0.20",
|
|
4
4
|
"minimumSourceVersion": "0.20.0",
|
|
5
|
-
"pnpmVersion": "12.
|
|
5
|
+
"pnpmVersion": "12.22.0",
|
|
6
6
|
"overrides": {
|
|
7
|
-
"brace-expansion@>=5.0.0 <5.0.12": "5.0.
|
|
8
|
-
"undici@>=8.0.0 <8.12.
|
|
9
|
-
"follow-redirects@>=1.16.0 <1.16.2": "1.16.
|
|
7
|
+
"brace-expansion@>=5.0.0 <5.0.12": "5.0.13",
|
|
8
|
+
"undici@>=8.0.0 <8.12.4": "8.12.4",
|
|
9
|
+
"follow-redirects@>=1.16.0 <1.16.2": "1.16.3",
|
|
10
|
+
"cross-spawn@>=7.0.0 <7.1.0": "7.1.2",
|
|
11
|
+
"minimatch@>=11.0.0 <11.0.7": "11.0.10",
|
|
12
|
+
"qs@>=6.0.0 <6.16.1": "6.16.1",
|
|
13
|
+
"ws@>=8.0.0 <8.23.0": "8.23.1",
|
|
14
|
+
"@earendil-works/chord>ws": "8.23.1",
|
|
10
15
|
"@opentelemetry/api": "1.10.0",
|
|
11
16
|
"zod@^4.0.0": "4.6.7"
|
|
12
17
|
},
|