@inf-monkeys-tech/monkeys 1.0.60 → 1.0.62
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 +363 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +19 -12
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +99 -9
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +98 -8
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +76 -8
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +82 -8
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +277 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +277 -0
- package/lib/schemas/index.d.ts +172 -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/test/fixtures/tenant-product-config.public.json +1 -1
|
@@ -8011,6 +8011,67 @@ var AgentWorkbenchQuickStartCategorySchema = z6.object({
|
|
|
8011
8011
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
8012
8012
|
sections: z6.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
8013
8013
|
}).strict();
|
|
8014
|
+
var AgentWorkbenchSidebarNavigationModeSchema = z6.enum(["default", "session", "trend"]);
|
|
8015
|
+
var AgentWorkbenchSidebarSectionSchema = z6.enum([
|
|
8016
|
+
"header",
|
|
8017
|
+
"search",
|
|
8018
|
+
"new-session",
|
|
8019
|
+
"sessions",
|
|
8020
|
+
"agents",
|
|
8021
|
+
"groups",
|
|
8022
|
+
"footer"
|
|
8023
|
+
]);
|
|
8024
|
+
var AgentWorkbenchSidebarGroupItemSchema = z6.object({
|
|
8025
|
+
id: ContractIdentifierSchema,
|
|
8026
|
+
title: z6.string().trim().min(1).max(120),
|
|
8027
|
+
subtitle: z6.string().trim().min(1).max(240).optional(),
|
|
8028
|
+
imageUrl: z6.string().trim().min(1).max(2048).optional(),
|
|
8029
|
+
prompt: z6.string().trim().min(1).max(1e4),
|
|
8030
|
+
mediaVariant: z6.enum(["cover", "cover-with-label", "logo"]).optional(),
|
|
8031
|
+
mediaTreatment: z6.enum(["preserve", "monochrome-light", "invert"]).optional()
|
|
8032
|
+
}).strict();
|
|
8033
|
+
var AgentWorkbenchSidebarGroupSchema = z6.object({
|
|
8034
|
+
id: ContractIdentifierSchema,
|
|
8035
|
+
label: z6.string().trim().min(1).max(120),
|
|
8036
|
+
items: z6.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
|
|
8037
|
+
itemAspectRatio: z6.number().positive().max(10).optional()
|
|
8038
|
+
}).strict();
|
|
8039
|
+
var AgentWorkbenchSidebarConfigSchema = z6.object({
|
|
8040
|
+
navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
|
|
8041
|
+
defaultOpen: z6.boolean().optional(),
|
|
8042
|
+
/** Initial sidebar width as a percentage of the workbench split pane. */
|
|
8043
|
+
widthPercent: z6.number().int().min(10).max(40).optional(),
|
|
8044
|
+
visibleSections: z6.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
|
|
8045
|
+
groups: z6.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
|
|
8046
|
+
defaultGroupId: ContractIdentifierSchema.optional(),
|
|
8047
|
+
quickStartEnabled: z6.boolean().optional(),
|
|
8048
|
+
quickStartCategories: z6.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
|
|
8049
|
+
trendEntryEnabled: z6.boolean().optional()
|
|
8050
|
+
}).strict().superRefine((value, context) => {
|
|
8051
|
+
if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
|
|
8052
|
+
context.addIssue({
|
|
8053
|
+
code: "custom",
|
|
8054
|
+
path: ["visibleSections"],
|
|
8055
|
+
message: "Sidebar sections must be unique."
|
|
8056
|
+
});
|
|
8057
|
+
}
|
|
8058
|
+
if (value.defaultGroupId && !value.groups?.some((group) => group.id === value.defaultGroupId)) {
|
|
8059
|
+
context.addIssue({
|
|
8060
|
+
code: "custom",
|
|
8061
|
+
path: ["defaultGroupId"],
|
|
8062
|
+
message: "The default sidebar group must exist in groups."
|
|
8063
|
+
});
|
|
8064
|
+
}
|
|
8065
|
+
});
|
|
8066
|
+
var DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS = Object.freeze([
|
|
8067
|
+
"header",
|
|
8068
|
+
"search",
|
|
8069
|
+
"new-session",
|
|
8070
|
+
"sessions",
|
|
8071
|
+
"agents",
|
|
8072
|
+
"groups",
|
|
8073
|
+
"footer"
|
|
8074
|
+
]);
|
|
8014
8075
|
var AgentWorkbenchQuickStartViewModelSchema = z6.object({
|
|
8015
8076
|
contract: z6.literal("AgentWorkbenchQuickStartViewModel"),
|
|
8016
8077
|
mode: AgentModeSchema,
|
|
@@ -11249,6 +11310,16 @@ var AssetVariantsSchema = z14.object({
|
|
|
11249
11310
|
light: z14.string().optional(),
|
|
11250
11311
|
dark: z14.string().optional()
|
|
11251
11312
|
}).strict();
|
|
11313
|
+
var TenantAgentThemeConfigSchema = z14.object({
|
|
11314
|
+
logo: AssetVariantsSchema.optional(),
|
|
11315
|
+
brandDisplayMode: z14.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
11316
|
+
density: z14.enum(["compact", "default", "comfortable"]).optional(),
|
|
11317
|
+
sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
|
|
11318
|
+
/** @deprecated Use sidebar.navigationMode. */
|
|
11319
|
+
navigationMode: z14.enum(["default", "session", "trend"]).optional(),
|
|
11320
|
+
/** @deprecated Use sidebar.quickStartEnabled. */
|
|
11321
|
+
quickStartEnabled: z14.boolean().optional()
|
|
11322
|
+
}).strict();
|
|
11252
11323
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
11253
11324
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
11254
11325
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
@@ -11694,19 +11765,16 @@ var TenantApplicationConfigSchema = z14.object({
|
|
|
11694
11765
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
11695
11766
|
homeEntryEnabled: z14.boolean().optional()
|
|
11696
11767
|
}).strict().optional(),
|
|
11697
|
-
agent:
|
|
11698
|
-
logo: AssetVariantsSchema.optional(),
|
|
11699
|
-
brandDisplayMode: z14.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
11700
|
-
density: z14.enum(["compact", "default", "comfortable"]).optional(),
|
|
11701
|
-
navigationMode: z14.enum(["default", "session", "trend"]).optional(),
|
|
11702
|
-
quickStartEnabled: z14.boolean().optional()
|
|
11703
|
-
}).strict().optional()
|
|
11768
|
+
agent: TenantAgentThemeConfigSchema.optional()
|
|
11704
11769
|
}).strict(),
|
|
11705
11770
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
11706
11771
|
auth: z14.object({
|
|
11707
11772
|
enabled: z14.array(ContractIdentifierSchema).default([]),
|
|
11708
11773
|
oidc: z14.object({ buttonText: z14.string().optional(), autoSignin: z14.boolean().optional() }).strict().optional(),
|
|
11709
|
-
password: z14.object({
|
|
11774
|
+
password: z14.object({
|
|
11775
|
+
registrationEnabled: z14.boolean().optional(),
|
|
11776
|
+
disableAutoRegister: z14.boolean().optional()
|
|
11777
|
+
}).strict().optional(),
|
|
11710
11778
|
hideAuthToast: z14.boolean().optional(),
|
|
11711
11779
|
autoReload: z14.boolean().optional(),
|
|
11712
11780
|
defaultOtherTeam: z14.boolean().optional()
|
|
@@ -12903,6 +12971,11 @@ export {
|
|
|
12903
12971
|
AgentWorkbenchQuickStartTemplateSchema,
|
|
12904
12972
|
AgentWorkbenchQuickStartViewModelSchema,
|
|
12905
12973
|
AgentWorkbenchSessionItemSchema,
|
|
12974
|
+
AgentWorkbenchSidebarConfigSchema,
|
|
12975
|
+
AgentWorkbenchSidebarGroupItemSchema,
|
|
12976
|
+
AgentWorkbenchSidebarGroupSchema,
|
|
12977
|
+
AgentWorkbenchSidebarNavigationModeSchema,
|
|
12978
|
+
AgentWorkbenchSidebarSectionSchema,
|
|
12906
12979
|
ApplicationHandoffEndpointSchema,
|
|
12907
12980
|
ApplicationHandoffSchema,
|
|
12908
12981
|
ApplicationRunSchema,
|
|
@@ -13025,6 +13098,7 @@ export {
|
|
|
13025
13098
|
StorageLocatorSchema,
|
|
13026
13099
|
StudioAgentModeSchema,
|
|
13027
13100
|
SystemGroupDefinitionSchema,
|
|
13101
|
+
TenantAgentThemeConfigSchema,
|
|
13028
13102
|
TenantApplicationConfigSchema,
|
|
13029
13103
|
TenantLandingPageConfigSchema,
|
|
13030
13104
|
TenantListFooterConfigSchema,
|