@inf-monkeys-tech/monkeys 1.0.60 → 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.
@@ -7625,6 +7625,81 @@ var AgentWorkbenchQuickStartCategorySchema = z4.object({
7625
7625
  icon: AgentWorkbenchQuickStartIconSchema.optional(),
7626
7626
  sections: z4.array(AgentWorkbenchQuickStartSectionSchema).min(1)
7627
7627
  }).strict();
7628
+ var AgentWorkbenchSidebarNavigationModeSchema = z4.enum(["default", "session", "trend"]);
7629
+ var AgentWorkbenchSidebarSectionSchema = z4.enum([
7630
+ "header",
7631
+ "search",
7632
+ "new-session",
7633
+ "sessions",
7634
+ "agents",
7635
+ "groups",
7636
+ "footer"
7637
+ ]);
7638
+ var AgentWorkbenchSidebarGroupItemSchema = z4.object({
7639
+ id: ContractIdentifierSchema,
7640
+ title: z4.string().trim().min(1).max(120),
7641
+ subtitle: z4.string().trim().min(1).max(240).optional(),
7642
+ imageUrl: z4.string().trim().min(1).max(2048).optional(),
7643
+ prompt: z4.string().trim().min(1).max(1e4),
7644
+ mediaVariant: z4.enum(["cover", "cover-with-label", "logo"]).optional(),
7645
+ mediaTreatment: z4.enum(["preserve", "monochrome-light", "invert"]).optional()
7646
+ }).strict();
7647
+ var AgentWorkbenchSidebarGroupSchema = z4.object({
7648
+ id: ContractIdentifierSchema,
7649
+ label: z4.string().trim().min(1).max(120),
7650
+ items: z4.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
7651
+ itemAspectRatio: z4.number().positive().max(10).optional()
7652
+ }).strict();
7653
+ var AgentWorkbenchSidebarConfigSchema = z4.object({
7654
+ navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
7655
+ defaultOpen: z4.boolean().optional(),
7656
+ /** Initial sidebar width as a percentage of the workbench split pane. */
7657
+ widthPercent: z4.number().int().min(10).max(40).optional(),
7658
+ visibleSections: z4.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
7659
+ groups: z4.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
7660
+ defaultGroupId: ContractIdentifierSchema.optional(),
7661
+ quickStartEnabled: z4.boolean().optional(),
7662
+ quickStartCategories: z4.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
7663
+ trendEntryEnabled: z4.boolean().optional()
7664
+ }).strict().superRefine((value, context) => {
7665
+ if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
7666
+ context.addIssue({
7667
+ code: "custom",
7668
+ path: ["visibleSections"],
7669
+ message: "Sidebar sections must be unique."
7670
+ });
7671
+ }
7672
+ if (value.defaultGroupId && !value.groups?.some((group) => group.id === value.defaultGroupId)) {
7673
+ context.addIssue({
7674
+ code: "custom",
7675
+ path: ["defaultGroupId"],
7676
+ message: "The default sidebar group must exist in groups."
7677
+ });
7678
+ }
7679
+ });
7680
+ var DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS = Object.freeze([
7681
+ "header",
7682
+ "search",
7683
+ "new-session",
7684
+ "sessions",
7685
+ "agents",
7686
+ "groups",
7687
+ "footer"
7688
+ ]);
7689
+ function resolveAgentWorkbenchSidebarConfig(config, legacy = {}) {
7690
+ const parsed = AgentWorkbenchSidebarConfigSchema.parse(config ?? {});
7691
+ const navigationMode = parsed.navigationMode ?? legacy.navigationMode ?? "default";
7692
+ return {
7693
+ ...parsed,
7694
+ navigationMode,
7695
+ defaultOpen: parsed.defaultOpen ?? true,
7696
+ widthPercent: parsed.widthPercent ?? 18,
7697
+ visibleSections: parsed.visibleSections ?? [...DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS],
7698
+ groups: parsed.groups ?? [],
7699
+ quickStartEnabled: parsed.quickStartEnabled ?? legacy.quickStartEnabled ?? false,
7700
+ trendEntryEnabled: parsed.trendEntryEnabled ?? navigationMode === "trend"
7701
+ };
7702
+ }
7628
7703
  var AgentWorkbenchQuickStartViewModelSchema = z4.object({
7629
7704
  contract: z4.literal("AgentWorkbenchQuickStartViewModel"),
7630
7705
  mode: AgentModeSchema,
@@ -11526,6 +11601,16 @@ var AssetVariantsSchema = z15.object({
11526
11601
  light: z15.string().optional(),
11527
11602
  dark: z15.string().optional()
11528
11603
  }).strict();
11604
+ var TenantAgentThemeConfigSchema = z15.object({
11605
+ logo: AssetVariantsSchema.optional(),
11606
+ brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
11607
+ density: z15.enum(["compact", "default", "comfortable"]).optional(),
11608
+ sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
11609
+ /** @deprecated Use sidebar.navigationMode. */
11610
+ navigationMode: z15.enum(["default", "session", "trend"]).optional(),
11611
+ /** @deprecated Use sidebar.quickStartEnabled. */
11612
+ quickStartEnabled: z15.boolean().optional()
11613
+ }).strict();
11529
11614
  var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
11530
11615
  var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
11531
11616
  var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
@@ -11971,13 +12056,7 @@ var TenantApplicationConfigSchema = z15.object({
11971
12056
  defaultPageKey: ContractIdentifierSchema.optional(),
11972
12057
  homeEntryEnabled: z15.boolean().optional()
11973
12058
  }).strict().optional(),
11974
- agent: z15.object({
11975
- logo: AssetVariantsSchema.optional(),
11976
- brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
11977
- density: z15.enum(["compact", "default", "comfortable"]).optional(),
11978
- navigationMode: z15.enum(["default", "session", "trend"]).optional(),
11979
- quickStartEnabled: z15.boolean().optional()
11980
- }).strict().optional()
12059
+ agent: TenantAgentThemeConfigSchema.optional()
11981
12060
  }).strict(),
11982
12061
  landingPage: TenantLandingPageConfigSchema.optional(),
11983
12062
  auth: z15.object({
@@ -13112,6 +13191,11 @@ export {
13112
13191
  AgentWorkbenchQuickStartTemplateSchema,
13113
13192
  AgentWorkbenchQuickStartViewModelSchema,
13114
13193
  AgentWorkbenchSessionItemSchema,
13194
+ AgentWorkbenchSidebarConfigSchema,
13195
+ AgentWorkbenchSidebarGroupItemSchema,
13196
+ AgentWorkbenchSidebarGroupSchema,
13197
+ AgentWorkbenchSidebarNavigationModeSchema,
13198
+ AgentWorkbenchSidebarSectionSchema,
13115
13199
  ApplicationHandoffEndpointSchema,
13116
13200
  ApplicationHandoffSchema,
13117
13201
  ApplicationRunSchema,
@@ -13159,6 +13243,7 @@ export {
13159
13243
  CurrentUserMenuNavigationItemSchema,
13160
13244
  CurrentUserMenuProfileSchema,
13161
13245
  CurrentUserMenuSectionSchema,
13246
+ DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
13162
13247
  DataContinuityEnvelopeSchema,
13163
13248
  DeclarationGraphEdgeSchema,
13164
13249
  DesignTokenSourceSchema,
@@ -13279,6 +13364,7 @@ export {
13279
13364
  StorageLocatorSchema,
13280
13365
  StudioAgentModeSchema,
13281
13366
  SystemGroupDefinitionSchema,
13367
+ TenantAgentThemeConfigSchema,
13282
13368
  TenantApplicationConfigSchema,
13283
13369
  TenantAuthBindingSchema,
13284
13370
  TenantAuthBindingsSchema,
@@ -13343,6 +13429,7 @@ export {
13343
13429
  normalizeAgentExecutionMode,
13344
13430
  normalizeAgentMode,
13345
13431
  normalizeStudioAgentMode,
13346
- resolveAgentSessionCommandTransition
13432
+ resolveAgentSessionCommandTransition,
13433
+ resolveAgentWorkbenchSidebarConfig
13347
13434
  };
13348
13435
  //# sourceMappingURL=index.mjs.map