@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.
- package/lib/contracts/agent.d.ts +157 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +84 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/tenant.d.ts +360 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +15 -11
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +95 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +94 -7
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +72 -7
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +78 -7
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +274 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +274 -0
- package/lib/schemas/index.d.ts +170 -2
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -4
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -7662,6 +7662,81 @@ var AgentWorkbenchQuickStartCategorySchema = z4.object({
|
|
|
7662
7662
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7663
7663
|
sections: z4.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
7664
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
|
+
}
|
|
7665
7740
|
var AgentWorkbenchQuickStartViewModelSchema = z4.object({
|
|
7666
7741
|
contract: z4.literal("AgentWorkbenchQuickStartViewModel"),
|
|
7667
7742
|
mode: AgentModeSchema,
|
|
@@ -11596,6 +11671,16 @@ var AssetVariantsSchema = z15.object({
|
|
|
11596
11671
|
light: z15.string().optional(),
|
|
11597
11672
|
dark: z15.string().optional()
|
|
11598
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();
|
|
11599
11684
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
11600
11685
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
11601
11686
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
@@ -12041,13 +12126,7 @@ var TenantApplicationConfigSchema = z15.object({
|
|
|
12041
12126
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
12042
12127
|
homeEntryEnabled: z15.boolean().optional()
|
|
12043
12128
|
}).strict().optional(),
|
|
12044
|
-
agent:
|
|
12045
|
-
logo: AssetVariantsSchema.optional(),
|
|
12046
|
-
brandDisplayMode: z15.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
12047
|
-
density: z15.enum(["compact", "default", "comfortable"]).optional(),
|
|
12048
|
-
navigationMode: z15.enum(["default", "session", "trend"]).optional(),
|
|
12049
|
-
quickStartEnabled: z15.boolean().optional()
|
|
12050
|
-
}).strict().optional()
|
|
12129
|
+
agent: TenantAgentThemeConfigSchema.optional()
|
|
12051
12130
|
}).strict(),
|
|
12052
12131
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
12053
12132
|
auth: z15.object({
|
|
@@ -15073,6 +15152,11 @@ export {
|
|
|
15073
15152
|
AgentWorkbenchQuickStartTemplateSchema,
|
|
15074
15153
|
AgentWorkbenchQuickStartViewModelSchema,
|
|
15075
15154
|
AgentWorkbenchSessionItemSchema,
|
|
15155
|
+
AgentWorkbenchSidebarConfigSchema,
|
|
15156
|
+
AgentWorkbenchSidebarGroupItemSchema,
|
|
15157
|
+
AgentWorkbenchSidebarGroupSchema,
|
|
15158
|
+
AgentWorkbenchSidebarNavigationModeSchema,
|
|
15159
|
+
AgentWorkbenchSidebarSectionSchema,
|
|
15076
15160
|
ApplicationHandoffEndpointSchema,
|
|
15077
15161
|
ApplicationHandoffSchema,
|
|
15078
15162
|
ApplicationRunSchema,
|
|
@@ -15121,6 +15205,7 @@ export {
|
|
|
15121
15205
|
CurrentUserMenuNavigationItemSchema,
|
|
15122
15206
|
CurrentUserMenuProfileSchema,
|
|
15123
15207
|
CurrentUserMenuSectionSchema,
|
|
15208
|
+
DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS,
|
|
15124
15209
|
DEFAULT_CONDUCTOR_OWNER_EMAIL,
|
|
15125
15210
|
DataContinuityEnvelopeSchema,
|
|
15126
15211
|
DeclarationGraphEdgeSchema,
|
|
@@ -15244,6 +15329,7 @@ export {
|
|
|
15244
15329
|
StorageLocatorSchema,
|
|
15245
15330
|
StudioAgentModeSchema,
|
|
15246
15331
|
SystemGroupDefinitionSchema,
|
|
15332
|
+
TenantAgentThemeConfigSchema,
|
|
15247
15333
|
TenantApplicationConfigSchema,
|
|
15248
15334
|
TenantAuthBindingSchema,
|
|
15249
15335
|
TenantAuthBindingsSchema,
|
|
@@ -15348,6 +15434,7 @@ export {
|
|
|
15348
15434
|
readApplicationHandoffFromUrl,
|
|
15349
15435
|
readMenuActivationFromSearch,
|
|
15350
15436
|
resolveAgentSessionCommandTransition,
|
|
15437
|
+
resolveAgentWorkbenchSidebarConfig,
|
|
15351
15438
|
resolveMenuActivationId,
|
|
15352
15439
|
resolveThemeTokens,
|
|
15353
15440
|
serializeApplicationHandoff,
|