@uipath/agent-tool 1.1.0 → 1.196.0

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.
Files changed (3) hide show
  1. package/dist/packager-tool.js +377 -143
  2. package/dist/tool.js +41199 -36577
  3. package/package.json +28 -44
@@ -822,6 +822,7 @@ class ToolResult {
822
822
  errorCode;
823
823
  message;
824
824
  packages;
825
+ details;
825
826
  constructor(errorCode, message, packages = []) {
826
827
  this.errorCode = errorCode;
827
828
  this.message = message;
@@ -1000,8 +1001,11 @@ class ToolsFactoryRepository {
1000
1001
  solutionFactory = null;
1001
1002
  registerProjectToolFactory(factory) {
1002
1003
  for (const type of factory.supportedTypes) {
1003
- if (this.projectFactoryMap.has(type)) {
1004
- console.warn(`Tool factory already registered for project type '${type}', skipping.`);
1004
+ const existing = this.projectFactoryMap.get(type);
1005
+ if (existing) {
1006
+ if (existing.constructor?.name !== factory.constructor?.name) {
1007
+ console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
1008
+ }
1005
1009
  continue;
1006
1010
  }
1007
1011
  this.projectFactoryMap.set(type, factory);
@@ -15144,7 +15148,7 @@ var import_semver, createStorageSchema = (factory) => {
15144
15148
  }, storageSchemaV0, agentStorageSchemaV1, toolStorageSchemaV1, storageSchemaV1, migrationV1, solutionFolderSchema, agentStorageSchemaV2, guardrailAllFieldsSelectorSchemaV2, guardrailFieldReferenceSchemaV2, guardrailSpecificFieldsSelectorSchemaV2, guardrailFieldSelectorSchemaV2, guardrailWordRuleSchemaV2, guardrailNumberRuleSchemaV2, guardrailBooleanRuleSchemaV2, guardrailUniversalRuleSchemaV2, guardrailRuleSchemaV2, guardrailBlockActionSchemaV2, guardrailFilterActionSchemaV2, guardrailLogActionSchemaV2, guardrailEscalateActionSchemaV2, guardrailActionSchemaV2, guardrailSchemaV2, toolGuardrailStorageSchemaV2, baseToolStorageSchemaV2, toolExampleSchemaV2, processToolStorageSchemaV2, agentToolStorageSchemaV2, apiWorkflowToolStorageSchemaV2, enumSchemaV2, integrationServiceReferenceSchemaV2, integrationServiceConnectorSchemaV2, integrationServiceConnectionSchemaV2, fieldActionTypeSchemaV2, dynamicBehaviorConditionSchemaV2, dynamicBehaviorSchemaV2, integrationServiceToolParameterSchemaV2, methodDesignActionRuleSchemaV2, methodApiConfigurationSchemaV2, methodActionOnSuccessSchemaV2, methodDesignActionSchemaV2, methodDesignApiActionSchemaV2, integrationServiceToolPropertiesSchemaV2, integrationServiceToolStorageSchemaV2, toolStorageSchemaV2, governancePropertiesSchema, contextStorageSchemaV2, escalationRecipientSchema, escalationOutcomeMappingSchema, escalationChannelSchema, escalationStorageSchemaV2, resourceStorageSchemaV2, storageSchemaV2, migrationV2, agentStorageSchemaV3, resourcesFolder, evalsFolder, storageSchemaV3, migrationV3, agentStorageSchemaV4, toolStorageSchemaV4, contextStorageSchemaV4, escalationStorageSchemaV4, resourceStorageSchemaV4, resourcesFolder2, evalsFolder2, storageSchemaV4, migrationV4, escalationStorageSchemaV5, agentStorageSchemaV5, resourceStorageSchemaV5, resourcesFolder3, evalsFolder3, storageSchemaV5, migrationV5, agentStorageSchemaV6, integrationToolStorageSchemaV6, processToolStorageSchemaV6, agentToolStorageSchemaV6, apiWorkflowToolStorageSchemaV6, toolStorageSchemaV6, resourceStorageSchemaV6, resourcesFolder4, evalsFolder4, storageSchemaV6, migrationV6, escalationStorageSchemaV7, agentStorageSchemaV7, resourceStorageSchemaV7, resourcesFolder5, evalsFolder5, storageSchemaV7, migrationV7, RECIPIENT_TYPE, recipientSchema, escalateActionSchema, blockActionSchema, logActionSchema, fieldReferenceSchema, filterActionSchema, actionSchema, allFieldsSelectorSchema, specificFieldsSelectorSchema, fieldSelectorSchema, wordRuleSchema, universalRuleSchema, numberRuleSchema, booleanRuleSchema, enumListParamValueSchema, mapEnumParamValueSchema, numberParamValueSchema, validatorRuleParameterSchema, validatorRuleSchema, ruleSchema, guardrailPolicySchema, toolGuardrailSchema, toolExampleSchemaV8, processOrchestrationToolStorageSchemaV8, toolStorageSchemaV8, agentStorageSchemaV8, resourceStorageSchemaV8, resourcesFolder6, evalsFolder6, storageSchemaV8, migrationV8, actionableMessageMetaDataSchema, RECIPIENT_TYPE2, escalationChannelBaseSchemaV9, actionCenterChannelSchemaV9, escalationStorageSchemaV9, agentStorageSchemaV9, resourceStorageSchemaV9, resourcesFolder7, evalsFolder7, storageSchemaV9, migrationV9, EVALUATOR_MODEL_SAME_AS_AGENT = "same-as-agent", EvaluatorType, EvaluatorSubType, deterministicEvaluatorSchemaV10, llmAsJudgeEvaluatorSchemaV10, simulationEvaluatorSchemaV10, evaluatorSchemaV10, llmAsJudgeEvaluatorSchemaWithOptionalModel, simulationEvaluatorSchemaWithOptionalModel, evaluatorSchemaV10WithOptionalModel, evaluationSchemaV7, modelSettingSchemaV10, evalSetSchemaV10, contextStorageSchemaV10, resourceStorageSchemaV10, agentStorageSchemaV10, storageSchemaV10, migrationV10, DEFAULT_THRESHOLD = 0, DEFAULT_RESULT_COUNT = 3, FILE_EXTENSION_OPTIONS, baseSettingsSchema, semanticSettingsSchema, structuredSettingsSchema, summarizationSettingsSchema, deepragSettingsSchema, contextStorageSchemaV11, agentStorageSchemaV11, llmAsJudgeEvaluatorSchemaV11, simulationEvaluatorSchemaV11, evaluatorSchemaV11, resourceStorageSchemaV11, storageSchemaV11, migrationV11, agentStorageSchemaV12, storageSchemaV12, migrationV12, evalConversationalMessageSchemaV1, evalConversationalUserMessageSchemaV1, evalConversationalAgentMessageSchemaV1, evalConversationalInputToolCallResultSchemaV1, evalConversationalInputToolCallSchemaV1, evalConversationalOutputToolCallSchemaV1, evalConversationalInputUserMessageSchemaV1, evalConversationalInputAgentMessageWithoutToolsSchemaV1, evalConversationalInputAgentMessageWithToolsSchemaV1, evalConversationalOutputAgentMessageWithoutToolsSchemaV1, evalConversationalOutputAgentMessageWithToolsSchemaV1, evalConversationalInputAgentMessageSequenceSchemaV1, evalConversationalOutputAgentMessageSequenceSchemaV1, evalConversationalInputExchangeSchemaV1, evaluationSchemaV8, evalSetSchemaV11, agentStorageSchemaV13, storageSchemaV13, migrationV13, agentStorageSchemaV14, jsonStructureSchema, multipartStructureSchema, integrationServiceToolParameterSchemaV14, integrationServiceToolPropertiesSchemaV14, integrationToolStorageSchemaV14, toolStorageSchemaV14, resourceStorageSchemaV14, resourcesFolderSchema, evalsFolderSchema, storageSchemaV14, migrationV14, toolStorageSchemaV15, resourceStorageSchemaV15, lowCodeAgentSchemaV15, isoDateTime, codedMetadataSchema, bindingParameterSchema, resourceBindingSchema, entryPointsArraySchema, codedAgentSchemaV15, agentStorageSchemaV15, resourcesFolderSchema2, evalsFolderSchema2, storageSchemaV15, migrationV15, DEFAULT_THRESHOLD2 = 0, DEFAULT_RESULT_COUNT2 = 3, SEMANTIC_FILE_EXTENSION_OPTIONS, STRUCTURED_FILE_EXTENSION_OPTIONS, SUMMARIZATION_FILE_EXTENSION_OPTIONS, DEEPRAG_FILE_EXTENSION_OPTIONS, getMatchingOrFirstOption = (value, options) => {
15145
15149
  const firstOption = options[0];
15146
15150
  return value ? options.find((option) => option === value) ?? firstOption : firstOption;
15147
- }, baseSettingsSchema2, semanticSettingsSchema2, structuredSettingsSchema2, summarizationSettingsSchema2, deepragSettingsSchema2, contextStorageSchemaV16, mcpStorageSchemaV16, lowCodeAgentSchemaV16, codedAgentSchemaV16, agentStorageSchemaV16, resourceStorageSchemaV16, resourcesFolderSchemaV16, evalsFolderSchemaV16, storageSchemaV16, migrationV16, ixpToolStorageSchemaV17, toolStorageSchemaV17, resourceStorageSchemaV17, lowCodeAgentSchemaV17, codedAgentSchemaV17, agentStorageSchemaV17, resourcesFolderSchemaV17, storageSchemaV17, migrationV17, currentVersion = "18.0.0", builtInToolResourceStorageSchemaV18, toolStorageSchemaV18, resourceStorageSchemaV18, lowCodeAgentSchemaV18, codedAgentSchemaV18, agentStorageSchemaV18, resourcesFolderSchemaV18, storageSchemaV18, currentSchemasV18, migrationV18, currentVersion2 = "19.0.0", DEFAULT_THRESHOLD3 = 0, DEFAULT_RESULT_COUNT3 = 3, SEMANTIC_FILE_EXTENSION_OPTIONS2, STRUCTURED_FILE_EXTENSION_OPTIONS2, SUMMARIZATION_FILE_EXTENSION_OPTIONS2, DEEPRAG_FILE_EXTENSION_OPTIONS2, baseSettingsSchema3, semanticSettingsSchema3, structuredSettingsSchema3, summarizationSettingsSchema3, deepragSettingsSchema3, contextStorageSchemaV19, resourceStorageSchemaV19, lowCodeAgentSchemaV19, codedAgentSchemaV19, agentStorageSchemaV19, resourcesFolderSchemaV19, storageSchemaV19, migrationV19, currentSchemasV19, currentVersion3 = "20.0.0", EscalationType, vsEscalationPropertiesSchemaV20, escalationStorageSchemaV20, resourceStorageSchemaV20, lowCodeAgentSchemaV20, codedAgentSchemaV20, agentStorageSchemaV20, resourcesFolderSchemaV20, storageSchemaV20, v20, migrationV20, currentVersion4 = "21.0.0", guardrailSelectorSchemaV21, guardrailSchemaV21, toolGuardrailStorageSchemaV21, integrationToolStorageSchemaV21, processToolStorageSchemaV21, agentToolStorageSchemaV21, apiWorkflowToolStorageSchemaV21, processOrchestrationToolStorageSchemaV21, ixpToolStorageSchemaV21, builtInToolResourceStorageSchemaV21, toolStorageSchemaV21, resourceStorageSchemaV21, lowCodeAgentSchemaV21, codedAgentSchemaV21, agentStorageSchemaV21, resourcesFolderSchemaV21, storageSchemaV21, v21, migrationV21, version2 = "22.0.0", DEFAULT_THRESHOLD4 = 0, DEFAULT_RESULT_COUNT4 = 3, SEMANTIC_FILE_EXTENSION_OPTIONS3, STRUCTURED_FILE_EXTENSION_OPTIONS3, SUMMARIZATION_FILE_EXTENSION_OPTIONS3, DEEPRAG_FILE_EXTENSION_OPTIONS3, BATCHTRANSFORM_FILE_EXTENSION_OPTIONS, baseSettingsSchema4, semanticSettingsSchema4, structuredSettingsSchema4, summarizationSettingsSchema4, deepragSettingsSchema4, batchTransformSettingsSchema, contextStorageSchema, resourceStorageSchema, lowCodeAgentSchema, codedAgentSchema, agentStorageSchema, resourcesFolderSchema3, storageSchema, v22, migrationV22, currentVersion5 = "23.0.0", ruleSchema2, baseGuardrailSchema, customGuardrailSchemaV23, builtInValidatorGuardrailSchemaV23, guardrailSchemaV23, toolGuardrailStorageSchemaV23, integrationToolStorageSchemaV23, processToolStorageSchemaV23, agentToolStorageSchemaV23, apiWorkflowToolStorageSchemaV23, processOrchestrationToolStorageSchemaV23, ixpToolStorageSchemaV23, builtInToolResourceStorageSchemaV23, toolStorageSchemaV23, resourceStorageSchemaV23, lowCodeAgentSchemaV23, codedAgentSchemaV23, agentStorageSchemaV23, resourcesFolderSchemaV23, storageSchemaV23, v23, migrationV23, currentVersion6 = "24.0.0", lowCodeAgentSchemaV24, codedAgentSchemaV24, agentStorageSchemaV24, storageSchemaV24, v24, migrationV24, version22 = "25.0.0", contentTokenSchema, messageWithTokensSchema, lowCodeAgentSchema2, codedAgentSchema2, agentStorageSchema2, resourcesFolderSchema4, storageSchema2, v25, migrationV25, currentVersion7 = "26.0.0", resourcesFolderSchemaV26, lowCodeAgentSchemaV26, codedAgentSchemaV26, agentStorageSchemaV26, storageSchemaV26, v26, migrationV26, version3 = "27.0.0", taskTitleV2Schema, actionCenterSchemaV24, escalationChannelActionCenterSchemaV27, escalationStorageSchemaV27, resourceStorageSchemaV27, resourcesFolderSchemaV27, lowCodeAgentSchemaV27, codedAgentSchemaV27, agentStorageSchemaV27, storageSchemaV27, v27, migrationV27, currentVersion8 = "28.0.0", lowCodeAgentSchemaV28, codedAgentSchemaV28, agentStorageSchemaV28, storageSchemaV28, v28, migrationV28, version4 = "29.0.0", msSearchModeSchemaV29, msFieldSettingsSchemaV29, msDynamicFewShotSettingsSchemaV29, memorySpaceStorageSchemaV29, lowCodeAgentSchemaV29, codedAgentSchemaV29, featureStorageSchemaV29, featuresFolderSchemaV29, agentStorageSchemaV29, storageSchemaV29, v29, migrationV29, version5 = "30.0.0", agentMemorySettingSchemaV30, evalSetSchemaV30, lowCodeAgentSchemaV30, codedAgentSchemaV30, agentStorageSchemaV30, evalsFolderSchemaV30, storageSchemaV30, v30, migrationV30, version6 = "31.0.0", lowCodeAgentSchemaV31, codedAgentSchemaV31, agentStorageSchemaV31, storageSchemaV31, v31, migrationV31, version7 = "32.0.0", ContextType, contextStorageSchemaV32, resourceStorageSchemaV32, resourcesFolderSchemaV32, lowCodeAgentSchemaV32, codedAgentSchemaV32, agentStorageSchemaV32, storageSchemaV32, v32, migrationV32, version8 = "33.0.0", argumentPropertiesConfigSchema, argumentPropertiesSchema, integrationToolStorageSchemaV33, processToolStorageSchemaV33, agentToolStorageSchemaV33, apiWorkflowToolStorageSchemaV33, processOrchestrationToolStorageSchemaV33, ixpToolStorageSchemaV33, builtInToolResourceStorageSchemaV33, dynamicToolsModeSchema, mcpToolStorageSchemaV33, toolStorageSchemaV33, resourceStorageSchemaV33, resourcesFolderSchemaV33, lowCodeAgentSchemaV33, codedAgentSchemaV33, agentStorageSchemaV33, storageSchemaV33, v33, migrationV33, version9 = "34.0.0", appearanceSchema, lowCodeAgentSchemaV34, codedAgentSchemaV34, agentStorageSchemaV34, storageSchemaV34, v34, migrationV34, version10 = "35.0.0", nodePositionSchemaV35, resourceNodeSchemaV35, flowLayoutSchemaV35, lowCodeAgentSchemaV35, codedAgentSchemaV35, agentStorageSchemaV35, storageSchemaV35, v35, migrationV35, version11 = "36.0.0", evalSetSchemaV36, lowCodeAgentSchemaV36, codedAgentSchemaV36, agentStorageSchemaV36, evalsFolderSchemaV36, storageSchemaV36, v36, migrationV36, version12 = "37.0.0", evaluationV36, conversationalInputsV36, evalConversationalUserMessageSchemaV36, jobAttachmentReferenceSchema, evalConversationalUserMessageSchemaV37, evalConversationalInputUserMessageSchemaV37, evalConversationalMessageSchemaV36, evalConversationalAgentMessageSchemaV36, evalConversationalInputAgentMessageWithoutToolsSchemaV37, evalConversationalInputToolCallSchemaV36, evalConversationalInputAgentMessageWithToolsSchemaV37, evalConversationalInputAgentMessageSequenceSchemaV37, evalConversationalInputExchangeSchemaV37, evaluationSchemaV37, evalSetSchemaV37, evalsFolderSchemaV37, lowCodeAgentSchemaV37, codedAgentSchemaV37, agentStorageSchemaV37, storageSchemaV37, v37, migrationV37, version13 = "38.0.0", lowCodeAgentSchemaV38, codedAgentSchemaV38, agentStorageSchemaV38, storageSchemaV38, v38, migrationV38, version14 = "39.0.0", EvaluatorSubType2, EvaluatorType2, deterministicEvaluatorSchemaV39, llmAsJudgeEvaluatorSchemaV39, simulationEvaluatorSchemaV39, evaluatorSchemaV39, evalSetSchemaV39, lowCodeAgentSchemaV39, codedAgentSchemaV39, agentStorageSchemaV39, evalsFolderSchemaV39, storageSchemaV39, v39, migrationV39, version15 = "40.0.0", _v39BuiltInToolSchema, existingBuiltInToolPropertiesShape, builtInToolBasePropertiesSchema, analyzeAttachmentsPropertiesSchema, loadAttachmentsPropertiesSchema, queryConfigSchema, folderPathPrefixConfigSchema, fileExtensionConfigSchema, citationModeConfigSchema, webSearchGroundingConfigSchema, batchTransformOutputColumnSchema, deepRagSettingsSchema, deepRagPropertiesSchema, batchTransformSettingsSchema2, batchTransformPropertiesSchema, builtInToolPropertiesSchemaV40, builtInToolResourceStorageSchemaV40, toolStorageSchemaV40, resourceStorageSchemaV40, resourcesFolderSchemaV40, lowCodeAgentSchemaV40, codedAgentSchemaV40, agentStorageSchemaV40, storageSchemaV40, v40, migrateBuiltInToolProperties = (tool) => {
15151
+ }, baseSettingsSchema2, semanticSettingsSchema2, structuredSettingsSchema2, summarizationSettingsSchema2, deepragSettingsSchema2, contextStorageSchemaV16, mcpStorageSchemaV16, lowCodeAgentSchemaV16, codedAgentSchemaV16, agentStorageSchemaV16, resourceStorageSchemaV16, resourcesFolderSchemaV16, evalsFolderSchemaV16, storageSchemaV16, migrationV16, ixpToolStorageSchemaV17, toolStorageSchemaV17, resourceStorageSchemaV17, lowCodeAgentSchemaV17, codedAgentSchemaV17, agentStorageSchemaV17, resourcesFolderSchemaV17, storageSchemaV17, migrationV17, currentVersion = "18.0.0", builtInToolResourceStorageSchemaV18, toolStorageSchemaV18, resourceStorageSchemaV18, lowCodeAgentSchemaV18, codedAgentSchemaV18, agentStorageSchemaV18, resourcesFolderSchemaV18, storageSchemaV18, currentSchemasV18, migrationV18, currentVersion2 = "19.0.0", DEFAULT_THRESHOLD3 = 0, DEFAULT_RESULT_COUNT3 = 3, SEMANTIC_FILE_EXTENSION_OPTIONS2, STRUCTURED_FILE_EXTENSION_OPTIONS2, SUMMARIZATION_FILE_EXTENSION_OPTIONS2, DEEPRAG_FILE_EXTENSION_OPTIONS2, baseSettingsSchema3, semanticSettingsSchema3, structuredSettingsSchema3, summarizationSettingsSchema3, deepragSettingsSchema3, contextStorageSchemaV19, resourceStorageSchemaV19, lowCodeAgentSchemaV19, codedAgentSchemaV19, agentStorageSchemaV19, resourcesFolderSchemaV19, storageSchemaV19, migrationV19, currentSchemasV19, currentVersion3 = "20.0.0", EscalationType, vsEscalationPropertiesSchemaV20, escalationStorageSchemaV20, resourceStorageSchemaV20, lowCodeAgentSchemaV20, codedAgentSchemaV20, agentStorageSchemaV20, resourcesFolderSchemaV20, storageSchemaV20, v20, migrationV20, currentVersion4 = "21.0.0", guardrailSelectorSchemaV21, guardrailSchemaV21, toolGuardrailStorageSchemaV21, integrationToolStorageSchemaV21, processToolStorageSchemaV21, agentToolStorageSchemaV21, apiWorkflowToolStorageSchemaV21, processOrchestrationToolStorageSchemaV21, ixpToolStorageSchemaV21, builtInToolResourceStorageSchemaV21, toolStorageSchemaV21, resourceStorageSchemaV21, lowCodeAgentSchemaV21, codedAgentSchemaV21, agentStorageSchemaV21, resourcesFolderSchemaV21, storageSchemaV21, v21, migrationV21, version2 = "22.0.0", DEFAULT_THRESHOLD4 = 0, DEFAULT_RESULT_COUNT4 = 3, SEMANTIC_FILE_EXTENSION_OPTIONS3, STRUCTURED_FILE_EXTENSION_OPTIONS3, SUMMARIZATION_FILE_EXTENSION_OPTIONS3, DEEPRAG_FILE_EXTENSION_OPTIONS3, BATCHTRANSFORM_FILE_EXTENSION_OPTIONS, baseSettingsSchema4, semanticSettingsSchema4, structuredSettingsSchema4, summarizationSettingsSchema4, deepragSettingsSchema4, batchTransformSettingsSchema, contextStorageSchema, resourceStorageSchema, lowCodeAgentSchema, codedAgentSchema, agentStorageSchema, resourcesFolderSchema3, storageSchema, v22, migrationV22, currentVersion5 = "23.0.0", ruleSchema2, baseGuardrailSchema, customGuardrailSchemaV23, builtInValidatorGuardrailSchemaV23, guardrailSchemaV23, toolGuardrailStorageSchemaV23, integrationToolStorageSchemaV23, processToolStorageSchemaV23, agentToolStorageSchemaV23, apiWorkflowToolStorageSchemaV23, processOrchestrationToolStorageSchemaV23, ixpToolStorageSchemaV23, builtInToolResourceStorageSchemaV23, toolStorageSchemaV23, resourceStorageSchemaV23, lowCodeAgentSchemaV23, codedAgentSchemaV23, agentStorageSchemaV23, resourcesFolderSchemaV23, storageSchemaV23, v23, migrationV23, currentVersion6 = "24.0.0", lowCodeAgentSchemaV24, codedAgentSchemaV24, agentStorageSchemaV24, storageSchemaV24, v24, migrationV24, version22 = "25.0.0", contentTokenSchema, messageWithTokensSchema, lowCodeAgentSchema2, codedAgentSchema2, agentStorageSchema2, resourcesFolderSchema4, storageSchema2, v25, migrationV25, currentVersion7 = "26.0.0", resourcesFolderSchemaV26, lowCodeAgentSchemaV26, codedAgentSchemaV26, agentStorageSchemaV26, storageSchemaV26, v26, migrationV26, version3 = "27.0.0", taskTitleV2Schema, actionCenterSchemaV24, escalationChannelActionCenterSchemaV27, escalationStorageSchemaV27, resourceStorageSchemaV27, resourcesFolderSchemaV27, lowCodeAgentSchemaV27, codedAgentSchemaV27, agentStorageSchemaV27, storageSchemaV27, v27, migrationV27, currentVersion8 = "28.0.0", lowCodeAgentSchemaV28, codedAgentSchemaV28, agentStorageSchemaV28, storageSchemaV28, v28, migrationV28, version4 = "29.0.0", msSearchModeSchemaV29, msFieldSettingsSchemaV29, msDynamicFewShotSettingsSchemaV29, memorySpaceStorageSchemaV29, lowCodeAgentSchemaV29, codedAgentSchemaV29, featureStorageSchemaV29, featuresFolderSchemaV29, agentStorageSchemaV29, storageSchemaV29, v29, migrationV29, version5 = "30.0.0", agentMemorySettingSchemaV30, evalSetSchemaV30, lowCodeAgentSchemaV30, codedAgentSchemaV30, agentStorageSchemaV30, evalsFolderSchemaV30, storageSchemaV30, v30, migrationV30, version6 = "31.0.0", lowCodeAgentSchemaV31, codedAgentSchemaV31, agentStorageSchemaV31, storageSchemaV31, v31, migrationV31, version7 = "32.0.0", ContextType, contextStorageSchemaV32, resourceStorageSchemaV32, resourcesFolderSchemaV32, lowCodeAgentSchemaV32, codedAgentSchemaV32, agentStorageSchemaV32, storageSchemaV32, v32, migrationV32, version8 = "33.0.0", argumentPropertiesConfigSchema, argumentPropertiesSchema, actionCenterSchemaV32, escalationChannelActionCenterSchemaV33, escalationStorageSchemaV33, integrationToolStorageSchemaV33, processToolStorageSchemaV33, agentToolStorageSchemaV33, apiWorkflowToolStorageSchemaV33, processOrchestrationToolStorageSchemaV33, ixpToolStorageSchemaV33, builtInToolResourceStorageSchemaV33, dynamicToolsModeSchema, mcpToolStorageSchemaV33, toolStorageSchemaV33, resourceStorageSchemaV33, resourcesFolderSchemaV33, lowCodeAgentSchemaV33, codedAgentSchemaV33, agentStorageSchemaV33, storageSchemaV33, v33, migrationV33, version9 = "34.0.0", appearanceSchema, lowCodeAgentSchemaV34, codedAgentSchemaV34, agentStorageSchemaV34, storageSchemaV34, v34, migrationV34, version10 = "35.0.0", nodePositionSchemaV35, resourceNodeSchemaV35, flowLayoutSchemaV35, lowCodeAgentSchemaV35, codedAgentSchemaV35, agentStorageSchemaV35, storageSchemaV35, v35, migrationV35, version11 = "36.0.0", evalSetSchemaV36, lowCodeAgentSchemaV36, codedAgentSchemaV36, agentStorageSchemaV36, evalsFolderSchemaV36, storageSchemaV36, v36, migrationV36, version12 = "37.0.0", evaluationV36, conversationalInputsV36, evalConversationalUserMessageSchemaV36, jobAttachmentReferenceSchema, evalConversationalUserMessageSchemaV37, evalConversationalInputUserMessageSchemaV37, evalConversationalMessageSchemaV36, evalConversationalAgentMessageSchemaV36, evalConversationalInputAgentMessageWithoutToolsSchemaV37, evalConversationalInputToolCallSchemaV36, evalConversationalInputAgentMessageWithToolsSchemaV37, evalConversationalInputAgentMessageSequenceSchemaV37, evalConversationalInputExchangeSchemaV37, evaluationSchemaV37, evalSetSchemaV37, evalsFolderSchemaV37, lowCodeAgentSchemaV37, codedAgentSchemaV37, agentStorageSchemaV37, storageSchemaV37, v37, migrationV37, version13 = "38.0.0", lowCodeAgentSchemaV38, codedAgentSchemaV38, agentStorageSchemaV38, storageSchemaV38, v38, migrationV38, version14 = "39.0.0", EvaluatorSubType2, EvaluatorType2, deterministicEvaluatorSchemaV39, llmAsJudgeEvaluatorSchemaV39, simulationEvaluatorSchemaV39, evaluatorSchemaV39, evalSetSchemaV39, lowCodeAgentSchemaV39, codedAgentSchemaV39, agentStorageSchemaV39, evalsFolderSchemaV39, storageSchemaV39, v39, migrationV39, version15 = "40.0.0", _v39BuiltInToolSchema, existingBuiltInToolPropertiesShape, builtInToolBasePropertiesSchema, analyzeAttachmentsPropertiesSchema, loadAttachmentsPropertiesSchema, queryConfigSchema, folderPathPrefixConfigSchema, fileExtensionConfigSchema, citationModeConfigSchema, webSearchGroundingConfigSchema, batchTransformOutputColumnSchema, deepRagSettingsSchema, deepRagPropertiesSchema, batchTransformSettingsSchema2, batchTransformPropertiesSchema, builtInToolPropertiesSchemaV40, builtInToolResourceStorageSchemaV40, toolStorageSchemaV40, resourceStorageSchemaV40, resourcesFolderSchemaV40, lowCodeAgentSchemaV40, codedAgentSchemaV40, agentStorageSchemaV40, storageSchemaV40, v40, migrateBuiltInToolProperties = (tool) => {
15148
15152
  const { toolType, exampleCalls, requireConversationalConfirmation } = tool.properties;
15149
15153
  if (toolType === "analyze-attachments") {
15150
15154
  return {
@@ -15168,7 +15172,7 @@ var import_semver, createStorageSchema = (factory) => {
15168
15172
  }, migrationV40, version16 = "41.0.0", nodePositionSchemaV41, nodeSizeSchemaV41, resourceNodeSchemaV41, stickyNoteNodeSchemaV41, flowLayoutSchemaV41, lowCodeAgentSchemaV41, codedAgentSchemaV41, agentStorageSchemaV41, storageSchemaV41, v41, migrationV41, version17 = "42.0.0", ENTITIES_TO_REMOVE, lowCodeAgentSchemaV42, codedAgentSchemaV42, agentStorageSchemaV42, storageSchemaV42, v42, migrationV42, version18 = "43.0.0", lowCodeAgentSchemaV43, codedAgentSchemaV43, agentStorageSchemaV43, storageSchemaV43, v43, migrationV43, version19 = "44.0.0", _memorySpaceStorageSchemaV43, msEscalationSettingsSchemaV44, escalationStorageSchemaV44, resourceStorageSchemaV44, resourcesFolderSchemaV44, lowCodeAgentSchemaV44, codedAgentSchemaV44, agentStorageSchemaV44, storageSchemaV44, v44, migrationV44, version20 = "45.0.0", appearanceSchema2, lowCodeAgentSchemaV45, codedAgentSchemaV45, agentStorageSchemaV45, storageSchemaV45, v45, migrationV45, version21 = "46.0.0", lowCodeAgentSchemaV46, codedAgentSchemaV46, agentStorageSchemaV46, storageSchemaV46, v46, migrationV46, version222 = "47.0.0", processOrchestrationToolStorageSchemaV47, toolStorageSchemaV47, resourceStorageSchemaV47, resourcesFolderSchemaV47, lowCodeAgentSchemaV47, codedAgentSchemaV47, agentStorageSchemaV47, storageSchemaV47, v47, migrationV47, version23 = "48.0.0", vdoInputValueSchemaV48, requiredEntityInputSchemaV48, dataFabricEntityItemSchemaV48, indexOrAttachmentsContextStorageSchemaV48, dataFabricContextStorageSchemaV48, contextStorageSchemaV48, a2aStorageSchemaV48, resourceStorageSchemaV48, resourcesFolderSchemaV48, lowCodeAgentSchemaV48, codedAgentSchemaV48, agentStorageSchemaV48, storageSchemaV48, migrateContextResource = (context) => ({
15169
15173
  ...context,
15170
15174
  contextType: context.contextType ?? (context.attachments ? "attachments" : "index")
15171
- }), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", RECIPIENT_TYPE3, escalationChannelActionCenterSchemaV50, escalationStorageSchemaV50, baseLowCodeSettingsSchema, _v49ProcessToolSchema, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, clientSideToolStorageSchemaV50, toolStorageSchemaV50, resourceStorageSchemaV50, resourcesFolderSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
15175
+ }), v48, migrationV48, version24 = "49.0.0", lowCodeAgentSchemaV49, codedAgentSchemaV49, agentStorageSchemaV49, storageSchemaV49, v49, migrationV49, version25 = "50.0.0", AGENT365_GOVERNANCE_PROVIDER_NAMESPACE = "agent.governance_providers.agents365", Agent365Attributes, RECIPIENT_TYPE3, escalationRecipientsV50, hitlSchemaFieldRuleV50, hitlSchemaFieldV50, hitlSchemaOutcomeV50, hitlSchemaV50, actionableMessageMetaDataV50, channelQuickFormPropertiesV50, escalationChannelActionCenterSchemaV50, escalationChannelActionCenterQuickFormSchemaV50, escalationStorageSchemaV50, baseLowCodeSettingsSchema, _v49ProcessToolSchema, flowToolStorageSchemaV50, functionToolStorageSchemaV50, voiceSettingsExtension, standardLowCodeAgentSettingsV50, advancedLowCodeAgentSettingsV50, lowCodeAgentSettingsV50, agent365ValuesSchemaV50, lowCodeAgentSchemaV50, codedAgentSchemaV50, agentStorageSchemaV50, clientSideToolStorageSchemaV50, toolStorageSchemaV50, discoveryModeSchemaV50, mcpToolStorageSchemaV50, resourceStorageSchemaV50, resourcesFolderSchemaV50, storageSchemaV50, v50, migrationV50, migrations, currentStorageSchemaMigration, currentStorageSchema, currentAgentStorageSchema, currentResourceStorageSchema, currentFeatureStorageSchema, currentEvaluationSetStorageSchema, currentCodedAgentStorageSchema, currentFlowLayoutStorageSchema, applyMigrations = async (migrations2, data, currentVersion9, options = {}) => {
15172
15176
  const parsedCurrentVersion = import_semver.coerce(currentVersion9);
15173
15177
  if (!parsedCurrentVersion) {
15174
15178
  throw new Error(`Invalid current version: ${currentVersion9}`);
@@ -15224,6 +15228,7 @@ var init_dist2 = __esm(() => {
15224
15228
  required: exports_external.array(exports_external.string()).optional(),
15225
15229
  format: exports_external.string().optional(),
15226
15230
  $ref: exports_external.string().optional(),
15231
+ nullable: exports_external.boolean().optional(),
15227
15232
  "x-uipath-resource-kind": exports_external.string().optional()
15228
15233
  });
15229
15234
  jsonSchemaPropertiesSchema = baseJsonSchemaPropertiesSchema.extend({
@@ -17874,7 +17879,14 @@ var init_dist2 = __esm(() => {
17874
17879
  conversationalExpectedOutput: exports_external.object({
17875
17880
  agentResponse: evalConversationalOutputAgentMessageSequenceSchemaV1
17876
17881
  }).optional(),
17877
- source: exports_external.enum(["debugRun", "manual", "runtimeRun", "simulatedRun", "autopilotUserInitiated"]).optional()
17882
+ source: exports_external.enum([
17883
+ "debugRun",
17884
+ "manual",
17885
+ "runtimeRun",
17886
+ "simulatedRun",
17887
+ "autopilotUserInitiated",
17888
+ "firstSuccessfulRun"
17889
+ ]).optional()
17878
17890
  });
17879
17891
  evalSetSchemaV11 = evalSetSchemaV10.extend({
17880
17892
  evaluations: exports_external.array(evaluationSchemaV8)
@@ -20767,7 +20779,6 @@ var init_dist2 = __esm(() => {
20767
20779
  contentToken: v28.contentToken,
20768
20780
  message: v28.message,
20769
20781
  context: v28.context,
20770
- escalationChannelActionCenter: v28.escalationChannelActionCenter,
20771
20782
  escalation: v28.escalation,
20772
20783
  resource: v28.resource,
20773
20784
  feature: featureStorageSchemaV29,
@@ -20908,7 +20919,6 @@ var init_dist2 = __esm(() => {
20908
20919
  contentToken: v29.contentToken,
20909
20920
  message: v29.message,
20910
20921
  context: v29.context,
20911
- escalationChannelActionCenter: v29.escalationChannelActionCenter,
20912
20922
  escalation: v29.escalation,
20913
20923
  resource: v29.resource,
20914
20924
  feature: v29.feature,
@@ -21048,7 +21058,6 @@ var init_dist2 = __esm(() => {
21048
21058
  contentToken: v30.contentToken,
21049
21059
  message: v30.message,
21050
21060
  context: v30.context,
21051
- escalationChannelActionCenter: v30.escalationChannelActionCenter,
21052
21061
  escalation: v30.escalation,
21053
21062
  resource: v30.resource,
21054
21063
  feature: v30.feature,
@@ -21169,7 +21178,6 @@ var init_dist2 = __esm(() => {
21169
21178
  contentToken: v31.contentToken,
21170
21179
  message: v31.message,
21171
21180
  context: contextStorageSchemaV32,
21172
- escalationChannelActionCenter: v31.escalationChannelActionCenter,
21173
21181
  escalation: v31.escalation,
21174
21182
  resource: resourceStorageSchemaV32,
21175
21183
  feature: v31.feature,
@@ -21250,9 +21258,19 @@ var init_dist2 = __esm(() => {
21250
21258
  variant: exports_external.literal("textBuilder"),
21251
21259
  tokens: exports_external.array(v32.contentToken),
21252
21260
  isSensitive: exports_external.boolean().default(false)
21261
+ }),
21262
+ exports_external.object({
21263
+ variant: exports_external.literal("arrayBuilder")
21253
21264
  })
21254
21265
  ]);
21255
21266
  argumentPropertiesSchema = exports_external.record(exports_external.string(), argumentPropertiesConfigSchema);
21267
+ actionCenterSchemaV32 = v32.escalation.shape.channels.element.options[0];
21268
+ escalationChannelActionCenterSchemaV33 = actionCenterSchemaV32.extend({
21269
+ argumentProperties: argumentPropertiesSchema.default({})
21270
+ });
21271
+ escalationStorageSchemaV33 = v32.escalation.extend({
21272
+ channels: exports_external.array(exports_external.discriminatedUnion("type", [escalationChannelActionCenterSchemaV33]))
21273
+ });
21256
21274
  integrationToolStorageSchemaV33 = v32.tool.options[0].extend({
21257
21275
  properties: v32.tool.options[0].shape.properties.extend({
21258
21276
  requireConversationalConfirmation: exports_external.boolean().optional()
@@ -21313,7 +21331,7 @@ var init_dist2 = __esm(() => {
21313
21331
  resourceStorageSchemaV33 = exports_external.union([
21314
21332
  toolStorageSchemaV33,
21315
21333
  v32.context,
21316
- v32.escalation,
21334
+ escalationStorageSchemaV33,
21317
21335
  mcpToolStorageSchemaV33
21318
21336
  ]);
21319
21337
  resourcesFolderSchemaV33 = exports_external.object({
@@ -21358,8 +21376,8 @@ var init_dist2 = __esm(() => {
21358
21376
  contentToken: v32.contentToken,
21359
21377
  message: v32.message,
21360
21378
  context: v32.context,
21361
- escalationChannelActionCenter: v32.escalationChannelActionCenter,
21362
- escalation: v32.escalation,
21379
+ escalationChannelActionCenter: escalationChannelActionCenterSchemaV33,
21380
+ escalation: escalationStorageSchemaV33,
21363
21381
  resource: resourceStorageSchemaV33,
21364
21382
  feature: v32.feature,
21365
21383
  evalSet: v32.evalSet,
@@ -21527,7 +21545,7 @@ var init_dist2 = __esm(() => {
21527
21545
  flowLayoutSchemaV35 = exports_external.object({
21528
21546
  agentPosition: nodePositionSchemaV35,
21529
21547
  resourceNodes: exports_external.array(resourceNodeSchemaV35).optional(),
21530
- zoom: exports_external.number().optional()
21548
+ zoom: exports_external.number().optional().catch(1)
21531
21549
  });
21532
21550
  lowCodeAgentSchemaV35 = v34.lowCodeAgent.extend({
21533
21551
  metadata: v34.lowCodeAgent.shape.metadata.extend({
@@ -22575,7 +22593,7 @@ var init_dist2 = __esm(() => {
22575
22593
  agentPosition: nodePositionSchemaV41,
22576
22594
  resourceNodes: exports_external.array(resourceNodeSchemaV41).optional(),
22577
22595
  stickyNoteNodes: exports_external.array(stickyNoteNodeSchemaV41).optional(),
22578
- zoom: exports_external.number().optional()
22596
+ zoom: exports_external.number().optional().catch(1)
22579
22597
  });
22580
22598
  lowCodeAgentSchemaV41 = v40.lowCodeAgent.extend({
22581
22599
  metadata: v40.lowCodeAgent.shape.metadata.extend({
@@ -23390,7 +23408,8 @@ var init_dist2 = __esm(() => {
23390
23408
  featuresFolder: v46.featuresFolder,
23391
23409
  flowLayout: v46.flowLayout,
23392
23410
  mcp: v46.mcp,
23393
- tool: toolStorageSchemaV47
23411
+ tool: toolStorageSchemaV47,
23412
+ processOrchestrationTool: processOrchestrationToolStorageSchemaV47
23394
23413
  };
23395
23414
  migrationV47 = createMigration({
23396
23415
  from: v46.storage,
@@ -23567,7 +23586,8 @@ var init_dist2 = __esm(() => {
23567
23586
  flowLayout: v47.flowLayout,
23568
23587
  mcp: v47.mcp,
23569
23588
  a2a: a2aStorageSchemaV48,
23570
- tool: v47.tool
23589
+ tool: v47.tool,
23590
+ processOrchestrationTool: v47.processOrchestrationTool
23571
23591
  };
23572
23592
  migrationV48 = createMigration({
23573
23593
  from: v47.storage,
@@ -23689,7 +23709,8 @@ var init_dist2 = __esm(() => {
23689
23709
  flowLayout: v48.flowLayout,
23690
23710
  mcp: v48.mcp,
23691
23711
  a2a: v48.a2a,
23692
- tool: v48.tool
23712
+ tool: v48.tool,
23713
+ processOrchestrationTool: v48.processOrchestrationTool
23693
23714
  };
23694
23715
  migrationV49 = createMigration({
23695
23716
  from: v48.storage,
@@ -23758,6 +23779,14 @@ var init_dist2 = __esm(() => {
23758
23779
  };
23759
23780
  }
23760
23781
  });
23782
+ Agent365Attributes = {
23783
+ Registered: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.registered`,
23784
+ BlueprintId: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.blueprint.id`,
23785
+ AgentInstanceId: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.agent.instance.id`,
23786
+ EntraTenantId: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.entra.tenant.id`,
23787
+ AgentUserId: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.agent.user.id`,
23788
+ AgentUserEmail: `${AGENT365_GOVERNANCE_PROVIDER_NAMESPACE}.agent.user.email`
23789
+ };
23761
23790
  RECIPIENT_TYPE3 = {
23762
23791
  USER_ID: 1,
23763
23792
  GROUP_ID: 2,
@@ -23768,45 +23797,120 @@ var init_dist2 = __esm(() => {
23768
23797
  ARGUMENT_USER_EMAIL: 7,
23769
23798
  ARGUMENT_GROUP_NAME: 8
23770
23799
  };
23800
+ escalationRecipientsV50 = exports_external.array(exports_external.discriminatedUnion("type", [
23801
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.USER_ID), value: exports_external.string(), displayName: exports_external.string() }),
23802
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.GROUP_ID), value: exports_external.string(), displayName: exports_external.string() }),
23803
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_USER_EMAIL), value: exports_external.string() }),
23804
+ exports_external.object({
23805
+ type: exports_external.literal(RECIPIENT_TYPE3.ASSET_USER_EMAIL),
23806
+ folderPath: exports_external.string().optional(),
23807
+ assetName: exports_external.string()
23808
+ }),
23809
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_GROUP_NAME), value: exports_external.string() }),
23810
+ exports_external.object({
23811
+ type: exports_external.literal(RECIPIENT_TYPE3.ASSET_GROUP_NAME),
23812
+ folderPath: exports_external.string().optional(),
23813
+ assetName: exports_external.string()
23814
+ }),
23815
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_USER_EMAIL), argumentName: exports_external.string() }),
23816
+ exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_GROUP_NAME), argumentName: exports_external.string() })
23817
+ ]));
23818
+ hitlSchemaFieldRuleV50 = exports_external.looseObject({
23819
+ id: exports_external.string().optional(),
23820
+ conditions: exports_external.array(exports_external.looseObject({ when: exports_external.string().optional() })).optional(),
23821
+ operator: exports_external.string().optional(),
23822
+ effects: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
23823
+ });
23824
+ hitlSchemaFieldV50 = exports_external.looseObject({
23825
+ id: exports_external.string().optional(),
23826
+ type: exports_external.string().optional(),
23827
+ label: exports_external.string().optional(),
23828
+ direction: exports_external.string().optional(),
23829
+ required: exports_external.boolean().optional(),
23830
+ variable: exports_external.string().optional(),
23831
+ binding: exports_external.string().optional(),
23832
+ rules: exports_external.array(hitlSchemaFieldRuleV50).optional(),
23833
+ requiredMessage: exports_external.string().optional()
23834
+ });
23835
+ hitlSchemaOutcomeV50 = exports_external.looseObject({
23836
+ id: exports_external.string().optional(),
23837
+ name: exports_external.string().optional(),
23838
+ type: exports_external.string().optional(),
23839
+ action: exports_external.string().optional(),
23840
+ isPrimary: exports_external.boolean().optional(),
23841
+ outcomeType: exports_external.string().optional()
23842
+ });
23843
+ hitlSchemaV50 = exports_external.looseObject({
23844
+ type: exports_external.string().optional(),
23845
+ schemaId: exports_external.string().optional(),
23846
+ _contentHash: exports_external.string().optional(),
23847
+ docVersion: exports_external.string().optional(),
23848
+ nodeId: exports_external.string().optional(),
23849
+ title: exports_external.string().optional(),
23850
+ description: exports_external.string().optional(),
23851
+ theme: exports_external.string().optional(),
23852
+ fields: exports_external.array(hitlSchemaFieldV50).optional(),
23853
+ outcomes: exports_external.array(hitlSchemaOutcomeV50).optional()
23854
+ });
23855
+ actionableMessageMetaDataV50 = v49.escalationChannelActionCenter.shape.properties.shape.actionableMessageMetaData;
23856
+ channelQuickFormPropertiesV50 = exports_external.object({
23857
+ schema: hitlSchemaV50,
23858
+ isActionableMessageEnabled: exports_external.boolean().default(false),
23859
+ actionableMessageMetaData: actionableMessageMetaDataV50
23860
+ });
23771
23861
  escalationChannelActionCenterSchemaV50 = v49.escalationChannelActionCenter.extend({
23772
- recipients: exports_external.array(exports_external.discriminatedUnion("type", [
23773
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.USER_ID), value: exports_external.string(), displayName: exports_external.string() }),
23774
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.GROUP_ID), value: exports_external.string(), displayName: exports_external.string() }),
23775
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_USER_EMAIL), value: exports_external.string() }),
23776
- exports_external.object({
23777
- type: exports_external.literal(RECIPIENT_TYPE3.ASSET_USER_EMAIL),
23778
- folderPath: exports_external.string().optional(),
23779
- assetName: exports_external.string()
23780
- }),
23781
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.STATIC_GROUP_NAME), value: exports_external.string() }),
23782
- exports_external.object({
23783
- type: exports_external.literal(RECIPIENT_TYPE3.ASSET_GROUP_NAME),
23784
- folderPath: exports_external.string().optional(),
23785
- assetName: exports_external.string()
23786
- }),
23787
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_USER_EMAIL), argumentName: exports_external.string() }),
23788
- exports_external.object({ type: exports_external.literal(RECIPIENT_TYPE3.ARGUMENT_GROUP_NAME), argumentName: exports_external.string() })
23789
- ]))
23862
+ recipients: escalationRecipientsV50,
23863
+ argumentProperties: v49.tool.options[1].shape.argumentProperties
23864
+ });
23865
+ escalationChannelActionCenterQuickFormSchemaV50 = escalationChannelActionCenterSchemaV50.omit({ inputSchemaDotnetTypeMapping: true, outputSchemaDotnetTypeMapping: true }).extend({
23866
+ type: exports_external.literal("actionCenterQuickForm"),
23867
+ properties: channelQuickFormPropertiesV50
23790
23868
  });
23791
23869
  escalationStorageSchemaV50 = v49.escalation.extend({
23792
- channels: exports_external.array(exports_external.discriminatedUnion("type", [escalationChannelActionCenterSchemaV50]))
23870
+ channels: exports_external.array(exports_external.discriminatedUnion("type", [
23871
+ escalationChannelActionCenterSchemaV50,
23872
+ escalationChannelActionCenterQuickFormSchemaV50
23873
+ ]))
23793
23874
  });
23794
23875
  baseLowCodeSettingsSchema = v49.lowCodeAgent.shape.settings;
23795
23876
  _v49ProcessToolSchema = v49.tool.options[1];
23796
- standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("standard") });
23797
- advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("advanced") });
23877
+ flowToolStorageSchemaV50 = v49.processOrchestrationTool.extend({
23878
+ type: exports_external.literal("flow")
23879
+ });
23880
+ functionToolStorageSchemaV50 = _v49ProcessToolSchema.extend({
23881
+ type: exports_external.literal("function")
23882
+ });
23883
+ voiceSettingsExtension = {
23884
+ voice: exports_external.object({
23885
+ model: exports_external.string(),
23886
+ maxTokens: exports_external.number(),
23887
+ temperature: exports_external.number(),
23888
+ persona: exports_external.string()
23889
+ }).optional()
23890
+ };
23891
+ standardLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("standard") }).extend(voiceSettingsExtension);
23892
+ advancedLowCodeAgentSettingsV50 = baseLowCodeSettingsSchema.extend({ mode: exports_external.literal("advanced") }).extend(voiceSettingsExtension);
23798
23893
  lowCodeAgentSettingsV50 = exports_external.discriminatedUnion("mode", [
23799
23894
  standardLowCodeAgentSettingsV50,
23800
23895
  advancedLowCodeAgentSettingsV50
23801
23896
  ]);
23897
+ agent365ValuesSchemaV50 = exports_external.object({
23898
+ [Agent365Attributes.Registered]: exports_external.boolean(),
23899
+ [Agent365Attributes.BlueprintId]: exports_external.string(),
23900
+ [Agent365Attributes.AgentInstanceId]: exports_external.string(),
23901
+ [Agent365Attributes.EntraTenantId]: exports_external.guid(),
23902
+ [Agent365Attributes.AgentUserId]: exports_external.string(),
23903
+ [Agent365Attributes.AgentUserEmail]: exports_external.email()
23904
+ }).partial();
23802
23905
  lowCodeAgentSchemaV50 = v49.lowCodeAgent.extend({
23803
23906
  metadata: v49.lowCodeAgent.shape.metadata.extend({
23804
- storageVersion: exports_external.literal(version25)
23907
+ storageVersion: exports_external.literal(version25),
23908
+ variant: exports_external.enum(["caseManager"]).optional()
23805
23909
  }),
23806
23910
  settings: lowCodeAgentSettingsV50,
23807
23911
  id: exports_external.string().optional(),
23808
23912
  name: exports_external.string().optional()
23809
- });
23913
+ }).extend(agent365ValuesSchemaV50.shape);
23810
23914
  codedAgentSchemaV50 = v49.codedAgent.extend({
23811
23915
  metadata: v49.codedAgent.shape.metadata.extend({
23812
23916
  storageVersion: exports_external.literal(version25)
@@ -23836,13 +23940,22 @@ var init_dist2 = __esm(() => {
23836
23940
  });
23837
23941
  toolStorageSchemaV50 = exports_external.discriminatedUnion("type", [
23838
23942
  ...v49.tool.options,
23839
- clientSideToolStorageSchemaV50
23943
+ clientSideToolStorageSchemaV50,
23944
+ flowToolStorageSchemaV50,
23945
+ functionToolStorageSchemaV50
23840
23946
  ]);
23947
+ discoveryModeSchemaV50 = exports_external.discriminatedUnion("type", [
23948
+ exports_external.object({ type: exports_external.literal("cached") }),
23949
+ exports_external.object({ type: exports_external.literal("dynamic"), allowAll: exports_external.boolean() })
23950
+ ]);
23951
+ mcpToolStorageSchemaV50 = v49.mcp.omit({ dynamicTools: true }).extend({
23952
+ toolsConfiguration: exports_external.object({ discoveryMode: discoveryModeSchemaV50 }).default({ discoveryMode: { type: "cached" } })
23953
+ });
23841
23954
  resourceStorageSchemaV50 = exports_external.union([
23842
23955
  toolStorageSchemaV50,
23843
23956
  v49.context,
23844
23957
  escalationStorageSchemaV50,
23845
- v49.mcp,
23958
+ mcpToolStorageSchemaV50,
23846
23959
  v49.a2a
23847
23960
  ]);
23848
23961
  resourcesFolderSchemaV50 = exports_external.object({
@@ -23890,6 +24003,7 @@ var init_dist2 = __esm(() => {
23890
24003
  },
23891
24004
  defaultStorageContents: {
23892
24005
  ...migrationV49.defaultStorageContents,
24006
+ folders: migrationV49.defaultStorageContents.folders,
23893
24007
  files: [
23894
24008
  {
23895
24009
  ...migrationV49.defaultStorageContents.files[0],
@@ -23917,8 +24031,9 @@ var init_dist2 = __esm(() => {
23917
24031
  const evalsFolder8 = prev.folders.find((folder) => folder.name === "evals");
23918
24032
  const featuresFolder = prev.folders.find((folder) => folder.name === "features");
23919
24033
  const resourcesFolder8 = prev.folders.find((folder) => folder.name === "resources");
24034
+ const rootFolders = [evalsFolder8, featuresFolder, resourcesFolder8];
23920
24035
  return {
23921
- folders: [evalsFolder8, featuresFolder, resourcesFolder8],
24036
+ folders: rootFolders,
23922
24037
  files: [
23923
24038
  {
23924
24039
  name: "agent.json",
@@ -35377,7 +35492,7 @@ var init_v42 = __esm(() => {
35377
35492
  init_classic2();
35378
35493
  });
35379
35494
 
35380
- // ../../node_modules/@uipath/tool-agent/dist/chunk-7ZQB234J.js
35495
+ // ../../node_modules/@uipath/tool-agent/dist/chunk-4JNYQN2C.js
35381
35496
  function serializeJson(value) {
35382
35497
  return JSON.stringify(value, (_key, val) => val === undefined || val === null ? undefined : val, 2);
35383
35498
  }
@@ -35404,11 +35519,6 @@ async function writeJsonFile(fileSystem, path, data) {
35404
35519
  const serialized = serializeJson(data);
35405
35520
  await fileSystem.writeFile(path, serialized);
35406
35521
  }
35407
- async function readOptionalJsonFile(fileSystem, path, parser) {
35408
- if (!await fileSystem.exists(path))
35409
- return;
35410
- return parser ? readJsonFile(fileSystem, path, parser) : readJsonFile(fileSystem, path);
35411
- }
35412
35522
  function getSupportedRootFolders(storageMajorVersion) {
35413
35523
  const supported = [];
35414
35524
  if (storageMajorVersion >= 1) {
@@ -35570,11 +35680,13 @@ function stripResourceDesignFields(data) {
35570
35680
  return stripDesignFields(data, RESOURCE_DESIGN_ONLY_FIELDS);
35571
35681
  }
35572
35682
  function buildAgentUnifiedModel(agent, resources, features, options) {
35573
- const id = options?.projectStorageId;
35574
- const name = options?.projectName;
35683
+ if (agent.type === "lowCode") {
35684
+ if (!agent.id && options?.projectStorageId)
35685
+ agent.id = options.projectStorageId;
35686
+ if (options?.projectName)
35687
+ agent.name = options.projectName;
35688
+ }
35575
35689
  return {
35576
- ...id ? { id } : {},
35577
- ...name ? { name } : {},
35578
35690
  ...agent,
35579
35691
  resources: resources.map(stripResourceDesignFields),
35580
35692
  features: features.map(stripResourceDesignFields)
@@ -35695,7 +35807,7 @@ var import_semver2, FileConstants, AgentProjectConstants, CodedProjectConstants,
35695
35807
  };
35696
35808
  }
35697
35809
  }, defaultStorageSchemaTranslator, PackageConstants, PackageDescriptorConstants, SchemaConstants, RESOURCE_DESIGN_ONLY_FIELDS;
35698
- var init_chunk_7ZQB234J = __esm(() => {
35810
+ var init_chunk_4JNYQN2C = __esm(() => {
35699
35811
  init_dist();
35700
35812
  init_dist();
35701
35813
  init_dist2();
@@ -35753,7 +35865,7 @@ var init_chunk_7ZQB234J = __esm(() => {
35753
35865
  RESOURCE_DESIGN_ONLY_FIELDS = ["iconUrl", "originalName", "location"];
35754
35866
  });
35755
35867
 
35756
- // ../../node_modules/@uipath/tool-agent/dist/chunk-RQQ7Q4C6.js
35868
+ // ../../node_modules/@uipath/tool-agent/dist/chunk-UWHPEJIJ.js
35757
35869
  function isAssetRecipientType(type) {
35758
35870
  return ASSET_RECIPIENT_TYPES.has(type);
35759
35871
  }
@@ -35766,13 +35878,26 @@ function defaultMetadata() {
35766
35878
  [BindingsConstants.BindingsMetadataSolutionsSupport]: BindingsConstants.BindingsMetadataTrue
35767
35879
  };
35768
35880
  }
35769
- function createProcessBinding(processName, subType) {
35881
+ function resolveFolderPathBindingValue(raw) {
35882
+ if (!raw || raw === SOLUTION_FOLDER_SENTINEL)
35883
+ return;
35884
+ return raw;
35885
+ }
35886
+ function addFolderPathToValue(value, raw) {
35887
+ const resolved = resolveFolderPathBindingValue(raw);
35888
+ if (resolved === undefined)
35889
+ return;
35890
+ value[BindingsConstants.BindingsValueFolderPathKey] = createBindingValue(resolved, BindingsConstants.BindingsValueFolderPathDisplayName);
35891
+ }
35892
+ function createProcessBinding(processName, subType, rawFolderPath) {
35893
+ const value = {
35894
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(processName, BindingsConstants.BindingsValueProcessNameDisplayName)
35895
+ };
35896
+ addFolderPathToValue(value, rawFolderPath);
35770
35897
  return {
35771
35898
  resource: BindingsConstants.ProcessResource,
35772
35899
  key: processName,
35773
- value: {
35774
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(processName, BindingsConstants.BindingsValueProcessNameDisplayName)
35775
- },
35900
+ value,
35776
35901
  metadata: {
35777
35902
  [BindingsConstants.BindingsMetadataSubTypeKey]: subType,
35778
35903
  ...defaultMetadata()
@@ -35793,33 +35918,51 @@ function createConnectionBinding(connectionId, connectorKey, displayName) {
35793
35918
  }
35794
35919
  };
35795
35920
  }
35796
- function createIndexBinding(indexName) {
35921
+ function createIndexBinding(indexName, rawFolderPath) {
35922
+ const value = {
35923
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(indexName, BindingsConstants.BindingsValueIndexNameDisplayName)
35924
+ };
35925
+ addFolderPathToValue(value, rawFolderPath);
35797
35926
  return {
35798
35927
  resource: BindingsConstants.IndexResource,
35799
35928
  key: indexName,
35800
- value: {
35801
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(indexName, BindingsConstants.BindingsValueIndexNameDisplayName)
35802
- },
35929
+ value,
35803
35930
  metadata: defaultMetadata()
35804
35931
  };
35805
35932
  }
35806
- function createAppBinding(appName) {
35933
+ function createAppBinding(appName, rawFolderPath) {
35934
+ const value = {
35935
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(appName, BindingsConstants.BindingsValueAppNameDisplayName)
35936
+ };
35937
+ addFolderPathToValue(value, rawFolderPath);
35807
35938
  return {
35808
35939
  resource: BindingsConstants.AppResource,
35809
35940
  key: appName,
35810
- value: {
35811
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(appName, BindingsConstants.BindingsValueAppNameDisplayName)
35812
- },
35941
+ value,
35813
35942
  metadata: defaultMetadata()
35814
35943
  };
35815
35944
  }
35816
- function createAssetBinding(assetName) {
35945
+ function createAssetBinding(assetName, rawFolderPath) {
35946
+ const value = {
35947
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(assetName, BindingsConstants.BindingsValueAssetNameDisplayName)
35948
+ };
35949
+ addFolderPathToValue(value, rawFolderPath);
35817
35950
  return {
35818
35951
  resource: BindingsConstants.AssetResource,
35819
35952
  key: assetName,
35820
- value: {
35821
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(assetName, BindingsConstants.BindingsValueAssetNameDisplayName)
35822
- },
35953
+ value,
35954
+ metadata: defaultMetadata()
35955
+ };
35956
+ }
35957
+ function createBucketBinding(bucketName, rawFolderPath) {
35958
+ const value = {
35959
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(bucketName, BindingsConstants.BindingsValueBucketNameDisplayName)
35960
+ };
35961
+ addFolderPathToValue(value, rawFolderPath);
35962
+ return {
35963
+ resource: BindingsConstants.BucketResource,
35964
+ key: bucketName,
35965
+ value,
35823
35966
  metadata: defaultMetadata()
35824
35967
  };
35825
35968
  }
@@ -35842,11 +35985,11 @@ function generateAgentGuardrailBindings(agent) {
35842
35985
  const { action } = guardrail;
35843
35986
  const appName = action.app?.name;
35844
35987
  if (appName) {
35845
- bindings.push(createAppBinding(appName));
35988
+ bindings.push(createAppBinding(appName, action.app?.folderName));
35846
35989
  }
35847
35990
  const recipient = action.recipient;
35848
35991
  if (recipient && isAssetRecipientType(recipient.type) && "assetName" in recipient && recipient.assetName) {
35849
- bindings.push(createAssetBinding(recipient.assetName));
35992
+ bindings.push(createAssetBinding(recipient.assetName, "folderPath" in recipient ? recipient.folderPath : undefined));
35850
35993
  }
35851
35994
  }
35852
35995
  }
@@ -35857,13 +36000,15 @@ function generateAgentBindings(agent) {
35857
36000
  }
35858
36001
  function generateFeatureBindings(feature) {
35859
36002
  if (feature.$featureType === "memorySpace") {
36003
+ const value = {
36004
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(feature.memorySpaceName, BindingsConstants.BindingsValueMemoryNameDisplayName)
36005
+ };
36006
+ addFolderPathToValue(value, feature.folderPath);
35860
36007
  return [
35861
36008
  {
35862
36009
  resource: BindingsConstants.MemorySpaceResource,
35863
36010
  key: feature.memorySpaceName,
35864
- value: {
35865
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(feature.memorySpaceName, BindingsConstants.BindingsValueMemoryNameDisplayName)
35866
- },
36011
+ value,
35867
36012
  metadata: defaultMetadata()
35868
36013
  }
35869
36014
  ];
@@ -35871,7 +36016,7 @@ function generateFeatureBindings(feature) {
35871
36016
  return [];
35872
36017
  }
35873
36018
  function createProcessToolBinding(tool, subType) {
35874
- return [createProcessBinding(tool.properties.processName, subType)];
36019
+ return [createProcessBinding(tool.properties.processName, subType, tool.properties.folderPath)];
35875
36020
  }
35876
36021
  function createIntegrationToolBindings(tool) {
35877
36022
  return [
@@ -35924,12 +36069,18 @@ function resolveToolBindingsFromRegistry(tool, registry3) {
35924
36069
  return registry3.api?.(tool);
35925
36070
  case "processOrchestration":
35926
36071
  return registry3.processOrchestration?.(tool);
36072
+ case "flow":
36073
+ return registry3.flow?.(tool);
36074
+ case "function":
36075
+ return registry3.function?.(tool);
35927
36076
  case "integration":
35928
36077
  return registry3.integration?.(tool);
35929
36078
  case "ixp":
35930
36079
  return registry3.ixp?.(tool);
35931
36080
  case "internal":
35932
36081
  return;
36082
+ case "clientSide":
36083
+ return registry3.clientSide?.(tool);
35933
36084
  default:
35934
36085
  return unhandledBindingsType(tool);
35935
36086
  }
@@ -35939,7 +36090,7 @@ function generateToolBindings(tool, registry3 = DEFAULT_TOOL_BINDING_HANDLER_REG
35939
36090
  if (tool.guardrail?.policies) {
35940
36091
  for (const policy of tool.guardrail.policies) {
35941
36092
  if (policy.action?.$actionType === "escalate" && policy.action.app?.name) {
35942
- bindings.push(createAppBinding(policy.action.app.name));
36093
+ bindings.push(createAppBinding(policy.action.app.name, policy.action.app.folderName));
35943
36094
  }
35944
36095
  }
35945
36096
  }
@@ -35949,48 +36100,46 @@ function generateDataFabricEntitySetBindings(context) {
35949
36100
  if (context.entitySet.length === 0) {
35950
36101
  return [];
35951
36102
  }
35952
- return context.entitySet.map((entity) => ({
35953
- resource: BindingsConstants.DataFabricEntityResource,
35954
- key: entity.referenceKey ?? entity.id,
35955
- value: {
35956
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(entity.name, BindingsConstants.BindingsValueDataFabricEntityNameDisplayName),
35957
- [BindingsConstants.BindingsValueFolderPathKey]: createBindingValue(entity.folderId, BindingsConstants.BindingsValueFolderPathDisplayName)
35958
- },
35959
- metadata: {
35960
- ...defaultMetadata(),
35961
- scope: "folder"
35962
- }
35963
- }));
36103
+ return context.entitySet.map((entity) => {
36104
+ const value = {
36105
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(entity.name, BindingsConstants.BindingsValueDataFabricEntityNameDisplayName)
36106
+ };
36107
+ addFolderPathToValue(value, entity.folderId);
36108
+ return {
36109
+ resource: BindingsConstants.DataFabricEntityResource,
36110
+ key: entity.referenceKey ?? entity.id,
36111
+ value,
36112
+ metadata: {
36113
+ ...defaultMetadata(),
36114
+ scope: "folder"
36115
+ }
36116
+ };
36117
+ });
35964
36118
  }
35965
36119
  function generateContextBindings(context) {
35966
36120
  if (context.contextType === "datafabricentityset") {
35967
36121
  return generateDataFabricEntitySetBindings(context);
35968
36122
  }
35969
- return [createIndexBinding(context.indexName)];
36123
+ return [createIndexBinding(context.indexName, context.folderPath)];
35970
36124
  }
35971
36125
  function generateEscalationBindings(escalation) {
35972
36126
  const bindings = [];
35973
36127
  if (escalation.escalationType === BindingsConstants.VsEscalationType) {
35974
36128
  const bucketName = escalation.vsEscalationProperties?.storageBucketName;
35975
36129
  if (bucketName) {
35976
- bindings.push({
35977
- resource: BindingsConstants.BucketResource,
35978
- key: bucketName,
35979
- value: {
35980
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(bucketName, BindingsConstants.BindingsValueBucketNameDisplayName)
35981
- },
35982
- metadata: defaultMetadata()
35983
- });
36130
+ bindings.push(createBucketBinding(bucketName, escalation.vsEscalationProperties?.storageBucketFolderPath));
35984
36131
  }
35985
36132
  } else {
35986
36133
  for (const channel of escalation.channels ?? []) {
35987
- const appName = channel.properties?.appName;
35988
- if (appName) {
35989
- bindings.push(createAppBinding(appName));
36134
+ if (channel.type === "actionCenter") {
36135
+ const appName = channel.properties?.appName;
36136
+ if (appName) {
36137
+ bindings.push(createAppBinding(appName, channel.properties?.folderName));
36138
+ }
35990
36139
  }
35991
36140
  for (const recipient of channel.recipients ?? []) {
35992
36141
  if (isAssetRecipientType(recipient.type) && "assetName" in recipient && recipient.assetName) {
35993
- bindings.push(createAssetBinding(recipient.assetName));
36142
+ bindings.push(createAssetBinding(recipient.assetName, "folderPath" in recipient ? recipient.folderPath : undefined));
35994
36143
  }
35995
36144
  }
35996
36145
  }
@@ -35998,13 +36147,29 @@ function generateEscalationBindings(escalation) {
35998
36147
  return bindings;
35999
36148
  }
36000
36149
  function generateMcpBindings(mcp) {
36150
+ const value = {
36151
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(mcp.slug, BindingsConstants.BindingsValueSlugDisplayName)
36152
+ };
36153
+ addFolderPathToValue(value, mcp.folderPath);
36001
36154
  return [
36002
36155
  {
36003
36156
  resource: BindingsConstants.McpResource,
36004
36157
  key: mcp.slug,
36005
- value: {
36006
- [BindingsConstants.BindingsValueNameKey]: createBindingValue(mcp.slug, BindingsConstants.BindingsValueSlugDisplayName)
36007
- },
36158
+ value,
36159
+ metadata: defaultMetadata()
36160
+ }
36161
+ ];
36162
+ }
36163
+ function generateA2aBindings(a2a) {
36164
+ const value = {
36165
+ [BindingsConstants.BindingsValueNameKey]: createBindingValue(a2a.slug, BindingsConstants.BindingsValueSlugDisplayName)
36166
+ };
36167
+ addFolderPathToValue(value, a2a.folderPath);
36168
+ return [
36169
+ {
36170
+ resource: BindingsConstants.RemoteA2aAgentResource,
36171
+ key: a2a.slug,
36172
+ value,
36008
36173
  metadata: defaultMetadata()
36009
36174
  }
36010
36175
  ];
@@ -36020,7 +36185,7 @@ function resolveResourceBindingsFromRegistry(resource, registry3) {
36020
36185
  case "mcp":
36021
36186
  return registry3.mcp?.(resource);
36022
36187
  case "a2a":
36023
- return;
36188
+ return registry3.a2a?.(resource);
36024
36189
  default:
36025
36190
  return unhandledBindingsType(resource);
36026
36191
  }
@@ -36051,8 +36216,8 @@ function generateBindings(agent, resources, features) {
36051
36216
  resources: uniqueBindings
36052
36217
  };
36053
36218
  }
36054
- var BindingsConstants, ASSET_RECIPIENT_TYPES, DEFAULT_TOOL_BINDING_HANDLER_REGISTRY, DEFAULT_RESOURCE_BINDING_HANDLER_REGISTRY;
36055
- var init_chunk_RQQ7Q4C6 = __esm(() => {
36219
+ var BindingsConstants, ASSET_RECIPIENT_TYPES, SOLUTION_FOLDER_SENTINEL = "solution_folder", DEFAULT_TOOL_BINDING_HANDLER_REGISTRY, DEFAULT_RESOURCE_BINDING_HANDLER_REGISTRY;
36220
+ var init_chunk_UWHPEJIJ = __esm(() => {
36056
36221
  BindingsConstants = {
36057
36222
  ProcessResource: "process",
36058
36223
  ConnectionResource: "connection",
@@ -36064,6 +36229,7 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
36064
36229
  BucketResource: "bucket",
36065
36230
  IxpResource: "ixp",
36066
36231
  DataFabricEntityResource: "entity",
36232
+ RemoteA2aAgentResource: "remoteA2aAgent",
36067
36233
  VsEscalationType: 1,
36068
36234
  BindingsModelVersion: "2.0",
36069
36235
  BindingsValueNameKey: "name",
@@ -36082,7 +36248,7 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
36082
36248
  BindingsValueIxpProjectVersionDisplayName: "IXP project version",
36083
36249
  BindingsValueDataFabricEntityNameDisplayName: "Entity name",
36084
36250
  BindingsValueFolderPathKey: "folderPath",
36085
- BindingsValueFolderPathDisplayName: "folderPath",
36251
+ BindingsValueFolderPathDisplayName: "Folder path",
36086
36252
  BindingsMetadataSubTypeKey: "subType",
36087
36253
  BindingsMetadataConnectorKey: "connector",
36088
36254
  BindingsMetadataUseConnectionServiceKey: "useConnectionService",
@@ -36092,6 +36258,8 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
36092
36258
  BindingsMetadataProcessSubType: "process",
36093
36259
  BindingsMetadataApiWorkflowSubType: "api",
36094
36260
  BindingsMetadataAgenticProcessSubType: "processOrchestration",
36261
+ BindingsMetadataFlowSubType: "flow",
36262
+ BindingsMetadataFunctionSubType: "function",
36095
36263
  BindingsMetadataVersion: "2.2",
36096
36264
  BindingsMetadataTrue: "true"
36097
36265
  };
@@ -36101,6 +36269,8 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
36101
36269
  agent: (tool) => createProcessToolBinding(tool, BindingsConstants.BindingsMetadataAgentSubType),
36102
36270
  api: (tool) => createProcessToolBinding(tool, BindingsConstants.BindingsMetadataApiWorkflowSubType),
36103
36271
  processOrchestration: (tool) => createProcessToolBinding(tool, BindingsConstants.BindingsMetadataAgenticProcessSubType),
36272
+ flow: (tool) => createProcessToolBinding(tool, BindingsConstants.BindingsMetadataFlowSubType),
36273
+ function: (tool) => createProcessToolBinding(tool, BindingsConstants.BindingsMetadataFunctionSubType),
36104
36274
  integration: createIntegrationToolBindings,
36105
36275
  ixp: createIxpToolBindings
36106
36276
  };
@@ -36108,27 +36278,61 @@ var init_chunk_RQQ7Q4C6 = __esm(() => {
36108
36278
  tool: (resource) => generateToolBindings(resource),
36109
36279
  context: (resource) => generateContextBindings(resource),
36110
36280
  escalation: (resource) => generateEscalationBindings(resource),
36111
- mcp: (resource) => generateMcpBindings(resource)
36281
+ mcp: (resource) => generateMcpBindings(resource),
36282
+ a2a: (resource) => generateA2aBindings(resource)
36112
36283
  };
36113
36284
  });
36114
36285
 
36115
- // ../../node_modules/@uipath/tool-agent/dist/chunk-LDMMPF7X.js
36286
+ // ../../node_modules/@uipath/tool-agent/dist/chunk-3HY5RPCP.js
36116
36287
  function compilePolicy(policy) {
36117
36288
  return {
36118
36289
  contentDirectory: policy.contentDirectory,
36290
+ fileExtensionsIncluded: new Set(policy.fileExtensionsIncluded.map((e) => e.toLowerCase())),
36291
+ filesIncluded: new Set(policy.filesIncluded),
36292
+ filesExcluded: new Set(policy.filesExcluded),
36119
36293
  ignoredFiles: new Set(policy.ignoredFiles),
36120
36294
  ignoredDirectories: new Set(policy.ignoredDirectories),
36295
+ directoriesExcluded: new Set(policy.directoriesExcluded),
36121
36296
  fileNameMappings: policy.fileNameMappings
36122
36297
  };
36123
36298
  }
36124
- async function copyDirectoryRecursively(fileSystem, sourceDir, targetDir, policy) {
36299
+ async function isVenvDirectory(fileSystem, dirPath) {
36300
+ const [posix, windows] = await Promise.all([
36301
+ fileSystem.exists(Path.join(dirPath, "bin", "activate")),
36302
+ fileSystem.exists(Path.join(dirPath, "Scripts", "activate"))
36303
+ ]);
36304
+ return posix || windows;
36305
+ }
36306
+ function fileExtension(name) {
36307
+ const dot = name.lastIndexOf(".");
36308
+ return dot <= 0 ? "" : name.slice(dot).toLowerCase();
36309
+ }
36310
+ function shouldIncludeFile(name, relPath, policy) {
36311
+ if (name.startsWith("."))
36312
+ return false;
36313
+ const included = policy.fileExtensionsIncluded.has(fileExtension(name)) || policy.filesIncluded.has(name) && relPath === name || policy.filesIncluded.has(relPath);
36314
+ const excluded = policy.ignoredFiles.has(name) || policy.filesExcluded.has(name) && relPath === name || policy.filesExcluded.has(relPath);
36315
+ return included && !excluded;
36316
+ }
36317
+ async function shouldSkipDirectory(fileSystem, name, relPath, sourcePath, policy) {
36318
+ if (name.startsWith("."))
36319
+ return true;
36320
+ if (policy.ignoredDirectories.has(name))
36321
+ return true;
36322
+ if (policy.directoriesExcluded.has(name) && relPath === name || policy.directoriesExcluded.has(relPath)) {
36323
+ return true;
36324
+ }
36325
+ return isVenvDirectory(fileSystem, sourcePath);
36326
+ }
36327
+ async function copyDirectoryRecursively(fileSystem, sourceDir, targetDir, relDir, policy) {
36125
36328
  await fileSystem.mkdir(targetDir);
36126
36329
  const entries = await fileSystem.readdir(sourceDir);
36127
36330
  for (const entry of entries) {
36128
36331
  const sourcePath = Path.join(sourceDir, entry);
36332
+ const relPath = relDir ? `${relDir}/${entry}` : entry;
36129
36333
  const stat = await fileSystem.stat(sourcePath);
36130
36334
  if (stat?.isFile()) {
36131
- if (policy.ignoredFiles.has(entry))
36335
+ if (!shouldIncludeFile(entry, relPath, policy))
36132
36336
  continue;
36133
36337
  const targetFileName = policy.fileNameMappings[entry] ?? entry;
36134
36338
  const content = await fileSystem.readFile(sourcePath);
@@ -36136,15 +36340,32 @@ async function copyDirectoryRecursively(fileSystem, sourceDir, targetDir, policy
36136
36340
  await fileSystem.writeFile(Path.join(targetDir, targetFileName), content);
36137
36341
  }
36138
36342
  } else if (stat?.isDirectory()) {
36139
- if (policy.ignoredDirectories.has(entry))
36343
+ if (await shouldSkipDirectory(fileSystem, entry, relPath, sourcePath, policy))
36140
36344
  continue;
36141
- await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(targetDir, entry), policy);
36345
+ await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(targetDir, entry), relPath, policy);
36142
36346
  }
36143
36347
  }
36144
36348
  }
36145
36349
  async function copyCodeFiles(fileSystem, sourcePath, outputPath, policy = DEFAULT_CODE_COPY_POLICY) {
36146
36350
  const compiledPolicy = compilePolicy(policy);
36147
- await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(outputPath, compiledPolicy.contentDirectory), compiledPolicy);
36351
+ await copyDirectoryRecursively(fileSystem, sourcePath, Path.join(outputPath, compiledPolicy.contentDirectory), "", compiledPolicy);
36352
+ }
36353
+ function buildCopyPolicy(packOptions) {
36354
+ if (!packOptions)
36355
+ return DEFAULT_CODE_COPY_POLICY;
36356
+ return {
36357
+ ...DEFAULT_CODE_COPY_POLICY,
36358
+ fileExtensionsIncluded: [
36359
+ ...DEFAULT_CODE_COPY_POLICY.fileExtensionsIncluded,
36360
+ ...packOptions.fileExtensionsIncluded ?? []
36361
+ ],
36362
+ filesIncluded: [...DEFAULT_CODE_COPY_POLICY.filesIncluded, ...packOptions.filesIncluded ?? []],
36363
+ filesExcluded: [...DEFAULT_CODE_COPY_POLICY.filesExcluded, ...packOptions.filesExcluded ?? []],
36364
+ directoriesExcluded: [
36365
+ ...DEFAULT_CODE_COPY_POLICY.directoriesExcluded,
36366
+ ...packOptions.directoriesExcluded ?? []
36367
+ ]
36368
+ };
36148
36369
  }
36149
36370
  async function detectProjectKind(fileSystem, projectPath) {
36150
36371
  const pythonDependenciesPath = Path.join(projectPath, CodedProjectConstants.PythonDependenciesFileName);
@@ -36182,26 +36403,23 @@ function mapToolErrorToResult(error79) {
36182
36403
  const message = error79 instanceof Error ? error79.message : String(error79);
36183
36404
  return ToolResult.error(ToolErrorCodes.InternalError, message);
36184
36405
  }
36185
- var entryPointSchema, entryPointsFileSchema, codedConfigSchema, DEFAULT_CODE_COPY_POLICY, PackageBuilder = class {
36406
+ var entryPointSchema, entryPointsFileSchema, packOptionsSchema, codedConfigSchema, DEFAULT_CODE_COPY_POLICY, PackageBuilder = class {
36186
36407
  constructor(fileSystem, logger) {
36187
36408
  this.fileSystem = fileSystem;
36188
36409
  this.logger = logger;
36189
36410
  }
36190
- async buildAgentsPackage(projectPath, outputPath, projectStorageId) {
36411
+ async buildAgentsPackage(projectPath, outputPath, options = {}) {
36191
36412
  this.logger.progress("Reading agent data...");
36192
- const [agentData, projectConfig] = await Promise.all([
36193
- readAgentsProjectData(this.fileSystem, this.logger, projectPath),
36194
- readOptionalJsonFile(this.fileSystem, Path.join(projectPath, FileConstants.ProjectConfigFileName))
36195
- ]);
36413
+ const agentData = await readAgentsProjectData(this.fileSystem, this.logger, projectPath);
36196
36414
  this.logger.progress("Generating package artifacts...");
36197
36415
  const out = (file3) => Path.join(outputPath, file3);
36198
- const agentOutput = buildAgentUnifiedModel(agentData.agent, agentData.resources, agentData.features, { projectStorageId, projectName: projectConfig?.name });
36416
+ const agentUnifiedModel = buildAgentUnifiedModel(agentData.agent, agentData.resources, agentData.features, { projectStorageId: options.projectStorageId, projectName: options.projectName });
36199
36417
  await Promise.all([
36200
- writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.AgentFilePath), agentOutput),
36418
+ writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.AgentFilePath), agentUnifiedModel),
36201
36419
  agentData.flowLayout ? writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.FlowLayoutFilePath), agentData.flowLayout) : Promise.resolve(),
36202
36420
  writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.BindingsFilePath), generateBindings(agentData.agent, agentData.resources, agentData.features)),
36203
36421
  writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.EntryPointsFilePath), createEntryPointsAgent(agentData.agent)),
36204
- writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.OperateFilePath), createOperateAgent(agentData.agent, agentData.resources, projectStorageId)),
36422
+ writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.OperateFilePath), createOperateAgent(agentData.agent, agentData.resources, options.projectStorageId)),
36205
36423
  writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.PackageDescriptorFilePath), createPackageDescriptorAgent(Boolean(agentData.flowLayout)))
36206
36424
  ]);
36207
36425
  }
@@ -36215,16 +36433,17 @@ var entryPointSchema, entryPointsFileSchema, codedConfigSchema, DEFAULT_CODE_COP
36215
36433
  }
36216
36434
  this.logger.progress("Generating package artifacts...");
36217
36435
  const out = (file3) => Path.join(outputPath, file3);
36436
+ const copyPolicy = buildCopyPolicy(codedConfig.packOptions);
36218
36437
  await Promise.all([
36219
- copyCodeFiles(this.fileSystem, projectPath, outputPath),
36438
+ copyCodeFiles(this.fileSystem, projectPath, outputPath, copyPolicy),
36220
36439
  writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.OperateFilePath), createOperatePython(projectStorageId, codedConfig, firstEntryPoint)),
36221
36440
  writeJsonFile(this.fileSystem, out(PackageDescriptorConstants.PackageDescriptorFilePath), createPackageDescriptorPython())
36222
36441
  ]);
36223
36442
  }
36224
36443
  }, AgentToolError, AgentBuildError, AgentPackError, AgentTool;
36225
- var init_chunk_LDMMPF7X = __esm(() => {
36226
- init_chunk_7ZQB234J();
36227
- init_chunk_RQQ7Q4C6();
36444
+ var init_chunk_3HY5RPCP = __esm(() => {
36445
+ init_chunk_4JNYQN2C();
36446
+ init_chunk_UWHPEJIJ();
36228
36447
  init_dist();
36229
36448
  init_dist();
36230
36449
  init_v42();
@@ -36241,18 +36460,29 @@ var init_chunk_LDMMPF7X = __esm(() => {
36241
36460
  entryPointsFileSchema = exports_external2.object({
36242
36461
  entryPoints: exports_external2.array(entryPointSchema)
36243
36462
  });
36463
+ packOptionsSchema = exports_external2.object({
36464
+ fileExtensionsIncluded: exports_external2.array(exports_external2.string()).optional(),
36465
+ filesIncluded: exports_external2.array(exports_external2.string()).optional(),
36466
+ filesExcluded: exports_external2.array(exports_external2.string()).optional(),
36467
+ directoriesExcluded: exports_external2.array(exports_external2.string()).optional()
36468
+ }).loose();
36244
36469
  codedConfigSchema = exports_external2.object({
36245
36470
  runtimeOptions: exports_external2.object({
36246
36471
  isConversational: exports_external2.boolean().optional()
36247
- }).optional()
36472
+ }).optional(),
36473
+ packOptions: packOptionsSchema.optional()
36248
36474
  }).loose();
36249
36475
  DEFAULT_CODE_COPY_POLICY = {
36250
36476
  contentDirectory: PackageConstants.ContentDirectory,
36477
+ fileExtensionsIncluded: [".py", ".mermaid", ".json", ".yaml", ".yml", ".md"],
36478
+ filesIncluded: ["pyproject.toml", "uv.lock"],
36479
+ filesExcluded: [],
36251
36480
  ignoredFiles: [FileConstants.AgentFileName, FileConstants.ProjectConfigFileName],
36252
36481
  ignoredDirectories: [
36253
36482
  CodedProjectConstants.EvalsDirectoryName,
36254
36483
  CodedProjectConstants.LegacyEvalsDirectoryName
36255
36484
  ],
36485
+ directoriesExcluded: [],
36256
36486
  fileNameMappings: {
36257
36487
  [PackageConstants.BindingsFileName]: PackageConstants.BindingsV2FileName
36258
36488
  }
@@ -36294,7 +36524,11 @@ var init_chunk_LDMMPF7X = __esm(() => {
36294
36524
  if (projectKind === "coded") {
36295
36525
  await this._packageBuilder.buildCodedPackage(options.projectPath, localBuildFolder, options.projectStorageId);
36296
36526
  } else {
36297
- await this._packageBuilder.buildAgentsPackage(options.projectPath, localBuildFolder, options.projectStorageId);
36527
+ const uiProject = await this.getUiProjectAsync(options.projectPath);
36528
+ await this._packageBuilder.buildAgentsPackage(options.projectPath, localBuildFolder, {
36529
+ projectStorageId: options.projectStorageId,
36530
+ projectName: uiProject?.Name
36531
+ });
36298
36532
  }
36299
36533
  this.logger.info(`buildAsync finished: outputPath=${localBuildFolder}`);
36300
36534
  this.logger.progress("Build completed successfully");
@@ -36345,21 +36579,21 @@ var init_chunk_LDMMPF7X = __esm(() => {
36345
36579
  };
36346
36580
  });
36347
36581
 
36348
- // ../../node_modules/@uipath/tool-agent/dist/agent-tool-DLZZJOCT.js
36349
- var exports_agent_tool_DLZZJOCT = {};
36350
- __export(exports_agent_tool_DLZZJOCT, {
36582
+ // ../../node_modules/@uipath/tool-agent/dist/agent-tool-VS6C4IZC.js
36583
+ var exports_agent_tool_VS6C4IZC = {};
36584
+ __export(exports_agent_tool_VS6C4IZC, {
36351
36585
  AgentTool: () => AgentTool
36352
36586
  });
36353
- var init_agent_tool_DLZZJOCT = __esm(() => {
36354
- init_chunk_LDMMPF7X();
36355
- init_chunk_7ZQB234J();
36356
- init_chunk_RQQ7Q4C6();
36587
+ var init_agent_tool_VS6C4IZC = __esm(() => {
36588
+ init_chunk_3HY5RPCP();
36589
+ init_chunk_4JNYQN2C();
36590
+ init_chunk_UWHPEJIJ();
36357
36591
  });
36358
36592
 
36359
36593
  // ../../node_modules/@uipath/tool-agent/dist/index.js
36360
- init_chunk_LDMMPF7X();
36361
- init_chunk_7ZQB234J();
36362
- init_chunk_RQQ7Q4C6();
36594
+ init_chunk_3HY5RPCP();
36595
+ init_chunk_4JNYQN2C();
36596
+ init_chunk_UWHPEJIJ();
36363
36597
  init_dist();
36364
36598
  init_dist();
36365
36599
  var AgentToolFactory = class {
@@ -36367,7 +36601,7 @@ var AgentToolFactory = class {
36367
36601
  this.supportedTypes = [ProjectTypes.Agent];
36368
36602
  }
36369
36603
  async createAsync(logger, fileSystem) {
36370
- const { AgentTool: AgentTool2 } = await Promise.resolve().then(() => (init_agent_tool_DLZZJOCT(), exports_agent_tool_DLZZJOCT));
36604
+ const { AgentTool: AgentTool2 } = await Promise.resolve().then(() => (init_agent_tool_VS6C4IZC(), exports_agent_tool_VS6C4IZC));
36371
36605
  return new AgentTool2(fileSystem, logger);
36372
36606
  }
36373
36607
  };