apow-cli 0.11.8 → 0.11.9

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 (2) hide show
  1. package/dist/mint.js +6 -3
  2. package/package.json +1 -1
package/dist/mint.js CHANGED
@@ -181,9 +181,12 @@ async function runMintFlow(options = {}) {
181
181
  // Solve SMHL
182
182
  const challenge = deriveChallengeFromSeed(challengeSeed);
183
183
  const smhlSpinner = ui.spinner("Solving SMHL...");
184
- const solution = await (0, smhl_1.solveSmhlChallenge)(challenge, (attempt) => {
185
- smhlSpinner.update(`Solving SMHL... attempt ${attempt}/5`);
186
- });
184
+ const solution = (0, smhl_1.solveSmhlAlgorithmic)(challenge);
185
+ const issues = (0, smhl_1.validateSmhlSolution)(solution, challenge);
186
+ if (issues.length > 0) {
187
+ smhlSpinner.fail("Solving SMHL failed");
188
+ throw new Error(`SMHL generation failed: ${issues.join(", ")}`);
189
+ }
187
190
  smhlSpinner.stop("Solving SMHL... done");
188
191
  // Mint
189
192
  const mintSpinner = ui.spinner("Minting...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apow-cli",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Mine AGENT tokens on Base L2 with Agentic Proof of Work",
5
5
  "keywords": [
6
6
  "apow",