@xpert-ai/contracts 3.18.5 → 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 +1045 -216
- package/index.esm.js +1023 -217
- 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-doc.model.d.ts +18 -1
- package/src/ai/knowledge-filter.model.d.ts +26 -1
- package/src/ai/knowledge-graph.model.d.ts +18 -1
- package/src/ai/knowledge-keyword-analyzer.model.d.ts +18 -0
- package/src/ai/knowledge-parser-selection.d.ts +6 -0
- package/src/ai/knowledgebase.model.d.ts +18 -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,6 +3415,31 @@ var _retrieval_recall_contentScope;
|
|
|
2912
3415
|
});
|
|
2913
3416
|
}
|
|
2914
3417
|
|
|
3418
|
+
function _array_like_to_array$9(arr, len) {
|
|
3419
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3420
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3421
|
+
return arr2;
|
|
3422
|
+
}
|
|
3423
|
+
function _array_without_holes$3(arr) {
|
|
3424
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
3425
|
+
}
|
|
3426
|
+
function _iterable_to_array$5(iter) {
|
|
3427
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3428
|
+
}
|
|
3429
|
+
function _non_iterable_spread$3() {
|
|
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.");
|
|
3431
|
+
}
|
|
3432
|
+
function _to_consumable_array$3(arr) {
|
|
3433
|
+
return _array_without_holes$3(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$3();
|
|
3434
|
+
}
|
|
3435
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
3436
|
+
if (!o) return;
|
|
3437
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
3438
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3439
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3440
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3441
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
3442
|
+
}
|
|
2915
3443
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
2916
3444
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
2917
3445
|
"pdf",
|
|
@@ -2942,6 +3470,7 @@ var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
|
2942
3470
|
];
|
|
2943
3471
|
var MIME_SUBTYPE_EXTENSIONS = {
|
|
2944
3472
|
plain: "txt",
|
|
3473
|
+
"x-rtf": "rtf",
|
|
2945
3474
|
msword: "doc",
|
|
2946
3475
|
"vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
|
|
2947
3476
|
"vnd.ms-word.document.macroenabled.12": "docm",
|
|
@@ -2981,16 +3510,33 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
2981
3510
|
}
|
|
2982
3511
|
return format === "pdf" ? config === null || config === void 0 ? void 0 : config.pdfParser : undefined;
|
|
2983
3512
|
}
|
|
3513
|
+
/** Existing uploader/importer defaults plus capabilities advertised by installed document parsers.
|
|
3514
|
+
* Explicit caller restrictions remain authoritative; this does not grant builtin parsing support.
|
|
3515
|
+
*/ function knowledgeUploadFileTypes(defaults, providers, accepts) {
|
|
3516
|
+
var candidates = (accepts === null || accepts === void 0 ? void 0 : accepts.length) ? accepts : _to_consumable_array$3(defaults).concat(_to_consumable_array$3(providers.flatMap(function(provider) {
|
|
3517
|
+
var _provider_supportedFileTypes;
|
|
3518
|
+
return (_provider_supportedFileTypes = provider.supportedFileTypes) !== null && _provider_supportedFileTypes !== void 0 ? _provider_supportedFileTypes : [];
|
|
3519
|
+
})));
|
|
3520
|
+
return _to_consumable_array$3(new Set(candidates.filter(function(type) {
|
|
3521
|
+
return /^\.?[a-z0-9]+$|^(application|text|image|audio|video)\/[a-z0-9.+-]+(?:;.*)?$/i.test(type.trim());
|
|
3522
|
+
}).map(function(type) {
|
|
3523
|
+
return knowledgeDocumentFileType({
|
|
3524
|
+
type: type
|
|
3525
|
+
});
|
|
3526
|
+
}).filter(function(type) {
|
|
3527
|
+
return /^[a-z0-9]+$/.test(type);
|
|
3528
|
+
})));
|
|
3529
|
+
}
|
|
2984
3530
|
|
|
2985
|
-
function _array_like_to_array$
|
|
3531
|
+
function _array_like_to_array$8(arr, len) {
|
|
2986
3532
|
if (len == null || len > arr.length) len = arr.length;
|
|
2987
3533
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2988
3534
|
return arr2;
|
|
2989
3535
|
}
|
|
2990
3536
|
function _array_without_holes$2(arr) {
|
|
2991
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3537
|
+
if (Array.isArray(arr)) return _array_like_to_array$8(arr);
|
|
2992
3538
|
}
|
|
2993
|
-
function _define_property$
|
|
3539
|
+
function _define_property$7(obj, key, value) {
|
|
2994
3540
|
if (key in obj) {
|
|
2995
3541
|
Object.defineProperty(obj, key, {
|
|
2996
3542
|
value: value,
|
|
@@ -3009,7 +3555,7 @@ function _iterable_to_array$4(iter) {
|
|
|
3009
3555
|
function _non_iterable_spread$2() {
|
|
3010
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.");
|
|
3011
3557
|
}
|
|
3012
|
-
function _object_spread$
|
|
3558
|
+
function _object_spread$6(target) {
|
|
3013
3559
|
for(var i = 1; i < arguments.length; i++){
|
|
3014
3560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3015
3561
|
var ownKeys = Object.keys(source);
|
|
@@ -3019,30 +3565,30 @@ function _object_spread$5(target) {
|
|
|
3019
3565
|
}));
|
|
3020
3566
|
}
|
|
3021
3567
|
ownKeys.forEach(function(key) {
|
|
3022
|
-
_define_property$
|
|
3568
|
+
_define_property$7(target, key, source[key]);
|
|
3023
3569
|
});
|
|
3024
3570
|
}
|
|
3025
3571
|
return target;
|
|
3026
3572
|
}
|
|
3027
3573
|
function _to_consumable_array$2(arr) {
|
|
3028
|
-
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();
|
|
3029
3575
|
}
|
|
3030
|
-
function _unsupported_iterable_to_array$
|
|
3576
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
3031
3577
|
if (!o) return;
|
|
3032
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3578
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
3033
3579
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3034
3580
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3035
3581
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3036
|
-
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);
|
|
3037
3583
|
}
|
|
3038
3584
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
3039
3585
|
if (!config) return {};
|
|
3040
|
-
return _object_spread$
|
|
3041
|
-
spreadsheet: _object_spread$
|
|
3586
|
+
return _object_spread$6({}, config.spreadsheet ? {
|
|
3587
|
+
spreadsheet: _object_spread$6({}, config.spreadsheet)
|
|
3042
3588
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
3043
3589
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
3044
3590
|
} : {}, config.questionGeneration ? {
|
|
3045
|
-
questionGeneration: _object_spread$
|
|
3591
|
+
questionGeneration: _object_spread$6({}, config.questionGeneration)
|
|
3046
3592
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
3047
3593
|
chunkLanguageHint: config.chunkLanguageHint
|
|
3048
3594
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -3056,7 +3602,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
3056
3602
|
} : {}, config.textSplitterType ? {
|
|
3057
3603
|
textSplitterType: config.textSplitterType
|
|
3058
3604
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
3059
|
-
textSplitter: _object_spread$
|
|
3605
|
+
textSplitter: _object_spread$6({}, config.chunkSize != null ? {
|
|
3060
3606
|
chunkSize: config.chunkSize
|
|
3061
3607
|
} : {}, config.chunkOverlap != null ? {
|
|
3062
3608
|
chunkOverlap: config.chunkOverlap
|
|
@@ -3068,7 +3614,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
|
|
|
3068
3614
|
} : {}, config.imageUnderstandingType ? {
|
|
3069
3615
|
imageUnderstandingType: config.imageUnderstandingType
|
|
3070
3616
|
} : {}, config.imageUnderstanding ? {
|
|
3071
|
-
imageUnderstanding: _object_spread$
|
|
3617
|
+
imageUnderstanding: _object_spread$6({}, config.imageUnderstanding)
|
|
3072
3618
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
3073
3619
|
}
|
|
3074
3620
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -3133,7 +3679,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
3133
3679
|
return letterStartSUID("KnowledgeBase_");
|
|
3134
3680
|
}
|
|
3135
3681
|
|
|
3136
|
-
function _define_property$
|
|
3682
|
+
function _define_property$6(obj, key, value) {
|
|
3137
3683
|
if (key in obj) {
|
|
3138
3684
|
Object.defineProperty(obj, key, {
|
|
3139
3685
|
value: value,
|
|
@@ -3146,7 +3692,7 @@ function _define_property$5(obj, key, value) {
|
|
|
3146
3692
|
}
|
|
3147
3693
|
return obj;
|
|
3148
3694
|
}
|
|
3149
|
-
function _object_spread$
|
|
3695
|
+
function _object_spread$5(target) {
|
|
3150
3696
|
for(var i = 1; i < arguments.length; i++){
|
|
3151
3697
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3152
3698
|
var ownKeys = Object.keys(source);
|
|
@@ -3156,7 +3702,7 @@ function _object_spread$4(target) {
|
|
|
3156
3702
|
}));
|
|
3157
3703
|
}
|
|
3158
3704
|
ownKeys.forEach(function(key) {
|
|
3159
|
-
_define_property$
|
|
3705
|
+
_define_property$6(target, key, source[key]);
|
|
3160
3706
|
});
|
|
3161
3707
|
}
|
|
3162
3708
|
return target;
|
|
@@ -3176,7 +3722,7 @@ function _object_spread$4(target) {
|
|
|
3176
3722
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
3177
3723
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
3178
3724
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
3179
|
-
var KDocumentSourceType = _object_spread$
|
|
3725
|
+
var KDocumentSourceType = _object_spread$5({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
3180
3726
|
/**
|
|
3181
3727
|
* Document type category, determine how to process the document.
|
|
3182
3728
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -3201,6 +3747,10 @@ exports.KBDocumentStatusEnum = void 0;
|
|
|
3201
3747
|
KBDocumentStatusEnum["FINISH"] = "finish";
|
|
3202
3748
|
KBDocumentStatusEnum["ERROR"] = "error";
|
|
3203
3749
|
})(exports.KBDocumentStatusEnum || (exports.KBDocumentStatusEnum = {}));
|
|
3750
|
+
var KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE = "agent-writer";
|
|
3751
|
+
/** Agent publications are inspectable; internal Wiki/FAQ backing indexes stay hidden. */ function isKnowledgeDocumentVisible(metadata) {
|
|
3752
|
+
return (metadata === null || metadata === void 0 ? void 0 : metadata.systemManaged) !== true || metadata.systemManagedType === KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE;
|
|
3753
|
+
}
|
|
3204
3754
|
function isDocumentSheet(type) {
|
|
3205
3755
|
return [
|
|
3206
3756
|
"csv",
|
|
@@ -3786,6 +4336,23 @@ var PLUGIN_MARKETPLACE_CATEGORIES = [
|
|
|
3786
4336
|
"sales",
|
|
3787
4337
|
"other"
|
|
3788
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
|
+
];
|
|
3789
4356
|
|
|
3790
4357
|
var XpertMarketplaceBusinessCategories = PLUGIN_MARKETPLACE_CATEGORIES;
|
|
3791
4358
|
var XpertMarketplaceCollaborationModes = [
|
|
@@ -3956,15 +4523,15 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
3956
4523
|
}
|
|
3957
4524
|
|
|
3958
4525
|
// Helpers
|
|
3959
|
-
function _array_like_to_array$
|
|
4526
|
+
function _array_like_to_array$7(arr, len) {
|
|
3960
4527
|
if (len == null || len > arr.length) len = arr.length;
|
|
3961
4528
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3962
4529
|
return arr2;
|
|
3963
4530
|
}
|
|
3964
4531
|
function _array_without_holes$1(arr) {
|
|
3965
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4532
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
3966
4533
|
}
|
|
3967
|
-
function _define_property$
|
|
4534
|
+
function _define_property$5(obj, key, value) {
|
|
3968
4535
|
if (key in obj) {
|
|
3969
4536
|
Object.defineProperty(obj, key, {
|
|
3970
4537
|
value: value,
|
|
@@ -3983,7 +4550,7 @@ function _iterable_to_array$3(iter) {
|
|
|
3983
4550
|
function _non_iterable_spread$1() {
|
|
3984
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.");
|
|
3985
4552
|
}
|
|
3986
|
-
function _object_spread$
|
|
4553
|
+
function _object_spread$4(target) {
|
|
3987
4554
|
for(var i = 1; i < arguments.length; i++){
|
|
3988
4555
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3989
4556
|
var ownKeys = Object.keys(source);
|
|
@@ -3993,7 +4560,7 @@ function _object_spread$3(target) {
|
|
|
3993
4560
|
}));
|
|
3994
4561
|
}
|
|
3995
4562
|
ownKeys.forEach(function(key) {
|
|
3996
|
-
_define_property$
|
|
4563
|
+
_define_property$5(target, key, source[key]);
|
|
3997
4564
|
});
|
|
3998
4565
|
}
|
|
3999
4566
|
return target;
|
|
@@ -4045,15 +4612,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
4045
4612
|
return target;
|
|
4046
4613
|
}
|
|
4047
4614
|
function _to_consumable_array$1(arr) {
|
|
4048
|
-
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();
|
|
4049
4616
|
}
|
|
4050
|
-
function _unsupported_iterable_to_array$
|
|
4617
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
4051
4618
|
if (!o) return;
|
|
4052
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4619
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
4053
4620
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4054
4621
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4055
4622
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4056
|
-
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);
|
|
4057
4624
|
}
|
|
4058
4625
|
function omitXpertRelations(xpert) {
|
|
4059
4626
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -4092,7 +4659,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
4092
4659
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
4093
4660
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
4094
4661
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
4095
|
-
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 : {}), {
|
|
4096
4663
|
id: xpert.id,
|
|
4097
4664
|
tenantId: xpert.tenantId,
|
|
4098
4665
|
organizationId: xpert.organizationId,
|
|
@@ -4376,9 +4943,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
4376
4943
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
4377
4944
|
replacedNode = true;
|
|
4378
4945
|
var _node_entity;
|
|
4379
|
-
return _object_spread_props$3(_object_spread$
|
|
4946
|
+
return _object_spread_props$3(_object_spread$4({}, node), {
|
|
4380
4947
|
key: targetKey,
|
|
4381
|
-
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), {
|
|
4382
4949
|
key: targetKey
|
|
4383
4950
|
})
|
|
4384
4951
|
});
|
|
@@ -4394,17 +4961,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
4394
4961
|
if (from === connection.from && to === connection.to) {
|
|
4395
4962
|
return connection;
|
|
4396
4963
|
}
|
|
4397
|
-
return _object_spread_props$3(_object_spread$
|
|
4964
|
+
return _object_spread_props$3(_object_spread$4({}, connection), {
|
|
4398
4965
|
from: from,
|
|
4399
4966
|
to: to,
|
|
4400
4967
|
key: "".concat(from, "/").concat(to)
|
|
4401
4968
|
});
|
|
4402
4969
|
});
|
|
4403
|
-
return _object_spread_props$3(_object_spread$
|
|
4404
|
-
team: draft.team ? _object_spread_props$3(_object_spread$
|
|
4405
|
-
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), {
|
|
4406
4973
|
key: targetKey
|
|
4407
|
-
}) : _object_spread_props$3(_object_spread$
|
|
4974
|
+
}) : _object_spread_props$3(_object_spread$4({}, agent), {
|
|
4408
4975
|
key: targetKey
|
|
4409
4976
|
})
|
|
4410
4977
|
}) : draft.team,
|
|
@@ -4486,11 +5053,12 @@ exports.MCPServerType = void 0;
|
|
|
4486
5053
|
MCPServerType["CODE"] = "code";
|
|
4487
5054
|
MCPServerType["HTTP"] = "http";
|
|
4488
5055
|
})(exports.MCPServerType || (exports.MCPServerType = {}));
|
|
4489
|
-
var MCP_CONSUMER_AUTH_TYPES = [
|
|
5056
|
+
/** Supported authentication modes for a host-consumed MCP server. */ var MCP_CONSUMER_AUTH_TYPES = [
|
|
4490
5057
|
"none",
|
|
4491
5058
|
"manual_header",
|
|
4492
5059
|
"api_key",
|
|
4493
|
-
"oauth"
|
|
5060
|
+
"oauth",
|
|
5061
|
+
"connector"
|
|
4494
5062
|
];
|
|
4495
5063
|
var MCP_APP_RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
4496
5064
|
|
|
@@ -4542,6 +5110,11 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4542
5110
|
XpertProjectAutomationRunStatusEnum["CANCELLED"] = "cancelled";
|
|
4543
5111
|
})(exports.XpertProjectAutomationRunStatusEnum || (exports.XpertProjectAutomationRunStatusEnum = {}));
|
|
4544
5112
|
|
|
5113
|
+
var GENERAL_PROJECT_TYPE = {
|
|
5114
|
+
applicationKey: "platform",
|
|
5115
|
+
projectTypeKey: "general"
|
|
5116
|
+
};
|
|
5117
|
+
|
|
4545
5118
|
/**
|
|
4546
5119
|
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
4547
5120
|
* preserving explicit chunkIndex order whenever it is available.
|
|
@@ -4549,7 +5122,7 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4549
5122
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
4550
5123
|
* @param documents - A flat array of DocumentInterface objects
|
|
4551
5124
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
4552
|
-
*/ function _define_property$
|
|
5125
|
+
*/ function _define_property$4(obj, key, value) {
|
|
4553
5126
|
if (key in obj) {
|
|
4554
5127
|
Object.defineProperty(obj, key, {
|
|
4555
5128
|
value: value,
|
|
@@ -4562,7 +5135,7 @@ exports.XpertProjectAutomationRunStatusEnum = void 0;
|
|
|
4562
5135
|
}
|
|
4563
5136
|
return obj;
|
|
4564
5137
|
}
|
|
4565
|
-
function _object_spread$
|
|
5138
|
+
function _object_spread$3(target) {
|
|
4566
5139
|
for(var i = 1; i < arguments.length; i++){
|
|
4567
5140
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4568
5141
|
var ownKeys = Object.keys(source);
|
|
@@ -4572,7 +5145,7 @@ function _object_spread$2(target) {
|
|
|
4572
5145
|
}));
|
|
4573
5146
|
}
|
|
4574
5147
|
ownKeys.forEach(function(key) {
|
|
4575
|
-
_define_property$
|
|
5148
|
+
_define_property$4(target, key, source[key]);
|
|
4576
5149
|
});
|
|
4577
5150
|
}
|
|
4578
5151
|
return target;
|
|
@@ -4605,8 +5178,8 @@ function buildChunkTree(documents) {
|
|
|
4605
5178
|
documents.forEach(function(doc, index) {
|
|
4606
5179
|
var chunkId = getChunkNodeId(doc);
|
|
4607
5180
|
if (chunkId) {
|
|
4608
|
-
map.set(chunkId, _object_spread_props$2(_object_spread$
|
|
4609
|
-
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), {
|
|
4610
5183
|
chunkId: chunkId,
|
|
4611
5184
|
children: []
|
|
4612
5185
|
})
|
|
@@ -4780,30 +5353,30 @@ exports.KnowledgeGraphIndexJobStatus = void 0;
|
|
|
4780
5353
|
var KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE = 100;
|
|
4781
5354
|
|
|
4782
5355
|
// Skill types
|
|
4783
|
-
function _array_like_to_array$
|
|
5356
|
+
function _array_like_to_array$6(arr, len) {
|
|
4784
5357
|
if (len == null || len > arr.length) len = arr.length;
|
|
4785
5358
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4786
5359
|
return arr2;
|
|
4787
5360
|
}
|
|
4788
|
-
function _array_with_holes$
|
|
5361
|
+
function _array_with_holes$6(arr) {
|
|
4789
5362
|
if (Array.isArray(arr)) return arr;
|
|
4790
5363
|
}
|
|
4791
5364
|
function _iterable_to_array$2(iter) {
|
|
4792
5365
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4793
5366
|
}
|
|
4794
|
-
function _non_iterable_rest$
|
|
5367
|
+
function _non_iterable_rest$6() {
|
|
4795
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.");
|
|
4796
5369
|
}
|
|
4797
5370
|
function _to_array$1(arr) {
|
|
4798
|
-
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();
|
|
4799
5372
|
}
|
|
4800
|
-
function _unsupported_iterable_to_array$
|
|
5373
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
4801
5374
|
if (!o) return;
|
|
4802
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5375
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
4803
5376
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4804
5377
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4805
5378
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4806
|
-
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);
|
|
4807
5380
|
}
|
|
4808
5381
|
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
4809
5382
|
function createRuntimeSkillCapabilityId(source) {
|
|
@@ -4837,15 +5410,15 @@ function genXpertSkillKey() {
|
|
|
4837
5410
|
return letterStartSUID("Skill_");
|
|
4838
5411
|
}
|
|
4839
5412
|
|
|
4840
|
-
function _array_like_to_array$
|
|
5413
|
+
function _array_like_to_array$5(arr, len) {
|
|
4841
5414
|
if (len == null || len > arr.length) len = arr.length;
|
|
4842
5415
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4843
5416
|
return arr2;
|
|
4844
5417
|
}
|
|
4845
|
-
function _array_with_holes$
|
|
5418
|
+
function _array_with_holes$5(arr) {
|
|
4846
5419
|
if (Array.isArray(arr)) return arr;
|
|
4847
5420
|
}
|
|
4848
|
-
function _iterable_to_array_limit$
|
|
5421
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
4849
5422
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4850
5423
|
if (_i == null) return;
|
|
4851
5424
|
var _arr = [];
|
|
@@ -4869,19 +5442,19 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
4869
5442
|
}
|
|
4870
5443
|
return _arr;
|
|
4871
5444
|
}
|
|
4872
|
-
function _non_iterable_rest$
|
|
5445
|
+
function _non_iterable_rest$5() {
|
|
4873
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.");
|
|
4874
5447
|
}
|
|
4875
|
-
function _sliced_to_array$
|
|
4876
|
-
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();
|
|
4877
5450
|
}
|
|
4878
|
-
function _unsupported_iterable_to_array$
|
|
5451
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
4879
5452
|
if (!o) return;
|
|
4880
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5453
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
4881
5454
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4882
5455
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4883
5456
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4884
|
-
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);
|
|
4885
5458
|
}
|
|
4886
5459
|
var IGNORED_BOOLEAN_FLAGS = new Set([
|
|
4887
5460
|
"-y",
|
|
@@ -5096,7 +5669,7 @@ function parseGithubSource(source) {
|
|
|
5096
5669
|
return parseGithubUrl(raw);
|
|
5097
5670
|
}
|
|
5098
5671
|
if (/^[^/\s]+\/[^/\s]+$/.test(raw)) {
|
|
5099
|
-
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];
|
|
5100
5673
|
var repo = repoSegment.replace(/\.git$/i, "");
|
|
5101
5674
|
if (!repo) {
|
|
5102
5675
|
throw new Error("GitHub repository source must include owner and repository name");
|
|
@@ -5148,7 +5721,15 @@ function isLocalPath(value) {
|
|
|
5148
5721
|
return value.startsWith(".") || value.startsWith("/") || value.startsWith("~") || /^file:/i.test(value) || /^[a-z]:[\\/]/i.test(value);
|
|
5149
5722
|
}
|
|
5150
5723
|
|
|
5151
|
-
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) {
|
|
5152
5733
|
if (key in obj) {
|
|
5153
5734
|
Object.defineProperty(obj, key, {
|
|
5154
5735
|
value: value,
|
|
@@ -5161,7 +5742,7 @@ function _define_property$2(obj, key, value) {
|
|
|
5161
5742
|
}
|
|
5162
5743
|
return obj;
|
|
5163
5744
|
}
|
|
5164
|
-
function _object_spread$
|
|
5745
|
+
function _object_spread$2(target) {
|
|
5165
5746
|
for(var i = 1; i < arguments.length; i++){
|
|
5166
5747
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5167
5748
|
var ownKeys = Object.keys(source);
|
|
@@ -5171,7 +5752,7 @@ function _object_spread$1(target) {
|
|
|
5171
5752
|
}));
|
|
5172
5753
|
}
|
|
5173
5754
|
ownKeys.forEach(function(key) {
|
|
5174
|
-
_define_property$
|
|
5755
|
+
_define_property$3(target, key, source[key]);
|
|
5175
5756
|
});
|
|
5176
5757
|
}
|
|
5177
5758
|
return target;
|
|
@@ -5197,6 +5778,7 @@ function _object_spread_props$1(target, source) {
|
|
|
5197
5778
|
}
|
|
5198
5779
|
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
5199
5780
|
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
5781
|
+
var SKILLS_MIDDLEWARE_NAME = "skillsMiddleware";
|
|
5200
5782
|
function isMiddlewareToolEnabled(config) {
|
|
5201
5783
|
if (typeof config === "boolean") {
|
|
5202
5784
|
return config;
|
|
@@ -5225,8 +5807,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
5225
5807
|
if (provider === entity.provider) {
|
|
5226
5808
|
return node;
|
|
5227
5809
|
}
|
|
5228
|
-
return _object_spread_props$1(_object_spread$
|
|
5229
|
-
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), {
|
|
5230
5812
|
provider: provider
|
|
5231
5813
|
})
|
|
5232
5814
|
});
|
|
@@ -5276,18 +5858,18 @@ function isContextCompressionComponentData(value) {
|
|
|
5276
5858
|
"job"
|
|
5277
5859
|
];
|
|
5278
5860
|
|
|
5279
|
-
function _array_like_to_array$
|
|
5861
|
+
function _array_like_to_array$4(arr, len) {
|
|
5280
5862
|
if (len == null || len > arr.length) len = arr.length;
|
|
5281
5863
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5282
5864
|
return arr2;
|
|
5283
5865
|
}
|
|
5284
|
-
function _array_with_holes$
|
|
5866
|
+
function _array_with_holes$4(arr) {
|
|
5285
5867
|
if (Array.isArray(arr)) return arr;
|
|
5286
5868
|
}
|
|
5287
5869
|
function _array_without_holes(arr) {
|
|
5288
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5870
|
+
if (Array.isArray(arr)) return _array_like_to_array$4(arr);
|
|
5289
5871
|
}
|
|
5290
|
-
function _define_property$
|
|
5872
|
+
function _define_property$2(obj, key, value) {
|
|
5291
5873
|
if (key in obj) {
|
|
5292
5874
|
Object.defineProperty(obj, key, {
|
|
5293
5875
|
value: value,
|
|
@@ -5303,7 +5885,7 @@ function _define_property$1(obj, key, value) {
|
|
|
5303
5885
|
function _iterable_to_array$1(iter) {
|
|
5304
5886
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
5305
5887
|
}
|
|
5306
|
-
function _iterable_to_array_limit$
|
|
5888
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
5307
5889
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5308
5890
|
if (_i == null) return;
|
|
5309
5891
|
var _arr = [];
|
|
@@ -5327,13 +5909,13 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
5327
5909
|
}
|
|
5328
5910
|
return _arr;
|
|
5329
5911
|
}
|
|
5330
|
-
function _non_iterable_rest$
|
|
5912
|
+
function _non_iterable_rest$4() {
|
|
5331
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.");
|
|
5332
5914
|
}
|
|
5333
5915
|
function _non_iterable_spread() {
|
|
5334
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.");
|
|
5335
5917
|
}
|
|
5336
|
-
function _object_spread(target) {
|
|
5918
|
+
function _object_spread$1(target) {
|
|
5337
5919
|
for(var i = 1; i < arguments.length; i++){
|
|
5338
5920
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5339
5921
|
var ownKeys = Object.keys(source);
|
|
@@ -5343,7 +5925,7 @@ function _object_spread(target) {
|
|
|
5343
5925
|
}));
|
|
5344
5926
|
}
|
|
5345
5927
|
ownKeys.forEach(function(key) {
|
|
5346
|
-
_define_property$
|
|
5928
|
+
_define_property$2(target, key, source[key]);
|
|
5347
5929
|
});
|
|
5348
5930
|
}
|
|
5349
5931
|
return target;
|
|
@@ -5394,19 +5976,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
5394
5976
|
}
|
|
5395
5977
|
return target;
|
|
5396
5978
|
}
|
|
5397
|
-
function _sliced_to_array$
|
|
5398
|
-
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();
|
|
5399
5981
|
}
|
|
5400
5982
|
function _to_consumable_array(arr) {
|
|
5401
|
-
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();
|
|
5402
5984
|
}
|
|
5403
|
-
function _unsupported_iterable_to_array$
|
|
5985
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
5404
5986
|
if (!o) return;
|
|
5405
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5987
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
5406
5988
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5407
5989
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5408
5990
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5409
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5991
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
5410
5992
|
}
|
|
5411
5993
|
function isNil(value) {
|
|
5412
5994
|
return value === null || value === undefined;
|
|
@@ -5477,7 +6059,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
5477
6059
|
if (typeof content !== "string") {
|
|
5478
6060
|
return content;
|
|
5479
6061
|
}
|
|
5480
|
-
return _object_spread({
|
|
6062
|
+
return _object_spread$1({
|
|
5481
6063
|
type: "text",
|
|
5482
6064
|
text: content
|
|
5483
6065
|
}, context.streamId ? {
|
|
@@ -5523,6 +6105,7 @@ function getContentChunkSeparator(previous, nextText, joinHint) {
|
|
|
5523
6105
|
return "";
|
|
5524
6106
|
}
|
|
5525
6107
|
function stringifySingle(content) {
|
|
6108
|
+
if (chatkitTypes.isFileActivityContent(content)) return "";
|
|
5526
6109
|
if (content.type === "text") {
|
|
5527
6110
|
return content.text;
|
|
5528
6111
|
}
|
|
@@ -5541,7 +6124,7 @@ function filterText(content) {
|
|
|
5541
6124
|
return "";
|
|
5542
6125
|
}
|
|
5543
6126
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
5544
|
-
return _object_spread(_object_spread_props(_object_spread({}, previous), {
|
|
6127
|
+
return _object_spread$1(_object_spread_props(_object_spread$1({}, previous), {
|
|
5545
6128
|
text: "".concat(previous.text).concat(incoming.text)
|
|
5546
6129
|
}), !previous.id && incoming.id ? {
|
|
5547
6130
|
id: incoming.id
|
|
@@ -5553,7 +6136,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
5553
6136
|
}
|
|
5554
6137
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
5555
6138
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
5556
|
-
return _object_spread_props(_object_spread({}, incoming), {
|
|
6139
|
+
return _object_spread_props(_object_spread$1({}, incoming), {
|
|
5557
6140
|
text: incoming.text.slice(1)
|
|
5558
6141
|
});
|
|
5559
6142
|
}
|
|
@@ -5563,21 +6146,21 @@ function mergeComponentData(previous, incoming) {
|
|
|
5563
6146
|
var _previous_data, _incoming_data;
|
|
5564
6147
|
var _incoming_data1;
|
|
5565
6148
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
5566
|
-
var _param = _sliced_to_array$
|
|
6149
|
+
var _param = _sliced_to_array$3(param, 2), key = _param[0], value = _param[1];
|
|
5567
6150
|
if (!isNil(value)) {
|
|
5568
6151
|
acc[key] = value;
|
|
5569
6152
|
}
|
|
5570
6153
|
return acc;
|
|
5571
6154
|
}, {});
|
|
5572
6155
|
var _previous_data1;
|
|
5573
|
-
return _object_spread_props(_object_spread({}, previous, incoming), {
|
|
5574
|
-
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), {
|
|
5575
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)
|
|
5576
6159
|
})
|
|
5577
6160
|
});
|
|
5578
6161
|
}
|
|
5579
6162
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
5580
|
-
return _object_spread({
|
|
6163
|
+
return _object_spread$1({
|
|
5581
6164
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
5582
6165
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
5583
6166
|
streamId: String(content.id)
|
|
@@ -5585,10 +6168,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
5585
6168
|
}
|
|
5586
6169
|
function resolveMessageAppendContext(options) {
|
|
5587
6170
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
5588
|
-
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), {
|
|
5589
6172
|
streamId: options.fallbackStreamId
|
|
5590
6173
|
}) : inferredContext;
|
|
5591
|
-
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), {
|
|
5592
6175
|
joinHint: "none"
|
|
5593
6176
|
}) : appendContext;
|
|
5594
6177
|
return {
|
|
@@ -5609,10 +6192,10 @@ function resolveMessageAppendContext(options) {
|
|
|
5609
6192
|
var previous = initial;
|
|
5610
6193
|
return {
|
|
5611
6194
|
resolve: function resolve(options) {
|
|
5612
|
-
var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread({}, options), {
|
|
6195
|
+
var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread$1({}, options), {
|
|
5613
6196
|
previous: previous
|
|
5614
6197
|
}));
|
|
5615
|
-
previous = resolved.appendContext;
|
|
6198
|
+
if (!chatkitTypes.isFileActivityContent(options.incoming)) previous = resolved.appendContext;
|
|
5616
6199
|
return resolved;
|
|
5617
6200
|
},
|
|
5618
6201
|
reset: function reset() {
|
|
@@ -5633,14 +6216,19 @@ function resolveMessageAppendContext(options) {
|
|
|
5633
6216
|
* - Applies context-aware merge rules for text/reasoning/component chunks.
|
|
5634
6217
|
* - `previous` must be supplied by caller when same-stream join inference is needed.
|
|
5635
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
|
+
}
|
|
5636
6224
|
aiMessage.status = "answering";
|
|
5637
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, [
|
|
5638
6226
|
"previous"
|
|
5639
6227
|
]);
|
|
5640
|
-
var appendContext = _object_spread({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
6228
|
+
var appendContext = _object_spread$1({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
5641
6229
|
var _appendContext_joinHint;
|
|
5642
6230
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
5643
|
-
var messageContext = joinHint ? _object_spread_props(_object_spread({}, appendContext), {
|
|
6231
|
+
var messageContext = joinHint ? _object_spread_props(_object_spread$1({}, appendContext), {
|
|
5644
6232
|
joinHint: joinHint
|
|
5645
6233
|
}) : appendContext;
|
|
5646
6234
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -5649,7 +6237,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5649
6237
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
5650
6238
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
5651
6239
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
5652
|
-
var mergedReasoning = _object_spread_props(_object_spread({}, lastReasoning), {
|
|
6240
|
+
var mergedReasoning = _object_spread_props(_object_spread$1({}, lastReasoning), {
|
|
5653
6241
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
5654
6242
|
});
|
|
5655
6243
|
aiMessage.reasoning = _to_consumable_array(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -5670,7 +6258,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5670
6258
|
return isTextContent(item) && item.id === content.id;
|
|
5671
6259
|
});
|
|
5672
6260
|
if (index > -1) {
|
|
5673
|
-
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]), {
|
|
5674
6262
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
5675
6263
|
}), !chunks[index].id && content.id ? {
|
|
5676
6264
|
id: content.id
|
|
@@ -5693,7 +6281,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5693
6281
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
5694
6282
|
if (existingIndex > -1) {
|
|
5695
6283
|
var existing = chunks[existingIndex];
|
|
5696
|
-
var merged = _object_spread_props(_object_spread({}, existing), {
|
|
6284
|
+
var merged = _object_spread_props(_object_spread$1({}, existing), {
|
|
5697
6285
|
text: "".concat(existing.text).concat(content.text)
|
|
5698
6286
|
});
|
|
5699
6287
|
var nextChunks = _to_consumable_array(chunks);
|
|
@@ -5702,7 +6290,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5702
6290
|
return;
|
|
5703
6291
|
}
|
|
5704
6292
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
5705
|
-
var mergedLastContent = _object_spread_props(_object_spread({}, lastContent), {
|
|
6293
|
+
var mergedLastContent = _object_spread_props(_object_spread$1({}, lastContent), {
|
|
5706
6294
|
text: "".concat(lastContent.text).concat(content.text)
|
|
5707
6295
|
});
|
|
5708
6296
|
aiMessage.content = _to_consumable_array(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -5711,7 +6299,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5711
6299
|
return;
|
|
5712
6300
|
}
|
|
5713
6301
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
5714
|
-
var appended = _object_spread_props(_object_spread({}, content), {
|
|
6302
|
+
var appended = _object_spread_props(_object_spread$1({}, content), {
|
|
5715
6303
|
text: separator + content.text
|
|
5716
6304
|
});
|
|
5717
6305
|
aiMessage.content = _to_consumable_array(chunks).concat([
|
|
@@ -5735,7 +6323,7 @@ function resolveMessageAppendContext(options) {
|
|
|
5735
6323
|
aiMessage.content = nextChunks1;
|
|
5736
6324
|
}
|
|
5737
6325
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
5738
|
-
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 : {});
|
|
5739
6327
|
var nextText = filterText(incoming);
|
|
5740
6328
|
if (!nextText) {
|
|
5741
6329
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -5780,7 +6368,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
5780
6368
|
return;
|
|
5781
6369
|
}
|
|
5782
6370
|
textIndexById.set(item.id, merged.length);
|
|
5783
|
-
merged.push(_object_spread({}, item));
|
|
6371
|
+
merged.push(_object_spread$1({}, item));
|
|
5784
6372
|
return;
|
|
5785
6373
|
}
|
|
5786
6374
|
var lastItem = merged[merged.length - 1];
|
|
@@ -5788,7 +6376,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
5788
6376
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
5789
6377
|
return;
|
|
5790
6378
|
}
|
|
5791
|
-
merged.push(_object_spread({}, item));
|
|
6379
|
+
merged.push(_object_spread$1({}, item));
|
|
5792
6380
|
});
|
|
5793
6381
|
return merged.length ? merged : null;
|
|
5794
6382
|
}
|
|
@@ -5800,9 +6388,10 @@ function stringifyMessageContent(content) {
|
|
|
5800
6388
|
var result = "";
|
|
5801
6389
|
var previousContext = null;
|
|
5802
6390
|
content.forEach(function(item) {
|
|
6391
|
+
if (chatkitTypes.isFileActivityContent(item)) return;
|
|
5803
6392
|
var itemContext = inferMessageAppendContext(item);
|
|
5804
6393
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
5805
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread({}, itemContext, joinHint ? {
|
|
6394
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$1({}, itemContext, joinHint ? {
|
|
5806
6395
|
joinHint: joinHint
|
|
5807
6396
|
} : {}));
|
|
5808
6397
|
previousContext = itemContext;
|
|
@@ -5825,7 +6414,7 @@ function filterMessageText(content) {
|
|
|
5825
6414
|
}
|
|
5826
6415
|
var itemContext = inferMessageAppendContext(item);
|
|
5827
6416
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
5828
|
-
result = appendMessagePlainText(result, nextText, _object_spread({}, itemContext, joinHint ? {
|
|
6417
|
+
result = appendMessagePlainText(result, nextText, _object_spread$1({}, itemContext, joinHint ? {
|
|
5829
6418
|
joinHint: joinHint
|
|
5830
6419
|
} : {}));
|
|
5831
6420
|
previousContext = itemContext;
|
|
@@ -5835,6 +6424,93 @@ function filterMessageText(content) {
|
|
|
5835
6424
|
return filterText(content) || null;
|
|
5836
6425
|
}
|
|
5837
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
|
+
|
|
5838
6514
|
function isEvidenceProposal(value) {
|
|
5839
6515
|
return "strategy" in value && "candidateId" in value && !!value.strategy && !!value.candidateId;
|
|
5840
6516
|
}
|
|
@@ -6018,6 +6694,7 @@ var MCP_HTTP_CORS_REQUEST_HEADERS = [
|
|
|
6018
6694
|
"X-Request-Id"
|
|
6019
6695
|
];
|
|
6020
6696
|
var MCP_HTTP_CORS_EXPOSED_HEADERS = [
|
|
6697
|
+
"Content-Location",
|
|
6021
6698
|
"WWW-Authenticate",
|
|
6022
6699
|
"MCP-Protocol-Version",
|
|
6023
6700
|
"Mcp-Session-Id",
|
|
@@ -6065,6 +6742,8 @@ var KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES = 50;
|
|
|
6065
6742
|
var KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM = 10;
|
|
6066
6743
|
var KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET = 12000;
|
|
6067
6744
|
|
|
6745
|
+
var DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = "basic";
|
|
6746
|
+
|
|
6068
6747
|
var STATE_VARIABLE_HUMAN = "human";
|
|
6069
6748
|
|
|
6070
6749
|
exports.PermissionsEnum = void 0;
|
|
@@ -6184,6 +6863,7 @@ exports.TagCategoryEnum = void 0;
|
|
|
6184
6863
|
var TAG_TARGETS = [
|
|
6185
6864
|
exports.TagCategoryEnum.XPERT,
|
|
6186
6865
|
"knowledgebase",
|
|
6866
|
+
"prompt_workflow",
|
|
6187
6867
|
exports.TagCategoryEnum.TOOLSET,
|
|
6188
6868
|
exports.TagCategoryEnum.INDICATOR,
|
|
6189
6869
|
exports.TagCategoryEnum.STORY,
|
|
@@ -6548,7 +7228,7 @@ var IntegrationGitHubProvider = {
|
|
|
6548
7228
|
}
|
|
6549
7229
|
};
|
|
6550
7230
|
|
|
6551
|
-
function _define_property(obj, key, value) {
|
|
7231
|
+
function _define_property$1(obj, key, value) {
|
|
6552
7232
|
if (key in obj) {
|
|
6553
7233
|
Object.defineProperty(obj, key, {
|
|
6554
7234
|
value: value,
|
|
@@ -6563,7 +7243,7 @@ function _define_property(obj, key, value) {
|
|
|
6563
7243
|
}
|
|
6564
7244
|
var INTEGRATION_PROVIDERS = // [IntegrationEnum.LARK]: IntegrationLarkProvider,
|
|
6565
7245
|
// [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
6566
|
-
_define_property({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
7246
|
+
_define_property$1({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
6567
7247
|
|
|
6568
7248
|
exports.AiModelTypeEnum = void 0;
|
|
6569
7249
|
(function(AiModelTypeEnum) {
|
|
@@ -6578,15 +7258,15 @@ exports.AiModelTypeEnum = void 0;
|
|
|
6578
7258
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
6579
7259
|
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
6580
7260
|
|
|
6581
|
-
function _array_like_to_array$
|
|
7261
|
+
function _array_like_to_array$3(arr, len) {
|
|
6582
7262
|
if (len == null || len > arr.length) len = arr.length;
|
|
6583
7263
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6584
7264
|
return arr2;
|
|
6585
7265
|
}
|
|
6586
|
-
function _array_with_holes$
|
|
7266
|
+
function _array_with_holes$3(arr) {
|
|
6587
7267
|
if (Array.isArray(arr)) return arr;
|
|
6588
7268
|
}
|
|
6589
|
-
function _iterable_to_array_limit$
|
|
7269
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
6590
7270
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6591
7271
|
if (_i == null) return;
|
|
6592
7272
|
var _arr = [];
|
|
@@ -6610,19 +7290,19 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
6610
7290
|
}
|
|
6611
7291
|
return _arr;
|
|
6612
7292
|
}
|
|
6613
|
-
function _non_iterable_rest$
|
|
7293
|
+
function _non_iterable_rest$3() {
|
|
6614
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.");
|
|
6615
7295
|
}
|
|
6616
|
-
function _sliced_to_array$
|
|
6617
|
-
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();
|
|
6618
7298
|
}
|
|
6619
|
-
function _unsupported_iterable_to_array$
|
|
7299
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
6620
7300
|
if (!o) return;
|
|
6621
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7301
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
6622
7302
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6623
7303
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6624
7304
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6625
|
-
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);
|
|
6626
7306
|
}
|
|
6627
7307
|
/**
|
|
6628
7308
|
* Channels of all upstream and downstream nodes relative to the starting point startKey.
|
|
@@ -6650,7 +7330,7 @@ function findStartNodes(graph, key) {
|
|
|
6650
7330
|
for(var _iterator = connections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
6651
7331
|
var conn = _step.value;
|
|
6652
7332
|
if (!toMap.has(conn.to)) toMap.set(conn.to, []);
|
|
6653
|
-
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];
|
|
6654
7334
|
if (conn.type === "edge") {
|
|
6655
7335
|
toMap.get(conn.to).push(fromKey);
|
|
6656
7336
|
}
|
|
@@ -6808,30 +7488,30 @@ function shortTitle(input) {
|
|
|
6808
7488
|
return null;
|
|
6809
7489
|
}
|
|
6810
7490
|
|
|
6811
|
-
function _array_like_to_array$
|
|
7491
|
+
function _array_like_to_array$2(arr, len) {
|
|
6812
7492
|
if (len == null || len > arr.length) len = arr.length;
|
|
6813
7493
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6814
7494
|
return arr2;
|
|
6815
7495
|
}
|
|
6816
|
-
function _array_with_holes$
|
|
7496
|
+
function _array_with_holes$2(arr) {
|
|
6817
7497
|
if (Array.isArray(arr)) return arr;
|
|
6818
7498
|
}
|
|
6819
7499
|
function _iterable_to_array(iter) {
|
|
6820
7500
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6821
7501
|
}
|
|
6822
|
-
function _non_iterable_rest$
|
|
7502
|
+
function _non_iterable_rest$2() {
|
|
6823
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.");
|
|
6824
7504
|
}
|
|
6825
7505
|
function _to_array(arr) {
|
|
6826
|
-
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();
|
|
6827
7507
|
}
|
|
6828
|
-
function _unsupported_iterable_to_array$
|
|
7508
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
6829
7509
|
if (!o) return;
|
|
6830
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7510
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
6831
7511
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6832
7512
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6833
7513
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6834
|
-
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);
|
|
6835
7515
|
}
|
|
6836
7516
|
/**
|
|
6837
7517
|
*
|
|
@@ -6945,15 +7625,15 @@ exports.BusinessType = void 0;
|
|
|
6945
7625
|
BusinessType["INDICATOR"] = "INDICATOR";
|
|
6946
7626
|
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
6947
7627
|
|
|
6948
|
-
function _array_like_to_array(arr, len) {
|
|
7628
|
+
function _array_like_to_array$1(arr, len) {
|
|
6949
7629
|
if (len == null || len > arr.length) len = arr.length;
|
|
6950
7630
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6951
7631
|
return arr2;
|
|
6952
7632
|
}
|
|
6953
|
-
function _array_with_holes(arr) {
|
|
7633
|
+
function _array_with_holes$1(arr) {
|
|
6954
7634
|
if (Array.isArray(arr)) return arr;
|
|
6955
7635
|
}
|
|
6956
|
-
function _iterable_to_array_limit(arr, i) {
|
|
7636
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
6957
7637
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6958
7638
|
if (_i == null) return;
|
|
6959
7639
|
var _arr = [];
|
|
@@ -6977,19 +7657,19 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
6977
7657
|
}
|
|
6978
7658
|
return _arr;
|
|
6979
7659
|
}
|
|
6980
|
-
function _non_iterable_rest() {
|
|
7660
|
+
function _non_iterable_rest$1() {
|
|
6981
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.");
|
|
6982
7662
|
}
|
|
6983
|
-
function _sliced_to_array(arr, i) {
|
|
6984
|
-
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();
|
|
6985
7665
|
}
|
|
6986
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
7666
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
6987
7667
|
if (!o) return;
|
|
6988
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
7668
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
6989
7669
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6990
7670
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6991
7671
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6992
|
-
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);
|
|
6993
7673
|
}
|
|
6994
7674
|
exports.ScheduleTaskStatus = void 0;
|
|
6995
7675
|
(function(ScheduleTaskStatus) {
|
|
@@ -7012,7 +7692,7 @@ exports.TaskFrequency = void 0;
|
|
|
7012
7692
|
* @returns
|
|
7013
7693
|
*/ function generateCronExpression(schedule) {
|
|
7014
7694
|
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
7015
|
-
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];
|
|
7016
7696
|
var hour = parseInt(hourStr, 10);
|
|
7017
7697
|
var minute = parseInt(minuteStr, 10);
|
|
7018
7698
|
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
@@ -7059,8 +7739,11 @@ var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
|
|
|
7059
7739
|
var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
7060
7740
|
var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
7061
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";
|
|
7062
7744
|
var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
7063
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";
|
|
7064
7747
|
/** Opens the current Assistant inside a Project-scoped workbench route. */ var WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
|
|
7065
7748
|
var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
7066
7749
|
var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
|
|
@@ -7070,9 +7753,133 @@ var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
|
|
|
7070
7753
|
|
|
7071
7754
|
var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
7072
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
|
+
|
|
7073
7879
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
7074
7880
|
|
|
7075
7881
|
exports.AGENT_PROFILE_TABS_SLOT = AGENT_PROFILE_TABS_SLOT;
|
|
7882
|
+
exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
|
|
7076
7883
|
exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
|
|
7077
7884
|
exports.API_PRINCIPAL_USER_ID_HEADER = API_PRINCIPAL_USER_ID_HEADER;
|
|
7078
7885
|
exports.ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = ASSISTANT_CHAT_SEND_MESSAGE_COMMAND;
|
|
@@ -7093,6 +7900,7 @@ exports.CONTEXT_COMPRESSION_MIDDLEWARE_NAME = CONTEXT_COMPRESSION_MIDDLEWARE_NAM
|
|
|
7093
7900
|
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
7094
7901
|
exports.COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING = COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING;
|
|
7095
7902
|
exports.COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING = COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING;
|
|
7903
|
+
exports.ChatThreadPurpose = ChatThreadPurpose;
|
|
7096
7904
|
exports.DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS = DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS;
|
|
7097
7905
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
7098
7906
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
@@ -7101,6 +7909,7 @@ exports.DEFAULT_INVITE_EXPIRY_PERIOD = DEFAULT_INVITE_EXPIRY_PERIOD;
|
|
|
7101
7909
|
exports.DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG = DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG;
|
|
7102
7910
|
exports.DEFAULT_KNOWLEDGEBASE_FAQ_RECALL = DEFAULT_KNOWLEDGEBASE_FAQ_RECALL;
|
|
7103
7911
|
exports.DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG = DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG;
|
|
7912
|
+
exports.DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER;
|
|
7104
7913
|
exports.DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT = DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT;
|
|
7105
7914
|
exports.DEFAULT_KNOWLEDGE_RRF_WEIGHTS = DEFAULT_KNOWLEDGE_RRF_WEIGHTS;
|
|
7106
7915
|
exports.DEFAULT_KNOWLEDGE_TEXT_SPLITTER = DEFAULT_KNOWLEDGE_TEXT_SPLITTER;
|
|
@@ -7119,6 +7928,7 @@ exports.DEFAULT_XPERT_WORKSPACE_DATA_SCOPE = DEFAULT_XPERT_WORKSPACE_DATA_SCOPE;
|
|
|
7119
7928
|
exports.ENTERPRISE_H5_PLATFORMS = ENTERPRISE_H5_PLATFORMS;
|
|
7120
7929
|
exports.FEEDBACK_LEARNING_STRATEGY = FEEDBACK_LEARNING_STRATEGY;
|
|
7121
7930
|
exports.FILE_VARIABLES = FILE_VARIABLES;
|
|
7931
|
+
exports.GENERAL_PROJECT_TYPE = GENERAL_PROJECT_TYPE;
|
|
7122
7932
|
exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
7123
7933
|
exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
|
|
7124
7934
|
exports.HUMAN_PROPOSAL_STRATEGY = HUMAN_PROPOSAL_STRATEGY;
|
|
@@ -7138,6 +7948,7 @@ exports.KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM = KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM;
|
|
|
7138
7948
|
exports.KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET = KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET;
|
|
7139
7949
|
exports.KNOWLEDGE_CHUNKING_ALGORITHM_VERSION = KNOWLEDGE_CHUNKING_ALGORITHM_VERSION;
|
|
7140
7950
|
exports.KNOWLEDGE_DOCUMENTS_NAME = KNOWLEDGE_DOCUMENTS_NAME;
|
|
7951
|
+
exports.KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE = KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE;
|
|
7141
7952
|
exports.KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT = KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT;
|
|
7142
7953
|
exports.KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH = KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH;
|
|
7143
7954
|
exports.KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT = KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT;
|
|
@@ -7226,6 +8037,7 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
7226
8037
|
exports.PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY = PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY;
|
|
7227
8038
|
exports.PLUGIN_MARKETPLACE_CATEGORIES = PLUGIN_MARKETPLACE_CATEGORIES;
|
|
7228
8039
|
exports.PLUGIN_MARKETPLACE_INSTALLATION_POLICY = PLUGIN_MARKETPLACE_INSTALLATION_POLICY;
|
|
8040
|
+
exports.PLUGIN_MARKETPLACE_SUBCATEGORIES = PLUGIN_MARKETPLACE_SUBCATEGORIES;
|
|
7229
8041
|
exports.PLUGIN_MCP_TOOL_APPROVAL_MODE = PLUGIN_MCP_TOOL_APPROVAL_MODE;
|
|
7230
8042
|
exports.PLUGIN_RESOURCE_ERROR_CODE = PLUGIN_RESOURCE_ERROR_CODE;
|
|
7231
8043
|
exports.PLUGIN_RESOURCE_INSTALLATION_STATUS = PLUGIN_RESOURCE_INSTALLATION_STATUS;
|
|
@@ -7233,10 +8045,12 @@ exports.PLUGIN_RESOURCE_RUNTIME_TYPE = PLUGIN_RESOURCE_RUNTIME_TYPE;
|
|
|
7233
8045
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
7234
8046
|
exports.PermissionGroups = PermissionGroups;
|
|
7235
8047
|
exports.RUNTIME_RESTART_CONFIRMATION = RUNTIME_RESTART_CONFIRMATION;
|
|
8048
|
+
exports.SANDBOX_FILE_OUTPUT_RULES = SANDBOX_FILE_OUTPUT_RULES;
|
|
7236
8049
|
exports.SANDBOX_MANAGED_SERVICE_STATUSES = SANDBOX_MANAGED_SERVICE_STATUSES;
|
|
7237
8050
|
exports.SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES;
|
|
7238
8051
|
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
7239
8052
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
8053
|
+
exports.SKILLS_MIDDLEWARE_NAME = SKILLS_MIDDLEWARE_NAME;
|
|
7240
8054
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
7241
8055
|
exports.STATE_SYS_AGENT_WORKSPACE_PATH = STATE_SYS_AGENT_WORKSPACE_PATH;
|
|
7242
8056
|
exports.STATE_SYS_MEMORY_WORKSPACE_PATH = STATE_SYS_MEMORY_WORKSPACE_PATH;
|
|
@@ -7261,12 +8075,16 @@ exports.TranslationLanguageMap = TranslationLanguageMap;
|
|
|
7261
8075
|
exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
|
|
7262
8076
|
exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
|
|
7263
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;
|
|
7264
8080
|
exports.WORKBENCH_ASSISTANT_CONVERSATION_TARGET = WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
|
|
8081
|
+
exports.WORKBENCH_ASSISTANT_EXECUTION_TARGET = WORKBENCH_ASSISTANT_EXECUTION_TARGET;
|
|
7265
8082
|
exports.WORKBENCH_ASSISTANT_PROJECT_TARGET = WORKBENCH_ASSISTANT_PROJECT_TARGET;
|
|
7266
8083
|
exports.WORKBENCH_EXTENSION_VIEW_TARGET = WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
7267
8084
|
exports.WORKBENCH_FILE_OPEN_COMMAND = WORKBENCH_FILE_OPEN_COMMAND;
|
|
7268
8085
|
exports.WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET;
|
|
7269
8086
|
exports.WORKBENCH_NAVIGATION_OPEN_COMMAND = WORKBENCH_NAVIGATION_OPEN_COMMAND;
|
|
8087
|
+
exports.WORKBENCH_VIEW_OPEN_EVENT = WORKBENCH_VIEW_OPEN_EVENT;
|
|
7270
8088
|
exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
|
|
7271
8089
|
exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER;
|
|
7272
8090
|
exports.XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
|
|
@@ -7309,6 +8127,7 @@ exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledS
|
|
|
7309
8127
|
exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
|
|
7310
8128
|
exports.filterMessageText = filterMessageText;
|
|
7311
8129
|
exports.findStartNodes = findStartNodes;
|
|
8130
|
+
exports.forecastProjectTasks = forecastProjectTasks;
|
|
7312
8131
|
exports.genJSONParseKey = genJSONParseKey;
|
|
7313
8132
|
exports.genJSONStringifyKey = genJSONStringifyKey;
|
|
7314
8133
|
exports.genListOperatorKey = genListOperatorKey;
|
|
@@ -7367,6 +8186,7 @@ exports.isImageType = isImageType;
|
|
|
7367
8186
|
exports.isInterruptMessage = isInterruptMessage;
|
|
7368
8187
|
exports.isIteratingKey = isIteratingKey;
|
|
7369
8188
|
exports.isIteratorKey = isIteratorKey;
|
|
8189
|
+
exports.isKnowledgeDocumentVisible = isKnowledgeDocumentVisible;
|
|
7370
8190
|
exports.isKnowledgeTableMetadata = isKnowledgeTableMetadata;
|
|
7371
8191
|
exports.isKnowledgeWikiChunkMetadata = isKnowledgeWikiChunkMetadata;
|
|
7372
8192
|
exports.isKnowledgeWikiPageContributionPayload = isKnowledgeWikiPageContributionPayload;
|
|
@@ -7379,12 +8199,14 @@ exports.isNil = isNil$1;
|
|
|
7379
8199
|
exports.isOrganizationSharedXpertWorkspace = isOrganizationSharedXpertWorkspace;
|
|
7380
8200
|
exports.isOutputTokenParameter = isOutputTokenParameter;
|
|
7381
8201
|
exports.isPreparedCandidate = isPreparedCandidate;
|
|
8202
|
+
exports.isPromptWorkflowScenarios = isPromptWorkflowScenarios;
|
|
7382
8203
|
exports.isProviderEvaluation = isProviderEvaluation;
|
|
7383
8204
|
exports.isProviderRelease = isProviderRelease;
|
|
7384
8205
|
exports.isReplayEvaluation = isReplayEvaluation;
|
|
7385
8206
|
exports.isRequiredMiddleware = isRequiredMiddleware;
|
|
7386
8207
|
exports.isRouterKey = isRouterKey;
|
|
7387
8208
|
exports.isRunnableThreadGoalStatus = isRunnableThreadGoalStatus;
|
|
8209
|
+
exports.isScopedPromptCapabilityConfig = isScopedPromptCapabilityConfig;
|
|
7388
8210
|
exports.isStagedRelease = isStagedRelease;
|
|
7389
8211
|
exports.isString = isString;
|
|
7390
8212
|
exports.isSystemManagedAssistant = isSystemManagedAssistant;
|
|
@@ -7396,6 +8218,7 @@ exports.isUserOrganizationEntryGuideKey = isUserOrganizationEntryGuideKey;
|
|
|
7396
8218
|
exports.isVideoType = isVideoType;
|
|
7397
8219
|
exports.isXpertNodeType = isXpertNodeType;
|
|
7398
8220
|
exports.knowledgeDocumentFileType = knowledgeDocumentFileType;
|
|
8221
|
+
exports.knowledgeUploadFileTypes = knowledgeUploadFileTypes;
|
|
7399
8222
|
exports.knowledgebaseDocumentParserDefaults = knowledgebaseDocumentParserDefaults;
|
|
7400
8223
|
exports.knowledgebaseParserSelection = knowledgebaseParserSelection;
|
|
7401
8224
|
exports.letterStartSUID = letterStartSUID;
|
|
@@ -7414,14 +8237,19 @@ exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
|
7414
8237
|
exports.normalizeModelParameterValue = normalizeModelParameterValue;
|
|
7415
8238
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
7416
8239
|
exports.omitXpertRelations = omitXpertRelations;
|
|
8240
|
+
exports.orderAssistantXperts = orderAssistantXperts;
|
|
7417
8241
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
8242
|
+
exports.parsePromptCapabilityConfig = parsePromptCapabilityConfig;
|
|
8243
|
+
exports.parsePromptCapabilitySelection = parsePromptCapabilitySelection;
|
|
7418
8244
|
exports.parseRuntimeSkillCapabilityId = parseRuntimeSkillCapabilityId;
|
|
8245
|
+
exports.parseWorkbenchViewOpenEvent = parseWorkbenchViewOpenEvent;
|
|
7419
8246
|
exports.replaceAgentInDraft = replaceAgentInDraft;
|
|
7420
8247
|
exports.resolveDraftPrimaryAgent = resolveDraftPrimaryAgent;
|
|
7421
8248
|
exports.resolveDraftRuntimeGraph = resolveDraftRuntimeGraph;
|
|
7422
8249
|
exports.resolveI18nText = resolveI18nText;
|
|
7423
8250
|
exports.resolveMessageAppendContext = resolveMessageAppendContext;
|
|
7424
8251
|
exports.resolveModelParameterOptions = resolveModelParameterOptions;
|
|
8252
|
+
exports.resolvePromptWorkflowCapabilities = resolvePromptWorkflowCapabilities;
|
|
7425
8253
|
exports.resolveRuntimeXpert = resolveRuntimeXpert;
|
|
7426
8254
|
exports.setStateVariable = setStateVariable;
|
|
7427
8255
|
exports.shortTitle = shortTitle;
|
|
@@ -7430,5 +8258,6 @@ exports.transformInstallation = transformInstallation;
|
|
|
7430
8258
|
exports.updateAssistantBindingSkillPreferences = updateAssistantBindingSkillPreferences;
|
|
7431
8259
|
exports.updateAssistantBindingToolPreferences = updateAssistantBindingToolPreferences;
|
|
7432
8260
|
exports.uuid = uuid;
|
|
8261
|
+
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
7433
8262
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
7434
8263
|
exports.xpertLabel = xpertLabel;
|