@cotal-ai/connector-core 0.79.0 → 0.81.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.
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import { type Part } from "@cotal-ai/core";
14
14
  import { AguiVocabularyError, type AguiEvent, type AguiFrame, type CotalMeta } from "./agui.js";
15
- import type { DurableSource } from "./durable-source.js";
15
+ import type { DurableSource, SourceGap } from "./durable-source.js";
16
16
  import type { EventWal } from "./event-wal.js";
17
17
  import type { SubjectFrontier } from "./subject-frontier.js";
18
18
  /**
@@ -66,13 +66,48 @@ export interface EmitUnit {
66
66
  runId: string;
67
67
  events: AguiEvent[];
68
68
  cursor: string;
69
+ /** The turns the source began at or just before this unit, and by the dropped records whose
70
+ * cursor folded onto it after, in source order: the run each one opened, or `null` for a turn
71
+ * that opened none. Committed as the last turn begun when the frame carrying the unit is frozen,
72
+ * see {@link AguiEmitter.queueTerminal}: every turn a frame's cursor covers is committed with
73
+ * that frame, trailing ones included, or a failure after the freeze would carry a stale last
74
+ * turn to the next emitter while the log had advanced past them (Sol, round 12 of 2026-10-13,
75
+ * through the built MCP entry point: a notification's terminal closed the run before it). */
76
+ turns?: (string | null)[];
69
77
  }
70
- /** What the mapper returns for one source record: its run and its events, or `null` for a record
71
- * this plane deliberately drops, and it drops many. `null` is NOT an error: a deliberate drop and
72
- * a failed map are kept apart, because conflating them turns a parser bug into skipped history. */
78
+ /** A turn terminal the connector reported at a boundary the record stream cannot see, kept until
79
+ * the run it belongs to can take it: `error` closes that run with `RUN_ERROR`, its absence with
80
+ * `RUN_FINISHED`. */
81
+ export interface HeldTerminal {
82
+ timestamp: number;
83
+ error?: {
84
+ message: string;
85
+ code?: string;
86
+ };
87
+ }
88
+ /** A terminal with the position the source had reached when the connector reported it: the cursor
89
+ * its {@link DurableSource.end} answered then. Which turn the terminal ends is read off that
90
+ * position, see {@link AguiEmitter.queueTerminal}. */
91
+ export interface ReportedTerminal {
92
+ terminal: HeldTerminal;
93
+ at: Promise<string>;
94
+ }
95
+ /**
96
+ * What the mapper returns for one source record: its run and its events, or `null` for a record
97
+ * this plane deliberately drops, and it drops many. `null` is NOT an error: a deliberate drop and
98
+ * a failed map are kept apart, because conflating them turns a parser bug into skipped history.
99
+ *
100
+ * `{ turn: true }` is a record that BEGAN A TURN AND OPENED NO RUN: a prompt the mapper knows and
101
+ * deliberately does not publish. It is still a turn the harness ends with a terminal, so the
102
+ * emitter counts it as a turn when it places a terminal reported after it (see
103
+ * {@link AguiEmitter.queueTerminal}); dropped as `null`, that terminal would land on the run begun
104
+ * before it. A record that opens a run begins its turn by its `RUN_STARTED`.
105
+ */
73
106
  export type RecordMapper<T> = (record: T) => {
74
107
  runId: string;
75
108
  events: AguiEvent[];
109
+ } | {
110
+ turn: true;
76
111
  } | null;
77
112
  /**
78
113
  * A bracket violation that is OURS, not the writer's: the machine that tracks open runs and messages
@@ -130,6 +165,7 @@ export declare function packUnits(opts: {
130
165
  }): {
131
166
  frame: AguiFrame;
132
167
  cursor: string;
168
+ unitFrom: number;
133
169
  }[];
134
170
  /**
135
171
  * The event emitter: one per principal, one thread at a time.
@@ -162,6 +198,7 @@ export declare class AguiEmitter<T> {
162
198
  /** Derived from the endpoint's OWN principal, never from a config name or the launch env. */
163
199
  readonly channel: string;
164
200
  readonly threadId: string;
201
+ private readonly onUnreadable;
165
202
  /**
166
203
  * The bracket machine AT THE FOLDED POSITION — deliberately not "wherever validation got to".
167
204
  *
@@ -174,6 +211,22 @@ export declare class AguiEmitter<T> {
174
211
  /** True once THIS process has fed an event through the bracket machine. It is the half of the
175
212
  * restart diagnosis that keeps a genuine mid-stream violation from being blamed on a restart. */
176
213
  private fedAnyEvent;
214
+ /** True once a pump has read the source: the last turn can be seeded only before that. */
215
+ private pumped;
216
+ /** Terminals owed to runs, by run: a terminal placed on a run the wire has open or a pump is
217
+ * about to open, published in place of the finish the source synthesizes for that run, or taken
218
+ * back by {@link takeOwed} for a close the holder makes. Settled at the freeze of the frame that
219
+ * closes the run. */
220
+ private owed;
221
+ /** Terminals reported at a position no pump has read up to yet, in the order they arrived. */
222
+ private queued;
223
+ /**
224
+ * The turn the frozen frames most recently began: the run it opened, `null` for one that opened
225
+ * none, `undefined` while the log shows no turn. A terminal reported before any record a pump
226
+ * reads is this turn's. Starts as the run the log has open, which is the last turn the log can
227
+ * name; a holder that drops an emitter seeds the next one with what that emitter knew.
228
+ */
229
+ private lastTurn;
177
230
  private constructor();
178
231
  /**
179
232
  * Start an emitter: resolve the channel, run the single-replica preflight, and settle any pending
@@ -203,6 +256,12 @@ export declare class AguiEmitter<T> {
203
256
  subjectFrontier: SubjectFrontier;
204
257
  source: DurableSource<T>;
205
258
  map: RecordMapper<T>;
259
+ /**
260
+ * Where a {@link SourceGap} the source stepped over is reported. Optional, and the absence is
261
+ * not a quiet default: a pump that meets a gap with no reporter refuses, naming the gap, so a
262
+ * connector that never decided where gaps go keeps the loud answer rather than a silent hole.
263
+ */
264
+ onUnreadable?: (gap: SourceGap) => void;
206
265
  }): Promise<AguiEmitter<T>>;
207
266
  /** True once the emitter has stopped for good. */
208
267
  get stopped(): boolean;
@@ -225,6 +284,34 @@ export declare class AguiEmitter<T> {
225
284
  frames: number;
226
285
  events: number;
227
286
  }>;
287
+ /**
288
+ * Place every queued terminal the read has reached on the turn the source had begun when the
289
+ * terminal was reported: the last of the turns begun by the records before its position, or
290
+ * {@link lastTurn} when none of them is. A terminal reported past this read stays queued for the
291
+ * next one. Placed on a run, the terminal becomes that run's debt; on a turn that opened no run,
292
+ * it is consumed; on a run that already has a terminal, or one the wire has closed, it is
293
+ * dropped as the connector repeating itself.
294
+ */
295
+ private place;
296
+ /**
297
+ * How many of the read's records the source held when the terminal was reported, or `undefined`
298
+ * when the terminal was reported past the read. The position is compared through the source
299
+ * itself, never by reading the cursor: the first record after the position is the one a read
300
+ * from it answers, and the cursor it carries is the same string this read gave that record. A
301
+ * read from the position that answers no record and ends where this read ends covers only lines
302
+ * the source could not read, so the terminal is after every record this read holds. A
303
+ * position whose read could not be taken, or that this emitter had already read past (a terminal
304
+ * is reported before anything after its position is read, so that position is never behind a
305
+ * read), drops the terminal and fails this pump, once: the plane reports it and the next pump
306
+ * goes on without it. Waiting for a pump that reads up to such a position would wait forever.
307
+ */
308
+ private boundary;
309
+ /**
310
+ * The commit of frozen units and of records advanced past without a frame: the last turn they
311
+ * began is now the turn a terminal reported before any later record ends, and a run they closed
312
+ * owes nothing, its terminal being in the frozen frame.
313
+ */
314
+ private committed;
228
315
  /**
229
316
  * Close the run this stream currently has open, at a boundary the RECORD STREAM CANNOT SEE.
230
317
  *
@@ -271,9 +358,56 @@ export declare class AguiEmitter<T> {
271
358
  code?: string;
272
359
  };
273
360
  }): Promise<string | null>;
361
+ /**
362
+ * Queue a terminal the connector reported at a boundary the record stream cannot see, for the
363
+ * turn the source had begun when it was reported: a terminal that arrived while the plane was
364
+ * down, or while a re-establish was in flight. The connector reports a turn's terminal once the
365
+ * turn's records are in the source and before the next turn's are, so the position the source
366
+ * had reached then names the turn: the last one begun before that position. The next pump reads
367
+ * the records up to that position and places the terminal, see {@link place}. Placed on a run,
368
+ * an error is published in place of the first finish the mapper produces for that run, which is
369
+ * the finish a later prompt synthesizes when it finds the run still open, so a failed turn whose
370
+ * next prompt was already written when the plane came back is still closed as a failure, after
371
+ * its own records and before the next run opens, in a frame of its own run; a finish is that
372
+ * synthesized finish. A terminal the pump places on the run it leaves open is handed back by
373
+ * {@link takeOwed} for the close the holder makes. A turn that opened no run takes its terminal
374
+ * and does nothing with it, as a close with no run open does live; a second terminal for one
375
+ * turn is the connector repeating itself, and replaces nothing.
376
+ */
377
+ queueTerminal(entry: ReportedTerminal): void;
378
+ /** How many terminals no pump has placed yet. A pump places every one the read reaches. */
379
+ get waitingTerminals(): number;
380
+ /** Take the terminal owed to `runId` back, for a close the caller makes itself. */
381
+ takeOwed(runId: string): ReportedTerminal | undefined;
382
+ /**
383
+ * Every terminal this emitter still holds, for a holder that is dropping it: the terminals owed
384
+ * to runs the wire has not closed, then the ones no pump has placed, each with the position it
385
+ * was reported at, so the next emitter places them again from the log it starts from. The last
386
+ * turn the frozen frames began rides along, so the holder can seed the next emitter with it.
387
+ */
388
+ unsettled(): {
389
+ terminals: ReportedTerminal[];
390
+ lastTurn: string | null | undefined;
391
+ };
392
+ /** Seed the last turn the wire began, from the emitter this one replaces: a terminal reported
393
+ * before any record the first pump reads is that turn's. Allowed before anything is pumped. */
394
+ seedLastTurn(turn: string | null | undefined): void;
395
+ /**
396
+ * Take the first finish of an owed run out of a record's events and, for a debt that is an
397
+ * error, answer it with a unit of that run carrying the owed error terminal instead. The error
398
+ * carries the fixed egress message, as a close does. `before` is the cursor the owed unit
399
+ * stores: the position ahead of the record the finish came from. A debt that is a finish is
400
+ * answered by the finish itself and changes nothing. The debt is settled when the frame carrying
401
+ * the terminal is frozen, not here: a frame whose write fails before the freeze is read again,
402
+ * and the terminal must still be owed then (Sol, round 11 of 2026-10-13, through the built MCP
403
+ * entry point: a log write refused once while the owed error was being written closed the failed
404
+ * run as a finish).
405
+ */
406
+ private takeOwedTerminal;
274
407
  /** Measure a candidate frame EXACTLY as the wire will, at an upper bound over id and expectation. */
275
408
  private measure;
276
- /** Transition 1 then the first network attempt. */
409
+ /** Transition 1 then the first network attempt. `frozen` runs once the frame is frozen on disk,
410
+ * before the wire is tried: the commit of what the frame carries, for state the frame settles. */
277
411
  private publish;
278
412
  /**
279
413
  * One publish attempt — first or retry — with the FROZEN id and the FROZEN `E`. Never the tip.
@@ -1 +1 @@
1
- {"version":3,"file":"agui-emitter.d.ts","sourceRoot":"","sources":["../src/agui-emitter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAA4C,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,EAEL,mBAAmB,EAQnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,WAAW,CAAC;AACnB,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