Build your own extension behavior with custom hooks
import { createCustomHook } from '@armory-sh/extensions'; const customHook = createCustomHook({ key: 'my-extension', handler: async (context) => { if (!context.payload) { return; } context.payload.extensions = { ...(context.payload.extensions ?? {}), 'my-extension': { enabled: true } }; }, priority: 75 });