feat(FN-3783): add review panel plugin for fusion reports with type definit
The merge delivers the **Reports Review Panel** (FN-3783) as a multi-step plugin feature — defining review panel types, implementing orchestration logic, and wiring them through the fusion-plugin-reports entry point — alongside a collection of complementary improvements: section-aware prompt compact Fusion-Task-Id: FN-3783
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import type { PluginContext } from "@fusion/core";
|
||||
import { definePlugin } from "@fusion/plugin-sdk";
|
||||
import { runReviewPanel } from "./review-panel.js";
|
||||
import type { CombinedReview, ReviewPanelMember, RunReviewPanelInput } from "./review-types.js";
|
||||
import { settingsSchema } from "./settings.js";
|
||||
|
||||
const plugin = definePlugin({
|
||||
@@ -15,6 +18,24 @@ const plugin = definePlugin({
|
||||
hooks: {},
|
||||
});
|
||||
|
||||
export interface RunGeneratedReportReviewInput {
|
||||
reportDraft: string;
|
||||
reportMetadata: RunReviewPanelInput["reportMetadata"];
|
||||
panel: ReviewPanelMember[];
|
||||
cwd: string;
|
||||
}
|
||||
|
||||
export async function runGeneratedReportReview(input: RunGeneratedReportReviewInput, ctx: PluginContext): Promise<CombinedReview> {
|
||||
return runReviewPanel({
|
||||
reportDraft: input.reportDraft,
|
||||
reportMetadata: input.reportMetadata,
|
||||
panel: input.panel,
|
||||
cwd: input.cwd,
|
||||
}, ctx);
|
||||
}
|
||||
|
||||
export default plugin;
|
||||
|
||||
export * from "./settings.js";
|
||||
export * from "./review-types.js";
|
||||
export * from "./review-panel.js";
|
||||
|
||||
Reference in New Issue
Block a user