@inf-monkeys-tech/monkeys 1.0.29 → 1.0.31

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.
@@ -8337,6 +8337,69 @@ var AgentSessionViewModelSchema = z5.object({
8337
8337
  });
8338
8338
  }
8339
8339
  });
8340
+ var AgentWorkbenchNavigationItemStatusSchema = z5.enum(["idle", "running", "completed", "error"]);
8341
+ var AgentWorkbenchCollectionStatusSchema = z5.enum(["loading", "ready", "error"]);
8342
+ var AgentWorkbenchAgentItemSchema = z5.object({
8343
+ id: ContractIdentifierSchema,
8344
+ name: z5.string().min(1),
8345
+ description: z5.string().optional(),
8346
+ iconUrl: z5.string().url().optional(),
8347
+ builtIn: z5.boolean().default(false),
8348
+ pinned: z5.boolean().default(false),
8349
+ pinPending: z5.boolean().default(false)
8350
+ }).strict();
8351
+ var AgentWorkbenchSessionItemSchema = z5.object({
8352
+ id: ContractIdentifierSchema,
8353
+ title: z5.string().min(1),
8354
+ updatedAt: IsoDateTimeSchema,
8355
+ thumbnailUrl: z5.string().url().optional(),
8356
+ status: AgentWorkbenchNavigationItemStatusSchema.default("idle"),
8357
+ pinned: z5.boolean().default(false),
8358
+ contextUsage: z5.object({
8359
+ usedTokens: z5.number().int().nonnegative(),
8360
+ maxTokens: z5.number().int().positive()
8361
+ }).strict().optional()
8362
+ }).strict();
8363
+ var AgentWorkbenchNavigationCapabilitiesSchema = z5.object({
8364
+ createAgent: z5.boolean().default(false),
8365
+ createSession: z5.boolean().default(true),
8366
+ manageCapabilities: z5.boolean().default(false),
8367
+ manageAgentSettings: z5.boolean().default(false),
8368
+ pinAgents: z5.boolean().default(false),
8369
+ pinSessions: z5.boolean().default(false),
8370
+ renameSessions: z5.boolean().default(false),
8371
+ deleteSessions: z5.boolean().default(false)
8372
+ }).strict();
8373
+ var AgentWorkbenchNavigationViewModelSchema = z5.object({
8374
+ contract: z5.literal("AgentWorkbenchNavigationViewModel"),
8375
+ activeTab: z5.enum(["agents", "sessions"]).default("sessions"),
8376
+ searchQuery: z5.string().default(""),
8377
+ selectedAgentItem: ContractIdentifierSchema.optional(),
8378
+ selectedSessionItem: ContractIdentifierSchema.optional(),
8379
+ agents: z5.object({
8380
+ status: AgentWorkbenchCollectionStatusSchema,
8381
+ items: z5.array(AgentWorkbenchAgentItemSchema),
8382
+ error: z5.string().optional()
8383
+ }).strict(),
8384
+ sessions: z5.object({
8385
+ status: AgentWorkbenchCollectionStatusSchema,
8386
+ items: z5.array(AgentWorkbenchSessionItemSchema),
8387
+ error: z5.string().optional()
8388
+ }).strict(),
8389
+ capabilities: AgentWorkbenchNavigationCapabilitiesSchema
8390
+ }).strict().superRefine((value, context) => {
8391
+ const validateCollection = (collection, path) => {
8392
+ if (collection.status === "error" && !collection.error) {
8393
+ context.addIssue({
8394
+ code: "custom",
8395
+ path: [path, "error"],
8396
+ message: "An error collection must include an error message."
8397
+ });
8398
+ }
8399
+ };
8400
+ validateCollection(value.agents, "agents");
8401
+ validateCollection(value.sessions, "sessions");
8402
+ });
8340
8403
 
8341
8404
  // src/runtime/agent-session-projector.ts
8342
8405
  function createAgentSessionEventProjection(sessionId) {