@inf-monkeys-tech/monkeys 1.0.13 → 1.0.15
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 +39 -1
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/tenant.d.ts +30 -30
- package/lib/contracts/tenant.js +8 -8
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +47 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +142 -8
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +878 -432
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +31 -8
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/tenant-product-config.schema.json +11 -11
- package/lib/json-schema/tenant-runtime-config.schema.json +11 -11
- package/lib/runtime/agent-session-projector.d.ts +17 -0
- package/lib/runtime/agent-session-projector.d.ts.map +1 -0
- package/lib/runtime/agent-session-projector.js +85 -0
- package/lib/runtime/agent-session-projector.js.map +1 -0
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/schemas/index.d.ts +20 -20
- package/package.json +3 -1
- package/test/fixtures/agent-session-agent.json +134 -0
- package/test/fixtures/agent-session-chatbot.json +73 -0
- package/test/fixtures/agent-session-commands.json +72 -0
- package/test/fixtures/agent-session-kernel.json +131 -0
- package/test/fixtures/tenant-product-config.public.json +179 -0
|
@@ -6733,6 +6733,41 @@ var AgentSessionCapabilitiesSchema = z3.object({
|
|
|
6733
6733
|
terminal: z3.boolean().default(false),
|
|
6734
6734
|
testResults: z3.boolean().default(false)
|
|
6735
6735
|
}).strict();
|
|
6736
|
+
var AGENT_SESSION_RUNTIME_CAPABILITIES = Object.freeze({
|
|
6737
|
+
chatbot: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, skills: true, approval: true, usage: true }),
|
|
6738
|
+
agent: AgentSessionCapabilitiesSchema.parse({ text: true, tools: true, mcp: true, shell: true, fileChange: true, skills: true, approval: true, artifacts: true, usage: true, resume: true })
|
|
6739
|
+
});
|
|
6740
|
+
function getAgentSessionRuntimeCapabilities(mode) {
|
|
6741
|
+
return AGENT_SESSION_RUNTIME_CAPABILITIES[mode];
|
|
6742
|
+
}
|
|
6743
|
+
var AGENT_SESSION_CAPABILITY_EVIDENCE = Object.freeze({
|
|
6744
|
+
text: { eventTypes: ["message"], commandTypes: [] },
|
|
6745
|
+
reasoning: { eventTypes: ["reasoning"], commandTypes: [] },
|
|
6746
|
+
plan: { eventTypes: ["plan"], commandTypes: [] },
|
|
6747
|
+
tasks: { eventTypes: ["task"], commandTypes: [] },
|
|
6748
|
+
tools: { eventTypes: ["tool"], commandTypes: [] },
|
|
6749
|
+
mcp: { eventTypes: ["tool"], commandTypes: [] },
|
|
6750
|
+
shell: { eventTypes: ["tool", "terminal"], commandTypes: [] },
|
|
6751
|
+
fileChange: { eventTypes: ["tool", "diff", "workspace-file"], commandTypes: [] },
|
|
6752
|
+
skills: { eventTypes: ["tool"], commandTypes: [] },
|
|
6753
|
+
approval: { eventTypes: ["approval"], commandTypes: ["approval"] },
|
|
6754
|
+
artifacts: { eventTypes: ["artifact"], commandTypes: [] },
|
|
6755
|
+
usage: { eventTypes: ["usage"], commandTypes: [] },
|
|
6756
|
+
resume: { eventTypes: ["resume"], commandTypes: ["resume"] },
|
|
6757
|
+
diff: { eventTypes: ["diff"], commandTypes: [] },
|
|
6758
|
+
workspaceFiles: { eventTypes: ["workspace-file"], commandTypes: [] },
|
|
6759
|
+
terminal: { eventTypes: ["terminal"], commandTypes: [] },
|
|
6760
|
+
testResults: { eventTypes: ["test-result"], commandTypes: [] }
|
|
6761
|
+
});
|
|
6762
|
+
function findUnsupportedAgentSessionCapabilities(capabilities, evidence) {
|
|
6763
|
+
const eventTypes = new Set(evidence.eventTypes || []);
|
|
6764
|
+
const commandTypes = new Set(evidence.commandTypes || []);
|
|
6765
|
+
return AgentSessionCapabilitySchema.options.filter((capability) => {
|
|
6766
|
+
if (!capabilities[capability]) return false;
|
|
6767
|
+
const requirement = AGENT_SESSION_CAPABILITY_EVIDENCE[capability];
|
|
6768
|
+
return !requirement.eventTypes.some((eventType) => eventTypes.has(eventType)) && !requirement.commandTypes.some((commandType) => commandTypes.has(commandType));
|
|
6769
|
+
});
|
|
6770
|
+
}
|
|
6736
6771
|
var AgentSessionSnapshotSchema = z3.object({
|
|
6737
6772
|
mode: AgentModeSchema,
|
|
6738
6773
|
modelId: z3.string().trim().min(1),
|
|
@@ -10645,13 +10680,13 @@ var TenantApplicationConfigSchema = z12.object({
|
|
|
10645
10680
|
rememberWorkflowModelSelection: z12.boolean().optional()
|
|
10646
10681
|
}).strict(),
|
|
10647
10682
|
dataManagement: z12.object({
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10683
|
+
favoriteOntologyId: z12.string().optional(),
|
|
10684
|
+
pairedOntologyId: z12.string().optional(),
|
|
10685
|
+
galleryOntologyId: z12.string().optional(),
|
|
10686
|
+
dataBrowserDefaultOntologyId: z12.string().optional(),
|
|
10687
|
+
workflowResultOntologyId: z12.string().optional(),
|
|
10653
10688
|
homeAdvertisement: z12.object({
|
|
10654
|
-
|
|
10689
|
+
ontologyId: ContractIdentifierSchema,
|
|
10655
10690
|
viewId: ContractIdentifierSchema.optional(),
|
|
10656
10691
|
viewType: z12.enum(["filter", "container", "share_link"]).optional(),
|
|
10657
10692
|
teamId: ContractIdentifierSchema.optional(),
|
|
@@ -10663,7 +10698,7 @@ var TenantApplicationConfigSchema = z12.object({
|
|
|
10663
10698
|
columnIds: z12.record(z12.string(), z12.string()).optional()
|
|
10664
10699
|
}).strict().optional(),
|
|
10665
10700
|
homeTrendAssistant: z12.object({
|
|
10666
|
-
|
|
10701
|
+
ontologyId: ContractIdentifierSchema.optional(),
|
|
10667
10702
|
viewId: ContractIdentifierSchema.optional(),
|
|
10668
10703
|
viewInstanceId: ContractIdentifierSchema.optional(),
|
|
10669
10704
|
viewName: z12.string().optional(),
|
|
@@ -10673,7 +10708,7 @@ var TenantApplicationConfigSchema = z12.object({
|
|
|
10673
10708
|
runtime: z12.object({ appId: ContractIdentifierSchema, tepBaseUrlConfigured: z12.boolean(), tepAuthorizationConfigured: z12.boolean(), tepCookieConfigured: z12.boolean() }).strict().optional()
|
|
10674
10709
|
}).strict().optional(),
|
|
10675
10710
|
sharing: z12.object({
|
|
10676
|
-
silentViewLinks: z12.object({ enabled: z12.boolean().optional(), placement: z12.object({ mode: z12.enum(["
|
|
10711
|
+
silentViewLinks: z12.object({ enabled: z12.boolean().optional(), placement: z12.object({ mode: z12.enum(["sourceOntology", "ontology"]).optional(), ontologyId: ContractIdentifierSchema.optional(), parentId: ContractIdentifierSchema.optional(), navId: ContractIdentifierSchema.optional() }).strict().optional() }).strict().optional(),
|
|
10677
10712
|
shareAccess: z12.object({ publicLinksEnabled: z12.boolean().optional(), passwordGateEnabled: z12.boolean().optional(), passwordAccessTtlSeconds: z12.number().int().positive().optional(), defaultViewTreeDelivery: z12.enum(["manual", "auto"]).optional() }).strict().optional(),
|
|
10678
10713
|
shareDialog: z12.object({
|
|
10679
10714
|
audience: z12.object({ enabled: z12.boolean().optional(), allowed: z12.array(z12.enum(["user", "team", "public"])).optional(), default: z12.enum(["user", "team", "public"]).optional() }).strict().optional(),
|
|
@@ -11412,6 +11447,8 @@ var WorkflowDefinitionSchema = z14.object({
|
|
|
11412
11447
|
});
|
|
11413
11448
|
export {
|
|
11414
11449
|
AGENT_MODE_CAPABILITIES,
|
|
11450
|
+
AGENT_SESSION_CAPABILITY_EVIDENCE,
|
|
11451
|
+
AGENT_SESSION_RUNTIME_CAPABILITIES,
|
|
11415
11452
|
ActorRefSchema,
|
|
11416
11453
|
AgentConfigurationCapabilitySchema,
|
|
11417
11454
|
AgentExecutionModeSchema,
|
|
@@ -11555,7 +11592,9 @@ export {
|
|
|
11555
11592
|
WorkflowTriggerSchema,
|
|
11556
11593
|
WorkflowValidationIssueSchema,
|
|
11557
11594
|
agentModeHasCapability,
|
|
11595
|
+
findUnsupportedAgentSessionCapabilities,
|
|
11558
11596
|
getAgentModeCapabilities,
|
|
11597
|
+
getAgentSessionRuntimeCapabilities,
|
|
11559
11598
|
isAgentResourceModeCompatible,
|
|
11560
11599
|
normalizeAgentExecutionMode,
|
|
11561
11600
|
normalizeAgentMode,
|