Skip to content

Add released API skill and reproducible PowerX onboarding / 集成已发布 API 技能与可复现 PowerX 使用指南 - #1018

Merged
edwingao28 merged 13 commits into
masterfrom
codex/inferencex-api-skill
Sep 5, 2026
Merged

Add released API skill and reproducible PowerX onboarding / 集成已发布 API 技能与可复现 PowerX 使用指南#1018
edwingao28 merged 13 commits into
masterfrom
codex/inferencex-api-skill

Conversation

@edwingao28

@edwingao28 edwingao28 commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Users can install and explicitly upgrade the published @semianalysisai/inferencex-skills@0.1.0 from /api and /zh/api. The seven package files match the public archive byte-for-byte.

The skill navigates the live public API, with strictV2 single-turn PowerX export as its first worked example. It distinguishes per-GPU watts from deployment GPU energy, preserves missing values and real zeros, and records request scope and provenance. Examples provide saved API lookups, CSV/JSON exports, and empty-selection diagnostics. These are historical observations; no new benchmarks ran. Public API and database behavior are unchanged.

Testing

Local checks recorded at 2ec9bcc3: 5,792 unit tests, including 29 packed-package tests; 6 API-page Cypress tests; smoke suite; typecheck, lint, format and typography passed. English/Chinese desktop and mobile onboarding was inspected. Earlier anonymous installation/export checks passed for both Codex and Claude Code against the public 0.1.0 archive; its seven source files and the saved example checksums were reverified.

Remote CI passed: typecheck/unit tests, component tests, all eight Chrome/Firefox E2E shards, lint/format and Actions audit. Claude and Bugbot found no blocking issues. Production deployment and live bilingual onboarding verification remain pending, and the examples link to master becomes available after merge. When integrating the independent #901 proposal, reconcile its overlapping package and .codex/skills destination with this released baseline, which uses .agents/skills for Codex. The separate 0.2.0 changes in #1019 remain unpublished.

中文说明

用户可以从 /api/zh/api 安装已发布的 @semianalysisai/inferencex-skills@0.1.0,并按说明显式升级。七个包文件与公开产物逐字节一致。

技能帮助用户使用实时公开 API,首个完整示例是 strictV2 单轮请求的 PowerX 导出。它区分单 GPU 功率与整个部署的 GPU 能耗,保留缺失值、真实零值、请求范围和溯源信息。示例提供已保存的 API 查询、CSV/JSON 导出及空结果诊断。示例使用历史观测,本轮未运行新的基准测试,也未修改公开 API 或数据库行为。

验证

2ec9bcc3 的本地验证记录:5,792 项单元测试通过,其中包含 29 项打包测试;6 项 API 页面 Cypress 测试、smoke suite、类型检查、lint、格式和字体规范检查通过。已检查中英文页面的桌面和移动端显示。此前已通过 Codex 与 Claude Code 的公开 0.1.0 匿名安装和导出验证,本次重新核对了七个源码文件及示例校验值。

远端 CI 已通过类型检查、单元测试、组件测试、Chrome/Firefox 全部八个 E2E 分片、lint、格式及 Actions 审计;Claude 和 Bugbot 未发现阻碍合并的问题。生产部署及线上中英文使用流程验证仍待完成;指向 master 的示例链接在合并后可用。后续集成独立提案 #901 时,其重叠包和 .codex/skills 安装目录需要以本次已发布版本为基准协调;本版本的 Codex 目录是 .agents/skills。另行提交的 #1019 包含 0.2.0 改进,尚未发布。

中文:明确 InferenceX API 技能的范围、实现计划及验收标准。任务拆分保存在本地,不创建 GitHub 子任务。
中文:新增可独立安装的 InferenceX API 技能,支持 Codex 与 Claude Code、公开基准测试查询及双语安装说明。通过实际 npm 归档测试安装行为,防止强制升级沿符号链接覆盖相邻文件,并接入技能包单元测试。
中文:要求技能使用完整 JSON 响应进行导出与覆盖范围判断,避免从网页摘要推断最新数据或数据缺失。通过 Codex 与 Claude Code 的真实安装查询验收。
Bundle the scoped Node 24 exporter and PowerX cookbook with source-preserving CSV/JSON output and packed-interface tests. Verify real installed Codex and Claude Code exports against the public response.

中文:新增已验证 PowerX 数据导出。随技能提供 Node 24 导出器与指南,严格筛选并保留 CSV/JSON 溯源;通过打包接口测试和两个智能体的实际安装验收。
Keep the skill broader than its single-turn exporter, report metric completeness and exclusion reasons, and provide one bounded same-scope diagnostic recipe with installed-artifact behavior tests. Enrich the local specification with the four current-round acceptance checks.

中文:说明 PowerX 可用性与指标覆盖。保留通用公开 API 指南,分别报告严格资格、指标完整性与排除原因,并通过安装产物测试验证同范围有界诊断;将四项补充验收纳入本地规格。
Guide API visitors through the unpublished candidate install, a scoped PowerX request and the installed cookbook. Reuse localized copy controls and verify both routes with retry-free browser tests.

中文:新增双语 API 技能入门说明,展示候选产物安装、限定范围的 PowerX 请求与本地指南;复用复制交互,并通过不重试的双语浏览器测试。
Apply the advisory Chinese-copy review so metric_coverage clearly describes counts and retains the conditional scope of role-specific metrics.

中文:明确指标覆盖文案中的条数含义,并保留按角色拆分指标的适用性限定。
Validate required identity, configuration, workload and source-date fields before either export or availability filtering. Keep documented nulls and optional audit/provenance fields valid, and reject unsafe numeric IDs. Exercise malformed out-of-scope rows through both installed interfaces.

中文:在导出和可用性筛选前校验必需的基准测试字段,避免异常响应被误判为空结果;保留契约允许的 null 和可选字段,拒绝不安全的数字标识符,并通过安装接口验证范围外异常行。
The real installed-agent acceptance produced correct CSV but an incorrect deployment GPU range in prose. Require raw topology reporting and verified allocation semantics before deriving totals from role counts.

中文:避免对共享 GPU 的 prefill/decode 角色重复计数。实际智能体验收的 CSV 正确,但文字汇总误算了部署 GPU 数量;补充原始拓扑字段与总量推导的明确限制。
Stage pinned npm installation commands in the bilingual README and API reference, retaining local archive review and exact command-copy tests. Keep website activation pending verified public installation.

中文:准备 API 技能的公开安装说明。双语 README 与 API 文档统一使用固定版本的 npm 命令,保留本地产物审核流程,并验证复制内容和移动端滚动;公开安装验证通过后再启用线上说明。
Sort scoped benchmark observations before limiting the installed example. Exercise the packed skill with unordered dates, out-of-scope rows and snapshot provenance to prevent older observations being presented as the latest.

中文:按观测日期排序技能查询结果。已安装的示例先筛选并按原始 date 降序排列,再截取五条;回归测试直接执行打包安装后的示例,覆盖乱序数据、范围外数据和独立快照信息,避免将旧观测值当成最新结果。
中文:同步 master 的最新改动,保留已发布的 API 技能包及双语入门内容。
中文:补充三个可复现的公开 API 示例及历史导出产物,在双语 API 页面加入升级说明和示例入口,并将官网安装版本与开发中的包版本分开验证。
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
inferencemax-app Ready Ready Preview Sep 5, 2026 7:44am UTC

Request Review

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Claude finished @edwingao28's task in 2m 5s —— View job


Review: PR #1018 — Add released API skill and reproducible PowerX onboarding

  • Read the diff and understand the changes
  • Review frontend changes (API reference page, examples link component)
  • Review the skills package (install script, export-powerx, tests)
  • Check CI status
  • Runtime-verify the /api page changes
  • Post review findings

🟢 LGTM — no blocking issues found

This PR is mostly a self-contained packages/skills package plus a documentation section on the API reference page. I focused runtime verification and static review on the app-affecting changes.

Runtime verification (localhost, real read-only DB):

  • /api and /zh/api both render the new "Use the API with your agent" / "通过智能体使用 API" section with 0 console errors. Install commands, upgrade note, examples link, prompt block, and the collapsible PowerX cookbook all render as intended.

CI: Tests (Unit) ✅, Lint & Format ✅, Zizmor ✅; Tests (E2E) still in progress at review time (no failures).

What I checked and found solid:

  • export-powerx.mjs re-filters power_valid === 1 && power_metric_schema_version === 2 client-side, so it stays correct even if the API ignored the powerValid param — and powerValid/strictV2 is in fact supported by benchmarks/route.ts, so the docs are accurate. Non-finite handling, metric_coverage counting (on selected, pre-round-trip), and CSV blanking are all internally consistent.
  • install.mjs validates target/dir/positionals, guards against non-directory and symlink overwrites, and enforces Node ≥ 24.
  • Test coverage is present and thorough: skills package unit tests (install, export, diagnose, basic-lookup) plus an expanded api-documentation.cy.ts covering both locales, install copy-to-clipboard, prompt/cookbook contents, and mobile overflow. packages/skills/** was correctly added to the tests-unit.yml path filter.
  • The new interactive element (ApiAgentExamplesLink) already has a named track('api_agent_examples_opened', { locale }) call. 👍

Chinese copy (advisory): The /zh/api strings are accurate, parallel to the English source, and read as natural technical Chinese; established English terms (token, strictV2, GPU, Node 24, npm, MCP server, schema v2, prefill/decode, joules) are correctly preserved. Note the pragmatic (英文) marker on the examples link, which is honest since the linked doc is English-only. No semantic issues — nothing requiring maintainer attention.

Note (non-blocking, already acknowledged in the PR body): the examples link and blob/master example URLs only resolve after merge to master. Expected.
· codex/inferencex-api-skill

@edwingao28
edwingao28 merged commit 6760c53 into master Sep 5, 2026
35 checks passed
@edwingao28
edwingao28 deleted the codex/inferencex-api-skill branch September 5, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant