@xpert-ai/contracts 3.35.0 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context-event.cjs.default.js +1 -0
- package/context-event.cjs.js +26 -0
- package/context-event.cjs.mjs +2 -0
- package/context-event.d.ts +1 -0
- package/context-event.esm.js +24 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +1165 -805
- package/index.cjs.mjs +2 -0
- package/index.esm.js +1140 -801
- package/package.json +18 -2
- package/src/agent-plugin.d.ts +4 -29
- package/src/ai/agent-output-delivery.model.d.ts +22 -1
- package/src/ai/agent-runtime.model.d.ts +4 -4
- package/src/ai/assistant-capability.model.d.ts +0 -1
- package/src/ai/assistant-template-manifest.model.d.ts +272 -308
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- package/src/ai/assistant-template.model.d.ts +0 -4
- package/src/ai/bosi.model.d.ts +1 -1
- package/src/ai/chat-activity.model.d.ts +13 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +3 -0
- package/src/ai/cli-execution.model.d.ts +88 -0
- package/src/ai/conversation-trail.model.d.ts +274 -274
- package/src/ai/copilot-store.model.d.ts +0 -13
- package/src/ai/evolution/entities.d.ts +164 -0
- package/src/ai/evolution/evaluation.d.ts +7 -0
- package/src/ai/evolution/execution-review.d.ts +68 -0
- package/src/ai/evolution/index.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -0
- package/src/ai/evolution/target.d.ts +5 -0
- package/src/ai/execution-activity.model.d.ts +362 -362
- package/src/ai/execution-control-evidence.schema.d.ts +26 -26
- package/src/ai/execution-observability.model.d.ts +160 -160
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/model-execution.model.d.ts +5 -108
- package/src/ai/model-replacement.model.d.ts +12 -12
- package/src/ai/project-configuration-view.model.d.ts +1 -0
- package/src/ai/project-pipeline/analytics.d.ts +288 -288
- package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
- package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
- package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
- package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
- package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
- package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
- package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
- package/src/ai/project-pipeline/graph.model.d.ts +7 -2
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
- package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
- package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
- package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
- package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
- package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
- package/src/ai/project-pipeline/statistics.d.ts +142 -142
- package/src/ai/project-task-runtime.model.d.ts +265 -789
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +13 -13
- package/src/ai/template-lifecycle.model.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +33 -0
- package/src/ai/xpert-project.model.d.ts +2 -1
- package/src/ai/xpert-tool.model.d.ts +12 -0
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/always-on/agent-event.model.d.ts +121 -0
- package/src/always-on/agent-event.schema.d.ts +139 -0
- package/src/always-on/agent-output-reference.schema.d.ts +27 -0
- package/src/always-on/agent-output.model.d.ts +411 -0
- package/src/always-on/human-decision.model.d.ts +204 -0
- package/src/always-on/index.d.ts +3 -0
- package/src/always-on/output-workbench.schema.d.ts +154 -0
- package/src/analytics/analysis-evidence.model.d.ts +29 -0
- package/src/analytics/analytics-certification.model.d.ts +17 -0
- package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
- package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
- package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
- package/src/analytics/index.d.ts +7 -0
- package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
- package/src/app-platform.d.ts +14 -14
- package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
- package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
- package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
- package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
- package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +4 -2
- package/src/artifacts/index.d.ts +5 -0
- package/src/collaboration.model.d.ts +31 -11
- package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
- package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +7 -3
- package/src/content/content-transfer.model.d.ts +21 -0
- package/src/content/index.d.ts +4 -0
- package/src/execution-control-admission.schema.d.ts +2 -2
- package/src/icon-definition.schema.d.ts +6 -10
- package/src/index.d.ts +5 -14
- package/src/secret-token.model.d.ts +4 -4
- package/src/user-notification.schema.d.ts +1300 -471
- package/src/view-extension/client-commands.d.ts +24 -0
- /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
- /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
package/index.cjs.js
CHANGED
|
@@ -4,6 +4,377 @@ var v3 = require('zod/v3');
|
|
|
4
4
|
var zod = require('zod');
|
|
5
5
|
var ShortUniqueId = require('short-unique-id');
|
|
6
6
|
var chatkitTypes = require('@xpert-ai/chatkit-types');
|
|
7
|
+
var contextEvent = require('./context-event.cjs.js');
|
|
8
|
+
|
|
9
|
+
var key$6 = v3.z.string().min(1).max(256).refine(function(value) {
|
|
10
|
+
return !value.includes("\x00");
|
|
11
|
+
});
|
|
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
|
+
}).strict();
|
|
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
|
+
bindingRevision: v3.z.number().int().positive(),
|
|
19
|
+
type: key$6,
|
|
20
|
+
schemaVersion: v3.z.number().int().positive(),
|
|
21
|
+
occurredAt: v3.z.string().datetime({
|
|
22
|
+
offset: true
|
|
23
|
+
}),
|
|
24
|
+
subject: agentEventRefSchema,
|
|
25
|
+
fact: v3.z.object({
|
|
26
|
+
key: key$6,
|
|
27
|
+
revision: key$6,
|
|
28
|
+
sha256: v3.z.string().regex(/^[0-9a-f]{64}$/)
|
|
29
|
+
}).strict()
|
|
30
|
+
}).strict();
|
|
31
|
+
var reasonCode = v3.z.string().regex(/^[a-z][a-z0-9_]{0,79}$/);
|
|
32
|
+
/** Accepts a completed source handler outcome for storage on the inbox receipt. */ var agentEventDecisionSchema = v3.z.discriminatedUnion("status", [
|
|
33
|
+
v3.z.object({
|
|
34
|
+
status: v3.z.literal("handled"),
|
|
35
|
+
operationKey: key$6,
|
|
36
|
+
resultRef: agentEventRefSchema
|
|
37
|
+
}).strict(),
|
|
38
|
+
v3.z.object({
|
|
39
|
+
status: v3.z.literal("ignored"),
|
|
40
|
+
reasonCode: reasonCode
|
|
41
|
+
}).strict(),
|
|
42
|
+
v3.z.object({
|
|
43
|
+
status: v3.z.literal("blocked"),
|
|
44
|
+
reasonCode: reasonCode
|
|
45
|
+
}).strict()
|
|
46
|
+
]);
|
|
47
|
+
|
|
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
|
+
]);
|
|
7
378
|
|
|
8
379
|
exports.AiModelTypeEnum = void 0;
|
|
9
380
|
(function(AiModelTypeEnum) {
|
|
@@ -19,7 +390,7 @@ exports.AiModelTypeEnum = void 0;
|
|
|
19
390
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
20
391
|
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
21
392
|
|
|
22
|
-
function _define_property$
|
|
393
|
+
function _define_property$u(obj, key, value) {
|
|
23
394
|
if (key in obj) {
|
|
24
395
|
Object.defineProperty(obj, key, {
|
|
25
396
|
value: value,
|
|
@@ -32,7 +403,7 @@ function _define_property$t(obj, key, value) {
|
|
|
32
403
|
}
|
|
33
404
|
return obj;
|
|
34
405
|
}
|
|
35
|
-
function _object_spread$
|
|
406
|
+
function _object_spread$u(target) {
|
|
36
407
|
for(var i = 1; i < arguments.length; i++){
|
|
37
408
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
38
409
|
var ownKeys = Object.keys(source);
|
|
@@ -42,12 +413,12 @@ function _object_spread$t(target) {
|
|
|
42
413
|
}));
|
|
43
414
|
}
|
|
44
415
|
ownKeys.forEach(function(key) {
|
|
45
|
-
_define_property$
|
|
416
|
+
_define_property$u(target, key, source[key]);
|
|
46
417
|
});
|
|
47
418
|
}
|
|
48
419
|
return target;
|
|
49
420
|
}
|
|
50
|
-
function ownKeys$
|
|
421
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
51
422
|
var keys = Object.keys(object);
|
|
52
423
|
if (Object.getOwnPropertySymbols) {
|
|
53
424
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -55,12 +426,12 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
55
426
|
}
|
|
56
427
|
return keys;
|
|
57
428
|
}
|
|
58
|
-
function _object_spread_props$
|
|
429
|
+
function _object_spread_props$n(target, source) {
|
|
59
430
|
source = source != null ? source : {};
|
|
60
431
|
if (Object.getOwnPropertyDescriptors) {
|
|
61
432
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
62
433
|
} else {
|
|
63
|
-
ownKeys$
|
|
434
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
64
435
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
65
436
|
});
|
|
66
437
|
}
|
|
@@ -83,7 +454,7 @@ var appPlatformAppSchema = v3.z.object({
|
|
|
83
454
|
configurationRef: key$3,
|
|
84
455
|
dependsOn: v3.z.array(key$3).max(32).default([])
|
|
85
456
|
}).strict().transform(function(app) {
|
|
86
|
-
return _object_spread_props$
|
|
457
|
+
return _object_spread_props$n(_object_spread$u({}, app), {
|
|
87
458
|
key: app.key,
|
|
88
459
|
required: app.required,
|
|
89
460
|
configurationRef: app.configurationRef,
|
|
@@ -1754,7 +2125,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
1754
2125
|
resourceType: "conversation_snapshot"
|
|
1755
2126
|
};
|
|
1756
2127
|
|
|
1757
|
-
function _define_property$
|
|
2128
|
+
function _define_property$t(obj, key, value) {
|
|
1758
2129
|
if (key in obj) {
|
|
1759
2130
|
Object.defineProperty(obj, key, {
|
|
1760
2131
|
value: value,
|
|
@@ -1767,7 +2138,7 @@ function _define_property$s(obj, key, value) {
|
|
|
1767
2138
|
}
|
|
1768
2139
|
return obj;
|
|
1769
2140
|
}
|
|
1770
|
-
function _object_spread$
|
|
2141
|
+
function _object_spread$t(target) {
|
|
1771
2142
|
for(var i = 1; i < arguments.length; i++){
|
|
1772
2143
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1773
2144
|
var ownKeys = Object.keys(source);
|
|
@@ -1777,12 +2148,12 @@ function _object_spread$s(target) {
|
|
|
1777
2148
|
}));
|
|
1778
2149
|
}
|
|
1779
2150
|
ownKeys.forEach(function(key) {
|
|
1780
|
-
_define_property$
|
|
2151
|
+
_define_property$t(target, key, source[key]);
|
|
1781
2152
|
});
|
|
1782
2153
|
}
|
|
1783
2154
|
return target;
|
|
1784
2155
|
}
|
|
1785
|
-
function ownKeys$
|
|
2156
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
1786
2157
|
var keys = Object.keys(object);
|
|
1787
2158
|
if (Object.getOwnPropertySymbols) {
|
|
1788
2159
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1790,12 +2161,12 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
1790
2161
|
}
|
|
1791
2162
|
return keys;
|
|
1792
2163
|
}
|
|
1793
|
-
function _object_spread_props$
|
|
2164
|
+
function _object_spread_props$m(target, source) {
|
|
1794
2165
|
source = source != null ? source : {};
|
|
1795
2166
|
if (Object.getOwnPropertyDescriptors) {
|
|
1796
2167
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1797
2168
|
} else {
|
|
1798
|
-
ownKeys$
|
|
2169
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
1799
2170
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1800
2171
|
});
|
|
1801
2172
|
}
|
|
@@ -1823,7 +2194,7 @@ function parseSelectionSet(value) {
|
|
|
1823
2194
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1824
2195
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1825
2196
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1826
|
-
return _object_spread$
|
|
2197
|
+
return _object_spread$t(_object_spread_props$m(_object_spread$t({}, value), {
|
|
1827
2198
|
skills: skills === undefined ? {
|
|
1828
2199
|
ids: []
|
|
1829
2200
|
} : skills,
|
|
@@ -1842,7 +2213,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1842
2213
|
var selection = parseSelectionSet(value);
|
|
1843
2214
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1844
2215
|
if (!selection || recommended === null) return null;
|
|
1845
|
-
return _object_spread$
|
|
2216
|
+
return _object_spread$t(_object_spread_props$m(_object_spread$t({}, selection), {
|
|
1846
2217
|
mode: "allowlist"
|
|
1847
2218
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1848
2219
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1894,7 +2265,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1894
2265
|
}
|
|
1895
2266
|
}
|
|
1896
2267
|
}
|
|
1897
|
-
return _object_spread_props$
|
|
2268
|
+
return _object_spread_props$m(_object_spread$t({}, value), {
|
|
1898
2269
|
type: "expert_scoped_capabilities",
|
|
1899
2270
|
version: 1,
|
|
1900
2271
|
defaults: defaults,
|
|
@@ -2026,7 +2397,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
2026
2397
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
2027
2398
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
2028
2399
|
|
|
2029
|
-
function _define_property$
|
|
2400
|
+
function _define_property$s(obj, key, value) {
|
|
2030
2401
|
if (key in obj) {
|
|
2031
2402
|
Object.defineProperty(obj, key, {
|
|
2032
2403
|
value: value,
|
|
@@ -2046,7 +2417,7 @@ function _instanceof$1(left, right) {
|
|
|
2046
2417
|
return left instanceof right;
|
|
2047
2418
|
}
|
|
2048
2419
|
}
|
|
2049
|
-
function _object_spread$
|
|
2420
|
+
function _object_spread$s(target) {
|
|
2050
2421
|
for(var i = 1; i < arguments.length; i++){
|
|
2051
2422
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2052
2423
|
var ownKeys = Object.keys(source);
|
|
@@ -2056,7 +2427,7 @@ function _object_spread$r(target) {
|
|
|
2056
2427
|
}));
|
|
2057
2428
|
}
|
|
2058
2429
|
ownKeys.forEach(function(key) {
|
|
2059
|
-
_define_property$
|
|
2430
|
+
_define_property$s(target, key, source[key]);
|
|
2060
2431
|
});
|
|
2061
2432
|
}
|
|
2062
2433
|
return target;
|
|
@@ -2067,12 +2438,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2067
2438
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2068
2439
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2069
2440
|
function createConversationTitleSummaryEvent(event) {
|
|
2070
|
-
return _object_spread$
|
|
2441
|
+
return _object_spread$s({
|
|
2071
2442
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2072
2443
|
}, event);
|
|
2073
2444
|
}
|
|
2074
2445
|
function createFollowUpConsumedEvent(event) {
|
|
2075
|
-
return _object_spread$
|
|
2446
|
+
return _object_spread$s({
|
|
2076
2447
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2077
2448
|
}, event);
|
|
2078
2449
|
}
|
|
@@ -2118,7 +2489,7 @@ function _array_with_holes$j(arr) {
|
|
|
2118
2489
|
function _array_without_holes$j(arr) {
|
|
2119
2490
|
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2120
2491
|
}
|
|
2121
|
-
function _define_property$
|
|
2492
|
+
function _define_property$r(obj, key, value) {
|
|
2122
2493
|
if (key in obj) {
|
|
2123
2494
|
Object.defineProperty(obj, key, {
|
|
2124
2495
|
value: value,
|
|
@@ -2164,7 +2535,7 @@ function _non_iterable_rest$j() {
|
|
|
2164
2535
|
function _non_iterable_spread$j() {
|
|
2165
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.");
|
|
2166
2537
|
}
|
|
2167
|
-
function _object_spread$
|
|
2538
|
+
function _object_spread$r(target) {
|
|
2168
2539
|
for(var i = 1; i < arguments.length; i++){
|
|
2169
2540
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2170
2541
|
var ownKeys = Object.keys(source);
|
|
@@ -2174,12 +2545,12 @@ function _object_spread$q(target) {
|
|
|
2174
2545
|
}));
|
|
2175
2546
|
}
|
|
2176
2547
|
ownKeys.forEach(function(key) {
|
|
2177
|
-
_define_property$
|
|
2548
|
+
_define_property$r(target, key, source[key]);
|
|
2178
2549
|
});
|
|
2179
2550
|
}
|
|
2180
2551
|
return target;
|
|
2181
2552
|
}
|
|
2182
|
-
function ownKeys$
|
|
2553
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
2183
2554
|
var keys = Object.keys(object);
|
|
2184
2555
|
if (Object.getOwnPropertySymbols) {
|
|
2185
2556
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2187,12 +2558,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
2187
2558
|
}
|
|
2188
2559
|
return keys;
|
|
2189
2560
|
}
|
|
2190
|
-
function _object_spread_props$
|
|
2561
|
+
function _object_spread_props$l(target, source) {
|
|
2191
2562
|
source = source != null ? source : {};
|
|
2192
2563
|
if (Object.getOwnPropertyDescriptors) {
|
|
2193
2564
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2194
2565
|
} else {
|
|
2195
|
-
ownKeys$
|
|
2566
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
2196
2567
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2197
2568
|
});
|
|
2198
2569
|
}
|
|
@@ -2311,7 +2682,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2311
2682
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2312
2683
|
return null;
|
|
2313
2684
|
}
|
|
2314
|
-
return _object_spread$
|
|
2685
|
+
return _object_spread$r({
|
|
2315
2686
|
version: 1
|
|
2316
2687
|
}, Object.keys(toolsets).length ? {
|
|
2317
2688
|
toolsets: toolsets
|
|
@@ -2389,8 +2760,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2389
2760
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2390
2761
|
normalizedToolName
|
|
2391
2762
|
]));
|
|
2392
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2393
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2763
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$r({}, normalizedPreferences.toolsets) : undefined;
|
|
2764
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$r({}, normalizedPreferences.middlewares) : undefined;
|
|
2394
2765
|
if (sourceType === "toolset") {
|
|
2395
2766
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2396
2767
|
if (!toolsetName) {
|
|
@@ -2406,14 +2777,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2406
2777
|
} else {
|
|
2407
2778
|
delete nextToolsets[normalizedNodeKey];
|
|
2408
2779
|
}
|
|
2409
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2780
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$r({
|
|
2410
2781
|
version: 1
|
|
2411
2782
|
}, Object.keys(nextToolsets).length ? {
|
|
2412
2783
|
toolsets: nextToolsets
|
|
2413
2784
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2414
2785
|
middlewares: middlewares
|
|
2415
2786
|
} : {}, normalizedPreferences.skills ? {
|
|
2416
|
-
skills: _object_spread$
|
|
2787
|
+
skills: _object_spread$r({}, normalizedPreferences.skills)
|
|
2417
2788
|
} : {}));
|
|
2418
2789
|
}
|
|
2419
2790
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2429,14 +2800,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2429
2800
|
} else {
|
|
2430
2801
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2431
2802
|
}
|
|
2432
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2803
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$r({
|
|
2433
2804
|
version: 1
|
|
2434
2805
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2435
2806
|
toolsets: toolsets
|
|
2436
2807
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2437
2808
|
middlewares: nextMiddlewares
|
|
2438
2809
|
} : {}, normalizedPreferences.skills ? {
|
|
2439
|
-
skills: _object_spread$
|
|
2810
|
+
skills: _object_spread$r({}, normalizedPreferences.skills)
|
|
2440
2811
|
} : {}));
|
|
2441
2812
|
}
|
|
2442
2813
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2454,7 +2825,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2454
2825
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2455
2826
|
normalizedSkillId
|
|
2456
2827
|
]));
|
|
2457
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2828
|
+
var skills = normalizedPreferences.skills ? _object_spread$r({}, normalizedPreferences.skills) : {};
|
|
2458
2829
|
if (nextDisabledSkillIds.length) {
|
|
2459
2830
|
skills[normalizedWorkspaceId] = {
|
|
2460
2831
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2463,12 +2834,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2463
2834
|
} else {
|
|
2464
2835
|
delete skills[normalizedWorkspaceId];
|
|
2465
2836
|
}
|
|
2466
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2837
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$r({
|
|
2467
2838
|
version: 1
|
|
2468
2839
|
}, normalizedPreferences.toolsets ? {
|
|
2469
|
-
toolsets: _object_spread$
|
|
2840
|
+
toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
|
|
2470
2841
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2471
|
-
middlewares: _object_spread$
|
|
2842
|
+
middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
|
|
2472
2843
|
} : {}, Object.keys(skills).length ? {
|
|
2473
2844
|
skills: skills
|
|
2474
2845
|
} : {}));
|
|
@@ -2486,14 +2857,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2486
2857
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2487
2858
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2488
2859
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2489
|
-
return _object_spread_props$
|
|
2860
|
+
return _object_spread_props$l(_object_spread$r({
|
|
2490
2861
|
version: 1
|
|
2491
2862
|
}, normalizedPreferences.toolsets ? {
|
|
2492
|
-
toolsets: _object_spread$
|
|
2863
|
+
toolsets: _object_spread$r({}, normalizedPreferences.toolsets)
|
|
2493
2864
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2494
|
-
middlewares: _object_spread$
|
|
2865
|
+
middlewares: _object_spread$r({}, normalizedPreferences.middlewares)
|
|
2495
2866
|
} : {}), {
|
|
2496
|
-
skills: _object_spread_props$
|
|
2867
|
+
skills: _object_spread_props$l(_object_spread$r({}, currentSkills), _define_property$r({}, normalizedWorkspaceId, {
|
|
2497
2868
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2498
2869
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2499
2870
|
}))
|
|
@@ -2825,7 +3196,7 @@ function _array_like_to_array$t(arr, len) {
|
|
|
2825
3196
|
function _array_without_holes$h(arr) {
|
|
2826
3197
|
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
2827
3198
|
}
|
|
2828
|
-
function _define_property$
|
|
3199
|
+
function _define_property$q(obj, key, value) {
|
|
2829
3200
|
if (key in obj) {
|
|
2830
3201
|
Object.defineProperty(obj, key, {
|
|
2831
3202
|
value: value,
|
|
@@ -2844,7 +3215,7 @@ function _iterable_to_array$j(iter) {
|
|
|
2844
3215
|
function _non_iterable_spread$h() {
|
|
2845
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.");
|
|
2846
3217
|
}
|
|
2847
|
-
function _object_spread$
|
|
3218
|
+
function _object_spread$q(target) {
|
|
2848
3219
|
for(var i = 1; i < arguments.length; i++){
|
|
2849
3220
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2850
3221
|
var ownKeys = Object.keys(source);
|
|
@@ -2854,12 +3225,12 @@ function _object_spread$p(target) {
|
|
|
2854
3225
|
}));
|
|
2855
3226
|
}
|
|
2856
3227
|
ownKeys.forEach(function(key) {
|
|
2857
|
-
_define_property$
|
|
3228
|
+
_define_property$q(target, key, source[key]);
|
|
2858
3229
|
});
|
|
2859
3230
|
}
|
|
2860
3231
|
return target;
|
|
2861
3232
|
}
|
|
2862
|
-
function ownKeys$
|
|
3233
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
2863
3234
|
var keys = Object.keys(object);
|
|
2864
3235
|
if (Object.getOwnPropertySymbols) {
|
|
2865
3236
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2867,12 +3238,12 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
2867
3238
|
}
|
|
2868
3239
|
return keys;
|
|
2869
3240
|
}
|
|
2870
|
-
function _object_spread_props$
|
|
3241
|
+
function _object_spread_props$k(target, source) {
|
|
2871
3242
|
source = source != null ? source : {};
|
|
2872
3243
|
if (Object.getOwnPropertyDescriptors) {
|
|
2873
3244
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2874
3245
|
} else {
|
|
2875
|
-
ownKeys$
|
|
3246
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
2876
3247
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2877
3248
|
});
|
|
2878
3249
|
}
|
|
@@ -2901,20 +3272,20 @@ var common$1 = {
|
|
|
2901
3272
|
maxConcurrency: positiveInteger.max(1000)
|
|
2902
3273
|
};
|
|
2903
3274
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2904
|
-
zod.z.object(_object_spread_props$
|
|
3275
|
+
zod.z.object(_object_spread_props$k(_object_spread$q({
|
|
2905
3276
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2906
3277
|
}, common$1), {
|
|
2907
3278
|
maxOutputTokens: positiveInteger,
|
|
2908
3279
|
defaultMaxTokens: positiveInteger,
|
|
2909
3280
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2910
3281
|
})).strict(),
|
|
2911
|
-
zod.z.object(_object_spread_props$
|
|
3282
|
+
zod.z.object(_object_spread_props$k(_object_spread$q({
|
|
2912
3283
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2913
3284
|
}, common$1), {
|
|
2914
3285
|
dimensions: positiveInteger.optional(),
|
|
2915
3286
|
batchSize: positiveInteger.max(2048)
|
|
2916
3287
|
})).strict(),
|
|
2917
|
-
zod.z.object(_object_spread$
|
|
3288
|
+
zod.z.object(_object_spread$q({
|
|
2918
3289
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2919
3290
|
}, common$1)).strict()
|
|
2920
3291
|
]).superRefine(function(value, ctx) {
|
|
@@ -2946,7 +3317,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2946
3317
|
};
|
|
2947
3318
|
switch(modelType){
|
|
2948
3319
|
case exports.AiModelTypeEnum.LLM:
|
|
2949
|
-
return _object_spread_props$
|
|
3320
|
+
return _object_spread_props$k(_object_spread$q({
|
|
2950
3321
|
modelType: modelType
|
|
2951
3322
|
}, common), {
|
|
2952
3323
|
maxOutputTokens: 2048,
|
|
@@ -2954,13 +3325,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2954
3325
|
features: []
|
|
2955
3326
|
});
|
|
2956
3327
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2957
|
-
return _object_spread_props$
|
|
3328
|
+
return _object_spread_props$k(_object_spread$q({
|
|
2958
3329
|
modelType: modelType
|
|
2959
3330
|
}, common), {
|
|
2960
3331
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
2961
3332
|
});
|
|
2962
3333
|
case exports.AiModelTypeEnum.RERANK:
|
|
2963
|
-
return _object_spread$
|
|
3334
|
+
return _object_spread$q({
|
|
2964
3335
|
modelType: modelType
|
|
2965
3336
|
}, common);
|
|
2966
3337
|
}
|
|
@@ -3121,9 +3492,6 @@ var MIN_COPILOT_CHECKPOINT_RETENTION_DAYS = 1;
|
|
|
3121
3492
|
var DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS = 60;
|
|
3122
3493
|
var MAX_COPILOT_CHECKPOINT_RETENTION_DAYS = 3650;
|
|
3123
3494
|
|
|
3124
|
-
var MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
|
|
3125
|
-
var MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
|
|
3126
|
-
|
|
3127
3495
|
var USAGE_HOUR_FORMAT = "yyyy-MM-dd HH";
|
|
3128
3496
|
|
|
3129
3497
|
/** @deprecated Use DefaultModelRole for default assignments; connections have no default purpose. */ exports.AiProviderRole = void 0;
|
|
@@ -3573,7 +3941,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3573
3941
|
return node.title || node.key;
|
|
3574
3942
|
}
|
|
3575
3943
|
|
|
3576
|
-
function _define_property$
|
|
3944
|
+
function _define_property$p(obj, key, value) {
|
|
3577
3945
|
if (key in obj) {
|
|
3578
3946
|
Object.defineProperty(obj, key, {
|
|
3579
3947
|
value: value,
|
|
@@ -3586,7 +3954,7 @@ function _define_property$o(obj, key, value) {
|
|
|
3586
3954
|
}
|
|
3587
3955
|
return obj;
|
|
3588
3956
|
}
|
|
3589
|
-
function _object_spread$
|
|
3957
|
+
function _object_spread$p(target) {
|
|
3590
3958
|
for(var i = 1; i < arguments.length; i++){
|
|
3591
3959
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3592
3960
|
var ownKeys = Object.keys(source);
|
|
@@ -3596,12 +3964,12 @@ function _object_spread$o(target) {
|
|
|
3596
3964
|
}));
|
|
3597
3965
|
}
|
|
3598
3966
|
ownKeys.forEach(function(key) {
|
|
3599
|
-
_define_property$
|
|
3967
|
+
_define_property$p(target, key, source[key]);
|
|
3600
3968
|
});
|
|
3601
3969
|
}
|
|
3602
3970
|
return target;
|
|
3603
3971
|
}
|
|
3604
|
-
function ownKeys$
|
|
3972
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
3605
3973
|
var keys = Object.keys(object);
|
|
3606
3974
|
if (Object.getOwnPropertySymbols) {
|
|
3607
3975
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3609,20 +3977,20 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
3609
3977
|
}
|
|
3610
3978
|
return keys;
|
|
3611
3979
|
}
|
|
3612
|
-
function _object_spread_props$
|
|
3980
|
+
function _object_spread_props$j(target, source) {
|
|
3613
3981
|
source = source != null ? source : {};
|
|
3614
3982
|
if (Object.getOwnPropertyDescriptors) {
|
|
3615
3983
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3616
3984
|
} else {
|
|
3617
|
-
ownKeys$
|
|
3985
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
3618
3986
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3619
3987
|
});
|
|
3620
3988
|
}
|
|
3621
3989
|
return target;
|
|
3622
3990
|
}
|
|
3623
|
-
function _object_without_properties$
|
|
3991
|
+
function _object_without_properties$4(source, excluded) {
|
|
3624
3992
|
if (source == null) return {};
|
|
3625
|
-
var target = _object_without_properties_loose$
|
|
3993
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
3626
3994
|
var key, i;
|
|
3627
3995
|
if (Object.getOwnPropertySymbols) {
|
|
3628
3996
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -3635,7 +4003,7 @@ function _object_without_properties$2(source, excluded) {
|
|
|
3635
4003
|
}
|
|
3636
4004
|
return target;
|
|
3637
4005
|
}
|
|
3638
|
-
function _object_without_properties_loose$
|
|
4006
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
3639
4007
|
if (source == null) return {};
|
|
3640
4008
|
var target = {};
|
|
3641
4009
|
var sourceKeys = Object.keys(source);
|
|
@@ -3684,18 +4052,13 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
3684
4052
|
}
|
|
3685
4053
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
3686
4054
|
// Legacy imports may carry this unsupported scheduler option (LangGraph.js #2656).
|
|
3687
|
-
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$
|
|
4055
|
+
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$4(_ref, [
|
|
3688
4056
|
"maxConcurrency"
|
|
3689
4057
|
]);
|
|
3690
|
-
return _object_spread_props$
|
|
4058
|
+
return _object_spread_props$j(_object_spread$p({}, config), {
|
|
3691
4059
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3692
4060
|
});
|
|
3693
4061
|
}
|
|
3694
|
-
exports.LongTermMemoryTypeEnum = void 0;
|
|
3695
|
-
(function(LongTermMemoryTypeEnum) {
|
|
3696
|
-
LongTermMemoryTypeEnum["PROFILE"] = "profile";
|
|
3697
|
-
LongTermMemoryTypeEnum["QA"] = "qa";
|
|
3698
|
-
})(exports.LongTermMemoryTypeEnum || (exports.LongTermMemoryTypeEnum = {}));
|
|
3699
4062
|
exports.XpertParameterTypeEnum = void 0;
|
|
3700
4063
|
(function(XpertParameterTypeEnum) {
|
|
3701
4064
|
/**
|
|
@@ -3781,7 +4144,7 @@ function _array_like_to_array$s(arr, len) {
|
|
|
3781
4144
|
function _array_with_holes$h(arr) {
|
|
3782
4145
|
if (Array.isArray(arr)) return arr;
|
|
3783
4146
|
}
|
|
3784
|
-
function _define_property$
|
|
4147
|
+
function _define_property$o(obj, key, value) {
|
|
3785
4148
|
if (key in obj) {
|
|
3786
4149
|
Object.defineProperty(obj, key, {
|
|
3787
4150
|
value: value,
|
|
@@ -3821,7 +4184,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
3821
4184
|
function _non_iterable_rest$h() {
|
|
3822
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.");
|
|
3823
4186
|
}
|
|
3824
|
-
function _object_spread$
|
|
4187
|
+
function _object_spread$o(target) {
|
|
3825
4188
|
for(var i = 1; i < arguments.length; i++){
|
|
3826
4189
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3827
4190
|
var ownKeys = Object.keys(source);
|
|
@@ -3831,12 +4194,12 @@ function _object_spread$n(target) {
|
|
|
3831
4194
|
}));
|
|
3832
4195
|
}
|
|
3833
4196
|
ownKeys.forEach(function(key) {
|
|
3834
|
-
_define_property$
|
|
4197
|
+
_define_property$o(target, key, source[key]);
|
|
3835
4198
|
});
|
|
3836
4199
|
}
|
|
3837
4200
|
return target;
|
|
3838
4201
|
}
|
|
3839
|
-
function ownKeys$
|
|
4202
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
3840
4203
|
var keys = Object.keys(object);
|
|
3841
4204
|
if (Object.getOwnPropertySymbols) {
|
|
3842
4205
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3844,12 +4207,12 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
3844
4207
|
}
|
|
3845
4208
|
return keys;
|
|
3846
4209
|
}
|
|
3847
|
-
function _object_spread_props$
|
|
4210
|
+
function _object_spread_props$i(target, source) {
|
|
3848
4211
|
source = source != null ? source : {};
|
|
3849
4212
|
if (Object.getOwnPropertyDescriptors) {
|
|
3850
4213
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3851
4214
|
} else {
|
|
3852
|
-
ownKeys$
|
|
4215
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
3853
4216
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3854
4217
|
});
|
|
3855
4218
|
}
|
|
@@ -3949,7 +4312,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3949
4312
|
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3950
4313
|
if (variableName) {
|
|
3951
4314
|
var _state_agentChannelName;
|
|
3952
|
-
state[agentChannelName] = _object_spread_props$
|
|
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));
|
|
3953
4316
|
} else {
|
|
3954
4317
|
state[agentChannelName] = value;
|
|
3955
4318
|
}
|
|
@@ -4040,7 +4403,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4040
4403
|
});
|
|
4041
4404
|
}
|
|
4042
4405
|
|
|
4043
|
-
function _define_property$
|
|
4406
|
+
function _define_property$n(obj, key, value) {
|
|
4044
4407
|
if (key in obj) {
|
|
4045
4408
|
Object.defineProperty(obj, key, {
|
|
4046
4409
|
value: value,
|
|
@@ -4053,7 +4416,7 @@ function _define_property$m(obj, key, value) {
|
|
|
4053
4416
|
}
|
|
4054
4417
|
return obj;
|
|
4055
4418
|
}
|
|
4056
|
-
function _object_spread$
|
|
4419
|
+
function _object_spread$n(target) {
|
|
4057
4420
|
for(var i = 1; i < arguments.length; i++){
|
|
4058
4421
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4059
4422
|
var ownKeys = Object.keys(source);
|
|
@@ -4063,12 +4426,12 @@ function _object_spread$m(target) {
|
|
|
4063
4426
|
}));
|
|
4064
4427
|
}
|
|
4065
4428
|
ownKeys.forEach(function(key) {
|
|
4066
|
-
_define_property$
|
|
4429
|
+
_define_property$n(target, key, source[key]);
|
|
4067
4430
|
});
|
|
4068
4431
|
}
|
|
4069
4432
|
return target;
|
|
4070
4433
|
}
|
|
4071
|
-
function ownKeys$
|
|
4434
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
4072
4435
|
var keys = Object.keys(object);
|
|
4073
4436
|
if (Object.getOwnPropertySymbols) {
|
|
4074
4437
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4076,12 +4439,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
4076
4439
|
}
|
|
4077
4440
|
return keys;
|
|
4078
4441
|
}
|
|
4079
|
-
function _object_spread_props$
|
|
4442
|
+
function _object_spread_props$h(target, source) {
|
|
4080
4443
|
source = source != null ? source : {};
|
|
4081
4444
|
if (Object.getOwnPropertyDescriptors) {
|
|
4082
4445
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4083
4446
|
} else {
|
|
4084
|
-
ownKeys$
|
|
4447
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
4085
4448
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4086
4449
|
});
|
|
4087
4450
|
}
|
|
@@ -4169,11 +4532,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4169
4532
|
return candidate === requestedMode;
|
|
4170
4533
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4171
4534
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4172
|
-
return _object_spread_props$
|
|
4535
|
+
return _object_spread_props$h(_object_spread$n({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4173
4536
|
mode: mode,
|
|
4174
|
-
fusion: _object_spread_props$
|
|
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 : {}), {
|
|
4175
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,
|
|
4176
|
-
weights: _object_spread_props$
|
|
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 : {}), {
|
|
4177
4540
|
graph: 0
|
|
4178
4541
|
})
|
|
4179
4542
|
})
|
|
@@ -4342,7 +4705,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4342
4705
|
function _array_without_holes$f(arr) {
|
|
4343
4706
|
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4344
4707
|
}
|
|
4345
|
-
function _define_property$
|
|
4708
|
+
function _define_property$m(obj, key, value) {
|
|
4346
4709
|
if (key in obj) {
|
|
4347
4710
|
Object.defineProperty(obj, key, {
|
|
4348
4711
|
value: value,
|
|
@@ -4361,7 +4724,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4361
4724
|
function _non_iterable_spread$f() {
|
|
4362
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.");
|
|
4363
4726
|
}
|
|
4364
|
-
function _object_spread$
|
|
4727
|
+
function _object_spread$m(target) {
|
|
4365
4728
|
for(var i = 1; i < arguments.length; i++){
|
|
4366
4729
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4367
4730
|
var ownKeys = Object.keys(source);
|
|
@@ -4371,7 +4734,7 @@ function _object_spread$l(target) {
|
|
|
4371
4734
|
}));
|
|
4372
4735
|
}
|
|
4373
4736
|
ownKeys.forEach(function(key) {
|
|
4374
|
-
_define_property$
|
|
4737
|
+
_define_property$m(target, key, source[key]);
|
|
4375
4738
|
});
|
|
4376
4739
|
}
|
|
4377
4740
|
return target;
|
|
@@ -4389,12 +4752,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4389
4752
|
}
|
|
4390
4753
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4391
4754
|
if (!config) return {};
|
|
4392
|
-
return _object_spread$
|
|
4393
|
-
spreadsheet: _object_spread$
|
|
4755
|
+
return _object_spread$m({}, config.spreadsheet ? {
|
|
4756
|
+
spreadsheet: _object_spread$m({}, config.spreadsheet)
|
|
4394
4757
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4395
4758
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4396
4759
|
} : {}, config.questionGeneration ? {
|
|
4397
|
-
questionGeneration: _object_spread$
|
|
4760
|
+
questionGeneration: _object_spread$m({}, config.questionGeneration)
|
|
4398
4761
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4399
4762
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4400
4763
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4408,7 +4771,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4408
4771
|
} : {}, config.textSplitterType ? {
|
|
4409
4772
|
textSplitterType: config.textSplitterType
|
|
4410
4773
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4411
|
-
textSplitter: _object_spread$
|
|
4774
|
+
textSplitter: _object_spread$m({}, config.chunkSize != null ? {
|
|
4412
4775
|
chunkSize: config.chunkSize
|
|
4413
4776
|
} : {}, config.chunkOverlap != null ? {
|
|
4414
4777
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4420,7 +4783,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4420
4783
|
} : {}, config.imageUnderstandingType ? {
|
|
4421
4784
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4422
4785
|
} : {}, config.imageUnderstanding ? {
|
|
4423
|
-
imageUnderstanding: _object_spread$
|
|
4786
|
+
imageUnderstanding: _object_spread$m({}, config.imageUnderstanding)
|
|
4424
4787
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4425
4788
|
}
|
|
4426
4789
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4485,7 +4848,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4485
4848
|
return letterStartSUID("KnowledgeBase_");
|
|
4486
4849
|
}
|
|
4487
4850
|
|
|
4488
|
-
function _define_property$
|
|
4851
|
+
function _define_property$l(obj, key, value) {
|
|
4489
4852
|
if (key in obj) {
|
|
4490
4853
|
Object.defineProperty(obj, key, {
|
|
4491
4854
|
value: value,
|
|
@@ -4498,7 +4861,7 @@ function _define_property$k(obj, key, value) {
|
|
|
4498
4861
|
}
|
|
4499
4862
|
return obj;
|
|
4500
4863
|
}
|
|
4501
|
-
function _object_spread$
|
|
4864
|
+
function _object_spread$l(target) {
|
|
4502
4865
|
for(var i = 1; i < arguments.length; i++){
|
|
4503
4866
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4504
4867
|
var ownKeys = Object.keys(source);
|
|
@@ -4508,7 +4871,7 @@ function _object_spread$k(target) {
|
|
|
4508
4871
|
}));
|
|
4509
4872
|
}
|
|
4510
4873
|
ownKeys.forEach(function(key) {
|
|
4511
|
-
_define_property$
|
|
4874
|
+
_define_property$l(target, key, source[key]);
|
|
4512
4875
|
});
|
|
4513
4876
|
}
|
|
4514
4877
|
return target;
|
|
@@ -4528,7 +4891,7 @@ function _object_spread$k(target) {
|
|
|
4528
4891
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4529
4892
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4530
4893
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4531
|
-
var KDocumentSourceType = _object_spread$
|
|
4894
|
+
var KDocumentSourceType = _object_spread$l({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4532
4895
|
/**
|
|
4533
4896
|
* Document type category, determine how to process the document.
|
|
4534
4897
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5414,7 +5777,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
5414
5777
|
function _array_without_holes$d(arr) {
|
|
5415
5778
|
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5416
5779
|
}
|
|
5417
|
-
function _define_property$
|
|
5780
|
+
function _define_property$k(obj, key, value) {
|
|
5418
5781
|
if (key in obj) {
|
|
5419
5782
|
Object.defineProperty(obj, key, {
|
|
5420
5783
|
value: value,
|
|
@@ -5433,7 +5796,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5433
5796
|
function _non_iterable_spread$d() {
|
|
5434
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.");
|
|
5435
5798
|
}
|
|
5436
|
-
function _object_spread$
|
|
5799
|
+
function _object_spread$k(target) {
|
|
5437
5800
|
for(var i = 1; i < arguments.length; i++){
|
|
5438
5801
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5439
5802
|
var ownKeys = Object.keys(source);
|
|
@@ -5443,12 +5806,12 @@ function _object_spread$j(target) {
|
|
|
5443
5806
|
}));
|
|
5444
5807
|
}
|
|
5445
5808
|
ownKeys.forEach(function(key) {
|
|
5446
|
-
_define_property$
|
|
5809
|
+
_define_property$k(target, key, source[key]);
|
|
5447
5810
|
});
|
|
5448
5811
|
}
|
|
5449
5812
|
return target;
|
|
5450
5813
|
}
|
|
5451
|
-
function ownKeys$
|
|
5814
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
5452
5815
|
var keys = Object.keys(object);
|
|
5453
5816
|
if (Object.getOwnPropertySymbols) {
|
|
5454
5817
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5456,20 +5819,20 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
5456
5819
|
}
|
|
5457
5820
|
return keys;
|
|
5458
5821
|
}
|
|
5459
|
-
function _object_spread_props$
|
|
5822
|
+
function _object_spread_props$g(target, source) {
|
|
5460
5823
|
source = source != null ? source : {};
|
|
5461
5824
|
if (Object.getOwnPropertyDescriptors) {
|
|
5462
5825
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5463
5826
|
} else {
|
|
5464
|
-
ownKeys$
|
|
5827
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
5465
5828
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5466
5829
|
});
|
|
5467
5830
|
}
|
|
5468
5831
|
return target;
|
|
5469
5832
|
}
|
|
5470
|
-
function _object_without_properties$
|
|
5833
|
+
function _object_without_properties$3(source, excluded) {
|
|
5471
5834
|
if (source == null) return {};
|
|
5472
|
-
var target = _object_without_properties_loose$
|
|
5835
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
5473
5836
|
var key, i;
|
|
5474
5837
|
if (Object.getOwnPropertySymbols) {
|
|
5475
5838
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -5482,7 +5845,7 @@ function _object_without_properties$1(source, excluded) {
|
|
|
5482
5845
|
}
|
|
5483
5846
|
return target;
|
|
5484
5847
|
}
|
|
5485
|
-
function _object_without_properties_loose$
|
|
5848
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
5486
5849
|
if (source == null) return {};
|
|
5487
5850
|
var target = {};
|
|
5488
5851
|
var sourceKeys = Object.keys(source);
|
|
@@ -5507,7 +5870,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
|
|
|
5507
5870
|
}
|
|
5508
5871
|
function omitXpertRelations(xpert) {
|
|
5509
5872
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5510
|
-
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$
|
|
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, [
|
|
5511
5874
|
"draft",
|
|
5512
5875
|
"agent",
|
|
5513
5876
|
"agents",
|
|
@@ -5542,7 +5905,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5542
5905
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5543
5906
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5544
5907
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5545
|
-
return _object_spread_props$
|
|
5908
|
+
return _object_spread_props$g(_object_spread$k({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
5546
5909
|
id: xpert.id,
|
|
5547
5910
|
tenantId: xpert.tenantId,
|
|
5548
5911
|
organizationId: xpert.organizationId,
|
|
@@ -5826,9 +6189,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5826
6189
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5827
6190
|
replacedNode = true;
|
|
5828
6191
|
var _node_entity;
|
|
5829
|
-
return _object_spread_props$
|
|
6192
|
+
return _object_spread_props$g(_object_spread$k({}, node), {
|
|
5830
6193
|
key: targetKey,
|
|
5831
|
-
entity: _object_spread_props$
|
|
6194
|
+
entity: _object_spread_props$g(_object_spread$k({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
5832
6195
|
key: targetKey
|
|
5833
6196
|
})
|
|
5834
6197
|
});
|
|
@@ -5844,17 +6207,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5844
6207
|
if (from === connection.from && to === connection.to) {
|
|
5845
6208
|
return connection;
|
|
5846
6209
|
}
|
|
5847
|
-
return _object_spread_props$
|
|
6210
|
+
return _object_spread_props$g(_object_spread$k({}, connection), {
|
|
5848
6211
|
from: from,
|
|
5849
6212
|
to: to,
|
|
5850
6213
|
key: "".concat(from, "/").concat(to)
|
|
5851
6214
|
});
|
|
5852
6215
|
});
|
|
5853
|
-
return _object_spread_props$
|
|
5854
|
-
team: draft.team ? _object_spread_props$
|
|
5855
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
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), {
|
|
5856
6219
|
key: targetKey
|
|
5857
|
-
}) : _object_spread_props$
|
|
6220
|
+
}) : _object_spread_props$g(_object_spread$k({}, agent), {
|
|
5858
6221
|
key: targetKey
|
|
5859
6222
|
})
|
|
5860
6223
|
}) : draft.team,
|
|
@@ -6002,7 +6365,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6002
6365
|
projectTypeKey: "space"
|
|
6003
6366
|
};
|
|
6004
6367
|
|
|
6005
|
-
function _define_property$
|
|
6368
|
+
function _define_property$j(obj, key, value) {
|
|
6006
6369
|
if (key in obj) {
|
|
6007
6370
|
Object.defineProperty(obj, key, {
|
|
6008
6371
|
value: value,
|
|
@@ -6015,7 +6378,7 @@ function _define_property$i(obj, key, value) {
|
|
|
6015
6378
|
}
|
|
6016
6379
|
return obj;
|
|
6017
6380
|
}
|
|
6018
|
-
function _object_spread$
|
|
6381
|
+
function _object_spread$j(target) {
|
|
6019
6382
|
for(var i = 1; i < arguments.length; i++){
|
|
6020
6383
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6021
6384
|
var ownKeys = Object.keys(source);
|
|
@@ -6025,12 +6388,12 @@ function _object_spread$i(target) {
|
|
|
6025
6388
|
}));
|
|
6026
6389
|
}
|
|
6027
6390
|
ownKeys.forEach(function(key) {
|
|
6028
|
-
_define_property$
|
|
6391
|
+
_define_property$j(target, key, source[key]);
|
|
6029
6392
|
});
|
|
6030
6393
|
}
|
|
6031
6394
|
return target;
|
|
6032
6395
|
}
|
|
6033
|
-
function ownKeys$
|
|
6396
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
6034
6397
|
var keys = Object.keys(object);
|
|
6035
6398
|
if (Object.getOwnPropertySymbols) {
|
|
6036
6399
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6038,12 +6401,12 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
6038
6401
|
}
|
|
6039
6402
|
return keys;
|
|
6040
6403
|
}
|
|
6041
|
-
function _object_spread_props$
|
|
6404
|
+
function _object_spread_props$f(target, source) {
|
|
6042
6405
|
source = source != null ? source : {};
|
|
6043
6406
|
if (Object.getOwnPropertyDescriptors) {
|
|
6044
6407
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6045
6408
|
} else {
|
|
6046
|
-
ownKeys$
|
|
6409
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
6047
6410
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6048
6411
|
});
|
|
6049
6412
|
}
|
|
@@ -6072,7 +6435,7 @@ function projectTaskConfigurationSchema(defaultSeconds) {
|
|
|
6072
6435
|
type: "object",
|
|
6073
6436
|
additionalProperties: false,
|
|
6074
6437
|
properties: {
|
|
6075
|
-
taskExecutionMaxDurationSeconds: _object_spread_props$
|
|
6438
|
+
taskExecutionMaxDurationSeconds: _object_spread_props$f(_object_spread$j({
|
|
6076
6439
|
type: "integer",
|
|
6077
6440
|
minimum: 60,
|
|
6078
6441
|
maximum: 86400
|
|
@@ -6084,8 +6447,8 @@ function projectTaskConfigurationSchema(defaultSeconds) {
|
|
|
6084
6447
|
zh_Hans: "单次任务执行上限(秒)"
|
|
6085
6448
|
},
|
|
6086
6449
|
description: {
|
|
6087
|
-
en_US: "
|
|
6088
|
-
zh_Hans: "
|
|
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 小时;留空继承租户默认值。在租户允许的上限内,对新的开发和验收执行生效。"
|
|
6089
6452
|
}
|
|
6090
6453
|
})
|
|
6091
6454
|
}
|
|
@@ -6151,7 +6514,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6151
6514
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
6152
6515
|
* @param documents - A flat array of DocumentInterface objects
|
|
6153
6516
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
6154
|
-
*/ function _define_property$
|
|
6517
|
+
*/ function _define_property$i(obj, key, value) {
|
|
6155
6518
|
if (key in obj) {
|
|
6156
6519
|
Object.defineProperty(obj, key, {
|
|
6157
6520
|
value: value,
|
|
@@ -6164,7 +6527,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6164
6527
|
}
|
|
6165
6528
|
return obj;
|
|
6166
6529
|
}
|
|
6167
|
-
function _object_spread$
|
|
6530
|
+
function _object_spread$i(target) {
|
|
6168
6531
|
for(var i = 1; i < arguments.length; i++){
|
|
6169
6532
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6170
6533
|
var ownKeys = Object.keys(source);
|
|
@@ -6174,12 +6537,12 @@ function _object_spread$h(target) {
|
|
|
6174
6537
|
}));
|
|
6175
6538
|
}
|
|
6176
6539
|
ownKeys.forEach(function(key) {
|
|
6177
|
-
_define_property$
|
|
6540
|
+
_define_property$i(target, key, source[key]);
|
|
6178
6541
|
});
|
|
6179
6542
|
}
|
|
6180
6543
|
return target;
|
|
6181
6544
|
}
|
|
6182
|
-
function ownKeys$
|
|
6545
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
6183
6546
|
var keys = Object.keys(object);
|
|
6184
6547
|
if (Object.getOwnPropertySymbols) {
|
|
6185
6548
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6187,12 +6550,12 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
6187
6550
|
}
|
|
6188
6551
|
return keys;
|
|
6189
6552
|
}
|
|
6190
|
-
function _object_spread_props$
|
|
6553
|
+
function _object_spread_props$e(target, source) {
|
|
6191
6554
|
source = source != null ? source : {};
|
|
6192
6555
|
if (Object.getOwnPropertyDescriptors) {
|
|
6193
6556
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6194
6557
|
} else {
|
|
6195
|
-
ownKeys$
|
|
6558
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
6196
6559
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6197
6560
|
});
|
|
6198
6561
|
}
|
|
@@ -6207,8 +6570,8 @@ function buildChunkTree(documents) {
|
|
|
6207
6570
|
documents.forEach(function(doc, index) {
|
|
6208
6571
|
var chunkId = getChunkNodeId(doc);
|
|
6209
6572
|
if (chunkId) {
|
|
6210
|
-
map.set(chunkId, _object_spread_props$
|
|
6211
|
-
metadata: _object_spread_props$
|
|
6573
|
+
map.set(chunkId, _object_spread_props$e(_object_spread$i({}, doc), {
|
|
6574
|
+
metadata: _object_spread_props$e(_object_spread$i({}, doc.metadata), {
|
|
6212
6575
|
chunkId: chunkId,
|
|
6213
6576
|
children: []
|
|
6214
6577
|
})
|
|
@@ -6758,7 +7121,7 @@ function isLocalPath(value) {
|
|
|
6758
7121
|
})).size === value.length;
|
|
6759
7122
|
}
|
|
6760
7123
|
|
|
6761
|
-
function _define_property$
|
|
7124
|
+
function _define_property$h(obj, key, value) {
|
|
6762
7125
|
if (key in obj) {
|
|
6763
7126
|
Object.defineProperty(obj, key, {
|
|
6764
7127
|
value: value,
|
|
@@ -6771,7 +7134,7 @@ function _define_property$g(obj, key, value) {
|
|
|
6771
7134
|
}
|
|
6772
7135
|
return obj;
|
|
6773
7136
|
}
|
|
6774
|
-
function _object_spread$
|
|
7137
|
+
function _object_spread$h(target) {
|
|
6775
7138
|
for(var i = 1; i < arguments.length; i++){
|
|
6776
7139
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6777
7140
|
var ownKeys = Object.keys(source);
|
|
@@ -6781,12 +7144,12 @@ function _object_spread$g(target) {
|
|
|
6781
7144
|
}));
|
|
6782
7145
|
}
|
|
6783
7146
|
ownKeys.forEach(function(key) {
|
|
6784
|
-
_define_property$
|
|
7147
|
+
_define_property$h(target, key, source[key]);
|
|
6785
7148
|
});
|
|
6786
7149
|
}
|
|
6787
7150
|
return target;
|
|
6788
7151
|
}
|
|
6789
|
-
function ownKeys$
|
|
7152
|
+
function ownKeys$d(object, enumerableOnly) {
|
|
6790
7153
|
var keys = Object.keys(object);
|
|
6791
7154
|
if (Object.getOwnPropertySymbols) {
|
|
6792
7155
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6794,12 +7157,12 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
6794
7157
|
}
|
|
6795
7158
|
return keys;
|
|
6796
7159
|
}
|
|
6797
|
-
function _object_spread_props$
|
|
7160
|
+
function _object_spread_props$d(target, source) {
|
|
6798
7161
|
source = source != null ? source : {};
|
|
6799
7162
|
if (Object.getOwnPropertyDescriptors) {
|
|
6800
7163
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6801
7164
|
} else {
|
|
6802
|
-
ownKeys$
|
|
7165
|
+
ownKeys$d(Object(source)).forEach(function(key) {
|
|
6803
7166
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6804
7167
|
});
|
|
6805
7168
|
}
|
|
@@ -6807,6 +7170,7 @@ function _object_spread_props$c(target, source) {
|
|
|
6807
7170
|
}
|
|
6808
7171
|
var LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = "SandboxCompressionMiddleware";
|
|
6809
7172
|
var CONTEXT_COMPRESSION_MIDDLEWARE_NAME = "ContextCompressionMiddleware";
|
|
7173
|
+
var XPERT_FILE_MEMORY_MIDDLEWARE_NAME = "XpertFileMemoryMiddleware";
|
|
6810
7174
|
var SKILLS_MIDDLEWARE_NAME = "skillsMiddleware";
|
|
6811
7175
|
function isMiddlewareToolEnabled(config) {
|
|
6812
7176
|
if (typeof config === "boolean") {
|
|
@@ -6839,8 +7203,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
6839
7203
|
if (provider === entity.provider) {
|
|
6840
7204
|
return node;
|
|
6841
7205
|
}
|
|
6842
|
-
return _object_spread_props$
|
|
6843
|
-
entity: _object_spread_props$
|
|
7206
|
+
return _object_spread_props$d(_object_spread$h({}, node), {
|
|
7207
|
+
entity: _object_spread_props$d(_object_spread$h({}, entity), {
|
|
6844
7208
|
provider: provider
|
|
6845
7209
|
})
|
|
6846
7210
|
});
|
|
@@ -6901,7 +7265,7 @@ function _array_with_holes$e(arr) {
|
|
|
6901
7265
|
function _array_without_holes$c(arr) {
|
|
6902
7266
|
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
6903
7267
|
}
|
|
6904
|
-
function _define_property$
|
|
7268
|
+
function _define_property$g(obj, key, value) {
|
|
6905
7269
|
if (key in obj) {
|
|
6906
7270
|
Object.defineProperty(obj, key, {
|
|
6907
7271
|
value: value,
|
|
@@ -6947,7 +7311,7 @@ function _non_iterable_rest$e() {
|
|
|
6947
7311
|
function _non_iterable_spread$c() {
|
|
6948
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.");
|
|
6949
7313
|
}
|
|
6950
|
-
function _object_spread$
|
|
7314
|
+
function _object_spread$g(target) {
|
|
6951
7315
|
for(var i = 1; i < arguments.length; i++){
|
|
6952
7316
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6953
7317
|
var ownKeys = Object.keys(source);
|
|
@@ -6957,12 +7321,12 @@ function _object_spread$f(target) {
|
|
|
6957
7321
|
}));
|
|
6958
7322
|
}
|
|
6959
7323
|
ownKeys.forEach(function(key) {
|
|
6960
|
-
_define_property$
|
|
7324
|
+
_define_property$g(target, key, source[key]);
|
|
6961
7325
|
});
|
|
6962
7326
|
}
|
|
6963
7327
|
return target;
|
|
6964
7328
|
}
|
|
6965
|
-
function ownKeys$
|
|
7329
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
6966
7330
|
var keys = Object.keys(object);
|
|
6967
7331
|
if (Object.getOwnPropertySymbols) {
|
|
6968
7332
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6970,20 +7334,20 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
6970
7334
|
}
|
|
6971
7335
|
return keys;
|
|
6972
7336
|
}
|
|
6973
|
-
function _object_spread_props$
|
|
7337
|
+
function _object_spread_props$c(target, source) {
|
|
6974
7338
|
source = source != null ? source : {};
|
|
6975
7339
|
if (Object.getOwnPropertyDescriptors) {
|
|
6976
7340
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6977
7341
|
} else {
|
|
6978
|
-
ownKeys$
|
|
7342
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
6979
7343
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6980
7344
|
});
|
|
6981
7345
|
}
|
|
6982
7346
|
return target;
|
|
6983
7347
|
}
|
|
6984
|
-
function _object_without_properties(source, excluded) {
|
|
7348
|
+
function _object_without_properties$2(source, excluded) {
|
|
6985
7349
|
if (source == null) return {};
|
|
6986
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
7350
|
+
var target = _object_without_properties_loose$2(source, excluded);
|
|
6987
7351
|
var key, i;
|
|
6988
7352
|
if (Object.getOwnPropertySymbols) {
|
|
6989
7353
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -6996,7 +7360,7 @@ function _object_without_properties(source, excluded) {
|
|
|
6996
7360
|
}
|
|
6997
7361
|
return target;
|
|
6998
7362
|
}
|
|
6999
|
-
function _object_without_properties_loose(source, excluded) {
|
|
7363
|
+
function _object_without_properties_loose$2(source, excluded) {
|
|
7000
7364
|
if (source == null) return {};
|
|
7001
7365
|
var target = {};
|
|
7002
7366
|
var sourceKeys = Object.keys(source);
|
|
@@ -7091,7 +7455,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
7091
7455
|
if (typeof content !== "string") {
|
|
7092
7456
|
return content;
|
|
7093
7457
|
}
|
|
7094
|
-
return _object_spread$
|
|
7458
|
+
return _object_spread$g({
|
|
7095
7459
|
type: "text",
|
|
7096
7460
|
text: content
|
|
7097
7461
|
}, context.streamId ? {
|
|
@@ -7156,7 +7520,7 @@ function filterText(content) {
|
|
|
7156
7520
|
return "";
|
|
7157
7521
|
}
|
|
7158
7522
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
7159
|
-
return _object_spread$
|
|
7523
|
+
return _object_spread$g(_object_spread_props$c(_object_spread$g({}, previous), {
|
|
7160
7524
|
text: "".concat(previous.text).concat(incoming.text)
|
|
7161
7525
|
}), !previous.id && incoming.id ? {
|
|
7162
7526
|
id: incoming.id
|
|
@@ -7168,7 +7532,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
7168
7532
|
}
|
|
7169
7533
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
7170
7534
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
7171
|
-
return _object_spread_props$
|
|
7535
|
+
return _object_spread_props$c(_object_spread$g({}, incoming), {
|
|
7172
7536
|
text: incoming.text.slice(1)
|
|
7173
7537
|
});
|
|
7174
7538
|
}
|
|
@@ -7179,20 +7543,22 @@ function mergeComponentData(previous, incoming) {
|
|
|
7179
7543
|
var _incoming_data1;
|
|
7180
7544
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
7181
7545
|
var _param = _sliced_to_array$d(param, 2), key = _param[0], value = _param[1];
|
|
7182
|
-
|
|
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) {
|
|
7183
7549
|
acc[key] = value;
|
|
7184
7550
|
}
|
|
7185
7551
|
return acc;
|
|
7186
7552
|
}, {});
|
|
7187
7553
|
var _previous_data1;
|
|
7188
|
-
return _object_spread_props$
|
|
7189
|
-
data: _object_spread_props$
|
|
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), {
|
|
7190
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)
|
|
7191
7557
|
})
|
|
7192
7558
|
});
|
|
7193
7559
|
}
|
|
7194
7560
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
7195
|
-
return _object_spread$
|
|
7561
|
+
return _object_spread$g({
|
|
7196
7562
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
7197
7563
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
7198
7564
|
streamId: String(content.id)
|
|
@@ -7200,10 +7566,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
7200
7566
|
}
|
|
7201
7567
|
function resolveMessageAppendContext(options) {
|
|
7202
7568
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
7203
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$
|
|
7569
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$c(_object_spread$g({}, inferredContext), {
|
|
7204
7570
|
streamId: options.fallbackStreamId
|
|
7205
7571
|
}) : inferredContext;
|
|
7206
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$
|
|
7572
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$c(_object_spread$g({}, appendContext), {
|
|
7207
7573
|
joinHint: "none"
|
|
7208
7574
|
}) : appendContext;
|
|
7209
7575
|
return {
|
|
@@ -7224,7 +7590,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7224
7590
|
var previous = initial;
|
|
7225
7591
|
return {
|
|
7226
7592
|
resolve: function resolve(options) {
|
|
7227
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$
|
|
7593
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$c(_object_spread$g({}, options), {
|
|
7228
7594
|
previous: previous
|
|
7229
7595
|
}));
|
|
7230
7596
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -7259,13 +7625,13 @@ function resolveMessageAppendContext(options) {
|
|
|
7259
7625
|
return;
|
|
7260
7626
|
}
|
|
7261
7627
|
aiMessage.status = "answering";
|
|
7262
|
-
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, [
|
|
7263
7629
|
"previous"
|
|
7264
7630
|
]);
|
|
7265
|
-
var appendContext = _object_spread$
|
|
7631
|
+
var appendContext = _object_spread$g({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
7266
7632
|
var _appendContext_joinHint;
|
|
7267
7633
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
7268
|
-
var messageContext = joinHint ? _object_spread_props$
|
|
7634
|
+
var messageContext = joinHint ? _object_spread_props$c(_object_spread$g({}, appendContext), {
|
|
7269
7635
|
joinHint: joinHint
|
|
7270
7636
|
}) : appendContext;
|
|
7271
7637
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -7274,7 +7640,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7274
7640
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
7275
7641
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
7276
7642
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
7277
|
-
var mergedReasoning = _object_spread_props$
|
|
7643
|
+
var mergedReasoning = _object_spread_props$c(_object_spread$g({}, lastReasoning), {
|
|
7278
7644
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
7279
7645
|
});
|
|
7280
7646
|
aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -7295,7 +7661,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7295
7661
|
return isTextContent(item) && item.id === content.id;
|
|
7296
7662
|
});
|
|
7297
7663
|
if (index > -1) {
|
|
7298
|
-
var mergedContent = _object_spread$
|
|
7664
|
+
var mergedContent = _object_spread$g(_object_spread_props$c(_object_spread$g({}, chunks[index]), {
|
|
7299
7665
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
7300
7666
|
}), !chunks[index].id && content.id ? {
|
|
7301
7667
|
id: content.id
|
|
@@ -7318,7 +7684,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7318
7684
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
7319
7685
|
if (existingIndex > -1) {
|
|
7320
7686
|
var existing = chunks[existingIndex];
|
|
7321
|
-
var merged = _object_spread_props$
|
|
7687
|
+
var merged = _object_spread_props$c(_object_spread$g({}, existing), {
|
|
7322
7688
|
text: "".concat(existing.text).concat(content.text)
|
|
7323
7689
|
});
|
|
7324
7690
|
var nextChunks = _to_consumable_array$c(chunks);
|
|
@@ -7327,7 +7693,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7327
7693
|
return;
|
|
7328
7694
|
}
|
|
7329
7695
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
7330
|
-
var mergedLastContent = _object_spread_props$
|
|
7696
|
+
var mergedLastContent = _object_spread_props$c(_object_spread$g({}, lastContent), {
|
|
7331
7697
|
text: "".concat(lastContent.text).concat(content.text)
|
|
7332
7698
|
});
|
|
7333
7699
|
aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -7336,7 +7702,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7336
7702
|
return;
|
|
7337
7703
|
}
|
|
7338
7704
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
7339
|
-
var appended = _object_spread_props$
|
|
7705
|
+
var appended = _object_spread_props$c(_object_spread$g({}, content), {
|
|
7340
7706
|
text: separator + content.text
|
|
7341
7707
|
});
|
|
7342
7708
|
aiMessage.content = _to_consumable_array$c(chunks).concat([
|
|
@@ -7360,7 +7726,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7360
7726
|
aiMessage.content = nextChunks1;
|
|
7361
7727
|
}
|
|
7362
7728
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
7363
|
-
var resolvedContext = _object_spread$
|
|
7729
|
+
var resolvedContext = _object_spread$g({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
7364
7730
|
var nextText = filterText(incoming);
|
|
7365
7731
|
if (!nextText) {
|
|
7366
7732
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -7405,7 +7771,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7405
7771
|
return;
|
|
7406
7772
|
}
|
|
7407
7773
|
textIndexById.set(item.id, merged.length);
|
|
7408
|
-
merged.push(_object_spread$
|
|
7774
|
+
merged.push(_object_spread$g({}, item));
|
|
7409
7775
|
return;
|
|
7410
7776
|
}
|
|
7411
7777
|
var lastItem = merged[merged.length - 1];
|
|
@@ -7413,7 +7779,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7413
7779
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
7414
7780
|
return;
|
|
7415
7781
|
}
|
|
7416
|
-
merged.push(_object_spread$
|
|
7782
|
+
merged.push(_object_spread$g({}, item));
|
|
7417
7783
|
});
|
|
7418
7784
|
return merged.length ? merged : null;
|
|
7419
7785
|
}
|
|
@@ -7428,7 +7794,7 @@ function stringifyMessageContent(content) {
|
|
|
7428
7794
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
7429
7795
|
var itemContext = inferMessageAppendContext(item);
|
|
7430
7796
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7431
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
7797
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$g({}, itemContext, joinHint ? {
|
|
7432
7798
|
joinHint: joinHint
|
|
7433
7799
|
} : {}));
|
|
7434
7800
|
previousContext = itemContext;
|
|
@@ -7451,7 +7817,7 @@ function filterMessageText(content) {
|
|
|
7451
7817
|
}
|
|
7452
7818
|
var itemContext = inferMessageAppendContext(item);
|
|
7453
7819
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7454
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
7820
|
+
result = appendMessagePlainText(result, nextText, _object_spread$g({}, itemContext, joinHint ? {
|
|
7455
7821
|
joinHint: joinHint
|
|
7456
7822
|
} : {}));
|
|
7457
7823
|
previousContext = itemContext;
|
|
@@ -7898,20 +8264,27 @@ var AGENT_OUTPUT_MAX_PATHS = 128;
|
|
|
7898
8264
|
}, "Expected a relative file path");
|
|
7899
8265
|
/** An export selection is a list of exact files, never a filesystem search. */ var deliveryPathsSchema = v3.z.array(agentResultPathSchema.refine(function(path) {
|
|
7900
8266
|
return !/[*?\[\]{}]/.test(path);
|
|
7901
|
-
}, "Delivery paths must be exact relative file paths, without wildcards.
|
|
7902
|
-
/** Omission means no
|
|
8267
|
+
}, "Delivery paths must be exact relative file paths, without wildcards. Select paths explicitly when they are known.")).min(1).max(AGENT_OUTPUT_MAX_PATHS).optional().describe("Exact file paths relative to the task working directory. No wildcards/globs or directories. If filenames are determined during execution, collect them with delivery recovery once the exact paths are known.");
|
|
8268
|
+
/** Omission means no file delivery. A report file is optional and independent of artifact export mode. */ var agentOutputDeliverySchema = v3.z.discriminatedUnion("mode", [
|
|
7903
8269
|
v3.z.object({
|
|
7904
|
-
mode: v3.z.literal("none")
|
|
8270
|
+
mode: v3.z.literal("none"),
|
|
8271
|
+
reportPath: agentResultPathSchema.optional()
|
|
7905
8272
|
}).strict(),
|
|
7906
8273
|
v3.z.object({
|
|
7907
8274
|
mode: v3.z.literal("files"),
|
|
7908
|
-
paths: deliveryPathsSchema
|
|
8275
|
+
paths: deliveryPathsSchema,
|
|
8276
|
+
reportPath: agentResultPathSchema.optional()
|
|
7909
8277
|
}).strict(),
|
|
7910
8278
|
v3.z.object({
|
|
7911
8279
|
mode: v3.z.literal("archive"),
|
|
7912
|
-
paths: deliveryPathsSchema
|
|
8280
|
+
paths: deliveryPathsSchema,
|
|
8281
|
+
reportPath: agentResultPathSchema.optional()
|
|
7913
8282
|
}).strict()
|
|
7914
8283
|
]);
|
|
8284
|
+
/** A delivery retry cannot relaunch the executor or change its originally selected report. */ var agentDeliveryRecoverySchema = v3.z.object({
|
|
8285
|
+
expectedRevision: v3.z.number().int().nonnegative(),
|
|
8286
|
+
paths: deliveryPathsSchema
|
|
8287
|
+
}).strict();
|
|
7915
8288
|
|
|
7916
8289
|
var projectTaskSpecificationDigestSchema = v3.z.string().regex(/^sha256:[a-f0-9]{64}$/);
|
|
7917
8290
|
/** Only requirements belong here; status, progress, assignment and generic revision do not. */ var projectTaskSpecificationSchema = v3.z.object({
|
|
@@ -7963,7 +8336,7 @@ var projectTaskReviewerSchema = v3.z.object({
|
|
|
7963
8336
|
}).strict();
|
|
7964
8337
|
var projectTaskReworkSchema = v3.z.object({
|
|
7965
8338
|
reviewExecutionId: v3.z.string().uuid(),
|
|
7966
|
-
|
|
8339
|
+
feedback: v3.z.string().trim().min(1).max(16000).describe("Concrete rework instructions based on the referenced Markdown review.")
|
|
7967
8340
|
}).strict();
|
|
7968
8341
|
/** Relative paths are references, never access grants. Runtimes own snapshot exclusions and containment. */ var projectTaskRelativePathSchema = v3.z.string().min(1).max(1000).refine(function(value) {
|
|
7969
8342
|
return !/^(?:\/|[a-zA-Z]:)/.test(value) && !value.includes("\\") && !/[\x00-\x1f\x7f]/.test(value) && value.split("/").every(function(part) {
|
|
@@ -8077,85 +8450,20 @@ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
|
8077
8450
|
})
|
|
8078
8451
|
]).superRefine(validateReviewCandidate).optional()
|
|
8079
8452
|
}).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
8080
|
-
/**
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
"pass",
|
|
8084
|
-
"changes_required",
|
|
8085
|
-
"indeterminate"
|
|
8086
|
-
]),
|
|
8087
|
-
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
8088
|
-
implementationInvocationId: v3.z.string().uuid(),
|
|
8089
|
-
evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
8090
|
-
findings: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64),
|
|
8091
|
-
limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
8453
|
+
/** Markdown is authored evidence. Only an explicit coordinator decision accepts a task. */ var projectTaskReviewReportSchema = v3.z.object({
|
|
8454
|
+
format: v3.z.literal("markdown"),
|
|
8455
|
+
markdown: v3.z.string().min(1)
|
|
8092
8456
|
}).strict();
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
"
|
|
8098
|
-
"
|
|
8099
|
-
"coverage",
|
|
8100
|
-
"suggestion"
|
|
8457
|
+
// Agent-facing references bind an observed candidate; authorization remains with the host.
|
|
8458
|
+
var projectTaskDecisionToolInputSchema = v3.z.object({
|
|
8459
|
+
decisionRef: v3.z.string().max(200).regex(/^pd1\/[0-9a-f-]{36}\/[0-9a-f-]{36}\/[0-9a-f]{64}$/),
|
|
8460
|
+
outcome: v3.z.enum([
|
|
8461
|
+
"accept",
|
|
8462
|
+
"rework"
|
|
8101
8463
|
]),
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
requirement: v3.z.string().max(4000).optional(),
|
|
8105
|
-
reproduction: v3.z.string().max(8000).optional(),
|
|
8106
|
-
expected: v3.z.string().max(4000).optional(),
|
|
8107
|
-
actual: v3.z.string().max(8000).optional()
|
|
8464
|
+
rationale: v3.z.string().trim().min(1).max(8000),
|
|
8465
|
+
checks: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64).optional()
|
|
8108
8466
|
}).strict();
|
|
8109
|
-
var projectTaskExecutionReviewReportSchema = v3.z.object({
|
|
8110
|
-
version: v3.z.literal(2),
|
|
8111
|
-
mode: v3.z.literal("execution"),
|
|
8112
|
-
verdict: v3.z.enum([
|
|
8113
|
-
"pass",
|
|
8114
|
-
"changes_required",
|
|
8115
|
-
"indeterminate"
|
|
8116
|
-
]),
|
|
8117
|
-
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
8118
|
-
implementationInvocationId: v3.z.string().uuid(),
|
|
8119
|
-
evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
8120
|
-
summary: v3.z.string().trim().min(1).max(8000),
|
|
8121
|
-
checks: v3.z.array(v3.z.object({
|
|
8122
|
-
description: v3.z.string().trim().min(1).max(4000),
|
|
8123
|
-
outcome: v3.z.enum([
|
|
8124
|
-
"passed",
|
|
8125
|
-
"failed",
|
|
8126
|
-
"blocked"
|
|
8127
|
-
]),
|
|
8128
|
-
command: v3.z.string().max(4000).optional(),
|
|
8129
|
-
expected: v3.z.string().max(4000).optional(),
|
|
8130
|
-
actual: v3.z.string().trim().min(1).max(8000),
|
|
8131
|
-
evidencePaths: v3.z.array(projectTaskEvidencePathSchema).max(64).optional()
|
|
8132
|
-
}).strict()).min(1).max(64),
|
|
8133
|
-
findings: v3.z.array(projectTaskReviewFindingSchema).max(64),
|
|
8134
|
-
limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
8135
|
-
}).strict().superRefine(function(report, context) {
|
|
8136
|
-
if (new Set(report.findings.map(function(item) {
|
|
8137
|
-
return item.id;
|
|
8138
|
-
})).size !== report.findings.length) context.addIssue({
|
|
8139
|
-
code: "custom",
|
|
8140
|
-
path: [
|
|
8141
|
-
"findings"
|
|
8142
|
-
],
|
|
8143
|
-
message: "Finding IDs must be unique."
|
|
8144
|
-
});
|
|
8145
|
-
if (report.verdict === "pass" && report.findings.some(function(item) {
|
|
8146
|
-
return item.blocking;
|
|
8147
|
-
})) context.addIssue({
|
|
8148
|
-
code: "custom",
|
|
8149
|
-
path: [
|
|
8150
|
-
"verdict"
|
|
8151
|
-
],
|
|
8152
|
-
message: "A passing report cannot contain blocking findings."
|
|
8153
|
-
});
|
|
8154
|
-
});
|
|
8155
|
-
var projectTaskReviewReportSchema = v3.z.union([
|
|
8156
|
-
projectTaskEvidenceReviewReportSchema,
|
|
8157
|
-
projectTaskExecutionReviewReportSchema
|
|
8158
|
-
]);
|
|
8159
8467
|
var projectTaskDecisionInputSchema = v3.z.object({
|
|
8160
8468
|
requestId: v3.z.string().uuid(),
|
|
8161
8469
|
taskId: v3.z.string().uuid(),
|
|
@@ -8169,7 +8477,7 @@ var projectTaskDecisionInputSchema = v3.z.object({
|
|
|
8169
8477
|
"rework"
|
|
8170
8478
|
]),
|
|
8171
8479
|
rationale: v3.z.string().trim().min(1).max(8000),
|
|
8172
|
-
checks: v3.z.array(v3.z.string().trim().min(1).max(4000)).
|
|
8480
|
+
checks: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
8173
8481
|
}).strict();
|
|
8174
8482
|
var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
|
|
8175
8483
|
actorId: v3.z.string().uuid(),
|
|
@@ -8179,6 +8487,11 @@ var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
|
|
|
8179
8487
|
"project_agent"
|
|
8180
8488
|
]),
|
|
8181
8489
|
executionId: v3.z.string().uuid().optional(),
|
|
8490
|
+
reviewResult: v3.z.object({
|
|
8491
|
+
invocationId: v3.z.string().uuid(),
|
|
8492
|
+
revision: v3.z.number().int().nonnegative(),
|
|
8493
|
+
sha256: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
8494
|
+
}).strict().optional(),
|
|
8182
8495
|
decidedAt: v3.z.string().datetime(),
|
|
8183
8496
|
taskRevision: v3.z.number().int().positive()
|
|
8184
8497
|
}).strict();
|
|
@@ -8276,7 +8589,7 @@ var projectPipelineEdgeSchema = v3.z.object({
|
|
|
8276
8589
|
outcome: projectPipelineKeySchema.optional()
|
|
8277
8590
|
}).strict();
|
|
8278
8591
|
|
|
8279
|
-
function _define_property$
|
|
8592
|
+
function _define_property$f(obj, key, value) {
|
|
8280
8593
|
if (key in obj) {
|
|
8281
8594
|
Object.defineProperty(obj, key, {
|
|
8282
8595
|
value: value,
|
|
@@ -8289,7 +8602,7 @@ function _define_property$e(obj, key, value) {
|
|
|
8289
8602
|
}
|
|
8290
8603
|
return obj;
|
|
8291
8604
|
}
|
|
8292
|
-
function _object_spread$
|
|
8605
|
+
function _object_spread$f(target) {
|
|
8293
8606
|
for(var i = 1; i < arguments.length; i++){
|
|
8294
8607
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8295
8608
|
var ownKeys = Object.keys(source);
|
|
@@ -8299,12 +8612,12 @@ function _object_spread$e(target) {
|
|
|
8299
8612
|
}));
|
|
8300
8613
|
}
|
|
8301
8614
|
ownKeys.forEach(function(key) {
|
|
8302
|
-
_define_property$
|
|
8615
|
+
_define_property$f(target, key, source[key]);
|
|
8303
8616
|
});
|
|
8304
8617
|
}
|
|
8305
8618
|
return target;
|
|
8306
8619
|
}
|
|
8307
|
-
function ownKeys$
|
|
8620
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
8308
8621
|
var keys = Object.keys(object);
|
|
8309
8622
|
if (Object.getOwnPropertySymbols) {
|
|
8310
8623
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8312,12 +8625,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
8312
8625
|
}
|
|
8313
8626
|
return keys;
|
|
8314
8627
|
}
|
|
8315
|
-
function _object_spread_props$
|
|
8628
|
+
function _object_spread_props$b(target, source) {
|
|
8316
8629
|
source = source != null ? source : {};
|
|
8317
8630
|
if (Object.getOwnPropertyDescriptors) {
|
|
8318
8631
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8319
8632
|
} else {
|
|
8320
|
-
ownKeys$
|
|
8633
|
+
ownKeys$b(Object(source)).forEach(function(key) {
|
|
8321
8634
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8322
8635
|
});
|
|
8323
8636
|
}
|
|
@@ -8332,32 +8645,35 @@ var base$1 = {
|
|
|
8332
8645
|
};
|
|
8333
8646
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
8334
8647
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
8335
|
-
v3.z.object(_object_spread_props$
|
|
8648
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8336
8649
|
kind: v3.z.literal("work"),
|
|
8337
8650
|
laneKey: projectPipelineKeySchema,
|
|
8651
|
+
presentation: v3.z.object({
|
|
8652
|
+
foldIntoApproval: projectPipelineKeySchema
|
|
8653
|
+
}).strict().optional(),
|
|
8338
8654
|
operationRef: projectPipelineRefSchema,
|
|
8339
8655
|
executorSlot: projectPipelineKeySchema,
|
|
8340
8656
|
completionRef: projectPipelineRefSchema,
|
|
8341
8657
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
8342
8658
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
8343
8659
|
})).strict(),
|
|
8344
|
-
v3.z.object(_object_spread_props$
|
|
8660
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8345
8661
|
kind: v3.z.literal("fork")
|
|
8346
8662
|
})).strict(),
|
|
8347
|
-
v3.z.object(_object_spread_props$
|
|
8663
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8348
8664
|
kind: v3.z.literal("join"),
|
|
8349
8665
|
join: v3.z.object({
|
|
8350
8666
|
mode: v3.z.literal("all_selected"),
|
|
8351
8667
|
accept: v3.z.literal("completed")
|
|
8352
8668
|
}).strict()
|
|
8353
8669
|
})).strict(),
|
|
8354
|
-
v3.z.object(_object_spread_props$
|
|
8670
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8355
8671
|
kind: v3.z.literal("router"),
|
|
8356
8672
|
policyRef: projectPipelineRefSchema,
|
|
8357
8673
|
outcomes: outcomes,
|
|
8358
8674
|
unmatched: v3.z.literal("block")
|
|
8359
8675
|
})).strict(),
|
|
8360
|
-
v3.z.object(_object_spread_props$
|
|
8676
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8361
8677
|
kind: v3.z.literal("human_gate"),
|
|
8362
8678
|
laneKey: projectPipelineKeySchema,
|
|
8363
8679
|
policyRef: projectPipelineRefSchema,
|
|
@@ -8365,12 +8681,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8365
8681
|
outcomes: outcomes,
|
|
8366
8682
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
8367
8683
|
})).strict(),
|
|
8368
|
-
v3.z.object(_object_spread_props$
|
|
8684
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8369
8685
|
kind: v3.z.literal("external_wait"),
|
|
8370
8686
|
laneKey: projectPipelineKeySchema,
|
|
8371
8687
|
subscriptionRef: projectPipelineRefSchema
|
|
8372
8688
|
})).strict(),
|
|
8373
|
-
v3.z.object(_object_spread_props$
|
|
8689
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, base$1), {
|
|
8374
8690
|
kind: v3.z.literal("terminal"),
|
|
8375
8691
|
outcome: projectPipelineKeySchema,
|
|
8376
8692
|
disposition: v3.z.enum([
|
|
@@ -8846,9 +9162,24 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
8846
9162
|
if (!byKey.has(edge.from) || !byKey.has(edge.to)) issue("EDGE_NODE_NOT_FOUND", "edges", index);
|
|
8847
9163
|
});
|
|
8848
9164
|
nodes.forEach(function(node, index) {
|
|
8849
|
-
var _roles_get, _incoming_get;
|
|
9165
|
+
var _node_presentation, _roles_get, _incoming_get;
|
|
8850
9166
|
if (!stages.has(node.stageKey)) issue("STAGE_NOT_FOUND", "nodes", index, "stageKey");
|
|
8851
9167
|
if ("laneKey" in node && !lanes.has(node.laneKey)) issue("LANE_NOT_FOUND", "nodes", index, "laneKey");
|
|
9168
|
+
if (node.kind === "work" && ((_node_presentation = node.presentation) === null || _node_presentation === void 0 ? void 0 : _node_presentation.foldIntoApproval)) {
|
|
9169
|
+
var _roles_get1;
|
|
9170
|
+
var approval = byKey.get(node.presentation.foldIntoApproval);
|
|
9171
|
+
var _incoming_get1;
|
|
9172
|
+
var entries = (_incoming_get1 = incoming.get(node.key)) !== null && _incoming_get1 !== void 0 ? _incoming_get1 : [];
|
|
9173
|
+
if ((approval === null || approval === void 0 ? void 0 : approval.kind) !== "human_gate" || !entries.length || entries.some(function(edge) {
|
|
9174
|
+
return edge.from !== approval.key;
|
|
9175
|
+
})) {
|
|
9176
|
+
issue("APPROVAL_STEP_PARENT_INVALID", "nodes", index, "presentation", "foldIntoApproval");
|
|
9177
|
+
}
|
|
9178
|
+
var lane = lanes.get(node.laneKey);
|
|
9179
|
+
if (lane && !((_roles_get1 = roles.get(lane.roleKey)) === null || _roles_get1 === void 0 ? void 0 : _roles_get1.allowedKinds.includes("service"))) {
|
|
9180
|
+
issue("APPROVAL_STEP_SERVICE_REQUIRED", "nodes", index, "presentation", "foldIntoApproval");
|
|
9181
|
+
}
|
|
9182
|
+
}
|
|
8852
9183
|
if (node.kind === "human_gate" && !((_roles_get = roles.get(node.candidateRoleKey)) === null || _roles_get === void 0 ? void 0 : _roles_get.allowedKinds.includes("human"))) {
|
|
8853
9184
|
issue("HUMAN_ROLE_REQUIRED", "nodes", index, "candidateRoleKey");
|
|
8854
9185
|
}
|
|
@@ -9019,7 +9350,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
9019
9350
|
|
|
9020
9351
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
9021
9352
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
9022
|
-
function _define_property$
|
|
9353
|
+
function _define_property$e(obj, key, value) {
|
|
9023
9354
|
if (key in obj) {
|
|
9024
9355
|
Object.defineProperty(obj, key, {
|
|
9025
9356
|
value: value,
|
|
@@ -9032,7 +9363,7 @@ function _define_property$d(obj, key, value) {
|
|
|
9032
9363
|
}
|
|
9033
9364
|
return obj;
|
|
9034
9365
|
}
|
|
9035
|
-
function _object_spread$
|
|
9366
|
+
function _object_spread$e(target) {
|
|
9036
9367
|
for(var i = 1; i < arguments.length; i++){
|
|
9037
9368
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9038
9369
|
var ownKeys = Object.keys(source);
|
|
@@ -9042,12 +9373,12 @@ function _object_spread$d(target) {
|
|
|
9042
9373
|
}));
|
|
9043
9374
|
}
|
|
9044
9375
|
ownKeys.forEach(function(key) {
|
|
9045
|
-
_define_property$
|
|
9376
|
+
_define_property$e(target, key, source[key]);
|
|
9046
9377
|
});
|
|
9047
9378
|
}
|
|
9048
9379
|
return target;
|
|
9049
9380
|
}
|
|
9050
|
-
function ownKeys$
|
|
9381
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
9051
9382
|
var keys = Object.keys(object);
|
|
9052
9383
|
if (Object.getOwnPropertySymbols) {
|
|
9053
9384
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9055,12 +9386,12 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
9055
9386
|
}
|
|
9056
9387
|
return keys;
|
|
9057
9388
|
}
|
|
9058
|
-
function _object_spread_props$
|
|
9389
|
+
function _object_spread_props$a(target, source) {
|
|
9059
9390
|
source = source != null ? source : {};
|
|
9060
9391
|
if (Object.getOwnPropertyDescriptors) {
|
|
9061
9392
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9062
9393
|
} else {
|
|
9063
|
-
ownKeys$
|
|
9394
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
9064
9395
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9065
9396
|
});
|
|
9066
9397
|
}
|
|
@@ -9092,7 +9423,7 @@ var common = {
|
|
|
9092
9423
|
};
|
|
9093
9424
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
9094
9425
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9095
|
-
v3.z.object(_object_spread_props$
|
|
9426
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, common), {
|
|
9096
9427
|
executionAuthority: v3.z.literal("provider"),
|
|
9097
9428
|
providerRef: projectPipelineRefSchema,
|
|
9098
9429
|
topology: v3.z.object({
|
|
@@ -9101,7 +9432,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
9101
9432
|
}).strict(),
|
|
9102
9433
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
9103
9434
|
})).strict(),
|
|
9104
|
-
v3.z.object(_object_spread_props$
|
|
9435
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, common), {
|
|
9105
9436
|
executionAuthority: v3.z.literal("platform"),
|
|
9106
9437
|
topology: v3.z.object({
|
|
9107
9438
|
source: v3.z.literal("definition")
|
|
@@ -9152,6 +9483,7 @@ var projectPipelineDefinitionSchema = projectPipelineDefinitionShapeSchema.super
|
|
|
9152
9483
|
/** Admission controls for host-native LLM requests; provider-internal retries and currency are not hard quotas. */ var projectPipelineNativeModelBudgetSchema = v3.z.object({
|
|
9153
9484
|
maxCalls: v3.z.number().int().min(1).max(1000000),
|
|
9154
9485
|
maxTokens: v3.z.number().int().min(1).max(1000000000000),
|
|
9486
|
+
// Minimum hold; native admission reserves the larger current input estimate plus output ceiling.
|
|
9155
9487
|
reservationTokens: v3.z.number().int().min(1).max(1000000000)
|
|
9156
9488
|
}).strict().superRefine(function(value, context) {
|
|
9157
9489
|
if (value.reservationTokens > value.maxTokens) context.addIssue({
|
|
@@ -9380,8 +9712,11 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9380
9712
|
var _step_value1 = _sliced_to_array$b(_step3.value, 2), index = _step_value1[0], node = _step_value1[1];
|
|
9381
9713
|
var _binding_roleBindings_node_candidateRoleKey;
|
|
9382
9714
|
if (node.kind === "work") {
|
|
9383
|
-
var _binding_executorBindings1, _lanes_get;
|
|
9715
|
+
var _binding_executorBindings1, _node_presentation, _lanes_get;
|
|
9384
9716
|
var executor = (_binding_executorBindings1 = binding.executorBindings) === null || _binding_executorBindings1 === void 0 ? void 0 : _binding_executorBindings1[node.executorSlot];
|
|
9717
|
+
if (((_node_presentation = node.presentation) === null || _node_presentation === void 0 ? void 0 : _node_presentation.foldIntoApproval) && executor && executor.kind !== "service") {
|
|
9718
|
+
issue("APPROVAL_STEP_SERVICE_REQUIRED", "binding", "executorBindings", node.executorSlot);
|
|
9719
|
+
}
|
|
9385
9720
|
// Native Assistant/file tools need a separate enforcement bridge before opting in.
|
|
9386
9721
|
if (node.resourceResolverRef && (executor === null || executor === void 0 ? void 0 : executor.kind) !== "service") {
|
|
9387
9722
|
issue("RESOURCE_EXECUTOR_UNSUPPORTED", "template", "nodes", index, "resourceResolverRef");
|
|
@@ -9433,7 +9768,85 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9433
9768
|
}
|
|
9434
9769
|
});
|
|
9435
9770
|
|
|
9436
|
-
function
|
|
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) {
|
|
9437
9850
|
if (key in obj) {
|
|
9438
9851
|
Object.defineProperty(obj, key, {
|
|
9439
9852
|
value: value,
|
|
@@ -9446,7 +9859,7 @@ function _define_property$c(obj, key, value) {
|
|
|
9446
9859
|
}
|
|
9447
9860
|
return obj;
|
|
9448
9861
|
}
|
|
9449
|
-
function _object_spread$
|
|
9862
|
+
function _object_spread$d(target) {
|
|
9450
9863
|
for(var i = 1; i < arguments.length; i++){
|
|
9451
9864
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9452
9865
|
var ownKeys = Object.keys(source);
|
|
@@ -9456,12 +9869,12 @@ function _object_spread$c(target) {
|
|
|
9456
9869
|
}));
|
|
9457
9870
|
}
|
|
9458
9871
|
ownKeys.forEach(function(key) {
|
|
9459
|
-
_define_property$
|
|
9872
|
+
_define_property$d(target, key, source[key]);
|
|
9460
9873
|
});
|
|
9461
9874
|
}
|
|
9462
9875
|
return target;
|
|
9463
9876
|
}
|
|
9464
|
-
function ownKeys$
|
|
9877
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
9465
9878
|
var keys = Object.keys(object);
|
|
9466
9879
|
if (Object.getOwnPropertySymbols) {
|
|
9467
9880
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9469,12 +9882,12 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
9469
9882
|
}
|
|
9470
9883
|
return keys;
|
|
9471
9884
|
}
|
|
9472
|
-
function _object_spread_props$
|
|
9885
|
+
function _object_spread_props$9(target, source) {
|
|
9473
9886
|
source = source != null ? source : {};
|
|
9474
9887
|
if (Object.getOwnPropertyDescriptors) {
|
|
9475
9888
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9476
9889
|
} else {
|
|
9477
|
-
ownKeys$
|
|
9890
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
9478
9891
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9479
9892
|
});
|
|
9480
9893
|
}
|
|
@@ -9490,13 +9903,13 @@ var definitionRef = v3.z.object({
|
|
|
9490
9903
|
templateRef: projectPipelineRefSchema,
|
|
9491
9904
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
9492
9905
|
}).strict();
|
|
9493
|
-
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$
|
|
9906
|
+
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9494
9907
|
definition: definitionRef,
|
|
9495
9908
|
revision: v3.z.number().int().positive(),
|
|
9496
9909
|
configuration: projectPipelineBindingSchema
|
|
9497
9910
|
})).strict();
|
|
9498
9911
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9499
|
-
v3.z.object(_object_spread_props$
|
|
9912
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9500
9913
|
executionAuthority: v3.z.literal("provider"),
|
|
9501
9914
|
providerRef: projectPipelineRefSchema,
|
|
9502
9915
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9507,7 +9920,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9507
9920
|
}).strict(),
|
|
9508
9921
|
revision: v3.z.number().int().nonnegative()
|
|
9509
9922
|
})).strict(),
|
|
9510
|
-
v3.z.object(_object_spread_props$
|
|
9923
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9511
9924
|
executionAuthority: v3.z.literal("platform"),
|
|
9512
9925
|
bindingId: v3.z.string().uuid(),
|
|
9513
9926
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9519,7 +9932,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9519
9932
|
revision: v3.z.number().int().nonnegative()
|
|
9520
9933
|
})).strict()
|
|
9521
9934
|
]);
|
|
9522
|
-
var projectPipelineRunSchema = v3.z.object(_object_spread_props$
|
|
9935
|
+
var projectPipelineRunSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9523
9936
|
instanceId: v3.z.string().uuid(),
|
|
9524
9937
|
triggerKey: v3.z.string().min(1).max(500),
|
|
9525
9938
|
definition: definitionRef,
|
|
@@ -9591,7 +10004,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
9591
10004
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
9592
10005
|
generation: v3.z.number().int().positive()
|
|
9593
10006
|
}).strict();
|
|
9594
|
-
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$
|
|
10007
|
+
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9595
10008
|
runId: v3.z.string().uuid(),
|
|
9596
10009
|
sequence: v3.z.number().int().positive(),
|
|
9597
10010
|
generation: v3.z.number().int().positive(),
|
|
@@ -9607,7 +10020,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spre
|
|
|
9607
10020
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
9608
10021
|
supersedes: v3.z.string().uuid().nullable()
|
|
9609
10022
|
})).strict();
|
|
9610
|
-
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$
|
|
10023
|
+
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$9(_object_spread$d({}, scopedIdentity), {
|
|
9611
10024
|
roundId: v3.z.string().uuid(),
|
|
9612
10025
|
nodeKey: projectPipelineKeySchema,
|
|
9613
10026
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -9619,7 +10032,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_obje
|
|
|
9619
10032
|
revision: v3.z.number().int().nonnegative()
|
|
9620
10033
|
})).strict();
|
|
9621
10034
|
|
|
9622
|
-
function _define_property$
|
|
10035
|
+
function _define_property$c(obj, key, value) {
|
|
9623
10036
|
if (key in obj) {
|
|
9624
10037
|
Object.defineProperty(obj, key, {
|
|
9625
10038
|
value: value,
|
|
@@ -9632,7 +10045,7 @@ function _define_property$b(obj, key, value) {
|
|
|
9632
10045
|
}
|
|
9633
10046
|
return obj;
|
|
9634
10047
|
}
|
|
9635
|
-
function _object_spread$
|
|
10048
|
+
function _object_spread$c(target) {
|
|
9636
10049
|
for(var i = 1; i < arguments.length; i++){
|
|
9637
10050
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9638
10051
|
var ownKeys = Object.keys(source);
|
|
@@ -9642,12 +10055,12 @@ function _object_spread$b(target) {
|
|
|
9642
10055
|
}));
|
|
9643
10056
|
}
|
|
9644
10057
|
ownKeys.forEach(function(key) {
|
|
9645
|
-
_define_property$
|
|
10058
|
+
_define_property$c(target, key, source[key]);
|
|
9646
10059
|
});
|
|
9647
10060
|
}
|
|
9648
10061
|
return target;
|
|
9649
10062
|
}
|
|
9650
|
-
function ownKeys$
|
|
10063
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
9651
10064
|
var keys = Object.keys(object);
|
|
9652
10065
|
if (Object.getOwnPropertySymbols) {
|
|
9653
10066
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9655,12 +10068,12 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
9655
10068
|
}
|
|
9656
10069
|
return keys;
|
|
9657
10070
|
}
|
|
9658
|
-
function _object_spread_props$
|
|
10071
|
+
function _object_spread_props$8(target, source) {
|
|
9659
10072
|
source = source != null ? source : {};
|
|
9660
10073
|
if (Object.getOwnPropertyDescriptors) {
|
|
9661
10074
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9662
10075
|
} else {
|
|
9663
|
-
ownKeys$
|
|
10076
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
9664
10077
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9665
10078
|
});
|
|
9666
10079
|
}
|
|
@@ -9677,17 +10090,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9677
10090
|
])
|
|
9678
10091
|
}).strict();
|
|
9679
10092
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
|
|
9680
|
-
v3.z.object(_object_spread_props$
|
|
10093
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9681
10094
|
kind: v3.z.literal("schema")
|
|
9682
10095
|
})).strict(),
|
|
9683
|
-
v3.z.object(_object_spread_props$
|
|
10096
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9684
10097
|
kind: v3.z.literal("resource")
|
|
9685
10098
|
})).strict(),
|
|
9686
|
-
v3.z.object(_object_spread_props$
|
|
10099
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9687
10100
|
kind: v3.z.literal("subject"),
|
|
9688
10101
|
outputSchemaRef: projectPipelineRefSchema
|
|
9689
10102
|
})).strict(),
|
|
9690
|
-
v3.z.object(_object_spread_props$
|
|
10103
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9691
10104
|
kind: v3.z.literal("operation"),
|
|
9692
10105
|
effects: v3.z.enum([
|
|
9693
10106
|
"read_only",
|
|
@@ -9706,32 +10119,32 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9706
10119
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
9707
10120
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9708
10121
|
})).strict(),
|
|
9709
|
-
v3.z.object(_object_spread_props$
|
|
10122
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9710
10123
|
kind: v3.z.literal("completion")
|
|
9711
10124
|
})).strict(),
|
|
9712
|
-
v3.z.object(_object_spread_props$
|
|
10125
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9713
10126
|
kind: v3.z.literal("policy"),
|
|
9714
10127
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
9715
10128
|
})).strict(),
|
|
9716
|
-
v3.z.object(_object_spread_props$
|
|
10129
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9717
10130
|
kind: v3.z.literal("projection")
|
|
9718
10131
|
})).strict(),
|
|
9719
|
-
v3.z.object(_object_spread_props$
|
|
10132
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9720
10133
|
kind: v3.z.literal("presentation")
|
|
9721
10134
|
})).strict(),
|
|
9722
|
-
v3.z.object(_object_spread_props$
|
|
10135
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9723
10136
|
kind: v3.z.literal("action")
|
|
9724
10137
|
})).strict(),
|
|
9725
|
-
v3.z.object(_object_spread_props$
|
|
10138
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9726
10139
|
kind: v3.z.literal("metric")
|
|
9727
10140
|
})).strict(),
|
|
9728
|
-
v3.z.object(_object_spread_props$
|
|
10141
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9729
10142
|
kind: v3.z.literal("dimension")
|
|
9730
10143
|
})).strict(),
|
|
9731
|
-
v3.z.object(_object_spread_props$
|
|
10144
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9732
10145
|
kind: v3.z.literal("trigger")
|
|
9733
10146
|
})).strict(),
|
|
9734
|
-
v3.z.object(_object_spread_props$
|
|
10147
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, reference$1), {
|
|
9735
10148
|
kind: v3.z.literal("subscription"),
|
|
9736
10149
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9737
10150
|
})).strict()
|
|
@@ -10498,7 +10911,7 @@ var tombstone = v3.z.object({
|
|
|
10498
10911
|
]);
|
|
10499
10912
|
});
|
|
10500
10913
|
|
|
10501
|
-
function _define_property$
|
|
10914
|
+
function _define_property$b(obj, key, value) {
|
|
10502
10915
|
if (key in obj) {
|
|
10503
10916
|
Object.defineProperty(obj, key, {
|
|
10504
10917
|
value: value,
|
|
@@ -10511,7 +10924,7 @@ function _define_property$a(obj, key, value) {
|
|
|
10511
10924
|
}
|
|
10512
10925
|
return obj;
|
|
10513
10926
|
}
|
|
10514
|
-
function _object_spread$
|
|
10927
|
+
function _object_spread$b(target) {
|
|
10515
10928
|
for(var i = 1; i < arguments.length; i++){
|
|
10516
10929
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10517
10930
|
var ownKeys = Object.keys(source);
|
|
@@ -10521,12 +10934,12 @@ function _object_spread$a(target) {
|
|
|
10521
10934
|
}));
|
|
10522
10935
|
}
|
|
10523
10936
|
ownKeys.forEach(function(key) {
|
|
10524
|
-
_define_property$
|
|
10937
|
+
_define_property$b(target, key, source[key]);
|
|
10525
10938
|
});
|
|
10526
10939
|
}
|
|
10527
10940
|
return target;
|
|
10528
10941
|
}
|
|
10529
|
-
function ownKeys$
|
|
10942
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
10530
10943
|
var keys = Object.keys(object);
|
|
10531
10944
|
if (Object.getOwnPropertySymbols) {
|
|
10532
10945
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10534,12 +10947,12 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
10534
10947
|
}
|
|
10535
10948
|
return keys;
|
|
10536
10949
|
}
|
|
10537
|
-
function _object_spread_props$
|
|
10950
|
+
function _object_spread_props$7(target, source) {
|
|
10538
10951
|
source = source != null ? source : {};
|
|
10539
10952
|
if (Object.getOwnPropertyDescriptors) {
|
|
10540
10953
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10541
10954
|
} else {
|
|
10542
|
-
ownKeys$
|
|
10955
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
10543
10956
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10544
10957
|
});
|
|
10545
10958
|
}
|
|
@@ -10577,7 +10990,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10577
10990
|
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
10578
10991
|
}
|
|
10579
10992
|
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
|
|
10580
|
-
v3.z.object(_object_spread_props$
|
|
10993
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
|
|
10581
10994
|
source: v3.z.literal("unavailable"),
|
|
10582
10995
|
subject: subject,
|
|
10583
10996
|
state: v3.z.literal("unknown"),
|
|
@@ -10587,7 +11000,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10587
11000
|
"unsupported"
|
|
10588
11001
|
])
|
|
10589
11002
|
})).strict(),
|
|
10590
|
-
v3.z.object(_object_spread_props$
|
|
11003
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
|
|
10591
11004
|
source: v3.z.literal("platform"),
|
|
10592
11005
|
subject: subject,
|
|
10593
11006
|
scope: v3.z.literal("owned_subtree"),
|
|
@@ -10609,7 +11022,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10609
11022
|
executionId: v3.z.string().uuid(),
|
|
10610
11023
|
threadId: v3.z.string().min(1)
|
|
10611
11024
|
})).strict(),
|
|
10612
|
-
v3.z.object(_object_spread_props$
|
|
11025
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
|
|
10613
11026
|
source: v3.z.literal("provider"),
|
|
10614
11027
|
subject: v3.z.object({
|
|
10615
11028
|
kind: v3.z.literal("invocation"),
|
|
@@ -10627,7 +11040,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10627
11040
|
receiptKey: v3.z.string().min(1).max(500),
|
|
10628
11041
|
target: executionRuntimeTargetSchema.optional()
|
|
10629
11042
|
})).strict(),
|
|
10630
|
-
v3.z.object(_object_spread_props$
|
|
11043
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
|
|
10631
11044
|
source: v3.z.literal("native_graph"),
|
|
10632
11045
|
subject: v3.z.object({
|
|
10633
11046
|
kind: v3.z.literal("invocation"),
|
|
@@ -10638,7 +11051,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10638
11051
|
outcome: v3.z.literal("cancelled"),
|
|
10639
11052
|
executionId: v3.z.string().min(1)
|
|
10640
11053
|
})).strict(),
|
|
10641
|
-
v3.z.object(_object_spread_props$
|
|
11054
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, base), {
|
|
10642
11055
|
source: v3.z.literal("host_admission"),
|
|
10643
11056
|
subject: v3.z.object({
|
|
10644
11057
|
kind: v3.z.literal("invocation"),
|
|
@@ -10665,7 +11078,7 @@ function unknownExecutionControl(subject) {
|
|
|
10665
11078
|
};
|
|
10666
11079
|
}
|
|
10667
11080
|
|
|
10668
|
-
function _define_property$
|
|
11081
|
+
function _define_property$a(obj, key, value) {
|
|
10669
11082
|
if (key in obj) {
|
|
10670
11083
|
Object.defineProperty(obj, key, {
|
|
10671
11084
|
value: value,
|
|
@@ -10678,7 +11091,7 @@ function _define_property$9(obj, key, value) {
|
|
|
10678
11091
|
}
|
|
10679
11092
|
return obj;
|
|
10680
11093
|
}
|
|
10681
|
-
function _object_spread$
|
|
11094
|
+
function _object_spread$a(target) {
|
|
10682
11095
|
for(var i = 1; i < arguments.length; i++){
|
|
10683
11096
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10684
11097
|
var ownKeys = Object.keys(source);
|
|
@@ -10688,12 +11101,12 @@ function _object_spread$9(target) {
|
|
|
10688
11101
|
}));
|
|
10689
11102
|
}
|
|
10690
11103
|
ownKeys.forEach(function(key) {
|
|
10691
|
-
_define_property$
|
|
11104
|
+
_define_property$a(target, key, source[key]);
|
|
10692
11105
|
});
|
|
10693
11106
|
}
|
|
10694
11107
|
return target;
|
|
10695
11108
|
}
|
|
10696
|
-
function ownKeys$
|
|
11109
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
10697
11110
|
var keys = Object.keys(object);
|
|
10698
11111
|
if (Object.getOwnPropertySymbols) {
|
|
10699
11112
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10701,12 +11114,12 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
10701
11114
|
}
|
|
10702
11115
|
return keys;
|
|
10703
11116
|
}
|
|
10704
|
-
function _object_spread_props$
|
|
11117
|
+
function _object_spread_props$6(target, source) {
|
|
10705
11118
|
source = source != null ? source : {};
|
|
10706
11119
|
if (Object.getOwnPropertyDescriptors) {
|
|
10707
11120
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10708
11121
|
} else {
|
|
10709
|
-
ownKeys$
|
|
11122
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
10710
11123
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10711
11124
|
});
|
|
10712
11125
|
}
|
|
@@ -10773,20 +11186,20 @@ var receipt = {
|
|
|
10773
11186
|
]).optional()
|
|
10774
11187
|
};
|
|
10775
11188
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
10776
|
-
v3.z.object(_object_spread_props$
|
|
11189
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
|
|
10777
11190
|
status: v3.z.literal("pending")
|
|
10778
11191
|
})).strict(),
|
|
10779
|
-
v3.z.object(_object_spread_props$
|
|
11192
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
|
|
10780
11193
|
status: v3.z.literal("succeeded"),
|
|
10781
11194
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
10782
11195
|
return Object.keys(value).length <= 100;
|
|
10783
11196
|
}, "Too many output ports")
|
|
10784
11197
|
})).strict(),
|
|
10785
|
-
v3.z.object(_object_spread_props$
|
|
11198
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
|
|
10786
11199
|
status: v3.z.literal("failed"),
|
|
10787
11200
|
code: projectPipelineKeySchema
|
|
10788
11201
|
})).strict(),
|
|
10789
|
-
v3.z.object(_object_spread_props$
|
|
11202
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, receipt), {
|
|
10790
11203
|
status: v3.z.literal("cancelled")
|
|
10791
11204
|
})).strict(),
|
|
10792
11205
|
v3.z.object({
|
|
@@ -10868,7 +11281,7 @@ function _array_like_to_array$f(arr, len) {
|
|
|
10868
11281
|
function _array_without_holes$7(arr) {
|
|
10869
11282
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
10870
11283
|
}
|
|
10871
|
-
function _define_property$
|
|
11284
|
+
function _define_property$9(obj, key, value) {
|
|
10872
11285
|
if (key in obj) {
|
|
10873
11286
|
Object.defineProperty(obj, key, {
|
|
10874
11287
|
value: value,
|
|
@@ -10887,7 +11300,7 @@ function _iterable_to_array$8(iter) {
|
|
|
10887
11300
|
function _non_iterable_spread$7() {
|
|
10888
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.");
|
|
10889
11302
|
}
|
|
10890
|
-
function _object_spread$
|
|
11303
|
+
function _object_spread$9(target) {
|
|
10891
11304
|
for(var i = 1; i < arguments.length; i++){
|
|
10892
11305
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10893
11306
|
var ownKeys = Object.keys(source);
|
|
@@ -10897,12 +11310,12 @@ function _object_spread$8(target) {
|
|
|
10897
11310
|
}));
|
|
10898
11311
|
}
|
|
10899
11312
|
ownKeys.forEach(function(key) {
|
|
10900
|
-
_define_property$
|
|
11313
|
+
_define_property$9(target, key, source[key]);
|
|
10901
11314
|
});
|
|
10902
11315
|
}
|
|
10903
11316
|
return target;
|
|
10904
11317
|
}
|
|
10905
|
-
function ownKeys$
|
|
11318
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
10906
11319
|
var keys = Object.keys(object);
|
|
10907
11320
|
if (Object.getOwnPropertySymbols) {
|
|
10908
11321
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10910,12 +11323,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
10910
11323
|
}
|
|
10911
11324
|
return keys;
|
|
10912
11325
|
}
|
|
10913
|
-
function _object_spread_props$
|
|
11326
|
+
function _object_spread_props$5(target, source) {
|
|
10914
11327
|
source = source != null ? source : {};
|
|
10915
11328
|
if (Object.getOwnPropertyDescriptors) {
|
|
10916
11329
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10917
11330
|
} else {
|
|
10918
|
-
ownKeys$
|
|
11331
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
10919
11332
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10920
11333
|
});
|
|
10921
11334
|
}
|
|
@@ -11105,7 +11518,7 @@ function pipelineExecutorStatistics(facts) {
|
|
|
11105
11518
|
}
|
|
11106
11519
|
return _to_consumable_array$7(groups.values()).map(function(param) {
|
|
11107
11520
|
var identity = param.identity, _$facts = param.facts;
|
|
11108
|
-
return _object_spread_props$
|
|
11521
|
+
return _object_spread_props$5(_object_spread$9({}, identity), {
|
|
11109
11522
|
attempts: pipelineAttemptCounts(_$facts),
|
|
11110
11523
|
timing: pipelineExecutionTiming(_$facts)
|
|
11111
11524
|
});
|
|
@@ -11120,7 +11533,7 @@ function _array_like_to_array$e(arr, len) {
|
|
|
11120
11533
|
function _array_without_holes$6(arr) {
|
|
11121
11534
|
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
11122
11535
|
}
|
|
11123
|
-
function _define_property$
|
|
11536
|
+
function _define_property$8(obj, key, value) {
|
|
11124
11537
|
if (key in obj) {
|
|
11125
11538
|
Object.defineProperty(obj, key, {
|
|
11126
11539
|
value: value,
|
|
@@ -11139,7 +11552,7 @@ function _iterable_to_array$7(iter) {
|
|
|
11139
11552
|
function _non_iterable_spread$6() {
|
|
11140
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.");
|
|
11141
11554
|
}
|
|
11142
|
-
function _object_spread$
|
|
11555
|
+
function _object_spread$8(target) {
|
|
11143
11556
|
for(var i = 1; i < arguments.length; i++){
|
|
11144
11557
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11145
11558
|
var ownKeys = Object.keys(source);
|
|
@@ -11149,12 +11562,12 @@ function _object_spread$7(target) {
|
|
|
11149
11562
|
}));
|
|
11150
11563
|
}
|
|
11151
11564
|
ownKeys.forEach(function(key) {
|
|
11152
|
-
_define_property$
|
|
11565
|
+
_define_property$8(target, key, source[key]);
|
|
11153
11566
|
});
|
|
11154
11567
|
}
|
|
11155
11568
|
return target;
|
|
11156
11569
|
}
|
|
11157
|
-
function ownKeys$
|
|
11570
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
11158
11571
|
var keys = Object.keys(object);
|
|
11159
11572
|
if (Object.getOwnPropertySymbols) {
|
|
11160
11573
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11162,12 +11575,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
11162
11575
|
}
|
|
11163
11576
|
return keys;
|
|
11164
11577
|
}
|
|
11165
|
-
function _object_spread_props$
|
|
11578
|
+
function _object_spread_props$4(target, source) {
|
|
11166
11579
|
source = source != null ? source : {};
|
|
11167
11580
|
if (Object.getOwnPropertyDescriptors) {
|
|
11168
11581
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11169
11582
|
} else {
|
|
11170
|
-
ownKeys$
|
|
11583
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
11171
11584
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11172
11585
|
});
|
|
11173
11586
|
}
|
|
@@ -11304,13 +11717,13 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11304
11717
|
}
|
|
11305
11718
|
}
|
|
11306
11719
|
}
|
|
11307
|
-
return _object_spread_props$
|
|
11720
|
+
return _object_spread_props$4(_object_spread$8({
|
|
11308
11721
|
scope: "linked_native_llm_calls"
|
|
11309
11722
|
}, coverage, totals(calls)), {
|
|
11310
11723
|
unpricedCalls: unpricedCalls,
|
|
11311
11724
|
chargedPoints: chargedPoints,
|
|
11312
11725
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11313
|
-
return _object_spread$
|
|
11726
|
+
return _object_spread$8({
|
|
11314
11727
|
provider: group[0].provider,
|
|
11315
11728
|
model: group[0].model
|
|
11316
11729
|
}, totals(group));
|
|
@@ -11530,7 +11943,7 @@ function _array_with_holes$9(arr) {
|
|
|
11530
11943
|
function _array_without_holes$4(arr) {
|
|
11531
11944
|
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
11532
11945
|
}
|
|
11533
|
-
function _define_property$
|
|
11946
|
+
function _define_property$7(obj, key, value) {
|
|
11534
11947
|
if (key in obj) {
|
|
11535
11948
|
Object.defineProperty(obj, key, {
|
|
11536
11949
|
value: value,
|
|
@@ -11576,7 +11989,7 @@ function _non_iterable_rest$9() {
|
|
|
11576
11989
|
function _non_iterable_spread$4() {
|
|
11577
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.");
|
|
11578
11991
|
}
|
|
11579
|
-
function _object_spread$
|
|
11992
|
+
function _object_spread$7(target) {
|
|
11580
11993
|
for(var i = 1; i < arguments.length; i++){
|
|
11581
11994
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11582
11995
|
var ownKeys = Object.keys(source);
|
|
@@ -11586,12 +11999,12 @@ function _object_spread$6(target) {
|
|
|
11586
11999
|
}));
|
|
11587
12000
|
}
|
|
11588
12001
|
ownKeys.forEach(function(key) {
|
|
11589
|
-
_define_property$
|
|
12002
|
+
_define_property$7(target, key, source[key]);
|
|
11590
12003
|
});
|
|
11591
12004
|
}
|
|
11592
12005
|
return target;
|
|
11593
12006
|
}
|
|
11594
|
-
function ownKeys$
|
|
12007
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
11595
12008
|
var keys = Object.keys(object);
|
|
11596
12009
|
if (Object.getOwnPropertySymbols) {
|
|
11597
12010
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11599,12 +12012,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
11599
12012
|
}
|
|
11600
12013
|
return keys;
|
|
11601
12014
|
}
|
|
11602
|
-
function _object_spread_props$
|
|
12015
|
+
function _object_spread_props$3(target, source) {
|
|
11603
12016
|
source = source != null ? source : {};
|
|
11604
12017
|
if (Object.getOwnPropertyDescriptors) {
|
|
11605
12018
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11606
12019
|
} else {
|
|
11607
|
-
ownKeys$
|
|
12020
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
11608
12021
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11609
12022
|
});
|
|
11610
12023
|
}
|
|
@@ -11638,30 +12051,30 @@ var option = v3.z.object({
|
|
|
11638
12051
|
label: label$1
|
|
11639
12052
|
}).strict();
|
|
11640
12053
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
11641
|
-
v3.z.object(_object_spread_props$
|
|
12054
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11642
12055
|
type: v3.z.literal("boolean")
|
|
11643
12056
|
})).strict(),
|
|
11644
|
-
v3.z.object(_object_spread_props$
|
|
12057
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11645
12058
|
type: v3.z.literal("text"),
|
|
11646
12059
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
11647
12060
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
11648
12061
|
})).strict(),
|
|
11649
|
-
v3.z.object(_object_spread_props$
|
|
12062
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11650
12063
|
type: v3.z.literal("number"),
|
|
11651
12064
|
min: v3.z.number().finite(),
|
|
11652
12065
|
max: v3.z.number().finite(),
|
|
11653
12066
|
integer: v3.z.boolean()
|
|
11654
12067
|
})).strict(),
|
|
11655
|
-
v3.z.object(_object_spread_props$
|
|
12068
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11656
12069
|
type: v3.z.literal("choice"),
|
|
11657
12070
|
options: v3.z.array(option).min(1).max(100)
|
|
11658
12071
|
})).strict(),
|
|
11659
|
-
v3.z.object(_object_spread_props$
|
|
12072
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11660
12073
|
type: v3.z.literal("multi_choice"),
|
|
11661
12074
|
options: v3.z.array(option).min(1).max(100),
|
|
11662
12075
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
11663
12076
|
})).strict(),
|
|
11664
|
-
v3.z.object(_object_spread_props$
|
|
12077
|
+
v3.z.object(_object_spread_props$3(_object_spread$7({}, field), {
|
|
11665
12078
|
type: v3.z.literal("string_list"),
|
|
11666
12079
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
11667
12080
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -11864,13 +12277,13 @@ function parameterSchema(field) {
|
|
|
11864
12277
|
return item.key;
|
|
11865
12278
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
11866
12279
|
var _configuration_binding_executorBindings2;
|
|
11867
|
-
var binding = _object_spread_props$
|
|
11868
|
-
parameters: _object_spread$
|
|
12280
|
+
var binding = _object_spread_props$3(_object_spread$7({}, configuration.binding), {
|
|
12281
|
+
parameters: _object_spread$7({}, configuration.binding.parameters),
|
|
11869
12282
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
11870
12283
|
var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
|
|
11871
12284
|
return [
|
|
11872
12285
|
key,
|
|
11873
|
-
_object_spread$
|
|
12286
|
+
_object_spread$7({}, executor)
|
|
11874
12287
|
];
|
|
11875
12288
|
}))
|
|
11876
12289
|
});
|
|
@@ -11886,7 +12299,7 @@ function parameterSchema(field) {
|
|
|
11886
12299
|
var key = _iter[_i];
|
|
11887
12300
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
11888
12301
|
}
|
|
11889
|
-
binding.limits = _object_spread_props$
|
|
12302
|
+
binding.limits = _object_spread_props$3(_object_spread$7({}, binding.limits), {
|
|
11890
12303
|
nativeModelBudget: budget
|
|
11891
12304
|
});
|
|
11892
12305
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -11958,14 +12371,14 @@ function parameterSchema(field) {
|
|
|
11958
12371
|
}
|
|
11959
12372
|
}
|
|
11960
12373
|
}
|
|
11961
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$
|
|
12374
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$3(_object_spread$7({}, configuration), {
|
|
11962
12375
|
binding: binding
|
|
11963
12376
|
}));
|
|
11964
12377
|
}
|
|
11965
12378
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
11966
12379
|
var _configuration_binding_limits;
|
|
11967
12380
|
var _form_runtimeSlots;
|
|
11968
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$
|
|
12381
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$3(_object_spread$7({}, form.nativeModelBudget ? {
|
|
11969
12382
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
11970
12383
|
} : {}), {
|
|
11971
12384
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -12247,7 +12660,7 @@ function _array_with_holes$8(arr) {
|
|
|
12247
12660
|
function _array_without_holes$2(arr) {
|
|
12248
12661
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
12249
12662
|
}
|
|
12250
|
-
function _define_property$
|
|
12663
|
+
function _define_property$6(obj, key, value) {
|
|
12251
12664
|
if (key in obj) {
|
|
12252
12665
|
Object.defineProperty(obj, key, {
|
|
12253
12666
|
value: value,
|
|
@@ -12293,7 +12706,7 @@ function _non_iterable_rest$8() {
|
|
|
12293
12706
|
function _non_iterable_spread$2() {
|
|
12294
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.");
|
|
12295
12708
|
}
|
|
12296
|
-
function _object_spread$
|
|
12709
|
+
function _object_spread$6(target) {
|
|
12297
12710
|
for(var i = 1; i < arguments.length; i++){
|
|
12298
12711
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12299
12712
|
var ownKeys = Object.keys(source);
|
|
@@ -12303,12 +12716,12 @@ function _object_spread$5(target) {
|
|
|
12303
12716
|
}));
|
|
12304
12717
|
}
|
|
12305
12718
|
ownKeys.forEach(function(key) {
|
|
12306
|
-
_define_property$
|
|
12719
|
+
_define_property$6(target, key, source[key]);
|
|
12307
12720
|
});
|
|
12308
12721
|
}
|
|
12309
12722
|
return target;
|
|
12310
12723
|
}
|
|
12311
|
-
function ownKeys$
|
|
12724
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
12312
12725
|
var keys = Object.keys(object);
|
|
12313
12726
|
if (Object.getOwnPropertySymbols) {
|
|
12314
12727
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12316,12 +12729,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
12316
12729
|
}
|
|
12317
12730
|
return keys;
|
|
12318
12731
|
}
|
|
12319
|
-
function _object_spread_props$
|
|
12732
|
+
function _object_spread_props$2(target, source) {
|
|
12320
12733
|
source = source != null ? source : {};
|
|
12321
12734
|
if (Object.getOwnPropertyDescriptors) {
|
|
12322
12735
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12323
12736
|
} else {
|
|
12324
|
-
ownKeys$
|
|
12737
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
12325
12738
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12326
12739
|
});
|
|
12327
12740
|
}
|
|
@@ -12426,7 +12839,7 @@ function unionDuration(ranges) {
|
|
|
12426
12839
|
try {
|
|
12427
12840
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12428
12841
|
var value = _step.value;
|
|
12429
|
-
intervals.push(_object_spread_props$
|
|
12842
|
+
intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
|
|
12430
12843
|
end: lastAt,
|
|
12431
12844
|
ongoing: false,
|
|
12432
12845
|
censored: true
|
|
@@ -12479,7 +12892,7 @@ function unionDuration(ranges) {
|
|
|
12479
12892
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12480
12893
|
var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
|
|
12481
12894
|
if (!ready.has(id)) {
|
|
12482
|
-
intervals.push(_object_spread_props$
|
|
12895
|
+
intervals.push(_object_spread_props$2(_object_spread$6({}, value), {
|
|
12483
12896
|
end: at,
|
|
12484
12897
|
ongoing: false
|
|
12485
12898
|
}));
|
|
@@ -12547,13 +12960,13 @@ function unionDuration(ranges) {
|
|
|
12547
12960
|
var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
|
|
12548
12961
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
12549
12962
|
if (currentWaiting.has(id2)) {
|
|
12550
|
-
intervals.push(_object_spread_props$
|
|
12963
|
+
intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
|
|
12551
12964
|
end: now,
|
|
12552
12965
|
ongoing: true
|
|
12553
12966
|
}));
|
|
12554
12967
|
tracked.add(id2);
|
|
12555
12968
|
} else {
|
|
12556
|
-
intervals.push(_object_spread_props$
|
|
12969
|
+
intervals.push(_object_spread_props$2(_object_spread$6({}, value1), {
|
|
12557
12970
|
end: lastAt,
|
|
12558
12971
|
ongoing: false,
|
|
12559
12972
|
censored: true
|
|
@@ -12598,7 +13011,7 @@ function unionDuration(ranges) {
|
|
|
12598
13011
|
var selected = intervals.filter(function(interval) {
|
|
12599
13012
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
12600
13013
|
}).map(function(interval) {
|
|
12601
|
-
return _object_spread_props$
|
|
13014
|
+
return _object_spread_props$2(_object_spread$6({}, interval), {
|
|
12602
13015
|
start: Math.max(from, interval.start),
|
|
12603
13016
|
end: Math.min(to, interval.end)
|
|
12604
13017
|
});
|
|
@@ -12644,7 +13057,7 @@ function unionDuration(ranges) {
|
|
|
12644
13057
|
};
|
|
12645
13058
|
}
|
|
12646
13059
|
|
|
12647
|
-
function _define_property$
|
|
13060
|
+
function _define_property$5(obj, key, value) {
|
|
12648
13061
|
if (key in obj) {
|
|
12649
13062
|
Object.defineProperty(obj, key, {
|
|
12650
13063
|
value: value,
|
|
@@ -12657,7 +13070,7 @@ function _define_property$4(obj, key, value) {
|
|
|
12657
13070
|
}
|
|
12658
13071
|
return obj;
|
|
12659
13072
|
}
|
|
12660
|
-
function _object_spread$
|
|
13073
|
+
function _object_spread$5(target) {
|
|
12661
13074
|
for(var i = 1; i < arguments.length; i++){
|
|
12662
13075
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12663
13076
|
var ownKeys = Object.keys(source);
|
|
@@ -12667,7 +13080,7 @@ function _object_spread$4(target) {
|
|
|
12667
13080
|
}));
|
|
12668
13081
|
}
|
|
12669
13082
|
ownKeys.forEach(function(key) {
|
|
12670
|
-
_define_property$
|
|
13083
|
+
_define_property$5(target, key, source[key]);
|
|
12671
13084
|
});
|
|
12672
13085
|
}
|
|
12673
13086
|
return target;
|
|
@@ -12807,7 +13220,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
12807
13220
|
}
|
|
12808
13221
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
12809
13222
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
12810
|
-
return _object_spread$
|
|
13223
|
+
return _object_spread$5({
|
|
12811
13224
|
projectId: projectId
|
|
12812
13225
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
12813
13226
|
}
|
|
@@ -13104,9 +13517,83 @@ var projectPipelineNativeSourceSchema = projectPipelineNativeDispatchSchema.exte
|
|
|
13104
13517
|
callKey: projectPipelineKeySchema
|
|
13105
13518
|
});
|
|
13106
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
|
+
}
|
|
13107
13594
|
var projectPipelineContributionSchema = v3.z.object({
|
|
13108
13595
|
key: projectPipelineKeySchema,
|
|
13109
|
-
configurations: v3.z.array(
|
|
13596
|
+
configurations: v3.z.array(projectPipelineConfigurationDeclarationSchema).max(100),
|
|
13110
13597
|
descriptors: v3.z.array(projectPipelineExtensionDescriptorSchema).max(1000),
|
|
13111
13598
|
forms: v3.z.array(projectPipelineConfigurationFormSchema).max(100).optional()
|
|
13112
13599
|
}).strict().superRefine(function(value, context) {
|
|
@@ -13136,7 +13623,14 @@ var projectPipelineContributionSchema = v3.z.object({
|
|
|
13136
13623
|
});
|
|
13137
13624
|
try {
|
|
13138
13625
|
if (!configuration) throw new Error("CONFIGURATION_MISSING");
|
|
13139
|
-
|
|
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);
|
|
13140
13634
|
} catch (e) {
|
|
13141
13635
|
context.addIssue({
|
|
13142
13636
|
code: v3.z.ZodIssueCode.custom,
|
|
@@ -13373,10 +13867,6 @@ var templateFilesSchema = zod.z.object({
|
|
|
13373
13867
|
/** Versioned, credential-free declarations. Missing manifest preserves the legacy template contract. */ var templateManifestV1Schema = zod.z.object({
|
|
13374
13868
|
schemaVersion: zod.z.literal(1),
|
|
13375
13869
|
version: text$1,
|
|
13376
|
-
memory: zod.z.object({
|
|
13377
|
-
seed: zod.z.boolean(),
|
|
13378
|
-
preferences: zod.z.array(key$1).max(50).default([])
|
|
13379
|
-
}).strict().optional(),
|
|
13380
13870
|
skills: zod.z.array(zod.z.object({
|
|
13381
13871
|
pluginName: text$1.optional(),
|
|
13382
13872
|
componentKey: key$1
|
|
@@ -13439,7 +13929,6 @@ var templateFilesSchema = zod.z.object({
|
|
|
13439
13929
|
}).strict().optional()
|
|
13440
13930
|
}).strict();
|
|
13441
13931
|
/** V2 keeps only initialization and requirements that the DSL cannot express. */ var assistantTemplateManifestSchema = templateManifestV1Schema.omit({
|
|
13442
|
-
memory: true,
|
|
13443
13932
|
skills: true,
|
|
13444
13933
|
execution: true
|
|
13445
13934
|
}).extend({
|
|
@@ -14799,86 +15288,220 @@ exports.DataSourceTypeEnum = void 0;
|
|
|
14799
15288
|
DataSourceTypeEnum["NONE"] = "NONE";
|
|
14800
15289
|
})(exports.DataSourceTypeEnum || (exports.DataSourceTypeEnum = {}));
|
|
14801
15290
|
|
|
14802
|
-
|
|
14803
|
-
(
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
}
|
|
14807
|
-
|
|
14808
|
-
(
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
14813
|
-
|
|
14814
|
-
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
IntegrationEnum["DINGTALK"] = "DingTalk";
|
|
14821
|
-
IntegrationEnum["WECOM"] = "WeCom";
|
|
14822
|
-
IntegrationEnum["FIRECRAWL"] = "firecrawl";
|
|
14823
|
-
IntegrationEnum["KNOWLEDGEBASE"] = "knowledgebase";
|
|
14824
|
-
IntegrationEnum["GITHUB"] = "github";
|
|
14825
|
-
IntegrationEnum["RAGFlow"] = "ragflow";
|
|
14826
|
-
IntegrationEnum["Dify"] = "dify";
|
|
14827
|
-
IntegrationEnum["FastGPT"] = "fastgpt";
|
|
14828
|
-
})(exports.IntegrationEnum || (exports.IntegrationEnum = {}));
|
|
14829
|
-
exports.IntegrationFeatureEnum = void 0;
|
|
14830
|
-
(function(IntegrationFeatureEnum) {
|
|
14831
|
-
IntegrationFeatureEnum["KNOWLEDGE"] = "knowledge";
|
|
14832
|
-
IntegrationFeatureEnum["AGENT"] = "agent";
|
|
14833
|
-
IntegrationFeatureEnum["SSO"] = "sso";
|
|
14834
|
-
})(exports.IntegrationFeatureEnum || (exports.IntegrationFeatureEnum = {}));
|
|
14835
|
-
exports.IntegrationFilterEnum = void 0;
|
|
14836
|
-
(function(IntegrationFilterEnum) {
|
|
14837
|
-
IntegrationFilterEnum["ALL"] = "All";
|
|
14838
|
-
IntegrationFilterEnum["FREE"] = "Free";
|
|
14839
|
-
IntegrationFilterEnum["PAID"] = "Paid";
|
|
14840
|
-
})(exports.IntegrationFilterEnum || (exports.IntegrationFilterEnum = {}));
|
|
14841
|
-
var DEFAULT_INTEGRATION_PAID_FILTERS = [
|
|
14842
|
-
{
|
|
14843
|
-
label: exports.IntegrationFilterEnum.ALL,
|
|
14844
|
-
value: "all"
|
|
14845
|
-
},
|
|
14846
|
-
{
|
|
14847
|
-
label: exports.IntegrationFilterEnum.FREE,
|
|
14848
|
-
value: "false"
|
|
14849
|
-
},
|
|
14850
|
-
{
|
|
14851
|
-
label: exports.IntegrationFilterEnum.PAID,
|
|
14852
|
-
value: "true"
|
|
15291
|
+
function _array_like_to_array$2(arr, len) {
|
|
15292
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
15293
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15294
|
+
return arr2;
|
|
15295
|
+
}
|
|
15296
|
+
function _array_with_holes$2(arr) {
|
|
15297
|
+
if (Array.isArray(arr)) return arr;
|
|
15298
|
+
}
|
|
15299
|
+
function _define_property$3(obj, key, value) {
|
|
15300
|
+
if (key in obj) {
|
|
15301
|
+
Object.defineProperty(obj, key, {
|
|
15302
|
+
value: value,
|
|
15303
|
+
enumerable: true,
|
|
15304
|
+
configurable: true,
|
|
15305
|
+
writable: true
|
|
15306
|
+
});
|
|
15307
|
+
} else {
|
|
15308
|
+
obj[key] = value;
|
|
14853
15309
|
}
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
(
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
}
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
15310
|
+
return obj;
|
|
15311
|
+
}
|
|
15312
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
15313
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15314
|
+
if (_i == null) return;
|
|
15315
|
+
var _arr = [];
|
|
15316
|
+
var _n = true;
|
|
15317
|
+
var _d = false;
|
|
15318
|
+
var _s, _e;
|
|
15319
|
+
try {
|
|
15320
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
15321
|
+
_arr.push(_s.value);
|
|
15322
|
+
if (i && _arr.length === i) break;
|
|
15323
|
+
}
|
|
15324
|
+
} catch (err) {
|
|
15325
|
+
_d = true;
|
|
15326
|
+
_e = err;
|
|
15327
|
+
} finally{
|
|
15328
|
+
try {
|
|
15329
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
15330
|
+
} finally{
|
|
15331
|
+
if (_d) throw _e;
|
|
15332
|
+
}
|
|
15333
|
+
}
|
|
15334
|
+
return _arr;
|
|
15335
|
+
}
|
|
15336
|
+
function _non_iterable_rest$2() {
|
|
15337
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15338
|
+
}
|
|
15339
|
+
function _object_spread$3(target) {
|
|
15340
|
+
for(var i = 1; i < arguments.length; i++){
|
|
15341
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
15342
|
+
var ownKeys = Object.keys(source);
|
|
15343
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
15344
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
15345
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15346
|
+
}));
|
|
15347
|
+
}
|
|
15348
|
+
ownKeys.forEach(function(key) {
|
|
15349
|
+
_define_property$3(target, key, source[key]);
|
|
15350
|
+
});
|
|
15351
|
+
}
|
|
15352
|
+
return target;
|
|
15353
|
+
}
|
|
15354
|
+
function _sliced_to_array$2(arr, i) {
|
|
15355
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
15356
|
+
}
|
|
15357
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
15358
|
+
if (!o) return;
|
|
15359
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
15360
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15361
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15362
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15363
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
15364
|
+
}
|
|
15365
|
+
// Public diagnostics are authored separately from driver errors. This is defense in depth,
|
|
15366
|
+
// not a sanitizer for arbitrary logs: producers must never copy raw exceptions into message.
|
|
15367
|
+
var privateText = /[\u0000-\u001f\u007f]|(?:https?|jdbc|postgres(?:ql)?|mysql):|\b(?:password|passwd|pwd|secret|token|authorization|cookie|api[_-]?key)\s*[:=]|\bBearer\s|-----BEGIN|\b(?:SELECT|WITH)\b[\s\S]*\bFROM\b|\b(?:INSERT\s+INTO|UPDATE\s+\S+\s+SET|DELETE\s+FROM)\b|<\/?[a-z][^>]*>|(?:\/Users\/|\/home\/|\/private\/|[A-Z]:\\)|\bat\s+\S+\s*\(/i;
|
|
15368
|
+
var publicText = v3.z.string().trim().min(1).max(600).refine(function(value) {
|
|
15369
|
+
return !privateText.test(value);
|
|
15370
|
+
});
|
|
15371
|
+
var reference = v3.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/);
|
|
15372
|
+
/** Portable HTTP/provider failure contract. No arbitrary details, cause, query or connection fields. */ var analyticsDiagnosticSchema = v3.z.object({
|
|
15373
|
+
schema: v3.z.literal("xpert.analytics.diagnostic"),
|
|
15374
|
+
version: v3.z.literal(1),
|
|
15375
|
+
code: v3.z.string().regex(/^[A-Z][A-Z0-9_-]{2,79}$/),
|
|
15376
|
+
stage: v3.z.enum([
|
|
15377
|
+
"request",
|
|
15378
|
+
"source",
|
|
15379
|
+
"validation",
|
|
15380
|
+
"authorization",
|
|
15381
|
+
"execution",
|
|
15382
|
+
"result",
|
|
15383
|
+
"dependency"
|
|
15384
|
+
]),
|
|
15385
|
+
message: publicText,
|
|
15386
|
+
retryable: v3.z.boolean(),
|
|
15387
|
+
upstreamExecutionId: reference.optional(),
|
|
15388
|
+
auditRef: reference.optional()
|
|
15389
|
+
}).strict().refine(function(value) {
|
|
15390
|
+
return !value.retryable || value.stage === "execution" || value.stage === "dependency";
|
|
15391
|
+
});
|
|
15392
|
+
/** Invalid provider diagnostics fail closed; never return Zod errors containing received input. */ function parseAnalyticsDiagnostic(value) {
|
|
15393
|
+
try {
|
|
15394
|
+
if (!value || typeof value !== "object") return undefined;
|
|
15395
|
+
var properties = Object.getOwnPropertyDescriptors(value);
|
|
15396
|
+
if (Object.values(properties).some(function(property) {
|
|
15397
|
+
return !("value" in property);
|
|
15398
|
+
})) return undefined;
|
|
15399
|
+
var parsed = analyticsDiagnosticSchema.safeParse(Object.fromEntries(Object.entries(properties).map(function(param) {
|
|
15400
|
+
var _param = _sliced_to_array$2(param, 2), key = _param[0], property = _param[1];
|
|
15401
|
+
return [
|
|
15402
|
+
key,
|
|
15403
|
+
property.value
|
|
15404
|
+
];
|
|
15405
|
+
})));
|
|
15406
|
+
if (!parsed.success) return undefined;
|
|
15407
|
+
var _parsed_data = parsed.data, schema = _parsed_data.schema, version = _parsed_data.version, code = _parsed_data.code, stage = _parsed_data.stage, message = _parsed_data.message, retryable = _parsed_data.retryable, upstreamExecutionId = _parsed_data.upstreamExecutionId, auditRef = _parsed_data.auditRef;
|
|
15408
|
+
return _object_spread$3({
|
|
15409
|
+
schema: schema,
|
|
15410
|
+
version: version,
|
|
15411
|
+
code: code,
|
|
15412
|
+
stage: stage,
|
|
15413
|
+
message: message,
|
|
15414
|
+
retryable: retryable
|
|
15415
|
+
}, upstreamExecutionId ? {
|
|
15416
|
+
upstreamExecutionId: upstreamExecutionId
|
|
15417
|
+
} : {}, auditRef ? {
|
|
15418
|
+
auditRef: auditRef
|
|
15419
|
+
} : {});
|
|
15420
|
+
} catch (e) {
|
|
15421
|
+
return undefined;
|
|
15422
|
+
}
|
|
15423
|
+
}
|
|
15424
|
+
|
|
15425
|
+
exports.DataSourceSyntaxEnum = void 0;
|
|
15426
|
+
(function(DataSourceSyntaxEnum) {
|
|
15427
|
+
DataSourceSyntaxEnum["SQL"] = "sql";
|
|
15428
|
+
DataSourceSyntaxEnum["MDX"] = "mdx";
|
|
15429
|
+
})(exports.DataSourceSyntaxEnum || (exports.DataSourceSyntaxEnum = {}));
|
|
15430
|
+
exports.DataSourceProtocolEnum = void 0;
|
|
15431
|
+
(function(DataSourceProtocolEnum) {
|
|
15432
|
+
DataSourceProtocolEnum["SQL"] = "sql";
|
|
15433
|
+
DataSourceProtocolEnum["XMLA"] = "xmla";
|
|
15434
|
+
})(exports.DataSourceProtocolEnum || (exports.DataSourceProtocolEnum = {}));
|
|
15435
|
+
|
|
15436
|
+
/**
|
|
15437
|
+
* @deprecated use Plugins instead
|
|
15438
|
+
*/ exports.IntegrationEnum = void 0;
|
|
15439
|
+
(function(IntegrationEnum) {
|
|
15440
|
+
IntegrationEnum["UPWORK"] = "Upwork";
|
|
15441
|
+
IntegrationEnum["HUBSTAFF"] = "Hubstaff";
|
|
15442
|
+
IntegrationEnum["LARK"] = "Lark";
|
|
15443
|
+
IntegrationEnum["DINGTALK"] = "DingTalk";
|
|
15444
|
+
IntegrationEnum["WECOM"] = "WeCom";
|
|
15445
|
+
IntegrationEnum["FIRECRAWL"] = "firecrawl";
|
|
15446
|
+
IntegrationEnum["KNOWLEDGEBASE"] = "knowledgebase";
|
|
15447
|
+
IntegrationEnum["GITHUB"] = "github";
|
|
15448
|
+
IntegrationEnum["RAGFlow"] = "ragflow";
|
|
15449
|
+
IntegrationEnum["Dify"] = "dify";
|
|
15450
|
+
IntegrationEnum["FastGPT"] = "fastgpt";
|
|
15451
|
+
})(exports.IntegrationEnum || (exports.IntegrationEnum = {}));
|
|
15452
|
+
exports.IntegrationFeatureEnum = void 0;
|
|
15453
|
+
(function(IntegrationFeatureEnum) {
|
|
15454
|
+
IntegrationFeatureEnum["KNOWLEDGE"] = "knowledge";
|
|
15455
|
+
IntegrationFeatureEnum["AGENT"] = "agent";
|
|
15456
|
+
IntegrationFeatureEnum["SSO"] = "sso";
|
|
15457
|
+
})(exports.IntegrationFeatureEnum || (exports.IntegrationFeatureEnum = {}));
|
|
15458
|
+
exports.IntegrationFilterEnum = void 0;
|
|
15459
|
+
(function(IntegrationFilterEnum) {
|
|
15460
|
+
IntegrationFilterEnum["ALL"] = "All";
|
|
15461
|
+
IntegrationFilterEnum["FREE"] = "Free";
|
|
15462
|
+
IntegrationFilterEnum["PAID"] = "Paid";
|
|
15463
|
+
})(exports.IntegrationFilterEnum || (exports.IntegrationFilterEnum = {}));
|
|
15464
|
+
var DEFAULT_INTEGRATION_PAID_FILTERS = [
|
|
15465
|
+
{
|
|
15466
|
+
label: exports.IntegrationFilterEnum.ALL,
|
|
15467
|
+
value: "all"
|
|
15468
|
+
},
|
|
15469
|
+
{
|
|
15470
|
+
label: exports.IntegrationFilterEnum.FREE,
|
|
15471
|
+
value: "false"
|
|
15472
|
+
},
|
|
15473
|
+
{
|
|
15474
|
+
label: exports.IntegrationFilterEnum.PAID,
|
|
15475
|
+
value: "true"
|
|
15476
|
+
}
|
|
15477
|
+
];
|
|
15478
|
+
|
|
15479
|
+
exports.InviteStatusEnum = void 0;
|
|
15480
|
+
(function(InviteStatusEnum) {
|
|
15481
|
+
InviteStatusEnum["INVITED"] = "INVITED";
|
|
15482
|
+
InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
|
|
15483
|
+
})(exports.InviteStatusEnum || (exports.InviteStatusEnum = {}));
|
|
15484
|
+
exports.InvitationTypeEnum = void 0;
|
|
15485
|
+
(function(InvitationTypeEnum) {
|
|
15486
|
+
InvitationTypeEnum["USER"] = "USER";
|
|
15487
|
+
InvitationTypeEnum["EMPLOYEE"] = "EMPLOYEE";
|
|
15488
|
+
InvitationTypeEnum["CANDIDATE"] = "CANDIDATE";
|
|
15489
|
+
})(exports.InvitationTypeEnum || (exports.InvitationTypeEnum = {}));
|
|
15490
|
+
exports.InvitationExpirationEnum = void 0;
|
|
15491
|
+
(function(InvitationExpirationEnum) {
|
|
15492
|
+
InvitationExpirationEnum[InvitationExpirationEnum["DAY"] = 1] = "DAY";
|
|
15493
|
+
InvitationExpirationEnum[InvitationExpirationEnum["WEEK"] = 7] = "WEEK";
|
|
15494
|
+
InvitationExpirationEnum[InvitationExpirationEnum["TWO_WEEK"] = 14] = "TWO_WEEK";
|
|
15495
|
+
InvitationExpirationEnum[InvitationExpirationEnum["MONTH"] = 30] = "MONTH";
|
|
15496
|
+
InvitationExpirationEnum["NEVER"] = "Never";
|
|
15497
|
+
})(exports.InvitationExpirationEnum || (exports.InvitationExpirationEnum = {}));
|
|
15498
|
+
|
|
15499
|
+
exports.TaskListTypeEnum = void 0;
|
|
15500
|
+
(function(TaskListTypeEnum) {
|
|
15501
|
+
TaskListTypeEnum["GRID"] = "GRID";
|
|
15502
|
+
TaskListTypeEnum["SPRINT"] = "SPRINT";
|
|
15503
|
+
})(exports.TaskListTypeEnum || (exports.TaskListTypeEnum = {}));
|
|
15504
|
+
exports.OrganizationProjectBudgetTypeEnum = void 0;
|
|
14882
15505
|
(function(OrganizationProjectBudgetTypeEnum) {
|
|
14883
15506
|
OrganizationProjectBudgetTypeEnum["HOURS"] = "hours";
|
|
14884
15507
|
OrganizationProjectBudgetTypeEnum["COST"] = "cost";
|
|
@@ -15080,6 +15703,8 @@ exports.RequestScopeLevel = void 0;
|
|
|
15080
15703
|
* Embedded/group credentials never become source-management authority and no login token is returned to the View.
|
|
15081
15704
|
*/ var ARTIFACT_USE_GRANT_MANAGE_COMMAND = "artifact.use-grants.manage";
|
|
15082
15705
|
|
|
15706
|
+
/** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
|
|
15707
|
+
|
|
15083
15708
|
exports.BusinessType = void 0;
|
|
15084
15709
|
(function(BusinessType) {
|
|
15085
15710
|
BusinessType["SEMANTIC_MODEL"] = "SEMANTIC_MODEL";
|
|
@@ -15087,15 +15712,15 @@ exports.BusinessType = void 0;
|
|
|
15087
15712
|
BusinessType["INDICATOR"] = "INDICATOR";
|
|
15088
15713
|
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
15089
15714
|
|
|
15090
|
-
function _array_like_to_array$
|
|
15715
|
+
function _array_like_to_array$1(arr, len) {
|
|
15091
15716
|
if (len == null || len > arr.length) len = arr.length;
|
|
15092
15717
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15093
15718
|
return arr2;
|
|
15094
15719
|
}
|
|
15095
|
-
function _array_with_holes$
|
|
15720
|
+
function _array_with_holes$1(arr) {
|
|
15096
15721
|
if (Array.isArray(arr)) return arr;
|
|
15097
15722
|
}
|
|
15098
|
-
function _iterable_to_array_limit$
|
|
15723
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
15099
15724
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15100
15725
|
if (_i == null) return;
|
|
15101
15726
|
var _arr = [];
|
|
@@ -15119,19 +15744,19 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
15119
15744
|
}
|
|
15120
15745
|
return _arr;
|
|
15121
15746
|
}
|
|
15122
|
-
function _non_iterable_rest$
|
|
15747
|
+
function _non_iterable_rest$1() {
|
|
15123
15748
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15124
15749
|
}
|
|
15125
|
-
function _sliced_to_array$
|
|
15126
|
-
return _array_with_holes$
|
|
15750
|
+
function _sliced_to_array$1(arr, i) {
|
|
15751
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
15127
15752
|
}
|
|
15128
|
-
function _unsupported_iterable_to_array$
|
|
15753
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
15129
15754
|
if (!o) return;
|
|
15130
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
15755
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
15131
15756
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15132
15757
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15133
15758
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15134
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
15759
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
15135
15760
|
}
|
|
15136
15761
|
exports.ScheduleTaskStatus = void 0;
|
|
15137
15762
|
(function(ScheduleTaskStatus) {
|
|
@@ -15154,7 +15779,7 @@ exports.TaskFrequency = void 0;
|
|
|
15154
15779
|
* @returns
|
|
15155
15780
|
*/ function generateCronExpression(schedule) {
|
|
15156
15781
|
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
15157
|
-
var _schedule_time_split = _sliced_to_array$
|
|
15782
|
+
var _schedule_time_split = _sliced_to_array$1(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
|
|
15158
15783
|
var hour = parseInt(hourStr, 10);
|
|
15159
15784
|
var minute = parseInt(minuteStr, 10);
|
|
15160
15785
|
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
@@ -15212,6 +15837,7 @@ var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
|
15212
15837
|
var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
15213
15838
|
/** Resolve the Project's application entry through its registered type and current access checks. */ var WORKBENCH_PROJECT_APPLICATION_TARGET = "project.application";
|
|
15214
15839
|
/** Open full Project pipeline management in the configured platform. */ var WORKBENCH_PROJECT_PIPELINES_TARGET = "project.pipelines";
|
|
15840
|
+
/** Host-owned browser persistence. Plugins never choose an account/storage namespace. */ var WORKBENCH_CONTENT_DRAFT_COMMAND = "workbench.content.draft";
|
|
15215
15841
|
|
|
15216
15842
|
// Preserve existing imports while client-command contracts live in their own module.
|
|
15217
15843
|
var XPERT_VIEW_PROJECT_ID_HEADER = "x-xpert-view-project-id";
|
|
@@ -15228,15 +15854,15 @@ var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
|
15228
15854
|
];
|
|
15229
15855
|
/** Platform-provided navigation, available without Assistant middleware. */ var CONVERSATION_MAP_FEATURE = "platform.conversation-map";
|
|
15230
15856
|
|
|
15231
|
-
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array
|
|
15857
|
+
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array(arr, len) {
|
|
15232
15858
|
if (len == null || len > arr.length) len = arr.length;
|
|
15233
15859
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15234
15860
|
return arr2;
|
|
15235
15861
|
}
|
|
15236
|
-
function _array_with_holes
|
|
15862
|
+
function _array_with_holes(arr) {
|
|
15237
15863
|
if (Array.isArray(arr)) return arr;
|
|
15238
15864
|
}
|
|
15239
|
-
function _define_property$
|
|
15865
|
+
function _define_property$2(obj, key, value) {
|
|
15240
15866
|
if (key in obj) {
|
|
15241
15867
|
Object.defineProperty(obj, key, {
|
|
15242
15868
|
value: value,
|
|
@@ -15249,7 +15875,7 @@ function _define_property$3(obj, key, value) {
|
|
|
15249
15875
|
}
|
|
15250
15876
|
return obj;
|
|
15251
15877
|
}
|
|
15252
|
-
function _iterable_to_array_limit
|
|
15878
|
+
function _iterable_to_array_limit(arr, i) {
|
|
15253
15879
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15254
15880
|
if (_i == null) return;
|
|
15255
15881
|
var _arr = [];
|
|
@@ -15273,10 +15899,10 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
15273
15899
|
}
|
|
15274
15900
|
return _arr;
|
|
15275
15901
|
}
|
|
15276
|
-
function _non_iterable_rest
|
|
15902
|
+
function _non_iterable_rest() {
|
|
15277
15903
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15278
15904
|
}
|
|
15279
|
-
function _object_spread$
|
|
15905
|
+
function _object_spread$2(target) {
|
|
15280
15906
|
for(var i = 1; i < arguments.length; i++){
|
|
15281
15907
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15282
15908
|
var ownKeys = Object.keys(source);
|
|
@@ -15286,21 +15912,21 @@ function _object_spread$3(target) {
|
|
|
15286
15912
|
}));
|
|
15287
15913
|
}
|
|
15288
15914
|
ownKeys.forEach(function(key) {
|
|
15289
|
-
_define_property$
|
|
15915
|
+
_define_property$2(target, key, source[key]);
|
|
15290
15916
|
});
|
|
15291
15917
|
}
|
|
15292
15918
|
return target;
|
|
15293
15919
|
}
|
|
15294
|
-
function _sliced_to_array
|
|
15295
|
-
return _array_with_holes
|
|
15920
|
+
function _sliced_to_array(arr, i) {
|
|
15921
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
15296
15922
|
}
|
|
15297
|
-
function _unsupported_iterable_to_array
|
|
15923
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
15298
15924
|
if (!o) return;
|
|
15299
|
-
if (typeof o === "string") return _array_like_to_array
|
|
15925
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
15300
15926
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15301
15927
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15302
15928
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15303
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array
|
|
15929
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
15304
15930
|
}
|
|
15305
15931
|
var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
15306
15932
|
/**
|
|
@@ -15319,7 +15945,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15319
15945
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
15320
15946
|
try {
|
|
15321
15947
|
for(var _iterator = Object.entries(value.parameters)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
15322
|
-
var _step_value = _sliced_to_array
|
|
15948
|
+
var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], item = _step_value[1];
|
|
15323
15949
|
if (isViewScalar(item)) parameters[key] = item;
|
|
15324
15950
|
else if (Array.isArray(item) && item.every(isViewScalar)) parameters[key] = item;
|
|
15325
15951
|
else return null;
|
|
@@ -15339,7 +15965,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15339
15965
|
}
|
|
15340
15966
|
}
|
|
15341
15967
|
}
|
|
15342
|
-
return _object_spread$
|
|
15968
|
+
return _object_spread$2({
|
|
15343
15969
|
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
15344
15970
|
viewKey: value.viewKey,
|
|
15345
15971
|
projectId: value.projectId
|
|
@@ -15358,7 +15984,7 @@ function isViewScalar(value) {
|
|
|
15358
15984
|
return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
|
|
15359
15985
|
}
|
|
15360
15986
|
|
|
15361
|
-
function _define_property$
|
|
15987
|
+
function _define_property$1(obj, key, value) {
|
|
15362
15988
|
if (key in obj) {
|
|
15363
15989
|
Object.defineProperty(obj, key, {
|
|
15364
15990
|
value: value,
|
|
@@ -15371,7 +15997,7 @@ function _define_property$2(obj, key, value) {
|
|
|
15371
15997
|
}
|
|
15372
15998
|
return obj;
|
|
15373
15999
|
}
|
|
15374
|
-
function _object_spread$
|
|
16000
|
+
function _object_spread$1(target) {
|
|
15375
16001
|
for(var i = 1; i < arguments.length; i++){
|
|
15376
16002
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15377
16003
|
var ownKeys = Object.keys(source);
|
|
@@ -15381,7 +16007,7 @@ function _object_spread$2(target) {
|
|
|
15381
16007
|
}));
|
|
15382
16008
|
}
|
|
15383
16009
|
ownKeys.forEach(function(key) {
|
|
15384
|
-
_define_property$
|
|
16010
|
+
_define_property$1(target, key, source[key]);
|
|
15385
16011
|
});
|
|
15386
16012
|
}
|
|
15387
16013
|
return target;
|
|
@@ -15394,35 +16020,14 @@ var hasIntegrationMethod = function(value) {
|
|
|
15394
16020
|
return !value.integrationId || !!value.authMethodId;
|
|
15395
16021
|
};
|
|
15396
16022
|
/** An integration reference must name the Connector authentication method that consumes it. */ var workspaceConnectorAuthorizationSchema = v3.z.object(authorizationFields).strict().refine(hasIntegrationMethod);
|
|
15397
|
-
/** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = v3.z.object(_object_spread$
|
|
16023
|
+
/** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = v3.z.object(_object_spread$1({
|
|
15398
16024
|
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
15399
16025
|
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
15400
16026
|
|
|
15401
|
-
/** Context revision and runtime scope delivered by an authorized Remote View host. */ var viewContextEventSchema = v3.z.object({
|
|
15402
|
-
type: v3.z.literal("view.context.changed"),
|
|
15403
|
-
data: v3.z.object({
|
|
15404
|
-
revision: v3.z.number().int().nonnegative(),
|
|
15405
|
-
runtimeScope: v3.z.object({
|
|
15406
|
-
projectId: v3.z.string().nullish(),
|
|
15407
|
-
conversationId: v3.z.string().nullish()
|
|
15408
|
-
})
|
|
15409
|
-
})
|
|
15410
|
-
}).transform(function(param) {
|
|
15411
|
-
var type = param.type, data = param.data;
|
|
15412
|
-
return {
|
|
15413
|
-
type: type,
|
|
15414
|
-
// Keep required envelope fields explicit in declarations built without strictNullChecks.
|
|
15415
|
-
data: {
|
|
15416
|
-
revision: data.revision,
|
|
15417
|
-
runtimeScope: data.runtimeScope
|
|
15418
|
-
}
|
|
15419
|
-
};
|
|
15420
|
-
});
|
|
15421
|
-
|
|
15422
16027
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
15423
16028
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
15424
16029
|
|
|
15425
|
-
function _define_property
|
|
16030
|
+
function _define_property(obj, key, value) {
|
|
15426
16031
|
if (key in obj) {
|
|
15427
16032
|
Object.defineProperty(obj, key, {
|
|
15428
16033
|
value: value,
|
|
@@ -15435,7 +16040,7 @@ function _define_property$1(obj, key, value) {
|
|
|
15435
16040
|
}
|
|
15436
16041
|
return obj;
|
|
15437
16042
|
}
|
|
15438
|
-
function _object_spread
|
|
16043
|
+
function _object_spread(target) {
|
|
15439
16044
|
for(var i = 1; i < arguments.length; i++){
|
|
15440
16045
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15441
16046
|
var ownKeys = Object.keys(source);
|
|
@@ -15445,7 +16050,7 @@ function _object_spread$1(target) {
|
|
|
15445
16050
|
}));
|
|
15446
16051
|
}
|
|
15447
16052
|
ownKeys.forEach(function(key) {
|
|
15448
|
-
_define_property
|
|
16053
|
+
_define_property(target, key, source[key]);
|
|
15449
16054
|
});
|
|
15450
16055
|
}
|
|
15451
16056
|
return target;
|
|
@@ -15493,7 +16098,7 @@ var anchor = {
|
|
|
15493
16098
|
threadId: v3.z.string().optional(),
|
|
15494
16099
|
executionId: v3.z.string().optional()
|
|
15495
16100
|
};
|
|
15496
|
-
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread
|
|
16101
|
+
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15497
16102
|
id: v3.z.string(),
|
|
15498
16103
|
laneId: v3.z.string(),
|
|
15499
16104
|
kind: v3.z.enum([
|
|
@@ -15514,7 +16119,7 @@ var trailStepSchema = v3.z.object(_object_spread_props(_object_spread$1({
|
|
|
15514
16119
|
input: v3.z.string().optional(),
|
|
15515
16120
|
output: v3.z.string().optional()
|
|
15516
16121
|
}));
|
|
15517
|
-
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread
|
|
16122
|
+
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15518
16123
|
id: v3.z.string(),
|
|
15519
16124
|
parentId: v3.z.string().nullable(),
|
|
15520
16125
|
spawnStepId: v3.z.string().optional(),
|
|
@@ -15668,143 +16273,7 @@ var executionActivityBatchSchema = v3.z.object({
|
|
|
15668
16273
|
var ASSISTANT_CONTENT_REVIEW_COMMAND = "assistant.content.review";
|
|
15669
16274
|
var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
|
|
15670
16275
|
|
|
15671
|
-
|
|
15672
|
-
|
|
15673
|
-
function _array_like_to_array(arr, len) {
|
|
15674
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
15675
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15676
|
-
return arr2;
|
|
15677
|
-
}
|
|
15678
|
-
function _array_with_holes(arr) {
|
|
15679
|
-
if (Array.isArray(arr)) return arr;
|
|
15680
|
-
}
|
|
15681
|
-
function _define_property(obj, key, value) {
|
|
15682
|
-
if (key in obj) {
|
|
15683
|
-
Object.defineProperty(obj, key, {
|
|
15684
|
-
value: value,
|
|
15685
|
-
enumerable: true,
|
|
15686
|
-
configurable: true,
|
|
15687
|
-
writable: true
|
|
15688
|
-
});
|
|
15689
|
-
} else {
|
|
15690
|
-
obj[key] = value;
|
|
15691
|
-
}
|
|
15692
|
-
return obj;
|
|
15693
|
-
}
|
|
15694
|
-
function _iterable_to_array_limit(arr, i) {
|
|
15695
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15696
|
-
if (_i == null) return;
|
|
15697
|
-
var _arr = [];
|
|
15698
|
-
var _n = true;
|
|
15699
|
-
var _d = false;
|
|
15700
|
-
var _s, _e;
|
|
15701
|
-
try {
|
|
15702
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
15703
|
-
_arr.push(_s.value);
|
|
15704
|
-
if (i && _arr.length === i) break;
|
|
15705
|
-
}
|
|
15706
|
-
} catch (err) {
|
|
15707
|
-
_d = true;
|
|
15708
|
-
_e = err;
|
|
15709
|
-
} finally{
|
|
15710
|
-
try {
|
|
15711
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
15712
|
-
} finally{
|
|
15713
|
-
if (_d) throw _e;
|
|
15714
|
-
}
|
|
15715
|
-
}
|
|
15716
|
-
return _arr;
|
|
15717
|
-
}
|
|
15718
|
-
function _non_iterable_rest() {
|
|
15719
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15720
|
-
}
|
|
15721
|
-
function _object_spread(target) {
|
|
15722
|
-
for(var i = 1; i < arguments.length; i++){
|
|
15723
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
15724
|
-
var ownKeys = Object.keys(source);
|
|
15725
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
15726
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
15727
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15728
|
-
}));
|
|
15729
|
-
}
|
|
15730
|
-
ownKeys.forEach(function(key) {
|
|
15731
|
-
_define_property(target, key, source[key]);
|
|
15732
|
-
});
|
|
15733
|
-
}
|
|
15734
|
-
return target;
|
|
15735
|
-
}
|
|
15736
|
-
function _sliced_to_array(arr, i) {
|
|
15737
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
15738
|
-
}
|
|
15739
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
15740
|
-
if (!o) return;
|
|
15741
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
15742
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15743
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15744
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15745
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
15746
|
-
}
|
|
15747
|
-
// Public diagnostics are authored separately from driver errors. This is defense in depth,
|
|
15748
|
-
// not a sanitizer for arbitrary logs: producers must never copy raw exceptions into message.
|
|
15749
|
-
var privateText = /[\u0000-\u001f\u007f]|(?:https?|jdbc|postgres(?:ql)?|mysql):|\b(?:password|passwd|pwd|secret|token|authorization|cookie|api[_-]?key)\s*[:=]|\bBearer\s|-----BEGIN|\b(?:SELECT|WITH)\b[\s\S]*\bFROM\b|\b(?:INSERT\s+INTO|UPDATE\s+\S+\s+SET|DELETE\s+FROM)\b|<\/?[a-z][^>]*>|(?:\/Users\/|\/home\/|\/private\/|[A-Z]:\\)|\bat\s+\S+\s*\(/i;
|
|
15750
|
-
var publicText = v3.z.string().trim().min(1).max(600).refine(function(value) {
|
|
15751
|
-
return !privateText.test(value);
|
|
15752
|
-
});
|
|
15753
|
-
var reference = v3.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/);
|
|
15754
|
-
/** Portable HTTP/provider failure contract. No arbitrary details, cause, query or connection fields. */ var analyticsDiagnosticSchema = v3.z.object({
|
|
15755
|
-
schema: v3.z.literal("xpert.analytics.diagnostic"),
|
|
15756
|
-
version: v3.z.literal(1),
|
|
15757
|
-
code: v3.z.string().regex(/^[A-Z][A-Z0-9_-]{2,79}$/),
|
|
15758
|
-
stage: v3.z.enum([
|
|
15759
|
-
"request",
|
|
15760
|
-
"source",
|
|
15761
|
-
"validation",
|
|
15762
|
-
"authorization",
|
|
15763
|
-
"execution",
|
|
15764
|
-
"result",
|
|
15765
|
-
"dependency"
|
|
15766
|
-
]),
|
|
15767
|
-
message: publicText,
|
|
15768
|
-
retryable: v3.z.boolean(),
|
|
15769
|
-
upstreamExecutionId: reference.optional(),
|
|
15770
|
-
auditRef: reference.optional()
|
|
15771
|
-
}).strict().refine(function(value) {
|
|
15772
|
-
return !value.retryable || value.stage === "execution" || value.stage === "dependency";
|
|
15773
|
-
});
|
|
15774
|
-
/** Invalid provider diagnostics fail closed; never return Zod errors containing received input. */ function parseAnalyticsDiagnostic(value) {
|
|
15775
|
-
try {
|
|
15776
|
-
if (!value || typeof value !== "object") return undefined;
|
|
15777
|
-
var properties = Object.getOwnPropertyDescriptors(value);
|
|
15778
|
-
if (Object.values(properties).some(function(property) {
|
|
15779
|
-
return !("value" in property);
|
|
15780
|
-
})) return undefined;
|
|
15781
|
-
var parsed = analyticsDiagnosticSchema.safeParse(Object.fromEntries(Object.entries(properties).map(function(param) {
|
|
15782
|
-
var _param = _sliced_to_array(param, 2), key = _param[0], property = _param[1];
|
|
15783
|
-
return [
|
|
15784
|
-
key,
|
|
15785
|
-
property.value
|
|
15786
|
-
];
|
|
15787
|
-
})));
|
|
15788
|
-
if (!parsed.success) return undefined;
|
|
15789
|
-
var _parsed_data = parsed.data, schema = _parsed_data.schema, version = _parsed_data.version, code = _parsed_data.code, stage = _parsed_data.stage, message = _parsed_data.message, retryable = _parsed_data.retryable, upstreamExecutionId = _parsed_data.upstreamExecutionId, auditRef = _parsed_data.auditRef;
|
|
15790
|
-
return _object_spread({
|
|
15791
|
-
schema: schema,
|
|
15792
|
-
version: version,
|
|
15793
|
-
code: code,
|
|
15794
|
-
stage: stage,
|
|
15795
|
-
message: message,
|
|
15796
|
-
retryable: retryable
|
|
15797
|
-
}, upstreamExecutionId ? {
|
|
15798
|
-
upstreamExecutionId: upstreamExecutionId
|
|
15799
|
-
} : {}, auditRef ? {
|
|
15800
|
-
auditRef: auditRef
|
|
15801
|
-
} : {});
|
|
15802
|
-
} catch (e) {
|
|
15803
|
-
return undefined;
|
|
15804
|
-
}
|
|
15805
|
-
}
|
|
15806
|
-
|
|
15807
|
-
var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
|
|
16276
|
+
var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
|
|
15808
16277
|
|
|
15809
16278
|
/** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
|
|
15810
16279
|
var MCP_EXECUTION_CONTROL_METHOD = "xpert/tasks/control";
|
|
@@ -15917,146 +16386,6 @@ var mcpTaskAcknowledgementSchema = zod.z.object({
|
|
|
15917
16386
|
resultType: zod.z.literal("complete")
|
|
15918
16387
|
}).passthrough();
|
|
15919
16388
|
|
|
15920
|
-
// Application types are independent of delivery channels and external account identities.
|
|
15921
|
-
var notificationClientSchema = v3.z.enum([
|
|
15922
|
-
"web",
|
|
15923
|
-
"desktop"
|
|
15924
|
-
]);
|
|
15925
|
-
var announcementActionSchema = v3.z.object({
|
|
15926
|
-
type: v3.z.literal("link"),
|
|
15927
|
-
label: v3.z.string().trim().min(1).max(80),
|
|
15928
|
-
url: v3.z.string().url().max(2048).refine(function(url) {
|
|
15929
|
-
return /^https:\/\//i.test(url);
|
|
15930
|
-
})
|
|
15931
|
-
}).strict();
|
|
15932
|
-
var announcementContentSchema = v3.z.object({
|
|
15933
|
-
title: v3.z.string().trim().min(1).max(160),
|
|
15934
|
-
body: v3.z.string().trim().min(1).max(20000),
|
|
15935
|
-
category: v3.z.enum([
|
|
15936
|
-
"general",
|
|
15937
|
-
"maintenance",
|
|
15938
|
-
"model_retirement"
|
|
15939
|
-
]).default("general"),
|
|
15940
|
-
severity: v3.z.enum([
|
|
15941
|
-
"info",
|
|
15942
|
-
"important"
|
|
15943
|
-
]).default("info"),
|
|
15944
|
-
clients: v3.z.array(notificationClientSchema).min(1).max(2).refine(function(items) {
|
|
15945
|
-
return new Set(items).size === items.length;
|
|
15946
|
-
}),
|
|
15947
|
-
startsAt: v3.z.string().datetime({
|
|
15948
|
-
offset: true
|
|
15949
|
-
}),
|
|
15950
|
-
expiresAt: v3.z.string().datetime({
|
|
15951
|
-
offset: true
|
|
15952
|
-
}).nullable().default(null),
|
|
15953
|
-
action: announcementActionSchema.nullable().default(null)
|
|
15954
|
-
}).strict();
|
|
15955
|
-
var createAnnouncementSchema = announcementContentSchema.refine(function(input) {
|
|
15956
|
-
return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
|
|
15957
|
-
}, {
|
|
15958
|
-
path: [
|
|
15959
|
-
"expiresAt"
|
|
15960
|
-
],
|
|
15961
|
-
message: "Expiry must follow start"
|
|
15962
|
-
});
|
|
15963
|
-
var updateAnnouncementSchema = announcementContentSchema.extend({
|
|
15964
|
-
revision: v3.z.number().int().positive()
|
|
15965
|
-
}).refine(function(input) {
|
|
15966
|
-
return !input.expiresAt || Date.parse(input.expiresAt) > Date.parse(input.startsAt);
|
|
15967
|
-
}, {
|
|
15968
|
-
path: [
|
|
15969
|
-
"expiresAt"
|
|
15970
|
-
]
|
|
15971
|
-
});
|
|
15972
|
-
var announcementRevisionSchema = v3.z.object({
|
|
15973
|
-
revision: v3.z.number().int().positive()
|
|
15974
|
-
}).strict();
|
|
15975
|
-
var announcementSchema = announcementContentSchema.extend({
|
|
15976
|
-
id: v3.z.string().uuid(),
|
|
15977
|
-
status: v3.z.enum([
|
|
15978
|
-
"draft",
|
|
15979
|
-
"published",
|
|
15980
|
-
"withdrawn"
|
|
15981
|
-
]),
|
|
15982
|
-
revision: v3.z.number().int().positive(),
|
|
15983
|
-
createdAt: v3.z.string().datetime({
|
|
15984
|
-
offset: true
|
|
15985
|
-
}),
|
|
15986
|
-
dismissedAt: v3.z.string().datetime({
|
|
15987
|
-
offset: true
|
|
15988
|
-
}).nullable().default(null)
|
|
15989
|
-
});
|
|
15990
|
-
var notificationSourceSchema = v3.z.object({
|
|
15991
|
-
type: v3.z.literal("scheduled_task"),
|
|
15992
|
-
taskId: v3.z.string().uuid(),
|
|
15993
|
-
executionId: v3.z.string().uuid(),
|
|
15994
|
-
assistantId: v3.z.string().uuid(),
|
|
15995
|
-
conversationId: v3.z.string().uuid()
|
|
15996
|
-
}).strict();
|
|
15997
|
-
var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
|
|
15998
|
-
threadId: v3.z.string().uuid().optional()
|
|
15999
|
-
});
|
|
16000
|
-
var userNotificationSchema = v3.z.object({
|
|
16001
|
-
id: v3.z.string().uuid(),
|
|
16002
|
-
kind: v3.z.literal("agent.completed"),
|
|
16003
|
-
source: notificationSourceSchema,
|
|
16004
|
-
createdAt: v3.z.string().datetime({
|
|
16005
|
-
offset: true
|
|
16006
|
-
}),
|
|
16007
|
-
readAt: v3.z.string().datetime({
|
|
16008
|
-
offset: true
|
|
16009
|
-
}).nullable(),
|
|
16010
|
-
action: v3.z.object({
|
|
16011
|
-
type: v3.z.literal("open_conversation"),
|
|
16012
|
-
assistantId: v3.z.string().uuid(),
|
|
16013
|
-
conversationId: v3.z.string().uuid(),
|
|
16014
|
-
threadId: v3.z.string().uuid().nullable()
|
|
16015
|
-
}).strict()
|
|
16016
|
-
}).strict();
|
|
16017
|
-
var notificationSnapshotSchema = v3.z.object({
|
|
16018
|
-
supported: v3.z.literal(true),
|
|
16019
|
-
version: v3.z.string(),
|
|
16020
|
-
announcements: v3.z.array(announcementSchema),
|
|
16021
|
-
notifications: v3.z.array(userNotificationSchema),
|
|
16022
|
-
hasMoreAnnouncements: v3.z.boolean(),
|
|
16023
|
-
hasMoreNotifications: v3.z.boolean()
|
|
16024
|
-
}).strict();
|
|
16025
|
-
var notificationChangeSchema = v3.z.object({
|
|
16026
|
-
schemaVersion: v3.z.literal(1),
|
|
16027
|
-
type: v3.z.literal("sync.required"),
|
|
16028
|
-
eventId: v3.z.string().uuid()
|
|
16029
|
-
}).strict();
|
|
16030
|
-
var notificationOutboxPayloadSchema = v3.z.discriminatedUnion("type", [
|
|
16031
|
-
v3.z.object({
|
|
16032
|
-
type: v3.z.literal("changed")
|
|
16033
|
-
}).strict(),
|
|
16034
|
-
v3.z.object({
|
|
16035
|
-
type: v3.z.literal("announcement.scheduled"),
|
|
16036
|
-
announcementId: v3.z.string().uuid(),
|
|
16037
|
-
revision: v3.z.number().int().positive(),
|
|
16038
|
-
phase: v3.z.enum([
|
|
16039
|
-
"start",
|
|
16040
|
-
"expiry"
|
|
16041
|
-
])
|
|
16042
|
-
}).strict(),
|
|
16043
|
-
v3.z.object({
|
|
16044
|
-
type: v3.z.literal("agent.completed"),
|
|
16045
|
-
source: scheduledNotificationOriginSchema
|
|
16046
|
-
}).strict()
|
|
16047
|
-
]);
|
|
16048
|
-
// The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
|
|
16049
|
-
// object outputs optional. These boundaries validate every required field before narrowing.
|
|
16050
|
-
function parseAnnouncement(value) {
|
|
16051
|
-
return announcementSchema.parse(value);
|
|
16052
|
-
}
|
|
16053
|
-
function parseUserNotification(value) {
|
|
16054
|
-
return userNotificationSchema.parse(value);
|
|
16055
|
-
}
|
|
16056
|
-
function parseNotificationSnapshot(value) {
|
|
16057
|
-
return notificationSnapshotSchema.parse(value);
|
|
16058
|
-
}
|
|
16059
|
-
|
|
16060
16389
|
var BUSINESS_AREA_ACCESS_ROLES = [
|
|
16061
16390
|
"consumer",
|
|
16062
16391
|
"publisher",
|
|
@@ -16068,7 +16397,7 @@ function businessAreaRoleAllows(role, action) {
|
|
|
16068
16397
|
|
|
16069
16398
|
/** Opens a discovered resource through its native authorization adapter in the current Workbench scope. */ var WORKBENCH_RESOURCE_OPEN_COMMAND = "workbench.resource.open";
|
|
16070
16399
|
|
|
16071
|
-
|
|
16400
|
+
var iconShape = {
|
|
16072
16401
|
type: v3.z.enum([
|
|
16073
16402
|
"image",
|
|
16074
16403
|
"svg",
|
|
@@ -16081,6 +16410,16 @@ function businessAreaRoleAllows(role, action) {
|
|
|
16081
16410
|
size: v3.z.number().finite().positive().optional(),
|
|
16082
16411
|
alt: v3.z.string().optional(),
|
|
16083
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
|
|
16084
16423
|
});
|
|
16085
16424
|
|
|
16086
16425
|
Object.defineProperty(exports, "createResourceCardContent", {
|
|
@@ -16107,6 +16446,8 @@ Object.defineProperty(exports, "upsertResourceCardContent", {
|
|
|
16107
16446
|
enumerable: true,
|
|
16108
16447
|
get: function () { return chatkitTypes.upsertResourceCardContent; }
|
|
16109
16448
|
});
|
|
16449
|
+
exports.viewContextEventSchema = contextEvent.viewContextEventSchema;
|
|
16450
|
+
exports.AGENT_OUTPUT_ACCEPT = AGENT_OUTPUT_ACCEPT;
|
|
16110
16451
|
exports.AGENT_OUTPUT_MAX_PATHS = AGENT_OUTPUT_MAX_PATHS;
|
|
16111
16452
|
exports.AGENT_PROFILE_TABS_SLOT = AGENT_PROFILE_TABS_SLOT;
|
|
16112
16453
|
exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
|
|
@@ -16174,6 +16515,8 @@ exports.DEFAULT_XPERT_WORKSPACE_DATA_SCOPE = DEFAULT_XPERT_WORKSPACE_DATA_SCOPE;
|
|
|
16174
16515
|
exports.DEPRECATED_ROLE_PERMISSIONS = DEPRECATED_ROLE_PERMISSIONS;
|
|
16175
16516
|
exports.DefaultModelRole = DefaultModelRole;
|
|
16176
16517
|
exports.ENTERPRISE_H5_PLATFORMS = ENTERPRISE_H5_PLATFORMS;
|
|
16518
|
+
exports.EVENT_INBOX_FEATURE = EVENT_INBOX_FEATURE;
|
|
16519
|
+
exports.EVENT_INBOX_VIEW_KEY = EVENT_INBOX_VIEW_KEY;
|
|
16177
16520
|
exports.FEEDBACK_LEARNING_STRATEGY = FEEDBACK_LEARNING_STRATEGY;
|
|
16178
16521
|
exports.FILE_VARIABLES = FILE_VARIABLES;
|
|
16179
16522
|
exports.GENERAL_PROJECT_TYPE = GENERAL_PROJECT_TYPE;
|
|
@@ -16267,8 +16610,6 @@ exports.MCP_TOOL_IDEMPOTENCY = MCP_TOOL_IDEMPOTENCY;
|
|
|
16267
16610
|
exports.MCP_TOOL_RISKS = MCP_TOOL_RISKS;
|
|
16268
16611
|
exports.MCP_TOOL_SIDE_EFFECTS = MCP_TOOL_SIDE_EFFECTS;
|
|
16269
16612
|
exports.MEMBERSHIP_CNY_PER_POINT_SETTING = MEMBERSHIP_CNY_PER_POINT_SETTING;
|
|
16270
|
-
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
16271
|
-
exports.MEMORY_QA_PROMPT = MEMORY_QA_PROMPT;
|
|
16272
16613
|
exports.MIN_COPILOT_CHECKPOINT_RETENTION_DAYS = MIN_COPILOT_CHECKPOINT_RETENTION_DAYS;
|
|
16273
16614
|
exports.MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS = MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS;
|
|
16274
16615
|
exports.MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS = MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS;
|
|
@@ -16338,6 +16679,7 @@ exports.TOOL_NAME_REGEX = TOOL_NAME_REGEX;
|
|
|
16338
16679
|
exports.TranslationLanguageMap = TranslationLanguageMap;
|
|
16339
16680
|
exports.UNWIRED_AI_PERMISSIONS = UNWIRED_AI_PERMISSIONS;
|
|
16340
16681
|
exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
|
|
16682
|
+
exports.USER_EVENT_INBOX_SLOT = USER_EVENT_INBOX_SLOT;
|
|
16341
16683
|
exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
|
|
16342
16684
|
exports.VariableOperations = VariableOperations;
|
|
16343
16685
|
exports.WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET;
|
|
@@ -16345,6 +16687,7 @@ exports.WORKBENCH_AGENT_EVOLUTION_TARGET = WORKBENCH_AGENT_EVOLUTION_TARGET;
|
|
|
16345
16687
|
exports.WORKBENCH_ASSISTANT_CONVERSATION_TARGET = WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
|
|
16346
16688
|
exports.WORKBENCH_ASSISTANT_EXECUTION_TARGET = WORKBENCH_ASSISTANT_EXECUTION_TARGET;
|
|
16347
16689
|
exports.WORKBENCH_ASSISTANT_PROJECT_TARGET = WORKBENCH_ASSISTANT_PROJECT_TARGET;
|
|
16690
|
+
exports.WORKBENCH_CONTENT_DRAFT_COMMAND = WORKBENCH_CONTENT_DRAFT_COMMAND;
|
|
16348
16691
|
exports.WORKBENCH_EXTENSION_VIEW_TARGET = WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
16349
16692
|
exports.WORKBENCH_FILE_OPEN_COMMAND = WORKBENCH_FILE_OPEN_COMMAND;
|
|
16350
16693
|
exports.WORKBENCH_GROUP_MESSAGE_TARGET = WORKBENCH_GROUP_MESSAGE_TARGET;
|
|
@@ -16356,6 +16699,7 @@ exports.WORKBENCH_RESOURCE_OPEN_COMMAND = WORKBENCH_RESOURCE_OPEN_COMMAND;
|
|
|
16356
16699
|
exports.WORKBENCH_VIEW_OPEN_EVENT = WORKBENCH_VIEW_OPEN_EVENT;
|
|
16357
16700
|
exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
|
|
16358
16701
|
exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER;
|
|
16702
|
+
exports.XPERT_FILE_MEMORY_MIDDLEWARE_NAME = XPERT_FILE_MEMORY_MIDDLEWARE_NAME;
|
|
16359
16703
|
exports.XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
|
|
16360
16704
|
exports.XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY = XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY;
|
|
16361
16705
|
exports.XPERT_TASK_SCHEDULE_PROPERTY_PREFIX = XPERT_TASK_SCHEDULE_PROPERTY_PREFIX;
|
|
@@ -16364,10 +16708,16 @@ exports.XPERT_VIEW_PROJECT_ID_HEADER = XPERT_VIEW_PROJECT_ID_HEADER;
|
|
|
16364
16708
|
exports.XpertMarketplaceBusinessCategories = XpertMarketplaceBusinessCategories;
|
|
16365
16709
|
exports.XpertMarketplaceCollaborationModes = XpertMarketplaceCollaborationModes;
|
|
16366
16710
|
exports.XpertMarketplaceTechnicalCategories = XpertMarketplaceTechnicalCategories;
|
|
16711
|
+
exports.agentDeliveryRecoverySchema = agentDeliveryRecoverySchema;
|
|
16712
|
+
exports.agentEventDecisionSchema = agentEventDecisionSchema;
|
|
16713
|
+
exports.agentEventRefSchema = agentEventRefSchema;
|
|
16367
16714
|
exports.agentInvocationStatusSchema = agentInvocationStatusSchema;
|
|
16368
16715
|
exports.agentInvocationTerminalStatusSchema = agentInvocationTerminalStatusSchema;
|
|
16369
16716
|
exports.agentLabel = agentLabel;
|
|
16370
16717
|
exports.agentOutputDeliverySchema = agentOutputDeliverySchema;
|
|
16718
|
+
exports.agentOutputOriginSchema = agentOutputOriginSchema;
|
|
16719
|
+
exports.agentOutputPresentationSchema = agentOutputPresentationSchema;
|
|
16720
|
+
exports.agentOutputReferenceSchema = agentOutputReferenceSchema;
|
|
16371
16721
|
exports.agentResultPathSchema = agentResultPathSchema;
|
|
16372
16722
|
exports.agentRuntimeModelSourceSchema = agentRuntimeModelSourceSchema;
|
|
16373
16723
|
exports.agentRuntimeProgressSchema = agentRuntimeProgressSchema;
|
|
@@ -16501,6 +16851,9 @@ exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
|
16501
16851
|
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
16502
16852
|
exports.getXpertWorkspaceVisibility = getXpertWorkspaceVisibility;
|
|
16503
16853
|
exports.hasEnabledKnowledgeRetrievalSource = hasEnabledKnowledgeRetrievalSource;
|
|
16854
|
+
exports.humanDecisionInputSchema = humanDecisionInputSchema;
|
|
16855
|
+
exports.humanDecisionSchema = humanDecisionSchema;
|
|
16856
|
+
exports.humanDecisionStatusSchema = humanDecisionStatusSchema;
|
|
16504
16857
|
exports.iconDefinitionSchema = iconDefinitionSchema;
|
|
16505
16858
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
16506
16859
|
exports.isAgentKey = isAgentKey;
|
|
@@ -16604,12 +16957,17 @@ exports.notificationClientSchema = notificationClientSchema;
|
|
|
16604
16957
|
exports.notificationOutboxPayloadSchema = notificationOutboxPayloadSchema;
|
|
16605
16958
|
exports.notificationSnapshotSchema = notificationSnapshotSchema;
|
|
16606
16959
|
exports.notificationSourceSchema = notificationSourceSchema;
|
|
16960
|
+
exports.notificationThreadIdSchema = notificationThreadIdSchema;
|
|
16607
16961
|
exports.omitXpertRelations = omitXpertRelations;
|
|
16962
|
+
exports.openConversationActionSchema = openConversationActionSchema;
|
|
16608
16963
|
exports.orderAssistantXperts = orderAssistantXperts;
|
|
16964
|
+
exports.outputPreferenceSchema = outputPreferenceSchema;
|
|
16965
|
+
exports.outputQuietHoursSchema = outputQuietHoursSchema;
|
|
16609
16966
|
exports.parseAnalyticsDiagnostic = parseAnalyticsDiagnostic;
|
|
16610
16967
|
exports.parseAnnouncement = parseAnnouncement;
|
|
16611
16968
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
16612
16969
|
exports.parseNotificationSnapshot = parseNotificationSnapshot;
|
|
16970
|
+
exports.parseOpenConversationAction = parseOpenConversationAction;
|
|
16613
16971
|
exports.parseProjectPipelineParameters = parseProjectPipelineParameters;
|
|
16614
16972
|
exports.parsePromptCapabilityConfig = parsePromptCapabilityConfig;
|
|
16615
16973
|
exports.parsePromptCapabilitySelection = parsePromptCapabilitySelection;
|
|
@@ -16632,6 +16990,9 @@ exports.pipelineModelUsageStatisticsSchema = pipelineModelUsageStatisticsSchema;
|
|
|
16632
16990
|
exports.pipelineNodeNeedsHuman = pipelineNodeNeedsHuman;
|
|
16633
16991
|
exports.pipelineQueueStatistics = pipelineQueueStatistics;
|
|
16634
16992
|
exports.pipelineQueueStatisticsSchema = pipelineQueueStatisticsSchema;
|
|
16993
|
+
exports.pluginAgentEventSchema = pluginAgentEventSchema;
|
|
16994
|
+
exports.privateDecisionFeedbackStatusSchema = privateDecisionFeedbackStatusSchema;
|
|
16995
|
+
exports.privateDecisionReplySchema = privateDecisionReplySchema;
|
|
16635
16996
|
exports.projectConfigurationActionSchema = projectConfigurationActionSchema;
|
|
16636
16997
|
exports.projectConfigurationSectionSchema = projectConfigurationSectionSchema;
|
|
16637
16998
|
exports.projectConfigurationUpdateSchema = projectConfigurationUpdateSchema;
|
|
@@ -16649,6 +17010,7 @@ exports.projectPipelineCatalogRequestSchema = projectPipelineCatalogRequestSchem
|
|
|
16649
17010
|
exports.projectPipelineCatalogSchema = projectPipelineCatalogSchema;
|
|
16650
17011
|
exports.projectPipelineCommandCapabilitySchema = projectPipelineCommandCapabilitySchema;
|
|
16651
17012
|
exports.projectPipelineCompletionReceiptSchema = projectPipelineCompletionReceiptSchema;
|
|
17013
|
+
exports.projectPipelineConfigurationDeclarationSchema = projectPipelineConfigurationDeclarationSchema;
|
|
16652
17014
|
exports.projectPipelineConfigurationFormSchema = projectPipelineConfigurationFormSchema;
|
|
16653
17015
|
exports.projectPipelineConfigurationPageSchema = projectPipelineConfigurationPageSchema;
|
|
16654
17016
|
exports.projectPipelineConfigurationSchema = projectPipelineConfigurationSchema;
|
|
@@ -16726,6 +17088,7 @@ exports.projectTaskCandidatePathSchema = projectTaskCandidatePathSchema;
|
|
|
16726
17088
|
exports.projectTaskConfigurationSchema = projectTaskConfigurationSchema;
|
|
16727
17089
|
exports.projectTaskDecisionInputSchema = projectTaskDecisionInputSchema;
|
|
16728
17090
|
exports.projectTaskDecisionSchema = projectTaskDecisionSchema;
|
|
17091
|
+
exports.projectTaskDecisionToolInputSchema = projectTaskDecisionToolInputSchema;
|
|
16729
17092
|
exports.projectTaskDispatchInputSchema = projectTaskDispatchInputSchema;
|
|
16730
17093
|
exports.projectTaskDispatchReceiptSchema = projectTaskDispatchReceiptSchema;
|
|
16731
17094
|
exports.projectTaskDispatchToolInputSchema = projectTaskDispatchToolInputSchema;
|
|
@@ -16735,8 +17098,6 @@ exports.projectTaskEvidenceReferenceSchema = projectTaskEvidenceReferenceSchema;
|
|
|
16735
17098
|
exports.projectTaskExecutionContextSchema = projectTaskExecutionContextSchema;
|
|
16736
17099
|
exports.projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeSchema;
|
|
16737
17100
|
exports.projectTaskExecutionReferenceSchema = projectTaskExecutionReferenceSchema;
|
|
16738
|
-
exports.projectTaskExecutionReviewReportSchema = projectTaskExecutionReviewReportSchema;
|
|
16739
|
-
exports.projectTaskReviewFindingSchema = projectTaskReviewFindingSchema;
|
|
16740
17101
|
exports.projectTaskReviewReportSchema = projectTaskReviewReportSchema;
|
|
16741
17102
|
exports.projectTaskReviewSubjectSchema = projectTaskReviewSubjectSchema;
|
|
16742
17103
|
exports.projectTaskReviewerSchema = projectTaskReviewerSchema;
|
|
@@ -16803,7 +17164,6 @@ exports.uuid = uuid;
|
|
|
16803
17164
|
exports.validateProjectPipelineConfigurationForm = validateProjectPipelineConfigurationForm;
|
|
16804
17165
|
exports.validateProjectPipelineDefinition = validateProjectPipelineDefinition;
|
|
16805
17166
|
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
16806
|
-
exports.viewContextEventSchema = viewContextEventSchema;
|
|
16807
17167
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
16808
17168
|
exports.workspaceConnectorAuthorizationSchema = workspaceConnectorAuthorizationSchema;
|
|
16809
17169
|
exports.workspaceConnectorConnectPayloadSchema = workspaceConnectorConnectPayloadSchema;
|