@metad/contracts 3.7.0 → 3.8.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.
- package/index.cjs.js +85 -70
- package/index.esm.js +71 -69
- package/package.json +6 -2
- package/src/agent/graph.d.ts +68 -52
- package/src/agent/index.d.ts +1 -0
- package/src/agent/interrupt.d.ts +51 -0
- package/src/ai/ai-model.model.d.ts +1 -1
- package/src/ai/chat-message.model.d.ts +5 -135
- package/src/ai/chat.model.d.ts +3 -7
- package/src/ai/copilot-model.model.d.ts +4 -0
- package/src/ai/copilot-user.model.d.ts +7 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/middleware.model.d.ts +5 -0
- package/src/ai/sandbox.d.ts +6 -0
- package/src/ai/types.d.ts +6 -0
- package/src/ai/xpert-agent.model.d.ts +32 -14
- package/src/ai/xpert-workflow.model.d.ts +48 -4
- package/src/ai/xpert.model.d.ts +51 -100
- package/src/ai/xpert.utils.d.ts +7 -0
- package/src/integration/lark.d.ts +3 -9
- package/src/integration.model.d.ts +0 -5
- package/src/organization-contact.model.d.ts +0 -1
- package/src/organization.model.d.ts +0 -1
- package/src/plugin.d.ts +8 -0
- package/src/user.model.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ShortUniqueId = require('short-unique-id');
|
|
4
|
+
var chatkitTypes = require('@xpert-ai/chatkit-types');
|
|
4
5
|
|
|
5
6
|
function _array_like_to_array$5(arr, len) {
|
|
6
7
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -1473,32 +1474,6 @@ exports.ChatGatewayEvent = void 0;
|
|
|
1473
1474
|
ChatGatewayEvent["Agent"] = "agent";
|
|
1474
1475
|
})(exports.ChatGatewayEvent || (exports.ChatGatewayEvent = {}));
|
|
1475
1476
|
|
|
1476
|
-
exports.ChatMessageStepCategory = void 0;
|
|
1477
|
-
(function(ChatMessageStepCategory) {
|
|
1478
|
-
/**
|
|
1479
|
-
* List of items: urls, files, etc.
|
|
1480
|
-
*/ ChatMessageStepCategory["List"] = "list";
|
|
1481
|
-
/**
|
|
1482
|
-
* Websearch results
|
|
1483
|
-
*/ ChatMessageStepCategory["WebSearch"] = "web_search";
|
|
1484
|
-
/**
|
|
1485
|
-
* Files list
|
|
1486
|
-
*/ ChatMessageStepCategory["Files"] = "files";
|
|
1487
|
-
/**
|
|
1488
|
-
* View a file
|
|
1489
|
-
*/ ChatMessageStepCategory["File"] = "file";
|
|
1490
|
-
/**
|
|
1491
|
-
* Program Execution
|
|
1492
|
-
*/ ChatMessageStepCategory["Program"] = "program";
|
|
1493
|
-
/**
|
|
1494
|
-
* Iframe
|
|
1495
|
-
*/ ChatMessageStepCategory["Iframe"] = "iframe";
|
|
1496
|
-
ChatMessageStepCategory["Memory"] = "memory";
|
|
1497
|
-
ChatMessageStepCategory["Tasks"] = "tasks";
|
|
1498
|
-
/**
|
|
1499
|
-
* Knowledges (knowledge base retriever results)
|
|
1500
|
-
*/ ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1501
|
-
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
1502
1477
|
// Type guards
|
|
1503
1478
|
/**
|
|
1504
1479
|
* @deprecated use content in message
|
|
@@ -1515,6 +1490,8 @@ exports.ChatMessageFeedbackRatingEnum = void 0;
|
|
|
1515
1490
|
var MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
|
|
1516
1491
|
var MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
|
|
1517
1492
|
|
|
1493
|
+
var USAGE_HOUR_FORMAT = "yyyy-MM-dd HH";
|
|
1494
|
+
|
|
1518
1495
|
exports.AiProviderRole = void 0;
|
|
1519
1496
|
(function(AiProviderRole) {
|
|
1520
1497
|
AiProviderRole["Primary"] = "primary";
|
|
@@ -1582,6 +1559,8 @@ var KDocumentWebTypeOptions = [
|
|
|
1582
1559
|
|
|
1583
1560
|
exports.WorkflowNodeTypeEnum = void 0;
|
|
1584
1561
|
(function(WorkflowNodeTypeEnum) {
|
|
1562
|
+
WorkflowNodeTypeEnum["START"] = "start";
|
|
1563
|
+
WorkflowNodeTypeEnum["END"] = "end";
|
|
1585
1564
|
/**
|
|
1586
1565
|
* Trigger
|
|
1587
1566
|
*/ WorkflowNodeTypeEnum["TRIGGER"] = "trigger";
|
|
@@ -1593,7 +1572,10 @@ exports.WorkflowNodeTypeEnum = void 0;
|
|
|
1593
1572
|
*/ WorkflowNodeTypeEnum["IF_ELSE"] = "if-else";
|
|
1594
1573
|
WorkflowNodeTypeEnum["LIST_OPERATOR"] = "list-operator";
|
|
1595
1574
|
WorkflowNodeTypeEnum["VARIABLE_AGGREGATOR"] = "variable-aggregator";
|
|
1596
|
-
|
|
1575
|
+
/**
|
|
1576
|
+
* @deprecated use ITERATOR instead
|
|
1577
|
+
*/ WorkflowNodeTypeEnum["ITERATING"] = "iterating";
|
|
1578
|
+
WorkflowNodeTypeEnum["ITERATOR"] = "iterator";
|
|
1597
1579
|
WorkflowNodeTypeEnum["HTTP"] = "http";
|
|
1598
1580
|
WorkflowNodeTypeEnum["SUBFLOW"] = "subflow";
|
|
1599
1581
|
WorkflowNodeTypeEnum["TOOL"] = "tool";
|
|
@@ -1650,9 +1632,15 @@ exports.VariableOperationEnum = void 0;
|
|
|
1650
1632
|
VariableOperationEnum["CLEAR"] = "clear";
|
|
1651
1633
|
})(exports.VariableOperationEnum || (exports.VariableOperationEnum = {}));
|
|
1652
1634
|
/**
|
|
1653
|
-
*
|
|
1635
|
+
* @deprecated use `IteratorItemParameterName` instead
|
|
1654
1636
|
*/ var IteratingItemParameterName = "$item";
|
|
1655
|
-
|
|
1637
|
+
/**
|
|
1638
|
+
* @deprecated use `IteratorIndexParameterName` instead
|
|
1639
|
+
*/ var IteratingIndexParameterName = "$index";
|
|
1640
|
+
/**
|
|
1641
|
+
* The parameter name that represents the entire current element in array
|
|
1642
|
+
*/ var IteratorItemParameterName = "$item";
|
|
1643
|
+
var IteratorIndexParameterName = "$index";
|
|
1656
1644
|
exports.WorkflowLogicalOperator = void 0;
|
|
1657
1645
|
(function(WorkflowLogicalOperator) {
|
|
1658
1646
|
WorkflowLogicalOperator["AND"] = "and";
|
|
@@ -1692,17 +1680,25 @@ function genJSONStringifyKey() {
|
|
|
1692
1680
|
function genJSONParseKey() {
|
|
1693
1681
|
return letterStartSUID("JSONParse_");
|
|
1694
1682
|
}
|
|
1683
|
+
function genXpertIteratorKey() {
|
|
1684
|
+
return letterStartSUID("Iterator_");
|
|
1685
|
+
}
|
|
1686
|
+
function genXpertStartKey(key) {
|
|
1687
|
+
return key + "_start";
|
|
1688
|
+
}
|
|
1695
1689
|
function isAgentKey(key) {
|
|
1696
1690
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("agent_");
|
|
1697
1691
|
}
|
|
1698
1692
|
function isRouterKey(key) {
|
|
1699
1693
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("router_");
|
|
1700
1694
|
}
|
|
1701
|
-
|
|
1695
|
+
/**
|
|
1696
|
+
* @deprecated use `isIteratorKey` instead
|
|
1697
|
+
*/ function isIteratingKey(key) {
|
|
1702
1698
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("iterating_");
|
|
1703
1699
|
}
|
|
1704
|
-
function
|
|
1705
|
-
return
|
|
1700
|
+
function isIteratorKey(key) {
|
|
1701
|
+
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("iterator_");
|
|
1706
1702
|
}
|
|
1707
1703
|
function workflowNodeIdentifier(node) {
|
|
1708
1704
|
return node.title || node.key;
|
|
@@ -1746,33 +1742,12 @@ exports.XpertParameterTypeEnum = void 0;
|
|
|
1746
1742
|
XpertParameterTypeEnum["BOOLEAN"] = "boolean";
|
|
1747
1743
|
XpertParameterTypeEnum["SECRET"] = "secret";
|
|
1748
1744
|
})(exports.XpertParameterTypeEnum || (exports.XpertParameterTypeEnum = {}));
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
}
|
|
1755
|
-
exports.ChatMessageEventTypeEnum = void 0;
|
|
1756
|
-
(function(ChatMessageEventTypeEnum) {
|
|
1757
|
-
ChatMessageEventTypeEnum["ON_CONVERSATION_START"] = "on_conversation_start";
|
|
1758
|
-
ChatMessageEventTypeEnum["ON_CONVERSATION_END"] = "on_conversation_end";
|
|
1759
|
-
ChatMessageEventTypeEnum["ON_MESSAGE_START"] = "on_message_start";
|
|
1760
|
-
ChatMessageEventTypeEnum["ON_MESSAGE_END"] = "on_message_end";
|
|
1761
|
-
ChatMessageEventTypeEnum["ON_TOOL_START"] = "on_tool_start";
|
|
1762
|
-
ChatMessageEventTypeEnum["ON_TOOL_END"] = "on_tool_end";
|
|
1763
|
-
ChatMessageEventTypeEnum["ON_TOOL_ERROR"] = "on_tool_error";
|
|
1764
|
-
/**
|
|
1765
|
-
* Step message in tool call
|
|
1766
|
-
*/ ChatMessageEventTypeEnum["ON_TOOL_MESSAGE"] = "on_tool_message";
|
|
1767
|
-
ChatMessageEventTypeEnum["ON_AGENT_START"] = "on_agent_start";
|
|
1768
|
-
ChatMessageEventTypeEnum["ON_AGENT_END"] = "on_agent_end";
|
|
1769
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_START"] = "on_retriever_start";
|
|
1770
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_END"] = "on_retriever_end";
|
|
1771
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_ERROR"] = "on_retriever_error";
|
|
1772
|
-
ChatMessageEventTypeEnum["ON_INTERRUPT"] = "on_interrupt";
|
|
1773
|
-
ChatMessageEventTypeEnum["ON_ERROR"] = "on_error";
|
|
1774
|
-
ChatMessageEventTypeEnum["ON_CHAT_EVENT"] = "on_chat_event";
|
|
1775
|
-
})(exports.ChatMessageEventTypeEnum || (exports.ChatMessageEventTypeEnum = {}));
|
|
1745
|
+
// Helper guards
|
|
1746
|
+
function isXpertNodeType(type) {
|
|
1747
|
+
return function(node) {
|
|
1748
|
+
return node.type === type;
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1776
1751
|
|
|
1777
1752
|
function agentLabel(agent) {
|
|
1778
1753
|
return agent.title || agent.name || agent.key;
|
|
@@ -1913,14 +1888,17 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
1913
1888
|
* @deprecated can use getCurrentTaskInput instead?
|
|
1914
1889
|
*/ var CONTEXT_VARIABLE_CURRENTSTATE = "currentState";
|
|
1915
1890
|
var STATE_VARIABLE_SYS = "sys";
|
|
1916
|
-
var STATE_VARIABLE_HUMAN = "human";
|
|
1917
1891
|
var GRAPH_NODE_SUMMARIZE_CONVERSATION = "summarize_conversation";
|
|
1918
1892
|
var GRAPH_NODE_TITLE_CONVERSATION = "title_conversation";
|
|
1919
1893
|
var STATE_VARIABLE_FILES = "files";
|
|
1920
1894
|
var STATE_VARIABLE_INPUT = "input";
|
|
1921
1895
|
var STATE_SYS_VOLUME = "volume";
|
|
1922
|
-
|
|
1923
|
-
|
|
1896
|
+
/**
|
|
1897
|
+
* Workspace path in sandbox environment
|
|
1898
|
+
*/ var STATE_SYS_WORKSPACE_PATH = "workspace_path";
|
|
1899
|
+
/**
|
|
1900
|
+
* URL for workspace files in sandbox environment
|
|
1901
|
+
*/ var STATE_SYS_WORKSPACE_URL = "workspace_url";
|
|
1924
1902
|
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
1925
1903
|
// Helpers
|
|
1926
1904
|
function channelName(name) {
|
|
@@ -1929,7 +1907,12 @@ function channelName(name) {
|
|
|
1929
1907
|
function messageContentText(content) {
|
|
1930
1908
|
return typeof content === "string" ? content : content.type === "text" ? content.text : "";
|
|
1931
1909
|
}
|
|
1932
|
-
|
|
1910
|
+
/**
|
|
1911
|
+
* Get workspace folder for sandbox from runnable configurable
|
|
1912
|
+
*
|
|
1913
|
+
* @param configurable
|
|
1914
|
+
* @returns
|
|
1915
|
+
*/ function getWorkspaceFromRunnable(configurable) {
|
|
1933
1916
|
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
|
|
1934
1917
|
type: "project",
|
|
1935
1918
|
id: ""
|
|
@@ -2538,7 +2521,13 @@ function omitXpertRelations(xpert) {
|
|
|
2538
2521
|
]);
|
|
2539
2522
|
return rest;
|
|
2540
2523
|
}
|
|
2541
|
-
|
|
2524
|
+
/**
|
|
2525
|
+
* Figure out latest xpert or draft xpert.
|
|
2526
|
+
*
|
|
2527
|
+
* @param xpert
|
|
2528
|
+
* @param isDraft Is draft
|
|
2529
|
+
* @returns
|
|
2530
|
+
*/ function figureOutXpert(xpert, isDraft) {
|
|
2542
2531
|
var _xpert_draft;
|
|
2543
2532
|
var _ref;
|
|
2544
2533
|
return (_ref = isDraft ? (_xpert_draft = xpert.draft) === null || _xpert_draft === void 0 ? void 0 : _xpert_draft.team : xpert) !== null && _ref !== void 0 ? _ref : xpert;
|
|
@@ -3032,6 +3021,12 @@ function genXpertSkillKey() {
|
|
|
3032
3021
|
return letterStartSUID("Skill_");
|
|
3033
3022
|
}
|
|
3034
3023
|
|
|
3024
|
+
function isMiddlewareToolEnabled(config) {
|
|
3025
|
+
if (typeof config === "boolean") {
|
|
3026
|
+
return config;
|
|
3027
|
+
}
|
|
3028
|
+
return (config === null || config === void 0 ? void 0 : config.enabled) !== false;
|
|
3029
|
+
}
|
|
3035
3030
|
function genXpertMiddlewareKey() {
|
|
3036
3031
|
return letterStartSUID("Middleware_");
|
|
3037
3032
|
}
|
|
@@ -3368,7 +3363,9 @@ var IntegrationGitHubProvider = {
|
|
|
3368
3363
|
};
|
|
3369
3364
|
};
|
|
3370
3365
|
|
|
3371
|
-
|
|
3366
|
+
/**
|
|
3367
|
+
* @deprecated use plugin
|
|
3368
|
+
*/ var IntegrationLarkProvider = {
|
|
3372
3369
|
name: exports.IntegrationEnum.LARK,
|
|
3373
3370
|
label: {
|
|
3374
3371
|
en_US: "Lark",
|
|
@@ -3750,11 +3747,12 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
3750
3747
|
var __group, __group1;
|
|
3751
3748
|
return rest.length ? ((__group = _.group) === null || __group === void 0 ? void 0 : __group.name) === groupName : !((__group1 = _.group) === null || __group1 === void 0 ? void 0 : __group1.name);
|
|
3752
3749
|
});
|
|
3750
|
+
var selectVariable = group === null || group === void 0 ? void 0 : group.variables.find(function(_) {
|
|
3751
|
+
return _.name === (rest.join(".") || groupName);
|
|
3752
|
+
});
|
|
3753
3753
|
return {
|
|
3754
3754
|
group: group,
|
|
3755
|
-
variable:
|
|
3756
|
-
return _.name === (rest.join(".") || groupName);
|
|
3757
|
-
})
|
|
3755
|
+
variable: selectVariable
|
|
3758
3756
|
};
|
|
3759
3757
|
}
|
|
3760
3758
|
var FILE_VARIABLES = [
|
|
@@ -3800,6 +3798,10 @@ var FILE_VARIABLES = [
|
|
|
3800
3798
|
}
|
|
3801
3799
|
];
|
|
3802
3800
|
|
|
3801
|
+
function isInterruptMessage(obj) {
|
|
3802
|
+
return obj && typeof obj === "object" && "type" in obj && "category" in obj;
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3803
3805
|
function _array_like_to_array(arr, len) {
|
|
3804
3806
|
if (len == null || len > arr.length) len = arr.length;
|
|
3805
3807
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -3929,6 +3931,8 @@ exports.IntegrationGitHubProvider = IntegrationGitHubProvider;
|
|
|
3929
3931
|
exports.IntegrationLarkProvider = IntegrationLarkProvider;
|
|
3930
3932
|
exports.IteratingIndexParameterName = IteratingIndexParameterName;
|
|
3931
3933
|
exports.IteratingItemParameterName = IteratingItemParameterName;
|
|
3934
|
+
exports.IteratorIndexParameterName = IteratorIndexParameterName;
|
|
3935
|
+
exports.IteratorItemParameterName = IteratorItemParameterName;
|
|
3932
3936
|
exports.KDocumentSourceType = KDocumentSourceType;
|
|
3933
3937
|
exports.KDocumentWebTypeOptions = KDocumentWebTypeOptions;
|
|
3934
3938
|
exports.KNOWLEDGE_DOCUMENTS_NAME = KNOWLEDGE_DOCUMENTS_NAME;
|
|
@@ -3950,7 +3954,6 @@ exports.STATE_SYS_VOLUME = STATE_SYS_VOLUME;
|
|
|
3950
3954
|
exports.STATE_SYS_WORKSPACE_PATH = STATE_SYS_WORKSPACE_PATH;
|
|
3951
3955
|
exports.STATE_SYS_WORKSPACE_URL = STATE_SYS_WORKSPACE_URL;
|
|
3952
3956
|
exports.STATE_VARIABLE_FILES = STATE_VARIABLE_FILES;
|
|
3953
|
-
exports.STATE_VARIABLE_HUMAN = STATE_VARIABLE_HUMAN;
|
|
3954
3957
|
exports.STATE_VARIABLE_INPUT = STATE_VARIABLE_INPUT;
|
|
3955
3958
|
exports.STATE_VARIABLE_SYS = STATE_VARIABLE_SYS;
|
|
3956
3959
|
exports.STATE_VARIABLE_TITLE_CHANNEL = STATE_VARIABLE_TITLE_CHANNEL;
|
|
@@ -3959,6 +3962,7 @@ exports.TASK_DESCRIPTION_SUFFIX = TASK_DESCRIPTION_SUFFIX;
|
|
|
3959
3962
|
exports.TENANT_AGENT_LOCAL_URL = TENANT_AGENT_LOCAL_URL;
|
|
3960
3963
|
exports.TOOL_NAME_REGEX = TOOL_NAME_REGEX;
|
|
3961
3964
|
exports.TranslationLanguageMap = TranslationLanguageMap;
|
|
3965
|
+
exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
|
|
3962
3966
|
exports.VariableOperations = VariableOperations;
|
|
3963
3967
|
exports.agentLabel = agentLabel;
|
|
3964
3968
|
exports.agentUniqueName = agentUniqueName;
|
|
@@ -3990,8 +3994,10 @@ exports.genXpertDBInsertKey = genXpertDBInsertKey;
|
|
|
3990
3994
|
exports.genXpertDBQueryKey = genXpertDBQueryKey;
|
|
3991
3995
|
exports.genXpertDBSqlKey = genXpertDBSqlKey;
|
|
3992
3996
|
exports.genXpertDBUpdateKey = genXpertDBUpdateKey;
|
|
3997
|
+
exports.genXpertIteratorKey = genXpertIteratorKey;
|
|
3993
3998
|
exports.genXpertMiddlewareKey = genXpertMiddlewareKey;
|
|
3994
3999
|
exports.genXpertSkillKey = genXpertSkillKey;
|
|
4000
|
+
exports.genXpertStartKey = genXpertStartKey;
|
|
3995
4001
|
exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
3996
4002
|
exports.generateCronExpression = generateCronExpression;
|
|
3997
4003
|
exports.getAgentMiddlewareNodes = getAgentMiddlewareNodes;
|
|
@@ -4011,12 +4017,15 @@ exports.isAudioType = isAudioType;
|
|
|
4011
4017
|
exports.isDocumentSheet = isDocumentSheet;
|
|
4012
4018
|
exports.isEnableTool = isEnableTool;
|
|
4013
4019
|
exports.isImageType = isImageType;
|
|
4020
|
+
exports.isInterruptMessage = isInterruptMessage;
|
|
4014
4021
|
exports.isIteratingKey = isIteratingKey;
|
|
4022
|
+
exports.isIteratorKey = isIteratorKey;
|
|
4015
4023
|
exports.isMessageGroup = isMessageGroup;
|
|
4024
|
+
exports.isMiddlewareToolEnabled = isMiddlewareToolEnabled;
|
|
4016
4025
|
exports.isRouterKey = isRouterKey;
|
|
4017
4026
|
exports.isToolEnabled = isToolEnabled;
|
|
4018
4027
|
exports.isVideoType = isVideoType;
|
|
4019
|
-
exports.
|
|
4028
|
+
exports.isXpertNodeType = isXpertNodeType;
|
|
4020
4029
|
exports.letterStartSUID = letterStartSUID;
|
|
4021
4030
|
exports.locateNodes = locateNodes;
|
|
4022
4031
|
exports.mapTranslationLanguage = mapTranslationLanguage;
|
|
@@ -4028,3 +4037,9 @@ exports.transformInstallation = transformInstallation;
|
|
|
4028
4037
|
exports.uuid = uuid;
|
|
4029
4038
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
4030
4039
|
exports.xpertLabel = xpertLabel;
|
|
4040
|
+
Object.keys(chatkitTypes).forEach(function (k) {
|
|
4041
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
4042
|
+
enumerable: true,
|
|
4043
|
+
get: function () { return chatkitTypes[k]; }
|
|
4044
|
+
});
|
|
4045
|
+
});
|
package/index.esm.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ShortUniqueId from 'short-unique-id';
|
|
2
|
+
export * from '@xpert-ai/chatkit-types';
|
|
2
3
|
|
|
3
4
|
function _array_like_to_array$5(arr, len) {
|
|
4
5
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -1471,32 +1472,6 @@ var ChatGatewayEvent;
|
|
|
1471
1472
|
ChatGatewayEvent["Agent"] = "agent";
|
|
1472
1473
|
})(ChatGatewayEvent || (ChatGatewayEvent = {}));
|
|
1473
1474
|
|
|
1474
|
-
var ChatMessageStepCategory;
|
|
1475
|
-
(function(ChatMessageStepCategory) {
|
|
1476
|
-
/**
|
|
1477
|
-
* List of items: urls, files, etc.
|
|
1478
|
-
*/ ChatMessageStepCategory["List"] = "list";
|
|
1479
|
-
/**
|
|
1480
|
-
* Websearch results
|
|
1481
|
-
*/ ChatMessageStepCategory["WebSearch"] = "web_search";
|
|
1482
|
-
/**
|
|
1483
|
-
* Files list
|
|
1484
|
-
*/ ChatMessageStepCategory["Files"] = "files";
|
|
1485
|
-
/**
|
|
1486
|
-
* View a file
|
|
1487
|
-
*/ ChatMessageStepCategory["File"] = "file";
|
|
1488
|
-
/**
|
|
1489
|
-
* Program Execution
|
|
1490
|
-
*/ ChatMessageStepCategory["Program"] = "program";
|
|
1491
|
-
/**
|
|
1492
|
-
* Iframe
|
|
1493
|
-
*/ ChatMessageStepCategory["Iframe"] = "iframe";
|
|
1494
|
-
ChatMessageStepCategory["Memory"] = "memory";
|
|
1495
|
-
ChatMessageStepCategory["Tasks"] = "tasks";
|
|
1496
|
-
/**
|
|
1497
|
-
* Knowledges (knowledge base retriever results)
|
|
1498
|
-
*/ ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1499
|
-
})(ChatMessageStepCategory || (ChatMessageStepCategory = {}));
|
|
1500
1475
|
// Type guards
|
|
1501
1476
|
/**
|
|
1502
1477
|
* @deprecated use content in message
|
|
@@ -1513,6 +1488,8 @@ var ChatMessageFeedbackRatingEnum;
|
|
|
1513
1488
|
var MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
|
|
1514
1489
|
var MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
|
|
1515
1490
|
|
|
1491
|
+
var USAGE_HOUR_FORMAT = "yyyy-MM-dd HH";
|
|
1492
|
+
|
|
1516
1493
|
var AiProviderRole;
|
|
1517
1494
|
(function(AiProviderRole) {
|
|
1518
1495
|
AiProviderRole["Primary"] = "primary";
|
|
@@ -1580,6 +1557,8 @@ var KDocumentWebTypeOptions = [
|
|
|
1580
1557
|
|
|
1581
1558
|
var WorkflowNodeTypeEnum;
|
|
1582
1559
|
(function(WorkflowNodeTypeEnum) {
|
|
1560
|
+
WorkflowNodeTypeEnum["START"] = "start";
|
|
1561
|
+
WorkflowNodeTypeEnum["END"] = "end";
|
|
1583
1562
|
/**
|
|
1584
1563
|
* Trigger
|
|
1585
1564
|
*/ WorkflowNodeTypeEnum["TRIGGER"] = "trigger";
|
|
@@ -1591,7 +1570,10 @@ var WorkflowNodeTypeEnum;
|
|
|
1591
1570
|
*/ WorkflowNodeTypeEnum["IF_ELSE"] = "if-else";
|
|
1592
1571
|
WorkflowNodeTypeEnum["LIST_OPERATOR"] = "list-operator";
|
|
1593
1572
|
WorkflowNodeTypeEnum["VARIABLE_AGGREGATOR"] = "variable-aggregator";
|
|
1594
|
-
|
|
1573
|
+
/**
|
|
1574
|
+
* @deprecated use ITERATOR instead
|
|
1575
|
+
*/ WorkflowNodeTypeEnum["ITERATING"] = "iterating";
|
|
1576
|
+
WorkflowNodeTypeEnum["ITERATOR"] = "iterator";
|
|
1595
1577
|
WorkflowNodeTypeEnum["HTTP"] = "http";
|
|
1596
1578
|
WorkflowNodeTypeEnum["SUBFLOW"] = "subflow";
|
|
1597
1579
|
WorkflowNodeTypeEnum["TOOL"] = "tool";
|
|
@@ -1648,9 +1630,15 @@ var VariableOperationEnum;
|
|
|
1648
1630
|
VariableOperationEnum["CLEAR"] = "clear";
|
|
1649
1631
|
})(VariableOperationEnum || (VariableOperationEnum = {}));
|
|
1650
1632
|
/**
|
|
1651
|
-
*
|
|
1633
|
+
* @deprecated use `IteratorItemParameterName` instead
|
|
1652
1634
|
*/ var IteratingItemParameterName = "$item";
|
|
1653
|
-
|
|
1635
|
+
/**
|
|
1636
|
+
* @deprecated use `IteratorIndexParameterName` instead
|
|
1637
|
+
*/ var IteratingIndexParameterName = "$index";
|
|
1638
|
+
/**
|
|
1639
|
+
* The parameter name that represents the entire current element in array
|
|
1640
|
+
*/ var IteratorItemParameterName = "$item";
|
|
1641
|
+
var IteratorIndexParameterName = "$index";
|
|
1654
1642
|
var WorkflowLogicalOperator;
|
|
1655
1643
|
(function(WorkflowLogicalOperator) {
|
|
1656
1644
|
WorkflowLogicalOperator["AND"] = "and";
|
|
@@ -1690,17 +1678,25 @@ function genJSONStringifyKey() {
|
|
|
1690
1678
|
function genJSONParseKey() {
|
|
1691
1679
|
return letterStartSUID("JSONParse_");
|
|
1692
1680
|
}
|
|
1681
|
+
function genXpertIteratorKey() {
|
|
1682
|
+
return letterStartSUID("Iterator_");
|
|
1683
|
+
}
|
|
1684
|
+
function genXpertStartKey(key) {
|
|
1685
|
+
return key + "_start";
|
|
1686
|
+
}
|
|
1693
1687
|
function isAgentKey(key) {
|
|
1694
1688
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("agent_");
|
|
1695
1689
|
}
|
|
1696
1690
|
function isRouterKey(key) {
|
|
1697
1691
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("router_");
|
|
1698
1692
|
}
|
|
1699
|
-
|
|
1693
|
+
/**
|
|
1694
|
+
* @deprecated use `isIteratorKey` instead
|
|
1695
|
+
*/ function isIteratingKey(key) {
|
|
1700
1696
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("iterating_");
|
|
1701
1697
|
}
|
|
1702
|
-
function
|
|
1703
|
-
return
|
|
1698
|
+
function isIteratorKey(key) {
|
|
1699
|
+
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("iterator_");
|
|
1704
1700
|
}
|
|
1705
1701
|
function workflowNodeIdentifier(node) {
|
|
1706
1702
|
return node.title || node.key;
|
|
@@ -1744,33 +1740,12 @@ var XpertParameterTypeEnum;
|
|
|
1744
1740
|
XpertParameterTypeEnum["BOOLEAN"] = "boolean";
|
|
1745
1741
|
XpertParameterTypeEnum["SECRET"] = "secret";
|
|
1746
1742
|
})(XpertParameterTypeEnum || (XpertParameterTypeEnum = {}));
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
}
|
|
1753
|
-
var ChatMessageEventTypeEnum;
|
|
1754
|
-
(function(ChatMessageEventTypeEnum) {
|
|
1755
|
-
ChatMessageEventTypeEnum["ON_CONVERSATION_START"] = "on_conversation_start";
|
|
1756
|
-
ChatMessageEventTypeEnum["ON_CONVERSATION_END"] = "on_conversation_end";
|
|
1757
|
-
ChatMessageEventTypeEnum["ON_MESSAGE_START"] = "on_message_start";
|
|
1758
|
-
ChatMessageEventTypeEnum["ON_MESSAGE_END"] = "on_message_end";
|
|
1759
|
-
ChatMessageEventTypeEnum["ON_TOOL_START"] = "on_tool_start";
|
|
1760
|
-
ChatMessageEventTypeEnum["ON_TOOL_END"] = "on_tool_end";
|
|
1761
|
-
ChatMessageEventTypeEnum["ON_TOOL_ERROR"] = "on_tool_error";
|
|
1762
|
-
/**
|
|
1763
|
-
* Step message in tool call
|
|
1764
|
-
*/ ChatMessageEventTypeEnum["ON_TOOL_MESSAGE"] = "on_tool_message";
|
|
1765
|
-
ChatMessageEventTypeEnum["ON_AGENT_START"] = "on_agent_start";
|
|
1766
|
-
ChatMessageEventTypeEnum["ON_AGENT_END"] = "on_agent_end";
|
|
1767
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_START"] = "on_retriever_start";
|
|
1768
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_END"] = "on_retriever_end";
|
|
1769
|
-
ChatMessageEventTypeEnum["ON_RETRIEVER_ERROR"] = "on_retriever_error";
|
|
1770
|
-
ChatMessageEventTypeEnum["ON_INTERRUPT"] = "on_interrupt";
|
|
1771
|
-
ChatMessageEventTypeEnum["ON_ERROR"] = "on_error";
|
|
1772
|
-
ChatMessageEventTypeEnum["ON_CHAT_EVENT"] = "on_chat_event";
|
|
1773
|
-
})(ChatMessageEventTypeEnum || (ChatMessageEventTypeEnum = {}));
|
|
1743
|
+
// Helper guards
|
|
1744
|
+
function isXpertNodeType(type) {
|
|
1745
|
+
return function(node) {
|
|
1746
|
+
return node.type === type;
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1774
1749
|
|
|
1775
1750
|
function agentLabel(agent) {
|
|
1776
1751
|
return agent.title || agent.name || agent.key;
|
|
@@ -1911,14 +1886,17 @@ function _unsupported_iterable_to_array$4(o, minLen) {
|
|
|
1911
1886
|
* @deprecated can use getCurrentTaskInput instead?
|
|
1912
1887
|
*/ var CONTEXT_VARIABLE_CURRENTSTATE = "currentState";
|
|
1913
1888
|
var STATE_VARIABLE_SYS = "sys";
|
|
1914
|
-
var STATE_VARIABLE_HUMAN = "human";
|
|
1915
1889
|
var GRAPH_NODE_SUMMARIZE_CONVERSATION = "summarize_conversation";
|
|
1916
1890
|
var GRAPH_NODE_TITLE_CONVERSATION = "title_conversation";
|
|
1917
1891
|
var STATE_VARIABLE_FILES = "files";
|
|
1918
1892
|
var STATE_VARIABLE_INPUT = "input";
|
|
1919
1893
|
var STATE_SYS_VOLUME = "volume";
|
|
1920
|
-
|
|
1921
|
-
|
|
1894
|
+
/**
|
|
1895
|
+
* Workspace path in sandbox environment
|
|
1896
|
+
*/ var STATE_SYS_WORKSPACE_PATH = "workspace_path";
|
|
1897
|
+
/**
|
|
1898
|
+
* URL for workspace files in sandbox environment
|
|
1899
|
+
*/ var STATE_SYS_WORKSPACE_URL = "workspace_url";
|
|
1922
1900
|
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
1923
1901
|
// Helpers
|
|
1924
1902
|
function channelName(name) {
|
|
@@ -1927,7 +1905,12 @@ function channelName(name) {
|
|
|
1927
1905
|
function messageContentText(content) {
|
|
1928
1906
|
return typeof content === "string" ? content : content.type === "text" ? content.text : "";
|
|
1929
1907
|
}
|
|
1930
|
-
|
|
1908
|
+
/**
|
|
1909
|
+
* Get workspace folder for sandbox from runnable configurable
|
|
1910
|
+
*
|
|
1911
|
+
* @param configurable
|
|
1912
|
+
* @returns
|
|
1913
|
+
*/ function getWorkspaceFromRunnable(configurable) {
|
|
1931
1914
|
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
|
|
1932
1915
|
type: "project",
|
|
1933
1916
|
id: ""
|
|
@@ -2536,7 +2519,13 @@ function omitXpertRelations(xpert) {
|
|
|
2536
2519
|
]);
|
|
2537
2520
|
return rest;
|
|
2538
2521
|
}
|
|
2539
|
-
|
|
2522
|
+
/**
|
|
2523
|
+
* Figure out latest xpert or draft xpert.
|
|
2524
|
+
*
|
|
2525
|
+
* @param xpert
|
|
2526
|
+
* @param isDraft Is draft
|
|
2527
|
+
* @returns
|
|
2528
|
+
*/ function figureOutXpert(xpert, isDraft) {
|
|
2540
2529
|
var _xpert_draft;
|
|
2541
2530
|
var _ref;
|
|
2542
2531
|
return (_ref = isDraft ? (_xpert_draft = xpert.draft) === null || _xpert_draft === void 0 ? void 0 : _xpert_draft.team : xpert) !== null && _ref !== void 0 ? _ref : xpert;
|
|
@@ -3030,6 +3019,12 @@ function genXpertSkillKey() {
|
|
|
3030
3019
|
return letterStartSUID("Skill_");
|
|
3031
3020
|
}
|
|
3032
3021
|
|
|
3022
|
+
function isMiddlewareToolEnabled(config) {
|
|
3023
|
+
if (typeof config === "boolean") {
|
|
3024
|
+
return config;
|
|
3025
|
+
}
|
|
3026
|
+
return (config === null || config === void 0 ? void 0 : config.enabled) !== false;
|
|
3027
|
+
}
|
|
3033
3028
|
function genXpertMiddlewareKey() {
|
|
3034
3029
|
return letterStartSUID("Middleware_");
|
|
3035
3030
|
}
|
|
@@ -3366,7 +3361,9 @@ var IntegrationGitHubProvider = {
|
|
|
3366
3361
|
};
|
|
3367
3362
|
};
|
|
3368
3363
|
|
|
3369
|
-
|
|
3364
|
+
/**
|
|
3365
|
+
* @deprecated use plugin
|
|
3366
|
+
*/ var IntegrationLarkProvider = {
|
|
3370
3367
|
name: IntegrationEnum.LARK,
|
|
3371
3368
|
label: {
|
|
3372
3369
|
en_US: "Lark",
|
|
@@ -3748,11 +3745,12 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
3748
3745
|
var __group, __group1;
|
|
3749
3746
|
return rest.length ? ((__group = _.group) === null || __group === void 0 ? void 0 : __group.name) === groupName : !((__group1 = _.group) === null || __group1 === void 0 ? void 0 : __group1.name);
|
|
3750
3747
|
});
|
|
3748
|
+
var selectVariable = group === null || group === void 0 ? void 0 : group.variables.find(function(_) {
|
|
3749
|
+
return _.name === (rest.join(".") || groupName);
|
|
3750
|
+
});
|
|
3751
3751
|
return {
|
|
3752
3752
|
group: group,
|
|
3753
|
-
variable:
|
|
3754
|
-
return _.name === (rest.join(".") || groupName);
|
|
3755
|
-
})
|
|
3753
|
+
variable: selectVariable
|
|
3756
3754
|
};
|
|
3757
3755
|
}
|
|
3758
3756
|
var FILE_VARIABLES = [
|
|
@@ -3798,6 +3796,10 @@ var FILE_VARIABLES = [
|
|
|
3798
3796
|
}
|
|
3799
3797
|
];
|
|
3800
3798
|
|
|
3799
|
+
function isInterruptMessage(obj) {
|
|
3800
|
+
return obj && typeof obj === "object" && "type" in obj && "category" in obj;
|
|
3801
|
+
}
|
|
3802
|
+
|
|
3801
3803
|
function _array_like_to_array(arr, len) {
|
|
3802
3804
|
if (len == null || len > arr.length) len = arr.length;
|
|
3803
3805
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -3906,4 +3908,4 @@ var InterruptMessageType;
|
|
|
3906
3908
|
InterruptMessageType["Select"] = "select";
|
|
3907
3909
|
})(InterruptMessageType || (InterruptMessageType = {}));
|
|
3908
3910
|
|
|
3909
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent,
|
|
3911
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageFeedbackRatingEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorDraftFields, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, ScheduleTaskStatus, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isToolEnabled, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, setStateVariable, shortTitle, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metad/contracts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,5 +13,9 @@
|
|
|
13
13
|
"docs": "yarn typedoc --out ./.docs"
|
|
14
14
|
},
|
|
15
15
|
"module": "./index.esm.js",
|
|
16
|
-
"main": "./index.cjs.js"
|
|
16
|
+
"main": "./index.cjs.js",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@a2ui/lit": "^0.8.1",
|
|
19
|
+
"@xpert-ai/chatkit-types": "^0.0.12"
|
|
20
|
+
}
|
|
17
21
|
}
|