@xpert-ai/contracts 3.37.2 → 3.38.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/index.cjs.js +378 -285
- package/index.esm.js +378 -286
- package/package.json +2 -2
- package/src/ai/conversation-project-move.model.d.ts +27 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/project-task-view.model.d.ts +133 -0
- package/src/app-platform.d.ts +1 -1
- package/src/file-asset.model.d.ts +7 -0
- package/src/view-extension/assistant-profile.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -390,7 +390,7 @@ exports.AiModelTypeEnum = void 0;
|
|
|
390
390
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
391
391
|
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
392
392
|
|
|
393
|
-
function _define_property$
|
|
393
|
+
function _define_property$v(obj, key, value) {
|
|
394
394
|
if (key in obj) {
|
|
395
395
|
Object.defineProperty(obj, key, {
|
|
396
396
|
value: value,
|
|
@@ -403,7 +403,7 @@ function _define_property$u(obj, key, value) {
|
|
|
403
403
|
}
|
|
404
404
|
return obj;
|
|
405
405
|
}
|
|
406
|
-
function _object_spread$
|
|
406
|
+
function _object_spread$v(target) {
|
|
407
407
|
for(var i = 1; i < arguments.length; i++){
|
|
408
408
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
409
409
|
var ownKeys = Object.keys(source);
|
|
@@ -413,12 +413,12 @@ function _object_spread$u(target) {
|
|
|
413
413
|
}));
|
|
414
414
|
}
|
|
415
415
|
ownKeys.forEach(function(key) {
|
|
416
|
-
_define_property$
|
|
416
|
+
_define_property$v(target, key, source[key]);
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
return target;
|
|
420
420
|
}
|
|
421
|
-
function ownKeys$
|
|
421
|
+
function ownKeys$o(object, enumerableOnly) {
|
|
422
422
|
var keys = Object.keys(object);
|
|
423
423
|
if (Object.getOwnPropertySymbols) {
|
|
424
424
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -426,12 +426,12 @@ function ownKeys$n(object, enumerableOnly) {
|
|
|
426
426
|
}
|
|
427
427
|
return keys;
|
|
428
428
|
}
|
|
429
|
-
function _object_spread_props$
|
|
429
|
+
function _object_spread_props$o(target, source) {
|
|
430
430
|
source = source != null ? source : {};
|
|
431
431
|
if (Object.getOwnPropertyDescriptors) {
|
|
432
432
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
433
433
|
} else {
|
|
434
|
-
ownKeys$
|
|
434
|
+
ownKeys$o(Object(source)).forEach(function(key) {
|
|
435
435
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
436
436
|
});
|
|
437
437
|
}
|
|
@@ -454,7 +454,7 @@ var appPlatformAppSchema = v3.z.object({
|
|
|
454
454
|
configurationRef: key$3,
|
|
455
455
|
dependsOn: v3.z.array(key$3).max(32).default([])
|
|
456
456
|
}).strict().transform(function(app) {
|
|
457
|
-
return _object_spread_props$
|
|
457
|
+
return _object_spread_props$o(_object_spread$v({}, app), {
|
|
458
458
|
key: app.key,
|
|
459
459
|
required: app.required,
|
|
460
460
|
configurationRef: app.configurationRef,
|
|
@@ -2125,7 +2125,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
2125
2125
|
resourceType: "conversation_snapshot"
|
|
2126
2126
|
};
|
|
2127
2127
|
|
|
2128
|
-
function _define_property$
|
|
2128
|
+
function _define_property$u(obj, key, value) {
|
|
2129
2129
|
if (key in obj) {
|
|
2130
2130
|
Object.defineProperty(obj, key, {
|
|
2131
2131
|
value: value,
|
|
@@ -2138,7 +2138,7 @@ function _define_property$t(obj, key, value) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
return obj;
|
|
2140
2140
|
}
|
|
2141
|
-
function _object_spread$
|
|
2141
|
+
function _object_spread$u(target) {
|
|
2142
2142
|
for(var i = 1; i < arguments.length; i++){
|
|
2143
2143
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2144
2144
|
var ownKeys = Object.keys(source);
|
|
@@ -2148,12 +2148,12 @@ function _object_spread$t(target) {
|
|
|
2148
2148
|
}));
|
|
2149
2149
|
}
|
|
2150
2150
|
ownKeys.forEach(function(key) {
|
|
2151
|
-
_define_property$
|
|
2151
|
+
_define_property$u(target, key, source[key]);
|
|
2152
2152
|
});
|
|
2153
2153
|
}
|
|
2154
2154
|
return target;
|
|
2155
2155
|
}
|
|
2156
|
-
function ownKeys$
|
|
2156
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
2157
2157
|
var keys = Object.keys(object);
|
|
2158
2158
|
if (Object.getOwnPropertySymbols) {
|
|
2159
2159
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2161,12 +2161,12 @@ function ownKeys$m(object, enumerableOnly) {
|
|
|
2161
2161
|
}
|
|
2162
2162
|
return keys;
|
|
2163
2163
|
}
|
|
2164
|
-
function _object_spread_props$
|
|
2164
|
+
function _object_spread_props$n(target, source) {
|
|
2165
2165
|
source = source != null ? source : {};
|
|
2166
2166
|
if (Object.getOwnPropertyDescriptors) {
|
|
2167
2167
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2168
2168
|
} else {
|
|
2169
|
-
ownKeys$
|
|
2169
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
2170
2170
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2171
2171
|
});
|
|
2172
2172
|
}
|
|
@@ -2194,7 +2194,7 @@ function parseSelectionSet(value) {
|
|
|
2194
2194
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
2195
2195
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
2196
2196
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
2197
|
-
return _object_spread$
|
|
2197
|
+
return _object_spread$u(_object_spread_props$n(_object_spread$u({}, value), {
|
|
2198
2198
|
skills: skills === undefined ? {
|
|
2199
2199
|
ids: []
|
|
2200
2200
|
} : skills,
|
|
@@ -2213,7 +2213,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
2213
2213
|
var selection = parseSelectionSet(value);
|
|
2214
2214
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
2215
2215
|
if (!selection || recommended === null) return null;
|
|
2216
|
-
return _object_spread$
|
|
2216
|
+
return _object_spread$u(_object_spread_props$n(_object_spread$u({}, selection), {
|
|
2217
2217
|
mode: "allowlist"
|
|
2218
2218
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
2219
2219
|
inheritUnselected: value.inheritUnselected
|
|
@@ -2265,7 +2265,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
}
|
|
2268
|
-
return _object_spread_props$
|
|
2268
|
+
return _object_spread_props$n(_object_spread$u({}, value), {
|
|
2269
2269
|
type: "expert_scoped_capabilities",
|
|
2270
2270
|
version: 1,
|
|
2271
2271
|
defaults: defaults,
|
|
@@ -2397,7 +2397,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
2397
2397
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
2398
2398
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
2399
2399
|
|
|
2400
|
-
function _define_property$
|
|
2400
|
+
function _define_property$t(obj, key, value) {
|
|
2401
2401
|
if (key in obj) {
|
|
2402
2402
|
Object.defineProperty(obj, key, {
|
|
2403
2403
|
value: value,
|
|
@@ -2417,7 +2417,7 @@ function _instanceof$1(left, right) {
|
|
|
2417
2417
|
return left instanceof right;
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
|
-
function _object_spread$
|
|
2420
|
+
function _object_spread$t(target) {
|
|
2421
2421
|
for(var i = 1; i < arguments.length; i++){
|
|
2422
2422
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2423
2423
|
var ownKeys = Object.keys(source);
|
|
@@ -2427,7 +2427,7 @@ function _object_spread$s(target) {
|
|
|
2427
2427
|
}));
|
|
2428
2428
|
}
|
|
2429
2429
|
ownKeys.forEach(function(key) {
|
|
2430
|
-
_define_property$
|
|
2430
|
+
_define_property$t(target, key, source[key]);
|
|
2431
2431
|
});
|
|
2432
2432
|
}
|
|
2433
2433
|
return target;
|
|
@@ -2438,12 +2438,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2438
2438
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2439
2439
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2440
2440
|
function createConversationTitleSummaryEvent(event) {
|
|
2441
|
-
return _object_spread$
|
|
2441
|
+
return _object_spread$t({
|
|
2442
2442
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2443
2443
|
}, event);
|
|
2444
2444
|
}
|
|
2445
2445
|
function createFollowUpConsumedEvent(event) {
|
|
2446
|
-
return _object_spread$
|
|
2446
|
+
return _object_spread$t({
|
|
2447
2447
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2448
2448
|
}, event);
|
|
2449
2449
|
}
|
|
@@ -2489,7 +2489,7 @@ function _array_with_holes$j(arr) {
|
|
|
2489
2489
|
function _array_without_holes$j(arr) {
|
|
2490
2490
|
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2491
2491
|
}
|
|
2492
|
-
function _define_property$
|
|
2492
|
+
function _define_property$s(obj, key, value) {
|
|
2493
2493
|
if (key in obj) {
|
|
2494
2494
|
Object.defineProperty(obj, key, {
|
|
2495
2495
|
value: value,
|
|
@@ -2535,7 +2535,7 @@ function _non_iterable_rest$j() {
|
|
|
2535
2535
|
function _non_iterable_spread$j() {
|
|
2536
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.");
|
|
2537
2537
|
}
|
|
2538
|
-
function _object_spread$
|
|
2538
|
+
function _object_spread$s(target) {
|
|
2539
2539
|
for(var i = 1; i < arguments.length; i++){
|
|
2540
2540
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2541
2541
|
var ownKeys = Object.keys(source);
|
|
@@ -2545,12 +2545,12 @@ function _object_spread$r(target) {
|
|
|
2545
2545
|
}));
|
|
2546
2546
|
}
|
|
2547
2547
|
ownKeys.forEach(function(key) {
|
|
2548
|
-
_define_property$
|
|
2548
|
+
_define_property$s(target, key, source[key]);
|
|
2549
2549
|
});
|
|
2550
2550
|
}
|
|
2551
2551
|
return target;
|
|
2552
2552
|
}
|
|
2553
|
-
function ownKeys$
|
|
2553
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
2554
2554
|
var keys = Object.keys(object);
|
|
2555
2555
|
if (Object.getOwnPropertySymbols) {
|
|
2556
2556
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2558,12 +2558,12 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
return keys;
|
|
2560
2560
|
}
|
|
2561
|
-
function _object_spread_props$
|
|
2561
|
+
function _object_spread_props$m(target, source) {
|
|
2562
2562
|
source = source != null ? source : {};
|
|
2563
2563
|
if (Object.getOwnPropertyDescriptors) {
|
|
2564
2564
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2565
2565
|
} else {
|
|
2566
|
-
ownKeys$
|
|
2566
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
2567
2567
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2568
2568
|
});
|
|
2569
2569
|
}
|
|
@@ -2682,7 +2682,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2682
2682
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2683
2683
|
return null;
|
|
2684
2684
|
}
|
|
2685
|
-
return _object_spread$
|
|
2685
|
+
return _object_spread$s({
|
|
2686
2686
|
version: 1
|
|
2687
2687
|
}, Object.keys(toolsets).length ? {
|
|
2688
2688
|
toolsets: toolsets
|
|
@@ -2760,8 +2760,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2760
2760
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2761
2761
|
normalizedToolName
|
|
2762
2762
|
]));
|
|
2763
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2764
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2763
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$s({}, normalizedPreferences.toolsets) : undefined;
|
|
2764
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$s({}, normalizedPreferences.middlewares) : undefined;
|
|
2765
2765
|
if (sourceType === "toolset") {
|
|
2766
2766
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2767
2767
|
if (!toolsetName) {
|
|
@@ -2777,14 +2777,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2777
2777
|
} else {
|
|
2778
2778
|
delete nextToolsets[normalizedNodeKey];
|
|
2779
2779
|
}
|
|
2780
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2780
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2781
2781
|
version: 1
|
|
2782
2782
|
}, Object.keys(nextToolsets).length ? {
|
|
2783
2783
|
toolsets: nextToolsets
|
|
2784
2784
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2785
2785
|
middlewares: middlewares
|
|
2786
2786
|
} : {}, normalizedPreferences.skills ? {
|
|
2787
|
-
skills: _object_spread$
|
|
2787
|
+
skills: _object_spread$s({}, normalizedPreferences.skills)
|
|
2788
2788
|
} : {}));
|
|
2789
2789
|
}
|
|
2790
2790
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2800,14 +2800,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2800
2800
|
} else {
|
|
2801
2801
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2802
2802
|
}
|
|
2803
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2803
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2804
2804
|
version: 1
|
|
2805
2805
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2806
2806
|
toolsets: toolsets
|
|
2807
2807
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2808
2808
|
middlewares: nextMiddlewares
|
|
2809
2809
|
} : {}, normalizedPreferences.skills ? {
|
|
2810
|
-
skills: _object_spread$
|
|
2810
|
+
skills: _object_spread$s({}, normalizedPreferences.skills)
|
|
2811
2811
|
} : {}));
|
|
2812
2812
|
}
|
|
2813
2813
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2825,7 +2825,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2825
2825
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2826
2826
|
normalizedSkillId
|
|
2827
2827
|
]));
|
|
2828
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2828
|
+
var skills = normalizedPreferences.skills ? _object_spread$s({}, normalizedPreferences.skills) : {};
|
|
2829
2829
|
if (nextDisabledSkillIds.length) {
|
|
2830
2830
|
skills[normalizedWorkspaceId] = {
|
|
2831
2831
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2834,12 +2834,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2834
2834
|
} else {
|
|
2835
2835
|
delete skills[normalizedWorkspaceId];
|
|
2836
2836
|
}
|
|
2837
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2837
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2838
2838
|
version: 1
|
|
2839
2839
|
}, normalizedPreferences.toolsets ? {
|
|
2840
|
-
toolsets: _object_spread$
|
|
2840
|
+
toolsets: _object_spread$s({}, normalizedPreferences.toolsets)
|
|
2841
2841
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2842
|
-
middlewares: _object_spread$
|
|
2842
|
+
middlewares: _object_spread$s({}, normalizedPreferences.middlewares)
|
|
2843
2843
|
} : {}, Object.keys(skills).length ? {
|
|
2844
2844
|
skills: skills
|
|
2845
2845
|
} : {}));
|
|
@@ -2857,14 +2857,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2857
2857
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2858
2858
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2859
2859
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2860
|
-
return _object_spread_props$
|
|
2860
|
+
return _object_spread_props$m(_object_spread$s({
|
|
2861
2861
|
version: 1
|
|
2862
2862
|
}, normalizedPreferences.toolsets ? {
|
|
2863
|
-
toolsets: _object_spread$
|
|
2863
|
+
toolsets: _object_spread$s({}, normalizedPreferences.toolsets)
|
|
2864
2864
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2865
|
-
middlewares: _object_spread$
|
|
2865
|
+
middlewares: _object_spread$s({}, normalizedPreferences.middlewares)
|
|
2866
2866
|
} : {}), {
|
|
2867
|
-
skills: _object_spread_props$
|
|
2867
|
+
skills: _object_spread_props$m(_object_spread$s({}, currentSkills), _define_property$s({}, normalizedWorkspaceId, {
|
|
2868
2868
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2869
2869
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2870
2870
|
}))
|
|
@@ -3196,7 +3196,7 @@ function _array_like_to_array$t(arr, len) {
|
|
|
3196
3196
|
function _array_without_holes$h(arr) {
|
|
3197
3197
|
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
3198
3198
|
}
|
|
3199
|
-
function _define_property$
|
|
3199
|
+
function _define_property$r(obj, key, value) {
|
|
3200
3200
|
if (key in obj) {
|
|
3201
3201
|
Object.defineProperty(obj, key, {
|
|
3202
3202
|
value: value,
|
|
@@ -3215,7 +3215,7 @@ function _iterable_to_array$j(iter) {
|
|
|
3215
3215
|
function _non_iterable_spread$h() {
|
|
3216
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.");
|
|
3217
3217
|
}
|
|
3218
|
-
function _object_spread$
|
|
3218
|
+
function _object_spread$r(target) {
|
|
3219
3219
|
for(var i = 1; i < arguments.length; i++){
|
|
3220
3220
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3221
3221
|
var ownKeys = Object.keys(source);
|
|
@@ -3225,12 +3225,12 @@ function _object_spread$q(target) {
|
|
|
3225
3225
|
}));
|
|
3226
3226
|
}
|
|
3227
3227
|
ownKeys.forEach(function(key) {
|
|
3228
|
-
_define_property$
|
|
3228
|
+
_define_property$r(target, key, source[key]);
|
|
3229
3229
|
});
|
|
3230
3230
|
}
|
|
3231
3231
|
return target;
|
|
3232
3232
|
}
|
|
3233
|
-
function ownKeys$
|
|
3233
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
3234
3234
|
var keys = Object.keys(object);
|
|
3235
3235
|
if (Object.getOwnPropertySymbols) {
|
|
3236
3236
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3238,12 +3238,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
3238
3238
|
}
|
|
3239
3239
|
return keys;
|
|
3240
3240
|
}
|
|
3241
|
-
function _object_spread_props$
|
|
3241
|
+
function _object_spread_props$l(target, source) {
|
|
3242
3242
|
source = source != null ? source : {};
|
|
3243
3243
|
if (Object.getOwnPropertyDescriptors) {
|
|
3244
3244
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3245
3245
|
} else {
|
|
3246
|
-
ownKeys$
|
|
3246
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
3247
3247
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3248
3248
|
});
|
|
3249
3249
|
}
|
|
@@ -3272,20 +3272,20 @@ var common$1 = {
|
|
|
3272
3272
|
maxConcurrency: positiveInteger.max(1000)
|
|
3273
3273
|
};
|
|
3274
3274
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
3275
|
-
zod.z.object(_object_spread_props$
|
|
3275
|
+
zod.z.object(_object_spread_props$l(_object_spread$r({
|
|
3276
3276
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
3277
3277
|
}, common$1), {
|
|
3278
3278
|
maxOutputTokens: positiveInteger,
|
|
3279
3279
|
defaultMaxTokens: positiveInteger,
|
|
3280
3280
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
3281
3281
|
})).strict(),
|
|
3282
|
-
zod.z.object(_object_spread_props$
|
|
3282
|
+
zod.z.object(_object_spread_props$l(_object_spread$r({
|
|
3283
3283
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
3284
3284
|
}, common$1), {
|
|
3285
3285
|
dimensions: positiveInteger.optional(),
|
|
3286
3286
|
batchSize: positiveInteger.max(2048)
|
|
3287
3287
|
})).strict(),
|
|
3288
|
-
zod.z.object(_object_spread$
|
|
3288
|
+
zod.z.object(_object_spread$r({
|
|
3289
3289
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
3290
3290
|
}, common$1)).strict()
|
|
3291
3291
|
]).superRefine(function(value, ctx) {
|
|
@@ -3317,7 +3317,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
3317
3317
|
};
|
|
3318
3318
|
switch(modelType){
|
|
3319
3319
|
case exports.AiModelTypeEnum.LLM:
|
|
3320
|
-
return _object_spread_props$
|
|
3320
|
+
return _object_spread_props$l(_object_spread$r({
|
|
3321
3321
|
modelType: modelType
|
|
3322
3322
|
}, common), {
|
|
3323
3323
|
maxOutputTokens: 2048,
|
|
@@ -3325,13 +3325,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
3325
3325
|
features: []
|
|
3326
3326
|
});
|
|
3327
3327
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
3328
|
-
return _object_spread_props$
|
|
3328
|
+
return _object_spread_props$l(_object_spread$r({
|
|
3329
3329
|
modelType: modelType
|
|
3330
3330
|
}, common), {
|
|
3331
3331
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
3332
3332
|
});
|
|
3333
3333
|
case exports.AiModelTypeEnum.RERANK:
|
|
3334
|
-
return _object_spread$
|
|
3334
|
+
return _object_spread$r({
|
|
3335
3335
|
modelType: modelType
|
|
3336
3336
|
}, common);
|
|
3337
3337
|
}
|
|
@@ -3941,7 +3941,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3941
3941
|
return node.title || node.key;
|
|
3942
3942
|
}
|
|
3943
3943
|
|
|
3944
|
-
function _define_property$
|
|
3944
|
+
function _define_property$q(obj, key, value) {
|
|
3945
3945
|
if (key in obj) {
|
|
3946
3946
|
Object.defineProperty(obj, key, {
|
|
3947
3947
|
value: value,
|
|
@@ -3954,7 +3954,7 @@ function _define_property$p(obj, key, value) {
|
|
|
3954
3954
|
}
|
|
3955
3955
|
return obj;
|
|
3956
3956
|
}
|
|
3957
|
-
function _object_spread$
|
|
3957
|
+
function _object_spread$q(target) {
|
|
3958
3958
|
for(var i = 1; i < arguments.length; i++){
|
|
3959
3959
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3960
3960
|
var ownKeys = Object.keys(source);
|
|
@@ -3964,12 +3964,12 @@ function _object_spread$p(target) {
|
|
|
3964
3964
|
}));
|
|
3965
3965
|
}
|
|
3966
3966
|
ownKeys.forEach(function(key) {
|
|
3967
|
-
_define_property$
|
|
3967
|
+
_define_property$q(target, key, source[key]);
|
|
3968
3968
|
});
|
|
3969
3969
|
}
|
|
3970
3970
|
return target;
|
|
3971
3971
|
}
|
|
3972
|
-
function ownKeys$
|
|
3972
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
3973
3973
|
var keys = Object.keys(object);
|
|
3974
3974
|
if (Object.getOwnPropertySymbols) {
|
|
3975
3975
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3977,12 +3977,12 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
3977
3977
|
}
|
|
3978
3978
|
return keys;
|
|
3979
3979
|
}
|
|
3980
|
-
function _object_spread_props$
|
|
3980
|
+
function _object_spread_props$k(target, source) {
|
|
3981
3981
|
source = source != null ? source : {};
|
|
3982
3982
|
if (Object.getOwnPropertyDescriptors) {
|
|
3983
3983
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3984
3984
|
} else {
|
|
3985
|
-
ownKeys$
|
|
3985
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
3986
3986
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3987
3987
|
});
|
|
3988
3988
|
}
|
|
@@ -4055,7 +4055,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
4055
4055
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$4(_ref, [
|
|
4056
4056
|
"maxConcurrency"
|
|
4057
4057
|
]);
|
|
4058
|
-
return _object_spread_props$
|
|
4058
|
+
return _object_spread_props$k(_object_spread$q({}, config), {
|
|
4059
4059
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
4060
4060
|
});
|
|
4061
4061
|
}
|
|
@@ -4144,7 +4144,7 @@ function _array_like_to_array$s(arr, len) {
|
|
|
4144
4144
|
function _array_with_holes$h(arr) {
|
|
4145
4145
|
if (Array.isArray(arr)) return arr;
|
|
4146
4146
|
}
|
|
4147
|
-
function _define_property$
|
|
4147
|
+
function _define_property$p(obj, key, value) {
|
|
4148
4148
|
if (key in obj) {
|
|
4149
4149
|
Object.defineProperty(obj, key, {
|
|
4150
4150
|
value: value,
|
|
@@ -4184,7 +4184,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
4184
4184
|
function _non_iterable_rest$h() {
|
|
4185
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.");
|
|
4186
4186
|
}
|
|
4187
|
-
function _object_spread$
|
|
4187
|
+
function _object_spread$p(target) {
|
|
4188
4188
|
for(var i = 1; i < arguments.length; i++){
|
|
4189
4189
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4190
4190
|
var ownKeys = Object.keys(source);
|
|
@@ -4194,12 +4194,12 @@ function _object_spread$o(target) {
|
|
|
4194
4194
|
}));
|
|
4195
4195
|
}
|
|
4196
4196
|
ownKeys.forEach(function(key) {
|
|
4197
|
-
_define_property$
|
|
4197
|
+
_define_property$p(target, key, source[key]);
|
|
4198
4198
|
});
|
|
4199
4199
|
}
|
|
4200
4200
|
return target;
|
|
4201
4201
|
}
|
|
4202
|
-
function ownKeys$
|
|
4202
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
4203
4203
|
var keys = Object.keys(object);
|
|
4204
4204
|
if (Object.getOwnPropertySymbols) {
|
|
4205
4205
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4207,12 +4207,12 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
4207
4207
|
}
|
|
4208
4208
|
return keys;
|
|
4209
4209
|
}
|
|
4210
|
-
function _object_spread_props$
|
|
4210
|
+
function _object_spread_props$j(target, source) {
|
|
4211
4211
|
source = source != null ? source : {};
|
|
4212
4212
|
if (Object.getOwnPropertyDescriptors) {
|
|
4213
4213
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4214
4214
|
} else {
|
|
4215
|
-
ownKeys$
|
|
4215
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
4216
4216
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4217
4217
|
});
|
|
4218
4218
|
}
|
|
@@ -4312,7 +4312,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
4312
4312
|
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
4313
4313
|
if (variableName) {
|
|
4314
4314
|
var _state_agentChannelName;
|
|
4315
|
-
state[agentChannelName] = _object_spread_props$
|
|
4315
|
+
state[agentChannelName] = _object_spread_props$j(_object_spread$p({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$p({}, variableName, value));
|
|
4316
4316
|
} else {
|
|
4317
4317
|
state[agentChannelName] = value;
|
|
4318
4318
|
}
|
|
@@ -4403,7 +4403,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4403
4403
|
});
|
|
4404
4404
|
}
|
|
4405
4405
|
|
|
4406
|
-
function _define_property$
|
|
4406
|
+
function _define_property$o(obj, key, value) {
|
|
4407
4407
|
if (key in obj) {
|
|
4408
4408
|
Object.defineProperty(obj, key, {
|
|
4409
4409
|
value: value,
|
|
@@ -4416,7 +4416,7 @@ function _define_property$n(obj, key, value) {
|
|
|
4416
4416
|
}
|
|
4417
4417
|
return obj;
|
|
4418
4418
|
}
|
|
4419
|
-
function _object_spread$
|
|
4419
|
+
function _object_spread$o(target) {
|
|
4420
4420
|
for(var i = 1; i < arguments.length; i++){
|
|
4421
4421
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4422
4422
|
var ownKeys = Object.keys(source);
|
|
@@ -4426,12 +4426,12 @@ function _object_spread$n(target) {
|
|
|
4426
4426
|
}));
|
|
4427
4427
|
}
|
|
4428
4428
|
ownKeys.forEach(function(key) {
|
|
4429
|
-
_define_property$
|
|
4429
|
+
_define_property$o(target, key, source[key]);
|
|
4430
4430
|
});
|
|
4431
4431
|
}
|
|
4432
4432
|
return target;
|
|
4433
4433
|
}
|
|
4434
|
-
function ownKeys$
|
|
4434
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
4435
4435
|
var keys = Object.keys(object);
|
|
4436
4436
|
if (Object.getOwnPropertySymbols) {
|
|
4437
4437
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4439,12 +4439,12 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
4439
4439
|
}
|
|
4440
4440
|
return keys;
|
|
4441
4441
|
}
|
|
4442
|
-
function _object_spread_props$
|
|
4442
|
+
function _object_spread_props$i(target, source) {
|
|
4443
4443
|
source = source != null ? source : {};
|
|
4444
4444
|
if (Object.getOwnPropertyDescriptors) {
|
|
4445
4445
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4446
4446
|
} else {
|
|
4447
|
-
ownKeys$
|
|
4447
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
4448
4448
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4449
4449
|
});
|
|
4450
4450
|
}
|
|
@@ -4532,11 +4532,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4532
4532
|
return candidate === requestedMode;
|
|
4533
4533
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4534
4534
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4535
|
-
return _object_spread_props$
|
|
4535
|
+
return _object_spread_props$i(_object_spread$o({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4536
4536
|
mode: mode,
|
|
4537
|
-
fusion: _object_spread_props$
|
|
4537
|
+
fusion: _object_spread_props$i(_object_spread$o({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
4538
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,
|
|
4539
|
-
weights: _object_spread_props$
|
|
4539
|
+
weights: _object_spread_props$i(_object_spread$o({}, 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 : {}), {
|
|
4540
4540
|
graph: 0
|
|
4541
4541
|
})
|
|
4542
4542
|
})
|
|
@@ -4705,7 +4705,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4705
4705
|
function _array_without_holes$f(arr) {
|
|
4706
4706
|
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4707
4707
|
}
|
|
4708
|
-
function _define_property$
|
|
4708
|
+
function _define_property$n(obj, key, value) {
|
|
4709
4709
|
if (key in obj) {
|
|
4710
4710
|
Object.defineProperty(obj, key, {
|
|
4711
4711
|
value: value,
|
|
@@ -4724,7 +4724,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4724
4724
|
function _non_iterable_spread$f() {
|
|
4725
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.");
|
|
4726
4726
|
}
|
|
4727
|
-
function _object_spread$
|
|
4727
|
+
function _object_spread$n(target) {
|
|
4728
4728
|
for(var i = 1; i < arguments.length; i++){
|
|
4729
4729
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4730
4730
|
var ownKeys = Object.keys(source);
|
|
@@ -4734,7 +4734,7 @@ function _object_spread$m(target) {
|
|
|
4734
4734
|
}));
|
|
4735
4735
|
}
|
|
4736
4736
|
ownKeys.forEach(function(key) {
|
|
4737
|
-
_define_property$
|
|
4737
|
+
_define_property$n(target, key, source[key]);
|
|
4738
4738
|
});
|
|
4739
4739
|
}
|
|
4740
4740
|
return target;
|
|
@@ -4752,12 +4752,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4752
4752
|
}
|
|
4753
4753
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4754
4754
|
if (!config) return {};
|
|
4755
|
-
return _object_spread$
|
|
4756
|
-
spreadsheet: _object_spread$
|
|
4755
|
+
return _object_spread$n({}, config.spreadsheet ? {
|
|
4756
|
+
spreadsheet: _object_spread$n({}, config.spreadsheet)
|
|
4757
4757
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4758
4758
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4759
4759
|
} : {}, config.questionGeneration ? {
|
|
4760
|
-
questionGeneration: _object_spread$
|
|
4760
|
+
questionGeneration: _object_spread$n({}, config.questionGeneration)
|
|
4761
4761
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4762
4762
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4763
4763
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4771,7 +4771,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4771
4771
|
} : {}, config.textSplitterType ? {
|
|
4772
4772
|
textSplitterType: config.textSplitterType
|
|
4773
4773
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4774
|
-
textSplitter: _object_spread$
|
|
4774
|
+
textSplitter: _object_spread$n({}, config.chunkSize != null ? {
|
|
4775
4775
|
chunkSize: config.chunkSize
|
|
4776
4776
|
} : {}, config.chunkOverlap != null ? {
|
|
4777
4777
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4783,7 +4783,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4783
4783
|
} : {}, config.imageUnderstandingType ? {
|
|
4784
4784
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4785
4785
|
} : {}, config.imageUnderstanding ? {
|
|
4786
|
-
imageUnderstanding: _object_spread$
|
|
4786
|
+
imageUnderstanding: _object_spread$n({}, config.imageUnderstanding)
|
|
4787
4787
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4788
4788
|
}
|
|
4789
4789
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4848,7 +4848,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4848
4848
|
return letterStartSUID("KnowledgeBase_");
|
|
4849
4849
|
}
|
|
4850
4850
|
|
|
4851
|
-
function _define_property$
|
|
4851
|
+
function _define_property$m(obj, key, value) {
|
|
4852
4852
|
if (key in obj) {
|
|
4853
4853
|
Object.defineProperty(obj, key, {
|
|
4854
4854
|
value: value,
|
|
@@ -4861,7 +4861,7 @@ function _define_property$l(obj, key, value) {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
return obj;
|
|
4863
4863
|
}
|
|
4864
|
-
function _object_spread$
|
|
4864
|
+
function _object_spread$m(target) {
|
|
4865
4865
|
for(var i = 1; i < arguments.length; i++){
|
|
4866
4866
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4867
4867
|
var ownKeys = Object.keys(source);
|
|
@@ -4871,7 +4871,7 @@ function _object_spread$l(target) {
|
|
|
4871
4871
|
}));
|
|
4872
4872
|
}
|
|
4873
4873
|
ownKeys.forEach(function(key) {
|
|
4874
|
-
_define_property$
|
|
4874
|
+
_define_property$m(target, key, source[key]);
|
|
4875
4875
|
});
|
|
4876
4876
|
}
|
|
4877
4877
|
return target;
|
|
@@ -4891,7 +4891,7 @@ function _object_spread$l(target) {
|
|
|
4891
4891
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4892
4892
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4893
4893
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4894
|
-
var KDocumentSourceType = _object_spread$
|
|
4894
|
+
var KDocumentSourceType = _object_spread$m({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4895
4895
|
/**
|
|
4896
4896
|
* Document type category, determine how to process the document.
|
|
4897
4897
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5777,7 +5777,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
5777
5777
|
function _array_without_holes$d(arr) {
|
|
5778
5778
|
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5779
5779
|
}
|
|
5780
|
-
function _define_property$
|
|
5780
|
+
function _define_property$l(obj, key, value) {
|
|
5781
5781
|
if (key in obj) {
|
|
5782
5782
|
Object.defineProperty(obj, key, {
|
|
5783
5783
|
value: value,
|
|
@@ -5796,7 +5796,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5796
5796
|
function _non_iterable_spread$d() {
|
|
5797
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.");
|
|
5798
5798
|
}
|
|
5799
|
-
function _object_spread$
|
|
5799
|
+
function _object_spread$l(target) {
|
|
5800
5800
|
for(var i = 1; i < arguments.length; i++){
|
|
5801
5801
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5802
5802
|
var ownKeys = Object.keys(source);
|
|
@@ -5806,12 +5806,12 @@ function _object_spread$k(target) {
|
|
|
5806
5806
|
}));
|
|
5807
5807
|
}
|
|
5808
5808
|
ownKeys.forEach(function(key) {
|
|
5809
|
-
_define_property$
|
|
5809
|
+
_define_property$l(target, key, source[key]);
|
|
5810
5810
|
});
|
|
5811
5811
|
}
|
|
5812
5812
|
return target;
|
|
5813
5813
|
}
|
|
5814
|
-
function ownKeys$
|
|
5814
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
5815
5815
|
var keys = Object.keys(object);
|
|
5816
5816
|
if (Object.getOwnPropertySymbols) {
|
|
5817
5817
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5819,12 +5819,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
5819
5819
|
}
|
|
5820
5820
|
return keys;
|
|
5821
5821
|
}
|
|
5822
|
-
function _object_spread_props$
|
|
5822
|
+
function _object_spread_props$h(target, source) {
|
|
5823
5823
|
source = source != null ? source : {};
|
|
5824
5824
|
if (Object.getOwnPropertyDescriptors) {
|
|
5825
5825
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5826
5826
|
} else {
|
|
5827
|
-
ownKeys$
|
|
5827
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
5828
5828
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5829
5829
|
});
|
|
5830
5830
|
}
|
|
@@ -5905,7 +5905,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5905
5905
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5906
5906
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5907
5907
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5908
|
-
return _object_spread_props$
|
|
5908
|
+
return _object_spread_props$h(_object_spread$l({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
5909
5909
|
id: xpert.id,
|
|
5910
5910
|
tenantId: xpert.tenantId,
|
|
5911
5911
|
organizationId: xpert.organizationId,
|
|
@@ -6189,9 +6189,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
6189
6189
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
6190
6190
|
replacedNode = true;
|
|
6191
6191
|
var _node_entity;
|
|
6192
|
-
return _object_spread_props$
|
|
6192
|
+
return _object_spread_props$h(_object_spread$l({}, node), {
|
|
6193
6193
|
key: targetKey,
|
|
6194
|
-
entity: _object_spread_props$
|
|
6194
|
+
entity: _object_spread_props$h(_object_spread$l({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
6195
6195
|
key: targetKey
|
|
6196
6196
|
})
|
|
6197
6197
|
});
|
|
@@ -6207,17 +6207,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
6207
6207
|
if (from === connection.from && to === connection.to) {
|
|
6208
6208
|
return connection;
|
|
6209
6209
|
}
|
|
6210
|
-
return _object_spread_props$
|
|
6210
|
+
return _object_spread_props$h(_object_spread$l({}, connection), {
|
|
6211
6211
|
from: from,
|
|
6212
6212
|
to: to,
|
|
6213
6213
|
key: "".concat(from, "/").concat(to)
|
|
6214
6214
|
});
|
|
6215
6215
|
});
|
|
6216
|
-
return _object_spread_props$
|
|
6217
|
-
team: draft.team ? _object_spread_props$
|
|
6218
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
6216
|
+
return _object_spread_props$h(_object_spread$l({}, draft), {
|
|
6217
|
+
team: draft.team ? _object_spread_props$h(_object_spread$l({}, draft.team), {
|
|
6218
|
+
agent: draft.team.agent ? _object_spread_props$h(_object_spread$l({}, draft.team.agent, agent), {
|
|
6219
6219
|
key: targetKey
|
|
6220
|
-
}) : _object_spread_props$
|
|
6220
|
+
}) : _object_spread_props$h(_object_spread$l({}, agent), {
|
|
6221
6221
|
key: targetKey
|
|
6222
6222
|
})
|
|
6223
6223
|
}) : draft.team,
|
|
@@ -6365,7 +6365,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6365
6365
|
projectTypeKey: "space"
|
|
6366
6366
|
};
|
|
6367
6367
|
|
|
6368
|
-
function _define_property$
|
|
6368
|
+
function _define_property$k(obj, key, value) {
|
|
6369
6369
|
if (key in obj) {
|
|
6370
6370
|
Object.defineProperty(obj, key, {
|
|
6371
6371
|
value: value,
|
|
@@ -6378,7 +6378,7 @@ function _define_property$j(obj, key, value) {
|
|
|
6378
6378
|
}
|
|
6379
6379
|
return obj;
|
|
6380
6380
|
}
|
|
6381
|
-
function _object_spread$
|
|
6381
|
+
function _object_spread$k(target) {
|
|
6382
6382
|
for(var i = 1; i < arguments.length; i++){
|
|
6383
6383
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6384
6384
|
var ownKeys = Object.keys(source);
|
|
@@ -6388,12 +6388,12 @@ function _object_spread$j(target) {
|
|
|
6388
6388
|
}));
|
|
6389
6389
|
}
|
|
6390
6390
|
ownKeys.forEach(function(key) {
|
|
6391
|
-
_define_property$
|
|
6391
|
+
_define_property$k(target, key, source[key]);
|
|
6392
6392
|
});
|
|
6393
6393
|
}
|
|
6394
6394
|
return target;
|
|
6395
6395
|
}
|
|
6396
|
-
function ownKeys$
|
|
6396
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
6397
6397
|
var keys = Object.keys(object);
|
|
6398
6398
|
if (Object.getOwnPropertySymbols) {
|
|
6399
6399
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6401,12 +6401,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
return keys;
|
|
6403
6403
|
}
|
|
6404
|
-
function _object_spread_props$
|
|
6404
|
+
function _object_spread_props$g(target, source) {
|
|
6405
6405
|
source = source != null ? source : {};
|
|
6406
6406
|
if (Object.getOwnPropertyDescriptors) {
|
|
6407
6407
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6408
6408
|
} else {
|
|
6409
|
-
ownKeys$
|
|
6409
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
6410
6410
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6411
6411
|
});
|
|
6412
6412
|
}
|
|
@@ -6435,7 +6435,7 @@ function projectTaskConfigurationSchema(defaultSeconds) {
|
|
|
6435
6435
|
type: "object",
|
|
6436
6436
|
additionalProperties: false,
|
|
6437
6437
|
properties: {
|
|
6438
|
-
taskExecutionMaxDurationSeconds: _object_spread_props$
|
|
6438
|
+
taskExecutionMaxDurationSeconds: _object_spread_props$g(_object_spread$k({
|
|
6439
6439
|
type: "integer",
|
|
6440
6440
|
minimum: 60,
|
|
6441
6441
|
maximum: 86400
|
|
@@ -6514,7 +6514,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6514
6514
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
6515
6515
|
* @param documents - A flat array of DocumentInterface objects
|
|
6516
6516
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
6517
|
-
*/ function _define_property$
|
|
6517
|
+
*/ function _define_property$j(obj, key, value) {
|
|
6518
6518
|
if (key in obj) {
|
|
6519
6519
|
Object.defineProperty(obj, key, {
|
|
6520
6520
|
value: value,
|
|
@@ -6527,7 +6527,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6527
6527
|
}
|
|
6528
6528
|
return obj;
|
|
6529
6529
|
}
|
|
6530
|
-
function _object_spread$
|
|
6530
|
+
function _object_spread$j(target) {
|
|
6531
6531
|
for(var i = 1; i < arguments.length; i++){
|
|
6532
6532
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6533
6533
|
var ownKeys = Object.keys(source);
|
|
@@ -6537,12 +6537,12 @@ function _object_spread$i(target) {
|
|
|
6537
6537
|
}));
|
|
6538
6538
|
}
|
|
6539
6539
|
ownKeys.forEach(function(key) {
|
|
6540
|
-
_define_property$
|
|
6540
|
+
_define_property$j(target, key, source[key]);
|
|
6541
6541
|
});
|
|
6542
6542
|
}
|
|
6543
6543
|
return target;
|
|
6544
6544
|
}
|
|
6545
|
-
function ownKeys$
|
|
6545
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
6546
6546
|
var keys = Object.keys(object);
|
|
6547
6547
|
if (Object.getOwnPropertySymbols) {
|
|
6548
6548
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6550,12 +6550,12 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
6550
6550
|
}
|
|
6551
6551
|
return keys;
|
|
6552
6552
|
}
|
|
6553
|
-
function _object_spread_props$
|
|
6553
|
+
function _object_spread_props$f(target, source) {
|
|
6554
6554
|
source = source != null ? source : {};
|
|
6555
6555
|
if (Object.getOwnPropertyDescriptors) {
|
|
6556
6556
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6557
6557
|
} else {
|
|
6558
|
-
ownKeys$
|
|
6558
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
6559
6559
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6560
6560
|
});
|
|
6561
6561
|
}
|
|
@@ -6570,8 +6570,8 @@ function buildChunkTree(documents) {
|
|
|
6570
6570
|
documents.forEach(function(doc, index) {
|
|
6571
6571
|
var chunkId = getChunkNodeId(doc);
|
|
6572
6572
|
if (chunkId) {
|
|
6573
|
-
map.set(chunkId, _object_spread_props$
|
|
6574
|
-
metadata: _object_spread_props$
|
|
6573
|
+
map.set(chunkId, _object_spread_props$f(_object_spread$j({}, doc), {
|
|
6574
|
+
metadata: _object_spread_props$f(_object_spread$j({}, doc.metadata), {
|
|
6575
6575
|
chunkId: chunkId,
|
|
6576
6576
|
children: []
|
|
6577
6577
|
})
|
|
@@ -7121,7 +7121,7 @@ function isLocalPath(value) {
|
|
|
7121
7121
|
})).size === value.length;
|
|
7122
7122
|
}
|
|
7123
7123
|
|
|
7124
|
-
function _define_property$
|
|
7124
|
+
function _define_property$i(obj, key, value) {
|
|
7125
7125
|
if (key in obj) {
|
|
7126
7126
|
Object.defineProperty(obj, key, {
|
|
7127
7127
|
value: value,
|
|
@@ -7134,7 +7134,7 @@ function _define_property$h(obj, key, value) {
|
|
|
7134
7134
|
}
|
|
7135
7135
|
return obj;
|
|
7136
7136
|
}
|
|
7137
|
-
function _object_spread$
|
|
7137
|
+
function _object_spread$i(target) {
|
|
7138
7138
|
for(var i = 1; i < arguments.length; i++){
|
|
7139
7139
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7140
7140
|
var ownKeys = Object.keys(source);
|
|
@@ -7144,12 +7144,12 @@ function _object_spread$h(target) {
|
|
|
7144
7144
|
}));
|
|
7145
7145
|
}
|
|
7146
7146
|
ownKeys.forEach(function(key) {
|
|
7147
|
-
_define_property$
|
|
7147
|
+
_define_property$i(target, key, source[key]);
|
|
7148
7148
|
});
|
|
7149
7149
|
}
|
|
7150
7150
|
return target;
|
|
7151
7151
|
}
|
|
7152
|
-
function ownKeys$
|
|
7152
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
7153
7153
|
var keys = Object.keys(object);
|
|
7154
7154
|
if (Object.getOwnPropertySymbols) {
|
|
7155
7155
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7157,12 +7157,12 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
7157
7157
|
}
|
|
7158
7158
|
return keys;
|
|
7159
7159
|
}
|
|
7160
|
-
function _object_spread_props$
|
|
7160
|
+
function _object_spread_props$e(target, source) {
|
|
7161
7161
|
source = source != null ? source : {};
|
|
7162
7162
|
if (Object.getOwnPropertyDescriptors) {
|
|
7163
7163
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7164
7164
|
} else {
|
|
7165
|
-
ownKeys$
|
|
7165
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
7166
7166
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7167
7167
|
});
|
|
7168
7168
|
}
|
|
@@ -7203,8 +7203,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
7203
7203
|
if (provider === entity.provider) {
|
|
7204
7204
|
return node;
|
|
7205
7205
|
}
|
|
7206
|
-
return _object_spread_props$
|
|
7207
|
-
entity: _object_spread_props$
|
|
7206
|
+
return _object_spread_props$e(_object_spread$i({}, node), {
|
|
7207
|
+
entity: _object_spread_props$e(_object_spread$i({}, entity), {
|
|
7208
7208
|
provider: provider
|
|
7209
7209
|
})
|
|
7210
7210
|
});
|
|
@@ -7265,7 +7265,7 @@ function _array_with_holes$e(arr) {
|
|
|
7265
7265
|
function _array_without_holes$c(arr) {
|
|
7266
7266
|
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
7267
7267
|
}
|
|
7268
|
-
function _define_property$
|
|
7268
|
+
function _define_property$h(obj, key, value) {
|
|
7269
7269
|
if (key in obj) {
|
|
7270
7270
|
Object.defineProperty(obj, key, {
|
|
7271
7271
|
value: value,
|
|
@@ -7311,7 +7311,7 @@ function _non_iterable_rest$e() {
|
|
|
7311
7311
|
function _non_iterable_spread$c() {
|
|
7312
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.");
|
|
7313
7313
|
}
|
|
7314
|
-
function _object_spread$
|
|
7314
|
+
function _object_spread$h(target) {
|
|
7315
7315
|
for(var i = 1; i < arguments.length; i++){
|
|
7316
7316
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7317
7317
|
var ownKeys = Object.keys(source);
|
|
@@ -7321,12 +7321,12 @@ function _object_spread$g(target) {
|
|
|
7321
7321
|
}));
|
|
7322
7322
|
}
|
|
7323
7323
|
ownKeys.forEach(function(key) {
|
|
7324
|
-
_define_property$
|
|
7324
|
+
_define_property$h(target, key, source[key]);
|
|
7325
7325
|
});
|
|
7326
7326
|
}
|
|
7327
7327
|
return target;
|
|
7328
7328
|
}
|
|
7329
|
-
function ownKeys$
|
|
7329
|
+
function ownKeys$d(object, enumerableOnly) {
|
|
7330
7330
|
var keys = Object.keys(object);
|
|
7331
7331
|
if (Object.getOwnPropertySymbols) {
|
|
7332
7332
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7334,12 +7334,12 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
7334
7334
|
}
|
|
7335
7335
|
return keys;
|
|
7336
7336
|
}
|
|
7337
|
-
function _object_spread_props$
|
|
7337
|
+
function _object_spread_props$d(target, source) {
|
|
7338
7338
|
source = source != null ? source : {};
|
|
7339
7339
|
if (Object.getOwnPropertyDescriptors) {
|
|
7340
7340
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7341
7341
|
} else {
|
|
7342
|
-
ownKeys$
|
|
7342
|
+
ownKeys$d(Object(source)).forEach(function(key) {
|
|
7343
7343
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7344
7344
|
});
|
|
7345
7345
|
}
|
|
@@ -7455,7 +7455,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
7455
7455
|
if (typeof content !== "string") {
|
|
7456
7456
|
return content;
|
|
7457
7457
|
}
|
|
7458
|
-
return _object_spread$
|
|
7458
|
+
return _object_spread$h({
|
|
7459
7459
|
type: "text",
|
|
7460
7460
|
text: content
|
|
7461
7461
|
}, context.streamId ? {
|
|
@@ -7520,7 +7520,7 @@ function filterText(content) {
|
|
|
7520
7520
|
return "";
|
|
7521
7521
|
}
|
|
7522
7522
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
7523
|
-
return _object_spread$
|
|
7523
|
+
return _object_spread$h(_object_spread_props$d(_object_spread$h({}, previous), {
|
|
7524
7524
|
text: "".concat(previous.text).concat(incoming.text)
|
|
7525
7525
|
}), !previous.id && incoming.id ? {
|
|
7526
7526
|
id: incoming.id
|
|
@@ -7532,7 +7532,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
7532
7532
|
}
|
|
7533
7533
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
7534
7534
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
7535
|
-
return _object_spread_props$
|
|
7535
|
+
return _object_spread_props$d(_object_spread$h({}, incoming), {
|
|
7536
7536
|
text: incoming.text.slice(1)
|
|
7537
7537
|
});
|
|
7538
7538
|
}
|
|
@@ -7551,14 +7551,14 @@ function mergeComponentData(previous, incoming) {
|
|
|
7551
7551
|
return acc;
|
|
7552
7552
|
}, {});
|
|
7553
7553
|
var _previous_data1;
|
|
7554
|
-
return _object_spread_props$
|
|
7555
|
-
data: _object_spread_props$
|
|
7554
|
+
return _object_spread_props$d(_object_spread$h({}, previous, incoming), {
|
|
7555
|
+
data: _object_spread_props$d(_object_spread$h({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
7556
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)
|
|
7557
7557
|
})
|
|
7558
7558
|
});
|
|
7559
7559
|
}
|
|
7560
7560
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
7561
|
-
return _object_spread$
|
|
7561
|
+
return _object_spread$h({
|
|
7562
7562
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
7563
7563
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
7564
7564
|
streamId: String(content.id)
|
|
@@ -7566,10 +7566,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
7566
7566
|
}
|
|
7567
7567
|
function resolveMessageAppendContext(options) {
|
|
7568
7568
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
7569
|
-
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$d(_object_spread$h({}, inferredContext), {
|
|
7570
7570
|
streamId: options.fallbackStreamId
|
|
7571
7571
|
}) : inferredContext;
|
|
7572
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$
|
|
7572
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$d(_object_spread$h({}, appendContext), {
|
|
7573
7573
|
joinHint: "none"
|
|
7574
7574
|
}) : appendContext;
|
|
7575
7575
|
return {
|
|
@@ -7590,7 +7590,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7590
7590
|
var previous = initial;
|
|
7591
7591
|
return {
|
|
7592
7592
|
resolve: function resolve(options) {
|
|
7593
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$
|
|
7593
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$d(_object_spread$h({}, options), {
|
|
7594
7594
|
previous: previous
|
|
7595
7595
|
}));
|
|
7596
7596
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -7628,10 +7628,10 @@ function resolveMessageAppendContext(options) {
|
|
|
7628
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, [
|
|
7629
7629
|
"previous"
|
|
7630
7630
|
]);
|
|
7631
|
-
var appendContext = _object_spread$
|
|
7631
|
+
var appendContext = _object_spread$h({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
7632
7632
|
var _appendContext_joinHint;
|
|
7633
7633
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
7634
|
-
var messageContext = joinHint ? _object_spread_props$
|
|
7634
|
+
var messageContext = joinHint ? _object_spread_props$d(_object_spread$h({}, appendContext), {
|
|
7635
7635
|
joinHint: joinHint
|
|
7636
7636
|
}) : appendContext;
|
|
7637
7637
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -7640,7 +7640,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7640
7640
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
7641
7641
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
7642
7642
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
7643
|
-
var mergedReasoning = _object_spread_props$
|
|
7643
|
+
var mergedReasoning = _object_spread_props$d(_object_spread$h({}, lastReasoning), {
|
|
7644
7644
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
7645
7645
|
});
|
|
7646
7646
|
aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -7661,7 +7661,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7661
7661
|
return isTextContent(item) && item.id === content.id;
|
|
7662
7662
|
});
|
|
7663
7663
|
if (index > -1) {
|
|
7664
|
-
var mergedContent = _object_spread$
|
|
7664
|
+
var mergedContent = _object_spread$h(_object_spread_props$d(_object_spread$h({}, chunks[index]), {
|
|
7665
7665
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
7666
7666
|
}), !chunks[index].id && content.id ? {
|
|
7667
7667
|
id: content.id
|
|
@@ -7684,7 +7684,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7684
7684
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
7685
7685
|
if (existingIndex > -1) {
|
|
7686
7686
|
var existing = chunks[existingIndex];
|
|
7687
|
-
var merged = _object_spread_props$
|
|
7687
|
+
var merged = _object_spread_props$d(_object_spread$h({}, existing), {
|
|
7688
7688
|
text: "".concat(existing.text).concat(content.text)
|
|
7689
7689
|
});
|
|
7690
7690
|
var nextChunks = _to_consumable_array$c(chunks);
|
|
@@ -7693,7 +7693,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7693
7693
|
return;
|
|
7694
7694
|
}
|
|
7695
7695
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
7696
|
-
var mergedLastContent = _object_spread_props$
|
|
7696
|
+
var mergedLastContent = _object_spread_props$d(_object_spread$h({}, lastContent), {
|
|
7697
7697
|
text: "".concat(lastContent.text).concat(content.text)
|
|
7698
7698
|
});
|
|
7699
7699
|
aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -7702,7 +7702,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7702
7702
|
return;
|
|
7703
7703
|
}
|
|
7704
7704
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
7705
|
-
var appended = _object_spread_props$
|
|
7705
|
+
var appended = _object_spread_props$d(_object_spread$h({}, content), {
|
|
7706
7706
|
text: separator + content.text
|
|
7707
7707
|
});
|
|
7708
7708
|
aiMessage.content = _to_consumable_array$c(chunks).concat([
|
|
@@ -7726,7 +7726,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7726
7726
|
aiMessage.content = nextChunks1;
|
|
7727
7727
|
}
|
|
7728
7728
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
7729
|
-
var resolvedContext = _object_spread$
|
|
7729
|
+
var resolvedContext = _object_spread$h({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
7730
7730
|
var nextText = filterText(incoming);
|
|
7731
7731
|
if (!nextText) {
|
|
7732
7732
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -7771,7 +7771,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7771
7771
|
return;
|
|
7772
7772
|
}
|
|
7773
7773
|
textIndexById.set(item.id, merged.length);
|
|
7774
|
-
merged.push(_object_spread$
|
|
7774
|
+
merged.push(_object_spread$h({}, item));
|
|
7775
7775
|
return;
|
|
7776
7776
|
}
|
|
7777
7777
|
var lastItem = merged[merged.length - 1];
|
|
@@ -7779,7 +7779,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7779
7779
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
7780
7780
|
return;
|
|
7781
7781
|
}
|
|
7782
|
-
merged.push(_object_spread$
|
|
7782
|
+
merged.push(_object_spread$h({}, item));
|
|
7783
7783
|
});
|
|
7784
7784
|
return merged.length ? merged : null;
|
|
7785
7785
|
}
|
|
@@ -7794,7 +7794,7 @@ function stringifyMessageContent(content) {
|
|
|
7794
7794
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
7795
7795
|
var itemContext = inferMessageAppendContext(item);
|
|
7796
7796
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7797
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
7797
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$h({}, itemContext, joinHint ? {
|
|
7798
7798
|
joinHint: joinHint
|
|
7799
7799
|
} : {}));
|
|
7800
7800
|
previousContext = itemContext;
|
|
@@ -7817,7 +7817,7 @@ function filterMessageText(content) {
|
|
|
7817
7817
|
}
|
|
7818
7818
|
var itemContext = inferMessageAppendContext(item);
|
|
7819
7819
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7820
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
7820
|
+
result = appendMessagePlainText(result, nextText, _object_spread$h({}, itemContext, joinHint ? {
|
|
7821
7821
|
joinHint: joinHint
|
|
7822
7822
|
} : {}));
|
|
7823
7823
|
previousContext = itemContext;
|
|
@@ -8589,7 +8589,7 @@ var projectPipelineEdgeSchema = v3.z.object({
|
|
|
8589
8589
|
outcome: projectPipelineKeySchema.optional()
|
|
8590
8590
|
}).strict();
|
|
8591
8591
|
|
|
8592
|
-
function _define_property$
|
|
8592
|
+
function _define_property$g(obj, key, value) {
|
|
8593
8593
|
if (key in obj) {
|
|
8594
8594
|
Object.defineProperty(obj, key, {
|
|
8595
8595
|
value: value,
|
|
@@ -8602,7 +8602,7 @@ function _define_property$f(obj, key, value) {
|
|
|
8602
8602
|
}
|
|
8603
8603
|
return obj;
|
|
8604
8604
|
}
|
|
8605
|
-
function _object_spread$
|
|
8605
|
+
function _object_spread$g(target) {
|
|
8606
8606
|
for(var i = 1; i < arguments.length; i++){
|
|
8607
8607
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8608
8608
|
var ownKeys = Object.keys(source);
|
|
@@ -8612,12 +8612,12 @@ function _object_spread$f(target) {
|
|
|
8612
8612
|
}));
|
|
8613
8613
|
}
|
|
8614
8614
|
ownKeys.forEach(function(key) {
|
|
8615
|
-
_define_property$
|
|
8615
|
+
_define_property$g(target, key, source[key]);
|
|
8616
8616
|
});
|
|
8617
8617
|
}
|
|
8618
8618
|
return target;
|
|
8619
8619
|
}
|
|
8620
|
-
function ownKeys$
|
|
8620
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
8621
8621
|
var keys = Object.keys(object);
|
|
8622
8622
|
if (Object.getOwnPropertySymbols) {
|
|
8623
8623
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8625,12 +8625,12 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
8625
8625
|
}
|
|
8626
8626
|
return keys;
|
|
8627
8627
|
}
|
|
8628
|
-
function _object_spread_props$
|
|
8628
|
+
function _object_spread_props$c(target, source) {
|
|
8629
8629
|
source = source != null ? source : {};
|
|
8630
8630
|
if (Object.getOwnPropertyDescriptors) {
|
|
8631
8631
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8632
8632
|
} else {
|
|
8633
|
-
ownKeys$
|
|
8633
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
8634
8634
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8635
8635
|
});
|
|
8636
8636
|
}
|
|
@@ -8645,7 +8645,7 @@ var base$1 = {
|
|
|
8645
8645
|
};
|
|
8646
8646
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
8647
8647
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
8648
|
-
v3.z.object(_object_spread_props$
|
|
8648
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8649
8649
|
kind: v3.z.literal("work"),
|
|
8650
8650
|
laneKey: projectPipelineKeySchema,
|
|
8651
8651
|
presentation: v3.z.object({
|
|
@@ -8657,23 +8657,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8657
8657
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
8658
8658
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
8659
8659
|
})).strict(),
|
|
8660
|
-
v3.z.object(_object_spread_props$
|
|
8660
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8661
8661
|
kind: v3.z.literal("fork")
|
|
8662
8662
|
})).strict(),
|
|
8663
|
-
v3.z.object(_object_spread_props$
|
|
8663
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8664
8664
|
kind: v3.z.literal("join"),
|
|
8665
8665
|
join: v3.z.object({
|
|
8666
8666
|
mode: v3.z.literal("all_selected"),
|
|
8667
8667
|
accept: v3.z.literal("completed")
|
|
8668
8668
|
}).strict()
|
|
8669
8669
|
})).strict(),
|
|
8670
|
-
v3.z.object(_object_spread_props$
|
|
8670
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8671
8671
|
kind: v3.z.literal("router"),
|
|
8672
8672
|
policyRef: projectPipelineRefSchema,
|
|
8673
8673
|
outcomes: outcomes,
|
|
8674
8674
|
unmatched: v3.z.literal("block")
|
|
8675
8675
|
})).strict(),
|
|
8676
|
-
v3.z.object(_object_spread_props$
|
|
8676
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8677
8677
|
kind: v3.z.literal("human_gate"),
|
|
8678
8678
|
laneKey: projectPipelineKeySchema,
|
|
8679
8679
|
policyRef: projectPipelineRefSchema,
|
|
@@ -8681,12 +8681,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8681
8681
|
outcomes: outcomes,
|
|
8682
8682
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
8683
8683
|
})).strict(),
|
|
8684
|
-
v3.z.object(_object_spread_props$
|
|
8684
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8685
8685
|
kind: v3.z.literal("external_wait"),
|
|
8686
8686
|
laneKey: projectPipelineKeySchema,
|
|
8687
8687
|
subscriptionRef: projectPipelineRefSchema
|
|
8688
8688
|
})).strict(),
|
|
8689
|
-
v3.z.object(_object_spread_props$
|
|
8689
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8690
8690
|
kind: v3.z.literal("terminal"),
|
|
8691
8691
|
outcome: projectPipelineKeySchema,
|
|
8692
8692
|
disposition: v3.z.enum([
|
|
@@ -9308,8 +9308,8 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
9308
9308
|
return issues;
|
|
9309
9309
|
}
|
|
9310
9310
|
|
|
9311
|
-
var version = v3.z.number().int().min(1).max(1000);
|
|
9312
|
-
var versions = v3.z.array(version).min(1).max(20).refine(function(values) {
|
|
9311
|
+
var version$1 = v3.z.number().int().min(1).max(1000);
|
|
9312
|
+
var versions = v3.z.array(version$1).min(1).max(20).refine(function(values) {
|
|
9313
9313
|
return new Set(values).size === values.length;
|
|
9314
9314
|
});
|
|
9315
9315
|
var bounded = function(value) {
|
|
@@ -9318,8 +9318,8 @@ var bounded = function(value) {
|
|
|
9318
9318
|
});
|
|
9319
9319
|
};
|
|
9320
9320
|
/** Feature versions are exact protocols, not package semver or an implicit minimum version. */ var projectPipelineHostRequirementsSchema = v3.z.object({
|
|
9321
|
-
protocol: version,
|
|
9322
|
-
features: bounded(version)
|
|
9321
|
+
protocol: version$1,
|
|
9322
|
+
features: bounded(version$1)
|
|
9323
9323
|
}).strict();
|
|
9324
9324
|
var projectPipelineHostCapabilitiesSchema = v3.z.object({
|
|
9325
9325
|
protocols: versions,
|
|
@@ -9350,7 +9350,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
9350
9350
|
|
|
9351
9351
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
9352
9352
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
9353
|
-
function _define_property$
|
|
9353
|
+
function _define_property$f(obj, key, value) {
|
|
9354
9354
|
if (key in obj) {
|
|
9355
9355
|
Object.defineProperty(obj, key, {
|
|
9356
9356
|
value: value,
|
|
@@ -9363,7 +9363,7 @@ function _define_property$e(obj, key, value) {
|
|
|
9363
9363
|
}
|
|
9364
9364
|
return obj;
|
|
9365
9365
|
}
|
|
9366
|
-
function _object_spread$
|
|
9366
|
+
function _object_spread$f(target) {
|
|
9367
9367
|
for(var i = 1; i < arguments.length; i++){
|
|
9368
9368
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9369
9369
|
var ownKeys = Object.keys(source);
|
|
@@ -9373,12 +9373,12 @@ function _object_spread$e(target) {
|
|
|
9373
9373
|
}));
|
|
9374
9374
|
}
|
|
9375
9375
|
ownKeys.forEach(function(key) {
|
|
9376
|
-
_define_property$
|
|
9376
|
+
_define_property$f(target, key, source[key]);
|
|
9377
9377
|
});
|
|
9378
9378
|
}
|
|
9379
9379
|
return target;
|
|
9380
9380
|
}
|
|
9381
|
-
function ownKeys$
|
|
9381
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
9382
9382
|
var keys = Object.keys(object);
|
|
9383
9383
|
if (Object.getOwnPropertySymbols) {
|
|
9384
9384
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9386,12 +9386,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
9386
9386
|
}
|
|
9387
9387
|
return keys;
|
|
9388
9388
|
}
|
|
9389
|
-
function _object_spread_props$
|
|
9389
|
+
function _object_spread_props$b(target, source) {
|
|
9390
9390
|
source = source != null ? source : {};
|
|
9391
9391
|
if (Object.getOwnPropertyDescriptors) {
|
|
9392
9392
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9393
9393
|
} else {
|
|
9394
|
-
ownKeys$
|
|
9394
|
+
ownKeys$b(Object(source)).forEach(function(key) {
|
|
9395
9395
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9396
9396
|
});
|
|
9397
9397
|
}
|
|
@@ -9423,7 +9423,7 @@ var common = {
|
|
|
9423
9423
|
};
|
|
9424
9424
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
9425
9425
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9426
|
-
v3.z.object(_object_spread_props$
|
|
9426
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, common), {
|
|
9427
9427
|
executionAuthority: v3.z.literal("provider"),
|
|
9428
9428
|
providerRef: projectPipelineRefSchema,
|
|
9429
9429
|
topology: v3.z.object({
|
|
@@ -9432,7 +9432,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
9432
9432
|
}).strict(),
|
|
9433
9433
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
9434
9434
|
})).strict(),
|
|
9435
|
-
v3.z.object(_object_spread_props$
|
|
9435
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, common), {
|
|
9436
9436
|
executionAuthority: v3.z.literal("platform"),
|
|
9437
9437
|
topology: v3.z.object({
|
|
9438
9438
|
source: v3.z.literal("definition")
|
|
@@ -9846,7 +9846,7 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
9846
9846
|
}
|
|
9847
9847
|
});
|
|
9848
9848
|
|
|
9849
|
-
function _define_property$
|
|
9849
|
+
function _define_property$e(obj, key, value) {
|
|
9850
9850
|
if (key in obj) {
|
|
9851
9851
|
Object.defineProperty(obj, key, {
|
|
9852
9852
|
value: value,
|
|
@@ -9859,7 +9859,7 @@ function _define_property$d(obj, key, value) {
|
|
|
9859
9859
|
}
|
|
9860
9860
|
return obj;
|
|
9861
9861
|
}
|
|
9862
|
-
function _object_spread$
|
|
9862
|
+
function _object_spread$e(target) {
|
|
9863
9863
|
for(var i = 1; i < arguments.length; i++){
|
|
9864
9864
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9865
9865
|
var ownKeys = Object.keys(source);
|
|
@@ -9869,12 +9869,12 @@ function _object_spread$d(target) {
|
|
|
9869
9869
|
}));
|
|
9870
9870
|
}
|
|
9871
9871
|
ownKeys.forEach(function(key) {
|
|
9872
|
-
_define_property$
|
|
9872
|
+
_define_property$e(target, key, source[key]);
|
|
9873
9873
|
});
|
|
9874
9874
|
}
|
|
9875
9875
|
return target;
|
|
9876
9876
|
}
|
|
9877
|
-
function ownKeys$
|
|
9877
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
9878
9878
|
var keys = Object.keys(object);
|
|
9879
9879
|
if (Object.getOwnPropertySymbols) {
|
|
9880
9880
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9882,12 +9882,12 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
9882
9882
|
}
|
|
9883
9883
|
return keys;
|
|
9884
9884
|
}
|
|
9885
|
-
function _object_spread_props$
|
|
9885
|
+
function _object_spread_props$a(target, source) {
|
|
9886
9886
|
source = source != null ? source : {};
|
|
9887
9887
|
if (Object.getOwnPropertyDescriptors) {
|
|
9888
9888
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9889
9889
|
} else {
|
|
9890
|
-
ownKeys$
|
|
9890
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
9891
9891
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9892
9892
|
});
|
|
9893
9893
|
}
|
|
@@ -9903,13 +9903,13 @@ var definitionRef = v3.z.object({
|
|
|
9903
9903
|
templateRef: projectPipelineRefSchema,
|
|
9904
9904
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
9905
9905
|
}).strict();
|
|
9906
|
-
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$
|
|
9906
|
+
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9907
9907
|
definition: definitionRef,
|
|
9908
9908
|
revision: v3.z.number().int().positive(),
|
|
9909
9909
|
configuration: projectPipelineBindingSchema
|
|
9910
9910
|
})).strict();
|
|
9911
9911
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9912
|
-
v3.z.object(_object_spread_props$
|
|
9912
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9913
9913
|
executionAuthority: v3.z.literal("provider"),
|
|
9914
9914
|
providerRef: projectPipelineRefSchema,
|
|
9915
9915
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9920,7 +9920,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9920
9920
|
}).strict(),
|
|
9921
9921
|
revision: v3.z.number().int().nonnegative()
|
|
9922
9922
|
})).strict(),
|
|
9923
|
-
v3.z.object(_object_spread_props$
|
|
9923
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9924
9924
|
executionAuthority: v3.z.literal("platform"),
|
|
9925
9925
|
bindingId: v3.z.string().uuid(),
|
|
9926
9926
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9932,7 +9932,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9932
9932
|
revision: v3.z.number().int().nonnegative()
|
|
9933
9933
|
})).strict()
|
|
9934
9934
|
]);
|
|
9935
|
-
var projectPipelineRunSchema = v3.z.object(_object_spread_props$
|
|
9935
|
+
var projectPipelineRunSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9936
9936
|
instanceId: v3.z.string().uuid(),
|
|
9937
9937
|
triggerKey: v3.z.string().min(1).max(500),
|
|
9938
9938
|
definition: definitionRef,
|
|
@@ -10004,7 +10004,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
10004
10004
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
10005
10005
|
generation: v3.z.number().int().positive()
|
|
10006
10006
|
}).strict();
|
|
10007
|
-
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$
|
|
10007
|
+
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
10008
10008
|
runId: v3.z.string().uuid(),
|
|
10009
10009
|
sequence: v3.z.number().int().positive(),
|
|
10010
10010
|
generation: v3.z.number().int().positive(),
|
|
@@ -10020,7 +10020,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$9(_object_spre
|
|
|
10020
10020
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
10021
10021
|
supersedes: v3.z.string().uuid().nullable()
|
|
10022
10022
|
})).strict();
|
|
10023
|
-
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$
|
|
10023
|
+
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
10024
10024
|
roundId: v3.z.string().uuid(),
|
|
10025
10025
|
nodeKey: projectPipelineKeySchema,
|
|
10026
10026
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -10032,7 +10032,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$9(_obje
|
|
|
10032
10032
|
revision: v3.z.number().int().nonnegative()
|
|
10033
10033
|
})).strict();
|
|
10034
10034
|
|
|
10035
|
-
function _define_property$
|
|
10035
|
+
function _define_property$d(obj, key, value) {
|
|
10036
10036
|
if (key in obj) {
|
|
10037
10037
|
Object.defineProperty(obj, key, {
|
|
10038
10038
|
value: value,
|
|
@@ -10045,7 +10045,7 @@ function _define_property$c(obj, key, value) {
|
|
|
10045
10045
|
}
|
|
10046
10046
|
return obj;
|
|
10047
10047
|
}
|
|
10048
|
-
function _object_spread$
|
|
10048
|
+
function _object_spread$d(target) {
|
|
10049
10049
|
for(var i = 1; i < arguments.length; i++){
|
|
10050
10050
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10051
10051
|
var ownKeys = Object.keys(source);
|
|
@@ -10055,12 +10055,12 @@ function _object_spread$c(target) {
|
|
|
10055
10055
|
}));
|
|
10056
10056
|
}
|
|
10057
10057
|
ownKeys.forEach(function(key) {
|
|
10058
|
-
_define_property$
|
|
10058
|
+
_define_property$d(target, key, source[key]);
|
|
10059
10059
|
});
|
|
10060
10060
|
}
|
|
10061
10061
|
return target;
|
|
10062
10062
|
}
|
|
10063
|
-
function ownKeys$
|
|
10063
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
10064
10064
|
var keys = Object.keys(object);
|
|
10065
10065
|
if (Object.getOwnPropertySymbols) {
|
|
10066
10066
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10068,12 +10068,12 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
10068
10068
|
}
|
|
10069
10069
|
return keys;
|
|
10070
10070
|
}
|
|
10071
|
-
function _object_spread_props$
|
|
10071
|
+
function _object_spread_props$9(target, source) {
|
|
10072
10072
|
source = source != null ? source : {};
|
|
10073
10073
|
if (Object.getOwnPropertyDescriptors) {
|
|
10074
10074
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10075
10075
|
} else {
|
|
10076
|
-
ownKeys$
|
|
10076
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
10077
10077
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10078
10078
|
});
|
|
10079
10079
|
}
|
|
@@ -10090,17 +10090,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
10090
10090
|
])
|
|
10091
10091
|
}).strict();
|
|
10092
10092
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
|
|
10093
|
-
v3.z.object(_object_spread_props$
|
|
10093
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10094
10094
|
kind: v3.z.literal("schema")
|
|
10095
10095
|
})).strict(),
|
|
10096
|
-
v3.z.object(_object_spread_props$
|
|
10096
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10097
10097
|
kind: v3.z.literal("resource")
|
|
10098
10098
|
})).strict(),
|
|
10099
|
-
v3.z.object(_object_spread_props$
|
|
10099
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10100
10100
|
kind: v3.z.literal("subject"),
|
|
10101
10101
|
outputSchemaRef: projectPipelineRefSchema
|
|
10102
10102
|
})).strict(),
|
|
10103
|
-
v3.z.object(_object_spread_props$
|
|
10103
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10104
10104
|
kind: v3.z.literal("operation"),
|
|
10105
10105
|
effects: v3.z.enum([
|
|
10106
10106
|
"read_only",
|
|
@@ -10119,32 +10119,32 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
10119
10119
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
10120
10120
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
10121
10121
|
})).strict(),
|
|
10122
|
-
v3.z.object(_object_spread_props$
|
|
10122
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10123
10123
|
kind: v3.z.literal("completion")
|
|
10124
10124
|
})).strict(),
|
|
10125
|
-
v3.z.object(_object_spread_props$
|
|
10125
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10126
10126
|
kind: v3.z.literal("policy"),
|
|
10127
10127
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
10128
10128
|
})).strict(),
|
|
10129
|
-
v3.z.object(_object_spread_props$
|
|
10129
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10130
10130
|
kind: v3.z.literal("projection")
|
|
10131
10131
|
})).strict(),
|
|
10132
|
-
v3.z.object(_object_spread_props$
|
|
10132
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10133
10133
|
kind: v3.z.literal("presentation")
|
|
10134
10134
|
})).strict(),
|
|
10135
|
-
v3.z.object(_object_spread_props$
|
|
10135
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10136
10136
|
kind: v3.z.literal("action")
|
|
10137
10137
|
})).strict(),
|
|
10138
|
-
v3.z.object(_object_spread_props$
|
|
10138
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10139
10139
|
kind: v3.z.literal("metric")
|
|
10140
10140
|
})).strict(),
|
|
10141
|
-
v3.z.object(_object_spread_props$
|
|
10141
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10142
10142
|
kind: v3.z.literal("dimension")
|
|
10143
10143
|
})).strict(),
|
|
10144
|
-
v3.z.object(_object_spread_props$
|
|
10144
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10145
10145
|
kind: v3.z.literal("trigger")
|
|
10146
10146
|
})).strict(),
|
|
10147
|
-
v3.z.object(_object_spread_props$
|
|
10147
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10148
10148
|
kind: v3.z.literal("subscription"),
|
|
10149
10149
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
10150
10150
|
})).strict()
|
|
@@ -10911,7 +10911,7 @@ var tombstone = v3.z.object({
|
|
|
10911
10911
|
]);
|
|
10912
10912
|
});
|
|
10913
10913
|
|
|
10914
|
-
function _define_property$
|
|
10914
|
+
function _define_property$c(obj, key, value) {
|
|
10915
10915
|
if (key in obj) {
|
|
10916
10916
|
Object.defineProperty(obj, key, {
|
|
10917
10917
|
value: value,
|
|
@@ -10924,7 +10924,7 @@ function _define_property$b(obj, key, value) {
|
|
|
10924
10924
|
}
|
|
10925
10925
|
return obj;
|
|
10926
10926
|
}
|
|
10927
|
-
function _object_spread$
|
|
10927
|
+
function _object_spread$c(target) {
|
|
10928
10928
|
for(var i = 1; i < arguments.length; i++){
|
|
10929
10929
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10930
10930
|
var ownKeys = Object.keys(source);
|
|
@@ -10934,12 +10934,12 @@ function _object_spread$b(target) {
|
|
|
10934
10934
|
}));
|
|
10935
10935
|
}
|
|
10936
10936
|
ownKeys.forEach(function(key) {
|
|
10937
|
-
_define_property$
|
|
10937
|
+
_define_property$c(target, key, source[key]);
|
|
10938
10938
|
});
|
|
10939
10939
|
}
|
|
10940
10940
|
return target;
|
|
10941
10941
|
}
|
|
10942
|
-
function ownKeys$
|
|
10942
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
10943
10943
|
var keys = Object.keys(object);
|
|
10944
10944
|
if (Object.getOwnPropertySymbols) {
|
|
10945
10945
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10947,12 +10947,12 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
10947
10947
|
}
|
|
10948
10948
|
return keys;
|
|
10949
10949
|
}
|
|
10950
|
-
function _object_spread_props$
|
|
10950
|
+
function _object_spread_props$8(target, source) {
|
|
10951
10951
|
source = source != null ? source : {};
|
|
10952
10952
|
if (Object.getOwnPropertyDescriptors) {
|
|
10953
10953
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10954
10954
|
} else {
|
|
10955
|
-
ownKeys$
|
|
10955
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
10956
10956
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10957
10957
|
});
|
|
10958
10958
|
}
|
|
@@ -10990,7 +10990,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10990
10990
|
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
10991
10991
|
}
|
|
10992
10992
|
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
|
|
10993
|
-
v3.z.object(_object_spread_props$
|
|
10993
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
10994
10994
|
source: v3.z.literal("unavailable"),
|
|
10995
10995
|
subject: subject,
|
|
10996
10996
|
state: v3.z.literal("unknown"),
|
|
@@ -11000,7 +11000,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11000
11000
|
"unsupported"
|
|
11001
11001
|
])
|
|
11002
11002
|
})).strict(),
|
|
11003
|
-
v3.z.object(_object_spread_props$
|
|
11003
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11004
11004
|
source: v3.z.literal("platform"),
|
|
11005
11005
|
subject: subject,
|
|
11006
11006
|
scope: v3.z.literal("owned_subtree"),
|
|
@@ -11028,7 +11028,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11028
11028
|
executionId: v3.z.string().uuid(),
|
|
11029
11029
|
threadId: v3.z.string().min(1)
|
|
11030
11030
|
})).strict(),
|
|
11031
|
-
v3.z.object(_object_spread_props$
|
|
11031
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11032
11032
|
source: v3.z.literal("provider"),
|
|
11033
11033
|
subject: v3.z.object({
|
|
11034
11034
|
kind: v3.z.literal("invocation"),
|
|
@@ -11046,7 +11046,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11046
11046
|
receiptKey: v3.z.string().min(1).max(500),
|
|
11047
11047
|
target: executionRuntimeTargetSchema.optional()
|
|
11048
11048
|
})).strict(),
|
|
11049
|
-
v3.z.object(_object_spread_props$
|
|
11049
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11050
11050
|
source: v3.z.literal("native_graph"),
|
|
11051
11051
|
subject: v3.z.object({
|
|
11052
11052
|
kind: v3.z.literal("invocation"),
|
|
@@ -11057,7 +11057,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11057
11057
|
outcome: v3.z.literal("cancelled"),
|
|
11058
11058
|
executionId: v3.z.string().min(1)
|
|
11059
11059
|
})).strict(),
|
|
11060
|
-
v3.z.object(_object_spread_props$
|
|
11060
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11061
11061
|
source: v3.z.literal("host_admission"),
|
|
11062
11062
|
subject: v3.z.object({
|
|
11063
11063
|
kind: v3.z.literal("invocation"),
|
|
@@ -11084,7 +11084,7 @@ function unknownExecutionControl(subject) {
|
|
|
11084
11084
|
};
|
|
11085
11085
|
}
|
|
11086
11086
|
|
|
11087
|
-
function _define_property$
|
|
11087
|
+
function _define_property$b(obj, key, value) {
|
|
11088
11088
|
if (key in obj) {
|
|
11089
11089
|
Object.defineProperty(obj, key, {
|
|
11090
11090
|
value: value,
|
|
@@ -11097,7 +11097,7 @@ function _define_property$a(obj, key, value) {
|
|
|
11097
11097
|
}
|
|
11098
11098
|
return obj;
|
|
11099
11099
|
}
|
|
11100
|
-
function _object_spread$
|
|
11100
|
+
function _object_spread$b(target) {
|
|
11101
11101
|
for(var i = 1; i < arguments.length; i++){
|
|
11102
11102
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11103
11103
|
var ownKeys = Object.keys(source);
|
|
@@ -11107,12 +11107,12 @@ function _object_spread$a(target) {
|
|
|
11107
11107
|
}));
|
|
11108
11108
|
}
|
|
11109
11109
|
ownKeys.forEach(function(key) {
|
|
11110
|
-
_define_property$
|
|
11110
|
+
_define_property$b(target, key, source[key]);
|
|
11111
11111
|
});
|
|
11112
11112
|
}
|
|
11113
11113
|
return target;
|
|
11114
11114
|
}
|
|
11115
|
-
function ownKeys$
|
|
11115
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
11116
11116
|
var keys = Object.keys(object);
|
|
11117
11117
|
if (Object.getOwnPropertySymbols) {
|
|
11118
11118
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11120,12 +11120,12 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
11120
11120
|
}
|
|
11121
11121
|
return keys;
|
|
11122
11122
|
}
|
|
11123
|
-
function _object_spread_props$
|
|
11123
|
+
function _object_spread_props$7(target, source) {
|
|
11124
11124
|
source = source != null ? source : {};
|
|
11125
11125
|
if (Object.getOwnPropertyDescriptors) {
|
|
11126
11126
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11127
11127
|
} else {
|
|
11128
|
-
ownKeys$
|
|
11128
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
11129
11129
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11130
11130
|
});
|
|
11131
11131
|
}
|
|
@@ -11192,20 +11192,20 @@ var receipt = {
|
|
|
11192
11192
|
]).optional()
|
|
11193
11193
|
};
|
|
11194
11194
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
11195
|
-
v3.z.object(_object_spread_props$
|
|
11195
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11196
11196
|
status: v3.z.literal("pending")
|
|
11197
11197
|
})).strict(),
|
|
11198
|
-
v3.z.object(_object_spread_props$
|
|
11198
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11199
11199
|
status: v3.z.literal("succeeded"),
|
|
11200
11200
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
11201
11201
|
return Object.keys(value).length <= 100;
|
|
11202
11202
|
}, "Too many output ports")
|
|
11203
11203
|
})).strict(),
|
|
11204
|
-
v3.z.object(_object_spread_props$
|
|
11204
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11205
11205
|
status: v3.z.literal("failed"),
|
|
11206
11206
|
code: projectPipelineKeySchema
|
|
11207
11207
|
})).strict(),
|
|
11208
|
-
v3.z.object(_object_spread_props$
|
|
11208
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11209
11209
|
status: v3.z.literal("cancelled")
|
|
11210
11210
|
})).strict(),
|
|
11211
11211
|
v3.z.object({
|
|
@@ -11287,7 +11287,7 @@ function _array_like_to_array$f(arr, len) {
|
|
|
11287
11287
|
function _array_without_holes$7(arr) {
|
|
11288
11288
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
11289
11289
|
}
|
|
11290
|
-
function _define_property$
|
|
11290
|
+
function _define_property$a(obj, key, value) {
|
|
11291
11291
|
if (key in obj) {
|
|
11292
11292
|
Object.defineProperty(obj, key, {
|
|
11293
11293
|
value: value,
|
|
@@ -11306,7 +11306,7 @@ function _iterable_to_array$8(iter) {
|
|
|
11306
11306
|
function _non_iterable_spread$7() {
|
|
11307
11307
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11308
11308
|
}
|
|
11309
|
-
function _object_spread$
|
|
11309
|
+
function _object_spread$a(target) {
|
|
11310
11310
|
for(var i = 1; i < arguments.length; i++){
|
|
11311
11311
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11312
11312
|
var ownKeys = Object.keys(source);
|
|
@@ -11316,12 +11316,12 @@ function _object_spread$9(target) {
|
|
|
11316
11316
|
}));
|
|
11317
11317
|
}
|
|
11318
11318
|
ownKeys.forEach(function(key) {
|
|
11319
|
-
_define_property$
|
|
11319
|
+
_define_property$a(target, key, source[key]);
|
|
11320
11320
|
});
|
|
11321
11321
|
}
|
|
11322
11322
|
return target;
|
|
11323
11323
|
}
|
|
11324
|
-
function ownKeys$
|
|
11324
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
11325
11325
|
var keys = Object.keys(object);
|
|
11326
11326
|
if (Object.getOwnPropertySymbols) {
|
|
11327
11327
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11329,12 +11329,12 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
11329
11329
|
}
|
|
11330
11330
|
return keys;
|
|
11331
11331
|
}
|
|
11332
|
-
function _object_spread_props$
|
|
11332
|
+
function _object_spread_props$6(target, source) {
|
|
11333
11333
|
source = source != null ? source : {};
|
|
11334
11334
|
if (Object.getOwnPropertyDescriptors) {
|
|
11335
11335
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11336
11336
|
} else {
|
|
11337
|
-
ownKeys$
|
|
11337
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
11338
11338
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11339
11339
|
});
|
|
11340
11340
|
}
|
|
@@ -11524,7 +11524,7 @@ function pipelineExecutorStatistics(facts) {
|
|
|
11524
11524
|
}
|
|
11525
11525
|
return _to_consumable_array$7(groups.values()).map(function(param) {
|
|
11526
11526
|
var identity = param.identity, _$facts = param.facts;
|
|
11527
|
-
return _object_spread_props$
|
|
11527
|
+
return _object_spread_props$6(_object_spread$a({}, identity), {
|
|
11528
11528
|
attempts: pipelineAttemptCounts(_$facts),
|
|
11529
11529
|
timing: pipelineExecutionTiming(_$facts)
|
|
11530
11530
|
});
|
|
@@ -11539,7 +11539,7 @@ function _array_like_to_array$e(arr, len) {
|
|
|
11539
11539
|
function _array_without_holes$6(arr) {
|
|
11540
11540
|
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
11541
11541
|
}
|
|
11542
|
-
function _define_property$
|
|
11542
|
+
function _define_property$9(obj, key, value) {
|
|
11543
11543
|
if (key in obj) {
|
|
11544
11544
|
Object.defineProperty(obj, key, {
|
|
11545
11545
|
value: value,
|
|
@@ -11558,7 +11558,7 @@ function _iterable_to_array$7(iter) {
|
|
|
11558
11558
|
function _non_iterable_spread$6() {
|
|
11559
11559
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11560
11560
|
}
|
|
11561
|
-
function _object_spread$
|
|
11561
|
+
function _object_spread$9(target) {
|
|
11562
11562
|
for(var i = 1; i < arguments.length; i++){
|
|
11563
11563
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11564
11564
|
var ownKeys = Object.keys(source);
|
|
@@ -11568,12 +11568,12 @@ function _object_spread$8(target) {
|
|
|
11568
11568
|
}));
|
|
11569
11569
|
}
|
|
11570
11570
|
ownKeys.forEach(function(key) {
|
|
11571
|
-
_define_property$
|
|
11571
|
+
_define_property$9(target, key, source[key]);
|
|
11572
11572
|
});
|
|
11573
11573
|
}
|
|
11574
11574
|
return target;
|
|
11575
11575
|
}
|
|
11576
|
-
function ownKeys$
|
|
11576
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
11577
11577
|
var keys = Object.keys(object);
|
|
11578
11578
|
if (Object.getOwnPropertySymbols) {
|
|
11579
11579
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11581,12 +11581,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
11581
11581
|
}
|
|
11582
11582
|
return keys;
|
|
11583
11583
|
}
|
|
11584
|
-
function _object_spread_props$
|
|
11584
|
+
function _object_spread_props$5(target, source) {
|
|
11585
11585
|
source = source != null ? source : {};
|
|
11586
11586
|
if (Object.getOwnPropertyDescriptors) {
|
|
11587
11587
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11588
11588
|
} else {
|
|
11589
|
-
ownKeys$
|
|
11589
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
11590
11590
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11591
11591
|
});
|
|
11592
11592
|
}
|
|
@@ -11723,13 +11723,13 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11723
11723
|
}
|
|
11724
11724
|
}
|
|
11725
11725
|
}
|
|
11726
|
-
return _object_spread_props$
|
|
11726
|
+
return _object_spread_props$5(_object_spread$9({
|
|
11727
11727
|
scope: "linked_native_llm_calls"
|
|
11728
11728
|
}, coverage, totals(calls)), {
|
|
11729
11729
|
unpricedCalls: unpricedCalls,
|
|
11730
11730
|
chargedPoints: chargedPoints,
|
|
11731
11731
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11732
|
-
return _object_spread$
|
|
11732
|
+
return _object_spread$9({
|
|
11733
11733
|
provider: group[0].provider,
|
|
11734
11734
|
model: group[0].model
|
|
11735
11735
|
}, totals(group));
|
|
@@ -11949,7 +11949,7 @@ function _array_with_holes$9(arr) {
|
|
|
11949
11949
|
function _array_without_holes$4(arr) {
|
|
11950
11950
|
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
11951
11951
|
}
|
|
11952
|
-
function _define_property$
|
|
11952
|
+
function _define_property$8(obj, key, value) {
|
|
11953
11953
|
if (key in obj) {
|
|
11954
11954
|
Object.defineProperty(obj, key, {
|
|
11955
11955
|
value: value,
|
|
@@ -11995,7 +11995,7 @@ function _non_iterable_rest$9() {
|
|
|
11995
11995
|
function _non_iterable_spread$4() {
|
|
11996
11996
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11997
11997
|
}
|
|
11998
|
-
function _object_spread$
|
|
11998
|
+
function _object_spread$8(target) {
|
|
11999
11999
|
for(var i = 1; i < arguments.length; i++){
|
|
12000
12000
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12001
12001
|
var ownKeys = Object.keys(source);
|
|
@@ -12005,12 +12005,12 @@ function _object_spread$7(target) {
|
|
|
12005
12005
|
}));
|
|
12006
12006
|
}
|
|
12007
12007
|
ownKeys.forEach(function(key) {
|
|
12008
|
-
_define_property$
|
|
12008
|
+
_define_property$8(target, key, source[key]);
|
|
12009
12009
|
});
|
|
12010
12010
|
}
|
|
12011
12011
|
return target;
|
|
12012
12012
|
}
|
|
12013
|
-
function ownKeys$
|
|
12013
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
12014
12014
|
var keys = Object.keys(object);
|
|
12015
12015
|
if (Object.getOwnPropertySymbols) {
|
|
12016
12016
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12018,12 +12018,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
12018
12018
|
}
|
|
12019
12019
|
return keys;
|
|
12020
12020
|
}
|
|
12021
|
-
function _object_spread_props$
|
|
12021
|
+
function _object_spread_props$4(target, source) {
|
|
12022
12022
|
source = source != null ? source : {};
|
|
12023
12023
|
if (Object.getOwnPropertyDescriptors) {
|
|
12024
12024
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12025
12025
|
} else {
|
|
12026
|
-
ownKeys$
|
|
12026
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
12027
12027
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12028
12028
|
});
|
|
12029
12029
|
}
|
|
@@ -12057,30 +12057,30 @@ var option = v3.z.object({
|
|
|
12057
12057
|
label: label$1
|
|
12058
12058
|
}).strict();
|
|
12059
12059
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
12060
|
-
v3.z.object(_object_spread_props$
|
|
12060
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12061
12061
|
type: v3.z.literal("boolean")
|
|
12062
12062
|
})).strict(),
|
|
12063
|
-
v3.z.object(_object_spread_props$
|
|
12063
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12064
12064
|
type: v3.z.literal("text"),
|
|
12065
12065
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
12066
12066
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
12067
12067
|
})).strict(),
|
|
12068
|
-
v3.z.object(_object_spread_props$
|
|
12068
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12069
12069
|
type: v3.z.literal("number"),
|
|
12070
12070
|
min: v3.z.number().finite(),
|
|
12071
12071
|
max: v3.z.number().finite(),
|
|
12072
12072
|
integer: v3.z.boolean()
|
|
12073
12073
|
})).strict(),
|
|
12074
|
-
v3.z.object(_object_spread_props$
|
|
12074
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12075
12075
|
type: v3.z.literal("choice"),
|
|
12076
12076
|
options: v3.z.array(option).min(1).max(100)
|
|
12077
12077
|
})).strict(),
|
|
12078
|
-
v3.z.object(_object_spread_props$
|
|
12078
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12079
12079
|
type: v3.z.literal("multi_choice"),
|
|
12080
12080
|
options: v3.z.array(option).min(1).max(100),
|
|
12081
12081
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
12082
12082
|
})).strict(),
|
|
12083
|
-
v3.z.object(_object_spread_props$
|
|
12083
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12084
12084
|
type: v3.z.literal("string_list"),
|
|
12085
12085
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
12086
12086
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -12283,13 +12283,13 @@ function parameterSchema(field) {
|
|
|
12283
12283
|
return item.key;
|
|
12284
12284
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
12285
12285
|
var _configuration_binding_executorBindings2;
|
|
12286
|
-
var binding = _object_spread_props$
|
|
12287
|
-
parameters: _object_spread$
|
|
12286
|
+
var binding = _object_spread_props$4(_object_spread$8({}, configuration.binding), {
|
|
12287
|
+
parameters: _object_spread$8({}, configuration.binding.parameters),
|
|
12288
12288
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
12289
12289
|
var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
|
|
12290
12290
|
return [
|
|
12291
12291
|
key,
|
|
12292
|
-
_object_spread$
|
|
12292
|
+
_object_spread$8({}, executor)
|
|
12293
12293
|
];
|
|
12294
12294
|
}))
|
|
12295
12295
|
});
|
|
@@ -12305,7 +12305,7 @@ function parameterSchema(field) {
|
|
|
12305
12305
|
var key = _iter[_i];
|
|
12306
12306
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
12307
12307
|
}
|
|
12308
|
-
binding.limits = _object_spread_props$
|
|
12308
|
+
binding.limits = _object_spread_props$4(_object_spread$8({}, binding.limits), {
|
|
12309
12309
|
nativeModelBudget: budget
|
|
12310
12310
|
});
|
|
12311
12311
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -12377,14 +12377,14 @@ function parameterSchema(field) {
|
|
|
12377
12377
|
}
|
|
12378
12378
|
}
|
|
12379
12379
|
}
|
|
12380
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$
|
|
12380
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$4(_object_spread$8({}, configuration), {
|
|
12381
12381
|
binding: binding
|
|
12382
12382
|
}));
|
|
12383
12383
|
}
|
|
12384
12384
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
12385
12385
|
var _configuration_binding_limits;
|
|
12386
12386
|
var _form_runtimeSlots;
|
|
12387
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$
|
|
12387
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$4(_object_spread$8({}, form.nativeModelBudget ? {
|
|
12388
12388
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
12389
12389
|
} : {}), {
|
|
12390
12390
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -12666,7 +12666,7 @@ function _array_with_holes$8(arr) {
|
|
|
12666
12666
|
function _array_without_holes$2(arr) {
|
|
12667
12667
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
12668
12668
|
}
|
|
12669
|
-
function _define_property$
|
|
12669
|
+
function _define_property$7(obj, key, value) {
|
|
12670
12670
|
if (key in obj) {
|
|
12671
12671
|
Object.defineProperty(obj, key, {
|
|
12672
12672
|
value: value,
|
|
@@ -12712,7 +12712,7 @@ function _non_iterable_rest$8() {
|
|
|
12712
12712
|
function _non_iterable_spread$2() {
|
|
12713
12713
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12714
12714
|
}
|
|
12715
|
-
function _object_spread$
|
|
12715
|
+
function _object_spread$7(target) {
|
|
12716
12716
|
for(var i = 1; i < arguments.length; i++){
|
|
12717
12717
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12718
12718
|
var ownKeys = Object.keys(source);
|
|
@@ -12722,12 +12722,12 @@ function _object_spread$6(target) {
|
|
|
12722
12722
|
}));
|
|
12723
12723
|
}
|
|
12724
12724
|
ownKeys.forEach(function(key) {
|
|
12725
|
-
_define_property$
|
|
12725
|
+
_define_property$7(target, key, source[key]);
|
|
12726
12726
|
});
|
|
12727
12727
|
}
|
|
12728
12728
|
return target;
|
|
12729
12729
|
}
|
|
12730
|
-
function ownKeys$
|
|
12730
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
12731
12731
|
var keys = Object.keys(object);
|
|
12732
12732
|
if (Object.getOwnPropertySymbols) {
|
|
12733
12733
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12735,12 +12735,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
12735
12735
|
}
|
|
12736
12736
|
return keys;
|
|
12737
12737
|
}
|
|
12738
|
-
function _object_spread_props$
|
|
12738
|
+
function _object_spread_props$3(target, source) {
|
|
12739
12739
|
source = source != null ? source : {};
|
|
12740
12740
|
if (Object.getOwnPropertyDescriptors) {
|
|
12741
12741
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12742
12742
|
} else {
|
|
12743
|
-
ownKeys$
|
|
12743
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
12744
12744
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12745
12745
|
});
|
|
12746
12746
|
}
|
|
@@ -12845,7 +12845,7 @@ function unionDuration(ranges) {
|
|
|
12845
12845
|
try {
|
|
12846
12846
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12847
12847
|
var value = _step.value;
|
|
12848
|
-
intervals.push(_object_spread_props$
|
|
12848
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value), {
|
|
12849
12849
|
end: lastAt,
|
|
12850
12850
|
ongoing: false,
|
|
12851
12851
|
censored: true
|
|
@@ -12898,7 +12898,7 @@ function unionDuration(ranges) {
|
|
|
12898
12898
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12899
12899
|
var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
|
|
12900
12900
|
if (!ready.has(id)) {
|
|
12901
|
-
intervals.push(_object_spread_props$
|
|
12901
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value), {
|
|
12902
12902
|
end: at,
|
|
12903
12903
|
ongoing: false
|
|
12904
12904
|
}));
|
|
@@ -12966,13 +12966,13 @@ function unionDuration(ranges) {
|
|
|
12966
12966
|
var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
|
|
12967
12967
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
12968
12968
|
if (currentWaiting.has(id2)) {
|
|
12969
|
-
intervals.push(_object_spread_props$
|
|
12969
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value1), {
|
|
12970
12970
|
end: now,
|
|
12971
12971
|
ongoing: true
|
|
12972
12972
|
}));
|
|
12973
12973
|
tracked.add(id2);
|
|
12974
12974
|
} else {
|
|
12975
|
-
intervals.push(_object_spread_props$
|
|
12975
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value1), {
|
|
12976
12976
|
end: lastAt,
|
|
12977
12977
|
ongoing: false,
|
|
12978
12978
|
censored: true
|
|
@@ -13017,7 +13017,7 @@ function unionDuration(ranges) {
|
|
|
13017
13017
|
var selected = intervals.filter(function(interval) {
|
|
13018
13018
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
13019
13019
|
}).map(function(interval) {
|
|
13020
|
-
return _object_spread_props$
|
|
13020
|
+
return _object_spread_props$3(_object_spread$7({}, interval), {
|
|
13021
13021
|
start: Math.max(from, interval.start),
|
|
13022
13022
|
end: Math.min(to, interval.end)
|
|
13023
13023
|
});
|
|
@@ -13063,7 +13063,7 @@ function unionDuration(ranges) {
|
|
|
13063
13063
|
};
|
|
13064
13064
|
}
|
|
13065
13065
|
|
|
13066
|
-
function _define_property$
|
|
13066
|
+
function _define_property$6(obj, key, value) {
|
|
13067
13067
|
if (key in obj) {
|
|
13068
13068
|
Object.defineProperty(obj, key, {
|
|
13069
13069
|
value: value,
|
|
@@ -13076,7 +13076,7 @@ function _define_property$5(obj, key, value) {
|
|
|
13076
13076
|
}
|
|
13077
13077
|
return obj;
|
|
13078
13078
|
}
|
|
13079
|
-
function _object_spread$
|
|
13079
|
+
function _object_spread$6(target) {
|
|
13080
13080
|
for(var i = 1; i < arguments.length; i++){
|
|
13081
13081
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13082
13082
|
var ownKeys = Object.keys(source);
|
|
@@ -13086,7 +13086,7 @@ function _object_spread$5(target) {
|
|
|
13086
13086
|
}));
|
|
13087
13087
|
}
|
|
13088
13088
|
ownKeys.forEach(function(key) {
|
|
13089
|
-
_define_property$
|
|
13089
|
+
_define_property$6(target, key, source[key]);
|
|
13090
13090
|
});
|
|
13091
13091
|
}
|
|
13092
13092
|
return target;
|
|
@@ -13226,7 +13226,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
13226
13226
|
}
|
|
13227
13227
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
13228
13228
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
13229
|
-
return _object_spread$
|
|
13229
|
+
return _object_spread$6({
|
|
13230
13230
|
projectId: projectId
|
|
13231
13231
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
13232
13232
|
}
|
|
@@ -13523,7 +13523,7 @@ var projectPipelineNativeSourceSchema = projectPipelineNativeDispatchSchema.exte
|
|
|
13523
13523
|
callKey: projectPipelineKeySchema
|
|
13524
13524
|
});
|
|
13525
13525
|
|
|
13526
|
-
function _define_property$
|
|
13526
|
+
function _define_property$5(obj, key, value) {
|
|
13527
13527
|
if (key in obj) {
|
|
13528
13528
|
Object.defineProperty(obj, key, {
|
|
13529
13529
|
value: value,
|
|
@@ -13536,7 +13536,7 @@ function _define_property$4(obj, key, value) {
|
|
|
13536
13536
|
}
|
|
13537
13537
|
return obj;
|
|
13538
13538
|
}
|
|
13539
|
-
function _object_spread$
|
|
13539
|
+
function _object_spread$5(target) {
|
|
13540
13540
|
for(var i = 1; i < arguments.length; i++){
|
|
13541
13541
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13542
13542
|
var ownKeys = Object.keys(source);
|
|
@@ -13546,12 +13546,12 @@ function _object_spread$4(target) {
|
|
|
13546
13546
|
}));
|
|
13547
13547
|
}
|
|
13548
13548
|
ownKeys.forEach(function(key) {
|
|
13549
|
-
_define_property$
|
|
13549
|
+
_define_property$5(target, key, source[key]);
|
|
13550
13550
|
});
|
|
13551
13551
|
}
|
|
13552
13552
|
return target;
|
|
13553
13553
|
}
|
|
13554
|
-
function ownKeys$
|
|
13554
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
13555
13555
|
var keys = Object.keys(object);
|
|
13556
13556
|
if (Object.getOwnPropertySymbols) {
|
|
13557
13557
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13559,12 +13559,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
13559
13559
|
}
|
|
13560
13560
|
return keys;
|
|
13561
13561
|
}
|
|
13562
|
-
function _object_spread_props$
|
|
13562
|
+
function _object_spread_props$2(target, source) {
|
|
13563
13563
|
source = source != null ? source : {};
|
|
13564
13564
|
if (Object.getOwnPropertyDescriptors) {
|
|
13565
13565
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13566
13566
|
} else {
|
|
13567
|
-
ownKeys$
|
|
13567
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
13568
13568
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13569
13569
|
});
|
|
13570
13570
|
}
|
|
@@ -13634,7 +13634,7 @@ var projectPipelineContributionSchema = v3.z.object({
|
|
|
13634
13634
|
]);
|
|
13635
13635
|
// A policy owns the ceilings; the form receives them only after catalog resolution.
|
|
13636
13636
|
if (nativeModelBudgetPolicy && form.nativeModelBudget) throw new Error("DUPLICATE_MODEL_BUDGET_MAXIMUM");
|
|
13637
|
-
validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$
|
|
13637
|
+
validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$2(_object_spread$5({}, form), {
|
|
13638
13638
|
nativeModelBudget: nativeModelBudgetPolicy.maximum
|
|
13639
13639
|
}) : form);
|
|
13640
13640
|
} catch (e) {
|
|
@@ -14920,6 +14920,98 @@ var executeModelReplacementSchema = zod.z.object({
|
|
|
14920
14920
|
})).size === value.selections.length;
|
|
14921
14921
|
});
|
|
14922
14922
|
|
|
14923
|
+
function _define_property$4(obj, key, value) {
|
|
14924
|
+
if (key in obj) {
|
|
14925
|
+
Object.defineProperty(obj, key, {
|
|
14926
|
+
value: value,
|
|
14927
|
+
enumerable: true,
|
|
14928
|
+
configurable: true,
|
|
14929
|
+
writable: true
|
|
14930
|
+
});
|
|
14931
|
+
} else {
|
|
14932
|
+
obj[key] = value;
|
|
14933
|
+
}
|
|
14934
|
+
return obj;
|
|
14935
|
+
}
|
|
14936
|
+
function _object_spread$4(target) {
|
|
14937
|
+
for(var i = 1; i < arguments.length; i++){
|
|
14938
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
14939
|
+
var ownKeys = Object.keys(source);
|
|
14940
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
14941
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14942
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
14943
|
+
}));
|
|
14944
|
+
}
|
|
14945
|
+
ownKeys.forEach(function(key) {
|
|
14946
|
+
_define_property$4(target, key, source[key]);
|
|
14947
|
+
});
|
|
14948
|
+
}
|
|
14949
|
+
return target;
|
|
14950
|
+
}
|
|
14951
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
14952
|
+
var keys = Object.keys(object);
|
|
14953
|
+
if (Object.getOwnPropertySymbols) {
|
|
14954
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
14955
|
+
keys.push.apply(keys, symbols);
|
|
14956
|
+
}
|
|
14957
|
+
return keys;
|
|
14958
|
+
}
|
|
14959
|
+
function _object_spread_props$1(target, source) {
|
|
14960
|
+
source = source != null ? source : {};
|
|
14961
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
14962
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14963
|
+
} else {
|
|
14964
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
14965
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14966
|
+
});
|
|
14967
|
+
}
|
|
14968
|
+
return target;
|
|
14969
|
+
}
|
|
14970
|
+
var page = {
|
|
14971
|
+
after: zod.z.string().uuid().optional(),
|
|
14972
|
+
limit: zod.z.number().int().min(1).max(100).default(50)
|
|
14973
|
+
};
|
|
14974
|
+
var version = {
|
|
14975
|
+
contractVersion: zod.z.literal(2),
|
|
14976
|
+
knownVersion: zod.z.string().max(256).optional()
|
|
14977
|
+
};
|
|
14978
|
+
/** Resource names determine the projection; clients cannot request arbitrary entity fields. */ var projectTaskViewQuerySchema = zod.z.discriminatedUnion("resource", [
|
|
14979
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
14980
|
+
resource: zod.z.literal("context")
|
|
14981
|
+
})).strict(),
|
|
14982
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
14983
|
+
resource: zod.z.literal("task-index"),
|
|
14984
|
+
compactAvatars: zod.z.boolean().optional(),
|
|
14985
|
+
avatarVersions: zod.z.array(zod.z.string().regex(/^[a-f0-9]{64}$/)).max(128).default([])
|
|
14986
|
+
})).strict(),
|
|
14987
|
+
zod.z.object(_object_spread$4(_object_spread_props$1(_object_spread$4({}, version), {
|
|
14988
|
+
resource: zod.z.literal("executions"),
|
|
14989
|
+
taskIds: zod.z.array(zod.z.string().uuid()).min(1).max(100)
|
|
14990
|
+
}), page)).strict(),
|
|
14991
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
14992
|
+
resource: zod.z.literal("task-detail"),
|
|
14993
|
+
taskId: zod.z.string().uuid()
|
|
14994
|
+
})).strict(),
|
|
14995
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
14996
|
+
resource: zod.z.literal("execution-detail"),
|
|
14997
|
+
taskId: zod.z.string().uuid(),
|
|
14998
|
+
executionId: zod.z.string().uuid()
|
|
14999
|
+
})).strict(),
|
|
15000
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15001
|
+
resource: zod.z.literal("execution-artifacts"),
|
|
15002
|
+
taskId: zod.z.string().uuid(),
|
|
15003
|
+
executionId: zod.z.string().uuid()
|
|
15004
|
+
})).strict(),
|
|
15005
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15006
|
+
resource: zod.z.literal("execution-result"),
|
|
15007
|
+
taskId: zod.z.string().uuid(),
|
|
15008
|
+
executionId: zod.z.string().uuid(),
|
|
15009
|
+
expectedRevision: zod.z.number().int().nonnegative(),
|
|
15010
|
+
offset: zod.z.number().int().nonnegative().default(0),
|
|
15011
|
+
limit: zod.z.number().int().min(1).max(12000).default(12000)
|
|
15012
|
+
})).strict()
|
|
15013
|
+
]);
|
|
15014
|
+
|
|
14923
15015
|
var STATE_VARIABLE_HUMAN = "human";
|
|
14924
15016
|
|
|
14925
15017
|
exports.PermissionsEnum = void 0;
|
|
@@ -17111,6 +17203,7 @@ exports.projectTaskReworkSchema = projectTaskReworkSchema;
|
|
|
17111
17203
|
exports.projectTaskSpecificationDigestSchema = projectTaskSpecificationDigestSchema;
|
|
17112
17204
|
exports.projectTaskSpecificationSchema = projectTaskSpecificationSchema;
|
|
17113
17205
|
exports.projectTaskSpecificationSnapshotSchema = projectTaskSpecificationSnapshotSchema;
|
|
17206
|
+
exports.projectTaskViewQuerySchema = projectTaskViewQuerySchema;
|
|
17114
17207
|
exports.providerCredentialCheckSchema = providerCredentialCheckSchema;
|
|
17115
17208
|
exports.providerCredentialValidationTargetSchema = providerCredentialValidationTargetSchema;
|
|
17116
17209
|
exports.readModelConfiguration = readModelConfiguration;
|