@inf-monkeys-tech/monkeys 1.0.31 → 1.0.33
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 +135 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +91 -2
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/render.d.ts +4 -4
- package/lib/contracts/tenant.d.ts +68 -4
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +7 -0
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +89 -3
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +90 -3
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +83 -3
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +90 -3
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-workbench-composer-view-model.schema.json +277 -0
- package/lib/json-schema/index.json +1 -0
- package/lib/json-schema/tenant-product-config.schema.json +28 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +28 -0
- package/lib/schemas/index.d.ts +119 -6
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +10 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -7547,6 +7547,79 @@ var AgentWorkbenchNavigationViewModelSchema = z3.object({
|
|
|
7547
7547
|
validateCollection(value.agents, "agents");
|
|
7548
7548
|
validateCollection(value.sessions, "sessions");
|
|
7549
7549
|
});
|
|
7550
|
+
var AgentWorkbenchComposerStatusSchema = z3.enum([
|
|
7551
|
+
"idle",
|
|
7552
|
+
"loading",
|
|
7553
|
+
"streaming",
|
|
7554
|
+
"stopping",
|
|
7555
|
+
"error"
|
|
7556
|
+
]);
|
|
7557
|
+
var AgentWorkbenchComposerAttachmentSchema = z3.object({
|
|
7558
|
+
id: ContractIdentifierSchema,
|
|
7559
|
+
name: z3.string().min(1),
|
|
7560
|
+
mediaType: z3.string().min(1).optional(),
|
|
7561
|
+
previewUrl: z3.string().min(1).optional(),
|
|
7562
|
+
status: z3.enum(["uploading", "ready", "error"]).default("ready")
|
|
7563
|
+
}).strict();
|
|
7564
|
+
var AgentWorkbenchComposerQueueItemSchema = z3.object({
|
|
7565
|
+
id: ContractIdentifierSchema,
|
|
7566
|
+
text: z3.string(),
|
|
7567
|
+
attachmentCount: z3.number().int().nonnegative().default(0),
|
|
7568
|
+
status: z3.enum(["queued", "sending", "error"]).default("queued")
|
|
7569
|
+
}).strict();
|
|
7570
|
+
var AgentWorkbenchComposerModelOptionSchema = z3.object({
|
|
7571
|
+
id: ContractIdentifierSchema,
|
|
7572
|
+
label: z3.string().min(1),
|
|
7573
|
+
provider: z3.string().min(1).optional(),
|
|
7574
|
+
mode: AgentModeSchema,
|
|
7575
|
+
disabled: z3.boolean().default(false)
|
|
7576
|
+
}).strict();
|
|
7577
|
+
var AgentWorkbenchComposerCapabilitiesSchema = z3.object({
|
|
7578
|
+
attachments: z3.boolean().default(false),
|
|
7579
|
+
voiceInput: z3.boolean().default(false),
|
|
7580
|
+
webSearch: z3.boolean().default(false),
|
|
7581
|
+
modelSelection: z3.boolean().default(false),
|
|
7582
|
+
reasoning: z3.boolean().default(false),
|
|
7583
|
+
permissions: z3.boolean().default(false),
|
|
7584
|
+
queue: z3.boolean().default(false),
|
|
7585
|
+
stop: z3.boolean().default(false)
|
|
7586
|
+
}).strict();
|
|
7587
|
+
var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
7588
|
+
contract: z3.literal("AgentWorkbenchComposerViewModel"),
|
|
7589
|
+
value: z3.string().default(""),
|
|
7590
|
+
status: AgentWorkbenchComposerStatusSchema.default("idle"),
|
|
7591
|
+
mode: AgentModeSchema,
|
|
7592
|
+
placeholder: z3.string().optional(),
|
|
7593
|
+
attachments: z3.array(AgentWorkbenchComposerAttachmentSchema).default([]),
|
|
7594
|
+
queuedDrafts: z3.array(AgentWorkbenchComposerQueueItemSchema).default([]),
|
|
7595
|
+
model: z3.object({
|
|
7596
|
+
selectedId: ContractIdentifierSchema.optional(),
|
|
7597
|
+
options: z3.array(AgentWorkbenchComposerModelOptionSchema)
|
|
7598
|
+
}).strict(),
|
|
7599
|
+
reasoning: z3.object({
|
|
7600
|
+
value: z3.enum(["low", "medium", "high", "xhigh"]),
|
|
7601
|
+
options: z3.array(z3.enum(["low", "medium", "high", "xhigh"])).min(1)
|
|
7602
|
+
}).strict().optional(),
|
|
7603
|
+
permissionProfile: AgentSessionPermissionProfileSchema.optional(),
|
|
7604
|
+
webSearchEnabled: z3.boolean().default(false),
|
|
7605
|
+
error: z3.string().optional(),
|
|
7606
|
+
capabilities: AgentWorkbenchComposerCapabilitiesSchema
|
|
7607
|
+
}).strict().superRefine((value, context) => {
|
|
7608
|
+
if (value.status === "error" && !value.error) {
|
|
7609
|
+
context.addIssue({
|
|
7610
|
+
code: "custom",
|
|
7611
|
+
path: ["error"],
|
|
7612
|
+
message: "An error composer must include an error message."
|
|
7613
|
+
});
|
|
7614
|
+
}
|
|
7615
|
+
if (value.model.selectedId && !value.model.options.some((option) => option.id === value.model.selectedId)) {
|
|
7616
|
+
context.addIssue({
|
|
7617
|
+
code: "custom",
|
|
7618
|
+
path: ["model", "selectedId"],
|
|
7619
|
+
message: "The selected model must exist in model options."
|
|
7620
|
+
});
|
|
7621
|
+
}
|
|
7622
|
+
});
|
|
7550
7623
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7551
7624
|
function normalizeAgentMode(value) {
|
|
7552
7625
|
const normalized = String(value ?? "").trim().toLowerCase();
|
|
@@ -11104,19 +11177,26 @@ var LoginPageSchema = z12.object({
|
|
|
11104
11177
|
}).strict().optional(),
|
|
11105
11178
|
customCss: z12.string().optional()
|
|
11106
11179
|
}).strict();
|
|
11180
|
+
var LandingPageHeadbarConfigShape = {
|
|
11181
|
+
headbarMode: z12.enum(["shared", "hidden"]).optional()
|
|
11182
|
+
};
|
|
11107
11183
|
var LandingPageDefaultConfigSchema = z12.object({
|
|
11108
|
-
mode: z12.literal("default")
|
|
11184
|
+
mode: z12.literal("default"),
|
|
11185
|
+
...LandingPageHeadbarConfigShape
|
|
11109
11186
|
}).strict();
|
|
11110
11187
|
var LandingPageMarkdownConfigSchema = z12.object({
|
|
11111
11188
|
mode: z12.literal("markdown"),
|
|
11112
|
-
content: z12.string()
|
|
11189
|
+
content: z12.string(),
|
|
11190
|
+
...LandingPageHeadbarConfigShape
|
|
11113
11191
|
}).strict();
|
|
11114
11192
|
var LandingPageHtmlConfigSchema = z12.object({
|
|
11115
11193
|
mode: z12.literal("html"),
|
|
11116
|
-
content: z12.string()
|
|
11194
|
+
content: z12.string(),
|
|
11195
|
+
...LandingPageHeadbarConfigShape
|
|
11117
11196
|
}).strict();
|
|
11118
11197
|
var LandingPageIframeConfigSchema = z12.object({
|
|
11119
11198
|
mode: z12.literal("iframe"),
|
|
11199
|
+
...LandingPageHeadbarConfigShape,
|
|
11120
11200
|
url: z12.string().refine((value) => {
|
|
11121
11201
|
if (/^\/(?!\/)/.test(value)) {
|
|
11122
11202
|
return !value.includes("\\");
|
|
@@ -12220,6 +12300,7 @@ var canonicalContractSchemas = {
|
|
|
12220
12300
|
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
12221
12301
|
"agent-session-run": AgentSessionRunSchema,
|
|
12222
12302
|
"agent-session-view-model": AgentSessionViewModelSchema,
|
|
12303
|
+
"agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
|
|
12223
12304
|
"agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
|
|
12224
12305
|
"agent-runtime-event": AgentRuntimeEventSchema,
|
|
12225
12306
|
"application-run": ApplicationRunSchema,
|
|
@@ -13546,6 +13627,12 @@ export {
|
|
|
13546
13627
|
AgentSessionViewModelSchema,
|
|
13547
13628
|
AgentWorkbenchAgentItemSchema,
|
|
13548
13629
|
AgentWorkbenchCollectionStatusSchema,
|
|
13630
|
+
AgentWorkbenchComposerAttachmentSchema,
|
|
13631
|
+
AgentWorkbenchComposerCapabilitiesSchema,
|
|
13632
|
+
AgentWorkbenchComposerModelOptionSchema,
|
|
13633
|
+
AgentWorkbenchComposerQueueItemSchema,
|
|
13634
|
+
AgentWorkbenchComposerStatusSchema,
|
|
13635
|
+
AgentWorkbenchComposerViewModelSchema,
|
|
13549
13636
|
AgentWorkbenchNavigationCapabilitiesSchema,
|
|
13550
13637
|
AgentWorkbenchNavigationItemStatusSchema,
|
|
13551
13638
|
AgentWorkbenchNavigationViewModelSchema,
|