@artblocks/abx-cli 0.1.0-alpha.4 → 0.1.0-alpha.40

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 (180) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/assets/renderer-scaffold/README.md +29 -11
  3. package/assets/renderer-scaffold/foundry.toml +1 -0
  4. package/assets/renderer-scaffold/remappings.txt +1 -1
  5. package/assets/renderer-scaffold/script/DeployHooks.s.sol +24 -0
  6. package/assets/renderer-scaffold/src/MyHooks.sol +20 -0
  7. package/assets/renderer-scaffold/src/MyRenderer.sol +4 -4
  8. package/assets/renderer-scaffold/src/MyTraits.sol +2 -2
  9. package/assets/renderer-scaffold/test/MyRenderer.t.sol +60 -3
  10. package/dist/bin.d.ts +26 -0
  11. package/dist/bin.d.ts.map +1 -0
  12. package/dist/bin.js +63 -0
  13. package/dist/bin.js.map +1 -0
  14. package/dist/capabilities.d.ts +94 -0
  15. package/dist/capabilities.d.ts.map +1 -0
  16. package/dist/capabilities.js +135 -0
  17. package/dist/capabilities.js.map +1 -0
  18. package/dist/commands/auth.d.ts +54 -0
  19. package/dist/commands/auth.d.ts.map +1 -0
  20. package/dist/commands/auth.js +447 -0
  21. package/dist/commands/auth.js.map +1 -0
  22. package/dist/commands/deploy.d.ts +242 -0
  23. package/dist/commands/deploy.d.ts.map +1 -0
  24. package/dist/commands/deploy.js +4763 -0
  25. package/dist/commands/deploy.js.map +1 -0
  26. package/dist/commands/feedback.d.ts +7 -0
  27. package/dist/commands/feedback.d.ts.map +1 -0
  28. package/dist/commands/feedback.js +147 -0
  29. package/dist/commands/feedback.js.map +1 -0
  30. package/dist/commands/project.d.ts +257 -0
  31. package/dist/commands/project.d.ts.map +1 -0
  32. package/dist/commands/project.js +1414 -0
  33. package/dist/commands/project.js.map +1 -0
  34. package/dist/commands/reads.d.ts +64 -0
  35. package/dist/commands/reads.d.ts.map +1 -0
  36. package/dist/commands/reads.js +701 -0
  37. package/dist/commands/reads.js.map +1 -0
  38. package/dist/commands/scaffold.d.ts +89 -0
  39. package/dist/commands/scaffold.d.ts.map +1 -0
  40. package/dist/commands/scaffold.js +733 -0
  41. package/dist/commands/scaffold.js.map +1 -0
  42. package/dist/commands/service.d.ts +67 -0
  43. package/dist/commands/service.d.ts.map +1 -0
  44. package/dist/commands/service.js +741 -0
  45. package/dist/commands/service.js.map +1 -0
  46. package/dist/commands/storage.d.ts +51 -0
  47. package/dist/commands/storage.d.ts.map +1 -0
  48. package/dist/commands/storage.js +370 -0
  49. package/dist/commands/storage.js.map +1 -0
  50. package/dist/commands/submit-app.d.ts +59 -0
  51. package/dist/commands/submit-app.d.ts.map +1 -0
  52. package/dist/commands/submit-app.js +513 -0
  53. package/dist/commands/submit-app.js.map +1 -0
  54. package/dist/config.d.ts +90 -2
  55. package/dist/config.d.ts.map +1 -1
  56. package/dist/config.js +284 -11
  57. package/dist/config.js.map +1 -1
  58. package/dist/conformance.d.ts +31 -0
  59. package/dist/conformance.d.ts.map +1 -0
  60. package/dist/conformance.js +390 -0
  61. package/dist/conformance.js.map +1 -0
  62. package/dist/contract-read-error.d.ts +5 -0
  63. package/dist/contract-read-error.d.ts.map +1 -0
  64. package/dist/contract-read-error.js +37 -0
  65. package/dist/contract-read-error.js.map +1 -0
  66. package/dist/deps.d.ts +6 -39
  67. package/dist/deps.d.ts.map +1 -1
  68. package/dist/deps.js +4 -68
  69. package/dist/deps.js.map +1 -1
  70. package/dist/errors.d.ts +20 -0
  71. package/dist/errors.d.ts.map +1 -0
  72. package/dist/errors.js +25 -0
  73. package/dist/errors.js.map +1 -0
  74. package/dist/flag-allowlists.d.ts +53 -0
  75. package/dist/flag-allowlists.d.ts.map +1 -0
  76. package/dist/flag-allowlists.js +180 -0
  77. package/dist/flag-allowlists.js.map +1 -0
  78. package/dist/flags.d.ts +41 -0
  79. package/dist/flags.d.ts.map +1 -1
  80. package/dist/flags.js +111 -1
  81. package/dist/flags.js.map +1 -1
  82. package/dist/jsonout.d.ts +37 -0
  83. package/dist/jsonout.d.ts.map +1 -0
  84. package/dist/jsonout.js +68 -0
  85. package/dist/jsonout.js.map +1 -0
  86. package/dist/kind.d.ts +57 -0
  87. package/dist/kind.d.ts.map +1 -0
  88. package/dist/kind.js +122 -0
  89. package/dist/kind.js.map +1 -0
  90. package/dist/main.js +747 -4838
  91. package/dist/main.js.map +1 -1
  92. package/dist/mintpage.d.ts +17 -2
  93. package/dist/mintpage.d.ts.map +1 -1
  94. package/dist/mintpage.js +241 -54
  95. package/dist/mintpage.js.map +1 -1
  96. package/dist/output.d.ts +179 -0
  97. package/dist/output.d.ts.map +1 -0
  98. package/dist/output.js +780 -0
  99. package/dist/output.js.map +1 -0
  100. package/dist/ownerops.d.ts +312 -57
  101. package/dist/ownerops.d.ts.map +1 -1
  102. package/dist/ownerops.js +1808 -357
  103. package/dist/ownerops.js.map +1 -1
  104. package/dist/preview.d.ts +23 -5
  105. package/dist/preview.d.ts.map +1 -1
  106. package/dist/preview.js +95 -43
  107. package/dist/preview.js.map +1 -1
  108. package/dist/prompt.d.ts +17 -0
  109. package/dist/prompt.d.ts.map +1 -0
  110. package/dist/prompt.js +19 -0
  111. package/dist/prompt.js.map +1 -0
  112. package/dist/provision.d.ts +3 -13
  113. package/dist/provision.d.ts.map +1 -1
  114. package/dist/provision.js +19 -21
  115. package/dist/provision.js.map +1 -1
  116. package/dist/remote.d.ts +157 -52
  117. package/dist/remote.d.ts.map +1 -1
  118. package/dist/remote.js +435 -46
  119. package/dist/remote.js.map +1 -1
  120. package/dist/riskgate.d.ts +62 -0
  121. package/dist/riskgate.d.ts.map +1 -0
  122. package/dist/riskgate.js +234 -0
  123. package/dist/riskgate.js.map +1 -0
  124. package/dist/scaffold.d.ts +12 -0
  125. package/dist/scaffold.d.ts.map +1 -0
  126. package/dist/scaffold.js +56 -0
  127. package/dist/scaffold.js.map +1 -0
  128. package/dist/schema.d.ts +36 -1
  129. package/dist/schema.d.ts.map +1 -1
  130. package/dist/schema.js +121 -26
  131. package/dist/schema.js.map +1 -1
  132. package/dist/script-chunks.d.ts +8 -0
  133. package/dist/script-chunks.d.ts.map +1 -0
  134. package/dist/script-chunks.js +35 -0
  135. package/dist/script-chunks.js.map +1 -0
  136. package/dist/served.d.ts +30 -0
  137. package/dist/served.d.ts.map +1 -0
  138. package/dist/served.js +112 -0
  139. package/dist/served.js.map +1 -0
  140. package/dist/signer.d.ts +13 -0
  141. package/dist/signer.d.ts.map +1 -1
  142. package/dist/signer.js +84 -15
  143. package/dist/signer.js.map +1 -1
  144. package/dist/update-check.d.ts +86 -5
  145. package/dist/update-check.d.ts.map +1 -1
  146. package/dist/update-check.js +161 -20
  147. package/dist/update-check.js.map +1 -1
  148. package/package.json +13 -12
  149. package/skill/SKILL.md +179 -347
  150. package/skill/agents/openai.yaml +4 -0
  151. package/skill/reference/capabilities.md +188 -0
  152. package/skill/reference/code.md +211 -0
  153. package/skill/reference/creator-token.md +94 -0
  154. package/skill/reference/deploy.md +167 -0
  155. package/skill/reference/diagnose.md +165 -0
  156. package/skill/reference/hosting.md +161 -94
  157. package/skill/reference/operate.md +181 -0
  158. package/skill/reference/services.md +121 -0
  159. package/skill/reference/setup.md +140 -36
  160. package/assets/renderer-scaffold/src/interfaces/IAbxFieldRenderer.sol +0 -32
  161. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +0 -26
  162. package/dist/inspect.d.ts +0 -48
  163. package/dist/inspect.d.ts.map +0 -1
  164. package/dist/inspect.js +0 -184
  165. package/dist/inspect.js.map +0 -1
  166. package/dist/migrate.d.ts +0 -65
  167. package/dist/migrate.d.ts.map +0 -1
  168. package/dist/migrate.js +0 -180
  169. package/dist/migrate.js.map +0 -1
  170. package/dist/onchain-uri.d.ts +0 -97
  171. package/dist/onchain-uri.d.ts.map +0 -1
  172. package/dist/onchain-uri.js +0 -243
  173. package/dist/onchain-uri.js.map +0 -1
  174. package/dist/upload.d.ts +0 -28
  175. package/dist/upload.d.ts.map +0 -1
  176. package/dist/upload.js +0 -41
  177. package/dist/upload.js.map +0 -1
  178. package/skill/reference/code-projects.md +0 -246
  179. package/skill/reference/operating.md +0 -116
  180. package/skill/reference/troubleshooting.md +0 -28
@@ -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,IAAI,CAEnE;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAEzE;AAID,yGAAyG;AACzG,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,C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G;AAChG,wBAAgB,gBAAgB,IAAI;IAAC,GAAG,EAAE,UAAU,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CASrG;AAmBD,mGAAmG;AACnG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,gBAAgB,CAe/D;AAED;;;2DAG2D;AAC3D,wBAAgB,eAAe,CAAC,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAQ/E;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAetG;AAED;;;6DAG6D;AAC7D,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,CAShF;AAED;;;;;;;GAOG;AACH,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoChI;AAED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,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,81 @@ 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. On a funded send, an
30
+ // ignored value can cause a wrong-chain deploy with real artifacts at an
31
+ // address nobody meant — the same consequence that made the swallowed `--chain` flag a bug worth
32
+ // fixing (see main.ts), reached by a different route.
33
+ //
34
+ // `loadDotEnv` is idempotent, so main.ts's call stays as the entry-point safety net for any path
35
+ // that does not import this module first.
36
+ loadDotEnv();
37
+ /**
38
+ * The active chain key — the ONE place it's derived (`ABX_CHAIN` → the shipped default). main.ts
39
+ * and ownerops.ts each used to carry their own identical `process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY`
40
+ * (one flagged "MUST match main.ts/config.ts" in its own comment) — two copies whose only job was
41
+ * to agree with each other, which is exactly the setup a future edit drifts out of. Both import it
42
+ * from here now.
43
+ */
44
+ export const CHAIN = process.env.ABX_CHAIN ?? DEFAULT_CHAIN_KEY;
45
+ export const chainId = () => resolveChain(CHAIN).id;
46
+ // Block explorer base for the tx/address links the CLI prints. Derived from viem's chain metadata via
47
+ // the SDK (see explorerUrl) rather than a local table — this used to be a hand-maintained map, which is
48
+ // the same shape of bug that had the token-api dashboard sending every Base Sepolia link to Etherscan.
49
+ //
50
+ // LAZY (a function, not a top-level const): main.ts's `assertKnownChainEnv` has to run BEFORE any
51
+ // chain-derived value is computed, so an unknown ABX_CHAIN gets its graceful "not a chain this
52
+ // toolkit ships" message instead of a raw `resolveChain` stack trace. That guard runs at module
53
+ // load, before main.ts's own body — but config.ts is imported (and fully evaluated) even earlier,
54
+ // as part of loading main.ts's imports. An eager `const EXPLORER = explorerUrl(resolveChain(CHAIN).id)`
55
+ // here would evaluate on a bad ABX_CHAIN before the guard ever gets a turn, exactly the crash it
56
+ // exists to prevent (see that function's doc comment) — so this is a getter, resolved lazily on
57
+ // each read, the same pattern `chainId()` above already uses.
58
+ export const explorerBase = () => explorerUrl(resolveChain(CHAIN).id);
21
59
  export function dataDir() {
22
60
  return process.env.ABX_DATA_DIR ?? resolve(process.cwd(), '.abx-self-host');
23
61
  }
62
+ /**
63
+ * Make the data dir ignore itself, before anything sensitive lands in it.
64
+ *
65
+ * `.abx-self-host/` holds this node's projection AND the managed Arweave key — a real, signing-capable
66
+ * credential that also holds prepaid upload credits. The toolkit's own repo gitignores the directory,
67
+ * and the skill said so; a *creator's* repo does not, so a first `--backend arweave` run could leave a
68
+ * key staged for commit with nothing having said a word. A `.gitignore` containing `*` INSIDE the
69
+ * directory ignores the whole tree regardless of the enclosing repo's config, needs no edit to a file
70
+ * we don't own, and is inert outside git.
71
+ *
72
+ * Never overwrites an existing one — a creator who tightened or loosened it made a decision.
73
+ */
74
+ export function guardDataDirFromGit() {
75
+ const dir = dataDir();
76
+ const marker = resolve(dir, '.gitignore');
77
+ if (existsSync(marker))
78
+ return;
79
+ mkdirSync(dir, { recursive: true });
80
+ writeFileSync(marker, '# Written by abx. Local node state, and (for the arweave backend) a signing-capable key that\n' +
81
+ '# holds your prepaid upload credits. Do not commit any of it.\n*\n');
82
+ }
83
+ // ── the local indexer: one instance per process ───────────────────────────────
84
+ // `new SelfHostIndexer()` opens (and premigrate/schema-execs) the SAME on-disk SQLite db every
85
+ // time — a dozen call sites across main.ts/ownerops.ts each constructed their own, so a single CLI
86
+ // invocation that touches several of them (e.g. a deploy that also registers + reindexes) paid that
87
+ // open/migrate cost repeatedly for what is, within one process, always the same store. Memoized here
88
+ // so every call site shares one instance instead.
89
+ let _localIndexer;
90
+ /** The process-lifetime local indexer (this node's own SQLite-backed projection). Never pass a
91
+ * chain-varying argument through here — it's a bare singleton, constructed once on first use. */
92
+ export function localIndexer() {
93
+ if (!_localIndexer)
94
+ guardDataDirFromGit(); // the projection is about to be created in the creator's cwd
95
+ return (_localIndexer ??= new SelfHostIndexer());
96
+ }
24
97
  /**
25
98
  * Whether `baseUrl` is a localhost/loopback address — a URL that, once baked into an on-chain
26
99
  * `tokenURI`/`contractURI`, resolves for NO ONE off this machine. The single source of truth for
@@ -30,6 +103,25 @@ export function dataDir() {
30
103
  export function loopbackBaseUrl(baseUrl) {
31
104
  return /^https?:\/\/(localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1\])(?:[:/]|$)/i.test(baseUrl);
32
105
  }
106
+ /**
107
+ * A short faucet pointer for a testnet — a 0-balance signer's #1 next step. A known URL plus a
108
+ * search hint (URLs rot; the search always works), so "fund it" is never a dead end.
109
+ *
110
+ * Lives here rather than in main.ts because the browser-wallet signing prompt needs it too, and
111
+ * importing main.ts would execute the CLI. That prompt is the one funding surface `warnUnfunded`
112
+ * can't cover: on the `--sign` lane without `--for` we don't learn the address until the wallet
113
+ * connects, so the up-front balance check never runs and the only warning a creator would get is
114
+ * a failed transaction.
115
+ */
116
+ export function faucetHint(chainKey) {
117
+ const url = {
118
+ 'base-sepolia': 'https://portal.cdp.coinbase.com/products/faucet',
119
+ sepolia: 'https://www.alchemy.com/faucets/ethereum-sepolia',
120
+ };
121
+ return url[chainKey]
122
+ ? `get free test ETH from a ${chainKey} faucet (${url[chainKey]} — or search "${chainKey} faucet"), usually ≤1 min`
123
+ : `get test ETH from a "${chainKey}" faucet`;
124
+ }
33
125
  // ── canonical infrastructure (shipped manifest → env → flag) ─────────────────
34
126
  // Thin CLI wrappers over the SDK resolvers, pinned to the active chain. Return null (not
35
127
  // undefined) to read cleanly at call sites (`factoryAddress() ?? 'none'`). `null` means the
@@ -54,6 +146,23 @@ export function chunkStoreAddress(override) {
54
146
  export function fixedPriceMinterAddress(override) {
55
147
  return resolveFixedPriceMinter(chainId(), override) ?? null;
56
148
  }
149
+ // ── ERC-1155 editions — the same override → env → manifest resolution, one rung finer ────────────
150
+ /** Canonical 1/1-edition clone factory — flag override → `ABX_ONE_OF_ONE_EDITION_FACTORY` → manifest. */
151
+ export function oneOfOneEditionFactoryAddress(override) {
152
+ return resolveOneOfOneEditionFactory(chainId(), override) ?? null;
153
+ }
154
+ /** Canonical multi-work edition clone factory — flag override → `ABX_EDITION_FACTORY` → manifest. */
155
+ export function editionFactoryAddress(override) {
156
+ return resolveEditionFactory(chainId(), override) ?? null;
157
+ }
158
+ /** Canonical code-project edition clone factory — flag override → `ABX_EDITION_CODE_FACTORY` → manifest. */
159
+ export function editionCodeFactoryAddress(override) {
160
+ return resolveEditionCodeFactory(chainId(), override) ?? null;
161
+ }
162
+ /** Canonical shared fixed-price EDITION minter — flag override → `ABX_FIXED_PRICE_MINTER_1155` → manifest. */
163
+ export function fixedPriceMinter1155Address(override) {
164
+ return resolveFixedPriceMinter1155(chainId(), override) ?? null;
165
+ }
57
166
  /** Resolve the storage-signer lane: flag → `ABX_STORAGE_SIGNER` → default `arweave`. */
58
167
  export function storageSignerChoice(ov = {}) {
59
168
  const v = ov.storageSigner ?? process.env.ABX_STORAGE_SIGNER;
@@ -149,12 +258,12 @@ function parseJwk(raw) {
149
258
  * and **never silently replaces** a corrupt key (that would strand its credits) — a bad key throws.
150
259
  */
151
260
  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;
261
+ // Delegate to the storage package's resolver so the CLI and the SDK cannot disagree about where
262
+ // the identity lives — they did, and porting a working CLI flow to the SDK broke every upload with
263
+ // "Arweave via Turbo needs an identity". It also owns the diagnostics: a bare `JSON.parse` here
264
+ // reported an empty key file as "Unexpected end of JSON input", naming a parser instead of the
265
+ // file or the remedy.
266
+ return resolveArweaveJwk();
158
267
  }
159
268
  /** Load or CREATE the managed Turbo identity, persisting a fresh key (0600) to the data dir. */
160
269
  export function ensureArweaveJwk() {
@@ -164,6 +273,7 @@ export function ensureArweaveJwk() {
164
273
  return { jwk: existing, address: arweaveAddress(existing), created: false, path: p };
165
274
  const jwk = generateArweaveJwk();
166
275
  mkdirSync(dirname(p), { recursive: true });
276
+ guardDataDirFromGit(); // a key is about to land here — make the directory self-ignoring first
167
277
  writeFileSync(p, JSON.stringify(jwk), { mode: 0o600 });
168
278
  return { jwk, address: arweaveAddress(jwk), created: true, path: p };
169
279
  }
@@ -181,4 +291,167 @@ function ensureManagedArweaveJwk() {
181
291
  }
182
292
  return r.jwk;
183
293
  }
294
+ /** Per-invocation storage overrides parsed from deploy flags (the hybrid: config, overridable). */
295
+ export function storageOverrides(flags) {
296
+ return {
297
+ backend: flags.backend,
298
+ endpoint: flags.endpoint,
299
+ bucket: flags.bucket,
300
+ region: flags.region,
301
+ prefix: flags.prefix,
302
+ publicBase: flags['public-base'],
303
+ gateway: flags.gateway,
304
+ mode: flags.mode,
305
+ apiUrl: flags['api-url'],
306
+ uploadUrl: flags['upload-url'],
307
+ provider: flags.provider,
308
+ storageSigner: flags['storage-signer'],
309
+ };
310
+ }
311
+ /** Surface the free-vs-credit decision for a Turbo upload from the LOCAL byte size — no network,
312
+ * so it works in `--dry-run` too. Under 100 KiB is free; above, it draws on prepaid credits. The
313
+ * decision itself (`isTurboArweave` + the size threshold) is the storage package's
314
+ * {@link planTurboUpload}; this is just its narration. */
315
+ export function noteArweavePlan(opts, size) {
316
+ const plan = planTurboUpload(opts, size);
317
+ if (!plan)
318
+ return;
319
+ if (!plan.chargeable) {
320
+ info(`Turbo: ${plan.sizeKb} KB is under the 100 KB free tier → permanent upload is FREE — no credits, no setup.`);
321
+ }
322
+ else {
323
+ 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.`);
324
+ }
325
+ }
326
+ /**
327
+ * Dry-run storage-readiness: surface what a REAL off-chain deploy needs, from local info only, so
328
+ * "dry-run passes → deploy fails at upload" can't happen. Covers Arweave credit needs, a missing
329
+ * Pinata JWT, and a missing cloud public base. `sizes` are the per-file byte sizes. The readiness
330
+ * FACTS (chargeable-bytes accounting, the USD estimate, the missing-JWT/public-base checks) are the
331
+ * storage package's {@link assessStorageReadiness}; this is just its narration.
332
+ */
333
+ export async function noteStorageReadiness(opts, sizes) {
334
+ const report = await assessStorageReadiness(opts, sizes);
335
+ if (report.backend === 'arweave') {
336
+ if (report.overCount === 0) {
337
+ info(`Turbo: all ${report.totalCount} file(s) under the 100 KB free tier → FREE permanent upload, no setup.`);
338
+ }
339
+ else {
340
+ // Best-effort real-rate USD estimate; silently omitted if the price API isn't reachable.
341
+ const cost = report.usd === null ? '' : ` ≈ ${report.usd < 0.01 ? '<$0.01' : '$' + report.usd.toFixed(2)} at current Turbo rates`;
342
+ 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.`);
343
+ }
344
+ }
345
+ else if (report.backend === 'ipfs' && report.pinataMissingJwt) {
346
+ 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).');
347
+ }
348
+ else if (report.backend === 'cloud' && report.missingPublicBase) {
349
+ 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).');
350
+ }
351
+ }
352
+ /** Create + announce the managed Turbo identity right before the first upload that needs it.
353
+ * Mutates `opts.arweave.jwk` so the resolved backend can sign. No-op for non-Turbo custody, or
354
+ * when an ETH identity (`.env` key or a wallet-session remote signer) is already selected — that
355
+ * identity pays, so we don't mint an unused managed key. */
356
+ export function ensureArweaveIdentityForUpload(opts) {
357
+ if (!isTurboArweave(opts))
358
+ return;
359
+ if (opts.arweave?.jwk || opts.arweave?.ethSignerKey || opts.arweave?.remoteEth)
360
+ return; // identity already chosen
361
+ const { jwk, address, created, path } = ensureArweaveJwk();
362
+ opts.arweave.jwk = jwk;
363
+ if (created) {
364
+ warn(`created an Arweave identity for Turbo uploads → ${dim(path)}`);
365
+ 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.`);
366
+ }
367
+ }
368
+ /**
369
+ * Pre-upload FUNDS guard for Turbo (arweave). Runs before a real off-chain deploy so a credit
370
+ * shortfall stops *here* — with the exact address + fund options — instead of failing mid-deploy
371
+ * after some txs already landed. Only fires for chargeable files (≥100 KB); free-tier uploads skip
372
+ * it. Best-effort: if the price/balance APIs are unreachable it degrades to a warning, never a false
373
+ * block. `sizes` are per-file byte sizes. The funds decision itself is the storage package's
374
+ * {@link assessTurboFunds}; this is the narration + the throw messages built from its report.
375
+ */
376
+ export async function assertTurboFundsForUpload(opts, sizes, walletAddr) {
377
+ if (!isTurboArweave(opts))
378
+ return;
379
+ ensureArweaveIdentityForUpload(opts); // so there's an address to check
380
+ const check = await assessTurboFunds(opts.arweave, sizes, walletAddr);
381
+ if (!check || !check.short)
382
+ return;
383
+ const { address, isEth, haveWinc, needWinc, walletCredits } = check;
384
+ // Managed-key lane is short → BEFORE proposing a top-up, check whether the creator's OWN wallet
385
+ // already holds Turbo credits (public balance-by-address, no key). If so, spending those via
386
+ // `--storage-signer eth` beats paying again. This is the "check my wallet too" the flow needs.
387
+ if (!isEth && walletAddr && walletCredits && walletCredits.winc > 0 && (needWinc ? walletCredits.winc >= needWinc : true)) {
388
+ throw new Error([
389
+ `The managed Arweave key has no credits — but your wallet ${g(walletAddr)} already holds ${bold(walletCredits.credits)} Turbo credits.`,
390
+ ` Use those instead of paying again — re-run with:`,
391
+ ` • ${bold('--storage-signer eth --sign')} ${dim('(your browser wallet signs the uploads; its credits pay — no key in .env)')}`,
392
+ ` • or ${bold('--storage-signer eth')} ${dim('(if that wallet’s key is already in .env)')}`,
393
+ ` ${dim('No top-up needed.')}`,
394
+ ].join('\n'));
395
+ }
396
+ const lines = [
397
+ `Turbo credits look insufficient for this upload (${check.chargeableCount} file(s) over the 100 KB free tier).`,
398
+ ` identity ${g(address)} ${dim(isEth ? '(your EVM wallet — an ETH Turbo identity)' : '(the CLI-managed Arweave key, NOT your ETH wallet)')}`,
399
+ ` balance ${(haveWinc / 1e12).toFixed(4)} credits${needWinc ? dim(` · need ~${(needWinc / 1e12).toFixed(4)}`) : ''}`,
400
+ ...(walletAddr && !isEth ? [` ${dim(`(checked your wallet ${walletAddr} too — no Turbo credits there either.)`)}`] : []),
401
+ ...(isEth ? [] : [` ${dim('First back up the managed key — `abx storage backup-key --out <path>` — it will hold the credits you buy.')}`]),
402
+ ` Then fund + re-run:`,
403
+ ` • ${bold('abx storage topup --usd <n> --backend arweave')} ${dim('(card checkout, credits the address above)')}`,
404
+ ` • or paste ${g(address)} at ${bold('https://turbo-topup.com')} ${dim('— fund THIS address; do NOT connect a different wallet')}`,
405
+ isEth
406
+ ? ` • already funded a different identity? that's a different address — fund the one above`
407
+ : ` • 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)`,
408
+ ];
409
+ throw new Error(lines.join('\n'));
410
+ }
411
+ /**
412
+ * Resolve durable locators (`ipfs://<cid>` / `ar://<txid>`) for a project's off-chain-by-hash
413
+ * fields, from THIS machine's content index via the backend. This is the bridge a remote resolver
414
+ * needs: the on-chain commitment is a keccak256, but the CID/txid that addresses the bytes lives in
415
+ * the deployer's local index — ship it so the resolver can point `image` at IPFS without the bytes.
416
+ * Returns `{ "0x<hash>": "ipfs://<cid>" }` (lowercased), empty when nothing is locatable here.
417
+ */
418
+ export async function collectContentLocators(state, backend) {
419
+ if (!backend.locator)
420
+ return {};
421
+ const out = {};
422
+ const hashFields = [...state.tokens.flatMap((t) => t.fields), ...state.collectionFields].filter((f) => f.representation === R.keccak256 || f.representation === R.sha256);
423
+ for (const f of hashFields) {
424
+ const key = f.value.toLowerCase();
425
+ if (out[key])
426
+ continue;
427
+ try {
428
+ const loc = await backend.locator(f.value);
429
+ if (loc)
430
+ out[key] = loc;
431
+ }
432
+ catch {
433
+ /* backend can't locate this hash — skip; the resolver falls back to its own image route */
434
+ }
435
+ }
436
+ return out;
437
+ }
438
+ /** Locators to bridge to a remote resolver: the ones the local deploy already stored, else freshly
439
+ * resolved from this machine's local projection + content index (e.g. `abx add <addr> --remote`
440
+ * for a contract deployed elsewhere on this same machine). */
441
+ export async function remoteLocators(address, stored, flags) {
442
+ if (stored) {
443
+ try {
444
+ const obj = JSON.parse(stored);
445
+ if (Object.keys(obj).length)
446
+ return obj;
447
+ }
448
+ catch {
449
+ /* fall through to recompute */
450
+ }
451
+ }
452
+ const local = localIndexer().getProject(address);
453
+ if (!local)
454
+ return {};
455
+ return collectContentLocators(local, resolveBackend(storageOptions(storageOverrides(flags))));
456
+ }
184
457
  //# 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,uBAAuB,EACvB,aAAa,GAEd,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;GAaG;AAEH,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,iBAAiB,CAAC;AACzD,MAAM,OAAO,GAAG,GAAW,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;AAErD,MAAM,UAAU,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,oEAAoE,CAAC,IAAI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KAAK,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC;QAC3B,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAClC,IAAI,GAAG,CAAC,GAAG,CAAC;YAAE,SAAS;QACvB,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAY,CAAC,CAAC;YAClD,IAAI,GAAG;gBAAE,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,2FAA2F;QAC7F,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;+DAE+D;AAC/D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAAgB,EAAE,MAA0B,EAAE,KAAY;IAC7F,IAAI,MAAM,EAAE,CAAC;QACX,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAA2B,CAAC;YACzD,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM;gBAAE,OAAO,GAAG,CAAC;QAC1C,CAAC;QAAC,MAAM,CAAC;YACP,+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":"AA8BA,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"}