chore: update deps and pi model discovery
parent
85dd070dea
commit
08ed62852a
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,14 @@
|
||||
import path from "node:path";
|
||||
|
||||
import { AuthStorage, ModelRegistry } from "@mariozechner/pi-coding-agent";
|
||||
|
||||
// Compatibility helpers for pi-coding-agent 0.50+ (discover* helpers removed).
|
||||
export function discoverAuthStorage(agentDir: string): AuthStorage {
|
||||
return new AuthStorage(path.join(agentDir, "auth.json"));
|
||||
}
|
||||
|
||||
export function discoverModels(authStorage: AuthStorage, agentDir: string): ModelRegistry {
|
||||
return new ModelRegistry(authStorage, path.join(agentDir, "models.json"));
|
||||
}
|
||||
|
||||
export type { AuthStorage, ModelRegistry };
|
||||
Loading…
Reference in New Issue