@sentropic/cluster-mesh 0.10.0 → 0.10.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/dist/messaging/index.d.ts +1 -0
- package/dist/messaging/index.d.ts.map +1 -1
- package/dist/messaging/index.js +1 -0
- package/dist/messaging/index.js.map +1 -1
- package/dist/messaging/message-client.d.ts +63 -0
- package/dist/messaging/message-client.d.ts.map +1 -0
- package/dist/messaging/message-client.js +112 -0
- package/dist/messaging/message-client.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ export * from './bounded-local-options.js';
|
|
|
3
3
|
export * from './delivery-contracts.js';
|
|
4
4
|
export * from './delivery-actuation-handoff.js';
|
|
5
5
|
export * from './handoff-contracts.js';
|
|
6
|
+
export * from './message-client.js';
|
|
6
7
|
export * from './message-contracts.js';
|
|
7
8
|
export * from './native-drain-contracts.js';
|
|
8
9
|
export * from './product-authorization.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
package/dist/messaging/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './bounded-local-options.js';
|
|
|
3
3
|
export * from './delivery-contracts.js';
|
|
4
4
|
export * from './delivery-actuation-handoff.js';
|
|
5
5
|
export * from './handoff-contracts.js';
|
|
6
|
+
export * from './message-client.js';
|
|
6
7
|
export * from './message-contracts.js';
|
|
7
8
|
export * from './native-drain-contracts.js';
|
|
8
9
|
export * from './product-authorization.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { CustodySigningPort, CustodyTokenIssuer } from '../runtime/custody-types.js';
|
|
2
|
+
import type { AckMessageResult, ClusterMeshMessagingPort } from './delivery-contracts.js';
|
|
3
|
+
import type { MeshMessage, MessageId, MessageJsonValue, MessagingProductContext, PutMessageResult } from './message-contracts.js';
|
|
4
|
+
export declare const AGENT_MESSAGE_CONTENT_TYPE = "application/vnd.sentropic.agent-message+json";
|
|
5
|
+
export type AgentMessageKind = 'wake' | 'notify' | 'text';
|
|
6
|
+
export interface SignedAgentMessageEnvelope {
|
|
7
|
+
readonly version: 'sentropic.cluster-mesh.agent-message/v1';
|
|
8
|
+
readonly senderPrincipalId: string;
|
|
9
|
+
readonly destination: {
|
|
10
|
+
readonly kind: 'mailbox';
|
|
11
|
+
readonly mailboxId: string;
|
|
12
|
+
};
|
|
13
|
+
readonly idempotencyKey: string;
|
|
14
|
+
readonly kind: AgentMessageKind;
|
|
15
|
+
readonly message: MessageJsonValue;
|
|
16
|
+
readonly issuer: CustodyTokenIssuer;
|
|
17
|
+
readonly evidence: {
|
|
18
|
+
readonly kind: 'detached-signature';
|
|
19
|
+
readonly canonicalization: 'sentropic-json-v1';
|
|
20
|
+
readonly signatureBase64Url: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface ReceivedAgentMessage extends MeshMessage {
|
|
24
|
+
readonly kind: AgentMessageKind;
|
|
25
|
+
readonly message: MessageJsonValue;
|
|
26
|
+
readonly envelope: SignedAgentMessageEnvelope;
|
|
27
|
+
}
|
|
28
|
+
export interface SendMessageInput {
|
|
29
|
+
readonly to: string;
|
|
30
|
+
readonly message: MessageJsonValue;
|
|
31
|
+
readonly kind?: AgentMessageKind;
|
|
32
|
+
}
|
|
33
|
+
export type SendMessageResult = {
|
|
34
|
+
readonly ok: true;
|
|
35
|
+
readonly messageId: MessageId;
|
|
36
|
+
} | {
|
|
37
|
+
readonly ok: false;
|
|
38
|
+
readonly messageId: null;
|
|
39
|
+
readonly reason: Extract<PutMessageResult, {
|
|
40
|
+
ok: false;
|
|
41
|
+
}>['reason'];
|
|
42
|
+
};
|
|
43
|
+
export interface ClusterMeshMessageClientOptions {
|
|
44
|
+
readonly store: ClusterMeshMessagingPort;
|
|
45
|
+
readonly context: MessagingProductContext;
|
|
46
|
+
readonly signer: CustodySigningPort;
|
|
47
|
+
readonly issuer: CustodyTokenIssuer;
|
|
48
|
+
readonly idempotencyKey?: () => string;
|
|
49
|
+
readonly visibilityTimeoutMs?: number;
|
|
50
|
+
}
|
|
51
|
+
export declare function messageEnvelopeSignaturePayload(envelope: SignedAgentMessageEnvelope): Uint8Array;
|
|
52
|
+
export declare class ClusterMeshMessageClient {
|
|
53
|
+
private readonly options;
|
|
54
|
+
private readonly deliveries;
|
|
55
|
+
private readonly createIdempotencyKey;
|
|
56
|
+
constructor(options: ClusterMeshMessageClientOptions);
|
|
57
|
+
sendMessage(input: SendMessageInput): Promise<SendMessageResult>;
|
|
58
|
+
receiveMessages(input: {
|
|
59
|
+
readonly instance: string;
|
|
60
|
+
}): Promise<ReceivedAgentMessage[]>;
|
|
61
|
+
ack(messageId: MessageId): Promise<AckMessageResult>;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=message-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-client.d.ts","sourceRoot":"","sources":["../../src/messaging/message-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,KAAK,EACV,WAAW,EAAE,SAAS,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gBAAgB,EACpF,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,0BAA0B,iDAAiD,CAAC;AACzF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,yCAAyC,CAAC;IAC5D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/E,QAAQ,CAAC,cAAc,EAAE,MAA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AAM,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,MAAM,CAAC;IACvC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,0BAA0B,GACnC,UAAU,CAGZ;AA6BD,qBAAa,wBAAwB;IAIvB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAHpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiE;IAC5F,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAe;gBAEvB,OAAO,EAAE,+BAA+B;IAI/D,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAgChE,eAAe,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAyBtF,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAW3D"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { canonicalCustodyJson } from '../runtime/custody-wire.js';
|
|
3
|
+
export const AGENT_MESSAGE_CONTENT_TYPE = 'application/vnd.sentropic.agent-message+json';
|
|
4
|
+
export function messageEnvelopeSignaturePayload(envelope) {
|
|
5
|
+
const { signatureBase64Url: _signature, ...evidence } = envelope.evidence;
|
|
6
|
+
return new TextEncoder().encode(canonicalCustodyJson({ ...envelope, evidence }));
|
|
7
|
+
}
|
|
8
|
+
const isRecord = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
9
|
+
const isText = (value) => typeof value === 'string' && value.length > 0;
|
|
10
|
+
const kinds = new Set(['wake', 'notify', 'text']);
|
|
11
|
+
function decodeEnvelope(message) {
|
|
12
|
+
const value = message.payload.value;
|
|
13
|
+
if (message.payload.contentType !== AGENT_MESSAGE_CONTENT_TYPE || !isRecord(value)
|
|
14
|
+
|| value.version !== 'sentropic.cluster-mesh.agent-message/v1'
|
|
15
|
+
|| !isText(value.senderPrincipalId) || !isRecord(value.destination)
|
|
16
|
+
|| value.destination.kind !== 'mailbox' || !isText(value.destination.mailboxId)
|
|
17
|
+
|| !isText(value.idempotencyKey) || !kinds.has(value.kind)
|
|
18
|
+
|| !('message' in value) || !isRecord(value.issuer) || !isText(value.issuer.issuerId)
|
|
19
|
+
|| !isText(value.issuer.keyId) || value.issuer.algorithm !== 'EdDSA'
|
|
20
|
+
|| value.issuer.curve !== 'Ed25519' || !isRecord(value.evidence)
|
|
21
|
+
|| value.evidence.kind !== 'detached-signature'
|
|
22
|
+
|| value.evidence.canonicalization !== 'sentropic-json-v1'
|
|
23
|
+
|| !isText(value.evidence.signatureBase64Url)
|
|
24
|
+
|| value.senderPrincipalId !== message.producerPrincipalId
|
|
25
|
+
|| value.destination.mailboxId !== (message.destination.kind === 'mailbox'
|
|
26
|
+
? message.destination.mailboxId : undefined)
|
|
27
|
+
|| value.idempotencyKey !== message.idempotencyKey) {
|
|
28
|
+
throw new TypeError('invalid signed agent message envelope');
|
|
29
|
+
}
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
32
|
+
export class ClusterMeshMessageClient {
|
|
33
|
+
options;
|
|
34
|
+
deliveries = new Map();
|
|
35
|
+
createIdempotencyKey;
|
|
36
|
+
constructor(options) {
|
|
37
|
+
this.options = options;
|
|
38
|
+
this.createIdempotencyKey = options.idempotencyKey ?? randomUUID;
|
|
39
|
+
}
|
|
40
|
+
async sendMessage(input) {
|
|
41
|
+
const idempotencyKey = this.createIdempotencyKey();
|
|
42
|
+
const unsigned = {
|
|
43
|
+
version: 'sentropic.cluster-mesh.agent-message/v1',
|
|
44
|
+
senderPrincipalId: this.options.context.principalId,
|
|
45
|
+
destination: { kind: 'mailbox', mailboxId: input.to }, idempotencyKey,
|
|
46
|
+
kind: input.kind ?? 'notify', message: input.message, issuer: { ...this.options.issuer },
|
|
47
|
+
evidence: {
|
|
48
|
+
kind: 'detached-signature', canonicalization: 'sentropic-json-v1',
|
|
49
|
+
signatureBase64Url: 'unsigned',
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
try {
|
|
53
|
+
const signatureBase64Url = await this.options.signer.signCanonical(messageEnvelopeSignaturePayload(unsigned));
|
|
54
|
+
if (!signatureBase64Url)
|
|
55
|
+
return { ok: false, messageId: null, reason: 'unavailable' };
|
|
56
|
+
const envelope = {
|
|
57
|
+
...unsigned, evidence: { ...unsigned.evidence, signatureBase64Url },
|
|
58
|
+
};
|
|
59
|
+
const result = await this.options.store.put({
|
|
60
|
+
context: this.options.context, destination: unsigned.destination, idempotencyKey,
|
|
61
|
+
payload: { contentType: AGENT_MESSAGE_CONTENT_TYPE,
|
|
62
|
+
value: envelope },
|
|
63
|
+
});
|
|
64
|
+
return result.ok ? { ok: true, messageId: result.messageId }
|
|
65
|
+
: { ok: false, messageId: null, reason: result.reason };
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
return { ok: false, messageId: null, reason: 'unavailable' };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async receiveMessages(input) {
|
|
72
|
+
const messages = [];
|
|
73
|
+
while (true) {
|
|
74
|
+
const result = await this.options.store.pop({
|
|
75
|
+
context: this.options.context, mailboxId: input.instance,
|
|
76
|
+
visibilityTimeoutMs: this.options.visibilityTimeoutMs,
|
|
77
|
+
});
|
|
78
|
+
if (!result.ok)
|
|
79
|
+
throw new Error(`message receive failed: ${result.reason}`);
|
|
80
|
+
if (result.outcome === 'empty')
|
|
81
|
+
return messages;
|
|
82
|
+
const { delivery } = result;
|
|
83
|
+
let envelope;
|
|
84
|
+
try {
|
|
85
|
+
envelope = decodeEnvelope(delivery.message);
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
// Leave foreign or malformed messages unacknowledged until their lease expires.
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
this.deliveries.set(delivery.message.messageId, {
|
|
92
|
+
deliveryId: delivery.deliveryId, leaseId: delivery.lease.leaseId,
|
|
93
|
+
});
|
|
94
|
+
messages.push({ ...delivery.message, kind: envelope.kind,
|
|
95
|
+
message: envelope.message, envelope });
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
async ack(messageId) {
|
|
99
|
+
const delivery = this.deliveries.get(messageId);
|
|
100
|
+
if (!delivery)
|
|
101
|
+
return { ok: false, reason: 'delivery_not_found' };
|
|
102
|
+
const result = await this.options.store.ack({
|
|
103
|
+
context: this.options.context, deliveryId: delivery.deliveryId,
|
|
104
|
+
leaseId: delivery.leaseId, ackIdempotencyKey: `agent-message/v1:${messageId}`,
|
|
105
|
+
disposition: { kind: 'processed' },
|
|
106
|
+
});
|
|
107
|
+
if (result.ok)
|
|
108
|
+
this.deliveries.delete(messageId);
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=message-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-client.js","sourceRoot":"","sources":["../../src/messaging/message-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAMlE,MAAM,CAAC,MAAM,0BAA0B,GAAG,8CAA8C,CAAC;AA+CzF,MAAM,UAAU,+BAA+B,CAC7C,QAAoC;IAEpC,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAC1E,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,GAAG,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE,CACpE,KAAK,KAAK,IAAI,IAA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