Skip to content

Handle Hyperbalance conditional free-tier advisories - #83

Draft
xylophonez wants to merge 1 commit into
permaweb:mainfrom
xylophonez:feat/trundler-integration
Draft

Handle Hyperbalance conditional free-tier advisories#83
xylophonez wants to merge 1 commit into
permaweb:mainfrom
xylophonez:feat/trundler-integration

Conversation

@xylophonez

@xylophonez xylophonez commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • switch Hyperbalance dependency to npm @permaweb/hyperbalance@^0.2.0
  • preserve conditional free-tier advisory metadata from quote through HyperBEAM uploads
  • report trundler/free-tier exhaustion as paid fallback when upload settlement returns HTTP 402

Version Update

  • major
  • minor
  • patch

Validation

  • PATH="/home/fn/.npm-global/bin:$PATH" /home/fn/.npm-global/bin/pnpm vitest run src/utils/tests/hyperbeam-uploader.test.ts
  • /home/fn/.npm-global/bin/pnpm build
  • /home/fn/.npm-global/bin/pnpm lint (passes with existing warnings)
  • git diff --check origin/main...HEAD
  • live fallback smoke: first same-signer upload to https://fallback.mystical.computer succeeded at 0 AO; second same-signer upload failed with free-tier quota exhausted / AO payment required messaging

@xylophonez
xylophonez force-pushed the feat/trundler-integration branch from 4fd2190 to 055dd32 Compare June 19, 2026 10:41
@xylophonez
xylophonez changed the base branch from alpha to main June 19, 2026 10:41
@xylophonez

Copy link
Copy Markdown
Contributor Author

Rebased onto main and force-pushed with lease.

Current branch state:

  • Base: main
  • Head: xylophonez:feat/trundler-integration
  • Commit: 055dd322d8d36d29ed1120a752d37aa5f38ae334

Validation run after rebase:

  • PATH="/home/fn/.npm-global/bin:$PATH" /home/fn/.npm-global/bin/pnpm vitest run src/utils/__tests__/hyperbeam-uploader.test.ts -> 9 tests passed
  • /home/fn/.npm-global/bin/pnpm build -> passed
  • /home/fn/.npm-global/bin/pnpm lint -> passed with existing warnings only
  • git diff --check origin/main...HEAD -> clean

Note: the first Vitest attempt failed only because the test global setup shells out to plain pnpm and this shell did not have pnpm on PATH. Rerun with the local pnpm bin on PATH passed.

@xylophonez

Copy link
Copy Markdown
Contributor Author

Follow-up after the PR body metadata fix:

  • Added the required version checkbox and selected patch.
  • GitHub checks now pass: Validate version selection, build, format, lint, and test.
  • The only skipped entry is matrix.task, which GitHub marks as skipped rather than failed.

The PR is now rebased against main, updated on GitHub, and ready for review from this branch state.

@charmful0x
charmful0x self-requested a review June 19, 2026 11:07
@charmful0x
charmful0x marked this pull request as draft June 19, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant