@agentropy/runtime 0.0.0-stage → 0.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.
Files changed (85) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +39 -2
  3. package/dist/a2a-client.d.ts +111 -0
  4. package/dist/a2a-client.js +386 -0
  5. package/dist/a2a-history.d.ts +27 -0
  6. package/dist/a2a-history.js +67 -0
  7. package/dist/a2a-http.d.ts +46 -0
  8. package/dist/a2a-http.js +183 -0
  9. package/dist/a2a-protocol.d.ts +77 -0
  10. package/dist/a2a-protocol.js +148 -0
  11. package/dist/a2a-push-receiver.d.ts +24 -0
  12. package/dist/a2a-push-receiver.js +161 -0
  13. package/dist/a2a-push.d.ts +85 -0
  14. package/dist/a2a-push.js +385 -0
  15. package/dist/a2a-server.d.ts +82 -0
  16. package/dist/a2a-server.js +523 -0
  17. package/dist/a2a-sse.d.ts +5 -0
  18. package/dist/a2a-sse.js +36 -0
  19. package/dist/a2a.d.ts +41 -0
  20. package/dist/a2a.js +40 -0
  21. package/dist/app.d.ts +256 -0
  22. package/dist/app.js +541 -0
  23. package/dist/audit.d.ts +229 -0
  24. package/dist/audit.js +718 -0
  25. package/dist/bounded-body.d.ts +32 -0
  26. package/dist/bounded-body.js +124 -0
  27. package/dist/communication.d.ts +62 -0
  28. package/dist/communication.js +142 -0
  29. package/dist/compaction.d.ts +24 -0
  30. package/dist/compaction.js +202 -0
  31. package/dist/federation.d.ts +108 -0
  32. package/dist/federation.js +241 -0
  33. package/dist/http-path.d.ts +7 -0
  34. package/dist/http-path.js +14 -0
  35. package/dist/human-actions.d.ts +62 -0
  36. package/dist/human-actions.js +359 -0
  37. package/dist/implementation.d.ts +47 -0
  38. package/dist/implementation.js +138 -0
  39. package/dist/inbox.d.ts +101 -0
  40. package/dist/inbox.js +389 -0
  41. package/dist/index.d.ts +32 -0
  42. package/dist/index.js +32 -0
  43. package/dist/ingress.d.ts +35 -0
  44. package/dist/ingress.js +86 -0
  45. package/dist/lifecycle.d.ts +45 -0
  46. package/dist/lifecycle.js +57 -0
  47. package/dist/limits.d.ts +43 -0
  48. package/dist/limits.js +71 -0
  49. package/dist/mcp.d.ts +111 -0
  50. package/dist/mcp.js +308 -0
  51. package/dist/memory.d.ts +25 -0
  52. package/dist/memory.js +134 -0
  53. package/dist/model-routing.d.ts +66 -0
  54. package/dist/model-routing.js +80 -0
  55. package/dist/otel.d.ts +60 -0
  56. package/dist/otel.js +72 -0
  57. package/dist/outbox.d.ts +116 -0
  58. package/dist/outbox.js +327 -0
  59. package/dist/policy-cache.d.ts +69 -0
  60. package/dist/policy-cache.js +178 -0
  61. package/dist/priority.d.ts +27 -0
  62. package/dist/priority.js +28 -0
  63. package/dist/quotas.d.ts +19 -0
  64. package/dist/quotas.js +47 -0
  65. package/dist/reasoning.d.ts +54 -0
  66. package/dist/reasoning.js +307 -0
  67. package/dist/registry.d.ts +101 -0
  68. package/dist/registry.js +369 -0
  69. package/dist/remote.d.ts +130 -0
  70. package/dist/remote.js +473 -0
  71. package/dist/runtime.d.ts +167 -0
  72. package/dist/runtime.js +1035 -0
  73. package/dist/skills.d.ts +86 -0
  74. package/dist/skills.js +376 -0
  75. package/dist/task-service.d.ts +239 -0
  76. package/dist/task-service.js +790 -0
  77. package/dist/tools.d.ts +140 -0
  78. package/dist/tools.js +476 -0
  79. package/dist/wake-index.d.ts +9 -0
  80. package/dist/wake-index.js +11 -0
  81. package/dist/wakeups.d.ts +142 -0
  82. package/dist/wakeups.js +501 -0
  83. package/dist/workflow.d.ts +36 -0
  84. package/dist/workflow.js +101 -0
  85. package/package.json +48 -3
@@ -0,0 +1,385 @@
1
+ /**
2
+ * A2A push notifications (FEAT-029.2): the four TaskPushNotificationConfig methods and best-effort delivery of
3
+ * every `StreamResponse` update to allow-listed webhook URLs. Configs are scoped to tenant + creating principal +
4
+ * task. They live in memory, or in a store (FEAT-034.3): then they survive a restart, `resume()` restarts their
5
+ * watchers and catches a webhook up on a state change it missed, and webhook secrets are stored only sealed.
6
+ * Deleting a config ends its watcher and releases its task subscription at once.
7
+ */
8
+ import { AgentropyError, } from '@agentropy/core';
9
+ import { randomUUID } from 'node:crypto';
10
+ import { A2A_PROTOCOL_VERSION, TERMINAL_A2A, TO_A2A, } from './a2a-protocol.js';
11
+ /** `ListTaskPushNotificationConfigs` page size: the default and the maximum (as `ListTasks`). */
12
+ const PUSH_LIST_DEFAULT = 50;
13
+ const PUSH_LIST_MAX = 100;
14
+ function memoryRepo() {
15
+ const m = new Map();
16
+ return {
17
+ get: async (k) => m.get(k),
18
+ list: async (c, taskId) => [...m.values()].filter((r) => r.tenantId === c.tenantId &&
19
+ r.creator.id === c.id &&
20
+ r.taskId === taskId),
21
+ all: async () => [...m.entries()],
22
+ put: async (k, r) => void m.set(k, r),
23
+ delete: async (k) => m.delete(k),
24
+ mark: async (k, state) => {
25
+ const r = m.get(k);
26
+ if (r)
27
+ r.lastState = state;
28
+ },
29
+ };
30
+ }
31
+ function storeRepo(store, sealer) {
32
+ const open = async (r) => {
33
+ const c = r.config;
34
+ if (!c.token && !c.authentication?.credentials)
35
+ return r;
36
+ if (!sealer)
37
+ throw new AgentropyError('InvalidConfiguration', 'Stored push config has secrets but no sealer is configured');
38
+ return {
39
+ ...r,
40
+ config: {
41
+ ...c,
42
+ ...(c.token ? { token: await sealer.open(c.token) } : {}),
43
+ ...(c.authentication
44
+ ? {
45
+ authentication: {
46
+ scheme: c.authentication.scheme,
47
+ ...(c.authentication.credentials
48
+ ? {
49
+ credentials: await sealer.open(c.authentication.credentials),
50
+ }
51
+ : {}),
52
+ },
53
+ }
54
+ : {}),
55
+ },
56
+ };
57
+ };
58
+ const sealed = async (r) => {
59
+ const c = r.config;
60
+ if (!c.token && !c.authentication?.credentials)
61
+ return r;
62
+ if (!sealer)
63
+ throw new AgentropyError('UnsupportedOperation', 'Webhook token and credentials need a sealer to be stored', { details: { reason: 'sealer' } });
64
+ return {
65
+ ...r,
66
+ config: {
67
+ ...c,
68
+ ...(c.token ? { token: await sealer.seal(c.token) } : {}),
69
+ ...(c.authentication
70
+ ? {
71
+ authentication: {
72
+ scheme: c.authentication.scheme,
73
+ ...(c.authentication.credentials
74
+ ? {
75
+ credentials: await sealer.seal(c.authentication.credentials),
76
+ }
77
+ : {}),
78
+ },
79
+ }
80
+ : {}),
81
+ },
82
+ };
83
+ };
84
+ return {
85
+ get: async (k) => {
86
+ const d = await store.transaction((tx) => tx.get('pushConfigs', k));
87
+ return d ? open(d.value) : undefined;
88
+ },
89
+ list: async (c, taskId) => {
90
+ const docs = await store.transaction((tx) => tx.find('pushConfigs', {
91
+ where: { tenantId: c.tenantId, taskId },
92
+ }));
93
+ return Promise.all(docs
94
+ .filter((d) => d.value.creator.id === c.id)
95
+ .map((d) => open(d.value)));
96
+ },
97
+ all: async () => {
98
+ const docs = await store.transaction((tx) => tx.find('pushConfigs', {}));
99
+ return Promise.all(docs.map(async (d) => [d.id, await open(d.value)]));
100
+ },
101
+ put: async (k, r) => {
102
+ const value = await sealed(r);
103
+ await store.transaction(async (tx) => {
104
+ const cur = await tx.get('pushConfigs', k);
105
+ if (cur)
106
+ await tx.update('pushConfigs', k, cur.revision, value);
107
+ else
108
+ await tx.insert('pushConfigs', k, value);
109
+ });
110
+ },
111
+ delete: (k) => store.transaction(async (tx) => {
112
+ const cur = await tx.get('pushConfigs', k);
113
+ if (!cur)
114
+ return false;
115
+ await tx.remove('pushConfigs', k, cur.revision);
116
+ return true;
117
+ }),
118
+ mark: (k, state) => store.transaction(async (tx) => {
119
+ const cur = await tx.get('pushConfigs', k);
120
+ if (cur && cur.value.lastState !== state)
121
+ await tx.update('pushConfigs', k, cur.revision, {
122
+ ...cur.value,
123
+ lastState: state,
124
+ });
125
+ }),
126
+ };
127
+ }
128
+ /** The task state a stream frame reports, if it reports one. */
129
+ function stateOf(result) {
130
+ const r = result;
131
+ return r?.task?.status?.state ?? r?.statusUpdate?.status?.state;
132
+ }
133
+ /** Push config methods and watchers for one server. */
134
+ export function createPushNotifications(target, options, follow) {
135
+ const repo = options?.store
136
+ ? storeRepo(options.store, options.sealer)
137
+ : memoryRepo();
138
+ const watchers = new Map();
139
+ const pushKey = (c, taskId, id) => JSON.stringify([c.tenantId, c.id, taskId, id]);
140
+ const requirePush = () => {
141
+ if (!options)
142
+ throw new AgentropyError('UnsupportedOperation', 'Push notifications are not supported', { details: { a2a: -32003 } });
143
+ return options;
144
+ };
145
+ const HEADER_TOKEN = /^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/;
146
+ const noCtl = (v, field) => {
147
+ if (v === undefined || v === '')
148
+ return undefined;
149
+ if (typeof v !== 'string' || /[\r\n\0]/.test(v))
150
+ throw new AgentropyError('SchemaViolation', `Invalid ${field}`, {
151
+ details: { reason: field },
152
+ });
153
+ return v;
154
+ };
155
+ const pushUrl = (push, raw) => {
156
+ let u;
157
+ try {
158
+ u = new URL(String(raw));
159
+ }
160
+ catch {
161
+ throw new AgentropyError('SchemaViolation', 'Invalid push URL', {
162
+ details: { reason: 'url' },
163
+ });
164
+ }
165
+ const schemeOk = u.protocol === 'https:' || (u.protocol === 'http:' && push.allowHttp);
166
+ if (!schemeOk || u.username || u.password || !push.allowUrl(u))
167
+ throw new AgentropyError('PermissionDenied', 'Push URL not allowed', {
168
+ details: { reason: 'pushUrl' },
169
+ });
170
+ return u.href;
171
+ };
172
+ const view = (c) => ({
173
+ ...c,
174
+ ...(c.authentication
175
+ ? { authentication: { scheme: c.authentication.scheme } }
176
+ : {}),
177
+ });
178
+ const deliver = async (push, c, payload) => {
179
+ const headers = {
180
+ 'content-type': 'application/json',
181
+ 'a2a-version': A2A_PROTOCOL_VERSION,
182
+ };
183
+ if (c.token)
184
+ headers['x-a2a-notification-token'] = c.token;
185
+ if (c.authentication)
186
+ headers.authorization =
187
+ `${c.authentication.scheme} ${c.authentication.credentials ?? ''}`.trim();
188
+ const send = push.fetch ?? ((u, i) => fetch(u, i));
189
+ const attempts = Math.max(1, push.maxAttempts ?? 3);
190
+ let status;
191
+ for (let attempt = 1; attempt <= attempts; attempt++) {
192
+ try {
193
+ const res = await send(c.url, {
194
+ method: 'POST',
195
+ headers,
196
+ body: JSON.stringify(payload),
197
+ redirect: 'manual',
198
+ signal: AbortSignal.timeout(push.timeoutMs ?? 10_000),
199
+ });
200
+ status = res.status;
201
+ // The reply body is not read: release the connection.
202
+ void res.body?.cancel().catch(() => undefined);
203
+ if (status >= 200 && status < 300)
204
+ return true;
205
+ if (status < 500 && status !== 429)
206
+ break; // the receiver refused it; retrying will not help
207
+ }
208
+ catch {
209
+ status = undefined;
210
+ }
211
+ if (attempt < attempts)
212
+ await new Promise((r) => setTimeout(r, (push.retryMs ?? 200) * 2 ** (attempt - 1)));
213
+ }
214
+ push.onDeliveryError?.({
215
+ taskId: c.taskId,
216
+ configId: c.id,
217
+ ...(status !== undefined ? { status } : {}),
218
+ });
219
+ return false;
220
+ };
221
+ /**
222
+ * Follows the task as its creator and posts every update to the config's URL until terminal or deleted. The
223
+ * first frame (the task's current state) is posted only when it differs from the last state delivered, which
224
+ * after a restart catches the webhook up on what it missed.
225
+ */
226
+ const watch = (push, key, first, creator, lastState) => {
227
+ const stop = new AbortController();
228
+ const run = (async () => {
229
+ let isFirst = true;
230
+ for await (const f of follow(null, first, creator, undefined, stop.signal)) {
231
+ const state = stateOf(f.result);
232
+ if (isFirst) {
233
+ isFirst = false;
234
+ if (state === lastState)
235
+ continue;
236
+ }
237
+ const r = await repo.get(key);
238
+ if (!r || f.error || stop.signal.aborted)
239
+ return; // deleted, or the creator lost access to the task
240
+ if ((await deliver(push, r.config, f.result)) && state)
241
+ await repo.mark(key, state).catch(() => undefined);
242
+ }
243
+ })()
244
+ .catch(() => undefined)
245
+ .finally(() => {
246
+ if (watchers.get(key)?.run === run)
247
+ watchers.delete(key);
248
+ });
249
+ watchers.set(key, { run, stop });
250
+ };
251
+ const pushMethod = async (method, p, caller) => {
252
+ const push = requirePush();
253
+ const taskId = p['taskId'];
254
+ if (typeof taskId !== 'string' || !taskId)
255
+ throw new AgentropyError('SchemaViolation', 'taskId required');
256
+ // Every config method re-checks that the caller can still see the task (the AgentService PEP).
257
+ const snap = await target.getTask(taskId, caller);
258
+ const id = typeof p['id'] === 'string' ? p['id'] : undefined;
259
+ switch (method) {
260
+ case 'CreateTaskPushNotificationConfig': {
261
+ if (TERMINAL_A2A.has(TO_A2A[snap.status]))
262
+ throw new AgentropyError('UnsupportedOperation', 'Task is in a terminal state');
263
+ const url = pushUrl(push, p['url']);
264
+ const token = noCtl(p['token'], 'token');
265
+ const a = p['authentication'];
266
+ if (a !== undefined &&
267
+ (typeof a.scheme !== 'string' || !HEADER_TOKEN.test(a.scheme)))
268
+ throw new AgentropyError('SchemaViolation', 'Invalid scheme', {
269
+ details: { reason: 'authentication' },
270
+ });
271
+ const credentials = a ? noCtl(a.credentials, 'credentials') : undefined;
272
+ const config = {
273
+ id: id || randomUUID(),
274
+ taskId,
275
+ url,
276
+ ...(token ? { token } : {}),
277
+ ...(a
278
+ ? {
279
+ authentication: {
280
+ scheme: a.scheme,
281
+ ...(credentials ? { credentials } : {}),
282
+ },
283
+ }
284
+ : {}),
285
+ };
286
+ const key = pushKey(caller, taskId, config.id);
287
+ const existing = await repo.get(key);
288
+ if (!existing &&
289
+ (await repo.list(caller, taskId)).length >=
290
+ (push.maxConfigsPerTask ?? 10))
291
+ throw new AgentropyError('QuotaExceeded', 'Too many push configs for this task');
292
+ const lastState = existing?.lastState ?? TO_A2A[snap.status];
293
+ // Same ID replaces the config; the running watcher reads the new one.
294
+ await repo.put(key, {
295
+ tenantId: caller.tenantId,
296
+ taskId,
297
+ creator: caller,
298
+ config,
299
+ lastState,
300
+ });
301
+ if (!watchers.has(key))
302
+ watch(push, key, snap, caller, lastState);
303
+ return view(config);
304
+ }
305
+ case 'GetTaskPushNotificationConfig': {
306
+ const r = id ? await repo.get(pushKey(caller, taskId, id)) : undefined;
307
+ if (!r)
308
+ throw new AgentropyError('NotFound', 'Push config not found');
309
+ return view(r.config);
310
+ }
311
+ case 'ListTaskPushNotificationConfigs': {
312
+ // FEAT-044.1: ordered by config ID, a bounded page, and an opaque cursor that only holds the last ID returned
313
+ // (so a config deleted or added between pages never repeats or skips one after the cursor).
314
+ const size = p['pageSize'] === undefined ? PUSH_LIST_DEFAULT : p['pageSize'];
315
+ if (typeof size !== 'number' ||
316
+ !Number.isInteger(size) ||
317
+ size < 1 ||
318
+ size > PUSH_LIST_MAX)
319
+ throw new AgentropyError('SchemaViolation', `pageSize must be an integer from 1 to ${PUSH_LIST_MAX}`);
320
+ let after;
321
+ const token = p['pageToken'];
322
+ if (token !== undefined && token !== '') {
323
+ try {
324
+ const v = JSON.parse(Buffer.from(String(token), 'base64url').toString('utf8'));
325
+ if (!Array.isArray(v) || v.length !== 1 || typeof v[0] !== 'string')
326
+ throw new Error('shape');
327
+ after = v[0];
328
+ }
329
+ catch {
330
+ throw new AgentropyError('SchemaViolation', 'Invalid pageToken');
331
+ }
332
+ }
333
+ const all = (await repo.list(caller, taskId))
334
+ .map((r) => view(r.config))
335
+ .sort((x, y) => (x.id < y.id ? -1 : x.id > y.id ? 1 : 0));
336
+ const rest = after === undefined ? all : all.filter((c) => c.id > after);
337
+ const page = rest.slice(0, size);
338
+ const last = page.at(-1);
339
+ return {
340
+ configs: page,
341
+ nextPageToken: last && rest.length > page.length
342
+ ? Buffer.from(JSON.stringify([last.id])).toString('base64url')
343
+ : '',
344
+ };
345
+ }
346
+ default: {
347
+ // DeleteTaskPushNotificationConfig
348
+ const key = id ? pushKey(caller, taskId, id) : undefined;
349
+ if (!key || !(await repo.delete(key)))
350
+ throw new AgentropyError('NotFound', 'Push config not found');
351
+ watchers.get(key)?.stop.abort();
352
+ return {};
353
+ }
354
+ }
355
+ };
356
+ return {
357
+ method: pushMethod,
358
+ /**
359
+ * Restarts a watcher for every stored config whose task is still live and whose creator can still see it.
360
+ * Returns how many were started.
361
+ */
362
+ async resume() {
363
+ if (!options)
364
+ return 0;
365
+ let started = 0;
366
+ for (const [key, r] of await repo.all()) {
367
+ if (watchers.has(key) || TERMINAL_A2A.has(r.lastState))
368
+ continue;
369
+ const snap = await target
370
+ .getTask(r.taskId, r.creator)
371
+ .catch(() => undefined);
372
+ if (!snap)
373
+ continue; // gone, or the creator lost access: nothing to deliver
374
+ watch(options, key, snap, r.creator, r.lastState);
375
+ started++;
376
+ }
377
+ return started;
378
+ },
379
+ /** Resolves once every watcher has finished. */
380
+ async idle() {
381
+ while (watchers.size)
382
+ await Promise.allSettled([...watchers.values()].map((w) => w.run));
383
+ },
384
+ };
385
+ }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * A2A server (inbound): maps A2A JSON-RPC methods onto a `DirectTarget` (e.g. `localAppTarget(app)`) with the
3
+ * principal produced by the transport's authentication, reusing the AgentService PEPs. `stream` serves
4
+ * `SendStreamingMessage` and `SubscribeToTask` (FEAT-029.1); `push` options enable push notifications (FEAT-029.2).
5
+ */
6
+ import { type TaskSnapshot, type TrustedPrincipal } from '@agentropy/core';
7
+ import type { LocalApp } from './app.js';
8
+ import type { DirectTarget } from './communication.js';
9
+ import { type A2ATaskState } from './a2a-protocol.js';
10
+ import { type A2AHistoryOptions } from './a2a-history.js';
11
+ import { type A2APushOptions } from './a2a-push.js';
12
+ export interface A2AServerOptions {
13
+ /** The local agent instance this endpoint exposes (passed to the target as `target.instanceId`). */
14
+ instanceId?: string;
15
+ now?: () => string;
16
+ /** Enables the push-notification config methods (FEAT-029.2); without it they answer -32003. */
17
+ push?: A2APushOptions;
18
+ /**
19
+ * Keeps the user messages the endpoint accepted so `historyLength` has an effect (FEAT-044.2); see `a2a-history.ts`.
20
+ * Without it nothing is kept and `historyLength` is accepted but returns no history.
21
+ */
22
+ history?: A2AHistoryOptions;
23
+ /**
24
+ * Most tasks one `ListTasks` call looks at (default 10000). The newest are read first, so the first page is always
25
+ * the latest tasks, and `totalSize` is exact up to this bound and a lower bound beyond it; a page token carries on
26
+ * from where the call stopped, so paging still reaches the oldest task.
27
+ */
28
+ listScanLimit?: number;
29
+ }
30
+ export interface A2AHttpResponse {
31
+ status: number;
32
+ body: {
33
+ jsonrpc: '2.0';
34
+ id: unknown;
35
+ result?: unknown;
36
+ error?: {
37
+ code: number;
38
+ message: string;
39
+ data?: unknown;
40
+ };
41
+ };
42
+ }
43
+ /** One frame of a streaming response: a JSON-RPC response whose `result` is an A2A `StreamResponse`. */
44
+ export type A2AStreamFrame = A2AHttpResponse['body'];
45
+ /** A streaming call either fails up front (a plain JSON-RPC response) or opens an event stream. */
46
+ export type A2AStreamResult = {
47
+ kind: 'error';
48
+ response: A2AHttpResponse;
49
+ } | {
50
+ kind: 'stream';
51
+ status: 200;
52
+ frames: AsyncIterable<A2AStreamFrame>;
53
+ };
54
+ export interface A2AServer {
55
+ /** Unary methods: `SendMessage`, `GetTask`, `CancelTask`. */
56
+ handle(request: unknown, principal: TrustedPrincipal | undefined, headers?: {
57
+ 'a2a-version'?: string;
58
+ }): Promise<A2AHttpResponse>;
59
+ /**
60
+ * Streaming methods: `SendStreamingMessage` and `SubscribeToTask`. The first frame is the task; status and
61
+ * artifact updates follow, and the stream ends after the terminal status. Serve the frames with `sseFrames`.
62
+ */
63
+ stream(request: unknown, principal: TrustedPrincipal | undefined, headers?: {
64
+ 'a2a-version'?: string;
65
+ },
66
+ /** Aborting ends the stream and releases its subscription (e.g. when the HTTP client goes away). */
67
+ options?: {
68
+ signal?: AbortSignal;
69
+ }): Promise<A2AStreamResult>;
70
+ /** Resolves once every push watcher has finished (their tasks reached a terminal state or configs were deleted). */
71
+ pushIdle(): Promise<void>;
72
+ /**
73
+ * With `push.store`: restarts delivery for stored configs whose tasks are still live (call once at start).
74
+ * Returns how many watchers were started.
75
+ */
76
+ resumePush(): Promise<number>;
77
+ }
78
+ /** A2A state of a task: waiting on a human action is `INPUT_REQUIRED`, other waits are `WORKING`. */
79
+ export declare function a2aState(s: TaskSnapshot): A2ATaskState;
80
+ export declare function createA2AServer(target: DirectTarget, o?: A2AServerOptions): A2AServer;
81
+ /** Exposes one instance of a LocalApp as an A2A target (inbound), reusing every AgentService check. */
82
+ export declare function localAppTarget(app: LocalApp): DirectTarget;