@inf-monkeys-tech/monkeys 1.0.39 → 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 +36 -27
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +18 -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 +14 -10
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +14 -10
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +6 -5
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +7 -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 +2 -2
- package/lib/schemas/index.d.ts +15 -15
- 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];
|
|
@@ -7622,15 +7623,16 @@ var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
|
7622
7623
|
}
|
|
7623
7624
|
});
|
|
7624
7625
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7625
|
-
function
|
|
7626
|
+
function normalizeStudioAgentMode(value) {
|
|
7626
7627
|
const normalized = String(value ?? "").trim().toLowerCase();
|
|
7627
|
-
if (normalized === "agent" || normalized === "codex") return "
|
|
7628
|
-
if (normalized === "chatbot" || normalized === "vercel-ai" || normalized === "vercel" || normalized === "ai-sdk") {
|
|
7629
|
-
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";
|
|
7630
7631
|
}
|
|
7631
7632
|
return void 0;
|
|
7632
7633
|
}
|
|
7633
|
-
var
|
|
7634
|
+
var normalizeAgentMode = normalizeStudioAgentMode;
|
|
7635
|
+
var normalizeAgentExecutionMode = normalizeStudioAgentMode;
|
|
7634
7636
|
|
|
7635
7637
|
// src/contracts/capability.ts
|
|
7636
7638
|
import { z as z5 } from "zod";
|
|
@@ -14682,6 +14684,7 @@ export {
|
|
|
14682
14684
|
Sha256Schema,
|
|
14683
14685
|
SourceRecordRefSchema,
|
|
14684
14686
|
StorageLocatorSchema,
|
|
14687
|
+
StudioAgentModeSchema,
|
|
14685
14688
|
TenantApplicationConfigSchema,
|
|
14686
14689
|
TenantAuthBindingSchema,
|
|
14687
14690
|
TenantAuthBindingsSchema,
|
|
@@ -14764,6 +14767,7 @@ export {
|
|
|
14764
14767
|
mergeThemeTokenDocuments,
|
|
14765
14768
|
normalizeAgentExecutionMode,
|
|
14766
14769
|
normalizeAgentMode,
|
|
14770
|
+
normalizeStudioAgentMode,
|
|
14767
14771
|
parseApplicationHandoff,
|
|
14768
14772
|
projectAgentSessionEvents,
|
|
14769
14773
|
publishOpenApiToolCapabilityManifests,
|