@xpert-ai/contracts 3.37.2 → 3.38.1
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 +408 -287
- package/index.esm.js +401 -289
- package/package.json +2 -2
- package/src/ai/chat-event.model.d.ts +2 -1
- package/src/ai/chat-message-envelope.model.d.ts +2 -1
- package/src/ai/chat-message.model.d.ts +1 -1
- package/src/ai/chat.model.d.ts +12 -3
- package/src/ai/conversation-project-move.model.d.ts +27 -0
- package/src/ai/index.d.ts +3 -0
- package/src/ai/project-task-view.model.d.ts +133 -0
- package/src/ai/template-lifecycle.model.d.ts +2 -2
- package/src/ai/xpert-agent-execution.model.d.ts +3 -0
- package/src/app-platform.d.ts +1 -1
- package/src/file-asset.model.d.ts +7 -0
- package/src/plugin-application.d.ts +83 -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$p(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$p(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$p(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$p(_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$o(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$o(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$o(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$o(_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$o(_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$o(_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,26 @@ 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
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
return target;
|
|
2434
|
+
}
|
|
2435
|
+
function ownKeys$n(object, enumerableOnly) {
|
|
2436
|
+
var keys = Object.keys(object);
|
|
2437
|
+
if (Object.getOwnPropertySymbols) {
|
|
2438
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
2439
|
+
keys.push.apply(keys, symbols);
|
|
2440
|
+
}
|
|
2441
|
+
return keys;
|
|
2442
|
+
}
|
|
2443
|
+
function _object_spread_props$n(target, source) {
|
|
2444
|
+
source = source != null ? source : {};
|
|
2445
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
2446
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2447
|
+
} else {
|
|
2448
|
+
ownKeys$n(Object(source)).forEach(function(key) {
|
|
2449
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2431
2450
|
});
|
|
2432
2451
|
}
|
|
2433
2452
|
return target;
|
|
@@ -2438,12 +2457,13 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2438
2457
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2439
2458
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2440
2459
|
function createConversationTitleSummaryEvent(event) {
|
|
2441
|
-
return _object_spread$
|
|
2442
|
-
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2443
|
-
|
|
2460
|
+
return _object_spread_props$n(_object_spread$t({}, event), {
|
|
2461
|
+
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY,
|
|
2462
|
+
presentation: "runtime"
|
|
2463
|
+
});
|
|
2444
2464
|
}
|
|
2445
2465
|
function createFollowUpConsumedEvent(event) {
|
|
2446
|
-
return _object_spread$
|
|
2466
|
+
return _object_spread$t({
|
|
2447
2467
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2448
2468
|
}, event);
|
|
2449
2469
|
}
|
|
@@ -2489,7 +2509,7 @@ function _array_with_holes$j(arr) {
|
|
|
2489
2509
|
function _array_without_holes$j(arr) {
|
|
2490
2510
|
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2491
2511
|
}
|
|
2492
|
-
function _define_property$
|
|
2512
|
+
function _define_property$s(obj, key, value) {
|
|
2493
2513
|
if (key in obj) {
|
|
2494
2514
|
Object.defineProperty(obj, key, {
|
|
2495
2515
|
value: value,
|
|
@@ -2535,7 +2555,7 @@ function _non_iterable_rest$j() {
|
|
|
2535
2555
|
function _non_iterable_spread$j() {
|
|
2536
2556
|
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
2557
|
}
|
|
2538
|
-
function _object_spread$
|
|
2558
|
+
function _object_spread$s(target) {
|
|
2539
2559
|
for(var i = 1; i < arguments.length; i++){
|
|
2540
2560
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2541
2561
|
var ownKeys = Object.keys(source);
|
|
@@ -2545,12 +2565,12 @@ function _object_spread$r(target) {
|
|
|
2545
2565
|
}));
|
|
2546
2566
|
}
|
|
2547
2567
|
ownKeys.forEach(function(key) {
|
|
2548
|
-
_define_property$
|
|
2568
|
+
_define_property$s(target, key, source[key]);
|
|
2549
2569
|
});
|
|
2550
2570
|
}
|
|
2551
2571
|
return target;
|
|
2552
2572
|
}
|
|
2553
|
-
function ownKeys$
|
|
2573
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
2554
2574
|
var keys = Object.keys(object);
|
|
2555
2575
|
if (Object.getOwnPropertySymbols) {
|
|
2556
2576
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2558,12 +2578,12 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
2558
2578
|
}
|
|
2559
2579
|
return keys;
|
|
2560
2580
|
}
|
|
2561
|
-
function _object_spread_props$
|
|
2581
|
+
function _object_spread_props$m(target, source) {
|
|
2562
2582
|
source = source != null ? source : {};
|
|
2563
2583
|
if (Object.getOwnPropertyDescriptors) {
|
|
2564
2584
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2565
2585
|
} else {
|
|
2566
|
-
ownKeys$
|
|
2586
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
2567
2587
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2568
2588
|
});
|
|
2569
2589
|
}
|
|
@@ -2682,7 +2702,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2682
2702
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2683
2703
|
return null;
|
|
2684
2704
|
}
|
|
2685
|
-
return _object_spread$
|
|
2705
|
+
return _object_spread$s({
|
|
2686
2706
|
version: 1
|
|
2687
2707
|
}, Object.keys(toolsets).length ? {
|
|
2688
2708
|
toolsets: toolsets
|
|
@@ -2760,8 +2780,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2760
2780
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2761
2781
|
normalizedToolName
|
|
2762
2782
|
]));
|
|
2763
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2764
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2783
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$s({}, normalizedPreferences.toolsets) : undefined;
|
|
2784
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$s({}, normalizedPreferences.middlewares) : undefined;
|
|
2765
2785
|
if (sourceType === "toolset") {
|
|
2766
2786
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2767
2787
|
if (!toolsetName) {
|
|
@@ -2777,14 +2797,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2777
2797
|
} else {
|
|
2778
2798
|
delete nextToolsets[normalizedNodeKey];
|
|
2779
2799
|
}
|
|
2780
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2800
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2781
2801
|
version: 1
|
|
2782
2802
|
}, Object.keys(nextToolsets).length ? {
|
|
2783
2803
|
toolsets: nextToolsets
|
|
2784
2804
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2785
2805
|
middlewares: middlewares
|
|
2786
2806
|
} : {}, normalizedPreferences.skills ? {
|
|
2787
|
-
skills: _object_spread$
|
|
2807
|
+
skills: _object_spread$s({}, normalizedPreferences.skills)
|
|
2788
2808
|
} : {}));
|
|
2789
2809
|
}
|
|
2790
2810
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2800,14 +2820,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2800
2820
|
} else {
|
|
2801
2821
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2802
2822
|
}
|
|
2803
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2823
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2804
2824
|
version: 1
|
|
2805
2825
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2806
2826
|
toolsets: toolsets
|
|
2807
2827
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2808
2828
|
middlewares: nextMiddlewares
|
|
2809
2829
|
} : {}, normalizedPreferences.skills ? {
|
|
2810
|
-
skills: _object_spread$
|
|
2830
|
+
skills: _object_spread$s({}, normalizedPreferences.skills)
|
|
2811
2831
|
} : {}));
|
|
2812
2832
|
}
|
|
2813
2833
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2825,7 +2845,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2825
2845
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2826
2846
|
normalizedSkillId
|
|
2827
2847
|
]));
|
|
2828
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2848
|
+
var skills = normalizedPreferences.skills ? _object_spread$s({}, normalizedPreferences.skills) : {};
|
|
2829
2849
|
if (nextDisabledSkillIds.length) {
|
|
2830
2850
|
skills[normalizedWorkspaceId] = {
|
|
2831
2851
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2834,12 +2854,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2834
2854
|
} else {
|
|
2835
2855
|
delete skills[normalizedWorkspaceId];
|
|
2836
2856
|
}
|
|
2837
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2857
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$s({
|
|
2838
2858
|
version: 1
|
|
2839
2859
|
}, normalizedPreferences.toolsets ? {
|
|
2840
|
-
toolsets: _object_spread$
|
|
2860
|
+
toolsets: _object_spread$s({}, normalizedPreferences.toolsets)
|
|
2841
2861
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2842
|
-
middlewares: _object_spread$
|
|
2862
|
+
middlewares: _object_spread$s({}, normalizedPreferences.middlewares)
|
|
2843
2863
|
} : {}, Object.keys(skills).length ? {
|
|
2844
2864
|
skills: skills
|
|
2845
2865
|
} : {}));
|
|
@@ -2857,14 +2877,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2857
2877
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2858
2878
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2859
2879
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2860
|
-
return _object_spread_props$
|
|
2880
|
+
return _object_spread_props$m(_object_spread$s({
|
|
2861
2881
|
version: 1
|
|
2862
2882
|
}, normalizedPreferences.toolsets ? {
|
|
2863
|
-
toolsets: _object_spread$
|
|
2883
|
+
toolsets: _object_spread$s({}, normalizedPreferences.toolsets)
|
|
2864
2884
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2865
|
-
middlewares: _object_spread$
|
|
2885
|
+
middlewares: _object_spread$s({}, normalizedPreferences.middlewares)
|
|
2866
2886
|
} : {}), {
|
|
2867
|
-
skills: _object_spread_props$
|
|
2887
|
+
skills: _object_spread_props$m(_object_spread$s({}, currentSkills), _define_property$s({}, normalizedWorkspaceId, {
|
|
2868
2888
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2869
2889
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2870
2890
|
}))
|
|
@@ -3196,7 +3216,7 @@ function _array_like_to_array$t(arr, len) {
|
|
|
3196
3216
|
function _array_without_holes$h(arr) {
|
|
3197
3217
|
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
3198
3218
|
}
|
|
3199
|
-
function _define_property$
|
|
3219
|
+
function _define_property$r(obj, key, value) {
|
|
3200
3220
|
if (key in obj) {
|
|
3201
3221
|
Object.defineProperty(obj, key, {
|
|
3202
3222
|
value: value,
|
|
@@ -3215,7 +3235,7 @@ function _iterable_to_array$j(iter) {
|
|
|
3215
3235
|
function _non_iterable_spread$h() {
|
|
3216
3236
|
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
3237
|
}
|
|
3218
|
-
function _object_spread$
|
|
3238
|
+
function _object_spread$r(target) {
|
|
3219
3239
|
for(var i = 1; i < arguments.length; i++){
|
|
3220
3240
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3221
3241
|
var ownKeys = Object.keys(source);
|
|
@@ -3225,12 +3245,12 @@ function _object_spread$q(target) {
|
|
|
3225
3245
|
}));
|
|
3226
3246
|
}
|
|
3227
3247
|
ownKeys.forEach(function(key) {
|
|
3228
|
-
_define_property$
|
|
3248
|
+
_define_property$r(target, key, source[key]);
|
|
3229
3249
|
});
|
|
3230
3250
|
}
|
|
3231
3251
|
return target;
|
|
3232
3252
|
}
|
|
3233
|
-
function ownKeys$
|
|
3253
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
3234
3254
|
var keys = Object.keys(object);
|
|
3235
3255
|
if (Object.getOwnPropertySymbols) {
|
|
3236
3256
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3238,12 +3258,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
3238
3258
|
}
|
|
3239
3259
|
return keys;
|
|
3240
3260
|
}
|
|
3241
|
-
function _object_spread_props$
|
|
3261
|
+
function _object_spread_props$l(target, source) {
|
|
3242
3262
|
source = source != null ? source : {};
|
|
3243
3263
|
if (Object.getOwnPropertyDescriptors) {
|
|
3244
3264
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3245
3265
|
} else {
|
|
3246
|
-
ownKeys$
|
|
3266
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
3247
3267
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3248
3268
|
});
|
|
3249
3269
|
}
|
|
@@ -3272,20 +3292,20 @@ var common$1 = {
|
|
|
3272
3292
|
maxConcurrency: positiveInteger.max(1000)
|
|
3273
3293
|
};
|
|
3274
3294
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
3275
|
-
zod.z.object(_object_spread_props$
|
|
3295
|
+
zod.z.object(_object_spread_props$l(_object_spread$r({
|
|
3276
3296
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
3277
3297
|
}, common$1), {
|
|
3278
3298
|
maxOutputTokens: positiveInteger,
|
|
3279
3299
|
defaultMaxTokens: positiveInteger,
|
|
3280
3300
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
3281
3301
|
})).strict(),
|
|
3282
|
-
zod.z.object(_object_spread_props$
|
|
3302
|
+
zod.z.object(_object_spread_props$l(_object_spread$r({
|
|
3283
3303
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
3284
3304
|
}, common$1), {
|
|
3285
3305
|
dimensions: positiveInteger.optional(),
|
|
3286
3306
|
batchSize: positiveInteger.max(2048)
|
|
3287
3307
|
})).strict(),
|
|
3288
|
-
zod.z.object(_object_spread$
|
|
3308
|
+
zod.z.object(_object_spread$r({
|
|
3289
3309
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
3290
3310
|
}, common$1)).strict()
|
|
3291
3311
|
]).superRefine(function(value, ctx) {
|
|
@@ -3317,7 +3337,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
3317
3337
|
};
|
|
3318
3338
|
switch(modelType){
|
|
3319
3339
|
case exports.AiModelTypeEnum.LLM:
|
|
3320
|
-
return _object_spread_props$
|
|
3340
|
+
return _object_spread_props$l(_object_spread$r({
|
|
3321
3341
|
modelType: modelType
|
|
3322
3342
|
}, common), {
|
|
3323
3343
|
maxOutputTokens: 2048,
|
|
@@ -3325,13 +3345,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
3325
3345
|
features: []
|
|
3326
3346
|
});
|
|
3327
3347
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
3328
|
-
return _object_spread_props$
|
|
3348
|
+
return _object_spread_props$l(_object_spread$r({
|
|
3329
3349
|
modelType: modelType
|
|
3330
3350
|
}, common), {
|
|
3331
3351
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
3332
3352
|
});
|
|
3333
3353
|
case exports.AiModelTypeEnum.RERANK:
|
|
3334
|
-
return _object_spread$
|
|
3354
|
+
return _object_spread$r({
|
|
3335
3355
|
modelType: modelType
|
|
3336
3356
|
}, common);
|
|
3337
3357
|
}
|
|
@@ -3941,7 +3961,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3941
3961
|
return node.title || node.key;
|
|
3942
3962
|
}
|
|
3943
3963
|
|
|
3944
|
-
function _define_property$
|
|
3964
|
+
function _define_property$q(obj, key, value) {
|
|
3945
3965
|
if (key in obj) {
|
|
3946
3966
|
Object.defineProperty(obj, key, {
|
|
3947
3967
|
value: value,
|
|
@@ -3954,7 +3974,7 @@ function _define_property$p(obj, key, value) {
|
|
|
3954
3974
|
}
|
|
3955
3975
|
return obj;
|
|
3956
3976
|
}
|
|
3957
|
-
function _object_spread$
|
|
3977
|
+
function _object_spread$q(target) {
|
|
3958
3978
|
for(var i = 1; i < arguments.length; i++){
|
|
3959
3979
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3960
3980
|
var ownKeys = Object.keys(source);
|
|
@@ -3964,12 +3984,12 @@ function _object_spread$p(target) {
|
|
|
3964
3984
|
}));
|
|
3965
3985
|
}
|
|
3966
3986
|
ownKeys.forEach(function(key) {
|
|
3967
|
-
_define_property$
|
|
3987
|
+
_define_property$q(target, key, source[key]);
|
|
3968
3988
|
});
|
|
3969
3989
|
}
|
|
3970
3990
|
return target;
|
|
3971
3991
|
}
|
|
3972
|
-
function ownKeys$
|
|
3992
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
3973
3993
|
var keys = Object.keys(object);
|
|
3974
3994
|
if (Object.getOwnPropertySymbols) {
|
|
3975
3995
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3977,12 +3997,12 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
3977
3997
|
}
|
|
3978
3998
|
return keys;
|
|
3979
3999
|
}
|
|
3980
|
-
function _object_spread_props$
|
|
4000
|
+
function _object_spread_props$k(target, source) {
|
|
3981
4001
|
source = source != null ? source : {};
|
|
3982
4002
|
if (Object.getOwnPropertyDescriptors) {
|
|
3983
4003
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3984
4004
|
} else {
|
|
3985
|
-
ownKeys$
|
|
4005
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
3986
4006
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3987
4007
|
});
|
|
3988
4008
|
}
|
|
@@ -4055,7 +4075,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
4055
4075
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$4(_ref, [
|
|
4056
4076
|
"maxConcurrency"
|
|
4057
4077
|
]);
|
|
4058
|
-
return _object_spread_props$
|
|
4078
|
+
return _object_spread_props$k(_object_spread$q({}, config), {
|
|
4059
4079
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
4060
4080
|
});
|
|
4061
4081
|
}
|
|
@@ -4144,7 +4164,7 @@ function _array_like_to_array$s(arr, len) {
|
|
|
4144
4164
|
function _array_with_holes$h(arr) {
|
|
4145
4165
|
if (Array.isArray(arr)) return arr;
|
|
4146
4166
|
}
|
|
4147
|
-
function _define_property$
|
|
4167
|
+
function _define_property$p(obj, key, value) {
|
|
4148
4168
|
if (key in obj) {
|
|
4149
4169
|
Object.defineProperty(obj, key, {
|
|
4150
4170
|
value: value,
|
|
@@ -4184,7 +4204,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
4184
4204
|
function _non_iterable_rest$h() {
|
|
4185
4205
|
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
4206
|
}
|
|
4187
|
-
function _object_spread$
|
|
4207
|
+
function _object_spread$p(target) {
|
|
4188
4208
|
for(var i = 1; i < arguments.length; i++){
|
|
4189
4209
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4190
4210
|
var ownKeys = Object.keys(source);
|
|
@@ -4194,12 +4214,12 @@ function _object_spread$o(target) {
|
|
|
4194
4214
|
}));
|
|
4195
4215
|
}
|
|
4196
4216
|
ownKeys.forEach(function(key) {
|
|
4197
|
-
_define_property$
|
|
4217
|
+
_define_property$p(target, key, source[key]);
|
|
4198
4218
|
});
|
|
4199
4219
|
}
|
|
4200
4220
|
return target;
|
|
4201
4221
|
}
|
|
4202
|
-
function ownKeys$
|
|
4222
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
4203
4223
|
var keys = Object.keys(object);
|
|
4204
4224
|
if (Object.getOwnPropertySymbols) {
|
|
4205
4225
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4207,12 +4227,12 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
4207
4227
|
}
|
|
4208
4228
|
return keys;
|
|
4209
4229
|
}
|
|
4210
|
-
function _object_spread_props$
|
|
4230
|
+
function _object_spread_props$j(target, source) {
|
|
4211
4231
|
source = source != null ? source : {};
|
|
4212
4232
|
if (Object.getOwnPropertyDescriptors) {
|
|
4213
4233
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4214
4234
|
} else {
|
|
4215
|
-
ownKeys$
|
|
4235
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
4216
4236
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4217
4237
|
});
|
|
4218
4238
|
}
|
|
@@ -4312,7 +4332,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
4312
4332
|
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
4313
4333
|
if (variableName) {
|
|
4314
4334
|
var _state_agentChannelName;
|
|
4315
|
-
state[agentChannelName] = _object_spread_props$
|
|
4335
|
+
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
4336
|
} else {
|
|
4317
4337
|
state[agentChannelName] = value;
|
|
4318
4338
|
}
|
|
@@ -4403,7 +4423,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4403
4423
|
});
|
|
4404
4424
|
}
|
|
4405
4425
|
|
|
4406
|
-
function _define_property$
|
|
4426
|
+
function _define_property$o(obj, key, value) {
|
|
4407
4427
|
if (key in obj) {
|
|
4408
4428
|
Object.defineProperty(obj, key, {
|
|
4409
4429
|
value: value,
|
|
@@ -4416,7 +4436,7 @@ function _define_property$n(obj, key, value) {
|
|
|
4416
4436
|
}
|
|
4417
4437
|
return obj;
|
|
4418
4438
|
}
|
|
4419
|
-
function _object_spread$
|
|
4439
|
+
function _object_spread$o(target) {
|
|
4420
4440
|
for(var i = 1; i < arguments.length; i++){
|
|
4421
4441
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4422
4442
|
var ownKeys = Object.keys(source);
|
|
@@ -4426,12 +4446,12 @@ function _object_spread$n(target) {
|
|
|
4426
4446
|
}));
|
|
4427
4447
|
}
|
|
4428
4448
|
ownKeys.forEach(function(key) {
|
|
4429
|
-
_define_property$
|
|
4449
|
+
_define_property$o(target, key, source[key]);
|
|
4430
4450
|
});
|
|
4431
4451
|
}
|
|
4432
4452
|
return target;
|
|
4433
4453
|
}
|
|
4434
|
-
function ownKeys$
|
|
4454
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
4435
4455
|
var keys = Object.keys(object);
|
|
4436
4456
|
if (Object.getOwnPropertySymbols) {
|
|
4437
4457
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4439,12 +4459,12 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
4439
4459
|
}
|
|
4440
4460
|
return keys;
|
|
4441
4461
|
}
|
|
4442
|
-
function _object_spread_props$
|
|
4462
|
+
function _object_spread_props$i(target, source) {
|
|
4443
4463
|
source = source != null ? source : {};
|
|
4444
4464
|
if (Object.getOwnPropertyDescriptors) {
|
|
4445
4465
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4446
4466
|
} else {
|
|
4447
|
-
ownKeys$
|
|
4467
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
4448
4468
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4449
4469
|
});
|
|
4450
4470
|
}
|
|
@@ -4532,11 +4552,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4532
4552
|
return candidate === requestedMode;
|
|
4533
4553
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4534
4554
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4535
|
-
return _object_spread_props$
|
|
4555
|
+
return _object_spread_props$i(_object_spread$o({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4536
4556
|
mode: mode,
|
|
4537
|
-
fusion: _object_spread_props$
|
|
4557
|
+
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
4558
|
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$
|
|
4559
|
+
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
4560
|
graph: 0
|
|
4541
4561
|
})
|
|
4542
4562
|
})
|
|
@@ -4705,7 +4725,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4705
4725
|
function _array_without_holes$f(arr) {
|
|
4706
4726
|
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4707
4727
|
}
|
|
4708
|
-
function _define_property$
|
|
4728
|
+
function _define_property$n(obj, key, value) {
|
|
4709
4729
|
if (key in obj) {
|
|
4710
4730
|
Object.defineProperty(obj, key, {
|
|
4711
4731
|
value: value,
|
|
@@ -4724,7 +4744,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4724
4744
|
function _non_iterable_spread$f() {
|
|
4725
4745
|
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
4746
|
}
|
|
4727
|
-
function _object_spread$
|
|
4747
|
+
function _object_spread$n(target) {
|
|
4728
4748
|
for(var i = 1; i < arguments.length; i++){
|
|
4729
4749
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4730
4750
|
var ownKeys = Object.keys(source);
|
|
@@ -4734,7 +4754,7 @@ function _object_spread$m(target) {
|
|
|
4734
4754
|
}));
|
|
4735
4755
|
}
|
|
4736
4756
|
ownKeys.forEach(function(key) {
|
|
4737
|
-
_define_property$
|
|
4757
|
+
_define_property$n(target, key, source[key]);
|
|
4738
4758
|
});
|
|
4739
4759
|
}
|
|
4740
4760
|
return target;
|
|
@@ -4752,12 +4772,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4752
4772
|
}
|
|
4753
4773
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4754
4774
|
if (!config) return {};
|
|
4755
|
-
return _object_spread$
|
|
4756
|
-
spreadsheet: _object_spread$
|
|
4775
|
+
return _object_spread$n({}, config.spreadsheet ? {
|
|
4776
|
+
spreadsheet: _object_spread$n({}, config.spreadsheet)
|
|
4757
4777
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4758
4778
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4759
4779
|
} : {}, config.questionGeneration ? {
|
|
4760
|
-
questionGeneration: _object_spread$
|
|
4780
|
+
questionGeneration: _object_spread$n({}, config.questionGeneration)
|
|
4761
4781
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4762
4782
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4763
4783
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4771,7 +4791,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4771
4791
|
} : {}, config.textSplitterType ? {
|
|
4772
4792
|
textSplitterType: config.textSplitterType
|
|
4773
4793
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4774
|
-
textSplitter: _object_spread$
|
|
4794
|
+
textSplitter: _object_spread$n({}, config.chunkSize != null ? {
|
|
4775
4795
|
chunkSize: config.chunkSize
|
|
4776
4796
|
} : {}, config.chunkOverlap != null ? {
|
|
4777
4797
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4783,7 +4803,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4783
4803
|
} : {}, config.imageUnderstandingType ? {
|
|
4784
4804
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4785
4805
|
} : {}, config.imageUnderstanding ? {
|
|
4786
|
-
imageUnderstanding: _object_spread$
|
|
4806
|
+
imageUnderstanding: _object_spread$n({}, config.imageUnderstanding)
|
|
4787
4807
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4788
4808
|
}
|
|
4789
4809
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4848,7 +4868,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4848
4868
|
return letterStartSUID("KnowledgeBase_");
|
|
4849
4869
|
}
|
|
4850
4870
|
|
|
4851
|
-
function _define_property$
|
|
4871
|
+
function _define_property$m(obj, key, value) {
|
|
4852
4872
|
if (key in obj) {
|
|
4853
4873
|
Object.defineProperty(obj, key, {
|
|
4854
4874
|
value: value,
|
|
@@ -4861,7 +4881,7 @@ function _define_property$l(obj, key, value) {
|
|
|
4861
4881
|
}
|
|
4862
4882
|
return obj;
|
|
4863
4883
|
}
|
|
4864
|
-
function _object_spread$
|
|
4884
|
+
function _object_spread$m(target) {
|
|
4865
4885
|
for(var i = 1; i < arguments.length; i++){
|
|
4866
4886
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4867
4887
|
var ownKeys = Object.keys(source);
|
|
@@ -4871,7 +4891,7 @@ function _object_spread$l(target) {
|
|
|
4871
4891
|
}));
|
|
4872
4892
|
}
|
|
4873
4893
|
ownKeys.forEach(function(key) {
|
|
4874
|
-
_define_property$
|
|
4894
|
+
_define_property$m(target, key, source[key]);
|
|
4875
4895
|
});
|
|
4876
4896
|
}
|
|
4877
4897
|
return target;
|
|
@@ -4891,7 +4911,7 @@ function _object_spread$l(target) {
|
|
|
4891
4911
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4892
4912
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4893
4913
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4894
|
-
var KDocumentSourceType = _object_spread$
|
|
4914
|
+
var KDocumentSourceType = _object_spread$m({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4895
4915
|
/**
|
|
4896
4916
|
* Document type category, determine how to process the document.
|
|
4897
4917
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5777,7 +5797,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
5777
5797
|
function _array_without_holes$d(arr) {
|
|
5778
5798
|
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5779
5799
|
}
|
|
5780
|
-
function _define_property$
|
|
5800
|
+
function _define_property$l(obj, key, value) {
|
|
5781
5801
|
if (key in obj) {
|
|
5782
5802
|
Object.defineProperty(obj, key, {
|
|
5783
5803
|
value: value,
|
|
@@ -5796,7 +5816,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5796
5816
|
function _non_iterable_spread$d() {
|
|
5797
5817
|
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
5818
|
}
|
|
5799
|
-
function _object_spread$
|
|
5819
|
+
function _object_spread$l(target) {
|
|
5800
5820
|
for(var i = 1; i < arguments.length; i++){
|
|
5801
5821
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5802
5822
|
var ownKeys = Object.keys(source);
|
|
@@ -5806,12 +5826,12 @@ function _object_spread$k(target) {
|
|
|
5806
5826
|
}));
|
|
5807
5827
|
}
|
|
5808
5828
|
ownKeys.forEach(function(key) {
|
|
5809
|
-
_define_property$
|
|
5829
|
+
_define_property$l(target, key, source[key]);
|
|
5810
5830
|
});
|
|
5811
5831
|
}
|
|
5812
5832
|
return target;
|
|
5813
5833
|
}
|
|
5814
|
-
function ownKeys$
|
|
5834
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
5815
5835
|
var keys = Object.keys(object);
|
|
5816
5836
|
if (Object.getOwnPropertySymbols) {
|
|
5817
5837
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5819,12 +5839,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
5819
5839
|
}
|
|
5820
5840
|
return keys;
|
|
5821
5841
|
}
|
|
5822
|
-
function _object_spread_props$
|
|
5842
|
+
function _object_spread_props$h(target, source) {
|
|
5823
5843
|
source = source != null ? source : {};
|
|
5824
5844
|
if (Object.getOwnPropertyDescriptors) {
|
|
5825
5845
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5826
5846
|
} else {
|
|
5827
|
-
ownKeys$
|
|
5847
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
5828
5848
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5829
5849
|
});
|
|
5830
5850
|
}
|
|
@@ -5905,7 +5925,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5905
5925
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5906
5926
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5907
5927
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5908
|
-
return _object_spread_props$
|
|
5928
|
+
return _object_spread_props$h(_object_spread$l({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
5909
5929
|
id: xpert.id,
|
|
5910
5930
|
tenantId: xpert.tenantId,
|
|
5911
5931
|
organizationId: xpert.organizationId,
|
|
@@ -6189,9 +6209,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
6189
6209
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
6190
6210
|
replacedNode = true;
|
|
6191
6211
|
var _node_entity;
|
|
6192
|
-
return _object_spread_props$
|
|
6212
|
+
return _object_spread_props$h(_object_spread$l({}, node), {
|
|
6193
6213
|
key: targetKey,
|
|
6194
|
-
entity: _object_spread_props$
|
|
6214
|
+
entity: _object_spread_props$h(_object_spread$l({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
6195
6215
|
key: targetKey
|
|
6196
6216
|
})
|
|
6197
6217
|
});
|
|
@@ -6207,17 +6227,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
6207
6227
|
if (from === connection.from && to === connection.to) {
|
|
6208
6228
|
return connection;
|
|
6209
6229
|
}
|
|
6210
|
-
return _object_spread_props$
|
|
6230
|
+
return _object_spread_props$h(_object_spread$l({}, connection), {
|
|
6211
6231
|
from: from,
|
|
6212
6232
|
to: to,
|
|
6213
6233
|
key: "".concat(from, "/").concat(to)
|
|
6214
6234
|
});
|
|
6215
6235
|
});
|
|
6216
|
-
return _object_spread_props$
|
|
6217
|
-
team: draft.team ? _object_spread_props$
|
|
6218
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
6236
|
+
return _object_spread_props$h(_object_spread$l({}, draft), {
|
|
6237
|
+
team: draft.team ? _object_spread_props$h(_object_spread$l({}, draft.team), {
|
|
6238
|
+
agent: draft.team.agent ? _object_spread_props$h(_object_spread$l({}, draft.team.agent, agent), {
|
|
6219
6239
|
key: targetKey
|
|
6220
|
-
}) : _object_spread_props$
|
|
6240
|
+
}) : _object_spread_props$h(_object_spread$l({}, agent), {
|
|
6221
6241
|
key: targetKey
|
|
6222
6242
|
})
|
|
6223
6243
|
}) : draft.team,
|
|
@@ -6365,7 +6385,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6365
6385
|
projectTypeKey: "space"
|
|
6366
6386
|
};
|
|
6367
6387
|
|
|
6368
|
-
function _define_property$
|
|
6388
|
+
function _define_property$k(obj, key, value) {
|
|
6369
6389
|
if (key in obj) {
|
|
6370
6390
|
Object.defineProperty(obj, key, {
|
|
6371
6391
|
value: value,
|
|
@@ -6378,7 +6398,7 @@ function _define_property$j(obj, key, value) {
|
|
|
6378
6398
|
}
|
|
6379
6399
|
return obj;
|
|
6380
6400
|
}
|
|
6381
|
-
function _object_spread$
|
|
6401
|
+
function _object_spread$k(target) {
|
|
6382
6402
|
for(var i = 1; i < arguments.length; i++){
|
|
6383
6403
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6384
6404
|
var ownKeys = Object.keys(source);
|
|
@@ -6388,12 +6408,12 @@ function _object_spread$j(target) {
|
|
|
6388
6408
|
}));
|
|
6389
6409
|
}
|
|
6390
6410
|
ownKeys.forEach(function(key) {
|
|
6391
|
-
_define_property$
|
|
6411
|
+
_define_property$k(target, key, source[key]);
|
|
6392
6412
|
});
|
|
6393
6413
|
}
|
|
6394
6414
|
return target;
|
|
6395
6415
|
}
|
|
6396
|
-
function ownKeys$
|
|
6416
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
6397
6417
|
var keys = Object.keys(object);
|
|
6398
6418
|
if (Object.getOwnPropertySymbols) {
|
|
6399
6419
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6401,12 +6421,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
6401
6421
|
}
|
|
6402
6422
|
return keys;
|
|
6403
6423
|
}
|
|
6404
|
-
function _object_spread_props$
|
|
6424
|
+
function _object_spread_props$g(target, source) {
|
|
6405
6425
|
source = source != null ? source : {};
|
|
6406
6426
|
if (Object.getOwnPropertyDescriptors) {
|
|
6407
6427
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6408
6428
|
} else {
|
|
6409
|
-
ownKeys$
|
|
6429
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
6410
6430
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6411
6431
|
});
|
|
6412
6432
|
}
|
|
@@ -6435,7 +6455,7 @@ function projectTaskConfigurationSchema(defaultSeconds) {
|
|
|
6435
6455
|
type: "object",
|
|
6436
6456
|
additionalProperties: false,
|
|
6437
6457
|
properties: {
|
|
6438
|
-
taskExecutionMaxDurationSeconds: _object_spread_props$
|
|
6458
|
+
taskExecutionMaxDurationSeconds: _object_spread_props$g(_object_spread$k({
|
|
6439
6459
|
type: "integer",
|
|
6440
6460
|
minimum: 60,
|
|
6441
6461
|
maximum: 86400
|
|
@@ -6514,7 +6534,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6514
6534
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
6515
6535
|
* @param documents - A flat array of DocumentInterface objects
|
|
6516
6536
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
6517
|
-
*/ function _define_property$
|
|
6537
|
+
*/ function _define_property$j(obj, key, value) {
|
|
6518
6538
|
if (key in obj) {
|
|
6519
6539
|
Object.defineProperty(obj, key, {
|
|
6520
6540
|
value: value,
|
|
@@ -6527,7 +6547,7 @@ var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HAN
|
|
|
6527
6547
|
}
|
|
6528
6548
|
return obj;
|
|
6529
6549
|
}
|
|
6530
|
-
function _object_spread$
|
|
6550
|
+
function _object_spread$j(target) {
|
|
6531
6551
|
for(var i = 1; i < arguments.length; i++){
|
|
6532
6552
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6533
6553
|
var ownKeys = Object.keys(source);
|
|
@@ -6537,12 +6557,12 @@ function _object_spread$i(target) {
|
|
|
6537
6557
|
}));
|
|
6538
6558
|
}
|
|
6539
6559
|
ownKeys.forEach(function(key) {
|
|
6540
|
-
_define_property$
|
|
6560
|
+
_define_property$j(target, key, source[key]);
|
|
6541
6561
|
});
|
|
6542
6562
|
}
|
|
6543
6563
|
return target;
|
|
6544
6564
|
}
|
|
6545
|
-
function ownKeys$
|
|
6565
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
6546
6566
|
var keys = Object.keys(object);
|
|
6547
6567
|
if (Object.getOwnPropertySymbols) {
|
|
6548
6568
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -6550,12 +6570,12 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
6550
6570
|
}
|
|
6551
6571
|
return keys;
|
|
6552
6572
|
}
|
|
6553
|
-
function _object_spread_props$
|
|
6573
|
+
function _object_spread_props$f(target, source) {
|
|
6554
6574
|
source = source != null ? source : {};
|
|
6555
6575
|
if (Object.getOwnPropertyDescriptors) {
|
|
6556
6576
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6557
6577
|
} else {
|
|
6558
|
-
ownKeys$
|
|
6578
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
6559
6579
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6560
6580
|
});
|
|
6561
6581
|
}
|
|
@@ -6570,8 +6590,8 @@ function buildChunkTree(documents) {
|
|
|
6570
6590
|
documents.forEach(function(doc, index) {
|
|
6571
6591
|
var chunkId = getChunkNodeId(doc);
|
|
6572
6592
|
if (chunkId) {
|
|
6573
|
-
map.set(chunkId, _object_spread_props$
|
|
6574
|
-
metadata: _object_spread_props$
|
|
6593
|
+
map.set(chunkId, _object_spread_props$f(_object_spread$j({}, doc), {
|
|
6594
|
+
metadata: _object_spread_props$f(_object_spread$j({}, doc.metadata), {
|
|
6575
6595
|
chunkId: chunkId,
|
|
6576
6596
|
children: []
|
|
6577
6597
|
})
|
|
@@ -7121,7 +7141,7 @@ function isLocalPath(value) {
|
|
|
7121
7141
|
})).size === value.length;
|
|
7122
7142
|
}
|
|
7123
7143
|
|
|
7124
|
-
function _define_property$
|
|
7144
|
+
function _define_property$i(obj, key, value) {
|
|
7125
7145
|
if (key in obj) {
|
|
7126
7146
|
Object.defineProperty(obj, key, {
|
|
7127
7147
|
value: value,
|
|
@@ -7134,7 +7154,7 @@ function _define_property$h(obj, key, value) {
|
|
|
7134
7154
|
}
|
|
7135
7155
|
return obj;
|
|
7136
7156
|
}
|
|
7137
|
-
function _object_spread$
|
|
7157
|
+
function _object_spread$i(target) {
|
|
7138
7158
|
for(var i = 1; i < arguments.length; i++){
|
|
7139
7159
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7140
7160
|
var ownKeys = Object.keys(source);
|
|
@@ -7144,12 +7164,12 @@ function _object_spread$h(target) {
|
|
|
7144
7164
|
}));
|
|
7145
7165
|
}
|
|
7146
7166
|
ownKeys.forEach(function(key) {
|
|
7147
|
-
_define_property$
|
|
7167
|
+
_define_property$i(target, key, source[key]);
|
|
7148
7168
|
});
|
|
7149
7169
|
}
|
|
7150
7170
|
return target;
|
|
7151
7171
|
}
|
|
7152
|
-
function ownKeys$
|
|
7172
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
7153
7173
|
var keys = Object.keys(object);
|
|
7154
7174
|
if (Object.getOwnPropertySymbols) {
|
|
7155
7175
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7157,12 +7177,12 @@ function ownKeys$d(object, enumerableOnly) {
|
|
|
7157
7177
|
}
|
|
7158
7178
|
return keys;
|
|
7159
7179
|
}
|
|
7160
|
-
function _object_spread_props$
|
|
7180
|
+
function _object_spread_props$e(target, source) {
|
|
7161
7181
|
source = source != null ? source : {};
|
|
7162
7182
|
if (Object.getOwnPropertyDescriptors) {
|
|
7163
7183
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7164
7184
|
} else {
|
|
7165
|
-
ownKeys$
|
|
7185
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
7166
7186
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7167
7187
|
});
|
|
7168
7188
|
}
|
|
@@ -7203,8 +7223,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
7203
7223
|
if (provider === entity.provider) {
|
|
7204
7224
|
return node;
|
|
7205
7225
|
}
|
|
7206
|
-
return _object_spread_props$
|
|
7207
|
-
entity: _object_spread_props$
|
|
7226
|
+
return _object_spread_props$e(_object_spread$i({}, node), {
|
|
7227
|
+
entity: _object_spread_props$e(_object_spread$i({}, entity), {
|
|
7208
7228
|
provider: provider
|
|
7209
7229
|
})
|
|
7210
7230
|
});
|
|
@@ -7265,7 +7285,7 @@ function _array_with_holes$e(arr) {
|
|
|
7265
7285
|
function _array_without_holes$c(arr) {
|
|
7266
7286
|
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
7267
7287
|
}
|
|
7268
|
-
function _define_property$
|
|
7288
|
+
function _define_property$h(obj, key, value) {
|
|
7269
7289
|
if (key in obj) {
|
|
7270
7290
|
Object.defineProperty(obj, key, {
|
|
7271
7291
|
value: value,
|
|
@@ -7311,7 +7331,7 @@ function _non_iterable_rest$e() {
|
|
|
7311
7331
|
function _non_iterable_spread$c() {
|
|
7312
7332
|
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
7333
|
}
|
|
7314
|
-
function _object_spread$
|
|
7334
|
+
function _object_spread$h(target) {
|
|
7315
7335
|
for(var i = 1; i < arguments.length; i++){
|
|
7316
7336
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7317
7337
|
var ownKeys = Object.keys(source);
|
|
@@ -7321,12 +7341,12 @@ function _object_spread$g(target) {
|
|
|
7321
7341
|
}));
|
|
7322
7342
|
}
|
|
7323
7343
|
ownKeys.forEach(function(key) {
|
|
7324
|
-
_define_property$
|
|
7344
|
+
_define_property$h(target, key, source[key]);
|
|
7325
7345
|
});
|
|
7326
7346
|
}
|
|
7327
7347
|
return target;
|
|
7328
7348
|
}
|
|
7329
|
-
function ownKeys$
|
|
7349
|
+
function ownKeys$d(object, enumerableOnly) {
|
|
7330
7350
|
var keys = Object.keys(object);
|
|
7331
7351
|
if (Object.getOwnPropertySymbols) {
|
|
7332
7352
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7334,12 +7354,12 @@ function ownKeys$c(object, enumerableOnly) {
|
|
|
7334
7354
|
}
|
|
7335
7355
|
return keys;
|
|
7336
7356
|
}
|
|
7337
|
-
function _object_spread_props$
|
|
7357
|
+
function _object_spread_props$d(target, source) {
|
|
7338
7358
|
source = source != null ? source : {};
|
|
7339
7359
|
if (Object.getOwnPropertyDescriptors) {
|
|
7340
7360
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7341
7361
|
} else {
|
|
7342
|
-
ownKeys$
|
|
7362
|
+
ownKeys$d(Object(source)).forEach(function(key) {
|
|
7343
7363
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7344
7364
|
});
|
|
7345
7365
|
}
|
|
@@ -7455,7 +7475,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
7455
7475
|
if (typeof content !== "string") {
|
|
7456
7476
|
return content;
|
|
7457
7477
|
}
|
|
7458
|
-
return _object_spread$
|
|
7478
|
+
return _object_spread$h({
|
|
7459
7479
|
type: "text",
|
|
7460
7480
|
text: content
|
|
7461
7481
|
}, context.streamId ? {
|
|
@@ -7520,7 +7540,7 @@ function filterText(content) {
|
|
|
7520
7540
|
return "";
|
|
7521
7541
|
}
|
|
7522
7542
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
7523
|
-
return _object_spread$
|
|
7543
|
+
return _object_spread$h(_object_spread_props$d(_object_spread$h({}, previous), {
|
|
7524
7544
|
text: "".concat(previous.text).concat(incoming.text)
|
|
7525
7545
|
}), !previous.id && incoming.id ? {
|
|
7526
7546
|
id: incoming.id
|
|
@@ -7532,7 +7552,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
7532
7552
|
}
|
|
7533
7553
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
7534
7554
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
7535
|
-
return _object_spread_props$
|
|
7555
|
+
return _object_spread_props$d(_object_spread$h({}, incoming), {
|
|
7536
7556
|
text: incoming.text.slice(1)
|
|
7537
7557
|
});
|
|
7538
7558
|
}
|
|
@@ -7551,14 +7571,14 @@ function mergeComponentData(previous, incoming) {
|
|
|
7551
7571
|
return acc;
|
|
7552
7572
|
}, {});
|
|
7553
7573
|
var _previous_data1;
|
|
7554
|
-
return _object_spread_props$
|
|
7555
|
-
data: _object_spread_props$
|
|
7574
|
+
return _object_spread_props$d(_object_spread$h({}, previous, incoming), {
|
|
7575
|
+
data: _object_spread_props$d(_object_spread$h({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
7556
7576
|
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
7577
|
})
|
|
7558
7578
|
});
|
|
7559
7579
|
}
|
|
7560
7580
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
7561
|
-
return _object_spread$
|
|
7581
|
+
return _object_spread$h({
|
|
7562
7582
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
7563
7583
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
7564
7584
|
streamId: String(content.id)
|
|
@@ -7566,10 +7586,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
7566
7586
|
}
|
|
7567
7587
|
function resolveMessageAppendContext(options) {
|
|
7568
7588
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
7569
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$
|
|
7589
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$d(_object_spread$h({}, inferredContext), {
|
|
7570
7590
|
streamId: options.fallbackStreamId
|
|
7571
7591
|
}) : inferredContext;
|
|
7572
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$
|
|
7592
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$d(_object_spread$h({}, appendContext), {
|
|
7573
7593
|
joinHint: "none"
|
|
7574
7594
|
}) : appendContext;
|
|
7575
7595
|
return {
|
|
@@ -7590,7 +7610,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7590
7610
|
var previous = initial;
|
|
7591
7611
|
return {
|
|
7592
7612
|
resolve: function resolve(options) {
|
|
7593
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$
|
|
7613
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$d(_object_spread$h({}, options), {
|
|
7594
7614
|
previous: previous
|
|
7595
7615
|
}));
|
|
7596
7616
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -7628,10 +7648,10 @@ function resolveMessageAppendContext(options) {
|
|
|
7628
7648
|
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
7649
|
"previous"
|
|
7630
7650
|
]);
|
|
7631
|
-
var appendContext = _object_spread$
|
|
7651
|
+
var appendContext = _object_spread$h({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
7632
7652
|
var _appendContext_joinHint;
|
|
7633
7653
|
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$
|
|
7654
|
+
var messageContext = joinHint ? _object_spread_props$d(_object_spread$h({}, appendContext), {
|
|
7635
7655
|
joinHint: joinHint
|
|
7636
7656
|
}) : appendContext;
|
|
7637
7657
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -7640,7 +7660,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7640
7660
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
7641
7661
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
7642
7662
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
7643
|
-
var mergedReasoning = _object_spread_props$
|
|
7663
|
+
var mergedReasoning = _object_spread_props$d(_object_spread$h({}, lastReasoning), {
|
|
7644
7664
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
7645
7665
|
});
|
|
7646
7666
|
aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -7661,7 +7681,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7661
7681
|
return isTextContent(item) && item.id === content.id;
|
|
7662
7682
|
});
|
|
7663
7683
|
if (index > -1) {
|
|
7664
|
-
var mergedContent = _object_spread$
|
|
7684
|
+
var mergedContent = _object_spread$h(_object_spread_props$d(_object_spread$h({}, chunks[index]), {
|
|
7665
7685
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
7666
7686
|
}), !chunks[index].id && content.id ? {
|
|
7667
7687
|
id: content.id
|
|
@@ -7684,7 +7704,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7684
7704
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
7685
7705
|
if (existingIndex > -1) {
|
|
7686
7706
|
var existing = chunks[existingIndex];
|
|
7687
|
-
var merged = _object_spread_props$
|
|
7707
|
+
var merged = _object_spread_props$d(_object_spread$h({}, existing), {
|
|
7688
7708
|
text: "".concat(existing.text).concat(content.text)
|
|
7689
7709
|
});
|
|
7690
7710
|
var nextChunks = _to_consumable_array$c(chunks);
|
|
@@ -7693,7 +7713,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7693
7713
|
return;
|
|
7694
7714
|
}
|
|
7695
7715
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
7696
|
-
var mergedLastContent = _object_spread_props$
|
|
7716
|
+
var mergedLastContent = _object_spread_props$d(_object_spread$h({}, lastContent), {
|
|
7697
7717
|
text: "".concat(lastContent.text).concat(content.text)
|
|
7698
7718
|
});
|
|
7699
7719
|
aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -7702,7 +7722,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7702
7722
|
return;
|
|
7703
7723
|
}
|
|
7704
7724
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
7705
|
-
var appended = _object_spread_props$
|
|
7725
|
+
var appended = _object_spread_props$d(_object_spread$h({}, content), {
|
|
7706
7726
|
text: separator + content.text
|
|
7707
7727
|
});
|
|
7708
7728
|
aiMessage.content = _to_consumable_array$c(chunks).concat([
|
|
@@ -7726,7 +7746,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7726
7746
|
aiMessage.content = nextChunks1;
|
|
7727
7747
|
}
|
|
7728
7748
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
7729
|
-
var resolvedContext = _object_spread$
|
|
7749
|
+
var resolvedContext = _object_spread$h({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
7730
7750
|
var nextText = filterText(incoming);
|
|
7731
7751
|
if (!nextText) {
|
|
7732
7752
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -7771,7 +7791,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7771
7791
|
return;
|
|
7772
7792
|
}
|
|
7773
7793
|
textIndexById.set(item.id, merged.length);
|
|
7774
|
-
merged.push(_object_spread$
|
|
7794
|
+
merged.push(_object_spread$h({}, item));
|
|
7775
7795
|
return;
|
|
7776
7796
|
}
|
|
7777
7797
|
var lastItem = merged[merged.length - 1];
|
|
@@ -7779,7 +7799,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7779
7799
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
7780
7800
|
return;
|
|
7781
7801
|
}
|
|
7782
|
-
merged.push(_object_spread$
|
|
7802
|
+
merged.push(_object_spread$h({}, item));
|
|
7783
7803
|
});
|
|
7784
7804
|
return merged.length ? merged : null;
|
|
7785
7805
|
}
|
|
@@ -7794,7 +7814,7 @@ function stringifyMessageContent(content) {
|
|
|
7794
7814
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
7795
7815
|
var itemContext = inferMessageAppendContext(item);
|
|
7796
7816
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7797
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
7817
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$h({}, itemContext, joinHint ? {
|
|
7798
7818
|
joinHint: joinHint
|
|
7799
7819
|
} : {}));
|
|
7800
7820
|
previousContext = itemContext;
|
|
@@ -7817,7 +7837,7 @@ function filterMessageText(content) {
|
|
|
7817
7837
|
}
|
|
7818
7838
|
var itemContext = inferMessageAppendContext(item);
|
|
7819
7839
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7820
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
7840
|
+
result = appendMessagePlainText(result, nextText, _object_spread$h({}, itemContext, joinHint ? {
|
|
7821
7841
|
joinHint: joinHint
|
|
7822
7842
|
} : {}));
|
|
7823
7843
|
previousContext = itemContext;
|
|
@@ -8589,7 +8609,7 @@ var projectPipelineEdgeSchema = v3.z.object({
|
|
|
8589
8609
|
outcome: projectPipelineKeySchema.optional()
|
|
8590
8610
|
}).strict();
|
|
8591
8611
|
|
|
8592
|
-
function _define_property$
|
|
8612
|
+
function _define_property$g(obj, key, value) {
|
|
8593
8613
|
if (key in obj) {
|
|
8594
8614
|
Object.defineProperty(obj, key, {
|
|
8595
8615
|
value: value,
|
|
@@ -8602,7 +8622,7 @@ function _define_property$f(obj, key, value) {
|
|
|
8602
8622
|
}
|
|
8603
8623
|
return obj;
|
|
8604
8624
|
}
|
|
8605
|
-
function _object_spread$
|
|
8625
|
+
function _object_spread$g(target) {
|
|
8606
8626
|
for(var i = 1; i < arguments.length; i++){
|
|
8607
8627
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8608
8628
|
var ownKeys = Object.keys(source);
|
|
@@ -8612,12 +8632,12 @@ function _object_spread$f(target) {
|
|
|
8612
8632
|
}));
|
|
8613
8633
|
}
|
|
8614
8634
|
ownKeys.forEach(function(key) {
|
|
8615
|
-
_define_property$
|
|
8635
|
+
_define_property$g(target, key, source[key]);
|
|
8616
8636
|
});
|
|
8617
8637
|
}
|
|
8618
8638
|
return target;
|
|
8619
8639
|
}
|
|
8620
|
-
function ownKeys$
|
|
8640
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
8621
8641
|
var keys = Object.keys(object);
|
|
8622
8642
|
if (Object.getOwnPropertySymbols) {
|
|
8623
8643
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8625,12 +8645,12 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
8625
8645
|
}
|
|
8626
8646
|
return keys;
|
|
8627
8647
|
}
|
|
8628
|
-
function _object_spread_props$
|
|
8648
|
+
function _object_spread_props$c(target, source) {
|
|
8629
8649
|
source = source != null ? source : {};
|
|
8630
8650
|
if (Object.getOwnPropertyDescriptors) {
|
|
8631
8651
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8632
8652
|
} else {
|
|
8633
|
-
ownKeys$
|
|
8653
|
+
ownKeys$c(Object(source)).forEach(function(key) {
|
|
8634
8654
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8635
8655
|
});
|
|
8636
8656
|
}
|
|
@@ -8645,7 +8665,7 @@ var base$1 = {
|
|
|
8645
8665
|
};
|
|
8646
8666
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
8647
8667
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
8648
|
-
v3.z.object(_object_spread_props$
|
|
8668
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8649
8669
|
kind: v3.z.literal("work"),
|
|
8650
8670
|
laneKey: projectPipelineKeySchema,
|
|
8651
8671
|
presentation: v3.z.object({
|
|
@@ -8657,23 +8677,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8657
8677
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
8658
8678
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
8659
8679
|
})).strict(),
|
|
8660
|
-
v3.z.object(_object_spread_props$
|
|
8680
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8661
8681
|
kind: v3.z.literal("fork")
|
|
8662
8682
|
})).strict(),
|
|
8663
|
-
v3.z.object(_object_spread_props$
|
|
8683
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8664
8684
|
kind: v3.z.literal("join"),
|
|
8665
8685
|
join: v3.z.object({
|
|
8666
8686
|
mode: v3.z.literal("all_selected"),
|
|
8667
8687
|
accept: v3.z.literal("completed")
|
|
8668
8688
|
}).strict()
|
|
8669
8689
|
})).strict(),
|
|
8670
|
-
v3.z.object(_object_spread_props$
|
|
8690
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8671
8691
|
kind: v3.z.literal("router"),
|
|
8672
8692
|
policyRef: projectPipelineRefSchema,
|
|
8673
8693
|
outcomes: outcomes,
|
|
8674
8694
|
unmatched: v3.z.literal("block")
|
|
8675
8695
|
})).strict(),
|
|
8676
|
-
v3.z.object(_object_spread_props$
|
|
8696
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8677
8697
|
kind: v3.z.literal("human_gate"),
|
|
8678
8698
|
laneKey: projectPipelineKeySchema,
|
|
8679
8699
|
policyRef: projectPipelineRefSchema,
|
|
@@ -8681,12 +8701,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8681
8701
|
outcomes: outcomes,
|
|
8682
8702
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
8683
8703
|
})).strict(),
|
|
8684
|
-
v3.z.object(_object_spread_props$
|
|
8704
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8685
8705
|
kind: v3.z.literal("external_wait"),
|
|
8686
8706
|
laneKey: projectPipelineKeySchema,
|
|
8687
8707
|
subscriptionRef: projectPipelineRefSchema
|
|
8688
8708
|
})).strict(),
|
|
8689
|
-
v3.z.object(_object_spread_props$
|
|
8709
|
+
v3.z.object(_object_spread_props$c(_object_spread$g({}, base$1), {
|
|
8690
8710
|
kind: v3.z.literal("terminal"),
|
|
8691
8711
|
outcome: projectPipelineKeySchema,
|
|
8692
8712
|
disposition: v3.z.enum([
|
|
@@ -9308,8 +9328,8 @@ function _unsupported_iterable_to_array$j(o, minLen) {
|
|
|
9308
9328
|
return issues;
|
|
9309
9329
|
}
|
|
9310
9330
|
|
|
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) {
|
|
9331
|
+
var version$1 = v3.z.number().int().min(1).max(1000);
|
|
9332
|
+
var versions = v3.z.array(version$1).min(1).max(20).refine(function(values) {
|
|
9313
9333
|
return new Set(values).size === values.length;
|
|
9314
9334
|
});
|
|
9315
9335
|
var bounded = function(value) {
|
|
@@ -9318,8 +9338,8 @@ var bounded = function(value) {
|
|
|
9318
9338
|
});
|
|
9319
9339
|
};
|
|
9320
9340
|
/** 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)
|
|
9341
|
+
protocol: version$1,
|
|
9342
|
+
features: bounded(version$1)
|
|
9323
9343
|
}).strict();
|
|
9324
9344
|
var projectPipelineHostCapabilitiesSchema = v3.z.object({
|
|
9325
9345
|
protocols: versions,
|
|
@@ -9350,7 +9370,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
9350
9370
|
|
|
9351
9371
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
9352
9372
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
9353
|
-
function _define_property$
|
|
9373
|
+
function _define_property$f(obj, key, value) {
|
|
9354
9374
|
if (key in obj) {
|
|
9355
9375
|
Object.defineProperty(obj, key, {
|
|
9356
9376
|
value: value,
|
|
@@ -9363,7 +9383,7 @@ function _define_property$e(obj, key, value) {
|
|
|
9363
9383
|
}
|
|
9364
9384
|
return obj;
|
|
9365
9385
|
}
|
|
9366
|
-
function _object_spread$
|
|
9386
|
+
function _object_spread$f(target) {
|
|
9367
9387
|
for(var i = 1; i < arguments.length; i++){
|
|
9368
9388
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9369
9389
|
var ownKeys = Object.keys(source);
|
|
@@ -9373,12 +9393,12 @@ function _object_spread$e(target) {
|
|
|
9373
9393
|
}));
|
|
9374
9394
|
}
|
|
9375
9395
|
ownKeys.forEach(function(key) {
|
|
9376
|
-
_define_property$
|
|
9396
|
+
_define_property$f(target, key, source[key]);
|
|
9377
9397
|
});
|
|
9378
9398
|
}
|
|
9379
9399
|
return target;
|
|
9380
9400
|
}
|
|
9381
|
-
function ownKeys$
|
|
9401
|
+
function ownKeys$b(object, enumerableOnly) {
|
|
9382
9402
|
var keys = Object.keys(object);
|
|
9383
9403
|
if (Object.getOwnPropertySymbols) {
|
|
9384
9404
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9386,12 +9406,12 @@ function ownKeys$a(object, enumerableOnly) {
|
|
|
9386
9406
|
}
|
|
9387
9407
|
return keys;
|
|
9388
9408
|
}
|
|
9389
|
-
function _object_spread_props$
|
|
9409
|
+
function _object_spread_props$b(target, source) {
|
|
9390
9410
|
source = source != null ? source : {};
|
|
9391
9411
|
if (Object.getOwnPropertyDescriptors) {
|
|
9392
9412
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9393
9413
|
} else {
|
|
9394
|
-
ownKeys$
|
|
9414
|
+
ownKeys$b(Object(source)).forEach(function(key) {
|
|
9395
9415
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9396
9416
|
});
|
|
9397
9417
|
}
|
|
@@ -9423,7 +9443,7 @@ var common = {
|
|
|
9423
9443
|
};
|
|
9424
9444
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
9425
9445
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9426
|
-
v3.z.object(_object_spread_props$
|
|
9446
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, common), {
|
|
9427
9447
|
executionAuthority: v3.z.literal("provider"),
|
|
9428
9448
|
providerRef: projectPipelineRefSchema,
|
|
9429
9449
|
topology: v3.z.object({
|
|
@@ -9432,7 +9452,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
9432
9452
|
}).strict(),
|
|
9433
9453
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
9434
9454
|
})).strict(),
|
|
9435
|
-
v3.z.object(_object_spread_props$
|
|
9455
|
+
v3.z.object(_object_spread_props$b(_object_spread$f({}, common), {
|
|
9436
9456
|
executionAuthority: v3.z.literal("platform"),
|
|
9437
9457
|
topology: v3.z.object({
|
|
9438
9458
|
source: v3.z.literal("definition")
|
|
@@ -9846,7 +9866,7 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
9846
9866
|
}
|
|
9847
9867
|
});
|
|
9848
9868
|
|
|
9849
|
-
function _define_property$
|
|
9869
|
+
function _define_property$e(obj, key, value) {
|
|
9850
9870
|
if (key in obj) {
|
|
9851
9871
|
Object.defineProperty(obj, key, {
|
|
9852
9872
|
value: value,
|
|
@@ -9859,7 +9879,7 @@ function _define_property$d(obj, key, value) {
|
|
|
9859
9879
|
}
|
|
9860
9880
|
return obj;
|
|
9861
9881
|
}
|
|
9862
|
-
function _object_spread$
|
|
9882
|
+
function _object_spread$e(target) {
|
|
9863
9883
|
for(var i = 1; i < arguments.length; i++){
|
|
9864
9884
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9865
9885
|
var ownKeys = Object.keys(source);
|
|
@@ -9869,12 +9889,12 @@ function _object_spread$d(target) {
|
|
|
9869
9889
|
}));
|
|
9870
9890
|
}
|
|
9871
9891
|
ownKeys.forEach(function(key) {
|
|
9872
|
-
_define_property$
|
|
9892
|
+
_define_property$e(target, key, source[key]);
|
|
9873
9893
|
});
|
|
9874
9894
|
}
|
|
9875
9895
|
return target;
|
|
9876
9896
|
}
|
|
9877
|
-
function ownKeys$
|
|
9897
|
+
function ownKeys$a(object, enumerableOnly) {
|
|
9878
9898
|
var keys = Object.keys(object);
|
|
9879
9899
|
if (Object.getOwnPropertySymbols) {
|
|
9880
9900
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9882,12 +9902,12 @@ function ownKeys$9(object, enumerableOnly) {
|
|
|
9882
9902
|
}
|
|
9883
9903
|
return keys;
|
|
9884
9904
|
}
|
|
9885
|
-
function _object_spread_props$
|
|
9905
|
+
function _object_spread_props$a(target, source) {
|
|
9886
9906
|
source = source != null ? source : {};
|
|
9887
9907
|
if (Object.getOwnPropertyDescriptors) {
|
|
9888
9908
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9889
9909
|
} else {
|
|
9890
|
-
ownKeys$
|
|
9910
|
+
ownKeys$a(Object(source)).forEach(function(key) {
|
|
9891
9911
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9892
9912
|
});
|
|
9893
9913
|
}
|
|
@@ -9903,13 +9923,13 @@ var definitionRef = v3.z.object({
|
|
|
9903
9923
|
templateRef: projectPipelineRefSchema,
|
|
9904
9924
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
9905
9925
|
}).strict();
|
|
9906
|
-
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$
|
|
9926
|
+
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9907
9927
|
definition: definitionRef,
|
|
9908
9928
|
revision: v3.z.number().int().positive(),
|
|
9909
9929
|
configuration: projectPipelineBindingSchema
|
|
9910
9930
|
})).strict();
|
|
9911
9931
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9912
|
-
v3.z.object(_object_spread_props$
|
|
9932
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9913
9933
|
executionAuthority: v3.z.literal("provider"),
|
|
9914
9934
|
providerRef: projectPipelineRefSchema,
|
|
9915
9935
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9920,7 +9940,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9920
9940
|
}).strict(),
|
|
9921
9941
|
revision: v3.z.number().int().nonnegative()
|
|
9922
9942
|
})).strict(),
|
|
9923
|
-
v3.z.object(_object_spread_props$
|
|
9943
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9924
9944
|
executionAuthority: v3.z.literal("platform"),
|
|
9925
9945
|
bindingId: v3.z.string().uuid(),
|
|
9926
9946
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9932,7 +9952,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9932
9952
|
revision: v3.z.number().int().nonnegative()
|
|
9933
9953
|
})).strict()
|
|
9934
9954
|
]);
|
|
9935
|
-
var projectPipelineRunSchema = v3.z.object(_object_spread_props$
|
|
9955
|
+
var projectPipelineRunSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
9936
9956
|
instanceId: v3.z.string().uuid(),
|
|
9937
9957
|
triggerKey: v3.z.string().min(1).max(500),
|
|
9938
9958
|
definition: definitionRef,
|
|
@@ -10004,7 +10024,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
10004
10024
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
10005
10025
|
generation: v3.z.number().int().positive()
|
|
10006
10026
|
}).strict();
|
|
10007
|
-
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$
|
|
10027
|
+
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
10008
10028
|
runId: v3.z.string().uuid(),
|
|
10009
10029
|
sequence: v3.z.number().int().positive(),
|
|
10010
10030
|
generation: v3.z.number().int().positive(),
|
|
@@ -10020,7 +10040,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$9(_object_spre
|
|
|
10020
10040
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
10021
10041
|
supersedes: v3.z.string().uuid().nullable()
|
|
10022
10042
|
})).strict();
|
|
10023
|
-
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$
|
|
10043
|
+
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$a(_object_spread$e({}, scopedIdentity), {
|
|
10024
10044
|
roundId: v3.z.string().uuid(),
|
|
10025
10045
|
nodeKey: projectPipelineKeySchema,
|
|
10026
10046
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -10032,7 +10052,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$9(_obje
|
|
|
10032
10052
|
revision: v3.z.number().int().nonnegative()
|
|
10033
10053
|
})).strict();
|
|
10034
10054
|
|
|
10035
|
-
function _define_property$
|
|
10055
|
+
function _define_property$d(obj, key, value) {
|
|
10036
10056
|
if (key in obj) {
|
|
10037
10057
|
Object.defineProperty(obj, key, {
|
|
10038
10058
|
value: value,
|
|
@@ -10045,7 +10065,7 @@ function _define_property$c(obj, key, value) {
|
|
|
10045
10065
|
}
|
|
10046
10066
|
return obj;
|
|
10047
10067
|
}
|
|
10048
|
-
function _object_spread$
|
|
10068
|
+
function _object_spread$d(target) {
|
|
10049
10069
|
for(var i = 1; i < arguments.length; i++){
|
|
10050
10070
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10051
10071
|
var ownKeys = Object.keys(source);
|
|
@@ -10055,12 +10075,12 @@ function _object_spread$c(target) {
|
|
|
10055
10075
|
}));
|
|
10056
10076
|
}
|
|
10057
10077
|
ownKeys.forEach(function(key) {
|
|
10058
|
-
_define_property$
|
|
10078
|
+
_define_property$d(target, key, source[key]);
|
|
10059
10079
|
});
|
|
10060
10080
|
}
|
|
10061
10081
|
return target;
|
|
10062
10082
|
}
|
|
10063
|
-
function ownKeys$
|
|
10083
|
+
function ownKeys$9(object, enumerableOnly) {
|
|
10064
10084
|
var keys = Object.keys(object);
|
|
10065
10085
|
if (Object.getOwnPropertySymbols) {
|
|
10066
10086
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10068,12 +10088,12 @@ function ownKeys$8(object, enumerableOnly) {
|
|
|
10068
10088
|
}
|
|
10069
10089
|
return keys;
|
|
10070
10090
|
}
|
|
10071
|
-
function _object_spread_props$
|
|
10091
|
+
function _object_spread_props$9(target, source) {
|
|
10072
10092
|
source = source != null ? source : {};
|
|
10073
10093
|
if (Object.getOwnPropertyDescriptors) {
|
|
10074
10094
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10075
10095
|
} else {
|
|
10076
|
-
ownKeys$
|
|
10096
|
+
ownKeys$9(Object(source)).forEach(function(key) {
|
|
10077
10097
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10078
10098
|
});
|
|
10079
10099
|
}
|
|
@@ -10090,17 +10110,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
10090
10110
|
])
|
|
10091
10111
|
}).strict();
|
|
10092
10112
|
/** 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$
|
|
10113
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10094
10114
|
kind: v3.z.literal("schema")
|
|
10095
10115
|
})).strict(),
|
|
10096
|
-
v3.z.object(_object_spread_props$
|
|
10116
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10097
10117
|
kind: v3.z.literal("resource")
|
|
10098
10118
|
})).strict(),
|
|
10099
|
-
v3.z.object(_object_spread_props$
|
|
10119
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10100
10120
|
kind: v3.z.literal("subject"),
|
|
10101
10121
|
outputSchemaRef: projectPipelineRefSchema
|
|
10102
10122
|
})).strict(),
|
|
10103
|
-
v3.z.object(_object_spread_props$
|
|
10123
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10104
10124
|
kind: v3.z.literal("operation"),
|
|
10105
10125
|
effects: v3.z.enum([
|
|
10106
10126
|
"read_only",
|
|
@@ -10119,32 +10139,32 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
10119
10139
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
10120
10140
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
10121
10141
|
})).strict(),
|
|
10122
|
-
v3.z.object(_object_spread_props$
|
|
10142
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10123
10143
|
kind: v3.z.literal("completion")
|
|
10124
10144
|
})).strict(),
|
|
10125
|
-
v3.z.object(_object_spread_props$
|
|
10145
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10126
10146
|
kind: v3.z.literal("policy"),
|
|
10127
10147
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
10128
10148
|
})).strict(),
|
|
10129
|
-
v3.z.object(_object_spread_props$
|
|
10149
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10130
10150
|
kind: v3.z.literal("projection")
|
|
10131
10151
|
})).strict(),
|
|
10132
|
-
v3.z.object(_object_spread_props$
|
|
10152
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10133
10153
|
kind: v3.z.literal("presentation")
|
|
10134
10154
|
})).strict(),
|
|
10135
|
-
v3.z.object(_object_spread_props$
|
|
10155
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10136
10156
|
kind: v3.z.literal("action")
|
|
10137
10157
|
})).strict(),
|
|
10138
|
-
v3.z.object(_object_spread_props$
|
|
10158
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10139
10159
|
kind: v3.z.literal("metric")
|
|
10140
10160
|
})).strict(),
|
|
10141
|
-
v3.z.object(_object_spread_props$
|
|
10161
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10142
10162
|
kind: v3.z.literal("dimension")
|
|
10143
10163
|
})).strict(),
|
|
10144
|
-
v3.z.object(_object_spread_props$
|
|
10164
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10145
10165
|
kind: v3.z.literal("trigger")
|
|
10146
10166
|
})).strict(),
|
|
10147
|
-
v3.z.object(_object_spread_props$
|
|
10167
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, reference$1), {
|
|
10148
10168
|
kind: v3.z.literal("subscription"),
|
|
10149
10169
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
10150
10170
|
})).strict()
|
|
@@ -10911,7 +10931,7 @@ var tombstone = v3.z.object({
|
|
|
10911
10931
|
]);
|
|
10912
10932
|
});
|
|
10913
10933
|
|
|
10914
|
-
function _define_property$
|
|
10934
|
+
function _define_property$c(obj, key, value) {
|
|
10915
10935
|
if (key in obj) {
|
|
10916
10936
|
Object.defineProperty(obj, key, {
|
|
10917
10937
|
value: value,
|
|
@@ -10924,7 +10944,7 @@ function _define_property$b(obj, key, value) {
|
|
|
10924
10944
|
}
|
|
10925
10945
|
return obj;
|
|
10926
10946
|
}
|
|
10927
|
-
function _object_spread$
|
|
10947
|
+
function _object_spread$c(target) {
|
|
10928
10948
|
for(var i = 1; i < arguments.length; i++){
|
|
10929
10949
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10930
10950
|
var ownKeys = Object.keys(source);
|
|
@@ -10934,12 +10954,12 @@ function _object_spread$b(target) {
|
|
|
10934
10954
|
}));
|
|
10935
10955
|
}
|
|
10936
10956
|
ownKeys.forEach(function(key) {
|
|
10937
|
-
_define_property$
|
|
10957
|
+
_define_property$c(target, key, source[key]);
|
|
10938
10958
|
});
|
|
10939
10959
|
}
|
|
10940
10960
|
return target;
|
|
10941
10961
|
}
|
|
10942
|
-
function ownKeys$
|
|
10962
|
+
function ownKeys$8(object, enumerableOnly) {
|
|
10943
10963
|
var keys = Object.keys(object);
|
|
10944
10964
|
if (Object.getOwnPropertySymbols) {
|
|
10945
10965
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10947,12 +10967,12 @@ function ownKeys$7(object, enumerableOnly) {
|
|
|
10947
10967
|
}
|
|
10948
10968
|
return keys;
|
|
10949
10969
|
}
|
|
10950
|
-
function _object_spread_props$
|
|
10970
|
+
function _object_spread_props$8(target, source) {
|
|
10951
10971
|
source = source != null ? source : {};
|
|
10952
10972
|
if (Object.getOwnPropertyDescriptors) {
|
|
10953
10973
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10954
10974
|
} else {
|
|
10955
|
-
ownKeys$
|
|
10975
|
+
ownKeys$8(Object(source)).forEach(function(key) {
|
|
10956
10976
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10957
10977
|
});
|
|
10958
10978
|
}
|
|
@@ -10990,7 +11010,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10990
11010
|
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
10991
11011
|
}
|
|
10992
11012
|
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
|
|
10993
|
-
v3.z.object(_object_spread_props$
|
|
11013
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
10994
11014
|
source: v3.z.literal("unavailable"),
|
|
10995
11015
|
subject: subject,
|
|
10996
11016
|
state: v3.z.literal("unknown"),
|
|
@@ -11000,7 +11020,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11000
11020
|
"unsupported"
|
|
11001
11021
|
])
|
|
11002
11022
|
})).strict(),
|
|
11003
|
-
v3.z.object(_object_spread_props$
|
|
11023
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11004
11024
|
source: v3.z.literal("platform"),
|
|
11005
11025
|
subject: subject,
|
|
11006
11026
|
scope: v3.z.literal("owned_subtree"),
|
|
@@ -11028,7 +11048,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11028
11048
|
executionId: v3.z.string().uuid(),
|
|
11029
11049
|
threadId: v3.z.string().min(1)
|
|
11030
11050
|
})).strict(),
|
|
11031
|
-
v3.z.object(_object_spread_props$
|
|
11051
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11032
11052
|
source: v3.z.literal("provider"),
|
|
11033
11053
|
subject: v3.z.object({
|
|
11034
11054
|
kind: v3.z.literal("invocation"),
|
|
@@ -11046,7 +11066,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11046
11066
|
receiptKey: v3.z.string().min(1).max(500),
|
|
11047
11067
|
target: executionRuntimeTargetSchema.optional()
|
|
11048
11068
|
})).strict(),
|
|
11049
|
-
v3.z.object(_object_spread_props$
|
|
11069
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11050
11070
|
source: v3.z.literal("native_graph"),
|
|
11051
11071
|
subject: v3.z.object({
|
|
11052
11072
|
kind: v3.z.literal("invocation"),
|
|
@@ -11057,7 +11077,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
11057
11077
|
outcome: v3.z.literal("cancelled"),
|
|
11058
11078
|
executionId: v3.z.string().min(1)
|
|
11059
11079
|
})).strict(),
|
|
11060
|
-
v3.z.object(_object_spread_props$
|
|
11080
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, base), {
|
|
11061
11081
|
source: v3.z.literal("host_admission"),
|
|
11062
11082
|
subject: v3.z.object({
|
|
11063
11083
|
kind: v3.z.literal("invocation"),
|
|
@@ -11084,7 +11104,7 @@ function unknownExecutionControl(subject) {
|
|
|
11084
11104
|
};
|
|
11085
11105
|
}
|
|
11086
11106
|
|
|
11087
|
-
function _define_property$
|
|
11107
|
+
function _define_property$b(obj, key, value) {
|
|
11088
11108
|
if (key in obj) {
|
|
11089
11109
|
Object.defineProperty(obj, key, {
|
|
11090
11110
|
value: value,
|
|
@@ -11097,7 +11117,7 @@ function _define_property$a(obj, key, value) {
|
|
|
11097
11117
|
}
|
|
11098
11118
|
return obj;
|
|
11099
11119
|
}
|
|
11100
|
-
function _object_spread$
|
|
11120
|
+
function _object_spread$b(target) {
|
|
11101
11121
|
for(var i = 1; i < arguments.length; i++){
|
|
11102
11122
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11103
11123
|
var ownKeys = Object.keys(source);
|
|
@@ -11107,12 +11127,12 @@ function _object_spread$a(target) {
|
|
|
11107
11127
|
}));
|
|
11108
11128
|
}
|
|
11109
11129
|
ownKeys.forEach(function(key) {
|
|
11110
|
-
_define_property$
|
|
11130
|
+
_define_property$b(target, key, source[key]);
|
|
11111
11131
|
});
|
|
11112
11132
|
}
|
|
11113
11133
|
return target;
|
|
11114
11134
|
}
|
|
11115
|
-
function ownKeys$
|
|
11135
|
+
function ownKeys$7(object, enumerableOnly) {
|
|
11116
11136
|
var keys = Object.keys(object);
|
|
11117
11137
|
if (Object.getOwnPropertySymbols) {
|
|
11118
11138
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11120,12 +11140,12 @@ function ownKeys$6(object, enumerableOnly) {
|
|
|
11120
11140
|
}
|
|
11121
11141
|
return keys;
|
|
11122
11142
|
}
|
|
11123
|
-
function _object_spread_props$
|
|
11143
|
+
function _object_spread_props$7(target, source) {
|
|
11124
11144
|
source = source != null ? source : {};
|
|
11125
11145
|
if (Object.getOwnPropertyDescriptors) {
|
|
11126
11146
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11127
11147
|
} else {
|
|
11128
|
-
ownKeys$
|
|
11148
|
+
ownKeys$7(Object(source)).forEach(function(key) {
|
|
11129
11149
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11130
11150
|
});
|
|
11131
11151
|
}
|
|
@@ -11192,20 +11212,20 @@ var receipt = {
|
|
|
11192
11212
|
]).optional()
|
|
11193
11213
|
};
|
|
11194
11214
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
11195
|
-
v3.z.object(_object_spread_props$
|
|
11215
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11196
11216
|
status: v3.z.literal("pending")
|
|
11197
11217
|
})).strict(),
|
|
11198
|
-
v3.z.object(_object_spread_props$
|
|
11218
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11199
11219
|
status: v3.z.literal("succeeded"),
|
|
11200
11220
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
11201
11221
|
return Object.keys(value).length <= 100;
|
|
11202
11222
|
}, "Too many output ports")
|
|
11203
11223
|
})).strict(),
|
|
11204
|
-
v3.z.object(_object_spread_props$
|
|
11224
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11205
11225
|
status: v3.z.literal("failed"),
|
|
11206
11226
|
code: projectPipelineKeySchema
|
|
11207
11227
|
})).strict(),
|
|
11208
|
-
v3.z.object(_object_spread_props$
|
|
11228
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, receipt), {
|
|
11209
11229
|
status: v3.z.literal("cancelled")
|
|
11210
11230
|
})).strict(),
|
|
11211
11231
|
v3.z.object({
|
|
@@ -11287,7 +11307,7 @@ function _array_like_to_array$f(arr, len) {
|
|
|
11287
11307
|
function _array_without_holes$7(arr) {
|
|
11288
11308
|
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
11289
11309
|
}
|
|
11290
|
-
function _define_property$
|
|
11310
|
+
function _define_property$a(obj, key, value) {
|
|
11291
11311
|
if (key in obj) {
|
|
11292
11312
|
Object.defineProperty(obj, key, {
|
|
11293
11313
|
value: value,
|
|
@@ -11306,7 +11326,7 @@ function _iterable_to_array$8(iter) {
|
|
|
11306
11326
|
function _non_iterable_spread$7() {
|
|
11307
11327
|
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
11328
|
}
|
|
11309
|
-
function _object_spread$
|
|
11329
|
+
function _object_spread$a(target) {
|
|
11310
11330
|
for(var i = 1; i < arguments.length; i++){
|
|
11311
11331
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11312
11332
|
var ownKeys = Object.keys(source);
|
|
@@ -11316,12 +11336,12 @@ function _object_spread$9(target) {
|
|
|
11316
11336
|
}));
|
|
11317
11337
|
}
|
|
11318
11338
|
ownKeys.forEach(function(key) {
|
|
11319
|
-
_define_property$
|
|
11339
|
+
_define_property$a(target, key, source[key]);
|
|
11320
11340
|
});
|
|
11321
11341
|
}
|
|
11322
11342
|
return target;
|
|
11323
11343
|
}
|
|
11324
|
-
function ownKeys$
|
|
11344
|
+
function ownKeys$6(object, enumerableOnly) {
|
|
11325
11345
|
var keys = Object.keys(object);
|
|
11326
11346
|
if (Object.getOwnPropertySymbols) {
|
|
11327
11347
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11329,12 +11349,12 @@ function ownKeys$5(object, enumerableOnly) {
|
|
|
11329
11349
|
}
|
|
11330
11350
|
return keys;
|
|
11331
11351
|
}
|
|
11332
|
-
function _object_spread_props$
|
|
11352
|
+
function _object_spread_props$6(target, source) {
|
|
11333
11353
|
source = source != null ? source : {};
|
|
11334
11354
|
if (Object.getOwnPropertyDescriptors) {
|
|
11335
11355
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11336
11356
|
} else {
|
|
11337
|
-
ownKeys$
|
|
11357
|
+
ownKeys$6(Object(source)).forEach(function(key) {
|
|
11338
11358
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11339
11359
|
});
|
|
11340
11360
|
}
|
|
@@ -11524,7 +11544,7 @@ function pipelineExecutorStatistics(facts) {
|
|
|
11524
11544
|
}
|
|
11525
11545
|
return _to_consumable_array$7(groups.values()).map(function(param) {
|
|
11526
11546
|
var identity = param.identity, _$facts = param.facts;
|
|
11527
|
-
return _object_spread_props$
|
|
11547
|
+
return _object_spread_props$6(_object_spread$a({}, identity), {
|
|
11528
11548
|
attempts: pipelineAttemptCounts(_$facts),
|
|
11529
11549
|
timing: pipelineExecutionTiming(_$facts)
|
|
11530
11550
|
});
|
|
@@ -11539,7 +11559,7 @@ function _array_like_to_array$e(arr, len) {
|
|
|
11539
11559
|
function _array_without_holes$6(arr) {
|
|
11540
11560
|
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
11541
11561
|
}
|
|
11542
|
-
function _define_property$
|
|
11562
|
+
function _define_property$9(obj, key, value) {
|
|
11543
11563
|
if (key in obj) {
|
|
11544
11564
|
Object.defineProperty(obj, key, {
|
|
11545
11565
|
value: value,
|
|
@@ -11558,7 +11578,7 @@ function _iterable_to_array$7(iter) {
|
|
|
11558
11578
|
function _non_iterable_spread$6() {
|
|
11559
11579
|
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
11580
|
}
|
|
11561
|
-
function _object_spread$
|
|
11581
|
+
function _object_spread$9(target) {
|
|
11562
11582
|
for(var i = 1; i < arguments.length; i++){
|
|
11563
11583
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11564
11584
|
var ownKeys = Object.keys(source);
|
|
@@ -11568,12 +11588,12 @@ function _object_spread$8(target) {
|
|
|
11568
11588
|
}));
|
|
11569
11589
|
}
|
|
11570
11590
|
ownKeys.forEach(function(key) {
|
|
11571
|
-
_define_property$
|
|
11591
|
+
_define_property$9(target, key, source[key]);
|
|
11572
11592
|
});
|
|
11573
11593
|
}
|
|
11574
11594
|
return target;
|
|
11575
11595
|
}
|
|
11576
|
-
function ownKeys$
|
|
11596
|
+
function ownKeys$5(object, enumerableOnly) {
|
|
11577
11597
|
var keys = Object.keys(object);
|
|
11578
11598
|
if (Object.getOwnPropertySymbols) {
|
|
11579
11599
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -11581,12 +11601,12 @@ function ownKeys$4(object, enumerableOnly) {
|
|
|
11581
11601
|
}
|
|
11582
11602
|
return keys;
|
|
11583
11603
|
}
|
|
11584
|
-
function _object_spread_props$
|
|
11604
|
+
function _object_spread_props$5(target, source) {
|
|
11585
11605
|
source = source != null ? source : {};
|
|
11586
11606
|
if (Object.getOwnPropertyDescriptors) {
|
|
11587
11607
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
11588
11608
|
} else {
|
|
11589
|
-
ownKeys$
|
|
11609
|
+
ownKeys$5(Object(source)).forEach(function(key) {
|
|
11590
11610
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
11591
11611
|
});
|
|
11592
11612
|
}
|
|
@@ -11723,13 +11743,13 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11723
11743
|
}
|
|
11724
11744
|
}
|
|
11725
11745
|
}
|
|
11726
|
-
return _object_spread_props$
|
|
11746
|
+
return _object_spread_props$5(_object_spread$9({
|
|
11727
11747
|
scope: "linked_native_llm_calls"
|
|
11728
11748
|
}, coverage, totals(calls)), {
|
|
11729
11749
|
unpricedCalls: unpricedCalls,
|
|
11730
11750
|
chargedPoints: chargedPoints,
|
|
11731
11751
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11732
|
-
return _object_spread$
|
|
11752
|
+
return _object_spread$9({
|
|
11733
11753
|
provider: group[0].provider,
|
|
11734
11754
|
model: group[0].model
|
|
11735
11755
|
}, totals(group));
|
|
@@ -11949,7 +11969,7 @@ function _array_with_holes$9(arr) {
|
|
|
11949
11969
|
function _array_without_holes$4(arr) {
|
|
11950
11970
|
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
11951
11971
|
}
|
|
11952
|
-
function _define_property$
|
|
11972
|
+
function _define_property$8(obj, key, value) {
|
|
11953
11973
|
if (key in obj) {
|
|
11954
11974
|
Object.defineProperty(obj, key, {
|
|
11955
11975
|
value: value,
|
|
@@ -11995,7 +12015,7 @@ function _non_iterable_rest$9() {
|
|
|
11995
12015
|
function _non_iterable_spread$4() {
|
|
11996
12016
|
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
12017
|
}
|
|
11998
|
-
function _object_spread$
|
|
12018
|
+
function _object_spread$8(target) {
|
|
11999
12019
|
for(var i = 1; i < arguments.length; i++){
|
|
12000
12020
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12001
12021
|
var ownKeys = Object.keys(source);
|
|
@@ -12005,12 +12025,12 @@ function _object_spread$7(target) {
|
|
|
12005
12025
|
}));
|
|
12006
12026
|
}
|
|
12007
12027
|
ownKeys.forEach(function(key) {
|
|
12008
|
-
_define_property$
|
|
12028
|
+
_define_property$8(target, key, source[key]);
|
|
12009
12029
|
});
|
|
12010
12030
|
}
|
|
12011
12031
|
return target;
|
|
12012
12032
|
}
|
|
12013
|
-
function ownKeys$
|
|
12033
|
+
function ownKeys$4(object, enumerableOnly) {
|
|
12014
12034
|
var keys = Object.keys(object);
|
|
12015
12035
|
if (Object.getOwnPropertySymbols) {
|
|
12016
12036
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12018,12 +12038,12 @@ function ownKeys$3(object, enumerableOnly) {
|
|
|
12018
12038
|
}
|
|
12019
12039
|
return keys;
|
|
12020
12040
|
}
|
|
12021
|
-
function _object_spread_props$
|
|
12041
|
+
function _object_spread_props$4(target, source) {
|
|
12022
12042
|
source = source != null ? source : {};
|
|
12023
12043
|
if (Object.getOwnPropertyDescriptors) {
|
|
12024
12044
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12025
12045
|
} else {
|
|
12026
|
-
ownKeys$
|
|
12046
|
+
ownKeys$4(Object(source)).forEach(function(key) {
|
|
12027
12047
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12028
12048
|
});
|
|
12029
12049
|
}
|
|
@@ -12057,30 +12077,30 @@ var option = v3.z.object({
|
|
|
12057
12077
|
label: label$1
|
|
12058
12078
|
}).strict();
|
|
12059
12079
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
12060
|
-
v3.z.object(_object_spread_props$
|
|
12080
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12061
12081
|
type: v3.z.literal("boolean")
|
|
12062
12082
|
})).strict(),
|
|
12063
|
-
v3.z.object(_object_spread_props$
|
|
12083
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12064
12084
|
type: v3.z.literal("text"),
|
|
12065
12085
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
12066
12086
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
12067
12087
|
})).strict(),
|
|
12068
|
-
v3.z.object(_object_spread_props$
|
|
12088
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12069
12089
|
type: v3.z.literal("number"),
|
|
12070
12090
|
min: v3.z.number().finite(),
|
|
12071
12091
|
max: v3.z.number().finite(),
|
|
12072
12092
|
integer: v3.z.boolean()
|
|
12073
12093
|
})).strict(),
|
|
12074
|
-
v3.z.object(_object_spread_props$
|
|
12094
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12075
12095
|
type: v3.z.literal("choice"),
|
|
12076
12096
|
options: v3.z.array(option).min(1).max(100)
|
|
12077
12097
|
})).strict(),
|
|
12078
|
-
v3.z.object(_object_spread_props$
|
|
12098
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12079
12099
|
type: v3.z.literal("multi_choice"),
|
|
12080
12100
|
options: v3.z.array(option).min(1).max(100),
|
|
12081
12101
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
12082
12102
|
})).strict(),
|
|
12083
|
-
v3.z.object(_object_spread_props$
|
|
12103
|
+
v3.z.object(_object_spread_props$4(_object_spread$8({}, field), {
|
|
12084
12104
|
type: v3.z.literal("string_list"),
|
|
12085
12105
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
12086
12106
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -12283,13 +12303,13 @@ function parameterSchema(field) {
|
|
|
12283
12303
|
return item.key;
|
|
12284
12304
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
12285
12305
|
var _configuration_binding_executorBindings2;
|
|
12286
|
-
var binding = _object_spread_props$
|
|
12287
|
-
parameters: _object_spread$
|
|
12306
|
+
var binding = _object_spread_props$4(_object_spread$8({}, configuration.binding), {
|
|
12307
|
+
parameters: _object_spread$8({}, configuration.binding.parameters),
|
|
12288
12308
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
12289
12309
|
var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
|
|
12290
12310
|
return [
|
|
12291
12311
|
key,
|
|
12292
|
-
_object_spread$
|
|
12312
|
+
_object_spread$8({}, executor)
|
|
12293
12313
|
];
|
|
12294
12314
|
}))
|
|
12295
12315
|
});
|
|
@@ -12305,7 +12325,7 @@ function parameterSchema(field) {
|
|
|
12305
12325
|
var key = _iter[_i];
|
|
12306
12326
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
12307
12327
|
}
|
|
12308
|
-
binding.limits = _object_spread_props$
|
|
12328
|
+
binding.limits = _object_spread_props$4(_object_spread$8({}, binding.limits), {
|
|
12309
12329
|
nativeModelBudget: budget
|
|
12310
12330
|
});
|
|
12311
12331
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -12377,14 +12397,14 @@ function parameterSchema(field) {
|
|
|
12377
12397
|
}
|
|
12378
12398
|
}
|
|
12379
12399
|
}
|
|
12380
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$
|
|
12400
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$4(_object_spread$8({}, configuration), {
|
|
12381
12401
|
binding: binding
|
|
12382
12402
|
}));
|
|
12383
12403
|
}
|
|
12384
12404
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
12385
12405
|
var _configuration_binding_limits;
|
|
12386
12406
|
var _form_runtimeSlots;
|
|
12387
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$
|
|
12407
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$4(_object_spread$8({}, form.nativeModelBudget ? {
|
|
12388
12408
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
12389
12409
|
} : {}), {
|
|
12390
12410
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -12666,7 +12686,7 @@ function _array_with_holes$8(arr) {
|
|
|
12666
12686
|
function _array_without_holes$2(arr) {
|
|
12667
12687
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
12668
12688
|
}
|
|
12669
|
-
function _define_property$
|
|
12689
|
+
function _define_property$7(obj, key, value) {
|
|
12670
12690
|
if (key in obj) {
|
|
12671
12691
|
Object.defineProperty(obj, key, {
|
|
12672
12692
|
value: value,
|
|
@@ -12712,7 +12732,7 @@ function _non_iterable_rest$8() {
|
|
|
12712
12732
|
function _non_iterable_spread$2() {
|
|
12713
12733
|
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
12734
|
}
|
|
12715
|
-
function _object_spread$
|
|
12735
|
+
function _object_spread$7(target) {
|
|
12716
12736
|
for(var i = 1; i < arguments.length; i++){
|
|
12717
12737
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12718
12738
|
var ownKeys = Object.keys(source);
|
|
@@ -12722,12 +12742,12 @@ function _object_spread$6(target) {
|
|
|
12722
12742
|
}));
|
|
12723
12743
|
}
|
|
12724
12744
|
ownKeys.forEach(function(key) {
|
|
12725
|
-
_define_property$
|
|
12745
|
+
_define_property$7(target, key, source[key]);
|
|
12726
12746
|
});
|
|
12727
12747
|
}
|
|
12728
12748
|
return target;
|
|
12729
12749
|
}
|
|
12730
|
-
function ownKeys$
|
|
12750
|
+
function ownKeys$3(object, enumerableOnly) {
|
|
12731
12751
|
var keys = Object.keys(object);
|
|
12732
12752
|
if (Object.getOwnPropertySymbols) {
|
|
12733
12753
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -12735,12 +12755,12 @@ function ownKeys$2(object, enumerableOnly) {
|
|
|
12735
12755
|
}
|
|
12736
12756
|
return keys;
|
|
12737
12757
|
}
|
|
12738
|
-
function _object_spread_props$
|
|
12758
|
+
function _object_spread_props$3(target, source) {
|
|
12739
12759
|
source = source != null ? source : {};
|
|
12740
12760
|
if (Object.getOwnPropertyDescriptors) {
|
|
12741
12761
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
12742
12762
|
} else {
|
|
12743
|
-
ownKeys$
|
|
12763
|
+
ownKeys$3(Object(source)).forEach(function(key) {
|
|
12744
12764
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
12745
12765
|
});
|
|
12746
12766
|
}
|
|
@@ -12845,7 +12865,7 @@ function unionDuration(ranges) {
|
|
|
12845
12865
|
try {
|
|
12846
12866
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12847
12867
|
var value = _step.value;
|
|
12848
|
-
intervals.push(_object_spread_props$
|
|
12868
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value), {
|
|
12849
12869
|
end: lastAt,
|
|
12850
12870
|
ongoing: false,
|
|
12851
12871
|
censored: true
|
|
@@ -12898,7 +12918,7 @@ function unionDuration(ranges) {
|
|
|
12898
12918
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12899
12919
|
var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
|
|
12900
12920
|
if (!ready.has(id)) {
|
|
12901
|
-
intervals.push(_object_spread_props$
|
|
12921
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value), {
|
|
12902
12922
|
end: at,
|
|
12903
12923
|
ongoing: false
|
|
12904
12924
|
}));
|
|
@@ -12966,13 +12986,13 @@ function unionDuration(ranges) {
|
|
|
12966
12986
|
var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
|
|
12967
12987
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
12968
12988
|
if (currentWaiting.has(id2)) {
|
|
12969
|
-
intervals.push(_object_spread_props$
|
|
12989
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value1), {
|
|
12970
12990
|
end: now,
|
|
12971
12991
|
ongoing: true
|
|
12972
12992
|
}));
|
|
12973
12993
|
tracked.add(id2);
|
|
12974
12994
|
} else {
|
|
12975
|
-
intervals.push(_object_spread_props$
|
|
12995
|
+
intervals.push(_object_spread_props$3(_object_spread$7({}, value1), {
|
|
12976
12996
|
end: lastAt,
|
|
12977
12997
|
ongoing: false,
|
|
12978
12998
|
censored: true
|
|
@@ -13017,7 +13037,7 @@ function unionDuration(ranges) {
|
|
|
13017
13037
|
var selected = intervals.filter(function(interval) {
|
|
13018
13038
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
13019
13039
|
}).map(function(interval) {
|
|
13020
|
-
return _object_spread_props$
|
|
13040
|
+
return _object_spread_props$3(_object_spread$7({}, interval), {
|
|
13021
13041
|
start: Math.max(from, interval.start),
|
|
13022
13042
|
end: Math.min(to, interval.end)
|
|
13023
13043
|
});
|
|
@@ -13063,7 +13083,7 @@ function unionDuration(ranges) {
|
|
|
13063
13083
|
};
|
|
13064
13084
|
}
|
|
13065
13085
|
|
|
13066
|
-
function _define_property$
|
|
13086
|
+
function _define_property$6(obj, key, value) {
|
|
13067
13087
|
if (key in obj) {
|
|
13068
13088
|
Object.defineProperty(obj, key, {
|
|
13069
13089
|
value: value,
|
|
@@ -13076,7 +13096,7 @@ function _define_property$5(obj, key, value) {
|
|
|
13076
13096
|
}
|
|
13077
13097
|
return obj;
|
|
13078
13098
|
}
|
|
13079
|
-
function _object_spread$
|
|
13099
|
+
function _object_spread$6(target) {
|
|
13080
13100
|
for(var i = 1; i < arguments.length; i++){
|
|
13081
13101
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13082
13102
|
var ownKeys = Object.keys(source);
|
|
@@ -13086,7 +13106,7 @@ function _object_spread$5(target) {
|
|
|
13086
13106
|
}));
|
|
13087
13107
|
}
|
|
13088
13108
|
ownKeys.forEach(function(key) {
|
|
13089
|
-
_define_property$
|
|
13109
|
+
_define_property$6(target, key, source[key]);
|
|
13090
13110
|
});
|
|
13091
13111
|
}
|
|
13092
13112
|
return target;
|
|
@@ -13226,7 +13246,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
13226
13246
|
}
|
|
13227
13247
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
13228
13248
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
13229
|
-
return _object_spread$
|
|
13249
|
+
return _object_spread$6({
|
|
13230
13250
|
projectId: projectId
|
|
13231
13251
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
13232
13252
|
}
|
|
@@ -13523,7 +13543,7 @@ var projectPipelineNativeSourceSchema = projectPipelineNativeDispatchSchema.exte
|
|
|
13523
13543
|
callKey: projectPipelineKeySchema
|
|
13524
13544
|
});
|
|
13525
13545
|
|
|
13526
|
-
function _define_property$
|
|
13546
|
+
function _define_property$5(obj, key, value) {
|
|
13527
13547
|
if (key in obj) {
|
|
13528
13548
|
Object.defineProperty(obj, key, {
|
|
13529
13549
|
value: value,
|
|
@@ -13536,7 +13556,7 @@ function _define_property$4(obj, key, value) {
|
|
|
13536
13556
|
}
|
|
13537
13557
|
return obj;
|
|
13538
13558
|
}
|
|
13539
|
-
function _object_spread$
|
|
13559
|
+
function _object_spread$5(target) {
|
|
13540
13560
|
for(var i = 1; i < arguments.length; i++){
|
|
13541
13561
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13542
13562
|
var ownKeys = Object.keys(source);
|
|
@@ -13546,12 +13566,12 @@ function _object_spread$4(target) {
|
|
|
13546
13566
|
}));
|
|
13547
13567
|
}
|
|
13548
13568
|
ownKeys.forEach(function(key) {
|
|
13549
|
-
_define_property$
|
|
13569
|
+
_define_property$5(target, key, source[key]);
|
|
13550
13570
|
});
|
|
13551
13571
|
}
|
|
13552
13572
|
return target;
|
|
13553
13573
|
}
|
|
13554
|
-
function ownKeys$
|
|
13574
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
13555
13575
|
var keys = Object.keys(object);
|
|
13556
13576
|
if (Object.getOwnPropertySymbols) {
|
|
13557
13577
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -13559,12 +13579,12 @@ function ownKeys$1(object, enumerableOnly) {
|
|
|
13559
13579
|
}
|
|
13560
13580
|
return keys;
|
|
13561
13581
|
}
|
|
13562
|
-
function _object_spread_props$
|
|
13582
|
+
function _object_spread_props$2(target, source) {
|
|
13563
13583
|
source = source != null ? source : {};
|
|
13564
13584
|
if (Object.getOwnPropertyDescriptors) {
|
|
13565
13585
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
13566
13586
|
} else {
|
|
13567
|
-
ownKeys$
|
|
13587
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
13568
13588
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
13569
13589
|
});
|
|
13570
13590
|
}
|
|
@@ -13634,7 +13654,7 @@ var projectPipelineContributionSchema = v3.z.object({
|
|
|
13634
13654
|
]);
|
|
13635
13655
|
// A policy owns the ceilings; the form receives them only after catalog resolution.
|
|
13636
13656
|
if (nativeModelBudgetPolicy && form.nativeModelBudget) throw new Error("DUPLICATE_MODEL_BUDGET_MAXIMUM");
|
|
13637
|
-
validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$
|
|
13657
|
+
validateProjectPipelineConfigurationForm(concrete, nativeModelBudgetPolicy ? _object_spread_props$2(_object_spread$5({}, form), {
|
|
13638
13658
|
nativeModelBudget: nativeModelBudgetPolicy.maximum
|
|
13639
13659
|
}) : form);
|
|
13640
13660
|
} catch (e) {
|
|
@@ -14920,6 +14940,98 @@ var executeModelReplacementSchema = zod.z.object({
|
|
|
14920
14940
|
})).size === value.selections.length;
|
|
14921
14941
|
});
|
|
14922
14942
|
|
|
14943
|
+
function _define_property$4(obj, key, value) {
|
|
14944
|
+
if (key in obj) {
|
|
14945
|
+
Object.defineProperty(obj, key, {
|
|
14946
|
+
value: value,
|
|
14947
|
+
enumerable: true,
|
|
14948
|
+
configurable: true,
|
|
14949
|
+
writable: true
|
|
14950
|
+
});
|
|
14951
|
+
} else {
|
|
14952
|
+
obj[key] = value;
|
|
14953
|
+
}
|
|
14954
|
+
return obj;
|
|
14955
|
+
}
|
|
14956
|
+
function _object_spread$4(target) {
|
|
14957
|
+
for(var i = 1; i < arguments.length; i++){
|
|
14958
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
14959
|
+
var ownKeys = Object.keys(source);
|
|
14960
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
14961
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14962
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
14963
|
+
}));
|
|
14964
|
+
}
|
|
14965
|
+
ownKeys.forEach(function(key) {
|
|
14966
|
+
_define_property$4(target, key, source[key]);
|
|
14967
|
+
});
|
|
14968
|
+
}
|
|
14969
|
+
return target;
|
|
14970
|
+
}
|
|
14971
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
14972
|
+
var keys = Object.keys(object);
|
|
14973
|
+
if (Object.getOwnPropertySymbols) {
|
|
14974
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
14975
|
+
keys.push.apply(keys, symbols);
|
|
14976
|
+
}
|
|
14977
|
+
return keys;
|
|
14978
|
+
}
|
|
14979
|
+
function _object_spread_props$1(target, source) {
|
|
14980
|
+
source = source != null ? source : {};
|
|
14981
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
14982
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14983
|
+
} else {
|
|
14984
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
14985
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14986
|
+
});
|
|
14987
|
+
}
|
|
14988
|
+
return target;
|
|
14989
|
+
}
|
|
14990
|
+
var page = {
|
|
14991
|
+
after: zod.z.string().uuid().optional(),
|
|
14992
|
+
limit: zod.z.number().int().min(1).max(100).default(50)
|
|
14993
|
+
};
|
|
14994
|
+
var version = {
|
|
14995
|
+
contractVersion: zod.z.literal(2),
|
|
14996
|
+
knownVersion: zod.z.string().max(256).optional()
|
|
14997
|
+
};
|
|
14998
|
+
/** Resource names determine the projection; clients cannot request arbitrary entity fields. */ var projectTaskViewQuerySchema = zod.z.discriminatedUnion("resource", [
|
|
14999
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15000
|
+
resource: zod.z.literal("context")
|
|
15001
|
+
})).strict(),
|
|
15002
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15003
|
+
resource: zod.z.literal("task-index"),
|
|
15004
|
+
compactAvatars: zod.z.boolean().optional(),
|
|
15005
|
+
avatarVersions: zod.z.array(zod.z.string().regex(/^[a-f0-9]{64}$/)).max(128).default([])
|
|
15006
|
+
})).strict(),
|
|
15007
|
+
zod.z.object(_object_spread$4(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15008
|
+
resource: zod.z.literal("executions"),
|
|
15009
|
+
taskIds: zod.z.array(zod.z.string().uuid()).min(1).max(100)
|
|
15010
|
+
}), page)).strict(),
|
|
15011
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15012
|
+
resource: zod.z.literal("task-detail"),
|
|
15013
|
+
taskId: zod.z.string().uuid()
|
|
15014
|
+
})).strict(),
|
|
15015
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15016
|
+
resource: zod.z.literal("execution-detail"),
|
|
15017
|
+
taskId: zod.z.string().uuid(),
|
|
15018
|
+
executionId: zod.z.string().uuid()
|
|
15019
|
+
})).strict(),
|
|
15020
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15021
|
+
resource: zod.z.literal("execution-artifacts"),
|
|
15022
|
+
taskId: zod.z.string().uuid(),
|
|
15023
|
+
executionId: zod.z.string().uuid()
|
|
15024
|
+
})).strict(),
|
|
15025
|
+
zod.z.object(_object_spread_props$1(_object_spread$4({}, version), {
|
|
15026
|
+
resource: zod.z.literal("execution-result"),
|
|
15027
|
+
taskId: zod.z.string().uuid(),
|
|
15028
|
+
executionId: zod.z.string().uuid(),
|
|
15029
|
+
expectedRevision: zod.z.number().int().nonnegative(),
|
|
15030
|
+
offset: zod.z.number().int().nonnegative().default(0),
|
|
15031
|
+
limit: zod.z.number().int().min(1).max(12000).default(12000)
|
|
15032
|
+
})).strict()
|
|
15033
|
+
]);
|
|
15034
|
+
|
|
14923
15035
|
var STATE_VARIABLE_HUMAN = "human";
|
|
14924
15036
|
|
|
14925
15037
|
exports.PermissionsEnum = void 0;
|
|
@@ -16432,10 +16544,18 @@ Object.defineProperty(exports, "createResourceCardContent", {
|
|
|
16432
16544
|
enumerable: true,
|
|
16433
16545
|
get: function () { return chatkitTypes.createResourceCardContent; }
|
|
16434
16546
|
});
|
|
16547
|
+
Object.defineProperty(exports, "hasRuntimePresentation", {
|
|
16548
|
+
enumerable: true,
|
|
16549
|
+
get: function () { return chatkitTypes.hasRuntimePresentation; }
|
|
16550
|
+
});
|
|
16435
16551
|
Object.defineProperty(exports, "isResourceCardContent", {
|
|
16436
16552
|
enumerable: true,
|
|
16437
16553
|
get: function () { return chatkitTypes.isResourceCardContent; }
|
|
16438
16554
|
});
|
|
16555
|
+
Object.defineProperty(exports, "isRuntimeAgentExecution", {
|
|
16556
|
+
enumerable: true,
|
|
16557
|
+
get: function () { return chatkitTypes.isRuntimeAgentExecution; }
|
|
16558
|
+
});
|
|
16439
16559
|
Object.defineProperty(exports, "parseResourceCard", {
|
|
16440
16560
|
enumerable: true,
|
|
16441
16561
|
get: function () { return chatkitTypes.parseResourceCard; }
|
|
@@ -17111,6 +17231,7 @@ exports.projectTaskReworkSchema = projectTaskReworkSchema;
|
|
|
17111
17231
|
exports.projectTaskSpecificationDigestSchema = projectTaskSpecificationDigestSchema;
|
|
17112
17232
|
exports.projectTaskSpecificationSchema = projectTaskSpecificationSchema;
|
|
17113
17233
|
exports.projectTaskSpecificationSnapshotSchema = projectTaskSpecificationSnapshotSchema;
|
|
17234
|
+
exports.projectTaskViewQuerySchema = projectTaskViewQuerySchema;
|
|
17114
17235
|
exports.providerCredentialCheckSchema = providerCredentialCheckSchema;
|
|
17115
17236
|
exports.providerCredentialValidationTargetSchema = providerCredentialValidationTargetSchema;
|
|
17116
17237
|
exports.readModelConfiguration = readModelConfiguration;
|