@xpert-ai/contracts 3.9.0-beta.2 → 3.9.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 +654 -52
- package/index.esm.js +630 -53
- package/package.json +1 -1
- package/src/agent/graph.d.ts +15 -1
- package/src/ai/assistant-binding.model.d.ts +23 -2
- package/src/ai/chat-event.model.d.ts +10 -0
- package/src/ai/chat-message.model.d.ts +27 -0
- package/src/ai/context-compression.model.d.ts +13 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/middleware.model.d.ts +5 -0
- package/src/ai/sandbox-terminal.model.d.ts +108 -0
- package/src/ai/skill.model.d.ts +1 -0
- package/src/ai/types.d.ts +45 -20
- package/src/ai/xpert-chat.model.d.ts +29 -2
- package/src/ai/xpert-template.model.d.ts +63 -0
- package/src/ai/xpert-workspace.model.d.ts +1 -1
- package/src/ai/xpert.model.d.ts +21 -12
- package/src/api-key.model.d.ts +2 -0
- package/src/file-asset.model.d.ts +3 -1
- package/src/plugin.d.ts +7 -0
package/index.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import ShortUniqueId from 'short-unique-id';
|
|
2
2
|
|
|
3
|
-
function _array_like_to_array$
|
|
3
|
+
function _array_like_to_array$7(arr, len) {
|
|
4
4
|
if (len == null || len > arr.length) len = arr.length;
|
|
5
5
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6
6
|
return arr2;
|
|
7
7
|
}
|
|
8
|
-
function _array_without_holes$
|
|
9
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8
|
+
function _array_without_holes$3(arr) {
|
|
9
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
10
10
|
}
|
|
11
|
-
function _iterable_to_array$
|
|
11
|
+
function _iterable_to_array$4(iter) {
|
|
12
12
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13
13
|
}
|
|
14
|
-
function _non_iterable_spread$
|
|
14
|
+
function _non_iterable_spread$3() {
|
|
15
15
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
16
|
}
|
|
17
|
-
function _to_consumable_array$
|
|
18
|
-
return _array_without_holes$
|
|
17
|
+
function _to_consumable_array$3(arr) {
|
|
18
|
+
return _array_without_holes$3(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$3();
|
|
19
19
|
}
|
|
20
|
-
function _unsupported_iterable_to_array$
|
|
20
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
21
21
|
if (!o) return;
|
|
22
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
22
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
23
23
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24
24
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
25
25
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
26
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
26
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
27
27
|
}
|
|
28
28
|
var _uuidGenerator;
|
|
29
29
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -33,7 +33,7 @@ var uuid = function() {
|
|
|
33
33
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
34
34
|
args[_key] = arguments[_key];
|
|
35
35
|
}
|
|
36
|
-
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$
|
|
36
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$3(args));
|
|
37
37
|
};
|
|
38
38
|
// Parameters
|
|
39
39
|
var ParameterTypeEnum;
|
|
@@ -1338,6 +1338,111 @@ var QueryStatusEnum;
|
|
|
1338
1338
|
QueryStatusEnum["FAILED"] = "failed";
|
|
1339
1339
|
})(QueryStatusEnum || (QueryStatusEnum = {}));
|
|
1340
1340
|
|
|
1341
|
+
function _array_like_to_array$6(arr, len) {
|
|
1342
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1343
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1344
|
+
return arr2;
|
|
1345
|
+
}
|
|
1346
|
+
function _array_with_holes$5(arr) {
|
|
1347
|
+
if (Array.isArray(arr)) return arr;
|
|
1348
|
+
}
|
|
1349
|
+
function _array_without_holes$2(arr) {
|
|
1350
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
1351
|
+
}
|
|
1352
|
+
function _define_property$9(obj, key, value) {
|
|
1353
|
+
if (key in obj) {
|
|
1354
|
+
Object.defineProperty(obj, key, {
|
|
1355
|
+
value: value,
|
|
1356
|
+
enumerable: true,
|
|
1357
|
+
configurable: true,
|
|
1358
|
+
writable: true
|
|
1359
|
+
});
|
|
1360
|
+
} else {
|
|
1361
|
+
obj[key] = value;
|
|
1362
|
+
}
|
|
1363
|
+
return obj;
|
|
1364
|
+
}
|
|
1365
|
+
function _iterable_to_array$3(iter) {
|
|
1366
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1367
|
+
}
|
|
1368
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
1369
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1370
|
+
if (_i == null) return;
|
|
1371
|
+
var _arr = [];
|
|
1372
|
+
var _n = true;
|
|
1373
|
+
var _d = false;
|
|
1374
|
+
var _s, _e;
|
|
1375
|
+
try {
|
|
1376
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
1377
|
+
_arr.push(_s.value);
|
|
1378
|
+
if (i && _arr.length === i) break;
|
|
1379
|
+
}
|
|
1380
|
+
} catch (err) {
|
|
1381
|
+
_d = true;
|
|
1382
|
+
_e = err;
|
|
1383
|
+
} finally{
|
|
1384
|
+
try {
|
|
1385
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
1386
|
+
} finally{
|
|
1387
|
+
if (_d) throw _e;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
return _arr;
|
|
1391
|
+
}
|
|
1392
|
+
function _non_iterable_rest$5() {
|
|
1393
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1394
|
+
}
|
|
1395
|
+
function _non_iterable_spread$2() {
|
|
1396
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1397
|
+
}
|
|
1398
|
+
function _object_spread$8(target) {
|
|
1399
|
+
for(var i = 1; i < arguments.length; i++){
|
|
1400
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
1401
|
+
var ownKeys = Object.keys(source);
|
|
1402
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1403
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1404
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1405
|
+
}));
|
|
1406
|
+
}
|
|
1407
|
+
ownKeys.forEach(function(key) {
|
|
1408
|
+
_define_property$9(target, key, source[key]);
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
return target;
|
|
1412
|
+
}
|
|
1413
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
1414
|
+
var keys = Object.keys(object);
|
|
1415
|
+
if (Object.getOwnPropertySymbols) {
|
|
1416
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1417
|
+
keys.push.apply(keys, symbols);
|
|
1418
|
+
}
|
|
1419
|
+
return keys;
|
|
1420
|
+
}
|
|
1421
|
+
function _object_spread_props$6(target, source) {
|
|
1422
|
+
source = source != null ? source : {};
|
|
1423
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
1424
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1425
|
+
} else {
|
|
1426
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
1427
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
return target;
|
|
1431
|
+
}
|
|
1432
|
+
function _sliced_to_array$4(arr, i) {
|
|
1433
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
|
|
1434
|
+
}
|
|
1435
|
+
function _to_consumable_array$2(arr) {
|
|
1436
|
+
return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$2();
|
|
1437
|
+
}
|
|
1438
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
1439
|
+
if (!o) return;
|
|
1440
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
1441
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1442
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1443
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1444
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
1445
|
+
}
|
|
1341
1446
|
var AssistantCode;
|
|
1342
1447
|
(function(AssistantCode) {
|
|
1343
1448
|
AssistantCode["CHAT_COMMON"] = "chat_common";
|
|
@@ -1357,6 +1462,275 @@ var AssistantBindingSourceScope;
|
|
|
1357
1462
|
AssistantBindingSourceScope["TENANT"] = "tenant";
|
|
1358
1463
|
AssistantBindingSourceScope["ORGANIZATION"] = "organization";
|
|
1359
1464
|
})(AssistantBindingSourceScope || (AssistantBindingSourceScope = {}));
|
|
1465
|
+
function normalizeAssistantBindingPreferenceKey(value) {
|
|
1466
|
+
var _value_trim;
|
|
1467
|
+
return (_value_trim = value === null || value === void 0 ? void 0 : value.trim()) !== null && _value_trim !== void 0 ? _value_trim : "";
|
|
1468
|
+
}
|
|
1469
|
+
function normalizeAssistantBindingPreferenceIds(value) {
|
|
1470
|
+
var deduped = new Set();
|
|
1471
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1472
|
+
try {
|
|
1473
|
+
for(var _iterator = (value !== null && value !== void 0 ? value : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1474
|
+
var item = _step.value;
|
|
1475
|
+
var normalized = normalizeAssistantBindingPreferenceKey(item);
|
|
1476
|
+
if (normalized) {
|
|
1477
|
+
deduped.add(normalized);
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
} catch (err) {
|
|
1481
|
+
_didIteratorError = true;
|
|
1482
|
+
_iteratorError = err;
|
|
1483
|
+
} finally{
|
|
1484
|
+
try {
|
|
1485
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1486
|
+
_iterator.return();
|
|
1487
|
+
}
|
|
1488
|
+
} finally{
|
|
1489
|
+
if (_didIteratorError) {
|
|
1490
|
+
throw _iteratorError;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
return Array.from(deduped);
|
|
1495
|
+
}
|
|
1496
|
+
function normalizeAssistantBindingToolPreferences(value) {
|
|
1497
|
+
if (!value) {
|
|
1498
|
+
return null;
|
|
1499
|
+
}
|
|
1500
|
+
var _value_toolsets;
|
|
1501
|
+
var toolsets = Object.entries((_value_toolsets = value.toolsets) !== null && _value_toolsets !== void 0 ? _value_toolsets : {}).reduce(function(acc, param) {
|
|
1502
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1503
|
+
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1504
|
+
var toolsetName = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetName);
|
|
1505
|
+
if (!nodeKey || !toolsetName) {
|
|
1506
|
+
return acc;
|
|
1507
|
+
}
|
|
1508
|
+
acc[nodeKey] = {
|
|
1509
|
+
toolsetId: normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetId) || null,
|
|
1510
|
+
toolsetName: toolsetName,
|
|
1511
|
+
disabledTools: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledTools)
|
|
1512
|
+
};
|
|
1513
|
+
return acc;
|
|
1514
|
+
}, {});
|
|
1515
|
+
var _value_middlewares;
|
|
1516
|
+
var middlewares = Object.entries((_value_middlewares = value.middlewares) !== null && _value_middlewares !== void 0 ? _value_middlewares : {}).reduce(function(acc, param) {
|
|
1517
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1518
|
+
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1519
|
+
var provider = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.provider);
|
|
1520
|
+
if (!nodeKey || !provider) {
|
|
1521
|
+
return acc;
|
|
1522
|
+
}
|
|
1523
|
+
acc[nodeKey] = {
|
|
1524
|
+
provider: provider,
|
|
1525
|
+
disabledTools: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledTools)
|
|
1526
|
+
};
|
|
1527
|
+
return acc;
|
|
1528
|
+
}, {});
|
|
1529
|
+
var _value_skills;
|
|
1530
|
+
var skills = Object.entries((_value_skills = value.skills) !== null && _value_skills !== void 0 ? _value_skills : {}).reduce(function(acc, param) {
|
|
1531
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1532
|
+
var workspaceKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1533
|
+
var workspaceId = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.workspaceId) || workspaceKey;
|
|
1534
|
+
if (!workspaceKey || !workspaceId) {
|
|
1535
|
+
return acc;
|
|
1536
|
+
}
|
|
1537
|
+
acc[workspaceKey] = {
|
|
1538
|
+
workspaceId: workspaceId,
|
|
1539
|
+
disabledSkillIds: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledSkillIds)
|
|
1540
|
+
};
|
|
1541
|
+
return acc;
|
|
1542
|
+
}, {});
|
|
1543
|
+
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1544
|
+
return null;
|
|
1545
|
+
}
|
|
1546
|
+
return _object_spread$8({
|
|
1547
|
+
version: 1
|
|
1548
|
+
}, Object.keys(toolsets).length ? {
|
|
1549
|
+
toolsets: toolsets
|
|
1550
|
+
} : {}, Object.keys(middlewares).length ? {
|
|
1551
|
+
middlewares: middlewares
|
|
1552
|
+
} : {}, Object.keys(skills).length ? {
|
|
1553
|
+
skills: skills
|
|
1554
|
+
} : {});
|
|
1555
|
+
}
|
|
1556
|
+
function isAssistantBindingToolPreferencesEmpty(preferences) {
|
|
1557
|
+
return !normalizeAssistantBindingToolPreferences(preferences);
|
|
1558
|
+
}
|
|
1559
|
+
function getAssistantBindingDisabledTools(preferences, sourceType, nodeKey) {
|
|
1560
|
+
var _normalizedPreferences_toolsets_normalizedNodeKey, _normalizedPreferences_toolsets, _normalizedPreferences_middlewares_normalizedNodeKey, _normalizedPreferences_middlewares;
|
|
1561
|
+
var normalizedNodeKey = normalizeAssistantBindingPreferenceKey(nodeKey);
|
|
1562
|
+
if (!normalizedNodeKey) {
|
|
1563
|
+
return [];
|
|
1564
|
+
}
|
|
1565
|
+
var normalizedPreferences = normalizeAssistantBindingToolPreferences(preferences);
|
|
1566
|
+
if (!normalizedPreferences) {
|
|
1567
|
+
return [];
|
|
1568
|
+
}
|
|
1569
|
+
var _normalizedPreferences_toolsets_normalizedNodeKey_disabledTools, _normalizedPreferences_middlewares_normalizedNodeKey_disabledTools;
|
|
1570
|
+
return sourceType === "toolset" ? (_normalizedPreferences_toolsets_normalizedNodeKey_disabledTools = (_normalizedPreferences_toolsets = normalizedPreferences.toolsets) === null || _normalizedPreferences_toolsets === void 0 ? void 0 : (_normalizedPreferences_toolsets_normalizedNodeKey = _normalizedPreferences_toolsets[normalizedNodeKey]) === null || _normalizedPreferences_toolsets_normalizedNodeKey === void 0 ? void 0 : _normalizedPreferences_toolsets_normalizedNodeKey.disabledTools) !== null && _normalizedPreferences_toolsets_normalizedNodeKey_disabledTools !== void 0 ? _normalizedPreferences_toolsets_normalizedNodeKey_disabledTools : [] : (_normalizedPreferences_middlewares_normalizedNodeKey_disabledTools = (_normalizedPreferences_middlewares = normalizedPreferences.middlewares) === null || _normalizedPreferences_middlewares === void 0 ? void 0 : (_normalizedPreferences_middlewares_normalizedNodeKey = _normalizedPreferences_middlewares[normalizedNodeKey]) === null || _normalizedPreferences_middlewares_normalizedNodeKey === void 0 ? void 0 : _normalizedPreferences_middlewares_normalizedNodeKey.disabledTools) !== null && _normalizedPreferences_middlewares_normalizedNodeKey_disabledTools !== void 0 ? _normalizedPreferences_middlewares_normalizedNodeKey_disabledTools : [];
|
|
1571
|
+
}
|
|
1572
|
+
function getAssistantBindingDisabledSkillIds(preferences, workspaceId) {
|
|
1573
|
+
var _normalizedPreferences_skills_normalizedWorkspaceId, _normalizedPreferences_skills;
|
|
1574
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1575
|
+
if (!normalizedWorkspaceId) {
|
|
1576
|
+
return [];
|
|
1577
|
+
}
|
|
1578
|
+
var normalizedPreferences = normalizeAssistantBindingToolPreferences(preferences);
|
|
1579
|
+
var _normalizedPreferences_skills_normalizedWorkspaceId_disabledSkillIds;
|
|
1580
|
+
return (_normalizedPreferences_skills_normalizedWorkspaceId_disabledSkillIds = normalizedPreferences === null || normalizedPreferences === void 0 ? void 0 : (_normalizedPreferences_skills = normalizedPreferences.skills) === null || _normalizedPreferences_skills === void 0 ? void 0 : (_normalizedPreferences_skills_normalizedWorkspaceId = _normalizedPreferences_skills[normalizedWorkspaceId]) === null || _normalizedPreferences_skills_normalizedWorkspaceId === void 0 ? void 0 : _normalizedPreferences_skills_normalizedWorkspaceId.disabledSkillIds) !== null && _normalizedPreferences_skills_normalizedWorkspaceId_disabledSkillIds !== void 0 ? _normalizedPreferences_skills_normalizedWorkspaceId_disabledSkillIds : [];
|
|
1581
|
+
}
|
|
1582
|
+
function isAssistantBindingToolEnabled(preferences, sourceType, nodeKey, toolName) {
|
|
1583
|
+
return !getAssistantBindingDisabledTools(preferences, sourceType, nodeKey).includes(normalizeAssistantBindingPreferenceKey(toolName));
|
|
1584
|
+
}
|
|
1585
|
+
function isAssistantBindingSkillEnabled(preferences, workspaceId, skillId) {
|
|
1586
|
+
return !getAssistantBindingDisabledSkillIds(preferences, workspaceId).includes(normalizeAssistantBindingPreferenceKey(skillId));
|
|
1587
|
+
}
|
|
1588
|
+
function filterAssistantBindingDisabledTools(tools, preferences, sourceType, nodeKey) {
|
|
1589
|
+
var disabledTools = getAssistantBindingDisabledTools(preferences, sourceType, nodeKey);
|
|
1590
|
+
if (!disabledTools.length) {
|
|
1591
|
+
return tools;
|
|
1592
|
+
}
|
|
1593
|
+
var disabledToolSet = new Set(disabledTools);
|
|
1594
|
+
return tools.filter(function(tool) {
|
|
1595
|
+
return !disabledToolSet.has(tool.name);
|
|
1596
|
+
});
|
|
1597
|
+
}
|
|
1598
|
+
function filterAssistantBindingDisabledSkillIds(skillIds, preferences, workspaceId) {
|
|
1599
|
+
var disabledSkillIds = getAssistantBindingDisabledSkillIds(preferences, workspaceId);
|
|
1600
|
+
if (!disabledSkillIds.length) {
|
|
1601
|
+
return skillIds;
|
|
1602
|
+
}
|
|
1603
|
+
var disabledSkillIdSet = new Set(disabledSkillIds);
|
|
1604
|
+
return skillIds.filter(function(skillId) {
|
|
1605
|
+
return !disabledSkillIdSet.has(skillId);
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey, metadata, toolName, enabled) {
|
|
1609
|
+
var normalizedNodeKey = normalizeAssistantBindingPreferenceKey(nodeKey);
|
|
1610
|
+
var normalizedToolName = normalizeAssistantBindingPreferenceKey(toolName);
|
|
1611
|
+
if (!normalizedNodeKey || !normalizedToolName) {
|
|
1612
|
+
return normalizeAssistantBindingToolPreferences(preferences);
|
|
1613
|
+
}
|
|
1614
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1615
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1616
|
+
version: 1
|
|
1617
|
+
};
|
|
1618
|
+
var disabledTools = getAssistantBindingDisabledTools(normalizedPreferences, sourceType, normalizedNodeKey);
|
|
1619
|
+
var nextDisabledTools = enabled ? disabledTools.filter(function(item) {
|
|
1620
|
+
return item !== normalizedToolName;
|
|
1621
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$2(disabledTools).concat([
|
|
1622
|
+
normalizedToolName
|
|
1623
|
+
]));
|
|
1624
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$8({}, normalizedPreferences.toolsets) : undefined;
|
|
1625
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$8({}, normalizedPreferences.middlewares) : undefined;
|
|
1626
|
+
if (sourceType === "toolset") {
|
|
1627
|
+
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1628
|
+
if (!toolsetName) {
|
|
1629
|
+
return normalizedPreferences;
|
|
1630
|
+
}
|
|
1631
|
+
var nextToolsets = toolsets !== null && toolsets !== void 0 ? toolsets : {};
|
|
1632
|
+
if (nextDisabledTools.length) {
|
|
1633
|
+
nextToolsets[normalizedNodeKey] = {
|
|
1634
|
+
toolsetId: "toolsetId" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetId) || null : null,
|
|
1635
|
+
toolsetName: toolsetName,
|
|
1636
|
+
disabledTools: nextDisabledTools
|
|
1637
|
+
};
|
|
1638
|
+
} else {
|
|
1639
|
+
delete nextToolsets[normalizedNodeKey];
|
|
1640
|
+
}
|
|
1641
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1642
|
+
version: 1
|
|
1643
|
+
}, Object.keys(nextToolsets).length ? {
|
|
1644
|
+
toolsets: nextToolsets
|
|
1645
|
+
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1646
|
+
middlewares: middlewares
|
|
1647
|
+
} : {}, normalizedPreferences.skills ? {
|
|
1648
|
+
skills: _object_spread$8({}, normalizedPreferences.skills)
|
|
1649
|
+
} : {}));
|
|
1650
|
+
}
|
|
1651
|
+
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
1652
|
+
if (!provider) {
|
|
1653
|
+
return normalizedPreferences;
|
|
1654
|
+
}
|
|
1655
|
+
var nextMiddlewares = middlewares !== null && middlewares !== void 0 ? middlewares : {};
|
|
1656
|
+
if (nextDisabledTools.length) {
|
|
1657
|
+
nextMiddlewares[normalizedNodeKey] = {
|
|
1658
|
+
provider: provider,
|
|
1659
|
+
disabledTools: nextDisabledTools
|
|
1660
|
+
};
|
|
1661
|
+
} else {
|
|
1662
|
+
delete nextMiddlewares[normalizedNodeKey];
|
|
1663
|
+
}
|
|
1664
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1665
|
+
version: 1
|
|
1666
|
+
}, toolsets && Object.keys(toolsets).length ? {
|
|
1667
|
+
toolsets: toolsets
|
|
1668
|
+
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1669
|
+
middlewares: nextMiddlewares
|
|
1670
|
+
} : {}, normalizedPreferences.skills ? {
|
|
1671
|
+
skills: _object_spread$8({}, normalizedPreferences.skills)
|
|
1672
|
+
} : {}));
|
|
1673
|
+
}
|
|
1674
|
+
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
1675
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1676
|
+
var normalizedSkillId = normalizeAssistantBindingPreferenceKey(skillId);
|
|
1677
|
+
if (!normalizedWorkspaceId || !normalizedSkillId) {
|
|
1678
|
+
return normalizeAssistantBindingToolPreferences(preferences);
|
|
1679
|
+
}
|
|
1680
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1681
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1682
|
+
};
|
|
1683
|
+
var disabledSkillIds = getAssistantBindingDisabledSkillIds(normalizedPreferences, normalizedWorkspaceId);
|
|
1684
|
+
var nextDisabledSkillIds = enabled ? disabledSkillIds.filter(function(item) {
|
|
1685
|
+
return item !== normalizedSkillId;
|
|
1686
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$2(disabledSkillIds).concat([
|
|
1687
|
+
normalizedSkillId
|
|
1688
|
+
]));
|
|
1689
|
+
var skills = normalizedPreferences.skills ? _object_spread$8({}, normalizedPreferences.skills) : {};
|
|
1690
|
+
if (nextDisabledSkillIds.length) {
|
|
1691
|
+
skills[normalizedWorkspaceId] = {
|
|
1692
|
+
workspaceId: normalizedWorkspaceId,
|
|
1693
|
+
disabledSkillIds: nextDisabledSkillIds
|
|
1694
|
+
};
|
|
1695
|
+
} else {
|
|
1696
|
+
delete skills[normalizedWorkspaceId];
|
|
1697
|
+
}
|
|
1698
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1699
|
+
version: 1
|
|
1700
|
+
}, normalizedPreferences.toolsets ? {
|
|
1701
|
+
toolsets: _object_spread$8({}, normalizedPreferences.toolsets)
|
|
1702
|
+
} : {}, normalizedPreferences.middlewares ? {
|
|
1703
|
+
middlewares: _object_spread$8({}, normalizedPreferences.middlewares)
|
|
1704
|
+
} : {}, Object.keys(skills).length ? {
|
|
1705
|
+
skills: skills
|
|
1706
|
+
} : {}));
|
|
1707
|
+
}
|
|
1708
|
+
function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId) {
|
|
1709
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1710
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1711
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1712
|
+
version: 1
|
|
1713
|
+
};
|
|
1714
|
+
if (!normalizedWorkspaceId) {
|
|
1715
|
+
return normalizedPreferences;
|
|
1716
|
+
}
|
|
1717
|
+
var _normalizedPreferences_skills;
|
|
1718
|
+
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
1719
|
+
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
1720
|
+
var _currentWorkspacePreference_disabledSkillIds;
|
|
1721
|
+
return _object_spread_props$6(_object_spread$8({
|
|
1722
|
+
version: 1
|
|
1723
|
+
}, normalizedPreferences.toolsets ? {
|
|
1724
|
+
toolsets: _object_spread$8({}, normalizedPreferences.toolsets)
|
|
1725
|
+
} : {}, normalizedPreferences.middlewares ? {
|
|
1726
|
+
middlewares: _object_spread$8({}, normalizedPreferences.middlewares)
|
|
1727
|
+
} : {}), {
|
|
1728
|
+
skills: _object_spread_props$6(_object_spread$8({}, currentSkills), _define_property$9({}, normalizedWorkspaceId, {
|
|
1729
|
+
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
1730
|
+
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
1731
|
+
}))
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1360
1734
|
var USER_MANAGED_ASSISTANTS = new Set([
|
|
1361
1735
|
AssistantCode.CLAWXPERT
|
|
1362
1736
|
]);
|
|
@@ -1514,7 +1888,7 @@ var OllamaEmbeddingsProviders = [
|
|
|
1514
1888
|
AiProvider.Ollama
|
|
1515
1889
|
];
|
|
1516
1890
|
|
|
1517
|
-
function _define_property$
|
|
1891
|
+
function _define_property$8(obj, key, value) {
|
|
1518
1892
|
if (key in obj) {
|
|
1519
1893
|
Object.defineProperty(obj, key, {
|
|
1520
1894
|
value: value,
|
|
@@ -1527,7 +1901,7 @@ function _define_property$6(obj, key, value) {
|
|
|
1527
1901
|
}
|
|
1528
1902
|
return obj;
|
|
1529
1903
|
}
|
|
1530
|
-
function _object_spread$
|
|
1904
|
+
function _object_spread$7(target) {
|
|
1531
1905
|
for(var i = 1; i < arguments.length; i++){
|
|
1532
1906
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1533
1907
|
var ownKeys = Object.keys(source);
|
|
@@ -1537,18 +1911,24 @@ function _object_spread$5(target) {
|
|
|
1537
1911
|
}));
|
|
1538
1912
|
}
|
|
1539
1913
|
ownKeys.forEach(function(key) {
|
|
1540
|
-
_define_property$
|
|
1914
|
+
_define_property$8(target, key, source[key]);
|
|
1541
1915
|
});
|
|
1542
1916
|
}
|
|
1543
1917
|
return target;
|
|
1544
1918
|
}
|
|
1545
1919
|
var CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = "thread_context_usage";
|
|
1546
1920
|
var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
1921
|
+
var CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = "follow_up_consumed";
|
|
1547
1922
|
function createConversationTitleSummaryEvent(event) {
|
|
1548
|
-
return _object_spread$
|
|
1923
|
+
return _object_spread$7({
|
|
1549
1924
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1550
1925
|
}, event);
|
|
1551
1926
|
}
|
|
1927
|
+
function createFollowUpConsumedEvent(event) {
|
|
1928
|
+
return _object_spread$7({
|
|
1929
|
+
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1930
|
+
}, event);
|
|
1931
|
+
}
|
|
1552
1932
|
|
|
1553
1933
|
/**
|
|
1554
1934
|
* @deprecated use ChatMessageEventTypeEnum
|
|
@@ -1806,6 +2186,53 @@ function workflowNodeIdentifier(node) {
|
|
|
1806
2186
|
return node.title || node.key;
|
|
1807
2187
|
}
|
|
1808
2188
|
|
|
2189
|
+
function _define_property$7(obj, key, value) {
|
|
2190
|
+
if (key in obj) {
|
|
2191
|
+
Object.defineProperty(obj, key, {
|
|
2192
|
+
value: value,
|
|
2193
|
+
enumerable: true,
|
|
2194
|
+
configurable: true,
|
|
2195
|
+
writable: true
|
|
2196
|
+
});
|
|
2197
|
+
} else {
|
|
2198
|
+
obj[key] = value;
|
|
2199
|
+
}
|
|
2200
|
+
return obj;
|
|
2201
|
+
}
|
|
2202
|
+
function _object_spread$6(target) {
|
|
2203
|
+
for(var i = 1; i < arguments.length; i++){
|
|
2204
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
2205
|
+
var ownKeys = Object.keys(source);
|
|
2206
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
2207
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
2208
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
2209
|
+
}));
|
|
2210
|
+
}
|
|
2211
|
+
ownKeys.forEach(function(key) {
|
|
2212
|
+
_define_property$7(target, key, source[key]);
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
return target;
|
|
2216
|
+
}
|
|
2217
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
2218
|
+
var keys = Object.keys(object);
|
|
2219
|
+
if (Object.getOwnPropertySymbols) {
|
|
2220
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
2221
|
+
keys.push.apply(keys, symbols);
|
|
2222
|
+
}
|
|
2223
|
+
return keys;
|
|
2224
|
+
}
|
|
2225
|
+
function _object_spread_props$5(target, source) {
|
|
2226
|
+
source = source != null ? source : {};
|
|
2227
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
2228
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2229
|
+
} else {
|
|
2230
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
2231
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
return target;
|
|
2235
|
+
}
|
|
1809
2236
|
var XpertTypeEnum;
|
|
1810
2237
|
(function(XpertTypeEnum) {
|
|
1811
2238
|
/**
|
|
@@ -1818,6 +2245,17 @@ var XpertTypeEnum;
|
|
|
1818
2245
|
* Knowledge Workflow
|
|
1819
2246
|
*/ XpertTypeEnum["Knowledge"] = "knowledge";
|
|
1820
2247
|
})(XpertTypeEnum || (XpertTypeEnum = {}));
|
|
2248
|
+
/**
|
|
2249
|
+
* Config for Agent execution (Langgraph.js)
|
|
2250
|
+
*/ var DEFAULT_XPERT_AGENT_RECURSION_LIMIT = 1000;
|
|
2251
|
+
function getXpertAgentRecursionLimit(agentConfig) {
|
|
2252
|
+
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
2253
|
+
}
|
|
2254
|
+
function normalizeXpertAgentConfig(agentConfig) {
|
|
2255
|
+
return _object_spread_props$5(_object_spread$6({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
2256
|
+
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
1821
2259
|
var LongTermMemoryTypeEnum;
|
|
1822
2260
|
(function(LongTermMemoryTypeEnum) {
|
|
1823
2261
|
LongTermMemoryTypeEnum["PROFILE"] = "profile";
|
|
@@ -1901,7 +2339,7 @@ function _array_like_to_array$5(arr, len) {
|
|
|
1901
2339
|
function _array_with_holes$4(arr) {
|
|
1902
2340
|
if (Array.isArray(arr)) return arr;
|
|
1903
2341
|
}
|
|
1904
|
-
function _define_property$
|
|
2342
|
+
function _define_property$6(obj, key, value) {
|
|
1905
2343
|
if (key in obj) {
|
|
1906
2344
|
Object.defineProperty(obj, key, {
|
|
1907
2345
|
value: value,
|
|
@@ -1941,7 +2379,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
1941
2379
|
function _non_iterable_rest$4() {
|
|
1942
2380
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1943
2381
|
}
|
|
1944
|
-
function _object_spread$
|
|
2382
|
+
function _object_spread$5(target) {
|
|
1945
2383
|
for(var i = 1; i < arguments.length; i++){
|
|
1946
2384
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1947
2385
|
var ownKeys = Object.keys(source);
|
|
@@ -1951,12 +2389,12 @@ function _object_spread$4(target) {
|
|
|
1951
2389
|
}));
|
|
1952
2390
|
}
|
|
1953
2391
|
ownKeys.forEach(function(key) {
|
|
1954
|
-
_define_property$
|
|
2392
|
+
_define_property$6(target, key, source[key]);
|
|
1955
2393
|
});
|
|
1956
2394
|
}
|
|
1957
2395
|
return target;
|
|
1958
2396
|
}
|
|
1959
|
-
function ownKeys$
|
|
2397
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
1960
2398
|
var keys = Object.keys(object);
|
|
1961
2399
|
if (Object.getOwnPropertySymbols) {
|
|
1962
2400
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1964,12 +2402,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
1964
2402
|
}
|
|
1965
2403
|
return keys;
|
|
1966
2404
|
}
|
|
1967
|
-
function _object_spread_props$
|
|
2405
|
+
function _object_spread_props$4(target, source) {
|
|
1968
2406
|
source = source != null ? source : {};
|
|
1969
2407
|
if (Object.getOwnPropertyDescriptors) {
|
|
1970
2408
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1971
2409
|
} else {
|
|
1972
|
-
ownKeys$
|
|
2410
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
1973
2411
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1974
2412
|
});
|
|
1975
2413
|
}
|
|
@@ -2001,6 +2439,9 @@ var STATE_SYS_VOLUME = "volume";
|
|
|
2001
2439
|
/**
|
|
2002
2440
|
* URL for workspace files in sandbox environment
|
|
2003
2441
|
*/ var STATE_SYS_WORKSPACE_URL = "workspace_url";
|
|
2442
|
+
/**
|
|
2443
|
+
* Current runtime thread id
|
|
2444
|
+
*/ var STATE_SYS_THREAD_ID = "thread_id";
|
|
2004
2445
|
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
2005
2446
|
// Helpers
|
|
2006
2447
|
function channelName(name) {
|
|
@@ -2018,9 +2459,9 @@ function messageContentText(content) {
|
|
|
2018
2459
|
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
|
|
2019
2460
|
type: "project",
|
|
2020
2461
|
id: ""
|
|
2021
|
-
} : (configurable === null || configurable === void 0 ? void 0 : configurable.thread_id) ? {
|
|
2022
|
-
type: "
|
|
2023
|
-
id:
|
|
2462
|
+
} : (configurable === null || configurable === void 0 ? void 0 : configurable.userId) || (configurable === null || configurable === void 0 ? void 0 : configurable.thread_id) ? {
|
|
2463
|
+
type: "user",
|
|
2464
|
+
id: ""
|
|
2024
2465
|
} : {};
|
|
2025
2466
|
}
|
|
2026
2467
|
function getToolCallFromConfig(config) {
|
|
@@ -2061,7 +2502,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
2061
2502
|
var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2062
2503
|
if (variableName) {
|
|
2063
2504
|
var _state_agentChannelName;
|
|
2064
|
-
state[agentChannelName] = _object_spread_props$
|
|
2505
|
+
state[agentChannelName] = _object_spread_props$4(_object_spread$5({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$6({}, variableName, value));
|
|
2065
2506
|
} else {
|
|
2066
2507
|
state[agentChannelName] = value;
|
|
2067
2508
|
}
|
|
@@ -2234,7 +2675,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
2234
2675
|
return letterStartSUID("KnowledgeBase_");
|
|
2235
2676
|
}
|
|
2236
2677
|
|
|
2237
|
-
function _define_property$
|
|
2678
|
+
function _define_property$5(obj, key, value) {
|
|
2238
2679
|
if (key in obj) {
|
|
2239
2680
|
Object.defineProperty(obj, key, {
|
|
2240
2681
|
value: value,
|
|
@@ -2247,7 +2688,7 @@ function _define_property$4(obj, key, value) {
|
|
|
2247
2688
|
}
|
|
2248
2689
|
return obj;
|
|
2249
2690
|
}
|
|
2250
|
-
function _object_spread$
|
|
2691
|
+
function _object_spread$4(target) {
|
|
2251
2692
|
for(var i = 1; i < arguments.length; i++){
|
|
2252
2693
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2253
2694
|
var ownKeys = Object.keys(source);
|
|
@@ -2257,7 +2698,7 @@ function _object_spread$3(target) {
|
|
|
2257
2698
|
}));
|
|
2258
2699
|
}
|
|
2259
2700
|
ownKeys.forEach(function(key) {
|
|
2260
|
-
_define_property$
|
|
2701
|
+
_define_property$5(target, key, source[key]);
|
|
2261
2702
|
});
|
|
2262
2703
|
}
|
|
2263
2704
|
return target;
|
|
@@ -2277,7 +2718,7 @@ function _object_spread$3(target) {
|
|
|
2277
2718
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
2278
2719
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
2279
2720
|
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
2280
|
-
var KDocumentSourceType = _object_spread$
|
|
2721
|
+
var KDocumentSourceType = _object_spread$4({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
|
|
2281
2722
|
/**
|
|
2282
2723
|
* Document type category, determine how to process the document.
|
|
2283
2724
|
*/ var KBDocumentCategoryEnum;
|
|
@@ -2412,6 +2853,45 @@ var AIPermissionsEnum;
|
|
|
2412
2853
|
XpertAgentExecutionStatusEnum["INTERRUPTED"] = "interrupted";
|
|
2413
2854
|
})(XpertAgentExecutionStatusEnum || (XpertAgentExecutionStatusEnum = {}));
|
|
2414
2855
|
|
|
2856
|
+
var SANDBOX_TERMINAL_NAMESPACE = "sandbox-terminal";
|
|
2857
|
+
var SandboxTerminalClientEvent;
|
|
2858
|
+
(function(SandboxTerminalClientEvent) {
|
|
2859
|
+
SandboxTerminalClientEvent["Open"] = "open";
|
|
2860
|
+
SandboxTerminalClientEvent["Input"] = "input";
|
|
2861
|
+
SandboxTerminalClientEvent["Resize"] = "resize";
|
|
2862
|
+
SandboxTerminalClientEvent["Close"] = "close";
|
|
2863
|
+
})(SandboxTerminalClientEvent || (SandboxTerminalClientEvent = {}));
|
|
2864
|
+
var SandboxTerminalServerEvent;
|
|
2865
|
+
(function(SandboxTerminalServerEvent) {
|
|
2866
|
+
SandboxTerminalServerEvent["Opened"] = "opened";
|
|
2867
|
+
SandboxTerminalServerEvent["Output"] = "output";
|
|
2868
|
+
SandboxTerminalServerEvent["Exit"] = "exit";
|
|
2869
|
+
SandboxTerminalServerEvent["Error"] = "error";
|
|
2870
|
+
SandboxTerminalServerEvent["Closed"] = "closed";
|
|
2871
|
+
})(SandboxTerminalServerEvent || (SandboxTerminalServerEvent = {}));
|
|
2872
|
+
var SandboxTerminalClosedReason;
|
|
2873
|
+
(function(SandboxTerminalClosedReason) {
|
|
2874
|
+
SandboxTerminalClosedReason["ClientClosed"] = "client_closed";
|
|
2875
|
+
SandboxTerminalClosedReason["Error"] = "error";
|
|
2876
|
+
SandboxTerminalClosedReason["OpenFailed"] = "open_failed";
|
|
2877
|
+
SandboxTerminalClosedReason["ProcessExited"] = "process_exited";
|
|
2878
|
+
SandboxTerminalClosedReason["SocketDisconnected"] = "socket_disconnected";
|
|
2879
|
+
SandboxTerminalClosedReason["UnsupportedProvider"] = "unsupported_provider";
|
|
2880
|
+
})(SandboxTerminalClosedReason || (SandboxTerminalClosedReason = {}));
|
|
2881
|
+
var SandboxTerminalErrorCode;
|
|
2882
|
+
(function(SandboxTerminalErrorCode) {
|
|
2883
|
+
SandboxTerminalErrorCode["CloseFailed"] = "close_failed";
|
|
2884
|
+
SandboxTerminalErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2885
|
+
SandboxTerminalErrorCode["ConversationRequired"] = "conversation_required";
|
|
2886
|
+
SandboxTerminalErrorCode["InputFailed"] = "input_failed";
|
|
2887
|
+
SandboxTerminalErrorCode["OpenFailed"] = "open_failed";
|
|
2888
|
+
SandboxTerminalErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2889
|
+
SandboxTerminalErrorCode["ResizeFailed"] = "resize_failed";
|
|
2890
|
+
SandboxTerminalErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2891
|
+
SandboxTerminalErrorCode["SessionNotFound"] = "session_not_found";
|
|
2892
|
+
SandboxTerminalErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2893
|
+
})(SandboxTerminalErrorCode || (SandboxTerminalErrorCode = {}));
|
|
2894
|
+
|
|
2415
2895
|
var ToolParameterType;
|
|
2416
2896
|
(function(ToolParameterType) {
|
|
2417
2897
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2579,7 +3059,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2579
3059
|
function _array_without_holes$1(arr) {
|
|
2580
3060
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2581
3061
|
}
|
|
2582
|
-
function _define_property$
|
|
3062
|
+
function _define_property$4(obj, key, value) {
|
|
2583
3063
|
if (key in obj) {
|
|
2584
3064
|
Object.defineProperty(obj, key, {
|
|
2585
3065
|
value: value,
|
|
@@ -2598,7 +3078,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2598
3078
|
function _non_iterable_spread$1() {
|
|
2599
3079
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2600
3080
|
}
|
|
2601
|
-
function _object_spread$
|
|
3081
|
+
function _object_spread$3(target) {
|
|
2602
3082
|
for(var i = 1; i < arguments.length; i++){
|
|
2603
3083
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2604
3084
|
var ownKeys = Object.keys(source);
|
|
@@ -2608,12 +3088,12 @@ function _object_spread$2(target) {
|
|
|
2608
3088
|
}));
|
|
2609
3089
|
}
|
|
2610
3090
|
ownKeys.forEach(function(key) {
|
|
2611
|
-
_define_property$
|
|
3091
|
+
_define_property$4(target, key, source[key]);
|
|
2612
3092
|
});
|
|
2613
3093
|
}
|
|
2614
3094
|
return target;
|
|
2615
3095
|
}
|
|
2616
|
-
function ownKeys$
|
|
3096
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2617
3097
|
var keys = Object.keys(object);
|
|
2618
3098
|
if (Object.getOwnPropertySymbols) {
|
|
2619
3099
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2621,12 +3101,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2621
3101
|
}
|
|
2622
3102
|
return keys;
|
|
2623
3103
|
}
|
|
2624
|
-
function _object_spread_props$
|
|
3104
|
+
function _object_spread_props$3(target, source) {
|
|
2625
3105
|
source = source != null ? source : {};
|
|
2626
3106
|
if (Object.getOwnPropertyDescriptors) {
|
|
2627
3107
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2628
3108
|
} else {
|
|
2629
|
-
ownKeys$
|
|
3109
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2630
3110
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2631
3111
|
});
|
|
2632
3112
|
}
|
|
@@ -2947,9 +3427,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
2947
3427
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
2948
3428
|
replacedNode = true;
|
|
2949
3429
|
var _node_entity;
|
|
2950
|
-
return _object_spread_props$
|
|
3430
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
2951
3431
|
key: targetKey,
|
|
2952
|
-
entity: _object_spread_props$
|
|
3432
|
+
entity: _object_spread_props$3(_object_spread$3({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
2953
3433
|
key: targetKey
|
|
2954
3434
|
})
|
|
2955
3435
|
});
|
|
@@ -2965,17 +3445,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
2965
3445
|
if (from === connection.from && to === connection.to) {
|
|
2966
3446
|
return connection;
|
|
2967
3447
|
}
|
|
2968
|
-
return _object_spread_props$
|
|
3448
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
2969
3449
|
from: from,
|
|
2970
3450
|
to: to,
|
|
2971
3451
|
key: "".concat(from, "/").concat(to)
|
|
2972
3452
|
});
|
|
2973
3453
|
});
|
|
2974
|
-
return _object_spread_props$
|
|
2975
|
-
team: draft.team ? _object_spread_props$
|
|
2976
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
3454
|
+
return _object_spread_props$3(_object_spread$3({}, draft), {
|
|
3455
|
+
team: draft.team ? _object_spread_props$3(_object_spread$3({}, draft.team), {
|
|
3456
|
+
agent: draft.team.agent ? _object_spread_props$3(_object_spread$3({}, draft.team.agent, agent), {
|
|
2977
3457
|
key: targetKey
|
|
2978
|
-
}) : _object_spread_props$
|
|
3458
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
2979
3459
|
key: targetKey
|
|
2980
3460
|
})
|
|
2981
3461
|
}) : draft.team,
|
|
@@ -3062,7 +3542,7 @@ var MCPServerType;
|
|
|
3062
3542
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3063
3543
|
* @param documents - A flat array of DocumentInterface objects
|
|
3064
3544
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3065
|
-
*/ function _define_property$
|
|
3545
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3066
3546
|
if (key in obj) {
|
|
3067
3547
|
Object.defineProperty(obj, key, {
|
|
3068
3548
|
value: value,
|
|
@@ -3075,7 +3555,7 @@ var MCPServerType;
|
|
|
3075
3555
|
}
|
|
3076
3556
|
return obj;
|
|
3077
3557
|
}
|
|
3078
|
-
function _object_spread$
|
|
3558
|
+
function _object_spread$2(target) {
|
|
3079
3559
|
for(var i = 1; i < arguments.length; i++){
|
|
3080
3560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3081
3561
|
var ownKeys = Object.keys(source);
|
|
@@ -3085,12 +3565,12 @@ function _object_spread$1(target) {
|
|
|
3085
3565
|
}));
|
|
3086
3566
|
}
|
|
3087
3567
|
ownKeys.forEach(function(key) {
|
|
3088
|
-
_define_property$
|
|
3568
|
+
_define_property$3(target, key, source[key]);
|
|
3089
3569
|
});
|
|
3090
3570
|
}
|
|
3091
3571
|
return target;
|
|
3092
3572
|
}
|
|
3093
|
-
function ownKeys$
|
|
3573
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3094
3574
|
var keys = Object.keys(object);
|
|
3095
3575
|
if (Object.getOwnPropertySymbols) {
|
|
3096
3576
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3098,12 +3578,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3098
3578
|
}
|
|
3099
3579
|
return keys;
|
|
3100
3580
|
}
|
|
3101
|
-
function _object_spread_props$
|
|
3581
|
+
function _object_spread_props$2(target, source) {
|
|
3102
3582
|
source = source != null ? source : {};
|
|
3103
3583
|
if (Object.getOwnPropertyDescriptors) {
|
|
3104
3584
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3105
3585
|
} else {
|
|
3106
|
-
ownKeys$
|
|
3586
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3107
3587
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3108
3588
|
});
|
|
3109
3589
|
}
|
|
@@ -3117,10 +3597,11 @@ function buildChunkTree(documents) {
|
|
|
3117
3597
|
try {
|
|
3118
3598
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3119
3599
|
var doc = _step.value;
|
|
3120
|
-
var
|
|
3121
|
-
if (
|
|
3122
|
-
map.set(
|
|
3123
|
-
metadata: _object_spread_props$
|
|
3600
|
+
var chunkId = getChunkNodeId(doc);
|
|
3601
|
+
if (chunkId) {
|
|
3602
|
+
map.set(chunkId, _object_spread_props$2(_object_spread$2({}, doc), {
|
|
3603
|
+
metadata: _object_spread_props$2(_object_spread$2({}, doc.metadata), {
|
|
3604
|
+
chunkId: chunkId,
|
|
3124
3605
|
children: []
|
|
3125
3606
|
})
|
|
3126
3607
|
}));
|
|
@@ -3171,6 +3652,16 @@ function buildChunkTree(documents) {
|
|
|
3171
3652
|
}
|
|
3172
3653
|
return roots;
|
|
3173
3654
|
}
|
|
3655
|
+
function getChunkNodeId(document) {
|
|
3656
|
+
var _document_metadata;
|
|
3657
|
+
if ((_document_metadata = document.metadata) === null || _document_metadata === void 0 ? void 0 : _document_metadata.chunkId) {
|
|
3658
|
+
return document.metadata.chunkId;
|
|
3659
|
+
}
|
|
3660
|
+
if ("id" in document && typeof document.id === "string" && document.id) {
|
|
3661
|
+
return document.id;
|
|
3662
|
+
}
|
|
3663
|
+
return undefined;
|
|
3664
|
+
}
|
|
3174
3665
|
/**
|
|
3175
3666
|
* Find all leaf nodes (nodes without children).
|
|
3176
3667
|
*
|
|
@@ -3235,6 +3726,55 @@ function genXpertSkillKey() {
|
|
|
3235
3726
|
return letterStartSUID("Skill_");
|
|
3236
3727
|
}
|
|
3237
3728
|
|
|
3729
|
+
function _define_property$2(obj, key, value) {
|
|
3730
|
+
if (key in obj) {
|
|
3731
|
+
Object.defineProperty(obj, key, {
|
|
3732
|
+
value: value,
|
|
3733
|
+
enumerable: true,
|
|
3734
|
+
configurable: true,
|
|
3735
|
+
writable: true
|
|
3736
|
+
});
|
|
3737
|
+
} else {
|
|
3738
|
+
obj[key] = value;
|
|
3739
|
+
}
|
|
3740
|
+
return obj;
|
|
3741
|
+
}
|
|
3742
|
+
function _object_spread$1(target) {
|
|
3743
|
+
for(var i = 1; i < arguments.length; i++){
|
|
3744
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3745
|
+
var ownKeys = Object.keys(source);
|
|
3746
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3747
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3748
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3749
|
+
}));
|
|
3750
|
+
}
|
|
3751
|
+
ownKeys.forEach(function(key) {
|
|
3752
|
+
_define_property$2(target, key, source[key]);
|
|
3753
|
+
});
|
|
3754
|
+
}
|
|
3755
|
+
return target;
|
|
3756
|
+
}
|
|
3757
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
3758
|
+
var keys = Object.keys(object);
|
|
3759
|
+
if (Object.getOwnPropertySymbols) {
|
|
3760
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3761
|
+
keys.push.apply(keys, symbols);
|
|
3762
|
+
}
|
|
3763
|
+
return keys;
|
|
3764
|
+
}
|
|
3765
|
+
function _object_spread_props$1(target, source) {
|
|
3766
|
+
source = source != null ? source : {};
|
|
3767
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3768
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3769
|
+
} else {
|
|
3770
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
3771
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3774
|
+
return target;
|
|
3775
|
+
}
|
|
3776
|
+
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
3777
|
+
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
3238
3778
|
function isMiddlewareToolEnabled(config) {
|
|
3239
3779
|
if (typeof config === "boolean") {
|
|
3240
3780
|
return config;
|
|
@@ -3244,6 +3784,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3244
3784
|
function genXpertMiddlewareKey() {
|
|
3245
3785
|
return letterStartSUID("Middleware_");
|
|
3246
3786
|
}
|
|
3787
|
+
function normalizeMiddlewareProvider(provider) {
|
|
3788
|
+
if (provider === LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME) {
|
|
3789
|
+
return CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
3790
|
+
}
|
|
3791
|
+
return provider !== null && provider !== void 0 ? provider : "";
|
|
3792
|
+
}
|
|
3793
|
+
function normalizeMiddlewareNode(node) {
|
|
3794
|
+
var _node_entity;
|
|
3795
|
+
if ((node === null || node === void 0 ? void 0 : node.type) !== "workflow" || ((_node_entity = node.entity) === null || _node_entity === void 0 ? void 0 : _node_entity.type) !== WorkflowNodeTypeEnum.MIDDLEWARE) {
|
|
3796
|
+
return node;
|
|
3797
|
+
}
|
|
3798
|
+
var entity = node.entity;
|
|
3799
|
+
var provider = normalizeMiddlewareProvider(entity.provider);
|
|
3800
|
+
if (provider === entity.provider) {
|
|
3801
|
+
return node;
|
|
3802
|
+
}
|
|
3803
|
+
return _object_spread_props$1(_object_spread$1({}, node), {
|
|
3804
|
+
entity: _object_spread_props$1(_object_spread$1({}, entity), {
|
|
3805
|
+
provider: provider
|
|
3806
|
+
})
|
|
3807
|
+
});
|
|
3808
|
+
}
|
|
3809
|
+
function normalizeMiddlewareNodes(nodes) {
|
|
3810
|
+
return (nodes !== null && nodes !== void 0 ? nodes : []).map(function(node) {
|
|
3811
|
+
return normalizeMiddlewareNode(node);
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3247
3814
|
var normalizeNodeKey = function(key) {
|
|
3248
3815
|
var _key_split;
|
|
3249
3816
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3265,6 +3832,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3265
3832
|
return middlewares;
|
|
3266
3833
|
}
|
|
3267
3834
|
|
|
3835
|
+
var CONTEXT_COMPRESSION_COMPONENT_TYPE = "context-compression";
|
|
3836
|
+
function isContextCompressionComponentData(value) {
|
|
3837
|
+
if (!value || typeof value !== "object") {
|
|
3838
|
+
return false;
|
|
3839
|
+
}
|
|
3840
|
+
var candidate = value;
|
|
3841
|
+
return candidate.category === "Tool" && candidate.type === CONTEXT_COMPRESSION_COMPONENT_TYPE && (candidate.status === "running" || candidate.status === "success" || candidate.status === "fail");
|
|
3842
|
+
}
|
|
3843
|
+
|
|
3268
3844
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3269
3845
|
"user",
|
|
3270
3846
|
"project",
|
|
@@ -4652,6 +5228,7 @@ function isInterruptMessage(obj) {
|
|
|
4652
5228
|
*/ var ApiKeyBindingType;
|
|
4653
5229
|
(function(ApiKeyBindingType) {
|
|
4654
5230
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5231
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4655
5232
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4656
5233
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4657
5234
|
/**
|
|
@@ -4789,4 +5366,4 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
4789
5366
|
FAILED: "failed"
|
|
4790
5367
|
};
|
|
4791
5368
|
|
|
4792
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, 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_SYSTEM_ROLES, 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, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RoleTypeEnum, RolesEnum, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, 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, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, inferMessageAppendContext, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isToolEnabled, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, omitXpertRelations, replaceAgentInDraft, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
|
|
5369
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, 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_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, 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, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, 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, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RoleTypeEnum, RolesEnum, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, 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, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, ensureAssistantBindingSkillWorkspacePreference, extractSemanticModelDraft, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, inferMessageAppendContext, isAgentKey, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isToolEnabled, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, replaceAgentInDraft, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
|