@t2000/discovery 10.20.0 → 10.20.2
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.
- package/README.md +7 -17
- 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)`** —
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- **`
|
|
10
|
-
|
|
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.
|
|
19
|
-
|
|
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.
|
|
3
|
+
"version": "10.20.2",
|
|
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",
|