@genfeedai/workflow-ui 0.1.0 → 0.1.2

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.
Files changed (45) hide show
  1. package/dist/canvas.js +13 -13
  2. package/dist/canvas.mjs +7 -7
  3. package/dist/{chunk-HPQT36RR.js → chunk-3TMV3K34.js} +18 -27
  4. package/dist/{chunk-Z7PWFZG5.js → chunk-4MZ62VMF.js} +8 -1
  5. package/dist/{chunk-VOGL2WCE.mjs → chunk-7P2JWDC7.mjs} +9 -18
  6. package/dist/{chunk-FT64PCUP.mjs → chunk-AOTUCJMA.mjs} +6 -15
  7. package/dist/{chunk-LAJ34AH2.mjs → chunk-AUZR6REQ.mjs} +4 -7
  8. package/dist/{chunk-EC2ZIWOK.js → chunk-AXFOCPPP.js} +36 -45
  9. package/dist/{chunk-CETJJ73S.js → chunk-BMFRA6GK.js} +28 -37
  10. package/dist/{chunk-XV5Z5XYR.mjs → chunk-E3YBVMYZ.mjs} +403 -59
  11. package/dist/{chunk-H6LZKSLY.js → chunk-ECD5J2BA.js} +496 -152
  12. package/dist/{chunk-ADWNF7V3.js → chunk-EMGXUNBL.js} +3 -3
  13. package/dist/{chunk-22PDGHNQ.mjs → chunk-HCXI63ME.mjs} +2 -2
  14. package/dist/{chunk-UQQUWGHW.mjs → chunk-IASLG6IA.mjs} +1 -1
  15. package/dist/chunk-IHF35QZD.js +1095 -0
  16. package/dist/{chunk-E544XUBL.js → chunk-KDIWRSYV.js} +8 -11
  17. package/dist/chunk-RIGVIEYB.mjs +1093 -0
  18. package/dist/{chunk-SW7QNEZU.js → chunk-SEV2DWKF.js} +30 -30
  19. package/dist/{chunk-CSUBLSKZ.mjs → chunk-SQK4JDYY.mjs} +27 -36
  20. package/dist/{chunk-AC6TWLRT.mjs → chunk-ZJWP5KGZ.mjs} +8 -2
  21. package/dist/hooks.js +15 -15
  22. package/dist/hooks.mjs +5 -5
  23. package/dist/index.js +42 -42
  24. package/dist/index.mjs +9 -9
  25. package/dist/lib.js +1 -1
  26. package/dist/lib.mjs +1 -1
  27. package/dist/nodes.js +38 -38
  28. package/dist/nodes.mjs +5 -5
  29. package/dist/panels.js +7 -7
  30. package/dist/panels.mjs +4 -4
  31. package/dist/provider.js +1 -1
  32. package/dist/provider.mjs +1 -1
  33. package/dist/stores.js +8 -8
  34. package/dist/stores.mjs +3 -3
  35. package/dist/toolbar.js +10 -10
  36. package/dist/toolbar.mjs +4 -4
  37. package/dist/ui.js +1 -1
  38. package/dist/ui.mjs +1 -1
  39. package/dist/workflowStore-7SDJC4UR.mjs +3 -0
  40. package/dist/workflowStore-LNJQ5RZG.js +12 -0
  41. package/package.json +1 -1
  42. package/dist/chunk-BJ3R5R32.mjs +0 -2163
  43. package/dist/chunk-NSDLGLAQ.js +0 -2166
  44. package/dist/workflowStore-4EGKJLYK.mjs +0 -3
  45. package/dist/workflowStore-KM32FDL7.js +0 -12
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEC2ZIWOK_js = require('./chunk-EC2ZIWOK.js');
4
- var chunkNSDLGLAQ_js = require('./chunk-NSDLGLAQ.js');
3
+ var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
4
+ var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
5
5
  var lucideReact = require('lucide-react');
6
6
  var react = require('react');
7
7
  var jsxRuntime = require('react/jsx-runtime');
@@ -104,10 +104,10 @@ function SaveAsDialog({ isOpen, currentName, onSave, onClose }) {
104
104
  ] });
105
105
  }
106
106
  function SaveIndicator() {
107
- const isDirty = chunkNSDLGLAQ_js.useWorkflowStore((state) => state.isDirty);
108
- const isSaving = chunkNSDLGLAQ_js.useWorkflowStore((state) => state.isSaving);
109
- const autoSaveEnabled = chunkEC2ZIWOK_js.useSettingsStore((state) => state.autoSaveEnabled);
110
- const toggleAutoSave = chunkEC2ZIWOK_js.useSettingsStore((state) => state.toggleAutoSave);
107
+ const isDirty = chunkIHF35QZD_js.useWorkflowStore((state) => state.isDirty);
108
+ const isSaving = chunkIHF35QZD_js.useWorkflowStore((state) => state.isSaving);
109
+ const autoSaveEnabled = chunkAXFOCPPP_js.useSettingsStore((state) => state.autoSaveEnabled);
110
+ const toggleAutoSave = chunkAXFOCPPP_js.useSettingsStore((state) => state.toggleAutoSave);
111
111
  if (!autoSaveEnabled) {
112
112
  return /* @__PURE__ */ jsxRuntime.jsxs(
113
113
  "button",
@@ -240,25 +240,25 @@ function Toolbar({
240
240
  showSettings = true,
241
241
  rightContent
242
242
  }) {
243
- const { exportWorkflow, workflowName } = chunkNSDLGLAQ_js.useWorkflowStore();
244
- const { undo, redo } = chunkNSDLGLAQ_js.useWorkflowStore.temporal.getState();
243
+ const { exportWorkflow, workflowName } = chunkIHF35QZD_js.useWorkflowStore();
244
+ const { undo, redo } = chunkIHF35QZD_js.useWorkflowStore.temporal.getState();
245
245
  const [canUndo, setCanUndo] = react.useState(false);
246
246
  const [canRedo, setCanRedo] = react.useState(false);
247
247
  const [showSaveAsDialog, setShowSaveAsDialog] = react.useState(false);
248
- const validationErrors = chunkEC2ZIWOK_js.useExecutionStore((state) => state.validationErrors);
249
- const clearValidationErrors = chunkEC2ZIWOK_js.useExecutionStore((state) => state.clearValidationErrors);
250
- const { openModal } = chunkEC2ZIWOK_js.useUIStore();
251
- const debugMode = chunkEC2ZIWOK_js.useSettingsStore((s) => s.debugMode);
248
+ const validationErrors = chunkAXFOCPPP_js.useExecutionStore((state) => state.validationErrors);
249
+ const clearValidationErrors = chunkAXFOCPPP_js.useExecutionStore((state) => state.clearValidationErrors);
250
+ const { openModal } = chunkAXFOCPPP_js.useUIStore();
251
+ const debugMode = chunkAXFOCPPP_js.useSettingsStore((s) => s.debugMode);
252
252
  const uniqueErrorMessages = react.useMemo(() => {
253
253
  if (!validationErrors?.errors.length) return [];
254
254
  return [...new Set(validationErrors.errors.map((e) => e.message))];
255
255
  }, [validationErrors]);
256
256
  react.useEffect(() => {
257
- const unsubscribe = chunkNSDLGLAQ_js.useWorkflowStore.temporal.subscribe((state) => {
257
+ const unsubscribe = chunkIHF35QZD_js.useWorkflowStore.temporal.subscribe((state) => {
258
258
  setCanUndo(state.pastStates.length > 0);
259
259
  setCanRedo(state.futureStates.length > 0);
260
260
  });
261
- const temporal = chunkNSDLGLAQ_js.useWorkflowStore.temporal.getState();
261
+ const temporal = chunkIHF35QZD_js.useWorkflowStore.temporal.getState();
262
262
  setCanUndo(temporal.pastStates.length > 0);
263
263
  setCanRedo(temporal.futureStates.length > 0);
264
264
  return unsubscribe;
@@ -292,7 +292,7 @@ function Toolbar({
292
292
  console.warn("[Toolbar] Invalid workflow file structure");
293
293
  return;
294
294
  }
295
- chunkNSDLGLAQ_js.useWorkflowStore.getState().loadWorkflow(data);
295
+ chunkIHF35QZD_js.useWorkflowStore.getState().loadWorkflow(data);
296
296
  } catch {
297
297
  console.warn("[Toolbar] Failed to parse workflow file");
298
298
  }
@@ -461,16 +461,16 @@ function BottomBar() {
461
461
  const [dropdownOpen, setDropdownOpen] = react.useState(false);
462
462
  const batchCancelledRef = react.useRef(false);
463
463
  const dropdownRef = react.useRef(null);
464
- const isRunning = chunkEC2ZIWOK_js.useExecutionStore((s) => s.isRunning);
465
- const executeWorkflow = chunkEC2ZIWOK_js.useExecutionStore((s) => s.executeWorkflow);
466
- const executeSelectedNodes = chunkEC2ZIWOK_js.useExecutionStore((s) => s.executeSelectedNodes);
467
- const resumeFromFailed = chunkEC2ZIWOK_js.useExecutionStore((s) => s.resumeFromFailed);
468
- const canResumeFromFailed = chunkEC2ZIWOK_js.useExecutionStore((s) => s.canResumeFromFailed);
469
- const stopExecution = chunkEC2ZIWOK_js.useExecutionStore((s) => s.stopExecution);
470
- chunkEC2ZIWOK_js.useExecutionStore((s) => s.lastFailedNodeId);
471
- const selectedNodeIds = chunkNSDLGLAQ_js.useWorkflowStore((s) => s.selectedNodeIds);
472
- const nodes = chunkNSDLGLAQ_js.useWorkflowStore((s) => s.nodes);
473
- const validateWorkflow = chunkNSDLGLAQ_js.useWorkflowStore((s) => s.validateWorkflow);
464
+ const isRunning = chunkAXFOCPPP_js.useExecutionStore((s) => s.isRunning);
465
+ const executeWorkflow = chunkAXFOCPPP_js.useExecutionStore((s) => s.executeWorkflow);
466
+ const executeSelectedNodes = chunkAXFOCPPP_js.useExecutionStore((s) => s.executeSelectedNodes);
467
+ const resumeFromFailed = chunkAXFOCPPP_js.useExecutionStore((s) => s.resumeFromFailed);
468
+ const canResumeFromFailed = chunkAXFOCPPP_js.useExecutionStore((s) => s.canResumeFromFailed);
469
+ const stopExecution = chunkAXFOCPPP_js.useExecutionStore((s) => s.stopExecution);
470
+ chunkAXFOCPPP_js.useExecutionStore((s) => s.lastFailedNodeId);
471
+ const selectedNodeIds = chunkIHF35QZD_js.useWorkflowStore((s) => s.selectedNodeIds);
472
+ const nodes = chunkIHF35QZD_js.useWorkflowStore((s) => s.nodes);
473
+ const validateWorkflow = chunkIHF35QZD_js.useWorkflowStore((s) => s.validateWorkflow);
474
474
  const canRunWorkflow = react.useMemo(() => {
475
475
  if (nodes.length === 0) return false;
476
476
  const validation = validateWorkflow();
@@ -486,11 +486,11 @@ function BottomBar() {
486
486
  }, []);
487
487
  const waitForExecutionEnd = react.useCallback(() => {
488
488
  return new Promise((resolve) => {
489
- if (!chunkEC2ZIWOK_js.useExecutionStore.getState().isRunning) {
489
+ if (!chunkAXFOCPPP_js.useExecutionStore.getState().isRunning) {
490
490
  resolve();
491
491
  return;
492
492
  }
493
- const unsubscribe = chunkEC2ZIWOK_js.useExecutionStore.subscribe((state) => {
493
+ const unsubscribe = chunkAXFOCPPP_js.useExecutionStore.subscribe((state) => {
494
494
  if (!state.isRunning) {
495
495
  unsubscribe();
496
496
  resolve();
@@ -507,10 +507,10 @@ function BottomBar() {
507
507
  setCurrentBatchRun(i + 1);
508
508
  executeWorkflow();
509
509
  await new Promise((r) => setTimeout(r, 50));
510
- if (!chunkEC2ZIWOK_js.useExecutionStore.getState().isRunning) break;
510
+ if (!chunkAXFOCPPP_js.useExecutionStore.getState().isRunning) break;
511
511
  await waitForExecutionEnd();
512
- if (chunkEC2ZIWOK_js.useExecutionStore.getState().lastFailedNodeId) break;
513
- const { nodes: currentNodes, updateNodeData } = chunkNSDLGLAQ_js.useWorkflowStore.getState();
512
+ if (chunkAXFOCPPP_js.useExecutionStore.getState().lastFailedNodeId) break;
513
+ const { nodes: currentNodes, updateNodeData } = chunkIHF35QZD_js.useWorkflowStore.getState();
514
514
  for (const node of currentNodes) {
515
515
  if (node.type !== "imageGen") continue;
516
516
  const nodeData = node.data;
@@ -1,6 +1,6 @@
1
- import { require_dist, useWorkflowStore } from './chunk-BJ3R5R32.mjs';
2
- import { __toESM } from './chunk-AC6TWLRT.mjs';
1
+ import { useWorkflowStore } from './chunk-RIGVIEYB.mjs';
3
2
  import { create } from 'zustand';
3
+ import { ProviderTypeEnum, NodeStatusEnum } from '@genfeedai/types';
4
4
 
5
5
  var notificationId = 0;
6
6
  var useUIStore = create((set) => ({
@@ -84,9 +84,6 @@ var useUIStore = create((set) => ({
84
84
  }));
85
85
  }
86
86
  }));
87
-
88
- // src/stores/settingsStore.ts
89
- var import_types = __toESM(require_dist());
90
87
  var STORAGE_KEY = "genfeed-settings";
91
88
  var MAX_RECENT_MODELS = 8;
92
89
  var DEFAULT_SETTINGS = {
@@ -214,7 +211,7 @@ var useSettingsStore = create((set, get) => {
214
211
  },
215
212
  setEdgeStyle: (style) => {
216
213
  setAndPersist(() => ({ edgeStyle: style }));
217
- import('./workflowStore-4EGKJLYK.mjs').then(({ useWorkflowStore: useWorkflowStore2 }) => {
214
+ import('./workflowStore-7SDJC4UR.mjs').then(({ useWorkflowStore: useWorkflowStore2 }) => {
218
215
  useWorkflowStore2.getState().setEdgeStyle(style);
219
216
  });
220
217
  },
@@ -269,10 +266,10 @@ var useSettingsStore = create((set, get) => {
269
266
  const key = state.providers[provider].apiKey;
270
267
  if (!key) return {};
271
268
  const headerMap = {
272
- [import_types.ProviderTypeEnum.REPLICATE]: "X-Replicate-Key",
273
- [import_types.ProviderTypeEnum.FAL]: "X-Fal-Key",
274
- [import_types.ProviderTypeEnum.HUGGINGFACE]: "X-HF-Key",
275
- [import_types.ProviderTypeEnum.GENFEED_AI]: "X-Genfeed-Key"
269
+ [ProviderTypeEnum.REPLICATE]: "X-Replicate-Key",
270
+ [ProviderTypeEnum.FAL]: "X-Fal-Key",
271
+ [ProviderTypeEnum.HUGGINGFACE]: "X-HF-Key",
272
+ [ProviderTypeEnum.GENFEED_AI]: "X-Genfeed-Key"
276
273
  };
277
274
  return { [headerMap[provider]]: key };
278
275
  },
@@ -285,34 +282,28 @@ var useSettingsStore = create((set, get) => {
285
282
  };
286
283
  });
287
284
  var PROVIDER_INFO = {
288
- [import_types.ProviderTypeEnum.REPLICATE]: {
285
+ [ProviderTypeEnum.REPLICATE]: {
289
286
  name: "Replicate",
290
287
  description: "Access thousands of open-source AI models",
291
288
  docsUrl: "https://replicate.com/docs"
292
289
  },
293
- [import_types.ProviderTypeEnum.FAL]: {
290
+ [ProviderTypeEnum.FAL]: {
294
291
  name: "fal.ai",
295
292
  description: "Fast inference for image and video generation",
296
293
  docsUrl: "https://fal.ai/docs"
297
294
  },
298
- [import_types.ProviderTypeEnum.HUGGINGFACE]: {
295
+ [ProviderTypeEnum.HUGGINGFACE]: {
299
296
  name: "Hugging Face",
300
297
  description: "The AI community platform with 500k+ models",
301
298
  docsUrl: "https://huggingface.co/docs/api-inference"
302
299
  },
303
- [import_types.ProviderTypeEnum.GENFEED_AI]: {
300
+ [ProviderTypeEnum.GENFEED_AI]: {
304
301
  name: "Genfeed AI",
305
302
  description: "Built-in models powered by Genfeed",
306
303
  docsUrl: "https://genfeed.ai/docs"
307
304
  }
308
305
  };
309
306
 
310
- // src/stores/execution/slices/executionSlice.ts
311
- var import_types3 = __toESM(require_dist());
312
-
313
- // src/stores/execution/helpers/sseSubscription.ts
314
- var import_types2 = __toESM(require_dist());
315
-
316
307
  // src/stores/execution/helpers/outputHelpers.ts
317
308
  function extractOutputValue(output) {
318
309
  if (!output) return null;
@@ -394,11 +385,11 @@ function getOutputUpdate(nodeId, output, workflowStore) {
394
385
  // src/stores/execution/helpers/sseSubscription.ts
395
386
  var API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://local.genfeed.ai:3001/api";
396
387
  var statusMap = {
397
- pending: import_types2.NodeStatusEnum.IDLE,
398
- processing: import_types2.NodeStatusEnum.PROCESSING,
399
- complete: import_types2.NodeStatusEnum.COMPLETE,
400
- succeeded: import_types2.NodeStatusEnum.COMPLETE,
401
- error: import_types2.NodeStatusEnum.ERROR
388
+ pending: NodeStatusEnum.IDLE,
389
+ processing: NodeStatusEnum.PROCESSING,
390
+ complete: NodeStatusEnum.COMPLETE,
391
+ succeeded: NodeStatusEnum.COMPLETE,
392
+ error: NodeStatusEnum.ERROR
402
393
  };
403
394
  function applyJobUpdates(jobs, workflowStore, debugMode, set, filterNodeId) {
404
395
  if (!jobs || jobs.length === 0) return;
@@ -466,7 +457,7 @@ async function reconcileNodeStatuses(executionId) {
466
457
  const execution = await response.json();
467
458
  const workflowStore = useWorkflowStore.getState();
468
459
  for (const nodeResult of execution.nodeResults || []) {
469
- const nodeStatus = statusMap[nodeResult.status] ?? import_types2.NodeStatusEnum.IDLE;
460
+ const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
470
461
  const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
471
462
  workflowStore.updateNodeData(nodeResult.nodeId, {
472
463
  status: nodeStatus,
@@ -491,7 +482,7 @@ function createExecutionSubscription(executionId, set) {
491
482
  const workflowStore = useWorkflowStore.getState();
492
483
  const nodeResults = data.nodeResults || [];
493
484
  for (const nodeResult of nodeResults) {
494
- const nodeStatus = statusMap[nodeResult.status] ?? import_types2.NodeStatusEnum.IDLE;
485
+ const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
495
486
  const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
496
487
  workflowStore.updateNodeData(nodeResult.nodeId, {
497
488
  status: nodeStatus,
@@ -542,7 +533,7 @@ function createNodeExecutionSubscription(executionId, nodeId, set, _get) {
542
533
  const workflowStore = useWorkflowStore.getState();
543
534
  const nodeResults = data.nodeResults || [];
544
535
  for (const nodeResult of nodeResults) {
545
- const nodeStatus = statusMap[nodeResult.status] ?? import_types2.NodeStatusEnum.IDLE;
536
+ const nodeStatus = statusMap[nodeResult.status] ?? NodeStatusEnum.IDLE;
546
537
  const isSuccess = nodeResult.status === "complete" || nodeResult.status === "succeeded";
547
538
  workflowStore.updateNodeData(nodeResult.nodeId, {
548
539
  status: nodeStatus,
@@ -648,7 +639,7 @@ var createExecutionSlice = (set, get) => ({
648
639
  set({ isRunning: true });
649
640
  for (const node of workflowStore.nodes) {
650
641
  workflowStore.updateNodeData(node.id, {
651
- status: import_types3.NodeStatusEnum.IDLE,
642
+ status: NodeStatusEnum.IDLE,
652
643
  error: void 0,
653
644
  progress: void 0
654
645
  });
@@ -685,7 +676,7 @@ var createExecutionSlice = (set, get) => ({
685
676
  await workflowStore.saveWorkflow();
686
677
  } catch {
687
678
  workflowStore.updateNodeData(nodeId, {
688
- status: import_types3.NodeStatusEnum.ERROR,
679
+ status: NodeStatusEnum.ERROR,
689
680
  error: "Failed to save workflow"
690
681
  });
691
682
  return;
@@ -694,7 +685,7 @@ var createExecutionSlice = (set, get) => ({
694
685
  const workflowId = workflowStore.workflowId;
695
686
  if (!workflowId) {
696
687
  workflowStore.updateNodeData(nodeId, {
697
- status: import_types3.NodeStatusEnum.ERROR,
688
+ status: NodeStatusEnum.ERROR,
698
689
  error: "Workflow must be saved first"
699
690
  });
700
691
  return;
@@ -721,7 +712,7 @@ var createExecutionSlice = (set, get) => ({
721
712
  });
722
713
  } catch (error) {
723
714
  workflowStore.updateNodeData(nodeId, {
724
- status: import_types3.NodeStatusEnum.ERROR,
715
+ status: NodeStatusEnum.ERROR,
725
716
  error: error instanceof Error ? error.message : "Node execution failed"
726
717
  });
727
718
  }
@@ -775,7 +766,7 @@ var createExecutionSlice = (set, get) => ({
775
766
  }
776
767
  for (const nodeId of selectedNodeIds) {
777
768
  workflowStore.updateNodeData(nodeId, {
778
- status: import_types3.NodeStatusEnum.IDLE,
769
+ status: NodeStatusEnum.IDLE,
779
770
  error: void 0,
780
771
  progress: void 0
781
772
  });
@@ -826,7 +817,7 @@ var createExecutionSlice = (set, get) => ({
826
817
  useUIStore.getState().setShowDebugPanel(true);
827
818
  }
828
819
  workflowStore.updateNodeData(lastFailedNodeId, {
829
- status: import_types3.NodeStatusEnum.IDLE,
820
+ status: NodeStatusEnum.IDLE,
830
821
  error: void 0,
831
822
  progress: void 0
832
823
  });
@@ -883,7 +874,7 @@ var createExecutionSlice = (set, get) => ({
883
874
  });
884
875
  }
885
876
  const workflowStore = useWorkflowStore.getState();
886
- workflowStore.updateNodeData(nodeId, { status: import_types3.NodeStatusEnum.IDLE, error: void 0 });
877
+ workflowStore.updateNodeData(nodeId, { status: NodeStatusEnum.IDLE, error: void 0 });
887
878
  },
888
879
  isNodeExecuting: (nodeId) => {
889
880
  const { activeNodeExecutions } = get();
@@ -915,7 +906,7 @@ var createExecutionSlice = (set, get) => ({
915
906
  const workflowStore = useWorkflowStore.getState();
916
907
  for (const node of workflowStore.nodes) {
917
908
  workflowStore.updateNodeData(node.id, {
918
- status: import_types3.NodeStatusEnum.IDLE,
909
+ status: NodeStatusEnum.IDLE,
919
910
  error: void 0,
920
911
  progress: void 0
921
912
  });
@@ -4,7 +4,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __commonJS = (cb, mod) => function __require() {
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
8
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
15
  };
10
16
  var __copyProps = (to, from, except, desc) => {
@@ -24,4 +30,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
30
  mod
25
31
  ));
26
32
 
27
- export { __commonJS, __toESM };
33
+ export { __commonJS, __require, __toESM };
package/dist/hooks.js CHANGED
@@ -1,56 +1,56 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-FOMOOERN.js');
4
- var chunkADWNF7V3_js = require('./chunk-ADWNF7V3.js');
5
- var chunkHPQT36RR_js = require('./chunk-HPQT36RR.js');
4
+ var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
5
+ var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
6
6
  require('./chunk-5HJFQVUR.js');
7
7
  require('./chunk-EMUMKW5C.js');
8
8
  require('./chunk-JLWKW3G5.js');
9
- require('./chunk-EC2ZIWOK.js');
10
- require('./chunk-NSDLGLAQ.js');
9
+ require('./chunk-AXFOCPPP.js');
10
+ require('./chunk-IHF35QZD.js');
11
11
  require('./chunk-RJ262NXS.js');
12
12
  require('./chunk-RXNEDWK2.js');
13
- require('./chunk-Z7PWFZG5.js');
13
+ require('./chunk-4MZ62VMF.js');
14
14
 
15
15
 
16
16
 
17
17
  Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
18
18
  enumerable: true,
19
- get: function () { return chunkADWNF7V3_js.useCanvasKeyboardShortcuts; }
19
+ get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
20
20
  });
21
21
  Object.defineProperty(exports, "useAIGenNode", {
22
22
  enumerable: true,
23
- get: function () { return chunkHPQT36RR_js.useAIGenNode; }
23
+ get: function () { return chunk3TMV3K34_js.useAIGenNode; }
24
24
  });
25
25
  Object.defineProperty(exports, "useAIGenNodeHeader", {
26
26
  enumerable: true,
27
- get: function () { return chunkHPQT36RR_js.useAIGenNodeHeader; }
27
+ get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
28
28
  });
29
29
  Object.defineProperty(exports, "useAutoLoadModelSchema", {
30
30
  enumerable: true,
31
- get: function () { return chunkHPQT36RR_js.useAutoLoadModelSchema; }
31
+ get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
32
32
  });
33
33
  Object.defineProperty(exports, "useCanGenerate", {
34
34
  enumerable: true,
35
- get: function () { return chunkHPQT36RR_js.useCanGenerate; }
35
+ get: function () { return chunk3TMV3K34_js.useCanGenerate; }
36
36
  });
37
37
  Object.defineProperty(exports, "useMediaUpload", {
38
38
  enumerable: true,
39
- get: function () { return chunkHPQT36RR_js.useMediaUpload; }
39
+ get: function () { return chunk3TMV3K34_js.useMediaUpload; }
40
40
  });
41
41
  Object.defineProperty(exports, "useModelSelection", {
42
42
  enumerable: true,
43
- get: function () { return chunkHPQT36RR_js.useModelSelection; }
43
+ get: function () { return chunk3TMV3K34_js.useModelSelection; }
44
44
  });
45
45
  Object.defineProperty(exports, "useNodeExecution", {
46
46
  enumerable: true,
47
- get: function () { return chunkHPQT36RR_js.useNodeExecution; }
47
+ get: function () { return chunk3TMV3K34_js.useNodeExecution; }
48
48
  });
49
49
  Object.defineProperty(exports, "usePromptAutocomplete", {
50
50
  enumerable: true,
51
- get: function () { return chunkHPQT36RR_js.usePromptAutocomplete; }
51
+ get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
52
52
  });
53
53
  Object.defineProperty(exports, "useRequiredInputs", {
54
54
  enumerable: true,
55
- get: function () { return chunkHPQT36RR_js.useRequiredInputs; }
55
+ get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
56
56
  });
package/dist/hooks.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import './chunk-L5TF4EHW.mjs';
2
- export { useCanvasKeyboardShortcuts } from './chunk-UQQUWGHW.mjs';
3
- export { useAIGenNode, useAIGenNodeHeader, useAutoLoadModelSchema, useCanGenerate, useMediaUpload, useModelSelection, useNodeExecution, usePromptAutocomplete, useRequiredInputs } from './chunk-FT64PCUP.mjs';
2
+ export { useCanvasKeyboardShortcuts } from './chunk-IASLG6IA.mjs';
3
+ export { useAIGenNode, useAIGenNodeHeader, useAutoLoadModelSchema, useCanGenerate, useMediaUpload, useModelSelection, useNodeExecution, usePromptAutocomplete, useRequiredInputs } from './chunk-AOTUCJMA.mjs';
4
4
  import './chunk-7SKSRSS7.mjs';
5
5
  import './chunk-EFXQT23N.mjs';
6
6
  import './chunk-LDN7IX4Y.mjs';
7
- import './chunk-CSUBLSKZ.mjs';
8
- import './chunk-BJ3R5R32.mjs';
7
+ import './chunk-SQK4JDYY.mjs';
8
+ import './chunk-RIGVIEYB.mjs';
9
9
  import './chunk-FT33LFII.mjs';
10
10
  import './chunk-VRN3UWE5.mjs';
11
- import './chunk-AC6TWLRT.mjs';
11
+ import './chunk-ZJWP5KGZ.mjs';
package/dist/index.js CHANGED
@@ -1,142 +1,142 @@
1
1
  'use strict';
2
2
 
3
- var chunkCETJJ73S_js = require('./chunk-CETJJ73S.js');
4
- var chunkH6LZKSLY_js = require('./chunk-H6LZKSLY.js');
3
+ var chunkBMFRA6GK_js = require('./chunk-BMFRA6GK.js');
4
+ var chunkECD5J2BA_js = require('./chunk-ECD5J2BA.js');
5
5
  require('./chunk-3SPPKCWR.js');
6
6
  require('./chunk-3YFFDHC5.js');
7
- var chunkE544XUBL_js = require('./chunk-E544XUBL.js');
8
- var chunkSW7QNEZU_js = require('./chunk-SW7QNEZU.js');
7
+ var chunkKDIWRSYV_js = require('./chunk-KDIWRSYV.js');
8
+ var chunkSEV2DWKF_js = require('./chunk-SEV2DWKF.js');
9
9
  require('./chunk-FOMOOERN.js');
10
- var chunkADWNF7V3_js = require('./chunk-ADWNF7V3.js');
11
- var chunkHPQT36RR_js = require('./chunk-HPQT36RR.js');
10
+ var chunkEMGXUNBL_js = require('./chunk-EMGXUNBL.js');
11
+ var chunk3TMV3K34_js = require('./chunk-3TMV3K34.js');
12
12
  require('./chunk-5HJFQVUR.js');
13
13
  require('./chunk-EMUMKW5C.js');
14
14
  var chunk6DOEUDD5_js = require('./chunk-6DOEUDD5.js');
15
15
  require('./chunk-JLWKW3G5.js');
16
- var chunkEC2ZIWOK_js = require('./chunk-EC2ZIWOK.js');
17
- var chunkNSDLGLAQ_js = require('./chunk-NSDLGLAQ.js');
16
+ var chunkAXFOCPPP_js = require('./chunk-AXFOCPPP.js');
17
+ var chunkIHF35QZD_js = require('./chunk-IHF35QZD.js');
18
18
  require('./chunk-5LQ4QBR5.js');
19
19
  var chunkRJ262NXS_js = require('./chunk-RJ262NXS.js');
20
20
  var chunkRXNEDWK2_js = require('./chunk-RXNEDWK2.js');
21
- require('./chunk-Z7PWFZG5.js');
21
+ require('./chunk-4MZ62VMF.js');
22
22
 
23
23
 
24
24
 
25
25
  Object.defineProperty(exports, "DEFAULT_GROUP_COLORS", {
26
26
  enumerable: true,
27
- get: function () { return chunkCETJJ73S_js.DEFAULT_GROUP_COLORS; }
27
+ get: function () { return chunkBMFRA6GK_js.DEFAULT_GROUP_COLORS; }
28
28
  });
29
29
  Object.defineProperty(exports, "GROUP_COLORS", {
30
30
  enumerable: true,
31
- get: function () { return chunkCETJJ73S_js.GROUP_COLORS; }
31
+ get: function () { return chunkBMFRA6GK_js.GROUP_COLORS; }
32
32
  });
33
33
  Object.defineProperty(exports, "GroupOverlay", {
34
34
  enumerable: true,
35
- get: function () { return chunkCETJJ73S_js.GroupOverlay; }
35
+ get: function () { return chunkBMFRA6GK_js.GroupOverlay; }
36
36
  });
37
37
  Object.defineProperty(exports, "HelperLines", {
38
38
  enumerable: true,
39
- get: function () { return chunkCETJJ73S_js.HelperLines; }
39
+ get: function () { return chunkBMFRA6GK_js.HelperLines; }
40
40
  });
41
41
  Object.defineProperty(exports, "NodeSearch", {
42
42
  enumerable: true,
43
- get: function () { return chunkCETJJ73S_js.NodeSearch; }
43
+ get: function () { return chunkBMFRA6GK_js.NodeSearch; }
44
44
  });
45
45
  Object.defineProperty(exports, "PauseEdge", {
46
46
  enumerable: true,
47
- get: function () { return chunkCETJJ73S_js.PauseEdge; }
47
+ get: function () { return chunkBMFRA6GK_js.PauseEdge; }
48
48
  });
49
49
  Object.defineProperty(exports, "ShortcutHelpModal", {
50
50
  enumerable: true,
51
- get: function () { return chunkCETJJ73S_js.ShortcutHelpModal; }
51
+ get: function () { return chunkBMFRA6GK_js.ShortcutHelpModal; }
52
52
  });
53
53
  Object.defineProperty(exports, "WorkflowCanvas", {
54
54
  enumerable: true,
55
- get: function () { return chunkCETJJ73S_js.WorkflowCanvas; }
55
+ get: function () { return chunkBMFRA6GK_js.WorkflowCanvas; }
56
56
  });
57
57
  Object.defineProperty(exports, "BaseNode", {
58
58
  enumerable: true,
59
- get: function () { return chunkH6LZKSLY_js.BaseNode; }
59
+ get: function () { return chunkECD5J2BA_js.BaseNode; }
60
60
  });
61
61
  Object.defineProperty(exports, "nodeTypes", {
62
62
  enumerable: true,
63
- get: function () { return chunkH6LZKSLY_js.nodeTypes; }
63
+ get: function () { return chunkECD5J2BA_js.nodeTypes; }
64
64
  });
65
65
  Object.defineProperty(exports, "DebugPanel", {
66
66
  enumerable: true,
67
- get: function () { return chunkE544XUBL_js.DebugPanel; }
67
+ get: function () { return chunkKDIWRSYV_js.DebugPanel; }
68
68
  });
69
69
  Object.defineProperty(exports, "NodePalette", {
70
70
  enumerable: true,
71
- get: function () { return chunkE544XUBL_js.NodePalette; }
71
+ get: function () { return chunkKDIWRSYV_js.NodePalette; }
72
72
  });
73
73
  Object.defineProperty(exports, "PanelContainer", {
74
74
  enumerable: true,
75
- get: function () { return chunkE544XUBL_js.PanelContainer; }
75
+ get: function () { return chunkKDIWRSYV_js.PanelContainer; }
76
76
  });
77
77
  Object.defineProperty(exports, "BottomBar", {
78
78
  enumerable: true,
79
- get: function () { return chunkSW7QNEZU_js.BottomBar; }
79
+ get: function () { return chunkSEV2DWKF_js.BottomBar; }
80
80
  });
81
81
  Object.defineProperty(exports, "OverflowMenu", {
82
82
  enumerable: true,
83
- get: function () { return chunkSW7QNEZU_js.OverflowMenu; }
83
+ get: function () { return chunkSEV2DWKF_js.OverflowMenu; }
84
84
  });
85
85
  Object.defineProperty(exports, "SaveAsDialog", {
86
86
  enumerable: true,
87
- get: function () { return chunkSW7QNEZU_js.SaveAsDialog; }
87
+ get: function () { return chunkSEV2DWKF_js.SaveAsDialog; }
88
88
  });
89
89
  Object.defineProperty(exports, "SaveIndicator", {
90
90
  enumerable: true,
91
- get: function () { return chunkSW7QNEZU_js.SaveIndicator; }
91
+ get: function () { return chunkSEV2DWKF_js.SaveIndicator; }
92
92
  });
93
93
  Object.defineProperty(exports, "Toolbar", {
94
94
  enumerable: true,
95
- get: function () { return chunkSW7QNEZU_js.Toolbar; }
95
+ get: function () { return chunkSEV2DWKF_js.Toolbar; }
96
96
  });
97
97
  Object.defineProperty(exports, "ToolbarDropdown", {
98
98
  enumerable: true,
99
- get: function () { return chunkSW7QNEZU_js.ToolbarDropdown; }
99
+ get: function () { return chunkSEV2DWKF_js.ToolbarDropdown; }
100
100
  });
101
101
  Object.defineProperty(exports, "useCanvasKeyboardShortcuts", {
102
102
  enumerable: true,
103
- get: function () { return chunkADWNF7V3_js.useCanvasKeyboardShortcuts; }
103
+ get: function () { return chunkEMGXUNBL_js.useCanvasKeyboardShortcuts; }
104
104
  });
105
105
  Object.defineProperty(exports, "useAIGenNode", {
106
106
  enumerable: true,
107
- get: function () { return chunkHPQT36RR_js.useAIGenNode; }
107
+ get: function () { return chunk3TMV3K34_js.useAIGenNode; }
108
108
  });
109
109
  Object.defineProperty(exports, "useAIGenNodeHeader", {
110
110
  enumerable: true,
111
- get: function () { return chunkHPQT36RR_js.useAIGenNodeHeader; }
111
+ get: function () { return chunk3TMV3K34_js.useAIGenNodeHeader; }
112
112
  });
113
113
  Object.defineProperty(exports, "useAutoLoadModelSchema", {
114
114
  enumerable: true,
115
- get: function () { return chunkHPQT36RR_js.useAutoLoadModelSchema; }
115
+ get: function () { return chunk3TMV3K34_js.useAutoLoadModelSchema; }
116
116
  });
117
117
  Object.defineProperty(exports, "useCanGenerate", {
118
118
  enumerable: true,
119
- get: function () { return chunkHPQT36RR_js.useCanGenerate; }
119
+ get: function () { return chunk3TMV3K34_js.useCanGenerate; }
120
120
  });
121
121
  Object.defineProperty(exports, "useMediaUpload", {
122
122
  enumerable: true,
123
- get: function () { return chunkHPQT36RR_js.useMediaUpload; }
123
+ get: function () { return chunk3TMV3K34_js.useMediaUpload; }
124
124
  });
125
125
  Object.defineProperty(exports, "useModelSelection", {
126
126
  enumerable: true,
127
- get: function () { return chunkHPQT36RR_js.useModelSelection; }
127
+ get: function () { return chunk3TMV3K34_js.useModelSelection; }
128
128
  });
129
129
  Object.defineProperty(exports, "useNodeExecution", {
130
130
  enumerable: true,
131
- get: function () { return chunkHPQT36RR_js.useNodeExecution; }
131
+ get: function () { return chunk3TMV3K34_js.useNodeExecution; }
132
132
  });
133
133
  Object.defineProperty(exports, "usePromptAutocomplete", {
134
134
  enumerable: true,
135
- get: function () { return chunkHPQT36RR_js.usePromptAutocomplete; }
135
+ get: function () { return chunk3TMV3K34_js.usePromptAutocomplete; }
136
136
  });
137
137
  Object.defineProperty(exports, "useRequiredInputs", {
138
138
  enumerable: true,
139
- get: function () { return chunkHPQT36RR_js.useRequiredInputs; }
139
+ get: function () { return chunk3TMV3K34_js.useRequiredInputs; }
140
140
  });
141
141
  Object.defineProperty(exports, "useAnnotationStore", {
142
142
  enumerable: true,
@@ -148,19 +148,19 @@ Object.defineProperty(exports, "usePromptEditorStore", {
148
148
  });
149
149
  Object.defineProperty(exports, "useExecutionStore", {
150
150
  enumerable: true,
151
- get: function () { return chunkEC2ZIWOK_js.useExecutionStore; }
151
+ get: function () { return chunkAXFOCPPP_js.useExecutionStore; }
152
152
  });
153
153
  Object.defineProperty(exports, "useSettingsStore", {
154
154
  enumerable: true,
155
- get: function () { return chunkEC2ZIWOK_js.useSettingsStore; }
155
+ get: function () { return chunkAXFOCPPP_js.useSettingsStore; }
156
156
  });
157
157
  Object.defineProperty(exports, "useUIStore", {
158
158
  enumerable: true,
159
- get: function () { return chunkEC2ZIWOK_js.useUIStore; }
159
+ get: function () { return chunkAXFOCPPP_js.useUIStore; }
160
160
  });
161
161
  Object.defineProperty(exports, "useWorkflowStore", {
162
162
  enumerable: true,
163
- get: function () { return chunkNSDLGLAQ_js.useWorkflowStore; }
163
+ get: function () { return chunkIHF35QZD_js.useWorkflowStore; }
164
164
  });
165
165
  Object.defineProperty(exports, "WorkflowUIProvider", {
166
166
  enumerable: true,