@xpert-ai/contracts 3.36.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 (57) hide show
  1. package/index.cjs.js +818 -450
  2. package/index.esm.js +806 -451
  3. package/package.json +2 -2
  4. package/src/ai/agent-runtime.model.d.ts +2 -2
  5. package/src/ai/assistant-template-manifest.model.d.ts +328 -328
  6. package/src/ai/assistant-template-setup.model.d.ts +8 -8
  7. package/src/ai/chat-activity.model.d.ts +5 -0
  8. package/src/ai/chat.model.d.ts +2 -0
  9. package/src/ai/conversation-trail.model.d.ts +66 -66
  10. package/src/ai/execution-activity.model.d.ts +10 -10
  11. package/src/ai/execution-control-evidence.schema.d.ts +30 -30
  12. package/src/ai/execution-observability.model.d.ts +96 -96
  13. package/src/ai/mcp-execution-control.schema.d.ts +2 -2
  14. package/src/ai/model-replacement.model.d.ts +6 -6
  15. package/src/ai/project-pipeline/analytics.d.ts +154 -154
  16. package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
  17. package/src/ai/project-pipeline/commands.schema.d.ts +68 -68
  18. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +215 -215
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +50 -50
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +173 -70
  22. package/src/ai/project-pipeline/definition.schema.d.ts +50 -50
  23. package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
  24. package/src/ai/project-pipeline/graph.model.d.ts +2 -2
  25. package/src/ai/project-pipeline/index.d.ts +1 -0
  26. package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
  27. package/src/ai/project-pipeline/node.schema.d.ts +2 -2
  28. package/src/ai/project-pipeline/operation.schema.d.ts +344 -344
  29. package/src/ai/project-pipeline/portfolio.schema.d.ts +348 -348
  30. package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
  31. package/src/ai/project-pipeline/projection.schema.d.ts +260 -260
  32. package/src/ai/project-pipeline/provider-actions.schema.d.ts +28 -28
  33. package/src/ai/project-pipeline/queue-statistics.d.ts +24 -24
  34. package/src/ai/project-pipeline/runtime.schema.d.ts +50 -50
  35. package/src/ai/project-pipeline/statistics.d.ts +74 -74
  36. package/src/ai/project-task-runtime.model.d.ts +23 -23
  37. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  38. package/src/ai/template-installation.model.d.ts +16 -16
  39. package/src/ai/template-lifecycle.model.d.ts +2 -2
  40. package/src/ai/thread-control-view.schema.d.ts +4 -4
  41. package/src/ai/xpert-agent-execution.model.d.ts +29 -0
  42. package/src/ai/xpert-tool.model.d.ts +12 -0
  43. package/src/{agent-event.model.d.ts → always-on/agent-event.model.d.ts} +37 -4
  44. package/src/{agent-event.schema.d.ts → always-on/agent-event.schema.d.ts} +19 -0
  45. package/src/always-on/agent-output-reference.schema.d.ts +27 -0
  46. package/src/always-on/agent-output.model.d.ts +411 -0
  47. package/src/always-on/human-decision.model.d.ts +204 -0
  48. package/src/always-on/index.d.ts +3 -0
  49. package/src/always-on/output-workbench.schema.d.ts +154 -0
  50. package/src/analytics/analytics-diagnostic.d.ts +4 -4
  51. package/src/app-platform.d.ts +18 -18
  52. package/src/artifacts/artifact.model.d.ts +2 -0
  53. package/src/content/content-resource.model.d.ts +2 -1
  54. package/src/icon-definition.schema.d.ts +6 -10
  55. package/src/index.d.ts +1 -1
  56. package/src/secret-token.model.d.ts +4 -4
  57. package/src/user-notification.schema.d.ts +1290 -479
package/index.cjs.js CHANGED
@@ -6,33 +6,33 @@ var ShortUniqueId = require('short-unique-id');
6
6
  var chatkitTypes = require('@xpert-ai/chatkit-types');
7
7
  var contextEvent = require('./context-event.cjs.js');
8
8
 
9
- var key$4 = v3.z.string().min(1).max(256).refine(function(value) {
9
+ var key$6 = v3.z.string().min(1).max(256).refine(function(value) {
10
10
  return !value.includes("\x00");
11
11
  });
12
- var agentEventRefSchema = v3.z.object({
13
- kind: key$4,
14
- key: key$4
12
+ /** Validates the source-defined object identity carried in a subject or a handling result. */ var agentEventRefSchema = v3.z.object({
13
+ kind: key$6,
14
+ key: key$6
15
15
  }).strict();
16
- var pluginAgentEventSchema = v3.z.object({
17
- sourceEventId: key$4,
16
+ /** Validates the event envelope at inbox admission. The source retains the referenced business data. */ var pluginAgentEventSchema = v3.z.object({
17
+ sourceEventId: key$6,
18
18
  bindingRevision: v3.z.number().int().positive(),
19
- type: key$4,
19
+ type: key$6,
20
20
  schemaVersion: v3.z.number().int().positive(),
21
21
  occurredAt: v3.z.string().datetime({
22
22
  offset: true
23
23
  }),
24
24
  subject: agentEventRefSchema,
25
25
  fact: v3.z.object({
26
- key: key$4,
27
- revision: key$4,
26
+ key: key$6,
27
+ revision: key$6,
28
28
  sha256: v3.z.string().regex(/^[0-9a-f]{64}$/)
29
29
  }).strict()
30
30
  }).strict();
31
31
  var reasonCode = v3.z.string().regex(/^[a-z][a-z0-9_]{0,79}$/);
32
- var agentEventDecisionSchema = v3.z.discriminatedUnion("status", [
32
+ /** Accepts a completed source handler outcome for storage on the inbox receipt. */ var agentEventDecisionSchema = v3.z.discriminatedUnion("status", [
33
33
  v3.z.object({
34
34
  status: v3.z.literal("handled"),
35
- operationKey: key$4,
35
+ operationKey: key$6,
36
36
  resultRef: agentEventRefSchema
37
37
  }).strict(),
38
38
  v3.z.object({
@@ -45,9 +45,336 @@ var agentEventDecisionSchema = v3.z.discriminatedUnion("status", [
45
45
  }).strict()
46
46
  ]);
47
47
 
48
- var EVENT_INBOX_FEATURE = "platform.event-inbox";
49
- var USER_EVENT_INBOX_SLOT = "user.event-inbox";
50
- var EVENT_INBOX_VIEW_KEY = "platform.event-inbox__inbox";
48
+ /** Host feature used to activate the assistant workbench inbox. */ var EVENT_INBOX_FEATURE = "platform.event-inbox";
49
+ /** Personal host slot for a user's inbox across assistants. */ var USER_EVENT_INBOX_SLOT = "user.event-inbox";
50
+ /** Built-in remote view shared by the assistant workbench and personal inbox entry points. */ var EVENT_INBOX_VIEW_KEY = "platform.event-inbox__inbox";
51
+
52
+ var label$3 = v3.z.object({
53
+ en_US: v3.z.string().trim().min(1).max(160),
54
+ zh_Hans: v3.z.string().trim().min(1).max(160)
55
+ }).strict();
56
+ var outputFieldSchema = v3.z.object({
57
+ label: label$3,
58
+ value: v3.z.string().max(4000)
59
+ }).strict();
60
+ /** A source-owned business item and its location in an Assistant workbench. Handling is independent of notification read state. */ var outputWorkbenchSchema = v3.z.object({
61
+ state: v3.z.enum([
62
+ "pending",
63
+ "handled"
64
+ ]),
65
+ title: label$3,
66
+ openLabel: label$3,
67
+ viewKey: v3.z.string().trim().min(1).max(256),
68
+ selectionId: v3.z.string().trim().min(1).max(256)
69
+ }).strict();
70
+ var outputWorkbenchTargetSchema = outputWorkbenchSchema.extend({
71
+ assistantId: v3.z.string().uuid(),
72
+ organizationId: v3.z.string().uuid(),
73
+ projectId: v3.z.string().uuid().nullable()
74
+ });
75
+
76
+ var key$5 = v3.z.string().min(1).max(160);
77
+ /**
78
+ * Validates the immutable reference a source hands to the outbox. The key and revision use
79
+ * the source's vocabulary, such as a review run ID and its Git commit SHA.
80
+ */ var agentOutputReferenceSchema = v3.z.object({
81
+ schemaVersion: v3.z.literal(1),
82
+ kind: key$5,
83
+ key: key$5,
84
+ revision: key$5,
85
+ publishedAt: v3.z.string().datetime(),
86
+ recipientId: v3.z.string().uuid()
87
+ }).strict();
88
+
89
+ var uuid$2 = v3.z.string().uuid();
90
+ var choice = v3.z.string().regex(/^[a-z][a-z0-9_]{0,63}$/);
91
+ var label$2 = v3.z.object({
92
+ en_US: v3.z.string().min(1).max(100),
93
+ zh_Hans: v3.z.string().min(1).max(100)
94
+ }).strict();
95
+ var requestVersion = v3.z.number().int().positive();
96
+ var choices = v3.z.array(v3.z.object({
97
+ key: choice,
98
+ label: label$2,
99
+ replyCommand: v3.z.string().trim().min(1).max(100).optional()
100
+ }).strict()).min(2).max(5).refine(function(options) {
101
+ var commands = options.flatMap(function(c) {
102
+ return c.replyCommand ? [
103
+ c.replyCommand
104
+ ] : [];
105
+ });
106
+ return new Set(options.map(function(c) {
107
+ return c.key;
108
+ })).size === options.length && new Set(commands).size === commands.length;
109
+ });
110
+ /** Validates the choices a source offers. Choice keys and direct-reply commands must each be unambiguous. */ var humanDecisionSchema = v3.z.object({
111
+ type: v3.z.literal("human_decision"),
112
+ schemaVersion: v3.z.literal(1),
113
+ requestVersion: requestVersion,
114
+ choices: choices
115
+ }).strict();
116
+ /** Validates the submission shared by workbench actions and verified private-channel replies. */ var humanDecisionInputSchema = v3.z.object({
117
+ schemaVersion: v3.z.literal(1),
118
+ requestId: agentOutputReferenceSchema.shape.key,
119
+ sourceRevision: agentOutputReferenceSchema.shape.revision,
120
+ requestVersion: requestVersion,
121
+ choice: choice,
122
+ commandId: uuid$2
123
+ }).strict();
124
+ /** Outcomes the workbench and channels can report after a submission is evaluated. */ var humanDecisionStatusSchema = v3.z.enum([
125
+ "recorded",
126
+ "already_recorded",
127
+ "conflicting_choice",
128
+ "stale",
129
+ "closed",
130
+ "forbidden"
131
+ ]);
132
+ /** Submission outcomes that can replace the actionable controls on the original private card. */ var privateDecisionFeedbackStatusSchema = humanDecisionStatusSchema.extract([
133
+ "recorded",
134
+ "already_recorded",
135
+ "stale",
136
+ "closed"
137
+ ]);
138
+ /** Accepts a button callback or a reply quoting a specific message, together with its sender and chat. */ var privateDecisionReplySchema = v3.z.object({
139
+ parentId: v3.z.string().min(1).max(256),
140
+ chatId: v3.z.string().min(1).max(256),
141
+ openId: v3.z.string().min(1).max(256),
142
+ unionId: v3.z.string().min(1).max(256).optional(),
143
+ input: v3.z.discriminatedUnion("type", [
144
+ v3.z.object({
145
+ type: v3.z.literal("button"),
146
+ interactionId: uuid$2,
147
+ choice: choice
148
+ }).strict(),
149
+ v3.z.object({
150
+ type: v3.z.literal("quoted_text"),
151
+ text: v3.z.string().min(1).max(100)
152
+ }).strict()
153
+ ])
154
+ }).strict();
155
+
156
+ // Application types are independent of delivery channels and external account identities.
157
+ var notificationClientSchema = v3.z.enum([
158
+ "web",
159
+ "desktop"
160
+ ]);
161
+ var announcementActionSchema = v3.z.object({
162
+ type: v3.z.literal("link"),
163
+ label: v3.z.string().trim().min(1).max(80),
164
+ url: v3.z.string().url().max(2048).refine(function(url) {
165
+ return /^https:\/\//i.test(url);
166
+ })
167
+ }).strict();
168
+ var announcementContentSchema = v3.z.object({
169
+ title: v3.z.string().trim().min(1).max(160),
170
+ body: v3.z.string().trim().min(1).max(20000),
171
+ category: v3.z.enum([
172
+ "general",
173
+ "maintenance",
174
+ "model_retirement"
175
+ ]).default("general"),
176
+ severity: v3.z.enum([
177
+ "info",
178
+ "important"
179
+ ]).default("info"),
180
+ clients: v3.z.array(notificationClientSchema).min(1).max(2).refine(function(items) {
181
+ return new Set(items).size === items.length;
182
+ }),
183
+ startsAt: v3.z.string().datetime({
184
+ offset: true
185
+ }),
186
+ expiresAt: v3.z.string().datetime({
187
+ offset: true
188
+ }).nullable().default(null),
189
+ action: announcementActionSchema.nullable().default(null)
190
+ }).strict();
191
+ var createAnnouncementSchema = announcementContentSchema.refine(function(input) {
192
+ return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
193
+ }, {
194
+ path: [
195
+ "expiresAt"
196
+ ],
197
+ message: "Expiry must follow start"
198
+ });
199
+ var updateAnnouncementSchema = announcementContentSchema.extend({
200
+ revision: v3.z.number().int().positive()
201
+ }).refine(function(input) {
202
+ return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
203
+ }, {
204
+ path: [
205
+ "expiresAt"
206
+ ]
207
+ });
208
+ var announcementRevisionSchema = v3.z.object({
209
+ revision: v3.z.number().int().positive()
210
+ }).strict();
211
+ var announcementSchema = announcementContentSchema.extend({
212
+ id: v3.z.string().uuid(),
213
+ status: v3.z.enum([
214
+ "draft",
215
+ "published",
216
+ "withdrawn"
217
+ ]),
218
+ revision: v3.z.number().int().positive(),
219
+ createdAt: v3.z.string().datetime({
220
+ offset: true
221
+ }),
222
+ dismissedAt: v3.z.string().datetime({
223
+ offset: true
224
+ }).nullable().default(null)
225
+ });
226
+ var notificationSourceSchema = v3.z.object({
227
+ type: v3.z.literal("scheduled_task"),
228
+ taskId: v3.z.string().uuid(),
229
+ executionId: v3.z.string().uuid(),
230
+ assistantId: v3.z.string().uuid(),
231
+ conversationId: v3.z.string().uuid()
232
+ }).strict();
233
+ var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
234
+ threadId: v3.z.string().uuid().optional()
235
+ });
236
+ var notificationThreadIdSchema = v3.z.string().trim().min(1).max(128);
237
+ var openConversationActionSchema = v3.z.object({
238
+ type: v3.z.literal("open_conversation"),
239
+ assistantId: v3.z.string().uuid(),
240
+ conversationId: v3.z.string().uuid(),
241
+ threadId: notificationThreadIdSchema.nullable()
242
+ }).strict();
243
+ var taskNotificationSchema = v3.z.object({
244
+ id: v3.z.string().uuid(),
245
+ kind: v3.z.literal("agent.completed"),
246
+ source: notificationSourceSchema,
247
+ createdAt: v3.z.string().datetime({
248
+ offset: true
249
+ }),
250
+ readAt: v3.z.string().datetime({
251
+ offset: true
252
+ }).nullable(),
253
+ action: openConversationActionSchema
254
+ }).strict();
255
+ var agentOutputOriginSchema = v3.z.object({
256
+ type: v3.z.literal("agent_output"),
257
+ deliveryId: v3.z.string().uuid()
258
+ }).strict();
259
+ var outputNotificationSchema = taskNotificationSchema.extend({
260
+ kind: v3.z.literal("agent.output"),
261
+ source: agentOutputOriginSchema,
262
+ items: v3.z.array(v3.z.object({
263
+ id: v3.z.string().uuid(),
264
+ title: v3.z.string().min(1).max(240),
265
+ action: openConversationActionSchema.nullable(),
266
+ fields: v3.z.array(outputFieldSchema).max(20).optional(),
267
+ workbench: outputWorkbenchTargetSchema.optional()
268
+ }).strict()).max(20).optional(),
269
+ titles: v3.z.array(v3.z.string().min(1).max(240)).min(1).max(20),
270
+ action: openConversationActionSchema.nullable()
271
+ });
272
+ var userNotificationSchema = v3.z.discriminatedUnion("kind", [
273
+ taskNotificationSchema,
274
+ outputNotificationSchema
275
+ ]);
276
+ var notificationSnapshotSchema = v3.z.object({
277
+ supported: v3.z.literal(true),
278
+ version: v3.z.string(),
279
+ announcements: v3.z.array(announcementSchema),
280
+ notifications: v3.z.array(userNotificationSchema),
281
+ hasMoreAnnouncements: v3.z.boolean(),
282
+ hasMoreNotifications: v3.z.boolean()
283
+ }).strict();
284
+ var notificationChangeSchema = v3.z.object({
285
+ schemaVersion: v3.z.literal(1),
286
+ type: v3.z.literal("sync.required"),
287
+ eventId: v3.z.string().uuid()
288
+ }).strict();
289
+ var notificationOutboxPayloadSchema = v3.z.discriminatedUnion("type", [
290
+ v3.z.object({
291
+ type: v3.z.literal("changed")
292
+ }).strict(),
293
+ v3.z.object({
294
+ type: v3.z.literal("agent.output.dispatch"),
295
+ deliveryId: v3.z.string().uuid()
296
+ }).strict(),
297
+ v3.z.object({
298
+ type: v3.z.literal("announcement.scheduled"),
299
+ announcementId: v3.z.string().uuid(),
300
+ revision: v3.z.number().int().positive(),
301
+ phase: v3.z.enum([
302
+ "start",
303
+ "expiry"
304
+ ])
305
+ }).strict(),
306
+ v3.z.object({
307
+ type: v3.z.literal("agent.completed"),
308
+ source: scheduledNotificationOriginSchema
309
+ }).strict()
310
+ ]);
311
+ // The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
312
+ // object outputs optional. These boundaries validate every required field before narrowing.
313
+ function parseAnnouncement(value) {
314
+ return announcementSchema.parse(value);
315
+ }
316
+ function parseOpenConversationAction(value) {
317
+ return openConversationActionSchema.parse(value);
318
+ }
319
+ function parseUserNotification(value) {
320
+ return userNotificationSchema.parse(value);
321
+ }
322
+ function parseNotificationSnapshot(value) {
323
+ return notificationSnapshotSchema.parse(value);
324
+ }
325
+
326
+ /** 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"';
327
+ var key$4 = agentOutputReferenceSchema.shape.key;
328
+ var uuid$1 = v3.z.string().uuid();
329
+ var hhmm = v3.z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]$/);
330
+ /** Validates the local delivery window against its time zone, including windows that span midnight. */ var outputQuietHoursSchema = v3.z.object({
331
+ zone: v3.z.string().max(100).refine(function(value) {
332
+ try {
333
+ new Intl.DateTimeFormat("en", {
334
+ timeZone: value
335
+ });
336
+ return true;
337
+ } catch (e) {
338
+ return false;
339
+ }
340
+ }),
341
+ start: hhmm,
342
+ end: hhmm
343
+ }).strict().refine(function(value) {
344
+ return value.start !== value.end;
345
+ });
346
+ /** Validates per-channel settings. Enabling private Lark delivery requires a selected integration. */ var outputPreferenceSchema = v3.z.object({
347
+ kind: key$4,
348
+ channel: v3.z.enum([
349
+ "in_app",
350
+ "lark"
351
+ ]),
352
+ enabled: v3.z.boolean(),
353
+ integrationId: uuid$1.nullable(),
354
+ quiet: outputQuietHoursSchema.nullable()
355
+ }).strict().refine(function(v) {
356
+ return v.channel === "lark" ? !v.enabled || !!v.integrationId : v.integrationId === null;
357
+ });
358
+ /** Validates the source's current visibility outcome and the content it permits the recipient to see. */ var agentOutputPresentationSchema = v3.z.discriminatedUnion("status", [
359
+ v3.z.object({
360
+ status: v3.z.literal("visible"),
361
+ title: v3.z.string().trim().min(1).max(240),
362
+ decision: humanDecisionSchema.optional(),
363
+ workbench: outputWorkbenchSchema.optional(),
364
+ fields: v3.z.array(outputFieldSchema).max(20).optional(),
365
+ conversation: v3.z.object({
366
+ conversationId: uuid$1,
367
+ threadId: notificationThreadIdSchema.optional()
368
+ }).strict().optional().catch(undefined)
369
+ }).strict(),
370
+ v3.z.object({
371
+ status: v3.z.enum([
372
+ "superseded",
373
+ "forbidden",
374
+ "unavailable"
375
+ ])
376
+ }).strict()
377
+ ]);
51
378
 
52
379
  exports.AiModelTypeEnum = void 0;
53
380
  (function(AiModelTypeEnum) {
@@ -63,7 +390,7 @@ exports.AiModelTypeEnum = void 0;
63
390
  AiModelTypeEnum["VIDEO"] = "video";
64
391
  })(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
65
392
 
66
- function _define_property$t(obj, key, value) {
393
+ function _define_property$u(obj, key, value) {
67
394
  if (key in obj) {
68
395
  Object.defineProperty(obj, key, {
69
396
  value: value,
@@ -76,7 +403,7 @@ function _define_property$t(obj, key, value) {
76
403
  }
77
404
  return obj;
78
405
  }
79
- function _object_spread$t(target) {
406
+ function _object_spread$u(target) {
80
407
  for(var i = 1; i < arguments.length; i++){
81
408
  var source = arguments[i] != null ? arguments[i] : {};
82
409
  var ownKeys = Object.keys(source);
@@ -86,12 +413,12 @@ function _object_spread$t(target) {
86
413
  }));
87
414
  }
88
415
  ownKeys.forEach(function(key) {
89
- _define_property$t(target, key, source[key]);
416
+ _define_property$u(target, key, source[key]);
90
417
  });
91
418
  }
92
419
  return target;
93
420
  }
94
- function ownKeys$m(object, enumerableOnly) {
421
+ function ownKeys$n(object, enumerableOnly) {
95
422
  var keys = Object.keys(object);
96
423
  if (Object.getOwnPropertySymbols) {
97
424
  var symbols = Object.getOwnPropertySymbols(object);
@@ -99,12 +426,12 @@ function ownKeys$m(object, enumerableOnly) {
99
426
  }
100
427
  return keys;
101
428
  }
102
- function _object_spread_props$m(target, source) {
429
+ function _object_spread_props$n(target, source) {
103
430
  source = source != null ? source : {};
104
431
  if (Object.getOwnPropertyDescriptors) {
105
432
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
106
433
  } else {
107
- ownKeys$m(Object(source)).forEach(function(key) {
434
+ ownKeys$n(Object(source)).forEach(function(key) {
108
435
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
109
436
  });
110
437
  }
@@ -127,7 +454,7 @@ var appPlatformAppSchema = v3.z.object({
127
454
  configurationRef: key$3,
128
455
  dependsOn: v3.z.array(key$3).max(32).default([])
129
456
  }).strict().transform(function(app) {
130
- return _object_spread_props$m(_object_spread$t({}, app), {
457
+ return _object_spread_props$n(_object_spread$u({}, app), {
131
458
  key: app.key,
132
459
  required: app.required,
133
460
  configurationRef: app.configurationRef,
@@ -1798,7 +2125,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
1798
2125
  resourceType: "conversation_snapshot"
1799
2126
  };
1800
2127
 
1801
- function _define_property$s(obj, key, value) {
2128
+ function _define_property$t(obj, key, value) {
1802
2129
  if (key in obj) {
1803
2130
  Object.defineProperty(obj, key, {
1804
2131
  value: value,
@@ -1811,7 +2138,7 @@ function _define_property$s(obj, key, value) {
1811
2138
  }
1812
2139
  return obj;
1813
2140
  }
1814
- function _object_spread$s(target) {
2141
+ function _object_spread$t(target) {
1815
2142
  for(var i = 1; i < arguments.length; i++){
1816
2143
  var source = arguments[i] != null ? arguments[i] : {};
1817
2144
  var ownKeys = Object.keys(source);
@@ -1821,12 +2148,12 @@ function _object_spread$s(target) {
1821
2148
  }));
1822
2149
  }
1823
2150
  ownKeys.forEach(function(key) {
1824
- _define_property$s(target, key, source[key]);
2151
+ _define_property$t(target, key, source[key]);
1825
2152
  });
1826
2153
  }
1827
2154
  return target;
1828
2155
  }
1829
- function ownKeys$l(object, enumerableOnly) {
2156
+ function ownKeys$m(object, enumerableOnly) {
1830
2157
  var keys = Object.keys(object);
1831
2158
  if (Object.getOwnPropertySymbols) {
1832
2159
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1834,12 +2161,12 @@ function ownKeys$l(object, enumerableOnly) {
1834
2161
  }
1835
2162
  return keys;
1836
2163
  }
1837
- function _object_spread_props$l(target, source) {
2164
+ function _object_spread_props$m(target, source) {
1838
2165
  source = source != null ? source : {};
1839
2166
  if (Object.getOwnPropertyDescriptors) {
1840
2167
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1841
2168
  } else {
1842
- ownKeys$l(Object(source)).forEach(function(key) {
2169
+ ownKeys$m(Object(source)).forEach(function(key) {
1843
2170
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1844
2171
  });
1845
2172
  }
@@ -1867,7 +2194,7 @@ function parseSelectionSet(value) {
1867
2194
  if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
1868
2195
  if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
1869
2196
  if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
1870
- return _object_spread$s(_object_spread_props$l(_object_spread$s({}, value), {
2197
+ return _object_spread$t(_object_spread_props$m(_object_spread$t({}, value), {
1871
2198
  skills: skills === undefined ? {
1872
2199
  ids: []
1873
2200
  } : skills,
@@ -1886,7 +2213,7 @@ function parsePromptCapabilitySelection(value) {
1886
2213
  var selection = parseSelectionSet(value);
1887
2214
  var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
1888
2215
  if (!selection || recommended === null) return null;
1889
- return _object_spread$s(_object_spread_props$l(_object_spread$s({}, selection), {
2216
+ return _object_spread$t(_object_spread_props$m(_object_spread$t({}, selection), {
1890
2217
  mode: "allowlist"
1891
2218
  }), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
1892
2219
  inheritUnselected: value.inheritUnselected
@@ -1938,7 +2265,7 @@ function parsePromptCapabilityConfig(value) {
1938
2265
  }
1939
2266
  }
1940
2267
  }
1941
- return _object_spread_props$l(_object_spread$s({}, value), {
2268
+ return _object_spread_props$m(_object_spread$t({}, value), {
1942
2269
  type: "expert_scoped_capabilities",
1943
2270
  version: 1,
1944
2271
  defaults: defaults,
@@ -2070,7 +2397,7 @@ exports.ChatMessageStepCategory = void 0;
2070
2397
  ChatMessageStepCategory["Knowledges"] = "knowledges";
2071
2398
  })(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
2072
2399
 
2073
- function _define_property$r(obj, key, value) {
2400
+ function _define_property$s(obj, key, value) {
2074
2401
  if (key in obj) {
2075
2402
  Object.defineProperty(obj, key, {
2076
2403
  value: value,
@@ -2090,7 +2417,7 @@ function _instanceof$1(left, right) {
2090
2417
  return left instanceof right;
2091
2418
  }
2092
2419
  }
2093
- function _object_spread$r(target) {
2420
+ function _object_spread$s(target) {
2094
2421
  for(var i = 1; i < arguments.length; i++){
2095
2422
  var source = arguments[i] != null ? arguments[i] : {};
2096
2423
  var ownKeys = Object.keys(source);
@@ -2100,7 +2427,7 @@ function _object_spread$r(target) {
2100
2427
  }));
2101
2428
  }
2102
2429
  ownKeys.forEach(function(key) {
2103
- _define_property$r(target, key, source[key]);
2430
+ _define_property$s(target, key, source[key]);
2104
2431
  });
2105
2432
  }
2106
2433
  return target;
@@ -2111,12 +2438,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
2111
2438
  var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
2112
2439
  var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
2113
2440
  function createConversationTitleSummaryEvent(event) {
2114
- return _object_spread$r({
2441
+ return _object_spread$s({
2115
2442
  type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
2116
2443
  }, event);
2117
2444
  }
2118
2445
  function createFollowUpConsumedEvent(event) {
2119
- return _object_spread$r({
2446
+ return _object_spread$s({
2120
2447
  type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
2121
2448
  }, event);
2122
2449
  }
@@ -2162,7 +2489,7 @@ function _array_with_holes$j(arr) {
2162
2489
  function _array_without_holes$j(arr) {
2163
2490
  if (Array.isArray(arr)) return _array_like_to_array$w(arr);
2164
2491
  }
2165
- function _define_property$q(obj, key, value) {
2492
+ function _define_property$r(obj, key, value) {
2166
2493
  if (key in obj) {
2167
2494
  Object.defineProperty(obj, key, {
2168
2495
  value: value,
@@ -2208,7 +2535,7 @@ function _non_iterable_rest$j() {
2208
2535
  function _non_iterable_spread$j() {
2209
2536
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2210
2537
  }
2211
- function _object_spread$q(target) {
2538
+ function _object_spread$r(target) {
2212
2539
  for(var i = 1; i < arguments.length; i++){
2213
2540
  var source = arguments[i] != null ? arguments[i] : {};
2214
2541
  var ownKeys = Object.keys(source);
@@ -2218,12 +2545,12 @@ function _object_spread$q(target) {
2218
2545
  }));
2219
2546
  }
2220
2547
  ownKeys.forEach(function(key) {
2221
- _define_property$q(target, key, source[key]);
2548
+ _define_property$r(target, key, source[key]);
2222
2549
  });
2223
2550
  }
2224
2551
  return target;
2225
2552
  }
2226
- function ownKeys$k(object, enumerableOnly) {
2553
+ function ownKeys$l(object, enumerableOnly) {
2227
2554
  var keys = Object.keys(object);
2228
2555
  if (Object.getOwnPropertySymbols) {
2229
2556
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2231,12 +2558,12 @@ function ownKeys$k(object, enumerableOnly) {
2231
2558
  }
2232
2559
  return keys;
2233
2560
  }
2234
- function _object_spread_props$k(target, source) {
2561
+ function _object_spread_props$l(target, source) {
2235
2562
  source = source != null ? source : {};
2236
2563
  if (Object.getOwnPropertyDescriptors) {
2237
2564
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2238
2565
  } else {
2239
- ownKeys$k(Object(source)).forEach(function(key) {
2566
+ ownKeys$l(Object(source)).forEach(function(key) {
2240
2567
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2241
2568
  });
2242
2569
  }
@@ -2355,7 +2682,7 @@ function normalizeAssistantBindingToolPreferences(value) {
2355
2682
  if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
2356
2683
  return null;
2357
2684
  }
2358
- return _object_spread$q({
2685
+ return _object_spread$r({
2359
2686
  version: 1
2360
2687
  }, Object.keys(toolsets).length ? {
2361
2688
  toolsets: toolsets
@@ -2433,8 +2760,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2433
2760
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
2434
2761
  normalizedToolName
2435
2762
  ]));
2436
- var toolsets = normalizedPreferences.toolsets ? _object_spread$q({}, normalizedPreferences.toolsets) : undefined;
2437
- var middlewares = normalizedPreferences.middlewares ? _object_spread$q({}, normalizedPreferences.middlewares) : undefined;
2763
+ var toolsets = normalizedPreferences.toolsets ? _object_spread$r({}, normalizedPreferences.toolsets) : undefined;
2764
+ var middlewares = normalizedPreferences.middlewares ? _object_spread$r({}, normalizedPreferences.middlewares) : undefined;
2438
2765
  if (sourceType === "toolset") {
2439
2766
  var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
2440
2767
  if (!toolsetName) {
@@ -2450,14 +2777,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2450
2777
  } else {
2451
2778
  delete nextToolsets[normalizedNodeKey];
2452
2779
  }
2453
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2780
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2454
2781
  version: 1
2455
2782
  }, Object.keys(nextToolsets).length ? {
2456
2783
  toolsets: nextToolsets
2457
2784
  } : {}, middlewares && Object.keys(middlewares).length ? {
2458
2785
  middlewares: middlewares
2459
2786
  } : {}, normalizedPreferences.skills ? {
2460
- skills: _object_spread$q({}, normalizedPreferences.skills)
2787
+ skills: _object_spread$r({}, normalizedPreferences.skills)
2461
2788
  } : {}));
2462
2789
  }
2463
2790
  var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
@@ -2473,14 +2800,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
2473
2800
  } else {
2474
2801
  delete nextMiddlewares[normalizedNodeKey];
2475
2802
  }
2476
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2803
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2477
2804
  version: 1
2478
2805
  }, toolsets && Object.keys(toolsets).length ? {
2479
2806
  toolsets: toolsets
2480
2807
  } : {}, Object.keys(nextMiddlewares).length ? {
2481
2808
  middlewares: nextMiddlewares
2482
2809
  } : {}, normalizedPreferences.skills ? {
2483
- skills: _object_spread$q({}, normalizedPreferences.skills)
2810
+ skills: _object_spread$r({}, normalizedPreferences.skills)
2484
2811
  } : {}));
2485
2812
  }
2486
2813
  function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
@@ -2498,7 +2825,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2498
2825
  }) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
2499
2826
  normalizedSkillId
2500
2827
  ]));
2501
- var skills = normalizedPreferences.skills ? _object_spread$q({}, normalizedPreferences.skills) : {};
2828
+ var skills = normalizedPreferences.skills ? _object_spread$r({}, normalizedPreferences.skills) : {};
2502
2829
  if (nextDisabledSkillIds.length) {
2503
2830
  skills[normalizedWorkspaceId] = {
2504
2831
  workspaceId: normalizedWorkspaceId,
@@ -2507,12 +2834,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
2507
2834
  } else {
2508
2835
  delete skills[normalizedWorkspaceId];
2509
2836
  }
2510
- return normalizeAssistantBindingToolPreferences(_object_spread$q({
2837
+ return normalizeAssistantBindingToolPreferences(_object_spread$r({
2511
2838
  version: 1
2512
2839
  }, normalizedPreferences.toolsets ? {
2513
- toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
2840
+ toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
2514
2841
  } : {}, normalizedPreferences.middlewares ? {
2515
- middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
2842
+ middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
2516
2843
  } : {}, Object.keys(skills).length ? {
2517
2844
  skills: skills
2518
2845
  } : {}));
@@ -2530,14 +2857,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
2530
2857
  var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
2531
2858
  var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
2532
2859
  var _currentWorkspacePreference_disabledSkillIds;
2533
- return _object_spread_props$k(_object_spread$q({
2860
+ return _object_spread_props$l(_object_spread$r({
2534
2861
  version: 1
2535
2862
  }, normalizedPreferences.toolsets ? {
2536
- toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
2863
+ toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
2537
2864
  } : {}, normalizedPreferences.middlewares ? {
2538
- middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
2865
+ middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
2539
2866
  } : {}), {
2540
- skills: _object_spread_props$k(_object_spread$q({}, currentSkills), _define_property$q({}, normalizedWorkspaceId, {
2867
+ skills: _object_spread_props$l(_object_spread$r({}, currentSkills), _define_property$r({}, normalizedWorkspaceId, {
2541
2868
  workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
2542
2869
  disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
2543
2870
  }))
@@ -2869,7 +3196,7 @@ function _array_like_to_array$t(arr, len) {
2869
3196
  function _array_without_holes$h(arr) {
2870
3197
  if (Array.isArray(arr)) return _array_like_to_array$t(arr);
2871
3198
  }
2872
- function _define_property$p(obj, key, value) {
3199
+ function _define_property$q(obj, key, value) {
2873
3200
  if (key in obj) {
2874
3201
  Object.defineProperty(obj, key, {
2875
3202
  value: value,
@@ -2888,7 +3215,7 @@ function _iterable_to_array$j(iter) {
2888
3215
  function _non_iterable_spread$h() {
2889
3216
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2890
3217
  }
2891
- function _object_spread$p(target) {
3218
+ function _object_spread$q(target) {
2892
3219
  for(var i = 1; i < arguments.length; i++){
2893
3220
  var source = arguments[i] != null ? arguments[i] : {};
2894
3221
  var ownKeys = Object.keys(source);
@@ -2898,12 +3225,12 @@ function _object_spread$p(target) {
2898
3225
  }));
2899
3226
  }
2900
3227
  ownKeys.forEach(function(key) {
2901
- _define_property$p(target, key, source[key]);
3228
+ _define_property$q(target, key, source[key]);
2902
3229
  });
2903
3230
  }
2904
3231
  return target;
2905
3232
  }
2906
- function ownKeys$j(object, enumerableOnly) {
3233
+ function ownKeys$k(object, enumerableOnly) {
2907
3234
  var keys = Object.keys(object);
2908
3235
  if (Object.getOwnPropertySymbols) {
2909
3236
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2911,12 +3238,12 @@ function ownKeys$j(object, enumerableOnly) {
2911
3238
  }
2912
3239
  return keys;
2913
3240
  }
2914
- function _object_spread_props$j(target, source) {
3241
+ function _object_spread_props$k(target, source) {
2915
3242
  source = source != null ? source : {};
2916
3243
  if (Object.getOwnPropertyDescriptors) {
2917
3244
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2918
3245
  } else {
2919
- ownKeys$j(Object(source)).forEach(function(key) {
3246
+ ownKeys$k(Object(source)).forEach(function(key) {
2920
3247
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2921
3248
  });
2922
3249
  }
@@ -2945,20 +3272,20 @@ var common$1 = {
2945
3272
  maxConcurrency: positiveInteger.max(1000)
2946
3273
  };
2947
3274
  /** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
2948
- zod.z.object(_object_spread_props$j(_object_spread$p({
3275
+ zod.z.object(_object_spread_props$k(_object_spread$q({
2949
3276
  modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
2950
3277
  }, common$1), {
2951
3278
  maxOutputTokens: positiveInteger,
2952
3279
  defaultMaxTokens: positiveInteger,
2953
3280
  features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
2954
3281
  })).strict(),
2955
- zod.z.object(_object_spread_props$j(_object_spread$p({
3282
+ zod.z.object(_object_spread_props$k(_object_spread$q({
2956
3283
  modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
2957
3284
  }, common$1), {
2958
3285
  dimensions: positiveInteger.optional(),
2959
3286
  batchSize: positiveInteger.max(2048)
2960
3287
  })).strict(),
2961
- zod.z.object(_object_spread$p({
3288
+ zod.z.object(_object_spread$q({
2962
3289
  modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
2963
3290
  }, common$1)).strict()
2964
3291
  ]).superRefine(function(value, ctx) {
@@ -2990,7 +3317,7 @@ function defaultModelConfiguration(modelType) {
2990
3317
  };
2991
3318
  switch(modelType){
2992
3319
  case exports.AiModelTypeEnum.LLM:
2993
- return _object_spread_props$j(_object_spread$p({
3320
+ return _object_spread_props$k(_object_spread$q({
2994
3321
  modelType: modelType
2995
3322
  }, common), {
2996
3323
  maxOutputTokens: 2048,
@@ -2998,13 +3325,13 @@ function defaultModelConfiguration(modelType) {
2998
3325
  features: []
2999
3326
  });
3000
3327
  case exports.AiModelTypeEnum.TEXT_EMBEDDING:
3001
- return _object_spread_props$j(_object_spread$p({
3328
+ return _object_spread_props$k(_object_spread$q({
3002
3329
  modelType: modelType
3003
3330
  }, common), {
3004
3331
  batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
3005
3332
  });
3006
3333
  case exports.AiModelTypeEnum.RERANK:
3007
- return _object_spread$p({
3334
+ return _object_spread$q({
3008
3335
  modelType: modelType
3009
3336
  }, common);
3010
3337
  }
@@ -3614,7 +3941,7 @@ function workflowNodeIdentifier(node) {
3614
3941
  return node.title || node.key;
3615
3942
  }
3616
3943
 
3617
- function _define_property$o(obj, key, value) {
3944
+ function _define_property$p(obj, key, value) {
3618
3945
  if (key in obj) {
3619
3946
  Object.defineProperty(obj, key, {
3620
3947
  value: value,
@@ -3627,7 +3954,7 @@ function _define_property$o(obj, key, value) {
3627
3954
  }
3628
3955
  return obj;
3629
3956
  }
3630
- function _object_spread$o(target) {
3957
+ function _object_spread$p(target) {
3631
3958
  for(var i = 1; i < arguments.length; i++){
3632
3959
  var source = arguments[i] != null ? arguments[i] : {};
3633
3960
  var ownKeys = Object.keys(source);
@@ -3637,12 +3964,12 @@ function _object_spread$o(target) {
3637
3964
  }));
3638
3965
  }
3639
3966
  ownKeys.forEach(function(key) {
3640
- _define_property$o(target, key, source[key]);
3967
+ _define_property$p(target, key, source[key]);
3641
3968
  });
3642
3969
  }
3643
3970
  return target;
3644
3971
  }
3645
- function ownKeys$i(object, enumerableOnly) {
3972
+ function ownKeys$j(object, enumerableOnly) {
3646
3973
  var keys = Object.keys(object);
3647
3974
  if (Object.getOwnPropertySymbols) {
3648
3975
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3650,20 +3977,20 @@ function ownKeys$i(object, enumerableOnly) {
3650
3977
  }
3651
3978
  return keys;
3652
3979
  }
3653
- function _object_spread_props$i(target, source) {
3980
+ function _object_spread_props$j(target, source) {
3654
3981
  source = source != null ? source : {};
3655
3982
  if (Object.getOwnPropertyDescriptors) {
3656
3983
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3657
3984
  } else {
3658
- ownKeys$i(Object(source)).forEach(function(key) {
3985
+ ownKeys$j(Object(source)).forEach(function(key) {
3659
3986
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3660
3987
  });
3661
3988
  }
3662
3989
  return target;
3663
3990
  }
3664
- function _object_without_properties$2(source, excluded) {
3991
+ function _object_without_properties$4(source, excluded) {
3665
3992
  if (source == null) return {};
3666
- var target = _object_without_properties_loose$2(source, excluded);
3993
+ var target = _object_without_properties_loose$4(source, excluded);
3667
3994
  var key, i;
3668
3995
  if (Object.getOwnPropertySymbols) {
3669
3996
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -3676,7 +4003,7 @@ function _object_without_properties$2(source, excluded) {
3676
4003
  }
3677
4004
  return target;
3678
4005
  }
3679
- function _object_without_properties_loose$2(source, excluded) {
4006
+ function _object_without_properties_loose$4(source, excluded) {
3680
4007
  if (source == null) return {};
3681
4008
  var target = {};
3682
4009
  var sourceKeys = Object.keys(source);
@@ -3725,10 +4052,10 @@ function getXpertAgentRecursionLimit(agentConfig) {
3725
4052
  }
3726
4053
  function normalizeXpertAgentConfig(agentConfig) {
3727
4054
  // Legacy imports may carry this unsupported scheduler option (LangGraph.js #2656).
3728
- var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
4055
+ var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$4(_ref, [
3729
4056
  "maxConcurrency"
3730
4057
  ]);
3731
- return _object_spread_props$i(_object_spread$o({}, config), {
4058
+ return _object_spread_props$j(_object_spread$p({}, config), {
3732
4059
  recursionLimit: getXpertAgentRecursionLimit(agentConfig)
3733
4060
  });
3734
4061
  }
@@ -3817,7 +4144,7 @@ function _array_like_to_array$s(arr, len) {
3817
4144
  function _array_with_holes$h(arr) {
3818
4145
  if (Array.isArray(arr)) return arr;
3819
4146
  }
3820
- function _define_property$n(obj, key, value) {
4147
+ function _define_property$o(obj, key, value) {
3821
4148
  if (key in obj) {
3822
4149
  Object.defineProperty(obj, key, {
3823
4150
  value: value,
@@ -3857,7 +4184,7 @@ function _iterable_to_array_limit$f(arr, i) {
3857
4184
  function _non_iterable_rest$h() {
3858
4185
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3859
4186
  }
3860
- function _object_spread$n(target) {
4187
+ function _object_spread$o(target) {
3861
4188
  for(var i = 1; i < arguments.length; i++){
3862
4189
  var source = arguments[i] != null ? arguments[i] : {};
3863
4190
  var ownKeys = Object.keys(source);
@@ -3867,12 +4194,12 @@ function _object_spread$n(target) {
3867
4194
  }));
3868
4195
  }
3869
4196
  ownKeys.forEach(function(key) {
3870
- _define_property$n(target, key, source[key]);
4197
+ _define_property$o(target, key, source[key]);
3871
4198
  });
3872
4199
  }
3873
4200
  return target;
3874
4201
  }
3875
- function ownKeys$h(object, enumerableOnly) {
4202
+ function ownKeys$i(object, enumerableOnly) {
3876
4203
  var keys = Object.keys(object);
3877
4204
  if (Object.getOwnPropertySymbols) {
3878
4205
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3880,12 +4207,12 @@ function ownKeys$h(object, enumerableOnly) {
3880
4207
  }
3881
4208
  return keys;
3882
4209
  }
3883
- function _object_spread_props$h(target, source) {
4210
+ function _object_spread_props$i(target, source) {
3884
4211
  source = source != null ? source : {};
3885
4212
  if (Object.getOwnPropertyDescriptors) {
3886
4213
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3887
4214
  } else {
3888
- ownKeys$h(Object(source)).forEach(function(key) {
4215
+ ownKeys$i(Object(source)).forEach(function(key) {
3889
4216
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3890
4217
  });
3891
4218
  }
@@ -3985,7 +4312,7 @@ function configurableStoreNamespace(configurable) {
3985
4312
  var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
3986
4313
  if (variableName) {
3987
4314
  var _state_agentChannelName;
3988
- 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));
4315
+ 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));
3989
4316
  } else {
3990
4317
  state[agentChannelName] = value;
3991
4318
  }
@@ -4076,7 +4403,7 @@ function getWorkflowTriggers(graph, from) {
4076
4403
  });
4077
4404
  }
4078
4405
 
4079
- function _define_property$m(obj, key, value) {
4406
+ function _define_property$n(obj, key, value) {
4080
4407
  if (key in obj) {
4081
4408
  Object.defineProperty(obj, key, {
4082
4409
  value: value,
@@ -4089,7 +4416,7 @@ function _define_property$m(obj, key, value) {
4089
4416
  }
4090
4417
  return obj;
4091
4418
  }
4092
- function _object_spread$m(target) {
4419
+ function _object_spread$n(target) {
4093
4420
  for(var i = 1; i < arguments.length; i++){
4094
4421
  var source = arguments[i] != null ? arguments[i] : {};
4095
4422
  var ownKeys = Object.keys(source);
@@ -4099,12 +4426,12 @@ function _object_spread$m(target) {
4099
4426
  }));
4100
4427
  }
4101
4428
  ownKeys.forEach(function(key) {
4102
- _define_property$m(target, key, source[key]);
4429
+ _define_property$n(target, key, source[key]);
4103
4430
  });
4104
4431
  }
4105
4432
  return target;
4106
4433
  }
4107
- function ownKeys$g(object, enumerableOnly) {
4434
+ function ownKeys$h(object, enumerableOnly) {
4108
4435
  var keys = Object.keys(object);
4109
4436
  if (Object.getOwnPropertySymbols) {
4110
4437
  var symbols = Object.getOwnPropertySymbols(object);
@@ -4112,12 +4439,12 @@ function ownKeys$g(object, enumerableOnly) {
4112
4439
  }
4113
4440
  return keys;
4114
4441
  }
4115
- function _object_spread_props$g(target, source) {
4442
+ function _object_spread_props$h(target, source) {
4116
4443
  source = source != null ? source : {};
4117
4444
  if (Object.getOwnPropertyDescriptors) {
4118
4445
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
4119
4446
  } else {
4120
- ownKeys$g(Object(source)).forEach(function(key) {
4447
+ ownKeys$h(Object(source)).forEach(function(key) {
4121
4448
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4122
4449
  });
4123
4450
  }
@@ -4205,11 +4532,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
4205
4532
  return candidate === requestedMode;
4206
4533
  }) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
4207
4534
  var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
4208
- return _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
4535
+ return _object_spread_props$h(_object_spread$n({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
4209
4536
  mode: mode,
4210
- 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 : {}), {
4537
+ 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 : {}), {
4211
4538
  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,
4212
- 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 : {}), {
4539
+ 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 : {}), {
4213
4540
  graph: 0
4214
4541
  })
4215
4542
  })
@@ -4378,7 +4705,7 @@ function _array_like_to_array$q(arr, len) {
4378
4705
  function _array_without_holes$f(arr) {
4379
4706
  if (Array.isArray(arr)) return _array_like_to_array$q(arr);
4380
4707
  }
4381
- function _define_property$l(obj, key, value) {
4708
+ function _define_property$m(obj, key, value) {
4382
4709
  if (key in obj) {
4383
4710
  Object.defineProperty(obj, key, {
4384
4711
  value: value,
@@ -4397,7 +4724,7 @@ function _iterable_to_array$h(iter) {
4397
4724
  function _non_iterable_spread$f() {
4398
4725
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4399
4726
  }
4400
- function _object_spread$l(target) {
4727
+ function _object_spread$m(target) {
4401
4728
  for(var i = 1; i < arguments.length; i++){
4402
4729
  var source = arguments[i] != null ? arguments[i] : {};
4403
4730
  var ownKeys = Object.keys(source);
@@ -4407,7 +4734,7 @@ function _object_spread$l(target) {
4407
4734
  }));
4408
4735
  }
4409
4736
  ownKeys.forEach(function(key) {
4410
- _define_property$l(target, key, source[key]);
4737
+ _define_property$m(target, key, source[key]);
4411
4738
  });
4412
4739
  }
4413
4740
  return target;
@@ -4425,12 +4752,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4425
4752
  }
4426
4753
  /** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
4427
4754
  if (!config) return {};
4428
- return _object_spread$l({}, config.spreadsheet ? {
4429
- spreadsheet: _object_spread$l({}, config.spreadsheet)
4755
+ return _object_spread$m({}, config.spreadsheet ? {
4756
+ spreadsheet: _object_spread$m({}, config.spreadsheet)
4430
4757
  } : {}, config.tableMetadataRequirements !== undefined ? {
4431
4758
  tableMetadataRequirements: config.tableMetadataRequirements
4432
4759
  } : {}, config.questionGeneration ? {
4433
- questionGeneration: _object_spread$l({}, config.questionGeneration)
4760
+ questionGeneration: _object_spread$m({}, config.questionGeneration)
4434
4761
  } : {}, config.chunkLanguageHint !== undefined ? {
4435
4762
  chunkLanguageHint: config.chunkLanguageHint
4436
4763
  } : {}, config.maxChunkTokens !== undefined ? {
@@ -4444,7 +4771,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4444
4771
  } : {}, config.textSplitterType ? {
4445
4772
  textSplitterType: config.textSplitterType
4446
4773
  } : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
4447
- textSplitter: _object_spread$l({}, config.chunkSize != null ? {
4774
+ textSplitter: _object_spread$m({}, config.chunkSize != null ? {
4448
4775
  chunkSize: config.chunkSize
4449
4776
  } : {}, config.chunkOverlap != null ? {
4450
4777
  chunkOverlap: config.chunkOverlap
@@ -4456,7 +4783,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
4456
4783
  } : {}, config.imageUnderstandingType ? {
4457
4784
  imageUnderstandingType: config.imageUnderstandingType
4458
4785
  } : {}, config.imageUnderstanding ? {
4459
- imageUnderstanding: _object_spread$l({}, config.imageUnderstanding)
4786
+ imageUnderstanding: _object_spread$m({}, config.imageUnderstanding)
4460
4787
  } : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
4461
4788
  }
4462
4789
  /** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
@@ -4521,7 +4848,7 @@ function genPipelineKnowledgeBaseKey() {
4521
4848
  return letterStartSUID("KnowledgeBase_");
4522
4849
  }
4523
4850
 
4524
- function _define_property$k(obj, key, value) {
4851
+ function _define_property$l(obj, key, value) {
4525
4852
  if (key in obj) {
4526
4853
  Object.defineProperty(obj, key, {
4527
4854
  value: value,
@@ -4534,7 +4861,7 @@ function _define_property$k(obj, key, value) {
4534
4861
  }
4535
4862
  return obj;
4536
4863
  }
4537
- function _object_spread$k(target) {
4864
+ function _object_spread$l(target) {
4538
4865
  for(var i = 1; i < arguments.length; i++){
4539
4866
  var source = arguments[i] != null ? arguments[i] : {};
4540
4867
  var ownKeys = Object.keys(source);
@@ -4544,7 +4871,7 @@ function _object_spread$k(target) {
4544
4871
  }));
4545
4872
  }
4546
4873
  ownKeys.forEach(function(key) {
4547
- _define_property$k(target, key, source[key]);
4874
+ _define_property$l(target, key, source[key]);
4548
4875
  });
4549
4876
  }
4550
4877
  return target;
@@ -4564,7 +4891,7 @@ function _object_spread$k(target) {
4564
4891
  * @deprecated use DocumentSourceProviderCategoryEnum local file type instead
4565
4892
  */ DocumentTypeEnum["FILE"] = "file";
4566
4893
  })(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
4567
- var KDocumentSourceType = _object_spread$k({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
4894
+ var KDocumentSourceType = _object_spread$l({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
4568
4895
  /**
4569
4896
  * Document type category, determine how to process the document.
4570
4897
  */ exports.KBDocumentCategoryEnum = void 0;
@@ -5450,7 +5777,7 @@ function _array_like_to_array$o(arr, len) {
5450
5777
  function _array_without_holes$d(arr) {
5451
5778
  if (Array.isArray(arr)) return _array_like_to_array$o(arr);
5452
5779
  }
5453
- function _define_property$j(obj, key, value) {
5780
+ function _define_property$k(obj, key, value) {
5454
5781
  if (key in obj) {
5455
5782
  Object.defineProperty(obj, key, {
5456
5783
  value: value,
@@ -5469,7 +5796,7 @@ function _iterable_to_array$f(iter) {
5469
5796
  function _non_iterable_spread$d() {
5470
5797
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5471
5798
  }
5472
- function _object_spread$j(target) {
5799
+ function _object_spread$k(target) {
5473
5800
  for(var i = 1; i < arguments.length; i++){
5474
5801
  var source = arguments[i] != null ? arguments[i] : {};
5475
5802
  var ownKeys = Object.keys(source);
@@ -5479,12 +5806,12 @@ function _object_spread$j(target) {
5479
5806
  }));
5480
5807
  }
5481
5808
  ownKeys.forEach(function(key) {
5482
- _define_property$j(target, key, source[key]);
5809
+ _define_property$k(target, key, source[key]);
5483
5810
  });
5484
5811
  }
5485
5812
  return target;
5486
5813
  }
5487
- function ownKeys$f(object, enumerableOnly) {
5814
+ function ownKeys$g(object, enumerableOnly) {
5488
5815
  var keys = Object.keys(object);
5489
5816
  if (Object.getOwnPropertySymbols) {
5490
5817
  var symbols = Object.getOwnPropertySymbols(object);
@@ -5492,20 +5819,20 @@ function ownKeys$f(object, enumerableOnly) {
5492
5819
  }
5493
5820
  return keys;
5494
5821
  }
5495
- function _object_spread_props$f(target, source) {
5822
+ function _object_spread_props$g(target, source) {
5496
5823
  source = source != null ? source : {};
5497
5824
  if (Object.getOwnPropertyDescriptors) {
5498
5825
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5499
5826
  } else {
5500
- ownKeys$f(Object(source)).forEach(function(key) {
5827
+ ownKeys$g(Object(source)).forEach(function(key) {
5501
5828
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5502
5829
  });
5503
5830
  }
5504
5831
  return target;
5505
5832
  }
5506
- function _object_without_properties$1(source, excluded) {
5833
+ function _object_without_properties$3(source, excluded) {
5507
5834
  if (source == null) return {};
5508
- var target = _object_without_properties_loose$1(source, excluded);
5835
+ var target = _object_without_properties_loose$3(source, excluded);
5509
5836
  var key, i;
5510
5837
  if (Object.getOwnPropertySymbols) {
5511
5838
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -5518,7 +5845,7 @@ function _object_without_properties$1(source, excluded) {
5518
5845
  }
5519
5846
  return target;
5520
5847
  }
5521
- function _object_without_properties_loose$1(source, excluded) {
5848
+ function _object_without_properties_loose$3(source, excluded) {
5522
5849
  if (source == null) return {};
5523
5850
  var target = {};
5524
5851
  var sourceKeys = Object.keys(source);
@@ -5543,7 +5870,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
5543
5870
  }
5544
5871
  function omitXpertRelations(xpert) {
5545
5872
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5546
- 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, [
5873
+ 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, [
5547
5874
  "draft",
5548
5875
  "agent",
5549
5876
  "agents",
@@ -5578,7 +5905,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
5578
5905
  var graph = resolveDraftRuntimeGraph(xpert, draft);
5579
5906
  var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
5580
5907
  var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
5581
- return _object_spread_props$f(_object_spread$j({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
5908
+ return _object_spread_props$g(_object_spread$k({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
5582
5909
  id: xpert.id,
5583
5910
  tenantId: xpert.tenantId,
5584
5911
  organizationId: xpert.organizationId,
@@ -5862,9 +6189,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5862
6189
  if (node.type === "agent" && node.key === sourceKey) {
5863
6190
  replacedNode = true;
5864
6191
  var _node_entity;
5865
- return _object_spread_props$f(_object_spread$j({}, node), {
6192
+ return _object_spread_props$g(_object_spread$k({}, node), {
5866
6193
  key: targetKey,
5867
- entity: _object_spread_props$f(_object_spread$j({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
6194
+ entity: _object_spread_props$g(_object_spread$k({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
5868
6195
  key: targetKey
5869
6196
  })
5870
6197
  });
@@ -5880,17 +6207,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
5880
6207
  if (from === connection.from && to === connection.to) {
5881
6208
  return connection;
5882
6209
  }
5883
- return _object_spread_props$f(_object_spread$j({}, connection), {
6210
+ return _object_spread_props$g(_object_spread$k({}, connection), {
5884
6211
  from: from,
5885
6212
  to: to,
5886
6213
  key: "".concat(from, "/").concat(to)
5887
6214
  });
5888
6215
  });
5889
- return _object_spread_props$f(_object_spread$j({}, draft), {
5890
- team: draft.team ? _object_spread_props$f(_object_spread$j({}, draft.team), {
5891
- agent: draft.team.agent ? _object_spread_props$f(_object_spread$j({}, draft.team.agent, agent), {
6216
+ return _object_spread_props$g(_object_spread$k({}, draft), {
6217
+ team: draft.team ? _object_spread_props$g(_object_spread$k({}, draft.team), {
6218
+ agent: draft.team.agent ? _object_spread_props$g(_object_spread$k({}, draft.team.agent, agent), {
5892
6219
  key: targetKey
5893
- }) : _object_spread_props$f(_object_spread$j({}, agent), {
6220
+ }) : _object_spread_props$g(_object_spread$k({}, agent), {
5894
6221
  key: targetKey
5895
6222
  })
5896
6223
  }) : draft.team,
@@ -6038,7 +6365,7 @@ var GENERAL_PROJECT_TYPE = {
6038
6365
  projectTypeKey: "space"
6039
6366
  };
6040
6367
 
6041
- function _define_property$i(obj, key, value) {
6368
+ function _define_property$j(obj, key, value) {
6042
6369
  if (key in obj) {
6043
6370
  Object.defineProperty(obj, key, {
6044
6371
  value: value,
@@ -6051,7 +6378,7 @@ function _define_property$i(obj, key, value) {
6051
6378
  }
6052
6379
  return obj;
6053
6380
  }
6054
- function _object_spread$i(target) {
6381
+ function _object_spread$j(target) {
6055
6382
  for(var i = 1; i < arguments.length; i++){
6056
6383
  var source = arguments[i] != null ? arguments[i] : {};
6057
6384
  var ownKeys = Object.keys(source);
@@ -6061,12 +6388,12 @@ function _object_spread$i(target) {
6061
6388
  }));
6062
6389
  }
6063
6390
  ownKeys.forEach(function(key) {
6064
- _define_property$i(target, key, source[key]);
6391
+ _define_property$j(target, key, source[key]);
6065
6392
  });
6066
6393
  }
6067
6394
  return target;
6068
6395
  }
6069
- function ownKeys$e(object, enumerableOnly) {
6396
+ function ownKeys$f(object, enumerableOnly) {
6070
6397
  var keys = Object.keys(object);
6071
6398
  if (Object.getOwnPropertySymbols) {
6072
6399
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6074,12 +6401,12 @@ function ownKeys$e(object, enumerableOnly) {
6074
6401
  }
6075
6402
  return keys;
6076
6403
  }
6077
- function _object_spread_props$e(target, source) {
6404
+ function _object_spread_props$f(target, source) {
6078
6405
  source = source != null ? source : {};
6079
6406
  if (Object.getOwnPropertyDescriptors) {
6080
6407
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6081
6408
  } else {
6082
- ownKeys$e(Object(source)).forEach(function(key) {
6409
+ ownKeys$f(Object(source)).forEach(function(key) {
6083
6410
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6084
6411
  });
6085
6412
  }
@@ -6108,7 +6435,7 @@ function projectTaskConfigurationSchema(defaultSeconds) {
6108
6435
  type: "object",
6109
6436
  additionalProperties: false,
6110
6437
  properties: {
6111
- taskExecutionMaxDurationSeconds: _object_spread_props$e(_object_spread$i({
6438
+ taskExecutionMaxDurationSeconds: _object_spread_props$f(_object_spread$j({
6112
6439
  type: "integer",
6113
6440
  minimum: 60,
6114
6441
  maximum: 86400
@@ -6120,8 +6447,8 @@ function projectTaskConfigurationSchema(defaultSeconds) {
6120
6447
  zh_Hans: "单次任务执行上限(秒)"
6121
6448
  },
6122
6449
  description: {
6123
- en_US: "7200 seconds is 2 hours. Applies to new implementation and review attempts, within the tenant limit.",
6124
- zh_Hans: "7200 秒为 2 小时。在租户允许的上限内,对新的开发和验收执行生效。"
6450
+ en_US: "43200 seconds is 12 hours; omit to inherit the tenant default. Applies to new implementation and review attempts, within the tenant limit.",
6451
+ zh_Hans: "43200 秒为 12 小时;留空继承租户默认值。在租户允许的上限内,对新的开发和验收执行生效。"
6125
6452
  }
6126
6453
  })
6127
6454
  }
@@ -6187,7 +6514,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
6187
6514
  * @template Metadata - Type of metadata, defaults to IDocChunkMetadata
6188
6515
  * @param documents - A flat array of DocumentInterface objects
6189
6516
  * @returns the hierarchical tree (root-level DocumentInterface[])
6190
- */ function _define_property$h(obj, key, value) {
6517
+ */ function _define_property$i(obj, key, value) {
6191
6518
  if (key in obj) {
6192
6519
  Object.defineProperty(obj, key, {
6193
6520
  value: value,
@@ -6200,7 +6527,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
6200
6527
  }
6201
6528
  return obj;
6202
6529
  }
6203
- function _object_spread$h(target) {
6530
+ function _object_spread$i(target) {
6204
6531
  for(var i = 1; i < arguments.length; i++){
6205
6532
  var source = arguments[i] != null ? arguments[i] : {};
6206
6533
  var ownKeys = Object.keys(source);
@@ -6210,12 +6537,12 @@ function _object_spread$h(target) {
6210
6537
  }));
6211
6538
  }
6212
6539
  ownKeys.forEach(function(key) {
6213
- _define_property$h(target, key, source[key]);
6540
+ _define_property$i(target, key, source[key]);
6214
6541
  });
6215
6542
  }
6216
6543
  return target;
6217
6544
  }
6218
- function ownKeys$d(object, enumerableOnly) {
6545
+ function ownKeys$e(object, enumerableOnly) {
6219
6546
  var keys = Object.keys(object);
6220
6547
  if (Object.getOwnPropertySymbols) {
6221
6548
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6223,12 +6550,12 @@ function ownKeys$d(object, enumerableOnly) {
6223
6550
  }
6224
6551
  return keys;
6225
6552
  }
6226
- function _object_spread_props$d(target, source) {
6553
+ function _object_spread_props$e(target, source) {
6227
6554
  source = source != null ? source : {};
6228
6555
  if (Object.getOwnPropertyDescriptors) {
6229
6556
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6230
6557
  } else {
6231
- ownKeys$d(Object(source)).forEach(function(key) {
6558
+ ownKeys$e(Object(source)).forEach(function(key) {
6232
6559
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6233
6560
  });
6234
6561
  }
@@ -6243,8 +6570,8 @@ function buildChunkTree(documents) {
6243
6570
  documents.forEach(function(doc, index) {
6244
6571
  var chunkId = getChunkNodeId(doc);
6245
6572
  if (chunkId) {
6246
- map.set(chunkId, _object_spread_props$d(_object_spread$h({}, doc), {
6247
- metadata: _object_spread_props$d(_object_spread$h({}, doc.metadata), {
6573
+ map.set(chunkId, _object_spread_props$e(_object_spread$i({}, doc), {
6574
+ metadata: _object_spread_props$e(_object_spread$i({}, doc.metadata), {
6248
6575
  chunkId: chunkId,
6249
6576
  children: []
6250
6577
  })
@@ -6794,7 +7121,7 @@ function isLocalPath(value) {
6794
7121
  })).size === value.length;
6795
7122
  }
6796
7123
 
6797
- function _define_property$g(obj, key, value) {
7124
+ function _define_property$h(obj, key, value) {
6798
7125
  if (key in obj) {
6799
7126
  Object.defineProperty(obj, key, {
6800
7127
  value: value,
@@ -6807,7 +7134,7 @@ function _define_property$g(obj, key, value) {
6807
7134
  }
6808
7135
  return obj;
6809
7136
  }
6810
- function _object_spread$g(target) {
7137
+ function _object_spread$h(target) {
6811
7138
  for(var i = 1; i < arguments.length; i++){
6812
7139
  var source = arguments[i] != null ? arguments[i] : {};
6813
7140
  var ownKeys = Object.keys(source);
@@ -6817,12 +7144,12 @@ function _object_spread$g(target) {
6817
7144
  }));
6818
7145
  }
6819
7146
  ownKeys.forEach(function(key) {
6820
- _define_property$g(target, key, source[key]);
7147
+ _define_property$h(target, key, source[key]);
6821
7148
  });
6822
7149
  }
6823
7150
  return target;
6824
7151
  }
6825
- function ownKeys$c(object, enumerableOnly) {
7152
+ function ownKeys$d(object, enumerableOnly) {
6826
7153
  var keys = Object.keys(object);
6827
7154
  if (Object.getOwnPropertySymbols) {
6828
7155
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6830,12 +7157,12 @@ function ownKeys$c(object, enumerableOnly) {
6830
7157
  }
6831
7158
  return keys;
6832
7159
  }
6833
- function _object_spread_props$c(target, source) {
7160
+ function _object_spread_props$d(target, source) {
6834
7161
  source = source != null ? source : {};
6835
7162
  if (Object.getOwnPropertyDescriptors) {
6836
7163
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6837
7164
  } else {
6838
- ownKeys$c(Object(source)).forEach(function(key) {
7165
+ ownKeys$d(Object(source)).forEach(function(key) {
6839
7166
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6840
7167
  });
6841
7168
  }
@@ -6876,8 +7203,8 @@ function normalizeMiddlewareNode(node) {
6876
7203
  if (provider === entity.provider) {
6877
7204
  return node;
6878
7205
  }
6879
- return _object_spread_props$c(_object_spread$g({}, node), {
6880
- entity: _object_spread_props$c(_object_spread$g({}, entity), {
7206
+ return _object_spread_props$d(_object_spread$h({}, node), {
7207
+ entity: _object_spread_props$d(_object_spread$h({}, entity), {
6881
7208
  provider: provider
6882
7209
  })
6883
7210
  });
@@ -6938,7 +7265,7 @@ function _array_with_holes$e(arr) {
6938
7265
  function _array_without_holes$c(arr) {
6939
7266
  if (Array.isArray(arr)) return _array_like_to_array$l(arr);
6940
7267
  }
6941
- function _define_property$f(obj, key, value) {
7268
+ function _define_property$g(obj, key, value) {
6942
7269
  if (key in obj) {
6943
7270
  Object.defineProperty(obj, key, {
6944
7271
  value: value,
@@ -6984,7 +7311,7 @@ function _non_iterable_rest$e() {
6984
7311
  function _non_iterable_spread$c() {
6985
7312
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6986
7313
  }
6987
- function _object_spread$f(target) {
7314
+ function _object_spread$g(target) {
6988
7315
  for(var i = 1; i < arguments.length; i++){
6989
7316
  var source = arguments[i] != null ? arguments[i] : {};
6990
7317
  var ownKeys = Object.keys(source);
@@ -6994,12 +7321,12 @@ function _object_spread$f(target) {
6994
7321
  }));
6995
7322
  }
6996
7323
  ownKeys.forEach(function(key) {
6997
- _define_property$f(target, key, source[key]);
7324
+ _define_property$g(target, key, source[key]);
6998
7325
  });
6999
7326
  }
7000
7327
  return target;
7001
7328
  }
7002
- function ownKeys$b(object, enumerableOnly) {
7329
+ function ownKeys$c(object, enumerableOnly) {
7003
7330
  var keys = Object.keys(object);
7004
7331
  if (Object.getOwnPropertySymbols) {
7005
7332
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7007,20 +7334,20 @@ function ownKeys$b(object, enumerableOnly) {
7007
7334
  }
7008
7335
  return keys;
7009
7336
  }
7010
- function _object_spread_props$b(target, source) {
7337
+ function _object_spread_props$c(target, source) {
7011
7338
  source = source != null ? source : {};
7012
7339
  if (Object.getOwnPropertyDescriptors) {
7013
7340
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7014
7341
  } else {
7015
- ownKeys$b(Object(source)).forEach(function(key) {
7342
+ ownKeys$c(Object(source)).forEach(function(key) {
7016
7343
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7017
7344
  });
7018
7345
  }
7019
7346
  return target;
7020
7347
  }
7021
- function _object_without_properties(source, excluded) {
7348
+ function _object_without_properties$2(source, excluded) {
7022
7349
  if (source == null) return {};
7023
- var target = _object_without_properties_loose(source, excluded);
7350
+ var target = _object_without_properties_loose$2(source, excluded);
7024
7351
  var key, i;
7025
7352
  if (Object.getOwnPropertySymbols) {
7026
7353
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -7033,7 +7360,7 @@ function _object_without_properties(source, excluded) {
7033
7360
  }
7034
7361
  return target;
7035
7362
  }
7036
- function _object_without_properties_loose(source, excluded) {
7363
+ function _object_without_properties_loose$2(source, excluded) {
7037
7364
  if (source == null) return {};
7038
7365
  var target = {};
7039
7366
  var sourceKeys = Object.keys(source);
@@ -7128,7 +7455,7 @@ function normalizeIncomingContent(content, context) {
7128
7455
  if (typeof content !== "string") {
7129
7456
  return content;
7130
7457
  }
7131
- return _object_spread$f({
7458
+ return _object_spread$g({
7132
7459
  type: "text",
7133
7460
  text: content
7134
7461
  }, context.streamId ? {
@@ -7193,7 +7520,7 @@ function filterText(content) {
7193
7520
  return "";
7194
7521
  }
7195
7522
  function mergeTextChunkForDisplay(previous, incoming) {
7196
- return _object_spread$f(_object_spread_props$b(_object_spread$f({}, previous), {
7523
+ return _object_spread$g(_object_spread_props$c(_object_spread$g({}, previous), {
7197
7524
  text: "".concat(previous.text).concat(incoming.text)
7198
7525
  }), !previous.id && incoming.id ? {
7199
7526
  id: incoming.id
@@ -7205,7 +7532,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
7205
7532
  }
7206
7533
  function stripAutoDisplaySeparator(incoming, previousOriginal) {
7207
7534
  if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
7208
- return _object_spread_props$b(_object_spread$f({}, incoming), {
7535
+ return _object_spread_props$c(_object_spread$g({}, incoming), {
7209
7536
  text: incoming.text.slice(1)
7210
7537
  });
7211
7538
  }
@@ -7216,20 +7543,22 @@ function mergeComponentData(previous, incoming) {
7216
7543
  var _incoming_data1;
7217
7544
  var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
7218
7545
  var _param = _sliced_to_array$d(param, 2), key = _param[0], value = _param[1];
7219
- if (!isNil(value)) {
7546
+ var _incoming_data;
7547
+ var explicitNull = value === null && ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data["toolPresentation"]) === "redacted" && (key === "input" || key === "output");
7548
+ if (!isNil(value) || explicitNull) {
7220
7549
  acc[key] = value;
7221
7550
  }
7222
7551
  return acc;
7223
7552
  }, {});
7224
7553
  var _previous_data1;
7225
- return _object_spread_props$b(_object_spread$f({}, previous, incoming), {
7226
- data: _object_spread_props$b(_object_spread$f({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
7554
+ return _object_spread_props$c(_object_spread$g({}, previous, incoming), {
7555
+ data: _object_spread_props$c(_object_spread$g({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
7227
7556
  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)
7228
7557
  })
7229
7558
  });
7230
7559
  }
7231
7560
  function inferMessageAppendContext(content, fallbackSource) {
7232
- return _object_spread$f({
7561
+ return _object_spread$g({
7233
7562
  source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
7234
7563
  }, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
7235
7564
  streamId: String(content.id)
@@ -7237,10 +7566,10 @@ function inferMessageAppendContext(content, fallbackSource) {
7237
7566
  }
7238
7567
  function resolveMessageAppendContext(options) {
7239
7568
  var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
7240
- var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$b(_object_spread$f({}, inferredContext), {
7569
+ var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$c(_object_spread$g({}, inferredContext), {
7241
7570
  streamId: options.fallbackStreamId
7242
7571
  }) : inferredContext;
7243
- var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$b(_object_spread$f({}, appendContext), {
7572
+ var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$c(_object_spread$g({}, appendContext), {
7244
7573
  joinHint: "none"
7245
7574
  }) : appendContext;
7246
7575
  return {
@@ -7261,7 +7590,7 @@ function resolveMessageAppendContext(options) {
7261
7590
  var previous = initial;
7262
7591
  return {
7263
7592
  resolve: function resolve(options) {
7264
- var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$f({}, options), {
7593
+ var resolved = resolveMessageAppendContext(_object_spread_props$c(_object_spread$g({}, options), {
7265
7594
  previous: previous
7266
7595
  }));
7267
7596
  if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
@@ -7296,13 +7625,13 @@ function resolveMessageAppendContext(options) {
7296
7625
  return;
7297
7626
  }
7298
7627
  aiMessage.status = "answering";
7299
- 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, [
7628
+ 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, [
7300
7629
  "previous"
7301
7630
  ]);
7302
- var appendContext = _object_spread$f({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
7631
+ var appendContext = _object_spread$g({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
7303
7632
  var _appendContext_joinHint;
7304
7633
  var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
7305
- var messageContext = joinHint ? _object_spread_props$b(_object_spread$f({}, appendContext), {
7634
+ var messageContext = joinHint ? _object_spread_props$c(_object_spread$g({}, appendContext), {
7306
7635
  joinHint: joinHint
7307
7636
  }) : appendContext;
7308
7637
  var content = normalizeIncomingContent(incoming, appendContext);
@@ -7311,7 +7640,7 @@ function resolveMessageAppendContext(options) {
7311
7640
  var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
7312
7641
  var lastReasoning = reasoning[reasoning.length - 1];
7313
7642
  if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
7314
- var mergedReasoning = _object_spread_props$b(_object_spread$f({}, lastReasoning), {
7643
+ var mergedReasoning = _object_spread_props$c(_object_spread$g({}, lastReasoning), {
7315
7644
  text: "".concat(lastReasoning.text).concat(content.text)
7316
7645
  });
7317
7646
  aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
@@ -7332,7 +7661,7 @@ function resolveMessageAppendContext(options) {
7332
7661
  return isTextContent(item) && item.id === content.id;
7333
7662
  });
7334
7663
  if (index > -1) {
7335
- var mergedContent = _object_spread$f(_object_spread_props$b(_object_spread$f({}, chunks[index]), {
7664
+ var mergedContent = _object_spread$g(_object_spread_props$c(_object_spread$g({}, chunks[index]), {
7336
7665
  text: "".concat(chunks[index].text).concat(content.text)
7337
7666
  }), !chunks[index].id && content.id ? {
7338
7667
  id: content.id
@@ -7355,7 +7684,7 @@ function resolveMessageAppendContext(options) {
7355
7684
  var existingIndex = findLastTextChunkIndexById(chunks, content.id);
7356
7685
  if (existingIndex > -1) {
7357
7686
  var existing = chunks[existingIndex];
7358
- var merged = _object_spread_props$b(_object_spread$f({}, existing), {
7687
+ var merged = _object_spread_props$c(_object_spread$g({}, existing), {
7359
7688
  text: "".concat(existing.text).concat(content.text)
7360
7689
  });
7361
7690
  var nextChunks = _to_consumable_array$c(chunks);
@@ -7364,7 +7693,7 @@ function resolveMessageAppendContext(options) {
7364
7693
  return;
7365
7694
  }
7366
7695
  } else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
7367
- var mergedLastContent = _object_spread_props$b(_object_spread$f({}, lastContent), {
7696
+ var mergedLastContent = _object_spread_props$c(_object_spread$g({}, lastContent), {
7368
7697
  text: "".concat(lastContent.text).concat(content.text)
7369
7698
  });
7370
7699
  aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
@@ -7373,7 +7702,7 @@ function resolveMessageAppendContext(options) {
7373
7702
  return;
7374
7703
  }
7375
7704
  var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
7376
- var appended = _object_spread_props$b(_object_spread$f({}, content), {
7705
+ var appended = _object_spread_props$c(_object_spread$g({}, content), {
7377
7706
  text: separator + content.text
7378
7707
  });
7379
7708
  aiMessage.content = _to_consumable_array$c(chunks).concat([
@@ -7397,7 +7726,7 @@ function resolveMessageAppendContext(options) {
7397
7726
  aiMessage.content = nextChunks1;
7398
7727
  }
7399
7728
  function appendMessagePlainText(accumulator, incoming, context) {
7400
- var resolvedContext = _object_spread$f({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
7729
+ var resolvedContext = _object_spread$g({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
7401
7730
  var nextText = filterText(incoming);
7402
7731
  if (!nextText) {
7403
7732
  return accumulator !== null && accumulator !== void 0 ? accumulator : "";
@@ -7442,7 +7771,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
7442
7771
  return;
7443
7772
  }
7444
7773
  textIndexById.set(item.id, merged.length);
7445
- merged.push(_object_spread$f({}, item));
7774
+ merged.push(_object_spread$g({}, item));
7446
7775
  return;
7447
7776
  }
7448
7777
  var lastItem = merged[merged.length - 1];
@@ -7450,7 +7779,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
7450
7779
  merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
7451
7780
  return;
7452
7781
  }
7453
- merged.push(_object_spread$f({}, item));
7782
+ merged.push(_object_spread$g({}, item));
7454
7783
  });
7455
7784
  return merged.length ? merged : null;
7456
7785
  }
@@ -7465,7 +7794,7 @@ function stringifyMessageContent(content) {
7465
7794
  if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
7466
7795
  var itemContext = inferMessageAppendContext(item);
7467
7796
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
7468
- result = appendMessagePlainText(result, stringifySingle(item), _object_spread$f({}, itemContext, joinHint ? {
7797
+ result = appendMessagePlainText(result, stringifySingle(item), _object_spread$g({}, itemContext, joinHint ? {
7469
7798
  joinHint: joinHint
7470
7799
  } : {}));
7471
7800
  previousContext = itemContext;
@@ -7488,7 +7817,7 @@ function filterMessageText(content) {
7488
7817
  }
7489
7818
  var itemContext = inferMessageAppendContext(item);
7490
7819
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
7491
- result = appendMessagePlainText(result, nextText, _object_spread$f({}, itemContext, joinHint ? {
7820
+ result = appendMessagePlainText(result, nextText, _object_spread$g({}, itemContext, joinHint ? {
7492
7821
  joinHint: joinHint
7493
7822
  } : {}));
7494
7823
  previousContext = itemContext;
@@ -8260,7 +8589,7 @@ var projectPipelineEdgeSchema = v3.z.object({
8260
8589
  outcome: projectPipelineKeySchema.optional()
8261
8590
  }).strict();
8262
8591
 
8263
- function _define_property$e(obj, key, value) {
8592
+ function _define_property$f(obj, key, value) {
8264
8593
  if (key in obj) {
8265
8594
  Object.defineProperty(obj, key, {
8266
8595
  value: value,
@@ -8273,7 +8602,7 @@ function _define_property$e(obj, key, value) {
8273
8602
  }
8274
8603
  return obj;
8275
8604
  }
8276
- function _object_spread$e(target) {
8605
+ function _object_spread$f(target) {
8277
8606
  for(var i = 1; i < arguments.length; i++){
8278
8607
  var source = arguments[i] != null ? arguments[i] : {};
8279
8608
  var ownKeys = Object.keys(source);
@@ -8283,12 +8612,12 @@ function _object_spread$e(target) {
8283
8612
  }));
8284
8613
  }
8285
8614
  ownKeys.forEach(function(key) {
8286
- _define_property$e(target, key, source[key]);
8615
+ _define_property$f(target, key, source[key]);
8287
8616
  });
8288
8617
  }
8289
8618
  return target;
8290
8619
  }
8291
- function ownKeys$a(object, enumerableOnly) {
8620
+ function ownKeys$b(object, enumerableOnly) {
8292
8621
  var keys = Object.keys(object);
8293
8622
  if (Object.getOwnPropertySymbols) {
8294
8623
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8296,12 +8625,12 @@ function ownKeys$a(object, enumerableOnly) {
8296
8625
  }
8297
8626
  return keys;
8298
8627
  }
8299
- function _object_spread_props$a(target, source) {
8628
+ function _object_spread_props$b(target, source) {
8300
8629
  source = source != null ? source : {};
8301
8630
  if (Object.getOwnPropertyDescriptors) {
8302
8631
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
8303
8632
  } else {
8304
- ownKeys$a(Object(source)).forEach(function(key) {
8633
+ ownKeys$b(Object(source)).forEach(function(key) {
8305
8634
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8306
8635
  });
8307
8636
  }
@@ -8316,7 +8645,7 @@ var base$1 = {
8316
8645
  };
8317
8646
  var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
8318
8647
  /** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
8319
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8648
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8320
8649
  kind: v3.z.literal("work"),
8321
8650
  laneKey: projectPipelineKeySchema,
8322
8651
  presentation: v3.z.object({
@@ -8328,23 +8657,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
8328
8657
  resourceResolverRef: projectPipelineRefSchema.optional(),
8329
8658
  outputSchemaRef: projectPipelineRefSchema.optional()
8330
8659
  })).strict(),
8331
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8660
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8332
8661
  kind: v3.z.literal("fork")
8333
8662
  })).strict(),
8334
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8663
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8335
8664
  kind: v3.z.literal("join"),
8336
8665
  join: v3.z.object({
8337
8666
  mode: v3.z.literal("all_selected"),
8338
8667
  accept: v3.z.literal("completed")
8339
8668
  }).strict()
8340
8669
  })).strict(),
8341
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8670
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8342
8671
  kind: v3.z.literal("router"),
8343
8672
  policyRef: projectPipelineRefSchema,
8344
8673
  outcomes: outcomes,
8345
8674
  unmatched: v3.z.literal("block")
8346
8675
  })).strict(),
8347
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8676
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8348
8677
  kind: v3.z.literal("human_gate"),
8349
8678
  laneKey: projectPipelineKeySchema,
8350
8679
  policyRef: projectPipelineRefSchema,
@@ -8352,12 +8681,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
8352
8681
  outcomes: outcomes,
8353
8682
  outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
8354
8683
  })).strict(),
8355
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8684
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8356
8685
  kind: v3.z.literal("external_wait"),
8357
8686
  laneKey: projectPipelineKeySchema,
8358
8687
  subscriptionRef: projectPipelineRefSchema
8359
8688
  })).strict(),
8360
- v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
8689
+ v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
8361
8690
  kind: v3.z.literal("terminal"),
8362
8691
  outcome: projectPipelineKeySchema,
8363
8692
  disposition: v3.z.enum([
@@ -9021,7 +9350,7 @@ function isProjectPipelineApplicable(definition, project) {
9021
9350
 
9022
9351
  // Invariants: definitions describe versioned topology and explicit execution authority.
9023
9352
  // Business meaning stays behind provider references; labels and icons never drive execution.
9024
- function _define_property$d(obj, key, value) {
9353
+ function _define_property$e(obj, key, value) {
9025
9354
  if (key in obj) {
9026
9355
  Object.defineProperty(obj, key, {
9027
9356
  value: value,
@@ -9034,7 +9363,7 @@ function _define_property$d(obj, key, value) {
9034
9363
  }
9035
9364
  return obj;
9036
9365
  }
9037
- function _object_spread$d(target) {
9366
+ function _object_spread$e(target) {
9038
9367
  for(var i = 1; i < arguments.length; i++){
9039
9368
  var source = arguments[i] != null ? arguments[i] : {};
9040
9369
  var ownKeys = Object.keys(source);
@@ -9044,12 +9373,12 @@ function _object_spread$d(target) {
9044
9373
  }));
9045
9374
  }
9046
9375
  ownKeys.forEach(function(key) {
9047
- _define_property$d(target, key, source[key]);
9376
+ _define_property$e(target, key, source[key]);
9048
9377
  });
9049
9378
  }
9050
9379
  return target;
9051
9380
  }
9052
- function ownKeys$9(object, enumerableOnly) {
9381
+ function ownKeys$a(object, enumerableOnly) {
9053
9382
  var keys = Object.keys(object);
9054
9383
  if (Object.getOwnPropertySymbols) {
9055
9384
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9057,12 +9386,12 @@ function ownKeys$9(object, enumerableOnly) {
9057
9386
  }
9058
9387
  return keys;
9059
9388
  }
9060
- function _object_spread_props$9(target, source) {
9389
+ function _object_spread_props$a(target, source) {
9061
9390
  source = source != null ? source : {};
9062
9391
  if (Object.getOwnPropertyDescriptors) {
9063
9392
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9064
9393
  } else {
9065
- ownKeys$9(Object(source)).forEach(function(key) {
9394
+ ownKeys$a(Object(source)).forEach(function(key) {
9066
9395
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9067
9396
  });
9068
9397
  }
@@ -9094,7 +9423,7 @@ var common = {
9094
9423
  };
9095
9424
  // A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
9096
9425
  var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
9097
- v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
9426
+ v3.z.object(_object_spread_props$a(_object_spread$e({}, common), {
9098
9427
  executionAuthority: v3.z.literal("provider"),
9099
9428
  providerRef: projectPipelineRefSchema,
9100
9429
  topology: v3.z.object({
@@ -9103,7 +9432,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
9103
9432
  }).strict(),
9104
9433
  actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
9105
9434
  })).strict(),
9106
- v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
9435
+ v3.z.object(_object_spread_props$a(_object_spread$e({}, common), {
9107
9436
  executionAuthority: v3.z.literal("platform"),
9108
9437
  topology: v3.z.object({
9109
9438
  source: v3.z.literal("definition")
@@ -9154,6 +9483,7 @@ var projectPipelineDefinitionSchema = projectPipelineDefinitionShapeSchema.super
9154
9483
  /** Admission controls for host-native LLM requests; provider-internal retries and currency are not hard quotas. */ var projectPipelineNativeModelBudgetSchema = v3.z.object({
9155
9484
  maxCalls: v3.z.number().int().min(1).max(1000000),
9156
9485
  maxTokens: v3.z.number().int().min(1).max(1000000000000),
9486
+ // Minimum hold; native admission reserves the larger current input estimate plus output ceiling.
9157
9487
  reservationTokens: v3.z.number().int().min(1).max(1000000000)
9158
9488
  }).strict().superRefine(function(value, context) {
9159
9489
  if (value.reservationTokens > value.maxTokens) context.addIssue({
@@ -9438,7 +9768,85 @@ var projectPipelineBindingSchema = v3.z.object({
9438
9768
  }
9439
9769
  });
9440
9770
 
9441
- function _define_property$c(obj, key, value) {
9771
+ function _object_without_properties$1(source, excluded) {
9772
+ if (source == null) return {};
9773
+ var target = _object_without_properties_loose$1(source, excluded);
9774
+ var key, i;
9775
+ if (Object.getOwnPropertySymbols) {
9776
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
9777
+ for(i = 0; i < sourceSymbolKeys.length; i++){
9778
+ key = sourceSymbolKeys[i];
9779
+ if (excluded.indexOf(key) >= 0) continue;
9780
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
9781
+ target[key] = source[key];
9782
+ }
9783
+ }
9784
+ return target;
9785
+ }
9786
+ function _object_without_properties_loose$1(source, excluded) {
9787
+ if (source == null) return {};
9788
+ var target = {};
9789
+ var sourceKeys = Object.keys(source);
9790
+ var key, i;
9791
+ for(i = 0; i < sourceKeys.length; i++){
9792
+ key = sourceKeys[i];
9793
+ if (excluded.indexOf(key) >= 0) continue;
9794
+ target[key] = source[key];
9795
+ }
9796
+ return target;
9797
+ }
9798
+ /** Catalog-only policy. The host resolves it before exposing or persisting a concrete configuration. */ var projectPipelineConfigurationDeclarationSchema = projectPipelineConfigurationSchema.innerType().extend({
9799
+ nativeModelBudgetPolicy: v3.z.object({
9800
+ /** Only maxTokens may inherit a host default; other defaults remain in binding.limits. */ maxTokensDefaultSource: v3.z.enum([
9801
+ "configuration",
9802
+ "host"
9803
+ ]),
9804
+ /** Independent ceilings for new configurations, unaffected by changes to host defaults. */ maximum: projectPipelineNativeModelBudgetSchema
9805
+ }).strict().optional()
9806
+ }).superRefine(function(_param, context) {
9807
+ var nativeModelBudgetPolicy = _param.nativeModelBudgetPolicy, configuration = _object_without_properties$1(_param, [
9808
+ "nativeModelBudgetPolicy"
9809
+ ]);
9810
+ var _configuration_binding_limits;
9811
+ var parsed = projectPipelineConfigurationSchema.safeParse(configuration);
9812
+ if (!parsed.success) {
9813
+ parsed.error.issues.forEach(function(issue) {
9814
+ return context.addIssue(issue);
9815
+ });
9816
+ return;
9817
+ }
9818
+ if (!nativeModelBudgetPolicy) return;
9819
+ var budget = (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget;
9820
+ if (!budget) {
9821
+ context.addIssue({
9822
+ code: "custom",
9823
+ message: "MODEL_BUDGET_REQUIRED",
9824
+ path: [
9825
+ "nativeModelBudgetPolicy"
9826
+ ]
9827
+ });
9828
+ return;
9829
+ }
9830
+ // A valid concrete fallback is required even when maxTokens normally inherits the host value.
9831
+ for(var _i = 0, _iter = [
9832
+ "maxCalls",
9833
+ "maxTokens",
9834
+ "reservationTokens"
9835
+ ]; _i < _iter.length; _i++){
9836
+ var key = _iter[_i];
9837
+ if (budget[key] > nativeModelBudgetPolicy.maximum[key]) context.addIssue({
9838
+ code: "custom",
9839
+ message: "MODEL_BUDGET_DEFAULT_EXCEEDS_MAXIMUM",
9840
+ path: [
9841
+ "nativeModelBudgetPolicy",
9842
+ "maximum",
9843
+ key
9844
+ ]
9845
+ });
9846
+ }
9847
+ });
9848
+
9849
+ function _define_property$d(obj, key, value) {
9442
9850
  if (key in obj) {
9443
9851
  Object.defineProperty(obj, key, {
9444
9852
  value: value,
@@ -9451,7 +9859,7 @@ function _define_property$c(obj, key, value) {
9451
9859
  }
9452
9860
  return obj;
9453
9861
  }
9454
- function _object_spread$c(target) {
9862
+ function _object_spread$d(target) {
9455
9863
  for(var i = 1; i < arguments.length; i++){
9456
9864
  var source = arguments[i] != null ? arguments[i] : {};
9457
9865
  var ownKeys = Object.keys(source);
@@ -9461,12 +9869,12 @@ function _object_spread$c(target) {
9461
9869
  }));
9462
9870
  }
9463
9871
  ownKeys.forEach(function(key) {
9464
- _define_property$c(target, key, source[key]);
9872
+ _define_property$d(target, key, source[key]);
9465
9873
  });
9466
9874
  }
9467
9875
  return target;
9468
9876
  }
9469
- function ownKeys$8(object, enumerableOnly) {
9877
+ function ownKeys$9(object, enumerableOnly) {
9470
9878
  var keys = Object.keys(object);
9471
9879
  if (Object.getOwnPropertySymbols) {
9472
9880
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9474,12 +9882,12 @@ function ownKeys$8(object, enumerableOnly) {
9474
9882
  }
9475
9883
  return keys;
9476
9884
  }
9477
- function _object_spread_props$8(target, source) {
9885
+ function _object_spread_props$9(target, source) {
9478
9886
  source = source != null ? source : {};
9479
9887
  if (Object.getOwnPropertyDescriptors) {
9480
9888
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9481
9889
  } else {
9482
- ownKeys$8(Object(source)).forEach(function(key) {
9890
+ ownKeys$9(Object(source)).forEach(function(key) {
9483
9891
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9484
9892
  });
9485
9893
  }
@@ -9495,13 +9903,13 @@ var definitionRef = v3.z.object({
9495
9903
  templateRef: projectPipelineRefSchema,
9496
9904
  digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
9497
9905
  }).strict();
9498
- var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9906
+ var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9499
9907
  definition: definitionRef,
9500
9908
  revision: v3.z.number().int().positive(),
9501
9909
  configuration: projectPipelineBindingSchema
9502
9910
  })).strict();
9503
9911
  var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
9504
- v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9912
+ v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9505
9913
  executionAuthority: v3.z.literal("provider"),
9506
9914
  providerRef: projectPipelineRefSchema,
9507
9915
  sourceKey: v3.z.string().min(1).max(500),
@@ -9512,7 +9920,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
9512
9920
  }).strict(),
9513
9921
  revision: v3.z.number().int().nonnegative()
9514
9922
  })).strict(),
9515
- v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9923
+ v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9516
9924
  executionAuthority: v3.z.literal("platform"),
9517
9925
  bindingId: v3.z.string().uuid(),
9518
9926
  sourceKey: v3.z.string().min(1).max(500),
@@ -9524,7 +9932,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
9524
9932
  revision: v3.z.number().int().nonnegative()
9525
9933
  })).strict()
9526
9934
  ]);
9527
- var projectPipelineRunSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
9935
+ var projectPipelineRunSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9528
9936
  instanceId: v3.z.string().uuid(),
9529
9937
  triggerKey: v3.z.string().min(1).max(500),
9530
9938
  definition: definitionRef,
@@ -9596,7 +10004,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
9596
10004
  inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
9597
10005
  generation: v3.z.number().int().positive()
9598
10006
  }).strict();
9599
- var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
10007
+ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9600
10008
  runId: v3.z.string().uuid(),
9601
10009
  sequence: v3.z.number().int().positive(),
9602
10010
  generation: v3.z.number().int().positive(),
@@ -9612,7 +10020,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spre
9612
10020
  subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
9613
10021
  supersedes: v3.z.string().uuid().nullable()
9614
10022
  })).strict();
9615
- var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
10023
+ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
9616
10024
  roundId: v3.z.string().uuid(),
9617
10025
  nodeKey: projectPipelineKeySchema,
9618
10026
  /** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
@@ -9624,7 +10032,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_obje
9624
10032
  revision: v3.z.number().int().nonnegative()
9625
10033
  })).strict();
9626
10034
 
9627
- function _define_property$b(obj, key, value) {
10035
+ function _define_property$c(obj, key, value) {
9628
10036
  if (key in obj) {
9629
10037
  Object.defineProperty(obj, key, {
9630
10038
  value: value,
@@ -9637,7 +10045,7 @@ function _define_property$b(obj, key, value) {
9637
10045
  }
9638
10046
  return obj;
9639
10047
  }
9640
- function _object_spread$b(target) {
10048
+ function _object_spread$c(target) {
9641
10049
  for(var i = 1; i < arguments.length; i++){
9642
10050
  var source = arguments[i] != null ? arguments[i] : {};
9643
10051
  var ownKeys = Object.keys(source);
@@ -9647,12 +10055,12 @@ function _object_spread$b(target) {
9647
10055
  }));
9648
10056
  }
9649
10057
  ownKeys.forEach(function(key) {
9650
- _define_property$b(target, key, source[key]);
10058
+ _define_property$c(target, key, source[key]);
9651
10059
  });
9652
10060
  }
9653
10061
  return target;
9654
10062
  }
9655
- function ownKeys$7(object, enumerableOnly) {
10063
+ function ownKeys$8(object, enumerableOnly) {
9656
10064
  var keys = Object.keys(object);
9657
10065
  if (Object.getOwnPropertySymbols) {
9658
10066
  var symbols = Object.getOwnPropertySymbols(object);
@@ -9660,12 +10068,12 @@ function ownKeys$7(object, enumerableOnly) {
9660
10068
  }
9661
10069
  return keys;
9662
10070
  }
9663
- function _object_spread_props$7(target, source) {
10071
+ function _object_spread_props$8(target, source) {
9664
10072
  source = source != null ? source : {};
9665
10073
  if (Object.getOwnPropertyDescriptors) {
9666
10074
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
9667
10075
  } else {
9668
- ownKeys$7(Object(source)).forEach(function(key) {
10076
+ ownKeys$8(Object(source)).forEach(function(key) {
9669
10077
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
9670
10078
  });
9671
10079
  }
@@ -9682,17 +10090,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
9682
10090
  ])
9683
10091
  }).strict();
9684
10092
  /** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
9685
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10093
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9686
10094
  kind: v3.z.literal("schema")
9687
10095
  })).strict(),
9688
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10096
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9689
10097
  kind: v3.z.literal("resource")
9690
10098
  })).strict(),
9691
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10099
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9692
10100
  kind: v3.z.literal("subject"),
9693
10101
  outputSchemaRef: projectPipelineRefSchema
9694
10102
  })).strict(),
9695
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10103
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9696
10104
  kind: v3.z.literal("operation"),
9697
10105
  effects: v3.z.enum([
9698
10106
  "read_only",
@@ -9711,32 +10119,32 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
9711
10119
  inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
9712
10120
  outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
9713
10121
  })).strict(),
9714
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10122
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9715
10123
  kind: v3.z.literal("completion")
9716
10124
  })).strict(),
9717
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10125
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9718
10126
  kind: v3.z.literal("policy"),
9719
10127
  outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
9720
10128
  })).strict(),
9721
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10129
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9722
10130
  kind: v3.z.literal("projection")
9723
10131
  })).strict(),
9724
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10132
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9725
10133
  kind: v3.z.literal("presentation")
9726
10134
  })).strict(),
9727
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10135
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9728
10136
  kind: v3.z.literal("action")
9729
10137
  })).strict(),
9730
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10138
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9731
10139
  kind: v3.z.literal("metric")
9732
10140
  })).strict(),
9733
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10141
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9734
10142
  kind: v3.z.literal("dimension")
9735
10143
  })).strict(),
9736
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10144
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9737
10145
  kind: v3.z.literal("trigger")
9738
10146
  })).strict(),
9739
- v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
10147
+ v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
9740
10148
  kind: v3.z.literal("subscription"),
9741
10149
  outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
9742
10150
  })).strict()
@@ -10503,7 +10911,7 @@ var tombstone = v3.z.object({
10503
10911
  ]);
10504
10912
  });
10505
10913
 
10506
- function _define_property$a(obj, key, value) {
10914
+ function _define_property$b(obj, key, value) {
10507
10915
  if (key in obj) {
10508
10916
  Object.defineProperty(obj, key, {
10509
10917
  value: value,
@@ -10516,7 +10924,7 @@ function _define_property$a(obj, key, value) {
10516
10924
  }
10517
10925
  return obj;
10518
10926
  }
10519
- function _object_spread$a(target) {
10927
+ function _object_spread$b(target) {
10520
10928
  for(var i = 1; i < arguments.length; i++){
10521
10929
  var source = arguments[i] != null ? arguments[i] : {};
10522
10930
  var ownKeys = Object.keys(source);
@@ -10526,12 +10934,12 @@ function _object_spread$a(target) {
10526
10934
  }));
10527
10935
  }
10528
10936
  ownKeys.forEach(function(key) {
10529
- _define_property$a(target, key, source[key]);
10937
+ _define_property$b(target, key, source[key]);
10530
10938
  });
10531
10939
  }
10532
10940
  return target;
10533
10941
  }
10534
- function ownKeys$6(object, enumerableOnly) {
10942
+ function ownKeys$7(object, enumerableOnly) {
10535
10943
  var keys = Object.keys(object);
10536
10944
  if (Object.getOwnPropertySymbols) {
10537
10945
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10539,12 +10947,12 @@ function ownKeys$6(object, enumerableOnly) {
10539
10947
  }
10540
10948
  return keys;
10541
10949
  }
10542
- function _object_spread_props$6(target, source) {
10950
+ function _object_spread_props$7(target, source) {
10543
10951
  source = source != null ? source : {};
10544
10952
  if (Object.getOwnPropertyDescriptors) {
10545
10953
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10546
10954
  } else {
10547
- ownKeys$6(Object(source)).forEach(function(key) {
10955
+ ownKeys$7(Object(source)).forEach(function(key) {
10548
10956
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10549
10957
  });
10550
10958
  }
@@ -10582,7 +10990,7 @@ function executionRuntimeTargetsEqual(left, right) {
10582
10990
  return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
10583
10991
  }
10584
10992
  /** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
10585
- v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
10993
+ v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
10586
10994
  source: v3.z.literal("unavailable"),
10587
10995
  subject: subject,
10588
10996
  state: v3.z.literal("unknown"),
@@ -10592,7 +11000,7 @@ function executionRuntimeTargetsEqual(left, right) {
10592
11000
  "unsupported"
10593
11001
  ])
10594
11002
  })).strict(),
10595
- v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
11003
+ v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
10596
11004
  source: v3.z.literal("platform"),
10597
11005
  subject: subject,
10598
11006
  scope: v3.z.literal("owned_subtree"),
@@ -10614,7 +11022,7 @@ function executionRuntimeTargetsEqual(left, right) {
10614
11022
  executionId: v3.z.string().uuid(),
10615
11023
  threadId: v3.z.string().min(1)
10616
11024
  })).strict(),
10617
- v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
11025
+ v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
10618
11026
  source: v3.z.literal("provider"),
10619
11027
  subject: v3.z.object({
10620
11028
  kind: v3.z.literal("invocation"),
@@ -10632,7 +11040,7 @@ function executionRuntimeTargetsEqual(left, right) {
10632
11040
  receiptKey: v3.z.string().min(1).max(500),
10633
11041
  target: executionRuntimeTargetSchema.optional()
10634
11042
  })).strict(),
10635
- v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
11043
+ v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
10636
11044
  source: v3.z.literal("native_graph"),
10637
11045
  subject: v3.z.object({
10638
11046
  kind: v3.z.literal("invocation"),
@@ -10643,7 +11051,7 @@ function executionRuntimeTargetsEqual(left, right) {
10643
11051
  outcome: v3.z.literal("cancelled"),
10644
11052
  executionId: v3.z.string().min(1)
10645
11053
  })).strict(),
10646
- v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
11054
+ v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
10647
11055
  source: v3.z.literal("host_admission"),
10648
11056
  subject: v3.z.object({
10649
11057
  kind: v3.z.literal("invocation"),
@@ -10670,7 +11078,7 @@ function unknownExecutionControl(subject) {
10670
11078
  };
10671
11079
  }
10672
11080
 
10673
- function _define_property$9(obj, key, value) {
11081
+ function _define_property$a(obj, key, value) {
10674
11082
  if (key in obj) {
10675
11083
  Object.defineProperty(obj, key, {
10676
11084
  value: value,
@@ -10683,7 +11091,7 @@ function _define_property$9(obj, key, value) {
10683
11091
  }
10684
11092
  return obj;
10685
11093
  }
10686
- function _object_spread$9(target) {
11094
+ function _object_spread$a(target) {
10687
11095
  for(var i = 1; i < arguments.length; i++){
10688
11096
  var source = arguments[i] != null ? arguments[i] : {};
10689
11097
  var ownKeys = Object.keys(source);
@@ -10693,12 +11101,12 @@ function _object_spread$9(target) {
10693
11101
  }));
10694
11102
  }
10695
11103
  ownKeys.forEach(function(key) {
10696
- _define_property$9(target, key, source[key]);
11104
+ _define_property$a(target, key, source[key]);
10697
11105
  });
10698
11106
  }
10699
11107
  return target;
10700
11108
  }
10701
- function ownKeys$5(object, enumerableOnly) {
11109
+ function ownKeys$6(object, enumerableOnly) {
10702
11110
  var keys = Object.keys(object);
10703
11111
  if (Object.getOwnPropertySymbols) {
10704
11112
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10706,12 +11114,12 @@ function ownKeys$5(object, enumerableOnly) {
10706
11114
  }
10707
11115
  return keys;
10708
11116
  }
10709
- function _object_spread_props$5(target, source) {
11117
+ function _object_spread_props$6(target, source) {
10710
11118
  source = source != null ? source : {};
10711
11119
  if (Object.getOwnPropertyDescriptors) {
10712
11120
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10713
11121
  } else {
10714
- ownKeys$5(Object(source)).forEach(function(key) {
11122
+ ownKeys$6(Object(source)).forEach(function(key) {
10715
11123
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10716
11124
  });
10717
11125
  }
@@ -10778,20 +11186,20 @@ var receipt = {
10778
11186
  ]).optional()
10779
11187
  };
10780
11188
  var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
10781
- v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11189
+ v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10782
11190
  status: v3.z.literal("pending")
10783
11191
  })).strict(),
10784
- v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11192
+ v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10785
11193
  status: v3.z.literal("succeeded"),
10786
11194
  outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
10787
11195
  return Object.keys(value).length <= 100;
10788
11196
  }, "Too many output ports")
10789
11197
  })).strict(),
10790
- v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11198
+ v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10791
11199
  status: v3.z.literal("failed"),
10792
11200
  code: projectPipelineKeySchema
10793
11201
  })).strict(),
10794
- v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
11202
+ v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
10795
11203
  status: v3.z.literal("cancelled")
10796
11204
  })).strict(),
10797
11205
  v3.z.object({
@@ -10873,7 +11281,7 @@ function _array_like_to_array$f(arr, len) {
10873
11281
  function _array_without_holes$7(arr) {
10874
11282
  if (Array.isArray(arr)) return _array_like_to_array$f(arr);
10875
11283
  }
10876
- function _define_property$8(obj, key, value) {
11284
+ function _define_property$9(obj, key, value) {
10877
11285
  if (key in obj) {
10878
11286
  Object.defineProperty(obj, key, {
10879
11287
  value: value,
@@ -10892,7 +11300,7 @@ function _iterable_to_array$8(iter) {
10892
11300
  function _non_iterable_spread$7() {
10893
11301
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10894
11302
  }
10895
- function _object_spread$8(target) {
11303
+ function _object_spread$9(target) {
10896
11304
  for(var i = 1; i < arguments.length; i++){
10897
11305
  var source = arguments[i] != null ? arguments[i] : {};
10898
11306
  var ownKeys = Object.keys(source);
@@ -10902,12 +11310,12 @@ function _object_spread$8(target) {
10902
11310
  }));
10903
11311
  }
10904
11312
  ownKeys.forEach(function(key) {
10905
- _define_property$8(target, key, source[key]);
11313
+ _define_property$9(target, key, source[key]);
10906
11314
  });
10907
11315
  }
10908
11316
  return target;
10909
11317
  }
10910
- function ownKeys$4(object, enumerableOnly) {
11318
+ function ownKeys$5(object, enumerableOnly) {
10911
11319
  var keys = Object.keys(object);
10912
11320
  if (Object.getOwnPropertySymbols) {
10913
11321
  var symbols = Object.getOwnPropertySymbols(object);
@@ -10915,12 +11323,12 @@ function ownKeys$4(object, enumerableOnly) {
10915
11323
  }
10916
11324
  return keys;
10917
11325
  }
10918
- function _object_spread_props$4(target, source) {
11326
+ function _object_spread_props$5(target, source) {
10919
11327
  source = source != null ? source : {};
10920
11328
  if (Object.getOwnPropertyDescriptors) {
10921
11329
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
10922
11330
  } else {
10923
- ownKeys$4(Object(source)).forEach(function(key) {
11331
+ ownKeys$5(Object(source)).forEach(function(key) {
10924
11332
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
10925
11333
  });
10926
11334
  }
@@ -11110,7 +11518,7 @@ function pipelineExecutorStatistics(facts) {
11110
11518
  }
11111
11519
  return _to_consumable_array$7(groups.values()).map(function(param) {
11112
11520
  var identity = param.identity, _$facts = param.facts;
11113
- return _object_spread_props$4(_object_spread$8({}, identity), {
11521
+ return _object_spread_props$5(_object_spread$9({}, identity), {
11114
11522
  attempts: pipelineAttemptCounts(_$facts),
11115
11523
  timing: pipelineExecutionTiming(_$facts)
11116
11524
  });
@@ -11125,7 +11533,7 @@ function _array_like_to_array$e(arr, len) {
11125
11533
  function _array_without_holes$6(arr) {
11126
11534
  if (Array.isArray(arr)) return _array_like_to_array$e(arr);
11127
11535
  }
11128
- function _define_property$7(obj, key, value) {
11536
+ function _define_property$8(obj, key, value) {
11129
11537
  if (key in obj) {
11130
11538
  Object.defineProperty(obj, key, {
11131
11539
  value: value,
@@ -11144,7 +11552,7 @@ function _iterable_to_array$7(iter) {
11144
11552
  function _non_iterable_spread$6() {
11145
11553
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11146
11554
  }
11147
- function _object_spread$7(target) {
11555
+ function _object_spread$8(target) {
11148
11556
  for(var i = 1; i < arguments.length; i++){
11149
11557
  var source = arguments[i] != null ? arguments[i] : {};
11150
11558
  var ownKeys = Object.keys(source);
@@ -11154,12 +11562,12 @@ function _object_spread$7(target) {
11154
11562
  }));
11155
11563
  }
11156
11564
  ownKeys.forEach(function(key) {
11157
- _define_property$7(target, key, source[key]);
11565
+ _define_property$8(target, key, source[key]);
11158
11566
  });
11159
11567
  }
11160
11568
  return target;
11161
11569
  }
11162
- function ownKeys$3(object, enumerableOnly) {
11570
+ function ownKeys$4(object, enumerableOnly) {
11163
11571
  var keys = Object.keys(object);
11164
11572
  if (Object.getOwnPropertySymbols) {
11165
11573
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11167,12 +11575,12 @@ function ownKeys$3(object, enumerableOnly) {
11167
11575
  }
11168
11576
  return keys;
11169
11577
  }
11170
- function _object_spread_props$3(target, source) {
11578
+ function _object_spread_props$4(target, source) {
11171
11579
  source = source != null ? source : {};
11172
11580
  if (Object.getOwnPropertyDescriptors) {
11173
11581
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11174
11582
  } else {
11175
- ownKeys$3(Object(source)).forEach(function(key) {
11583
+ ownKeys$4(Object(source)).forEach(function(key) {
11176
11584
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11177
11585
  });
11178
11586
  }
@@ -11309,13 +11717,13 @@ function pipelineModelUsageStatistics(facts, coverage) {
11309
11717
  }
11310
11718
  }
11311
11719
  }
11312
- return _object_spread_props$3(_object_spread$7({
11720
+ return _object_spread_props$4(_object_spread$8({
11313
11721
  scope: "linked_native_llm_calls"
11314
11722
  }, coverage, totals(calls)), {
11315
11723
  unpricedCalls: unpricedCalls,
11316
11724
  chargedPoints: chargedPoints,
11317
11725
  byModel: _to_consumable_array$6(models.values()).map(function(group) {
11318
- return _object_spread$7({
11726
+ return _object_spread$8({
11319
11727
  provider: group[0].provider,
11320
11728
  model: group[0].model
11321
11729
  }, totals(group));
@@ -11535,7 +11943,7 @@ function _array_with_holes$9(arr) {
11535
11943
  function _array_without_holes$4(arr) {
11536
11944
  if (Array.isArray(arr)) return _array_like_to_array$c(arr);
11537
11945
  }
11538
- function _define_property$6(obj, key, value) {
11946
+ function _define_property$7(obj, key, value) {
11539
11947
  if (key in obj) {
11540
11948
  Object.defineProperty(obj, key, {
11541
11949
  value: value,
@@ -11581,7 +11989,7 @@ function _non_iterable_rest$9() {
11581
11989
  function _non_iterable_spread$4() {
11582
11990
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11583
11991
  }
11584
- function _object_spread$6(target) {
11992
+ function _object_spread$7(target) {
11585
11993
  for(var i = 1; i < arguments.length; i++){
11586
11994
  var source = arguments[i] != null ? arguments[i] : {};
11587
11995
  var ownKeys = Object.keys(source);
@@ -11591,12 +11999,12 @@ function _object_spread$6(target) {
11591
11999
  }));
11592
12000
  }
11593
12001
  ownKeys.forEach(function(key) {
11594
- _define_property$6(target, key, source[key]);
12002
+ _define_property$7(target, key, source[key]);
11595
12003
  });
11596
12004
  }
11597
12005
  return target;
11598
12006
  }
11599
- function ownKeys$2(object, enumerableOnly) {
12007
+ function ownKeys$3(object, enumerableOnly) {
11600
12008
  var keys = Object.keys(object);
11601
12009
  if (Object.getOwnPropertySymbols) {
11602
12010
  var symbols = Object.getOwnPropertySymbols(object);
@@ -11604,12 +12012,12 @@ function ownKeys$2(object, enumerableOnly) {
11604
12012
  }
11605
12013
  return keys;
11606
12014
  }
11607
- function _object_spread_props$2(target, source) {
12015
+ function _object_spread_props$3(target, source) {
11608
12016
  source = source != null ? source : {};
11609
12017
  if (Object.getOwnPropertyDescriptors) {
11610
12018
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
11611
12019
  } else {
11612
- ownKeys$2(Object(source)).forEach(function(key) {
12020
+ ownKeys$3(Object(source)).forEach(function(key) {
11613
12021
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
11614
12022
  });
11615
12023
  }
@@ -11643,30 +12051,30 @@ var option = v3.z.object({
11643
12051
  label: label$1
11644
12052
  }).strict();
11645
12053
  var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
11646
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12054
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11647
12055
  type: v3.z.literal("boolean")
11648
12056
  })).strict(),
11649
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12057
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11650
12058
  type: v3.z.literal("text"),
11651
12059
  maxLength: v3.z.number().int().min(1).max(4000),
11652
12060
  minLength: v3.z.number().int().min(0).max(4000)
11653
12061
  })).strict(),
11654
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12062
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11655
12063
  type: v3.z.literal("number"),
11656
12064
  min: v3.z.number().finite(),
11657
12065
  max: v3.z.number().finite(),
11658
12066
  integer: v3.z.boolean()
11659
12067
  })).strict(),
11660
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12068
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11661
12069
  type: v3.z.literal("choice"),
11662
12070
  options: v3.z.array(option).min(1).max(100)
11663
12071
  })).strict(),
11664
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12072
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11665
12073
  type: v3.z.literal("multi_choice"),
11666
12074
  options: v3.z.array(option).min(1).max(100),
11667
12075
  minItems: v3.z.number().int().min(0).max(100).default(0)
11668
12076
  })).strict(),
11669
- v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
12077
+ v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
11670
12078
  type: v3.z.literal("string_list"),
11671
12079
  maxItems: v3.z.number().int().min(1).max(100),
11672
12080
  itemMaxLength: v3.z.number().int().min(1).max(500)
@@ -11869,13 +12277,13 @@ function parameterSchema(field) {
11869
12277
  return item.key;
11870
12278
  }))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
11871
12279
  var _configuration_binding_executorBindings2;
11872
- var binding = _object_spread_props$2(_object_spread$6({}, configuration.binding), {
11873
- parameters: _object_spread$6({}, configuration.binding.parameters),
12280
+ var binding = _object_spread_props$3(_object_spread$7({}, configuration.binding), {
12281
+ parameters: _object_spread$7({}, configuration.binding.parameters),
11874
12282
  executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
11875
12283
  var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
11876
12284
  return [
11877
12285
  key,
11878
- _object_spread$6({}, executor)
12286
+ _object_spread$7({}, executor)
11879
12287
  ];
11880
12288
  }))
11881
12289
  });
@@ -11891,7 +12299,7 @@ function parameterSchema(field) {
11891
12299
  var key = _iter[_i];
11892
12300
  if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
11893
12301
  }
11894
- binding.limits = _object_spread_props$2(_object_spread$6({}, binding.limits), {
12302
+ binding.limits = _object_spread_props$3(_object_spread$7({}, binding.limits), {
11895
12303
  nativeModelBudget: budget
11896
12304
  });
11897
12305
  } else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
@@ -11963,14 +12371,14 @@ function parameterSchema(field) {
11963
12371
  }
11964
12372
  }
11965
12373
  }
11966
- return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$6({}, configuration), {
12374
+ return projectPipelineConfigurationSchema.parse(_object_spread_props$3(_object_spread$7({}, configuration), {
11967
12375
  binding: binding
11968
12376
  }));
11969
12377
  }
11970
12378
  /** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
11971
12379
  var _configuration_binding_limits;
11972
12380
  var _form_runtimeSlots;
11973
- return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$6({}, form.nativeModelBudget ? {
12381
+ return configureProjectPipelineFromForm(configuration, form, _object_spread_props$3(_object_spread$7({}, form.nativeModelBudget ? {
11974
12382
  nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
11975
12383
  } : {}), {
11976
12384
  assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
@@ -12252,7 +12660,7 @@ function _array_with_holes$8(arr) {
12252
12660
  function _array_without_holes$2(arr) {
12253
12661
  if (Array.isArray(arr)) return _array_like_to_array$a(arr);
12254
12662
  }
12255
- function _define_property$5(obj, key, value) {
12663
+ function _define_property$6(obj, key, value) {
12256
12664
  if (key in obj) {
12257
12665
  Object.defineProperty(obj, key, {
12258
12666
  value: value,
@@ -12298,7 +12706,7 @@ function _non_iterable_rest$8() {
12298
12706
  function _non_iterable_spread$2() {
12299
12707
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12300
12708
  }
12301
- function _object_spread$5(target) {
12709
+ function _object_spread$6(target) {
12302
12710
  for(var i = 1; i < arguments.length; i++){
12303
12711
  var source = arguments[i] != null ? arguments[i] : {};
12304
12712
  var ownKeys = Object.keys(source);
@@ -12308,12 +12716,12 @@ function _object_spread$5(target) {
12308
12716
  }));
12309
12717
  }
12310
12718
  ownKeys.forEach(function(key) {
12311
- _define_property$5(target, key, source[key]);
12719
+ _define_property$6(target, key, source[key]);
12312
12720
  });
12313
12721
  }
12314
12722
  return target;
12315
12723
  }
12316
- function ownKeys$1(object, enumerableOnly) {
12724
+ function ownKeys$2(object, enumerableOnly) {
12317
12725
  var keys = Object.keys(object);
12318
12726
  if (Object.getOwnPropertySymbols) {
12319
12727
  var symbols = Object.getOwnPropertySymbols(object);
@@ -12321,12 +12729,12 @@ function ownKeys$1(object, enumerableOnly) {
12321
12729
  }
12322
12730
  return keys;
12323
12731
  }
12324
- function _object_spread_props$1(target, source) {
12732
+ function _object_spread_props$2(target, source) {
12325
12733
  source = source != null ? source : {};
12326
12734
  if (Object.getOwnPropertyDescriptors) {
12327
12735
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
12328
12736
  } else {
12329
- ownKeys$1(Object(source)).forEach(function(key) {
12737
+ ownKeys$2(Object(source)).forEach(function(key) {
12330
12738
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
12331
12739
  });
12332
12740
  }
@@ -12431,7 +12839,7 @@ function unionDuration(ranges) {
12431
12839
  try {
12432
12840
  for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
12433
12841
  var value = _step.value;
12434
- intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
12842
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
12435
12843
  end: lastAt,
12436
12844
  ongoing: false,
12437
12845
  censored: true
@@ -12484,7 +12892,7 @@ function unionDuration(ranges) {
12484
12892
  for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
12485
12893
  var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
12486
12894
  if (!ready.has(id)) {
12487
- intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
12895
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
12488
12896
  end: at,
12489
12897
  ongoing: false
12490
12898
  }));
@@ -12552,13 +12960,13 @@ function unionDuration(ranges) {
12552
12960
  var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
12553
12961
  // Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
12554
12962
  if (currentWaiting.has(id2)) {
12555
- intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
12963
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
12556
12964
  end: now,
12557
12965
  ongoing: true
12558
12966
  }));
12559
12967
  tracked.add(id2);
12560
12968
  } else {
12561
- intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
12969
+ intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
12562
12970
  end: lastAt,
12563
12971
  ongoing: false,
12564
12972
  censored: true
@@ -12603,7 +13011,7 @@ function unionDuration(ranges) {
12603
13011
  var selected = intervals.filter(function(interval) {
12604
13012
  return interval.start < to && interval.end >= from && interval.end >= interval.start;
12605
13013
  }).map(function(interval) {
12606
- return _object_spread_props$1(_object_spread$5({}, interval), {
13014
+ return _object_spread_props$2(_object_spread$6({}, interval), {
12607
13015
  start: Math.max(from, interval.start),
12608
13016
  end: Math.min(to, interval.end)
12609
13017
  });
@@ -12649,7 +13057,7 @@ function unionDuration(ranges) {
12649
13057
  };
12650
13058
  }
12651
13059
 
12652
- function _define_property$4(obj, key, value) {
13060
+ function _define_property$5(obj, key, value) {
12653
13061
  if (key in obj) {
12654
13062
  Object.defineProperty(obj, key, {
12655
13063
  value: value,
@@ -12662,7 +13070,7 @@ function _define_property$4(obj, key, value) {
12662
13070
  }
12663
13071
  return obj;
12664
13072
  }
12665
- function _object_spread$4(target) {
13073
+ function _object_spread$5(target) {
12666
13074
  for(var i = 1; i < arguments.length; i++){
12667
13075
  var source = arguments[i] != null ? arguments[i] : {};
12668
13076
  var ownKeys = Object.keys(source);
@@ -12672,7 +13080,7 @@ function _object_spread$4(target) {
12672
13080
  }));
12673
13081
  }
12674
13082
  ownKeys.forEach(function(key) {
12675
- _define_property$4(target, key, source[key]);
13083
+ _define_property$5(target, key, source[key]);
12676
13084
  });
12677
13085
  }
12678
13086
  return target;
@@ -12812,7 +13220,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
12812
13220
  }
12813
13221
  /** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
12814
13222
  var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
12815
- return _object_spread$4({
13223
+ return _object_spread$5({
12816
13224
  projectId: projectId
12817
13225
  }, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
12818
13226
  }
@@ -13109,9 +13517,83 @@ var projectPipelineNativeSourceSchema = projectPipelineNativeDispatchSchema.exte
13109
13517
  callKey: projectPipelineKeySchema
13110
13518
  });
13111
13519
 
13520
+ function _define_property$4(obj, key, value) {
13521
+ if (key in obj) {
13522
+ Object.defineProperty(obj, key, {
13523
+ value: value,
13524
+ enumerable: true,
13525
+ configurable: true,
13526
+ writable: true
13527
+ });
13528
+ } else {
13529
+ obj[key] = value;
13530
+ }
13531
+ return obj;
13532
+ }
13533
+ function _object_spread$4(target) {
13534
+ for(var i = 1; i < arguments.length; i++){
13535
+ var source = arguments[i] != null ? arguments[i] : {};
13536
+ var ownKeys = Object.keys(source);
13537
+ if (typeof Object.getOwnPropertySymbols === "function") {
13538
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
13539
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
13540
+ }));
13541
+ }
13542
+ ownKeys.forEach(function(key) {
13543
+ _define_property$4(target, key, source[key]);
13544
+ });
13545
+ }
13546
+ return target;
13547
+ }
13548
+ function ownKeys$1(object, enumerableOnly) {
13549
+ var keys = Object.keys(object);
13550
+ if (Object.getOwnPropertySymbols) {
13551
+ var symbols = Object.getOwnPropertySymbols(object);
13552
+ keys.push.apply(keys, symbols);
13553
+ }
13554
+ return keys;
13555
+ }
13556
+ function _object_spread_props$1(target, source) {
13557
+ source = source != null ? source : {};
13558
+ if (Object.getOwnPropertyDescriptors) {
13559
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
13560
+ } else {
13561
+ ownKeys$1(Object(source)).forEach(function(key) {
13562
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
13563
+ });
13564
+ }
13565
+ return target;
13566
+ }
13567
+ function _object_without_properties(source, excluded) {
13568
+ if (source == null) return {};
13569
+ var target = _object_without_properties_loose(source, excluded);
13570
+ var key, i;
13571
+ if (Object.getOwnPropertySymbols) {
13572
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
13573
+ for(i = 0; i < sourceSymbolKeys.length; i++){
13574
+ key = sourceSymbolKeys[i];
13575
+ if (excluded.indexOf(key) >= 0) continue;
13576
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
13577
+ target[key] = source[key];
13578
+ }
13579
+ }
13580
+ return target;
13581
+ }
13582
+ function _object_without_properties_loose(source, excluded) {
13583
+ if (source == null) return {};
13584
+ var target = {};
13585
+ var sourceKeys = Object.keys(source);
13586
+ var key, i;
13587
+ for(i = 0; i < sourceKeys.length; i++){
13588
+ key = sourceKeys[i];
13589
+ if (excluded.indexOf(key) >= 0) continue;
13590
+ target[key] = source[key];
13591
+ }
13592
+ return target;
13593
+ }
13112
13594
  var projectPipelineContributionSchema = v3.z.object({
13113
13595
  key: projectPipelineKeySchema,
13114
- configurations: v3.z.array(projectPipelineConfigurationSchema).max(100),
13596
+ configurations: v3.z.array(projectPipelineConfigurationDeclarationSchema).max(100),
13115
13597
  descriptors: v3.z.array(projectPipelineExtensionDescriptorSchema).max(1000),
13116
13598
  forms: v3.z.array(projectPipelineConfigurationFormSchema).max(100).optional()
13117
13599
  }).strict().superRefine(function(value, context) {
@@ -13141,7 +13623,14 @@ var projectPipelineContributionSchema = v3.z.object({
13141
13623
  });
13142
13624
  try {
13143
13625
  if (!configuration) throw new Error("CONFIGURATION_MISSING");
13144
- validateProjectPipelineConfigurationForm(configuration, form);
13626
+ var nativeModelBudgetPolicy = configuration.nativeModelBudgetPolicy, concrete = _object_without_properties(configuration, [
13627
+ "nativeModelBudgetPolicy"
13628
+ ]);
13629
+ // A policy owns the ceilings; the form receives them only after catalog resolution.
13630
+ if (nativeModelBudgetPolicy && form.nativeModelBudget) throw new Error("DUPLICATE_MODEL_BUDGET_MAXIMUM");
13631
+ validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$1(_object_spread$4({}, form), {
13632
+ nativeModelBudget: nativeModelBudgetPolicy.maximum
13633
+ }) : form);
13145
13634
  } catch (e) {
13146
13635
  context.addIssue({
13147
13636
  code: v3.z.ZodIssueCode.custom,
@@ -15897,150 +16386,6 @@ var mcpTaskAcknowledgementSchema = zod.z.object({
15897
16386
  resultType: zod.z.literal("complete")
15898
16387
  }).passthrough();
15899
16388
 
15900
- // Application types are independent of delivery channels and external account identities.
15901
- var notificationClientSchema = v3.z.enum([
15902
- "web",
15903
- "desktop"
15904
- ]);
15905
- var announcementActionSchema = v3.z.object({
15906
- type: v3.z.literal("link"),
15907
- label: v3.z.string().trim().min(1).max(80),
15908
- url: v3.z.string().url().max(2048).refine(function(url) {
15909
- return /^https:\/\//i.test(url);
15910
- })
15911
- }).strict();
15912
- var announcementContentSchema = v3.z.object({
15913
- title: v3.z.string().trim().min(1).max(160),
15914
- body: v3.z.string().trim().min(1).max(20000),
15915
- category: v3.z.enum([
15916
- "general",
15917
- "maintenance",
15918
- "model_retirement"
15919
- ]).default("general"),
15920
- severity: v3.z.enum([
15921
- "info",
15922
- "important"
15923
- ]).default("info"),
15924
- clients: v3.z.array(notificationClientSchema).min(1).max(2).refine(function(items) {
15925
- return new Set(items).size === items.length;
15926
- }),
15927
- startsAt: v3.z.string().datetime({
15928
- offset: true
15929
- }),
15930
- expiresAt: v3.z.string().datetime({
15931
- offset: true
15932
- }).nullable().default(null),
15933
- action: announcementActionSchema.nullable().default(null)
15934
- }).strict();
15935
- var createAnnouncementSchema = announcementContentSchema.refine(function(input) {
15936
- return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
15937
- }, {
15938
- path: [
15939
- "expiresAt"
15940
- ],
15941
- message: "Expiry must follow start"
15942
- });
15943
- var updateAnnouncementSchema = announcementContentSchema.extend({
15944
- revision: v3.z.number().int().positive()
15945
- }).refine(function(input) {
15946
- return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
15947
- }, {
15948
- path: [
15949
- "expiresAt"
15950
- ]
15951
- });
15952
- var announcementRevisionSchema = v3.z.object({
15953
- revision: v3.z.number().int().positive()
15954
- }).strict();
15955
- var announcementSchema = announcementContentSchema.extend({
15956
- id: v3.z.string().uuid(),
15957
- status: v3.z.enum([
15958
- "draft",
15959
- "published",
15960
- "withdrawn"
15961
- ]),
15962
- revision: v3.z.number().int().positive(),
15963
- createdAt: v3.z.string().datetime({
15964
- offset: true
15965
- }),
15966
- dismissedAt: v3.z.string().datetime({
15967
- offset: true
15968
- }).nullable().default(null)
15969
- });
15970
- var notificationSourceSchema = v3.z.object({
15971
- type: v3.z.literal("scheduled_task"),
15972
- taskId: v3.z.string().uuid(),
15973
- executionId: v3.z.string().uuid(),
15974
- assistantId: v3.z.string().uuid(),
15975
- conversationId: v3.z.string().uuid()
15976
- }).strict();
15977
- var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
15978
- threadId: v3.z.string().uuid().optional()
15979
- });
15980
- var openConversationActionSchema = v3.z.object({
15981
- type: v3.z.literal("open_conversation"),
15982
- assistantId: v3.z.string().uuid(),
15983
- conversationId: v3.z.string().uuid(),
15984
- threadId: v3.z.string().uuid().nullable()
15985
- }).strict();
15986
- var userNotificationSchema = v3.z.object({
15987
- id: v3.z.string().uuid(),
15988
- kind: v3.z.literal("agent.completed"),
15989
- source: notificationSourceSchema,
15990
- createdAt: v3.z.string().datetime({
15991
- offset: true
15992
- }),
15993
- readAt: v3.z.string().datetime({
15994
- offset: true
15995
- }).nullable(),
15996
- action: openConversationActionSchema
15997
- }).strict();
15998
- var notificationSnapshotSchema = v3.z.object({
15999
- supported: v3.z.literal(true),
16000
- version: v3.z.string(),
16001
- announcements: v3.z.array(announcementSchema),
16002
- notifications: v3.z.array(userNotificationSchema),
16003
- hasMoreAnnouncements: v3.z.boolean(),
16004
- hasMoreNotifications: v3.z.boolean()
16005
- }).strict();
16006
- var notificationChangeSchema = v3.z.object({
16007
- schemaVersion: v3.z.literal(1),
16008
- type: v3.z.literal("sync.required"),
16009
- eventId: v3.z.string().uuid()
16010
- }).strict();
16011
- var notificationOutboxPayloadSchema = v3.z.discriminatedUnion("type", [
16012
- v3.z.object({
16013
- type: v3.z.literal("changed")
16014
- }).strict(),
16015
- v3.z.object({
16016
- type: v3.z.literal("announcement.scheduled"),
16017
- announcementId: v3.z.string().uuid(),
16018
- revision: v3.z.number().int().positive(),
16019
- phase: v3.z.enum([
16020
- "start",
16021
- "expiry"
16022
- ])
16023
- }).strict(),
16024
- v3.z.object({
16025
- type: v3.z.literal("agent.completed"),
16026
- source: scheduledNotificationOriginSchema
16027
- }).strict()
16028
- ]);
16029
- // The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
16030
- // object outputs optional. These boundaries validate every required field before narrowing.
16031
- function parseAnnouncement(value) {
16032
- return announcementSchema.parse(value);
16033
- }
16034
- function parseOpenConversationAction(value) {
16035
- return openConversationActionSchema.parse(value);
16036
- }
16037
- function parseUserNotification(value) {
16038
- return userNotificationSchema.parse(value);
16039
- }
16040
- function parseNotificationSnapshot(value) {
16041
- return notificationSnapshotSchema.parse(value);
16042
- }
16043
-
16044
16389
  var BUSINESS_AREA_ACCESS_ROLES = [
16045
16390
  "consumer",
16046
16391
  "publisher",
@@ -16052,7 +16397,7 @@ function businessAreaRoleAllows(role, action) {
16052
16397
 
16053
16398
  /** Opens a discovered resource through its native authorization adapter in the current Workbench scope. */ var WORKBENCH_RESOURCE_OPEN_COMMAND = "workbench.resource.open";
16054
16399
 
16055
- /** Public presentation metadata only. Renderers retain their own sandbox and URL policies. */ var iconDefinitionSchema = v3.z.object({
16400
+ var iconShape = {
16056
16401
  type: v3.z.enum([
16057
16402
  "image",
16058
16403
  "svg",
@@ -16065,6 +16410,16 @@ function businessAreaRoleAllows(role, action) {
16065
16410
  size: v3.z.number().finite().positive().optional(),
16066
16411
  alt: v3.z.string().optional(),
16067
16412
  style: v3.z.record(v3.z.string()).optional()
16413
+ };
16414
+ /** Public presentation metadata only. Renderers retain their own sandbox and URL policies.
16415
+ * Explicit output keeps required fields when contracts build without strictNullChecks,
16416
+ * while retaining the object schema's composition methods for existing consumers. */ var iconDefinitionSchema = new v3.z.ZodObject({
16417
+ shape: function() {
16418
+ return iconShape;
16419
+ },
16420
+ unknownKeys: "strip",
16421
+ catchall: v3.z.never(),
16422
+ typeName: v3.z.ZodFirstPartyTypeKind.ZodObject
16068
16423
  });
16069
16424
 
16070
16425
  Object.defineProperty(exports, "createResourceCardContent", {
@@ -16092,6 +16447,7 @@ Object.defineProperty(exports, "upsertResourceCardContent", {
16092
16447
  get: function () { return chatkitTypes.upsertResourceCardContent; }
16093
16448
  });
16094
16449
  exports.viewContextEventSchema = contextEvent.viewContextEventSchema;
16450
+ exports.AGENT_OUTPUT_ACCEPT = AGENT_OUTPUT_ACCEPT;
16095
16451
  exports.AGENT_OUTPUT_MAX_PATHS = AGENT_OUTPUT_MAX_PATHS;
16096
16452
  exports.AGENT_PROFILE_TABS_SLOT = AGENT_PROFILE_TABS_SLOT;
16097
16453
  exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
@@ -16359,6 +16715,9 @@ exports.agentInvocationStatusSchema = agentInvocationStatusSchema;
16359
16715
  exports.agentInvocationTerminalStatusSchema = agentInvocationTerminalStatusSchema;
16360
16716
  exports.agentLabel = agentLabel;
16361
16717
  exports.agentOutputDeliverySchema = agentOutputDeliverySchema;
16718
+ exports.agentOutputOriginSchema = agentOutputOriginSchema;
16719
+ exports.agentOutputPresentationSchema = agentOutputPresentationSchema;
16720
+ exports.agentOutputReferenceSchema = agentOutputReferenceSchema;
16362
16721
  exports.agentResultPathSchema = agentResultPathSchema;
16363
16722
  exports.agentRuntimeModelSourceSchema = agentRuntimeModelSourceSchema;
16364
16723
  exports.agentRuntimeProgressSchema = agentRuntimeProgressSchema;
@@ -16492,6 +16851,9 @@ exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
16492
16851
  exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
16493
16852
  exports.getXpertWorkspaceVisibility = getXpertWorkspaceVisibility;
16494
16853
  exports.hasEnabledKnowledgeRetrievalSource = hasEnabledKnowledgeRetrievalSource;
16854
+ exports.humanDecisionInputSchema = humanDecisionInputSchema;
16855
+ exports.humanDecisionSchema = humanDecisionSchema;
16856
+ exports.humanDecisionStatusSchema = humanDecisionStatusSchema;
16495
16857
  exports.iconDefinitionSchema = iconDefinitionSchema;
16496
16858
  exports.inferMessageAppendContext = inferMessageAppendContext;
16497
16859
  exports.isAgentKey = isAgentKey;
@@ -16595,9 +16957,12 @@ exports.notificationClientSchema = notificationClientSchema;
16595
16957
  exports.notificationOutboxPayloadSchema = notificationOutboxPayloadSchema;
16596
16958
  exports.notificationSnapshotSchema = notificationSnapshotSchema;
16597
16959
  exports.notificationSourceSchema = notificationSourceSchema;
16960
+ exports.notificationThreadIdSchema = notificationThreadIdSchema;
16598
16961
  exports.omitXpertRelations = omitXpertRelations;
16599
16962
  exports.openConversationActionSchema = openConversationActionSchema;
16600
16963
  exports.orderAssistantXperts = orderAssistantXperts;
16964
+ exports.outputPreferenceSchema = outputPreferenceSchema;
16965
+ exports.outputQuietHoursSchema = outputQuietHoursSchema;
16601
16966
  exports.parseAnalyticsDiagnostic = parseAnalyticsDiagnostic;
16602
16967
  exports.parseAnnouncement = parseAnnouncement;
16603
16968
  exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
@@ -16626,6 +16991,8 @@ exports.pipelineNodeNeedsHuman = pipelineNodeNeedsHuman;
16626
16991
  exports.pipelineQueueStatistics = pipelineQueueStatistics;
16627
16992
  exports.pipelineQueueStatisticsSchema = pipelineQueueStatisticsSchema;
16628
16993
  exports.pluginAgentEventSchema = pluginAgentEventSchema;
16994
+ exports.privateDecisionFeedbackStatusSchema = privateDecisionFeedbackStatusSchema;
16995
+ exports.privateDecisionReplySchema = privateDecisionReplySchema;
16629
16996
  exports.projectConfigurationActionSchema = projectConfigurationActionSchema;
16630
16997
  exports.projectConfigurationSectionSchema = projectConfigurationSectionSchema;
16631
16998
  exports.projectConfigurationUpdateSchema = projectConfigurationUpdateSchema;
@@ -16643,6 +17010,7 @@ exports.projectPipelineCatalogRequestSchema = projectPipelineCatalogRequestSchem
16643
17010
  exports.projectPipelineCatalogSchema = projectPipelineCatalogSchema;
16644
17011
  exports.projectPipelineCommandCapabilitySchema = projectPipelineCommandCapabilitySchema;
16645
17012
  exports.projectPipelineCompletionReceiptSchema = projectPipelineCompletionReceiptSchema;
17013
+ exports.projectPipelineConfigurationDeclarationSchema = projectPipelineConfigurationDeclarationSchema;
16646
17014
  exports.projectPipelineConfigurationFormSchema = projectPipelineConfigurationFormSchema;
16647
17015
  exports.projectPipelineConfigurationPageSchema = projectPipelineConfigurationPageSchema;
16648
17016
  exports.projectPipelineConfigurationSchema = projectPipelineConfigurationSchema;