@lensmcp/protocol-types 1.19.0 → 1.20.1
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 +16 -0
- package/lib/resources.js +1 -1
- package/package.json +1 -1
package/lib/resources.d.ts
CHANGED
|
@@ -237,6 +237,14 @@ export declare const AgentStorageStatsSchema: z.ZodObject<{
|
|
|
237
237
|
truncatedEvents: z.ZodOptional<z.ZodNumber>;
|
|
238
238
|
truncatedBytesReclaimed: z.ZodOptional<z.ZodNumber>;
|
|
239
239
|
rawByteLimit: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
reducers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
241
|
+
residentEvents: z.ZodNumber;
|
|
242
|
+
residentBytes: z.ZodNumber;
|
|
243
|
+
evictedEvents: z.ZodNumber;
|
|
244
|
+
evictedForBytes: z.ZodNumber;
|
|
245
|
+
eventCap: z.ZodNumber;
|
|
246
|
+
byteCap: z.ZodNumber;
|
|
247
|
+
}, z.core.$strip>>>;
|
|
240
248
|
}, z.core.$strip>;
|
|
241
249
|
export type AgentStorageStats = z.infer<typeof AgentStorageStatsSchema>;
|
|
242
250
|
export declare const AgentSessionSchema: z.ZodObject<{
|
|
@@ -278,6 +286,14 @@ export declare const AgentSessionSchema: z.ZodObject<{
|
|
|
278
286
|
truncatedEvents: z.ZodOptional<z.ZodNumber>;
|
|
279
287
|
truncatedBytesReclaimed: z.ZodOptional<z.ZodNumber>;
|
|
280
288
|
rawByteLimit: z.ZodOptional<z.ZodNumber>;
|
|
289
|
+
reducers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
290
|
+
residentEvents: z.ZodNumber;
|
|
291
|
+
residentBytes: z.ZodNumber;
|
|
292
|
+
evictedEvents: z.ZodNumber;
|
|
293
|
+
evictedForBytes: z.ZodNumber;
|
|
294
|
+
eventCap: z.ZodNumber;
|
|
295
|
+
byteCap: z.ZodNumber;
|
|
296
|
+
}, z.core.$strip>>>;
|
|
281
297
|
}, z.core.$strip>>;
|
|
282
298
|
}, z.core.$strip>;
|
|
283
299
|
export type AgentSession = z.infer<typeof AgentSessionSchema>;
|
package/lib/resources.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as n}from"zod";import{SCHEMA_VERSION as i}from"./schema-version.js";import{SourceLocationSchema as
|
|
1
|
+
"use strict";import{z as n}from"zod";import{SCHEMA_VERSION as i}from"./schema-version.js";import{SourceLocationSchema as r}from"./source-location.js";import{SeveritySchema as t}from"./event.js";import{ProducerHealthSchema as e}from"./producer-health.js";export const URI_SCHEMES=["agent","events","build","lint","typecheck","test","runtime","render","visual","flow","story","trace","graph","bundle","security","perf","deps","memory","browser","react","valtio","nest","next","process"],ResourceEnvelopeSchema=n.object({$schema:n.string().optional(),schemaVersion:n.literal(i),revision:n.number().int().nonnegative(),updatedAt:n.string().datetime().optional()}),AgentStatusKindSchema=n.enum(["starting","clean","warning","failing"]),AgentBlockingItemSchema=n.object({source:n.string(),severity:t,title:n.string(),fingerprint:n.string(),resource:n.string(),pageId:n.string().optional(),flowId:n.string().optional(),location:r.optional()}),AgentChecksSchema=n.object({typecheck:n.enum(["passed","failed","unknown"]).optional(),lint:n.enum(["passed","failed","unknown"]).optional(),build:n.enum(["passed","failed","unknown"]).optional(),runtime:n.enum(["passed","failed","warning","unknown"]).optional(),visual:n.enum(["passed","failed","warning","unknown"]).optional(),memory:n.enum(["passed","failed","warning","unknown"]).optional()}),AgentServerModeSchema=n.enum(["embedded","shared"]),AgentServerInfoSchema=n.object({mode:AgentServerModeSchema,pid:n.number(),startedAt:n.string(),url:n.string().optional()}),AgentCurrentStatusSchema=ResourceEnvelopeSchema.extend({sessionId:n.string(),status:AgentStatusKindSchema,activeTab:n.string().optional(),tabsWithIssues:n.array(n.string()).optional(),blocking:n.array(AgentBlockingItemSchema),warnings:n.array(AgentBlockingItemSchema).default([]),suggestedReads:n.array(n.string()),checks:AgentChecksSchema.optional(),server:AgentServerInfoSchema.optional()}),AgentStorageStatsSchema=n.object({eventsResident:n.number().int().nonnegative(),eventsResidentBytes:n.number().int().nonnegative(),eventsIngested:n.number().int().nonnegative(),eventsDropped:n.number().int().nonnegative(),eventsDroppedForBytes:n.number().int().nonnegative().optional(),eventCap:n.number().int().nonnegative().optional(),eventByteCap:n.number().int().nonnegative().optional(),artifactsResident:n.number().int().nonnegative().optional(),artifactsResidentBytes:n.number().int().nonnegative().optional(),artifactsDropped:n.number().int().nonnegative().optional(),artifactByteCap:n.number().int().nonnegative().optional(),truncatedEvents:n.number().int().nonnegative().optional(),truncatedBytesReclaimed:n.number().int().nonnegative().optional(),rawByteLimit:n.number().int().nonnegative().optional(),reducers:n.record(n.string(),n.object({residentEvents:n.number().int().nonnegative(),residentBytes:n.number().int().nonnegative(),evictedEvents:n.number().int().nonnegative(),evictedForBytes:n.number().int().nonnegative(),eventCap:n.number().int().nonnegative(),byteCap:n.number().int().nonnegative()})).optional()}),AgentSessionSchema=ResourceEnvelopeSchema.extend({sessionId:n.string(),supportedResources:n.array(n.string()),supportedTools:n.array(n.string()),supportedJobs:n.array(n.string()),supportedChannels:n.array(n.string()),subscribedByDefault:n.array(n.string()),transports:n.array(n.enum(["stdio","http","socket"])),host:n.object({platform:n.string(),node:n.string()}),project:n.object({name:n.string(),nxVersion:n.string().optional()}),storage:AgentStorageStatsSchema.optional()});const o=n.object({id:n.string(),timestamp:n.number().int().nonnegative(),message:n.string(),fingerprint:n.string(),code:n.string().optional(),rule:n.string().optional(),severity:t.optional(),file:n.string().optional(),line:n.number().int().nonnegative().optional(),column:n.number().int().nonnegative().optional(),project:n.string().optional()});export const TypecheckCurrentSchema=ResourceEnvelopeSchema.merge(e).extend({status:n.enum(["unknown","clean","failing"]),errorCount:n.number().int().nonnegative(),lastRunAt:n.number().int().nonnegative().optional()}),TypecheckErrorsSchema=ResourceEnvelopeSchema.merge(e).extend({errors:n.array(o)}),LintCurrentSchema=ResourceEnvelopeSchema.merge(e).extend({status:n.enum(["unknown","clean","warning","failing"]),errorCount:n.number().int().nonnegative(),warningCount:n.number().int().nonnegative(),lastRunAt:n.number().int().nonnegative().optional()}),BuildCurrentSchema=ResourceEnvelopeSchema.merge(e).extend({status:n.enum(["unknown","clean","warning","failing"]),hmrUpdates:n.number().int().nonnegative(),lastRunAt:n.number().int().nonnegative().optional()});
|