@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.
@@ -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
@@ -10972,19 +11045,26 @@ var LoginPageSchema = z12.object({
10972
11045
  }).strict().optional(),
10973
11046
  customCss: z12.string().optional()
10974
11047
  }).strict();
11048
+ var LandingPageHeadbarConfigShape = {
11049
+ headbarMode: z12.enum(["shared", "hidden"]).optional()
11050
+ };
10975
11051
  var LandingPageDefaultConfigSchema = z12.object({
10976
- mode: z12.literal("default")
11052
+ mode: z12.literal("default"),
11053
+ ...LandingPageHeadbarConfigShape
10977
11054
  }).strict();
10978
11055
  var LandingPageMarkdownConfigSchema = z12.object({
10979
11056
  mode: z12.literal("markdown"),
10980
- content: z12.string()
11057
+ content: z12.string(),
11058
+ ...LandingPageHeadbarConfigShape
10981
11059
  }).strict();
10982
11060
  var LandingPageHtmlConfigSchema = z12.object({
10983
11061
  mode: z12.literal("html"),
10984
- content: z12.string()
11062
+ content: z12.string(),
11063
+ ...LandingPageHeadbarConfigShape
10985
11064
  }).strict();
10986
11065
  var LandingPageIframeConfigSchema = z12.object({
10987
11066
  mode: z12.literal("iframe"),
11067
+ ...LandingPageHeadbarConfigShape,
10988
11068
  url: z12.string().refine((value) => {
10989
11069
  if (/^\/(?!\/)/.test(value)) {
10990
11070
  return !value.includes("\\");
@@ -12088,6 +12168,7 @@ var canonicalContractSchemas = {
12088
12168
  "agent-session-run-event": AgentSessionRunEventSchema,
12089
12169
  "agent-session-run": AgentSessionRunSchema,
12090
12170
  "agent-session-view-model": AgentSessionViewModelSchema,
12171
+ "agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
12091
12172
  "agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
12092
12173
  "agent-runtime-event": AgentRuntimeEventSchema,
12093
12174
  "application-run": ApplicationRunSchema,
@@ -12177,6 +12258,12 @@ export {
12177
12258
  AgentSessionViewModelSchema,
12178
12259
  AgentWorkbenchAgentItemSchema,
12179
12260
  AgentWorkbenchCollectionStatusSchema,
12261
+ AgentWorkbenchComposerAttachmentSchema,
12262
+ AgentWorkbenchComposerCapabilitiesSchema,
12263
+ AgentWorkbenchComposerModelOptionSchema,
12264
+ AgentWorkbenchComposerQueueItemSchema,
12265
+ AgentWorkbenchComposerStatusSchema,
12266
+ AgentWorkbenchComposerViewModelSchema,
12180
12267
  AgentWorkbenchNavigationCapabilitiesSchema,
12181
12268
  AgentWorkbenchNavigationItemStatusSchema,
12182
12269
  AgentWorkbenchNavigationViewModelSchema,