@xpert-ai/contracts 3.25.0 → 3.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +215 -213
- package/index.esm.js +212 -213
- package/package.json +2 -2
- package/src/ai/assistant-template-manifest.model.d.ts +114 -114
- package/src/ai/chat.model.d.ts +3 -1
- package/src/ai/execution-activity.model.d.ts +30 -30
- package/src/ai/middleware.model.d.ts +3 -0
- package/src/ai/model-execution.model.d.ts +1 -1
- package/src/ai/project-pipeline/command-capability.schema.d.ts +19 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +33 -4
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/template-installation.model.d.ts +6 -4
- package/src/ai/template-lifecycle.model.d.ts +4 -4
- package/src/ai/xpert-template.model.d.ts +1 -1
- package/src/analytics-definition.model.d.ts +45 -0
- package/src/analytics-query.model.d.ts +8 -16
- package/src/analytics-source.model.d.ts +16 -0
- package/src/index.d.ts +2 -0
- package/src/integration/github.d.ts +4 -6
- package/src/integration/index.d.ts +1 -0
- package/src/view-extension/index.d.ts +1 -0
- package/src/view-extension/workspace-connector.d.ts +42 -0
package/index.cjs.js
CHANGED
|
@@ -1327,7 +1327,7 @@ function _define_property$p(obj, key, value) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
return obj;
|
|
1329
1329
|
}
|
|
1330
|
-
function _object_spread$
|
|
1330
|
+
function _object_spread$p(target) {
|
|
1331
1331
|
for(var i = 1; i < arguments.length; i++){
|
|
1332
1332
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1333
1333
|
var ownKeys = Object.keys(source);
|
|
@@ -1383,7 +1383,7 @@ function parseSelectionSet(value) {
|
|
|
1383
1383
|
if (plugins !== undefined && (!isObject(plugins) || !("nodeKeys" in plugins) || !isStringList(plugins.nodeKeys))) return null;
|
|
1384
1384
|
if (subAgents !== undefined && (!isObject(subAgents) || !("nodeKeys" in subAgents) || !isStringList(subAgents.nodeKeys))) return null;
|
|
1385
1385
|
if (connectors !== undefined && (!isObject(connectors) || !("bindingIds" in connectors) || !isStringList(connectors.bindingIds))) return null;
|
|
1386
|
-
return _object_spread$
|
|
1386
|
+
return _object_spread$p(_object_spread_props$i(_object_spread$p({}, value), {
|
|
1387
1387
|
skills: skills === undefined ? {
|
|
1388
1388
|
ids: []
|
|
1389
1389
|
} : skills,
|
|
@@ -1402,7 +1402,7 @@ function parsePromptCapabilitySelection(value) {
|
|
|
1402
1402
|
var selection = parseSelectionSet(value);
|
|
1403
1403
|
var recommended = "recommended" in value && value.recommended != null ? parseSelectionSet(value.recommended) : undefined;
|
|
1404
1404
|
if (!selection || recommended === null) return null;
|
|
1405
|
-
return _object_spread$
|
|
1405
|
+
return _object_spread$p(_object_spread_props$i(_object_spread$p({}, selection), {
|
|
1406
1406
|
mode: "allowlist"
|
|
1407
1407
|
}), "inheritUnselected" in value && typeof value.inheritUnselected === "boolean" ? {
|
|
1408
1408
|
inheritUnselected: value.inheritUnselected
|
|
@@ -1454,7 +1454,7 @@ function parsePromptCapabilityConfig(value) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
return _object_spread_props$i(_object_spread$
|
|
1457
|
+
return _object_spread_props$i(_object_spread$p({}, value), {
|
|
1458
1458
|
type: "expert_scoped_capabilities",
|
|
1459
1459
|
version: 1,
|
|
1460
1460
|
defaults: defaults,
|
|
@@ -1606,7 +1606,7 @@ function _instanceof$1(left, right) {
|
|
|
1606
1606
|
return left instanceof right;
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
function _object_spread$
|
|
1609
|
+
function _object_spread$o(target) {
|
|
1610
1610
|
for(var i = 1; i < arguments.length; i++){
|
|
1611
1611
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1612
1612
|
var ownKeys = Object.keys(source);
|
|
@@ -1627,12 +1627,12 @@ var CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY = "conversation_title_summary";
|
|
|
1627
1627
|
var CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = "thread_goal_updated";
|
|
1628
1628
|
var CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED = "thread_goal_cleared";
|
|
1629
1629
|
function createConversationTitleSummaryEvent(event) {
|
|
1630
|
-
return _object_spread$
|
|
1630
|
+
return _object_spread$o({
|
|
1631
1631
|
type: CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY
|
|
1632
1632
|
}, event);
|
|
1633
1633
|
}
|
|
1634
1634
|
function createFollowUpConsumedEvent(event) {
|
|
1635
|
-
return _object_spread$
|
|
1635
|
+
return _object_spread$o({
|
|
1636
1636
|
type: CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED
|
|
1637
1637
|
}, event);
|
|
1638
1638
|
}
|
|
@@ -1724,7 +1724,7 @@ function _non_iterable_rest$g() {
|
|
|
1724
1724
|
function _non_iterable_spread$h() {
|
|
1725
1725
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1726
1726
|
}
|
|
1727
|
-
function _object_spread$
|
|
1727
|
+
function _object_spread$n(target) {
|
|
1728
1728
|
for(var i = 1; i < arguments.length; i++){
|
|
1729
1729
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1730
1730
|
var ownKeys = Object.keys(source);
|
|
@@ -1871,7 +1871,7 @@ function normalizeAssistantBindingToolPreferences(value) {
|
|
|
1871
1871
|
if (!Object.keys(toolsets).length && !Object.keys(middlewares).length && !Object.keys(skills).length) {
|
|
1872
1872
|
return null;
|
|
1873
1873
|
}
|
|
1874
|
-
return _object_spread$
|
|
1874
|
+
return _object_spread$n({
|
|
1875
1875
|
version: 1
|
|
1876
1876
|
}, Object.keys(toolsets).length ? {
|
|
1877
1877
|
toolsets: toolsets
|
|
@@ -1949,8 +1949,8 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1949
1949
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$h(disabledTools).concat([
|
|
1950
1950
|
normalizedToolName
|
|
1951
1951
|
]));
|
|
1952
|
-
var toolsets = normalizedPreferences.toolsets ? _object_spread$
|
|
1953
|
-
var middlewares = normalizedPreferences.middlewares ? _object_spread$
|
|
1952
|
+
var toolsets = normalizedPreferences.toolsets ? _object_spread$n({}, normalizedPreferences.toolsets) : undefined;
|
|
1953
|
+
var middlewares = normalizedPreferences.middlewares ? _object_spread$n({}, normalizedPreferences.middlewares) : undefined;
|
|
1954
1954
|
if (sourceType === "toolset") {
|
|
1955
1955
|
var toolsetName = "toolsetName" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.toolsetName) : "";
|
|
1956
1956
|
if (!toolsetName) {
|
|
@@ -1966,14 +1966,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1966
1966
|
} else {
|
|
1967
1967
|
delete nextToolsets[normalizedNodeKey];
|
|
1968
1968
|
}
|
|
1969
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1969
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$n({
|
|
1970
1970
|
version: 1
|
|
1971
1971
|
}, Object.keys(nextToolsets).length ? {
|
|
1972
1972
|
toolsets: nextToolsets
|
|
1973
1973
|
} : {}, middlewares && Object.keys(middlewares).length ? {
|
|
1974
1974
|
middlewares: middlewares
|
|
1975
1975
|
} : {}, normalizedPreferences.skills ? {
|
|
1976
|
-
skills: _object_spread$
|
|
1976
|
+
skills: _object_spread$n({}, normalizedPreferences.skills)
|
|
1977
1977
|
} : {}));
|
|
1978
1978
|
}
|
|
1979
1979
|
var provider = "provider" in metadata ? normalizeAssistantBindingPreferenceKey(metadata.provider) : "";
|
|
@@ -1989,14 +1989,14 @@ function updateAssistantBindingToolPreferences(preferences, sourceType, nodeKey,
|
|
|
1989
1989
|
} else {
|
|
1990
1990
|
delete nextMiddlewares[normalizedNodeKey];
|
|
1991
1991
|
}
|
|
1992
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
1992
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$n({
|
|
1993
1993
|
version: 1
|
|
1994
1994
|
}, toolsets && Object.keys(toolsets).length ? {
|
|
1995
1995
|
toolsets: toolsets
|
|
1996
1996
|
} : {}, Object.keys(nextMiddlewares).length ? {
|
|
1997
1997
|
middlewares: nextMiddlewares
|
|
1998
1998
|
} : {}, normalizedPreferences.skills ? {
|
|
1999
|
-
skills: _object_spread$
|
|
1999
|
+
skills: _object_spread$n({}, normalizedPreferences.skills)
|
|
2000
2000
|
} : {}));
|
|
2001
2001
|
}
|
|
2002
2002
|
function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillId, enabled) {
|
|
@@ -2014,7 +2014,7 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2014
2014
|
}) : normalizeAssistantBindingPreferenceIds(_to_consumable_array$h(disabledSkillIds).concat([
|
|
2015
2015
|
normalizedSkillId
|
|
2016
2016
|
]));
|
|
2017
|
-
var skills = normalizedPreferences.skills ? _object_spread$
|
|
2017
|
+
var skills = normalizedPreferences.skills ? _object_spread$n({}, normalizedPreferences.skills) : {};
|
|
2018
2018
|
if (nextDisabledSkillIds.length) {
|
|
2019
2019
|
skills[normalizedWorkspaceId] = {
|
|
2020
2020
|
workspaceId: normalizedWorkspaceId,
|
|
@@ -2023,12 +2023,12 @@ function updateAssistantBindingSkillPreferences(preferences, workspaceId, skillI
|
|
|
2023
2023
|
} else {
|
|
2024
2024
|
delete skills[normalizedWorkspaceId];
|
|
2025
2025
|
}
|
|
2026
|
-
return normalizeAssistantBindingToolPreferences(_object_spread$
|
|
2026
|
+
return normalizeAssistantBindingToolPreferences(_object_spread$n({
|
|
2027
2027
|
version: 1
|
|
2028
2028
|
}, normalizedPreferences.toolsets ? {
|
|
2029
|
-
toolsets: _object_spread$
|
|
2029
|
+
toolsets: _object_spread$n({}, normalizedPreferences.toolsets)
|
|
2030
2030
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2031
|
-
middlewares: _object_spread$
|
|
2031
|
+
middlewares: _object_spread$n({}, normalizedPreferences.middlewares)
|
|
2032
2032
|
} : {}, Object.keys(skills).length ? {
|
|
2033
2033
|
skills: skills
|
|
2034
2034
|
} : {}));
|
|
@@ -2046,14 +2046,14 @@ function ensureAssistantBindingSkillWorkspacePreference(preferences, workspaceId
|
|
|
2046
2046
|
var currentSkills = (_normalizedPreferences_skills = normalizedPreferences.skills) !== null && _normalizedPreferences_skills !== void 0 ? _normalizedPreferences_skills : {};
|
|
2047
2047
|
var currentWorkspacePreference = currentSkills[normalizedWorkspaceId];
|
|
2048
2048
|
var _currentWorkspacePreference_disabledSkillIds;
|
|
2049
|
-
return _object_spread_props$h(_object_spread$
|
|
2049
|
+
return _object_spread_props$h(_object_spread$n({
|
|
2050
2050
|
version: 1
|
|
2051
2051
|
}, normalizedPreferences.toolsets ? {
|
|
2052
|
-
toolsets: _object_spread$
|
|
2052
|
+
toolsets: _object_spread$n({}, normalizedPreferences.toolsets)
|
|
2053
2053
|
} : {}, normalizedPreferences.middlewares ? {
|
|
2054
|
-
middlewares: _object_spread$
|
|
2054
|
+
middlewares: _object_spread$n({}, normalizedPreferences.middlewares)
|
|
2055
2055
|
} : {}), {
|
|
2056
|
-
skills: _object_spread_props$h(_object_spread$
|
|
2056
|
+
skills: _object_spread_props$h(_object_spread$n({}, currentSkills), _define_property$n({}, normalizedWorkspaceId, {
|
|
2057
2057
|
workspaceId: normalizeAssistantBindingPreferenceKey(currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.workspaceId) || normalizedWorkspaceId,
|
|
2058
2058
|
disabledSkillIds: (_currentWorkspacePreference_disabledSkillIds = currentWorkspacePreference === null || currentWorkspacePreference === void 0 ? void 0 : currentWorkspacePreference.disabledSkillIds) !== null && _currentWorkspacePreference_disabledSkillIds !== void 0 ? _currentWorkspacePreference_disabledSkillIds : []
|
|
2059
2059
|
}))
|
|
@@ -2159,7 +2159,7 @@ function _define_property$m(obj, key, value) {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
return obj;
|
|
2161
2161
|
}
|
|
2162
|
-
function _object_spread$
|
|
2162
|
+
function _object_spread$m(target) {
|
|
2163
2163
|
for(var i = 1; i < arguments.length; i++){
|
|
2164
2164
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2165
2165
|
var ownKeys = Object.keys(source);
|
|
@@ -2301,7 +2301,7 @@ function resolveModelParameterOptions(modelOptions, rules) {
|
|
|
2301
2301
|
var config = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2302
2302
|
var _config_preserveUnknown;
|
|
2303
2303
|
var preserveUnknown = (_config_preserveUnknown = config.preserveUnknown) !== null && _config_preserveUnknown !== void 0 ? _config_preserveUnknown : true;
|
|
2304
|
-
var resolvedOptions = preserveUnknown ? _object_spread$
|
|
2304
|
+
var resolvedOptions = preserveUnknown ? _object_spread$m({}, modelOptions !== null && modelOptions !== void 0 ? modelOptions : {}) : {};
|
|
2305
2305
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
2306
2306
|
try {
|
|
2307
2307
|
for(var _iterator = rules[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -2384,7 +2384,7 @@ function _iterable_to_array$h(iter) {
|
|
|
2384
2384
|
function _non_iterable_spread$f() {
|
|
2385
2385
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2386
2386
|
}
|
|
2387
|
-
function _object_spread$
|
|
2387
|
+
function _object_spread$l(target) {
|
|
2388
2388
|
for(var i = 1; i < arguments.length; i++){
|
|
2389
2389
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
2390
2390
|
var ownKeys = Object.keys(source);
|
|
@@ -2440,20 +2440,20 @@ var common$1 = {
|
|
|
2440
2440
|
maxConcurrency: positiveInteger.max(1000)
|
|
2441
2441
|
};
|
|
2442
2442
|
/** Saved model configuration is explicit; name heuristics are only discovery suggestions. */ var modelConfigurationSchema = zod.z.discriminatedUnion("modelType", [
|
|
2443
|
-
zod.z.object(_object_spread_props$g(_object_spread$
|
|
2443
|
+
zod.z.object(_object_spread_props$g(_object_spread$l({
|
|
2444
2444
|
modelType: zod.z.literal(exports.AiModelTypeEnum.LLM)
|
|
2445
2445
|
}, common$1), {
|
|
2446
2446
|
maxOutputTokens: positiveInteger,
|
|
2447
2447
|
defaultMaxTokens: positiveInteger,
|
|
2448
2448
|
features: zod.z.array(zod.z.nativeEnum(exports.ModelFeature)).max(20)
|
|
2449
2449
|
})).strict(),
|
|
2450
|
-
zod.z.object(_object_spread_props$g(_object_spread$
|
|
2450
|
+
zod.z.object(_object_spread_props$g(_object_spread$l({
|
|
2451
2451
|
modelType: zod.z.literal(exports.AiModelTypeEnum.TEXT_EMBEDDING)
|
|
2452
2452
|
}, common$1), {
|
|
2453
2453
|
dimensions: positiveInteger.optional(),
|
|
2454
2454
|
batchSize: positiveInteger.max(2048)
|
|
2455
2455
|
})).strict(),
|
|
2456
|
-
zod.z.object(_object_spread$
|
|
2456
|
+
zod.z.object(_object_spread$l({
|
|
2457
2457
|
modelType: zod.z.literal(exports.AiModelTypeEnum.RERANK)
|
|
2458
2458
|
}, common$1)).strict()
|
|
2459
2459
|
]).superRefine(function(value, ctx) {
|
|
@@ -2485,7 +2485,7 @@ function defaultModelConfiguration(modelType) {
|
|
|
2485
2485
|
};
|
|
2486
2486
|
switch(modelType){
|
|
2487
2487
|
case exports.AiModelTypeEnum.LLM:
|
|
2488
|
-
return _object_spread_props$g(_object_spread$
|
|
2488
|
+
return _object_spread_props$g(_object_spread$l({
|
|
2489
2489
|
modelType: modelType
|
|
2490
2490
|
}, common), {
|
|
2491
2491
|
maxOutputTokens: 2048,
|
|
@@ -2493,13 +2493,13 @@ function defaultModelConfiguration(modelType) {
|
|
|
2493
2493
|
features: []
|
|
2494
2494
|
});
|
|
2495
2495
|
case exports.AiModelTypeEnum.TEXT_EMBEDDING:
|
|
2496
|
-
return _object_spread_props$g(_object_spread$
|
|
2496
|
+
return _object_spread_props$g(_object_spread$l({
|
|
2497
2497
|
modelType: modelType
|
|
2498
2498
|
}, common), {
|
|
2499
2499
|
batchSize: 16
|
|
2500
2500
|
});
|
|
2501
2501
|
case exports.AiModelTypeEnum.RERANK:
|
|
2502
|
-
return _object_spread$
|
|
2502
|
+
return _object_spread$l({
|
|
2503
2503
|
modelType: modelType
|
|
2504
2504
|
}, common);
|
|
2505
2505
|
}
|
|
@@ -3100,7 +3100,7 @@ function _define_property$k(obj, key, value) {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
return obj;
|
|
3102
3102
|
}
|
|
3103
|
-
function _object_spread$
|
|
3103
|
+
function _object_spread$k(target) {
|
|
3104
3104
|
for(var i = 1; i < arguments.length; i++){
|
|
3105
3105
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3106
3106
|
var ownKeys = Object.keys(source);
|
|
@@ -3161,7 +3161,7 @@ function getXpertAgentRecursionLimit(agentConfig) {
|
|
|
3161
3161
|
return typeof (agentConfig === null || agentConfig === void 0 ? void 0 : agentConfig.recursionLimit) === "number" ? agentConfig.recursionLimit : DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
|
|
3162
3162
|
}
|
|
3163
3163
|
function normalizeXpertAgentConfig(agentConfig) {
|
|
3164
|
-
return _object_spread_props$f(_object_spread$
|
|
3164
|
+
return _object_spread_props$f(_object_spread$k({}, agentConfig !== null && agentConfig !== void 0 ? agentConfig : {}), {
|
|
3165
3165
|
recursionLimit: getXpertAgentRecursionLimit(agentConfig)
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
@@ -3295,7 +3295,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
3295
3295
|
function _non_iterable_rest$f() {
|
|
3296
3296
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3297
3297
|
}
|
|
3298
|
-
function _object_spread$
|
|
3298
|
+
function _object_spread$j(target) {
|
|
3299
3299
|
for(var i = 1; i < arguments.length; i++){
|
|
3300
3300
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3301
3301
|
var ownKeys = Object.keys(source);
|
|
@@ -3423,7 +3423,7 @@ function configurableStoreNamespace(configurable) {
|
|
|
3423
3423
|
var _varName_split = _sliced_to_array$d(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
3424
3424
|
if (variableName) {
|
|
3425
3425
|
var _state_agentChannelName;
|
|
3426
|
-
state[agentChannelName] = _object_spread_props$e(_object_spread$
|
|
3426
|
+
state[agentChannelName] = _object_spread_props$e(_object_spread$j({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$j({}, variableName, value));
|
|
3427
3427
|
} else {
|
|
3428
3428
|
state[agentChannelName] = value;
|
|
3429
3429
|
}
|
|
@@ -3527,7 +3527,7 @@ function _define_property$i(obj, key, value) {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
return obj;
|
|
3529
3529
|
}
|
|
3530
|
-
function _object_spread$
|
|
3530
|
+
function _object_spread$i(target) {
|
|
3531
3531
|
for(var i = 1; i < arguments.length; i++){
|
|
3532
3532
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3533
3533
|
var ownKeys = Object.keys(source);
|
|
@@ -3643,11 +3643,11 @@ var KNOWLEDGEBASE_FAQ_RETRIEVAL_MODES = [
|
|
|
3643
3643
|
return candidate === requestedMode;
|
|
3644
3644
|
}) ? requestedMode : DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.mode;
|
|
3645
3645
|
var _recall_fusion2, _recall_fusion_mode, _recall_fusion_weights;
|
|
3646
|
-
return _object_spread_props$d(_object_spread$
|
|
3646
|
+
return _object_spread_props$d(_object_spread$i({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL, recall !== null && recall !== void 0 ? recall : {}), {
|
|
3647
3647
|
mode: mode,
|
|
3648
|
-
fusion: _object_spread_props$d(_object_spread$
|
|
3648
|
+
fusion: _object_spread_props$d(_object_spread$i({}, DEFAULT_KNOWLEDGEBASE_FAQ_RECALL.fusion, (_recall_fusion2 = recall === null || recall === void 0 ? void 0 : recall.fusion) !== null && _recall_fusion2 !== void 0 ? _recall_fusion2 : {}), {
|
|
3649
3649
|
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,
|
|
3650
|
-
weights: _object_spread_props$d(_object_spread$
|
|
3650
|
+
weights: _object_spread_props$d(_object_spread$i({}, 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 : {}), {
|
|
3651
3651
|
graph: 0
|
|
3652
3652
|
})
|
|
3653
3653
|
})
|
|
@@ -3835,7 +3835,7 @@ function _iterable_to_array$f(iter) {
|
|
|
3835
3835
|
function _non_iterable_spread$d() {
|
|
3836
3836
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3837
3837
|
}
|
|
3838
|
-
function _object_spread$
|
|
3838
|
+
function _object_spread$h(target) {
|
|
3839
3839
|
for(var i = 1; i < arguments.length; i++){
|
|
3840
3840
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3841
3841
|
var ownKeys = Object.keys(source);
|
|
@@ -3863,12 +3863,12 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
/** Only copy configured defaults; do not turn built-in defaults into document overrides. */ function knowledgebaseDocumentParserDefaults(config, documentType) {
|
|
3865
3865
|
if (!config) return {};
|
|
3866
|
-
return _object_spread$
|
|
3867
|
-
spreadsheet: _object_spread$
|
|
3866
|
+
return _object_spread$h({}, config.spreadsheet ? {
|
|
3867
|
+
spreadsheet: _object_spread$h({}, config.spreadsheet)
|
|
3868
3868
|
} : {}, config.tableMetadataRequirements !== undefined ? {
|
|
3869
3869
|
tableMetadataRequirements: config.tableMetadataRequirements
|
|
3870
3870
|
} : {}, config.questionGeneration ? {
|
|
3871
|
-
questionGeneration: _object_spread$
|
|
3871
|
+
questionGeneration: _object_spread$h({}, config.questionGeneration)
|
|
3872
3872
|
} : {}, config.chunkLanguageHint !== undefined ? {
|
|
3873
3873
|
chunkLanguageHint: config.chunkLanguageHint
|
|
3874
3874
|
} : {}, config.maxChunkTokens !== undefined ? {
|
|
@@ -3882,7 +3882,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
3882
3882
|
} : {}, config.textSplitterType ? {
|
|
3883
3883
|
textSplitterType: config.textSplitterType
|
|
3884
3884
|
} : {}, config.textSplitter || config.chunkSize != null || config.chunkOverlap != null ? {
|
|
3885
|
-
textSplitter: _object_spread$
|
|
3885
|
+
textSplitter: _object_spread$h({}, config.chunkSize != null ? {
|
|
3886
3886
|
chunkSize: config.chunkSize
|
|
3887
3887
|
} : {}, config.chunkOverlap != null ? {
|
|
3888
3888
|
chunkOverlap: config.chunkOverlap
|
|
@@ -3894,7 +3894,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
3894
3894
|
} : {}, config.imageUnderstandingType ? {
|
|
3895
3895
|
imageUnderstandingType: config.imageUnderstandingType
|
|
3896
3896
|
} : {}, config.imageUnderstanding ? {
|
|
3897
|
-
imageUnderstanding: _object_spread$
|
|
3897
|
+
imageUnderstanding: _object_spread$h({}, config.imageUnderstanding)
|
|
3898
3898
|
} : {}, knowledgebaseParserSelection(config, documentType !== null && documentType !== void 0 ? documentType : ""));
|
|
3899
3899
|
}
|
|
3900
3900
|
/** Arrays are the canonical ordered format; retain the plugin's legacy comma syntax. */ function decodeKnowledgeSeparators(value) {
|
|
@@ -3972,7 +3972,7 @@ function _define_property$g(obj, key, value) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
return obj;
|
|
3974
3974
|
}
|
|
3975
|
-
function _object_spread$
|
|
3975
|
+
function _object_spread$g(target) {
|
|
3976
3976
|
for(var i = 1; i < arguments.length; i++){
|
|
3977
3977
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3978
3978
|
var ownKeys = Object.keys(source);
|
|
@@ -4002,7 +4002,7 @@ function _object_spread$f(target) {
|
|
|
4002
4002
|
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
4003
4003
|
*/ DocumentTypeEnum["FILE"] = "file";
|
|
4004
4004
|
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
4005
|
-
var KDocumentSourceType = _object_spread$
|
|
4005
|
+
var KDocumentSourceType = _object_spread$g({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
4006
4006
|
/**
|
|
4007
4007
|
* Document type category, determine how to process the document.
|
|
4008
4008
|
*/ exports.KBDocumentCategoryEnum = void 0;
|
|
@@ -4834,7 +4834,7 @@ function _iterable_to_array$e(iter) {
|
|
|
4834
4834
|
function _non_iterable_spread$c() {
|
|
4835
4835
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4836
4836
|
}
|
|
4837
|
-
function _object_spread$
|
|
4837
|
+
function _object_spread$f(target) {
|
|
4838
4838
|
for(var i = 1; i < arguments.length; i++){
|
|
4839
4839
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
4840
4840
|
var ownKeys = Object.keys(source);
|
|
@@ -4943,7 +4943,7 @@ function resolveRuntimeXpert(xpert, isDraft) {
|
|
|
4943
4943
|
var graph = resolveDraftRuntimeGraph(xpert, draft);
|
|
4944
4944
|
var agent = resolveDraftPrimaryAgent(xpert, draft, graph);
|
|
4945
4945
|
var _draft_team5, _draft_team_workspaceId, _draft_team_agentConfig, _draft_team_commandProfile, _draft_team_features, _draft_team_options;
|
|
4946
|
-
return _object_spread_props$c(_object_spread$
|
|
4946
|
+
return _object_spread_props$c(_object_spread$f({}, xpert, (_draft_team5 = draft.team) !== null && _draft_team5 !== void 0 ? _draft_team5 : {}), {
|
|
4947
4947
|
id: xpert.id,
|
|
4948
4948
|
tenantId: xpert.tenantId,
|
|
4949
4949
|
organizationId: xpert.organizationId,
|
|
@@ -5227,9 +5227,9 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5227
5227
|
if (node.type === "agent" && node.key === sourceKey) {
|
|
5228
5228
|
replacedNode = true;
|
|
5229
5229
|
var _node_entity;
|
|
5230
|
-
return _object_spread_props$c(_object_spread$
|
|
5230
|
+
return _object_spread_props$c(_object_spread$f({}, node), {
|
|
5231
5231
|
key: targetKey,
|
|
5232
|
-
entity: _object_spread_props$c(_object_spread$
|
|
5232
|
+
entity: _object_spread_props$c(_object_spread$f({}, (_node_entity = node.entity) !== null && _node_entity !== void 0 ? _node_entity : {}, agent), {
|
|
5233
5233
|
key: targetKey
|
|
5234
5234
|
})
|
|
5235
5235
|
});
|
|
@@ -5245,17 +5245,17 @@ function replaceAgentInDraft(draft, sourceKey, agent, options) {
|
|
|
5245
5245
|
if (from === connection.from && to === connection.to) {
|
|
5246
5246
|
return connection;
|
|
5247
5247
|
}
|
|
5248
|
-
return _object_spread_props$c(_object_spread$
|
|
5248
|
+
return _object_spread_props$c(_object_spread$f({}, connection), {
|
|
5249
5249
|
from: from,
|
|
5250
5250
|
to: to,
|
|
5251
5251
|
key: "".concat(from, "/").concat(to)
|
|
5252
5252
|
});
|
|
5253
5253
|
});
|
|
5254
|
-
return _object_spread_props$c(_object_spread$
|
|
5255
|
-
team: draft.team ? _object_spread_props$c(_object_spread$
|
|
5256
|
-
agent: draft.team.agent ? _object_spread_props$c(_object_spread$
|
|
5254
|
+
return _object_spread_props$c(_object_spread$f({}, draft), {
|
|
5255
|
+
team: draft.team ? _object_spread_props$c(_object_spread$f({}, draft.team), {
|
|
5256
|
+
agent: draft.team.agent ? _object_spread_props$c(_object_spread$f({}, draft.team.agent, agent), {
|
|
5257
5257
|
key: targetKey
|
|
5258
|
-
}) : _object_spread_props$c(_object_spread$
|
|
5258
|
+
}) : _object_spread_props$c(_object_spread$f({}, agent), {
|
|
5259
5259
|
key: targetKey
|
|
5260
5260
|
})
|
|
5261
5261
|
}) : draft.team,
|
|
@@ -5419,7 +5419,7 @@ var GENERAL_PROJECT_TYPE = {
|
|
|
5419
5419
|
}
|
|
5420
5420
|
return obj;
|
|
5421
5421
|
}
|
|
5422
|
-
function _object_spread$
|
|
5422
|
+
function _object_spread$e(target) {
|
|
5423
5423
|
for(var i = 1; i < arguments.length; i++){
|
|
5424
5424
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5425
5425
|
var ownKeys = Object.keys(source);
|
|
@@ -5462,8 +5462,8 @@ function buildChunkTree(documents) {
|
|
|
5462
5462
|
documents.forEach(function(doc, index) {
|
|
5463
5463
|
var chunkId = getChunkNodeId(doc);
|
|
5464
5464
|
if (chunkId) {
|
|
5465
|
-
map.set(chunkId, _object_spread_props$b(_object_spread$
|
|
5466
|
-
metadata: _object_spread_props$b(_object_spread$
|
|
5465
|
+
map.set(chunkId, _object_spread_props$b(_object_spread$e({}, doc), {
|
|
5466
|
+
metadata: _object_spread_props$b(_object_spread$e({}, doc.metadata), {
|
|
5467
5467
|
chunkId: chunkId,
|
|
5468
5468
|
children: []
|
|
5469
5469
|
})
|
|
@@ -6026,7 +6026,7 @@ function _define_property$d(obj, key, value) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
return obj;
|
|
6028
6028
|
}
|
|
6029
|
-
function _object_spread$
|
|
6029
|
+
function _object_spread$d(target) {
|
|
6030
6030
|
for(var i = 1; i < arguments.length; i++){
|
|
6031
6031
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6032
6032
|
var ownKeys = Object.keys(source);
|
|
@@ -6072,6 +6072,9 @@ function isMiddlewareToolEnabled(config) {
|
|
|
6072
6072
|
function isRequiredMiddleware(entity) {
|
|
6073
6073
|
return (entity === null || entity === void 0 ? void 0 : entity.required) === true;
|
|
6074
6074
|
}
|
|
6075
|
+
/** Default only omitted options. Preserve null and other invalid values for provider validation. */ function normalizeMiddlewareOptions(options) {
|
|
6076
|
+
return options === undefined ? {} : options;
|
|
6077
|
+
}
|
|
6075
6078
|
function genXpertMiddlewareKey() {
|
|
6076
6079
|
return letterStartSUID("Middleware_");
|
|
6077
6080
|
}
|
|
@@ -6091,8 +6094,8 @@ function normalizeMiddlewareNode(node) {
|
|
|
6091
6094
|
if (provider === entity.provider) {
|
|
6092
6095
|
return node;
|
|
6093
6096
|
}
|
|
6094
|
-
return _object_spread_props$a(_object_spread$
|
|
6095
|
-
entity: _object_spread_props$a(_object_spread$
|
|
6097
|
+
return _object_spread_props$a(_object_spread$d({}, node), {
|
|
6098
|
+
entity: _object_spread_props$a(_object_spread$d({}, entity), {
|
|
6096
6099
|
provider: provider
|
|
6097
6100
|
})
|
|
6098
6101
|
});
|
|
@@ -6199,7 +6202,7 @@ function _non_iterable_rest$c() {
|
|
|
6199
6202
|
function _non_iterable_spread$b() {
|
|
6200
6203
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6201
6204
|
}
|
|
6202
|
-
function _object_spread$
|
|
6205
|
+
function _object_spread$c(target) {
|
|
6203
6206
|
for(var i = 1; i < arguments.length; i++){
|
|
6204
6207
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6205
6208
|
var ownKeys = Object.keys(source);
|
|
@@ -6343,7 +6346,7 @@ function normalizeIncomingContent(content, context) {
|
|
|
6343
6346
|
if (typeof content !== "string") {
|
|
6344
6347
|
return content;
|
|
6345
6348
|
}
|
|
6346
|
-
return _object_spread$
|
|
6349
|
+
return _object_spread$c({
|
|
6347
6350
|
type: "text",
|
|
6348
6351
|
text: content
|
|
6349
6352
|
}, context.streamId ? {
|
|
@@ -6408,7 +6411,7 @@ function filterText(content) {
|
|
|
6408
6411
|
return "";
|
|
6409
6412
|
}
|
|
6410
6413
|
function mergeTextChunkForDisplay(previous, incoming) {
|
|
6411
|
-
return _object_spread$
|
|
6414
|
+
return _object_spread$c(_object_spread_props$9(_object_spread$c({}, previous), {
|
|
6412
6415
|
text: "".concat(previous.text).concat(incoming.text)
|
|
6413
6416
|
}), !previous.id && incoming.id ? {
|
|
6414
6417
|
id: incoming.id
|
|
@@ -6420,7 +6423,7 @@ function mergeTextChunkForDisplay(previous, incoming) {
|
|
|
6420
6423
|
}
|
|
6421
6424
|
function stripAutoDisplaySeparator(incoming, previousOriginal) {
|
|
6422
6425
|
if ((previousOriginal === null || previousOriginal === void 0 ? void 0 : previousOriginal.type) === "component" && incoming.text.startsWith("\n\n")) {
|
|
6423
|
-
return _object_spread_props$9(_object_spread$
|
|
6426
|
+
return _object_spread_props$9(_object_spread$c({}, incoming), {
|
|
6424
6427
|
text: incoming.text.slice(1)
|
|
6425
6428
|
});
|
|
6426
6429
|
}
|
|
@@ -6437,14 +6440,14 @@ function mergeComponentData(previous, incoming) {
|
|
|
6437
6440
|
return acc;
|
|
6438
6441
|
}, {});
|
|
6439
6442
|
var _previous_data1;
|
|
6440
|
-
return _object_spread_props$9(_object_spread$
|
|
6441
|
-
data: _object_spread_props$9(_object_spread$
|
|
6443
|
+
return _object_spread_props$9(_object_spread$c({}, previous, incoming), {
|
|
6444
|
+
data: _object_spread_props$9(_object_spread$c({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
|
|
6442
6445
|
created_date: ((_previous_data = previous.data) === null || _previous_data === void 0 ? void 0 : _previous_data.created_date) || ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data.created_date)
|
|
6443
6446
|
})
|
|
6444
6447
|
});
|
|
6445
6448
|
}
|
|
6446
6449
|
function inferMessageAppendContext(content, fallbackSource) {
|
|
6447
|
-
return _object_spread$
|
|
6450
|
+
return _object_spread$c({
|
|
6448
6451
|
source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
|
|
6449
6452
|
}, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
|
|
6450
6453
|
streamId: String(content.id)
|
|
@@ -6452,10 +6455,10 @@ function inferMessageAppendContext(content, fallbackSource) {
|
|
|
6452
6455
|
}
|
|
6453
6456
|
function resolveMessageAppendContext(options) {
|
|
6454
6457
|
var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
|
|
6455
|
-
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$9(_object_spread$
|
|
6458
|
+
var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props$9(_object_spread$c({}, inferredContext), {
|
|
6456
6459
|
streamId: options.fallbackStreamId
|
|
6457
6460
|
}) : inferredContext;
|
|
6458
|
-
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$9(_object_spread$
|
|
6461
|
+
var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props$9(_object_spread$c({}, appendContext), {
|
|
6459
6462
|
joinHint: "none"
|
|
6460
6463
|
}) : appendContext;
|
|
6461
6464
|
return {
|
|
@@ -6476,7 +6479,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6476
6479
|
var previous = initial;
|
|
6477
6480
|
return {
|
|
6478
6481
|
resolve: function resolve(options) {
|
|
6479
|
-
var resolved = resolveMessageAppendContext(_object_spread_props$9(_object_spread$
|
|
6482
|
+
var resolved = resolveMessageAppendContext(_object_spread_props$9(_object_spread$c({}, options), {
|
|
6480
6483
|
previous: previous
|
|
6481
6484
|
}));
|
|
6482
6485
|
if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
|
|
@@ -6514,10 +6517,10 @@ function resolveMessageAppendContext(options) {
|
|
|
6514
6517
|
var _ref = context !== null && context !== void 0 ? context : {}, _ref_previous = _ref.previous, previous = _ref_previous === void 0 ? null : _ref_previous, contextWithoutPrevious = _object_without_properties(_ref, [
|
|
6515
6518
|
"previous"
|
|
6516
6519
|
]);
|
|
6517
|
-
var appendContext = _object_spread$
|
|
6520
|
+
var appendContext = _object_spread$c({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
|
|
6518
6521
|
var _appendContext_joinHint;
|
|
6519
6522
|
var joinHint = (_appendContext_joinHint = appendContext.joinHint) !== null && _appendContext_joinHint !== void 0 ? _appendContext_joinHint : shouldJoinWithoutSeparator(previous, appendContext) ? "none" : undefined;
|
|
6520
|
-
var messageContext = joinHint ? _object_spread_props$9(_object_spread$
|
|
6523
|
+
var messageContext = joinHint ? _object_spread_props$9(_object_spread$c({}, appendContext), {
|
|
6521
6524
|
joinHint: joinHint
|
|
6522
6525
|
}) : appendContext;
|
|
6523
6526
|
var content = normalizeIncomingContent(incoming, appendContext);
|
|
@@ -6526,7 +6529,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6526
6529
|
var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
|
|
6527
6530
|
var lastReasoning = reasoning[reasoning.length - 1];
|
|
6528
6531
|
if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
|
|
6529
|
-
var mergedReasoning = _object_spread_props$9(_object_spread$
|
|
6532
|
+
var mergedReasoning = _object_spread_props$9(_object_spread$c({}, lastReasoning), {
|
|
6530
6533
|
text: "".concat(lastReasoning.text).concat(content.text)
|
|
6531
6534
|
});
|
|
6532
6535
|
aiMessage.reasoning = _to_consumable_array$b(reasoning.slice(0, reasoning.length - 1)).concat([
|
|
@@ -6547,7 +6550,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6547
6550
|
return isTextContent(item) && item.id === content.id;
|
|
6548
6551
|
});
|
|
6549
6552
|
if (index > -1) {
|
|
6550
|
-
var mergedContent = _object_spread$
|
|
6553
|
+
var mergedContent = _object_spread$c(_object_spread_props$9(_object_spread$c({}, chunks[index]), {
|
|
6551
6554
|
text: "".concat(chunks[index].text).concat(content.text)
|
|
6552
6555
|
}), !chunks[index].id && content.id ? {
|
|
6553
6556
|
id: content.id
|
|
@@ -6570,7 +6573,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6570
6573
|
var existingIndex = findLastTextChunkIndexById(chunks, content.id);
|
|
6571
6574
|
if (existingIndex > -1) {
|
|
6572
6575
|
var existing = chunks[existingIndex];
|
|
6573
|
-
var merged = _object_spread_props$9(_object_spread$
|
|
6576
|
+
var merged = _object_spread_props$9(_object_spread$c({}, existing), {
|
|
6574
6577
|
text: "".concat(existing.text).concat(content.text)
|
|
6575
6578
|
});
|
|
6576
6579
|
var nextChunks = _to_consumable_array$b(chunks);
|
|
@@ -6579,7 +6582,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6579
6582
|
return;
|
|
6580
6583
|
}
|
|
6581
6584
|
} else if (isTextContent(lastContent) && messageContext.joinHint === "none") {
|
|
6582
|
-
var mergedLastContent = _object_spread_props$9(_object_spread$
|
|
6585
|
+
var mergedLastContent = _object_spread_props$9(_object_spread$c({}, lastContent), {
|
|
6583
6586
|
text: "".concat(lastContent.text).concat(content.text)
|
|
6584
6587
|
});
|
|
6585
6588
|
aiMessage.content = _to_consumable_array$b(chunks.slice(0, chunks.length - 1)).concat([
|
|
@@ -6588,7 +6591,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6588
6591
|
return;
|
|
6589
6592
|
}
|
|
6590
6593
|
var separator = getContentChunkSeparator(lastContent, content.text, messageContext.joinHint);
|
|
6591
|
-
var appended = _object_spread_props$9(_object_spread$
|
|
6594
|
+
var appended = _object_spread_props$9(_object_spread$c({}, content), {
|
|
6592
6595
|
text: separator + content.text
|
|
6593
6596
|
});
|
|
6594
6597
|
aiMessage.content = _to_consumable_array$b(chunks).concat([
|
|
@@ -6612,7 +6615,7 @@ function resolveMessageAppendContext(options) {
|
|
|
6612
6615
|
aiMessage.content = nextChunks1;
|
|
6613
6616
|
}
|
|
6614
6617
|
function appendMessagePlainText(accumulator, incoming, context) {
|
|
6615
|
-
var resolvedContext = _object_spread$
|
|
6618
|
+
var resolvedContext = _object_spread$c({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
|
|
6616
6619
|
var nextText = filterText(incoming);
|
|
6617
6620
|
if (!nextText) {
|
|
6618
6621
|
return accumulator !== null && accumulator !== void 0 ? accumulator : "";
|
|
@@ -6657,7 +6660,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
6657
6660
|
return;
|
|
6658
6661
|
}
|
|
6659
6662
|
textIndexById.set(item.id, merged.length);
|
|
6660
|
-
merged.push(_object_spread$
|
|
6663
|
+
merged.push(_object_spread$c({}, item));
|
|
6661
6664
|
return;
|
|
6662
6665
|
}
|
|
6663
6666
|
var lastItem = merged[merged.length - 1];
|
|
@@ -6665,7 +6668,7 @@ function appendMessagePlainText(accumulator, incoming, context) {
|
|
|
6665
6668
|
merged[merged.length - 1] = mergeTextChunkForDisplay(lastItem, item);
|
|
6666
6669
|
return;
|
|
6667
6670
|
}
|
|
6668
|
-
merged.push(_object_spread$
|
|
6671
|
+
merged.push(_object_spread$c({}, item));
|
|
6669
6672
|
});
|
|
6670
6673
|
return merged.length ? merged : null;
|
|
6671
6674
|
}
|
|
@@ -6680,7 +6683,7 @@ function stringifyMessageContent(content) {
|
|
|
6680
6683
|
if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
|
|
6681
6684
|
var itemContext = inferMessageAppendContext(item);
|
|
6682
6685
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
6683
|
-
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$
|
|
6686
|
+
result = appendMessagePlainText(result, stringifySingle(item), _object_spread$c({}, itemContext, joinHint ? {
|
|
6684
6687
|
joinHint: joinHint
|
|
6685
6688
|
} : {}));
|
|
6686
6689
|
previousContext = itemContext;
|
|
@@ -6703,7 +6706,7 @@ function filterMessageText(content) {
|
|
|
6703
6706
|
}
|
|
6704
6707
|
var itemContext = inferMessageAppendContext(item);
|
|
6705
6708
|
var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
|
|
6706
|
-
result = appendMessagePlainText(result, nextText, _object_spread$
|
|
6709
|
+
result = appendMessagePlainText(result, nextText, _object_spread$c({}, itemContext, joinHint ? {
|
|
6707
6710
|
joinHint: joinHint
|
|
6708
6711
|
} : {}));
|
|
6709
6712
|
previousContext = itemContext;
|
|
@@ -7384,7 +7387,7 @@ function _define_property$b(obj, key, value) {
|
|
|
7384
7387
|
}
|
|
7385
7388
|
return obj;
|
|
7386
7389
|
}
|
|
7387
|
-
function _object_spread$
|
|
7390
|
+
function _object_spread$b(target) {
|
|
7388
7391
|
for(var i = 1; i < arguments.length; i++){
|
|
7389
7392
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7390
7393
|
var ownKeys = Object.keys(source);
|
|
@@ -7427,7 +7430,7 @@ var base = {
|
|
|
7427
7430
|
};
|
|
7428
7431
|
var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
7429
7432
|
/** Only explicit primitives can control flow; configuration cannot embed executable expressions. */ var projectPipelineNodeSchema = v3.z.discriminatedUnion("kind", [
|
|
7430
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7433
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7431
7434
|
kind: v3.z.literal("work"),
|
|
7432
7435
|
laneKey: projectPipelineKeySchema,
|
|
7433
7436
|
operationRef: projectPipelineRefSchema,
|
|
@@ -7436,23 +7439,23 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
7436
7439
|
resourceResolverRef: projectPipelineRefSchema.optional(),
|
|
7437
7440
|
outputSchemaRef: projectPipelineRefSchema.optional()
|
|
7438
7441
|
})).strict(),
|
|
7439
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7442
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7440
7443
|
kind: v3.z.literal("fork")
|
|
7441
7444
|
})).strict(),
|
|
7442
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7445
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7443
7446
|
kind: v3.z.literal("join"),
|
|
7444
7447
|
join: v3.z.object({
|
|
7445
7448
|
mode: v3.z.literal("all_selected"),
|
|
7446
7449
|
accept: v3.z.literal("completed")
|
|
7447
7450
|
}).strict()
|
|
7448
7451
|
})).strict(),
|
|
7449
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7452
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7450
7453
|
kind: v3.z.literal("router"),
|
|
7451
7454
|
policyRef: projectPipelineRefSchema,
|
|
7452
7455
|
outcomes: outcomes,
|
|
7453
7456
|
unmatched: v3.z.literal("block")
|
|
7454
7457
|
})).strict(),
|
|
7455
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7458
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7456
7459
|
kind: v3.z.literal("human_gate"),
|
|
7457
7460
|
laneKey: projectPipelineKeySchema,
|
|
7458
7461
|
policyRef: projectPipelineRefSchema,
|
|
@@ -7460,12 +7463,12 @@ var outcomes = v3.z.array(projectPipelineKeySchema).min(2).max(32);
|
|
|
7460
7463
|
outcomes: outcomes,
|
|
7461
7464
|
outcomeLabels: v3.z.record(projectPipelineKeySchema, v3.z.string().min(1).max(120)).optional()
|
|
7462
7465
|
})).strict(),
|
|
7463
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7466
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7464
7467
|
kind: v3.z.literal("external_wait"),
|
|
7465
7468
|
laneKey: projectPipelineKeySchema,
|
|
7466
7469
|
subscriptionRef: projectPipelineRefSchema
|
|
7467
7470
|
})).strict(),
|
|
7468
|
-
v3.z.object(_object_spread_props$8(_object_spread$
|
|
7471
|
+
v3.z.object(_object_spread_props$8(_object_spread$b({}, base), {
|
|
7469
7472
|
kind: v3.z.literal("terminal"),
|
|
7470
7473
|
outcome: projectPipelineKeySchema,
|
|
7471
7474
|
disposition: v3.z.enum([
|
|
@@ -8105,7 +8108,7 @@ function _define_property$a(obj, key, value) {
|
|
|
8105
8108
|
}
|
|
8106
8109
|
return obj;
|
|
8107
8110
|
}
|
|
8108
|
-
function _object_spread$
|
|
8111
|
+
function _object_spread$a(target) {
|
|
8109
8112
|
for(var i = 1; i < arguments.length; i++){
|
|
8110
8113
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8111
8114
|
var ownKeys = Object.keys(source);
|
|
@@ -8164,7 +8167,7 @@ var common = {
|
|
|
8164
8167
|
};
|
|
8165
8168
|
// A provider owns topology and advancement. A managed definition owns a bounded DAG per round.
|
|
8166
8169
|
var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
8167
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
8170
|
+
v3.z.object(_object_spread_props$7(_object_spread$a({}, common), {
|
|
8168
8171
|
executionAuthority: v3.z.literal("provider"),
|
|
8169
8172
|
providerRef: projectPipelineRefSchema,
|
|
8170
8173
|
topology: v3.z.object({
|
|
@@ -8173,7 +8176,7 @@ var projectPipelineDefinitionShapeSchema = v3.z.discriminatedUnion("executionAut
|
|
|
8173
8176
|
}).strict(),
|
|
8174
8177
|
actionRefs: v3.z.array(projectPipelineRefSchema).max(100).optional()
|
|
8175
8178
|
})).strict(),
|
|
8176
|
-
v3.z.object(_object_spread_props$7(_object_spread$
|
|
8179
|
+
v3.z.object(_object_spread_props$7(_object_spread$a({}, common), {
|
|
8177
8180
|
executionAuthority: v3.z.literal("platform"),
|
|
8178
8181
|
topology: v3.z.object({
|
|
8179
8182
|
source: v3.z.literal("definition")
|
|
@@ -8505,7 +8508,7 @@ function _define_property$9(obj, key, value) {
|
|
|
8505
8508
|
}
|
|
8506
8509
|
return obj;
|
|
8507
8510
|
}
|
|
8508
|
-
function _object_spread$
|
|
8511
|
+
function _object_spread$9(target) {
|
|
8509
8512
|
for(var i = 1; i < arguments.length; i++){
|
|
8510
8513
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8511
8514
|
var ownKeys = Object.keys(source);
|
|
@@ -8549,13 +8552,13 @@ var definitionRef = v3.z.object({
|
|
|
8549
8552
|
templateRef: projectPipelineRefSchema,
|
|
8550
8553
|
digest: v3.z.string().regex(/^[a-f0-9]{64}$/)
|
|
8551
8554
|
}).strict();
|
|
8552
|
-
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$6(_object_spread$
|
|
8555
|
+
var projectPipelineProjectBindingSchema = v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8553
8556
|
definition: definitionRef,
|
|
8554
8557
|
revision: v3.z.number().int().positive(),
|
|
8555
8558
|
configuration: projectPipelineBindingSchema
|
|
8556
8559
|
})).strict();
|
|
8557
8560
|
var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority", [
|
|
8558
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
8561
|
+
v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8559
8562
|
executionAuthority: v3.z.literal("provider"),
|
|
8560
8563
|
providerRef: projectPipelineRefSchema,
|
|
8561
8564
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -8566,7 +8569,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
8566
8569
|
}).strict(),
|
|
8567
8570
|
revision: v3.z.number().int().nonnegative()
|
|
8568
8571
|
})).strict(),
|
|
8569
|
-
v3.z.object(_object_spread_props$6(_object_spread$
|
|
8572
|
+
v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8570
8573
|
executionAuthority: v3.z.literal("platform"),
|
|
8571
8574
|
bindingId: v3.z.string().uuid(),
|
|
8572
8575
|
sourceKey: v3.z.string().min(1).max(500),
|
|
@@ -8578,7 +8581,7 @@ var projectPipelineInstanceSchema = v3.z.discriminatedUnion("executionAuthority"
|
|
|
8578
8581
|
revision: v3.z.number().int().nonnegative()
|
|
8579
8582
|
})).strict()
|
|
8580
8583
|
]);
|
|
8581
|
-
var projectPipelineRunSchema = v3.z.object(_object_spread_props$6(_object_spread$
|
|
8584
|
+
var projectPipelineRunSchema = v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8582
8585
|
instanceId: v3.z.string().uuid(),
|
|
8583
8586
|
triggerKey: v3.z.string().min(1).max(500),
|
|
8584
8587
|
definition: definitionRef,
|
|
@@ -8650,7 +8653,7 @@ var projectPipelineWorkContextSchema = v3.z.object({
|
|
|
8650
8653
|
inputDigest: v3.z.string().regex(/^[a-f0-9]{64}$/),
|
|
8651
8654
|
generation: v3.z.number().int().positive()
|
|
8652
8655
|
}).strict();
|
|
8653
|
-
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$6(_object_spread$
|
|
8656
|
+
var projectPipelineRoundSchema = v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8654
8657
|
runId: v3.z.string().uuid(),
|
|
8655
8658
|
sequence: v3.z.number().int().positive(),
|
|
8656
8659
|
generation: v3.z.number().int().positive(),
|
|
@@ -8666,7 +8669,7 @@ var projectPipelineRoundSchema = v3.z.object(_object_spread_props$6(_object_spre
|
|
|
8666
8669
|
subjectVersionSet: v3.z.array(projectPipelineSubjectVersionSchema).min(1).max(100),
|
|
8667
8670
|
supersedes: v3.z.string().uuid().nullable()
|
|
8668
8671
|
})).strict();
|
|
8669
|
-
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$6(_object_spread$
|
|
8672
|
+
var projectPipelineNodeInstanceSchema = v3.z.object(_object_spread_props$6(_object_spread$9({}, scopedIdentity), {
|
|
8670
8673
|
roundId: v3.z.string().uuid(),
|
|
8671
8674
|
nodeKey: projectPipelineKeySchema,
|
|
8672
8675
|
/** Stable source identity; never a list index. */ expansionKey: v3.z.string().min(1).max(500),
|
|
@@ -8691,7 +8694,7 @@ function _define_property$8(obj, key, value) {
|
|
|
8691
8694
|
}
|
|
8692
8695
|
return obj;
|
|
8693
8696
|
}
|
|
8694
|
-
function _object_spread$
|
|
8697
|
+
function _object_spread$8(target) {
|
|
8695
8698
|
for(var i = 1; i < arguments.length; i++){
|
|
8696
8699
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8697
8700
|
var ownKeys = Object.keys(source);
|
|
@@ -8736,17 +8739,17 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
8736
8739
|
])
|
|
8737
8740
|
}).strict();
|
|
8738
8741
|
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */ var projectPipelineExtensionDescriptorSchema = v3.z.discriminatedUnion("kind", [
|
|
8739
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8742
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8740
8743
|
kind: v3.z.literal("schema")
|
|
8741
8744
|
})).strict(),
|
|
8742
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8745
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8743
8746
|
kind: v3.z.literal("resource")
|
|
8744
8747
|
})).strict(),
|
|
8745
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8748
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8746
8749
|
kind: v3.z.literal("subject"),
|
|
8747
8750
|
outputSchemaRef: projectPipelineRefSchema
|
|
8748
8751
|
})).strict(),
|
|
8749
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8752
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8750
8753
|
kind: v3.z.literal("operation"),
|
|
8751
8754
|
effects: v3.z.enum([
|
|
8752
8755
|
"read_only",
|
|
@@ -8765,32 +8768,32 @@ var projectPipelinePortDescriptorSchema = v3.z.object({
|
|
|
8765
8768
|
inputs: v3.z.record(projectPipelineKeySchema, projectPipelinePortDescriptorSchema),
|
|
8766
8769
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
8767
8770
|
})).strict(),
|
|
8768
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8771
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8769
8772
|
kind: v3.z.literal("completion")
|
|
8770
8773
|
})).strict(),
|
|
8771
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8774
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8772
8775
|
kind: v3.z.literal("policy"),
|
|
8773
8776
|
outcomes: v3.z.array(projectPipelineKeySchema).min(1).max(32)
|
|
8774
8777
|
})).strict(),
|
|
8775
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8778
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8776
8779
|
kind: v3.z.literal("projection")
|
|
8777
8780
|
})).strict(),
|
|
8778
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8781
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8779
8782
|
kind: v3.z.literal("presentation")
|
|
8780
8783
|
})).strict(),
|
|
8781
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8784
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8782
8785
|
kind: v3.z.literal("action")
|
|
8783
8786
|
})).strict(),
|
|
8784
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8787
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8785
8788
|
kind: v3.z.literal("metric")
|
|
8786
8789
|
})).strict(),
|
|
8787
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8790
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8788
8791
|
kind: v3.z.literal("dimension")
|
|
8789
8792
|
})).strict(),
|
|
8790
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8793
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8791
8794
|
kind: v3.z.literal("trigger")
|
|
8792
8795
|
})).strict(),
|
|
8793
|
-
v3.z.object(_object_spread_props$5(_object_spread$
|
|
8796
|
+
v3.z.object(_object_spread_props$5(_object_spread$8({}, reference), {
|
|
8794
8797
|
kind: v3.z.literal("subscription"),
|
|
8795
8798
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineRefSchema)
|
|
8796
8799
|
})).strict()
|
|
@@ -9570,7 +9573,7 @@ function _define_property$7(obj, key, value) {
|
|
|
9570
9573
|
}
|
|
9571
9574
|
return obj;
|
|
9572
9575
|
}
|
|
9573
|
-
function _object_spread$
|
|
9576
|
+
function _object_spread$7(target) {
|
|
9574
9577
|
for(var i = 1; i < arguments.length; i++){
|
|
9575
9578
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9576
9579
|
var ownKeys = Object.keys(source);
|
|
@@ -9664,20 +9667,20 @@ var receipt = {
|
|
|
9664
9667
|
]).optional()
|
|
9665
9668
|
};
|
|
9666
9669
|
var projectPipelineOperationReceiptSchema = v3.z.discriminatedUnion("status", [
|
|
9667
|
-
v3.z.object(_object_spread_props$4(_object_spread$
|
|
9670
|
+
v3.z.object(_object_spread_props$4(_object_spread$7({}, receipt), {
|
|
9668
9671
|
status: v3.z.literal("pending")
|
|
9669
9672
|
})).strict(),
|
|
9670
|
-
v3.z.object(_object_spread_props$4(_object_spread$
|
|
9673
|
+
v3.z.object(_object_spread_props$4(_object_spread$7({}, receipt), {
|
|
9671
9674
|
status: v3.z.literal("succeeded"),
|
|
9672
9675
|
outputs: v3.z.record(projectPipelineKeySchema, projectPipelineEvidenceRefSchema).refine(function(value) {
|
|
9673
9676
|
return Object.keys(value).length <= 100;
|
|
9674
9677
|
}, "Too many output ports")
|
|
9675
9678
|
})).strict(),
|
|
9676
|
-
v3.z.object(_object_spread_props$4(_object_spread$
|
|
9679
|
+
v3.z.object(_object_spread_props$4(_object_spread$7({}, receipt), {
|
|
9677
9680
|
status: v3.z.literal("failed"),
|
|
9678
9681
|
code: projectPipelineKeySchema
|
|
9679
9682
|
})).strict(),
|
|
9680
|
-
v3.z.object(_object_spread_props$4(_object_spread$
|
|
9683
|
+
v3.z.object(_object_spread_props$4(_object_spread$7({}, receipt), {
|
|
9681
9684
|
status: v3.z.literal("cancelled")
|
|
9682
9685
|
})).strict(),
|
|
9683
9686
|
v3.z.object({
|
|
@@ -9777,7 +9780,7 @@ function _iterable_to_array$7(iter) {
|
|
|
9777
9780
|
function _non_iterable_spread$6() {
|
|
9778
9781
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9779
9782
|
}
|
|
9780
|
-
function _object_spread$
|
|
9783
|
+
function _object_spread$6(target) {
|
|
9781
9784
|
for(var i = 1; i < arguments.length; i++){
|
|
9782
9785
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9783
9786
|
var ownKeys = Object.keys(source);
|
|
@@ -9995,7 +9998,7 @@ function pipelineExecutorStatistics(facts) {
|
|
|
9995
9998
|
}
|
|
9996
9999
|
return _to_consumable_array$6(groups.values()).map(function(param) {
|
|
9997
10000
|
var identity = param.identity, _$facts = param.facts;
|
|
9998
|
-
return _object_spread_props$3(_object_spread$
|
|
10001
|
+
return _object_spread_props$3(_object_spread$6({}, identity), {
|
|
9999
10002
|
attempts: pipelineAttemptCounts(_$facts),
|
|
10000
10003
|
timing: pipelineExecutionTiming(_$facts)
|
|
10001
10004
|
});
|
|
@@ -10029,7 +10032,7 @@ function _iterable_to_array$6(iter) {
|
|
|
10029
10032
|
function _non_iterable_spread$5() {
|
|
10030
10033
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10031
10034
|
}
|
|
10032
|
-
function _object_spread$
|
|
10035
|
+
function _object_spread$5(target) {
|
|
10033
10036
|
for(var i = 1; i < arguments.length; i++){
|
|
10034
10037
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10035
10038
|
var ownKeys = Object.keys(source);
|
|
@@ -10228,7 +10231,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
10228
10231
|
}
|
|
10229
10232
|
}
|
|
10230
10233
|
}
|
|
10231
|
-
return _object_spread_props$2(_object_spread$
|
|
10234
|
+
return _object_spread_props$2(_object_spread$5({
|
|
10232
10235
|
scope: "linked_native_llm_calls"
|
|
10233
10236
|
}, coverage, totals(calls)), {
|
|
10234
10237
|
unpricedCalls: unpricedCalls,
|
|
@@ -10236,7 +10239,7 @@ function pipelineModelUsageStatistics(facts, coverage) {
|
|
|
10236
10239
|
return a.currency.localeCompare(b.currency);
|
|
10237
10240
|
}),
|
|
10238
10241
|
byModel: _to_consumable_array$5(models.values()).map(function(group) {
|
|
10239
|
-
return _object_spread$
|
|
10242
|
+
return _object_spread$5({
|
|
10240
10243
|
provider: group[0].provider,
|
|
10241
10244
|
model: group[0].model
|
|
10242
10245
|
}, totals(group));
|
|
@@ -10435,6 +10438,16 @@ function selectedPipelineAttemptFacts(nodes, executions) {
|
|
|
10435
10438
|
};
|
|
10436
10439
|
}
|
|
10437
10440
|
|
|
10441
|
+
/** Credential support for durable pipeline commands; Project permissions remain independently required. */ var projectPipelineCommandCapabilitySchema = v3.z.discriminatedUnion("allowed", [
|
|
10442
|
+
v3.z.object({
|
|
10443
|
+
allowed: v3.z.literal(true)
|
|
10444
|
+
}).strict(),
|
|
10445
|
+
v3.z.object({
|
|
10446
|
+
allowed: v3.z.literal(false),
|
|
10447
|
+
reason: v3.z.literal("PIPELINE_SCOPED_DELEGATION_UNAVAILABLE")
|
|
10448
|
+
}).strict()
|
|
10449
|
+
]);
|
|
10450
|
+
|
|
10438
10451
|
function _array_like_to_array$9(arr, len) {
|
|
10439
10452
|
if (len == null || len > arr.length) len = arr.length;
|
|
10440
10453
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -10492,7 +10505,7 @@ function _non_iterable_rest$7() {
|
|
|
10492
10505
|
function _non_iterable_spread$3() {
|
|
10493
10506
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10494
10507
|
}
|
|
10495
|
-
function _object_spread$
|
|
10508
|
+
function _object_spread$4(target) {
|
|
10496
10509
|
for(var i = 1; i < arguments.length; i++){
|
|
10497
10510
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
10498
10511
|
var ownKeys = Object.keys(source);
|
|
@@ -10554,30 +10567,30 @@ var option = v3.z.object({
|
|
|
10554
10567
|
label: label$1
|
|
10555
10568
|
}).strict();
|
|
10556
10569
|
var projectPipelineParameterFieldSchema = v3.z.discriminatedUnion("type", [
|
|
10557
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10570
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10558
10571
|
type: v3.z.literal("boolean")
|
|
10559
10572
|
})).strict(),
|
|
10560
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10573
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10561
10574
|
type: v3.z.literal("text"),
|
|
10562
10575
|
maxLength: v3.z.number().int().min(1).max(4000),
|
|
10563
10576
|
minLength: v3.z.number().int().min(0).max(4000)
|
|
10564
10577
|
})).strict(),
|
|
10565
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10578
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10566
10579
|
type: v3.z.literal("number"),
|
|
10567
10580
|
min: v3.z.number().finite(),
|
|
10568
10581
|
max: v3.z.number().finite(),
|
|
10569
10582
|
integer: v3.z.boolean()
|
|
10570
10583
|
})).strict(),
|
|
10571
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10584
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10572
10585
|
type: v3.z.literal("choice"),
|
|
10573
10586
|
options: v3.z.array(option).min(1).max(100)
|
|
10574
10587
|
})).strict(),
|
|
10575
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10588
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10576
10589
|
type: v3.z.literal("multi_choice"),
|
|
10577
10590
|
options: v3.z.array(option).min(1).max(100),
|
|
10578
10591
|
minItems: v3.z.number().int().min(0).max(100).default(0)
|
|
10579
10592
|
})).strict(),
|
|
10580
|
-
v3.z.object(_object_spread_props$1(_object_spread$
|
|
10593
|
+
v3.z.object(_object_spread_props$1(_object_spread$4({}, field), {
|
|
10581
10594
|
type: v3.z.literal("string_list"),
|
|
10582
10595
|
maxItems: v3.z.number().int().min(1).max(100),
|
|
10583
10596
|
itemMaxLength: v3.z.number().int().min(1).max(500)
|
|
@@ -10651,7 +10664,8 @@ var projectPipelineCatalogConfigureSchema = v3.z.object({
|
|
|
10651
10664
|
}).strict();
|
|
10652
10665
|
/** Catalog wire format; independent of the definition's execution protocol requirements. */ var projectPipelineCatalogProtocolSchema = v3.z.union([
|
|
10653
10666
|
v3.z.literal(1),
|
|
10654
|
-
v3.z.literal(2)
|
|
10667
|
+
v3.z.literal(2),
|
|
10668
|
+
v3.z.literal(3)
|
|
10655
10669
|
]);
|
|
10656
10670
|
var projectPipelineCatalogRequestSchema = v3.z.object({
|
|
10657
10671
|
protocol: projectPipelineCatalogProtocolSchema.optional()
|
|
@@ -10659,10 +10673,12 @@ var projectPipelineCatalogRequestSchema = v3.z.object({
|
|
|
10659
10673
|
function canReadProjectPipelineConfiguration(configuration, request, form) {
|
|
10660
10674
|
var _configuration_binding_limits;
|
|
10661
10675
|
if (request.protocol === undefined && configuration.template.hostRequirements) return false;
|
|
10662
|
-
|
|
10676
|
+
var _request_protocol;
|
|
10677
|
+
return ((_request_protocol = request.protocol) !== null && _request_protocol !== void 0 ? _request_protocol : 1) >= 2 || !(((_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget) || (form === null || form === void 0 ? void 0 : form.nativeModelBudget));
|
|
10663
10678
|
}
|
|
10664
10679
|
var projectPipelineCatalogSchema = v3.z.object({
|
|
10665
10680
|
hostCapabilities: projectPipelineHostCapabilitiesSchema.optional(),
|
|
10681
|
+
/** Protocol 3 support for saving configuration; does not grant permission to execute a pipeline. */ commandCapability: projectPipelineCommandCapabilitySchema.optional(),
|
|
10666
10682
|
canManage: v3.z.boolean(),
|
|
10667
10683
|
items: v3.z.array(v3.z.object({
|
|
10668
10684
|
contributionKey: projectPipelineKeySchema,
|
|
@@ -10777,13 +10793,13 @@ function parameterSchema(field) {
|
|
|
10777
10793
|
return item.key;
|
|
10778
10794
|
}))) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
10779
10795
|
var _configuration_binding_executorBindings2;
|
|
10780
|
-
var binding = _object_spread_props$1(_object_spread$
|
|
10781
|
-
parameters: _object_spread$
|
|
10796
|
+
var binding = _object_spread_props$1(_object_spread$4({}, configuration.binding), {
|
|
10797
|
+
parameters: _object_spread$4({}, configuration.binding.parameters),
|
|
10782
10798
|
executorBindings: Object.fromEntries(Object.entries((_configuration_binding_executorBindings2 = configuration.binding.executorBindings) !== null && _configuration_binding_executorBindings2 !== void 0 ? _configuration_binding_executorBindings2 : {}).map(function(param) {
|
|
10783
10799
|
var _param = _sliced_to_array$6(param, 2), key = _param[0], executor = _param[1];
|
|
10784
10800
|
return [
|
|
10785
10801
|
key,
|
|
10786
|
-
_object_spread$
|
|
10802
|
+
_object_spread$4({}, executor)
|
|
10787
10803
|
];
|
|
10788
10804
|
}))
|
|
10789
10805
|
});
|
|
@@ -10799,7 +10815,7 @@ function parameterSchema(field) {
|
|
|
10799
10815
|
var key = _iter[_i];
|
|
10800
10816
|
if (budget[key] > form.nativeModelBudget[key]) throw new Error("PIPELINE_CONFIGURATION_BUDGET_LIMIT");
|
|
10801
10817
|
}
|
|
10802
|
-
binding.limits = _object_spread_props$1(_object_spread$
|
|
10818
|
+
binding.limits = _object_spread_props$1(_object_spread$4({}, binding.limits), {
|
|
10803
10819
|
nativeModelBudget: budget
|
|
10804
10820
|
});
|
|
10805
10821
|
} else if (input.nativeModelBudget !== undefined) throw new Error("PIPELINE_CONFIGURATION_FIELDS_MISMATCH");
|
|
@@ -10871,14 +10887,14 @@ function parameterSchema(field) {
|
|
|
10871
10887
|
}
|
|
10872
10888
|
}
|
|
10873
10889
|
}
|
|
10874
|
-
return projectPipelineConfigurationSchema.parse(_object_spread_props$1(_object_spread$
|
|
10890
|
+
return projectPipelineConfigurationSchema.parse(_object_spread_props$1(_object_spread$4({}, configuration), {
|
|
10875
10891
|
binding: binding
|
|
10876
10892
|
}));
|
|
10877
10893
|
}
|
|
10878
10894
|
/** Registration validates defaults without requiring portable Assistant placeholders to be UUIDs. */ function validateProjectPipelineConfigurationForm(configuration, form) {
|
|
10879
10895
|
var _configuration_binding_limits;
|
|
10880
10896
|
var _form_runtimeSlots;
|
|
10881
|
-
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$1(_object_spread$
|
|
10897
|
+
return configureProjectPipelineFromForm(configuration, form, _object_spread_props$1(_object_spread$4({}, form.nativeModelBudget ? {
|
|
10882
10898
|
nativeModelBudget: (_configuration_binding_limits = configuration.binding.limits) === null || _configuration_binding_limits === void 0 ? void 0 : _configuration_binding_limits.nativeModelBudget
|
|
10883
10899
|
} : {}), {
|
|
10884
10900
|
assistants: Object.fromEntries(form.assistantSlots.map(function(item) {
|
|
@@ -11206,7 +11222,7 @@ function _non_iterable_rest$6() {
|
|
|
11206
11222
|
function _non_iterable_spread$1() {
|
|
11207
11223
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11208
11224
|
}
|
|
11209
|
-
function _object_spread$
|
|
11225
|
+
function _object_spread$3(target) {
|
|
11210
11226
|
for(var i = 1; i < arguments.length; i++){
|
|
11211
11227
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11212
11228
|
var ownKeys = Object.keys(source);
|
|
@@ -11339,7 +11355,7 @@ function unionDuration(ranges) {
|
|
|
11339
11355
|
try {
|
|
11340
11356
|
for(var _iterator = open.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
11341
11357
|
var value = _step.value;
|
|
11342
|
-
intervals.push(_object_spread_props(_object_spread$
|
|
11358
|
+
intervals.push(_object_spread_props(_object_spread$3({}, value), {
|
|
11343
11359
|
end: lastAt,
|
|
11344
11360
|
ongoing: false,
|
|
11345
11361
|
censored: true
|
|
@@ -11392,7 +11408,7 @@ function unionDuration(ranges) {
|
|
|
11392
11408
|
for(var _iterator1 = open[Symbol.iterator](), _step2; !(_iteratorNormalCompletion1 = (_step2 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
11393
11409
|
var _step_value = _sliced_to_array$5(_step2.value, 2), id = _step_value[0], value = _step_value[1];
|
|
11394
11410
|
if (!ready.has(id)) {
|
|
11395
|
-
intervals.push(_object_spread_props(_object_spread$
|
|
11411
|
+
intervals.push(_object_spread_props(_object_spread$3({}, value), {
|
|
11396
11412
|
end: at,
|
|
11397
11413
|
ongoing: false
|
|
11398
11414
|
}));
|
|
@@ -11460,13 +11476,13 @@ function unionDuration(ranges) {
|
|
|
11460
11476
|
var _step_value1 = _sliced_to_array$5(_step4.value, 2), id2 = _step_value1[0], value1 = _step_value1[1];
|
|
11461
11477
|
// Current state is independently read from the same MVCC snapshot. Divergence must not extend an interval.
|
|
11462
11478
|
if (currentWaiting.has(id2)) {
|
|
11463
|
-
intervals.push(_object_spread_props(_object_spread$
|
|
11479
|
+
intervals.push(_object_spread_props(_object_spread$3({}, value1), {
|
|
11464
11480
|
end: now,
|
|
11465
11481
|
ongoing: true
|
|
11466
11482
|
}));
|
|
11467
11483
|
tracked.add(id2);
|
|
11468
11484
|
} else {
|
|
11469
|
-
intervals.push(_object_spread_props(_object_spread$
|
|
11485
|
+
intervals.push(_object_spread_props(_object_spread$3({}, value1), {
|
|
11470
11486
|
end: lastAt,
|
|
11471
11487
|
ongoing: false,
|
|
11472
11488
|
censored: true
|
|
@@ -11511,7 +11527,7 @@ function unionDuration(ranges) {
|
|
|
11511
11527
|
var selected = intervals.filter(function(interval) {
|
|
11512
11528
|
return interval.start < to && interval.end >= from && interval.end >= interval.start;
|
|
11513
11529
|
}).map(function(interval) {
|
|
11514
|
-
return _object_spread_props(_object_spread$
|
|
11530
|
+
return _object_spread_props(_object_spread$3({}, interval), {
|
|
11515
11531
|
start: Math.max(from, interval.start),
|
|
11516
11532
|
end: Math.min(to, interval.end)
|
|
11517
11533
|
});
|
|
@@ -11570,7 +11586,7 @@ function _define_property$2(obj, key, value) {
|
|
|
11570
11586
|
}
|
|
11571
11587
|
return obj;
|
|
11572
11588
|
}
|
|
11573
|
-
function _object_spread$
|
|
11589
|
+
function _object_spread$2(target) {
|
|
11574
11590
|
for(var i = 1; i < arguments.length; i++){
|
|
11575
11591
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
11576
11592
|
var ownKeys = Object.keys(source);
|
|
@@ -11720,7 +11736,7 @@ var projectPipelineAnalyticsSchema = v3.z.object({
|
|
|
11720
11736
|
}
|
|
11721
11737
|
/** One complete authorized snapshot, with a start-time cohort separate from current business state. */ function projectPipelineAnalytics(projectId, instances, executions, window, snapshotAt) {
|
|
11722
11738
|
var instancesWithoutCurrentRound = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
11723
|
-
return _object_spread$
|
|
11739
|
+
return _object_spread$2({
|
|
11724
11740
|
projectId: projectId
|
|
11725
11741
|
}, aggregatePipelineAnalytics(instances, executions, window, snapshotAt, instancesWithoutCurrentRound));
|
|
11726
11742
|
}
|
|
@@ -12852,48 +12868,6 @@ exports.RequestScopeLevel = void 0;
|
|
|
12852
12868
|
RequestScopeLevel["ORGANIZATION"] = "organization";
|
|
12853
12869
|
})(exports.RequestScopeLevel || (exports.RequestScopeLevel = {}));
|
|
12854
12870
|
|
|
12855
|
-
var IntegrationGitHubProvider = {
|
|
12856
|
-
name: exports.IntegrationEnum.GITHUB,
|
|
12857
|
-
label: {
|
|
12858
|
-
en_US: "GitHub",
|
|
12859
|
-
zh_Hans: "GitHub"
|
|
12860
|
-
},
|
|
12861
|
-
description: {
|
|
12862
|
-
en_US: "GitHub is a proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project.",
|
|
12863
|
-
zh_Hans: "GitHub 是一个专有的开发者平台,允许开发者创建、存储、管理和分享他们的代码。它使用 Git 提供分布式版本控制,GitHub 本身为每个项目提供访问控制、错误跟踪、软件功能请求、任务管理、持续集成和知识。"
|
|
12864
|
-
},
|
|
12865
|
-
avatar: "github.svg",
|
|
12866
|
-
webhook: true,
|
|
12867
|
-
schema: {
|
|
12868
|
-
type: "object",
|
|
12869
|
-
properties: {
|
|
12870
|
-
appName: {
|
|
12871
|
-
type: "string",
|
|
12872
|
-
description: "The App Name of the GitHub App"
|
|
12873
|
-
},
|
|
12874
|
-
appId: {
|
|
12875
|
-
type: "string",
|
|
12876
|
-
description: "The App ID of the GitHub App"
|
|
12877
|
-
},
|
|
12878
|
-
clientId: {
|
|
12879
|
-
type: "string",
|
|
12880
|
-
description: "The Client ID of the GitHub App"
|
|
12881
|
-
},
|
|
12882
|
-
clientSecret: {
|
|
12883
|
-
type: "string",
|
|
12884
|
-
description: "The Client Secret of the GitHub App"
|
|
12885
|
-
},
|
|
12886
|
-
privateKey: {
|
|
12887
|
-
type: "textarea",
|
|
12888
|
-
description: "The private key of the GitHub App"
|
|
12889
|
-
},
|
|
12890
|
-
webhookSecret: {
|
|
12891
|
-
type: "string",
|
|
12892
|
-
description: "The webhook secret of the GitHub App"
|
|
12893
|
-
}
|
|
12894
|
-
}
|
|
12895
|
-
}
|
|
12896
|
-
};
|
|
12897
12871
|
/**
|
|
12898
12872
|
* Transform GitHub API installation data to our simplified format
|
|
12899
12873
|
*/ var transformInstallation = function(installation) {
|
|
@@ -13006,22 +12980,7 @@ var IntegrationGitHubProvider = {
|
|
|
13006
12980
|
}
|
|
13007
12981
|
};
|
|
13008
12982
|
|
|
13009
|
-
|
|
13010
|
-
if (key in obj) {
|
|
13011
|
-
Object.defineProperty(obj, key, {
|
|
13012
|
-
value: value,
|
|
13013
|
-
enumerable: true,
|
|
13014
|
-
configurable: true,
|
|
13015
|
-
writable: true
|
|
13016
|
-
});
|
|
13017
|
-
} else {
|
|
13018
|
-
obj[key] = value;
|
|
13019
|
-
}
|
|
13020
|
-
return obj;
|
|
13021
|
-
}
|
|
13022
|
-
var INTEGRATION_PROVIDERS = // [IntegrationEnum.LARK]: IntegrationLarkProvider,
|
|
13023
|
-
// [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
13024
|
-
_define_property$1({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider);
|
|
12983
|
+
/** @deprecated Discover providers through the host integration registry/API. */ var INTEGRATION_PROVIDERS = {};
|
|
13025
12984
|
|
|
13026
12985
|
function _array_like_to_array$3(arr, len) {
|
|
13027
12986
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -13543,7 +13502,7 @@ var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
|
|
|
13543
13502
|
function _array_with_holes(arr) {
|
|
13544
13503
|
if (Array.isArray(arr)) return arr;
|
|
13545
13504
|
}
|
|
13546
|
-
function _define_property(obj, key, value) {
|
|
13505
|
+
function _define_property$1(obj, key, value) {
|
|
13547
13506
|
if (key in obj) {
|
|
13548
13507
|
Object.defineProperty(obj, key, {
|
|
13549
13508
|
value: value,
|
|
@@ -13583,7 +13542,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
13583
13542
|
function _non_iterable_rest() {
|
|
13584
13543
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13585
13544
|
}
|
|
13586
|
-
function _object_spread(target) {
|
|
13545
|
+
function _object_spread$1(target) {
|
|
13587
13546
|
for(var i = 1; i < arguments.length; i++){
|
|
13588
13547
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
13589
13548
|
var ownKeys = Object.keys(source);
|
|
@@ -13593,7 +13552,7 @@ function _object_spread(target) {
|
|
|
13593
13552
|
}));
|
|
13594
13553
|
}
|
|
13595
13554
|
ownKeys.forEach(function(key) {
|
|
13596
|
-
_define_property(target, key, source[key]);
|
|
13555
|
+
_define_property$1(target, key, source[key]);
|
|
13597
13556
|
});
|
|
13598
13557
|
}
|
|
13599
13558
|
return target;
|
|
@@ -13640,7 +13599,7 @@ var WORKBENCH_VIEW_OPEN_EVENT = "workbench.view.open";
|
|
|
13640
13599
|
}
|
|
13641
13600
|
}
|
|
13642
13601
|
}
|
|
13643
|
-
return _object_spread({
|
|
13602
|
+
return _object_spread$1({
|
|
13644
13603
|
type: WORKBENCH_VIEW_OPEN_EVENT,
|
|
13645
13604
|
viewKey: value.viewKey,
|
|
13646
13605
|
projectId: value.projectId
|
|
@@ -13656,6 +13615,46 @@ function isViewScalar(value) {
|
|
|
13656
13615
|
return value === null || typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value);
|
|
13657
13616
|
}
|
|
13658
13617
|
|
|
13618
|
+
function _define_property(obj, key, value) {
|
|
13619
|
+
if (key in obj) {
|
|
13620
|
+
Object.defineProperty(obj, key, {
|
|
13621
|
+
value: value,
|
|
13622
|
+
enumerable: true,
|
|
13623
|
+
configurable: true,
|
|
13624
|
+
writable: true
|
|
13625
|
+
});
|
|
13626
|
+
} else {
|
|
13627
|
+
obj[key] = value;
|
|
13628
|
+
}
|
|
13629
|
+
return obj;
|
|
13630
|
+
}
|
|
13631
|
+
function _object_spread(target) {
|
|
13632
|
+
for(var i = 1; i < arguments.length; i++){
|
|
13633
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
13634
|
+
var ownKeys = Object.keys(source);
|
|
13635
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
13636
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
13637
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
13638
|
+
}));
|
|
13639
|
+
}
|
|
13640
|
+
ownKeys.forEach(function(key) {
|
|
13641
|
+
_define_property(target, key, source[key]);
|
|
13642
|
+
});
|
|
13643
|
+
}
|
|
13644
|
+
return target;
|
|
13645
|
+
}
|
|
13646
|
+
var authorizationFields = {
|
|
13647
|
+
authMethodId: v3.z.string().trim().min(1).max(128).optional(),
|
|
13648
|
+
integrationId: v3.z.string().uuid().optional()
|
|
13649
|
+
};
|
|
13650
|
+
var hasIntegrationMethod = function(value) {
|
|
13651
|
+
return !value.integrationId || !!value.authMethodId;
|
|
13652
|
+
};
|
|
13653
|
+
/** An integration reference must name the Connector authentication method that consumes it. */ var workspaceConnectorAuthorizationSchema = v3.z.object(authorizationFields).strict().refine(hasIntegrationMethod);
|
|
13654
|
+
/** Intent only: the host resolves workspace identity, permissions and available Connector definitions. */ var workspaceConnectorConnectPayloadSchema = v3.z.object(_object_spread({
|
|
13655
|
+
provider: v3.z.string().regex(/^[a-z][a-z0-9_-]{0,63}$/)
|
|
13656
|
+
}, authorizationFields)).strict().refine(hasIntegrationMethod);
|
|
13657
|
+
|
|
13659
13658
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
13660
13659
|
/** Terminal transport interruption; it does not indicate that the background task completed or failed. */ var RUNTIME_STREAM_INTERRUPTED_EVENT = "runtime-interrupted";
|
|
13661
13660
|
|
|
@@ -13828,7 +13827,6 @@ exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
|
13828
13827
|
exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
|
|
13829
13828
|
exports.HUMAN_PROPOSAL_STRATEGY = HUMAN_PROPOSAL_STRATEGY;
|
|
13830
13829
|
exports.INTEGRATION_PROVIDERS = INTEGRATION_PROVIDERS;
|
|
13831
|
-
exports.IntegrationGitHubProvider = IntegrationGitHubProvider;
|
|
13832
13830
|
exports.IntegrationLarkProvider = IntegrationLarkProvider;
|
|
13833
13831
|
exports.IteratingIndexParameterName = IteratingIndexParameterName;
|
|
13834
13832
|
exports.IteratingItemParameterName = IteratingItemParameterName;
|
|
@@ -14170,6 +14168,7 @@ exports.normalizeKnowledgebaseFAQRecall = normalizeKnowledgebaseFAQRecall;
|
|
|
14170
14168
|
exports.normalizeKnowledgebaseWikiConfig = normalizeKnowledgebaseWikiConfig;
|
|
14171
14169
|
exports.normalizeMiddlewareNode = normalizeMiddlewareNode;
|
|
14172
14170
|
exports.normalizeMiddlewareNodes = normalizeMiddlewareNodes;
|
|
14171
|
+
exports.normalizeMiddlewareOptions = normalizeMiddlewareOptions;
|
|
14173
14172
|
exports.normalizeMiddlewareProvider = normalizeMiddlewareProvider;
|
|
14174
14173
|
exports.normalizeModelParameterValue = normalizeModelParameterValue;
|
|
14175
14174
|
exports.normalizeXpertAgentConfig = normalizeXpertAgentConfig;
|
|
@@ -14208,6 +14207,7 @@ exports.projectPipelineCatalogConfigureSchema = projectPipelineCatalogConfigureS
|
|
|
14208
14207
|
exports.projectPipelineCatalogProtocolSchema = projectPipelineCatalogProtocolSchema;
|
|
14209
14208
|
exports.projectPipelineCatalogRequestSchema = projectPipelineCatalogRequestSchema;
|
|
14210
14209
|
exports.projectPipelineCatalogSchema = projectPipelineCatalogSchema;
|
|
14210
|
+
exports.projectPipelineCommandCapabilitySchema = projectPipelineCommandCapabilitySchema;
|
|
14211
14211
|
exports.projectPipelineCompletionReceiptSchema = projectPipelineCompletionReceiptSchema;
|
|
14212
14212
|
exports.projectPipelineConfigurationFormSchema = projectPipelineConfigurationFormSchema;
|
|
14213
14213
|
exports.projectPipelineConfigurationPageSchema = projectPipelineConfigurationPageSchema;
|
|
@@ -14326,4 +14326,6 @@ exports.validateProjectPipelineConfigurationForm = validateProjectPipelineConfig
|
|
|
14326
14326
|
exports.validateProjectPipelineDefinition = validateProjectPipelineDefinition;
|
|
14327
14327
|
exports.validateProjectTaskGraph = validateProjectTaskGraph;
|
|
14328
14328
|
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
14329
|
+
exports.workspaceConnectorAuthorizationSchema = workspaceConnectorAuthorizationSchema;
|
|
14330
|
+
exports.workspaceConnectorConnectPayloadSchema = workspaceConnectorConnectPayloadSchema;
|
|
14329
14331
|
exports.xpertLabel = xpertLabel;
|