Skip to content

For developers

The module defines no plugin type of its own. It plugs into three existing ones and exposes a few services other modules can use.

Extension point Owner What this module provides
FlowDropNodeProcessor plugins FlowDrop The 22 AI nodes in src/Plugin/FlowDropNodeProcessor/
ChatProcessor plugins Drupal AI flowdrop_workflow in src/Plugin/ChatProcessor/
flowdrop.chat_reasoner service FlowDrop ChatReasoner, the Drupal AI backend for the Reason node
FlowDrop form field registry FlowDrop UI Field widgets for the ai_prompt and guardrail_set schema formats

Code layout

config/install/      Node type config, one file per AI node, and the prompt type
lib/                 Svelte source and build of the prompt and guardrail widgets
src/Controller/Api/  JSON endpoints used by the widgets and the editor
src/EventSubscriber/ Prompt resolution for agents; node list filtering
src/Hook/            Widget library attachment, node type form warnings, agent presave
src/Plugin/          Node processors and the chat processor
src/Routing/         Access tweak for the AI settings overview page
src/Service/         Model lookup, availability, prompt resolution, file loading, reasoner

Pages

Running the checks

The repository uses the drupal.org GitLab CI templates: PHPUnit, PHPCS, PHPStan and Composer lint run on every merge request. Unit tests live in tests/src/Unit/. PHPStan uses the stubs in phpstan-stubs/ for FlowDrop and Drupal AI classes.