@rebilder/agent-detect 0.1.0 → 0.1.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 +5 -5
  2. package/package.json +3 -7
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @rebilder/agent-detect
2
2
 
3
- Agent identification from request headers. Given a request's headers (and optionally its URL), `detect()` classifies who is asking — an AI agent, a human in a browser, a search crawler, or a protocol client — and, where possible, which platform it is. Since Phase 3, the package also ships `verifyWebBotAuth()` — cryptographic Web Bot Auth verification as a **separate async step** (see § Verification below).
3
+ Agent identification from request headers. Given a request's headers (and optionally its URL), `detect()` classifies who is asking — an AI agent, a human in a browser, a search crawler, or a protocol client — and, where possible, which platform it is. The package also ships `verifyWebBotAuth()` — cryptographic Web Bot Auth verification as a **separate async step** (see § Verification below).
4
4
 
5
5
  **Pure compute. Zero runtime dependencies. Framework-agnostic.** No network calls. `detect()` does no crypto and is safe on the edge hot path (well under the 50ms p95 budget; it is a handful of string scans); `verifyWebBotAuth()` is pure crypto (ambient WebCrypto) over an injected key registry — still zero network, zero deps.
6
6
 
7
7
  ## What this package does — and does not — do
8
8
 
9
9
  - **`detect()` does:** parse and classify. Accept negotiation, Web Bot Auth header *parsing* (`Signature-Agent`, `Signature`, `Signature-Input`), protocol-route matching, User-Agent heuristics. It is synchronous and NEVER verifies: its `verified` field is always `false`.
10
- - **`verifyWebBotAuth()` does:** cryptographically verify a Web Bot Auth signature chain (RFC 9421 Ed25519 message signatures) against a **caller-injected key registry** — a distinct async step for the paths that need cryptographic identity (preference payloads, protocol transactions — ROADMAP Phase 3 P0).
10
+ - **`verifyWebBotAuth()` does:** cryptographically verify a Web Bot Auth signature chain (RFC 9421 Ed25519 message signatures) against a **caller-injected key registry** — a distinct async step for the paths that need cryptographic identity (preference payloads, protocol transactions).
11
11
  - **Neither does:** network I/O. There is no key-directory fetching anywhere in this package — the registry is data the operator injects (see § Verification for why it ships empty). Do not gate anything security-sensitive on an unverified platform claim.
12
12
 
13
13
  ## API
@@ -34,7 +34,7 @@ const result = detect({
34
34
 
35
35
  ## Verification (Web Bot Auth) — `verifyWebBotAuth()`
36
36
 
37
- Phase 3 (ROADMAP P0: "Agent verification before accepting preference payloads or protocol transactions"). A separate **async** step — `detect()` stays synchronous, parse-only, and unchanged:
37
+ Agent verification, before accepting preference payloads or protocol transactions. A separate **async** step — `detect()` stays synchronous, parse-only, and unchanged:
38
38
 
39
39
  ```ts
40
40
  import { verifyWebBotAuth, KNOWN_AGENT_DIRECTORY, type AgentKeyRegistry } from '@rebilder/agent-detect'
@@ -121,5 +121,5 @@ pnpm --filter @rebilder/agent-detect test # vitest (fixture-driven + unit
121
121
 
122
122
  ## Roadmap
123
123
 
124
- - **Phase 0 (done):** parse/classify only. `detect()`'s `verified` always `false`.
125
- - **Phase 3 (now):** Web Bot Auth signature verification — `verifyWebBotAuth()`, pure Ed25519 crypto over an injected registry (§ Verification). Still open: key-directory refresh tooling (offline snapshot script), verified-bot IP corroboration for crawlers.
124
+ - **Classification** is parse-only and synchronous; `detect()`'s `verified` is always `false`.
125
+ - **Verification** is `verifyWebBotAuth()` — pure Ed25519 crypto over an injected registry (§ Verification). Not yet shipped: key-directory refresh tooling (offline snapshot script) and verified-bot IP corroboration for crawlers.
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "@rebilder/agent-detect",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "Agent identification from request headers: Accept negotiation, Web Bot Auth signals, protocol routes, UA heuristics. Pure compute, zero runtime dependencies.",
6
6
  "license": "Apache-2.0",
7
7
  "homepage": "https://rebilder.com",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/mummlabs/mumm.git",
11
- "directory": "packages/agent-detect"
12
- },
13
8
  "bugs": {
14
- "url": "https://github.com/mummlabs/mumm/issues"
9
+ "url": "https://rebilder.com/help",
10
+ "email": "support@rebilder.com"
15
11
  },
16
12
  "keywords": [
17
13
  "agent",