@lensmcp/protocol-types 1.25.3 → 1.25.5
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/lib/dashboard.d.ts +36 -1
- package/package.json +1 -1
package/lib/dashboard.d.ts
CHANGED
|
@@ -106,7 +106,8 @@ export interface DashService {
|
|
|
106
106
|
min?: number;
|
|
107
107
|
max?: number;
|
|
108
108
|
};
|
|
109
|
-
workers
|
|
109
|
+
/** Its `serve` workers — each declared one, with what its devserver has said of it. */
|
|
110
|
+
workers: DashWorker[];
|
|
110
111
|
lastColdStartMs?: number;
|
|
111
112
|
restarts: number;
|
|
112
113
|
buildFailed: boolean;
|
|
@@ -141,6 +142,40 @@ export interface DashService {
|
|
|
141
142
|
/** What its running pods weigh, from their own post-GC reports (`pod-memory` events). Absent until one reports. */
|
|
142
143
|
memory?: DashServiceMemory;
|
|
143
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* A service's `serve` worker (issues/closed/foodguard-80): a queue consumer or a background loop its devserver runs
|
|
147
|
+
* beside the pods, started again when it crashes. One that is not `running` is work nobody is doing.
|
|
148
|
+
*/
|
|
149
|
+
export interface DashWorker {
|
|
150
|
+
name: string;
|
|
151
|
+
/**
|
|
152
|
+
* `running` · `restarting` — it crashed and starts again at `nextAt` · `crash-looping` — it keeps crashing, each wait
|
|
153
|
+
* longer · `exited` — it ended on its own, or its bundle is missing: not started again until the next build ·
|
|
154
|
+
* `stopped` — its service stopped · `unknown` — declared, and its devserver has said nothing of it (one from before
|
|
155
|
+
* 1.25.3 says nothing).
|
|
156
|
+
*/
|
|
157
|
+
state: 'running' | 'restarting' | 'crash-looping' | 'exited' | 'stopped' | 'unknown';
|
|
158
|
+
pid?: number;
|
|
159
|
+
/** When it entered this state. */
|
|
160
|
+
since?: number;
|
|
161
|
+
/** Crashes this session. */
|
|
162
|
+
crashes: number;
|
|
163
|
+
/** Crashes in a row (restarting / crash-looping). */
|
|
164
|
+
inARow?: number;
|
|
165
|
+
/** When it is started again. */
|
|
166
|
+
nextAt?: number;
|
|
167
|
+
/** Why it is not running (exited / stopped). */
|
|
168
|
+
reason?: string;
|
|
169
|
+
/** The last time it ended unasked: how, and what it printed last. */
|
|
170
|
+
lastCrash?: {
|
|
171
|
+
at: number;
|
|
172
|
+
exitCode: number | null;
|
|
173
|
+
signal: string | null;
|
|
174
|
+
reading?: string;
|
|
175
|
+
external?: boolean;
|
|
176
|
+
lines: string[];
|
|
177
|
+
};
|
|
178
|
+
}
|
|
144
179
|
/** A service's pods, summed: what the Cluster tab's memory column shows. Bytes throughout. */
|
|
145
180
|
export interface DashServiceMemory {
|
|
146
181
|
/** Heap after each pod's latest full GC. */
|