Download src/acp/persistent-bindings.resolve.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/acp/persistent-bindings.resolve.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/acp/persistent-bindings.resolve.ts
-
curl -L -o persistent-bindings.resolve.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/acp/persistent-bindings.resolve.ts
1.34 kB
| /** Resolves configured channel conversation bindings into ACP session binding specs. */ | |
| import { | |
| resolveConfiguredBindingRecord, | |
| resolveConfiguredBindingRecordBySessionKey, | |
| } from "../channels/plugins/configured-binding-registry.js"; | |
| import type { OpenClawConfig } from "../config/types.openclaw.js"; | |
| import { | |
| resolveConfiguredAcpBindingSpecFromRecord, | |
| toResolvedConfiguredAcpBinding, | |
| type ConfiguredAcpBindingSpec, | |
| type ResolvedConfiguredAcpBinding, | |
| } from "./persistent-bindings.types.js"; | |
| /** Resolves a configured ACP binding for a concrete channel conversation. */ | |
| export function resolveConfiguredAcpBindingRecord(params: { | |
| cfg: OpenClawConfig; | |
| channel: string; | |
| accountId: string; | |
| conversationId: string; | |
| parentConversationId?: string; | |
| }): ResolvedConfiguredAcpBinding | null { | |
| const resolved = resolveConfiguredBindingRecord(params); | |
| return resolved ? toResolvedConfiguredAcpBinding(resolved.record) : null; | |
| } | |
| /** Resolves the configured ACP binding spec that owns a generated session key. */ | |
| export function resolveConfiguredAcpBindingSpecBySessionKey(params: { | |
| cfg: OpenClawConfig; | |
| sessionKey: string; | |
| }): ConfiguredAcpBindingSpec | null { | |
| const resolved = resolveConfiguredBindingRecordBySessionKey(params); | |
| return resolved ? resolveConfiguredAcpBindingSpecFromRecord(resolved.record) : null; | |
| } | |