@xpert-ai/contracts 3.35.0 → 3.37.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 (105) hide show
  1. package/context-event.cjs.default.js +1 -0
  2. package/context-event.cjs.js +26 -0
  3. package/context-event.cjs.mjs +2 -0
  4. package/context-event.d.ts +1 -0
  5. package/context-event.esm.js +24 -0
  6. package/index.cjs.default.js +1 -0
  7. package/index.cjs.js +1165 -805
  8. package/index.cjs.mjs +2 -0
  9. package/index.esm.js +1140 -801
  10. package/package.json +18 -2
  11. package/src/agent-plugin.d.ts +4 -29
  12. package/src/ai/agent-output-delivery.model.d.ts +22 -1
  13. package/src/ai/agent-runtime.model.d.ts +4 -4
  14. package/src/ai/assistant-capability.model.d.ts +0 -1
  15. package/src/ai/assistant-template-manifest.model.d.ts +272 -308
  16. package/src/ai/assistant-template-overview.model.d.ts +0 -4
  17. package/src/ai/assistant-template.model.d.ts +0 -4
  18. package/src/ai/bosi.model.d.ts +1 -1
  19. package/src/ai/chat-activity.model.d.ts +13 -0
  20. package/src/ai/chat-message.model.d.ts +0 -11
  21. package/src/ai/chat.model.d.ts +3 -0
  22. package/src/ai/cli-execution.model.d.ts +88 -0
  23. package/src/ai/conversation-trail.model.d.ts +274 -274
  24. package/src/ai/copilot-store.model.d.ts +0 -13
  25. package/src/ai/evolution/entities.d.ts +164 -0
  26. package/src/ai/evolution/evaluation.d.ts +7 -0
  27. package/src/ai/evolution/execution-review.d.ts +68 -0
  28. package/src/ai/evolution/index.d.ts +2 -0
  29. package/src/ai/evolution/provider.d.ts +1 -0
  30. package/src/ai/evolution/target.d.ts +5 -0
  31. package/src/ai/execution-activity.model.d.ts +362 -362
  32. package/src/ai/execution-control-evidence.schema.d.ts +26 -26
  33. package/src/ai/execution-observability.model.d.ts +160 -160
  34. package/src/ai/execution-source.model.d.ts +45 -0
  35. package/src/ai/index.d.ts +2 -0
  36. package/src/ai/middleware.model.d.ts +1 -0
  37. package/src/ai/model-execution.model.d.ts +5 -108
  38. package/src/ai/model-replacement.model.d.ts +12 -12
  39. package/src/ai/project-configuration-view.model.d.ts +1 -0
  40. package/src/ai/project-pipeline/analytics.d.ts +288 -288
  41. package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
  42. package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
  43. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
  44. package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
  45. package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
  46. package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
  47. package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
  48. package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
  49. package/src/ai/project-pipeline/graph.model.d.ts +7 -2
  50. package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
  51. package/src/ai/project-pipeline/index.d.ts +1 -0
  52. package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
  53. package/src/ai/project-pipeline/node.schema.d.ts +57 -44
  54. package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
  55. package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
  56. package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
  57. package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
  58. package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
  59. package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
  60. package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
  61. package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
  62. package/src/ai/project-pipeline/statistics.d.ts +142 -142
  63. package/src/ai/project-task-runtime.model.d.ts +265 -789
  64. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  65. package/src/ai/template-installation.model.d.ts +13 -13
  66. package/src/ai/template-lifecycle.model.d.ts +4 -4
  67. package/src/ai/xpert-agent-execution.model.d.ts +33 -0
  68. package/src/ai/xpert-project.model.d.ts +2 -1
  69. package/src/ai/xpert-tool.model.d.ts +12 -0
  70. package/src/ai/xpert.model.d.ts +0 -34
  71. package/src/ai/xpert.utils.d.ts +0 -1
  72. package/src/always-on/agent-event.model.d.ts +121 -0
  73. package/src/always-on/agent-event.schema.d.ts +139 -0
  74. package/src/always-on/agent-output-reference.schema.d.ts +27 -0
  75. package/src/always-on/agent-output.model.d.ts +411 -0
  76. package/src/always-on/human-decision.model.d.ts +204 -0
  77. package/src/always-on/index.d.ts +3 -0
  78. package/src/always-on/output-workbench.schema.d.ts +154 -0
  79. package/src/analytics/analysis-evidence.model.d.ts +29 -0
  80. package/src/analytics/analytics-certification.model.d.ts +17 -0
  81. package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
  82. package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
  83. package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
  84. package/src/analytics/index.d.ts +7 -0
  85. package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
  86. package/src/app-platform.d.ts +14 -14
  87. package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
  88. package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
  89. package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
  90. package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
  91. package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +4 -2
  92. package/src/artifacts/index.d.ts +5 -0
  93. package/src/collaboration.model.d.ts +31 -11
  94. package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
  95. package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +7 -3
  96. package/src/content/content-transfer.model.d.ts +21 -0
  97. package/src/content/index.d.ts +4 -0
  98. package/src/execution-control-admission.schema.d.ts +2 -2
  99. package/src/icon-definition.schema.d.ts +6 -10
  100. package/src/index.d.ts +5 -14
  101. package/src/secret-token.model.d.ts +4 -4
  102. package/src/user-notification.schema.d.ts +1300 -471
  103. package/src/view-extension/client-commands.d.ts +24 -0
  104. /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
  105. /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
package/index.esm.js CHANGED
@@ -3,6 +3,377 @@ import { z as z$1 } from 'zod';
3
3
  import ShortUniqueId from 'short-unique-id';
4
4
  import { parseResourceCardContent, upsertResourceCardContent, parseFileActivityContent, upsertFileActivityContent, isFileActivityContent, isResourceCardContent } from '@xpert-ai/chatkit-types';
5
5
  export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from '@xpert-ai/chatkit-types';
6
+ export { viewContextEventSchema } from './context-event.esm.js';
7
+
8
+ var key$6 = z.string().min(1).max(256).refine(function(value) {
9
+ return !value.includes("\x00");
10
+ });
11
+ /** Validates the source-defined object identity carried in a subject or a handling result. */ var agentEventRefSchema = z.object({
12
+ kind: key$6,
13
+ key: key$6
14
+ }).strict();
15
+ /** Validates the event envelope at inbox admission. The source retains the referenced business data. */ var pluginAgentEventSchema = z.object({
16
+ sourceEventId: key$6,
17
+ bindingRevision: z.number().int().positive(),
18
+ type: key$6,
19
+ schemaVersion: z.number().int().positive(),
20
+ occurredAt: z.string().datetime({
21
+ offset: true
22
+ }),
23
+ subject: agentEventRefSchema,
24
+ fact: z.object({
25
+ key: key$6,
26
+ revision: key$6,
27
+ sha256: z.string().regex(/^[0-9a-f]{64}$/)
28
+ }).strict()
29
+ }).strict();
30
+ var reasonCode = z.string().regex(/^[a-z][a-z0-9_]{0,79}$/);
31
+ /** Accepts a completed source handler outcome for storage on the inbox receipt. */ var agentEventDecisionSchema = z.discriminatedUnion("status", [
32
+ z.object({
33
+ status: z.literal("handled"),
34
+ operationKey: key$6,
35
+ resultRef: agentEventRefSchema
36
+ }).strict(),
37
+ z.object({
38
+ status: z.literal("ignored"),
39
+ reasonCode: reasonCode
40
+ }).strict(),
41
+ z.object({
42
+ status: z.literal("blocked"),
43
+ reasonCode: reasonCode
44
+ }).strict()
45
+ ]);
46
+
47
+ /** Host feature used to activate the assistant workbench inbox. */ var EVENT_INBOX_FEATURE = "platform.event-inbox";
48
+ /** Personal host slot for a user's inbox across assistants. */ var USER_EVENT_INBOX_SLOT = "user.event-inbox";
49
+ /** Built-in remote view shared by the assistant workbench and personal inbox entry points. */ var EVENT_INBOX_VIEW_KEY = "platform.event-inbox__inbox";
50
+
51
+ var label$3 = z.object({
52
+ en_US: z.string().trim().min(1).max(160),
53
+ zh_Hans: z.string().trim().min(1).max(160)
54
+ }).strict();
55
+ var outputFieldSchema = z.object({
56
+ label: label$3,
57
+ value: z.string().max(4000)
58
+ }).strict();
59
+ /** A source-owned business item and its location in an Assistant workbench. Handling is independent of notification read state. */ var outputWorkbenchSchema = z.object({
60
+ state: z.enum([
61
+ "pending",
62
+ "handled"
63
+ ]),
64
+ title: label$3,
65
+ openLabel: label$3,
66
+ viewKey: z.string().trim().min(1).max(256),
67
+ selectionId: z.string().trim().min(1).max(256)
68
+ }).strict();
69
+ var outputWorkbenchTargetSchema = outputWorkbenchSchema.extend({
70
+ assistantId: z.string().uuid(),
71
+ organizationId: z.string().uuid(),
72
+ projectId: z.string().uuid().nullable()
73
+ });
74
+
75
+ var key$5 = z.string().min(1).max(160);
76
+ /**
77
+ * Validates the immutable reference a source hands to the outbox. The key and revision use
78
+ * the source's vocabulary, such as a review run ID and its Git commit SHA.
79
+ */ var agentOutputReferenceSchema = z.object({
80
+ schemaVersion: z.literal(1),
81
+ kind: key$5,
82
+ key: key$5,
83
+ revision: key$5,
84
+ publishedAt: z.string().datetime(),
85
+ recipientId: z.string().uuid()
86
+ }).strict();
87
+
88
+ var uuid$2 = z.string().uuid();
89
+ var choice = z.string().regex(/^[a-z][a-z0-9_]{0,63}$/);
90
+ var label$2 = z.object({
91
+ en_US: z.string().min(1).max(100),
92
+ zh_Hans: z.string().min(1).max(100)
93
+ }).strict();
94
+ var requestVersion = z.number().int().positive();
95
+ var choices = z.array(z.object({
96
+ key: choice,
97
+ label: label$2,
98
+ replyCommand: z.string().trim().min(1).max(100).optional()
99
+ }).strict()).min(2).max(5).refine(function(options) {
100
+ var commands = options.flatMap(function(c) {
101
+ return c.replyCommand ? [
102
+ c.replyCommand
103
+ ] : [];
104
+ });
105
+ return new Set(options.map(function(c) {
106
+ return c.key;
107
+ })).size === options.length && new Set(commands).size === commands.length;
108
+ });
109
+ /** Validates the choices a source offers. Choice keys and direct-reply commands must each be unambiguous. */ var humanDecisionSchema = z.object({
110
+ type: z.literal("human_decision"),
111
+ schemaVersion: z.literal(1),
112
+ requestVersion: requestVersion,
113
+ choices: choices
114
+ }).strict();
115
+ /** Validates the submission shared by workbench actions and verified private-channel replies. */ var humanDecisionInputSchema = z.object({
116
+ schemaVersion: z.literal(1),
117
+ requestId: agentOutputReferenceSchema.shape.key,
118
+ sourceRevision: agentOutputReferenceSchema.shape.revision,
119
+ requestVersion: requestVersion,
120
+ choice: choice,
121
+ commandId: uuid$2
122
+ }).strict();
123
+ /** Outcomes the workbench and channels can report after a submission is evaluated. */ var humanDecisionStatusSchema = z.enum([
124
+ "recorded",
125
+ "already_recorded",
126
+ "conflicting_choice",
127
+ "stale",
128
+ "closed",
129
+ "forbidden"
130
+ ]);
131
+ /** Submission outcomes that can replace the actionable controls on the original private card. */ var privateDecisionFeedbackStatusSchema = humanDecisionStatusSchema.extract([
132
+ "recorded",
133
+ "already_recorded",
134
+ "stale",
135
+ "closed"
136
+ ]);
137
+ /** Accepts a button callback or a reply quoting a specific message, together with its sender and chat. */ var privateDecisionReplySchema = z.object({
138
+ parentId: z.string().min(1).max(256),
139
+ chatId: z.string().min(1).max(256),
140
+ openId: z.string().min(1).max(256),
141
+ unionId: z.string().min(1).max(256).optional(),
142
+ input: z.discriminatedUnion("type", [
143
+ z.object({
144
+ type: z.literal("button"),
145
+ interactionId: uuid$2,
146
+ choice: choice
147
+ }).strict(),
148
+ z.object({
149
+ type: z.literal("quoted_text"),
150
+ text: z.string().min(1).max(100)
151
+ }).strict()
152
+ ])
153
+ }).strict();
154
+
155
+ // Application types are independent of delivery channels and external account identities.
156
+ var notificationClientSchema = z.enum([
157
+ "web",
158
+ "desktop"
159
+ ]);
160
+ var announcementActionSchema = z.object({
161
+ type: z.literal("link"),
162
+ label: z.string().trim().min(1).max(80),
163
+ url: z.string().url().max(2048).refine(function(url) {
164
+ return /^https:\/\//i.test(url);
165
+ })
166
+ }).strict();
167
+ var announcementContentSchema = z.object({
168
+ title: z.string().trim().min(1).max(160),
169
+ body: z.string().trim().min(1).max(20000),
170
+ category: z.enum([
171
+ "general",
172
+ "maintenance",
173
+ "model_retirement"
174
+ ]).default("general"),
175
+ severity: z.enum([
176
+ "info",
177
+ "important"
178
+ ]).default("info"),
179
+ clients: z.array(notificationClientSchema).min(1).max(2).refine(function(items) {
180
+ return new Set(items).size === items.length;
181
+ }),
182
+ startsAt: z.string().datetime({
183
+ offset: true
184
+ }),
185
+ expiresAt: z.string().datetime({
186
+ offset: true
187
+ }).nullable().default(null),
188
+ action: announcementActionSchema.nullable().default(null)
189
+ }).strict();
190
+ var createAnnouncementSchema = announcementContentSchema.refine(function(input) {
191
+ return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
192
+ }, {
193
+ path: [
194
+ "expiresAt"
195
+ ],
196
+ message: "Expiry must follow start"
197
+ });
198
+ var updateAnnouncementSchema = announcementContentSchema.extend({
199
+ revision: z.number().int().positive()
200
+ }).refine(function(input) {
201
+ return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
202
+ }, {
203
+ path: [
204
+ "expiresAt"
205
+ ]
206
+ });
207
+ var announcementRevisionSchema = z.object({
208
+ revision: z.number().int().positive()
209
+ }).strict();
210
+ var announcementSchema = announcementContentSchema.extend({
211
+ id: z.string().uuid(),
212
+ status: z.enum([
213
+ "draft",
214
+ "published",
215
+ "withdrawn"
216
+ ]),
217
+ revision: z.number().int().positive(),
218
+ createdAt: z.string().datetime({
219
+ offset: true
220
+ }),
221
+ dismissedAt: z.string().datetime({
222
+ offset: true
223
+ }).nullable().default(null)
224
+ });
225
+ var notificationSourceSchema = z.object({
226
+ type: z.literal("scheduled_task"),
227
+ taskId: z.string().uuid(),
228
+ executionId: z.string().uuid(),
229
+ assistantId: z.string().uuid(),
230
+ conversationId: z.string().uuid()
231
+ }).strict();
232
+ var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
233
+ threadId: z.string().uuid().optional()
234
+ });
235
+ var notificationThreadIdSchema = z.string().trim().min(1).max(128);
236
+ var openConversationActionSchema = z.object({
237
+ type: z.literal("open_conversation"),
238
+ assistantId: z.string().uuid(),
239
+ conversationId: z.string().uuid(),
240
+ threadId: notificationThreadIdSchema.nullable()
241
+ }).strict();
242
+ var taskNotificationSchema = z.object({
243
+ id: z.string().uuid(),
244
+ kind: z.literal("agent.completed"),
245
+ source: notificationSourceSchema,
246
+ createdAt: z.string().datetime({
247
+ offset: true
248
+ }),
249
+ readAt: z.string().datetime({
250
+ offset: true
251
+ }).nullable(),
252
+ action: openConversationActionSchema
253
+ }).strict();
254
+ var agentOutputOriginSchema = z.object({
255
+ type: z.literal("agent_output"),
256
+ deliveryId: z.string().uuid()
257
+ }).strict();
258
+ var outputNotificationSchema = taskNotificationSchema.extend({
259
+ kind: z.literal("agent.output"),
260
+ source: agentOutputOriginSchema,
261
+ items: z.array(z.object({
262
+ id: z.string().uuid(),
263
+ title: z.string().min(1).max(240),
264
+ action: openConversationActionSchema.nullable(),
265
+ fields: z.array(outputFieldSchema).max(20).optional(),
266
+ workbench: outputWorkbenchTargetSchema.optional()
267
+ }).strict()).max(20).optional(),
268
+ titles: z.array(z.string().min(1).max(240)).min(1).max(20),
269
+ action: openConversationActionSchema.nullable()
270
+ });
271
+ var userNotificationSchema = z.discriminatedUnion("kind", [
272
+ taskNotificationSchema,
273
+ outputNotificationSchema
274
+ ]);
275
+ var notificationSnapshotSchema = z.object({
276
+ supported: z.literal(true),
277
+ version: z.string(),
278
+ announcements: z.array(announcementSchema),
279
+ notifications: z.array(userNotificationSchema),
280
+ hasMoreAnnouncements: z.boolean(),
281
+ hasMoreNotifications: z.boolean()
282
+ }).strict();
283
+ var notificationChangeSchema = z.object({
284
+ schemaVersion: z.literal(1),
285
+ type: z.literal("sync.required"),
286
+ eventId: z.string().uuid()
287
+ }).strict();
288
+ var notificationOutboxPayloadSchema = z.discriminatedUnion("type", [
289
+ z.object({
290
+ type: z.literal("changed")
291
+ }).strict(),
292
+ z.object({
293
+ type: z.literal("agent.output.dispatch"),
294
+ deliveryId: z.string().uuid()
295
+ }).strict(),
296
+ z.object({
297
+ type: z.literal("announcement.scheduled"),
298
+ announcementId: z.string().uuid(),
299
+ revision: z.number().int().positive(),
300
+ phase: z.enum([
301
+ "start",
302
+ "expiry"
303
+ ])
304
+ }).strict(),
305
+ z.object({
306
+ type: z.literal("agent.completed"),
307
+ source: scheduledNotificationOriginSchema
308
+ }).strict()
309
+ ]);
310
+ // The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
311
+ // object outputs optional. These boundaries validate every required field before narrowing.
312
+ function parseAnnouncement(value) {
313
+ return announcementSchema.parse(value);
314
+ }
315
+ function parseOpenConversationAction(value) {
316
+ return openConversationActionSchema.parse(value);
317
+ }
318
+ function parseUserNotification(value) {
319
+ return userNotificationSchema.parse(value);
320
+ }
321
+ function parseNotificationSnapshot(value) {
322
+ return notificationSnapshotSchema.parse(value);
323
+ }
324
+
325
+ /** HTTP Accept profile for notification clients that can display agent outputs in list and sync responses. */ var AGENT_OUTPUT_ACCEPT = 'application/json; profile="xpert-agent-output-v1"';
326
+ var key$4 = agentOutputReferenceSchema.shape.key;
327
+ var uuid$1 = z.string().uuid();
328
+ var hhmm = z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/);
329
+ /** Validates the local delivery window against its time zone, including windows that span midnight. */ var outputQuietHoursSchema = z.object({
330
+ zone: z.string().max(100).refine(function(value) {
331
+ try {
332
+ new Intl.DateTimeFormat("en", {
333
+ timeZone: value
334
+ });
335
+ return true;
336
+ } catch (e) {
337
+ return false;
338
+ }
339
+ }),
340
+ start: hhmm,
341
+ end: hhmm
342
+ }).strict().refine(function(value) {
343
+ return value.start !== value.end;
344
+ });
345
+ /** Validates per-channel settings. Enabling private Lark delivery requires a selected integration. */ var outputPreferenceSchema = z.object({
346
+ kind: key$4,
347
+ channel: z.enum([
348
+ "in_app",
349
+ "lark"
350
+ ]),
351
+ enabled: z.boolean(),
352
+ integrationId: uuid$1.nullable(),
353
+ quiet: outputQuietHoursSchema.nullable()
354
+ }).strict().refine(function(v) {
355
+ return v.channel === "lark" ? !v.enabled || !!v.integrationId : v.integrationId === null;
356
+ });
357
+ /** Validates the source's current visibility outcome and the content it permits the recipient to see. */ var agentOutputPresentationSchema = z.discriminatedUnion("status", [
358
+ z.object({
359
+ status: z.literal("visible"),
360
+ title: z.string().trim().min(1).max(240),
361
+ decision: humanDecisionSchema.optional(),
362
+ workbench: outputWorkbenchSchema.optional(),
363
+ fields: z.array(outputFieldSchema).max(20).optional(),
364
+ conversation: z.object({
365
+ conversationId: uuid$1,
366
+ threadId: notificationThreadIdSchema.optional()
367
+ }).strict().optional().catch(undefined)
368
+ }).strict(),
369
+ z.object({
370
+ status: z.enum([
371
+ "superseded",
372
+ "forbidden",
373
+ "unavailable"
374
+ ])
375
+ }).strict()
376
+ ]);
6
377
 
7
378
  var AiModelTypeEnum;
8
379
  (function(AiModelTypeEnum) {
@@ -18,7 +389,7 @@ var AiModelTypeEnum;
18
389
  AiModelTypeEnum["VIDEO"] = "video";
19
390
  })(AiModelTypeEnum || (AiModelTypeEnum = {}));
20
391
 
21
- function _define_property$t(obj, key, value) {
392
+ function _define_property$u(obj, key, value) {
22
393
  if (key in obj) {
23
394
  Object.defineProperty(obj, key, {
24
395
  value: value,
@@ -31,7 +402,7 @@ function _define_property$t(obj, key, value) {
31
402
  }
32
403
  return obj;
33
404
  }
34
- function _object_spread$t(target) {
405
+ function _object_spread$u(target) {
35
406
  for(var i = 1; i < arguments.length; i++){
36
407
  var source = arguments[i] != null ? arguments[i] : {};
37
408
  var ownKeys = Object.keys(source);
@@ -41,12 +412,12 @@ function _object_spread$t(target) {
41
412
  }));
42
413
  }
43
414
  ownKeys.forEach(function(key) {
44
- _define_property$t(target, key, source[key]);
415
+ _define_property$u(target, key, source[key]);
45
416
  });
46
417
  }
47
418
  return target;
48
419
  }
49
- function ownKeys$m(object, enumerableOnly) {
420
+ function ownKeys$n(object, enumerableOnly) {
50
421
  var keys = Object.keys(object);
51
422
  if (Object.getOwnPropertySymbols) {
52
423
  var symbols = Object.getOwnPropertySymbols(object);
@@ -54,12 +425,12 @@ function ownKeys$m(object, enumerableOnly) {
54
425
  }
55
426
  return keys;
56
427
  }
57
- function _object_spread_props$m(target, source) {
428
+ function _object_spread_props$n(target, source) {
58
429
  source = source != null ? source : {};
59
430
  if (Object.getOwnPropertyDescriptors) {
60
431
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
61
432
  } else {
62
- ownKeys$m(Object(source)).forEach(function(key) {
433
+ ownKeys$n(Object(source)).forEach(function(key) {
63
434
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
64
435
  });
65
436
  }
@@ -82,7 +453,7 @@ var appPlatformAppSchema = z.object({
82
453
  configurationRef: key$3,
83
454
  dependsOn: z.array(key$3).max(32).default([])
84
455
  }).strict().transform(function(app) {
85
- return _object_spread_props$m(_object_spread$t({}, app), {
456
+ return _object_spread_props$n(_object_spread$u({}, app), {
86
457
  key: app.key,
87
458
  required: app.required,
88
459
  configurationRef: app.configurationRef,
@@ -1753,7 +2124,7 @@ var OrganizationDemoNetworkEnum;
1753
2124
  resourceType: "conversation_snapshot"
1754
2125
  };
1755
2126
 
1756
- function _define_property$s(obj, key, value) {
2127
+ function _define_property$t(obj, key, value) {
1757
2128
  if (key in obj) {
1758
2129
  Object.defineProperty(obj, key, {
1759
2130
  value: value,
@@ -1766,7 +2137,7 @@ function _define_property$s(obj, key, value) {
1766
2137
  }
1767
2138
  return obj;
1768
2139
  }
1769
- function _object_spread$s(target) {
2140
+ function _object_spread$t(target) {
1770
2141
  for(var i = 1; i < arguments.length; i++){
1771
2142
  var source = arguments[i] != null ? arguments[i] : {};
1772
2143
  var ownKeys = Object.keys(source);
@@ -1776,12 +2147,12 @@ function _object_spread$s(target) {
1776
2147
  }));
1777
2148
  }
1778
2149
  ownKeys.forEach(function(key) {
1779
- _define_property$s(target, key, source[key]);
2150
+ _define_property$t(target, key, source[key]);
1780
2151
  });
1781
2152
  }
1782
2153
  return target;
1783
2154
  }
1784
- function ownKeys$l(object, enumerableOnly) {
2155
+ function ownKeys$m(object, enumerableOnly) {
1785
2156
  var keys = Object.keys(object);
1786
2157
  if (Object.getOwnPropertySymbols) {
1787
2158
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1789,12 +2160,12 @@ function ownKeys$l(object, enumerableOnly) {
1789
2160
  }
1790
2161
  return keys;
1791
2162
  }
1792
- function _object_spread_props$l(target, source) {
2163
+ function _object_spread_props$m(target, source) {
1793
2164
  source = source != null ? source : {};
1794
2165
  if (Object.getOwnPropertyDescriptors) {
1795
2166
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1796
2167
  } else {
1797
- ownKeys$l(Object(source)).forEach(function(key) {
2168
+ ownKeys$m(Object(source)).forEach(function(key) {
1798
2169
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1799
2170
  });
1800
2171
  }
@@ -1822,7 +2193,7 @@ function parseSelectionSet(value) {
1822
2193
  if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
1823
2194
  if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
1824
2195
  if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
1825
- return _object_spread$s(_object_spread_props$l(_object_spread$s({}, value), {
2196
+ return _object_spread$t(_object_spread_props$m(_object_spread$t({}, value), {
1826
2197
  skills: skills === undefined ? {
1827
2198
  ids: []
1828
2199
  } : skills,
@@ -1841,7 +2212,7 @@ function parsePromptCapabilitySelection(value) {
1841
2212
  var selection = parseSelectionSet(value);
1842
2213
  var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
1843
2214
  if (!selection || recommended === null) return null;
1844
- return _object_spread$s(_object_spread_props$l(_object_spread$s({}, selection), {
2215
+ return _object_spread$t(_object_spread_props$m(_object_spread$t({}, selection), {
1845
2216
  mode: "allowlist"
1846
2217
  }), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
1847
2218
  inheritUnselected: value.inheritUnselected
@@ -1893,7 +2264,7 @@ function parsePromptCapabilityConfig(value) {
1893
2264
  }
1894
2265
  }
1895
2266
  }
1896
- return _object_spread_props$l(_object_spread$s({}, value), {
2267
+ return _object_spread_props$m(_object_spread$t({}, value), {
1897
2268
  type: "expert_scoped_capabilities",
1898
2269
  version: 1,
1899
2270
  defaults: defaults,
@@ -2025,7 +2396,7 @@ var ChatMessageStepCategory;
2025
2396
  ChatMessageStepCategory["Knowledges"] = "knowledges";
2026
2397
  })(ChatMessageStepCategory || (ChatMessageStepCategory = {}));
2027
2398
 
2028
- function _define_property$r(obj, key, value) {
2399
+ function _define_property$s(obj, key, value) {
2029
2400
  if (key in obj) {
2030
2401
  Object.defineProperty(obj, key, {
2031
2402
  value: value,
@@ -2045,7 +2416,7 @@ function _instanceof$1(left, right) {
2045
2416
  return left instanceof right;
2046
2417
  }
2047
2418
  }
2048
- function _object_spread$r(target) {
2419
+ function _object_spread$s(target) {
2049
2420
  for(var i = 1; i < arguments.length; i++){
2050
2421
  var source = arguments[i] != null ? arguments[i] : {};
2051
2422
  var ownKeys = Object.keys(source);
@@ -2055,7 +2426,7 @@ function _object_spread$r(target) {
2055
2426
  }));
2056
2427
  }
2057
2428
  ownKeys.forEach(function(key) {
2058
- _define_property$r(target, key, source[key]);
2429
+ _define_property$s(target, key, source[key]);
2059
2430
  });
2060
2431
  }
2061
2432
  return target;
@@ -2066,12 +2437,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
2066
2437
  var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
2067
2438
  var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
2068
2439
  function createConversationTitleSummaryEvent(event) {
2069
- return _object_spread$r({
2440
+ return _object_spread$s({
2070
2441
  type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
2071
2442
  }, event);
2072
2443
  }
2073
2444
  function createFollowUpConsumedEvent(event) {
2074
- return _object_spread$r({
2445
+ return _object_spread$s({
2075
2446
  type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
2076
2447
  }, event);
2077
2448
  }
@@ -2117,7 +2488,7 @@ function _array_with_holes$j(arr) {
2117
2488
  function _array_without_holes$j(arr) {
2118
2489
  if (Array.isArray(arr)) return _array_like_to_array$w(arr);
2119
2490
  }
2120
- function _define_property$q(obj, key, value) {
2491
+ function _define_property$r(obj, key, value) {
2121
2492
  if (key in obj) {
2122
2493
  Object.defineProperty(obj, key, {
2123
2494
  value: value,
@@ -2163,7 +2534,7 @@ function _non_iterable_rest$j() {
2163
2534
  function _non_iterable_spread$j() {
2164
2535
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2165
2536
  }
2166
- function _object_spread$q(target) {
2537
+ function _object_spread$r(target) {
2167
2538
  for(var i = 1; i < arguments.length; i++){
2168
2539
  var source = arguments[i] != null ? arguments[i] : {};
2169
2540
  var ownKeys = Object.keys(source);
@@ -2173,12 +2544,12 @@ function _object_spread$q(target) {
2173
2544
  }));
2174
2545
  }
2175
2546
  ownKeys.forEach(function(key) {
2176
- _define_property$q(target, key, source[key]);
2547
+ _define_property$r(target, key, source[key]);
2177
2548
  });
2178
2549
  }
2179
2550
  return target;
2180
2551
  }
2181
- function ownKeys$k(object, enumerableOnly) {
2552
+ function ownKeys$l(object, enumerableOnly) {
2182
2553
  var keys = Object.keys(object);
2183
2554
  if (Object.getOwnPropertySymbols) {
2184
2555
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2186,12 +2557,12 @@ function ownKeys$k(object, enumerableOnly) {
2186
2557
  }
2187
2558
  return keys;
2188
2559
  }
2189
- function _object_spread_props$k(target, source) {
2560
+ function _object_spread_props$l(target, source) {
2190
2561
  source = source != null ? source : {};
2191
2562
  if (Object.getOwnPropertyDescriptors) {
2192
2563
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2193
2564
  } else {
2194
- ownKeys$k(Object(source)).forEach(function(key) {
2565
+ ownKeys$l(Object(source)).forEach(function(key) {
2195
2566
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2196
2567
  });
2197
2568
  }
@@ -2310,7 +2681,7 @@ function normalizeAssistantBindingToolPreferences(value) {
2310
2681
  if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
2311
2682
  return null;
2312
2683
  }
2313
- return _object_spread$q({
2684
+ return _object_spread$r({
2314
2685
  version: 1
2315
2686
  }, Object.keys(toolsets).length ? {
2316
2687
  toolsets: toolsets
@@ -2388,8 +2759,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2388
2759
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
2389
2760
  normalizedToolName
2390
2761
  ]));
2391
- var toolsets = normalizedPreferences.toolsets ? _object_spread$q({}, normalizedPreferences.toolsets) : undefined;
2392
- var middlewares = normalizedPreferences.middlewares ? _object_spread$q({}, normalizedPreferences.middlewares) : undefined;
2762
+ var toolsets = normalizedPreferences.toolsets ? _object_spread$r({}, normalizedPreferences.toolsets) : undefined;
2763
+ var middlewares = normalizedPreferences.middlewares ? _object_spread$r({}, normalizedPreferences.middlewares) : undefined;
2393
2764
  if (sourceType === "toolset") {
2394
2765
  var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
2395
2766
  if (!toolsetName) {
@@ -2405,14 +2776,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2405
2776
  } else {
2406
2777
  delete nextToolsets[normalizedNodeKey];
2407
2778
  }
2408
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2779
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2409
2780
  version: 1
2410
2781
  }, Object.keys(nextToolsets).length ? {
2411
2782
  toolsets: nextToolsets
2412
2783
  } : {}, middlewares && Object.keys(middlewares).length ? {
2413
2784
  middlewares: middlewares
2414
2785
  } : {}, normalizedPreferences.skills ? {
2415
- skills: _object_spread$q({}, normalizedPreferences.skills)
2786
+ skills: _object_spread$r({}, normalizedPreferences.skills)
2416
2787
  } : {}));
2417
2788
  }
2418
2789
  var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
@@ -2428,14 +2799,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2428
2799
  } else {
2429
2800
  delete nextMiddlewares[normalizedNodeKey];
2430
2801
  }
2431
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2802
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2432
2803
  version: 1
2433
2804
  }, toolsets && Object.keys(toolsets).length ? {
2434
2805
  toolsets: toolsets
2435
2806
  } : {}, Object.keys(nextMiddlewares).length ? {
2436
2807
  middlewares: nextMiddlewares
2437
2808
  } : {}, normalizedPreferences.skills ? {
2438
- skills: _object_spread$q({}, normalizedPreferences.skills)
2809
+ skills: _object_spread$r({}, normalizedPreferences.skills)
2439
2810
  } : {}));
2440
2811
  }
2441
2812
  function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
@@ -2453,7 +2824,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2453
2824
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
2454
2825
  normalizedSkillId
2455
2826
  ]));
2456
- var skills = normalizedPreferences.skills ? _object_spread$q({}, normalizedPreferences.skills) : {};
2827
+ var skills = normalizedPreferences.skills ? _object_spread$r({}, normalizedPreferences.skills) : {};
2457
2828
  if (nextDisabledSkillIds.length) {
2458
2829
  skills[normalizedWorkspaceId] = {
2459
2830
  workspaceId: normalizedWorkspaceId,
@@ -2462,12 +2833,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2462
2833
  } else {
2463
2834
  delete skills[normalizedWorkspaceId];
2464
2835
  }
2465
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2836
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2466
2837
  version: 1
2467
2838
  }, normalizedPreferences.toolsets ? {
2468
- toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
2839
+ toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
2469
2840
  } : {}, normalizedPreferences.middlewares ? {
2470
- middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
2841
+ middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
2471
2842
  } : {}, Object.keys(skills).length ? {
2472
2843
  skills: skills
2473
2844
  } : {}));
@@ -2485,14 +2856,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
2485
2856
  var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
2486
2857
  var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
2487
2858
  var _currentWorkspacePreference_disabledSkillIds;
2488
- return _object_spread_props$k(_object_spread$q({
2859
+ return _object_spread_props$l(_object_spread$r({
2489
2860
  version: 1
2490
2861
  }, normalizedPreferences.toolsets ? {
2491
- toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
2862
+ toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
2492
2863
  } : {}, normalizedPreferences.middlewares ? {
2493
- middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
2864
+ middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
2494
2865
  } : {}), {
2495
- skills: _object_spread_props$k(_object_spread$q({}, currentSkills), _define_property$q({}, normalizedWorkspaceId, {
2866
+ skills: _object_spread_props$l(_object_spread$r({}, currentSkills), _define_property$r({}, normalizedWorkspaceId, {
2496
2867
  workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
2497
2868
  disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
2498
2869
  }))
@@ -2824,7 +3195,7 @@ function _array_like_to_array$t(arr, len) {
2824
3195
  function _array_without_holes$h(arr) {
2825
3196
  if (Array.isArray(arr)) return _array_like_to_array$t(arr);
2826
3197
  }
2827
- function _define_property$p(obj, key, value) {
3198
+ function _define_property$q(obj, key, value) {
2828
3199
  if (key in obj) {
2829
3200
  Object.defineProperty(obj, key, {
2830
3201
  value: value,
@@ -2843,7 +3214,7 @@ function _iterable_to_array$j(iter) {
2843
3214
  function _non_iterable_spread$h() {
2844
3215
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2845
3216
  }
2846
- function _object_spread$p(target) {
3217
+ function _object_spread$q(target) {
2847
3218
  for(var i = 1; i < arguments.length; i++){
2848
3219
  var source = arguments[i] != null ? arguments[i] : {};
2849
3220
  var ownKeys = Object.keys(source);
@@ -2853,12 +3224,12 @@ function _object_spread$p(target) {
2853
3224
  }));
2854
3225
  }
2855
3226
  ownKeys.forEach(function(key) {
2856
- _define_property$p(target, key, source[key]);
3227
+ _define_property$q(target, key, source[key]);
2857
3228
  });
2858
3229
  }
2859
3230
  return target;
2860
3231
  }
2861
- function ownKeys$j(object, enumerableOnly) {
3232
+ function ownKeys$k(object, enumerableOnly) {
2862
3233
  var keys = Object.keys(object);
2863
3234
  if (Object.getOwnPropertySymbols) {
2864
3235
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2866,12 +3237,12 @@ function ownKeys$j(object, enumerableOnly) {
2866
3237
  }
2867
3238
  return keys;
2868
3239
  }
2869
- function _object_spread_props$j(target, source) {
3240
+ function _object_spread_props$k(target, source) {
2870
3241
  source = source != null ? source : {};
2871
3242
  if (Object.getOwnPropertyDescriptors) {
2872
3243
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2873
3244
  } else {
2874
- ownKeys$j(Object(source)).forEach(function(key) {
3245
+ ownKeys$k(Object(source)).forEach(function(key) {
2875
3246
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2876
3247
  });
2877
3248
  }
@@ -2900,20 +3271,20 @@ var common$1 = {
2900
3271
  maxConcurrency: positiveInteger.max(1000)
2901
3272
  };
2902
3273
  /** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = z$1.discriminatedUnion("modelType", [
2903
- z$1.object(_object_spread_props$j(_object_spread$p({
3274
+ z$1.object(_object_spread_props$k(_object_spread$q({
2904
3275
  modelType: z$1.literal(AiModelTypeEnum.LLM)
2905
3276
  }, common$1), {
2906
3277
  maxOutputTokens: positiveInteger,
2907
3278
  defaultMaxTokens: positiveInteger,
2908
3279
  features: z$1.array(z$1.nativeEnum(ModelFeature)).max(20)
2909
3280
  })).strict(),
2910
- z$1.object(_object_spread_props$j(_object_spread$p({
3281
+ z$1.object(_object_spread_props$k(_object_spread$q({
2911
3282
  modelType: z$1.literal(AiModelTypeEnum.TEXT_EMBEDDING)
2912
3283
  }, common$1), {
2913
3284
  dimensions: positiveInteger.optional(),
2914
3285
  batchSize: positiveInteger.max(2048)
2915
3286
  })).strict(),
2916
- z$1.object(_object_spread$p({
3287
+ z$1.object(_object_spread$q({
2917
3288
  modelType: z$1.literal(AiModelTypeEnum.RERANK)
2918
3289
  }, common$1)).strict()
2919
3290
  ]).superRefine(function(value, ctx) {
@@ -2945,7 +3316,7 @@ function defaultModelConfiguration(modelType) {
2945
3316
  };
2946
3317
  switch(modelType){
2947
3318
  case AiModelTypeEnum.LLM:
2948
- return _object_spread_props$j(_object_spread$p({
3319
+ return _object_spread_props$k(_object_spread$q({
2949
3320
  modelType: modelType
2950
3321
  }, common), {
2951
3322
  maxOutputTokens: 2048,
@@ -2953,13 +3324,13 @@ function defaultModelConfiguration(modelType) {
2953
3324
  features: []
2954
3325
  });
2955
3326
  case AiModelTypeEnum.TEXT_EMBEDDING:
2956
- return _object_spread_props$j(_object_spread$p({
3327
+ return _object_spread_props$k(_object_spread$q({
2957
3328
  modelType: modelType
2958
3329
  }, common), {
2959
3330
  batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
2960
3331
  });
2961
3332
  case AiModelTypeEnum.RERANK:
2962
- return _object_spread$p({
3333
+ return _object_spread$q({
2963
3334
  modelType: modelType
2964
3335
  }, common);
2965
3336
  }
@@ -3120,9 +3491,6 @@ var MIN_COPILOT_CHECKPOINT_RETENTION_DAYS = 1;
3120
3491
  var DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS = 60;
3121
3492
  var MAX_COPILOT_CHECKPOINT_RETENTION_DAYS = 3650;
3122
3493
 
3123
- var MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
3124
- var MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
3125
-
3126
3494
  var USAGE_HOUR_FORMAT = "yyyy-MM-dd HH";
3127
3495
 
3128
3496
  /** @deprecated Use DefaultModelRole for default assignments; connections have no default purpose. */ var AiProviderRole;
@@ -3572,7 +3940,7 @@ function workflowNodeIdentifier(node) {
3572
3940
  return node.title || node.key;
3573
3941
  }
3574
3942
 
3575
- function _define_property$o(obj, key, value) {
3943
+ function _define_property$p(obj, key, value) {
3576
3944
  if (key in obj) {
3577
3945
  Object.defineProperty(obj, key, {
3578
3946
  value: value,
@@ -3585,7 +3953,7 @@ function _define_property$o(obj, key, value) {
3585
3953
  }
3586
3954
  return obj;
3587
3955
  }
3588
- function _object_spread$o(target) {
3956
+ function _object_spread$p(target) {
3589
3957
  for(var i = 1; i < arguments.length; i++){
3590
3958
  var source = arguments[i] != null ? arguments[i] : {};
3591
3959
  var ownKeys = Object.keys(source);
@@ -3595,12 +3963,12 @@ function _object_spread$o(target) {
3595
3963
  }));
3596
3964
  }
3597
3965
  ownKeys.forEach(function(key) {
3598
- _define_property$o(target, key, source[key]);
3966
+ _define_property$p(target, key, source[key]);
3599
3967
  });
3600
3968
  }
3601
3969
  return target;
3602
3970
  }
3603
- function ownKeys$i(object, enumerableOnly) {
3971
+ function ownKeys$j(object, enumerableOnly) {
3604
3972
  var keys = Object.keys(object);
3605
3973
  if (Object.getOwnPropertySymbols) {
3606
3974
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3608,20 +3976,20 @@ function ownKeys$i(object, enumerableOnly) {
3608
3976
  }
3609
3977
  return keys;
3610
3978
  }
3611
- function _object_spread_props$i(target, source) {
3979
+ function _object_spread_props$j(target, source) {
3612
3980
  source = source != null ? source : {};
3613
3981
  if (Object.getOwnPropertyDescriptors) {
3614
3982
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3615
3983
  } else {
3616
- ownKeys$i(Object(source)).forEach(function(key) {
3984
+ ownKeys$j(Object(source)).forEach(function(key) {
3617
3985
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3618
3986
  });
3619
3987
  }
3620
3988
  return target;
3621
3989
  }
3622
- function _object_without_properties$2(source, excluded) {
3990
+ function _object_without_properties$4(source, excluded) {
3623
3991
  if (source == null) return {};
3624
- var target = _object_without_properties_loose$2(source, excluded);
3992
+ var target = _object_without_properties_loose$4(source, excluded);
3625
3993
  var key, i;
3626
3994
  if (Object.getOwnPropertySymbols) {
3627
3995
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -3634,7 +4002,7 @@ function _object_without_properties$2(source, excluded) {
3634
4002
  }
3635
4003
  return target;
3636
4004
  }
3637
- function _object_without_properties_loose$2(source, excluded) {
4005
+ function _object_without_properties_loose$4(source, excluded) {
3638
4006
  if (source == null) return {};
3639
4007
  var target = {};
3640
4008
  var sourceKeys = Object.keys(source);
@@ -3683,18 +4051,13 @@ function getXpertAgentRecursionLimit(agentConfig) {
3683
4051
  }
3684
4052
  function normalizeXpertAgentConfig(agentConfig) {
3685
4053
  // Legacy imports may carry this unsupported scheduler option (LangGraph.js #2656).
3686
- var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
4054
+ var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$4(_ref, [
3687
4055
  "maxConcurrency"
3688
4056
  ]);
3689
- return _object_spread_props$i(_object_spread$o({}, config), {
4057
+ return _object_spread_props$j(_object_spread$p({}, config), {
3690
4058
  recursionLimit: getXpertAgentRecursionLimit(agentConfig)
3691
4059
  });
3692
4060
  }
3693
- var LongTermMemoryTypeEnum;
3694
- (function(LongTermMemoryTypeEnum) {
3695
- LongTermMemoryTypeEnum["PROFILE"] = "profile";
3696
- LongTermMemoryTypeEnum["QA"] = "qa";
3697
- })(LongTermMemoryTypeEnum || (LongTermMemoryTypeEnum = {}));
3698
4061
  var XpertParameterTypeEnum;
3699
4062
  (function(XpertParameterTypeEnum) {
3700
4063
  /**
@@ -3780,7 +4143,7 @@ function _array_like_to_array$s(arr, len) {
3780
4143
  function _array_with_holes$h(arr) {
3781
4144
  if (Array.isArray(arr)) return arr;
3782
4145
  }
3783
- function _define_property$n(obj, key, value) {
4146
+ function _define_property$o(obj, key, value) {
3784
4147
  if (key in obj) {
3785
4148
  Object.defineProperty(obj, key, {
3786
4149
  value: value,
@@ -3820,7 +4183,7 @@ function _iterable_to_array_limit$f(arr, i) {
3820
4183
  function _non_iterable_rest$h() {
3821
4184
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3822
4185
  }
3823
- function _object_spread$n(target) {
4186
+ function _object_spread$o(target) {
3824
4187
  for(var i = 1; i < arguments.length; i++){
3825
4188
  var source = arguments[i] != null ? arguments[i] : {};
3826
4189
  var ownKeys = Object.keys(source);
@@ -3830,12 +4193,12 @@ function _object_spread$n(target) {
3830
4193
  }));
3831
4194
  }
3832
4195
  ownKeys.forEach(function(key) {
3833
- _define_property$n(target, key, source[key]);
4196
+ _define_property$o(target, key, source[key]);
3834
4197
  });
3835
4198
  }
3836
4199
  return target;
3837
4200
  }
3838
- function ownKeys$h(object, enumerableOnly) {
4201
+ function ownKeys$i(object, enumerableOnly) {
3839
4202
  var keys = Object.keys(object);
3840
4203
  if (Object.getOwnPropertySymbols) {
3841
4204
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3843,12 +4206,12 @@ function ownKeys$h(object, enumerableOnly) {
3843
4206
  }
3844
4207
  return keys;
3845
4208
  }
3846
- function _object_spread_props$h(target, source) {
4209
+ function _object_spread_props$i(target, source) {
3847
4210
  source = source != null ? source : {};
3848
4211
  if (Object.getOwnPropertyDescriptors) {
3849
4212
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3850
4213
  } else {
3851
- ownKeys$h(Object(source)).forEach(function(key) {
4214
+ ownKeys$i(Object(source)).forEach(function(key) {
3852
4215
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3853
4216
  });
3854
4217
  }
@@ -3948,7 +4311,7 @@ function configurableStoreNamespace(configurable) {
3948
4311
  var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
3949
4312
  if (variableName) {
3950
4313
  var _state_agentChannelName;
3951
- state[agentChannelName] = _object_spread_props$h(_object_spread$n({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$n({}, variableName, value));
4314
+ state[agentChannelName] = _object_spread_props$i(_object_spread$o({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$o({}, variableName, value));
3952
4315
  } else {
3953
4316
  state[agentChannelName] = value;
3954
4317
  }
@@ -4039,7 +4402,7 @@ function getWorkflowTriggers(graph, from) {
4039
4402
  });
4040
4403
  }
4041
4404
 
4042
- function _define_property$m(obj, key, value) {
4405
+ function _define_property$n(obj, key, value) {
4043
4406
  if (key in obj) {
4044
4407
  Object.defineProperty(obj, key, {
4045
4408
  value: value,
@@ -4052,7 +4415,7 @@ function _define_property$m(obj, key, value) {
4052
4415
  }
4053
4416
  return obj;
4054
4417
  }
4055
- function _object_spread$m(target) {
4418
+ function _object_spread$n(target) {
4056
4419
  for(var i = 1; i < arguments.length; i++){
4057
4420
  var source = arguments[i] != null ? arguments[i] : {};
4058
4421
  var ownKeys = Object.keys(source);
@@ -4062,12 +4425,12 @@ function _object_spread$m(target) {
4062
4425
  }));
4063
4426
  }
4064
4427
  ownKeys.forEach(function(key) {
4065
- _define_property$m(target, key, source[key]);
4428
+ _define_property$n(target, key, source[key]);
4066
4429
  });
4067
4430
  }
4068
4431
  return target;
4069
4432
  }
4070
- function ownKeys$g(object, enumerableOnly) {
4433
+ function ownKeys$h(object, enumerableOnly) {
4071
4434
  var keys = Object.keys(object);
4072
4435
  if (Object.getOwnPropertySymbols) {
4073
4436
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4075,12 +4438,12 @@ function ownKeys$g(object, enumerableOnly) {
4075
4438
  }
4076
4439
  return keys;
4077
4440
  }
4078
- function _object_spread_props$g(target, source) {
4441
+ function _object_spread_props$h(target, source) {
4079
4442
  source = source != null ? source : {};
4080
4443
  if (Object.getOwnPropertyDescriptors) {
4081
4444
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4082
4445
  } else {
4083
- ownKeys$g(Object(source)).forEach(function(key) {
4446
+ ownKeys$h(Object(source)).forEach(function(key) {
4084
4447
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4085
4448
  });
4086
4449
  }
@@ -4168,11 +4531,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
4168
4531
  return candidate === requestedMode;
4169
4532
  }) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
4170
4533
  var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
4171
- return _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
4534
+ return _object_spread_props$h(_object_spread$n({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
4172
4535
  mode: mode,
4173
- fusion: _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
4536
+ fusion: _object_spread_props$h(_object_spread$n({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
4174
4537
  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,
4175
- weights: _object_spread_props$g(_object_spread$m({}, 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 : {}), {
4538
+ weights: _object_spread_props$h(_object_spread$n({}, 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 : {}), {
4176
4539
  graph: 0
4177
4540
  })
4178
4541
  })
@@ -4341,7 +4704,7 @@ function _array_like_to_array$q(arr, len) {
4341
4704
  function _array_without_holes$f(arr) {
4342
4705
  if (Array.isArray(arr)) return _array_like_to_array$q(arr);
4343
4706
  }
4344
- function _define_property$l(obj, key, value) {
4707
+ function _define_property$m(obj, key, value) {
4345
4708
  if (key in obj) {
4346
4709
  Object.defineProperty(obj, key, {
4347
4710
  value: value,
@@ -4360,7 +4723,7 @@ function _iterable_to_array$h(iter) {
4360
4723
  function _non_iterable_spread$f() {
4361
4724
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4362
4725
  }
4363
- function _object_spread$l(target) {
4726
+ function _object_spread$m(target) {
4364
4727
  for(var i = 1; i < arguments.length; i++){
4365
4728
  var source = arguments[i] != null ? arguments[i] : {};
4366
4729
  var ownKeys = Object.keys(source);
@@ -4370,7 +4733,7 @@ function _object_spread$l(target) {
4370
4733
  }));
4371
4734
  }
4372
4735
  ownKeys.forEach(function(key) {
4373
- _define_property$l(target, key, source[key]);
4736
+ _define_property$m(target, key, source[key]);
4374
4737
  });
4375
4738
  }
4376
4739
  return target;
@@ -4388,12 +4751,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4388
4751
  }
4389
4752
  /** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
4390
4753
  if (!config) return {};
4391
- return _object_spread$l({}, config.spreadsheet ? {
4392
- spreadsheet: _object_spread$l({}, config.spreadsheet)
4754
+ return _object_spread$m({}, config.spreadsheet ? {
4755
+ spreadsheet: _object_spread$m({}, config.spreadsheet)
4393
4756
  } : {}, config.tableMetadataRequirements !== undefined ? {
4394
4757
  tableMetadataRequirements: config.tableMetadataRequirements
4395
4758
  } : {}, config.questionGeneration ? {
4396
- questionGeneration: _object_spread$l({}, config.questionGeneration)
4759
+ questionGeneration: _object_spread$m({}, config.questionGeneration)
4397
4760
  } : {}, config.chunkLanguageHint !== undefined ? {
4398
4761
  chunkLanguageHint: config.chunkLanguageHint
4399
4762
  } : {}, config.maxChunkTokens !== undefined ? {
@@ -4407,7 +4770,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4407
4770
  } : {}, config.textSplitterType ? {
4408
4771
  textSplitterType: config.textSplitterType
4409
4772
  } : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
4410
- textSplitter: _object_spread$l({}, config.chunkSize != null ? {
4773
+ textSplitter: _object_spread$m({}, config.chunkSize != null ? {
4411
4774
  chunkSize: config.chunkSize
4412
4775
  } : {}, config.chunkOverlap != null ? {
4413
4776
  chunkOverlap: config.chunkOverlap
@@ -4419,7 +4782,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4419
4782
  } : {}, config.imageUnderstandingType ? {
4420
4783
  imageUnderstandingType: config.imageUnderstandingType
4421
4784
  } : {}, config.imageUnderstanding ? {
4422
- imageUnderstanding: _object_spread$l({}, config.imageUnderstanding)
4785
+ imageUnderstanding: _object_spread$m({}, config.imageUnderstanding)
4423
4786
  } : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
4424
4787
  }
4425
4788
  /** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
@@ -4484,7 +4847,7 @@ function genPipelineKnowledgeBaseKey() {
4484
4847
  return letterStartSUID("KnowledgeBase_");
4485
4848
  }
4486
4849
 
4487
- function _define_property$k(obj, key, value) {
4850
+ function _define_property$l(obj, key, value) {
4488
4851
  if (key in obj) {
4489
4852
  Object.defineProperty(obj, key, {
4490
4853
  value: value,
@@ -4497,7 +4860,7 @@ function _define_property$k(obj, key, value) {
4497
4860
  }
4498
4861
  return obj;
4499
4862
  }
4500
- function _object_spread$k(target) {
4863
+ function _object_spread$l(target) {
4501
4864
  for(var i = 1; i < arguments.length; i++){
4502
4865
  var source = arguments[i] != null ? arguments[i] : {};
4503
4866
  var ownKeys = Object.keys(source);
@@ -4507,7 +4870,7 @@ function _object_spread$k(target) {
4507
4870
  }));
4508
4871
  }
4509
4872
  ownKeys.forEach(function(key) {
4510
- _define_property$k(target, key, source[key]);
4873
+ _define_property$l(target, key, source[key]);
4511
4874
  });
4512
4875
  }
4513
4876
  return target;
@@ -4527,7 +4890,7 @@ function _object_spread$k(target) {
4527
4890
  * @deprecated use DocumentSourceProviderCategoryEnum local file type instead
4528
4891
  */ DocumentTypeEnum["FILE"] = "file";
4529
4892
  })(DocumentTypeEnum || (DocumentTypeEnum = {}));
4530
- var KDocumentSourceType = _object_spread$k({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
4893
+ var KDocumentSourceType = _object_spread$l({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
4531
4894
  /**
4532
4895
  * Document type category, determine how to process the document.
4533
4896
  */ var KBDocumentCategoryEnum;
@@ -5413,7 +5776,7 @@ function _array_like_to_array$o(arr, len) {
5413
5776
  function _array_without_holes$d(arr) {
5414
5777
  if (Array.isArray(arr)) return _array_like_to_array$o(arr);
5415
5778
  }
5416
- function _define_property$j(obj, key, value) {
5779
+ function _define_property$k(obj, key, value) {
5417
5780
  if (key in obj) {
5418
5781
  Object.defineProperty(obj, key, {
5419
5782
  value: value,
@@ -5432,7 +5795,7 @@ function _iterable_to_array$f(iter) {
5432
5795
  function _non_iterable_spread$d() {
5433
5796
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5434
5797
  }
5435
- function _object_spread$j(target) {
5798
+ function _object_spread$k(target) {
5436
5799
  for(var i = 1; i < arguments.length; i++){
5437
5800
  var source = arguments[i] != null ? arguments[i] : {};
5438
5801
  var ownKeys = Object.keys(source);
@@ -5442,12 +5805,12 @@ function _object_spread$j(target) {
5442
5805
  }));
5443
5806
  }
5444
5807
  ownKeys.forEach(function(key) {
5445
- _define_property$j(target, key, source[key]);
5808
+ _define_property$k(target, key, source[key]);
5446
5809
  });
5447
5810
  }
5448
5811
  return target;
5449
5812
  }
5450
- function ownKeys$f(object, enumerableOnly) {
5813
+ function ownKeys$g(object, enumerableOnly) {
5451
5814
  var keys = Object.keys(object);
5452
5815
  if (Object.getOwnPropertySymbols) {
5453
5816
  var symbols = Object.getOwnPropertySymbols(object);
@@ -5455,20 +5818,20 @@ function ownKeys$f(object, enumerableOnly) {
5455
5818
  }
5456
5819
  return keys;
5457
5820
  }
5458
- function _object_spread_props$f(target, source) {
5821
+ function _object_spread_props$g(target, source) {
5459
5822
  source = source != null ? source : {};
5460
5823
  if (Object.getOwnPropertyDescriptors) {
5461
5824
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5462
5825
  } else {
5463
- ownKeys$f(Object(source)).forEach(function(key) {
5826
+ ownKeys$g(Object(source)).forEach(function(key) {
5464
5827
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5465
5828
  });
5466
5829
  }
5467
5830
  return target;
5468
5831
  }
5469
- function _object_without_properties$1(source, excluded) {
5832
+ function _object_without_properties$3(source, excluded) {
5470
5833
  if (source == null) return {};
5471
- var target = _object_without_properties_loose$1(source, excluded);
5834
+ var target = _object_without_properties_loose$3(source, excluded);
5472
5835
  var key, i;
5473
5836
  if (Object.getOwnPropertySymbols) {
5474
5837
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -5481,7 +5844,7 @@ function _object_without_properties$1(source, excluded) {
5481
5844
  }
5482
5845
  return target;
5483
5846
  }
5484
- function _object_without_properties_loose$1(source, excluded) {
5847
+ function _object_without_properties_loose$3(source, excluded) {
5485
5848
  if (source == null) return {};
5486
5849
  var target = {};
5487
5850
  var sourceKeys = Object.keys(source);
@@ -5506,7 +5869,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
5506
5869
  }
5507
5870
  function omitXpertRelations(xpert) {
5508
5871
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5509
- var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.knowledgebase; _ref.environment; _ref.integrations; _ref.toolsets; _ref.userGroups; var rest = _object_without_properties$1(_ref, [
5872
+ var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.knowledgebase; _ref.environment; _ref.integrations; _ref.toolsets; _ref.userGroups; var rest = _object_without_properties$3(_ref, [
5510
5873
  "draft",
5511
5874
  "agent",
5512
5875
  "agents",
@@ -5541,7 +5904,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
5541
5904
  var graph = resolveDraftRuntimeGraph(xpert, draft);
5542
5905
  var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
5543
5906
  var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
5544
- return _object_spread_props$f(_object_spread$j({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
5907
+ return _object_spread_props$g(_object_spread$k({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
5545
5908
  id: xpert.id,
5546
5909
  tenantId: xpert.tenantId,
5547
5910
  organizationId: xpert.organizationId,
@@ -5825,9 +6188,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5825
6188
  if (node.type === "agent" && node.key === sourceKey) {
5826
6189
  replacedNode = true;
5827
6190
  var _node_entity;
5828
- return _object_spread_props$f(_object_spread$j({}, node), {
6191
+ return _object_spread_props$g(_object_spread$k({}, node), {
5829
6192
  key: targetKey,
5830
- entity: _object_spread_props$f(_object_spread$j({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
6193
+ entity: _object_spread_props$g(_object_spread$k({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
5831
6194
  key: targetKey
5832
6195
  })
5833
6196
  });
@@ -5843,17 +6206,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5843
6206
  if (from === connection.from && to === connection.to) {
5844
6207
  return connection;
5845
6208
  }
5846
- return _object_spread_props$f(_object_spread$j({}, connection), {
6209
+ return _object_spread_props$g(_object_spread$k({}, connection), {
5847
6210
  from: from,
5848
6211
  to: to,
5849
6212
  key: "".concat(from, "/").concat(to)
5850
6213
  });
5851
6214
  });
5852
- return _object_spread_props$f(_object_spread$j({}, draft), {
5853
- team: draft.team ? _object_spread_props$f(_object_spread$j({}, draft.team), {
5854
- agent: draft.team.agent ? _object_spread_props$f(_object_spread$j({}, draft.team.agent, agent), {
6215
+ return _object_spread_props$g(_object_spread$k({}, draft), {
6216
+ team: draft.team ? _object_spread_props$g(_object_spread$k({}, draft.team), {
6217
+ agent: draft.team.agent ? _object_spread_props$g(_object_spread$k({}, draft.team.agent, agent), {
5855
6218
  key: targetKey
5856
- }) : _object_spread_props$f(_object_spread$j({}, agent), {
6219
+ }) : _object_spread_props$g(_object_spread$k({}, agent), {
5857
6220
  key: targetKey
5858
6221
  })
5859
6222
  }) : draft.team,
@@ -6001,7 +6364,7 @@ var GENERAL_PROJECT_TYPE = {
6001
6364
  projectTypeKey: "space"
6002
6365
  };
6003
6366
 
6004
- function _define_property$i(obj, key, value) {
6367
+ function _define_property$j(obj, key, value) {
6005
6368
  if (key in obj) {
6006
6369
  Object.defineProperty(obj, key, {
6007
6370
  value: value,
@@ -6014,7 +6377,7 @@ function _define_property$i(obj, key, value) {
6014
6377
  }
6015
6378
  return obj;
6016
6379
  }
6017
- function _object_spread$i(target) {
6380
+ function _object_spread$j(target) {
6018
6381
  for(var i = 1; i < arguments.length; i++){
6019
6382
  var source = arguments[i] != null ? arguments[i] : {};
6020
6383
  var ownKeys = Object.keys(source);
@@ -6024,12 +6387,12 @@ function _object_spread$i(target) {
6024
6387
  }));
6025
6388
  }
6026
6389
  ownKeys.forEach(function(key) {
6027
- _define_property$i(target, key, source[key]);
6390
+ _define_property$j(target, key, source[key]);
6028
6391
  });
6029
6392
  }
6030
6393
  return target;
6031
6394
  }
6032
- function ownKeys$e(object, enumerableOnly) {
6395
+ function ownKeys$f(object, enumerableOnly) {
6033
6396
  var keys = Object.keys(object);
6034
6397
  if (Object.getOwnPropertySymbols) {
6035
6398
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6037,12 +6400,12 @@ function ownKeys$e(object, enumerableOnly) {
6037
6400
  }
6038
6401
  return keys;
6039
6402
  }
6040
- function _object_spread_props$e(target, source) {
6403
+ function _object_spread_props$f(target, source) {
6041
6404
  source = source != null ? source : {};
6042
6405
  if (Object.getOwnPropertyDescriptors) {
6043
6406
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6044
6407
  } else {
6045
- ownKeys$e(Object(source)).forEach(function(key) {
6408
+ ownKeys$f(Object(source)).forEach(function(key) {
6046
6409
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6047
6410
  });
6048
6411
  }
@@ -6071,7 +6434,7 @@ function projectTaskConfigurationSchema(defaultSeconds) {
6071
6434
  type: "object",
6072
6435
  additionalProperties: false,
6073
6436
  properties: {
6074
- taskExecutionMaxDurationSeconds: _object_spread_props$e(_object_spread$i({
6437
+ taskExecutionMaxDurationSeconds: _object_spread_props$f(_object_spread$j({
6075
6438
  type: "integer",
6076
6439
  minimum: 60,
6077
6440
  maximum: 86400
@@ -6083,8 +6446,8 @@ function projectTaskConfigurationSchema(defaultSeconds) {
6083
6446
  zh_Hans: "单次任务执行上限(秒)"
6084
6447
  },
6085
6448
  description: {
6086
- en_US: "7200 seconds is 2 hours. Applies to new implementation and review attempts, within the tenant limit.",
6087
- zh_Hans: "7200 秒为 2 小时。在租户允许的上限内,对新的开发和验收执行生效。"
6449
+ en_US: "43200 seconds is 12 hours; omit to inherit the tenant default. Applies to new implementation and review attempts, within the tenant limit.",
6450
+ zh_Hans: "43200 秒为 12 小时;留空继承租户默认值。在租户允许的上限内,对新的开发和验收执行生效。"
6088
6451
  }
6089
6452
  })
6090
6453
  }
@@ -6150,7 +6513,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
6150
6513
  * @template Metadata - Type of metadata, defaults to IDocChunkMetadata
6151
6514
  * @param documents - A flat array of DocumentInterface objects
6152
6515
  * @returns the hierarchical tree (root-level DocumentInterface[])
6153
- */ function _define_property$h(obj, key, value) {
6516
+ */ function _define_property$i(obj, key, value) {
6154
6517
  if (key in obj) {
6155
6518
  Object.defineProperty(obj, key, {
6156
6519
  value: value,
@@ -6163,7 +6526,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
6163
6526
  }
6164
6527
  return obj;
6165
6528
  }
6166
- function _object_spread$h(target) {
6529
+ function _object_spread$i(target) {
6167
6530
  for(var i = 1; i < arguments.length; i++){
6168
6531
  var source = arguments[i] != null ? arguments[i] : {};
6169
6532
  var ownKeys = Object.keys(source);
@@ -6173,12 +6536,12 @@ function _object_spread$h(target) {
6173
6536
  }));
6174
6537
  }
6175
6538
  ownKeys.forEach(function(key) {
6176
- _define_property$h(target, key, source[key]);
6539
+ _define_property$i(target, key, source[key]);
6177
6540
  });
6178
6541
  }
6179
6542
  return target;
6180
6543
  }
6181
- function ownKeys$d(object, enumerableOnly) {
6544
+ function ownKeys$e(object, enumerableOnly) {
6182
6545
  var keys = Object.keys(object);
6183
6546
  if (Object.getOwnPropertySymbols) {
6184
6547
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6186,12 +6549,12 @@ function ownKeys$d(object, enumerableOnly) {
6186
6549
  }
6187
6550
  return keys;
6188
6551
  }
6189
- function _object_spread_props$d(target, source) {
6552
+ function _object_spread_props$e(target, source) {
6190
6553
  source = source != null ? source : {};
6191
6554
  if (Object.getOwnPropertyDescriptors) {
6192
6555
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6193
6556
  } else {
6194
- ownKeys$d(Object(source)).forEach(function(key) {
6557
+ ownKeys$e(Object(source)).forEach(function(key) {
6195
6558
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6196
6559
  });
6197
6560
  }
@@ -6206,8 +6569,8 @@ function buildChunkTree(documents) {
6206
6569
  documents.forEach(function(doc, index) {
6207
6570
  var chunkId = getChunkNodeId(doc);
6208
6571
  if (chunkId) {
6209
- map.set(chunkId, _object_spread_props$d(_object_spread$h({}, doc), {
6210
- metadata: _object_spread_props$d(_object_spread$h({}, doc.metadata), {
6572
+ map.set(chunkId, _object_spread_props$e(_object_spread$i({}, doc), {
6573
+ metadata: _object_spread_props$e(_object_spread$i({}, doc.metadata), {
6211
6574
  chunkId: chunkId,
6212
6575
  children: []
6213
6576
  })
@@ -6757,7 +7120,7 @@ function isLocalPath(value) {
6757
7120
  })).size === value.length;
6758
7121
  }
6759
7122
 
6760
- function _define_property$g(obj, key, value) {
7123
+ function _define_property$h(obj, key, value) {
6761
7124
  if (key in obj) {
6762
7125
  Object.defineProperty(obj, key, {
6763
7126
  value: value,
@@ -6770,7 +7133,7 @@ function _define_property$g(obj, key, value) {
6770
7133
  }
6771
7134
  return obj;
6772
7135
  }
6773
- function _object_spread$g(target) {
7136
+ function _object_spread$h(target) {
6774
7137
  for(var i = 1; i < arguments.length; i++){
6775
7138
  var source = arguments[i] != null ? arguments[i] : {};
6776
7139
  var ownKeys = Object.keys(source);
@@ -6780,12 +7143,12 @@ function _object_spread$g(target) {
6780
7143
  }));
6781
7144
  }
6782
7145
  ownKeys.forEach(function(key) {
6783
- _define_property$g(target, key, source[key]);
7146
+ _define_property$h(target, key, source[key]);
6784
7147
  });
6785
7148
  }
6786
7149
  return target;
6787
7150
  }
6788
- function ownKeys$c(object, enumerableOnly) {
7151
+ function ownKeys$d(object, enumerableOnly) {
6789
7152
  var keys = Object.keys(object);
6790
7153
  if (Object.getOwnPropertySymbols) {
6791
7154
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6793,12 +7156,12 @@ function ownKeys$c(object, enumerableOnly) {
6793
7156
  }
6794
7157
  return keys;
6795
7158
  }
6796
- function _object_spread_props$c(target, source) {
7159
+ function _object_spread_props$d(target, source) {
6797
7160
  source = source != null ? source : {};
6798
7161
  if (Object.getOwnPropertyDescriptors) {
6799
7162
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6800
7163
  } else {
6801
- ownKeys$c(Object(source)).forEach(function(key) {
7164
+ ownKeys$d(Object(source)).forEach(function(key) {
6802
7165
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6803
7166
  });
6804
7167
  }
@@ -6806,6 +7169,7 @@ function _object_spread_props$c(target, source) {
6806
7169
  }
6807
7170
  var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
6808
7171
  var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
7172
+ var XPERT_FILE_MEMORY_MIDDLEWARE_NAME = "XpertFileMemoryMiddleware";
6809
7173
  var SKILLS_MIDDLEWARE_NAME = "skillsMiddleware";
6810
7174
  function isMiddlewareToolEnabled(config) {
6811
7175
  if (typeof config === "boolean") {
@@ -6838,8 +7202,8 @@ function normalizeMiddlewareNode(node) {
6838
7202
  if (provider === entity.provider) {
6839
7203
  return node;
6840
7204
  }
6841
- return _object_spread_props$c(_object_spread$g({}, node), {
6842
- entity: _object_spread_props$c(_object_spread$g({}, entity), {
7205
+ return _object_spread_props$d(_object_spread$h({}, node), {
7206
+ entity: _object_spread_props$d(_object_spread$h({}, entity), {
6843
7207
  provider: provider
6844
7208
  })
6845
7209
  });
@@ -6900,7 +7264,7 @@ function _array_with_holes$e(arr) {
6900
7264
  function _array_without_holes$c(arr) {
6901
7265
  if (Array.isArray(arr)) return _array_like_to_array$l(arr);
6902
7266
  }
6903
- function _define_property$f(obj, key, value) {
7267
+ function _define_property$g(obj, key, value) {
6904
7268
  if (key in obj) {
6905
7269
  Object.defineProperty(obj, key, {
6906
7270
  value: value,
@@ -6946,7 +7310,7 @@ function _non_iterable_rest$e() {
6946
7310
  function _non_iterable_spread$c() {
6947
7311
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6948
7312
  }
6949
- function _object_spread$f(target) {
7313
+ function _object_spread$g(target) {
6950
7314
  for(var i = 1; i < arguments.length; i++){
6951
7315
  var source = arguments[i] != null ? arguments[i] : {};
6952
7316
  var ownKeys = Object.keys(source);
@@ -6956,12 +7320,12 @@ function _object_spread$f(target) {
6956
7320
  }));
6957
7321
  }
6958
7322
  ownKeys.forEach(function(key) {
6959
- _define_property$f(target, key, source[key]);
7323
+ _define_property$g(target, key, source[key]);
6960
7324
  });
6961
7325
  }
6962
7326
  return target;
6963
7327
  }
6964
- function ownKeys$b(object, enumerableOnly) {
7328
+ function ownKeys$c(object, enumerableOnly) {
6965
7329
  var keys = Object.keys(object);
6966
7330
  if (Object.getOwnPropertySymbols) {
6967
7331
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6969,20 +7333,20 @@ function ownKeys$b(object, enumerableOnly) {
6969
7333
  }
6970
7334
  return keys;
6971
7335
  }
6972
- function _object_spread_props$b(target, source) {
7336
+ function _object_spread_props$c(target, source) {
6973
7337
  source = source != null ? source : {};
6974
7338
  if (Object.getOwnPropertyDescriptors) {
6975
7339
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6976
7340
  } else {
6977
- ownKeys$b(Object(source)).forEach(function(key) {
7341
+ ownKeys$c(Object(source)).forEach(function(key) {
6978
7342
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6979
7343
  });
6980
7344
  }
6981
7345
  return target;
6982
7346
  }
6983
- function _object_without_properties(source, excluded) {
7347
+ function _object_without_properties$2(source, excluded) {
6984
7348
  if (source == null) return {};
6985
- var target = _object_without_properties_loose(source, excluded);
7349
+ var target = _object_without_properties_loose$2(source, excluded);
6986
7350
  var key, i;
6987
7351
  if (Object.getOwnPropertySymbols) {
6988
7352
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -6995,7 +7359,7 @@ function _object_without_properties(source, excluded) {
6995
7359
  }
6996
7360
  return target;
6997
7361
  }
6998
- function _object_without_properties_loose(source, excluded) {
7362
+ function _object_without_properties_loose$2(source, excluded) {
6999
7363
  if (source == null) return {};
7000
7364
  var target = {};
7001
7365
  var sourceKeys = Object.keys(source);
@@ -7090,7 +7454,7 @@ function normalizeIncomingContent(content, context) {
7090
7454
  if (typeof content !== "string") {
7091
7455
  return content;
7092
7456
  }
7093
- return _object_spread$f({
7457
+ return _object_spread$g({
7094
7458
  type: "text",
7095
7459
  text: content
7096
7460
  }, context.streamId ? {
@@ -7155,7 +7519,7 @@ function filterText(content) {
7155
7519
  return "";
7156
7520
  }
7157
7521
  function mergeTextChunkForDisplay(previous, incoming) {
7158
- return _object_spread$f(_object_spread_props$b(_object_spread$f({}, previous), {
7522
+ return _object_spread$g(_object_spread_props$c(_object_spread$g({}, previous), {
7159
7523
  text: "".concat(previous.text).concat(incoming.text)
7160
7524
  }), !previous.id && incoming.id ? {
7161
7525
  id: incoming.id
@@ -7167,7 +7531,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
7167
7531
  }
7168
7532
  function stripAutoDisplaySeparator(incoming, previousOriginal) {
7169
7533
  if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
7170
- return _object_spread_props$b(_object_spread$f({}, incoming), {
7534
+ return _object_spread_props$c(_object_spread$g({}, incoming), {
7171
7535
  text: incoming.text.slice(1)
7172
7536
  });
7173
7537
  }
@@ -7178,20 +7542,22 @@ function mergeComponentData(previous, incoming) {
7178
7542
  var _incoming_data1;
7179
7543
  var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
7180
7544
  var _param = _sliced_to_array$d(param, 2), key = _param[0], value = _param[1];
7181
- if (!isNil(value)) {
7545
+ var _incoming_data;
7546
+ var explicitNull = value === null && ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data["toolPresentation"]) === "redacted" && (key === "input" || key === "output");
7547
+ if (!isNil(value) || explicitNull) {
7182
7548
  acc[key] = value;
7183
7549
  }
7184
7550
  return acc;
7185
7551
  }, {});
7186
7552
  var _previous_data1;
7187
- return _object_spread_props$b(_object_spread$f({}, previous, incoming), {
7188
- data: _object_spread_props$b(_object_spread$f({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
7553
+ return _object_spread_props$c(_object_spread$g({}, previous, incoming), {
7554
+ data: _object_spread_props$c(_object_spread$g({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
7189
7555
  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)
7190
7556
  })
7191
7557
  });
7192
7558
  }
7193
7559
  function inferMessageAppendContext(content, fallbackSource) {
7194
- return _object_spread$f({
7560
+ return _object_spread$g({
7195
7561
  source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
7196
7562
  }, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
7197
7563
  streamId: String(content.id)
@@ -7199,10 +7565,10 @@ function inferMessageAppendContext(content, fallbackSource) {
7199
7565
  }
7200
7566
  function resolveMessageAppendContext(options) {
7201
7567
  var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
7202
- var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$b(_object_spread$f({}, inferredContext), {
7568
+ var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$c(_object_spread$g({}, inferredContext), {
7203
7569
  streamId: options.fallbackStreamId
7204
7570
  }) : inferredContext;
7205
- var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$b(_object_spread$f({}, appendContext), {
7571
+ var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$c(_object_spread$g({}, appendContext), {
7206
7572
  joinHint: "none"
7207
7573
  }) : appendContext;
7208
7574
  return {
@@ -7223,7 +7589,7 @@ function resolveMessageAppendContext(options) {
7223
7589
  var previous = initial;
7224
7590
  return {
7225
7591
  resolve: function resolve(options) {
7226
- var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$f({}, options), {
7592
+ var resolved = resolveMessageAppendContext(_object_spread_props$c(_object_spread$g({}, options), {
7227
7593
  previous: previous
7228
7594
  }));
7229
7595
  if (!isFileActivityContent(options.incoming) && !isResourceCardContent(options.incoming)) previous = resolved.appendContext;
@@ -7258,13 +7624,13 @@ function resolveMessageAppendContext(options) {
7258
7624
  return;
7259
7625
  }
7260
7626
  aiMessage.status = "answering";
7261
- 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, [
7627
+ var _ref = context !== null && context !== void 0 ? context : {}, _ref_previous = _ref.previous, previous = _ref_previous === void 0 ? null : _ref_previous, contextWithoutPrevious = _object_without_properties$2(_ref, [
7262
7628
  "previous"
7263
7629
  ]);
7264
- var appendContext = _object_spread$f({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
7630
+ var appendContext = _object_spread$g({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
7265
7631
  var _appendContext_joinHint;
7266
7632
  var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
7267
- var messageContext = joinHint ? _object_spread_props$b(_object_spread$f({}, appendContext), {
7633
+ var messageContext = joinHint ? _object_spread_props$c(_object_spread$g({}, appendContext), {
7268
7634
  joinHint: joinHint
7269
7635
  }) : appendContext;
7270
7636
  var content = normalizeIncomingContent(incoming, appendContext);
@@ -7273,7 +7639,7 @@ function resolveMessageAppendContext(options) {
7273
7639
  var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
7274
7640
  var lastReasoning = reasoning[reasoning.length - 1];
7275
7641
  if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
7276
- var mergedReasoning = _object_spread_props$b(_object_spread$f({}, lastReasoning), {
7642
+ var mergedReasoning = _object_spread_props$c(_object_spread$g({}, lastReasoning), {
7277
7643
  text: "".concat(lastReasoning.text).concat(content.text)
7278
7644
  });
7279
7645
  aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
@@ -7294,7 +7660,7 @@ function resolveMessageAppendContext(options) {
7294
7660
  return isTextContent(item) && item.id === content.id;
7295
7661
  });
7296
7662
  if (index > -1) {
7297
- var mergedContent = _object_spread$f(_object_spread_props$b(_object_spread$f({}, chunks[index]), {
7663
+ var mergedContent = _object_spread$g(_object_spread_props$c(_object_spread$g({}, chunks[index]), {
7298
7664
  text: "".concat(chunks[index].text).concat(content.text)
7299
7665
  }), !chunks[index].id && content.id ? {
7300
7666
  id: content.id
@@ -7317,7 +7683,7 @@ function resolveMessageAppendContext(options) {
7317
7683
  var existingIndex = findLastTextChunkIndexById(chunks, content.id);
7318
7684
  if (existingIndex > -1) {
7319
7685
  var existing = chunks[existingIndex];
7320
- var merged = _object_spread_props$b(_object_spread$f({}, existing), {
7686
+ var merged = _object_spread_props$c(_object_spread$g({}, existing), {
7321
7687
  text: "".concat(existing.text).concat(content.text)
7322
7688
  });
7323
7689
  var nextChunks = _to_consumable_array$c(chunks);
@@ -7326,7 +7692,7 @@ function resolveMessageAppendContext(options) {
7326
7692
  return;
7327
7693
  }
7328
7694
  } else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
7329
- var mergedLastContent = _object_spread_props$b(_object_spread$f({}, lastContent), {
7695
+ var mergedLastContent = _object_spread_props$c(_object_spread$g({}, lastContent), {
7330
7696
  text: "".concat(lastContent.text).concat(content.text)
7331
7697
  });
7332
7698
  aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
@@ -7335,7 +7701,7 @@ function resolveMessageAppendContext(options) {
7335
7701
  return;
7336
7702
  }
7337
7703
  var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
7338
- var appended = _object_spread_props$b(_object_spread$f({}, content), {
7704
+ var appended = _object_spread_props$c(_object_spread$g({}, content), {
7339
7705
  text: separator + content.text
7340
7706
  });
7341
7707
  aiMessage.content = _to_consumable_array$c(chunks).concat([
@@ -7359,7 +7725,7 @@ function resolveMessageAppendContext(options) {
7359
7725
  aiMessage.content = nextChunks1;
7360
7726
  }
7361
7727
  function appendMessagePlainText(accumulator, incoming, context) {
7362
- var resolvedContext = _object_spread$f({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
7728
+ var resolvedContext = _object_spread$g({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
7363
7729
  var nextText = filterText(incoming);
7364
7730
  if (!nextText) {
7365
7731
  return accumulator !== null && accumulator !== void 0 ? accumulator : "";
@@ -7404,7 +7770,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
7404
7770
  return;
7405
7771
  }
7406
7772
  textIndexById.set(item.id, merged.length);
7407
- merged.push(_object_spread$f({}, item));
7773
+ merged.push(_object_spread$g({}, item));
7408
7774
  return;
7409
7775
  }
7410
7776
  var lastItem = merged[merged.length - 1];
@@ -7412,7 +7778,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
7412
7778
  merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
7413
7779
  return;
7414
7780
  }
7415
- merged.push(_object_spread$f({}, item));
7781
+ merged.push(_object_spread$g({}, item));
7416
7782
  });
7417
7783
  return merged.length ? merged : null;
7418
7784
  }
@@ -7427,7 +7793,7 @@ function stringifyMessageContent(content) {
7427
7793
  if (isFileActivityContent(item) || isResourceCardContent(item)) return;
7428
7794
  var itemContext = inferMessageAppendContext(item);
7429
7795
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
7430
- result = appendMessagePlainText(result, stringifySingle(item), _object_spread$f({}, itemContext, joinHint ? {
7796
+ result = appendMessagePlainText(result, stringifySingle(item), _object_spread$g({}, itemContext, joinHint ? {
7431
7797
  joinHint: joinHint
7432
7798
  } : {}));
7433
7799
  previousContext = itemContext;
@@ -7450,7 +7816,7 @@ function filterMessageText(content) {
7450
7816
  }
7451
7817
  var itemContext = inferMessageAppendContext(item);
7452
7818
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
7453
- result = appendMessagePlainText(result, nextText, _object_spread$f({}, itemContext, joinHint ? {
7819
+ result = appendMessagePlainText(result, nextText, _object_spread$g({}, itemContext, joinHint ? {
7454
7820
  joinHint: joinHint
7455
7821
  } : {}));
7456
7822
  previousContext = itemContext;
@@ -7897,20 +8263,27 @@ var AGENT_OUTPUT_MAX_PATHS = 128;
7897
8263
  }, "Expected a relative file path");
7898
8264
  /** An export selection is a list of exact files, never a filesystem search. */ var deliveryPathsSchema = z.array(agentResultPathSchema.refine(function(path) {
7899
8265
  return !/[*?\[\]{}]/.test(path);
7900
- }, "Delivery paths must be exact relative file paths, without wildcards. Omit paths to use the executor's declared deliverables.")).min(1).max(AGENT_OUTPUT_MAX_PATHS).optional().describe("Exact file paths relative to the task working directory. No wildcards/globs or directories. If filenames are determined during execution, omit paths and require the executor to declare each deliverable as a file result item.");
7901
- /** Omission means no export. Optional paths restrict the adapter's explicitly declared deliverables. */ var agentOutputDeliverySchema = z.discriminatedUnion("mode", [
8266
+ }, "Delivery paths must be exact relative file paths, without wildcards. Select paths explicitly when they are known.")).min(1).max(AGENT_OUTPUT_MAX_PATHS).optional().describe("Exact file paths relative to the task working directory. No wildcards/globs or directories. If filenames are determined during execution, collect them with delivery recovery once the exact paths are known.");
8267
+ /** Omission means no file delivery. A report file is optional and independent of artifact export mode. */ var agentOutputDeliverySchema = z.discriminatedUnion("mode", [
7902
8268
  z.object({
7903
- mode: z.literal("none")
8269
+ mode: z.literal("none"),
8270
+ reportPath: agentResultPathSchema.optional()
7904
8271
  }).strict(),
7905
8272
  z.object({
7906
8273
  mode: z.literal("files"),
7907
- paths: deliveryPathsSchema
8274
+ paths: deliveryPathsSchema,
8275
+ reportPath: agentResultPathSchema.optional()
7908
8276
  }).strict(),
7909
8277
  z.object({
7910
8278
  mode: z.literal("archive"),
7911
- paths: deliveryPathsSchema
8279
+ paths: deliveryPathsSchema,
8280
+ reportPath: agentResultPathSchema.optional()
7912
8281
  }).strict()
7913
8282
  ]);
8283
+ /** A delivery retry cannot relaunch the executor or change its originally selected report. */ var agentDeliveryRecoverySchema = z.object({
8284
+ expectedRevision: z.number().int().nonnegative(),
8285
+ paths: deliveryPathsSchema
8286
+ }).strict();
7914
8287
 
7915
8288
  var projectTaskSpecificationDigestSchema = z.string().regex(/^sha256:[a-f0-9]{64}$/);
7916
8289
  /** Only requirements belong here; status, progress, assignment and generic revision do not. */ var projectTaskSpecificationSchema = z.object({
@@ -7962,7 +8335,7 @@ var projectTaskReviewerSchema = z.object({
7962
8335
  }).strict();
7963
8336
  var projectTaskReworkSchema = z.object({
7964
8337
  reviewExecutionId: z.string().uuid(),
7965
- findingIds: z.array(z.string().trim().min(1).max(100)).min(1).max(64)
8338
+ feedback: z.string().trim().min(1).max(16000).describe("Concrete rework instructions based on the referenced Markdown review.")
7966
8339
  }).strict();
7967
8340
  /** Relative paths are references, never access grants. Runtimes own snapshot exclusions and containment. */ var projectTaskRelativePathSchema = z.string().min(1).max(1000).refine(function(value) {
7968
8341
  return !/^(?:\/|[a-zA-Z]:)/.test(value) && !value.includes("\\") && !/[\x00-\x1f\x7f]/.test(value) && value.split("/").every(function(part) {
@@ -8076,85 +8449,20 @@ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
8076
8449
  })
8077
8450
  ]).superRefine(validateReviewCandidate).optional()
8078
8451
  }).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
8079
- /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskEvidenceReviewReportSchema = z.object({
8080
- version: z.literal(1),
8081
- verdict: z.enum([
8082
- "pass",
8083
- "changes_required",
8084
- "indeterminate"
8085
- ]),
8086
- specificationDigest: projectTaskSpecificationDigestSchema,
8087
- implementationInvocationId: z.string().uuid(),
8088
- evidence: z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
8089
- findings: z.array(z.string().trim().min(1).max(4000)).min(1).max(64),
8090
- limitations: z.array(z.string().trim().min(1).max(4000)).max(64)
8452
+ /** Markdown is authored evidence. Only an explicit coordinator decision accepts a task. */ var projectTaskReviewReportSchema = z.object({
8453
+ format: z.literal("markdown"),
8454
+ markdown: z.string().min(1)
8091
8455
  }).strict();
8092
- var projectTaskReviewFindingSchema = z.object({
8093
- id: z.string().trim().min(1).max(100),
8094
- kind: z.enum([
8095
- "defect",
8096
- "environment",
8097
- "requirement",
8098
- "coverage",
8099
- "suggestion"
8100
- ]),
8101
- blocking: z.boolean(),
8102
- description: z.string().trim().min(1).max(4000),
8103
- requirement: z.string().max(4000).optional(),
8104
- reproduction: z.string().max(8000).optional(),
8105
- expected: z.string().max(4000).optional(),
8106
- actual: z.string().max(8000).optional()
8107
- }).strict();
8108
- var projectTaskExecutionReviewReportSchema = z.object({
8109
- version: z.literal(2),
8110
- mode: z.literal("execution"),
8111
- verdict: z.enum([
8112
- "pass",
8113
- "changes_required",
8114
- "indeterminate"
8456
+ // Agent-facing references bind an observed candidate; authorization remains with the host.
8457
+ var projectTaskDecisionToolInputSchema = z.object({
8458
+ decisionRef: z.string().max(200).regex(/^pd1\/[0-9a-f-]{36}\/[0-9a-f-]{36}\/[0-9a-f]{64}$/),
8459
+ outcome: z.enum([
8460
+ "accept",
8461
+ "rework"
8115
8462
  ]),
8116
- specificationDigest: projectTaskSpecificationDigestSchema,
8117
- implementationInvocationId: z.string().uuid(),
8118
- evidence: z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
8119
- summary: z.string().trim().min(1).max(8000),
8120
- checks: z.array(z.object({
8121
- description: z.string().trim().min(1).max(4000),
8122
- outcome: z.enum([
8123
- "passed",
8124
- "failed",
8125
- "blocked"
8126
- ]),
8127
- command: z.string().max(4000).optional(),
8128
- expected: z.string().max(4000).optional(),
8129
- actual: z.string().trim().min(1).max(8000),
8130
- evidencePaths: z.array(projectTaskEvidencePathSchema).max(64).optional()
8131
- }).strict()).min(1).max(64),
8132
- findings: z.array(projectTaskReviewFindingSchema).max(64),
8133
- limitations: z.array(z.string().trim().min(1).max(4000)).max(64)
8134
- }).strict().superRefine(function(report, context) {
8135
- if (new Set(report.findings.map(function(item) {
8136
- return item.id;
8137
- })).size !== report.findings.length) context.addIssue({
8138
- code: "custom",
8139
- path: [
8140
- "findings"
8141
- ],
8142
- message: "Finding IDs must be unique."
8143
- });
8144
- if (report.verdict === "pass" && report.findings.some(function(item) {
8145
- return item.blocking;
8146
- })) context.addIssue({
8147
- code: "custom",
8148
- path: [
8149
- "verdict"
8150
- ],
8151
- message: "A passing report cannot contain blocking findings."
8152
- });
8153
- });
8154
- var projectTaskReviewReportSchema = z.union([
8155
- projectTaskEvidenceReviewReportSchema,
8156
- projectTaskExecutionReviewReportSchema
8157
- ]);
8463
+ rationale: z.string().trim().min(1).max(8000),
8464
+ checks: z.array(z.string().trim().min(1).max(4000)).max(64).optional()
8465
+ }).strict();
8158
8466
  var projectTaskDecisionInputSchema = z.object({
8159
8467
  requestId: z.string().uuid(),
8160
8468
  taskId: z.string().uuid(),
@@ -8168,7 +8476,7 @@ var projectTaskDecisionInputSchema = z.object({
8168
8476
  "rework"
8169
8477
  ]),
8170
8478
  rationale: z.string().trim().min(1).max(8000),
8171
- checks: z.array(z.string().trim().min(1).max(4000)).min(1).max(64)
8479
+ checks: z.array(z.string().trim().min(1).max(4000)).max(64)
8172
8480
  }).strict();
8173
8481
  var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
8174
8482
  actorId: z.string().uuid(),
@@ -8178,6 +8486,11 @@ var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
8178
8486
  "project_agent"
8179
8487
  ]),
8180
8488
  executionId: z.string().uuid().optional(),
8489
+ reviewResult: z.object({
8490
+ invocationId: z.string().uuid(),
8491
+ revision: z.number().int().nonnegative(),
8492
+ sha256: z.string().regex(/^[a-f0-9]{64}$/)
8493
+ }).strict().optional(),
8181
8494
  decidedAt: z.string().datetime(),
8182
8495
  taskRevision: z.number().int().positive()
8183
8496
  }).strict();
@@ -8275,7 +8588,7 @@ var projectPipelineEdgeSchema = z.object({
8275
8588
  outcome: projectPipelineKeySchema.optional()
8276
8589
  }).strict();
8277
8590
 
8278
- function _define_property$e(obj, key, value) {
8591
+ function _define_property$f(obj, key, value) {
8279
8592
  if (key in obj) {
8280
8593
  Object.defineProperty(obj, key, {
8281
8594
  value: value,
@@ -8288,7 +8601,7 @@ function _define_property$e(obj, key, value) {
8288
8601
  }
8289
8602
  return obj;
8290
8603
  }
8291
- function _object_spread$e(target) {
8604
+ function _object_spread$f(target) {
8292
8605
  for(var i = 1; i < arguments.length; i++){
8293
8606
  var source = arguments[i] != null ? arguments[i] : {};
8294
8607
  var ownKeys = Object.keys(source);
@@ -8298,12 +8611,12 @@ function _object_spread$e(target) {
8298
8611
  }));
8299
8612
  }
8300
8613
  ownKeys.forEach(function(key) {
8301
- _define_property$e(target, key, source[key]);
8614
+ _define_property$f(target, key, source[key]);
8302
8615
  });
8303
8616
  }
8304
8617
  return target;
8305
8618
  }
8306
- function ownKeys$a(object, enumerableOnly) {
8619
+ function ownKeys$b(object, enumerableOnly) {
8307
8620
  var keys = Object.keys(object);
8308
8621
  if (Object.getOwnPropertySymbols) {
8309
8622
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8311,12 +8624,12 @@ function ownKeys$a(object, enumerableOnly) {
8311
8624
  }
8312
8625
  return keys;
8313
8626
  }
8314
- function _object_spread_props$a(target, source) {
8627
+ function _object_spread_props$b(target, source) {
8315
8628
  source = source != null ? source : {};
8316
8629
  if (Object.getOwnPropertyDescriptors) {
8317
8630
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8318
8631
  } else {
8319
- ownKeys$a(Object(source)).forEach(function(key) {
8632
+ ownKeys$b(Object(source)).forEach(function(key) {
8320
8633
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8321
8634
  });
8322
8635
  }
@@ -8331,32 +8644,35 @@ var base$1 = {
8331
8644
  };
8332
8645
  var outcomes = z.array(projectPipelineKeySchema).min(2).max(32);
8333
8646
  /** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = z.discriminatedUnion("kind", [
8334
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8647
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8335
8648
  kind: z.literal("work"),
8336
8649
  laneKey: projectPipelineKeySchema,
8650
+ presentation: z.object({
8651
+ foldIntoApproval: projectPipelineKeySchema
8652
+ }).strict().optional(),
8337
8653
  operationRef: projectPipelineRefSchema,
8338
8654
  executorSlot: projectPipelineKeySchema,
8339
8655
  completionRef: projectPipelineRefSchema,
8340
8656
  resourceResolverRef: projectPipelineRefSchema.optional(),
8341
8657
  outputSchemaRef: projectPipelineRefSchema.optional()
8342
8658
  })).strict(),
8343
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8659
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8344
8660
  kind: z.literal("fork")
8345
8661
  })).strict(),
8346
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8662
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8347
8663
  kind: z.literal("join"),
8348
8664
  join: z.object({
8349
8665
  mode: z.literal("all_selected"),
8350
8666
  accept: z.literal("completed")
8351
8667
  }).strict()
8352
8668
  })).strict(),
8353
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8669
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8354
8670
  kind: z.literal("router"),
8355
8671
  policyRef: projectPipelineRefSchema,
8356
8672
  outcomes: outcomes,
8357
8673
  unmatched: z.literal("block")
8358
8674
  })).strict(),
8359
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8675
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8360
8676
  kind: z.literal("human_gate"),
8361
8677
  laneKey: projectPipelineKeySchema,
8362
8678
  policyRef: projectPipelineRefSchema,
@@ -8364,12 +8680,12 @@ var outcomes = z.array(projectPipelineKeySchema).min(2).max(32);
8364
8680
  outcomes: outcomes,
8365
8681
  outcomeLabels: z.record(projectPipelineKeySchema, z.string().min(1).max(120)).optional()
8366
8682
  })).strict(),
8367
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8683
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8368
8684
  kind: z.literal("external_wait"),
8369
8685
  laneKey: projectPipelineKeySchema,
8370
8686
  subscriptionRef: projectPipelineRefSchema
8371
8687
  })).strict(),
8372
- z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8688
+ z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8373
8689
  kind: z.literal("terminal"),
8374
8690
  outcome: projectPipelineKeySchema,
8375
8691
  disposition: z.enum([
@@ -8845,9 +9161,24 @@ function _unsupported_iterable_to_array$j(o, minLen) {
8845
9161
  if (!byKey.has(edge.from) || !byKey.has(edge.to)) issue("EDGE_NODE_NOT_FOUND", "edges", index);
8846
9162
  });
8847
9163
  nodes.forEach(function(node, index) {
8848
- var _roles_get, _incoming_get;
9164
+ var _node_presentation, _roles_get, _incoming_get;
8849
9165
  if (!stages.has(node.stageKey)) issue("STAGE_NOT_FOUND", "nodes", index, "stageKey");
8850
9166
  if ("laneKey" in node && !lanes.has(node.laneKey)) issue("LANE_NOT_FOUND", "nodes", index, "laneKey");
9167
+ if (node.kind === "work" && ((_node_presentation = node.presentation) === null || _node_presentation === void 0 ? void 0 : _node_presentation.foldIntoApproval)) {
9168
+ var _roles_get1;
9169
+ var approval = byKey.get(node.presentation.foldIntoApproval);
9170
+ var _incoming_get1;
9171
+ var entries = (_incoming_get1 = incoming.get(node.key)) !== null && _incoming_get1 !== void 0 ? _incoming_get1 : [];
9172
+ if ((approval === null || approval === void 0 ? void 0 : approval.kind) !== "human_gate" || !entries.length || entries.some(function(edge) {
9173
+ return edge.from !== approval.key;
9174
+ })) {
9175
+ issue("APPROVAL_STEP_PARENT_INVALID", "nodes", index, "presentation", "foldIntoApproval");
9176
+ }
9177
+ var lane = lanes.get(node.laneKey);
9178
+ if (lane && !((_roles_get1 = roles.get(lane.roleKey)) === null || _roles_get1 === void 0 ? void 0 : _roles_get1.allowedKinds.includes("service"))) {
9179
+ issue("APPROVAL_STEP_SERVICE_REQUIRED", "nodes", index, "presentation", "foldIntoApproval");
9180
+ }
9181
+ }
8851
9182
  if (node.kind === "human_gate" && !((_roles_get = roles.get(node.candidateRoleKey)) === null || _roles_get === void 0 ? void 0 : _roles_get.allowedKinds.includes("human"))) {
8852
9183
  issue("HUMAN_ROLE_REQUIRED", "nodes", index, "candidateRoleKey");
8853
9184
  }
@@ -9018,7 +9349,7 @@ function isProjectPipelineApplicable(definition, project) {
9018
9349
 
9019
9350
  // Invariants: definitions describe versioned topology and explicit execution authority.
9020
9351
  // Business meaning stays behind provider references; labels and icons never drive execution.
9021
- function _define_property$d(obj, key, value) {
9352
+ function _define_property$e(obj, key, value) {
9022
9353
  if (key in obj) {
9023
9354
  Object.defineProperty(obj, key, {
9024
9355
  value: value,
@@ -9031,7 +9362,7 @@ function _define_property$d(obj, key, value) {
9031
9362
  }
9032
9363
  return obj;
9033
9364
  }
9034
- function _object_spread$d(target) {
9365
+ function _object_spread$e(target) {
9035
9366
  for(var i = 1; i < arguments.length; i++){
9036
9367
  var source = arguments[i] != null ? arguments[i] : {};
9037
9368
  var ownKeys = Object.keys(source);
@@ -9041,12 +9372,12 @@ function _object_spread$d(target) {
9041
9372
  }));
9042
9373
  }
9043
9374
  ownKeys.forEach(function(key) {
9044
- _define_property$d(target, key, source[key]);
9375
+ _define_property$e(target, key, source[key]);
9045
9376
  });
9046
9377
  }
9047
9378
  return target;
9048
9379
  }
9049
- function ownKeys$9(object, enumerableOnly) {
9380
+ function ownKeys$a(object, enumerableOnly) {
9050
9381
  var keys = Object.keys(object);
9051
9382
  if (Object.getOwnPropertySymbols) {
9052
9383
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9054,12 +9385,12 @@ function ownKeys$9(object, enumerableOnly) {
9054
9385
  }
9055
9386
  return keys;
9056
9387
  }
9057
- function _object_spread_props$9(target, source) {
9388
+ function _object_spread_props$a(target, source) {
9058
9389
  source = source != null ? source : {};
9059
9390
  if (Object.getOwnPropertyDescriptors) {
9060
9391
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9061
9392
  } else {
9062
- ownKeys$9(Object(source)).forEach(function(key) {
9393
+ ownKeys$a(Object(source)).forEach(function(key) {
9063
9394
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9064
9395
  });
9065
9396
  }
@@ -9091,7 +9422,7 @@ var common = {
9091
9422
  };
9092
9423
  // A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
9093
9424
  var projectPipelineDefinitionShapeSchema = z.discriminatedUnion("executionAuthority", [
9094
- z.object(_object_spread_props$9(_object_spread$d({}, common), {
9425
+ z.object(_object_spread_props$a(_object_spread$e({}, common), {
9095
9426
  executionAuthority: z.literal("provider"),
9096
9427
  providerRef: projectPipelineRefSchema,
9097
9428
  topology: z.object({
@@ -9100,7 +9431,7 @@ var projectPipelineDefinitionShapeSchema = z.discriminatedUnion("executionAuthor
9100
9431
  }).strict(),
9101
9432
  actionRefs: z.array(projectPipelineRefSchema).max(100).optional()
9102
9433
  })).strict(),
9103
- z.object(_object_spread_props$9(_object_spread$d({}, common), {
9434
+ z.object(_object_spread_props$a(_object_spread$e({}, common), {
9104
9435
  executionAuthority: z.literal("platform"),
9105
9436
  topology: z.object({
9106
9437
  source: z.literal("definition")
@@ -9151,6 +9482,7 @@ var projectPipelineDefinitionSchema = projectPipelineDefinitionShapeSchema.super
9151
9482
  /** Admission controls for host-native LLM requests; provider-internal retries and currency are not hard quotas. */ var projectPipelineNativeModelBudgetSchema = z.object({
9152
9483
  maxCalls: z.number().int().min(1).max(1000000),
9153
9484
  maxTokens: z.number().int().min(1).max(1000000000000),
9485
+ // Minimum hold; native admission reserves the larger current input estimate plus output ceiling.
9154
9486
  reservationTokens: z.number().int().min(1).max(1000000000)
9155
9487
  }).strict().superRefine(function(value, context) {
9156
9488
  if (value.reservationTokens > value.maxTokens) context.addIssue({
@@ -9379,8 +9711,11 @@ var projectPipelineBindingSchema = z.object({
9379
9711
  var _step_value1 = _sliced_to_array$b(_step3.value, 2), index = _step_value1[0], node = _step_value1[1];
9380
9712
  var _binding_roleBindings_node_candidateRoleKey;
9381
9713
  if (node.kind === "work") {
9382
- var _binding_executorBindings1, _lanes_get;
9714
+ var _binding_executorBindings1, _node_presentation, _lanes_get;
9383
9715
  var executor = (_binding_executorBindings1 = binding.executorBindings) === null || _binding_executorBindings1 === void 0 ? void 0 : _binding_executorBindings1[node.executorSlot];
9716
+ if (((_node_presentation = node.presentation) === null || _node_presentation === void 0 ? void 0 : _node_presentation.foldIntoApproval) && executor && executor.kind !== "service") {
9717
+ issue("APPROVAL_STEP_SERVICE_REQUIRED", "binding", "executorBindings", node.executorSlot);
9718
+ }
9384
9719
  // Native Assistant/file tools need a separate enforcement bridge before opting in.
9385
9720
  if (node.resourceResolverRef && (executor === null || executor === void 0 ? void 0 : executor.kind) !== "service") {
9386
9721
  issue("RESOURCE_EXECUTOR_UNSUPPORTED", "template", "nodes", index, "resourceResolverRef");
@@ -9432,7 +9767,85 @@ var projectPipelineBindingSchema = z.object({
9432
9767
  }
9433
9768
  });
9434
9769
 
9435
- function _define_property$c(obj, key, value) {
9770
+ function _object_without_properties$1(source, excluded) {
9771
+ if (source == null) return {};
9772
+ var target = _object_without_properties_loose$1(source, excluded);
9773
+ var key, i;
9774
+ if (Object.getOwnPropertySymbols) {
9775
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
9776
+ for(i = 0; i < sourceSymbolKeys.length; i++){
9777
+ key = sourceSymbolKeys[i];
9778
+ if (excluded.indexOf(key) >= 0) continue;
9779
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
9780
+ target[key] = source[key];
9781
+ }
9782
+ }
9783
+ return target;
9784
+ }
9785
+ function _object_without_properties_loose$1(source, excluded) {
9786
+ if (source == null) return {};
9787
+ var target = {};
9788
+ var sourceKeys = Object.keys(source);
9789
+ var key, i;
9790
+ for(i = 0; i < sourceKeys.length; i++){
9791
+ key = sourceKeys[i];
9792
+ if (excluded.indexOf(key) >= 0) continue;
9793
+ target[key] = source[key];
9794
+ }
9795
+ return target;
9796
+ }
9797
+ /** Catalog-only policy. The host resolves it before exposing or persisting a concrete configuration. */ var projectPipelineConfigurationDeclarationSchema = projectPipelineConfigurationSchema.innerType().extend({
9798
+ nativeModelBudgetPolicy: z.object({
9799
+ /** Only maxTokens may inherit a host default; other defaults remain in binding.limits. */ maxTokensDefaultSource: z.enum([
9800
+ "configuration",
9801
+ "host"
9802
+ ]),
9803
+ /** Independent ceilings for new configurations, unaffected by changes to host defaults. */ maximum: projectPipelineNativeModelBudgetSchema
9804
+ }).strict().optional()
9805
+ }).superRefine(function(_param, context) {
9806
+ var nativeModelBudgetPolicy = _param.nativeModelBudgetPolicy, configuration = _object_without_properties$1(_param, [
9807
+ "nativeModelBudgetPolicy"
9808
+ ]);
9809
+ var _configuration_binding_limits;
9810
+ var parsed = projectPipelineConfigurationSchema.safeParse(configuration);
9811
+ if (!parsed.success) {
9812
+ parsed.error.issues.forEach(function(issue) {
9813
+ return context.addIssue(issue);
9814
+ });
9815
+ return;
9816
+ }
9817
+ if (!nativeModelBudgetPolicy) return;
9818
+ var budget = (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget;
9819
+ if (!budget) {
9820
+ context.addIssue({
9821
+ code: "custom",
9822
+ message: "MODEL_BUDGET_REQUIRED",
9823
+ path: [
9824
+ "nativeModelBudgetPolicy"
9825
+ ]
9826
+ });
9827
+ return;
9828
+ }
9829
+ // A valid concrete fallback is required even when maxTokens normally inherits the host value.
9830
+ for(var _i = 0, _iter = [
9831
+ "maxCalls",
9832
+ "maxTokens",
9833
+ "reservationTokens"
9834
+ ]; _i < _iter.length; _i++){
9835
+ var key = _iter[_i];
9836
+ if (budget[key] > nativeModelBudgetPolicy.maximum[key]) context.addIssue({
9837
+ code: "custom",
9838
+ message: "MODEL_BUDGET_DEFAULT_EXCEEDS_MAXIMUM",
9839
+ path: [
9840
+ "nativeModelBudgetPolicy",
9841
+ "maximum",
9842
+ key
9843
+ ]
9844
+ });
9845
+ }
9846
+ });
9847
+
9848
+ function _define_property$d(obj, key, value) {
9436
9849
  if (key in obj) {
9437
9850
  Object.defineProperty(obj, key, {
9438
9851
  value: value,
@@ -9445,7 +9858,7 @@ function _define_property$c(obj, key, value) {
9445
9858
  }
9446
9859
  return obj;
9447
9860
  }
9448
- function _object_spread$c(target) {
9861
+ function _object_spread$d(target) {
9449
9862
  for(var i = 1; i < arguments.length; i++){
9450
9863
  var source = arguments[i] != null ? arguments[i] : {};
9451
9864
  var ownKeys = Object.keys(source);
@@ -9455,12 +9868,12 @@ function _object_spread$c(target) {
9455
9868
  }));
9456
9869
  }
9457
9870
  ownKeys.forEach(function(key) {
9458
- _define_property$c(target, key, source[key]);
9871
+ _define_property$d(target, key, source[key]);
9459
9872
  });
9460
9873
  }
9461
9874
  return target;
9462
9875
  }
9463
- function ownKeys$8(object, enumerableOnly) {
9876
+ function ownKeys$9(object, enumerableOnly) {
9464
9877
  var keys = Object.keys(object);
9465
9878
  if (Object.getOwnPropertySymbols) {
9466
9879
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9468,12 +9881,12 @@ function ownKeys$8(object, enumerableOnly) {
9468
9881
  }
9469
9882
  return keys;
9470
9883
  }
9471
- function _object_spread_props$8(target, source) {
9884
+ function _object_spread_props$9(target, source) {
9472
9885
  source = source != null ? source : {};
9473
9886
  if (Object.getOwnPropertyDescriptors) {
9474
9887
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9475
9888
  } else {
9476
- ownKeys$8(Object(source)).forEach(function(key) {
9889
+ ownKeys$9(Object(source)).forEach(function(key) {
9477
9890
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9478
9891
  });
9479
9892
  }
@@ -9489,13 +9902,13 @@ var definitionRef = z.object({
9489
9902
  templateRef: projectPipelineRefSchema,
9490
9903
  digest: z.string().regex(/^[a-f0-9]{64}$/)
9491
9904
  }).strict();
9492
- var projectPipelineProjectBindingSchema = z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9905
+ var projectPipelineProjectBindingSchema = z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9493
9906
  definition: definitionRef,
9494
9907
  revision: z.number().int().positive(),
9495
9908
  configuration: projectPipelineBindingSchema
9496
9909
  })).strict();
9497
9910
  var projectPipelineInstanceSchema = z.discriminatedUnion("executionAuthority", [
9498
- z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9911
+ z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9499
9912
  executionAuthority: z.literal("provider"),
9500
9913
  providerRef: projectPipelineRefSchema,
9501
9914
  sourceKey: z.string().min(1).max(500),
@@ -9506,7 +9919,7 @@ var projectPipelineInstanceSchema = z.discriminatedUnion("executionAuthority", [
9506
9919
  }).strict(),
9507
9920
  revision: z.number().int().nonnegative()
9508
9921
  })).strict(),
9509
- z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9922
+ z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9510
9923
  executionAuthority: z.literal("platform"),
9511
9924
  bindingId: z.string().uuid(),
9512
9925
  sourceKey: z.string().min(1).max(500),
@@ -9518,7 +9931,7 @@ var projectPipelineInstanceSchema = z.discriminatedUnion("executionAuthority", [
9518
9931
  revision: z.number().int().nonnegative()
9519
9932
  })).strict()
9520
9933
  ]);
9521
- var projectPipelineRunSchema = z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9934
+ var projectPipelineRunSchema = z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9522
9935
  instanceId: z.string().uuid(),
9523
9936
  triggerKey: z.string().min(1).max(500),
9524
9937
  definition: definitionRef,
@@ -9590,7 +10003,7 @@ var projectPipelineWorkContextSchema = z.object({
9590
10003
  inputDigest: z.string().regex(/^[a-f0-9]{64}$/),
9591
10004
  generation: z.number().int().positive()
9592
10005
  }).strict();
9593
- var projectPipelineRoundSchema = z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
10006
+ var projectPipelineRoundSchema = z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9594
10007
  runId: z.string().uuid(),
9595
10008
  sequence: z.number().int().positive(),
9596
10009
  generation: z.number().int().positive(),
@@ -9606,7 +10019,7 @@ var projectPipelineRoundSchema = z.object(_object_spread_props$8(_object_spread$
9606
10019
  subjectVersionSet: z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
9607
10020
  supersedes: z.string().uuid().nullable()
9608
10021
  })).strict();
9609
- var projectPipelineNodeInstanceSchema = z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
10022
+ var projectPipelineNodeInstanceSchema = z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9610
10023
  roundId: z.string().uuid(),
9611
10024
  nodeKey: projectPipelineKeySchema,
9612
10025
  /** Stable source identity; never a list index. */ expansionKey: z.string().min(1).max(500),
@@ -9618,7 +10031,7 @@ var projectPipelineNodeInstanceSchema = z.object(_object_spread_props$8(_object_
9618
10031
  revision: z.number().int().nonnegative()
9619
10032
  })).strict();
9620
10033
 
9621
- function _define_property$b(obj, key, value) {
10034
+ function _define_property$c(obj, key, value) {
9622
10035
  if (key in obj) {
9623
10036
  Object.defineProperty(obj, key, {
9624
10037
  value: value,
@@ -9631,7 +10044,7 @@ function _define_property$b(obj, key, value) {
9631
10044
  }
9632
10045
  return obj;
9633
10046
  }
9634
- function _object_spread$b(target) {
10047
+ function _object_spread$c(target) {
9635
10048
  for(var i = 1; i < arguments.length; i++){
9636
10049
  var source = arguments[i] != null ? arguments[i] : {};
9637
10050
  var ownKeys = Object.keys(source);
@@ -9641,12 +10054,12 @@ function _object_spread$b(target) {
9641
10054
  }));
9642
10055
  }
9643
10056
  ownKeys.forEach(function(key) {
9644
- _define_property$b(target, key, source[key]);
10057
+ _define_property$c(target, key, source[key]);
9645
10058
  });
9646
10059
  }
9647
10060
  return target;
9648
10061
  }
9649
- function ownKeys$7(object, enumerableOnly) {
10062
+ function ownKeys$8(object, enumerableOnly) {
9650
10063
  var keys = Object.keys(object);
9651
10064
  if (Object.getOwnPropertySymbols) {
9652
10065
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9654,12 +10067,12 @@ function ownKeys$7(object, enumerableOnly) {
9654
10067
  }
9655
10068
  return keys;
9656
10069
  }
9657
- function _object_spread_props$7(target, source) {
10070
+ function _object_spread_props$8(target, source) {
9658
10071
  source = source != null ? source : {};
9659
10072
  if (Object.getOwnPropertyDescriptors) {
9660
10073
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9661
10074
  } else {
9662
- ownKeys$7(Object(source)).forEach(function(key) {
10075
+ ownKeys$8(Object(source)).forEach(function(key) {
9663
10076
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9664
10077
  });
9665
10078
  }
@@ -9676,17 +10089,17 @@ var projectPipelinePortDescriptorSchema = z.object({
9676
10089
  ])
9677
10090
  }).strict();
9678
10091
  /** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = z.discriminatedUnion("kind", [
9679
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10092
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9680
10093
  kind: z.literal("schema")
9681
10094
  })).strict(),
9682
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10095
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9683
10096
  kind: z.literal("resource")
9684
10097
  })).strict(),
9685
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10098
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9686
10099
  kind: z.literal("subject"),
9687
10100
  outputSchemaRef: projectPipelineRefSchema
9688
10101
  })).strict(),
9689
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10102
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9690
10103
  kind: z.literal("operation"),
9691
10104
  effects: z.enum([
9692
10105
  "read_only",
@@ -9705,32 +10118,32 @@ var projectPipelinePortDescriptorSchema = z.object({
9705
10118
  inputs: z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
9706
10119
  outputs: z.record(projectPipelineKeySchema, projectPipelineRefSchema)
9707
10120
  })).strict(),
9708
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10121
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9709
10122
  kind: z.literal("completion")
9710
10123
  })).strict(),
9711
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10124
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9712
10125
  kind: z.literal("policy"),
9713
10126
  outcomes: z.array(projectPipelineKeySchema).min(1).max(32)
9714
10127
  })).strict(),
9715
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10128
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9716
10129
  kind: z.literal("projection")
9717
10130
  })).strict(),
9718
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10131
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9719
10132
  kind: z.literal("presentation")
9720
10133
  })).strict(),
9721
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10134
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9722
10135
  kind: z.literal("action")
9723
10136
  })).strict(),
9724
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10137
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9725
10138
  kind: z.literal("metric")
9726
10139
  })).strict(),
9727
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10140
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9728
10141
  kind: z.literal("dimension")
9729
10142
  })).strict(),
9730
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10143
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9731
10144
  kind: z.literal("trigger")
9732
10145
  })).strict(),
9733
- z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10146
+ z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9734
10147
  kind: z.literal("subscription"),
9735
10148
  outputs: z.record(projectPipelineKeySchema, projectPipelineRefSchema)
9736
10149
  })).strict()
@@ -10497,7 +10910,7 @@ var tombstone = z.object({
10497
10910
  ]);
10498
10911
  });
10499
10912
 
10500
- function _define_property$a(obj, key, value) {
10913
+ function _define_property$b(obj, key, value) {
10501
10914
  if (key in obj) {
10502
10915
  Object.defineProperty(obj, key, {
10503
10916
  value: value,
@@ -10510,7 +10923,7 @@ function _define_property$a(obj, key, value) {
10510
10923
  }
10511
10924
  return obj;
10512
10925
  }
10513
- function _object_spread$a(target) {
10926
+ function _object_spread$b(target) {
10514
10927
  for(var i = 1; i < arguments.length; i++){
10515
10928
  var source = arguments[i] != null ? arguments[i] : {};
10516
10929
  var ownKeys = Object.keys(source);
@@ -10520,12 +10933,12 @@ function _object_spread$a(target) {
10520
10933
  }));
10521
10934
  }
10522
10935
  ownKeys.forEach(function(key) {
10523
- _define_property$a(target, key, source[key]);
10936
+ _define_property$b(target, key, source[key]);
10524
10937
  });
10525
10938
  }
10526
10939
  return target;
10527
10940
  }
10528
- function ownKeys$6(object, enumerableOnly) {
10941
+ function ownKeys$7(object, enumerableOnly) {
10529
10942
  var keys = Object.keys(object);
10530
10943
  if (Object.getOwnPropertySymbols) {
10531
10944
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10533,12 +10946,12 @@ function ownKeys$6(object, enumerableOnly) {
10533
10946
  }
10534
10947
  return keys;
10535
10948
  }
10536
- function _object_spread_props$6(target, source) {
10949
+ function _object_spread_props$7(target, source) {
10537
10950
  source = source != null ? source : {};
10538
10951
  if (Object.getOwnPropertyDescriptors) {
10539
10952
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10540
10953
  } else {
10541
- ownKeys$6(Object(source)).forEach(function(key) {
10954
+ ownKeys$7(Object(source)).forEach(function(key) {
10542
10955
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10543
10956
  });
10544
10957
  }
@@ -10576,7 +10989,7 @@ function executionRuntimeTargetsEqual(left, right) {
10576
10989
  return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
10577
10990
  }
10578
10991
  /** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = z.discriminatedUnion("source", [
10579
- z.object(_object_spread_props$6(_object_spread$a({}, base), {
10992
+ z.object(_object_spread_props$7(_object_spread$b({}, base), {
10580
10993
  source: z.literal("unavailable"),
10581
10994
  subject: subject,
10582
10995
  state: z.literal("unknown"),
@@ -10586,7 +10999,7 @@ function executionRuntimeTargetsEqual(left, right) {
10586
10999
  "unsupported"
10587
11000
  ])
10588
11001
  })).strict(),
10589
- z.object(_object_spread_props$6(_object_spread$a({}, base), {
11002
+ z.object(_object_spread_props$7(_object_spread$b({}, base), {
10590
11003
  source: z.literal("platform"),
10591
11004
  subject: subject,
10592
11005
  scope: z.literal("owned_subtree"),
@@ -10608,7 +11021,7 @@ function executionRuntimeTargetsEqual(left, right) {
10608
11021
  executionId: z.string().uuid(),
10609
11022
  threadId: z.string().min(1)
10610
11023
  })).strict(),
10611
- z.object(_object_spread_props$6(_object_spread$a({}, base), {
11024
+ z.object(_object_spread_props$7(_object_spread$b({}, base), {
10612
11025
  source: z.literal("provider"),
10613
11026
  subject: z.object({
10614
11027
  kind: z.literal("invocation"),
@@ -10626,7 +11039,7 @@ function executionRuntimeTargetsEqual(left, right) {
10626
11039
  receiptKey: z.string().min(1).max(500),
10627
11040
  target: executionRuntimeTargetSchema.optional()
10628
11041
  })).strict(),
10629
- z.object(_object_spread_props$6(_object_spread$a({}, base), {
11042
+ z.object(_object_spread_props$7(_object_spread$b({}, base), {
10630
11043
  source: z.literal("native_graph"),
10631
11044
  subject: z.object({
10632
11045
  kind: z.literal("invocation"),
@@ -10637,7 +11050,7 @@ function executionRuntimeTargetsEqual(left, right) {
10637
11050
  outcome: z.literal("cancelled"),
10638
11051
  executionId: z.string().min(1)
10639
11052
  })).strict(),
10640
- z.object(_object_spread_props$6(_object_spread$a({}, base), {
11053
+ z.object(_object_spread_props$7(_object_spread$b({}, base), {
10641
11054
  source: z.literal("host_admission"),
10642
11055
  subject: z.object({
10643
11056
  kind: z.literal("invocation"),
@@ -10664,7 +11077,7 @@ function unknownExecutionControl(subject) {
10664
11077
  };
10665
11078
  }
10666
11079
 
10667
- function _define_property$9(obj, key, value) {
11080
+ function _define_property$a(obj, key, value) {
10668
11081
  if (key in obj) {
10669
11082
  Object.defineProperty(obj, key, {
10670
11083
  value: value,
@@ -10677,7 +11090,7 @@ function _define_property$9(obj, key, value) {
10677
11090
  }
10678
11091
  return obj;
10679
11092
  }
10680
- function _object_spread$9(target) {
11093
+ function _object_spread$a(target) {
10681
11094
  for(var i = 1; i < arguments.length; i++){
10682
11095
  var source = arguments[i] != null ? arguments[i] : {};
10683
11096
  var ownKeys = Object.keys(source);
@@ -10687,12 +11100,12 @@ function _object_spread$9(target) {
10687
11100
  }));
10688
11101
  }
10689
11102
  ownKeys.forEach(function(key) {
10690
- _define_property$9(target, key, source[key]);
11103
+ _define_property$a(target, key, source[key]);
10691
11104
  });
10692
11105
  }
10693
11106
  return target;
10694
11107
  }
10695
- function ownKeys$5(object, enumerableOnly) {
11108
+ function ownKeys$6(object, enumerableOnly) {
10696
11109
  var keys = Object.keys(object);
10697
11110
  if (Object.getOwnPropertySymbols) {
10698
11111
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10700,12 +11113,12 @@ function ownKeys$5(object, enumerableOnly) {
10700
11113
  }
10701
11114
  return keys;
10702
11115
  }
10703
- function _object_spread_props$5(target, source) {
11116
+ function _object_spread_props$6(target, source) {
10704
11117
  source = source != null ? source : {};
10705
11118
  if (Object.getOwnPropertyDescriptors) {
10706
11119
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10707
11120
  } else {
10708
- ownKeys$5(Object(source)).forEach(function(key) {
11121
+ ownKeys$6(Object(source)).forEach(function(key) {
10709
11122
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10710
11123
  });
10711
11124
  }
@@ -10772,20 +11185,20 @@ var receipt = {
10772
11185
  ]).optional()
10773
11186
  };
10774
11187
  var projectPipelineOperationReceiptSchema = z.discriminatedUnion("status", [
10775
- z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11188
+ z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10776
11189
  status: z.literal("pending")
10777
11190
  })).strict(),
10778
- z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11191
+ z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10779
11192
  status: z.literal("succeeded"),
10780
11193
  outputs: z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
10781
11194
  return Object.keys(value).length <= 100;
10782
11195
  }, "Too many output ports")
10783
11196
  })).strict(),
10784
- z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11197
+ z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10785
11198
  status: z.literal("failed"),
10786
11199
  code: projectPipelineKeySchema
10787
11200
  })).strict(),
10788
- z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11201
+ z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10789
11202
  status: z.literal("cancelled")
10790
11203
  })).strict(),
10791
11204
  z.object({
@@ -10867,7 +11280,7 @@ function _array_like_to_array$f(arr, len) {
10867
11280
  function _array_without_holes$7(arr) {
10868
11281
  if (Array.isArray(arr)) return _array_like_to_array$f(arr);
10869
11282
  }
10870
- function _define_property$8(obj, key, value) {
11283
+ function _define_property$9(obj, key, value) {
10871
11284
  if (key in obj) {
10872
11285
  Object.defineProperty(obj, key, {
10873
11286
  value: value,
@@ -10886,7 +11299,7 @@ function _iterable_to_array$8(iter) {
10886
11299
  function _non_iterable_spread$7() {
10887
11300
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10888
11301
  }
10889
- function _object_spread$8(target) {
11302
+ function _object_spread$9(target) {
10890
11303
  for(var i = 1; i < arguments.length; i++){
10891
11304
  var source = arguments[i] != null ? arguments[i] : {};
10892
11305
  var ownKeys = Object.keys(source);
@@ -10896,12 +11309,12 @@ function _object_spread$8(target) {
10896
11309
  }));
10897
11310
  }
10898
11311
  ownKeys.forEach(function(key) {
10899
- _define_property$8(target, key, source[key]);
11312
+ _define_property$9(target, key, source[key]);
10900
11313
  });
10901
11314
  }
10902
11315
  return target;
10903
11316
  }
10904
- function ownKeys$4(object, enumerableOnly) {
11317
+ function ownKeys$5(object, enumerableOnly) {
10905
11318
  var keys = Object.keys(object);
10906
11319
  if (Object.getOwnPropertySymbols) {
10907
11320
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10909,12 +11322,12 @@ function ownKeys$4(object, enumerableOnly) {
10909
11322
  }
10910
11323
  return keys;
10911
11324
  }
10912
- function _object_spread_props$4(target, source) {
11325
+ function _object_spread_props$5(target, source) {
10913
11326
  source = source != null ? source : {};
10914
11327
  if (Object.getOwnPropertyDescriptors) {
10915
11328
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10916
11329
  } else {
10917
- ownKeys$4(Object(source)).forEach(function(key) {
11330
+ ownKeys$5(Object(source)).forEach(function(key) {
10918
11331
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10919
11332
  });
10920
11333
  }
@@ -11104,7 +11517,7 @@ function pipelineExecutorStatistics(facts) {
11104
11517
  }
11105
11518
  return _to_consumable_array$7(groups.values()).map(function(param) {
11106
11519
  var identity = param.identity, _$facts = param.facts;
11107
- return _object_spread_props$4(_object_spread$8({}, identity), {
11520
+ return _object_spread_props$5(_object_spread$9({}, identity), {
11108
11521
  attempts: pipelineAttemptCounts(_$facts),
11109
11522
  timing: pipelineExecutionTiming(_$facts)
11110
11523
  });
@@ -11119,7 +11532,7 @@ function _array_like_to_array$e(arr, len) {
11119
11532
  function _array_without_holes$6(arr) {
11120
11533
  if (Array.isArray(arr)) return _array_like_to_array$e(arr);
11121
11534
  }
11122
- function _define_property$7(obj, key, value) {
11535
+ function _define_property$8(obj, key, value) {
11123
11536
  if (key in obj) {
11124
11537
  Object.defineProperty(obj, key, {
11125
11538
  value: value,
@@ -11138,7 +11551,7 @@ function _iterable_to_array$7(iter) {
11138
11551
  function _non_iterable_spread$6() {
11139
11552
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11140
11553
  }
11141
- function _object_spread$7(target) {
11554
+ function _object_spread$8(target) {
11142
11555
  for(var i = 1; i < arguments.length; i++){
11143
11556
  var source = arguments[i] != null ? arguments[i] : {};
11144
11557
  var ownKeys = Object.keys(source);
@@ -11148,12 +11561,12 @@ function _object_spread$7(target) {
11148
11561
  }));
11149
11562
  }
11150
11563
  ownKeys.forEach(function(key) {
11151
- _define_property$7(target, key, source[key]);
11564
+ _define_property$8(target, key, source[key]);
11152
11565
  });
11153
11566
  }
11154
11567
  return target;
11155
11568
  }
11156
- function ownKeys$3(object, enumerableOnly) {
11569
+ function ownKeys$4(object, enumerableOnly) {
11157
11570
  var keys = Object.keys(object);
11158
11571
  if (Object.getOwnPropertySymbols) {
11159
11572
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11161,12 +11574,12 @@ function ownKeys$3(object, enumerableOnly) {
11161
11574
  }
11162
11575
  return keys;
11163
11576
  }
11164
- function _object_spread_props$3(target, source) {
11577
+ function _object_spread_props$4(target, source) {
11165
11578
  source = source != null ? source : {};
11166
11579
  if (Object.getOwnPropertyDescriptors) {
11167
11580
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11168
11581
  } else {
11169
- ownKeys$3(Object(source)).forEach(function(key) {
11582
+ ownKeys$4(Object(source)).forEach(function(key) {
11170
11583
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11171
11584
  });
11172
11585
  }
@@ -11303,13 +11716,13 @@ function pipelineModelUsageStatistics(facts, coverage) {
11303
11716
  }
11304
11717
  }
11305
11718
  }
11306
- return _object_spread_props$3(_object_spread$7({
11719
+ return _object_spread_props$4(_object_spread$8({
11307
11720
  scope: "linked_native_llm_calls"
11308
11721
  }, coverage, totals(calls)), {
11309
11722
  unpricedCalls: unpricedCalls,
11310
11723
  chargedPoints: chargedPoints,
11311
11724
  byModel: _to_consumable_array$6(models.values()).map(function(group) {
11312
- return _object_spread$7({
11725
+ return _object_spread$8({
11313
11726
  provider: group[0].provider,
11314
11727
  model: group[0].model
11315
11728
  }, totals(group));
@@ -11529,7 +11942,7 @@ function _array_with_holes$9(arr) {
11529
11942
  function _array_without_holes$4(arr) {
11530
11943
  if (Array.isArray(arr)) return _array_like_to_array$c(arr);
11531
11944
  }
11532
- function _define_property$6(obj, key, value) {
11945
+ function _define_property$7(obj, key, value) {
11533
11946
  if (key in obj) {
11534
11947
  Object.defineProperty(obj, key, {
11535
11948
  value: value,
@@ -11575,7 +11988,7 @@ function _non_iterable_rest$9() {
11575
11988
  function _non_iterable_spread$4() {
11576
11989
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11577
11990
  }
11578
- function _object_spread$6(target) {
11991
+ function _object_spread$7(target) {
11579
11992
  for(var i = 1; i < arguments.length; i++){
11580
11993
  var source = arguments[i] != null ? arguments[i] : {};
11581
11994
  var ownKeys = Object.keys(source);
@@ -11585,12 +11998,12 @@ function _object_spread$6(target) {
11585
11998
  }));
11586
11999
  }
11587
12000
  ownKeys.forEach(function(key) {
11588
- _define_property$6(target, key, source[key]);
12001
+ _define_property$7(target, key, source[key]);
11589
12002
  });
11590
12003
  }
11591
12004
  return target;
11592
12005
  }
11593
- function ownKeys$2(object, enumerableOnly) {
12006
+ function ownKeys$3(object, enumerableOnly) {
11594
12007
  var keys = Object.keys(object);
11595
12008
  if (Object.getOwnPropertySymbols) {
11596
12009
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11598,12 +12011,12 @@ function ownKeys$2(object, enumerableOnly) {
11598
12011
  }
11599
12012
  return keys;
11600
12013
  }
11601
- function _object_spread_props$2(target, source) {
12014
+ function _object_spread_props$3(target, source) {
11602
12015
  source = source != null ? source : {};
11603
12016
  if (Object.getOwnPropertyDescriptors) {
11604
12017
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11605
12018
  } else {
11606
- ownKeys$2(Object(source)).forEach(function(key) {
12019
+ ownKeys$3(Object(source)).forEach(function(key) {
11607
12020
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11608
12021
  });
11609
12022
  }
@@ -11637,30 +12050,30 @@ var option = z.object({
11637
12050
  label: label$1
11638
12051
  }).strict();
11639
12052
  var projectPipelineParameterFieldSchema = z.discriminatedUnion("type", [
11640
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12053
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11641
12054
  type: z.literal("boolean")
11642
12055
  })).strict(),
11643
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12056
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11644
12057
  type: z.literal("text"),
11645
12058
  maxLength: z.number().int().min(1).max(4000),
11646
12059
  minLength: z.number().int().min(0).max(4000)
11647
12060
  })).strict(),
11648
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12061
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11649
12062
  type: z.literal("number"),
11650
12063
  min: z.number().finite(),
11651
12064
  max: z.number().finite(),
11652
12065
  integer: z.boolean()
11653
12066
  })).strict(),
11654
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12067
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11655
12068
  type: z.literal("choice"),
11656
12069
  options: z.array(option).min(1).max(100)
11657
12070
  })).strict(),
11658
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12071
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11659
12072
  type: z.literal("multi_choice"),
11660
12073
  options: z.array(option).min(1).max(100),
11661
12074
  minItems: z.number().int().min(0).max(100).default(0)
11662
12075
  })).strict(),
11663
- z.object(_object_spread_props$2(_object_spread$6({}, field), {
12076
+ z.object(_object_spread_props$3(_object_spread$7({}, field), {
11664
12077
  type: z.literal("string_list"),
11665
12078
  maxItems: z.number().int().min(1).max(100),
11666
12079
  itemMaxLength: z.number().int().min(1).max(500)
@@ -11863,13 +12276,13 @@ function parameterSchema(field) {
11863
12276
  return item.key;
11864
12277
  }))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
11865
12278
  var _configuration_binding_executorBindings2;
11866
- var binding = _object_spread_props$2(_object_spread$6({}, configuration.binding), {
11867
- parameters: _object_spread$6({}, configuration.binding.parameters),
12279
+ var binding = _object_spread_props$3(_object_spread$7({}, configuration.binding), {
12280
+ parameters: _object_spread$7({}, configuration.binding.parameters),
11868
12281
  executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
11869
12282
  var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
11870
12283
  return [
11871
12284
  key,
11872
- _object_spread$6({}, executor)
12285
+ _object_spread$7({}, executor)
11873
12286
  ];
11874
12287
  }))
11875
12288
  });
@@ -11885,7 +12298,7 @@ function parameterSchema(field) {
11885
12298
  var key = _iter[_i];
11886
12299
  if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
11887
12300
  }
11888
- binding.limits = _object_spread_props$2(_object_spread$6({}, binding.limits), {
12301
+ binding.limits = _object_spread_props$3(_object_spread$7({}, binding.limits), {
11889
12302
  nativeModelBudget: budget
11890
12303
  });
11891
12304
  } else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
@@ -11957,14 +12370,14 @@ function parameterSchema(field) {
11957
12370
  }
11958
12371
  }
11959
12372
  }
11960
- return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$6({}, configuration), {
12373
+ return projectPipelineConfigurationSchema.parse(_object_spread_props$3(_object_spread$7({}, configuration), {
11961
12374
  binding: binding
11962
12375
  }));
11963
12376
  }
11964
12377
  /** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
11965
12378
  var _configuration_binding_limits;
11966
12379
  var _form_runtimeSlots;
11967
- return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$6({}, form.nativeModelBudget ? {
12380
+ return configureProjectPipelineFromForm(configuration, form, _object_spread_props$3(_object_spread$7({}, form.nativeModelBudget ? {
11968
12381
  nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
11969
12382
  } : {}), {
11970
12383
  assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
@@ -12246,7 +12659,7 @@ function _array_with_holes$8(arr) {
12246
12659
  function _array_without_holes$2(arr) {
12247
12660
  if (Array.isArray(arr)) return _array_like_to_array$a(arr);
12248
12661
  }
12249
- function _define_property$5(obj, key, value) {
12662
+ function _define_property$6(obj, key, value) {
12250
12663
  if (key in obj) {
12251
12664
  Object.defineProperty(obj, key, {
12252
12665
  value: value,
@@ -12292,7 +12705,7 @@ function _non_iterable_rest$8() {
12292
12705
  function _non_iterable_spread$2() {
12293
12706
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12294
12707
  }
12295
- function _object_spread$5(target) {
12708
+ function _object_spread$6(target) {
12296
12709
  for(var i = 1; i < arguments.length; i++){
12297
12710
  var source = arguments[i] != null ? arguments[i] : {};
12298
12711
  var ownKeys = Object.keys(source);
@@ -12302,12 +12715,12 @@ function _object_spread$5(target) {
12302
12715
  }));
12303
12716
  }
12304
12717
  ownKeys.forEach(function(key) {
12305
- _define_property$5(target, key, source[key]);
12718
+ _define_property$6(target, key, source[key]);
12306
12719
  });
12307
12720
  }
12308
12721
  return target;
12309
12722
  }
12310
- function ownKeys$1(object, enumerableOnly) {
12723
+ function ownKeys$2(object, enumerableOnly) {
12311
12724
  var keys = Object.keys(object);
12312
12725
  if (Object.getOwnPropertySymbols) {
12313
12726
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12315,12 +12728,12 @@ function ownKeys$1(object, enumerableOnly) {
12315
12728
  }
12316
12729
  return keys;
12317
12730
  }
12318
- function _object_spread_props$1(target, source) {
12731
+ function _object_spread_props$2(target, source) {
12319
12732
  source = source != null ? source : {};
12320
12733
  if (Object.getOwnPropertyDescriptors) {
12321
12734
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
12322
12735
  } else {
12323
- ownKeys$1(Object(source)).forEach(function(key) {
12736
+ ownKeys$2(Object(source)).forEach(function(key) {
12324
12737
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12325
12738
  });
12326
12739
  }
@@ -12425,7 +12838,7 @@ function unionDuration(ranges) {
12425
12838
  try {
12426
12839
  for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
12427
12840
  var value = _step.value;
12428
- intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
12841
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
12429
12842
  end: lastAt,
12430
12843
  ongoing: false,
12431
12844
  censored: true
@@ -12478,7 +12891,7 @@ function unionDuration(ranges) {
12478
12891
  for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
12479
12892
  var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
12480
12893
  if (!ready.has(id)) {
12481
- intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
12894
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
12482
12895
  end: at,
12483
12896
  ongoing: false
12484
12897
  }));
@@ -12546,13 +12959,13 @@ function unionDuration(ranges) {
12546
12959
  var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
12547
12960
  // Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
12548
12961
  if (currentWaiting.has(id2)) {
12549
- intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
12962
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
12550
12963
  end: now,
12551
12964
  ongoing: true
12552
12965
  }));
12553
12966
  tracked.add(id2);
12554
12967
  } else {
12555
- intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
12968
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
12556
12969
  end: lastAt,
12557
12970
  ongoing: false,
12558
12971
  censored: true
@@ -12597,7 +13010,7 @@ function unionDuration(ranges) {
12597
13010
  var selected = intervals.filter(function(interval) {
12598
13011
  return interval.start < to && interval.end >= from && interval.end >= interval.start;
12599
13012
  }).map(function(interval) {
12600
- return _object_spread_props$1(_object_spread$5({}, interval), {
13013
+ return _object_spread_props$2(_object_spread$6({}, interval), {
12601
13014
  start: Math.max(from, interval.start),
12602
13015
  end: Math.min(to, interval.end)
12603
13016
  });
@@ -12643,7 +13056,7 @@ function unionDuration(ranges) {
12643
13056
  };
12644
13057
  }
12645
13058
 
12646
- function _define_property$4(obj, key, value) {
13059
+ function _define_property$5(obj, key, value) {
12647
13060
  if (key in obj) {
12648
13061
  Object.defineProperty(obj, key, {
12649
13062
  value: value,
@@ -12656,7 +13069,7 @@ function _define_property$4(obj, key, value) {
12656
13069
  }
12657
13070
  return obj;
12658
13071
  }
12659
- function _object_spread$4(target) {
13072
+ function _object_spread$5(target) {
12660
13073
  for(var i = 1; i < arguments.length; i++){
12661
13074
  var source = arguments[i] != null ? arguments[i] : {};
12662
13075
  var ownKeys = Object.keys(source);
@@ -12666,7 +13079,7 @@ function _object_spread$4(target) {
12666
13079
  }));
12667
13080
  }
12668
13081
  ownKeys.forEach(function(key) {
12669
- _define_property$4(target, key, source[key]);
13082
+ _define_property$5(target, key, source[key]);
12670
13083
  });
12671
13084
  }
12672
13085
  return target;
@@ -12806,7 +13219,7 @@ var projectPipelineAnalyticsSchema = z.object({
12806
13219
  }
12807
13220
  /** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
12808
13221
  var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
12809
- return _object_spread$4({
13222
+ return _object_spread$5({
12810
13223
  projectId: projectId
12811
13224
  }, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
12812
13225
  }
@@ -13103,9 +13516,83 @@ var projectPipelineNativeSourceSchema = projectPipelineNativeDispatchSchema.exte
13103
13516
  callKey: projectPipelineKeySchema
13104
13517
  });
13105
13518
 
13519
+ function _define_property$4(obj, key, value) {
13520
+ if (key in obj) {
13521
+ Object.defineProperty(obj, key, {
13522
+ value: value,
13523
+ enumerable: true,
13524
+ configurable: true,
13525
+ writable: true
13526
+ });
13527
+ } else {
13528
+ obj[key] = value;
13529
+ }
13530
+ return obj;
13531
+ }
13532
+ function _object_spread$4(target) {
13533
+ for(var i = 1; i < arguments.length; i++){
13534
+ var source = arguments[i] != null ? arguments[i] : {};
13535
+ var ownKeys = Object.keys(source);
13536
+ if (typeof Object.getOwnPropertySymbols === "function") {
13537
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
13538
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
13539
+ }));
13540
+ }
13541
+ ownKeys.forEach(function(key) {
13542
+ _define_property$4(target, key, source[key]);
13543
+ });
13544
+ }
13545
+ return target;
13546
+ }
13547
+ function ownKeys$1(object, enumerableOnly) {
13548
+ var keys = Object.keys(object);
13549
+ if (Object.getOwnPropertySymbols) {
13550
+ var symbols = Object.getOwnPropertySymbols(object);
13551
+ keys.push.apply(keys, symbols);
13552
+ }
13553
+ return keys;
13554
+ }
13555
+ function _object_spread_props$1(target, source) {
13556
+ source = source != null ? source : {};
13557
+ if (Object.getOwnPropertyDescriptors) {
13558
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
13559
+ } else {
13560
+ ownKeys$1(Object(source)).forEach(function(key) {
13561
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13562
+ });
13563
+ }
13564
+ return target;
13565
+ }
13566
+ function _object_without_properties(source, excluded) {
13567
+ if (source == null) return {};
13568
+ var target = _object_without_properties_loose(source, excluded);
13569
+ var key, i;
13570
+ if (Object.getOwnPropertySymbols) {
13571
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
13572
+ for(i = 0; i < sourceSymbolKeys.length; i++){
13573
+ key = sourceSymbolKeys[i];
13574
+ if (excluded.indexOf(key) >= 0) continue;
13575
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
13576
+ target[key] = source[key];
13577
+ }
13578
+ }
13579
+ return target;
13580
+ }
13581
+ function _object_without_properties_loose(source, excluded) {
13582
+ if (source == null) return {};
13583
+ var target = {};
13584
+ var sourceKeys = Object.keys(source);
13585
+ var key, i;
13586
+ for(i = 0; i < sourceKeys.length; i++){
13587
+ key = sourceKeys[i];
13588
+ if (excluded.indexOf(key) >= 0) continue;
13589
+ target[key] = source[key];
13590
+ }
13591
+ return target;
13592
+ }
13106
13593
  var projectPipelineContributionSchema = z.object({
13107
13594
  key: projectPipelineKeySchema,
13108
- configurations: z.array(projectPipelineConfigurationSchema).max(100),
13595
+ configurations: z.array(projectPipelineConfigurationDeclarationSchema).max(100),
13109
13596
  descriptors: z.array(projectPipelineExtensionDescriptorSchema).max(1000),
13110
13597
  forms: z.array(projectPipelineConfigurationFormSchema).max(100).optional()
13111
13598
  }).strict().superRefine(function(value, context) {
@@ -13135,7 +13622,14 @@ var projectPipelineContributionSchema = z.object({
13135
13622
  });
13136
13623
  try {
13137
13624
  if (!configuration) throw new Error("CONFIGURATION_MISSING");
13138
- validateProjectPipelineConfigurationForm(configuration, form);
13625
+ var nativeModelBudgetPolicy = configuration.nativeModelBudgetPolicy, concrete = _object_without_properties(configuration, [
13626
+ "nativeModelBudgetPolicy"
13627
+ ]);
13628
+ // A policy owns the ceilings; the form receives them only after catalog resolution.
13629
+ if (nativeModelBudgetPolicy && form.nativeModelBudget) throw new Error("DUPLICATE_MODEL_BUDGET_MAXIMUM");
13630
+ validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$1(_object_spread$4({}, form), {
13631
+ nativeModelBudget: nativeModelBudgetPolicy.maximum
13632
+ }) : form);
13139
13633
  } catch (e) {
13140
13634
  context.addIssue({
13141
13635
  code: z.ZodIssueCode.custom,
@@ -13372,10 +13866,6 @@ var templateFilesSchema = z$1.object({
13372
13866
  /** Versioned, credential-free declarations. Missing manifest preserves the legacy template contract. */ var templateManifestV1Schema = z$1.object({
13373
13867
  schemaVersion: z$1.literal(1),
13374
13868
  version: text$1,
13375
- memory: z$1.object({
13376
- seed: z$1.boolean(),
13377
- preferences: z$1.array(key$1).max(50).default([])
13378
- }).strict().optional(),
13379
13869
  skills: z$1.array(z$1.object({
13380
13870
  pluginName: text$1.optional(),
13381
13871
  componentKey: key$1
@@ -13438,7 +13928,6 @@ var templateFilesSchema = z$1.object({
13438
13928
  }).strict().optional()
13439
13929
  }).strict();
13440
13930
  /** V2 keeps only initialization and requirements that the DSL cannot express. */ var assistantTemplateManifestSchema = templateManifestV1Schema.omit({
13441
- memory: true,
13442
13931
  skills: true,
13443
13932
  execution: true
13444
13933
  }).extend({
@@ -14798,85 +15287,219 @@ var DataSourceTypeEnum;
14798
15287
  DataSourceTypeEnum["NONE"] = "NONE";
14799
15288
  })(DataSourceTypeEnum || (DataSourceTypeEnum = {}));
14800
15289
 
14801
- var DataSourceSyntaxEnum;
14802
- (function(DataSourceSyntaxEnum) {
14803
- DataSourceSyntaxEnum["SQL"] = "sql";
14804
- DataSourceSyntaxEnum["MDX"] = "mdx";
14805
- })(DataSourceSyntaxEnum || (DataSourceSyntaxEnum = {}));
14806
- var DataSourceProtocolEnum;
14807
- (function(DataSourceProtocolEnum) {
14808
- DataSourceProtocolEnum["SQL"] = "sql";
14809
- DataSourceProtocolEnum["XMLA"] = "xmla";
14810
- })(DataSourceProtocolEnum || (DataSourceProtocolEnum = {}));
14811
-
14812
- /**
14813
- * @deprecated use Plugins instead
14814
- */ var IntegrationEnum;
14815
- (function(IntegrationEnum) {
14816
- IntegrationEnum["UPWORK"] = "Upwork";
14817
- IntegrationEnum["HUBSTAFF"] = "Hubstaff";
14818
- IntegrationEnum["LARK"] = "Lark";
14819
- IntegrationEnum["DINGTALK"] = "DingTalk";
14820
- IntegrationEnum["WECOM"] = "WeCom";
14821
- IntegrationEnum["FIRECRAWL"] = "firecrawl";
14822
- IntegrationEnum["KNOWLEDGEBASE"] = "knowledgebase";
14823
- IntegrationEnum["GITHUB"] = "github";
14824
- IntegrationEnum["RAGFlow"] = "ragflow";
14825
- IntegrationEnum["Dify"] = "dify";
14826
- IntegrationEnum["FastGPT"] = "fastgpt";
14827
- })(IntegrationEnum || (IntegrationEnum = {}));
14828
- var IntegrationFeatureEnum;
14829
- (function(IntegrationFeatureEnum) {
14830
- IntegrationFeatureEnum["KNOWLEDGE"] = "knowledge";
14831
- IntegrationFeatureEnum["AGENT"] = "agent";
14832
- IntegrationFeatureEnum["SSO"] = "sso";
14833
- })(IntegrationFeatureEnum || (IntegrationFeatureEnum = {}));
14834
- var IntegrationFilterEnum;
14835
- (function(IntegrationFilterEnum) {
14836
- IntegrationFilterEnum["ALL"] = "All";
14837
- IntegrationFilterEnum["FREE"] = "Free";
14838
- IntegrationFilterEnum["PAID"] = "Paid";
14839
- })(IntegrationFilterEnum || (IntegrationFilterEnum = {}));
14840
- var DEFAULT_INTEGRATION_PAID_FILTERS = [
14841
- {
14842
- label: IntegrationFilterEnum.ALL,
14843
- value: "all"
14844
- },
14845
- {
14846
- label: IntegrationFilterEnum.FREE,
14847
- value: "false"
14848
- },
14849
- {
14850
- label: IntegrationFilterEnum.PAID,
14851
- value: "true"
15290
+ function _array_like_to_array$2(arr, len) {
15291
+ if (len == null || len > arr.length) len = arr.length;
15292
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15293
+ return arr2;
15294
+ }
15295
+ function _array_with_holes$2(arr) {
15296
+ if (Array.isArray(arr)) return arr;
15297
+ }
15298
+ function _define_property$3(obj, key, value) {
15299
+ if (key in obj) {
15300
+ Object.defineProperty(obj, key, {
15301
+ value: value,
15302
+ enumerable: true,
15303
+ configurable: true,
15304
+ writable: true
15305
+ });
15306
+ } else {
15307
+ obj[key] = value;
14852
15308
  }
14853
- ];
14854
-
14855
- var InviteStatusEnum;
14856
- (function(InviteStatusEnum) {
14857
- InviteStatusEnum["INVITED"] = "INVITED";
14858
- InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
14859
- })(InviteStatusEnum || (InviteStatusEnum = {}));
14860
- var InvitationTypeEnum;
14861
- (function(InvitationTypeEnum) {
14862
- InvitationTypeEnum["USER"] = "USER";
14863
- InvitationTypeEnum["EMPLOYEE"] = "EMPLOYEE";
14864
- InvitationTypeEnum["CANDIDATE"] = "CANDIDATE";
14865
- })(InvitationTypeEnum || (InvitationTypeEnum = {}));
14866
- var InvitationExpirationEnum;
14867
- (function(InvitationExpirationEnum) {
14868
- InvitationExpirationEnum[InvitationExpirationEnum["DAY"] = 1] = "DAY";
14869
- InvitationExpirationEnum[InvitationExpirationEnum["WEEK"] = 7] = "WEEK";
14870
- InvitationExpirationEnum[InvitationExpirationEnum["TWO_WEEK"] = 14] = "TWO_WEEK";
14871
- InvitationExpirationEnum[InvitationExpirationEnum["MONTH"] = 30] = "MONTH";
14872
- InvitationExpirationEnum["NEVER"] = "Never";
14873
- })(InvitationExpirationEnum || (InvitationExpirationEnum = {}));
14874
-
14875
- var TaskListTypeEnum;
14876
- (function(TaskListTypeEnum) {
14877
- TaskListTypeEnum["GRID"] = "GRID";
14878
- TaskListTypeEnum["SPRINT"] = "SPRINT";
14879
- })(TaskListTypeEnum || (TaskListTypeEnum = {}));
15309
+ return obj;
15310
+ }
15311
+ function _iterable_to_array_limit$2(arr, i) {
15312
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
15313
+ if (_i == null) return;
15314
+ var _arr = [];
15315
+ var _n = true;
15316
+ var _d = false;
15317
+ var _s, _e;
15318
+ try {
15319
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
15320
+ _arr.push(_s.value);
15321
+ if (i && _arr.length === i) break;
15322
+ }
15323
+ } catch (err) {
15324
+ _d = true;
15325
+ _e = err;
15326
+ } finally{
15327
+ try {
15328
+ if (!_n && _i["return"] != null) _i["return"]();
15329
+ } finally{
15330
+ if (_d) throw _e;
15331
+ }
15332
+ }
15333
+ return _arr;
15334
+ }
15335
+ function _non_iterable_rest$2() {
15336
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15337
+ }
15338
+ function _object_spread$3(target) {
15339
+ for(var i = 1; i < arguments.length; i++){
15340
+ var source = arguments[i] != null ? arguments[i] : {};
15341
+ var ownKeys = Object.keys(source);
15342
+ if (typeof Object.getOwnPropertySymbols === "function") {
15343
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
15344
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
15345
+ }));
15346
+ }
15347
+ ownKeys.forEach(function(key) {
15348
+ _define_property$3(target, key, source[key]);
15349
+ });
15350
+ }
15351
+ return target;
15352
+ }
15353
+ function _sliced_to_array$2(arr, i) {
15354
+ return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
15355
+ }
15356
+ function _unsupported_iterable_to_array$2(o, minLen) {
15357
+ if (!o) return;
15358
+ if (typeof o === "string") return _array_like_to_array$2(o, minLen);
15359
+ var n = Object.prototype.toString.call(o).slice(8, -1);
15360
+ if (n === "Object" && o.constructor) n = o.constructor.name;
15361
+ if (n === "Map" || n === "Set") return Array.from(n);
15362
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
15363
+ }
15364
+ // Public diagnostics are authored separately from driver errors. This is defense in depth,
15365
+ // not a sanitizer for arbitrary logs: producers must never copy raw exceptions into message.
15366
+ var privateText = /[\u0000-\u001f\u007f]|(?:https?|jdbc|postgres(?:ql)?|mysql):|\b(?:password|passwd|pwd|secret|token|authorization|cookie|api[_-]?key)\s*[:=]|\bBearer\s|-----BEGIN|\b(?:SELECT|WITH)\b[\s\S]*\bFROM\b|\b(?:INSERT\s+INTO|UPDATE\s+\S+\s+SET|DELETE\s+FROM)\b|<\/?[a-z][^>]*>|(?:\/Users\/|\/home\/|\/private\/|[A-Z]:\\)|\bat\s+\S+\s*\(/i;
15367
+ var publicText = z.string().trim().min(1).max(600).refine(function(value) {
15368
+ return !privateText.test(value);
15369
+ });
15370
+ var reference = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/);
15371
+ /** Portable HTTP/provider failure contract. No arbitrary details, cause, query or connection fields. */ var analyticsDiagnosticSchema = z.object({
15372
+ schema: z.literal("xpert.analytics.diagnostic"),
15373
+ version: z.literal(1),
15374
+ code: z.string().regex(/^[A-Z][A-Z0-9_-]{2,79}$/),
15375
+ stage: z.enum([
15376
+ "request",
15377
+ "source",
15378
+ "validation",
15379
+ "authorization",
15380
+ "execution",
15381
+ "result",
15382
+ "dependency"
15383
+ ]),
15384
+ message: publicText,
15385
+ retryable: z.boolean(),
15386
+ upstreamExecutionId: reference.optional(),
15387
+ auditRef: reference.optional()
15388
+ }).strict().refine(function(value) {
15389
+ return !value.retryable || value.stage === "execution" || value.stage === "dependency";
15390
+ });
15391
+ /** Invalid provider diagnostics fail closed; never return Zod errors containing received input. */ function parseAnalyticsDiagnostic(value) {
15392
+ try {
15393
+ if (!value || typeof value !== "object") return undefined;
15394
+ var properties = Object.getOwnPropertyDescriptors(value);
15395
+ if (Object.values(properties).some(function(property) {
15396
+ return !("value" in property);
15397
+ })) return undefined;
15398
+ var parsed = analyticsDiagnosticSchema.safeParse(Object.fromEntries(Object.entries(properties).map(function(param) {
15399
+ var _param = _sliced_to_array$2(param, 2), key = _param[0], property = _param[1];
15400
+ return [
15401
+ key,
15402
+ property.value
15403
+ ];
15404
+ })));
15405
+ if (!parsed.success) return undefined;
15406
+ var _parsed_data = parsed.data, schema = _parsed_data.schema, version = _parsed_data.version, code = _parsed_data.code, stage = _parsed_data.stage, message = _parsed_data.message, retryable = _parsed_data.retryable, upstreamExecutionId = _parsed_data.upstreamExecutionId, auditRef = _parsed_data.auditRef;
15407
+ return _object_spread$3({
15408
+ schema: schema,
15409
+ version: version,
15410
+ code: code,
15411
+ stage: stage,
15412
+ message: message,
15413
+ retryable: retryable
15414
+ }, upstreamExecutionId ? {
15415
+ upstreamExecutionId: upstreamExecutionId
15416
+ } : {}, auditRef ? {
15417
+ auditRef: auditRef
15418
+ } : {});
15419
+ } catch (e) {
15420
+ return undefined;
15421
+ }
15422
+ }
15423
+
15424
+ var DataSourceSyntaxEnum;
15425
+ (function(DataSourceSyntaxEnum) {
15426
+ DataSourceSyntaxEnum["SQL"] = "sql";
15427
+ DataSourceSyntaxEnum["MDX"] = "mdx";
15428
+ })(DataSourceSyntaxEnum || (DataSourceSyntaxEnum = {}));
15429
+ var DataSourceProtocolEnum;
15430
+ (function(DataSourceProtocolEnum) {
15431
+ DataSourceProtocolEnum["SQL"] = "sql";
15432
+ DataSourceProtocolEnum["XMLA"] = "xmla";
15433
+ })(DataSourceProtocolEnum || (DataSourceProtocolEnum = {}));
15434
+
15435
+ /**
15436
+ * @deprecated use Plugins instead
15437
+ */ var IntegrationEnum;
15438
+ (function(IntegrationEnum) {
15439
+ IntegrationEnum["UPWORK"] = "Upwork";
15440
+ IntegrationEnum["HUBSTAFF"] = "Hubstaff";
15441
+ IntegrationEnum["LARK"] = "Lark";
15442
+ IntegrationEnum["DINGTALK"] = "DingTalk";
15443
+ IntegrationEnum["WECOM"] = "WeCom";
15444
+ IntegrationEnum["FIRECRAWL"] = "firecrawl";
15445
+ IntegrationEnum["KNOWLEDGEBASE"] = "knowledgebase";
15446
+ IntegrationEnum["GITHUB"] = "github";
15447
+ IntegrationEnum["RAGFlow"] = "ragflow";
15448
+ IntegrationEnum["Dify"] = "dify";
15449
+ IntegrationEnum["FastGPT"] = "fastgpt";
15450
+ })(IntegrationEnum || (IntegrationEnum = {}));
15451
+ var IntegrationFeatureEnum;
15452
+ (function(IntegrationFeatureEnum) {
15453
+ IntegrationFeatureEnum["KNOWLEDGE"] = "knowledge";
15454
+ IntegrationFeatureEnum["AGENT"] = "agent";
15455
+ IntegrationFeatureEnum["SSO"] = "sso";
15456
+ })(IntegrationFeatureEnum || (IntegrationFeatureEnum = {}));
15457
+ var IntegrationFilterEnum;
15458
+ (function(IntegrationFilterEnum) {
15459
+ IntegrationFilterEnum["ALL"] = "All";
15460
+ IntegrationFilterEnum["FREE"] = "Free";
15461
+ IntegrationFilterEnum["PAID"] = "Paid";
15462
+ })(IntegrationFilterEnum || (IntegrationFilterEnum = {}));
15463
+ var DEFAULT_INTEGRATION_PAID_FILTERS = [
15464
+ {
15465
+ label: IntegrationFilterEnum.ALL,
15466
+ value: "all"
15467
+ },
15468
+ {
15469
+ label: IntegrationFilterEnum.FREE,
15470
+ value: "false"
15471
+ },
15472
+ {
15473
+ label: IntegrationFilterEnum.PAID,
15474
+ value: "true"
15475
+ }
15476
+ ];
15477
+
15478
+ var InviteStatusEnum;
15479
+ (function(InviteStatusEnum) {
15480
+ InviteStatusEnum["INVITED"] = "INVITED";
15481
+ InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
15482
+ })(InviteStatusEnum || (InviteStatusEnum = {}));
15483
+ var InvitationTypeEnum;
15484
+ (function(InvitationTypeEnum) {
15485
+ InvitationTypeEnum["USER"] = "USER";
15486
+ InvitationTypeEnum["EMPLOYEE"] = "EMPLOYEE";
15487
+ InvitationTypeEnum["CANDIDATE"] = "CANDIDATE";
15488
+ })(InvitationTypeEnum || (InvitationTypeEnum = {}));
15489
+ var InvitationExpirationEnum;
15490
+ (function(InvitationExpirationEnum) {
15491
+ InvitationExpirationEnum[InvitationExpirationEnum["DAY"] = 1] = "DAY";
15492
+ InvitationExpirationEnum[InvitationExpirationEnum["WEEK"] = 7] = "WEEK";
15493
+ InvitationExpirationEnum[InvitationExpirationEnum["TWO_WEEK"] = 14] = "TWO_WEEK";
15494
+ InvitationExpirationEnum[InvitationExpirationEnum["MONTH"] = 30] = "MONTH";
15495
+ InvitationExpirationEnum["NEVER"] = "Never";
15496
+ })(InvitationExpirationEnum || (InvitationExpirationEnum = {}));
15497
+
15498
+ var TaskListTypeEnum;
15499
+ (function(TaskListTypeEnum) {
15500
+ TaskListTypeEnum["GRID"] = "GRID";
15501
+ TaskListTypeEnum["SPRINT"] = "SPRINT";
15502
+ })(TaskListTypeEnum || (TaskListTypeEnum = {}));
14880
15503
  var OrganizationProjectBudgetTypeEnum;
14881
15504
  (function(OrganizationProjectBudgetTypeEnum) {
14882
15505
  OrganizationProjectBudgetTypeEnum["HOURS"] = "hours";
@@ -15079,6 +15702,8 @@ var RequestScopeLevel;
15079
15702
  * Embedded/group credentials never become source-management authority and no login token is returned to the View.
15080
15703
  */ var ARTIFACT_USE_GRANT_MANAGE_COMMAND = "artifact.use-grants.manage";
15081
15704
 
15705
+ /** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
15706
+
15082
15707
  var BusinessType;
15083
15708
  (function(BusinessType) {
15084
15709
  BusinessType["SEMANTIC_MODEL"] = "SEMANTIC_MODEL";
@@ -15086,15 +15711,15 @@ var BusinessType;
15086
15711
  BusinessType["INDICATOR"] = "INDICATOR";
15087
15712
  })(BusinessType || (BusinessType = {}));
15088
15713
 
15089
- function _array_like_to_array$2(arr, len) {
15714
+ function _array_like_to_array$1(arr, len) {
15090
15715
  if (len == null || len > arr.length) len = arr.length;
15091
15716
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15092
15717
  return arr2;
15093
15718
  }
15094
- function _array_with_holes$2(arr) {
15719
+ function _array_with_holes$1(arr) {
15095
15720
  if (Array.isArray(arr)) return arr;
15096
15721
  }
15097
- function _iterable_to_array_limit$2(arr, i) {
15722
+ function _iterable_to_array_limit$1(arr, i) {
15098
15723
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
15099
15724
  if (_i == null) return;
15100
15725
  var _arr = [];
@@ -15118,19 +15743,19 @@ function _iterable_to_array_limit$2(arr, i) {
15118
15743
  }
15119
15744
  return _arr;
15120
15745
  }
15121
- function _non_iterable_rest$2() {
15746
+ function _non_iterable_rest$1() {
15122
15747
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15123
15748
  }
15124
- function _sliced_to_array$2(arr, i) {
15125
- return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
15749
+ function _sliced_to_array$1(arr, i) {
15750
+ return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
15126
15751
  }
15127
- function _unsupported_iterable_to_array$2(o, minLen) {
15752
+ function _unsupported_iterable_to_array$1(o, minLen) {
15128
15753
  if (!o) return;
15129
- if (typeof o === "string") return _array_like_to_array$2(o, minLen);
15754
+ if (typeof o === "string") return _array_like_to_array$1(o, minLen);
15130
15755
  var n = Object.prototype.toString.call(o).slice(8, -1);
15131
15756
  if (n === "Object" && o.constructor) n = o.constructor.name;
15132
15757
  if (n === "Map" || n === "Set") return Array.from(n);
15133
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
15758
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
15134
15759
  }
15135
15760
  var ScheduleTaskStatus;
15136
15761
  (function(ScheduleTaskStatus) {
@@ -15153,7 +15778,7 @@ var TaskFrequency;
15153
15778
  * @returns
15154
15779
  */ function generateCronExpression(schedule) {
15155
15780
  if (!schedule.time) throw new Error("Time is required for scheduling");
15156
- var _schedule_time_split = _sliced_to_array$2(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
15781
+ var _schedule_time_split = _sliced_to_array$1(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
15157
15782
  var hour = parseInt(hourStr, 10);
15158
15783
  var minute = parseInt(minuteStr, 10);
15159
15784
  if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
@@ -15211,6 +15836,7 @@ var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
15211
15836
  var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
15212
15837
  /** Resolve the Project's application entry through its registered type and current access checks. */ var WORKBENCH_PROJECT_APPLICATION_TARGET = "project.application";
15213
15838
  /** Open full Project pipeline management in the configured platform. */ var WORKBENCH_PROJECT_PIPELINES_TARGET = "project.pipelines";
15839
+ /** Host-owned browser persistence. Plugins never choose an account/storage namespace. */ var WORKBENCH_CONTENT_DRAFT_COMMAND = "workbench.content.draft";
15214
15840
 
15215
15841
  // Preserve existing imports while client-command contracts live in their own module.
15216
15842
  var XPERT_VIEW_PROJECT_ID_HEADER = "x-xpert-view-project-id";
@@ -15227,15 +15853,15 @@ var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
15227
15853
  ];
15228
15854
  /** Platform-provided navigation, available without Assistant middleware. */ var CONVERSATION_MAP_FEATURE = "platform.conversation-map";
15229
15855
 
15230
- /** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array$1(arr, len) {
15856
+ /** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array(arr, len) {
15231
15857
  if (len == null || len > arr.length) len = arr.length;
15232
15858
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15233
15859
  return arr2;
15234
15860
  }
15235
- function _array_with_holes$1(arr) {
15861
+ function _array_with_holes(arr) {
15236
15862
  if (Array.isArray(arr)) return arr;
15237
15863
  }
15238
- function _define_property$3(obj, key, value) {
15864
+ function _define_property$2(obj, key, value) {
15239
15865
  if (key in obj) {
15240
15866
  Object.defineProperty(obj, key, {
15241
15867
  value: value,
@@ -15248,7 +15874,7 @@ function _define_property$3(obj, key, value) {
15248
15874
  }
15249
15875
  return obj;
15250
15876
  }
15251
- function _iterable_to_array_limit$1(arr, i) {
15877
+ function _iterable_to_array_limit(arr, i) {
15252
15878
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
15253
15879
  if (_i == null) return;
15254
15880
  var _arr = [];
@@ -15272,10 +15898,10 @@ function _iterable_to_array_limit$1(arr, i) {
15272
15898
  }
15273
15899
  return _arr;
15274
15900
  }
15275
- function _non_iterable_rest$1() {
15901
+ function _non_iterable_rest() {
15276
15902
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15277
15903
  }
15278
- function _object_spread$3(target) {
15904
+ function _object_spread$2(target) {
15279
15905
  for(var i = 1; i < arguments.length; i++){
15280
15906
  var source = arguments[i] != null ? arguments[i] : {};
15281
15907
  var ownKeys = Object.keys(source);
@@ -15285,21 +15911,21 @@ function _object_spread$3(target) {
15285
15911
  }));
15286
15912
  }
15287
15913
  ownKeys.forEach(function(key) {
15288
- _define_property$3(target, key, source[key]);
15914
+ _define_property$2(target, key, source[key]);
15289
15915
  });
15290
15916
  }
15291
15917
  return target;
15292
15918
  }
15293
- function _sliced_to_array$1(arr, i) {
15294
- return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
15919
+ function _sliced_to_array(arr, i) {
15920
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
15295
15921
  }
15296
- function _unsupported_iterable_to_array$1(o, minLen) {
15922
+ function _unsupported_iterable_to_array(o, minLen) {
15297
15923
  if (!o) return;
15298
- if (typeof o === "string") return _array_like_to_array$1(o, minLen);
15924
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
15299
15925
  var n = Object.prototype.toString.call(o).slice(8, -1);
15300
15926
  if (n === "Object" && o.constructor) n = o.constructor.name;
15301
15927
  if (n === "Map" || n === "Set") return Array.from(n);
15302
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
15928
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
15303
15929
  }
15304
15930
  var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
15305
15931
  /**
@@ -15318,7 +15944,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
15318
15944
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
15319
15945
  try {
15320
15946
  for(var _iterator = Object.entries(value.parameters)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
15321
- var _step_value = _sliced_to_array$1(_step.value, 2), key = _step_value[0], item = _step_value[1];
15947
+ var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], item = _step_value[1];
15322
15948
  if (isViewScalar(item)) parameters[key] = item;
15323
15949
  else if (Array.isArray(item) && item.every(isViewScalar)) parameters[key] = item;
15324
15950
  else return null;
@@ -15338,7 +15964,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
15338
15964
  }
15339
15965
  }
15340
15966
  }
15341
- return _object_spread$3({
15967
+ return _object_spread$2({
15342
15968
  type: WORKBENCH_VIEW_OPEN_EVENT,
15343
15969
  viewKey: value.viewKey,
15344
15970
  projectId: value.projectId
@@ -15357,7 +15983,7 @@ function isViewScalar(value) {
15357
15983
  return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
15358
15984
  }
15359
15985
 
15360
- function _define_property$2(obj, key, value) {
15986
+ function _define_property$1(obj, key, value) {
15361
15987
  if (key in obj) {
15362
15988
  Object.defineProperty(obj, key, {
15363
15989
  value: value,
@@ -15370,7 +15996,7 @@ function _define_property$2(obj, key, value) {
15370
15996
  }
15371
15997
  return obj;
15372
15998
  }
15373
- function _object_spread$2(target) {
15999
+ function _object_spread$1(target) {
15374
16000
  for(var i = 1; i < arguments.length; i++){
15375
16001
  var source = arguments[i] != null ? arguments[i] : {};
15376
16002
  var ownKeys = Object.keys(source);
@@ -15380,7 +16006,7 @@ function _object_spread$2(target) {
15380
16006
  }));
15381
16007
  }
15382
16008
  ownKeys.forEach(function(key) {
15383
- _define_property$2(target, key, source[key]);
16009
+ _define_property$1(target, key, source[key]);
15384
16010
  });
15385
16011
  }
15386
16012
  return target;
@@ -15393,35 +16019,14 @@ var hasIntegrationMethod = function(value) {
15393
16019
  return !value.integrationId || !!value.authMethodId;
15394
16020
  };
15395
16021
  /** An integration reference must name the Connector authentication method that consumes it. */ var workspaceConnectorAuthorizationSchema = z.object(authorizationFields).strict().refine(hasIntegrationMethod);
15396
- /** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = z.object(_object_spread$2({
16022
+ /** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = z.object(_object_spread$1({
15397
16023
  provider: z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
15398
16024
  }, authorizationFields)).strict().refine(hasIntegrationMethod);
15399
16025
 
15400
- /** Context revision and runtime scope delivered by an authorized Remote View host. */ var viewContextEventSchema = z.object({
15401
- type: z.literal("view.context.changed"),
15402
- data: z.object({
15403
- revision: z.number().int().nonnegative(),
15404
- runtimeScope: z.object({
15405
- projectId: z.string().nullish(),
15406
- conversationId: z.string().nullish()
15407
- })
15408
- })
15409
- }).transform(function(param) {
15410
- var type = param.type, data = param.data;
15411
- return {
15412
- type: type,
15413
- // Keep required envelope fields explicit in declarations built without strictNullChecks.
15414
- data: {
15415
- revision: data.revision,
15416
- runtimeScope: data.runtimeScope
15417
- }
15418
- };
15419
- });
15420
-
15421
16026
  var RUNTIME_RESTART_CONFIRMATION = "RESTART";
15422
16027
  /** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
15423
16028
 
15424
- function _define_property$1(obj, key, value) {
16029
+ function _define_property(obj, key, value) {
15425
16030
  if (key in obj) {
15426
16031
  Object.defineProperty(obj, key, {
15427
16032
  value: value,
@@ -15434,7 +16039,7 @@ function _define_property$1(obj, key, value) {
15434
16039
  }
15435
16040
  return obj;
15436
16041
  }
15437
- function _object_spread$1(target) {
16042
+ function _object_spread(target) {
15438
16043
  for(var i = 1; i < arguments.length; i++){
15439
16044
  var source = arguments[i] != null ? arguments[i] : {};
15440
16045
  var ownKeys = Object.keys(source);
@@ -15444,7 +16049,7 @@ function _object_spread$1(target) {
15444
16049
  }));
15445
16050
  }
15446
16051
  ownKeys.forEach(function(key) {
15447
- _define_property$1(target, key, source[key]);
16052
+ _define_property(target, key, source[key]);
15448
16053
  });
15449
16054
  }
15450
16055
  return target;
@@ -15492,7 +16097,7 @@ var anchor = {
15492
16097
  threadId: z.string().optional(),
15493
16098
  executionId: z.string().optional()
15494
16099
  };
15495
- var trailStepSchema = z.object(_object_spread_props(_object_spread$1({
16100
+ var trailStepSchema = z.object(_object_spread_props(_object_spread({
15496
16101
  id: z.string(),
15497
16102
  laneId: z.string(),
15498
16103
  kind: z.enum([
@@ -15513,7 +16118,7 @@ var trailStepSchema = z.object(_object_spread_props(_object_spread$1({
15513
16118
  input: z.string().optional(),
15514
16119
  output: z.string().optional()
15515
16120
  }));
15516
- var trailLaneSchema = z.object(_object_spread_props(_object_spread$1({
16121
+ var trailLaneSchema = z.object(_object_spread_props(_object_spread({
15517
16122
  id: z.string(),
15518
16123
  parentId: z.string().nullable(),
15519
16124
  spawnStepId: z.string().optional(),
@@ -15667,143 +16272,7 @@ var executionActivityBatchSchema = z.object({
15667
16272
  var ASSISTANT_CONTENT_REVIEW_COMMAND = "assistant.content.review";
15668
16273
  var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
15669
16274
 
15670
- /** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
15671
-
15672
- function _array_like_to_array(arr, len) {
15673
- if (len == null || len > arr.length) len = arr.length;
15674
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15675
- return arr2;
15676
- }
15677
- function _array_with_holes(arr) {
15678
- if (Array.isArray(arr)) return arr;
15679
- }
15680
- function _define_property(obj, key, value) {
15681
- if (key in obj) {
15682
- Object.defineProperty(obj, key, {
15683
- value: value,
15684
- enumerable: true,
15685
- configurable: true,
15686
- writable: true
15687
- });
15688
- } else {
15689
- obj[key] = value;
15690
- }
15691
- return obj;
15692
- }
15693
- function _iterable_to_array_limit(arr, i) {
15694
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
15695
- if (_i == null) return;
15696
- var _arr = [];
15697
- var _n = true;
15698
- var _d = false;
15699
- var _s, _e;
15700
- try {
15701
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
15702
- _arr.push(_s.value);
15703
- if (i && _arr.length === i) break;
15704
- }
15705
- } catch (err) {
15706
- _d = true;
15707
- _e = err;
15708
- } finally{
15709
- try {
15710
- if (!_n && _i["return"] != null) _i["return"]();
15711
- } finally{
15712
- if (_d) throw _e;
15713
- }
15714
- }
15715
- return _arr;
15716
- }
15717
- function _non_iterable_rest() {
15718
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
15719
- }
15720
- function _object_spread(target) {
15721
- for(var i = 1; i < arguments.length; i++){
15722
- var source = arguments[i] != null ? arguments[i] : {};
15723
- var ownKeys = Object.keys(source);
15724
- if (typeof Object.getOwnPropertySymbols === "function") {
15725
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
15726
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
15727
- }));
15728
- }
15729
- ownKeys.forEach(function(key) {
15730
- _define_property(target, key, source[key]);
15731
- });
15732
- }
15733
- return target;
15734
- }
15735
- function _sliced_to_array(arr, i) {
15736
- return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
15737
- }
15738
- function _unsupported_iterable_to_array(o, minLen) {
15739
- if (!o) return;
15740
- if (typeof o === "string") return _array_like_to_array(o, minLen);
15741
- var n = Object.prototype.toString.call(o).slice(8, -1);
15742
- if (n === "Object" && o.constructor) n = o.constructor.name;
15743
- if (n === "Map" || n === "Set") return Array.from(n);
15744
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
15745
- }
15746
- // Public diagnostics are authored separately from driver errors. This is defense in depth,
15747
- // not a sanitizer for arbitrary logs: producers must never copy raw exceptions into message.
15748
- var privateText = /[\u0000-\u001f\u007f]|(?:https?|jdbc|postgres(?:ql)?|mysql):|\b(?:password|passwd|pwd|secret|token|authorization|cookie|api[_-]?key)\s*[:=]|\bBearer\s|-----BEGIN|\b(?:SELECT|WITH)\b[\s\S]*\bFROM\b|\b(?:INSERT\s+INTO|UPDATE\s+\S+\s+SET|DELETE\s+FROM)\b|<\/?[a-z][^>]*>|(?:\/Users\/|\/home\/|\/private\/|[A-Z]:\\)|\bat\s+\S+\s*\(/i;
15749
- var publicText = z.string().trim().min(1).max(600).refine(function(value) {
15750
- return !privateText.test(value);
15751
- });
15752
- var reference = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/);
15753
- /** Portable HTTP/provider failure contract. No arbitrary details, cause, query or connection fields. */ var analyticsDiagnosticSchema = z.object({
15754
- schema: z.literal("xpert.analytics.diagnostic"),
15755
- version: z.literal(1),
15756
- code: z.string().regex(/^[A-Z][A-Z0-9_-]{2,79}$/),
15757
- stage: z.enum([
15758
- "request",
15759
- "source",
15760
- "validation",
15761
- "authorization",
15762
- "execution",
15763
- "result",
15764
- "dependency"
15765
- ]),
15766
- message: publicText,
15767
- retryable: z.boolean(),
15768
- upstreamExecutionId: reference.optional(),
15769
- auditRef: reference.optional()
15770
- }).strict().refine(function(value) {
15771
- return !value.retryable || value.stage === "execution" || value.stage === "dependency";
15772
- });
15773
- /** Invalid provider diagnostics fail closed; never return Zod errors containing received input. */ function parseAnalyticsDiagnostic(value) {
15774
- try {
15775
- if (!value || typeof value !== "object") return undefined;
15776
- var properties = Object.getOwnPropertyDescriptors(value);
15777
- if (Object.values(properties).some(function(property) {
15778
- return !("value" in property);
15779
- })) return undefined;
15780
- var parsed = analyticsDiagnosticSchema.safeParse(Object.fromEntries(Object.entries(properties).map(function(param) {
15781
- var _param = _sliced_to_array(param, 2), key = _param[0], property = _param[1];
15782
- return [
15783
- key,
15784
- property.value
15785
- ];
15786
- })));
15787
- if (!parsed.success) return undefined;
15788
- var _parsed_data = parsed.data, schema = _parsed_data.schema, version = _parsed_data.version, code = _parsed_data.code, stage = _parsed_data.stage, message = _parsed_data.message, retryable = _parsed_data.retryable, upstreamExecutionId = _parsed_data.upstreamExecutionId, auditRef = _parsed_data.auditRef;
15789
- return _object_spread({
15790
- schema: schema,
15791
- version: version,
15792
- code: code,
15793
- stage: stage,
15794
- message: message,
15795
- retryable: retryable
15796
- }, upstreamExecutionId ? {
15797
- upstreamExecutionId: upstreamExecutionId
15798
- } : {}, auditRef ? {
15799
- auditRef: auditRef
15800
- } : {});
15801
- } catch (e) {
15802
- return undefined;
15803
- }
15804
- }
15805
-
15806
- var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
16275
+ var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
15807
16276
 
15808
16277
  /** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
15809
16278
  var MCP_EXECUTION_CONTROL_METHOD = "xpert/tasks/control";
@@ -15916,146 +16385,6 @@ var mcpTaskAcknowledgementSchema = z$1.object({
15916
16385
  resultType: z$1.literal("complete")
15917
16386
  }).passthrough();
15918
16387
 
15919
- // Application types are independent of delivery channels and external account identities.
15920
- var notificationClientSchema = z.enum([
15921
- "web",
15922
- "desktop"
15923
- ]);
15924
- var announcementActionSchema = z.object({
15925
- type: z.literal("link"),
15926
- label: z.string().trim().min(1).max(80),
15927
- url: z.string().url().max(2048).refine(function(url) {
15928
- return /^https:\/\//i.test(url);
15929
- })
15930
- }).strict();
15931
- var announcementContentSchema = z.object({
15932
- title: z.string().trim().min(1).max(160),
15933
- body: z.string().trim().min(1).max(20000),
15934
- category: z.enum([
15935
- "general",
15936
- "maintenance",
15937
- "model_retirement"
15938
- ]).default("general"),
15939
- severity: z.enum([
15940
- "info",
15941
- "important"
15942
- ]).default("info"),
15943
- clients: z.array(notificationClientSchema).min(1).max(2).refine(function(items) {
15944
- return new Set(items).size === items.length;
15945
- }),
15946
- startsAt: z.string().datetime({
15947
- offset: true
15948
- }),
15949
- expiresAt: z.string().datetime({
15950
- offset: true
15951
- }).nullable().default(null),
15952
- action: announcementActionSchema.nullable().default(null)
15953
- }).strict();
15954
- var createAnnouncementSchema = announcementContentSchema.refine(function(input) {
15955
- return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
15956
- }, {
15957
- path: [
15958
- "expiresAt"
15959
- ],
15960
- message: "Expiry must follow start"
15961
- });
15962
- var updateAnnouncementSchema = announcementContentSchema.extend({
15963
- revision: z.number().int().positive()
15964
- }).refine(function(input) {
15965
- return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
15966
- }, {
15967
- path: [
15968
- "expiresAt"
15969
- ]
15970
- });
15971
- var announcementRevisionSchema = z.object({
15972
- revision: z.number().int().positive()
15973
- }).strict();
15974
- var announcementSchema = announcementContentSchema.extend({
15975
- id: z.string().uuid(),
15976
- status: z.enum([
15977
- "draft",
15978
- "published",
15979
- "withdrawn"
15980
- ]),
15981
- revision: z.number().int().positive(),
15982
- createdAt: z.string().datetime({
15983
- offset: true
15984
- }),
15985
- dismissedAt: z.string().datetime({
15986
- offset: true
15987
- }).nullable().default(null)
15988
- });
15989
- var notificationSourceSchema = z.object({
15990
- type: z.literal("scheduled_task"),
15991
- taskId: z.string().uuid(),
15992
- executionId: z.string().uuid(),
15993
- assistantId: z.string().uuid(),
15994
- conversationId: z.string().uuid()
15995
- }).strict();
15996
- var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
15997
- threadId: z.string().uuid().optional()
15998
- });
15999
- var userNotificationSchema = z.object({
16000
- id: z.string().uuid(),
16001
- kind: z.literal("agent.completed"),
16002
- source: notificationSourceSchema,
16003
- createdAt: z.string().datetime({
16004
- offset: true
16005
- }),
16006
- readAt: z.string().datetime({
16007
- offset: true
16008
- }).nullable(),
16009
- action: z.object({
16010
- type: z.literal("open_conversation"),
16011
- assistantId: z.string().uuid(),
16012
- conversationId: z.string().uuid(),
16013
- threadId: z.string().uuid().nullable()
16014
- }).strict()
16015
- }).strict();
16016
- var notificationSnapshotSchema = z.object({
16017
- supported: z.literal(true),
16018
- version: z.string(),
16019
- announcements: z.array(announcementSchema),
16020
- notifications: z.array(userNotificationSchema),
16021
- hasMoreAnnouncements: z.boolean(),
16022
- hasMoreNotifications: z.boolean()
16023
- }).strict();
16024
- var notificationChangeSchema = z.object({
16025
- schemaVersion: z.literal(1),
16026
- type: z.literal("sync.required"),
16027
- eventId: z.string().uuid()
16028
- }).strict();
16029
- var notificationOutboxPayloadSchema = z.discriminatedUnion("type", [
16030
- z.object({
16031
- type: z.literal("changed")
16032
- }).strict(),
16033
- z.object({
16034
- type: z.literal("announcement.scheduled"),
16035
- announcementId: z.string().uuid(),
16036
- revision: z.number().int().positive(),
16037
- phase: z.enum([
16038
- "start",
16039
- "expiry"
16040
- ])
16041
- }).strict(),
16042
- z.object({
16043
- type: z.literal("agent.completed"),
16044
- source: scheduledNotificationOriginSchema
16045
- }).strict()
16046
- ]);
16047
- // The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
16048
- // object outputs optional. These boundaries validate every required field before narrowing.
16049
- function parseAnnouncement(value) {
16050
- return announcementSchema.parse(value);
16051
- }
16052
- function parseUserNotification(value) {
16053
- return userNotificationSchema.parse(value);
16054
- }
16055
- function parseNotificationSnapshot(value) {
16056
- return notificationSnapshotSchema.parse(value);
16057
- }
16058
-
16059
16388
  var BUSINESS_AREA_ACCESS_ROLES = [
16060
16389
  "consumer",
16061
16390
  "publisher",
@@ -16067,7 +16396,7 @@ function businessAreaRoleAllows(role, action) {
16067
16396
 
16068
16397
  /** Opens a discovered resource through its native authorization adapter in the current Workbench scope. */ var WORKBENCH_RESOURCE_OPEN_COMMAND = "workbench.resource.open";
16069
16398
 
16070
- /** Public presentation metadata only. Renderers retain their own sandbox and URL policies. */ var iconDefinitionSchema = z.object({
16399
+ var iconShape = {
16071
16400
  type: z.enum([
16072
16401
  "image",
16073
16402
  "svg",
@@ -16080,6 +16409,16 @@ function businessAreaRoleAllows(role, action) {
16080
16409
  size: z.number().finite().positive().optional(),
16081
16410
  alt: z.string().optional(),
16082
16411
  style: z.record(z.string()).optional()
16412
+ };
16413
+ /** Public presentation metadata only. Renderers retain their own sandbox and URL policies.
16414
+ * Explicit output keeps required fields when contracts build without strictNullChecks,
16415
+ * while retaining the object schema's composition methods for existing consumers. */ var iconDefinitionSchema = new z.ZodObject({
16416
+ shape: function() {
16417
+ return iconShape;
16418
+ },
16419
+ unknownKeys: "strip",
16420
+ catchall: z.never(),
16421
+ typeName: z.ZodFirstPartyTypeKind.ZodObject
16083
16422
  });
16084
16423
 
16085
- export { AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ARTIFACT_PRESENTATION_OPEN_COMMAND, ARTIFACT_USE_GRANT_MANAGE_COMMAND, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_COMPOSER_INSERT_COMMAND, ASSISTANT_CONTENT_REVIEW_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BUSINESS_AREA_ACCESS_ROLES, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONNECTION_REFERENCE_KINDS, CONTENT_CATALOG_PROVIDER, CONTENT_DOCUMENT_LINK_RESOURCE_PARAM, CONTENT_EDITOR_LINK_COMMAND, CONTENT_EDITOR_RESOLVE_COMMAND, CONTENT_EDITOR_STATUS_COMMAND, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, CONVERSATION_SHARE_ARTIFACT_SOURCE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_EMBEDDING_BATCH_SIZE, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_DEFINITIONS, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DEPRECATED_ROLE_PERMISSIONS, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultModelRole, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_EXTERNAL_API_BASE_URL_LENGTH, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONFIGURATION_SECRET_MASK, MCP_CONSUMER_AUTH_TYPES, MCP_EXECUTION_CONTROL_EXTENSION_ID, MCP_EXECUTION_CONTROL_METHOD, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_EXTERNAL_API_BASE_URL_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PERSONAL_API_KEY_LIFETIMES, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_CONFIGURATION_ACTIONS, PROJECT_CONFIGURATION_ACTION_HANDLERS, PROJECT_CONFIGURATION_PROVIDER, PROJECT_CONFIGURATION_VIEW, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PluginMarketplaceDetailErrorCode, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, ROLE_PERMISSION_CATALOG, ROLE_PERMISSION_MODULES, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, SPACE_PROJECT_TYPE, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, UNWIRED_AI_PERMISSIONS, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_GROUP_MESSAGE_TARGET, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_PROJECT_APPLICATION_TARGET, WORKBENCH_PROJECT_PIPELINES_TARGET, WORKBENCH_RESOURCE_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, aggregatePipelineAnalytics, allChannels, analyticsDiagnosticSchema, announcementActionSchema, announcementContentSchema, announcementRevisionSchema, announcementSchema, appPlatformAppOrder, appPlatformAppSchema, appPlatformDefinitionSchema, appPlatformEnvironmentSchema, appendMessageContent, appendMessagePlainText, assistantOperationPolicySchema, assistantTaskGroupContext, assistantTaskGroupContextSchema, assistantTemplateManifestSchema, assistantTemplateSetupStateSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, businessAreaRoleAllows, canAllowMcpToolDirectly, canReadProjectPipelineConfiguration, channelName, chatMessagePresentation, checkProjectPipelineConfiguration, checkProjectPipelineHostCompatibility, classificateDocumentCategory, clientSecretGrantSourceSchema, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, configurationFromModel, configureProjectPipelineFromForm, configuredModelSource, controlledHandlerSchema, convertToUrlPath, createAgentConnections, createAnnouncementSchema, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, defaultModelConfiguration, defaultModelDefinition, defaultModelRoleSchema, deriveXpertMarketplaceTechnicalProfile, discoverableModelTypes, enabledModelsSchema, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executeModelReplacementSchema, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, executionControlCapabilitiesSchema, executionControlEvidenceSchema, executionControlProtocols, executionObservationAnomalySchema, executionObservationAssistantSchema, executionObservationAvatarSchema, executionObservationCompareSchema, executionObservationConversationSchema, executionObservationConversationsSchema, executionObservationDetailQuerySchema, executionObservationDetailSchema, executionObservationFilterSchema, executionObservationListSchema, executionObservationOverviewSchema, executionObservationQuerySchema, executionObservationRecordSchema, executionObservationSegmentSchema, executionObservationStatusSchema, executionObservationSummarySchema, executionObservationWorkspacesSchema, executionRuntimeTargetSchema, executionRuntimeTargetsEqual, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getPluginApplicationScopes, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, iconDefinitionSchema, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isConfiguredModelAvailable, isContextCompressionComponentData, isDiscoverableModelType, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isModelGatewayExternalApiBaseUrl, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPluginApplicationScope, isPreparedCandidate, isProjectPipelineApplicable, isPromptWorkflowScenarios, isProviderEvaluation, isProviderModelEnabled, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, legacyModelFeatures, legacyProviderRoleSchema, letterStartSUID, locateNodes, mapTranslationLanguage, mcpExecutionCapabilitySchema, mcpExecutionControlRequestSchema, mcpExecutionReceiptSchema, mcpExecutionToolDeclarationSchema, mcpOperationIdentitySchema, mcpTaskAcknowledgementSchema, mcpTaskResultSchema, mcpTaskStartResultSchema, mergeMessageContentForDisplay, messageContentText, modelBindingSchema, modelConfigurationSchema, modelExecutionEntry, modelExecutionParametersSchema, modelExecutionSourceId, modelIdentityKey, modelIdentitySchema, modelImportSchema, modelReplacementSchema, modelReplacementScopeSchema, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareOptions, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, notificationChangeSchema, notificationClientSchema, notificationOutboxPayloadSchema, notificationSnapshotSchema, notificationSourceSchema, omitXpertRelations, orderAssistantXperts, parseAnalyticsDiagnostic, parseAnnouncement, parseGithubSkillInstallCommand, parseNotificationSnapshot, parseProjectPipelineParameters, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseUserNotification, parseWorkbenchViewOpenEvent, pipelineAnalyticsFacts, pipelineAttemptCounts, pipelineAttemptCountsSchema, pipelineExecutionTiming, pipelineExecutionTimingSchema, pipelineExecutorStatistics, pipelineExecutorStatisticsSchema, pipelineHumanWaitSnapshotSchema, pipelineHumanWaitStatistics, pipelineHumanWaitStatisticsSchema, pipelineModelUsageFactSchema, pipelineModelUsageStatistics, pipelineModelUsageStatisticsSchema, pipelineNodeNeedsHuman, pipelineQueueStatistics, pipelineQueueStatisticsSchema, projectConfigurationActionSchema, projectConfigurationSectionSchema, projectConfigurationUpdateSchema, projectConfigurationValuesSchema, projectPipelineAnalytics, projectPipelineAnalyticsInputSchema, projectPipelineAnalyticsSchema, projectPipelineAssistantExecutionSchema, projectPipelineAssistantInputSchema, projectPipelineBindingSchema, projectPipelineCancelSchema, projectPipelineCatalogConfigureSchema, projectPipelineCatalogProtocolSchema, projectPipelineCatalogRequestSchema, projectPipelineCatalogSchema, projectPipelineCommandCapabilitySchema, projectPipelineCompletionReceiptSchema, projectPipelineConfigurationFormSchema, projectPipelineConfigurationPageSchema, projectPipelineConfigurationSchema, projectPipelineConfigureSchema, projectPipelineContributionSchema, projectPipelineDecisionSchema, projectPipelineDefinitionSchema, projectPipelineDefinitionShapeSchema, projectPipelineEdgeSchema, projectPipelineEvidenceRefSchema, projectPipelineExtensionDescriptorSchema, projectPipelineHostCapabilitiesSchema, projectPipelineHostRequirementsSchema, projectPipelineIconSchema, projectPipelineInputBindingSchema, projectPipelineInstanceSchema, projectPipelineJsonSchema, projectPipelineKeySchema, projectPipelineLaneSchema, projectPipelineModelBudgetIncreaseRecordSchema, projectPipelineModelBudgetIncreaseSchema, projectPipelineNativeDispatchSchema, projectPipelineNativeModelBudgetSchema, projectPipelineNativeModelBudgetStatusSchema, projectPipelineNativeSourceSchema, projectPipelineNextRoundSchema, projectPipelineNodeInstanceSchema, projectPipelineNodePresentationSchema, projectPipelineNodeSchema, projectPipelineNodeStateSchema, projectPipelineOperationInputSchema, projectPipelineOperationReceiptSchema, projectPipelineOutputBindingSchema, projectPipelineParameterFieldSchema, projectPipelineParticipantKindSchema, projectPipelinePolicyReceiptSchema, projectPipelinePortDescriptorSchema, projectPipelinePortfolioInputSchema, projectPipelinePortfolioSchema, projectPipelineProjectBindingSchema, projectPipelineProjectTypesSchema, projectPipelineProjectionEdgeSchema, projectPipelineProjectionNodeSchema, projectPipelineProjectionSchema, projectPipelineProviderActionCommandSchema, projectPipelineProviderActionDescriptorSchema, projectPipelineProviderActionReceiptSchema, projectPipelineProviderActionTargetSchema, projectPipelineProviderActionViewSchema, projectPipelineProviderActionsSchema, projectPipelineRefSchema, projectPipelineResourceClaimSchema, projectPipelineResourceClaimsSchema, projectPipelineResourceReservationSchema, projectPipelineRetrySchema, projectPipelineRoleSchema, projectPipelineRoundSchema, projectPipelineRunSchema, projectPipelineRuntimeExecutionSchema, projectPipelineRuntimeInputSchema, projectPipelineRuntimeSelectionSchema, projectPipelineSavedConfigurationSchema, projectPipelineStageSchema, projectPipelineStartSchema, projectPipelineStatistics, projectPipelineStatisticsSchema, projectPipelineSubjectVersionSchema, projectPipelineTaskProjectionSchema, projectPipelineWorkContextSchema, projectPipelineWorkCountsSchema, projectPluginDeploymentReceiptSchema, projectPluginDeploymentRefs, projectPluginDeploymentRequestSchema, projectTaskCandidatePathSchema, projectTaskConfigurationSchema, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskDurationSchema, projectTaskEvidencePathSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskExecutionReviewReportSchema, projectTaskReviewFindingSchema, projectTaskReviewReportSchema, projectTaskReviewSubjectSchema, projectTaskReviewerSchema, projectTaskReworkSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, providerCredentialCheckSchema, providerCredentialValidationTargetSchema, readModelConfiguration, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, roleDefaultInputSchema, sameModelIdentity, sandboxEvidence, sandboxJobRetryReferenceSchema, sandboxRuntimeEvidenceSchema, sandboxRuntimeTargetSchema, sandboxTargetsEqual, saveRoleDefaultsSchema, scheduledNotificationOriginSchema, selectedPipelineAttemptFacts, setStateVariable, shortTitle, stringifyMessageContent, templateActivityReadSchema, templateDependencyLocksSchema, templateDependencyVersionsSchema, templateFilePathSchema, templateFilesSchema, templateManifestSchema, templateManifestV1Schema, templatePreferenceValuesSchema, templatePublicationInputSchema, templateSetupUpdateSchema, templateUpgradeActionSchema, templateUpgradeInputSchema, templateUpgradeSectionSchema, threadControlActionsSchema, threadControlViewSchema, toXpertOpenerPrompt, trailActivityKindSchema, trailEpisodeSchema, trailGraphSchema, trailLaneSchema, trailStatusSchema, trailStepSchema, transformInstallation, transitionModelParameters, unknownExecutionControl, updateAnnouncementSchema, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, userNotificationSchema, usesConfiguredModelCatalog, usesModelScopedCredentials, uuid, validateProjectPipelineConfigurationForm, validateProjectPipelineDefinition, validateProjectTaskGraph, viewContextEventSchema, workflowNodeIdentifier, workspaceConnectorAuthorizationSchema, workspaceConnectorConnectPayloadSchema, xpertLabel };
16424
+ export { AGENT_OUTPUT_ACCEPT, AGENT_OUTPUT_MAX_PATHS, AGENT_PROFILE_TABS_SLOT, AGENT_WORKBENCH_SLOT, AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ARTIFACT_PRESENTATION_OPEN_COMMAND, ARTIFACT_USE_GRANT_MANAGE_COMMAND, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND, ASSISTANT_COMPOSER_INSERT_COMMAND, ASSISTANT_CONTENT_REVIEW_COMMAND, ASSISTANT_CONTEXT_SET_COMMAND, ASSISTANT_USER_PREFERENCES_VERSION, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BUILTIN_KNOWLEDGE_FILE_TYPES, BUILTIN_KNOWLEDGE_PARSER, BUSINESS_AREA_ACCESS_ROLES, BonusTypeEnum, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONNECTION_REFERENCE_KINDS, CONTENT_CATALOG_PROVIDER, CONTENT_DOCUMENT_LINK_RESOURCE_PARAM, CONTENT_EDITOR_LINK_COMMAND, CONTENT_EDITOR_RESOLVE_COMMAND, CONTENT_EDITOR_STATUS_COMMAND, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, CONVERSATION_MAP_FEATURE, CONVERSATION_SHARE_ARTIFACT_SOURCE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ChatThreadPurpose, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_AGENT_PLUGINS_SOURCE, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_EMBEDDING_BATCH_SIZE, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, DEFAULT_KNOWLEDGEBASE_WIKI_CONFIG, DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER, DEFAULT_KNOWLEDGE_RRF_RANK_CONSTANT, DEFAULT_KNOWLEDGE_RRF_WEIGHTS, DEFAULT_KNOWLEDGE_TEXT_SPLITTER, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_DEFINITIONS, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DEFAULT_XPERT_WORKSPACE_DATA_SCOPE, DEPRECATED_ROLE_PERMISSIONS, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultModelRole, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EVENT_INBOX_FEATURE, EVENT_INBOX_VIEW_KEY, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FEEDBACK_LEARNING_STRATEGY, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GENERAL_PROJECT_TYPE, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HUMAN_PROPOSAL_STRATEGY, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_AUTOMATIC_TAG_CANDIDATES, KNOWLEDGE_AUTOMATIC_TAG_MAXIMUM, KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET, KNOWLEDGE_CHUNKING_ALGORITHM_VERSION, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_DOCUMENT_AGENT_WRITER_TYPE, KNOWLEDGE_FAQ_ANSWER_BLOCK_MAX_COUNT, KNOWLEDGE_FAQ_ANSWER_TOTAL_MAX_LENGTH, KNOWLEDGE_FAQ_MAX_LOGICAL_VECTOR_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_NEGATIVE_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_COUNT, KNOWLEDGE_FAQ_SIMILAR_QUESTION_MAX_LENGTH, KNOWLEDGE_FAQ_STANDARD_QUESTION_MAX_LENGTH, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KNOWLEDGE_WIKI_DEFAULT_PAGE_SIZE, KNOWLEDGE_WIKI_DELETION_RECEIPT_RETENTION_DAYS, KNOWLEDGE_WIKI_DOCUMENT_STATUS_BATCH_SIZE, KNOWLEDGE_WIKI_FAILED_CONTENT_RETENTION_DAYS, KNOWLEDGE_WIKI_MAX_ALIASES, KNOWLEDGE_WIKI_MAX_CANONICAL_NAME_LENGTH, KNOWLEDGE_WIKI_MAX_CUSTOM_INSTRUCTION_LENGTH, KNOWLEDGE_WIKI_MAX_FACTS, KNOWLEDGE_WIKI_MAX_FACT_LENGTH, KNOWLEDGE_WIKI_MAX_PAGE_SIZE, KNOWLEDGE_WIKI_MAX_SEARCH_LENGTH, KNOWLEDGE_WIKI_MAX_SOURCE_CHUNKS_PER_FACT, KNOWLEDGE_WIKI_MAX_SUGGESTED_LINKS, KNOWLEDGE_WIKI_MAX_SUMMARY_LENGTH, KNOWLEDGE_WIKI_OPERATION_RETENTION_DAYS, KNOWLEDGE_WIKI_SCHEMA_VERSION, KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_AGENT_WORKBENCH_SLOTS, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_EXTERNAL_API_BASE_URL_LENGTH, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONFIGURATION_SECRET_MASK, MCP_CONSUMER_AUTH_TYPES, MCP_EXECUTION_CONTROL_EXTENSION_ID, MCP_EXECUTION_CONTROL_METHOD, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_EXECUTION_POLICY_SETTING, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_EXTERNAL_API_BASE_URL_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PERSONAL_API_KEY_LIFETIMES, PLUGIN_APPLICATION_INSTALLATION_STATUS, PLUGIN_APPLICATION_SCOPE, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MARKETPLACE_SUBCATEGORIES, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, PROJECT_CONFIGURATION_ACTIONS, PROJECT_CONFIGURATION_ACTION_HANDLERS, PROJECT_CONFIGURATION_PROVIDER, PROJECT_CONFIGURATION_VIEW, PROJECT_TASK_ICON_NAMES, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PluginMarketplaceDetailErrorCode, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, ROLE_PERMISSION_CATALOG, ROLE_PERMISSION_MODULES, RUNTIME_RESTART_CONFIRMATION, RUNTIME_STREAM_INTERRUPTED_EVENT, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_FILE_OUTPUT_RULES, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SKILLS_MIDDLEWARE_NAME, SMTPSecureEnum, SPACE_PROJECT_TYPE, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TAG_TARGETS, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, UNWIRED_AI_PERMISSIONS, USAGE_HOUR_FORMAT, USER_EVENT_INBOX_SLOT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET, WORKBENCH_AGENT_EVOLUTION_TARGET, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_EXECUTION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_CONTENT_DRAFT_COMMAND, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_GROUP_MESSAGE_TARGET, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKBENCH_PROJECT_APPLICATION_TARGET, WORKBENCH_PROJECT_PIPELINES_TARGET, WORKBENCH_RESOURCE_OPEN_COMMAND, WORKBENCH_VIEW_OPEN_EVENT, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_FILE_MEMORY_MIDDLEWARE_NAME, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XPERT_VIEW_CONVERSATION_ID_HEADER, XPERT_VIEW_PROJECT_ID_HEADER, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentDeliveryRecoverySchema, agentEventDecisionSchema, agentEventRefSchema, agentInvocationStatusSchema, agentInvocationTerminalStatusSchema, agentLabel, agentOutputDeliverySchema, agentOutputOriginSchema, agentOutputPresentationSchema, agentOutputReferenceSchema, agentResultPathSchema, agentRuntimeModelSourceSchema, agentRuntimeProgressSchema, agentUniqueName, aggregatePipelineAnalytics, allChannels, analyticsDiagnosticSchema, announcementActionSchema, announcementContentSchema, announcementRevisionSchema, announcementSchema, appPlatformAppOrder, appPlatformAppSchema, appPlatformDefinitionSchema, appPlatformEnvironmentSchema, appendMessageContent, appendMessagePlainText, assistantOperationPolicySchema, assistantTaskGroupContext, assistantTaskGroupContextSchema, assistantTemplateManifestSchema, assistantTemplateSetupStateSchema, buildChunkTree, buildXpertMarketplaceProfileSnapshot, businessAreaRoleAllows, canAllowMcpToolDirectly, canReadProjectPipelineConfiguration, channelName, chatMessagePresentation, checkProjectPipelineConfiguration, checkProjectPipelineHostCompatibility, classificateDocumentCategory, clientSecretGrantSourceSchema, codingExecutionViewKey, collectTreeLeaves, configurableStoreNamespace, configurationFromModel, configureProjectPipelineFromForm, configuredModelSource, controlledHandlerSchema, convertToUrlPath, createAgentConnections, createAnnouncementSchema, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createRuntimeSkillCapabilityId, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, decodeKnowledgeSeparators, defaultMcpToolApprovalMode, defaultModelConfiguration, defaultModelDefinition, defaultModelRoleSchema, deriveXpertMarketplaceTechnicalProfile, discoverableModelTypes, enabledModelsSchema, ensureAssistantBindingSkillWorkspacePreference, evidenceDrivenStrategy, executeModelReplacementSchema, executionActivityBatchSchema, executionActivityCapabilitiesSchema, executionActivityItemSchema, executionControlCapabilitiesSchema, executionControlEvidenceSchema, executionControlProtocols, executionObservationAnomalySchema, executionObservationAssistantSchema, executionObservationAvatarSchema, executionObservationCompareSchema, executionObservationConversationSchema, executionObservationConversationsSchema, executionObservationDetailQuerySchema, executionObservationDetailSchema, executionObservationFilterSchema, executionObservationListSchema, executionObservationOverviewSchema, executionObservationQuerySchema, executionObservationRecordSchema, executionObservationSegmentSchema, executionObservationStatusSchema, executionObservationSummarySchema, executionObservationWorkspacesSchema, executionRuntimeTargetSchema, executionRuntimeTargetsEqual, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, forecastProjectTasks, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getPluginApplicationScopes, getStoreNamespace, getSwarmPartners, getTagTargets, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, hasEnabledKnowledgeRetrievalSource, humanDecisionInputSchema, humanDecisionSchema, humanDecisionStatusSchema, iconDefinitionSchema, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isConfiguredModelAvailable, isContextCompressionComponentData, isDiscoverableModelType, isDocumentKnowledgebaseType, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isEvidenceProposal, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isKnowledgeDocumentVisible, isKnowledgeTableMetadata, isKnowledgeWikiChunkMetadata, isKnowledgeWikiPageContributionPayload, isKnowledgeWikiPageSourcePayload, isLearningProposal, isMessageGroup, isMiddlewareToolEnabled, isModelGatewayExternalApiBaseUrl, isNativeKnowledgeTableDocument, isNil$1 as isNil, isOrganizationSharedXpertWorkspace, isOutputTokenParameter, isPluginApplicationScope, isPreparedCandidate, isProjectPipelineApplicable, isPromptWorkflowScenarios, isProviderEvaluation, isProviderModelEnabled, isProviderRelease, isReplayEvaluation, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isRuntimeChatMessage, isScopedPromptCapabilityConfig, isStagedRelease, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, knowledgeDocumentFileType, knowledgeUploadFileTypes, knowledgebaseDocumentParserDefaults, knowledgebaseParserSelection, legacyModelFeatures, legacyProviderRoleSchema, letterStartSUID, locateNodes, mapTranslationLanguage, mcpExecutionCapabilitySchema, mcpExecutionControlRequestSchema, mcpExecutionReceiptSchema, mcpExecutionToolDeclarationSchema, mcpOperationIdentitySchema, mcpTaskAcknowledgementSchema, mcpTaskResultSchema, mcpTaskStartResultSchema, mergeMessageContentForDisplay, messageContentText, modelBindingSchema, modelConfigurationSchema, modelExecutionEntry, modelExecutionParametersSchema, modelExecutionSourceId, modelIdentityKey, modelIdentitySchema, modelImportSchema, modelReplacementSchema, modelReplacementScopeSchema, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeKnowledgebaseFAQRecall, normalizeKnowledgebaseWikiConfig, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareOptions, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, notificationChangeSchema, notificationClientSchema, notificationOutboxPayloadSchema, notificationSnapshotSchema, notificationSourceSchema, notificationThreadIdSchema, omitXpertRelations, openConversationActionSchema, orderAssistantXperts, outputPreferenceSchema, outputQuietHoursSchema, parseAnalyticsDiagnostic, parseAnnouncement, parseGithubSkillInstallCommand, parseNotificationSnapshot, parseOpenConversationAction, parseProjectPipelineParameters, parsePromptCapabilityConfig, parsePromptCapabilitySelection, parseRuntimeSkillCapabilityId, parseUserNotification, parseWorkbenchViewOpenEvent, pipelineAnalyticsFacts, pipelineAttemptCounts, pipelineAttemptCountsSchema, pipelineExecutionTiming, pipelineExecutionTimingSchema, pipelineExecutorStatistics, pipelineExecutorStatisticsSchema, pipelineHumanWaitSnapshotSchema, pipelineHumanWaitStatistics, pipelineHumanWaitStatisticsSchema, pipelineModelUsageFactSchema, pipelineModelUsageStatistics, pipelineModelUsageStatisticsSchema, pipelineNodeNeedsHuman, pipelineQueueStatistics, pipelineQueueStatisticsSchema, pluginAgentEventSchema, privateDecisionFeedbackStatusSchema, privateDecisionReplySchema, projectConfigurationActionSchema, projectConfigurationSectionSchema, projectConfigurationUpdateSchema, projectConfigurationValuesSchema, projectPipelineAnalytics, projectPipelineAnalyticsInputSchema, projectPipelineAnalyticsSchema, projectPipelineAssistantExecutionSchema, projectPipelineAssistantInputSchema, projectPipelineBindingSchema, projectPipelineCancelSchema, projectPipelineCatalogConfigureSchema, projectPipelineCatalogProtocolSchema, projectPipelineCatalogRequestSchema, projectPipelineCatalogSchema, projectPipelineCommandCapabilitySchema, projectPipelineCompletionReceiptSchema, projectPipelineConfigurationDeclarationSchema, projectPipelineConfigurationFormSchema, projectPipelineConfigurationPageSchema, projectPipelineConfigurationSchema, projectPipelineConfigureSchema, projectPipelineContributionSchema, projectPipelineDecisionSchema, projectPipelineDefinitionSchema, projectPipelineDefinitionShapeSchema, projectPipelineEdgeSchema, projectPipelineEvidenceRefSchema, projectPipelineExtensionDescriptorSchema, projectPipelineHostCapabilitiesSchema, projectPipelineHostRequirementsSchema, projectPipelineIconSchema, projectPipelineInputBindingSchema, projectPipelineInstanceSchema, projectPipelineJsonSchema, projectPipelineKeySchema, projectPipelineLaneSchema, projectPipelineModelBudgetIncreaseRecordSchema, projectPipelineModelBudgetIncreaseSchema, projectPipelineNativeDispatchSchema, projectPipelineNativeModelBudgetSchema, projectPipelineNativeModelBudgetStatusSchema, projectPipelineNativeSourceSchema, projectPipelineNextRoundSchema, projectPipelineNodeInstanceSchema, projectPipelineNodePresentationSchema, projectPipelineNodeSchema, projectPipelineNodeStateSchema, projectPipelineOperationInputSchema, projectPipelineOperationReceiptSchema, projectPipelineOutputBindingSchema, projectPipelineParameterFieldSchema, projectPipelineParticipantKindSchema, projectPipelinePolicyReceiptSchema, projectPipelinePortDescriptorSchema, projectPipelinePortfolioInputSchema, projectPipelinePortfolioSchema, projectPipelineProjectBindingSchema, projectPipelineProjectTypesSchema, projectPipelineProjectionEdgeSchema, projectPipelineProjectionNodeSchema, projectPipelineProjectionSchema, projectPipelineProviderActionCommandSchema, projectPipelineProviderActionDescriptorSchema, projectPipelineProviderActionReceiptSchema, projectPipelineProviderActionTargetSchema, projectPipelineProviderActionViewSchema, projectPipelineProviderActionsSchema, projectPipelineRefSchema, projectPipelineResourceClaimSchema, projectPipelineResourceClaimsSchema, projectPipelineResourceReservationSchema, projectPipelineRetrySchema, projectPipelineRoleSchema, projectPipelineRoundSchema, projectPipelineRunSchema, projectPipelineRuntimeExecutionSchema, projectPipelineRuntimeInputSchema, projectPipelineRuntimeSelectionSchema, projectPipelineSavedConfigurationSchema, projectPipelineStageSchema, projectPipelineStartSchema, projectPipelineStatistics, projectPipelineStatisticsSchema, projectPipelineSubjectVersionSchema, projectPipelineTaskProjectionSchema, projectPipelineWorkContextSchema, projectPipelineWorkCountsSchema, projectPluginDeploymentReceiptSchema, projectPluginDeploymentRefs, projectPluginDeploymentRequestSchema, projectTaskCandidatePathSchema, projectTaskConfigurationSchema, projectTaskDecisionInputSchema, projectTaskDecisionSchema, projectTaskDecisionToolInputSchema, projectTaskDispatchInputSchema, projectTaskDispatchReceiptSchema, projectTaskDispatchToolInputSchema, projectTaskDurationSchema, projectTaskEvidencePathSchema, projectTaskEvidenceReferenceSchema, projectTaskExecutionContextSchema, projectTaskExecutionPurposeSchema, projectTaskExecutionReferenceSchema, projectTaskReviewReportSchema, projectTaskReviewSubjectSchema, projectTaskReviewerSchema, projectTaskReworkSchema, projectTaskSpecificationDigestSchema, projectTaskSpecificationSchema, projectTaskSpecificationSnapshotSchema, providerCredentialCheckSchema, providerCredentialValidationTargetSchema, readModelConfiguration, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolvePromptWorkflowCapabilities, resolveRuntimeXpert, roleDefaultInputSchema, sameModelIdentity, sandboxEvidence, sandboxJobRetryReferenceSchema, sandboxRuntimeEvidenceSchema, sandboxRuntimeTargetSchema, sandboxTargetsEqual, saveRoleDefaultsSchema, scheduledNotificationOriginSchema, selectedPipelineAttemptFacts, setStateVariable, shortTitle, stringifyMessageContent, templateActivityReadSchema, templateDependencyLocksSchema, templateDependencyVersionsSchema, templateFilePathSchema, templateFilesSchema, templateManifestSchema, templateManifestV1Schema, templatePreferenceValuesSchema, templatePublicationInputSchema, templateSetupUpdateSchema, templateUpgradeActionSchema, templateUpgradeInputSchema, templateUpgradeSectionSchema, threadControlActionsSchema, threadControlViewSchema, toXpertOpenerPrompt, trailActivityKindSchema, trailEpisodeSchema, trailGraphSchema, trailLaneSchema, trailStatusSchema, trailStepSchema, transformInstallation, transitionModelParameters, unknownExecutionControl, updateAnnouncementSchema, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, userNotificationSchema, usesConfiguredModelCatalog, usesModelScopedCredentials, uuid, validateProjectPipelineConfigurationForm, validateProjectPipelineDefinition, validateProjectTaskGraph, workflowNodeIdentifier, workspaceConnectorAuthorizationSchema, workspaceConnectorConnectPayloadSchema, xpertLabel };