تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

identity-resolver

بواسطة bowen31337

Coding Agents & IDEs
471التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

**Canonical user identity resolution across messaging channels**.

الوصف

ما الذي تفعله هذه المهارة

Maps Telegram, WhatsApp, Discord, and web channel identities to a single canonical user ID per person. Without it, the same user messaging from different channels appears as separate users, fragmenting memory, access control, and per-user state. Provides both a Python API and a CLI for skill developers and end users.

Zero external dependencies and built-in thread-safe file locking mean it works anywhere Python runs without additional setup or service dependencies.

متى تستخدمها

  • Unifying a user's Telegram and WhatsApp messages in a shared memory store
  • Running access control checks that hold across multiple chat platforms
  • Preventing duplicate user profiles when a bot operates on Discord and Telegram simultaneously
  • Resolving channel-specific IDs before writing to per-user data files
  • Registering workspace owner identity automatically from USER.md on first run

مثال على سير العمل

الإدخال

User asks: resolve my Telegram ID to a canonical user ID

الوكيل
  1. 1

    Read OPENCLAW_CHANNEL and OPENCLAW_USER_ID from the session environment

  2. 2

    Call resolve_canonical_id(channel, user_id) from the identity module

  3. 3

    Look up the channel entry in identity-map.json

  4. 4

    Return the stored canonical ID, or fall back to 'stranger:{channel}:{user_id}' if no mapping exists

الإخراج

Canonical user ID string such as 'alice', used for all subsequent user-scoped file paths and access control checks

التثبيت

clawhub install bowen31337/identity-resolver

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط