@xpert-ai/contracts 3.30.2 → 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 +677 -528
- package/index.esm.js +673 -529
- 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/knowledgebase.model.d.ts +3 -0
- package/src/ai/model-discovery.model.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/src/view-extension/assistant-profile.d.ts +1 -0
- package/src/view-extension/model.d.ts +1 -0
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,41 +2877,42 @@ 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,
|
|
2892
2892
|
exports.AiModelTypeEnum.TEXT_EMBEDDING,
|
|
2893
2893
|
exports.AiModelTypeEnum.RERANK
|
|
2894
2894
|
];
|
|
2895
|
+
var DEFAULT_EMBEDDING_BATCH_SIZE = 10;
|
|
2895
2896
|
var positiveInteger = zod.z.number().int().positive().max(Number.MAX_SAFE_INTEGER);
|
|
2896
2897
|
var common$1 = {
|
|
2897
2898
|
contextSize: positiveInteger,
|
|
2898
2899
|
maxConcurrency: positiveInteger.max(1000)
|
|
2899
2900
|
};
|
|
2900
2901
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2901
|
-
zod.z.object(_object_spread_props$i(_object_spread$
|
|
2902
|
+
zod.z.object(_object_spread_props$i(_object_spread$o({
|
|
2902
2903
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2903
2904
|
}, common$1), {
|
|
2904
2905
|
maxOutputTokens: positiveInteger,
|
|
2905
2906
|
defaultMaxTokens: positiveInteger,
|
|
2906
2907
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2907
2908
|
})).strict(),
|
|
2908
|
-
zod.z.object(_object_spread_props$i(_object_spread$
|
|
2909
|
+
zod.z.object(_object_spread_props$i(_object_spread$o({
|
|
2909
2910
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2910
2911
|
}, common$1), {
|
|
2911
2912
|
dimensions: positiveInteger.optional(),
|
|
2912
2913
|
batchSize: positiveInteger.max(2048)
|
|
2913
2914
|
})).strict(),
|
|
2914
|
-
zod.z.object(_object_spread$
|
|
2915
|
+
zod.z.object(_object_spread$o({
|
|
2915
2916
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2916
2917
|
}, common$1)).strict()
|
|
2917
2918
|
]).superRefine(function(value, ctx) {
|
|
@@ -2943,7 +2944,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2943
2944
|
};
|
|
2944
2945
|
switch(modelType){
|
|
2945
2946
|
case exports.AiModelTypeEnum.LLM:
|
|
2946
|
-
return _object_spread_props$i(_object_spread$
|
|
2947
|
+
return _object_spread_props$i(_object_spread$o({
|
|
2947
2948
|
modelType: modelType
|
|
2948
2949
|
}, common), {
|
|
2949
2950
|
maxOutputTokens: 2048,
|
|
@@ -2951,13 +2952,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2951
2952
|
features: []
|
|
2952
2953
|
});
|
|
2953
2954
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2954
|
-
return _object_spread_props$i(_object_spread$
|
|
2955
|
+
return _object_spread_props$i(_object_spread$o({
|
|
2955
2956
|
modelType: modelType
|
|
2956
2957
|
}, common), {
|
|
2957
|
-
batchSize:
|
|
2958
|
+
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
2958
2959
|
});
|
|
2959
2960
|
case exports.AiModelTypeEnum.RERANK:
|
|
2960
|
-
return _object_spread$
|
|
2961
|
+
return _object_spread$o({
|
|
2961
2962
|
modelType: modelType
|
|
2962
2963
|
}, common);
|
|
2963
2964
|
}
|
|
@@ -3570,7 +3571,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3570
3571
|
return node.title || node.key;
|
|
3571
3572
|
}
|
|
3572
3573
|
|
|
3573
|
-
function _define_property$
|
|
3574
|
+
function _define_property$n(obj, key, value) {
|
|
3574
3575
|
if (key in obj) {
|
|
3575
3576
|
Object.defineProperty(obj, key, {
|
|
3576
3577
|
value: value,
|
|
@@ -3583,7 +3584,7 @@ function _define_property$m(obj, key, value) {
|
|
|
3583
3584
|
}
|
|
3584
3585
|
return obj;
|
|
3585
3586
|
}
|
|
3586
|
-
function _object_spread$
|
|
3587
|
+
function _object_spread$n(target) {
|
|
3587
3588
|
for(var i = 1; i < arguments.length; i++){
|
|
3588
3589
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3589
3590
|
var ownKeys = Object.keys(source);
|
|
@@ -3593,7 +3594,7 @@ function _object_spread$m(target) {
|
|
|
3593
3594
|
}));
|
|
3594
3595
|
}
|
|
3595
3596
|
ownKeys.forEach(function(key) {
|
|
3596
|
-
_define_property$
|
|
3597
|
+
_define_property$n(target, key, source[key]);
|
|
3597
3598
|
});
|
|
3598
3599
|
}
|
|
3599
3600
|
return target;
|
|
@@ -3684,7 +3685,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
3684
3685
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
|
|
3685
3686
|
"maxConcurrency"
|
|
3686
3687
|
]);
|
|
3687
|
-
return _object_spread_props$h(_object_spread$
|
|
3688
|
+
return _object_spread_props$h(_object_spread$n({}, config), {
|
|
3688
3689
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3689
3690
|
});
|
|
3690
3691
|
}
|
|
@@ -3770,15 +3771,15 @@ var VariableOperations = [
|
|
|
3770
3771
|
}
|
|
3771
3772
|
];
|
|
3772
3773
|
|
|
3773
|
-
function _array_like_to_array$
|
|
3774
|
+
function _array_like_to_array$s(arr, len) {
|
|
3774
3775
|
if (len == null || len > arr.length) len = arr.length;
|
|
3775
3776
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3776
3777
|
return arr2;
|
|
3777
3778
|
}
|
|
3778
|
-
function _array_with_holes$
|
|
3779
|
+
function _array_with_holes$h(arr) {
|
|
3779
3780
|
if (Array.isArray(arr)) return arr;
|
|
3780
3781
|
}
|
|
3781
|
-
function _define_property$
|
|
3782
|
+
function _define_property$m(obj, key, value) {
|
|
3782
3783
|
if (key in obj) {
|
|
3783
3784
|
Object.defineProperty(obj, key, {
|
|
3784
3785
|
value: value,
|
|
@@ -3791,7 +3792,7 @@ function _define_property$l(obj, key, value) {
|
|
|
3791
3792
|
}
|
|
3792
3793
|
return obj;
|
|
3793
3794
|
}
|
|
3794
|
-
function _iterable_to_array_limit$
|
|
3795
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
3795
3796
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3796
3797
|
if (_i == null) return;
|
|
3797
3798
|
var _arr = [];
|
|
@@ -3815,10 +3816,10 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
3815
3816
|
}
|
|
3816
3817
|
return _arr;
|
|
3817
3818
|
}
|
|
3818
|
-
function _non_iterable_rest$
|
|
3819
|
+
function _non_iterable_rest$h() {
|
|
3819
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.");
|
|
3820
3821
|
}
|
|
3821
|
-
function _object_spread$
|
|
3822
|
+
function _object_spread$m(target) {
|
|
3822
3823
|
for(var i = 1; i < arguments.length; i++){
|
|
3823
3824
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3824
3825
|
var ownKeys = Object.keys(source);
|
|
@@ -3828,7 +3829,7 @@ function _object_spread$l(target) {
|
|
|
3828
3829
|
}));
|
|
3829
3830
|
}
|
|
3830
3831
|
ownKeys.forEach(function(key) {
|
|
3831
|
-
_define_property$
|
|
3832
|
+
_define_property$m(target, key, source[key]);
|
|
3832
3833
|
});
|
|
3833
3834
|
}
|
|
3834
3835
|
return target;
|
|
@@ -3852,16 +3853,16 @@ function _object_spread_props$g(target, source) {
|
|
|
3852
3853
|
}
|
|
3853
3854
|
return target;
|
|
3854
3855
|
}
|
|
3855
|
-
function _sliced_to_array$
|
|
3856
|
-
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();
|
|
3857
3858
|
}
|
|
3858
|
-
function _unsupported_iterable_to_array$
|
|
3859
|
+
function _unsupported_iterable_to_array$s(o, minLen) {
|
|
3859
3860
|
if (!o) return;
|
|
3860
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3861
|
+
if (typeof o === "string") return _array_like_to_array$s(o, minLen);
|
|
3861
3862
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3862
3863
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3863
3864
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3864
|
-
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);
|
|
3865
3866
|
}
|
|
3866
3867
|
/**
|
|
3867
3868
|
* @deprecated can use getCurrentTaskInput instead?
|
|
@@ -3943,10 +3944,10 @@ function configurableStoreNamespace(configurable) {
|
|
|
3943
3944
|
* @param value
|
|
3944
3945
|
* @returns
|
|
3945
3946
|
*/ function setStateVariable(state, varName, value) {
|
|
3946
|
-
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];
|
|
3947
3948
|
if (variableName) {
|
|
3948
3949
|
var _state_agentChannelName;
|
|
3949
|
-
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));
|
|
3950
3951
|
} else {
|
|
3951
3952
|
state[agentChannelName] = value;
|
|
3952
3953
|
}
|
|
@@ -4037,7 +4038,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4037
4038
|
});
|
|
4038
4039
|
}
|
|
4039
4040
|
|
|
4040
|
-
function _define_property$
|
|
4041
|
+
function _define_property$l(obj, key, value) {
|
|
4041
4042
|
if (key in obj) {
|
|
4042
4043
|
Object.defineProperty(obj, key, {
|
|
4043
4044
|
value: value,
|
|
@@ -4050,7 +4051,7 @@ function _define_property$k(obj, key, value) {
|
|
|
4050
4051
|
}
|
|
4051
4052
|
return obj;
|
|
4052
4053
|
}
|
|
4053
|
-
function _object_spread$
|
|
4054
|
+
function _object_spread$l(target) {
|
|
4054
4055
|
for(var i = 1; i < arguments.length; i++){
|
|
4055
4056
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4056
4057
|
var ownKeys = Object.keys(source);
|
|
@@ -4060,7 +4061,7 @@ function _object_spread$k(target) {
|
|
|
4060
4061
|
}));
|
|
4061
4062
|
}
|
|
4062
4063
|
ownKeys.forEach(function(key) {
|
|
4063
|
-
_define_property$
|
|
4064
|
+
_define_property$l(target, key, source[key]);
|
|
4064
4065
|
});
|
|
4065
4066
|
}
|
|
4066
4067
|
return target;
|
|
@@ -4166,11 +4167,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4166
4167
|
return candidate === requestedMode;
|
|
4167
4168
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4168
4169
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4169
|
-
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 : {}), {
|
|
4170
4171
|
mode: mode,
|
|
4171
|
-
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 : {}), {
|
|
4172
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,
|
|
4173
|
-
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 : {}), {
|
|
4174
4175
|
graph: 0
|
|
4175
4176
|
})
|
|
4176
4177
|
})
|
|
@@ -4218,13 +4219,13 @@ var _retrieval_recall_contentScope;
|
|
|
4218
4219
|
});
|
|
4219
4220
|
}
|
|
4220
4221
|
|
|
4221
|
-
function _array_like_to_array$
|
|
4222
|
+
function _array_like_to_array$r(arr, len) {
|
|
4222
4223
|
if (len == null || len > arr.length) len = arr.length;
|
|
4223
4224
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4224
4225
|
return arr2;
|
|
4225
4226
|
}
|
|
4226
4227
|
function _array_without_holes$g(arr) {
|
|
4227
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4228
|
+
if (Array.isArray(arr)) return _array_like_to_array$r(arr);
|
|
4228
4229
|
}
|
|
4229
4230
|
function _iterable_to_array$i(iter) {
|
|
4230
4231
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -4233,15 +4234,15 @@ function _non_iterable_spread$g() {
|
|
|
4233
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.");
|
|
4234
4235
|
}
|
|
4235
4236
|
function _to_consumable_array$g(arr) {
|
|
4236
|
-
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();
|
|
4237
4238
|
}
|
|
4238
|
-
function _unsupported_iterable_to_array$
|
|
4239
|
+
function _unsupported_iterable_to_array$r(o, minLen) {
|
|
4239
4240
|
if (!o) return;
|
|
4240
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4241
|
+
if (typeof o === "string") return _array_like_to_array$r(o, minLen);
|
|
4241
4242
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4242
4243
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4243
4244
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4244
|
-
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);
|
|
4245
4246
|
}
|
|
4246
4247
|
var BUILTIN_KNOWLEDGE_PARSER = "builtin";
|
|
4247
4248
|
/** Only formats with a real builtin reader; unknown binary formats are not advertised as text. */ var BUILTIN_KNOWLEDGE_FILE_TYPES = [
|
|
@@ -4331,15 +4332,15 @@ function knowledgebaseParserSelection(config, documentType) {
|
|
|
4331
4332
|
})));
|
|
4332
4333
|
}
|
|
4333
4334
|
|
|
4334
|
-
function _array_like_to_array$
|
|
4335
|
+
function _array_like_to_array$q(arr, len) {
|
|
4335
4336
|
if (len == null || len > arr.length) len = arr.length;
|
|
4336
4337
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4337
4338
|
return arr2;
|
|
4338
4339
|
}
|
|
4339
4340
|
function _array_without_holes$f(arr) {
|
|
4340
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
4341
|
+
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4341
4342
|
}
|
|
4342
|
-
function _define_property$
|
|
4343
|
+
function _define_property$k(obj, key, value) {
|
|
4343
4344
|
if (key in obj) {
|
|
4344
4345
|
Object.defineProperty(obj, key, {
|
|
4345
4346
|
value: value,
|
|
@@ -4358,7 +4359,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4358
4359
|
function _non_iterable_spread$f() {
|
|
4359
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.");
|
|
4360
4361
|
}
|
|
4361
|
-
function _object_spread$
|
|
4362
|
+
function _object_spread$k(target) {
|
|
4362
4363
|
for(var i = 1; i < arguments.length; i++){
|
|
4363
4364
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4364
4365
|
var ownKeys = Object.keys(source);
|
|
@@ -4368,30 +4369,30 @@ function _object_spread$j(target) {
|
|
|
4368
4369
|
}));
|
|
4369
4370
|
}
|
|
4370
4371
|
ownKeys.forEach(function(key) {
|
|
4371
|
-
_define_property$
|
|
4372
|
+
_define_property$k(target, key, source[key]);
|
|
4372
4373
|
});
|
|
4373
4374
|
}
|
|
4374
4375
|
return target;
|
|
4375
4376
|
}
|
|
4376
4377
|
function _to_consumable_array$f(arr) {
|
|
4377
|
-
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();
|
|
4378
4379
|
}
|
|
4379
|
-
function _unsupported_iterable_to_array$
|
|
4380
|
+
function _unsupported_iterable_to_array$q(o, minLen) {
|
|
4380
4381
|
if (!o) return;
|
|
4381
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4382
|
+
if (typeof o === "string") return _array_like_to_array$q(o, minLen);
|
|
4382
4383
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4383
4384
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4384
4385
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4385
|
-
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);
|
|
4386
4387
|
}
|
|
4387
4388
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4388
4389
|
if (!config) return {};
|
|
4389
|
-
return _object_spread$
|
|
4390
|
-
spreadsheet: _object_spread$
|
|
4390
|
+
return _object_spread$k({}, config.spreadsheet ? {
|
|
4391
|
+
spreadsheet: _object_spread$k({}, config.spreadsheet)
|
|
4391
4392
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4392
4393
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4393
4394
|
} : {}, config.questionGeneration ? {
|
|
4394
|
-
questionGeneration: _object_spread$
|
|
4395
|
+
questionGeneration: _object_spread$k({}, config.questionGeneration)
|
|
4395
4396
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4396
4397
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4397
4398
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4405,7 +4406,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
4405
4406
|
} : {}, config.textSplitterType ? {
|
|
4406
4407
|
textSplitterType: config.textSplitterType
|
|
4407
4408
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4408
|
-
textSplitter: _object_spread$
|
|
4409
|
+
textSplitter: _object_spread$k({}, config.chunkSize != null ? {
|
|
4409
4410
|
chunkSize: config.chunkSize
|
|
4410
4411
|
} : {}, config.chunkOverlap != null ? {
|
|
4411
4412
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4417,7 +4418,7 @@ function _unsupported_iterable_to_array$p(o, minLen) {
|
|
|
4417
4418
|
} : {}, config.imageUnderstandingType ? {
|
|
4418
4419
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4419
4420
|
} : {}, config.imageUnderstanding ? {
|
|
4420
|
-
imageUnderstanding: _object_spread$
|
|
4421
|
+
imageUnderstanding: _object_spread$k({}, config.imageUnderstanding)
|
|
4421
4422
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4422
4423
|
}
|
|
4423
4424
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4482,7 +4483,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4482
4483
|
return letterStartSUID("KnowledgeBase_");
|
|
4483
4484
|
}
|
|
4484
4485
|
|
|
4485
|
-
function _define_property$
|
|
4486
|
+
function _define_property$j(obj, key, value) {
|
|
4486
4487
|
if (key in obj) {
|
|
4487
4488
|
Object.defineProperty(obj, key, {
|
|
4488
4489
|
value: value,
|
|
@@ -4495,7 +4496,7 @@ function _define_property$i(obj, key, value) {
|
|
|
4495
4496
|
}
|
|
4496
4497
|
return obj;
|
|
4497
4498
|
}
|
|
4498
|
-
function _object_spread$
|
|
4499
|
+
function _object_spread$j(target) {
|
|
4499
4500
|
for(var i = 1; i < arguments.length; i++){
|
|
4500
4501
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4501
4502
|
var ownKeys = Object.keys(source);
|
|
@@ -4505,7 +4506,7 @@ function _object_spread$i(target) {
|
|
|
4505
4506
|
}));
|
|
4506
4507
|
}
|
|
4507
4508
|
ownKeys.forEach(function(key) {
|
|
4508
|
-
_define_property$
|
|
4509
|
+
_define_property$j(target, key, source[key]);
|
|
4509
4510
|
});
|
|
4510
4511
|
}
|
|
4511
4512
|
return target;
|
|
@@ -4525,7 +4526,7 @@ function _object_spread$i(target) {
|
|
|
4525
4526
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4526
4527
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4527
4528
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4528
|
-
var KDocumentSourceType = _object_spread$
|
|
4529
|
+
var KDocumentSourceType = _object_spread$j({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4529
4530
|
/**
|
|
4530
4531
|
* Document type category, determine how to process the document.
|
|
4531
4532
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5082,13 +5083,13 @@ function genXpertDBSqlKey() {
|
|
|
5082
5083
|
return letterStartSUID("DBSql_");
|
|
5083
5084
|
}
|
|
5084
5085
|
|
|
5085
|
-
/** 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) {
|
|
5086
5087
|
if (len == null || len > arr.length) len = arr.length;
|
|
5087
5088
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5088
5089
|
return arr2;
|
|
5089
5090
|
}
|
|
5090
5091
|
function _array_without_holes$e(arr) {
|
|
5091
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5092
|
+
if (Array.isArray(arr)) return _array_like_to_array$p(arr);
|
|
5092
5093
|
}
|
|
5093
5094
|
function _iterable_to_array$g(iter) {
|
|
5094
5095
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -5097,15 +5098,15 @@ function _non_iterable_spread$e() {
|
|
|
5097
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.");
|
|
5098
5099
|
}
|
|
5099
5100
|
function _to_consumable_array$e(arr) {
|
|
5100
|
-
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();
|
|
5101
5102
|
}
|
|
5102
|
-
function _unsupported_iterable_to_array$
|
|
5103
|
+
function _unsupported_iterable_to_array$p(o, minLen) {
|
|
5103
5104
|
if (!o) return;
|
|
5104
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5105
|
+
if (typeof o === "string") return _array_like_to_array$p(o, minLen);
|
|
5105
5106
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5106
5107
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5107
5108
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5108
|
-
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);
|
|
5109
5110
|
}
|
|
5110
5111
|
var PLUGIN_APPLICATION_SCOPE = {
|
|
5111
5112
|
TENANT: "tenant",
|
|
@@ -5403,15 +5404,15 @@ function buildXpertMarketplaceProfileSnapshot(input, draft) {
|
|
|
5403
5404
|
}
|
|
5404
5405
|
|
|
5405
5406
|
// Helpers
|
|
5406
|
-
function _array_like_to_array$
|
|
5407
|
+
function _array_like_to_array$o(arr, len) {
|
|
5407
5408
|
if (len == null || len > arr.length) len = arr.length;
|
|
5408
5409
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5409
5410
|
return arr2;
|
|
5410
5411
|
}
|
|
5411
5412
|
function _array_without_holes$d(arr) {
|
|
5412
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
5413
|
+
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5413
5414
|
}
|
|
5414
|
-
function _define_property$
|
|
5415
|
+
function _define_property$i(obj, key, value) {
|
|
5415
5416
|
if (key in obj) {
|
|
5416
5417
|
Object.defineProperty(obj, key, {
|
|
5417
5418
|
value: value,
|
|
@@ -5430,7 +5431,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5430
5431
|
function _non_iterable_spread$d() {
|
|
5431
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.");
|
|
5432
5433
|
}
|
|
5433
|
-
function _object_spread$
|
|
5434
|
+
function _object_spread$i(target) {
|
|
5434
5435
|
for(var i = 1; i < arguments.length; i++){
|
|
5435
5436
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5436
5437
|
var ownKeys = Object.keys(source);
|
|
@@ -5440,7 +5441,7 @@ function _object_spread$h(target) {
|
|
|
5440
5441
|
}));
|
|
5441
5442
|
}
|
|
5442
5443
|
ownKeys.forEach(function(key) {
|
|
5443
|
-
_define_property$
|
|
5444
|
+
_define_property$i(target, key, source[key]);
|
|
5444
5445
|
});
|
|
5445
5446
|
}
|
|
5446
5447
|
return target;
|
|
@@ -5492,15 +5493,15 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
5492
5493
|
return target;
|
|
5493
5494
|
}
|
|
5494
5495
|
function _to_consumable_array$d(arr) {
|
|
5495
|
-
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();
|
|
5496
5497
|
}
|
|
5497
|
-
function _unsupported_iterable_to_array$
|
|
5498
|
+
function _unsupported_iterable_to_array$o(o, minLen) {
|
|
5498
5499
|
if (!o) return;
|
|
5499
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
5500
|
+
if (typeof o === "string") return _array_like_to_array$o(o, minLen);
|
|
5500
5501
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5501
5502
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5502
5503
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5503
|
-
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);
|
|
5504
5505
|
}
|
|
5505
5506
|
function omitXpertRelations(xpert) {
|
|
5506
5507
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5539,7 +5540,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5539
5540
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5540
5541
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5541
5542
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5542
|
-
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 : {}), {
|
|
5543
5544
|
id: xpert.id,
|
|
5544
5545
|
tenantId: xpert.tenantId,
|
|
5545
5546
|
organizationId: xpert.organizationId,
|
|
@@ -5823,9 +5824,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5823
5824
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5824
5825
|
replacedNode = true;
|
|
5825
5826
|
var _node_entity;
|
|
5826
|
-
return _object_spread_props$e(_object_spread$
|
|
5827
|
+
return _object_spread_props$e(_object_spread$i({}, node), {
|
|
5827
5828
|
key: targetKey,
|
|
5828
|
-
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), {
|
|
5829
5830
|
key: targetKey
|
|
5830
5831
|
})
|
|
5831
5832
|
});
|
|
@@ -5841,17 +5842,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5841
5842
|
if (from === connection.from && to === connection.to) {
|
|
5842
5843
|
return connection;
|
|
5843
5844
|
}
|
|
5844
|
-
return _object_spread_props$e(_object_spread$
|
|
5845
|
+
return _object_spread_props$e(_object_spread$i({}, connection), {
|
|
5845
5846
|
from: from,
|
|
5846
5847
|
to: to,
|
|
5847
5848
|
key: "".concat(from, "/").concat(to)
|
|
5848
5849
|
});
|
|
5849
5850
|
});
|
|
5850
|
-
return _object_spread_props$e(_object_spread$
|
|
5851
|
-
team: draft.team ? _object_spread_props$e(_object_spread$
|
|
5852
|
-
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), {
|
|
5853
5854
|
key: targetKey
|
|
5854
|
-
}) : _object_spread_props$e(_object_spread$
|
|
5855
|
+
}) : _object_spread_props$e(_object_spread$i({}, agent), {
|
|
5855
5856
|
key: targetKey
|
|
5856
5857
|
})
|
|
5857
5858
|
}) : draft.team,
|
|
@@ -6006,7 +6007,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6006
6007
|
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
6007
6008
|
* @param documents - A flat array of DocumentInterface objects
|
|
6008
6009
|
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
6009
|
-
*/ function _define_property$
|
|
6010
|
+
*/ function _define_property$h(obj, key, value) {
|
|
6010
6011
|
if (key in obj) {
|
|
6011
6012
|
Object.defineProperty(obj, key, {
|
|
6012
6013
|
value: value,
|
|
@@ -6019,7 +6020,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6019
6020
|
}
|
|
6020
6021
|
return obj;
|
|
6021
6022
|
}
|
|
6022
|
-
function _object_spread$
|
|
6023
|
+
function _object_spread$h(target) {
|
|
6023
6024
|
for(var i = 1; i < arguments.length; i++){
|
|
6024
6025
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6025
6026
|
var ownKeys = Object.keys(source);
|
|
@@ -6029,7 +6030,7 @@ function _object_spread$g(target) {
|
|
|
6029
6030
|
}));
|
|
6030
6031
|
}
|
|
6031
6032
|
ownKeys.forEach(function(key) {
|
|
6032
|
-
_define_property$
|
|
6033
|
+
_define_property$h(target, key, source[key]);
|
|
6033
6034
|
});
|
|
6034
6035
|
}
|
|
6035
6036
|
return target;
|
|
@@ -6062,8 +6063,8 @@ function buildChunkTree(documents) {
|
|
|
6062
6063
|
documents.forEach(function(doc, index) {
|
|
6063
6064
|
var chunkId = getChunkNodeId(doc);
|
|
6064
6065
|
if (chunkId) {
|
|
6065
|
-
map.set(chunkId, _object_spread_props$d(_object_spread$
|
|
6066
|
-
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), {
|
|
6067
6068
|
chunkId: chunkId,
|
|
6068
6069
|
children: []
|
|
6069
6070
|
})
|
|
@@ -6237,30 +6238,30 @@ exports.KnowledgeGraphIndexJobStatus = void 0;
|
|
|
6237
6238
|
var KNOWLEDGE_GRAPH_DOCUMENT_STATUS_BATCH_SIZE = 100;
|
|
6238
6239
|
|
|
6239
6240
|
// Skill types
|
|
6240
|
-
function _array_like_to_array$
|
|
6241
|
+
function _array_like_to_array$n(arr, len) {
|
|
6241
6242
|
if (len == null || len > arr.length) len = arr.length;
|
|
6242
6243
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6243
6244
|
return arr2;
|
|
6244
6245
|
}
|
|
6245
|
-
function _array_with_holes$
|
|
6246
|
+
function _array_with_holes$g(arr) {
|
|
6246
6247
|
if (Array.isArray(arr)) return arr;
|
|
6247
6248
|
}
|
|
6248
6249
|
function _iterable_to_array$e(iter) {
|
|
6249
6250
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6250
6251
|
}
|
|
6251
|
-
function _non_iterable_rest$
|
|
6252
|
+
function _non_iterable_rest$g() {
|
|
6252
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.");
|
|
6253
6254
|
}
|
|
6254
6255
|
function _to_array$1(arr) {
|
|
6255
|
-
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();
|
|
6256
6257
|
}
|
|
6257
|
-
function _unsupported_iterable_to_array$
|
|
6258
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
6258
6259
|
if (!o) return;
|
|
6259
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6260
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
6260
6261
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6261
6262
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6262
6263
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6263
|
-
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);
|
|
6264
6265
|
}
|
|
6265
6266
|
var RUNTIME_SKILL_CAPABILITY_ID_PREFIX = "runtime-skill/v1";
|
|
6266
6267
|
function createRuntimeSkillCapabilityId(source) {
|
|
@@ -6294,15 +6295,15 @@ function genXpertSkillKey() {
|
|
|
6294
6295
|
return letterStartSUID("Skill_");
|
|
6295
6296
|
}
|
|
6296
6297
|
|
|
6297
|
-
function _array_like_to_array$
|
|
6298
|
+
function _array_like_to_array$m(arr, len) {
|
|
6298
6299
|
if (len == null || len > arr.length) len = arr.length;
|
|
6299
6300
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6300
6301
|
return arr2;
|
|
6301
6302
|
}
|
|
6302
|
-
function _array_with_holes$
|
|
6303
|
+
function _array_with_holes$f(arr) {
|
|
6303
6304
|
if (Array.isArray(arr)) return arr;
|
|
6304
6305
|
}
|
|
6305
|
-
function _iterable_to_array_limit$
|
|
6306
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
6306
6307
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6307
6308
|
if (_i == null) return;
|
|
6308
6309
|
var _arr = [];
|
|
@@ -6326,19 +6327,19 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
6326
6327
|
}
|
|
6327
6328
|
return _arr;
|
|
6328
6329
|
}
|
|
6329
|
-
function _non_iterable_rest$
|
|
6330
|
+
function _non_iterable_rest$f() {
|
|
6330
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.");
|
|
6331
6332
|
}
|
|
6332
|
-
function _sliced_to_array$
|
|
6333
|
-
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();
|
|
6334
6335
|
}
|
|
6335
|
-
function _unsupported_iterable_to_array$
|
|
6336
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
6336
6337
|
if (!o) return;
|
|
6337
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6338
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
6338
6339
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6339
6340
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6340
6341
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6341
|
-
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);
|
|
6342
6343
|
}
|
|
6343
6344
|
var IGNORED_BOOLEAN_FLAGS = new Set([
|
|
6344
6345
|
"-y",
|
|
@@ -6553,7 +6554,7 @@ function parseGithubSource(source) {
|
|
|
6553
6554
|
return parseGithubUrl(raw);
|
|
6554
6555
|
}
|
|
6555
6556
|
if (/^[^/\s]+\/[^/\s]+$/.test(raw)) {
|
|
6556
|
-
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];
|
|
6557
6558
|
var repo = repoSegment.replace(/\.git$/i, "");
|
|
6558
6559
|
if (!repo) {
|
|
6559
6560
|
throw new Error("GitHub repository source must include owner and repository name");
|
|
@@ -6613,7 +6614,7 @@ function isLocalPath(value) {
|
|
|
6613
6614
|
})).size === value.length;
|
|
6614
6615
|
}
|
|
6615
6616
|
|
|
6616
|
-
function _define_property$
|
|
6617
|
+
function _define_property$g(obj, key, value) {
|
|
6617
6618
|
if (key in obj) {
|
|
6618
6619
|
Object.defineProperty(obj, key, {
|
|
6619
6620
|
value: value,
|
|
@@ -6626,7 +6627,7 @@ function _define_property$f(obj, key, value) {
|
|
|
6626
6627
|
}
|
|
6627
6628
|
return obj;
|
|
6628
6629
|
}
|
|
6629
|
-
function _object_spread$
|
|
6630
|
+
function _object_spread$g(target) {
|
|
6630
6631
|
for(var i = 1; i < arguments.length; i++){
|
|
6631
6632
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6632
6633
|
var ownKeys = Object.keys(source);
|
|
@@ -6636,7 +6637,7 @@ function _object_spread$f(target) {
|
|
|
6636
6637
|
}));
|
|
6637
6638
|
}
|
|
6638
6639
|
ownKeys.forEach(function(key) {
|
|
6639
|
-
_define_property$
|
|
6640
|
+
_define_property$g(target, key, source[key]);
|
|
6640
6641
|
});
|
|
6641
6642
|
}
|
|
6642
6643
|
return target;
|
|
@@ -6694,8 +6695,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
6694
6695
|
if (provider === entity.provider) {
|
|
6695
6696
|
return node;
|
|
6696
6697
|
}
|
|
6697
|
-
return _object_spread_props$c(_object_spread$
|
|
6698
|
-
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), {
|
|
6699
6700
|
provider: provider
|
|
6700
6701
|
})
|
|
6701
6702
|
});
|
|
@@ -6745,18 +6746,18 @@ function isContextCompressionComponentData(value) {
|
|
|
6745
6746
|
"job"
|
|
6746
6747
|
];
|
|
6747
6748
|
|
|
6748
|
-
function _array_like_to_array$
|
|
6749
|
+
function _array_like_to_array$l(arr, len) {
|
|
6749
6750
|
if (len == null || len > arr.length) len = arr.length;
|
|
6750
6751
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6751
6752
|
return arr2;
|
|
6752
6753
|
}
|
|
6753
|
-
function _array_with_holes$
|
|
6754
|
+
function _array_with_holes$e(arr) {
|
|
6754
6755
|
if (Array.isArray(arr)) return arr;
|
|
6755
6756
|
}
|
|
6756
6757
|
function _array_without_holes$c(arr) {
|
|
6757
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
6758
|
+
if (Array.isArray(arr)) return _array_like_to_array$l(arr);
|
|
6758
6759
|
}
|
|
6759
|
-
function _define_property$
|
|
6760
|
+
function _define_property$f(obj, key, value) {
|
|
6760
6761
|
if (key in obj) {
|
|
6761
6762
|
Object.defineProperty(obj, key, {
|
|
6762
6763
|
value: value,
|
|
@@ -6772,7 +6773,7 @@ function _define_property$e(obj, key, value) {
|
|
|
6772
6773
|
function _iterable_to_array$d(iter) {
|
|
6773
6774
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
6774
6775
|
}
|
|
6775
|
-
function _iterable_to_array_limit$
|
|
6776
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
6776
6777
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6777
6778
|
if (_i == null) return;
|
|
6778
6779
|
var _arr = [];
|
|
@@ -6796,13 +6797,13 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
6796
6797
|
}
|
|
6797
6798
|
return _arr;
|
|
6798
6799
|
}
|
|
6799
|
-
function _non_iterable_rest$
|
|
6800
|
+
function _non_iterable_rest$e() {
|
|
6800
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.");
|
|
6801
6802
|
}
|
|
6802
6803
|
function _non_iterable_spread$c() {
|
|
6803
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.");
|
|
6804
6805
|
}
|
|
6805
|
-
function _object_spread$
|
|
6806
|
+
function _object_spread$f(target) {
|
|
6806
6807
|
for(var i = 1; i < arguments.length; i++){
|
|
6807
6808
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6808
6809
|
var ownKeys = Object.keys(source);
|
|
@@ -6812,7 +6813,7 @@ function _object_spread$e(target) {
|
|
|
6812
6813
|
}));
|
|
6813
6814
|
}
|
|
6814
6815
|
ownKeys.forEach(function(key) {
|
|
6815
|
-
_define_property$
|
|
6816
|
+
_define_property$f(target, key, source[key]);
|
|
6816
6817
|
});
|
|
6817
6818
|
}
|
|
6818
6819
|
return target;
|
|
@@ -6863,19 +6864,19 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
6863
6864
|
}
|
|
6864
6865
|
return target;
|
|
6865
6866
|
}
|
|
6866
|
-
function _sliced_to_array$
|
|
6867
|
-
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();
|
|
6868
6869
|
}
|
|
6869
6870
|
function _to_consumable_array$c(arr) {
|
|
6870
|
-
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();
|
|
6871
6872
|
}
|
|
6872
|
-
function _unsupported_iterable_to_array$
|
|
6873
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
6873
6874
|
if (!o) return;
|
|
6874
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6875
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
6875
6876
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6876
6877
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6877
6878
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6878
|
-
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);
|
|
6879
6880
|
}
|
|
6880
6881
|
function isNil(value) {
|
|
6881
6882
|
return value === null || value === undefined;
|
|
@@ -6946,7 +6947,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
6946
6947
|
if (typeof content !== "string") {
|
|
6947
6948
|
return content;
|
|
6948
6949
|
}
|
|
6949
|
-
return _object_spread$
|
|
6950
|
+
return _object_spread$f({
|
|
6950
6951
|
type: "text",
|
|
6951
6952
|
text: content
|
|
6952
6953
|
}, context.streamId ? {
|
|
@@ -7011,7 +7012,7 @@ function filterText(content) {
|
|
|
7011
7012
|
return "";
|
|
7012
7013
|
}
|
|
7013
7014
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
7014
|
-
return _object_spread$
|
|
7015
|
+
return _object_spread$f(_object_spread_props$b(_object_spread$f({}, previous), {
|
|
7015
7016
|
text: "".concat(previous.text).concat(incoming.text)
|
|
7016
7017
|
}), !previous.id && incoming.id ? {
|
|
7017
7018
|
id: incoming.id
|
|
@@ -7023,7 +7024,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
7023
7024
|
}
|
|
7024
7025
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
7025
7026
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
7026
|
-
return _object_spread_props$b(_object_spread$
|
|
7027
|
+
return _object_spread_props$b(_object_spread$f({}, incoming), {
|
|
7027
7028
|
text: incoming.text.slice(1)
|
|
7028
7029
|
});
|
|
7029
7030
|
}
|
|
@@ -7033,21 +7034,21 @@ function mergeComponentData(previous, incoming) {
|
|
|
7033
7034
|
var _previous_data, _incoming_data;
|
|
7034
7035
|
var _incoming_data1;
|
|
7035
7036
|
var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
|
|
7036
|
-
var _param = _sliced_to_array$
|
|
7037
|
+
var _param = _sliced_to_array$d(param, 2), key = _param[0], value = _param[1];
|
|
7037
7038
|
if (!isNil(value)) {
|
|
7038
7039
|
acc[key] = value;
|
|
7039
7040
|
}
|
|
7040
7041
|
return acc;
|
|
7041
7042
|
}, {});
|
|
7042
7043
|
var _previous_data1;
|
|
7043
|
-
return _object_spread_props$b(_object_spread$
|
|
7044
|
-
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), {
|
|
7045
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)
|
|
7046
7047
|
})
|
|
7047
7048
|
});
|
|
7048
7049
|
}
|
|
7049
7050
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
7050
|
-
return _object_spread$
|
|
7051
|
+
return _object_spread$f({
|
|
7051
7052
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
7052
7053
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
7053
7054
|
streamId: String(content.id)
|
|
@@ -7055,10 +7056,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
7055
7056
|
}
|
|
7056
7057
|
function resolveMessageAppendContext(options) {
|
|
7057
7058
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
7058
|
-
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), {
|
|
7059
7060
|
streamId: options.fallbackStreamId
|
|
7060
7061
|
}) : inferredContext;
|
|
7061
|
-
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), {
|
|
7062
7063
|
joinHint: "none"
|
|
7063
7064
|
}) : appendContext;
|
|
7064
7065
|
return {
|
|
@@ -7079,7 +7080,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7079
7080
|
var previous = initial;
|
|
7080
7081
|
return {
|
|
7081
7082
|
resolve: function resolve(options) {
|
|
7082
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$
|
|
7083
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$b(_object_spread$f({}, options), {
|
|
7083
7084
|
previous: previous
|
|
7084
7085
|
}));
|
|
7085
7086
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -7117,10 +7118,10 @@ function resolveMessageAppendContext(options) {
|
|
|
7117
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, [
|
|
7118
7119
|
"previous"
|
|
7119
7120
|
]);
|
|
7120
|
-
var appendContext = _object_spread$
|
|
7121
|
+
var appendContext = _object_spread$f({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
7121
7122
|
var _appendContext_joinHint;
|
|
7122
7123
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
7123
|
-
var messageContext = joinHint ? _object_spread_props$b(_object_spread$
|
|
7124
|
+
var messageContext = joinHint ? _object_spread_props$b(_object_spread$f({}, appendContext), {
|
|
7124
7125
|
joinHint: joinHint
|
|
7125
7126
|
}) : appendContext;
|
|
7126
7127
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -7129,7 +7130,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7129
7130
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
7130
7131
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
7131
7132
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
7132
|
-
var mergedReasoning = _object_spread_props$b(_object_spread$
|
|
7133
|
+
var mergedReasoning = _object_spread_props$b(_object_spread$f({}, lastReasoning), {
|
|
7133
7134
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
7134
7135
|
});
|
|
7135
7136
|
aiMessage.reasoning = _to_consumable_array$c(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -7150,7 +7151,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7150
7151
|
return isTextContent(item) && item.id === content.id;
|
|
7151
7152
|
});
|
|
7152
7153
|
if (index > -1) {
|
|
7153
|
-
var mergedContent = _object_spread$
|
|
7154
|
+
var mergedContent = _object_spread$f(_object_spread_props$b(_object_spread$f({}, chunks[index]), {
|
|
7154
7155
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
7155
7156
|
}), !chunks[index].id && content.id ? {
|
|
7156
7157
|
id: content.id
|
|
@@ -7173,7 +7174,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7173
7174
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
7174
7175
|
if (existingIndex > -1) {
|
|
7175
7176
|
var existing = chunks[existingIndex];
|
|
7176
|
-
var merged = _object_spread_props$b(_object_spread$
|
|
7177
|
+
var merged = _object_spread_props$b(_object_spread$f({}, existing), {
|
|
7177
7178
|
text: "".concat(existing.text).concat(content.text)
|
|
7178
7179
|
});
|
|
7179
7180
|
var nextChunks = _to_consumable_array$c(chunks);
|
|
@@ -7182,7 +7183,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7182
7183
|
return;
|
|
7183
7184
|
}
|
|
7184
7185
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
7185
|
-
var mergedLastContent = _object_spread_props$b(_object_spread$
|
|
7186
|
+
var mergedLastContent = _object_spread_props$b(_object_spread$f({}, lastContent), {
|
|
7186
7187
|
text: "".concat(lastContent.text).concat(content.text)
|
|
7187
7188
|
});
|
|
7188
7189
|
aiMessage.content = _to_consumable_array$c(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -7191,7 +7192,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7191
7192
|
return;
|
|
7192
7193
|
}
|
|
7193
7194
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
7194
|
-
var appended = _object_spread_props$b(_object_spread$
|
|
7195
|
+
var appended = _object_spread_props$b(_object_spread$f({}, content), {
|
|
7195
7196
|
text: separator + content.text
|
|
7196
7197
|
});
|
|
7197
7198
|
aiMessage.content = _to_consumable_array$c(chunks).concat([
|
|
@@ -7215,7 +7216,7 @@ function resolveMessageAppendContext(options) {
|
|
|
7215
7216
|
aiMessage.content = nextChunks1;
|
|
7216
7217
|
}
|
|
7217
7218
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
7218
|
-
var resolvedContext = _object_spread$
|
|
7219
|
+
var resolvedContext = _object_spread$f({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
7219
7220
|
var nextText = filterText(incoming);
|
|
7220
7221
|
if (!nextText) {
|
|
7221
7222
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -7260,7 +7261,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7260
7261
|
return;
|
|
7261
7262
|
}
|
|
7262
7263
|
textIndexById.set(item.id, merged.length);
|
|
7263
|
-
merged.push(_object_spread$
|
|
7264
|
+
merged.push(_object_spread$f({}, item));
|
|
7264
7265
|
return;
|
|
7265
7266
|
}
|
|
7266
7267
|
var lastItem = merged[merged.length - 1];
|
|
@@ -7268,7 +7269,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
7268
7269
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
7269
7270
|
return;
|
|
7270
7271
|
}
|
|
7271
|
-
merged.push(_object_spread$
|
|
7272
|
+
merged.push(_object_spread$f({}, item));
|
|
7272
7273
|
});
|
|
7273
7274
|
return merged.length ? merged : null;
|
|
7274
7275
|
}
|
|
@@ -7283,7 +7284,7 @@ function stringifyMessageContent(content) {
|
|
|
7283
7284
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
7284
7285
|
var itemContext = inferMessageAppendContext(item);
|
|
7285
7286
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7286
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
7287
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$f({}, itemContext, joinHint ? {
|
|
7287
7288
|
joinHint: joinHint
|
|
7288
7289
|
} : {}));
|
|
7289
7290
|
previousContext = itemContext;
|
|
@@ -7306,7 +7307,7 @@ function filterMessageText(content) {
|
|
|
7306
7307
|
}
|
|
7307
7308
|
var itemContext = inferMessageAppendContext(item);
|
|
7308
7309
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
7309
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
7310
|
+
result = appendMessagePlainText(result, nextText, _object_spread$f({}, itemContext, joinHint ? {
|
|
7310
7311
|
joinHint: joinHint
|
|
7311
7312
|
} : {}));
|
|
7312
7313
|
previousContext = itemContext;
|
|
@@ -8002,7 +8003,7 @@ var projectPipelineEdgeSchema = v3.z.object({
|
|
|
8002
8003
|
outcome: projectPipelineKeySchema.optional()
|
|
8003
8004
|
}).strict();
|
|
8004
8005
|
|
|
8005
|
-
function _define_property$
|
|
8006
|
+
function _define_property$e(obj, key, value) {
|
|
8006
8007
|
if (key in obj) {
|
|
8007
8008
|
Object.defineProperty(obj, key, {
|
|
8008
8009
|
value: value,
|
|
@@ -8015,7 +8016,7 @@ function _define_property$d(obj, key, value) {
|
|
|
8015
8016
|
}
|
|
8016
8017
|
return obj;
|
|
8017
8018
|
}
|
|
8018
|
-
function _object_spread$
|
|
8019
|
+
function _object_spread$e(target) {
|
|
8019
8020
|
for(var i = 1; i < arguments.length; i++){
|
|
8020
8021
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8021
8022
|
var ownKeys = Object.keys(source);
|
|
@@ -8025,7 +8026,7 @@ function _object_spread$d(target) {
|
|
|
8025
8026
|
}));
|
|
8026
8027
|
}
|
|
8027
8028
|
ownKeys.forEach(function(key) {
|
|
8028
|
-
_define_property$
|
|
8029
|
+
_define_property$e(target, key, source[key]);
|
|
8029
8030
|
});
|
|
8030
8031
|
}
|
|
8031
8032
|
return target;
|
|
@@ -8058,7 +8059,7 @@ var base$1 = {
|
|
|
8058
8059
|
};
|
|
8059
8060
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
8060
8061
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
8061
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8062
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8062
8063
|
kind: v3.z.literal("work"),
|
|
8063
8064
|
laneKey: projectPipelineKeySchema,
|
|
8064
8065
|
operationRef: projectPipelineRefSchema,
|
|
@@ -8067,23 +8068,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8067
8068
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
8068
8069
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
8069
8070
|
})).strict(),
|
|
8070
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8071
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8071
8072
|
kind: v3.z.literal("fork")
|
|
8072
8073
|
})).strict(),
|
|
8073
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8074
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8074
8075
|
kind: v3.z.literal("join"),
|
|
8075
8076
|
join: v3.z.object({
|
|
8076
8077
|
mode: v3.z.literal("all_selected"),
|
|
8077
8078
|
accept: v3.z.literal("completed")
|
|
8078
8079
|
}).strict()
|
|
8079
8080
|
})).strict(),
|
|
8080
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8081
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8081
8082
|
kind: v3.z.literal("router"),
|
|
8082
8083
|
policyRef: projectPipelineRefSchema,
|
|
8083
8084
|
outcomes: outcomes,
|
|
8084
8085
|
unmatched: v3.z.literal("block")
|
|
8085
8086
|
})).strict(),
|
|
8086
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8087
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8087
8088
|
kind: v3.z.literal("human_gate"),
|
|
8088
8089
|
laneKey: projectPipelineKeySchema,
|
|
8089
8090
|
policyRef: projectPipelineRefSchema,
|
|
@@ -8091,12 +8092,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8091
8092
|
outcomes: outcomes,
|
|
8092
8093
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
8093
8094
|
})).strict(),
|
|
8094
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8095
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8095
8096
|
kind: v3.z.literal("external_wait"),
|
|
8096
8097
|
laneKey: projectPipelineKeySchema,
|
|
8097
8098
|
subscriptionRef: projectPipelineRefSchema
|
|
8098
8099
|
})).strict(),
|
|
8099
|
-
v3.z.object(_object_spread_props$a(_object_spread$
|
|
8100
|
+
v3.z.object(_object_spread_props$a(_object_spread$e({}, base$1), {
|
|
8100
8101
|
kind: v3.z.literal("terminal"),
|
|
8101
8102
|
outcome: projectPipelineKeySchema,
|
|
8102
8103
|
disposition: v3.z.enum([
|
|
@@ -8106,21 +8107,21 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
8106
8107
|
})).strict()
|
|
8107
8108
|
]);
|
|
8108
8109
|
|
|
8109
|
-
/** 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) {
|
|
8110
8111
|
if (len == null || len > arr.length) len = arr.length;
|
|
8111
8112
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8112
8113
|
return arr2;
|
|
8113
8114
|
}
|
|
8114
|
-
function _array_with_holes$
|
|
8115
|
+
function _array_with_holes$d(arr) {
|
|
8115
8116
|
if (Array.isArray(arr)) return arr;
|
|
8116
8117
|
}
|
|
8117
8118
|
function _array_without_holes$b(arr) {
|
|
8118
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8119
|
+
if (Array.isArray(arr)) return _array_like_to_array$k(arr);
|
|
8119
8120
|
}
|
|
8120
8121
|
function _iterable_to_array$c(iter) {
|
|
8121
8122
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
8122
8123
|
}
|
|
8123
|
-
function _iterable_to_array_limit$
|
|
8124
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
8124
8125
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8125
8126
|
if (_i == null) return;
|
|
8126
8127
|
var _arr = [];
|
|
@@ -8144,29 +8145,29 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
8144
8145
|
}
|
|
8145
8146
|
return _arr;
|
|
8146
8147
|
}
|
|
8147
|
-
function _non_iterable_rest$
|
|
8148
|
+
function _non_iterable_rest$d() {
|
|
8148
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.");
|
|
8149
8150
|
}
|
|
8150
8151
|
function _non_iterable_spread$b() {
|
|
8151
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.");
|
|
8152
8153
|
}
|
|
8153
|
-
function _sliced_to_array$
|
|
8154
|
-
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();
|
|
8155
8156
|
}
|
|
8156
8157
|
function _to_consumable_array$b(arr) {
|
|
8157
|
-
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();
|
|
8158
8159
|
}
|
|
8159
8160
|
function _type_of(obj) {
|
|
8160
8161
|
"@swc/helpers - typeof";
|
|
8161
8162
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
8162
8163
|
}
|
|
8163
|
-
function _unsupported_iterable_to_array$
|
|
8164
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
8164
8165
|
if (!o) return;
|
|
8165
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8166
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
8166
8167
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8167
8168
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8168
8169
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8169
|
-
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);
|
|
8170
8171
|
}
|
|
8171
8172
|
function validateProjectPipelineDataflow(definition, ordered) {
|
|
8172
8173
|
var issues = [];
|
|
@@ -8269,7 +8270,7 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8269
8270
|
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
8270
8271
|
try {
|
|
8271
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){
|
|
8272
|
-
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];
|
|
8273
8274
|
var refs = binding.from === "collection" ? binding.items : binding.from === "node_output" ? [
|
|
8274
8275
|
binding
|
|
8275
8276
|
] : [];
|
|
@@ -8326,7 +8327,7 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8326
8327
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
8327
8328
|
try {
|
|
8328
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){
|
|
8329
|
-
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];
|
|
8330
8331
|
var refs = binding.from === "collection" ? binding.items : binding.from === "node_output" ? [
|
|
8331
8332
|
binding
|
|
8332
8333
|
] : [];
|
|
@@ -8453,13 +8454,13 @@ function validateProjectPipelineDataflow(definition, ordered) {
|
|
|
8453
8454
|
return issues;
|
|
8454
8455
|
}
|
|
8455
8456
|
|
|
8456
|
-
function _array_like_to_array$
|
|
8457
|
+
function _array_like_to_array$j(arr, len) {
|
|
8457
8458
|
if (len == null || len > arr.length) len = arr.length;
|
|
8458
8459
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8459
8460
|
return arr2;
|
|
8460
8461
|
}
|
|
8461
8462
|
function _array_without_holes$a(arr) {
|
|
8462
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
8463
|
+
if (Array.isArray(arr)) return _array_like_to_array$j(arr);
|
|
8463
8464
|
}
|
|
8464
8465
|
function _iterable_to_array$b(iter) {
|
|
8465
8466
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -8468,15 +8469,15 @@ function _non_iterable_spread$a() {
|
|
|
8468
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.");
|
|
8469
8470
|
}
|
|
8470
8471
|
function _to_consumable_array$a(arr) {
|
|
8471
|
-
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();
|
|
8472
8473
|
}
|
|
8473
|
-
function _unsupported_iterable_to_array$
|
|
8474
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
8474
8475
|
if (!o) return;
|
|
8475
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8476
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
8476
8477
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8477
8478
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8478
8479
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8479
|
-
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);
|
|
8480
8481
|
}
|
|
8481
8482
|
/** Pure semantic checks shared by configuration APIs, plugin registrations and persisted snapshots. */ function validateProjectPipelineDefinition(definition) {
|
|
8482
8483
|
var // Upstream reachability alone is insufficient: a value on an unselected branch may not exist.
|
|
@@ -8745,7 +8746,7 @@ function isProjectPipelineApplicable(definition, project) {
|
|
|
8745
8746
|
|
|
8746
8747
|
// Invariants: definitions describe versioned topology and explicit execution authority.
|
|
8747
8748
|
// Business meaning stays behind provider references; labels and icons never drive execution.
|
|
8748
|
-
function _define_property$
|
|
8749
|
+
function _define_property$d(obj, key, value) {
|
|
8749
8750
|
if (key in obj) {
|
|
8750
8751
|
Object.defineProperty(obj, key, {
|
|
8751
8752
|
value: value,
|
|
@@ -8758,7 +8759,7 @@ function _define_property$c(obj, key, value) {
|
|
|
8758
8759
|
}
|
|
8759
8760
|
return obj;
|
|
8760
8761
|
}
|
|
8761
|
-
function _object_spread$
|
|
8762
|
+
function _object_spread$d(target) {
|
|
8762
8763
|
for(var i = 1; i < arguments.length; i++){
|
|
8763
8764
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8764
8765
|
var ownKeys = Object.keys(source);
|
|
@@ -8768,7 +8769,7 @@ function _object_spread$c(target) {
|
|
|
8768
8769
|
}));
|
|
8769
8770
|
}
|
|
8770
8771
|
ownKeys.forEach(function(key) {
|
|
8771
|
-
_define_property$
|
|
8772
|
+
_define_property$d(target, key, source[key]);
|
|
8772
8773
|
});
|
|
8773
8774
|
}
|
|
8774
8775
|
return target;
|
|
@@ -8818,7 +8819,7 @@ var common = {
|
|
|
8818
8819
|
};
|
|
8819
8820
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
8820
8821
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
8821
|
-
v3.z.object(_object_spread_props$9(_object_spread$
|
|
8822
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
|
|
8822
8823
|
executionAuthority: v3.z.literal("provider"),
|
|
8823
8824
|
providerRef: projectPipelineRefSchema,
|
|
8824
8825
|
topology: v3.z.object({
|
|
@@ -8827,7 +8828,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
8827
8828
|
}).strict(),
|
|
8828
8829
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
8829
8830
|
})).strict(),
|
|
8830
|
-
v3.z.object(_object_spread_props$9(_object_spread$
|
|
8831
|
+
v3.z.object(_object_spread_props$9(_object_spread$d({}, common), {
|
|
8831
8832
|
executionAuthority: v3.z.literal("platform"),
|
|
8832
8833
|
topology: v3.z.object({
|
|
8833
8834
|
source: v3.z.literal("definition")
|
|
@@ -8898,15 +8899,15 @@ var projectPipelineNativeModelBudgetStatusSchema = v3.z.object({
|
|
|
8898
8899
|
admissionBlocked: v3.z.boolean()
|
|
8899
8900
|
}).strict();
|
|
8900
8901
|
|
|
8901
|
-
function _array_like_to_array$
|
|
8902
|
+
function _array_like_to_array$i(arr, len) {
|
|
8902
8903
|
if (len == null || len > arr.length) len = arr.length;
|
|
8903
8904
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8904
8905
|
return arr2;
|
|
8905
8906
|
}
|
|
8906
|
-
function _array_with_holes$
|
|
8907
|
+
function _array_with_holes$c(arr) {
|
|
8907
8908
|
if (Array.isArray(arr)) return arr;
|
|
8908
8909
|
}
|
|
8909
|
-
function _iterable_to_array_limit$
|
|
8910
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
8910
8911
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8911
8912
|
if (_i == null) return;
|
|
8912
8913
|
var _arr = [];
|
|
@@ -8930,19 +8931,19 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
8930
8931
|
}
|
|
8931
8932
|
return _arr;
|
|
8932
8933
|
}
|
|
8933
|
-
function _non_iterable_rest$
|
|
8934
|
+
function _non_iterable_rest$c() {
|
|
8934
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.");
|
|
8935
8936
|
}
|
|
8936
|
-
function _sliced_to_array$
|
|
8937
|
-
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();
|
|
8938
8939
|
}
|
|
8939
|
-
function _unsupported_iterable_to_array$
|
|
8940
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
8940
8941
|
if (!o) return;
|
|
8941
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8942
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
8942
8943
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8943
8944
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8944
8945
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8945
|
-
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);
|
|
8946
8947
|
}
|
|
8947
8948
|
var participantSelection = v3.z.object({
|
|
8948
8949
|
kind: projectPipelineParticipantKindSchema,
|
|
@@ -9004,7 +9005,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9004
9005
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9005
9006
|
try {
|
|
9006
9007
|
for(var _iterator = Object.entries(binding.roleBindings)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
9007
|
-
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];
|
|
9008
9009
|
var _roles_get;
|
|
9009
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);
|
|
9010
9011
|
}
|
|
@@ -9055,7 +9056,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9055
9056
|
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
9056
9057
|
try {
|
|
9057
9058
|
var _loop = function() {
|
|
9058
|
-
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];
|
|
9059
9060
|
var _roles_get;
|
|
9060
9061
|
if (!((_roles_get = roles.get(executor.roleKey)) === null || _roles_get === void 0 ? void 0 : _roles_get.allowedKinds.includes(executor.kind)) || executor.kind === "human") {
|
|
9061
9062
|
issue("EXECUTOR_ROLE_MISMATCH", "binding", "executorBindings", slot);
|
|
@@ -9090,7 +9091,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9090
9091
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
9091
9092
|
try {
|
|
9092
9093
|
for(var _iterator3 = template.nodes.entries()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
9093
|
-
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];
|
|
9094
9095
|
var _binding_roleBindings_node_candidateRoleKey;
|
|
9095
9096
|
if (node.kind === "work") {
|
|
9096
9097
|
var _binding_executorBindings1, _lanes_get;
|
|
@@ -9110,7 +9111,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9110
9111
|
var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
|
|
9111
9112
|
try {
|
|
9112
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){
|
|
9113
|
-
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];
|
|
9114
9115
|
if (input.from === "parameter" && !Object.prototype.hasOwnProperty.call(binding.parameters, input.key)) {
|
|
9115
9116
|
issue("PARAMETER_NOT_FOUND", "template", "nodes", index, "inputBindings", key1);
|
|
9116
9117
|
}
|
|
@@ -9146,7 +9147,7 @@ var projectPipelineBindingSchema = v3.z.object({
|
|
|
9146
9147
|
}
|
|
9147
9148
|
});
|
|
9148
9149
|
|
|
9149
|
-
function _define_property$
|
|
9150
|
+
function _define_property$c(obj, key, value) {
|
|
9150
9151
|
if (key in obj) {
|
|
9151
9152
|
Object.defineProperty(obj, key, {
|
|
9152
9153
|
value: value,
|
|
@@ -9159,7 +9160,7 @@ function _define_property$b(obj, key, value) {
|
|
|
9159
9160
|
}
|
|
9160
9161
|
return obj;
|
|
9161
9162
|
}
|
|
9162
|
-
function _object_spread$
|
|
9163
|
+
function _object_spread$c(target) {
|
|
9163
9164
|
for(var i = 1; i < arguments.length; i++){
|
|
9164
9165
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9165
9166
|
var ownKeys = Object.keys(source);
|
|
@@ -9169,7 +9170,7 @@ function _object_spread$b(target) {
|
|
|
9169
9170
|
}));
|
|
9170
9171
|
}
|
|
9171
9172
|
ownKeys.forEach(function(key) {
|
|
9172
|
-
_define_property$
|
|
9173
|
+
_define_property$c(target, key, source[key]);
|
|
9173
9174
|
});
|
|
9174
9175
|
}
|
|
9175
9176
|
return target;
|
|
@@ -9203,13 +9204,13 @@ var definitionRef = v3.z.object({
|
|
|
9203
9204
|
templateRef: projectPipelineRefSchema,
|
|
9204
9205
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
9205
9206
|
}).strict();
|
|
9206
|
-
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), {
|
|
9207
9208
|
definition: definitionRef,
|
|
9208
9209
|
revision: v3.z.number().int().positive(),
|
|
9209
9210
|
configuration: projectPipelineBindingSchema
|
|
9210
9211
|
})).strict();
|
|
9211
9212
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
9212
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
9213
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9213
9214
|
executionAuthority: v3.z.literal("provider"),
|
|
9214
9215
|
providerRef: projectPipelineRefSchema,
|
|
9215
9216
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9220,7 +9221,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9220
9221
|
}).strict(),
|
|
9221
9222
|
revision: v3.z.number().int().nonnegative()
|
|
9222
9223
|
})).strict(),
|
|
9223
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
9224
|
+
v3.z.object(_object_spread_props$8(_object_spread$c({}, scopedIdentity), {
|
|
9224
9225
|
executionAuthority: v3.z.literal("platform"),
|
|
9225
9226
|
bindingId: v3.z.string().uuid(),
|
|
9226
9227
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -9232,7 +9233,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
9232
9233
|
revision: v3.z.number().int().nonnegative()
|
|
9233
9234
|
})).strict()
|
|
9234
9235
|
]);
|
|
9235
|
-
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), {
|
|
9236
9237
|
instanceId: v3.z.string().uuid(),
|
|
9237
9238
|
triggerKey: v3.z.string().min(1).max(500),
|
|
9238
9239
|
definition: definitionRef,
|
|
@@ -9304,7 +9305,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
9304
9305
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
9305
9306
|
generation: v3.z.number().int().positive()
|
|
9306
9307
|
}).strict();
|
|
9307
|
-
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), {
|
|
9308
9309
|
runId: v3.z.string().uuid(),
|
|
9309
9310
|
sequence: v3.z.number().int().positive(),
|
|
9310
9311
|
generation: v3.z.number().int().positive(),
|
|
@@ -9320,7 +9321,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$8(_object_spre
|
|
|
9320
9321
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
9321
9322
|
supersedes: v3.z.string().uuid().nullable()
|
|
9322
9323
|
})).strict();
|
|
9323
|
-
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), {
|
|
9324
9325
|
roundId: v3.z.string().uuid(),
|
|
9325
9326
|
nodeKey: projectPipelineKeySchema,
|
|
9326
9327
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -9332,7 +9333,7 @@ var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$8(_obje
|
|
|
9332
9333
|
revision: v3.z.number().int().nonnegative()
|
|
9333
9334
|
})).strict();
|
|
9334
9335
|
|
|
9335
|
-
function _define_property$
|
|
9336
|
+
function _define_property$b(obj, key, value) {
|
|
9336
9337
|
if (key in obj) {
|
|
9337
9338
|
Object.defineProperty(obj, key, {
|
|
9338
9339
|
value: value,
|
|
@@ -9345,7 +9346,7 @@ function _define_property$a(obj, key, value) {
|
|
|
9345
9346
|
}
|
|
9346
9347
|
return obj;
|
|
9347
9348
|
}
|
|
9348
|
-
function _object_spread$
|
|
9349
|
+
function _object_spread$b(target) {
|
|
9349
9350
|
for(var i = 1; i < arguments.length; i++){
|
|
9350
9351
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9351
9352
|
var ownKeys = Object.keys(source);
|
|
@@ -9355,7 +9356,7 @@ function _object_spread$a(target) {
|
|
|
9355
9356
|
}));
|
|
9356
9357
|
}
|
|
9357
9358
|
ownKeys.forEach(function(key) {
|
|
9358
|
-
_define_property$
|
|
9359
|
+
_define_property$b(target, key, source[key]);
|
|
9359
9360
|
});
|
|
9360
9361
|
}
|
|
9361
9362
|
return target;
|
|
@@ -9379,7 +9380,7 @@ function _object_spread_props$7(target, source) {
|
|
|
9379
9380
|
}
|
|
9380
9381
|
return target;
|
|
9381
9382
|
}
|
|
9382
|
-
var reference = {
|
|
9383
|
+
var reference$1 = {
|
|
9383
9384
|
ref: projectPipelineRefSchema
|
|
9384
9385
|
};
|
|
9385
9386
|
var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
@@ -9390,17 +9391,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9390
9391
|
])
|
|
9391
9392
|
}).strict();
|
|
9392
9393
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
|
|
9393
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9394
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9394
9395
|
kind: v3.z.literal("schema")
|
|
9395
9396
|
})).strict(),
|
|
9396
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9397
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9397
9398
|
kind: v3.z.literal("resource")
|
|
9398
9399
|
})).strict(),
|
|
9399
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9400
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9400
9401
|
kind: v3.z.literal("subject"),
|
|
9401
9402
|
outputSchemaRef: projectPipelineRefSchema
|
|
9402
9403
|
})).strict(),
|
|
9403
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9404
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9404
9405
|
kind: v3.z.literal("operation"),
|
|
9405
9406
|
effects: v3.z.enum([
|
|
9406
9407
|
"read_only",
|
|
@@ -9419,52 +9420,52 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
9419
9420
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
9420
9421
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9421
9422
|
})).strict(),
|
|
9422
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9423
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9423
9424
|
kind: v3.z.literal("completion")
|
|
9424
9425
|
})).strict(),
|
|
9425
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9426
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9426
9427
|
kind: v3.z.literal("policy"),
|
|
9427
9428
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
9428
9429
|
})).strict(),
|
|
9429
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9430
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9430
9431
|
kind: v3.z.literal("projection")
|
|
9431
9432
|
})).strict(),
|
|
9432
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9433
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9433
9434
|
kind: v3.z.literal("presentation")
|
|
9434
9435
|
})).strict(),
|
|
9435
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9436
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9436
9437
|
kind: v3.z.literal("action")
|
|
9437
9438
|
})).strict(),
|
|
9438
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9439
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9439
9440
|
kind: v3.z.literal("metric")
|
|
9440
9441
|
})).strict(),
|
|
9441
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9442
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9442
9443
|
kind: v3.z.literal("dimension")
|
|
9443
9444
|
})).strict(),
|
|
9444
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9445
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9445
9446
|
kind: v3.z.literal("trigger")
|
|
9446
9447
|
})).strict(),
|
|
9447
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
9448
|
+
v3.z.object(_object_spread_props$7(_object_spread$b({}, reference$1), {
|
|
9448
9449
|
kind: v3.z.literal("subscription"),
|
|
9449
9450
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
9450
9451
|
})).strict()
|
|
9451
9452
|
]);
|
|
9452
9453
|
|
|
9453
|
-
/** 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) {
|
|
9454
9455
|
if (len == null || len > arr.length) len = arr.length;
|
|
9455
9456
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9456
9457
|
return arr2;
|
|
9457
9458
|
}
|
|
9458
|
-
function _array_with_holes$
|
|
9459
|
+
function _array_with_holes$b(arr) {
|
|
9459
9460
|
if (Array.isArray(arr)) return arr;
|
|
9460
9461
|
}
|
|
9461
9462
|
function _array_without_holes$9(arr) {
|
|
9462
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9463
|
+
if (Array.isArray(arr)) return _array_like_to_array$h(arr);
|
|
9463
9464
|
}
|
|
9464
9465
|
function _iterable_to_array$a(iter) {
|
|
9465
9466
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9466
9467
|
}
|
|
9467
|
-
function _iterable_to_array_limit$
|
|
9468
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
9468
9469
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9469
9470
|
if (_i == null) return;
|
|
9470
9471
|
var _arr = [];
|
|
@@ -9488,25 +9489,25 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
9488
9489
|
}
|
|
9489
9490
|
return _arr;
|
|
9490
9491
|
}
|
|
9491
|
-
function _non_iterable_rest$
|
|
9492
|
+
function _non_iterable_rest$b() {
|
|
9492
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.");
|
|
9493
9494
|
}
|
|
9494
9495
|
function _non_iterable_spread$9() {
|
|
9495
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.");
|
|
9496
9497
|
}
|
|
9497
|
-
function _sliced_to_array$
|
|
9498
|
-
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();
|
|
9499
9500
|
}
|
|
9500
9501
|
function _to_consumable_array$9(arr) {
|
|
9501
|
-
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();
|
|
9502
9503
|
}
|
|
9503
|
-
function _unsupported_iterable_to_array$
|
|
9504
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
9504
9505
|
if (!o) return;
|
|
9505
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9506
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
9506
9507
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9507
9508
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9508
9509
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9509
|
-
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);
|
|
9510
9511
|
}
|
|
9511
9512
|
function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
9512
9513
|
var _template_presentation, _template_presentation_evidenceTypes, _template_presentation1, _template_metrics, _template_metrics1;
|
|
@@ -9622,7 +9623,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9622
9623
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
9623
9624
|
try {
|
|
9624
9625
|
var _loop = function() {
|
|
9625
|
-
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];
|
|
9626
9627
|
var _binding_executorBindings_node_executorSlot, _binding_executorBindings;
|
|
9627
9628
|
var path = [
|
|
9628
9629
|
"template",
|
|
@@ -9633,7 +9634,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9633
9634
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
9634
9635
|
try {
|
|
9635
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){
|
|
9636
|
-
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];
|
|
9637
9638
|
requireRef("schema", schemaRef, _to_consumable_array$9(path).concat([
|
|
9638
9639
|
"outputPorts",
|
|
9639
9640
|
port
|
|
@@ -9714,7 +9715,7 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9714
9715
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
9715
9716
|
try {
|
|
9716
9717
|
var _loop = function() {
|
|
9717
|
-
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];
|
|
9718
9719
|
var _nodes_get_outputPorts, _nodes_get;
|
|
9719
9720
|
requireRef("schema", expected.schemaRef, _to_consumable_array$9(path).concat([
|
|
9720
9721
|
"inputBindings",
|
|
@@ -9855,21 +9856,21 @@ function checkProjectPipelineConfiguration(configuration, descriptors) {
|
|
|
9855
9856
|
}
|
|
9856
9857
|
}
|
|
9857
9858
|
|
|
9858
|
-
function _array_like_to_array$
|
|
9859
|
+
function _array_like_to_array$g(arr, len) {
|
|
9859
9860
|
if (len == null || len > arr.length) len = arr.length;
|
|
9860
9861
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9861
9862
|
return arr2;
|
|
9862
9863
|
}
|
|
9863
|
-
function _array_with_holes$
|
|
9864
|
+
function _array_with_holes$a(arr) {
|
|
9864
9865
|
if (Array.isArray(arr)) return arr;
|
|
9865
9866
|
}
|
|
9866
9867
|
function _array_without_holes$8(arr) {
|
|
9867
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
9868
|
+
if (Array.isArray(arr)) return _array_like_to_array$g(arr);
|
|
9868
9869
|
}
|
|
9869
9870
|
function _iterable_to_array$9(iter) {
|
|
9870
9871
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
9871
9872
|
}
|
|
9872
|
-
function _iterable_to_array_limit$
|
|
9873
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
9873
9874
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9874
9875
|
if (_i == null) return;
|
|
9875
9876
|
var _arr = [];
|
|
@@ -9893,25 +9894,25 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
9893
9894
|
}
|
|
9894
9895
|
return _arr;
|
|
9895
9896
|
}
|
|
9896
|
-
function _non_iterable_rest$
|
|
9897
|
+
function _non_iterable_rest$a() {
|
|
9897
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.");
|
|
9898
9899
|
}
|
|
9899
9900
|
function _non_iterable_spread$8() {
|
|
9900
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.");
|
|
9901
9902
|
}
|
|
9902
|
-
function _sliced_to_array$
|
|
9903
|
-
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();
|
|
9904
9905
|
}
|
|
9905
9906
|
function _to_consumable_array$8(arr) {
|
|
9906
|
-
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();
|
|
9907
9908
|
}
|
|
9908
|
-
function _unsupported_iterable_to_array$
|
|
9909
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
9909
9910
|
if (!o) return;
|
|
9910
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
9911
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
9911
9912
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9912
9913
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9913
9914
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9914
|
-
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);
|
|
9915
9916
|
}
|
|
9916
9917
|
var key$2 = v3.z.string().min(1).max(500);
|
|
9917
9918
|
var timestamp = v3.z.string().datetime({
|
|
@@ -10171,10 +10172,10 @@ var tombstone = v3.z.object({
|
|
|
10171
10172
|
return degree.set(edge.to, ((_degree_get = degree.get(edge.to)) !== null && _degree_get !== void 0 ? _degree_get : 0) + 1);
|
|
10172
10173
|
});
|
|
10173
10174
|
var queue = _to_consumable_array$8(degree).filter(function(param) {
|
|
10174
|
-
var _param = _sliced_to_array$
|
|
10175
|
+
var _param = _sliced_to_array$9(param, 2), n = _param[1];
|
|
10175
10176
|
return n === 0;
|
|
10176
10177
|
}).map(function(param) {
|
|
10177
|
-
var _param = _sliced_to_array$
|
|
10178
|
+
var _param = _sliced_to_array$9(param, 1), key = _param[0];
|
|
10178
10179
|
return key;
|
|
10179
10180
|
});
|
|
10180
10181
|
var visited = 0;
|
|
@@ -10211,7 +10212,7 @@ var tombstone = v3.z.object({
|
|
|
10211
10212
|
]);
|
|
10212
10213
|
});
|
|
10213
10214
|
|
|
10214
|
-
function _define_property$
|
|
10215
|
+
function _define_property$a(obj, key, value) {
|
|
10215
10216
|
if (key in obj) {
|
|
10216
10217
|
Object.defineProperty(obj, key, {
|
|
10217
10218
|
value: value,
|
|
@@ -10224,7 +10225,7 @@ function _define_property$9(obj, key, value) {
|
|
|
10224
10225
|
}
|
|
10225
10226
|
return obj;
|
|
10226
10227
|
}
|
|
10227
|
-
function _object_spread$
|
|
10228
|
+
function _object_spread$a(target) {
|
|
10228
10229
|
for(var i = 1; i < arguments.length; i++){
|
|
10229
10230
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10230
10231
|
var ownKeys = Object.keys(source);
|
|
@@ -10234,7 +10235,7 @@ function _object_spread$9(target) {
|
|
|
10234
10235
|
}));
|
|
10235
10236
|
}
|
|
10236
10237
|
ownKeys.forEach(function(key) {
|
|
10237
|
-
_define_property$
|
|
10238
|
+
_define_property$a(target, key, source[key]);
|
|
10238
10239
|
});
|
|
10239
10240
|
}
|
|
10240
10241
|
return target;
|
|
@@ -10290,7 +10291,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10290
10291
|
return left.version === right.version && left.kind === right.kind && left.generation === right.generation && (left.kind !== "host" || right.kind === "host" && left.hostId === right.hostId);
|
|
10291
10292
|
}
|
|
10292
10293
|
/** Control acknowledgements never constitute completion evidence. Missing evidence stays unknown. */ var executionControlEvidenceSchema = v3.z.discriminatedUnion("source", [
|
|
10293
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10294
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10294
10295
|
source: v3.z.literal("unavailable"),
|
|
10295
10296
|
subject: subject,
|
|
10296
10297
|
state: v3.z.literal("unknown"),
|
|
@@ -10300,7 +10301,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10300
10301
|
"unsupported"
|
|
10301
10302
|
])
|
|
10302
10303
|
})).strict(),
|
|
10303
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10304
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10304
10305
|
source: v3.z.literal("platform"),
|
|
10305
10306
|
subject: subject,
|
|
10306
10307
|
scope: v3.z.literal("owned_subtree"),
|
|
@@ -10322,7 +10323,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10322
10323
|
executionId: v3.z.string().uuid(),
|
|
10323
10324
|
threadId: v3.z.string().min(1)
|
|
10324
10325
|
})).strict(),
|
|
10325
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10326
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10326
10327
|
source: v3.z.literal("provider"),
|
|
10327
10328
|
subject: v3.z.object({
|
|
10328
10329
|
kind: v3.z.literal("invocation"),
|
|
@@ -10340,7 +10341,7 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10340
10341
|
receiptKey: v3.z.string().min(1).max(500),
|
|
10341
10342
|
target: executionRuntimeTargetSchema.optional()
|
|
10342
10343
|
})).strict(),
|
|
10343
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
10344
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10344
10345
|
source: v3.z.literal("host_admission"),
|
|
10345
10346
|
subject: v3.z.object({
|
|
10346
10347
|
kind: v3.z.literal("invocation"),
|
|
@@ -10367,7 +10368,7 @@ function unknownExecutionControl(subject) {
|
|
|
10367
10368
|
};
|
|
10368
10369
|
}
|
|
10369
10370
|
|
|
10370
|
-
function _define_property$
|
|
10371
|
+
function _define_property$9(obj, key, value) {
|
|
10371
10372
|
if (key in obj) {
|
|
10372
10373
|
Object.defineProperty(obj, key, {
|
|
10373
10374
|
value: value,
|
|
@@ -10380,7 +10381,7 @@ function _define_property$8(obj, key, value) {
|
|
|
10380
10381
|
}
|
|
10381
10382
|
return obj;
|
|
10382
10383
|
}
|
|
10383
|
-
function _object_spread$
|
|
10384
|
+
function _object_spread$9(target) {
|
|
10384
10385
|
for(var i = 1; i < arguments.length; i++){
|
|
10385
10386
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10386
10387
|
var ownKeys = Object.keys(source);
|
|
@@ -10390,7 +10391,7 @@ function _object_spread$8(target) {
|
|
|
10390
10391
|
}));
|
|
10391
10392
|
}
|
|
10392
10393
|
ownKeys.forEach(function(key) {
|
|
10393
|
-
_define_property$
|
|
10394
|
+
_define_property$9(target, key, source[key]);
|
|
10394
10395
|
});
|
|
10395
10396
|
}
|
|
10396
10397
|
return target;
|
|
@@ -10475,20 +10476,20 @@ var receipt = {
|
|
|
10475
10476
|
]).optional()
|
|
10476
10477
|
};
|
|
10477
10478
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
10478
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10479
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10479
10480
|
status: v3.z.literal("pending")
|
|
10480
10481
|
})).strict(),
|
|
10481
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10482
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10482
10483
|
status: v3.z.literal("succeeded"),
|
|
10483
10484
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
10484
10485
|
return Object.keys(value).length <= 100;
|
|
10485
10486
|
}, "Too many output ports")
|
|
10486
10487
|
})).strict(),
|
|
10487
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10488
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10488
10489
|
status: v3.z.literal("failed"),
|
|
10489
10490
|
code: projectPipelineKeySchema
|
|
10490
10491
|
})).strict(),
|
|
10491
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
10492
|
+
v3.z.object(_object_spread_props$5(_object_spread$9({}, receipt), {
|
|
10492
10493
|
status: v3.z.literal("cancelled")
|
|
10493
10494
|
})).strict(),
|
|
10494
10495
|
v3.z.object({
|
|
@@ -10562,15 +10563,15 @@ var projectPipelineRetrySchema = v3.z.object({
|
|
|
10562
10563
|
generation: v3.z.number().int().positive()
|
|
10563
10564
|
}).strict();
|
|
10564
10565
|
|
|
10565
|
-
function _array_like_to_array$
|
|
10566
|
+
function _array_like_to_array$f(arr, len) {
|
|
10566
10567
|
if (len == null || len > arr.length) len = arr.length;
|
|
10567
10568
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10568
10569
|
return arr2;
|
|
10569
10570
|
}
|
|
10570
10571
|
function _array_without_holes$7(arr) {
|
|
10571
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10572
|
+
if (Array.isArray(arr)) return _array_like_to_array$f(arr);
|
|
10572
10573
|
}
|
|
10573
|
-
function _define_property$
|
|
10574
|
+
function _define_property$8(obj, key, value) {
|
|
10574
10575
|
if (key in obj) {
|
|
10575
10576
|
Object.defineProperty(obj, key, {
|
|
10576
10577
|
value: value,
|
|
@@ -10589,7 +10590,7 @@ function _iterable_to_array$8(iter) {
|
|
|
10589
10590
|
function _non_iterable_spread$7() {
|
|
10590
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.");
|
|
10591
10592
|
}
|
|
10592
|
-
function _object_spread$
|
|
10593
|
+
function _object_spread$8(target) {
|
|
10593
10594
|
for(var i = 1; i < arguments.length; i++){
|
|
10594
10595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10595
10596
|
var ownKeys = Object.keys(source);
|
|
@@ -10599,7 +10600,7 @@ function _object_spread$7(target) {
|
|
|
10599
10600
|
}));
|
|
10600
10601
|
}
|
|
10601
10602
|
ownKeys.forEach(function(key) {
|
|
10602
|
-
_define_property$
|
|
10603
|
+
_define_property$8(target, key, source[key]);
|
|
10603
10604
|
});
|
|
10604
10605
|
}
|
|
10605
10606
|
return target;
|
|
@@ -10624,15 +10625,15 @@ function _object_spread_props$4(target, source) {
|
|
|
10624
10625
|
return target;
|
|
10625
10626
|
}
|
|
10626
10627
|
function _to_consumable_array$7(arr) {
|
|
10627
|
-
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();
|
|
10628
10629
|
}
|
|
10629
|
-
function _unsupported_iterable_to_array$
|
|
10630
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
10630
10631
|
if (!o) return;
|
|
10631
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10632
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
10632
10633
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10633
10634
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10634
10635
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10635
|
-
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);
|
|
10636
10637
|
}
|
|
10637
10638
|
var count$5 = v3.z.number().int().nonnegative();
|
|
10638
10639
|
var pipelineAttemptCountsSchema = v3.z.object({
|
|
@@ -10807,22 +10808,22 @@ function pipelineExecutorStatistics(facts) {
|
|
|
10807
10808
|
}
|
|
10808
10809
|
return _to_consumable_array$7(groups.values()).map(function(param) {
|
|
10809
10810
|
var identity = param.identity, _$facts = param.facts;
|
|
10810
|
-
return _object_spread_props$4(_object_spread$
|
|
10811
|
+
return _object_spread_props$4(_object_spread$8({}, identity), {
|
|
10811
10812
|
attempts: pipelineAttemptCounts(_$facts),
|
|
10812
10813
|
timing: pipelineExecutionTiming(_$facts)
|
|
10813
10814
|
});
|
|
10814
10815
|
});
|
|
10815
10816
|
}
|
|
10816
10817
|
|
|
10817
|
-
function _array_like_to_array$
|
|
10818
|
+
function _array_like_to_array$e(arr, len) {
|
|
10818
10819
|
if (len == null || len > arr.length) len = arr.length;
|
|
10819
10820
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
10820
10821
|
return arr2;
|
|
10821
10822
|
}
|
|
10822
10823
|
function _array_without_holes$6(arr) {
|
|
10823
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
10824
|
+
if (Array.isArray(arr)) return _array_like_to_array$e(arr);
|
|
10824
10825
|
}
|
|
10825
|
-
function _define_property$
|
|
10826
|
+
function _define_property$7(obj, key, value) {
|
|
10826
10827
|
if (key in obj) {
|
|
10827
10828
|
Object.defineProperty(obj, key, {
|
|
10828
10829
|
value: value,
|
|
@@ -10841,7 +10842,7 @@ function _iterable_to_array$7(iter) {
|
|
|
10841
10842
|
function _non_iterable_spread$6() {
|
|
10842
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.");
|
|
10843
10844
|
}
|
|
10844
|
-
function _object_spread$
|
|
10845
|
+
function _object_spread$7(target) {
|
|
10845
10846
|
for(var i = 1; i < arguments.length; i++){
|
|
10846
10847
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10847
10848
|
var ownKeys = Object.keys(source);
|
|
@@ -10851,7 +10852,7 @@ function _object_spread$6(target) {
|
|
|
10851
10852
|
}));
|
|
10852
10853
|
}
|
|
10853
10854
|
ownKeys.forEach(function(key) {
|
|
10854
|
-
_define_property$
|
|
10855
|
+
_define_property$7(target, key, source[key]);
|
|
10855
10856
|
});
|
|
10856
10857
|
}
|
|
10857
10858
|
return target;
|
|
@@ -10876,15 +10877,15 @@ function _object_spread_props$3(target, source) {
|
|
|
10876
10877
|
return target;
|
|
10877
10878
|
}
|
|
10878
10879
|
function _to_consumable_array$6(arr) {
|
|
10879
|
-
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();
|
|
10880
10881
|
}
|
|
10881
|
-
function _unsupported_iterable_to_array$
|
|
10882
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
10882
10883
|
if (!o) return;
|
|
10883
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
10884
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
10884
10885
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
10885
10886
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
10886
10887
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
10887
|
-
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);
|
|
10888
10889
|
}
|
|
10889
10890
|
var count$4 = v3.z.number().int().nonnegative();
|
|
10890
10891
|
var tokens = v3.z.number().int().nonnegative().safe();
|
|
@@ -11040,7 +11041,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11040
11041
|
}
|
|
11041
11042
|
}
|
|
11042
11043
|
}
|
|
11043
|
-
return _object_spread_props$3(_object_spread$
|
|
11044
|
+
return _object_spread_props$3(_object_spread$7({
|
|
11044
11045
|
scope: "linked_native_llm_calls"
|
|
11045
11046
|
}, coverage, totals(calls)), {
|
|
11046
11047
|
unpricedCalls: unpricedCalls,
|
|
@@ -11048,7 +11049,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11048
11049
|
return a.currency.localeCompare(b.currency);
|
|
11049
11050
|
}),
|
|
11050
11051
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11051
|
-
return _object_spread$
|
|
11052
|
+
return _object_spread$7({
|
|
11052
11053
|
provider: group[0].provider,
|
|
11053
11054
|
model: group[0].model
|
|
11054
11055
|
}, totals(group));
|
|
@@ -11071,13 +11072,13 @@ function pipelineNodeNeedsHuman(node) {
|
|
|
11071
11072
|
].includes(node.state.lifecycle) && node.state.readiness === "ready";
|
|
11072
11073
|
}
|
|
11073
11074
|
|
|
11074
|
-
function _array_like_to_array$
|
|
11075
|
+
function _array_like_to_array$d(arr, len) {
|
|
11075
11076
|
if (len == null || len > arr.length) len = arr.length;
|
|
11076
11077
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11077
11078
|
return arr2;
|
|
11078
11079
|
}
|
|
11079
11080
|
function _array_without_holes$5(arr) {
|
|
11080
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11081
|
+
if (Array.isArray(arr)) return _array_like_to_array$d(arr);
|
|
11081
11082
|
}
|
|
11082
11083
|
function _iterable_to_array$6(iter) {
|
|
11083
11084
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -11086,15 +11087,15 @@ function _non_iterable_spread$5() {
|
|
|
11086
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.");
|
|
11087
11088
|
}
|
|
11088
11089
|
function _to_consumable_array$5(arr) {
|
|
11089
|
-
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();
|
|
11090
11091
|
}
|
|
11091
|
-
function _unsupported_iterable_to_array$
|
|
11092
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
11092
11093
|
if (!o) return;
|
|
11093
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11094
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
11094
11095
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11095
11096
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11096
11097
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11097
|
-
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);
|
|
11098
11099
|
}
|
|
11099
11100
|
var count$3 = v3.z.number().int().nonnegative();
|
|
11100
11101
|
var projectPipelineWorkCountsSchema = v3.z.object({
|
|
@@ -11257,18 +11258,18 @@ function selectedPipelineAttemptFacts(nodes, executions) {
|
|
|
11257
11258
|
}).strict()
|
|
11258
11259
|
]);
|
|
11259
11260
|
|
|
11260
|
-
function _array_like_to_array$
|
|
11261
|
+
function _array_like_to_array$c(arr, len) {
|
|
11261
11262
|
if (len == null || len > arr.length) len = arr.length;
|
|
11262
11263
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11263
11264
|
return arr2;
|
|
11264
11265
|
}
|
|
11265
|
-
function _array_with_holes$
|
|
11266
|
+
function _array_with_holes$9(arr) {
|
|
11266
11267
|
if (Array.isArray(arr)) return arr;
|
|
11267
11268
|
}
|
|
11268
11269
|
function _array_without_holes$4(arr) {
|
|
11269
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11270
|
+
if (Array.isArray(arr)) return _array_like_to_array$c(arr);
|
|
11270
11271
|
}
|
|
11271
|
-
function _define_property$
|
|
11272
|
+
function _define_property$6(obj, key, value) {
|
|
11272
11273
|
if (key in obj) {
|
|
11273
11274
|
Object.defineProperty(obj, key, {
|
|
11274
11275
|
value: value,
|
|
@@ -11284,7 +11285,7 @@ function _define_property$5(obj, key, value) {
|
|
|
11284
11285
|
function _iterable_to_array$5(iter) {
|
|
11285
11286
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
11286
11287
|
}
|
|
11287
|
-
function _iterable_to_array_limit$
|
|
11288
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
11288
11289
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11289
11290
|
if (_i == null) return;
|
|
11290
11291
|
var _arr = [];
|
|
@@ -11308,13 +11309,13 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
11308
11309
|
}
|
|
11309
11310
|
return _arr;
|
|
11310
11311
|
}
|
|
11311
|
-
function _non_iterable_rest$
|
|
11312
|
+
function _non_iterable_rest$9() {
|
|
11312
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.");
|
|
11313
11314
|
}
|
|
11314
11315
|
function _non_iterable_spread$4() {
|
|
11315
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.");
|
|
11316
11317
|
}
|
|
11317
|
-
function _object_spread$
|
|
11318
|
+
function _object_spread$6(target) {
|
|
11318
11319
|
for(var i = 1; i < arguments.length; i++){
|
|
11319
11320
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11320
11321
|
var ownKeys = Object.keys(source);
|
|
@@ -11324,7 +11325,7 @@ function _object_spread$5(target) {
|
|
|
11324
11325
|
}));
|
|
11325
11326
|
}
|
|
11326
11327
|
ownKeys.forEach(function(key) {
|
|
11327
|
-
_define_property$
|
|
11328
|
+
_define_property$6(target, key, source[key]);
|
|
11328
11329
|
});
|
|
11329
11330
|
}
|
|
11330
11331
|
return target;
|
|
@@ -11348,19 +11349,19 @@ function _object_spread_props$2(target, source) {
|
|
|
11348
11349
|
}
|
|
11349
11350
|
return target;
|
|
11350
11351
|
}
|
|
11351
|
-
function _sliced_to_array$
|
|
11352
|
-
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();
|
|
11353
11354
|
}
|
|
11354
11355
|
function _to_consumable_array$4(arr) {
|
|
11355
|
-
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();
|
|
11356
11357
|
}
|
|
11357
|
-
function _unsupported_iterable_to_array$
|
|
11358
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
11358
11359
|
if (!o) return;
|
|
11359
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11360
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
11360
11361
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11361
11362
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11362
11363
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11363
|
-
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);
|
|
11364
11365
|
}
|
|
11365
11366
|
var label$1 = v3.z.object({
|
|
11366
11367
|
en_US: v3.z.string().min(1).max(200),
|
|
@@ -11376,30 +11377,30 @@ var option = v3.z.object({
|
|
|
11376
11377
|
label: label$1
|
|
11377
11378
|
}).strict();
|
|
11378
11379
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
11379
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11380
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11380
11381
|
type: v3.z.literal("boolean")
|
|
11381
11382
|
})).strict(),
|
|
11382
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11383
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11383
11384
|
type: v3.z.literal("text"),
|
|
11384
11385
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
11385
11386
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
11386
11387
|
})).strict(),
|
|
11387
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11388
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11388
11389
|
type: v3.z.literal("number"),
|
|
11389
11390
|
min: v3.z.number().finite(),
|
|
11390
11391
|
max: v3.z.number().finite(),
|
|
11391
11392
|
integer: v3.z.boolean()
|
|
11392
11393
|
})).strict(),
|
|
11393
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11394
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11394
11395
|
type: v3.z.literal("choice"),
|
|
11395
11396
|
options: v3.z.array(option).min(1).max(100)
|
|
11396
11397
|
})).strict(),
|
|
11397
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11398
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11398
11399
|
type: v3.z.literal("multi_choice"),
|
|
11399
11400
|
options: v3.z.array(option).min(1).max(100),
|
|
11400
11401
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
11401
11402
|
})).strict(),
|
|
11402
|
-
v3.z.object(_object_spread_props$2(_object_spread$
|
|
11403
|
+
v3.z.object(_object_spread_props$2(_object_spread$6({}, field), {
|
|
11403
11404
|
type: v3.z.literal("string_list"),
|
|
11404
11405
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
11405
11406
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -11436,7 +11437,7 @@ var projectPipelineConfigurationFormSchema = v3.z.object({
|
|
|
11436
11437
|
})
|
|
11437
11438
|
]
|
|
11438
11439
|
]; _i < _iter.length; _i++){
|
|
11439
|
-
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];
|
|
11440
11441
|
if (new Set(keys).size !== keys.length) context.addIssue({
|
|
11441
11442
|
code: "custom",
|
|
11442
11443
|
message: "DUPLICATE_CONFIGURATION_FIELD",
|
|
@@ -11576,10 +11577,10 @@ function parameterSchema(field) {
|
|
|
11576
11577
|
if (!sameKeys(form.assistantSlots.map(function(item) {
|
|
11577
11578
|
return item.slot;
|
|
11578
11579
|
}), Object.entries((_configuration_binding_executorBindings = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings !== void 0 ? _configuration_binding_executorBindings : {}).filter(function(param) {
|
|
11579
|
-
var _param = _sliced_to_array$
|
|
11580
|
+
var _param = _sliced_to_array$8(param, 2), executor = _param[1];
|
|
11580
11581
|
return executor.kind === "assistant";
|
|
11581
11582
|
}).map(function(param) {
|
|
11582
|
-
var _param = _sliced_to_array$
|
|
11583
|
+
var _param = _sliced_to_array$8(param, 1), slot = _param[0];
|
|
11583
11584
|
return slot;
|
|
11584
11585
|
}))) throw new Error("PIPELINE_CONFIGURATION_SLOTS_INCOMPLETE");
|
|
11585
11586
|
var _form_runtimeSlots, _input_runtimes;
|
|
@@ -11588,10 +11589,10 @@ function parameterSchema(field) {
|
|
|
11588
11589
|
if (!sameKeys(runtimeSlots.map(function(item) {
|
|
11589
11590
|
return item.slot;
|
|
11590
11591
|
}), Object.entries((_configuration_binding_executorBindings1 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings1 !== void 0 ? _configuration_binding_executorBindings1 : {}).filter(function(param) {
|
|
11591
|
-
var _param = _sliced_to_array$
|
|
11592
|
+
var _param = _sliced_to_array$8(param, 2), executor = _param[1];
|
|
11592
11593
|
return executor.kind === "runtime_binding";
|
|
11593
11594
|
}).map(function(param) {
|
|
11594
|
-
var _param = _sliced_to_array$
|
|
11595
|
+
var _param = _sliced_to_array$8(param, 1), slot = _param[0];
|
|
11595
11596
|
return slot;
|
|
11596
11597
|
}))) throw new Error("PIPELINE_CONFIGURATION_SLOTS_INCOMPLETE");
|
|
11597
11598
|
if (!sameKeys(Object.keys(input.assistants), form.assistantSlots.map(function(item) {
|
|
@@ -11602,13 +11603,13 @@ function parameterSchema(field) {
|
|
|
11602
11603
|
return item.key;
|
|
11603
11604
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
11604
11605
|
var _configuration_binding_executorBindings2;
|
|
11605
|
-
var binding = _object_spread_props$2(_object_spread$
|
|
11606
|
-
parameters: _object_spread$
|
|
11606
|
+
var binding = _object_spread_props$2(_object_spread$6({}, configuration.binding), {
|
|
11607
|
+
parameters: _object_spread$6({}, configuration.binding.parameters),
|
|
11607
11608
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
11608
|
-
var _param = _sliced_to_array$
|
|
11609
|
+
var _param = _sliced_to_array$8(param, 2), key = _param[0], executor = _param[1];
|
|
11609
11610
|
return [
|
|
11610
11611
|
key,
|
|
11611
|
-
_object_spread$
|
|
11612
|
+
_object_spread$6({}, executor)
|
|
11612
11613
|
];
|
|
11613
11614
|
}))
|
|
11614
11615
|
});
|
|
@@ -11624,7 +11625,7 @@ function parameterSchema(field) {
|
|
|
11624
11625
|
var key = _iter[_i];
|
|
11625
11626
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
11626
11627
|
}
|
|
11627
|
-
binding.limits = _object_spread_props$2(_object_spread$
|
|
11628
|
+
binding.limits = _object_spread_props$2(_object_spread$6({}, binding.limits), {
|
|
11628
11629
|
nativeModelBudget: budget
|
|
11629
11630
|
});
|
|
11630
11631
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -11696,14 +11697,14 @@ function parameterSchema(field) {
|
|
|
11696
11697
|
}
|
|
11697
11698
|
}
|
|
11698
11699
|
}
|
|
11699
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$
|
|
11700
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$2(_object_spread$6({}, configuration), {
|
|
11700
11701
|
binding: binding
|
|
11701
11702
|
}));
|
|
11702
11703
|
}
|
|
11703
11704
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
11704
11705
|
var _configuration_binding_limits;
|
|
11705
11706
|
var _form_runtimeSlots;
|
|
11706
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$
|
|
11707
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$2(_object_spread$6({}, form.nativeModelBudget ? {
|
|
11707
11708
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
11708
11709
|
} : {}), {
|
|
11709
11710
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -11809,13 +11810,13 @@ var projectPipelineProviderActionsSchema = v3.z.object({
|
|
|
11809
11810
|
operations: v3.z.array(projectPipelineProviderActionViewSchema).max(50)
|
|
11810
11811
|
}).strict();
|
|
11811
11812
|
|
|
11812
|
-
function _array_like_to_array$
|
|
11813
|
+
function _array_like_to_array$b(arr, len) {
|
|
11813
11814
|
if (len == null || len > arr.length) len = arr.length;
|
|
11814
11815
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11815
11816
|
return arr2;
|
|
11816
11817
|
}
|
|
11817
11818
|
function _array_without_holes$3(arr) {
|
|
11818
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11819
|
+
if (Array.isArray(arr)) return _array_like_to_array$b(arr);
|
|
11819
11820
|
}
|
|
11820
11821
|
function _iterable_to_array$4(iter) {
|
|
11821
11822
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -11824,15 +11825,15 @@ function _non_iterable_spread$3() {
|
|
|
11824
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.");
|
|
11825
11826
|
}
|
|
11826
11827
|
function _to_consumable_array$3(arr) {
|
|
11827
|
-
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();
|
|
11828
11829
|
}
|
|
11829
|
-
function _unsupported_iterable_to_array$
|
|
11830
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
11830
11831
|
if (!o) return;
|
|
11831
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
11832
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
11832
11833
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11833
11834
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
11834
11835
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
11835
|
-
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);
|
|
11836
11837
|
}
|
|
11837
11838
|
var count$2 = v3.z.number().int().nonnegative();
|
|
11838
11839
|
var metrics = v3.z.object({
|
|
@@ -11974,18 +11975,18 @@ var pipelineQueueStatisticsSchema = v3.z.object({
|
|
|
11974
11975
|
};
|
|
11975
11976
|
}
|
|
11976
11977
|
|
|
11977
|
-
function _array_like_to_array$
|
|
11978
|
+
function _array_like_to_array$a(arr, len) {
|
|
11978
11979
|
if (len == null || len > arr.length) len = arr.length;
|
|
11979
11980
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
11980
11981
|
return arr2;
|
|
11981
11982
|
}
|
|
11982
|
-
function _array_with_holes$
|
|
11983
|
+
function _array_with_holes$8(arr) {
|
|
11983
11984
|
if (Array.isArray(arr)) return arr;
|
|
11984
11985
|
}
|
|
11985
11986
|
function _array_without_holes$2(arr) {
|
|
11986
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
11987
|
+
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
11987
11988
|
}
|
|
11988
|
-
function _define_property$
|
|
11989
|
+
function _define_property$5(obj, key, value) {
|
|
11989
11990
|
if (key in obj) {
|
|
11990
11991
|
Object.defineProperty(obj, key, {
|
|
11991
11992
|
value: value,
|
|
@@ -12001,7 +12002,7 @@ function _define_property$4(obj, key, value) {
|
|
|
12001
12002
|
function _iterable_to_array$3(iter) {
|
|
12002
12003
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
12003
12004
|
}
|
|
12004
|
-
function _iterable_to_array_limit$
|
|
12005
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
12005
12006
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12006
12007
|
if (_i == null) return;
|
|
12007
12008
|
var _arr = [];
|
|
@@ -12025,13 +12026,13 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
12025
12026
|
}
|
|
12026
12027
|
return _arr;
|
|
12027
12028
|
}
|
|
12028
|
-
function _non_iterable_rest$
|
|
12029
|
+
function _non_iterable_rest$8() {
|
|
12029
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.");
|
|
12030
12031
|
}
|
|
12031
12032
|
function _non_iterable_spread$2() {
|
|
12032
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.");
|
|
12033
12034
|
}
|
|
12034
|
-
function _object_spread$
|
|
12035
|
+
function _object_spread$5(target) {
|
|
12035
12036
|
for(var i = 1; i < arguments.length; i++){
|
|
12036
12037
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12037
12038
|
var ownKeys = Object.keys(source);
|
|
@@ -12041,7 +12042,7 @@ function _object_spread$4(target) {
|
|
|
12041
12042
|
}));
|
|
12042
12043
|
}
|
|
12043
12044
|
ownKeys.forEach(function(key) {
|
|
12044
|
-
_define_property$
|
|
12045
|
+
_define_property$5(target, key, source[key]);
|
|
12045
12046
|
});
|
|
12046
12047
|
}
|
|
12047
12048
|
return target;
|
|
@@ -12065,19 +12066,19 @@ function _object_spread_props$1(target, source) {
|
|
|
12065
12066
|
}
|
|
12066
12067
|
return target;
|
|
12067
12068
|
}
|
|
12068
|
-
function _sliced_to_array$
|
|
12069
|
-
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();
|
|
12070
12071
|
}
|
|
12071
12072
|
function _to_consumable_array$2(arr) {
|
|
12072
|
-
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();
|
|
12073
12074
|
}
|
|
12074
|
-
function _unsupported_iterable_to_array$
|
|
12075
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
12075
12076
|
if (!o) return;
|
|
12076
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12077
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
12077
12078
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12078
12079
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12079
12080
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12080
|
-
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);
|
|
12081
12082
|
}
|
|
12082
12083
|
var count$1 = v3.z.number().int().nonnegative();
|
|
12083
12084
|
var pipelineHumanWaitStatisticsSchema = v3.z.object({
|
|
@@ -12102,7 +12103,7 @@ function unionDuration(ranges) {
|
|
|
12102
12103
|
for(var _iterator = _to_consumable_array$2(ranges).sort(function(a, b) {
|
|
12103
12104
|
return a[0] - b[0];
|
|
12104
12105
|
})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12105
|
-
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];
|
|
12106
12107
|
duration += Math.max(0, end - Math.max(start, until));
|
|
12107
12108
|
until = Math.max(until, end);
|
|
12108
12109
|
}
|
|
@@ -12164,7 +12165,7 @@ function unionDuration(ranges) {
|
|
|
12164
12165
|
try {
|
|
12165
12166
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
12166
12167
|
var value = _step.value;
|
|
12167
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12168
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
|
|
12168
12169
|
end: lastAt,
|
|
12169
12170
|
ongoing: false,
|
|
12170
12171
|
censored: true
|
|
@@ -12215,9 +12216,9 @@ function unionDuration(ranges) {
|
|
|
12215
12216
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
12216
12217
|
try {
|
|
12217
12218
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
12218
|
-
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];
|
|
12219
12220
|
if (!ready.has(id)) {
|
|
12220
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12221
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value), {
|
|
12221
12222
|
end: at,
|
|
12222
12223
|
ongoing: false
|
|
12223
12224
|
}));
|
|
@@ -12282,16 +12283,16 @@ function unionDuration(ranges) {
|
|
|
12282
12283
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
12283
12284
|
try {
|
|
12284
12285
|
for(var _iterator3 = open[Symbol.iterator](), _step4; !(_iteratorNormalCompletion3 = (_step4 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
12285
|
-
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];
|
|
12286
12287
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
12287
12288
|
if (currentWaiting.has(id2)) {
|
|
12288
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12289
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
|
|
12289
12290
|
end: now,
|
|
12290
12291
|
ongoing: true
|
|
12291
12292
|
}));
|
|
12292
12293
|
tracked.add(id2);
|
|
12293
12294
|
} else {
|
|
12294
|
-
intervals.push(_object_spread_props$1(_object_spread$
|
|
12295
|
+
intervals.push(_object_spread_props$1(_object_spread$5({}, value1), {
|
|
12295
12296
|
end: lastAt,
|
|
12296
12297
|
ongoing: false,
|
|
12297
12298
|
censored: true
|
|
@@ -12336,7 +12337,7 @@ function unionDuration(ranges) {
|
|
|
12336
12337
|
var selected = intervals.filter(function(interval) {
|
|
12337
12338
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
12338
12339
|
}).map(function(interval) {
|
|
12339
|
-
return _object_spread_props$1(_object_spread$
|
|
12340
|
+
return _object_spread_props$1(_object_spread$5({}, interval), {
|
|
12340
12341
|
start: Math.max(from, interval.start),
|
|
12341
12342
|
end: Math.min(to, interval.end)
|
|
12342
12343
|
});
|
|
@@ -12348,10 +12349,10 @@ function unionDuration(ranges) {
|
|
|
12348
12349
|
];
|
|
12349
12350
|
});
|
|
12350
12351
|
var observedWindowMs = unionDuration(covered.filter(function(param) {
|
|
12351
|
-
var _param = _sliced_to_array$
|
|
12352
|
+
var _param = _sliced_to_array$7(param, 2), start = _param[0], end = _param[1];
|
|
12352
12353
|
return start < to && end > from;
|
|
12353
12354
|
}).map(function(param) {
|
|
12354
|
-
var _param = _sliced_to_array$
|
|
12355
|
+
var _param = _sliced_to_array$7(param, 2), start = _param[0], end = _param[1];
|
|
12355
12356
|
return [
|
|
12356
12357
|
Math.max(start, from),
|
|
12357
12358
|
Math.min(end, to)
|
|
@@ -12382,7 +12383,7 @@ function unionDuration(ranges) {
|
|
|
12382
12383
|
};
|
|
12383
12384
|
}
|
|
12384
12385
|
|
|
12385
|
-
function _define_property$
|
|
12386
|
+
function _define_property$4(obj, key, value) {
|
|
12386
12387
|
if (key in obj) {
|
|
12387
12388
|
Object.defineProperty(obj, key, {
|
|
12388
12389
|
value: value,
|
|
@@ -12395,7 +12396,7 @@ function _define_property$3(obj, key, value) {
|
|
|
12395
12396
|
}
|
|
12396
12397
|
return obj;
|
|
12397
12398
|
}
|
|
12398
|
-
function _object_spread$
|
|
12399
|
+
function _object_spread$4(target) {
|
|
12399
12400
|
for(var i = 1; i < arguments.length; i++){
|
|
12400
12401
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
12401
12402
|
var ownKeys = Object.keys(source);
|
|
@@ -12405,7 +12406,7 @@ function _object_spread$3(target) {
|
|
|
12405
12406
|
}));
|
|
12406
12407
|
}
|
|
12407
12408
|
ownKeys.forEach(function(key) {
|
|
12408
|
-
_define_property$
|
|
12409
|
+
_define_property$4(target, key, source[key]);
|
|
12409
12410
|
});
|
|
12410
12411
|
}
|
|
12411
12412
|
return target;
|
|
@@ -12545,7 +12546,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
12545
12546
|
}
|
|
12546
12547
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
12547
12548
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
12548
|
-
return _object_spread$
|
|
12549
|
+
return _object_spread$4({
|
|
12549
12550
|
projectId: projectId
|
|
12550
12551
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
12551
12552
|
}
|
|
@@ -12604,13 +12605,13 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
12604
12605
|
};
|
|
12605
12606
|
}
|
|
12606
12607
|
|
|
12607
|
-
function _array_like_to_array$
|
|
12608
|
+
function _array_like_to_array$9(arr, len) {
|
|
12608
12609
|
if (len == null || len > arr.length) len = arr.length;
|
|
12609
12610
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12610
12611
|
return arr2;
|
|
12611
12612
|
}
|
|
12612
12613
|
function _array_without_holes$1(arr) {
|
|
12613
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
12614
|
+
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
12614
12615
|
}
|
|
12615
12616
|
function _iterable_to_array$2(iter) {
|
|
12616
12617
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -12619,15 +12620,15 @@ function _non_iterable_spread$1() {
|
|
|
12619
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.");
|
|
12620
12621
|
}
|
|
12621
12622
|
function _to_consumable_array$1(arr) {
|
|
12622
|
-
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();
|
|
12623
12624
|
}
|
|
12624
|
-
function _unsupported_iterable_to_array$
|
|
12625
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
12625
12626
|
if (!o) return;
|
|
12626
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12627
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
12627
12628
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12628
12629
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12629
12630
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12630
|
-
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);
|
|
12631
12632
|
}
|
|
12632
12633
|
/** Keys identify actual resources across Projects/tenants, never caller-supplied aliases or paths. */ var projectPipelineResourceClaimSchema = v3.z.object({
|
|
12633
12634
|
key: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
@@ -12673,15 +12674,15 @@ var projectPipelinePortfolioSchema = v3.z.object({
|
|
|
12673
12674
|
sharedAcrossProjects: v3.z.number().int().nonnegative()
|
|
12674
12675
|
}).strict();
|
|
12675
12676
|
|
|
12676
|
-
/** 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) {
|
|
12677
12678
|
if (len == null || len > arr.length) len = arr.length;
|
|
12678
12679
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12679
12680
|
return arr2;
|
|
12680
12681
|
}
|
|
12681
|
-
function _array_with_holes$
|
|
12682
|
+
function _array_with_holes$7(arr) {
|
|
12682
12683
|
if (Array.isArray(arr)) return arr;
|
|
12683
12684
|
}
|
|
12684
|
-
function _iterable_to_array_limit$
|
|
12685
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
12685
12686
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12686
12687
|
if (_i == null) return;
|
|
12687
12688
|
var _arr = [];
|
|
@@ -12705,19 +12706,19 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
12705
12706
|
}
|
|
12706
12707
|
return _arr;
|
|
12707
12708
|
}
|
|
12708
|
-
function _non_iterable_rest$
|
|
12709
|
+
function _non_iterable_rest$7() {
|
|
12709
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.");
|
|
12710
12711
|
}
|
|
12711
|
-
function _sliced_to_array$
|
|
12712
|
-
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();
|
|
12713
12714
|
}
|
|
12714
|
-
function _unsupported_iterable_to_array$
|
|
12715
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
12715
12716
|
if (!o) return;
|
|
12716
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12717
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
12717
12718
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12718
12719
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12719
12720
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12720
|
-
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);
|
|
12721
12722
|
}
|
|
12722
12723
|
function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
12723
12724
|
var _definition_hostRequirements, _definition_hostRequirements1;
|
|
@@ -12773,7 +12774,7 @@ function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
|
12773
12774
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
12774
12775
|
try {
|
|
12775
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){
|
|
12776
|
-
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];
|
|
12777
12778
|
if (executor.kind === "assistant") requireFeature("pipeline.assistant", 1, [
|
|
12778
12779
|
"binding",
|
|
12779
12780
|
"executorBindings",
|
|
@@ -12812,7 +12813,7 @@ function checkProjectPipelineHostCompatibility(definition, binding, host) {
|
|
|
12812
12813
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
12813
12814
|
try {
|
|
12814
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){
|
|
12815
|
-
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];
|
|
12816
12817
|
requireFeature(feature, version);
|
|
12817
12818
|
}
|
|
12818
12819
|
} catch (err) {
|
|
@@ -12925,15 +12926,15 @@ var templateDependencyLocksSchema = zod.z.array(zod.z.object({
|
|
|
12925
12926
|
}).strict()).max(300)
|
|
12926
12927
|
}).strict()).max(200);
|
|
12927
12928
|
|
|
12928
|
-
function _array_like_to_array$
|
|
12929
|
+
function _array_like_to_array$7(arr, len) {
|
|
12929
12930
|
if (len == null || len > arr.length) len = arr.length;
|
|
12930
12931
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
12931
12932
|
return arr2;
|
|
12932
12933
|
}
|
|
12933
|
-
function _array_with_holes$
|
|
12934
|
+
function _array_with_holes$6(arr) {
|
|
12934
12935
|
if (Array.isArray(arr)) return arr;
|
|
12935
12936
|
}
|
|
12936
|
-
function _iterable_to_array_limit$
|
|
12937
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
12937
12938
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12938
12939
|
if (_i == null) return;
|
|
12939
12940
|
var _arr = [];
|
|
@@ -12957,19 +12958,19 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
12957
12958
|
}
|
|
12958
12959
|
return _arr;
|
|
12959
12960
|
}
|
|
12960
|
-
function _non_iterable_rest$
|
|
12961
|
+
function _non_iterable_rest$6() {
|
|
12961
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.");
|
|
12962
12963
|
}
|
|
12963
|
-
function _sliced_to_array$
|
|
12964
|
-
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();
|
|
12965
12966
|
}
|
|
12966
|
-
function _unsupported_iterable_to_array$
|
|
12967
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
12967
12968
|
if (!o) return;
|
|
12968
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
12969
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
12969
12970
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12970
12971
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12971
12972
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
12972
|
-
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);
|
|
12973
12974
|
}
|
|
12974
12975
|
var text$1 = zod.z.string().trim().min(1).max(300);
|
|
12975
12976
|
var key$1 = zod.z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$/);
|
|
@@ -13024,7 +13025,7 @@ var templateFilesSchema = zod.z.object({
|
|
|
13024
13025
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
13025
13026
|
try {
|
|
13026
13027
|
var _loop = function() {
|
|
13027
|
-
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];
|
|
13028
13029
|
var path = entry.path.toLowerCase();
|
|
13029
13030
|
if (paths.has(path)) ctx.addIssue({
|
|
13030
13031
|
code: "custom",
|
|
@@ -13482,15 +13483,15 @@ var executionObservationConversationsSchema = v3.z.object({
|
|
|
13482
13483
|
observedAt: v3.z.string()
|
|
13483
13484
|
});
|
|
13484
13485
|
|
|
13485
|
-
function _array_like_to_array$
|
|
13486
|
+
function _array_like_to_array$6(arr, len) {
|
|
13486
13487
|
if (len == null || len > arr.length) len = arr.length;
|
|
13487
13488
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13488
13489
|
return arr2;
|
|
13489
13490
|
}
|
|
13490
|
-
function _array_with_holes$
|
|
13491
|
+
function _array_with_holes$5(arr) {
|
|
13491
13492
|
if (Array.isArray(arr)) return arr;
|
|
13492
13493
|
}
|
|
13493
|
-
function _iterable_to_array_limit$
|
|
13494
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
13494
13495
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13495
13496
|
if (_i == null) return;
|
|
13496
13497
|
var _arr = [];
|
|
@@ -13514,19 +13515,19 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
13514
13515
|
}
|
|
13515
13516
|
return _arr;
|
|
13516
13517
|
}
|
|
13517
|
-
function _non_iterable_rest$
|
|
13518
|
+
function _non_iterable_rest$5() {
|
|
13518
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.");
|
|
13519
13520
|
}
|
|
13520
|
-
function _sliced_to_array$
|
|
13521
|
-
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();
|
|
13522
13523
|
}
|
|
13523
|
-
function _unsupported_iterable_to_array$
|
|
13524
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
13524
13525
|
if (!o) return;
|
|
13525
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13526
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
13526
13527
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13527
13528
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13528
13529
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13529
|
-
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);
|
|
13530
13531
|
}
|
|
13531
13532
|
/**
|
|
13532
13533
|
* Channels of all upstream and downstream nodes relative to the starting point startKey.
|
|
@@ -13554,7 +13555,7 @@ function findStartNodes(graph, key) {
|
|
|
13554
13555
|
for(var _iterator = connections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
13555
13556
|
var conn = _step.value;
|
|
13556
13557
|
if (!toMap.has(conn.to)) toMap.set(conn.to, []);
|
|
13557
|
-
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];
|
|
13558
13559
|
if (conn.type === "edge") {
|
|
13559
13560
|
toMap.get(conn.to).push(fromKey);
|
|
13560
13561
|
}
|
|
@@ -13712,30 +13713,30 @@ function shortTitle(input) {
|
|
|
13712
13713
|
return null;
|
|
13713
13714
|
}
|
|
13714
13715
|
|
|
13715
|
-
function _array_like_to_array$
|
|
13716
|
+
function _array_like_to_array$5(arr, len) {
|
|
13716
13717
|
if (len == null || len > arr.length) len = arr.length;
|
|
13717
13718
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13718
13719
|
return arr2;
|
|
13719
13720
|
}
|
|
13720
|
-
function _array_with_holes$
|
|
13721
|
+
function _array_with_holes$4(arr) {
|
|
13721
13722
|
if (Array.isArray(arr)) return arr;
|
|
13722
13723
|
}
|
|
13723
13724
|
function _iterable_to_array$1(iter) {
|
|
13724
13725
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13725
13726
|
}
|
|
13726
|
-
function _non_iterable_rest$
|
|
13727
|
+
function _non_iterable_rest$4() {
|
|
13727
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.");
|
|
13728
13729
|
}
|
|
13729
13730
|
function _to_array(arr) {
|
|
13730
|
-
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();
|
|
13731
13732
|
}
|
|
13732
|
-
function _unsupported_iterable_to_array$
|
|
13733
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
13733
13734
|
if (!o) return;
|
|
13734
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13735
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
13735
13736
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13736
13737
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13737
13738
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13738
|
-
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);
|
|
13739
13740
|
}
|
|
13740
13741
|
/**
|
|
13741
13742
|
*
|
|
@@ -13912,15 +13913,15 @@ function defaultModelDefinition(role) {
|
|
|
13912
13913
|
});
|
|
13913
13914
|
}
|
|
13914
13915
|
|
|
13915
|
-
function _array_like_to_array$
|
|
13916
|
+
function _array_like_to_array$4(arr, len) {
|
|
13916
13917
|
if (len == null || len > arr.length) len = arr.length;
|
|
13917
13918
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
13918
13919
|
return arr2;
|
|
13919
13920
|
}
|
|
13920
|
-
function _array_with_holes$
|
|
13921
|
+
function _array_with_holes$3(arr) {
|
|
13921
13922
|
if (Array.isArray(arr)) return arr;
|
|
13922
13923
|
}
|
|
13923
|
-
function _iterable_to_array_limit$
|
|
13924
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
13924
13925
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13925
13926
|
if (_i == null) return;
|
|
13926
13927
|
var _arr = [];
|
|
@@ -13944,19 +13945,19 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
13944
13945
|
}
|
|
13945
13946
|
return _arr;
|
|
13946
13947
|
}
|
|
13947
|
-
function _non_iterable_rest$
|
|
13948
|
+
function _non_iterable_rest$3() {
|
|
13948
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.");
|
|
13949
13950
|
}
|
|
13950
|
-
function _sliced_to_array$
|
|
13951
|
-
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();
|
|
13952
13953
|
}
|
|
13953
|
-
function _unsupported_iterable_to_array$
|
|
13954
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
13954
13955
|
if (!o) return;
|
|
13955
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
13956
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
13956
13957
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13957
13958
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13958
13959
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
13959
|
-
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);
|
|
13960
13961
|
}
|
|
13961
13962
|
var modelIdentitySchema = zod.z.object({
|
|
13962
13963
|
copilotId: zod.z.string().uuid(),
|
|
@@ -14012,7 +14013,7 @@ function sameModelIdentity(left, right) {
|
|
|
14012
14013
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
14013
14014
|
try {
|
|
14014
14015
|
for(var _iterator = Object.entries(previous !== null && previous !== void 0 ? previous : {})[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
14015
|
-
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];
|
|
14016
14017
|
if (!names.has(name)) changes.push({
|
|
14017
14018
|
name: name,
|
|
14018
14019
|
before: before,
|
|
@@ -14245,13 +14246,13 @@ var PermissionGroups = {
|
|
|
14245
14246
|
]
|
|
14246
14247
|
};
|
|
14247
14248
|
|
|
14248
|
-
function _array_like_to_array$
|
|
14249
|
+
function _array_like_to_array$3(arr, len) {
|
|
14249
14250
|
if (len == null || len > arr.length) len = arr.length;
|
|
14250
14251
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14251
14252
|
return arr2;
|
|
14252
14253
|
}
|
|
14253
14254
|
function _array_without_holes(arr) {
|
|
14254
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
14255
|
+
if (Array.isArray(arr)) return _array_like_to_array$3(arr);
|
|
14255
14256
|
}
|
|
14256
14257
|
function _iterable_to_array(iter) {
|
|
14257
14258
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -14260,15 +14261,15 @@ function _non_iterable_spread() {
|
|
|
14260
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.");
|
|
14261
14262
|
}
|
|
14262
14263
|
function _to_consumable_array(arr) {
|
|
14263
|
-
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();
|
|
14264
14265
|
}
|
|
14265
|
-
function _unsupported_iterable_to_array$
|
|
14266
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
14266
14267
|
if (!o) return;
|
|
14267
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14268
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
14268
14269
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14269
14270
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14270
14271
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14271
|
-
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);
|
|
14272
14273
|
}
|
|
14273
14274
|
var modulePermissions = [
|
|
14274
14275
|
{
|
|
@@ -14792,15 +14793,15 @@ exports.BusinessType = void 0;
|
|
|
14792
14793
|
BusinessType["INDICATOR"] = "INDICATOR";
|
|
14793
14794
|
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
14794
14795
|
|
|
14795
|
-
function _array_like_to_array$
|
|
14796
|
+
function _array_like_to_array$2(arr, len) {
|
|
14796
14797
|
if (len == null || len > arr.length) len = arr.length;
|
|
14797
14798
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14798
14799
|
return arr2;
|
|
14799
14800
|
}
|
|
14800
|
-
function _array_with_holes$
|
|
14801
|
+
function _array_with_holes$2(arr) {
|
|
14801
14802
|
if (Array.isArray(arr)) return arr;
|
|
14802
14803
|
}
|
|
14803
|
-
function _iterable_to_array_limit$
|
|
14804
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
14804
14805
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14805
14806
|
if (_i == null) return;
|
|
14806
14807
|
var _arr = [];
|
|
@@ -14824,19 +14825,19 @@ function _iterable_to_array_limit$1(arr, i) {
|
|
|
14824
14825
|
}
|
|
14825
14826
|
return _arr;
|
|
14826
14827
|
}
|
|
14827
|
-
function _non_iterable_rest$
|
|
14828
|
+
function _non_iterable_rest$2() {
|
|
14828
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.");
|
|
14829
14830
|
}
|
|
14830
|
-
function _sliced_to_array$
|
|
14831
|
-
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();
|
|
14832
14833
|
}
|
|
14833
|
-
function _unsupported_iterable_to_array$
|
|
14834
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
14834
14835
|
if (!o) return;
|
|
14835
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
14836
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
14836
14837
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
14837
14838
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
14838
14839
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
14839
|
-
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);
|
|
14840
14841
|
}
|
|
14841
14842
|
exports.ScheduleTaskStatus = void 0;
|
|
14842
14843
|
(function(ScheduleTaskStatus) {
|
|
@@ -14859,7 +14860,7 @@ exports.TaskFrequency = void 0;
|
|
|
14859
14860
|
* @returns
|
|
14860
14861
|
*/ function generateCronExpression(schedule) {
|
|
14861
14862
|
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
14862
|
-
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];
|
|
14863
14864
|
var hour = parseInt(hourStr, 10);
|
|
14864
14865
|
var minute = parseInt(minuteStr, 10);
|
|
14865
14866
|
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
@@ -14929,15 +14930,15 @@ var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
|
14929
14930
|
];
|
|
14930
14931
|
/** Platform-provided navigation, available without Assistant middleware. */ var CONVERSATION_MAP_FEATURE = "platform.conversation-map";
|
|
14931
14932
|
|
|
14932
|
-
/** 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) {
|
|
14933
14934
|
if (len == null || len > arr.length) len = arr.length;
|
|
14934
14935
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
14935
14936
|
return arr2;
|
|
14936
14937
|
}
|
|
14937
|
-
function _array_with_holes(arr) {
|
|
14938
|
+
function _array_with_holes$1(arr) {
|
|
14938
14939
|
if (Array.isArray(arr)) return arr;
|
|
14939
14940
|
}
|
|
14940
|
-
function _define_property$
|
|
14941
|
+
function _define_property$3(obj, key, value) {
|
|
14941
14942
|
if (key in obj) {
|
|
14942
14943
|
Object.defineProperty(obj, key, {
|
|
14943
14944
|
value: value,
|
|
@@ -14950,7 +14951,7 @@ function _define_property$2(obj, key, value) {
|
|
|
14950
14951
|
}
|
|
14951
14952
|
return obj;
|
|
14952
14953
|
}
|
|
14953
|
-
function _iterable_to_array_limit(arr, i) {
|
|
14954
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
14954
14955
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
14955
14956
|
if (_i == null) return;
|
|
14956
14957
|
var _arr = [];
|
|
@@ -14974,10 +14975,10 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
14974
14975
|
}
|
|
14975
14976
|
return _arr;
|
|
14976
14977
|
}
|
|
14977
|
-
function _non_iterable_rest() {
|
|
14978
|
+
function _non_iterable_rest$1() {
|
|
14978
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.");
|
|
14979
14980
|
}
|
|
14980
|
-
function _object_spread$
|
|
14981
|
+
function _object_spread$3(target) {
|
|
14981
14982
|
for(var i = 1; i < arguments.length; i++){
|
|
14982
14983
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
14983
14984
|
var ownKeys = Object.keys(source);
|
|
@@ -14987,21 +14988,21 @@ function _object_spread$2(target) {
|
|
|
14987
14988
|
}));
|
|
14988
14989
|
}
|
|
14989
14990
|
ownKeys.forEach(function(key) {
|
|
14990
|
-
_define_property$
|
|
14991
|
+
_define_property$3(target, key, source[key]);
|
|
14991
14992
|
});
|
|
14992
14993
|
}
|
|
14993
14994
|
return target;
|
|
14994
14995
|
}
|
|
14995
|
-
function _sliced_to_array(arr, i) {
|
|
14996
|
-
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();
|
|
14997
14998
|
}
|
|
14998
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
14999
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
14999
15000
|
if (!o) return;
|
|
15000
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
15001
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
15001
15002
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
15002
15003
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
15003
15004
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
15004
|
-
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);
|
|
15005
15006
|
}
|
|
15006
15007
|
var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
15007
15008
|
/** Parse the public lg.chat.event boundary, keeping arbitrary logs out of navigation. */ function parseWorkbenchViewOpenEvent(value) {
|
|
@@ -15014,7 +15015,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15014
15015
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
15015
15016
|
try {
|
|
15016
15017
|
for(var _iterator = Object.entries(value.parameters)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
15017
|
-
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];
|
|
15018
15019
|
if (isViewScalar(item)) parameters[key] = item;
|
|
15019
15020
|
else if (Array.isArray(item) && item.every(isViewScalar)) parameters[key] = item;
|
|
15020
15021
|
else return null;
|
|
@@ -15034,7 +15035,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15034
15035
|
}
|
|
15035
15036
|
}
|
|
15036
15037
|
}
|
|
15037
|
-
return _object_spread$
|
|
15038
|
+
return _object_spread$3({
|
|
15038
15039
|
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
15039
15040
|
viewKey: value.viewKey,
|
|
15040
15041
|
projectId: value.projectId
|
|
@@ -15050,7 +15051,7 @@ function isViewScalar(value) {
|
|
|
15050
15051
|
return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
|
|
15051
15052
|
}
|
|
15052
15053
|
|
|
15053
|
-
function _define_property$
|
|
15054
|
+
function _define_property$2(obj, key, value) {
|
|
15054
15055
|
if (key in obj) {
|
|
15055
15056
|
Object.defineProperty(obj, key, {
|
|
15056
15057
|
value: value,
|
|
@@ -15063,7 +15064,7 @@ function _define_property$1(obj, key, value) {
|
|
|
15063
15064
|
}
|
|
15064
15065
|
return obj;
|
|
15065
15066
|
}
|
|
15066
|
-
function _object_spread$
|
|
15067
|
+
function _object_spread$2(target) {
|
|
15067
15068
|
for(var i = 1; i < arguments.length; i++){
|
|
15068
15069
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15069
15070
|
var ownKeys = Object.keys(source);
|
|
@@ -15073,7 +15074,7 @@ function _object_spread$1(target) {
|
|
|
15073
15074
|
}));
|
|
15074
15075
|
}
|
|
15075
15076
|
ownKeys.forEach(function(key) {
|
|
15076
|
-
_define_property$
|
|
15077
|
+
_define_property$2(target, key, source[key]);
|
|
15077
15078
|
});
|
|
15078
15079
|
}
|
|
15079
15080
|
return target;
|
|
@@ -15086,14 +15087,14 @@ var hasIntegrationMethod = function(value) {
|
|
|
15086
15087
|
return !value.integrationId || !!value.authMethodId;
|
|
15087
15088
|
};
|
|
15088
15089
|
/** An integration reference must name the Connector authentication method that consumes it. */ var workspaceConnectorAuthorizationSchema = v3.z.object(authorizationFields).strict().refine(hasIntegrationMethod);
|
|
15089
|
-
/** 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({
|
|
15090
15091
|
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
15091
15092
|
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
15092
15093
|
|
|
15093
15094
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
15094
15095
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
15095
15096
|
|
|
15096
|
-
function _define_property(obj, key, value) {
|
|
15097
|
+
function _define_property$1(obj, key, value) {
|
|
15097
15098
|
if (key in obj) {
|
|
15098
15099
|
Object.defineProperty(obj, key, {
|
|
15099
15100
|
value: value,
|
|
@@ -15106,7 +15107,7 @@ function _define_property(obj, key, value) {
|
|
|
15106
15107
|
}
|
|
15107
15108
|
return obj;
|
|
15108
15109
|
}
|
|
15109
|
-
function _object_spread(target) {
|
|
15110
|
+
function _object_spread$1(target) {
|
|
15110
15111
|
for(var i = 1; i < arguments.length; i++){
|
|
15111
15112
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
15112
15113
|
var ownKeys = Object.keys(source);
|
|
@@ -15116,7 +15117,7 @@ function _object_spread(target) {
|
|
|
15116
15117
|
}));
|
|
15117
15118
|
}
|
|
15118
15119
|
ownKeys.forEach(function(key) {
|
|
15119
|
-
_define_property(target, key, source[key]);
|
|
15120
|
+
_define_property$1(target, key, source[key]);
|
|
15120
15121
|
});
|
|
15121
15122
|
}
|
|
15122
15123
|
return target;
|
|
@@ -15164,7 +15165,7 @@ var anchor = {
|
|
|
15164
15165
|
threadId: v3.z.string().optional(),
|
|
15165
15166
|
executionId: v3.z.string().optional()
|
|
15166
15167
|
};
|
|
15167
|
-
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15168
|
+
var trailStepSchema = v3.z.object(_object_spread_props(_object_spread$1({
|
|
15168
15169
|
id: v3.z.string(),
|
|
15169
15170
|
laneId: v3.z.string(),
|
|
15170
15171
|
kind: v3.z.enum([
|
|
@@ -15185,7 +15186,7 @@ var trailStepSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
|
15185
15186
|
input: v3.z.string().optional(),
|
|
15186
15187
|
output: v3.z.string().optional()
|
|
15187
15188
|
}));
|
|
15188
|
-
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread({
|
|
15189
|
+
var trailLaneSchema = v3.z.object(_object_spread_props(_object_spread$1({
|
|
15189
15190
|
id: v3.z.string(),
|
|
15190
15191
|
parentId: v3.z.string().nullable(),
|
|
15191
15192
|
spawnStepId: v3.z.string().optional(),
|
|
@@ -15341,6 +15342,140 @@ var CONTENT_EDITOR_STATUS_COMMAND = "workbench.content.status";
|
|
|
15341
15342
|
|
|
15342
15343
|
/** Host-owned opening avoids inheriting a remote component's iframe sandbox. */ var ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
|
|
15343
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
|
+
|
|
15344
15479
|
var CONTENT_CATALOG_PROVIDER = "platform.content.catalog";
|
|
15345
15480
|
|
|
15346
15481
|
/** Negotiated Xpert extension. MCP cancellation acknowledgements are not exit evidence. */ var MCP_EXECUTION_CONTROL_EXTENSION_ID = "ai.xpert/execution-control";
|
|
@@ -15591,6 +15726,15 @@ function parseNotificationSnapshot(value) {
|
|
|
15591
15726
|
return notificationSnapshotSchema.parse(value);
|
|
15592
15727
|
}
|
|
15593
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
|
+
|
|
15594
15738
|
Object.defineProperty(exports, "createResourceCardContent", {
|
|
15595
15739
|
enumerable: true,
|
|
15596
15740
|
get: function () { return chatkitTypes.createResourceCardContent; }
|
|
@@ -15630,6 +15774,7 @@ exports.ASSISTANT_USER_PREFERENCES_VERSION = ASSISTANT_USER_PREFERENCES_VERSION;
|
|
|
15630
15774
|
exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
15631
15775
|
exports.BUILTIN_KNOWLEDGE_FILE_TYPES = BUILTIN_KNOWLEDGE_FILE_TYPES;
|
|
15632
15776
|
exports.BUILTIN_KNOWLEDGE_PARSER = BUILTIN_KNOWLEDGE_PARSER;
|
|
15777
|
+
exports.BUSINESS_AREA_ACCESS_ROLES = BUSINESS_AREA_ACCESS_ROLES;
|
|
15633
15778
|
exports.CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY;
|
|
15634
15779
|
exports.CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED = CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED;
|
|
15635
15780
|
exports.CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE = CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE;
|
|
@@ -15653,6 +15798,7 @@ exports.DEFAULT_AGENT_PLUGINS_SOURCE = DEFAULT_AGENT_PLUGINS_SOURCE;
|
|
|
15653
15798
|
exports.DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS = DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS;
|
|
15654
15799
|
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
15655
15800
|
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
15801
|
+
exports.DEFAULT_EMBEDDING_BATCH_SIZE = DEFAULT_EMBEDDING_BATCH_SIZE;
|
|
15656
15802
|
exports.DEFAULT_INTEGRATION_PAID_FILTERS = DEFAULT_INTEGRATION_PAID_FILTERS;
|
|
15657
15803
|
exports.DEFAULT_INVITE_EXPIRY_PERIOD = DEFAULT_INVITE_EXPIRY_PERIOD;
|
|
15658
15804
|
exports.DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG = DEFAULT_KNOWLEDGEBASE_FAQ_CONFIG;
|
|
@@ -15872,6 +16018,7 @@ exports.agentRuntimeProgressSchema = agentRuntimeProgressSchema;
|
|
|
15872
16018
|
exports.agentUniqueName = agentUniqueName;
|
|
15873
16019
|
exports.aggregatePipelineAnalytics = aggregatePipelineAnalytics;
|
|
15874
16020
|
exports.allChannels = allChannels;
|
|
16021
|
+
exports.analyticsDiagnosticSchema = analyticsDiagnosticSchema;
|
|
15875
16022
|
exports.announcementActionSchema = announcementActionSchema;
|
|
15876
16023
|
exports.announcementContentSchema = announcementContentSchema;
|
|
15877
16024
|
exports.announcementRevisionSchema = announcementRevisionSchema;
|
|
@@ -15889,6 +16036,7 @@ exports.assistantTemplateManifestSchema = assistantTemplateManifestSchema;
|
|
|
15889
16036
|
exports.assistantTemplateSetupStateSchema = assistantTemplateSetupStateSchema;
|
|
15890
16037
|
exports.buildChunkTree = buildChunkTree;
|
|
15891
16038
|
exports.buildXpertMarketplaceProfileSnapshot = buildXpertMarketplaceProfileSnapshot;
|
|
16039
|
+
exports.businessAreaRoleAllows = businessAreaRoleAllows;
|
|
15892
16040
|
exports.canAllowMcpToolDirectly = canAllowMcpToolDirectly;
|
|
15893
16041
|
exports.canReadProjectPipelineConfiguration = canReadProjectPipelineConfiguration;
|
|
15894
16042
|
exports.channelName = channelName;
|
|
@@ -16101,6 +16249,7 @@ exports.notificationSnapshotSchema = notificationSnapshotSchema;
|
|
|
16101
16249
|
exports.notificationSourceSchema = notificationSourceSchema;
|
|
16102
16250
|
exports.omitXpertRelations = omitXpertRelations;
|
|
16103
16251
|
exports.orderAssistantXperts = orderAssistantXperts;
|
|
16252
|
+
exports.parseAnalyticsDiagnostic = parseAnalyticsDiagnostic;
|
|
16104
16253
|
exports.parseAnnouncement = parseAnnouncement;
|
|
16105
16254
|
exports.parseGithubSkillInstallCommand = parseGithubSkillInstallCommand;
|
|
16106
16255
|
exports.parseNotificationSnapshot = parseNotificationSnapshot;
|