@artblocks/abx-cli 0.1.0-alpha.2 → 0.1.0-alpha.21

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 (137) hide show
  1. package/CHANGELOG.md +1991 -0
  2. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  3. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  4. package/dist/commands/deploy.d.ts +206 -0
  5. package/dist/commands/deploy.d.ts.map +1 -0
  6. package/dist/commands/deploy.js +4273 -0
  7. package/dist/commands/deploy.js.map +1 -0
  8. package/dist/commands/project.d.ts +241 -0
  9. package/dist/commands/project.d.ts.map +1 -0
  10. package/dist/commands/project.js +1060 -0
  11. package/dist/commands/project.js.map +1 -0
  12. package/dist/commands/reads.d.ts +64 -0
  13. package/dist/commands/reads.d.ts.map +1 -0
  14. package/dist/commands/reads.js +697 -0
  15. package/dist/commands/reads.js.map +1 -0
  16. package/dist/commands/scaffold.d.ts +71 -0
  17. package/dist/commands/scaffold.d.ts.map +1 -0
  18. package/dist/commands/scaffold.js +552 -0
  19. package/dist/commands/scaffold.js.map +1 -0
  20. package/dist/commands/service.d.ts +41 -0
  21. package/dist/commands/service.d.ts.map +1 -0
  22. package/dist/commands/service.js +618 -0
  23. package/dist/commands/service.js.map +1 -0
  24. package/dist/commands/storage.d.ts +37 -0
  25. package/dist/commands/storage.d.ts.map +1 -0
  26. package/dist/commands/storage.js +343 -0
  27. package/dist/commands/storage.js.map +1 -0
  28. package/dist/config.d.ts +91 -2
  29. package/dist/config.d.ts.map +1 -1
  30. package/dist/config.js +244 -11
  31. package/dist/config.js.map +1 -1
  32. package/dist/conformance.d.ts +31 -0
  33. package/dist/conformance.d.ts.map +1 -0
  34. package/dist/conformance.js +371 -0
  35. package/dist/conformance.js.map +1 -0
  36. package/dist/deps.d.ts +6 -39
  37. package/dist/deps.d.ts.map +1 -1
  38. package/dist/deps.js +4 -68
  39. package/dist/deps.js.map +1 -1
  40. package/dist/errors.d.ts +20 -0
  41. package/dist/errors.d.ts.map +1 -0
  42. package/dist/errors.js +25 -0
  43. package/dist/errors.js.map +1 -0
  44. package/dist/flag-allowlists.d.ts +53 -0
  45. package/dist/flag-allowlists.d.ts.map +1 -0
  46. package/dist/flag-allowlists.js +148 -0
  47. package/dist/flag-allowlists.js.map +1 -0
  48. package/dist/flags.d.ts +41 -0
  49. package/dist/flags.d.ts.map +1 -1
  50. package/dist/flags.js +94 -1
  51. package/dist/flags.js.map +1 -1
  52. package/dist/jsonout.d.ts +37 -0
  53. package/dist/jsonout.d.ts.map +1 -0
  54. package/dist/jsonout.js +68 -0
  55. package/dist/jsonout.js.map +1 -0
  56. package/dist/kind.d.ts +53 -0
  57. package/dist/kind.d.ts.map +1 -0
  58. package/dist/kind.js +94 -0
  59. package/dist/kind.js.map +1 -0
  60. package/dist/main.js +534 -4708
  61. package/dist/main.js.map +1 -1
  62. package/dist/mintpage.d.ts +17 -2
  63. package/dist/mintpage.d.ts.map +1 -1
  64. package/dist/mintpage.js +214 -52
  65. package/dist/mintpage.js.map +1 -1
  66. package/dist/output.d.ts +148 -0
  67. package/dist/output.d.ts.map +1 -0
  68. package/dist/output.js +634 -0
  69. package/dist/output.js.map +1 -0
  70. package/dist/ownerops.d.ts +132 -44
  71. package/dist/ownerops.d.ts.map +1 -1
  72. package/dist/ownerops.js +1151 -329
  73. package/dist/ownerops.js.map +1 -1
  74. package/dist/preview.d.ts +81 -0
  75. package/dist/preview.d.ts.map +1 -0
  76. package/dist/preview.js +535 -0
  77. package/dist/preview.js.map +1 -0
  78. package/dist/prompt.d.ts +17 -0
  79. package/dist/prompt.d.ts.map +1 -0
  80. package/dist/prompt.js +19 -0
  81. package/dist/prompt.js.map +1 -0
  82. package/dist/provision.d.ts.map +1 -1
  83. package/dist/provision.js +10 -7
  84. package/dist/provision.js.map +1 -1
  85. package/dist/remote.d.ts +134 -53
  86. package/dist/remote.d.ts.map +1 -1
  87. package/dist/remote.js +358 -46
  88. package/dist/remote.js.map +1 -1
  89. package/dist/riskgate.d.ts +29 -0
  90. package/dist/riskgate.d.ts.map +1 -0
  91. package/dist/riskgate.js +91 -0
  92. package/dist/riskgate.js.map +1 -0
  93. package/dist/scaffold.d.ts +10 -0
  94. package/dist/scaffold.d.ts.map +1 -0
  95. package/dist/scaffold.js +52 -0
  96. package/dist/scaffold.js.map +1 -0
  97. package/dist/schema.d.ts +18 -1
  98. package/dist/schema.d.ts.map +1 -1
  99. package/dist/schema.js +74 -23
  100. package/dist/schema.js.map +1 -1
  101. package/dist/served.d.ts +30 -0
  102. package/dist/served.d.ts.map +1 -0
  103. package/dist/served.js +112 -0
  104. package/dist/served.js.map +1 -0
  105. package/dist/signer.d.ts +13 -0
  106. package/dist/signer.d.ts.map +1 -1
  107. package/dist/signer.js +80 -14
  108. package/dist/signer.js.map +1 -1
  109. package/dist/update-check.d.ts +83 -4
  110. package/dist/update-check.d.ts.map +1 -1
  111. package/dist/update-check.js +132 -17
  112. package/dist/update-check.js.map +1 -1
  113. package/package.json +10 -6
  114. package/skill/SKILL.md +108 -62
  115. package/skill/reference/code-projects.md +109 -13
  116. package/skill/reference/creator-token.md +86 -0
  117. package/skill/reference/decisions.md +87 -0
  118. package/skill/reference/hosting.md +48 -15
  119. package/skill/reference/operating.md +32 -8
  120. package/skill/reference/setup.md +10 -3
  121. package/skill/reference/troubleshooting.md +31 -4
  122. package/dist/inspect.d.ts +0 -48
  123. package/dist/inspect.d.ts.map +0 -1
  124. package/dist/inspect.js +0 -184
  125. package/dist/inspect.js.map +0 -1
  126. package/dist/migrate.d.ts +0 -65
  127. package/dist/migrate.d.ts.map +0 -1
  128. package/dist/migrate.js +0 -180
  129. package/dist/migrate.js.map +0 -1
  130. package/dist/onchain-uri.d.ts +0 -97
  131. package/dist/onchain-uri.d.ts.map +0 -1
  132. package/dist/onchain-uri.js +0 -243
  133. package/dist/onchain-uri.js.map +0 -1
  134. package/dist/upload.d.ts +0 -28
  135. package/dist/upload.d.ts.map +0 -1
  136. package/dist/upload.js +0 -41
  137. package/dist/upload.js.map +0 -1
package/dist/provision.js CHANGED
@@ -150,8 +150,10 @@ primary_region = "iad"
150
150
  `fly volumes create abx_data --size 1 --region iad # BEFORE first deploy — the SQLite projection lives here; skip it and a redeploy/restart loses the index (and any published render locators)`,
151
151
  loadEnv,
152
152
  `fly secrets set ABX_RPC_URLS="$ABX_RPC_URLS" # read-only RPC for this chain; NO signing key on the host`,
153
- // The admin token authorizes remote `abx add`/index (NOT signing).
154
- `fly secrets set ABX_RESOLVER_ADMIN_TOKEN="$ABX_RESOLVER_ADMIN_TOKEN" # index-control only, never signing`,
153
+ // The admin token authorizes remote `abx add`/index (NOT signing). LHS is the resolver's OWN
154
+ // var name (server-side, unchanged); RHS pulls the value from your local ABX_REMOTE_SELF_TOKEN
155
+ // (the named-remote grammar's "self" entry — `abx deploy-resolver` generated + saved it).
156
+ `fly secrets set ABX_RESOLVER_ADMIN_TOKEN="$ABX_REMOTE_SELF_TOKEN" # index-control only, never signing`,
155
157
  `fly deploy`,
156
158
  o.domain ? `fly certs add ${o.domain}` : `# (add a custom domain: fly certs add meta.yourproject.xyz)`,
157
159
  ],
@@ -188,7 +190,7 @@ services:
188
190
  - key: ABX_RPC_URLS
189
191
  sync: false # set in the dashboard (secret); read-only RPC for this chain, NO signing key
190
192
  - key: ABX_RESOLVER_ADMIN_TOKEN
191
- sync: false # set in the dashboard; authorizes remote \`abx add\`/index (NOT signing). Match your .env.
193
+ sync: false # set in the dashboard; authorizes remote \`abx add\`/index (NOT signing). Match ABX_REMOTE_SELF_TOKEN in your local .env.
192
194
  `;
193
195
  return {
194
196
  baseUrl: baseUrlFor(o),
@@ -200,7 +202,7 @@ services:
200
202
  steps: [
201
203
  `commit render.yaml + the emitted Dockerfile, then in the Render dashboard: New → Blueprint → pick this repo`,
202
204
  `set ABX_RPC_URLS in the service's Environment (read-only RPC for this chain; NO signing key)`,
203
- `set ABX_RESOLVER_ADMIN_TOKEN to the value in your local .env (lets you remote-register contracts)`,
205
+ `set ABX_RESOLVER_ADMIN_TOKEN to the value of ABX_REMOTE_SELF_TOKEN in your local .env (lets you remote-register contracts)`,
204
206
  o.domain ? `Settings → Custom Domains → add ${o.domain}, then add the DNS record below` : `# add a custom domain in Settings → Custom Domains`,
205
207
  ],
206
208
  dns: o.domain ? `${o.domain} CNAME ${o.app}.onrender.com` : undefined,
@@ -238,7 +240,7 @@ set -euo pipefail
238
240
  DOMAIN="${domain}"
239
241
  RPC_URL="\${ABX_RPC_URLS:?set ABX_RPC_URLS to your read-only RPC endpoint(s) for this chain}"
240
242
  # Authorizes remote \`abx add\`/index (NOT on-chain signing). Must match your workstation's .env.
241
- ADMIN_TOKEN="\${ABX_RESOLVER_ADMIN_TOKEN:?set ABX_RESOLVER_ADMIN_TOKEN (the value abx deploy-resolver saved to your .env)}"
243
+ ADMIN_TOKEN="\${ABX_RESOLVER_ADMIN_TOKEN:?set ABX_RESOLVER_ADMIN_TOKEN (the value of ABX_REMOTE_SELF_TOKEN that abx deploy-resolver saved to your .env)}"
242
244
 
243
245
  # 1. Docker
244
246
  curl -fsSL https://get.docker.com | sh
@@ -274,7 +276,7 @@ echo "Resolver up at https://\${DOMAIN} (point the domain's A record at this dr
274
276
  steps: [
275
277
  `create a droplet, point ${domain}'s A record at its IP`,
276
278
  `copy THIS artifact dir (deploy/vps — it is self-contained) to the droplet`,
277
- `ABX_RPC_URLS=<your-rpc-url> ABX_RESOLVER_ADMIN_TOKEN=<from-.env> bash setup.sh # read-only RPC; NO signing key`,
279
+ `ABX_RPC_URLS=<your-rpc-url> ABX_RESOLVER_ADMIN_TOKEN=<ABX_REMOTE_SELF_TOKEN from your .env> bash setup.sh # read-only RPC; NO signing key`,
278
280
  ],
279
281
  dns: `${domain} A <droplet-ip>`,
280
282
  hardening: 'Caddy auto-TLS; compose runs only `abx serve` (read-only); no signing key; app port loopback-only.',
@@ -348,7 +350,8 @@ primary_region = "iad"
348
350
  `fly launch --no-deploy --copy-config --name ${o.app} # uses Dockerfile.effects + fly.toml in THIS dir`,
349
351
  loadEnv,
350
352
  `fly secrets set ABX_RPC_URLS="$ABX_RPC_URLS" # augment hooks / data-backed params need reads`,
351
- `fly secrets set ABX_RESOLVER_ADMIN_TOKEN="$ABX_RESOLVER_ADMIN_TOKEN" # the SAME token as the resolver publishing is admin-gated`,
353
+ // LHS is the resolver's OWN var name (server-side); RHS is your local ABX_REMOTE_SELF_TOKEN.
354
+ `fly secrets set ABX_RESOLVER_ADMIN_TOKEN="$ABX_REMOTE_SELF_TOKEN" # the SAME token as the resolver — publishing is admin-gated`,
352
355
  `fly secrets set ABX_EFFECTS_TOKEN="$ABX_EFFECTS_TOKEN" # gates this PUBLIC runner's /run + /notify (an open force-render endpoint burns Chromium/storage)`,
353
356
  `# set your storage-home secrets so renders land where the resolver can read them, e.g.:`,
354
357
  `# fly secrets set PINATA_JWT="$PINATA_JWT" (ipfs)`,
@@ -1 +1 @@
1
- {"version":3,"file":"provision.js","sourceRoot":"","sources":["../src/provision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAiCH,MAAM,IAAI,GAAG,IAAI,CAAC;AAElB;;;;;;GAMG;AACH,MAAM,UAAU,GAAG,CAAC,CAAkB,EAAU,EAAE;IAChD,IAAI,CAAC,CAAC,MAAM;QAAE,OAAO,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC;IAC3C,IAAI,CAAC,CAAC,QAAQ,KAAK,KAAK;QAAE,OAAO,WAAW,CAAC,CAAC,GAAG,UAAU,CAAC;IAC5D,IAAI,CAAC,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,WAAW,CAAC,CAAC,GAAG,eAAe,CAAC;IACpE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,2CAA2C,CAAC,CAAC;AACtF,CAAC,CAAC;AAEF,yFAAyF;AACzF,SAAS,aAAa,CAAC,CAAkB;IACvC,OAA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AK;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,CAAC,QAAQ,eAAe,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjH,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
package/dist/remote.d.ts CHANGED
@@ -1,58 +1,139 @@
1
1
  /**
2
- * Talk to a REMOTE resolver's admin control plane the HTTP form of `abx add` /
3
- * `abx index` / `abx forget`, pointed at a hosted node (fly/render/vps) instead of
4
- * this machine's local projection. This is the bridge the toolkit was missing: a
5
- * contract you deploy here is registered with the *local* store; the resolver baked
6
- * into your on-chain tokenURI is a *different* store and must be told separately, or
7
- * it answers "unknown project". These helpers do the telling.
2
+ * Remote-resolver resolution which service `--remote` means, and whose credential drives it.
3
+ * The HTTP client itself lives in the SDK (`AbxServiceClient`, speaking the /v1 control plane from
4
+ * specs/self-host-toolkit/remote-services.md); this module owns the CLI conventions around it:
8
5
  *
9
- * The admin token authorizes indexing control only never on-chain signing so the
10
- * "no signing key on the host" rule is intact. It lives in `.env` as
11
- * ABX_RESOLVER_ADMIN_TOKEN and must match the token set on the resolver.
12
- */
13
- export interface RemoteAddBody {
14
- address: string;
15
- /** Scan floorthe deploy block. Omit on a re-POST (the nudge) to keep the stored floor + reindex incrementally. */
16
- fromBlock?: string;
17
- factory?: string;
18
- label?: string;
19
- description?: string;
20
- externalUrl?: string;
21
- /** Off-chain operator traits (OpenSea attribute array) stitched UNDER any on-chain `attributes`. */
22
- attributes?: Array<{
23
- trait_type: string;
24
- value: string | number;
25
- display_type?: string;
26
- }>;
27
- /** Off-chain PER-TOKEN operator traits, `{ "<tokenId>": OpenSeaAttribute[] }` a Series' editable
28
- * traits (a token's entry wins over the collection-scope `attributes`; on-chain wins over both). */
29
- tokenAttributes?: Record<string, Array<{
30
- trait_type: string;
31
- value: string | number;
32
- display_type?: string;
33
- }>>;
34
- /** Durable locators keyed by on-chain hash, `{ "0x<keccak>": "ipfs://<cid>" }` — lets the resolver
35
- * point `image` at IPFS/Arweave without holding the bytes. Merged over any already stored. */
36
- contentLocators?: Record<string, string>;
37
- /** Force a full replay even on a re-POST. */
38
- full?: boolean;
6
+ * --remote <name> a NAMED remote`ABX_REMOTE_<NAME>_URL` + `ABX_REMOTE_<NAME>_TOKEN` in .env
7
+ * (same env-name normalization as ABX_RPC_URLS_<CHAIN>). "self" is just a name
8
+ * under this SAME convention the node YOU run reads ABX_REMOTE_SELF_URL/_TOKEN
9
+ * with zero special-casing below. A managed provider's per-account API key lives
10
+ * under its own name — and deliberately NEVER falls back to ABX_REMOTE_SELF_TOKEN,
11
+ * so your node-admin secret can't silently go to a third party.
12
+ * --remote <url> an ad-hoc URLtoken from --remote-token or ABX_REMOTE_SELF_TOKEN (the local
13
+ * client credential for a node you run; `abx deploy-resolver` generates it).
14
+ * --remote bare: the self-host default — ABX_PUBLIC_BASE_URL (the URL baked on-chain,
15
+ * else ABX_RESOLVER_URL) + ABX_REMOTE_SELF_TOKEN.
16
+ *
17
+ * Every token here authorizes indexing/metadata control only — never on-chain signing — so the
18
+ * "no signing key on the host" rule is intact. (`--remote-token`, not `--token`: `--token` already
19
+ * means a token ID across the owner ops.)
20
+ *
21
+ * The RESOLVER's own env var — what gates ITS control plane, server-side (packages/token-api/src/
22
+ * control-plane.ts) — is unchanged: still `ABX_RESOLVER_ADMIN_TOKEN`. Only the CLIENT-side lookup
23
+ * for a self-run node moved to the named-remote grammar above; `abx deploy-resolver` prints the exact
24
+ * command that carries the value across the name boundary (fly secrets set ABX_RESOLVER_ADMIN_TOKEN
25
+ * from your local ABX_REMOTE_SELF_TOKEN).
26
+ */
27
+ import { AbxServiceClient, type Address, type IndexError, type IndexErrorClass, type IndexStatus, type RegisterProjectResult, type RemoteProjectStatus } from '@artblocks/abx-sdk';
28
+ import { type Flags } from './flags.js';
29
+ export type RemoteSource = 'url' | 'named' | 'default';
30
+ export interface RemoteTarget {
31
+ /** Base URL, trailing slashes stripped. */
32
+ url: string;
33
+ token?: string;
34
+ /** The normalized remote name (named form only). */
35
+ name?: string;
36
+ source: RemoteSource;
37
+ /** The env var that should hold this target's token — every error/skip message names it. */
38
+ tokenVar: string;
39
+ /** WHERE the token in hand actually came from. A 401 that blames the env var when the caller
40
+ * passed `--remote-token` makes the override look ignored — which is exactly the moment someone
41
+ * is testing a replacement key. */
42
+ tokenFrom?: 'flag' | 'env';
39
43
  }
40
- export interface RemoteAddResult {
41
- ok: boolean;
42
- mode: 'full' | 'incremental';
43
- elapsedMs: number;
44
- project: {
45
- address: string;
46
- name: string | null;
47
- eventCount: number;
48
- tokenCount: number;
49
- mintedCount: number;
44
+ /** How to refer to the credential this target is using, in an error the creator has to act on. */
45
+ export declare function tokenSourceLabel(t: RemoteTarget): string;
46
+ /**
47
+ * Resolve the `--remote` flag value (undefined = local op → null). Pure: pass `env` in tests.
48
+ * `tokenFlag` is `--remote-token` and wins over any env token for this invocation.
49
+ */
50
+ export declare function resolveRemote(spec: string | undefined, tokenFlag?: string, env?: NodeJS.ProcessEnv): RemoteTarget | null;
51
+ /**
52
+ * The OLD client-side var (`ABX_RESOLVER_ADMIN_TOKEN`) sitting unused in `.env` because the
53
+ * self-host default's credential moved to the named-remote grammar (`ABX_REMOTE_SELF_TOKEN`) — a
54
+ * silent fallback would mean an operator's `.env` never gets renamed, so this is the ONE place both
55
+ * {@link requireRemoteToken} (the hard-stop for a real command) and `abx doctor` (the same fault,
56
+ * surfaced before a command needs it) decide whether to flag it — sharing the check means they can
57
+ * never drift on the condition. `null` when there's nothing to flag (old var absent, or the new one
58
+ * is already set and simply wins).
59
+ */
60
+ export declare function selfTokenMigrationWarning(env?: NodeJS.ProcessEnv): string | null;
61
+ /** The token, when the remote is the command's OBJECT (add/index/forget/render/migrate-dest) —
62
+ * a missing credential is a hard stop that names the exact var to set. */
63
+ export declare function requireRemoteToken(t: RemoteTarget, env?: NodeJS.ProcessEnv): string;
64
+ /** Every named remote configured in the env (`ABX_REMOTE_<NAME>_URL`). The normalized name is
65
+ * canonical — the env convention is lossy, so enumeration reads the env, never inverts it. */
66
+ export declare function listConfiguredRemotes(env?: NodeJS.ProcessEnv): Array<{
67
+ name: string;
68
+ url: string;
69
+ hasToken: boolean;
70
+ }>;
71
+ /**
72
+ * `ABX_REMOTE_*` vars that follow no recognized suffix — i.e. a typo. The convention has exactly two
73
+ * suffixes (`_URL`, `_TOKEN`), and anything else (`_KEY`, `_APIKEY`, `_SECRET`) is silently ignored:
74
+ * the CLI reports "no token" while the value sits right there in `.env`. Cheap to detect, so detect
75
+ * it rather than leaving the creator to compare strings by eye.
76
+ */
77
+ export declare function misnamedRemoteVars(env?: NodeJS.ProcessEnv): Array<{
78
+ key: string;
79
+ suggestion: string;
80
+ }>;
81
+ /** The SDK service client bound to this target (call {@link requireRemoteToken} first when the
82
+ * operation needs auth). */
83
+ export declare function serviceClient(t: RemoteTarget): AbxServiceClient;
84
+ /**
85
+ * Map a control-plane failure to an actionable CLI error. Keys off `AbxServiceError.code`/status,
86
+ * never off message prose (the machine-code half of the interface spec):
87
+ * 401 — the credential itself was rejected → name the var that supplied it.
88
+ * 403 — credential fine, not authorized for this resource → provider scoping, don't retry.
89
+ * `disabled` — the node has no control-plane token configured at all.
90
+ * bare 404 on /v1 — no control plane at this URL (pre-/v1 node, or not an ABX service).
91
+ */
92
+ export declare function describeRemoteError(err: unknown, t: RemoteTarget, label: string): Error;
93
+ export declare function remoteFlag(flags: Flags): RemoteTarget | null;
94
+ /**
95
+ * The factory-verification tri-state, said plainly. `null` means the check never ran (no factory
96
+ * configured, or the configured one has no code on this chain — common on a local/dev chain), which
97
+ * is NOT the same as the chain telling us this contract isn't a clone of it.
98
+ */
99
+ export declare function canonicalLabel(isCanonical: boolean | null | undefined): string;
100
+ /** How a lifecycle state reads at a glance — the same word everywhere it's printed. */
101
+ export declare function statusLabel(s: IndexStatus): string;
102
+ /** `label value` with only the label dimmed — status values carry their own color, and wrapping
103
+ * them in `info()` would fight it. */
104
+ export declare const statusRow: (label: string, value: string) => void;
105
+ /**
106
+ * What to DO about a failure class — whose problem it is and whether waiting is the answer.
107
+ * The class alone told an agent enough to reason it out; it does not tell a creator, and "whose
108
+ * problem is this" is the single question a failed catch-up has to answer.
109
+ */
110
+ export declare function indexErrorAction(cls: IndexErrorClass): string;
111
+ /** The one wording for "registered, but catch-up failed" — shared by add/index so both say the same
112
+ * thing: what failed, whose problem it is, and that the registration survived. */
113
+ export declare function failedCatchUpMessage(address: Address, remote: RemoteTarget, err: IndexError | undefined, check: string): string;
114
+ /**
115
+ * One human line for a status read: where it is, how far along, and why if it's unhappy.
116
+ *
117
+ * What "where" means depends on the state, so say the right thing rather than one number that reads
118
+ * differently in each: a percentage is only honest while BACKFILLING (see indexProgress). A `live`
119
+ * project's `toBlock` only advances when that project has events, so on a busy chain a perfectly
120
+ * current project sits far below head — printing that as a ratio makes healthy look broken.
121
+ */
122
+ export declare function statusLine(s: RemoteProjectStatus): string;
123
+ /**
124
+ * Report a register/reindex answer, whichever of the two conformant shapes the service used.
125
+ *
126
+ * A `200` already carries the counts. A `202` means the registration is durable and catch-up is still
127
+ * running — so by default we poll to a terminal state and print the SAME summary line, giving the
128
+ * human the "waits, then tells you what happened" UX without the service holding a socket open for
129
+ * minutes. `--no-wait` stops at the 202 and names the command that checks later.
130
+ */
131
+ export declare function reportRemoteIndexing(remote: RemoteTarget, chainId: number, address: Address, r: RegisterProjectResult, flags: Flags, verb: string): Promise<void>;
132
+ /** "3 live, 1 backfilling, 1 failed (rpc_rate_limited)" — the one-line answer to "is my stuff ok?" */
133
+ export declare function rollUp(projects: Array<{
134
+ status?: IndexStatus;
135
+ error?: {
136
+ class: string;
50
137
  };
51
- }
52
- /** Normalize a resolver base URL to its `/admin/projects` control-plane endpoint. */
53
- export declare function adminProjectsUrl(base: string): string;
54
- /** Register + index a project with a remote resolver (remote `abx add`/`index`). */
55
- export declare function remoteAddProject(base: string, token: string, body: RemoteAddBody): Promise<RemoteAddResult>;
56
- /** Stop a remote resolver from indexing a project (remote `abx forget`). */
57
- export declare function remoteRemoveProject(base: string, token: string, address: string): Promise<void>;
138
+ }>): string;
58
139
  //# sourceMappingURL=remote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../src/remote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,UAAU,CAAC,EAAE,KAAK,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACxF;yGACqG;IACrG,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC,CAAC;IAC7G;mGAC+F;IAC/F,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,6CAA6C;IAC7C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC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