@agentic-readiness/core

中文文档
0.17.0发布于 2026/11/06GPL-3.0-or-laterTypeScriptES Module构建来源已验证近 30 天下载 2190

The Agentic Readiness Scanner engine: fetcher, target resolver, parsers, checks, runner, scoring and reporters, with the catalog and visual system bundled in.

原始使用文档
文档目录6 节
  1. Install
  2. Scan a store
  3. Scan in steps
  4. Offline runs and tests
  5. Honest fetching
  6. More

@agentic-readiness/core

The scanning engine of the Agentic Readiness Scanner. The scanner checks whether AI agents that find, compare and buy on a person's behalf can read and use an online store. It reads only public pages, runs 78 checks, and returns a readiness level from 0 to 5, two scores (agentic ingestion and agentic commerce) and a fix for every finding. To try it without code, use the hosted scanner or the command line.

This package contains the fetcher with its URL policy and request budget, the target resolver, parsers, checks, runner, scoring and reporters. The check catalog and the visual system are bundled in, so it needs nothing else from the repository. It uses only web-standard APIs (fetch, Request, Response), so it runs in Node 24 or later, in workers and in tests.

Install

npm install @agentic-readiness/core

Scan a store

import { scan, renderMarkdown } from '@agentic-readiness/core';

const result = await scan('https://example.com', { budget: 40 });
console.log(result.level, result.scores);
console.log(renderMarkdown(result));

scan returns the result object (schema agentic-readiness-scanner/1): the target with its recognised platform, the level and the checks that stand before the next one, the scores and their caps, one entry per check with verdict, evidence and fix, and the legal signals. Useful options: budget (maximum requests, default 40), sampleSize (product pages to sample), timeoutMs (per request), profile (woocommerce-store, other-store or content-site, detected when omitted) and markets (for legal signals, detected when omitted).

The reporters turn a result into other formats: renderMarkdown, renderHtml (one self-contained file), renderJson and renderBadge (SVG). The catalog is exported too, for example catalog, getCheck and ScanResultSchema.

Scan in steps

Some hosts must answer each call within a fixed time. startScan and continueScan run one scan as several steps and pass a small JSON state between them:

import { startScan, continueScan } from '@agentic-readiness/core';

let step = await startScan('https://example.com', { stepDeadlineMs: 15_000 });
// store step.state (a few KiB), then in a later invocation:
while (!step.done) step = await continueScan(step.state, { stepDeadlineMs: 15_000 });
console.log(step.result.level);

A check cut off at the end of a step runs again in the next one, and the request budget counts across steps. maxSteps, maxActiveMs and a guard against steps that make no progress end the scan. Pass a cache so later steps do not fetch the same pages again.

Offline runs and tests

@agentic-readiness/core/testing adds Node-only helpers: a fetcher that answers from a recorded store directory, and a harness (mapFetcher, targetFor, runCheck) for testing one check.

Honest fetching

The scanner names itself on every request as AgenticReadinessScanner/<version> (+https://github.com/MatthiasReinholz/agentic-readiness-scanner), obeys robots.txt for that name, never pretends to be another agent, never runs JavaScript and never signs in.

More

Licence: GPL-3.0-or-later.

版本与发布记录

@agentic-readiness/core 共发布 13 个版本,首次发布于 2026/11/02;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.17.0latest2026/11/062 天前
0.16.02026/11/052 天前
0.15.02026/11/043 天前
0.14.02026/11/043 天前
0.13.12026/11/043 天前
0.13.02026/11/044 天前

关于 @agentic-readiness/core 的常见问题

@agentic-readiness/core 是什么?

The Agentic Readiness Scanner engine: fetcher, target resolver, parsers, checks, runner, scoring and reporters, with the catalog and visual system bundled in.

如何安装 @agentic-readiness/core?

在项目目录运行 npm install @agentic-readiness/core,或使用 pnpm add / yarn add / bun add。

@agentic-readiness/core 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agentic-readiness/core 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agentic-readiness/core 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agentic-readiness/core 可以商用吗?

@agentic-readiness/core 使用 GPL-3.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@agentic-readiness/core 的下载量有多少?

根据 npm 官方下载统计,@agentic-readiness/core 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,190 次,日均约 73 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agentic-readiness/core 还在维护吗?

最新版本 0.17.0 发布于 2026/11/06(2 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/11/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。