3. Delete this header block before committing
Add the new file to the table in docs/README.md (plugins section). Also update docs/authoring-plugins.md "Reference implementations" table if this is an in-tree or example plugin. ───────────────────────────────────────────────────────────────────────── -->
| Field | Value |
|---|---|
| Plugin ID | _plugin_id_ |
| Package | plugins/_plugin_id_ |
| Type | Built-in / Example / Community |
| Injected question ID | Type | Label | Default |
|---|---|---|---|
_plugin_id_._question_ |
_ConfirmQuestion / TextQuestion / OptionQuestion_ |
"label" | _default_ |
Flows affected:
| Generator name | Version | Description |
|---|---|---|
_plugin_id_._gen_ |
_0.1.0_ |
one-line description |
Dependencies:
Files written:
| Path | Description |
|---|---|
_path_ |
description |
Validators:
_plugin_id_._gen_ runs only when:
- Answer
_key_equals_value_. - (add more conditions as needed)
If any condition is false, ResolveExtras returns nil.
| Key | Type | Added by |
|---|---|---|
_plugin_id_._question_ |
bool / string | InsertAfter injection on _target_ |
Any fixture for a flow that includes _target_question_id_ must also provide:
{
"answers": {
"_target_question_id_": _value_,
"_plugin_id_._question_": _value_
}
}Omitting it causes: test-flow: no scripted answer for question "_plugin_id_._question_".
_plugins/plugin_id_/plugin.go_