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