@artblocks/abx-token-api 0.1.0-alpha.4 → 0.1.0-alpha.41

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 (51) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/code.d.ts +33 -12
  3. package/dist/code.d.ts.map +1 -1
  4. package/dist/code.js +68 -56
  5. package/dist/code.js.map +1 -1
  6. package/dist/{art.d.ts → content.d.ts} +5 -5
  7. package/dist/content.d.ts.map +1 -0
  8. package/dist/{art.js → content.js} +6 -6
  9. package/dist/content.js.map +1 -0
  10. package/dist/control-plane.d.ts +89 -0
  11. package/dist/control-plane.d.ts.map +1 -0
  12. package/dist/control-plane.js +768 -0
  13. package/dist/control-plane.js.map +1 -0
  14. package/dist/dashboard.d.ts.map +1 -1
  15. package/dist/dashboard.js +60 -11
  16. package/dist/dashboard.js.map +1 -1
  17. package/dist/deps.d.ts +28 -110
  18. package/dist/deps.d.ts.map +1 -1
  19. package/dist/deps.js +34 -184
  20. package/dist/deps.js.map +1 -1
  21. package/dist/index.d.ts +8 -8
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +13 -11
  24. package/dist/index.js.map +1 -1
  25. package/dist/metadata.d.ts +87 -4
  26. package/dist/metadata.d.ts.map +1 -1
  27. package/dist/metadata.js +343 -105
  28. package/dist/metadata.js.map +1 -1
  29. package/dist/resolve.d.ts +0 -2
  30. package/dist/resolve.d.ts.map +1 -1
  31. package/dist/resolve.js +0 -5
  32. package/dist/resolve.js.map +1 -1
  33. package/dist/server.d.ts +4 -27
  34. package/dist/server.d.ts.map +1 -1
  35. package/dist/server.js +310 -421
  36. package/dist/server.js.map +1 -1
  37. package/dist/watcher.d.ts +1 -1
  38. package/dist/watcher.d.ts.map +1 -1
  39. package/dist/watcher.js +137 -8
  40. package/dist/watcher.js.map +1 -1
  41. package/package.json +9 -8
  42. package/dist/abxjs.d.ts +0 -13
  43. package/dist/abxjs.d.ts.map +0 -1
  44. package/dist/abxjs.js +0 -49
  45. package/dist/abxjs.js.map +0 -1
  46. package/dist/art.d.ts.map +0 -1
  47. package/dist/art.js.map +0 -1
  48. package/dist/inline.d.ts +0 -19
  49. package/dist/inline.d.ts.map +0 -1
  50. package/dist/inline.js +0 -23
  51. package/dist/inline.js.map +0 -1
package/dist/deps.js CHANGED
@@ -1,188 +1,41 @@
1
- import { gunzipSync } from 'node:zlib';
2
- import { padHex } from 'viem';
3
- import { codeField } from '@artblocks/abx-sdk';
4
- import { escapeInlineScript } from './inline.js';
1
+ import { activeRegistry, codeField, dependencyScriptTags as sdkDependencyScriptTags, DEPENDENCY_REGISTRY_ABI, registryDepUrl, resetRegistryDependencyCache, resolveRegistryDep as sdkResolveRegistryDep, URL_BUDGET_BYTES, } from '@artblocks/abx-sdk';
2
+ import { nodeInflate } from '@artblocks/abx-sdk/node';
5
3
  /**
6
- * Registry-aware dependency resolution — the resolver's leg of the
7
- * specs/protocol/dependency-registry.md "Consumers" table:
4
+ * The resolver-only half of the dependency-registry lane: the query-string size budget and the
5
+ * directory-serving observability surface that `GET /api/deps/:chainId/:addr` reports.
8
6
  *
9
- * the collection's registry pointer: `availableOnChain` → serve the bytes
10
- * → else `preferredCDN` → else the built-in CDN map (last resort, warns)
7
+ * The registry-resolution vocabulary itself — `DEPENDENCY_REGISTRY_ABI`, `activeRegistry`,
8
+ * `resolveRegistryDep`, `registryDepUrl`, `dependencyScriptTags`, `URL_BUDGET_BYTES` — lives in
9
+ * `@artblocks/abx-sdk` (src/deps.ts): it is chain-read and
10
+ * string-assembly logic with no resolver-specific behavior, so a third-party provider or the
11
+ * CLI's offline preview can now share the identical resolution order instead of reimplementing
12
+ * it. This module re-exports that family below, PRE-WIRED with `nodeInflate`
13
+ * (`@artblocks/abx-sdk/node`) — the SDK core takes decompression as an injected `inflate` rather
14
+ * than importing `node:zlib` directly (it has to stay reachable from a browser bundle), and this
15
+ * resolver runs on Node, so the wiring happens once, here, rather than at every call site.
11
16
  *
12
- * The read interface is AB's IDependencyRegistryV0 shape (a hard compatibility rule —
13
- * any registry a collection points at speaks it). Script chunks are stored gzip'd THEN
14
- * base64'd; the resolver concatenates the chunk strings, base64-decodes, and gunzips
15
- * server-side so the document inlines plain JS. Resolution NEVER throws — the document
16
- * must always assemble; every failure degrades to the built-in map with one warn.
17
- *
18
- * This module also owns the query-string size budget for URL-carried tokenData (~8KB
19
- * request-line caps at gateway front-ends). It applies only to the directory 302 fallback
20
- * — the primary inline-injection path carries tokenData inside the document. Over-budget
21
- * redirects are still served IN FULL (never silently drop params), but warn loudly — once
22
- * per project per process, then debug.
17
+ * What stays here: `depStatusReport`'s per-dep status assembly (a read-only dry run of the same
18
+ * resolution the generator document uses, sharing its cache), the query-string budget check +
19
+ * flag (`checkUrlBudget`/`urlBudgetStatus`), and which directory-serving path a live view
20
+ * actually took (`recordDirectoryServe`) — all resolver-serving observability, not resolution
21
+ * rules, so they don't belong in the neutral layer.
23
22
  */
24
- /** The IDependencyRegistryV0 reads the resolver speaks (exact AB signatures). */
25
- export const DEPENDENCY_REGISTRY_ABI = [
26
- {
27
- type: 'function',
28
- name: 'getDependencyDetails',
29
- stateMutability: 'view',
30
- inputs: [{ name: 'dependencyNameAndVersion', type: 'bytes32' }],
31
- outputs: [
32
- { name: 'nameAndVersion', type: 'string' },
33
- { name: 'licenseType', type: 'string' },
34
- { name: 'preferredCDN', type: 'string' },
35
- { name: 'additionalCDNCount', type: 'uint24' },
36
- { name: 'preferredRepository', type: 'string' },
37
- { name: 'additionalRepositoryCount', type: 'uint24' },
38
- { name: 'dependencyWebsite', type: 'string' },
39
- { name: 'availableOnChain', type: 'bool' },
40
- { name: 'scriptCount', type: 'uint24' },
41
- ],
42
- },
43
- {
44
- type: 'function',
45
- name: 'getDependencyScript',
46
- stateMutability: 'view',
47
- inputs: [
48
- { name: 'dependencyNameAndVersion', type: 'bytes32' },
49
- { name: 'index', type: 'uint256' },
50
- ],
51
- outputs: [{ type: 'string' }],
52
- },
53
- ];
54
- // Resolved registry entries are effectively immutable (admin-gated writes), so an in-process
55
- // cache is safe; the TTL only guards admin updates. Failures negative-cache briefly so a dead
56
- // registry doesn't cost an eth_call (and a warn) per request.
57
- const CACHE_TTL_MS = 60 * 60 * 1000; // 1h
58
- const NEGATIVE_TTL_MS = 60 * 1000; // 1min
59
- const registryCache = new Map();
60
- /** Reset all in-process dependency state (cache + budget flags + serve modes) — for tests. */
23
+ export { DEPENDENCY_REGISTRY_ABI, activeRegistry, registryDepUrl, URL_BUDGET_BYTES };
24
+ /** `resolveRegistryDep`, pre-wired with `nodeInflate` — same signature callers here always used. */
25
+ export function resolveRegistryDep(client, registry, dep) {
26
+ return sdkResolveRegistryDep(client, registry, dep, { inflate: nodeInflate });
27
+ }
28
+ /** `dependencyScriptTags`, pre-wired with `nodeInflate` — same signature callers here always used. */
29
+ export function dependencyScriptTags(client, state) {
30
+ return sdkDependencyScriptTags(client, state, { inflate: nodeInflate });
31
+ }
32
+ /** Reset all in-process dependency state (the SDK's registry-resolution cache + this module's
33
+ * budget flags + serve modes) — for tests. */
61
34
  export function resetDependencyResolutionState() {
62
- registryCache.clear();
35
+ resetRegistryDependencyCache();
63
36
  budgetFlags.clear();
64
37
  directoryServeModes.clear();
65
38
  }
66
- /** The collection's registry pointer, if set to a real address (zero/undefined ⇒ none). */
67
- export function activeRegistry(state) {
68
- const registry = state.dependencies?.registry ?? null;
69
- if (!registry || /^0x0{40}$/i.test(registry))
70
- return null;
71
- return registry;
72
- }
73
- /**
74
- * Resolve one `name@version` ref through the collection's registry. Returns the resolution
75
- * (or null when the registry couldn't answer — caller falls back to the built-in map) plus
76
- * whether it was served from cache. Never throws; a fresh failure logs ONE warn (the
77
- * negative cache rate-limits it) naming the dep and why.
78
- */
79
- export async function resolveRegistryDep(client, registry, dep) {
80
- const key = `${registry.toLowerCase()}|${dep.refDecoded}`;
81
- const hit = registryCache.get(key);
82
- if (hit && hit.expiresAt > Date.now()) {
83
- return { resolution: hit.value, cached: true, error: hit.error };
84
- }
85
- try {
86
- // nameAndVersion rides as readable-ASCII bytes32 — the raw evented ref, right-padded.
87
- const ref = padHex(dep.ref, { size: 32, dir: 'right' });
88
- const details = (await client.readContract({
89
- address: registry,
90
- abi: DEPENDENCY_REGISTRY_ABI,
91
- functionName: 'getDependencyDetails',
92
- args: [ref],
93
- }));
94
- const [nameAndVersion, , preferredCDN, , , , , availableOnChain, scriptCount] = details;
95
- if (availableOnChain && scriptCount > 0) {
96
- // Per-chunk reads; the concatenated chunk strings form one base64(gzip(script)) stream.
97
- const chunks = (await Promise.all(Array.from({ length: Number(scriptCount) }, (_, i) => client.readContract({
98
- address: registry,
99
- abi: DEPENDENCY_REGISTRY_ABI,
100
- functionName: 'getDependencyScript',
101
- args: [ref, BigInt(i)],
102
- }))));
103
- const script = gunzipSync(Buffer.from(chunks.join(''), 'base64')).toString('utf8');
104
- const value = { kind: 'onchain', script };
105
- registryCache.set(key, { value, expiresAt: Date.now() + CACHE_TTL_MS });
106
- return { resolution: value, cached: false };
107
- }
108
- if (preferredCDN) {
109
- const value = { kind: 'cdn', url: preferredCDN };
110
- registryCache.set(key, { value, expiresAt: Date.now() + CACHE_TTL_MS });
111
- return { resolution: value, cached: false };
112
- }
113
- // An empty struct back means the entry simply isn't registered.
114
- const why = nameAndVersion
115
- ? 'registered but has neither on-chain bytes nor a preferredCDN'
116
- : 'not registered in the registry';
117
- return failResolution(key, dep, registry, why);
118
- }
119
- catch (err) {
120
- return failResolution(key, dep, registry, `registry read failed: ${err.message}`);
121
- }
122
- }
123
- /** Negative-cache a failed resolution + one warn (per negative-TTL window). Never throws. */
124
- function failResolution(key, dep, registry, why) {
125
- registryCache.set(key, { value: null, error: why, expiresAt: Date.now() + NEGATIVE_TTL_MS });
126
- console.warn(`[deps] registry resolution failed for ${dep.refDecoded} via ${registry}: ${why} — falling back to the built-in CDN map`);
127
- return { resolution: null, cached: false, error: why };
128
- }
129
- /**
130
- * Resolve a `name@version` registry ref to a CDN URL — the built-in reference convention,
131
- * the LAST-resort rung of the resolution order (the soft registry pointer stays
132
- * non-validating). Known runtimes get their real dist paths; anything else is best-effort npm.
133
- */
134
- export function registryDepUrl(ref) {
135
- const at = ref.lastIndexOf('@');
136
- if (at <= 0)
137
- return null;
138
- const name = ref.slice(0, at);
139
- const version = ref.slice(at + 1);
140
- const known = {
141
- p5js: `https://cdn.jsdelivr.net/npm/p5@${version}/lib/p5.min.js`,
142
- p5: `https://cdn.jsdelivr.net/npm/p5@${version}/lib/p5.min.js`,
143
- threejs: `https://cdn.jsdelivr.net/npm/three@${version}/build/three.min.js`,
144
- three: `https://cdn.jsdelivr.net/npm/three@${version}/build/three.min.js`,
145
- tonejs: `https://cdn.jsdelivr.net/npm/tone@${version}/build/Tone.js`,
146
- };
147
- return known[name] ?? `https://cdn.jsdelivr.net/npm/${name}@${version}`;
148
- }
149
- /**
150
- * The ordered dependency `<script>` tags for the generator document, each dep resolved per
151
- * the Consumers table: registry on-chain bytes → registry preferredCDN → built-in map;
152
- * `onchain`-resolution refs read their SSTORE2 data contract directly (never a registry).
153
- * Never throws — an unresolvable dep is skipped (after the warn) and the document assembles.
154
- */
155
- export async function dependencyScriptTags(client, state) {
156
- const registry = activeRegistry(state);
157
- const tags = [];
158
- for (const dep of state.dependencies?.list ?? []) {
159
- if (dep.resolution === 'registry') {
160
- if (registry) {
161
- const { resolution } = await resolveRegistryDep(client, registry, dep);
162
- if (resolution?.kind === 'onchain') {
163
- tags.push(`<script>${escapeInlineScript(resolution.script)}</script>`);
164
- continue;
165
- }
166
- if (resolution?.kind === 'cdn') {
167
- tags.push(`<script src="${resolution.url}"></script>`);
168
- continue;
169
- }
170
- // fell through — resolveRegistryDep already warned; last resort below
171
- }
172
- const url = registryDepUrl(dep.refDecoded);
173
- if (url)
174
- tags.push(`<script src="${url}"></script>`);
175
- }
176
- else {
177
- // on-chain dep: an SSTORE2 data contract holding the JS (code = 0x00 ‖ content)
178
- const bytecode = await client.getCode({ address: dep.refDecoded });
179
- if (bytecode && bytecode.length > 4) {
180
- tags.push(`<script>${escapeInlineScript(Buffer.from(bytecode.slice(4), 'hex').toString('utf8'))}</script>`);
181
- }
182
- }
183
- }
184
- return tags;
185
- }
186
39
  // The last directory serve outcome per project (in-process): inline injection is the
187
40
  // primary; a redirect only happens when the entry-document fetch failed. /api/deps reports it.
188
41
  const directoryServeModes = new Map();
@@ -191,18 +44,15 @@ export function recordDirectoryServe(address, mode) {
191
44
  directoryServeModes.set(address.toLowerCase(), { mode, at: new Date().toISOString() });
192
45
  }
193
46
  // ── the query-string size budget (URL-carried tokenData lanes only) ──────────────
194
- /** Gateway front-ends commonly cap request lines near 8KB — the spec's URL budget. It
195
- * applies to URL-carried `?abx=` payloads (the 302 fallback); resolver inline serving
196
- * injects tokenData into the document and is unaffected. */
197
- export const URL_BUDGET_BYTES = 8192;
198
47
  // Per-project over-budget observations (in-process). First breach warns loudly; repeats
199
48
  // drop to debug so a hot token doesn't spam the log once the fact is known.
200
49
  const budgetFlags = new Map();
201
50
  /**
202
51
  * Measure a URL-carried `?abx=` payload (the directory 302 fallback) against the ~8KB
203
- * budget. The FULL URL is always served — params are never dropped — this only makes the
204
- * breach visible: a loud structured warn on the first over-budget redirect per project per
205
- * process, debug-level after. Inline-injection serving never routes through here.
52
+ * budget ({@link URL_BUDGET_BYTES}, from `@artblocks/abx-sdk`). The FULL URL is always served —
53
+ * params are never dropped — this only makes the breach visible: a loud structured warn on the
54
+ * first over-budget redirect per project per process, debug-level after. Inline-injection
55
+ * serving never routes through here.
206
56
  */
207
57
  export function checkUrlBudget(address, tokenId, redirectUrl) {
208
58
  const bytes = Buffer.byteLength(redirectUrl, 'utf8');
package/dist/deps.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deps.js","sourceRoot":"","sources":["../src/deps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OA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AS;YACX,CAAC;QACH,CAAC;QACD,MAAM,GAAG,GAAG,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC3C,IAAI,CAAC,IAAI,CAAC;YACR,GAAG,EAAE,GAAG,CAAC,UAAU;YACnB,UAAU,EAAE,UAAU;YACtB,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,YAAY;YAC/C,QAAQ;YACR,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;IACL,CAAC;IACD,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IACnE,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,QAAQ;QACR,MAAM,EAAE,KAAK,CAAC,YAAY,EAAE,MAAM,IAAI,KAAK;QAC3C,IAAI;QACJ,GAAG,CAAC,SAAS;YACX,CAAC,CAAC;gBACE,+EAA+E;gBAC/E,iFAAiF;gBACjF,gBAAgB,EAAE,EAAC,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,IAAI,kBAAkB,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAC;gBAC5H,SAAS,EAAE,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC;aAC1C;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @artblocks/abx-token-api — Layer 3 reference token API + byte-custody server.
3
3
  *
4
- * Serves standard ERC-721 / ERC-7572 metadata, the token image, a JSON state
5
- * API, and a demo dashboard — all from the reconstructed projection. The on-chain
6
- * URIs point here, so this node is the resolver; switching nodes is a repoint.
4
+ * Serves standard token metadata (ERC-721 tokenURI / ERC-1155 editions' uri), ERC-7572
5
+ * collection metadata, the token image, a JSON state API, and a demo dashboard — all from
6
+ * the reconstructed projection. The on-chain URIs point here, so this node is the resolver;
7
+ * switching nodes is a repoint.
7
8
  */
8
9
  export { createTokenApiServer, startTokenApiServer, resolveBaseUrl, resolveContent, verifyProject, DEFAULT_PORT, type ServerOptions, } from './server.js';
9
- export { buildTokenMetadata, buildContractMetadata, tokenImageUrl, type DisplayMeta, type FieldProvenance } from './metadata.js';
10
- export { currentRenderArtifact, injectTokenDataIntoHtml, liveViewEnabled } from './code.js';
11
- export { ABX_JS } from './abxjs.js';
12
- export { escapeInlineScript, escapeInlineJson } from './inline.js';
10
+ export { buildTokenMetadata, buildContractMetadata, tokenArtifacts, tokenImageUrl, type DisplayMeta, type FieldProvenance, type ArtifactEntry, type EffectArtifactStatus, type TokenArtifactsResult, type PlaneAccess, type PlaneArtifactRow, } from './metadata.js';
11
+ export { currentRenderArtifact, liveViewEnabled } from './code.js';
12
+ export { ABX_JS, buildGeneratorDocument, escapeInlineJson, escapeInlineScript, injectTokenDataIntoHtml } from '@artblocks/abx-sdk';
13
13
  export { depStatusReport, dependencyScriptTags, resolveRegistryDep, registryDepUrl, activeRegistry, urlBudgetStatus, URL_BUDGET_BYTES, DEPENDENCY_REGISTRY_ABI, type DepStatus, type DirectoryServeMode, type RegistryResolution, type ResolvedVia, } from './deps.js';
14
14
  export { startChainWatcher, notifyEffects, watchIntervalMs, DEFAULT_WATCH_INTERVAL_MS, type WatcherOptions, type WatcherStatus } from './watcher.js';
15
- export { generateArt, artContentHash, fallbackImageSvg, IMAGE_MEDIA_TYPE } from './art.js';
15
+ export { generateContent, contentHash, fallbackImageSvg, IMAGE_MEDIA_TYPE } from './content.js';
16
16
  export { renderDashboard } from './dashboard.js';
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,EACb,YAAY,EACZ,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,kBAAkB,EAAE,qBAAqB,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAC;AAC/H,OAAO,EAAC,qBAAqB,EAAE,uBAAuB,EAAE,eAAe,EAAC,MAAM,WAAW,CAAC;AAI1F,OAAO,EAAC,MAAM,EAAC,MAAM,YAAY,CAAC;AAClC,OAAO,EAAC,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;AACjE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,yBAAyB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAC,MAAM,cAAc,CAAC;AACnJ,OAAO,EAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,UAAU,CAAC;AACzF,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,aAAa,EACb,YAAY,EACZ,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,qBAAqB,EAAE,eAAe,EAAC,MAAM,WAAW,CAAC;AAMjE,OAAO,EAAC,MAAM,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AACjI,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,yBAAyB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAC,MAAM,cAAc,CAAC;AACnJ,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,20 +1,22 @@
1
1
  /**
2
2
  * @artblocks/abx-token-api — Layer 3 reference token API + byte-custody server.
3
3
  *
4
- * Serves standard ERC-721 / ERC-7572 metadata, the token image, a JSON state
5
- * API, and a demo dashboard — all from the reconstructed projection. The on-chain
6
- * URIs point here, so this node is the resolver; switching nodes is a repoint.
4
+ * Serves standard token metadata (ERC-721 tokenURI / ERC-1155 editions' uri), ERC-7572
5
+ * collection metadata, the token image, a JSON state API, and a demo dashboard — all from
6
+ * the reconstructed projection. The on-chain URIs point here, so this node is the resolver;
7
+ * switching nodes is a repoint.
7
8
  */
8
9
  export { createTokenApiServer, startTokenApiServer, resolveBaseUrl, resolveContent, verifyProject, DEFAULT_PORT, } from './server.js';
9
- export { buildTokenMetadata, buildContractMetadata, tokenImageUrl } from './metadata.js';
10
- export { currentRenderArtifact, injectTokenDataIntoHtml, liveViewEnabled } from './code.js';
11
- // The runtime companion + the inline-safety escapes. Exported because `abx preview` assembles the
12
- // SAME template-mode document this package serves — one definition of the runtime surface and the
13
- // document shape, so a local preview can never drift from what the generator actually emits.
14
- export { ABX_JS } from './abxjs.js';
15
- export { escapeInlineScript, escapeInlineJson } from './inline.js';
10
+ export { buildTokenMetadata, buildContractMetadata, tokenArtifacts, tokenImageUrl, } from './metadata.js';
11
+ export { currentRenderArtifact, liveViewEnabled } from './code.js';
12
+ // The generator-document family (the runtime companion, the inline-safety escapes, and the
13
+ // document-shape builders) lives in `@artblocks/abx-sdk`. It is a pure string-ops surface with no
14
+ // resolver-specific behavior; the SDK, the CLI's
15
+ // `abx preview`, and any third-party provider all consume the same one. Re-exported here
16
+ // unchanged: this package's public API is unaffected by where the implementation lives.
17
+ export { ABX_JS, buildGeneratorDocument, escapeInlineJson, escapeInlineScript, injectTokenDataIntoHtml } from '@artblocks/abx-sdk';
16
18
  export { depStatusReport, dependencyScriptTags, resolveRegistryDep, registryDepUrl, activeRegistry, urlBudgetStatus, URL_BUDGET_BYTES, DEPENDENCY_REGISTRY_ABI, } from './deps.js';
17
19
  export { startChainWatcher, notifyEffects, watchIntervalMs, DEFAULT_WATCH_INTERVAL_MS } from './watcher.js';
18
- export { generateArt, artContentHash, fallbackImageSvg, IMAGE_MEDIA_TYPE } from './art.js';
20
+ export { generateContent, contentHash, fallbackImageSvg, IMAGE_MEDIA_TYPE } from './content.js';
19
21
  export { renderDashboard } from './dashboard.js';
20
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,oBAAoB,EACpB,mBAAmB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,EAAE,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AACjI,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,GAKxB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,yBAAyB,EAA0C,MAAM,cAAc,CAAC;AACnJ,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type MetadataField, type OpenSeaAttribute, type ProjectState, type PublicClient, type TokenState } from '@artblocks/abx-sdk';
1
+ import { type Hex, type MetadataField, type OpenSeaAttribute, type ProjectState, type PublicClient, type TokenState } from '@artblocks/abx-sdk';
2
2
  import { type StorageBackend } from '@artblocks/abx-storage';
3
3
  /**
4
4
  * Standard, marketplace-facing metadata, built from the reconstructed projection by the
@@ -44,13 +44,18 @@ export type ProvenanceStatus = 'on-chain' | 'verified' | 'mismatch' | 'anchored'
44
44
  export interface FieldProvenance {
45
45
  field: string;
46
46
  source: 'inline' | 'inline-gzip' | 'reader' | 'reader-gzip' | 'renderer' | 'keccak256' | 'sha256' | 'arweave' | 'ipfs' | 'url' | 'url-template' | 'off-chain' | 'fallback' | 'placeholder' | `effect:${string}` | 'live-view';
47
- onChain: boolean;
47
+ /** NOTE: there is deliberately no `onChain` boolean. It was exactly `status === 'on-chain'`, so it
48
+ * carried no information — and it carried the on-chain renderer's ambiguity with it, where the
49
+ * same field claimed `false` for a `url` (whose URL string IS stored on chain) and `true` for an
50
+ * `inline` value that was itself a pointer. `source` says where the bytes came from and `status`
51
+ * says what was verified about them; whether a given value resolves on chain is visible in the
52
+ * value, and that determination belongs to the reader. */
48
53
  status: ProvenanceStatus;
49
54
  /** Integrity-anchor kind for off-chain bytes, e.g. `keccak256` — the on-chain hash you verify against. */
50
55
  anchor?: 'keccak256' | 'sha256';
51
56
  note: string;
52
57
  }
53
- /** One entry of the `artifacts` manifest (`specs/protocol/data-plane.md`) — exactly
58
+ /** One entry of the `artifacts` manifest (`site/content/docs/protocol/data-plane.mdx`) — exactly
54
59
  * `{key, mimeType, uri}`, all required, nothing optional. */
55
60
  export interface ArtifactEntry {
56
61
  key: string;
@@ -65,6 +70,15 @@ export interface PlaneArtifactRow {
65
70
  outputKey: string;
66
71
  contentType: string | null;
67
72
  locator: string | null;
73
+ /** A BOUND output's content (`site/content/docs/protocol/effects.mdx → Bound vs referenced`) — the bytes that
74
+ * stitch into this JSON, held with the row. `null`/absent for every referenced output. */
75
+ bytes?: Uint8Array | null;
76
+ /** The inputsHash this row was rendered at, when the plane reports one. Optional and read-only:
77
+ * the manifest's own currency filter never consults it (it recomputes the row's KEY against the
78
+ * live inputsHash instead — see `buildTokenArtifacts` below), so an older row or a minimal test
79
+ * double may omit it without affecting what gets served. It exists purely for a read that wants
80
+ * to SHOW a stale row's own hash rather than merely knowing it doesn't match (`tokenArtifacts`). */
81
+ inputsHash?: string;
68
82
  }
69
83
  /** The resolver's read surface over the effect-artifact registry — how the manifest enumerates
70
84
  * the plane's effect source without learning any effect's internals. */
@@ -74,6 +88,24 @@ export interface PlaneAccess {
74
88
  /** One row by artifact key (the image seam's published-locator check). */
75
89
  get(key: string): PlaneArtifactRow | null;
76
90
  }
91
+ /**
92
+ * The project's preferred gateway prefix per scheme, resolved ONCE per document.
93
+ *
94
+ * The off-chain twin of `AbxMetadataRenderer._gatewayPrefix` (spec v11): the collection's reserved
95
+ * `abx_gateway_ipfs` / `abx_gateway_arweave` field, else this host's env default, else the public
96
+ * floor. Two conforming resolvers given the same chain must emit the same `image`, so the env read
97
+ * is a FLOOR and never an override — a project that stated a preference on chain gets that
98
+ * preference from every resolver, and a host's own gateway only ever fills a silence (which is the
99
+ * only way a managed provider serving a token it does not own can offer a better default).
100
+ */
101
+ export declare function projectGateways(state: Pick<ProjectState, 'collectionFields'>): GatewayPrefixes;
102
+ /** The two prefixes, threaded through a document build. Required rather than optional wherever it
103
+ * is passed, for the reason {@link resolveText} gives about `tokenAddress`: an optional input that
104
+ * silently disables a whole representation is how the `renderer` branch went missing here once. */
105
+ export interface GatewayPrefixes {
106
+ ipfs: string;
107
+ arweave: string;
108
+ }
77
109
  /**
78
110
  * The declared-type ladder for a FIELD artifact (`data-plane.md → Declared type, never sniffed`):
79
111
  * the representation is the declaration channel — `renderer` returns its contentType from chain;
@@ -82,7 +114,58 @@ export interface PlaneAccess {
82
114
  * → `application/octet-stream`, never omitted (the complete-listing rule).
83
115
  */
84
116
  export declare function fieldMimeType(client: PublicClient, state: ProjectState, entry: MetadataField, field: string, tokenId: string, display: DisplayMeta, storage?: StorageBackend): Promise<string>;
85
- /** ERC-721 metadata JSON for a token (the `tokenURI` target) + `abx_provenance` + `artifacts`. */
117
+ /**
118
+ * One producer-registered effect-artifact row, reported with its currency against the token's
119
+ * CURRENT settled inputsHash — the visibility `buildTokenArtifacts` above deliberately does NOT
120
+ * provide (it silently drops anything that doesn't match, which is correct for what gets SERVED
121
+ * but wrong for a read whose whole job is telling current from stale apart).
122
+ */
123
+ export interface EffectArtifactStatus {
124
+ /** `${effectKey}/${outputKey}` — the same composite key a manifest entry for this output uses. */
125
+ key: string;
126
+ effectKey: string;
127
+ outputKey: string;
128
+ status: 'current' | 'stale';
129
+ /** This row's own recorded inputsHash, when the plane reports one — `null` when unknown (never
130
+ * guessed; see {@link PlaneArtifactRow.inputsHash}). */
131
+ inputsHash: string | null;
132
+ contentType: string | null;
133
+ /** Where the bytes are — a producer's locator, or this node's own `/data/{key}` route. Never
134
+ * fetched or resolved here; a locator is reported verbatim. */
135
+ uri: string;
136
+ }
137
+ /**
138
+ * The direct, typed artifact read behind `abx artifacts` / the SDK's `tokenArtifacts()`; see
139
+ * site/content/docs/protocol/data-plane.mdx. Every entry in `entries` is EXACTLY what the served
140
+ * tokenURI document's `artifacts` key carries right now — this calls `buildTokenArtifacts` itself rather
141
+ * than re-deriving its filter, so the two cannot drift. A remote resolver that independently
142
+ * reimplements this logic instead of reading it from here is a SEPARATE surface, which is why a
143
+ * caller must be told which one answered.
144
+ *
145
+ * Nothing here is on-chain data itself — every entry is a resolver-published projection, whether
146
+ * the bytes it names are anchored on-chain or produced off-chain by an effect. Read each entry's
147
+ * `abx_provenance` row (`prov`) for that distinction; never infer it from an entry's mere presence.
148
+ */
149
+ export interface TokenArtifactsResult {
150
+ entries: ArtifactEntry[];
151
+ prov: FieldProvenance[];
152
+ /** Every producer-registered effect row for this token, current AND stale. Empty both for a
153
+ * project with no effect surface AND when the caller passed no `plane` — `planeConsulted` is
154
+ * what tells those two apart. */
155
+ effects: EffectArtifactStatus[];
156
+ /** Whether an effect-artifact registry (a `plane`) was actually consulted. `false` means this
157
+ * read has no way to know about producer-registered outputs at all — "no resolver [registry]
158
+ * configured for this read", not "this project has none". Always `false` for a project with no
159
+ * effect surface (a static image/Series never has one to consult). */
160
+ planeConsulted: boolean;
161
+ /** The settled inputsHash effect rows are judged against — the active effect key a caller
162
+ * compares a stale row's own `inputsHash` to, to see how far behind it is. `null` for a project
163
+ * with no effect surface. */
164
+ currentInputsHash: Hex | null;
165
+ }
166
+ export declare function tokenArtifacts(client: PublicClient, state: ProjectState, token: TokenState, baseUrl: string, chainId: number, display?: DisplayMeta, storage?: StorageBackend, plane?: PlaneAccess): Promise<TokenArtifactsResult>;
167
+ /** Token metadata JSON — the `tokenURI` target (ERC-721) / the `uri(id)` target (ERC-1155
168
+ * editions), assembled identically either way + `abx_provenance` + `artifacts`. */
86
169
  export declare function buildTokenMetadata(client: PublicClient, state: ProjectState, token: TokenState, baseUrl: string, chainId: number, display?: DisplayMeta, storage?: StorageBackend, plane?: PlaneAccess): Promise<Record<string, unknown>>;
87
170
  /** ERC-7572 collection metadata JSON (the `contractURI` target) + `abx_provenance`. */
88
171
  export declare function buildContractMetadata(client: PublicClient, state: ProjectState, baseUrl: string, chainId: number, display?: DisplayMeta, storage?: StorageBackend): Promise<Record<string, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAsB,KAAK,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAIhF;;;;;GAKG;AAEH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAExG;AAED,gGAAgG;AAChG,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;2EACuE;IACvE,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC;6GACyG;IACzG,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACrD;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC;AAEvG,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EACF,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,aAAa,GACb,UAAU,GACV,WAAW,GACX,QAAQ,GACR,SAAS,GACT,MAAM,GACN,KAAK,GACL,cAAc,GACd,WAAW,GACX,UAAU,GACV,aAAa,GACb,UAAU,MAAM,EAAE,GAClB,W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