@inf-monkeys-tech/monkeys 1.0.12 → 1.0.14

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/esm/index.mjs CHANGED
@@ -6690,6 +6690,48 @@ var OutputRecordSchema = z2.object({
6690
6690
  // src/contracts/agent.ts
6691
6691
  import { z as z3 } from "zod";
6692
6692
  var AgentModeSchema = z3.enum(["chatbot", "agent"]);
6693
+ var AgentConfigurationCapabilitySchema = z3.enum([
6694
+ "models",
6695
+ "skills",
6696
+ "tools",
6697
+ "mcp",
6698
+ "reasoning"
6699
+ ]);
6700
+ var AgentModeCapabilitiesSchema = z3.object({
6701
+ models: z3.boolean(),
6702
+ skills: z3.boolean(),
6703
+ tools: z3.boolean(),
6704
+ mcp: z3.boolean(),
6705
+ reasoning: z3.boolean()
6706
+ }).strict();
6707
+ var AgentResourceModeSupportSchema = z3.object({
6708
+ modes: z3.array(AgentModeSchema).min(1)
6709
+ }).strict();
6710
+ var AGENT_MODE_CAPABILITIES = Object.freeze({
6711
+ chatbot: AgentModeCapabilitiesSchema.parse({
6712
+ models: true,
6713
+ skills: true,
6714
+ tools: true,
6715
+ mcp: true,
6716
+ reasoning: false
6717
+ }),
6718
+ agent: AgentModeCapabilitiesSchema.parse({
6719
+ models: true,
6720
+ skills: true,
6721
+ tools: true,
6722
+ mcp: true,
6723
+ reasoning: true
6724
+ })
6725
+ });
6726
+ function getAgentModeCapabilities(mode) {
6727
+ return AGENT_MODE_CAPABILITIES[mode];
6728
+ }
6729
+ function agentModeHasCapability(mode, capability) {
6730
+ return getAgentModeCapabilities(mode)[capability];
6731
+ }
6732
+ function isAgentResourceModeCompatible(support, mode) {
6733
+ return support?.modes.includes(mode) ?? false;
6734
+ }
6693
6735
  var AgentSessionCapabilitySchema = z3.enum([
6694
6736
  "text",
6695
6737
  "reasoning",
@@ -10673,13 +10715,13 @@ var TenantApplicationConfigSchema = z12.object({
10673
10715
  rememberWorkflowModelSelection: z12.boolean().optional()
10674
10716
  }).strict(),
10675
10717
  dataManagement: z12.object({
10676
- favoriteBucketId: z12.string().optional(),
10677
- pairedBucketId: z12.string().optional(),
10678
- galleryBucketId: z12.string().optional(),
10679
- dataBrowserDefaultBucketId: z12.string().optional(),
10680
- workflowResultBucketId: z12.string().optional(),
10718
+ favoriteOntologyId: z12.string().optional(),
10719
+ pairedOntologyId: z12.string().optional(),
10720
+ galleryOntologyId: z12.string().optional(),
10721
+ dataBrowserDefaultOntologyId: z12.string().optional(),
10722
+ workflowResultOntologyId: z12.string().optional(),
10681
10723
  homeAdvertisement: z12.object({
10682
- bucketId: ContractIdentifierSchema,
10724
+ ontologyId: ContractIdentifierSchema,
10683
10725
  viewId: ContractIdentifierSchema.optional(),
10684
10726
  viewType: z12.enum(["filter", "container", "share_link"]).optional(),
10685
10727
  teamId: ContractIdentifierSchema.optional(),
@@ -10691,7 +10733,7 @@ var TenantApplicationConfigSchema = z12.object({
10691
10733
  columnIds: z12.record(z12.string(), z12.string()).optional()
10692
10734
  }).strict().optional(),
10693
10735
  homeTrendAssistant: z12.object({
10694
- bucketId: ContractIdentifierSchema.optional(),
10736
+ ontologyId: ContractIdentifierSchema.optional(),
10695
10737
  viewId: ContractIdentifierSchema.optional(),
10696
10738
  viewInstanceId: ContractIdentifierSchema.optional(),
10697
10739
  viewName: z12.string().optional(),
@@ -10701,7 +10743,7 @@ var TenantApplicationConfigSchema = z12.object({
10701
10743
  runtime: z12.object({ appId: ContractIdentifierSchema, tepBaseUrlConfigured: z12.boolean(), tepAuthorizationConfigured: z12.boolean(), tepCookieConfigured: z12.boolean() }).strict().optional()
10702
10744
  }).strict().optional(),
10703
10745
  sharing: z12.object({
10704
- silentViewLinks: z12.object({ enabled: z12.boolean().optional(), placement: z12.object({ mode: z12.enum(["sourceBucket", "bucket"]).optional(), bucketId: ContractIdentifierSchema.optional(), parentId: ContractIdentifierSchema.optional(), navId: ContractIdentifierSchema.optional() }).strict().optional() }).strict().optional(),
10746
+ 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(),
10705
10747
  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(),
10706
10748
  shareDialog: z12.object({
10707
10749
  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(),
@@ -12636,10 +12678,14 @@ var compileWorkflowPersistenceProjection = (input) => {
12636
12678
  });
12637
12679
  };
12638
12680
  export {
12681
+ AGENT_MODE_CAPABILITIES,
12639
12682
  APPLICATION_HANDOFF_QUERY_PARAMETER,
12640
12683
  ActorRefSchema,
12684
+ AgentConfigurationCapabilitySchema,
12641
12685
  AgentExecutionModeSchema,
12686
+ AgentModeCapabilitiesSchema,
12642
12687
  AgentModeSchema,
12688
+ AgentResourceModeSupportSchema,
12643
12689
  AgentRuntimeEventSchema,
12644
12690
  AgentSessionCapabilitiesSchema,
12645
12691
  AgentSessionCapabilitySchema,
@@ -12784,6 +12830,7 @@ export {
12784
12830
  WorkflowTriggerSchema,
12785
12831
  WorkflowTriggerType,
12786
12832
  WorkflowValidationIssueSchema,
12833
+ agentModeHasCapability,
12787
12834
  applyViewRuntimeBindings,
12788
12835
  assertMonkeysThemeTokensComplete,
12789
12836
  assertThemeTokensDocumentStructure,
@@ -12808,6 +12855,8 @@ export {
12808
12855
  createToolCapabilityManifest,
12809
12856
  createWorkflowCapabilityManifest,
12810
12857
  extractOpenApiCapabilityManifests,
12858
+ getAgentModeCapabilities,
12859
+ isAgentResourceModeCompatible,
12811
12860
  mergeThemeTokenDocuments,
12812
12861
  normalizeAgentExecutionMode,
12813
12862
  normalizeAgentMode,