@xpert-ai/contracts 3.18.6 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1001 -222
- package/index.esm.js +982 -223
- package/package.json +3 -3
- package/src/agent-plugin.d.ts +192 -0
- package/src/ai/assistant-configuration.model.d.ts +45 -0
- package/src/ai/assistant-order.d.ts +5 -0
- package/src/ai/assistant-trigger.model.d.ts +56 -0
- package/src/ai/chat-activity.model.d.ts +14 -0
- package/src/ai/chat-message.model.d.ts +10 -1
- package/src/ai/chat-task-summary.model.d.ts +4 -3
- package/src/ai/chat.model.d.ts +100 -13
- package/src/ai/clawxpert-conversation-scope.model.d.ts +2 -0
- package/src/ai/evolution/baseline.d.ts +40 -0
- package/src/ai/evolution/change.d.ts +53 -0
- package/src/ai/evolution/index.d.ts +1 -0
- package/src/ai/evolution/persistence.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -1
- package/src/ai/index.d.ts +9 -0
- package/src/ai/knowledge-keyword-analyzer.model.d.ts +18 -0
- package/src/ai/knowledgebase.model.d.ts +5 -0
- package/src/ai/mcp-publication.model.d.ts +1 -1
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/mobile.model.d.ts +5 -0
- package/src/ai/project-selection.model.d.ts +9 -0
- package/src/ai/project-task-graph.model.d.ts +58 -0
- package/src/ai/project-task-schedule.d.ts +24 -0
- package/src/ai/prompt-workflow-capabilities.model.d.ts +15 -0
- package/src/ai/prompt-workflow.model.d.ts +13 -0
- package/src/ai/sandbox-file-output.model.d.ts +9 -0
- package/src/ai/xpert-agent-execution.model.d.ts +33 -0
- package/src/ai/xpert-chat.model.d.ts +2 -0
- package/src/ai/xpert-marketplace.model.d.ts +5 -0
- package/src/ai/xpert-project-type.model.d.ts +56 -0
- package/src/ai/xpert-project.model.d.ts +25 -1
- package/src/ai/xpert-template.model.d.ts +30 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +15 -1
- package/src/ai/xpert-workflow.model.d.ts +15 -1
- package/src/ai/xpert.model.d.ts +15 -1
- package/src/desktop-shell.model.d.ts +159 -0
- package/src/index.d.ts +4 -0
- package/src/integration.model.d.ts +19 -0
- package/src/plugin.d.ts +26 -7
- package/src/tag-entity.model.d.ts +1 -1
- package/src/view-extension/index.d.ts +2 -0
- package/src/view-extension/model.d.ts +20 -1
- package/src/view-extension/workbench-open.d.ts +10 -0
- package/src/view-extension/workbench.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ShortUniqueId = require('short-unique-id');
|
|
4
|
+
var chatkitTypes = require('@xpert-ai/chatkit-types');
|
|
4
5
|
|
|
5
6
|
function resolveI18nText(value) {
|
|
6
7
|
var language = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
|
|
@@ -87,30 +88,30 @@ function resolveI18nText(value) {
|
|
|
87
88
|
return null;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
|
-
function _array_like_to_array$
|
|
91
|
+
function _array_like_to_array$e(arr, len) {
|
|
91
92
|
if (len == null || len > arr.length) len = arr.length;
|
|
92
93
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
93
94
|
return arr2;
|
|
94
95
|
}
|
|
95
|
-
function _array_without_holes$
|
|
96
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
96
|
+
function _array_without_holes$7(arr) {
|
|
97
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
97
98
|
}
|
|
98
|
-
function _iterable_to_array$
|
|
99
|
+
function _iterable_to_array$9(iter) {
|
|
99
100
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
100
101
|
}
|
|
101
|
-
function _non_iterable_spread$
|
|
102
|
+
function _non_iterable_spread$7() {
|
|
102
103
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
103
104
|
}
|
|
104
|
-
function _to_consumable_array$
|
|
105
|
-
return _array_without_holes$
|
|
105
|
+
function _to_consumable_array$7(arr) {
|
|
106
|
+
return _array_without_holes$7(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$7();
|
|
106
107
|
}
|
|
107
|
-
function _unsupported_iterable_to_array$
|
|
108
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
108
109
|
if (!o) return;
|
|
109
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
110
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
110
111
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
111
112
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
112
113
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
113
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
114
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
114
115
|
}
|
|
115
116
|
var _uuidGenerator;
|
|
116
117
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -120,7 +121,7 @@ var uuid = function() {
|
|
|
120
121
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
121
122
|
args[_key] = arguments[_key];
|
|
122
123
|
}
|
|
123
|
-
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$
|
|
124
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$7(args));
|
|
124
125
|
};
|
|
125
126
|
// Parameters
|
|
126
127
|
exports.ParameterTypeEnum = void 0;
|
|
@@ -137,7 +138,276 @@ function letterStartSUID(start) {
|
|
|
137
138
|
return start + uuid();
|
|
138
139
|
}
|
|
139
140
|
|
|
140
|
-
function
|
|
141
|
+
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$d(arr, len) {
|
|
142
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
143
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
144
|
+
return arr2;
|
|
145
|
+
}
|
|
146
|
+
function _array_without_holes$6(arr) {
|
|
147
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
148
|
+
}
|
|
149
|
+
function _iterable_to_array$8(iter) {
|
|
150
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
151
|
+
}
|
|
152
|
+
function _non_iterable_spread$6() {
|
|
153
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
154
|
+
}
|
|
155
|
+
function _to_consumable_array$6(arr) {
|
|
156
|
+
return _array_without_holes$6(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$6();
|
|
157
|
+
}
|
|
158
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
159
|
+
if (!o) return;
|
|
160
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
161
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
162
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
163
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
164
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
165
|
+
}
|
|
166
|
+
function schedulePredecessors(task, byId) {
|
|
167
|
+
var ids = new Set(task.predecessorIds);
|
|
168
|
+
var seen = new Set();
|
|
169
|
+
var parentId = task.parentTaskId;
|
|
170
|
+
while(parentId && !seen.has(parentId)){
|
|
171
|
+
seen.add(parentId);
|
|
172
|
+
var parent = byId.get(parentId);
|
|
173
|
+
if (!parent || parent.kind !== "summary") break;
|
|
174
|
+
parent.predecessorIds.forEach(function(id) {
|
|
175
|
+
return ids.add(id);
|
|
176
|
+
});
|
|
177
|
+
parentId = parent.parentTaskId;
|
|
178
|
+
}
|
|
179
|
+
return _to_consumable_array$6(ids);
|
|
180
|
+
}
|
|
181
|
+
/** Tree containment and finish-to-start dependencies are separate acyclic graphs. */ function validateProjectTaskGraph(tasks) {
|
|
182
|
+
var _loop = function(_i1, _iter1) {
|
|
183
|
+
var relation = _iter1[_i1];
|
|
184
|
+
var visited = new Set(), active = new Set();
|
|
185
|
+
var visit = function(id) {
|
|
186
|
+
if (active.has(id)) throw Error("PROJECT_TASK_".concat(relation.toUpperCase(), "_CYCLE: ").concat(id));
|
|
187
|
+
if (visited.has(id)) return;
|
|
188
|
+
var task = byId.get(id);
|
|
189
|
+
if (!task) throw Error("PROJECT_TASK_RELATION_NOT_FOUND: ".concat(id));
|
|
190
|
+
active.add(id);
|
|
191
|
+
var references = relation === "tree" ? task.parentTaskId ? [
|
|
192
|
+
task.parentTaskId
|
|
193
|
+
] : [] : _to_consumable_array$6(relation === "schedule" ? schedulePredecessors(task, byId) : task.predecessorIds).concat(_to_consumable_array$6(relation === "schedule" && task.kind === "summary" ? tasks.filter(function(child) {
|
|
194
|
+
return child.parentTaskId === task.id;
|
|
195
|
+
}).map(function(child) {
|
|
196
|
+
return child.id;
|
|
197
|
+
}) : []));
|
|
198
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
199
|
+
try {
|
|
200
|
+
for(var _iterator = references[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
201
|
+
var next = _step.value;
|
|
202
|
+
visit(next);
|
|
203
|
+
}
|
|
204
|
+
} catch (err) {
|
|
205
|
+
_didIteratorError = true;
|
|
206
|
+
_iteratorError = err;
|
|
207
|
+
} finally{
|
|
208
|
+
try {
|
|
209
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
210
|
+
_iterator.return();
|
|
211
|
+
}
|
|
212
|
+
} finally{
|
|
213
|
+
if (_didIteratorError) {
|
|
214
|
+
throw _iteratorError;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
active.delete(id);
|
|
219
|
+
visited.add(id);
|
|
220
|
+
};
|
|
221
|
+
tasks.forEach(function(task) {
|
|
222
|
+
return visit(task.id);
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
var byId = new Map(tasks.map(function(task) {
|
|
226
|
+
return [
|
|
227
|
+
task.id,
|
|
228
|
+
task
|
|
229
|
+
];
|
|
230
|
+
}));
|
|
231
|
+
if (byId.size !== tasks.length) throw Error("PROJECT_TASK_DUPLICATE_ID");
|
|
232
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
233
|
+
try {
|
|
234
|
+
for(var _iterator = tasks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
235
|
+
var task = _step.value;
|
|
236
|
+
if (task.estimatedDurationMs != null && (!Number.isFinite(task.estimatedDurationMs) || task.estimatedDurationMs < 0)) {
|
|
237
|
+
throw Error("PROJECT_TASK_DURATION_INVALID: ".concat(task.id));
|
|
238
|
+
}
|
|
239
|
+
for(var _i = 0, _iter = [
|
|
240
|
+
task.plannedStartAt,
|
|
241
|
+
task.plannedEndAt
|
|
242
|
+
]; _i < _iter.length; _i++){
|
|
243
|
+
var date = _iter[_i];
|
|
244
|
+
if (date != null && !Number.isFinite(Date.parse(date))) throw Error("PROJECT_TASK_DATE_INVALID: ".concat(task.id));
|
|
245
|
+
}
|
|
246
|
+
if (task.plannedStartAt && task.plannedEndAt && Date.parse(task.plannedEndAt) < Date.parse(task.plannedStartAt)) {
|
|
247
|
+
throw Error("PROJECT_TASK_DATE_ORDER: ".concat(task.id));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
} catch (err) {
|
|
251
|
+
_didIteratorError = true;
|
|
252
|
+
_iteratorError = err;
|
|
253
|
+
} finally{
|
|
254
|
+
try {
|
|
255
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
256
|
+
_iterator.return();
|
|
257
|
+
}
|
|
258
|
+
} finally{
|
|
259
|
+
if (_didIteratorError) {
|
|
260
|
+
throw _iteratorError;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
for(var _i1 = 0, _iter1 = [
|
|
265
|
+
"tree",
|
|
266
|
+
"dependency",
|
|
267
|
+
"schedule"
|
|
268
|
+
]; _i1 < _iter1.length; _i1++)_loop(_i1, _iter1);
|
|
269
|
+
}
|
|
270
|
+
/** Unknown estimates stay unknown. Summary rows never contribute another duration. */ function forecastProjectTasks(tasks, changedId) {
|
|
271
|
+
validateProjectTaskGraph(tasks);
|
|
272
|
+
var byId = new Map(tasks.map(function(task) {
|
|
273
|
+
return [
|
|
274
|
+
task.id,
|
|
275
|
+
task
|
|
276
|
+
];
|
|
277
|
+
}));
|
|
278
|
+
var result = new Map();
|
|
279
|
+
var affected = new Set(changedId ? [
|
|
280
|
+
changedId
|
|
281
|
+
] : []);
|
|
282
|
+
var visiting = new Set();
|
|
283
|
+
var calculate = function(task) {
|
|
284
|
+
var previous = result.get(task.id);
|
|
285
|
+
if (previous) return previous;
|
|
286
|
+
if (visiting.has(task.id)) throw Error("PROJECT_TASK_SCHEDULE_CYCLE: ".concat(task.id));
|
|
287
|
+
visiting.add(task.id);
|
|
288
|
+
var predecessors = schedulePredecessors(task, byId).map(function(id) {
|
|
289
|
+
return calculate(byId.get(id));
|
|
290
|
+
});
|
|
291
|
+
if (predecessors.some(function(item) {
|
|
292
|
+
return affected.has(item.taskId);
|
|
293
|
+
})) affected.add(task.id);
|
|
294
|
+
var startAt = null, endAt = null;
|
|
295
|
+
if (task.kind === "summary") {
|
|
296
|
+
var _Math, _Math1;
|
|
297
|
+
var children = tasks.filter(function(child) {
|
|
298
|
+
return child.parentTaskId === task.id;
|
|
299
|
+
}).map(calculate);
|
|
300
|
+
var starts = children.flatMap(function(child) {
|
|
301
|
+
return child.startAt ? [
|
|
302
|
+
Date.parse(child.startAt)
|
|
303
|
+
] : [];
|
|
304
|
+
});
|
|
305
|
+
startAt = starts.length ? new Date((_Math = Math).min.apply(_Math, _to_consumable_array$6(starts))).toISOString() : null;
|
|
306
|
+
endAt = children.length && children.every(function(child) {
|
|
307
|
+
return child.endAt;
|
|
308
|
+
}) ? new Date((_Math1 = Math).max.apply(_Math1, _to_consumable_array$6(children.map(function(child) {
|
|
309
|
+
return Date.parse(child.endAt);
|
|
310
|
+
})))).toISOString() : null;
|
|
311
|
+
if (children.some(function(child) {
|
|
312
|
+
return affected.has(child.taskId);
|
|
313
|
+
})) affected.add(task.id);
|
|
314
|
+
} else if (task.actualEndAt && task.status === "done") {
|
|
315
|
+
startAt = task.actualStartAt;
|
|
316
|
+
endAt = task.actualEndAt;
|
|
317
|
+
} else {
|
|
318
|
+
var _Math2;
|
|
319
|
+
var _task_estimatedDurationMs;
|
|
320
|
+
var duration = (_task_estimatedDurationMs = task.estimatedDurationMs) !== null && _task_estimatedDurationMs !== void 0 ? _task_estimatedDurationMs : task.plannedStartAt && task.plannedEndAt ? Date.parse(task.plannedEndAt) - Date.parse(task.plannedStartAt) : task.kind === "milestone" ? 0 : null;
|
|
321
|
+
var _task_actualStartAt;
|
|
322
|
+
var start = (_task_actualStartAt = task.actualStartAt) !== null && _task_actualStartAt !== void 0 ? _task_actualStartAt : task.plannedStartAt;
|
|
323
|
+
var predecessorEnds = predecessors.map(function(item) {
|
|
324
|
+
return item.endAt ? Date.parse(item.endAt) : null;
|
|
325
|
+
});
|
|
326
|
+
var earliest = task.actualStartAt ? Date.parse(task.actualStartAt) : predecessorEnds.some(function(value) {
|
|
327
|
+
return value === null;
|
|
328
|
+
}) ? null : start !== null || predecessorEnds.length ? (_Math2 = Math).max.apply(_Math2, _to_consumable_array$6(start !== null ? [
|
|
329
|
+
Date.parse(start)
|
|
330
|
+
] : []).concat(_to_consumable_array$6(predecessorEnds.map(function(value) {
|
|
331
|
+
return value;
|
|
332
|
+
})))) : null;
|
|
333
|
+
startAt = earliest === null ? null : new Date(earliest).toISOString();
|
|
334
|
+
// A blocked task has no known release date. Show affected successors without inventing one.
|
|
335
|
+
endAt = earliest === null || duration === null || [
|
|
336
|
+
"blocked",
|
|
337
|
+
"paused",
|
|
338
|
+
"cancelled"
|
|
339
|
+
].includes(task.status) || Boolean(task.actualEndAt && task.status !== "done") ? null : new Date(earliest + duration).toISOString();
|
|
340
|
+
}
|
|
341
|
+
var forecast = {
|
|
342
|
+
taskId: task.id,
|
|
343
|
+
startAt: startAt,
|
|
344
|
+
endAt: endAt,
|
|
345
|
+
affected: affected.has(task.id),
|
|
346
|
+
critical: false
|
|
347
|
+
};
|
|
348
|
+
result.set(task.id, forecast);
|
|
349
|
+
visiting.delete(task.id);
|
|
350
|
+
return forecast;
|
|
351
|
+
};
|
|
352
|
+
tasks.forEach(calculate);
|
|
353
|
+
// Critical highlighting is only meaningful when every executable task has an estimate.
|
|
354
|
+
var leaves = tasks.filter(function(task) {
|
|
355
|
+
return task.kind !== "summary";
|
|
356
|
+
});
|
|
357
|
+
if (leaves.length && leaves.every(function(task) {
|
|
358
|
+
return result.get(task.id).endAt !== null;
|
|
359
|
+
})) {
|
|
360
|
+
var _Math;
|
|
361
|
+
var finish = (_Math = Math).max.apply(_Math, _to_consumable_array$6(leaves.map(function(task) {
|
|
362
|
+
return Date.parse(result.get(task.id).endAt);
|
|
363
|
+
})));
|
|
364
|
+
var mark = function(id) {
|
|
365
|
+
var item = result.get(id);
|
|
366
|
+
if (item.critical) return;
|
|
367
|
+
if (byId.get(id).kind === "summary") {
|
|
368
|
+
tasks.filter(function(child) {
|
|
369
|
+
var _result_get;
|
|
370
|
+
return child.parentTaskId === id && ((_result_get = result.get(child.id)) === null || _result_get === void 0 ? void 0 : _result_get.endAt) === item.endAt;
|
|
371
|
+
}).forEach(function(child) {
|
|
372
|
+
return mark(child.id);
|
|
373
|
+
});
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
item.critical = true;
|
|
377
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
378
|
+
try {
|
|
379
|
+
for(var _iterator = schedulePredecessors(byId.get(id), byId)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
380
|
+
var parent = _step.value;
|
|
381
|
+
var endAt = result.get(parent).endAt;
|
|
382
|
+
if (endAt && item.startAt && Date.parse(endAt) === Date.parse(item.startAt)) mark(parent);
|
|
383
|
+
}
|
|
384
|
+
} catch (err) {
|
|
385
|
+
_didIteratorError = true;
|
|
386
|
+
_iteratorError = err;
|
|
387
|
+
} finally{
|
|
388
|
+
try {
|
|
389
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
390
|
+
_iterator.return();
|
|
391
|
+
}
|
|
392
|
+
} finally{
|
|
393
|
+
if (_didIteratorError) {
|
|
394
|
+
throw _iteratorError;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
leaves.filter(function(task) {
|
|
400
|
+
return Date.parse(result.get(task.id).endAt) === finish;
|
|
401
|
+
}).forEach(function(task) {
|
|
402
|
+
return mark(task.id);
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
return tasks.map(function(task) {
|
|
406
|
+
return result.get(task.id);
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function _instanceof$2(left, right) {
|
|
141
411
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
142
412
|
return !!right[Symbol.hasInstance](left);
|
|
143
413
|
} else {
|
|
@@ -151,7 +421,7 @@ function nonNullable(value) {
|
|
|
151
421
|
return value != null;
|
|
152
422
|
}
|
|
153
423
|
function isString(value) {
|
|
154
|
-
return typeof value === "string" || _instanceof$
|
|
424
|
+
return typeof value === "string" || _instanceof$2(value, String);
|
|
155
425
|
}
|
|
156
426
|
function isBlank(value) {
|
|
157
427
|
return isNil$1(value) || isString(value) && !value.trim();
|
|
@@ -1028,6 +1298,163 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
1028
1298
|
OrganizationDemoNetworkEnum["aliyun"] = "aliyun";
|
|
1029
1299
|
})(exports.OrganizationDemoNetworkEnum || (exports.OrganizationDemoNetworkEnum = {}));
|
|
1030
1300
|
|
|
1301
|
+
function _define_property$e(obj, key, value) {
|
|
1302
|
+
if (key in obj) {
|
|
1303
|
+
Object.defineProperty(obj, key, {
|
|
1304
|
+
value: value,
|
|
1305
|
+
enumerable: true,
|
|
1306
|
+
configurable: true,
|
|
1307
|
+
writable: true
|
|
1308
|
+
});
|
|
1309
|
+
} else {
|
|
1310
|
+
obj[key] = value;
|
|
1311
|
+
}
|
|
1312
|
+
return obj;
|
|
1313
|
+
}
|
|
1314
|
+
function _object_spread$d(target) {
|
|
1315
|
+
for(var i = 1; i < arguments.length; i++){
|
|
1316
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
1317
|
+
var ownKeys = Object.keys(source);
|
|
1318
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1319
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1320
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1321
|
+
}));
|
|
1322
|
+
}
|
|
1323
|
+
ownKeys.forEach(function(key) {
|
|
1324
|
+
_define_property$e(target, key, source[key]);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
return target;
|
|
1328
|
+
}
|
|
1329
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
1330
|
+
var keys = Object.keys(object);
|
|
1331
|
+
if (Object.getOwnPropertySymbols) {
|
|
1332
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
1333
|
+
keys.push.apply(keys, symbols);
|
|
1334
|
+
}
|
|
1335
|
+
return keys;
|
|
1336
|
+
}
|
|
1337
|
+
function _object_spread_props$8(target, source) {
|
|
1338
|
+
source = source != null ? source : {};
|
|
1339
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
1340
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1341
|
+
} else {
|
|
1342
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
1343
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1346
|
+
return target;
|
|
1347
|
+
}
|
|
1348
|
+
function _type_of(obj) {
|
|
1349
|
+
"@swc/helpers - typeof";
|
|
1350
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1351
|
+
}
|
|
1352
|
+
function isObject(value) {
|
|
1353
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1354
|
+
}
|
|
1355
|
+
function isStringList(value) {
|
|
1356
|
+
return Array.isArray(value) && value.every(function(item) {
|
|
1357
|
+
return typeof item === "string";
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
function parseSelectionSet(value) {
|
|
1361
|
+
if (!isObject(value)) return null;
|
|
1362
|
+
var skills = "skills" in value ? value.skills : undefined;
|
|
1363
|
+
var plugins = "plugins" in value ? value.plugins : undefined;
|
|
1364
|
+
var subAgents = "subAgents" in value ? value.subAgents : undefined;
|
|
1365
|
+
var connectors = "connectors" in value ? value.connectors : undefined;
|
|
1366
|
+
if (skills !== undefined && (!isObject(skills) || !("ids" in skills) || !isStringList(skills.ids) || "workspaceId" in skills && skills.workspaceId !== undefined && typeof skills.workspaceId !== "string")) return null;
|
|
1367
|
+
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1368
|
+
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1369
|
+
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1370
|
+
return _object_spread$d(_object_spread_props$8(_object_spread$d({}, value), {
|
|
1371
|
+
skills: skills === undefined ? {
|
|
1372
|
+
ids: []
|
|
1373
|
+
} : skills,
|
|
1374
|
+
plugins: plugins === undefined ? {
|
|
1375
|
+
nodeKeys: []
|
|
1376
|
+
} : plugins
|
|
1377
|
+
}), subAgents === undefined ? {} : {
|
|
1378
|
+
subAgents: subAgents
|
|
1379
|
+
}, connectors === undefined ? {} : {
|
|
1380
|
+
connectors: connectors
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
function parsePromptCapabilitySelection(value) {
|
|
1384
|
+
if (!isObject(value) || !("mode" in value) || value.mode !== "allowlist") return null;
|
|
1385
|
+
if ("inheritUnselected" in value && value.inheritUnselected !== undefined && typeof value.inheritUnselected !== "boolean") return null;
|
|
1386
|
+
var selection = parseSelectionSet(value);
|
|
1387
|
+
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1388
|
+
if (!selection || recommended === null) return null;
|
|
1389
|
+
return _object_spread$d(_object_spread_props$8(_object_spread$d({}, selection), {
|
|
1390
|
+
mode: "allowlist"
|
|
1391
|
+
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1392
|
+
inheritUnselected: value.inheritUnselected
|
|
1393
|
+
} : {}, recommended ? {
|
|
1394
|
+
recommended: recommended
|
|
1395
|
+
} : {});
|
|
1396
|
+
}
|
|
1397
|
+
function isScopedPromptCapabilityConfig(value) {
|
|
1398
|
+
return isObject(value) && "type" in value && value.type === "expert_scoped_capabilities";
|
|
1399
|
+
}
|
|
1400
|
+
function parsePromptCapabilityConfig(value) {
|
|
1401
|
+
if (!isObject(value) || !("type" in value) || value.type !== "expert_scoped_capabilities" || !("version" in value) || value.version !== 1 || !("experts" in value) || !Array.isArray(value.experts)) return null;
|
|
1402
|
+
var defaults = "defaults" in value && value.defaults != null ? parsePromptCapabilitySelection(value.defaults) : null;
|
|
1403
|
+
if ("defaults" in value && value.defaults != null && !defaults) return null;
|
|
1404
|
+
var experts = [];
|
|
1405
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1406
|
+
try {
|
|
1407
|
+
var _loop = function() {
|
|
1408
|
+
var entry = _step.value;
|
|
1409
|
+
if (!isObject(entry) || !("xpertId" in entry) || typeof entry.xpertId !== "string" || !entry.xpertId.trim() || !("selection" in entry) || experts.some(function(item) {
|
|
1410
|
+
return item.xpertId === entry.xpertId;
|
|
1411
|
+
})) return {
|
|
1412
|
+
v: null
|
|
1413
|
+
};
|
|
1414
|
+
var selection = entry.selection === null ? null : parsePromptCapabilitySelection(entry.selection);
|
|
1415
|
+
if (entry.selection !== null && !selection) return {
|
|
1416
|
+
v: null
|
|
1417
|
+
};
|
|
1418
|
+
experts.push({
|
|
1419
|
+
xpertId: entry.xpertId,
|
|
1420
|
+
selection: selection
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1423
|
+
for(var _iterator = value.experts[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
1424
|
+
var _ret = _loop();
|
|
1425
|
+
if (_type_of(_ret) === "object") return _ret.v;
|
|
1426
|
+
}
|
|
1427
|
+
} catch (err) {
|
|
1428
|
+
_didIteratorError = true;
|
|
1429
|
+
_iteratorError = err;
|
|
1430
|
+
} finally{
|
|
1431
|
+
try {
|
|
1432
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
1433
|
+
_iterator.return();
|
|
1434
|
+
}
|
|
1435
|
+
} finally{
|
|
1436
|
+
if (_didIteratorError) {
|
|
1437
|
+
throw _iteratorError;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return _object_spread_props$8(_object_spread$d({}, value), {
|
|
1442
|
+
type: "expert_scoped_capabilities",
|
|
1443
|
+
version: 1,
|
|
1444
|
+
defaults: defaults,
|
|
1445
|
+
experts: experts
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
function resolvePromptWorkflowCapabilities(value, xpertId) {
|
|
1449
|
+
if (!isScopedPromptCapabilityConfig(value)) return value;
|
|
1450
|
+
var config = parsePromptCapabilityConfig(value);
|
|
1451
|
+
if (!config) return null;
|
|
1452
|
+
var entry = config.experts.find(function(item) {
|
|
1453
|
+
return item.xpertId === xpertId;
|
|
1454
|
+
});
|
|
1455
|
+
return entry ? entry.selection : config.defaults;
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1031
1458
|
/**
|
|
1032
1459
|
* Business roles for AI copilot (commands or contexts)
|
|
1033
1460
|
*/ exports.AiBusinessRole = void 0;
|
|
@@ -1143,7 +1570,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
1143
1570
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1144
1571
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
1145
1572
|
|
|
1146
|
-
function _define_property$
|
|
1573
|
+
function _define_property$d(obj, key, value) {
|
|
1147
1574
|
if (key in obj) {
|
|
1148
1575
|
Object.defineProperty(obj, key, {
|
|
1149
1576
|
value: value,
|
|
@@ -1156,14 +1583,14 @@ function _define_property$c(obj, key, value) {
|
|
|
1156
1583
|
}
|
|
1157
1584
|
return obj;
|
|
1158
1585
|
}
|
|
1159
|
-
function _instanceof(left, right) {
|
|
1586
|
+
function _instanceof$1(left, right) {
|
|
1160
1587
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
1161
1588
|
return !!right[Symbol.hasInstance](left);
|
|
1162
1589
|
} else {
|
|
1163
1590
|
return left instanceof right;
|
|
1164
1591
|
}
|
|
1165
1592
|
}
|
|
1166
|
-
function _object_spread$
|
|
1593
|
+
function _object_spread$c(target) {
|
|
1167
1594
|
for(var i = 1; i < arguments.length; i++){
|
|
1168
1595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1169
1596
|
var ownKeys = Object.keys(source);
|
|
@@ -1173,7 +1600,7 @@ function _object_spread$b(target) {
|
|
|
1173
1600
|
}));
|
|
1174
1601
|
}
|
|
1175
1602
|
ownKeys.forEach(function(key) {
|
|
1176
|
-
_define_property$
|
|
1603
|
+
_define_property$d(target, key, source[key]);
|
|
1177
1604
|
});
|
|
1178
1605
|
}
|
|
1179
1606
|
return target;
|
|
@@ -1184,12 +1611,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
1184
1611
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
1185
1612
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
1186
1613
|
function createConversationTitleSummaryEvent(event) {
|
|
1187
|
-
return _object_spread$
|
|
1614
|
+
return _object_spread$c({
|
|
1188
1615
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1189
1616
|
}, event);
|
|
1190
1617
|
}
|
|
1191
1618
|
function createFollowUpConsumedEvent(event) {
|
|
1192
|
-
return _object_spread$
|
|
1619
|
+
return _object_spread$c({
|
|
1193
1620
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1194
1621
|
}, event);
|
|
1195
1622
|
}
|
|
@@ -1212,7 +1639,7 @@ function createThreadGoalClearedEvent(event) {
|
|
|
1212
1639
|
};
|
|
1213
1640
|
}
|
|
1214
1641
|
function toIsoString(value) {
|
|
1215
|
-
if (_instanceof(value, Date)) {
|
|
1642
|
+
if (_instanceof$1(value, Date)) {
|
|
1216
1643
|
return value.toISOString();
|
|
1217
1644
|
}
|
|
1218
1645
|
if (typeof value === "string") {
|
|
@@ -1224,18 +1651,18 @@ function toIsoString(value) {
|
|
|
1224
1651
|
return new Date().toISOString();
|
|
1225
1652
|
}
|
|
1226
1653
|
|
|
1227
|
-
function _array_like_to_array$
|
|
1654
|
+
function _array_like_to_array$c(arr, len) {
|
|
1228
1655
|
if (len == null || len > arr.length) len = arr.length;
|
|
1229
1656
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1230
1657
|
return arr2;
|
|
1231
1658
|
}
|
|
1232
|
-
function _array_with_holes$
|
|
1659
|
+
function _array_with_holes$8(arr) {
|
|
1233
1660
|
if (Array.isArray(arr)) return arr;
|
|
1234
1661
|
}
|
|
1235
|
-
function _array_without_holes$
|
|
1236
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1662
|
+
function _array_without_holes$5(arr) {
|
|
1663
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
1237
1664
|
}
|
|
1238
|
-
function _define_property$
|
|
1665
|
+
function _define_property$c(obj, key, value) {
|
|
1239
1666
|
if (key in obj) {
|
|
1240
1667
|
Object.defineProperty(obj, key, {
|
|
1241
1668
|
value: value,
|
|
@@ -1248,10 +1675,10 @@ function _define_property$b(obj, key, value) {
|
|
|
1248
1675
|
}
|
|
1249
1676
|
return obj;
|
|
1250
1677
|
}
|
|
1251
|
-
function _iterable_to_array$
|
|
1678
|
+
function _iterable_to_array$7(iter) {
|
|
1252
1679
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1253
1680
|
}
|
|
1254
|
-
function _iterable_to_array_limit$
|
|
1681
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
1255
1682
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1256
1683
|
if (_i == null) return;
|
|
1257
1684
|
var _arr = [];
|
|
@@ -1275,13 +1702,13 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
1275
1702
|
}
|
|
1276
1703
|
return _arr;
|
|
1277
1704
|
}
|
|
1278
|
-
function _non_iterable_rest$
|
|
1705
|
+
function _non_iterable_rest$8() {
|
|
1279
1706
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1280
1707
|
}
|
|
1281
|
-
function _non_iterable_spread$
|
|
1708
|
+
function _non_iterable_spread$5() {
|
|
1282
1709
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1283
1710
|
}
|
|
1284
|
-
function _object_spread$
|
|
1711
|
+
function _object_spread$b(target) {
|
|
1285
1712
|
for(var i = 1; i < arguments.length; i++){
|
|
1286
1713
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1287
1714
|
var ownKeys = Object.keys(source);
|
|
@@ -1291,7 +1718,7 @@ function _object_spread$a(target) {
|
|
|
1291
1718
|
}));
|
|
1292
1719
|
}
|
|
1293
1720
|
ownKeys.forEach(function(key) {
|
|
1294
|
-
_define_property$
|
|
1721
|
+
_define_property$c(target, key, source[key]);
|
|
1295
1722
|
});
|
|
1296
1723
|
}
|
|
1297
1724
|
return target;
|
|
@@ -1315,19 +1742,19 @@ function _object_spread_props$7(target, source) {
|
|
|
1315
1742
|
}
|
|
1316
1743
|
return target;
|
|
1317
1744
|
}
|
|
1318
|
-
function _sliced_to_array$
|
|
1319
|
-
return _array_with_holes$
|
|
1745
|
+
function _sliced_to_array$6(arr, i) {
|
|
1746
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$8();
|
|
1320
1747
|
}
|
|
1321
|
-
function _to_consumable_array$
|
|
1322
|
-
return _array_without_holes$
|
|
1748
|
+
function _to_consumable_array$5(arr) {
|
|
1749
|
+
return _array_without_holes$5(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$5();
|
|
1323
1750
|
}
|
|
1324
|
-
function _unsupported_iterable_to_array$
|
|
1751
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
1325
1752
|
if (!o) return;
|
|
1326
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1753
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
1327
1754
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1328
1755
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1329
1756
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1330
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1757
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
1331
1758
|
}
|
|
1332
1759
|
exports.AssistantCode = void 0;
|
|
1333
1760
|
(function(AssistantCode) {
|
|
@@ -1384,7 +1811,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1384
1811
|
}
|
|
1385
1812
|
var _value_toolsets;
|
|
1386
1813
|
var toolsets = Object.entries((_value_toolsets = value.toolsets) !== null && _value_toolsets !== void 0 ? _value_toolsets : {}).reduce(function(acc, param) {
|
|
1387
|
-
var _param = _sliced_to_array$
|
|
1814
|
+
var _param = _sliced_to_array$6(param, 2), key = _param[0], item = _param[1];
|
|
1388
1815
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1389
1816
|
var toolsetName = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetName);
|
|
1390
1817
|
if (!nodeKey || !toolsetName) {
|
|
@@ -1399,7 +1826,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1399
1826
|
}, {});
|
|
1400
1827
|
var _value_middlewares;
|
|
1401
1828
|
var middlewares = Object.entries((_value_middlewares = value.middlewares) !== null && _value_middlewares !== void 0 ? _value_middlewares : {}).reduce(function(acc, param) {
|
|
1402
|
-
var _param = _sliced_to_array$
|
|
1829
|
+
var _param = _sliced_to_array$6(param, 2), key = _param[0], item = _param[1];
|
|
1403
1830
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1404
1831
|
var provider = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.provider);
|
|
1405
1832
|
if (!nodeKey || !provider) {
|
|
@@ -1413,7 +1840,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1413
1840
|
}, {});
|
|
1414
1841
|
var _value_skills;
|
|
1415
1842
|
var skills = Object.entries((_value_skills = value.skills) !== null && _value_skills !== void 0 ? _value_skills : {}).reduce(function(acc, param) {
|
|
1416
|
-
var _param = _sliced_to_array$
|
|
1843
|
+
var _param = _sliced_to_array$6(param, 2), key = _param[0], item = _param[1];
|
|
1417
1844
|
var workspaceKey = normalizeAssistantBindingPreferenceKey(key);
|
|
1418
1845
|
var workspaceId = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.workspaceId) || workspaceKey;
|
|
1419
1846
|
if (!workspaceKey || !workspaceId) {
|
|
@@ -1428,7 +1855,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1428
1855
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1429
1856
|
return null;
|
|
1430
1857
|
}
|
|
1431
|
-
return _object_spread$
|
|
1858
|
+
return _object_spread$b({
|
|
1432
1859
|
version: 1
|
|
1433
1860
|
}, Object.keys(toolsets).length ? {
|
|
1434
1861
|
toolsets: toolsets
|
|
@@ -1503,11 +1930,11 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1503
1930
|
var disabledTools = getAssistantBindingDisabledTools(normalizedPreferences, sourceType, normalizedNodeKey);
|
|
1504
1931
|
var nextDisabledTools = enabled ? disabledTools.filter(function(item) {
|
|
1505
1932
|
return item !== normalizedToolName;
|
|
1506
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
1933
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$5(disabledTools).concat([
|
|
1507
1934
|
normalizedToolName
|
|
1508
1935
|
]));
|
|
1509
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
1510
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
1936
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$b({}, normalizedPreferences.toolsets) : undefined;
|
|
1937
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$b({}, normalizedPreferences.middlewares) : undefined;
|
|
1511
1938
|
if (sourceType === "toolset") {
|
|
1512
1939
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1513
1940
|
if (!toolsetName) {
|
|
@@ -1523,14 +1950,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1523
1950
|
} else {
|
|
1524
1951
|
delete nextToolsets[normalizedNodeKey];
|
|
1525
1952
|
}
|
|
1526
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1953
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$b({
|
|
1527
1954
|
version: 1
|
|
1528
1955
|
}, Object.keys(nextToolsets).length ? {
|
|
1529
1956
|
toolsets: nextToolsets
|
|
1530
1957
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1531
1958
|
middlewares: middlewares
|
|
1532
1959
|
} : {}, normalizedPreferences.skills ? {
|
|
1533
|
-
skills: _object_spread$
|
|
1960
|
+
skills: _object_spread$b({}, normalizedPreferences.skills)
|
|
1534
1961
|
} : {}));
|
|
1535
1962
|
}
|
|
1536
1963
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -1546,14 +1973,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1546
1973
|
} else {
|
|
1547
1974
|
delete nextMiddlewares[normalizedNodeKey];
|
|
1548
1975
|
}
|
|
1549
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1976
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$b({
|
|
1550
1977
|
version: 1
|
|
1551
1978
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
1552
1979
|
toolsets: toolsets
|
|
1553
1980
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1554
1981
|
middlewares: nextMiddlewares
|
|
1555
1982
|
} : {}, normalizedPreferences.skills ? {
|
|
1556
|
-
skills: _object_spread$
|
|
1983
|
+
skills: _object_spread$b({}, normalizedPreferences.skills)
|
|
1557
1984
|
} : {}));
|
|
1558
1985
|
}
|
|
1559
1986
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -1568,10 +1995,10 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
1568
1995
|
var disabledSkillIds = getAssistantBindingDisabledSkillIds(normalizedPreferences, normalizedWorkspaceId);
|
|
1569
1996
|
var nextDisabledSkillIds = enabled ? disabledSkillIds.filter(function(item) {
|
|
1570
1997
|
return item !== normalizedSkillId;
|
|
1571
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
1998
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$5(disabledSkillIds).concat([
|
|
1572
1999
|
normalizedSkillId
|
|
1573
2000
|
]));
|
|
1574
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2001
|
+
var skills = normalizedPreferences.skills ? _object_spread$b({}, normalizedPreferences.skills) : {};
|
|
1575
2002
|
if (nextDisabledSkillIds.length) {
|
|
1576
2003
|
skills[normalizedWorkspaceId] = {
|
|
1577
2004
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -1580,12 +2007,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
1580
2007
|
} else {
|
|
1581
2008
|
delete skills[normalizedWorkspaceId];
|
|
1582
2009
|
}
|
|
1583
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2010
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$b({
|
|
1584
2011
|
version: 1
|
|
1585
2012
|
}, normalizedPreferences.toolsets ? {
|
|
1586
|
-
toolsets: _object_spread$
|
|
2013
|
+
toolsets: _object_spread$b({}, normalizedPreferences.toolsets)
|
|
1587
2014
|
} : {}, normalizedPreferences.middlewares ? {
|
|
1588
|
-
middlewares: _object_spread$
|
|
2015
|
+
middlewares: _object_spread$b({}, normalizedPreferences.middlewares)
|
|
1589
2016
|
} : {}, Object.keys(skills).length ? {
|
|
1590
2017
|
skills: skills
|
|
1591
2018
|
} : {}));
|
|
@@ -1603,14 +2030,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
1603
2030
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
1604
2031
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
1605
2032
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
1606
|
-
return _object_spread_props$7(_object_spread$
|
|
2033
|
+
return _object_spread_props$7(_object_spread$b({
|
|
1607
2034
|
version: 1
|
|
1608
2035
|
}, normalizedPreferences.toolsets ? {
|
|
1609
|
-
toolsets: _object_spread$
|
|
2036
|
+
toolsets: _object_spread$b({}, normalizedPreferences.toolsets)
|
|
1610
2037
|
} : {}, normalizedPreferences.middlewares ? {
|
|
1611
|
-
middlewares: _object_spread$
|
|
2038
|
+
middlewares: _object_spread$b({}, normalizedPreferences.middlewares)
|
|
1612
2039
|
} : {}), {
|
|
1613
|
-
skills: _object_spread_props$7(_object_spread$
|
|
2040
|
+
skills: _object_spread_props$7(_object_spread$b({}, currentSkills), _define_property$c({}, normalizedWorkspaceId, {
|
|
1614
2041
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
1615
2042
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
1616
2043
|
}))
|
|
@@ -1629,9 +2056,81 @@ function isSystemManagedAssistant(code) {
|
|
|
1629
2056
|
return getAssistantManagement(code) === "system";
|
|
1630
2057
|
}
|
|
1631
2058
|
|
|
2059
|
+
// Shared by Cloud and Desktop: activity changes must not move assistant entries.
|
|
2060
|
+
function _array_like_to_array$b(arr, len) {
|
|
2061
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2062
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2063
|
+
return arr2;
|
|
2064
|
+
}
|
|
2065
|
+
function _array_without_holes$4(arr) {
|
|
2066
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
2067
|
+
}
|
|
2068
|
+
function _instanceof(left, right) {
|
|
2069
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
2070
|
+
return !!right[Symbol.hasInstance](left);
|
|
2071
|
+
} else {
|
|
2072
|
+
return left instanceof right;
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
function _iterable_to_array$6(iter) {
|
|
2076
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2077
|
+
}
|
|
2078
|
+
function _non_iterable_spread$4() {
|
|
2079
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2080
|
+
}
|
|
2081
|
+
function _to_consumable_array$4(arr) {
|
|
2082
|
+
return _array_without_holes$4(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$4();
|
|
2083
|
+
}
|
|
2084
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
2085
|
+
if (!o) return;
|
|
2086
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
2087
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2088
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2089
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2090
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
2091
|
+
}
|
|
2092
|
+
function orderAssistantXperts(items) {
|
|
2093
|
+
var orderedIds = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
2094
|
+
var itemById = new Map(items.filter(function(item) {
|
|
2095
|
+
return typeof item.id === "string" && !!item.id.trim();
|
|
2096
|
+
}).map(function(item) {
|
|
2097
|
+
return [
|
|
2098
|
+
item.id,
|
|
2099
|
+
item
|
|
2100
|
+
];
|
|
2101
|
+
}));
|
|
2102
|
+
var orderedIdSet = new Set(orderedIds);
|
|
2103
|
+
var unorderedItems = items.map(function(item, index) {
|
|
2104
|
+
return {
|
|
2105
|
+
item: item,
|
|
2106
|
+
index: index
|
|
2107
|
+
};
|
|
2108
|
+
}).filter(function(param) {
|
|
2109
|
+
var item = param.item;
|
|
2110
|
+
return !item.id || !orderedIdSet.has(item.id);
|
|
2111
|
+
}).sort(function(left, right) {
|
|
2112
|
+
var leftCreatedAt = createdAtTimestamp(left.item);
|
|
2113
|
+
var rightCreatedAt = createdAtTimestamp(right.item);
|
|
2114
|
+
return leftCreatedAt === rightCreatedAt ? left.index - right.index : rightCreatedAt > leftCreatedAt ? 1 : -1;
|
|
2115
|
+
}).map(function(param) {
|
|
2116
|
+
var item = param.item;
|
|
2117
|
+
return item;
|
|
2118
|
+
});
|
|
2119
|
+
return _to_consumable_array$4(unorderedItems).concat(_to_consumable_array$4(orderedIds.map(function(id) {
|
|
2120
|
+
return itemById.get(id);
|
|
2121
|
+
}).filter(function(item) {
|
|
2122
|
+
return !!item;
|
|
2123
|
+
})));
|
|
2124
|
+
}
|
|
2125
|
+
function createdAtTimestamp(item) {
|
|
2126
|
+
var value = item.createdAt;
|
|
2127
|
+
var timestamp = _instanceof(value, Date) ? value.getTime() : typeof value === "string" ? Date.parse(value) : Number.NaN;
|
|
2128
|
+
return Number.isNaN(timestamp) ? Number.NEGATIVE_INFINITY : timestamp;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
1632
2131
|
var ASSISTANT_USER_PREFERENCES_VERSION = 1;
|
|
1633
2132
|
|
|
1634
|
-
function _define_property$
|
|
2133
|
+
function _define_property$b(obj, key, value) {
|
|
1635
2134
|
if (key in obj) {
|
|
1636
2135
|
Object.defineProperty(obj, key, {
|
|
1637
2136
|
value: value,
|
|
@@ -1644,7 +2143,7 @@ function _define_property$a(obj, key, value) {
|
|
|
1644
2143
|
}
|
|
1645
2144
|
return obj;
|
|
1646
2145
|
}
|
|
1647
|
-
function _object_spread$
|
|
2146
|
+
function _object_spread$a(target) {
|
|
1648
2147
|
for(var i = 1; i < arguments.length; i++){
|
|
1649
2148
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1650
2149
|
var ownKeys = Object.keys(source);
|
|
@@ -1654,7 +2153,7 @@ function _object_spread$9(target) {
|
|
|
1654
2153
|
}));
|
|
1655
2154
|
}
|
|
1656
2155
|
ownKeys.forEach(function(key) {
|
|
1657
|
-
_define_property$
|
|
2156
|
+
_define_property$b(target, key, source[key]);
|
|
1658
2157
|
});
|
|
1659
2158
|
}
|
|
1660
2159
|
return target;
|
|
@@ -1786,7 +2285,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
|
|
|
1786
2285
|
var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1787
2286
|
var _config_preserveUnknown;
|
|
1788
2287
|
var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
|
|
1789
|
-
var resolvedOptions = preserveUnknown ? _object_spread$
|
|
2288
|
+
var resolvedOptions = preserveUnknown ? _object_spread$a({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
|
|
1790
2289
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1791
2290
|
try {
|
|
1792
2291
|
for(var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -1841,6 +2340,10 @@ function isRunnableThreadGoalStatus(status) {
|
|
|
1841
2340
|
return status === "active";
|
|
1842
2341
|
}
|
|
1843
2342
|
|
|
2343
|
+
/** Why a derived conversation thread was created. */ var ChatThreadPurpose = {
|
|
2344
|
+
SideChat: "side-chat",
|
|
2345
|
+
MessageEdit: "message-edit"
|
|
2346
|
+
};
|
|
1844
2347
|
/**
|
|
1845
2348
|
* @deprecated use ChatMessageEventTypeEnum
|
|
1846
2349
|
*/ exports.ChatGatewayEvent = void 0;
|
|
@@ -2304,7 +2807,7 @@ function workflowNodeIdentifier(node) {
|
|
|
2304
2807
|
return node.title || node.key;
|
|
2305
2808
|
}
|
|
2306
2809
|
|
|
2307
|
-
function _define_property$
|
|
2810
|
+
function _define_property$a(obj, key, value) {
|
|
2308
2811
|
if (key in obj) {
|
|
2309
2812
|
Object.defineProperty(obj, key, {
|
|
2310
2813
|
value: value,
|
|
@@ -2317,7 +2820,7 @@ function _define_property$9(obj, key, value) {
|
|
|
2317
2820
|
}
|
|
2318
2821
|
return obj;
|
|
2319
2822
|
}
|
|
2320
|
-
function _object_spread$
|
|
2823
|
+
function _object_spread$9(target) {
|
|
2321
2824
|
for(var i = 1; i < arguments.length; i++){
|
|
2322
2825
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2323
2826
|
var ownKeys = Object.keys(source);
|
|
@@ -2327,7 +2830,7 @@ function _object_spread$8(target) {
|
|
|
2327
2830
|
}));
|
|
2328
2831
|
}
|
|
2329
2832
|
ownKeys.forEach(function(key) {
|
|
2330
|
-
_define_property$
|
|
2833
|
+
_define_property$a(target, key, source[key]);
|
|
2331
2834
|
});
|
|
2332
2835
|
}
|
|
2333
2836
|
return target;
|
|
@@ -2378,7 +2881,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
2378
2881
|
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
2379
2882
|
}
|
|
2380
2883
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
2381
|
-
return _object_spread_props$6(_object_spread$
|
|
2884
|
+
return _object_spread_props$6(_object_spread$9({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
2382
2885
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
2383
2886
|
});
|
|
2384
2887
|
}
|
|
@@ -2464,15 +2967,15 @@ var VariableOperations = [
|
|
|
2464
2967
|
}
|
|
2465
2968
|
];
|
|
2466
2969
|
|
|
2467
|
-
function _array_like_to_array$
|
|
2970
|
+
function _array_like_to_array$a(arr, len) {
|
|
2468
2971
|
if (len == null || len > arr.length) len = arr.length;
|
|
2469
2972
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2470
2973
|
return arr2;
|
|
2471
2974
|
}
|
|
2472
|
-
function _array_with_holes$
|
|
2975
|
+
function _array_with_holes$7(arr) {
|
|
2473
2976
|
if (Array.isArray(arr)) return arr;
|
|
2474
2977
|
}
|
|
2475
|
-
function _define_property$
|
|
2978
|
+
function _define_property$9(obj, key, value) {
|
|
2476
2979
|
if (key in obj) {
|
|
2477
2980
|
Object.defineProperty(obj, key, {
|
|
2478
2981
|
value: value,
|
|
@@ -2485,7 +2988,7 @@ function _define_property$8(obj, key, value) {
|
|
|
2485
2988
|
}
|
|
2486
2989
|
return obj;
|
|
2487
2990
|
}
|
|
2488
|
-
function _iterable_to_array_limit$
|
|
2991
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
2489
2992
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2490
2993
|
if (_i == null) return;
|
|
2491
2994
|
var _arr = [];
|
|
@@ -2509,10 +3012,10 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
2509
3012
|
}
|
|
2510
3013
|
return _arr;
|
|
2511
3014
|
}
|
|
2512
|
-
function _non_iterable_rest$
|
|
3015
|
+
function _non_iterable_rest$7() {
|
|
2513
3016
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2514
3017
|
}
|
|
2515
|
-
function _object_spread$
|
|
3018
|
+
function _object_spread$8(target) {
|
|
2516
3019
|
for(var i = 1; i < arguments.length; i++){
|
|
2517
3020
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2518
3021
|
var ownKeys = Object.keys(source);
|
|
@@ -2522,7 +3025,7 @@ function _object_spread$7(target) {
|
|
|
2522
3025
|
}));
|
|
2523
3026
|
}
|
|
2524
3027
|
ownKeys.forEach(function(key) {
|
|
2525
|
-
_define_property$
|
|
3028
|
+
_define_property$9(target, key, source[key]);
|
|
2526
3029
|
});
|
|
2527
3030
|
}
|
|
2528
3031
|
return target;
|
|
@@ -2546,16 +3049,16 @@ function _object_spread_props$5(target, source) {
|
|
|
2546
3049
|
}
|
|
2547
3050
|
return target;
|
|
2548
3051
|
}
|
|
2549
|
-
function _sliced_to_array$
|
|
2550
|
-
return _array_with_holes$
|
|
3052
|
+
function _sliced_to_array$5(arr, i) {
|
|
3053
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$7();
|
|
2551
3054
|
}
|
|
2552
|
-
function _unsupported_iterable_to_array$
|
|
3055
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
2553
3056
|
if (!o) return;
|
|
2554
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3057
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
2555
3058
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2556
3059
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2557
3060
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2558
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3061
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
2559
3062
|
}
|
|
2560
3063
|
/**
|
|
2561
3064
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -2637,10 +3140,10 @@ function configurableStoreNamespace(configurable) {
|
|
|
2637
3140
|
* @param value
|
|
2638
3141
|
* @returns
|
|
2639
3142
|
*/ function setStateVariable(state, varName, value) {
|
|
2640
|
-
var _varName_split = _sliced_to_array$
|
|
3143
|
+
var _varName_split = _sliced_to_array$5(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2641
3144
|
if (variableName) {
|
|
2642
3145
|
var _state_agentChannelName;
|
|
2643
|
-
state[agentChannelName] = _object_spread_props$5(_object_spread$
|
|
3146
|
+
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));
|
|
2644
3147
|
} else {
|
|
2645
3148
|
state[agentChannelName] = value;
|
|
2646
3149
|
}
|
|
@@ -2731,7 +3234,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
2731
3234
|
});
|
|
2732
3235
|
}
|
|
2733
3236
|
|
|
2734
|
-
function _define_property$
|
|
3237
|
+
function _define_property$8(obj, key, value) {
|
|
2735
3238
|
if (key in obj) {
|
|
2736
3239
|
Object.defineProperty(obj, key, {
|
|
2737
3240
|
value: value,
|
|
@@ -2744,7 +3247,7 @@ function _define_property$7(obj, key, value) {
|
|
|
2744
3247
|
}
|
|
2745
3248
|
return obj;
|
|
2746
3249
|
}
|
|
2747
|
-
function _object_spread$
|
|
3250
|
+
function _object_spread$7(target) {
|
|
2748
3251
|
for(var i = 1; i < arguments.length; i++){
|
|
2749
3252
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2750
3253
|
var ownKeys = Object.keys(source);
|
|
@@ -2754,7 +3257,7 @@ function _object_spread$6(target) {
|
|
|
2754
3257
|
}));
|
|
2755
3258
|
}
|
|
2756
3259
|
ownKeys.forEach(function(key) {
|
|
2757
|
-
_define_property$
|
|
3260
|
+
_define_property$8(target, key, source[key]);
|
|
2758
3261
|
});
|
|
2759
3262
|
}
|
|
2760
3263
|
return target;
|
|
@@ -2860,11 +3363,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
2860
3363
|
return candidate === requestedMode;
|
|
2861
3364
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
2862
3365
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
2863
|
-
return _object_spread_props$4(_object_spread$
|
|
3366
|
+
return _object_spread_props$4(_object_spread$7({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
2864
3367
|
mode: mode,
|
|
2865
|
-
fusion: _object_spread_props$4(_object_spread$
|
|
3368
|
+
fusion: _object_spread_props$4(_object_spread$7({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
2866
3369
|
mode: mode === "hybrid" ? "weighted_rrf" : (_recall_fusion_mode = recall === null || recall === void 0 ? void 0 : (_recall_fusion = recall.fusion) === null || _recall_fusion === void 0 ? void 0 : _recall_fusion.mode) !== null && _recall_fusion_mode !== void 0 ? _recall_fusion_mode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion.mode,
|
|
2867
|
-
weights: _object_spread_props$4(_object_spread$
|
|
3370
|
+
weights: _object_spread_props$4(_object_spread$7({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion.weights, (_recall_fusion_weights = recall === null || recall === void 0 ? void 0 : (_recall_fusion1 = recall.fusion) === null || _recall_fusion1 === void 0 ? void 0 : _recall_fusion1.weights) !== null && _recall_fusion_weights !== void 0 ? _recall_fusion_weights : {}), {
|
|
2868
3371
|
graph: 0
|
|
2869
3372
|
})
|
|
2870
3373
|
})
|
|
@@ -2912,13 +3415,13 @@ var _retrieval_recall_contentScope;
|
|
|
2912
3415
|
});
|
|
2913
3416
|
}
|
|
2914
3417
|
|
|
2915
|
-
function _array_like_to_array$
|
|
3418
|
+
function _array_like_to_array$9(arr, len) {
|
|
2916
3419
|
if (len == null || len > arr.length) len = arr.length;
|
|
2917
3420
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2918
3421
|
return arr2;
|
|
2919
3422
|
}
|
|
2920
3423
|
function _array_without_holes$3(arr) {
|
|
2921
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3424
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
2922
3425
|
}
|
|
2923
3426
|
function _iterable_to_array$5(iter) {
|
|
2924
3427
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -2927,15 +3430,15 @@ function _non_iterable_spread$3() {
|
|
|
2927
3430
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2928
3431
|
}
|
|
2929
3432
|
function _to_consumable_array$3(arr) {
|
|
2930
|
-
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
3433
|
+
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
2931
3434
|
}
|
|
2932
|
-
function _unsupported_iterable_to_array$
|
|
3435
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
2933
3436
|
if (!o) return;
|
|
2934
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3437
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
2935
3438
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2936
3439
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2937
3440
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2938
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3441
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
2939
3442
|
}
|
|
2940
3443
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
2941
3444
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
@@ -3025,15 +3528,15 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
3025
3528
|
})));
|
|
3026
3529
|
}
|
|
3027
3530
|
|
|
3028
|
-
function _array_like_to_array$
|
|
3531
|
+
function _array_like_to_array$8(arr, len) {
|
|
3029
3532
|
if (len == null || len > arr.length) len = arr.length;
|
|
3030
3533
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3031
3534
|
return arr2;
|
|
3032
3535
|
}
|
|
3033
3536
|
function _array_without_holes$2(arr) {
|
|
3034
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3537
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
3035
3538
|
}
|
|
3036
|
-
function _define_property$
|
|
3539
|
+
function _define_property$7(obj, key, value) {
|
|
3037
3540
|
if (key in obj) {
|
|
3038
3541
|
Object.defineProperty(obj, key, {
|
|
3039
3542
|
value: value,
|
|
@@ -3052,7 +3555,7 @@ function _iterable_to_array$4(iter) {
|
|
|
3052
3555
|
function _non_iterable_spread$2() {
|
|
3053
3556
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3054
3557
|
}
|
|
3055
|
-
function _object_spread$
|
|
3558
|
+
function _object_spread$6(target) {
|
|
3056
3559
|
for(var i = 1; i < arguments.length; i++){
|
|
3057
3560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3058
3561
|
var ownKeys = Object.keys(source);
|
|
@@ -3062,30 +3565,30 @@ function _object_spread$5(target) {
|
|
|
3062
3565
|
}));
|
|
3063
3566
|
}
|
|
3064
3567
|
ownKeys.forEach(function(key) {
|
|
3065
|
-
_define_property$
|
|
3568
|
+
_define_property$7(target, key, source[key]);
|
|
3066
3569
|
});
|
|
3067
3570
|
}
|
|
3068
3571
|
return target;
|
|
3069
3572
|
}
|
|
3070
3573
|
function _to_consumable_array$2(arr) {
|
|
3071
|
-
return _array_without_holes$2(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
3574
|
+
return _array_without_holes$2(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$8(arr) || _non_iterable_spread$2();
|
|
3072
3575
|
}
|
|
3073
|
-
function _unsupported_iterable_to_array$
|
|
3576
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
3074
3577
|
if (!o) return;
|
|
3075
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3578
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
3076
3579
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3077
3580
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3078
3581
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3079
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3582
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
3080
3583
|
}
|
|
3081
3584
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
3082
3585
|
if (!config) return {};
|
|
3083
|
-
return _object_spread$
|
|
3084
|
-
spreadsheet: _object_spread$
|
|
3586
|
+
return _object_spread$6({}, config.spreadsheet ? {
|
|
3587
|
+
spreadsheet: _object_spread$6({}, config.spreadsheet)
|
|
3085
3588
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
3086
3589
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
3087
3590
|
} : {}, config.questionGeneration ? {
|
|
3088
|
-
questionGeneration: _object_spread$
|
|
3591
|
+
questionGeneration: _object_spread$6({}, config.questionGeneration)
|
|
3089
3592
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
3090
3593
|
chunkLanguageHint: config.chunkLanguageHint
|
|
3091
3594
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -3099,7 +3602,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
3099
3602
|
} : {}, config.textSplitterType ? {
|
|
3100
3603
|
textSplitterType: config.textSplitterType
|
|
3101
3604
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
3102
|
-
textSplitter: _object_spread$
|
|
3605
|
+
textSplitter: _object_spread$6({}, config.chunkSize != null ? {
|
|
3103
3606
|
chunkSize: config.chunkSize
|
|
3104
3607
|
} : {}, config.chunkOverlap != null ? {
|
|
3105
3608
|
chunkOverlap: config.chunkOverlap
|
|
@@ -3111,7 +3614,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
3111
3614
|
} : {}, config.imageUnderstandingType ? {
|
|
3112
3615
|
imageUnderstandingType: config.imageUnderstandingType
|
|
3113
3616
|
} : {}, config.imageUnderstanding ? {
|
|
3114
|
-
imageUnderstanding: _object_spread$
|
|
3617
|
+
imageUnderstanding: _object_spread$6({}, config.imageUnderstanding)
|
|
3115
3618
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
3116
3619
|
}
|
|
3117
3620
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -3176,7 +3679,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
3176
3679
|
return letterStartSUID("KnowledgeBase_");
|
|
3177
3680
|
}
|
|
3178
3681
|
|
|
3179
|
-
function _define_property$
|
|
3682
|
+
function _define_property$6(obj, key, value) {
|
|
3180
3683
|
if (key in obj) {
|
|
3181
3684
|
Object.defineProperty(obj, key, {
|
|
3182
3685
|
value: value,
|
|
@@ -3189,7 +3692,7 @@ function _define_property$5(obj, key, value) {
|
|
|
3189
3692
|
}
|
|
3190
3693
|
return obj;
|
|
3191
3694
|
}
|
|
3192
|
-
function _object_spread$
|
|
3695
|
+
function _object_spread$5(target) {
|
|
3193
3696
|
for(var i = 1; i < arguments.length; i++){
|
|
3194
3697
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3195
3698
|
var ownKeys = Object.keys(source);
|
|
@@ -3199,7 +3702,7 @@ function _object_spread$4(target) {
|
|
|
3199
3702
|
}));
|
|
3200
3703
|
}
|
|
3201
3704
|
ownKeys.forEach(function(key) {
|
|
3202
|
-
_define_property$
|
|
3705
|
+
_define_property$6(target, key, source[key]);
|
|
3203
3706
|
});
|
|
3204
3707
|
}
|
|
3205
3708
|
return target;
|
|
@@ -3219,7 +3722,7 @@ function _object_spread$4(target) {
|
|
|
3219
3722
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
3220
3723
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
3221
3724
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
3222
|
-
var KDocumentSourceType = _object_spread$
|
|
3725
|
+
var KDocumentSourceType = _object_spread$5({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
3223
3726
|
/**
|
|
3224
3727
|
* Document type category, determine how to process the document.
|
|
3225
3728
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -3833,6 +4336,23 @@ var PLUGIN_MARKETPLACE_CATEGORIES = [
|
|
|
3833
4336
|
"sales",
|
|
3834
4337
|
"other"
|
|
3835
4338
|
];
|
|
4339
|
+
/**
|
|
4340
|
+
* Technical subcategories used by the plugin marketplace.
|
|
4341
|
+
* marketplace.category describes the business-facing group; marketplace.subcategory describes the technical type.
|
|
4342
|
+
*/ var PLUGIN_MARKETPLACE_SUBCATEGORIES = [
|
|
4343
|
+
"connector",
|
|
4344
|
+
"middleware",
|
|
4345
|
+
"integration",
|
|
4346
|
+
"database",
|
|
4347
|
+
"tools",
|
|
4348
|
+
"model",
|
|
4349
|
+
"vlm",
|
|
4350
|
+
"vector-store",
|
|
4351
|
+
"doc-source",
|
|
4352
|
+
"datasource",
|
|
4353
|
+
"agent",
|
|
4354
|
+
"set"
|
|
4355
|
+
];
|
|
3836
4356
|
|
|
3837
4357
|
var XpertMarketplaceBusinessCategories = PLUGIN_MARKETPLACE_CATEGORIES;
|
|
3838
4358
|
var XpertMarketplaceCollaborationModes = [
|
|
@@ -4003,15 +4523,15 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
4003
4523
|
}
|
|
4004
4524
|
|
|
4005
4525
|
// Helpers
|
|
4006
|
-
function _array_like_to_array$
|
|
4526
|
+
function _array_like_to_array$7(arr, len) {
|
|
4007
4527
|
if (len == null || len > arr.length) len = arr.length;
|
|
4008
4528
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4009
4529
|
return arr2;
|
|
4010
4530
|
}
|
|
4011
4531
|
function _array_without_holes$1(arr) {
|
|
4012
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4532
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
4013
4533
|
}
|
|
4014
|
-
function _define_property$
|
|
4534
|
+
function _define_property$5(obj, key, value) {
|
|
4015
4535
|
if (key in obj) {
|
|
4016
4536
|
Object.defineProperty(obj, key, {
|
|
4017
4537
|
value: value,
|
|
@@ -4030,7 +4550,7 @@ function _iterable_to_array$3(iter) {
|
|
|
4030
4550
|
function _non_iterable_spread$1() {
|
|
4031
4551
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4032
4552
|
}
|
|
4033
|
-
function _object_spread$
|
|
4553
|
+
function _object_spread$4(target) {
|
|
4034
4554
|
for(var i = 1; i < arguments.length; i++){
|
|
4035
4555
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4036
4556
|
var ownKeys = Object.keys(source);
|
|
@@ -4040,7 +4560,7 @@ function _object_spread$3(target) {
|
|
|
4040
4560
|
}));
|
|
4041
4561
|
}
|
|
4042
4562
|
ownKeys.forEach(function(key) {
|
|
4043
|
-
_define_property$
|
|
4563
|
+
_define_property$5(target, key, source[key]);
|
|
4044
4564
|
});
|
|
4045
4565
|
}
|
|
4046
4566
|
return target;
|
|
@@ -4092,15 +4612,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
4092
4612
|
return target;
|
|
4093
4613
|
}
|
|
4094
4614
|
function _to_consumable_array$1(arr) {
|
|
4095
|
-
return _array_without_holes$1(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
4615
|
+
return _array_without_holes$1(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread$1();
|
|
4096
4616
|
}
|
|
4097
|
-
function _unsupported_iterable_to_array$
|
|
4617
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
4098
4618
|
if (!o) return;
|
|
4099
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4619
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
4100
4620
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4101
4621
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4102
4622
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4103
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4623
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
4104
4624
|
}
|
|
4105
4625
|
function omitXpertRelations(xpert) {
|
|
4106
4626
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4139,7 +4659,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
4139
4659
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
4140
4660
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
4141
4661
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
4142
|
-
return _object_spread_props$3(_object_spread$
|
|
4662
|
+
return _object_spread_props$3(_object_spread$4({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
4143
4663
|
id: xpert.id,
|
|
4144
4664
|
tenantId: xpert.tenantId,
|
|
4145
4665
|
organizationId: xpert.organizationId,
|
|
@@ -4423,9 +4943,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
4423
4943
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
4424
4944
|
replacedNode = true;
|
|
4425
4945
|
var _node_entity;
|
|
4426
|
-
return _object_spread_props$3(_object_spread$
|
|
4946
|
+
return _object_spread_props$3(_object_spread$4({}, node), {
|
|
4427
4947
|
key: targetKey,
|
|
4428
|
-
entity: _object_spread_props$3(_object_spread$
|
|
4948
|
+
entity: _object_spread_props$3(_object_spread$4({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
4429
4949
|
key: targetKey
|
|
4430
4950
|
})
|
|
4431
4951
|
});
|
|
@@ -4441,17 +4961,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
4441
4961
|
if (from === connection.from && to === connection.to) {
|
|
4442
4962
|
return connection;
|
|
4443
4963
|
}
|
|
4444
|
-
return _object_spread_props$3(_object_spread$
|
|
4964
|
+
return _object_spread_props$3(_object_spread$4({}, connection), {
|
|
4445
4965
|
from: from,
|
|
4446
4966
|
to: to,
|
|
4447
4967
|
key: "".concat(from, "/").concat(to)
|
|
4448
4968
|
});
|
|
4449
4969
|
});
|
|
4450
|
-
return _object_spread_props$3(_object_spread$
|
|
4451
|
-
team: draft.team ? _object_spread_props$3(_object_spread$
|
|
4452
|
-
agent: draft.team.agent ? _object_spread_props$3(_object_spread$
|
|
4970
|
+
return _object_spread_props$3(_object_spread$4({}, draft), {
|
|
4971
|
+
team: draft.team ? _object_spread_props$3(_object_spread$4({}, draft.team), {
|
|
4972
|
+
agent: draft.team.agent ? _object_spread_props$3(_object_spread$4({}, draft.team.agent, agent), {
|
|
4453
4973
|
key: targetKey
|
|
4454
|
-
}) : _object_spread_props$3(_object_spread$
|
|
4974
|
+
}) : _object_spread_props$3(_object_spread$4({}, agent), {
|
|
4455
4975
|
key: targetKey
|
|
4456
4976
|
})
|
|
4457
4977
|
}) : draft.team,
|
|
@@ -4533,11 +5053,12 @@ exports.MCPServerType = void 0;
|
|
|
4533
5053
|
MCPServerType["CODE"] = "code";
|
|
4534
5054
|
MCPServerType["HTTP"] = "http";
|
|
4535
5055
|
})(exports.MCPServerType || (exports.MCPServerType = {}));
|
|
4536
|
-
var MCP_CONSUMER_AUTH_TYPES = [
|
|
5056
|
+
/** Supported authentication modes for a host-consumed MCP server. */ var MCP_CONSUMER_AUTH_TYPES = [
|
|
4537
5057
|
"none",
|
|
4538
5058
|
"manual_header",
|
|
4539
5059
|
"api_key",
|
|
4540
|
-
"oauth"
|
|
5060
|
+
"oauth",
|
|
5061
|
+
"connector"
|
|
4541
5062
|
];
|
|
4542
5063
|
var MCP_APP_RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
4543
5064
|
|
|
@@ -4589,6 +5110,11 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4589
5110
|
XpertProjectAutomationRunStatusEnum["CANCELLED"] = "cancelled";
|
|
4590
5111
|
})(exports.XpertProjectAutomationRunStatusEnum || (exports.XpertProjectAutomationRunStatusEnum = {}));
|
|
4591
5112
|
|
|
5113
|
+
var GENERAL_PROJECT_TYPE = {
|
|
5114
|
+
applicationKey: "platform",
|
|
5115
|
+
projectTypeKey: "general"
|
|
5116
|
+
};
|
|
5117
|
+
|
|
4592
5118
|
/**
|
|
4593
5119
|
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
4594
5120
|
* preserving explicit chunkIndex order whenever it is available.
|
|
@@ -4596,7 +5122,7 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4596
5122
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
4597
5123
|
* @param documents - A flat array of DocumentInterface objects
|
|
4598
5124
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
4599
|
-
*/ function _define_property$
|
|
5125
|
+
*/ function _define_property$4(obj, key, value) {
|
|
4600
5126
|
if (key in obj) {
|
|
4601
5127
|
Object.defineProperty(obj, key, {
|
|
4602
5128
|
value: value,
|
|
@@ -4609,7 +5135,7 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4609
5135
|
}
|
|
4610
5136
|
return obj;
|
|
4611
5137
|
}
|
|
4612
|
-
function _object_spread$
|
|
5138
|
+
function _object_spread$3(target) {
|
|
4613
5139
|
for(var i = 1; i < arguments.length; i++){
|
|
4614
5140
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4615
5141
|
var ownKeys = Object.keys(source);
|
|
@@ -4619,7 +5145,7 @@ function _object_spread$2(target) {
|
|
|
4619
5145
|
}));
|
|
4620
5146
|
}
|
|
4621
5147
|
ownKeys.forEach(function(key) {
|
|
4622
|
-
_define_property$
|
|
5148
|
+
_define_property$4(target, key, source[key]);
|
|
4623
5149
|
});
|
|
4624
5150
|
}
|
|
4625
5151
|
return target;
|
|
@@ -4652,8 +5178,8 @@ function buildChunkTree(documents) {
|
|
|
4652
5178
|
documents.forEach(function(doc, index) {
|
|
4653
5179
|
var chunkId = getChunkNodeId(doc);
|
|
4654
5180
|
if (chunkId) {
|
|
4655
|
-
map.set(chunkId, _object_spread_props$2(_object_spread$
|
|
4656
|
-
metadata: _object_spread_props$2(_object_spread$
|
|
5181
|
+
map.set(chunkId, _object_spread_props$2(_object_spread$3({}, doc), {
|
|
5182
|
+
metadata: _object_spread_props$2(_object_spread$3({}, doc.metadata), {
|
|
4657
5183
|
chunkId: chunkId,
|
|
4658
5184
|
children: []
|
|
4659
5185
|
})
|
|
@@ -4827,30 +5353,30 @@ exports.KnowledgeGraphIndexJobStatus = void 0;
|
|
|
4827
5353
|
var KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE = 100;
|
|
4828
5354
|
|
|
4829
5355
|
// Skill types
|
|
4830
|
-
function _array_like_to_array$
|
|
5356
|
+
function _array_like_to_array$6(arr, len) {
|
|
4831
5357
|
if (len == null || len > arr.length) len = arr.length;
|
|
4832
5358
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4833
5359
|
return arr2;
|
|
4834
5360
|
}
|
|
4835
|
-
function _array_with_holes$
|
|
5361
|
+
function _array_with_holes$6(arr) {
|
|
4836
5362
|
if (Array.isArray(arr)) return arr;
|
|
4837
5363
|
}
|
|
4838
5364
|
function _iterable_to_array$2(iter) {
|
|
4839
5365
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4840
5366
|
}
|
|
4841
|
-
function _non_iterable_rest$
|
|
5367
|
+
function _non_iterable_rest$6() {
|
|
4842
5368
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4843
5369
|
}
|
|
4844
5370
|
function _to_array$1(arr) {
|
|
4845
|
-
return _array_with_holes$
|
|
5371
|
+
return _array_with_holes$6(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_rest$6();
|
|
4846
5372
|
}
|
|
4847
|
-
function _unsupported_iterable_to_array$
|
|
5373
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
4848
5374
|
if (!o) return;
|
|
4849
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5375
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
4850
5376
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4851
5377
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4852
5378
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4853
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5379
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
4854
5380
|
}
|
|
4855
5381
|
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
4856
5382
|
function createRuntimeSkillCapabilityId(source) {
|
|
@@ -4884,15 +5410,15 @@ function genXpertSkillKey() {
|
|
|
4884
5410
|
return letterStartSUID("Skill_");
|
|
4885
5411
|
}
|
|
4886
5412
|
|
|
4887
|
-
function _array_like_to_array$
|
|
5413
|
+
function _array_like_to_array$5(arr, len) {
|
|
4888
5414
|
if (len == null || len > arr.length) len = arr.length;
|
|
4889
5415
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4890
5416
|
return arr2;
|
|
4891
5417
|
}
|
|
4892
|
-
function _array_with_holes$
|
|
5418
|
+
function _array_with_holes$5(arr) {
|
|
4893
5419
|
if (Array.isArray(arr)) return arr;
|
|
4894
5420
|
}
|
|
4895
|
-
function _iterable_to_array_limit$
|
|
5421
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
4896
5422
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4897
5423
|
if (_i == null) return;
|
|
4898
5424
|
var _arr = [];
|
|
@@ -4916,19 +5442,19 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
4916
5442
|
}
|
|
4917
5443
|
return _arr;
|
|
4918
5444
|
}
|
|
4919
|
-
function _non_iterable_rest$
|
|
5445
|
+
function _non_iterable_rest$5() {
|
|
4920
5446
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4921
5447
|
}
|
|
4922
|
-
function _sliced_to_array$
|
|
4923
|
-
return _array_with_holes$
|
|
5448
|
+
function _sliced_to_array$4(arr, i) {
|
|
5449
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
4924
5450
|
}
|
|
4925
|
-
function _unsupported_iterable_to_array$
|
|
5451
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
4926
5452
|
if (!o) return;
|
|
4927
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5453
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
4928
5454
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4929
5455
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4930
5456
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4931
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5457
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
4932
5458
|
}
|
|
4933
5459
|
var IGNORED_BOOLEAN_FLAGS = new Set([
|
|
4934
5460
|
"-y",
|
|
@@ -5143,7 +5669,7 @@ function parseGithubSource(source) {
|
|
|
5143
5669
|
return parseGithubUrl(raw);
|
|
5144
5670
|
}
|
|
5145
5671
|
if (/^[^/\s]+\/[^/\s]+$/.test(raw)) {
|
|
5146
|
-
var _raw_split = _sliced_to_array$
|
|
5672
|
+
var _raw_split = _sliced_to_array$4(raw.split("/"), 2), owner = _raw_split[0], repoSegment = _raw_split[1];
|
|
5147
5673
|
var repo = repoSegment.replace(/\.git$/i, "");
|
|
5148
5674
|
if (!repo) {
|
|
5149
5675
|
throw new Error("GitHub repository source must include owner and repository name");
|
|
@@ -5195,7 +5721,15 @@ function isLocalPath(value) {
|
|
|
5195
5721
|
return value.startsWith(".") || value.startsWith("/") || value.startsWith("~") || /^file:/i.test(value) || /^[a-z]:[\\/]/i.test(value);
|
|
5196
5722
|
}
|
|
5197
5723
|
|
|
5198
|
-
function
|
|
5724
|
+
/** Boundary validation for persisted and API-provided scenario lists. */ function isPromptWorkflowScenarios(value) {
|
|
5725
|
+
return Array.isArray(value) && value.length <= 20 && value.every(function(item) {
|
|
5726
|
+
return !!item && typeof item === "object" && "id" in item && typeof item.id === "string" && !!item.id.trim() && item.id.length <= 100 && "label" in item && typeof item.label === "string" && !!item.label.trim() && item.label.length <= 120 && "args" in item && typeof item.args === "string" && !!item.args.trim() && item.args.length <= 20000;
|
|
5727
|
+
}) && new Set(value.map(function(item) {
|
|
5728
|
+
return item.id;
|
|
5729
|
+
})).size === value.length;
|
|
5730
|
+
}
|
|
5731
|
+
|
|
5732
|
+
function _define_property$3(obj, key, value) {
|
|
5199
5733
|
if (key in obj) {
|
|
5200
5734
|
Object.defineProperty(obj, key, {
|
|
5201
5735
|
value: value,
|
|
@@ -5208,7 +5742,7 @@ function _define_property$2(obj, key, value) {
|
|
|
5208
5742
|
}
|
|
5209
5743
|
return obj;
|
|
5210
5744
|
}
|
|
5211
|
-
function _object_spread$
|
|
5745
|
+
function _object_spread$2(target) {
|
|
5212
5746
|
for(var i = 1; i < arguments.length; i++){
|
|
5213
5747
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5214
5748
|
var ownKeys = Object.keys(source);
|
|
@@ -5218,7 +5752,7 @@ function _object_spread$1(target) {
|
|
|
5218
5752
|
}));
|
|
5219
5753
|
}
|
|
5220
5754
|
ownKeys.forEach(function(key) {
|
|
5221
|
-
_define_property$
|
|
5755
|
+
_define_property$3(target, key, source[key]);
|
|
5222
5756
|
});
|
|
5223
5757
|
}
|
|
5224
5758
|
return target;
|
|
@@ -5244,6 +5778,7 @@ function _object_spread_props$1(target, source) {
|
|
|
5244
5778
|
}
|
|
5245
5779
|
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
5246
5780
|
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
5781
|
+
var SKILLS_MIDDLEWARE_NAME = "skillsMiddleware";
|
|
5247
5782
|
function isMiddlewareToolEnabled(config) {
|
|
5248
5783
|
if (typeof config === "boolean") {
|
|
5249
5784
|
return config;
|
|
@@ -5272,8 +5807,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
5272
5807
|
if (provider === entity.provider) {
|
|
5273
5808
|
return node;
|
|
5274
5809
|
}
|
|
5275
|
-
return _object_spread_props$1(_object_spread$
|
|
5276
|
-
entity: _object_spread_props$1(_object_spread$
|
|
5810
|
+
return _object_spread_props$1(_object_spread$2({}, node), {
|
|
5811
|
+
entity: _object_spread_props$1(_object_spread$2({}, entity), {
|
|
5277
5812
|
provider: provider
|
|
5278
5813
|
})
|
|
5279
5814
|
});
|
|
@@ -5323,18 +5858,18 @@ function isContextCompressionComponentData(value) {
|
|
|
5323
5858
|
"job"
|
|
5324
5859
|
];
|
|
5325
5860
|
|
|
5326
|
-
function _array_like_to_array$
|
|
5861
|
+
function _array_like_to_array$4(arr, len) {
|
|
5327
5862
|
if (len == null || len > arr.length) len = arr.length;
|
|
5328
5863
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5329
5864
|
return arr2;
|
|
5330
5865
|
}
|
|
5331
|
-
function _array_with_holes$
|
|
5866
|
+
function _array_with_holes$4(arr) {
|
|
5332
5867
|
if (Array.isArray(arr)) return arr;
|
|
5333
5868
|
}
|
|
5334
5869
|
function _array_without_holes(arr) {
|
|
5335
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5870
|
+
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
5336
5871
|
}
|
|
5337
|
-
function _define_property$
|
|
5872
|
+
function _define_property$2(obj, key, value) {
|
|
5338
5873
|
if (key in obj) {
|
|
5339
5874
|
Object.defineProperty(obj, key, {
|
|
5340
5875
|
value: value,
|
|
@@ -5350,7 +5885,7 @@ function _define_property$1(obj, key, value) {
|
|
|
5350
5885
|
function _iterable_to_array$1(iter) {
|
|
5351
5886
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5352
5887
|
}
|
|
5353
|
-
function _iterable_to_array_limit$
|
|
5888
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
5354
5889
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5355
5890
|
if (_i == null) return;
|
|
5356
5891
|
var _arr = [];
|
|
@@ -5374,13 +5909,13 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
5374
5909
|
}
|
|
5375
5910
|
return _arr;
|
|
5376
5911
|
}
|
|
5377
|
-
function _non_iterable_rest$
|
|
5912
|
+
function _non_iterable_rest$4() {
|
|
5378
5913
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5379
5914
|
}
|
|
5380
5915
|
function _non_iterable_spread() {
|
|
5381
5916
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5382
5917
|
}
|
|
5383
|
-
function _object_spread(target) {
|
|
5918
|
+
function _object_spread$1(target) {
|
|
5384
5919
|
for(var i = 1; i < arguments.length; i++){
|
|
5385
5920
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5386
5921
|
var ownKeys = Object.keys(source);
|
|
@@ -5390,7 +5925,7 @@ function _object_spread(target) {
|
|
|
5390
5925
|
}));
|
|
5391
5926
|
}
|
|
5392
5927
|
ownKeys.forEach(function(key) {
|
|
5393
|
-
_define_property$
|
|
5928
|
+
_define_property$2(target, key, source[key]);
|
|
5394
5929
|
});
|
|
5395
5930
|
}
|
|
5396
5931
|
return target;
|
|
@@ -5441,19 +5976,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
5441
5976
|
}
|
|
5442
5977
|
return target;
|
|
5443
5978
|
}
|
|
5444
|
-
function _sliced_to_array$
|
|
5445
|
-
return _array_with_holes$
|
|
5979
|
+
function _sliced_to_array$3(arr, i) {
|
|
5980
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
|
|
5446
5981
|
}
|
|
5447
5982
|
function _to_consumable_array(arr) {
|
|
5448
|
-
return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
5983
|
+
return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread();
|
|
5449
5984
|
}
|
|
5450
|
-
function _unsupported_iterable_to_array$
|
|
5985
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
5451
5986
|
if (!o) return;
|
|
5452
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5987
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
5453
5988
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5454
5989
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5455
5990
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5456
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5991
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
5457
5992
|
}
|
|
5458
5993
|
function isNil(value) {
|
|
5459
5994
|
return value === null || value === undefined;
|
|
@@ -5524,7 +6059,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
5524
6059
|
if (typeof content !== "string") {
|
|
5525
6060
|
return content;
|
|
5526
6061
|
}
|
|
5527
|
-
return _object_spread({
|
|
6062
|
+
return _object_spread$1({
|
|
5528
6063
|
type: "text",
|
|
5529
6064
|
text: content
|
|
5530
6065
|
}, context.streamId ? {
|
|
@@ -5570,6 +6105,7 @@ function getContentChunkSeparator(previous, nextText, joinHint) {
|
|
|
5570
6105
|
return "";
|
|
5571
6106
|
}
|
|
5572
6107
|
function stringifySingle(content) {
|
|
6108
|
+
if (chatkitTypes.isFileActivityContent(content)) return "";
|
|
5573
6109
|
if (content.type === "text") {
|
|
5574
6110
|
return content.text;
|
|
5575
6111
|
}
|
|
@@ -5588,7 +6124,7 @@ function filterText(content) {
|
|
|
5588
6124
|
return "";
|
|
5589
6125
|
}
|
|
5590
6126
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
5591
|
-
return _object_spread(_object_spread_props(_object_spread({}, previous), {
|
|
6127
|
+
return _object_spread$1(_object_spread_props(_object_spread$1({}, previous), {
|
|
5592
6128
|
text: "".concat(previous.text).concat(incoming.text)
|
|
5593
6129
|
}), !previous.id && incoming.id ? {
|
|
5594
6130
|
id: incoming.id
|
|
@@ -5600,7 +6136,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
5600
6136
|
}
|
|
5601
6137
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
5602
6138
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
5603
|
-
return _object_spread_props(_object_spread({}, incoming), {
|
|
6139
|
+
return _object_spread_props(_object_spread$1({}, incoming), {
|
|
5604
6140
|
text: incoming.text.slice(1)
|
|
5605
6141
|
});
|
|
5606
6142
|
}
|
|
@@ -5610,21 +6146,21 @@ function mergeComponentData(previous, incoming) {
|
|
|
5610
6146
|
var _previous_data, _incoming_data;
|
|
5611
6147
|
var _incoming_data1;
|
|
5612
6148
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
5613
|
-
var _param = _sliced_to_array$
|
|
6149
|
+
var _param = _sliced_to_array$3(param, 2), key = _param[0], value = _param[1];
|
|
5614
6150
|
if (!isNil(value)) {
|
|
5615
6151
|
acc[key] = value;
|
|
5616
6152
|
}
|
|
5617
6153
|
return acc;
|
|
5618
6154
|
}, {});
|
|
5619
6155
|
var _previous_data1;
|
|
5620
|
-
return _object_spread_props(_object_spread({}, previous, incoming), {
|
|
5621
|
-
data: _object_spread_props(_object_spread({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
6156
|
+
return _object_spread_props(_object_spread$1({}, previous, incoming), {
|
|
6157
|
+
data: _object_spread_props(_object_spread$1({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
5622
6158
|
created_date: ((_previous_data = previous.data) === null || _previous_data === void 0 ? void 0 : _previous_data.created_date) || ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data.created_date)
|
|
5623
6159
|
})
|
|
5624
6160
|
});
|
|
5625
6161
|
}
|
|
5626
6162
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
5627
|
-
return _object_spread({
|
|
6163
|
+
return _object_spread$1({
|
|
5628
6164
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
5629
6165
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
5630
6166
|
streamId: String(content.id)
|
|
@@ -5632,10 +6168,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
5632
6168
|
}
|
|
5633
6169
|
function resolveMessageAppendContext(options) {
|
|
5634
6170
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
5635
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props(_object_spread({}, inferredContext), {
|
|
6171
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props(_object_spread$1({}, inferredContext), {
|
|
5636
6172
|
streamId: options.fallbackStreamId
|
|
5637
6173
|
}) : inferredContext;
|
|
5638
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props(_object_spread({}, appendContext), {
|
|
6174
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props(_object_spread$1({}, appendContext), {
|
|
5639
6175
|
joinHint: "none"
|
|
5640
6176
|
}) : appendContext;
|
|
5641
6177
|
return {
|
|
@@ -5656,10 +6192,10 @@ function resolveMessageAppendContext(options) {
|
|
|
5656
6192
|
var previous = initial;
|
|
5657
6193
|
return {
|
|
5658
6194
|
resolve: function resolve(options) {
|
|
5659
|
-
var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread({}, options), {
|
|
6195
|
+
var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread$1({}, options), {
|
|
5660
6196
|
previous: previous
|
|
5661
6197
|
}));
|
|
5662
|
-
previous = resolved.appendContext;
|
|
6198
|
+
if (!chatkitTypes.isFileActivityContent(options.incoming)) previous = resolved.appendContext;
|
|
5663
6199
|
return resolved;
|
|
5664
6200
|
},
|
|
5665
6201
|
reset: function reset() {
|
|
@@ -5680,14 +6216,19 @@ function resolveMessageAppendContext(options) {
|
|
|
5680
6216
|
* - Applies context-aware merge rules for text/reasoning/component chunks.
|
|
5681
6217
|
* - `previous` must be supplied by caller when same-stream join inference is needed.
|
|
5682
6218
|
*/ function appendMessageContent(aiMessage, incoming, context) {
|
|
6219
|
+
var receipt = chatkitTypes.parseFileActivityContent(incoming);
|
|
6220
|
+
if (receipt) {
|
|
6221
|
+
aiMessage.content = chatkitTypes.upsertFileActivityContent(ensureArrayContent(aiMessage.content), receipt);
|
|
6222
|
+
return;
|
|
6223
|
+
}
|
|
5683
6224
|
aiMessage.status = "answering";
|
|
5684
6225
|
var _ref = context !== null && context !== void 0 ? context : {}, _ref_previous = _ref.previous, previous = _ref_previous === void 0 ? null : _ref_previous, contextWithoutPrevious = _object_without_properties(_ref, [
|
|
5685
6226
|
"previous"
|
|
5686
6227
|
]);
|
|
5687
|
-
var appendContext = _object_spread({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
6228
|
+
var appendContext = _object_spread$1({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
5688
6229
|
var _appendContext_joinHint;
|
|
5689
6230
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
5690
|
-
var messageContext = joinHint ? _object_spread_props(_object_spread({}, appendContext), {
|
|
6231
|
+
var messageContext = joinHint ? _object_spread_props(_object_spread$1({}, appendContext), {
|
|
5691
6232
|
joinHint: joinHint
|
|
5692
6233
|
}) : appendContext;
|
|
5693
6234
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -5696,7 +6237,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5696
6237
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
5697
6238
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
5698
6239
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
5699
|
-
var mergedReasoning = _object_spread_props(_object_spread({}, lastReasoning), {
|
|
6240
|
+
var mergedReasoning = _object_spread_props(_object_spread$1({}, lastReasoning), {
|
|
5700
6241
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
5701
6242
|
});
|
|
5702
6243
|
aiMessage.reasoning = _to_consumable_array(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -5717,7 +6258,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5717
6258
|
return isTextContent(item) && item.id === content.id;
|
|
5718
6259
|
});
|
|
5719
6260
|
if (index > -1) {
|
|
5720
|
-
var mergedContent = _object_spread(_object_spread_props(_object_spread({}, chunks[index]), {
|
|
6261
|
+
var mergedContent = _object_spread$1(_object_spread_props(_object_spread$1({}, chunks[index]), {
|
|
5721
6262
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
5722
6263
|
}), !chunks[index].id && content.id ? {
|
|
5723
6264
|
id: content.id
|
|
@@ -5740,7 +6281,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5740
6281
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
5741
6282
|
if (existingIndex > -1) {
|
|
5742
6283
|
var existing = chunks[existingIndex];
|
|
5743
|
-
var merged = _object_spread_props(_object_spread({}, existing), {
|
|
6284
|
+
var merged = _object_spread_props(_object_spread$1({}, existing), {
|
|
5744
6285
|
text: "".concat(existing.text).concat(content.text)
|
|
5745
6286
|
});
|
|
5746
6287
|
var nextChunks = _to_consumable_array(chunks);
|
|
@@ -5749,7 +6290,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5749
6290
|
return;
|
|
5750
6291
|
}
|
|
5751
6292
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
5752
|
-
var mergedLastContent = _object_spread_props(_object_spread({}, lastContent), {
|
|
6293
|
+
var mergedLastContent = _object_spread_props(_object_spread$1({}, lastContent), {
|
|
5753
6294
|
text: "".concat(lastContent.text).concat(content.text)
|
|
5754
6295
|
});
|
|
5755
6296
|
aiMessage.content = _to_consumable_array(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -5758,7 +6299,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5758
6299
|
return;
|
|
5759
6300
|
}
|
|
5760
6301
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
5761
|
-
var appended = _object_spread_props(_object_spread({}, content), {
|
|
6302
|
+
var appended = _object_spread_props(_object_spread$1({}, content), {
|
|
5762
6303
|
text: separator + content.text
|
|
5763
6304
|
});
|
|
5764
6305
|
aiMessage.content = _to_consumable_array(chunks).concat([
|
|
@@ -5782,7 +6323,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5782
6323
|
aiMessage.content = nextChunks1;
|
|
5783
6324
|
}
|
|
5784
6325
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
5785
|
-
var resolvedContext = _object_spread({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
6326
|
+
var resolvedContext = _object_spread$1({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
5786
6327
|
var nextText = filterText(incoming);
|
|
5787
6328
|
if (!nextText) {
|
|
5788
6329
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -5827,7 +6368,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
5827
6368
|
return;
|
|
5828
6369
|
}
|
|
5829
6370
|
textIndexById.set(item.id, merged.length);
|
|
5830
|
-
merged.push(_object_spread({}, item));
|
|
6371
|
+
merged.push(_object_spread$1({}, item));
|
|
5831
6372
|
return;
|
|
5832
6373
|
}
|
|
5833
6374
|
var lastItem = merged[merged.length - 1];
|
|
@@ -5835,7 +6376,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
5835
6376
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
5836
6377
|
return;
|
|
5837
6378
|
}
|
|
5838
|
-
merged.push(_object_spread({}, item));
|
|
6379
|
+
merged.push(_object_spread$1({}, item));
|
|
5839
6380
|
});
|
|
5840
6381
|
return merged.length ? merged : null;
|
|
5841
6382
|
}
|
|
@@ -5847,9 +6388,10 @@ function stringifyMessageContent(content) {
|
|
|
5847
6388
|
var result = "";
|
|
5848
6389
|
var previousContext = null;
|
|
5849
6390
|
content.forEach(function(item) {
|
|
6391
|
+
if (chatkitTypes.isFileActivityContent(item)) return;
|
|
5850
6392
|
var itemContext = inferMessageAppendContext(item);
|
|
5851
6393
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
5852
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread({}, itemContext, joinHint ? {
|
|
6394
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$1({}, itemContext, joinHint ? {
|
|
5853
6395
|
joinHint: joinHint
|
|
5854
6396
|
} : {}));
|
|
5855
6397
|
previousContext = itemContext;
|
|
@@ -5872,7 +6414,7 @@ function filterMessageText(content) {
|
|
|
5872
6414
|
}
|
|
5873
6415
|
var itemContext = inferMessageAppendContext(item);
|
|
5874
6416
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
5875
|
-
result = appendMessagePlainText(result, nextText, _object_spread({}, itemContext, joinHint ? {
|
|
6417
|
+
result = appendMessagePlainText(result, nextText, _object_spread$1({}, itemContext, joinHint ? {
|
|
5876
6418
|
joinHint: joinHint
|
|
5877
6419
|
} : {}));
|
|
5878
6420
|
previousContext = itemContext;
|
|
@@ -5882,6 +6424,93 @@ function filterMessageText(content) {
|
|
|
5882
6424
|
return filterText(content) || null;
|
|
5883
6425
|
}
|
|
5884
6426
|
|
|
6427
|
+
var SANDBOX_FILE_OUTPUT_RULES = [
|
|
6428
|
+
{
|
|
6429
|
+
extension: ".docx",
|
|
6430
|
+
kind: "document",
|
|
6431
|
+
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
6432
|
+
format: "docx"
|
|
6433
|
+
},
|
|
6434
|
+
{
|
|
6435
|
+
extension: ".xlsx",
|
|
6436
|
+
kind: "spreadsheet",
|
|
6437
|
+
mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
6438
|
+
format: "xlsx"
|
|
6439
|
+
},
|
|
6440
|
+
{
|
|
6441
|
+
extension: ".pptx",
|
|
6442
|
+
kind: "presentation",
|
|
6443
|
+
mimeType: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
6444
|
+
format: "pptx"
|
|
6445
|
+
},
|
|
6446
|
+
{
|
|
6447
|
+
extension: ".pdf",
|
|
6448
|
+
kind: "document",
|
|
6449
|
+
mimeType: "application/pdf",
|
|
6450
|
+
format: "pdf"
|
|
6451
|
+
},
|
|
6452
|
+
{
|
|
6453
|
+
extension: ".json",
|
|
6454
|
+
kind: "file",
|
|
6455
|
+
mimeType: "application/json",
|
|
6456
|
+
format: "json"
|
|
6457
|
+
},
|
|
6458
|
+
{
|
|
6459
|
+
extension: ".md",
|
|
6460
|
+
kind: "document",
|
|
6461
|
+
mimeType: "text/markdown",
|
|
6462
|
+
format: "utf8"
|
|
6463
|
+
},
|
|
6464
|
+
{
|
|
6465
|
+
extension: ".txt",
|
|
6466
|
+
kind: "file",
|
|
6467
|
+
mimeType: "text/plain",
|
|
6468
|
+
format: "utf8"
|
|
6469
|
+
},
|
|
6470
|
+
{
|
|
6471
|
+
extension: ".csv",
|
|
6472
|
+
kind: "spreadsheet",
|
|
6473
|
+
mimeType: "text/csv",
|
|
6474
|
+
format: "utf8"
|
|
6475
|
+
},
|
|
6476
|
+
{
|
|
6477
|
+
extension: ".tsv",
|
|
6478
|
+
kind: "spreadsheet",
|
|
6479
|
+
mimeType: "text/tab-separated-values",
|
|
6480
|
+
format: "utf8"
|
|
6481
|
+
},
|
|
6482
|
+
{
|
|
6483
|
+
extension: ".html",
|
|
6484
|
+
kind: "file",
|
|
6485
|
+
mimeType: "text/html",
|
|
6486
|
+
format: "utf8"
|
|
6487
|
+
},
|
|
6488
|
+
{
|
|
6489
|
+
extension: ".png",
|
|
6490
|
+
kind: "image",
|
|
6491
|
+
mimeType: "image/png",
|
|
6492
|
+
format: "png"
|
|
6493
|
+
},
|
|
6494
|
+
{
|
|
6495
|
+
extension: ".jpg",
|
|
6496
|
+
kind: "image",
|
|
6497
|
+
mimeType: "image/jpeg",
|
|
6498
|
+
format: "jpeg"
|
|
6499
|
+
},
|
|
6500
|
+
{
|
|
6501
|
+
extension: ".jpeg",
|
|
6502
|
+
kind: "image",
|
|
6503
|
+
mimeType: "image/jpeg",
|
|
6504
|
+
format: "jpeg"
|
|
6505
|
+
},
|
|
6506
|
+
{
|
|
6507
|
+
extension: ".svg",
|
|
6508
|
+
kind: "image",
|
|
6509
|
+
mimeType: "image/svg+xml",
|
|
6510
|
+
format: "utf8"
|
|
6511
|
+
}
|
|
6512
|
+
];
|
|
6513
|
+
|
|
5885
6514
|
function isEvidenceProposal(value) {
|
|
5886
6515
|
return "strategy" in value && "candidateId" in value && !!value.strategy && !!value.candidateId;
|
|
5887
6516
|
}
|
|
@@ -6065,6 +6694,7 @@ var MCP_HTTP_CORS_REQUEST_HEADERS = [
|
|
|
6065
6694
|
"X-Request-Id"
|
|
6066
6695
|
];
|
|
6067
6696
|
var MCP_HTTP_CORS_EXPOSED_HEADERS = [
|
|
6697
|
+
"Content-Location",
|
|
6068
6698
|
"WWW-Authenticate",
|
|
6069
6699
|
"MCP-Protocol-Version",
|
|
6070
6700
|
"Mcp-Session-Id",
|
|
@@ -6112,6 +6742,8 @@ var KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES = 50;
|
|
|
6112
6742
|
var KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM = 10;
|
|
6113
6743
|
var KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET = 12000;
|
|
6114
6744
|
|
|
6745
|
+
var DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = "basic";
|
|
6746
|
+
|
|
6115
6747
|
var STATE_VARIABLE_HUMAN = "human";
|
|
6116
6748
|
|
|
6117
6749
|
exports.PermissionsEnum = void 0;
|
|
@@ -6231,6 +6863,7 @@ exports.TagCategoryEnum = void 0;
|
|
|
6231
6863
|
var TAG_TARGETS = [
|
|
6232
6864
|
exports.TagCategoryEnum.XPERT,
|
|
6233
6865
|
"knowledgebase",
|
|
6866
|
+
"prompt_workflow",
|
|
6234
6867
|
exports.TagCategoryEnum.TOOLSET,
|
|
6235
6868
|
exports.TagCategoryEnum.INDICATOR,
|
|
6236
6869
|
exports.TagCategoryEnum.STORY,
|
|
@@ -6595,7 +7228,7 @@ var IntegrationGitHubProvider = {
|
|
|
6595
7228
|
}
|
|
6596
7229
|
};
|
|
6597
7230
|
|
|
6598
|
-
function _define_property(obj, key, value) {
|
|
7231
|
+
function _define_property$1(obj, key, value) {
|
|
6599
7232
|
if (key in obj) {
|
|
6600
7233
|
Object.defineProperty(obj, key, {
|
|
6601
7234
|
value: value,
|
|
@@ -6610,7 +7243,7 @@ function _define_property(obj, key, value) {
|
|
|
6610
7243
|
}
|
|
6611
7244
|
var INTEGRATION_PROVIDERS = // [IntegrationEnum.LARK]: IntegrationLarkProvider,
|
|
6612
7245
|
// [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
6613
|
-
_define_property({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
7246
|
+
_define_property$1({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
6614
7247
|
|
|
6615
7248
|
exports.AiModelTypeEnum = void 0;
|
|
6616
7249
|
(function(AiModelTypeEnum) {
|
|
@@ -6625,15 +7258,15 @@ exports.AiModelTypeEnum = void 0;
|
|
|
6625
7258
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
6626
7259
|
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
6627
7260
|
|
|
6628
|
-
function _array_like_to_array$
|
|
7261
|
+
function _array_like_to_array$3(arr, len) {
|
|
6629
7262
|
if (len == null || len > arr.length) len = arr.length;
|
|
6630
7263
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6631
7264
|
return arr2;
|
|
6632
7265
|
}
|
|
6633
|
-
function _array_with_holes$
|
|
7266
|
+
function _array_with_holes$3(arr) {
|
|
6634
7267
|
if (Array.isArray(arr)) return arr;
|
|
6635
7268
|
}
|
|
6636
|
-
function _iterable_to_array_limit$
|
|
7269
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
6637
7270
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6638
7271
|
if (_i == null) return;
|
|
6639
7272
|
var _arr = [];
|
|
@@ -6657,19 +7290,19 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
6657
7290
|
}
|
|
6658
7291
|
return _arr;
|
|
6659
7292
|
}
|
|
6660
|
-
function _non_iterable_rest$
|
|
7293
|
+
function _non_iterable_rest$3() {
|
|
6661
7294
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6662
7295
|
}
|
|
6663
|
-
function _sliced_to_array$
|
|
6664
|
-
return _array_with_holes$
|
|
7296
|
+
function _sliced_to_array$2(arr, i) {
|
|
7297
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
|
|
6665
7298
|
}
|
|
6666
|
-
function _unsupported_iterable_to_array$
|
|
7299
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
6667
7300
|
if (!o) return;
|
|
6668
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7301
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
6669
7302
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6670
7303
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6671
7304
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6672
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7305
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
6673
7306
|
}
|
|
6674
7307
|
/**
|
|
6675
7308
|
* Channels of all upstream and downstream nodes relative to the starting point startKey.
|
|
@@ -6697,7 +7330,7 @@ function findStartNodes(graph, key) {
|
|
|
6697
7330
|
for(var _iterator = connections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
6698
7331
|
var conn = _step.value;
|
|
6699
7332
|
if (!toMap.has(conn.to)) toMap.set(conn.to, []);
|
|
6700
|
-
var _conn_from_split = _sliced_to_array$
|
|
7333
|
+
var _conn_from_split = _sliced_to_array$2(conn.from.split("/"), 1), fromKey = _conn_from_split[0];
|
|
6701
7334
|
if (conn.type === "edge") {
|
|
6702
7335
|
toMap.get(conn.to).push(fromKey);
|
|
6703
7336
|
}
|
|
@@ -6855,30 +7488,30 @@ function shortTitle(input) {
|
|
|
6855
7488
|
return null;
|
|
6856
7489
|
}
|
|
6857
7490
|
|
|
6858
|
-
function _array_like_to_array$
|
|
7491
|
+
function _array_like_to_array$2(arr, len) {
|
|
6859
7492
|
if (len == null || len > arr.length) len = arr.length;
|
|
6860
7493
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6861
7494
|
return arr2;
|
|
6862
7495
|
}
|
|
6863
|
-
function _array_with_holes$
|
|
7496
|
+
function _array_with_holes$2(arr) {
|
|
6864
7497
|
if (Array.isArray(arr)) return arr;
|
|
6865
7498
|
}
|
|
6866
7499
|
function _iterable_to_array(iter) {
|
|
6867
7500
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6868
7501
|
}
|
|
6869
|
-
function _non_iterable_rest$
|
|
7502
|
+
function _non_iterable_rest$2() {
|
|
6870
7503
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6871
7504
|
}
|
|
6872
7505
|
function _to_array(arr) {
|
|
6873
|
-
return _array_with_holes$
|
|
7506
|
+
return _array_with_holes$2(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_rest$2();
|
|
6874
7507
|
}
|
|
6875
|
-
function _unsupported_iterable_to_array$
|
|
7508
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
6876
7509
|
if (!o) return;
|
|
6877
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7510
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
6878
7511
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6879
7512
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6880
7513
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6881
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7514
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
6882
7515
|
}
|
|
6883
7516
|
/**
|
|
6884
7517
|
*
|
|
@@ -6992,15 +7625,15 @@ exports.BusinessType = void 0;
|
|
|
6992
7625
|
BusinessType["INDICATOR"] = "INDICATOR";
|
|
6993
7626
|
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
6994
7627
|
|
|
6995
|
-
function _array_like_to_array(arr, len) {
|
|
7628
|
+
function _array_like_to_array$1(arr, len) {
|
|
6996
7629
|
if (len == null || len > arr.length) len = arr.length;
|
|
6997
7630
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6998
7631
|
return arr2;
|
|
6999
7632
|
}
|
|
7000
|
-
function _array_with_holes(arr) {
|
|
7633
|
+
function _array_with_holes$1(arr) {
|
|
7001
7634
|
if (Array.isArray(arr)) return arr;
|
|
7002
7635
|
}
|
|
7003
|
-
function _iterable_to_array_limit(arr, i) {
|
|
7636
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
7004
7637
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7005
7638
|
if (_i == null) return;
|
|
7006
7639
|
var _arr = [];
|
|
@@ -7024,19 +7657,19 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
7024
7657
|
}
|
|
7025
7658
|
return _arr;
|
|
7026
7659
|
}
|
|
7027
|
-
function _non_iterable_rest() {
|
|
7660
|
+
function _non_iterable_rest$1() {
|
|
7028
7661
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7029
7662
|
}
|
|
7030
|
-
function _sliced_to_array(arr, i) {
|
|
7031
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
7663
|
+
function _sliced_to_array$1(arr, i) {
|
|
7664
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
7032
7665
|
}
|
|
7033
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
7666
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
7034
7667
|
if (!o) return;
|
|
7035
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
7668
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
7036
7669
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7037
7670
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7038
7671
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7039
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
7672
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
7040
7673
|
}
|
|
7041
7674
|
exports.ScheduleTaskStatus = void 0;
|
|
7042
7675
|
(function(ScheduleTaskStatus) {
|
|
@@ -7059,7 +7692,7 @@ exports.TaskFrequency = void 0;
|
|
|
7059
7692
|
* @returns
|
|
7060
7693
|
*/ function generateCronExpression(schedule) {
|
|
7061
7694
|
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
7062
|
-
var _schedule_time_split = _sliced_to_array(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
|
|
7695
|
+
var _schedule_time_split = _sliced_to_array$1(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
|
|
7063
7696
|
var hour = parseInt(hourStr, 10);
|
|
7064
7697
|
var minute = parseInt(minuteStr, 10);
|
|
7065
7698
|
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
@@ -7106,8 +7739,11 @@ var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
|
|
|
7106
7739
|
var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
7107
7740
|
var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
7108
7741
|
var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
|
|
7742
|
+
var WORKBENCH_AGENT_EVOLUTION_TARGET = "agent-evolution.target";
|
|
7743
|
+
var WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = "agent-evolution.change";
|
|
7109
7744
|
var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
7110
7745
|
var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
|
|
7746
|
+
/** Inspect an exact execution; embedded clients may open it without changing the active conversation. */ var WORKBENCH_ASSISTANT_EXECUTION_TARGET = "assistant.execution";
|
|
7111
7747
|
/** Opens the current Assistant inside a Project-scoped workbench route. */ var WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
|
|
7112
7748
|
var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
7113
7749
|
var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
|
|
@@ -7117,9 +7753,133 @@ var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
|
|
|
7117
7753
|
|
|
7118
7754
|
var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
7119
7755
|
|
|
7756
|
+
/** Existing Assistant Workbench slot; openMode controls initial tab opening separately. */ var AGENT_WORKBENCH_SLOT = "agent.workbench.fixed";
|
|
7757
|
+
|
|
7758
|
+
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array(arr, len) {
|
|
7759
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
7760
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7761
|
+
return arr2;
|
|
7762
|
+
}
|
|
7763
|
+
function _array_with_holes(arr) {
|
|
7764
|
+
if (Array.isArray(arr)) return arr;
|
|
7765
|
+
}
|
|
7766
|
+
function _define_property(obj, key, value) {
|
|
7767
|
+
if (key in obj) {
|
|
7768
|
+
Object.defineProperty(obj, key, {
|
|
7769
|
+
value: value,
|
|
7770
|
+
enumerable: true,
|
|
7771
|
+
configurable: true,
|
|
7772
|
+
writable: true
|
|
7773
|
+
});
|
|
7774
|
+
} else {
|
|
7775
|
+
obj[key] = value;
|
|
7776
|
+
}
|
|
7777
|
+
return obj;
|
|
7778
|
+
}
|
|
7779
|
+
function _iterable_to_array_limit(arr, i) {
|
|
7780
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7781
|
+
if (_i == null) return;
|
|
7782
|
+
var _arr = [];
|
|
7783
|
+
var _n = true;
|
|
7784
|
+
var _d = false;
|
|
7785
|
+
var _s, _e;
|
|
7786
|
+
try {
|
|
7787
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
7788
|
+
_arr.push(_s.value);
|
|
7789
|
+
if (i && _arr.length === i) break;
|
|
7790
|
+
}
|
|
7791
|
+
} catch (err) {
|
|
7792
|
+
_d = true;
|
|
7793
|
+
_e = err;
|
|
7794
|
+
} finally{
|
|
7795
|
+
try {
|
|
7796
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
7797
|
+
} finally{
|
|
7798
|
+
if (_d) throw _e;
|
|
7799
|
+
}
|
|
7800
|
+
}
|
|
7801
|
+
return _arr;
|
|
7802
|
+
}
|
|
7803
|
+
function _non_iterable_rest() {
|
|
7804
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7805
|
+
}
|
|
7806
|
+
function _object_spread(target) {
|
|
7807
|
+
for(var i = 1; i < arguments.length; i++){
|
|
7808
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
7809
|
+
var ownKeys = Object.keys(source);
|
|
7810
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
7811
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
7812
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
7813
|
+
}));
|
|
7814
|
+
}
|
|
7815
|
+
ownKeys.forEach(function(key) {
|
|
7816
|
+
_define_property(target, key, source[key]);
|
|
7817
|
+
});
|
|
7818
|
+
}
|
|
7819
|
+
return target;
|
|
7820
|
+
}
|
|
7821
|
+
function _sliced_to_array(arr, i) {
|
|
7822
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
7823
|
+
}
|
|
7824
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
7825
|
+
if (!o) return;
|
|
7826
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
7827
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7828
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7829
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7830
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
7831
|
+
}
|
|
7832
|
+
var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
7833
|
+
/** Parse the public lg.chat.event boundary, keeping arbitrary logs out of navigation. */ function parseWorkbenchViewOpenEvent(value) {
|
|
7834
|
+
if (!value || typeof value !== "object" || Array.isArray(value) || !("type" in value) || value.type !== WORKBENCH_VIEW_OPEN_EVENT || !("viewKey" in value) || typeof value.viewKey !== "string" || !value.viewKey.trim() || !("projectId" in value) || typeof value.projectId !== "string" || !value.projectId.trim()) return null;
|
|
7835
|
+
if ("conversationId" in value && typeof value.conversationId !== "string") return null;
|
|
7836
|
+
if ("selectionId" in value && typeof value.selectionId !== "string") return null;
|
|
7837
|
+
var parameters = {};
|
|
7838
|
+
if ("parameters" in value) {
|
|
7839
|
+
if (!value.parameters || typeof value.parameters !== "object" || Array.isArray(value.parameters)) return null;
|
|
7840
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
7841
|
+
try {
|
|
7842
|
+
for(var _iterator = Object.entries(value.parameters)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
7843
|
+
var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], item = _step_value[1];
|
|
7844
|
+
if (isViewScalar(item)) parameters[key] = item;
|
|
7845
|
+
else if (Array.isArray(item) && item.every(isViewScalar)) parameters[key] = item;
|
|
7846
|
+
else return null;
|
|
7847
|
+
}
|
|
7848
|
+
} catch (err) {
|
|
7849
|
+
_didIteratorError = true;
|
|
7850
|
+
_iteratorError = err;
|
|
7851
|
+
} finally{
|
|
7852
|
+
try {
|
|
7853
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
7854
|
+
_iterator.return();
|
|
7855
|
+
}
|
|
7856
|
+
} finally{
|
|
7857
|
+
if (_didIteratorError) {
|
|
7858
|
+
throw _iteratorError;
|
|
7859
|
+
}
|
|
7860
|
+
}
|
|
7861
|
+
}
|
|
7862
|
+
}
|
|
7863
|
+
return _object_spread({
|
|
7864
|
+
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
7865
|
+
viewKey: value.viewKey,
|
|
7866
|
+
projectId: value.projectId
|
|
7867
|
+
}, "conversationId" in value ? {
|
|
7868
|
+
conversationId: value.conversationId
|
|
7869
|
+
} : {}, "selectionId" in value ? {
|
|
7870
|
+
selectionId: value.selectionId
|
|
7871
|
+
} : {}, "parameters" in value ? {
|
|
7872
|
+
parameters: parameters
|
|
7873
|
+
} : {});
|
|
7874
|
+
}
|
|
7875
|
+
function isViewScalar(value) {
|
|
7876
|
+
return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
|
|
7877
|
+
}
|
|
7878
|
+
|
|
7120
7879
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
7121
7880
|
|
|
7122
7881
|
exports.AGENT_PROFILE_TABS_SLOT = AGENT_PROFILE_TABS_SLOT;
|
|
7882
|
+
exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
|
|
7123
7883
|
exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
|
|
7124
7884
|
exports.API_PRINCIPAL_USER_ID_HEADER = API_PRINCIPAL_USER_ID_HEADER;
|
|
7125
7885
|
exports.ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = ASSISTANT_CHAT_SEND_MESSAGE_COMMAND;
|
|
@@ -7140,6 +7900,7 @@ exports.CONTEXT_COMPRESSION_MIDDLEWARE_NAME = CONTEXT_COMPRESSION_MIDDLEWARE_NAM
|
|
|
7140
7900
|
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
7141
7901
|
exports.COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING = COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING;
|
|
7142
7902
|
exports.COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING = COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING;
|
|
7903
|
+
exports.ChatThreadPurpose = ChatThreadPurpose;
|
|
7143
7904
|
exports.DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS = DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS;
|
|
7144
7905
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
7145
7906
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
@@ -7148,6 +7909,7 @@ exports.DEFAULT_INVITE_EXPIRY_PERIOD = DEFAULT_INVITE_EXPIRY_PERIOD;
|
|
|
7148
7909
|
exports.DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG = DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG;
|
|
7149
7910
|
exports.DEFAULT_KNOWLEDGEBASE_FAQ_RECALL = DEFAULT_KNOWLEDGEBASE_FAQ_RECALL;
|
|
7150
7911
|
exports.DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG = DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG;
|
|
7912
|
+
exports.DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER;
|
|
7151
7913
|
exports.DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT = DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT;
|
|
7152
7914
|
exports.DEFAULT_KNOWLEDGE_RRF_WEIGHTS = DEFAULT_KNOWLEDGE_RRF_WEIGHTS;
|
|
7153
7915
|
exports.DEFAULT_KNOWLEDGE_TEXT_SPLITTER = DEFAULT_KNOWLEDGE_TEXT_SPLITTER;
|
|
@@ -7166,6 +7928,7 @@ exports.DEFAULT_XPERT_WORKSPACE_DATA_SCOPE = DEFAULT_XPERT_WORKSPACE_DATA_SCOPE;
|
|
|
7166
7928
|
exports.ENTERPRISE_H5_PLATFORMS = ENTERPRISE_H5_PLATFORMS;
|
|
7167
7929
|
exports.FEEDBACK_LEARNING_STRATEGY = FEEDBACK_LEARNING_STRATEGY;
|
|
7168
7930
|
exports.FILE_VARIABLES = FILE_VARIABLES;
|
|
7931
|
+
exports.GENERAL_PROJECT_TYPE = GENERAL_PROJECT_TYPE;
|
|
7169
7932
|
exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
7170
7933
|
exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
|
|
7171
7934
|
exports.HUMAN_PROPOSAL_STRATEGY = HUMAN_PROPOSAL_STRATEGY;
|
|
@@ -7274,6 +8037,7 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
7274
8037
|
exports.PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY = PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY;
|
|
7275
8038
|
exports.PLUGIN_MARKETPLACE_CATEGORIES = PLUGIN_MARKETPLACE_CATEGORIES;
|
|
7276
8039
|
exports.PLUGIN_MARKETPLACE_INSTALLATION_POLICY = PLUGIN_MARKETPLACE_INSTALLATION_POLICY;
|
|
8040
|
+
exports.PLUGIN_MARKETPLACE_SUBCATEGORIES = PLUGIN_MARKETPLACE_SUBCATEGORIES;
|
|
7277
8041
|
exports.PLUGIN_MCP_TOOL_APPROVAL_MODE = PLUGIN_MCP_TOOL_APPROVAL_MODE;
|
|
7278
8042
|
exports.PLUGIN_RESOURCE_ERROR_CODE = PLUGIN_RESOURCE_ERROR_CODE;
|
|
7279
8043
|
exports.PLUGIN_RESOURCE_INSTALLATION_STATUS = PLUGIN_RESOURCE_INSTALLATION_STATUS;
|
|
@@ -7281,10 +8045,12 @@ exports.PLUGIN_RESOURCE_RUNTIME_TYPE = PLUGIN_RESOURCE_RUNTIME_TYPE;
|
|
|
7281
8045
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
7282
8046
|
exports.PermissionGroups = PermissionGroups;
|
|
7283
8047
|
exports.RUNTIME_RESTART_CONFIRMATION = RUNTIME_RESTART_CONFIRMATION;
|
|
8048
|
+
exports.SANDBOX_FILE_OUTPUT_RULES = SANDBOX_FILE_OUTPUT_RULES;
|
|
7284
8049
|
exports.SANDBOX_MANAGED_SERVICE_STATUSES = SANDBOX_MANAGED_SERVICE_STATUSES;
|
|
7285
8050
|
exports.SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES;
|
|
7286
8051
|
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
7287
8052
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
8053
|
+
exports.SKILLS_MIDDLEWARE_NAME = SKILLS_MIDDLEWARE_NAME;
|
|
7288
8054
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
7289
8055
|
exports.STATE_SYS_AGENT_WORKSPACE_PATH = STATE_SYS_AGENT_WORKSPACE_PATH;
|
|
7290
8056
|
exports.STATE_SYS_MEMORY_WORKSPACE_PATH = STATE_SYS_MEMORY_WORKSPACE_PATH;
|
|
@@ -7309,12 +8075,16 @@ exports.TranslationLanguageMap = TranslationLanguageMap;
|
|
|
7309
8075
|
exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
|
|
7310
8076
|
exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
|
|
7311
8077
|
exports.VariableOperations = VariableOperations;
|
|
8078
|
+
exports.WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET;
|
|
8079
|
+
exports.WORKBENCH_AGENT_EVOLUTION_TARGET = WORKBENCH_AGENT_EVOLUTION_TARGET;
|
|
7312
8080
|
exports.WORKBENCH_ASSISTANT_CONVERSATION_TARGET = WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
|
|
8081
|
+
exports.WORKBENCH_ASSISTANT_EXECUTION_TARGET = WORKBENCH_ASSISTANT_EXECUTION_TARGET;
|
|
7313
8082
|
exports.WORKBENCH_ASSISTANT_PROJECT_TARGET = WORKBENCH_ASSISTANT_PROJECT_TARGET;
|
|
7314
8083
|
exports.WORKBENCH_EXTENSION_VIEW_TARGET = WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
7315
8084
|
exports.WORKBENCH_FILE_OPEN_COMMAND = WORKBENCH_FILE_OPEN_COMMAND;
|
|
7316
8085
|
exports.WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET;
|
|
7317
8086
|
exports.WORKBENCH_NAVIGATION_OPEN_COMMAND = WORKBENCH_NAVIGATION_OPEN_COMMAND;
|
|
8087
|
+
exports.WORKBENCH_VIEW_OPEN_EVENT = WORKBENCH_VIEW_OPEN_EVENT;
|
|
7318
8088
|
exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
|
|
7319
8089
|
exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER;
|
|
7320
8090
|
exports.XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
|
|
@@ -7357,6 +8127,7 @@ exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledS
|
|
|
7357
8127
|
exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
|
|
7358
8128
|
exports.filterMessageText = filterMessageText;
|
|
7359
8129
|
exports.findStartNodes = findStartNodes;
|
|
8130
|
+
exports.forecastProjectTasks = forecastProjectTasks;
|
|
7360
8131
|
exports.genJSONParseKey = genJSONParseKey;
|
|
7361
8132
|
exports.genJSONStringifyKey = genJSONStringifyKey;
|
|
7362
8133
|
exports.genListOperatorKey = genListOperatorKey;
|
|
@@ -7428,12 +8199,14 @@ exports.isNil = isNil$1;
|
|
|
7428
8199
|
exports.isOrganizationSharedXpertWorkspace = isOrganizationSharedXpertWorkspace;
|
|
7429
8200
|
exports.isOutputTokenParameter = isOutputTokenParameter;
|
|
7430
8201
|
exports.isPreparedCandidate = isPreparedCandidate;
|
|
8202
|
+
exports.isPromptWorkflowScenarios = isPromptWorkflowScenarios;
|
|
7431
8203
|
exports.isProviderEvaluation = isProviderEvaluation;
|
|
7432
8204
|
exports.isProviderRelease = isProviderRelease;
|
|
7433
8205
|
exports.isReplayEvaluation = isReplayEvaluation;
|
|
7434
8206
|
exports.isRequiredMiddleware = isRequiredMiddleware;
|
|
7435
8207
|
exports.isRouterKey = isRouterKey;
|
|
7436
8208
|
exports.isRunnableThreadGoalStatus = isRunnableThreadGoalStatus;
|
|
8209
|
+
exports.isScopedPromptCapabilityConfig = isScopedPromptCapabilityConfig;
|
|
7437
8210
|
exports.isStagedRelease = isStagedRelease;
|
|
7438
8211
|
exports.isString = isString;
|
|
7439
8212
|
exports.isSystemManagedAssistant = isSystemManagedAssistant;
|
|
@@ -7464,14 +8237,19 @@ exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
|
7464
8237
|
exports.normalizeModelParameterValue = normalizeModelParameterValue;
|
|
7465
8238
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
7466
8239
|
exports.omitXpertRelations = omitXpertRelations;
|
|
8240
|
+
exports.orderAssistantXperts = orderAssistantXperts;
|
|
7467
8241
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
8242
|
+
exports.parsePromptCapabilityConfig = parsePromptCapabilityConfig;
|
|
8243
|
+
exports.parsePromptCapabilitySelection = parsePromptCapabilitySelection;
|
|
7468
8244
|
exports.parseRuntimeSkillCapabilityId = parseRuntimeSkillCapabilityId;
|
|
8245
|
+
exports.parseWorkbenchViewOpenEvent = parseWorkbenchViewOpenEvent;
|
|
7469
8246
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
7470
8247
|
exports.resolveDraftPrimaryAgent = resolveDraftPrimaryAgent;
|
|
7471
8248
|
exports.resolveDraftRuntimeGraph = resolveDraftRuntimeGraph;
|
|
7472
8249
|
exports.resolveI18nText = resolveI18nText;
|
|
7473
8250
|
exports.resolveMessageAppendContext = resolveMessageAppendContext;
|
|
7474
8251
|
exports.resolveModelParameterOptions = resolveModelParameterOptions;
|
|
8252
|
+
exports.resolvePromptWorkflowCapabilities = resolvePromptWorkflowCapabilities;
|
|
7475
8253
|
exports.resolveRuntimeXpert = resolveRuntimeXpert;
|
|
7476
8254
|
exports.setStateVariable = setStateVariable;
|
|
7477
8255
|
exports.shortTitle = shortTitle;
|
|
@@ -7480,5 +8258,6 @@ exports.transformInstallation = transformInstallation;
|
|
|
7480
8258
|
exports.updateAssistantBindingSkillPreferences = updateAssistantBindingSkillPreferences;
|
|
7481
8259
|
exports.updateAssistantBindingToolPreferences = updateAssistantBindingToolPreferences;
|
|
7482
8260
|
exports.uuid = uuid;
|
|
8261
|
+
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
7483
8262
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
7484
8263
|
exports.xpertLabel = xpertLabel;
|