@agenticprimitives/agent-naming 1.0.0-alpha.21 → 1.0.0-alpha.23
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/CLAUDE.md +34 -50
- package/README.md +7 -0
- package/dist/abis.d.ts +99 -0
- package/dist/abis.d.ts.map +1 -1
- package/dist/abis.js +40 -0
- package/dist/abis.js.map +1 -1
- package/dist/claim.d.ts +71 -0
- package/dist/claim.d.ts.map +1 -0
- package/dist/claim.js +73 -0
- package/dist/claim.js.map +1 -0
- package/dist/client.d.ts +24 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +133 -3
- package/dist/client.js.map +1 -1
- package/dist/constants.d.ts +55 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +128 -4
- package/dist/constants.js.map +1 -1
- package/dist/custody.d.ts +42 -0
- package/dist/custody.d.ts.map +1 -1
- package/dist/custody.js +98 -1
- package/dist/custody.js.map +1 -1
- package/dist/dns.d.ts +91 -0
- package/dist/dns.d.ts.map +1 -0
- package/dist/dns.js +196 -0
- package/dist/dns.js.map +1 -0
- package/dist/grammar.d.ts +62 -0
- package/dist/grammar.d.ts.map +1 -0
- package/dist/grammar.js +165 -0
- package/dist/grammar.js.map +1 -0
- package/dist/hash.d.ts +14 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +22 -0
- package/dist/hash.js.map +1 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/issuance.d.ts +70 -0
- package/dist/issuance.d.ts.map +1 -0
- package/dist/issuance.js +65 -0
- package/dist/issuance.js.map +1 -0
- package/dist/label.d.ts +10 -0
- package/dist/label.d.ts.map +1 -0
- package/dist/label.js +39 -0
- package/dist/label.js.map +1 -0
- package/dist/namehash.d.ts +10 -23
- package/dist/namehash.d.ts.map +1 -1
- package/dist/namehash.js +11 -35
- package/dist/namehash.js.map +1 -1
- package/dist/normalize.d.ts +9 -26
- package/dist/normalize.d.ts.map +1 -1
- package/dist/normalize.js +11 -67
- package/dist/normalize.js.map +1 -1
- package/dist/records.d.ts +12 -0
- package/dist/records.d.ts.map +1 -1
- package/dist/records.js +62 -2
- package/dist/records.js.map +1 -1
- package/dist/types.d.ts +60 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/vertical.d.ts +43 -0
- package/dist/vertical.d.ts.map +1 -0
- package/dist/vertical.js +40 -0
- package/dist/vertical.js.map +1 -0
- package/docs/api.md +13 -1
- package/package.json +6 -6
package/docs/api.md
CHANGED
|
@@ -3,9 +3,21 @@
|
|
|
3
3
|
This is the human-readable guide to the public exports in
|
|
4
4
|
`capability.manifest.json`. Keep it in sync with `src/index.ts`.
|
|
5
5
|
|
|
6
|
+
## Typed naming (spec 346)
|
|
7
|
+
|
|
8
|
+
| Export | Purpose |
|
|
9
|
+
| --- | --- |
|
|
10
|
+
| `AGENT_TLDS`, `AGENT_TLD_ALIASES`, `LEGACY_TLDS`, `RESERVED_LABELS` | The six canonical suffixes (`me org team svc workspace treasury registry church circle`), the `ws → workspace` alias, the untyped legacy roots, the labels no one may claim. |
|
|
11
|
+
| `derivedTypeForTld`, `tldForDerivedType`, `rootClassForTld`, `rootClassForDerivedType`, `rootKindForTld` | suffix → derived type → root; the per-root `rootKind` tag (`keccak256("namespace:<Type>")`). |
|
|
12
|
+
| `parseAgentName`, `formatAgentName`, `onChainNameOf`, `normalizeAgentName` | The grammar: `x.t`, `x.t@c.u`, `c.u/x.t`, dotted `x.t.c.u`, type-nodes, roots, legacy. |
|
|
13
|
+
| `dnsHostForHandle`, `agentCardUrlForHost`, `a2aEndpointForHost`, `edgeA2aPathForHandle` | The §5 deployment-binding projection; the zone is always caller-supplied. |
|
|
14
|
+
| `findUniqueLabel`, `childNodeOf`, `validateTypedClaim` | Forced-unique labels (spec 220 §5) and the suffix ↔ `atl:agentType` ↔ root invariant. |
|
|
15
|
+
| `buildDeclareAgentTypeCalls`, `buildTypedClaimCalls` | Pure call builders for bootstrap steps 1b and 2–3 (compose into the SA's execute batch). |
|
|
16
|
+
| `AgentNamingClient.resolveTyped` / `checkTypedName` / `readDerivedType` / `findUniqueLabel` / `subregistryFor` | Typed reads; require `opts.profileResolver` (+ `opts.subregistries` for claims). |
|
|
17
|
+
|
|
6
18
|
## Constants
|
|
7
19
|
|
|
8
|
-
- `
|
|
20
|
+
- `AGENT_TLDS`: the six typed suffixes (`me org team svc workspace treasury registry church circle`); `LEGACY_TLDS` = `impact`, `agent` (untyped, resolvable, closed to new claims after app adoption).
|
|
9
21
|
- `AgentTld`: type of the canonical top-level label.
|
|
10
22
|
- `ZERO_NODE`: the all-zero root node.
|
|
11
23
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticprimitives/agent-naming",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
4
|
-
"description": "Agent Naming Service SDK: hierarchical naming for Smart Agents (.agent
|
|
3
|
+
"version": "1.0.0-alpha.23",
|
|
4
|
+
"description": "Agent Naming Service SDK: typed hierarchical naming for Smart Agents (.me .org .team .svc .workspace .treasury — a suffix names the derived agent type; spec 346). Owns name grammar + normalization, namehash/labelhash, records schemas, the DNS/A2A endpoint projection, claim validation, and the AgentNamingClient (resolve / typed resolve / reverse / registry). Speaks naming-domain vocabulary only — no delegation / caveat / custody concepts.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"viem": "^2.52.2",
|
|
47
|
-
"@agenticprimitives/agent-account": "1.0.0-alpha.
|
|
48
|
-
"@agenticprimitives/connect-auth": "1.0.0-alpha.
|
|
49
|
-
"@agenticprimitives/types": "1.0.0-alpha.
|
|
47
|
+
"@agenticprimitives/agent-account": "1.0.0-alpha.23",
|
|
48
|
+
"@agenticprimitives/connect-auth": "1.0.0-alpha.23",
|
|
49
|
+
"@agenticprimitives/types": "1.0.0-alpha.23"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^22.7.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"build": "tsc -p tsconfig.build.json",
|
|
64
64
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
65
65
|
"test": "vitest run",
|
|
66
|
-
"test:unit": "vitest run test/normalize.test.ts test/namehash.test.ts test/records.test.ts --passWithNoTests",
|
|
66
|
+
"test:unit": "vitest run test/normalize.test.ts test/namehash.test.ts test/records.test.ts test/grammar.test.ts test/dns.test.ts test/claim.test.ts test/custody.test.ts test/issuance.test.ts test/vertical.test.ts --passWithNoTests",
|
|
67
67
|
"test:integration": "vitest run test/integration.test.ts --passWithNoTests",
|
|
68
68
|
"test:watch": "vitest",
|
|
69
69
|
"clean": "rm -rf dist"
|