@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
|
@@ -6652,7 +6652,8 @@ var OutputRecordSchema = z2.object({
|
|
|
6652
6652
|
|
|
6653
6653
|
// src/contracts/agent.ts
|
|
6654
6654
|
import { z as z3 } from "zod";
|
|
6655
|
-
var
|
|
6655
|
+
var StudioAgentModeSchema = z3.enum(["chat", "work"]);
|
|
6656
|
+
var AgentModeSchema = StudioAgentModeSchema;
|
|
6656
6657
|
var AgentConfigurationCapabilitySchema = z3.enum([
|
|
6657
6658
|
"models",
|
|
6658
6659
|
"skills",
|
|
@@ -6671,14 +6672,14 @@ var AgentResourceModeSupportSchema = z3.object({
|
|
|
6671
6672
|
modes: z3.array(AgentModeSchema).min(1)
|
|
6672
6673
|
}).strict();
|
|
6673
6674
|
var AGENT_MODE_CAPABILITIES = Object.freeze({
|
|
6674
|
-
|
|
6675
|
+
chat: AgentModeCapabilitiesSchema.parse({
|
|
6675
6676
|
models: true,
|
|
6676
6677
|
skills: true,
|
|
6677
6678
|
tools: true,
|
|
6678
6679
|
mcp: true,
|
|
6679
6680
|
reasoning: false
|
|
6680
6681
|
}),
|
|
6681
|
-
|
|
6682
|
+
work: AgentModeCapabilitiesSchema.parse({
|
|
6682
6683
|
models: true,
|
|
6683
6684
|
skills: true,
|
|
6684
6685
|
tools: true,
|
|
@@ -6747,8 +6748,8 @@ var AgentSessionPermissionProfileSchema = z3.enum([
|
|
|
6747
6748
|
"full-access"
|
|
6748
6749
|
]);
|
|
6749
6750
|
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
6750
|
-
|
|
6751
|
-
|
|
6751
|
+
chat: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true, editAndRerun: true, summary: true }),
|
|
6752
|
+
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 })
|
|
6752
6753
|
});
|
|
6753
6754
|
function getAgentSessionRuntimeCapabilities(mode) {
|
|
6754
6755
|
return AGENT_SESSION_RUNTIME_CAPABILITIES[mode];
|
|
@@ -7585,15 +7586,16 @@ var AgentWorkbenchComposerViewModelSchema = z3.object({
|
|
|
7585
7586
|
}
|
|
7586
7587
|
});
|
|
7587
7588
|
var AgentExecutionModeSchema = AgentModeSchema;
|
|
7588
|
-
function
|
|
7589
|
+
function normalizeStudioAgentMode(value) {
|
|
7589
7590
|
const normalized = String(value ?? "").trim().toLowerCase();
|
|
7590
|
-
if (normalized === "agent" || normalized === "codex") return "
|
|
7591
|
-
if (normalized === "chatbot" || normalized === "vercel-ai" || normalized === "vercel" || normalized === "ai-sdk") {
|
|
7592
|
-
return "
|
|
7591
|
+
if (normalized === "work" || normalized === "agent" || normalized === "codex") return "work";
|
|
7592
|
+
if (normalized === "chat" || normalized === "chatbot" || normalized === "vercel-ai" || normalized === "vercel" || normalized === "ai-sdk") {
|
|
7593
|
+
return "chat";
|
|
7593
7594
|
}
|
|
7594
7595
|
return void 0;
|
|
7595
7596
|
}
|
|
7596
|
-
var
|
|
7597
|
+
var normalizeAgentMode = normalizeStudioAgentMode;
|
|
7598
|
+
var normalizeAgentExecutionMode = normalizeStudioAgentMode;
|
|
7597
7599
|
|
|
7598
7600
|
// src/contracts/capability.ts
|
|
7599
7601
|
import { z as z5 } from "zod";
|
|
@@ -12790,6 +12792,7 @@ export {
|
|
|
12790
12792
|
Sha256Schema,
|
|
12791
12793
|
SourceRecordRefSchema,
|
|
12792
12794
|
StorageLocatorSchema,
|
|
12795
|
+
StudioAgentModeSchema,
|
|
12793
12796
|
TenantApplicationConfigSchema,
|
|
12794
12797
|
TenantAuthBindingSchema,
|
|
12795
12798
|
TenantAuthBindingsSchema,
|
|
@@ -12839,6 +12842,7 @@ export {
|
|
|
12839
12842
|
isAgentSessionTerminalStatus,
|
|
12840
12843
|
normalizeAgentExecutionMode,
|
|
12841
12844
|
normalizeAgentMode,
|
|
12845
|
+
normalizeStudioAgentMode,
|
|
12842
12846
|
resolveAgentSessionCommandTransition
|
|
12843
12847
|
};
|
|
12844
12848
|
//# sourceMappingURL=index.mjs.map
|