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

react-native-logs-cli

بواسطة okwasniewski

Web & Frontend Development
278التنزيلات وفق ما يذكره clawskills.sh
2النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Use rn-logs to read React Native Metro logs via CDP without MCP overhead.

الوصف

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

rn-logs is a CLI tool that reads React Native Metro logs via the Chrome DevTools Protocol (CDP). It lists connected apps and streams or snapshots log output in plain text, making it usable in non-interactive agent runs.

Reads Metro logs via CDP directly rather than wrapping an MCP server, keeping context overhead low and output format predictable for automated tooling.

متى تستخدمها

  • Streaming live Metro logs from a simulator during development
  • Capturing a snapshot of the last 50 log lines for debugging
  • Listing all connected RN apps across multiple running instances
  • Feeding plain-text logs into an AI agent without MCP overhead
  • Checking Metro output on a specific host/port in CI or remote setups

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

الإدخال

User asks: show me the last 50 log lines from the running RN app

الوكيل
  1. 1

    Run rn-logs apps to list connected React Native apps

  2. 2

    Identify the target app by id or name from the output

  3. 3

    Run rn-logs logs --app "<id>" --limit 50 to capture a snapshot

  4. 4

    Return the plain-text log output to the user

الإخراج

50 most recent Metro log lines printed as plain text

المتطلبات

  • rn-logs CLI installed globally via npm or bun

التثبيت

clawhub install okwasniewski/react-native-logs-cli

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

الروابط