@artblocks/abx-cli 0.1.0-alpha.3 → 0.1.0-alpha.31

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 (152) hide show
  1. package/CHANGELOG.md +3694 -0
  2. package/assets/renderer-scaffold/README.md +2 -2
  3. package/assets/renderer-scaffold/src/MyRenderer.sol +2 -2
  4. package/assets/renderer-scaffold/src/interfaces/IAbxFieldRenderer.sol +1 -1
  5. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  6. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  7. package/dist/bin.d.ts +27 -0
  8. package/dist/bin.d.ts.map +1 -0
  9. package/dist/bin.js +64 -0
  10. package/dist/bin.js.map +1 -0
  11. package/dist/commands/deploy.d.ts +242 -0
  12. package/dist/commands/deploy.d.ts.map +1 -0
  13. package/dist/commands/deploy.js +4764 -0
  14. package/dist/commands/deploy.js.map +1 -0
  15. package/dist/commands/project.d.ts +257 -0
  16. package/dist/commands/project.d.ts.map +1 -0
  17. package/dist/commands/project.js +1299 -0
  18. package/dist/commands/project.js.map +1 -0
  19. package/dist/commands/reads.d.ts +64 -0
  20. package/dist/commands/reads.d.ts.map +1 -0
  21. package/dist/commands/reads.js +701 -0
  22. package/dist/commands/reads.js.map +1 -0
  23. package/dist/commands/scaffold.d.ts +73 -0
  24. package/dist/commands/scaffold.d.ts.map +1 -0
  25. package/dist/commands/scaffold.js +679 -0
  26. package/dist/commands/scaffold.js.map +1 -0
  27. package/dist/commands/service.d.ts +41 -0
  28. package/dist/commands/service.d.ts.map +1 -0
  29. package/dist/commands/service.js +618 -0
  30. package/dist/commands/service.js.map +1 -0
  31. package/dist/commands/storage.d.ts +51 -0
  32. package/dist/commands/storage.d.ts.map +1 -0
  33. package/dist/commands/storage.js +370 -0
  34. package/dist/commands/storage.js.map +1 -0
  35. package/dist/commands/submit-app.d.ts +58 -0
  36. package/dist/commands/submit-app.d.ts.map +1 -0
  37. package/dist/commands/submit-app.js +512 -0
  38. package/dist/commands/submit-app.js.map +1 -0
  39. package/dist/config.d.ts +90 -2
  40. package/dist/config.d.ts.map +1 -1
  41. package/dist/config.js +285 -11
  42. package/dist/config.js.map +1 -1
  43. package/dist/conformance.d.ts +31 -0
  44. package/dist/conformance.d.ts.map +1 -0
  45. package/dist/conformance.js +393 -0
  46. package/dist/conformance.js.map +1 -0
  47. package/dist/deps.d.ts +6 -39
  48. package/dist/deps.d.ts.map +1 -1
  49. package/dist/deps.js +4 -68
  50. package/dist/deps.js.map +1 -1
  51. package/dist/errors.d.ts +20 -0
  52. package/dist/errors.d.ts.map +1 -0
  53. package/dist/errors.js +25 -0
  54. package/dist/errors.js.map +1 -0
  55. package/dist/flag-allowlists.d.ts +53 -0
  56. package/dist/flag-allowlists.d.ts.map +1 -0
  57. package/dist/flag-allowlists.js +157 -0
  58. package/dist/flag-allowlists.js.map +1 -0
  59. package/dist/flags.d.ts +45 -0
  60. package/dist/flags.d.ts.map +1 -1
  61. package/dist/flags.js +117 -1
  62. package/dist/flags.js.map +1 -1
  63. package/dist/jsonout.d.ts +37 -0
  64. package/dist/jsonout.d.ts.map +1 -0
  65. package/dist/jsonout.js +68 -0
  66. package/dist/jsonout.js.map +1 -0
  67. package/dist/kind.d.ts +61 -0
  68. package/dist/kind.d.ts.map +1 -0
  69. package/dist/kind.js +111 -0
  70. package/dist/kind.js.map +1 -0
  71. package/dist/main.js +699 -4736
  72. package/dist/main.js.map +1 -1
  73. package/dist/mintpage.d.ts +17 -2
  74. package/dist/mintpage.d.ts.map +1 -1
  75. package/dist/mintpage.js +241 -54
  76. package/dist/mintpage.js.map +1 -1
  77. package/dist/output.d.ts +179 -0
  78. package/dist/output.d.ts.map +1 -0
  79. package/dist/output.js +756 -0
  80. package/dist/output.js.map +1 -0
  81. package/dist/ownerops.d.ts +302 -51
  82. package/dist/ownerops.d.ts.map +1 -1
  83. package/dist/ownerops.js +1780 -357
  84. package/dist/ownerops.js.map +1 -1
  85. package/dist/preview.d.ts +81 -0
  86. package/dist/preview.d.ts.map +1 -0
  87. package/dist/preview.js +535 -0
  88. package/dist/preview.js.map +1 -0
  89. package/dist/prompt.d.ts +17 -0
  90. package/dist/prompt.d.ts.map +1 -0
  91. package/dist/prompt.js +19 -0
  92. package/dist/prompt.js.map +1 -0
  93. package/dist/provision.d.ts.map +1 -1
  94. package/dist/provision.js +16 -8
  95. package/dist/provision.js.map +1 -1
  96. package/dist/remote.d.ts +153 -52
  97. package/dist/remote.d.ts.map +1 -1
  98. package/dist/remote.js +406 -46
  99. package/dist/remote.js.map +1 -1
  100. package/dist/riskgate.d.ts +58 -0
  101. package/dist/riskgate.d.ts.map +1 -0
  102. package/dist/riskgate.js +212 -0
  103. package/dist/riskgate.js.map +1 -0
  104. package/dist/scaffold.d.ts +10 -0
  105. package/dist/scaffold.d.ts.map +1 -0
  106. package/dist/scaffold.js +52 -0
  107. package/dist/scaffold.js.map +1 -0
  108. package/dist/schema.d.ts +36 -1
  109. package/dist/schema.d.ts.map +1 -1
  110. package/dist/schema.js +121 -26
  111. package/dist/schema.js.map +1 -1
  112. package/dist/script-chunks.d.ts +8 -0
  113. package/dist/script-chunks.d.ts.map +1 -0
  114. package/dist/script-chunks.js +35 -0
  115. package/dist/script-chunks.js.map +1 -0
  116. package/dist/served.d.ts +30 -0
  117. package/dist/served.d.ts.map +1 -0
  118. package/dist/served.js +112 -0
  119. package/dist/served.js.map +1 -0
  120. package/dist/signer.d.ts +13 -0
  121. package/dist/signer.d.ts.map +1 -1
  122. package/dist/signer.js +84 -15
  123. package/dist/signer.js.map +1 -1
  124. package/dist/update-check.d.ts +83 -4
  125. package/dist/update-check.d.ts.map +1 -1
  126. package/dist/update-check.js +140 -19
  127. package/dist/update-check.js.map +1 -1
  128. package/package.json +12 -8
  129. package/skill/SKILL.md +351 -151
  130. package/skill/reference/code-projects.md +183 -26
  131. package/skill/reference/creator-token.md +99 -0
  132. package/skill/reference/decisions.md +174 -0
  133. package/skill/reference/hosting.md +63 -19
  134. package/skill/reference/operating.md +116 -12
  135. package/skill/reference/setup.md +57 -6
  136. package/skill/reference/troubleshooting.md +42 -5
  137. package/dist/inspect.d.ts +0 -48
  138. package/dist/inspect.d.ts.map +0 -1
  139. package/dist/inspect.js +0 -184
  140. package/dist/inspect.js.map +0 -1
  141. package/dist/migrate.d.ts +0 -65
  142. package/dist/migrate.d.ts.map +0 -1
  143. package/dist/migrate.js +0 -180
  144. package/dist/migrate.js.map +0 -1
  145. package/dist/onchain-uri.d.ts +0 -97
  146. package/dist/onchain-uri.d.ts.map +0 -1
  147. package/dist/onchain-uri.js +0 -243
  148. package/dist/onchain-uri.js.map +0 -1
  149. package/dist/upload.d.ts +0 -28
  150. package/dist/upload.d.ts.map +0 -1
  151. package/dist/upload.js +0 -41
  152. package/dist/upload.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,qBAAqB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EASL,KAAK,OAAO,EACb,MAAM,oBAAoB,CAAC;AAoB5B,wBAAgB,OAAO,IAAI,MAAM,CAEhC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAExD;AAOD,+FAA+F;AAC/F,wBAAgB,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAEhE;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAEtE;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAEjE;AAED,mGAAmG;AACnG,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,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AO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAiB1H;AAED;;+DAE+D;AAC/D,wBAAsB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAYhI"}
package/dist/config.js CHANGED
@@ -1,7 +1,10 @@
1
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
1
+ import { existsSync, mkdirSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, resolve } from 'node:path';
3
- import { arweaveAddress, generateArweaveJwk, } from '@artblocks/abx-storage';
4
- import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory, resolveRenderer, resolveChunkStore, resolveFixedPriceMinter, envSigningKey, } from '@artblocks/abx-sdk';
3
+ import { loadDotEnv } from '@artblocks/abx-sdk/node';
4
+ import { arweaveAddress, generateArweaveJwk, resolveArweaveJwk, assessStorageReadiness, assessTurboFunds, isTurboArweave, planTurboUpload, resolveBackend, } from '@artblocks/abx-storage';
5
+ import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory, resolveRenderer, resolveChunkStore, resolveFixedPriceMinter, resolveOneOfOneEditionFactory, resolveEditionFactory, resolveEditionCodeFactory, resolveFixedPriceMinter1155, envSigningKey, explorerUrl, METADATA_REPRESENTATION as R, } from '@artblocks/abx-sdk';
6
+ import { SelfHostIndexer } from '@artblocks/abx-indexer';
7
+ import { bold, dim, g, info, warn } from './output.js';
5
8
  /**
6
9
  * Runtime resolution for the CLI — deliberately **stateless about decisions**. There is no
7
10
  * tool-written config file: every choice is resolved fresh per invocation from explicit flags,
@@ -16,11 +19,82 @@ import { resolveChain, DEFAULT_CHAIN_KEY, resolveFactory, resolveSeriesFactory,
16
19
  * The only thing that persists on disk is the project-local, chain-rebuildable projection
17
20
  * (the indexer's SQLite store under the data dir) — that's DATA, not config.
18
21
  */
19
- const CHAIN = process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY;
20
- const chainId = () => resolveChain(CHAIN).id;
22
+ // `.env` MUST be loaded before the line below, and this is the only place that can guarantee it.
23
+ //
24
+ // `CHAIN` is a module-level const, so it evaluates when this module is first imported — which
25
+ // happens while the import graph loads, BEFORE `main()` runs and calls `loadDotEnv()`. So
26
+ // `ABX_CHAIN=sepolia` in a `.env` was read too late and silently lost: the CLI announced
27
+ // `base-sepolia` and acted on it. Every other setting escaped this because it is read lazily inside
28
+ // a function (`storageOptions()`, the signing key at send time), by which point `.env` is loaded —
29
+ // `ABX_CHAIN` was the one eager read, and the highest-stakes one to get wrong. A cold agent hit it
30
+ // in the clean room: the creator asked for Sepolia, said so in `.env`, and got a Base Sepolia
31
+ // preview with no error. On a funded send that is a wrong-chain deploy with real artifacts at an
32
+ // address nobody meant — the same consequence that made the swallowed `--chain` flag a bug worth
33
+ // fixing (see main.ts), reached by a different route.
34
+ //
35
+ // `loadDotEnv` is idempotent, so main.ts's call stays as the entry-point safety net for any path
36
+ // that does not import this module first.
37
+ loadDotEnv();
38
+ /**
39
+ * The active chain key — the ONE place it's derived (`ABX_CHAIN` → the shipped default). main.ts
40
+ * and ownerops.ts each used to carry their own identical `process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY`
41
+ * (one flagged "MUST match main.ts/config.ts" in its own comment) — two copies whose only job was
42
+ * to agree with each other, which is exactly the setup a future edit drifts out of. Both import it
43
+ * from here now.
44
+ */
45
+ export const CHAIN = process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY;
46
+ export const chainId = () => resolveChain(CHAIN).id;
47
+ // Block explorer base for the tx/address links the CLI prints. Derived from viem's chain metadata via
48
+ // the SDK (see explorerUrl) rather than a local table — this used to be a hand-maintained map, which is
49
+ // the same shape of bug that had the token-api dashboard sending every Base Sepolia link to Etherscan.
50
+ //
51
+ // LAZY (a function, not a top-level const): main.ts's `assertKnownChainEnv` has to run BEFORE any
52
+ // chain-derived value is computed, so an unknown ABX_CHAIN gets its graceful "not a chain this
53
+ // toolkit ships" message instead of a raw `resolveChain` stack trace. That guard runs at module
54
+ // load, before main.ts's own body — but config.ts is imported (and fully evaluated) even earlier,
55
+ // as part of loading main.ts's imports. An eager `const EXPLORER = explorerUrl(resolveChain(CHAIN).id)`
56
+ // here would evaluate on a bad ABX_CHAIN before the guard ever gets a turn, exactly the crash it
57
+ // exists to prevent (see that function's doc comment) — so this is a getter, resolved lazily on
58
+ // each read, the same pattern `chainId()` above already uses.
59
+ export const explorerBase = () => explorerUrl(resolveChain(CHAIN).id);
21
60
  export function dataDir() {
22
61
  return process.env.ABX_DATA_DIR ?? resolve(process.cwd(), '.abx-self-host');
23
62
  }
63
+ /**
64
+ * Make the data dir ignore itself, before anything sensitive lands in it.
65
+ *
66
+ * `.abx-self-host/` holds this node's projection AND the managed Arweave key — a real, signing-capable
67
+ * credential that also holds prepaid upload credits. The toolkit's own repo gitignores the directory,
68
+ * and the skill said so; a *creator's* repo does not, so a first `--backend arweave` run could leave a
69
+ * key staged for commit with nothing having said a word. A `.gitignore` containing `*` INSIDE the
70
+ * directory ignores the whole tree regardless of the enclosing repo's config, needs no edit to a file
71
+ * we don't own, and is inert outside git.
72
+ *
73
+ * Never overwrites an existing one — a creator who tightened or loosened it made a decision.
74
+ */
75
+ export function guardDataDirFromGit() {
76
+ const dir = dataDir();
77
+ const marker = resolve(dir, '.gitignore');
78
+ if (existsSync(marker))
79
+ return;
80
+ mkdirSync(dir, { recursive: true });
81
+ writeFileSync(marker, '# Written by abx. Local node state, and (for the arweave backend) a signing-capable key that\n' +
82
+ '# holds your prepaid upload credits. Do not commit any of it.\n*\n');
83
+ }
84
+ // ── the local indexer: one instance per process ───────────────────────────────
85
+ // `new SelfHostIndexer()` opens (and premigrate/schema-execs) the SAME on-disk SQLite db every
86
+ // time — a dozen call sites across main.ts/ownerops.ts each constructed their own, so a single CLI
87
+ // invocation that touches several of them (e.g. a deploy that also registers + reindexes) paid that
88
+ // open/migrate cost repeatedly for what is, within one process, always the same store. Memoized here
89
+ // so every call site shares one instance instead.
90
+ let _localIndexer;
91
+ /** The process-lifetime local indexer (this node's own SQLite-backed projection). Never pass a
92
+ * chain-varying argument through here — it's a bare singleton, constructed once on first use. */
93
+ export function localIndexer() {
94
+ if (!_localIndexer)
95
+ guardDataDirFromGit(); // the projection is about to be created in the creator's cwd
96
+ return (_localIndexer ??= new SelfHostIndexer());
97
+ }
24
98
  /**
25
99
  * Whether `baseUrl` is a localhost/loopback address — a URL that, once baked into an on-chain
26
100
  * `tokenURI`/`contractURI`, resolves for NO ONE off this machine. The single source of truth for
@@ -30,6 +104,25 @@ export function dataDir() {
30
104
  export function loopbackBaseUrl(baseUrl) {
31
105
  return /^https?:\/\/(localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1\])(?:[:/]|$)/i.test(baseUrl);
32
106
  }
107
+ /**
108
+ * A short faucet pointer for a testnet — a 0-balance signer's #1 next step. A known URL plus a
109
+ * search hint (URLs rot; the search always works), so "fund it" is never a dead end.
110
+ *
111
+ * Lives here rather than in main.ts because the browser-wallet signing prompt needs it too, and
112
+ * importing main.ts would execute the CLI. That prompt is the one funding surface `warnUnfunded`
113
+ * can't cover: on the `--sign` lane without `--for` we don't learn the address until the wallet
114
+ * connects, so the up-front balance check never runs and the only warning a creator would get is
115
+ * a failed transaction.
116
+ */
117
+ export function faucetHint(chainKey) {
118
+ const url = {
119
+ 'base-sepolia': 'https://portal.cdp.coinbase.com/products/faucet',
120
+ sepolia: 'https://www.alchemy.com/faucets/ethereum-sepolia',
121
+ };
122
+ return url[chainKey]
123
+ ? `get free test ETH from a ${chainKey} faucet (${url[chainKey]} — or search "${chainKey} faucet"), usually ≤1 min`
124
+ : `get test ETH from a "${chainKey}" faucet`;
125
+ }
33
126
  // ── canonical infrastructure (shipped manifest → env → flag) ─────────────────
34
127
  // Thin CLI wrappers over the SDK resolvers, pinned to the active chain. Return null (not
35
128
  // undefined) to read cleanly at call sites (`factoryAddress() ?? 'none'`). `null` means the
@@ -54,6 +147,23 @@ export function chunkStoreAddress(override) {
54
147
  export function fixedPriceMinterAddress(override) {
55
148
  return resolveFixedPriceMinter(chainId(), override) ?? null;
56
149
  }
150
+ // ── ERC-1155 editions — the same override → env → manifest resolution, one rung finer ────────────
151
+ /** Canonical 1/1-edition clone factory — flag override → `ABX_ONE_OF_ONE_EDITION_FACTORY` → manifest. */
152
+ export function oneOfOneEditionFactoryAddress(override) {
153
+ return resolveOneOfOneEditionFactory(chainId(), override) ?? null;
154
+ }
155
+ /** Canonical multi-work edition clone factory — flag override → `ABX_EDITION_FACTORY` → manifest. */
156
+ export function editionFactoryAddress(override) {
157
+ return resolveEditionFactory(chainId(), override) ?? null;
158
+ }
159
+ /** Canonical code-project edition clone factory — flag override → `ABX_EDITION_CODE_FACTORY` → manifest. */
160
+ export function editionCodeFactoryAddress(override) {
161
+ return resolveEditionCodeFactory(chainId(), override) ?? null;
162
+ }
163
+ /** Canonical shared fixed-price EDITION minter — flag override → `ABX_FIXED_PRICE_MINTER_1155` → manifest. */
164
+ export function fixedPriceMinter1155Address(override) {
165
+ return resolveFixedPriceMinter1155(chainId(), override) ?? null;
166
+ }
57
167
  /** Resolve the storage-signer lane: flag → `ABX_STORAGE_SIGNER` → default `arweave`. */
58
168
  export function storageSignerChoice(ov = {}) {
59
169
  const v = ov.storageSigner ?? process.env.ABX_STORAGE_SIGNER;
@@ -149,12 +259,12 @@ function parseJwk(raw) {
149
259
  * and **never silently replaces** a corrupt key (that would strand its credits) — a bad key throws.
150
260
  */
151
261
  export function loadArweaveJwk() {
152
- if (process.env.ARWEAVE_JWK)
153
- return parseJwk(process.env.ARWEAVE_JWK);
154
- const p = arweaveKeyFile();
155
- if (existsSync(p))
156
- return JSON.parse(readFileSync(p, 'utf8'));
157
- return undefined;
262
+ // Delegate to the storage package's resolver so the CLI and the SDK cannot disagree about where
263
+ // the identity lives — they did, and porting a working CLI flow to the SDK broke every upload with
264
+ // "Arweave via Turbo needs an identity". It also owns the diagnostics: a bare `JSON.parse` here
265
+ // reported an empty key file as "Unexpected end of JSON input", naming a parser instead of the
266
+ // file or the remedy.
267
+ return resolveArweaveJwk();
158
268
  }
159
269
  /** Load or CREATE the managed Turbo identity, persisting a fresh key (0600) to the data dir. */
160
270
  export function ensureArweaveJwk() {
@@ -164,6 +274,7 @@ export function ensureArweaveJwk() {
164
274
  return { jwk: existing, address: arweaveAddress(existing), created: false, path: p };
165
275
  const jwk = generateArweaveJwk();
166
276
  mkdirSync(dirname(p), { recursive: true });
277
+ guardDataDirFromGit(); // a key is about to land here — make the directory self-ignoring first
167
278
  writeFileSync(p, JSON.stringify(jwk), { mode: 0o600 });
168
279
  return { jwk, address: arweaveAddress(jwk), created: true, path: p };
169
280
  }
@@ -181,4 +292,167 @@ function ensureManagedArweaveJwk() {
181
292
  }
182
293
  return r.jwk;
183
294
  }
295
+ /** Per-invocation storage overrides parsed from deploy flags (the hybrid: config, overridable). */
296
+ export function storageOverrides(flags) {
297
+ return {
298
+ backend: flags.backend,
299
+ endpoint: flags.endpoint,
300
+ bucket: flags.bucket,
301
+ region: flags.region,
302
+ prefix: flags.prefix,
303
+ publicBase: flags['public-base'],
304
+ gateway: flags.gateway,
305
+ mode: flags.mode,
306
+ apiUrl: flags['api-url'],
307
+ uploadUrl: flags['upload-url'],
308
+ provider: flags.provider,
309
+ storageSigner: flags['storage-signer'],
310
+ };
311
+ }
312
+ /** Surface the free-vs-credit decision for a Turbo upload from the LOCAL byte size — no network,
313
+ * so it works in `--dry-run` too. Under 100 KiB is free; above, it draws on prepaid credits. The
314
+ * decision itself (`isTurboArweave` + the size threshold) is the storage package's
315
+ * {@link planTurboUpload}; this is just its narration. */
316
+ export function noteArweavePlan(opts, size) {
317
+ const plan = planTurboUpload(opts, size);
318
+ if (!plan)
319
+ return;
320
+ if (!plan.chargeable) {
321
+ info(`Turbo: ${plan.sizeKb} KB is under the 100 KB free tier → permanent upload is FREE — no credits, no setup.`);
322
+ }
323
+ else {
324
+ info(`Turbo: ${plan.sizeKb} KB exceeds the 100 KB free tier → draws on prepaid credits. Check \`abx storage balance\`; top up with \`abx storage topup --usd <n>\` if short.`);
325
+ }
326
+ }
327
+ /**
328
+ * Dry-run storage-readiness: surface what a REAL off-chain deploy needs, from local info only, so
329
+ * "dry-run passes → deploy fails at upload" can't happen. Covers Arweave credit needs, a missing
330
+ * Pinata JWT, and a missing cloud public base. `sizes` are the per-file byte sizes. The readiness
331
+ * FACTS (chargeable-bytes accounting, the USD estimate, the missing-JWT/public-base checks) are the
332
+ * storage package's {@link assessStorageReadiness}; this is just its narration.
333
+ */
334
+ export async function noteStorageReadiness(opts, sizes) {
335
+ const report = await assessStorageReadiness(opts, sizes);
336
+ if (report.backend === 'arweave') {
337
+ if (report.overCount === 0) {
338
+ info(`Turbo: all ${report.totalCount} file(s) under the 100 KB free tier → FREE permanent upload, no setup.`);
339
+ }
340
+ else {
341
+ // Best-effort real-rate USD estimate; silently omitted if the price API isn't reachable.
342
+ const cost = report.usd === null ? '' : ` ≈ ${report.usd < 0.01 ? '<$0.01' : '$' + report.usd.toFixed(2)} at current Turbo rates`;
343
+ info(`Turbo: ${report.overCount}/${report.totalCount} file(s) exceed the 100 KB free tier (~${report.totalKb} KB total)${cost} → draw on prepaid credits. Check \`abx storage balance --backend arweave\`; top up with \`abx storage topup --usd <n> --backend arweave\` if short.`);
344
+ }
345
+ }
346
+ else if (report.backend === 'ipfs' && report.pinataMissingJwt) {
347
+ warn('IPFS pinata mode but PINATA_JWT is not set — a real deploy will FAIL at upload. Set PINATA_JWT in .env (or --mode kubo with a local node).');
348
+ }
349
+ else if (report.backend === 'cloud' && report.missingPublicBase) {
350
+ warn('cloud/S3 has no public read base — a real deploy will FAIL. Set ABX_S3_PUBLIC_BASE or pass --public-base <bucket-or-cdn-url> (it is baked on-chain).');
351
+ }
352
+ }
353
+ /** Create + announce the managed Turbo identity right before the first upload that needs it.
354
+ * Mutates `opts.arweave.jwk` so the resolved backend can sign. No-op for non-Turbo custody, or
355
+ * when an ETH identity (`.env` key or a wallet-session remote signer) is already selected — that
356
+ * identity pays, so we don't mint an unused managed key. */
357
+ export function ensureArweaveIdentityForUpload(opts) {
358
+ if (!isTurboArweave(opts))
359
+ return;
360
+ if (opts.arweave?.jwk || opts.arweave?.ethSignerKey || opts.arweave?.remoteEth)
361
+ return; // identity already chosen
362
+ const { jwk, address, created, path } = ensureArweaveJwk();
363
+ opts.arweave.jwk = jwk;
364
+ if (created) {
365
+ warn(`created an Arweave identity for Turbo uploads → ${dim(path)}`);
366
+ info(` address ${g(address)} — BACK THIS UP (\`abx storage backup-key --out <path>\`). It signs uploads and holds any credits you buy; lose it and leftover credits are stranded.`);
367
+ }
368
+ }
369
+ /**
370
+ * Pre-upload FUNDS guard for Turbo (arweave). Runs before a real off-chain deploy so a credit
371
+ * shortfall stops *here* — with the exact address + fund options — instead of failing mid-deploy
372
+ * after some txs already landed. Only fires for chargeable files (≥100 KB); free-tier uploads skip
373
+ * it. Best-effort: if the price/balance APIs are unreachable it degrades to a warning, never a false
374
+ * block. `sizes` are per-file byte sizes. The funds decision itself is the storage package's
375
+ * {@link assessTurboFunds}; this is the narration + the throw messages built from its report.
376
+ */
377
+ export async function assertTurboFundsForUpload(opts, sizes, walletAddr) {
378
+ if (!isTurboArweave(opts))
379
+ return;
380
+ ensureArweaveIdentityForUpload(opts); // so there's an address to check
381
+ const check = await assessTurboFunds(opts.arweave, sizes, walletAddr);
382
+ if (!check || !check.short)
383
+ return;
384
+ const { address, isEth, haveWinc, needWinc, walletCredits } = check;
385
+ // Managed-key lane is short → BEFORE proposing a top-up, check whether the creator's OWN wallet
386
+ // already holds Turbo credits (public balance-by-address, no key). If so, spending those via
387
+ // `--storage-signer eth` beats paying again. This is the "check my wallet too" the flow needs.
388
+ if (!isEth && walletAddr && walletCredits && walletCredits.winc > 0 && (needWinc ? walletCredits.winc >= needWinc : true)) {
389
+ throw new Error([
390
+ `The managed Arweave key has no credits — but your wallet ${g(walletAddr)} already holds ${bold(walletCredits.credits)} Turbo credits.`,
391
+ ` Use those instead of paying again — re-run with:`,
392
+ ` • ${bold('--storage-signer eth --sign')} ${dim('(your browser wallet signs the uploads; its credits pay — no key in .env)')}`,
393
+ ` • or ${bold('--storage-signer eth')} ${dim('(if that wallet’s key is already in .env)')}`,
394
+ ` ${dim('No top-up needed.')}`,
395
+ ].join('\n'));
396
+ }
397
+ const lines = [
398
+ `Turbo credits look insufficient for this upload (${check.chargeableCount} file(s) over the 100 KB free tier).`,
399
+ ` identity ${g(address)} ${dim(isEth ? '(your EVM wallet — an ETH Turbo identity)' : '(the CLI-managed Arweave key, NOT your ETH wallet)')}`,
400
+ ` balance ${(haveWinc / 1e12).toFixed(4)} credits${needWinc ? dim(` · need ~${(needWinc / 1e12).toFixed(4)}`) : ''}`,
401
+ ...(walletAddr && !isEth ? [` ${dim(`(checked your wallet ${walletAddr} too — no Turbo credits there either.)`)}`] : []),
402
+ ...(isEth ? [] : [` ${dim('First back up the managed key — `abx storage backup-key --out <path>` — it will hold the credits you buy.')}`]),
403
+ ` Then fund + re-run:`,
404
+ ` • ${bold('abx storage topup --usd <n> --backend arweave')} ${dim('(card checkout, credits the address above)')}`,
405
+ ` • or paste ${g(address)} at ${bold('https://turbo-topup.com')} ${dim('— fund THIS address; do NOT connect a different wallet')}`,
406
+ isEth
407
+ ? ` • already funded a different identity? that's a different address — fund the one above`
408
+ : ` • funded your ETH wallet's Turbo balance instead? re-run with ${bold('--storage-signer eth')} (key in .env) or ${bold('--storage-signer eth --sign')} (browser wallet)`,
409
+ ];
410
+ throw new Error(lines.join('\n'));
411
+ }
412
+ /**
413
+ * Resolve durable locators (`ipfs://<cid>` / `ar://<txid>`) for a project's off-chain-by-hash
414
+ * fields, from THIS machine's content index via the backend. This is the bridge a remote resolver
415
+ * needs: the on-chain commitment is a keccak256, but the CID/txid that addresses the bytes lives in
416
+ * the deployer's local index — ship it so the resolver can point `image` at IPFS without the bytes.
417
+ * Returns `{ "0x<hash>": "ipfs://<cid>" }` (lowercased), empty when nothing is locatable here.
418
+ */
419
+ export async function collectContentLocators(state, backend) {
420
+ if (!backend.locator)
421
+ return {};
422
+ const out = {};
423
+ const hashFields = [...state.tokens.flatMap((t) => t.fields), ...state.collectionFields].filter((f) => f.representation === R.keccak256 || f.representation === R.sha256);
424
+ for (const f of hashFields) {
425
+ const key = f.value.toLowerCase();
426
+ if (out[key])
427
+ continue;
428
+ try {
429
+ const loc = await backend.locator(f.value);
430
+ if (loc)
431
+ out[key] = loc;
432
+ }
433
+ catch {
434
+ /* backend can't locate this hash — skip; the resolver falls back to its own image route */
435
+ }
436
+ }
437
+ return out;
438
+ }
439
+ /** Locators to bridge to a remote resolver: the ones the local deploy already stored, else freshly
440
+ * resolved from this machine's local projection + content index (e.g. `abx add <addr> --remote`
441
+ * for a contract deployed elsewhere on this same machine). */
442
+ export async function remoteLocators(address, stored, flags) {
443
+ if (stored) {
444
+ try {
445
+ const obj = JSON.parse(stored);
446
+ if (Object.keys(obj).length)
447
+ return obj;
448
+ }
449
+ catch {
450
+ /* fall through to recompute */
451
+ }
452
+ }
453
+ const local = localIndexer().getProject(address);
454
+ if (!local)
455
+ return {};
456
+ return collectContentLocators(local, resolveBackend(storageOptions(storageOverrides(flags))));
457
+ }
184
458
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAC,OAAO,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,kBAAkB,GAGnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,uBA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BAA+B;QACjC,CAAC;IACH,CAAC;IACD,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACjD,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,OAAO,sBAAsB,CAAC,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,CAAC"}
@@ -0,0 +1,31 @@
1
+ export type AssertionStatus = 'pass' | 'fail' | 'note';
2
+ export interface Assertion {
3
+ status: AssertionStatus;
4
+ message: string;
5
+ }
6
+ export interface ConformanceOptions {
7
+ baseUrl: string;
8
+ /** Omit to run only the unauthenticated (always) tier. */
9
+ token?: string;
10
+ /** Which chain to probe when the descriptor doesn't pin one down. Required (with `address`) to
11
+ * unlock the register→deregister loop. */
12
+ chainId?: number;
13
+ /** A contract THIS token may register/deregister — unlocks the full write loop. Needs `chainId` too. */
14
+ address?: string;
15
+ fromBlock?: string;
16
+ /** The register-loop's poll-to-`live` budget (default 120s/2s) — tests shrink both. */
17
+ awaitTimeoutMs?: number;
18
+ awaitIntervalMs?: number;
19
+ }
20
+ export interface ConformanceReport {
21
+ baseUrl: string;
22
+ assertions: Assertion[];
23
+ failures: number;
24
+ }
25
+ /** One ✓/✗/· line. Nested sub-bullets carry their own leading spaces in `message` (unchanged from
26
+ * the original script), so the indentation is intentional, not a formatting bug. */
27
+ export declare function formatAssertion(a: Assertion): string;
28
+ /** The final line — kept byte-stable: `scripts/e2e-remote-resolver.sh` greps for '✓ conformant'. */
29
+ export declare function verdictLine(report: ConformanceReport): string;
30
+ export declare function runConformance(opts: ConformanceOptions): Promise<ConformanceReport>;
31
+ //# sourceMappingURL=conformance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../src/conformance.ts"],"names":[],"mappings":"AAiCA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;+CAC2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAYD;qFACqF;AACrF,wBAAgB,eAAe,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAGpD;AAED,oGAAoG;AACpG,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAE7D;AAED,wBAAsB,cAAc,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAsUzF"}