refactor(errors): remove stale workspace failures

This commit is contained in:
morluto
2026-09-29 19:23:08 +08:00
parent bb6a58c2a7
commit f570d40f50
13 changed files with 22 additions and 166 deletions
-25
View File
@@ -39,7 +39,6 @@ const ANALYSIS_ERROR_TAGS = [
"ProcessCaptureError",
"EvidenceIntegrityError",
"EvidenceFileError",
"WorkspaceStorageError",
"UnknownRegistryError",
"HopperTimeoutError",
"HopperCancelledError",
@@ -331,29 +330,6 @@ export class EvidenceFileError extends AnalysisError {
}
}
/** A revisioned workspace could not be read or updated. */
export class WorkspaceStorageError extends AnalysisError {
readonly _tag = "WorkspaceStorageError";
constructor(
readonly operation: "read" | "update",
readonly reason:
| "disabled"
| "outside-root"
| "not-file"
| "too-large"
| "invalid-json"
| "integrity"
| "locked"
| "revision-conflict"
| "name-conflict"
| "io",
options?: ErrorOptions,
) {
super(`Workspace storage ${operation} failed: ${reason}`, options);
}
}
/** Residual-unknown mutation failed a lifecycle, reference, or CAS invariant. */
export class UnknownRegistryError extends AnalysisError {
readonly _tag = "UnknownRegistryError";
@@ -515,7 +491,6 @@ export interface AnalysisErrorProjection
| "process_capture_failed"
| "cleanup_incomplete"
| "revision_conflict"
| "outside_approved_root"
| "configuration_invalid"
| "target_unavailable"
| "execution_failure"