@inf-monkeys-tech/monkeys 1.0.58 → 1.0.61

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
@@ -7604,6 +7604,15 @@ var AgentWorkbenchComposerQueueItemSchema = z4.object({
7604
7604
  attachmentCount: z4.number().int().nonnegative().default(0),
7605
7605
  status: z4.enum(["queued", "sending", "error"]).default("queued")
7606
7606
  }).strict();
7607
+ var AgentWorkbenchComposerInputActionIconSchema = z4.enum([
7608
+ "file-text",
7609
+ "image"
7610
+ ]);
7611
+ var AgentWorkbenchComposerInputActionSchema = z4.object({
7612
+ id: ContractIdentifierSchema,
7613
+ label: z4.string().min(1),
7614
+ icon: AgentWorkbenchComposerInputActionIconSchema.optional()
7615
+ }).strict();
7607
7616
  var AgentWorkbenchComposerModelOptionSchema = z4.object({
7608
7617
  id: ContractIdentifierSchema,
7609
7618
  label: z4.string().min(1),
@@ -7653,6 +7662,81 @@ var AgentWorkbenchQuickStartCategorySchema = z4.object({
7653
7662
  icon: AgentWorkbenchQuickStartIconSchema.optional(),
7654
7663
  sections: z4.array(AgentWorkbenchQuickStartSectionSchema).min(1)
7655
7664
  }).strict();
7665
+ var AgentWorkbenchSidebarNavigationModeSchema = z4.enum(["default", "session", "trend"]);
7666
+ var AgentWorkbenchSidebarSectionSchema = z4.enum([
7667
+ "header",
7668
+ "search",
7669
+ "new-session",
7670
+ "sessions",
7671
+ "agents",
7672
+ "groups",
7673
+ "footer"
7674
+ ]);
7675
+ var AgentWorkbenchSidebarGroupItemSchema = z4.object({
7676
+ id: ContractIdentifierSchema,
7677
+ title: z4.string().trim().min(1).max(120),
7678
+ subtitle: z4.string().trim().min(1).max(240).optional(),
7679
+ imageUrl: z4.string().trim().min(1).max(2048).optional(),
7680
+ prompt: z4.string().trim().min(1).max(1e4),
7681
+ mediaVariant: z4.enum(["cover", "cover-with-label", "logo"]).optional(),
7682
+ mediaTreatment: z4.enum(["preserve", "monochrome-light", "invert"]).optional()
7683
+ }).strict();
7684
+ var AgentWorkbenchSidebarGroupSchema = z4.object({
7685
+ id: ContractIdentifierSchema,
7686
+ label: z4.string().trim().min(1).max(120),
7687
+ items: z4.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
7688
+ itemAspectRatio: z4.number().positive().max(10).optional()
7689
+ }).strict();
7690
+ var AgentWorkbenchSidebarConfigSchema = z4.object({
7691
+ navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
7692
+ defaultOpen: z4.boolean().optional(),
7693
+ /** Initial sidebar width as a percentage of the workbench split pane. */
7694
+ widthPercent: z4.number().int().min(10).max(40).optional(),
7695
+ visibleSections: z4.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
7696
+ groups: z4.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
7697
+ defaultGroupId: ContractIdentifierSchema.optional(),
7698
+ quickStartEnabled: z4.boolean().optional(),
7699
+ quickStartCategories: z4.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
7700
+ trendEntryEnabled: z4.boolean().optional()
7701
+ }).strict().superRefine((value, context) => {
7702
+ if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
7703
+ context.addIssue({
7704
+ code: "custom",
7705
+ path: ["visibleSections"],
7706
+ message: "Sidebar sections must be unique."
7707
+ });
7708
+ }
7709
+ if (value.defaultGroupId && !value.groups?.some((group) => group.id === value.defaultGroupId)) {
7710
+ context.addIssue({
7711
+ code: "custom",
7712
+ path: ["defaultGroupId"],
7713
+ message: "The default sidebar group must exist in groups."
7714
+ });
7715
+ }
7716
+ });
7717
+ var DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS = Object.freeze([
7718
+ "header",
7719
+ "search",
7720
+ "new-session",
7721
+ "sessions",
7722
+ "agents",
7723
+ "groups",
7724
+ "footer"
7725
+ ]);
7726
+ function resolveAgentWorkbenchSidebarConfig(config, legacy = {}) {
7727
+ const parsed = AgentWorkbenchSidebarConfigSchema.parse(config ?? {});
7728
+ const navigationMode = parsed.navigationMode ?? legacy.navigationMode ?? "default";
7729
+ return {
7730
+ ...parsed,
7731
+ navigationMode,
7732
+ defaultOpen: parsed.defaultOpen ?? true,
7733
+ widthPercent: parsed.widthPercent ?? 18,
7734
+ visibleSections: parsed.visibleSections ?? [...DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS],
7735
+ groups: parsed.groups ?? [],
7736
+ quickStartEnabled: parsed.quickStartEnabled ?? legacy.quickStartEnabled ?? false,
7737
+ trendEntryEnabled: parsed.trendEntryEnabled ?? navigationMode === "trend"
7738
+ };
7739
+ }
7656
7740
  var AgentWorkbenchQuickStartViewModelSchema = z4.object({
7657
7741
  contract: z4.literal("AgentWorkbenchQuickStartViewModel"),
7658
7742
  mode: AgentModeSchema,
@@ -7667,6 +7751,8 @@ var AgentWorkbenchComposerViewModelSchema = z4.object({
7667
7751
  placeholder: z4.string().optional(),
7668
7752
  attachments: z4.array(AgentWorkbenchComposerAttachmentSchema).default([]),
7669
7753
  queuedDrafts: z4.array(AgentWorkbenchComposerQueueItemSchema).default([]),
7754
+ inputActions: z4.array(AgentWorkbenchComposerInputActionSchema).default([]),
7755
+ selectedInputActionId: ContractIdentifierSchema.optional(),
7670
7756
  model: z4.object({
7671
7757
  selectedId: ContractIdentifierSchema.optional(),
7672
7758
  options: z4.array(AgentWorkbenchComposerModelOptionSchema)
@@ -11585,6 +11671,16 @@ var AssetVariantsSchema = z15.object({
11585
11671
  light: z15.string().optional(),
11586
11672
  dark: z15.string().optional()
11587
11673
  }).strict();
11674
+ var TenantAgentThemeConfigSchema = z15.object({
11675
+ logo: AssetVariantsSchema.optional(),
11676
+ brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
11677
+ density: z15.enum(["compact", "default", "comfortable"]).optional(),
11678
+ sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
11679
+ /** @deprecated Use sidebar.navigationMode. */
11680
+ navigationMode: z15.enum(["default", "session", "trend"]).optional(),
11681
+ /** @deprecated Use sidebar.quickStartEnabled. */
11682
+ quickStartEnabled: z15.boolean().optional()
11683
+ }).strict();
11588
11684
  var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
11589
11685
  var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
11590
11686
  var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
@@ -12030,13 +12126,7 @@ var TenantApplicationConfigSchema = z15.object({
12030
12126
  defaultPageKey: ContractIdentifierSchema.optional(),
12031
12127
  homeEntryEnabled: z15.boolean().optional()
12032
12128
  }).strict().optional(),
12033
- agent: z15.object({
12034
- logo: AssetVariantsSchema.optional(),
12035
- brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
12036
- density: z15.enum(["compact", "default", "comfortable"]).optional(),
12037
- navigationMode: z15.enum(["default", "session", "trend"]).optional(),
12038
- quickStartEnabled: z15.boolean().optional()
12039
- }).strict().optional()
12129
+ agent: TenantAgentThemeConfigSchema.optional()
12040
12130
  }).strict(),
12041
12131
  landingPage: TenantLandingPageConfigSchema.optional(),
12042
12132
  auth: z15.object({
@@ -15046,6 +15136,8 @@ export {
15046
15136
  AgentWorkbenchCollectionStatusSchema,
15047
15137
  AgentWorkbenchComposerAttachmentSchema,
15048
15138
  AgentWorkbenchComposerCapabilitiesSchema,
15139
+ AgentWorkbenchComposerInputActionIconSchema,
15140
+ AgentWorkbenchComposerInputActionSchema,
15049
15141
  AgentWorkbenchComposerModelOptionSchema,
15050
15142
  AgentWorkbenchComposerQueueItemSchema,
15051
15143
  AgentWorkbenchComposerStatusSchema,
@@ -15060,6 +15152,11 @@ export {
15060
15152
  AgentWorkbenchQuickStartTemplateSchema,
15061
15153
  AgentWorkbenchQuickStartViewModelSchema,
15062
15154
  AgentWorkbenchSessionItemSchema,
15155
+ AgentWorkbenchSidebarConfigSchema,
15156
+ AgentWorkbenchSidebarGroupItemSchema,
15157
+ AgentWorkbenchSidebarGroupSchema,
15158
+ AgentWorkbenchSidebarNavigationModeSchema,
15159
+ AgentWorkbenchSidebarSectionSchema,
15063
15160
  ApplicationHandoffEndpointSchema,
15064
15161
  ApplicationHandoffSchema,
15065
15162
  ApplicationRunSchema,
@@ -15108,6 +15205,7 @@ export {
15108
15205
  CurrentUserMenuNavigationItemSchema,
15109
15206
  CurrentUserMenuProfileSchema,
15110
15207
  CurrentUserMenuSectionSchema,
15208
+ DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
15111
15209
  DEFAULT_CONDUCTOR_OWNER_EMAIL,
15112
15210
  DataContinuityEnvelopeSchema,
15113
15211
  DeclarationGraphEdgeSchema,
@@ -15231,6 +15329,7 @@ export {
15231
15329
  StorageLocatorSchema,
15232
15330
  StudioAgentModeSchema,
15233
15331
  SystemGroupDefinitionSchema,
15332
+ TenantAgentThemeConfigSchema,
15234
15333
  TenantApplicationConfigSchema,
15235
15334
  TenantAuthBindingSchema,
15236
15335
  TenantAuthBindingsSchema,
@@ -15335,6 +15434,7 @@ export {
15335
15434
  readApplicationHandoffFromUrl,
15336
15435
  readMenuActivationFromSearch,
15337
15436
  resolveAgentSessionCommandTransition,
15437
+ resolveAgentWorkbenchSidebarConfig,
15338
15438
  resolveMenuActivationId,
15339
15439
  resolveThemeTokens,
15340
15440
  serializeApplicationHandoff,