@inf-monkeys-tech/monkeys 1.0.31 → 1.0.33

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.
@@ -8400,6 +8400,79 @@ var AgentWorkbenchNavigationViewModelSchema = z5.object({
8400
8400
  validateCollection(value.agents, "agents");
8401
8401
  validateCollection(value.sessions, "sessions");
8402
8402
  });
8403
+ var AgentWorkbenchComposerStatusSchema = z5.enum([
8404
+ "idle",
8405
+ "loading",
8406
+ "streaming",
8407
+ "stopping",
8408
+ "error"
8409
+ ]);
8410
+ var AgentWorkbenchComposerAttachmentSchema = z5.object({
8411
+ id: ContractIdentifierSchema,
8412
+ name: z5.string().min(1),
8413
+ mediaType: z5.string().min(1).optional(),
8414
+ previewUrl: z5.string().min(1).optional(),
8415
+ status: z5.enum(["uploading", "ready", "error"]).default("ready")
8416
+ }).strict();
8417
+ var AgentWorkbenchComposerQueueItemSchema = z5.object({
8418
+ id: ContractIdentifierSchema,
8419
+ text: z5.string(),
8420
+ attachmentCount: z5.number().int().nonnegative().default(0),
8421
+ status: z5.enum(["queued", "sending", "error"]).default("queued")
8422
+ }).strict();
8423
+ var AgentWorkbenchComposerModelOptionSchema = z5.object({
8424
+ id: ContractIdentifierSchema,
8425
+ label: z5.string().min(1),
8426
+ provider: z5.string().min(1).optional(),
8427
+ mode: AgentModeSchema,
8428
+ disabled: z5.boolean().default(false)
8429
+ }).strict();
8430
+ var AgentWorkbenchComposerCapabilitiesSchema = z5.object({
8431
+ attachments: z5.boolean().default(false),
8432
+ voiceInput: z5.boolean().default(false),
8433
+ webSearch: z5.boolean().default(false),
8434
+ modelSelection: z5.boolean().default(false),
8435
+ reasoning: z5.boolean().default(false),
8436
+ permissions: z5.boolean().default(false),
8437
+ queue: z5.boolean().default(false),
8438
+ stop: z5.boolean().default(false)
8439
+ }).strict();
8440
+ var AgentWorkbenchComposerViewModelSchema = z5.object({
8441
+ contract: z5.literal("AgentWorkbenchComposerViewModel"),
8442
+ value: z5.string().default(""),
8443
+ status: AgentWorkbenchComposerStatusSchema.default("idle"),
8444
+ mode: AgentModeSchema,
8445
+ placeholder: z5.string().optional(),
8446
+ attachments: z5.array(AgentWorkbenchComposerAttachmentSchema).default([]),
8447
+ queuedDrafts: z5.array(AgentWorkbenchComposerQueueItemSchema).default([]),
8448
+ model: z5.object({
8449
+ selectedId: ContractIdentifierSchema.optional(),
8450
+ options: z5.array(AgentWorkbenchComposerModelOptionSchema)
8451
+ }).strict(),
8452
+ reasoning: z5.object({
8453
+ value: z5.enum(["low", "medium", "high", "xhigh"]),
8454
+ options: z5.array(z5.enum(["low", "medium", "high", "xhigh"])).min(1)
8455
+ }).strict().optional(),
8456
+ permissionProfile: AgentSessionPermissionProfileSchema.optional(),
8457
+ webSearchEnabled: z5.boolean().default(false),
8458
+ error: z5.string().optional(),
8459
+ capabilities: AgentWorkbenchComposerCapabilitiesSchema
8460
+ }).strict().superRefine((value, context) => {
8461
+ if (value.status === "error" && !value.error) {
8462
+ context.addIssue({
8463
+ code: "custom",
8464
+ path: ["error"],
8465
+ message: "An error composer must include an error message."
8466
+ });
8467
+ }
8468
+ if (value.model.selectedId && !value.model.options.some((option) => option.id === value.model.selectedId)) {
8469
+ context.addIssue({
8470
+ code: "custom",
8471
+ path: ["model", "selectedId"],
8472
+ message: "The selected model must exist in model options."
8473
+ });
8474
+ }
8475
+ });
8403
8476
 
8404
8477
  // src/runtime/agent-session-projector.ts
8405
8478
  function createAgentSessionEventProjection(sessionId) {
@@ -12174,19 +12247,26 @@ var LoginPageSchema = z10.object({
12174
12247
  }).strict().optional(),
12175
12248
  customCss: z10.string().optional()
12176
12249
  }).strict();
12250
+ var LandingPageHeadbarConfigShape = {
12251
+ headbarMode: z10.enum(["shared", "hidden"]).optional()
12252
+ };
12177
12253
  var LandingPageDefaultConfigSchema = z10.object({
12178
- mode: z10.literal("default")
12254
+ mode: z10.literal("default"),
12255
+ ...LandingPageHeadbarConfigShape
12179
12256
  }).strict();
12180
12257
  var LandingPageMarkdownConfigSchema = z10.object({
12181
12258
  mode: z10.literal("markdown"),
12182
- content: z10.string()
12259
+ content: z10.string(),
12260
+ ...LandingPageHeadbarConfigShape
12183
12261
  }).strict();
12184
12262
  var LandingPageHtmlConfigSchema = z10.object({
12185
12263
  mode: z10.literal("html"),
12186
- content: z10.string()
12264
+ content: z10.string(),
12265
+ ...LandingPageHeadbarConfigShape
12187
12266
  }).strict();
12188
12267
  var LandingPageIframeConfigSchema = z10.object({
12189
12268
  mode: z10.literal("iframe"),
12269
+ ...LandingPageHeadbarConfigShape,
12190
12270
  url: z10.string().refine((value) => {
12191
12271
  if (/^\/(?!\/)/.test(value)) {
12192
12272
  return !value.includes("\\");