@inf-monkeys-tech/monkeys 1.0.31 → 1.0.32

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/esm/index.mjs CHANGED
@@ -7547,6 +7547,79 @@ var AgentWorkbenchNavigationViewModelSchema = z3.object({
7547
7547
  validateCollection(value.agents, "agents");
7548
7548
  validateCollection(value.sessions, "sessions");
7549
7549
  });
7550
+ var AgentWorkbenchComposerStatusSchema = z3.enum([
7551
+ "idle",
7552
+ "loading",
7553
+ "streaming",
7554
+ "stopping",
7555
+ "error"
7556
+ ]);
7557
+ var AgentWorkbenchComposerAttachmentSchema = z3.object({
7558
+ id: ContractIdentifierSchema,
7559
+ name: z3.string().min(1),
7560
+ mediaType: z3.string().min(1).optional(),
7561
+ previewUrl: z3.string().min(1).optional(),
7562
+ status: z3.enum(["uploading", "ready", "error"]).default("ready")
7563
+ }).strict();
7564
+ var AgentWorkbenchComposerQueueItemSchema = z3.object({
7565
+ id: ContractIdentifierSchema,
7566
+ text: z3.string(),
7567
+ attachmentCount: z3.number().int().nonnegative().default(0),
7568
+ status: z3.enum(["queued", "sending", "error"]).default("queued")
7569
+ }).strict();
7570
+ var AgentWorkbenchComposerModelOptionSchema = z3.object({
7571
+ id: ContractIdentifierSchema,
7572
+ label: z3.string().min(1),
7573
+ provider: z3.string().min(1).optional(),
7574
+ mode: AgentModeSchema,
7575
+ disabled: z3.boolean().default(false)
7576
+ }).strict();
7577
+ var AgentWorkbenchComposerCapabilitiesSchema = z3.object({
7578
+ attachments: z3.boolean().default(false),
7579
+ voiceInput: z3.boolean().default(false),
7580
+ webSearch: z3.boolean().default(false),
7581
+ modelSelection: z3.boolean().default(false),
7582
+ reasoning: z3.boolean().default(false),
7583
+ permissions: z3.boolean().default(false),
7584
+ queue: z3.boolean().default(false),
7585
+ stop: z3.boolean().default(false)
7586
+ }).strict();
7587
+ var AgentWorkbenchComposerViewModelSchema = z3.object({
7588
+ contract: z3.literal("AgentWorkbenchComposerViewModel"),
7589
+ value: z3.string().default(""),
7590
+ status: AgentWorkbenchComposerStatusSchema.default("idle"),
7591
+ mode: AgentModeSchema,
7592
+ placeholder: z3.string().optional(),
7593
+ attachments: z3.array(AgentWorkbenchComposerAttachmentSchema).default([]),
7594
+ queuedDrafts: z3.array(AgentWorkbenchComposerQueueItemSchema).default([]),
7595
+ model: z3.object({
7596
+ selectedId: ContractIdentifierSchema.optional(),
7597
+ options: z3.array(AgentWorkbenchComposerModelOptionSchema)
7598
+ }).strict(),
7599
+ reasoning: z3.object({
7600
+ value: z3.enum(["low", "medium", "high", "xhigh"]),
7601
+ options: z3.array(z3.enum(["low", "medium", "high", "xhigh"])).min(1)
7602
+ }).strict().optional(),
7603
+ permissionProfile: AgentSessionPermissionProfileSchema.optional(),
7604
+ webSearchEnabled: z3.boolean().default(false),
7605
+ error: z3.string().optional(),
7606
+ capabilities: AgentWorkbenchComposerCapabilitiesSchema
7607
+ }).strict().superRefine((value, context) => {
7608
+ if (value.status === "error" && !value.error) {
7609
+ context.addIssue({
7610
+ code: "custom",
7611
+ path: ["error"],
7612
+ message: "An error composer must include an error message."
7613
+ });
7614
+ }
7615
+ if (value.model.selectedId && !value.model.options.some((option) => option.id === value.model.selectedId)) {
7616
+ context.addIssue({
7617
+ code: "custom",
7618
+ path: ["model", "selectedId"],
7619
+ message: "The selected model must exist in model options."
7620
+ });
7621
+ }
7622
+ });
7550
7623
  var AgentExecutionModeSchema = AgentModeSchema;
7551
7624
  function normalizeAgentMode(value) {
7552
7625
  const normalized = String(value ?? "").trim().toLowerCase();
@@ -12220,6 +12293,7 @@ var canonicalContractSchemas = {
12220
12293
  "agent-session-run-event": AgentSessionRunEventSchema,
12221
12294
  "agent-session-run": AgentSessionRunSchema,
12222
12295
  "agent-session-view-model": AgentSessionViewModelSchema,
12296
+ "agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
12223
12297
  "agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
12224
12298
  "agent-runtime-event": AgentRuntimeEventSchema,
12225
12299
  "application-run": ApplicationRunSchema,
@@ -13546,6 +13620,12 @@ export {
13546
13620
  AgentSessionViewModelSchema,
13547
13621
  AgentWorkbenchAgentItemSchema,
13548
13622
  AgentWorkbenchCollectionStatusSchema,
13623
+ AgentWorkbenchComposerAttachmentSchema,
13624
+ AgentWorkbenchComposerCapabilitiesSchema,
13625
+ AgentWorkbenchComposerModelOptionSchema,
13626
+ AgentWorkbenchComposerQueueItemSchema,
13627
+ AgentWorkbenchComposerStatusSchema,
13628
+ AgentWorkbenchComposerViewModelSchema,
13549
13629
  AgentWorkbenchNavigationCapabilitiesSchema,
13550
13630
  AgentWorkbenchNavigationItemStatusSchema,
13551
13631
  AgentWorkbenchNavigationViewModelSchema,