@inf-monkeys-tech/monkeys 1.0.38 → 1.0.40
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 +40 -23
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +19 -14
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/menu.d.ts +1 -1
- package/lib/contracts/page.d.ts +3 -3
- package/lib/contracts/semantic.d.ts +2 -2
- package/lib/contracts/tenant.d.ts +5 -5
- package/lib/esm/contracts/index.mjs +15 -10
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +15 -10
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +7 -5
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +8 -5
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-view-model.schema.json +2 -2
- package/lib/json-schema/agent-workbench-composer-view-model.schema.json +4 -4
- package/lib/json-schema/agent-workbench-navigation-view-model.schema.json +7 -0
- package/lib/schemas/index.d.ts +17 -13
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +5 -4
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/{agent-session-chatbot.json → agent-session-chat.json} +22 -22
- package/test/fixtures/agent-session-kernel.json +1 -1
- package/test/fixtures/agent-session-scenarios.json +6 -6
- package/test/fixtures/{agent-session-agent.json → agent-session-work.json} +1 -1
package/lib/esm/index.mjs
CHANGED
|
@@ -6689,7 +6689,8 @@ var OutputRecordSchema = z2.object({
|
|
|
6689
6689
|
|
|
6690
6690
|
// src/contracts/agent.ts
|
|
6691
6691
|
import { z as z3 } from "zod";
|
|
6692
|
-
var
|
|
6692
|
+
var StudioAgentModeSchema = z3.enum(["chat", "work"]);
|
|
6693
|
+
var AgentModeSchema = StudioAgentModeSchema;
|
|
6693
6694
|
var AgentConfigurationCapabilitySchema = z3.enum([
|
|
6694
6695
|
"models",
|
|
6695
6696
|
"skills",
|
|
@@ -6708,14 +6709,14 @@ var AgentResourceModeSupportSchema = z3.object({
|
|
|
6708
6709
|
modes: z3.array(AgentModeSchema).min(1)
|
|
6709
6710
|
}).strict();
|
|
6710
6711
|
var AGENT_MODE_CAPABILITIES = Object.freeze({
|
|
6711
|
-
|
|
6712
|
+
chat: AgentModeCapabilitiesSchema.parse({
|
|
6712
6713
|
models: true,
|
|
6713
6714
|
skills: true,
|
|
6714
6715
|
tools: true,
|
|
6715
6716
|
mcp: true,
|
|
6716
6717
|
reasoning: false
|
|
6717
6718
|
}),
|
|
6718
|
-
|
|
6719
|
+
work: AgentModeCapabilitiesSchema.parse({
|
|
6719
6720
|
models: true,
|
|
6720
6721
|
skills: true,
|
|
6721
6722
|
tools: true,
|
|
@@ -6784,8 +6785,8 @@ var AgentSessionPermissionProfileSchema = z3.enum([
|
|
|
6784
6785
|
"full-access"
|
|
6785
6786
|
]);
|
|
6786
6787
|
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
6787
|
-
|
|
6788
|
-
|
|
6788
|
+
chat: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
|
|
6789
|
+
work: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, shell: true, fileChange: true, skills: true, approval: true, artifacts: true, usage: true, resume: true, editAndRerun: true, steering: true, summary: true })
|
|
6789
6790
|
});
|
|
6790
6791
|
function getAgentSessionRuntimeCapabilities(mode) {
|
|
6791
6792
|
return AGENT_SESSION_RUNTIME_CAPABILITIES[mode];
|
|
@@ -7500,6 +7501,7 @@ var AgentWorkbenchSessionItemSchema = z3.object({
|
|
|
7500
7501
|
title: z3.string().min(1),
|
|
7501
7502
|
updatedAt: IsoDateTimeSchema,
|
|
7502
7503
|
thumbnailUrl: z3.string().url().optional(),
|
|
7504
|
+
mode: AgentModeSchema.optional(),
|
|
7503
7505
|
status: AgentWorkbenchNavigationItemStatusSchema.default("idle"),
|
|
7504
7506
|
pinned: z3.boolean().default(false),
|
|
7505
7507
|
contextUsage: z3.object({
|
|
@@ -7621,15 +7623,16 @@ var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
|
7621
7623
|
}
|
|
7622
7624
|
});
|
|
7623
7625
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7624
|
-
function
|
|
7626
|
+
function normalizeStudioAgentMode(value) {
|
|
7625
7627
|
const normalized = String(value ?? "").trim().toLowerCase();
|
|
7626
|
-
if (normalized === "agent" || normalized === "codex") return "
|
|
7627
|
-
if (normalized === "chatbot" || normalized === "vercel-ai" || normalized === "vercel" || normalized === "ai-sdk") {
|
|
7628
|
-
return "
|
|
7628
|
+
if (normalized === "work" || normalized === "agent" || normalized === "codex") return "work";
|
|
7629
|
+
if (normalized === "chat" || normalized === "chatbot" || normalized === "vercel-ai" || normalized === "vercel" || normalized === "ai-sdk") {
|
|
7630
|
+
return "chat";
|
|
7629
7631
|
}
|
|
7630
7632
|
return void 0;
|
|
7631
7633
|
}
|
|
7632
|
-
var
|
|
7634
|
+
var normalizeAgentMode = normalizeStudioAgentMode;
|
|
7635
|
+
var normalizeAgentExecutionMode = normalizeStudioAgentMode;
|
|
7633
7636
|
|
|
7634
7637
|
// src/contracts/capability.ts
|
|
7635
7638
|
import { z as z5 } from "zod";
|
|
@@ -14681,6 +14684,7 @@ export {
|
|
|
14681
14684
|
Sha256Schema,
|
|
14682
14685
|
SourceRecordRefSchema,
|
|
14683
14686
|
StorageLocatorSchema,
|
|
14687
|
+
StudioAgentModeSchema,
|
|
14684
14688
|
TenantApplicationConfigSchema,
|
|
14685
14689
|
TenantAuthBindingSchema,
|
|
14686
14690
|
TenantAuthBindingsSchema,
|
|
@@ -14763,6 +14767,7 @@ export {
|
|
|
14763
14767
|
mergeThemeTokenDocuments,
|
|
14764
14768
|
normalizeAgentExecutionMode,
|
|
14765
14769
|
normalizeAgentMode,
|
|
14770
|
+
normalizeStudioAgentMode,
|
|
14766
14771
|
parseApplicationHandoff,
|
|
14767
14772
|
projectAgentSessionEvents,
|
|
14768
14773
|
publishOpenApiToolCapabilityManifests,
|