@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/contracts/agent.d.ts +186 -7
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +97 -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 +108 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +107 -7
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +83 -7
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +90 -7
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-workbench-composer-view-model.schema.json +36 -0
- 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 +181 -4
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +12 -5
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -8422,6 +8422,15 @@ var AgentWorkbenchComposerQueueItemSchema = z5.object({
|
|
|
8422
8422
|
attachmentCount: z5.number().int().nonnegative().default(0),
|
|
8423
8423
|
status: z5.enum(["queued", "sending", "error"]).default("queued")
|
|
8424
8424
|
}).strict();
|
|
8425
|
+
var AgentWorkbenchComposerInputActionIconSchema = z5.enum([
|
|
8426
|
+
"file-text",
|
|
8427
|
+
"image"
|
|
8428
|
+
]);
|
|
8429
|
+
var AgentWorkbenchComposerInputActionSchema = z5.object({
|
|
8430
|
+
id: ContractIdentifierSchema,
|
|
8431
|
+
label: z5.string().min(1),
|
|
8432
|
+
icon: AgentWorkbenchComposerInputActionIconSchema.optional()
|
|
8433
|
+
}).strict();
|
|
8425
8434
|
var AgentWorkbenchComposerModelOptionSchema = z5.object({
|
|
8426
8435
|
id: ContractIdentifierSchema,
|
|
8427
8436
|
label: z5.string().min(1),
|
|
@@ -8471,6 +8480,67 @@ var AgentWorkbenchQuickStartCategorySchema = z5.object({
|
|
|
8471
8480
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
8472
8481
|
sections: z5.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
8473
8482
|
}).strict();
|
|
8483
|
+
var AgentWorkbenchSidebarNavigationModeSchema = z5.enum(["default", "session", "trend"]);
|
|
8484
|
+
var AgentWorkbenchSidebarSectionSchema = z5.enum([
|
|
8485
|
+
"header",
|
|
8486
|
+
"search",
|
|
8487
|
+
"new-session",
|
|
8488
|
+
"sessions",
|
|
8489
|
+
"agents",
|
|
8490
|
+
"groups",
|
|
8491
|
+
"footer"
|
|
8492
|
+
]);
|
|
8493
|
+
var AgentWorkbenchSidebarGroupItemSchema = z5.object({
|
|
8494
|
+
id: ContractIdentifierSchema,
|
|
8495
|
+
title: z5.string().trim().min(1).max(120),
|
|
8496
|
+
subtitle: z5.string().trim().min(1).max(240).optional(),
|
|
8497
|
+
imageUrl: z5.string().trim().min(1).max(2048).optional(),
|
|
8498
|
+
prompt: z5.string().trim().min(1).max(1e4),
|
|
8499
|
+
mediaVariant: z5.enum(["cover", "cover-with-label", "logo"]).optional(),
|
|
8500
|
+
mediaTreatment: z5.enum(["preserve", "monochrome-light", "invert"]).optional()
|
|
8501
|
+
}).strict();
|
|
8502
|
+
var AgentWorkbenchSidebarGroupSchema = z5.object({
|
|
8503
|
+
id: ContractIdentifierSchema,
|
|
8504
|
+
label: z5.string().trim().min(1).max(120),
|
|
8505
|
+
items: z5.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
|
|
8506
|
+
itemAspectRatio: z5.number().positive().max(10).optional()
|
|
8507
|
+
}).strict();
|
|
8508
|
+
var AgentWorkbenchSidebarConfigSchema = z5.object({
|
|
8509
|
+
navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
|
|
8510
|
+
defaultOpen: z5.boolean().optional(),
|
|
8511
|
+
/** Initial sidebar width as a percentage of the workbench split pane. */
|
|
8512
|
+
widthPercent: z5.number().int().min(10).max(40).optional(),
|
|
8513
|
+
visibleSections: z5.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
|
|
8514
|
+
groups: z5.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
|
|
8515
|
+
defaultGroupId: ContractIdentifierSchema.optional(),
|
|
8516
|
+
quickStartEnabled: z5.boolean().optional(),
|
|
8517
|
+
quickStartCategories: z5.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
|
|
8518
|
+
trendEntryEnabled: z5.boolean().optional()
|
|
8519
|
+
}).strict().superRefine((value, context) => {
|
|
8520
|
+
if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
|
|
8521
|
+
context.addIssue({
|
|
8522
|
+
code: "custom",
|
|
8523
|
+
path: ["visibleSections"],
|
|
8524
|
+
message: "Sidebar sections must be unique."
|
|
8525
|
+
});
|
|
8526
|
+
}
|
|
8527
|
+
if (value.defaultGroupId && !value.groups?.some((group) => group.id === value.defaultGroupId)) {
|
|
8528
|
+
context.addIssue({
|
|
8529
|
+
code: "custom",
|
|
8530
|
+
path: ["defaultGroupId"],
|
|
8531
|
+
message: "The default sidebar group must exist in groups."
|
|
8532
|
+
});
|
|
8533
|
+
}
|
|
8534
|
+
});
|
|
8535
|
+
var DEFAULT_AGENT_WORKBENCH_SIDEBAR_SECTIONS = Object.freeze([
|
|
8536
|
+
"header",
|
|
8537
|
+
"search",
|
|
8538
|
+
"new-session",
|
|
8539
|
+
"sessions",
|
|
8540
|
+
"agents",
|
|
8541
|
+
"groups",
|
|
8542
|
+
"footer"
|
|
8543
|
+
]);
|
|
8474
8544
|
var AgentWorkbenchQuickStartViewModelSchema = z5.object({
|
|
8475
8545
|
contract: z5.literal("AgentWorkbenchQuickStartViewModel"),
|
|
8476
8546
|
mode: AgentModeSchema,
|
|
@@ -8485,6 +8555,8 @@ var AgentWorkbenchComposerViewModelSchema = z5.object({
|
|
|
8485
8555
|
placeholder: z5.string().optional(),
|
|
8486
8556
|
attachments: z5.array(AgentWorkbenchComposerAttachmentSchema).default([]),
|
|
8487
8557
|
queuedDrafts: z5.array(AgentWorkbenchComposerQueueItemSchema).default([]),
|
|
8558
|
+
inputActions: z5.array(AgentWorkbenchComposerInputActionSchema).default([]),
|
|
8559
|
+
selectedInputActionId: ContractIdentifierSchema.optional(),
|
|
8488
8560
|
model: z5.object({
|
|
8489
8561
|
selectedId: ContractIdentifierSchema.optional(),
|
|
8490
8562
|
options: z5.array(AgentWorkbenchComposerModelOptionSchema)
|
|
@@ -12934,6 +13006,16 @@ var AssetVariantsSchema = z11.object({
|
|
|
12934
13006
|
light: z11.string().optional(),
|
|
12935
13007
|
dark: z11.string().optional()
|
|
12936
13008
|
}).strict();
|
|
13009
|
+
var TenantAgentThemeConfigSchema = z11.object({
|
|
13010
|
+
logo: AssetVariantsSchema.optional(),
|
|
13011
|
+
brandDisplayMode: z11.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
13012
|
+
density: z11.enum(["compact", "default", "comfortable"]).optional(),
|
|
13013
|
+
sidebar: AgentWorkbenchSidebarConfigSchema.optional(),
|
|
13014
|
+
/** @deprecated Use sidebar.navigationMode. */
|
|
13015
|
+
navigationMode: z11.enum(["default", "session", "trend"]).optional(),
|
|
13016
|
+
/** @deprecated Use sidebar.quickStartEnabled. */
|
|
13017
|
+
quickStartEnabled: z11.boolean().optional()
|
|
13018
|
+
}).strict();
|
|
12937
13019
|
var LEGACY_CURRENT_USER_MENU_ITEM_IDS = ["dark-mode", "language", "settings", "logout"];
|
|
12938
13020
|
var CURRENT_USER_MENU_CONTROL_REFS = ["dark-mode", "language"];
|
|
12939
13021
|
var CURRENT_USER_MENU_ACTION_REFS = ["logout"];
|
|
@@ -13379,13 +13461,7 @@ var TenantApplicationConfigSchema = z11.object({
|
|
|
13379
13461
|
defaultPageKey: ContractIdentifierSchema.optional(),
|
|
13380
13462
|
homeEntryEnabled: z11.boolean().optional()
|
|
13381
13463
|
}).strict().optional(),
|
|
13382
|
-
agent:
|
|
13383
|
-
logo: AssetVariantsSchema.optional(),
|
|
13384
|
-
brandDisplayMode: z11.enum(["auto", "logo-only", "logo-name", "name-only"]).optional(),
|
|
13385
|
-
density: z11.enum(["compact", "default", "comfortable"]).optional(),
|
|
13386
|
-
navigationMode: z11.enum(["default", "session", "trend"]).optional(),
|
|
13387
|
-
quickStartEnabled: z11.boolean().optional()
|
|
13388
|
-
}).strict().optional()
|
|
13464
|
+
agent: TenantAgentThemeConfigSchema.optional()
|
|
13389
13465
|
}).strict(),
|
|
13390
13466
|
landingPage: TenantLandingPageConfigSchema.optional(),
|
|
13391
13467
|
auth: z11.object({
|