mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 06:12:26 +00:00
Refactor authentication system to consolidate auth flow and remove provider-based commands
🤖 Generated with [OpenCode](https://opencode.ai) Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
@@ -21,6 +21,8 @@ export abstract class NamedError extends Error {
|
||||
ref: name,
|
||||
})
|
||||
|
||||
public readonly name = name as Name
|
||||
|
||||
constructor(
|
||||
public readonly data: z.input<Data>,
|
||||
options?: ErrorOptions,
|
||||
@@ -35,7 +37,7 @@ export abstract class NamedError extends Error {
|
||||
}
|
||||
|
||||
schema() {
|
||||
return data
|
||||
return result.Schema
|
||||
}
|
||||
|
||||
toObject() {
|
||||
@@ -45,6 +47,7 @@ export abstract class NamedError extends Error {
|
||||
}
|
||||
}
|
||||
}
|
||||
Object.defineProperty(result, "name", { value: name })
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ export namespace Log {
|
||||
writer.flush()
|
||||
return true
|
||||
}
|
||||
Default.info("initialized", { file: logpath })
|
||||
}
|
||||
|
||||
async function cleanup(dir: string) {
|
||||
|
||||
Reference in New Issue
Block a user