@xpert-ai/contracts 3.33.1 → 3.35.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 +545 -168
- package/index.esm.js +517 -169
- package/package.json +2 -2
- package/src/ai/ai.model.d.ts +1 -1
- package/src/ai/chat-group-entity.model.d.ts +1 -1
- package/src/ai/chat-group.model.d.ts +116 -3
- package/src/ai/conversation-trail.model.d.ts +2 -2
- package/src/ai/evolution/baseline.d.ts +12 -0
- package/src/ai/evolution/candidate.d.ts +20 -0
- package/src/ai/evolution/capability-version.d.ts +12 -0
- package/src/ai/evolution/change.d.ts +40 -2
- package/src/ai/evolution/evaluation.d.ts +26 -0
- package/src/ai/evolution/example.d.ts +5 -0
- package/src/ai/evolution/experience.d.ts +3 -0
- package/src/ai/evolution/governance.d.ts +29 -3
- package/src/ai/evolution/index.d.ts +1 -0
- package/src/ai/evolution/learning-event.d.ts +13 -0
- package/src/ai/evolution/learning-review.d.ts +61 -0
- package/src/ai/evolution/persistence.d.ts +7 -2
- package/src/ai/evolution/provider.d.ts +38 -0
- package/src/ai/evolution/release.d.ts +24 -6
- package/src/ai/evolution/runtime.d.ts +19 -0
- package/src/ai/evolution/strategy.d.ts +10 -0
- package/src/ai/evolution/target.d.ts +34 -6
- package/src/ai/execution-control-evidence.schema.d.ts +46 -4
- package/src/ai/index.d.ts +4 -0
- package/src/ai/model-execution.model.d.ts +2 -0
- package/src/ai/project-configuration-view.model.d.ts +77 -0
- package/src/ai/project-pipeline/analytics.d.ts +5 -33
- package/src/ai/project-pipeline/budget.schema.d.ts +38 -0
- package/src/ai/project-pipeline/commands.schema.d.ts +10 -10
- package/src/ai/project-pipeline/configuration-form.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -26
- package/src/ai/project-pipeline/operation.schema.d.ts +370 -40
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +152 -0
- package/src/ai/project-pipeline/portfolio.schema.d.ts +14 -86
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +12 -12
- package/src/ai/project-pipeline/runtime.schema.d.ts +2 -2
- package/src/ai/project-pipeline/statistics.d.ts +5 -33
- package/src/ai/project-task-runtime.model.d.ts +1329 -78
- package/src/ai/project-type-configuration.model.d.ts +48 -0
- package/src/ai/xpert-agent-execution.model.d.ts +16 -2
- package/src/ai/xpert-project-type.model.d.ts +3 -0
- package/src/ai/xpert-project.model.d.ts +3 -1
- package/src/ai/xpert-task.model.d.ts +16 -0
- package/src/ai/xpert.model.d.ts +2 -0
- package/src/app-platform.d.ts +36 -36
- package/src/artifact-group-reference.model.d.ts +71 -0
- package/src/artifact-use-grant-command.d.ts +54 -0
- package/src/artifact-use-grant.model.d.ts +62 -0
- package/src/content-resource.model.d.ts +3 -0
- package/src/conversation-resource.model.d.ts +63 -0
- package/src/desktop-shell.model.d.ts +13 -1
- package/src/icon-definition.schema.d.ts +24 -0
- package/src/index.d.ts +6 -0
- package/src/plugin-management.d.ts +13 -0
- package/src/plugin.d.ts +2 -0
- package/src/resource-analysis.model.d.ts +140 -0
- package/src/runtime-control.d.ts +6 -0
- package/src/types.d.ts +1 -2
- package/src/user-notification.schema.d.ts +29 -0
- package/src/user.model.d.ts +11 -0
- package/src/view-extension/client-commands.d.ts +176 -0
- package/src/view-extension/context-event.d.ts +66 -0
- package/src/view-extension/index.d.ts +2 -0
- package/src/view-extension/model.d.ts +2 -158
- package/src/view-extension/workbench-open.d.ts +17 -2
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$t(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$s(obj, key, value) {
|
|
|
32
32
|
}
|
|
33
33
|
return obj;
|
|
34
34
|
}
|
|
35
|
-
function _object_spread$
|
|
35
|
+
function _object_spread$t(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,12 +42,12 @@ function _object_spread$s(target) {
|
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
44
|
ownKeys.forEach(function(key) {
|
|
45
|
-
_define_property$
|
|
45
|
+
_define_property$t(target, key, source[key]);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
return target;
|
|
49
49
|
}
|
|
50
|
-
function ownKeys$
|
|
50
|
+
function ownKeys$m(object, enumerableOnly) {
|
|
51
51
|
var keys = Object.keys(object);
|
|
52
52
|
if (Object.getOwnPropertySymbols) {
|
|
53
53
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -55,12 +55,12 @@ function ownKeys$l(object, enumerableOnly) {
|
|
|
55
55
|
}
|
|
56
56
|
return keys;
|
|
57
57
|
}
|
|
58
|
-
function _object_spread_props$
|
|
58
|
+
function _object_spread_props$m(target, source) {
|
|
59
59
|
source = source != null ? source : {};
|
|
60
60
|
if (Object.getOwnPropertyDescriptors) {
|
|
61
61
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
62
62
|
} else {
|
|
63
|
-
ownKeys$
|
|
63
|
+
ownKeys$m(Object(source)).forEach(function(key) {
|
|
64
64
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
65
65
|
});
|
|
66
66
|
}
|
|
@@ -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$
|
|
86
|
+
return _object_spread_props$m(_object_spread$t({}, app), {
|
|
87
87
|
key: app.key,
|
|
88
88
|
required: app.required,
|
|
89
89
|
configurationRef: app.configurationRef,
|
|
@@ -509,14 +509,16 @@ function _unsupported_iterable_to_array$y(o, minLen) {
|
|
|
509
509
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
510
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
|
-
|
|
513
|
-
var uuidGenerator
|
|
514
|
-
length: 10
|
|
515
|
-
});
|
|
512
|
+
// The legacy generator extends Function; constructing it during import violates Desktop's CSP.
|
|
513
|
+
var uuidGenerator;
|
|
516
514
|
var uuid = function() {
|
|
517
515
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
518
516
|
args[_key] = arguments[_key];
|
|
519
517
|
}
|
|
518
|
+
var _uuidGenerator;
|
|
519
|
+
uuidGenerator !== null && uuidGenerator !== void 0 ? uuidGenerator : uuidGenerator = new ShortUniqueId({
|
|
520
|
+
length: 10
|
|
521
|
+
});
|
|
520
522
|
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$l(args));
|
|
521
523
|
};
|
|
522
524
|
// Parameters
|
|
@@ -1752,7 +1754,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
1752
1754
|
resourceType: "conversation_snapshot"
|
|
1753
1755
|
};
|
|
1754
1756
|
|
|
1755
|
-
function _define_property$
|
|
1757
|
+
function _define_property$s(obj, key, value) {
|
|
1756
1758
|
if (key in obj) {
|
|
1757
1759
|
Object.defineProperty(obj, key, {
|
|
1758
1760
|
value: value,
|
|
@@ -1765,7 +1767,7 @@ function _define_property$r(obj, key, value) {
|
|
|
1765
1767
|
}
|
|
1766
1768
|
return obj;
|
|
1767
1769
|
}
|
|
1768
|
-
function _object_spread$
|
|
1770
|
+
function _object_spread$s(target) {
|
|
1769
1771
|
for(var i = 1; i < arguments.length; i++){
|
|
1770
1772
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1771
1773
|
var ownKeys = Object.keys(source);
|
|
@@ -1775,12 +1777,12 @@ function _object_spread$r(target) {
|
|
|
1775
1777
|
}));
|
|
1776
1778
|
}
|
|
1777
1779
|
ownKeys.forEach(function(key) {
|
|
1778
|
-
_define_property$
|
|
1780
|
+
_define_property$s(target, key, source[key]);
|
|
1779
1781
|
});
|
|
1780
1782
|
}
|
|
1781
1783
|
return target;
|
|
1782
1784
|
}
|
|
1783
|
-
function ownKeys$
|
|
1785
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
1784
1786
|
var keys = Object.keys(object);
|
|
1785
1787
|
if (Object.getOwnPropertySymbols) {
|
|
1786
1788
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1788,12 +1790,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
1788
1790
|
}
|
|
1789
1791
|
return keys;
|
|
1790
1792
|
}
|
|
1791
|
-
function _object_spread_props$
|
|
1793
|
+
function _object_spread_props$l(target, source) {
|
|
1792
1794
|
source = source != null ? source : {};
|
|
1793
1795
|
if (Object.getOwnPropertyDescriptors) {
|
|
1794
1796
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1795
1797
|
} else {
|
|
1796
|
-
ownKeys$
|
|
1798
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
1797
1799
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1798
1800
|
});
|
|
1799
1801
|
}
|
|
@@ -1821,7 +1823,7 @@ function parseSelectionSet(value) {
|
|
|
1821
1823
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1822
1824
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1823
1825
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1824
|
-
return _object_spread$
|
|
1826
|
+
return _object_spread$s(_object_spread_props$l(_object_spread$s({}, value), {
|
|
1825
1827
|
skills: skills === undefined ? {
|
|
1826
1828
|
ids: []
|
|
1827
1829
|
} : skills,
|
|
@@ -1840,7 +1842,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1840
1842
|
var selection = parseSelectionSet(value);
|
|
1841
1843
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1842
1844
|
if (!selection || recommended === null) return null;
|
|
1843
|
-
return _object_spread$
|
|
1845
|
+
return _object_spread$s(_object_spread_props$l(_object_spread$s({}, selection), {
|
|
1844
1846
|
mode: "allowlist"
|
|
1845
1847
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1846
1848
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1892,7 +1894,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1892
1894
|
}
|
|
1893
1895
|
}
|
|
1894
1896
|
}
|
|
1895
|
-
return _object_spread_props$
|
|
1897
|
+
return _object_spread_props$l(_object_spread$s({}, value), {
|
|
1896
1898
|
type: "expert_scoped_capabilities",
|
|
1897
1899
|
version: 1,
|
|
1898
1900
|
defaults: defaults,
|
|
@@ -2024,7 +2026,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
2024
2026
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
2025
2027
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
2026
2028
|
|
|
2027
|
-
function _define_property$
|
|
2029
|
+
function _define_property$r(obj, key, value) {
|
|
2028
2030
|
if (key in obj) {
|
|
2029
2031
|
Object.defineProperty(obj, key, {
|
|
2030
2032
|
value: value,
|
|
@@ -2044,7 +2046,7 @@ function _instanceof$1(left, right) {
|
|
|
2044
2046
|
return left instanceof right;
|
|
2045
2047
|
}
|
|
2046
2048
|
}
|
|
2047
|
-
function _object_spread$
|
|
2049
|
+
function _object_spread$r(target) {
|
|
2048
2050
|
for(var i = 1; i < arguments.length; i++){
|
|
2049
2051
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2050
2052
|
var ownKeys = Object.keys(source);
|
|
@@ -2054,7 +2056,7 @@ function _object_spread$q(target) {
|
|
|
2054
2056
|
}));
|
|
2055
2057
|
}
|
|
2056
2058
|
ownKeys.forEach(function(key) {
|
|
2057
|
-
_define_property$
|
|
2059
|
+
_define_property$r(target, key, source[key]);
|
|
2058
2060
|
});
|
|
2059
2061
|
}
|
|
2060
2062
|
return target;
|
|
@@ -2065,12 +2067,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2065
2067
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2066
2068
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2067
2069
|
function createConversationTitleSummaryEvent(event) {
|
|
2068
|
-
return _object_spread$
|
|
2070
|
+
return _object_spread$r({
|
|
2069
2071
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2070
2072
|
}, event);
|
|
2071
2073
|
}
|
|
2072
2074
|
function createFollowUpConsumedEvent(event) {
|
|
2073
|
-
return _object_spread$
|
|
2075
|
+
return _object_spread$r({
|
|
2074
2076
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2075
2077
|
}, event);
|
|
2076
2078
|
}
|
|
@@ -2116,7 +2118,7 @@ function _array_with_holes$j(arr) {
|
|
|
2116
2118
|
function _array_without_holes$j(arr) {
|
|
2117
2119
|
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2118
2120
|
}
|
|
2119
|
-
function _define_property$
|
|
2121
|
+
function _define_property$q(obj, key, value) {
|
|
2120
2122
|
if (key in obj) {
|
|
2121
2123
|
Object.defineProperty(obj, key, {
|
|
2122
2124
|
value: value,
|
|
@@ -2162,7 +2164,7 @@ function _non_iterable_rest$j() {
|
|
|
2162
2164
|
function _non_iterable_spread$j() {
|
|
2163
2165
|
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
2166
|
}
|
|
2165
|
-
function _object_spread$
|
|
2167
|
+
function _object_spread$q(target) {
|
|
2166
2168
|
for(var i = 1; i < arguments.length; i++){
|
|
2167
2169
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2168
2170
|
var ownKeys = Object.keys(source);
|
|
@@ -2172,12 +2174,12 @@ function _object_spread$p(target) {
|
|
|
2172
2174
|
}));
|
|
2173
2175
|
}
|
|
2174
2176
|
ownKeys.forEach(function(key) {
|
|
2175
|
-
_define_property$
|
|
2177
|
+
_define_property$q(target, key, source[key]);
|
|
2176
2178
|
});
|
|
2177
2179
|
}
|
|
2178
2180
|
return target;
|
|
2179
2181
|
}
|
|
2180
|
-
function ownKeys$
|
|
2182
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
2181
2183
|
var keys = Object.keys(object);
|
|
2182
2184
|
if (Object.getOwnPropertySymbols) {
|
|
2183
2185
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2185,12 +2187,12 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
2185
2187
|
}
|
|
2186
2188
|
return keys;
|
|
2187
2189
|
}
|
|
2188
|
-
function _object_spread_props$
|
|
2190
|
+
function _object_spread_props$k(target, source) {
|
|
2189
2191
|
source = source != null ? source : {};
|
|
2190
2192
|
if (Object.getOwnPropertyDescriptors) {
|
|
2191
2193
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2192
2194
|
} else {
|
|
2193
|
-
ownKeys$
|
|
2195
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
2194
2196
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2195
2197
|
});
|
|
2196
2198
|
}
|
|
@@ -2309,7 +2311,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2309
2311
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2310
2312
|
return null;
|
|
2311
2313
|
}
|
|
2312
|
-
return _object_spread$
|
|
2314
|
+
return _object_spread$q({
|
|
2313
2315
|
version: 1
|
|
2314
2316
|
}, Object.keys(toolsets).length ? {
|
|
2315
2317
|
toolsets: toolsets
|
|
@@ -2387,8 +2389,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2387
2389
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2388
2390
|
normalizedToolName
|
|
2389
2391
|
]));
|
|
2390
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2391
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
2392
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$q({}, normalizedPreferences.toolsets) : undefined;
|
|
2393
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$q({}, normalizedPreferences.middlewares) : undefined;
|
|
2392
2394
|
if (sourceType === "toolset") {
|
|
2393
2395
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2394
2396
|
if (!toolsetName) {
|
|
@@ -2404,14 +2406,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2404
2406
|
} else {
|
|
2405
2407
|
delete nextToolsets[normalizedNodeKey];
|
|
2406
2408
|
}
|
|
2407
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2409
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2408
2410
|
version: 1
|
|
2409
2411
|
}, Object.keys(nextToolsets).length ? {
|
|
2410
2412
|
toolsets: nextToolsets
|
|
2411
2413
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2412
2414
|
middlewares: middlewares
|
|
2413
2415
|
} : {}, normalizedPreferences.skills ? {
|
|
2414
|
-
skills: _object_spread$
|
|
2416
|
+
skills: _object_spread$q({}, normalizedPreferences.skills)
|
|
2415
2417
|
} : {}));
|
|
2416
2418
|
}
|
|
2417
2419
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2427,14 +2429,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2427
2429
|
} else {
|
|
2428
2430
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2429
2431
|
}
|
|
2430
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2432
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2431
2433
|
version: 1
|
|
2432
2434
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2433
2435
|
toolsets: toolsets
|
|
2434
2436
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2435
2437
|
middlewares: nextMiddlewares
|
|
2436
2438
|
} : {}, normalizedPreferences.skills ? {
|
|
2437
|
-
skills: _object_spread$
|
|
2439
|
+
skills: _object_spread$q({}, normalizedPreferences.skills)
|
|
2438
2440
|
} : {}));
|
|
2439
2441
|
}
|
|
2440
2442
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2452,7 +2454,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2452
2454
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2453
2455
|
normalizedSkillId
|
|
2454
2456
|
]));
|
|
2455
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2457
|
+
var skills = normalizedPreferences.skills ? _object_spread$q({}, normalizedPreferences.skills) : {};
|
|
2456
2458
|
if (nextDisabledSkillIds.length) {
|
|
2457
2459
|
skills[normalizedWorkspaceId] = {
|
|
2458
2460
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2461,12 +2463,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2461
2463
|
} else {
|
|
2462
2464
|
delete skills[normalizedWorkspaceId];
|
|
2463
2465
|
}
|
|
2464
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2466
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2465
2467
|
version: 1
|
|
2466
2468
|
}, normalizedPreferences.toolsets ? {
|
|
2467
|
-
toolsets: _object_spread$
|
|
2469
|
+
toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
|
|
2468
2470
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2469
|
-
middlewares: _object_spread$
|
|
2471
|
+
middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
|
|
2470
2472
|
} : {}, Object.keys(skills).length ? {
|
|
2471
2473
|
skills: skills
|
|
2472
2474
|
} : {}));
|
|
@@ -2484,14 +2486,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2484
2486
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2485
2487
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2486
2488
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2487
|
-
return _object_spread_props$
|
|
2489
|
+
return _object_spread_props$k(_object_spread$q({
|
|
2488
2490
|
version: 1
|
|
2489
2491
|
}, normalizedPreferences.toolsets ? {
|
|
2490
|
-
toolsets: _object_spread$
|
|
2492
|
+
toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
|
|
2491
2493
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2492
|
-
middlewares: _object_spread$
|
|
2494
|
+
middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
|
|
2493
2495
|
} : {}), {
|
|
2494
|
-
skills: _object_spread_props$
|
|
2496
|
+
skills: _object_spread_props$k(_object_spread$q({}, currentSkills), _define_property$q({}, normalizedWorkspaceId, {
|
|
2495
2497
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2496
2498
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2497
2499
|
}))
|
|
@@ -2823,7 +2825,7 @@ function _array_like_to_array$t(arr, len) {
|
|
|
2823
2825
|
function _array_without_holes$h(arr) {
|
|
2824
2826
|
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
2825
2827
|
}
|
|
2826
|
-
function _define_property$
|
|
2828
|
+
function _define_property$p(obj, key, value) {
|
|
2827
2829
|
if (key in obj) {
|
|
2828
2830
|
Object.defineProperty(obj, key, {
|
|
2829
2831
|
value: value,
|
|
@@ -2842,7 +2844,7 @@ function _iterable_to_array$j(iter) {
|
|
|
2842
2844
|
function _non_iterable_spread$h() {
|
|
2843
2845
|
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
2846
|
}
|
|
2845
|
-
function _object_spread$
|
|
2847
|
+
function _object_spread$p(target) {
|
|
2846
2848
|
for(var i = 1; i < arguments.length; i++){
|
|
2847
2849
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2848
2850
|
var ownKeys = Object.keys(source);
|
|
@@ -2852,12 +2854,12 @@ function _object_spread$o(target) {
|
|
|
2852
2854
|
}));
|
|
2853
2855
|
}
|
|
2854
2856
|
ownKeys.forEach(function(key) {
|
|
2855
|
-
_define_property$
|
|
2857
|
+
_define_property$p(target, key, source[key]);
|
|
2856
2858
|
});
|
|
2857
2859
|
}
|
|
2858
2860
|
return target;
|
|
2859
2861
|
}
|
|
2860
|
-
function ownKeys$
|
|
2862
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
2861
2863
|
var keys = Object.keys(object);
|
|
2862
2864
|
if (Object.getOwnPropertySymbols) {
|
|
2863
2865
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2865,12 +2867,12 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
2865
2867
|
}
|
|
2866
2868
|
return keys;
|
|
2867
2869
|
}
|
|
2868
|
-
function _object_spread_props$
|
|
2870
|
+
function _object_spread_props$j(target, source) {
|
|
2869
2871
|
source = source != null ? source : {};
|
|
2870
2872
|
if (Object.getOwnPropertyDescriptors) {
|
|
2871
2873
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2872
2874
|
} else {
|
|
2873
|
-
ownKeys$
|
|
2875
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
2874
2876
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2875
2877
|
});
|
|
2876
2878
|
}
|
|
@@ -2899,20 +2901,20 @@ var common$1 = {
|
|
|
2899
2901
|
maxConcurrency: positiveInteger.max(1000)
|
|
2900
2902
|
};
|
|
2901
2903
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2902
|
-
zod.z.object(_object_spread_props$
|
|
2904
|
+
zod.z.object(_object_spread_props$j(_object_spread$p({
|
|
2903
2905
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2904
2906
|
}, common$1), {
|
|
2905
2907
|
maxOutputTokens: positiveInteger,
|
|
2906
2908
|
defaultMaxTokens: positiveInteger,
|
|
2907
2909
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2908
2910
|
})).strict(),
|
|
2909
|
-
zod.z.object(_object_spread_props$
|
|
2911
|
+
zod.z.object(_object_spread_props$j(_object_spread$p({
|
|
2910
2912
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2911
2913
|
}, common$1), {
|
|
2912
2914
|
dimensions: positiveInteger.optional(),
|
|
2913
2915
|
batchSize: positiveInteger.max(2048)
|
|
2914
2916
|
})).strict(),
|
|
2915
|
-
zod.z.object(_object_spread$
|
|
2917
|
+
zod.z.object(_object_spread$p({
|
|
2916
2918
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2917
2919
|
}, common$1)).strict()
|
|
2918
2920
|
]).superRefine(function(value, ctx) {
|
|
@@ -2944,7 +2946,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2944
2946
|
};
|
|
2945
2947
|
switch(modelType){
|
|
2946
2948
|
case exports.AiModelTypeEnum.LLM:
|
|
2947
|
-
return _object_spread_props$
|
|
2949
|
+
return _object_spread_props$j(_object_spread$p({
|
|
2948
2950
|
modelType: modelType
|
|
2949
2951
|
}, common), {
|
|
2950
2952
|
maxOutputTokens: 2048,
|
|
@@ -2952,13 +2954,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2952
2954
|
features: []
|
|
2953
2955
|
});
|
|
2954
2956
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2955
|
-
return _object_spread_props$
|
|
2957
|
+
return _object_spread_props$j(_object_spread$p({
|
|
2956
2958
|
modelType: modelType
|
|
2957
2959
|
}, common), {
|
|
2958
2960
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
2959
2961
|
});
|
|
2960
2962
|
case exports.AiModelTypeEnum.RERANK:
|
|
2961
|
-
return _object_spread$
|
|
2963
|
+
return _object_spread$p({
|
|
2962
2964
|
modelType: modelType
|
|
2963
2965
|
}, common);
|
|
2964
2966
|
}
|
|
@@ -3571,7 +3573,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3571
3573
|
return node.title || node.key;
|
|
3572
3574
|
}
|
|
3573
3575
|
|
|
3574
|
-
function _define_property$
|
|
3576
|
+
function _define_property$o(obj, key, value) {
|
|
3575
3577
|
if (key in obj) {
|
|
3576
3578
|
Object.defineProperty(obj, key, {
|
|
3577
3579
|
value: value,
|
|
@@ -3584,7 +3586,7 @@ function _define_property$n(obj, key, value) {
|
|
|
3584
3586
|
}
|
|
3585
3587
|
return obj;
|
|
3586
3588
|
}
|
|
3587
|
-
function _object_spread$
|
|
3589
|
+
function _object_spread$o(target) {
|
|
3588
3590
|
for(var i = 1; i < arguments.length; i++){
|
|
3589
3591
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3590
3592
|
var ownKeys = Object.keys(source);
|
|
@@ -3594,12 +3596,12 @@ function _object_spread$n(target) {
|
|
|
3594
3596
|
}));
|
|
3595
3597
|
}
|
|
3596
3598
|
ownKeys.forEach(function(key) {
|
|
3597
|
-
_define_property$
|
|
3599
|
+
_define_property$o(target, key, source[key]);
|
|
3598
3600
|
});
|
|
3599
3601
|
}
|
|
3600
3602
|
return target;
|
|
3601
3603
|
}
|
|
3602
|
-
function ownKeys$
|
|
3604
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
3603
3605
|
var keys = Object.keys(object);
|
|
3604
3606
|
if (Object.getOwnPropertySymbols) {
|
|
3605
3607
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3607,12 +3609,12 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
3607
3609
|
}
|
|
3608
3610
|
return keys;
|
|
3609
3611
|
}
|
|
3610
|
-
function _object_spread_props$
|
|
3612
|
+
function _object_spread_props$i(target, source) {
|
|
3611
3613
|
source = source != null ? source : {};
|
|
3612
3614
|
if (Object.getOwnPropertyDescriptors) {
|
|
3613
3615
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3614
3616
|
} else {
|
|
3615
|
-
ownKeys$
|
|
3617
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
3616
3618
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3617
3619
|
});
|
|
3618
3620
|
}
|
|
@@ -3685,7 +3687,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
3685
3687
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
|
|
3686
3688
|
"maxConcurrency"
|
|
3687
3689
|
]);
|
|
3688
|
-
return _object_spread_props$
|
|
3690
|
+
return _object_spread_props$i(_object_spread$o({}, config), {
|
|
3689
3691
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3690
3692
|
});
|
|
3691
3693
|
}
|
|
@@ -3779,7 +3781,7 @@ function _array_like_to_array$s(arr, len) {
|
|
|
3779
3781
|
function _array_with_holes$h(arr) {
|
|
3780
3782
|
if (Array.isArray(arr)) return arr;
|
|
3781
3783
|
}
|
|
3782
|
-
function _define_property$
|
|
3784
|
+
function _define_property$n(obj, key, value) {
|
|
3783
3785
|
if (key in obj) {
|
|
3784
3786
|
Object.defineProperty(obj, key, {
|
|
3785
3787
|
value: value,
|
|
@@ -3819,7 +3821,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
3819
3821
|
function _non_iterable_rest$h() {
|
|
3820
3822
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3821
3823
|
}
|
|
3822
|
-
function _object_spread$
|
|
3824
|
+
function _object_spread$n(target) {
|
|
3823
3825
|
for(var i = 1; i < arguments.length; i++){
|
|
3824
3826
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3825
3827
|
var ownKeys = Object.keys(source);
|
|
@@ -3829,12 +3831,12 @@ function _object_spread$m(target) {
|
|
|
3829
3831
|
}));
|
|
3830
3832
|
}
|
|
3831
3833
|
ownKeys.forEach(function(key) {
|
|
3832
|
-
_define_property$
|
|
3834
|
+
_define_property$n(target, key, source[key]);
|
|
3833
3835
|
});
|
|
3834
3836
|
}
|
|
3835
3837
|
return target;
|
|
3836
3838
|
}
|
|
3837
|
-
function ownKeys$
|
|
3839
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
3838
3840
|
var keys = Object.keys(object);
|
|
3839
3841
|
if (Object.getOwnPropertySymbols) {
|
|
3840
3842
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3842,12 +3844,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
3842
3844
|
}
|
|
3843
3845
|
return keys;
|
|
3844
3846
|
}
|
|
3845
|
-
function _object_spread_props$
|
|
3847
|
+
function _object_spread_props$h(target, source) {
|
|
3846
3848
|
source = source != null ? source : {};
|
|
3847
3849
|
if (Object.getOwnPropertyDescriptors) {
|
|
3848
3850
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3849
3851
|
} else {
|
|
3850
|
-
ownKeys$
|
|
3852
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
3851
3853
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3852
3854
|
});
|
|
3853
3855
|
}
|
|
@@ -3947,7 +3949,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3947
3949
|
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3948
3950
|
if (variableName) {
|
|
3949
3951
|
var _state_agentChannelName;
|
|
3950
|
-
state[agentChannelName] = _object_spread_props$
|
|
3952
|
+
state[agentChannelName] = _object_spread_props$h(_object_spread$n({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$n({}, variableName, value));
|
|
3951
3953
|
} else {
|
|
3952
3954
|
state[agentChannelName] = value;
|
|
3953
3955
|
}
|
|
@@ -4038,7 +4040,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4038
4040
|
});
|
|
4039
4041
|
}
|
|
4040
4042
|
|
|
4041
|
-
function _define_property$
|
|
4043
|
+
function _define_property$m(obj, key, value) {
|
|
4042
4044
|
if (key in obj) {
|
|
4043
4045
|
Object.defineProperty(obj, key, {
|
|
4044
4046
|
value: value,
|
|
@@ -4051,7 +4053,7 @@ function _define_property$l(obj, key, value) {
|
|
|
4051
4053
|
}
|
|
4052
4054
|
return obj;
|
|
4053
4055
|
}
|
|
4054
|
-
function _object_spread$
|
|
4056
|
+
function _object_spread$m(target) {
|
|
4055
4057
|
for(var i = 1; i < arguments.length; i++){
|
|
4056
4058
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4057
4059
|
var ownKeys = Object.keys(source);
|
|
@@ -4061,12 +4063,12 @@ function _object_spread$l(target) {
|
|
|
4061
4063
|
}));
|
|
4062
4064
|
}
|
|
4063
4065
|
ownKeys.forEach(function(key) {
|
|
4064
|
-
_define_property$
|
|
4066
|
+
_define_property$m(target, key, source[key]);
|
|
4065
4067
|
});
|
|
4066
4068
|
}
|
|
4067
4069
|
return target;
|
|
4068
4070
|
}
|
|
4069
|
-
function ownKeys$
|
|
4071
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
4070
4072
|
var keys = Object.keys(object);
|
|
4071
4073
|
if (Object.getOwnPropertySymbols) {
|
|
4072
4074
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4074,12 +4076,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
4074
4076
|
}
|
|
4075
4077
|
return keys;
|
|
4076
4078
|
}
|
|
4077
|
-
function _object_spread_props$
|
|
4079
|
+
function _object_spread_props$g(target, source) {
|
|
4078
4080
|
source = source != null ? source : {};
|
|
4079
4081
|
if (Object.getOwnPropertyDescriptors) {
|
|
4080
4082
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4081
4083
|
} else {
|
|
4082
|
-
ownKeys$
|
|
4084
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
4083
4085
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4084
4086
|
});
|
|
4085
4087
|
}
|
|
@@ -4167,11 +4169,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4167
4169
|
return candidate === requestedMode;
|
|
4168
4170
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4169
4171
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4170
|
-
return _object_spread_props$
|
|
4172
|
+
return _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4171
4173
|
mode: mode,
|
|
4172
|
-
fusion: _object_spread_props$
|
|
4174
|
+
fusion: _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
4173
4175
|
mode: mode === "hybrid" ? "weighted_rrf" : (_recall_fusion_mode = recall === null || recall === void 0 ? void 0 : (_recall_fusion = recall.fusion) === null || _recall_fusion === void 0 ? void 0 : _recall_fusion.mode) !== null && _recall_fusion_mode !== void 0 ? _recall_fusion_mode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion.mode,
|
|
4174
|
-
weights: _object_spread_props$
|
|
4176
|
+
weights: _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion.weights, (_recall_fusion_weights = recall === null || recall === void 0 ? void 0 : (_recall_fusion1 = recall.fusion) === null || _recall_fusion1 === void 0 ? void 0 : _recall_fusion1.weights) !== null && _recall_fusion_weights !== void 0 ? _recall_fusion_weights : {}), {
|
|
4175
4177
|
graph: 0
|
|
4176
4178
|
})
|
|
4177
4179
|
})
|
|
@@ -4340,7 +4342,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4340
4342
|
function _array_without_holes$f(arr) {
|
|
4341
4343
|
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4342
4344
|
}
|
|
4343
|
-
function _define_property$
|
|
4345
|
+
function _define_property$l(obj, key, value) {
|
|
4344
4346
|
if (key in obj) {
|
|
4345
4347
|
Object.defineProperty(obj, key, {
|
|
4346
4348
|
value: value,
|
|
@@ -4359,7 +4361,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4359
4361
|
function _non_iterable_spread$f() {
|
|
4360
4362
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4361
4363
|
}
|
|
4362
|
-
function _object_spread$
|
|
4364
|
+
function _object_spread$l(target) {
|
|
4363
4365
|
for(var i = 1; i < arguments.length; i++){
|
|
4364
4366
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4365
4367
|
var ownKeys = Object.keys(source);
|
|
@@ -4369,7 +4371,7 @@ function _object_spread$k(target) {
|
|
|
4369
4371
|
}));
|
|
4370
4372
|
}
|
|
4371
4373
|
ownKeys.forEach(function(key) {
|
|
4372
|
-
_define_property$
|
|
4374
|
+
_define_property$l(target, key, source[key]);
|
|
4373
4375
|
});
|
|
4374
4376
|
}
|
|
4375
4377
|
return target;
|
|
@@ -4387,12 +4389,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4387
4389
|
}
|
|
4388
4390
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4389
4391
|
if (!config) return {};
|
|
4390
|
-
return _object_spread$
|
|
4391
|
-
spreadsheet: _object_spread$
|
|
4392
|
+
return _object_spread$l({}, config.spreadsheet ? {
|
|
4393
|
+
spreadsheet: _object_spread$l({}, config.spreadsheet)
|
|
4392
4394
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4393
4395
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4394
4396
|
} : {}, config.questionGeneration ? {
|
|
4395
|
-
questionGeneration: _object_spread$
|
|
4397
|
+
questionGeneration: _object_spread$l({}, config.questionGeneration)
|
|
4396
4398
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4397
4399
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4398
4400
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4406,7 +4408,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4406
4408
|
} : {}, config.textSplitterType ? {
|
|
4407
4409
|
textSplitterType: config.textSplitterType
|
|
4408
4410
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4409
|
-
textSplitter: _object_spread$
|
|
4411
|
+
textSplitter: _object_spread$l({}, config.chunkSize != null ? {
|
|
4410
4412
|
chunkSize: config.chunkSize
|
|
4411
4413
|
} : {}, config.chunkOverlap != null ? {
|
|
4412
4414
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4418,7 +4420,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4418
4420
|
} : {}, config.imageUnderstandingType ? {
|
|
4419
4421
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4420
4422
|
} : {}, config.imageUnderstanding ? {
|
|
4421
|
-
imageUnderstanding: _object_spread$
|
|
4423
|
+
imageUnderstanding: _object_spread$l({}, config.imageUnderstanding)
|
|
4422
4424
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4423
4425
|
}
|
|
4424
4426
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4483,7 +4485,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4483
4485
|
return letterStartSUID("KnowledgeBase_");
|
|
4484
4486
|
}
|
|
4485
4487
|
|
|
4486
|
-
function _define_property$
|
|
4488
|
+
function _define_property$k(obj, key, value) {
|
|
4487
4489
|
if (key in obj) {
|
|
4488
4490
|
Object.defineProperty(obj, key, {
|
|
4489
4491
|
value: value,
|
|
@@ -4496,7 +4498,7 @@ function _define_property$j(obj, key, value) {
|
|
|
4496
4498
|
}
|
|
4497
4499
|
return obj;
|
|
4498
4500
|
}
|
|
4499
|
-
function _object_spread$
|
|
4501
|
+
function _object_spread$k(target) {
|
|
4500
4502
|
for(var i = 1; i < arguments.length; i++){
|
|
4501
4503
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4502
4504
|
var ownKeys = Object.keys(source);
|
|
@@ -4506,7 +4508,7 @@ function _object_spread$j(target) {
|
|
|
4506
4508
|
}));
|
|
4507
4509
|
}
|
|
4508
4510
|
ownKeys.forEach(function(key) {
|
|
4509
|
-
_define_property$
|
|
4511
|
+
_define_property$k(target, key, source[key]);
|
|
4510
4512
|
});
|
|
4511
4513
|
}
|
|
4512
4514
|
return target;
|
|
@@ -4526,7 +4528,7 @@ function _object_spread$j(target) {
|
|
|
4526
4528
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4527
4529
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4528
4530
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4529
|
-
var KDocumentSourceType = _object_spread$
|
|
4531
|
+
var KDocumentSourceType = _object_spread$k({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4530
4532
|
/**
|
|
4531
4533
|
* Document type category, determine how to process the document.
|
|
4532
4534
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5412,7 +5414,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
5412
5414
|
function _array_without_holes$d(arr) {
|
|
5413
5415
|
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5414
5416
|
}
|
|
5415
|
-
function _define_property$
|
|
5417
|
+
function _define_property$j(obj, key, value) {
|
|
5416
5418
|
if (key in obj) {
|
|
5417
5419
|
Object.defineProperty(obj, key, {
|
|
5418
5420
|
value: value,
|
|
@@ -5431,7 +5433,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5431
5433
|
function _non_iterable_spread$d() {
|
|
5432
5434
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5433
5435
|
}
|
|
5434
|
-
function _object_spread$
|
|
5436
|
+
function _object_spread$j(target) {
|
|
5435
5437
|
for(var i = 1; i < arguments.length; i++){
|
|
5436
5438
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5437
5439
|
var ownKeys = Object.keys(source);
|
|
@@ -5441,12 +5443,12 @@ function _object_spread$i(target) {
|
|
|
5441
5443
|
}));
|
|
5442
5444
|
}
|
|
5443
5445
|
ownKeys.forEach(function(key) {
|
|
5444
|
-
_define_property$
|
|
5446
|
+
_define_property$j(target, key, source[key]);
|
|
5445
5447
|
});
|
|
5446
5448
|
}
|
|
5447
5449
|
return target;
|
|
5448
5450
|
}
|
|
5449
|
-
function ownKeys$
|
|
5451
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
5450
5452
|
var keys = Object.keys(object);
|
|
5451
5453
|
if (Object.getOwnPropertySymbols) {
|
|
5452
5454
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5454,12 +5456,12 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
5454
5456
|
}
|
|
5455
5457
|
return keys;
|
|
5456
5458
|
}
|
|
5457
|
-
function _object_spread_props$
|
|
5459
|
+
function _object_spread_props$f(target, source) {
|
|
5458
5460
|
source = source != null ? source : {};
|
|
5459
5461
|
if (Object.getOwnPropertyDescriptors) {
|
|
5460
5462
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5461
5463
|
} else {
|
|
5462
|
-
ownKeys$
|
|
5464
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
5463
5465
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5464
5466
|
});
|
|
5465
5467
|
}
|
|
@@ -5540,7 +5542,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5540
5542
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5541
5543
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5542
5544
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5543
|
-
return _object_spread_props$
|
|
5545
|
+
return _object_spread_props$f(_object_spread$j({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
5544
5546
|
id: xpert.id,
|
|
5545
5547
|
tenantId: xpert.tenantId,
|
|
5546
5548
|
organizationId: xpert.organizationId,
|
|
@@ -5824,9 +5826,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5824
5826
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5825
5827
|
replacedNode = true;
|
|
5826
5828
|
var _node_entity;
|
|
5827
|
-
return _object_spread_props$
|
|
5829
|
+
return _object_spread_props$f(_object_spread$j({}, node), {
|
|
5828
5830
|
key: targetKey,
|
|
5829
|
-
entity: _object_spread_props$
|
|
5831
|
+
entity: _object_spread_props$f(_object_spread$j({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
5830
5832
|
key: targetKey
|
|
5831
5833
|
})
|
|
5832
5834
|
});
|
|
@@ -5842,17 +5844,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5842
5844
|
if (from === connection.from && to === connection.to) {
|
|
5843
5845
|
return connection;
|
|
5844
5846
|
}
|
|
5845
|
-
return _object_spread_props$
|
|
5847
|
+
return _object_spread_props$f(_object_spread$j({}, connection), {
|
|
5846
5848
|
from: from,
|
|
5847
5849
|
to: to,
|
|
5848
5850
|
key: "".concat(from, "/").concat(to)
|
|
5849
5851
|
});
|
|
5850
5852
|
});
|
|
5851
|
-
return _object_spread_props$
|
|
5852
|
-
team: draft.team ? _object_spread_props$
|
|
5853
|
-
agent: draft.team.agent ? _object_spread_props$
|
|
5853
|
+
return _object_spread_props$f(_object_spread$j({}, draft), {
|
|
5854
|
+
team: draft.team ? _object_spread_props$f(_object_spread$j({}, draft.team), {
|
|
5855
|
+
agent: draft.team.agent ? _object_spread_props$f(_object_spread$j({}, draft.team.agent, agent), {
|
|
5854
5856
|
key: targetKey
|
|
5855
|
-
}) : _object_spread_props$
|
|
5857
|
+
}) : _object_spread_props$f(_object_spread$j({}, agent), {
|
|
5856
5858
|
key: targetKey
|
|
5857
5859
|
})
|
|
5858
5860
|
}) : draft.team,
|
|
@@ -6000,6 +6002,148 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6000
6002
|
projectTypeKey: "space"
|
|
6001
6003
|
};
|
|
6002
6004
|
|
|
6005
|
+
function _define_property$i(obj, key, value) {
|
|
6006
|
+
if (key in obj) {
|
|
6007
|
+
Object.defineProperty(obj, key, {
|
|
6008
|
+
value: value,
|
|
6009
|
+
enumerable: true,
|
|
6010
|
+
configurable: true,
|
|
6011
|
+
writable: true
|
|
6012
|
+
});
|
|
6013
|
+
} else {
|
|
6014
|
+
obj[key] = value;
|
|
6015
|
+
}
|
|
6016
|
+
return obj;
|
|
6017
|
+
}
|
|
6018
|
+
function _object_spread$i(target) {
|
|
6019
|
+
for(var i = 1; i < arguments.length; i++){
|
|
6020
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
6021
|
+
var ownKeys = Object.keys(source);
|
|
6022
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
6023
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
6024
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
6025
|
+
}));
|
|
6026
|
+
}
|
|
6027
|
+
ownKeys.forEach(function(key) {
|
|
6028
|
+
_define_property$i(target, key, source[key]);
|
|
6029
|
+
});
|
|
6030
|
+
}
|
|
6031
|
+
return target;
|
|
6032
|
+
}
|
|
6033
|
+
function ownKeys$e(object, enumerableOnly) {
|
|
6034
|
+
var keys = Object.keys(object);
|
|
6035
|
+
if (Object.getOwnPropertySymbols) {
|
|
6036
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6037
|
+
keys.push.apply(keys, symbols);
|
|
6038
|
+
}
|
|
6039
|
+
return keys;
|
|
6040
|
+
}
|
|
6041
|
+
function _object_spread_props$e(target, source) {
|
|
6042
|
+
source = source != null ? source : {};
|
|
6043
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
6044
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
6045
|
+
} else {
|
|
6046
|
+
ownKeys$e(Object(source)).forEach(function(key) {
|
|
6047
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
6048
|
+
});
|
|
6049
|
+
}
|
|
6050
|
+
return target;
|
|
6051
|
+
}
|
|
6052
|
+
var valueSchema = v3.z.lazy(function() {
|
|
6053
|
+
return v3.z.union([
|
|
6054
|
+
v3.z.string(),
|
|
6055
|
+
v3.z.number().finite(),
|
|
6056
|
+
v3.z.boolean(),
|
|
6057
|
+
v3.z.null(),
|
|
6058
|
+
v3.z.array(valueSchema),
|
|
6059
|
+
v3.z.record(valueSchema)
|
|
6060
|
+
]);
|
|
6061
|
+
});
|
|
6062
|
+
var projectConfigurationValuesSchema = v3.z.record(valueSchema).refine(function(values) {
|
|
6063
|
+
return JSON.stringify(values).length <= 65536;
|
|
6064
|
+
}, "Project configuration is too large");
|
|
6065
|
+
var projectConfigurationUpdateSchema = v3.z.object({
|
|
6066
|
+
revision: v3.z.number().int().nonnegative(),
|
|
6067
|
+
values: projectConfigurationValuesSchema
|
|
6068
|
+
}).strict();
|
|
6069
|
+
/** Reserved host setting; custom type settings remain uninterpreted by the runtime. */ var projectTaskDurationSchema = v3.z.number().int().min(60).max(86400);
|
|
6070
|
+
function projectTaskConfigurationSchema(defaultSeconds) {
|
|
6071
|
+
return {
|
|
6072
|
+
type: "object",
|
|
6073
|
+
additionalProperties: false,
|
|
6074
|
+
properties: {
|
|
6075
|
+
taskExecutionMaxDurationSeconds: _object_spread_props$e(_object_spread$i({
|
|
6076
|
+
type: "integer",
|
|
6077
|
+
minimum: 60,
|
|
6078
|
+
maximum: 86400
|
|
6079
|
+
}, defaultSeconds === undefined ? {} : {
|
|
6080
|
+
default: defaultSeconds
|
|
6081
|
+
}), {
|
|
6082
|
+
title: {
|
|
6083
|
+
en_US: "Task execution limit (seconds)",
|
|
6084
|
+
zh_Hans: "单次任务执行上限(秒)"
|
|
6085
|
+
},
|
|
6086
|
+
description: {
|
|
6087
|
+
en_US: "7200 seconds is 2 hours. Applies to new implementation and review attempts, within the tenant limit.",
|
|
6088
|
+
zh_Hans: "7200 秒为 2 小时。在租户允许的上限内,对新的开发和验收执行生效。"
|
|
6089
|
+
}
|
|
6090
|
+
})
|
|
6091
|
+
}
|
|
6092
|
+
};
|
|
6093
|
+
}
|
|
6094
|
+
|
|
6095
|
+
var PROJECT_CONFIGURATION_PROVIDER = "platform.project-configuration";
|
|
6096
|
+
var PROJECT_CONFIGURATION_VIEW = "".concat(PROJECT_CONFIGURATION_PROVIDER, "__configuration");
|
|
6097
|
+
var projectConfigurationSectionSchema = v3.z.enum([
|
|
6098
|
+
"type",
|
|
6099
|
+
"experts",
|
|
6100
|
+
"members",
|
|
6101
|
+
"skills",
|
|
6102
|
+
"connectors",
|
|
6103
|
+
"automations",
|
|
6104
|
+
"delete"
|
|
6105
|
+
]);
|
|
6106
|
+
var PROJECT_CONFIGURATION_ACTION_HANDLERS = {
|
|
6107
|
+
"type": "editors",
|
|
6108
|
+
"type-save": "editors",
|
|
6109
|
+
"experts": "editors",
|
|
6110
|
+
"expert-add": "editors",
|
|
6111
|
+
"expert-remove": "editors",
|
|
6112
|
+
"members": "editors",
|
|
6113
|
+
"member-add": "editors",
|
|
6114
|
+
"member-role": "editors",
|
|
6115
|
+
"member-remove": "editors",
|
|
6116
|
+
"member-owner": "editors",
|
|
6117
|
+
"member-invite": "editors",
|
|
6118
|
+
"invitation-revoke": "editors",
|
|
6119
|
+
"skill-catalog": "editors",
|
|
6120
|
+
"skill-install": "editors",
|
|
6121
|
+
"skill-toggle": "editors",
|
|
6122
|
+
"skill-remove": "editors",
|
|
6123
|
+
"connectors": "connectors",
|
|
6124
|
+
"connector-add": "connectors",
|
|
6125
|
+
"connector-remove": "connectors",
|
|
6126
|
+
"connector-connect": "connectors",
|
|
6127
|
+
"connector-status": "connectors",
|
|
6128
|
+
"connector-cancel": "connectors",
|
|
6129
|
+
"automations": "automations",
|
|
6130
|
+
"automation-save": "automations",
|
|
6131
|
+
"automation-options": "automations",
|
|
6132
|
+
"automation-pause": "automations",
|
|
6133
|
+
"automation-resume": "automations",
|
|
6134
|
+
"automation-delete": "automations",
|
|
6135
|
+
"automation-propose": "automations",
|
|
6136
|
+
"automation-accept": "automations",
|
|
6137
|
+
"automation-connectors": "automations",
|
|
6138
|
+
"delete": "editors"
|
|
6139
|
+
};
|
|
6140
|
+
var projectConfigurationActionSchema = v3.z.custom(function(value) {
|
|
6141
|
+
return typeof value === "string" && Object.prototype.hasOwnProperty.call(PROJECT_CONFIGURATION_ACTION_HANDLERS, value);
|
|
6142
|
+
});
|
|
6143
|
+
var PROJECT_CONFIGURATION_ACTIONS = Object.keys(PROJECT_CONFIGURATION_ACTION_HANDLERS).map(function(key) {
|
|
6144
|
+
return projectConfigurationActionSchema.parse(key);
|
|
6145
|
+
});
|
|
6146
|
+
|
|
6003
6147
|
/**
|
|
6004
6148
|
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
6005
6149
|
* preserving explicit chunkIndex order whenever it is available.
|
|
@@ -7805,18 +7949,71 @@ var projectTaskSpecificationDigestSchema = v3.z.string().regex(/^sha256:[a-f0-9]
|
|
|
7805
7949
|
digest: projectTaskSpecificationDigestSchema
|
|
7806
7950
|
}).strict()
|
|
7807
7951
|
]);
|
|
7808
|
-
var
|
|
7952
|
+
var projectTaskReviewerSchema = v3.z.object({
|
|
7953
|
+
bindingId: v3.z.string().uuid(),
|
|
7954
|
+
mode: v3.z.enum([
|
|
7955
|
+
"evidence_only",
|
|
7956
|
+
"execution"
|
|
7957
|
+
])
|
|
7958
|
+
}).strict();
|
|
7959
|
+
/** Host-owned identity of a review work item; retries cannot change its candidate. */ var projectTaskReviewSubjectSchema = v3.z.object({
|
|
7960
|
+
implementationTaskId: v3.z.string().uuid(),
|
|
7961
|
+
implementationExecutionId: v3.z.string().uuid(),
|
|
7962
|
+
specificationDigest: projectTaskSpecificationDigestSchema
|
|
7963
|
+
}).strict();
|
|
7964
|
+
var projectTaskReworkSchema = v3.z.object({
|
|
7965
|
+
reviewExecutionId: v3.z.string().uuid(),
|
|
7966
|
+
findingIds: v3.z.array(v3.z.string().trim().min(1).max(100)).min(1).max(64)
|
|
7967
|
+
}).strict();
|
|
7968
|
+
/** Relative paths are references, never access grants. Runtimes own snapshot exclusions and containment. */ var projectTaskRelativePathSchema = v3.z.string().min(1).max(1000).refine(function(value) {
|
|
7969
|
+
return !/^(?:\/|[a-zA-Z]:)/.test(value) && !value.includes("\\") && !/[\x00-\x1f\x7f]/.test(value) && value.split("/").every(function(part) {
|
|
7970
|
+
return part.length > 0 && part !== "." && part !== "..";
|
|
7971
|
+
});
|
|
7972
|
+
});
|
|
7973
|
+
var projectTaskCandidatePathSchema = projectTaskRelativePathSchema.describe("Candidate path relative to the authorized project workspace.");
|
|
7974
|
+
var projectTaskEvidencePathSchema = projectTaskRelativePathSchema.describe("Evidence path relative to the review workspace.");
|
|
7975
|
+
var projectTaskExecutionPurposeFieldsSchema = v3.z.discriminatedUnion("type", [
|
|
7809
7976
|
v3.z.object({
|
|
7810
|
-
type: v3.z.literal("implementation")
|
|
7977
|
+
type: v3.z.literal("implementation"),
|
|
7978
|
+
reviewer: projectTaskReviewerSchema.optional(),
|
|
7979
|
+
coordination: v3.z.object({
|
|
7980
|
+
taskId: v3.z.string().uuid(),
|
|
7981
|
+
specificationDigest: projectTaskSpecificationDigestSchema
|
|
7982
|
+
}).strict().optional(),
|
|
7983
|
+
rework: projectTaskReworkSchema.optional()
|
|
7811
7984
|
}).strict(),
|
|
7812
7985
|
v3.z.object({
|
|
7813
7986
|
type: v3.z.literal("review"),
|
|
7987
|
+
mode: v3.z.enum([
|
|
7988
|
+
"evidence_only",
|
|
7989
|
+
"execution"
|
|
7990
|
+
]).optional(),
|
|
7991
|
+
candidatePaths: v3.z.array(projectTaskCandidatePathSchema).min(1).max(64).optional(),
|
|
7814
7992
|
implementationExecutionId: v3.z.string().uuid(),
|
|
7993
|
+
implementationTaskId: v3.z.string().uuid().optional(),
|
|
7815
7994
|
implementationInvocationId: v3.z.string().uuid(),
|
|
7816
7995
|
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
7817
7996
|
evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64)
|
|
7818
7997
|
}).strict()
|
|
7819
7998
|
]);
|
|
7999
|
+
function validateReviewCandidate(purpose, context) {
|
|
8000
|
+
if (purpose.type !== "review") return;
|
|
8001
|
+
if (purpose.mode === "execution" !== Boolean(purpose.candidatePaths)) context.addIssue({
|
|
8002
|
+
code: "custom",
|
|
8003
|
+
path: [
|
|
8004
|
+
"candidatePaths"
|
|
8005
|
+
],
|
|
8006
|
+
message: "Execution review requires candidate paths; evidence-only review does not use a workspace."
|
|
8007
|
+
});
|
|
8008
|
+
if (purpose.candidatePaths && new Set(purpose.candidatePaths).size !== purpose.candidatePaths.length) context.addIssue({
|
|
8009
|
+
code: "custom",
|
|
8010
|
+
path: [
|
|
8011
|
+
"candidatePaths"
|
|
8012
|
+
],
|
|
8013
|
+
message: "Candidate paths must be unique."
|
|
8014
|
+
});
|
|
8015
|
+
}
|
|
8016
|
+
var projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeFieldsSchema.superRefine(validateReviewCandidate);
|
|
7820
8017
|
var projectTaskExecutionReferenceSchema = v3.z.object({
|
|
7821
8018
|
projectId: v3.z.string().uuid(),
|
|
7822
8019
|
projectTaskId: v3.z.string().uuid(),
|
|
@@ -7860,6 +8057,7 @@ var projectTaskExecutionReferenceSchema = v3.z.object({
|
|
|
7860
8057
|
participantId: v3.z.string().uuid()
|
|
7861
8058
|
}).strict().optional(),
|
|
7862
8059
|
purpose: projectTaskExecutionPurposeSchema.optional(),
|
|
8060
|
+
reviewAsSubtask: v3.z.boolean().optional().describe("Create or resume a review subtask for the pinned implementation. taskId identifies the implementation task."),
|
|
7863
8061
|
delivery: agentOutputDeliverySchema.optional(),
|
|
7864
8062
|
instructions: v3.z.string().trim().max(16000).default("")
|
|
7865
8063
|
}).strict();
|
|
@@ -7869,8 +8067,17 @@ var hasOneDispatchTarget = function(input) {
|
|
|
7869
8067
|
var projectTaskDispatchInputSchema = projectTaskDispatchFieldsSchema.refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
7870
8068
|
var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
7871
8069
|
requestId: true
|
|
8070
|
+
}).extend({
|
|
8071
|
+
purpose: v3.z.discriminatedUnion("type", [
|
|
8072
|
+
projectTaskExecutionPurposeFieldsSchema.options[0].omit({
|
|
8073
|
+
coordination: true
|
|
8074
|
+
}),
|
|
8075
|
+
projectTaskExecutionPurposeFieldsSchema.options[1].omit({
|
|
8076
|
+
implementationTaskId: true
|
|
8077
|
+
})
|
|
8078
|
+
]).superRefine(validateReviewCandidate).optional()
|
|
7872
8079
|
}).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
7873
|
-
/** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var
|
|
8080
|
+
/** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskEvidenceReviewReportSchema = v3.z.object({
|
|
7874
8081
|
version: v3.z.literal(1),
|
|
7875
8082
|
verdict: v3.z.enum([
|
|
7876
8083
|
"pass",
|
|
@@ -7883,6 +8090,72 @@ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
|
7883
8090
|
findings: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64),
|
|
7884
8091
|
limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
7885
8092
|
}).strict();
|
|
8093
|
+
var projectTaskReviewFindingSchema = v3.z.object({
|
|
8094
|
+
id: v3.z.string().trim().min(1).max(100),
|
|
8095
|
+
kind: v3.z.enum([
|
|
8096
|
+
"defect",
|
|
8097
|
+
"environment",
|
|
8098
|
+
"requirement",
|
|
8099
|
+
"coverage",
|
|
8100
|
+
"suggestion"
|
|
8101
|
+
]),
|
|
8102
|
+
blocking: v3.z.boolean(),
|
|
8103
|
+
description: v3.z.string().trim().min(1).max(4000),
|
|
8104
|
+
requirement: v3.z.string().max(4000).optional(),
|
|
8105
|
+
reproduction: v3.z.string().max(8000).optional(),
|
|
8106
|
+
expected: v3.z.string().max(4000).optional(),
|
|
8107
|
+
actual: v3.z.string().max(8000).optional()
|
|
8108
|
+
}).strict();
|
|
8109
|
+
var projectTaskExecutionReviewReportSchema = v3.z.object({
|
|
8110
|
+
version: v3.z.literal(2),
|
|
8111
|
+
mode: v3.z.literal("execution"),
|
|
8112
|
+
verdict: v3.z.enum([
|
|
8113
|
+
"pass",
|
|
8114
|
+
"changes_required",
|
|
8115
|
+
"indeterminate"
|
|
8116
|
+
]),
|
|
8117
|
+
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
8118
|
+
implementationInvocationId: v3.z.string().uuid(),
|
|
8119
|
+
evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
|
|
8120
|
+
summary: v3.z.string().trim().min(1).max(8000),
|
|
8121
|
+
checks: v3.z.array(v3.z.object({
|
|
8122
|
+
description: v3.z.string().trim().min(1).max(4000),
|
|
8123
|
+
outcome: v3.z.enum([
|
|
8124
|
+
"passed",
|
|
8125
|
+
"failed",
|
|
8126
|
+
"blocked"
|
|
8127
|
+
]),
|
|
8128
|
+
command: v3.z.string().max(4000).optional(),
|
|
8129
|
+
expected: v3.z.string().max(4000).optional(),
|
|
8130
|
+
actual: v3.z.string().trim().min(1).max(8000),
|
|
8131
|
+
evidencePaths: v3.z.array(projectTaskEvidencePathSchema).max(64).optional()
|
|
8132
|
+
}).strict()).min(1).max(64),
|
|
8133
|
+
findings: v3.z.array(projectTaskReviewFindingSchema).max(64),
|
|
8134
|
+
limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
8135
|
+
}).strict().superRefine(function(report, context) {
|
|
8136
|
+
if (new Set(report.findings.map(function(item) {
|
|
8137
|
+
return item.id;
|
|
8138
|
+
})).size !== report.findings.length) context.addIssue({
|
|
8139
|
+
code: "custom",
|
|
8140
|
+
path: [
|
|
8141
|
+
"findings"
|
|
8142
|
+
],
|
|
8143
|
+
message: "Finding IDs must be unique."
|
|
8144
|
+
});
|
|
8145
|
+
if (report.verdict === "pass" && report.findings.some(function(item) {
|
|
8146
|
+
return item.blocking;
|
|
8147
|
+
})) context.addIssue({
|
|
8148
|
+
code: "custom",
|
|
8149
|
+
path: [
|
|
8150
|
+
"verdict"
|
|
8151
|
+
],
|
|
8152
|
+
message: "A passing report cannot contain blocking findings."
|
|
8153
|
+
});
|
|
8154
|
+
});
|
|
8155
|
+
var projectTaskReviewReportSchema = v3.z.union([
|
|
8156
|
+
projectTaskEvidenceReviewReportSchema,
|
|
8157
|
+
projectTaskExecutionReviewReportSchema
|
|
8158
|
+
]);
|
|
7886
8159
|
var projectTaskDecisionInputSchema = v3.z.object({
|
|
7887
8160
|
requestId: v3.z.string().uuid(),
|
|
7888
8161
|
taskId: v3.z.string().uuid(),
|
|
@@ -8889,6 +9162,19 @@ var projectPipelineDefinitionSchema = projectPipelineDefinitionShapeSchema.super
|
|
|
8889
9162
|
]
|
|
8890
9163
|
});
|
|
8891
9164
|
});
|
|
9165
|
+
/** Human management command. maxTokens is the new total ceiling, not an additional allowance. */ var projectPipelineModelBudgetIncreaseSchema = v3.z.object({
|
|
9166
|
+
instanceId: v3.z.string().uuid(),
|
|
9167
|
+
requestId: v3.z.string().uuid(),
|
|
9168
|
+
expectedRevision: v3.z.number().int().nonnegative().safe(),
|
|
9169
|
+
maxTokens: v3.z.number().int().min(1).max(1000000000000),
|
|
9170
|
+
reason: v3.z.string().trim().min(1).max(2000)
|
|
9171
|
+
}).strict();
|
|
9172
|
+
var projectPipelineModelBudgetIncreaseRecordSchema = v3.z.object({
|
|
9173
|
+
requestId: v3.z.string().uuid(),
|
|
9174
|
+
previousMaxTokens: v3.z.number().int().min(1).max(1000000000000),
|
|
9175
|
+
maxTokens: v3.z.number().int().min(1).max(1000000000000),
|
|
9176
|
+
reason: v3.z.string().trim().min(1).max(2000)
|
|
9177
|
+
}).strict();
|
|
8892
9178
|
var projectPipelineNativeModelBudgetStatusSchema = v3.z.object({
|
|
8893
9179
|
scope: v3.z.literal("instance_native_llm"),
|
|
8894
9180
|
policy: projectPipelineNativeModelBudgetSchema,
|
|
@@ -10341,6 +10627,17 @@ function executionRuntimeTargetsEqual(left, right) {
|
|
|
10341
10627
|
receiptKey: v3.z.string().min(1).max(500),
|
|
10342
10628
|
target: executionRuntimeTargetSchema.optional()
|
|
10343
10629
|
})).strict(),
|
|
10630
|
+
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10631
|
+
source: v3.z.literal("native_graph"),
|
|
10632
|
+
subject: v3.z.object({
|
|
10633
|
+
kind: v3.z.literal("invocation"),
|
|
10634
|
+
id: v3.z.string().min(1)
|
|
10635
|
+
}).strict(),
|
|
10636
|
+
scope: v3.z.literal("operation"),
|
|
10637
|
+
state: v3.z.literal("settled"),
|
|
10638
|
+
outcome: v3.z.literal("cancelled"),
|
|
10639
|
+
executionId: v3.z.string().min(1)
|
|
10640
|
+
})).strict(),
|
|
10344
10641
|
v3.z.object(_object_spread_props$6(_object_spread$a({}, base), {
|
|
10345
10642
|
source: v3.z.literal("host_admission"),
|
|
10346
10643
|
subject: v3.z.object({
|
|
@@ -10900,11 +11197,7 @@ var pipelineModelUsageStatisticsSchema = v3.z.object({
|
|
|
10900
11197
|
outputTokens: count$4.nullable(),
|
|
10901
11198
|
totalTokens: count$4.nullable(),
|
|
10902
11199
|
unpricedCalls: count$4,
|
|
10903
|
-
|
|
10904
|
-
currency: v3.z.string(),
|
|
10905
|
-
amount: v3.z.number().nonnegative(),
|
|
10906
|
-
calls: count$4
|
|
10907
|
-
}).strict()),
|
|
11200
|
+
chargedPoints: v3.z.number().nonnegative().nullable(),
|
|
10908
11201
|
byModel: v3.z.array(v3.z.object({
|
|
10909
11202
|
provider: v3.z.string(),
|
|
10910
11203
|
model: v3.z.string(),
|
|
@@ -10934,6 +11227,7 @@ var pipelineModelUsageStatisticsSchema = v3.z.object({
|
|
|
10934
11227
|
priceAmount: v3.z.number().nonnegative().nullable()
|
|
10935
11228
|
});
|
|
10936
11229
|
function pipelineModelUsageStatistics(facts, coverage) {
|
|
11230
|
+
var chargedPoints = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
10937
11231
|
var distinct = new Map();
|
|
10938
11232
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
10939
11233
|
try {
|
|
@@ -10980,25 +11274,21 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
10980
11274
|
totalTokens: sum("totalTokens")
|
|
10981
11275
|
};
|
|
10982
11276
|
};
|
|
10983
|
-
var
|
|
10984
|
-
|
|
11277
|
+
var unpricedCalls = calls.filter(function(call) {
|
|
11278
|
+
return call.pricingStatus === "unpriced" || !call.priceCurrency || call.priceAmount === null;
|
|
11279
|
+
}).length;
|
|
11280
|
+
var models = new Map();
|
|
10985
11281
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
10986
11282
|
try {
|
|
10987
11283
|
for(var _iterator1 = calls[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
10988
11284
|
var call = _step1.value;
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
amount: 0,
|
|
10997
|
-
calls: 0
|
|
10998
|
-
};
|
|
10999
|
-
group.amount += call.priceAmount;
|
|
11000
|
-
group.calls++;
|
|
11001
|
-
costs.set(call.priceCurrency, group);
|
|
11285
|
+
var _models_get;
|
|
11286
|
+
var key1 = JSON.stringify([
|
|
11287
|
+
call.provider,
|
|
11288
|
+
call.model
|
|
11289
|
+
]), group = (_models_get = models.get(key1)) !== null && _models_get !== void 0 ? _models_get : [];
|
|
11290
|
+
group.push(call);
|
|
11291
|
+
models.set(key1, group);
|
|
11002
11292
|
}
|
|
11003
11293
|
} catch (err) {
|
|
11004
11294
|
_didIteratorError1 = true;
|
|
@@ -11014,40 +11304,11 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
11014
11304
|
}
|
|
11015
11305
|
}
|
|
11016
11306
|
}
|
|
11017
|
-
var models = new Map();
|
|
11018
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
11019
|
-
try {
|
|
11020
|
-
for(var _iterator2 = calls[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
|
|
11021
|
-
var call1 = _step2.value;
|
|
11022
|
-
var _models_get;
|
|
11023
|
-
var key1 = JSON.stringify([
|
|
11024
|
-
call1.provider,
|
|
11025
|
-
call1.model
|
|
11026
|
-
]), group1 = (_models_get = models.get(key1)) !== null && _models_get !== void 0 ? _models_get : [];
|
|
11027
|
-
group1.push(call1);
|
|
11028
|
-
models.set(key1, group1);
|
|
11029
|
-
}
|
|
11030
|
-
} catch (err) {
|
|
11031
|
-
_didIteratorError2 = true;
|
|
11032
|
-
_iteratorError2 = err;
|
|
11033
|
-
} finally{
|
|
11034
|
-
try {
|
|
11035
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
11036
|
-
_iterator2.return();
|
|
11037
|
-
}
|
|
11038
|
-
} finally{
|
|
11039
|
-
if (_didIteratorError2) {
|
|
11040
|
-
throw _iteratorError2;
|
|
11041
|
-
}
|
|
11042
|
-
}
|
|
11043
|
-
}
|
|
11044
11307
|
return _object_spread_props$3(_object_spread$7({
|
|
11045
11308
|
scope: "linked_native_llm_calls"
|
|
11046
11309
|
}, coverage, totals(calls)), {
|
|
11047
11310
|
unpricedCalls: unpricedCalls,
|
|
11048
|
-
|
|
11049
|
-
return a.currency.localeCompare(b.currency);
|
|
11050
|
-
}),
|
|
11311
|
+
chargedPoints: chargedPoints,
|
|
11051
11312
|
byModel: _to_consumable_array$6(models.values()).map(function(group) {
|
|
11052
11313
|
return _object_spread$7({
|
|
11053
11314
|
provider: group[0].provider,
|
|
@@ -12889,6 +13150,33 @@ var projectPipelineContributionSchema = v3.z.object({
|
|
|
12889
13150
|
});
|
|
12890
13151
|
});
|
|
12891
13152
|
|
|
13153
|
+
/** Portable node contract. Only the host executes installation; plugins supply immutable inputs. */ var projectPluginDeploymentRefs = {
|
|
13154
|
+
operation: "platform.plugin-deployment@1",
|
|
13155
|
+
request: "platform.plugin-deployment-request@1",
|
|
13156
|
+
receipt: "platform.plugin-deployment-receipt@1",
|
|
13157
|
+
evidence: "platform.plugin-deployment-evidence@1"
|
|
13158
|
+
};
|
|
13159
|
+
var projectPluginDeploymentRequestSchema = v3.z.object({
|
|
13160
|
+
target: v3.z.literal("current-instance"),
|
|
13161
|
+
artifactId: v3.z.string().uuid(),
|
|
13162
|
+
artifactVersionId: v3.z.string().uuid(),
|
|
13163
|
+
sha256: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
13164
|
+
fileName: v3.z.string().min(1).max(240).regex(/^[^/\\\u0000]+$/),
|
|
13165
|
+
packageName: v3.z.string().min(1).max(240),
|
|
13166
|
+
packageVersion: v3.z.string().min(1).max(80),
|
|
13167
|
+
allowReplace: v3.z.boolean(),
|
|
13168
|
+
allowRestart: v3.z.boolean()
|
|
13169
|
+
}).strict();
|
|
13170
|
+
var projectPluginDeploymentReceiptSchema = v3.z.object({
|
|
13171
|
+
operationId: v3.z.string().uuid(),
|
|
13172
|
+
request: projectPluginDeploymentRequestSchema,
|
|
13173
|
+
approval: projectPipelineEvidenceRefSchema,
|
|
13174
|
+
scopeKey: v3.z.string().min(1),
|
|
13175
|
+
runtimeRevision: v3.z.string().min(1),
|
|
13176
|
+
installed: v3.z.literal(true),
|
|
13177
|
+
loaded: v3.z.literal(true)
|
|
13178
|
+
}).strict();
|
|
13179
|
+
|
|
12892
13180
|
var templateDependencyVersionsSchema = zod.z.array(zod.z.object({
|
|
12893
13181
|
pluginName: zod.z.string().min(1).max(214),
|
|
12894
13182
|
version: zod.z.string().min(1).max(100)
|
|
@@ -14786,6 +15074,12 @@ exports.RequestScopeLevel = void 0;
|
|
|
14786
15074
|
"never"
|
|
14787
15075
|
];
|
|
14788
15076
|
|
|
15077
|
+
/**
|
|
15078
|
+
* Authoring View -> signed-in host command for source grant management.
|
|
15079
|
+
* The host verifies the declared View, Assistant and source Project before forwarding the action.
|
|
15080
|
+
* Embedded/group credentials never become source-management authority and no login token is returned to the View.
|
|
15081
|
+
*/ var ARTIFACT_USE_GRANT_MANAGE_COMMAND = "artifact.use-grants.manage";
|
|
15082
|
+
|
|
14789
15083
|
exports.BusinessType = void 0;
|
|
14790
15084
|
(function(BusinessType) {
|
|
14791
15085
|
BusinessType["SEMANTIC_MODEL"] = "SEMANTIC_MODEL";
|
|
@@ -14901,25 +15195,29 @@ exports.InterruptMessageType = void 0;
|
|
|
14901
15195
|
InterruptMessageType["Select"] = "select";
|
|
14902
15196
|
})(exports.InterruptMessageType || (exports.InterruptMessageType = {}));
|
|
14903
15197
|
|
|
14904
|
-
var
|
|
14905
|
-
var XPERT_VIEW_CONVERSATION_ID_HEADER = "x-xpert-view-conversation-id";
|
|
15198
|
+
var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
|
|
14906
15199
|
var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
|
|
15200
|
+
/** Append text selections to the current draft without sending or replacing it. */ var ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND = "assistant.composer.append_references";
|
|
15201
|
+
/** Append editable context to the current composer. Never starts a run or changes thread. */ var ASSISTANT_COMPOSER_INSERT_COMMAND = "assistant.composer.insert";
|
|
14907
15202
|
var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
|
|
14908
15203
|
var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
|
|
14909
15204
|
var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
|
|
14910
15205
|
var WORKBENCH_AGENT_EVOLUTION_TARGET = "agent-evolution.target";
|
|
14911
15206
|
var WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET = "agent-evolution.change";
|
|
14912
|
-
var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
14913
15207
|
var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
|
|
15208
|
+
/** Locate a public message in the currently open group; never opens an Assistant's private runtime. */ var WORKBENCH_GROUP_MESSAGE_TARGET = "group.message";
|
|
14914
15209
|
/** Inspect an exact execution; embedded clients may open it without changing the active conversation. */ var WORKBENCH_ASSISTANT_EXECUTION_TARGET = "assistant.execution";
|
|
14915
15210
|
/** Opens the current Assistant inside a Project-scoped workbench route. */ var WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
|
|
14916
15211
|
var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
|
|
15212
|
+
var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
|
|
14917
15213
|
/** Resolve the Project's application entry through its registered type and current access checks. */ var WORKBENCH_PROJECT_APPLICATION_TARGET = "project.application";
|
|
14918
15214
|
/** Open full Project pipeline management in the configured platform. */ var WORKBENCH_PROJECT_PIPELINES_TARGET = "project.pipelines";
|
|
14919
|
-
|
|
15215
|
+
|
|
15216
|
+
// Preserve existing imports while client-command contracts live in their own module.
|
|
15217
|
+
var XPERT_VIEW_PROJECT_ID_HEADER = "x-xpert-view-project-id";
|
|
15218
|
+
var XPERT_VIEW_CONVERSATION_ID_HEADER = "x-xpert-view-conversation-id";
|
|
14920
15219
|
var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
|
|
14921
15220
|
var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
|
|
14922
|
-
/** Append text selections to the current draft without sending or replacing it. */ var ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND = "assistant.composer.append_references";
|
|
14923
15221
|
|
|
14924
15222
|
var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
14925
15223
|
|
|
@@ -15005,8 +15303,14 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
15005
15303
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
15006
15304
|
}
|
|
15007
15305
|
var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
15008
|
-
/**
|
|
15306
|
+
/**
|
|
15307
|
+
* Parse the public lg.chat.event shape and paired replay metadata, keeping arbitrary logs out of navigation.
|
|
15308
|
+
* Returns null for invalid payloads. Shape validation does not perform access, active-scope or freshness checks.
|
|
15309
|
+
*/ function parseWorkbenchViewOpenEvent(value) {
|
|
15009
15310
|
if (!value || typeof value !== "object" || Array.isArray(value) || !("type" in value) || value.type !== WORKBENCH_VIEW_OPEN_EVENT || !("viewKey" in value) || typeof value.viewKey !== "string" || !value.viewKey.trim() || !("projectId" in value) || typeof value.projectId !== "string" || !value.projectId.trim()) return null;
|
|
15311
|
+
if ("requestId" in value && (typeof value.requestId !== "string" || !value.requestId.trim())) return null;
|
|
15312
|
+
if ("issuedAt" in value && (typeof value.issuedAt !== "number" || !Number.isSafeInteger(value.issuedAt) || value.issuedAt <= 0)) return null;
|
|
15313
|
+
if ("requestId" in value !== "issuedAt" in value) return null;
|
|
15010
15314
|
if ("conversationId" in value && typeof value.conversationId !== "string") return null;
|
|
15011
15315
|
if ("selectionId" in value && typeof value.selectionId !== "string") return null;
|
|
15012
15316
|
var parameters = {};
|
|
@@ -15039,7 +15343,10 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
15039
15343
|
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
15040
15344
|
viewKey: value.viewKey,
|
|
15041
15345
|
projectId: value.projectId
|
|
15042
|
-
}, "
|
|
15346
|
+
}, "requestId" in value && "issuedAt" in value ? {
|
|
15347
|
+
requestId: value.requestId,
|
|
15348
|
+
issuedAt: value.issuedAt
|
|
15349
|
+
} : {}, "conversationId" in value ? {
|
|
15043
15350
|
conversationId: value.conversationId
|
|
15044
15351
|
} : {}, "selectionId" in value ? {
|
|
15045
15352
|
selectionId: value.selectionId
|
|
@@ -15091,6 +15398,27 @@ var hasIntegrationMethod = function(value) {
|
|
|
15091
15398
|
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
15092
15399
|
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
15093
15400
|
|
|
15401
|
+
/** Context revision and runtime scope delivered by an authorized Remote View host. */ var viewContextEventSchema = v3.z.object({
|
|
15402
|
+
type: v3.z.literal("view.context.changed"),
|
|
15403
|
+
data: v3.z.object({
|
|
15404
|
+
revision: v3.z.number().int().nonnegative(),
|
|
15405
|
+
runtimeScope: v3.z.object({
|
|
15406
|
+
projectId: v3.z.string().nullish(),
|
|
15407
|
+
conversationId: v3.z.string().nullish()
|
|
15408
|
+
})
|
|
15409
|
+
})
|
|
15410
|
+
}).transform(function(param) {
|
|
15411
|
+
var type = param.type, data = param.data;
|
|
15412
|
+
return {
|
|
15413
|
+
type: type,
|
|
15414
|
+
// Keep required envelope fields explicit in declarations built without strictNullChecks.
|
|
15415
|
+
data: {
|
|
15416
|
+
revision: data.revision,
|
|
15417
|
+
runtimeScope: data.runtimeScope
|
|
15418
|
+
}
|
|
15419
|
+
};
|
|
15420
|
+
});
|
|
15421
|
+
|
|
15094
15422
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
15095
15423
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
15096
15424
|
|
|
@@ -15666,6 +15994,9 @@ var notificationSourceSchema = v3.z.object({
|
|
|
15666
15994
|
assistantId: v3.z.string().uuid(),
|
|
15667
15995
|
conversationId: v3.z.string().uuid()
|
|
15668
15996
|
}).strict();
|
|
15997
|
+
var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
|
|
15998
|
+
threadId: v3.z.string().uuid().optional()
|
|
15999
|
+
});
|
|
15669
16000
|
var userNotificationSchema = v3.z.object({
|
|
15670
16001
|
id: v3.z.string().uuid(),
|
|
15671
16002
|
kind: v3.z.literal("agent.completed"),
|
|
@@ -15711,7 +16042,7 @@ var notificationOutboxPayloadSchema = v3.z.discriminatedUnion("type", [
|
|
|
15711
16042
|
}).strict(),
|
|
15712
16043
|
v3.z.object({
|
|
15713
16044
|
type: v3.z.literal("agent.completed"),
|
|
15714
|
-
source:
|
|
16045
|
+
source: scheduledNotificationOriginSchema
|
|
15715
16046
|
}).strict()
|
|
15716
16047
|
]);
|
|
15717
16048
|
// The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
|
|
@@ -15735,6 +16066,23 @@ function businessAreaRoleAllows(role, action) {
|
|
|
15735
16066
|
return action === "view" || (action === "publish" ? role !== "consumer" : role === "domain_admin");
|
|
15736
16067
|
}
|
|
15737
16068
|
|
|
16069
|
+
/** Opens a discovered resource through its native authorization adapter in the current Workbench scope. */ var WORKBENCH_RESOURCE_OPEN_COMMAND = "workbench.resource.open";
|
|
16070
|
+
|
|
16071
|
+
/** Public presentation metadata only. Renderers retain their own sandbox and URL policies. */ var iconDefinitionSchema = v3.z.object({
|
|
16072
|
+
type: v3.z.enum([
|
|
16073
|
+
"image",
|
|
16074
|
+
"svg",
|
|
16075
|
+
"font",
|
|
16076
|
+
"emoji",
|
|
16077
|
+
"lottie"
|
|
16078
|
+
]),
|
|
16079
|
+
value: v3.z.string().min(1).max(65536),
|
|
16080
|
+
color: v3.z.string().optional(),
|
|
16081
|
+
size: v3.z.number().finite().positive().optional(),
|
|
16082
|
+
alt: v3.z.string().optional(),
|
|
16083
|
+
style: v3.z.record(v3.z.string()).optional()
|
|
16084
|
+
});
|
|
16085
|
+
|
|
15738
16086
|
Object.defineProperty(exports, "createResourceCardContent", {
|
|
15739
16087
|
enumerable: true,
|
|
15740
16088
|
get: function () { return chatkitTypes.createResourceCardContent; }
|
|
@@ -15765,9 +16113,11 @@ exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
|
|
|
15765
16113
|
exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
|
|
15766
16114
|
exports.API_PRINCIPAL_USER_ID_HEADER = API_PRINCIPAL_USER_ID_HEADER;
|
|
15767
16115
|
exports.ARTIFACT_PRESENTATION_OPEN_COMMAND = ARTIFACT_PRESENTATION_OPEN_COMMAND;
|
|
16116
|
+
exports.ARTIFACT_USE_GRANT_MANAGE_COMMAND = ARTIFACT_USE_GRANT_MANAGE_COMMAND;
|
|
15768
16117
|
exports.ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = ASSISTANT_CHAT_SEND_MESSAGE_COMMAND;
|
|
15769
16118
|
exports.ASSISTANT_CITATION_OPEN_EVENT = ASSISTANT_CITATION_OPEN_EVENT;
|
|
15770
16119
|
exports.ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND = ASSISTANT_COMPOSER_APPEND_REFERENCES_COMMAND;
|
|
16120
|
+
exports.ASSISTANT_COMPOSER_INSERT_COMMAND = ASSISTANT_COMPOSER_INSERT_COMMAND;
|
|
15771
16121
|
exports.ASSISTANT_CONTENT_REVIEW_COMMAND = ASSISTANT_CONTENT_REVIEW_COMMAND;
|
|
15772
16122
|
exports.ASSISTANT_CONTEXT_SET_COMMAND = ASSISTANT_CONTEXT_SET_COMMAND;
|
|
15773
16123
|
exports.ASSISTANT_USER_PREFERENCES_VERSION = ASSISTANT_USER_PREFERENCES_VERSION;
|
|
@@ -15948,6 +16298,10 @@ exports.PLUGIN_RESOURCE_ERROR_CODE = PLUGIN_RESOURCE_ERROR_CODE;
|
|
|
15948
16298
|
exports.PLUGIN_RESOURCE_INSTALLATION_STATUS = PLUGIN_RESOURCE_INSTALLATION_STATUS;
|
|
15949
16299
|
exports.PLUGIN_RESOURCE_RUNTIME_TYPE = PLUGIN_RESOURCE_RUNTIME_TYPE;
|
|
15950
16300
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
16301
|
+
exports.PROJECT_CONFIGURATION_ACTIONS = PROJECT_CONFIGURATION_ACTIONS;
|
|
16302
|
+
exports.PROJECT_CONFIGURATION_ACTION_HANDLERS = PROJECT_CONFIGURATION_ACTION_HANDLERS;
|
|
16303
|
+
exports.PROJECT_CONFIGURATION_PROVIDER = PROJECT_CONFIGURATION_PROVIDER;
|
|
16304
|
+
exports.PROJECT_CONFIGURATION_VIEW = PROJECT_CONFIGURATION_VIEW;
|
|
15951
16305
|
exports.PROJECT_TASK_ICON_NAMES = PROJECT_TASK_ICON_NAMES;
|
|
15952
16306
|
exports.PermissionGroups = PermissionGroups;
|
|
15953
16307
|
exports.ROLE_PERMISSION_CATALOG = ROLE_PERMISSION_CATALOG;
|
|
@@ -15993,10 +16347,12 @@ exports.WORKBENCH_ASSISTANT_EXECUTION_TARGET = WORKBENCH_ASSISTANT_EXECUTION_TAR
|
|
|
15993
16347
|
exports.WORKBENCH_ASSISTANT_PROJECT_TARGET = WORKBENCH_ASSISTANT_PROJECT_TARGET;
|
|
15994
16348
|
exports.WORKBENCH_EXTENSION_VIEW_TARGET = WORKBENCH_EXTENSION_VIEW_TARGET;
|
|
15995
16349
|
exports.WORKBENCH_FILE_OPEN_COMMAND = WORKBENCH_FILE_OPEN_COMMAND;
|
|
16350
|
+
exports.WORKBENCH_GROUP_MESSAGE_TARGET = WORKBENCH_GROUP_MESSAGE_TARGET;
|
|
15996
16351
|
exports.WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET;
|
|
15997
16352
|
exports.WORKBENCH_NAVIGATION_OPEN_COMMAND = WORKBENCH_NAVIGATION_OPEN_COMMAND;
|
|
15998
16353
|
exports.WORKBENCH_PROJECT_APPLICATION_TARGET = WORKBENCH_PROJECT_APPLICATION_TARGET;
|
|
15999
16354
|
exports.WORKBENCH_PROJECT_PIPELINES_TARGET = WORKBENCH_PROJECT_PIPELINES_TARGET;
|
|
16355
|
+
exports.WORKBENCH_RESOURCE_OPEN_COMMAND = WORKBENCH_RESOURCE_OPEN_COMMAND;
|
|
16000
16356
|
exports.WORKBENCH_VIEW_OPEN_EVENT = WORKBENCH_VIEW_OPEN_EVENT;
|
|
16001
16357
|
exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
|
|
16002
16358
|
exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER;
|
|
@@ -16145,6 +16501,7 @@ exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
|
16145
16501
|
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
16146
16502
|
exports.getXpertWorkspaceVisibility = getXpertWorkspaceVisibility;
|
|
16147
16503
|
exports.hasEnabledKnowledgeRetrievalSource = hasEnabledKnowledgeRetrievalSource;
|
|
16504
|
+
exports.iconDefinitionSchema = iconDefinitionSchema;
|
|
16148
16505
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
16149
16506
|
exports.isAgentKey = isAgentKey;
|
|
16150
16507
|
exports.isAgentWorkflowNode = isAgentWorkflowNode;
|
|
@@ -16275,6 +16632,10 @@ exports.pipelineModelUsageStatisticsSchema = pipelineModelUsageStatisticsSchema;
|
|
|
16275
16632
|
exports.pipelineNodeNeedsHuman = pipelineNodeNeedsHuman;
|
|
16276
16633
|
exports.pipelineQueueStatistics = pipelineQueueStatistics;
|
|
16277
16634
|
exports.pipelineQueueStatisticsSchema = pipelineQueueStatisticsSchema;
|
|
16635
|
+
exports.projectConfigurationActionSchema = projectConfigurationActionSchema;
|
|
16636
|
+
exports.projectConfigurationSectionSchema = projectConfigurationSectionSchema;
|
|
16637
|
+
exports.projectConfigurationUpdateSchema = projectConfigurationUpdateSchema;
|
|
16638
|
+
exports.projectConfigurationValuesSchema = projectConfigurationValuesSchema;
|
|
16278
16639
|
exports.projectPipelineAnalytics = projectPipelineAnalytics;
|
|
16279
16640
|
exports.projectPipelineAnalyticsInputSchema = projectPipelineAnalyticsInputSchema;
|
|
16280
16641
|
exports.projectPipelineAnalyticsSchema = projectPipelineAnalyticsSchema;
|
|
@@ -16307,6 +16668,8 @@ exports.projectPipelineInstanceSchema = projectPipelineInstanceSchema;
|
|
|
16307
16668
|
exports.projectPipelineJsonSchema = projectPipelineJsonSchema;
|
|
16308
16669
|
exports.projectPipelineKeySchema = projectPipelineKeySchema;
|
|
16309
16670
|
exports.projectPipelineLaneSchema = projectPipelineLaneSchema;
|
|
16671
|
+
exports.projectPipelineModelBudgetIncreaseRecordSchema = projectPipelineModelBudgetIncreaseRecordSchema;
|
|
16672
|
+
exports.projectPipelineModelBudgetIncreaseSchema = projectPipelineModelBudgetIncreaseSchema;
|
|
16310
16673
|
exports.projectPipelineNativeDispatchSchema = projectPipelineNativeDispatchSchema;
|
|
16311
16674
|
exports.projectPipelineNativeModelBudgetSchema = projectPipelineNativeModelBudgetSchema;
|
|
16312
16675
|
exports.projectPipelineNativeModelBudgetStatusSchema = projectPipelineNativeModelBudgetStatusSchema;
|
|
@@ -16356,16 +16719,28 @@ exports.projectPipelineSubjectVersionSchema = projectPipelineSubjectVersionSchem
|
|
|
16356
16719
|
exports.projectPipelineTaskProjectionSchema = projectPipelineTaskProjectionSchema;
|
|
16357
16720
|
exports.projectPipelineWorkContextSchema = projectPipelineWorkContextSchema;
|
|
16358
16721
|
exports.projectPipelineWorkCountsSchema = projectPipelineWorkCountsSchema;
|
|
16722
|
+
exports.projectPluginDeploymentReceiptSchema = projectPluginDeploymentReceiptSchema;
|
|
16723
|
+
exports.projectPluginDeploymentRefs = projectPluginDeploymentRefs;
|
|
16724
|
+
exports.projectPluginDeploymentRequestSchema = projectPluginDeploymentRequestSchema;
|
|
16725
|
+
exports.projectTaskCandidatePathSchema = projectTaskCandidatePathSchema;
|
|
16726
|
+
exports.projectTaskConfigurationSchema = projectTaskConfigurationSchema;
|
|
16359
16727
|
exports.projectTaskDecisionInputSchema = projectTaskDecisionInputSchema;
|
|
16360
16728
|
exports.projectTaskDecisionSchema = projectTaskDecisionSchema;
|
|
16361
16729
|
exports.projectTaskDispatchInputSchema = projectTaskDispatchInputSchema;
|
|
16362
16730
|
exports.projectTaskDispatchReceiptSchema = projectTaskDispatchReceiptSchema;
|
|
16363
16731
|
exports.projectTaskDispatchToolInputSchema = projectTaskDispatchToolInputSchema;
|
|
16732
|
+
exports.projectTaskDurationSchema = projectTaskDurationSchema;
|
|
16733
|
+
exports.projectTaskEvidencePathSchema = projectTaskEvidencePathSchema;
|
|
16364
16734
|
exports.projectTaskEvidenceReferenceSchema = projectTaskEvidenceReferenceSchema;
|
|
16365
16735
|
exports.projectTaskExecutionContextSchema = projectTaskExecutionContextSchema;
|
|
16366
16736
|
exports.projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeSchema;
|
|
16367
16737
|
exports.projectTaskExecutionReferenceSchema = projectTaskExecutionReferenceSchema;
|
|
16738
|
+
exports.projectTaskExecutionReviewReportSchema = projectTaskExecutionReviewReportSchema;
|
|
16739
|
+
exports.projectTaskReviewFindingSchema = projectTaskReviewFindingSchema;
|
|
16368
16740
|
exports.projectTaskReviewReportSchema = projectTaskReviewReportSchema;
|
|
16741
|
+
exports.projectTaskReviewSubjectSchema = projectTaskReviewSubjectSchema;
|
|
16742
|
+
exports.projectTaskReviewerSchema = projectTaskReviewerSchema;
|
|
16743
|
+
exports.projectTaskReworkSchema = projectTaskReworkSchema;
|
|
16369
16744
|
exports.projectTaskSpecificationDigestSchema = projectTaskSpecificationDigestSchema;
|
|
16370
16745
|
exports.projectTaskSpecificationSchema = projectTaskSpecificationSchema;
|
|
16371
16746
|
exports.projectTaskSpecificationSnapshotSchema = projectTaskSpecificationSnapshotSchema;
|
|
@@ -16388,6 +16763,7 @@ exports.sandboxRuntimeEvidenceSchema = sandboxRuntimeEvidenceSchema;
|
|
|
16388
16763
|
exports.sandboxRuntimeTargetSchema = sandboxRuntimeTargetSchema;
|
|
16389
16764
|
exports.sandboxTargetsEqual = sandboxTargetsEqual;
|
|
16390
16765
|
exports.saveRoleDefaultsSchema = saveRoleDefaultsSchema;
|
|
16766
|
+
exports.scheduledNotificationOriginSchema = scheduledNotificationOriginSchema;
|
|
16391
16767
|
exports.selectedPipelineAttemptFacts = selectedPipelineAttemptFacts;
|
|
16392
16768
|
exports.setStateVariable = setStateVariable;
|
|
16393
16769
|
exports.shortTitle = shortTitle;
|
|
@@ -16427,6 +16803,7 @@ exports.uuid = uuid;
|
|
|
16427
16803
|
exports.validateProjectPipelineConfigurationForm = validateProjectPipelineConfigurationForm;
|
|
16428
16804
|
exports.validateProjectPipelineDefinition = validateProjectPipelineDefinition;
|
|
16429
16805
|
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
16806
|
+
exports.viewContextEventSchema = viewContextEventSchema;
|
|
16430
16807
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
16431
16808
|
exports.workspaceConnectorAuthorizationSchema = workspaceConnectorAuthorizationSchema;
|
|
16432
16809
|
exports.workspaceConnectorConnectPayloadSchema = workspaceConnectorConnectPayloadSchema;
|