feat(FN-4150): complete Step 4 — document workflow step resolver support
Fusion-Task-Id: FN-4150 Fusion-Task-Lineage: 153c239b-f6cd-49e4-bc13-216e0d2ca815
This commit is contained in:
7
.changeset/fn-4150-cli-printing-press-workflow-steps.md
Normal file
7
.changeset/fn-4150-cli-printing-press-workflow-steps.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"@runfusion/fusion": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
cli-printing-press: contribute script-mode workflow step templates and fix the core
|
||||||
|
resolver so plugin-contributed workflow steps honor their declared mode, phase,
|
||||||
|
and scriptName instead of being collapsed to prompt-mode.
|
||||||
@@ -1467,6 +1467,8 @@ const workflowSteps: PluginWorkflowStepContribution[] = [
|
|||||||
|
|
||||||
Use `mode: "prompt" | "script"` and `toolMode: "readonly" | "coding"`.
|
Use `mode: "prompt" | "script"` and `toolMode: "readonly" | "coding"`.
|
||||||
|
|
||||||
|
Plugin-contributed workflow steps are materialized through core `resolvePluginWorkflowStep(...)`; `mode`, `phase`, `scriptName`, `toolMode`, `defaultOn`, `modelProvider`, and `modelId` are preserved from your contribution (with defaults when omitted).
|
||||||
|
|
||||||
## 17. Contributing Prompt Modifications
|
## 17. Contributing Prompt Modifications
|
||||||
|
|
||||||
Prompt contributions let a plugin inject additional instructions into specific prompt surfaces.
|
Prompt contributions let a plugin inject additional instructions into specific prompt surfaces.
|
||||||
|
|||||||
@@ -522,7 +522,9 @@ interface CppWorkflowStep {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This is registered via `definePlugin({ workflowStepTemplates: [...] })` following `docs/PLUGIN_AUTHORING.md` Section 16.
|
This is registered via `definePlugin({ workflowSteps: [...] })` following `docs/PLUGIN_AUTHORING.md` Section 16.
|
||||||
|
|
||||||
|
> **Implemented in FN-4150:** the plugin now contributes `stepId: "run-service-cli"` as a script-mode pre-merge workflow step with `scriptName: "cli-printing-press:run-service-cli"`.
|
||||||
|
|
||||||
### 7.3 Execution Flow
|
### 7.3 Execution Flow
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user