@t2000/discovery 10.20.0 → 10.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,27 +3,17 @@
3
3
  Probe and validate x402 seller endpoints on Sui — the discovery half of the
4
4
  `@t2000/serve` stack.
5
5
 
6
- - **`probe(url)`** — hit an endpoint expecting a 402; reads BOTH dialects
7
- (the x402 `accepts[]` envelope and the `WWW-Authenticate: Payment` header)
8
- and normalizes known-USDC raw units back to decimal amounts.
9
- - **`fetchOpenApi` / `extractEndpoints`** — pull `{origin}/openapi.json` and
10
- extract every paid operation (summary, price, schema).
11
- - **`validateOpenApi`** — lint a seller's document for the catalog contract.
12
- - **`discover` / `check`** — origin-level sweeps combining the above.
6
+ - **`probe(url)`** — expect a 402; reads `accepts[]` and
7
+ `WWW-Authenticate: Payment`, normalizes known-USDC amounts.
8
+ - **`fetchOpenApi` / `extractEndpoints`** `{origin}/openapi.json` paid ops.
9
+ - **`validateOpenApi`** — catalog contract lint.
10
+ - **`discover` / `check`** origin-level sweeps.
13
11
 
14
12
  ```ts
15
13
  import { probe, extractEndpoints, validateOpenApi } from '@t2000/discovery';
16
14
  ```
17
15
 
18
- Zero runtime dependencies. The serve↔probe integration test in
19
- `@t2000/serve` is the CI gate that keeps the two halves of the dialect from
20
- drifting — the cross-repo skew class (discovery lagging serve's `accepts[]`)
21
- that motivated moving this in-monorepo.
22
-
23
- ## Relationship to @suimpp/discovery
24
-
25
- Ported from `@suimpp/discovery@0.2.2` (2026-08-03), tests included; the CLI
26
- stayed behind. Protocol mirrors remain published as `@suimpp/{mpp,discovery}`
27
- — **this package is the SSOT for the t2000 stack**.
16
+ Zero runtime dependencies. `@t2000/serve` ships a serve↔probe integration
17
+ test so the two packages cannot drift in CI.
28
18
 
29
19
  MIT © t2000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2000/discovery",
3
- "version": "10.20.0",
3
+ "version": "10.20.1",
4
4
  "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
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",