@uipath/apollo-react 3.35.1 → 3.36.1-pr238.264661b
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/dist/canvas/components/AgentCanvas/AgentFlow.cjs +4 -1
- package/dist/canvas/components/AgentCanvas/AgentFlow.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/AgentFlow.js +4 -1
- package/dist/canvas/components/AgentCanvas/AgentFlow.stories.cjs +141 -1
- package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts +1 -0
- package/dist/canvas/components/AgentCanvas/AgentFlow.stories.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/AgentFlow.stories.js +138 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +24 -6
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts +2 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +24 -6
- package/dist/canvas/components/BaseNode/BaseNode.cjs +7 -0
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +7 -0
- package/dist/canvas/components/BaseNode/BaseNode.stories.cjs +4 -4
- package/dist/canvas/components/BaseNode/BaseNode.stories.js +4 -4
- package/dist/canvas/types.d.ts +8 -0
- package/dist/canvas/types.d.ts.map +1 -1
- package/dist/canvas/utils/collapse.cjs +9 -2
- package/dist/canvas/utils/collapse.d.ts +7 -0
- package/dist/canvas/utils/collapse.d.ts.map +1 -1
- package/dist/canvas/utils/collapse.js +5 -1
- package/dist/canvas/utils/manifest-resolver.cjs +2 -2
- package/dist/canvas/utils/manifest-resolver.js +2 -2
- package/dist/canvas/utils/props-helpers.cjs +2 -1
- package/dist/canvas/utils/props-helpers.d.ts.map +1 -1
- package/dist/canvas/utils/props-helpers.js +2 -1
- package/package.json +1 -1
|
@@ -154,6 +154,7 @@ const createResourceNodeWrapper = (opts)=>(props)=>{
|
|
|
154
154
|
onRemoveBreakpoint: opts.onRemoveBreakpoint,
|
|
155
155
|
onAddGuardrail: opts.onAddGuardrail,
|
|
156
156
|
onGoToSource: opts.onGoToSource,
|
|
157
|
+
onErrorAction: opts.onErrorAction,
|
|
157
158
|
onRemoveResource: deleteNode,
|
|
158
159
|
onExpandResource: opts.onExpandResource,
|
|
159
160
|
onCollapseResource: opts.onCollapseResource,
|
|
@@ -162,7 +163,7 @@ const createResourceNodeWrapper = (opts)=>(props)=>{
|
|
|
162
163
|
suggestionGroupVersion: opts.suggestionGroupVersion
|
|
163
164
|
});
|
|
164
165
|
};
|
|
165
|
-
const AgentFlowInner = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ children, mode, spans, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onAddResource: _onAddResource, onSelectResource, setSpanForSelectedNode, getNodeFromSelectedSpan, onExpandResource, onCollapseResource, agentNodeTranslations, resourceNodeTranslations, stickyNoteNodeTranslations, canvasTranslations, enableTimelinePlayer, canvasRef, enableMcpTools, enableMemory, enableStickyNotes, enableInstructions, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroup, onAgentNodePositionChange, onResourceNodePositionChange, onOrganize, onUpdateStickyNote, zoomLevel, onZoomLevelChange })=>{
|
|
166
|
+
const AgentFlowInner = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ children, mode, spans, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onErrorAction, onAddResource: _onAddResource, onSelectResource, setSpanForSelectedNode, getNodeFromSelectedSpan, onExpandResource, onCollapseResource, agentNodeTranslations, resourceNodeTranslations, stickyNoteNodeTranslations, canvasTranslations, enableTimelinePlayer, canvasRef, enableMcpTools, enableMemory, enableStickyNotes, enableInstructions, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroup, onAgentNodePositionChange, onResourceNodePositionChange, onOrganize, onUpdateStickyNote, zoomLevel, onZoomLevelChange })=>{
|
|
166
167
|
const { nodes, edges, onNodesChange, onEdgesChange, onConnect, autoArrange, setSelectedNodeId, selectedNodeId, setDragging, expandAgent, collapseAgent, createResourcePlaceholder, actOnSuggestionGroup, currentSuggestionIndex, navigateToNextSuggestion, navigateToPreviousSuggestion, addStickyNote, paneContextMenu, openPaneContextMenu, closePaneContextMenu } = (0, agent_flow_store_cjs_namespaceObject.useAgentFlowStore)();
|
|
167
168
|
const nodeTypesBase = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
168
169
|
stickyNote: (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_index_cjs_namespaceObject.StickyNoteNode, {
|
|
@@ -233,6 +234,7 @@ const AgentFlowInner = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
233
234
|
onRemoveBreakpoint,
|
|
234
235
|
onAddGuardrail,
|
|
235
236
|
onGoToSource,
|
|
237
|
+
onErrorAction,
|
|
236
238
|
onExpandResource,
|
|
237
239
|
onCollapseResource,
|
|
238
240
|
translations: resourceNodeTranslations,
|
|
@@ -247,6 +249,7 @@ const AgentFlowInner = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
247
249
|
onRemoveBreakpoint,
|
|
248
250
|
onAddGuardrail,
|
|
249
251
|
onGoToSource,
|
|
252
|
+
onErrorAction,
|
|
250
253
|
healthScore,
|
|
251
254
|
onHealthScoreClick,
|
|
252
255
|
createResourcePlaceholder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFlow.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/AgentFlow.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAIL,KAAK,cAAc,EAcpB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"AgentFlow.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/AgentFlow.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAIL,KAAK,cAAc,EAcpB,MAAM,aAAa,CAAC;AAsrBrB,eAAO,MAAM,SAAS,GAAI,OAAO,iBAAiB,CAAC,cAAc,CAAC,4CAQjE,CAAC"}
|
|
@@ -116,6 +116,7 @@ const createResourceNodeWrapper = (opts)=>(props)=>{
|
|
|
116
116
|
onRemoveBreakpoint: opts.onRemoveBreakpoint,
|
|
117
117
|
onAddGuardrail: opts.onAddGuardrail,
|
|
118
118
|
onGoToSource: opts.onGoToSource,
|
|
119
|
+
onErrorAction: opts.onErrorAction,
|
|
119
120
|
onRemoveResource: deleteNode,
|
|
120
121
|
onExpandResource: opts.onExpandResource,
|
|
121
122
|
onCollapseResource: opts.onCollapseResource,
|
|
@@ -124,7 +125,7 @@ const createResourceNodeWrapper = (opts)=>(props)=>{
|
|
|
124
125
|
suggestionGroupVersion: opts.suggestionGroupVersion
|
|
125
126
|
});
|
|
126
127
|
};
|
|
127
|
-
const AgentFlowInner = /*#__PURE__*/ memo(({ children, mode, spans, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onAddResource: _onAddResource, onSelectResource, setSpanForSelectedNode, getNodeFromSelectedSpan, onExpandResource, onCollapseResource, agentNodeTranslations, resourceNodeTranslations, stickyNoteNodeTranslations, canvasTranslations, enableTimelinePlayer, canvasRef, enableMcpTools, enableMemory, enableStickyNotes, enableInstructions, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroup, onAgentNodePositionChange, onResourceNodePositionChange, onOrganize, onUpdateStickyNote, zoomLevel, onZoomLevelChange })=>{
|
|
128
|
+
const AgentFlowInner = /*#__PURE__*/ memo(({ children, mode, spans, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onErrorAction, onAddResource: _onAddResource, onSelectResource, setSpanForSelectedNode, getNodeFromSelectedSpan, onExpandResource, onCollapseResource, agentNodeTranslations, resourceNodeTranslations, stickyNoteNodeTranslations, canvasTranslations, enableTimelinePlayer, canvasRef, enableMcpTools, enableMemory, enableStickyNotes, enableInstructions, healthScore, onHealthScoreClick, suggestionTranslations, suggestionGroup, onAgentNodePositionChange, onResourceNodePositionChange, onOrganize, onUpdateStickyNote, zoomLevel, onZoomLevelChange })=>{
|
|
128
129
|
const { nodes, edges, onNodesChange, onEdgesChange, onConnect, autoArrange, setSelectedNodeId, selectedNodeId, setDragging, expandAgent, collapseAgent, createResourcePlaceholder, actOnSuggestionGroup, currentSuggestionIndex, navigateToNextSuggestion, navigateToPreviousSuggestion, addStickyNote, paneContextMenu, openPaneContextMenu, closePaneContextMenu } = useAgentFlowStore();
|
|
129
130
|
const nodeTypesBase = useMemo(()=>({
|
|
130
131
|
stickyNote: (props)=>/*#__PURE__*/ jsx(StickyNoteNode, {
|
|
@@ -195,6 +196,7 @@ const AgentFlowInner = /*#__PURE__*/ memo(({ children, mode, spans, onEnable, on
|
|
|
195
196
|
onRemoveBreakpoint,
|
|
196
197
|
onAddGuardrail,
|
|
197
198
|
onGoToSource,
|
|
199
|
+
onErrorAction,
|
|
198
200
|
onExpandResource,
|
|
199
201
|
onCollapseResource,
|
|
200
202
|
translations: resourceNodeTranslations,
|
|
@@ -209,6 +211,7 @@ const AgentFlowInner = /*#__PURE__*/ memo(({ children, mode, spans, onEnable, on
|
|
|
209
211
|
onRemoveBreakpoint,
|
|
210
212
|
onAddGuardrail,
|
|
211
213
|
onGoToSource,
|
|
214
|
+
onErrorAction,
|
|
212
215
|
healthScore,
|
|
213
216
|
onHealthScoreClick,
|
|
214
217
|
createResourcePlaceholder,
|
|
@@ -28,7 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
DesignMode: ()=>DesignMode,
|
|
29
29
|
HealthScore: ()=>HealthScore,
|
|
30
30
|
ViewMode: ()=>ViewMode,
|
|
31
|
-
default: ()=>AgentFlow_stories
|
|
31
|
+
default: ()=>AgentFlow_stories,
|
|
32
|
+
ResourceWithErrorCTA: ()=>ResourceWithErrorCTA
|
|
32
33
|
});
|
|
33
34
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
35
|
const index_cjs_namespaceObject = require("../../layouts/index.cjs");
|
|
@@ -2023,15 +2024,154 @@ const ConversationalAgent = {
|
|
|
2023
2024
|
}
|
|
2024
2025
|
}
|
|
2025
2026
|
};
|
|
2027
|
+
const resourcesWithErrorCta = [
|
|
2028
|
+
{
|
|
2029
|
+
id: 'tool-broken',
|
|
2030
|
+
type: 'tool',
|
|
2031
|
+
name: 'Broken Tool',
|
|
2032
|
+
description: 'This tool has an error',
|
|
2033
|
+
iconUrl: '',
|
|
2034
|
+
hasBreakpoint: false,
|
|
2035
|
+
hasGuardrails: false,
|
|
2036
|
+
projectType: external_types_cjs_namespaceObject.ProjectType.Internal,
|
|
2037
|
+
errorAction: {
|
|
2038
|
+
icon: 'refresh',
|
|
2039
|
+
label: 'Retry Connection'
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
id: 'tool-config-error',
|
|
2044
|
+
type: 'tool',
|
|
2045
|
+
name: 'Misconfigured Tool',
|
|
2046
|
+
description: 'Configuration error detected',
|
|
2047
|
+
iconUrl: '',
|
|
2048
|
+
hasBreakpoint: false,
|
|
2049
|
+
hasGuardrails: false,
|
|
2050
|
+
projectType: external_types_cjs_namespaceObject.ProjectType.Api,
|
|
2051
|
+
errorAction: {
|
|
2052
|
+
icon: 'settings',
|
|
2053
|
+
label: 'Fix Configuration'
|
|
2054
|
+
}
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
id: 'context-error',
|
|
2058
|
+
type: 'context',
|
|
2059
|
+
name: 'Invalid Context',
|
|
2060
|
+
description: 'Context validation failed',
|
|
2061
|
+
hasBreakpoint: false,
|
|
2062
|
+
errorAction: {
|
|
2063
|
+
icon: 'warning',
|
|
2064
|
+
label: 'Review Issues'
|
|
2065
|
+
}
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
id: 'tool-working',
|
|
2069
|
+
type: 'tool',
|
|
2070
|
+
name: 'Working Tool',
|
|
2071
|
+
description: 'This tool is functioning normally (no error CTA)',
|
|
2072
|
+
iconUrl: '',
|
|
2073
|
+
hasBreakpoint: false,
|
|
2074
|
+
hasGuardrails: false,
|
|
2075
|
+
projectType: external_types_cjs_namespaceObject.ProjectType.Internal
|
|
2076
|
+
}
|
|
2077
|
+
];
|
|
2078
|
+
const ResourceWithErrorCTAWrapper = ()=>{
|
|
2079
|
+
const handleErrorAction = (0, external_react_namespaceObject.useCallback)((_resourceId, resource)=>{
|
|
2080
|
+
console.log(resource);
|
|
2081
|
+
const resourceName = resource.name;
|
|
2082
|
+
switch(resourceName){
|
|
2083
|
+
case 'Broken Tool':
|
|
2084
|
+
alert(`Retry action triggered for: ${resourceName}`);
|
|
2085
|
+
break;
|
|
2086
|
+
case 'Misconfigured Tool':
|
|
2087
|
+
alert(`Fix configuration action triggered for: ${resourceName}`);
|
|
2088
|
+
break;
|
|
2089
|
+
case 'Invalid Context':
|
|
2090
|
+
alert(`Review issues action triggered for: ${resourceName}`);
|
|
2091
|
+
break;
|
|
2092
|
+
default:
|
|
2093
|
+
alert(`Error action triggered for: ${resourceName}`);
|
|
2094
|
+
}
|
|
2095
|
+
}, []);
|
|
2096
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_cjs_namespaceObject.ReactFlowProvider, {
|
|
2097
|
+
children: [
|
|
2098
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_AgentFlow_cjs_namespaceObject.AgentFlow, {
|
|
2099
|
+
allowDragging: true,
|
|
2100
|
+
definition: sampleAgentDefinition,
|
|
2101
|
+
spans: [],
|
|
2102
|
+
name: "Test Agent",
|
|
2103
|
+
description: "Testing error CTA on resources",
|
|
2104
|
+
mode: "design",
|
|
2105
|
+
resources: resourcesWithErrorCta,
|
|
2106
|
+
enableMemory: true,
|
|
2107
|
+
enableInstructions: true,
|
|
2108
|
+
onErrorAction: handleErrorAction,
|
|
2109
|
+
instructions: {
|
|
2110
|
+
system: 'System instructions here',
|
|
2111
|
+
user: 'User instructions here'
|
|
2112
|
+
}
|
|
2113
|
+
}),
|
|
2114
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
|
|
2115
|
+
title: "Error CTA Demo",
|
|
2116
|
+
position: "top-right",
|
|
2117
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
|
|
2118
|
+
mt: 12,
|
|
2119
|
+
gap: 8,
|
|
2120
|
+
children: [
|
|
2121
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
2122
|
+
variant: core_namespaceObject.FontVariantToken.fontSizeS,
|
|
2123
|
+
children: [
|
|
2124
|
+
"Resources with ",
|
|
2125
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("strong", {
|
|
2126
|
+
children: "errorAction"
|
|
2127
|
+
}),
|
|
2128
|
+
" defined will show an error action button in their toolbar."
|
|
2129
|
+
]
|
|
2130
|
+
}),
|
|
2131
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
2132
|
+
variant: core_namespaceObject.FontVariantToken.fontSizeS,
|
|
2133
|
+
style: {
|
|
2134
|
+
color: 'var(--uix-canvas-foreground-de-emp)'
|
|
2135
|
+
},
|
|
2136
|
+
children: "Click the error action buttons (Retry, Fix Configuration, Review Issues) to trigger the custom actions."
|
|
2137
|
+
}),
|
|
2138
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
2139
|
+
variant: core_namespaceObject.FontVariantToken.fontSizeS,
|
|
2140
|
+
style: {
|
|
2141
|
+
color: 'var(--uix-canvas-foreground-de-emp)'
|
|
2142
|
+
},
|
|
2143
|
+
children: 'The "Working Tool" has no error action and shows the normal toolbar.'
|
|
2144
|
+
})
|
|
2145
|
+
]
|
|
2146
|
+
})
|
|
2147
|
+
})
|
|
2148
|
+
]
|
|
2149
|
+
});
|
|
2150
|
+
};
|
|
2151
|
+
const ResourceWithErrorCTA = {
|
|
2152
|
+
args: {
|
|
2153
|
+
mode: 'design'
|
|
2154
|
+
},
|
|
2155
|
+
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ResourceWithErrorCTAWrapper, {}),
|
|
2156
|
+
parameters: {
|
|
2157
|
+
docs: {
|
|
2158
|
+
description: {
|
|
2159
|
+
story: 'Demonstrates error call-to-action buttons on resource nodes. Resources can define an `errorAction` field with icon and label, and handle the action via the `onErrorAction` callback. The button appears next to the remove button in the toolbar. The consumer provides routing logic to handle different error actions for each resource. Hover or click on the resource nodes to see the error CTA buttons.'
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2026
2164
|
exports.ConversationalAgent = __webpack_exports__.ConversationalAgent;
|
|
2027
2165
|
exports.DesignMode = __webpack_exports__.DesignMode;
|
|
2028
2166
|
exports.HealthScore = __webpack_exports__.HealthScore;
|
|
2167
|
+
exports.ResourceWithErrorCTA = __webpack_exports__.ResourceWithErrorCTA;
|
|
2029
2168
|
exports.ViewMode = __webpack_exports__.ViewMode;
|
|
2030
2169
|
exports["default"] = __webpack_exports__["default"];
|
|
2031
2170
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
2032
2171
|
"ConversationalAgent",
|
|
2033
2172
|
"DesignMode",
|
|
2034
2173
|
"HealthScore",
|
|
2174
|
+
"ResourceWithErrorCTA",
|
|
2035
2175
|
"ViewMode",
|
|
2036
2176
|
"default"
|
|
2037
2177
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
@@ -7,4 +7,5 @@ export declare const DesignMode: Story;
|
|
|
7
7
|
export declare const ViewMode: Story;
|
|
8
8
|
export declare const HealthScore: Story;
|
|
9
9
|
export declare const ConversationalAgent: Story;
|
|
10
|
+
export declare const ResourceWithErrorCTA: Story;
|
|
10
11
|
//# sourceMappingURL=AgentFlow.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentFlow.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/AgentFlow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAkB5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAkBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAqgDxC,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AA8EF,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAC;AAyFF,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAmDF,eAAO,MAAM,mBAAmB,EAAE,KAajC,CAAC"}
|
|
1
|
+
{"version":3,"file":"AgentFlow.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/AgentFlow.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAkB5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAkBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAqgDxC,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AA8EF,eAAO,MAAM,QAAQ,EAAE,KAgBtB,CAAC;AAyFF,eAAO,MAAM,WAAW,EAAE,KAazB,CAAC;AAmDF,eAAO,MAAM,mBAAmB,EAAE,KAajC,CAAC;AA+HF,eAAO,MAAM,oBAAoB,EAAE,KAalC,CAAC"}
|
|
@@ -1991,4 +1991,141 @@ const ConversationalAgent = {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
};
|
|
1994
|
-
|
|
1994
|
+
const resourcesWithErrorCta = [
|
|
1995
|
+
{
|
|
1996
|
+
id: 'tool-broken',
|
|
1997
|
+
type: 'tool',
|
|
1998
|
+
name: 'Broken Tool',
|
|
1999
|
+
description: 'This tool has an error',
|
|
2000
|
+
iconUrl: '',
|
|
2001
|
+
hasBreakpoint: false,
|
|
2002
|
+
hasGuardrails: false,
|
|
2003
|
+
projectType: ProjectType.Internal,
|
|
2004
|
+
errorAction: {
|
|
2005
|
+
icon: 'refresh',
|
|
2006
|
+
label: 'Retry Connection'
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
id: 'tool-config-error',
|
|
2011
|
+
type: 'tool',
|
|
2012
|
+
name: 'Misconfigured Tool',
|
|
2013
|
+
description: 'Configuration error detected',
|
|
2014
|
+
iconUrl: '',
|
|
2015
|
+
hasBreakpoint: false,
|
|
2016
|
+
hasGuardrails: false,
|
|
2017
|
+
projectType: ProjectType.Api,
|
|
2018
|
+
errorAction: {
|
|
2019
|
+
icon: 'settings',
|
|
2020
|
+
label: 'Fix Configuration'
|
|
2021
|
+
}
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
id: 'context-error',
|
|
2025
|
+
type: 'context',
|
|
2026
|
+
name: 'Invalid Context',
|
|
2027
|
+
description: 'Context validation failed',
|
|
2028
|
+
hasBreakpoint: false,
|
|
2029
|
+
errorAction: {
|
|
2030
|
+
icon: 'warning',
|
|
2031
|
+
label: 'Review Issues'
|
|
2032
|
+
}
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
id: 'tool-working',
|
|
2036
|
+
type: 'tool',
|
|
2037
|
+
name: 'Working Tool',
|
|
2038
|
+
description: 'This tool is functioning normally (no error CTA)',
|
|
2039
|
+
iconUrl: '',
|
|
2040
|
+
hasBreakpoint: false,
|
|
2041
|
+
hasGuardrails: false,
|
|
2042
|
+
projectType: ProjectType.Internal
|
|
2043
|
+
}
|
|
2044
|
+
];
|
|
2045
|
+
const ResourceWithErrorCTAWrapper = ()=>{
|
|
2046
|
+
const handleErrorAction = useCallback((_resourceId, resource)=>{
|
|
2047
|
+
console.log(resource);
|
|
2048
|
+
const resourceName = resource.name;
|
|
2049
|
+
switch(resourceName){
|
|
2050
|
+
case 'Broken Tool':
|
|
2051
|
+
alert(`Retry action triggered for: ${resourceName}`);
|
|
2052
|
+
break;
|
|
2053
|
+
case 'Misconfigured Tool':
|
|
2054
|
+
alert(`Fix configuration action triggered for: ${resourceName}`);
|
|
2055
|
+
break;
|
|
2056
|
+
case 'Invalid Context':
|
|
2057
|
+
alert(`Review issues action triggered for: ${resourceName}`);
|
|
2058
|
+
break;
|
|
2059
|
+
default:
|
|
2060
|
+
alert(`Error action triggered for: ${resourceName}`);
|
|
2061
|
+
}
|
|
2062
|
+
}, []);
|
|
2063
|
+
return /*#__PURE__*/ jsxs(ReactFlowProvider, {
|
|
2064
|
+
children: [
|
|
2065
|
+
/*#__PURE__*/ jsx(AgentFlow, {
|
|
2066
|
+
allowDragging: true,
|
|
2067
|
+
definition: sampleAgentDefinition,
|
|
2068
|
+
spans: [],
|
|
2069
|
+
name: "Test Agent",
|
|
2070
|
+
description: "Testing error CTA on resources",
|
|
2071
|
+
mode: "design",
|
|
2072
|
+
resources: resourcesWithErrorCta,
|
|
2073
|
+
enableMemory: true,
|
|
2074
|
+
enableInstructions: true,
|
|
2075
|
+
onErrorAction: handleErrorAction,
|
|
2076
|
+
instructions: {
|
|
2077
|
+
system: 'System instructions here',
|
|
2078
|
+
user: 'User instructions here'
|
|
2079
|
+
}
|
|
2080
|
+
}),
|
|
2081
|
+
/*#__PURE__*/ jsx(StoryInfoPanel, {
|
|
2082
|
+
title: "Error CTA Demo",
|
|
2083
|
+
position: "top-right",
|
|
2084
|
+
children: /*#__PURE__*/ jsxs(Column, {
|
|
2085
|
+
mt: 12,
|
|
2086
|
+
gap: 8,
|
|
2087
|
+
children: [
|
|
2088
|
+
/*#__PURE__*/ jsxs(ApTypography, {
|
|
2089
|
+
variant: FontVariantToken.fontSizeS,
|
|
2090
|
+
children: [
|
|
2091
|
+
"Resources with ",
|
|
2092
|
+
/*#__PURE__*/ jsx("strong", {
|
|
2093
|
+
children: "errorAction"
|
|
2094
|
+
}),
|
|
2095
|
+
" defined will show an error action button in their toolbar."
|
|
2096
|
+
]
|
|
2097
|
+
}),
|
|
2098
|
+
/*#__PURE__*/ jsx(ApTypography, {
|
|
2099
|
+
variant: FontVariantToken.fontSizeS,
|
|
2100
|
+
style: {
|
|
2101
|
+
color: 'var(--uix-canvas-foreground-de-emp)'
|
|
2102
|
+
},
|
|
2103
|
+
children: "Click the error action buttons (Retry, Fix Configuration, Review Issues) to trigger the custom actions."
|
|
2104
|
+
}),
|
|
2105
|
+
/*#__PURE__*/ jsx(ApTypography, {
|
|
2106
|
+
variant: FontVariantToken.fontSizeS,
|
|
2107
|
+
style: {
|
|
2108
|
+
color: 'var(--uix-canvas-foreground-de-emp)'
|
|
2109
|
+
},
|
|
2110
|
+
children: 'The "Working Tool" has no error action and shows the normal toolbar.'
|
|
2111
|
+
})
|
|
2112
|
+
]
|
|
2113
|
+
})
|
|
2114
|
+
})
|
|
2115
|
+
]
|
|
2116
|
+
});
|
|
2117
|
+
};
|
|
2118
|
+
const ResourceWithErrorCTA = {
|
|
2119
|
+
args: {
|
|
2120
|
+
mode: 'design'
|
|
2121
|
+
},
|
|
2122
|
+
render: ()=>/*#__PURE__*/ jsx(ResourceWithErrorCTAWrapper, {}),
|
|
2123
|
+
parameters: {
|
|
2124
|
+
docs: {
|
|
2125
|
+
description: {
|
|
2126
|
+
story: 'Demonstrates error call-to-action buttons on resource nodes. Resources can define an `errorAction` field with icon and label, and handle the action via the `onErrorAction` callback. The button appears next to the remove button in the toolbar. The consumer provides routing logic to handle different error actions for each resource. Hover or click on the resource nodes to see the error CTA buttons.'
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
};
|
|
2131
|
+
export { ConversationalAgent, DesignMode, HealthScore, ResourceWithErrorCTA, ViewMode, AgentFlow_stories as default };
|
|
@@ -39,7 +39,7 @@ const ExecutionStatusIcon_cjs_namespaceObject = require("../../ExecutionStatusIc
|
|
|
39
39
|
const ToolResourceIcon_index_cjs_namespaceObject = require("../components/ToolResourceIcon/index.cjs");
|
|
40
40
|
const agent_flow_store_cjs_namespaceObject = require("../store/agent-flow-store.cjs");
|
|
41
41
|
const alwaysShowNotches = ()=>true;
|
|
42
|
-
const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
42
|
+
const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onErrorAction, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
43
43
|
const { nodes: _nodes, deleteNode, actOnSuggestion } = (0, agent_flow_store_cjs_namespaceObject.useAgentFlowStore)();
|
|
44
44
|
const edges = (0, agent_flow_store_cjs_namespaceObject.useEdges)();
|
|
45
45
|
const connectedHandlePosition = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
@@ -58,6 +58,7 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
58
58
|
const suggestionId = data.suggestionId;
|
|
59
59
|
const suggestionType = isSuggestion ? data.suggestionType : void 0;
|
|
60
60
|
const suggestTranslations = suggestionTranslations ?? external_types_cjs_namespaceObject.DefaultSuggestionTranslations;
|
|
61
|
+
const errorAction = data.errorAction ?? void 0;
|
|
61
62
|
const handleClickEnable = (0, external_react_namespaceObject.useCallback)(()=>{
|
|
62
63
|
onEnable?.(id, data);
|
|
63
64
|
}, [
|
|
@@ -106,6 +107,13 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
106
107
|
id,
|
|
107
108
|
deleteNode
|
|
108
109
|
]);
|
|
110
|
+
const handleClickErrorAction = (0, external_react_namespaceObject.useCallback)(()=>{
|
|
111
|
+
onErrorAction?.(id, data);
|
|
112
|
+
}, [
|
|
113
|
+
id,
|
|
114
|
+
data,
|
|
115
|
+
onErrorAction
|
|
116
|
+
]);
|
|
109
117
|
const handleActOnSuggestion = (0, external_react_namespaceObject.useCallback)((suggestionId, action)=>{
|
|
110
118
|
actOnSuggestion(suggestionId, action);
|
|
111
119
|
}, [
|
|
@@ -225,6 +233,13 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
225
233
|
disabled: false,
|
|
226
234
|
onAction: handleClickRemove
|
|
227
235
|
};
|
|
236
|
+
const errorCtaAction = {
|
|
237
|
+
id: 'error-cta',
|
|
238
|
+
icon: errorAction?.icon ?? '',
|
|
239
|
+
label: errorAction?.label ?? '',
|
|
240
|
+
disabled: false,
|
|
241
|
+
onAction: handleClickErrorAction
|
|
242
|
+
};
|
|
228
243
|
const toggleEnabledAction = {
|
|
229
244
|
id: 'toggle-enabled',
|
|
230
245
|
icon: void 0,
|
|
@@ -240,12 +255,13 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
240
255
|
onAction: ()=>{}
|
|
241
256
|
};
|
|
242
257
|
const actions = [
|
|
243
|
-
removeAction
|
|
258
|
+
removeAction,
|
|
259
|
+
...errorAction ? [
|
|
260
|
+
errorCtaAction
|
|
261
|
+
] : []
|
|
244
262
|
];
|
|
245
263
|
const overflowActions = [
|
|
246
|
-
|
|
247
|
-
toggleBreakpointAction
|
|
248
|
-
] : [],
|
|
264
|
+
toggleBreakpointAction,
|
|
249
265
|
...'tool' === data.type ? [
|
|
250
266
|
addGuardrailAction
|
|
251
267
|
] : [],
|
|
@@ -282,8 +298,10 @@ const ResourceNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ d
|
|
|
282
298
|
handleClickAddGuardrail,
|
|
283
299
|
handleClickGoToSource,
|
|
284
300
|
handleClickRemove,
|
|
301
|
+
handleClickErrorAction,
|
|
285
302
|
handleActOnSuggestion,
|
|
286
|
-
suggestTranslations
|
|
303
|
+
suggestTranslations,
|
|
304
|
+
errorAction
|
|
287
305
|
]);
|
|
288
306
|
const toolTopHandles = (0, external_react_namespaceObject.useMemo)(()=>[
|
|
289
307
|
{
|
|
@@ -11,6 +11,7 @@ interface ResourceNodeProps extends NodeProps<AgentFlowResourceNode> {
|
|
|
11
11
|
onRemoveBreakpoint?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
12
12
|
onAddGuardrail?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
13
13
|
onGoToSource?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
14
|
+
onErrorAction?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
14
15
|
onExpandResource?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
15
16
|
onCollapseResource?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
16
17
|
onRemoveResource?: (resourceId: string) => void;
|
|
@@ -18,6 +19,6 @@ interface ResourceNodeProps extends NodeProps<AgentFlowResourceNode> {
|
|
|
18
19
|
suggestionTranslations?: SuggestionTranslations;
|
|
19
20
|
suggestionGroupVersion?: string;
|
|
20
21
|
}
|
|
21
|
-
export declare const ResourceNode: import("react").MemoExoticComponent<({ data, selected, id, mode, hasError, hasSuccess, hasRunning, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps }: ResourceNodeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
export declare const ResourceNode: import("react").MemoExoticComponent<({ data, selected, id, mode, hasError, hasSuccess, hasRunning, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onErrorAction, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps }: ResourceNodeProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
23
|
export {};
|
|
23
24
|
//# sourceMappingURL=ResourceNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceNode.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/AgentCanvas/nodes/ResourceNode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,gBAAgB,CAAC;AAexB,UAAU,iBAAkB,SAAQ,SAAS,CAAC,qBAAqB,CAAC;IAClE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7E,SAAS,CAAC,EAAE,CAAC,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"}
|
|
@@ -11,7 +11,7 @@ import { ExecutionStatusIcon } from "../../ExecutionStatusIcon/ExecutionStatusIc
|
|
|
11
11
|
import { ToolResourceIcon } from "../components/ToolResourceIcon/index.js";
|
|
12
12
|
import { useAgentFlowStore, useEdges } from "../store/agent-flow-store.js";
|
|
13
13
|
const alwaysShowNotches = ()=>true;
|
|
14
|
-
const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
14
|
+
const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError = false, hasSuccess = false, hasRunning = false, onEnable, onDisable, onAddBreakpoint, onRemoveBreakpoint, onAddGuardrail, onGoToSource, onErrorAction, translations, suggestionTranslations, suggestionGroupVersion, ...nodeProps })=>{
|
|
15
15
|
const { nodes: _nodes, deleteNode, actOnSuggestion } = useAgentFlowStore();
|
|
16
16
|
const edges = useEdges();
|
|
17
17
|
const connectedHandlePosition = useMemo(()=>{
|
|
@@ -30,6 +30,7 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
30
30
|
const suggestionId = data.suggestionId;
|
|
31
31
|
const suggestionType = isSuggestion ? data.suggestionType : void 0;
|
|
32
32
|
const suggestTranslations = suggestionTranslations ?? DefaultSuggestionTranslations;
|
|
33
|
+
const errorAction = data.errorAction ?? void 0;
|
|
33
34
|
const handleClickEnable = useCallback(()=>{
|
|
34
35
|
onEnable?.(id, data);
|
|
35
36
|
}, [
|
|
@@ -78,6 +79,13 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
78
79
|
id,
|
|
79
80
|
deleteNode
|
|
80
81
|
]);
|
|
82
|
+
const handleClickErrorAction = useCallback(()=>{
|
|
83
|
+
onErrorAction?.(id, data);
|
|
84
|
+
}, [
|
|
85
|
+
id,
|
|
86
|
+
data,
|
|
87
|
+
onErrorAction
|
|
88
|
+
]);
|
|
81
89
|
const handleActOnSuggestion = useCallback((suggestionId, action)=>{
|
|
82
90
|
actOnSuggestion(suggestionId, action);
|
|
83
91
|
}, [
|
|
@@ -197,6 +205,13 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
197
205
|
disabled: false,
|
|
198
206
|
onAction: handleClickRemove
|
|
199
207
|
};
|
|
208
|
+
const errorCtaAction = {
|
|
209
|
+
id: 'error-cta',
|
|
210
|
+
icon: errorAction?.icon ?? '',
|
|
211
|
+
label: errorAction?.label ?? '',
|
|
212
|
+
disabled: false,
|
|
213
|
+
onAction: handleClickErrorAction
|
|
214
|
+
};
|
|
200
215
|
const toggleEnabledAction = {
|
|
201
216
|
id: 'toggle-enabled',
|
|
202
217
|
icon: void 0,
|
|
@@ -212,12 +227,13 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
212
227
|
onAction: ()=>{}
|
|
213
228
|
};
|
|
214
229
|
const actions = [
|
|
215
|
-
removeAction
|
|
230
|
+
removeAction,
|
|
231
|
+
...errorAction ? [
|
|
232
|
+
errorCtaAction
|
|
233
|
+
] : []
|
|
216
234
|
];
|
|
217
235
|
const overflowActions = [
|
|
218
|
-
|
|
219
|
-
toggleBreakpointAction
|
|
220
|
-
] : [],
|
|
236
|
+
toggleBreakpointAction,
|
|
221
237
|
...'tool' === data.type ? [
|
|
222
238
|
addGuardrailAction
|
|
223
239
|
] : [],
|
|
@@ -254,8 +270,10 @@ const ResourceNode = /*#__PURE__*/ memo(({ data, selected, id, mode, hasError =
|
|
|
254
270
|
handleClickAddGuardrail,
|
|
255
271
|
handleClickGoToSource,
|
|
256
272
|
handleClickRemove,
|
|
273
|
+
handleClickErrorAction,
|
|
257
274
|
handleActOnSuggestion,
|
|
258
|
-
suggestTranslations
|
|
275
|
+
suggestTranslations,
|
|
276
|
+
errorAction
|
|
259
277
|
]);
|
|
260
278
|
const toolTopHandles = useMemo(()=>[
|
|
261
279
|
{
|
|
@@ -160,6 +160,13 @@ const BaseNodeComponent = (props)=>{
|
|
|
160
160
|
}, [
|
|
161
161
|
handleConfigurations
|
|
162
162
|
]);
|
|
163
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
164
|
+
updateNodeInternals(id);
|
|
165
|
+
}, [
|
|
166
|
+
handleConfigurations,
|
|
167
|
+
id,
|
|
168
|
+
updateNodeInternals
|
|
169
|
+
]);
|
|
163
170
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
164
171
|
if (!originalHeightRef.current && height) {
|
|
165
172
|
originalHeightRef.current = height;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,0CAA0C,CAAC;AAiChG,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAkB,MAAM,0CAA0C,CAAC;AAiChG,OAAO,KAAK,EACV,YAAY,EAIb,MAAM,kBAAkB,CAAC;AAwgB1B,eAAO,MAAM,QAAQ,8CAlgBa,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,6CAkgBhB,CAAC"}
|
|
@@ -132,6 +132,13 @@ const BaseNodeComponent = (props)=>{
|
|
|
132
132
|
}, [
|
|
133
133
|
handleConfigurations
|
|
134
134
|
]);
|
|
135
|
+
useEffect(()=>{
|
|
136
|
+
updateNodeInternals(id);
|
|
137
|
+
}, [
|
|
138
|
+
handleConfigurations,
|
|
139
|
+
id,
|
|
140
|
+
updateNodeInternals
|
|
141
|
+
]);
|
|
135
142
|
useEffect(()=>{
|
|
136
143
|
if (!originalHeightRef.current && height) {
|
|
137
144
|
originalHeightRef.current = height;
|
|
@@ -186,7 +186,7 @@ const sampleManifest = {
|
|
|
186
186
|
type: 'target',
|
|
187
187
|
handleType: 'input',
|
|
188
188
|
label: '{item.label}',
|
|
189
|
-
repeat: 'dynamicInputs'
|
|
189
|
+
repeat: 'inputs.dynamicInputs'
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
},
|
|
@@ -198,14 +198,14 @@ const sampleManifest = {
|
|
|
198
198
|
type: 'source',
|
|
199
199
|
handleType: 'output',
|
|
200
200
|
label: '{item.name}',
|
|
201
|
-
repeat: 'dynamicOutputs'
|
|
201
|
+
repeat: 'inputs.dynamicOutputs'
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
id: 'default',
|
|
205
205
|
type: 'source',
|
|
206
206
|
handleType: 'output',
|
|
207
207
|
label: 'Default Output',
|
|
208
|
-
visible: 'hasDefault'
|
|
208
|
+
visible: 'inputs.hasDefault'
|
|
209
209
|
}
|
|
210
210
|
]
|
|
211
211
|
},
|
|
@@ -217,7 +217,7 @@ const sampleManifest = {
|
|
|
217
217
|
type: 'source',
|
|
218
218
|
handleType: 'artifact',
|
|
219
219
|
label: 'Artifact {index}: {item.type}',
|
|
220
|
-
repeat: 'artifacts'
|
|
220
|
+
repeat: 'inputs.artifacts'
|
|
221
221
|
}
|
|
222
222
|
]
|
|
223
223
|
}
|
|
@@ -155,7 +155,7 @@ const sampleManifest = {
|
|
|
155
155
|
type: 'target',
|
|
156
156
|
handleType: 'input',
|
|
157
157
|
label: '{item.label}',
|
|
158
|
-
repeat: 'dynamicInputs'
|
|
158
|
+
repeat: 'inputs.dynamicInputs'
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
@@ -167,14 +167,14 @@ const sampleManifest = {
|
|
|
167
167
|
type: 'source',
|
|
168
168
|
handleType: 'output',
|
|
169
169
|
label: '{item.name}',
|
|
170
|
-
repeat: 'dynamicOutputs'
|
|
170
|
+
repeat: 'inputs.dynamicOutputs'
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
id: 'default',
|
|
174
174
|
type: 'source',
|
|
175
175
|
handleType: 'output',
|
|
176
176
|
label: 'Default Output',
|
|
177
|
-
visible: 'hasDefault'
|
|
177
|
+
visible: 'inputs.hasDefault'
|
|
178
178
|
}
|
|
179
179
|
]
|
|
180
180
|
},
|
|
@@ -186,7 +186,7 @@ const sampleManifest = {
|
|
|
186
186
|
type: 'source',
|
|
187
187
|
handleType: 'artifact',
|
|
188
188
|
label: 'Artifact {index}: {item.type}',
|
|
189
|
-
repeat: 'artifacts'
|
|
189
|
+
repeat: 'inputs.artifacts'
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
}
|
package/dist/canvas/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { NodeProps } from './xyflow/system.ts';
|
|
|
3
3
|
import type { IRawSpan } from '../types/TraceModels';
|
|
4
4
|
import type { BaseCanvasRef } from './components/BaseCanvas/BaseCanvas.types';
|
|
5
5
|
import type { StickyNoteColor, StickyNoteData } from './components/StickyNoteNode/StickyNoteNode.types';
|
|
6
|
+
import { ToolbarActionItem } from './components/Toolbar';
|
|
6
7
|
export type { CanvasLevel } from './types/canvas.types';
|
|
7
8
|
export interface AgentFlowStickyNote {
|
|
8
9
|
id: string;
|
|
@@ -62,6 +63,7 @@ export type AgentFlowToolResource = {
|
|
|
62
63
|
hasGuardrails?: boolean;
|
|
63
64
|
projectId?: string;
|
|
64
65
|
isDisabled?: boolean;
|
|
66
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
65
67
|
};
|
|
66
68
|
export type AgentFlowContextResource = {
|
|
67
69
|
id: string;
|
|
@@ -75,6 +77,7 @@ export type AgentFlowContextResource = {
|
|
|
75
77
|
hasGuardrails?: boolean;
|
|
76
78
|
projectId?: string;
|
|
77
79
|
isDisabled?: boolean;
|
|
80
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
78
81
|
};
|
|
79
82
|
export type AgentFlowEscalationResource = {
|
|
80
83
|
id: string;
|
|
@@ -88,6 +91,7 @@ export type AgentFlowEscalationResource = {
|
|
|
88
91
|
hasGuardrails?: boolean;
|
|
89
92
|
projectId?: string;
|
|
90
93
|
isDisabled?: boolean;
|
|
94
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
91
95
|
};
|
|
92
96
|
export type AgentFlowMcpResource = {
|
|
93
97
|
id: string;
|
|
@@ -109,6 +113,7 @@ export type AgentFlowMcpResource = {
|
|
|
109
113
|
hasGuardrails?: boolean;
|
|
110
114
|
projectId?: string;
|
|
111
115
|
isDisabled?: boolean;
|
|
116
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
112
117
|
};
|
|
113
118
|
export type AgentFlowMemorySpaceResource = {
|
|
114
119
|
id: string;
|
|
@@ -122,6 +127,7 @@ export type AgentFlowMemorySpaceResource = {
|
|
|
122
127
|
hasGuardrails?: boolean;
|
|
123
128
|
projectId?: string;
|
|
124
129
|
isDisabled?: boolean;
|
|
130
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
125
131
|
};
|
|
126
132
|
export type AgentFlowResource = AgentFlowContextResource | AgentFlowEscalationResource | AgentFlowMcpResource | AgentFlowToolResource | AgentFlowMemorySpaceResource;
|
|
127
133
|
export type AgentFlowResourceType = AgentFlowResource['type'];
|
|
@@ -169,6 +175,7 @@ export type AgentFlowProps = {
|
|
|
169
175
|
onRemoveBreakpoint?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
170
176
|
onAddGuardrail?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
171
177
|
onGoToSource?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
178
|
+
onErrorAction?: (resourceId: string, resource: AgentFlowResourceNodeData) => void;
|
|
172
179
|
onAddResource?: (type: AgentFlowResourceType) => void;
|
|
173
180
|
onRemoveResource?: (resource: AgentFlowResource) => void;
|
|
174
181
|
onAgentNodeClick?: () => void;
|
|
@@ -291,6 +298,7 @@ export type SharedResourceData = {
|
|
|
291
298
|
suggestionId?: string;
|
|
292
299
|
suggestionType?: SuggestionType;
|
|
293
300
|
isPlaceholder?: boolean;
|
|
301
|
+
errorAction?: Omit<ToolbarActionItem, 'id' | 'onAction'>;
|
|
294
302
|
};
|
|
295
303
|
export type AgentFlowResourceNodeData = (ContextResourceData | EscalationResourceData | McpResourceData | ToolResourceData | MemorySpaceResourceData) & SharedResourceData;
|
|
296
304
|
export type AgentFlowResourceNode = Node<AgentFlowResourceNodeData, 'resource'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/canvas/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EACJ,IAAI,EACJ,QAAQ,IAAI,iBAAiB,EAC9B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACf,MAAM,kDAAkD,CAAC;AAG1D,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE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jC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,iCAAiC,EAAE,0BAG/C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,kBAOvC,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,6BAA6B,EAAE,sBAK3C,CAAC;AAkCF,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAC3C,aAAa,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAC/C,OAAO,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACnC,wBAAwB,CAmC1B"}
|
|
@@ -27,7 +27,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
COLLAPSED_NODE_SIZE: ()=>COLLAPSED_NODE_SIZE,
|
|
28
28
|
getCollapsedShape: ()=>getCollapsedShape,
|
|
29
29
|
getCollapsedSize: ()=>getCollapsedSize,
|
|
30
|
-
getExpandedShape: ()=>getExpandedShape
|
|
30
|
+
getExpandedShape: ()=>getExpandedShape,
|
|
31
|
+
getExpandedSize: ()=>getExpandedSize
|
|
31
32
|
});
|
|
32
33
|
const COLLAPSED_NODE_SIZE = 96;
|
|
33
34
|
const getCollapsedShape = (originalShape)=>{
|
|
@@ -39,15 +40,21 @@ const getExpandedShape = (collapsedShape)=>{
|
|
|
39
40
|
return 'square' === shape ? 'rectangle' : shape;
|
|
40
41
|
};
|
|
41
42
|
const getCollapsedSize = (width, height, measured)=>height ?? measured?.height ?? width ?? measured?.width ?? COLLAPSED_NODE_SIZE;
|
|
43
|
+
const getExpandedSize = (width, height, measured)=>({
|
|
44
|
+
width: width ?? measured?.width ?? COLLAPSED_NODE_SIZE,
|
|
45
|
+
height: height ?? measured?.height ?? COLLAPSED_NODE_SIZE
|
|
46
|
+
});
|
|
42
47
|
exports.COLLAPSED_NODE_SIZE = __webpack_exports__.COLLAPSED_NODE_SIZE;
|
|
43
48
|
exports.getCollapsedShape = __webpack_exports__.getCollapsedShape;
|
|
44
49
|
exports.getCollapsedSize = __webpack_exports__.getCollapsedSize;
|
|
45
50
|
exports.getExpandedShape = __webpack_exports__.getExpandedShape;
|
|
51
|
+
exports.getExpandedSize = __webpack_exports__.getExpandedSize;
|
|
46
52
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
47
53
|
"COLLAPSED_NODE_SIZE",
|
|
48
54
|
"getCollapsedShape",
|
|
49
55
|
"getCollapsedSize",
|
|
50
|
-
"getExpandedShape"
|
|
56
|
+
"getExpandedShape",
|
|
57
|
+
"getExpandedSize"
|
|
51
58
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
52
59
|
Object.defineProperty(exports, '__esModule', {
|
|
53
60
|
value: true
|
|
@@ -6,4 +6,11 @@ export declare const getCollapsedSize: (width: number | undefined, height: numbe
|
|
|
6
6
|
width?: number;
|
|
7
7
|
height?: number;
|
|
8
8
|
}) => number;
|
|
9
|
+
export declare const getExpandedSize: (width: number | undefined, height: number | undefined, measured?: {
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
}) => {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
9
16
|
//# sourceMappingURL=collapse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils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IAAC,MAAM,EAAE,MAAM,CAAA;CAKjC,CAAC"}
|
|
@@ -8,4 +8,8 @@ const getExpandedShape = (collapsedShape)=>{
|
|
|
8
8
|
return 'square' === shape ? 'rectangle' : shape;
|
|
9
9
|
};
|
|
10
10
|
const getCollapsedSize = (width, height, measured)=>height ?? measured?.height ?? width ?? measured?.width ?? COLLAPSED_NODE_SIZE;
|
|
11
|
-
|
|
11
|
+
const getExpandedSize = (width, height, measured)=>({
|
|
12
|
+
width: width ?? measured?.width ?? COLLAPSED_NODE_SIZE,
|
|
13
|
+
height: height ?? measured?.height ?? COLLAPSED_NODE_SIZE
|
|
14
|
+
});
|
|
15
|
+
export { COLLAPSED_NODE_SIZE, getCollapsedShape, getCollapsedSize, getExpandedShape, getExpandedSize };
|
|
@@ -50,7 +50,7 @@ function resolveVisibility(visible, context) {
|
|
|
50
50
|
if (void 0 === visible) return true;
|
|
51
51
|
if ('boolean' == typeof visible) return visible;
|
|
52
52
|
if ('string' == typeof visible) {
|
|
53
|
-
const value = getPropertyByPath(context
|
|
53
|
+
const value = getPropertyByPath(context, visible);
|
|
54
54
|
return Boolean(value);
|
|
55
55
|
}
|
|
56
56
|
return true;
|
|
@@ -69,7 +69,7 @@ function resolveHandles(handleGroups, context) {
|
|
|
69
69
|
const handleBaseVisible = resolveVisibility(handle.visible, context);
|
|
70
70
|
const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
|
|
71
71
|
if (handle.repeat) {
|
|
72
|
-
const array = getPropertyByPath(context
|
|
72
|
+
const array = getPropertyByPath(context, handle.repeat);
|
|
73
73
|
if (!Array.isArray(array)) {
|
|
74
74
|
console.warn(`Repeat expression "${handle.repeat}" did not resolve to an array. Skipping handle.`);
|
|
75
75
|
return [];
|
|
@@ -19,7 +19,7 @@ function resolveVisibility(visible, context) {
|
|
|
19
19
|
if (void 0 === visible) return true;
|
|
20
20
|
if ('boolean' == typeof visible) return visible;
|
|
21
21
|
if ('string' == typeof visible) {
|
|
22
|
-
const value = getPropertyByPath(context
|
|
22
|
+
const value = getPropertyByPath(context, visible);
|
|
23
23
|
return Boolean(value);
|
|
24
24
|
}
|
|
25
25
|
return true;
|
|
@@ -38,7 +38,7 @@ function resolveHandles(handleGroups, context) {
|
|
|
38
38
|
const handleBaseVisible = resolveVisibility(handle.visible, context);
|
|
39
39
|
const handleVisible = isCollapsed && isArtifactHandle ? false : handleBaseVisible;
|
|
40
40
|
if (handle.repeat) {
|
|
41
|
-
const array = getPropertyByPath(context
|
|
41
|
+
const array = getPropertyByPath(context, handle.repeat);
|
|
42
42
|
if (!Array.isArray(array)) {
|
|
43
43
|
console.warn(`Repeat expression "${handle.repeat}" did not resolve to an array. Skipping handle.`);
|
|
44
44
|
return [];
|
|
@@ -133,7 +133,8 @@ const createResourceNode = (resource, index, props, parentNodeId)=>{
|
|
|
133
133
|
isCurrentBreakpoint: resource.isCurrentBreakpoint ?? false,
|
|
134
134
|
hasGuardrails: resource.hasGuardrails ?? false,
|
|
135
135
|
isDisabled: resource.isDisabled ?? false,
|
|
136
|
-
errors: resource.errors
|
|
136
|
+
errors: resource.errors,
|
|
137
|
+
errorAction: resource.errorAction
|
|
137
138
|
};
|
|
138
139
|
const hasExplicitPosition = 'position' in resource && 'object' == typeof resource.position && null !== resource.position;
|
|
139
140
|
const position = hasExplicitPosition ? resource.position : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props-helpers.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/props-helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAUlB,eAAO,MAAM,iBAAiB,OAAO,CAAC;AACtC,eAAO,MAAM,iBAAiB,OAAO,CAAC;AA6CtC,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AG,OAMnF,CAAC;AAqBF,eAAO,MAAM,aAAa,GAAI,OAAO,cAAc,EAAE,OAAO,QAAQ,EAAE,KAAG,OAExE,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,OAAO,cAAc,EAAE,OAAO,QAAQ,EAAE,KAAG,OAE1E,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,OAAO,cAAc,EAAE,OAAO,QAAQ,EAAE,KAAG,OAM1E,CAAC;AAGF,eAAO,MAAM,eAAe,GAAI,OAAO,QAAQ,EAAE,KAAG,OAYnD,CAAC;AAqKF,eAAO,MAAM,kBAAkB,GAC7B,WAAW,aAAa,EACxB,cAAc,qBAAqB,EACnC,OAAO,cAAc,KACpB,mBAqBF,CAAC;AAQF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,cAAc,EACrB,eAAe,MAAM,EACrB,gBAAgB,mBAAmB,EAAE,KACpC;IAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAAC,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAkE9D,CAAC;AAWF,eAAO,MAAM,8BAA8B,GACzC,iBAAiB,wBAAwB,EACzC,OAAO,cAAc,EACrB,WAAW,aAAa,EACxB,mBAAmB,iBAAiB,EAAE,EACtC,gBAAgB,mBAAmB,EAAE,KACpC;IAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAAC,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAqEhE,CAAC"}
|
|
@@ -94,7 +94,8 @@ const createResourceNode = (resource, index, props, parentNodeId)=>{
|
|
|
94
94
|
isCurrentBreakpoint: resource.isCurrentBreakpoint ?? false,
|
|
95
95
|
hasGuardrails: resource.hasGuardrails ?? false,
|
|
96
96
|
isDisabled: resource.isDisabled ?? false,
|
|
97
|
-
errors: resource.errors
|
|
97
|
+
errors: resource.errors,
|
|
98
|
+
errorAction: resource.errorAction
|
|
98
99
|
};
|
|
99
100
|
const hasExplicitPosition = 'position' in resource && 'object' == typeof resource.position && null !== resource.position;
|
|
100
101
|
const position = hasExplicitPosition ? resource.position : {
|