@xpert-ai/contracts 3.31.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +674 -527
- package/index.esm.js +671 -528
- package/package.json +1 -1
- package/src/ai/assistant-template-manifest.model.d.ts +148 -148
- package/src/ai/connection-impact.model.d.ts +37 -0
- package/src/ai/conversation-trail.model.d.ts +2 -2
- package/src/ai/execution-observability.model.d.ts +50 -50
- package/src/ai/index.d.ts +1 -0
- package/src/ai/model-replacement.model.d.ts +12 -12
- package/src/ai/run-display-snapshot.model.d.ts +1 -1
- package/src/ai/template-installation.model.d.ts +4 -4
- package/src/analytics-diagnostic.d.ts +53 -0
- package/src/app-platform.d.ts +8 -8
- package/src/business-area-access.model.d.ts +52 -0
- package/src/index.d.ts +2 -0
- package/src/user-notification.schema.d.ts +34 -34
package/index.cjs.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.AiModelTypeEnum = void 0;
|
|
|
19
19
|
AiModelTypeEnum["VIDEO"] = "video";
|
|
20
20
|
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
21
21
|
|
|
22
|
-
function _define_property$
|
|
22
|
+
function _define_property$s(obj, key, value) {
|
|
23
23
|
if (key in obj) {
|
|
24
24
|
Object.defineProperty(obj, key, {
|
|
25
25
|
value: value,
|
|
@@ -32,7 +32,7 @@ function _define_property$r(obj, key, value) {
|
|
|
32
32
|
}
|
|
33
33
|
return obj;
|
|
34
34
|
}
|
|
35
|
-
function _object_spread$
|
|
35
|
+
function _object_spread$s(target) {
|
|
36
36
|
for(var i = 1; i < arguments.length; i++){
|
|
37
37
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
38
38
|
var ownKeys = Object.keys(source);
|
|
@@ -42,7 +42,7 @@ function _object_spread$r(target) {
|
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
44
|
ownKeys.forEach(function(key) {
|
|
45
|
-
_define_property$
|
|
45
|
+
_define_property$s(target, key, source[key]);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
return target;
|
|
@@ -68,7 +68,7 @@ function _object_spread_props$l(target, source) {
|
|
|
68
68
|
}
|
|
69
69
|
var key$3 = v3.z.string().regex(/^[a-z][a-z0-9_-]{0,79}$/);
|
|
70
70
|
var text$2 = v3.z.string().trim().min(1).max(255);
|
|
71
|
-
var reference$
|
|
71
|
+
var reference$2 = v3.z.object({
|
|
72
72
|
app: key$3,
|
|
73
73
|
resource: key$3
|
|
74
74
|
}).strict();
|
|
@@ -83,7 +83,7 @@ var appPlatformAppSchema = v3.z.object({
|
|
|
83
83
|
configurationRef: key$3,
|
|
84
84
|
dependsOn: v3.z.array(key$3).max(32).default([])
|
|
85
85
|
}).strict().transform(function(app) {
|
|
86
|
-
return _object_spread_props$l(_object_spread$
|
|
86
|
+
return _object_spread_props$l(_object_spread$s({}, app), {
|
|
87
87
|
key: app.key,
|
|
88
88
|
required: app.required,
|
|
89
89
|
configurationRef: app.configurationRef,
|
|
@@ -111,8 +111,8 @@ var appPlatformAppSchema = v3.z.object({
|
|
|
111
111
|
apps: v3.z.array(appPlatformAppSchema).min(1).max(32),
|
|
112
112
|
bindings: v3.z.array(v3.z.object({
|
|
113
113
|
type: v3.z.literal("knowledgebase"),
|
|
114
|
-
from: reference$
|
|
115
|
-
to: reference$
|
|
114
|
+
from: reference$2,
|
|
115
|
+
to: reference$2
|
|
116
116
|
}).strict()).max(100).default([]),
|
|
117
117
|
experience: v3.z.object({
|
|
118
118
|
home: key$3,
|
|
@@ -484,13 +484,13 @@ function resolveI18nText(value) {
|
|
|
484
484
|
return null;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
function _array_like_to_array$
|
|
487
|
+
function _array_like_to_array$y(arr, len) {
|
|
488
488
|
if (len == null || len > arr.length) len = arr.length;
|
|
489
489
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
490
490
|
return arr2;
|
|
491
491
|
}
|
|
492
492
|
function _array_without_holes$l(arr) {
|
|
493
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
493
|
+
if (Array.isArray(arr)) return _array_like_to_array$y(arr);
|
|
494
494
|
}
|
|
495
495
|
function _iterable_to_array$n(iter) {
|
|
496
496
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -499,15 +499,15 @@ function _non_iterable_spread$l() {
|
|
|
499
499
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
500
500
|
}
|
|
501
501
|
function _to_consumable_array$l(arr) {
|
|
502
|
-
return _array_without_holes$l(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$
|
|
502
|
+
return _array_without_holes$l(arr) || _iterable_to_array$n(arr) || _unsupported_iterable_to_array$y(arr) || _non_iterable_spread$l();
|
|
503
503
|
}
|
|
504
|
-
function _unsupported_iterable_to_array$
|
|
504
|
+
function _unsupported_iterable_to_array$y(o, minLen) {
|
|
505
505
|
if (!o) return;
|
|
506
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
506
|
+
if (typeof o === "string") return _array_like_to_array$y(o, minLen);
|
|
507
507
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
508
508
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
509
509
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
510
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
510
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$y(o, minLen);
|
|
511
511
|
}
|
|
512
512
|
var _uuidGenerator;
|
|
513
513
|
var uuidGenerator = new ShortUniqueId({
|
|
@@ -587,13 +587,13 @@ function sandboxEvidence(target, state) {
|
|
|
587
587
|
"FileOutput"
|
|
588
588
|
];
|
|
589
589
|
|
|
590
|
-
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$
|
|
590
|
+
/** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$x(arr, len) {
|
|
591
591
|
if (len == null || len > arr.length) len = arr.length;
|
|
592
592
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
593
593
|
return arr2;
|
|
594
594
|
}
|
|
595
595
|
function _array_without_holes$k(arr) {
|
|
596
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
596
|
+
if (Array.isArray(arr)) return _array_like_to_array$x(arr);
|
|
597
597
|
}
|
|
598
598
|
function _iterable_to_array$m(iter) {
|
|
599
599
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -602,15 +602,15 @@ function _non_iterable_spread$k() {
|
|
|
602
602
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
603
603
|
}
|
|
604
604
|
function _to_consumable_array$k(arr) {
|
|
605
|
-
return _array_without_holes$k(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$
|
|
605
|
+
return _array_without_holes$k(arr) || _iterable_to_array$m(arr) || _unsupported_iterable_to_array$x(arr) || _non_iterable_spread$k();
|
|
606
606
|
}
|
|
607
|
-
function _unsupported_iterable_to_array$
|
|
607
|
+
function _unsupported_iterable_to_array$x(o, minLen) {
|
|
608
608
|
if (!o) return;
|
|
609
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
609
|
+
if (typeof o === "string") return _array_like_to_array$x(o, minLen);
|
|
610
610
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
611
611
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
612
612
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
613
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
613
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$x(o, minLen);
|
|
614
614
|
}
|
|
615
615
|
function schedulePredecessors(task, byId) {
|
|
616
616
|
var ids = new Set(task.predecessorIds);
|
|
@@ -1752,7 +1752,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
1752
1752
|
resourceType: "conversation_snapshot"
|
|
1753
1753
|
};
|
|
1754
1754
|
|
|
1755
|
-
function _define_property$
|
|
1755
|
+
function _define_property$r(obj, key, value) {
|
|
1756
1756
|
if (key in obj) {
|
|
1757
1757
|
Object.defineProperty(obj, key, {
|
|
1758
1758
|
value: value,
|
|
@@ -1765,7 +1765,7 @@ function _define_property$q(obj, key, value) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
return obj;
|
|
1767
1767
|
}
|
|
1768
|
-
function _object_spread$
|
|
1768
|
+
function _object_spread$r(target) {
|
|
1769
1769
|
for(var i = 1; i < arguments.length; i++){
|
|
1770
1770
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1771
1771
|
var ownKeys = Object.keys(source);
|
|
@@ -1775,7 +1775,7 @@ function _object_spread$q(target) {
|
|
|
1775
1775
|
}));
|
|
1776
1776
|
}
|
|
1777
1777
|
ownKeys.forEach(function(key) {
|
|
1778
|
-
_define_property$
|
|
1778
|
+
_define_property$r(target, key, source[key]);
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
return target;
|
|
@@ -1821,7 +1821,7 @@ function parseSelectionSet(value) {
|
|
|
1821
1821
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1822
1822
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1823
1823
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1824
|
-
return _object_spread$
|
|
1824
|
+
return _object_spread$r(_object_spread_props$k(_object_spread$r({}, value), {
|
|
1825
1825
|
skills: skills === undefined ? {
|
|
1826
1826
|
ids: []
|
|
1827
1827
|
} : skills,
|
|
@@ -1840,7 +1840,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1840
1840
|
var selection = parseSelectionSet(value);
|
|
1841
1841
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1842
1842
|
if (!selection || recommended === null) return null;
|
|
1843
|
-
return _object_spread$
|
|
1843
|
+
return _object_spread$r(_object_spread_props$k(_object_spread$r({}, selection), {
|
|
1844
1844
|
mode: "allowlist"
|
|
1845
1845
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1846
1846
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1892,7 +1892,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
|
-
return _object_spread_props$k(_object_spread$
|
|
1895
|
+
return _object_spread_props$k(_object_spread$r({}, value), {
|
|
1896
1896
|
type: "expert_scoped_capabilities",
|
|
1897
1897
|
version: 1,
|
|
1898
1898
|
defaults: defaults,
|
|
@@ -2024,7 +2024,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
2024
2024
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
2025
2025
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
2026
2026
|
|
|
2027
|
-
function _define_property$
|
|
2027
|
+
function _define_property$q(obj, key, value) {
|
|
2028
2028
|
if (key in obj) {
|
|
2029
2029
|
Object.defineProperty(obj, key, {
|
|
2030
2030
|
value: value,
|
|
@@ -2044,7 +2044,7 @@ function _instanceof$1(left, right) {
|
|
|
2044
2044
|
return left instanceof right;
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
|
-
function _object_spread$
|
|
2047
|
+
function _object_spread$q(target) {
|
|
2048
2048
|
for(var i = 1; i < arguments.length; i++){
|
|
2049
2049
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2050
2050
|
var ownKeys = Object.keys(source);
|
|
@@ -2054,7 +2054,7 @@ function _object_spread$p(target) {
|
|
|
2054
2054
|
}));
|
|
2055
2055
|
}
|
|
2056
2056
|
ownKeys.forEach(function(key) {
|
|
2057
|
-
_define_property$
|
|
2057
|
+
_define_property$q(target, key, source[key]);
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
2060
|
return target;
|
|
@@ -2065,12 +2065,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2065
2065
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2066
2066
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2067
2067
|
function createConversationTitleSummaryEvent(event) {
|
|
2068
|
-
return _object_spread$
|
|
2068
|
+
return _object_spread$q({
|
|
2069
2069
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2070
2070
|
}, event);
|
|
2071
2071
|
}
|
|
2072
2072
|
function createFollowUpConsumedEvent(event) {
|
|
2073
|
-
return _object_spread$
|
|
2073
|
+
return _object_spread$q({
|
|
2074
2074
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2075
2075
|
}, event);
|
|
2076
2076
|
}
|
|
@@ -2105,18 +2105,18 @@ function toIsoString(value) {
|
|
|
2105
2105
|
return new Date().toISOString();
|
|
2106
2106
|
}
|
|
2107
2107
|
|
|
2108
|
-
function _array_like_to_array$
|
|
2108
|
+
function _array_like_to_array$w(arr, len) {
|
|
2109
2109
|
if (len == null || len > arr.length) len = arr.length;
|
|
2110
2110
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2111
2111
|
return arr2;
|
|
2112
2112
|
}
|
|
2113
|
-
function _array_with_holes$
|
|
2113
|
+
function _array_with_holes$j(arr) {
|
|
2114
2114
|
if (Array.isArray(arr)) return arr;
|
|
2115
2115
|
}
|
|
2116
2116
|
function _array_without_holes$j(arr) {
|
|
2117
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2117
|
+
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2118
2118
|
}
|
|
2119
|
-
function _define_property$
|
|
2119
|
+
function _define_property$p(obj, key, value) {
|
|
2120
2120
|
if (key in obj) {
|
|
2121
2121
|
Object.defineProperty(obj, key, {
|
|
2122
2122
|
value: value,
|
|
@@ -2132,7 +2132,7 @@ function _define_property$o(obj, key, value) {
|
|
|
2132
2132
|
function _iterable_to_array$l(iter) {
|
|
2133
2133
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2134
2134
|
}
|
|
2135
|
-
function _iterable_to_array_limit$
|
|
2135
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
2136
2136
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2137
2137
|
if (_i == null) return;
|
|
2138
2138
|
var _arr = [];
|
|
@@ -2156,13 +2156,13 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
return _arr;
|
|
2158
2158
|
}
|
|
2159
|
-
function _non_iterable_rest$
|
|
2159
|
+
function _non_iterable_rest$j() {
|
|
2160
2160
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2161
2161
|
}
|
|
2162
2162
|
function _non_iterable_spread$j() {
|
|
2163
2163
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2164
2164
|
}
|
|
2165
|
-
function _object_spread$
|
|
2165
|
+
function _object_spread$p(target) {
|
|
2166
2166
|
for(var i = 1; i < arguments.length; i++){
|
|
2167
2167
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2168
2168
|
var ownKeys = Object.keys(source);
|
|
@@ -2172,7 +2172,7 @@ function _object_spread$o(target) {
|
|
|
2172
2172
|
}));
|
|
2173
2173
|
}
|
|
2174
2174
|
ownKeys.forEach(function(key) {
|
|
2175
|
-
_define_property$
|
|
2175
|
+
_define_property$p(target, key, source[key]);
|
|
2176
2176
|
});
|
|
2177
2177
|
}
|
|
2178
2178
|
return target;
|
|
@@ -2196,19 +2196,19 @@ function _object_spread_props$j(target, source) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return target;
|
|
2198
2198
|
}
|
|
2199
|
-
function _sliced_to_array$
|
|
2200
|
-
return _array_with_holes$
|
|
2199
|
+
function _sliced_to_array$h(arr, i) {
|
|
2200
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$w(arr, i) || _non_iterable_rest$j();
|
|
2201
2201
|
}
|
|
2202
2202
|
function _to_consumable_array$j(arr) {
|
|
2203
|
-
return _array_without_holes$j(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$
|
|
2203
|
+
return _array_without_holes$j(arr) || _iterable_to_array$l(arr) || _unsupported_iterable_to_array$w(arr) || _non_iterable_spread$j();
|
|
2204
2204
|
}
|
|
2205
|
-
function _unsupported_iterable_to_array$
|
|
2205
|
+
function _unsupported_iterable_to_array$w(o, minLen) {
|
|
2206
2206
|
if (!o) return;
|
|
2207
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2207
|
+
if (typeof o === "string") return _array_like_to_array$w(o, minLen);
|
|
2208
2208
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2209
2209
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2210
2210
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2211
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2211
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$w(o, minLen);
|
|
2212
2212
|
}
|
|
2213
2213
|
exports.AssistantCode = void 0;
|
|
2214
2214
|
(function(AssistantCode) {
|
|
@@ -2265,7 +2265,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2265
2265
|
}
|
|
2266
2266
|
var _value_toolsets;
|
|
2267
2267
|
var toolsets = Object.entries((_value_toolsets = value.toolsets) !== null && _value_toolsets !== void 0 ? _value_toolsets : {}).reduce(function(acc, param) {
|
|
2268
|
-
var _param = _sliced_to_array$
|
|
2268
|
+
var _param = _sliced_to_array$h(param, 2), key = _param[0], item = _param[1];
|
|
2269
2269
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
2270
2270
|
var toolsetName = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.toolsetName);
|
|
2271
2271
|
if (!nodeKey || !toolsetName) {
|
|
@@ -2280,7 +2280,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2280
2280
|
}, {});
|
|
2281
2281
|
var _value_middlewares;
|
|
2282
2282
|
var middlewares = Object.entries((_value_middlewares = value.middlewares) !== null && _value_middlewares !== void 0 ? _value_middlewares : {}).reduce(function(acc, param) {
|
|
2283
|
-
var _param = _sliced_to_array$
|
|
2283
|
+
var _param = _sliced_to_array$h(param, 2), key = _param[0], item = _param[1];
|
|
2284
2284
|
var nodeKey = normalizeAssistantBindingPreferenceKey(key);
|
|
2285
2285
|
var provider = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.provider);
|
|
2286
2286
|
if (!nodeKey || !provider) {
|
|
@@ -2294,7 +2294,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2294
2294
|
}, {});
|
|
2295
2295
|
var _value_skills;
|
|
2296
2296
|
var skills = Object.entries((_value_skills = value.skills) !== null && _value_skills !== void 0 ? _value_skills : {}).reduce(function(acc, param) {
|
|
2297
|
-
var _param = _sliced_to_array$
|
|
2297
|
+
var _param = _sliced_to_array$h(param, 2), key = _param[0], item = _param[1];
|
|
2298
2298
|
var workspaceKey = normalizeAssistantBindingPreferenceKey(key);
|
|
2299
2299
|
var workspaceId = normalizeAssistantBindingPreferenceKey(item === null || item === void 0 ? void 0 : item.workspaceId) || workspaceKey;
|
|
2300
2300
|
if (!workspaceKey || !workspaceId) {
|
|
@@ -2309,7 +2309,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2309
2309
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2310
2310
|
return null;
|
|
2311
2311
|
}
|
|
2312
|
-
return _object_spread$
|
|
2312
|
+
return _object_spread$p({
|
|
2313
2313
|
version: 1
|
|
2314
2314
|
}, Object.keys(toolsets).length ? {
|
|
2315
2315
|
toolsets: toolsets
|
|
@@ -2387,8 +2387,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2387
2387
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2388
2388
|
normalizedToolName
|
|
2389
2389
|
]));
|
|
2390
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2391
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2390
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$p({}, normalizedPreferences.toolsets) : undefined;
|
|
2391
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$p({}, normalizedPreferences.middlewares) : undefined;
|
|
2392
2392
|
if (sourceType === "toolset") {
|
|
2393
2393
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2394
2394
|
if (!toolsetName) {
|
|
@@ -2404,14 +2404,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2404
2404
|
} else {
|
|
2405
2405
|
delete nextToolsets[normalizedNodeKey];
|
|
2406
2406
|
}
|
|
2407
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2407
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$p({
|
|
2408
2408
|
version: 1
|
|
2409
2409
|
}, Object.keys(nextToolsets).length ? {
|
|
2410
2410
|
toolsets: nextToolsets
|
|
2411
2411
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2412
2412
|
middlewares: middlewares
|
|
2413
2413
|
} : {}, normalizedPreferences.skills ? {
|
|
2414
|
-
skills: _object_spread$
|
|
2414
|
+
skills: _object_spread$p({}, normalizedPreferences.skills)
|
|
2415
2415
|
} : {}));
|
|
2416
2416
|
}
|
|
2417
2417
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2427,14 +2427,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2427
2427
|
} else {
|
|
2428
2428
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2429
2429
|
}
|
|
2430
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2430
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$p({
|
|
2431
2431
|
version: 1
|
|
2432
2432
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2433
2433
|
toolsets: toolsets
|
|
2434
2434
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2435
2435
|
middlewares: nextMiddlewares
|
|
2436
2436
|
} : {}, normalizedPreferences.skills ? {
|
|
2437
|
-
skills: _object_spread$
|
|
2437
|
+
skills: _object_spread$p({}, normalizedPreferences.skills)
|
|
2438
2438
|
} : {}));
|
|
2439
2439
|
}
|
|
2440
2440
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2452,7 +2452,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2452
2452
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2453
2453
|
normalizedSkillId
|
|
2454
2454
|
]));
|
|
2455
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2455
|
+
var skills = normalizedPreferences.skills ? _object_spread$p({}, normalizedPreferences.skills) : {};
|
|
2456
2456
|
if (nextDisabledSkillIds.length) {
|
|
2457
2457
|
skills[normalizedWorkspaceId] = {
|
|
2458
2458
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2461,12 +2461,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2461
2461
|
} else {
|
|
2462
2462
|
delete skills[normalizedWorkspaceId];
|
|
2463
2463
|
}
|
|
2464
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2464
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$p({
|
|
2465
2465
|
version: 1
|
|
2466
2466
|
}, normalizedPreferences.toolsets ? {
|
|
2467
|
-
toolsets: _object_spread$
|
|
2467
|
+
toolsets: _object_spread$p({}, normalizedPreferences.toolsets)
|
|
2468
2468
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2469
|
-
middlewares: _object_spread$
|
|
2469
|
+
middlewares: _object_spread$p({}, normalizedPreferences.middlewares)
|
|
2470
2470
|
} : {}, Object.keys(skills).length ? {
|
|
2471
2471
|
skills: skills
|
|
2472
2472
|
} : {}));
|
|
@@ -2484,14 +2484,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2484
2484
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2485
2485
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2486
2486
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2487
|
-
return _object_spread_props$j(_object_spread$
|
|
2487
|
+
return _object_spread_props$j(_object_spread$p({
|
|
2488
2488
|
version: 1
|
|
2489
2489
|
}, normalizedPreferences.toolsets ? {
|
|
2490
|
-
toolsets: _object_spread$
|
|
2490
|
+
toolsets: _object_spread$p({}, normalizedPreferences.toolsets)
|
|
2491
2491
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2492
|
-
middlewares: _object_spread$
|
|
2492
|
+
middlewares: _object_spread$p({}, normalizedPreferences.middlewares)
|
|
2493
2493
|
} : {}), {
|
|
2494
|
-
skills: _object_spread_props$j(_object_spread$
|
|
2494
|
+
skills: _object_spread_props$j(_object_spread$p({}, currentSkills), _define_property$p({}, normalizedWorkspaceId, {
|
|
2495
2495
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2496
2496
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2497
2497
|
}))
|
|
@@ -2511,13 +2511,13 @@ function isSystemManagedAssistant(code) {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
|
|
2513
2513
|
// Shared by Cloud and Desktop: activity changes must not move assistant entries.
|
|
2514
|
-
function _array_like_to_array$
|
|
2514
|
+
function _array_like_to_array$v(arr, len) {
|
|
2515
2515
|
if (len == null || len > arr.length) len = arr.length;
|
|
2516
2516
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2517
2517
|
return arr2;
|
|
2518
2518
|
}
|
|
2519
2519
|
function _array_without_holes$i(arr) {
|
|
2520
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2520
|
+
if (Array.isArray(arr)) return _array_like_to_array$v(arr);
|
|
2521
2521
|
}
|
|
2522
2522
|
function _instanceof(left, right) {
|
|
2523
2523
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -2533,15 +2533,15 @@ function _non_iterable_spread$i() {
|
|
|
2533
2533
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2534
2534
|
}
|
|
2535
2535
|
function _to_consumable_array$i(arr) {
|
|
2536
|
-
return _array_without_holes$i(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$
|
|
2536
|
+
return _array_without_holes$i(arr) || _iterable_to_array$k(arr) || _unsupported_iterable_to_array$v(arr) || _non_iterable_spread$i();
|
|
2537
2537
|
}
|
|
2538
|
-
function _unsupported_iterable_to_array$
|
|
2538
|
+
function _unsupported_iterable_to_array$v(o, minLen) {
|
|
2539
2539
|
if (!o) return;
|
|
2540
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2540
|
+
if (typeof o === "string") return _array_like_to_array$v(o, minLen);
|
|
2541
2541
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2542
2542
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2543
2543
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2544
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2544
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$v(o, minLen);
|
|
2545
2545
|
}
|
|
2546
2546
|
function orderAssistantXperts(items) {
|
|
2547
2547
|
var orderedIds = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
@@ -2584,15 +2584,15 @@ function createdAtTimestamp(item) {
|
|
|
2584
2584
|
|
|
2585
2585
|
var ASSISTANT_USER_PREFERENCES_VERSION = 1;
|
|
2586
2586
|
|
|
2587
|
-
function _array_like_to_array$
|
|
2587
|
+
function _array_like_to_array$u(arr, len) {
|
|
2588
2588
|
if (len == null || len > arr.length) len = arr.length;
|
|
2589
2589
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2590
2590
|
return arr2;
|
|
2591
2591
|
}
|
|
2592
|
-
function _array_with_holes$
|
|
2592
|
+
function _array_with_holes$i(arr) {
|
|
2593
2593
|
if (Array.isArray(arr)) return arr;
|
|
2594
2594
|
}
|
|
2595
|
-
function _iterable_to_array_limit$
|
|
2595
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
2596
2596
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2597
2597
|
if (_i == null) return;
|
|
2598
2598
|
var _arr = [];
|
|
@@ -2616,19 +2616,19 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
2616
2616
|
}
|
|
2617
2617
|
return _arr;
|
|
2618
2618
|
}
|
|
2619
|
-
function _non_iterable_rest$
|
|
2619
|
+
function _non_iterable_rest$i() {
|
|
2620
2620
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2621
2621
|
}
|
|
2622
|
-
function _sliced_to_array$
|
|
2623
|
-
return _array_with_holes$
|
|
2622
|
+
function _sliced_to_array$g(arr, i) {
|
|
2623
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$u(arr, i) || _non_iterable_rest$i();
|
|
2624
2624
|
}
|
|
2625
|
-
function _unsupported_iterable_to_array$
|
|
2625
|
+
function _unsupported_iterable_to_array$u(o, minLen) {
|
|
2626
2626
|
if (!o) return;
|
|
2627
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2627
|
+
if (typeof o === "string") return _array_like_to_array$u(o, minLen);
|
|
2628
2628
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2629
2629
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2630
2630
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2631
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2631
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
|
|
2632
2632
|
}
|
|
2633
2633
|
exports.ProviderType = void 0;
|
|
2634
2634
|
(function(ProviderType) {
|
|
@@ -2762,7 +2762,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
|
|
|
2762
2762
|
var _config_preserveUnknown;
|
|
2763
2763
|
var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
|
|
2764
2764
|
var resolvedOptions = preserveUnknown ? Object.fromEntries(Object.entries(modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}).filter(function(param) {
|
|
2765
|
-
var _param = _sliced_to_array$
|
|
2765
|
+
var _param = _sliced_to_array$g(param, 2), value = _param[1];
|
|
2766
2766
|
return config.preserveUnset || value != null;
|
|
2767
2767
|
})) : {};
|
|
2768
2768
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -2815,15 +2815,15 @@ exports.PriceType = void 0;
|
|
|
2815
2815
|
PriceType["OUTPUT"] = "output";
|
|
2816
2816
|
})(exports.PriceType || (exports.PriceType = {}));
|
|
2817
2817
|
|
|
2818
|
-
function _array_like_to_array$
|
|
2818
|
+
function _array_like_to_array$t(arr, len) {
|
|
2819
2819
|
if (len == null || len > arr.length) len = arr.length;
|
|
2820
2820
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2821
2821
|
return arr2;
|
|
2822
2822
|
}
|
|
2823
2823
|
function _array_without_holes$h(arr) {
|
|
2824
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
2824
|
+
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
2825
2825
|
}
|
|
2826
|
-
function _define_property$
|
|
2826
|
+
function _define_property$o(obj, key, value) {
|
|
2827
2827
|
if (key in obj) {
|
|
2828
2828
|
Object.defineProperty(obj, key, {
|
|
2829
2829
|
value: value,
|
|
@@ -2842,7 +2842,7 @@ function _iterable_to_array$j(iter) {
|
|
|
2842
2842
|
function _non_iterable_spread$h() {
|
|
2843
2843
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2844
2844
|
}
|
|
2845
|
-
function _object_spread$
|
|
2845
|
+
function _object_spread$o(target) {
|
|
2846
2846
|
for(var i = 1; i < arguments.length; i++){
|
|
2847
2847
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2848
2848
|
var ownKeys = Object.keys(source);
|
|
@@ -2852,7 +2852,7 @@ function _object_spread$n(target) {
|
|
|
2852
2852
|
}));
|
|
2853
2853
|
}
|
|
2854
2854
|
ownKeys.forEach(function(key) {
|
|
2855
|
-
_define_property$
|
|
2855
|
+
_define_property$o(target, key, source[key]);
|
|
2856
2856
|
});
|
|
2857
2857
|
}
|
|
2858
2858
|
return target;
|
|
@@ -2877,15 +2877,15 @@ function _object_spread_props$i(target, source) {
|
|
|
2877
2877
|
return target;
|
|
2878
2878
|
}
|
|
2879
2879
|
function _to_consumable_array$h(arr) {
|
|
2880
|
-
return _array_without_holes$h(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$
|
|
2880
|
+
return _array_without_holes$h(arr) || _iterable_to_array$j(arr) || _unsupported_iterable_to_array$t(arr) || _non_iterable_spread$h();
|
|
2881
2881
|
}
|
|
2882
|
-
function _unsupported_iterable_to_array$
|
|
2882
|
+
function _unsupported_iterable_to_array$t(o, minLen) {
|
|
2883
2883
|
if (!o) return;
|
|
2884
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2884
|
+
if (typeof o === "string") return _array_like_to_array$t(o, minLen);
|
|
2885
2885
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2886
2886
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2887
2887
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2888
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2888
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$t(o, minLen);
|
|
2889
2889
|
}
|
|
2890
2890
|
var discoverableModelTypes = [
|
|
2891
2891
|
exports.AiModelTypeEnum.LLM,
|
|
@@ -2899,20 +2899,20 @@ var common$1 = {
|
|
|
2899
2899
|
maxConcurrency: positiveInteger.max(1000)
|
|
2900
2900
|
};
|
|
2901
2901
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2902
|
-
zod.z.object(_object_spread_props$i(_object_spread$
|
|
2902
|
+
zod.z.object(_object_spread_props$i(_object_spread$o({
|
|
2903
2903
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2904
2904
|
}, common$1), {
|
|
2905
2905
|
maxOutputTokens: positiveInteger,
|
|
2906
2906
|
defaultMaxTokens: positiveInteger,
|
|
2907
2907
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2908
2908
|
})).strict(),
|
|
2909
|
-
zod.z.object(_object_spread_props$i(_object_spread$
|
|
2909
|
+
zod.z.object(_object_spread_props$i(_object_spread$o({
|
|
2910
2910
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2911
2911
|
}, common$1), {
|
|
2912
2912
|
dimensions: positiveInteger.optional(),
|
|
2913
2913
|
batchSize: positiveInteger.max(2048)
|
|
2914
2914
|
})).strict(),
|
|
2915
|
-
zod.z.object(_object_spread$
|
|
2915
|
+
zod.z.object(_object_spread$o({
|
|
2916
2916
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2917
2917
|
}, common$1)).strict()
|
|
2918
2918
|
]).superRefine(function(value, ctx) {
|
|
@@ -2944,7 +2944,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
switch(modelType){
|
|
2946
2946
|
case exports.AiModelTypeEnum.LLM:
|
|
2947
|
-
return _object_spread_props$i(_object_spread$
|
|
2947
|
+
return _object_spread_props$i(_object_spread$o({
|
|
2948
2948
|
modelType: modelType
|
|
2949
2949
|
}, common), {
|
|
2950
2950
|
maxOutputTokens: 2048,
|
|
@@ -2952,13 +2952,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2952
2952
|
features: []
|
|
2953
2953
|
});
|
|
2954
2954
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2955
|
-
return _object_spread_props$i(_object_spread$
|
|
2955
|
+
return _object_spread_props$i(_object_spread$o({
|
|
2956
2956
|
modelType: modelType
|
|
2957
2957
|
}, common), {
|
|
2958
2958
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
2959
2959
|
});
|
|
2960
2960
|
case exports.AiModelTypeEnum.RERANK:
|
|
2961
|
-
return _object_spread$
|
|
2961
|
+
return _object_spread$o({
|
|
2962
2962
|
modelType: modelType
|
|
2963
2963
|
}, common);
|
|
2964
2964
|
}
|
|
@@ -3571,7 +3571,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3571
3571
|
return node.title || node.key;
|
|
3572
3572
|
}
|
|
3573
3573
|
|
|
3574
|
-
function _define_property$
|
|
3574
|
+
function _define_property$n(obj, key, value) {
|
|
3575
3575
|
if (key in obj) {
|
|
3576
3576
|
Object.defineProperty(obj, key, {
|
|
3577
3577
|
value: value,
|
|
@@ -3584,7 +3584,7 @@ function _define_property$m(obj, key, value) {
|
|
|
3584
3584
|
}
|
|
3585
3585
|
return obj;
|
|
3586
3586
|
}
|
|
3587
|
-
function _object_spread$
|
|
3587
|
+
function _object_spread$n(target) {
|
|
3588
3588
|
for(var i = 1; i < arguments.length; i++){
|
|
3589
3589
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3590
3590
|
var ownKeys = Object.keys(source);
|
|
@@ -3594,7 +3594,7 @@ function _object_spread$m(target) {
|
|
|
3594
3594
|
}));
|
|
3595
3595
|
}
|
|
3596
3596
|
ownKeys.forEach(function(key) {
|
|
3597
|
-
_define_property$
|
|
3597
|
+
_define_property$n(target, key, source[key]);
|
|
3598
3598
|
});
|
|
3599
3599
|
}
|
|
3600
3600
|
return target;
|
|
@@ -3685,7 +3685,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
3685
3685
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
|
|
3686
3686
|
"maxConcurrency"
|
|
3687
3687
|
]);
|
|
3688
|
-
return _object_spread_props$h(_object_spread$
|
|
3688
|
+
return _object_spread_props$h(_object_spread$n({}, config), {
|
|
3689
3689
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3690
3690
|
});
|
|
3691
3691
|
}
|
|
@@ -3771,15 +3771,15 @@ var VariableOperations = [
|
|
|
3771
3771
|
}
|
|
3772
3772
|
];
|
|
3773
3773
|
|
|
3774
|
-
function _array_like_to_array$
|
|
3774
|
+
function _array_like_to_array$s(arr, len) {
|
|
3775
3775
|
if (len == null || len > arr.length) len = arr.length;
|
|
3776
3776
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3777
3777
|
return arr2;
|
|
3778
3778
|
}
|
|
3779
|
-
function _array_with_holes$
|
|
3779
|
+
function _array_with_holes$h(arr) {
|
|
3780
3780
|
if (Array.isArray(arr)) return arr;
|
|
3781
3781
|
}
|
|
3782
|
-
function _define_property$
|
|
3782
|
+
function _define_property$m(obj, key, value) {
|
|
3783
3783
|
if (key in obj) {
|
|
3784
3784
|
Object.defineProperty(obj, key, {
|
|
3785
3785
|
value: value,
|
|
@@ -3792,7 +3792,7 @@ function _define_property$l(obj, key, value) {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
return obj;
|
|
3794
3794
|
}
|
|
3795
|
-
function _iterable_to_array_limit$
|
|
3795
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
3796
3796
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3797
3797
|
if (_i == null) return;
|
|
3798
3798
|
var _arr = [];
|
|
@@ -3816,10 +3816,10 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
return _arr;
|
|
3818
3818
|
}
|
|
3819
|
-
function _non_iterable_rest$
|
|
3819
|
+
function _non_iterable_rest$h() {
|
|
3820
3820
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3821
3821
|
}
|
|
3822
|
-
function _object_spread$
|
|
3822
|
+
function _object_spread$m(target) {
|
|
3823
3823
|
for(var i = 1; i < arguments.length; i++){
|
|
3824
3824
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3825
3825
|
var ownKeys = Object.keys(source);
|
|
@@ -3829,7 +3829,7 @@ function _object_spread$l(target) {
|
|
|
3829
3829
|
}));
|
|
3830
3830
|
}
|
|
3831
3831
|
ownKeys.forEach(function(key) {
|
|
3832
|
-
_define_property$
|
|
3832
|
+
_define_property$m(target, key, source[key]);
|
|
3833
3833
|
});
|
|
3834
3834
|
}
|
|
3835
3835
|
return target;
|
|
@@ -3853,16 +3853,16 @@ function _object_spread_props$g(target, source) {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
return target;
|
|
3855
3855
|
}
|
|
3856
|
-
function _sliced_to_array$
|
|
3857
|
-
return _array_with_holes$
|
|
3856
|
+
function _sliced_to_array$f(arr, i) {
|
|
3857
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$s(arr, i) || _non_iterable_rest$h();
|
|
3858
3858
|
}
|
|
3859
|
-
function _unsupported_iterable_to_array$
|
|
3859
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
3860
3860
|
if (!o) return;
|
|
3861
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3861
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
3862
3862
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3863
3863
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3864
3864
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3865
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3865
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
|
|
3866
3866
|
}
|
|
3867
3867
|
/**
|
|
3868
3868
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -3944,10 +3944,10 @@ function configurableStoreNamespace(configurable) {
|
|
|
3944
3944
|
* @param value
|
|
3945
3945
|
* @returns
|
|
3946
3946
|
*/ function setStateVariable(state, varName, value) {
|
|
3947
|
-
var _varName_split = _sliced_to_array$
|
|
3947
|
+
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3948
3948
|
if (variableName) {
|
|
3949
3949
|
var _state_agentChannelName;
|
|
3950
|
-
state[agentChannelName] = _object_spread_props$g(_object_spread$
|
|
3950
|
+
state[agentChannelName] = _object_spread_props$g(_object_spread$m({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$m({}, variableName, value));
|
|
3951
3951
|
} else {
|
|
3952
3952
|
state[agentChannelName] = value;
|
|
3953
3953
|
}
|
|
@@ -4038,7 +4038,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4038
4038
|
});
|
|
4039
4039
|
}
|
|
4040
4040
|
|
|
4041
|
-
function _define_property$
|
|
4041
|
+
function _define_property$l(obj, key, value) {
|
|
4042
4042
|
if (key in obj) {
|
|
4043
4043
|
Object.defineProperty(obj, key, {
|
|
4044
4044
|
value: value,
|
|
@@ -4051,7 +4051,7 @@ function _define_property$k(obj, key, value) {
|
|
|
4051
4051
|
}
|
|
4052
4052
|
return obj;
|
|
4053
4053
|
}
|
|
4054
|
-
function _object_spread$
|
|
4054
|
+
function _object_spread$l(target) {
|
|
4055
4055
|
for(var i = 1; i < arguments.length; i++){
|
|
4056
4056
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4057
4057
|
var ownKeys = Object.keys(source);
|
|
@@ -4061,7 +4061,7 @@ function _object_spread$k(target) {
|
|
|
4061
4061
|
}));
|
|
4062
4062
|
}
|
|
4063
4063
|
ownKeys.forEach(function(key) {
|
|
4064
|
-
_define_property$
|
|
4064
|
+
_define_property$l(target, key, source[key]);
|
|
4065
4065
|
});
|
|
4066
4066
|
}
|
|
4067
4067
|
return target;
|
|
@@ -4167,11 +4167,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4167
4167
|
return candidate === requestedMode;
|
|
4168
4168
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4169
4169
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4170
|
-
return _object_spread_props$f(_object_spread$
|
|
4170
|
+
return _object_spread_props$f(_object_spread$l({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4171
4171
|
mode: mode,
|
|
4172
|
-
fusion: _object_spread_props$f(_object_spread$
|
|
4172
|
+
fusion: _object_spread_props$f(_object_spread$l({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
4173
4173
|
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,
|
|
4174
|
-
weights: _object_spread_props$f(_object_spread$
|
|
4174
|
+
weights: _object_spread_props$f(_object_spread$l({}, 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 : {}), {
|
|
4175
4175
|
graph: 0
|
|
4176
4176
|
})
|
|
4177
4177
|
})
|
|
@@ -4219,13 +4219,13 @@ var _retrieval_recall_contentScope;
|
|
|
4219
4219
|
});
|
|
4220
4220
|
}
|
|
4221
4221
|
|
|
4222
|
-
function _array_like_to_array$
|
|
4222
|
+
function _array_like_to_array$r(arr, len) {
|
|
4223
4223
|
if (len == null || len > arr.length) len = arr.length;
|
|
4224
4224
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4225
4225
|
return arr2;
|
|
4226
4226
|
}
|
|
4227
4227
|
function _array_without_holes$g(arr) {
|
|
4228
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4228
|
+
if (Array.isArray(arr)) return _array_like_to_array$r(arr);
|
|
4229
4229
|
}
|
|
4230
4230
|
function _iterable_to_array$i(iter) {
|
|
4231
4231
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -4234,15 +4234,15 @@ function _non_iterable_spread$g() {
|
|
|
4234
4234
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4235
4235
|
}
|
|
4236
4236
|
function _to_consumable_array$g(arr) {
|
|
4237
|
-
return _array_without_holes$g(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$
|
|
4237
|
+
return _array_without_holes$g(arr) || _iterable_to_array$i(arr) || _unsupported_iterable_to_array$r(arr) || _non_iterable_spread$g();
|
|
4238
4238
|
}
|
|
4239
|
-
function _unsupported_iterable_to_array$
|
|
4239
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
4240
4240
|
if (!o) return;
|
|
4241
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4241
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
4242
4242
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4243
4243
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4244
4244
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4245
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4245
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
|
|
4246
4246
|
}
|
|
4247
4247
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
4248
4248
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
@@ -4332,15 +4332,15 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
4332
4332
|
})));
|
|
4333
4333
|
}
|
|
4334
4334
|
|
|
4335
|
-
function _array_like_to_array$
|
|
4335
|
+
function _array_like_to_array$q(arr, len) {
|
|
4336
4336
|
if (len == null || len > arr.length) len = arr.length;
|
|
4337
4337
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4338
4338
|
return arr2;
|
|
4339
4339
|
}
|
|
4340
4340
|
function _array_without_holes$f(arr) {
|
|
4341
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4341
|
+
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4342
4342
|
}
|
|
4343
|
-
function _define_property$
|
|
4343
|
+
function _define_property$k(obj, key, value) {
|
|
4344
4344
|
if (key in obj) {
|
|
4345
4345
|
Object.defineProperty(obj, key, {
|
|
4346
4346
|
value: value,
|
|
@@ -4359,7 +4359,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4359
4359
|
function _non_iterable_spread$f() {
|
|
4360
4360
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4361
4361
|
}
|
|
4362
|
-
function _object_spread$
|
|
4362
|
+
function _object_spread$k(target) {
|
|
4363
4363
|
for(var i = 1; i < arguments.length; i++){
|
|
4364
4364
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4365
4365
|
var ownKeys = Object.keys(source);
|
|
@@ -4369,30 +4369,30 @@ function _object_spread$j(target) {
|
|
|
4369
4369
|
}));
|
|
4370
4370
|
}
|
|
4371
4371
|
ownKeys.forEach(function(key) {
|
|
4372
|
-
_define_property$
|
|
4372
|
+
_define_property$k(target, key, source[key]);
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
4375
|
return target;
|
|
4376
4376
|
}
|
|
4377
4377
|
function _to_consumable_array$f(arr) {
|
|
4378
|
-
return _array_without_holes$f(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$
|
|
4378
|
+
return _array_without_holes$f(arr) || _iterable_to_array$h(arr) || _unsupported_iterable_to_array$q(arr) || _non_iterable_spread$f();
|
|
4379
4379
|
}
|
|
4380
|
-
function _unsupported_iterable_to_array$
|
|
4380
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
4381
4381
|
if (!o) return;
|
|
4382
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4382
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
4383
4383
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4384
4384
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4385
4385
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4386
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4386
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$q(o, minLen);
|
|
4387
4387
|
}
|
|
4388
4388
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4389
4389
|
if (!config) return {};
|
|
4390
|
-
return _object_spread$
|
|
4391
|
-
spreadsheet: _object_spread$
|
|
4390
|
+
return _object_spread$k({}, config.spreadsheet ? {
|
|
4391
|
+
spreadsheet: _object_spread$k({}, config.spreadsheet)
|
|
4392
4392
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4393
4393
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4394
4394
|
} : {}, config.questionGeneration ? {
|
|
4395
|
-
questionGeneration: _object_spread$
|
|
4395
|
+
questionGeneration: _object_spread$k({}, config.questionGeneration)
|
|
4396
4396
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4397
4397
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4398
4398
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4406,7 +4406,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
4406
4406
|
} : {}, config.textSplitterType ? {
|
|
4407
4407
|
textSplitterType: config.textSplitterType
|
|
4408
4408
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4409
|
-
textSplitter: _object_spread$
|
|
4409
|
+
textSplitter: _object_spread$k({}, config.chunkSize != null ? {
|
|
4410
4410
|
chunkSize: config.chunkSize
|
|
4411
4411
|
} : {}, config.chunkOverlap != null ? {
|
|
4412
4412
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4418,7 +4418,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
4418
4418
|
} : {}, config.imageUnderstandingType ? {
|
|
4419
4419
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4420
4420
|
} : {}, config.imageUnderstanding ? {
|
|
4421
|
-
imageUnderstanding: _object_spread$
|
|
4421
|
+
imageUnderstanding: _object_spread$k({}, config.imageUnderstanding)
|
|
4422
4422
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4423
4423
|
}
|
|
4424
4424
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4483,7 +4483,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4483
4483
|
return letterStartSUID("KnowledgeBase_");
|
|
4484
4484
|
}
|
|
4485
4485
|
|
|
4486
|
-
function _define_property$
|
|
4486
|
+
function _define_property$j(obj, key, value) {
|
|
4487
4487
|
if (key in obj) {
|
|
4488
4488
|
Object.defineProperty(obj, key, {
|
|
4489
4489
|
value: value,
|
|
@@ -4496,7 +4496,7 @@ function _define_property$i(obj, key, value) {
|
|
|
4496
4496
|
}
|
|
4497
4497
|
return obj;
|
|
4498
4498
|
}
|
|
4499
|
-
function _object_spread$
|
|
4499
|
+
function _object_spread$j(target) {
|
|
4500
4500
|
for(var i = 1; i < arguments.length; i++){
|
|
4501
4501
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4502
4502
|
var ownKeys = Object.keys(source);
|
|
@@ -4506,7 +4506,7 @@ function _object_spread$i(target) {
|
|
|
4506
4506
|
}));
|
|
4507
4507
|
}
|
|
4508
4508
|
ownKeys.forEach(function(key) {
|
|
4509
|
-
_define_property$
|
|
4509
|
+
_define_property$j(target, key, source[key]);
|
|
4510
4510
|
});
|
|
4511
4511
|
}
|
|
4512
4512
|
return target;
|
|
@@ -4526,7 +4526,7 @@ function _object_spread$i(target) {
|
|
|
4526
4526
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4527
4527
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4528
4528
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4529
|
-
var KDocumentSourceType = _object_spread$
|
|
4529
|
+
var KDocumentSourceType = _object_spread$j({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4530
4530
|
/**
|
|
4531
4531
|
* Document type category, determine how to process the document.
|
|
4532
4532
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5083,13 +5083,13 @@ function genXpertDBSqlKey() {
|
|
|
5083
5083
|
return letterStartSUID("DBSql_");
|
|
5084
5084
|
}
|
|
5085
5085
|
|
|
5086
|
-
/** Stable placement scopes declared by plugin application contributions. */ function _array_like_to_array$
|
|
5086
|
+
/** Stable placement scopes declared by plugin application contributions. */ function _array_like_to_array$p(arr, len) {
|
|
5087
5087
|
if (len == null || len > arr.length) len = arr.length;
|
|
5088
5088
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5089
5089
|
return arr2;
|
|
5090
5090
|
}
|
|
5091
5091
|
function _array_without_holes$e(arr) {
|
|
5092
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5092
|
+
if (Array.isArray(arr)) return _array_like_to_array$p(arr);
|
|
5093
5093
|
}
|
|
5094
5094
|
function _iterable_to_array$g(iter) {
|
|
5095
5095
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -5098,15 +5098,15 @@ function _non_iterable_spread$e() {
|
|
|
5098
5098
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5099
5099
|
}
|
|
5100
5100
|
function _to_consumable_array$e(arr) {
|
|
5101
|
-
return _array_without_holes$e(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$
|
|
5101
|
+
return _array_without_holes$e(arr) || _iterable_to_array$g(arr) || _unsupported_iterable_to_array$p(arr) || _non_iterable_spread$e();
|
|
5102
5102
|
}
|
|
5103
|
-
function _unsupported_iterable_to_array$
|
|
5103
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
5104
5104
|
if (!o) return;
|
|
5105
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5105
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
5106
5106
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5107
5107
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5108
5108
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5109
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5109
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$p(o, minLen);
|
|
5110
5110
|
}
|
|
5111
5111
|
var PLUGIN_APPLICATION_SCOPE = {
|
|
5112
5112
|
TENANT: "tenant",
|
|
@@ -5404,15 +5404,15 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
5404
5404
|
}
|
|
5405
5405
|
|
|
5406
5406
|
// Helpers
|
|
5407
|
-
function _array_like_to_array$
|
|
5407
|
+
function _array_like_to_array$o(arr, len) {
|
|
5408
5408
|
if (len == null || len > arr.length) len = arr.length;
|
|
5409
5409
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5410
5410
|
return arr2;
|
|
5411
5411
|
}
|
|
5412
5412
|
function _array_without_holes$d(arr) {
|
|
5413
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5413
|
+
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5414
5414
|
}
|
|
5415
|
-
function _define_property$
|
|
5415
|
+
function _define_property$i(obj, key, value) {
|
|
5416
5416
|
if (key in obj) {
|
|
5417
5417
|
Object.defineProperty(obj, key, {
|
|
5418
5418
|
value: value,
|
|
@@ -5431,7 +5431,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5431
5431
|
function _non_iterable_spread$d() {
|
|
5432
5432
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5433
5433
|
}
|
|
5434
|
-
function _object_spread$
|
|
5434
|
+
function _object_spread$i(target) {
|
|
5435
5435
|
for(var i = 1; i < arguments.length; i++){
|
|
5436
5436
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5437
5437
|
var ownKeys = Object.keys(source);
|
|
@@ -5441,7 +5441,7 @@ function _object_spread$h(target) {
|
|
|
5441
5441
|
}));
|
|
5442
5442
|
}
|
|
5443
5443
|
ownKeys.forEach(function(key) {
|
|
5444
|
-
_define_property$
|
|
5444
|
+
_define_property$i(target, key, source[key]);
|
|
5445
5445
|
});
|
|
5446
5446
|
}
|
|
5447
5447
|
return target;
|
|
@@ -5493,15 +5493,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
5493
5493
|
return target;
|
|
5494
5494
|
}
|
|
5495
5495
|
function _to_consumable_array$d(arr) {
|
|
5496
|
-
return _array_without_holes$d(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$
|
|
5496
|
+
return _array_without_holes$d(arr) || _iterable_to_array$f(arr) || _unsupported_iterable_to_array$o(arr) || _non_iterable_spread$d();
|
|
5497
5497
|
}
|
|
5498
|
-
function _unsupported_iterable_to_array$
|
|
5498
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
5499
5499
|
if (!o) return;
|
|
5500
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5500
|
+
if (typeof o === "string") return _array_like_to_array$o(o, minLen);
|
|
5501
5501
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5502
5502
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5503
5503
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5504
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
5504
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
|
|
5505
5505
|
}
|
|
5506
5506
|
function omitXpertRelations(xpert) {
|
|
5507
5507
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5540,7 +5540,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5540
5540
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5541
5541
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5542
5542
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5543
|
-
return _object_spread_props$e(_object_spread$
|
|
5543
|
+
return _object_spread_props$e(_object_spread$i({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
5544
5544
|
id: xpert.id,
|
|
5545
5545
|
tenantId: xpert.tenantId,
|
|
5546
5546
|
organizationId: xpert.organizationId,
|
|
@@ -5824,9 +5824,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5824
5824
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5825
5825
|
replacedNode = true;
|
|
5826
5826
|
var _node_entity;
|
|
5827
|
-
return _object_spread_props$e(_object_spread$
|
|
5827
|
+
return _object_spread_props$e(_object_spread$i({}, node), {
|
|
5828
5828
|
key: targetKey,
|
|
5829
|
-
entity: _object_spread_props$e(_object_spread$
|
|
5829
|
+
entity: _object_spread_props$e(_object_spread$i({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
5830
5830
|
key: targetKey
|
|
5831
5831
|
})
|
|
5832
5832
|
});
|
|
@@ -5842,17 +5842,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5842
5842
|
if (from === connection.from && to === connection.to) {
|
|
5843
5843
|
return connection;
|
|
5844
5844
|
}
|
|
5845
|
-
return _object_spread_props$e(_object_spread$
|
|
5845
|
+
return _object_spread_props$e(_object_spread$i({}, connection), {
|
|
5846
5846
|
from: from,
|
|
5847
5847
|
to: to,
|
|
5848
5848
|
key: "".concat(from, "/").concat(to)
|
|
5849
5849
|
});
|
|
5850
5850
|
});
|
|
5851
|
-
return _object_spread_props$e(_object_spread$
|
|
5852
|
-
team: draft.team ? _object_spread_props$e(_object_spread$
|
|
5853
|
-
agent: draft.team.agent ? _object_spread_props$e(_object_spread$
|
|
5851
|
+
return _object_spread_props$e(_object_spread$i({}, draft), {
|
|
5852
|
+
team: draft.team ? _object_spread_props$e(_object_spread$i({}, draft.team), {
|
|
5853
|
+
agent: draft.team.agent ? _object_spread_props$e(_object_spread$i({}, draft.team.agent, agent), {
|
|
5854
5854
|
key: targetKey
|
|
5855
|
-
}) : _object_spread_props$e(_object_spread$
|
|
5855
|
+
}) : _object_spread_props$e(_object_spread$i({}, agent), {
|
|
5856
5856
|
key: targetKey
|
|
5857
5857
|
})
|
|
5858
5858
|
}) : draft.team,
|
|
@@ -6007,7 +6007,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6007
6007
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
6008
6008
|
* @param documents - A flat array of DocumentInterface objects
|
|
6009
6009
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
6010
|
-
*/ function _define_property$
|
|
6010
|
+
*/ function _define_property$h(obj, key, value) {
|
|
6011
6011
|
if (key in obj) {
|
|
6012
6012
|
Object.defineProperty(obj, key, {
|
|
6013
6013
|
value: value,
|
|
@@ -6020,7 +6020,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6020
6020
|
}
|
|
6021
6021
|
return obj;
|
|
6022
6022
|
}
|
|
6023
|
-
function _object_spread$
|
|
6023
|
+
function _object_spread$h(target) {
|
|
6024
6024
|
for(var i = 1; i < arguments.length; i++){
|
|
6025
6025
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6026
6026
|
var ownKeys = Object.keys(source);
|
|
@@ -6030,7 +6030,7 @@ function _object_spread$g(target) {
|
|
|
6030
6030
|
}));
|
|
6031
6031
|
}
|
|
6032
6032
|
ownKeys.forEach(function(key) {
|
|
6033
|
-
_define_property$
|
|
6033
|
+
_define_property$h(target, key, source[key]);
|
|
6034
6034
|
});
|
|
6035
6035
|
}
|
|
6036
6036
|
return target;
|
|
@@ -6063,8 +6063,8 @@ function buildChunkTree(documents) {
|
|
|
6063
6063
|
documents.forEach(function(doc, index) {
|
|
6064
6064
|
var chunkId = getChunkNodeId(doc);
|
|
6065
6065
|
if (chunkId) {
|
|
6066
|
-
map.set(chunkId, _object_spread_props$d(_object_spread$
|
|
6067
|
-
metadata: _object_spread_props$d(_object_spread$
|
|
6066
|
+
map.set(chunkId, _object_spread_props$d(_object_spread$h({}, doc), {
|
|
6067
|
+
metadata: _object_spread_props$d(_object_spread$h({}, doc.metadata), {
|
|
6068
6068
|
chunkId: chunkId,
|
|
6069
6069
|
children: []
|
|
6070
6070
|
})
|
|
@@ -6238,30 +6238,30 @@ exports.KnowledgeGraphIndexJobStatus = void 0;
|
|
|
6238
6238
|
var KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE = 100;
|
|
6239
6239
|
|
|
6240
6240
|
// Skill types
|
|
6241
|
-
function _array_like_to_array$
|
|
6241
|
+
function _array_like_to_array$n(arr, len) {
|
|
6242
6242
|
if (len == null || len > arr.length) len = arr.length;
|
|
6243
6243
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6244
6244
|
return arr2;
|
|
6245
6245
|
}
|
|
6246
|
-
function _array_with_holes$
|
|
6246
|
+
function _array_with_holes$g(arr) {
|
|
6247
6247
|
if (Array.isArray(arr)) return arr;
|
|
6248
6248
|
}
|
|
6249
6249
|
function _iterable_to_array$e(iter) {
|
|
6250
6250
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6251
6251
|
}
|
|
6252
|
-
function _non_iterable_rest$
|
|
6252
|
+
function _non_iterable_rest$g() {
|
|
6253
6253
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6254
6254
|
}
|
|
6255
6255
|
function _to_array$1(arr) {
|
|
6256
|
-
return _array_with_holes$
|
|
6256
|
+
return _array_with_holes$g(arr) || _iterable_to_array$e(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_rest$g();
|
|
6257
6257
|
}
|
|
6258
|
-
function _unsupported_iterable_to_array$
|
|
6258
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
6259
6259
|
if (!o) return;
|
|
6260
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6260
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
6261
6261
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6262
6262
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6263
6263
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6264
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6264
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
|
|
6265
6265
|
}
|
|
6266
6266
|
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
6267
6267
|
function createRuntimeSkillCapabilityId(source) {
|
|
@@ -6295,15 +6295,15 @@ function genXpertSkillKey() {
|
|
|
6295
6295
|
return letterStartSUID("Skill_");
|
|
6296
6296
|
}
|
|
6297
6297
|
|
|
6298
|
-
function _array_like_to_array$
|
|
6298
|
+
function _array_like_to_array$m(arr, len) {
|
|
6299
6299
|
if (len == null || len > arr.length) len = arr.length;
|
|
6300
6300
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6301
6301
|
return arr2;
|
|
6302
6302
|
}
|
|
6303
|
-
function _array_with_holes$
|
|
6303
|
+
function _array_with_holes$f(arr) {
|
|
6304
6304
|
if (Array.isArray(arr)) return arr;
|
|
6305
6305
|
}
|
|
6306
|
-
function _iterable_to_array_limit$
|
|
6306
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
6307
6307
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6308
6308
|
if (_i == null) return;
|
|
6309
6309
|
var _arr = [];
|
|
@@ -6327,19 +6327,19 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
6327
6327
|
}
|
|
6328
6328
|
return _arr;
|
|
6329
6329
|
}
|
|
6330
|
-
function _non_iterable_rest$
|
|
6330
|
+
function _non_iterable_rest$f() {
|
|
6331
6331
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6332
6332
|
}
|
|
6333
|
-
function _sliced_to_array$
|
|
6334
|
-
return _array_with_holes$
|
|
6333
|
+
function _sliced_to_array$e(arr, i) {
|
|
6334
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$f();
|
|
6335
6335
|
}
|
|
6336
|
-
function _unsupported_iterable_to_array$
|
|
6336
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
6337
6337
|
if (!o) return;
|
|
6338
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6338
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
6339
6339
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6340
6340
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6341
6341
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6342
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6342
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
6343
6343
|
}
|
|
6344
6344
|
var IGNORED_BOOLEAN_FLAGS = new Set([
|
|
6345
6345
|
"-y",
|
|
@@ -6554,7 +6554,7 @@ function parseGithubSource(source) {
|
|
|
6554
6554
|
return parseGithubUrl(raw);
|
|
6555
6555
|
}
|
|
6556
6556
|
if (/^[^/\s]+\/[^/\s]+$/.test(raw)) {
|
|
6557
|
-
var _raw_split = _sliced_to_array$
|
|
6557
|
+
var _raw_split = _sliced_to_array$e(raw.split("/"), 2), owner = _raw_split[0], repoSegment = _raw_split[1];
|
|
6558
6558
|
var repo = repoSegment.replace(/\.git$/i, "");
|
|
6559
6559
|
if (!repo) {
|
|
6560
6560
|
throw new Error("GitHub repository source must include owner and repository name");
|
|
@@ -6614,7 +6614,7 @@ function isLocalPath(value) {
|
|
|
6614
6614
|
})).size === value.length;
|
|
6615
6615
|
}
|
|
6616
6616
|
|
|
6617
|
-
function _define_property$
|
|
6617
|
+
function _define_property$g(obj, key, value) {
|
|
6618
6618
|
if (key in obj) {
|
|
6619
6619
|
Object.defineProperty(obj, key, {
|
|
6620
6620
|
value: value,
|
|
@@ -6627,7 +6627,7 @@ function _define_property$f(obj, key, value) {
|
|
|
6627
6627
|
}
|
|
6628
6628
|
return obj;
|
|
6629
6629
|
}
|
|
6630
|
-
function _object_spread$
|
|
6630
|
+
function _object_spread$g(target) {
|
|
6631
6631
|
for(var i = 1; i < arguments.length; i++){
|
|
6632
6632
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6633
6633
|
var ownKeys = Object.keys(source);
|
|
@@ -6637,7 +6637,7 @@ function _object_spread$f(target) {
|
|
|
6637
6637
|
}));
|
|
6638
6638
|
}
|
|
6639
6639
|
ownKeys.forEach(function(key) {
|
|
6640
|
-
_define_property$
|
|
6640
|
+
_define_property$g(target, key, source[key]);
|
|
6641
6641
|
});
|
|
6642
6642
|
}
|
|
6643
6643
|
return target;
|
|
@@ -6695,8 +6695,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
6695
6695
|
if (provider === entity.provider) {
|
|
6696
6696
|
return node;
|
|
6697
6697
|
}
|
|
6698
|
-
return _object_spread_props$c(_object_spread$
|
|
6699
|
-
entity: _object_spread_props$c(_object_spread$
|
|
6698
|
+
return _object_spread_props$c(_object_spread$g({}, node), {
|
|
6699
|
+
entity: _object_spread_props$c(_object_spread$g({}, entity), {
|
|
6700
6700
|
provider: provider
|
|
6701
6701
|
})
|
|
6702
6702
|
});
|
|
@@ -6746,18 +6746,18 @@ function isContextCompressionComponentData(value) {
|
|
|
6746
6746
|
"job"
|
|
6747
6747
|
];
|
|
6748
6748
|
|
|
6749
|
-
function _array_like_to_array$
|
|
6749
|
+
function _array_like_to_array$l(arr, len) {
|
|
6750
6750
|
if (len == null || len > arr.length) len = arr.length;
|
|
6751
6751
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6752
6752
|
return arr2;
|
|
6753
6753
|
}
|
|
6754
|
-
function _array_with_holes$
|
|
6754
|
+
function _array_with_holes$e(arr) {
|
|
6755
6755
|
if (Array.isArray(arr)) return arr;
|
|
6756
6756
|
}
|
|
6757
6757
|
function _array_without_holes$c(arr) {
|
|
6758
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6758
|
+
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
6759
6759
|
}
|
|
6760
|
-
function _define_property$
|
|
6760
|
+
function _define_property$f(obj, key, value) {
|
|
6761
6761
|
if (key in obj) {
|
|
6762
6762
|
Object.defineProperty(obj, key, {
|
|
6763
6763
|
value: value,
|
|
@@ -6773,7 +6773,7 @@ function _define_property$e(obj, key, value) {
|
|
|
6773
6773
|
function _iterable_to_array$d(iter) {
|
|
6774
6774
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6775
6775
|
}
|
|
6776
|
-
function _iterable_to_array_limit$
|
|
6776
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
6777
6777
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6778
6778
|
if (_i == null) return;
|
|
6779
6779
|
var _arr = [];
|
|
@@ -6797,13 +6797,13 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
6797
6797
|
}
|
|
6798
6798
|
return _arr;
|
|
6799
6799
|
}
|
|
6800
|
-
function _non_iterable_rest$
|
|
6800
|
+
function _non_iterable_rest$e() {
|
|
6801
6801
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6802
6802
|
}
|
|
6803
6803
|
function _non_iterable_spread$c() {
|
|
6804
6804
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6805
6805
|
}
|
|
6806
|
-
function _object_spread$
|
|
6806
|
+
function _object_spread$f(target) {
|
|
6807
6807
|
for(var i = 1; i < arguments.length; i++){
|
|
6808
6808
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6809
6809
|
var ownKeys = Object.keys(source);
|
|
@@ -6813,7 +6813,7 @@ function _object_spread$e(target) {
|
|
|
6813
6813
|
}));
|
|
6814
6814
|
}
|
|
6815
6815
|
ownKeys.forEach(function(key) {
|
|
6816
|
-
_define_property$
|
|
6816
|
+
_define_property$f(target, key, source[key]);
|
|
6817
6817
|
});
|
|
6818
6818
|
}
|
|
6819
6819
|
return target;
|
|
@@ -6864,19 +6864,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
6864
6864
|
}
|
|
6865
6865
|
return target;
|
|
6866
6866
|
}
|
|
6867
|
-
function _sliced_to_array$
|
|
6868
|
-
return _array_with_holes$
|
|
6867
|
+
function _sliced_to_array$d(arr, i) {
|
|
6868
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$e();
|
|
6869
6869
|
}
|
|
6870
6870
|
function _to_consumable_array$c(arr) {
|
|
6871
|
-
return _array_without_holes$c(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$
|
|
6871
|
+
return _array_without_holes$c(arr) || _iterable_to_array$d(arr) || _unsupported_iterable_to_array$l(arr) || _non_iterable_spread$c();
|
|
6872
6872
|
}
|
|
6873
|
-
function _unsupported_iterable_to_array$
|
|
6873
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
6874
6874
|
if (!o) return;
|
|
6875
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6875
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
6876
6876
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6877
6877
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6878
6878
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6879
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6879
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
6880
6880
|
}
|
|
6881
6881
|
function isNil(value) {
|
|
6882
6882
|
return value === null || value === undefined;
|
|
@@ -6947,7 +6947,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
6947
6947
|
if (typeof content !== "string") {
|
|
6948
6948
|
return content;
|
|
6949
6949
|
}
|
|
6950
|
-
return _object_spread$
|
|
6950
|
+
return _object_spread$f({
|
|
6951
6951
|
type: "text",
|
|
6952
6952
|
text: content
|
|
6953
6953
|
}, context.streamId ? {
|
|
@@ -7012,7 +7012,7 @@ function filterText(content) {
|
|
|
7012
7012
|
return "";
|
|
7013
7013
|
}
|
|
7014
7014
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
7015
|
-
return _object_spread$
|
|
7015
|
+
return _object_spread$f(_object_spread_props$b(_object_spread$f({}, previous), {
|
|
7016
7016
|
text: "".concat(previous.text).concat(incoming.text)
|
|
7017
7017
|
}), !previous.id && incoming.id ? {
|
|
7018
7018
|
id: incoming.id
|
|
@@ -7024,7 +7024,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
7024
7024
|
}
|
|
7025
7025
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
7026
7026
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
7027
|
-
return _object_spread_props$b(_object_spread$
|
|
7027
|
+
return _object_spread_props$b(_object_spread$f({}, incoming), {
|
|
7028
7028
|
text: incoming.text.slice(1)
|
|
7029
7029
|
});
|
|
7030
7030
|
}
|
|
@@ -7034,21 +7034,21 @@ function mergeComponentData(previous, incoming) {
|
|
|
7034
7034
|
var _previous_data, _incoming_data;
|
|
7035
7035
|
var _incoming_data1;
|
|
7036
7036
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
7037
|
-
var _param = _sliced_to_array$
|
|
7037
|
+
var _param = _sliced_to_array$d(param, 2), key = _param[0], value = _param[1];
|
|
7038
7038
|
if (!isNil(value)) {
|
|
7039
7039
|
acc[key] = value;
|
|
7040
7040
|
}
|
|
7041
7041
|
return acc;
|
|
7042
7042
|
}, {});
|
|
7043
7043
|
var _previous_data1;
|
|
7044
|
-
return _object_spread_props$b(_object_spread$
|
|
7045
|
-
data: _object_spread_props$b(_object_spread$
|
|
7044
|
+
return _object_spread_props$b(_object_spread$f({}, previous, incoming), {
|
|
7045
|
+
data: _object_spread_props$b(_object_spread$f({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
7046
7046
|
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)
|
|
7047
7047
|
})
|
|
7048
7048
|
});
|
|
7049
7049
|
}
|
|
7050
7050
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
7051
|
-
return _object_spread$
|
|
7051
|
+
return _object_spread$f({
|
|
7052
7052
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
7053
7053
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
7054
7054
|
streamId: String(content.id)
|
|
@@ -7056,10 +7056,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
7056
7056
|
}
|
|
7057
7057
|
function resolveMessageAppendContext(options) {
|
|
7058
7058
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
7059
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$b(_object_spread$
|
|
7059
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$b(_object_spread$f({}, inferredContext), {
|
|
7060
7060
|
streamId: options.fallbackStreamId
|
|
7061
7061
|
}) : inferredContext;
|
|
7062
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$b(_object_spread$
|
|
7062
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$b(_object_spread$f({}, appendContext), {
|
|
7063
7063
|
joinHint: "none"
|
|
7064
7064
|
}) : appendContext;
|
|
7065
7065
|
return {
|
|
@@ -7080,7 +7080,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7080
7080
|
var previous = initial;
|
|
7081
7081
|
return {
|
|
7082
7082
|
resolve: function resolve(options) {
|
|
7083
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$
|
|
7083
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$f({}, options), {
|
|
7084
7084
|
previous: previous
|
|
7085
7085
|
}));
|
|
7086
7086
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -7118,10 +7118,10 @@ function resolveMessageAppendContext(options) {
|
|
|
7118
7118
|
var _ref = context !== null && context !== void 0 ? context : {}, _ref_previous = _ref.previous, previous = _ref_previous === void 0 ? null : _ref_previous, contextWithoutPrevious = _object_without_properties(_ref, [
|
|
7119
7119
|
"previous"
|
|
7120
7120
|
]);
|
|
7121
|
-
var appendContext = _object_spread$
|
|
7121
|
+
var appendContext = _object_spread$f({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
7122
7122
|
var _appendContext_joinHint;
|
|
7123
7123
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
7124
|
-
var messageContext = joinHint ? _object_spread_props$b(_object_spread$
|
|
7124
|
+
var messageContext = joinHint ? _object_spread_props$b(_object_spread$f({}, appendContext), {
|
|
7125
7125
|
joinHint: joinHint
|
|
7126
7126
|
}) : appendContext;
|
|
7127
7127
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -7130,7 +7130,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7130
7130
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
7131
7131
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
7132
7132
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
7133
|
-
var mergedReasoning = _object_spread_props$b(_object_spread$
|
|
7133
|
+
var mergedReasoning = _object_spread_props$b(_object_spread$f({}, lastReasoning), {
|
|
7134
7134
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
7135
7135
|
});
|
|
7136
7136
|
aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -7151,7 +7151,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7151
7151
|
return isTextContent(item) && item.id === content.id;
|
|
7152
7152
|
});
|
|
7153
7153
|
if (index > -1) {
|
|
7154
|
-
var mergedContent = _object_spread$
|
|
7154
|
+
var mergedContent = _object_spread$f(_object_spread_props$b(_object_spread$f({}, chunks[index]), {
|
|
7155
7155
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
7156
7156
|
}), !chunks[index].id && content.id ? {
|
|
7157
7157
|
id: content.id
|
|
@@ -7174,7 +7174,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7174
7174
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
7175
7175
|
if (existingIndex > -1) {
|
|
7176
7176
|
var existing = chunks[existingIndex];
|
|
7177
|
-
var merged = _object_spread_props$b(_object_spread$
|
|
7177
|
+
var merged = _object_spread_props$b(_object_spread$f({}, existing), {
|
|
7178
7178
|
text: "".concat(existing.text).concat(content.text)
|
|
7179
7179
|
});
|
|
7180
7180
|
var nextChunks = _to_consumable_array$c(chunks);
|
|
@@ -7183,7 +7183,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7183
7183
|
return;
|
|
7184
7184
|
}
|
|
7185
7185
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
7186
|
-
var mergedLastContent = _object_spread_props$b(_object_spread$
|
|
7186
|
+
var mergedLastContent = _object_spread_props$b(_object_spread$f({}, lastContent), {
|
|
7187
7187
|
text: "".concat(lastContent.text).concat(content.text)
|
|
7188
7188
|
});
|
|
7189
7189
|
aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -7192,7 +7192,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7192
7192
|
return;
|
|
7193
7193
|
}
|
|
7194
7194
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
7195
|
-
var appended = _object_spread_props$b(_object_spread$
|
|
7195
|
+
var appended = _object_spread_props$b(_object_spread$f({}, content), {
|
|
7196
7196
|
text: separator + content.text
|
|
7197
7197
|
});
|
|
7198
7198
|
aiMessage.content = _to_consumable_array$c(chunks).concat([
|
|
@@ -7216,7 +7216,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7216
7216
|
aiMessage.content = nextChunks1;
|
|
7217
7217
|
}
|
|
7218
7218
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
7219
|
-
var resolvedContext = _object_spread$
|
|
7219
|
+
var resolvedContext = _object_spread$f({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
7220
7220
|
var nextText = filterText(incoming);
|
|
7221
7221
|
if (!nextText) {
|
|
7222
7222
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -7261,7 +7261,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7261
7261
|
return;
|
|
7262
7262
|
}
|
|
7263
7263
|
textIndexById.set(item.id, merged.length);
|
|
7264
|
-
merged.push(_object_spread$
|
|
7264
|
+
merged.push(_object_spread$f({}, item));
|
|
7265
7265
|
return;
|
|
7266
7266
|
}
|
|
7267
7267
|
var lastItem = merged[merged.length - 1];
|
|
@@ -7269,7 +7269,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7269
7269
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
7270
7270
|
return;
|
|
7271
7271
|
}
|
|
7272
|
-
merged.push(_object_spread$
|
|
7272
|
+
merged.push(_object_spread$f({}, item));
|
|
7273
7273
|
});
|
|
7274
7274
|
return merged.length ? merged : null;
|
|
7275
7275
|
}
|
|
@@ -7284,7 +7284,7 @@ function stringifyMessageContent(content) {
|
|
|
7284
7284
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
7285
7285
|
var itemContext = inferMessageAppendContext(item);
|
|
7286
7286
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7287
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
7287
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$f({}, itemContext, joinHint ? {
|
|
7288
7288
|
joinHint: joinHint
|
|
7289
7289
|
} : {}));
|
|
7290
7290
|
previousContext = itemContext;
|
|
@@ -7307,7 +7307,7 @@ function filterMessageText(content) {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
var itemContext = inferMessageAppendContext(item);
|
|
7309
7309
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7310
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
7310
|
+
result = appendMessagePlainText(result, nextText, _object_spread$f({}, itemContext, joinHint ? {
|
|
7311
7311
|
joinHint: joinHint
|
|
7312
7312
|
} : {}));
|
|
7313
7313
|
previousContext = itemContext;
|
|
@@ -8003,7 +8003,7 @@ var projectPipelineEdgeSchema = v3.z.object({
|
|
|
8003
8003
|
outcome: projectPipelineKeySchema.optional()
|
|
8004
8004
|
}).strict();
|
|
8005
8005
|
|
|
8006
|
-
function _define_property$
|
|
8006
|
+
function _define_property$e(obj, key, value) {
|
|
8007
8007
|
if (key in obj) {
|
|
8008
8008
|
Object.defineProperty(obj, key, {
|
|
8009
8009
|
value: value,
|
|
@@ -8016,7 +8016,7 @@ function _define_property$d(obj, key, value) {
|
|
|
8016
8016
|
}
|
|
8017
8017
|
return obj;
|
|
8018
8018
|
}
|
|
8019
|
-
function _object_spread$
|
|
8019
|
+
function _object_spread$e(target) {
|
|
8020
8020
|
for(var i = 1; i < arguments.length; i++){
|
|
8021
8021
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8022
8022
|
var ownKeys = Object.keys(source);
|
|
@@ -8026,7 +8026,7 @@ function _object_spread$d(target) {
|
|
|
8026
8026
|
}));
|
|
8027
8027
|
}
|
|
8028
8028
|
ownKeys.forEach(function(key) {
|
|
8029
|
-
_define_property$
|
|
8029
|
+
_define_property$e(target, key, source[key]);
|
|
8030
8030
|
});
|
|
8031
8031
|
}
|
|
8032
8032
|
return target;
|
|
@@ -8059,7 +8059,7 @@ var base$1 = {
|
|
|
8059
8059
|
};
|
|
8060
8060
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
8061
8061
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
8062
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8062
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8063
8063
|
kind: v3.z.literal("work"),
|
|
8064
8064
|
laneKey: projectPipelineKeySchema,
|
|
8065
8065
|
operationRef: projectPipelineRefSchema,
|
|
@@ -8068,23 +8068,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8068
8068
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
8069
8069
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
8070
8070
|
})).strict(),
|
|
8071
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8071
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8072
8072
|
kind: v3.z.literal("fork")
|
|
8073
8073
|
})).strict(),
|
|
8074
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8074
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8075
8075
|
kind: v3.z.literal("join"),
|
|
8076
8076
|
join: v3.z.object({
|
|
8077
8077
|
mode: v3.z.literal("all_selected"),
|
|
8078
8078
|
accept: v3.z.literal("completed")
|
|
8079
8079
|
}).strict()
|
|
8080
8080
|
})).strict(),
|
|
8081
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8081
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8082
8082
|
kind: v3.z.literal("router"),
|
|
8083
8083
|
policyRef: projectPipelineRefSchema,
|
|
8084
8084
|
outcomes: outcomes,
|
|
8085
8085
|
unmatched: v3.z.literal("block")
|
|
8086
8086
|
})).strict(),
|
|
8087
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8087
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8088
8088
|
kind: v3.z.literal("human_gate"),
|
|
8089
8089
|
laneKey: projectPipelineKeySchema,
|
|
8090
8090
|
policyRef: projectPipelineRefSchema,
|
|
@@ -8092,12 +8092,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8092
8092
|
outcomes: outcomes,
|
|
8093
8093
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
8094
8094
|
})).strict(),
|
|
8095
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8095
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8096
8096
|
kind: v3.z.literal("external_wait"),
|
|
8097
8097
|
laneKey: projectPipelineKeySchema,
|
|
8098
8098
|
subscriptionRef: projectPipelineRefSchema
|
|
8099
8099
|
})).strict(),
|
|
8100
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8100
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8101
8101
|
kind: v3.z.literal("terminal"),
|
|
8102
8102
|
outcome: projectPipelineKeySchema,
|
|
8103
8103
|
disposition: v3.z.enum([
|
|
@@ -8107,21 +8107,21 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8107
8107
|
})).strict()
|
|
8108
8108
|
]);
|
|
8109
8109
|
|
|
8110
|
-
/** Bounded symbolic execution proves required outputs exist on every selected branch. */ function _array_like_to_array$
|
|
8110
|
+
/** Bounded symbolic execution proves required outputs exist on every selected branch. */ function _array_like_to_array$k(arr, len) {
|
|
8111
8111
|
if (len == null || len > arr.length) len = arr.length;
|
|
8112
8112
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8113
8113
|
return arr2;
|
|
8114
8114
|
}
|
|
8115
|
-
function _array_with_holes$
|
|
8115
|
+
function _array_with_holes$d(arr) {
|
|
8116
8116
|
if (Array.isArray(arr)) return arr;
|
|
8117
8117
|
}
|
|
8118
8118
|
function _array_without_holes$b(arr) {
|
|
8119
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8119
|
+
if (Array.isArray(arr)) return _array_like_to_array$k(arr);
|
|
8120
8120
|
}
|
|
8121
8121
|
function _iterable_to_array$c(iter) {
|
|
8122
8122
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8123
8123
|
}
|
|
8124
|
-
function _iterable_to_array_limit$
|
|
8124
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
8125
8125
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8126
8126
|
if (_i == null) return;
|
|
8127
8127
|
var _arr = [];
|
|
@@ -8145,29 +8145,29 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
8145
8145
|
}
|
|
8146
8146
|
return _arr;
|
|
8147
8147
|
}
|
|
8148
|
-
function _non_iterable_rest$
|
|
8148
|
+
function _non_iterable_rest$d() {
|
|
8149
8149
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8150
8150
|
}
|
|
8151
8151
|
function _non_iterable_spread$b() {
|
|
8152
8152
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8153
8153
|
}
|
|
8154
|
-
function _sliced_to_array$
|
|
8155
|
-
return _array_with_holes$
|
|
8154
|
+
function _sliced_to_array$c(arr, i) {
|
|
8155
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$d();
|
|
8156
8156
|
}
|
|
8157
8157
|
function _to_consumable_array$b(arr) {
|
|
8158
|
-
return _array_without_holes$b(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$
|
|
8158
|
+
return _array_without_holes$b(arr) || _iterable_to_array$c(arr) || _unsupported_iterable_to_array$k(arr) || _non_iterable_spread$b();
|
|
8159
8159
|
}
|
|
8160
8160
|
function _type_of(obj) {
|
|
8161
8161
|
"@swc/helpers - typeof";
|
|
8162
8162
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8163
8163
|
}
|
|
8164
|
-
function _unsupported_iterable_to_array$
|
|
8164
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
8165
8165
|
if (!o) return;
|
|
8166
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8166
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
8167
8167
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8168
8168
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8169
8169
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8170
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8170
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
8171
8171
|
}
|
|
8172
8172
|
function validateProjectPipelineDataflow(definition, ordered) {
|
|
8173
8173
|
var issues = [];
|
|
@@ -8270,7 +8270,7 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8270
8270
|
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
8271
8271
|
try {
|
|
8272
8272
|
for(var _iterator2 = Object.entries((_node_inputBindings = node.inputBindings) !== null && _node_inputBindings !== void 0 ? _node_inputBindings : {})[Symbol.iterator](), _step3; !(_iteratorNormalCompletion2 = (_step3 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
|
|
8273
|
-
var _step_value = _sliced_to_array$
|
|
8273
|
+
var _step_value = _sliced_to_array$c(_step3.value, 2), name = _step_value[0], binding = _step_value[1];
|
|
8274
8274
|
var refs = binding.from === "collection" ? binding.items : binding.from === "node_output" ? [
|
|
8275
8275
|
binding
|
|
8276
8276
|
] : [];
|
|
@@ -8327,7 +8327,7 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8327
8327
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
8328
8328
|
try {
|
|
8329
8329
|
for(var _iterator = Object.entries((_node_inputBindings = node.inputBindings) !== null && _node_inputBindings !== void 0 ? _node_inputBindings : {})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
8330
|
-
var _step_value = _sliced_to_array$
|
|
8330
|
+
var _step_value = _sliced_to_array$c(_step.value, 2), name = _step_value[0], binding = _step_value[1];
|
|
8331
8331
|
var refs = binding.from === "collection" ? binding.items : binding.from === "node_output" ? [
|
|
8332
8332
|
binding
|
|
8333
8333
|
] : [];
|
|
@@ -8454,13 +8454,13 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8454
8454
|
return issues;
|
|
8455
8455
|
}
|
|
8456
8456
|
|
|
8457
|
-
function _array_like_to_array$
|
|
8457
|
+
function _array_like_to_array$j(arr, len) {
|
|
8458
8458
|
if (len == null || len > arr.length) len = arr.length;
|
|
8459
8459
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8460
8460
|
return arr2;
|
|
8461
8461
|
}
|
|
8462
8462
|
function _array_without_holes$a(arr) {
|
|
8463
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8463
|
+
if (Array.isArray(arr)) return _array_like_to_array$j(arr);
|
|
8464
8464
|
}
|
|
8465
8465
|
function _iterable_to_array$b(iter) {
|
|
8466
8466
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -8469,15 +8469,15 @@ function _non_iterable_spread$a() {
|
|
|
8469
8469
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8470
8470
|
}
|
|
8471
8471
|
function _to_consumable_array$a(arr) {
|
|
8472
|
-
return _array_without_holes$a(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$
|
|
8472
|
+
return _array_without_holes$a(arr) || _iterable_to_array$b(arr) || _unsupported_iterable_to_array$j(arr) || _non_iterable_spread$a();
|
|
8473
8473
|
}
|
|
8474
|
-
function _unsupported_iterable_to_array$
|
|
8474
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
8475
8475
|
if (!o) return;
|
|
8476
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8476
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
8477
8477
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8478
8478
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8479
8479
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8480
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8480
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
8481
8481
|
}
|
|
8482
8482
|
/** Pure semantic checks shared by configuration APIs, plugin registrations and persisted snapshots. */ function validateProjectPipelineDefinition(definition) {
|
|
8483
8483
|
var // Upstream reachability alone is insufficient: a value on an unselected branch may not exist.
|
|
@@ -8746,7 +8746,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
8746
8746
|
|
|
8747
8747
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
8748
8748
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
8749
|
-
function _define_property$
|
|
8749
|
+
function _define_property$d(obj, key, value) {
|
|
8750
8750
|
if (key in obj) {
|
|
8751
8751
|
Object.defineProperty(obj, key, {
|
|
8752
8752
|
value: value,
|
|
@@ -8759,7 +8759,7 @@ function _define_property$c(obj, key, value) {
|
|
|
8759
8759
|
}
|
|
8760
8760
|
return obj;
|
|
8761
8761
|
}
|
|
8762
|
-
function _object_spread$
|
|
8762
|
+
function _object_spread$d(target) {
|
|
8763
8763
|
for(var i = 1; i < arguments.length; i++){
|
|
8764
8764
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8765
8765
|
var ownKeys = Object.keys(source);
|
|
@@ -8769,7 +8769,7 @@ function _object_spread$c(target) {
|
|
|
8769
8769
|
}));
|
|
8770
8770
|
}
|
|
8771
8771
|
ownKeys.forEach(function(key) {
|
|
8772
|
-
_define_property$
|
|
8772
|
+
_define_property$d(target, key, source[key]);
|
|
8773
8773
|
});
|
|
8774
8774
|
}
|
|
8775
8775
|
return target;
|
|
@@ -8819,7 +8819,7 @@ var common = {
|
|
|
8819
8819
|
};
|
|
8820
8820
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
8821
8821
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
8822
|
-
v3.z.object(_object_spread_props$9(_object_spread$
|
|
8822
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
|
|
8823
8823
|
executionAuthority: v3.z.literal("provider"),
|
|
8824
8824
|
providerRef: projectPipelineRefSchema,
|
|
8825
8825
|
topology: v3.z.object({
|
|
@@ -8828,7 +8828,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
8828
8828
|
}).strict(),
|
|
8829
8829
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
8830
8830
|
})).strict(),
|
|
8831
|
-
v3.z.object(_object_spread_props$9(_object_spread$
|
|
8831
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
|
|
8832
8832
|
executionAuthority: v3.z.literal("platform"),
|
|
8833
8833
|
topology: v3.z.object({
|
|
8834
8834
|
source: v3.z.literal("definition")
|
|
@@ -8899,15 +8899,15 @@ var projectPipelineNativeModelBudgetStatusSchema = v3.z.object({
|
|
|
8899
8899
|
admissionBlocked: v3.z.boolean()
|
|
8900
8900
|
}).strict();
|
|
8901
8901
|
|
|
8902
|
-
function _array_like_to_array$
|
|
8902
|
+
function _array_like_to_array$i(arr, len) {
|
|
8903
8903
|
if (len == null || len > arr.length) len = arr.length;
|
|
8904
8904
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8905
8905
|
return arr2;
|
|
8906
8906
|
}
|
|
8907
|
-
function _array_with_holes$
|
|
8907
|
+
function _array_with_holes$c(arr) {
|
|
8908
8908
|
if (Array.isArray(arr)) return arr;
|
|
8909
8909
|
}
|
|
8910
|
-
function _iterable_to_array_limit$
|
|
8910
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
8911
8911
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8912
8912
|
if (_i == null) return;
|
|
8913
8913
|
var _arr = [];
|
|
@@ -8931,19 +8931,19 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
8931
8931
|
}
|
|
8932
8932
|
return _arr;
|
|
8933
8933
|
}
|
|
8934
|
-
function _non_iterable_rest$
|
|
8934
|
+
function _non_iterable_rest$c() {
|
|
8935
8935
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8936
8936
|
}
|
|
8937
|
-
function _sliced_to_array$
|
|
8938
|
-
return _array_with_holes$
|
|
8937
|
+
function _sliced_to_array$b(arr, i) {
|
|
8938
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$c();
|
|
8939
8939
|
}
|
|
8940
|
-
function _unsupported_iterable_to_array$
|
|
8940
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
8941
8941
|
if (!o) return;
|
|
8942
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8942
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
8943
8943
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8944
8944
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8945
8945
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8946
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8946
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
8947
8947
|
}
|
|
8948
8948
|
var participantSelection = v3.z.object({
|
|
8949
8949
|
kind: projectPipelineParticipantKindSchema,
|
|
@@ -9005,7 +9005,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9005
9005
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9006
9006
|
try {
|
|
9007
9007
|
for(var _iterator = Object.entries(binding.roleBindings)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
9008
|
-
var _step_value = _sliced_to_array$
|
|
9008
|
+
var _step_value = _sliced_to_array$b(_step.value, 2), key = _step_value[0], participant = _step_value[1];
|
|
9009
9009
|
var _roles_get;
|
|
9010
9010
|
if (!((_roles_get = roles.get(key)) === null || _roles_get === void 0 ? void 0 : _roles_get.allowedKinds.includes(participant.kind))) issue("ROLE_KIND_MISMATCH", "binding", "roleBindings", key);
|
|
9011
9011
|
}
|
|
@@ -9056,7 +9056,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9056
9056
|
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
9057
9057
|
try {
|
|
9058
9058
|
var _loop = function() {
|
|
9059
|
-
var _step_value = _sliced_to_array$
|
|
9059
|
+
var _step_value = _sliced_to_array$b(_step2.value, 2), slot = _step_value[0], executor = _step_value[1];
|
|
9060
9060
|
var _roles_get;
|
|
9061
9061
|
if (!((_roles_get = roles.get(executor.roleKey)) === null || _roles_get === void 0 ? void 0 : _roles_get.allowedKinds.includes(executor.kind)) || executor.kind === "human") {
|
|
9062
9062
|
issue("EXECUTOR_ROLE_MISMATCH", "binding", "executorBindings", slot);
|
|
@@ -9091,7 +9091,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9091
9091
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
9092
9092
|
try {
|
|
9093
9093
|
for(var _iterator3 = template.nodes.entries()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
9094
|
-
var _step_value1 = _sliced_to_array$
|
|
9094
|
+
var _step_value1 = _sliced_to_array$b(_step3.value, 2), index = _step_value1[0], node = _step_value1[1];
|
|
9095
9095
|
var _binding_roleBindings_node_candidateRoleKey;
|
|
9096
9096
|
if (node.kind === "work") {
|
|
9097
9097
|
var _binding_executorBindings1, _lanes_get;
|
|
@@ -9111,7 +9111,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9111
9111
|
var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
|
|
9112
9112
|
try {
|
|
9113
9113
|
for(var _iterator4 = Object.entries((_node_inputBindings = node.inputBindings) !== null && _node_inputBindings !== void 0 ? _node_inputBindings : {})[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true){
|
|
9114
|
-
var _step_value2 = _sliced_to_array$
|
|
9114
|
+
var _step_value2 = _sliced_to_array$b(_step4.value, 2), key1 = _step_value2[0], input = _step_value2[1];
|
|
9115
9115
|
if (input.from === "parameter" && !Object.prototype.hasOwnProperty.call(binding.parameters, input.key)) {
|
|
9116
9116
|
issue("PARAMETER_NOT_FOUND", "template", "nodes", index, "inputBindings", key1);
|
|
9117
9117
|
}
|
|
@@ -9147,7 +9147,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9147
9147
|
}
|
|
9148
9148
|
});
|
|
9149
9149
|
|
|
9150
|
-
function _define_property$
|
|
9150
|
+
function _define_property$c(obj, key, value) {
|
|
9151
9151
|
if (key in obj) {
|
|
9152
9152
|
Object.defineProperty(obj, key, {
|
|
9153
9153
|
value: value,
|
|
@@ -9160,7 +9160,7 @@ function _define_property$b(obj, key, value) {
|
|
|
9160
9160
|
}
|
|
9161
9161
|
return obj;
|
|
9162
9162
|
}
|
|
9163
|
-
function _object_spread$
|
|
9163
|
+
function _object_spread$c(target) {
|
|
9164
9164
|
for(var i = 1; i < arguments.length; i++){
|
|
9165
9165
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9166
9166
|
var ownKeys = Object.keys(source);
|
|
@@ -9170,7 +9170,7 @@ function _object_spread$b(target) {
|
|
|
9170
9170
|
}));
|
|
9171
9171
|
}
|
|
9172
9172
|
ownKeys.forEach(function(key) {
|
|
9173
|
-
_define_property$
|
|
9173
|
+
_define_property$c(target, key, source[key]);
|
|
9174
9174
|
});
|
|
9175
9175
|
}
|
|
9176
9176
|
return target;
|
|
@@ -9204,13 +9204,13 @@ var definitionRef = v3.z.object({
|
|
|
9204
9204
|
templateRef: projectPipelineRefSchema,
|
|
9205
9205
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
9206
9206
|
}).strict();
|
|
9207
|
-
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$8(_object_spread$
|
|
9207
|
+
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9208
9208
|
definition: definitionRef,
|
|
9209
9209
|
revision: v3.z.number().int().positive(),
|
|
9210
9210
|
configuration: projectPipelineBindingSchema
|
|
9211
9211
|
})).strict();
|
|
9212
9212
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9213
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
9213
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9214
9214
|
executionAuthority: v3.z.literal("provider"),
|
|
9215
9215
|
providerRef: projectPipelineRefSchema,
|
|
9216
9216
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9221,7 +9221,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9221
9221
|
}).strict(),
|
|
9222
9222
|
revision: v3.z.number().int().nonnegative()
|
|
9223
9223
|
})).strict(),
|
|
9224
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
9224
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9225
9225
|
executionAuthority: v3.z.literal("platform"),
|
|
9226
9226
|
bindingId: v3.z.string().uuid(),
|
|
9227
9227
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9233,7 +9233,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9233
9233
|
revision: v3.z.number().int().nonnegative()
|
|
9234
9234
|
})).strict()
|
|
9235
9235
|
]);
|
|
9236
|
-
var projectPipelineRunSchema = v3.z.object(_object_spread_props$8(_object_spread$
|
|
9236
|
+
var projectPipelineRunSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9237
9237
|
instanceId: v3.z.string().uuid(),
|
|
9238
9238
|
triggerKey: v3.z.string().min(1).max(500),
|
|
9239
9239
|
definition: definitionRef,
|
|
@@ -9305,7 +9305,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
9305
9305
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
9306
9306
|
generation: v3.z.number().int().positive()
|
|
9307
9307
|
}).strict();
|
|
9308
|
-
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spread$
|
|
9308
|
+
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9309
9309
|
runId: v3.z.string().uuid(),
|
|
9310
9310
|
sequence: v3.z.number().int().positive(),
|
|
9311
9311
|
generation: v3.z.number().int().positive(),
|
|
@@ -9321,7 +9321,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spre
|
|
|
9321
9321
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
9322
9322
|
supersedes: v3.z.string().uuid().nullable()
|
|
9323
9323
|
})).strict();
|
|
9324
|
-
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_object_spread$
|
|
9324
|
+
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9325
9325
|
roundId: v3.z.string().uuid(),
|
|
9326
9326
|
nodeKey: projectPipelineKeySchema,
|
|
9327
9327
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -9333,7 +9333,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_obje
|
|
|
9333
9333
|
revision: v3.z.number().int().nonnegative()
|
|
9334
9334
|
})).strict();
|
|
9335
9335
|
|
|
9336
|
-
function _define_property$
|
|
9336
|
+
function _define_property$b(obj, key, value) {
|
|
9337
9337
|
if (key in obj) {
|
|
9338
9338
|
Object.defineProperty(obj, key, {
|
|
9339
9339
|
value: value,
|
|
@@ -9346,7 +9346,7 @@ function _define_property$a(obj, key, value) {
|
|
|
9346
9346
|
}
|
|
9347
9347
|
return obj;
|
|
9348
9348
|
}
|
|
9349
|
-
function _object_spread$
|
|
9349
|
+
function _object_spread$b(target) {
|
|
9350
9350
|
for(var i = 1; i < arguments.length; i++){
|
|
9351
9351
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9352
9352
|
var ownKeys = Object.keys(source);
|
|
@@ -9356,7 +9356,7 @@ function _object_spread$a(target) {
|
|
|
9356
9356
|
}));
|
|
9357
9357
|
}
|
|
9358
9358
|
ownKeys.forEach(function(key) {
|
|
9359
|
-
_define_property$
|
|
9359
|
+
_define_property$b(target, key, source[key]);
|
|
9360
9360
|
});
|
|
9361
9361
|
}
|
|
9362
9362
|
return target;
|
|
@@ -9380,7 +9380,7 @@ function _object_spread_props$7(target, source) {
|
|
|
9380
9380
|
}
|
|
9381
9381
|
return target;
|
|
9382
9382
|
}
|
|
9383
|
-
var reference = {
|
|
9383
|
+
var reference$1 = {
|
|
9384
9384
|
ref: projectPipelineRefSchema
|
|
9385
9385
|
};
|
|
9386
9386
|
var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
@@ -9391,17 +9391,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9391
9391
|
])
|
|
9392
9392
|
}).strict();
|
|
9393
9393
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
|
|
9394
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9394
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9395
9395
|
kind: v3.z.literal("schema")
|
|
9396
9396
|
})).strict(),
|
|
9397
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9397
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9398
9398
|
kind: v3.z.literal("resource")
|
|
9399
9399
|
})).strict(),
|
|
9400
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9400
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9401
9401
|
kind: v3.z.literal("subject"),
|
|
9402
9402
|
outputSchemaRef: projectPipelineRefSchema
|
|
9403
9403
|
})).strict(),
|
|
9404
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9404
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9405
9405
|
kind: v3.z.literal("operation"),
|
|
9406
9406
|
effects: v3.z.enum([
|
|
9407
9407
|
"read_only",
|
|
@@ -9420,52 +9420,52 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9420
9420
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
9421
9421
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9422
9422
|
})).strict(),
|
|
9423
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9423
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9424
9424
|
kind: v3.z.literal("completion")
|
|
9425
9425
|
})).strict(),
|
|
9426
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9426
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9427
9427
|
kind: v3.z.literal("policy"),
|
|
9428
9428
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
9429
9429
|
})).strict(),
|
|
9430
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9430
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9431
9431
|
kind: v3.z.literal("projection")
|
|
9432
9432
|
})).strict(),
|
|
9433
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9433
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9434
9434
|
kind: v3.z.literal("presentation")
|
|
9435
9435
|
})).strict(),
|
|
9436
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9436
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9437
9437
|
kind: v3.z.literal("action")
|
|
9438
9438
|
})).strict(),
|
|
9439
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9439
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9440
9440
|
kind: v3.z.literal("metric")
|
|
9441
9441
|
})).strict(),
|
|
9442
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9442
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9443
9443
|
kind: v3.z.literal("dimension")
|
|
9444
9444
|
})).strict(),
|
|
9445
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9445
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9446
9446
|
kind: v3.z.literal("trigger")
|
|
9447
9447
|
})).strict(),
|
|
9448
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9448
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9449
9449
|
kind: v3.z.literal("subscription"),
|
|
9450
9450
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9451
9451
|
})).strict()
|
|
9452
9452
|
]);
|
|
9453
9453
|
|
|
9454
|
-
/** Checks declared dependencies only. Participant authorization and live capabilities require runtime resolution. */ function _array_like_to_array$
|
|
9454
|
+
/** Checks declared dependencies only. Participant authorization and live capabilities require runtime resolution. */ function _array_like_to_array$h(arr, len) {
|
|
9455
9455
|
if (len == null || len > arr.length) len = arr.length;
|
|
9456
9456
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9457
9457
|
return arr2;
|
|
9458
9458
|
}
|
|
9459
|
-
function _array_with_holes$
|
|
9459
|
+
function _array_with_holes$b(arr) {
|
|
9460
9460
|
if (Array.isArray(arr)) return arr;
|
|
9461
9461
|
}
|
|
9462
9462
|
function _array_without_holes$9(arr) {
|
|
9463
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9463
|
+
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
9464
9464
|
}
|
|
9465
9465
|
function _iterable_to_array$a(iter) {
|
|
9466
9466
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9467
9467
|
}
|
|
9468
|
-
function _iterable_to_array_limit$
|
|
9468
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
9469
9469
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9470
9470
|
if (_i == null) return;
|
|
9471
9471
|
var _arr = [];
|
|
@@ -9489,25 +9489,25 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
9489
9489
|
}
|
|
9490
9490
|
return _arr;
|
|
9491
9491
|
}
|
|
9492
|
-
function _non_iterable_rest$
|
|
9492
|
+
function _non_iterable_rest$b() {
|
|
9493
9493
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9494
9494
|
}
|
|
9495
9495
|
function _non_iterable_spread$9() {
|
|
9496
9496
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9497
9497
|
}
|
|
9498
|
-
function _sliced_to_array$
|
|
9499
|
-
return _array_with_holes$
|
|
9498
|
+
function _sliced_to_array$a(arr, i) {
|
|
9499
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$b();
|
|
9500
9500
|
}
|
|
9501
9501
|
function _to_consumable_array$9(arr) {
|
|
9502
|
-
return _array_without_holes$9(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$
|
|
9502
|
+
return _array_without_holes$9(arr) || _iterable_to_array$a(arr) || _unsupported_iterable_to_array$h(arr) || _non_iterable_spread$9();
|
|
9503
9503
|
}
|
|
9504
|
-
function _unsupported_iterable_to_array$
|
|
9504
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
9505
9505
|
if (!o) return;
|
|
9506
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9506
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
9507
9507
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9508
9508
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9509
9509
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9510
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9510
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
9511
9511
|
}
|
|
9512
9512
|
function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
9513
9513
|
var _template_presentation, _template_presentation_evidenceTypes, _template_presentation1, _template_metrics, _template_metrics1;
|
|
@@ -9623,7 +9623,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9623
9623
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
9624
9624
|
try {
|
|
9625
9625
|
var _loop = function() {
|
|
9626
|
-
var _step_value = _sliced_to_array$
|
|
9626
|
+
var _step_value = _sliced_to_array$a(_step1.value, 2), index = _step_value[0], node = _step_value[1];
|
|
9627
9627
|
var _binding_executorBindings_node_executorSlot, _binding_executorBindings;
|
|
9628
9628
|
var path = [
|
|
9629
9629
|
"template",
|
|
@@ -9634,7 +9634,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9634
9634
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9635
9635
|
try {
|
|
9636
9636
|
for(var _iterator = Object.entries((_node_outputPorts = node.outputPorts) !== null && _node_outputPorts !== void 0 ? _node_outputPorts : {})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
9637
|
-
var _step_value1 = _sliced_to_array$
|
|
9637
|
+
var _step_value1 = _sliced_to_array$a(_step.value, 2), port = _step_value1[0], schemaRef = _step_value1[1];
|
|
9638
9638
|
requireRef("schema", schemaRef, _to_consumable_array$9(path).concat([
|
|
9639
9639
|
"outputPorts",
|
|
9640
9640
|
port
|
|
@@ -9715,7 +9715,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9715
9715
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
9716
9716
|
try {
|
|
9717
9717
|
var _loop = function() {
|
|
9718
|
-
var _step_value = _sliced_to_array$
|
|
9718
|
+
var _step_value = _sliced_to_array$a(_step2.value, 2), port = _step_value[0], expected = _step_value[1];
|
|
9719
9719
|
var _nodes_get_outputPorts, _nodes_get;
|
|
9720
9720
|
requireRef("schema", expected.schemaRef, _to_consumable_array$9(path).concat([
|
|
9721
9721
|
"inputBindings",
|
|
@@ -9856,21 +9856,21 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9856
9856
|
}
|
|
9857
9857
|
}
|
|
9858
9858
|
|
|
9859
|
-
function _array_like_to_array$
|
|
9859
|
+
function _array_like_to_array$g(arr, len) {
|
|
9860
9860
|
if (len == null || len > arr.length) len = arr.length;
|
|
9861
9861
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9862
9862
|
return arr2;
|
|
9863
9863
|
}
|
|
9864
|
-
function _array_with_holes$
|
|
9864
|
+
function _array_with_holes$a(arr) {
|
|
9865
9865
|
if (Array.isArray(arr)) return arr;
|
|
9866
9866
|
}
|
|
9867
9867
|
function _array_without_holes$8(arr) {
|
|
9868
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9868
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
9869
9869
|
}
|
|
9870
9870
|
function _iterable_to_array$9(iter) {
|
|
9871
9871
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9872
9872
|
}
|
|
9873
|
-
function _iterable_to_array_limit$
|
|
9873
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
9874
9874
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9875
9875
|
if (_i == null) return;
|
|
9876
9876
|
var _arr = [];
|
|
@@ -9894,25 +9894,25 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
9894
9894
|
}
|
|
9895
9895
|
return _arr;
|
|
9896
9896
|
}
|
|
9897
|
-
function _non_iterable_rest$
|
|
9897
|
+
function _non_iterable_rest$a() {
|
|
9898
9898
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9899
9899
|
}
|
|
9900
9900
|
function _non_iterable_spread$8() {
|
|
9901
9901
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9902
9902
|
}
|
|
9903
|
-
function _sliced_to_array$
|
|
9904
|
-
return _array_with_holes$
|
|
9903
|
+
function _sliced_to_array$9(arr, i) {
|
|
9904
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$a();
|
|
9905
9905
|
}
|
|
9906
9906
|
function _to_consumable_array$8(arr) {
|
|
9907
|
-
return _array_without_holes$8(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$
|
|
9907
|
+
return _array_without_holes$8(arr) || _iterable_to_array$9(arr) || _unsupported_iterable_to_array$g(arr) || _non_iterable_spread$8();
|
|
9908
9908
|
}
|
|
9909
|
-
function _unsupported_iterable_to_array$
|
|
9909
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
9910
9910
|
if (!o) return;
|
|
9911
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9911
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
9912
9912
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9913
9913
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9914
9914
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9915
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
9915
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
9916
9916
|
}
|
|
9917
9917
|
var key$2 = v3.z.string().min(1).max(500);
|
|
9918
9918
|
var timestamp = v3.z.string().datetime({
|
|
@@ -10172,10 +10172,10 @@ var tombstone = v3.z.object({
|
|
|
10172
10172
|
return degree.set(edge.to, ((_degree_get = degree.get(edge.to)) !== null && _degree_get !== void 0 ? _degree_get : 0) + 1);
|
|
10173
10173
|
});
|
|
10174
10174
|
var queue = _to_consumable_array$8(degree).filter(function(param) {
|
|
10175
|
-
var _param = _sliced_to_array$
|
|
10175
|
+
var _param = _sliced_to_array$9(param, 2), n = _param[1];
|
|
10176
10176
|
return n === 0;
|
|
10177
10177
|
}).map(function(param) {
|
|
10178
|
-
var _param = _sliced_to_array$
|
|
10178
|
+
var _param = _sliced_to_array$9(param, 1), key = _param[0];
|
|
10179
10179
|
return key;
|
|
10180
10180
|
});
|
|
10181
10181
|
var visited = 0;
|
|
@@ -10212,7 +10212,7 @@ var tombstone = v3.z.object({
|
|
|
10212
10212
|
]);
|
|
10213
10213
|
});
|
|
10214
10214
|
|
|
10215
|
-
function _define_property$
|
|
10215
|
+
function _define_property$a(obj, key, value) {
|
|
10216
10216
|
if (key in obj) {
|
|
10217
10217
|
Object.defineProperty(obj, key, {
|
|
10218
10218
|
value: value,
|
|
@@ -10225,7 +10225,7 @@ function _define_property$9(obj, key, value) {
|
|
|
10225
10225
|
}
|
|
10226
10226
|
return obj;
|
|
10227
10227
|
}
|
|
10228
|
-
function _object_spread$
|
|
10228
|
+
function _object_spread$a(target) {
|
|
10229
10229
|
for(var i = 1; i < arguments.length; i++){
|
|
10230
10230
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10231
10231
|
var ownKeys = Object.keys(source);
|
|
@@ -10235,7 +10235,7 @@ function _object_spread$9(target) {
|
|
|
10235
10235
|
}));
|
|
10236
10236
|
}
|
|
10237
10237
|
ownKeys.forEach(function(key) {
|
|
10238
|
-
_define_property$
|
|
10238
|
+
_define_property$a(target, key, source[key]);
|
|
10239
10239
|
});
|
|
10240
10240
|
}
|
|
10241
10241
|
return target;
|
|
@@ -10291,7 +10291,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10291
10291
|
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
10292
10292
|
}
|
|
10293
10293
|
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
|
|
10294
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10294
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10295
10295
|
source: v3.z.literal("unavailable"),
|
|
10296
10296
|
subject: subject,
|
|
10297
10297
|
state: v3.z.literal("unknown"),
|
|
@@ -10301,7 +10301,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10301
10301
|
"unsupported"
|
|
10302
10302
|
])
|
|
10303
10303
|
})).strict(),
|
|
10304
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10304
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10305
10305
|
source: v3.z.literal("platform"),
|
|
10306
10306
|
subject: subject,
|
|
10307
10307
|
scope: v3.z.literal("owned_subtree"),
|
|
@@ -10323,7 +10323,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10323
10323
|
executionId: v3.z.string().uuid(),
|
|
10324
10324
|
threadId: v3.z.string().min(1)
|
|
10325
10325
|
})).strict(),
|
|
10326
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10326
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10327
10327
|
source: v3.z.literal("provider"),
|
|
10328
10328
|
subject: v3.z.object({
|
|
10329
10329
|
kind: v3.z.literal("invocation"),
|
|
@@ -10341,7 +10341,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10341
10341
|
receiptKey: v3.z.string().min(1).max(500),
|
|
10342
10342
|
target: executionRuntimeTargetSchema.optional()
|
|
10343
10343
|
})).strict(),
|
|
10344
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10344
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10345
10345
|
source: v3.z.literal("host_admission"),
|
|
10346
10346
|
subject: v3.z.object({
|
|
10347
10347
|
kind: v3.z.literal("invocation"),
|
|
@@ -10368,7 +10368,7 @@ function unknownExecutionControl(subject) {
|
|
|
10368
10368
|
};
|
|
10369
10369
|
}
|
|
10370
10370
|
|
|
10371
|
-
function _define_property$
|
|
10371
|
+
function _define_property$9(obj, key, value) {
|
|
10372
10372
|
if (key in obj) {
|
|
10373
10373
|
Object.defineProperty(obj, key, {
|
|
10374
10374
|
value: value,
|
|
@@ -10381,7 +10381,7 @@ function _define_property$8(obj, key, value) {
|
|
|
10381
10381
|
}
|
|
10382
10382
|
return obj;
|
|
10383
10383
|
}
|
|
10384
|
-
function _object_spread$
|
|
10384
|
+
function _object_spread$9(target) {
|
|
10385
10385
|
for(var i = 1; i < arguments.length; i++){
|
|
10386
10386
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10387
10387
|
var ownKeys = Object.keys(source);
|
|
@@ -10391,7 +10391,7 @@ function _object_spread$8(target) {
|
|
|
10391
10391
|
}));
|
|
10392
10392
|
}
|
|
10393
10393
|
ownKeys.forEach(function(key) {
|
|
10394
|
-
_define_property$
|
|
10394
|
+
_define_property$9(target, key, source[key]);
|
|
10395
10395
|
});
|
|
10396
10396
|
}
|
|
10397
10397
|
return target;
|
|
@@ -10476,20 +10476,20 @@ var receipt = {
|
|
|
10476
10476
|
]).optional()
|
|
10477
10477
|
};
|
|
10478
10478
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
10479
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10479
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10480
10480
|
status: v3.z.literal("pending")
|
|
10481
10481
|
})).strict(),
|
|
10482
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10482
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10483
10483
|
status: v3.z.literal("succeeded"),
|
|
10484
10484
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
10485
10485
|
return Object.keys(value).length <= 100;
|
|
10486
10486
|
}, "Too many output ports")
|
|
10487
10487
|
})).strict(),
|
|
10488
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10488
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10489
10489
|
status: v3.z.literal("failed"),
|
|
10490
10490
|
code: projectPipelineKeySchema
|
|
10491
10491
|
})).strict(),
|
|
10492
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10492
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10493
10493
|
status: v3.z.literal("cancelled")
|
|
10494
10494
|
})).strict(),
|
|
10495
10495
|
v3.z.object({
|
|
@@ -10563,15 +10563,15 @@ var projectPipelineRetrySchema = v3.z.object({
|
|
|
10563
10563
|
generation: v3.z.number().int().positive()
|
|
10564
10564
|
}).strict();
|
|
10565
10565
|
|
|
10566
|
-
function _array_like_to_array$
|
|
10566
|
+
function _array_like_to_array$f(arr, len) {
|
|
10567
10567
|
if (len == null || len > arr.length) len = arr.length;
|
|
10568
10568
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10569
10569
|
return arr2;
|
|
10570
10570
|
}
|
|
10571
10571
|
function _array_without_holes$7(arr) {
|
|
10572
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10572
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
10573
10573
|
}
|
|
10574
|
-
function _define_property$
|
|
10574
|
+
function _define_property$8(obj, key, value) {
|
|
10575
10575
|
if (key in obj) {
|
|
10576
10576
|
Object.defineProperty(obj, key, {
|
|
10577
10577
|
value: value,
|
|
@@ -10590,7 +10590,7 @@ function _iterable_to_array$8(iter) {
|
|
|
10590
10590
|
function _non_iterable_spread$7() {
|
|
10591
10591
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10592
10592
|
}
|
|
10593
|
-
function _object_spread$
|
|
10593
|
+
function _object_spread$8(target) {
|
|
10594
10594
|
for(var i = 1; i < arguments.length; i++){
|
|
10595
10595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10596
10596
|
var ownKeys = Object.keys(source);
|
|
@@ -10600,7 +10600,7 @@ function _object_spread$7(target) {
|
|
|
10600
10600
|
}));
|
|
10601
10601
|
}
|
|
10602
10602
|
ownKeys.forEach(function(key) {
|
|
10603
|
-
_define_property$
|
|
10603
|
+
_define_property$8(target, key, source[key]);
|
|
10604
10604
|
});
|
|
10605
10605
|
}
|
|
10606
10606
|
return target;
|
|
@@ -10625,15 +10625,15 @@ function _object_spread_props$4(target, source) {
|
|
|
10625
10625
|
return target;
|
|
10626
10626
|
}
|
|
10627
10627
|
function _to_consumable_array$7(arr) {
|
|
10628
|
-
return _array_without_holes$7(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$
|
|
10628
|
+
return _array_without_holes$7(arr) || _iterable_to_array$8(arr) || _unsupported_iterable_to_array$f(arr) || _non_iterable_spread$7();
|
|
10629
10629
|
}
|
|
10630
|
-
function _unsupported_iterable_to_array$
|
|
10630
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
10631
10631
|
if (!o) return;
|
|
10632
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10632
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
10633
10633
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10634
10634
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10635
10635
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10636
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
10636
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
10637
10637
|
}
|
|
10638
10638
|
var count$5 = v3.z.number().int().nonnegative();
|
|
10639
10639
|
var pipelineAttemptCountsSchema = v3.z.object({
|
|
@@ -10808,22 +10808,22 @@ function pipelineExecutorStatistics(facts) {
|
|
|
10808
10808
|
}
|
|
10809
10809
|
return _to_consumable_array$7(groups.values()).map(function(param) {
|
|
10810
10810
|
var identity = param.identity, _$facts = param.facts;
|
|
10811
|
-
return _object_spread_props$4(_object_spread$
|
|
10811
|
+
return _object_spread_props$4(_object_spread$8({}, identity), {
|
|
10812
10812
|
attempts: pipelineAttemptCounts(_$facts),
|
|
10813
10813
|
timing: pipelineExecutionTiming(_$facts)
|
|
10814
10814
|
});
|
|
10815
10815
|
});
|
|
10816
10816
|
}
|
|
10817
10817
|
|
|
10818
|
-
function _array_like_to_array$
|
|
10818
|
+
function _array_like_to_array$e(arr, len) {
|
|
10819
10819
|
if (len == null || len > arr.length) len = arr.length;
|
|
10820
10820
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10821
10821
|
return arr2;
|
|
10822
10822
|
}
|
|
10823
10823
|
function _array_without_holes$6(arr) {
|
|
10824
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10824
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
10825
10825
|
}
|
|
10826
|
-
function _define_property$
|
|
10826
|
+
function _define_property$7(obj, key, value) {
|
|
10827
10827
|
if (key in obj) {
|
|
10828
10828
|
Object.defineProperty(obj, key, {
|
|
10829
10829
|
value: value,
|
|
@@ -10842,7 +10842,7 @@ function _iterable_to_array$7(iter) {
|
|
|
10842
10842
|
function _non_iterable_spread$6() {
|
|
10843
10843
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10844
10844
|
}
|
|
10845
|
-
function _object_spread$
|
|
10845
|
+
function _object_spread$7(target) {
|
|
10846
10846
|
for(var i = 1; i < arguments.length; i++){
|
|
10847
10847
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10848
10848
|
var ownKeys = Object.keys(source);
|
|
@@ -10852,7 +10852,7 @@ function _object_spread$6(target) {
|
|
|
10852
10852
|
}));
|
|
10853
10853
|
}
|
|
10854
10854
|
ownKeys.forEach(function(key) {
|
|
10855
|
-
_define_property$
|
|
10855
|
+
_define_property$7(target, key, source[key]);
|
|
10856
10856
|
});
|
|
10857
10857
|
}
|
|
10858
10858
|
return target;
|
|
@@ -10877,15 +10877,15 @@ function _object_spread_props$3(target, source) {
|
|
|
10877
10877
|
return target;
|
|
10878
10878
|
}
|
|
10879
10879
|
function _to_consumable_array$6(arr) {
|
|
10880
|
-
return _array_without_holes$6(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$
|
|
10880
|
+
return _array_without_holes$6(arr) || _iterable_to_array$7(arr) || _unsupported_iterable_to_array$e(arr) || _non_iterable_spread$6();
|
|
10881
10881
|
}
|
|
10882
|
-
function _unsupported_iterable_to_array$
|
|
10882
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
10883
10883
|
if (!o) return;
|
|
10884
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10884
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
10885
10885
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10886
10886
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10887
10887
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10888
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
10888
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
10889
10889
|
}
|
|
10890
10890
|
var count$4 = v3.z.number().int().nonnegative();
|
|
10891
10891
|
var tokens = v3.z.number().int().nonnegative().safe();
|
|
@@ -11041,7 +11041,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11041
11041
|
}
|
|
11042
11042
|
}
|
|
11043
11043
|
}
|
|
11044
|
-
return _object_spread_props$3(_object_spread$
|
|
11044
|
+
return _object_spread_props$3(_object_spread$7({
|
|
11045
11045
|
scope: "linked_native_llm_calls"
|
|
11046
11046
|
}, coverage, totals(calls)), {
|
|
11047
11047
|
unpricedCalls: unpricedCalls,
|
|
@@ -11049,7 +11049,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11049
11049
|
return a.currency.localeCompare(b.currency);
|
|
11050
11050
|
}),
|
|
11051
11051
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11052
|
-
return _object_spread$
|
|
11052
|
+
return _object_spread$7({
|
|
11053
11053
|
provider: group[0].provider,
|
|
11054
11054
|
model: group[0].model
|
|
11055
11055
|
}, totals(group));
|
|
@@ -11072,13 +11072,13 @@ function pipelineNodeNeedsHuman(node) {
|
|
|
11072
11072
|
].includes(node.state.lifecycle) && node.state.readiness === "ready";
|
|
11073
11073
|
}
|
|
11074
11074
|
|
|
11075
|
-
function _array_like_to_array$
|
|
11075
|
+
function _array_like_to_array$d(arr, len) {
|
|
11076
11076
|
if (len == null || len > arr.length) len = arr.length;
|
|
11077
11077
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11078
11078
|
return arr2;
|
|
11079
11079
|
}
|
|
11080
11080
|
function _array_without_holes$5(arr) {
|
|
11081
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11081
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
11082
11082
|
}
|
|
11083
11083
|
function _iterable_to_array$6(iter) {
|
|
11084
11084
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -11087,15 +11087,15 @@ function _non_iterable_spread$5() {
|
|
|
11087
11087
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11088
11088
|
}
|
|
11089
11089
|
function _to_consumable_array$5(arr) {
|
|
11090
|
-
return _array_without_holes$5(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$
|
|
11090
|
+
return _array_without_holes$5(arr) || _iterable_to_array$6(arr) || _unsupported_iterable_to_array$d(arr) || _non_iterable_spread$5();
|
|
11091
11091
|
}
|
|
11092
|
-
function _unsupported_iterable_to_array$
|
|
11092
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
11093
11093
|
if (!o) return;
|
|
11094
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11094
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
11095
11095
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11096
11096
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11097
11097
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11098
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11098
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
11099
11099
|
}
|
|
11100
11100
|
var count$3 = v3.z.number().int().nonnegative();
|
|
11101
11101
|
var projectPipelineWorkCountsSchema = v3.z.object({
|
|
@@ -11258,18 +11258,18 @@ function selectedPipelineAttemptFacts(nodes, executions) {
|
|
|
11258
11258
|
}).strict()
|
|
11259
11259
|
]);
|
|
11260
11260
|
|
|
11261
|
-
function _array_like_to_array$
|
|
11261
|
+
function _array_like_to_array$c(arr, len) {
|
|
11262
11262
|
if (len == null || len > arr.length) len = arr.length;
|
|
11263
11263
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11264
11264
|
return arr2;
|
|
11265
11265
|
}
|
|
11266
|
-
function _array_with_holes$
|
|
11266
|
+
function _array_with_holes$9(arr) {
|
|
11267
11267
|
if (Array.isArray(arr)) return arr;
|
|
11268
11268
|
}
|
|
11269
11269
|
function _array_without_holes$4(arr) {
|
|
11270
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11270
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
11271
11271
|
}
|
|
11272
|
-
function _define_property$
|
|
11272
|
+
function _define_property$6(obj, key, value) {
|
|
11273
11273
|
if (key in obj) {
|
|
11274
11274
|
Object.defineProperty(obj, key, {
|
|
11275
11275
|
value: value,
|
|
@@ -11285,7 +11285,7 @@ function _define_property$5(obj, key, value) {
|
|
|
11285
11285
|
function _iterable_to_array$5(iter) {
|
|
11286
11286
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11287
11287
|
}
|
|
11288
|
-
function _iterable_to_array_limit$
|
|
11288
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
11289
11289
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11290
11290
|
if (_i == null) return;
|
|
11291
11291
|
var _arr = [];
|
|
@@ -11309,13 +11309,13 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
11309
11309
|
}
|
|
11310
11310
|
return _arr;
|
|
11311
11311
|
}
|
|
11312
|
-
function _non_iterable_rest$
|
|
11312
|
+
function _non_iterable_rest$9() {
|
|
11313
11313
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11314
11314
|
}
|
|
11315
11315
|
function _non_iterable_spread$4() {
|
|
11316
11316
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11317
11317
|
}
|
|
11318
|
-
function _object_spread$
|
|
11318
|
+
function _object_spread$6(target) {
|
|
11319
11319
|
for(var i = 1; i < arguments.length; i++){
|
|
11320
11320
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11321
11321
|
var ownKeys = Object.keys(source);
|
|
@@ -11325,7 +11325,7 @@ function _object_spread$5(target) {
|
|
|
11325
11325
|
}));
|
|
11326
11326
|
}
|
|
11327
11327
|
ownKeys.forEach(function(key) {
|
|
11328
|
-
_define_property$
|
|
11328
|
+
_define_property$6(target, key, source[key]);
|
|
11329
11329
|
});
|
|
11330
11330
|
}
|
|
11331
11331
|
return target;
|
|
@@ -11349,19 +11349,19 @@ function _object_spread_props$2(target, source) {
|
|
|
11349
11349
|
}
|
|
11350
11350
|
return target;
|
|
11351
11351
|
}
|
|
11352
|
-
function _sliced_to_array$
|
|
11353
|
-
return _array_with_holes$
|
|
11352
|
+
function _sliced_to_array$8(arr, i) {
|
|
11353
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$9();
|
|
11354
11354
|
}
|
|
11355
11355
|
function _to_consumable_array$4(arr) {
|
|
11356
|
-
return _array_without_holes$4(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$
|
|
11356
|
+
return _array_without_holes$4(arr) || _iterable_to_array$5(arr) || _unsupported_iterable_to_array$c(arr) || _non_iterable_spread$4();
|
|
11357
11357
|
}
|
|
11358
|
-
function _unsupported_iterable_to_array$
|
|
11358
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
11359
11359
|
if (!o) return;
|
|
11360
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11360
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
11361
11361
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11362
11362
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11363
11363
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11364
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11364
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
11365
11365
|
}
|
|
11366
11366
|
var label$1 = v3.z.object({
|
|
11367
11367
|
en_US: v3.z.string().min(1).max(200),
|
|
@@ -11377,30 +11377,30 @@ var option = v3.z.object({
|
|
|
11377
11377
|
label: label$1
|
|
11378
11378
|
}).strict();
|
|
11379
11379
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
11380
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11380
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11381
11381
|
type: v3.z.literal("boolean")
|
|
11382
11382
|
})).strict(),
|
|
11383
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11383
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11384
11384
|
type: v3.z.literal("text"),
|
|
11385
11385
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
11386
11386
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
11387
11387
|
})).strict(),
|
|
11388
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11388
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11389
11389
|
type: v3.z.literal("number"),
|
|
11390
11390
|
min: v3.z.number().finite(),
|
|
11391
11391
|
max: v3.z.number().finite(),
|
|
11392
11392
|
integer: v3.z.boolean()
|
|
11393
11393
|
})).strict(),
|
|
11394
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11394
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11395
11395
|
type: v3.z.literal("choice"),
|
|
11396
11396
|
options: v3.z.array(option).min(1).max(100)
|
|
11397
11397
|
})).strict(),
|
|
11398
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11398
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11399
11399
|
type: v3.z.literal("multi_choice"),
|
|
11400
11400
|
options: v3.z.array(option).min(1).max(100),
|
|
11401
11401
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
11402
11402
|
})).strict(),
|
|
11403
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11403
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11404
11404
|
type: v3.z.literal("string_list"),
|
|
11405
11405
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
11406
11406
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -11437,7 +11437,7 @@ var projectPipelineConfigurationFormSchema = v3.z.object({
|
|
|
11437
11437
|
})
|
|
11438
11438
|
]
|
|
11439
11439
|
]; _i < _iter.length; _i++){
|
|
11440
|
-
var _iter__i = _sliced_to_array$
|
|
11440
|
+
var _iter__i = _sliced_to_array$8(_iter[_i], 2), path = _iter__i[0], keys = _iter__i[1];
|
|
11441
11441
|
if (new Set(keys).size !== keys.length) context.addIssue({
|
|
11442
11442
|
code: "custom",
|
|
11443
11443
|
message: "DUPLICATE_CONFIGURATION_FIELD",
|
|
@@ -11577,10 +11577,10 @@ function parameterSchema(field) {
|
|
|
11577
11577
|
if (!sameKeys(form.assistantSlots.map(function(item) {
|
|
11578
11578
|
return item.slot;
|
|
11579
11579
|
}), Object.entries((_configuration_binding_executorBindings = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings !== void 0 ? _configuration_binding_executorBindings : {}).filter(function(param) {
|
|
11580
|
-
var _param = _sliced_to_array$
|
|
11580
|
+
var _param = _sliced_to_array$8(param, 2), executor = _param[1];
|
|
11581
11581
|
return executor.kind === "assistant";
|
|
11582
11582
|
}).map(function(param) {
|
|
11583
|
-
var _param = _sliced_to_array$
|
|
11583
|
+
var _param = _sliced_to_array$8(param, 1), slot = _param[0];
|
|
11584
11584
|
return slot;
|
|
11585
11585
|
}))) throw new Error("PIPELINE_CONFIGURATION_SLOTS_INCOMPLETE");
|
|
11586
11586
|
var _form_runtimeSlots, _input_runtimes;
|
|
@@ -11589,10 +11589,10 @@ function parameterSchema(field) {
|
|
|
11589
11589
|
if (!sameKeys(runtimeSlots.map(function(item) {
|
|
11590
11590
|
return item.slot;
|
|
11591
11591
|
}), Object.entries((_configuration_binding_executorBindings1 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings1 !== void 0 ? _configuration_binding_executorBindings1 : {}).filter(function(param) {
|
|
11592
|
-
var _param = _sliced_to_array$
|
|
11592
|
+
var _param = _sliced_to_array$8(param, 2), executor = _param[1];
|
|
11593
11593
|
return executor.kind === "runtime_binding";
|
|
11594
11594
|
}).map(function(param) {
|
|
11595
|
-
var _param = _sliced_to_array$
|
|
11595
|
+
var _param = _sliced_to_array$8(param, 1), slot = _param[0];
|
|
11596
11596
|
return slot;
|
|
11597
11597
|
}))) throw new Error("PIPELINE_CONFIGURATION_SLOTS_INCOMPLETE");
|
|
11598
11598
|
if (!sameKeys(Object.keys(input.assistants), form.assistantSlots.map(function(item) {
|
|
@@ -11603,13 +11603,13 @@ function parameterSchema(field) {
|
|
|
11603
11603
|
return item.key;
|
|
11604
11604
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
11605
11605
|
var _configuration_binding_executorBindings2;
|
|
11606
|
-
var binding = _object_spread_props$2(_object_spread$
|
|
11607
|
-
parameters: _object_spread$
|
|
11606
|
+
var binding = _object_spread_props$2(_object_spread$6({}, configuration.binding), {
|
|
11607
|
+
parameters: _object_spread$6({}, configuration.binding.parameters),
|
|
11608
11608
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
11609
|
-
var _param = _sliced_to_array$
|
|
11609
|
+
var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
|
|
11610
11610
|
return [
|
|
11611
11611
|
key,
|
|
11612
|
-
_object_spread$
|
|
11612
|
+
_object_spread$6({}, executor)
|
|
11613
11613
|
];
|
|
11614
11614
|
}))
|
|
11615
11615
|
});
|
|
@@ -11625,7 +11625,7 @@ function parameterSchema(field) {
|
|
|
11625
11625
|
var key = _iter[_i];
|
|
11626
11626
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
11627
11627
|
}
|
|
11628
|
-
binding.limits = _object_spread_props$2(_object_spread$
|
|
11628
|
+
binding.limits = _object_spread_props$2(_object_spread$6({}, binding.limits), {
|
|
11629
11629
|
nativeModelBudget: budget
|
|
11630
11630
|
});
|
|
11631
11631
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -11697,14 +11697,14 @@ function parameterSchema(field) {
|
|
|
11697
11697
|
}
|
|
11698
11698
|
}
|
|
11699
11699
|
}
|
|
11700
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$
|
|
11700
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$6({}, configuration), {
|
|
11701
11701
|
binding: binding
|
|
11702
11702
|
}));
|
|
11703
11703
|
}
|
|
11704
11704
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
11705
11705
|
var _configuration_binding_limits;
|
|
11706
11706
|
var _form_runtimeSlots;
|
|
11707
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$
|
|
11707
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$6({}, form.nativeModelBudget ? {
|
|
11708
11708
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
11709
11709
|
} : {}), {
|
|
11710
11710
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -11810,13 +11810,13 @@ var projectPipelineProviderActionsSchema = v3.z.object({
|
|
|
11810
11810
|
operations: v3.z.array(projectPipelineProviderActionViewSchema).max(50)
|
|
11811
11811
|
}).strict();
|
|
11812
11812
|
|
|
11813
|
-
function _array_like_to_array$
|
|
11813
|
+
function _array_like_to_array$b(arr, len) {
|
|
11814
11814
|
if (len == null || len > arr.length) len = arr.length;
|
|
11815
11815
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11816
11816
|
return arr2;
|
|
11817
11817
|
}
|
|
11818
11818
|
function _array_without_holes$3(arr) {
|
|
11819
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11819
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
11820
11820
|
}
|
|
11821
11821
|
function _iterable_to_array$4(iter) {
|
|
11822
11822
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -11825,15 +11825,15 @@ function _non_iterable_spread$3() {
|
|
|
11825
11825
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11826
11826
|
}
|
|
11827
11827
|
function _to_consumable_array$3(arr) {
|
|
11828
|
-
return _array_without_holes$3(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$
|
|
11828
|
+
return _array_without_holes$3(arr) || _iterable_to_array$4(arr) || _unsupported_iterable_to_array$b(arr) || _non_iterable_spread$3();
|
|
11829
11829
|
}
|
|
11830
|
-
function _unsupported_iterable_to_array$
|
|
11830
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
11831
11831
|
if (!o) return;
|
|
11832
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11832
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
11833
11833
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11834
11834
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11835
11835
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11836
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
11836
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
11837
11837
|
}
|
|
11838
11838
|
var count$2 = v3.z.number().int().nonnegative();
|
|
11839
11839
|
var metrics = v3.z.object({
|
|
@@ -11975,18 +11975,18 @@ var pipelineQueueStatisticsSchema = v3.z.object({
|
|
|
11975
11975
|
};
|
|
11976
11976
|
}
|
|
11977
11977
|
|
|
11978
|
-
function _array_like_to_array$
|
|
11978
|
+
function _array_like_to_array$a(arr, len) {
|
|
11979
11979
|
if (len == null || len > arr.length) len = arr.length;
|
|
11980
11980
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11981
11981
|
return arr2;
|
|
11982
11982
|
}
|
|
11983
|
-
function _array_with_holes$
|
|
11983
|
+
function _array_with_holes$8(arr) {
|
|
11984
11984
|
if (Array.isArray(arr)) return arr;
|
|
11985
11985
|
}
|
|
11986
11986
|
function _array_without_holes$2(arr) {
|
|
11987
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11987
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
11988
11988
|
}
|
|
11989
|
-
function _define_property$
|
|
11989
|
+
function _define_property$5(obj, key, value) {
|
|
11990
11990
|
if (key in obj) {
|
|
11991
11991
|
Object.defineProperty(obj, key, {
|
|
11992
11992
|
value: value,
|
|
@@ -12002,7 +12002,7 @@ function _define_property$4(obj, key, value) {
|
|
|
12002
12002
|
function _iterable_to_array$3(iter) {
|
|
12003
12003
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12004
12004
|
}
|
|
12005
|
-
function _iterable_to_array_limit$
|
|
12005
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
12006
12006
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12007
12007
|
if (_i == null) return;
|
|
12008
12008
|
var _arr = [];
|
|
@@ -12026,13 +12026,13 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
12026
12026
|
}
|
|
12027
12027
|
return _arr;
|
|
12028
12028
|
}
|
|
12029
|
-
function _non_iterable_rest$
|
|
12029
|
+
function _non_iterable_rest$8() {
|
|
12030
12030
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12031
12031
|
}
|
|
12032
12032
|
function _non_iterable_spread$2() {
|
|
12033
12033
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12034
12034
|
}
|
|
12035
|
-
function _object_spread$
|
|
12035
|
+
function _object_spread$5(target) {
|
|
12036
12036
|
for(var i = 1; i < arguments.length; i++){
|
|
12037
12037
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12038
12038
|
var ownKeys = Object.keys(source);
|
|
@@ -12042,7 +12042,7 @@ function _object_spread$4(target) {
|
|
|
12042
12042
|
}));
|
|
12043
12043
|
}
|
|
12044
12044
|
ownKeys.forEach(function(key) {
|
|
12045
|
-
_define_property$
|
|
12045
|
+
_define_property$5(target, key, source[key]);
|
|
12046
12046
|
});
|
|
12047
12047
|
}
|
|
12048
12048
|
return target;
|
|
@@ -12066,19 +12066,19 @@ function _object_spread_props$1(target, source) {
|
|
|
12066
12066
|
}
|
|
12067
12067
|
return target;
|
|
12068
12068
|
}
|
|
12069
|
-
function _sliced_to_array$
|
|
12070
|
-
return _array_with_holes$
|
|
12069
|
+
function _sliced_to_array$7(arr, i) {
|
|
12070
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$8();
|
|
12071
12071
|
}
|
|
12072
12072
|
function _to_consumable_array$2(arr) {
|
|
12073
|
-
return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
12073
|
+
return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$a(arr) || _non_iterable_spread$2();
|
|
12074
12074
|
}
|
|
12075
|
-
function _unsupported_iterable_to_array$
|
|
12075
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
12076
12076
|
if (!o) return;
|
|
12077
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12077
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
12078
12078
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12079
12079
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12080
12080
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12081
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12081
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
12082
12082
|
}
|
|
12083
12083
|
var count$1 = v3.z.number().int().nonnegative();
|
|
12084
12084
|
var pipelineHumanWaitStatisticsSchema = v3.z.object({
|
|
@@ -12103,7 +12103,7 @@ function unionDuration(ranges) {
|
|
|
12103
12103
|
for(var _iterator = _to_consumable_array$2(ranges).sort(function(a, b) {
|
|
12104
12104
|
return a[0] - b[0];
|
|
12105
12105
|
})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12106
|
-
var _step_value = _sliced_to_array$
|
|
12106
|
+
var _step_value = _sliced_to_array$7(_step.value, 2), start = _step_value[0], end = _step_value[1];
|
|
12107
12107
|
duration += Math.max(0, end - Math.max(start, until));
|
|
12108
12108
|
until = Math.max(until, end);
|
|
12109
12109
|
}
|
|
@@ -12165,7 +12165,7 @@ function unionDuration(ranges) {
|
|
|
12165
12165
|
try {
|
|
12166
12166
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12167
12167
|
var value = _step.value;
|
|
12168
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12168
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
|
|
12169
12169
|
end: lastAt,
|
|
12170
12170
|
ongoing: false,
|
|
12171
12171
|
censored: true
|
|
@@ -12216,9 +12216,9 @@ function unionDuration(ranges) {
|
|
|
12216
12216
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
12217
12217
|
try {
|
|
12218
12218
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12219
|
-
var _step_value = _sliced_to_array$
|
|
12219
|
+
var _step_value = _sliced_to_array$7(_step2.value, 2), id = _step_value[0], value = _step_value[1];
|
|
12220
12220
|
if (!ready.has(id)) {
|
|
12221
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12221
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
|
|
12222
12222
|
end: at,
|
|
12223
12223
|
ongoing: false
|
|
12224
12224
|
}));
|
|
@@ -12283,16 +12283,16 @@ function unionDuration(ranges) {
|
|
|
12283
12283
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
12284
12284
|
try {
|
|
12285
12285
|
for(var _iterator3 = open[Symbol.iterator](), _step4; !(_iteratorNormalCompletion3 = (_step4 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
12286
|
-
var _step_value1 = _sliced_to_array$
|
|
12286
|
+
var _step_value1 = _sliced_to_array$7(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
|
|
12287
12287
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
12288
12288
|
if (currentWaiting.has(id2)) {
|
|
12289
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12289
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
|
|
12290
12290
|
end: now,
|
|
12291
12291
|
ongoing: true
|
|
12292
12292
|
}));
|
|
12293
12293
|
tracked.add(id2);
|
|
12294
12294
|
} else {
|
|
12295
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12295
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
|
|
12296
12296
|
end: lastAt,
|
|
12297
12297
|
ongoing: false,
|
|
12298
12298
|
censored: true
|
|
@@ -12337,7 +12337,7 @@ function unionDuration(ranges) {
|
|
|
12337
12337
|
var selected = intervals.filter(function(interval) {
|
|
12338
12338
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
12339
12339
|
}).map(function(interval) {
|
|
12340
|
-
return _object_spread_props$1(_object_spread$
|
|
12340
|
+
return _object_spread_props$1(_object_spread$5({}, interval), {
|
|
12341
12341
|
start: Math.max(from, interval.start),
|
|
12342
12342
|
end: Math.min(to, interval.end)
|
|
12343
12343
|
});
|
|
@@ -12349,10 +12349,10 @@ function unionDuration(ranges) {
|
|
|
12349
12349
|
];
|
|
12350
12350
|
});
|
|
12351
12351
|
var observedWindowMs = unionDuration(covered.filter(function(param) {
|
|
12352
|
-
var _param = _sliced_to_array$
|
|
12352
|
+
var _param = _sliced_to_array$7(param, 2), start = _param[0], end = _param[1];
|
|
12353
12353
|
return start < to && end > from;
|
|
12354
12354
|
}).map(function(param) {
|
|
12355
|
-
var _param = _sliced_to_array$
|
|
12355
|
+
var _param = _sliced_to_array$7(param, 2), start = _param[0], end = _param[1];
|
|
12356
12356
|
return [
|
|
12357
12357
|
Math.max(start, from),
|
|
12358
12358
|
Math.min(end, to)
|
|
@@ -12383,7 +12383,7 @@ function unionDuration(ranges) {
|
|
|
12383
12383
|
};
|
|
12384
12384
|
}
|
|
12385
12385
|
|
|
12386
|
-
function _define_property$
|
|
12386
|
+
function _define_property$4(obj, key, value) {
|
|
12387
12387
|
if (key in obj) {
|
|
12388
12388
|
Object.defineProperty(obj, key, {
|
|
12389
12389
|
value: value,
|
|
@@ -12396,7 +12396,7 @@ function _define_property$3(obj, key, value) {
|
|
|
12396
12396
|
}
|
|
12397
12397
|
return obj;
|
|
12398
12398
|
}
|
|
12399
|
-
function _object_spread$
|
|
12399
|
+
function _object_spread$4(target) {
|
|
12400
12400
|
for(var i = 1; i < arguments.length; i++){
|
|
12401
12401
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12402
12402
|
var ownKeys = Object.keys(source);
|
|
@@ -12406,7 +12406,7 @@ function _object_spread$3(target) {
|
|
|
12406
12406
|
}));
|
|
12407
12407
|
}
|
|
12408
12408
|
ownKeys.forEach(function(key) {
|
|
12409
|
-
_define_property$
|
|
12409
|
+
_define_property$4(target, key, source[key]);
|
|
12410
12410
|
});
|
|
12411
12411
|
}
|
|
12412
12412
|
return target;
|
|
@@ -12546,7 +12546,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
12546
12546
|
}
|
|
12547
12547
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
12548
12548
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
12549
|
-
return _object_spread$
|
|
12549
|
+
return _object_spread$4({
|
|
12550
12550
|
projectId: projectId
|
|
12551
12551
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
12552
12552
|
}
|
|
@@ -12605,13 +12605,13 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
12605
12605
|
};
|
|
12606
12606
|
}
|
|
12607
12607
|
|
|
12608
|
-
function _array_like_to_array$
|
|
12608
|
+
function _array_like_to_array$9(arr, len) {
|
|
12609
12609
|
if (len == null || len > arr.length) len = arr.length;
|
|
12610
12610
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12611
12611
|
return arr2;
|
|
12612
12612
|
}
|
|
12613
12613
|
function _array_without_holes$1(arr) {
|
|
12614
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12614
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
12615
12615
|
}
|
|
12616
12616
|
function _iterable_to_array$2(iter) {
|
|
12617
12617
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -12620,15 +12620,15 @@ function _non_iterable_spread$1() {
|
|
|
12620
12620
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12621
12621
|
}
|
|
12622
12622
|
function _to_consumable_array$1(arr) {
|
|
12623
|
-
return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
12623
|
+
return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$9(arr) || _non_iterable_spread$1();
|
|
12624
12624
|
}
|
|
12625
|
-
function _unsupported_iterable_to_array$
|
|
12625
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
12626
12626
|
if (!o) return;
|
|
12627
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12627
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
12628
12628
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12629
12629
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12630
12630
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12631
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12631
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
12632
12632
|
}
|
|
12633
12633
|
/** Keys identify actual resources across Projects/tenants, never caller-supplied aliases or paths. */ var projectPipelineResourceClaimSchema = v3.z.object({
|
|
12634
12634
|
key: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
@@ -12674,15 +12674,15 @@ var projectPipelinePortfolioSchema = v3.z.object({
|
|
|
12674
12674
|
sharedAcrossProjects: v3.z.number().int().nonnegative()
|
|
12675
12675
|
}).strict();
|
|
12676
12676
|
|
|
12677
|
-
/** Derive requirements from typed execution semantics even when a legacy template omits its declaration. */ function _array_like_to_array$
|
|
12677
|
+
/** Derive requirements from typed execution semantics even when a legacy template omits its declaration. */ function _array_like_to_array$8(arr, len) {
|
|
12678
12678
|
if (len == null || len > arr.length) len = arr.length;
|
|
12679
12679
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12680
12680
|
return arr2;
|
|
12681
12681
|
}
|
|
12682
|
-
function _array_with_holes$
|
|
12682
|
+
function _array_with_holes$7(arr) {
|
|
12683
12683
|
if (Array.isArray(arr)) return arr;
|
|
12684
12684
|
}
|
|
12685
|
-
function _iterable_to_array_limit$
|
|
12685
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
12686
12686
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12687
12687
|
if (_i == null) return;
|
|
12688
12688
|
var _arr = [];
|
|
@@ -12706,19 +12706,19 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
12706
12706
|
}
|
|
12707
12707
|
return _arr;
|
|
12708
12708
|
}
|
|
12709
|
-
function _non_iterable_rest$
|
|
12709
|
+
function _non_iterable_rest$7() {
|
|
12710
12710
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12711
12711
|
}
|
|
12712
|
-
function _sliced_to_array$
|
|
12713
|
-
return _array_with_holes$
|
|
12712
|
+
function _sliced_to_array$6(arr, i) {
|
|
12713
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
|
|
12714
12714
|
}
|
|
12715
|
-
function _unsupported_iterable_to_array$
|
|
12715
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
12716
12716
|
if (!o) return;
|
|
12717
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12717
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
12718
12718
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12719
12719
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12720
12720
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12721
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12721
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
12722
12722
|
}
|
|
12723
12723
|
function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
12724
12724
|
var _definition_hostRequirements, _definition_hostRequirements1;
|
|
@@ -12774,7 +12774,7 @@ function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
|
12774
12774
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
12775
12775
|
try {
|
|
12776
12776
|
for(var _iterator = Object.entries((_binding_executorBindings = binding === null || binding === void 0 ? void 0 : binding.executorBindings) !== null && _binding_executorBindings !== void 0 ? _binding_executorBindings : {})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12777
|
-
var _step_value = _sliced_to_array$
|
|
12777
|
+
var _step_value = _sliced_to_array$6(_step.value, 2), slot = _step_value[0], executor = _step_value[1];
|
|
12778
12778
|
if (executor.kind === "assistant") requireFeature("pipeline.assistant", 1, [
|
|
12779
12779
|
"binding",
|
|
12780
12780
|
"executorBindings",
|
|
@@ -12813,7 +12813,7 @@ function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
|
12813
12813
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
12814
12814
|
try {
|
|
12815
12815
|
for(var _iterator1 = Object.entries((_definition_hostRequirements_features = (_definition_hostRequirements1 = definition.hostRequirements) === null || _definition_hostRequirements1 === void 0 ? void 0 : _definition_hostRequirements1.features) !== null && _definition_hostRequirements_features !== void 0 ? _definition_hostRequirements_features : {})[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12816
|
-
var _step_value1 = _sliced_to_array$
|
|
12816
|
+
var _step_value1 = _sliced_to_array$6(_step1.value, 2), feature = _step_value1[0], version = _step_value1[1];
|
|
12817
12817
|
requireFeature(feature, version);
|
|
12818
12818
|
}
|
|
12819
12819
|
} catch (err) {
|
|
@@ -12926,15 +12926,15 @@ var templateDependencyLocksSchema = zod.z.array(zod.z.object({
|
|
|
12926
12926
|
}).strict()).max(300)
|
|
12927
12927
|
}).strict()).max(200);
|
|
12928
12928
|
|
|
12929
|
-
function _array_like_to_array$
|
|
12929
|
+
function _array_like_to_array$7(arr, len) {
|
|
12930
12930
|
if (len == null || len > arr.length) len = arr.length;
|
|
12931
12931
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12932
12932
|
return arr2;
|
|
12933
12933
|
}
|
|
12934
|
-
function _array_with_holes$
|
|
12934
|
+
function _array_with_holes$6(arr) {
|
|
12935
12935
|
if (Array.isArray(arr)) return arr;
|
|
12936
12936
|
}
|
|
12937
|
-
function _iterable_to_array_limit$
|
|
12937
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
12938
12938
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12939
12939
|
if (_i == null) return;
|
|
12940
12940
|
var _arr = [];
|
|
@@ -12958,19 +12958,19 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
12958
12958
|
}
|
|
12959
12959
|
return _arr;
|
|
12960
12960
|
}
|
|
12961
|
-
function _non_iterable_rest$
|
|
12961
|
+
function _non_iterable_rest$6() {
|
|
12962
12962
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12963
12963
|
}
|
|
12964
|
-
function _sliced_to_array$
|
|
12965
|
-
return _array_with_holes$
|
|
12964
|
+
function _sliced_to_array$5(arr, i) {
|
|
12965
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$7(arr, i) || _non_iterable_rest$6();
|
|
12966
12966
|
}
|
|
12967
|
-
function _unsupported_iterable_to_array$
|
|
12967
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
12968
12968
|
if (!o) return;
|
|
12969
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12969
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
12970
12970
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12971
12971
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12972
12972
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12973
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
12973
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
12974
12974
|
}
|
|
12975
12975
|
var text$1 = zod.z.string().trim().min(1).max(300);
|
|
12976
12976
|
var key$1 = zod.z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$/);
|
|
@@ -13025,7 +13025,7 @@ var templateFilesSchema = zod.z.object({
|
|
|
13025
13025
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
13026
13026
|
try {
|
|
13027
13027
|
var _loop = function() {
|
|
13028
|
-
var _step_value = _sliced_to_array$
|
|
13028
|
+
var _step_value = _sliced_to_array$5(_step.value, 2), index = _step_value[0], entry = _step_value[1];
|
|
13029
13029
|
var path = entry.path.toLowerCase();
|
|
13030
13030
|
if (paths.has(path)) ctx.addIssue({
|
|
13031
13031
|
code: "custom",
|
|
@@ -13483,15 +13483,15 @@ var executionObservationConversationsSchema = v3.z.object({
|
|
|
13483
13483
|
observedAt: v3.z.string()
|
|
13484
13484
|
});
|
|
13485
13485
|
|
|
13486
|
-
function _array_like_to_array$
|
|
13486
|
+
function _array_like_to_array$6(arr, len) {
|
|
13487
13487
|
if (len == null || len > arr.length) len = arr.length;
|
|
13488
13488
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13489
13489
|
return arr2;
|
|
13490
13490
|
}
|
|
13491
|
-
function _array_with_holes$
|
|
13491
|
+
function _array_with_holes$5(arr) {
|
|
13492
13492
|
if (Array.isArray(arr)) return arr;
|
|
13493
13493
|
}
|
|
13494
|
-
function _iterable_to_array_limit$
|
|
13494
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
13495
13495
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13496
13496
|
if (_i == null) return;
|
|
13497
13497
|
var _arr = [];
|
|
@@ -13515,19 +13515,19 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
13515
13515
|
}
|
|
13516
13516
|
return _arr;
|
|
13517
13517
|
}
|
|
13518
|
-
function _non_iterable_rest$
|
|
13518
|
+
function _non_iterable_rest$5() {
|
|
13519
13519
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13520
13520
|
}
|
|
13521
|
-
function _sliced_to_array$
|
|
13522
|
-
return _array_with_holes$
|
|
13521
|
+
function _sliced_to_array$4(arr, i) {
|
|
13522
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$5();
|
|
13523
13523
|
}
|
|
13524
|
-
function _unsupported_iterable_to_array$
|
|
13524
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
13525
13525
|
if (!o) return;
|
|
13526
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13526
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
13527
13527
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13528
13528
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13529
13529
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13530
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
13530
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
13531
13531
|
}
|
|
13532
13532
|
/**
|
|
13533
13533
|
* Channels of all upstream and downstream nodes relative to the starting point startKey.
|
|
@@ -13555,7 +13555,7 @@ function findStartNodes(graph, key) {
|
|
|
13555
13555
|
for(var _iterator = connections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
13556
13556
|
var conn = _step.value;
|
|
13557
13557
|
if (!toMap.has(conn.to)) toMap.set(conn.to, []);
|
|
13558
|
-
var _conn_from_split = _sliced_to_array$
|
|
13558
|
+
var _conn_from_split = _sliced_to_array$4(conn.from.split("/"), 1), fromKey = _conn_from_split[0];
|
|
13559
13559
|
if (conn.type === "edge") {
|
|
13560
13560
|
toMap.get(conn.to).push(fromKey);
|
|
13561
13561
|
}
|
|
@@ -13713,30 +13713,30 @@ function shortTitle(input) {
|
|
|
13713
13713
|
return null;
|
|
13714
13714
|
}
|
|
13715
13715
|
|
|
13716
|
-
function _array_like_to_array$
|
|
13716
|
+
function _array_like_to_array$5(arr, len) {
|
|
13717
13717
|
if (len == null || len > arr.length) len = arr.length;
|
|
13718
13718
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13719
13719
|
return arr2;
|
|
13720
13720
|
}
|
|
13721
|
-
function _array_with_holes$
|
|
13721
|
+
function _array_with_holes$4(arr) {
|
|
13722
13722
|
if (Array.isArray(arr)) return arr;
|
|
13723
13723
|
}
|
|
13724
13724
|
function _iterable_to_array$1(iter) {
|
|
13725
13725
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13726
13726
|
}
|
|
13727
|
-
function _non_iterable_rest$
|
|
13727
|
+
function _non_iterable_rest$4() {
|
|
13728
13728
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13729
13729
|
}
|
|
13730
13730
|
function _to_array(arr) {
|
|
13731
|
-
return _array_with_holes$
|
|
13731
|
+
return _array_with_holes$4(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_rest$4();
|
|
13732
13732
|
}
|
|
13733
|
-
function _unsupported_iterable_to_array$
|
|
13733
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
13734
13734
|
if (!o) return;
|
|
13735
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13735
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
13736
13736
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13737
13737
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13738
13738
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13739
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
13739
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
13740
13740
|
}
|
|
13741
13741
|
/**
|
|
13742
13742
|
*
|
|
@@ -13913,15 +13913,15 @@ function defaultModelDefinition(role) {
|
|
|
13913
13913
|
});
|
|
13914
13914
|
}
|
|
13915
13915
|
|
|
13916
|
-
function _array_like_to_array$
|
|
13916
|
+
function _array_like_to_array$4(arr, len) {
|
|
13917
13917
|
if (len == null || len > arr.length) len = arr.length;
|
|
13918
13918
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13919
13919
|
return arr2;
|
|
13920
13920
|
}
|
|
13921
|
-
function _array_with_holes$
|
|
13921
|
+
function _array_with_holes$3(arr) {
|
|
13922
13922
|
if (Array.isArray(arr)) return arr;
|
|
13923
13923
|
}
|
|
13924
|
-
function _iterable_to_array_limit$
|
|
13924
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
13925
13925
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13926
13926
|
if (_i == null) return;
|
|
13927
13927
|
var _arr = [];
|
|
@@ -13945,19 +13945,19 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
13945
13945
|
}
|
|
13946
13946
|
return _arr;
|
|
13947
13947
|
}
|
|
13948
|
-
function _non_iterable_rest$
|
|
13948
|
+
function _non_iterable_rest$3() {
|
|
13949
13949
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13950
13950
|
}
|
|
13951
|
-
function _sliced_to_array$
|
|
13952
|
-
return _array_with_holes$
|
|
13951
|
+
function _sliced_to_array$3(arr, i) {
|
|
13952
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$3();
|
|
13953
13953
|
}
|
|
13954
|
-
function _unsupported_iterable_to_array$
|
|
13954
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
13955
13955
|
if (!o) return;
|
|
13956
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13956
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
13957
13957
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13958
13958
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13959
13959
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13960
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
13960
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
13961
13961
|
}
|
|
13962
13962
|
var modelIdentitySchema = zod.z.object({
|
|
13963
13963
|
copilotId: zod.z.string().uuid(),
|
|
@@ -14013,7 +14013,7 @@ function sameModelIdentity(left, right) {
|
|
|
14013
14013
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
14014
14014
|
try {
|
|
14015
14015
|
for(var _iterator = Object.entries(previous !== null && previous !== void 0 ? previous : {})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
14016
|
-
var _step_value = _sliced_to_array$
|
|
14016
|
+
var _step_value = _sliced_to_array$3(_step.value, 2), name = _step_value[0], before = _step_value[1];
|
|
14017
14017
|
if (!names.has(name)) changes.push({
|
|
14018
14018
|
name: name,
|
|
14019
14019
|
before: before,
|
|
@@ -14246,13 +14246,13 @@ var PermissionGroups = {
|
|
|
14246
14246
|
]
|
|
14247
14247
|
};
|
|
14248
14248
|
|
|
14249
|
-
function _array_like_to_array$
|
|
14249
|
+
function _array_like_to_array$3(arr, len) {
|
|
14250
14250
|
if (len == null || len > arr.length) len = arr.length;
|
|
14251
14251
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14252
14252
|
return arr2;
|
|
14253
14253
|
}
|
|
14254
14254
|
function _array_without_holes(arr) {
|
|
14255
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14255
|
+
if (Array.isArray(arr)) return _array_like_to_array$3(arr);
|
|
14256
14256
|
}
|
|
14257
14257
|
function _iterable_to_array(iter) {
|
|
14258
14258
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -14261,15 +14261,15 @@ function _non_iterable_spread() {
|
|
|
14261
14261
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14262
14262
|
}
|
|
14263
14263
|
function _to_consumable_array(arr) {
|
|
14264
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$
|
|
14264
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
|
|
14265
14265
|
}
|
|
14266
|
-
function _unsupported_iterable_to_array$
|
|
14266
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
14267
14267
|
if (!o) return;
|
|
14268
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14268
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
14269
14269
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14270
14270
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14271
14271
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14272
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14272
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
14273
14273
|
}
|
|
14274
14274
|
var modulePermissions = [
|
|
14275
14275
|
{
|
|
@@ -14793,15 +14793,15 @@ exports.BusinessType = void 0;
|
|
|
14793
14793
|
BusinessType["INDICATOR"] = "INDICATOR";
|
|
14794
14794
|
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
14795
14795
|
|
|
14796
|
-
function _array_like_to_array$
|
|
14796
|
+
function _array_like_to_array$2(arr, len) {
|
|
14797
14797
|
if (len == null || len > arr.length) len = arr.length;
|
|
14798
14798
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14799
14799
|
return arr2;
|
|
14800
14800
|
}
|
|
14801
|
-
function _array_with_holes$
|
|
14801
|
+
function _array_with_holes$2(arr) {
|
|
14802
14802
|
if (Array.isArray(arr)) return arr;
|
|
14803
14803
|
}
|
|
14804
|
-
function _iterable_to_array_limit$
|
|
14804
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
14805
14805
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14806
14806
|
if (_i == null) return;
|
|
14807
14807
|
var _arr = [];
|
|
@@ -14825,19 +14825,19 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
14825
14825
|
}
|
|
14826
14826
|
return _arr;
|
|
14827
14827
|
}
|
|
14828
|
-
function _non_iterable_rest$
|
|
14828
|
+
function _non_iterable_rest$2() {
|
|
14829
14829
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14830
14830
|
}
|
|
14831
|
-
function _sliced_to_array$
|
|
14832
|
-
return _array_with_holes$
|
|
14831
|
+
function _sliced_to_array$2(arr, i) {
|
|
14832
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
14833
14833
|
}
|
|
14834
|
-
function _unsupported_iterable_to_array$
|
|
14834
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
14835
14835
|
if (!o) return;
|
|
14836
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14836
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
14837
14837
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14838
14838
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14839
14839
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14840
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
14840
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
14841
14841
|
}
|
|
14842
14842
|
exports.ScheduleTaskStatus = void 0;
|
|
14843
14843
|
(function(ScheduleTaskStatus) {
|
|
@@ -14860,7 +14860,7 @@ exports.TaskFrequency = void 0;
|
|
|
14860
14860
|
* @returns
|
|
14861
14861
|
*/ function generateCronExpression(schedule) {
|
|
14862
14862
|
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
14863
|
-
var _schedule_time_split = _sliced_to_array$
|
|
14863
|
+
var _schedule_time_split = _sliced_to_array$2(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
|
|
14864
14864
|
var hour = parseInt(hourStr, 10);
|
|
14865
14865
|
var minute = parseInt(minuteStr, 10);
|
|
14866
14866
|
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
@@ -14930,15 +14930,15 @@ var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
|
14930
14930
|
];
|
|
14931
14931
|
/** Platform-provided navigation, available without Assistant middleware. */ var CONVERSATION_MAP_FEATURE = "platform.conversation-map";
|
|
14932
14932
|
|
|
14933
|
-
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array(arr, len) {
|
|
14933
|
+
/** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array$1(arr, len) {
|
|
14934
14934
|
if (len == null || len > arr.length) len = arr.length;
|
|
14935
14935
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14936
14936
|
return arr2;
|
|
14937
14937
|
}
|
|
14938
|
-
function _array_with_holes(arr) {
|
|
14938
|
+
function _array_with_holes$1(arr) {
|
|
14939
14939
|
if (Array.isArray(arr)) return arr;
|
|
14940
14940
|
}
|
|
14941
|
-
function _define_property$
|
|
14941
|
+
function _define_property$3(obj, key, value) {
|
|
14942
14942
|
if (key in obj) {
|
|
14943
14943
|
Object.defineProperty(obj, key, {
|
|
14944
14944
|
value: value,
|
|
@@ -14951,7 +14951,7 @@ function _define_property$2(obj, key, value) {
|
|
|
14951
14951
|
}
|
|
14952
14952
|
return obj;
|
|
14953
14953
|
}
|
|
14954
|
-
function _iterable_to_array_limit(arr, i) {
|
|
14954
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
14955
14955
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14956
14956
|
if (_i == null) return;
|
|
14957
14957
|
var _arr = [];
|
|
@@ -14975,10 +14975,10 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
14975
14975
|
}
|
|
14976
14976
|
return _arr;
|
|
14977
14977
|
}
|
|
14978
|
-
function _non_iterable_rest() {
|
|
14978
|
+
function _non_iterable_rest$1() {
|
|
14979
14979
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
14980
14980
|
}
|
|
14981
|
-
function _object_spread$
|
|
14981
|
+
function _object_spread$3(target) {
|
|
14982
14982
|
for(var i = 1; i < arguments.length; i++){
|
|
14983
14983
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14984
14984
|
var ownKeys = Object.keys(source);
|
|
@@ -14988,21 +14988,21 @@ function _object_spread$2(target) {
|
|
|
14988
14988
|
}));
|
|
14989
14989
|
}
|
|
14990
14990
|
ownKeys.forEach(function(key) {
|
|
14991
|
-
_define_property$
|
|
14991
|
+
_define_property$3(target, key, source[key]);
|
|
14992
14992
|
});
|
|
14993
14993
|
}
|
|
14994
14994
|
return target;
|
|
14995
14995
|
}
|
|
14996
|
-
function _sliced_to_array(arr, i) {
|
|
14997
|
-
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
14996
|
+
function _sliced_to_array$1(arr, i) {
|
|
14997
|
+
return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
|
|
14998
14998
|
}
|
|
14999
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
14999
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
15000
15000
|
if (!o) return;
|
|
15001
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
15001
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
15002
15002
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15003
15003
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15004
15004
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15005
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
15005
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
15006
15006
|
}
|
|
15007
15007
|
var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
15008
15008
|
/** Parse the public lg.chat.event boundary, keeping arbitrary logs out of navigation. */ function parseWorkbenchViewOpenEvent(value) {
|
|
@@ -15015,7 +15015,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15015
15015
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
15016
15016
|
try {
|
|
15017
15017
|
for(var _iterator = Object.entries(value.parameters)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
15018
|
-
var _step_value = _sliced_to_array(_step.value, 2), key = _step_value[0], item = _step_value[1];
|
|
15018
|
+
var _step_value = _sliced_to_array$1(_step.value, 2), key = _step_value[0], item = _step_value[1];
|
|
15019
15019
|
if (isViewScalar(item)) parameters[key] = item;
|
|
15020
15020
|
else if (Array.isArray(item) && item.every(isViewScalar)) parameters[key] = item;
|
|
15021
15021
|
else return null;
|
|
@@ -15035,7 +15035,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15035
15035
|
}
|
|
15036
15036
|
}
|
|
15037
15037
|
}
|
|
15038
|
-
return _object_spread$
|
|
15038
|
+
return _object_spread$3({
|
|
15039
15039
|
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
15040
15040
|
viewKey: value.viewKey,
|
|
15041
15041
|
projectId: value.projectId
|
|
@@ -15051,7 +15051,7 @@ function isViewScalar(value) {
|
|
|
15051
15051
|
return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
|
|
15052
15052
|
}
|
|
15053
15053
|
|
|
15054
|
-
function _define_property$
|
|
15054
|
+
function _define_property$2(obj, key, value) {
|
|
15055
15055
|
if (key in obj) {
|
|
15056
15056
|
Object.defineProperty(obj, key, {
|
|
15057
15057
|
value: value,
|
|
@@ -15064,7 +15064,7 @@ function _define_property$1(obj, key, value) {
|
|
|
15064
15064
|
}
|
|
15065
15065
|
return obj;
|
|
15066
15066
|
}
|
|
15067
|
-
function _object_spread$
|
|
15067
|
+
function _object_spread$2(target) {
|
|
15068
15068
|
for(var i = 1; i < arguments.length; i++){
|
|
15069
15069
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15070
15070
|
var ownKeys = Object.keys(source);
|
|
@@ -15074,7 +15074,7 @@ function _object_spread$1(target) {
|
|
|
15074
15074
|
}));
|
|
15075
15075
|
}
|
|
15076
15076
|
ownKeys.forEach(function(key) {
|
|
15077
|
-
_define_property$
|
|
15077
|
+
_define_property$2(target, key, source[key]);
|
|
15078
15078
|
});
|
|
15079
15079
|
}
|
|
15080
15080
|
return target;
|
|
@@ -15087,14 +15087,14 @@ var hasIntegrationMethod = function(value) {
|
|
|
15087
15087
|
return !value.integrationId || !!value.authMethodId;
|
|
15088
15088
|
};
|
|
15089
15089
|
/** An integration reference must name the Connector authentication method that consumes it. */ var workspaceConnectorAuthorizationSchema = v3.z.object(authorizationFields).strict().refine(hasIntegrationMethod);
|
|
15090
|
-
/** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = v3.z.object(_object_spread$
|
|
15090
|
+
/** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = v3.z.object(_object_spread$2({
|
|
15091
15091
|
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
15092
15092
|
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
15093
15093
|
|
|
15094
15094
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
15095
15095
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
15096
15096
|
|
|
15097
|
-
function _define_property(obj, key, value) {
|
|
15097
|
+
function _define_property$1(obj, key, value) {
|
|
15098
15098
|
if (key in obj) {
|
|
15099
15099
|
Object.defineProperty(obj, key, {
|
|
15100
15100
|
value: value,
|
|
@@ -15107,7 +15107,7 @@ function _define_property(obj, key, value) {
|
|
|
15107
15107
|
}
|
|
15108
15108
|
return obj;
|
|
15109
15109
|
}
|
|
15110
|
-
function _object_spread(target) {
|
|
15110
|
+
function _object_spread$1(target) {
|
|
15111
15111
|
for(var i = 1; i < arguments.length; i++){
|
|
15112
15112
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15113
15113
|
var ownKeys = Object.keys(source);
|
|
@@ -15117,7 +15117,7 @@ function _object_spread(target) {
|
|
|
15117
15117
|
}));
|
|
15118
15118
|
}
|
|
15119
15119
|
ownKeys.forEach(function(key) {
|
|
15120
|
-
_define_property(target, key, source[key]);
|
|
15120
|
+
_define_property$1(target, key, source[key]);
|
|
15121
15121
|
});
|
|
15122
15122
|
}
|
|
15123
15123
|
return target;
|
|
@@ -15165,7 +15165,7 @@ var anchor = {
|
|
|
15165
15165
|
threadId: v3.z.string().optional(),
|
|
15166
15166
|
executionId: v3.z.string().optional()
|
|
15167
15167
|
};
|
|
15168
|
-
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15168
|
+
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread$1({
|
|
15169
15169
|
id: v3.z.string(),
|
|
15170
15170
|
laneId: v3.z.string(),
|
|
15171
15171
|
kind: v3.z.enum([
|
|
@@ -15186,7 +15186,7 @@ var trailStepSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
|
15186
15186
|
input: v3.z.string().optional(),
|
|
15187
15187
|
output: v3.z.string().optional()
|
|
15188
15188
|
}));
|
|
15189
|
-
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15189
|
+
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread$1({
|
|
15190
15190
|
id: v3.z.string(),
|
|
15191
15191
|
parentId: v3.z.string().nullable(),
|
|
15192
15192
|
spawnStepId: v3.z.string().optional(),
|
|
@@ -15342,6 +15342,140 @@ var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
|
|
|
15342
15342
|
|
|
15343
15343
|
/** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
|
|
15344
15344
|
|
|
15345
|
+
function _array_like_to_array(arr, len) {
|
|
15346
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
15347
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15348
|
+
return arr2;
|
|
15349
|
+
}
|
|
15350
|
+
function _array_with_holes(arr) {
|
|
15351
|
+
if (Array.isArray(arr)) return arr;
|
|
15352
|
+
}
|
|
15353
|
+
function _define_property(obj, key, value) {
|
|
15354
|
+
if (key in obj) {
|
|
15355
|
+
Object.defineProperty(obj, key, {
|
|
15356
|
+
value: value,
|
|
15357
|
+
enumerable: true,
|
|
15358
|
+
configurable: true,
|
|
15359
|
+
writable: true
|
|
15360
|
+
});
|
|
15361
|
+
} else {
|
|
15362
|
+
obj[key] = value;
|
|
15363
|
+
}
|
|
15364
|
+
return obj;
|
|
15365
|
+
}
|
|
15366
|
+
function _iterable_to_array_limit(arr, i) {
|
|
15367
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
15368
|
+
if (_i == null) return;
|
|
15369
|
+
var _arr = [];
|
|
15370
|
+
var _n = true;
|
|
15371
|
+
var _d = false;
|
|
15372
|
+
var _s, _e;
|
|
15373
|
+
try {
|
|
15374
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
15375
|
+
_arr.push(_s.value);
|
|
15376
|
+
if (i && _arr.length === i) break;
|
|
15377
|
+
}
|
|
15378
|
+
} catch (err) {
|
|
15379
|
+
_d = true;
|
|
15380
|
+
_e = err;
|
|
15381
|
+
} finally{
|
|
15382
|
+
try {
|
|
15383
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
15384
|
+
} finally{
|
|
15385
|
+
if (_d) throw _e;
|
|
15386
|
+
}
|
|
15387
|
+
}
|
|
15388
|
+
return _arr;
|
|
15389
|
+
}
|
|
15390
|
+
function _non_iterable_rest() {
|
|
15391
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
15392
|
+
}
|
|
15393
|
+
function _object_spread(target) {
|
|
15394
|
+
for(var i = 1; i < arguments.length; i++){
|
|
15395
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
15396
|
+
var ownKeys = Object.keys(source);
|
|
15397
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
15398
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
15399
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15400
|
+
}));
|
|
15401
|
+
}
|
|
15402
|
+
ownKeys.forEach(function(key) {
|
|
15403
|
+
_define_property(target, key, source[key]);
|
|
15404
|
+
});
|
|
15405
|
+
}
|
|
15406
|
+
return target;
|
|
15407
|
+
}
|
|
15408
|
+
function _sliced_to_array(arr, i) {
|
|
15409
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
15410
|
+
}
|
|
15411
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
15412
|
+
if (!o) return;
|
|
15413
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
15414
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15415
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15416
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15417
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
15418
|
+
}
|
|
15419
|
+
// Public diagnostics are authored separately from driver errors. This is defense in depth,
|
|
15420
|
+
// not a sanitizer for arbitrary logs: producers must never copy raw exceptions into message.
|
|
15421
|
+
var privateText = /[\u0000-\u001f\u007f]|(?:https?|jdbc|postgres(?:ql)?|mysql):|\b(?:password|passwd|pwd|secret|token|authorization|cookie|api[_-]?key)\s*[:=]|\bBearer\s|-----BEGIN|\b(?:SELECT|WITH)\b[\s\S]*\bFROM\b|\b(?:INSERT\s+INTO|UPDATE\s+\S+\s+SET|DELETE\s+FROM)\b|<\/?[a-z][^>]*>|(?:\/Users\/|\/home\/|\/private\/|[A-Z]:\\)|\bat\s+\S+\s*\(/i;
|
|
15422
|
+
var publicText = v3.z.string().trim().min(1).max(600).refine(function(value) {
|
|
15423
|
+
return !privateText.test(value);
|
|
15424
|
+
});
|
|
15425
|
+
var reference = v3.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/);
|
|
15426
|
+
/** Portable HTTP/provider failure contract. No arbitrary details, cause, query or connection fields. */ var analyticsDiagnosticSchema = v3.z.object({
|
|
15427
|
+
schema: v3.z.literal("xpert.analytics.diagnostic"),
|
|
15428
|
+
version: v3.z.literal(1),
|
|
15429
|
+
code: v3.z.string().regex(/^[A-Z][A-Z0-9_-]{2,79}$/),
|
|
15430
|
+
stage: v3.z.enum([
|
|
15431
|
+
"request",
|
|
15432
|
+
"source",
|
|
15433
|
+
"validation",
|
|
15434
|
+
"authorization",
|
|
15435
|
+
"execution",
|
|
15436
|
+
"result",
|
|
15437
|
+
"dependency"
|
|
15438
|
+
]),
|
|
15439
|
+
message: publicText,
|
|
15440
|
+
retryable: v3.z.boolean(),
|
|
15441
|
+
upstreamExecutionId: reference.optional(),
|
|
15442
|
+
auditRef: reference.optional()
|
|
15443
|
+
}).strict().refine(function(value) {
|
|
15444
|
+
return !value.retryable || value.stage === "execution" || value.stage === "dependency";
|
|
15445
|
+
});
|
|
15446
|
+
/** Invalid provider diagnostics fail closed; never return Zod errors containing received input. */ function parseAnalyticsDiagnostic(value) {
|
|
15447
|
+
try {
|
|
15448
|
+
if (!value || typeof value !== "object") return undefined;
|
|
15449
|
+
var properties = Object.getOwnPropertyDescriptors(value);
|
|
15450
|
+
if (Object.values(properties).some(function(property) {
|
|
15451
|
+
return !("value" in property);
|
|
15452
|
+
})) return undefined;
|
|
15453
|
+
var parsed = analyticsDiagnosticSchema.safeParse(Object.fromEntries(Object.entries(properties).map(function(param) {
|
|
15454
|
+
var _param = _sliced_to_array(param, 2), key = _param[0], property = _param[1];
|
|
15455
|
+
return [
|
|
15456
|
+
key,
|
|
15457
|
+
property.value
|
|
15458
|
+
];
|
|
15459
|
+
})));
|
|
15460
|
+
if (!parsed.success) return undefined;
|
|
15461
|
+
var _parsed_data = parsed.data, schema = _parsed_data.schema, version = _parsed_data.version, code = _parsed_data.code, stage = _parsed_data.stage, message = _parsed_data.message, retryable = _parsed_data.retryable, upstreamExecutionId = _parsed_data.upstreamExecutionId, auditRef = _parsed_data.auditRef;
|
|
15462
|
+
return _object_spread({
|
|
15463
|
+
schema: schema,
|
|
15464
|
+
version: version,
|
|
15465
|
+
code: code,
|
|
15466
|
+
stage: stage,
|
|
15467
|
+
message: message,
|
|
15468
|
+
retryable: retryable
|
|
15469
|
+
}, upstreamExecutionId ? {
|
|
15470
|
+
upstreamExecutionId: upstreamExecutionId
|
|
15471
|
+
} : {}, auditRef ? {
|
|
15472
|
+
auditRef: auditRef
|
|
15473
|
+
} : {});
|
|
15474
|
+
} catch (e) {
|
|
15475
|
+
return undefined;
|
|
15476
|
+
}
|
|
15477
|
+
}
|
|
15478
|
+
|
|
15345
15479
|
var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
|
|
15346
15480
|
|
|
15347
15481
|
/** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
|
|
@@ -15592,6 +15726,15 @@ function parseNotificationSnapshot(value) {
|
|
|
15592
15726
|
return notificationSnapshotSchema.parse(value);
|
|
15593
15727
|
}
|
|
15594
15728
|
|
|
15729
|
+
var BUSINESS_AREA_ACCESS_ROLES = [
|
|
15730
|
+
"consumer",
|
|
15731
|
+
"publisher",
|
|
15732
|
+
"domain_admin"
|
|
15733
|
+
];
|
|
15734
|
+
function businessAreaRoleAllows(role, action) {
|
|
15735
|
+
return action === "view" || (action === "publish" ? role !== "consumer" : role === "domain_admin");
|
|
15736
|
+
}
|
|
15737
|
+
|
|
15595
15738
|
Object.defineProperty(exports, "createResourceCardContent", {
|
|
15596
15739
|
enumerable: true,
|
|
15597
15740
|
get: function () { return chatkitTypes.createResourceCardContent; }
|
|
@@ -15631,6 +15774,7 @@ exports.ASSISTANT_USER_PREFERENCES_VERSION = ASSISTANT_USER_PREFERENCES_VERSION;
|
|
|
15631
15774
|
exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
15632
15775
|
exports.BUILTIN_KNOWLEDGE_FILE_TYPES = BUILTIN_KNOWLEDGE_FILE_TYPES;
|
|
15633
15776
|
exports.BUILTIN_KNOWLEDGE_PARSER = BUILTIN_KNOWLEDGE_PARSER;
|
|
15777
|
+
exports.BUSINESS_AREA_ACCESS_ROLES = BUSINESS_AREA_ACCESS_ROLES;
|
|
15634
15778
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
15635
15779
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
15636
15780
|
exports.CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE;
|
|
@@ -15874,6 +16018,7 @@ exports.agentRuntimeProgressSchema = agentRuntimeProgressSchema;
|
|
|
15874
16018
|
exports.agentUniqueName = agentUniqueName;
|
|
15875
16019
|
exports.aggregatePipelineAnalytics = aggregatePipelineAnalytics;
|
|
15876
16020
|
exports.allChannels = allChannels;
|
|
16021
|
+
exports.analyticsDiagnosticSchema = analyticsDiagnosticSchema;
|
|
15877
16022
|
exports.announcementActionSchema = announcementActionSchema;
|
|
15878
16023
|
exports.announcementContentSchema = announcementContentSchema;
|
|
15879
16024
|
exports.announcementRevisionSchema = announcementRevisionSchema;
|
|
@@ -15891,6 +16036,7 @@ exports.assistantTemplateManifestSchema = assistantTemplateManifestSchema;
|
|
|
15891
16036
|
exports.assistantTemplateSetupStateSchema = assistantTemplateSetupStateSchema;
|
|
15892
16037
|
exports.buildChunkTree = buildChunkTree;
|
|
15893
16038
|
exports.buildXpertMarketplaceProfileSnapshot = buildXpertMarketplaceProfileSnapshot;
|
|
16039
|
+
exports.businessAreaRoleAllows = businessAreaRoleAllows;
|
|
15894
16040
|
exports.canAllowMcpToolDirectly = canAllowMcpToolDirectly;
|
|
15895
16041
|
exports.canReadProjectPipelineConfiguration = canReadProjectPipelineConfiguration;
|
|
15896
16042
|
exports.channelName = channelName;
|
|
@@ -16103,6 +16249,7 @@ exports.notificationSnapshotSchema = notificationSnapshotSchema;
|
|
|
16103
16249
|
exports.notificationSourceSchema = notificationSourceSchema;
|
|
16104
16250
|
exports.omitXpertRelations = omitXpertRelations;
|
|
16105
16251
|
exports.orderAssistantXperts = orderAssistantXperts;
|
|
16252
|
+
exports.parseAnalyticsDiagnostic = parseAnalyticsDiagnostic;
|
|
16106
16253
|
exports.parseAnnouncement = parseAnnouncement;
|
|
16107
16254
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
16108
16255
|
exports.parseNotificationSnapshot = parseNotificationSnapshot;
|