@xpert-ai/contracts 3.26.2 → 3.28.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 +760 -290
- package/index.esm.js +726 -291
- package/package.json +2 -2
- package/src/agent-plugin.d.ts +2 -0
- package/src/ai/chat-recovery.model.d.ts +33 -0
- package/src/ai/chat.model.d.ts +16 -1
- package/src/ai/computer-codex-isolation.model.d.ts +12 -0
- package/src/ai/execution-control-evidence.schema.d.ts +294 -0
- package/src/ai/execution-control.model.d.ts +26 -0
- package/src/ai/index.d.ts +6 -0
- package/src/ai/mcp-execution-control.schema.d.ts +107 -0
- package/src/ai/mcp-operation.model.d.ts +60 -0
- package/src/ai/mcp-task.schema.d.ts +85 -0
- package/src/ai/model-execution-parameters.model.d.ts +46 -0
- package/src/ai/model-execution.model.d.ts +3 -0
- package/src/ai/project-pipeline/operation.schema.d.ts +1987 -2
- package/src/ai/project-task-runtime.model.d.ts +44 -44
- package/src/ai/run-display-snapshot.model.d.ts +24 -0
- package/src/ai/sandbox-execution-control.schema.d.ts +100 -0
- package/src/ai/thread-activity.model.d.ts +1 -0
- package/src/ai/thread-control-projection.model.d.ts +9 -0
- package/src/ai/thread-control-view.schema.d.ts +97 -0
- package/src/ai/xpert-agent-execution.model.d.ts +2 -0
- package/src/ai/xpert-project-type.model.d.ts +2 -0
- package/src/ai/xpert-template.model.d.ts +2 -0
- package/src/ai/xpert-workspace.model.d.ts +1 -0
- package/src/ai/xpert.model.d.ts +4 -0
- package/src/api-key.model.d.ts +3 -1
- package/src/artifact.model.d.ts +3 -0
- package/src/content-document.model.d.ts +142 -0
- package/src/content-reference.model.d.ts +19 -0
- package/src/content-resource.model.d.ts +112 -0
- package/src/desktop-shell.model.d.ts +8 -0
- package/src/execution-control-admission.schema.d.ts +119 -0
- package/src/index.d.ts +12 -1
- package/src/plugin-application.d.ts +34 -7
- package/src/runtime-control.d.ts +9 -0
- package/src/secret-token.model.d.ts +33 -0
- package/src/task-control.model.d.ts +45 -0
- package/src/view-extension/model.d.ts +14 -0
package/index.esm.js
CHANGED
|
@@ -1,8 +1,42 @@
|
|
|
1
|
-
import ShortUniqueId from 'short-unique-id';
|
|
2
1
|
import { z } from 'zod';
|
|
2
|
+
import ShortUniqueId from 'short-unique-id';
|
|
3
|
+
import { z as z$1 } from 'zod/v3';
|
|
3
4
|
import { parseResourceCardContent, upsertResourceCardContent, parseFileActivityContent, upsertFileActivityContent, isFileActivityContent, isResourceCardContent } from '@xpert-ai/chatkit-types';
|
|
4
5
|
export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from '@xpert-ai/chatkit-types';
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
/** Internal boot capabilities. Online/readiness and execution settlement remain separate facts. */ var executionControlProtocols = {
|
|
8
|
+
taskControl: 2,
|
|
9
|
+
managedQueue: 3,
|
|
10
|
+
threadControlView: 1,
|
|
11
|
+
mcpControl: 1,
|
|
12
|
+
sandboxControl: 1,
|
|
13
|
+
invocationEvidence: 2
|
|
14
|
+
};
|
|
15
|
+
var controlledHandlerSchema = z.object({
|
|
16
|
+
pluginName: z.string().min(1),
|
|
17
|
+
queueName: z.string().min(1),
|
|
18
|
+
jobName: z.string().min(1),
|
|
19
|
+
scopeKey: z.string().nullable(),
|
|
20
|
+
controlContract: z.string().min(1).max(160)
|
|
21
|
+
}).strict();
|
|
22
|
+
var executionControlCapabilitiesSchema = z.object({
|
|
23
|
+
version: z.literal(1),
|
|
24
|
+
validUntil: z.number().finite(),
|
|
25
|
+
protocols: z.object({
|
|
26
|
+
taskControl: z.literal(2).optional(),
|
|
27
|
+
managedQueue: z.literal(3).optional(),
|
|
28
|
+
threadControlView: z.literal(1).optional(),
|
|
29
|
+
mcpControl: z.literal(1).optional(),
|
|
30
|
+
sandboxControl: z.literal(1).optional(),
|
|
31
|
+
invocationEvidence: z.literal(2).optional()
|
|
32
|
+
}).strict(),
|
|
33
|
+
queuePrefix: z.string().min(1).max(160),
|
|
34
|
+
queuePools: z.array(z.enum([
|
|
35
|
+
"default",
|
|
36
|
+
"sandbox-browser"
|
|
37
|
+
])),
|
|
38
|
+
handlers: z.array(controlledHandlerSchema)
|
|
39
|
+
}).strict();
|
|
6
40
|
|
|
7
41
|
function resolveI18nText(value) {
|
|
8
42
|
var language = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
|
|
@@ -89,30 +123,30 @@ function resolveI18nText(value) {
|
|
|
89
123
|
return null;
|
|
90
124
|
}
|
|
91
125
|
|
|
92
|
-
function _array_like_to_array$
|
|
126
|
+
function _array_like_to_array$u(arr, len) {
|
|
93
127
|
if (len == null || len > arr.length) len = arr.length;
|
|
94
128
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
95
129
|
return arr2;
|
|
96
130
|
}
|
|
97
|
-
function _array_without_holes$
|
|
98
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
131
|
+
function _array_without_holes$k(arr) {
|
|
132
|
+
if (Array.isArray(arr)) return _array_like_to_array$u(arr);
|
|
99
133
|
}
|
|
100
|
-
function _iterable_to_array$
|
|
134
|
+
function _iterable_to_array$m(iter) {
|
|
101
135
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
102
136
|
}
|
|
103
|
-
function _non_iterable_spread$
|
|
137
|
+
function _non_iterable_spread$k() {
|
|
104
138
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
105
139
|
}
|
|
106
|
-
function _to_consumable_array$
|
|
107
|
-
return _array_without_holes$
|
|
140
|
+
function _to_consumable_array$k(arr) {
|
|
141
|
+
return _array_without_holes$k(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$u(arr) || _non_iterable_spread$k();
|
|
108
142
|
}
|
|
109
|
-
function _unsupported_iterable_to_array$
|
|
143
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
110
144
|
if (!o) return;
|
|
111
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
145
|
+
if (typeof o === "string") return _array_like_to_array$u(o, minLen);
|
|
112
146
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
113
147
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
114
148
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
115
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
149
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
|
|
116
150
|
}
|
|
117
151
|
var _uuidGenerator;
|
|
118
152
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -122,7 +156,7 @@ var uuid = function() {
|
|
|
122
156
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
123
157
|
args[_key] = arguments[_key];
|
|
124
158
|
}
|
|
125
|
-
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$
|
|
159
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$k(args));
|
|
126
160
|
};
|
|
127
161
|
// Parameters
|
|
128
162
|
var ParameterTypeEnum;
|
|
@@ -139,6 +173,45 @@ function letterStartSUID(start) {
|
|
|
139
173
|
return start + uuid();
|
|
140
174
|
}
|
|
141
175
|
|
|
176
|
+
/** A control request can address only the original environment and execution generation. */ var sandboxRuntimeTargetSchema = z$1.object({
|
|
177
|
+
version: z$1.literal(1),
|
|
178
|
+
kind: z$1.enum([
|
|
179
|
+
"host",
|
|
180
|
+
"engine"
|
|
181
|
+
]),
|
|
182
|
+
provider: z$1.string().min(1),
|
|
183
|
+
runtimeProfile: z$1.string().min(1),
|
|
184
|
+
generation: z$1.string().uuid(),
|
|
185
|
+
environmentId: z$1.string().min(1),
|
|
186
|
+
runtimeRef: z$1.string().min(1)
|
|
187
|
+
}).strict();
|
|
188
|
+
/** An accepted stop, closed stream, or expired lease is never an exit receipt. */ var sandboxRuntimeEvidenceSchema = z$1.object({
|
|
189
|
+
version: z$1.literal(1),
|
|
190
|
+
target: sandboxRuntimeTargetSchema,
|
|
191
|
+
state: z$1.enum([
|
|
192
|
+
"running",
|
|
193
|
+
"exited",
|
|
194
|
+
"not_started",
|
|
195
|
+
"unknown"
|
|
196
|
+
]),
|
|
197
|
+
observedAt: z$1.string().datetime()
|
|
198
|
+
}).strict();
|
|
199
|
+
function sandboxTargetsEqual(a, b) {
|
|
200
|
+
return a.version === b.version && a.kind === b.kind && a.provider === b.provider && a.runtimeProfile === b.runtimeProfile && a.generation === b.generation && a.environmentId === b.environmentId && a.runtimeRef === b.runtimeRef;
|
|
201
|
+
}
|
|
202
|
+
function sandboxEvidence(target, state) {
|
|
203
|
+
return {
|
|
204
|
+
version: 1,
|
|
205
|
+
target: target,
|
|
206
|
+
state: state,
|
|
207
|
+
observedAt: new Date().toISOString()
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/** Explicit new business retry; it may proceed only after this original generation settled. */ var sandboxJobRetryReferenceSchema = z$1.object({
|
|
211
|
+
jobId: z$1.string().uuid(),
|
|
212
|
+
generation: z$1.string().uuid()
|
|
213
|
+
}).strict();
|
|
214
|
+
|
|
142
215
|
/** Portable presentation tokens. Clients render their own trusted icon components. */ var PROJECT_TASK_ICON_NAMES = [
|
|
143
216
|
"FileText",
|
|
144
217
|
"FileScan",
|
|
@@ -153,30 +226,30 @@ function letterStartSUID(start) {
|
|
|
153
226
|
"FileOutput"
|
|
154
227
|
];
|
|
155
228
|
|
|
156
|
-
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$
|
|
229
|
+
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$t(arr, len) {
|
|
157
230
|
if (len == null || len > arr.length) len = arr.length;
|
|
158
231
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
159
232
|
return arr2;
|
|
160
233
|
}
|
|
161
|
-
function _array_without_holes$
|
|
162
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
234
|
+
function _array_without_holes$j(arr) {
|
|
235
|
+
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
163
236
|
}
|
|
164
|
-
function _iterable_to_array$
|
|
237
|
+
function _iterable_to_array$l(iter) {
|
|
165
238
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
166
239
|
}
|
|
167
|
-
function _non_iterable_spread$
|
|
240
|
+
function _non_iterable_spread$j() {
|
|
168
241
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
169
242
|
}
|
|
170
|
-
function _to_consumable_array$
|
|
171
|
-
return _array_without_holes$
|
|
243
|
+
function _to_consumable_array$j(arr) {
|
|
244
|
+
return _array_without_holes$j(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$j();
|
|
172
245
|
}
|
|
173
|
-
function _unsupported_iterable_to_array$
|
|
246
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
174
247
|
if (!o) return;
|
|
175
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
248
|
+
if (typeof o === "string") return _array_like_to_array$t(o, minLen);
|
|
176
249
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
177
250
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
178
251
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
179
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
252
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
|
|
180
253
|
}
|
|
181
254
|
function schedulePredecessors(task, byId) {
|
|
182
255
|
var ids = new Set(task.predecessorIds);
|
|
@@ -191,7 +264,7 @@ function schedulePredecessors(task, byId) {
|
|
|
191
264
|
});
|
|
192
265
|
parentId = parent.parentTaskId;
|
|
193
266
|
}
|
|
194
|
-
return _to_consumable_array$
|
|
267
|
+
return _to_consumable_array$j(ids);
|
|
195
268
|
}
|
|
196
269
|
/** Tree containment and finish-to-start dependencies are separate acyclic graphs. */ function validateProjectTaskGraph(tasks) {
|
|
197
270
|
var _loop = function(_i1, _iter1) {
|
|
@@ -205,7 +278,7 @@ function schedulePredecessors(task, byId) {
|
|
|
205
278
|
active.add(id);
|
|
206
279
|
var references = relation === "tree" ? task.parentTaskId ? [
|
|
207
280
|
task.parentTaskId
|
|
208
|
-
] : [] : _to_consumable_array$
|
|
281
|
+
] : [] : _to_consumable_array$j(relation === "schedule" ? schedulePredecessors(task, byId) : task.predecessorIds).concat(_to_consumable_array$j(relation === "schedule" && task.kind === "summary" ? tasks.filter(function(child) {
|
|
209
282
|
return child.parentTaskId === task.id;
|
|
210
283
|
}).map(function(child) {
|
|
211
284
|
return child.id;
|
|
@@ -317,10 +390,10 @@ function schedulePredecessors(task, byId) {
|
|
|
317
390
|
Date.parse(child.startAt)
|
|
318
391
|
] : [];
|
|
319
392
|
});
|
|
320
|
-
startAt = starts.length ? new Date((_Math = Math).min.apply(_Math, _to_consumable_array$
|
|
393
|
+
startAt = starts.length ? new Date((_Math = Math).min.apply(_Math, _to_consumable_array$j(starts))).toISOString() : null;
|
|
321
394
|
endAt = children.length && children.every(function(child) {
|
|
322
395
|
return child.endAt;
|
|
323
|
-
}) ? new Date((_Math1 = Math).max.apply(_Math1, _to_consumable_array$
|
|
396
|
+
}) ? new Date((_Math1 = Math).max.apply(_Math1, _to_consumable_array$j(children.map(function(child) {
|
|
324
397
|
return Date.parse(child.endAt);
|
|
325
398
|
})))).toISOString() : null;
|
|
326
399
|
if (children.some(function(child) {
|
|
@@ -340,9 +413,9 @@ function schedulePredecessors(task, byId) {
|
|
|
340
413
|
});
|
|
341
414
|
var earliest = task.actualStartAt ? Date.parse(task.actualStartAt) : predecessorEnds.some(function(value) {
|
|
342
415
|
return value === null;
|
|
343
|
-
}) ? null : start !== null || predecessorEnds.length ? (_Math2 = Math).max.apply(_Math2, _to_consumable_array$
|
|
416
|
+
}) ? null : start !== null || predecessorEnds.length ? (_Math2 = Math).max.apply(_Math2, _to_consumable_array$j(start !== null ? [
|
|
344
417
|
Date.parse(start)
|
|
345
|
-
] : []).concat(_to_consumable_array$
|
|
418
|
+
] : []).concat(_to_consumable_array$j(predecessorEnds.map(function(value) {
|
|
346
419
|
return value;
|
|
347
420
|
})))) : null;
|
|
348
421
|
startAt = earliest === null ? null : new Date(earliest).toISOString();
|
|
@@ -373,7 +446,7 @@ function schedulePredecessors(task, byId) {
|
|
|
373
446
|
return result.get(task.id).endAt !== null;
|
|
374
447
|
})) {
|
|
375
448
|
var _Math;
|
|
376
|
-
var finish = (_Math = Math).max.apply(_Math, _to_consumable_array$
|
|
449
|
+
var finish = (_Math = Math).max.apply(_Math, _to_consumable_array$j(leaves.map(function(task) {
|
|
377
450
|
return Date.parse(result.get(task.id).endAt);
|
|
378
451
|
})));
|
|
379
452
|
var mark = function(id) {
|
|
@@ -1313,7 +1386,7 @@ var OrganizationDemoNetworkEnum;
|
|
|
1313
1386
|
OrganizationDemoNetworkEnum["aliyun"] = "aliyun";
|
|
1314
1387
|
})(OrganizationDemoNetworkEnum || (OrganizationDemoNetworkEnum = {}));
|
|
1315
1388
|
|
|
1316
|
-
function _define_property$
|
|
1389
|
+
function _define_property$q(obj, key, value) {
|
|
1317
1390
|
if (key in obj) {
|
|
1318
1391
|
Object.defineProperty(obj, key, {
|
|
1319
1392
|
value: value,
|
|
@@ -1326,7 +1399,7 @@ function _define_property$p(obj, key, value) {
|
|
|
1326
1399
|
}
|
|
1327
1400
|
return obj;
|
|
1328
1401
|
}
|
|
1329
|
-
function _object_spread$
|
|
1402
|
+
function _object_spread$q(target) {
|
|
1330
1403
|
for(var i = 1; i < arguments.length; i++){
|
|
1331
1404
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1332
1405
|
var ownKeys = Object.keys(source);
|
|
@@ -1336,12 +1409,12 @@ function _object_spread$p(target) {
|
|
|
1336
1409
|
}));
|
|
1337
1410
|
}
|
|
1338
1411
|
ownKeys.forEach(function(key) {
|
|
1339
|
-
_define_property$
|
|
1412
|
+
_define_property$q(target, key, source[key]);
|
|
1340
1413
|
});
|
|
1341
1414
|
}
|
|
1342
1415
|
return target;
|
|
1343
1416
|
}
|
|
1344
|
-
function ownKeys$
|
|
1417
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
1345
1418
|
var keys = Object.keys(object);
|
|
1346
1419
|
if (Object.getOwnPropertySymbols) {
|
|
1347
1420
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1349,12 +1422,12 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
1349
1422
|
}
|
|
1350
1423
|
return keys;
|
|
1351
1424
|
}
|
|
1352
|
-
function _object_spread_props$
|
|
1425
|
+
function _object_spread_props$j(target, source) {
|
|
1353
1426
|
source = source != null ? source : {};
|
|
1354
1427
|
if (Object.getOwnPropertyDescriptors) {
|
|
1355
1428
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1356
1429
|
} else {
|
|
1357
|
-
ownKeys$
|
|
1430
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
1358
1431
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1359
1432
|
});
|
|
1360
1433
|
}
|
|
@@ -1382,7 +1455,7 @@ function parseSelectionSet(value) {
|
|
|
1382
1455
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1383
1456
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1384
1457
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1385
|
-
return _object_spread$
|
|
1458
|
+
return _object_spread$q(_object_spread_props$j(_object_spread$q({}, value), {
|
|
1386
1459
|
skills: skills === undefined ? {
|
|
1387
1460
|
ids: []
|
|
1388
1461
|
} : skills,
|
|
@@ -1401,7 +1474,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1401
1474
|
var selection = parseSelectionSet(value);
|
|
1402
1475
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1403
1476
|
if (!selection || recommended === null) return null;
|
|
1404
|
-
return _object_spread$
|
|
1477
|
+
return _object_spread$q(_object_spread_props$j(_object_spread$q({}, selection), {
|
|
1405
1478
|
mode: "allowlist"
|
|
1406
1479
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1407
1480
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1453,7 +1526,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1453
1526
|
}
|
|
1454
1527
|
}
|
|
1455
1528
|
}
|
|
1456
|
-
return _object_spread_props$
|
|
1529
|
+
return _object_spread_props$j(_object_spread$q({}, value), {
|
|
1457
1530
|
type: "expert_scoped_capabilities",
|
|
1458
1531
|
version: 1,
|
|
1459
1532
|
defaults: defaults,
|
|
@@ -1585,7 +1658,7 @@ var ChatMessageStepCategory;
|
|
|
1585
1658
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1586
1659
|
})(ChatMessageStepCategory || (ChatMessageStepCategory = {}));
|
|
1587
1660
|
|
|
1588
|
-
function _define_property$
|
|
1661
|
+
function _define_property$p(obj, key, value) {
|
|
1589
1662
|
if (key in obj) {
|
|
1590
1663
|
Object.defineProperty(obj, key, {
|
|
1591
1664
|
value: value,
|
|
@@ -1605,7 +1678,7 @@ function _instanceof$1(left, right) {
|
|
|
1605
1678
|
return left instanceof right;
|
|
1606
1679
|
}
|
|
1607
1680
|
}
|
|
1608
|
-
function _object_spread$
|
|
1681
|
+
function _object_spread$p(target) {
|
|
1609
1682
|
for(var i = 1; i < arguments.length; i++){
|
|
1610
1683
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1611
1684
|
var ownKeys = Object.keys(source);
|
|
@@ -1615,7 +1688,7 @@ function _object_spread$o(target) {
|
|
|
1615
1688
|
}));
|
|
1616
1689
|
}
|
|
1617
1690
|
ownKeys.forEach(function(key) {
|
|
1618
|
-
_define_property$
|
|
1691
|
+
_define_property$p(target, key, source[key]);
|
|
1619
1692
|
});
|
|
1620
1693
|
}
|
|
1621
1694
|
return target;
|
|
@@ -1626,12 +1699,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
1626
1699
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
1627
1700
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
1628
1701
|
function createConversationTitleSummaryEvent(event) {
|
|
1629
|
-
return _object_spread$
|
|
1702
|
+
return _object_spread$p({
|
|
1630
1703
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1631
1704
|
}, event);
|
|
1632
1705
|
}
|
|
1633
1706
|
function createFollowUpConsumedEvent(event) {
|
|
1634
|
-
return _object_spread$
|
|
1707
|
+
return _object_spread$p({
|
|
1635
1708
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1636
1709
|
}, event);
|
|
1637
1710
|
}
|
|
@@ -1666,7 +1739,7 @@ function toIsoString(value) {
|
|
|
1666
1739
|
return new Date().toISOString();
|
|
1667
1740
|
}
|
|
1668
1741
|
|
|
1669
|
-
function _array_like_to_array$
|
|
1742
|
+
function _array_like_to_array$s(arr, len) {
|
|
1670
1743
|
if (len == null || len > arr.length) len = arr.length;
|
|
1671
1744
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1672
1745
|
return arr2;
|
|
@@ -1674,10 +1747,10 @@ function _array_like_to_array$r(arr, len) {
|
|
|
1674
1747
|
function _array_with_holes$g(arr) {
|
|
1675
1748
|
if (Array.isArray(arr)) return arr;
|
|
1676
1749
|
}
|
|
1677
|
-
function _array_without_holes$
|
|
1678
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1750
|
+
function _array_without_holes$i(arr) {
|
|
1751
|
+
if (Array.isArray(arr)) return _array_like_to_array$s(arr);
|
|
1679
1752
|
}
|
|
1680
|
-
function _define_property$
|
|
1753
|
+
function _define_property$o(obj, key, value) {
|
|
1681
1754
|
if (key in obj) {
|
|
1682
1755
|
Object.defineProperty(obj, key, {
|
|
1683
1756
|
value: value,
|
|
@@ -1690,7 +1763,7 @@ function _define_property$n(obj, key, value) {
|
|
|
1690
1763
|
}
|
|
1691
1764
|
return obj;
|
|
1692
1765
|
}
|
|
1693
|
-
function _iterable_to_array$
|
|
1766
|
+
function _iterable_to_array$k(iter) {
|
|
1694
1767
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1695
1768
|
}
|
|
1696
1769
|
function _iterable_to_array_limit$e(arr, i) {
|
|
@@ -1720,10 +1793,10 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
1720
1793
|
function _non_iterable_rest$g() {
|
|
1721
1794
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1722
1795
|
}
|
|
1723
|
-
function _non_iterable_spread$
|
|
1796
|
+
function _non_iterable_spread$i() {
|
|
1724
1797
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1725
1798
|
}
|
|
1726
|
-
function _object_spread$
|
|
1799
|
+
function _object_spread$o(target) {
|
|
1727
1800
|
for(var i = 1; i < arguments.length; i++){
|
|
1728
1801
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1729
1802
|
var ownKeys = Object.keys(source);
|
|
@@ -1733,12 +1806,12 @@ function _object_spread$n(target) {
|
|
|
1733
1806
|
}));
|
|
1734
1807
|
}
|
|
1735
1808
|
ownKeys.forEach(function(key) {
|
|
1736
|
-
_define_property$
|
|
1809
|
+
_define_property$o(target, key, source[key]);
|
|
1737
1810
|
});
|
|
1738
1811
|
}
|
|
1739
1812
|
return target;
|
|
1740
1813
|
}
|
|
1741
|
-
function ownKeys$
|
|
1814
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
1742
1815
|
var keys = Object.keys(object);
|
|
1743
1816
|
if (Object.getOwnPropertySymbols) {
|
|
1744
1817
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1746,30 +1819,30 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
1746
1819
|
}
|
|
1747
1820
|
return keys;
|
|
1748
1821
|
}
|
|
1749
|
-
function _object_spread_props$
|
|
1822
|
+
function _object_spread_props$i(target, source) {
|
|
1750
1823
|
source = source != null ? source : {};
|
|
1751
1824
|
if (Object.getOwnPropertyDescriptors) {
|
|
1752
1825
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1753
1826
|
} else {
|
|
1754
|
-
ownKeys$
|
|
1827
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
1755
1828
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1756
1829
|
});
|
|
1757
1830
|
}
|
|
1758
1831
|
return target;
|
|
1759
1832
|
}
|
|
1760
1833
|
function _sliced_to_array$e(arr, i) {
|
|
1761
|
-
return _array_with_holes$g(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$
|
|
1834
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$g();
|
|
1762
1835
|
}
|
|
1763
|
-
function _to_consumable_array$
|
|
1764
|
-
return _array_without_holes$
|
|
1836
|
+
function _to_consumable_array$i(arr) {
|
|
1837
|
+
return _array_without_holes$i(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$s(arr) || _non_iterable_spread$i();
|
|
1765
1838
|
}
|
|
1766
|
-
function _unsupported_iterable_to_array$
|
|
1839
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
1767
1840
|
if (!o) return;
|
|
1768
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1841
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
1769
1842
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1770
1843
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1771
1844
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1772
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1845
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
|
|
1773
1846
|
}
|
|
1774
1847
|
var AssistantCode;
|
|
1775
1848
|
(function(AssistantCode) {
|
|
@@ -1870,7 +1943,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1870
1943
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1871
1944
|
return null;
|
|
1872
1945
|
}
|
|
1873
|
-
return _object_spread$
|
|
1946
|
+
return _object_spread$o({
|
|
1874
1947
|
version: 1
|
|
1875
1948
|
}, Object.keys(toolsets).length ? {
|
|
1876
1949
|
toolsets: toolsets
|
|
@@ -1945,11 +2018,11 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1945
2018
|
var disabledTools = getAssistantBindingDisabledTools(normalizedPreferences, sourceType, normalizedNodeKey);
|
|
1946
2019
|
var nextDisabledTools = enabled ? disabledTools.filter(function(item) {
|
|
1947
2020
|
return item !== normalizedToolName;
|
|
1948
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
2021
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$i(disabledTools).concat([
|
|
1949
2022
|
normalizedToolName
|
|
1950
2023
|
]));
|
|
1951
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
1952
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2024
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$o({}, normalizedPreferences.toolsets) : undefined;
|
|
2025
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$o({}, normalizedPreferences.middlewares) : undefined;
|
|
1953
2026
|
if (sourceType === "toolset") {
|
|
1954
2027
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1955
2028
|
if (!toolsetName) {
|
|
@@ -1965,14 +2038,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1965
2038
|
} else {
|
|
1966
2039
|
delete nextToolsets[normalizedNodeKey];
|
|
1967
2040
|
}
|
|
1968
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2041
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$o({
|
|
1969
2042
|
version: 1
|
|
1970
2043
|
}, Object.keys(nextToolsets).length ? {
|
|
1971
2044
|
toolsets: nextToolsets
|
|
1972
2045
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1973
2046
|
middlewares: middlewares
|
|
1974
2047
|
} : {}, normalizedPreferences.skills ? {
|
|
1975
|
-
skills: _object_spread$
|
|
2048
|
+
skills: _object_spread$o({}, normalizedPreferences.skills)
|
|
1976
2049
|
} : {}));
|
|
1977
2050
|
}
|
|
1978
2051
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -1988,14 +2061,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1988
2061
|
} else {
|
|
1989
2062
|
delete nextMiddlewares[normalizedNodeKey];
|
|
1990
2063
|
}
|
|
1991
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2064
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$o({
|
|
1992
2065
|
version: 1
|
|
1993
2066
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
1994
2067
|
toolsets: toolsets
|
|
1995
2068
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1996
2069
|
middlewares: nextMiddlewares
|
|
1997
2070
|
} : {}, normalizedPreferences.skills ? {
|
|
1998
|
-
skills: _object_spread$
|
|
2071
|
+
skills: _object_spread$o({}, normalizedPreferences.skills)
|
|
1999
2072
|
} : {}));
|
|
2000
2073
|
}
|
|
2001
2074
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2010,10 +2083,10 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2010
2083
|
var disabledSkillIds = getAssistantBindingDisabledSkillIds(normalizedPreferences, normalizedWorkspaceId);
|
|
2011
2084
|
var nextDisabledSkillIds = enabled ? disabledSkillIds.filter(function(item) {
|
|
2012
2085
|
return item !== normalizedSkillId;
|
|
2013
|
-
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$
|
|
2086
|
+
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$i(disabledSkillIds).concat([
|
|
2014
2087
|
normalizedSkillId
|
|
2015
2088
|
]));
|
|
2016
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2089
|
+
var skills = normalizedPreferences.skills ? _object_spread$o({}, normalizedPreferences.skills) : {};
|
|
2017
2090
|
if (nextDisabledSkillIds.length) {
|
|
2018
2091
|
skills[normalizedWorkspaceId] = {
|
|
2019
2092
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2022,12 +2095,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2022
2095
|
} else {
|
|
2023
2096
|
delete skills[normalizedWorkspaceId];
|
|
2024
2097
|
}
|
|
2025
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2098
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$o({
|
|
2026
2099
|
version: 1
|
|
2027
2100
|
}, normalizedPreferences.toolsets ? {
|
|
2028
|
-
toolsets: _object_spread$
|
|
2101
|
+
toolsets: _object_spread$o({}, normalizedPreferences.toolsets)
|
|
2029
2102
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2030
|
-
middlewares: _object_spread$
|
|
2103
|
+
middlewares: _object_spread$o({}, normalizedPreferences.middlewares)
|
|
2031
2104
|
} : {}, Object.keys(skills).length ? {
|
|
2032
2105
|
skills: skills
|
|
2033
2106
|
} : {}));
|
|
@@ -2045,14 +2118,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2045
2118
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2046
2119
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2047
2120
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2048
|
-
return _object_spread_props$
|
|
2121
|
+
return _object_spread_props$i(_object_spread$o({
|
|
2049
2122
|
version: 1
|
|
2050
2123
|
}, normalizedPreferences.toolsets ? {
|
|
2051
|
-
toolsets: _object_spread$
|
|
2124
|
+
toolsets: _object_spread$o({}, normalizedPreferences.toolsets)
|
|
2052
2125
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2053
|
-
middlewares: _object_spread$
|
|
2126
|
+
middlewares: _object_spread$o({}, normalizedPreferences.middlewares)
|
|
2054
2127
|
} : {}), {
|
|
2055
|
-
skills: _object_spread_props$
|
|
2128
|
+
skills: _object_spread_props$i(_object_spread$o({}, currentSkills), _define_property$o({}, normalizedWorkspaceId, {
|
|
2056
2129
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2057
2130
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2058
2131
|
}))
|
|
@@ -2072,13 +2145,13 @@ function isSystemManagedAssistant(code) {
|
|
|
2072
2145
|
}
|
|
2073
2146
|
|
|
2074
2147
|
// Shared by Cloud and Desktop: activity changes must not move assistant entries.
|
|
2075
|
-
function _array_like_to_array$
|
|
2148
|
+
function _array_like_to_array$r(arr, len) {
|
|
2076
2149
|
if (len == null || len > arr.length) len = arr.length;
|
|
2077
2150
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2078
2151
|
return arr2;
|
|
2079
2152
|
}
|
|
2080
|
-
function _array_without_holes$
|
|
2081
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2153
|
+
function _array_without_holes$h(arr) {
|
|
2154
|
+
if (Array.isArray(arr)) return _array_like_to_array$r(arr);
|
|
2082
2155
|
}
|
|
2083
2156
|
function _instanceof(left, right) {
|
|
2084
2157
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -2087,22 +2160,22 @@ function _instanceof(left, right) {
|
|
|
2087
2160
|
return left instanceof right;
|
|
2088
2161
|
}
|
|
2089
2162
|
}
|
|
2090
|
-
function _iterable_to_array$
|
|
2163
|
+
function _iterable_to_array$j(iter) {
|
|
2091
2164
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2092
2165
|
}
|
|
2093
|
-
function _non_iterable_spread$
|
|
2166
|
+
function _non_iterable_spread$h() {
|
|
2094
2167
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2095
2168
|
}
|
|
2096
|
-
function _to_consumable_array$
|
|
2097
|
-
return _array_without_holes$
|
|
2169
|
+
function _to_consumable_array$h(arr) {
|
|
2170
|
+
return _array_without_holes$h(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$h();
|
|
2098
2171
|
}
|
|
2099
|
-
function _unsupported_iterable_to_array$
|
|
2172
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
2100
2173
|
if (!o) return;
|
|
2101
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2174
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
2102
2175
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2103
2176
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2104
2177
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2105
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2178
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
2106
2179
|
}
|
|
2107
2180
|
function orderAssistantXperts(items) {
|
|
2108
2181
|
var orderedIds = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
@@ -2131,7 +2204,7 @@ function orderAssistantXperts(items) {
|
|
|
2131
2204
|
var item = param.item;
|
|
2132
2205
|
return item;
|
|
2133
2206
|
});
|
|
2134
|
-
return _to_consumable_array$
|
|
2207
|
+
return _to_consumable_array$h(unorderedItems).concat(_to_consumable_array$h(orderedIds.map(function(id) {
|
|
2135
2208
|
return itemById.get(id);
|
|
2136
2209
|
}).filter(function(item) {
|
|
2137
2210
|
return !!item;
|
|
@@ -2145,7 +2218,7 @@ function createdAtTimestamp(item) {
|
|
|
2145
2218
|
|
|
2146
2219
|
var ASSISTANT_USER_PREFERENCES_VERSION = 1;
|
|
2147
2220
|
|
|
2148
|
-
function _define_property$
|
|
2221
|
+
function _define_property$n(obj, key, value) {
|
|
2149
2222
|
if (key in obj) {
|
|
2150
2223
|
Object.defineProperty(obj, key, {
|
|
2151
2224
|
value: value,
|
|
@@ -2158,7 +2231,7 @@ function _define_property$m(obj, key, value) {
|
|
|
2158
2231
|
}
|
|
2159
2232
|
return obj;
|
|
2160
2233
|
}
|
|
2161
|
-
function _object_spread$
|
|
2234
|
+
function _object_spread$n(target) {
|
|
2162
2235
|
for(var i = 1; i < arguments.length; i++){
|
|
2163
2236
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2164
2237
|
var ownKeys = Object.keys(source);
|
|
@@ -2168,7 +2241,7 @@ function _object_spread$m(target) {
|
|
|
2168
2241
|
}));
|
|
2169
2242
|
}
|
|
2170
2243
|
ownKeys.forEach(function(key) {
|
|
2171
|
-
_define_property$
|
|
2244
|
+
_define_property$n(target, key, source[key]);
|
|
2172
2245
|
});
|
|
2173
2246
|
}
|
|
2174
2247
|
return target;
|
|
@@ -2300,7 +2373,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
|
|
|
2300
2373
|
var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2301
2374
|
var _config_preserveUnknown;
|
|
2302
2375
|
var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
|
|
2303
|
-
var resolvedOptions = preserveUnknown ? _object_spread$
|
|
2376
|
+
var resolvedOptions = preserveUnknown ? _object_spread$n({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
|
|
2304
2377
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2305
2378
|
try {
|
|
2306
2379
|
for(var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -2356,15 +2429,15 @@ var AiModelTypeEnum;
|
|
|
2356
2429
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
2357
2430
|
})(AiModelTypeEnum || (AiModelTypeEnum = {}));
|
|
2358
2431
|
|
|
2359
|
-
function _array_like_to_array$
|
|
2432
|
+
function _array_like_to_array$q(arr, len) {
|
|
2360
2433
|
if (len == null || len > arr.length) len = arr.length;
|
|
2361
2434
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2362
2435
|
return arr2;
|
|
2363
2436
|
}
|
|
2364
|
-
function _array_without_holes$
|
|
2365
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2437
|
+
function _array_without_holes$g(arr) {
|
|
2438
|
+
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
2366
2439
|
}
|
|
2367
|
-
function _define_property$
|
|
2440
|
+
function _define_property$m(obj, key, value) {
|
|
2368
2441
|
if (key in obj) {
|
|
2369
2442
|
Object.defineProperty(obj, key, {
|
|
2370
2443
|
value: value,
|
|
@@ -2377,13 +2450,13 @@ function _define_property$l(obj, key, value) {
|
|
|
2377
2450
|
}
|
|
2378
2451
|
return obj;
|
|
2379
2452
|
}
|
|
2380
|
-
function _iterable_to_array$
|
|
2453
|
+
function _iterable_to_array$i(iter) {
|
|
2381
2454
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2382
2455
|
}
|
|
2383
|
-
function _non_iterable_spread$
|
|
2456
|
+
function _non_iterable_spread$g() {
|
|
2384
2457
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2385
2458
|
}
|
|
2386
|
-
function _object_spread$
|
|
2459
|
+
function _object_spread$m(target) {
|
|
2387
2460
|
for(var i = 1; i < arguments.length; i++){
|
|
2388
2461
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2389
2462
|
var ownKeys = Object.keys(source);
|
|
@@ -2393,12 +2466,12 @@ function _object_spread$l(target) {
|
|
|
2393
2466
|
}));
|
|
2394
2467
|
}
|
|
2395
2468
|
ownKeys.forEach(function(key) {
|
|
2396
|
-
_define_property$
|
|
2469
|
+
_define_property$m(target, key, source[key]);
|
|
2397
2470
|
});
|
|
2398
2471
|
}
|
|
2399
2472
|
return target;
|
|
2400
2473
|
}
|
|
2401
|
-
function ownKeys$
|
|
2474
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
2402
2475
|
var keys = Object.keys(object);
|
|
2403
2476
|
if (Object.getOwnPropertySymbols) {
|
|
2404
2477
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2406,27 +2479,27 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
2406
2479
|
}
|
|
2407
2480
|
return keys;
|
|
2408
2481
|
}
|
|
2409
|
-
function _object_spread_props$
|
|
2482
|
+
function _object_spread_props$h(target, source) {
|
|
2410
2483
|
source = source != null ? source : {};
|
|
2411
2484
|
if (Object.getOwnPropertyDescriptors) {
|
|
2412
2485
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2413
2486
|
} else {
|
|
2414
|
-
ownKeys$
|
|
2487
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
2415
2488
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2416
2489
|
});
|
|
2417
2490
|
}
|
|
2418
2491
|
return target;
|
|
2419
2492
|
}
|
|
2420
|
-
function _to_consumable_array$
|
|
2421
|
-
return _array_without_holes$
|
|
2493
|
+
function _to_consumable_array$g(arr) {
|
|
2494
|
+
return _array_without_holes$g(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$g();
|
|
2422
2495
|
}
|
|
2423
|
-
function _unsupported_iterable_to_array$
|
|
2496
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
2424
2497
|
if (!o) return;
|
|
2425
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2498
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
2426
2499
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2427
2500
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2428
2501
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2429
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2502
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
|
|
2430
2503
|
}
|
|
2431
2504
|
var discoverableModelTypes = [
|
|
2432
2505
|
AiModelTypeEnum.LLM,
|
|
@@ -2439,20 +2512,20 @@ var common$1 = {
|
|
|
2439
2512
|
maxConcurrency: positiveInteger.max(1000)
|
|
2440
2513
|
};
|
|
2441
2514
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = z.discriminatedUnion("modelType", [
|
|
2442
|
-
z.object(_object_spread_props$
|
|
2515
|
+
z.object(_object_spread_props$h(_object_spread$m({
|
|
2443
2516
|
modelType: z.literal(AiModelTypeEnum.LLM)
|
|
2444
2517
|
}, common$1), {
|
|
2445
2518
|
maxOutputTokens: positiveInteger,
|
|
2446
2519
|
defaultMaxTokens: positiveInteger,
|
|
2447
2520
|
features: z.array(z.nativeEnum(ModelFeature)).max(20)
|
|
2448
2521
|
})).strict(),
|
|
2449
|
-
z.object(_object_spread_props$
|
|
2522
|
+
z.object(_object_spread_props$h(_object_spread$m({
|
|
2450
2523
|
modelType: z.literal(AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2451
2524
|
}, common$1), {
|
|
2452
2525
|
dimensions: positiveInteger.optional(),
|
|
2453
2526
|
batchSize: positiveInteger.max(2048)
|
|
2454
2527
|
})).strict(),
|
|
2455
|
-
z.object(_object_spread$
|
|
2528
|
+
z.object(_object_spread$m({
|
|
2456
2529
|
modelType: z.literal(AiModelTypeEnum.RERANK)
|
|
2457
2530
|
}, common$1)).strict()
|
|
2458
2531
|
]).superRefine(function(value, ctx) {
|
|
@@ -2484,7 +2557,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2484
2557
|
};
|
|
2485
2558
|
switch(modelType){
|
|
2486
2559
|
case AiModelTypeEnum.LLM:
|
|
2487
|
-
return _object_spread_props$
|
|
2560
|
+
return _object_spread_props$h(_object_spread$m({
|
|
2488
2561
|
modelType: modelType
|
|
2489
2562
|
}, common), {
|
|
2490
2563
|
maxOutputTokens: 2048,
|
|
@@ -2492,13 +2565,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2492
2565
|
features: []
|
|
2493
2566
|
});
|
|
2494
2567
|
case AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2495
|
-
return _object_spread_props$
|
|
2568
|
+
return _object_spread_props$h(_object_spread$m({
|
|
2496
2569
|
modelType: modelType
|
|
2497
2570
|
}, common), {
|
|
2498
2571
|
batchSize: 16
|
|
2499
2572
|
});
|
|
2500
2573
|
case AiModelTypeEnum.RERANK:
|
|
2501
|
-
return _object_spread$
|
|
2574
|
+
return _object_spread$m({
|
|
2502
2575
|
modelType: modelType
|
|
2503
2576
|
}, common);
|
|
2504
2577
|
}
|
|
@@ -2519,7 +2592,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2519
2592
|
configuration.maxOutputTokens = Math.min(configuration.maxOutputTokens, configuration.contextSize);
|
|
2520
2593
|
configuration.defaultMaxTokens = Math.min(configuration.defaultMaxTokens, configuration.maxOutputTokens);
|
|
2521
2594
|
var _model_features;
|
|
2522
|
-
configuration.features = _to_consumable_array$
|
|
2595
|
+
configuration.features = _to_consumable_array$g((_model_features = model === null || model === void 0 ? void 0 : model.features) !== null && _model_features !== void 0 ? _model_features : []);
|
|
2523
2596
|
}
|
|
2524
2597
|
if (configuration.modelType === AiModelTypeEnum.TEXT_EMBEDDING) {
|
|
2525
2598
|
var _model_model_properties1, _model_parameter_rules_find, _model_parameter_rules1;
|
|
@@ -3086,7 +3159,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3086
3159
|
return node.title || node.key;
|
|
3087
3160
|
}
|
|
3088
3161
|
|
|
3089
|
-
function _define_property$
|
|
3162
|
+
function _define_property$l(obj, key, value) {
|
|
3090
3163
|
if (key in obj) {
|
|
3091
3164
|
Object.defineProperty(obj, key, {
|
|
3092
3165
|
value: value,
|
|
@@ -3099,7 +3172,7 @@ function _define_property$k(obj, key, value) {
|
|
|
3099
3172
|
}
|
|
3100
3173
|
return obj;
|
|
3101
3174
|
}
|
|
3102
|
-
function _object_spread$
|
|
3175
|
+
function _object_spread$l(target) {
|
|
3103
3176
|
for(var i = 1; i < arguments.length; i++){
|
|
3104
3177
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3105
3178
|
var ownKeys = Object.keys(source);
|
|
@@ -3109,12 +3182,12 @@ function _object_spread$k(target) {
|
|
|
3109
3182
|
}));
|
|
3110
3183
|
}
|
|
3111
3184
|
ownKeys.forEach(function(key) {
|
|
3112
|
-
_define_property$
|
|
3185
|
+
_define_property$l(target, key, source[key]);
|
|
3113
3186
|
});
|
|
3114
3187
|
}
|
|
3115
3188
|
return target;
|
|
3116
3189
|
}
|
|
3117
|
-
function ownKeys$
|
|
3190
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
3118
3191
|
var keys = Object.keys(object);
|
|
3119
3192
|
if (Object.getOwnPropertySymbols) {
|
|
3120
3193
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3122,12 +3195,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
3122
3195
|
}
|
|
3123
3196
|
return keys;
|
|
3124
3197
|
}
|
|
3125
|
-
function _object_spread_props$
|
|
3198
|
+
function _object_spread_props$g(target, source) {
|
|
3126
3199
|
source = source != null ? source : {};
|
|
3127
3200
|
if (Object.getOwnPropertyDescriptors) {
|
|
3128
3201
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3129
3202
|
} else {
|
|
3130
|
-
ownKeys$
|
|
3203
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
3131
3204
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3132
3205
|
});
|
|
3133
3206
|
}
|
|
@@ -3160,7 +3233,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
3160
3233
|
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
3161
3234
|
}
|
|
3162
3235
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
3163
|
-
return _object_spread_props$
|
|
3236
|
+
return _object_spread_props$g(_object_spread$l({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
3164
3237
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3165
3238
|
});
|
|
3166
3239
|
}
|
|
@@ -3246,7 +3319,7 @@ var VariableOperations = [
|
|
|
3246
3319
|
}
|
|
3247
3320
|
];
|
|
3248
3321
|
|
|
3249
|
-
function _array_like_to_array$
|
|
3322
|
+
function _array_like_to_array$p(arr, len) {
|
|
3250
3323
|
if (len == null || len > arr.length) len = arr.length;
|
|
3251
3324
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3252
3325
|
return arr2;
|
|
@@ -3254,7 +3327,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
3254
3327
|
function _array_with_holes$f(arr) {
|
|
3255
3328
|
if (Array.isArray(arr)) return arr;
|
|
3256
3329
|
}
|
|
3257
|
-
function _define_property$
|
|
3330
|
+
function _define_property$k(obj, key, value) {
|
|
3258
3331
|
if (key in obj) {
|
|
3259
3332
|
Object.defineProperty(obj, key, {
|
|
3260
3333
|
value: value,
|
|
@@ -3294,7 +3367,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
3294
3367
|
function _non_iterable_rest$f() {
|
|
3295
3368
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3296
3369
|
}
|
|
3297
|
-
function _object_spread$
|
|
3370
|
+
function _object_spread$k(target) {
|
|
3298
3371
|
for(var i = 1; i < arguments.length; i++){
|
|
3299
3372
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3300
3373
|
var ownKeys = Object.keys(source);
|
|
@@ -3304,12 +3377,12 @@ function _object_spread$j(target) {
|
|
|
3304
3377
|
}));
|
|
3305
3378
|
}
|
|
3306
3379
|
ownKeys.forEach(function(key) {
|
|
3307
|
-
_define_property$
|
|
3380
|
+
_define_property$k(target, key, source[key]);
|
|
3308
3381
|
});
|
|
3309
3382
|
}
|
|
3310
3383
|
return target;
|
|
3311
3384
|
}
|
|
3312
|
-
function ownKeys$
|
|
3385
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
3313
3386
|
var keys = Object.keys(object);
|
|
3314
3387
|
if (Object.getOwnPropertySymbols) {
|
|
3315
3388
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3317,27 +3390,27 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
3317
3390
|
}
|
|
3318
3391
|
return keys;
|
|
3319
3392
|
}
|
|
3320
|
-
function _object_spread_props$
|
|
3393
|
+
function _object_spread_props$f(target, source) {
|
|
3321
3394
|
source = source != null ? source : {};
|
|
3322
3395
|
if (Object.getOwnPropertyDescriptors) {
|
|
3323
3396
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3324
3397
|
} else {
|
|
3325
|
-
ownKeys$
|
|
3398
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
3326
3399
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3327
3400
|
});
|
|
3328
3401
|
}
|
|
3329
3402
|
return target;
|
|
3330
3403
|
}
|
|
3331
3404
|
function _sliced_to_array$d(arr, i) {
|
|
3332
|
-
return _array_with_holes$f(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$
|
|
3405
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$p(arr, i) || _non_iterable_rest$f();
|
|
3333
3406
|
}
|
|
3334
|
-
function _unsupported_iterable_to_array$
|
|
3407
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
3335
3408
|
if (!o) return;
|
|
3336
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3409
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
3337
3410
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3338
3411
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3339
3412
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3340
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3413
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
|
|
3341
3414
|
}
|
|
3342
3415
|
/**
|
|
3343
3416
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -3422,7 +3495,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3422
3495
|
var _varName_split = _sliced_to_array$d(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3423
3496
|
if (variableName) {
|
|
3424
3497
|
var _state_agentChannelName;
|
|
3425
|
-
state[agentChannelName] = _object_spread_props$
|
|
3498
|
+
state[agentChannelName] = _object_spread_props$f(_object_spread$k({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$k({}, variableName, value));
|
|
3426
3499
|
} else {
|
|
3427
3500
|
state[agentChannelName] = value;
|
|
3428
3501
|
}
|
|
@@ -3513,7 +3586,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
3513
3586
|
});
|
|
3514
3587
|
}
|
|
3515
3588
|
|
|
3516
|
-
function _define_property$
|
|
3589
|
+
function _define_property$j(obj, key, value) {
|
|
3517
3590
|
if (key in obj) {
|
|
3518
3591
|
Object.defineProperty(obj, key, {
|
|
3519
3592
|
value: value,
|
|
@@ -3526,7 +3599,7 @@ function _define_property$i(obj, key, value) {
|
|
|
3526
3599
|
}
|
|
3527
3600
|
return obj;
|
|
3528
3601
|
}
|
|
3529
|
-
function _object_spread$
|
|
3602
|
+
function _object_spread$j(target) {
|
|
3530
3603
|
for(var i = 1; i < arguments.length; i++){
|
|
3531
3604
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3532
3605
|
var ownKeys = Object.keys(source);
|
|
@@ -3536,12 +3609,12 @@ function _object_spread$i(target) {
|
|
|
3536
3609
|
}));
|
|
3537
3610
|
}
|
|
3538
3611
|
ownKeys.forEach(function(key) {
|
|
3539
|
-
_define_property$
|
|
3612
|
+
_define_property$j(target, key, source[key]);
|
|
3540
3613
|
});
|
|
3541
3614
|
}
|
|
3542
3615
|
return target;
|
|
3543
3616
|
}
|
|
3544
|
-
function ownKeys$
|
|
3617
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
3545
3618
|
var keys = Object.keys(object);
|
|
3546
3619
|
if (Object.getOwnPropertySymbols) {
|
|
3547
3620
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3549,12 +3622,12 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
3549
3622
|
}
|
|
3550
3623
|
return keys;
|
|
3551
3624
|
}
|
|
3552
|
-
function _object_spread_props$
|
|
3625
|
+
function _object_spread_props$e(target, source) {
|
|
3553
3626
|
source = source != null ? source : {};
|
|
3554
3627
|
if (Object.getOwnPropertyDescriptors) {
|
|
3555
3628
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3556
3629
|
} else {
|
|
3557
|
-
ownKeys$
|
|
3630
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
3558
3631
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3559
3632
|
});
|
|
3560
3633
|
}
|
|
@@ -3642,11 +3715,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
3642
3715
|
return candidate === requestedMode;
|
|
3643
3716
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
3644
3717
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
3645
|
-
return _object_spread_props$
|
|
3718
|
+
return _object_spread_props$e(_object_spread$j({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
3646
3719
|
mode: mode,
|
|
3647
|
-
fusion: _object_spread_props$
|
|
3720
|
+
fusion: _object_spread_props$e(_object_spread$j({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
3648
3721
|
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,
|
|
3649
|
-
weights: _object_spread_props$
|
|
3722
|
+
weights: _object_spread_props$e(_object_spread$j({}, 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 : {}), {
|
|
3650
3723
|
graph: 0
|
|
3651
3724
|
})
|
|
3652
3725
|
})
|
|
@@ -3694,30 +3767,30 @@ var _retrieval_recall_contentScope;
|
|
|
3694
3767
|
});
|
|
3695
3768
|
}
|
|
3696
3769
|
|
|
3697
|
-
function _array_like_to_array$
|
|
3770
|
+
function _array_like_to_array$o(arr, len) {
|
|
3698
3771
|
if (len == null || len > arr.length) len = arr.length;
|
|
3699
3772
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3700
3773
|
return arr2;
|
|
3701
3774
|
}
|
|
3702
|
-
function _array_without_holes$
|
|
3703
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3775
|
+
function _array_without_holes$f(arr) {
|
|
3776
|
+
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
3704
3777
|
}
|
|
3705
|
-
function _iterable_to_array$
|
|
3778
|
+
function _iterable_to_array$h(iter) {
|
|
3706
3779
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3707
3780
|
}
|
|
3708
|
-
function _non_iterable_spread$
|
|
3781
|
+
function _non_iterable_spread$f() {
|
|
3709
3782
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3710
3783
|
}
|
|
3711
|
-
function _to_consumable_array$
|
|
3712
|
-
return _array_without_holes$
|
|
3784
|
+
function _to_consumable_array$f(arr) {
|
|
3785
|
+
return _array_without_holes$f(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$f();
|
|
3713
3786
|
}
|
|
3714
|
-
function _unsupported_iterable_to_array$
|
|
3787
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
3715
3788
|
if (!o) return;
|
|
3716
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3789
|
+
if (typeof o === "string") return _array_like_to_array$o(o, minLen);
|
|
3717
3790
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3718
3791
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3719
3792
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3720
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3793
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
|
|
3721
3794
|
}
|
|
3722
3795
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
3723
3796
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
@@ -3792,11 +3865,11 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
3792
3865
|
/** Existing uploader/importer defaults plus capabilities advertised by installed document parsers.
|
|
3793
3866
|
* Explicit caller restrictions remain authoritative; this does not grant builtin parsing support.
|
|
3794
3867
|
*/ function knowledgeUploadFileTypes(defaults, providers, accepts) {
|
|
3795
|
-
var candidates = (accepts === null || accepts === void 0 ? void 0 : accepts.length) ? accepts : _to_consumable_array$
|
|
3868
|
+
var candidates = (accepts === null || accepts === void 0 ? void 0 : accepts.length) ? accepts : _to_consumable_array$f(defaults).concat(_to_consumable_array$f(providers.flatMap(function(provider) {
|
|
3796
3869
|
var _provider_supportedFileTypes;
|
|
3797
3870
|
return (_provider_supportedFileTypes = provider.supportedFileTypes) !== null && _provider_supportedFileTypes !== void 0 ? _provider_supportedFileTypes : [];
|
|
3798
3871
|
})));
|
|
3799
|
-
return _to_consumable_array$
|
|
3872
|
+
return _to_consumable_array$f(new Set(candidates.filter(function(type) {
|
|
3800
3873
|
return /^\.?[a-z0-9]+$|^(application|text|image|audio|video)\/[a-z0-9.+-]+(?:;.*)?$/i.test(type.trim());
|
|
3801
3874
|
}).map(function(type) {
|
|
3802
3875
|
return knowledgeDocumentFileType({
|
|
@@ -3807,15 +3880,15 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
3807
3880
|
})));
|
|
3808
3881
|
}
|
|
3809
3882
|
|
|
3810
|
-
function _array_like_to_array$
|
|
3883
|
+
function _array_like_to_array$n(arr, len) {
|
|
3811
3884
|
if (len == null || len > arr.length) len = arr.length;
|
|
3812
3885
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3813
3886
|
return arr2;
|
|
3814
3887
|
}
|
|
3815
|
-
function _array_without_holes$
|
|
3816
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
3888
|
+
function _array_without_holes$e(arr) {
|
|
3889
|
+
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
3817
3890
|
}
|
|
3818
|
-
function _define_property$
|
|
3891
|
+
function _define_property$i(obj, key, value) {
|
|
3819
3892
|
if (key in obj) {
|
|
3820
3893
|
Object.defineProperty(obj, key, {
|
|
3821
3894
|
value: value,
|
|
@@ -3828,13 +3901,13 @@ function _define_property$h(obj, key, value) {
|
|
|
3828
3901
|
}
|
|
3829
3902
|
return obj;
|
|
3830
3903
|
}
|
|
3831
|
-
function _iterable_to_array$
|
|
3904
|
+
function _iterable_to_array$g(iter) {
|
|
3832
3905
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3833
3906
|
}
|
|
3834
|
-
function _non_iterable_spread$
|
|
3907
|
+
function _non_iterable_spread$e() {
|
|
3835
3908
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3836
3909
|
}
|
|
3837
|
-
function _object_spread$
|
|
3910
|
+
function _object_spread$i(target) {
|
|
3838
3911
|
for(var i = 1; i < arguments.length; i++){
|
|
3839
3912
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3840
3913
|
var ownKeys = Object.keys(source);
|
|
@@ -3844,30 +3917,30 @@ function _object_spread$h(target) {
|
|
|
3844
3917
|
}));
|
|
3845
3918
|
}
|
|
3846
3919
|
ownKeys.forEach(function(key) {
|
|
3847
|
-
_define_property$
|
|
3920
|
+
_define_property$i(target, key, source[key]);
|
|
3848
3921
|
});
|
|
3849
3922
|
}
|
|
3850
3923
|
return target;
|
|
3851
3924
|
}
|
|
3852
|
-
function _to_consumable_array$
|
|
3853
|
-
return _array_without_holes$
|
|
3925
|
+
function _to_consumable_array$e(arr) {
|
|
3926
|
+
return _array_without_holes$e(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$e();
|
|
3854
3927
|
}
|
|
3855
|
-
function _unsupported_iterable_to_array$
|
|
3928
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
3856
3929
|
if (!o) return;
|
|
3857
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3930
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
3858
3931
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3859
3932
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3860
3933
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3861
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3934
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
|
|
3862
3935
|
}
|
|
3863
3936
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
3864
3937
|
if (!config) return {};
|
|
3865
|
-
return _object_spread$
|
|
3866
|
-
spreadsheet: _object_spread$
|
|
3938
|
+
return _object_spread$i({}, config.spreadsheet ? {
|
|
3939
|
+
spreadsheet: _object_spread$i({}, config.spreadsheet)
|
|
3867
3940
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
3868
3941
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
3869
3942
|
} : {}, config.questionGeneration ? {
|
|
3870
|
-
questionGeneration: _object_spread$
|
|
3943
|
+
questionGeneration: _object_spread$i({}, config.questionGeneration)
|
|
3871
3944
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
3872
3945
|
chunkLanguageHint: config.chunkLanguageHint
|
|
3873
3946
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -3881,19 +3954,19 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
3881
3954
|
} : {}, config.textSplitterType ? {
|
|
3882
3955
|
textSplitterType: config.textSplitterType
|
|
3883
3956
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
3884
|
-
textSplitter: _object_spread$
|
|
3957
|
+
textSplitter: _object_spread$i({}, config.chunkSize != null ? {
|
|
3885
3958
|
chunkSize: config.chunkSize
|
|
3886
3959
|
} : {}, config.chunkOverlap != null ? {
|
|
3887
3960
|
chunkOverlap: config.chunkOverlap
|
|
3888
3961
|
} : {}, config.textSplitter)
|
|
3889
3962
|
} : {}, config.separators ? {
|
|
3890
|
-
separators: _to_consumable_array$
|
|
3963
|
+
separators: _to_consumable_array$e(config.separators)
|
|
3891
3964
|
} : {}, config.imageUnderstandingEnabled !== undefined ? {
|
|
3892
3965
|
imageUnderstandingEnabled: config.imageUnderstandingEnabled
|
|
3893
3966
|
} : {}, config.imageUnderstandingType ? {
|
|
3894
3967
|
imageUnderstandingType: config.imageUnderstandingType
|
|
3895
3968
|
} : {}, config.imageUnderstanding ? {
|
|
3896
|
-
imageUnderstanding: _object_spread$
|
|
3969
|
+
imageUnderstanding: _object_spread$i({}, config.imageUnderstanding)
|
|
3897
3970
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
3898
3971
|
}
|
|
3899
3972
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -3958,7 +4031,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
3958
4031
|
return letterStartSUID("KnowledgeBase_");
|
|
3959
4032
|
}
|
|
3960
4033
|
|
|
3961
|
-
function _define_property$
|
|
4034
|
+
function _define_property$h(obj, key, value) {
|
|
3962
4035
|
if (key in obj) {
|
|
3963
4036
|
Object.defineProperty(obj, key, {
|
|
3964
4037
|
value: value,
|
|
@@ -3971,7 +4044,7 @@ function _define_property$g(obj, key, value) {
|
|
|
3971
4044
|
}
|
|
3972
4045
|
return obj;
|
|
3973
4046
|
}
|
|
3974
|
-
function _object_spread$
|
|
4047
|
+
function _object_spread$h(target) {
|
|
3975
4048
|
for(var i = 1; i < arguments.length; i++){
|
|
3976
4049
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3977
4050
|
var ownKeys = Object.keys(source);
|
|
@@ -3981,7 +4054,7 @@ function _object_spread$g(target) {
|
|
|
3981
4054
|
}));
|
|
3982
4055
|
}
|
|
3983
4056
|
ownKeys.forEach(function(key) {
|
|
3984
|
-
_define_property$
|
|
4057
|
+
_define_property$h(target, key, source[key]);
|
|
3985
4058
|
});
|
|
3986
4059
|
}
|
|
3987
4060
|
return target;
|
|
@@ -4001,7 +4074,7 @@ function _object_spread$g(target) {
|
|
|
4001
4074
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4002
4075
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4003
4076
|
})(DocumentTypeEnum || (DocumentTypeEnum = {}));
|
|
4004
|
-
var KDocumentSourceType = _object_spread$
|
|
4077
|
+
var KDocumentSourceType = _object_spread$h({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
|
|
4005
4078
|
/**
|
|
4006
4079
|
* Document type category, determine how to process the document.
|
|
4007
4080
|
*/ var KBDocumentCategoryEnum;
|
|
@@ -4525,7 +4598,32 @@ function genXpertDBSqlKey() {
|
|
|
4525
4598
|
return letterStartSUID("DBSql_");
|
|
4526
4599
|
}
|
|
4527
4600
|
|
|
4528
|
-
/** Stable placement scopes declared by plugin application contributions. */
|
|
4601
|
+
/** Stable placement scopes declared by plugin application contributions. */ function _array_like_to_array$m(arr, len) {
|
|
4602
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4603
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4604
|
+
return arr2;
|
|
4605
|
+
}
|
|
4606
|
+
function _array_without_holes$d(arr) {
|
|
4607
|
+
if (Array.isArray(arr)) return _array_like_to_array$m(arr);
|
|
4608
|
+
}
|
|
4609
|
+
function _iterable_to_array$f(iter) {
|
|
4610
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
4611
|
+
}
|
|
4612
|
+
function _non_iterable_spread$d() {
|
|
4613
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4614
|
+
}
|
|
4615
|
+
function _to_consumable_array$d(arr) {
|
|
4616
|
+
return _array_without_holes$d(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$d();
|
|
4617
|
+
}
|
|
4618
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
4619
|
+
if (!o) return;
|
|
4620
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
4621
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4622
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4623
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4624
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
4625
|
+
}
|
|
4626
|
+
var PLUGIN_APPLICATION_SCOPE = {
|
|
4529
4627
|
TENANT: "tenant",
|
|
4530
4628
|
ORGANIZATION: "organization",
|
|
4531
4629
|
PERSONAL: "personal"
|
|
@@ -4541,6 +4639,16 @@ function genXpertDBSqlKey() {
|
|
|
4541
4639
|
FAILED: "failed",
|
|
4542
4640
|
DEGRADED: "degraded"
|
|
4543
4641
|
};
|
|
4642
|
+
/** Validate portable metadata without inferring a scope from names or presentation text. */ function getPluginApplicationScopes(value) {
|
|
4643
|
+
var values = Array.isArray(value) ? value : [
|
|
4644
|
+
value
|
|
4645
|
+
];
|
|
4646
|
+
if (!values.length || !values.every(isPluginApplicationScope)) return [];
|
|
4647
|
+
return _to_consumable_array$d(new Set(values));
|
|
4648
|
+
}
|
|
4649
|
+
function isPluginApplicationScope(value) {
|
|
4650
|
+
return value === "organization" || value === "personal" || value === "tenant";
|
|
4651
|
+
}
|
|
4544
4652
|
|
|
4545
4653
|
var PLUGIN_LEVEL = {
|
|
4546
4654
|
SYSTEM: "system",
|
|
@@ -4814,7 +4922,7 @@ function _array_like_to_array$l(arr, len) {
|
|
|
4814
4922
|
function _array_without_holes$c(arr) {
|
|
4815
4923
|
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
4816
4924
|
}
|
|
4817
|
-
function _define_property$
|
|
4925
|
+
function _define_property$g(obj, key, value) {
|
|
4818
4926
|
if (key in obj) {
|
|
4819
4927
|
Object.defineProperty(obj, key, {
|
|
4820
4928
|
value: value,
|
|
@@ -4833,7 +4941,7 @@ function _iterable_to_array$e(iter) {
|
|
|
4833
4941
|
function _non_iterable_spread$c() {
|
|
4834
4942
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4835
4943
|
}
|
|
4836
|
-
function _object_spread$
|
|
4944
|
+
function _object_spread$g(target) {
|
|
4837
4945
|
for(var i = 1; i < arguments.length; i++){
|
|
4838
4946
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4839
4947
|
var ownKeys = Object.keys(source);
|
|
@@ -4843,12 +4951,12 @@ function _object_spread$f(target) {
|
|
|
4843
4951
|
}));
|
|
4844
4952
|
}
|
|
4845
4953
|
ownKeys.forEach(function(key) {
|
|
4846
|
-
_define_property$
|
|
4954
|
+
_define_property$g(target, key, source[key]);
|
|
4847
4955
|
});
|
|
4848
4956
|
}
|
|
4849
4957
|
return target;
|
|
4850
4958
|
}
|
|
4851
|
-
function ownKeys$
|
|
4959
|
+
function ownKeys$d(object, enumerableOnly) {
|
|
4852
4960
|
var keys = Object.keys(object);
|
|
4853
4961
|
if (Object.getOwnPropertySymbols) {
|
|
4854
4962
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4856,12 +4964,12 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
4856
4964
|
}
|
|
4857
4965
|
return keys;
|
|
4858
4966
|
}
|
|
4859
|
-
function _object_spread_props$
|
|
4967
|
+
function _object_spread_props$d(target, source) {
|
|
4860
4968
|
source = source != null ? source : {};
|
|
4861
4969
|
if (Object.getOwnPropertyDescriptors) {
|
|
4862
4970
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4863
4971
|
} else {
|
|
4864
|
-
ownKeys$
|
|
4972
|
+
ownKeys$d(Object(source)).forEach(function(key) {
|
|
4865
4973
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4866
4974
|
});
|
|
4867
4975
|
}
|
|
@@ -4942,7 +5050,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
4942
5050
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
4943
5051
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
4944
5052
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
4945
|
-
return _object_spread_props$
|
|
5053
|
+
return _object_spread_props$d(_object_spread$g({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
4946
5054
|
id: xpert.id,
|
|
4947
5055
|
tenantId: xpert.tenantId,
|
|
4948
5056
|
organizationId: xpert.organizationId,
|
|
@@ -5226,9 +5334,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5226
5334
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5227
5335
|
replacedNode = true;
|
|
5228
5336
|
var _node_entity;
|
|
5229
|
-
return _object_spread_props$
|
|
5337
|
+
return _object_spread_props$d(_object_spread$g({}, node), {
|
|
5230
5338
|
key: targetKey,
|
|
5231
|
-
entity: _object_spread_props$
|
|
5339
|
+
entity: _object_spread_props$d(_object_spread$g({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
5232
5340
|
key: targetKey
|
|
5233
5341
|
})
|
|
5234
5342
|
});
|
|
@@ -5244,17 +5352,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5244
5352
|
if (from === connection.from && to === connection.to) {
|
|
5245
5353
|
return connection;
|
|
5246
5354
|
}
|
|
5247
|
-
return _object_spread_props$
|
|
5355
|
+
return _object_spread_props$d(_object_spread$g({}, connection), {
|
|
5248
5356
|
from: from,
|
|
5249
5357
|
to: to,
|
|
5250
5358
|
key: "".concat(from, "/").concat(to)
|
|
5251
5359
|
});
|
|
5252
5360
|
});
|
|
5253
|
-
return _object_spread_props$
|
|
5254
|
-
team: draft.team ? _object_spread_props$
|
|
5255
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
5361
|
+
return _object_spread_props$d(_object_spread$g({}, draft), {
|
|
5362
|
+
team: draft.team ? _object_spread_props$d(_object_spread$g({}, draft.team), {
|
|
5363
|
+
agent: draft.team.agent ? _object_spread_props$d(_object_spread$g({}, draft.team.agent, agent), {
|
|
5256
5364
|
key: targetKey
|
|
5257
|
-
}) : _object_spread_props$
|
|
5365
|
+
}) : _object_spread_props$d(_object_spread$g({}, agent), {
|
|
5258
5366
|
key: targetKey
|
|
5259
5367
|
})
|
|
5260
5368
|
}) : draft.team,
|
|
@@ -5397,6 +5505,10 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
5397
5505
|
applicationKey: "platform",
|
|
5398
5506
|
projectTypeKey: "general"
|
|
5399
5507
|
};
|
|
5508
|
+
/** File-backed collaborative writing workspace using the ordinary Project lifecycle. */ var SPACE_PROJECT_TYPE = {
|
|
5509
|
+
applicationKey: "platform",
|
|
5510
|
+
projectTypeKey: "space"
|
|
5511
|
+
};
|
|
5400
5512
|
|
|
5401
5513
|
/**
|
|
5402
5514
|
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
@@ -5405,7 +5517,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
5405
5517
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
5406
5518
|
* @param documents - A flat array of DocumentInterface objects
|
|
5407
5519
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
5408
|
-
*/ function _define_property$
|
|
5520
|
+
*/ function _define_property$f(obj, key, value) {
|
|
5409
5521
|
if (key in obj) {
|
|
5410
5522
|
Object.defineProperty(obj, key, {
|
|
5411
5523
|
value: value,
|
|
@@ -5418,7 +5530,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
5418
5530
|
}
|
|
5419
5531
|
return obj;
|
|
5420
5532
|
}
|
|
5421
|
-
function _object_spread$
|
|
5533
|
+
function _object_spread$f(target) {
|
|
5422
5534
|
for(var i = 1; i < arguments.length; i++){
|
|
5423
5535
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5424
5536
|
var ownKeys = Object.keys(source);
|
|
@@ -5428,12 +5540,12 @@ function _object_spread$e(target) {
|
|
|
5428
5540
|
}));
|
|
5429
5541
|
}
|
|
5430
5542
|
ownKeys.forEach(function(key) {
|
|
5431
|
-
_define_property$
|
|
5543
|
+
_define_property$f(target, key, source[key]);
|
|
5432
5544
|
});
|
|
5433
5545
|
}
|
|
5434
5546
|
return target;
|
|
5435
5547
|
}
|
|
5436
|
-
function ownKeys$
|
|
5548
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
5437
5549
|
var keys = Object.keys(object);
|
|
5438
5550
|
if (Object.getOwnPropertySymbols) {
|
|
5439
5551
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5441,12 +5553,12 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
5441
5553
|
}
|
|
5442
5554
|
return keys;
|
|
5443
5555
|
}
|
|
5444
|
-
function _object_spread_props$
|
|
5556
|
+
function _object_spread_props$c(target, source) {
|
|
5445
5557
|
source = source != null ? source : {};
|
|
5446
5558
|
if (Object.getOwnPropertyDescriptors) {
|
|
5447
5559
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5448
5560
|
} else {
|
|
5449
|
-
ownKeys$
|
|
5561
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
5450
5562
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5451
5563
|
});
|
|
5452
5564
|
}
|
|
@@ -5461,8 +5573,8 @@ function buildChunkTree(documents) {
|
|
|
5461
5573
|
documents.forEach(function(doc, index) {
|
|
5462
5574
|
var chunkId = getChunkNodeId(doc);
|
|
5463
5575
|
if (chunkId) {
|
|
5464
|
-
map.set(chunkId, _object_spread_props$
|
|
5465
|
-
metadata: _object_spread_props$
|
|
5576
|
+
map.set(chunkId, _object_spread_props$c(_object_spread$f({}, doc), {
|
|
5577
|
+
metadata: _object_spread_props$c(_object_spread$f({}, doc.metadata), {
|
|
5466
5578
|
chunkId: chunkId,
|
|
5467
5579
|
children: []
|
|
5468
5580
|
})
|
|
@@ -6012,7 +6124,7 @@ function isLocalPath(value) {
|
|
|
6012
6124
|
})).size === value.length;
|
|
6013
6125
|
}
|
|
6014
6126
|
|
|
6015
|
-
function _define_property$
|
|
6127
|
+
function _define_property$e(obj, key, value) {
|
|
6016
6128
|
if (key in obj) {
|
|
6017
6129
|
Object.defineProperty(obj, key, {
|
|
6018
6130
|
value: value,
|
|
@@ -6025,7 +6137,7 @@ function _define_property$d(obj, key, value) {
|
|
|
6025
6137
|
}
|
|
6026
6138
|
return obj;
|
|
6027
6139
|
}
|
|
6028
|
-
function _object_spread$
|
|
6140
|
+
function _object_spread$e(target) {
|
|
6029
6141
|
for(var i = 1; i < arguments.length; i++){
|
|
6030
6142
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6031
6143
|
var ownKeys = Object.keys(source);
|
|
@@ -6035,12 +6147,12 @@ function _object_spread$d(target) {
|
|
|
6035
6147
|
}));
|
|
6036
6148
|
}
|
|
6037
6149
|
ownKeys.forEach(function(key) {
|
|
6038
|
-
_define_property$
|
|
6150
|
+
_define_property$e(target, key, source[key]);
|
|
6039
6151
|
});
|
|
6040
6152
|
}
|
|
6041
6153
|
return target;
|
|
6042
6154
|
}
|
|
6043
|
-
function ownKeys$
|
|
6155
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
6044
6156
|
var keys = Object.keys(object);
|
|
6045
6157
|
if (Object.getOwnPropertySymbols) {
|
|
6046
6158
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6048,12 +6160,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
6048
6160
|
}
|
|
6049
6161
|
return keys;
|
|
6050
6162
|
}
|
|
6051
|
-
function _object_spread_props$
|
|
6163
|
+
function _object_spread_props$b(target, source) {
|
|
6052
6164
|
source = source != null ? source : {};
|
|
6053
6165
|
if (Object.getOwnPropertyDescriptors) {
|
|
6054
6166
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6055
6167
|
} else {
|
|
6056
|
-
ownKeys$
|
|
6168
|
+
ownKeys$b(Object(source)).forEach(function(key) {
|
|
6057
6169
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6058
6170
|
});
|
|
6059
6171
|
}
|
|
@@ -6093,8 +6205,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
6093
6205
|
if (provider === entity.provider) {
|
|
6094
6206
|
return node;
|
|
6095
6207
|
}
|
|
6096
|
-
return _object_spread_props$
|
|
6097
|
-
entity: _object_spread_props$
|
|
6208
|
+
return _object_spread_props$b(_object_spread$e({}, node), {
|
|
6209
|
+
entity: _object_spread_props$b(_object_spread$e({}, entity), {
|
|
6098
6210
|
provider: provider
|
|
6099
6211
|
})
|
|
6100
6212
|
});
|
|
@@ -6155,7 +6267,7 @@ function _array_with_holes$c(arr) {
|
|
|
6155
6267
|
function _array_without_holes$b(arr) {
|
|
6156
6268
|
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
6157
6269
|
}
|
|
6158
|
-
function _define_property$
|
|
6270
|
+
function _define_property$d(obj, key, value) {
|
|
6159
6271
|
if (key in obj) {
|
|
6160
6272
|
Object.defineProperty(obj, key, {
|
|
6161
6273
|
value: value,
|
|
@@ -6201,7 +6313,7 @@ function _non_iterable_rest$c() {
|
|
|
6201
6313
|
function _non_iterable_spread$b() {
|
|
6202
6314
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6203
6315
|
}
|
|
6204
|
-
function _object_spread$
|
|
6316
|
+
function _object_spread$d(target) {
|
|
6205
6317
|
for(var i = 1; i < arguments.length; i++){
|
|
6206
6318
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6207
6319
|
var ownKeys = Object.keys(source);
|
|
@@ -6211,12 +6323,12 @@ function _object_spread$c(target) {
|
|
|
6211
6323
|
}));
|
|
6212
6324
|
}
|
|
6213
6325
|
ownKeys.forEach(function(key) {
|
|
6214
|
-
_define_property$
|
|
6326
|
+
_define_property$d(target, key, source[key]);
|
|
6215
6327
|
});
|
|
6216
6328
|
}
|
|
6217
6329
|
return target;
|
|
6218
6330
|
}
|
|
6219
|
-
function ownKeys$
|
|
6331
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
6220
6332
|
var keys = Object.keys(object);
|
|
6221
6333
|
if (Object.getOwnPropertySymbols) {
|
|
6222
6334
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6224,12 +6336,12 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
6224
6336
|
}
|
|
6225
6337
|
return keys;
|
|
6226
6338
|
}
|
|
6227
|
-
function _object_spread_props$
|
|
6339
|
+
function _object_spread_props$a(target, source) {
|
|
6228
6340
|
source = source != null ? source : {};
|
|
6229
6341
|
if (Object.getOwnPropertyDescriptors) {
|
|
6230
6342
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6231
6343
|
} else {
|
|
6232
|
-
ownKeys$
|
|
6344
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
6233
6345
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6234
6346
|
});
|
|
6235
6347
|
}
|
|
@@ -6345,7 +6457,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
6345
6457
|
if (typeof content !== "string") {
|
|
6346
6458
|
return content;
|
|
6347
6459
|
}
|
|
6348
|
-
return _object_spread$
|
|
6460
|
+
return _object_spread$d({
|
|
6349
6461
|
type: "text",
|
|
6350
6462
|
text: content
|
|
6351
6463
|
}, context.streamId ? {
|
|
@@ -6410,7 +6522,7 @@ function filterText(content) {
|
|
|
6410
6522
|
return "";
|
|
6411
6523
|
}
|
|
6412
6524
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
6413
|
-
return _object_spread$
|
|
6525
|
+
return _object_spread$d(_object_spread_props$a(_object_spread$d({}, previous), {
|
|
6414
6526
|
text: "".concat(previous.text).concat(incoming.text)
|
|
6415
6527
|
}), !previous.id && incoming.id ? {
|
|
6416
6528
|
id: incoming.id
|
|
@@ -6422,7 +6534,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
6422
6534
|
}
|
|
6423
6535
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
6424
6536
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
6425
|
-
return _object_spread_props$
|
|
6537
|
+
return _object_spread_props$a(_object_spread$d({}, incoming), {
|
|
6426
6538
|
text: incoming.text.slice(1)
|
|
6427
6539
|
});
|
|
6428
6540
|
}
|
|
@@ -6439,14 +6551,14 @@ function mergeComponentData(previous, incoming) {
|
|
|
6439
6551
|
return acc;
|
|
6440
6552
|
}, {});
|
|
6441
6553
|
var _previous_data1;
|
|
6442
|
-
return _object_spread_props$
|
|
6443
|
-
data: _object_spread_props$
|
|
6554
|
+
return _object_spread_props$a(_object_spread$d({}, previous, incoming), {
|
|
6555
|
+
data: _object_spread_props$a(_object_spread$d({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
6444
6556
|
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)
|
|
6445
6557
|
})
|
|
6446
6558
|
});
|
|
6447
6559
|
}
|
|
6448
6560
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
6449
|
-
return _object_spread$
|
|
6561
|
+
return _object_spread$d({
|
|
6450
6562
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
6451
6563
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
6452
6564
|
streamId: String(content.id)
|
|
@@ -6454,10 +6566,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
6454
6566
|
}
|
|
6455
6567
|
function resolveMessageAppendContext(options) {
|
|
6456
6568
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
6457
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$
|
|
6569
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$a(_object_spread$d({}, inferredContext), {
|
|
6458
6570
|
streamId: options.fallbackStreamId
|
|
6459
6571
|
}) : inferredContext;
|
|
6460
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$
|
|
6572
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$a(_object_spread$d({}, appendContext), {
|
|
6461
6573
|
joinHint: "none"
|
|
6462
6574
|
}) : appendContext;
|
|
6463
6575
|
return {
|
|
@@ -6478,7 +6590,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6478
6590
|
var previous = initial;
|
|
6479
6591
|
return {
|
|
6480
6592
|
resolve: function resolve(options) {
|
|
6481
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$
|
|
6593
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$a(_object_spread$d({}, options), {
|
|
6482
6594
|
previous: previous
|
|
6483
6595
|
}));
|
|
6484
6596
|
if (!isFileActivityContent(options.incoming) && !isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -6516,10 +6628,10 @@ function resolveMessageAppendContext(options) {
|
|
|
6516
6628
|
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, [
|
|
6517
6629
|
"previous"
|
|
6518
6630
|
]);
|
|
6519
|
-
var appendContext = _object_spread$
|
|
6631
|
+
var appendContext = _object_spread$d({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
6520
6632
|
var _appendContext_joinHint;
|
|
6521
6633
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
6522
|
-
var messageContext = joinHint ? _object_spread_props$
|
|
6634
|
+
var messageContext = joinHint ? _object_spread_props$a(_object_spread$d({}, appendContext), {
|
|
6523
6635
|
joinHint: joinHint
|
|
6524
6636
|
}) : appendContext;
|
|
6525
6637
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -6528,7 +6640,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6528
6640
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
6529
6641
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
6530
6642
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
6531
|
-
var mergedReasoning = _object_spread_props$
|
|
6643
|
+
var mergedReasoning = _object_spread_props$a(_object_spread$d({}, lastReasoning), {
|
|
6532
6644
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
6533
6645
|
});
|
|
6534
6646
|
aiMessage.reasoning = _to_consumable_array$b(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -6549,7 +6661,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6549
6661
|
return isTextContent(item) && item.id === content.id;
|
|
6550
6662
|
});
|
|
6551
6663
|
if (index > -1) {
|
|
6552
|
-
var mergedContent = _object_spread$
|
|
6664
|
+
var mergedContent = _object_spread$d(_object_spread_props$a(_object_spread$d({}, chunks[index]), {
|
|
6553
6665
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
6554
6666
|
}), !chunks[index].id && content.id ? {
|
|
6555
6667
|
id: content.id
|
|
@@ -6572,7 +6684,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6572
6684
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
6573
6685
|
if (existingIndex > -1) {
|
|
6574
6686
|
var existing = chunks[existingIndex];
|
|
6575
|
-
var merged = _object_spread_props$
|
|
6687
|
+
var merged = _object_spread_props$a(_object_spread$d({}, existing), {
|
|
6576
6688
|
text: "".concat(existing.text).concat(content.text)
|
|
6577
6689
|
});
|
|
6578
6690
|
var nextChunks = _to_consumable_array$b(chunks);
|
|
@@ -6581,7 +6693,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6581
6693
|
return;
|
|
6582
6694
|
}
|
|
6583
6695
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
6584
|
-
var mergedLastContent = _object_spread_props$
|
|
6696
|
+
var mergedLastContent = _object_spread_props$a(_object_spread$d({}, lastContent), {
|
|
6585
6697
|
text: "".concat(lastContent.text).concat(content.text)
|
|
6586
6698
|
});
|
|
6587
6699
|
aiMessage.content = _to_consumable_array$b(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -6590,7 +6702,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6590
6702
|
return;
|
|
6591
6703
|
}
|
|
6592
6704
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
6593
|
-
var appended = _object_spread_props$
|
|
6705
|
+
var appended = _object_spread_props$a(_object_spread$d({}, content), {
|
|
6594
6706
|
text: separator + content.text
|
|
6595
6707
|
});
|
|
6596
6708
|
aiMessage.content = _to_consumable_array$b(chunks).concat([
|
|
@@ -6614,7 +6726,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6614
6726
|
aiMessage.content = nextChunks1;
|
|
6615
6727
|
}
|
|
6616
6728
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
6617
|
-
var resolvedContext = _object_spread$
|
|
6729
|
+
var resolvedContext = _object_spread$d({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
6618
6730
|
var nextText = filterText(incoming);
|
|
6619
6731
|
if (!nextText) {
|
|
6620
6732
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -6659,7 +6771,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
6659
6771
|
return;
|
|
6660
6772
|
}
|
|
6661
6773
|
textIndexById.set(item.id, merged.length);
|
|
6662
|
-
merged.push(_object_spread$
|
|
6774
|
+
merged.push(_object_spread$d({}, item));
|
|
6663
6775
|
return;
|
|
6664
6776
|
}
|
|
6665
6777
|
var lastItem = merged[merged.length - 1];
|
|
@@ -6667,7 +6779,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
6667
6779
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
6668
6780
|
return;
|
|
6669
6781
|
}
|
|
6670
|
-
merged.push(_object_spread$
|
|
6782
|
+
merged.push(_object_spread$d({}, item));
|
|
6671
6783
|
});
|
|
6672
6784
|
return merged.length ? merged : null;
|
|
6673
6785
|
}
|
|
@@ -6682,7 +6794,7 @@ function stringifyMessageContent(content) {
|
|
|
6682
6794
|
if (isFileActivityContent(item) || isResourceCardContent(item)) return;
|
|
6683
6795
|
var itemContext = inferMessageAppendContext(item);
|
|
6684
6796
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
6685
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
6797
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$d({}, itemContext, joinHint ? {
|
|
6686
6798
|
joinHint: joinHint
|
|
6687
6799
|
} : {}));
|
|
6688
6800
|
previousContext = itemContext;
|
|
@@ -6705,7 +6817,7 @@ function filterMessageText(content) {
|
|
|
6705
6817
|
}
|
|
6706
6818
|
var itemContext = inferMessageAppendContext(item);
|
|
6707
6819
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
6708
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
6820
|
+
result = appendMessagePlainText(result, nextText, _object_spread$d({}, itemContext, joinHint ? {
|
|
6709
6821
|
joinHint: joinHint
|
|
6710
6822
|
} : {}));
|
|
6711
6823
|
previousContext = itemContext;
|
|
@@ -7062,6 +7174,34 @@ var MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
|
|
|
7062
7174
|
xpertId: z$1.string().uuid()
|
|
7063
7175
|
}).strict();
|
|
7064
7176
|
|
|
7177
|
+
/** Credential-free tuning snapshot. Output aliases are canonicalized to max_tokens at issuance. */ var modelExecutionParametersSchema = z$1.object({
|
|
7178
|
+
temperature: z$1.number().finite().optional(),
|
|
7179
|
+
top_p: z$1.number().finite().optional(),
|
|
7180
|
+
top_k: z$1.number().int().nonnegative().optional(),
|
|
7181
|
+
presence_penalty: z$1.number().finite().optional(),
|
|
7182
|
+
frequency_penalty: z$1.number().finite().optional(),
|
|
7183
|
+
repetition_penalty: z$1.number().finite().optional(),
|
|
7184
|
+
seed: z$1.number().int().nonnegative().optional(),
|
|
7185
|
+
max_tokens: z$1.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
|
|
7186
|
+
enable_thinking: z$1.boolean().optional(),
|
|
7187
|
+
thinking_budget: z$1.number().int().nonnegative().optional(),
|
|
7188
|
+
reasoning_effort: z$1.enum([
|
|
7189
|
+
"none",
|
|
7190
|
+
"minimal",
|
|
7191
|
+
"low",
|
|
7192
|
+
"medium",
|
|
7193
|
+
"high",
|
|
7194
|
+
"xhigh",
|
|
7195
|
+
"max"
|
|
7196
|
+
]).optional(),
|
|
7197
|
+
thinking: z$1.enum([
|
|
7198
|
+
"enabled",
|
|
7199
|
+
"disabled",
|
|
7200
|
+
"adaptive"
|
|
7201
|
+
]).optional(),
|
|
7202
|
+
budget_tokens: z$1.number().int().nonnegative().optional()
|
|
7203
|
+
}).strict();
|
|
7204
|
+
|
|
7065
7205
|
/**
|
|
7066
7206
|
* Running means accepted; actual work start requires an observation.
|
|
7067
7207
|
* Only succeeded, failed and cancelled are terminal. Unknown must be reconciled without replay.
|
|
@@ -7373,7 +7513,7 @@ var projectPipelineEdgeSchema = z$1.object({
|
|
|
7373
7513
|
outcome: projectPipelineKeySchema.optional()
|
|
7374
7514
|
}).strict();
|
|
7375
7515
|
|
|
7376
|
-
function _define_property$
|
|
7516
|
+
function _define_property$c(obj, key, value) {
|
|
7377
7517
|
if (key in obj) {
|
|
7378
7518
|
Object.defineProperty(obj, key, {
|
|
7379
7519
|
value: value,
|
|
@@ -7386,7 +7526,7 @@ function _define_property$b(obj, key, value) {
|
|
|
7386
7526
|
}
|
|
7387
7527
|
return obj;
|
|
7388
7528
|
}
|
|
7389
|
-
function _object_spread$
|
|
7529
|
+
function _object_spread$c(target) {
|
|
7390
7530
|
for(var i = 1; i < arguments.length; i++){
|
|
7391
7531
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7392
7532
|
var ownKeys = Object.keys(source);
|
|
@@ -7396,12 +7536,12 @@ function _object_spread$b(target) {
|
|
|
7396
7536
|
}));
|
|
7397
7537
|
}
|
|
7398
7538
|
ownKeys.forEach(function(key) {
|
|
7399
|
-
_define_property$
|
|
7539
|
+
_define_property$c(target, key, source[key]);
|
|
7400
7540
|
});
|
|
7401
7541
|
}
|
|
7402
7542
|
return target;
|
|
7403
7543
|
}
|
|
7404
|
-
function ownKeys$
|
|
7544
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
7405
7545
|
var keys = Object.keys(object);
|
|
7406
7546
|
if (Object.getOwnPropertySymbols) {
|
|
7407
7547
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7409,18 +7549,18 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
7409
7549
|
}
|
|
7410
7550
|
return keys;
|
|
7411
7551
|
}
|
|
7412
|
-
function _object_spread_props$
|
|
7552
|
+
function _object_spread_props$9(target, source) {
|
|
7413
7553
|
source = source != null ? source : {};
|
|
7414
7554
|
if (Object.getOwnPropertyDescriptors) {
|
|
7415
7555
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7416
7556
|
} else {
|
|
7417
|
-
ownKeys$
|
|
7557
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
7418
7558
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7419
7559
|
});
|
|
7420
7560
|
}
|
|
7421
7561
|
return target;
|
|
7422
7562
|
}
|
|
7423
|
-
var base = {
|
|
7563
|
+
var base$1 = {
|
|
7424
7564
|
key: projectPipelineKeySchema,
|
|
7425
7565
|
label: z$1.string().min(1).max(240).optional(),
|
|
7426
7566
|
stageKey: projectPipelineKeySchema,
|
|
@@ -7429,7 +7569,7 @@ var base = {
|
|
|
7429
7569
|
};
|
|
7430
7570
|
var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
|
|
7431
7571
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = z$1.discriminatedUnion("kind", [
|
|
7432
|
-
z$1.object(_object_spread_props$
|
|
7572
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7433
7573
|
kind: z$1.literal("work"),
|
|
7434
7574
|
laneKey: projectPipelineKeySchema,
|
|
7435
7575
|
operationRef: projectPipelineRefSchema,
|
|
@@ -7438,23 +7578,23 @@ var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
7438
7578
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
7439
7579
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
7440
7580
|
})).strict(),
|
|
7441
|
-
z$1.object(_object_spread_props$
|
|
7581
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7442
7582
|
kind: z$1.literal("fork")
|
|
7443
7583
|
})).strict(),
|
|
7444
|
-
z$1.object(_object_spread_props$
|
|
7584
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7445
7585
|
kind: z$1.literal("join"),
|
|
7446
7586
|
join: z$1.object({
|
|
7447
7587
|
mode: z$1.literal("all_selected"),
|
|
7448
7588
|
accept: z$1.literal("completed")
|
|
7449
7589
|
}).strict()
|
|
7450
7590
|
})).strict(),
|
|
7451
|
-
z$1.object(_object_spread_props$
|
|
7591
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7452
7592
|
kind: z$1.literal("router"),
|
|
7453
7593
|
policyRef: projectPipelineRefSchema,
|
|
7454
7594
|
outcomes: outcomes,
|
|
7455
7595
|
unmatched: z$1.literal("block")
|
|
7456
7596
|
})).strict(),
|
|
7457
|
-
z$1.object(_object_spread_props$
|
|
7597
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7458
7598
|
kind: z$1.literal("human_gate"),
|
|
7459
7599
|
laneKey: projectPipelineKeySchema,
|
|
7460
7600
|
policyRef: projectPipelineRefSchema,
|
|
@@ -7462,12 +7602,12 @@ var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
7462
7602
|
outcomes: outcomes,
|
|
7463
7603
|
outcomeLabels: z$1.record(projectPipelineKeySchema, z$1.string().min(1).max(120)).optional()
|
|
7464
7604
|
})).strict(),
|
|
7465
|
-
z$1.object(_object_spread_props$
|
|
7605
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7466
7606
|
kind: z$1.literal("external_wait"),
|
|
7467
7607
|
laneKey: projectPipelineKeySchema,
|
|
7468
7608
|
subscriptionRef: projectPipelineRefSchema
|
|
7469
7609
|
})).strict(),
|
|
7470
|
-
z$1.object(_object_spread_props$
|
|
7610
|
+
z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
|
|
7471
7611
|
kind: z$1.literal("terminal"),
|
|
7472
7612
|
outcome: projectPipelineKeySchema,
|
|
7473
7613
|
disposition: z$1.enum([
|
|
@@ -8116,7 +8256,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
8116
8256
|
|
|
8117
8257
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
8118
8258
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
8119
|
-
function _define_property$
|
|
8259
|
+
function _define_property$b(obj, key, value) {
|
|
8120
8260
|
if (key in obj) {
|
|
8121
8261
|
Object.defineProperty(obj, key, {
|
|
8122
8262
|
value: value,
|
|
@@ -8129,7 +8269,7 @@ function _define_property$a(obj, key, value) {
|
|
|
8129
8269
|
}
|
|
8130
8270
|
return obj;
|
|
8131
8271
|
}
|
|
8132
|
-
function _object_spread$
|
|
8272
|
+
function _object_spread$b(target) {
|
|
8133
8273
|
for(var i = 1; i < arguments.length; i++){
|
|
8134
8274
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8135
8275
|
var ownKeys = Object.keys(source);
|
|
@@ -8139,12 +8279,12 @@ function _object_spread$a(target) {
|
|
|
8139
8279
|
}));
|
|
8140
8280
|
}
|
|
8141
8281
|
ownKeys.forEach(function(key) {
|
|
8142
|
-
_define_property$
|
|
8282
|
+
_define_property$b(target, key, source[key]);
|
|
8143
8283
|
});
|
|
8144
8284
|
}
|
|
8145
8285
|
return target;
|
|
8146
8286
|
}
|
|
8147
|
-
function ownKeys$
|
|
8287
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
8148
8288
|
var keys = Object.keys(object);
|
|
8149
8289
|
if (Object.getOwnPropertySymbols) {
|
|
8150
8290
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8152,12 +8292,12 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
8152
8292
|
}
|
|
8153
8293
|
return keys;
|
|
8154
8294
|
}
|
|
8155
|
-
function _object_spread_props$
|
|
8295
|
+
function _object_spread_props$8(target, source) {
|
|
8156
8296
|
source = source != null ? source : {};
|
|
8157
8297
|
if (Object.getOwnPropertyDescriptors) {
|
|
8158
8298
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8159
8299
|
} else {
|
|
8160
|
-
ownKeys$
|
|
8300
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
8161
8301
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8162
8302
|
});
|
|
8163
8303
|
}
|
|
@@ -8189,7 +8329,7 @@ var common = {
|
|
|
8189
8329
|
};
|
|
8190
8330
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
8191
8331
|
var projectPipelineDefinitionShapeSchema = z$1.discriminatedUnion("executionAuthority", [
|
|
8192
|
-
z$1.object(_object_spread_props$
|
|
8332
|
+
z$1.object(_object_spread_props$8(_object_spread$b({}, common), {
|
|
8193
8333
|
executionAuthority: z$1.literal("provider"),
|
|
8194
8334
|
providerRef: projectPipelineRefSchema,
|
|
8195
8335
|
topology: z$1.object({
|
|
@@ -8198,7 +8338,7 @@ var projectPipelineDefinitionShapeSchema = z$1.discriminatedUnion("executionAuth
|
|
|
8198
8338
|
}).strict(),
|
|
8199
8339
|
actionRefs: z$1.array(projectPipelineRefSchema).max(100).optional()
|
|
8200
8340
|
})).strict(),
|
|
8201
|
-
z$1.object(_object_spread_props$
|
|
8341
|
+
z$1.object(_object_spread_props$8(_object_spread$b({}, common), {
|
|
8202
8342
|
executionAuthority: z$1.literal("platform"),
|
|
8203
8343
|
topology: z$1.object({
|
|
8204
8344
|
source: z$1.literal("definition")
|
|
@@ -8517,7 +8657,7 @@ var projectPipelineBindingSchema = z$1.object({
|
|
|
8517
8657
|
}
|
|
8518
8658
|
});
|
|
8519
8659
|
|
|
8520
|
-
function _define_property$
|
|
8660
|
+
function _define_property$a(obj, key, value) {
|
|
8521
8661
|
if (key in obj) {
|
|
8522
8662
|
Object.defineProperty(obj, key, {
|
|
8523
8663
|
value: value,
|
|
@@ -8530,7 +8670,7 @@ function _define_property$9(obj, key, value) {
|
|
|
8530
8670
|
}
|
|
8531
8671
|
return obj;
|
|
8532
8672
|
}
|
|
8533
|
-
function _object_spread$
|
|
8673
|
+
function _object_spread$a(target) {
|
|
8534
8674
|
for(var i = 1; i < arguments.length; i++){
|
|
8535
8675
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8536
8676
|
var ownKeys = Object.keys(source);
|
|
@@ -8540,12 +8680,12 @@ function _object_spread$9(target) {
|
|
|
8540
8680
|
}));
|
|
8541
8681
|
}
|
|
8542
8682
|
ownKeys.forEach(function(key) {
|
|
8543
|
-
_define_property$
|
|
8683
|
+
_define_property$a(target, key, source[key]);
|
|
8544
8684
|
});
|
|
8545
8685
|
}
|
|
8546
8686
|
return target;
|
|
8547
8687
|
}
|
|
8548
|
-
function ownKeys$
|
|
8688
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
8549
8689
|
var keys = Object.keys(object);
|
|
8550
8690
|
if (Object.getOwnPropertySymbols) {
|
|
8551
8691
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8553,12 +8693,12 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
8553
8693
|
}
|
|
8554
8694
|
return keys;
|
|
8555
8695
|
}
|
|
8556
|
-
function _object_spread_props$
|
|
8696
|
+
function _object_spread_props$7(target, source) {
|
|
8557
8697
|
source = source != null ? source : {};
|
|
8558
8698
|
if (Object.getOwnPropertyDescriptors) {
|
|
8559
8699
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8560
8700
|
} else {
|
|
8561
|
-
ownKeys$
|
|
8701
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
8562
8702
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8563
8703
|
});
|
|
8564
8704
|
}
|
|
@@ -8574,13 +8714,13 @@ var definitionRef = z$1.object({
|
|
|
8574
8714
|
templateRef: projectPipelineRefSchema,
|
|
8575
8715
|
digest: z$1.string().regex(/^[a-f0-9]{64}$/)
|
|
8576
8716
|
}).strict();
|
|
8577
|
-
var projectPipelineProjectBindingSchema = z$1.object(_object_spread_props$
|
|
8717
|
+
var projectPipelineProjectBindingSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8578
8718
|
definition: definitionRef,
|
|
8579
8719
|
revision: z$1.number().int().positive(),
|
|
8580
8720
|
configuration: projectPipelineBindingSchema
|
|
8581
8721
|
})).strict();
|
|
8582
8722
|
var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority", [
|
|
8583
|
-
z$1.object(_object_spread_props$
|
|
8723
|
+
z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8584
8724
|
executionAuthority: z$1.literal("provider"),
|
|
8585
8725
|
providerRef: projectPipelineRefSchema,
|
|
8586
8726
|
sourceKey: z$1.string().min(1).max(500),
|
|
@@ -8591,7 +8731,7 @@ var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority",
|
|
|
8591
8731
|
}).strict(),
|
|
8592
8732
|
revision: z$1.number().int().nonnegative()
|
|
8593
8733
|
})).strict(),
|
|
8594
|
-
z$1.object(_object_spread_props$
|
|
8734
|
+
z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8595
8735
|
executionAuthority: z$1.literal("platform"),
|
|
8596
8736
|
bindingId: z$1.string().uuid(),
|
|
8597
8737
|
sourceKey: z$1.string().min(1).max(500),
|
|
@@ -8603,7 +8743,7 @@ var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority",
|
|
|
8603
8743
|
revision: z$1.number().int().nonnegative()
|
|
8604
8744
|
})).strict()
|
|
8605
8745
|
]);
|
|
8606
|
-
var projectPipelineRunSchema = z$1.object(_object_spread_props$
|
|
8746
|
+
var projectPipelineRunSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8607
8747
|
instanceId: z$1.string().uuid(),
|
|
8608
8748
|
triggerKey: z$1.string().min(1).max(500),
|
|
8609
8749
|
definition: definitionRef,
|
|
@@ -8675,7 +8815,7 @@ var projectPipelineWorkContextSchema = z$1.object({
|
|
|
8675
8815
|
inputDigest: z$1.string().regex(/^[a-f0-9]{64}$/),
|
|
8676
8816
|
generation: z$1.number().int().positive()
|
|
8677
8817
|
}).strict();
|
|
8678
|
-
var projectPipelineRoundSchema = z$1.object(_object_spread_props$
|
|
8818
|
+
var projectPipelineRoundSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8679
8819
|
runId: z$1.string().uuid(),
|
|
8680
8820
|
sequence: z$1.number().int().positive(),
|
|
8681
8821
|
generation: z$1.number().int().positive(),
|
|
@@ -8691,7 +8831,7 @@ var projectPipelineRoundSchema = z$1.object(_object_spread_props$6(_object_sprea
|
|
|
8691
8831
|
subjectVersionSet: z$1.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
8692
8832
|
supersedes: z$1.string().uuid().nullable()
|
|
8693
8833
|
})).strict();
|
|
8694
|
-
var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$
|
|
8834
|
+
var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
|
|
8695
8835
|
roundId: z$1.string().uuid(),
|
|
8696
8836
|
nodeKey: projectPipelineKeySchema,
|
|
8697
8837
|
/** Stable source identity; never a list index. */ expansionKey: z$1.string().min(1).max(500),
|
|
@@ -8703,7 +8843,7 @@ var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$6(_objec
|
|
|
8703
8843
|
revision: z$1.number().int().nonnegative()
|
|
8704
8844
|
})).strict();
|
|
8705
8845
|
|
|
8706
|
-
function _define_property$
|
|
8846
|
+
function _define_property$9(obj, key, value) {
|
|
8707
8847
|
if (key in obj) {
|
|
8708
8848
|
Object.defineProperty(obj, key, {
|
|
8709
8849
|
value: value,
|
|
@@ -8716,7 +8856,7 @@ function _define_property$8(obj, key, value) {
|
|
|
8716
8856
|
}
|
|
8717
8857
|
return obj;
|
|
8718
8858
|
}
|
|
8719
|
-
function _object_spread$
|
|
8859
|
+
function _object_spread$9(target) {
|
|
8720
8860
|
for(var i = 1; i < arguments.length; i++){
|
|
8721
8861
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8722
8862
|
var ownKeys = Object.keys(source);
|
|
@@ -8726,12 +8866,12 @@ function _object_spread$8(target) {
|
|
|
8726
8866
|
}));
|
|
8727
8867
|
}
|
|
8728
8868
|
ownKeys.forEach(function(key) {
|
|
8729
|
-
_define_property$
|
|
8869
|
+
_define_property$9(target, key, source[key]);
|
|
8730
8870
|
});
|
|
8731
8871
|
}
|
|
8732
8872
|
return target;
|
|
8733
8873
|
}
|
|
8734
|
-
function ownKeys$
|
|
8874
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
8735
8875
|
var keys = Object.keys(object);
|
|
8736
8876
|
if (Object.getOwnPropertySymbols) {
|
|
8737
8877
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8739,12 +8879,12 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
8739
8879
|
}
|
|
8740
8880
|
return keys;
|
|
8741
8881
|
}
|
|
8742
|
-
function _object_spread_props$
|
|
8882
|
+
function _object_spread_props$6(target, source) {
|
|
8743
8883
|
source = source != null ? source : {};
|
|
8744
8884
|
if (Object.getOwnPropertyDescriptors) {
|
|
8745
8885
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8746
8886
|
} else {
|
|
8747
|
-
ownKeys$
|
|
8887
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
8748
8888
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8749
8889
|
});
|
|
8750
8890
|
}
|
|
@@ -8761,17 +8901,17 @@ var projectPipelinePortDescriptorSchema = z$1.object({
|
|
|
8761
8901
|
])
|
|
8762
8902
|
}).strict();
|
|
8763
8903
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = z$1.discriminatedUnion("kind", [
|
|
8764
|
-
z$1.object(_object_spread_props$
|
|
8904
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8765
8905
|
kind: z$1.literal("schema")
|
|
8766
8906
|
})).strict(),
|
|
8767
|
-
z$1.object(_object_spread_props$
|
|
8907
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8768
8908
|
kind: z$1.literal("resource")
|
|
8769
8909
|
})).strict(),
|
|
8770
|
-
z$1.object(_object_spread_props$
|
|
8910
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8771
8911
|
kind: z$1.literal("subject"),
|
|
8772
8912
|
outputSchemaRef: projectPipelineRefSchema
|
|
8773
8913
|
})).strict(),
|
|
8774
|
-
z$1.object(_object_spread_props$
|
|
8914
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8775
8915
|
kind: z$1.literal("operation"),
|
|
8776
8916
|
effects: z$1.enum([
|
|
8777
8917
|
"read_only",
|
|
@@ -8790,32 +8930,32 @@ var projectPipelinePortDescriptorSchema = z$1.object({
|
|
|
8790
8930
|
inputs: z$1.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
8791
8931
|
outputs: z$1.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
8792
8932
|
})).strict(),
|
|
8793
|
-
z$1.object(_object_spread_props$
|
|
8933
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8794
8934
|
kind: z$1.literal("completion")
|
|
8795
8935
|
})).strict(),
|
|
8796
|
-
z$1.object(_object_spread_props$
|
|
8936
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8797
8937
|
kind: z$1.literal("policy"),
|
|
8798
8938
|
outcomes: z$1.array(projectPipelineKeySchema).min(1).max(32)
|
|
8799
8939
|
})).strict(),
|
|
8800
|
-
z$1.object(_object_spread_props$
|
|
8940
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8801
8941
|
kind: z$1.literal("projection")
|
|
8802
8942
|
})).strict(),
|
|
8803
|
-
z$1.object(_object_spread_props$
|
|
8943
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8804
8944
|
kind: z$1.literal("presentation")
|
|
8805
8945
|
})).strict(),
|
|
8806
|
-
z$1.object(_object_spread_props$
|
|
8946
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8807
8947
|
kind: z$1.literal("action")
|
|
8808
8948
|
})).strict(),
|
|
8809
|
-
z$1.object(_object_spread_props$
|
|
8949
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8810
8950
|
kind: z$1.literal("metric")
|
|
8811
8951
|
})).strict(),
|
|
8812
|
-
z$1.object(_object_spread_props$
|
|
8952
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8813
8953
|
kind: z$1.literal("dimension")
|
|
8814
8954
|
})).strict(),
|
|
8815
|
-
z$1.object(_object_spread_props$
|
|
8955
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8816
8956
|
kind: z$1.literal("trigger")
|
|
8817
8957
|
})).strict(),
|
|
8818
|
-
z$1.object(_object_spread_props$
|
|
8958
|
+
z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
|
|
8819
8959
|
kind: z$1.literal("subscription"),
|
|
8820
8960
|
outputs: z$1.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
8821
8961
|
})).strict()
|
|
@@ -9582,6 +9722,162 @@ var tombstone = z$1.object({
|
|
|
9582
9722
|
]);
|
|
9583
9723
|
});
|
|
9584
9724
|
|
|
9725
|
+
function _define_property$8(obj, key, value) {
|
|
9726
|
+
if (key in obj) {
|
|
9727
|
+
Object.defineProperty(obj, key, {
|
|
9728
|
+
value: value,
|
|
9729
|
+
enumerable: true,
|
|
9730
|
+
configurable: true,
|
|
9731
|
+
writable: true
|
|
9732
|
+
});
|
|
9733
|
+
} else {
|
|
9734
|
+
obj[key] = value;
|
|
9735
|
+
}
|
|
9736
|
+
return obj;
|
|
9737
|
+
}
|
|
9738
|
+
function _object_spread$8(target) {
|
|
9739
|
+
for(var i = 1; i < arguments.length; i++){
|
|
9740
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9741
|
+
var ownKeys = Object.keys(source);
|
|
9742
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9743
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9744
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9745
|
+
}));
|
|
9746
|
+
}
|
|
9747
|
+
ownKeys.forEach(function(key) {
|
|
9748
|
+
_define_property$8(target, key, source[key]);
|
|
9749
|
+
});
|
|
9750
|
+
}
|
|
9751
|
+
return target;
|
|
9752
|
+
}
|
|
9753
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
9754
|
+
var keys = Object.keys(object);
|
|
9755
|
+
if (Object.getOwnPropertySymbols) {
|
|
9756
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9757
|
+
keys.push.apply(keys, symbols);
|
|
9758
|
+
}
|
|
9759
|
+
return keys;
|
|
9760
|
+
}
|
|
9761
|
+
function _object_spread_props$5(target, source) {
|
|
9762
|
+
source = source != null ? source : {};
|
|
9763
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9764
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9765
|
+
} else {
|
|
9766
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
9767
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9768
|
+
});
|
|
9769
|
+
}
|
|
9770
|
+
return target;
|
|
9771
|
+
}
|
|
9772
|
+
var subject = z$1.discriminatedUnion("kind", [
|
|
9773
|
+
z$1.object({
|
|
9774
|
+
kind: z$1.literal("execution"),
|
|
9775
|
+
id: z$1.string().min(1)
|
|
9776
|
+
}).strict(),
|
|
9777
|
+
z$1.object({
|
|
9778
|
+
kind: z$1.literal("invocation"),
|
|
9779
|
+
id: z$1.string().min(1)
|
|
9780
|
+
}).strict()
|
|
9781
|
+
]);
|
|
9782
|
+
var base = {
|
|
9783
|
+
version: z$1.literal(1),
|
|
9784
|
+
observedAt: z$1.string().datetime()
|
|
9785
|
+
};
|
|
9786
|
+
/** Host-assigned attempt identity. A new host boot or execution never inherits an old target. */ var executionRuntimeTargetSchema = z$1.discriminatedUnion("kind", [
|
|
9787
|
+
z$1.object({
|
|
9788
|
+
version: z$1.literal(1),
|
|
9789
|
+
kind: z$1.literal("host"),
|
|
9790
|
+
generation: z$1.string().uuid(),
|
|
9791
|
+
hostId: z$1.string().uuid()
|
|
9792
|
+
}).strict(),
|
|
9793
|
+
z$1.object({
|
|
9794
|
+
version: z$1.literal(1),
|
|
9795
|
+
kind: z$1.literal("provider"),
|
|
9796
|
+
generation: z$1.string().uuid()
|
|
9797
|
+
}).strict()
|
|
9798
|
+
]);
|
|
9799
|
+
function executionRuntimeTargetsEqual(left, right) {
|
|
9800
|
+
if (!left || !right) return left === right;
|
|
9801
|
+
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
9802
|
+
}
|
|
9803
|
+
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = z$1.discriminatedUnion("source", [
|
|
9804
|
+
z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
|
|
9805
|
+
source: z$1.literal("unavailable"),
|
|
9806
|
+
subject: subject,
|
|
9807
|
+
state: z$1.literal("unknown"),
|
|
9808
|
+
reason: z$1.enum([
|
|
9809
|
+
"unregistered",
|
|
9810
|
+
"unconfirmed",
|
|
9811
|
+
"unsupported"
|
|
9812
|
+
])
|
|
9813
|
+
})).strict(),
|
|
9814
|
+
z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
|
|
9815
|
+
source: z$1.literal("platform"),
|
|
9816
|
+
subject: subject,
|
|
9817
|
+
scope: z$1.literal("owned_subtree"),
|
|
9818
|
+
state: z$1.enum([
|
|
9819
|
+
"running",
|
|
9820
|
+
"pausing",
|
|
9821
|
+
"paused",
|
|
9822
|
+
"terminating",
|
|
9823
|
+
"settled"
|
|
9824
|
+
]),
|
|
9825
|
+
desired: z$1.enum([
|
|
9826
|
+
"running",
|
|
9827
|
+
"paused",
|
|
9828
|
+
"terminated"
|
|
9829
|
+
]),
|
|
9830
|
+
taskId: z$1.string().uuid(),
|
|
9831
|
+
rootId: z$1.string().uuid(),
|
|
9832
|
+
revision: z$1.number().int().positive(),
|
|
9833
|
+
executionId: z$1.string().uuid(),
|
|
9834
|
+
threadId: z$1.string().min(1)
|
|
9835
|
+
})).strict(),
|
|
9836
|
+
z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
|
|
9837
|
+
source: z$1.literal("provider"),
|
|
9838
|
+
subject: z$1.object({
|
|
9839
|
+
kind: z$1.literal("invocation"),
|
|
9840
|
+
id: z$1.string().min(1)
|
|
9841
|
+
}).strict(),
|
|
9842
|
+
scope: z$1.literal("operation"),
|
|
9843
|
+
state: z$1.literal("settled"),
|
|
9844
|
+
outcome: z$1.enum([
|
|
9845
|
+
"succeeded",
|
|
9846
|
+
"failed",
|
|
9847
|
+
"cancelled"
|
|
9848
|
+
]),
|
|
9849
|
+
sessionId: z$1.string().min(1),
|
|
9850
|
+
runId: z$1.string().min(1),
|
|
9851
|
+
receiptKey: z$1.string().min(1).max(500),
|
|
9852
|
+
target: executionRuntimeTargetSchema.optional()
|
|
9853
|
+
})).strict(),
|
|
9854
|
+
z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
|
|
9855
|
+
source: z$1.literal("host_admission"),
|
|
9856
|
+
subject: z$1.object({
|
|
9857
|
+
kind: z$1.literal("invocation"),
|
|
9858
|
+
id: z$1.string().min(1)
|
|
9859
|
+
}).strict(),
|
|
9860
|
+
scope: z$1.literal("operation"),
|
|
9861
|
+
state: z$1.literal("settled"),
|
|
9862
|
+
outcome: z$1.enum([
|
|
9863
|
+
"failed",
|
|
9864
|
+
"cancelled"
|
|
9865
|
+
]),
|
|
9866
|
+
reason: z$1.literal("not_started")
|
|
9867
|
+
})).strict()
|
|
9868
|
+
]);
|
|
9869
|
+
function unknownExecutionControl(subject) {
|
|
9870
|
+
var reason = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "unconfirmed";
|
|
9871
|
+
return {
|
|
9872
|
+
version: 1,
|
|
9873
|
+
source: "unavailable",
|
|
9874
|
+
subject: subject,
|
|
9875
|
+
state: "unknown",
|
|
9876
|
+
reason: reason,
|
|
9877
|
+
observedAt: new Date().toISOString()
|
|
9878
|
+
};
|
|
9879
|
+
}
|
|
9880
|
+
|
|
9585
9881
|
function _define_property$7(obj, key, value) {
|
|
9586
9882
|
if (key in obj) {
|
|
9587
9883
|
Object.defineProperty(obj, key, {
|
|
@@ -9682,6 +9978,7 @@ var projectPipelineRuntimeExecutionSchema = z$1.object({
|
|
|
9682
9978
|
status: agentInvocationStatusSchema
|
|
9683
9979
|
}).strict();
|
|
9684
9980
|
var receipt = {
|
|
9981
|
+
control: executionControlEvidenceSchema.optional(),
|
|
9685
9982
|
receiptKey: z$1.string().min(1).max(500),
|
|
9686
9983
|
execution: z$1.discriminatedUnion("kind", [
|
|
9687
9984
|
projectPipelineAssistantExecutionSchema,
|
|
@@ -9706,6 +10003,7 @@ var projectPipelineOperationReceiptSchema = z$1.discriminatedUnion("status", [
|
|
|
9706
10003
|
status: z$1.literal("cancelled")
|
|
9707
10004
|
})).strict(),
|
|
9708
10005
|
z$1.object({
|
|
10006
|
+
control: receipt.control,
|
|
9709
10007
|
receiptKey: receipt.receiptKey.optional(),
|
|
9710
10008
|
execution: receipt.execution,
|
|
9711
10009
|
status: z$1.literal("unknown")
|
|
@@ -12853,6 +13151,20 @@ var OrganizationProjectBudgetTypeEnum;
|
|
|
12853
13151
|
OrganizationProjectBudgetTypeEnum["COST"] = "cost";
|
|
12854
13152
|
})(OrganizationProjectBudgetTypeEnum || (OrganizationProjectBudgetTypeEnum = {}));
|
|
12855
13153
|
|
|
13154
|
+
/** Immutable authorization source; live access is rechecked on every delegated request. */ var clientSecretGrantSourceSchema = z.discriminatedUnion("kind", [
|
|
13155
|
+
z.object({
|
|
13156
|
+
kind: z.literal("assistant")
|
|
13157
|
+
}).strict(),
|
|
13158
|
+
z.object({
|
|
13159
|
+
kind: z.literal("project"),
|
|
13160
|
+
projectId: z.string().min(1)
|
|
13161
|
+
}).strict(),
|
|
13162
|
+
z.object({
|
|
13163
|
+
kind: z.literal("conversation"),
|
|
13164
|
+
conversationId: z.string().min(1),
|
|
13165
|
+
requesterXpertId: z.string().min(1)
|
|
13166
|
+
}).strict()
|
|
13167
|
+
]);
|
|
12856
13168
|
/**
|
|
12857
13169
|
* Selects how an opaque client secret is authorized and how entityId is
|
|
12858
13170
|
* interpreted. createdById alone does not distinguish
|
|
@@ -13764,6 +14076,129 @@ var executionActivityBatchSchema = z$1.object({
|
|
|
13764
14076
|
browseUrl: "https://github.com/xpert-ai/xpert-plugins/tree/main/agent-plugins"
|
|
13765
14077
|
};
|
|
13766
14078
|
|
|
14079
|
+
/**
|
|
14080
|
+
* Resolve an authorized resource to its registered editor, without opening UI.
|
|
14081
|
+
* Send the returned navigation through workbench.navigation.open in the same
|
|
14082
|
+
* Remote View bridge so the Workbench that contains the caller owns the tab.
|
|
14083
|
+
*/ var CONTENT_EDITOR_RESOLVE_COMMAND = "workbench.content.resolve";
|
|
14084
|
+
/** Authorize a document and return its stable URL without changing navigation or clipboard. */ var CONTENT_EDITOR_LINK_COMMAND = "workbench.content.link";
|
|
14085
|
+
/** Explicit document-reference discriminator in share URLs; consumers must reauthorize the ID. */ var CONTENT_DOCUMENT_LINK_RESOURCE_PARAM = "contentResource";
|
|
14086
|
+
var ASSISTANT_CONTENT_REVIEW_COMMAND = "assistant.content.review";
|
|
14087
|
+
var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
|
|
14088
|
+
|
|
13767
14089
|
/** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
|
|
13768
14090
|
|
|
13769
|
-
export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ARTIFACT_PRESENTATION_OPEN_COMMAND, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONFIGURATION_SECRET_MASK, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PERSONAL_API_KEY_LIFETIMES, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, ROLE_PERMISSION_MODULES, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_PROJECT_APPLICATION_TARGET, WORKBENCH_PROJECT_PIPELINES_TARGET, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, aggregatePipelineAnalytics, allChannels, appendMessageContent, appendMessagePlainText, assistantOperationPolicySchema, assistantTaskGroupContext, assistantTaskGroupContextSchema, assistantTemplateManifestSchema, assistantTemplateSetupStateSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, canReadProjectPipelineConfiguration, channelName, chatMessagePresentation, checkProjectPipelineConfiguration, checkProjectPipelineHostCompatibility, classificateDocumentCategory, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, configurationFromModel, configureProjectPipelineFromForm, configuredModelSource, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, defaultModelConfiguration, deriveXpertMarketplaceTechnicalProfile, discoverableModelTypes, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isConfiguredModelAvailable, isContextCompressionComponentData, isDiscoverableModelType, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPreparedCandidate, isProjectPipelineApplicable, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, legacyModelFeatures, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, modelConfigurationSchema, modelExecutionEntry, modelExecutionSourceId, modelImportSchema, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareOptions, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parseProjectPipelineParameters, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, pipelineAnalyticsFacts, pipelineAttemptCounts, pipelineAttemptCountsSchema, pipelineExecutionTiming, pipelineExecutionTimingSchema, pipelineExecutorStatistics, pipelineExecutorStatisticsSchema, pipelineHumanWaitSnapshotSchema, pipelineHumanWaitStatistics, pipelineHumanWaitStatisticsSchema, pipelineModelUsageFactSchema, pipelineModelUsageStatistics, pipelineModelUsageStatisticsSchema, pipelineNodeNeedsHuman, pipelineQueueStatistics, pipelineQueueStatisticsSchema, projectPipelineAnalytics, projectPipelineAnalyticsInputSchema, projectPipelineAnalyticsSchema, projectPipelineAssistantExecutionSchema, projectPipelineAssistantInputSchema, projectPipelineBindingSchema, projectPipelineCancelSchema, projectPipelineCatalogConfigureSchema, projectPipelineCatalogProtocolSchema, projectPipelineCatalogRequestSchema, projectPipelineCatalogSchema, projectPipelineCommandCapabilitySchema, projectPipelineCompletionReceiptSchema, projectPipelineConfigurationFormSchema, projectPipelineConfigurationPageSchema, projectPipelineConfigurationSchema, projectPipelineConfigureSchema, projectPipelineContributionSchema, projectPipelineDecisionSchema, projectPipelineDefinitionSchema, projectPipelineDefinitionShapeSchema, projectPipelineEdgeSchema, projectPipelineEvidenceRefSchema, projectPipelineExtensionDescriptorSchema, projectPipelineHostCapabilitiesSchema, projectPipelineHostRequirementsSchema, projectPipelineIconSchema, projectPipelineInputBindingSchema, projectPipelineInstanceSchema, projectPipelineJsonSchema, projectPipelineKeySchema, projectPipelineLaneSchema, projectPipelineNativeDispatchSchema, projectPipelineNativeModelBudgetSchema, projectPipelineNativeModelBudgetStatusSchema, projectPipelineNativeSourceSchema, projectPipelineNextRoundSchema, projectPipelineNodeInstanceSchema, projectPipelineNodePresentationSchema, projectPipelineNodeSchema, projectPipelineNodeStateSchema, projectPipelineOperationInputSchema, projectPipelineOperationReceiptSchema, projectPipelineOutputBindingSchema, projectPipelineParameterFieldSchema, projectPipelineParticipantKindSchema, projectPipelinePolicyReceiptSchema, projectPipelinePortDescriptorSchema, projectPipelinePortfolioInputSchema, projectPipelinePortfolioSchema, projectPipelineProjectBindingSchema, projectPipelineProjectTypesSchema, projectPipelineProjectionEdgeSchema, projectPipelineProjectionNodeSchema, projectPipelineProjectionSchema, projectPipelineProviderActionCommandSchema, projectPipelineProviderActionDescriptorSchema, projectPipelineProviderActionReceiptSchema, projectPipelineProviderActionTargetSchema, projectPipelineProviderActionViewSchema, projectPipelineProviderActionsSchema, projectPipelineRefSchema, projectPipelineResourceClaimSchema, projectPipelineResourceClaimsSchema, projectPipelineResourceReservationSchema, projectPipelineRetrySchema, projectPipelineRoleSchema, projectPipelineRoundSchema, projectPipelineRunSchema, projectPipelineRuntimeExecutionSchema, projectPipelineRuntimeInputSchema, projectPipelineRuntimeSelectionSchema, projectPipelineSavedConfigurationSchema, projectPipelineStageSchema, projectPipelineStartSchema, projectPipelineStatistics, projectPipelineStatisticsSchema, projectPipelineSubjectVersionSchema, projectPipelineTaskProjectionSchema, projectPipelineWorkContextSchema, projectPipelineWorkCountsSchema, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, providerCredentialCheckSchema, providerCredentialValidationTargetSchema, readModelConfiguration, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, selectedPipelineAttemptFacts, setStateVariable, shortTitle, stringifyMessageContent, templateActivityReadSchema, templateDependencyLocksSchema, templateDependencyVersionsSchema, templateFilePathSchema, templateFilesSchema, templateManifestSchema, templateManifestV1Schema, templatePreferenceValuesSchema, templatePublicationInputSchema, templateSetupUpdateSchema, templateUpgradeActionSchema, templateUpgradeInputSchema, templateUpgradeSectionSchema, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, usesConfiguredModelCatalog, uuid, validateProjectPipelineConfigurationForm, validateProjectPipelineDefinition, validateProjectTaskGraph, workflowNodeIdentifier, workspaceConnectorAuthorizationSchema, workspaceConnectorConnectPayloadSchema, xpertLabel };
|
|
14091
|
+
var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
|
|
14092
|
+
|
|
14093
|
+
/** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
|
|
14094
|
+
var MCP_EXECUTION_CONTROL_METHOD = "xpert/tasks/control";
|
|
14095
|
+
/** Additive tools/list metadata for 2026, which removed top-level Tool.execution. */ var mcpExecutionToolDeclarationSchema = z$1.object({
|
|
14096
|
+
version: z$1.literal(1),
|
|
14097
|
+
taskSupport: z$1.enum([
|
|
14098
|
+
"required",
|
|
14099
|
+
"optional",
|
|
14100
|
+
"forbidden"
|
|
14101
|
+
])
|
|
14102
|
+
});
|
|
14103
|
+
var mcpOperationIdentitySchema = z$1.object({
|
|
14104
|
+
version: z$1.literal(1),
|
|
14105
|
+
operationId: z$1.string().uuid(),
|
|
14106
|
+
generation: z$1.string().uuid(),
|
|
14107
|
+
inputHash: z$1.string().regex(/^[a-f0-9]{64}$/),
|
|
14108
|
+
toolName: z$1.string().min(1).max(191)
|
|
14109
|
+
}).strict();
|
|
14110
|
+
var mcpExecutionControlRequestSchema = mcpOperationIdentitySchema.extend({
|
|
14111
|
+
serverId: z$1.string().uuid(),
|
|
14112
|
+
action: z$1.enum([
|
|
14113
|
+
"inspect",
|
|
14114
|
+
"terminate"
|
|
14115
|
+
])
|
|
14116
|
+
}).strict();
|
|
14117
|
+
var mcpExecutionReceiptSchema = z$1.object({
|
|
14118
|
+
version: z$1.literal(1),
|
|
14119
|
+
serverId: z$1.string().uuid(),
|
|
14120
|
+
operationId: z$1.string().uuid(),
|
|
14121
|
+
generation: z$1.string().uuid(),
|
|
14122
|
+
taskId: z$1.string().uuid().nullable(),
|
|
14123
|
+
state: z$1.enum([
|
|
14124
|
+
"pending",
|
|
14125
|
+
"settled",
|
|
14126
|
+
"unknown"
|
|
14127
|
+
]),
|
|
14128
|
+
intent: z$1.enum([
|
|
14129
|
+
"running",
|
|
14130
|
+
"paused",
|
|
14131
|
+
"terminated"
|
|
14132
|
+
]),
|
|
14133
|
+
revision: z$1.number().int().nonnegative(),
|
|
14134
|
+
handlerExited: z$1.boolean(),
|
|
14135
|
+
descendantsSettled: z$1.boolean()
|
|
14136
|
+
}).strict();
|
|
14137
|
+
var mcpExecutionCapabilitySchema = z$1.object({
|
|
14138
|
+
version: z$1.literal(1),
|
|
14139
|
+
serverId: z$1.string().uuid()
|
|
14140
|
+
}).strict();
|
|
14141
|
+
|
|
14142
|
+
/** Public presentation only. Every command revalidates permission and execution admission. */ var threadControlActionsSchema = z$1.object({
|
|
14143
|
+
canPause: z$1.boolean(),
|
|
14144
|
+
canResume: z$1.boolean(),
|
|
14145
|
+
canTerminate: z$1.boolean(),
|
|
14146
|
+
canSend: z$1.boolean(),
|
|
14147
|
+
canQueue: z$1.boolean(),
|
|
14148
|
+
canRetry: z$1.boolean(),
|
|
14149
|
+
canRespond: z$1.boolean()
|
|
14150
|
+
}).strict();
|
|
14151
|
+
var threadControlViewSchema = z$1.object({
|
|
14152
|
+
version: z$1.literal(1),
|
|
14153
|
+
threadId: z$1.string().min(1),
|
|
14154
|
+
runId: z$1.string().min(1).nullable(),
|
|
14155
|
+
revision: z$1.string().regex(/^[1-9][0-9]*$/),
|
|
14156
|
+
state: z$1.enum([
|
|
14157
|
+
"idle",
|
|
14158
|
+
"running",
|
|
14159
|
+
"pausing",
|
|
14160
|
+
"paused",
|
|
14161
|
+
"stopping",
|
|
14162
|
+
"settling",
|
|
14163
|
+
"input_required",
|
|
14164
|
+
"confirming",
|
|
14165
|
+
"completed",
|
|
14166
|
+
"stopped",
|
|
14167
|
+
"failed"
|
|
14168
|
+
]),
|
|
14169
|
+
actions: threadControlActionsSchema,
|
|
14170
|
+
pauseId: z$1.string().optional()
|
|
14171
|
+
}).strict();
|
|
14172
|
+
|
|
14173
|
+
var taskStatusSchema = z.enum(MCP_TASK_STATUSES);
|
|
14174
|
+
var mcpTaskStartResultSchema = z.object({
|
|
14175
|
+
resultType: z.literal("task"),
|
|
14176
|
+
taskId: z.string().min(1),
|
|
14177
|
+
status: taskStatusSchema,
|
|
14178
|
+
statusMessage: z.string().optional(),
|
|
14179
|
+
createdAt: z.string(),
|
|
14180
|
+
lastUpdatedAt: z.string(),
|
|
14181
|
+
ttlMs: z.number().nonnegative().nullable(),
|
|
14182
|
+
pollIntervalMs: z.number().positive().optional(),
|
|
14183
|
+
progress: z.number().min(0).max(1).nullable().optional(),
|
|
14184
|
+
content: z.array(z.unknown()).optional()
|
|
14185
|
+
}).passthrough();
|
|
14186
|
+
var mcpTaskResultSchema = z.object({
|
|
14187
|
+
resultType: z.literal("complete"),
|
|
14188
|
+
taskId: z.string().min(1),
|
|
14189
|
+
status: taskStatusSchema,
|
|
14190
|
+
statusMessage: z.string().optional(),
|
|
14191
|
+
createdAt: z.string(),
|
|
14192
|
+
lastUpdatedAt: z.string(),
|
|
14193
|
+
ttlMs: z.number().nonnegative().nullable(),
|
|
14194
|
+
pollIntervalMs: z.number().positive().optional(),
|
|
14195
|
+
progress: z.number().min(0).max(1).nullable().optional(),
|
|
14196
|
+
inputRequests: z.unknown().optional(),
|
|
14197
|
+
result: z.unknown().optional(),
|
|
14198
|
+
error: z.unknown().optional()
|
|
14199
|
+
}).passthrough();
|
|
14200
|
+
var mcpTaskAcknowledgementSchema = z.object({
|
|
14201
|
+
resultType: z.literal("complete")
|
|
14202
|
+
}).passthrough();
|
|
14203
|
+
|
|
14204
|
+
export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ARTIFACT_PRESENTATION_OPEN_COMMAND, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_CONTENT_REVIEW_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTENT_CATALOG_PROVIDER, CONTENT_DOCUMENT_LINK_RESOURCE_PARAM, CONTENT_EDITOR_LINK_COMMAND, CONTENT_EDITOR_RESOLVE_COMMAND, CONTENT_EDITOR_STATUS_COMMAND, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONFIGURATION_SECRET_MASK, MCP_CONSUMER_AUTH_TYPES, MCP_EXECUTION_CONTROL_EXTENSION_ID, MCP_EXECUTION_CONTROL_METHOD, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PERSONAL_API_KEY_LIFETIMES, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, ROLE_PERMISSION_MODULES, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, SPACE_PROJECT_TYPE, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_PROJECT_APPLICATION_TARGET, WORKBENCH_PROJECT_PIPELINES_TARGET, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, aggregatePipelineAnalytics, allChannels, appendMessageContent, appendMessagePlainText, assistantOperationPolicySchema, assistantTaskGroupContext, assistantTaskGroupContextSchema, assistantTemplateManifestSchema, assistantTemplateSetupStateSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, canAllowMcpToolDirectly, canReadProjectPipelineConfiguration, channelName, chatMessagePresentation, checkProjectPipelineConfiguration, checkProjectPipelineHostCompatibility, classificateDocumentCategory, clientSecretGrantSourceSchema, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, configurationFromModel, configureProjectPipelineFromForm, configuredModelSource, controlledHandlerSchema, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, defaultModelConfiguration, deriveXpertMarketplaceTechnicalProfile, discoverableModelTypes, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, executionControlCapabilitiesSchema, executionControlEvidenceSchema, executionControlProtocols, executionRuntimeTargetSchema, executionRuntimeTargetsEqual, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getPluginApplicationScopes, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isConfiguredModelAvailable, isContextCompressionComponentData, isDiscoverableModelType, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPluginApplicationScope, isPreparedCandidate, isProjectPipelineApplicable, isPromptWorkflowScenarios, isProviderEvaluation, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, legacyModelFeatures, letterStartSUID, locateNodes, mapTranslationLanguage, mcpExecutionCapabilitySchema, mcpExecutionControlRequestSchema, mcpExecutionReceiptSchema, mcpExecutionToolDeclarationSchema, mcpOperationIdentitySchema, mcpTaskAcknowledgementSchema, mcpTaskResultSchema, mcpTaskStartResultSchema, mergeMessageContentForDisplay, messageContentText, modelConfigurationSchema, modelExecutionEntry, modelExecutionParametersSchema, modelExecutionSourceId, modelImportSchema, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareOptions, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, orderAssistantXperts, parseGithubSkillInstallCommand, parseProjectPipelineParameters, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseWorkbenchViewOpenEvent, pipelineAnalyticsFacts, pipelineAttemptCounts, pipelineAttemptCountsSchema, pipelineExecutionTiming, pipelineExecutionTimingSchema, pipelineExecutorStatistics, pipelineExecutorStatisticsSchema, pipelineHumanWaitSnapshotSchema, pipelineHumanWaitStatistics, pipelineHumanWaitStatisticsSchema, pipelineModelUsageFactSchema, pipelineModelUsageStatistics, pipelineModelUsageStatisticsSchema, pipelineNodeNeedsHuman, pipelineQueueStatistics, pipelineQueueStatisticsSchema, projectPipelineAnalytics, projectPipelineAnalyticsInputSchema, projectPipelineAnalyticsSchema, projectPipelineAssistantExecutionSchema, projectPipelineAssistantInputSchema, projectPipelineBindingSchema, projectPipelineCancelSchema, projectPipelineCatalogConfigureSchema, projectPipelineCatalogProtocolSchema, projectPipelineCatalogRequestSchema, projectPipelineCatalogSchema, projectPipelineCommandCapabilitySchema, projectPipelineCompletionReceiptSchema, projectPipelineConfigurationFormSchema, projectPipelineConfigurationPageSchema, projectPipelineConfigurationSchema, projectPipelineConfigureSchema, projectPipelineContributionSchema, projectPipelineDecisionSchema, projectPipelineDefinitionSchema, projectPipelineDefinitionShapeSchema, projectPipelineEdgeSchema, projectPipelineEvidenceRefSchema, projectPipelineExtensionDescriptorSchema, projectPipelineHostCapabilitiesSchema, projectPipelineHostRequirementsSchema, projectPipelineIconSchema, projectPipelineInputBindingSchema, projectPipelineInstanceSchema, projectPipelineJsonSchema, projectPipelineKeySchema, projectPipelineLaneSchema, projectPipelineNativeDispatchSchema, projectPipelineNativeModelBudgetSchema, projectPipelineNativeModelBudgetStatusSchema, projectPipelineNativeSourceSchema, projectPipelineNextRoundSchema, projectPipelineNodeInstanceSchema, projectPipelineNodePresentationSchema, projectPipelineNodeSchema, projectPipelineNodeStateSchema, projectPipelineOperationInputSchema, projectPipelineOperationReceiptSchema, projectPipelineOutputBindingSchema, projectPipelineParameterFieldSchema, projectPipelineParticipantKindSchema, projectPipelinePolicyReceiptSchema, projectPipelinePortDescriptorSchema, projectPipelinePortfolioInputSchema, projectPipelinePortfolioSchema, projectPipelineProjectBindingSchema, projectPipelineProjectTypesSchema, projectPipelineProjectionEdgeSchema, projectPipelineProjectionNodeSchema, projectPipelineProjectionSchema, projectPipelineProviderActionCommandSchema, projectPipelineProviderActionDescriptorSchema, projectPipelineProviderActionReceiptSchema, projectPipelineProviderActionTargetSchema, projectPipelineProviderActionViewSchema, projectPipelineProviderActionsSchema, projectPipelineRefSchema, projectPipelineResourceClaimSchema, projectPipelineResourceClaimsSchema, projectPipelineResourceReservationSchema, projectPipelineRetrySchema, projectPipelineRoleSchema, projectPipelineRoundSchema, projectPipelineRunSchema, projectPipelineRuntimeExecutionSchema, projectPipelineRuntimeInputSchema, projectPipelineRuntimeSelectionSchema, projectPipelineSavedConfigurationSchema, projectPipelineStageSchema, projectPipelineStartSchema, projectPipelineStatistics, projectPipelineStatisticsSchema, projectPipelineSubjectVersionSchema, projectPipelineTaskProjectionSchema, projectPipelineWorkContextSchema, projectPipelineWorkCountsSchema, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, providerCredentialCheckSchema, providerCredentialValidationTargetSchema, readModelConfiguration, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, sandboxEvidence, sandboxJobRetryReferenceSchema, sandboxRuntimeEvidenceSchema, sandboxRuntimeTargetSchema, sandboxTargetsEqual, selectedPipelineAttemptFacts, setStateVariable, shortTitle, stringifyMessageContent, templateActivityReadSchema, templateDependencyLocksSchema, templateDependencyVersionsSchema, templateFilePathSchema, templateFilesSchema, templateManifestSchema, templateManifestV1Schema, templatePreferenceValuesSchema, templatePublicationInputSchema, templateSetupUpdateSchema, templateUpgradeActionSchema, templateUpgradeInputSchema, templateUpgradeSectionSchema, threadControlActionsSchema, threadControlViewSchema, transformInstallation, unknownExecutionControl, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, usesConfiguredModelCatalog, uuid, validateProjectPipelineConfigurationForm, validateProjectPipelineDefinition, validateProjectTaskGraph, workflowNodeIdentifier, workspaceConnectorAuthorizationSchema, workspaceConnectorConnectPayloadSchema, xpertLabel };
|