Strangler-fig migration primitives for adopting acture in an existing codebase. v1.2.0, stable, maintained by Thor Whalen. Five functions: wrapMutation, actureMiddleware, createDomInterceptor, chooseImplementation, shadowCompare. Designed as an optional accelerator for acture's strangler-fig pattern; agents can also hand-write integration. Includes .claude/skills/ companion scripts for guided migration workflow. Ships TypeScript types, requires acture ^1.0.0 and zod ^4.0.0.
npm install acture-migrationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to wrap an existing Zustand store mutation with wrapMutation, preserving the call signature while registering a command with the registry.
Add data-acture-params to your forms or wrap params in paramsFrom callback.
Update acture to >=1.0.0.
Update zod to >=4.0.0.
Replace `filter` and `transform` with logic inside `onDispatch`.
Ensure call sites don't both call the wrapped function directly and dispatch the command. Use a flag in the registry to guard idempotency.
Add `store.dispatch(action)` inside `onDispatch` if the original Redux flow must continue.
Ensure you import `registry` from your acture project's registry file (e.g., './acture/registry') and pass that object.
Run `pnpm add acture-migration acture zod` from the project root.
Add `params: z.object({ ... })` to the opts object in wrapMutation or call.Ensure your dispatched Redux actions include meta.command (e.g., `dispatch({ type: 'app.todo.add', meta: { command: true } })`).