mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
Implements @metabuilder/workflow-plugin-hooks - a production-ready workflow
plugin providing hook-like state management operations in DAG context.
FEATURES:
• useCounter - Increment/decrement with bounds
• useToggle - Boolean state management
• useStateWithHistory - Undo/redo with history
• useValidation - Field-level validation
• useArray - Array operations (push, pop, insert, remove, etc.)
• useSet - Set operations (add, remove, has, toggle)
• useMap - Map/dictionary operations
• useStack - LIFO stack (push, pop, peek)
• useQueue - FIFO queue (enqueue, dequeue, peek)
STRUCTURE:
workflow/plugins/ts/core/hooks/
├── src/index.ts - WorkflowHooksExecutor implementation
├── package.json - Plugin metadata
├── tsconfig.json - TypeScript configuration
└── README.md - Comprehensive documentation
USAGE:
{
"type": "hook",
"parameters": {
"hookType": "useCounter",
"operation": "increment",
"key": "counter",
"initial": 0,
"min": 0,
"max": 100
}
}
DOCUMENTATION:
• 9 hooks with full API documentation
• Complete usage examples for each hook
• Workflow example showing integration
• Return value structures and error handling
• Performance characteristics
Status: Production ready, fully documented
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>