@memberjunction/integration-progress-artifacts 6.2.0-edge.6 → 6.2.0-edge.7

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.
@@ -1,13 +1,17 @@
1
- import type { IntegrationProgressEvent, IntegrationProgressEventType, IntegrationRunManifest } from './types.js';
1
+ import type { IntegrationProgressEvent, IntegrationProgressEventType, IntegrationRunManifest, IntegrationRunResult, SyncWarning } from './types.js';
2
2
  export interface EmitterOptions {
3
- /** Root directory containing per-run subdirs. Defaults to ./logs/integration-runs. */
3
+ /**
4
+ * Root directory containing per-run subdirs. Defaults to {@link DefaultRunArtifactRoot} —
5
+ * `MJ_INTEGRATION_RUN_ARTIFACT_ROOT` when set, else `<cwd>/logs/integration-runs`.
6
+ */
4
7
  rootDir?: string;
5
8
  /** Optional human-facing console mirror (default false — file is the primary record). */
6
9
  consoleMirror?: boolean;
7
10
  /**
8
- * Max number of per-run subdirs to retain under rootDir. On each new run, older run dirs beyond
9
- * this count (by mtime) are pruned so the logs directory never grows unbounded across runs.
10
- * Defaults to MJ_INTEGRATION_MAX_RUN_DIRS env or 200. Set 0 to disable pruning.
11
+ * Max number of per-run subdirs to retain under rootDir. On each new run, run dirs beyond this
12
+ * count are pruned so the logs directory never grows unbounded across runs. See
13
+ * {@link IntegrationProgressEmitter.pruneOldRuns} for WHICH runs go: finished ones first, oldest
14
+ * by run start time. Defaults to MJ_INTEGRATION_MAX_RUN_DIRS env or 200. Set 0 to disable pruning.
11
15
  */
12
16
  maxRunDirs?: number;
13
17
  }
@@ -19,6 +23,45 @@ export interface EmitterOptions {
19
23
  * hook never breaks the sync or the durable write.
20
24
  */
21
25
  export type IntegrationProgressPublishHook = (manifest: IntegrationRunManifest, event: IntegrationProgressEvent) => void;
26
+ /**
27
+ * Everything a resumed emitter has to inherit from the journal of the run it is re-attaching to.
28
+ *
29
+ * Built by {@link IntegrationProgressEmitter.Resume} BEFORE the emitter is constructed — never
30
+ * inside `bootstrap()`. `emit()` takes `++this.seq` synchronously, so a caller that emits in the
31
+ * same tick as construction would otherwise race the async seeding and restart the sequence at 1,
32
+ * which is precisely the invisibility bug resume exists to avoid.
33
+ */
34
+ interface ResumedRunState {
35
+ /** Highest `seq` present in the journal; the resumed emitter's first event is this + 1. */
36
+ lastSeq: number;
37
+ /** Applied-count aggregate re-derived from the pre-restart journal. */
38
+ aggregateCounts: {
39
+ processed: number;
40
+ succeeded: number;
41
+ failed: number;
42
+ skipped: number;
43
+ };
44
+ /** Errors already recorded pre-restart, so the terminal result carries the whole run. */
45
+ errors: NonNullable<IntegrationRunResult['errors']>;
46
+ /** Warnings already recorded pre-restart, same reason. */
47
+ warnings: SyncWarning[];
48
+ /** Latest checkpoint sequence seen pre-restart (kept unless a later checkpoint supersedes it). */
49
+ latestCheckpointSeq?: number;
50
+ /** Original run start, so `durationMs` spans the whole run rather than the resumed tail. */
51
+ startMs: number;
52
+ /** Events already in the journal, so the terminal record's `eventCount` covers the whole run. */
53
+ eventCount: number;
54
+ /** Highest-sequence event already in the journal, so the terminal record's `latestEvent` is real. */
55
+ latestEvent?: IntegrationProgressEvent;
56
+ }
57
+ /** Thrown when a run cannot be resumed. Carries a machine-checkable reason. */
58
+ export declare class IntegrationRunResumeError extends Error {
59
+ /** `'not-found'` — no manifest; `'already-terminal'` — result.json exists. */
60
+ readonly Reason: 'not-found' | 'already-terminal';
61
+ constructor(message: string,
62
+ /** `'not-found'` — no manifest; `'already-terminal'` — result.json exists. */
63
+ Reason: 'not-found' | 'already-terminal');
64
+ }
22
65
  /**
23
66
  * Writes structured progress artifacts to `<rootDir>/<runID>/`:
24
67
  * - manifest.json (written once at start)
@@ -43,7 +86,17 @@ export declare class IntegrationProgressEmitter {
43
86
  private errors;
44
87
  private warnings;
45
88
  private latestCheckpointSeq?;
89
+ /**
90
+ * The run's journal line count and its highest-sequence event, tracked as events are written so
91
+ * {@link writeTerminal} can persist both. Without them a reader has to open the whole journal to
92
+ * count its lines and to recover its last line — two of the four full-file reads that made a run
93
+ * listing O(runs x filesize) (MJ-RUN-5/21).
94
+ */
95
+ private eventsWritten;
96
+ private lastEvent?;
46
97
  private readonly startMs;
98
+ /** True when this emitter re-attached to an existing run (see {@link Resume}). */
99
+ private readonly resumed;
47
100
  private static _publishHook?;
48
101
  /**
49
102
  * Register (or clear, with no arg) the global publish hook. The server registers this at startup
@@ -53,7 +106,55 @@ export declare class IntegrationProgressEmitter {
53
106
  static SetPublishHook(hook?: IntegrationProgressPublishHook): void;
54
107
  private readonly root;
55
108
  private readonly maxRunDirs;
56
- constructor(manifest: IntegrationRunManifest, opts?: EmitterOptions);
109
+ constructor(manifest: IntegrationRunManifest, opts?: EmitterOptions,
110
+ /**
111
+ * Internal — supplied only by {@link Resume}. Its presence switches the emitter into
112
+ * resume mode: the manifest is left exactly as it is on disk and retention pruning is
113
+ * skipped (see {@link bootstrap}).
114
+ */
115
+ resumeState?: ResumedRunState);
116
+ /** The run this emitter writes to. */
117
+ get RunID(): string;
118
+ /**
119
+ * The highest sequence number emitted so far. A client tailing with `sinceSeq` only sees events
120
+ * ABOVE its cursor, so a resumed emitter must continue from here — this getter is what lets a
121
+ * caller (and a test) assert it did.
122
+ */
123
+ get LatestSeq(): number;
124
+ /** Whether this emitter re-attached to an existing run rather than opening a new one. */
125
+ get IsResumed(): boolean;
126
+ /**
127
+ * Re-attach to an existing, still-in-flight run and continue writing to its artifacts.
128
+ *
129
+ * Why this exists: the RSU pipeline restarts the API process as one of its own steps. The
130
+ * emitter dies mid-run, its `run.end` handler never fires, and the run stays flagged in-flight
131
+ * forever. The work that finishes the pipeline then happens in a NEW process, which — without
132
+ * this — could only open a brand-new run, invisible to every client already tailing the old one
133
+ * (the reader returns strictly `seq > cursor`, and a fresh emitter restarts at 1, so those
134
+ * events sort BELOW the client's cursor and are unrecoverable through that interface; worse,
135
+ * the resolver echoes the unchanged cursor back and the client polls forever receiving nothing).
136
+ *
137
+ * Three invariants make it safe:
138
+ * 1. **The manifest is preserved, never rewritten.** The normal write is truncate-or-create,
139
+ * and the reader treats a missing/unparseable manifest as "run does not exist" — so a
140
+ * concurrent read during that write makes the run VANISH rather than degrade.
141
+ * 2. **The sequence continues from the journal's last line**, so a tailing client's cursor
142
+ * keeps advancing and it sees the post-restart events.
143
+ * 3. **A run that already has a `result.json` is refused**, so a terminal record can never be
144
+ * written twice or overwritten by a late re-attachment.
145
+ *
146
+ * The append-only journal is what makes all of this possible: it is never truncated, so its
147
+ * last line is an authoritative high-water mark for the sequence.
148
+ *
149
+ * @throws {IntegrationRunResumeError} when the run has no manifest, or is already terminal.
150
+ */
151
+ static Resume(runID: string, opts?: EmitterOptions): Promise<IntegrationProgressEmitter>;
152
+ /**
153
+ * Rebuilds the emitter-side state a run accumulated before it was killed, by replaying its
154
+ * append-only journal. Applies exactly the same aggregation rules `emit()` does, so a resumed
155
+ * run's terminal result covers the WHOLE run rather than only the post-restart tail.
156
+ */
157
+ private static replayJournal;
57
158
  /** Emit a generic event. */
58
159
  Emit(eventType: IntegrationProgressEventType, partial?: Partial<Omit<IntegrationProgressEvent, 'ts' | 'seq' | 'eventType'>>): void;
59
160
  /** @deprecated Use {@link Emit}. */
@@ -62,12 +163,28 @@ export declare class IntegrationProgressEmitter {
62
163
  RunStart(message?: string): void;
63
164
  /** @deprecated Use {@link RunStart}. */
64
165
  runStart(message?: string): void;
166
+ /**
167
+ * Announce that this process picked a killed run back up. Emits the already-declared
168
+ * `'run.resumed'` event carrying the already-declared `'Restart'` trigger type — deliberately
169
+ * NOT a new event type, and deliberately in the event's `data` rather than on the manifest,
170
+ * because the manifest must not be rewritten (see {@link Resume}).
171
+ *
172
+ * `resumedFromSeq` is the sequence the pre-restart process reached; a client can use it to tell
173
+ * "these events are the continuation" from "these are a fresh run".
174
+ */
175
+ RunResumed(message?: string, data?: Record<string, unknown>): void;
65
176
  StageStart(stage: string, message?: string): void;
66
177
  /** @deprecated Use {@link StageStart}. */
67
178
  stageStart(stage: string, message?: string): void;
68
- StageComplete(stage: string, counts?: IntegrationProgressEvent['counts']): void;
179
+ /**
180
+ * `counts` is the canonical quartet the reader aggregates. `data` carries anything a specific
181
+ * stage needs to survive that is not part of it — notably the CREATED vs UPDATED split, which
182
+ * the quartet folds into `succeeded` and which history has to show separately
183
+ * (plan.md: "Synced is different between created and updated").
184
+ */
185
+ StageComplete(stage: string, counts?: IntegrationProgressEvent['counts'], data?: Record<string, unknown>): void;
69
186
  /** @deprecated Use {@link StageComplete}. */
70
- stageComplete(stage: string, counts?: IntegrationProgressEvent['counts']): void;
187
+ stageComplete(stage: string, counts?: IntegrationProgressEvent['counts'], data?: Record<string, unknown>): void;
71
188
  StageError(stage: string, message: string, data?: Record<string, unknown>): void;
72
189
  /** @deprecated Use {@link StageError}. */
73
190
  stageError(stage: string, message: string, data?: Record<string, unknown>): void;
@@ -136,10 +253,47 @@ export declare class IntegrationProgressEmitter {
136
253
  flush(): Promise<void>;
137
254
  private bootstrap;
138
255
  /**
139
- * Deletes the oldest per-run subdirs under the root, keeping the most recent `maxRunDirs` (by
140
- * mtime). Disabled when maxRunDirs <= 0. Never removes the current run dir (it's the newest).
256
+ * Closes off a journal whose final line was truncated by the kill, so the first resumed event
257
+ * starts on a line of its own. Best-effort: a missing or unreadable journal simply means there
258
+ * is nothing to repair.
259
+ */
260
+ private terminateTornJournalLine;
261
+ /**
262
+ * Enforces the retention cap on run dirs under the root, sacrificing the runs whose evidence is
263
+ * worth least. Disabled when maxRunDirs <= 0; best-effort throughout.
264
+ *
265
+ * Two rules, and neither is cosmetic:
266
+ *
267
+ * 1. **Order by run START time, read from each manifest — never by mtime.** A run that stranded
268
+ * stops being written to, so its mtime freezes at the moment it stranded. Under the previous
269
+ * newest-first-by-mtime rule that sorted it to the BACK of the list, which made the evidence
270
+ * for the one failure an operator most needs to explain the FIRST thing deleted. A start time
271
+ * never moves. (The old doc comment claimed pruning "never removes the current run dir (it's
272
+ * the newest)" — true of a live run, and exactly wrong about a stranded one.)
273
+ * 2. **A run with no `result.json` is sacrificed last.** No terminal record means the run is
274
+ * either still in flight — including THIS one — or stranded; in both cases nothing else
275
+ * records what it did, whereas a finished run's outcome is durable in its own `result.json`.
276
+ * The cap stays a hard bound: when only result-less runs remain to delete, the oldest of them
277
+ * go, so a fleet that strands runs cannot grow the directory without limit.
278
+ *
279
+ * The current run's own dir is exempt outright. Rule 2 already covers it (it has no result yet),
280
+ * but saying so makes the guarantee independent of what any manifest claims its start time is.
281
+ *
282
+ * Retention consequence worth stating plainly: a finished run's artifacts are now shorter-lived
283
+ * than they were, and an unfinished one's longer-lived. That is the trade — a completed run's
284
+ * numbers survive in its `result.json` and in the database; a stranded run's journal is the only
285
+ * account of it that exists.
141
286
  */
142
287
  private pruneOldRuns;
288
+ /**
289
+ * A run's start time, from its manifest. Falls back to the directory's mtime when the manifest is
290
+ * missing or unreadable — which is what a dir another process created moments ago looks like, and
291
+ * a fresh mtime keeps it at the safe end of the sacrifice order rather than deleting it as
292
+ * "oldest". Only then 0, meaning "nothing is known about this dir".
293
+ */
294
+ private static runStartMs;
295
+ /** Whether a run dir holds a terminal record — i.e. the run finished and said so. */
296
+ private static hasTerminalRecord;
143
297
  private writeTerminal;
144
298
  /** Reconstruct a {@link SyncWarning} from an emitted `'warning'` event. */
145
299
  private warningFromEvent;
@@ -148,4 +302,5 @@ export declare class IntegrationProgressEmitter {
148
302
  /** @deprecated Use {@link NewRunID}. */
149
303
  static newRunID(prefix?: string): string;
150
304
  }
305
+ export {};
151
306
  //# sourceMappingURL=IntegrationProgressEmitter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationProgressEmitter.d.ts","sourceRoot":"","sources":["../src/IntegrationProgressEmitter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACR,wBAAwB,EACxB,4BAA4B,EAG5B,sBAAsB,EAGzB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC3B,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yFAAy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