@xpert-ai/contracts 3.27.0 → 3.29.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.
Files changed (36) hide show
  1. package/index.cjs.js +862 -198
  2. package/index.esm.js +818 -199
  3. package/package.json +1 -1
  4. package/src/agent/graph.d.ts +5 -0
  5. package/src/ai/chat-recovery.model.d.ts +1 -0
  6. package/src/ai/chat.model.d.ts +12 -1
  7. package/src/ai/computer-codex-isolation.model.d.ts +12 -0
  8. package/src/ai/conversation-share.model.d.ts +65 -0
  9. package/src/ai/execution-control-evidence.schema.d.ts +294 -0
  10. package/src/ai/execution-control.model.d.ts +26 -0
  11. package/src/ai/execution-observability.model.d.ts +2163 -0
  12. package/src/ai/index.d.ts +6 -0
  13. package/src/ai/mcp-execution-control.schema.d.ts +107 -0
  14. package/src/ai/mcp-operation.model.d.ts +60 -0
  15. package/src/ai/mcp-task.schema.d.ts +85 -0
  16. package/src/ai/model-execution-parameters.model.d.ts +46 -0
  17. package/src/ai/model-execution.model.d.ts +4 -1
  18. package/src/ai/project-pipeline/operation.schema.d.ts +1987 -2
  19. package/src/ai/project-task-runtime.model.d.ts +44 -44
  20. package/src/ai/sandbox-execution-control.schema.d.ts +100 -0
  21. package/src/ai/thread-activity.model.d.ts +1 -0
  22. package/src/ai/thread-control-projection.model.d.ts +9 -0
  23. package/src/ai/thread-control-view.schema.d.ts +97 -0
  24. package/src/api-key.model.d.ts +3 -1
  25. package/src/artifact-presentation.model.d.ts +19 -0
  26. package/src/artifact.model.d.ts +14 -0
  27. package/src/content-document.model.d.ts +3 -1
  28. package/src/content-resource.model.d.ts +119 -0
  29. package/src/desktop-shell.model.d.ts +8 -0
  30. package/src/execution-control-admission.schema.d.ts +119 -0
  31. package/src/index.d.ts +9 -0
  32. package/src/plugin-application.d.ts +18 -0
  33. package/src/runtime-control.d.ts +9 -0
  34. package/src/secret-token.model.d.ts +33 -0
  35. package/src/task-control.model.d.ts +45 -0
  36. package/src/view-extension/model.d.ts +7 -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
- import { z as z$1 } from 'zod/v3';
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";
@@ -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",
@@ -1313,7 +1386,12 @@ var OrganizationDemoNetworkEnum;
1313
1386
  OrganizationDemoNetworkEnum["aliyun"] = "aliyun";
1314
1387
  })(OrganizationDemoNetworkEnum || (OrganizationDemoNetworkEnum = {}));
1315
1388
 
1316
- function _define_property$p(obj, key, value) {
1389
+ /** Explicit Artifact source identity for platform-owned conversation snapshots. */ var CONVERSATION_SHARE_ARTIFACT_SOURCE = {
1390
+ pluginName: "@xpert-ai/platform",
1391
+ resourceType: "conversation_snapshot"
1392
+ };
1393
+
1394
+ function _define_property$q(obj, key, value) {
1317
1395
  if (key in obj) {
1318
1396
  Object.defineProperty(obj, key, {
1319
1397
  value: value,
@@ -1326,7 +1404,7 @@ function _define_property$p(obj, key, value) {
1326
1404
  }
1327
1405
  return obj;
1328
1406
  }
1329
- function _object_spread$p(target) {
1407
+ function _object_spread$q(target) {
1330
1408
  for(var i = 1; i < arguments.length; i++){
1331
1409
  var source = arguments[i] != null ? arguments[i] : {};
1332
1410
  var ownKeys = Object.keys(source);
@@ -1336,12 +1414,12 @@ function _object_spread$p(target) {
1336
1414
  }));
1337
1415
  }
1338
1416
  ownKeys.forEach(function(key) {
1339
- _define_property$p(target, key, source[key]);
1417
+ _define_property$q(target, key, source[key]);
1340
1418
  });
1341
1419
  }
1342
1420
  return target;
1343
1421
  }
1344
- function ownKeys$i(object, enumerableOnly) {
1422
+ function ownKeys$j(object, enumerableOnly) {
1345
1423
  var keys = Object.keys(object);
1346
1424
  if (Object.getOwnPropertySymbols) {
1347
1425
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1349,12 +1427,12 @@ function ownKeys$i(object, enumerableOnly) {
1349
1427
  }
1350
1428
  return keys;
1351
1429
  }
1352
- function _object_spread_props$i(target, source) {
1430
+ function _object_spread_props$j(target, source) {
1353
1431
  source = source != null ? source : {};
1354
1432
  if (Object.getOwnPropertyDescriptors) {
1355
1433
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1356
1434
  } else {
1357
- ownKeys$i(Object(source)).forEach(function(key) {
1435
+ ownKeys$j(Object(source)).forEach(function(key) {
1358
1436
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1359
1437
  });
1360
1438
  }
@@ -1382,7 +1460,7 @@ function parseSelectionSet(value) {
1382
1460
  if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
1383
1461
  if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
1384
1462
  if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
1385
- return _object_spread$p(_object_spread_props$i(_object_spread$p({}, value), {
1463
+ return _object_spread$q(_object_spread_props$j(_object_spread$q({}, value), {
1386
1464
  skills: skills === undefined ? {
1387
1465
  ids: []
1388
1466
  } : skills,
@@ -1401,7 +1479,7 @@ function parsePromptCapabilitySelection(value) {
1401
1479
  var selection = parseSelectionSet(value);
1402
1480
  var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
1403
1481
  if (!selection || recommended === null) return null;
1404
- return _object_spread$p(_object_spread_props$i(_object_spread$p({}, selection), {
1482
+ return _object_spread$q(_object_spread_props$j(_object_spread$q({}, selection), {
1405
1483
  mode: "allowlist"
1406
1484
  }), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
1407
1485
  inheritUnselected: value.inheritUnselected
@@ -1453,7 +1531,7 @@ function parsePromptCapabilityConfig(value) {
1453
1531
  }
1454
1532
  }
1455
1533
  }
1456
- return _object_spread_props$i(_object_spread$p({}, value), {
1534
+ return _object_spread_props$j(_object_spread$q({}, value), {
1457
1535
  type: "expert_scoped_capabilities",
1458
1536
  version: 1,
1459
1537
  defaults: defaults,
@@ -1585,7 +1663,7 @@ var ChatMessageStepCategory;
1585
1663
  ChatMessageStepCategory["Knowledges"] = "knowledges";
1586
1664
  })(ChatMessageStepCategory || (ChatMessageStepCategory = {}));
1587
1665
 
1588
- function _define_property$o(obj, key, value) {
1666
+ function _define_property$p(obj, key, value) {
1589
1667
  if (key in obj) {
1590
1668
  Object.defineProperty(obj, key, {
1591
1669
  value: value,
@@ -1605,7 +1683,7 @@ function _instanceof$1(left, right) {
1605
1683
  return left instanceof right;
1606
1684
  }
1607
1685
  }
1608
- function _object_spread$o(target) {
1686
+ function _object_spread$p(target) {
1609
1687
  for(var i = 1; i < arguments.length; i++){
1610
1688
  var source = arguments[i] != null ? arguments[i] : {};
1611
1689
  var ownKeys = Object.keys(source);
@@ -1615,7 +1693,7 @@ function _object_spread$o(target) {
1615
1693
  }));
1616
1694
  }
1617
1695
  ownKeys.forEach(function(key) {
1618
- _define_property$o(target, key, source[key]);
1696
+ _define_property$p(target, key, source[key]);
1619
1697
  });
1620
1698
  }
1621
1699
  return target;
@@ -1626,12 +1704,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
1626
1704
  var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
1627
1705
  var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
1628
1706
  function createConversationTitleSummaryEvent(event) {
1629
- return _object_spread$o({
1707
+ return _object_spread$p({
1630
1708
  type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
1631
1709
  }, event);
1632
1710
  }
1633
1711
  function createFollowUpConsumedEvent(event) {
1634
- return _object_spread$o({
1712
+ return _object_spread$p({
1635
1713
  type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
1636
1714
  }, event);
1637
1715
  }
@@ -1677,7 +1755,7 @@ function _array_with_holes$g(arr) {
1677
1755
  function _array_without_holes$i(arr) {
1678
1756
  if (Array.isArray(arr)) return _array_like_to_array$s(arr);
1679
1757
  }
1680
- function _define_property$n(obj, key, value) {
1758
+ function _define_property$o(obj, key, value) {
1681
1759
  if (key in obj) {
1682
1760
  Object.defineProperty(obj, key, {
1683
1761
  value: value,
@@ -1723,7 +1801,7 @@ function _non_iterable_rest$g() {
1723
1801
  function _non_iterable_spread$i() {
1724
1802
  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
1803
  }
1726
- function _object_spread$n(target) {
1804
+ function _object_spread$o(target) {
1727
1805
  for(var i = 1; i < arguments.length; i++){
1728
1806
  var source = arguments[i] != null ? arguments[i] : {};
1729
1807
  var ownKeys = Object.keys(source);
@@ -1733,12 +1811,12 @@ function _object_spread$n(target) {
1733
1811
  }));
1734
1812
  }
1735
1813
  ownKeys.forEach(function(key) {
1736
- _define_property$n(target, key, source[key]);
1814
+ _define_property$o(target, key, source[key]);
1737
1815
  });
1738
1816
  }
1739
1817
  return target;
1740
1818
  }
1741
- function ownKeys$h(object, enumerableOnly) {
1819
+ function ownKeys$i(object, enumerableOnly) {
1742
1820
  var keys = Object.keys(object);
1743
1821
  if (Object.getOwnPropertySymbols) {
1744
1822
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1746,12 +1824,12 @@ function ownKeys$h(object, enumerableOnly) {
1746
1824
  }
1747
1825
  return keys;
1748
1826
  }
1749
- function _object_spread_props$h(target, source) {
1827
+ function _object_spread_props$i(target, source) {
1750
1828
  source = source != null ? source : {};
1751
1829
  if (Object.getOwnPropertyDescriptors) {
1752
1830
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1753
1831
  } else {
1754
- ownKeys$h(Object(source)).forEach(function(key) {
1832
+ ownKeys$i(Object(source)).forEach(function(key) {
1755
1833
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1756
1834
  });
1757
1835
  }
@@ -1870,7 +1948,7 @@ function normalizeAssistantBindingToolPreferences(value) {
1870
1948
  if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
1871
1949
  return null;
1872
1950
  }
1873
- return _object_spread$n({
1951
+ return _object_spread$o({
1874
1952
  version: 1
1875
1953
  }, Object.keys(toolsets).length ? {
1876
1954
  toolsets: toolsets
@@ -1948,8 +2026,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
1948
2026
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$i(disabledTools).concat([
1949
2027
  normalizedToolName
1950
2028
  ]));
1951
- var toolsets = normalizedPreferences.toolsets ? _object_spread$n({}, normalizedPreferences.toolsets) : undefined;
1952
- var middlewares = normalizedPreferences.middlewares ? _object_spread$n({}, normalizedPreferences.middlewares) : undefined;
2029
+ var toolsets = normalizedPreferences.toolsets ? _object_spread$o({}, normalizedPreferences.toolsets) : undefined;
2030
+ var middlewares = normalizedPreferences.middlewares ? _object_spread$o({}, normalizedPreferences.middlewares) : undefined;
1953
2031
  if (sourceType === "toolset") {
1954
2032
  var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
1955
2033
  if (!toolsetName) {
@@ -1965,14 +2043,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
1965
2043
  } else {
1966
2044
  delete nextToolsets[normalizedNodeKey];
1967
2045
  }
1968
- return normalizeAssistantBindingToolPreferences(_object_spread$n({
2046
+ return normalizeAssistantBindingToolPreferences(_object_spread$o({
1969
2047
  version: 1
1970
2048
  }, Object.keys(nextToolsets).length ? {
1971
2049
  toolsets: nextToolsets
1972
2050
  } : {}, middlewares && Object.keys(middlewares).length ? {
1973
2051
  middlewares: middlewares
1974
2052
  } : {}, normalizedPreferences.skills ? {
1975
- skills: _object_spread$n({}, normalizedPreferences.skills)
2053
+ skills: _object_spread$o({}, normalizedPreferences.skills)
1976
2054
  } : {}));
1977
2055
  }
1978
2056
  var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
@@ -1988,14 +2066,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
1988
2066
  } else {
1989
2067
  delete nextMiddlewares[normalizedNodeKey];
1990
2068
  }
1991
- return normalizeAssistantBindingToolPreferences(_object_spread$n({
2069
+ return normalizeAssistantBindingToolPreferences(_object_spread$o({
1992
2070
  version: 1
1993
2071
  }, toolsets && Object.keys(toolsets).length ? {
1994
2072
  toolsets: toolsets
1995
2073
  } : {}, Object.keys(nextMiddlewares).length ? {
1996
2074
  middlewares: nextMiddlewares
1997
2075
  } : {}, normalizedPreferences.skills ? {
1998
- skills: _object_spread$n({}, normalizedPreferences.skills)
2076
+ skills: _object_spread$o({}, normalizedPreferences.skills)
1999
2077
  } : {}));
2000
2078
  }
2001
2079
  function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
@@ -2013,7 +2091,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2013
2091
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$i(disabledSkillIds).concat([
2014
2092
  normalizedSkillId
2015
2093
  ]));
2016
- var skills = normalizedPreferences.skills ? _object_spread$n({}, normalizedPreferences.skills) : {};
2094
+ var skills = normalizedPreferences.skills ? _object_spread$o({}, normalizedPreferences.skills) : {};
2017
2095
  if (nextDisabledSkillIds.length) {
2018
2096
  skills[normalizedWorkspaceId] = {
2019
2097
  workspaceId: normalizedWorkspaceId,
@@ -2022,12 +2100,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2022
2100
  } else {
2023
2101
  delete skills[normalizedWorkspaceId];
2024
2102
  }
2025
- return normalizeAssistantBindingToolPreferences(_object_spread$n({
2103
+ return normalizeAssistantBindingToolPreferences(_object_spread$o({
2026
2104
  version: 1
2027
2105
  }, normalizedPreferences.toolsets ? {
2028
- toolsets: _object_spread$n({}, normalizedPreferences.toolsets)
2106
+ toolsets: _object_spread$o({}, normalizedPreferences.toolsets)
2029
2107
  } : {}, normalizedPreferences.middlewares ? {
2030
- middlewares: _object_spread$n({}, normalizedPreferences.middlewares)
2108
+ middlewares: _object_spread$o({}, normalizedPreferences.middlewares)
2031
2109
  } : {}, Object.keys(skills).length ? {
2032
2110
  skills: skills
2033
2111
  } : {}));
@@ -2045,14 +2123,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
2045
2123
  var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
2046
2124
  var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
2047
2125
  var _currentWorkspacePreference_disabledSkillIds;
2048
- return _object_spread_props$h(_object_spread$n({
2126
+ return _object_spread_props$i(_object_spread$o({
2049
2127
  version: 1
2050
2128
  }, normalizedPreferences.toolsets ? {
2051
- toolsets: _object_spread$n({}, normalizedPreferences.toolsets)
2129
+ toolsets: _object_spread$o({}, normalizedPreferences.toolsets)
2052
2130
  } : {}, normalizedPreferences.middlewares ? {
2053
- middlewares: _object_spread$n({}, normalizedPreferences.middlewares)
2131
+ middlewares: _object_spread$o({}, normalizedPreferences.middlewares)
2054
2132
  } : {}), {
2055
- skills: _object_spread_props$h(_object_spread$n({}, currentSkills), _define_property$n({}, normalizedWorkspaceId, {
2133
+ skills: _object_spread_props$i(_object_spread$o({}, currentSkills), _define_property$o({}, normalizedWorkspaceId, {
2056
2134
  workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
2057
2135
  disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
2058
2136
  }))
@@ -2145,7 +2223,7 @@ function createdAtTimestamp(item) {
2145
2223
 
2146
2224
  var ASSISTANT_USER_PREFERENCES_VERSION = 1;
2147
2225
 
2148
- function _define_property$m(obj, key, value) {
2226
+ function _define_property$n(obj, key, value) {
2149
2227
  if (key in obj) {
2150
2228
  Object.defineProperty(obj, key, {
2151
2229
  value: value,
@@ -2158,7 +2236,7 @@ function _define_property$m(obj, key, value) {
2158
2236
  }
2159
2237
  return obj;
2160
2238
  }
2161
- function _object_spread$m(target) {
2239
+ function _object_spread$n(target) {
2162
2240
  for(var i = 1; i < arguments.length; i++){
2163
2241
  var source = arguments[i] != null ? arguments[i] : {};
2164
2242
  var ownKeys = Object.keys(source);
@@ -2168,7 +2246,7 @@ function _object_spread$m(target) {
2168
2246
  }));
2169
2247
  }
2170
2248
  ownKeys.forEach(function(key) {
2171
- _define_property$m(target, key, source[key]);
2249
+ _define_property$n(target, key, source[key]);
2172
2250
  });
2173
2251
  }
2174
2252
  return target;
@@ -2300,7 +2378,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
2300
2378
  var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2301
2379
  var _config_preserveUnknown;
2302
2380
  var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
2303
- var resolvedOptions = preserveUnknown ? _object_spread$m({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
2381
+ var resolvedOptions = preserveUnknown ? _object_spread$n({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
2304
2382
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2305
2383
  try {
2306
2384
  for(var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
@@ -2364,7 +2442,7 @@ function _array_like_to_array$q(arr, len) {
2364
2442
  function _array_without_holes$g(arr) {
2365
2443
  if (Array.isArray(arr)) return _array_like_to_array$q(arr);
2366
2444
  }
2367
- function _define_property$l(obj, key, value) {
2445
+ function _define_property$m(obj, key, value) {
2368
2446
  if (key in obj) {
2369
2447
  Object.defineProperty(obj, key, {
2370
2448
  value: value,
@@ -2383,7 +2461,7 @@ function _iterable_to_array$i(iter) {
2383
2461
  function _non_iterable_spread$g() {
2384
2462
  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
2463
  }
2386
- function _object_spread$l(target) {
2464
+ function _object_spread$m(target) {
2387
2465
  for(var i = 1; i < arguments.length; i++){
2388
2466
  var source = arguments[i] != null ? arguments[i] : {};
2389
2467
  var ownKeys = Object.keys(source);
@@ -2393,12 +2471,12 @@ function _object_spread$l(target) {
2393
2471
  }));
2394
2472
  }
2395
2473
  ownKeys.forEach(function(key) {
2396
- _define_property$l(target, key, source[key]);
2474
+ _define_property$m(target, key, source[key]);
2397
2475
  });
2398
2476
  }
2399
2477
  return target;
2400
2478
  }
2401
- function ownKeys$g(object, enumerableOnly) {
2479
+ function ownKeys$h(object, enumerableOnly) {
2402
2480
  var keys = Object.keys(object);
2403
2481
  if (Object.getOwnPropertySymbols) {
2404
2482
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2406,12 +2484,12 @@ function ownKeys$g(object, enumerableOnly) {
2406
2484
  }
2407
2485
  return keys;
2408
2486
  }
2409
- function _object_spread_props$g(target, source) {
2487
+ function _object_spread_props$h(target, source) {
2410
2488
  source = source != null ? source : {};
2411
2489
  if (Object.getOwnPropertyDescriptors) {
2412
2490
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2413
2491
  } else {
2414
- ownKeys$g(Object(source)).forEach(function(key) {
2492
+ ownKeys$h(Object(source)).forEach(function(key) {
2415
2493
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2416
2494
  });
2417
2495
  }
@@ -2439,20 +2517,20 @@ var common$1 = {
2439
2517
  maxConcurrency: positiveInteger.max(1000)
2440
2518
  };
2441
2519
  /** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = z.discriminatedUnion("modelType", [
2442
- z.object(_object_spread_props$g(_object_spread$l({
2520
+ z.object(_object_spread_props$h(_object_spread$m({
2443
2521
  modelType: z.literal(AiModelTypeEnum.LLM)
2444
2522
  }, common$1), {
2445
2523
  maxOutputTokens: positiveInteger,
2446
2524
  defaultMaxTokens: positiveInteger,
2447
2525
  features: z.array(z.nativeEnum(ModelFeature)).max(20)
2448
2526
  })).strict(),
2449
- z.object(_object_spread_props$g(_object_spread$l({
2527
+ z.object(_object_spread_props$h(_object_spread$m({
2450
2528
  modelType: z.literal(AiModelTypeEnum.TEXT_EMBEDDING)
2451
2529
  }, common$1), {
2452
2530
  dimensions: positiveInteger.optional(),
2453
2531
  batchSize: positiveInteger.max(2048)
2454
2532
  })).strict(),
2455
- z.object(_object_spread$l({
2533
+ z.object(_object_spread$m({
2456
2534
  modelType: z.literal(AiModelTypeEnum.RERANK)
2457
2535
  }, common$1)).strict()
2458
2536
  ]).superRefine(function(value, ctx) {
@@ -2484,7 +2562,7 @@ function defaultModelConfiguration(modelType) {
2484
2562
  };
2485
2563
  switch(modelType){
2486
2564
  case AiModelTypeEnum.LLM:
2487
- return _object_spread_props$g(_object_spread$l({
2565
+ return _object_spread_props$h(_object_spread$m({
2488
2566
  modelType: modelType
2489
2567
  }, common), {
2490
2568
  maxOutputTokens: 2048,
@@ -2492,13 +2570,13 @@ function defaultModelConfiguration(modelType) {
2492
2570
  features: []
2493
2571
  });
2494
2572
  case AiModelTypeEnum.TEXT_EMBEDDING:
2495
- return _object_spread_props$g(_object_spread$l({
2573
+ return _object_spread_props$h(_object_spread$m({
2496
2574
  modelType: modelType
2497
2575
  }, common), {
2498
2576
  batchSize: 16
2499
2577
  });
2500
2578
  case AiModelTypeEnum.RERANK:
2501
- return _object_spread$l({
2579
+ return _object_spread$m({
2502
2580
  modelType: modelType
2503
2581
  }, common);
2504
2582
  }
@@ -3086,7 +3164,7 @@ function workflowNodeIdentifier(node) {
3086
3164
  return node.title || node.key;
3087
3165
  }
3088
3166
 
3089
- function _define_property$k(obj, key, value) {
3167
+ function _define_property$l(obj, key, value) {
3090
3168
  if (key in obj) {
3091
3169
  Object.defineProperty(obj, key, {
3092
3170
  value: value,
@@ -3099,7 +3177,7 @@ function _define_property$k(obj, key, value) {
3099
3177
  }
3100
3178
  return obj;
3101
3179
  }
3102
- function _object_spread$k(target) {
3180
+ function _object_spread$l(target) {
3103
3181
  for(var i = 1; i < arguments.length; i++){
3104
3182
  var source = arguments[i] != null ? arguments[i] : {};
3105
3183
  var ownKeys = Object.keys(source);
@@ -3109,12 +3187,12 @@ function _object_spread$k(target) {
3109
3187
  }));
3110
3188
  }
3111
3189
  ownKeys.forEach(function(key) {
3112
- _define_property$k(target, key, source[key]);
3190
+ _define_property$l(target, key, source[key]);
3113
3191
  });
3114
3192
  }
3115
3193
  return target;
3116
3194
  }
3117
- function ownKeys$f(object, enumerableOnly) {
3195
+ function ownKeys$g(object, enumerableOnly) {
3118
3196
  var keys = Object.keys(object);
3119
3197
  if (Object.getOwnPropertySymbols) {
3120
3198
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3122,12 +3200,12 @@ function ownKeys$f(object, enumerableOnly) {
3122
3200
  }
3123
3201
  return keys;
3124
3202
  }
3125
- function _object_spread_props$f(target, source) {
3203
+ function _object_spread_props$g(target, source) {
3126
3204
  source = source != null ? source : {};
3127
3205
  if (Object.getOwnPropertyDescriptors) {
3128
3206
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3129
3207
  } else {
3130
- ownKeys$f(Object(source)).forEach(function(key) {
3208
+ ownKeys$g(Object(source)).forEach(function(key) {
3131
3209
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3132
3210
  });
3133
3211
  }
@@ -3160,7 +3238,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
3160
3238
  return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
3161
3239
  }
3162
3240
  function normalizeXpertAgentConfig(agentConfig) {
3163
- return _object_spread_props$f(_object_spread$k({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
3241
+ return _object_spread_props$g(_object_spread$l({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
3164
3242
  recursionLimit: getXpertAgentRecursionLimit(agentConfig)
3165
3243
  });
3166
3244
  }
@@ -3254,7 +3332,7 @@ function _array_like_to_array$p(arr, len) {
3254
3332
  function _array_with_holes$f(arr) {
3255
3333
  if (Array.isArray(arr)) return arr;
3256
3334
  }
3257
- function _define_property$j(obj, key, value) {
3335
+ function _define_property$k(obj, key, value) {
3258
3336
  if (key in obj) {
3259
3337
  Object.defineProperty(obj, key, {
3260
3338
  value: value,
@@ -3294,7 +3372,7 @@ function _iterable_to_array_limit$d(arr, i) {
3294
3372
  function _non_iterable_rest$f() {
3295
3373
  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
3374
  }
3297
- function _object_spread$j(target) {
3375
+ function _object_spread$k(target) {
3298
3376
  for(var i = 1; i < arguments.length; i++){
3299
3377
  var source = arguments[i] != null ? arguments[i] : {};
3300
3378
  var ownKeys = Object.keys(source);
@@ -3304,12 +3382,12 @@ function _object_spread$j(target) {
3304
3382
  }));
3305
3383
  }
3306
3384
  ownKeys.forEach(function(key) {
3307
- _define_property$j(target, key, source[key]);
3385
+ _define_property$k(target, key, source[key]);
3308
3386
  });
3309
3387
  }
3310
3388
  return target;
3311
3389
  }
3312
- function ownKeys$e(object, enumerableOnly) {
3390
+ function ownKeys$f(object, enumerableOnly) {
3313
3391
  var keys = Object.keys(object);
3314
3392
  if (Object.getOwnPropertySymbols) {
3315
3393
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3317,12 +3395,12 @@ function ownKeys$e(object, enumerableOnly) {
3317
3395
  }
3318
3396
  return keys;
3319
3397
  }
3320
- function _object_spread_props$e(target, source) {
3398
+ function _object_spread_props$f(target, source) {
3321
3399
  source = source != null ? source : {};
3322
3400
  if (Object.getOwnPropertyDescriptors) {
3323
3401
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3324
3402
  } else {
3325
- ownKeys$e(Object(source)).forEach(function(key) {
3403
+ ownKeys$f(Object(source)).forEach(function(key) {
3326
3404
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3327
3405
  });
3328
3406
  }
@@ -3422,7 +3500,7 @@ function configurableStoreNamespace(configurable) {
3422
3500
  var _varName_split = _sliced_to_array$d(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
3423
3501
  if (variableName) {
3424
3502
  var _state_agentChannelName;
3425
- state[agentChannelName] = _object_spread_props$e(_object_spread$j({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$j({}, variableName, value));
3503
+ 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
3504
  } else {
3427
3505
  state[agentChannelName] = value;
3428
3506
  }
@@ -3513,7 +3591,7 @@ function getWorkflowTriggers(graph, from) {
3513
3591
  });
3514
3592
  }
3515
3593
 
3516
- function _define_property$i(obj, key, value) {
3594
+ function _define_property$j(obj, key, value) {
3517
3595
  if (key in obj) {
3518
3596
  Object.defineProperty(obj, key, {
3519
3597
  value: value,
@@ -3526,7 +3604,7 @@ function _define_property$i(obj, key, value) {
3526
3604
  }
3527
3605
  return obj;
3528
3606
  }
3529
- function _object_spread$i(target) {
3607
+ function _object_spread$j(target) {
3530
3608
  for(var i = 1; i < arguments.length; i++){
3531
3609
  var source = arguments[i] != null ? arguments[i] : {};
3532
3610
  var ownKeys = Object.keys(source);
@@ -3536,12 +3614,12 @@ function _object_spread$i(target) {
3536
3614
  }));
3537
3615
  }
3538
3616
  ownKeys.forEach(function(key) {
3539
- _define_property$i(target, key, source[key]);
3617
+ _define_property$j(target, key, source[key]);
3540
3618
  });
3541
3619
  }
3542
3620
  return target;
3543
3621
  }
3544
- function ownKeys$d(object, enumerableOnly) {
3622
+ function ownKeys$e(object, enumerableOnly) {
3545
3623
  var keys = Object.keys(object);
3546
3624
  if (Object.getOwnPropertySymbols) {
3547
3625
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3549,12 +3627,12 @@ function ownKeys$d(object, enumerableOnly) {
3549
3627
  }
3550
3628
  return keys;
3551
3629
  }
3552
- function _object_spread_props$d(target, source) {
3630
+ function _object_spread_props$e(target, source) {
3553
3631
  source = source != null ? source : {};
3554
3632
  if (Object.getOwnPropertyDescriptors) {
3555
3633
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3556
3634
  } else {
3557
- ownKeys$d(Object(source)).forEach(function(key) {
3635
+ ownKeys$e(Object(source)).forEach(function(key) {
3558
3636
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3559
3637
  });
3560
3638
  }
@@ -3642,11 +3720,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
3642
3720
  return candidate === requestedMode;
3643
3721
  }) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
3644
3722
  var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
3645
- return _object_spread_props$d(_object_spread$i({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
3723
+ return _object_spread_props$e(_object_spread$j({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
3646
3724
  mode: mode,
3647
- fusion: _object_spread_props$d(_object_spread$i({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
3725
+ 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
3726
  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$d(_object_spread$i({}, 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 : {}), {
3727
+ 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
3728
  graph: 0
3651
3729
  })
3652
3730
  })
@@ -3815,7 +3893,7 @@ function _array_like_to_array$n(arr, len) {
3815
3893
  function _array_without_holes$e(arr) {
3816
3894
  if (Array.isArray(arr)) return _array_like_to_array$n(arr);
3817
3895
  }
3818
- function _define_property$h(obj, key, value) {
3896
+ function _define_property$i(obj, key, value) {
3819
3897
  if (key in obj) {
3820
3898
  Object.defineProperty(obj, key, {
3821
3899
  value: value,
@@ -3834,7 +3912,7 @@ function _iterable_to_array$g(iter) {
3834
3912
  function _non_iterable_spread$e() {
3835
3913
  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
3914
  }
3837
- function _object_spread$h(target) {
3915
+ function _object_spread$i(target) {
3838
3916
  for(var i = 1; i < arguments.length; i++){
3839
3917
  var source = arguments[i] != null ? arguments[i] : {};
3840
3918
  var ownKeys = Object.keys(source);
@@ -3844,7 +3922,7 @@ function _object_spread$h(target) {
3844
3922
  }));
3845
3923
  }
3846
3924
  ownKeys.forEach(function(key) {
3847
- _define_property$h(target, key, source[key]);
3925
+ _define_property$i(target, key, source[key]);
3848
3926
  });
3849
3927
  }
3850
3928
  return target;
@@ -3862,12 +3940,12 @@ function _unsupported_iterable_to_array$n(o, minLen) {
3862
3940
  }
3863
3941
  /** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
3864
3942
  if (!config) return {};
3865
- return _object_spread$h({}, config.spreadsheet ? {
3866
- spreadsheet: _object_spread$h({}, config.spreadsheet)
3943
+ return _object_spread$i({}, config.spreadsheet ? {
3944
+ spreadsheet: _object_spread$i({}, config.spreadsheet)
3867
3945
  } : {}, config.tableMetadataRequirements !== undefined ? {
3868
3946
  tableMetadataRequirements: config.tableMetadataRequirements
3869
3947
  } : {}, config.questionGeneration ? {
3870
- questionGeneration: _object_spread$h({}, config.questionGeneration)
3948
+ questionGeneration: _object_spread$i({}, config.questionGeneration)
3871
3949
  } : {}, config.chunkLanguageHint !== undefined ? {
3872
3950
  chunkLanguageHint: config.chunkLanguageHint
3873
3951
  } : {}, config.maxChunkTokens !== undefined ? {
@@ -3881,7 +3959,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
3881
3959
  } : {}, config.textSplitterType ? {
3882
3960
  textSplitterType: config.textSplitterType
3883
3961
  } : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
3884
- textSplitter: _object_spread$h({}, config.chunkSize != null ? {
3962
+ textSplitter: _object_spread$i({}, config.chunkSize != null ? {
3885
3963
  chunkSize: config.chunkSize
3886
3964
  } : {}, config.chunkOverlap != null ? {
3887
3965
  chunkOverlap: config.chunkOverlap
@@ -3893,7 +3971,7 @@ function _unsupported_iterable_to_array$n(o, minLen) {
3893
3971
  } : {}, config.imageUnderstandingType ? {
3894
3972
  imageUnderstandingType: config.imageUnderstandingType
3895
3973
  } : {}, config.imageUnderstanding ? {
3896
- imageUnderstanding: _object_spread$h({}, config.imageUnderstanding)
3974
+ imageUnderstanding: _object_spread$i({}, config.imageUnderstanding)
3897
3975
  } : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
3898
3976
  }
3899
3977
  /** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
@@ -3958,7 +4036,7 @@ function genPipelineKnowledgeBaseKey() {
3958
4036
  return letterStartSUID("KnowledgeBase_");
3959
4037
  }
3960
4038
 
3961
- function _define_property$g(obj, key, value) {
4039
+ function _define_property$h(obj, key, value) {
3962
4040
  if (key in obj) {
3963
4041
  Object.defineProperty(obj, key, {
3964
4042
  value: value,
@@ -3971,7 +4049,7 @@ function _define_property$g(obj, key, value) {
3971
4049
  }
3972
4050
  return obj;
3973
4051
  }
3974
- function _object_spread$g(target) {
4052
+ function _object_spread$h(target) {
3975
4053
  for(var i = 1; i < arguments.length; i++){
3976
4054
  var source = arguments[i] != null ? arguments[i] : {};
3977
4055
  var ownKeys = Object.keys(source);
@@ -3981,7 +4059,7 @@ function _object_spread$g(target) {
3981
4059
  }));
3982
4060
  }
3983
4061
  ownKeys.forEach(function(key) {
3984
- _define_property$g(target, key, source[key]);
4062
+ _define_property$h(target, key, source[key]);
3985
4063
  });
3986
4064
  }
3987
4065
  return target;
@@ -4001,7 +4079,7 @@ function _object_spread$g(target) {
4001
4079
  * @deprecated use DocumentSourceProviderCategoryEnum local file type instead
4002
4080
  */ DocumentTypeEnum["FILE"] = "file";
4003
4081
  })(DocumentTypeEnum || (DocumentTypeEnum = {}));
4004
- var KDocumentSourceType = _object_spread$g({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
4082
+ var KDocumentSourceType = _object_spread$h({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
4005
4083
  /**
4006
4084
  * Document type category, determine how to process the document.
4007
4085
  */ var KBDocumentCategoryEnum;
@@ -4849,7 +4927,7 @@ function _array_like_to_array$l(arr, len) {
4849
4927
  function _array_without_holes$c(arr) {
4850
4928
  if (Array.isArray(arr)) return _array_like_to_array$l(arr);
4851
4929
  }
4852
- function _define_property$f(obj, key, value) {
4930
+ function _define_property$g(obj, key, value) {
4853
4931
  if (key in obj) {
4854
4932
  Object.defineProperty(obj, key, {
4855
4933
  value: value,
@@ -4868,7 +4946,7 @@ function _iterable_to_array$e(iter) {
4868
4946
  function _non_iterable_spread$c() {
4869
4947
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4870
4948
  }
4871
- function _object_spread$f(target) {
4949
+ function _object_spread$g(target) {
4872
4950
  for(var i = 1; i < arguments.length; i++){
4873
4951
  var source = arguments[i] != null ? arguments[i] : {};
4874
4952
  var ownKeys = Object.keys(source);
@@ -4878,12 +4956,12 @@ function _object_spread$f(target) {
4878
4956
  }));
4879
4957
  }
4880
4958
  ownKeys.forEach(function(key) {
4881
- _define_property$f(target, key, source[key]);
4959
+ _define_property$g(target, key, source[key]);
4882
4960
  });
4883
4961
  }
4884
4962
  return target;
4885
4963
  }
4886
- function ownKeys$c(object, enumerableOnly) {
4964
+ function ownKeys$d(object, enumerableOnly) {
4887
4965
  var keys = Object.keys(object);
4888
4966
  if (Object.getOwnPropertySymbols) {
4889
4967
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4891,12 +4969,12 @@ function ownKeys$c(object, enumerableOnly) {
4891
4969
  }
4892
4970
  return keys;
4893
4971
  }
4894
- function _object_spread_props$c(target, source) {
4972
+ function _object_spread_props$d(target, source) {
4895
4973
  source = source != null ? source : {};
4896
4974
  if (Object.getOwnPropertyDescriptors) {
4897
4975
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4898
4976
  } else {
4899
- ownKeys$c(Object(source)).forEach(function(key) {
4977
+ ownKeys$d(Object(source)).forEach(function(key) {
4900
4978
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4901
4979
  });
4902
4980
  }
@@ -4977,7 +5055,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
4977
5055
  var graph = resolveDraftRuntimeGraph(xpert, draft);
4978
5056
  var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
4979
5057
  var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
4980
- return _object_spread_props$c(_object_spread$f({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
5058
+ return _object_spread_props$d(_object_spread$g({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
4981
5059
  id: xpert.id,
4982
5060
  tenantId: xpert.tenantId,
4983
5061
  organizationId: xpert.organizationId,
@@ -5261,9 +5339,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5261
5339
  if (node.type === "agent" && node.key === sourceKey) {
5262
5340
  replacedNode = true;
5263
5341
  var _node_entity;
5264
- return _object_spread_props$c(_object_spread$f({}, node), {
5342
+ return _object_spread_props$d(_object_spread$g({}, node), {
5265
5343
  key: targetKey,
5266
- entity: _object_spread_props$c(_object_spread$f({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
5344
+ entity: _object_spread_props$d(_object_spread$g({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
5267
5345
  key: targetKey
5268
5346
  })
5269
5347
  });
@@ -5279,17 +5357,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5279
5357
  if (from === connection.from && to === connection.to) {
5280
5358
  return connection;
5281
5359
  }
5282
- return _object_spread_props$c(_object_spread$f({}, connection), {
5360
+ return _object_spread_props$d(_object_spread$g({}, connection), {
5283
5361
  from: from,
5284
5362
  to: to,
5285
5363
  key: "".concat(from, "/").concat(to)
5286
5364
  });
5287
5365
  });
5288
- return _object_spread_props$c(_object_spread$f({}, draft), {
5289
- team: draft.team ? _object_spread_props$c(_object_spread$f({}, draft.team), {
5290
- agent: draft.team.agent ? _object_spread_props$c(_object_spread$f({}, draft.team.agent, agent), {
5366
+ return _object_spread_props$d(_object_spread$g({}, draft), {
5367
+ team: draft.team ? _object_spread_props$d(_object_spread$g({}, draft.team), {
5368
+ agent: draft.team.agent ? _object_spread_props$d(_object_spread$g({}, draft.team.agent, agent), {
5291
5369
  key: targetKey
5292
- }) : _object_spread_props$c(_object_spread$f({}, agent), {
5370
+ }) : _object_spread_props$d(_object_spread$g({}, agent), {
5293
5371
  key: targetKey
5294
5372
  })
5295
5373
  }) : draft.team,
@@ -5444,7 +5522,7 @@ var GENERAL_PROJECT_TYPE = {
5444
5522
  * @template Metadata - Type of metadata, defaults to IDocChunkMetadata
5445
5523
  * @param documents - A flat array of DocumentInterface objects
5446
5524
  * @returns the hierarchical tree (root-level DocumentInterface[])
5447
- */ function _define_property$e(obj, key, value) {
5525
+ */ function _define_property$f(obj, key, value) {
5448
5526
  if (key in obj) {
5449
5527
  Object.defineProperty(obj, key, {
5450
5528
  value: value,
@@ -5457,7 +5535,7 @@ var GENERAL_PROJECT_TYPE = {
5457
5535
  }
5458
5536
  return obj;
5459
5537
  }
5460
- function _object_spread$e(target) {
5538
+ function _object_spread$f(target) {
5461
5539
  for(var i = 1; i < arguments.length; i++){
5462
5540
  var source = arguments[i] != null ? arguments[i] : {};
5463
5541
  var ownKeys = Object.keys(source);
@@ -5467,12 +5545,12 @@ function _object_spread$e(target) {
5467
5545
  }));
5468
5546
  }
5469
5547
  ownKeys.forEach(function(key) {
5470
- _define_property$e(target, key, source[key]);
5548
+ _define_property$f(target, key, source[key]);
5471
5549
  });
5472
5550
  }
5473
5551
  return target;
5474
5552
  }
5475
- function ownKeys$b(object, enumerableOnly) {
5553
+ function ownKeys$c(object, enumerableOnly) {
5476
5554
  var keys = Object.keys(object);
5477
5555
  if (Object.getOwnPropertySymbols) {
5478
5556
  var symbols = Object.getOwnPropertySymbols(object);
@@ -5480,12 +5558,12 @@ function ownKeys$b(object, enumerableOnly) {
5480
5558
  }
5481
5559
  return keys;
5482
5560
  }
5483
- function _object_spread_props$b(target, source) {
5561
+ function _object_spread_props$c(target, source) {
5484
5562
  source = source != null ? source : {};
5485
5563
  if (Object.getOwnPropertyDescriptors) {
5486
5564
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5487
5565
  } else {
5488
- ownKeys$b(Object(source)).forEach(function(key) {
5566
+ ownKeys$c(Object(source)).forEach(function(key) {
5489
5567
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5490
5568
  });
5491
5569
  }
@@ -5500,8 +5578,8 @@ function buildChunkTree(documents) {
5500
5578
  documents.forEach(function(doc, index) {
5501
5579
  var chunkId = getChunkNodeId(doc);
5502
5580
  if (chunkId) {
5503
- map.set(chunkId, _object_spread_props$b(_object_spread$e({}, doc), {
5504
- metadata: _object_spread_props$b(_object_spread$e({}, doc.metadata), {
5581
+ map.set(chunkId, _object_spread_props$c(_object_spread$f({}, doc), {
5582
+ metadata: _object_spread_props$c(_object_spread$f({}, doc.metadata), {
5505
5583
  chunkId: chunkId,
5506
5584
  children: []
5507
5585
  })
@@ -6051,7 +6129,7 @@ function isLocalPath(value) {
6051
6129
  })).size === value.length;
6052
6130
  }
6053
6131
 
6054
- function _define_property$d(obj, key, value) {
6132
+ function _define_property$e(obj, key, value) {
6055
6133
  if (key in obj) {
6056
6134
  Object.defineProperty(obj, key, {
6057
6135
  value: value,
@@ -6064,7 +6142,7 @@ function _define_property$d(obj, key, value) {
6064
6142
  }
6065
6143
  return obj;
6066
6144
  }
6067
- function _object_spread$d(target) {
6145
+ function _object_spread$e(target) {
6068
6146
  for(var i = 1; i < arguments.length; i++){
6069
6147
  var source = arguments[i] != null ? arguments[i] : {};
6070
6148
  var ownKeys = Object.keys(source);
@@ -6074,12 +6152,12 @@ function _object_spread$d(target) {
6074
6152
  }));
6075
6153
  }
6076
6154
  ownKeys.forEach(function(key) {
6077
- _define_property$d(target, key, source[key]);
6155
+ _define_property$e(target, key, source[key]);
6078
6156
  });
6079
6157
  }
6080
6158
  return target;
6081
6159
  }
6082
- function ownKeys$a(object, enumerableOnly) {
6160
+ function ownKeys$b(object, enumerableOnly) {
6083
6161
  var keys = Object.keys(object);
6084
6162
  if (Object.getOwnPropertySymbols) {
6085
6163
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6087,12 +6165,12 @@ function ownKeys$a(object, enumerableOnly) {
6087
6165
  }
6088
6166
  return keys;
6089
6167
  }
6090
- function _object_spread_props$a(target, source) {
6168
+ function _object_spread_props$b(target, source) {
6091
6169
  source = source != null ? source : {};
6092
6170
  if (Object.getOwnPropertyDescriptors) {
6093
6171
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6094
6172
  } else {
6095
- ownKeys$a(Object(source)).forEach(function(key) {
6173
+ ownKeys$b(Object(source)).forEach(function(key) {
6096
6174
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6097
6175
  });
6098
6176
  }
@@ -6132,8 +6210,8 @@ function normalizeMiddlewareNode(node) {
6132
6210
  if (provider === entity.provider) {
6133
6211
  return node;
6134
6212
  }
6135
- return _object_spread_props$a(_object_spread$d({}, node), {
6136
- entity: _object_spread_props$a(_object_spread$d({}, entity), {
6213
+ return _object_spread_props$b(_object_spread$e({}, node), {
6214
+ entity: _object_spread_props$b(_object_spread$e({}, entity), {
6137
6215
  provider: provider
6138
6216
  })
6139
6217
  });
@@ -6194,7 +6272,7 @@ function _array_with_holes$c(arr) {
6194
6272
  function _array_without_holes$b(arr) {
6195
6273
  if (Array.isArray(arr)) return _array_like_to_array$i(arr);
6196
6274
  }
6197
- function _define_property$c(obj, key, value) {
6275
+ function _define_property$d(obj, key, value) {
6198
6276
  if (key in obj) {
6199
6277
  Object.defineProperty(obj, key, {
6200
6278
  value: value,
@@ -6240,7 +6318,7 @@ function _non_iterable_rest$c() {
6240
6318
  function _non_iterable_spread$b() {
6241
6319
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6242
6320
  }
6243
- function _object_spread$c(target) {
6321
+ function _object_spread$d(target) {
6244
6322
  for(var i = 1; i < arguments.length; i++){
6245
6323
  var source = arguments[i] != null ? arguments[i] : {};
6246
6324
  var ownKeys = Object.keys(source);
@@ -6250,12 +6328,12 @@ function _object_spread$c(target) {
6250
6328
  }));
6251
6329
  }
6252
6330
  ownKeys.forEach(function(key) {
6253
- _define_property$c(target, key, source[key]);
6331
+ _define_property$d(target, key, source[key]);
6254
6332
  });
6255
6333
  }
6256
6334
  return target;
6257
6335
  }
6258
- function ownKeys$9(object, enumerableOnly) {
6336
+ function ownKeys$a(object, enumerableOnly) {
6259
6337
  var keys = Object.keys(object);
6260
6338
  if (Object.getOwnPropertySymbols) {
6261
6339
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6263,12 +6341,12 @@ function ownKeys$9(object, enumerableOnly) {
6263
6341
  }
6264
6342
  return keys;
6265
6343
  }
6266
- function _object_spread_props$9(target, source) {
6344
+ function _object_spread_props$a(target, source) {
6267
6345
  source = source != null ? source : {};
6268
6346
  if (Object.getOwnPropertyDescriptors) {
6269
6347
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6270
6348
  } else {
6271
- ownKeys$9(Object(source)).forEach(function(key) {
6349
+ ownKeys$a(Object(source)).forEach(function(key) {
6272
6350
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6273
6351
  });
6274
6352
  }
@@ -6384,7 +6462,7 @@ function normalizeIncomingContent(content, context) {
6384
6462
  if (typeof content !== "string") {
6385
6463
  return content;
6386
6464
  }
6387
- return _object_spread$c({
6465
+ return _object_spread$d({
6388
6466
  type: "text",
6389
6467
  text: content
6390
6468
  }, context.streamId ? {
@@ -6449,7 +6527,7 @@ function filterText(content) {
6449
6527
  return "";
6450
6528
  }
6451
6529
  function mergeTextChunkForDisplay(previous, incoming) {
6452
- return _object_spread$c(_object_spread_props$9(_object_spread$c({}, previous), {
6530
+ return _object_spread$d(_object_spread_props$a(_object_spread$d({}, previous), {
6453
6531
  text: "".concat(previous.text).concat(incoming.text)
6454
6532
  }), !previous.id && incoming.id ? {
6455
6533
  id: incoming.id
@@ -6461,7 +6539,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
6461
6539
  }
6462
6540
  function stripAutoDisplaySeparator(incoming, previousOriginal) {
6463
6541
  if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
6464
- return _object_spread_props$9(_object_spread$c({}, incoming), {
6542
+ return _object_spread_props$a(_object_spread$d({}, incoming), {
6465
6543
  text: incoming.text.slice(1)
6466
6544
  });
6467
6545
  }
@@ -6478,14 +6556,14 @@ function mergeComponentData(previous, incoming) {
6478
6556
  return acc;
6479
6557
  }, {});
6480
6558
  var _previous_data1;
6481
- return _object_spread_props$9(_object_spread$c({}, previous, incoming), {
6482
- data: _object_spread_props$9(_object_spread$c({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
6559
+ return _object_spread_props$a(_object_spread$d({}, previous, incoming), {
6560
+ data: _object_spread_props$a(_object_spread$d({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
6483
6561
  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)
6484
6562
  })
6485
6563
  });
6486
6564
  }
6487
6565
  function inferMessageAppendContext(content, fallbackSource) {
6488
- return _object_spread$c({
6566
+ return _object_spread$d({
6489
6567
  source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
6490
6568
  }, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
6491
6569
  streamId: String(content.id)
@@ -6493,10 +6571,10 @@ function inferMessageAppendContext(content, fallbackSource) {
6493
6571
  }
6494
6572
  function resolveMessageAppendContext(options) {
6495
6573
  var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
6496
- var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$9(_object_spread$c({}, inferredContext), {
6574
+ var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$a(_object_spread$d({}, inferredContext), {
6497
6575
  streamId: options.fallbackStreamId
6498
6576
  }) : inferredContext;
6499
- var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$9(_object_spread$c({}, appendContext), {
6577
+ var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$a(_object_spread$d({}, appendContext), {
6500
6578
  joinHint: "none"
6501
6579
  }) : appendContext;
6502
6580
  return {
@@ -6517,7 +6595,7 @@ function resolveMessageAppendContext(options) {
6517
6595
  var previous = initial;
6518
6596
  return {
6519
6597
  resolve: function resolve(options) {
6520
- var resolved = resolveMessageAppendContext(_object_spread_props$9(_object_spread$c({}, options), {
6598
+ var resolved = resolveMessageAppendContext(_object_spread_props$a(_object_spread$d({}, options), {
6521
6599
  previous: previous
6522
6600
  }));
6523
6601
  if (!isFileActivityContent(options.incoming) && !isResourceCardContent(options.incoming)) previous = resolved.appendContext;
@@ -6555,10 +6633,10 @@ function resolveMessageAppendContext(options) {
6555
6633
  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, [
6556
6634
  "previous"
6557
6635
  ]);
6558
- var appendContext = _object_spread$c({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
6636
+ var appendContext = _object_spread$d({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
6559
6637
  var _appendContext_joinHint;
6560
6638
  var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
6561
- var messageContext = joinHint ? _object_spread_props$9(_object_spread$c({}, appendContext), {
6639
+ var messageContext = joinHint ? _object_spread_props$a(_object_spread$d({}, appendContext), {
6562
6640
  joinHint: joinHint
6563
6641
  }) : appendContext;
6564
6642
  var content = normalizeIncomingContent(incoming, appendContext);
@@ -6567,7 +6645,7 @@ function resolveMessageAppendContext(options) {
6567
6645
  var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
6568
6646
  var lastReasoning = reasoning[reasoning.length - 1];
6569
6647
  if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
6570
- var mergedReasoning = _object_spread_props$9(_object_spread$c({}, lastReasoning), {
6648
+ var mergedReasoning = _object_spread_props$a(_object_spread$d({}, lastReasoning), {
6571
6649
  text: "".concat(lastReasoning.text).concat(content.text)
6572
6650
  });
6573
6651
  aiMessage.reasoning = _to_consumable_array$b(reasoning.slice(0, reasoning.length - 1)).concat([
@@ -6588,7 +6666,7 @@ function resolveMessageAppendContext(options) {
6588
6666
  return isTextContent(item) && item.id === content.id;
6589
6667
  });
6590
6668
  if (index > -1) {
6591
- var mergedContent = _object_spread$c(_object_spread_props$9(_object_spread$c({}, chunks[index]), {
6669
+ var mergedContent = _object_spread$d(_object_spread_props$a(_object_spread$d({}, chunks[index]), {
6592
6670
  text: "".concat(chunks[index].text).concat(content.text)
6593
6671
  }), !chunks[index].id && content.id ? {
6594
6672
  id: content.id
@@ -6611,7 +6689,7 @@ function resolveMessageAppendContext(options) {
6611
6689
  var existingIndex = findLastTextChunkIndexById(chunks, content.id);
6612
6690
  if (existingIndex > -1) {
6613
6691
  var existing = chunks[existingIndex];
6614
- var merged = _object_spread_props$9(_object_spread$c({}, existing), {
6692
+ var merged = _object_spread_props$a(_object_spread$d({}, existing), {
6615
6693
  text: "".concat(existing.text).concat(content.text)
6616
6694
  });
6617
6695
  var nextChunks = _to_consumable_array$b(chunks);
@@ -6620,7 +6698,7 @@ function resolveMessageAppendContext(options) {
6620
6698
  return;
6621
6699
  }
6622
6700
  } else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
6623
- var mergedLastContent = _object_spread_props$9(_object_spread$c({}, lastContent), {
6701
+ var mergedLastContent = _object_spread_props$a(_object_spread$d({}, lastContent), {
6624
6702
  text: "".concat(lastContent.text).concat(content.text)
6625
6703
  });
6626
6704
  aiMessage.content = _to_consumable_array$b(chunks.slice(0, chunks.length - 1)).concat([
@@ -6629,7 +6707,7 @@ function resolveMessageAppendContext(options) {
6629
6707
  return;
6630
6708
  }
6631
6709
  var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
6632
- var appended = _object_spread_props$9(_object_spread$c({}, content), {
6710
+ var appended = _object_spread_props$a(_object_spread$d({}, content), {
6633
6711
  text: separator + content.text
6634
6712
  });
6635
6713
  aiMessage.content = _to_consumable_array$b(chunks).concat([
@@ -6653,7 +6731,7 @@ function resolveMessageAppendContext(options) {
6653
6731
  aiMessage.content = nextChunks1;
6654
6732
  }
6655
6733
  function appendMessagePlainText(accumulator, incoming, context) {
6656
- var resolvedContext = _object_spread$c({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
6734
+ var resolvedContext = _object_spread$d({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
6657
6735
  var nextText = filterText(incoming);
6658
6736
  if (!nextText) {
6659
6737
  return accumulator !== null && accumulator !== void 0 ? accumulator : "";
@@ -6698,7 +6776,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
6698
6776
  return;
6699
6777
  }
6700
6778
  textIndexById.set(item.id, merged.length);
6701
- merged.push(_object_spread$c({}, item));
6779
+ merged.push(_object_spread$d({}, item));
6702
6780
  return;
6703
6781
  }
6704
6782
  var lastItem = merged[merged.length - 1];
@@ -6706,7 +6784,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
6706
6784
  merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
6707
6785
  return;
6708
6786
  }
6709
- merged.push(_object_spread$c({}, item));
6787
+ merged.push(_object_spread$d({}, item));
6710
6788
  });
6711
6789
  return merged.length ? merged : null;
6712
6790
  }
@@ -6721,7 +6799,7 @@ function stringifyMessageContent(content) {
6721
6799
  if (isFileActivityContent(item) || isResourceCardContent(item)) return;
6722
6800
  var itemContext = inferMessageAppendContext(item);
6723
6801
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
6724
- result = appendMessagePlainText(result, stringifySingle(item), _object_spread$c({}, itemContext, joinHint ? {
6802
+ result = appendMessagePlainText(result, stringifySingle(item), _object_spread$d({}, itemContext, joinHint ? {
6725
6803
  joinHint: joinHint
6726
6804
  } : {}));
6727
6805
  previousContext = itemContext;
@@ -6744,7 +6822,7 @@ function filterMessageText(content) {
6744
6822
  }
6745
6823
  var itemContext = inferMessageAppendContext(item);
6746
6824
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
6747
- result = appendMessagePlainText(result, nextText, _object_spread$c({}, itemContext, joinHint ? {
6825
+ result = appendMessagePlainText(result, nextText, _object_spread$d({}, itemContext, joinHint ? {
6748
6826
  joinHint: joinHint
6749
6827
  } : {}));
6750
6828
  previousContext = itemContext;
@@ -7101,6 +7179,34 @@ var MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
7101
7179
  xpertId: z$1.string().uuid()
7102
7180
  }).strict();
7103
7181
 
7182
+ /** Credential-free tuning snapshot. Output aliases are canonicalized to max_tokens at issuance. */ var modelExecutionParametersSchema = z$1.object({
7183
+ temperature: z$1.number().finite().optional(),
7184
+ top_p: z$1.number().finite().optional(),
7185
+ top_k: z$1.number().int().nonnegative().optional(),
7186
+ presence_penalty: z$1.number().finite().optional(),
7187
+ frequency_penalty: z$1.number().finite().optional(),
7188
+ repetition_penalty: z$1.number().finite().optional(),
7189
+ seed: z$1.number().int().nonnegative().optional(),
7190
+ max_tokens: z$1.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),
7191
+ enable_thinking: z$1.boolean().optional(),
7192
+ thinking_budget: z$1.number().int().nonnegative().optional(),
7193
+ reasoning_effort: z$1.enum([
7194
+ "none",
7195
+ "minimal",
7196
+ "low",
7197
+ "medium",
7198
+ "high",
7199
+ "xhigh",
7200
+ "max"
7201
+ ]).optional(),
7202
+ thinking: z$1.enum([
7203
+ "enabled",
7204
+ "disabled",
7205
+ "adaptive"
7206
+ ]).optional(),
7207
+ budget_tokens: z$1.number().int().nonnegative().optional()
7208
+ }).strict();
7209
+
7104
7210
  /**
7105
7211
  * Running means accepted; actual work start requires an observation.
7106
7212
  * Only succeeded, failed and cancelled are terminal. Unknown must be reconciled without replay.
@@ -7412,7 +7518,7 @@ var projectPipelineEdgeSchema = z$1.object({
7412
7518
  outcome: projectPipelineKeySchema.optional()
7413
7519
  }).strict();
7414
7520
 
7415
- function _define_property$b(obj, key, value) {
7521
+ function _define_property$c(obj, key, value) {
7416
7522
  if (key in obj) {
7417
7523
  Object.defineProperty(obj, key, {
7418
7524
  value: value,
@@ -7425,7 +7531,7 @@ function _define_property$b(obj, key, value) {
7425
7531
  }
7426
7532
  return obj;
7427
7533
  }
7428
- function _object_spread$b(target) {
7534
+ function _object_spread$c(target) {
7429
7535
  for(var i = 1; i < arguments.length; i++){
7430
7536
  var source = arguments[i] != null ? arguments[i] : {};
7431
7537
  var ownKeys = Object.keys(source);
@@ -7435,12 +7541,12 @@ function _object_spread$b(target) {
7435
7541
  }));
7436
7542
  }
7437
7543
  ownKeys.forEach(function(key) {
7438
- _define_property$b(target, key, source[key]);
7544
+ _define_property$c(target, key, source[key]);
7439
7545
  });
7440
7546
  }
7441
7547
  return target;
7442
7548
  }
7443
- function ownKeys$8(object, enumerableOnly) {
7549
+ function ownKeys$9(object, enumerableOnly) {
7444
7550
  var keys = Object.keys(object);
7445
7551
  if (Object.getOwnPropertySymbols) {
7446
7552
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7448,18 +7554,18 @@ function ownKeys$8(object, enumerableOnly) {
7448
7554
  }
7449
7555
  return keys;
7450
7556
  }
7451
- function _object_spread_props$8(target, source) {
7557
+ function _object_spread_props$9(target, source) {
7452
7558
  source = source != null ? source : {};
7453
7559
  if (Object.getOwnPropertyDescriptors) {
7454
7560
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7455
7561
  } else {
7456
- ownKeys$8(Object(source)).forEach(function(key) {
7562
+ ownKeys$9(Object(source)).forEach(function(key) {
7457
7563
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7458
7564
  });
7459
7565
  }
7460
7566
  return target;
7461
7567
  }
7462
- var base = {
7568
+ var base$1 = {
7463
7569
  key: projectPipelineKeySchema,
7464
7570
  label: z$1.string().min(1).max(240).optional(),
7465
7571
  stageKey: projectPipelineKeySchema,
@@ -7468,7 +7574,7 @@ var base = {
7468
7574
  };
7469
7575
  var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
7470
7576
  /** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = z$1.discriminatedUnion("kind", [
7471
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7577
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7472
7578
  kind: z$1.literal("work"),
7473
7579
  laneKey: projectPipelineKeySchema,
7474
7580
  operationRef: projectPipelineRefSchema,
@@ -7477,23 +7583,23 @@ var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
7477
7583
  resourceResolverRef: projectPipelineRefSchema.optional(),
7478
7584
  outputSchemaRef: projectPipelineRefSchema.optional()
7479
7585
  })).strict(),
7480
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7586
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7481
7587
  kind: z$1.literal("fork")
7482
7588
  })).strict(),
7483
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7589
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7484
7590
  kind: z$1.literal("join"),
7485
7591
  join: z$1.object({
7486
7592
  mode: z$1.literal("all_selected"),
7487
7593
  accept: z$1.literal("completed")
7488
7594
  }).strict()
7489
7595
  })).strict(),
7490
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7596
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7491
7597
  kind: z$1.literal("router"),
7492
7598
  policyRef: projectPipelineRefSchema,
7493
7599
  outcomes: outcomes,
7494
7600
  unmatched: z$1.literal("block")
7495
7601
  })).strict(),
7496
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7602
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7497
7603
  kind: z$1.literal("human_gate"),
7498
7604
  laneKey: projectPipelineKeySchema,
7499
7605
  policyRef: projectPipelineRefSchema,
@@ -7501,12 +7607,12 @@ var outcomes = z$1.array(projectPipelineKeySchema).min(2).max(32);
7501
7607
  outcomes: outcomes,
7502
7608
  outcomeLabels: z$1.record(projectPipelineKeySchema, z$1.string().min(1).max(120)).optional()
7503
7609
  })).strict(),
7504
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7610
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7505
7611
  kind: z$1.literal("external_wait"),
7506
7612
  laneKey: projectPipelineKeySchema,
7507
7613
  subscriptionRef: projectPipelineRefSchema
7508
7614
  })).strict(),
7509
- z$1.object(_object_spread_props$8(_object_spread$b({}, base), {
7615
+ z$1.object(_object_spread_props$9(_object_spread$c({}, base$1), {
7510
7616
  kind: z$1.literal("terminal"),
7511
7617
  outcome: projectPipelineKeySchema,
7512
7618
  disposition: z$1.enum([
@@ -8155,7 +8261,7 @@ function isProjectPipelineApplicable(definition, project) {
8155
8261
 
8156
8262
  // Invariants: definitions describe versioned topology and explicit execution authority.
8157
8263
  // Business meaning stays behind provider references; labels and icons never drive execution.
8158
- function _define_property$a(obj, key, value) {
8264
+ function _define_property$b(obj, key, value) {
8159
8265
  if (key in obj) {
8160
8266
  Object.defineProperty(obj, key, {
8161
8267
  value: value,
@@ -8168,7 +8274,7 @@ function _define_property$a(obj, key, value) {
8168
8274
  }
8169
8275
  return obj;
8170
8276
  }
8171
- function _object_spread$a(target) {
8277
+ function _object_spread$b(target) {
8172
8278
  for(var i = 1; i < arguments.length; i++){
8173
8279
  var source = arguments[i] != null ? arguments[i] : {};
8174
8280
  var ownKeys = Object.keys(source);
@@ -8178,12 +8284,12 @@ function _object_spread$a(target) {
8178
8284
  }));
8179
8285
  }
8180
8286
  ownKeys.forEach(function(key) {
8181
- _define_property$a(target, key, source[key]);
8287
+ _define_property$b(target, key, source[key]);
8182
8288
  });
8183
8289
  }
8184
8290
  return target;
8185
8291
  }
8186
- function ownKeys$7(object, enumerableOnly) {
8292
+ function ownKeys$8(object, enumerableOnly) {
8187
8293
  var keys = Object.keys(object);
8188
8294
  if (Object.getOwnPropertySymbols) {
8189
8295
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8191,12 +8297,12 @@ function ownKeys$7(object, enumerableOnly) {
8191
8297
  }
8192
8298
  return keys;
8193
8299
  }
8194
- function _object_spread_props$7(target, source) {
8300
+ function _object_spread_props$8(target, source) {
8195
8301
  source = source != null ? source : {};
8196
8302
  if (Object.getOwnPropertyDescriptors) {
8197
8303
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8198
8304
  } else {
8199
- ownKeys$7(Object(source)).forEach(function(key) {
8305
+ ownKeys$8(Object(source)).forEach(function(key) {
8200
8306
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8201
8307
  });
8202
8308
  }
@@ -8228,7 +8334,7 @@ var common = {
8228
8334
  };
8229
8335
  // A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
8230
8336
  var projectPipelineDefinitionShapeSchema = z$1.discriminatedUnion("executionAuthority", [
8231
- z$1.object(_object_spread_props$7(_object_spread$a({}, common), {
8337
+ z$1.object(_object_spread_props$8(_object_spread$b({}, common), {
8232
8338
  executionAuthority: z$1.literal("provider"),
8233
8339
  providerRef: projectPipelineRefSchema,
8234
8340
  topology: z$1.object({
@@ -8237,7 +8343,7 @@ var projectPipelineDefinitionShapeSchema = z$1.discriminatedUnion("executionAuth
8237
8343
  }).strict(),
8238
8344
  actionRefs: z$1.array(projectPipelineRefSchema).max(100).optional()
8239
8345
  })).strict(),
8240
- z$1.object(_object_spread_props$7(_object_spread$a({}, common), {
8346
+ z$1.object(_object_spread_props$8(_object_spread$b({}, common), {
8241
8347
  executionAuthority: z$1.literal("platform"),
8242
8348
  topology: z$1.object({
8243
8349
  source: z$1.literal("definition")
@@ -8556,7 +8662,7 @@ var projectPipelineBindingSchema = z$1.object({
8556
8662
  }
8557
8663
  });
8558
8664
 
8559
- function _define_property$9(obj, key, value) {
8665
+ function _define_property$a(obj, key, value) {
8560
8666
  if (key in obj) {
8561
8667
  Object.defineProperty(obj, key, {
8562
8668
  value: value,
@@ -8569,7 +8675,7 @@ function _define_property$9(obj, key, value) {
8569
8675
  }
8570
8676
  return obj;
8571
8677
  }
8572
- function _object_spread$9(target) {
8678
+ function _object_spread$a(target) {
8573
8679
  for(var i = 1; i < arguments.length; i++){
8574
8680
  var source = arguments[i] != null ? arguments[i] : {};
8575
8681
  var ownKeys = Object.keys(source);
@@ -8579,12 +8685,12 @@ function _object_spread$9(target) {
8579
8685
  }));
8580
8686
  }
8581
8687
  ownKeys.forEach(function(key) {
8582
- _define_property$9(target, key, source[key]);
8688
+ _define_property$a(target, key, source[key]);
8583
8689
  });
8584
8690
  }
8585
8691
  return target;
8586
8692
  }
8587
- function ownKeys$6(object, enumerableOnly) {
8693
+ function ownKeys$7(object, enumerableOnly) {
8588
8694
  var keys = Object.keys(object);
8589
8695
  if (Object.getOwnPropertySymbols) {
8590
8696
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8592,12 +8698,12 @@ function ownKeys$6(object, enumerableOnly) {
8592
8698
  }
8593
8699
  return keys;
8594
8700
  }
8595
- function _object_spread_props$6(target, source) {
8701
+ function _object_spread_props$7(target, source) {
8596
8702
  source = source != null ? source : {};
8597
8703
  if (Object.getOwnPropertyDescriptors) {
8598
8704
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8599
8705
  } else {
8600
- ownKeys$6(Object(source)).forEach(function(key) {
8706
+ ownKeys$7(Object(source)).forEach(function(key) {
8601
8707
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8602
8708
  });
8603
8709
  }
@@ -8613,13 +8719,13 @@ var definitionRef = z$1.object({
8613
8719
  templateRef: projectPipelineRefSchema,
8614
8720
  digest: z$1.string().regex(/^[a-f0-9]{64}$/)
8615
8721
  }).strict();
8616
- var projectPipelineProjectBindingSchema = z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8722
+ var projectPipelineProjectBindingSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8617
8723
  definition: definitionRef,
8618
8724
  revision: z$1.number().int().positive(),
8619
8725
  configuration: projectPipelineBindingSchema
8620
8726
  })).strict();
8621
8727
  var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority", [
8622
- z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8728
+ z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8623
8729
  executionAuthority: z$1.literal("provider"),
8624
8730
  providerRef: projectPipelineRefSchema,
8625
8731
  sourceKey: z$1.string().min(1).max(500),
@@ -8630,7 +8736,7 @@ var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority",
8630
8736
  }).strict(),
8631
8737
  revision: z$1.number().int().nonnegative()
8632
8738
  })).strict(),
8633
- z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8739
+ z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8634
8740
  executionAuthority: z$1.literal("platform"),
8635
8741
  bindingId: z$1.string().uuid(),
8636
8742
  sourceKey: z$1.string().min(1).max(500),
@@ -8642,7 +8748,7 @@ var projectPipelineInstanceSchema = z$1.discriminatedUnion("executionAuthority",
8642
8748
  revision: z$1.number().int().nonnegative()
8643
8749
  })).strict()
8644
8750
  ]);
8645
- var projectPipelineRunSchema = z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8751
+ var projectPipelineRunSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8646
8752
  instanceId: z$1.string().uuid(),
8647
8753
  triggerKey: z$1.string().min(1).max(500),
8648
8754
  definition: definitionRef,
@@ -8714,7 +8820,7 @@ var projectPipelineWorkContextSchema = z$1.object({
8714
8820
  inputDigest: z$1.string().regex(/^[a-f0-9]{64}$/),
8715
8821
  generation: z$1.number().int().positive()
8716
8822
  }).strict();
8717
- var projectPipelineRoundSchema = z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8823
+ var projectPipelineRoundSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8718
8824
  runId: z$1.string().uuid(),
8719
8825
  sequence: z$1.number().int().positive(),
8720
8826
  generation: z$1.number().int().positive(),
@@ -8730,7 +8836,7 @@ var projectPipelineRoundSchema = z$1.object(_object_spread_props$6(_object_sprea
8730
8836
  subjectVersionSet: z$1.array(projectPipelineSubjectVersionSchema).min(1).max(100),
8731
8837
  supersedes: z$1.string().uuid().nullable()
8732
8838
  })).strict();
8733
- var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
8839
+ var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$7(_object_spread$a({}, scopedIdentity), {
8734
8840
  roundId: z$1.string().uuid(),
8735
8841
  nodeKey: projectPipelineKeySchema,
8736
8842
  /** Stable source identity; never a list index. */ expansionKey: z$1.string().min(1).max(500),
@@ -8742,7 +8848,7 @@ var projectPipelineNodeInstanceSchema = z$1.object(_object_spread_props$6(_objec
8742
8848
  revision: z$1.number().int().nonnegative()
8743
8849
  })).strict();
8744
8850
 
8745
- function _define_property$8(obj, key, value) {
8851
+ function _define_property$9(obj, key, value) {
8746
8852
  if (key in obj) {
8747
8853
  Object.defineProperty(obj, key, {
8748
8854
  value: value,
@@ -8755,7 +8861,7 @@ function _define_property$8(obj, key, value) {
8755
8861
  }
8756
8862
  return obj;
8757
8863
  }
8758
- function _object_spread$8(target) {
8864
+ function _object_spread$9(target) {
8759
8865
  for(var i = 1; i < arguments.length; i++){
8760
8866
  var source = arguments[i] != null ? arguments[i] : {};
8761
8867
  var ownKeys = Object.keys(source);
@@ -8765,12 +8871,12 @@ function _object_spread$8(target) {
8765
8871
  }));
8766
8872
  }
8767
8873
  ownKeys.forEach(function(key) {
8768
- _define_property$8(target, key, source[key]);
8874
+ _define_property$9(target, key, source[key]);
8769
8875
  });
8770
8876
  }
8771
8877
  return target;
8772
8878
  }
8773
- function ownKeys$5(object, enumerableOnly) {
8879
+ function ownKeys$6(object, enumerableOnly) {
8774
8880
  var keys = Object.keys(object);
8775
8881
  if (Object.getOwnPropertySymbols) {
8776
8882
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8778,12 +8884,12 @@ function ownKeys$5(object, enumerableOnly) {
8778
8884
  }
8779
8885
  return keys;
8780
8886
  }
8781
- function _object_spread_props$5(target, source) {
8887
+ function _object_spread_props$6(target, source) {
8782
8888
  source = source != null ? source : {};
8783
8889
  if (Object.getOwnPropertyDescriptors) {
8784
8890
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8785
8891
  } else {
8786
- ownKeys$5(Object(source)).forEach(function(key) {
8892
+ ownKeys$6(Object(source)).forEach(function(key) {
8787
8893
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8788
8894
  });
8789
8895
  }
@@ -8800,17 +8906,17 @@ var projectPipelinePortDescriptorSchema = z$1.object({
8800
8906
  ])
8801
8907
  }).strict();
8802
8908
  /** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = z$1.discriminatedUnion("kind", [
8803
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8909
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8804
8910
  kind: z$1.literal("schema")
8805
8911
  })).strict(),
8806
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8912
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8807
8913
  kind: z$1.literal("resource")
8808
8914
  })).strict(),
8809
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8915
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8810
8916
  kind: z$1.literal("subject"),
8811
8917
  outputSchemaRef: projectPipelineRefSchema
8812
8918
  })).strict(),
8813
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8919
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8814
8920
  kind: z$1.literal("operation"),
8815
8921
  effects: z$1.enum([
8816
8922
  "read_only",
@@ -8829,32 +8935,32 @@ var projectPipelinePortDescriptorSchema = z$1.object({
8829
8935
  inputs: z$1.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
8830
8936
  outputs: z$1.record(projectPipelineKeySchema, projectPipelineRefSchema)
8831
8937
  })).strict(),
8832
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8938
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8833
8939
  kind: z$1.literal("completion")
8834
8940
  })).strict(),
8835
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8941
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8836
8942
  kind: z$1.literal("policy"),
8837
8943
  outcomes: z$1.array(projectPipelineKeySchema).min(1).max(32)
8838
8944
  })).strict(),
8839
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8945
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8840
8946
  kind: z$1.literal("projection")
8841
8947
  })).strict(),
8842
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8948
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8843
8949
  kind: z$1.literal("presentation")
8844
8950
  })).strict(),
8845
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8951
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8846
8952
  kind: z$1.literal("action")
8847
8953
  })).strict(),
8848
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8954
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8849
8955
  kind: z$1.literal("metric")
8850
8956
  })).strict(),
8851
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8957
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8852
8958
  kind: z$1.literal("dimension")
8853
8959
  })).strict(),
8854
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8960
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8855
8961
  kind: z$1.literal("trigger")
8856
8962
  })).strict(),
8857
- z$1.object(_object_spread_props$5(_object_spread$8({}, reference), {
8963
+ z$1.object(_object_spread_props$6(_object_spread$9({}, reference), {
8858
8964
  kind: z$1.literal("subscription"),
8859
8965
  outputs: z$1.record(projectPipelineKeySchema, projectPipelineRefSchema)
8860
8966
  })).strict()
@@ -9621,6 +9727,162 @@ var tombstone = z$1.object({
9621
9727
  ]);
9622
9728
  });
9623
9729
 
9730
+ function _define_property$8(obj, key, value) {
9731
+ if (key in obj) {
9732
+ Object.defineProperty(obj, key, {
9733
+ value: value,
9734
+ enumerable: true,
9735
+ configurable: true,
9736
+ writable: true
9737
+ });
9738
+ } else {
9739
+ obj[key] = value;
9740
+ }
9741
+ return obj;
9742
+ }
9743
+ function _object_spread$8(target) {
9744
+ for(var i = 1; i < arguments.length; i++){
9745
+ var source = arguments[i] != null ? arguments[i] : {};
9746
+ var ownKeys = Object.keys(source);
9747
+ if (typeof Object.getOwnPropertySymbols === "function") {
9748
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
9749
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
9750
+ }));
9751
+ }
9752
+ ownKeys.forEach(function(key) {
9753
+ _define_property$8(target, key, source[key]);
9754
+ });
9755
+ }
9756
+ return target;
9757
+ }
9758
+ function ownKeys$5(object, enumerableOnly) {
9759
+ var keys = Object.keys(object);
9760
+ if (Object.getOwnPropertySymbols) {
9761
+ var symbols = Object.getOwnPropertySymbols(object);
9762
+ keys.push.apply(keys, symbols);
9763
+ }
9764
+ return keys;
9765
+ }
9766
+ function _object_spread_props$5(target, source) {
9767
+ source = source != null ? source : {};
9768
+ if (Object.getOwnPropertyDescriptors) {
9769
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9770
+ } else {
9771
+ ownKeys$5(Object(source)).forEach(function(key) {
9772
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9773
+ });
9774
+ }
9775
+ return target;
9776
+ }
9777
+ var subject = z$1.discriminatedUnion("kind", [
9778
+ z$1.object({
9779
+ kind: z$1.literal("execution"),
9780
+ id: z$1.string().min(1)
9781
+ }).strict(),
9782
+ z$1.object({
9783
+ kind: z$1.literal("invocation"),
9784
+ id: z$1.string().min(1)
9785
+ }).strict()
9786
+ ]);
9787
+ var base = {
9788
+ version: z$1.literal(1),
9789
+ observedAt: z$1.string().datetime()
9790
+ };
9791
+ /** Host-assigned attempt identity. A new host boot or execution never inherits an old target. */ var executionRuntimeTargetSchema = z$1.discriminatedUnion("kind", [
9792
+ z$1.object({
9793
+ version: z$1.literal(1),
9794
+ kind: z$1.literal("host"),
9795
+ generation: z$1.string().uuid(),
9796
+ hostId: z$1.string().uuid()
9797
+ }).strict(),
9798
+ z$1.object({
9799
+ version: z$1.literal(1),
9800
+ kind: z$1.literal("provider"),
9801
+ generation: z$1.string().uuid()
9802
+ }).strict()
9803
+ ]);
9804
+ function executionRuntimeTargetsEqual(left, right) {
9805
+ if (!left || !right) return left === right;
9806
+ return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
9807
+ }
9808
+ /** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = z$1.discriminatedUnion("source", [
9809
+ z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
9810
+ source: z$1.literal("unavailable"),
9811
+ subject: subject,
9812
+ state: z$1.literal("unknown"),
9813
+ reason: z$1.enum([
9814
+ "unregistered",
9815
+ "unconfirmed",
9816
+ "unsupported"
9817
+ ])
9818
+ })).strict(),
9819
+ z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
9820
+ source: z$1.literal("platform"),
9821
+ subject: subject,
9822
+ scope: z$1.literal("owned_subtree"),
9823
+ state: z$1.enum([
9824
+ "running",
9825
+ "pausing",
9826
+ "paused",
9827
+ "terminating",
9828
+ "settled"
9829
+ ]),
9830
+ desired: z$1.enum([
9831
+ "running",
9832
+ "paused",
9833
+ "terminated"
9834
+ ]),
9835
+ taskId: z$1.string().uuid(),
9836
+ rootId: z$1.string().uuid(),
9837
+ revision: z$1.number().int().positive(),
9838
+ executionId: z$1.string().uuid(),
9839
+ threadId: z$1.string().min(1)
9840
+ })).strict(),
9841
+ z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
9842
+ source: z$1.literal("provider"),
9843
+ subject: z$1.object({
9844
+ kind: z$1.literal("invocation"),
9845
+ id: z$1.string().min(1)
9846
+ }).strict(),
9847
+ scope: z$1.literal("operation"),
9848
+ state: z$1.literal("settled"),
9849
+ outcome: z$1.enum([
9850
+ "succeeded",
9851
+ "failed",
9852
+ "cancelled"
9853
+ ]),
9854
+ sessionId: z$1.string().min(1),
9855
+ runId: z$1.string().min(1),
9856
+ receiptKey: z$1.string().min(1).max(500),
9857
+ target: executionRuntimeTargetSchema.optional()
9858
+ })).strict(),
9859
+ z$1.object(_object_spread_props$5(_object_spread$8({}, base), {
9860
+ source: z$1.literal("host_admission"),
9861
+ subject: z$1.object({
9862
+ kind: z$1.literal("invocation"),
9863
+ id: z$1.string().min(1)
9864
+ }).strict(),
9865
+ scope: z$1.literal("operation"),
9866
+ state: z$1.literal("settled"),
9867
+ outcome: z$1.enum([
9868
+ "failed",
9869
+ "cancelled"
9870
+ ]),
9871
+ reason: z$1.literal("not_started")
9872
+ })).strict()
9873
+ ]);
9874
+ function unknownExecutionControl(subject) {
9875
+ var reason = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "unconfirmed";
9876
+ return {
9877
+ version: 1,
9878
+ source: "unavailable",
9879
+ subject: subject,
9880
+ state: "unknown",
9881
+ reason: reason,
9882
+ observedAt: new Date().toISOString()
9883
+ };
9884
+ }
9885
+
9624
9886
  function _define_property$7(obj, key, value) {
9625
9887
  if (key in obj) {
9626
9888
  Object.defineProperty(obj, key, {
@@ -9721,6 +9983,7 @@ var projectPipelineRuntimeExecutionSchema = z$1.object({
9721
9983
  status: agentInvocationStatusSchema
9722
9984
  }).strict();
9723
9985
  var receipt = {
9986
+ control: executionControlEvidenceSchema.optional(),
9724
9987
  receiptKey: z$1.string().min(1).max(500),
9725
9988
  execution: z$1.discriminatedUnion("kind", [
9726
9989
  projectPipelineAssistantExecutionSchema,
@@ -9745,6 +10008,7 @@ var projectPipelineOperationReceiptSchema = z$1.discriminatedUnion("status", [
9745
10008
  status: z$1.literal("cancelled")
9746
10009
  })).strict(),
9747
10010
  z$1.object({
10011
+ control: receipt.control,
9748
10012
  receiptKey: receipt.receiptKey.optional(),
9749
10013
  execution: receipt.execution,
9750
10014
  status: z$1.literal("unknown")
@@ -12506,6 +12770,234 @@ var templateUpgradeActionSchema = z.object({
12506
12770
  operationId: z.string().uuid()
12507
12771
  }).strict();
12508
12772
 
12773
+ var executionObservationStatusSchema = z$1.enum([
12774
+ "running",
12775
+ "success",
12776
+ "error",
12777
+ "pending",
12778
+ "timeout",
12779
+ "interrupted",
12780
+ "unknown"
12781
+ ]);
12782
+ var executionObservationFilterSchema = z$1.object({
12783
+ from: z$1.string().datetime({
12784
+ offset: true
12785
+ }).describe("Inclusive UTC/offset timestamp."),
12786
+ to: z$1.string().datetime({
12787
+ offset: true
12788
+ }).describe("Exclusive timestamp, at most 31 days after from."),
12789
+ timeZone: z$1.string().max(80).default("UTC").refine(function(value) {
12790
+ try {
12791
+ new Intl.DateTimeFormat("en", {
12792
+ timeZone: value
12793
+ });
12794
+ return true;
12795
+ } catch (e) {
12796
+ return false;
12797
+ }
12798
+ }, "Use an IANA time zone"),
12799
+ countingUnit: z$1.enum([
12800
+ "root_execution",
12801
+ "assistant_invocation"
12802
+ ]).default("root_execution"),
12803
+ assistantId: z$1.string().uuid().optional(),
12804
+ conversationId: z$1.string().uuid().optional().describe("Exact persisted conversation ID; includes all matching threads."),
12805
+ threadId: z$1.string().min(1).max(100).optional().describe("Exact persisted thread ID."),
12806
+ unknownAssistantOnly: z$1.boolean().optional().describe("Only records with no persisted Assistant identity."),
12807
+ workspaceId: z$1.string().uuid().optional(),
12808
+ recordedById: z$1.string().uuid().optional().describe("Record creator, not necessarily the end user or billed actor."),
12809
+ source: z$1.string().trim().min(1).max(80).optional(),
12810
+ statuses: z$1.array(executionObservationStatusSchema).max(7).optional(),
12811
+ search: z$1.string().trim().max(80).optional(),
12812
+ asOf: z$1.string().datetime({
12813
+ offset: true
12814
+ }).optional().describe("Interval clipping boundary; this does not freeze mutable database records.")
12815
+ }).strict();
12816
+ var executionObservationQuerySchema = executionObservationFilterSchema.extend({
12817
+ page: z$1.number().int().min(1).max(10000).default(1),
12818
+ pageSize: z$1.number().int().min(1).max(100).default(25)
12819
+ }).strict().superRefine(function(input, context) {
12820
+ var duration = Date.parse(input.to) - Date.parse(input.from);
12821
+ if (duration <= 0 || duration > 31 * 86400000) context.addIssue({
12822
+ code: "custom",
12823
+ path: [
12824
+ "to"
12825
+ ],
12826
+ message: "Choose a positive range of at most 31 days."
12827
+ });
12828
+ });
12829
+ var executionObservationRecordSchema = z$1.object({
12830
+ id: z$1.string(),
12831
+ assistantId: z$1.string().nullable(),
12832
+ assistantName: z$1.string().nullable(),
12833
+ workspaceId: z$1.string().nullable(),
12834
+ workspaceName: z$1.string().nullable(),
12835
+ conversationId: z$1.string().nullable(),
12836
+ threadId: z$1.string().nullable(),
12837
+ parentId: z$1.string().nullable(),
12838
+ parentThreadId: z$1.string().nullable(),
12839
+ forkedFromMessageId: z$1.string().nullable(),
12840
+ title: z$1.string().nullable(),
12841
+ source: z$1.string().nullable(),
12842
+ recordedById: z$1.string().nullable(),
12843
+ status: executionObservationStatusSchema,
12844
+ createdAt: z$1.string(),
12845
+ completedAt: z$1.string().nullable(),
12846
+ elapsedTimeMs: z$1.number().nullable(),
12847
+ invocationKind: z$1.enum([
12848
+ "external_assistant",
12849
+ "sub_agent"
12850
+ ]).nullable(),
12851
+ endKnown: z$1.boolean(),
12852
+ hasError: z$1.boolean(),
12853
+ timingBasis: z$1.literal("record_lifecycle"),
12854
+ phasesAvailable: z$1.literal(false)
12855
+ });
12856
+ var executionObservationSegmentSchema = z$1.object({
12857
+ start: z$1.string(),
12858
+ end: z$1.string(),
12859
+ count: z$1.number().int().positive()
12860
+ });
12861
+ var executionObservationSummarySchema = z$1.object({
12862
+ total: z$1.number(),
12863
+ assistants: z$1.number(),
12864
+ conversations: z$1.number(),
12865
+ statuses: z$1.object({
12866
+ running: z$1.number(),
12867
+ success: z$1.number(),
12868
+ error: z$1.number(),
12869
+ pending: z$1.number(),
12870
+ timeout: z$1.number(),
12871
+ interrupted: z$1.number(),
12872
+ unknown: z$1.number()
12873
+ }),
12874
+ successRate: z$1.number().nullable(),
12875
+ p50ElapsedMs: z$1.number().nullable(),
12876
+ p95ElapsedMs: z$1.number().nullable(),
12877
+ durationSamples: z$1.number(),
12878
+ peakOverlap: z$1.number(),
12879
+ overlap: z$1.array(executionObservationSegmentSchema),
12880
+ knownIntervals: z$1.number(),
12881
+ unknownEnds: z$1.number(),
12882
+ timingBasis: z$1.literal("record_lifecycle"),
12883
+ phaseCoverage: z$1.literal("unavailable"),
12884
+ observedAt: z$1.string(),
12885
+ asOf: z$1.string(),
12886
+ usage: z$1.object({
12887
+ records: z$1.number(),
12888
+ totalTokens: z$1.number().nullable(),
12889
+ unpricedRecords: z$1.number(),
12890
+ currencies: z$1.array(z$1.object({
12891
+ currency: z$1.string(),
12892
+ amount: z$1.number()
12893
+ })),
12894
+ basis: z$1.literal("direct_execution_ledger"),
12895
+ coveredExecutions: z$1.number()
12896
+ })
12897
+ });
12898
+ /** Static avatar projection; animated appearance assets are unnecessary in dense rows. */ var executionObservationAvatarSchema = z$1.object({
12899
+ url: z$1.string().optional(),
12900
+ background: z$1.string().optional(),
12901
+ emoji: z$1.object({
12902
+ id: z$1.string(),
12903
+ unified: z$1.string().optional()
12904
+ }).optional()
12905
+ });
12906
+ var executionObservationAssistantSchema = z$1.object({
12907
+ id: z$1.string().nullable(),
12908
+ name: z$1.string().nullable(),
12909
+ workspaceId: z$1.string().nullable(),
12910
+ workspaceName: z$1.string().nullable(),
12911
+ avatar: executionObservationAvatarSchema.nullable(),
12912
+ total: z$1.number(),
12913
+ running: z$1.number(),
12914
+ pending: z$1.number(),
12915
+ interrupted: z$1.number(),
12916
+ failed: z$1.number(),
12917
+ failures: z$1.array(z$1.object({
12918
+ id: z$1.string(),
12919
+ completedAt: z$1.string()
12920
+ })).max(50),
12921
+ failureMarkersTruncated: z$1.boolean(),
12922
+ overlap: z$1.array(executionObservationSegmentSchema)
12923
+ });
12924
+ var executionObservationOverviewSchema = z$1.object({
12925
+ query: executionObservationQuerySchema,
12926
+ summary: executionObservationSummarySchema.omit({
12927
+ usage: true
12928
+ }),
12929
+ assistants: z$1.array(executionObservationAssistantSchema),
12930
+ totalAssistants: z$1.number(),
12931
+ page: z$1.number(),
12932
+ pageSize: z$1.number()
12933
+ });
12934
+ var executionObservationListSchema = z$1.object({
12935
+ items: z$1.array(executionObservationRecordSchema),
12936
+ total: z$1.number(),
12937
+ page: z$1.number(),
12938
+ pageSize: z$1.number(),
12939
+ asOf: z$1.string(),
12940
+ observedAt: z$1.string()
12941
+ });
12942
+ var executionObservationWorkspacesSchema = z$1.object({
12943
+ items: z$1.array(z$1.object({
12944
+ id: z$1.string(),
12945
+ name: z$1.string()
12946
+ })),
12947
+ hasMore: z$1.boolean()
12948
+ });
12949
+ var executionObservationDetailSchema = z$1.object({
12950
+ item: executionObservationRecordSchema,
12951
+ children: z$1.array(executionObservationRecordSchema),
12952
+ childTotal: z$1.number(),
12953
+ childPage: z$1.number(),
12954
+ usage: executionObservationSummarySchema.shape.usage,
12955
+ observedAt: z$1.string()
12956
+ });
12957
+ var executionObservationDetailQuerySchema = z$1.object({
12958
+ executionId: z$1.string().uuid(),
12959
+ childPage: z$1.number().int().min(1).max(10000).default(1)
12960
+ }).strict();
12961
+ var executionObservationCompareSchema = z$1.object({
12962
+ current: executionObservationQuerySchema,
12963
+ baseline: executionObservationQuerySchema
12964
+ }).strict();
12965
+ var executionObservationAnomalySchema = z$1.object({
12966
+ query: executionObservationQuerySchema,
12967
+ rule: z$1.enum([
12968
+ "failed",
12969
+ "long_running",
12970
+ "slow_completed"
12971
+ ]).default("failed"),
12972
+ thresholdMs: z$1.number().int().min(1000).max(31 * 86400000).default(300000),
12973
+ limit: z$1.number().int().min(1).max(100).default(20)
12974
+ }).strict();
12975
+ /** Complete conversation groups, paginated after aggregation so a group is never split. */ var executionObservationConversationSchema = z$1.object({
12976
+ key: z$1.string(),
12977
+ conversationId: z$1.string().nullable(),
12978
+ threadId: z$1.string().nullable(),
12979
+ executionId: z$1.string().nullable(),
12980
+ total: z$1.number(),
12981
+ threads: z$1.number(),
12982
+ branches: z$1.number(),
12983
+ childExecutions: z$1.number(),
12984
+ failed: z$1.number(),
12985
+ unknownEnds: z$1.number(),
12986
+ overlap: z$1.array(executionObservationSegmentSchema),
12987
+ failures: z$1.array(z$1.object({
12988
+ id: z$1.string(),
12989
+ completedAt: z$1.string()
12990
+ })).max(50)
12991
+ });
12992
+ var executionObservationConversationsSchema = z$1.object({
12993
+ items: z$1.array(executionObservationConversationSchema),
12994
+ total: z$1.number(),
12995
+ page: z$1.number(),
12996
+ pageSize: z$1.number(),
12997
+ asOf: z$1.string(),
12998
+ observedAt: z$1.string()
12999
+ });
13000
+
12509
13001
  var STATE_VARIABLE_HUMAN = "human";
12510
13002
 
12511
13003
  var PermissionsEnum;
@@ -12892,6 +13384,20 @@ var OrganizationProjectBudgetTypeEnum;
12892
13384
  OrganizationProjectBudgetTypeEnum["COST"] = "cost";
12893
13385
  })(OrganizationProjectBudgetTypeEnum || (OrganizationProjectBudgetTypeEnum = {}));
12894
13386
 
13387
+ /** Immutable authorization source; live access is rechecked on every delegated request. */ var clientSecretGrantSourceSchema = z.discriminatedUnion("kind", [
13388
+ z.object({
13389
+ kind: z.literal("assistant")
13390
+ }).strict(),
13391
+ z.object({
13392
+ kind: z.literal("project"),
13393
+ projectId: z.string().min(1)
13394
+ }).strict(),
13395
+ z.object({
13396
+ kind: z.literal("conversation"),
13397
+ conversationId: z.string().min(1),
13398
+ requesterXpertId: z.string().min(1)
13399
+ }).strict()
13400
+ ]);
12895
13401
  /**
12896
13402
  * Selects how an opaque client secret is authorized and how entityId is
12897
13403
  * interpreted. createdById alone does not distinguish
@@ -13815,4 +14321,117 @@ var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
13815
14321
 
13816
14322
  /** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
13817
14323
 
13818
- 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_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_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, 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, 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, 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 };
14324
+ var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
14325
+
14326
+ /** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
14327
+ var MCP_EXECUTION_CONTROL_METHOD = "xpert/tasks/control";
14328
+ /** Additive tools/list metadata for 2026, which removed top-level Tool.execution. */ var mcpExecutionToolDeclarationSchema = z$1.object({
14329
+ version: z$1.literal(1),
14330
+ taskSupport: z$1.enum([
14331
+ "required",
14332
+ "optional",
14333
+ "forbidden"
14334
+ ])
14335
+ });
14336
+ var mcpOperationIdentitySchema = z$1.object({
14337
+ version: z$1.literal(1),
14338
+ operationId: z$1.string().uuid(),
14339
+ generation: z$1.string().uuid(),
14340
+ inputHash: z$1.string().regex(/^[a-f0-9]{64}$/),
14341
+ toolName: z$1.string().min(1).max(191)
14342
+ }).strict();
14343
+ var mcpExecutionControlRequestSchema = mcpOperationIdentitySchema.extend({
14344
+ serverId: z$1.string().uuid(),
14345
+ action: z$1.enum([
14346
+ "inspect",
14347
+ "terminate"
14348
+ ])
14349
+ }).strict();
14350
+ var mcpExecutionReceiptSchema = z$1.object({
14351
+ version: z$1.literal(1),
14352
+ serverId: z$1.string().uuid(),
14353
+ operationId: z$1.string().uuid(),
14354
+ generation: z$1.string().uuid(),
14355
+ taskId: z$1.string().uuid().nullable(),
14356
+ state: z$1.enum([
14357
+ "pending",
14358
+ "settled",
14359
+ "unknown"
14360
+ ]),
14361
+ intent: z$1.enum([
14362
+ "running",
14363
+ "paused",
14364
+ "terminated"
14365
+ ]),
14366
+ revision: z$1.number().int().nonnegative(),
14367
+ handlerExited: z$1.boolean(),
14368
+ descendantsSettled: z$1.boolean()
14369
+ }).strict();
14370
+ var mcpExecutionCapabilitySchema = z$1.object({
14371
+ version: z$1.literal(1),
14372
+ serverId: z$1.string().uuid()
14373
+ }).strict();
14374
+
14375
+ /** Public presentation only. Every command revalidates permission and execution admission. */ var threadControlActionsSchema = z$1.object({
14376
+ canPause: z$1.boolean(),
14377
+ canResume: z$1.boolean(),
14378
+ canTerminate: z$1.boolean(),
14379
+ canSend: z$1.boolean(),
14380
+ canQueue: z$1.boolean(),
14381
+ canRetry: z$1.boolean(),
14382
+ canRespond: z$1.boolean()
14383
+ }).strict();
14384
+ var threadControlViewSchema = z$1.object({
14385
+ version: z$1.literal(1),
14386
+ threadId: z$1.string().min(1),
14387
+ runId: z$1.string().min(1).nullable(),
14388
+ revision: z$1.string().regex(/^[1-9][0-9]*$/),
14389
+ state: z$1.enum([
14390
+ "idle",
14391
+ "running",
14392
+ "pausing",
14393
+ "paused",
14394
+ "stopping",
14395
+ "settling",
14396
+ "input_required",
14397
+ "confirming",
14398
+ "completed",
14399
+ "stopped",
14400
+ "failed"
14401
+ ]),
14402
+ actions: threadControlActionsSchema,
14403
+ pauseId: z$1.string().optional()
14404
+ }).strict();
14405
+
14406
+ var taskStatusSchema = z.enum(MCP_TASK_STATUSES);
14407
+ var mcpTaskStartResultSchema = z.object({
14408
+ resultType: z.literal("task"),
14409
+ taskId: z.string().min(1),
14410
+ status: taskStatusSchema,
14411
+ statusMessage: z.string().optional(),
14412
+ createdAt: z.string(),
14413
+ lastUpdatedAt: z.string(),
14414
+ ttlMs: z.number().nonnegative().nullable(),
14415
+ pollIntervalMs: z.number().positive().optional(),
14416
+ progress: z.number().min(0).max(1).nullable().optional(),
14417
+ content: z.array(z.unknown()).optional()
14418
+ }).passthrough();
14419
+ var mcpTaskResultSchema = z.object({
14420
+ resultType: z.literal("complete"),
14421
+ taskId: z.string().min(1),
14422
+ status: taskStatusSchema,
14423
+ statusMessage: z.string().optional(),
14424
+ createdAt: z.string(),
14425
+ lastUpdatedAt: z.string(),
14426
+ ttlMs: z.number().nonnegative().nullable(),
14427
+ pollIntervalMs: z.number().positive().optional(),
14428
+ progress: z.number().min(0).max(1).nullable().optional(),
14429
+ inputRequests: z.unknown().optional(),
14430
+ result: z.unknown().optional(),
14431
+ error: z.unknown().optional()
14432
+ }).passthrough();
14433
+ var mcpTaskAcknowledgementSchema = z.object({
14434
+ resultType: z.literal("complete")
14435
+ }).passthrough();
14436
+
14437
+ 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, CONVERSATION_SHARE_ARTIFACT_SOURCE, 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, executionObservationAnomalySchema, executionObservationAssistantSchema, executionObservationAvatarSchema, executionObservationCompareSchema, executionObservationConversationSchema, executionObservationConversationsSchema, executionObservationDetailQuerySchema, executionObservationDetailSchema, executionObservationFilterSchema, executionObservationListSchema, executionObservationOverviewSchema, executionObservationQuerySchema, executionObservationRecordSchema, executionObservationSegmentSchema, executionObservationStatusSchema, executionObservationSummarySchema, executionObservationWorkspacesSchema, 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 };