@xpert-ai/contracts 3.9.0-beta.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +654 -52
- package/index.esm.js +630 -53
- package/package.json +1 -1
- package/src/agent/graph.d.ts +15 -1
- package/src/ai/assistant-binding.model.d.ts +23 -2
- package/src/ai/chat-event.model.d.ts +10 -0
- package/src/ai/chat-message.model.d.ts +27 -0
- package/src/ai/context-compression.model.d.ts +13 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/middleware.model.d.ts +5 -0
- package/src/ai/sandbox-terminal.model.d.ts +108 -0
- package/src/ai/skill.model.d.ts +1 -0
- package/src/ai/types.d.ts +45 -20
- package/src/ai/xpert-chat.model.d.ts +29 -2
- package/src/ai/xpert-template.model.d.ts +63 -0
- package/src/ai/xpert-workspace.model.d.ts +1 -1
- package/src/ai/xpert.model.d.ts +21 -12
- package/src/api-key.model.d.ts +2 -0
- package/src/file-asset.model.d.ts +3 -1
- package/src/plugin.d.ts +7 -0
package/index.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$6(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,18 +1913,24 @@ function _object_spread$5(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;
|
|
1546
1920
|
}
|
|
1547
1921
|
var CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = "thread_context_usage";
|
|
1548
1922
|
var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
1923
|
+
var CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = "follow_up_consumed";
|
|
1549
1924
|
function createConversationTitleSummaryEvent(event) {
|
|
1550
|
-
return _object_spread$
|
|
1925
|
+
return _object_spread$7({
|
|
1551
1926
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1552
1927
|
}, event);
|
|
1553
1928
|
}
|
|
1929
|
+
function createFollowUpConsumedEvent(event) {
|
|
1930
|
+
return _object_spread$7({
|
|
1931
|
+
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1932
|
+
}, event);
|
|
1933
|
+
}
|
|
1554
1934
|
|
|
1555
1935
|
/**
|
|
1556
1936
|
* @deprecated use ChatMessageEventTypeEnum
|
|
@@ -1808,6 +2188,53 @@ function workflowNodeIdentifier(node) {
|
|
|
1808
2188
|
return node.title || node.key;
|
|
1809
2189
|
}
|
|
1810
2190
|
|
|
2191
|
+
function _define_property$7(obj, key, value) {
|
|
2192
|
+
if (key in obj) {
|
|
2193
|
+
Object.defineProperty(obj, key, {
|
|
2194
|
+
value: value,
|
|
2195
|
+
enumerable: true,
|
|
2196
|
+
configurable: true,
|
|
2197
|
+
writable: true
|
|
2198
|
+
});
|
|
2199
|
+
} else {
|
|
2200
|
+
obj[key] = value;
|
|
2201
|
+
}
|
|
2202
|
+
return obj;
|
|
2203
|
+
}
|
|
2204
|
+
function _object_spread$6(target) {
|
|
2205
|
+
for(var i = 1; i < arguments.length; i++){
|
|
2206
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
2207
|
+
var ownKeys = Object.keys(source);
|
|
2208
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
2209
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
2210
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
2211
|
+
}));
|
|
2212
|
+
}
|
|
2213
|
+
ownKeys.forEach(function(key) {
|
|
2214
|
+
_define_property$7(target, key, source[key]);
|
|
2215
|
+
});
|
|
2216
|
+
}
|
|
2217
|
+
return target;
|
|
2218
|
+
}
|
|
2219
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
2220
|
+
var keys = Object.keys(object);
|
|
2221
|
+
if (Object.getOwnPropertySymbols) {
|
|
2222
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
2223
|
+
keys.push.apply(keys, symbols);
|
|
2224
|
+
}
|
|
2225
|
+
return keys;
|
|
2226
|
+
}
|
|
2227
|
+
function _object_spread_props$5(target, source) {
|
|
2228
|
+
source = source != null ? source : {};
|
|
2229
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
2230
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2231
|
+
} else {
|
|
2232
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
2233
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2234
|
+
});
|
|
2235
|
+
}
|
|
2236
|
+
return target;
|
|
2237
|
+
}
|
|
1811
2238
|
exports.XpertTypeEnum = void 0;
|
|
1812
2239
|
(function(XpertTypeEnum) {
|
|
1813
2240
|
/**
|
|
@@ -1820,6 +2247,17 @@ exports.XpertTypeEnum = void 0;
|
|
|
1820
2247
|
* Knowledge Workflow
|
|
1821
2248
|
*/ XpertTypeEnum["Knowledge"] = "knowledge";
|
|
1822
2249
|
})(exports.XpertTypeEnum || (exports.XpertTypeEnum = {}));
|
|
2250
|
+
/**
|
|
2251
|
+
* Config for Agent execution (Langgraph.js)
|
|
2252
|
+
*/ var DEFAULT_XPERT_AGENT_RECURSION_LIMIT = 1000;
|
|
2253
|
+
function getXpertAgentRecursionLimit(agentConfig) {
|
|
2254
|
+
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
2255
|
+
}
|
|
2256
|
+
function normalizeXpertAgentConfig(agentConfig) {
|
|
2257
|
+
return _object_spread_props$5(_object_spread$6({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
2258
|
+
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
2259
|
+
});
|
|
2260
|
+
}
|
|
1823
2261
|
exports.LongTermMemoryTypeEnum = void 0;
|
|
1824
2262
|
(function(LongTermMemoryTypeEnum) {
|
|
1825
2263
|
LongTermMemoryTypeEnum["PROFILE"] = "profile";
|
|
@@ -1903,7 +2341,7 @@ function _array_like_to_array$5(arr, len) {
|
|
|
1903
2341
|
function _array_with_holes$4(arr) {
|
|
1904
2342
|
if (Array.isArray(arr)) return arr;
|
|
1905
2343
|
}
|
|
1906
|
-
function _define_property$
|
|
2344
|
+
function _define_property$6(obj, key, value) {
|
|
1907
2345
|
if (key in obj) {
|
|
1908
2346
|
Object.defineProperty(obj, key, {
|
|
1909
2347
|
value: value,
|
|
@@ -1943,7 +2381,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
1943
2381
|
function _non_iterable_rest$4() {
|
|
1944
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.");
|
|
1945
2383
|
}
|
|
1946
|
-
function _object_spread$
|
|
2384
|
+
function _object_spread$5(target) {
|
|
1947
2385
|
for(var i = 1; i < arguments.length; i++){
|
|
1948
2386
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1949
2387
|
var ownKeys = Object.keys(source);
|
|
@@ -1953,12 +2391,12 @@ function _object_spread$4(target) {
|
|
|
1953
2391
|
}));
|
|
1954
2392
|
}
|
|
1955
2393
|
ownKeys.forEach(function(key) {
|
|
1956
|
-
_define_property$
|
|
2394
|
+
_define_property$6(target, key, source[key]);
|
|
1957
2395
|
});
|
|
1958
2396
|
}
|
|
1959
2397
|
return target;
|
|
1960
2398
|
}
|
|
1961
|
-
function ownKeys$
|
|
2399
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
1962
2400
|
var keys = Object.keys(object);
|
|
1963
2401
|
if (Object.getOwnPropertySymbols) {
|
|
1964
2402
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1966,12 +2404,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
1966
2404
|
}
|
|
1967
2405
|
return keys;
|
|
1968
2406
|
}
|
|
1969
|
-
function _object_spread_props$
|
|
2407
|
+
function _object_spread_props$4(target, source) {
|
|
1970
2408
|
source = source != null ? source : {};
|
|
1971
2409
|
if (Object.getOwnPropertyDescriptors) {
|
|
1972
2410
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1973
2411
|
} else {
|
|
1974
|
-
ownKeys$
|
|
2412
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
1975
2413
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1976
2414
|
});
|
|
1977
2415
|
}
|
|
@@ -2003,6 +2441,9 @@ var STATE_SYS_VOLUME = "volume";
|
|
|
2003
2441
|
/**
|
|
2004
2442
|
* URL for workspace files in sandbox environment
|
|
2005
2443
|
*/ var STATE_SYS_WORKSPACE_URL = "workspace_url";
|
|
2444
|
+
/**
|
|
2445
|
+
* Current runtime thread id
|
|
2446
|
+
*/ var STATE_SYS_THREAD_ID = "thread_id";
|
|
2006
2447
|
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
2007
2448
|
// Helpers
|
|
2008
2449
|
function channelName(name) {
|
|
@@ -2020,9 +2461,9 @@ function messageContentText(content) {
|
|
|
2020
2461
|
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
|
|
2021
2462
|
type: "project",
|
|
2022
2463
|
id: ""
|
|
2023
|
-
} : (configurable === null || configurable === void 0 ? void 0 : configurable.thread_id) ? {
|
|
2024
|
-
type: "
|
|
2025
|
-
id:
|
|
2464
|
+
} : (configurable === null || configurable === void 0 ? void 0 : configurable.userId) || (configurable === null || configurable === void 0 ? void 0 : configurable.thread_id) ? {
|
|
2465
|
+
type: "user",
|
|
2466
|
+
id: ""
|
|
2026
2467
|
} : {};
|
|
2027
2468
|
}
|
|
2028
2469
|
function getToolCallFromConfig(config) {
|
|
@@ -2063,7 +2504,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
2063
2504
|
var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2064
2505
|
if (variableName) {
|
|
2065
2506
|
var _state_agentChannelName;
|
|
2066
|
-
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));
|
|
2067
2508
|
} else {
|
|
2068
2509
|
state[agentChannelName] = value;
|
|
2069
2510
|
}
|
|
@@ -2236,7 +2677,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
2236
2677
|
return letterStartSUID("KnowledgeBase_");
|
|
2237
2678
|
}
|
|
2238
2679
|
|
|
2239
|
-
function _define_property$
|
|
2680
|
+
function _define_property$5(obj, key, value) {
|
|
2240
2681
|
if (key in obj) {
|
|
2241
2682
|
Object.defineProperty(obj, key, {
|
|
2242
2683
|
value: value,
|
|
@@ -2249,7 +2690,7 @@ function _define_property$4(obj, key, value) {
|
|
|
2249
2690
|
}
|
|
2250
2691
|
return obj;
|
|
2251
2692
|
}
|
|
2252
|
-
function _object_spread$
|
|
2693
|
+
function _object_spread$4(target) {
|
|
2253
2694
|
for(var i = 1; i < arguments.length; i++){
|
|
2254
2695
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2255
2696
|
var ownKeys = Object.keys(source);
|
|
@@ -2259,7 +2700,7 @@ function _object_spread$3(target) {
|
|
|
2259
2700
|
}));
|
|
2260
2701
|
}
|
|
2261
2702
|
ownKeys.forEach(function(key) {
|
|
2262
|
-
_define_property$
|
|
2703
|
+
_define_property$5(target, key, source[key]);
|
|
2263
2704
|
});
|
|
2264
2705
|
}
|
|
2265
2706
|
return target;
|
|
@@ -2279,7 +2720,7 @@ function _object_spread$3(target) {
|
|
|
2279
2720
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
2280
2721
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
2281
2722
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
2282
|
-
var KDocumentSourceType = _object_spread$
|
|
2723
|
+
var KDocumentSourceType = _object_spread$4({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
2283
2724
|
/**
|
|
2284
2725
|
* Document type category, determine how to process the document.
|
|
2285
2726
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -2414,6 +2855,45 @@ exports.AIPermissionsEnum = void 0;
|
|
|
2414
2855
|
XpertAgentExecutionStatusEnum["INTERRUPTED"] = "interrupted";
|
|
2415
2856
|
})(exports.XpertAgentExecutionStatusEnum || (exports.XpertAgentExecutionStatusEnum = {}));
|
|
2416
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
|
+
|
|
2417
2897
|
exports.ToolParameterType = void 0;
|
|
2418
2898
|
(function(ToolParameterType) {
|
|
2419
2899
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2581,7 +3061,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2581
3061
|
function _array_without_holes$1(arr) {
|
|
2582
3062
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2583
3063
|
}
|
|
2584
|
-
function _define_property$
|
|
3064
|
+
function _define_property$4(obj, key, value) {
|
|
2585
3065
|
if (key in obj) {
|
|
2586
3066
|
Object.defineProperty(obj, key, {
|
|
2587
3067
|
value: value,
|
|
@@ -2600,7 +3080,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2600
3080
|
function _non_iterable_spread$1() {
|
|
2601
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.");
|
|
2602
3082
|
}
|
|
2603
|
-
function _object_spread$
|
|
3083
|
+
function _object_spread$3(target) {
|
|
2604
3084
|
for(var i = 1; i < arguments.length; i++){
|
|
2605
3085
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2606
3086
|
var ownKeys = Object.keys(source);
|
|
@@ -2610,12 +3090,12 @@ function _object_spread$2(target) {
|
|
|
2610
3090
|
}));
|
|
2611
3091
|
}
|
|
2612
3092
|
ownKeys.forEach(function(key) {
|
|
2613
|
-
_define_property$
|
|
3093
|
+
_define_property$4(target, key, source[key]);
|
|
2614
3094
|
});
|
|
2615
3095
|
}
|
|
2616
3096
|
return target;
|
|
2617
3097
|
}
|
|
2618
|
-
function ownKeys$
|
|
3098
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2619
3099
|
var keys = Object.keys(object);
|
|
2620
3100
|
if (Object.getOwnPropertySymbols) {
|
|
2621
3101
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2623,12 +3103,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2623
3103
|
}
|
|
2624
3104
|
return keys;
|
|
2625
3105
|
}
|
|
2626
|
-
function _object_spread_props$
|
|
3106
|
+
function _object_spread_props$3(target, source) {
|
|
2627
3107
|
source = source != null ? source : {};
|
|
2628
3108
|
if (Object.getOwnPropertyDescriptors) {
|
|
2629
3109
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2630
3110
|
} else {
|
|
2631
|
-
ownKeys$
|
|
3111
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2632
3112
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2633
3113
|
});
|
|
2634
3114
|
}
|
|
@@ -2949,9 +3429,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
2949
3429
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
2950
3430
|
replacedNode = true;
|
|
2951
3431
|
var _node_entity;
|
|
2952
|
-
return _object_spread_props$
|
|
3432
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
2953
3433
|
key: targetKey,
|
|
2954
|
-
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), {
|
|
2955
3435
|
key: targetKey
|
|
2956
3436
|
})
|
|
2957
3437
|
});
|
|
@@ -2967,17 +3447,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
2967
3447
|
if (from === connection.from && to === connection.to) {
|
|
2968
3448
|
return connection;
|
|
2969
3449
|
}
|
|
2970
|
-
return _object_spread_props$
|
|
3450
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
2971
3451
|
from: from,
|
|
2972
3452
|
to: to,
|
|
2973
3453
|
key: "".concat(from, "/").concat(to)
|
|
2974
3454
|
});
|
|
2975
3455
|
});
|
|
2976
|
-
return _object_spread_props$
|
|
2977
|
-
team: draft.team ? _object_spread_props$
|
|
2978
|
-
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), {
|
|
2979
3459
|
key: targetKey
|
|
2980
|
-
}) : _object_spread_props$
|
|
3460
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
2981
3461
|
key: targetKey
|
|
2982
3462
|
})
|
|
2983
3463
|
}) : draft.team,
|
|
@@ -3064,7 +3544,7 @@ exports.MCPServerType = void 0;
|
|
|
3064
3544
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3065
3545
|
* @param documents - A flat array of DocumentInterface objects
|
|
3066
3546
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3067
|
-
*/ function _define_property$
|
|
3547
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3068
3548
|
if (key in obj) {
|
|
3069
3549
|
Object.defineProperty(obj, key, {
|
|
3070
3550
|
value: value,
|
|
@@ -3077,7 +3557,7 @@ exports.MCPServerType = void 0;
|
|
|
3077
3557
|
}
|
|
3078
3558
|
return obj;
|
|
3079
3559
|
}
|
|
3080
|
-
function _object_spread$
|
|
3560
|
+
function _object_spread$2(target) {
|
|
3081
3561
|
for(var i = 1; i < arguments.length; i++){
|
|
3082
3562
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3083
3563
|
var ownKeys = Object.keys(source);
|
|
@@ -3087,12 +3567,12 @@ function _object_spread$1(target) {
|
|
|
3087
3567
|
}));
|
|
3088
3568
|
}
|
|
3089
3569
|
ownKeys.forEach(function(key) {
|
|
3090
|
-
_define_property$
|
|
3570
|
+
_define_property$3(target, key, source[key]);
|
|
3091
3571
|
});
|
|
3092
3572
|
}
|
|
3093
3573
|
return target;
|
|
3094
3574
|
}
|
|
3095
|
-
function ownKeys$
|
|
3575
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3096
3576
|
var keys = Object.keys(object);
|
|
3097
3577
|
if (Object.getOwnPropertySymbols) {
|
|
3098
3578
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3100,12 +3580,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3100
3580
|
}
|
|
3101
3581
|
return keys;
|
|
3102
3582
|
}
|
|
3103
|
-
function _object_spread_props$
|
|
3583
|
+
function _object_spread_props$2(target, source) {
|
|
3104
3584
|
source = source != null ? source : {};
|
|
3105
3585
|
if (Object.getOwnPropertyDescriptors) {
|
|
3106
3586
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3107
3587
|
} else {
|
|
3108
|
-
ownKeys$
|
|
3588
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3109
3589
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3110
3590
|
});
|
|
3111
3591
|
}
|
|
@@ -3119,10 +3599,11 @@ function buildChunkTree(documents) {
|
|
|
3119
3599
|
try {
|
|
3120
3600
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3121
3601
|
var doc = _step.value;
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3124
|
-
map.set(
|
|
3125
|
-
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,
|
|
3126
3607
|
children: []
|
|
3127
3608
|
})
|
|
3128
3609
|
}));
|
|
@@ -3173,6 +3654,16 @@ function buildChunkTree(documents) {
|
|
|
3173
3654
|
}
|
|
3174
3655
|
return roots;
|
|
3175
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
|
+
}
|
|
3176
3667
|
/**
|
|
3177
3668
|
* Find all leaf nodes (nodes without children).
|
|
3178
3669
|
*
|
|
@@ -3237,6 +3728,55 @@ function genXpertSkillKey() {
|
|
|
3237
3728
|
return letterStartSUID("Skill_");
|
|
3238
3729
|
}
|
|
3239
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";
|
|
3240
3780
|
function isMiddlewareToolEnabled(config) {
|
|
3241
3781
|
if (typeof config === "boolean") {
|
|
3242
3782
|
return config;
|
|
@@ -3246,6 +3786,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3246
3786
|
function genXpertMiddlewareKey() {
|
|
3247
3787
|
return letterStartSUID("Middleware_");
|
|
3248
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
|
+
}
|
|
3249
3816
|
var normalizeNodeKey = function(key) {
|
|
3250
3817
|
var _key_split;
|
|
3251
3818
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3267,6 +3834,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3267
3834
|
return middlewares;
|
|
3268
3835
|
}
|
|
3269
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
|
+
|
|
3270
3846
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3271
3847
|
"user",
|
|
3272
3848
|
"project",
|
|
@@ -4654,6 +5230,7 @@ function isInterruptMessage(obj) {
|
|
|
4654
5230
|
*/ exports.ApiKeyBindingType = void 0;
|
|
4655
5231
|
(function(ApiKeyBindingType) {
|
|
4656
5232
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5233
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4657
5234
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4658
5235
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4659
5236
|
/**
|
|
@@ -4795,7 +5372,10 @@ exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
|
|
|
4795
5372
|
exports.API_PRINCIPAL_USER_ID_HEADER = API_PRINCIPAL_USER_ID_HEADER;
|
|
4796
5373
|
exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
4797
5374
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
5375
|
+
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
4798
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;
|
|
4799
5379
|
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
4800
5380
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
4801
5381
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
@@ -4806,6 +5386,7 @@ exports.DEFAULT_REVENUE_BASED_BONUS = DEFAULT_REVENUE_BASED_BONUS;
|
|
|
4806
5386
|
exports.DEFAULT_SYSTEM_ROLES = DEFAULT_SYSTEM_ROLES;
|
|
4807
5387
|
exports.DEFAULT_TENANT = DEFAULT_TENANT;
|
|
4808
5388
|
exports.DEFAULT_TIME_FORMATS = DEFAULT_TIME_FORMATS;
|
|
5389
|
+
exports.DEFAULT_XPERT_AGENT_RECURSION_LIMIT = DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
4809
5390
|
exports.FILE_VARIABLES = FILE_VARIABLES;
|
|
4810
5391
|
exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
4811
5392
|
exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
|
|
@@ -4826,6 +5407,7 @@ exports.KNOWLEDGE_SOURCES_NAME = KNOWLEDGE_SOURCES_NAME;
|
|
|
4826
5407
|
exports.KNOWLEDGE_STAGE_NAME = KNOWLEDGE_STAGE_NAME;
|
|
4827
5408
|
exports.KnowledgeTask = KnowledgeTask;
|
|
4828
5409
|
exports.KnowledgebaseChannel = KnowledgebaseChannel;
|
|
5410
|
+
exports.LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME;
|
|
4829
5411
|
exports.LanguagesMap = LanguagesMap;
|
|
4830
5412
|
exports.MDX = schema;
|
|
4831
5413
|
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
@@ -4838,8 +5420,10 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
4838
5420
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
4839
5421
|
exports.PermissionApprovalStatus = PermissionApprovalStatus;
|
|
4840
5422
|
exports.PermissionGroups = PermissionGroups;
|
|
5423
|
+
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
4841
5424
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
4842
5425
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
5426
|
+
exports.STATE_SYS_THREAD_ID = STATE_SYS_THREAD_ID;
|
|
4843
5427
|
exports.STATE_SYS_VOLUME = STATE_SYS_VOLUME;
|
|
4844
5428
|
exports.STATE_SYS_WORKSPACE_PATH = STATE_SYS_WORKSPACE_PATH;
|
|
4845
5429
|
exports.STATE_SYS_WORKSPACE_URL = STATE_SYS_WORKSPACE_URL;
|
|
@@ -4870,12 +5454,16 @@ exports.configurableStoreNamespace = configurableStoreNamespace;
|
|
|
4870
5454
|
exports.convertToUrlPath = convertToUrlPath;
|
|
4871
5455
|
exports.createAgentConnections = createAgentConnections;
|
|
4872
5456
|
exports.createConversationTitleSummaryEvent = createConversationTitleSummaryEvent;
|
|
5457
|
+
exports.createFollowUpConsumedEvent = createFollowUpConsumedEvent;
|
|
4873
5458
|
exports.createMessageAppendContextTracker = createMessageAppendContextTracker;
|
|
4874
5459
|
exports.createXpertGraph = createXpertGraph;
|
|
4875
5460
|
exports.createXpertNodes = createXpertNodes;
|
|
4876
5461
|
exports.embeddingCubeCollectionName = embeddingCubeCollectionName;
|
|
5462
|
+
exports.ensureAssistantBindingSkillWorkspacePreference = ensureAssistantBindingSkillWorkspacePreference;
|
|
4877
5463
|
exports.extractSemanticModelDraft = extractSemanticModelDraft;
|
|
4878
5464
|
exports.figureOutXpert = figureOutXpert;
|
|
5465
|
+
exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledSkillIds;
|
|
5466
|
+
exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
|
|
4879
5467
|
exports.filterMessageText = filterMessageText;
|
|
4880
5468
|
exports.findStartNodes = findStartNodes;
|
|
4881
5469
|
exports.genJSONParseKey = genJSONParseKey;
|
|
@@ -4900,6 +5488,8 @@ exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
|
4900
5488
|
exports.generateCronExpression = generateCronExpression;
|
|
4901
5489
|
exports.getAgentMiddlewareNodes = getAgentMiddlewareNodes;
|
|
4902
5490
|
exports.getAgentVarGroup = getAgentVarGroup;
|
|
5491
|
+
exports.getAssistantBindingDisabledSkillIds = getAssistantBindingDisabledSkillIds;
|
|
5492
|
+
exports.getAssistantBindingDisabledTools = getAssistantBindingDisabledTools;
|
|
4903
5493
|
exports.getAssistantManagement = getAssistantManagement;
|
|
4904
5494
|
exports.getCurrentGraph = getCurrentGraph;
|
|
4905
5495
|
exports.getEnabledTools = getEnabledTools;
|
|
@@ -4911,9 +5501,14 @@ exports.getToolLabel = getToolLabel;
|
|
|
4911
5501
|
exports.getVariableSchema = getVariableSchema;
|
|
4912
5502
|
exports.getWorkflowTriggers = getWorkflowTriggers;
|
|
4913
5503
|
exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
5504
|
+
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
4914
5505
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
4915
5506
|
exports.isAgentKey = isAgentKey;
|
|
5507
|
+
exports.isAssistantBindingSkillEnabled = isAssistantBindingSkillEnabled;
|
|
5508
|
+
exports.isAssistantBindingToolEnabled = isAssistantBindingToolEnabled;
|
|
5509
|
+
exports.isAssistantBindingToolPreferencesEmpty = isAssistantBindingToolPreferencesEmpty;
|
|
4916
5510
|
exports.isAudioType = isAudioType;
|
|
5511
|
+
exports.isContextCompressionComponentData = isContextCompressionComponentData;
|
|
4917
5512
|
exports.isDocumentSheet = isDocumentSheet;
|
|
4918
5513
|
exports.isEnableTool = isEnableTool;
|
|
4919
5514
|
exports.isImageType = isImageType;
|
|
@@ -4933,6 +5528,11 @@ exports.locateNodes = locateNodes;
|
|
|
4933
5528
|
exports.mapTranslationLanguage = mapTranslationLanguage;
|
|
4934
5529
|
exports.mergeMessageContentForDisplay = mergeMessageContentForDisplay;
|
|
4935
5530
|
exports.messageContentText = messageContentText;
|
|
5531
|
+
exports.normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences;
|
|
5532
|
+
exports.normalizeMiddlewareNode = normalizeMiddlewareNode;
|
|
5533
|
+
exports.normalizeMiddlewareNodes = normalizeMiddlewareNodes;
|
|
5534
|
+
exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
5535
|
+
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
4936
5536
|
exports.omitXpertRelations = omitXpertRelations;
|
|
4937
5537
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
4938
5538
|
exports.resolveMessageAppendContext = resolveMessageAppendContext;
|
|
@@ -4940,6 +5540,8 @@ exports.setStateVariable = setStateVariable;
|
|
|
4940
5540
|
exports.shortTitle = shortTitle;
|
|
4941
5541
|
exports.stringifyMessageContent = stringifyMessageContent;
|
|
4942
5542
|
exports.transformInstallation = transformInstallation;
|
|
5543
|
+
exports.updateAssistantBindingSkillPreferences = updateAssistantBindingSkillPreferences;
|
|
5544
|
+
exports.updateAssistantBindingToolPreferences = updateAssistantBindingToolPreferences;
|
|
4943
5545
|
exports.uuid = uuid;
|
|
4944
5546
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
4945
5547
|
exports.xpertLabel = xpertLabel;
|