@elgora/cli 11.0.0 → 12.1.0

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 (3) hide show
  1. package/README.md +26 -6
  2. package/dist/cli.js +1744 -706
  3. package/package.json +4 -3
package/README.md CHANGED
@@ -33,16 +33,24 @@ answer.
33
33
  funds the new bounty. It reuses the saved approval for those bytes without
34
34
  another AI review, or reviews them first.
35
35
  - `poster:open-winning-submission` retrieves the finalized winning Submission
36
- for the funding Poster and decrypts it locally.
36
+ for the funding Poster, decrypts it locally, and saves it as one `.tar.gz`.
37
37
  - `check-challenge <bounty_challenge_md_path|->` checks structural conformance offline,
38
38
  returns an issue list and exits non-zero on failure. It needs no wallet or
39
39
  network and does not replace hosted semantic readiness review.
40
40
  - `spec-commitment` reproduces the challenge's `spec_commitment` offline.
41
- - `solver:submit` encrypts a Submission for the bounty's pinned Guardian roster
42
- and prepares or sends the exact ElgoraHub transaction.
41
+ - `solver:solvable` lists open bounties still before their Submission
42
+ deadline, filtered by escrow amount, time left and challenge keywords.
43
+ - `solver:check <bounty_id> <folder_or_file>` runs the Submission check that
44
+ `solver:submit` and `guardian:open` also run, without submitting, and exits
45
+ 1 on any issue.
46
+ - `solver:submit <bounty_id> <folder_or_file>` packs a folder (subfolders
47
+ included) or a single file into one `.tar.gz`, encrypts it for the bounty's
48
+ pinned Guardian roster, and prepares or sends the exact ElgoraHub
49
+ transaction.
43
50
  - `guardian:judgeable` lists open bounties ready for Guardian review.
44
51
  - `guardian:open` signs the protected content read, then verifies and decrypts
45
- one exact Solver and Submission pair.
52
+ one exact Solver and Submission pair, extracts its tree into a new or empty
53
+ folder, and reports the Submission check's issues.
46
54
  - `guardian:verdict` publishes a written Verdict and records the same Verdict
47
55
  on ElgoraHub.
48
56
  - `guardian:deliver-key` wraps one Solver–Submission content key for delivery
@@ -56,6 +64,18 @@ answer.
56
64
  `GET /api/bounties/<bounty_id>` inlines.
57
65
 
58
66
  Run `elgora-cli help <command>` for exact arguments, options, and secrets.
67
+
68
+ ### Which version a bounty needs
69
+
70
+ It follows the profile the bounty's challenge declares:
71
+
72
+ - `elgora_markdown_bounty_challenge_v1`: the latest release, at least 12.0.0.
73
+ - `elgora_markdown_bounty_challenge_v0`: CLI 11, which CLI 12 names when it
74
+ refuses such a bounty; `npx` runs it beside the installed release:
75
+
76
+ ```sh
77
+ npx @elgora/cli@11 poster:open-winning-submission <bounty_id>
78
+ ```
59
79
  Run `elgora-cli --version` to print the installed release's version; it is the
60
80
  version of the npm package or standalone binary in use, stamped in at build
61
81
  time, so it stays correct however the CLI was installed.
@@ -128,7 +148,7 @@ A Guardian may retain old and new X25519 keys after rotating the public key for
128
148
  the same account. The CLI tries the retained keys locally so an earlier bounty
129
149
  can still use the roster and key it pinned.
130
150
 
131
- Never put private keys, decrypted artifacts, or raw Submission keys in command
151
+ Never put private keys, decrypted files, or raw Submission keys in command
132
152
  arguments, logs, or submitted files. Each command reads only the secrets it
133
153
  needs.
134
154
 
@@ -146,7 +166,7 @@ for that invocation without touching the environment. It takes a network name
146
166
  passed — for that run only:
147
167
 
148
168
  ```sh
149
- elgora-cli guardian:judgeable # Base mainnet, the default
169
+ elgora-cli spec-commitment bounty_challenge.md # Base mainnet, the default
150
170
  elgora-cli claim --network base-sepolia 7 # testnet, by name
151
171
  elgora-cli claim --network 84532 7 # the same, by chain id
152
172
  export ELGORA_CHAIN_ID=84532 # testnet for every run in this shell