@adea-ai/runtime-gateway-protocol 1.17.2 → 1.17.4
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 +1 -1
- package/dist/content-key.js +2 -1
- package/dist/device-relay.js +2 -1
- package/dist/device-sync.js +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ End-to-end device relay envelopes and workspace content keys. A browser, phone
|
|
|
4
4
|
or device seals a payload to the target device with HPKE and signs it with
|
|
5
5
|
Ed25519; the relay stores and forwards envelopes it cannot read. Pure WebCrypto,
|
|
6
6
|
`@hpke` and Zod, so the same modules run in pi-host, the browser, the phone and
|
|
7
|
-
the relay worker
|
|
7
|
+
the relay worker, no transport, no credentials, no secrets.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
package/dist/content-key.js
CHANGED
|
@@ -3,7 +3,8 @@ import { DhkemX25519HkdfSha256 } from '@hpke/dhkem-x25519';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { canonicalJsonStringify } from '@adea-ai/contracts/canonical-json';
|
|
5
5
|
import { decodeBase64Url, encodeBase64Url, signRelayBytes, verifyRelayBytes, } from './device-relay.js';
|
|
6
|
-
import {
|
|
6
|
+
import { SyncAuthorKeyIdSchema } from '@adea-ai/contracts/device-sync';
|
|
7
|
+
import { TimestampSchema } from '@adea-ai/contracts/primitives';
|
|
7
8
|
export const CONTENT_KEY_BYTES = 32;
|
|
8
9
|
export const CONTENT_SEAL_VERSION = 1;
|
|
9
10
|
export const CONTENT_KEY_WRAP_VERSION = 1;
|
package/dist/device-relay.js
CHANGED
|
@@ -2,7 +2,8 @@ import { Aes128Gcm, CipherSuite, HkdfSha256 } from '@hpke/core';
|
|
|
2
2
|
import { DhkemX25519HkdfSha256 } from '@hpke/dhkem-x25519';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { canonicalJsonStringify } from '@adea-ai/contracts/canonical-json';
|
|
5
|
-
import {
|
|
5
|
+
import { SyncAuthorKeyIdSchema } from '@adea-ai/contracts/device-sync';
|
|
6
|
+
import { Sha256DigestSchema, TimestampSchema } from '@adea-ai/contracts/primitives';
|
|
6
7
|
export const RELAY_HPKE_SUITE = 'DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM';
|
|
7
8
|
export const MAX_RELAY_CIPHERTEXT_BYTES = 1024 * 1024;
|
|
8
9
|
export const MAX_RELAY_CLOCK_SKEW_MS = 5 * 60 * 1000;
|
package/dist/device-sync.js
CHANGED
|
@@ -3,7 +3,8 @@ import { canonicalJsonStringify } from '@adea-ai/contracts/canonical-json';
|
|
|
3
3
|
import { MAX_SYNC_ENTRY_BYTES, SignedSyncEntrySchema, SyncObjectIdSchema, SyncEntryIdSchema, } from '@adea-ai/contracts/device-sync';
|
|
4
4
|
import { ContentKeyError, ContentSealSchema, openContent, sealContent, } from './content-key.js';
|
|
5
5
|
import { MAX_RELAY_CLOCK_SKEW_MS, decodeBase64Url, encodeBase64Url, sha256, signRelayBytes, verifyRelayBytes, } from './device-relay.js';
|
|
6
|
-
import {
|
|
6
|
+
import { SyncAuthorKeyIdSchema } from '@adea-ai/contracts/device-sync';
|
|
7
|
+
import { Sha256DigestSchema, TimestampSchema } from '@adea-ai/contracts/primitives';
|
|
7
8
|
export { DeviceSyncErrorCodeSchema, MAX_SYNC_BATCH, MAX_SYNC_CIPHERTEXT_BYTES, MAX_SYNC_ENTRY_BYTES, MAX_SYNC_LOG_PAGE, MIN_SYNC_CIPHERTEXT_BYTES, SignedSyncEntrySchema, StoredSyncEntrySchema, SyncAppendRequestSchema, SyncAppendResponseSchema, SyncCommitResponseSchema, SyncDownloadRequestSchema, SyncDownloadResponseSchema, SyncEntryIdSchema, SyncLogPageSchema, SyncLogRequestSchema, SyncObjectIdSchema, SyncObjectRequestSchema, SyncReleaseResponseSchema, SyncUploadRequestSchema, SyncUploadResponseSchema, SyncUsageSchema, } from '@adea-ai/contracts/device-sync';
|
|
8
9
|
export const SYNC_BLOB_VERSION = 1;
|
|
9
10
|
export const SYNC_ENTRY_VERSION = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/runtime-gateway-protocol",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.4",
|
|
4
4
|
"description": "Device relay envelopes and workspace content keys shared by the Control Plane and Adea clients.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"test": "bun test src"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@adea-ai/contracts": "^5.0.
|
|
56
|
-
"@hpke/core": "1.
|
|
57
|
-
"@hpke/dhkem-x25519": "1.8.
|
|
55
|
+
"@adea-ai/contracts": "^5.0.4",
|
|
56
|
+
"@hpke/core": "1.10.1",
|
|
57
|
+
"@hpke/dhkem-x25519": "1.8.1",
|
|
58
58
|
"zod": "4.6.6"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|