Skip to content

test: Go CLI#40

Open
MigOKG wants to merge 10 commits intomainfrom
submit/test-go-cli
Open

test: Go CLI#40
MigOKG wants to merge 10 commits intomainfrom
submit/test-go-cli

Conversation

@MigOKG
Copy link
Copy Markdown
Owner

@MigOKG MigOKG commented Apr 5, 2026

E2E - test-go-cli

yz06276 and others added 5 commits April 5, 2026 19:52
- Move CLI source to cli/ directory
- Merge 14 community plugins into skills/ (single path)
- Add CODEOWNERS for permission control
- Migrate 5 community CI workflows with path updates (submissions/ → skills/)
- Update CLI Rust code: remove community repo special logic, update paths
- Update registry.json: repo refs, add trust_source/risk_level/category fields
- Rewrite marketplace.json: all 15 plugins with ./skills/<name> source paths
- Rewrite README.md: 4-screen layout for all user roles
- Add docs/FOR-USERS.md: non-technical user guide (677 lines)
- Add docs/FOR-DEVELOPERS.md: developer guide with 3 submission modes (818 lines)
- Add docs/FOR-PARTNERS.md: partner guide with high-risk policy
- Add docs/REVIEW-GUIDELINES.md: public review standards
- Add .github/security-rules, prompts, scripts, PR template
- Full npx skills add compatibility preserved
- Backward compatible with published plugin-store CLI

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Update .gitignore: add /cli/target, remove docs/ and skills/okx-* exclusions
- Remove 7071 build artifact files from git tracking
- Add docs/ (FOR-USERS, FOR-DEVELOPERS, FOR-PARTNERS, REVIEW-GUIDELINES)
- Add skills/okx-buildx-hackathon-agent-track/

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove plugin directory table (per PM feedback)
- Replace plugin-store install/list/search with npx skills add commands
- Keep category, risk level, and trust indicator tables

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MigOKG MigOKG temporarily deployed to summary-generation April 5, 2026 14:06 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

Phase 4: Summary + Pre-flight for test-go-cli

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


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 test-go-cli binary (auto-injected)

if ! command -v test-go-cli >/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/test-go-cli@1.0.0/test-go-cli-${TARGET}" -o ~/.local/bin/test-go-cli
  chmod +x ~/.local/bin/test-go-cli
fi

Report install (auto-injected, runs once)

REPORT_FLAG="$HOME/.plugin-store/reported/test-go-cli"
if [ ! -f "$REPORT_FLAG" ]; then
  mkdir -p "$HOME/.plugin-store/reported"
  # Generate device ID
  DEV_RAW="$(hostname):$(uname -s):$(uname -m):$HOME"
  DEV_ID=$(echo -n "$DEV_RAW" | shasum -a 256 | head -c 32)
  # Report to Vercel stats
  curl -s -X POST "https://plugin-store-dun.vercel.app/install" \
    -H "Content-Type: application/json" \
    -d '{"name":"test-go-cli","version":"1.0.0"}' >/dev/null 2>&1 || true
  # Report to OKX API
  curl -s -X POST "https://www.okx.com/priapi/v1/wallet/plugins/download/report" \
    -H "Content-Type: application/json" \
    -d '{"pluginName":"test-go-cli","divId":"'"$DEV_ID"'"}' >/dev/null 2>&1 || true
  touch "$REPORT_FLAG"
fi


</details>

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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

📋 Phase 3: AI Code Review Report — Score: N/A/100

Plugin: test-go-cli | Recommendation: 👤 Manual review required

🔗 Reviewed against latest onchainos source code (live from main branch) | Model: unavailable via Anthropic API | Cost: N/A

This is an advisory report. It does NOT block merging. Final decision is made by human reviewers.


AI review FAILED (HTTP 400): Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.. Request size: 665664 bytes, plugin content: 1430 bytes.


Generated by Claude AI via Anthropic API — review the full report before approving.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

🔨 Phase 2: Build Verification — ✅ PASSED

Plugin: test-go-cli | Language: go
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

github-actions bot commented Apr 5, 2026

✅ Phase 1: Structure Validation — PASSED

Linting skills/test-go-cli...

  ⚠️  [W100] suspicious pattern: 'curl ' — contains curl command — external network request

✓ Plugin 'test-go-cli' passed with 1 warning(s)

→ Proceeding to Phase 2: Build Verification

@yz06276 yz06276 force-pushed the submit/test-go-cli branch from 11732cd to 68d4e30 Compare April 5, 2026 14:09
@yz06276 yz06276 temporarily deployed to summary-generation April 5, 2026 14:09 — with GitHub Actions Inactive
@yz06276 yz06276 force-pushed the submit/test-go-cli branch from 2a8ddeb to a31e55b Compare April 5, 2026 14:14
@yz06276 yz06276 temporarily deployed to summary-generation April 5, 2026 14:14 — with GitHub Actions Inactive
@yz06276 yz06276 force-pushed the submit/test-go-cli branch from 5573ef2 to b5fde25 Compare April 5, 2026 14:19
@yz06276 yz06276 temporarily deployed to summary-generation April 5, 2026 14:20 — with GitHub Actions Inactive
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