@agent-relay/core-bridge 17.2.1 → 18.1.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 CHANGED
@@ -132,11 +132,22 @@ The core stays authoritative. Rules a caller must know:
132
132
  - A service caller binds its connection first and then passes no caller:
133
133
 
134
134
  ```ts
135
- const credential = await readCallerCredential('/path/to/caller.json');
136
- await authenticate(client, credential); // spawn_callers.challenge + .authenticate
135
+ const descriptor = await readCallerDescriptor('/path/to/caller.json');
136
+ requireServiceCallerMethods(client);
137
+ await authenticate(client, descriptor.credential); // spawn_callers.challenge + .authenticate
137
138
  await spawnInvoke(client, { node_id, node_name, name, harness, task, directory, idempotency_key });
138
139
  ```
139
140
 
141
+ `readCallerDescriptor` requires schema `agent-relay-service-caller/2` and the
142
+ exact `challenge-hmac-sha256/v1` auth route, and refuses schema 1
143
+ static-secret files. `readCallerCredential` retains its 18.0 compatibility
144
+ behavior and still accepts them.
145
+ `authenticate` requires only `spawn_callers.challenge` and
146
+ `spawn_callers.authenticate` before it sends a challenge. Consumers that
147
+ need the complete service-caller lifecycle must call
148
+ `requireServiceCallerMethods(client)` to fail closed when any method is
149
+ absent.
150
+
140
151
  `authenticate` answers a single-use challenge with
141
152
  `HMAC-SHA256(SHA-256(secret), transcript)`. A connection binds once; three
142
153
  failed attempts lock it (`auth_locked`), so open a new connection.
@@ -150,6 +161,64 @@ The core stays authoritative. Rules a caller must know:
150
161
  - `spawn.status` fills in `agent_id`, `name` and `node_id` only for spawns made on
151
162
  this core.
152
163
 
164
+ ## Service-caller result inbox
165
+
166
+ After `authenticate` binds a connection, the service-caller helpers use the
167
+ connection as the caller and send no `caller_name` or `caller_secret`:
168
+
169
+ ```ts
170
+ const descriptor = await readCallerDescriptor('/path/to/caller.json');
171
+ await using client = await connectCore({ socket: descriptor.socket });
172
+ requireServiceCallerMethods(client);
173
+ await authenticate(client, descriptor.credential);
174
+ const identity = await serviceCallerIdentity(client);
175
+ assertServiceCallerIdentity(descriptor, identity);
176
+ const { iterator_id } = await serviceCallerInboxOpen(client, invocationId);
177
+ const { delivery } = await serviceCallerInboxNext(client, iterator_id);
178
+
179
+ if (delivery?.text !== undefined) {
180
+ await writeResultToJournal(delivery.text);
181
+ await serviceCallerInboxAck(client, delivery.item_id);
182
+ } else if (delivery?.failure) {
183
+ await writeFailureToJournal(delivery.failure);
184
+ await serviceCallerInboxFail(client, delivery.item_id);
185
+ }
186
+
187
+ await serviceCallerInboxClose(client, iterator_id);
188
+ await serviceCallerDisconnect(client);
189
+ ```
190
+
191
+ `serviceCallerInboxOpen` binds one iterator to one invocation. `inbox.next`
192
+ long-polls for at most 30 seconds; its helper gives the bridge call five extra
193
+ seconds by default and preserves an explicit call timeout or abort signal. Use
194
+ an independent authenticated connection for each concurrently waiting inbox,
195
+ because the core answers one connection's calls in order.
196
+
197
+ `readCallerDescriptor(path)` returns the exact validated schema-v2 handoff from
198
+ the same secure file read: its redacting credential, socket, publisher,
199
+ workspace and account identity, allowed harnesses and directories, ownership
200
+ rule, timestamps, Desktop version and exact inbox route. It rejects unknown
201
+ top-level or nested fields, a retired schema, a changed auth/inbox route,
202
+ relative socket or directory paths, malformed timestamps and duplicate scope
203
+ entries. The descriptor never contains the secret. `readCallerCredential`
204
+ remains as a convenience for consumers that need only challenge
205
+ authentication. Before spawning, use `assertServiceCallerIdentity` to compare
206
+ the authenticated publisher and workspace to the descriptor; the helper
207
+ returns no mismatched value in its error.
208
+
209
+ The settlement helpers hard-code the only metadata Desktop accepts:
210
+ `{"relayflows_result":"journaled"}` for ack and
211
+ `{"relayflows_result":"rejected"}` for fail. Journal the terminal result or
212
+ failure before settling it. An ack of a failure delivery is refused by the
213
+ core. Close every iterator before `serviceCallerDisconnect`; disconnect fails
214
+ while an iterator is still open. Closing the bridge connection also closes its
215
+ iterators and releases their unsettled delivery leases.
216
+
217
+ Every helper feature-detects its method, validates its input without echoing
218
+ values, and refuses malformed replies. Settlement replies must match the item,
219
+ action and terminal state requested; delivery replies must contain exactly one
220
+ of `text` or a typed failure.
221
+
153
222
  ## Versioning
154
223
 
155
224
  `BRIDGE_VERSION` is the wire contract. The core changes it only when something
package/dist/auth.d.ts ADDED
@@ -0,0 +1,218 @@
1
+ import { inspect } from 'node:util';
2
+ import type { CallOptions, CoreClient } from './client.js';
3
+ import { SERVICE_CALLER_DISCONNECT_METHOD, SERVICE_CALLER_INBOX_ACK_METHOD, SERVICE_CALLER_INBOX_CLOSE_METHOD, SERVICE_CALLER_INBOX_FAIL_METHOD, SERVICE_CALLER_INBOX_NEXT_METHOD, SERVICE_CALLER_INBOX_OPEN_METHOD } from './service-callers.js';
4
+ /** The transcript version byte, which is also the challenge `version`. */
5
+ export declare const CALLER_TRANSCRIPT_VERSION = 1;
6
+ /** The transcript's domain separation string. */
7
+ export declare const CALLER_TRANSCRIPT_DOMAIN = "agent-relay/service-caller/v1";
8
+ /** How long a challenge stays valid after it was issued, in milliseconds. */
9
+ export declare const CALLER_CHALLENGE_TTL_MS = 30000;
10
+ /** The `caller.json` `auth` value naming this transcript. */
11
+ export declare const CALLER_AUTH_SCHEME = "challenge-hmac-sha256/v1";
12
+ /** The exact challenge method named by a schema-v2 caller handoff. */
13
+ export declare const CALLER_CHALLENGE_METHOD = "spawn_callers.challenge";
14
+ /** The exact authenticate method named by a schema-v2 caller handoff. */
15
+ export declare const CALLER_AUTHENTICATE_METHOD = "spawn_callers.authenticate";
16
+ /**
17
+ * The `caller.json` schemas the credential-only reader accepts.
18
+ * @deprecated Schema 1 is retained for 18.0 API compatibility. New callers
19
+ * must use {@link CALLER_FILE_SCHEMA} and {@link readCallerDescriptor}.
20
+ */
21
+ export declare const CALLER_FILE_SCHEMAS: readonly ["agent-relay-service-caller/1", "agent-relay-service-caller/2"];
22
+ /** The strict schema required by the complete service-caller descriptor. */
23
+ export declare const CALLER_FILE_SCHEMA: "agent-relay-service-caller/2";
24
+ /** The feature methods a service-caller connection requires end to end. */
25
+ export declare const REQUIRED_SERVICE_CALLER_METHODS: readonly ["spawn_callers.challenge", "spawn_callers.authenticate", "spawn.targets", "spawn.invoke", "spawn.status", "spawn.release", "spawn_callers.identity", "spawn_callers.inbox.open", "spawn_callers.inbox.next", "spawn_callers.inbox.ack", "spawn_callers.inbox.fail", "spawn_callers.inbox.close", "spawn_callers.disconnect"];
26
+ /** The largest `caller.json` this reader opens, in bytes. */
27
+ export declare const MAX_CALLER_FILE_BYTES: number;
28
+ /** The exact schema-v2 authentication route Desktop writes. */
29
+ export interface CallerAuthRoute {
30
+ readonly scheme: typeof CALLER_AUTH_SCHEME;
31
+ readonly challenge: typeof CALLER_CHALLENGE_METHOD;
32
+ readonly authenticate: typeof CALLER_AUTHENTICATE_METHOD;
33
+ }
34
+ /** The Relaycast agent that publishes this service caller's results. */
35
+ export interface CallerFilePublisher {
36
+ readonly id: string;
37
+ readonly name: string;
38
+ }
39
+ /** The account and workspace scope covered by challenge authentication. */
40
+ export interface CallerFileWorkspace {
41
+ readonly site_url: string;
42
+ readonly base_url: string;
43
+ readonly workspace_id: string;
44
+ readonly relaycast_workspace_id: string;
45
+ }
46
+ export interface CallerFileAccount {
47
+ readonly user_id: string;
48
+ }
49
+ /** The exact schema-v2 result-inbox route Desktop writes. */
50
+ export interface CallerInboxRoute {
51
+ readonly transport: 'core-bridge';
52
+ readonly open: typeof SERVICE_CALLER_INBOX_OPEN_METHOD;
53
+ readonly next: typeof SERVICE_CALLER_INBOX_NEXT_METHOD;
54
+ readonly ack: typeof SERVICE_CALLER_INBOX_ACK_METHOD;
55
+ readonly fail: typeof SERVICE_CALLER_INBOX_FAIL_METHOD;
56
+ readonly close: typeof SERVICE_CALLER_INBOX_CLOSE_METHOD;
57
+ readonly disconnect: typeof SERVICE_CALLER_DISCONNECT_METHOD;
58
+ }
59
+ /**
60
+ * A validated schema-v2 caller handoff. It deliberately has no `secret`:
61
+ * only the redacting {@link credential} retains its derived key.
62
+ */
63
+ export interface CallerFileDescriptor {
64
+ readonly schema: typeof CALLER_FILE_SCHEMA;
65
+ readonly schemaVersion: 2;
66
+ readonly auth: CallerAuthRoute;
67
+ readonly callerId: string;
68
+ readonly callerName: string;
69
+ readonly publisher: CallerFilePublisher;
70
+ readonly workspace: CallerFileWorkspace;
71
+ readonly account: CallerFileAccount;
72
+ readonly credential: CallerCredential;
73
+ readonly createdAt: string;
74
+ readonly rotatedAt?: string;
75
+ readonly expiresAt: string;
76
+ readonly harnesses: readonly string[];
77
+ readonly directoryScope: readonly string[];
78
+ readonly ownsOnly: boolean;
79
+ readonly socket: string;
80
+ readonly inbox: CallerInboxRoute;
81
+ readonly desktopVersion: string;
82
+ }
83
+ /** The params of `spawn_callers.challenge`. */
84
+ export type CallerChallengeParams = {
85
+ /** The caller's registry id: `sc_` and 16 lowercase hex characters. */
86
+ caller_id: string;
87
+ };
88
+ /** The result of `spawn_callers.challenge`. */
89
+ export interface CallerChallenge {
90
+ /** Exactly 1: the transcript version byte. */
91
+ version: number;
92
+ /** `ch_` and 32 lowercase hex characters. */
93
+ challenge_id: string;
94
+ /** 32 random bytes in base64url without padding (43 characters). */
95
+ nonce: string;
96
+ /** Unix milliseconds on Desktop's clock. */
97
+ issued_at_ms: number;
98
+ /** `issued_at_ms + 30000`. */
99
+ expires_at_ms: number;
100
+ }
101
+ /** The params of `spawn_callers.authenticate`. */
102
+ export type CallerAuthenticateParams = {
103
+ /** The `challenge_id` of the challenge being answered. */
104
+ challenge_id: string;
105
+ /** The HMAC-SHA256 authenticator in base64url without padding (43 characters). */
106
+ authenticator: string;
107
+ };
108
+ /** The result of `spawn_callers.authenticate`: the connection is now bound. */
109
+ export interface CallerBound {
110
+ caller_id: string;
111
+ /** The caller's display name: 1 to 200 of `A-Z a-z 0-9 _ -`. */
112
+ caller_name: string;
113
+ /** The record's authority generation, from 1 to 2^53 - 1. */
114
+ authority_generation: number;
115
+ }
116
+ /** Every value the version 1 transcript covers. */
117
+ export interface CallerTranscriptInput {
118
+ challengeId: string;
119
+ /** The 32 raw nonce bytes. */
120
+ nonce: Uint8Array;
121
+ callerId: string;
122
+ siteUrl: string;
123
+ workspaceId: string;
124
+ userId: string;
125
+ issuedAtMs: number;
126
+ expiresAtMs: number;
127
+ }
128
+ /**
129
+ * Builds the exact version 1 transcript bytes: the version byte, then each
130
+ * field with a big-endian u16 length prefix.
131
+ * @param input - The challenge fields and the caller's own `caller.json` scope.
132
+ * @returns The transcript bytes the authenticator covers.
133
+ * @throws CoreBridgeError `invalid_params` when a value is outside its bound.
134
+ */
135
+ export declare function callerTranscript(input: CallerTranscriptInput): Buffer;
136
+ /**
137
+ * A caller's credential as read from `caller.json`. It holds the derived key,
138
+ * never the secret, and prints as `[redacted]`: it cannot be logged or
139
+ * serialised by accident.
140
+ */
141
+ export declare class CallerCredential {
142
+ #private;
143
+ /** The caller's registry id, which is sent as the challenge param. */
144
+ readonly callerId: string;
145
+ /** `workspace.site_url`, used only in the transcript. */
146
+ readonly siteUrl: string;
147
+ /** `workspace.workspace_id`, used only in the transcript. */
148
+ readonly workspaceId: string;
149
+ /** `account.user_id`, used only in the transcript. */
150
+ readonly userId: string;
151
+ private constructor();
152
+ /**
153
+ * Checks a parsed `caller.json` document and derives its key.
154
+ * @param document - The parsed `caller.json` contents.
155
+ * @returns The credential, holding `SHA-256(secret)` and not the secret.
156
+ * @throws CoreBridgeError `caller_file_invalid` when the document does not
157
+ * have the `caller.json` shape. The message never contains the secret.
158
+ */
159
+ static fromDocument(document: unknown): CallerCredential;
160
+ /**
161
+ * Computes the authenticator for one challenge.
162
+ * @param challenge - The challenge exactly as `spawn_callers.challenge` returned it.
163
+ * @returns The HMAC-SHA256 authenticator in base64url without padding.
164
+ * @throws CoreBridgeError `invalid_reply` when the challenge is malformed.
165
+ */
166
+ authenticatorFor(challenge: CallerChallenge): string;
167
+ /**
168
+ * Keeps the key out of JSON.
169
+ * @returns A placeholder.
170
+ */
171
+ toJSON(): string;
172
+ /**
173
+ * Keeps the key out of string conversion.
174
+ * @returns A placeholder.
175
+ */
176
+ toString(): string;
177
+ /**
178
+ * Keeps the key out of `console.log` and `util.inspect`.
179
+ * @returns A placeholder.
180
+ */
181
+ [inspect.custom](): string;
182
+ }
183
+ /**
184
+ * Refuses a core that cannot provide the complete service-caller lifecycle.
185
+ * @param client - A greeted bridge connection whose advertised methods are checked.
186
+ * @returns Nothing when every required service-caller method is available.
187
+ */
188
+ export declare function requireServiceCallerMethods(client: Pick<CoreClient, 'hello'>): void;
189
+ /**
190
+ * Binds a bridge connection to a service caller: one challenge and one
191
+ * authenticate. After it returns, `spawn.invoke`, `spawn.status` and
192
+ * `spawn.release` on this connection act as the caller and name no caller.
193
+ * Failures are the core's typed errors (`CoreRpcError`), for example
194
+ * `auth_failed`, `auth_locked`, `already_bound` or `challenge_outstanding`.
195
+ * @param client - A greeted connection that has not been bound yet.
196
+ * @param credential - The credential read from `caller.json`.
197
+ * @param options - Optional timeout and cancellation controls for each of
198
+ * the two calls; the default is the client's call timeout (15 seconds).
199
+ * @returns The bound caller.
200
+ */
201
+ export declare function authenticate(client: CoreClient, credential: CallerCredential, options?: CallOptions): Promise<CallerBound>;
202
+ /**
203
+ * Securely reads and validates the complete schema-v2 caller handoff.
204
+ * The returned descriptor contains no secret; {@link CallerFileDescriptor.credential}
205
+ * retains only its derived key and always prints as `[redacted]`.
206
+ * @param file - The absolute path of the schema-v2 `caller.json` handoff.
207
+ * @returns The validated descriptor and its redacting challenge credential.
208
+ */
209
+ export declare function readCallerDescriptor(file: string): Promise<CallerFileDescriptor>;
210
+ /**
211
+ * Securely reads `caller.json` and returns only its challenge credential.
212
+ * Prefer {@link readCallerDescriptor} when a caller also needs the socket,
213
+ * publisher, workspace, scope or inbox route from the same checked read.
214
+ * @param file - The absolute path of `caller.json`.
215
+ * @returns The credential, holding the derived key and never the secret.
216
+ */
217
+ export declare function readCallerCredential(file: string): Promise<CallerCredential>;
218
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","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