@cleocode/lafs 2026.4.0 → 2026.4.3

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 (131) hide show
  1. package/README.md +97 -68
  2. package/dist/src/a2a/bindings/grpc.d.ts +117 -11
  3. package/dist/src/a2a/bindings/grpc.d.ts.map +1 -1
  4. package/dist/src/a2a/bindings/grpc.js +79 -8
  5. package/dist/src/a2a/bindings/grpc.js.map +1 -1
  6. package/dist/src/a2a/bindings/http.d.ts +129 -14
  7. package/dist/src/a2a/bindings/http.d.ts.map +1 -1
  8. package/dist/src/a2a/bindings/http.js +93 -12
  9. package/dist/src/a2a/bindings/http.js.map +1 -1
  10. package/dist/src/a2a/bindings/index.d.ts +80 -7
  11. package/dist/src/a2a/bindings/index.d.ts.map +1 -1
  12. package/dist/src/a2a/bindings/index.js +69 -2
  13. package/dist/src/a2a/bindings/index.js.map +1 -1
  14. package/dist/src/a2a/bindings/jsonrpc.d.ts +193 -9
  15. package/dist/src/a2a/bindings/jsonrpc.d.ts.map +1 -1
  16. package/dist/src/a2a/bindings/jsonrpc.js +152 -9
  17. package/dist/src/a2a/bindings/jsonrpc.js.map +1 -1
  18. package/dist/src/a2a/bridge.d.ts +232 -37
  19. package/dist/src/a2a/bridge.d.ts.map +1 -1
  20. package/dist/src/a2a/bridge.js +172 -24
  21. package/dist/src/a2a/bridge.js.map +1 -1
  22. package/dist/src/a2a/extensions.d.ts +221 -12
  23. package/dist/src/a2a/extensions.d.ts.map +1 -1
  24. package/dist/src/a2a/extensions.js +175 -11
  25. package/dist/src/a2a/extensions.js.map +1 -1
  26. package/dist/src/a2a/index.d.ts +2 -0
  27. package/dist/src/a2a/index.d.ts.map +1 -1
  28. package/dist/src/a2a/index.js +2 -0
  29. package/dist/src/a2a/index.js.map +1 -1
  30. package/dist/src/a2a/streaming.d.ts +274 -2
  31. package/dist/src/a2a/streaming.d.ts.map +1 -1
  32. package/dist/src/a2a/streaming.js +245 -2
  33. package/dist/src/a2a/streaming.js.map +1 -1
  34. package/dist/src/a2a/task-lifecycle.d.ts +339 -19
  35. package/dist/src/a2a/task-lifecycle.d.ts.map +1 -1
  36. package/dist/src/a2a/task-lifecycle.js +302 -19
  37. package/dist/src/a2a/task-lifecycle.js.map +1 -1
  38. package/dist/src/budgetEnforcement.d.ts +88 -14
  39. package/dist/src/budgetEnforcement.d.ts.map +1 -1
  40. package/dist/src/budgetEnforcement.js +132 -19
  41. package/dist/src/budgetEnforcement.js.map +1 -1
  42. package/dist/src/circuit-breaker/index.d.ts +254 -9
  43. package/dist/src/circuit-breaker/index.d.ts.map +1 -1
  44. package/dist/src/circuit-breaker/index.js +218 -9
  45. package/dist/src/circuit-breaker/index.js.map +1 -1
  46. package/dist/src/compliance.d.ts +176 -0
  47. package/dist/src/compliance.d.ts.map +1 -1
  48. package/dist/src/compliance.js +100 -0
  49. package/dist/src/compliance.js.map +1 -1
  50. package/dist/src/conformance.d.ts +52 -0
  51. package/dist/src/conformance.d.ts.map +1 -1
  52. package/dist/src/conformance.js +41 -0
  53. package/dist/src/conformance.js.map +1 -1
  54. package/dist/src/conformanceProfiles.d.ts +66 -0
  55. package/dist/src/conformanceProfiles.d.ts.map +1 -1
  56. package/dist/src/conformanceProfiles.js +51 -0
  57. package/dist/src/conformanceProfiles.js.map +1 -1
  58. package/dist/src/deprecationRegistry.d.ts +80 -0
  59. package/dist/src/deprecationRegistry.d.ts.map +1 -1
  60. package/dist/src/deprecationRegistry.js +50 -0
  61. package/dist/src/deprecationRegistry.js.map +1 -1
  62. package/dist/src/discovery.d.ts +344 -63
  63. package/dist/src/discovery.d.ts.map +1 -1
  64. package/dist/src/discovery.js +67 -13
  65. package/dist/src/discovery.js.map +1 -1
  66. package/dist/src/envelope.d.ts +252 -0
  67. package/dist/src/envelope.d.ts.map +1 -1
  68. package/dist/src/envelope.js +165 -0
  69. package/dist/src/envelope.js.map +1 -1
  70. package/dist/src/errorRegistry.d.ts +159 -0
  71. package/dist/src/errorRegistry.d.ts.map +1 -1
  72. package/dist/src/errorRegistry.js +115 -0
  73. package/dist/src/errorRegistry.js.map +1 -1
  74. package/dist/src/fieldExtraction.d.ts +125 -25
  75. package/dist/src/fieldExtraction.d.ts.map +1 -1
  76. package/dist/src/fieldExtraction.js +85 -16
  77. package/dist/src/fieldExtraction.js.map +1 -1
  78. package/dist/src/flagResolver.d.ts +75 -9
  79. package/dist/src/flagResolver.d.ts.map +1 -1
  80. package/dist/src/flagResolver.js +20 -4
  81. package/dist/src/flagResolver.js.map +1 -1
  82. package/dist/src/flagSemantics.d.ts +76 -1
  83. package/dist/src/flagSemantics.d.ts.map +1 -1
  84. package/dist/src/flagSemantics.js +66 -0
  85. package/dist/src/flagSemantics.js.map +1 -1
  86. package/dist/src/health/index.d.ts +87 -6
  87. package/dist/src/health/index.d.ts.map +1 -1
  88. package/dist/src/health/index.js +54 -6
  89. package/dist/src/health/index.js.map +1 -1
  90. package/dist/src/index.d.ts +12 -1
  91. package/dist/src/index.d.ts.map +1 -1
  92. package/dist/src/index.js +12 -1
  93. package/dist/src/index.js.map +1 -1
  94. package/dist/src/mviProjection.d.ts +42 -6
  95. package/dist/src/mviProjection.d.ts.map +1 -1
  96. package/dist/src/mviProjection.js +31 -5
  97. package/dist/src/mviProjection.js.map +1 -1
  98. package/dist/src/native-loader.d.ts +49 -0
  99. package/dist/src/native-loader.d.ts.map +1 -0
  100. package/dist/src/native-loader.js +56 -0
  101. package/dist/src/native-loader.js.map +1 -0
  102. package/dist/src/problemDetails.d.ts +70 -4
  103. package/dist/src/problemDetails.d.ts.map +1 -1
  104. package/dist/src/problemDetails.js +21 -3
  105. package/dist/src/problemDetails.js.map +1 -1
  106. package/dist/src/shutdown/index.d.ts +96 -7
  107. package/dist/src/shutdown/index.d.ts.map +1 -1
  108. package/dist/src/shutdown/index.js +72 -7
  109. package/dist/src/shutdown/index.js.map +1 -1
  110. package/dist/src/tokenEstimator.d.ts +97 -11
  111. package/dist/src/tokenEstimator.d.ts.map +1 -1
  112. package/dist/src/tokenEstimator.js +90 -11
  113. package/dist/src/tokenEstimator.js.map +1 -1
  114. package/dist/src/types.d.ts +467 -2
  115. package/dist/src/types.d.ts.map +1 -1
  116. package/dist/src/types.js +64 -0
  117. package/dist/src/types.js.map +1 -1
  118. package/dist/src/validateEnvelope.d.ts +59 -1
  119. package/dist/src/validateEnvelope.d.ts.map +1 -1
  120. package/dist/src/validateEnvelope.js +75 -9
  121. package/dist/src/validateEnvelope.js.map +1 -1
  122. package/dist/tsconfig.build.tsbuildinfo +1 -1
  123. package/lafs.md +3 -4
  124. package/package.json +6 -3
  125. package/dist/src/mcpAdapter.d.ts +0 -29
  126. package/dist/src/mcpAdapter.d.ts.map +0 -1
  127. package/dist/src/mcpAdapter.js +0 -286
  128. package/dist/src/mcpAdapter.js.map +0 -1
  129. package/schemas/v1/conformance-profiles.d.ts +0 -15
  130. package/schemas/v1/envelope.schema.d.ts +0 -14
  131. package/schemas/v1/error-registry.d.ts +0 -24
@@ -1,47 +1,237 @@
1
1
  /**
2
2
  * A2A streaming and async runtime primitives (T101).
3
3
  *
4
- * Provides an in-memory event bus for task status/artifact updates and
5
- * push-notification config storage helpers.
4
+ * @remarks
5
+ * Provides an in-memory event bus for task status/artifact updates,
6
+ * push-notification config storage helpers, webhook dispatch, and
7
+ * artifact delta assembly. All classes are designed for in-memory use
8
+ * and do not persist state across process restarts.
6
9
  */
7
10
  import type { Artifact, PushNotificationConfig, TaskArtifactUpdateEvent, TaskStatusUpdateEvent } from '@a2a-js/sdk';
11
+ /**
12
+ * Union type of task stream events emitted by the event bus.
13
+ *
14
+ * @remarks
15
+ * Encompasses both status update and artifact update events from the A2A SDK.
16
+ */
8
17
  export type TaskStreamEvent = TaskStatusUpdateEvent | TaskArtifactUpdateEvent;
9
18
  type StreamListener = (event: TaskStreamEvent) => void;
10
19
  /**
11
20
  * In-memory event bus for task lifecycle streaming events.
21
+ *
22
+ * @remarks
23
+ * Maintains per-task event history and per-task listener sets. Events are
24
+ * delivered synchronously to all registered listeners for the task. The
25
+ * history can be replayed via {@link TaskEventBus.getHistory} for catch-up
26
+ * semantics.
12
27
  */
13
28
  export declare class TaskEventBus {
29
+ /** Map of task ID to ordered event history */
14
30
  private history;
31
+ /** Map of task ID to active listener callbacks */
15
32
  private listeners;
33
+ /**
34
+ * Publish a task status update event.
35
+ *
36
+ * @remarks
37
+ * Convenience wrapper that delegates to {@link TaskEventBus.publish}.
38
+ *
39
+ * @param event - Status update event to publish
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * bus.publishStatusUpdate({ kind: 'status-update', taskId: 'task-1', status: { state: 'working', timestamp: new Date().toISOString() }, final: false });
44
+ * ```
45
+ */
16
46
  publishStatusUpdate(event: TaskStatusUpdateEvent): void;
47
+ /**
48
+ * Publish a task artifact update event.
49
+ *
50
+ * @remarks
51
+ * Convenience wrapper that delegates to {@link TaskEventBus.publish}.
52
+ *
53
+ * @param event - Artifact update event to publish
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * bus.publishArtifactUpdate({ kind: 'artifact-update', taskId: 'task-1', artifact: myArtifact });
58
+ * ```
59
+ */
17
60
  publishArtifactUpdate(event: TaskArtifactUpdateEvent): void;
61
+ /**
62
+ * Publish a task stream event to all listeners and history.
63
+ *
64
+ * @remarks
65
+ * Appends the event to the task's history, then synchronously delivers
66
+ * it to all registered listeners for that task.
67
+ *
68
+ * @param event - Task stream event to publish
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * bus.publish(statusUpdateEvent);
73
+ * ```
74
+ */
18
75
  publish(event: TaskStreamEvent): void;
76
+ /**
77
+ * Subscribe to events for a specific task.
78
+ *
79
+ * @remarks
80
+ * Returns an unsubscribe function that removes the listener. Automatically
81
+ * cleans up the listener set when the last listener is removed.
82
+ *
83
+ * @param taskId - ID of the task to subscribe to
84
+ * @param listener - Callback invoked for each event
85
+ * @returns Unsubscribe function that removes this listener
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * const unsubscribe = bus.subscribe('task-1', (event) => {
90
+ * console.log('Event:', event);
91
+ * });
92
+ * // Later: unsubscribe();
93
+ * ```
94
+ */
19
95
  subscribe(taskId: string, listener: StreamListener): () => void;
96
+ /**
97
+ * Get the full event history for a task.
98
+ *
99
+ * @remarks
100
+ * Returns a shallow copy of the history array. Useful for catch-up
101
+ * replay when a new subscriber connects.
102
+ *
103
+ * @param taskId - ID of the task to retrieve history for
104
+ * @returns Array of past events for the task, or empty array if none
105
+ *
106
+ * @example
107
+ * ```typescript
108
+ * const events = bus.getHistory('task-1');
109
+ * ```
110
+ */
20
111
  getHistory(taskId: string): TaskStreamEvent[];
21
112
  }
113
+ /** Options for the stream task events async iterator */
22
114
  export interface StreamIteratorOptions {
115
+ /**
116
+ * Timeout in milliseconds before the iterator yields control.
117
+ * @defaultValue undefined
118
+ */
23
119
  timeoutMs?: number;
24
120
  }
25
121
  /**
26
122
  * Build an async iterator for real-time task stream events.
123
+ *
124
+ * @remarks
125
+ * First replays the existing event history for catch-up, then yields
126
+ * new events as they arrive via the bus subscription. Uses a timeout
127
+ * (default 30s) to periodically yield control when no events arrive.
128
+ *
129
+ * @param bus - TaskEventBus to subscribe to
130
+ * @param taskId - ID of the task to stream events for
131
+ * @param options - Iterator options including timeout
132
+ * @returns Async generator yielding task stream events
133
+ *
134
+ * @example
135
+ * ```typescript
136
+ * for await (const event of streamTaskEvents(bus, 'task-1', { timeoutMs: 5000 })) {
137
+ * console.log('Received:', event);
138
+ * }
139
+ * ```
27
140
  */
28
141
  export declare function streamTaskEvents(bus: TaskEventBus, taskId: string, options?: StreamIteratorOptions): AsyncGenerator<TaskStreamEvent>;
29
142
  /**
30
143
  * In-memory manager for async push-notification configs.
144
+ *
145
+ * @remarks
146
+ * Stores push-notification configurations keyed by task ID and config ID.
147
+ * Provides CRUD operations for registering, retrieving, listing, and
148
+ * removing webhook configurations.
31
149
  */
32
150
  export declare class PushNotificationConfigStore {
151
+ /** Nested map of task ID to config ID to push notification config */
33
152
  private configs;
153
+ /**
154
+ * Store a push-notification config for a task.
155
+ *
156
+ * @remarks
157
+ * Overwrites any existing config with the same task ID and config ID.
158
+ *
159
+ * @param taskId - ID of the task the config applies to
160
+ * @param configId - Unique identifier for this config within the task
161
+ * @param config - Push notification configuration to store
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * store.set('task-1', 'webhook-1', { url: 'https://example.com/hook', token: 'abc' });
166
+ * ```
167
+ */
34
168
  set(taskId: string, configId: string, config: PushNotificationConfig): void;
169
+ /**
170
+ * Retrieve a push-notification config by task and config ID.
171
+ *
172
+ * @param taskId - ID of the task
173
+ * @param configId - ID of the config to retrieve
174
+ * @returns The push notification config, or undefined if not found
175
+ *
176
+ * @example
177
+ * ```typescript
178
+ * const config = store.get('task-1', 'webhook-1');
179
+ * ```
180
+ */
35
181
  get(taskId: string, configId: string): PushNotificationConfig | undefined;
182
+ /**
183
+ * List all push-notification configs for a task.
184
+ *
185
+ * @param taskId - ID of the task to list configs for
186
+ * @returns Array of push notification configs, or empty array if none
187
+ *
188
+ * @example
189
+ * ```typescript
190
+ * const configs = store.list('task-1');
191
+ * ```
192
+ */
36
193
  list(taskId: string): PushNotificationConfig[];
194
+ /**
195
+ * Delete a push-notification config.
196
+ *
197
+ * @remarks
198
+ * Removes the config and cleans up the task entry if no configs remain.
199
+ *
200
+ * @param taskId - ID of the task
201
+ * @param configId - ID of the config to delete
202
+ * @returns True if the config was found and removed, false otherwise
203
+ *
204
+ * @example
205
+ * ```typescript
206
+ * const removed = store.delete('task-1', 'webhook-1');
207
+ * ```
208
+ */
37
209
  delete(taskId: string, configId: string): boolean;
38
210
  }
211
+ /** Result of delivering a push notification to a single webhook */
39
212
  export interface PushNotificationDeliveryResult {
213
+ /** Identifier of the config that was dispatched to */
40
214
  configId: string;
215
+ /** Whether the delivery succeeded */
41
216
  ok: boolean;
217
+ /**
218
+ * HTTP status code from the webhook response.
219
+ * @defaultValue undefined
220
+ */
42
221
  status?: number;
222
+ /**
223
+ * Error message if delivery failed.
224
+ * @defaultValue undefined
225
+ */
43
226
  error?: string;
44
227
  }
228
+ /**
229
+ * Transport function for sending HTTP requests to push-notification webhooks.
230
+ *
231
+ * @remarks
232
+ * Abstracts the HTTP transport layer to allow injection of custom fetch
233
+ * implementations or test doubles.
234
+ */
45
235
  export type PushTransport = (input: string, init?: {
46
236
  method?: string;
47
237
  headers?: Record<string, string>;
@@ -52,23 +242,105 @@ export type PushTransport = (input: string, init?: {
52
242
  }>;
53
243
  /**
54
244
  * Deliver task updates to registered push-notification webhooks.
245
+ *
246
+ * @remarks
247
+ * Dispatches events to all push-notification configs registered for a task
248
+ * via the configured transport. Builds authentication headers from the
249
+ * config's token and authentication fields. Falls back to global `fetch`
250
+ * if no transport is provided.
55
251
  */
56
252
  export declare class PushNotificationDispatcher {
57
253
  private readonly store;
58
254
  private readonly transport;
255
+ /**
256
+ * Create a PushNotificationDispatcher.
257
+ *
258
+ * @param store - Config store to look up webhook registrations
259
+ * @param transport - HTTP transport function for sending webhook requests
260
+ */
59
261
  constructor(store: PushNotificationConfigStore, transport?: PushTransport);
262
+ /**
263
+ * Dispatch a task event to all registered webhooks for the task.
264
+ *
265
+ * @remarks
266
+ * Sends the event payload as JSON to each registered push-notification
267
+ * URL in parallel. Captures delivery results including HTTP status and
268
+ * errors for each webhook.
269
+ *
270
+ * @param taskId - ID of the task whose webhooks to dispatch to
271
+ * @param event - Task stream event to deliver
272
+ * @returns Array of delivery results, one per registered config
273
+ *
274
+ * @example
275
+ * ```typescript
276
+ * const results = await dispatcher.dispatch('task-1', statusUpdateEvent);
277
+ * for (const r of results) {
278
+ * if (!r.ok) console.error(`Failed to deliver to ${r.configId}: ${r.error}`);
279
+ * }
280
+ * ```
281
+ */
60
282
  dispatch(taskId: string, event: TaskStreamEvent): Promise<PushNotificationDeliveryResult[]>;
283
+ /** Build HTTP headers for push notification delivery including auth tokens. */
61
284
  private buildHeaders;
62
285
  }
63
286
  /**
64
287
  * Applies append/lastChunk artifact deltas into task-local snapshots.
288
+ *
289
+ * @remarks
290
+ * Maintains in-memory snapshots of artifacts per task. When an artifact
291
+ * update event with `append: true` arrives, parts are merged with the
292
+ * existing snapshot. The `lastChunk` flag is tracked in artifact metadata
293
+ * as `a2a:last_chunk`.
65
294
  */
66
295
  export declare class TaskArtifactAssembler {
296
+ /** Map of task ID to map of artifact ID to assembled artifact snapshot */
67
297
  private artifacts;
298
+ /**
299
+ * Apply an artifact update event to the assembled snapshot.
300
+ *
301
+ * @remarks
302
+ * If `append` is true and a prior snapshot exists, parts are concatenated.
303
+ * Otherwise the artifact is replaced. The `lastChunk` flag is always
304
+ * written to metadata.
305
+ *
306
+ * @param event - Artifact update event containing the delta
307
+ * @returns The merged artifact snapshot after applying the update
308
+ *
309
+ * @example
310
+ * ```typescript
311
+ * const assembler = new TaskArtifactAssembler();
312
+ * const merged = assembler.applyUpdate(artifactUpdateEvent);
313
+ * ```
314
+ */
68
315
  applyUpdate(event: TaskArtifactUpdateEvent): Artifact;
316
+ /**
317
+ * Get a specific assembled artifact by task and artifact ID.
318
+ *
319
+ * @param taskId - ID of the task
320
+ * @param artifactId - ID of the artifact to retrieve
321
+ * @returns The assembled artifact snapshot, or undefined if not found
322
+ *
323
+ * @example
324
+ * ```typescript
325
+ * const artifact = assembler.get('task-1', 'art-1');
326
+ * ```
327
+ */
69
328
  get(taskId: string, artifactId: string): Artifact | undefined;
329
+ /**
330
+ * List all assembled artifacts for a task.
331
+ *
332
+ * @param taskId - ID of the task to list artifacts for
333
+ * @returns Array of assembled artifact snapshots, or empty array if none
334
+ *
335
+ * @example
336
+ * ```typescript
337
+ * const artifacts = assembler.list('task-1');
338
+ * ```
339
+ */
70
340
  list(taskId: string): Artifact[];
341
+ /** Merge a new artifact update event into an existing artifact snapshot, handling append semantics. */
71
342
  private mergeArtifact;
343
+ /** Inject the `a2a:last_chunk` marker into artifact metadata. */
72
344
  private withLastChunk;
73
345
  }
74
346
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"streaming.d.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