mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 03:12:42 +00:00
Agents: inject pi auth storage from runtime profiles
This commit is contained in:
committed by
Peter Steinberger
parent
6a251d8d74
commit
301fe18909
@@ -8,7 +8,6 @@ import { ensureAuthProfileStore } from "./auth-profiles.js";
|
|||||||
import { resolvePiCredentialMapFromStore, type PiCredentialMap } from "./pi-auth-credentials.js";
|
import { resolvePiCredentialMapFromStore, type PiCredentialMap } from "./pi-auth-credentials.js";
|
||||||
|
|
||||||
export { AuthStorage, ModelRegistry } from "@mariozechner/pi-coding-agent";
|
export { AuthStorage, ModelRegistry } from "@mariozechner/pi-coding-agent";
|
||||||
|
|
||||||
function createAuthStorage(AuthStorageLike: unknown, path: string, creds: PiCredentialMap) {
|
function createAuthStorage(AuthStorageLike: unknown, path: string, creds: PiCredentialMap) {
|
||||||
const withInMemory = AuthStorageLike as { inMemory?: (data?: unknown) => unknown };
|
const withInMemory = AuthStorageLike as { inMemory?: (data?: unknown) => unknown };
|
||||||
if (typeof withInMemory.inMemory === "function") {
|
if (typeof withInMemory.inMemory === "function") {
|
||||||
|
|||||||
Reference in New Issue
Block a user