Sign In

@t2000/discovery

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t2000/discovery - npm Package Compare versions

Comparing version
10.20.0
to
10.20.1
+1
-1
package.json
{
"name": "@t2000/discovery",
"version": "10.20.0",
"version": "10.20.1",
"description": "Probe and validate x402 seller endpoints on Sui — 402 accepts[] / WWW-Authenticate probing plus OpenAPI paid-endpoint extraction. The discovery half of the @t2000 serve stack.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -6,9 +6,7 @@ # @t2000/discovery

- **`probe(url)`** — hit an endpoint expecting a 402; reads BOTH dialects
(the x402 `accepts[]` envelope and the `WWW-Authenticate: Payment` header)
and normalizes known-USDC raw units back to decimal amounts.
- **`fetchOpenApi` / `extractEndpoints`** — pull `{origin}/openapi.json` and
extract every paid operation (summary, price, schema).
- **`validateOpenApi`** — lint a seller's document for the catalog contract.
- **`discover` / `check`** — origin-level sweeps combining the above.
- **`probe(url)`** — expect a 402; reads `accepts[]` and
`WWW-Authenticate: Payment`, normalizes known-USDC amounts.
- **`fetchOpenApi` / `extractEndpoints`** — `{origin}/openapi.json` → paid ops.
- **`validateOpenApi`** — catalog contract lint.
- **`discover` / `check`** — origin-level sweeps.

@@ -19,13 +17,5 @@ ```ts

Zero runtime dependencies. The serve↔probe integration test in
`@t2000/serve` is the CI gate that keeps the two halves of the dialect from
drifting — the cross-repo skew class (discovery lagging serve's `accepts[]`)
that motivated moving this in-monorepo.
Zero runtime dependencies. `@t2000/serve` ships a serve↔probe integration
test so the two packages cannot drift in CI.
## Relationship to @suimpp/discovery
Ported from `@suimpp/discovery@0.2.2` (2026-08-03), tests included; the CLI
stayed behind. Protocol mirrors remain published as `@suimpp/{mpp,discovery}`
— **this package is the SSOT for the t2000 stack**.
MIT © t2000