This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
export const autonomyLevels = [
|
||||
'observe',
|
||||
'diagnose',
|
||||
'plan',
|
||||
'implement',
|
||||
'verify',
|
||||
'repair',
|
||||
] as const
|
||||
|
||||
export type AutonomyLevel = (typeof autonomyLevels)[number]
|
||||
|
||||
export class DomainError extends Error {
|
||||
constructor(
|
||||
readonly code: string,
|
||||
message: string,
|
||||
readonly details: Readonly<Record<string, unknown>> = {},
|
||||
) {
|
||||
super(message)
|
||||
this.name = 'DomainError'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user