mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
Create new @metabuilder/redux-core package containing all core Redux slices needed by multiple frontends (nextjs, qt6, cli, etc). EXTRACTED SLICES: - authSlice (authentication & sessions) - projectSlice (project management) - workspaceSlice (workspace context) - workflowSlice (workflow execution) - nodesSlice (node registry) - asyncDataSlice (async data management) EXTRACTED TYPES: - project.ts (Project, ProjectState types) - workflow.ts (Workflow, Node, Connection types) - template.ts (Template definitions) ADDED UTILITIES: - useAppDispatch() - Typed dispatch hook - useAppSelector<T>() - Typed selector hook - createAppStore() - Store configuration helper - coreReducers - Pre-configured reducer object PACKAGE STRUCTURE: /redux/core/ ├── src/slices/ (6 TIER 1 slices) ├── src/types/ (3 core type files) ├── src/store/ (store utilities) ├── dist/ (52 compiled files) ├── package.json (@metabuilder/redux-core@1.0.0) └── tsconfig.json BENEFITS: ✅ Shared state across all frontends ✅ Reduced code duplication ✅ Foundation for new frontends (nextjs, qt6, cli) ✅ Single source of truth for auth, projects, workflows ✅ Better separation: core vs UI-specific slices ✅ Ready for feature packages (redux-collaboration, etc) BACKWARD COMPATIBILITY: ✅ Old imports from /redux/slices still work ✅ Zero breaking changes ✅ Gradual migration path available BUILD STATUS: ✅ npm install: success ✅ npm run build: 0 errors ✅ npm run typecheck: 0 errors ✅ Workspace registered: npm ls shows redux-core NEXT STEPS: 1. Update /docs/CLAUDE.md with redux-core docs 2. Integrate into nextjs frontend 3. Create feature packages (collaboration, realtime) as needed Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
33 lines
662 B
JSON
33 lines
662 B
JSON
{
|
|
"name": "metabuilder-root",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "MetaBuilder - Universal Platform",
|
|
"workspaces": [
|
|
"redux/core",
|
|
"redux/slices",
|
|
"redux/hooks",
|
|
"redux/adapters",
|
|
"redux/hooks-data",
|
|
"redux/hooks-auth",
|
|
"redux/hooks-canvas",
|
|
"redux/hooks-async",
|
|
"redux/core-hooks",
|
|
"redux/api-clients",
|
|
"redux/timing-utils",
|
|
"dbal/development",
|
|
"fakemui",
|
|
"frontends/nextjs",
|
|
"frontends/dbal",
|
|
"config",
|
|
"storybook"
|
|
],
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.49.1",
|
|
"jsdom": "^27.4.0"
|
|
},
|
|
"dependencies": {
|
|
"@reduxjs/toolkit": "^2.0.0"
|
|
}
|
|
}
|