mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-10-04 23:36:54 +02:00
feat: surface startup and preflight failures (#454)
* fix: surface pre-workflow worker failures instead of dying silently * feat: clearer, aggregated config rule validation errors * fix: preserve blank lines when printing startup errors * feat: hold start until preflight passes and surface its failure * fix: cleaner formatting for scan-start failure messages
This commit is contained in:
1 parent
d41d52f17d
commit
2786f9aa2d
6 files changed
+311
-138
No files matched your search
@@ -48,6 +48,13 @@ export const FINAL_REPORT_PDF_FILENAME = 'Security-Assessment-Report.pdf';
|
||||
*/
|
||||
export const FINAL_REPORT_MD_FILENAME = 'Security-Assessment-Report.md';
|
||||
|
||||
/**
|
||||
* Reason for a pre-workflow failure, written by the worker under INTERNAL_DIR. The CLI reads it
|
||||
* during the startup poll to report the real cause instead of a generic timeout. Must match
|
||||
* STARTUP_ERROR_FILENAME in the worker package.
|
||||
*/
|
||||
export const STARTUP_ERROR_FILENAME = 'startup-error.json';
|
||||
|
||||
/**
|
||||
* Resolve a run-directory file (e.g. session.json, workflow.log), preferring the
|
||||
* current INTERNAL_DIR location and falling back to the legacy run-root location
|
||||
|
||||
Reference in new issue
Block a user