@lensmcp/protocol-types 1.18.0 → 1.18.2

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.
@@ -13,19 +13,19 @@ export declare const ResourceEnvelopeSchema: z.ZodObject<{
13
13
  }, z.core.$strip>;
14
14
  export type ResourceEnvelope = z.infer<typeof ResourceEnvelopeSchema>;
15
15
  export declare const AgentStatusKindSchema: z.ZodEnum<{
16
- warning: "warning";
16
+ starting: "starting";
17
17
  clean: "clean";
18
+ warning: "warning";
18
19
  failing: "failing";
19
- starting: "starting";
20
20
  }>;
21
21
  export type AgentStatusKind = z.infer<typeof AgentStatusKindSchema>;
22
22
  export declare const AgentBlockingItemSchema: z.ZodObject<{
23
23
  source: z.ZodString;
24
24
  severity: z.ZodEnum<{
25
25
  error: "error";
26
+ warning: "warning";
26
27
  debug: "debug";
27
28
  info: "info";
28
- warning: "warning";
29
29
  fatal: "fatal";
30
30
  }>;
31
31
  title: z.ZodString;
@@ -45,37 +45,37 @@ export declare const AgentBlockingItemSchema: z.ZodObject<{
45
45
  export type AgentBlockingItem = z.infer<typeof AgentBlockingItemSchema>;
46
46
  export declare const AgentChecksSchema: z.ZodObject<{
47
47
  typecheck: z.ZodOptional<z.ZodEnum<{
48
- unknown: "unknown";
49
48
  passed: "passed";
50
49
  failed: "failed";
50
+ unknown: "unknown";
51
51
  }>>;
52
52
  lint: z.ZodOptional<z.ZodEnum<{
53
- unknown: "unknown";
54
53
  passed: "passed";
55
54
  failed: "failed";
55
+ unknown: "unknown";
56
56
  }>>;
57
57
  build: z.ZodOptional<z.ZodEnum<{
58
- unknown: "unknown";
59
58
  passed: "passed";
60
59
  failed: "failed";
60
+ unknown: "unknown";
61
61
  }>>;
62
62
  runtime: z.ZodOptional<z.ZodEnum<{
63
63
  warning: "warning";
64
- unknown: "unknown";
65
64
  passed: "passed";
66
65
  failed: "failed";
66
+ unknown: "unknown";
67
67
  }>>;
68
68
  visual: z.ZodOptional<z.ZodEnum<{
69
69
  warning: "warning";
70
- unknown: "unknown";
71
70
  passed: "passed";
72
71
  failed: "failed";
72
+ unknown: "unknown";
73
73
  }>>;
74
74
  memory: z.ZodOptional<z.ZodEnum<{
75
75
  warning: "warning";
76
- unknown: "unknown";
77
76
  passed: "passed";
78
77
  failed: "failed";
78
+ unknown: "unknown";
79
79
  }>>;
80
80
  }, z.core.$strip>;
81
81
  /**
@@ -109,10 +109,10 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
109
109
  updatedAt: z.ZodOptional<z.ZodString>;
110
110
  sessionId: z.ZodString;
111
111
  status: z.ZodEnum<{
112
- warning: "warning";
112
+ starting: "starting";
113
113
  clean: "clean";
114
+ warning: "warning";
114
115
  failing: "failing";
115
- starting: "starting";
116
116
  }>;
117
117
  activeTab: z.ZodOptional<z.ZodString>;
118
118
  tabsWithIssues: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -120,9 +120,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
120
120
  source: z.ZodString;
121
121
  severity: z.ZodEnum<{
122
122
  error: "error";
123
+ warning: "warning";
123
124
  debug: "debug";
124
125
  info: "info";
125
- warning: "warning";
126
126
  fatal: "fatal";
127
127
  }>;
128
128
  title: z.ZodString;
@@ -143,9 +143,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
143
143
  source: z.ZodString;
144
144
  severity: z.ZodEnum<{
145
145
  error: "error";
146
+ warning: "warning";
146
147
  debug: "debug";
147
148
  info: "info";
148
- warning: "warning";
149
149
  fatal: "fatal";
150
150
  }>;
151
151
  title: z.ZodString;
@@ -165,37 +165,37 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
165
165
  suggestedReads: z.ZodArray<z.ZodString>;
166
166
  checks: z.ZodOptional<z.ZodObject<{
167
167
  typecheck: z.ZodOptional<z.ZodEnum<{
168
- unknown: "unknown";
169
168
  passed: "passed";
170
169
  failed: "failed";
170
+ unknown: "unknown";
171
171
  }>>;
172
172
  lint: z.ZodOptional<z.ZodEnum<{
173
- unknown: "unknown";
174
173
  passed: "passed";
175
174
  failed: "failed";
175
+ unknown: "unknown";
176
176
  }>>;
177
177
  build: z.ZodOptional<z.ZodEnum<{
178
- unknown: "unknown";
179
178
  passed: "passed";
180
179
  failed: "failed";
180
+ unknown: "unknown";
181
181
  }>>;
182
182
  runtime: z.ZodOptional<z.ZodEnum<{
183
183
  warning: "warning";
184
- unknown: "unknown";
185
184
  passed: "passed";
186
185
  failed: "failed";
186
+ unknown: "unknown";
187
187
  }>>;
188
188
  visual: z.ZodOptional<z.ZodEnum<{
189
189
  warning: "warning";
190
- unknown: "unknown";
191
190
  passed: "passed";
192
191
  failed: "failed";
192
+ unknown: "unknown";
193
193
  }>>;
194
194
  memory: z.ZodOptional<z.ZodEnum<{
195
195
  warning: "warning";
196
- unknown: "unknown";
197
196
  passed: "passed";
198
197
  failed: "failed";
198
+ unknown: "unknown";
199
199
  }>>;
200
200
  }, z.core.$strip>>;
201
201
  server: z.ZodOptional<z.ZodObject<{
@@ -300,9 +300,9 @@ declare const CheckEntrySchema: z.ZodObject<{
300
300
  rule: z.ZodOptional<z.ZodString>;
301
301
  severity: z.ZodOptional<z.ZodEnum<{
302
302
  error: "error";
303
+ warning: "warning";
303
304
  debug: "debug";
304
305
  info: "info";
305
- warning: "warning";
306
306
  fatal: "fatal";
307
307
  }>>;
308
308
  file: z.ZodOptional<z.ZodString>;
@@ -328,9 +328,9 @@ export declare const TypecheckCurrentSchema: z.ZodObject<{
328
328
  lastReportedAt: z.ZodNumber;
329
329
  lastRunStatus: z.ZodEnum<{
330
330
  error: "error";
331
- running: "running";
332
331
  clean: "clean";
333
332
  failing: "failing";
333
+ running: "running";
334
334
  }>;
335
335
  lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
336
336
  errorCount: z.ZodNumber;
@@ -342,9 +342,9 @@ export declare const TypecheckCurrentSchema: z.ZodObject<{
342
342
  stale: z.ZodBoolean;
343
343
  detail: z.ZodString;
344
344
  status: z.ZodEnum<{
345
- unknown: "unknown";
346
345
  clean: "clean";
347
346
  failing: "failing";
347
+ unknown: "unknown";
348
348
  }>;
349
349
  errorCount: z.ZodNumber;
350
350
  lastRunAt: z.ZodOptional<z.ZodNumber>;
@@ -367,9 +367,9 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
367
367
  lastReportedAt: z.ZodNumber;
368
368
  lastRunStatus: z.ZodEnum<{
369
369
  error: "error";
370
- running: "running";
371
370
  clean: "clean";
372
371
  failing: "failing";
372
+ running: "running";
373
373
  }>;
374
374
  lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
375
375
  errorCount: z.ZodNumber;
@@ -389,9 +389,9 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
389
389
  rule: z.ZodOptional<z.ZodString>;
390
390
  severity: z.ZodOptional<z.ZodEnum<{
391
391
  error: "error";
392
+ warning: "warning";
392
393
  debug: "debug";
393
394
  info: "info";
394
- warning: "warning";
395
395
  fatal: "fatal";
396
396
  }>>;
397
397
  file: z.ZodOptional<z.ZodString>;
@@ -418,9 +418,9 @@ export declare const LintCurrentSchema: z.ZodObject<{
418
418
  lastReportedAt: z.ZodNumber;
419
419
  lastRunStatus: z.ZodEnum<{
420
420
  error: "error";
421
- running: "running";
422
421
  clean: "clean";
423
422
  failing: "failing";
423
+ running: "running";
424
424
  }>;
425
425
  lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
426
426
  errorCount: z.ZodNumber;
@@ -432,10 +432,10 @@ export declare const LintCurrentSchema: z.ZodObject<{
432
432
  stale: z.ZodBoolean;
433
433
  detail: z.ZodString;
434
434
  status: z.ZodEnum<{
435
- warning: "warning";
436
- unknown: "unknown";
437
435
  clean: "clean";
436
+ warning: "warning";
438
437
  failing: "failing";
438
+ unknown: "unknown";
439
439
  }>;
440
440
  errorCount: z.ZodNumber;
441
441
  warningCount: z.ZodNumber;
@@ -459,9 +459,9 @@ export declare const BuildCurrentSchema: z.ZodObject<{
459
459
  lastReportedAt: z.ZodNumber;
460
460
  lastRunStatus: z.ZodEnum<{
461
461
  error: "error";
462
- running: "running";
463
462
  clean: "clean";
464
463
  failing: "failing";
464
+ running: "running";
465
465
  }>;
466
466
  lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
467
467
  errorCount: z.ZodNumber;
@@ -473,12 +473,13 @@ export declare const BuildCurrentSchema: z.ZodObject<{
473
473
  stale: z.ZodBoolean;
474
474
  detail: z.ZodString;
475
475
  status: z.ZodEnum<{
476
- warning: "warning";
477
- unknown: "unknown";
478
476
  clean: "clean";
477
+ warning: "warning";
479
478
  failing: "failing";
479
+ unknown: "unknown";
480
480
  }>;
481
481
  hmrUpdates: z.ZodNumber;
482
+ lastRunAt: z.ZodOptional<z.ZodNumber>;
482
483
  }, z.core.$strip>;
483
484
  export type BuildCurrent = z.infer<typeof BuildCurrentSchema>;
484
485
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/lib/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,WAAW,+OAyBd,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAIrD,eAAO,MAAM,sBAAsB;;;;;iBAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAItE,eAAO,MAAM,qBAAqB;;;;;EAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
package/lib/resources.js CHANGED
@@ -194,4 +194,12 @@ export const LintCurrentSchema = ResourceEnvelopeSchema.merge(ProducerHealthSche
194
194
  export const BuildCurrentSchema = ResourceEnvelopeSchema.merge(ProducerHealthSchema).extend({
195
195
  status: z.enum(['unknown', 'clean', 'warning', 'failing']),
196
196
  hmrUpdates: z.number().int().nonnegative(),
197
+ /**
198
+ * When the newest build/typecheck/lint verdict landed. Absent means nothing
199
+ * has ever reported — which is NOT the same as clean, and was invisible
200
+ * while this field was missing: `build://current` claimed `failing` with 12
201
+ * errors accumulated over 49 minutes and no timestamp to expose their age.
202
+ * `typecheck://` and `lint://` have always carried it; this aligns the third.
203
+ */
204
+ lastRunAt: z.number().int().nonnegative().optional(),
197
205
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/protocol-types",
3
- "version": "1.18.0",
3
+ "version": "1.18.2",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",