@xpert-ai/contracts 3.21.1 → 3.21.3
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 +872 -170
- package/index.esm.js +985 -310
- package/package.json +1 -1
- package/src/agent-plugin.d.ts +17 -4
- package/src/ai/assistant-capability.model.d.ts +24 -0
- package/src/ai/assistant-template-dependencies.model.d.ts +51 -0
- package/src/ai/assistant-template-manifest.model.d.ts +1826 -0
- package/src/ai/assistant-template-overview.model.d.ts +44 -0
- package/src/ai/assistant-template-setup.model.d.ts +193 -0
- package/src/ai/assistant-template.model.d.ts +16 -0
- package/src/ai/assistant-user-preference.model.d.ts +4 -0
- package/src/ai/copilot-provider.model.d.ts +9 -2
- package/src/ai/execution-activity.model.d.ts +10 -10
- package/src/ai/index.d.ts +10 -0
- package/src/ai/model-discovery.model.d.ts +363 -0
- package/src/ai/project-task-runtime.model.d.ts +31 -31
- package/src/ai/template-activity.model.d.ts +24 -0
- package/src/ai/template-installation.model.d.ts +131 -0
- package/src/ai/template-lifecycle.model.d.ts +89 -0
- package/src/ai/template-manifest.model.d.ts +3 -0
- package/src/ai/xpert-project.model.d.ts +1 -0
- package/src/ai/xpert-template.model.d.ts +12 -8
- package/src/ai/xpert.model.d.ts +8 -0
- package/src/api-key.model.d.ts +12 -5
- package/src/index.d.ts +2 -0
- package/src/personal-api-key.model.d.ts +21 -0
- package/src/plugin-application.d.ts +8 -0
- package/src/plugin-management.d.ts +3 -0
- package/src/plugin.d.ts +11 -38
- package/src/role-permission-modules.d.ts +3 -0
- package/src/runtime-control.d.ts +4 -2
package/index.esm.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ShortUniqueId from 'short-unique-id';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import { parseResourceCardContent, upsertResourceCardContent, parseFileActivityContent, upsertFileActivityContent, isFileActivityContent, isResourceCardContent } from '@xpert-ai/chatkit-types';
|
|
3
4
|
export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from '@xpert-ai/chatkit-types';
|
|
4
|
-
import { z } from 'zod/v3';
|
|
5
|
+
import { z as z$1 } from 'zod/v3';
|
|
5
6
|
|
|
6
7
|
function resolveI18nText(value) {
|
|
7
8
|
var language = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
|
|
@@ -88,30 +89,30 @@ function resolveI18nText(value) {
|
|
|
88
89
|
return null;
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
function _array_like_to_array$
|
|
92
|
+
function _array_like_to_array$g(arr, len) {
|
|
92
93
|
if (len == null || len > arr.length) len = arr.length;
|
|
93
94
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
94
95
|
return arr2;
|
|
95
96
|
}
|
|
96
|
-
function _array_without_holes$
|
|
97
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
97
|
+
function _array_without_holes$8(arr) {
|
|
98
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
98
99
|
}
|
|
99
|
-
function _iterable_to_array$
|
|
100
|
+
function _iterable_to_array$a(iter) {
|
|
100
101
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
101
102
|
}
|
|
102
|
-
function _non_iterable_spread$
|
|
103
|
+
function _non_iterable_spread$8() {
|
|
103
104
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
104
105
|
}
|
|
105
|
-
function _to_consumable_array$
|
|
106
|
-
return _array_without_holes$
|
|
106
|
+
function _to_consumable_array$8(arr) {
|
|
107
|
+
return _array_without_holes$8(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$8();
|
|
107
108
|
}
|
|
108
|
-
function _unsupported_iterable_to_array$
|
|
109
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
109
110
|
if (!o) return;
|
|
110
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
111
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
111
112
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
112
113
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
113
114
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
114
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
115
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
115
116
|
}
|
|
116
117
|
var _uuidGenerator;
|
|
117
118
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -121,7 +122,7 @@ var uuid = function() {
|
|
|
121
122
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
122
123
|
args[_key] = arguments[_key];
|
|
123
124
|
}
|
|
124
|
-
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$
|
|
125
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$8(args));
|
|
125
126
|
};
|
|
126
127
|
// Parameters
|
|
127
128
|
var ParameterTypeEnum;
|
|
@@ -152,30 +153,30 @@ function letterStartSUID(start) {
|
|
|
152
153
|
"FileOutput"
|
|
153
154
|
];
|
|
154
155
|
|
|
155
|
-
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$
|
|
156
|
+
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$f(arr, len) {
|
|
156
157
|
if (len == null || len > arr.length) len = arr.length;
|
|
157
158
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
158
159
|
return arr2;
|
|
159
160
|
}
|
|
160
|
-
function _array_without_holes$
|
|
161
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
161
|
+
function _array_without_holes$7(arr) {
|
|
162
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
162
163
|
}
|
|
163
|
-
function _iterable_to_array$
|
|
164
|
+
function _iterable_to_array$9(iter) {
|
|
164
165
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
165
166
|
}
|
|
166
|
-
function _non_iterable_spread$
|
|
167
|
+
function _non_iterable_spread$7() {
|
|
167
168
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
168
169
|
}
|
|
169
|
-
function _to_consumable_array$
|
|
170
|
-
return _array_without_holes$
|
|
170
|
+
function _to_consumable_array$7(arr) {
|
|
171
|
+
return _array_without_holes$7(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$7();
|
|
171
172
|
}
|
|
172
|
-
function _unsupported_iterable_to_array$
|
|
173
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
173
174
|
if (!o) return;
|
|
174
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
175
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
175
176
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
176
177
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
177
178
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
178
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
179
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
179
180
|
}
|
|
180
181
|
function schedulePredecessors(task, byId) {
|
|
181
182
|
var ids = new Set(task.predecessorIds);
|
|
@@ -190,7 +191,7 @@ function schedulePredecessors(task, byId) {
|
|
|
190
191
|
});
|
|
191
192
|
parentId = parent.parentTaskId;
|
|
192
193
|
}
|
|
193
|
-
return _to_consumable_array$
|
|
194
|
+
return _to_consumable_array$7(ids);
|
|
194
195
|
}
|
|
195
196
|
/** Tree containment and finish-to-start dependencies are separate acyclic graphs. */ function validateProjectTaskGraph(tasks) {
|
|
196
197
|
var _loop = function(_i1, _iter1) {
|
|
@@ -204,7 +205,7 @@ function schedulePredecessors(task, byId) {
|
|
|
204
205
|
active.add(id);
|
|
205
206
|
var references = relation === "tree" ? task.parentTaskId ? [
|
|
206
207
|
task.parentTaskId
|
|
207
|
-
] : [] : _to_consumable_array$
|
|
208
|
+
] : [] : _to_consumable_array$7(relation === "schedule" ? schedulePredecessors(task, byId) : task.predecessorIds).concat(_to_consumable_array$7(relation === "schedule" && task.kind === "summary" ? tasks.filter(function(child) {
|
|
208
209
|
return child.parentTaskId === task.id;
|
|
209
210
|
}).map(function(child) {
|
|
210
211
|
return child.id;
|
|
@@ -316,10 +317,10 @@ function schedulePredecessors(task, byId) {
|
|
|
316
317
|
Date.parse(child.startAt)
|
|
317
318
|
] : [];
|
|
318
319
|
});
|
|
319
|
-
startAt = starts.length ? new Date((_Math = Math).min.apply(_Math, _to_consumable_array$
|
|
320
|
+
startAt = starts.length ? new Date((_Math = Math).min.apply(_Math, _to_consumable_array$7(starts))).toISOString() : null;
|
|
320
321
|
endAt = children.length && children.every(function(child) {
|
|
321
322
|
return child.endAt;
|
|
322
|
-
}) ? new Date((_Math1 = Math).max.apply(_Math1, _to_consumable_array$
|
|
323
|
+
}) ? new Date((_Math1 = Math).max.apply(_Math1, _to_consumable_array$7(children.map(function(child) {
|
|
323
324
|
return Date.parse(child.endAt);
|
|
324
325
|
})))).toISOString() : null;
|
|
325
326
|
if (children.some(function(child) {
|
|
@@ -339,9 +340,9 @@ function schedulePredecessors(task, byId) {
|
|
|
339
340
|
});
|
|
340
341
|
var earliest = task.actualStartAt ? Date.parse(task.actualStartAt) : predecessorEnds.some(function(value) {
|
|
341
342
|
return value === null;
|
|
342
|
-
}) ? null : start !== null || predecessorEnds.length ? (_Math2 = Math).max.apply(_Math2, _to_consumable_array$
|
|
343
|
+
}) ? null : start !== null || predecessorEnds.length ? (_Math2 = Math).max.apply(_Math2, _to_consumable_array$7(start !== null ? [
|
|
343
344
|
Date.parse(start)
|
|
344
|
-
] : []).concat(_to_consumable_array$
|
|
345
|
+
] : []).concat(_to_consumable_array$7(predecessorEnds.map(function(value) {
|
|
345
346
|
return value;
|
|
346
347
|
})))) : null;
|
|
347
348
|
startAt = earliest === null ? null : new Date(earliest).toISOString();
|
|
@@ -372,7 +373,7 @@ function schedulePredecessors(task, byId) {
|
|
|
372
373
|
return result.get(task.id).endAt !== null;
|
|
373
374
|
})) {
|
|
374
375
|
var _Math;
|
|
375
|
-
var finish = (_Math = Math).max.apply(_Math, _to_consumable_array$
|
|
376
|
+
var finish = (_Math = Math).max.apply(_Math, _to_consumable_array$7(leaves.map(function(task) {
|
|
376
377
|
return Date.parse(result.get(task.id).endAt);
|
|
377
378
|
})));
|
|
378
379
|
var mark = function(id) {
|
|
@@ -1312,7 +1313,7 @@ var OrganizationDemoNetworkEnum;
|
|
|
1312
1313
|
OrganizationDemoNetworkEnum["aliyun"] = "aliyun";
|
|
1313
1314
|
})(OrganizationDemoNetworkEnum || (OrganizationDemoNetworkEnum = {}));
|
|
1314
1315
|
|
|
1315
|
-
function _define_property$
|
|
1316
|
+
function _define_property$f(obj, key, value) {
|
|
1316
1317
|
if (key in obj) {
|
|
1317
1318
|
Object.defineProperty(obj, key, {
|
|
1318
1319
|
value: value,
|
|
@@ -1325,7 +1326,7 @@ function _define_property$e(obj, key, value) {
|
|
|
1325
1326
|
}
|
|
1326
1327
|
return obj;
|
|
1327
1328
|
}
|
|
1328
|
-
function _object_spread$
|
|
1329
|
+
function _object_spread$e(target) {
|
|
1329
1330
|
for(var i = 1; i < arguments.length; i++){
|
|
1330
1331
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1331
1332
|
var ownKeys = Object.keys(source);
|
|
@@ -1335,12 +1336,12 @@ function _object_spread$d(target) {
|
|
|
1335
1336
|
}));
|
|
1336
1337
|
}
|
|
1337
1338
|
ownKeys.forEach(function(key) {
|
|
1338
|
-
_define_property$
|
|
1339
|
+
_define_property$f(target, key, source[key]);
|
|
1339
1340
|
});
|
|
1340
1341
|
}
|
|
1341
1342
|
return target;
|
|
1342
1343
|
}
|
|
1343
|
-
function ownKeys$
|
|
1344
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
1344
1345
|
var keys = Object.keys(object);
|
|
1345
1346
|
if (Object.getOwnPropertySymbols) {
|
|
1346
1347
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1348,12 +1349,12 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
1348
1349
|
}
|
|
1349
1350
|
return keys;
|
|
1350
1351
|
}
|
|
1351
|
-
function _object_spread_props$
|
|
1352
|
+
function _object_spread_props$9(target, source) {
|
|
1352
1353
|
source = source != null ? source : {};
|
|
1353
1354
|
if (Object.getOwnPropertyDescriptors) {
|
|
1354
1355
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1355
1356
|
} else {
|
|
1356
|
-
ownKeys$
|
|
1357
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
1357
1358
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1358
1359
|
});
|
|
1359
1360
|
}
|
|
@@ -1381,7 +1382,7 @@ function parseSelectionSet(value) {
|
|
|
1381
1382
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1382
1383
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1383
1384
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1384
|
-
return _object_spread$
|
|
1385
|
+
return _object_spread$e(_object_spread_props$9(_object_spread$e({}, value), {
|
|
1385
1386
|
skills: skills === undefined ? {
|
|
1386
1387
|
ids: []
|
|
1387
1388
|
} : skills,
|
|
@@ -1400,7 +1401,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1400
1401
|
var selection = parseSelectionSet(value);
|
|
1401
1402
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1402
1403
|
if (!selection || recommended === null) return null;
|
|
1403
|
-
return _object_spread$
|
|
1404
|
+
return _object_spread$e(_object_spread_props$9(_object_spread$e({}, selection), {
|
|
1404
1405
|
mode: "allowlist"
|
|
1405
1406
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1406
1407
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1452,7 +1453,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1452
1453
|
}
|
|
1453
1454
|
}
|
|
1454
1455
|
}
|
|
1455
|
-
return _object_spread_props$
|
|
1456
|
+
return _object_spread_props$9(_object_spread$e({}, value), {
|
|
1456
1457
|
type: "expert_scoped_capabilities",
|
|
1457
1458
|
version: 1,
|
|
1458
1459
|
defaults: defaults,
|
|
@@ -1584,7 +1585,7 @@ var ChatMessageStepCategory;
|
|
|
1584
1585
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1585
1586
|
})(ChatMessageStepCategory || (ChatMessageStepCategory = {}));
|
|
1586
1587
|
|
|
1587
|
-
function _define_property$
|
|
1588
|
+
function _define_property$e(obj, key, value) {
|
|
1588
1589
|
if (key in obj) {
|
|
1589
1590
|
Object.defineProperty(obj, key, {
|
|
1590
1591
|
value: value,
|
|
@@ -1604,7 +1605,7 @@ function _instanceof$1(left, right) {
|
|
|
1604
1605
|
return left instanceof right;
|
|
1605
1606
|
}
|
|
1606
1607
|
}
|
|
1607
|
-
function _object_spread$
|
|
1608
|
+
function _object_spread$d(target) {
|
|
1608
1609
|
for(var i = 1; i < arguments.length; i++){
|
|
1609
1610
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1610
1611
|
var ownKeys = Object.keys(source);
|
|
@@ -1614,7 +1615,7 @@ function _object_spread$c(target) {
|
|
|
1614
1615
|
}));
|
|
1615
1616
|
}
|
|
1616
1617
|
ownKeys.forEach(function(key) {
|
|
1617
|
-
_define_property$
|
|
1618
|
+
_define_property$e(target, key, source[key]);
|
|
1618
1619
|
});
|
|
1619
1620
|
}
|
|
1620
1621
|
return target;
|
|
@@ -1625,12 +1626,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
1625
1626
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
1626
1627
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
1627
1628
|
function createConversationTitleSummaryEvent(event) {
|
|
1628
|
-
return _object_spread$
|
|
1629
|
+
return _object_spread$d({
|
|
1629
1630
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1630
1631
|
}, event);
|
|
1631
1632
|
}
|
|
1632
1633
|
function createFollowUpConsumedEvent(event) {
|
|
1633
|
-
return _object_spread$
|
|
1634
|
+
return _object_spread$d({
|
|
1634
1635
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1635
1636
|
}, event);
|
|
1636
1637
|
}
|
|
@@ -1665,18 +1666,18 @@ function toIsoString(value) {
|
|
|
1665
1666
|
return new Date().toISOString();
|
|
1666
1667
|
}
|
|
1667
1668
|
|
|
1668
|
-
function _array_like_to_array$
|
|
1669
|
+
function _array_like_to_array$e(arr, len) {
|
|
1669
1670
|
if (len == null || len > arr.length) len = arr.length;
|
|
1670
1671
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1671
1672
|
return arr2;
|
|
1672
1673
|
}
|
|
1673
|
-
function _array_with_holes$
|
|
1674
|
+
function _array_with_holes$9(arr) {
|
|
1674
1675
|
if (Array.isArray(arr)) return arr;
|
|
1675
1676
|
}
|
|
1676
|
-
function _array_without_holes$
|
|
1677
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1677
|
+
function _array_without_holes$6(arr) {
|
|
1678
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
1678
1679
|
}
|
|
1679
|
-
function _define_property$
|
|
1680
|
+
function _define_property$d(obj, key, value) {
|
|
1680
1681
|
if (key in obj) {
|
|
1681
1682
|
Object.defineProperty(obj, key, {
|
|
1682
1683
|
value: value,
|
|
@@ -1689,10 +1690,10 @@ function _define_property$c(obj, key, value) {
|
|
|
1689
1690
|
}
|
|
1690
1691
|
return obj;
|
|
1691
1692
|
}
|
|
1692
|
-
function _iterable_to_array$
|
|
1693
|
+
function _iterable_to_array$8(iter) {
|
|
1693
1694
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1694
1695
|
}
|
|
1695
|
-
function _iterable_to_array_limit$
|
|
1696
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
1696
1697
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1697
1698
|
if (_i == null) return;
|
|
1698
1699
|
var _arr = [];
|
|
@@ -1716,13 +1717,13 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
1716
1717
|
}
|
|
1717
1718
|
return _arr;
|
|
1718
1719
|
}
|
|
1719
|
-
function _non_iterable_rest$
|
|
1720
|
+
function _non_iterable_rest$9() {
|
|
1720
1721
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1721
1722
|
}
|
|
1722
|
-
function _non_iterable_spread$
|
|
1723
|
+
function _non_iterable_spread$6() {
|
|
1723
1724
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1724
1725
|
}
|
|
1725
|
-
function _object_spread$
|
|
1726
|
+
function _object_spread$c(target) {
|
|
1726
1727
|
for(var i = 1; i < arguments.length; i++){
|
|
1727
1728
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1728
1729
|
var ownKeys = Object.keys(source);
|
|
@@ -1732,12 +1733,12 @@ function _object_spread$b(target) {
|
|
|
1732
1733
|
}));
|
|
1733
1734
|
}
|
|
1734
1735
|
ownKeys.forEach(function(key) {
|
|
1735
|
-
_define_property$
|
|
1736
|
+
_define_property$d(target, key, source[key]);
|
|
1736
1737
|
});
|
|
1737
1738
|
}
|
|
1738
1739
|
return target;
|
|
1739
1740
|
}
|
|
1740
|
-
function ownKeys$
|
|
1741
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
1741
1742
|
var keys = Object.keys(object);
|
|
1742
1743
|
if (Object.getOwnPropertySymbols) {
|
|
1743
1744
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1745,30 +1746,30 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
1745
1746
|
}
|
|
1746
1747
|
return keys;
|
|
1747
1748
|
}
|
|
1748
|
-
function _object_spread_props$
|
|
1749
|
+
function _object_spread_props$8(target, source) {
|
|
1749
1750
|
source = source != null ? source : {};
|
|
1750
1751
|
if (Object.getOwnPropertyDescriptors) {
|
|
1751
1752
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1752
1753
|
} else {
|
|
1753
|
-
ownKeys$
|
|
1754
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
1754
1755
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1755
1756
|
});
|
|
1756
1757
|
}
|
|
1757
1758
|
return target;
|
|
1758
1759
|
}
|
|
1759
|
-
function _sliced_to_array$
|
|
1760
|
-
return _array_with_holes$
|
|
1760
|
+
function _sliced_to_array$7(arr, i) {
|
|
1761
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$9();
|
|
1761
1762
|
}
|
|
1762
|
-
function _to_consumable_array$
|
|
1763
|
-
return _array_without_holes$
|
|
1763
|
+
function _to_consumable_array$6(arr) {
|
|
1764
|
+
return _array_without_holes$6(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$6();
|
|
1764
1765
|
}
|
|
1765
|
-
function _unsupported_iterable_to_array$
|
|
1766
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
1766
1767
|
if (!o) return;
|
|
1767
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1768
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
1768
1769
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1769
1770
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1770
1771
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1771
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1772
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
1772
1773
|
}
|
|
1773
1774
|
var AssistantCode;
|
|
1774
1775
|
(function(AssistantCode) {
|
|
@@ -1825,7 +1826,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1825
1826
|
}
|
|
1826
1827
|
var _value_toolsets;
|
|
1827
1828
|
var toolsets = Object.entries((_value_toolsets = value.toolsets) !== null && _value_toolsets !== void 0 ? _value_toolsets : {}).reduce(function(acc, param) {
|
|
1828
|
-
var _param = _sliced_to_array$
|
|
1829
|
+
var _param = _sliced_to_array$7(param, 2), key = _param[0], item = _param[1];
|
|
1829
1830
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1830
1831
|
var toolsetName = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetName);
|
|
1831
1832
|
if (!nodeKey || !toolsetName) {
|
|
@@ -1840,7 +1841,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1840
1841
|
}, {});
|
|
1841
1842
|
var _value_middlewares;
|
|
1842
1843
|
var middlewares = Object.entries((_value_middlewares = value.middlewares) !== null && _value_middlewares !== void 0 ? _value_middlewares : {}).reduce(function(acc, param) {
|
|
1843
|
-
var _param = _sliced_to_array$
|
|
1844
|
+
var _param = _sliced_to_array$7(param, 2), key = _param[0], item = _param[1];
|
|
1844
1845
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1845
1846
|
var provider = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.provider);
|
|
1846
1847
|
if (!nodeKey || !provider) {
|
|
@@ -1854,7 +1855,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1854
1855
|
}, {});
|
|
1855
1856
|
var _value_skills;
|
|
1856
1857
|
var skills = Object.entries((_value_skills = value.skills) !== null && _value_skills !== void 0 ? _value_skills : {}).reduce(function(acc, param) {
|
|
1857
|
-
var _param = _sliced_to_array$
|
|
1858
|
+
var _param = _sliced_to_array$7(param, 2), key = _param[0], item = _param[1];
|
|
1858
1859
|
var workspaceKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1859
1860
|
var workspaceId = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.workspaceId) || workspaceKey;
|
|
1860
1861
|
if (!workspaceKey || !workspaceId) {
|
|
@@ -1869,7 +1870,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1869
1870
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1870
1871
|
return null;
|
|
1871
1872
|
}
|
|
1872
|
-
return _object_spread$
|
|
1873
|
+
return _object_spread$c({
|
|
1873
1874
|
version: 1
|
|
1874
1875
|
}, Object.keys(toolsets).length ? {
|
|
1875
1876
|
toolsets: toolsets
|
|
@@ -1944,11 +1945,11 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1944
1945
|
var disabledTools = getAssistantBindingDisabledTools(normalizedPreferences, sourceType, normalizedNodeKey);
|
|
1945
1946
|
var nextDisabledTools = enabled ? disabledTools.filter(function(item) {
|
|
1946
1947
|
return item !== normalizedToolName;
|
|
1947
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
1948
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$6(disabledTools).concat([
|
|
1948
1949
|
normalizedToolName
|
|
1949
1950
|
]));
|
|
1950
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
1951
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
1951
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$c({}, normalizedPreferences.toolsets) : undefined;
|
|
1952
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$c({}, normalizedPreferences.middlewares) : undefined;
|
|
1952
1953
|
if (sourceType === "toolset") {
|
|
1953
1954
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1954
1955
|
if (!toolsetName) {
|
|
@@ -1964,14 +1965,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1964
1965
|
} else {
|
|
1965
1966
|
delete nextToolsets[normalizedNodeKey];
|
|
1966
1967
|
}
|
|
1967
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1968
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$c({
|
|
1968
1969
|
version: 1
|
|
1969
1970
|
}, Object.keys(nextToolsets).length ? {
|
|
1970
1971
|
toolsets: nextToolsets
|
|
1971
1972
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1972
1973
|
middlewares: middlewares
|
|
1973
1974
|
} : {}, normalizedPreferences.skills ? {
|
|
1974
|
-
skills: _object_spread$
|
|
1975
|
+
skills: _object_spread$c({}, normalizedPreferences.skills)
|
|
1975
1976
|
} : {}));
|
|
1976
1977
|
}
|
|
1977
1978
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -1987,14 +1988,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1987
1988
|
} else {
|
|
1988
1989
|
delete nextMiddlewares[normalizedNodeKey];
|
|
1989
1990
|
}
|
|
1990
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1991
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$c({
|
|
1991
1992
|
version: 1
|
|
1992
1993
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
1993
1994
|
toolsets: toolsets
|
|
1994
1995
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1995
1996
|
middlewares: nextMiddlewares
|
|
1996
1997
|
} : {}, normalizedPreferences.skills ? {
|
|
1997
|
-
skills: _object_spread$
|
|
1998
|
+
skills: _object_spread$c({}, normalizedPreferences.skills)
|
|
1998
1999
|
} : {}));
|
|
1999
2000
|
}
|
|
2000
2001
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2009,10 +2010,10 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2009
2010
|
var disabledSkillIds = getAssistantBindingDisabledSkillIds(normalizedPreferences, normalizedWorkspaceId);
|
|
2010
2011
|
var nextDisabledSkillIds = enabled ? disabledSkillIds.filter(function(item) {
|
|
2011
2012
|
return item !== normalizedSkillId;
|
|
2012
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
2013
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$6(disabledSkillIds).concat([
|
|
2013
2014
|
normalizedSkillId
|
|
2014
2015
|
]));
|
|
2015
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2016
|
+
var skills = normalizedPreferences.skills ? _object_spread$c({}, normalizedPreferences.skills) : {};
|
|
2016
2017
|
if (nextDisabledSkillIds.length) {
|
|
2017
2018
|
skills[normalizedWorkspaceId] = {
|
|
2018
2019
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2021,12 +2022,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2021
2022
|
} else {
|
|
2022
2023
|
delete skills[normalizedWorkspaceId];
|
|
2023
2024
|
}
|
|
2024
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2025
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$c({
|
|
2025
2026
|
version: 1
|
|
2026
2027
|
}, normalizedPreferences.toolsets ? {
|
|
2027
|
-
toolsets: _object_spread$
|
|
2028
|
+
toolsets: _object_spread$c({}, normalizedPreferences.toolsets)
|
|
2028
2029
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2029
|
-
middlewares: _object_spread$
|
|
2030
|
+
middlewares: _object_spread$c({}, normalizedPreferences.middlewares)
|
|
2030
2031
|
} : {}, Object.keys(skills).length ? {
|
|
2031
2032
|
skills: skills
|
|
2032
2033
|
} : {}));
|
|
@@ -2044,14 +2045,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2044
2045
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2045
2046
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2046
2047
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2047
|
-
return _object_spread_props$
|
|
2048
|
+
return _object_spread_props$8(_object_spread$c({
|
|
2048
2049
|
version: 1
|
|
2049
2050
|
}, normalizedPreferences.toolsets ? {
|
|
2050
|
-
toolsets: _object_spread$
|
|
2051
|
+
toolsets: _object_spread$c({}, normalizedPreferences.toolsets)
|
|
2051
2052
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2052
|
-
middlewares: _object_spread$
|
|
2053
|
+
middlewares: _object_spread$c({}, normalizedPreferences.middlewares)
|
|
2053
2054
|
} : {}), {
|
|
2054
|
-
skills: _object_spread_props$
|
|
2055
|
+
skills: _object_spread_props$8(_object_spread$c({}, currentSkills), _define_property$d({}, normalizedWorkspaceId, {
|
|
2055
2056
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2056
2057
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2057
2058
|
}))
|
|
@@ -2071,13 +2072,13 @@ function isSystemManagedAssistant(code) {
|
|
|
2071
2072
|
}
|
|
2072
2073
|
|
|
2073
2074
|
// Shared by Cloud and Desktop: activity changes must not move assistant entries.
|
|
2074
|
-
function _array_like_to_array$
|
|
2075
|
+
function _array_like_to_array$d(arr, len) {
|
|
2075
2076
|
if (len == null || len > arr.length) len = arr.length;
|
|
2076
2077
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2077
2078
|
return arr2;
|
|
2078
2079
|
}
|
|
2079
|
-
function _array_without_holes$
|
|
2080
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2080
|
+
function _array_without_holes$5(arr) {
|
|
2081
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
2081
2082
|
}
|
|
2082
2083
|
function _instanceof(left, right) {
|
|
2083
2084
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -2086,22 +2087,22 @@ function _instanceof(left, right) {
|
|
|
2086
2087
|
return left instanceof right;
|
|
2087
2088
|
}
|
|
2088
2089
|
}
|
|
2089
|
-
function _iterable_to_array$
|
|
2090
|
+
function _iterable_to_array$7(iter) {
|
|
2090
2091
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2091
2092
|
}
|
|
2092
|
-
function _non_iterable_spread$
|
|
2093
|
+
function _non_iterable_spread$5() {
|
|
2093
2094
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2094
2095
|
}
|
|
2095
|
-
function _to_consumable_array$
|
|
2096
|
-
return _array_without_holes$
|
|
2096
|
+
function _to_consumable_array$5(arr) {
|
|
2097
|
+
return _array_without_holes$5(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$5();
|
|
2097
2098
|
}
|
|
2098
|
-
function _unsupported_iterable_to_array$
|
|
2099
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
2099
2100
|
if (!o) return;
|
|
2100
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2101
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
2101
2102
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2102
2103
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2103
2104
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2104
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2105
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
2105
2106
|
}
|
|
2106
2107
|
function orderAssistantXperts(items) {
|
|
2107
2108
|
var orderedIds = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
@@ -2130,7 +2131,7 @@ function orderAssistantXperts(items) {
|
|
|
2130
2131
|
var item = param.item;
|
|
2131
2132
|
return item;
|
|
2132
2133
|
});
|
|
2133
|
-
return _to_consumable_array$
|
|
2134
|
+
return _to_consumable_array$5(unorderedItems).concat(_to_consumable_array$5(orderedIds.map(function(id) {
|
|
2134
2135
|
return itemById.get(id);
|
|
2135
2136
|
}).filter(function(item) {
|
|
2136
2137
|
return !!item;
|
|
@@ -2144,7 +2145,7 @@ function createdAtTimestamp(item) {
|
|
|
2144
2145
|
|
|
2145
2146
|
var ASSISTANT_USER_PREFERENCES_VERSION = 1;
|
|
2146
2147
|
|
|
2147
|
-
function _define_property$
|
|
2148
|
+
function _define_property$c(obj, key, value) {
|
|
2148
2149
|
if (key in obj) {
|
|
2149
2150
|
Object.defineProperty(obj, key, {
|
|
2150
2151
|
value: value,
|
|
@@ -2157,7 +2158,7 @@ function _define_property$b(obj, key, value) {
|
|
|
2157
2158
|
}
|
|
2158
2159
|
return obj;
|
|
2159
2160
|
}
|
|
2160
|
-
function _object_spread$
|
|
2161
|
+
function _object_spread$b(target) {
|
|
2161
2162
|
for(var i = 1; i < arguments.length; i++){
|
|
2162
2163
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2163
2164
|
var ownKeys = Object.keys(source);
|
|
@@ -2167,7 +2168,7 @@ function _object_spread$a(target) {
|
|
|
2167
2168
|
}));
|
|
2168
2169
|
}
|
|
2169
2170
|
ownKeys.forEach(function(key) {
|
|
2170
|
-
_define_property$
|
|
2171
|
+
_define_property$c(target, key, source[key]);
|
|
2171
2172
|
});
|
|
2172
2173
|
}
|
|
2173
2174
|
return target;
|
|
@@ -2299,7 +2300,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
|
|
|
2299
2300
|
var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2300
2301
|
var _config_preserveUnknown;
|
|
2301
2302
|
var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
|
|
2302
|
-
var resolvedOptions = preserveUnknown ? _object_spread$
|
|
2303
|
+
var resolvedOptions = preserveUnknown ? _object_spread$b({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
|
|
2303
2304
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2304
2305
|
try {
|
|
2305
2306
|
for(var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -2341,6 +2342,237 @@ var PriceType;
|
|
|
2341
2342
|
PriceType["OUTPUT"] = "output";
|
|
2342
2343
|
})(PriceType || (PriceType = {}));
|
|
2343
2344
|
|
|
2345
|
+
var AiModelTypeEnum;
|
|
2346
|
+
(function(AiModelTypeEnum) {
|
|
2347
|
+
AiModelTypeEnum["REALTIME"] = "realtime";
|
|
2348
|
+
AiModelTypeEnum["LLM"] = "llm";
|
|
2349
|
+
AiModelTypeEnum["TEXT_EMBEDDING"] = "text-embedding";
|
|
2350
|
+
AiModelTypeEnum["RERANK"] = "rerank";
|
|
2351
|
+
AiModelTypeEnum["SPEECH2TEXT"] = "speech2text";
|
|
2352
|
+
AiModelTypeEnum["MODERATION"] = "moderation";
|
|
2353
|
+
AiModelTypeEnum["TTS"] = "tts";
|
|
2354
|
+
AiModelTypeEnum["IMAGE"] = "image";
|
|
2355
|
+
/** @deprecated Use IMAGE for new image-generation model providers. */ AiModelTypeEnum["TEXT2IMG"] = "text2img";
|
|
2356
|
+
AiModelTypeEnum["VIDEO"] = "video";
|
|
2357
|
+
})(AiModelTypeEnum || (AiModelTypeEnum = {}));
|
|
2358
|
+
|
|
2359
|
+
function _array_like_to_array$c(arr, len) {
|
|
2360
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2361
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2362
|
+
return arr2;
|
|
2363
|
+
}
|
|
2364
|
+
function _array_without_holes$4(arr) {
|
|
2365
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
2366
|
+
}
|
|
2367
|
+
function _define_property$b(obj, key, value) {
|
|
2368
|
+
if (key in obj) {
|
|
2369
|
+
Object.defineProperty(obj, key, {
|
|
2370
|
+
value: value,
|
|
2371
|
+
enumerable: true,
|
|
2372
|
+
configurable: true,
|
|
2373
|
+
writable: true
|
|
2374
|
+
});
|
|
2375
|
+
} else {
|
|
2376
|
+
obj[key] = value;
|
|
2377
|
+
}
|
|
2378
|
+
return obj;
|
|
2379
|
+
}
|
|
2380
|
+
function _iterable_to_array$6(iter) {
|
|
2381
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2382
|
+
}
|
|
2383
|
+
function _non_iterable_spread$4() {
|
|
2384
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2385
|
+
}
|
|
2386
|
+
function _object_spread$a(target) {
|
|
2387
|
+
for(var i = 1; i < arguments.length; i++){
|
|
2388
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
2389
|
+
var ownKeys = Object.keys(source);
|
|
2390
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
2391
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
2392
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
2393
|
+
}));
|
|
2394
|
+
}
|
|
2395
|
+
ownKeys.forEach(function(key) {
|
|
2396
|
+
_define_property$b(target, key, source[key]);
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
return target;
|
|
2400
|
+
}
|
|
2401
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
2402
|
+
var keys = Object.keys(object);
|
|
2403
|
+
if (Object.getOwnPropertySymbols) {
|
|
2404
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
2405
|
+
keys.push.apply(keys, symbols);
|
|
2406
|
+
}
|
|
2407
|
+
return keys;
|
|
2408
|
+
}
|
|
2409
|
+
function _object_spread_props$7(target, source) {
|
|
2410
|
+
source = source != null ? source : {};
|
|
2411
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
2412
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2413
|
+
} else {
|
|
2414
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
2415
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2416
|
+
});
|
|
2417
|
+
}
|
|
2418
|
+
return target;
|
|
2419
|
+
}
|
|
2420
|
+
function _to_consumable_array$4(arr) {
|
|
2421
|
+
return _array_without_holes$4(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$4();
|
|
2422
|
+
}
|
|
2423
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
2424
|
+
if (!o) return;
|
|
2425
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
2426
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2427
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2428
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2429
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
2430
|
+
}
|
|
2431
|
+
var discoverableModelTypes = [
|
|
2432
|
+
AiModelTypeEnum.LLM,
|
|
2433
|
+
AiModelTypeEnum.TEXT_EMBEDDING,
|
|
2434
|
+
AiModelTypeEnum.RERANK
|
|
2435
|
+
];
|
|
2436
|
+
var positiveInteger = z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
2437
|
+
var common = {
|
|
2438
|
+
contextSize: positiveInteger,
|
|
2439
|
+
maxConcurrency: positiveInteger.max(1000)
|
|
2440
|
+
};
|
|
2441
|
+
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = z.discriminatedUnion("modelType", [
|
|
2442
|
+
z.object(_object_spread_props$7(_object_spread$a({
|
|
2443
|
+
modelType: z.literal(AiModelTypeEnum.LLM)
|
|
2444
|
+
}, common), {
|
|
2445
|
+
maxOutputTokens: positiveInteger,
|
|
2446
|
+
defaultMaxTokens: positiveInteger,
|
|
2447
|
+
features: z.array(z.nativeEnum(ModelFeature)).max(20)
|
|
2448
|
+
})).strict(),
|
|
2449
|
+
z.object(_object_spread_props$7(_object_spread$a({
|
|
2450
|
+
modelType: z.literal(AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2451
|
+
}, common), {
|
|
2452
|
+
dimensions: positiveInteger.optional(),
|
|
2453
|
+
batchSize: positiveInteger.max(2048)
|
|
2454
|
+
})).strict(),
|
|
2455
|
+
z.object(_object_spread$a({
|
|
2456
|
+
modelType: z.literal(AiModelTypeEnum.RERANK)
|
|
2457
|
+
}, common)).strict()
|
|
2458
|
+
]).superRefine(function(value, ctx) {
|
|
2459
|
+
if (value.modelType === AiModelTypeEnum.LLM) {
|
|
2460
|
+
if (value.maxOutputTokens > value.contextSize) {
|
|
2461
|
+
ctx.addIssue({
|
|
2462
|
+
code: z.ZodIssueCode.custom,
|
|
2463
|
+
path: [
|
|
2464
|
+
"maxOutputTokens"
|
|
2465
|
+
],
|
|
2466
|
+
message: "Output limit exceeds context size"
|
|
2467
|
+
});
|
|
2468
|
+
}
|
|
2469
|
+
if (value.defaultMaxTokens > value.maxOutputTokens) {
|
|
2470
|
+
ctx.addIssue({
|
|
2471
|
+
code: z.ZodIssueCode.custom,
|
|
2472
|
+
path: [
|
|
2473
|
+
"defaultMaxTokens"
|
|
2474
|
+
],
|
|
2475
|
+
message: "Default output exceeds output limit"
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
});
|
|
2480
|
+
function defaultModelConfiguration(modelType) {
|
|
2481
|
+
var common = {
|
|
2482
|
+
contextSize: 8192,
|
|
2483
|
+
maxConcurrency: 1
|
|
2484
|
+
};
|
|
2485
|
+
switch(modelType){
|
|
2486
|
+
case AiModelTypeEnum.LLM:
|
|
2487
|
+
return _object_spread_props$7(_object_spread$a({
|
|
2488
|
+
modelType: modelType
|
|
2489
|
+
}, common), {
|
|
2490
|
+
maxOutputTokens: 2048,
|
|
2491
|
+
defaultMaxTokens: 2048,
|
|
2492
|
+
features: []
|
|
2493
|
+
});
|
|
2494
|
+
case AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2495
|
+
return _object_spread_props$7(_object_spread$a({
|
|
2496
|
+
modelType: modelType
|
|
2497
|
+
}, common), {
|
|
2498
|
+
batchSize: 16
|
|
2499
|
+
});
|
|
2500
|
+
case AiModelTypeEnum.RERANK:
|
|
2501
|
+
return _object_spread$a({
|
|
2502
|
+
modelType: modelType
|
|
2503
|
+
}, common);
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
/** Start with editable defaults and overlay the matching built-in YAML values. */ function configurationFromModel(modelType, model) {
|
|
2507
|
+
var _model_model_properties;
|
|
2508
|
+
var configuration = defaultModelConfiguration(modelType);
|
|
2509
|
+
if ((model === null || model === void 0 ? void 0 : model.model_type) && model.model_type !== modelType) return configuration;
|
|
2510
|
+
var context = model === null || model === void 0 ? void 0 : (_model_model_properties = model.model_properties) === null || _model_model_properties === void 0 ? void 0 : _model_model_properties[ModelPropertyKey.CONTEXT_SIZE];
|
|
2511
|
+
if (typeof context === "number" && Number.isSafeInteger(context) && context > 0) configuration.contextSize = context;
|
|
2512
|
+
if (configuration.modelType === AiModelTypeEnum.LLM) {
|
|
2513
|
+
var _model_parameter_rules;
|
|
2514
|
+
var rule = model === null || model === void 0 ? void 0 : (_model_parameter_rules = model.parameter_rules) === null || _model_parameter_rules === void 0 ? void 0 : _model_parameter_rules.find(function(item) {
|
|
2515
|
+
return item.name === "max_tokens";
|
|
2516
|
+
});
|
|
2517
|
+
if (typeof (rule === null || rule === void 0 ? void 0 : rule.max) === "number" && rule.max > 0) configuration.maxOutputTokens = Math.min(rule.max, configuration.contextSize);
|
|
2518
|
+
if (typeof (rule === null || rule === void 0 ? void 0 : rule.default) === "number" && rule.default > 0) configuration.defaultMaxTokens = rule.default;
|
|
2519
|
+
configuration.maxOutputTokens = Math.min(configuration.maxOutputTokens, configuration.contextSize);
|
|
2520
|
+
configuration.defaultMaxTokens = Math.min(configuration.defaultMaxTokens, configuration.maxOutputTokens);
|
|
2521
|
+
var _model_features;
|
|
2522
|
+
configuration.features = _to_consumable_array$4((_model_features = model === null || model === void 0 ? void 0 : model.features) !== null && _model_features !== void 0 ? _model_features : []);
|
|
2523
|
+
}
|
|
2524
|
+
if (configuration.modelType === AiModelTypeEnum.TEXT_EMBEDDING) {
|
|
2525
|
+
var _model_model_properties1, _model_parameter_rules_find, _model_parameter_rules1;
|
|
2526
|
+
var batchSize = model === null || model === void 0 ? void 0 : (_model_model_properties1 = model.model_properties) === null || _model_model_properties1 === void 0 ? void 0 : _model_model_properties1[ModelPropertyKey.MAX_CHUNKS];
|
|
2527
|
+
var dimensions = model === null || model === void 0 ? void 0 : (_model_parameter_rules1 = model.parameter_rules) === null || _model_parameter_rules1 === void 0 ? void 0 : (_model_parameter_rules_find = _model_parameter_rules1.find(function(item) {
|
|
2528
|
+
return item.name === "dimensions";
|
|
2529
|
+
})) === null || _model_parameter_rules_find === void 0 ? void 0 : _model_parameter_rules_find.default;
|
|
2530
|
+
if (typeof batchSize === "number" && Number.isSafeInteger(batchSize) && batchSize > 0 && batchSize <= 2048) {
|
|
2531
|
+
configuration.batchSize = batchSize;
|
|
2532
|
+
}
|
|
2533
|
+
if (typeof dimensions === "number" && Number.isSafeInteger(dimensions) && dimensions > 0) {
|
|
2534
|
+
configuration.dimensions = dimensions;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
return configuration;
|
|
2538
|
+
}
|
|
2539
|
+
function isDiscoverableModelType(value) {
|
|
2540
|
+
return value === AiModelTypeEnum.LLM || value === AiModelTypeEnum.TEXT_EMBEDDING || value === AiModelTypeEnum.RERANK;
|
|
2541
|
+
}
|
|
2542
|
+
/** Parse the persisted JSON field once when entering the model configuration boundary. */ function readModelConfiguration(properties) {
|
|
2543
|
+
var value = properties === null || properties === void 0 ? void 0 : properties.model_configuration;
|
|
2544
|
+
if (value == null) return undefined;
|
|
2545
|
+
return modelConfigurationSchema.parse(value);
|
|
2546
|
+
}
|
|
2547
|
+
function configuredModelSource(model) {
|
|
2548
|
+
var _model_modelProperties, _model_modelProperties1;
|
|
2549
|
+
var _model_modelProperties_configuration_source;
|
|
2550
|
+
return (_model_modelProperties_configuration_source = (_model_modelProperties = model.modelProperties) === null || _model_modelProperties === void 0 ? void 0 : _model_modelProperties.configuration_source) !== null && _model_modelProperties_configuration_source !== void 0 ? _model_modelProperties_configuration_source : ((_model_modelProperties1 = model.modelProperties) === null || _model_modelProperties1 === void 0 ? void 0 : _model_modelProperties1.discovery_model_id) ? "discovered" : "manual";
|
|
2551
|
+
}
|
|
2552
|
+
function usesConfiguredModelCatalog(provider) {
|
|
2553
|
+
var _provider_options_modelDiscovery, _provider_options;
|
|
2554
|
+
return ((_provider_options = provider.options) === null || _provider_options === void 0 ? void 0 : (_provider_options_modelDiscovery = _provider_options.modelDiscovery) === null || _provider_options_modelDiscovery === void 0 ? void 0 : _provider_options_modelDiscovery.mode) === "configured";
|
|
2555
|
+
}
|
|
2556
|
+
/** Shared by management UI, pickers and execution authorization. Manual additions remain explicit opt-ins. */ function isConfiguredModelAvailable(provider, model) {
|
|
2557
|
+
var _model_modelProperties;
|
|
2558
|
+
if (!usesConfiguredModelCatalog(provider)) return true;
|
|
2559
|
+
if (!model) return false;
|
|
2560
|
+
var sourceId = (_model_modelProperties = model.modelProperties) === null || _model_modelProperties === void 0 ? void 0 : _model_modelProperties.discovery_model_id;
|
|
2561
|
+
return !sourceId || provider.options.modelDiscovery.availableModelIds.includes(sourceId);
|
|
2562
|
+
}
|
|
2563
|
+
var modelImportSchema = z.object({
|
|
2564
|
+
models: z.array(z.object({
|
|
2565
|
+
model: z.string().trim().min(1).max(512),
|
|
2566
|
+
configuration: modelConfigurationSchema
|
|
2567
|
+
}).strict()).max(1000)
|
|
2568
|
+
}).strict().refine(function(value) {
|
|
2569
|
+
return new Set(value.models.map(function(model) {
|
|
2570
|
+
return model.model;
|
|
2571
|
+
})).size === value.models.length;
|
|
2572
|
+
}, {
|
|
2573
|
+
message: "Duplicate model IDs"
|
|
2574
|
+
});
|
|
2575
|
+
|
|
2344
2576
|
var THREAD_GOAL_STATUS_VALUES = [
|
|
2345
2577
|
"active",
|
|
2346
2578
|
"paused",
|
|
@@ -2994,12 +3226,12 @@ var VariableOperations = [
|
|
|
2994
3226
|
}
|
|
2995
3227
|
];
|
|
2996
3228
|
|
|
2997
|
-
function _array_like_to_array$
|
|
3229
|
+
function _array_like_to_array$b(arr, len) {
|
|
2998
3230
|
if (len == null || len > arr.length) len = arr.length;
|
|
2999
3231
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3000
3232
|
return arr2;
|
|
3001
3233
|
}
|
|
3002
|
-
function _array_with_holes$
|
|
3234
|
+
function _array_with_holes$8(arr) {
|
|
3003
3235
|
if (Array.isArray(arr)) return arr;
|
|
3004
3236
|
}
|
|
3005
3237
|
function _define_property$9(obj, key, value) {
|
|
@@ -3015,7 +3247,7 @@ function _define_property$9(obj, key, value) {
|
|
|
3015
3247
|
}
|
|
3016
3248
|
return obj;
|
|
3017
3249
|
}
|
|
3018
|
-
function _iterable_to_array_limit$
|
|
3250
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
3019
3251
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3020
3252
|
if (_i == null) return;
|
|
3021
3253
|
var _arr = [];
|
|
@@ -3039,7 +3271,7 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
3039
3271
|
}
|
|
3040
3272
|
return _arr;
|
|
3041
3273
|
}
|
|
3042
|
-
function _non_iterable_rest$
|
|
3274
|
+
function _non_iterable_rest$8() {
|
|
3043
3275
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3044
3276
|
}
|
|
3045
3277
|
function _object_spread$8(target) {
|
|
@@ -3076,16 +3308,16 @@ function _object_spread_props$5(target, source) {
|
|
|
3076
3308
|
}
|
|
3077
3309
|
return target;
|
|
3078
3310
|
}
|
|
3079
|
-
function _sliced_to_array$
|
|
3080
|
-
return _array_with_holes$
|
|
3311
|
+
function _sliced_to_array$6(arr, i) {
|
|
3312
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$8();
|
|
3081
3313
|
}
|
|
3082
|
-
function _unsupported_iterable_to_array$
|
|
3314
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
3083
3315
|
if (!o) return;
|
|
3084
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3316
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
3085
3317
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3086
3318
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3087
3319
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3088
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3320
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
3089
3321
|
}
|
|
3090
3322
|
/**
|
|
3091
3323
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -3167,7 +3399,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3167
3399
|
* @param value
|
|
3168
3400
|
* @returns
|
|
3169
3401
|
*/ function setStateVariable(state, varName, value) {
|
|
3170
|
-
var _varName_split = _sliced_to_array$
|
|
3402
|
+
var _varName_split = _sliced_to_array$6(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3171
3403
|
if (variableName) {
|
|
3172
3404
|
var _state_agentChannelName;
|
|
3173
3405
|
state[agentChannelName] = _object_spread_props$5(_object_spread$8({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$9({}, variableName, value));
|
|
@@ -3442,13 +3674,13 @@ var _retrieval_recall_contentScope;
|
|
|
3442
3674
|
});
|
|
3443
3675
|
}
|
|
3444
3676
|
|
|
3445
|
-
function _array_like_to_array$
|
|
3677
|
+
function _array_like_to_array$a(arr, len) {
|
|
3446
3678
|
if (len == null || len > arr.length) len = arr.length;
|
|
3447
3679
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3448
3680
|
return arr2;
|
|
3449
3681
|
}
|
|
3450
3682
|
function _array_without_holes$3(arr) {
|
|
3451
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3683
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
3452
3684
|
}
|
|
3453
3685
|
function _iterable_to_array$5(iter) {
|
|
3454
3686
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -3457,15 +3689,15 @@ function _non_iterable_spread$3() {
|
|
|
3457
3689
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3458
3690
|
}
|
|
3459
3691
|
function _to_consumable_array$3(arr) {
|
|
3460
|
-
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
3692
|
+
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$3();
|
|
3461
3693
|
}
|
|
3462
|
-
function _unsupported_iterable_to_array$
|
|
3694
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
3463
3695
|
if (!o) return;
|
|
3464
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3696
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
3465
3697
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3466
3698
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3467
3699
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3468
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3700
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
3469
3701
|
}
|
|
3470
3702
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
3471
3703
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
@@ -3555,13 +3787,13 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
3555
3787
|
})));
|
|
3556
3788
|
}
|
|
3557
3789
|
|
|
3558
|
-
function _array_like_to_array$
|
|
3790
|
+
function _array_like_to_array$9(arr, len) {
|
|
3559
3791
|
if (len == null || len > arr.length) len = arr.length;
|
|
3560
3792
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3561
3793
|
return arr2;
|
|
3562
3794
|
}
|
|
3563
3795
|
function _array_without_holes$2(arr) {
|
|
3564
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3796
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
3565
3797
|
}
|
|
3566
3798
|
function _define_property$7(obj, key, value) {
|
|
3567
3799
|
if (key in obj) {
|
|
@@ -3598,15 +3830,15 @@ function _object_spread$6(target) {
|
|
|
3598
3830
|
return target;
|
|
3599
3831
|
}
|
|
3600
3832
|
function _to_consumable_array$2(arr) {
|
|
3601
|
-
return _array_without_holes$2(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
3833
|
+
return _array_without_holes$2(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$2();
|
|
3602
3834
|
}
|
|
3603
|
-
function _unsupported_iterable_to_array$
|
|
3835
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
3604
3836
|
if (!o) return;
|
|
3605
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3837
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
3606
3838
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3607
3839
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3608
3840
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3609
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3841
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
3610
3842
|
}
|
|
3611
3843
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
3612
3844
|
if (!config) return {};
|
|
@@ -4310,6 +4542,7 @@ var PLUGIN_CONFIGURATION_STATUS = {
|
|
|
4310
4542
|
};
|
|
4311
4543
|
var PLUGIN_LOAD_STATUS = {
|
|
4312
4544
|
LOADED: "loaded",
|
|
4545
|
+
PENDING_RESTART: "pending_restart",
|
|
4313
4546
|
FAILED: "failed"
|
|
4314
4547
|
};
|
|
4315
4548
|
var PLUGIN_COMPONENT_TYPE = {
|
|
@@ -4553,13 +4786,13 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
4553
4786
|
}
|
|
4554
4787
|
|
|
4555
4788
|
// Helpers
|
|
4556
|
-
function _array_like_to_array$
|
|
4789
|
+
function _array_like_to_array$8(arr, len) {
|
|
4557
4790
|
if (len == null || len > arr.length) len = arr.length;
|
|
4558
4791
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4559
4792
|
return arr2;
|
|
4560
4793
|
}
|
|
4561
4794
|
function _array_without_holes$1(arr) {
|
|
4562
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4795
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
4563
4796
|
}
|
|
4564
4797
|
function _define_property$5(obj, key, value) {
|
|
4565
4798
|
if (key in obj) {
|
|
@@ -4642,15 +4875,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
4642
4875
|
return target;
|
|
4643
4876
|
}
|
|
4644
4877
|
function _to_consumable_array$1(arr) {
|
|
4645
|
-
return _array_without_holes$1(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
4878
|
+
return _array_without_holes$1(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$1();
|
|
4646
4879
|
}
|
|
4647
|
-
function _unsupported_iterable_to_array$
|
|
4880
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
4648
4881
|
if (!o) return;
|
|
4649
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4882
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
4650
4883
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4651
4884
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4652
4885
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4653
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4886
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
4654
4887
|
}
|
|
4655
4888
|
function omitXpertRelations(xpert) {
|
|
4656
4889
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5383,30 +5616,30 @@ var KnowledgeGraphIndexJobStatus;
|
|
|
5383
5616
|
var KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE = 100;
|
|
5384
5617
|
|
|
5385
5618
|
// Skill types
|
|
5386
|
-
function _array_like_to_array$
|
|
5619
|
+
function _array_like_to_array$7(arr, len) {
|
|
5387
5620
|
if (len == null || len > arr.length) len = arr.length;
|
|
5388
5621
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5389
5622
|
return arr2;
|
|
5390
5623
|
}
|
|
5391
|
-
function _array_with_holes$
|
|
5624
|
+
function _array_with_holes$7(arr) {
|
|
5392
5625
|
if (Array.isArray(arr)) return arr;
|
|
5393
5626
|
}
|
|
5394
5627
|
function _iterable_to_array$2(iter) {
|
|
5395
5628
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5396
5629
|
}
|
|
5397
|
-
function _non_iterable_rest$
|
|
5630
|
+
function _non_iterable_rest$7() {
|
|
5398
5631
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5399
5632
|
}
|
|
5400
5633
|
function _to_array$1(arr) {
|
|
5401
|
-
return _array_with_holes$
|
|
5634
|
+
return _array_with_holes$7(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_rest$7();
|
|
5402
5635
|
}
|
|
5403
|
-
function _unsupported_iterable_to_array$
|
|
5636
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
5404
5637
|
if (!o) return;
|
|
5405
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5638
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
5406
5639
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5407
5640
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5408
5641
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5409
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5642
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
5410
5643
|
}
|
|
5411
5644
|
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
5412
5645
|
function createRuntimeSkillCapabilityId(source) {
|
|
@@ -5440,15 +5673,15 @@ function genXpertSkillKey() {
|
|
|
5440
5673
|
return letterStartSUID("Skill_");
|
|
5441
5674
|
}
|
|
5442
5675
|
|
|
5443
|
-
function _array_like_to_array$
|
|
5676
|
+
function _array_like_to_array$6(arr, len) {
|
|
5444
5677
|
if (len == null || len > arr.length) len = arr.length;
|
|
5445
5678
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5446
5679
|
return arr2;
|
|
5447
5680
|
}
|
|
5448
|
-
function _array_with_holes$
|
|
5681
|
+
function _array_with_holes$6(arr) {
|
|
5449
5682
|
if (Array.isArray(arr)) return arr;
|
|
5450
5683
|
}
|
|
5451
|
-
function _iterable_to_array_limit$
|
|
5684
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
5452
5685
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5453
5686
|
if (_i == null) return;
|
|
5454
5687
|
var _arr = [];
|
|
@@ -5472,19 +5705,19 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
5472
5705
|
}
|
|
5473
5706
|
return _arr;
|
|
5474
5707
|
}
|
|
5475
|
-
function _non_iterable_rest$
|
|
5708
|
+
function _non_iterable_rest$6() {
|
|
5476
5709
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5477
5710
|
}
|
|
5478
|
-
function _sliced_to_array$
|
|
5479
|
-
return _array_with_holes$
|
|
5711
|
+
function _sliced_to_array$5(arr, i) {
|
|
5712
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$6();
|
|
5480
5713
|
}
|
|
5481
|
-
function _unsupported_iterable_to_array$
|
|
5714
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
5482
5715
|
if (!o) return;
|
|
5483
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5716
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
5484
5717
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5485
5718
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5486
5719
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5487
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5720
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
5488
5721
|
}
|
|
5489
5722
|
var IGNORED_BOOLEAN_FLAGS = new Set([
|
|
5490
5723
|
"-y",
|
|
@@ -5699,7 +5932,7 @@ function parseGithubSource(source) {
|
|
|
5699
5932
|
return parseGithubUrl(raw);
|
|
5700
5933
|
}
|
|
5701
5934
|
if (/^[^/\s]+\/[^/\s]+$/.test(raw)) {
|
|
5702
|
-
var _raw_split = _sliced_to_array$
|
|
5935
|
+
var _raw_split = _sliced_to_array$5(raw.split("/"), 2), owner = _raw_split[0], repoSegment = _raw_split[1];
|
|
5703
5936
|
var repo = repoSegment.replace(/\.git$/i, "");
|
|
5704
5937
|
if (!repo) {
|
|
5705
5938
|
throw new Error("GitHub repository source must include owner and repository name");
|
|
@@ -5888,16 +6121,16 @@ function isContextCompressionComponentData(value) {
|
|
|
5888
6121
|
"job"
|
|
5889
6122
|
];
|
|
5890
6123
|
|
|
5891
|
-
function _array_like_to_array$
|
|
6124
|
+
function _array_like_to_array$5(arr, len) {
|
|
5892
6125
|
if (len == null || len > arr.length) len = arr.length;
|
|
5893
6126
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5894
6127
|
return arr2;
|
|
5895
6128
|
}
|
|
5896
|
-
function _array_with_holes$
|
|
6129
|
+
function _array_with_holes$5(arr) {
|
|
5897
6130
|
if (Array.isArray(arr)) return arr;
|
|
5898
6131
|
}
|
|
5899
6132
|
function _array_without_holes(arr) {
|
|
5900
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6133
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
5901
6134
|
}
|
|
5902
6135
|
function _define_property$2(obj, key, value) {
|
|
5903
6136
|
if (key in obj) {
|
|
@@ -5915,7 +6148,7 @@ function _define_property$2(obj, key, value) {
|
|
|
5915
6148
|
function _iterable_to_array$1(iter) {
|
|
5916
6149
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5917
6150
|
}
|
|
5918
|
-
function _iterable_to_array_limit$
|
|
6151
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
5919
6152
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5920
6153
|
if (_i == null) return;
|
|
5921
6154
|
var _arr = [];
|
|
@@ -5939,7 +6172,7 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
5939
6172
|
}
|
|
5940
6173
|
return _arr;
|
|
5941
6174
|
}
|
|
5942
|
-
function _non_iterable_rest$
|
|
6175
|
+
function _non_iterable_rest$5() {
|
|
5943
6176
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5944
6177
|
}
|
|
5945
6178
|
function _non_iterable_spread() {
|
|
@@ -6006,19 +6239,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
6006
6239
|
}
|
|
6007
6240
|
return target;
|
|
6008
6241
|
}
|
|
6009
|
-
function _sliced_to_array$
|
|
6010
|
-
return _array_with_holes$
|
|
6242
|
+
function _sliced_to_array$4(arr, i) {
|
|
6243
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
6011
6244
|
}
|
|
6012
6245
|
function _to_consumable_array(arr) {
|
|
6013
|
-
return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
6246
|
+
return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread();
|
|
6014
6247
|
}
|
|
6015
|
-
function _unsupported_iterable_to_array$
|
|
6248
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
6016
6249
|
if (!o) return;
|
|
6017
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6250
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
6018
6251
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6019
6252
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6020
6253
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6021
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6254
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
6022
6255
|
}
|
|
6023
6256
|
function isNil(value) {
|
|
6024
6257
|
return value === null || value === undefined;
|
|
@@ -6176,7 +6409,7 @@ function mergeComponentData(previous, incoming) {
|
|
|
6176
6409
|
var _previous_data, _incoming_data;
|
|
6177
6410
|
var _incoming_data1;
|
|
6178
6411
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
6179
|
-
var _param = _sliced_to_array$
|
|
6412
|
+
var _param = _sliced_to_array$4(param, 2), key = _param[0], value = _param[1];
|
|
6180
6413
|
if (!isNil(value)) {
|
|
6181
6414
|
acc[key] = value;
|
|
6182
6415
|
}
|
|
@@ -6800,15 +7033,15 @@ function modelExecutionSourceId(source) {
|
|
|
6800
7033
|
}
|
|
6801
7034
|
}
|
|
6802
7035
|
var MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
|
|
6803
|
-
/** Explicit model policy source in a Runtime binding; independent of the calling Agent identity. */ var agentRuntimeModelSourceSchema = z.object({
|
|
6804
|
-
type: z.literal("assistant"),
|
|
6805
|
-
xpertId: z.string().uuid()
|
|
7036
|
+
/** Explicit model policy source in a Runtime binding; independent of the calling Agent identity. */ var agentRuntimeModelSourceSchema = z$1.object({
|
|
7037
|
+
type: z$1.literal("assistant"),
|
|
7038
|
+
xpertId: z$1.string().uuid()
|
|
6806
7039
|
}).strict();
|
|
6807
7040
|
|
|
6808
7041
|
/**
|
|
6809
7042
|
* Running means accepted; actual work start requires an observation.
|
|
6810
7043
|
* Only succeeded, failed and cancelled are terminal. Unknown must be reconciled without replay.
|
|
6811
|
-
*/ var agentInvocationStatusSchema = z.enum([
|
|
7044
|
+
*/ var agentInvocationStatusSchema = z$1.enum([
|
|
6812
7045
|
"queued",
|
|
6813
7046
|
"running",
|
|
6814
7047
|
"waiting",
|
|
@@ -6818,122 +7051,122 @@ var MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
|
|
|
6818
7051
|
"cancelled",
|
|
6819
7052
|
"unknown"
|
|
6820
7053
|
]);
|
|
6821
|
-
var agentInvocationTerminalStatusSchema = z.enum([
|
|
7054
|
+
var agentInvocationTerminalStatusSchema = z$1.enum([
|
|
6822
7055
|
"succeeded",
|
|
6823
7056
|
"failed",
|
|
6824
7057
|
"cancelled"
|
|
6825
7058
|
]);
|
|
6826
|
-
/** Activity and reported progress are separate from business acceptance. No invented percentage. */ var agentRuntimeProgressSchema = z.object({
|
|
6827
|
-
source: z.enum([
|
|
7059
|
+
/** Activity and reported progress are separate from business acceptance. No invented percentage. */ var agentRuntimeProgressSchema = z$1.object({
|
|
7060
|
+
source: z$1.enum([
|
|
6828
7061
|
"executor",
|
|
6829
7062
|
"host"
|
|
6830
7063
|
]),
|
|
6831
|
-
observedAt: z.string().datetime({
|
|
7064
|
+
observedAt: z$1.string().datetime({
|
|
6832
7065
|
offset: true
|
|
6833
7066
|
}),
|
|
6834
|
-
startedAt: z.string().datetime({
|
|
7067
|
+
startedAt: z$1.string().datetime({
|
|
6835
7068
|
offset: true
|
|
6836
7069
|
}).optional(),
|
|
6837
|
-
phase: z.string().trim().min(1).max(200).optional(),
|
|
6838
|
-
summary: z.string().max(2000).optional(),
|
|
6839
|
-
steps: z.object({
|
|
6840
|
-
completed: z.number().int().nonnegative(),
|
|
6841
|
-
total: z.number().int().positive()
|
|
7070
|
+
phase: z$1.string().trim().min(1).max(200).optional(),
|
|
7071
|
+
summary: z$1.string().max(2000).optional(),
|
|
7072
|
+
steps: z$1.object({
|
|
7073
|
+
completed: z$1.number().int().nonnegative(),
|
|
7074
|
+
total: z$1.number().int().positive()
|
|
6842
7075
|
}).strict().refine(function(steps) {
|
|
6843
7076
|
return steps.completed <= steps.total;
|
|
6844
7077
|
}).optional()
|
|
6845
7078
|
}).strict();
|
|
6846
7079
|
|
|
6847
|
-
/** Host-owned routing context for a native Assistant invocation, not a separate runtime provider. */ var assistantTaskGroupContextSchema = z.object({
|
|
6848
|
-
type: z.literal("group_member"),
|
|
6849
|
-
groupId: z.string().uuid(),
|
|
6850
|
-
participantId: z.string().uuid(),
|
|
6851
|
-
sourceParticipantId: z.string().uuid(),
|
|
6852
|
-
projectId: z.string().uuid()
|
|
7080
|
+
/** Host-owned routing context for a native Assistant invocation, not a separate runtime provider. */ var assistantTaskGroupContextSchema = z$1.object({
|
|
7081
|
+
type: z$1.literal("group_member"),
|
|
7082
|
+
groupId: z$1.string().uuid(),
|
|
7083
|
+
participantId: z$1.string().uuid(),
|
|
7084
|
+
sourceParticipantId: z$1.string().uuid(),
|
|
7085
|
+
projectId: z$1.string().uuid()
|
|
6853
7086
|
}).strict();
|
|
6854
7087
|
function assistantTaskGroupContext(target) {
|
|
6855
7088
|
if (target.provider !== "xpert-task") return null;
|
|
6856
|
-
var parsed = z.object({
|
|
7089
|
+
var parsed = z$1.object({
|
|
6857
7090
|
executionContext: assistantTaskGroupContextSchema
|
|
6858
7091
|
}).safeParse(target.configuration);
|
|
6859
7092
|
return parsed.success ? parsed.data.executionContext : null;
|
|
6860
7093
|
}
|
|
6861
7094
|
|
|
6862
7095
|
var AGENT_OUTPUT_MAX_PATHS = 128;
|
|
6863
|
-
/** Relative file selections only. A declaration does not grant filesystem access. */ var agentResultPathSchema = z.string().min(1).max(1024).refine(function(path) {
|
|
7096
|
+
/** Relative file selections only. A declaration does not grant filesystem access. */ var agentResultPathSchema = z$1.string().min(1).max(1024).refine(function(path) {
|
|
6864
7097
|
return !path.startsWith("/") && !/^[a-zA-Z]:/.test(path) && !path.includes("\\") && !/[\x00-\x1f]/.test(path) && path.split("/").every(function(part) {
|
|
6865
7098
|
return part !== "" && part !== "." && part !== "..";
|
|
6866
7099
|
});
|
|
6867
7100
|
}, "Expected a relative file path");
|
|
6868
|
-
/** An export selection is a list of exact files, never a filesystem search. */ var deliveryPathsSchema = z.array(agentResultPathSchema.refine(function(path) {
|
|
7101
|
+
/** An export selection is a list of exact files, never a filesystem search. */ var deliveryPathsSchema = z$1.array(agentResultPathSchema.refine(function(path) {
|
|
6869
7102
|
return !/[*?\[\]{}]/.test(path);
|
|
6870
7103
|
}, "Delivery paths must be exact relative file paths, without wildcards. Omit paths to use the executor's declared deliverables.")).min(1).max(AGENT_OUTPUT_MAX_PATHS).optional().describe("Exact file paths relative to the task working directory. No wildcards/globs or directories. If filenames are determined during execution, omit paths and require the executor to declare each deliverable as a file result item.");
|
|
6871
|
-
/** Omission means no export. Optional paths restrict the adapter's explicitly declared deliverables. */ var agentOutputDeliverySchema = z.discriminatedUnion("mode", [
|
|
6872
|
-
z.object({
|
|
6873
|
-
mode: z.literal("none")
|
|
7104
|
+
/** Omission means no export. Optional paths restrict the adapter's explicitly declared deliverables. */ var agentOutputDeliverySchema = z$1.discriminatedUnion("mode", [
|
|
7105
|
+
z$1.object({
|
|
7106
|
+
mode: z$1.literal("none")
|
|
6874
7107
|
}).strict(),
|
|
6875
|
-
z.object({
|
|
6876
|
-
mode: z.literal("files"),
|
|
7108
|
+
z$1.object({
|
|
7109
|
+
mode: z$1.literal("files"),
|
|
6877
7110
|
paths: deliveryPathsSchema
|
|
6878
7111
|
}).strict(),
|
|
6879
|
-
z.object({
|
|
6880
|
-
mode: z.literal("archive"),
|
|
7112
|
+
z$1.object({
|
|
7113
|
+
mode: z$1.literal("archive"),
|
|
6881
7114
|
paths: deliveryPathsSchema
|
|
6882
7115
|
}).strict()
|
|
6883
7116
|
]);
|
|
6884
7117
|
|
|
6885
|
-
var projectTaskSpecificationDigestSchema = z.string().regex(/^sha256:[a-f0-9]{64}$/);
|
|
6886
|
-
/** Only requirements belong here; status, progress, assignment and generic revision do not. */ var projectTaskSpecificationSchema = z.object({
|
|
6887
|
-
version: z.literal(1),
|
|
6888
|
-
title: z.string().trim().min(1).max(500),
|
|
6889
|
-
description: z.string().max(32000).optional(),
|
|
6890
|
-
requirements: z.array(z.string().trim().min(1).max(4000)).min(1).max(64),
|
|
6891
|
-
steps: z.array(z.object({
|
|
6892
|
-
stepIndex: z.number().int().positive(),
|
|
6893
|
-
description: z.string().trim().min(1).max(4000)
|
|
7118
|
+
var projectTaskSpecificationDigestSchema = z$1.string().regex(/^sha256:[a-f0-9]{64}$/);
|
|
7119
|
+
/** Only requirements belong here; status, progress, assignment and generic revision do not. */ var projectTaskSpecificationSchema = z$1.object({
|
|
7120
|
+
version: z$1.literal(1),
|
|
7121
|
+
title: z$1.string().trim().min(1).max(500),
|
|
7122
|
+
description: z$1.string().max(32000).optional(),
|
|
7123
|
+
requirements: z$1.array(z$1.string().trim().min(1).max(4000)).min(1).max(64),
|
|
7124
|
+
steps: z$1.array(z$1.object({
|
|
7125
|
+
stepIndex: z$1.number().int().positive(),
|
|
7126
|
+
description: z$1.string().trim().min(1).max(4000)
|
|
6894
7127
|
}).strict()).max(128)
|
|
6895
7128
|
}).strict().refine(function(specification) {
|
|
6896
7129
|
return new Set(specification.steps.map(function(step) {
|
|
6897
7130
|
return step.stepIndex;
|
|
6898
7131
|
})).size === specification.steps.length;
|
|
6899
7132
|
}, "Step indices must be unique");
|
|
6900
|
-
/** The host verifies the digest against the specification at the persistence boundary. */ var projectTaskSpecificationSnapshotSchema = z.object({
|
|
7133
|
+
/** The host verifies the digest against the specification at the persistence boundary. */ var projectTaskSpecificationSnapshotSchema = z$1.object({
|
|
6901
7134
|
digest: projectTaskSpecificationDigestSchema,
|
|
6902
7135
|
specification: projectTaskSpecificationSchema
|
|
6903
7136
|
}).strict();
|
|
6904
|
-
/** Versioned references, not paths or access grants. Resolve and authorize before reading. */ var projectTaskEvidenceReferenceSchema = z.discriminatedUnion("type", [
|
|
6905
|
-
z.object({
|
|
6906
|
-
type: z.literal("artifact"),
|
|
6907
|
-
artifactId: z.string().uuid(),
|
|
6908
|
-
versionId: z.string().uuid()
|
|
7137
|
+
/** Versioned references, not paths or access grants. Resolve and authorize before reading. */ var projectTaskEvidenceReferenceSchema = z$1.discriminatedUnion("type", [
|
|
7138
|
+
z$1.object({
|
|
7139
|
+
type: z$1.literal("artifact"),
|
|
7140
|
+
artifactId: z$1.string().uuid(),
|
|
7141
|
+
versionId: z$1.string().uuid()
|
|
6909
7142
|
}).strict(),
|
|
6910
|
-
z.object({
|
|
6911
|
-
type: z.literal("invocation_result"),
|
|
6912
|
-
invocationId: z.string().uuid(),
|
|
6913
|
-
revision: z.number().int().nonnegative()
|
|
7143
|
+
z$1.object({
|
|
7144
|
+
type: z$1.literal("invocation_result"),
|
|
7145
|
+
invocationId: z$1.string().uuid(),
|
|
7146
|
+
revision: z$1.number().int().nonnegative()
|
|
6914
7147
|
}).strict(),
|
|
6915
|
-
z.object({
|
|
6916
|
-
type: z.literal("workspace_snapshot"),
|
|
6917
|
-
snapshotId: z.string().uuid(),
|
|
7148
|
+
z$1.object({
|
|
7149
|
+
type: z$1.literal("workspace_snapshot"),
|
|
7150
|
+
snapshotId: z$1.string().uuid(),
|
|
6918
7151
|
digest: projectTaskSpecificationDigestSchema
|
|
6919
7152
|
}).strict()
|
|
6920
7153
|
]);
|
|
6921
|
-
var projectTaskExecutionPurposeSchema = z.discriminatedUnion("type", [
|
|
6922
|
-
z.object({
|
|
6923
|
-
type: z.literal("implementation")
|
|
7154
|
+
var projectTaskExecutionPurposeSchema = z$1.discriminatedUnion("type", [
|
|
7155
|
+
z$1.object({
|
|
7156
|
+
type: z$1.literal("implementation")
|
|
6924
7157
|
}).strict(),
|
|
6925
|
-
z.object({
|
|
6926
|
-
type: z.literal("review"),
|
|
6927
|
-
implementationExecutionId: z.string().uuid(),
|
|
6928
|
-
implementationInvocationId: z.string().uuid(),
|
|
7158
|
+
z$1.object({
|
|
7159
|
+
type: z$1.literal("review"),
|
|
7160
|
+
implementationExecutionId: z$1.string().uuid(),
|
|
7161
|
+
implementationInvocationId: z$1.string().uuid(),
|
|
6929
7162
|
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
6930
|
-
evidence: z.array(projectTaskEvidenceReferenceSchema).min(1).max(64)
|
|
7163
|
+
evidence: z$1.array(projectTaskEvidenceReferenceSchema).min(1).max(64)
|
|
6931
7164
|
}).strict()
|
|
6932
7165
|
]);
|
|
6933
|
-
var projectTaskExecutionReferenceSchema = z.object({
|
|
6934
|
-
projectId: z.string().uuid(),
|
|
6935
|
-
projectTaskId: z.string().uuid(),
|
|
6936
|
-
taskExecutionId: z.string().uuid()
|
|
7166
|
+
var projectTaskExecutionReferenceSchema = z$1.object({
|
|
7167
|
+
projectId: z$1.string().uuid(),
|
|
7168
|
+
projectTaskId: z$1.string().uuid(),
|
|
7169
|
+
taskExecutionId: z$1.string().uuid()
|
|
6937
7170
|
}).strict();
|
|
6938
7171
|
/** Host-owned attempt context. Review is a new attempt and grants no completion authority. */ var projectTaskExecutionContextSchema = projectTaskExecutionReferenceSchema.extend({
|
|
6939
7172
|
specification: projectTaskSpecificationSnapshotSchema,
|
|
@@ -6942,7 +7175,7 @@ var projectTaskExecutionReferenceSchema = z.object({
|
|
|
6942
7175
|
if (value.purpose.type !== "review") return;
|
|
6943
7176
|
if (value.purpose.implementationExecutionId === value.taskExecutionId) {
|
|
6944
7177
|
ctx.addIssue({
|
|
6945
|
-
code: z.ZodIssueCode.custom,
|
|
7178
|
+
code: z$1.ZodIssueCode.custom,
|
|
6946
7179
|
path: [
|
|
6947
7180
|
"purpose"
|
|
6948
7181
|
],
|
|
@@ -6951,7 +7184,7 @@ var projectTaskExecutionReferenceSchema = z.object({
|
|
|
6951
7184
|
}
|
|
6952
7185
|
if (value.purpose.specificationDigest !== value.specification.digest) {
|
|
6953
7186
|
ctx.addIssue({
|
|
6954
|
-
code: z.ZodIssueCode.custom,
|
|
7187
|
+
code: z$1.ZodIssueCode.custom,
|
|
6955
7188
|
path: [
|
|
6956
7189
|
"purpose"
|
|
6957
7190
|
],
|
|
@@ -6960,21 +7193,21 @@ var projectTaskExecutionReferenceSchema = z.object({
|
|
|
6960
7193
|
}
|
|
6961
7194
|
});
|
|
6962
7195
|
/** A receipt is neither a business completion decision nor proof that the process has started. */ var projectTaskDispatchReceiptSchema = projectTaskExecutionReferenceSchema.extend({
|
|
6963
|
-
invocationId: z.string().uuid(),
|
|
7196
|
+
invocationId: z$1.string().uuid(),
|
|
6964
7197
|
status: agentInvocationStatusSchema
|
|
6965
7198
|
}).strict();
|
|
6966
|
-
/** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchFieldsSchema = z.object({
|
|
6967
|
-
requestId: z.string().uuid(),
|
|
6968
|
-
taskId: z.string().uuid(),
|
|
6969
|
-
expectedRevision: z.number().int().positive(),
|
|
6970
|
-
bindingId: z.string().uuid().optional(),
|
|
6971
|
-
target: z.object({
|
|
6972
|
-
type: z.literal("group_member"),
|
|
6973
|
-
participantId: z.string().uuid()
|
|
7199
|
+
/** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchFieldsSchema = z$1.object({
|
|
7200
|
+
requestId: z$1.string().uuid(),
|
|
7201
|
+
taskId: z$1.string().uuid(),
|
|
7202
|
+
expectedRevision: z$1.number().int().positive(),
|
|
7203
|
+
bindingId: z$1.string().uuid().optional(),
|
|
7204
|
+
target: z$1.object({
|
|
7205
|
+
type: z$1.literal("group_member"),
|
|
7206
|
+
participantId: z$1.string().uuid()
|
|
6974
7207
|
}).strict().optional(),
|
|
6975
7208
|
purpose: projectTaskExecutionPurposeSchema.optional(),
|
|
6976
7209
|
delivery: agentOutputDeliverySchema.optional(),
|
|
6977
|
-
instructions: z.string().trim().max(16000).default("")
|
|
7210
|
+
instructions: z$1.string().trim().max(16000).default("")
|
|
6978
7211
|
}).strict();
|
|
6979
7212
|
var hasOneDispatchTarget = function(input) {
|
|
6980
7213
|
return Boolean(input.bindingId) !== Boolean(input.target);
|
|
@@ -6983,44 +7216,405 @@ var projectTaskDispatchInputSchema = projectTaskDispatchFieldsSchema.refine(hasO
|
|
|
6983
7216
|
var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
6984
7217
|
requestId: true
|
|
6985
7218
|
}).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
6986
|
-
/** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskReviewReportSchema = z.object({
|
|
6987
|
-
version: z.literal(1),
|
|
6988
|
-
verdict: z.enum([
|
|
7219
|
+
/** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskReviewReportSchema = z$1.object({
|
|
7220
|
+
version: z$1.literal(1),
|
|
7221
|
+
verdict: z$1.enum([
|
|
6989
7222
|
"pass",
|
|
6990
7223
|
"changes_required",
|
|
6991
7224
|
"indeterminate"
|
|
6992
7225
|
]),
|
|
6993
7226
|
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
6994
|
-
implementationInvocationId: z.string().uuid(),
|
|
6995
|
-
evidence: z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
6996
|
-
findings: z.array(z.string().trim().min(1).max(4000)).min(1).max(64),
|
|
6997
|
-
limitations: z.array(z.string().trim().min(1).max(4000)).max(64)
|
|
7227
|
+
implementationInvocationId: z$1.string().uuid(),
|
|
7228
|
+
evidence: z$1.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
7229
|
+
findings: z$1.array(z$1.string().trim().min(1).max(4000)).min(1).max(64),
|
|
7230
|
+
limitations: z$1.array(z$1.string().trim().min(1).max(4000)).max(64)
|
|
6998
7231
|
}).strict();
|
|
6999
|
-
var projectTaskDecisionInputSchema = z.object({
|
|
7000
|
-
requestId: z.string().uuid(),
|
|
7001
|
-
taskId: z.string().uuid(),
|
|
7002
|
-
expectedRevision: z.number().int().positive(),
|
|
7003
|
-
implementationExecutionId: z.string().uuid(),
|
|
7232
|
+
var projectTaskDecisionInputSchema = z$1.object({
|
|
7233
|
+
requestId: z$1.string().uuid(),
|
|
7234
|
+
taskId: z$1.string().uuid(),
|
|
7235
|
+
expectedRevision: z$1.number().int().positive(),
|
|
7236
|
+
implementationExecutionId: z$1.string().uuid(),
|
|
7004
7237
|
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
7005
|
-
evidence: z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
7006
|
-
reviewExecutionId: z.string().uuid().optional(),
|
|
7007
|
-
outcome: z.enum([
|
|
7238
|
+
evidence: z$1.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
7239
|
+
reviewExecutionId: z$1.string().uuid().optional(),
|
|
7240
|
+
outcome: z$1.enum([
|
|
7008
7241
|
"accept",
|
|
7009
7242
|
"rework"
|
|
7010
7243
|
]),
|
|
7011
|
-
rationale: z.string().trim().min(1).max(8000),
|
|
7012
|
-
checks: z.array(z.string().trim().min(1).max(4000)).min(1).max(64)
|
|
7244
|
+
rationale: z$1.string().trim().min(1).max(8000),
|
|
7245
|
+
checks: z$1.array(z$1.string().trim().min(1).max(4000)).min(1).max(64)
|
|
7013
7246
|
}).strict();
|
|
7014
7247
|
var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
|
|
7015
|
-
actorId: z.string().uuid(),
|
|
7016
|
-
actorType: z.enum([
|
|
7248
|
+
actorId: z$1.string().uuid(),
|
|
7249
|
+
actorType: z$1.enum([
|
|
7017
7250
|
"user",
|
|
7018
7251
|
"xpert",
|
|
7019
7252
|
"project_agent"
|
|
7020
7253
|
]),
|
|
7021
|
-
executionId: z.string().uuid().optional(),
|
|
7022
|
-
decidedAt: z.string().datetime(),
|
|
7023
|
-
taskRevision: z.number().int().positive()
|
|
7254
|
+
executionId: z$1.string().uuid().optional(),
|
|
7255
|
+
decidedAt: z$1.string().datetime(),
|
|
7256
|
+
taskRevision: z$1.number().int().positive()
|
|
7257
|
+
}).strict();
|
|
7258
|
+
|
|
7259
|
+
var templateDependencyLocksSchema = z.array(z.object({
|
|
7260
|
+
pluginName: z.string().trim().min(1).max(300),
|
|
7261
|
+
version: z.string().trim().min(1).max(300),
|
|
7262
|
+
source: z.object({
|
|
7263
|
+
kind: z.literal("agent-plugin"),
|
|
7264
|
+
name: z.string().min(1).max(300),
|
|
7265
|
+
digest: z.string().regex(/^[a-f0-9]{64}$/),
|
|
7266
|
+
bindingId: z.string().uuid(),
|
|
7267
|
+
bindingVersion: z.string().min(1).max(300)
|
|
7268
|
+
}).strict().optional(),
|
|
7269
|
+
providers: z.array(z.object({
|
|
7270
|
+
kind: z.enum([
|
|
7271
|
+
"middleware",
|
|
7272
|
+
"sandbox",
|
|
7273
|
+
"toolset"
|
|
7274
|
+
]),
|
|
7275
|
+
key: z.string().min(1).max(300)
|
|
7276
|
+
}).strict()).max(300).optional(),
|
|
7277
|
+
components: z.array(z.object({
|
|
7278
|
+
type: z.enum([
|
|
7279
|
+
"skill",
|
|
7280
|
+
"mcp_server",
|
|
7281
|
+
"toolset",
|
|
7282
|
+
"app",
|
|
7283
|
+
"hook",
|
|
7284
|
+
"asset"
|
|
7285
|
+
]),
|
|
7286
|
+
key: z.string().min(1).max(128),
|
|
7287
|
+
hash: z.string().min(1).max(300)
|
|
7288
|
+
}).strict()).max(300)
|
|
7289
|
+
}).strict()).max(200);
|
|
7290
|
+
|
|
7291
|
+
function _array_like_to_array$4(arr, len) {
|
|
7292
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
7293
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7294
|
+
return arr2;
|
|
7295
|
+
}
|
|
7296
|
+
function _array_with_holes$4(arr) {
|
|
7297
|
+
if (Array.isArray(arr)) return arr;
|
|
7298
|
+
}
|
|
7299
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
7300
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7301
|
+
if (_i == null) return;
|
|
7302
|
+
var _arr = [];
|
|
7303
|
+
var _n = true;
|
|
7304
|
+
var _d = false;
|
|
7305
|
+
var _s, _e;
|
|
7306
|
+
try {
|
|
7307
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
7308
|
+
_arr.push(_s.value);
|
|
7309
|
+
if (i && _arr.length === i) break;
|
|
7310
|
+
}
|
|
7311
|
+
} catch (err) {
|
|
7312
|
+
_d = true;
|
|
7313
|
+
_e = err;
|
|
7314
|
+
} finally{
|
|
7315
|
+
try {
|
|
7316
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
7317
|
+
} finally{
|
|
7318
|
+
if (_d) throw _e;
|
|
7319
|
+
}
|
|
7320
|
+
}
|
|
7321
|
+
return _arr;
|
|
7322
|
+
}
|
|
7323
|
+
function _non_iterable_rest$4() {
|
|
7324
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7325
|
+
}
|
|
7326
|
+
function _sliced_to_array$3(arr, i) {
|
|
7327
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
|
|
7328
|
+
}
|
|
7329
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
7330
|
+
if (!o) return;
|
|
7331
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
7332
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7333
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7334
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7335
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
7336
|
+
}
|
|
7337
|
+
var text$1 = z.string().trim().min(1).max(300);
|
|
7338
|
+
var key$1 = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$/);
|
|
7339
|
+
var required = z.boolean().default(true);
|
|
7340
|
+
/** Portable paths only. Volume remains responsible for canonical containment and symlink checks. */ var templateFilePathSchema = z.string().min(1).max(512).refine(function(value) {
|
|
7341
|
+
return(// Control characters are intentionally rejected in untrusted template paths.
|
|
7342
|
+
// eslint-disable-next-line no-control-regex
|
|
7343
|
+
!/[\\:\x00-\x1f]/.test(value) && value.split("/").every(function(part) {
|
|
7344
|
+
return !!part && part !== "." && part !== ".." && part.toLowerCase() !== ".apps" && !part.toLowerCase().startsWith(".workspace-write-");
|
|
7345
|
+
}));
|
|
7346
|
+
});
|
|
7347
|
+
var fileEntrySchema = z.discriminatedUnion("kind", [
|
|
7348
|
+
z.object({
|
|
7349
|
+
kind: z.literal("directory"),
|
|
7350
|
+
path: templateFilePathSchema
|
|
7351
|
+
}).strict(),
|
|
7352
|
+
z.object({
|
|
7353
|
+
kind: z.literal("file"),
|
|
7354
|
+
path: templateFilePathSchema,
|
|
7355
|
+
content: z.string().max(262144),
|
|
7356
|
+
contentVersion: text$1,
|
|
7357
|
+
policy: z.literal("create-only")
|
|
7358
|
+
}).strict(),
|
|
7359
|
+
z.object({
|
|
7360
|
+
kind: z.literal("ledger"),
|
|
7361
|
+
path: templateFilePathSchema.refine(function(path) {
|
|
7362
|
+
return path.endsWith(".json");
|
|
7363
|
+
}),
|
|
7364
|
+
structureVersion: text$1,
|
|
7365
|
+
columns: z.array(z.object({
|
|
7366
|
+
key: key$1,
|
|
7367
|
+
label: text$1,
|
|
7368
|
+
type: z.enum([
|
|
7369
|
+
"string",
|
|
7370
|
+
"number",
|
|
7371
|
+
"boolean",
|
|
7372
|
+
"date"
|
|
7373
|
+
])
|
|
7374
|
+
}).strict()).min(1).max(64),
|
|
7375
|
+
policy: z.literal("create-only")
|
|
7376
|
+
}).strict()
|
|
7377
|
+
]);
|
|
7378
|
+
var templateFilesSchema = z.object({
|
|
7379
|
+
scope: z.enum([
|
|
7380
|
+
"shared",
|
|
7381
|
+
"user"
|
|
7382
|
+
]),
|
|
7383
|
+
entries: z.array(fileEntrySchema).min(1).max(100)
|
|
7384
|
+
}).strict().superRefine(function(param, ctx) {
|
|
7385
|
+
var entries = param.entries;
|
|
7386
|
+
var paths = new Set();
|
|
7387
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
7388
|
+
try {
|
|
7389
|
+
var _loop = function() {
|
|
7390
|
+
var _step_value = _sliced_to_array$3(_step.value, 2), index = _step_value[0], entry = _step_value[1];
|
|
7391
|
+
var path = entry.path.toLowerCase();
|
|
7392
|
+
if (paths.has(path)) ctx.addIssue({
|
|
7393
|
+
code: "custom",
|
|
7394
|
+
path: [
|
|
7395
|
+
"entries",
|
|
7396
|
+
index,
|
|
7397
|
+
"path"
|
|
7398
|
+
],
|
|
7399
|
+
message: "Duplicate path"
|
|
7400
|
+
});
|
|
7401
|
+
paths.add(path);
|
|
7402
|
+
if (entries.some(function(other) {
|
|
7403
|
+
return other.kind !== "directory" && path.startsWith("".concat(other.path.toLowerCase(), "/"));
|
|
7404
|
+
})) ctx.addIssue({
|
|
7405
|
+
code: "custom",
|
|
7406
|
+
path: [
|
|
7407
|
+
"entries",
|
|
7408
|
+
index,
|
|
7409
|
+
"path"
|
|
7410
|
+
],
|
|
7411
|
+
message: "File cannot be a parent"
|
|
7412
|
+
});
|
|
7413
|
+
if (entry.kind === "ledger" && new Set(entry.columns.map(function(column) {
|
|
7414
|
+
return column.key;
|
|
7415
|
+
})).size !== entry.columns.length) ctx.addIssue({
|
|
7416
|
+
code: "custom",
|
|
7417
|
+
path: [
|
|
7418
|
+
"entries",
|
|
7419
|
+
index,
|
|
7420
|
+
"columns"
|
|
7421
|
+
],
|
|
7422
|
+
message: "Duplicate column"
|
|
7423
|
+
});
|
|
7424
|
+
};
|
|
7425
|
+
for(var _iterator = entries.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
|
|
7426
|
+
} catch (err) {
|
|
7427
|
+
_didIteratorError = true;
|
|
7428
|
+
_iteratorError = err;
|
|
7429
|
+
} finally{
|
|
7430
|
+
try {
|
|
7431
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
7432
|
+
_iterator.return();
|
|
7433
|
+
}
|
|
7434
|
+
} finally{
|
|
7435
|
+
if (_didIteratorError) {
|
|
7436
|
+
throw _iteratorError;
|
|
7437
|
+
}
|
|
7438
|
+
}
|
|
7439
|
+
}
|
|
7440
|
+
if (entries.reduce(function(size, entry) {
|
|
7441
|
+
return size + (entry.kind === "file" ? entry.content.length : 0);
|
|
7442
|
+
}, 0) > 1048576) ctx.addIssue({
|
|
7443
|
+
code: "custom",
|
|
7444
|
+
message: "Initial content exceeds limit"
|
|
7445
|
+
});
|
|
7446
|
+
});
|
|
7447
|
+
/** Versioned, credential-free declarations. Missing manifest preserves the legacy template contract. */ var templateManifestV1Schema = z.object({
|
|
7448
|
+
schemaVersion: z.literal(1),
|
|
7449
|
+
version: text$1,
|
|
7450
|
+
memory: z.object({
|
|
7451
|
+
seed: z.boolean(),
|
|
7452
|
+
preferences: z.array(key$1).max(50).default([])
|
|
7453
|
+
}).strict().optional(),
|
|
7454
|
+
skills: z.array(z.object({
|
|
7455
|
+
pluginName: text$1.optional(),
|
|
7456
|
+
componentKey: key$1
|
|
7457
|
+
}).strict()).max(100).optional(),
|
|
7458
|
+
files: templateFilesSchema.optional(),
|
|
7459
|
+
onboarding: z.object({
|
|
7460
|
+
skill: key$1,
|
|
7461
|
+
required: required,
|
|
7462
|
+
preferences: z.array(key$1).max(50).refine(function(items) {
|
|
7463
|
+
return new Set(items).size === items.length;
|
|
7464
|
+
}),
|
|
7465
|
+
completionCriteria: text$1
|
|
7466
|
+
}).strict().optional(),
|
|
7467
|
+
connectors: z.array(z.object({
|
|
7468
|
+
key: key$1,
|
|
7469
|
+
provider: text$1,
|
|
7470
|
+
required: required,
|
|
7471
|
+
purpose: text$1,
|
|
7472
|
+
permissions: z.array(text$1).max(50)
|
|
7473
|
+
}).strict()).max(50).refine(function(items) {
|
|
7474
|
+
return new Set(items.map(function(item) {
|
|
7475
|
+
return item.key;
|
|
7476
|
+
})).size === items.length;
|
|
7477
|
+
}).refine(function(items) {
|
|
7478
|
+
return new Set(items.map(function(item) {
|
|
7479
|
+
return item.provider;
|
|
7480
|
+
})).size === items.length;
|
|
7481
|
+
}).optional(),
|
|
7482
|
+
routines: z.array(z.object({
|
|
7483
|
+
key: key$1,
|
|
7484
|
+
required: z.boolean().default(false),
|
|
7485
|
+
trigger: z.enum([
|
|
7486
|
+
"schedule",
|
|
7487
|
+
"event"
|
|
7488
|
+
]),
|
|
7489
|
+
expression: text$1,
|
|
7490
|
+
timezone: z.enum([
|
|
7491
|
+
"user",
|
|
7492
|
+
"organization"
|
|
7493
|
+
]),
|
|
7494
|
+
skill: key$1,
|
|
7495
|
+
output: text$1,
|
|
7496
|
+
enabled: z.literal(false).default(false)
|
|
7497
|
+
}).strict()).max(50).refine(function(items) {
|
|
7498
|
+
return new Set(items.map(function(item) {
|
|
7499
|
+
return item.key;
|
|
7500
|
+
})).size === items.length;
|
|
7501
|
+
}).optional(),
|
|
7502
|
+
execution: z.object({
|
|
7503
|
+
modelFeatures: z.array(z.nativeEnum(ModelFeature)).max(20).optional(),
|
|
7504
|
+
sandbox: z.enum([
|
|
7505
|
+
"server",
|
|
7506
|
+
"cloud-computer"
|
|
7507
|
+
]).optional(),
|
|
7508
|
+
localCapabilities: z.array(key$1).max(20).optional(),
|
|
7509
|
+
offline: z.enum([
|
|
7510
|
+
"requires-online",
|
|
7511
|
+
"local-only"
|
|
7512
|
+
]).optional()
|
|
7513
|
+
}).strict().optional()
|
|
7514
|
+
}).strict();
|
|
7515
|
+
/** V2 keeps only initialization and requirements that the DSL cannot express. */ var assistantTemplateManifestSchema = templateManifestV1Schema.omit({
|
|
7516
|
+
memory: true,
|
|
7517
|
+
skills: true,
|
|
7518
|
+
execution: true
|
|
7519
|
+
}).extend({
|
|
7520
|
+
schemaVersion: z.literal(2),
|
|
7521
|
+
execution: templateManifestV1Schema.shape.execution.unwrap().omit({
|
|
7522
|
+
sandbox: true
|
|
7523
|
+
}).optional()
|
|
7524
|
+
}).strict();
|
|
7525
|
+
var templateManifestSchema = z.discriminatedUnion("schemaVersion", [
|
|
7526
|
+
templateManifestV1Schema,
|
|
7527
|
+
assistantTemplateManifestSchema
|
|
7528
|
+
]);
|
|
7529
|
+
|
|
7530
|
+
var key = z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$/);
|
|
7531
|
+
var templatePreferenceValuesSchema = z.record(key, z.string().trim().max(2000)).refine(function(values) {
|
|
7532
|
+
return Object.keys(values).length <= 50;
|
|
7533
|
+
});
|
|
7534
|
+
var assistantTemplateSetupStateSchema = z.object({
|
|
7535
|
+
revision: z.number().int().nonnegative(),
|
|
7536
|
+
preferences: templatePreferenceValuesSchema,
|
|
7537
|
+
completedAt: z.string().datetime().optional(),
|
|
7538
|
+
firstResult: z.string().trim().min(1).max(4000).optional(),
|
|
7539
|
+
connectors: z.record(key, z.discriminatedUnion("choice", [
|
|
7540
|
+
z.object({
|
|
7541
|
+
choice: z.literal("binding"),
|
|
7542
|
+
bindingId: z.string().uuid()
|
|
7543
|
+
}).strict(),
|
|
7544
|
+
z.object({
|
|
7545
|
+
choice: z.literal("skip")
|
|
7546
|
+
}).strict()
|
|
7547
|
+
]))
|
|
7548
|
+
}).strict();
|
|
7549
|
+
var templateSetupUpdateSchema = z.object({
|
|
7550
|
+
revision: z.number().int().nonnegative(),
|
|
7551
|
+
preferences: templatePreferenceValuesSchema.optional(),
|
|
7552
|
+
firstResult: z.string().trim().min(1).max(4000).optional(),
|
|
7553
|
+
connector: z.object({
|
|
7554
|
+
key: key,
|
|
7555
|
+
selection: z.discriminatedUnion("choice", [
|
|
7556
|
+
z.object({
|
|
7557
|
+
choice: z.literal("binding"),
|
|
7558
|
+
bindingId: z.string().uuid()
|
|
7559
|
+
}).strict(),
|
|
7560
|
+
z.object({
|
|
7561
|
+
choice: z.literal("skip")
|
|
7562
|
+
}).strict()
|
|
7563
|
+
])
|
|
7564
|
+
}).strict().optional()
|
|
7565
|
+
}).strict();
|
|
7566
|
+
/** Assistant execution policy, independent of template delivery metadata. Exact tool names only. */ var assistantOperationPolicySchema = z.object({
|
|
7567
|
+
default: z.enum([
|
|
7568
|
+
"allow",
|
|
7569
|
+
"approve",
|
|
7570
|
+
"deny"
|
|
7571
|
+
]),
|
|
7572
|
+
rules: z.array(z.object({
|
|
7573
|
+
tool: key,
|
|
7574
|
+
decision: z.enum([
|
|
7575
|
+
"allow",
|
|
7576
|
+
"approve",
|
|
7577
|
+
"deny"
|
|
7578
|
+
]),
|
|
7579
|
+
reason: z.string().trim().min(1).max(500)
|
|
7580
|
+
}).strict()).max(300)
|
|
7581
|
+
}).strict().refine(function(policy) {
|
|
7582
|
+
return new Set(policy.rules.map(function(rule) {
|
|
7583
|
+
return rule.tool;
|
|
7584
|
+
})).size === policy.rules.length;
|
|
7585
|
+
});
|
|
7586
|
+
|
|
7587
|
+
var templateActivityReadSchema = z.object({
|
|
7588
|
+
keys: z.array(z.string().regex(/^[a-f0-9-]{36}:(pending|running|awaiting_approval|paused|succeeded|failed)$/)).max(50)
|
|
7589
|
+
}).strict();
|
|
7590
|
+
|
|
7591
|
+
var templatePublicationInputSchema = z.object({
|
|
7592
|
+
revision: z.string().regex(/^[a-f0-9]{64}$/),
|
|
7593
|
+
contentHash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
7594
|
+
visibility: z.enum([
|
|
7595
|
+
"team",
|
|
7596
|
+
"public"
|
|
7597
|
+
]),
|
|
7598
|
+
version: z.string().trim().regex(/^\d+\.\d+\.\d+$/),
|
|
7599
|
+
releaseNotes: z.string().trim().max(4000).default("")
|
|
7600
|
+
}).strict();
|
|
7601
|
+
var templateUpgradeSectionSchema = z.enum([
|
|
7602
|
+
"presentation",
|
|
7603
|
+
"instructions",
|
|
7604
|
+
"runtime",
|
|
7605
|
+
"definition"
|
|
7606
|
+
]);
|
|
7607
|
+
var templateUpgradeInputSchema = z.object({
|
|
7608
|
+
targetTemplateId: z.string().trim().min(1).max(500).optional(),
|
|
7609
|
+
revision: z.string().regex(/^[a-f0-9]{64}$/),
|
|
7610
|
+
sourceHash: z.string().regex(/^[a-f0-9]{64}$/),
|
|
7611
|
+
choices: z.record(templateUpgradeSectionSchema, z.enum([
|
|
7612
|
+
"keep",
|
|
7613
|
+
"replace"
|
|
7614
|
+
]))
|
|
7615
|
+
}).strict();
|
|
7616
|
+
var templateUpgradeActionSchema = z.object({
|
|
7617
|
+
operationId: z.string().uuid()
|
|
7024
7618
|
}).strict();
|
|
7025
7619
|
|
|
7026
7620
|
var STATE_VARIABLE_HUMAN = "human";
|
|
@@ -7126,6 +7720,93 @@ var PermissionGroups = {
|
|
|
7126
7720
|
]
|
|
7127
7721
|
};
|
|
7128
7722
|
|
|
7723
|
+
var modulePermissions = [
|
|
7724
|
+
{
|
|
7725
|
+
module: "ai",
|
|
7726
|
+
permissions: [
|
|
7727
|
+
AIPermissionsEnum.KNOWLEDGEBASE_EDIT,
|
|
7728
|
+
AIPermissionsEnum.COPILOT_VIEW,
|
|
7729
|
+
AIPermissionsEnum.COPILOT_EDIT,
|
|
7730
|
+
AIPermissionsEnum.MODEL_USAGE_MONITOR,
|
|
7731
|
+
AIPermissionsEnum.MODEL_ACCESS_REQUEST_VIEW,
|
|
7732
|
+
AIPermissionsEnum.MODEL_ACCESS_REQUEST_EDIT,
|
|
7733
|
+
AIPermissionsEnum.MODEL_GATEWAY_USE,
|
|
7734
|
+
AIPermissionsEnum.MODEL_GATEWAY_MANAGE,
|
|
7735
|
+
AIPermissionsEnum.XPERT_EDIT,
|
|
7736
|
+
AIPermissionsEnum.CHAT_VIEW,
|
|
7737
|
+
AIPermissionsEnum.EVOLUTION_VIEW,
|
|
7738
|
+
AIPermissionsEnum.EVOLUTION_MANAGE
|
|
7739
|
+
]
|
|
7740
|
+
},
|
|
7741
|
+
{
|
|
7742
|
+
module: "projects",
|
|
7743
|
+
permissions: [
|
|
7744
|
+
AIPermissionsEnum.XPERT_PROJECT_VIEW,
|
|
7745
|
+
AIPermissionsEnum.XPERT_PROJECT_CREATE,
|
|
7746
|
+
AIPermissionsEnum.XPERT_PROJECT_EDIT,
|
|
7747
|
+
AIPermissionsEnum.XPERT_PROJECT_MANAGE
|
|
7748
|
+
]
|
|
7749
|
+
},
|
|
7750
|
+
{
|
|
7751
|
+
module: "members",
|
|
7752
|
+
permissions: [
|
|
7753
|
+
PermissionsEnum.ADMIN_DASHBOARD_VIEW,
|
|
7754
|
+
PermissionsEnum.ORG_INVITE_VIEW,
|
|
7755
|
+
PermissionsEnum.ORG_INVITE_EDIT,
|
|
7756
|
+
PermissionsEnum.ORG_DEMO_EDIT,
|
|
7757
|
+
PermissionsEnum.ORG_USERS_VIEW,
|
|
7758
|
+
PermissionsEnum.ORG_USERS_EDIT,
|
|
7759
|
+
PermissionsEnum.ALL_ORG_VIEW,
|
|
7760
|
+
PermissionsEnum.ALL_ORG_EDIT,
|
|
7761
|
+
PermissionsEnum.CHANGE_SELECTED_ORGANIZATION,
|
|
7762
|
+
PermissionsEnum.CHANGE_ROLES_PERMISSIONS,
|
|
7763
|
+
PermissionsEnum.SUPER_ADMIN_EDIT,
|
|
7764
|
+
PermissionsEnum.ACCESS_DELETE_ACCOUNT,
|
|
7765
|
+
PermissionsEnum.ACCESS_DELETE_ALL_DATA,
|
|
7766
|
+
PermissionsEnum.REFERRAL_VIEW
|
|
7767
|
+
]
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
module: "billing",
|
|
7771
|
+
permissions: [
|
|
7772
|
+
AIPermissionsEnum.MEMBERSHIP_EDIT,
|
|
7773
|
+
AIPermissionsEnum.MEMBERSHIP_USE,
|
|
7774
|
+
AIPermissionsEnum.BILLING_PRODUCT_EDIT,
|
|
7775
|
+
AIPermissionsEnum.BILLING_REFUND,
|
|
7776
|
+
AIPermissionsEnum.PAYMENT_PROVIDER_EDIT
|
|
7777
|
+
]
|
|
7778
|
+
},
|
|
7779
|
+
{
|
|
7780
|
+
module: "data",
|
|
7781
|
+
permissions: [
|
|
7782
|
+
PermissionsEnum.VIEW_ALL_EMAILS,
|
|
7783
|
+
PermissionsEnum.VIEW_ALL_EMAIL_TEMPLATES,
|
|
7784
|
+
PermissionsEnum.INTEGRATION_EDIT,
|
|
7785
|
+
PermissionsEnum.INTEGRATION_VIEW,
|
|
7786
|
+
PermissionsEnum.DATA_SOURCE_VIEW,
|
|
7787
|
+
PermissionsEnum.DATA_SOURCE_EDIT,
|
|
7788
|
+
PermissionsEnum.BUSINESS_AREA_VIEW,
|
|
7789
|
+
PermissionsEnum.BUSINESS_AREA_MANAGE,
|
|
7790
|
+
PermissionsEnum.BUSINESS_AREA_ASSIGN
|
|
7791
|
+
]
|
|
7792
|
+
},
|
|
7793
|
+
{
|
|
7794
|
+
module: "personal",
|
|
7795
|
+
permissions: [
|
|
7796
|
+
PermissionsEnum.PROFILE_EDIT
|
|
7797
|
+
]
|
|
7798
|
+
}
|
|
7799
|
+
];
|
|
7800
|
+
var ROLE_PERMISSION_MODULES = new Map(modulePermissions.flatMap(function(param) {
|
|
7801
|
+
var module = param.module, permissions = param.permissions;
|
|
7802
|
+
return permissions.map(function(permission) {
|
|
7803
|
+
return [
|
|
7804
|
+
permission,
|
|
7805
|
+
module
|
|
7806
|
+
];
|
|
7807
|
+
});
|
|
7808
|
+
}));
|
|
7809
|
+
|
|
7129
7810
|
function getTagTargets(tag) {
|
|
7130
7811
|
var _tag_targets;
|
|
7131
7812
|
return ((_tag_targets = tag.targets) === null || _tag_targets === void 0 ? void 0 : _tag_targets.length) ? tag.targets : tag.category ? [
|
|
@@ -7529,20 +8210,6 @@ var INTEGRATION_PROVIDERS = // [IntegrationEnum.LARK]: IntegrationLarkProvider,
|
|
|
7529
8210
|
// [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
7530
8211
|
_define_property$1({}, IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
7531
8212
|
|
|
7532
|
-
var AiModelTypeEnum;
|
|
7533
|
-
(function(AiModelTypeEnum) {
|
|
7534
|
-
AiModelTypeEnum["REALTIME"] = "realtime";
|
|
7535
|
-
AiModelTypeEnum["LLM"] = "llm";
|
|
7536
|
-
AiModelTypeEnum["TEXT_EMBEDDING"] = "text-embedding";
|
|
7537
|
-
AiModelTypeEnum["RERANK"] = "rerank";
|
|
7538
|
-
AiModelTypeEnum["SPEECH2TEXT"] = "speech2text";
|
|
7539
|
-
AiModelTypeEnum["MODERATION"] = "moderation";
|
|
7540
|
-
AiModelTypeEnum["TTS"] = "tts";
|
|
7541
|
-
AiModelTypeEnum["IMAGE"] = "image";
|
|
7542
|
-
/** @deprecated Use IMAGE for new image-generation model providers. */ AiModelTypeEnum["TEXT2IMG"] = "text2img";
|
|
7543
|
-
AiModelTypeEnum["VIDEO"] = "video";
|
|
7544
|
-
})(AiModelTypeEnum || (AiModelTypeEnum = {}));
|
|
7545
|
-
|
|
7546
8213
|
function _array_like_to_array$3(arr, len) {
|
|
7547
8214
|
if (len == null || len > arr.length) len = arr.length;
|
|
7548
8215
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -7891,9 +8558,10 @@ function isInterruptMessage(obj) {
|
|
|
7891
8558
|
* business user represented by the current request context.
|
|
7892
8559
|
*/ var API_PRINCIPAL_USER_ID_HEADER = "x-principal-user-id";
|
|
7893
8560
|
/**
|
|
7894
|
-
* Stable binding kinds used to resolve
|
|
8561
|
+
* Stable binding kinds used to resolve personal or resource credentials.
|
|
7895
8562
|
*/ var ApiKeyBindingType;
|
|
7896
8563
|
(function(ApiKeyBindingType) {
|
|
8564
|
+
/** A fixed human owner, without an Assistant or workspace audience. */ ApiKeyBindingType["USER"] = "user";
|
|
7897
8565
|
ApiKeyBindingType["ASSISTANT"] = "assistant";
|
|
7898
8566
|
ApiKeyBindingType["WORKSPACE"] = "workspace";
|
|
7899
8567
|
ApiKeyBindingType["INTEGRATION"] = "integration";
|
|
@@ -7903,6 +8571,13 @@ function isInterruptMessage(obj) {
|
|
|
7903
8571
|
*/ ApiKeyBindingType["KNOWLEDGEBASE"] = "knowledgebase";
|
|
7904
8572
|
})(ApiKeyBindingType || (ApiKeyBindingType = {}));
|
|
7905
8573
|
|
|
8574
|
+
/** A personal credential uses existing API-key endpoints as its human owner, subject to their current permissions. */ var PERSONAL_API_KEY_LIFETIMES = [
|
|
8575
|
+
"30",
|
|
8576
|
+
"90",
|
|
8577
|
+
"365",
|
|
8578
|
+
"never"
|
|
8579
|
+
];
|
|
8580
|
+
|
|
7906
8581
|
var BusinessType;
|
|
7907
8582
|
(function(BusinessType) {
|
|
7908
8583
|
BusinessType["SEMANTIC_MODEL"] = "SEMANTIC_MODEL";
|
|
@@ -8170,14 +8845,14 @@ var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
|
8170
8845
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
8171
8846
|
|
|
8172
8847
|
var codingExecutionViewKey = "platform.coding-execution__execution";
|
|
8173
|
-
var executionActivityCapabilitiesSchema = z.object({
|
|
8174
|
-
version: z.literal(1),
|
|
8175
|
-
presentation: z.literal("coding")
|
|
8848
|
+
var executionActivityCapabilitiesSchema = z$1.object({
|
|
8849
|
+
version: z$1.literal(1),
|
|
8850
|
+
presentation: z$1.literal("coding")
|
|
8176
8851
|
}).strict();
|
|
8177
|
-
var text = z.string().max(65536);
|
|
8178
|
-
var change = z.object({
|
|
8179
|
-
path: z.string().max(4096),
|
|
8180
|
-
change: z.enum([
|
|
8852
|
+
var text = z$1.string().max(65536);
|
|
8853
|
+
var change = z$1.object({
|
|
8854
|
+
path: z$1.string().max(4096),
|
|
8855
|
+
change: z$1.enum([
|
|
8181
8856
|
"created",
|
|
8182
8857
|
"modified",
|
|
8183
8858
|
"deleted",
|
|
@@ -8185,59 +8860,59 @@ var change = z.object({
|
|
|
8185
8860
|
]),
|
|
8186
8861
|
patch: text.optional()
|
|
8187
8862
|
}).strict();
|
|
8188
|
-
var executionActivityItemSchema = z.object({
|
|
8189
|
-
id: z.string().min(1).max(512),
|
|
8190
|
-
occurredAt: z.string().datetime({
|
|
8863
|
+
var executionActivityItemSchema = z$1.object({
|
|
8864
|
+
id: z$1.string().min(1).max(512),
|
|
8865
|
+
occurredAt: z$1.string().datetime({
|
|
8191
8866
|
offset: true
|
|
8192
8867
|
}).optional(),
|
|
8193
|
-
content: z.discriminatedUnion("kind", [
|
|
8194
|
-
z.object({
|
|
8195
|
-
kind: z.literal("message"),
|
|
8868
|
+
content: z$1.discriminatedUnion("kind", [
|
|
8869
|
+
z$1.object({
|
|
8870
|
+
kind: z$1.literal("message"),
|
|
8196
8871
|
text: text
|
|
8197
8872
|
}).strict(),
|
|
8198
|
-
z.object({
|
|
8199
|
-
kind: z.literal("tool"),
|
|
8200
|
-
name: z.string().max(256).optional(),
|
|
8201
|
-
status: z.enum([
|
|
8873
|
+
z$1.object({
|
|
8874
|
+
kind: z$1.literal("tool"),
|
|
8875
|
+
name: z$1.string().max(256).optional(),
|
|
8876
|
+
status: z$1.enum([
|
|
8202
8877
|
"running",
|
|
8203
8878
|
"succeeded",
|
|
8204
8879
|
"failed",
|
|
8205
8880
|
"unknown"
|
|
8206
8881
|
]),
|
|
8207
8882
|
input: text.optional(),
|
|
8208
|
-
output: z.string().max(2 * 1024 * 1024).optional(),
|
|
8209
|
-
truncated: z.boolean().optional(),
|
|
8210
|
-
outputRef: z.object({
|
|
8211
|
-
key: z.string().regex(/^[a-f0-9]{64}$/),
|
|
8212
|
-
length: z.number().int().positive()
|
|
8883
|
+
output: z$1.string().max(2 * 1024 * 1024).optional(),
|
|
8884
|
+
truncated: z$1.boolean().optional(),
|
|
8885
|
+
outputRef: z$1.object({
|
|
8886
|
+
key: z$1.string().regex(/^[a-f0-9]{64}$/),
|
|
8887
|
+
length: z$1.number().int().positive()
|
|
8213
8888
|
}).strict().optional(),
|
|
8214
|
-
detail: z.discriminatedUnion("type", [
|
|
8215
|
-
z.object({
|
|
8216
|
-
type: z.literal("command"),
|
|
8889
|
+
detail: z$1.discriminatedUnion("type", [
|
|
8890
|
+
z$1.object({
|
|
8891
|
+
type: z$1.literal("command"),
|
|
8217
8892
|
command: text,
|
|
8218
|
-
cwd: z.string().max(4096).optional(),
|
|
8219
|
-
exitCode: z.number().int().optional(),
|
|
8220
|
-
outputMode: z.literal("merged")
|
|
8893
|
+
cwd: z$1.string().max(4096).optional(),
|
|
8894
|
+
exitCode: z$1.number().int().optional(),
|
|
8895
|
+
outputMode: z$1.literal("merged")
|
|
8221
8896
|
}).strict(),
|
|
8222
|
-
z.object({
|
|
8223
|
-
type: z.literal("file_change"),
|
|
8224
|
-
files: z.array(change).max(100)
|
|
8897
|
+
z$1.object({
|
|
8898
|
+
type: z$1.literal("file_change"),
|
|
8899
|
+
files: z$1.array(change).max(100)
|
|
8225
8900
|
}).strict()
|
|
8226
8901
|
]).optional()
|
|
8227
8902
|
}).strict(),
|
|
8228
|
-
z.object({
|
|
8229
|
-
kind: z.literal("diagnostic"),
|
|
8230
|
-
code: z.string().max(128),
|
|
8903
|
+
z$1.object({
|
|
8904
|
+
kind: z$1.literal("diagnostic"),
|
|
8905
|
+
code: z$1.string().max(128),
|
|
8231
8906
|
text: text
|
|
8232
8907
|
}).strict()
|
|
8233
8908
|
])
|
|
8234
8909
|
}).strict();
|
|
8235
|
-
var executionActivityBatchSchema = z.object({
|
|
8236
|
-
items: z.array(executionActivityItemSchema).max(100),
|
|
8237
|
-
sourceCursor: z.string().max(8192).optional(),
|
|
8238
|
-
expectedSourceCursor: z.string().max(8192).optional(),
|
|
8239
|
-
complete: z.boolean().optional(),
|
|
8240
|
-
gaps: z.array(z.enum([
|
|
8910
|
+
var executionActivityBatchSchema = z$1.object({
|
|
8911
|
+
items: z$1.array(executionActivityItemSchema).max(100),
|
|
8912
|
+
sourceCursor: z$1.string().max(8192).optional(),
|
|
8913
|
+
expectedSourceCursor: z$1.string().max(8192).optional(),
|
|
8914
|
+
complete: z$1.boolean().optional(),
|
|
8915
|
+
gaps: z$1.array(z$1.enum([
|
|
8241
8916
|
"source_truncated",
|
|
8242
8917
|
"storage_unavailable",
|
|
8243
8918
|
"capture_limit",
|
|
@@ -8253,4 +8928,4 @@ var executionActivityBatchSchema = z.object({
|
|
|
8253
8928
|
browseUrl: "https://github.com/xpert-ai/xpert-plugins/tree/main/agent-plugins"
|
|
8254
8929
|
};
|
|
8255
8930
|
|
|
8256
|
-
export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, assistantTaskGroupContext, assistantTaskGroupContextSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, channelName, chatMessagePresentation, classificateDocumentCategory, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPreparedCandidate, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, modelExecutionEntry, modelExecutionSourceId, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, validateProjectTaskGraph, workflowNodeIdentifier, xpertLabel };
|
|
8931
|
+
export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PERSONAL_API_KEY_LIFETIMES, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, ROLE_PERMISSION_MODULES, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, assistantOperationPolicySchema, assistantTaskGroupContext, assistantTaskGroupContextSchema, assistantTemplateManifestSchema, assistantTemplateSetupStateSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, channelName, chatMessagePresentation, classificateDocumentCategory, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, configurationFromModel, configuredModelSource, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, defaultModelConfiguration, deriveXpertMarketplaceTechnicalProfile, discoverableModelTypes, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isConfiguredModelAvailable, isContextCompressionComponentData, isDiscoverableModelType, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPreparedCandidate, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, modelConfigurationSchema, modelExecutionEntry, modelExecutionSourceId, modelImportSchema, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, readModelConfiguration, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, templateActivityReadSchema, templateDependencyLocksSchema, templateFilePathSchema, templateFilesSchema, templateManifestSchema, templateManifestV1Schema, templatePreferenceValuesSchema, templatePublicationInputSchema, templateSetupUpdateSchema, templateUpgradeActionSchema, templateUpgradeInputSchema, templateUpgradeSectionSchema, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, usesConfiguredModelCatalog, uuid, validateProjectTaskGraph, workflowNodeIdentifier, xpertLabel };
|