@adea-ai/runtime-gateway-protocol 1.9.0 → 1.10.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/dist/acp-remote-sealed-channel.d.ts +35 -0
- package/dist/acp-remote-sealed-channel.d.ts.map +1 -0
- package/dist/acp-remote-sealed-channel.js +2 -0
- package/dist/acp-remote-sealed-channel.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { GatewayCommandEnvelope } from './protocol.js';
|
|
2
|
+
/**
|
|
3
|
+
* The gateway channel that carries ONE opaque sealed ACP command.
|
|
4
|
+
*
|
|
5
|
+
* A sealed ACP command is HPKE ciphertext bound to the device recipient key. The gateway relays
|
|
6
|
+
* it without being able to read it: it sees the route, the command identity and the timing, and
|
|
7
|
+
* never the prompt. The channel therefore hands the carrier command to the gateway's ordinary
|
|
8
|
+
* durable command path and resolves with the device's opaque sealed reply.
|
|
9
|
+
*
|
|
10
|
+
* Both sides of the seam depend on this package, so the contract is declared once and checked by
|
|
11
|
+
* the compiler on both ends: the controller wire consumes it, and the gateway channel adapter
|
|
12
|
+
* declares that it returns exactly this shape.
|
|
13
|
+
*/
|
|
14
|
+
export interface AcpRemoteSealedCarrierChannel {
|
|
15
|
+
/**
|
|
16
|
+
* The channel's CURRENT authenticated node/connection channel generation, or `undefined` when the
|
|
17
|
+
* device is not reachable on an authenticated channel. A wire refuses to send without one.
|
|
18
|
+
*/
|
|
19
|
+
readonly currentChannelGeneration: () => number | undefined;
|
|
20
|
+
/** Delivers one carrier command and resolves with the device's opaque sealed reply. */
|
|
21
|
+
readonly dispatchSealed: (input: {
|
|
22
|
+
readonly command: GatewayCommandEnvelope;
|
|
23
|
+
readonly signal?: AbortSignal;
|
|
24
|
+
}) => Promise<unknown>;
|
|
25
|
+
/**
|
|
26
|
+
* The inventory the gateway pushed on the authenticated channel, together with the channel
|
|
27
|
+
* generation it was pushed at. The controller compares that generation with the current one, so
|
|
28
|
+
* a stale push is denied instead of published.
|
|
29
|
+
*/
|
|
30
|
+
readonly pushedInventory: () => Promise<{
|
|
31
|
+
readonly inventory: unknown;
|
|
32
|
+
readonly channelGeneration: number;
|
|
33
|
+
}>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=acp-remote-sealed-channel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acp-remote-sealed-channel.d.ts","sourceRoot":"","sources":["../src/acp-remote-sealed-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAE3D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,QAAQ,CAAC,wBAAwB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAC3D,uFAAuF;IACvF,QAAQ,CAAC,cAAc,EAAE,CAAC,KAAK,EAAE;QAC/B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAA;QACxC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAC9B,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACtB;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,OAAO,CAAC;QACtC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;QAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;KACnC,CAAC,CAAA;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acp-remote-sealed-channel.js","sourceRoot":"","sources":["../src/acp-remote-sealed-channel.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export * from './protocol.js';
|
|
|
2
2
|
export * from './emulator.js';
|
|
3
3
|
export * from './fixtures.js';
|
|
4
4
|
export * from './authentication.js';
|
|
5
|
+
export * from './acp-remote-sealed-channel.js';
|
|
5
6
|
export declare const packageName = "runtime-gateway-protocol";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gCAAgC,CAAA;AAE9C,eAAO,MAAM,WAAW,6BAA6B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from './protocol.js';
|
|
|
2
2
|
export * from './emulator.js';
|
|
3
3
|
export * from './fixtures.js';
|
|
4
4
|
export * from './authentication.js';
|
|
5
|
+
export * from './acp-remote-sealed-channel.js';
|
|
5
6
|
export const packageName = 'runtime-gateway-protocol';
|
|
6
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,gCAAgC,CAAA;AAE9C,MAAM,CAAC,MAAM,WAAW,GAAG,0BAA0B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/runtime-gateway-protocol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Versioned wire protocol between the Control Plane and external runtimes: schemas, emulator, fixtures, and authentication.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test": "bun scripts/schema.mjs --check && bun test src"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@adea-ai/runtime-sdk": "^1.
|
|
51
|
+
"@adea-ai/runtime-sdk": "^1.17.1",
|
|
52
52
|
"zod": "4.6.5"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|