@cotal-ai/connector-core 0.79.0 → 0.82.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/dist/agent.d.ts +8 -1
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +25 -13
- package/dist/agent.js.map +1 -1
- package/dist/agui-emitter.d.ts +139 -5
- package/dist/agui-emitter.d.ts.map +1 -1
- package/dist/agui-emitter.js +310 -28
- package/dist/agui-emitter.js.map +1 -1
- package/dist/agui-holder.d.ts +113 -25
- package/dist/agui-holder.d.ts.map +1 -1
- package/dist/agui-holder.js +288 -84
- package/dist/agui-holder.js.map +1 -1
- package/dist/docs-bundle.generated.d.ts +1 -1
- package/dist/docs-bundle.generated.js +20 -20
- package/dist/docs-bundle.generated.js.map +1 -1
- package/dist/durable-source.d.ts +55 -2
- package/dist/durable-source.d.ts.map +1 -1
- package/dist/durable-source.js +98 -27
- package/dist/durable-source.js.map +1 -1
- package/dist/tool-specs.d.ts +3 -2
- package/dist/tool-specs.d.ts.map +1 -1
- package/dist/tool-specs.js +12 -8
- package/dist/tool-specs.js.map +1 -1
- package/dist/tools.d.ts +1 -1
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +2 -2
- package/dist/tools.js.map +1 -1
- package/package.json +2 -2
package/dist/agui-holder.js
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The one
|
|
3
|
-
* `onError`.
|
|
2
|
+
* The one line every connector logs when its event plane stops, used as a holder's `onError`.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* the seat
|
|
4
|
+
* The seat never stops for it, on any space. It used to, on a space that requires events, and the
|
|
5
|
+
* harness then restarted the connector on the next tool call: the plane was re-established anyway,
|
|
6
|
+
* once per keystroke, with a dropped mesh connection each time. The holder re-establishes it in
|
|
7
|
+
* process instead, at once, and the seat keeps its connection; the line says when.
|
|
9
8
|
*/
|
|
10
9
|
export function eventPlaneStopped(opts) {
|
|
11
|
-
return (e) => {
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
opts.log(`AG-UI emitter stopped: ${e.message}`);
|
|
15
|
-
}
|
|
16
|
-
finally {
|
|
17
|
-
if (opts.required)
|
|
18
|
-
opts.stopSeat();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
10
|
+
return (e, retryInMs) => opts.log(`AG-UI emitter stopped: ${e.message}` +
|
|
11
|
+
(retryInMs === null ? "" : retryInMs === 0 ? "; re-establishing the event plane now" : `; re-establishing the event plane in ${retryInMs}ms`));
|
|
21
12
|
}
|
|
22
13
|
/**
|
|
23
|
-
* Holds at most one {@link AguiEmitter}, started on first adopt
|
|
14
|
+
* Holds at most one {@link AguiEmitter} at a time, started on first adopt and re-established at
|
|
15
|
+
* once after a failure.
|
|
24
16
|
*
|
|
25
17
|
* `T` is the connector's source record type; the holder never inspects one. It owns four things —
|
|
26
|
-
* WHEN the emitter starts, that
|
|
18
|
+
* WHEN the emitter starts, that ONE runs at a time, that everything touching it is serialized,
|
|
27
19
|
* and carrying the first adopt's opaque context to the connector-owned factory — and deliberately
|
|
28
20
|
* owns no policy about what that context, an event, or a frame means.
|
|
29
21
|
*/
|
|
@@ -35,16 +27,44 @@ export class AguiEmitterHolder {
|
|
|
35
27
|
* while the first start is still in flight. */
|
|
36
28
|
boundPath;
|
|
37
29
|
/**
|
|
38
|
-
*
|
|
30
|
+
* The failure the plane is down for. While set, this holder starts and pumps nothing; it clears
|
|
31
|
+
* when {@link revive} re-establishes the plane.
|
|
39
32
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* emitter
|
|
33
|
+
* The re-establish runs AT ONCE, off the failing step: a seat whose plane is down is a seat
|
|
34
|
+
* whose turns are missing from the wire, and nothing is gained by waiting to find out whether
|
|
35
|
+
* the fault has cleared. While it stays down the attempts follow every `retryMs`, a fixed wait
|
|
36
|
+
* that neither grows nor is capped: a standing fault costs one start a second, and the plane is
|
|
37
|
+
* back within that second of the fault clearing, whether or not the agent is doing anything. It
|
|
38
|
+
* is the same recovery a connector restart runs, so it adds no path the emitter did not already
|
|
39
|
+
* take, and a pending frame is settled by `start()` before anything new is read. The failure is
|
|
40
|
+
* still reported, every time, with the delay; a plane that came back on its own is not a plane
|
|
41
|
+
* that failed silently.
|
|
46
42
|
*/
|
|
47
43
|
dead;
|
|
44
|
+
/** The first adopt's context, kept so a re-establish starts the emitter as the first start did. */
|
|
45
|
+
startContext;
|
|
46
|
+
/** True from a failure until a re-establish has gone through in full. A failure under it is the
|
|
47
|
+
* plane still down, and the next attempt is paced by `retryMs`; without it, at once. */
|
|
48
|
+
retried = false;
|
|
49
|
+
reviveTimer;
|
|
50
|
+
/**
|
|
51
|
+
* The turn terminals held while no emitter can take them: ones that arrived while the plane was
|
|
52
|
+
* down or while a fresh start was in flight, one whose own close failed, and the ones a dying
|
|
53
|
+
* emitter still held. Each with the position the source had reached when it was reported, which
|
|
54
|
+
* is what names its turn; {@link revive} hands them to the fresh emitter, whose pump places each
|
|
55
|
+
* on the turn the source had begun by that position (Sol, rounds 10 and 11 of 2026-10-13,
|
|
56
|
+
* through the built MCP entry point: held by count, the second turn to end during an outage lost
|
|
57
|
+
* its terminal as a repeat of the first, and a repeated terminal shifted every later one onto the
|
|
58
|
+
* wrong turn).
|
|
59
|
+
*/
|
|
60
|
+
held = [];
|
|
61
|
+
/** The last turn the dying emitter had begun on the wire, for the fresh emitter to place a
|
|
62
|
+
* terminal reported before any record it reads. Absent until an emitter has been dropped. */
|
|
63
|
+
lastTurn;
|
|
64
|
+
/** True from the moment {@link revive} drops the failed emitter until its fresh start, pump and
|
|
65
|
+
* held close have all gone through. A terminal that arrives in that window is held, never
|
|
66
|
+
* queued: a queued close would run after the recovery pump and close whatever run is open then. */
|
|
67
|
+
reviving = false;
|
|
48
68
|
/**
|
|
49
69
|
* Terminal, and NOT a failure. Set by {@link close} when the owner releases this holder: it never
|
|
50
70
|
* starts, pumps or closes a run again, `failure` stays empty, and `onError` is not called. Kept
|
|
@@ -107,6 +127,9 @@ export class AguiEmitterHolder {
|
|
|
107
127
|
*/
|
|
108
128
|
async close() {
|
|
109
129
|
this.shut = true;
|
|
130
|
+
if (this.reviveTimer)
|
|
131
|
+
clearTimeout(this.reviveTimer);
|
|
132
|
+
this.reviveTimer = undefined;
|
|
110
133
|
await this.chain;
|
|
111
134
|
}
|
|
112
135
|
/** The path this holder bound to on first adopt, if it has adopted. */
|
|
@@ -119,10 +142,21 @@ export class AguiEmitterHolder {
|
|
|
119
142
|
* Synchronous and non-throwing by contract, because a hook calls it. The work lands on the chain.
|
|
120
143
|
*/
|
|
121
144
|
adopt(path, context) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
145
|
+
this.bind(path, context);
|
|
146
|
+
this.enqueue(() => this.ensureStarted(path).then(() => undefined));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Bind to the first usable path, with the first adopt's context, AT THE CALL: a terminal reported
|
|
150
|
+
* after this call, and before the start it queues has run, takes its source position from the
|
|
151
|
+
* bound path. The binding is checked by every later start, see {@link ensureStarted}, and it is
|
|
152
|
+
* set once: a later hook cannot overwrite the first session's startup fact while the
|
|
153
|
+
* connector-owned factory is still waiting on its own async preconditions.
|
|
154
|
+
*/
|
|
155
|
+
bind(path, context) {
|
|
156
|
+
if (this.boundPath !== undefined || typeof path !== "string" || path.length === 0)
|
|
157
|
+
return;
|
|
158
|
+
this.boundPath = path;
|
|
159
|
+
this.startContext = context;
|
|
126
160
|
}
|
|
127
161
|
/**
|
|
128
162
|
* Adopt if necessary, then drain the source into frames.
|
|
@@ -130,6 +164,7 @@ export class AguiEmitterHolder {
|
|
|
130
164
|
* Same contract as {@link adopt}: synchronous, non-throwing, work on the chain.
|
|
131
165
|
*/
|
|
132
166
|
flush(path) {
|
|
167
|
+
this.bind(path);
|
|
133
168
|
this.enqueue(async () => {
|
|
134
169
|
const emitter = await this.ensureStarted(path);
|
|
135
170
|
if (!emitter || emitter.stopped)
|
|
@@ -138,11 +173,29 @@ export class AguiEmitterHolder {
|
|
|
138
173
|
await emitter.pump();
|
|
139
174
|
});
|
|
140
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Place every terminal the emitter still has waiting, then close the open run with the terminal
|
|
178
|
+
* owed to it, if one is. A terminal that arrived while a pump was reading was reported past that
|
|
179
|
+
* read, so another pump reads up to it and places it; one placed on the run the pump leaves open
|
|
180
|
+
* is the close the source has not synthesized, because the next prompt is not written yet. A
|
|
181
|
+
* close that fails here holds the terminal again on its way out, so the next re-establish still
|
|
182
|
+
* owes it. Every terminal goes this way, live or after an outage: a close of whatever run is open
|
|
183
|
+
* when the step runs would end the NEXT run when the flush before it read the next prompt.
|
|
184
|
+
*/
|
|
185
|
+
async settle(emitter) {
|
|
186
|
+
while (emitter.waitingTerminals > 0)
|
|
187
|
+
await emitter.pump();
|
|
188
|
+
const open = emitter.openRunId;
|
|
189
|
+
const owed = open === undefined ? undefined : emitter.takeOwed(open);
|
|
190
|
+
if (owed)
|
|
191
|
+
await this.closeOpenRun(emitter, owed);
|
|
192
|
+
}
|
|
141
193
|
/**
|
|
142
194
|
* Close the open run at a turn boundary the record stream cannot see.
|
|
143
195
|
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
196
|
+
* Non-throwing, work on the chain, as {@link adopt} and {@link flush}: a lifecycle hook calls it
|
|
197
|
+
* and a hook must not be made to fail. The promise handed back never rejects; it resolves once the
|
|
198
|
+
* source position the terminal is reported at has been read, for a hook that replies after that.
|
|
146
199
|
*
|
|
147
200
|
* It deliberately does NOT start an emitter. A session that never adopted a transcript has nothing
|
|
148
201
|
* open and nothing to close, and starting one here would reach the broker on the way OUT of a
|
|
@@ -156,19 +209,89 @@ export class AguiEmitterHolder {
|
|
|
156
209
|
* connector's own mapping site where the harness's record is in hand.
|
|
157
210
|
*/
|
|
158
211
|
closeRun(timestamp, error) {
|
|
212
|
+
if (this.shut || this.boundPath === undefined)
|
|
213
|
+
return Promise.resolve();
|
|
214
|
+
// THE SOURCE POSITION IS TAKEN HERE, AT THE HOOK, whatever the plane's state: it is what names
|
|
215
|
+
// the terminal's turn once the plane is up (see `AguiEmitter.queueTerminal`), and a position
|
|
216
|
+
// taken when a step runs would be past whatever the session wrote in between. The read is
|
|
217
|
+
// issued now and awaited by whoever places the terminal; a position that cannot be read is
|
|
218
|
+
// reported there, once, and the terminal dropped. The promise handed back resolves once the
|
|
219
|
+
// position is read, for a hook that must reply only after that.
|
|
220
|
+
const terminal = { timestamp, ...(error ? { error } : {}) };
|
|
221
|
+
let at;
|
|
222
|
+
try {
|
|
223
|
+
at = Promise.resolve(this.hooks.sourceEnd(this.boundPath));
|
|
224
|
+
}
|
|
225
|
+
catch (e) {
|
|
226
|
+
at = Promise.reject(e);
|
|
227
|
+
}
|
|
228
|
+
const taken = at.then(() => undefined, () => undefined);
|
|
229
|
+
const entry = { terminal, at };
|
|
230
|
+
// DECIDED AT THE HOOK, NOT WHEN A STEP RUNS. A terminal is not a record in the source, so a
|
|
231
|
+
// start cannot read it back, and a run the log has open with no terminal stays open on the wire
|
|
232
|
+
// until a later prompt closes it as a FINISH, which for a failed turn is the wrong terminal
|
|
233
|
+
// (Sol, review of 2026-10-12). Queued only by the step below, it would reach the emitter after
|
|
234
|
+
// whatever read runs before that step: the recovery pump of a re-establish (Sol, round 7 of
|
|
235
|
+
// 2026-10-13), the flush the stop hook queued ahead of the close (round 8, and live on the
|
|
236
|
+
// eleventh), or the flush queued behind a first start still waiting on the broker (round 16).
|
|
237
|
+
// That read may answer the NEXT prompt, whose mapping closes the failed run as a finish, and
|
|
238
|
+
// the terminal would then close its successor. So it goes to the live emitter now, which
|
|
239
|
+
// places it on its own turn when its pump reads up to it; with no live emitter, down, mid
|
|
240
|
+
// re-establish or before the first start has returned, it is HELD, and the start hands every
|
|
241
|
+
// held terminal to the emitter before any pump.
|
|
242
|
+
const live = this.emitter;
|
|
243
|
+
const queued = this.dead === undefined && live !== undefined && !live.stopped;
|
|
244
|
+
if (queued)
|
|
245
|
+
live.queueTerminal(entry);
|
|
246
|
+
else
|
|
247
|
+
this.held.push(entry);
|
|
159
248
|
this.enqueue(async () => {
|
|
160
249
|
const emitter = this.emitter;
|
|
250
|
+
// Behind the step that took the plane down: the terminal is held already, by the hook or
|
|
251
|
+
// handed back by the dying emitter, and the re-establish settles it.
|
|
161
252
|
if (this.dead || !emitter || emitter.stopped)
|
|
162
253
|
return;
|
|
163
254
|
await this.holdForLive();
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
// Reported for EITHER terminal. The mapper's job here is to stop attributing records to a run
|
|
168
|
-
// the published stream has closed, and an error close closes it exactly as a finish does.
|
|
169
|
-
if (runId !== null)
|
|
170
|
-
this.hooks.onRunClosed?.(runId);
|
|
255
|
+
if (this.held.includes(entry))
|
|
256
|
+
this.handOver(emitter, entry);
|
|
257
|
+
await this.settle(emitter);
|
|
171
258
|
});
|
|
259
|
+
return taken;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Close the run `emitter` has open with this terminal, reporting the close. A close that FAILS
|
|
263
|
+
* holds the terminal before the failure goes on to kill the plane: the terminal is owed to its
|
|
264
|
+
* turn whether the log took it or not, and a close that failed before its frame froze leaves
|
|
265
|
+
* the run open for the re-establish to find (Sol, review of 2026-10-13: a terminal whose own
|
|
266
|
+
* log write failed was lost, and the next prompt closed the failed run as a finish). A close
|
|
267
|
+
* that failed after the freeze is the frozen frame itself; the start that settles it closes the
|
|
268
|
+
* run, and the held terminal is then dropped for naming a run the wire has closed.
|
|
269
|
+
*/
|
|
270
|
+
async closeOpenRun(emitter, entry) {
|
|
271
|
+
const open = emitter.openRunId;
|
|
272
|
+
const cotal = open === undefined ? undefined : this.hooks.runMeta?.(open);
|
|
273
|
+
const { terminal } = entry;
|
|
274
|
+
let runId;
|
|
275
|
+
try {
|
|
276
|
+
runId = await emitter.closeRun({ timestamp: terminal.timestamp, ...(cotal ? { cotal } : {}), ...(terminal.error ? { error: terminal.error } : {}) });
|
|
277
|
+
}
|
|
278
|
+
catch (e) {
|
|
279
|
+
// Held FIRST, ahead of anything the dying emitter still holds: this turn ended before any
|
|
280
|
+
// the emitter is still waiting on.
|
|
281
|
+
if (open !== undefined)
|
|
282
|
+
this.held.unshift(entry);
|
|
283
|
+
throw e;
|
|
284
|
+
}
|
|
285
|
+
// Reported for EITHER terminal. The mapper's job here is to stop attributing records to a run
|
|
286
|
+
// the published stream has closed, and an error close closes it exactly as a finish does.
|
|
287
|
+
if (runId !== null)
|
|
288
|
+
this.hooks.onRunClosed?.(runId);
|
|
289
|
+
}
|
|
290
|
+
/** Hand a held terminal to a live emitter, which places it on its turn when its pump reads up
|
|
291
|
+
* to the position it was reported at. */
|
|
292
|
+
handOver(emitter, entry) {
|
|
293
|
+
this.held = this.held.filter((h) => h !== entry);
|
|
294
|
+
emitter.queueTerminal(entry);
|
|
172
295
|
}
|
|
173
296
|
/**
|
|
174
297
|
* Start at most once, bind the path once.
|
|
@@ -176,7 +299,7 @@ export class AguiEmitterHolder {
|
|
|
176
299
|
* Returns `undefined` when there is nothing to run against — a dead holder or a path this holder
|
|
177
300
|
* cannot take — rather than throwing, so a caller cannot mistake "no emitter" for "pumped".
|
|
178
301
|
*/
|
|
179
|
-
async ensureStarted(path
|
|
302
|
+
async ensureStarted(path) {
|
|
180
303
|
if (this.dead)
|
|
181
304
|
return undefined;
|
|
182
305
|
if (typeof path !== "string" || path.length === 0)
|
|
@@ -195,51 +318,47 @@ export class AguiEmitterHolder {
|
|
|
195
318
|
}
|
|
196
319
|
if (this.emitter)
|
|
197
320
|
return this.emitter;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
this.die(e);
|
|
239
|
-
return undefined;
|
|
240
|
-
}
|
|
321
|
+
// A CLOSED HOLDER NEVER STARTS, even for work that was already queued when it closed. Starting
|
|
322
|
+
// reaches the broker and opens a write-ahead log for a holder its owner has already released,
|
|
323
|
+
// which is the opposite of releasing it. Pumping an emitter that is ALREADY running is a
|
|
324
|
+
// different act and is deliberately still allowed: see the note on `close`.
|
|
325
|
+
if (this.shut)
|
|
326
|
+
return undefined;
|
|
327
|
+
try {
|
|
328
|
+
// WHAT KEEPS THIS TO ONE EMITTER AT A TIME IS THE CHAIN. Every caller of this method runs
|
|
329
|
+
// inside one serialized step, so a start is never in flight while another step reads
|
|
330
|
+
// `this.emitter`; a same-path call that arrives during a start is queued behind it and finds
|
|
331
|
+
// the emitter set. The `boundPath` gate above refuses a DIFFERENT path, and the chain is
|
|
332
|
+
// also what keeps two flushes from reading the source at one cursor.
|
|
333
|
+
//
|
|
334
|
+
// A start after {@link revive} is the same call with the FIRST adopt's path and context, so
|
|
335
|
+
// the emitter comes back as it first came up: a bound source's boundary is the connector's to
|
|
336
|
+
// keep across the two, and the write-ahead log on disk carries the cursor and any pending
|
|
337
|
+
// frame from the emitter that stopped.
|
|
338
|
+
//
|
|
339
|
+
// WHAT A SECOND EMITTER WOULD BREAK IS NOT DESCRIBED HERE, AND THE REASON IS THE POINT.
|
|
340
|
+
// A comment that restates a guarantee it does not own drifts away from it, and nothing in
|
|
341
|
+
// the edit that moves the guarantee tells the author this sentence exists. The refusals
|
|
342
|
+
// belong next to the code that performs them: the record's are in `subject-frontier.ts`,
|
|
343
|
+
// the log's stale-handle check is in `event-wal.ts`, and the expectation carried on a
|
|
344
|
+
// publish is the broker's to enforce.
|
|
345
|
+
//
|
|
346
|
+
// What this file does own is the bracket interleave, and it is OPEN: two emitters would
|
|
347
|
+
// each keep their own bracket machine and nothing detects the interleave. That is the
|
|
348
|
+
// stated writer-cardinality limit.
|
|
349
|
+
this.emitter = await this.startEmitter(path, this.startContext);
|
|
350
|
+
// A terminal reported while this first start was in flight goes to the emitter now, before
|
|
351
|
+
// the flush queued behind the start pumps. A re-establish hands its held terminals over
|
|
352
|
+
// itself, after seeding the last turn the dying emitter had begun.
|
|
353
|
+
if (!this.reviving)
|
|
354
|
+
for (const entry of [...this.held])
|
|
355
|
+
this.handOver(this.emitter, entry);
|
|
356
|
+
return this.emitter;
|
|
357
|
+
}
|
|
358
|
+
catch (e) {
|
|
359
|
+
this.die(e);
|
|
360
|
+
return undefined;
|
|
241
361
|
}
|
|
242
|
-
return this.emitter;
|
|
243
362
|
}
|
|
244
363
|
die(e) {
|
|
245
364
|
// FIRST failure wins. A later one is a consequence of this one, and overwriting would replace
|
|
@@ -247,7 +366,92 @@ export class AguiEmitterHolder {
|
|
|
247
366
|
if (this.dead)
|
|
248
367
|
return;
|
|
249
368
|
this.dead = e;
|
|
250
|
-
|
|
369
|
+
// Every terminal the dying emitter still held, and the last turn it had begun on the wire: the
|
|
370
|
+
// terminals it had were handed to it when it was the live one, and the fresh emitter takes
|
|
371
|
+
// them back. With no emitter (a fresh start that failed before it returned) what was carried
|
|
372
|
+
// from the first failure of this outage still holds: nothing was published since the plane
|
|
373
|
+
// went down.
|
|
374
|
+
if (this.emitter !== undefined) {
|
|
375
|
+
const left = this.emitter.unsettled();
|
|
376
|
+
this.held.push(...left.terminals);
|
|
377
|
+
this.lastTurn = { turn: left.lastTurn };
|
|
378
|
+
}
|
|
379
|
+
if (this.shut) {
|
|
380
|
+
this.hooks.onError(e, null);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
// AT ONCE for the first failure, off this step: a transient fault is over by the time the
|
|
384
|
+
// start runs, and the turns it left unpublished are on the wire before the agent's next
|
|
385
|
+
// action. A failure under a re-establish is the plane still down, paced by `retryMs`, fixed:
|
|
386
|
+
// it neither doubles nor caps, so the plane is back within one wait of the fault clearing.
|
|
387
|
+
const delay = this.retried ? (this.hooks.retryMs ?? 1_000) : 0;
|
|
388
|
+
this.retried = true;
|
|
389
|
+
this.reviveTimer = setTimeout(() => this.revive(), delay);
|
|
390
|
+
this.hooks.onError(e, delay);
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Re-establish the plane after a failure: clear the failure, drop the emitter, and queue a start
|
|
394
|
+
* and a pump on the chain. The start is a fresh `startEmitter`, which reopens the
|
|
395
|
+
* write-ahead log, settles any frame it left pending, and builds the connector's mapper from the
|
|
396
|
+
* bracket state the log holds, before reading on from the stored cursor. A failure here is
|
|
397
|
+
* reported like the first, and the next attempt follows after `retryMs`.
|
|
398
|
+
*
|
|
399
|
+
* THE EMITTER IS DROPPED WHETHER OR NOT IT HALTED. A failure that leaves it running leaves it
|
|
400
|
+
* running with state the log never accepted: a publish that failed on the wire leaves the frame
|
|
401
|
+
* frozen as pending, which every later pump refuses to read past; a write that failed before the
|
|
402
|
+
* freeze leaves the mapper holding a run the log never opened, so the re-read of the same record
|
|
403
|
+
* closes a run the brackets never saw and the pump refuses that too. Measured on 2026-10-12 with
|
|
404
|
+
* the real reader, mapper, log and frontier: with the running emitter kept, both outages wedged
|
|
405
|
+
* the plane for good behind a retry every minute. Only a start settles the pending frame, and
|
|
406
|
+
* only a start rebuilds the mapper from the log, so the re-establish is a start.
|
|
407
|
+
*/
|
|
408
|
+
revive() {
|
|
409
|
+
if (this.reviveTimer !== undefined)
|
|
410
|
+
clearTimeout(this.reviveTimer);
|
|
411
|
+
this.reviveTimer = undefined;
|
|
412
|
+
if (this.boundPath === undefined)
|
|
413
|
+
return;
|
|
414
|
+
const path = this.boundPath;
|
|
415
|
+
// Not guarded on `shut` here: close cancels the timer, and `enqueue` refuses a shut holder,
|
|
416
|
+
// so a revive that ran after close would clear the failure and then start nothing. The
|
|
417
|
+
// failure staying readable after close is what shows the timer was cancelled.
|
|
418
|
+
this.dead = undefined;
|
|
419
|
+
this.emitter = undefined;
|
|
420
|
+
this.reviving = true;
|
|
421
|
+
this.enqueue(async () => {
|
|
422
|
+
const emitter = await this.ensureStarted(path);
|
|
423
|
+
if (!emitter || emitter.stopped) {
|
|
424
|
+
// A start that failed has died again, and a terminal is held for the carried run; a start
|
|
425
|
+
// that came back stopped has nothing to hold for.
|
|
426
|
+
this.reviving = false;
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
await this.holdForLive();
|
|
430
|
+
// The held terminals go to the emitter BEFORE the pump reads on; handed here, AFTER the
|
|
431
|
+
// start, so a terminal that arrived while the start was in flight is among them. The records
|
|
432
|
+
// of those turns were written before the terminals arrived and the pump has not read them
|
|
433
|
+
// yet, so a close before the pump would drop them; but the unread records may also hold the
|
|
434
|
+
// NEXT prompt, whose mapping closes the held run as a finish, and the emitter publishes an
|
|
435
|
+
// owed error in that finish's place, after the run's own records and before the next run
|
|
436
|
+
// opens (Sol, review of 2026-10-13, through the built MCP entry point: the held error was
|
|
437
|
+
// dropped behind that synthesized finish). A held finish is that synthesized finish. The
|
|
438
|
+
// last turn the dying emitter had begun goes first, so a terminal reported before any
|
|
439
|
+
// record the pump reads is placed on it.
|
|
440
|
+
if (this.lastTurn) {
|
|
441
|
+
emitter.seedLastTurn(this.lastTurn.turn);
|
|
442
|
+
this.lastTurn = undefined;
|
|
443
|
+
}
|
|
444
|
+
for (const entry of [...this.held])
|
|
445
|
+
this.handOver(emitter, entry);
|
|
446
|
+
await emitter.pump();
|
|
447
|
+
// A terminal the pump placed on the run it left open closes it here. A close that fails here
|
|
448
|
+
// holds the terminal again on its way out, so the next re-establish still owes it. The
|
|
449
|
+
// re-establish has gone through only once the whole of it has, owed terminal included: a
|
|
450
|
+
// terminal that keeps failing to write fails the re-establish, and the next attempt is paced.
|
|
451
|
+
await this.settle(emitter);
|
|
452
|
+
this.reviving = false;
|
|
453
|
+
this.retried = false;
|
|
454
|
+
});
|
|
251
455
|
}
|
|
252
456
|
/** Wait for the endpoint to be live, if the caller supplied a wait. SHARED: while one step
|
|
253
457
|
* waits, every later step joins the same promise, so a burst of flushes during one outage
|
package/dist/agui-holder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agui-holder.js","sourceRoot":"","sources":["../src/agui-holder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agui-holder.js","sourceRoot":"","sources":["../src/agui-holder.ts"],"names":[],"mappings":"AA6EA;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAqC;IACrE,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,CACtB,IAAI,CAAC,GAAG,CACN,0BAA0B,CAAC,CAAC,OAAO,EAAE;QACnC,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,uCAAuC,CAAC,CAAC,CAAC,wCAAwC,SAAS,IAAI,CAAC,CAChJ,CAAC;AACN,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,OAAO,iBAAiB;IAkET;IACA;IAlEX,OAAO,CAAkB;IACjC;oDACgD;IACxC,SAAS,CAAU;IAC3B;;;;;;;;;;;;;OAaG;IACK,IAAI,CAAS;IACrB,mGAAmG;IAC3F,YAAY,CAAgB;IACpC;6FACyF;IACjF,OAAO,GAAG,KAAK,CAAC;IAChB,WAAW,CAAiC;IACpD;;;;;;;;;OASG;IACK,IAAI,GAAuB,EAAE,CAAC;IACtC;kGAC8F;IACtF,QAAQ,CAAuC;IACvD;;wGAEoG;IAC5F,QAAQ,GAAG,KA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AAQ,CAAC;IACvB,CAAC;IAEO,OAAO,CAAC,IAAyB;QACvC,+FAA+F;QAC/F,6FAA6F;QAC7F,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAU,CAAC,CAAC,CAAC;IACxE,CAAC;IAED,4FAA4F;IAC5F,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocsBundle } from "./docs.js";
|
|
2
2
|
/** The installed Cotal version, for stamping the orientation card and other surfaces. */
|
|
3
|
-
export declare const DOCS_VERSION = "0.
|
|
3
|
+
export declare const DOCS_VERSION = "0.82.0";
|
|
4
4
|
export declare function loadDocsBundle(): DocsBundle;
|
|
5
5
|
//# sourceMappingURL=docs-bundle.generated.d.ts.map
|