@xpert-ai/contracts 3.17.6 → 3.18.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 +125 -34
- package/index.esm.js +117 -35
- package/package.json +2 -2
- package/src/ai/assistant-model.model.d.ts +29 -0
- package/src/ai/assistant-user-preference.model.d.ts +26 -0
- package/src/ai/chat-message.model.d.ts +5 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/knowledgebase.model.d.ts +5 -0
- package/src/ai/mcp-publication.model.d.ts +12 -0
- package/src/ai/model-usage.model.d.ts +32 -0
- package/src/ai/skill.model.d.ts +13 -0
- package/src/ai/xpert-agent-execution.model.d.ts +5 -0
- package/src/ai/xpert-chat.model.d.ts +4 -1
- package/src/ai/xpert-project.model.d.ts +92 -3
- package/src/ai/xpert-task.model.d.ts +16 -0
- package/src/ai/xpert-template.model.d.ts +3 -1
- package/src/ai/xpert-workspace.model.d.ts +15 -2
- package/src/ai/xpert.model.d.ts +23 -1
- package/src/ai/xpert.utils.d.ts +2 -1
- package/src/artifact.model.d.ts +1 -1
- package/src/file-asset.model.d.ts +5 -1
- package/src/organization.model.d.ts +3 -0
- package/src/plugin.d.ts +237 -1
- package/src/view-extension/model.d.ts +90 -0
package/index.cjs.js
CHANGED
|
@@ -87,30 +87,30 @@ function resolveI18nText(value) {
|
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function _array_like_to_array$
|
|
90
|
+
function _array_like_to_array$9(arr, len) {
|
|
91
91
|
if (len == null || len > arr.length) len = arr.length;
|
|
92
92
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
93
93
|
return arr2;
|
|
94
94
|
}
|
|
95
95
|
function _array_without_holes$3(arr) {
|
|
96
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
96
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
97
97
|
}
|
|
98
|
-
function _iterable_to_array$
|
|
98
|
+
function _iterable_to_array$5(iter) {
|
|
99
99
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
100
100
|
}
|
|
101
101
|
function _non_iterable_spread$3() {
|
|
102
102
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
103
103
|
}
|
|
104
104
|
function _to_consumable_array$3(arr) {
|
|
105
|
-
return _array_without_holes$3(arr) || _iterable_to_array$
|
|
105
|
+
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
106
106
|
}
|
|
107
|
-
function _unsupported_iterable_to_array$
|
|
107
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
108
108
|
if (!o) return;
|
|
109
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
109
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
110
110
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
111
111
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
112
112
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
113
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
113
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
114
114
|
}
|
|
115
115
|
var _uuidGenerator;
|
|
116
116
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -935,6 +935,7 @@ exports.OrganizationSelectInput = void 0;
|
|
|
935
935
|
OrganizationSelectInput["createdAt"] = "createdAt";
|
|
936
936
|
OrganizationSelectInput["updatedAt"] = "updatedAt";
|
|
937
937
|
OrganizationSelectInput["isActive"] = "isActive";
|
|
938
|
+
OrganizationSelectInput["sidebarExpandedByDefault"] = "sidebarExpandedByDefault";
|
|
938
939
|
OrganizationSelectInput["tags"] = "tags";
|
|
939
940
|
})(exports.OrganizationSelectInput || (exports.OrganizationSelectInput = {}));
|
|
940
941
|
exports.RegionsEnum = void 0;
|
|
@@ -1223,16 +1224,16 @@ function toIsoString(value) {
|
|
|
1223
1224
|
return new Date().toISOString();
|
|
1224
1225
|
}
|
|
1225
1226
|
|
|
1226
|
-
function _array_like_to_array$
|
|
1227
|
+
function _array_like_to_array$8(arr, len) {
|
|
1227
1228
|
if (len == null || len > arr.length) len = arr.length;
|
|
1228
1229
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1229
1230
|
return arr2;
|
|
1230
1231
|
}
|
|
1231
|
-
function _array_with_holes$
|
|
1232
|
+
function _array_with_holes$7(arr) {
|
|
1232
1233
|
if (Array.isArray(arr)) return arr;
|
|
1233
1234
|
}
|
|
1234
1235
|
function _array_without_holes$2(arr) {
|
|
1235
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1236
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
1236
1237
|
}
|
|
1237
1238
|
function _define_property$9(obj, key, value) {
|
|
1238
1239
|
if (key in obj) {
|
|
@@ -1247,7 +1248,7 @@ function _define_property$9(obj, key, value) {
|
|
|
1247
1248
|
}
|
|
1248
1249
|
return obj;
|
|
1249
1250
|
}
|
|
1250
|
-
function _iterable_to_array$
|
|
1251
|
+
function _iterable_to_array$4(iter) {
|
|
1251
1252
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1252
1253
|
}
|
|
1253
1254
|
function _iterable_to_array_limit$5(arr, i) {
|
|
@@ -1274,7 +1275,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
1274
1275
|
}
|
|
1275
1276
|
return _arr;
|
|
1276
1277
|
}
|
|
1277
|
-
function _non_iterable_rest$
|
|
1278
|
+
function _non_iterable_rest$7() {
|
|
1278
1279
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1279
1280
|
}
|
|
1280
1281
|
function _non_iterable_spread$2() {
|
|
@@ -1315,18 +1316,18 @@ function _object_spread_props$6(target, source) {
|
|
|
1315
1316
|
return target;
|
|
1316
1317
|
}
|
|
1317
1318
|
function _sliced_to_array$5(arr, i) {
|
|
1318
|
-
return _array_with_holes$
|
|
1319
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
|
|
1319
1320
|
}
|
|
1320
1321
|
function _to_consumable_array$2(arr) {
|
|
1321
|
-
return _array_without_holes$2(arr) || _iterable_to_array$
|
|
1322
|
+
return _array_without_holes$2(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$2();
|
|
1322
1323
|
}
|
|
1323
|
-
function _unsupported_iterable_to_array$
|
|
1324
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
1324
1325
|
if (!o) return;
|
|
1325
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1326
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
1326
1327
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1327
1328
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1328
1329
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1329
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1330
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
1330
1331
|
}
|
|
1331
1332
|
exports.AssistantCode = void 0;
|
|
1332
1333
|
(function(AssistantCode) {
|
|
@@ -1628,6 +1629,8 @@ function isSystemManagedAssistant(code) {
|
|
|
1628
1629
|
return getAssistantManagement(code) === "system";
|
|
1629
1630
|
}
|
|
1630
1631
|
|
|
1632
|
+
var ASSISTANT_USER_PREFERENCES_VERSION = 1;
|
|
1633
|
+
|
|
1631
1634
|
function _define_property$8(obj, key, value) {
|
|
1632
1635
|
if (key in obj) {
|
|
1633
1636
|
Object.defineProperty(obj, key, {
|
|
@@ -2360,9 +2363,11 @@ exports.XpertTypeEnum = void 0;
|
|
|
2360
2363
|
* Knowledge Workflow
|
|
2361
2364
|
*/ XpertTypeEnum["Knowledge"] = "knowledge";
|
|
2362
2365
|
})(exports.XpertTypeEnum || (exports.XpertTypeEnum = {}));
|
|
2366
|
+
var DEFAULT_XPERT_WORKSPACE_DATA_SCOPE = "shared";
|
|
2363
2367
|
exports.XpertWorkbenchInitialLayoutEnum = void 0;
|
|
2364
2368
|
(function(XpertWorkbenchInitialLayoutEnum) {
|
|
2365
2369
|
XpertWorkbenchInitialLayoutEnum["TwoColumns"] = "two-columns";
|
|
2370
|
+
XpertWorkbenchInitialLayoutEnum["OverlayDialog"] = "overlay-dialog";
|
|
2366
2371
|
XpertWorkbenchInitialLayoutEnum["ChatkitMaximized"] = "chatkit-maximized";
|
|
2367
2372
|
XpertWorkbenchInitialLayoutEnum["WorkbenchMaximized"] = "workbench-maximized";
|
|
2368
2373
|
})(exports.XpertWorkbenchInitialLayoutEnum || (exports.XpertWorkbenchInitialLayoutEnum = {}));
|
|
@@ -2400,6 +2405,7 @@ exports.XpertParameterTypeEnum = void 0;
|
|
|
2400
2405
|
XpertParameterTypeEnum["ARRAY"] = "array[object]";
|
|
2401
2406
|
XpertParameterTypeEnum["ARRAY_FILE"] = "array[file]";
|
|
2402
2407
|
XpertParameterTypeEnum["ARRAY_DOCUMENT"] = "array[document]";
|
|
2408
|
+
XpertParameterTypeEnum["ARRAY_MESSAGE"] = "array[message]";
|
|
2403
2409
|
XpertParameterTypeEnum["BOOLEAN"] = "boolean";
|
|
2404
2410
|
XpertParameterTypeEnum["SECRET"] = "secret";
|
|
2405
2411
|
})(exports.XpertParameterTypeEnum || (exports.XpertParameterTypeEnum = {}));
|
|
@@ -2458,12 +2464,12 @@ var VariableOperations = [
|
|
|
2458
2464
|
}
|
|
2459
2465
|
];
|
|
2460
2466
|
|
|
2461
|
-
function _array_like_to_array$
|
|
2467
|
+
function _array_like_to_array$7(arr, len) {
|
|
2462
2468
|
if (len == null || len > arr.length) len = arr.length;
|
|
2463
2469
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2464
2470
|
return arr2;
|
|
2465
2471
|
}
|
|
2466
|
-
function _array_with_holes$
|
|
2472
|
+
function _array_with_holes$6(arr) {
|
|
2467
2473
|
if (Array.isArray(arr)) return arr;
|
|
2468
2474
|
}
|
|
2469
2475
|
function _define_property$6(obj, key, value) {
|
|
@@ -2503,7 +2509,7 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
2503
2509
|
}
|
|
2504
2510
|
return _arr;
|
|
2505
2511
|
}
|
|
2506
|
-
function _non_iterable_rest$
|
|
2512
|
+
function _non_iterable_rest$6() {
|
|
2507
2513
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2508
2514
|
}
|
|
2509
2515
|
function _object_spread$5(target) {
|
|
@@ -2541,15 +2547,15 @@ function _object_spread_props$4(target, source) {
|
|
|
2541
2547
|
return target;
|
|
2542
2548
|
}
|
|
2543
2549
|
function _sliced_to_array$4(arr, i) {
|
|
2544
|
-
return _array_with_holes$
|
|
2550
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$6();
|
|
2545
2551
|
}
|
|
2546
|
-
function _unsupported_iterable_to_array$
|
|
2552
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
2547
2553
|
if (!o) return;
|
|
2548
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2554
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
2549
2555
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2550
2556
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2551
2557
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2552
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2558
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
2553
2559
|
}
|
|
2554
2560
|
/**
|
|
2555
2561
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -2663,7 +2669,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
2663
2669
|
};
|
|
2664
2670
|
variables.push({
|
|
2665
2671
|
name: "messages",
|
|
2666
|
-
type: exports.XpertParameterTypeEnum.
|
|
2672
|
+
type: exports.XpertParameterTypeEnum.ARRAY_MESSAGE,
|
|
2667
2673
|
description: {
|
|
2668
2674
|
zh_Hans: "消息列表",
|
|
2669
2675
|
en_US: "Message List"
|
|
@@ -3221,13 +3227,20 @@ exports.ToolTagEnum = void 0;
|
|
|
3221
3227
|
ToolTagEnum["OTHER"] = "other";
|
|
3222
3228
|
})(exports.ToolTagEnum || (exports.ToolTagEnum = {}));
|
|
3223
3229
|
|
|
3224
|
-
function getXpertWorkspaceVisibility(workspace) {
|
|
3230
|
+
/** Normalizes missing or unknown persisted values to the secure `private` default. */ function getXpertWorkspaceVisibility(workspace) {
|
|
3225
3231
|
var _workspace_settings_access, _workspace_settings;
|
|
3226
|
-
|
|
3232
|
+
var visibility = 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;
|
|
3233
|
+
return visibility === "tenant-shared" || visibility === "organization-shared" ? visibility : "private";
|
|
3227
3234
|
}
|
|
3228
3235
|
function isTenantSharedXpertWorkspace(workspace) {
|
|
3229
3236
|
return getXpertWorkspaceVisibility(workspace) === "tenant-shared";
|
|
3230
3237
|
}
|
|
3238
|
+
/**
|
|
3239
|
+
* Returns whether an organization workspace is intentionally shared with all
|
|
3240
|
+
* current organization members instead of an explicit member list.
|
|
3241
|
+
*/ function isOrganizationSharedXpertWorkspace(workspace) {
|
|
3242
|
+
return getXpertWorkspaceVisibility(workspace) === "organization-shared";
|
|
3243
|
+
}
|
|
3231
3244
|
|
|
3232
3245
|
/**
|
|
3233
3246
|
* Table status
|
|
@@ -3317,6 +3330,21 @@ var PLUGIN_RESOURCE_INSTALLATION_STATUS = {
|
|
|
3317
3330
|
var PLUGIN_RESOURCE_ERROR_CODE = {
|
|
3318
3331
|
NO_MATCHING_COMPONENTS: "PLUGIN_RESOURCE_NO_MATCHING_COMPONENTS"
|
|
3319
3332
|
};
|
|
3333
|
+
/** Stable placement scopes declared by plugin application contributions. */ var PLUGIN_APPLICATION_SCOPE = {
|
|
3334
|
+
TENANT: "tenant",
|
|
3335
|
+
ORGANIZATION: "organization",
|
|
3336
|
+
PERSONAL: "personal"
|
|
3337
|
+
};
|
|
3338
|
+
/**
|
|
3339
|
+
* Lifecycle states persisted for a governed plugin application installation.
|
|
3340
|
+
* `degraded` means the installation record exists but one or more managed
|
|
3341
|
+
* resources failed the host health check.
|
|
3342
|
+
*/ var PLUGIN_APPLICATION_INSTALLATION_STATUS = {
|
|
3343
|
+
INITIALIZING: "initializing",
|
|
3344
|
+
READY: "ready",
|
|
3345
|
+
FAILED: "failed",
|
|
3346
|
+
DEGRADED: "degraded"
|
|
3347
|
+
};
|
|
3320
3348
|
var PLUGIN_MARKETPLACE_CATEGORIES = [
|
|
3321
3349
|
"featured",
|
|
3322
3350
|
"business-operations",
|
|
@@ -3503,13 +3531,13 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
3503
3531
|
}
|
|
3504
3532
|
|
|
3505
3533
|
// Helpers
|
|
3506
|
-
function _array_like_to_array$
|
|
3534
|
+
function _array_like_to_array$6(arr, len) {
|
|
3507
3535
|
if (len == null || len > arr.length) len = arr.length;
|
|
3508
3536
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3509
3537
|
return arr2;
|
|
3510
3538
|
}
|
|
3511
3539
|
function _array_without_holes$1(arr) {
|
|
3512
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3540
|
+
if (Array.isArray(arr)) return _array_like_to_array$6(arr);
|
|
3513
3541
|
}
|
|
3514
3542
|
function _define_property$4(obj, key, value) {
|
|
3515
3543
|
if (key in obj) {
|
|
@@ -3524,7 +3552,7 @@ function _define_property$4(obj, key, value) {
|
|
|
3524
3552
|
}
|
|
3525
3553
|
return obj;
|
|
3526
3554
|
}
|
|
3527
|
-
function _iterable_to_array$
|
|
3555
|
+
function _iterable_to_array$3(iter) {
|
|
3528
3556
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3529
3557
|
}
|
|
3530
3558
|
function _non_iterable_spread$1() {
|
|
@@ -3592,15 +3620,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
3592
3620
|
return target;
|
|
3593
3621
|
}
|
|
3594
3622
|
function _to_consumable_array$1(arr) {
|
|
3595
|
-
return _array_without_holes$1(arr) || _iterable_to_array$
|
|
3623
|
+
return _array_without_holes$1(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$1();
|
|
3596
3624
|
}
|
|
3597
|
-
function _unsupported_iterable_to_array$
|
|
3625
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
3598
3626
|
if (!o) return;
|
|
3599
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3627
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
3600
3628
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3601
3629
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3602
3630
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3603
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3631
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
3604
3632
|
}
|
|
3605
3633
|
function omitXpertRelations(xpert) {
|
|
3606
3634
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -3644,6 +3672,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
3644
3672
|
tenantId: xpert.tenantId,
|
|
3645
3673
|
organizationId: xpert.organizationId,
|
|
3646
3674
|
workspaceId: (_draft_team_workspaceId = (_draft_team = draft.team) === null || _draft_team === void 0 ? void 0 : _draft_team.workspaceId) !== null && _draft_team_workspaceId !== void 0 ? _draft_team_workspaceId : xpert.workspaceId,
|
|
3675
|
+
workspaceDataScope: xpert.workspaceDataScope,
|
|
3647
3676
|
draft: xpert.draft,
|
|
3648
3677
|
graph: graph,
|
|
3649
3678
|
agent: agent,
|
|
@@ -4325,6 +4354,57 @@ exports.KnowledgeGraphIndexJobStatus = void 0;
|
|
|
4325
4354
|
})(exports.KnowledgeGraphIndexJobStatus || (exports.KnowledgeGraphIndexJobStatus = {}));
|
|
4326
4355
|
|
|
4327
4356
|
// Skill types
|
|
4357
|
+
function _array_like_to_array$5(arr, len) {
|
|
4358
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4359
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4360
|
+
return arr2;
|
|
4361
|
+
}
|
|
4362
|
+
function _array_with_holes$5(arr) {
|
|
4363
|
+
if (Array.isArray(arr)) return arr;
|
|
4364
|
+
}
|
|
4365
|
+
function _iterable_to_array$2(iter) {
|
|
4366
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4367
|
+
}
|
|
4368
|
+
function _non_iterable_rest$5() {
|
|
4369
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4370
|
+
}
|
|
4371
|
+
function _to_array$1(arr) {
|
|
4372
|
+
return _array_with_holes$5(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_rest$5();
|
|
4373
|
+
}
|
|
4374
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
4375
|
+
if (!o) return;
|
|
4376
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
4377
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4378
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4379
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4380
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
4381
|
+
}
|
|
4382
|
+
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
4383
|
+
function createRuntimeSkillCapabilityId(source) {
|
|
4384
|
+
return [
|
|
4385
|
+
RUNTIME_SKILL_CAPABILITY_ID_PREFIX,
|
|
4386
|
+
source.type,
|
|
4387
|
+
encodeURIComponent(source.ownerId),
|
|
4388
|
+
encodeURIComponent(source.skillId)
|
|
4389
|
+
].join("/");
|
|
4390
|
+
}
|
|
4391
|
+
function parseRuntimeSkillCapabilityId(id) {
|
|
4392
|
+
var _id_split = _to_array$1(id.split("/")), prefix = _id_split[0], version = _id_split[1], type = _id_split[2], encodedOwnerId = _id_split[3], encodedSkillId = _id_split[4], rest = _id_split.slice(5);
|
|
4393
|
+
if (prefix !== "runtime-skill" || version !== "v1" || type !== "xpert" && type !== "project" || !encodedOwnerId || !encodedSkillId || rest.length) {
|
|
4394
|
+
return null;
|
|
4395
|
+
}
|
|
4396
|
+
try {
|
|
4397
|
+
var ownerId = decodeURIComponent(encodedOwnerId).trim();
|
|
4398
|
+
var skillId = decodeURIComponent(encodedSkillId).trim();
|
|
4399
|
+
return ownerId && skillId ? {
|
|
4400
|
+
type: type,
|
|
4401
|
+
ownerId: ownerId,
|
|
4402
|
+
skillId: skillId
|
|
4403
|
+
} : null;
|
|
4404
|
+
} catch (e) {
|
|
4405
|
+
return null;
|
|
4406
|
+
}
|
|
4407
|
+
}
|
|
4328
4408
|
var WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = "workspace-public";
|
|
4329
4409
|
var WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = "Workspace Shared Skills";
|
|
4330
4410
|
function genXpertSkillKey() {
|
|
@@ -6396,6 +6476,8 @@ exports.InterruptMessageType = void 0;
|
|
|
6396
6476
|
InterruptMessageType["Select"] = "select";
|
|
6397
6477
|
})(exports.InterruptMessageType || (exports.InterruptMessageType = {}));
|
|
6398
6478
|
|
|
6479
|
+
var XPERT_VIEW_PROJECT_ID_HEADER = "x-xpert-view-project-id";
|
|
6480
|
+
var XPERT_VIEW_CONVERSATION_ID_HEADER = "x-xpert-view-conversation-id";
|
|
6399
6481
|
var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
|
|
6400
6482
|
var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
6401
6483
|
var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
@@ -6415,6 +6497,7 @@ exports.API_PRINCIPAL_USER_ID_HEADER = API_PRINCIPAL_USER_ID_HEADER;
|
|
|
6415
6497
|
exports.ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = ASSISTANT_CHAT_SEND_MESSAGE_COMMAND;
|
|
6416
6498
|
exports.ASSISTANT_CITATION_OPEN_EVENT = ASSISTANT_CITATION_OPEN_EVENT;
|
|
6417
6499
|
exports.ASSISTANT_CONTEXT_SET_COMMAND = ASSISTANT_CONTEXT_SET_COMMAND;
|
|
6500
|
+
exports.ASSISTANT_USER_PREFERENCES_VERSION = ASSISTANT_USER_PREFERENCES_VERSION;
|
|
6418
6501
|
exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
6419
6502
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
6420
6503
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
@@ -6442,6 +6525,7 @@ exports.DEFAULT_SYSTEM_ROLES = DEFAULT_SYSTEM_ROLES;
|
|
|
6442
6525
|
exports.DEFAULT_TENANT = DEFAULT_TENANT;
|
|
6443
6526
|
exports.DEFAULT_TIME_FORMATS = DEFAULT_TIME_FORMATS;
|
|
6444
6527
|
exports.DEFAULT_XPERT_AGENT_RECURSION_LIMIT = DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
6528
|
+
exports.DEFAULT_XPERT_WORKSPACE_DATA_SCOPE = DEFAULT_XPERT_WORKSPACE_DATA_SCOPE;
|
|
6445
6529
|
exports.ENTERPRISE_H5_PLATFORMS = ENTERPRISE_H5_PLATFORMS;
|
|
6446
6530
|
exports.FILE_VARIABLES = FILE_VARIABLES;
|
|
6447
6531
|
exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
@@ -6510,6 +6594,8 @@ exports.MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING = MODEL_GATEWAY_MAX_CONCUR
|
|
|
6510
6594
|
exports.MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING = MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING;
|
|
6511
6595
|
exports.OllamaEmbeddingsProviders = OllamaEmbeddingsProviders;
|
|
6512
6596
|
exports.OpenAIEmbeddingsProviders = OpenAIEmbeddingsProviders;
|
|
6597
|
+
exports.PLUGIN_APPLICATION_INSTALLATION_STATUS = PLUGIN_APPLICATION_INSTALLATION_STATUS;
|
|
6598
|
+
exports.PLUGIN_APPLICATION_SCOPE = PLUGIN_APPLICATION_SCOPE;
|
|
6513
6599
|
exports.PLUGIN_COMPONENT_TYPE = PLUGIN_COMPONENT_TYPE;
|
|
6514
6600
|
exports.PLUGIN_CONFIGURATION_STATUS = PLUGIN_CONFIGURATION_STATUS;
|
|
6515
6601
|
exports.PLUGIN_LEVEL = PLUGIN_LEVEL;
|
|
@@ -6562,6 +6648,8 @@ exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_P
|
|
|
6562
6648
|
exports.XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
|
|
6563
6649
|
exports.XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY = XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY;
|
|
6564
6650
|
exports.XPERT_TASK_SCHEDULE_PROPERTY_PREFIX = XPERT_TASK_SCHEDULE_PROPERTY_PREFIX;
|
|
6651
|
+
exports.XPERT_VIEW_CONVERSATION_ID_HEADER = XPERT_VIEW_CONVERSATION_ID_HEADER;
|
|
6652
|
+
exports.XPERT_VIEW_PROJECT_ID_HEADER = XPERT_VIEW_PROJECT_ID_HEADER;
|
|
6565
6653
|
exports.XpertMarketplaceBusinessCategories = XpertMarketplaceBusinessCategories;
|
|
6566
6654
|
exports.XpertMarketplaceCollaborationModes = XpertMarketplaceCollaborationModes;
|
|
6567
6655
|
exports.XpertMarketplaceTechnicalCategories = XpertMarketplaceTechnicalCategories;
|
|
@@ -6581,6 +6669,7 @@ exports.createAgentConnections = createAgentConnections;
|
|
|
6581
6669
|
exports.createConversationTitleSummaryEvent = createConversationTitleSummaryEvent;
|
|
6582
6670
|
exports.createFollowUpConsumedEvent = createFollowUpConsumedEvent;
|
|
6583
6671
|
exports.createMessageAppendContextTracker = createMessageAppendContextTracker;
|
|
6672
|
+
exports.createRuntimeSkillCapabilityId = createRuntimeSkillCapabilityId;
|
|
6584
6673
|
exports.createThreadGoalClearedEvent = createThreadGoalClearedEvent;
|
|
6585
6674
|
exports.createThreadGoalUpdatedEvent = createThreadGoalUpdatedEvent;
|
|
6586
6675
|
exports.createXpertGraph = createXpertGraph;
|
|
@@ -6649,6 +6738,7 @@ exports.isIteratorKey = isIteratorKey;
|
|
|
6649
6738
|
exports.isMessageGroup = isMessageGroup;
|
|
6650
6739
|
exports.isMiddlewareToolEnabled = isMiddlewareToolEnabled;
|
|
6651
6740
|
exports.isNil = isNil$1;
|
|
6741
|
+
exports.isOrganizationSharedXpertWorkspace = isOrganizationSharedXpertWorkspace;
|
|
6652
6742
|
exports.isOutputTokenParameter = isOutputTokenParameter;
|
|
6653
6743
|
exports.isRequiredMiddleware = isRequiredMiddleware;
|
|
6654
6744
|
exports.isRouterKey = isRouterKey;
|
|
@@ -6677,6 +6767,7 @@ exports.normalizeModelParameterValue = normalizeModelParameterValue;
|
|
|
6677
6767
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
6678
6768
|
exports.omitXpertRelations = omitXpertRelations;
|
|
6679
6769
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
6770
|
+
exports.parseRuntimeSkillCapabilityId = parseRuntimeSkillCapabilityId;
|
|
6680
6771
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
6681
6772
|
exports.resolveDraftPrimaryAgent = resolveDraftPrimaryAgent;
|
|
6682
6773
|
exports.resolveDraftRuntimeGraph = resolveDraftRuntimeGraph;
|