@inf-monkeys-tech/monkeys 1.0.31 → 1.0.32
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/esm/contracts/index.mjs +79 -0
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +80 -0
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +73 -0
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +80 -0
- 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/schemas/index.d.ts +85 -4
- 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
|
@@ -7896,6 +7896,79 @@ var AgentWorkbenchNavigationViewModelSchema = z5.object({
|
|
|
7896
7896
|
validateCollection(value.agents, "agents");
|
|
7897
7897
|
validateCollection(value.sessions, "sessions");
|
|
7898
7898
|
});
|
|
7899
|
+
var AgentWorkbenchComposerStatusSchema = z5.enum([
|
|
7900
|
+
"idle",
|
|
7901
|
+
"loading",
|
|
7902
|
+
"streaming",
|
|
7903
|
+
"stopping",
|
|
7904
|
+
"error"
|
|
7905
|
+
]);
|
|
7906
|
+
var AgentWorkbenchComposerAttachmentSchema = z5.object({
|
|
7907
|
+
id: ContractIdentifierSchema,
|
|
7908
|
+
name: z5.string().min(1),
|
|
7909
|
+
mediaType: z5.string().min(1).optional(),
|
|
7910
|
+
previewUrl: z5.string().min(1).optional(),
|
|
7911
|
+
status: z5.enum(["uploading", "ready", "error"]).default("ready")
|
|
7912
|
+
}).strict();
|
|
7913
|
+
var AgentWorkbenchComposerQueueItemSchema = z5.object({
|
|
7914
|
+
id: ContractIdentifierSchema,
|
|
7915
|
+
text: z5.string(),
|
|
7916
|
+
attachmentCount: z5.number().int().nonnegative().default(0),
|
|
7917
|
+
status: z5.enum(["queued", "sending", "error"]).default("queued")
|
|
7918
|
+
}).strict();
|
|
7919
|
+
var AgentWorkbenchComposerModelOptionSchema = z5.object({
|
|
7920
|
+
id: ContractIdentifierSchema,
|
|
7921
|
+
label: z5.string().min(1),
|
|
7922
|
+
provider: z5.string().min(1).optional(),
|
|
7923
|
+
mode: AgentModeSchema,
|
|
7924
|
+
disabled: z5.boolean().default(false)
|
|
7925
|
+
}).strict();
|
|
7926
|
+
var AgentWorkbenchComposerCapabilitiesSchema = z5.object({
|
|
7927
|
+
attachments: z5.boolean().default(false),
|
|
7928
|
+
voiceInput: z5.boolean().default(false),
|
|
7929
|
+
webSearch: z5.boolean().default(false),
|
|
7930
|
+
modelSelection: z5.boolean().default(false),
|
|
7931
|
+
reasoning: z5.boolean().default(false),
|
|
7932
|
+
permissions: z5.boolean().default(false),
|
|
7933
|
+
queue: z5.boolean().default(false),
|
|
7934
|
+
stop: z5.boolean().default(false)
|
|
7935
|
+
}).strict();
|
|
7936
|
+
var AgentWorkbenchComposerViewModelSchema = z5.object({
|
|
7937
|
+
contract: z5.literal("AgentWorkbenchComposerViewModel"),
|
|
7938
|
+
value: z5.string().default(""),
|
|
7939
|
+
status: AgentWorkbenchComposerStatusSchema.default("idle"),
|
|
7940
|
+
mode: AgentModeSchema,
|
|
7941
|
+
placeholder: z5.string().optional(),
|
|
7942
|
+
attachments: z5.array(AgentWorkbenchComposerAttachmentSchema).default([]),
|
|
7943
|
+
queuedDrafts: z5.array(AgentWorkbenchComposerQueueItemSchema).default([]),
|
|
7944
|
+
model: z5.object({
|
|
7945
|
+
selectedId: ContractIdentifierSchema.optional(),
|
|
7946
|
+
options: z5.array(AgentWorkbenchComposerModelOptionSchema)
|
|
7947
|
+
}).strict(),
|
|
7948
|
+
reasoning: z5.object({
|
|
7949
|
+
value: z5.enum(["low", "medium", "high", "xhigh"]),
|
|
7950
|
+
options: z5.array(z5.enum(["low", "medium", "high", "xhigh"])).min(1)
|
|
7951
|
+
}).strict().optional(),
|
|
7952
|
+
permissionProfile: AgentSessionPermissionProfileSchema.optional(),
|
|
7953
|
+
webSearchEnabled: z5.boolean().default(false),
|
|
7954
|
+
error: z5.string().optional(),
|
|
7955
|
+
capabilities: AgentWorkbenchComposerCapabilitiesSchema
|
|
7956
|
+
}).strict().superRefine((value, context) => {
|
|
7957
|
+
if (value.status === "error" && !value.error) {
|
|
7958
|
+
context.addIssue({
|
|
7959
|
+
code: "custom",
|
|
7960
|
+
path: ["error"],
|
|
7961
|
+
message: "An error composer must include an error message."
|
|
7962
|
+
});
|
|
7963
|
+
}
|
|
7964
|
+
if (value.model.selectedId && !value.model.options.some((option) => option.id === value.model.selectedId)) {
|
|
7965
|
+
context.addIssue({
|
|
7966
|
+
code: "custom",
|
|
7967
|
+
path: ["model", "selectedId"],
|
|
7968
|
+
message: "The selected model must exist in model options."
|
|
7969
|
+
});
|
|
7970
|
+
}
|
|
7971
|
+
});
|
|
7899
7972
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7900
7973
|
|
|
7901
7974
|
// src/contracts/context.ts
|
|
@@ -12088,6 +12161,7 @@ var canonicalContractSchemas = {
|
|
|
12088
12161
|
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
12089
12162
|
"agent-session-run": AgentSessionRunSchema,
|
|
12090
12163
|
"agent-session-view-model": AgentSessionViewModelSchema,
|
|
12164
|
+
"agent-workbench-composer-view-model": AgentWorkbenchComposerViewModelSchema,
|
|
12091
12165
|
"agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
|
|
12092
12166
|
"agent-runtime-event": AgentRuntimeEventSchema,
|
|
12093
12167
|
"application-run": ApplicationRunSchema,
|
|
@@ -12177,6 +12251,12 @@ export {
|
|
|
12177
12251
|
AgentSessionViewModelSchema,
|
|
12178
12252
|
AgentWorkbenchAgentItemSchema,
|
|
12179
12253
|
AgentWorkbenchCollectionStatusSchema,
|
|
12254
|
+
AgentWorkbenchComposerAttachmentSchema,
|
|
12255
|
+
AgentWorkbenchComposerCapabilitiesSchema,
|
|
12256
|
+
AgentWorkbenchComposerModelOptionSchema,
|
|
12257
|
+
AgentWorkbenchComposerQueueItemSchema,
|
|
12258
|
+
AgentWorkbenchComposerStatusSchema,
|
|
12259
|
+
AgentWorkbenchComposerViewModelSchema,
|
|
12180
12260
|
AgentWorkbenchNavigationCapabilitiesSchema,
|
|
12181
12261
|
AgentWorkbenchNavigationItemStatusSchema,
|
|
12182
12262
|
AgentWorkbenchNavigationViewModelSchema,
|