@xpert-ai/contracts 3.9.0-beta.3 → 3.9.1
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 +625 -57
- package/index.esm.js +603 -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 +69 -0
- package/src/ai/context-compression.model.d.ts +13 -0
- package/src/ai/index.d.ts +3 -0
- package/src/ai/middleware.model.d.ts +5 -0
- package/src/ai/sandbox-service.model.d.ts +62 -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 +15 -1
- package/src/ai/xpert.model.d.ts +9 -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/src/storage-file.model.d.ts +1 -0
- package/src/tenant.model.d.ts +2 -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,72 @@ 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
|
+
|
|
2895
|
+
var SANDBOX_MANAGED_SERVICE_STATUSES = [
|
|
2896
|
+
"starting",
|
|
2897
|
+
"running",
|
|
2898
|
+
"stopping",
|
|
2899
|
+
"stopped",
|
|
2900
|
+
"failed",
|
|
2901
|
+
"lost"
|
|
2902
|
+
];
|
|
2903
|
+
var SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = [
|
|
2904
|
+
"none",
|
|
2905
|
+
"http"
|
|
2906
|
+
];
|
|
2907
|
+
var SandboxManagedServiceErrorCode;
|
|
2908
|
+
(function(SandboxManagedServiceErrorCode) {
|
|
2909
|
+
SandboxManagedServiceErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2910
|
+
SandboxManagedServiceErrorCode["ConversationRequired"] = "conversation_required";
|
|
2911
|
+
SandboxManagedServiceErrorCode["PortRequired"] = "port_required";
|
|
2912
|
+
SandboxManagedServiceErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2913
|
+
SandboxManagedServiceErrorCode["PreviewUnavailable"] = "preview_unavailable";
|
|
2914
|
+
SandboxManagedServiceErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2915
|
+
SandboxManagedServiceErrorCode["ServiceNameConflict"] = "service_name_conflict";
|
|
2916
|
+
SandboxManagedServiceErrorCode["ServiceNotFound"] = "service_not_found";
|
|
2917
|
+
SandboxManagedServiceErrorCode["ServiceStartFailed"] = "service_start_failed";
|
|
2918
|
+
SandboxManagedServiceErrorCode["ServiceStopFailed"] = "service_stop_failed";
|
|
2919
|
+
SandboxManagedServiceErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2920
|
+
})(SandboxManagedServiceErrorCode || (SandboxManagedServiceErrorCode = {}));
|
|
2921
|
+
|
|
2482
2922
|
var ToolParameterType;
|
|
2483
2923
|
(function(ToolParameterType) {
|
|
2484
2924
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2609,6 +3049,14 @@ var ToolTagEnum;
|
|
|
2609
3049
|
ToolTagEnum["OTHER"] = "other";
|
|
2610
3050
|
})(ToolTagEnum || (ToolTagEnum = {}));
|
|
2611
3051
|
|
|
3052
|
+
function getXpertWorkspaceVisibility(workspace) {
|
|
3053
|
+
var _workspace_settings_access, _workspace_settings;
|
|
3054
|
+
return (workspace === null || workspace === void 0 ? void 0 : (_workspace_settings = workspace.settings) === null || _workspace_settings === void 0 ? void 0 : (_workspace_settings_access = _workspace_settings.access) === null || _workspace_settings_access === void 0 ? void 0 : _workspace_settings_access.visibility) === "tenant-shared" ? "tenant-shared" : "private";
|
|
3055
|
+
}
|
|
3056
|
+
function isTenantSharedXpertWorkspace(workspace) {
|
|
3057
|
+
return getXpertWorkspaceVisibility(workspace) === "tenant-shared";
|
|
3058
|
+
}
|
|
3059
|
+
|
|
2612
3060
|
/**
|
|
2613
3061
|
* Table status
|
|
2614
3062
|
*/ var XpertTableStatus;
|
|
@@ -2646,7 +3094,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2646
3094
|
function _array_without_holes$1(arr) {
|
|
2647
3095
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2648
3096
|
}
|
|
2649
|
-
function _define_property$
|
|
3097
|
+
function _define_property$4(obj, key, value) {
|
|
2650
3098
|
if (key in obj) {
|
|
2651
3099
|
Object.defineProperty(obj, key, {
|
|
2652
3100
|
value: value,
|
|
@@ -2665,7 +3113,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2665
3113
|
function _non_iterable_spread$1() {
|
|
2666
3114
|
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
3115
|
}
|
|
2668
|
-
function _object_spread$
|
|
3116
|
+
function _object_spread$3(target) {
|
|
2669
3117
|
for(var i = 1; i < arguments.length; i++){
|
|
2670
3118
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2671
3119
|
var ownKeys = Object.keys(source);
|
|
@@ -2675,12 +3123,12 @@ function _object_spread$2(target) {
|
|
|
2675
3123
|
}));
|
|
2676
3124
|
}
|
|
2677
3125
|
ownKeys.forEach(function(key) {
|
|
2678
|
-
_define_property$
|
|
3126
|
+
_define_property$4(target, key, source[key]);
|
|
2679
3127
|
});
|
|
2680
3128
|
}
|
|
2681
3129
|
return target;
|
|
2682
3130
|
}
|
|
2683
|
-
function ownKeys$
|
|
3131
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2684
3132
|
var keys = Object.keys(object);
|
|
2685
3133
|
if (Object.getOwnPropertySymbols) {
|
|
2686
3134
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2688,12 +3136,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2688
3136
|
}
|
|
2689
3137
|
return keys;
|
|
2690
3138
|
}
|
|
2691
|
-
function _object_spread_props$
|
|
3139
|
+
function _object_spread_props$3(target, source) {
|
|
2692
3140
|
source = source != null ? source : {};
|
|
2693
3141
|
if (Object.getOwnPropertyDescriptors) {
|
|
2694
3142
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2695
3143
|
} else {
|
|
2696
|
-
ownKeys$
|
|
3144
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2697
3145
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2698
3146
|
});
|
|
2699
3147
|
}
|
|
@@ -3014,9 +3462,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3014
3462
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
3015
3463
|
replacedNode = true;
|
|
3016
3464
|
var _node_entity;
|
|
3017
|
-
return _object_spread_props$
|
|
3465
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
3018
3466
|
key: targetKey,
|
|
3019
|
-
entity: _object_spread_props$
|
|
3467
|
+
entity: _object_spread_props$3(_object_spread$3({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
3020
3468
|
key: targetKey
|
|
3021
3469
|
})
|
|
3022
3470
|
});
|
|
@@ -3032,17 +3480,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3032
3480
|
if (from === connection.from && to === connection.to) {
|
|
3033
3481
|
return connection;
|
|
3034
3482
|
}
|
|
3035
|
-
return _object_spread_props$
|
|
3483
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
3036
3484
|
from: from,
|
|
3037
3485
|
to: to,
|
|
3038
3486
|
key: "".concat(from, "/").concat(to)
|
|
3039
3487
|
});
|
|
3040
3488
|
});
|
|
3041
|
-
return _object_spread_props$
|
|
3042
|
-
team: draft.team ? _object_spread_props$
|
|
3043
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
3489
|
+
return _object_spread_props$3(_object_spread$3({}, draft), {
|
|
3490
|
+
team: draft.team ? _object_spread_props$3(_object_spread$3({}, draft.team), {
|
|
3491
|
+
agent: draft.team.agent ? _object_spread_props$3(_object_spread$3({}, draft.team.agent, agent), {
|
|
3044
3492
|
key: targetKey
|
|
3045
|
-
}) : _object_spread_props$
|
|
3493
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
3046
3494
|
key: targetKey
|
|
3047
3495
|
})
|
|
3048
3496
|
}) : draft.team,
|
|
@@ -3129,7 +3577,7 @@ var MCPServerType;
|
|
|
3129
3577
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3130
3578
|
* @param documents - A flat array of DocumentInterface objects
|
|
3131
3579
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3132
|
-
*/ function _define_property$
|
|
3580
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3133
3581
|
if (key in obj) {
|
|
3134
3582
|
Object.defineProperty(obj, key, {
|
|
3135
3583
|
value: value,
|
|
@@ -3142,7 +3590,7 @@ var MCPServerType;
|
|
|
3142
3590
|
}
|
|
3143
3591
|
return obj;
|
|
3144
3592
|
}
|
|
3145
|
-
function _object_spread$
|
|
3593
|
+
function _object_spread$2(target) {
|
|
3146
3594
|
for(var i = 1; i < arguments.length; i++){
|
|
3147
3595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3148
3596
|
var ownKeys = Object.keys(source);
|
|
@@ -3152,12 +3600,12 @@ function _object_spread$1(target) {
|
|
|
3152
3600
|
}));
|
|
3153
3601
|
}
|
|
3154
3602
|
ownKeys.forEach(function(key) {
|
|
3155
|
-
_define_property$
|
|
3603
|
+
_define_property$3(target, key, source[key]);
|
|
3156
3604
|
});
|
|
3157
3605
|
}
|
|
3158
3606
|
return target;
|
|
3159
3607
|
}
|
|
3160
|
-
function ownKeys$
|
|
3608
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3161
3609
|
var keys = Object.keys(object);
|
|
3162
3610
|
if (Object.getOwnPropertySymbols) {
|
|
3163
3611
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3165,12 +3613,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3165
3613
|
}
|
|
3166
3614
|
return keys;
|
|
3167
3615
|
}
|
|
3168
|
-
function _object_spread_props$
|
|
3616
|
+
function _object_spread_props$2(target, source) {
|
|
3169
3617
|
source = source != null ? source : {};
|
|
3170
3618
|
if (Object.getOwnPropertyDescriptors) {
|
|
3171
3619
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3172
3620
|
} else {
|
|
3173
|
-
ownKeys$
|
|
3621
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3174
3622
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3175
3623
|
});
|
|
3176
3624
|
}
|
|
@@ -3184,10 +3632,11 @@ function buildChunkTree(documents) {
|
|
|
3184
3632
|
try {
|
|
3185
3633
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3186
3634
|
var doc = _step.value;
|
|
3187
|
-
var
|
|
3188
|
-
if (
|
|
3189
|
-
map.set(
|
|
3190
|
-
metadata: _object_spread_props$
|
|
3635
|
+
var chunkId = getChunkNodeId(doc);
|
|
3636
|
+
if (chunkId) {
|
|
3637
|
+
map.set(chunkId, _object_spread_props$2(_object_spread$2({}, doc), {
|
|
3638
|
+
metadata: _object_spread_props$2(_object_spread$2({}, doc.metadata), {
|
|
3639
|
+
chunkId: chunkId,
|
|
3191
3640
|
children: []
|
|
3192
3641
|
})
|
|
3193
3642
|
}));
|
|
@@ -3238,6 +3687,16 @@ function buildChunkTree(documents) {
|
|
|
3238
3687
|
}
|
|
3239
3688
|
return roots;
|
|
3240
3689
|
}
|
|
3690
|
+
function getChunkNodeId(document) {
|
|
3691
|
+
var _document_metadata;
|
|
3692
|
+
if ((_document_metadata = document.metadata) === null || _document_metadata === void 0 ? void 0 : _document_metadata.chunkId) {
|
|
3693
|
+
return document.metadata.chunkId;
|
|
3694
|
+
}
|
|
3695
|
+
if ("id" in document && typeof document.id === "string" && document.id) {
|
|
3696
|
+
return document.id;
|
|
3697
|
+
}
|
|
3698
|
+
return undefined;
|
|
3699
|
+
}
|
|
3241
3700
|
/**
|
|
3242
3701
|
* Find all leaf nodes (nodes without children).
|
|
3243
3702
|
*
|
|
@@ -3302,6 +3761,55 @@ function genXpertSkillKey() {
|
|
|
3302
3761
|
return letterStartSUID("Skill_");
|
|
3303
3762
|
}
|
|
3304
3763
|
|
|
3764
|
+
function _define_property$2(obj, key, value) {
|
|
3765
|
+
if (key in obj) {
|
|
3766
|
+
Object.defineProperty(obj, key, {
|
|
3767
|
+
value: value,
|
|
3768
|
+
enumerable: true,
|
|
3769
|
+
configurable: true,
|
|
3770
|
+
writable: true
|
|
3771
|
+
});
|
|
3772
|
+
} else {
|
|
3773
|
+
obj[key] = value;
|
|
3774
|
+
}
|
|
3775
|
+
return obj;
|
|
3776
|
+
}
|
|
3777
|
+
function _object_spread$1(target) {
|
|
3778
|
+
for(var i = 1; i < arguments.length; i++){
|
|
3779
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3780
|
+
var ownKeys = Object.keys(source);
|
|
3781
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3782
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3783
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3784
|
+
}));
|
|
3785
|
+
}
|
|
3786
|
+
ownKeys.forEach(function(key) {
|
|
3787
|
+
_define_property$2(target, key, source[key]);
|
|
3788
|
+
});
|
|
3789
|
+
}
|
|
3790
|
+
return target;
|
|
3791
|
+
}
|
|
3792
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
3793
|
+
var keys = Object.keys(object);
|
|
3794
|
+
if (Object.getOwnPropertySymbols) {
|
|
3795
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3796
|
+
keys.push.apply(keys, symbols);
|
|
3797
|
+
}
|
|
3798
|
+
return keys;
|
|
3799
|
+
}
|
|
3800
|
+
function _object_spread_props$1(target, source) {
|
|
3801
|
+
source = source != null ? source : {};
|
|
3802
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3803
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3804
|
+
} else {
|
|
3805
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
3806
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3807
|
+
});
|
|
3808
|
+
}
|
|
3809
|
+
return target;
|
|
3810
|
+
}
|
|
3811
|
+
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
3812
|
+
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
3305
3813
|
function isMiddlewareToolEnabled(config) {
|
|
3306
3814
|
if (typeof config === "boolean") {
|
|
3307
3815
|
return config;
|
|
@@ -3311,6 +3819,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3311
3819
|
function genXpertMiddlewareKey() {
|
|
3312
3820
|
return letterStartSUID("Middleware_");
|
|
3313
3821
|
}
|
|
3822
|
+
function normalizeMiddlewareProvider(provider) {
|
|
3823
|
+
if (provider === LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME) {
|
|
3824
|
+
return CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
3825
|
+
}
|
|
3826
|
+
return provider !== null && provider !== void 0 ? provider : "";
|
|
3827
|
+
}
|
|
3828
|
+
function normalizeMiddlewareNode(node) {
|
|
3829
|
+
var _node_entity;
|
|
3830
|
+
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) {
|
|
3831
|
+
return node;
|
|
3832
|
+
}
|
|
3833
|
+
var entity = node.entity;
|
|
3834
|
+
var provider = normalizeMiddlewareProvider(entity.provider);
|
|
3835
|
+
if (provider === entity.provider) {
|
|
3836
|
+
return node;
|
|
3837
|
+
}
|
|
3838
|
+
return _object_spread_props$1(_object_spread$1({}, node), {
|
|
3839
|
+
entity: _object_spread_props$1(_object_spread$1({}, entity), {
|
|
3840
|
+
provider: provider
|
|
3841
|
+
})
|
|
3842
|
+
});
|
|
3843
|
+
}
|
|
3844
|
+
function normalizeMiddlewareNodes(nodes) {
|
|
3845
|
+
return (nodes !== null && nodes !== void 0 ? nodes : []).map(function(node) {
|
|
3846
|
+
return normalizeMiddlewareNode(node);
|
|
3847
|
+
});
|
|
3848
|
+
}
|
|
3314
3849
|
var normalizeNodeKey = function(key) {
|
|
3315
3850
|
var _key_split;
|
|
3316
3851
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3332,6 +3867,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3332
3867
|
return middlewares;
|
|
3333
3868
|
}
|
|
3334
3869
|
|
|
3870
|
+
var CONTEXT_COMPRESSION_COMPONENT_TYPE = "context-compression";
|
|
3871
|
+
function isContextCompressionComponentData(value) {
|
|
3872
|
+
if (!value || typeof value !== "object") {
|
|
3873
|
+
return false;
|
|
3874
|
+
}
|
|
3875
|
+
var candidate = value;
|
|
3876
|
+
return candidate.category === "Tool" && candidate.type === CONTEXT_COMPRESSION_COMPONENT_TYPE && (candidate.status === "running" || candidate.status === "success" || candidate.status === "fail");
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3335
3879
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3336
3880
|
"user",
|
|
3337
3881
|
"project",
|
|
@@ -4719,6 +5263,7 @@ function isInterruptMessage(obj) {
|
|
|
4719
5263
|
*/ var ApiKeyBindingType;
|
|
4720
5264
|
(function(ApiKeyBindingType) {
|
|
4721
5265
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5266
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4722
5267
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4723
5268
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4724
5269
|
/**
|
|
@@ -4856,4 +5401,4 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
4856
5401
|
FAILED: "failed"
|
|
4857
5402
|
};
|
|
4858
5403
|
|
|
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 };
|
|
5404
|
+
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_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, 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, SandboxManagedServiceErrorCode, 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, getXpertWorkspaceVisibility, inferMessageAppendContext, isAgentKey, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isTenantSharedXpertWorkspace, 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 };
|