openzoo 0.50.100 → 0.51.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 (37) hide show
  1. package/bin/openzoo.js +33 -0
  2. package/lib/cursorbackend.js.bak-hiddenbots +4072 -0
  3. package/package.json +7 -4
  4. package/transmute/README.md +352 -0
  5. package/transmute/bin/openzoo-transmute.js +7 -0
  6. package/transmute/docs/OPENZOO_CLI_PATCH.md +139 -0
  7. package/transmute/docs/VERCEL_TO_SOLANA.md +381 -0
  8. package/transmute/lib/build.js +311 -0
  9. package/transmute/lib/cli.js +231 -0
  10. package/transmute/lib/compile/index.js +146 -0
  11. package/transmute/lib/compile/ir.js +1634 -0
  12. package/transmute/lib/compile/parse.js +753 -0
  13. package/transmute/lib/compile/rust.js +777 -0
  14. package/transmute/lib/deploy.js +209 -0
  15. package/transmute/lib/eligibility.js +211 -0
  16. package/transmute/lib/gateway.js +704 -0
  17. package/transmute/lib/hub.js +249 -0
  18. package/transmute/lib/solana.js +339 -0
  19. package/transmute/lib/vercel.js +296 -0
  20. package/transmute/lib/wallet.js +41 -0
  21. package/transmute/lib/wire.js +167 -0
  22. package/transmute/runtime/zoo-host/Cargo.lock +588 -0
  23. package/transmute/runtime/zoo-host/Cargo.toml +28 -0
  24. package/transmute/runtime/zoo-host/src/assets.rs +170 -0
  25. package/transmute/runtime/zoo-host/src/ctx.rs +322 -0
  26. package/transmute/runtime/zoo-host/src/json.rs +257 -0
  27. package/transmute/runtime/zoo-host/src/kv.rs +182 -0
  28. package/transmute/runtime/zoo-host/src/lib.rs +123 -0
  29. package/transmute/runtime/zoo-host/src/val.rs +1044 -0
  30. package/transmute/runtime/zoo-host/src/wire.rs +239 -0
  31. package/transmute/site/.env.production +2 -0
  32. package/transmute/site/api/echo.js +10 -0
  33. package/transmute/site/api/hello.js +12 -0
  34. package/transmute/site/api/hits.js +13 -0
  35. package/transmute/site/api/time.js +5 -0
  36. package/transmute/site/public/app.js +16 -0
  37. package/transmute/site/public/index.html +62 -0
package/bin/openzoo.js CHANGED
@@ -169,6 +169,19 @@ usage:
169
169
  npx openzoo contexts --forget <hash|all> drop manifest entries
170
170
  npx openzoo balance wallet balance on every rail — Solana (USDC/TOKEN/SOL),
171
171
  Base (USDC/ETH), Robinhood Chain (USDG/memecoins/ETH)
172
+ npx openzoo build [dir] transmute a Vercel-shaped app (Next.js pages/api,
173
+ app/**/route, Vite + api/*) into a Pinocchio Rust
174
+ program + asset plan (--out .zoo-out --arch v0|v3)
175
+ npx openzoo deploy [dir] deploy the program and the static frontend to
176
+ Solana accounts (--cluster mainnet|devnet|localnet,
177
+ --yes to accept the rent estimate; burner wallet)
178
+ npx openzoo serve <program> local gateway/explorer for a deployed site
179
+ (--cluster, --port 4402); /api/* reads are free
180
+ simulations, writes are signed by the burner
181
+ npx openzoo inspect [dir] print the app in Vercel terms + eligibility report
182
+ npx openzoo hub hosted explorer for every transmuted site on the
183
+ cluster (what sites.openzoo.fun runs)
184
+ npx openzoo hub hosted explorer for every transmuted site on the cluster
172
185
  npx openzoo address print both funding addresses (Solana + EVM)
173
186
  npx openzoo help this text
174
187
 
@@ -403,6 +416,26 @@ async function main() {
403
416
  if (bal <= 0) console.log('buy some with: npx openzoo topup 10');
404
417
  break;
405
418
  }
419
+ case 'build':
420
+ case 'deploy':
421
+ case 'serve':
422
+ case 'inspect':
423
+ case 'hub':
424
+ case 'transmute': {
425
+ // VERCEL-SHAPED APP -> SOLANA MAINNET. `openzoo build|deploy|serve` hand
426
+ // the argv to openzoo-transmute (a sibling npm package): it reads the
427
+ // app the way `vercel build` would (pages/api, app/**/route, api/*,
428
+ // .vercel/output), transmutes each Lambda into a Pinocchio Rust program
429
+ // route, stores the static build in asset accounts, deploys with the
430
+ // burner wallet at ~/.openzoo/wallet.json, and `serve` runs the local
431
+ // gateway/explorer that maps http://localhost:4402/... onto the program.
432
+ const argv = process.argv.slice(2).map((a, i) => (i === 0 && a === 'transmute' ? 'help' : a));
433
+ // The transmuter ships inside this package (transmute/): lib/cli.js, the
434
+ // compiler, the gateway + hub and the on-chain runtime crate
435
+ // (transmute/runtime/zoo-host) all travel with npm — no second install.
436
+ await (await import('../transmute/lib/cli.js')).run(argv);
437
+ break;
438
+ }
406
439
  case 'address':
407
440
  (await import('../lib/info.js')).printAddress();
408
441
  break;