Files
metabuilder/workflow
johndoe6345789 d962989470 feat(workflow): Add native hooks plugin for DAG execution
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>
2026-01-23 20:16:15 +00:00
..