@usecrow/ui 0.1.42 → 0.1.43
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/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3168,6 +3168,19 @@ function CrowWidget({
|
|
|
3168
3168
|
});
|
|
3169
3169
|
}
|
|
3170
3170
|
}, [browserUseEnabled, isLoadingStyles, productId, apiUrl, autoTools]);
|
|
3171
|
+
useEffect(() => {
|
|
3172
|
+
if (browserUseEnabled && !isLoadingStyles && !autoTools.execute_recorded_workflow) {
|
|
3173
|
+
import('@usecrow/client/browser').then(({ createExecuteRecordedWorkflowTool }) => {
|
|
3174
|
+
setAutoTools((prev) => ({
|
|
3175
|
+
...prev,
|
|
3176
|
+
execute_recorded_workflow: createExecuteRecordedWorkflowTool({ productId, apiUrl })
|
|
3177
|
+
}));
|
|
3178
|
+
console.log("[Crow] execute_recorded_workflow tool auto-loaded");
|
|
3179
|
+
}).catch((err) => {
|
|
3180
|
+
console.warn("[Crow] Failed to load execute_recorded_workflow:", err);
|
|
3181
|
+
});
|
|
3182
|
+
}
|
|
3183
|
+
}, [browserUseEnabled, isLoadingStyles, productId, apiUrl, autoTools]);
|
|
3171
3184
|
useEffect(() => {
|
|
3172
3185
|
if (pageNavigationEnabled && pageNavigationRoutes.length > 0 && !isLoadingStyles) {
|
|
3173
3186
|
import('@usecrow/client').then(({ createNavigateToPageTool }) => {
|