@inf-monkeys-tech/monkeys 1.0.29 → 1.0.31
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 +115 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +81 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/esm/contracts/index.mjs +69 -0
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +70 -0
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +63 -0
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +70 -0
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-workbench-navigation-view-model.schema.json +245 -0
- package/lib/json-schema/index.json +1 -0
- package/lib/schemas/index.d.ts +63 -1
- 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 +2 -2
package/lib/esm/index.mjs
CHANGED
|
@@ -7484,6 +7484,69 @@ var AgentSessionViewModelSchema = z3.object({
|
|
|
7484
7484
|
});
|
|
7485
7485
|
}
|
|
7486
7486
|
});
|
|
7487
|
+
var AgentWorkbenchNavigationItemStatusSchema = z3.enum(["idle", "running", "completed", "error"]);
|
|
7488
|
+
var AgentWorkbenchCollectionStatusSchema = z3.enum(["loading", "ready", "error"]);
|
|
7489
|
+
var AgentWorkbenchAgentItemSchema = z3.object({
|
|
7490
|
+
id: ContractIdentifierSchema,
|
|
7491
|
+
name: z3.string().min(1),
|
|
7492
|
+
description: z3.string().optional(),
|
|
7493
|
+
iconUrl: z3.string().url().optional(),
|
|
7494
|
+
builtIn: z3.boolean().default(false),
|
|
7495
|
+
pinned: z3.boolean().default(false),
|
|
7496
|
+
pinPending: z3.boolean().default(false)
|
|
7497
|
+
}).strict();
|
|
7498
|
+
var AgentWorkbenchSessionItemSchema = z3.object({
|
|
7499
|
+
id: ContractIdentifierSchema,
|
|
7500
|
+
title: z3.string().min(1),
|
|
7501
|
+
updatedAt: IsoDateTimeSchema,
|
|
7502
|
+
thumbnailUrl: z3.string().url().optional(),
|
|
7503
|
+
status: AgentWorkbenchNavigationItemStatusSchema.default("idle"),
|
|
7504
|
+
pinned: z3.boolean().default(false),
|
|
7505
|
+
contextUsage: z3.object({
|
|
7506
|
+
usedTokens: z3.number().int().nonnegative(),
|
|
7507
|
+
maxTokens: z3.number().int().positive()
|
|
7508
|
+
}).strict().optional()
|
|
7509
|
+
}).strict();
|
|
7510
|
+
var AgentWorkbenchNavigationCapabilitiesSchema = z3.object({
|
|
7511
|
+
createAgent: z3.boolean().default(false),
|
|
7512
|
+
createSession: z3.boolean().default(true),
|
|
7513
|
+
manageCapabilities: z3.boolean().default(false),
|
|
7514
|
+
manageAgentSettings: z3.boolean().default(false),
|
|
7515
|
+
pinAgents: z3.boolean().default(false),
|
|
7516
|
+
pinSessions: z3.boolean().default(false),
|
|
7517
|
+
renameSessions: z3.boolean().default(false),
|
|
7518
|
+
deleteSessions: z3.boolean().default(false)
|
|
7519
|
+
}).strict();
|
|
7520
|
+
var AgentWorkbenchNavigationViewModelSchema = z3.object({
|
|
7521
|
+
contract: z3.literal("AgentWorkbenchNavigationViewModel"),
|
|
7522
|
+
activeTab: z3.enum(["agents", "sessions"]).default("sessions"),
|
|
7523
|
+
searchQuery: z3.string().default(""),
|
|
7524
|
+
selectedAgentItem: ContractIdentifierSchema.optional(),
|
|
7525
|
+
selectedSessionItem: ContractIdentifierSchema.optional(),
|
|
7526
|
+
agents: z3.object({
|
|
7527
|
+
status: AgentWorkbenchCollectionStatusSchema,
|
|
7528
|
+
items: z3.array(AgentWorkbenchAgentItemSchema),
|
|
7529
|
+
error: z3.string().optional()
|
|
7530
|
+
}).strict(),
|
|
7531
|
+
sessions: z3.object({
|
|
7532
|
+
status: AgentWorkbenchCollectionStatusSchema,
|
|
7533
|
+
items: z3.array(AgentWorkbenchSessionItemSchema),
|
|
7534
|
+
error: z3.string().optional()
|
|
7535
|
+
}).strict(),
|
|
7536
|
+
capabilities: AgentWorkbenchNavigationCapabilitiesSchema
|
|
7537
|
+
}).strict().superRefine((value, context) => {
|
|
7538
|
+
const validateCollection = (collection, path) => {
|
|
7539
|
+
if (collection.status === "error" && !collection.error) {
|
|
7540
|
+
context.addIssue({
|
|
7541
|
+
code: "custom",
|
|
7542
|
+
path: [path, "error"],
|
|
7543
|
+
message: "An error collection must include an error message."
|
|
7544
|
+
});
|
|
7545
|
+
}
|
|
7546
|
+
};
|
|
7547
|
+
validateCollection(value.agents, "agents");
|
|
7548
|
+
validateCollection(value.sessions, "sessions");
|
|
7549
|
+
});
|
|
7487
7550
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7488
7551
|
function normalizeAgentMode(value) {
|
|
7489
7552
|
const normalized = String(value ?? "").trim().toLowerCase();
|
|
@@ -12157,6 +12220,7 @@ var canonicalContractSchemas = {
|
|
|
12157
12220
|
"agent-session-run-event": AgentSessionRunEventSchema,
|
|
12158
12221
|
"agent-session-run": AgentSessionRunSchema,
|
|
12159
12222
|
"agent-session-view-model": AgentSessionViewModelSchema,
|
|
12223
|
+
"agent-workbench-navigation-view-model": AgentWorkbenchNavigationViewModelSchema,
|
|
12160
12224
|
"agent-runtime-event": AgentRuntimeEventSchema,
|
|
12161
12225
|
"application-run": ApplicationRunSchema,
|
|
12162
12226
|
"application-handoff": ApplicationHandoffSchema,
|
|
@@ -13480,6 +13544,12 @@ export {
|
|
|
13480
13544
|
AgentSessionTerminalStatusSchema,
|
|
13481
13545
|
AgentSessionUnavailableResourceSchema,
|
|
13482
13546
|
AgentSessionViewModelSchema,
|
|
13547
|
+
AgentWorkbenchAgentItemSchema,
|
|
13548
|
+
AgentWorkbenchCollectionStatusSchema,
|
|
13549
|
+
AgentWorkbenchNavigationCapabilitiesSchema,
|
|
13550
|
+
AgentWorkbenchNavigationItemStatusSchema,
|
|
13551
|
+
AgentWorkbenchNavigationViewModelSchema,
|
|
13552
|
+
AgentWorkbenchSessionItemSchema,
|
|
13483
13553
|
ApplicationHandoffEndpointSchema,
|
|
13484
13554
|
ApplicationHandoffSchema,
|
|
13485
13555
|
ApplicationRunSchema,
|