@xpert-ai/contracts 3.9.0-beta.3 → 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 +586 -57
- package/index.esm.js +568 -58
- package/package.json +1 -1
- package/src/ai/assistant-binding.model.d.ts +21 -1
- package/src/ai/chat-event.model.d.ts +1 -1
- package/src/ai/chat-message.model.d.ts +23 -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/xpert-template.model.d.ts +63 -0
- package/src/ai/xpert-workspace.model.d.ts +1 -1
- package/src/ai/xpert.model.d.ts +8 -11
- 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$7(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,7 +1911,7 @@ function _object_spread$6(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;
|
|
@@ -1546,12 +1920,12 @@ var CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = "thread_context_usage";
|
|
|
1546
1920
|
var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
1547
1921
|
var CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = "follow_up_consumed";
|
|
1548
1922
|
function createConversationTitleSummaryEvent(event) {
|
|
1549
|
-
return _object_spread$
|
|
1923
|
+
return _object_spread$7({
|
|
1550
1924
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1551
1925
|
}, event);
|
|
1552
1926
|
}
|
|
1553
1927
|
function createFollowUpConsumedEvent(event) {
|
|
1554
|
-
return _object_spread$
|
|
1928
|
+
return _object_spread$7({
|
|
1555
1929
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1556
1930
|
}, event);
|
|
1557
1931
|
}
|
|
@@ -1812,7 +2186,7 @@ function workflowNodeIdentifier(node) {
|
|
|
1812
2186
|
return node.title || node.key;
|
|
1813
2187
|
}
|
|
1814
2188
|
|
|
1815
|
-
function _define_property$
|
|
2189
|
+
function _define_property$7(obj, key, value) {
|
|
1816
2190
|
if (key in obj) {
|
|
1817
2191
|
Object.defineProperty(obj, key, {
|
|
1818
2192
|
value: value,
|
|
@@ -1825,7 +2199,7 @@ function _define_property$6(obj, key, value) {
|
|
|
1825
2199
|
}
|
|
1826
2200
|
return obj;
|
|
1827
2201
|
}
|
|
1828
|
-
function _object_spread$
|
|
2202
|
+
function _object_spread$6(target) {
|
|
1829
2203
|
for(var i = 1; i < arguments.length; i++){
|
|
1830
2204
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1831
2205
|
var ownKeys = Object.keys(source);
|
|
@@ -1835,12 +2209,12 @@ function _object_spread$5(target) {
|
|
|
1835
2209
|
}));
|
|
1836
2210
|
}
|
|
1837
2211
|
ownKeys.forEach(function(key) {
|
|
1838
|
-
_define_property$
|
|
2212
|
+
_define_property$7(target, key, source[key]);
|
|
1839
2213
|
});
|
|
1840
2214
|
}
|
|
1841
2215
|
return target;
|
|
1842
2216
|
}
|
|
1843
|
-
function ownKeys$
|
|
2217
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
1844
2218
|
var keys = Object.keys(object);
|
|
1845
2219
|
if (Object.getOwnPropertySymbols) {
|
|
1846
2220
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1848,12 +2222,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
1848
2222
|
}
|
|
1849
2223
|
return keys;
|
|
1850
2224
|
}
|
|
1851
|
-
function _object_spread_props$
|
|
2225
|
+
function _object_spread_props$5(target, source) {
|
|
1852
2226
|
source = source != null ? source : {};
|
|
1853
2227
|
if (Object.getOwnPropertyDescriptors) {
|
|
1854
2228
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1855
2229
|
} else {
|
|
1856
|
-
ownKeys$
|
|
2230
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
1857
2231
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1858
2232
|
});
|
|
1859
2233
|
}
|
|
@@ -1878,7 +2252,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
1878
2252
|
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
1879
2253
|
}
|
|
1880
2254
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
1881
|
-
return _object_spread_props$
|
|
2255
|
+
return _object_spread_props$5(_object_spread$6({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
1882
2256
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
1883
2257
|
});
|
|
1884
2258
|
}
|
|
@@ -1965,7 +2339,7 @@ function _array_like_to_array$5(arr, len) {
|
|
|
1965
2339
|
function _array_with_holes$4(arr) {
|
|
1966
2340
|
if (Array.isArray(arr)) return arr;
|
|
1967
2341
|
}
|
|
1968
|
-
function _define_property$
|
|
2342
|
+
function _define_property$6(obj, key, value) {
|
|
1969
2343
|
if (key in obj) {
|
|
1970
2344
|
Object.defineProperty(obj, key, {
|
|
1971
2345
|
value: value,
|
|
@@ -2005,7 +2379,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
2005
2379
|
function _non_iterable_rest$4() {
|
|
2006
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.");
|
|
2007
2381
|
}
|
|
2008
|
-
function _object_spread$
|
|
2382
|
+
function _object_spread$5(target) {
|
|
2009
2383
|
for(var i = 1; i < arguments.length; i++){
|
|
2010
2384
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2011
2385
|
var ownKeys = Object.keys(source);
|
|
@@ -2015,12 +2389,12 @@ function _object_spread$4(target) {
|
|
|
2015
2389
|
}));
|
|
2016
2390
|
}
|
|
2017
2391
|
ownKeys.forEach(function(key) {
|
|
2018
|
-
_define_property$
|
|
2392
|
+
_define_property$6(target, key, source[key]);
|
|
2019
2393
|
});
|
|
2020
2394
|
}
|
|
2021
2395
|
return target;
|
|
2022
2396
|
}
|
|
2023
|
-
function ownKeys$
|
|
2397
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
2024
2398
|
var keys = Object.keys(object);
|
|
2025
2399
|
if (Object.getOwnPropertySymbols) {
|
|
2026
2400
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2028,12 +2402,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
2028
2402
|
}
|
|
2029
2403
|
return keys;
|
|
2030
2404
|
}
|
|
2031
|
-
function _object_spread_props$
|
|
2405
|
+
function _object_spread_props$4(target, source) {
|
|
2032
2406
|
source = source != null ? source : {};
|
|
2033
2407
|
if (Object.getOwnPropertyDescriptors) {
|
|
2034
2408
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2035
2409
|
} else {
|
|
2036
|
-
ownKeys$
|
|
2410
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
2037
2411
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2038
2412
|
});
|
|
2039
2413
|
}
|
|
@@ -2128,7 +2502,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
2128
2502
|
var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2129
2503
|
if (variableName) {
|
|
2130
2504
|
var _state_agentChannelName;
|
|
2131
|
-
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));
|
|
2132
2506
|
} else {
|
|
2133
2507
|
state[agentChannelName] = value;
|
|
2134
2508
|
}
|
|
@@ -2301,7 +2675,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
2301
2675
|
return letterStartSUID("KnowledgeBase_");
|
|
2302
2676
|
}
|
|
2303
2677
|
|
|
2304
|
-
function _define_property$
|
|
2678
|
+
function _define_property$5(obj, key, value) {
|
|
2305
2679
|
if (key in obj) {
|
|
2306
2680
|
Object.defineProperty(obj, key, {
|
|
2307
2681
|
value: value,
|
|
@@ -2314,7 +2688,7 @@ function _define_property$4(obj, key, value) {
|
|
|
2314
2688
|
}
|
|
2315
2689
|
return obj;
|
|
2316
2690
|
}
|
|
2317
|
-
function _object_spread$
|
|
2691
|
+
function _object_spread$4(target) {
|
|
2318
2692
|
for(var i = 1; i < arguments.length; i++){
|
|
2319
2693
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2320
2694
|
var ownKeys = Object.keys(source);
|
|
@@ -2324,7 +2698,7 @@ function _object_spread$3(target) {
|
|
|
2324
2698
|
}));
|
|
2325
2699
|
}
|
|
2326
2700
|
ownKeys.forEach(function(key) {
|
|
2327
|
-
_define_property$
|
|
2701
|
+
_define_property$5(target, key, source[key]);
|
|
2328
2702
|
});
|
|
2329
2703
|
}
|
|
2330
2704
|
return target;
|
|
@@ -2344,7 +2718,7 @@ function _object_spread$3(target) {
|
|
|
2344
2718
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
2345
2719
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
2346
2720
|
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
2347
|
-
var KDocumentSourceType = _object_spread$
|
|
2721
|
+
var KDocumentSourceType = _object_spread$4({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
|
|
2348
2722
|
/**
|
|
2349
2723
|
* Document type category, determine how to process the document.
|
|
2350
2724
|
*/ var KBDocumentCategoryEnum;
|
|
@@ -2479,6 +2853,45 @@ var AIPermissionsEnum;
|
|
|
2479
2853
|
XpertAgentExecutionStatusEnum["INTERRUPTED"] = "interrupted";
|
|
2480
2854
|
})(XpertAgentExecutionStatusEnum || (XpertAgentExecutionStatusEnum = {}));
|
|
2481
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
|
+
|
|
2482
2895
|
var ToolParameterType;
|
|
2483
2896
|
(function(ToolParameterType) {
|
|
2484
2897
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2646,7 +3059,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2646
3059
|
function _array_without_holes$1(arr) {
|
|
2647
3060
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2648
3061
|
}
|
|
2649
|
-
function _define_property$
|
|
3062
|
+
function _define_property$4(obj, key, value) {
|
|
2650
3063
|
if (key in obj) {
|
|
2651
3064
|
Object.defineProperty(obj, key, {
|
|
2652
3065
|
value: value,
|
|
@@ -2665,7 +3078,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2665
3078
|
function _non_iterable_spread$1() {
|
|
2666
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.");
|
|
2667
3080
|
}
|
|
2668
|
-
function _object_spread$
|
|
3081
|
+
function _object_spread$3(target) {
|
|
2669
3082
|
for(var i = 1; i < arguments.length; i++){
|
|
2670
3083
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2671
3084
|
var ownKeys = Object.keys(source);
|
|
@@ -2675,12 +3088,12 @@ function _object_spread$2(target) {
|
|
|
2675
3088
|
}));
|
|
2676
3089
|
}
|
|
2677
3090
|
ownKeys.forEach(function(key) {
|
|
2678
|
-
_define_property$
|
|
3091
|
+
_define_property$4(target, key, source[key]);
|
|
2679
3092
|
});
|
|
2680
3093
|
}
|
|
2681
3094
|
return target;
|
|
2682
3095
|
}
|
|
2683
|
-
function ownKeys$
|
|
3096
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2684
3097
|
var keys = Object.keys(object);
|
|
2685
3098
|
if (Object.getOwnPropertySymbols) {
|
|
2686
3099
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2688,12 +3101,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2688
3101
|
}
|
|
2689
3102
|
return keys;
|
|
2690
3103
|
}
|
|
2691
|
-
function _object_spread_props$
|
|
3104
|
+
function _object_spread_props$3(target, source) {
|
|
2692
3105
|
source = source != null ? source : {};
|
|
2693
3106
|
if (Object.getOwnPropertyDescriptors) {
|
|
2694
3107
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2695
3108
|
} else {
|
|
2696
|
-
ownKeys$
|
|
3109
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2697
3110
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2698
3111
|
});
|
|
2699
3112
|
}
|
|
@@ -3014,9 +3427,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3014
3427
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
3015
3428
|
replacedNode = true;
|
|
3016
3429
|
var _node_entity;
|
|
3017
|
-
return _object_spread_props$
|
|
3430
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
3018
3431
|
key: targetKey,
|
|
3019
|
-
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), {
|
|
3020
3433
|
key: targetKey
|
|
3021
3434
|
})
|
|
3022
3435
|
});
|
|
@@ -3032,17 +3445,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3032
3445
|
if (from === connection.from && to === connection.to) {
|
|
3033
3446
|
return connection;
|
|
3034
3447
|
}
|
|
3035
|
-
return _object_spread_props$
|
|
3448
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
3036
3449
|
from: from,
|
|
3037
3450
|
to: to,
|
|
3038
3451
|
key: "".concat(from, "/").concat(to)
|
|
3039
3452
|
});
|
|
3040
3453
|
});
|
|
3041
|
-
return _object_spread_props$
|
|
3042
|
-
team: draft.team ? _object_spread_props$
|
|
3043
|
-
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), {
|
|
3044
3457
|
key: targetKey
|
|
3045
|
-
}) : _object_spread_props$
|
|
3458
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
3046
3459
|
key: targetKey
|
|
3047
3460
|
})
|
|
3048
3461
|
}) : draft.team,
|
|
@@ -3129,7 +3542,7 @@ var MCPServerType;
|
|
|
3129
3542
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3130
3543
|
* @param documents - A flat array of DocumentInterface objects
|
|
3131
3544
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3132
|
-
*/ function _define_property$
|
|
3545
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3133
3546
|
if (key in obj) {
|
|
3134
3547
|
Object.defineProperty(obj, key, {
|
|
3135
3548
|
value: value,
|
|
@@ -3142,7 +3555,7 @@ var MCPServerType;
|
|
|
3142
3555
|
}
|
|
3143
3556
|
return obj;
|
|
3144
3557
|
}
|
|
3145
|
-
function _object_spread$
|
|
3558
|
+
function _object_spread$2(target) {
|
|
3146
3559
|
for(var i = 1; i < arguments.length; i++){
|
|
3147
3560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3148
3561
|
var ownKeys = Object.keys(source);
|
|
@@ -3152,12 +3565,12 @@ function _object_spread$1(target) {
|
|
|
3152
3565
|
}));
|
|
3153
3566
|
}
|
|
3154
3567
|
ownKeys.forEach(function(key) {
|
|
3155
|
-
_define_property$
|
|
3568
|
+
_define_property$3(target, key, source[key]);
|
|
3156
3569
|
});
|
|
3157
3570
|
}
|
|
3158
3571
|
return target;
|
|
3159
3572
|
}
|
|
3160
|
-
function ownKeys$
|
|
3573
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3161
3574
|
var keys = Object.keys(object);
|
|
3162
3575
|
if (Object.getOwnPropertySymbols) {
|
|
3163
3576
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3165,12 +3578,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3165
3578
|
}
|
|
3166
3579
|
return keys;
|
|
3167
3580
|
}
|
|
3168
|
-
function _object_spread_props$
|
|
3581
|
+
function _object_spread_props$2(target, source) {
|
|
3169
3582
|
source = source != null ? source : {};
|
|
3170
3583
|
if (Object.getOwnPropertyDescriptors) {
|
|
3171
3584
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3172
3585
|
} else {
|
|
3173
|
-
ownKeys$
|
|
3586
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3174
3587
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3175
3588
|
});
|
|
3176
3589
|
}
|
|
@@ -3184,10 +3597,11 @@ function buildChunkTree(documents) {
|
|
|
3184
3597
|
try {
|
|
3185
3598
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3186
3599
|
var doc = _step.value;
|
|
3187
|
-
var
|
|
3188
|
-
if (
|
|
3189
|
-
map.set(
|
|
3190
|
-
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,
|
|
3191
3605
|
children: []
|
|
3192
3606
|
})
|
|
3193
3607
|
}));
|
|
@@ -3238,6 +3652,16 @@ function buildChunkTree(documents) {
|
|
|
3238
3652
|
}
|
|
3239
3653
|
return roots;
|
|
3240
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
|
+
}
|
|
3241
3665
|
/**
|
|
3242
3666
|
* Find all leaf nodes (nodes without children).
|
|
3243
3667
|
*
|
|
@@ -3302,6 +3726,55 @@ function genXpertSkillKey() {
|
|
|
3302
3726
|
return letterStartSUID("Skill_");
|
|
3303
3727
|
}
|
|
3304
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";
|
|
3305
3778
|
function isMiddlewareToolEnabled(config) {
|
|
3306
3779
|
if (typeof config === "boolean") {
|
|
3307
3780
|
return config;
|
|
@@ -3311,6 +3784,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3311
3784
|
function genXpertMiddlewareKey() {
|
|
3312
3785
|
return letterStartSUID("Middleware_");
|
|
3313
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
|
+
}
|
|
3314
3814
|
var normalizeNodeKey = function(key) {
|
|
3315
3815
|
var _key_split;
|
|
3316
3816
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3332,6 +3832,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3332
3832
|
return middlewares;
|
|
3333
3833
|
}
|
|
3334
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
|
+
|
|
3335
3844
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3336
3845
|
"user",
|
|
3337
3846
|
"project",
|
|
@@ -4719,6 +5228,7 @@ function isInterruptMessage(obj) {
|
|
|
4719
5228
|
*/ var ApiKeyBindingType;
|
|
4720
5229
|
(function(ApiKeyBindingType) {
|
|
4721
5230
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5231
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4722
5232
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4723
5233
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4724
5234
|
/**
|
|
@@ -4856,4 +5366,4 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
4856
5366
|
FAILED: "failed"
|
|
4857
5367
|
};
|
|
4858
5368
|
|
|
4859
|
-
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_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, 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_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, 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, 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, getXpertAgentRecursionLimit, inferMessageAppendContext, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isToolEnabled, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeXpertAgentConfig, 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 };
|