ruview-cli-api
预览截图
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ruview-cli-api":https://skillpi.com/zh/skills/deepskill-e0bfe472efc98192e4258f7ee0b1f9b110e1debcea8a7766635a68f1366acf48。安装前核对上游来源和版本:https://github.com/ruvnet/RuView。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
描述使用 RuView 的 wifi-densepose 组件:CLI 二进制(含 MAT 扫描/状态/区域/幸存者/警报/导出等子命令)、基于 Axum 的 REST API(wifi-densepose-api),以及浏览器/WASM 构建(wifi-densepose-wasm、wifi-densepose-wasm-edge),适用于集成到其他程序、通过 shell 调用、通过 HTTP 暴露服务或部署到浏览器/ESP32-WASM3 环境。
介绍来源: third_party · ruvnet · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 使用 RuView `wifi-densepose` CLI 二进制(包括MAT扫描/状态/区/幸存者/警报/出口子命令),REST API( `wifi-densepose-api` , Axum)和浏览器/WASM构建( `wifi-densepose-wasm` , (中文). `wifi-densepose-wasm-edge` ) (中文(简体) ). 在将RuView整合到另一个程序时使用,从 shell 中脚写,在 HTTP 上曝光,或者将其传送到浏览器 / ESP32- WASM3.
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ruview-cli-api
description: Use the RuView `wifi-densepose` CLI binary (incl. MAT scan/status/zones/survivors/alerts/export subcommands), the REST API (`wifi-densepose-api`, Axum), and the browser/WASM build (`wifi-densepose-wasm`, `wifi-densepose-wasm-edge`). Use when integrating RuView into another program, scripting it from the shell, exposing it over HTTP, or shipping it to the browser / ESP32-WASM3.
allowed-tools: Bash Read Write Edit Glob GrepRuView CLI, API & WASM
The programmatic surfaces of RuView — the wifi-densepose binary, the HTTP API, and the WebAssembly builds.
1. The wifi-densepose CLI binary (wifi-densepose-cli)
cd v2
cargo run -p wifi-densepose-cli -- --help # or: cargo build -p wifi-densepose-cli --release → target/release/wifi-densepose
cargo run -p wifi-densepose-cli -- version
Top-level subcommands: version, and mat (Mass Casualty Assessment Tool).
wifi-densepose mat … — disaster survivor detection
| Subcommand | Purpose | Key flags |
|---|---|---|
mat scan [zone] |
Start scanning for survivors | --disaster-type <…>, --sensitivity 0.0–1.0, --max-depth <m>, --continuous, --interval <ms>, --simulate |
mat status |
Current scan status | --detailed, --format <…>, --watch |
mat zones … |
Manage scan zones | zones list [--active-only], plus add/remove/update |
mat survivors |
List detected survivors with triage status | |
mat alerts |
View / manage alerts | |
mat export |
Export scan data | JSON or CSV |
Example:
cargo run -p wifi-densepose-cli -- mat scan rubble-A --disaster-type earthquake --sensitivity 0.7 --max-depth 5 --continuous --interval 2000
cargo run -p wifi-densepose-cli -- mat survivors --format json
cargo run -p wifi-densepose-cli -- mat export --format csv > survivors.csv
Use --simulate for testing without hardware. Background and user guide: docs/wifi-mat-user-guide.md, wifi-densepose-mat crate.
2. REST API (wifi-densepose-api, Axum)
Library crate (v2/crates/wifi-densepose-api/src/lib.rs) — the Axum router/handlers; configured via the wifi-densepose-config crate. It's wired into the server binaries (e.g. the sensing server / Docker image), not a standalone cargo run target by itself.
# Easiest way to exercise it: the Docker image exposes the API + dashboard on :3000
docker run -p 3000:3000 ruvnet/wifi-densepose:latest
# Then hit the HTTP endpoints (see the API module / docs for routes) and open http://localhost:3000
# v1 Python service config reference: example.env, pyproject.toml (archive/v1/)
When embedding the API crate in your own binary, take the router from wifi_densepose_api, supply config via wifi-densepose-config, and serve with Axum/Tokio. Keep input validation at the boundary (project rule).
3. WASM / browser & ESP32-WASM3
wifi-densepose-wasm— compiles the stack towasm32-unknown-unknownwith a JS-friendly API:cd v2/crates/wifi-densepose-wasm wasm-pack build --target web --features mat # recommended (produces pkg/) cargo build --target wasm32-unknown-unknown --features mat # plain cargo buildSee
v2/crates/wifi-densepose-wasm/README.mdfor the exported surface.wifi-densepose-wasm-edge— 60 edge modules (609 tests) that compile towasm32-unknown-unknownand run on ESP32-S3 via WASM3; shared utils insrc/vendor_common.rs. These are the ADR-041 edge-intelligence modules in WASM form.- Browser demos: pose-fusion (ADR-059), point-cloud (ADR-094) — deployed via GitHub Pages from the WASM build.
4. Where it fits
| You want to… | Use |
|---|---|
| Script a survivor scan / export results | wifi-densepose mat … |
| Expose sensing over HTTP | wifi-densepose-api (via a server binary / Docker) |
| Run sensing in a browser | wifi-densepose-wasm → wasm-pack build --target web |
| Run an edge module on an ESP32 in WASM | wifi-densepose-wasm-edge + WASM3 |
| A long-running CSI sink + training | wifi-densepose-sensing-server (see ruview-applications / ruview-model-training) |
Reference
- Crates:
wifi-densepose-cli,wifi-densepose-api,wifi-densepose-config,wifi-densepose-wasm,wifi-densepose-wasm-edge,wifi-densepose-mat - ADRs: 041 (edge modules), 059 (live ESP32 pipeline), 094 (point-cloud GitHub Pages)
docs/wifi-mat-user-guide.md,docs/edge-modules/,docs/security-audit-wasm-edge-vendor.md- Validate after changes:
cd v2 && cargo test -p wifi-densepose-cli -p wifi-densepose-api -p wifi-densepose-wasm --no-default-features
版本历史
-
v3815
GitHub ↗
原版更新说明
Source snapshot validated by the CI pipeline. This entry does not contain firmware bundles. **Changes:** feat(unified): add bounded spatial research controls (#2601) * feat(unified): add bounded spatial research controls * fix(security): update Wasmtime to 36.0.21 without regressing cache patch **Source commit:** `8139c7e6258a19da9c9861fa035705dd3f031b56` Container images publish separately through the [sensing-server release workflow](https://github.com/ruvnet/RuView/actions/workflows/sensing-server-docker.yml). Firmware downloads are attached to the dedicated `vX.Y.Z-esp32` releases.
-
v3809
GitHub ↗
原版更新说明
Source snapshot validated by the CI pipeline. This entry does not contain firmware bundles. **Changes:** [SECURITY-SENSITIVE] fix(ruview-auth): one refresh across processes; no proceed after lock timeout; a sent token is never kept (#2599) * fix(ruview-auth): one refresh across processes, no proceed after a lock timeout, a sent token is never kept Identity (cognitum-one/console#857) revokes the whole session family when a used refresh token is presented again. ensure_fresh could do that in ordinary use: - after 3 s waiting on another process's lock it went ahead anyway; - it presented the token it loaded earlier instead of re-reading the file under the lock; - it kept the old token after a failed or timed-out request; - it reused the old token when an answer carried no new one; - on non-Unix it had no lock at all. Now: - login/lock.rs: flock on Unix. Elsewhere, an atomic `credentials.lock.d` directory (stale after 120 s), and if the lock state can't be read it fails closed. A waiter polls for up to LOCK_WAIT (30 s, longer than the request timeout). If it still has no lock it returns the new StoreError::RefreshBusy, having sent nothing and changed nothing. - Under the lock the file is re-read, and a record another process already refreshed is used. - Before sending, the stored record loses its refresh token (a token-less marker). A process that dies mid-request leaves a record that answers NoRefreshToken, never a reusable spent token. - Any failure once the request may have reached Identity clears the stored credentials, and the in-memory session goes token-less too. That covers a timeout, a reset, an error answer, a bad body, and a failed save of the new pair. Only a connection that was never made restores the old token. - An answer with no new refresh token stores none; the spent one is not kept. - client::refresh is bounded by REFRESH_TIMEOUT (20 s). Tests (store_refresh_tests.rs). Each scenario runs in a child process, which is this test binary re-invoked. Identity is a 127.0.0.1 fixture and all tokens are fixtures. - Two processes with one expired file: 1 refresh, and both get the new pair. - A timeout after sending clears the file, and the next run sends nothing. - A leftover token-less record is never sent. - A held lock gives RefreshBusy and sends nothing. - A refused connection keeps the token. - An answer without a refresh token keeps none. Mutation checks: dropping the re-read under the lock gives 2 refreshes; keeping the token after an error fails the timeout test. `cargo test -p ruview-auth --all-features`: 70 + 25 + 2 pass. * fix(ruview-auth): File::lock on a never-deleted lock file everywhere; durable writes (review-393) Fixes from review-393 on #2599: - Lock. A takeover-by-removal lock (like the non-Unix lock directory in the previous commit) can let two takers both hold it; review-393 reproduced this 1 in 100 on the console CLI's equivalent. The lock is now `File::lock` (stable since 1.89, the repo's pinned toolchain) on every platform: - it locks `credentials.lock`, which is never deleted; - it uses flock on Unix and LockFileEx on Windows; - the OS releases it when the holder exits or dies, so there is no staleness heuristic; - a lock that can't be taken at all fails closed; - the 30 s wait followed by RefreshBusy is unchanged. The crate no longer calls libc. The optional `libc` dependency is left in Cargo.toml so Cargo.lock doesn't change in this PR. - Durability. On Unix the parent directory is fsynced after the rename. On other platforms write_private now sync_all's the tmp file before the rename. - Child processes in the refresh tests have the test-only hooks removed from their environment. New tests: - a lock held by a live child process blocks; once the child is killed (never releasing), the lock frees; - 8 threads x 25 rounds never have more than one holder; - the lock file is never unlinked. Stress: the full lib test binary ran 90 times, 6 in parallel, with 90 passes. * fix(ruview-auth): make the credentials directory fsync best effort (L8) The parent-directory fsync ran after the rename had already put the new pair in place, and its error was fatal. On FUSE or network mounts that reject a directory fsync (EINVAL/ENOTSUP), every refresh would clear the new pair and sign the user out. It is now logged with tracing::warn and ignored; the tmp file's sync_all before the rename stays fatal. Corrects the marker-save comment, adds tests that inject a directory-fsync failure through RUVIEW_TEST_FAIL_DIR_FSYNC (save succeeds; refresh rotates and keeps the new pair), and drops the now-unused optional libc dependency. * fix(ruview-auth): never launch a browser from tests open_browser's unit test called the real launcher, so every `cargo test -p ruview-auth` opened a tab at http://127.0.0.1:1/nope in the developer's browser. Under cfg(test), open_browser now records the command it would run instead of spawning it, and the test asserts that command. **Source commit:** `f7de049ebd637aae7f5d20d51cc23162938cbad9` Container images publish separately through the [sensing-server release workflow](https://github.com/ruvnet/RuView/actions/workflows/sensing-server-docker.yml). Firmware downloads are attached to the dedicated `vX.Y.Z-esp32` releases.
-
v3750
GitHub ↗
原版更新说明
Source snapshot validated by the CI pipeline. This entry does not contain firmware bundles. **Changes:** Merge pull request #2574 from ruvnet/fix/issues-2557-2559 Fix checkout-local memory bootstrap and legacy cache isolation (#2559), derive live labels and observatory captions from the actual source (#2558), and use a short dB-domain window for single-link RSSI motion (#2557). Resolve the release audit findings with libz-sys 1.1.33 and registry ZIP 9.0.5 behind a private Candle filename API adapter. The existing advisory ignore list is unchanged. Archive guards and real Candle tensor IO regressions cover the dependency boundary. Validation and CI receipts: https://github.com/ruvnet/RuView/pull/2574 RSSI regression evidence is SYNTHETIC; real macOS/device accuracy remains unverified. Fixes #2559 Fixes #2558 Fixes #2557 **Source commit:** `13b47883a73d5070f35a3f04aec2ffa778b47e29` Container images publish separately through the [sensing-server release workflow](https://github.com/ruvnet/RuView/actions/workflows/sensing-server-docker.yml). Firmware downloads are attached to the dedicated `vX.Y.Z-esp32` releases.
-
v3727
GitHub ↗
原版更新说明
Source snapshot validated by the CI pipeline. This entry does not contain firmware bundles. **Changes:** Merge pull request #2552 from ruvnet/fix/quinn-lockfile-rustsec-2026-0523 security: bump quinn-proto/quinn-udp in v2/Cargo.lock (RUSTSEC-2026-0523/0524/0538) **Source commit:** `3bae24a1231e0d9809e84eb35edba7231b8d1913` Container images publish separately through the [sensing-server release workflow](https://github.com/ruvnet/RuView/actions/workflows/sensing-server-docker.yml). Firmware downloads are attached to the dedicated `vX.Y.Z-esp32` releases.
-
v3702
GitHub ↗
原版更新说明
Source snapshot validated by the CI pipeline. This entry does not contain firmware bundles. **Changes:** fix: crates.io publish-blocking gaps in homecore-automation, homecore-hap (#1496) homecore-automation's and homecore-hap's path dependency on homecore had no version requirement -- crates.io rejects "all dependencies must have a version requirement specified when publishing". Pinned both to homecore = "0.1.0-alpha.0", the version just published. Also fixed homecore-hap's repository field, which pointed at github.com/ruvnet/wifi-densepose (a 404) instead of the actual github.com/ruvnet/RuView -- inconsistent with every other homecore-* crate's Cargo.toml. Found while publishing the full homecore-* batch to crates.io (homecore, -api, -automation, -assist, -hap, -migrate, -plugins, -recorder, -server -- all 9, v0.1.0-alpha.0). Both crates verified via cargo publish --dry-run before and after. **Source commit:** `094e1400719ded1283c67d23b9c737f6738a3244` Container images publish separately through the [sensing-server release workflow](https://github.com/ruvnet/RuView/actions/workflows/sensing-server-docker.yml). Firmware downloads are attached to the dedicated `vX.Y.Z-esp32` releases.
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 RuView 的 CLI、REST API 和 WASM 构建的完整程序化接口,适用于灾难幸存者检测系统的多种集成场景
- 明确覆盖脚本调用、HTTP 服务暴露、浏览器和 ESP32 边缘部署等实际工程需求
亮点
- 触发描述精准,涵盖集成、脚本、HTTP、浏览器/ESP32 等多种使用方式,边界清晰
待提升项
-
缺少端到端完整示例闭环 原报告严重程度:轻微
文档提供了多个独立命令示例,但缺乏一个完整的端到端使用流程示例
改进建议:建议补充一个从扫描到导出结果的完整端到端示例,增强用户理解
亮点
- 文档结构清晰,分 CLI、API、WASM、适用场景四部分,每部分有子命令和用途说明
- frontmatter 完整,包含名称、描述和允许工具
待提升项
-
未覆盖主要异常场景 原报告严重程度:轻微
未提及网络错误、硬件不可用、WASM 构建失败等常见异常的处理方式
改进建议:建议在文档中补充常见异常场景的处理建议或错误码说明
亮点
- 工具来源明确(Cargo、Docker、wasm-pack),参数说明清晰,涵盖主要子命令和标志
- 提供了模拟模式(--simulate)用于测试,增强了开发阶段的可靠性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- localhost
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。