stitchkit 0.94.1 → 0.95.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/CHANGELOG.md +40 -0
- package/dist/agent-runtime/provider-origin.d.ts +7 -0
- package/dist/agent-runtime/provider-origin.d.ts.map +1 -1
- package/dist/agent-runtime/run-operation-lifecycle.d.ts.map +1 -1
- package/dist/application/process-lifecycle-transitions.d.ts +175 -0
- package/dist/application/process-lifecycle-transitions.d.ts.map +1 -0
- package/dist/application/process-lifecycle.d.ts +3 -131
- package/dist/application/process-lifecycle.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime/harness.js +1 -1
- package/dist/entrypoints/agent-runtime.js +1 -1
- package/dist/entrypoints/application.d.ts +2 -1
- package/dist/entrypoints/application.d.ts.map +1 -1
- package/dist/entrypoints/application.js +145 -56
- package/dist/{index-7f68ghdn.js → index-8zja4pkf.js} +23 -1
- package/llms/application.2.txt +5 -5
- package/llms/application.txt +58 -23
- package/llms/stitchkit.txt +3 -3
- package/llms/{upgrading-0.37.0-0.50.0.txt → upgrading-0.37.0-0.53.0.txt} +25 -3
- package/llms/{upgrading-0.53.0-0.67.0.txt → upgrading-0.55.0-0.68.0.txt} +53 -25
- package/llms/{upgrading-0.68.0-0.94.0.txt → upgrading-0.69.0-0.95.0.txt} +45 -53
- package/llms/upgrading.txt +3 -3
- package/llms-full.txt +108 -31
- package/llms.txt +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,46 @@ additive**; the first breaking change landed in 0.10.0. Grep the file for
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [0.95.0] — 2026-09-23
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking changes
|
|
21
|
+
|
|
22
|
+
**Who must act:** a project that reads `downtimeMs` from a lifecycle start fact,
|
|
23
|
+
switches exhaustively over `LifecycleTermination`, `PreviousExit` or
|
|
24
|
+
`ProcessLifecycleFact`, imports `TransitionReadyInput`, or drives
|
|
25
|
+
`createProcessLifecycleLedger` by hand without `recordReady`. A project that uses `lifecycleLedgerResource` and only
|
|
26
|
+
stores the ledger raises its version range; a ledger file written by an earlier
|
|
27
|
+
version loads unchanged.
|
|
28
|
+
|
|
29
|
+
- `stitchkit/application` — **the lifecycle ledger measures the window nobody
|
|
30
|
+
answered in.** `downtimeMs` was `startedAt` of the new process minus
|
|
31
|
+
`stoppedAt` of the old one, so a 110 s forced drain read as the same ~4 s
|
|
32
|
+
before and after it was fixed. A run now records `unavailableAt` when its
|
|
33
|
+
admission stops (`lifecycleLedgerResource` does it at `stopAdmission`; by
|
|
34
|
+
hand, `ledger.recordDraining()`) and passes an open `draining` phase.
|
|
35
|
+
`ReadyFact.downtimeMs` is `readyAt` of the new run minus `unavailableAt` of
|
|
36
|
+
the last run that served, with `unavailableSince` naming that moment; the old
|
|
37
|
+
number stays on `StartFact` as `processGapMs`. A run that stops before it was
|
|
38
|
+
ever ready ends `startup-failed` — recorded by itself on a rolled-back
|
|
39
|
+
startup, or by the successor that finds it open — and `PreviousExit` gains
|
|
40
|
+
the same value. A start closes every abandoned open run it finds, not only
|
|
41
|
+
the newest. New names: `DrainingFact`, `transitionProcessDraining`.
|
|
42
|
+
`TransitionReadyInput` is `TransitionRunInput`: one shape — which run, and
|
|
43
|
+
when — taken by readiness and draining alike, and extended by
|
|
44
|
+
`TransitionShutdownInput`; a second name for it would be an alias.
|
|
45
|
+
`// before: ledger.subscribe((fact) => fact.type === 'started' && report(fact.downtimeMs))` →
|
|
46
|
+
`// after: ledger.subscribe((fact) => fact.type === 'ready' && report(fact.downtimeMs))`
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- `stitchkit/agent-runtime` — **a provider stream cut mid-answer is a
|
|
51
|
+
`provider_failure` on Bun 1.4 too.** Only a throw out of `doStream()` was
|
|
52
|
+
marked as the provider's; Bun 1.4 delivers a cut connection as a rejected
|
|
53
|
+
read of the stream `doStream()` already returned (`AI_APICallError: Failed to
|
|
54
|
+
process successful response`), and that unmarked error ended the run as
|
|
55
|
+
`runtime_failure`. Every failed read of the provider's stream is now marked;
|
|
56
|
+
the runtime's own failures while consuming it keep their classes.
|
|
57
|
+
|
|
18
58
|
## [0.94.1] — 2026-09-23
|
|
19
59
|
|
|
20
60
|
### Added
|
|
@@ -9,4 +9,11 @@ export declare function isOwnInputRefusal(error: unknown): boolean;
|
|
|
9
9
|
export declare function markProviderOrigin<T>(error: T): T;
|
|
10
10
|
/** Whether this error came out of the provider call itself. */
|
|
11
11
|
export declare function hasProviderOrigin(error: unknown): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The provider's stream, with every failed read marked as the provider's.
|
|
14
|
+
*
|
|
15
|
+
* Only reads of this stream pass through here: the runtime's own work on the
|
|
16
|
+
* parts happens downstream, so its failures stay unmarked.
|
|
17
|
+
*/
|
|
18
|
+
export declare function markProviderStream<T>(stream: ReadableStream<T>): ReadableStream<T>;
|
|
12
19
|
//# sourceMappingURL=provider-origin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-origin.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/provider-origin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-origin.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/provider-origin.ts"],"names":[],"mappings":"AAyBA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMzD;AAED,oEAAoE;AACpE,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAGjD;AAED,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAkBlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-operation-lifecycle.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-operation-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAqB,MAAM,IAAI,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EACL,KAAK,QAAQ,EAGb,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD,KAAK,sBAAsB,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEnE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,iBAAiB,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,IAAI,QAAQ,CAAC;IACvB,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,GAAG,IAAI,IAAI,CAAC;IACZ,oEAAoE;IACpE,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,uEAAuE;AACvE,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,gCAAgC;IAgDrF,gBAAgB,SAAS,MAAM,GAAG,IAAI;IAGhC,YAAY,QACT,aAAa,QACd,MAAM,kBACI,MAAM,GACrB,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"run-operation-lifecycle.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/run-operation-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAqB,MAAM,IAAI,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EACL,KAAK,QAAQ,EAGb,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGjD,KAAK,sBAAsB,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEnE,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,iBAAiB,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,IAAI,QAAQ,CAAC;IACvB,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9C,OAAO,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,GAAG,IAAI,IAAI,CAAC;IACZ,oEAAoE;IACpE,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,uEAAuE;AACvE,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,gCAAgC;IAgDrF,gBAAgB,SAAS,MAAM,GAAG,IAAI;IAGhC,YAAY,QACT,aAAa,QACd,MAAM,kBACI,MAAM,GACrB,OAAO,CAAC,aAAa,CAAC;IAyCzB,cAAc,OAAO,MAAM,GAAG,IAAI;IAQlC,mBAAmB,QAAQ,OAAO,GAAG,IAAI;IAIzC,eAAe,cAAc,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnD,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5B,MAAM,QAAQ,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;EAavD"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Where a run is. `active` and `draining` are open: the run is alive, and
|
|
4
|
+
* `draining` means it has stopped admitting work — from `unavailableAt` on
|
|
5
|
+
* nobody new is answered. The rest are how it ended. `clean`, `forced` and
|
|
6
|
+
* `startup-failed` are recorded by the run itself; `hot-reload` and `abnormal`
|
|
7
|
+
* by its successor, because the run never got to say — the same pid started
|
|
8
|
+
* again, or a different pid found it still open. `abnormal` is a crash
|
|
9
|
+
* observed from outside, not a kill the process acknowledged, so the two stay
|
|
10
|
+
* distinct. `startup-failed` is a run that ended before it was ever ready,
|
|
11
|
+
* whether it said so itself or a successor found it open.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LifecycleTerminationSchema: z.ZodEnum<{
|
|
14
|
+
abnormal: "abnormal";
|
|
15
|
+
active: "active";
|
|
16
|
+
clean: "clean";
|
|
17
|
+
draining: "draining";
|
|
18
|
+
forced: "forced";
|
|
19
|
+
"hot-reload": "hot-reload";
|
|
20
|
+
"startup-failed": "startup-failed";
|
|
21
|
+
}>;
|
|
22
|
+
export type LifecycleTermination = z.infer<typeof LifecycleTerminationSchema>;
|
|
23
|
+
export declare const LifecycleRunSchema: z.ZodObject<{
|
|
24
|
+
runId: z.ZodString;
|
|
25
|
+
pid: z.ZodNumber;
|
|
26
|
+
version: z.ZodString;
|
|
27
|
+
startedAt: z.ZodString;
|
|
28
|
+
readyAt: z.ZodNullable<z.ZodString>;
|
|
29
|
+
unavailableAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
31
|
+
termination: z.ZodEnum<{
|
|
32
|
+
abnormal: "abnormal";
|
|
33
|
+
active: "active";
|
|
34
|
+
clean: "clean";
|
|
35
|
+
draining: "draining";
|
|
36
|
+
forced: "forced";
|
|
37
|
+
"hot-reload": "hot-reload";
|
|
38
|
+
"startup-failed": "startup-failed";
|
|
39
|
+
}>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export type LifecycleRun = z.infer<typeof LifecycleRunSchema>;
|
|
42
|
+
export declare const LifecycleStateSchema: z.ZodObject<{
|
|
43
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
44
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
45
|
+
runId: z.ZodString;
|
|
46
|
+
pid: z.ZodNumber;
|
|
47
|
+
version: z.ZodString;
|
|
48
|
+
startedAt: z.ZodString;
|
|
49
|
+
readyAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
unavailableAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
52
|
+
termination: z.ZodEnum<{
|
|
53
|
+
abnormal: "abnormal";
|
|
54
|
+
active: "active";
|
|
55
|
+
clean: "clean";
|
|
56
|
+
draining: "draining";
|
|
57
|
+
forced: "forced";
|
|
58
|
+
"hot-reload": "hot-reload";
|
|
59
|
+
"startup-failed": "startup-failed";
|
|
60
|
+
}>;
|
|
61
|
+
}, z.core.$strict>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export type LifecycleState = z.infer<typeof LifecycleStateSchema>;
|
|
64
|
+
export declare const PreviousExitSchema: z.ZodEnum<{
|
|
65
|
+
abnormal: "abnormal";
|
|
66
|
+
clean: "clean";
|
|
67
|
+
"first-boot": "first-boot";
|
|
68
|
+
forced: "forced";
|
|
69
|
+
handoff: "handoff";
|
|
70
|
+
"hot-reload": "hot-reload";
|
|
71
|
+
"startup-failed": "startup-failed";
|
|
72
|
+
}>;
|
|
73
|
+
export type PreviousExit = z.infer<typeof PreviousExitSchema>;
|
|
74
|
+
export interface StartFact {
|
|
75
|
+
readonly type: 'started';
|
|
76
|
+
readonly runId: string;
|
|
77
|
+
readonly pid: number;
|
|
78
|
+
readonly version: string;
|
|
79
|
+
readonly startedAt: string;
|
|
80
|
+
readonly previousExit: PreviousExit;
|
|
81
|
+
readonly previousRunId: string | null;
|
|
82
|
+
readonly previousPid: number | null;
|
|
83
|
+
readonly previousVersion: string | null;
|
|
84
|
+
readonly versionChanged: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* From the predecessor's recorded stop to this start: the gap between two
|
|
87
|
+
* processes, not the time nobody answered — that is `ReadyFact.downtimeMs`.
|
|
88
|
+
*/
|
|
89
|
+
readonly processGapMs: number | null;
|
|
90
|
+
}
|
|
91
|
+
export interface ReadyFact {
|
|
92
|
+
readonly type: 'ready';
|
|
93
|
+
readonly runId: string;
|
|
94
|
+
readonly pid: number;
|
|
95
|
+
readonly readyAt: string;
|
|
96
|
+
readonly startupMs: number;
|
|
97
|
+
/**
|
|
98
|
+
* The window in which nobody answered: from the moment the last run that
|
|
99
|
+
* served stopped admitting work to this run's readiness — its drain plus
|
|
100
|
+
* this start. Zero when that run still answers (a handoff); null on first
|
|
101
|
+
* boot and when its end was never timed (a crash, a hot reload).
|
|
102
|
+
*/
|
|
103
|
+
readonly downtimeMs: number | null;
|
|
104
|
+
/** The moment `downtimeMs` is counted from, when it is known. */
|
|
105
|
+
readonly unavailableSince: string | null;
|
|
106
|
+
/** False when this exact ready transition was already recorded. */
|
|
107
|
+
readonly recorded: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface DrainingFact {
|
|
110
|
+
readonly type: 'draining';
|
|
111
|
+
readonly runId: string;
|
|
112
|
+
readonly pid: number;
|
|
113
|
+
/** Null for a run that never became ready: it was never available. */
|
|
114
|
+
readonly unavailableAt: string | null;
|
|
115
|
+
readonly recorded: boolean;
|
|
116
|
+
}
|
|
117
|
+
export interface ShutdownFact {
|
|
118
|
+
readonly type: 'stopped';
|
|
119
|
+
readonly runId: string;
|
|
120
|
+
readonly pid: number;
|
|
121
|
+
readonly stoppedAt: string;
|
|
122
|
+
readonly uptimeMs: number | null;
|
|
123
|
+
readonly termination: 'clean' | 'forced' | 'startup-failed';
|
|
124
|
+
readonly recorded: boolean;
|
|
125
|
+
}
|
|
126
|
+
export type ProcessLifecycleFact = StartFact | ReadyFact | DrainingFact | ShutdownFact;
|
|
127
|
+
export interface LifecycleTransition<TFact extends ProcessLifecycleFact> {
|
|
128
|
+
readonly state: LifecycleState;
|
|
129
|
+
readonly fact: TFact;
|
|
130
|
+
}
|
|
131
|
+
export declare const isOpenRun: (run: LifecycleRun) => boolean;
|
|
132
|
+
/**
|
|
133
|
+
* The list is newest-first in the order the transitions wrote it — every write
|
|
134
|
+
* goes through one atomic update, so that order is the causal one. Clocks are
|
|
135
|
+
* not: a successor whose clock lags its predecessor must still find that
|
|
136
|
+
* predecessor at the head, so the list is never re-sorted by `startedAt`.
|
|
137
|
+
* Retention drops finished runs first; an open run — a live handoff
|
|
138
|
+
* predecessor — is dropped only when nothing finished is left to drop.
|
|
139
|
+
*/
|
|
140
|
+
export declare function normalizeLifecycleState(state: LifecycleState | null, retain: number): LifecycleState;
|
|
141
|
+
/**
|
|
142
|
+
* What a start means when the newest run is still open under another pid
|
|
143
|
+
* **and the same version**. `abnormal` (default): the predecessor crashed
|
|
144
|
+
* without recording its exit — one process per deployment, a restart after a
|
|
145
|
+
* kill. `handoff`: processes of one build overlap on purpose (a cluster, a
|
|
146
|
+
* zero-downtime reload of the same build), so every open run stays open and
|
|
147
|
+
* records its own shutdown later. A different version is always a handoff; a
|
|
148
|
+
* version of `unknown` on either side is never a version change.
|
|
149
|
+
*/
|
|
150
|
+
export type SameVersionOverlap = 'abnormal' | 'handoff';
|
|
151
|
+
export interface TransitionStartInput {
|
|
152
|
+
readonly runId: string;
|
|
153
|
+
readonly pid: number;
|
|
154
|
+
readonly version: string;
|
|
155
|
+
readonly now: string;
|
|
156
|
+
readonly retain?: number;
|
|
157
|
+
readonly sameVersionOverlap?: SameVersionOverlap;
|
|
158
|
+
}
|
|
159
|
+
/** Apply one process start without touching persistence or application events. */
|
|
160
|
+
export declare function transitionProcessStart(source: LifecycleState | null, input: TransitionStartInput): LifecycleTransition<StartFact>;
|
|
161
|
+
/** The run a transition applies to — owned by run id plus pid — and when. */
|
|
162
|
+
export interface TransitionRunInput {
|
|
163
|
+
readonly runId: string;
|
|
164
|
+
readonly pid: number;
|
|
165
|
+
readonly now: string;
|
|
166
|
+
readonly retain?: number;
|
|
167
|
+
}
|
|
168
|
+
export declare function transitionProcessReady(source: LifecycleState | null, input: TransitionRunInput): LifecycleTransition<ReadyFact>;
|
|
169
|
+
/** The run stopped admitting work: from here on it answers nobody new. */
|
|
170
|
+
export declare function transitionProcessDraining(source: LifecycleState | null, input: TransitionRunInput): LifecycleTransition<DrainingFact>;
|
|
171
|
+
export interface TransitionShutdownInput extends TransitionRunInput {
|
|
172
|
+
readonly forced?: boolean;
|
|
173
|
+
}
|
|
174
|
+
export declare function transitionProcessShutdown(source: LifecycleState | null, input: TransitionShutdownInput): LifecycleTransition<ShutdownFact>;
|
|
175
|
+
//# sourceMappingURL=process-lifecycle-transitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-lifecycle-transitions.d.ts","sourceRoot":"","sources":["../../src/application/process-lifecycle-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;EAQrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAI9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;kBAiBpB,CAAC;AACZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;kBAKtB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,kBAAkB;;;;;;;;EAQ7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MA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AC1B,mBAAmB,CAAC,SAAS,CAAC,CA4ChC;AAED,6EAA6E;AAC7E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAgCD,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,cAAc,GAAG,IAAI,EAC7B,KAAK,EAAE,kBAAkB,GACxB,mBAAmB,CAAC,SAAS,CAAC,CAoChC;AAED,0EAA0E;AAC1E,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,cAAc,GAAG,IAAI,EAC7B,KAAK,EAAE,kBAAkB,GACxB,mBAAmB,CAAC,YAAY,CAAC,CAiCnC;AAED,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,cAAc,GAAG,IAAI,EAC7B,KAAK,EAAE,uBAAuB,GAC7B,mBAAmB,CAAC,YAAY,CAAC,CAwCnC"}
|
|
@@ -1,141 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type DrainingFact, type LifecycleRun, type LifecycleState, type ProcessLifecycleFact, type ReadyFact, type SameVersionOverlap, type ShutdownFact, type StartFact } from './process-lifecycle-transitions.js';
|
|
2
2
|
import { type ManagedResource } from './resource.js';
|
|
3
3
|
import type { StateStore } from './state-store.js';
|
|
4
|
-
/**
|
|
5
|
-
* How a run ended. `clean` and `forced` are recorded by the run itself;
|
|
6
|
-
* `hot-reload` and `abnormal` are recorded by its successor, because the run
|
|
7
|
-
* never got to say — the same pid started again, or a different pid found it
|
|
8
|
-
* still marked active. `abnormal` is a crash observed from outside, not a kill
|
|
9
|
-
* the process acknowledged, so the two stay distinct in the ledger.
|
|
10
|
-
*/
|
|
11
|
-
export declare const LifecycleTerminationSchema: z.ZodEnum<{
|
|
12
|
-
abnormal: "abnormal";
|
|
13
|
-
active: "active";
|
|
14
|
-
clean: "clean";
|
|
15
|
-
forced: "forced";
|
|
16
|
-
"hot-reload": "hot-reload";
|
|
17
|
-
}>;
|
|
18
|
-
export type LifecycleTermination = z.infer<typeof LifecycleTerminationSchema>;
|
|
19
|
-
export declare const LifecycleRunSchema: z.ZodObject<{
|
|
20
|
-
runId: z.ZodString;
|
|
21
|
-
pid: z.ZodNumber;
|
|
22
|
-
version: z.ZodString;
|
|
23
|
-
startedAt: z.ZodString;
|
|
24
|
-
readyAt: z.ZodNullable<z.ZodString>;
|
|
25
|
-
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
26
|
-
termination: z.ZodEnum<{
|
|
27
|
-
abnormal: "abnormal";
|
|
28
|
-
active: "active";
|
|
29
|
-
clean: "clean";
|
|
30
|
-
forced: "forced";
|
|
31
|
-
"hot-reload": "hot-reload";
|
|
32
|
-
}>;
|
|
33
|
-
}, z.core.$strict>;
|
|
34
|
-
export type LifecycleRun = z.infer<typeof LifecycleRunSchema>;
|
|
35
|
-
export declare const LifecycleStateSchema: z.ZodObject<{
|
|
36
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
37
|
-
runs: z.ZodArray<z.ZodObject<{
|
|
38
|
-
runId: z.ZodString;
|
|
39
|
-
pid: z.ZodNumber;
|
|
40
|
-
version: z.ZodString;
|
|
41
|
-
startedAt: z.ZodString;
|
|
42
|
-
readyAt: z.ZodNullable<z.ZodString>;
|
|
43
|
-
stoppedAt: z.ZodNullable<z.ZodString>;
|
|
44
|
-
termination: z.ZodEnum<{
|
|
45
|
-
abnormal: "abnormal";
|
|
46
|
-
active: "active";
|
|
47
|
-
clean: "clean";
|
|
48
|
-
forced: "forced";
|
|
49
|
-
"hot-reload": "hot-reload";
|
|
50
|
-
}>;
|
|
51
|
-
}, z.core.$strict>>;
|
|
52
|
-
}, z.core.$strict>;
|
|
53
|
-
export type LifecycleState = z.infer<typeof LifecycleStateSchema>;
|
|
54
|
-
export declare const PreviousExitSchema: z.ZodEnum<{
|
|
55
|
-
abnormal: "abnormal";
|
|
56
|
-
clean: "clean";
|
|
57
|
-
"first-boot": "first-boot";
|
|
58
|
-
forced: "forced";
|
|
59
|
-
handoff: "handoff";
|
|
60
|
-
"hot-reload": "hot-reload";
|
|
61
|
-
}>;
|
|
62
|
-
export type PreviousExit = z.infer<typeof PreviousExitSchema>;
|
|
63
|
-
export interface StartFact {
|
|
64
|
-
readonly type: 'started';
|
|
65
|
-
readonly runId: string;
|
|
66
|
-
readonly pid: number;
|
|
67
|
-
readonly version: string;
|
|
68
|
-
readonly startedAt: string;
|
|
69
|
-
readonly previousExit: PreviousExit;
|
|
70
|
-
readonly previousRunId: string | null;
|
|
71
|
-
readonly previousPid: number | null;
|
|
72
|
-
readonly previousVersion: string | null;
|
|
73
|
-
readonly versionChanged: boolean;
|
|
74
|
-
readonly downtimeMs: number | null;
|
|
75
|
-
}
|
|
76
|
-
export interface ReadyFact {
|
|
77
|
-
readonly type: 'ready';
|
|
78
|
-
readonly runId: string;
|
|
79
|
-
readonly pid: number;
|
|
80
|
-
readonly readyAt: string;
|
|
81
|
-
readonly startupMs: number;
|
|
82
|
-
/** False when this exact ready transition was already recorded. */
|
|
83
|
-
readonly recorded: boolean;
|
|
84
|
-
}
|
|
85
|
-
export interface ShutdownFact {
|
|
86
|
-
readonly type: 'stopped';
|
|
87
|
-
readonly runId: string;
|
|
88
|
-
readonly pid: number;
|
|
89
|
-
readonly stoppedAt: string;
|
|
90
|
-
readonly uptimeMs: number | null;
|
|
91
|
-
readonly termination: 'clean' | 'forced';
|
|
92
|
-
readonly recorded: boolean;
|
|
93
|
-
}
|
|
94
|
-
export type ProcessLifecycleFact = StartFact | ReadyFact | ShutdownFact;
|
|
95
|
-
export interface LifecycleTransition<TFact extends ProcessLifecycleFact> {
|
|
96
|
-
readonly state: LifecycleState;
|
|
97
|
-
readonly fact: TFact;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* What a start means when the newest run is still marked active under another
|
|
101
|
-
* pid **and the same version**. `abnormal` (default): the predecessor crashed
|
|
102
|
-
* without recording its exit — one process per deployment, a restart after a
|
|
103
|
-
* kill. `handoff`: two processes of one build overlap on purpose (a cluster, a
|
|
104
|
-
* zero-downtime reload of the same build), so the predecessor stays active and
|
|
105
|
-
* records its own shutdown later. A different version is always a handoff; a
|
|
106
|
-
* version of `unknown` on either side is never a version change.
|
|
107
|
-
*/
|
|
108
|
-
export type SameVersionOverlap = 'abnormal' | 'handoff';
|
|
109
|
-
export interface TransitionStartInput {
|
|
110
|
-
readonly runId: string;
|
|
111
|
-
readonly pid: number;
|
|
112
|
-
readonly version: string;
|
|
113
|
-
readonly now: string;
|
|
114
|
-
readonly retain?: number;
|
|
115
|
-
readonly sameVersionOverlap?: SameVersionOverlap;
|
|
116
|
-
}
|
|
117
|
-
/** Apply one process start without touching persistence or application events. */
|
|
118
|
-
export declare function transitionProcessStart(source: LifecycleState | null, input: TransitionStartInput): LifecycleTransition<StartFact>;
|
|
119
|
-
export interface TransitionReadyInput {
|
|
120
|
-
readonly runId: string;
|
|
121
|
-
readonly pid: number;
|
|
122
|
-
readonly now: string;
|
|
123
|
-
readonly retain?: number;
|
|
124
|
-
}
|
|
125
|
-
export declare function transitionProcessReady(source: LifecycleState | null, input: TransitionReadyInput): LifecycleTransition<ReadyFact>;
|
|
126
|
-
export interface TransitionShutdownInput {
|
|
127
|
-
readonly runId: string;
|
|
128
|
-
readonly pid: number;
|
|
129
|
-
readonly now: string;
|
|
130
|
-
readonly forced?: boolean;
|
|
131
|
-
readonly retain?: number;
|
|
132
|
-
}
|
|
133
|
-
export declare function transitionProcessShutdown(source: LifecycleState | null, input: TransitionShutdownInput): LifecycleTransition<ShutdownFact>;
|
|
134
4
|
export interface ProcessLifecycleLedger {
|
|
135
5
|
recordStart(input: {
|
|
136
6
|
readonly version: string;
|
|
137
7
|
}): Promise<StartFact>;
|
|
138
8
|
recordReady(): Promise<ReadyFact>;
|
|
9
|
+
/** The run stopped admitting work; its `unavailableAt` is now. */
|
|
10
|
+
recordDraining(): Promise<DrainingFact>;
|
|
139
11
|
recordShutdown(input?: {
|
|
140
12
|
readonly forced?: boolean;
|
|
141
13
|
}): Promise<ShutdownFact>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-lifecycle.d.ts","sourceRoot":"","sources":["../../src/application/process-lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"process-lifecycle.d.ts","sourceRoot":"","sources":["../../src/application/process-lifecycle.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEnB,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,SAAS,EAKf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AACzE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACrE,WAAW,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,kEAAkE;IAClE,cAAc,IAAI,OAAO,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7E,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IACxC,IAAI,IAAI,OAAO,CAAC,SAAS,YAAY,EAAE,CAAC,CAAC;IACzC,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,CAAC;CACvF;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAC3C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;IACzC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACjD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAC3B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE,oBAAoB,KACvB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,4BAA4B,GACnC,sBAAsB,CAsGxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,KAAK,IAAI,OAAO,CAAC;QAAE,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAA;KAAE,CAAC,CAAC;CAC9D;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,sBAAsB,EAC9B,MAAM,EAAE,6BAA6B,GACpC,uBAAuB,CAsCzB"}
|
|
@@ -10,7 +10,8 @@ export { defineKeyspace, type KeyspaceBackend, type KeyspaceChange, type Keyspac
|
|
|
10
10
|
export { type SqliteKeyspaceBackendConfig, sqliteKeyspaceBackend, } from '../application/keyspace-sqlite.js';
|
|
11
11
|
export { type ApplicationSnapshotSink, type ApplicationSnapshotSinkConfig, type ApplicationSnapshotSinkError, type ApplicationSnapshotSinkStatus, ApplicationSnapshotSinkStatusSchema, createApplicationSnapshotSink, type RevisionedApplicationSnapshot, } from '../application/latest-sink.js';
|
|
12
12
|
export { createNotificationOutbox, type DroppedNotification, type EnqueueNotification, type NotificationFailureClassification, type NotificationOutbox, type NotificationOutboxConfig, type NotificationOutboxItem, type NotificationOutboxReceipt, type NotificationOutboxResource, type NotificationOutboxResourceConfig, type NotificationOutboxState, type NotificationSend, notificationOutboxResource, notificationOutboxStateSchema, } from '../application/notification-outbox.js';
|
|
13
|
-
export { createProcessLifecycleLedger, type LifecycleLedgerResource, type LifecycleLedgerResourceConfig,
|
|
13
|
+
export { createProcessLifecycleLedger, type LifecycleLedgerResource, type LifecycleLedgerResourceConfig, lifecycleLedgerResource, type ProcessLifecycleLedger, type ProcessLifecycleLedgerConfig, } from '../application/process-lifecycle.js';
|
|
14
|
+
export { type DrainingFact, type LifecycleRun, LifecycleRunSchema, type LifecycleState, LifecycleStateSchema, type LifecycleTermination, LifecycleTerminationSchema, type LifecycleTransition, type PreviousExit, PreviousExitSchema, type ProcessLifecycleFact, type ReadyFact, type SameVersionOverlap, type ShutdownFact, type StartFact, type TransitionRunInput, type TransitionShutdownInput, type TransitionStartInput, transitionProcessDraining, transitionProcessReady, transitionProcessShutdown, transitionProcessStart, } from '../application/process-lifecycle-transitions.js';
|
|
14
15
|
export { defineManagedResource, type ManagedResource, type ManagedResourceContext, type ManagedResourceDependency, type ManagedResourcePublished, type ManagedResourcePublishesNoValue, type ManagedResourceStartResult, managedResourceDependencyId, } from '../application/resource.js';
|
|
15
16
|
export { createRevisionSignal, type RevisionSignal, type RevisionSignalAdvanceResult, RevisionSignalAdvanceResultSchema, type RevisionSignalClock, type RevisionSignalConfig, type RevisionSignalSnapshot, RevisionSignalSnapshotSchema, type RevisionSignalState, RevisionSignalStateSchema, type RevisionSignalTimer, type RevisionSignalWaitOptions, type RevisionSignalWaitOutcome, RevisionSignalWaitOutcomeSchema, type RevisionSignalWaitResult, RevisionSignalWaitResultSchema, } from '../application/revision-signal.js';
|
|
16
17
|
export { createManagedSchedule, type ManagedSchedule, type ManagedScheduleClock, type ManagedScheduleConfig, type ManagedScheduleDescriptor, ManagedScheduleDescriptorSchema, type ManagedScheduleErrorPolicy, ManagedScheduleErrorPolicySchema, type ManagedScheduleOverlap, ManagedScheduleOverlapSchema, type ManagedScheduleRunContext, type ManagedScheduleStatus, ManagedScheduleStatusSchema, type ManagedScheduleTimer, } from '../application/schedule.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/entrypoints/application.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,aAAa,EAClB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,mCAAmC,EACnC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3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B,EAClB,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../src/entrypoints/application.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,eAAe,EACpB,qBAAqB,EACrB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,aAAa,EAClB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mCAAmC,EACxC,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,mCAAmC,EACnC,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,yBAAyB,EACzB,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB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