@xpert-ai/contracts 3.9.0-beta.3 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +625 -57
- package/index.esm.js +603 -58
- package/package.json +1 -1
- package/src/ai/assistant-binding.model.d.ts +21 -1
- package/src/ai/chat-event.model.d.ts +1 -1
- package/src/ai/chat-message.model.d.ts +69 -0
- package/src/ai/context-compression.model.d.ts +13 -0
- package/src/ai/index.d.ts +3 -0
- package/src/ai/middleware.model.d.ts +5 -0
- package/src/ai/sandbox-service.model.d.ts +62 -0
- package/src/ai/sandbox-terminal.model.d.ts +108 -0
- package/src/ai/skill.model.d.ts +1 -0
- package/src/ai/xpert-template.model.d.ts +63 -0
- package/src/ai/xpert-workspace.model.d.ts +15 -1
- package/src/ai/xpert.model.d.ts +9 -12
- package/src/api-key.model.d.ts +2 -0
- package/src/file-asset.model.d.ts +3 -1
- package/src/plugin.d.ts +7 -0
- package/src/storage-file.model.d.ts +1 -0
- package/src/tenant.model.d.ts +2 -0
package/index.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,72 @@ 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
|
+
|
|
2897
|
+
var SANDBOX_MANAGED_SERVICE_STATUSES = [
|
|
2898
|
+
"starting",
|
|
2899
|
+
"running",
|
|
2900
|
+
"stopping",
|
|
2901
|
+
"stopped",
|
|
2902
|
+
"failed",
|
|
2903
|
+
"lost"
|
|
2904
|
+
];
|
|
2905
|
+
var SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = [
|
|
2906
|
+
"none",
|
|
2907
|
+
"http"
|
|
2908
|
+
];
|
|
2909
|
+
exports.SandboxManagedServiceErrorCode = void 0;
|
|
2910
|
+
(function(SandboxManagedServiceErrorCode) {
|
|
2911
|
+
SandboxManagedServiceErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2912
|
+
SandboxManagedServiceErrorCode["ConversationRequired"] = "conversation_required";
|
|
2913
|
+
SandboxManagedServiceErrorCode["PortRequired"] = "port_required";
|
|
2914
|
+
SandboxManagedServiceErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2915
|
+
SandboxManagedServiceErrorCode["PreviewUnavailable"] = "preview_unavailable";
|
|
2916
|
+
SandboxManagedServiceErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2917
|
+
SandboxManagedServiceErrorCode["ServiceNameConflict"] = "service_name_conflict";
|
|
2918
|
+
SandboxManagedServiceErrorCode["ServiceNotFound"] = "service_not_found";
|
|
2919
|
+
SandboxManagedServiceErrorCode["ServiceStartFailed"] = "service_start_failed";
|
|
2920
|
+
SandboxManagedServiceErrorCode["ServiceStopFailed"] = "service_stop_failed";
|
|
2921
|
+
SandboxManagedServiceErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2922
|
+
})(exports.SandboxManagedServiceErrorCode || (exports.SandboxManagedServiceErrorCode = {}));
|
|
2923
|
+
|
|
2484
2924
|
exports.ToolParameterType = void 0;
|
|
2485
2925
|
(function(ToolParameterType) {
|
|
2486
2926
|
ToolParameterType["STRING"] = "string";
|
|
@@ -2611,6 +3051,14 @@ exports.ToolTagEnum = void 0;
|
|
|
2611
3051
|
ToolTagEnum["OTHER"] = "other";
|
|
2612
3052
|
})(exports.ToolTagEnum || (exports.ToolTagEnum = {}));
|
|
2613
3053
|
|
|
3054
|
+
function getXpertWorkspaceVisibility(workspace) {
|
|
3055
|
+
var _workspace_settings_access, _workspace_settings;
|
|
3056
|
+
return (workspace === null || workspace === void 0 ? void 0 : (_workspace_settings = workspace.settings) === null || _workspace_settings === void 0 ? void 0 : (_workspace_settings_access = _workspace_settings.access) === null || _workspace_settings_access === void 0 ? void 0 : _workspace_settings_access.visibility) === "tenant-shared" ? "tenant-shared" : "private";
|
|
3057
|
+
}
|
|
3058
|
+
function isTenantSharedXpertWorkspace(workspace) {
|
|
3059
|
+
return getXpertWorkspaceVisibility(workspace) === "tenant-shared";
|
|
3060
|
+
}
|
|
3061
|
+
|
|
2614
3062
|
/**
|
|
2615
3063
|
* Table status
|
|
2616
3064
|
*/ exports.XpertTableStatus = void 0;
|
|
@@ -2648,7 +3096,7 @@ function _array_like_to_array$4(arr, len) {
|
|
|
2648
3096
|
function _array_without_holes$1(arr) {
|
|
2649
3097
|
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
2650
3098
|
}
|
|
2651
|
-
function _define_property$
|
|
3099
|
+
function _define_property$4(obj, key, value) {
|
|
2652
3100
|
if (key in obj) {
|
|
2653
3101
|
Object.defineProperty(obj, key, {
|
|
2654
3102
|
value: value,
|
|
@@ -2667,7 +3115,7 @@ function _iterable_to_array$2(iter) {
|
|
|
2667
3115
|
function _non_iterable_spread$1() {
|
|
2668
3116
|
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
3117
|
}
|
|
2670
|
-
function _object_spread$
|
|
3118
|
+
function _object_spread$3(target) {
|
|
2671
3119
|
for(var i = 1; i < arguments.length; i++){
|
|
2672
3120
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2673
3121
|
var ownKeys = Object.keys(source);
|
|
@@ -2677,12 +3125,12 @@ function _object_spread$2(target) {
|
|
|
2677
3125
|
}));
|
|
2678
3126
|
}
|
|
2679
3127
|
ownKeys.forEach(function(key) {
|
|
2680
|
-
_define_property$
|
|
3128
|
+
_define_property$4(target, key, source[key]);
|
|
2681
3129
|
});
|
|
2682
3130
|
}
|
|
2683
3131
|
return target;
|
|
2684
3132
|
}
|
|
2685
|
-
function ownKeys$
|
|
3133
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
2686
3134
|
var keys = Object.keys(object);
|
|
2687
3135
|
if (Object.getOwnPropertySymbols) {
|
|
2688
3136
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2690,12 +3138,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
2690
3138
|
}
|
|
2691
3139
|
return keys;
|
|
2692
3140
|
}
|
|
2693
|
-
function _object_spread_props$
|
|
3141
|
+
function _object_spread_props$3(target, source) {
|
|
2694
3142
|
source = source != null ? source : {};
|
|
2695
3143
|
if (Object.getOwnPropertyDescriptors) {
|
|
2696
3144
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2697
3145
|
} else {
|
|
2698
|
-
ownKeys$
|
|
3146
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
2699
3147
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2700
3148
|
});
|
|
2701
3149
|
}
|
|
@@ -3016,9 +3464,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3016
3464
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
3017
3465
|
replacedNode = true;
|
|
3018
3466
|
var _node_entity;
|
|
3019
|
-
return _object_spread_props$
|
|
3467
|
+
return _object_spread_props$3(_object_spread$3({}, node), {
|
|
3020
3468
|
key: targetKey,
|
|
3021
|
-
entity: _object_spread_props$
|
|
3469
|
+
entity: _object_spread_props$3(_object_spread$3({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
3022
3470
|
key: targetKey
|
|
3023
3471
|
})
|
|
3024
3472
|
});
|
|
@@ -3034,17 +3482,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
3034
3482
|
if (from === connection.from && to === connection.to) {
|
|
3035
3483
|
return connection;
|
|
3036
3484
|
}
|
|
3037
|
-
return _object_spread_props$
|
|
3485
|
+
return _object_spread_props$3(_object_spread$3({}, connection), {
|
|
3038
3486
|
from: from,
|
|
3039
3487
|
to: to,
|
|
3040
3488
|
key: "".concat(from, "/").concat(to)
|
|
3041
3489
|
});
|
|
3042
3490
|
});
|
|
3043
|
-
return _object_spread_props$
|
|
3044
|
-
team: draft.team ? _object_spread_props$
|
|
3045
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
3491
|
+
return _object_spread_props$3(_object_spread$3({}, draft), {
|
|
3492
|
+
team: draft.team ? _object_spread_props$3(_object_spread$3({}, draft.team), {
|
|
3493
|
+
agent: draft.team.agent ? _object_spread_props$3(_object_spread$3({}, draft.team.agent, agent), {
|
|
3046
3494
|
key: targetKey
|
|
3047
|
-
}) : _object_spread_props$
|
|
3495
|
+
}) : _object_spread_props$3(_object_spread$3({}, agent), {
|
|
3048
3496
|
key: targetKey
|
|
3049
3497
|
})
|
|
3050
3498
|
}) : draft.team,
|
|
@@ -3131,7 +3579,7 @@ exports.MCPServerType = void 0;
|
|
|
3131
3579
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3132
3580
|
* @param documents - A flat array of DocumentInterface objects
|
|
3133
3581
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3134
|
-
*/ function _define_property$
|
|
3582
|
+
*/ function _define_property$3(obj, key, value) {
|
|
3135
3583
|
if (key in obj) {
|
|
3136
3584
|
Object.defineProperty(obj, key, {
|
|
3137
3585
|
value: value,
|
|
@@ -3144,7 +3592,7 @@ exports.MCPServerType = void 0;
|
|
|
3144
3592
|
}
|
|
3145
3593
|
return obj;
|
|
3146
3594
|
}
|
|
3147
|
-
function _object_spread$
|
|
3595
|
+
function _object_spread$2(target) {
|
|
3148
3596
|
for(var i = 1; i < arguments.length; i++){
|
|
3149
3597
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3150
3598
|
var ownKeys = Object.keys(source);
|
|
@@ -3154,12 +3602,12 @@ function _object_spread$1(target) {
|
|
|
3154
3602
|
}));
|
|
3155
3603
|
}
|
|
3156
3604
|
ownKeys.forEach(function(key) {
|
|
3157
|
-
_define_property$
|
|
3605
|
+
_define_property$3(target, key, source[key]);
|
|
3158
3606
|
});
|
|
3159
3607
|
}
|
|
3160
3608
|
return target;
|
|
3161
3609
|
}
|
|
3162
|
-
function ownKeys$
|
|
3610
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
3163
3611
|
var keys = Object.keys(object);
|
|
3164
3612
|
if (Object.getOwnPropertySymbols) {
|
|
3165
3613
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3167,12 +3615,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
3167
3615
|
}
|
|
3168
3616
|
return keys;
|
|
3169
3617
|
}
|
|
3170
|
-
function _object_spread_props$
|
|
3618
|
+
function _object_spread_props$2(target, source) {
|
|
3171
3619
|
source = source != null ? source : {};
|
|
3172
3620
|
if (Object.getOwnPropertyDescriptors) {
|
|
3173
3621
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3174
3622
|
} else {
|
|
3175
|
-
ownKeys$
|
|
3623
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
3176
3624
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3177
3625
|
});
|
|
3178
3626
|
}
|
|
@@ -3186,10 +3634,11 @@ function buildChunkTree(documents) {
|
|
|
3186
3634
|
try {
|
|
3187
3635
|
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3188
3636
|
var doc = _step.value;
|
|
3189
|
-
var
|
|
3190
|
-
if (
|
|
3191
|
-
map.set(
|
|
3192
|
-
metadata: _object_spread_props$
|
|
3637
|
+
var chunkId = getChunkNodeId(doc);
|
|
3638
|
+
if (chunkId) {
|
|
3639
|
+
map.set(chunkId, _object_spread_props$2(_object_spread$2({}, doc), {
|
|
3640
|
+
metadata: _object_spread_props$2(_object_spread$2({}, doc.metadata), {
|
|
3641
|
+
chunkId: chunkId,
|
|
3193
3642
|
children: []
|
|
3194
3643
|
})
|
|
3195
3644
|
}));
|
|
@@ -3240,6 +3689,16 @@ function buildChunkTree(documents) {
|
|
|
3240
3689
|
}
|
|
3241
3690
|
return roots;
|
|
3242
3691
|
}
|
|
3692
|
+
function getChunkNodeId(document) {
|
|
3693
|
+
var _document_metadata;
|
|
3694
|
+
if ((_document_metadata = document.metadata) === null || _document_metadata === void 0 ? void 0 : _document_metadata.chunkId) {
|
|
3695
|
+
return document.metadata.chunkId;
|
|
3696
|
+
}
|
|
3697
|
+
if ("id" in document && typeof document.id === "string" && document.id) {
|
|
3698
|
+
return document.id;
|
|
3699
|
+
}
|
|
3700
|
+
return undefined;
|
|
3701
|
+
}
|
|
3243
3702
|
/**
|
|
3244
3703
|
* Find all leaf nodes (nodes without children).
|
|
3245
3704
|
*
|
|
@@ -3304,6 +3763,55 @@ function genXpertSkillKey() {
|
|
|
3304
3763
|
return letterStartSUID("Skill_");
|
|
3305
3764
|
}
|
|
3306
3765
|
|
|
3766
|
+
function _define_property$2(obj, key, value) {
|
|
3767
|
+
if (key in obj) {
|
|
3768
|
+
Object.defineProperty(obj, key, {
|
|
3769
|
+
value: value,
|
|
3770
|
+
enumerable: true,
|
|
3771
|
+
configurable: true,
|
|
3772
|
+
writable: true
|
|
3773
|
+
});
|
|
3774
|
+
} else {
|
|
3775
|
+
obj[key] = value;
|
|
3776
|
+
}
|
|
3777
|
+
return obj;
|
|
3778
|
+
}
|
|
3779
|
+
function _object_spread$1(target) {
|
|
3780
|
+
for(var i = 1; i < arguments.length; i++){
|
|
3781
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3782
|
+
var ownKeys = Object.keys(source);
|
|
3783
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3784
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3785
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3786
|
+
}));
|
|
3787
|
+
}
|
|
3788
|
+
ownKeys.forEach(function(key) {
|
|
3789
|
+
_define_property$2(target, key, source[key]);
|
|
3790
|
+
});
|
|
3791
|
+
}
|
|
3792
|
+
return target;
|
|
3793
|
+
}
|
|
3794
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
3795
|
+
var keys = Object.keys(object);
|
|
3796
|
+
if (Object.getOwnPropertySymbols) {
|
|
3797
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3798
|
+
keys.push.apply(keys, symbols);
|
|
3799
|
+
}
|
|
3800
|
+
return keys;
|
|
3801
|
+
}
|
|
3802
|
+
function _object_spread_props$1(target, source) {
|
|
3803
|
+
source = source != null ? source : {};
|
|
3804
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3805
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3806
|
+
} else {
|
|
3807
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
3808
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3809
|
+
});
|
|
3810
|
+
}
|
|
3811
|
+
return target;
|
|
3812
|
+
}
|
|
3813
|
+
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
3814
|
+
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
3307
3815
|
function isMiddlewareToolEnabled(config) {
|
|
3308
3816
|
if (typeof config === "boolean") {
|
|
3309
3817
|
return config;
|
|
@@ -3313,6 +3821,33 @@ function isMiddlewareToolEnabled(config) {
|
|
|
3313
3821
|
function genXpertMiddlewareKey() {
|
|
3314
3822
|
return letterStartSUID("Middleware_");
|
|
3315
3823
|
}
|
|
3824
|
+
function normalizeMiddlewareProvider(provider) {
|
|
3825
|
+
if (provider === LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME) {
|
|
3826
|
+
return CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
3827
|
+
}
|
|
3828
|
+
return provider !== null && provider !== void 0 ? provider : "";
|
|
3829
|
+
}
|
|
3830
|
+
function normalizeMiddlewareNode(node) {
|
|
3831
|
+
var _node_entity;
|
|
3832
|
+
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) {
|
|
3833
|
+
return node;
|
|
3834
|
+
}
|
|
3835
|
+
var entity = node.entity;
|
|
3836
|
+
var provider = normalizeMiddlewareProvider(entity.provider);
|
|
3837
|
+
if (provider === entity.provider) {
|
|
3838
|
+
return node;
|
|
3839
|
+
}
|
|
3840
|
+
return _object_spread_props$1(_object_spread$1({}, node), {
|
|
3841
|
+
entity: _object_spread_props$1(_object_spread$1({}, entity), {
|
|
3842
|
+
provider: provider
|
|
3843
|
+
})
|
|
3844
|
+
});
|
|
3845
|
+
}
|
|
3846
|
+
function normalizeMiddlewareNodes(nodes) {
|
|
3847
|
+
return (nodes !== null && nodes !== void 0 ? nodes : []).map(function(node) {
|
|
3848
|
+
return normalizeMiddlewareNode(node);
|
|
3849
|
+
});
|
|
3850
|
+
}
|
|
3316
3851
|
var normalizeNodeKey = function(key) {
|
|
3317
3852
|
var _key_split;
|
|
3318
3853
|
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
@@ -3334,6 +3869,15 @@ function getAgentMiddlewareNodes(graph, agentKey) {
|
|
|
3334
3869
|
return middlewares;
|
|
3335
3870
|
}
|
|
3336
3871
|
|
|
3872
|
+
var CONTEXT_COMPRESSION_COMPONENT_TYPE = "context-compression";
|
|
3873
|
+
function isContextCompressionComponentData(value) {
|
|
3874
|
+
if (!value || typeof value !== "object") {
|
|
3875
|
+
return false;
|
|
3876
|
+
}
|
|
3877
|
+
var candidate = value;
|
|
3878
|
+
return candidate.category === "Tool" && candidate.type === CONTEXT_COMPRESSION_COMPONENT_TYPE && (candidate.status === "running" || candidate.status === "success" || candidate.status === "fail");
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3337
3881
|
var SANDBOX_WORK_FOR_TYPES = [
|
|
3338
3882
|
"user",
|
|
3339
3883
|
"project",
|
|
@@ -4721,6 +5265,7 @@ function isInterruptMessage(obj) {
|
|
|
4721
5265
|
*/ exports.ApiKeyBindingType = void 0;
|
|
4722
5266
|
(function(ApiKeyBindingType) {
|
|
4723
5267
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
5268
|
+
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
4724
5269
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
4725
5270
|
ApiKeyBindingType["CLIENT"] = "client";
|
|
4726
5271
|
/**
|
|
@@ -4864,6 +5409,8 @@ exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
|
4864
5409
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
4865
5410
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
4866
5411
|
exports.CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE;
|
|
5412
|
+
exports.CONTEXT_COMPRESSION_COMPONENT_TYPE = CONTEXT_COMPRESSION_COMPONENT_TYPE;
|
|
5413
|
+
exports.CONTEXT_COMPRESSION_MIDDLEWARE_NAME = CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
|
|
4867
5414
|
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
4868
5415
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
4869
5416
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
@@ -4895,6 +5442,7 @@ exports.KNOWLEDGE_SOURCES_NAME = KNOWLEDGE_SOURCES_NAME;
|
|
|
4895
5442
|
exports.KNOWLEDGE_STAGE_NAME = KNOWLEDGE_STAGE_NAME;
|
|
4896
5443
|
exports.KnowledgeTask = KnowledgeTask;
|
|
4897
5444
|
exports.KnowledgebaseChannel = KnowledgebaseChannel;
|
|
5445
|
+
exports.LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME;
|
|
4898
5446
|
exports.LanguagesMap = LanguagesMap;
|
|
4899
5447
|
exports.MDX = schema;
|
|
4900
5448
|
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
@@ -4907,6 +5455,9 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
4907
5455
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
4908
5456
|
exports.PermissionApprovalStatus = PermissionApprovalStatus;
|
|
4909
5457
|
exports.PermissionGroups = PermissionGroups;
|
|
5458
|
+
exports.SANDBOX_MANAGED_SERVICE_STATUSES = SANDBOX_MANAGED_SERVICE_STATUSES;
|
|
5459
|
+
exports.SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES;
|
|
5460
|
+
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
4910
5461
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
4911
5462
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
4912
5463
|
exports.STATE_SYS_THREAD_ID = STATE_SYS_THREAD_ID;
|
|
@@ -4945,8 +5496,11 @@ exports.createMessageAppendContextTracker = createMessageAppendContextTracker;
|
|
|
4945
5496
|
exports.createXpertGraph = createXpertGraph;
|
|
4946
5497
|
exports.createXpertNodes = createXpertNodes;
|
|
4947
5498
|
exports.embeddingCubeCollectionName = embeddingCubeCollectionName;
|
|
5499
|
+
exports.ensureAssistantBindingSkillWorkspacePreference = ensureAssistantBindingSkillWorkspacePreference;
|
|
4948
5500
|
exports.extractSemanticModelDraft = extractSemanticModelDraft;
|
|
4949
5501
|
exports.figureOutXpert = figureOutXpert;
|
|
5502
|
+
exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledSkillIds;
|
|
5503
|
+
exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
|
|
4950
5504
|
exports.filterMessageText = filterMessageText;
|
|
4951
5505
|
exports.findStartNodes = findStartNodes;
|
|
4952
5506
|
exports.genJSONParseKey = genJSONParseKey;
|
|
@@ -4971,6 +5525,8 @@ exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
|
4971
5525
|
exports.generateCronExpression = generateCronExpression;
|
|
4972
5526
|
exports.getAgentMiddlewareNodes = getAgentMiddlewareNodes;
|
|
4973
5527
|
exports.getAgentVarGroup = getAgentVarGroup;
|
|
5528
|
+
exports.getAssistantBindingDisabledSkillIds = getAssistantBindingDisabledSkillIds;
|
|
5529
|
+
exports.getAssistantBindingDisabledTools = getAssistantBindingDisabledTools;
|
|
4974
5530
|
exports.getAssistantManagement = getAssistantManagement;
|
|
4975
5531
|
exports.getCurrentGraph = getCurrentGraph;
|
|
4976
5532
|
exports.getEnabledTools = getEnabledTools;
|
|
@@ -4983,9 +5539,14 @@ exports.getVariableSchema = getVariableSchema;
|
|
|
4983
5539
|
exports.getWorkflowTriggers = getWorkflowTriggers;
|
|
4984
5540
|
exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
4985
5541
|
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
5542
|
+
exports.getXpertWorkspaceVisibility = getXpertWorkspaceVisibility;
|
|
4986
5543
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
4987
5544
|
exports.isAgentKey = isAgentKey;
|
|
5545
|
+
exports.isAssistantBindingSkillEnabled = isAssistantBindingSkillEnabled;
|
|
5546
|
+
exports.isAssistantBindingToolEnabled = isAssistantBindingToolEnabled;
|
|
5547
|
+
exports.isAssistantBindingToolPreferencesEmpty = isAssistantBindingToolPreferencesEmpty;
|
|
4988
5548
|
exports.isAudioType = isAudioType;
|
|
5549
|
+
exports.isContextCompressionComponentData = isContextCompressionComponentData;
|
|
4989
5550
|
exports.isDocumentSheet = isDocumentSheet;
|
|
4990
5551
|
exports.isEnableTool = isEnableTool;
|
|
4991
5552
|
exports.isImageType = isImageType;
|
|
@@ -4996,6 +5557,7 @@ exports.isMessageGroup = isMessageGroup;
|
|
|
4996
5557
|
exports.isMiddlewareToolEnabled = isMiddlewareToolEnabled;
|
|
4997
5558
|
exports.isRouterKey = isRouterKey;
|
|
4998
5559
|
exports.isSystemManagedAssistant = isSystemManagedAssistant;
|
|
5560
|
+
exports.isTenantSharedXpertWorkspace = isTenantSharedXpertWorkspace;
|
|
4999
5561
|
exports.isToolEnabled = isToolEnabled;
|
|
5000
5562
|
exports.isUserManagedAssistant = isUserManagedAssistant;
|
|
5001
5563
|
exports.isVideoType = isVideoType;
|
|
@@ -5005,6 +5567,10 @@ exports.locateNodes = locateNodes;
|
|
|
5005
5567
|
exports.mapTranslationLanguage = mapTranslationLanguage;
|
|
5006
5568
|
exports.mergeMessageContentForDisplay = mergeMessageContentForDisplay;
|
|
5007
5569
|
exports.messageContentText = messageContentText;
|
|
5570
|
+
exports.normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences;
|
|
5571
|
+
exports.normalizeMiddlewareNode = normalizeMiddlewareNode;
|
|
5572
|
+
exports.normalizeMiddlewareNodes = normalizeMiddlewareNodes;
|
|
5573
|
+
exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
5008
5574
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
5009
5575
|
exports.omitXpertRelations = omitXpertRelations;
|
|
5010
5576
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
@@ -5013,6 +5579,8 @@ exports.setStateVariable = setStateVariable;
|
|
|
5013
5579
|
exports.shortTitle = shortTitle;
|
|
5014
5580
|
exports.stringifyMessageContent = stringifyMessageContent;
|
|
5015
5581
|
exports.transformInstallation = transformInstallation;
|
|
5582
|
+
exports.updateAssistantBindingSkillPreferences = updateAssistantBindingSkillPreferences;
|
|
5583
|
+
exports.updateAssistantBindingToolPreferences = updateAssistantBindingToolPreferences;
|
|
5016
5584
|
exports.uuid = uuid;
|
|
5017
5585
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
5018
5586
|
exports.xpertLabel = xpertLabel;
|