Skip to content

[new-plugin] rust-cli-inspector v1.1.0#19

Merged
MigOKG merged 2 commits intookx:mainfrom
yz06276:submit/rust-cli-inspector-v1.1.0
Apr 8, 2026
Merged

[new-plugin] rust-cli-inspector v1.1.0#19
MigOKG merged 2 commits intookx:mainfrom
yz06276:submit/rust-cli-inspector-v1.1.0

Conversation

@yz06276
Copy link
Copy Markdown
Contributor

@yz06276 yz06276 commented Apr 8, 2026

Rust CLI querying ETH price via Onchain OS. Submitted by yz06276.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

🔨 Phase 2: Build Verification — ✅ PASSED

Plugin: rust-cli-inspector | Language: rust
Source: @

Compiled from developer source code by our CI. Users install our build artifacts.

Build succeeded. Compiled artifact uploaded as workflow artifact.


Source integrity: commit SHA `` is the content fingerprint.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Phase 4: Summary + Pre-flight for rust-cli-inspector

Review below. AI Code Review is in a separate check.


SUMMARY.md

rust-cli-inspector

A Rust CLI tool that queries ETH price through the Onchain OS platform.

Highlights

  • Real-time ETH price querying via Onchain OS integration
  • Simple command-line interface with minimal setup
  • Built in Rust for performance and reliability
  • Default ETH price lookup without additional parameters
  • Explicit query commands for specific use cases
  • Comprehensive error handling and troubleshooting
  • Pre-flight checks to ensure dependencies are available
  • Help system for command guidance
SKILL_SUMMARY.md

rust-cli-inspector -- Skill Summary

Overview

This skill provides a Rust-based command-line tool for querying Ethereum (ETH) price information through the Onchain OS platform. It offers both default and explicit query modes with built-in error handling and dependency verification.

Usage

Install the rust-cli-inspector binary and ensure onchainos CLI is available, then run rust-cli-inspector to get current ETH price information.

Commands

Command Description
rust-cli-inspector Query ETH price (default behavior)
rust-cli-inspector --query eth-price Query ETH price (explicit command)
rust-cli-inspector --help Display help information

Triggers

Activate this skill when users ask about Ethereum price information or need real-time ETH market data.

Auto-injected Pre-flight
## Pre-flight Dependencies (auto-injected by Plugin Store CI)

> Run once per session before first use. These checks ensure required tools are installed.

### Install onchainos CLI + Skills (auto-injected)

```bash
# 1. Install onchainos CLI
onchainos --version 2>/dev/null || curl -fsSL https://raw.githubusercontent.com/okx/onchainos-skills/main/install.sh | sh

# 2. Install onchainos skills (enables AI agent to use onchainos commands)
npx skills add okx/onchainos-skills --yes --global

# 3. Install plugin-store skills (enables plugin discovery and management)
npx skills add okx/plugin-store --skill plugin-store --yes --global

Install rust-cli-inspector binary (auto-injected)

if ! command -v rust-cli-inspector >/dev/null 2>&1; then
  OS=$(uname -s | tr A-Z a-z)
  ARCH=$(uname -m)
  case "${OS}_${ARCH}" in
    darwin_arm64)  TARGET="aarch64-apple-darwin" ;;
    darwin_x86_64) TARGET="x86_64-apple-darwin" ;;
    linux_x86_64)  TARGET="x86_64-unknown-linux-gnu" ;;
    linux_aarch64) TARGET="aarch64-unknown-linux-gnu" ;;
  esac
  curl -fsSL "https://github.com/okx/plugin-store/releases/download/plugins/rust-cli-inspector@1.1.0/rust-cli-inspector-${TARGET}" -o ~/.local/bin/rust-cli-inspector
  chmod +x ~/.local/bin/rust-cli-inspector
fi

Report install (auto-injected, runs once)

REPORT_FLAG="$HOME/.plugin-store/reported/rust-cli-inspector"
if [ ! -f "$REPORT_FLAG" ]; then
  mkdir -p "$HOME/.plugin-store/reported"
  # Device fingerprint → SHA256 → 32-char device ID
  DEV_RAW="$(hostname):$(uname -s):$(uname -m):$HOME"
  DEV_ID=$(echo -n "$DEV_RAW" | shasum -a 256 | head -c 32)
  # HMAC signature (obfuscated key, same as CLI binary)
  _K=$(echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | base64 -d 2>/dev/null || echo 'OE9nNWFRUFdfSVJkektrMExOV2RNeTIzV2JibXo3ZWNTbExJUDFIWnVoZw==' | openssl base64 -d)
  HMAC_SIG=$(echo -n "${_K}${DEV_ID}" | shasum -a 256 | head -c 8)
  DIV_ID="${DEV_ID}${HMAC_SIG}"
  unset _K
  # Report to Vercel stats
  curl -s -X POST "https://plugin-store-dun.vercel.app/install" \
    -H "Content-Type: application/json" \
    -d '{"name":"rust-cli-inspector","version":"1.1.0"}' >/dev/null 2>&1 || true
  # Report to OKX API (with HMAC-signed device token)
  curl -s -X POST "https://www.okx.com/priapi/v1/wallet/plugins/download/report" \
    -H "Content-Type: application/json" \
    -d '{"pluginName":"rust-cli-inspector","divId":"'"$DIV_ID"'"}' >/dev/null 2>&1 || true
  touch "$REPORT_FLAG"
fi


</details>

---
*Generated by Plugin Store CI after maintainer approval.*

@MigOKG MigOKG merged commit c3a35bc into okx:main Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants