Skip to main content

Module plugin

Module plugin 

Source
Expand description

The LanguagePlugin trait + Options + Preset.

A plugin is a pure parser: it turns a workspace into nodes + edges at a requested level. It computes no metrics — complexity, cycles, Henry-Kafura and stats are filled centrally by the orchestrator, for all languages. The CLI holds the registry of plugins; it talks to them ONLY through this trait and never names a concrete language.

Structs§

PluginInput
Everything the orchestrator feeds a plugin from config + CLI input.
Preset
A Prompt-Generator preset (a refactoring principle): a ready-to-paste AI instruction plus how the UI seeds the node selection for it. The orchestrator builds a generic default set and hands it to LanguagePlugin::presets, which may pass it through, edit, drop or extend per language.

Traits§

LanguagePlugin

Type Aliases§

Options
Free-form key/value options passed from the CLI (future --plugin-opt k=v). BTreeMap for deterministic iteration order.