Download src/pairing/pairing-labels.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/pairing/pairing-labels.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/pairing/pairing-labels.ts
-
curl -L -o pairing-labels.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/pairing/pairing-labels.ts
474 Bytes
| // Resolves human-readable labels for paired channel identities. | |
| import { getPairingAdapter } from "../channels/plugins/pairing.js"; | |
| import type { PairingChannel } from "./pairing-store.types.js"; | |
| // Pairing label helpers. Channel adapters can customize the id label shown in | |
| // owner approval prompts; legacy channels fall back to userId. | |
| export function resolvePairingIdLabel(channel: PairingChannel): string { | |
| return getPairingAdapter(channel)?.idLabel ?? "userId"; | |
| } | |