@lensmcp/protocol-types 1.17.2 → 1.17.4
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/resources.d.ts +63 -30
- package/lib/resources.d.ts.map +1 -1
- package/lib/resources.js +24 -0
- package/package.json +1 -1
package/lib/resources.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,39 +45,63 @@ 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
|
+
/**
|
|
82
|
+
* How the MCP server answering this read is being served.
|
|
83
|
+
*
|
|
84
|
+
* `shared` means ONE server for the workspace, reached by every agent session
|
|
85
|
+
* through a thin stdio shim — so `sessionId` below is the SHARED lens session
|
|
86
|
+
* and other sessions are reading the same state. `embedded` means this server
|
|
87
|
+
* belongs to one agent session and dies with it (and therefore keeps serving the
|
|
88
|
+
* bundle it started with until that session ends).
|
|
89
|
+
*/
|
|
90
|
+
export declare const AgentServerModeSchema: z.ZodEnum<{
|
|
91
|
+
embedded: "embedded";
|
|
92
|
+
shared: "shared";
|
|
93
|
+
}>;
|
|
94
|
+
export type AgentServerMode = z.infer<typeof AgentServerModeSchema>;
|
|
95
|
+
export declare const AgentServerInfoSchema: z.ZodObject<{
|
|
96
|
+
mode: z.ZodEnum<{
|
|
97
|
+
embedded: "embedded";
|
|
98
|
+
shared: "shared";
|
|
99
|
+
}>;
|
|
100
|
+
pid: z.ZodNumber;
|
|
101
|
+
startedAt: z.ZodString;
|
|
102
|
+
url: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type AgentServerInfo = z.infer<typeof AgentServerInfoSchema>;
|
|
81
105
|
export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
82
106
|
$schema: z.ZodOptional<z.ZodString>;
|
|
83
107
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -85,10 +109,10 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
85
109
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
86
110
|
sessionId: z.ZodString;
|
|
87
111
|
status: z.ZodEnum<{
|
|
88
|
-
|
|
112
|
+
starting: "starting";
|
|
89
113
|
clean: "clean";
|
|
114
|
+
warning: "warning";
|
|
90
115
|
failing: "failing";
|
|
91
|
-
starting: "starting";
|
|
92
116
|
}>;
|
|
93
117
|
activeTab: z.ZodOptional<z.ZodString>;
|
|
94
118
|
tabsWithIssues: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -96,9 +120,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
96
120
|
source: z.ZodString;
|
|
97
121
|
severity: z.ZodEnum<{
|
|
98
122
|
error: "error";
|
|
123
|
+
warning: "warning";
|
|
99
124
|
debug: "debug";
|
|
100
125
|
info: "info";
|
|
101
|
-
warning: "warning";
|
|
102
126
|
fatal: "fatal";
|
|
103
127
|
}>;
|
|
104
128
|
title: z.ZodString;
|
|
@@ -119,9 +143,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
119
143
|
source: z.ZodString;
|
|
120
144
|
severity: z.ZodEnum<{
|
|
121
145
|
error: "error";
|
|
146
|
+
warning: "warning";
|
|
122
147
|
debug: "debug";
|
|
123
148
|
info: "info";
|
|
124
|
-
warning: "warning";
|
|
125
149
|
fatal: "fatal";
|
|
126
150
|
}>;
|
|
127
151
|
title: z.ZodString;
|
|
@@ -141,39 +165,48 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
141
165
|
suggestedReads: z.ZodArray<z.ZodString>;
|
|
142
166
|
checks: z.ZodOptional<z.ZodObject<{
|
|
143
167
|
typecheck: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
unknown: "unknown";
|
|
145
168
|
passed: "passed";
|
|
146
169
|
failed: "failed";
|
|
170
|
+
unknown: "unknown";
|
|
147
171
|
}>>;
|
|
148
172
|
lint: z.ZodOptional<z.ZodEnum<{
|
|
149
|
-
unknown: "unknown";
|
|
150
173
|
passed: "passed";
|
|
151
174
|
failed: "failed";
|
|
175
|
+
unknown: "unknown";
|
|
152
176
|
}>>;
|
|
153
177
|
build: z.ZodOptional<z.ZodEnum<{
|
|
154
|
-
unknown: "unknown";
|
|
155
178
|
passed: "passed";
|
|
156
179
|
failed: "failed";
|
|
180
|
+
unknown: "unknown";
|
|
157
181
|
}>>;
|
|
158
182
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
159
183
|
warning: "warning";
|
|
160
|
-
unknown: "unknown";
|
|
161
184
|
passed: "passed";
|
|
162
185
|
failed: "failed";
|
|
186
|
+
unknown: "unknown";
|
|
163
187
|
}>>;
|
|
164
188
|
visual: z.ZodOptional<z.ZodEnum<{
|
|
165
189
|
warning: "warning";
|
|
166
|
-
unknown: "unknown";
|
|
167
190
|
passed: "passed";
|
|
168
191
|
failed: "failed";
|
|
192
|
+
unknown: "unknown";
|
|
169
193
|
}>>;
|
|
170
194
|
memory: z.ZodOptional<z.ZodEnum<{
|
|
171
195
|
warning: "warning";
|
|
172
|
-
unknown: "unknown";
|
|
173
196
|
passed: "passed";
|
|
174
197
|
failed: "failed";
|
|
198
|
+
unknown: "unknown";
|
|
175
199
|
}>>;
|
|
176
200
|
}, z.core.$strip>>;
|
|
201
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
202
|
+
mode: z.ZodEnum<{
|
|
203
|
+
embedded: "embedded";
|
|
204
|
+
shared: "shared";
|
|
205
|
+
}>;
|
|
206
|
+
pid: z.ZodNumber;
|
|
207
|
+
startedAt: z.ZodString;
|
|
208
|
+
url: z.ZodOptional<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
177
210
|
}, z.core.$strip>;
|
|
178
211
|
export type AgentCurrentStatus = z.infer<typeof AgentCurrentStatusSchema>;
|
|
179
212
|
/**
|
|
@@ -267,9 +300,9 @@ declare const CheckEntrySchema: z.ZodObject<{
|
|
|
267
300
|
rule: z.ZodOptional<z.ZodString>;
|
|
268
301
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
269
302
|
error: "error";
|
|
303
|
+
warning: "warning";
|
|
270
304
|
debug: "debug";
|
|
271
305
|
info: "info";
|
|
272
|
-
warning: "warning";
|
|
273
306
|
fatal: "fatal";
|
|
274
307
|
}>>;
|
|
275
308
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -295,9 +328,9 @@ export declare const TypecheckCurrentSchema: z.ZodObject<{
|
|
|
295
328
|
lastReportedAt: z.ZodNumber;
|
|
296
329
|
lastRunStatus: z.ZodEnum<{
|
|
297
330
|
error: "error";
|
|
298
|
-
running: "running";
|
|
299
331
|
clean: "clean";
|
|
300
332
|
failing: "failing";
|
|
333
|
+
running: "running";
|
|
301
334
|
}>;
|
|
302
335
|
lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
303
336
|
errorCount: z.ZodNumber;
|
|
@@ -309,9 +342,9 @@ export declare const TypecheckCurrentSchema: z.ZodObject<{
|
|
|
309
342
|
stale: z.ZodBoolean;
|
|
310
343
|
detail: z.ZodString;
|
|
311
344
|
status: z.ZodEnum<{
|
|
312
|
-
unknown: "unknown";
|
|
313
345
|
clean: "clean";
|
|
314
346
|
failing: "failing";
|
|
347
|
+
unknown: "unknown";
|
|
315
348
|
}>;
|
|
316
349
|
errorCount: z.ZodNumber;
|
|
317
350
|
lastRunAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -334,9 +367,9 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
|
|
|
334
367
|
lastReportedAt: z.ZodNumber;
|
|
335
368
|
lastRunStatus: z.ZodEnum<{
|
|
336
369
|
error: "error";
|
|
337
|
-
running: "running";
|
|
338
370
|
clean: "clean";
|
|
339
371
|
failing: "failing";
|
|
372
|
+
running: "running";
|
|
340
373
|
}>;
|
|
341
374
|
lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
342
375
|
errorCount: z.ZodNumber;
|
|
@@ -356,9 +389,9 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
|
|
|
356
389
|
rule: z.ZodOptional<z.ZodString>;
|
|
357
390
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
358
391
|
error: "error";
|
|
392
|
+
warning: "warning";
|
|
359
393
|
debug: "debug";
|
|
360
394
|
info: "info";
|
|
361
|
-
warning: "warning";
|
|
362
395
|
fatal: "fatal";
|
|
363
396
|
}>>;
|
|
364
397
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -385,9 +418,9 @@ export declare const LintCurrentSchema: z.ZodObject<{
|
|
|
385
418
|
lastReportedAt: z.ZodNumber;
|
|
386
419
|
lastRunStatus: z.ZodEnum<{
|
|
387
420
|
error: "error";
|
|
388
|
-
running: "running";
|
|
389
421
|
clean: "clean";
|
|
390
422
|
failing: "failing";
|
|
423
|
+
running: "running";
|
|
391
424
|
}>;
|
|
392
425
|
lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
393
426
|
errorCount: z.ZodNumber;
|
|
@@ -399,10 +432,10 @@ export declare const LintCurrentSchema: z.ZodObject<{
|
|
|
399
432
|
stale: z.ZodBoolean;
|
|
400
433
|
detail: z.ZodString;
|
|
401
434
|
status: z.ZodEnum<{
|
|
402
|
-
warning: "warning";
|
|
403
|
-
unknown: "unknown";
|
|
404
435
|
clean: "clean";
|
|
436
|
+
warning: "warning";
|
|
405
437
|
failing: "failing";
|
|
438
|
+
unknown: "unknown";
|
|
406
439
|
}>;
|
|
407
440
|
errorCount: z.ZodNumber;
|
|
408
441
|
warningCount: z.ZodNumber;
|
|
@@ -426,9 +459,9 @@ export declare const BuildCurrentSchema: z.ZodObject<{
|
|
|
426
459
|
lastReportedAt: z.ZodNumber;
|
|
427
460
|
lastRunStatus: z.ZodEnum<{
|
|
428
461
|
error: "error";
|
|
429
|
-
running: "running";
|
|
430
462
|
clean: "clean";
|
|
431
463
|
failing: "failing";
|
|
464
|
+
running: "running";
|
|
432
465
|
}>;
|
|
433
466
|
lastRunDurationMs: z.ZodOptional<z.ZodNumber>;
|
|
434
467
|
errorCount: z.ZodNumber;
|
|
@@ -440,10 +473,10 @@ export declare const BuildCurrentSchema: z.ZodObject<{
|
|
|
440
473
|
stale: z.ZodBoolean;
|
|
441
474
|
detail: z.ZodString;
|
|
442
475
|
status: z.ZodEnum<{
|
|
443
|
-
warning: "warning";
|
|
444
|
-
unknown: "unknown";
|
|
445
476
|
clean: "clean";
|
|
477
|
+
warning: "warning";
|
|
446
478
|
failing: "failing";
|
|
479
|
+
unknown: "unknown";
|
|
447
480
|
}>;
|
|
448
481
|
hmrUpdates: z.ZodNumber;
|
|
449
482
|
}, z.core.$strip>;
|
package/lib/resources.d.ts.map
CHANGED
|
@@ -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,K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AAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/lib/resources.js
CHANGED
|
@@ -65,6 +65,25 @@ export const AgentChecksSchema = z.object({
|
|
|
65
65
|
visual: z.enum(['passed', 'failed', 'warning', 'unknown']).optional(),
|
|
66
66
|
memory: z.enum(['passed', 'failed', 'warning', 'unknown']).optional(),
|
|
67
67
|
});
|
|
68
|
+
/**
|
|
69
|
+
* How the MCP server answering this read is being served.
|
|
70
|
+
*
|
|
71
|
+
* `shared` means ONE server for the workspace, reached by every agent session
|
|
72
|
+
* through a thin stdio shim — so `sessionId` below is the SHARED lens session
|
|
73
|
+
* and other sessions are reading the same state. `embedded` means this server
|
|
74
|
+
* belongs to one agent session and dies with it (and therefore keeps serving the
|
|
75
|
+
* bundle it started with until that session ends).
|
|
76
|
+
*/
|
|
77
|
+
export const AgentServerModeSchema = z.enum(['embedded', 'shared']);
|
|
78
|
+
export const AgentServerInfoSchema = z.object({
|
|
79
|
+
mode: AgentServerModeSchema,
|
|
80
|
+
/** The server process. Stable across agent sessions in `shared` mode. */
|
|
81
|
+
pid: z.number(),
|
|
82
|
+
/** ISO timestamp this server process started — how stale its bundle may be. */
|
|
83
|
+
startedAt: z.string(),
|
|
84
|
+
/** The loopback URL clients reach it on. Only in `shared` mode. */
|
|
85
|
+
url: z.string().optional(),
|
|
86
|
+
});
|
|
68
87
|
export const AgentCurrentStatusSchema = ResourceEnvelopeSchema.extend({
|
|
69
88
|
sessionId: z.string(),
|
|
70
89
|
status: AgentStatusKindSchema,
|
|
@@ -74,6 +93,11 @@ export const AgentCurrentStatusSchema = ResourceEnvelopeSchema.extend({
|
|
|
74
93
|
warnings: z.array(AgentBlockingItemSchema).default([]),
|
|
75
94
|
suggestedReads: z.array(z.string()),
|
|
76
95
|
checks: AgentChecksSchema.optional(),
|
|
96
|
+
/**
|
|
97
|
+
* Optional so a bare context (no server env) still validates — and so a
|
|
98
|
+
* pre-shim recorded status keeps parsing.
|
|
99
|
+
*/
|
|
100
|
+
server: AgentServerInfoSchema.optional(),
|
|
77
101
|
});
|
|
78
102
|
// -------- agent://session --------
|
|
79
103
|
/**
|