@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.cjs.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
var ShortUniqueId = require('short-unique-id');
|
|
4
4
|
|
|
5
|
-
function _array_like_to_array$
|
|
5
|
+
function _array_like_to_array$7(arr, len) {
|
|
6
6
|
if (len == null || len > arr.length) len = arr.length;
|
|
7
7
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8
8
|
return arr2;
|
|
9
9
|
}
|
|
10
|
-
function _array_without_holes$
|
|
11
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10
|
+
function _array_without_holes$3(arr) {
|
|
11
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
12
12
|
}
|
|
13
|
-
function _iterable_to_array$
|
|
13
|
+
function _iterable_to_array$4(iter) {
|
|
14
14
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
15
15
|
}
|
|
16
|
-
function _non_iterable_spread$
|
|
16
|
+
function _non_iterable_spread$3() {
|
|
17
17
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
18
18
|
}
|
|
19
|
-
function _to_consumable_array$
|
|
20
|
-
return _array_without_holes$
|
|
19
|
+
function _to_consumable_array$3(arr) {
|
|
20
|
+
return _array_without_holes$3(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$3();
|
|
21
21
|
}
|
|
22
|
-
function _unsupported_iterable_to_array$
|
|
22
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
23
23
|
if (!o) return;
|
|
24
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
24
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
25
25
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
26
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27
27
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
28
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
28
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
29
29
|
}
|
|
30
30
|
var _uuidGenerator;
|
|
31
31
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -35,7 +35,7 @@ var uuid = function() {
|
|
|
35
35
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
36
36
|
args[_key] = arguments[_key];
|
|
37
37
|
}
|
|
38
|
-
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$
|
|
38
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$3(args));
|
|
39
39
|
};
|
|
40
40
|
// Parameters
|
|
41
41
|
exports.ParameterTypeEnum = void 0;
|
|
@@ -1340,6 +1340,111 @@ exports.QueryStatusEnum = void 0;
|
|
|
1340
1340
|
QueryStatusEnum["FAILED"] = "failed";
|
|
1341
1341
|
})(exports.QueryStatusEnum || (exports.QueryStatusEnum = {}));
|
|
1342
1342
|
|
|
1343
|
+
function _array_like_to_array$6(arr, len) {
|
|
1344
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1345
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1346
|
+
return arr2;
|
|
1347
|
+
}
|
|
1348
|
+
function _array_with_holes$5(arr) {
|
|
1349
|
+
if (Array.isArray(arr)) return arr;
|
|
1350
|
+
}
|
|
1351
|
+
function _array_without_holes$2(arr) {
|
|
1352
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
1353
|
+
}
|
|
1354
|
+
function _define_property$9(obj, key, value) {
|
|
1355
|
+
if (key in obj) {
|
|
1356
|
+
Object.defineProperty(obj, key, {
|
|
1357
|
+
value: value,
|
|
1358
|
+
enumerable: true,
|
|
1359
|
+
configurable: true,
|
|
1360
|
+
writable: true
|
|
1361
|
+
});
|
|
1362
|
+
} else {
|
|
1363
|
+
obj[key] = value;
|
|
1364
|
+
}
|
|
1365
|
+
return obj;
|
|
1366
|
+
}
|
|
1367
|
+
function _iterable_to_array$3(iter) {
|
|
1368
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1369
|
+
}
|
|
1370
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
1371
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1372
|
+
if (_i == null) return;
|
|
1373
|
+
var _arr = [];
|
|
1374
|
+
var _n = true;
|
|
1375
|
+
var _d = false;
|
|
1376
|
+
var _s, _e;
|
|
1377
|
+
try {
|
|
1378
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
1379
|
+
_arr.push(_s.value);
|
|
1380
|
+
if (i && _arr.length === i) break;
|
|
1381
|
+
}
|
|
1382
|
+
} catch (err) {
|
|
1383
|
+
_d = true;
|
|
1384
|
+
_e = err;
|
|
1385
|
+
} finally{
|
|
1386
|
+
try {
|
|
1387
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
1388
|
+
} finally{
|
|
1389
|
+
if (_d) throw _e;
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
return _arr;
|
|
1393
|
+
}
|
|
1394
|
+
function _non_iterable_rest$5() {
|
|
1395
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1396
|
+
}
|
|
1397
|
+
function _non_iterable_spread$2() {
|
|
1398
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1399
|
+
}
|
|
1400
|
+
function _object_spread$8(target) {
|
|
1401
|
+
for(var i = 1; i < arguments.length; i++){
|
|
1402
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
1403
|
+
var ownKeys = Object.keys(source);
|
|
1404
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1405
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1406
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1407
|
+
}));
|
|
1408
|
+
}
|
|
1409
|
+
ownKeys.forEach(function(key) {
|
|
1410
|
+
_define_property$9(target, key, source[key]);
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
return target;
|
|
1414
|
+
}
|
|
1415
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
1416
|
+
var keys = Object.keys(object);
|
|
1417
|
+
if (Object.getOwnPropertySymbols) {
|
|
1418
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1419
|
+
keys.push.apply(keys, symbols);
|
|
1420
|
+
}
|
|
1421
|
+
return keys;
|
|
1422
|
+
}
|
|
1423
|
+
function _object_spread_props$6(target, source) {
|
|
1424
|
+
source = source != null ? source : {};
|
|
1425
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
1426
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1427
|
+
} else {
|
|
1428
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
1429
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
return target;
|
|
1433
|
+
}
|
|
1434
|
+
function _sliced_to_array$4(arr, i) {
|
|
1435
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
|
|
1436
|
+
}
|
|
1437
|
+
function _to_consumable_array$2(arr) {
|
|
1438
|
+
return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$2();
|
|
1439
|
+
}
|
|
1440
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
1441
|
+
if (!o) return;
|
|
1442
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
1443
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1444
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1445
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1446
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
1447
|
+
}
|
|
1343
1448
|
exports.AssistantCode = void 0;
|
|
1344
1449
|
(function(AssistantCode) {
|
|
1345
1450
|
AssistantCode["CHAT_COMMON"] = "chat_common";
|
|
@@ -1359,6 +1464,275 @@ exports.AssistantBindingSourceScope = void 0;
|
|
|
1359
1464
|
AssistantBindingSourceScope["TENANT"] = "tenant";
|
|
1360
1465
|
AssistantBindingSourceScope["ORGANIZATION"] = "organization";
|
|
1361
1466
|
})(exports.AssistantBindingSourceScope || (exports.AssistantBindingSourceScope = {}));
|
|
1467
|
+
function normalizeAssistantBindingPreferenceKey(value) {
|
|
1468
|
+
var _value_trim;
|
|
1469
|
+
return (_value_trim = value === null || value === void 0 ? void 0 : value.trim()) !== null && _value_trim !== void 0 ? _value_trim : "";
|
|
1470
|
+
}
|
|
1471
|
+
function normalizeAssistantBindingPreferenceIds(value) {
|
|
1472
|
+
var deduped = new Set();
|
|
1473
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1474
|
+
try {
|
|
1475
|
+
for(var _iterator = (value !== null && value !== void 0 ? value : [])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1476
|
+
var item = _step.value;
|
|
1477
|
+
var normalized = normalizeAssistantBindingPreferenceKey(item);
|
|
1478
|
+
if (normalized) {
|
|
1479
|
+
deduped.add(normalized);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
} catch (err) {
|
|
1483
|
+
_didIteratorError = true;
|
|
1484
|
+
_iteratorError = err;
|
|
1485
|
+
} finally{
|
|
1486
|
+
try {
|
|
1487
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1488
|
+
_iterator.return();
|
|
1489
|
+
}
|
|
1490
|
+
} finally{
|
|
1491
|
+
if (_didIteratorError) {
|
|
1492
|
+
throw _iteratorError;
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
return Array.from(deduped);
|
|
1497
|
+
}
|
|
1498
|
+
function normalizeAssistantBindingToolPreferences(value) {
|
|
1499
|
+
if (!value) {
|
|
1500
|
+
return null;
|
|
1501
|
+
}
|
|
1502
|
+
var _value_toolsets;
|
|
1503
|
+
var toolsets = Object.entries((_value_toolsets = value.toolsets) !== null && _value_toolsets !== void 0 ? _value_toolsets : {}).reduce(function(acc, param) {
|
|
1504
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1505
|
+
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1506
|
+
var toolsetName = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetName);
|
|
1507
|
+
if (!nodeKey || !toolsetName) {
|
|
1508
|
+
return acc;
|
|
1509
|
+
}
|
|
1510
|
+
acc[nodeKey] = {
|
|
1511
|
+
toolsetId: normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetId) || null,
|
|
1512
|
+
toolsetName: toolsetName,
|
|
1513
|
+
disabledTools: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledTools)
|
|
1514
|
+
};
|
|
1515
|
+
return acc;
|
|
1516
|
+
}, {});
|
|
1517
|
+
var _value_middlewares;
|
|
1518
|
+
var middlewares = Object.entries((_value_middlewares = value.middlewares) !== null && _value_middlewares !== void 0 ? _value_middlewares : {}).reduce(function(acc, param) {
|
|
1519
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1520
|
+
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1521
|
+
var provider = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.provider);
|
|
1522
|
+
if (!nodeKey || !provider) {
|
|
1523
|
+
return acc;
|
|
1524
|
+
}
|
|
1525
|
+
acc[nodeKey] = {
|
|
1526
|
+
provider: provider,
|
|
1527
|
+
disabledTools: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledTools)
|
|
1528
|
+
};
|
|
1529
|
+
return acc;
|
|
1530
|
+
}, {});
|
|
1531
|
+
var _value_skills;
|
|
1532
|
+
var skills = Object.entries((_value_skills = value.skills) !== null && _value_skills !== void 0 ? _value_skills : {}).reduce(function(acc, param) {
|
|
1533
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], item = _param[1];
|
|
1534
|
+
var workspaceKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1535
|
+
var workspaceId = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.workspaceId) || workspaceKey;
|
|
1536
|
+
if (!workspaceKey || !workspaceId) {
|
|
1537
|
+
return acc;
|
|
1538
|
+
}
|
|
1539
|
+
acc[workspaceKey] = {
|
|
1540
|
+
workspaceId: workspaceId,
|
|
1541
|
+
disabledSkillIds: normalizeAssistantBindingPreferenceIds(item === null || item === void 0 ? void 0 : item.disabledSkillIds)
|
|
1542
|
+
};
|
|
1543
|
+
return acc;
|
|
1544
|
+
}, {});
|
|
1545
|
+
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1546
|
+
return null;
|
|
1547
|
+
}
|
|
1548
|
+
return _object_spread$8({
|
|
1549
|
+
version: 1
|
|
1550
|
+
}, Object.keys(toolsets).length ? {
|
|
1551
|
+
toolsets: toolsets
|
|
1552
|
+
} : {}, Object.keys(middlewares).length ? {
|
|
1553
|
+
middlewares: middlewares
|
|
1554
|
+
} : {}, Object.keys(skills).length ? {
|
|
1555
|
+
skills: skills
|
|
1556
|
+
} : {});
|
|
1557
|
+
}
|
|
1558
|
+
function isAssistantBindingToolPreferencesEmpty(preferences) {
|
|
1559
|
+
return !normalizeAssistantBindingToolPreferences(preferences);
|
|
1560
|
+
}
|
|
1561
|
+
function getAssistantBindingDisabledTools(preferences, sourceType, nodeKey) {
|
|
1562
|
+
var _normalizedPreferences_toolsets_normalizedNodeKey, _normalizedPreferences_toolsets, _normalizedPreferences_middlewares_normalizedNodeKey, _normalizedPreferences_middlewares;
|
|
1563
|
+
var normalizedNodeKey = normalizeAssistantBindingPreferenceKey(nodeKey);
|
|
1564
|
+
if (!normalizedNodeKey) {
|
|
1565
|
+
return [];
|
|
1566
|
+
}
|
|
1567
|
+
var normalizedPreferences = normalizeAssistantBindingToolPreferences(preferences);
|
|
1568
|
+
if (!normalizedPreferences) {
|
|
1569
|
+
return [];
|
|
1570
|
+
}
|
|
1571
|
+
var _normalizedPreferences_toolsets_normalizedNodeKey_disabledTools, _normalizedPreferences_middlewares_normalizedNodeKey_disabledTools;
|
|
1572
|
+
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 : [];
|
|
1573
|
+
}
|
|
1574
|
+
function getAssistantBindingDisabledSkillIds(preferences, workspaceId) {
|
|
1575
|
+
var _normalizedPreferences_skills_normalizedWorkspaceId, _normalizedPreferences_skills;
|
|
1576
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1577
|
+
if (!normalizedWorkspaceId) {
|
|
1578
|
+
return [];
|
|
1579
|
+
}
|
|
1580
|
+
var normalizedPreferences = normalizeAssistantBindingToolPreferences(preferences);
|
|
1581
|
+
var _normalizedPreferences_skills_normalizedWorkspaceId_disabledSkillIds;
|
|
1582
|
+
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 : [];
|
|
1583
|
+
}
|
|
1584
|
+
function isAssistantBindingToolEnabled(preferences, sourceType, nodeKey, toolName) {
|
|
1585
|
+
return !getAssistantBindingDisabledTools(preferences, sourceType, nodeKey).includes(normalizeAssistantBindingPreferenceKey(toolName));
|
|
1586
|
+
}
|
|
1587
|
+
function isAssistantBindingSkillEnabled(preferences, workspaceId, skillId) {
|
|
1588
|
+
return !getAssistantBindingDisabledSkillIds(preferences, workspaceId).includes(normalizeAssistantBindingPreferenceKey(skillId));
|
|
1589
|
+
}
|
|
1590
|
+
function filterAssistantBindingDisabledTools(tools, preferences, sourceType, nodeKey) {
|
|
1591
|
+
var disabledTools = getAssistantBindingDisabledTools(preferences, sourceType, nodeKey);
|
|
1592
|
+
if (!disabledTools.length) {
|
|
1593
|
+
return tools;
|
|
1594
|
+
}
|
|
1595
|
+
var disabledToolSet = new Set(disabledTools);
|
|
1596
|
+
return tools.filter(function(tool) {
|
|
1597
|
+
return !disabledToolSet.has(tool.name);
|
|
1598
|
+
});
|
|
1599
|
+
}
|
|
1600
|
+
function filterAssistantBindingDisabledSkillIds(skillIds, preferences, workspaceId) {
|
|
1601
|
+
var disabledSkillIds = getAssistantBindingDisabledSkillIds(preferences, workspaceId);
|
|
1602
|
+
if (!disabledSkillIds.length) {
|
|
1603
|
+
return skillIds;
|
|
1604
|
+
}
|
|
1605
|
+
var disabledSkillIdSet = new Set(disabledSkillIds);
|
|
1606
|
+
return skillIds.filter(function(skillId) {
|
|
1607
|
+
return !disabledSkillIdSet.has(skillId);
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey, metadata, toolName, enabled) {
|
|
1611
|
+
var normalizedNodeKey = normalizeAssistantBindingPreferenceKey(nodeKey);
|
|
1612
|
+
var normalizedToolName = normalizeAssistantBindingPreferenceKey(toolName);
|
|
1613
|
+
if (!normalizedNodeKey || !normalizedToolName) {
|
|
1614
|
+
return normalizeAssistantBindingToolPreferences(preferences);
|
|
1615
|
+
}
|
|
1616
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1617
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1618
|
+
version: 1
|
|
1619
|
+
};
|
|
1620
|
+
var disabledTools = getAssistantBindingDisabledTools(normalizedPreferences, sourceType, normalizedNodeKey);
|
|
1621
|
+
var nextDisabledTools = enabled ? disabledTools.filter(function(item) {
|
|
1622
|
+
return item !== normalizedToolName;
|
|
1623
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$2(disabledTools).concat([
|
|
1624
|
+
normalizedToolName
|
|
1625
|
+
]));
|
|
1626
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$8({}, normalizedPreferences.toolsets) : undefined;
|
|
1627
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$8({}, normalizedPreferences.middlewares) : undefined;
|
|
1628
|
+
if (sourceType === "toolset") {
|
|
1629
|
+
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1630
|
+
if (!toolsetName) {
|
|
1631
|
+
return normalizedPreferences;
|
|
1632
|
+
}
|
|
1633
|
+
var nextToolsets = toolsets !== null && toolsets !== void 0 ? toolsets : {};
|
|
1634
|
+
if (nextDisabledTools.length) {
|
|
1635
|
+
nextToolsets[normalizedNodeKey] = {
|
|
1636
|
+
toolsetId: "toolsetId" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetId) || null : null,
|
|
1637
|
+
toolsetName: toolsetName,
|
|
1638
|
+
disabledTools: nextDisabledTools
|
|
1639
|
+
};
|
|
1640
|
+
} else {
|
|
1641
|
+
delete nextToolsets[normalizedNodeKey];
|
|
1642
|
+
}
|
|
1643
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1644
|
+
version: 1
|
|
1645
|
+
}, Object.keys(nextToolsets).length ? {
|
|
1646
|
+
toolsets: nextToolsets
|
|
1647
|
+
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1648
|
+
middlewares: middlewares
|
|
1649
|
+
} : {}, normalizedPreferences.skills ? {
|
|
1650
|
+
skills: _object_spread$8({}, normalizedPreferences.skills)
|
|
1651
|
+
} : {}));
|
|
1652
|
+
}
|
|
1653
|
+
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
1654
|
+
if (!provider) {
|
|
1655
|
+
return normalizedPreferences;
|
|
1656
|
+
}
|
|
1657
|
+
var nextMiddlewares = middlewares !== null && middlewares !== void 0 ? middlewares : {};
|
|
1658
|
+
if (nextDisabledTools.length) {
|
|
1659
|
+
nextMiddlewares[normalizedNodeKey] = {
|
|
1660
|
+
provider: provider,
|
|
1661
|
+
disabledTools: nextDisabledTools
|
|
1662
|
+
};
|
|
1663
|
+
} else {
|
|
1664
|
+
delete nextMiddlewares[normalizedNodeKey];
|
|
1665
|
+
}
|
|
1666
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1667
|
+
version: 1
|
|
1668
|
+
}, toolsets && Object.keys(toolsets).length ? {
|
|
1669
|
+
toolsets: toolsets
|
|
1670
|
+
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1671
|
+
middlewares: nextMiddlewares
|
|
1672
|
+
} : {}, normalizedPreferences.skills ? {
|
|
1673
|
+
skills: _object_spread$8({}, normalizedPreferences.skills)
|
|
1674
|
+
} : {}));
|
|
1675
|
+
}
|
|
1676
|
+
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
1677
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1678
|
+
var normalizedSkillId = normalizeAssistantBindingPreferenceKey(skillId);
|
|
1679
|
+
if (!normalizedWorkspaceId || !normalizedSkillId) {
|
|
1680
|
+
return normalizeAssistantBindingToolPreferences(preferences);
|
|
1681
|
+
}
|
|
1682
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1683
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1684
|
+
};
|
|
1685
|
+
var disabledSkillIds = getAssistantBindingDisabledSkillIds(normalizedPreferences, normalizedWorkspaceId);
|
|
1686
|
+
var nextDisabledSkillIds = enabled ? disabledSkillIds.filter(function(item) {
|
|
1687
|
+
return item !== normalizedSkillId;
|
|
1688
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$2(disabledSkillIds).concat([
|
|
1689
|
+
normalizedSkillId
|
|
1690
|
+
]));
|
|
1691
|
+
var skills = normalizedPreferences.skills ? _object_spread$8({}, normalizedPreferences.skills) : {};
|
|
1692
|
+
if (nextDisabledSkillIds.length) {
|
|
1693
|
+
skills[normalizedWorkspaceId] = {
|
|
1694
|
+
workspaceId: normalizedWorkspaceId,
|
|
1695
|
+
disabledSkillIds: nextDisabledSkillIds
|
|
1696
|
+
};
|
|
1697
|
+
} else {
|
|
1698
|
+
delete skills[normalizedWorkspaceId];
|
|
1699
|
+
}
|
|
1700
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$8({
|
|
1701
|
+
version: 1
|
|
1702
|
+
}, normalizedPreferences.toolsets ? {
|
|
1703
|
+
toolsets: _object_spread$8({}, normalizedPreferences.toolsets)
|
|
1704
|
+
} : {}, normalizedPreferences.middlewares ? {
|
|
1705
|
+
middlewares: _object_spread$8({}, normalizedPreferences.middlewares)
|
|
1706
|
+
} : {}, Object.keys(skills).length ? {
|
|
1707
|
+
skills: skills
|
|
1708
|
+
} : {}));
|
|
1709
|
+
}
|
|
1710
|
+
function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId) {
|
|
1711
|
+
var normalizedWorkspaceId = normalizeAssistantBindingPreferenceKey(workspaceId);
|
|
1712
|
+
var _normalizeAssistantBindingToolPreferences;
|
|
1713
|
+
var normalizedPreferences = (_normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences(preferences)) !== null && _normalizeAssistantBindingToolPreferences !== void 0 ? _normalizeAssistantBindingToolPreferences : {
|
|
1714
|
+
version: 1
|
|
1715
|
+
};
|
|
1716
|
+
if (!normalizedWorkspaceId) {
|
|
1717
|
+
return normalizedPreferences;
|
|
1718
|
+
}
|
|
1719
|
+
var _normalizedPreferences_skills;
|
|
1720
|
+
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
1721
|
+
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
1722
|
+
var _currentWorkspacePreference_disabledSkillIds;
|
|
1723
|
+
return _object_spread_props$6(_object_spread$8({
|
|
1724
|
+
version: 1
|
|
1725
|
+
}, normalizedPreferences.toolsets ? {
|
|
1726
|
+
toolsets: _object_spread$8({}, normalizedPreferences.toolsets)
|
|
1727
|
+
} : {}, normalizedPreferences.middlewares ? {
|
|
1728
|
+
middlewares: _object_spread$8({}, normalizedPreferences.middlewares)
|
|
1729
|
+
} : {}), {
|
|
1730
|
+
skills: _object_spread_props$6(_object_spread$8({}, currentSkills), _define_property$9({}, normalizedWorkspaceId, {
|
|
1731
|
+
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
1732
|
+
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
1733
|
+
}))
|
|
1734
|
+
});
|
|
1735
|
+
}
|
|
1362
1736
|
var USER_MANAGED_ASSISTANTS = new Set([
|
|
1363
1737
|
exports.AssistantCode.CLAWXPERT
|
|
1364
1738
|
]);
|
|
@@ -1516,7 +1890,7 @@ var OllamaEmbeddingsProviders = [
|
|
|
1516
1890
|
exports.AiProvider.Ollama
|
|
1517
1891
|
];
|
|
1518
1892
|
|
|
1519
|
-
function _define_property$
|
|
1893
|
+
function _define_property$8(obj, key, value) {
|
|
1520
1894
|
if (key in obj) {
|
|
1521
1895
|
Object.defineProperty(obj, key, {
|
|
1522
1896
|
value: value,
|
|
@@ -1529,7 +1903,7 @@ function _define_property$7(obj, key, value) {
|
|
|
1529
1903
|
}
|
|
1530
1904
|
return obj;
|
|
1531
1905
|
}
|
|
1532
|
-
function _object_spread$
|
|
1906
|
+
function _object_spread$7(target) {
|
|
1533
1907
|
for(var i = 1; i < arguments.length; i++){
|
|
1534
1908
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1535
1909
|
var ownKeys = Object.keys(source);
|
|
@@ -1539,7 +1913,7 @@ function _object_spread$6(target) {
|
|
|
1539
1913
|
}));
|
|
1540
1914
|
}
|
|
1541
1915
|
ownKeys.forEach(function(key) {
|
|
1542
|
-
_define_property$
|
|
1916
|
+
_define_property$8(target, key, source[key]);
|
|
1543
1917
|
});
|
|
1544
1918
|
}
|
|
1545
1919
|
return target;
|
|
@@ -1548,12 +1922,12 @@ var CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = "thread_context_usage";
|
|
|
1548
1922
|
var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
1549
1923
|
var CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = "follow_up_consumed";
|
|
1550
1924
|
function createConversationTitleSummaryEvent(event) {
|
|
1551
|
-
return _object_spread$
|
|
1925
|
+
return _object_spread$7({
|
|
1552
1926
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1553
1927
|
}, event);
|
|
1554
1928
|
}
|
|
1555
1929
|
function createFollowUpConsumedEvent(event) {
|
|
1556
|
-
return _object_spread$
|
|
1930
|
+
return _object_spread$7({
|
|
1557
1931
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1558
1932
|
}, event);
|
|
1559
1933
|
}
|
|
@@ -1814,7 +2188,7 @@ function workflowNodeIdentifier(node) {
|
|
|
1814
2188
|
return node.title || node.key;
|
|
1815
2189
|
}
|
|
1816
2190
|
|
|
1817
|
-
function _define_property$
|
|
2191
|
+
function _define_property$7(obj, key, value) {
|
|
1818
2192
|
if (key in obj) {
|
|
1819
2193
|
Object.defineProperty(obj, key, {
|
|
1820
2194
|
value: value,
|
|
@@ -1827,7 +2201,7 @@ function _define_property$6(obj, key, value) {
|
|
|
1827
2201
|
}
|
|
1828
2202
|
return obj;
|
|
1829
2203
|
}
|
|
1830
|
-
function _object_spread$
|
|
2204
|
+
function _object_spread$6(target) {
|
|
1831
2205
|
for(var i = 1; i < arguments.length; i++){
|
|
1832
2206
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1833
2207
|
var ownKeys = Object.keys(source);
|
|
@@ -1837,12 +2211,12 @@ function _object_spread$5(target) {
|
|
|
1837
2211
|
}));
|
|
1838
2212
|
}
|
|
1839
2213
|
ownKeys.forEach(function(key) {
|
|
1840
|
-
_define_property$
|
|
2214
|
+
_define_property$7(target, key, source[key]);
|
|
1841
2215
|
});
|
|
1842
2216
|
}
|
|
1843
2217
|
return target;
|
|
1844
2218
|
}
|
|
1845
|
-
function ownKeys$
|
|
2219
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
1846
2220
|
var keys = Object.keys(object);
|
|
1847
2221
|
if (Object.getOwnPropertySymbols) {
|
|
1848
2222
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1850,12 +2224,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
1850
2224
|
}
|
|
1851
2225
|
return keys;
|
|
1852
2226
|
}
|
|
1853
|
-
function _object_spread_props$
|
|
2227
|
+
function _object_spread_props$5(target, source) {
|
|
1854
2228
|
source = source != null ? source : {};
|
|
1855
2229
|
if (Object.getOwnPropertyDescriptors) {
|
|
1856
2230
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1857
2231
|
} else {
|
|
1858
|
-
ownKeys$
|
|
2232
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
1859
2233
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1860
2234
|
});
|
|
1861
2235
|
}
|
|
@@ -1880,7 +2254,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
1880
2254
|
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
1881
2255
|
}
|
|
1882
2256
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
1883
|
-
return _object_spread_props$
|
|
2257
|
+
return _object_spread_props$5(_object_spread$6({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
1884
2258
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
1885
2259
|
});
|
|
1886
2260
|
}
|
|
@@ -1967,7 +2341,7 @@ function _array_like_to_array$5(arr, len) {
|
|
|
1967
2341
|
function _array_with_holes$4(arr) {
|
|
1968
2342
|
if (Array.isArray(arr)) return arr;
|
|
1969
2343
|
}
|
|
1970
|
-
function _define_property$
|
|
2344
|
+
function _define_property$6(obj, key, value) {
|
|
1971
2345
|
if (key in obj) {
|
|
1972
2346
|
Object.defineProperty(obj, key, {
|
|
1973
2347
|
value: value,
|
|
@@ -2007,7 +2381,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
2007
2381
|
function _non_iterable_rest$4() {
|
|
2008
2382
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2009
2383
|
}
|
|
2010
|
-
function _object_spread$
|
|
2384
|
+
function _object_spread$5(target) {
|
|
2011
2385
|
for(var i = 1; i < arguments.length; i++){
|
|
2012
2386
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2013
2387
|
var ownKeys = Object.keys(source);
|
|
@@ -2017,12 +2391,12 @@ function _object_spread$4(target) {
|
|
|
2017
2391
|
}));
|
|
2018
2392
|
}
|
|
2019
2393
|
ownKeys.forEach(function(key) {
|
|
2020
|
-
_define_property$
|
|
2394
|
+
_define_property$6(target, key, source[key]);
|
|
2021
2395
|
});
|
|
2022
2396
|
}
|
|
2023
2397
|
return target;
|
|
2024
2398
|
}
|
|
2025
|
-
function ownKeys$
|
|
2399
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
2026
2400
|
var keys = Object.keys(object);
|
|
2027
2401
|
if (Object.getOwnPropertySymbols) {
|
|
2028
2402
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2030,12 +2404,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
2030
2404
|
}
|
|
2031
2405
|
return keys;
|
|
2032
2406
|
}
|
|
2033
|
-
function _object_spread_props$
|
|
2407
|
+
function _object_spread_props$4(target, source) {
|
|
2034
2408
|
source = source != null ? source : {};
|
|
2035
2409
|
if (Object.getOwnPropertyDescriptors) {
|
|
2036
2410
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2037
2411
|
} else {
|
|
2038
|
-
ownKeys$
|
|
2412
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
2039
2413
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2040
2414
|
});
|
|
2041
2415
|
}
|
|
@@ -2130,7 +2504,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
2130
2504
|
var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2131
2505
|
if (variableName) {
|
|
2132
2506
|
var _state_agentChannelName;
|
|
2133
|
-
state[agentChannelName] = _object_spread_props$
|
|
2507
|
+
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));
|
|
2134
2508
|
} else {
|
|
2135
2509
|
state[agentChannelName] = value;
|
|
2136
2510
|
}
|
|
@@ -2303,7 +2677,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
2303
2677
|
return letterStartSUID("KnowledgeBase_");
|
|
2304
2678
|
}
|
|
2305
2679
|
|
|
2306
|
-
function _define_property$
|
|
2680
|
+
function _define_property$5(obj, key, value) {
|
|
2307
2681
|
if (key in obj) {
|
|
2308
2682
|
Object.defineProperty(obj, key, {
|
|
2309
2683
|
value: value,
|
|
@@ -2316,7 +2690,7 @@ function _define_property$4(obj, key, value) {
|
|
|
2316
2690
|
}
|
|
2317
2691
|
return obj;
|
|
2318
2692
|
}
|
|
2319
|
-
function _object_spread$
|
|
2693
|
+
function _object_spread$4(target) {
|
|
2320
2694
|
for(var i = 1; i < arguments.length; i++){
|
|
2321
2695
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2322
2696
|
var ownKeys = Object.keys(source);
|
|
@@ -2326,7 +2700,7 @@ function _object_spread$3(target) {
|
|
|
2326
2700
|
}));
|
|
2327
2701
|
}
|
|
2328
2702
|
ownKeys.forEach(function(key) {
|
|
2329
|
-
_define_property$
|
|
2703
|
+
_define_property$5(target, key, source[key]);
|
|
2330
2704
|
});
|
|
2331
2705
|
}
|
|
2332
2706
|
return target;
|
|
@@ -2346,7 +2720,7 @@ function _object_spread$3(target) {
|
|
|
2346
2720
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
2347
2721
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
2348
2722
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
2349
|
-
var KDocumentSourceType = _object_spread$
|
|
2723
|
+
var KDocumentSourceType = _object_spread$4({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
2350
2724
|
/**
|
|
2351
2725
|
* Document type category, determine how to process the document.
|
|
2352
2726
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -2481,6 +2855,45 @@ exports.AIPermissionsEnum = void 0;
|
|
|
2481
2855
|
XpertAgentExecutionStatusEnum["INTERRUPTED"] = "interrupted";
|
|
2482
2856
|
})(exports.XpertAgentExecutionStatusEnum || (exports.XpertAgentExecutionStatusEnum = {}));
|
|
2483
2857
|
|
|
2858
|
+
var SANDBOX_TERMINAL_NAMESPACE = "sandbox-terminal";
|
|
2859
|
+
exports.SandboxTerminalClientEvent = void 0;
|
|
2860
|
+
(function(SandboxTerminalClientEvent) {
|
|
2861
|
+
SandboxTerminalClientEvent["Open"] = "open";
|
|
2862
|
+
SandboxTerminalClientEvent["Input"] = "input";
|
|
2863
|
+
SandboxTerminalClientEvent["Resize"] = "resize";
|
|
2864
|
+
SandboxTerminalClientEvent["Close"] = "close";
|
|
2865
|
+
})(exports.SandboxTerminalClientEvent || (exports.SandboxTerminalClientEvent = {}));
|
|
2866
|
+
exports.SandboxTerminalServerEvent = void 0;
|
|
2867
|
+
(function(SandboxTerminalServerEvent) {
|
|
2868
|
+
SandboxTerminalServerEvent["Opened"] = "opened";
|
|
2869
|
+
SandboxTerminalServerEvent["Output"] = "output";
|
|
2870
|
+
SandboxTerminalServerEvent["Exit"] = "exit";
|
|
2871
|
+
SandboxTerminalServerEvent["Error"] = "error";
|
|
2872
|
+
SandboxTerminalServerEvent["Closed"] = "closed";
|
|
2873
|
+
})(exports.SandboxTerminalServerEvent || (exports.SandboxTerminalServerEvent = {}));
|
|
2874
|
+
exports.SandboxTerminalClosedReason = void 0;
|
|
2875
|
+
(function(SandboxTerminalClosedReason) {
|
|
2876
|
+
SandboxTerminalClosedReason["ClientClosed"] = "client_closed";
|
|
2877
|
+
SandboxTerminalClosedReason["Error"] = "error";
|
|
2878
|
+
SandboxTerminalClosedReason["OpenFailed"] = "open_failed";
|
|
2879
|
+
SandboxTerminalClosedReason["ProcessExited"] = "process_exited";
|
|
2880
|
+
SandboxTerminalClosedReason["SocketDisconnected"] = "socket_disconnected";
|
|
2881
|
+
SandboxTerminalClosedReason["UnsupportedProvider"] = "unsupported_provider";
|
|
2882
|
+
})(exports.SandboxTerminalClosedReason || (exports.SandboxTerminalClosedReason = {}));
|
|
2883
|
+
exports.SandboxTerminalErrorCode = void 0;
|
|
2884
|
+
(function(SandboxTerminalErrorCode) {
|
|
2885
|
+
SandboxTerminalErrorCode["CloseFailed"] = "close_failed";
|
|
2886
|
+
SandboxTerminalErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2887
|
+
SandboxTerminalErrorCode["ConversationRequired"] = "conversation_required";
|
|
2888
|
+
SandboxTerminalErrorCode["InputFailed"] = "input_failed";
|
|
2889
|
+
SandboxTerminalErrorCode["OpenFailed"] = "open_failed";
|
|
2890
|
+
SandboxTerminalErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2891
|
+
SandboxTerminalErrorCode["ResizeFailed"] = "resize_failed";
|
|
2892
|
+
SandboxTerminalErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2893
|
+
SandboxTerminalErrorCode["SessionNotFound"] = "session_not_found";
|
|
2894
|
+
SandboxTerminalErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2895
|
+
})(exports.SandboxTerminalErrorCode || (exports.SandboxTerminalErrorCode = {}));
|
|
2896
|
+
|
|
2484
2897
|
exports.ToolParameterType = void 0;
|
|
2485
2898
|
(function(ToolParameterType) {
|
|
2486
2899
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2648,7 +3061,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2648
3061
|
function _array_without_holes$1(arr) {
|
|
2649
3062
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2650
3063
|
}
|
|
2651
|
-
function _define_property$
|
|
3064
|
+
function _define_property$4(obj, key, value) {
|
|
2652
3065
|
if (key in obj) {
|
|
2653
3066
|
Object.defineProperty(obj, key, {
|
|
2654
3067
|
value: value,
|
|
@@ -2667,7 +3080,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2667
3080
|
function _non_iterable_spread$1() {
|
|
2668
3081
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2669
3082
|
}
|
|
2670
|
-
function _object_spread$
|
|
3083
|
+
function _object_spread$3(target) {
|
|
2671
3084
|
for(var i = 1; i < arguments.length; i++){
|
|
2672
3085
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2673
3086
|
var ownKeys = Object.keys(source);
|
|
@@ -2677,12 +3090,12 @@ function _object_spread$2(target) {
|
|
|
2677
3090
|
}));
|
|
2678
3091
|
}
|
|
2679
3092
|
ownKeys.forEach(function(key) {
|
|
2680
|
-
_define_property$
|
|
3093
|
+
_define_property$4(target, key, source[key]);
|
|
2681
3094
|
});
|
|
2682
3095
|
}
|
|
2683
3096
|
return target;
|
|
2684
3097
|
}
|
|
2685
|
-
function ownKeys$
|
|
3098
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2686
3099
|
var keys = Object.keys(object);
|
|
2687
3100
|
if (Object.getOwnPropertySymbols) {
|
|
2688
3101
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2690,12 +3103,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2690
3103
|
}
|
|
2691
3104
|
return keys;
|
|
2692
3105
|
}
|
|
2693
|
-
function _object_spread_props$
|
|
3106
|
+
function _object_spread_props$3(target, source) {
|
|
2694
3107
|
source = source != null ? source : {};
|
|
2695
3108
|
if (Object.getOwnPropertyDescriptors) {
|
|
2696
3109
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2697
3110
|
} else {
|
|
2698
|
-
ownKeys$
|
|
3111
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2699
3112
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2700
3113
|
});
|
|
2701
3114
|
}
|
|
@@ -3016,9 +3429,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3016
3429
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
3017
3430
|
replacedNode = true;
|
|
3018
3431
|
var _node_entity;
|
|
3019
|
-
return _object_spread_props$
|
|
3432
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
3020
3433
|
key: targetKey,
|
|
3021
|
-
entity: _object_spread_props$
|
|
3434
|
+
entity: _object_spread_props$3(_object_spread$3({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
3022
3435
|
key: targetKey
|
|
3023
3436
|
})
|
|
3024
3437
|
});
|
|
@@ -3034,17 +3447,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3034
3447
|
if (from === connection.from && to === connection.to) {
|
|
3035
3448
|
return connection;
|
|
3036
3449
|
}
|
|
3037
|
-
return _object_spread_props$
|
|
3450
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
3038
3451
|
from: from,
|
|
3039
3452
|
to: to,
|
|
3040
3453
|
key: "".concat(from, "/").concat(to)
|
|
3041
3454
|
});
|
|
3042
3455
|
});
|
|
3043
|
-
return _object_spread_props$
|
|
3044
|
-
team: draft.team ? _object_spread_props$
|
|
3045
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
3456
|
+
return _object_spread_props$3(_object_spread$3({}, draft), {
|
|
3457
|
+
team: draft.team ? _object_spread_props$3(_object_spread$3({}, draft.team), {
|
|
3458
|
+
agent: draft.team.agent ? _object_spread_props$3(_object_spread$3({}, draft.team.agent, agent), {
|
|
3046
3459
|
key: targetKey
|
|
3047
|
-
}) : _object_spread_props$
|
|
3460
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
3048
3461
|
key: targetKey
|
|
3049
3462
|
})
|
|
3050
3463
|
}) : draft.team,
|
|
@@ -3131,7 +3544,7 @@ exports.MCPServerType = void 0;
|
|
|
3131
3544
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3132
3545
|
* @param documents - A flat array of DocumentInterface objects
|
|
3133
3546
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3134
|
-
*/ function _define_property$
|
|
3547
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3135
3548
|
if (key in obj) {
|
|
3136
3549
|
Object.defineProperty(obj, key, {
|
|
3137
3550
|
value: value,
|
|
@@ -3144,7 +3557,7 @@ exports.MCPServerType = void 0;
|
|
|
3144
3557
|
}
|
|
3145
3558
|
return obj;
|
|
3146
3559
|
}
|
|
3147
|
-
function _object_spread$
|
|
3560
|
+
function _object_spread$2(target) {
|
|
3148
3561
|
for(var i = 1; i < arguments.length; i++){
|
|
3149
3562
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3150
3563
|
var ownKeys = Object.keys(source);
|
|
@@ -3154,12 +3567,12 @@ function _object_spread$1(target) {
|
|
|
3154
3567
|
}));
|
|
3155
3568
|
}
|
|
3156
3569
|
ownKeys.forEach(function(key) {
|
|
3157
|
-
_define_property$
|
|
3570
|
+
_define_property$3(target, key, source[key]);
|
|
3158
3571
|
});
|
|
3159
3572
|
}
|
|
3160
3573
|
return target;
|
|
3161
3574
|
}
|
|
3162
|
-
function ownKeys$
|
|
3575
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3163
3576
|
var keys = Object.keys(object);
|
|
3164
3577
|
if (Object.getOwnPropertySymbols) {
|
|
3165
3578
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3167,12 +3580,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3167
3580
|
}
|
|
3168
3581
|
return keys;
|
|
3169
3582
|
}
|
|
3170
|
-
function _object_spread_props$
|
|
3583
|
+
function _object_spread_props$2(target, source) {
|
|
3171
3584
|
source = source != null ? source : {};
|
|
3172
3585
|
if (Object.getOwnPropertyDescriptors) {
|
|
3173
3586
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3174
3587
|
} else {
|
|
3175
|
-
ownKeys$
|
|
3588
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3176
3589
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3177
3590
|
});
|
|
3178
3591
|
}
|
|
@@ -3186,10 +3599,11 @@ function buildChunkTree(documents) {
|
|
|
3186
3599
|
try {
|
|
3187
3600
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3188
3601
|
var doc = _step.value;
|
|
3189
|
-
var
|
|
3190
|
-
if (
|
|
3191
|
-
map.set(
|
|
3192
|
-
metadata: _object_spread_props$
|
|
3602
|
+
var chunkId = getChunkNodeId(doc);
|
|
3603
|
+
if (chunkId) {
|
|
3604
|
+
map.set(chunkId, _object_spread_props$2(_object_spread$2({}, doc), {
|
|
3605
|
+
metadata: _object_spread_props$2(_object_spread$2({}, doc.metadata), {
|
|
3606
|
+
chunkId: chunkId,
|
|
3193
3607
|
children: []
|
|
3194
3608
|
})
|
|
3195
3609
|
}));
|
|
@@ -3240,6 +3654,16 @@ function buildChunkTree(documents) {
|
|
|
3240
3654
|
}
|
|
3241
3655
|
return roots;
|
|
3242
3656
|
}
|
|
3657
|
+
function getChunkNodeId(document) {
|
|
3658
|
+
var _document_metadata;
|
|
3659
|
+
if ((_document_metadata = document.metadata) === null || _document_metadata === void 0 ? void 0 : _document_metadata.chunkId) {
|
|
3660
|
+
return document.metadata.chunkId;
|
|
3661
|
+
}
|
|
3662
|
+
if ("id" in document && typeof document.id === "string" && document.id) {
|
|
3663
|
+
return document.id;
|
|
3664
|
+
}
|
|
3665
|
+
return undefined;
|
|
3666
|
+
}
|
|
3243
3667
|
/**
|
|
3244
3668
|
* Find all leaf nodes (nodes without children).
|
|
3245
3669
|
*
|
|
@@ -3304,6 +3728,55 @@ function genXpertSkillKey() {
|
|
|
3304
3728
|
return letterStartSUID("Skill_");
|
|
3305
3729
|
}
|
|
3306
3730
|
|
|
3731
|
+
function _define_property$2(obj, key, value) {
|
|
3732
|
+
if (key in obj) {
|
|
3733
|
+
Object.defineProperty(obj, key, {
|
|
3734
|
+
value: value,
|
|
3735
|
+
enumerable: true,
|
|
3736
|
+
configurable: true,
|
|
3737
|
+
writable: true
|
|
3738
|
+
});
|
|
3739
|
+
} else {
|
|
3740
|
+
obj[key] = value;
|
|
3741
|
+
}
|
|
3742
|
+
return obj;
|
|
3743
|
+
}
|
|
3744
|
+
function _object_spread$1(target) {
|
|
3745
|
+
for(var i = 1; i < arguments.length; i++){
|
|
3746
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3747
|
+
var ownKeys = Object.keys(source);
|
|
3748
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3749
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3750
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3751
|
+
}));
|
|
3752
|
+
}
|
|
3753
|
+
ownKeys.forEach(function(key) {
|
|
3754
|
+
_define_property$2(target, key, source[key]);
|
|
3755
|
+
});
|
|
3756
|
+
}
|
|
3757
|
+
return target;
|
|
3758
|
+
}
|
|
3759
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
3760
|
+
var keys = Object.keys(object);
|
|
3761
|
+
if (Object.getOwnPropertySymbols) {
|
|
3762
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3763
|
+
keys.push.apply(keys, symbols);
|
|
3764
|
+
}
|
|
3765
|
+
return keys;
|
|
3766
|
+
}
|
|
3767
|
+
function _object_spread_props$1(target, source) {
|
|
3768
|
+
source = source != null ? source : {};
|
|
3769
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3770
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3771
|
+
} else {
|
|
3772
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
3773
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3774
|
+
});
|
|
3775
|
+
}
|
|
3776
|
+
return target;
|
|
3777
|
+
}
|
|
3778
|
+
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
3779
|
+
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
3307
3780
|
function isMiddlewareToolEnabled(config) {
|
|
3308
3781
|
if (typeof config === "boolean") {
|
|
3309
3782
|
return config;
|
|
@@ -3313,6 +3786,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3313
3786
|
function genXpertMiddlewareKey() {
|
|
3314
3787
|
return letterStartSUID("Middleware_");
|
|
3315
3788
|
}
|
|
3789
|
+
function normalizeMiddlewareProvider(provider) {
|
|
3790
|
+
if (provider === LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME) {
|
|
3791
|
+
return CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
3792
|
+
}
|
|
3793
|
+
return provider !== null && provider !== void 0 ? provider : "";
|
|
3794
|
+
}
|
|
3795
|
+
function normalizeMiddlewareNode(node) {
|
|
3796
|
+
var _node_entity;
|
|
3797
|
+
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) !== exports.WorkflowNodeTypeEnum.MIDDLEWARE) {
|
|
3798
|
+
return node;
|
|
3799
|
+
}
|
|
3800
|
+
var entity = node.entity;
|
|
3801
|
+
var provider = normalizeMiddlewareProvider(entity.provider);
|
|
3802
|
+
if (provider === entity.provider) {
|
|
3803
|
+
return node;
|
|
3804
|
+
}
|
|
3805
|
+
return _object_spread_props$1(_object_spread$1({}, node), {
|
|
3806
|
+
entity: _object_spread_props$1(_object_spread$1({}, entity), {
|
|
3807
|
+
provider: provider
|
|
3808
|
+
})
|
|
3809
|
+
});
|
|
3810
|
+
}
|
|
3811
|
+
function normalizeMiddlewareNodes(nodes) {
|
|
3812
|
+
return (nodes !== null && nodes !== void 0 ? nodes : []).map(function(node) {
|
|
3813
|
+
return normalizeMiddlewareNode(node);
|
|
3814
|
+
});
|
|
3815
|
+
}
|
|
3316
3816
|
var normalizeNodeKey = function(key) {
|
|
3317
3817
|
var _key_split;
|
|
3318
3818
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3334,6 +3834,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3334
3834
|
return middlewares;
|
|
3335
3835
|
}
|
|
3336
3836
|
|
|
3837
|
+
var CONTEXT_COMPRESSION_COMPONENT_TYPE = "context-compression";
|
|
3838
|
+
function isContextCompressionComponentData(value) {
|
|
3839
|
+
if (!value || typeof value !== "object") {
|
|
3840
|
+
return false;
|
|
3841
|
+
}
|
|
3842
|
+
var candidate = value;
|
|
3843
|
+
return candidate.category === "Tool" && candidate.type === CONTEXT_COMPRESSION_COMPONENT_TYPE && (candidate.status === "running" || candidate.status === "success" || candidate.status === "fail");
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3337
3846
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3338
3847
|
"user",
|
|
3339
3848
|
"project",
|
|
@@ -4721,6 +5230,7 @@ function isInterruptMessage(obj) {
|
|
|
4721
5230
|
*/ exports.ApiKeyBindingType = void 0;
|
|
4722
5231
|
(function(ApiKeyBindingType) {
|
|
4723
5232
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5233
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4724
5234
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4725
5235
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4726
5236
|
/**
|
|
@@ -4864,6 +5374,8 @@ exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
|
4864
5374
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
4865
5375
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
4866
5376
|
exports.CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE;
|
|
5377
|
+
exports.CONTEXT_COMPRESSION_COMPONENT_TYPE = CONTEXT_COMPRESSION_COMPONENT_TYPE;
|
|
5378
|
+
exports.CONTEXT_COMPRESSION_MIDDLEWARE_NAME = CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
4867
5379
|
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
4868
5380
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
4869
5381
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
@@ -4895,6 +5407,7 @@ exports.KNOWLEDGE_SOURCES_NAME = KNOWLEDGE_SOURCES_NAME;
|
|
|
4895
5407
|
exports.KNOWLEDGE_STAGE_NAME = KNOWLEDGE_STAGE_NAME;
|
|
4896
5408
|
exports.KnowledgeTask = KnowledgeTask;
|
|
4897
5409
|
exports.KnowledgebaseChannel = KnowledgebaseChannel;
|
|
5410
|
+
exports.LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME;
|
|
4898
5411
|
exports.LanguagesMap = LanguagesMap;
|
|
4899
5412
|
exports.MDX = schema;
|
|
4900
5413
|
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
@@ -4907,6 +5420,7 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
4907
5420
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
4908
5421
|
exports.PermissionApprovalStatus = PermissionApprovalStatus;
|
|
4909
5422
|
exports.PermissionGroups = PermissionGroups;
|
|
5423
|
+
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
4910
5424
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
4911
5425
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
4912
5426
|
exports.STATE_SYS_THREAD_ID = STATE_SYS_THREAD_ID;
|
|
@@ -4945,8 +5459,11 @@ exports.createMessageAppendContextTracker = createMessageAppendContextTracker;
|
|
|
4945
5459
|
exports.createXpertGraph = createXpertGraph;
|
|
4946
5460
|
exports.createXpertNodes = createXpertNodes;
|
|
4947
5461
|
exports.embeddingCubeCollectionName = embeddingCubeCollectionName;
|
|
5462
|
+
exports.ensureAssistantBindingSkillWorkspacePreference = ensureAssistantBindingSkillWorkspacePreference;
|
|
4948
5463
|
exports.extractSemanticModelDraft = extractSemanticModelDraft;
|
|
4949
5464
|
exports.figureOutXpert = figureOutXpert;
|
|
5465
|
+
exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledSkillIds;
|
|
5466
|
+
exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
|
|
4950
5467
|
exports.filterMessageText = filterMessageText;
|
|
4951
5468
|
exports.findStartNodes = findStartNodes;
|
|
4952
5469
|
exports.genJSONParseKey = genJSONParseKey;
|
|
@@ -4971,6 +5488,8 @@ exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
|
4971
5488
|
exports.generateCronExpression = generateCronExpression;
|
|
4972
5489
|
exports.getAgentMiddlewareNodes = getAgentMiddlewareNodes;
|
|
4973
5490
|
exports.getAgentVarGroup = getAgentVarGroup;
|
|
5491
|
+
exports.getAssistantBindingDisabledSkillIds = getAssistantBindingDisabledSkillIds;
|
|
5492
|
+
exports.getAssistantBindingDisabledTools = getAssistantBindingDisabledTools;
|
|
4974
5493
|
exports.getAssistantManagement = getAssistantManagement;
|
|
4975
5494
|
exports.getCurrentGraph = getCurrentGraph;
|
|
4976
5495
|
exports.getEnabledTools = getEnabledTools;
|
|
@@ -4985,7 +5504,11 @@ exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
|
4985
5504
|
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
4986
5505
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
4987
5506
|
exports.isAgentKey = isAgentKey;
|
|
5507
|
+
exports.isAssistantBindingSkillEnabled = isAssistantBindingSkillEnabled;
|
|
5508
|
+
exports.isAssistantBindingToolEnabled = isAssistantBindingToolEnabled;
|
|
5509
|
+
exports.isAssistantBindingToolPreferencesEmpty = isAssistantBindingToolPreferencesEmpty;
|
|
4988
5510
|
exports.isAudioType = isAudioType;
|
|
5511
|
+
exports.isContextCompressionComponentData = isContextCompressionComponentData;
|
|
4989
5512
|
exports.isDocumentSheet = isDocumentSheet;
|
|
4990
5513
|
exports.isEnableTool = isEnableTool;
|
|
4991
5514
|
exports.isImageType = isImageType;
|
|
@@ -5005,6 +5528,10 @@ exports.locateNodes = locateNodes;
|
|
|
5005
5528
|
exports.mapTranslationLanguage = mapTranslationLanguage;
|
|
5006
5529
|
exports.mergeMessageContentForDisplay = mergeMessageContentForDisplay;
|
|
5007
5530
|
exports.messageContentText = messageContentText;
|
|
5531
|
+
exports.normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences;
|
|
5532
|
+
exports.normalizeMiddlewareNode = normalizeMiddlewareNode;
|
|
5533
|
+
exports.normalizeMiddlewareNodes = normalizeMiddlewareNodes;
|
|
5534
|
+
exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
5008
5535
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
5009
5536
|
exports.omitXpertRelations = omitXpertRelations;
|
|
5010
5537
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
@@ -5013,6 +5540,8 @@ exports.setStateVariable = setStateVariable;
|
|
|
5013
5540
|
exports.shortTitle = shortTitle;
|
|
5014
5541
|
exports.stringifyMessageContent = stringifyMessageContent;
|
|
5015
5542
|
exports.transformInstallation = transformInstallation;
|
|
5543
|
+
exports.updateAssistantBindingSkillPreferences = updateAssistantBindingSkillPreferences;
|
|
5544
|
+
exports.updateAssistantBindingToolPreferences = updateAssistantBindingToolPreferences;
|
|
5016
5545
|
exports.uuid = uuid;
|
|
5017
5546
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
5018
5547
|
exports.xpertLabel = xpertLabel;
|