@geenius/ai-workflow 0.4.0 → 0.5.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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +4 -4
- package/packages/react/dist/index.d.ts +49 -1
- package/packages/react/dist/index.js +183 -11464
- package/packages/react/dist/index.js.map +1 -1
- package/packages/react-css/dist/index.d.ts +39 -1
- package/packages/react-css/dist/index.js +181 -11462
- package/packages/react-css/dist/index.js.map +1 -1
- package/packages/shared/dist/index.d.ts +12 -75
- package/packages/shared/dist/index.js +1 -88
- package/packages/shared/dist/index.js.map +1 -1
- package/packages/solidjs/dist/index.d.ts +42 -2
- package/packages/solidjs/dist/index.js +186 -11464
- package/packages/solidjs/dist/index.js.map +1 -1
- package/packages/solidjs-css/dist/index.d.ts +39 -1
- package/packages/solidjs-css/dist/index.js +181 -11462
- package/packages/solidjs-css/dist/index.js.map +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ export function WorkflowBuilderScreen() {
|
|
|
57
57
|
|
|
58
58
|
- React Storybook app: [`apps/storybook-react`](./apps/storybook-react)
|
|
59
59
|
- SolidJS Storybook app: [`apps/storybook-solidjs`](./apps/storybook-solidjs)
|
|
60
|
-
- Both apps use the shared `@geenius/storybook` shell bridge and Vite preset, and
|
|
60
|
+
- Both apps use the shared `@geenius/storybook` shell bridge and Vite preset, and render the Tailwind and vanilla CSS variants side by side for parity review.
|
|
61
61
|
|
|
62
62
|
## Notes
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geenius/ai-workflow",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Geenius AI Workflow — Chained AI pipelines for Convex apps (React + SolidJS)",
|
|
7
7
|
"author": "Mehdi Nabhani",
|
|
@@ -92,15 +92,15 @@
|
|
|
92
92
|
},
|
|
93
93
|
"scripts": {
|
|
94
94
|
"changeset": "changeset",
|
|
95
|
-
"dev": "pnpm -r --parallel --filter './packages/*' type-check",
|
|
95
|
+
"dev": "pnpm --filter ./packages/shared build && pnpm -r --parallel --filter './packages/*' type-check",
|
|
96
96
|
"build": "pnpm --filter ./packages/shared build && pnpm -r --filter './packages/*' --filter '!./packages/shared' build",
|
|
97
97
|
"clean": "pnpm -r --filter './packages/*' clean",
|
|
98
98
|
"test": "pnpm build && pnpm run test:unit && pnpm run test:exports && pnpm run test:types",
|
|
99
99
|
"test:exports": "vitest run __tests__/exports.test.ts --passWithNoTests",
|
|
100
100
|
"test:types": "npm_config_cache=/tmp/.npm-cache attw --pack --ignore-rules cjs-resolves-to-esm --ignore-rules no-resolution",
|
|
101
|
-
"lint": "pnpm -r --filter './packages/*' type-check",
|
|
101
|
+
"lint": "pnpm --filter ./packages/shared build && pnpm -r --filter './packages/*' type-check",
|
|
102
102
|
"lint:pub": "publint",
|
|
103
|
-
"type-check": "pnpm -r --filter './packages/*' type-check",
|
|
103
|
+
"type-check": "pnpm --filter ./packages/shared build && pnpm -r --filter './packages/*' type-check",
|
|
104
104
|
"format": "prettier --write \"packages/*/src/**/*.{ts,tsx}\"",
|
|
105
105
|
"test:unit": "pnpm -r --filter './packages/*' test && vitest run __tests__/parity.test.ts --passWithNoTests"
|
|
106
106
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkflowEngineOptions, WorkflowDefinition, WorkflowRun, WorkflowError, StepResult, WorkflowStepDef, StepConnection, RunStatus, StepStatus, WorkflowTemplate, StepType } from '@geenius/ai-workflow-shared';
|
|
2
|
-
export { RunStatus, StepConfig, StepResult, StepStatus, StepType, WORKFLOW_TEMPLATES, WorkflowBuilderState, WorkflowDefinition, WorkflowEngine, WorkflowRun, WorkflowStatus, WorkflowStepDef, validateWorkflow } from '@geenius/ai-workflow-shared';
|
|
2
|
+
export { RunStatus, StepConfig, StepResult, StepStatus, StepType, WORKFLOW_TEMPLATES, WorkflowBuilderState, WorkflowDefinition, WorkflowEngine, WorkflowRun, WorkflowStatus, WorkflowStepDef, getTemplate, getTemplatesByCategory, validateRun, validateWorkflow } from '@geenius/ai-workflow-shared';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -12,6 +12,12 @@ import { ReactElement } from 'react';
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Runtime integrations accepted by the React workflow hook.
|
|
15
|
+
*
|
|
16
|
+
* @property callLLM Optional LLM execution callback inherited from `WorkflowEngineOptions`.
|
|
17
|
+
* @property callWebhook Optional webhook execution callback inherited from `WorkflowEngineOptions`.
|
|
18
|
+
* @property onApprovalRequired Optional approval callback inherited from `WorkflowEngineOptions`.
|
|
19
|
+
* @property onStepComplete Optional per-step completion callback inherited from `WorkflowEngineOptions`.
|
|
20
|
+
* @property customHandlers Optional custom step-handler registry inherited from `WorkflowEngineOptions`.
|
|
15
21
|
*/
|
|
16
22
|
interface UseWorkflowOptions extends WorkflowEngineOptions {
|
|
17
23
|
}
|
|
@@ -82,6 +88,10 @@ declare function useWorkflowBuilder(initial?: Partial<WorkflowDefinition>): {
|
|
|
82
88
|
|
|
83
89
|
/**
|
|
84
90
|
* Runtime options for workflow run tracking.
|
|
91
|
+
*
|
|
92
|
+
* @property pollIntervalMs Reserved polling interval for future remote sync.
|
|
93
|
+
* @property onStepComplete Optional callback fired whenever a step result changes.
|
|
94
|
+
* @property onRunComplete Optional callback fired when the run reaches a terminal state.
|
|
85
95
|
*/
|
|
86
96
|
interface UseWorkflowRunOptions {
|
|
87
97
|
/** Poll interval for checking run status (ms) */
|
|
@@ -151,6 +161,12 @@ declare function useWorkflowStep(stepDef: WorkflowStepDef): UseWorkflowStepResul
|
|
|
151
161
|
*/
|
|
152
162
|
/**
|
|
153
163
|
* Pending approval request exposed to the UI layer.
|
|
164
|
+
*
|
|
165
|
+
* @property id Stable approval-request identifier.
|
|
166
|
+
* @property stepId Workflow step awaiting the operator decision.
|
|
167
|
+
* @property message Approval prompt shown to the operator.
|
|
168
|
+
* @property requestedAt Unix timestamp for when the approval was created.
|
|
169
|
+
* @property approvers Optional list of users or roles allowed to approve.
|
|
154
170
|
*/
|
|
155
171
|
interface ApprovalRequest {
|
|
156
172
|
id: string;
|
|
@@ -262,6 +278,11 @@ declare function StepNode({ step, isSelected, status, onClick, className, }: Ste
|
|
|
262
278
|
|
|
263
279
|
/**
|
|
264
280
|
* Props for a workflow step connector path.
|
|
281
|
+
*
|
|
282
|
+
* @property from Starting node position for the connector.
|
|
283
|
+
* @property to Ending node position for the connector.
|
|
284
|
+
* @property label Optional inline label rendered above the curve.
|
|
285
|
+
* @property isActive Whether the connector should use the emphasized active style.
|
|
265
286
|
*/
|
|
266
287
|
interface StepConnectorProps {
|
|
267
288
|
from: {
|
|
@@ -293,6 +314,11 @@ declare function StepConnector({ from, to, label, isActive }: StepConnectorProps
|
|
|
293
314
|
|
|
294
315
|
/**
|
|
295
316
|
* Props for the workflow step configuration panel.
|
|
317
|
+
*
|
|
318
|
+
* @property step Shared workflow step being edited in the panel.
|
|
319
|
+
* @property onUpdate Callback that persists partial step updates.
|
|
320
|
+
* @property onDelete Callback that removes the selected step.
|
|
321
|
+
* @property onClose Callback that closes the panel without mutating state.
|
|
296
322
|
*/
|
|
297
323
|
interface StepConfigPanelProps {
|
|
298
324
|
step: WorkflowStepDef;
|
|
@@ -338,6 +364,11 @@ declare function WorkflowRunPanel({ run, isRunning, onCancel, }: WorkflowRunPane
|
|
|
338
364
|
|
|
339
365
|
/**
|
|
340
366
|
* Props for the workflow approval dialog.
|
|
367
|
+
*
|
|
368
|
+
* @property request Pending approval request to render, or `null` when idle.
|
|
369
|
+
* @property onApprove Callback that approves the active request by id.
|
|
370
|
+
* @property onReject Callback that rejects the active request by id.
|
|
371
|
+
* @property onDismiss Optional callback used for Escape-key and dismiss flows.
|
|
341
372
|
*/
|
|
342
373
|
interface ApprovalModalProps {
|
|
343
374
|
request: ApprovalRequest | null;
|
|
@@ -363,6 +394,19 @@ declare function ApprovalModal(props: ApprovalModalProps): ReactElement;
|
|
|
363
394
|
|
|
364
395
|
/**
|
|
365
396
|
* Props for the workflow toolbar action surface.
|
|
397
|
+
*
|
|
398
|
+
* @property workflowName Human-readable workflow name shown in the title slot.
|
|
399
|
+
* @property isDirty Whether unsaved edits are currently present.
|
|
400
|
+
* @property isRunning Whether a run is currently active.
|
|
401
|
+
* @property canUndo Whether the undo action should be enabled.
|
|
402
|
+
* @property canRedo Whether the redo action should be enabled.
|
|
403
|
+
* @property onSave Callback that persists the current workflow definition.
|
|
404
|
+
* @property onRun Callback that starts a workflow run.
|
|
405
|
+
* @property onCancel Optional callback that stops an in-flight run.
|
|
406
|
+
* @property onUndo Callback that restores the previous builder snapshot.
|
|
407
|
+
* @property onRedo Callback that reapplies the next builder snapshot.
|
|
408
|
+
* @property onExport Optional callback that exports the workflow definition.
|
|
409
|
+
* @property className Optional class-name override for the toolbar container.
|
|
366
410
|
*/
|
|
367
411
|
interface WorkflowToolbarProps {
|
|
368
412
|
workflowName: string;
|
|
@@ -449,6 +493,10 @@ declare function WorkflowBuilderPage({ engineOptions, onSave, className, workflo
|
|
|
449
493
|
|
|
450
494
|
/**
|
|
451
495
|
* Props for the workflow runs history page.
|
|
496
|
+
*
|
|
497
|
+
* @property runs Workflow run records rendered on the page.
|
|
498
|
+
* @property onSelectRun Optional callback fired when a run card is selected.
|
|
499
|
+
* @property className Optional class-name override for the page container.
|
|
452
500
|
*/
|
|
453
501
|
interface WorkflowRunsPageProps {
|
|
454
502
|
runs: WorkflowRun[];
|