@geenius/ai-workflow 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,12 @@ declare function createApprovalGate(): {
52
52
 
53
53
  /**
54
54
  * Runtime integrations accepted by the plain-CSS SolidJS workflow primitive.
55
+ *
56
+ * @property callLLM Optional LLM execution callback inherited from `WorkflowEngineOptions`.
57
+ * @property callWebhook Optional webhook execution callback inherited from `WorkflowEngineOptions`.
58
+ * @property onApprovalRequired Optional approval callback inherited from `WorkflowEngineOptions`.
59
+ * @property onStepComplete Optional per-step completion callback inherited from `WorkflowEngineOptions`.
60
+ * @property customHandlers Optional custom step-handler registry inherited from `WorkflowEngineOptions`.
55
61
  */
56
62
  interface CreateWorkflowOptions extends WorkflowEngineOptions {
57
63
  }
@@ -191,11 +197,20 @@ declare function createWorkflowTemplates(userId: string): {
191
197
 
192
198
  /**
193
199
  * Props for the workflow canvas component.
200
+ *
201
+ * @property definition Shared workflow definition to render.
202
+ * @property selectedStepId Currently selected step identifier.
203
+ * @property onSelectStep Callback used to change the selected step.
204
+ * @property onMoveStep Reserved callback for future drag interactions.
194
205
  */
195
206
  interface WorkflowCanvasProps {
196
207
  definition: WorkflowDefinition;
197
208
  selectedStepId: string | null;
198
209
  onSelectStep: (id: string | null) => void;
210
+ onMoveStep?: (stepId: string, pos: {
211
+ x: number;
212
+ y: number;
213
+ }) => void;
199
214
  }
200
215
  /**
201
216
  * Render the builder canvas with positioned steps and connection lines.
@@ -246,6 +261,11 @@ declare function StepNode(props: StepNodeProps): JSX.Element;
246
261
 
247
262
  /**
248
263
  * Props for a workflow step connector path.
264
+ *
265
+ * @property from Starting node position for the connector.
266
+ * @property to Ending node position for the connector.
267
+ * @property label Optional inline label rendered above the curve.
268
+ * @property isActive Whether the connector should use the emphasized active style.
249
269
  */
250
270
  interface StepConnectorProps {
251
271
  from: {
@@ -333,6 +353,11 @@ declare function WorkflowRunPanel(props: WorkflowRunPanelProps): JSX.Element;
333
353
 
334
354
  /**
335
355
  * Props for the plain-CSS SolidJS approval dialog.
356
+ *
357
+ * @property request Pending approval request to render, or `null` when idle.
358
+ * @property onApprove Callback that approves the active request by id.
359
+ * @property onReject Callback that rejects the active request by id.
360
+ * @property onDismiss Optional callback used for Escape-key and dismiss flows.
336
361
  */
337
362
  interface ApprovalModalProps {
338
363
  request: ApprovalRequest | null;
@@ -358,6 +383,19 @@ declare function ApprovalModal(props: ApprovalModalProps): JSX.Element;
358
383
 
359
384
  /**
360
385
  * Props for the workflow toolbar action surface.
386
+ *
387
+ * @property workflowName Human-readable workflow name shown in the title slot.
388
+ * @property isDirty Whether unsaved edits are currently present.
389
+ * @property isRunning Whether a run is currently active.
390
+ * @property canUndo Whether the undo action should be enabled.
391
+ * @property canRedo Whether the redo action should be enabled.
392
+ * @property onSave Callback that persists the current workflow definition.
393
+ * @property onRun Callback that starts a workflow run.
394
+ * @property onCancel Optional callback that stops an in-flight run.
395
+ * @property onUndo Callback that restores the previous builder snapshot.
396
+ * @property onRedo Callback that reapplies the next builder snapshot.
397
+ * @property onExport Optional callback that exports the workflow definition.
398
+ * @property class Optional class-name override for the toolbar container.
361
399
  */
362
400
  interface WorkflowToolbarProps {
363
401
  workflowName: string;
@@ -468,4 +506,4 @@ interface WorkflowRunsPageProps {
468
506
  */
469
507
  declare function WorkflowRunsPage(props: WorkflowRunsPageProps): JSX.Element;
470
508
 
471
- export { ApprovalModal, type ApprovalModalProps, type ApprovalRequest, type CreateWorkflowOptions, StepConfigPanel, type StepConfigPanelProps, StepConnector, StepNode, type StepNodeProps, StepPalette, type StepPaletteProps, WorkflowBuilderPage, type WorkflowBuilderPageProps, WorkflowCanvas, WorkflowRunPanel, type WorkflowRunPanelProps, WorkflowRunsPage, type WorkflowRunsPageProps, WorkflowToolbar, createApprovalGate, createWorkflow, createWorkflowBuilder, createWorkflowRun, createWorkflowStep, createWorkflowTemplates };
509
+ export { ApprovalModal, type ApprovalModalProps, type ApprovalRequest, type CreateWorkflowOptions, StepConfigPanel, type StepConfigPanelProps, StepConnector, type StepConnectorProps, StepNode, type StepNodeProps, StepPalette, type StepPaletteProps, WorkflowBuilderPage, type WorkflowBuilderPageProps, WorkflowCanvas, type WorkflowCanvasProps, WorkflowRunPanel, type WorkflowRunPanelProps, WorkflowRunsPage, type WorkflowRunsPageProps, WorkflowToolbar, type WorkflowToolbarProps, createApprovalGate, createWorkflow, createWorkflowBuilder, createWorkflowRun, createWorkflowStep, createWorkflowTemplates };