mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-20 12:30:38 +09:00
14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
|
|
import type { CreateConfigValues } from "@paperclipai/adapter-utils";
|
||
|
|
|
||
|
|
export function buildOpenClawGatewayConfig(v: CreateConfigValues): Record<string, unknown> {
|
||
|
|
const ac: Record<string, unknown> = {};
|
||
|
|
if (v.url) ac.url = v.url;
|
||
|
|
ac.timeoutSec = 120;
|
||
|
|
ac.waitTimeoutMs = 120000;
|
||
|
|
ac.sessionKeyStrategy = "fixed";
|
||
|
|
ac.sessionKey = "paperclip";
|
||
|
|
ac.role = "operator";
|
||
|
|
ac.scopes = ["operator.admin"];
|
||
|
|
return ac;
|
||
|
|
}
|