@inf-monkeys-tech/monkeys 1.0.30 → 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.
@@ -7870,8 +7870,8 @@ var AgentWorkbenchNavigationViewModelSchema = z5.object({
7870
7870
  contract: z5.literal("AgentWorkbenchNavigationViewModel"),
7871
7871
  activeTab: z5.enum(["agents", "sessions"]).default("sessions"),
7872
7872
  searchQuery: z5.string().default(""),
7873
- selectedAgentId: ContractIdentifierSchema.optional(),
7874
- selectedSessionId: ContractIdentifierSchema.optional(),
7873
+ selectedAgentItem: ContractIdentifierSchema.optional(),
7874
+ selectedSessionItem: ContractIdentifierSchema.optional(),
7875
7875
  agents: z5.object({
7876
7876
  status: AgentWorkbenchCollectionStatusSchema,
7877
7877
  items: z5.array(AgentWorkbenchAgentItemSchema),
@@ -7896,6 +7896,79 @@ var AgentWorkbenchNavigationViewModelSchema = z5.object({
7896
7896
  validateCollection(value.agents, "agents");
7897
7897
  validateCollection(value.sessions, "sessions");
7898
7898
  });
7899
+ var AgentWorkbenchComposerStatusSchema = z5.enum([
7900
+ "idle",
7901
+ "loading",
7902
+ "streaming",
7903
+ "stopping",
7904
+ "error"
7905
+ ]);
7906
+ var AgentWorkbenchComposerAttachmentSchema = z5.object({
7907
+ id: ContractIdentifierSchema,
7908
+ name: z5.string().min(1),
7909
+ mediaType: z5.string().min(1).optional(),
7910
+ previewUrl: z5.string().min(1).optional(),
7911
+ status: z5.enum(["uploading", "ready", "error"]).default("ready")
7912
+ }).strict();
7913
+ var AgentWorkbenchComposerQueueItemSchema = z5.object({
7914
+ id: ContractIdentifierSchema,
7915
+ text: z5.string(),
7916
+ attachmentCount: z5.number().int().nonnegative().default(0),
7917
+ status: z5.enum(["queued", "sending", "error"]).default("queued")
7918
+ }).strict();
7919
+ var AgentWorkbenchComposerModelOptionSchema = z5.object({
7920
+ id: ContractIdentifierSchema,
7921
+ label: z5.string().min(1),
7922
+ provider: z5.string().min(1).optional(),
7923
+ mode: AgentModeSchema,
7924
+ disabled: z5.boolean().default(false)
7925
+ }).strict();
7926
+ var AgentWorkbenchComposerCapabilitiesSchema = z5.object({
7927
+ attachments: z5.boolean().default(false),
7928
+ voiceInput: z5.boolean().default(false),
7929
+ webSearch: z5.boolean().default(false),
7930
+ modelSelection: z5.boolean().default(false),
7931
+ reasoning: z5.boolean().default(false),
7932
+ permissions: z5.boolean().default(false),
7933
+ queue: z5.boolean().default(false),
7934
+ stop: z5.boolean().default(false)
7935
+ }).strict();
7936
+ var AgentWorkbenchComposerViewModelSchema = z5.object({
7937
+ contract: z5.literal("AgentWorkbenchComposerViewModel"),
7938
+ value: z5.string().default(""),
7939
+ status: AgentWorkbenchComposerStatusSchema.default("idle"),
7940
+ mode: AgentModeSchema,
7941
+ placeholder: z5.string().optional(),
7942
+ attachments: z5.array(AgentWorkbenchComposerAttachmentSchema).default([]),
7943
+ queuedDrafts: z5.array(AgentWorkbenchComposerQueueItemSchema).default([]),
7944
+ model: z5.object({
7945
+ selectedId: ContractIdentifierSchema.optional(),
7946
+ options: z5.array(AgentWorkbenchComposerModelOptionSchema)
7947
+ }).strict(),
7948
+ reasoning: z5.object({
7949
+ value: z5.enum(["low", "medium", "high", "xhigh"]),
7950
+ options: z5.array(z5.enum(["low", "medium", "high", "xhigh"])).min(1)
7951
+ }).strict().optional(),
7952
+ permissionProfile: AgentSessionPermissionProfileSchema.optional(),
7953
+ webSearchEnabled: z5.boolean().default(false),
7954
+ error: z5.string().optional(),
7955
+ capabilities: AgentWorkbenchComposerCapabilitiesSchema
7956
+ }).strict().superRefine((value, context) => {
7957
+ if (value.status === "error" && !value.error) {
7958
+ context.addIssue({
7959
+ code: "custom",
7960
+ path: ["error"],
7961
+ message: "An error composer must include an error message."
7962
+ });
7963
+ }
7964
+ if (value.model.selectedId && !value.model.options.some((option) => option.id === value.model.selectedId)) {
7965
+ context.addIssue({
7966
+ code: "custom",
7967
+ path: ["model", "selectedId"],
7968
+ message: "The selected model must exist in model options."
7969
+ });
7970
+ }
7971
+ });
7899
7972
  var AgentExecutionModeSchema = AgentModeSchema;
7900
7973
 
7901
7974
  // src/contracts/context.ts
@@ -12088,6 +12161,7 @@ var canonicalContractSchemas = {
12088
12161
  "agent-session-run-event": AgentSessionRunEventSchema,
12089
12162
  "agent-session-run": AgentSessionRunSchema,
12090
12163
  "agent-session-view-model": AgentSessionViewModelSchema,
12164
+ "agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
12091
12165
  "agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
12092
12166
  "agent-runtime-event": AgentRuntimeEventSchema,
12093
12167
  "application-run": ApplicationRunSchema,
@@ -12177,6 +12251,12 @@ export {
12177
12251
  AgentSessionViewModelSchema,
12178
12252
  AgentWorkbenchAgentItemSchema,
12179
12253
  AgentWorkbenchCollectionStatusSchema,
12254
+ AgentWorkbenchComposerAttachmentSchema,
12255
+ AgentWorkbenchComposerCapabilitiesSchema,
12256
+ AgentWorkbenchComposerModelOptionSchema,
12257
+ AgentWorkbenchComposerQueueItemSchema,
12258
+ AgentWorkbenchComposerStatusSchema,
12259
+ AgentWorkbenchComposerViewModelSchema,
12180
12260
  AgentWorkbenchNavigationCapabilitiesSchema,
12181
12261
  AgentWorkbenchNavigationItemStatusSchema,
12182
12262
  AgentWorkbenchNavigationViewModelSchema,