mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-07-09 06:38:09 +02:00
581c208b84
* feat: add ReportOutputProvider for consumer-extended report artifacts * fix: thread deliverablesSubdir through report assembly * fix: produce structured report JSON on resume path * fix: fail loud on structured report output provider errors * feat: extend checkpoint provider and container DI for consumer-specific backends * fix: pre-create .shannon overlay mount points on all platforms * chore: drop claude-code-router mode * fix: drop 'resets' keyword from spending-cap text patterns
23 lines
821 B
TypeScript
23 lines
821 B
TypeScript
/**
|
|
* ReportOutputProvider — injectable interface for emitting an optional
|
|
* additional artifact alongside the assembled markdown report.
|
|
*
|
|
* Runs after the report agent has finalized
|
|
* `comprehensive_security_assessment_report.md`. Consumers can override to
|
|
* produce derived outputs; the default no-op produces nothing.
|
|
*/
|
|
|
|
import type { ActivityInput } from '../temporal/activities.js';
|
|
import type { ActivityLogger } from '../types/activity-logger.js';
|
|
|
|
export interface ReportOutputProvider {
|
|
generate(input: ActivityInput, logger: ActivityLogger): Promise<{ outputPath?: string }>;
|
|
}
|
|
|
|
/** Default no-op implementation — no additional output produced. */
|
|
export class NoOpReportOutputProvider implements ReportOutputProvider {
|
|
async generate(): Promise<{ outputPath?: string }> {
|
|
return {};
|
|
}
|
|
}
|