@artblocks/abx-cli 0.1.0-alpha.6 → 0.1.0-alpha.61

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 (193) hide show
  1. package/CHANGELOG.md +199 -0
  2. package/assets/renderer-scaffold/README.md +41 -11
  3. package/assets/renderer-scaffold/foundry.toml +5 -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/script/Preview.s.sol +99 -0
  7. package/assets/renderer-scaffold/src/MyHooks.sol +20 -0
  8. package/assets/renderer-scaffold/src/MyRenderer.sol +4 -4
  9. package/assets/renderer-scaffold/src/MyTraits.sol +2 -2
  10. package/assets/renderer-scaffold/test/MyRenderer.t.sol +60 -3
  11. package/dist/bin.d.ts +26 -0
  12. package/dist/bin.d.ts.map +1 -0
  13. package/dist/bin.js +63 -0
  14. package/dist/bin.js.map +1 -0
  15. package/dist/capabilities.d.ts +126 -0
  16. package/dist/capabilities.d.ts.map +1 -0
  17. package/dist/capabilities.js +168 -0
  18. package/dist/capabilities.js.map +1 -0
  19. package/dist/commands/auth.d.ts +54 -0
  20. package/dist/commands/auth.d.ts.map +1 -0
  21. package/dist/commands/auth.js +447 -0
  22. package/dist/commands/auth.js.map +1 -0
  23. package/dist/commands/deploy.d.ts +293 -0
  24. package/dist/commands/deploy.d.ts.map +1 -0
  25. package/dist/commands/deploy.js +5624 -0
  26. package/dist/commands/deploy.js.map +1 -0
  27. package/dist/commands/feedback.d.ts +7 -0
  28. package/dist/commands/feedback.d.ts.map +1 -0
  29. package/dist/commands/feedback.js +147 -0
  30. package/dist/commands/feedback.js.map +1 -0
  31. package/dist/commands/maintenance.d.ts +4 -0
  32. package/dist/commands/maintenance.d.ts.map +1 -0
  33. package/dist/commands/maintenance.js +114 -0
  34. package/dist/commands/maintenance.js.map +1 -0
  35. package/dist/commands/project.d.ts +458 -0
  36. package/dist/commands/project.d.ts.map +1 -0
  37. package/dist/commands/project.js +1832 -0
  38. package/dist/commands/project.js.map +1 -0
  39. package/dist/commands/reads.d.ts +85 -0
  40. package/dist/commands/reads.d.ts.map +1 -0
  41. package/dist/commands/reads.js +881 -0
  42. package/dist/commands/reads.js.map +1 -0
  43. package/dist/commands/scaffold.d.ts +89 -0
  44. package/dist/commands/scaffold.d.ts.map +1 -0
  45. package/dist/commands/scaffold.js +738 -0
  46. package/dist/commands/scaffold.js.map +1 -0
  47. package/dist/commands/service.d.ts +67 -0
  48. package/dist/commands/service.d.ts.map +1 -0
  49. package/dist/commands/service.js +760 -0
  50. package/dist/commands/service.js.map +1 -0
  51. package/dist/commands/storage.d.ts +51 -0
  52. package/dist/commands/storage.d.ts.map +1 -0
  53. package/dist/commands/storage.js +399 -0
  54. package/dist/commands/storage.js.map +1 -0
  55. package/dist/commands/submit-app.d.ts +102 -0
  56. package/dist/commands/submit-app.d.ts.map +1 -0
  57. package/dist/commands/submit-app.js +638 -0
  58. package/dist/commands/submit-app.js.map +1 -0
  59. package/dist/config.d.ts +94 -2
  60. package/dist/config.d.ts.map +1 -1
  61. package/dist/config.js +332 -12
  62. package/dist/config.js.map +1 -1
  63. package/dist/conformance.d.ts +31 -0
  64. package/dist/conformance.d.ts.map +1 -0
  65. package/dist/conformance.js +390 -0
  66. package/dist/conformance.js.map +1 -0
  67. package/dist/contract-read-error.d.ts +5 -0
  68. package/dist/contract-read-error.d.ts.map +1 -0
  69. package/dist/contract-read-error.js +37 -0
  70. package/dist/contract-read-error.js.map +1 -0
  71. package/dist/creator-agent.d.ts +40 -0
  72. package/dist/creator-agent.d.ts.map +1 -0
  73. package/dist/creator-agent.js +206 -0
  74. package/dist/creator-agent.js.map +1 -0
  75. package/dist/creator-signer.d.ts +37 -0
  76. package/dist/creator-signer.d.ts.map +1 -0
  77. package/dist/creator-signer.js +203 -0
  78. package/dist/creator-signer.js.map +1 -0
  79. package/dist/deploy-plan.d.ts +218 -0
  80. package/dist/deploy-plan.d.ts.map +1 -0
  81. package/dist/deploy-plan.js +20 -0
  82. package/dist/deploy-plan.js.map +1 -0
  83. package/dist/deps.d.ts +6 -39
  84. package/dist/deps.d.ts.map +1 -1
  85. package/dist/deps.js +4 -68
  86. package/dist/deps.js.map +1 -1
  87. package/dist/errors.d.ts +22 -0
  88. package/dist/errors.d.ts.map +1 -0
  89. package/dist/errors.js +32 -0
  90. package/dist/errors.js.map +1 -0
  91. package/dist/flag-allowlists.d.ts +53 -0
  92. package/dist/flag-allowlists.d.ts.map +1 -0
  93. package/dist/flag-allowlists.js +185 -0
  94. package/dist/flag-allowlists.js.map +1 -0
  95. package/dist/flags.d.ts +53 -0
  96. package/dist/flags.d.ts.map +1 -1
  97. package/dist/flags.js +151 -1
  98. package/dist/flags.js.map +1 -1
  99. package/dist/jsonout.d.ts +37 -0
  100. package/dist/jsonout.d.ts.map +1 -0
  101. package/dist/jsonout.js +79 -0
  102. package/dist/jsonout.js.map +1 -0
  103. package/dist/kind.d.ts +57 -0
  104. package/dist/kind.d.ts.map +1 -0
  105. package/dist/kind.js +122 -0
  106. package/dist/kind.js.map +1 -0
  107. package/dist/main.js +837 -5213
  108. package/dist/main.js.map +1 -1
  109. package/dist/mintpage.d.ts +17 -2
  110. package/dist/mintpage.d.ts.map +1 -1
  111. package/dist/mintpage.js +241 -54
  112. package/dist/mintpage.js.map +1 -1
  113. package/dist/output.d.ts +184 -0
  114. package/dist/output.d.ts.map +1 -0
  115. package/dist/output.js +774 -0
  116. package/dist/output.js.map +1 -0
  117. package/dist/ownerops.d.ts +450 -57
  118. package/dist/ownerops.d.ts.map +1 -1
  119. package/dist/ownerops.js +2229 -378
  120. package/dist/ownerops.js.map +1 -1
  121. package/dist/preview.d.ts +23 -5
  122. package/dist/preview.d.ts.map +1 -1
  123. package/dist/preview.js +95 -43
  124. package/dist/preview.js.map +1 -1
  125. package/dist/provision.d.ts +3 -13
  126. package/dist/provision.d.ts.map +1 -1
  127. package/dist/provision.js +19 -21
  128. package/dist/provision.js.map +1 -1
  129. package/dist/remote.d.ts +165 -52
  130. package/dist/remote.d.ts.map +1 -1
  131. package/dist/remote.js +459 -46
  132. package/dist/remote.js.map +1 -1
  133. package/dist/riskgate.d.ts +101 -0
  134. package/dist/riskgate.d.ts.map +1 -0
  135. package/dist/riskgate.js +326 -0
  136. package/dist/riskgate.js.map +1 -0
  137. package/dist/scaffold.d.ts +12 -0
  138. package/dist/scaffold.d.ts.map +1 -0
  139. package/dist/scaffold.js +56 -0
  140. package/dist/scaffold.js.map +1 -0
  141. package/dist/schema.d.ts +36 -1
  142. package/dist/schema.d.ts.map +1 -1
  143. package/dist/schema.js +121 -26
  144. package/dist/schema.js.map +1 -1
  145. package/dist/script-chunks.d.ts +8 -0
  146. package/dist/script-chunks.d.ts.map +1 -0
  147. package/dist/script-chunks.js +35 -0
  148. package/dist/script-chunks.js.map +1 -0
  149. package/dist/served.d.ts +30 -0
  150. package/dist/served.d.ts.map +1 -0
  151. package/dist/served.js +112 -0
  152. package/dist/served.js.map +1 -0
  153. package/dist/signer.d.ts +18 -1
  154. package/dist/signer.d.ts.map +1 -1
  155. package/dist/signer.js +104 -17
  156. package/dist/signer.js.map +1 -1
  157. package/dist/update-check.d.ts +55 -1
  158. package/dist/update-check.d.ts.map +1 -1
  159. package/dist/update-check.js +103 -10
  160. package/dist/update-check.js.map +1 -1
  161. package/package.json +16 -12
  162. package/skill/SKILL.md +194 -347
  163. package/skill/agents/openai.yaml +4 -0
  164. package/skill/reference/capabilities.md +193 -0
  165. package/skill/reference/code.md +234 -0
  166. package/skill/reference/creator-token.md +94 -0
  167. package/skill/reference/deploy.md +177 -0
  168. package/skill/reference/diagnose.md +178 -0
  169. package/skill/reference/hosting.md +188 -93
  170. package/skill/reference/operate.md +232 -0
  171. package/skill/reference/services.md +161 -0
  172. package/skill/reference/setup.md +190 -36
  173. package/assets/renderer-scaffold/src/interfaces/IAbxFieldRenderer.sol +0 -32
  174. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +0 -26
  175. package/dist/inspect.d.ts +0 -48
  176. package/dist/inspect.d.ts.map +0 -1
  177. package/dist/inspect.js +0 -184
  178. package/dist/inspect.js.map +0 -1
  179. package/dist/migrate.d.ts +0 -65
  180. package/dist/migrate.d.ts.map +0 -1
  181. package/dist/migrate.js +0 -180
  182. package/dist/migrate.js.map +0 -1
  183. package/dist/onchain-uri.d.ts +0 -97
  184. package/dist/onchain-uri.d.ts.map +0 -1
  185. package/dist/onchain-uri.js +0 -243
  186. package/dist/onchain-uri.js.map +0 -1
  187. package/dist/upload.d.ts +0 -28
  188. package/dist/upload.d.ts.map +0 -1
  189. package/dist/upload.js +0 -41
  190. package/dist/upload.js.map +0 -1
  191. package/skill/reference/code-projects.md +0 -246
  192. package/skill/reference/operating.md +0 -116
  193. package/skill/reference/troubleshooting.md +0 -28
package/dist/bin.js ADDED
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * abx — the published binary's entry point, and nothing else.
4
+ *
5
+ * This file exists for one reason: **ESM links the entire static import graph before any module
6
+ * body runs.** `main.ts` reaches `@artblocks/abx-indexer` → `node:sqlite` through `output.ts` and
7
+ * `config.ts`, so on a Node that cannot load `node:sqlite` the process dies during *linking* —
8
+ * before a single line of our code executes. A guard at the top of `main.ts` could never fire. The
9
+ * only place a check can run first is a module that imports nothing statically and reaches the rest
10
+ * of the CLI through a dynamic `import()`.
11
+ *
12
+ * What that bought before this file existed: `npm i -g @artblocks/abx-cli && abx doctor` on Node
13
+ * 22.5 printed a raw `ERR_UNKNOWN_BUILTIN_MODULE: No such built-in module: node:sqlite` stack trace.
14
+ * No mention of abx, Node versions, or what to do — on the first command we tell every user to run.
15
+ *
16
+ * We probe the *capability*, not the version number. `node:sqlite` shipped in v22.5.0 behind
17
+ * `--experimental-sqlite` and lost the flag in v22.13.0 / v23.4.0, so an old Node run with
18
+ * `NODE_OPTIONS=--experimental-sqlite` genuinely works — refusing it on a version comparison would
19
+ * be a false negative on a setup the reporter proved out. `engines` states what we *support*; this
20
+ * guard blocks only what is actually broken.
21
+ *
22
+ * KEEP THIS FILE IMPORT-FREE. A single static `import` of anything in the CLI reintroduces the
23
+ * crash it exists to prevent.
24
+ */
25
+ /** Unflagged `node:sqlite`: v22.13.0 on the 22.x line, v23.4.0 on 23.x (nodejs/node#55890). */
26
+ const NODE_FLOOR = '22.13.0';
27
+ const color = !process.env.NO_COLOR && process.stderr.isTTY;
28
+ const red = (s) => (color ? `\x1b[31m${s}\x1b[0m` : s);
29
+ const dim = (s) => (color ? `\x1b[2m${s}\x1b[0m` : s);
30
+ const green = (s) => (color ? `\x1b[32m${s}\x1b[0m` : s);
31
+ /**
32
+ * True when this Node has `node:sqlite` but only behind `--experimental-sqlite` — i.e. the
33
+ * v22.5.0–v22.12.x window (and v23.0–v23.3, which is EOL and not worth naming). Only then is the
34
+ * NODE_OPTIONS escape hatch real; below v22.5.0 the module does not exist at any flag.
35
+ */
36
+ function flagWouldWork(version) {
37
+ const [major, minor] = version.split('.').map(Number);
38
+ if (major === 22)
39
+ return minor >= 5 && minor < 13;
40
+ return major === 23;
41
+ }
42
+ function nodeSqliteMessage(version) {
43
+ const escape = flagWouldWork(version)
44
+ ? `\n Need to stay on this Node? It has SQLite, just flag-gated — but abx is untested there:\n ${green(`NODE_OPTIONS=--experimental-sqlite abx ${process.argv[2] ?? 'doctor'}`)}\n`
45
+ : '';
46
+ return (`\n${red('✗')} abx needs Node's built-in SQLite (${dim('node:sqlite')}), and this Node can't load it.\n\n` +
47
+ ` you have ${red(`v${version}`)}\n` +
48
+ ` abx needs ${green(`v${NODE_FLOOR}`)} or newer\n\n` +
49
+ ` Upgrade Node, then re-run:\n` +
50
+ ` ${green('nvm install 22 && nvm use 22')} ${dim('# or: brew upgrade node')}\n` +
51
+ ` ${green('abx doctor')}\n` +
52
+ escape);
53
+ }
54
+ try {
55
+ await import('node:sqlite');
56
+ }
57
+ catch {
58
+ process.stderr.write(nodeSqliteMessage(process.versions.node));
59
+ process.exit(1);
60
+ }
61
+ await import('./main.js');
62
+ export {};
63
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,+FAA+F;AAC/F,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;AAC5D,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEjE;;;;GAIG;AACH,SAAS,aAAa,CAAC,OAAe;IACpC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtD,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,EAAE,CAAC;IAClD,OAAO,KAAK,KAAK,EAAE,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC;QACnC,CAAC,CAAC,mGAAmG,KAAK,CAAC,0CAA0C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,IAAI;QACvL,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,CACL,KAAK,GAAG,CAAC,GAAG,CAAC,sCAAsC,GAAG,CAAC,aAAa,CAAC,qCAAqC;QAC1G,kBAAkB,GAAG,CAAC,IAAI,OAAO,EAAE,CAAC,IAAI;QACxC,kBAAkB,KAAK,CAAC,IAAI,UAAU,EAAE,CAAC,eAAe;QACxD,gCAAgC;QAChC,OAAO,KAAK,CAAC,8BAA8B,CAAC,MAAM,GAAG,CAAC,yBAAyB,CAAC,IAAI;QACpF,OAAO,KAAK,CAAC,YAAY,CAAC,IAAI;QAC9B,MAAM,CACP,CAAC;AACJ,CAAC;AAED,IAAI,CAAC;IACH,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC;AAC9B,CAAC;AAAC,MAAM,CAAC;IACP,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC"}
@@ -0,0 +1,126 @@
1
+ import type { Flags } from './flags.js';
2
+ /**
3
+ * The machine-readable ABX capability contract.
4
+ *
5
+ * Keep this deliberately smaller than command help: it records product boundaries and the
6
+ * supported combinations agents routinely get wrong. Command-specific syntax still belongs to
7
+ * `abx help <command>`, while deploy planning belongs to `<deploy-command> --dry-run --json`.
8
+ * Human help, the shipped skill, and tests consume this object instead of maintaining competing
9
+ * matrices in prose.
10
+ */
11
+ export declare const ABX_CAPABILITIES: {
12
+ readonly schemaVersion: 3;
13
+ readonly defaultChain: string;
14
+ readonly chains: readonly import("@artblocks/abx-sdk").ChainSupport[];
15
+ /** Compatibility field for consumers that only need selectable chain keys. */
16
+ readonly supportedChains: readonly string[];
17
+ readonly signingLanes: {
18
+ readonly send: {
19
+ readonly flag: "--send";
20
+ readonly summary: "local environment key pays gas";
21
+ readonly supportLevel: "supported";
22
+ };
23
+ readonly sign: {
24
+ readonly flag: "--sign";
25
+ readonly summary: "connected browser wallet pays gas";
26
+ readonly supportLevel: "supported";
27
+ };
28
+ readonly sponsor: {
29
+ readonly flag: "--sponsor";
30
+ readonly summary: "account-bound ABX creator wallet; ABX Services pays eligible gas";
31
+ readonly supportLevel: "beta";
32
+ readonly chainIds: readonly [8453, 84532];
33
+ readonly limits: readonly ["zero value", "network and provider gas policy", "no direct CREATE", "no staged --onchain-image"];
34
+ };
35
+ readonly unsigned: {
36
+ readonly flag: "--unsigned";
37
+ readonly summary: "print for an external signer";
38
+ readonly supportLevel: "supported";
39
+ };
40
+ };
41
+ readonly deploymentCommands: {
42
+ readonly deploy: {
43
+ readonly artifact: "one static work";
44
+ readonly unique: {
45
+ readonly contract: "OneOfOneImage (ERC-721)";
46
+ readonly inputs: readonly ["--image"];
47
+ };
48
+ readonly edition: {
49
+ readonly contract: "OneOfOneEdition (ERC-1155)";
50
+ readonly selector: "--copies <n|open>";
51
+ readonly summary: "one work × copies; supports on-chain bytes, on-chain JSON with external media, or a resolver";
52
+ readonly supported: readonly ["--onchain-image (hot or wallet signing)", "--onchain-uri", "--backend", "--public-base-url"];
53
+ readonly unsupported: readonly ["--onchain-image with --unsigned"];
54
+ };
55
+ };
56
+ readonly deploySeries: {
57
+ readonly artifact: "a folder of distinct static works";
58
+ readonly unique: {
59
+ readonly contract: "SeriesImage (ERC-721)";
60
+ readonly inputs: readonly ["--dir"];
61
+ };
62
+ readonly edition: {
63
+ readonly contract: "EditionImage (ERC-1155)";
64
+ readonly selector: "--copies <n|open>";
65
+ readonly summary: "N folder items × copies per id; supports on-chain bytes, on-chain JSON with external media, or a resolver";
66
+ readonly supported: readonly ["--onchain-image (hot or wallet signing)", "--onchain-uri", "--backend", "--public-base-url"];
67
+ readonly unsupported: readonly ["--onchain-image with --unsigned"];
68
+ };
69
+ };
70
+ readonly deployCode: {
71
+ readonly artifact: "a program or field renderer whose output depends on token state";
72
+ readonly unique: {
73
+ readonly contract: "SeriesCode (ERC-721)";
74
+ readonly inputs: readonly ["--script", "--code-dir", "--image-renderer", "--attributes-renderer"];
75
+ };
76
+ readonly edition: {
77
+ readonly contract: "EditionCode (ERC-1155)";
78
+ readonly selector: "--copies <n|open>";
79
+ readonly summary: "N generated ids × copies per id; supports scripts, directory builds, dependencies, deterministic per-id off-chain stills, and Solidity image/trait renderers";
80
+ readonly supported: readonly ["--script", "--code-dir", "--dep", "--dep-registry", "--image-renderer", "--attributes-renderer", "--image-base", "--onchain-uri", "--public-base-url"];
81
+ readonly unsupported: readonly ["--no-delegation"];
82
+ };
83
+ };
84
+ };
85
+ readonly extensionRoutes: readonly [{
86
+ readonly route: "custom minter";
87
+ readonly command: "abx set-minter";
88
+ readonly availableOn: "Series and editions";
89
+ readonly useFor: readonly ["auctions", "allowlists", "raffles", "free claims", "ERC-20 pricing"];
90
+ }, {
91
+ readonly route: "configure hook";
92
+ readonly command: "abx set-param-hooks --configure";
93
+ readonly availableOn: "SeriesCode and EditionCode";
94
+ readonly useFor: readonly ["validated writes", "monotonic values", "structured collector input"];
95
+ }, {
96
+ readonly route: "transfer hook";
97
+ readonly command: "abx set-param-hooks --transfer";
98
+ readonly availableOn: "SeriesCode and EditionCode";
99
+ readonly useFor: readonly ["transfer restrictions", "soulbinding", "vesting", "redemption", "escrow"];
100
+ }, {
101
+ readonly route: "augment hook";
102
+ readonly command: "abx set-param-hooks --augment";
103
+ readonly availableOn: "SeriesCode and EditionCode";
104
+ readonly useFor: readonly ["live derived data", "oracle-fed state", "read-time metadata"];
105
+ }, {
106
+ readonly route: "field renderer";
107
+ readonly command: "abx deploy-code --image-renderer/--attributes-renderer";
108
+ readonly availableOn: "SeriesCode and EditionCode";
109
+ readonly useFor: readonly ["on-chain SVG images", "on-chain computed traits"];
110
+ }, {
111
+ readonly route: "replace an unlocked script";
112
+ readonly command: "abx replace-script";
113
+ readonly availableOn: "SeriesCode and EditionCode, before `abx lock-script`";
114
+ readonly useFor: readonly ["shipping a fix to a live generative program", "iterating pre-lock without a full redeploy"];
115
+ }];
116
+ readonly deployTimeChoices: readonly ["contract shape and token standard (--copies)", "code-capable versus static contract type", "burnability (--burnable)", "ERC-721C/ERC-1155C enrollment (--721c)"];
117
+ readonly unsupportedToday: readonly ["chains whose support level is disabled", "unsupported chains", "secondary-market listings or an order book", "compiling or deploying custom Solidity through abx", "retrofitting a deploy-time choice on an existing collection"];
118
+ readonly interpretation: {
119
+ readonly native: "A documented command/flag combination performs the request directly.";
120
+ readonly extension: "A canonical extension seam performs it while the token remains a factory clone.";
121
+ readonly unsupported: "The request is listed under unsupportedToday or is blocked by an irreversible choice already made.";
122
+ readonly unknown: "Do not infer support from absence. Inspect command help, contract type, and this contract; report uncertainty if no route is proven.";
123
+ };
124
+ };
125
+ export declare function cmdCapabilities(flags: Flags): void;
126
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AAEtC;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;IAI3B,8EAA8E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuHtE,CAAC;AAEX,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAoClD"}
@@ -0,0 +1,168 @@
1
+ import { CHAIN_SUPPORT, DEFAULT_CHAIN_KEY, KNOWN_CHAIN_KEYS } from '@artblocks/abx-sdk';
2
+ /**
3
+ * The machine-readable ABX capability contract.
4
+ *
5
+ * Keep this deliberately smaller than command help: it records product boundaries and the
6
+ * supported combinations agents routinely get wrong. Command-specific syntax still belongs to
7
+ * `abx help <command>`, while deploy planning belongs to `<deploy-command> --dry-run --json`.
8
+ * Human help, the shipped skill, and tests consume this object instead of maintaining competing
9
+ * matrices in prose.
10
+ */
11
+ export const ABX_CAPABILITIES = {
12
+ schemaVersion: 3,
13
+ defaultChain: DEFAULT_CHAIN_KEY,
14
+ chains: CHAIN_SUPPORT,
15
+ /** Compatibility field for consumers that only need selectable chain keys. */
16
+ supportedChains: [...KNOWN_CHAIN_KEYS],
17
+ signingLanes: {
18
+ send: { flag: '--send', summary: 'local environment key pays gas', supportLevel: 'supported' },
19
+ sign: { flag: '--sign', summary: 'connected browser wallet pays gas', supportLevel: 'supported' },
20
+ sponsor: {
21
+ flag: '--sponsor',
22
+ summary: 'account-bound ABX creator wallet; ABX Services pays eligible gas',
23
+ supportLevel: 'beta',
24
+ chainIds: [8_453, 84_532],
25
+ limits: ['zero value', 'network and provider gas policy', 'no direct CREATE', 'no staged --onchain-image'],
26
+ },
27
+ unsigned: { flag: '--unsigned', summary: 'print for an external signer', supportLevel: 'supported' },
28
+ },
29
+ deploymentCommands: {
30
+ deploy: {
31
+ artifact: 'one static work',
32
+ unique: {
33
+ contract: 'OneOfOneImage (ERC-721)',
34
+ inputs: ['--image'],
35
+ },
36
+ edition: {
37
+ contract: 'OneOfOneEdition (ERC-1155)',
38
+ selector: '--copies <n|open>',
39
+ summary: 'one work × copies; supports on-chain bytes, on-chain JSON with external media, or a resolver',
40
+ supported: ['--onchain-image (hot or wallet signing)', '--onchain-uri', '--backend', '--public-base-url'],
41
+ unsupported: ['--onchain-image with --unsigned'],
42
+ },
43
+ },
44
+ deploySeries: {
45
+ artifact: 'a folder of distinct static works',
46
+ unique: {
47
+ contract: 'SeriesImage (ERC-721)',
48
+ inputs: ['--dir'],
49
+ },
50
+ edition: {
51
+ contract: 'EditionImage (ERC-1155)',
52
+ selector: '--copies <n|open>',
53
+ summary: 'N folder items × copies per id; supports on-chain bytes, on-chain JSON with external media, or a resolver',
54
+ supported: ['--onchain-image (hot or wallet signing)', '--onchain-uri', '--backend', '--public-base-url'],
55
+ unsupported: ['--onchain-image with --unsigned'],
56
+ },
57
+ },
58
+ deployCode: {
59
+ artifact: 'a program or field renderer whose output depends on token state',
60
+ unique: {
61
+ contract: 'SeriesCode (ERC-721)',
62
+ inputs: ['--script', '--code-dir', '--image-renderer', '--attributes-renderer'],
63
+ },
64
+ edition: {
65
+ contract: 'EditionCode (ERC-1155)',
66
+ selector: '--copies <n|open>',
67
+ summary: 'N generated ids × copies per id; supports scripts, directory builds, dependencies, deterministic per-id off-chain stills, and Solidity image/trait renderers',
68
+ supported: ['--script', '--code-dir', '--dep', '--dep-registry', '--image-renderer', '--attributes-renderer', '--image-base', '--onchain-uri', '--public-base-url'],
69
+ // `--resume` isn't listed in `supported`/`unsupported` at all (neither lane lists it — it's a
70
+ // REPAIR verb against an EXISTING contract, not a deploy-time flag): `abx deploy-code --resume
71
+ // <address>` now diffs an EditionCode target's per-id mint shortfall exactly as it always has
72
+ // for a 721 SeriesCode target (see resume.ts's `planEditionResume`).
73
+ unsupported: ['--no-delegation'],
74
+ },
75
+ },
76
+ },
77
+ extensionRoutes: [
78
+ {
79
+ route: 'custom minter',
80
+ command: 'abx set-minter',
81
+ availableOn: 'Series and editions',
82
+ useFor: ['auctions', 'allowlists', 'raffles', 'free claims', 'ERC-20 pricing'],
83
+ },
84
+ {
85
+ route: 'configure hook',
86
+ command: 'abx set-param-hooks --configure',
87
+ availableOn: 'SeriesCode and EditionCode',
88
+ useFor: ['validated writes', 'monotonic values', 'structured collector input'],
89
+ },
90
+ {
91
+ route: 'transfer hook',
92
+ command: 'abx set-param-hooks --transfer',
93
+ availableOn: 'SeriesCode and EditionCode',
94
+ useFor: ['transfer restrictions', 'soulbinding', 'vesting', 'redemption', 'escrow'],
95
+ },
96
+ {
97
+ route: 'augment hook',
98
+ command: 'abx set-param-hooks --augment',
99
+ availableOn: 'SeriesCode and EditionCode',
100
+ useFor: ['live derived data', 'oracle-fed state', 'read-time metadata'],
101
+ },
102
+ {
103
+ route: 'field renderer',
104
+ command: 'abx deploy-code --image-renderer/--attributes-renderer',
105
+ availableOn: 'SeriesCode and EditionCode',
106
+ useFor: ['on-chain SVG images', 'on-chain computed traits'],
107
+ },
108
+ {
109
+ route: 'replace an unlocked script',
110
+ command: 'abx replace-script',
111
+ availableOn: 'SeriesCode and EditionCode, before `abx lock-script`',
112
+ useFor: ['shipping a fix to a live generative program', 'iterating pre-lock without a full redeploy'],
113
+ },
114
+ ],
115
+ deployTimeChoices: [
116
+ 'contract shape and token standard (--copies)',
117
+ 'code-capable versus static contract type',
118
+ 'burnability (--burnable)',
119
+ 'ERC-721C/ERC-1155C enrollment (--721c)',
120
+ ],
121
+ unsupportedToday: [
122
+ 'chains whose support level is disabled',
123
+ 'unsupported chains',
124
+ 'secondary-market listings or an order book',
125
+ 'compiling or deploying custom Solidity through abx',
126
+ 'retrofitting a deploy-time choice on an existing collection',
127
+ ],
128
+ interpretation: {
129
+ native: 'A documented command/flag combination performs the request directly.',
130
+ extension: 'A canonical extension seam performs it while the token remains a factory clone.',
131
+ unsupported: 'The request is listed under unsupportedToday or is blocked by an irreversible choice already made.',
132
+ unknown: 'Do not infer support from absence. Inspect command help, contract type, and this contract; report uncertainty if no route is proven.',
133
+ },
134
+ };
135
+ export function cmdCapabilities(flags) {
136
+ if (flags.json !== undefined) {
137
+ console.log(JSON.stringify(ABX_CAPABILITIES, null, 2));
138
+ return;
139
+ }
140
+ console.log(`ABX capability contract v${ABX_CAPABILITIES.schemaVersion}\n`);
141
+ console.log(`Default chain: ${ABX_CAPABILITIES.defaultChain}`);
142
+ console.log('Networks:');
143
+ for (const chain of ABX_CAPABILITIES.chains) {
144
+ console.log(` ${chain.key} (${chain.chainId}): ${chain.environment} · ${chain.supportLevel} · contracts ${chain.contractStatus}`);
145
+ }
146
+ console.log('Signing lanes:');
147
+ for (const lane of Object.values(ABX_CAPABILITIES.signingLanes)) {
148
+ console.log(` ${lane.flag}: ${lane.summary} · ${lane.supportLevel}`);
149
+ }
150
+ console.log('Native deployment lanes:');
151
+ for (const [name, lane] of Object.entries(ABX_CAPABILITIES.deploymentCommands)) {
152
+ console.log(` ${name}: ${lane.artifact}`);
153
+ console.log(` unique ${lane.unique.contract} — ${lane.unique.inputs.join(' | ')}`);
154
+ console.log(` edition ${lane.edition.contract} — ${lane.edition.summary}`);
155
+ if (lane.edition.unsupported.length)
156
+ console.log(` limits ${lane.edition.unsupported.join(' · ')}`);
157
+ }
158
+ console.log('\nCanonical extension routes:');
159
+ for (const seam of ABX_CAPABILITIES.extensionRoutes) {
160
+ console.log(` ${seam.route}: ${seam.availableOn} — ${seam.useFor.join(', ')}`);
161
+ }
162
+ console.log('\nUnsupported today:');
163
+ for (const item of ABX_CAPABILITIES.unsupportedToday)
164
+ console.log(` - ${item}`);
165
+ console.log('\nUse `abx capabilities --json` for the stable machine-readable form,');
166
+ console.log('`abx help <command>` for current flags, and `<deploy-command> --dry-run --json` for a concrete plan.');
167
+ }
168
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAGtF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,aAAa,EAAE,CAAC;IAChB,YAAY,EAAE,iBAAiB;IAC/B,MAAM,EAAE,aAAa;IACrB,8EAA8E;IAC9E,eAAe,EAAE,CAAC,GAAG,gBAAgB,CAAC;IACtC,YAAY,EAAE;QACZ,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,gCAAgC,EAAE,YAAY,EAAE,WAAW,EAAC;QAC5F,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mCAAmC,EAAE,YAAY,EAAE,WAAW,EAAC;QAC/F,OAAO,EAA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CAAC,gBAAgB;QAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;IAEjF,OAAO,CAAC,GAAG,CAAC,uEAAuE,CAAC,CAAC;IACrF,OAAO,CAAC,GAAG,CAAC,sGAAsG,CAAC,CAAC;AACtH,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { type Flags } from '../flags.js';
2
+ export interface DeviceLoginDeps {
3
+ fetchImpl?: typeof fetch;
4
+ sleep?: (ms: number) => Promise<void>;
5
+ now?: () => number;
6
+ openBrowser?: (url: string) => boolean;
7
+ line?: (message: string) => void;
8
+ warning?: (message: string) => void;
9
+ }
10
+ export interface DeviceLoginOptions {
11
+ baseUrl: string;
12
+ envVar: string;
13
+ envPath: string;
14
+ force?: boolean;
15
+ noOpen?: boolean;
16
+ }
17
+ export interface OAuthLogoutOptions {
18
+ baseUrl: string;
19
+ envVar: string;
20
+ envPath: string;
21
+ token?: string;
22
+ }
23
+ export interface OAuthLogoutDeps {
24
+ fetchImpl?: typeof fetch;
25
+ }
26
+ export type OAuthLogoutResult = {
27
+ status: 'absent';
28
+ } | {
29
+ status: 'revoked';
30
+ local: 'removed' | 'external' | 'different';
31
+ };
32
+ /** Refuse the two silent secret-exposure modes: replacing a tracked file, or creating an unignored
33
+ * .env inside a Git worktree. A non-Git directory is fine. */
34
+ export declare function assertPrivateEnvPath(envPath: string): void;
35
+ /** Bearer-token grammar (RFC 6750) — the default value shape {@link saveEnvSecret} accepts. Exported
36
+ * so a caller writing something differently-shaped (a URL, say) can pass its own `valuePattern`
37
+ * instead of fighting this one. */
38
+ export declare const BEARER_TOKEN_PATTERN: RegExp;
39
+ export declare function saveEnvSecret(envPath: string, key: string, value: string, valuePattern?: RegExp): void;
40
+ /** Validate and replace several env values with one atomic rename. A credential pair must never
41
+ * land half-updated because the process stopped between two individually-atomic writes. */
42
+ export declare function saveEnvSecrets(envPath: string, entries: Array<{
43
+ key: string;
44
+ value: string;
45
+ valuePattern?: RegExp;
46
+ }>): void;
47
+ /** Standards-only core, dependency-injected for a no-secret-output regression test. */
48
+ export declare function deviceLogin(options: DeviceLoginOptions, deps?: DeviceLoginDeps): Promise<void>;
49
+ /** RFC 7009 logout: revoke remotely first, then remove the matching local assignment. Keeping the
50
+ * credential when discovery or revocation fails preserves the user's ability to retry safely. */
51
+ export declare function oauthLogout(options: OAuthLogoutOptions, deps?: OAuthLogoutDeps): Promise<OAuthLogoutResult>;
52
+ export declare function cmdAuth(args: string[], flags: Flags): Promise<void>;
53
+ export declare const AUTH_HELP: string;
54
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,aAAa,CAAA;AA4BxD,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,KAAK,CAAA;IACxB,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;IACtC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,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