@xpert-ai/contracts 3.34.0 → 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 +466 -107
- package/index.esm.js +443 -108
- package/package.json +2 -2
- package/src/ai/conversation-trail.model.d.ts +2 -2
- package/src/ai/execution-control-evidence.schema.d.ts +4 -4
- package/src/ai/index.d.ts +2 -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/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 +2 -2
- package/src/ai/project-pipeline/operation.schema.d.ts +40 -40
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +152 -0
- 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-task-runtime.model.d.ts +1329 -78
- package/src/ai/project-type-configuration.model.d.ts +48 -0
- 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/plugin-management.d.ts +13 -0
- package/src/plugin.d.ts +2 -0
- package/src/user-notification.schema.d.ts +29 -0
- package/src/view-extension/context-event.d.ts +66 -0
- package/src/view-extension/index.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$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,
|
|
@@ -1754,7 +1754,7 @@ exports.OrganizationDemoNetworkEnum = void 0;
|
|
|
1754
1754
|
resourceType: "conversation_snapshot"
|
|
1755
1755
|
};
|
|
1756
1756
|
|
|
1757
|
-
function _define_property$
|
|
1757
|
+
function _define_property$s(obj, key, value) {
|
|
1758
1758
|
if (key in obj) {
|
|
1759
1759
|
Object.defineProperty(obj, key, {
|
|
1760
1760
|
value: value,
|
|
@@ -1767,7 +1767,7 @@ function _define_property$r(obj, key, value) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
return obj;
|
|
1769
1769
|
}
|
|
1770
|
-
function _object_spread$
|
|
1770
|
+
function _object_spread$s(target) {
|
|
1771
1771
|
for(var i = 1; i < arguments.length; i++){
|
|
1772
1772
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1773
1773
|
var ownKeys = Object.keys(source);
|
|
@@ -1777,12 +1777,12 @@ function _object_spread$r(target) {
|
|
|
1777
1777
|
}));
|
|
1778
1778
|
}
|
|
1779
1779
|
ownKeys.forEach(function(key) {
|
|
1780
|
-
_define_property$
|
|
1780
|
+
_define_property$s(target, key, source[key]);
|
|
1781
1781
|
});
|
|
1782
1782
|
}
|
|
1783
1783
|
return target;
|
|
1784
1784
|
}
|
|
1785
|
-
function ownKeys$
|
|
1785
|
+
function ownKeys$l(object, enumerableOnly) {
|
|
1786
1786
|
var keys = Object.keys(object);
|
|
1787
1787
|
if (Object.getOwnPropertySymbols) {
|
|
1788
1788
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1790,12 +1790,12 @@ function ownKeys$k(object, enumerableOnly) {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
return keys;
|
|
1792
1792
|
}
|
|
1793
|
-
function _object_spread_props$
|
|
1793
|
+
function _object_spread_props$l(target, source) {
|
|
1794
1794
|
source = source != null ? source : {};
|
|
1795
1795
|
if (Object.getOwnPropertyDescriptors) {
|
|
1796
1796
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1797
1797
|
} else {
|
|
1798
|
-
ownKeys$
|
|
1798
|
+
ownKeys$l(Object(source)).forEach(function(key) {
|
|
1799
1799
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
@@ -1823,7 +1823,7 @@ function parseSelectionSet(value) {
|
|
|
1823
1823
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1824
1824
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1825
1825
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1826
|
-
return _object_spread$
|
|
1826
|
+
return _object_spread$s(_object_spread_props$l(_object_spread$s({}, value), {
|
|
1827
1827
|
skills: skills === undefined ? {
|
|
1828
1828
|
ids: []
|
|
1829
1829
|
} : skills,
|
|
@@ -1842,7 +1842,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1842
1842
|
var selection = parseSelectionSet(value);
|
|
1843
1843
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1844
1844
|
if (!selection || recommended === null) return null;
|
|
1845
|
-
return _object_spread$
|
|
1845
|
+
return _object_spread$s(_object_spread_props$l(_object_spread$s({}, selection), {
|
|
1846
1846
|
mode: "allowlist"
|
|
1847
1847
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1848
1848
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1894,7 +1894,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
|
-
return _object_spread_props$
|
|
1897
|
+
return _object_spread_props$l(_object_spread$s({}, value), {
|
|
1898
1898
|
type: "expert_scoped_capabilities",
|
|
1899
1899
|
version: 1,
|
|
1900
1900
|
defaults: defaults,
|
|
@@ -2026,7 +2026,7 @@ exports.ChatMessageStepCategory = void 0;
|
|
|
2026
2026
|
ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
2027
2027
|
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
2028
2028
|
|
|
2029
|
-
function _define_property$
|
|
2029
|
+
function _define_property$r(obj, key, value) {
|
|
2030
2030
|
if (key in obj) {
|
|
2031
2031
|
Object.defineProperty(obj, key, {
|
|
2032
2032
|
value: value,
|
|
@@ -2046,7 +2046,7 @@ function _instanceof$1(left, right) {
|
|
|
2046
2046
|
return left instanceof right;
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
function _object_spread$
|
|
2049
|
+
function _object_spread$r(target) {
|
|
2050
2050
|
for(var i = 1; i < arguments.length; i++){
|
|
2051
2051
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2052
2052
|
var ownKeys = Object.keys(source);
|
|
@@ -2056,7 +2056,7 @@ function _object_spread$q(target) {
|
|
|
2056
2056
|
}));
|
|
2057
2057
|
}
|
|
2058
2058
|
ownKeys.forEach(function(key) {
|
|
2059
|
-
_define_property$
|
|
2059
|
+
_define_property$r(target, key, source[key]);
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
2062
2062
|
return target;
|
|
@@ -2067,12 +2067,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
2067
2067
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
2068
2068
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
2069
2069
|
function createConversationTitleSummaryEvent(event) {
|
|
2070
|
-
return _object_spread$
|
|
2070
|
+
return _object_spread$r({
|
|
2071
2071
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
2072
2072
|
}, event);
|
|
2073
2073
|
}
|
|
2074
2074
|
function createFollowUpConsumedEvent(event) {
|
|
2075
|
-
return _object_spread$
|
|
2075
|
+
return _object_spread$r({
|
|
2076
2076
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
2077
2077
|
}, event);
|
|
2078
2078
|
}
|
|
@@ -2118,7 +2118,7 @@ function _array_with_holes$j(arr) {
|
|
|
2118
2118
|
function _array_without_holes$j(arr) {
|
|
2119
2119
|
if (Array.isArray(arr)) return _array_like_to_array$w(arr);
|
|
2120
2120
|
}
|
|
2121
|
-
function _define_property$
|
|
2121
|
+
function _define_property$q(obj, key, value) {
|
|
2122
2122
|
if (key in obj) {
|
|
2123
2123
|
Object.defineProperty(obj, key, {
|
|
2124
2124
|
value: value,
|
|
@@ -2164,7 +2164,7 @@ function _non_iterable_rest$j() {
|
|
|
2164
2164
|
function _non_iterable_spread$j() {
|
|
2165
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.");
|
|
2166
2166
|
}
|
|
2167
|
-
function _object_spread$
|
|
2167
|
+
function _object_spread$q(target) {
|
|
2168
2168
|
for(var i = 1; i < arguments.length; i++){
|
|
2169
2169
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2170
2170
|
var ownKeys = Object.keys(source);
|
|
@@ -2174,12 +2174,12 @@ function _object_spread$p(target) {
|
|
|
2174
2174
|
}));
|
|
2175
2175
|
}
|
|
2176
2176
|
ownKeys.forEach(function(key) {
|
|
2177
|
-
_define_property$
|
|
2177
|
+
_define_property$q(target, key, source[key]);
|
|
2178
2178
|
});
|
|
2179
2179
|
}
|
|
2180
2180
|
return target;
|
|
2181
2181
|
}
|
|
2182
|
-
function ownKeys$
|
|
2182
|
+
function ownKeys$k(object, enumerableOnly) {
|
|
2183
2183
|
var keys = Object.keys(object);
|
|
2184
2184
|
if (Object.getOwnPropertySymbols) {
|
|
2185
2185
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2187,12 +2187,12 @@ function ownKeys$j(object, enumerableOnly) {
|
|
|
2187
2187
|
}
|
|
2188
2188
|
return keys;
|
|
2189
2189
|
}
|
|
2190
|
-
function _object_spread_props$
|
|
2190
|
+
function _object_spread_props$k(target, source) {
|
|
2191
2191
|
source = source != null ? source : {};
|
|
2192
2192
|
if (Object.getOwnPropertyDescriptors) {
|
|
2193
2193
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2194
2194
|
} else {
|
|
2195
|
-
ownKeys$
|
|
2195
|
+
ownKeys$k(Object(source)).forEach(function(key) {
|
|
2196
2196
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
@@ -2311,7 +2311,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
2311
2311
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
2312
2312
|
return null;
|
|
2313
2313
|
}
|
|
2314
|
-
return _object_spread$
|
|
2314
|
+
return _object_spread$q({
|
|
2315
2315
|
version: 1
|
|
2316
2316
|
}, Object.keys(toolsets).length ? {
|
|
2317
2317
|
toolsets: toolsets
|
|
@@ -2389,8 +2389,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2389
2389
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledTools).concat([
|
|
2390
2390
|
normalizedToolName
|
|
2391
2391
|
]));
|
|
2392
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
2393
|
-
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;
|
|
2394
2394
|
if (sourceType === "toolset") {
|
|
2395
2395
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
2396
2396
|
if (!toolsetName) {
|
|
@@ -2406,14 +2406,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2406
2406
|
} else {
|
|
2407
2407
|
delete nextToolsets[normalizedNodeKey];
|
|
2408
2408
|
}
|
|
2409
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2409
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2410
2410
|
version: 1
|
|
2411
2411
|
}, Object.keys(nextToolsets).length ? {
|
|
2412
2412
|
toolsets: nextToolsets
|
|
2413
2413
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
2414
2414
|
middlewares: middlewares
|
|
2415
2415
|
} : {}, normalizedPreferences.skills ? {
|
|
2416
|
-
skills: _object_spread$
|
|
2416
|
+
skills: _object_spread$q({}, normalizedPreferences.skills)
|
|
2417
2417
|
} : {}));
|
|
2418
2418
|
}
|
|
2419
2419
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -2429,14 +2429,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
2429
2429
|
} else {
|
|
2430
2430
|
delete nextMiddlewares[normalizedNodeKey];
|
|
2431
2431
|
}
|
|
2432
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2432
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2433
2433
|
version: 1
|
|
2434
2434
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
2435
2435
|
toolsets: toolsets
|
|
2436
2436
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
2437
2437
|
middlewares: nextMiddlewares
|
|
2438
2438
|
} : {}, normalizedPreferences.skills ? {
|
|
2439
|
-
skills: _object_spread$
|
|
2439
|
+
skills: _object_spread$q({}, normalizedPreferences.skills)
|
|
2440
2440
|
} : {}));
|
|
2441
2441
|
}
|
|
2442
2442
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2454,7 +2454,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2454
2454
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$j(disabledSkillIds).concat([
|
|
2455
2455
|
normalizedSkillId
|
|
2456
2456
|
]));
|
|
2457
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2457
|
+
var skills = normalizedPreferences.skills ? _object_spread$q({}, normalizedPreferences.skills) : {};
|
|
2458
2458
|
if (nextDisabledSkillIds.length) {
|
|
2459
2459
|
skills[normalizedWorkspaceId] = {
|
|
2460
2460
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2463,12 +2463,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2463
2463
|
} else {
|
|
2464
2464
|
delete skills[normalizedWorkspaceId];
|
|
2465
2465
|
}
|
|
2466
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2466
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$q({
|
|
2467
2467
|
version: 1
|
|
2468
2468
|
}, normalizedPreferences.toolsets ? {
|
|
2469
|
-
toolsets: _object_spread$
|
|
2469
|
+
toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
|
|
2470
2470
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2471
|
-
middlewares: _object_spread$
|
|
2471
|
+
middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
|
|
2472
2472
|
} : {}, Object.keys(skills).length ? {
|
|
2473
2473
|
skills: skills
|
|
2474
2474
|
} : {}));
|
|
@@ -2486,14 +2486,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2486
2486
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2487
2487
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2488
2488
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2489
|
-
return _object_spread_props$
|
|
2489
|
+
return _object_spread_props$k(_object_spread$q({
|
|
2490
2490
|
version: 1
|
|
2491
2491
|
}, normalizedPreferences.toolsets ? {
|
|
2492
|
-
toolsets: _object_spread$
|
|
2492
|
+
toolsets: _object_spread$q({}, normalizedPreferences.toolsets)
|
|
2493
2493
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2494
|
-
middlewares: _object_spread$
|
|
2494
|
+
middlewares: _object_spread$q({}, normalizedPreferences.middlewares)
|
|
2495
2495
|
} : {}), {
|
|
2496
|
-
skills: _object_spread_props$
|
|
2496
|
+
skills: _object_spread_props$k(_object_spread$q({}, currentSkills), _define_property$q({}, normalizedWorkspaceId, {
|
|
2497
2497
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2498
2498
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2499
2499
|
}))
|
|
@@ -2825,7 +2825,7 @@ function _array_like_to_array$t(arr, len) {
|
|
|
2825
2825
|
function _array_without_holes$h(arr) {
|
|
2826
2826
|
if (Array.isArray(arr)) return _array_like_to_array$t(arr);
|
|
2827
2827
|
}
|
|
2828
|
-
function _define_property$
|
|
2828
|
+
function _define_property$p(obj, key, value) {
|
|
2829
2829
|
if (key in obj) {
|
|
2830
2830
|
Object.defineProperty(obj, key, {
|
|
2831
2831
|
value: value,
|
|
@@ -2844,7 +2844,7 @@ function _iterable_to_array$j(iter) {
|
|
|
2844
2844
|
function _non_iterable_spread$h() {
|
|
2845
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.");
|
|
2846
2846
|
}
|
|
2847
|
-
function _object_spread$
|
|
2847
|
+
function _object_spread$p(target) {
|
|
2848
2848
|
for(var i = 1; i < arguments.length; i++){
|
|
2849
2849
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2850
2850
|
var ownKeys = Object.keys(source);
|
|
@@ -2854,12 +2854,12 @@ function _object_spread$o(target) {
|
|
|
2854
2854
|
}));
|
|
2855
2855
|
}
|
|
2856
2856
|
ownKeys.forEach(function(key) {
|
|
2857
|
-
_define_property$
|
|
2857
|
+
_define_property$p(target, key, source[key]);
|
|
2858
2858
|
});
|
|
2859
2859
|
}
|
|
2860
2860
|
return target;
|
|
2861
2861
|
}
|
|
2862
|
-
function ownKeys$
|
|
2862
|
+
function ownKeys$j(object, enumerableOnly) {
|
|
2863
2863
|
var keys = Object.keys(object);
|
|
2864
2864
|
if (Object.getOwnPropertySymbols) {
|
|
2865
2865
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -2867,12 +2867,12 @@ function ownKeys$i(object, enumerableOnly) {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
return keys;
|
|
2869
2869
|
}
|
|
2870
|
-
function _object_spread_props$
|
|
2870
|
+
function _object_spread_props$j(target, source) {
|
|
2871
2871
|
source = source != null ? source : {};
|
|
2872
2872
|
if (Object.getOwnPropertyDescriptors) {
|
|
2873
2873
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2874
2874
|
} else {
|
|
2875
|
-
ownKeys$
|
|
2875
|
+
ownKeys$j(Object(source)).forEach(function(key) {
|
|
2876
2876
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2877
2877
|
});
|
|
2878
2878
|
}
|
|
@@ -2901,20 +2901,20 @@ var common$1 = {
|
|
|
2901
2901
|
maxConcurrency: positiveInteger.max(1000)
|
|
2902
2902
|
};
|
|
2903
2903
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2904
|
-
zod.z.object(_object_spread_props$
|
|
2904
|
+
zod.z.object(_object_spread_props$j(_object_spread$p({
|
|
2905
2905
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2906
2906
|
}, common$1), {
|
|
2907
2907
|
maxOutputTokens: positiveInteger,
|
|
2908
2908
|
defaultMaxTokens: positiveInteger,
|
|
2909
2909
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2910
2910
|
})).strict(),
|
|
2911
|
-
zod.z.object(_object_spread_props$
|
|
2911
|
+
zod.z.object(_object_spread_props$j(_object_spread$p({
|
|
2912
2912
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2913
2913
|
}, common$1), {
|
|
2914
2914
|
dimensions: positiveInteger.optional(),
|
|
2915
2915
|
batchSize: positiveInteger.max(2048)
|
|
2916
2916
|
})).strict(),
|
|
2917
|
-
zod.z.object(_object_spread$
|
|
2917
|
+
zod.z.object(_object_spread$p({
|
|
2918
2918
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2919
2919
|
}, common$1)).strict()
|
|
2920
2920
|
]).superRefine(function(value, ctx) {
|
|
@@ -2946,7 +2946,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2946
2946
|
};
|
|
2947
2947
|
switch(modelType){
|
|
2948
2948
|
case exports.AiModelTypeEnum.LLM:
|
|
2949
|
-
return _object_spread_props$
|
|
2949
|
+
return _object_spread_props$j(_object_spread$p({
|
|
2950
2950
|
modelType: modelType
|
|
2951
2951
|
}, common), {
|
|
2952
2952
|
maxOutputTokens: 2048,
|
|
@@ -2954,13 +2954,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2954
2954
|
features: []
|
|
2955
2955
|
});
|
|
2956
2956
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2957
|
-
return _object_spread_props$
|
|
2957
|
+
return _object_spread_props$j(_object_spread$p({
|
|
2958
2958
|
modelType: modelType
|
|
2959
2959
|
}, common), {
|
|
2960
2960
|
batchSize: DEFAULT_EMBEDDING_BATCH_SIZE
|
|
2961
2961
|
});
|
|
2962
2962
|
case exports.AiModelTypeEnum.RERANK:
|
|
2963
|
-
return _object_spread$
|
|
2963
|
+
return _object_spread$p({
|
|
2964
2964
|
modelType: modelType
|
|
2965
2965
|
}, common);
|
|
2966
2966
|
}
|
|
@@ -3573,7 +3573,7 @@ function workflowNodeIdentifier(node) {
|
|
|
3573
3573
|
return node.title || node.key;
|
|
3574
3574
|
}
|
|
3575
3575
|
|
|
3576
|
-
function _define_property$
|
|
3576
|
+
function _define_property$o(obj, key, value) {
|
|
3577
3577
|
if (key in obj) {
|
|
3578
3578
|
Object.defineProperty(obj, key, {
|
|
3579
3579
|
value: value,
|
|
@@ -3586,7 +3586,7 @@ function _define_property$n(obj, key, value) {
|
|
|
3586
3586
|
}
|
|
3587
3587
|
return obj;
|
|
3588
3588
|
}
|
|
3589
|
-
function _object_spread$
|
|
3589
|
+
function _object_spread$o(target) {
|
|
3590
3590
|
for(var i = 1; i < arguments.length; i++){
|
|
3591
3591
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3592
3592
|
var ownKeys = Object.keys(source);
|
|
@@ -3596,12 +3596,12 @@ function _object_spread$n(target) {
|
|
|
3596
3596
|
}));
|
|
3597
3597
|
}
|
|
3598
3598
|
ownKeys.forEach(function(key) {
|
|
3599
|
-
_define_property$
|
|
3599
|
+
_define_property$o(target, key, source[key]);
|
|
3600
3600
|
});
|
|
3601
3601
|
}
|
|
3602
3602
|
return target;
|
|
3603
3603
|
}
|
|
3604
|
-
function ownKeys$
|
|
3604
|
+
function ownKeys$i(object, enumerableOnly) {
|
|
3605
3605
|
var keys = Object.keys(object);
|
|
3606
3606
|
if (Object.getOwnPropertySymbols) {
|
|
3607
3607
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3609,12 +3609,12 @@ function ownKeys$h(object, enumerableOnly) {
|
|
|
3609
3609
|
}
|
|
3610
3610
|
return keys;
|
|
3611
3611
|
}
|
|
3612
|
-
function _object_spread_props$
|
|
3612
|
+
function _object_spread_props$i(target, source) {
|
|
3613
3613
|
source = source != null ? source : {};
|
|
3614
3614
|
if (Object.getOwnPropertyDescriptors) {
|
|
3615
3615
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3616
3616
|
} else {
|
|
3617
|
-
ownKeys$
|
|
3617
|
+
ownKeys$i(Object(source)).forEach(function(key) {
|
|
3618
3618
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3619
3619
|
});
|
|
3620
3620
|
}
|
|
@@ -3687,7 +3687,7 @@ function normalizeXpertAgentConfig(agentConfig) {
|
|
|
3687
3687
|
var _ref = agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}; _ref.maxConcurrency; var config = _object_without_properties$2(_ref, [
|
|
3688
3688
|
"maxConcurrency"
|
|
3689
3689
|
]);
|
|
3690
|
-
return _object_spread_props$
|
|
3690
|
+
return _object_spread_props$i(_object_spread$o({}, config), {
|
|
3691
3691
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3692
3692
|
});
|
|
3693
3693
|
}
|
|
@@ -3781,7 +3781,7 @@ function _array_like_to_array$s(arr, len) {
|
|
|
3781
3781
|
function _array_with_holes$h(arr) {
|
|
3782
3782
|
if (Array.isArray(arr)) return arr;
|
|
3783
3783
|
}
|
|
3784
|
-
function _define_property$
|
|
3784
|
+
function _define_property$n(obj, key, value) {
|
|
3785
3785
|
if (key in obj) {
|
|
3786
3786
|
Object.defineProperty(obj, key, {
|
|
3787
3787
|
value: value,
|
|
@@ -3821,7 +3821,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
3821
3821
|
function _non_iterable_rest$h() {
|
|
3822
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.");
|
|
3823
3823
|
}
|
|
3824
|
-
function _object_spread$
|
|
3824
|
+
function _object_spread$n(target) {
|
|
3825
3825
|
for(var i = 1; i < arguments.length; i++){
|
|
3826
3826
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3827
3827
|
var ownKeys = Object.keys(source);
|
|
@@ -3831,12 +3831,12 @@ function _object_spread$m(target) {
|
|
|
3831
3831
|
}));
|
|
3832
3832
|
}
|
|
3833
3833
|
ownKeys.forEach(function(key) {
|
|
3834
|
-
_define_property$
|
|
3834
|
+
_define_property$n(target, key, source[key]);
|
|
3835
3835
|
});
|
|
3836
3836
|
}
|
|
3837
3837
|
return target;
|
|
3838
3838
|
}
|
|
3839
|
-
function ownKeys$
|
|
3839
|
+
function ownKeys$h(object, enumerableOnly) {
|
|
3840
3840
|
var keys = Object.keys(object);
|
|
3841
3841
|
if (Object.getOwnPropertySymbols) {
|
|
3842
3842
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3844,12 +3844,12 @@ function ownKeys$g(object, enumerableOnly) {
|
|
|
3844
3844
|
}
|
|
3845
3845
|
return keys;
|
|
3846
3846
|
}
|
|
3847
|
-
function _object_spread_props$
|
|
3847
|
+
function _object_spread_props$h(target, source) {
|
|
3848
3848
|
source = source != null ? source : {};
|
|
3849
3849
|
if (Object.getOwnPropertyDescriptors) {
|
|
3850
3850
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3851
3851
|
} else {
|
|
3852
|
-
ownKeys$
|
|
3852
|
+
ownKeys$h(Object(source)).forEach(function(key) {
|
|
3853
3853
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3854
3854
|
});
|
|
3855
3855
|
}
|
|
@@ -3949,7 +3949,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3949
3949
|
var _varName_split = _sliced_to_array$f(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3950
3950
|
if (variableName) {
|
|
3951
3951
|
var _state_agentChannelName;
|
|
3952
|
-
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));
|
|
3953
3953
|
} else {
|
|
3954
3954
|
state[agentChannelName] = value;
|
|
3955
3955
|
}
|
|
@@ -4040,7 +4040,7 @@ function getWorkflowTriggers(graph, from) {
|
|
|
4040
4040
|
});
|
|
4041
4041
|
}
|
|
4042
4042
|
|
|
4043
|
-
function _define_property$
|
|
4043
|
+
function _define_property$m(obj, key, value) {
|
|
4044
4044
|
if (key in obj) {
|
|
4045
4045
|
Object.defineProperty(obj, key, {
|
|
4046
4046
|
value: value,
|
|
@@ -4053,7 +4053,7 @@ function _define_property$l(obj, key, value) {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
return obj;
|
|
4055
4055
|
}
|
|
4056
|
-
function _object_spread$
|
|
4056
|
+
function _object_spread$m(target) {
|
|
4057
4057
|
for(var i = 1; i < arguments.length; i++){
|
|
4058
4058
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4059
4059
|
var ownKeys = Object.keys(source);
|
|
@@ -4063,12 +4063,12 @@ function _object_spread$l(target) {
|
|
|
4063
4063
|
}));
|
|
4064
4064
|
}
|
|
4065
4065
|
ownKeys.forEach(function(key) {
|
|
4066
|
-
_define_property$
|
|
4066
|
+
_define_property$m(target, key, source[key]);
|
|
4067
4067
|
});
|
|
4068
4068
|
}
|
|
4069
4069
|
return target;
|
|
4070
4070
|
}
|
|
4071
|
-
function ownKeys$
|
|
4071
|
+
function ownKeys$g(object, enumerableOnly) {
|
|
4072
4072
|
var keys = Object.keys(object);
|
|
4073
4073
|
if (Object.getOwnPropertySymbols) {
|
|
4074
4074
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -4076,12 +4076,12 @@ function ownKeys$f(object, enumerableOnly) {
|
|
|
4076
4076
|
}
|
|
4077
4077
|
return keys;
|
|
4078
4078
|
}
|
|
4079
|
-
function _object_spread_props$
|
|
4079
|
+
function _object_spread_props$g(target, source) {
|
|
4080
4080
|
source = source != null ? source : {};
|
|
4081
4081
|
if (Object.getOwnPropertyDescriptors) {
|
|
4082
4082
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
4083
4083
|
} else {
|
|
4084
|
-
ownKeys$
|
|
4084
|
+
ownKeys$g(Object(source)).forEach(function(key) {
|
|
4085
4085
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
4086
4086
|
});
|
|
4087
4087
|
}
|
|
@@ -4169,11 +4169,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
4169
4169
|
return candidate === requestedMode;
|
|
4170
4170
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
4171
4171
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
4172
|
-
return _object_spread_props$
|
|
4172
|
+
return _object_spread_props$g(_object_spread$m({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
4173
4173
|
mode: mode,
|
|
4174
|
-
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 : {}), {
|
|
4175
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,
|
|
4176
|
-
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 : {}), {
|
|
4177
4177
|
graph: 0
|
|
4178
4178
|
})
|
|
4179
4179
|
})
|
|
@@ -4342,7 +4342,7 @@ function _array_like_to_array$q(arr, len) {
|
|
|
4342
4342
|
function _array_without_holes$f(arr) {
|
|
4343
4343
|
if (Array.isArray(arr)) return _array_like_to_array$q(arr);
|
|
4344
4344
|
}
|
|
4345
|
-
function _define_property$
|
|
4345
|
+
function _define_property$l(obj, key, value) {
|
|
4346
4346
|
if (key in obj) {
|
|
4347
4347
|
Object.defineProperty(obj, key, {
|
|
4348
4348
|
value: value,
|
|
@@ -4361,7 +4361,7 @@ function _iterable_to_array$h(iter) {
|
|
|
4361
4361
|
function _non_iterable_spread$f() {
|
|
4362
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.");
|
|
4363
4363
|
}
|
|
4364
|
-
function _object_spread$
|
|
4364
|
+
function _object_spread$l(target) {
|
|
4365
4365
|
for(var i = 1; i < arguments.length; i++){
|
|
4366
4366
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4367
4367
|
var ownKeys = Object.keys(source);
|
|
@@ -4371,7 +4371,7 @@ function _object_spread$k(target) {
|
|
|
4371
4371
|
}));
|
|
4372
4372
|
}
|
|
4373
4373
|
ownKeys.forEach(function(key) {
|
|
4374
|
-
_define_property$
|
|
4374
|
+
_define_property$l(target, key, source[key]);
|
|
4375
4375
|
});
|
|
4376
4376
|
}
|
|
4377
4377
|
return target;
|
|
@@ -4389,12 +4389,12 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
4391
4391
|
if (!config) return {};
|
|
4392
|
-
return _object_spread$
|
|
4393
|
-
spreadsheet: _object_spread$
|
|
4392
|
+
return _object_spread$l({}, config.spreadsheet ? {
|
|
4393
|
+
spreadsheet: _object_spread$l({}, config.spreadsheet)
|
|
4394
4394
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
4395
4395
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
4396
4396
|
} : {}, config.questionGeneration ? {
|
|
4397
|
-
questionGeneration: _object_spread$
|
|
4397
|
+
questionGeneration: _object_spread$l({}, config.questionGeneration)
|
|
4398
4398
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
4399
4399
|
chunkLanguageHint: config.chunkLanguageHint
|
|
4400
4400
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -4408,7 +4408,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4408
4408
|
} : {}, config.textSplitterType ? {
|
|
4409
4409
|
textSplitterType: config.textSplitterType
|
|
4410
4410
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
4411
|
-
textSplitter: _object_spread$
|
|
4411
|
+
textSplitter: _object_spread$l({}, config.chunkSize != null ? {
|
|
4412
4412
|
chunkSize: config.chunkSize
|
|
4413
4413
|
} : {}, config.chunkOverlap != null ? {
|
|
4414
4414
|
chunkOverlap: config.chunkOverlap
|
|
@@ -4420,7 +4420,7 @@ function _unsupported_iterable_to_array$q(o, minLen) {
|
|
|
4420
4420
|
} : {}, config.imageUnderstandingType ? {
|
|
4421
4421
|
imageUnderstandingType: config.imageUnderstandingType
|
|
4422
4422
|
} : {}, config.imageUnderstanding ? {
|
|
4423
|
-
imageUnderstanding: _object_spread$
|
|
4423
|
+
imageUnderstanding: _object_spread$l({}, config.imageUnderstanding)
|
|
4424
4424
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
4425
4425
|
}
|
|
4426
4426
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -4485,7 +4485,7 @@ function genPipelineKnowledgeBaseKey() {
|
|
|
4485
4485
|
return letterStartSUID("KnowledgeBase_");
|
|
4486
4486
|
}
|
|
4487
4487
|
|
|
4488
|
-
function _define_property$
|
|
4488
|
+
function _define_property$k(obj, key, value) {
|
|
4489
4489
|
if (key in obj) {
|
|
4490
4490
|
Object.defineProperty(obj, key, {
|
|
4491
4491
|
value: value,
|
|
@@ -4498,7 +4498,7 @@ function _define_property$j(obj, key, value) {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
return obj;
|
|
4500
4500
|
}
|
|
4501
|
-
function _object_spread$
|
|
4501
|
+
function _object_spread$k(target) {
|
|
4502
4502
|
for(var i = 1; i < arguments.length; i++){
|
|
4503
4503
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4504
4504
|
var ownKeys = Object.keys(source);
|
|
@@ -4508,7 +4508,7 @@ function _object_spread$j(target) {
|
|
|
4508
4508
|
}));
|
|
4509
4509
|
}
|
|
4510
4510
|
ownKeys.forEach(function(key) {
|
|
4511
|
-
_define_property$
|
|
4511
|
+
_define_property$k(target, key, source[key]);
|
|
4512
4512
|
});
|
|
4513
4513
|
}
|
|
4514
4514
|
return target;
|
|
@@ -4528,7 +4528,7 @@ function _object_spread$j(target) {
|
|
|
4528
4528
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4529
4529
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4530
4530
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4531
|
-
var KDocumentSourceType = _object_spread$
|
|
4531
|
+
var KDocumentSourceType = _object_spread$k({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4532
4532
|
/**
|
|
4533
4533
|
* Document type category, determine how to process the document.
|
|
4534
4534
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -5414,7 +5414,7 @@ function _array_like_to_array$o(arr, len) {
|
|
|
5414
5414
|
function _array_without_holes$d(arr) {
|
|
5415
5415
|
if (Array.isArray(arr)) return _array_like_to_array$o(arr);
|
|
5416
5416
|
}
|
|
5417
|
-
function _define_property$
|
|
5417
|
+
function _define_property$j(obj, key, value) {
|
|
5418
5418
|
if (key in obj) {
|
|
5419
5419
|
Object.defineProperty(obj, key, {
|
|
5420
5420
|
value: value,
|
|
@@ -5433,7 +5433,7 @@ function _iterable_to_array$f(iter) {
|
|
|
5433
5433
|
function _non_iterable_spread$d() {
|
|
5434
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.");
|
|
5435
5435
|
}
|
|
5436
|
-
function _object_spread$
|
|
5436
|
+
function _object_spread$j(target) {
|
|
5437
5437
|
for(var i = 1; i < arguments.length; i++){
|
|
5438
5438
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5439
5439
|
var ownKeys = Object.keys(source);
|
|
@@ -5443,12 +5443,12 @@ function _object_spread$i(target) {
|
|
|
5443
5443
|
}));
|
|
5444
5444
|
}
|
|
5445
5445
|
ownKeys.forEach(function(key) {
|
|
5446
|
-
_define_property$
|
|
5446
|
+
_define_property$j(target, key, source[key]);
|
|
5447
5447
|
});
|
|
5448
5448
|
}
|
|
5449
5449
|
return target;
|
|
5450
5450
|
}
|
|
5451
|
-
function ownKeys$
|
|
5451
|
+
function ownKeys$f(object, enumerableOnly) {
|
|
5452
5452
|
var keys = Object.keys(object);
|
|
5453
5453
|
if (Object.getOwnPropertySymbols) {
|
|
5454
5454
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -5456,12 +5456,12 @@ function ownKeys$e(object, enumerableOnly) {
|
|
|
5456
5456
|
}
|
|
5457
5457
|
return keys;
|
|
5458
5458
|
}
|
|
5459
|
-
function _object_spread_props$
|
|
5459
|
+
function _object_spread_props$f(target, source) {
|
|
5460
5460
|
source = source != null ? source : {};
|
|
5461
5461
|
if (Object.getOwnPropertyDescriptors) {
|
|
5462
5462
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
5463
5463
|
} else {
|
|
5464
|
-
ownKeys$
|
|
5464
|
+
ownKeys$f(Object(source)).forEach(function(key) {
|
|
5465
5465
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5466
5466
|
});
|
|
5467
5467
|
}
|
|
@@ -5542,7 +5542,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
5542
5542
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
5543
5543
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
5544
5544
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
5545
|
-
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 : {}), {
|
|
5546
5546
|
id: xpert.id,
|
|
5547
5547
|
tenantId: xpert.tenantId,
|
|
5548
5548
|
organizationId: xpert.organizationId,
|
|
@@ -5826,9 +5826,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5826
5826
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5827
5827
|
replacedNode = true;
|
|
5828
5828
|
var _node_entity;
|
|
5829
|
-
return _object_spread_props$
|
|
5829
|
+
return _object_spread_props$f(_object_spread$j({}, node), {
|
|
5830
5830
|
key: targetKey,
|
|
5831
|
-
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), {
|
|
5832
5832
|
key: targetKey
|
|
5833
5833
|
})
|
|
5834
5834
|
});
|
|
@@ -5844,17 +5844,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5844
5844
|
if (from === connection.from && to === connection.to) {
|
|
5845
5845
|
return connection;
|
|
5846
5846
|
}
|
|
5847
|
-
return _object_spread_props$
|
|
5847
|
+
return _object_spread_props$f(_object_spread$j({}, connection), {
|
|
5848
5848
|
from: from,
|
|
5849
5849
|
to: to,
|
|
5850
5850
|
key: "".concat(from, "/").concat(to)
|
|
5851
5851
|
});
|
|
5852
5852
|
});
|
|
5853
|
-
return _object_spread_props$
|
|
5854
|
-
team: draft.team ? _object_spread_props$
|
|
5855
|
-
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), {
|
|
5856
5856
|
key: targetKey
|
|
5857
|
-
}) : _object_spread_props$
|
|
5857
|
+
}) : _object_spread_props$f(_object_spread$j({}, agent), {
|
|
5858
5858
|
key: targetKey
|
|
5859
5859
|
})
|
|
5860
5860
|
}) : draft.team,
|
|
@@ -6002,6 +6002,148 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
6002
6002
|
projectTypeKey: "space"
|
|
6003
6003
|
};
|
|
6004
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
|
+
|
|
6005
6147
|
/**
|
|
6006
6148
|
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
6007
6149
|
* preserving explicit chunkIndex order whenever it is available.
|
|
@@ -7807,18 +7949,71 @@ var projectTaskSpecificationDigestSchema = v3.z.string().regex(/^sha256:[a-f0-9]
|
|
|
7807
7949
|
digest: projectTaskSpecificationDigestSchema
|
|
7808
7950
|
}).strict()
|
|
7809
7951
|
]);
|
|
7810
|
-
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", [
|
|
7811
7976
|
v3.z.object({
|
|
7812
|
-
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()
|
|
7813
7984
|
}).strict(),
|
|
7814
7985
|
v3.z.object({
|
|
7815
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(),
|
|
7816
7992
|
implementationExecutionId: v3.z.string().uuid(),
|
|
7993
|
+
implementationTaskId: v3.z.string().uuid().optional(),
|
|
7817
7994
|
implementationInvocationId: v3.z.string().uuid(),
|
|
7818
7995
|
specificationDigest: projectTaskSpecificationDigestSchema,
|
|
7819
7996
|
evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64)
|
|
7820
7997
|
}).strict()
|
|
7821
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);
|
|
7822
8017
|
var projectTaskExecutionReferenceSchema = v3.z.object({
|
|
7823
8018
|
projectId: v3.z.string().uuid(),
|
|
7824
8019
|
projectTaskId: v3.z.string().uuid(),
|
|
@@ -7862,6 +8057,7 @@ var projectTaskExecutionReferenceSchema = v3.z.object({
|
|
|
7862
8057
|
participantId: v3.z.string().uuid()
|
|
7863
8058
|
}).strict().optional(),
|
|
7864
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."),
|
|
7865
8061
|
delivery: agentOutputDeliverySchema.optional(),
|
|
7866
8062
|
instructions: v3.z.string().trim().max(16000).default("")
|
|
7867
8063
|
}).strict();
|
|
@@ -7871,8 +8067,17 @@ var hasOneDispatchTarget = function(input) {
|
|
|
7871
8067
|
var projectTaskDispatchInputSchema = projectTaskDispatchFieldsSchema.refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
7872
8068
|
var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
7873
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()
|
|
7874
8079
|
}).refine(hasOneDispatchTarget, "Choose exactly one Runtime binding or group member");
|
|
7875
|
-
/** 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({
|
|
7876
8081
|
version: v3.z.literal(1),
|
|
7877
8082
|
verdict: v3.z.enum([
|
|
7878
8083
|
"pass",
|
|
@@ -7885,6 +8090,72 @@ var projectTaskDispatchToolInputSchema = projectTaskDispatchFieldsSchema.omit({
|
|
|
7885
8090
|
findings: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64),
|
|
7886
8091
|
limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
|
|
7887
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
|
+
]);
|
|
7888
8159
|
var projectTaskDecisionInputSchema = v3.z.object({
|
|
7889
8160
|
requestId: v3.z.string().uuid(),
|
|
7890
8161
|
taskId: v3.z.string().uuid(),
|
|
@@ -8891,6 +9162,19 @@ var projectPipelineDefinitionSchema = projectPipelineDefinitionShapeSchema.super
|
|
|
8891
9162
|
]
|
|
8892
9163
|
});
|
|
8893
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();
|
|
8894
9178
|
var projectPipelineNativeModelBudgetStatusSchema = v3.z.object({
|
|
8895
9179
|
scope: v3.z.literal("instance_native_llm"),
|
|
8896
9180
|
policy: projectPipelineNativeModelBudgetSchema,
|
|
@@ -12866,6 +13150,33 @@ var projectPipelineContributionSchema = v3.z.object({
|
|
|
12866
13150
|
});
|
|
12867
13151
|
});
|
|
12868
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
|
+
|
|
12869
13180
|
var templateDependencyVersionsSchema = zod.z.array(zod.z.object({
|
|
12870
13181
|
pluginName: zod.z.string().min(1).max(214),
|
|
12871
13182
|
version: zod.z.string().min(1).max(100)
|
|
@@ -15087,6 +15398,27 @@ var hasIntegrationMethod = function(value) {
|
|
|
15087
15398
|
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
15088
15399
|
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
15089
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
|
+
|
|
15090
15422
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
15091
15423
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
15092
15424
|
|
|
@@ -15662,6 +15994,9 @@ var notificationSourceSchema = v3.z.object({
|
|
|
15662
15994
|
assistantId: v3.z.string().uuid(),
|
|
15663
15995
|
conversationId: v3.z.string().uuid()
|
|
15664
15996
|
}).strict();
|
|
15997
|
+
var scheduledNotificationOriginSchema = notificationSourceSchema.extend({
|
|
15998
|
+
threadId: v3.z.string().uuid().optional()
|
|
15999
|
+
});
|
|
15665
16000
|
var userNotificationSchema = v3.z.object({
|
|
15666
16001
|
id: v3.z.string().uuid(),
|
|
15667
16002
|
kind: v3.z.literal("agent.completed"),
|
|
@@ -15707,7 +16042,7 @@ var notificationOutboxPayloadSchema = v3.z.discriminatedUnion("type", [
|
|
|
15707
16042
|
}).strict(),
|
|
15708
16043
|
v3.z.object({
|
|
15709
16044
|
type: v3.z.literal("agent.completed"),
|
|
15710
|
-
source:
|
|
16045
|
+
source: scheduledNotificationOriginSchema
|
|
15711
16046
|
}).strict()
|
|
15712
16047
|
]);
|
|
15713
16048
|
// The contracts declaration build uses strictNullChecks=false, which makes Zod's emitted
|
|
@@ -15963,6 +16298,10 @@ exports.PLUGIN_RESOURCE_ERROR_CODE = PLUGIN_RESOURCE_ERROR_CODE;
|
|
|
15963
16298
|
exports.PLUGIN_RESOURCE_INSTALLATION_STATUS = PLUGIN_RESOURCE_INSTALLATION_STATUS;
|
|
15964
16299
|
exports.PLUGIN_RESOURCE_RUNTIME_TYPE = PLUGIN_RESOURCE_RUNTIME_TYPE;
|
|
15965
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;
|
|
15966
16305
|
exports.PROJECT_TASK_ICON_NAMES = PROJECT_TASK_ICON_NAMES;
|
|
15967
16306
|
exports.PermissionGroups = PermissionGroups;
|
|
15968
16307
|
exports.ROLE_PERMISSION_CATALOG = ROLE_PERMISSION_CATALOG;
|
|
@@ -16293,6 +16632,10 @@ exports.pipelineModelUsageStatisticsSchema = pipelineModelUsageStatisticsSchema;
|
|
|
16293
16632
|
exports.pipelineNodeNeedsHuman = pipelineNodeNeedsHuman;
|
|
16294
16633
|
exports.pipelineQueueStatistics = pipelineQueueStatistics;
|
|
16295
16634
|
exports.pipelineQueueStatisticsSchema = pipelineQueueStatisticsSchema;
|
|
16635
|
+
exports.projectConfigurationActionSchema = projectConfigurationActionSchema;
|
|
16636
|
+
exports.projectConfigurationSectionSchema = projectConfigurationSectionSchema;
|
|
16637
|
+
exports.projectConfigurationUpdateSchema = projectConfigurationUpdateSchema;
|
|
16638
|
+
exports.projectConfigurationValuesSchema = projectConfigurationValuesSchema;
|
|
16296
16639
|
exports.projectPipelineAnalytics = projectPipelineAnalytics;
|
|
16297
16640
|
exports.projectPipelineAnalyticsInputSchema = projectPipelineAnalyticsInputSchema;
|
|
16298
16641
|
exports.projectPipelineAnalyticsSchema = projectPipelineAnalyticsSchema;
|
|
@@ -16325,6 +16668,8 @@ exports.projectPipelineInstanceSchema = projectPipelineInstanceSchema;
|
|
|
16325
16668
|
exports.projectPipelineJsonSchema = projectPipelineJsonSchema;
|
|
16326
16669
|
exports.projectPipelineKeySchema = projectPipelineKeySchema;
|
|
16327
16670
|
exports.projectPipelineLaneSchema = projectPipelineLaneSchema;
|
|
16671
|
+
exports.projectPipelineModelBudgetIncreaseRecordSchema = projectPipelineModelBudgetIncreaseRecordSchema;
|
|
16672
|
+
exports.projectPipelineModelBudgetIncreaseSchema = projectPipelineModelBudgetIncreaseSchema;
|
|
16328
16673
|
exports.projectPipelineNativeDispatchSchema = projectPipelineNativeDispatchSchema;
|
|
16329
16674
|
exports.projectPipelineNativeModelBudgetSchema = projectPipelineNativeModelBudgetSchema;
|
|
16330
16675
|
exports.projectPipelineNativeModelBudgetStatusSchema = projectPipelineNativeModelBudgetStatusSchema;
|
|
@@ -16374,16 +16719,28 @@ exports.projectPipelineSubjectVersionSchema = projectPipelineSubjectVersionSchem
|
|
|
16374
16719
|
exports.projectPipelineTaskProjectionSchema = projectPipelineTaskProjectionSchema;
|
|
16375
16720
|
exports.projectPipelineWorkContextSchema = projectPipelineWorkContextSchema;
|
|
16376
16721
|
exports.projectPipelineWorkCountsSchema = projectPipelineWorkCountsSchema;
|
|
16722
|
+
exports.projectPluginDeploymentReceiptSchema = projectPluginDeploymentReceiptSchema;
|
|
16723
|
+
exports.projectPluginDeploymentRefs = projectPluginDeploymentRefs;
|
|
16724
|
+
exports.projectPluginDeploymentRequestSchema = projectPluginDeploymentRequestSchema;
|
|
16725
|
+
exports.projectTaskCandidatePathSchema = projectTaskCandidatePathSchema;
|
|
16726
|
+
exports.projectTaskConfigurationSchema = projectTaskConfigurationSchema;
|
|
16377
16727
|
exports.projectTaskDecisionInputSchema = projectTaskDecisionInputSchema;
|
|
16378
16728
|
exports.projectTaskDecisionSchema = projectTaskDecisionSchema;
|
|
16379
16729
|
exports.projectTaskDispatchInputSchema = projectTaskDispatchInputSchema;
|
|
16380
16730
|
exports.projectTaskDispatchReceiptSchema = projectTaskDispatchReceiptSchema;
|
|
16381
16731
|
exports.projectTaskDispatchToolInputSchema = projectTaskDispatchToolInputSchema;
|
|
16732
|
+
exports.projectTaskDurationSchema = projectTaskDurationSchema;
|
|
16733
|
+
exports.projectTaskEvidencePathSchema = projectTaskEvidencePathSchema;
|
|
16382
16734
|
exports.projectTaskEvidenceReferenceSchema = projectTaskEvidenceReferenceSchema;
|
|
16383
16735
|
exports.projectTaskExecutionContextSchema = projectTaskExecutionContextSchema;
|
|
16384
16736
|
exports.projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeSchema;
|
|
16385
16737
|
exports.projectTaskExecutionReferenceSchema = projectTaskExecutionReferenceSchema;
|
|
16738
|
+
exports.projectTaskExecutionReviewReportSchema = projectTaskExecutionReviewReportSchema;
|
|
16739
|
+
exports.projectTaskReviewFindingSchema = projectTaskReviewFindingSchema;
|
|
16386
16740
|
exports.projectTaskReviewReportSchema = projectTaskReviewReportSchema;
|
|
16741
|
+
exports.projectTaskReviewSubjectSchema = projectTaskReviewSubjectSchema;
|
|
16742
|
+
exports.projectTaskReviewerSchema = projectTaskReviewerSchema;
|
|
16743
|
+
exports.projectTaskReworkSchema = projectTaskReworkSchema;
|
|
16387
16744
|
exports.projectTaskSpecificationDigestSchema = projectTaskSpecificationDigestSchema;
|
|
16388
16745
|
exports.projectTaskSpecificationSchema = projectTaskSpecificationSchema;
|
|
16389
16746
|
exports.projectTaskSpecificationSnapshotSchema = projectTaskSpecificationSnapshotSchema;
|
|
@@ -16406,6 +16763,7 @@ exports.sandboxRuntimeEvidenceSchema = sandboxRuntimeEvidenceSchema;
|
|
|
16406
16763
|
exports.sandboxRuntimeTargetSchema = sandboxRuntimeTargetSchema;
|
|
16407
16764
|
exports.sandboxTargetsEqual = sandboxTargetsEqual;
|
|
16408
16765
|
exports.saveRoleDefaultsSchema = saveRoleDefaultsSchema;
|
|
16766
|
+
exports.scheduledNotificationOriginSchema = scheduledNotificationOriginSchema;
|
|
16409
16767
|
exports.selectedPipelineAttemptFacts = selectedPipelineAttemptFacts;
|
|
16410
16768
|
exports.setStateVariable = setStateVariable;
|
|
16411
16769
|
exports.shortTitle = shortTitle;
|
|
@@ -16445,6 +16803,7 @@ exports.uuid = uuid;
|
|
|
16445
16803
|
exports.validateProjectPipelineConfigurationForm = validateProjectPipelineConfigurationForm;
|
|
16446
16804
|
exports.validateProjectPipelineDefinition = validateProjectPipelineDefinition;
|
|
16447
16805
|
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
16806
|
+
exports.viewContextEventSchema = viewContextEventSchema;
|
|
16448
16807
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
16449
16808
|
exports.workspaceConnectorAuthorizationSchema = workspaceConnectorAuthorizationSchema;
|
|
16450
16809
|
exports.workspaceConnectorConnectPayloadSchema = workspaceConnectorConnectPayloadSchema;
|