@oakagentkit/core 0.3.4 → 0.3.6
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.
- package/build/dist/api/addresses.d.ts +14 -0
- package/build/dist/api/addresses.js +1 -1
- package/build/dist/api/chain.js +1 -1
- package/build/dist/api/history.d.ts +2 -0
- package/build/dist/api/history.js +1 -1
- package/build/dist/api/identity-link.js +1 -1
- package/build/dist/api/metadata.js +1 -1
- package/build/dist/api/modules/beefy/boosts.js +1 -1
- package/build/dist/api/modules/beefy/clm.js +1 -1
- package/build/dist/api/modules/beefy/guard.js +1 -1
- package/build/dist/api/modules/beefy/index.js +1 -1
- package/build/dist/api/modules/beefy/liquidity.js +1 -1
- package/build/dist/api/modules/beefy/management.js +1 -1
- package/build/dist/api/modules/beefy/vaults.js +1 -1
- package/build/dist/api/modules/borro/actions.js +1 -1
- package/build/dist/api/modules/borro/index.js +1 -1
- package/build/dist/api/modules/borro/liquidity.js +1 -1
- package/build/dist/api/modules/borro/positions.js +1 -1
- package/build/dist/api/modules/borro/reader.js +1 -1
- package/build/dist/api/modules/chop/actions.d.ts +13 -1
- package/build/dist/api/modules/chop/actions.js +1 -1
- package/build/dist/api/modules/chop/checks.js +1 -1
- package/build/dist/api/modules/chop/copy.d.ts +1 -0
- package/build/dist/api/modules/chop/copy.js +1 -1
- package/build/dist/api/modules/chop/display.d.ts +36 -0
- package/build/dist/api/modules/chop/display.js +1 -0
- package/build/dist/api/modules/chop/guard.js +1 -1
- package/build/dist/api/modules/chop/index.js +1 -1
- package/build/dist/api/modules/chop/pins.d.ts +1 -0
- package/build/dist/api/modules/chop/pins.js +1 -1
- package/build/dist/api/modules/chop/positions.js +1 -1
- package/build/dist/api/modules/chop/reader.d.ts +6 -1
- package/build/dist/api/modules/chop/reader.js +1 -1
- package/build/dist/api/modules/chop/types.d.ts +7 -0
- package/build/dist/api/modules/chop/unfarm.d.ts +16 -0
- package/build/dist/api/modules/chop/unfarm.js +1 -0
- package/build/dist/api/modules/clanker/extensions.js +1 -1
- package/build/dist/api/modules/clanker/index.js +1 -1
- package/build/dist/api/modules/clanker/manage.js +1 -1
- package/build/dist/api/modules/clanker/pool-config.js +1 -1
- package/build/dist/api/modules/clanker/protocol.js +1 -1
- package/build/dist/api/modules/clanker/state.js +1 -1
- package/build/dist/api/modules/earn/index.js +1 -1
- package/build/dist/api/modules/erc8004/common.js +1 -1
- package/build/dist/api/modules/erc8004/domain.js +1 -1
- package/build/dist/api/modules/erc8004/index.js +1 -1
- package/build/dist/api/modules/erc8004/management.js +1 -1
- package/build/dist/api/modules/erc8004/reputation.js +1 -1
- package/build/dist/api/modules/erc8004/services.js +1 -1
- package/build/dist/api/modules/erc8004/thesis.js +1 -1
- package/build/dist/api/modules/erc8004/validation.js +1 -1
- package/build/dist/api/modules/factor/actions.js +1 -1
- package/build/dist/api/modules/factor/api.js +1 -1
- package/build/dist/api/modules/factor/checks.js +1 -1
- package/build/dist/api/modules/factor/copy.d.ts +11 -11
- package/build/dist/api/modules/factor/copy.js +1 -1
- package/build/dist/api/modules/factor/guard.js +1 -1
- package/build/dist/api/modules/factor/index.js +1 -1
- package/build/dist/api/modules/factor/reader.js +1 -1
- package/build/dist/api/modules/fobo/client.js +1 -1
- package/build/dist/api/modules/fobo/index.js +1 -1
- package/build/dist/api/modules/fobo/intent.js +1 -1
- package/build/dist/api/modules/fobo/steps.js +1 -1
- package/build/dist/api/modules/fobo/verify.js +1 -1
- package/build/dist/api/modules/gloam/index.js +1 -1
- package/build/dist/api/modules/grove/index.js +1 -1
- package/build/dist/api/modules/heyresearch/builder-feed.js +1 -1
- package/build/dist/api/modules/heyresearch/index.js +1 -1
- package/build/dist/api/modules/heyresearch/public-reads.js +1 -1
- package/build/dist/api/modules/heyresearch/scan.js +1 -1
- package/build/dist/api/modules/heyresearch/token-facts.js +1 -1
- package/build/dist/api/modules/hoodag/chain-reads.js +1 -1
- package/build/dist/api/modules/hoodag/index.js +1 -1
- package/build/dist/api/modules/hoodag/management.js +1 -1
- package/build/dist/api/modules/hoodag/public-reads.js +1 -1
- package/build/dist/api/modules/hoodag/reconstruct.js +1 -1
- package/build/dist/api/modules/hoodlock/airdrop.js +1 -1
- package/build/dist/api/modules/hoodlock/buyback.js +1 -1
- package/build/dist/api/modules/hoodlock/commerce.js +1 -1
- package/build/dist/api/modules/hoodlock/fee.js +1 -1
- package/build/dist/api/modules/hoodlock/guard.js +1 -1
- package/build/dist/api/modules/hoodlock/index.js +1 -1
- package/build/dist/api/modules/hoodlock/lifecycle.js +1 -1
- package/build/dist/api/modules/hoodlock/locks-burn.js +1 -1
- package/build/dist/api/modules/hoodlock/public.js +1 -1
- package/build/dist/api/modules/hookr/actions.d.ts +39 -2
- package/build/dist/api/modules/hookr/actions.js +1 -1
- package/build/dist/api/modules/hookr/addons.js +1 -1
- package/build/dist/api/modules/hookr/agent-gate.d.ts +14 -2
- package/build/dist/api/modules/hookr/agent-gate.js +1 -1
- package/build/dist/api/modules/hookr/agent-link.d.ts +17 -0
- package/build/dist/api/modules/hookr/agent-link.js +1 -0
- package/build/dist/api/modules/hookr/api-client.d.ts +9 -0
- package/build/dist/api/modules/hookr/api-client.js +1 -0
- package/build/dist/api/modules/hookr/blocks/advisory.d.ts +41 -0
- package/build/dist/api/modules/hookr/blocks/advisory.js +1 -0
- package/build/dist/api/modules/hookr/blocks/buy-sell-block.d.ts +7 -0
- package/build/dist/api/modules/hookr/blocks/buy-sell-block.js +1 -0
- package/build/dist/api/modules/hookr/blocks/core-settings.d.ts +6 -0
- package/build/dist/api/modules/hookr/blocks/core-settings.js +1 -0
- package/build/dist/api/modules/hookr/blocks/exit-clock.d.ts +14 -0
- package/build/dist/api/modules/hookr/blocks/exit-clock.js +1 -0
- package/build/dist/api/modules/hookr/blocks/holder-pot.d.ts +30 -0
- package/build/dist/api/modules/hookr/blocks/holder-pot.js +1 -0
- package/build/dist/api/modules/hookr/blocks/managed-fee.d.ts +96 -0
- package/build/dist/api/modules/hookr/blocks/managed-fee.js +1 -0
- package/build/dist/api/modules/hookr/blocks/market-guard.d.ts +116 -0
- package/build/dist/api/modules/hookr/blocks/market-guard.js +1 -0
- package/build/dist/api/modules/hookr/blocks/market-hours-fee.d.ts +87 -0
- package/build/dist/api/modules/hookr/blocks/market-hours-fee.js +1 -0
- package/build/dist/api/modules/hookr/blocks/pay-later.d.ts +199 -0
- package/build/dist/api/modules/hookr/blocks/pay-later.js +1 -0
- package/build/dist/api/modules/hookr/blocks/sandwich-guard.d.ts +3 -0
- package/build/dist/api/modules/hookr/blocks/sandwich-guard.js +1 -0
- package/build/dist/api/modules/hookr/blocks/storm-fee.d.ts +3 -0
- package/build/dist/api/modules/hookr/blocks/storm-fee.js +1 -0
- package/build/dist/api/modules/hookr/blocks/swap-cut.d.ts +3 -0
- package/build/dist/api/modules/hookr/blocks/swap-cut.js +1 -0
- package/build/dist/api/modules/hookr/blocks/swap-reward-mint.d.ts +125 -0
- package/build/dist/api/modules/hookr/blocks/swap-reward-mint.js +1 -0
- package/build/dist/api/modules/hookr/blocks/wallet-cap.d.ts +3 -0
- package/build/dist/api/modules/hookr/blocks/wallet-cap.js +1 -0
- package/build/dist/api/modules/hookr/blocks/zap-source.d.ts +161 -0
- package/build/dist/api/modules/hookr/blocks/zap-source.js +1 -0
- package/build/dist/api/modules/hookr/blocks/zap-target.d.ts +51 -0
- package/build/dist/api/modules/hookr/blocks/zap-target.js +1 -0
- package/build/dist/api/modules/hookr/claims.d.ts +53 -0
- package/build/dist/api/modules/hookr/claims.js +1 -0
- package/build/dist/api/modules/hookr/contracts.d.ts +3 -1
- package/build/dist/api/modules/hookr/contracts.js +1 -1
- package/build/dist/api/modules/hookr/create-cancel.js +1 -1
- package/build/dist/api/modules/hookr/discovery.d.ts +2 -2
- package/build/dist/api/modules/hookr/discovery.js +1 -1
- package/build/dist/api/modules/hookr/fill-bounty.d.ts +2 -0
- package/build/dist/api/modules/hookr/fill-bounty.js +1 -1
- package/build/dist/api/modules/hookr/gas.d.ts +48 -0
- package/build/dist/api/modules/hookr/gas.js +1 -0
- package/build/dist/api/modules/hookr/gates.d.ts +51 -0
- package/build/dist/api/modules/hookr/gates.js +1 -0
- package/build/dist/api/modules/hookr/hook-blocks.d.ts +304 -0
- package/build/dist/api/modules/hookr/hook-blocks.js +1 -0
- package/build/dist/api/modules/hookr/index.d.ts +4 -2
- package/build/dist/api/modules/hookr/index.js +1 -1
- package/build/dist/api/modules/hookr/jobs.d.ts +7 -0
- package/build/dist/api/modules/hookr/jobs.js +1 -0
- package/build/dist/api/modules/hookr/launch-options.d.ts +52 -3
- package/build/dist/api/modules/hookr/launch-options.js +1 -1
- package/build/dist/api/modules/hookr/launch-profile.d.ts +8 -0
- package/build/dist/api/modules/hookr/launch-profile.js +1 -1
- package/build/dist/api/modules/hookr/launch-receipt.js +1 -1
- package/build/dist/api/modules/hookr/launch.d.ts +24 -0
- package/build/dist/api/modules/hookr/launch.js +1 -1
- package/build/dist/api/modules/hookr/liquidity.js +1 -1
- package/build/dist/api/modules/hookr/lp-positions.js +1 -1
- package/build/dist/api/modules/hookr/lp-reads.js +1 -1
- package/build/dist/api/modules/hookr/lp-receipt.js +1 -1
- package/build/dist/api/modules/hookr/lp-state.d.ts +90 -2
- package/build/dist/api/modules/hookr/lp-state.js +1 -1
- package/build/dist/api/modules/hookr/pay-later-actions.d.ts +52 -0
- package/build/dist/api/modules/hookr/pay-later-actions.js +1 -0
- package/build/dist/api/modules/hookr/pins.d.ts +5 -0
- package/build/dist/api/modules/hookr/pins.js +1 -1
- package/build/dist/api/modules/hookr/pm-liquidity.d.ts +215 -0
- package/build/dist/api/modules/hookr/pm-liquidity.js +1 -0
- package/build/dist/api/modules/hookr/public-reads.d.ts +1 -1
- package/build/dist/api/modules/hookr/public-reads.js +1 -1
- package/build/dist/api/modules/hookr/read-utils.js +1 -1
- package/build/dist/api/modules/hookr/relay.js +1 -1
- package/build/dist/api/modules/hookr/revenue.d.ts +4 -1
- package/build/dist/api/modules/hookr/revenue.js +1 -1
- package/build/dist/api/modules/hookr/scan.d.ts +25 -0
- package/build/dist/api/modules/hookr/scan.js +1 -0
- package/build/dist/api/modules/hookr/swap.d.ts +161 -0
- package/build/dist/api/modules/hookr/swap.js +1 -0
- package/build/dist/api/modules/kyberswap/index.js +1 -1
- package/build/dist/api/modules/kyberswap/source-pools.js +1 -1
- package/build/dist/api/modules/layerbank/abi.js +1 -1
- package/build/dist/api/modules/layerbank/actions.js +1 -1
- package/build/dist/api/modules/layerbank/checks.js +1 -1
- package/build/dist/api/modules/layerbank/index.js +1 -1
- package/build/dist/api/modules/layerbank/merkl.js +1 -1
- package/build/dist/api/modules/layerbank/reader.js +1 -1
- package/build/dist/api/modules/layerbank/reserve.js +1 -1
- package/build/dist/api/modules/lighter/index.js +1 -1
- package/build/dist/api/modules/longbow/administration.js +1 -1
- package/build/dist/api/modules/longbow/analytics.js +1 -1
- package/build/dist/api/modules/longbow/fixed.js +1 -1
- package/build/dist/api/modules/longbow/index.js +1 -1
- package/build/dist/api/modules/longbow/nft.js +1 -1
- package/build/dist/api/modules/longbow/rebates.js +1 -1
- package/build/dist/api/modules/longbow/staking.js +1 -1
- package/build/dist/api/modules/meridian/index.js +1 -1
- package/build/dist/api/modules/meridian/markets.js +1 -1
- package/build/dist/api/modules/meridian/rfq.js +1 -1
- package/build/dist/api/modules/merkl/discovery.js +1 -1
- package/build/dist/api/modules/merkl/index.js +1 -1
- package/build/dist/api/modules/merkl/manage.js +1 -1
- package/build/dist/api/modules/merkl/protocol.js +1 -1
- package/build/dist/api/modules/morpho/allocator.js +1 -1
- package/build/dist/api/modules/morpho/bundles.js +1 -1
- package/build/dist/api/modules/morpho/in-kind.js +1 -1
- package/build/dist/api/modules/morpho/index.js +1 -1
- package/build/dist/api/modules/morpho/local-guard.js +1 -1
- package/build/dist/api/modules/morpho/midnight.js +1 -1
- package/build/dist/api/modules/morpho/protocol.js +1 -1
- package/build/dist/api/modules/morpho/vault-management.js +1 -1
- package/build/dist/api/modules/morpho/vault-tools.js +1 -1
- package/build/dist/api/modules/morpho/vault-v2.js +1 -1
- package/build/dist/api/modules/netnet/card-plan.js +1 -1
- package/build/dist/api/modules/netnet/card-read.js +1 -1
- package/build/dist/api/modules/netnet/card-recovery.js +1 -1
- package/build/dist/api/modules/netnet/desk-action.js +1 -1
- package/build/dist/api/modules/netnet/desk-read.js +1 -1
- package/build/dist/api/modules/netnet/financial.js +1 -1
- package/build/dist/api/modules/netnet/index.js +1 -1
- package/build/dist/api/modules/netnet/staking.js +1 -1
- package/build/dist/api/modules/orbio/index.js +1 -1
- package/build/dist/api/modules/orbio/positions.js +1 -1
- package/build/dist/api/modules/pendle/costs.js +1 -1
- package/build/dist/api/modules/pendle/index.js +1 -1
- package/build/dist/api/modules/pendle/markets.js +1 -1
- package/build/dist/api/modules/pendle/positions.js +1 -1
- package/build/dist/api/modules/pendle/pricecheck.js +1 -1
- package/build/dist/api/modules/pendle/reader.js +1 -1
- package/build/dist/api/modules/pendle/redeem.js +1 -1
- package/build/dist/api/modules/pendle/trade.js +1 -1
- package/build/dist/api/modules/pendle/validate.js +1 -1
- package/build/dist/api/modules/pendle/verify.js +1 -1
- package/build/dist/api/modules/pons/claim.js +1 -1
- package/build/dist/api/modules/pons/index.js +1 -1
- package/build/dist/api/modules/pons/launch-status.js +1 -1
- package/build/dist/api/modules/pons/prices.js +1 -1
- package/build/dist/api/modules/pons/reads.js +1 -1
- package/build/dist/api/modules/pons/swap-terms.js +1 -1
- package/build/dist/api/modules/pons/trade.js +1 -1
- package/build/dist/api/modules/poolstrade/index.js +1 -1
- package/build/dist/api/modules/priors/coverage.js +1 -1
- package/build/dist/api/modules/priors/discovery.js +1 -1
- package/build/dist/api/modules/priors/features.js +1 -1
- package/build/dist/api/modules/priors/holdings.js +1 -1
- package/build/dist/api/modules/priors/index.js +1 -1
- package/build/dist/api/modules/priors/integration.js +1 -1
- package/build/dist/api/modules/priors/market.js +1 -1
- package/build/dist/api/modules/priors/pt.js +1 -1
- package/build/dist/api/modules/priors/savings-exit.js +1 -1
- package/build/dist/api/modules/priors/starter-line.js +1 -1
- package/build/dist/api/modules/priors/stock-swap.js +1 -1
- package/build/dist/api/modules/raeto/index.js +1 -1
- package/build/dist/api/modules/relay/bootstrap.js +1 -1
- package/build/dist/api/modules/relay/discovery.js +1 -1
- package/build/dist/api/modules/relay/inbound.js +1 -1
- package/build/dist/api/modules/relay/index.js +1 -1
- package/build/dist/api/modules/relay/outbound-status.js +1 -1
- package/build/dist/api/modules/relay/reads.js +1 -1
- package/build/dist/api/modules/spark/actions.js +1 -1
- package/build/dist/api/modules/spark/details.js +1 -1
- package/build/dist/api/modules/spark/index.js +1 -1
- package/build/dist/api/modules/spark/management.js +1 -1
- package/build/dist/api/modules/steakhouse/analytics.js +1 -1
- package/build/dist/api/modules/steakhouse/erc4626.js +1 -1
- package/build/dist/api/modules/steakhouse/index.js +1 -1
- package/build/dist/api/modules/steakhouse/local-guard.js +1 -1
- package/build/dist/api/modules/steakhouse/management.js +1 -1
- package/build/dist/api/modules/steakhouse/v2-exit.js +1 -1
- package/build/dist/api/modules/tickerspring/basket-routes.js +1 -1
- package/build/dist/api/modules/tickerspring/contract-reads.js +1 -1
- package/build/dist/api/modules/tickerspring/discovery.js +1 -1
- package/build/dist/api/modules/tickerspring/exit-preview.js +1 -1
- package/build/dist/api/modules/tickerspring/guards.js +1 -1
- package/build/dist/api/modules/tickerspring/index.js +1 -1
- package/build/dist/api/modules/tickerspring/journeys.js +1 -1
- package/build/dist/api/modules/tickerspring/ladder.js +1 -1
- package/build/dist/api/modules/tickerspring/maker.js +1 -1
- package/build/dist/api/modules/tickerspring/order-accounting.js +1 -1
- package/build/dist/api/modules/tickerspring/research.js +1 -1
- package/build/dist/api/modules/tickerspring/strategies.js +1 -1
- package/build/dist/api/modules/uniswap/auction-create.js +1 -1
- package/build/dist/api/modules/uniswap/auction.js +1 -1
- package/build/dist/api/modules/uniswap/batch.js +1 -1
- package/build/dist/api/modules/uniswap/common.js +1 -1
- package/build/dist/api/modules/uniswap/fees.js +1 -1
- package/build/dist/api/modules/uniswap/index.js +1 -1
- package/build/dist/api/modules/uniswap/local-guard.js +1 -1
- package/build/dist/api/modules/uniswap/oracle.js +1 -1
- package/build/dist/api/modules/uniswap/pool-math.js +1 -1
- package/build/dist/api/modules/uniswap/pools.js +1 -1
- package/build/dist/api/modules/uniswap/position.js +1 -1
- package/build/dist/api/modules/uniswap/protocol.js +1 -1
- package/build/dist/api/modules/uniswap/quote-guard.js +1 -1
- package/build/dist/api/modules/uniswap/stock-prices.d.ts +25 -0
- package/build/dist/api/modules/uniswap/stock-prices.js +1 -1
- package/build/dist/api/modules/uniswap/stocks.js +1 -1
- package/build/dist/api/modules/uniswap/token-jar.js +1 -1
- package/build/dist/api/modules/uniswap/trade-batch.js +1 -1
- package/build/dist/api/modules/uniswap/trade.js +1 -1
- package/build/dist/api/modules/uniswap/v2.js +1 -1
- package/build/dist/api/modules/uniswap/v3.js +1 -1
- package/build/dist/api/modules/uniswap/v4.js +1 -1
- package/build/dist/api/modules/uniswap/wrap.js +1 -1
- package/build/dist/api/modules/velora/claims.js +1 -1
- package/build/dist/api/modules/velora/delta-reads.js +1 -1
- package/build/dist/api/modules/velora/index.js +1 -1
- package/build/dist/api/modules/wormhole/index.js +1 -1
- package/build/dist/api/modules/wormhole/scan-text.d.ts +1 -1
- package/build/dist/api/positions.js +1 -1
- package/build/dist/api/pricenote.js +1 -1
- package/build/dist/api/prices.d.ts +5 -0
- package/build/dist/api/prices.js +1 -1
- package/build/dist/api/rpc.js +1 -1
- package/build/dist/api/send.js +1 -1
- package/build/dist/api/signing-registry.js +1 -1
- package/build/dist/api/signing.js +1 -1
- package/build/dist/api/simulate.js +1 -1
- package/build/dist/api/swap.d.ts +2 -0
- package/build/dist/api/swap.js +1 -1
- package/build/dist/api/tokens.d.ts +10 -1
- package/build/dist/api/tokens.js +1 -1
- package/build/dist/api/tool-policy.js +1 -1
- package/build/dist/api/universal-router.js +1 -1
- package/build/dist/api/usd-estimate.d.ts +2 -0
- package/build/dist/api/usd-estimate.js +1 -1
- package/build/dist/chunks/{DMDOSHV7.js → 266VIESP.js} +1 -1
- package/build/dist/chunks/{KNBNKG7P.js → 2BKZLF5A.js} +1 -1
- package/build/dist/chunks/{HFVXNKA5.js → 2BM2WX2G.js} +1 -1
- package/build/dist/chunks/{OY5W7ZSL.js → 2H2OZE6X.js} +1 -1
- package/build/dist/chunks/{E76Z2TT4.js → 2QQ5CGQI.js} +1 -1
- package/build/dist/chunks/{4PLLS6CT.js → 2VYA6WIN.js} +1 -1
- package/build/dist/chunks/{LCH6F5HT.js → 342OZP53.js} +1 -1
- package/build/dist/chunks/{FQTO7VJG.js → 3HF6WE4L.js} +1 -1
- package/build/dist/chunks/3M7RMROZ.js +1 -0
- package/build/dist/chunks/3RGED2KO.js +1 -0
- package/build/dist/chunks/{RUSXMQSJ.js → 3XIJCHT7.js} +1 -1
- package/build/dist/chunks/3XY44BP5.js +1 -0
- package/build/dist/chunks/3YNXQ3EZ.js +1 -0
- package/build/dist/chunks/45QP74CE.js +1 -0
- package/build/dist/chunks/{NYHKIXJR.js → 4GAU3JLN.js} +1 -1
- package/build/dist/chunks/{Y2QADJOB.js → 4P6DRKY3.js} +1 -1
- package/build/dist/chunks/{W3DGFMQE.js → 4RTXP2YP.js} +1 -1
- package/build/dist/chunks/{7FYM7FJA.js → 4SXRXNHG.js} +1 -1
- package/build/dist/chunks/{ZTKT3ZQK.js → 53VBLEYS.js} +1 -1
- package/build/dist/chunks/5677LZOV.js +1 -0
- package/build/dist/chunks/{ADIPEGNN.js → 5AO2QPWE.js} +1 -1
- package/build/dist/chunks/{GQITAJVF.js → 5BPFF7NX.js} +1 -1
- package/build/dist/chunks/{PXUML7HJ.js → 5DWQUEBA.js} +1 -1
- package/build/dist/chunks/{WAKZWSHB.js → 5KKAN7XQ.js} +1 -1
- package/build/dist/chunks/{VVAM3EAK.js → 5N6YJFFA.js} +1 -1
- package/build/dist/chunks/{QIB6OMQV.js → 5O67QQIY.js} +1 -1
- package/build/dist/chunks/5PNFV7HH.js +1 -0
- package/build/dist/chunks/5RAZFRO4.js +1 -0
- package/build/dist/chunks/{FAH7FKUT.js → 5UWVXEPD.js} +1 -1
- package/build/dist/chunks/5VKVAUFQ.js +1 -0
- package/build/dist/chunks/5Y457HYC.js +1 -0
- package/build/dist/chunks/64LAWFBE.js +1 -0
- package/build/dist/chunks/{JJGZ7W3V.js → 6AS3TGOX.js} +1 -1
- package/build/dist/chunks/6EWSLHXL.js +1 -0
- package/build/dist/chunks/{6F527FLN.js → 6HNQAYBM.js} +1 -1
- package/build/dist/chunks/{FUP53K6G.js → 6LDC5D2S.js} +1 -1
- package/build/dist/chunks/{YR44GQG4.js → 6QXTL65K.js} +1 -1
- package/build/dist/chunks/6RVAV6BB.js +1 -0
- package/build/dist/chunks/{WSILNJS2.js → 6STUQOFL.js} +1 -1
- package/build/dist/chunks/{OKXKDDBX.js → 6Y2546JA.js} +1 -1
- package/build/dist/chunks/{4Z3IGMU6.js → 7AYP4ATZ.js} +1 -1
- package/build/dist/chunks/{YGW4ODAP.js → 7EPU3XGY.js} +1 -1
- package/build/dist/chunks/7GL547YZ.js +1 -0
- package/build/dist/chunks/7JTXYMNP.js +1 -0
- package/build/dist/chunks/{A3BJSQ23.js → 7VU5VCTL.js} +1 -1
- package/build/dist/chunks/{Z7FGEWO2.js → 7WXAS54T.js} +1 -1
- package/build/dist/chunks/{3D7FXI6G.js → 7X5JVF3F.js} +1 -1
- package/build/dist/chunks/{DRLBTB4E.js → A72ADVYF.js} +1 -1
- package/build/dist/chunks/{ANIF3JMV.js → AG66NM3J.js} +1 -1
- package/build/dist/chunks/{AOX6DKYU.js → AL6UXNGH.js} +1 -1
- package/build/dist/chunks/AODUTN65.js +1 -0
- package/build/dist/chunks/{PQG3ULRT.js → AONO47JX.js} +1 -1
- package/build/dist/chunks/{JTPHZCO3.js → AQJLEG6B.js} +1 -1
- package/build/dist/chunks/AZBTNUXF.js +1 -0
- package/build/dist/chunks/{O56EZB5Y.js → B5BU645H.js} +1 -1
- package/build/dist/chunks/{LQSPWRHN.js → B75SS7H6.js} +1 -1
- package/build/dist/chunks/{GBIBRYOV.js → B7HVPHSS.js} +1 -1
- package/build/dist/chunks/{LT5P6PZW.js → B7WZJHIJ.js} +1 -1
- package/build/dist/chunks/{3A2IKFTV.js → BIFANUTV.js} +1 -1
- package/build/dist/chunks/BM4KHOFB.js +1 -0
- package/build/dist/chunks/{X3YEDVRN.js → BSV65PCA.js} +1 -1
- package/build/dist/chunks/{HDBDBKEA.js → BW755PNH.js} +1 -1
- package/build/dist/chunks/{VXCGMALF.js → BWE5PXRE.js} +1 -1
- package/build/dist/chunks/{7U62MMUQ.js → BY2OWKZB.js} +1 -1
- package/build/dist/chunks/{SRHVSNPX.js → C2H3BWN5.js} +1 -1
- package/build/dist/chunks/{F7MGYRPU.js → CCPG6PRL.js} +1 -1
- package/build/dist/chunks/{ZTX4WT62.js → CFPJDLTZ.js} +1 -1
- package/build/dist/chunks/{OI3N4EW4.js → CG7ABZXH.js} +1 -1
- package/build/dist/chunks/CJMVRV34.js +1 -0
- package/build/dist/chunks/CQPIR6ER.js +1 -0
- package/build/dist/chunks/{FP7DHVK2.js → CR7DPGI6.js} +1 -1
- package/build/dist/chunks/{W5FM2OVB.js → CVVNAFUE.js} +1 -1
- package/build/dist/chunks/{LEHBRAZX.js → CW37EGPL.js} +1 -1
- package/build/dist/chunks/{MI5HZDMH.js → D6JOXK7Q.js} +1 -1
- package/build/dist/chunks/{SGHSCK22.js → DJRS3TR5.js} +1 -1
- package/build/dist/chunks/{IZFED3R2.js → DLNDJZR4.js} +1 -1
- package/build/dist/chunks/{SYERFEJ4.js → DPSFR3ZS.js} +1 -1
- package/build/dist/chunks/{2T6O77QZ.js → DV2HVFTM.js} +1 -1
- package/build/dist/chunks/{NMJVQX5M.js → DWRRIFXS.js} +1 -1
- package/build/dist/chunks/{3ZH5SOC2.js → EFOC337C.js} +1 -1
- package/build/dist/chunks/EHQRAA3R.js +1 -0
- package/build/dist/chunks/{WX7OYCNS.js → EJIP7RBG.js} +1 -1
- package/build/dist/chunks/EPOIAXCV.js +3 -0
- package/build/dist/chunks/EWZFZUVF.js +1 -0
- package/build/dist/chunks/{OB7BFDOV.js → EYE3ZAJB.js} +1 -1
- package/build/dist/chunks/{MQ5F2VOK.js → EZUQMTLE.js} +1 -1
- package/build/dist/chunks/F36IA5RI.js +1 -0
- package/build/dist/chunks/{DD47RZFU.js → F74ARK4H.js} +1 -1
- package/build/dist/chunks/{Q4HSQL65.js → FGGDAAHW.js} +1 -1
- package/build/dist/chunks/FMEO7RX7.js +1 -0
- package/build/dist/chunks/{V6EVQWAL.js → FN6XY6ET.js} +1 -1
- package/build/dist/chunks/G4IX4CYN.js +1 -0
- package/build/dist/chunks/G53U6Y4L.js +1 -0
- package/build/dist/chunks/{XHFAF5PZ.js → GBIL2I2K.js} +1 -1
- package/build/dist/chunks/{RKM62HC5.js → GCFHKJIO.js} +1 -1
- package/build/dist/chunks/{K7HTDKAT.js → GMMTHTCP.js} +1 -1
- package/build/dist/chunks/{O5QTITN6.js → GRHBE4MQ.js} +1 -1
- package/build/dist/chunks/GTJ6LBGB.js +1 -0
- package/build/dist/chunks/GV6Z3MET.js +1 -0
- package/build/dist/chunks/{GK3D7OKG.js → GVCNTGLC.js} +1 -1
- package/build/dist/chunks/GX2RCAHG.js +1 -0
- package/build/dist/chunks/{O3XWE4FO.js → H5KU4DUU.js} +1 -1
- package/build/dist/chunks/H7ZJ7LAB.js +1 -0
- package/build/dist/chunks/{DCGNVMKG.js → HC3QFA5I.js} +1 -1
- package/build/dist/chunks/{RK3PPFRX.js → HEQBTHFS.js} +1 -1
- package/build/dist/chunks/{C76D54YG.js → HGSFRN57.js} +1 -1
- package/build/dist/chunks/HJI7KO6F.js +1 -0
- package/build/dist/chunks/{L6CVMDWQ.js → HNBYPHTA.js} +1 -1
- package/build/dist/chunks/{MSRCJ2BS.js → HPBTSJW7.js} +1 -1
- package/build/dist/chunks/HPO673QQ.js +1 -0
- package/build/dist/chunks/{ZFRTBBIW.js → HRGLFGFL.js} +1 -1
- package/build/dist/chunks/{DGDMRATN.js → ICHT3H3W.js} +1 -1
- package/build/dist/chunks/IJVBCEA2.js +1 -0
- package/build/dist/chunks/{2TX7HP6M.js → IKVRFAUP.js} +1 -1
- package/build/dist/chunks/IM7ZF7XZ.js +1 -0
- package/build/dist/chunks/{I4473OC6.js → IMD33NQS.js} +1 -1
- package/build/dist/chunks/IR7KDBFU.js +1 -0
- package/build/dist/chunks/{X24YTJST.js → IY7FWTAL.js} +1 -1
- package/build/dist/chunks/IYOWMW5B.js +1 -0
- package/build/dist/chunks/J2J73XYU.js +1 -0
- package/build/dist/chunks/JCS24YBB.js +1 -0
- package/build/dist/chunks/JQVTHPUO.js +1 -0
- package/build/dist/chunks/{USZCTSPI.js → JTWJT2O3.js} +1 -1
- package/build/dist/chunks/{2YYKQGJZ.js → K4CYAWNL.js} +1 -1
- package/build/dist/chunks/{7VH6JQ2H.js → K5C6QBOO.js} +1 -1
- package/build/dist/chunks/K5OXLIPK.js +1 -0
- package/build/dist/chunks/{4PB6MSGZ.js → K6GECT3F.js} +1 -1
- package/build/dist/chunks/{HU2JXDLH.js → KB2JWQZ4.js} +1 -1
- package/build/dist/chunks/{EFESPGA2.js → KCZUJ57H.js} +1 -1
- package/build/dist/chunks/{YW4W3LPQ.js → KHLM6NIZ.js} +1 -1
- package/build/dist/chunks/{OIQTZOBN.js → KKGHXNM4.js} +1 -1
- package/build/dist/chunks/{SUNTJ6IU.js → KYANIEPX.js} +1 -1
- package/build/dist/chunks/{MOZBDCVV.js → L3IAEXQR.js} +1 -1
- package/build/dist/chunks/{ZZ6FZGHF.js → L4UFGM7M.js} +1 -1
- package/build/dist/chunks/{DMB64UIN.js → L76P6WIH.js} +1 -1
- package/build/dist/chunks/{QMNUB2GM.js → LBT6WR4U.js} +1 -1
- package/build/dist/chunks/LD3A2KLN.js +1 -0
- package/build/dist/chunks/{WRUTW6CG.js → LFSNAQ7V.js} +1 -1
- package/build/dist/chunks/{5ZVIAGLX.js → LKRAUTYI.js} +1 -1
- package/build/dist/chunks/{23HNDJ76.js → M2SWILNG.js} +1 -1
- package/build/dist/chunks/{IT2JLILU.js → MFKDNAHB.js} +1 -1
- package/build/dist/chunks/MFQTBUSD.js +1 -0
- package/build/dist/chunks/{V4UJMUIB.js → MLN5KTG7.js} +1 -1
- package/build/dist/chunks/{S4JUFCT4.js → MSQNOK3I.js} +1 -1
- package/build/dist/chunks/{FA3GBXQP.js → MXI7LX2F.js} +1 -1
- package/build/dist/chunks/N6YNJGEF.js +1 -0
- package/build/dist/chunks/{DXAPKN7H.js → NLC36QHL.js} +1 -1
- package/build/dist/chunks/NUTTPUYJ.js +1 -0
- package/build/dist/chunks/{O4S6XAYV.js → O7L55XM3.js} +1 -1
- package/build/dist/chunks/{NAO7VWZF.js → OCIEVYPR.js} +1 -1
- package/build/dist/chunks/{4NBXBKOX.js → OD7CY6BY.js} +1 -1
- package/build/dist/chunks/{RUTSEGGD.js → OHZHQSCA.js} +1 -1
- package/build/dist/chunks/{T3QEN3S6.js → OIGTTRN5.js} +1 -1
- package/build/dist/chunks/{5OTQCE2E.js → P6JE2NRA.js} +1 -1
- package/build/dist/chunks/PD5NXIRT.js +1 -0
- package/build/dist/chunks/{TXGZ6NWN.js → PG7HZIZL.js} +1 -1
- package/build/dist/chunks/{WXZ4LAKO.js → PXVF2SHU.js} +1 -1
- package/build/dist/chunks/{UBVE2U6X.js → Q43WPRYU.js} +1 -1
- package/build/dist/chunks/QA6Z2CYP.js +2 -0
- package/build/dist/chunks/QAAKUIWE.js +1 -0
- package/build/dist/chunks/{PQOWIRKQ.js → QAVP3CWL.js} +1 -1
- package/build/dist/chunks/{YXXK6EPI.js → QBHY2QRC.js} +1 -1
- package/build/dist/chunks/{ELHRXA5U.js → QFK335LC.js} +1 -1
- package/build/dist/chunks/{3PHJUFU2.js → QFUSCK5C.js} +1 -1
- package/build/dist/chunks/{IPU656WB.js → QKH7ED6B.js} +1 -1
- package/build/dist/chunks/{AHUCYDBC.js → QKIQ7ZKD.js} +1 -1
- package/build/dist/chunks/{XW3VGWXK.js → QMWHQRYC.js} +1 -1
- package/build/dist/chunks/{N6PHSHBE.js → QP2B7AYX.js} +1 -1
- package/build/dist/chunks/{VHK5AYC2.js → QZ6V6J6W.js} +1 -1
- package/build/dist/chunks/{MDLJFCT4.js → R5Z4HPCA.js} +1 -1
- package/build/dist/chunks/RKJFSDGV.js +1 -0
- package/build/dist/chunks/RKS3M7L5.js +1 -0
- package/build/dist/chunks/{GDOHHXNH.js → RLX6YTNT.js} +1 -1
- package/build/dist/chunks/RYEQIZ2H.js +1 -0
- package/build/dist/chunks/{USEF3QKG.js → S432S6NA.js} +1 -1
- package/build/dist/chunks/S47M3IPR.js +1 -0
- package/build/dist/chunks/S65KXMZ7.js +3 -0
- package/build/dist/chunks/{2OVJ2BTJ.js → SEXKWYUM.js} +1 -1
- package/build/dist/chunks/{2ILYVUFA.js → SRYX65GZ.js} +1 -1
- package/build/dist/chunks/{GNOHIL4Q.js → TMENUIBC.js} +1 -1
- package/build/dist/chunks/{BSX4LFYI.js → TNHU5UBQ.js} +1 -1
- package/build/dist/chunks/{PDPTJMTJ.js → TT2ST3Q3.js} +1 -1
- package/build/dist/chunks/TTBB6EFN.js +1 -0
- package/build/dist/chunks/{Z5YI6KLN.js → TWVDWNTG.js} +1 -1
- package/build/dist/chunks/TZG7HTVM.js +1 -0
- package/build/dist/chunks/{OVM4QIET.js → U4MSIH4G.js} +1 -1
- package/build/dist/chunks/UEOS6SHR.js +1 -0
- package/build/dist/chunks/{EIE2U4OX.js → UGFRBJDQ.js} +1 -1
- package/build/dist/chunks/{HUKDISRE.js → UIVOYAO2.js} +1 -1
- package/build/dist/chunks/{XRDLMTBJ.js → UMY6SP7C.js} +1 -1
- package/build/dist/chunks/UNBRUWSV.js +1 -0
- package/build/dist/chunks/{LGLWEGPY.js → UPX3OWKA.js} +1 -1
- package/build/dist/chunks/{MHONMLF6.js → URTQNYWU.js} +1 -1
- package/build/dist/chunks/{4RCYYN6O.js → V7HTGO23.js} +1 -1
- package/build/dist/chunks/{HZSYMGJ2.js → VS7ZA4OF.js} +1 -1
- package/build/dist/chunks/{BJ2U2VXJ.js → VTWAVH74.js} +1 -1
- package/build/dist/chunks/{5GQJVKVY.js → W5GWK72I.js} +1 -1
- package/build/dist/chunks/{65OITTDL.js → W73SLWBT.js} +1 -1
- package/build/dist/chunks/WRA3ZC6W.js +1 -0
- package/build/dist/chunks/{PRBIC3UK.js → WUONMIA2.js} +1 -1
- package/build/dist/chunks/{XL3W7DAQ.js → X3BB6WME.js} +1 -1
- package/build/dist/chunks/{K3TZYPSV.js → X53QVHBC.js} +1 -1
- package/build/dist/chunks/{LVFI74ST.js → XNJ6NDQQ.js} +1 -1
- package/build/dist/chunks/{GBPB7JIB.js → XSQJOOEY.js} +1 -1
- package/build/dist/chunks/XUDQYSPU.js +1 -0
- package/build/dist/chunks/{VKNKVUAA.js → XWZ5SL5Q.js} +1 -1
- package/build/dist/chunks/{365B4YEV.js → XXLQDQEX.js} +1 -1
- package/build/dist/chunks/{BDLV42SD.js → Y5T36EEU.js} +1 -1
- package/build/dist/chunks/{R73R4KN3.js → YBLJ2MCR.js} +1 -1
- package/build/dist/chunks/{WNWRF4HE.js → YZHJ4BAP.js} +1 -1
- package/build/dist/chunks/ZSGW2ZSO.js +1 -0
- package/build/dist/chunks/{HRAHGYNK.js → ZTNBX4VH.js} +1 -1
- package/package.json +1 -1
- package/build/dist/chunks/2QP6WGKZ.js +0 -1
- package/build/dist/chunks/3AOTYJPX.js +0 -1
- package/build/dist/chunks/4E7FJQLL.js +0 -1
- package/build/dist/chunks/4J245N3F.js +0 -1
- package/build/dist/chunks/4M6XBG6X.js +0 -1
- package/build/dist/chunks/BA66J5YQ.js +0 -1
- package/build/dist/chunks/BIY2F6MO.js +0 -1
- package/build/dist/chunks/CZ66MYKR.js +0 -1
- package/build/dist/chunks/DFM4T6ZE.js +0 -1
- package/build/dist/chunks/DGCJZ3HO.js +0 -1
- package/build/dist/chunks/DHX3Q5RV.js +0 -2
- package/build/dist/chunks/DWQJ7NSX.js +0 -1
- package/build/dist/chunks/EFUACKDK.js +0 -1
- package/build/dist/chunks/EQEMI54U.js +0 -1
- package/build/dist/chunks/GYPMUYB5.js +0 -1
- package/build/dist/chunks/JFC2QCMW.js +0 -1
- package/build/dist/chunks/JW7GLNLB.js +0 -3
- package/build/dist/chunks/MEB727X5.js +0 -1
- package/build/dist/chunks/MIKQWF6Q.js +0 -3
- package/build/dist/chunks/MQK6OP7S.js +0 -1
- package/build/dist/chunks/OSMOBKRQ.js +0 -1
- package/build/dist/chunks/P6MPKIU2.js +0 -1
- package/build/dist/chunks/P7C3TYI4.js +0 -1
- package/build/dist/chunks/RN3WUJIO.js +0 -1
- package/build/dist/chunks/TI727O2H.js +0 -1
- package/build/dist/chunks/UHIJMDD2.js +0 -1
- package/build/dist/chunks/VQJXQLFW.js +0 -1
- package/build/dist/chunks/W32UECOL.js +0 -1
- package/build/dist/chunks/WWNAGOCD.js +0 -1
- package/build/dist/chunks/ZNX3YVF2.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"../../../chunks/PG7HZIZL.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{e as NONZERO_ADDRESS_ERROR,f as address,c as bytes32Schema,l as deployment,j as hex32,h as integer,b as integerSchema,d as lockerAbi,a as pins,m as poolState,k as readUnits,i as supported,g as units};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"../../../chunks/
|
|
1
|
+
import{a as d}from"../../../chunks/X3BB6WME.js";import{c as l}from"../../../chunks/SRYX65GZ.js";import"../../../chunks/LBT6WR4U.js";import"../../../chunks/5UWVXEPD.js";import"../../../chunks/DWRRIFXS.js";import"../../../chunks/SEXKWYUM.js";import"../../../chunks/5BPFF7NX.js";import"../../../chunks/SK2VBNAU.js";import"../../../chunks/OUROA7XR.js";import{h as s}from"../../../chunks/WUONMIA2.js";import"../../../chunks/U4MSIH4G.js";import{a as f,b as y}from"../../../chunks/3PU2SD3U.js";import{a as o}from"../../../chunks/YRSAZTTC.js";import"../../../chunks/H3E7UD2X.js";import"../../../chunks/2GXHYI23.js";import"../../../chunks/HPBTSJW7.js";import"../../../chunks/MSQNOK3I.js";import"../../../chunks/5KKAN7XQ.js";import{ta as c}from"../../../chunks/V5YSJKRH.js";import"../../../chunks/IR7KDBFU.js";import"../../../chunks/KHOUBQJK.js";import"../../../chunks/6STUQOFL.js";import"../../../chunks/GV6Z3MET.js";import"../../../chunks/4P6DRKY3.js";import"../../../chunks/5PNFV7HH.js";import"../../../chunks/HC3QFA5I.js";import"../../../chunks/QFUSCK5C.js";import"../../../chunks/VS7ZA4OF.js";import"../../../chunks/B75SS7H6.js";import"../../../chunks/TTBB6EFN.js";import"../../../chunks/CQ5WRWV4.js";import"../../../chunks/IV4K7FMD.js";import"../../../chunks/GVCNTGLC.js";import"../../../chunks/KKGHXNM4.js";import"../../../chunks/3XY44BP5.js";import"../../../chunks/LD3A2KLN.js";import"../../../chunks/3RGED2KO.js";import"../../../chunks/UMY6SP7C.js";import"../../../chunks/CJMVRV34.js";import"../../../chunks/7WXAS54T.js";import"../../../chunks/LIUXNOLP.js";import"../../../chunks/B7WZJHIJ.js";import"../../../chunks/TNHU5UBQ.js";import"../../../chunks/HGSFRN57.js";import"../../../chunks/QFK335LC.js";import"../../../chunks/ICHT3H3W.js";import"../../../chunks/7AYP4ATZ.js";import"../../../chunks/PG7HZIZL.js";import"../../../chunks/S65KXMZ7.js";import"../../../chunks/CW37EGPL.js";import"../../../chunks/K6D6SDIG.js";import"../../../chunks/QA6Z2CYP.js";import"../../../chunks/CFPJDLTZ.js";import"../../../chunks/5N6YJFFA.js";import"../../../chunks/P4UQGWCP.js";import{b as m}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/IOYRL6AY.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import{b as i}from"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5HCXZWUH.js";import"../../../chunks/EZUQMTLE.js";import"../../../chunks/5RXALTDT.js";import{b as a,k as p}from"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";import{erc20Abi as E}from"viem";function b(e){return{nowSec:()=>Math.floor(Date.now()/1e3),usdgBalance:async t=>e.clientFor(a).readContract({address:p,abi:E,functionName:"balanceOf",args:[t]}),ethBalance:async t=>e.clientFor(a).getBalance({address:t})}}var C='Optional USDG amount in base units (6 decimals): "1000000" = 1 USDG; defaults to the wallet USDG balance.';function x(e,t={layerbank:s(e),pendleTerms:r=>l(e,r),pendleQuoteCosts:(r,n)=>d(e,r,n)},u={}){return m("earn",[{tools:[{name:"earn_options",inputSchema:{type:"object",properties:{amount:i(C)},additionalProperties:!1},execute:async(r,n)=>o(t,{...b(e),...u},n,typeof r.amount=="string"?{amount:r.amount}:{})}]}])}export{x as createModule,c as earnCopy,o as earnOptions,y as lpWarning,f as lpWarningParts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{z as act,m as address,l as agentId,o as bytes32,f as bytes32Schema,n as chainGuard,h as coordinates,r as dataProfile,a as disclosure,e as hashSchema,g as hexSchema,d as idSchema,k as isZero,b as marker,c as markerValue,v as matchingReceipt,x as metadataKeyOf,y as metadataValueOf,s as previewAction,q as referenceURI,i as reputationRegistry,t as requireAuthority,u as requireOwnerOrOperator,p as shortText,w as singleEvent,j as validationRegistry};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/B7HVPHSS.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as createDomainPart,a as publicAddress};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c,c as d,d as e,e as f}from"../../../chunks/
|
|
1
|
+
import{a as b,b as c,c as d,d as e,e as f}from"../../../chunks/H5KU4DUU.js";import"../../../chunks/KYANIEPX.js";import"../../../chunks/5AO2QPWE.js";import"../../../chunks/EYE3ZAJB.js";import"../../../chunks/AG66NM3J.js";import"../../../chunks/2QQ5CGQI.js";import"../../../chunks/B7HVPHSS.js";import"../../../chunks/BIFANUTV.js";import{a}from"../../../chunks/X5V2Z2NM.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/2BM2WX2G.js";import"../../../chunks/TRCP7X5P.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as CLI_ALIASES,f as createModule,e as createModulePart,a as identityAbi,c as readAgentIdentity,d as selfRegistration};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/KYANIEPX.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as WALLET_MAX_DELAY,c as createManagementPart,b as walletRequest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/5AO2QPWE.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as createReputationPart,a as decimalText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/EYE3ZAJB.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as SERVICE_KINDS,b as validateService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i}from"../../../chunks/AG66NM3J.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/2BM2WX2G.js";import"../../../chunks/TRCP7X5P.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{c as THESIS_INPUT_SCHEMA,b as THESIS_RECORD_PATH,a as THESIS_TOOL,f as assertThesisPlanSteps,e as assertThesisStampTransactions,i as createThesisPart,g as prepareThesisStamp,h as recordMinedThesis,d as thesisFacts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/2QQ5CGQI.js";import"../../../chunks/BIFANUTV.js";import"../../../chunks/X5V2Z2NM.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as createValidationPart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../../../chunks/XNJ6NDQQ.js";import"../../../chunks/QKIQ7ZKD.js";import"../../../chunks/5XAXJEWM.js";import"../../../chunks/6AS3TGOX.js";import"../../../chunks/CZL6T2ZQ.js";import"../../../chunks/ZQ6AF3VX.js";import"../../../chunks/GMMTHTCP.js";import"../../../chunks/UEOS6SHR.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{e as buildDecline,d as buildDeliver,c as buildDraw,b as buildRegister,f as deliveryProof,a as factorActionFields,g as prepareFactorAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e}from"../../../chunks/GMMTHTCP.js";import"../../../chunks/UEOS6SHR.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as getJob,c as getJobs,e as getOpenJob,d as getOpenJobs,a as readState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"../../../chunks/QKIQ7ZKD.js";import"../../../chunks/6AS3TGOX.js";import"../../../chunks/CZL6T2ZQ.js";import"../../../chunks/ZQ6AF3VX.js";import"../../../chunks/GMMTHTCP.js";import"../../../chunks/UEOS6SHR.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{c as assertFactorTransaction,a as assertFields,d as checkEnvironment,f as checkJob,g as factorRefusal,e as readAgent,h as simulateFactorTransaction,b as uint256};
|
|
@@ -19,15 +19,15 @@ export declare const FACTOR_COPY: {
|
|
|
19
19
|
readonly apiLabel: "Factor API (can lag the chain)";
|
|
20
20
|
};
|
|
21
21
|
export declare const FACTOR_TOOL_DESCRIPTIONS: {
|
|
22
|
-
readonly factor_sign_up: "Register this wallet as a Factor agent on Robinhood Chain, then sign its public profile with a name and description. Gas for registration; identity
|
|
23
|
-
readonly factor_create_pay_link: "Sign a pay link for a fixed-price ETH job on Robinhood Chain. Price is a wei string; expiry is 1-30 days. No payment now; a customer pays later. Identity
|
|
24
|
-
readonly factor_apply_to_job: "Sign an application for a fixed-price Factor open job. Identity
|
|
25
|
-
readonly factor_draw: "Draw an early or pool advance to this wallet on Robinhood Chain, with amount in integer wei. Identity
|
|
26
|
-
readonly factor_deliver: "Deliver a work fingerprint on Robinhood Chain. Show defaults to false; public posting follows successful delivery only when requested. Identity
|
|
27
|
-
readonly factor_decline: "Decline a Factor job on Robinhood Chain and return its price to the customer. Identity
|
|
28
|
-
readonly factor_job: "Read a Factor job and its public details from the Factor API (can lag the chain). API data does not authorize an action. No identity
|
|
29
|
-
readonly factor_can_draw: "Read the desk's early and pool advance amounts in wei on Robinhood Chain; these amounts share the same half-price cap. No identity
|
|
30
|
-
readonly factor_my_jobs: "Read at most 50 Factor jobs for this wallet as agent or customer from the Factor API (can lag the chain). No identity
|
|
31
|
-
readonly factor_open_jobs: "Read at most 25 Factor open-job listings from the Factor API (can lag the chain). Filter by this wallet or verified owners when requested. No identity
|
|
32
|
-
readonly factor_open_job: "Read a Factor open-job listing and public application details from the Factor API (can lag the chain). No identity
|
|
22
|
+
readonly factor_sign_up: "Register this wallet as a Factor agent on Robinhood Chain, then sign its public profile with a name and description. Gas for registration; identity and human confirmation required. Factor is an official Oak partner. Factor's own team runs its product and contracts; Oak didn't build them and doesn't run them. Factor's desk contract has no owner, and its rules are fixed in its code. Factor's website and API are run by Factor and can lag the chain. Names are first come, and a fixed-price application can't be withdrawn.";
|
|
23
|
+
readonly factor_create_pay_link: "Sign a pay link for a fixed-price ETH job on Robinhood Chain. Price is a wei string; expiry is 1-30 days. No payment now; a customer pays later. Identity and human confirmation required. A signed pay link can't be revoked; anyone holding it can pay it until it expires. At most half of a job's price can be advanced before delivery. An advance costs a 1% fee taken from the advance, paid to Factor's burn pot contract. A settled job pays Factor's 2% job fee from the agent's payout.";
|
|
24
|
+
readonly factor_apply_to_job: "Sign an application for a fixed-price Factor open job. Identity and human confirmation required. This Factor job takes offers, which Oak can't send yet. Nothing was signed. Names are first come, and a fixed-price application can't be withdrawn.";
|
|
25
|
+
readonly factor_draw: "Draw an early or pool advance to this wallet on Robinhood Chain, with amount in integer wei. Identity and human confirmation required. At most half of a job's price can be advanced before delivery. An advance costs a 1% fee taken from the advance, paid to Factor's burn pot contract. A settled job pays Factor's 2% job fee from the agent's payout. If a job you drew on isn't delivered within 12 hours after its due time, anyone can refund it, and this wallet can never draw from Factor's pool again. Oak doesn't send compute advances: that ETH goes to Factor's gateway as off-chain credit Oak can't check. Nothing was sent.";
|
|
26
|
+
readonly factor_deliver: "Deliver a work fingerprint on Robinhood Chain. Show defaults to false; public posting follows successful delivery only when requested. Identity and human confirmation required. Your work text stays on this computer; only its fingerprint (a hash) goes on chain. With show true: Your work text will be public on Factor's job page and can't be edited.";
|
|
27
|
+
readonly factor_decline: "Decline a Factor job on Robinhood Chain and return its price to the customer. Identity and human confirmation required. You can decline a job only before drawing on it. A rejected job settles at half, with no appeal.";
|
|
28
|
+
readonly factor_job: "Read a Factor job and its public details from the Factor API (can lag the chain). API data does not authorize an action. No identity required.";
|
|
29
|
+
readonly factor_can_draw: "Read the desk's early and pool advance amounts in wei on Robinhood Chain; these amounts share the same half-price cap. No identity required. Desk figures only; jobs and limits held through a Factor credit line are not shown.";
|
|
30
|
+
readonly factor_my_jobs: "Read at most 50 Factor jobs for this wallet as agent or customer from the Factor API (can lag the chain). No identity required. Desk figures only; jobs and limits held through a Factor credit line are not shown.";
|
|
31
|
+
readonly factor_open_jobs: "Read at most 25 Factor open-job listings from the Factor API (can lag the chain). Filter by this wallet or verified owners when requested. No identity required.";
|
|
32
|
+
readonly factor_open_job: "Read a Factor open-job listing and public application details from the Factor API (can lag the chain). No identity required.";
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/UEOS6SHR.js";import"../../../chunks/63YRSLDK.js";export{a as FACTOR_COPY,b as FACTOR_TOOL_DESCRIPTIONS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/KCZUJ57H.js";import"../../../chunks/XNJ6NDQQ.js";import"../../../chunks/QKIQ7ZKD.js";import"../../../chunks/5XAXJEWM.js";import"../../../chunks/6AS3TGOX.js";import"../../../chunks/CZL6T2ZQ.js";import"../../../chunks/ZQ6AF3VX.js";import"../../../chunks/GMMTHTCP.js";import"../../../chunks/UEOS6SHR.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as rebuildFactorAction};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as be}from"../../../chunks/
|
|
1
|
+
import{a as be}from"../../../chunks/KCZUJ57H.js";import{b as we,c as ge,d as me,e as ye,f as R,g as D}from"../../../chunks/XNJ6NDQQ.js";import{a as E,b,d as P,e as C,f as Y}from"../../../chunks/QKIQ7ZKD.js";import{b as v,c as K,d as O,e as I,f as Q,g as X,h as Z,i as ee,j as te}from"../../../chunks/5XAXJEWM.js";import{d as V}from"../../../chunks/6AS3TGOX.js";import{c as S}from"../../../chunks/CZL6T2ZQ.js";import"../../../chunks/ZQ6AF3VX.js";import{b as q,c as z,d as G,e as $}from"../../../chunks/GMMTHTCP.js";import{a as c,b as U}from"../../../chunks/UEOS6SHR.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import{a as W}from"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import{b as m}from"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import{a as r}from"../../../chunks/XSD5NL7J.js";import{a as B}from"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";import{randomBytes as _e}from"node:crypto";import{formatEther as L,getAddress as ae,isAddressEqual as oe,recoverMessageAddress as ke}from"viem";var k='Factor job ID, a decimal string. Example: "1".',je="https://factoragents.fun/api/v1",ce={type:"string",pattern:"^0x[0-9a-f]{64}$",description:"Open job listing ID: 0x followed by 64 lowercase hex digits, from factor_open_jobs."},Fe={continuation:{type:"object",description:"The continuation object returned by the previous call of this tool. Pass it back unchanged with the signature; leave it out on the first call."},signature:{type:"string",pattern:"^0x[0-9a-fA-F]{130}$",description:"This wallet's signature of the message returned by the previous call (0x plus 130 hex digits). Needs the continuation. Leave out on the first call."}},ne={factor_sign_up:"profile",factor_create_pay_link:"pay-link",factor_apply_to_job:"application"},ie={factor_sign_up:{name:{type:"string",description:"Public agent name for the Factor profile. Trimmed and lowercased; names are first come."},does:{type:"string",description:"One-line public description of what this agent does (3 to 80 characters)."}},factor_create_pay_link:{price:m("Job price in wei, from 0.001 to 1000 ETH."),title:{type:"string",description:"Short public title of the job (3 to 80 characters, one line)."},brief:{type:"string",maxLength:2e3,description:"Public description of the work the customer gets (up to 2000 characters)."},due_in_hours:{type:"integer",minimum:1,maximum:720,default:24,description:"Hours allowed to deliver after payment, 1 to 720. Defaults to 24."},allow_early:{type:"boolean",default:!1,description:"True lets this agent draw an early advance before delivery. Defaults to false."},expires_in_days:{type:"integer",minimum:1,maximum:30,default:30,description:"Days until the signed pay link expires, 1 to 30. Defaults to 30."}},factor_apply_to_job:{open:ce,pitch:{type:"string",description:"Optional one-line pitch shown with the application (3 to 280 characters). Leave out for none."}}};function j(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function pe(e,o){if(e===void 0)return!1;if(typeof e!="boolean")throw new r(`${o} must be a boolean.`);return e}function re(e,o,n,t){if(e===void 0)return o;if(typeof e!="number"||!Number.isSafeInteger(e)||e<1||e>n)throw new r(`${t} must be a whole number from 1 to ${n}.`);return e}function ue(e){if(typeof e!="string"||!/^0x[0-9a-f]{64}$/.test(e))throw new r("Provide an open job ID of 64 lowercase hexadecimal digits after 0x.");return e}function Ae(e,o){if(e==="factor_sign_up")return O("name",o.name),O("does",o.does),{name:o.name.trim().toLowerCase(),does:v(o.does,3,80)};if(e==="factor_apply_to_job"){if(o.pitch!==void 0&&typeof o.pitch!="string")throw new r("Provide pitch as text.");return O("pitch",o.pitch),{open:ue(o.open),pitch:o.pitch===void 0||o.pitch.trim()===""?"":v(o.pitch,3,280)}}if(typeof o.price!="string")throw new r("Provide price as a decimal wei string.");let n=b(o.price,"price");if(n<S.MIN_JOB||n>1000n*10n**18n)throw new r("Factor job price must be from 1000000000000000 to 1000000000000000000000 wei.");return{price:n.toString(),title:v(o.title,3,80),brief:K(o.brief),due_in_hours:re(o.due_in_hours,24,720,"due_in_hours"),allow_early:pe(o.allow_early,"allow_early"),expires_in_days:re(o.expires_in_days,30,30,"expires_in_days")}}function fe(e,o){if(e.continuation===void 0){if(e.signature!==void 0)throw new r("A Factor signature requires its continuation. Start the tool again.");return}let n=e.continuation;if(!j(n)||n.wallet!==o||n.chainId!==4663||typeof n.stage!="string"||!j(n.args))throw new r("Invalid Factor continuation wallet, chain or stage. Start the tool again.");return E(n,["stage","wallet","chainId","args","at","createdAt","expiresAt","exp","id","message"]),n}function de(e,o){let n=e.args;if(!j(n)||Object.keys(n).length!==Object.keys(o).length||Object.entries(o).some(([t,i])=>n[t]!==i))throw new r("Factor continuation arguments changed. Start the tool again.")}async function x(e,o,n){let t=await e.http(`${je}${o}`,{method:"POST",redirect:"error",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!t.ok)throw new W(t);return t.json()}function M(e){return typeof e=="string"?B(e):Array.isArray(e)?e.map(M):j(e)?Object.fromEntries(Object.entries(e).map(([o,n])=>[o,M(n)])):e}function se(e,o){if(!Array.isArray(e.data.items))throw new r("Factor API returned a list without an items array.");return{...e,data:{...e.data,items:e.data.items.slice(0,o)}}}async function le(e,o,n,t){let i=Ae(o,n),s=fe(n,t);if(s&&de(s,i),o==="factor_sign_up"&&(!s||s.stage==="register")){if(n.signature!==void 0)throw new r("The Factor registration stage takes no signature.");if(s&&!(await C(e.clientFor(4663),t)).registered)throw new r("This wallet is not registered yet. Wait for registration, then retry.");let l=await D(e,o,i,t);if(l.length)return await e.preview(l,t),{steps:l.map(y=>({kind:"tx",tx:y})),continuation:{stage:"register",wallet:t,chainId:4663,args:i},summary:`${c.partner}
|
|
2
2
|
${c.trust}
|
|
3
3
|
Register this wallet, then sign its Factor profile.`}}if(s&&s.stage!=="register"&&s.stage!==ne[o])throw new r("Unknown Factor signature continuation. Start the tool again.");let d=await P(e,t,!0);if(d==="unreachable")throw new r(c.stateUnavailable);let p=Math.floor(Date.now()/1e3);if(I(d.asOf,p),!(await C(e.clientFor(4663),t)).registered)throw new r("This wallet has not registered as a Factor agent. Run factor_sign_up first.");if(o==="factor_apply_to_job"){let l=await $(e.http,i.open),y=l.data.open;if(!j(y))throw new r("Factor API returned no open job listing.");if(y.offers!==!1)throw new r(c.offers);if(typeof y.customer!="string")throw new r("Factor API returned no open job customer.");if(oe(ae(y.customer),t))throw new r("A customer cannot apply for its own Factor job.");if(y.applying!==!0)throw new r("This Factor job is not taking applications now.")}let u=s!==void 0&&s.stage!=="register",a=u?s.at:d.asOf,f=u?s.createdAt:p;if(typeof a!="number"||typeof f!="number"||!Number.isSafeInteger(f)||f>p)throw new r("Invalid Factor message time. Start the tool again.");I(a,f);let h,w,F,g;if(o==="factor_sign_up")h=X({address:t,name:i.name,does:i.does,at:a});else if(o==="factor_apply_to_job")h=ee({open:i.open,address:t,pitch:i.pitch,at:a});else{if(w=Q(a,f,i.expires_in_days),F=u?s.id:_e(8).toString("hex"),u&&s.exp!==w)throw new r("Factor link expiry changed. Start the tool again.");g={v:1,agent:t.toLowerCase(),price:i.price,title:i.title,brief:i.brief,due:i.due_in_hours,early:i.allow_early,exp:w,id:F},h=Z({address:t,priceWei:g.price,title:g.title,brief:g.brief,dueHours:g.due,allowEarly:g.early,exp:w,id:F})}let A=w??Math.min(a+600,f+600);if(A<=p||A>p+2592e3||w===void 0&&Math.abs(d.asOf-a)>600)throw new r("The Factor message expired. Start the tool again.");let he={stage:ne[o],wallet:t,chainId:4663,args:i,at:a,createdAt:f,expiresAt:A,message:h,...w===void 0?{}:{exp:w,id:F}};if(u&&(s.message!==h||s.expiresAt!==A))throw new r("Factor message continuation changed. Start the tool again.");let _=o==="factor_create_pay_link"?`${c.payLink}
|
|
4
4
|
${c.half}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as c,c as d,d as e,e as f,f as g}from"../../../chunks/
|
|
1
|
+
import{a as b,b as c,c as d,d as e,e as f,f as g}from"../../../chunks/6AS3TGOX.js";import"../../../chunks/CZL6T2ZQ.js";import"../../../chunks/ZQ6AF3VX.js";import{a}from"../../../chunks/GMMTHTCP.js";import"../../../chunks/UEOS6SHR.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as assertDesk,e as canDrawOn,f as lineKeyOf,c as readDesk,d as readJob,a as readState,g as walletHasCode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/AL6UXNGH.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as createFoboClient};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as E}from"../../../chunks/
|
|
1
|
+
import{a as f}from"../../../chunks/AL6UXNGH.js";import{b as E}from"../../../chunks/VTWAVH74.js";import{a as U,c as n,d as p,f as d,g as w,h as b,i as B,j as x,q as m}from"../../../chunks/DLNDJZR4.js";import"../../../chunks/UNBRUWSV.js";import"../../../chunks/KNROSKUG.js";import{b as v,c as P,d as M,e as L}from"../../../chunks/R5Z4HPCA.js";import{a as q}from"../../../chunks/4ZD5D2UP.js";import"../../../chunks/TNHU5UBQ.js";import{b as u}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import{j as g}from"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EZUQMTLE.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import{a as c}from"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";import{formatUnits as D}from"viem";var K="FOBO tools run in the local Oak add-on. Update Oak and use prepare, then execute after a yes in chat.",j={fobo_token:"get_token",fobo_portfolio:"get_portfolio",fobo_leaderboard:"get_leaderboard",fobo_claims:"get_claims",fobo_limit_orders:"list_limit_orders",fobo_quote:"quote_trade",fobo_fee_schedule:"get_fee_schedule",fobo_limit_pay_tokens:"get_limit_pay_tokens",fobo_transaction:"get_transaction"},S={fobo_browse:"Browse FOBO launches; query searches tokens and traders.",fobo_token:"Read a FOBO token, current tax, floor, pair, vesting and risks by token address.",fobo_portfolio:"Read the local wallet\u2019s FOBO positions and profit/loss.",fobo_leaderboard:"Read FOBO trader rankings and the local wallet\u2019s rank.",fobo_claims:"Read the local wallet\u2019s creator fees, referral earnings and unlocked dev buys.",fobo_limit_orders:"Read the local wallet\u2019s limit orders, or a token\u2019s order book.",fobo_quote:"Quote a FOBO buy or sell. amount is a decimal integer of input base units; no signature.",fobo_fee_schedule:"Read FOBO pool taxes, fee splits, live launch fee and launch availability.",fobo_limit_pay_tokens:"Read the currencies accepted for FOBO limit-order escrow.",fobo_transaction:"Read a FOBO transaction status by its public transaction hash.",fobo_buy:"Prepare a FOBO token buy with exact input base units. Show the summary and wait for yes before oak_execute.",fobo_sell:"Prepare a FOBO token sell with exact input base units. Show the summary and wait for yes before oak_execute.",fobo_launch:"Prepare a FOBO coin launch. Optional initial buy needs a pair-token spending cap and can be locked. Public https image URL or none. Sign-in happens only after chat yes.",fobo_limit_order:"Prepare a FOBO buy/sell limit order. amount and maxFeePerFill are base units; limitMarketCapUsd is whole USD. Show summary and ask for yes.",fobo_cancel_limit_order:"Prepare cancellation of a local-wallet FOBO order; its remaining escrow returns to the wallet. Ask for yes.",fobo_claim:"Prepare a creator, referral or vesting claim. Referral currency is pair; only referral may specify to. Show summary and ask for yes."};function J(l,_){return l.network!==void 0&&l.network!=="mainnet"?u("fobo",[]):u("fobo",[{tools:Object.keys(n).map(e=>({name:e,description:S[e],inputSchema:{...n[e],description:S[e]},execute:async(I,O)=>{if(!_)throw new c(K);let o=w(e,g(n[e],I)),r=_.client?.()??f({fetch:l.http});try{let y=p[e];if(y)return await m(r,y,o,O);let s=j[e],t={...o};if(e==="fobo_browse"&&(o.query!==void 0?(s="search",t={query:o.query}):(s="list_launches",t=o.limit===void 0?{}:{limit:o.limit})),(["fobo_portfolio","fobo_leaderboard","fobo_claims"].includes(e)||e==="fobo_limit_orders"&&!o.token)&&(t.account=O),e==="fobo_quote"){let a=String(o.payWith??"pair");a==="pair"&&(a=String(d(await r.call("get_token",{token:o.token})).pair).replace(/^\$/,"").toLowerCase());let F=o.side==="sell"?18:b(a).decimals;t.slippageBps??=50,t.payWith??="pair",t.amount=D(BigInt(String(o.amount)),F);let i=d(await r.call(s,t)),C=o.side==="sell"?b(a).decimals:18,h=B(i.amountIn,F,"quote input");if(h!==o.amount||i.side!==o.side||String(i.token).toLowerCase()!==String(o.token).toLowerCase())throw new c("FOBO quote does not match the requested trade.");let{amountIn:R,expectedOut:A,minOut:N,...T}=i,k=x(i,C,Number(o.slippageBps??50),a);return{...T,chainId:4663,amountIn:h,amountOut:k.amountOut,minAmountOut:k.minimum}}return await r.call(s,t)}finally{await r.close()}}}))}])}export{p as FOBO_ACTION_KINDS,U as FOBO_ACTION_LIFETIME,K as FOBO_LOCAL_REFUSAL,q as FOBO_PINS,n as FOBO_SCHEMAS,f as createFoboClient,J as createModule,v as exactApprove,P as exactPermit,m as prepareFoboIntent,E as runFoboIntent,M as verifyFoboTransaction,L as verifySignInMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"../../../chunks/DLNDJZR4.js";import"../../../chunks/UNBRUWSV.js";import"../../../chunks/R5Z4HPCA.js";import"../../../chunks/4ZD5D2UP.js";import"../../../chunks/TNHU5UBQ.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EZUQMTLE.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{d as FOBO_ACTION_KINDS,a as FOBO_ACTION_LIFETIME,b as FOBO_ADDRESSES,e as FOBO_PREPARE_TOOLS,c as FOBO_SCHEMAS,o as checkFoboPrepared,n as foboApproval,h as foboAsset,l as foboExpectation,p as foboFeeDisclosure,j as foboQuoteBounds,f as foboRecord,k as foboRequest,i as foboUnits,q as prepareFoboIntent,m as preparedAnswer,g as validateFoboArgs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/VTWAVH74.js";import"../../../chunks/DLNDJZR4.js";import"../../../chunks/UNBRUWSV.js";import"../../../chunks/KNROSKUG.js";import"../../../chunks/R5Z4HPCA.js";import"../../../chunks/4ZD5D2UP.js";import"../../../chunks/TNHU5UBQ.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EZUQMTLE.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as foboExactPermit,b as runFoboIntent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e}from"../../../chunks/R5Z4HPCA.js";import"../../../chunks/4ZD5D2UP.js";import"../../../chunks/TNHU5UBQ.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as FOBO_MAX_GAS,b as exactApprove,c as exactPermit,d as verifyFoboTransaction,e as verifySignInMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as a}from"../../../chunks/HS4DZPYT.js";import{f as i}from"../../../chunks/FIO6VC2J.js";import"../../../chunks/77CLMPM7.js";import"../../../chunks/3VWVW7PX.js";import{a as d}from"../../../chunks/APQYLJGS.js";import{b as o}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var u="Gloam runs on your computer; the Oak server never handles Gloam notes. Nothing was sent.",n={type:"string",pattern:"^[0-9]+$",description:'USDG amount in base units (6 decimals): "1000000" = 1 USDG.'},l={gloam_status:{type:"object",additionalProperties:!1,properties:{},required:[]},gloam_shield:{type:"object",additionalProperties:!1,properties:{amount:n},required:["amount"]},gloam_pay:{type:"object",additionalProperties:!1,properties:{to:{type:"string",pattern:"^gloamr1\\.",description:"Recipient\u2019s Gloam receiving code, beginning gloamr1."},amount:n},required:["to","amount"]},gloam_claim:{type:"object",additionalProperties:!1,properties:{ticket:{type:"string",pattern:"^gloam2t\\.",description:"Optional Gloam payment ticket beginning gloam2t.; omit to scan for payments."}},required:[]},gloam_cash_out:{type:"object",additionalProperties:!1,properties:{note:{type:"string",pattern:"^(note_[0-9]+|all)$",description:"Local note identifier (note_ followed by digits), or all to cash out every eligible note."}},required:["note"]}},g=Object.keys(l);function b(s,t){if(s.network==="testnet")return o("gloam",[]);let p=g.map(e=>({name:e,inputSchema:l[e],...e==="gloam_claim"?{free:!0}:{},execute:async(m,c)=>{if(!t)throw new Error(u);let r=await t.plan(e,a(e,m),c);return i(r),r}}));return o("gloam",[{tools:p}])}export{d as GLOAM_ENGINE_API,u as GLOAM_LOCAL_REFUSAL,b as createModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/HEQBTHFS.js";import"../../../chunks/6HNQAYBM.js";import"../../../chunks/H7ZJ7LAB.js";import"../../../chunks/GCFHKJIO.js";import"../../../chunks/QKH7ED6B.js";import"../../../chunks/342OZP53.js";import"../../../chunks/A3PN3PK3.js";import"../../../chunks/IY7FWTAL.js";import"../../../chunks/5PNFV7HH.js";import"../../../chunks/HC3QFA5I.js";import"../../../chunks/QFUSCK5C.js";import"../../../chunks/VS7ZA4OF.js";import"../../../chunks/B75SS7H6.js";import"../../../chunks/TTBB6EFN.js";import"../../../chunks/CQ5WRWV4.js";import"../../../chunks/IV4K7FMD.js";import"../../../chunks/GVCNTGLC.js";import"../../../chunks/KKGHXNM4.js";import"../../../chunks/3XY44BP5.js";import"../../../chunks/LD3A2KLN.js";import"../../../chunks/3RGED2KO.js";import"../../../chunks/UMY6SP7C.js";import"../../../chunks/CJMVRV34.js";import"../../../chunks/7WXAS54T.js";import"../../../chunks/LIUXNOLP.js";import"../../../chunks/B7WZJHIJ.js";import"../../../chunks/TNHU5UBQ.js";import"../../../chunks/HGSFRN57.js";import"../../../chunks/QFK335LC.js";import"../../../chunks/ICHT3H3W.js";import"../../../chunks/7AYP4ATZ.js";import"../../../chunks/PG7HZIZL.js";import"../../../chunks/CFPJDLTZ.js";import"../../../chunks/5N6YJFFA.js";import"../../../chunks/P4UQGWCP.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/IOYRL6AY.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5HCXZWUH.js";import"../../../chunks/EZUQMTLE.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{b as createModule,a as createModulePart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as O}from"../../../chunks/CNLL4NCR.js";import{a as H}from"../../../chunks/5GQJVKVY.js";import{b as U}from"../../../chunks/WNWRF4HE.js";import{c as D,g as I}from"../../../chunks/GQ3XZFRL.js";import"../../../chunks/HOEQVPY7.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import{b as w,e as u}from"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import{b as A}from"../../../chunks/TI727O2H.js";import{a as L}from"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var Ee=["release","contract","commit","docs","correction","other"],x=20,$=4,M=48,N=12,B=4,J=3,P=6,V=3e5,z=600,G=512,v=/^[a-z0-9][a-z0-9-]{0,79}$/,q=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?Z$/,S=/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/u,Q=/\.(?:localhost|local|localdomain|internal|intranet|lan|home|corp|private|home\.arpa)$/,Y=Object.freeze({FEATURE_RELEASE:"release",PRODUCT_LAUNCH:"release",APP_RELEASE:"release",GITHUB_RELEASE:"release",API_RELEASE:"release",SDK_RELEASE:"release",DEMO_RELEASE:"release",DESIGN_RELEASE:"release",CONTRACT_DEPLOY:"contract",CONTRACT_UPGRADE:"contract",CONTRACT_DEPLOY_FOLLOWUP:"contract",CODE_ACTIVITY:"commit",DOCS_UPDATE:"docs",CORRECTION:"correction",RETRACTION:"correction"}),ee=new Set(["listProjects","getProjectTimeline","getPartnerScanCard","listChanges"]),te=new Set(["pons_launch_info","pons_holders"]);function ne(e){return{async hey(t,n){if(!ee.has(t))throw new Error(`Blocked HEY read ${t}`);let o=await e("heyresearch_read",{operation:t,parameters:n,detail:"full"});if(!u(o)||o.operation!==t||!u(o.data))throw new Error("Unexpected HEY response");return o.data},async oak(t,n){if(!te.has(t))throw new Error(`Blocked read ${t}`);return e(t,n)}}}function T(e){return typeof e=="string"&&e.trim().length>0}function R(e){if(typeof e!="string"||!q.test(e))return;let t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString().slice(0,19)===e.slice(0,19)?t:void 0}function W(e){if(!(typeof e!="string"||e.length>2048||/[\s<>\\]/.test(e)||S.test(e)))try{let t=new URL(e),n=t.hostname.toLowerCase().replace(/\.$/,"");return t.protocol!=="https:"||t.username||t.password||!n||n.startsWith("[")||/^[\d.]+$/.test(n)||!n.includes(".")||n==="localhost"||Q.test(n)||!/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/.test(n)||!/[a-z]/.test(n.slice(n.lastIndexOf(".")+1))?void 0:t}catch{return}}function b(e){throw new L(e)}function se(e){return Array.isArray(e)||b("Provide the follow list as an array."),e.map(t=>((!u(t)||t.chainId!==A)&&b("Only Robinhood Chain mainnet (4663) follows can be checked."),(typeof t.token!="string"||!w.test(t.token))&&b("Each follow needs a full token address."),(typeof t.projectSlug!="string"||!v.test(t.projectSlug))&&b("Each follow needs a valid HEY project slug."),t.lastCheckedAt!==null&&R(t.lastCheckedAt)===void 0&&b("lastCheckedAt must be null or a UTC time such as 2026-11-02T12:00:00.000Z."),t.after!==void 0&&t.after!==null&&!F(t.after)&&b("Each follow cursor must be null or a cursor HEY returned."),t))}function F(e){return typeof e=="string"&&e.length>0&&e.length<=G&&!S.test(e)}function oe(e){return e===void 0?{}:((!u(e)||Object.values(e).some(t=>!F(t)))&&b("Continuation cursors must be the strings a previous page returned."),Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n])))}function X(e,t,n){let o=i=>{n.push({code:"item_omitted",detail:i,slug:t.slug})};if(!u(e))return o("A row was not an object.");if(!T(e.id)||e.id.length>240)return o("A row had no usable receipt id.");let r=R(e.at);if(r===void 0)return o(`Receipt ${e.id} has no valid UTC publication time.`);if(r>t.reference+V)return o(`Receipt ${e.id} is dated in the future.`);if(!T(e.title)||e.title.length>z||S.test(e.title))return o(`Receipt ${e.id} has unusable text.`);let d=W(e.source);if(!d)return o(`Receipt ${e.id} has no public HTTPS source.`);let a=typeof e.eventType=="string"?e.eventType:void 0,g=e.withdrawn===!0?"correction":a!==void 0&&Object.hasOwn(Y,a)?Y[a]:"other";return{at:r,recorded:R(e.recordedAt),key:`${t.slug}|${g==="correction"?"correction:":""}${e.id}`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:g,update_text:e.title,published_at:e.at,source_host:d.hostname,source_url:e.source}}}function Z(e){return e.map((t,n)=>({candidate:t,index:n})).sort((t,n)=>n.candidate.at-t.candidate.at||t.index-n.index).map(({candidate:t})=>t.item)}function re(e,t){let n=e.nextCursor;if(!u(e.project)||e.project.slug!==t||!Array.isArray(e.items)||!(n==null||typeof n=="string"&&n.length>0&&n.length<=G))throw new Error("Unexpected timeline");return{items:e.items,next:n??null}}async function ie(e,t,n){let o=e.offset??0;(!Number.isSafeInteger(o)||o<0)&&b("offset must be a whole number from zero.");let r=new Date(n()).toISOString(),d=[],a=[],l=new Set,g=!0,i=o,E,k=0;for(O(0,void 0,"Reading HEY Research Lab projects");i!==void 0&&k<B&&E===void 0&&a.length<N;){let p;try{p=await t.hey("listProjects",{has:["token"],sort:"newest",limit:M,offset:i})}catch{return d.push({code:"unavailable",detail:"The HEY project list could not be read."}),{mode:"browse",items:[],oak:{},coverage:d,complete:!1,continuation:{offset:i},checkedThrough:r}}if(!Array.isArray(p.items)||!(p.nextOffset===void 0||Number.isSafeInteger(p.nextOffset)&&p.nextOffset>i))return d.push({code:"bad_pagination",detail:"HEY returned a project list whose paging could not be followed."}),{mode:"browse",items:[],oak:{},coverage:d,complete:!1,continuation:{offset:i},checkedThrough:r};k++;let _=i;for(let[f,s]of p.items.entries()){let c=u(s)&&u(s.token)?s.token:void 0;if(!u(s)||typeof s.slug!="string"||!v.test(s.slug)||!T(s.name)||s.name.length>z||S.test(s.name)||!c||c.chainId!==A||typeof c.contractAddress!="string"||!w.test(c.contractAddress)){d.push({code:"project_skipped",detail:"A listed project has no Robinhood Chain mainnet token HEY can bind to it.",...u(s)&&typeof s.slug=="string"&&v.test(s.slug)?{slug:s.slug}:{}});continue}if(!l.has(s.slug)){if(a.length>=N){E=_+f;break}l.add(s.slug),a.push({slug:s.slug,name:s.name,token:c.contractAddress})}}i=p.nextOffset}let y=[];for(let p=0;p<a.length;p+=P){let _=a.slice(p,p+P),f=await Promise.all(_.map(async s=>{let c=await K(t,{chainId:A,token:s.token,projectSlug:s.slug,lastCheckedAt:null}),C={...s,status:c.status==="tied"?c.line:c.status==="untied"&&c.statusLine?c.statusLine:"HEY Research Lab context unavailable"};try{let m=await t.hey("getProjectTimeline",{slug:C.slug,lens:"build",limit:J});return{project:C,...re(m,C.slug)}}catch{return{project:C,failed:!0}}}));for(let s of f){if("failed"in s){g=!1,d.push({code:"unavailable",detail:"This project's updates could not be read.",slug:s.project.slug});continue}let c={slug:s.project.slug,name:s.project.name,status:s.project.status,reference:n()};for(let C of s.items){let m=X(C,c,d);m&&!l.has(m.key)&&(l.add(m.key),y.push(m))}}O(Math.min(p+P,a.length),a.length,"Read HEY Research Lab project updates")}let h=E??i;return h!==void 0&&(g=!1),{mode:"browse",items:Z(y),oak:{},coverage:d,complete:g,continuation:h===void 0?null:{offset:h},checkedThrough:r}}async function K(e,t){let n;try{n=await e.hey("getPartnerScanCard",{chain:A,token:t.token})}catch{return{status:"unavailable"}}let o=n.found===!1&&n.contractAddress===void 0?{...n,contractAddress:t.token}:n,r=U(o,A,t.token);if(!r)return{status:"unavailable"};if(!r.found)return{status:"untied",detail:"HEY has no published project for this token. An empty feed proves nothing.",statusLine:D};let d=u(n.project)?n.project:void 0,a="";try{a=new URL(r.project_link).pathname.split("/")[2]??""}catch{}let l=d?.slug===t.projectSlug&&a===t.projectSlug,g=I(r.status_label,r.status_help);return r.token_verification!=="VERIFIED"||!r.activity_applies_to_token||!l?{status:"untied",detail:"HEY does not tie this token to the followed project, so no builder history is shown for it.",...l?{statusLine:g}:{}}:{status:"tied",line:g,name:T(d?.name)?String(d?.name):t.projectSlug}}function ae(e,t,n){if(!u(e.query)||e.query.project!==t||e.query.mode!=="sync"||!Array.isArray(e.items)||typeof e.hasMore!="boolean"||!(F(e.nextCursor)||e.nextCursor===null&&e.hasMore===!1&&e.items.length===0)||e.ignoredParameters!==void 0&&(!Array.isArray(e.ignoredParameters)||e.ignoredParameters.length>0))throw new Error("Unexpected change ledger page");if(e.items.some(o=>u(o)&&(o.op!=="retract"||o.project!==void 0)&&(!u(o.project)||o.project.slug!==t)))throw new Error("Change belongs to another project");return{items:e.items,next:e.nextCursor===null?n:e.nextCursor,more:e.hasMore}}function ce(e,t,n){if(u(e)&&e.op==="retract"&&T(e.id)&&e.id.length<=240&&!S.test(e.id))return n.push({code:"retraction",slug:t.slug,detail:`HEY retracted ${e.id}. Empty fields were not supplied by the tombstone.`}),{at:R(e.recordedAt)??0,recorded:R(e.recordedAt),key:`${t.slug}|${e.id}|${String(e.revision)}|retract`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:"correction",update_text:"",published_at:R(e.recordedAt)===void 0?"":e.recordedAt,source_host:"",source_url:""}};if(!u(e)||e.op!=="upsert"){n.push({code:"item_omitted",slug:t.slug,detail:"A change had no supported ledger operation."});return}let o=Array.isArray(e.evidence)?e.evidence.find(l=>u(l)&&W(l.url)):void 0,r=u(e.facts)?e.facts:{},d=typeof r.eventType=="string"?r.eventType:typeof e.type=="string"&&e.type.startsWith("build.")?e.type.slice(6).toUpperCase():void 0,a=X({id:e.id,at:e.occurredAt??e.detectedAt??e.recordedAt,recordedAt:e.recordedAt,title:e.summary,eventType:d,source:u(o)?o.url:void 0},t,n);return a&&(a.key=`${t.slug}|${String(e.id)}|${String(e.revision)}|upsert`),a}async function de(e,t,n,o){let r=[],d=[],a={},l={},g=!0,i=e.token.toLowerCase(),E={launch_info:null,addresses:null};for(let[_,f,s]of[["launch_info","pons_launch_info",{token:e.token}],["addresses","pons_holders",{token:e.token,limit:1}]])try{let c=await t.oak(f,s);if(_==="addresses"){let C=H(c,e.token);E.addresses=C?.addresses??null,C||r.push({code:"oak_unavailable",detail:"Address figures were not read for this token.",token:i})}else E.launch_info=c}catch{r.push({code:"oak_unavailable",detail:`${f} could not be read for this token; it is unknown, not empty.`,token:i})}let k=await K(t,e);if(k.status==="unavailable")return g=!1,r.push({code:"unavailable",detail:"HEY's scan for this token could not be read.",slug:e.projectSlug,token:i}),o[i]&&(a[i]=o[i]),{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g};if(k.status==="untied")return r.push({code:"tie_not_verified",detail:k.detail,slug:e.projectSlug,token:i,...k.statusLine?{statusLine:k.statusLine,statusNote:"show exactly"}:{}}),{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g};let y={slug:e.projectSlug,name:k.name,status:k.line,reference:n},h=o[i]??e.after??"c1.0",p=new Set([h]);for(let _=0;;_++){if(_>=B){g=!1,a[i]=h;break}let f;try{f=ae(await t.hey("listChanges",{project:e.projectSlug,after:h,limit:M}),e.projectSlug,h)}catch{g=!1,r.push({code:"unavailable",detail:"This project's change ledger could not be read.",slug:e.projectSlug,token:i}),a[i]=h;break}if(p.has(f.next)&&(f.more||f.items.length>0)){g=!1,r.push({code:"bad_pagination",detail:"HEY repeated a continuation cursor.",slug:e.projectSlug,token:i}),a[i]=h;break}for(let s of f.items){let c=ce(s,y,r);c&&d.push(c)}if(!f.more){l[i]=f.next;break}p.add(f.next),h=f.next}return{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g}}async function ue(e,t,n){let o=se(e.entries),r=R(e.until);r===void 0&&b("until must be a UTC time such as 2026-11-02T12:00:00.000Z.");let d=oe(e.cursors),a=Object.keys(d).length>0,l=[],g={},i=[],E=new Set,k={},y={},h=!0,p=o.filter(c=>!a||Object.hasOwn(d,c.token.toLowerCase())),_=p.slice(0,x),f=p.slice(x);f.length&&(h=!1,l.push({code:"follow_limit",detail:`At most ${x} followed tokens are read at once; ${f.length} remain.`})),o.length||l.push({code:"no_follows",detail:"The follow list is empty. An empty feed proves nothing."});for(let c=0;c<_.length;c+=$){let C=await Promise.all(_.slice(c,c+$).map(m=>de(m,t,Math.max(r,n()),d)));for(let m of C){g[m.key]=m.facts,l.push(...m.coverage),Object.assign(k,m.nextCursors),Object.assign(y,m.after),m.complete||(h=!1);for(let j of m.candidates)E.has(j.key)||(E.add(j.key),i.push(j))}}let s={};return Object.keys(k).length&&(s.cursors=k),f.length&&(s.remainingTokens=f.map(c=>c.token)),{mode:"updates",items:Z(i),oak:g,coverage:l,complete:h,after:y,continuation:Object.keys(s).length?s:null,checkedThrough:e.until}}async function _e(e,t,n={}){let o=ne(t);return u(e)&&e.mode==="browse"?ie(e,o,n.now??Date.now):u(e)&&e.mode==="updates"?ue(e,o,n.now??Date.now):b("Choose browse or updates.")}export{Ee as UPDATE_TYPES,_e as readBuilderFeed};
|
|
1
|
+
import{b as O}from"../../../chunks/CNLL4NCR.js";import{a as H}from"../../../chunks/W5GWK72I.js";import{b as U}from"../../../chunks/YZHJ4BAP.js";import"../../../chunks/HOEQVPY7.js";import{c as D,g as I}from"../../../chunks/GQ3XZFRL.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import{b as w,e as u}from"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import{b as A}from"../../../chunks/EWZFZUVF.js";import{a as L}from"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var Ee=["release","contract","commit","docs","correction","other"],x=20,$=4,M=48,N=12,B=4,J=3,P=6,V=3e5,z=600,G=512,v=/^[a-z0-9][a-z0-9-]{0,79}$/,q=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?Z$/,S=/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/u,Q=/\.(?:localhost|local|localdomain|internal|intranet|lan|home|corp|private|home\.arpa)$/,Y=Object.freeze({FEATURE_RELEASE:"release",PRODUCT_LAUNCH:"release",APP_RELEASE:"release",GITHUB_RELEASE:"release",API_RELEASE:"release",SDK_RELEASE:"release",DEMO_RELEASE:"release",DESIGN_RELEASE:"release",CONTRACT_DEPLOY:"contract",CONTRACT_UPGRADE:"contract",CONTRACT_DEPLOY_FOLLOWUP:"contract",CODE_ACTIVITY:"commit",DOCS_UPDATE:"docs",CORRECTION:"correction",RETRACTION:"correction"}),ee=new Set(["listProjects","getProjectTimeline","getPartnerScanCard","listChanges"]),te=new Set(["pons_launch_info","pons_holders"]);function ne(e){return{async hey(t,n){if(!ee.has(t))throw new Error(`Blocked HEY read ${t}`);let o=await e("heyresearch_read",{operation:t,parameters:n,detail:"full"});if(!u(o)||o.operation!==t||!u(o.data))throw new Error("Unexpected HEY response");return o.data},async oak(t,n){if(!te.has(t))throw new Error(`Blocked read ${t}`);return e(t,n)}}}function T(e){return typeof e=="string"&&e.trim().length>0}function R(e){if(typeof e!="string"||!q.test(e))return;let t=Date.parse(e);return Number.isFinite(t)&&new Date(t).toISOString().slice(0,19)===e.slice(0,19)?t:void 0}function W(e){if(!(typeof e!="string"||e.length>2048||/[\s<>\\]/.test(e)||S.test(e)))try{let t=new URL(e),n=t.hostname.toLowerCase().replace(/\.$/,"");return t.protocol!=="https:"||t.username||t.password||!n||n.startsWith("[")||/^[\d.]+$/.test(n)||!n.includes(".")||n==="localhost"||Q.test(n)||!/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/.test(n)||!/[a-z]/.test(n.slice(n.lastIndexOf(".")+1))?void 0:t}catch{return}}function b(e){throw new L(e)}function se(e){return Array.isArray(e)||b("Provide the follow list as an array."),e.map(t=>((!u(t)||t.chainId!==A)&&b("Only Robinhood Chain mainnet (4663) follows can be checked."),(typeof t.token!="string"||!w.test(t.token))&&b("Each follow needs a full token address."),(typeof t.projectSlug!="string"||!v.test(t.projectSlug))&&b("Each follow needs a valid HEY project slug."),t.lastCheckedAt!==null&&R(t.lastCheckedAt)===void 0&&b("lastCheckedAt must be null or a UTC time such as 2026-11-02T12:00:00.000Z."),t.after!==void 0&&t.after!==null&&!F(t.after)&&b("Each follow cursor must be null or a cursor HEY returned."),t))}function F(e){return typeof e=="string"&&e.length>0&&e.length<=G&&!S.test(e)}function oe(e){return e===void 0?{}:((!u(e)||Object.values(e).some(t=>!F(t)))&&b("Continuation cursors must be the strings a previous page returned."),Object.fromEntries(Object.entries(e).map(([t,n])=>[t.toLowerCase(),n])))}function X(e,t,n){let o=i=>{n.push({code:"item_omitted",detail:i,slug:t.slug})};if(!u(e))return o("A row was not an object.");if(!T(e.id)||e.id.length>240)return o("A row had no usable receipt id.");let r=R(e.at);if(r===void 0)return o(`Receipt ${e.id} has no valid UTC publication time.`);if(r>t.reference+V)return o(`Receipt ${e.id} is dated in the future.`);if(!T(e.title)||e.title.length>z||S.test(e.title))return o(`Receipt ${e.id} has unusable text.`);let d=W(e.source);if(!d)return o(`Receipt ${e.id} has no public HTTPS source.`);let a=typeof e.eventType=="string"?e.eventType:void 0,g=e.withdrawn===!0?"correction":a!==void 0&&Object.hasOwn(Y,a)?Y[a]:"other";return{at:r,recorded:R(e.recordedAt),key:`${t.slug}|${g==="correction"?"correction:":""}${e.id}`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:g,update_text:e.title,published_at:e.at,source_host:d.hostname,source_url:e.source}}}function Z(e){return e.map((t,n)=>({candidate:t,index:n})).sort((t,n)=>n.candidate.at-t.candidate.at||t.index-n.index).map(({candidate:t})=>t.item)}function re(e,t){let n=e.nextCursor;if(!u(e.project)||e.project.slug!==t||!Array.isArray(e.items)||!(n==null||typeof n=="string"&&n.length>0&&n.length<=G))throw new Error("Unexpected timeline");return{items:e.items,next:n??null}}async function ie(e,t,n){let o=e.offset??0;(!Number.isSafeInteger(o)||o<0)&&b("offset must be a whole number from zero.");let r=new Date(n()).toISOString(),d=[],a=[],l=new Set,g=!0,i=o,E,k=0;for(O(0,void 0,"Reading HEY Research Lab projects");i!==void 0&&k<B&&E===void 0&&a.length<N;){let p;try{p=await t.hey("listProjects",{has:["token"],sort:"newest",limit:M,offset:i})}catch{return d.push({code:"unavailable",detail:"The HEY project list could not be read."}),{mode:"browse",items:[],oak:{},coverage:d,complete:!1,continuation:{offset:i},checkedThrough:r}}if(!Array.isArray(p.items)||!(p.nextOffset===void 0||Number.isSafeInteger(p.nextOffset)&&p.nextOffset>i))return d.push({code:"bad_pagination",detail:"HEY returned a project list whose paging could not be followed."}),{mode:"browse",items:[],oak:{},coverage:d,complete:!1,continuation:{offset:i},checkedThrough:r};k++;let _=i;for(let[f,s]of p.items.entries()){let c=u(s)&&u(s.token)?s.token:void 0;if(!u(s)||typeof s.slug!="string"||!v.test(s.slug)||!T(s.name)||s.name.length>z||S.test(s.name)||!c||c.chainId!==A||typeof c.contractAddress!="string"||!w.test(c.contractAddress)){d.push({code:"project_skipped",detail:"A listed project has no Robinhood Chain mainnet token HEY can bind to it.",...u(s)&&typeof s.slug=="string"&&v.test(s.slug)?{slug:s.slug}:{}});continue}if(!l.has(s.slug)){if(a.length>=N){E=_+f;break}l.add(s.slug),a.push({slug:s.slug,name:s.name,token:c.contractAddress})}}i=p.nextOffset}let y=[];for(let p=0;p<a.length;p+=P){let _=a.slice(p,p+P),f=await Promise.all(_.map(async s=>{let c=await K(t,{chainId:A,token:s.token,projectSlug:s.slug,lastCheckedAt:null}),C={...s,status:c.status==="tied"?c.line:c.status==="untied"&&c.statusLine?c.statusLine:"HEY Research Lab context unavailable"};try{let m=await t.hey("getProjectTimeline",{slug:C.slug,lens:"build",limit:J});return{project:C,...re(m,C.slug)}}catch{return{project:C,failed:!0}}}));for(let s of f){if("failed"in s){g=!1,d.push({code:"unavailable",detail:"This project's updates could not be read.",slug:s.project.slug});continue}let c={slug:s.project.slug,name:s.project.name,status:s.project.status,reference:n()};for(let C of s.items){let m=X(C,c,d);m&&!l.has(m.key)&&(l.add(m.key),y.push(m))}}O(Math.min(p+P,a.length),a.length,"Read HEY Research Lab project updates")}let h=E??i;return h!==void 0&&(g=!1),{mode:"browse",items:Z(y),oak:{},coverage:d,complete:g,continuation:h===void 0?null:{offset:h},checkedThrough:r}}async function K(e,t){let n;try{n=await e.hey("getPartnerScanCard",{chain:A,token:t.token})}catch{return{status:"unavailable"}}let o=n.found===!1&&n.contractAddress===void 0?{...n,contractAddress:t.token}:n,r=U(o,A,t.token);if(!r)return{status:"unavailable"};if(!r.found)return{status:"untied",detail:"HEY has no published project for this token. An empty feed proves nothing.",statusLine:D};let d=u(n.project)?n.project:void 0,a="";try{a=new URL(r.project_link).pathname.split("/")[2]??""}catch{}let l=d?.slug===t.projectSlug&&a===t.projectSlug,g=I(r.status_label,r.status_help);return r.token_verification!=="VERIFIED"||!r.activity_applies_to_token||!l?{status:"untied",detail:"HEY does not tie this token to the followed project, so no builder history is shown for it.",...l?{statusLine:g}:{}}:{status:"tied",line:g,name:T(d?.name)?String(d?.name):t.projectSlug}}function ae(e,t,n){if(!u(e.query)||e.query.project!==t||e.query.mode!=="sync"||!Array.isArray(e.items)||typeof e.hasMore!="boolean"||!(F(e.nextCursor)||e.nextCursor===null&&e.hasMore===!1&&e.items.length===0)||e.ignoredParameters!==void 0&&(!Array.isArray(e.ignoredParameters)||e.ignoredParameters.length>0))throw new Error("Unexpected change ledger page");if(e.items.some(o=>u(o)&&(o.op!=="retract"||o.project!==void 0)&&(!u(o.project)||o.project.slug!==t)))throw new Error("Change belongs to another project");return{items:e.items,next:e.nextCursor===null?n:e.nextCursor,more:e.hasMore}}function ce(e,t,n){if(u(e)&&e.op==="retract"&&T(e.id)&&e.id.length<=240&&!S.test(e.id))return n.push({code:"retraction",slug:t.slug,detail:`HEY retracted ${e.id}. Empty fields were not supplied by the tombstone.`}),{at:R(e.recordedAt)??0,recorded:R(e.recordedAt),key:`${t.slug}|${e.id}|${String(e.revision)}|retract`,item:{project_slug:t.slug,project_name:t.name,hey_status:t.status,update_type:"correction",update_text:"",published_at:R(e.recordedAt)===void 0?"":e.recordedAt,source_host:"",source_url:""}};if(!u(e)||e.op!=="upsert"){n.push({code:"item_omitted",slug:t.slug,detail:"A change had no supported ledger operation."});return}let o=Array.isArray(e.evidence)?e.evidence.find(l=>u(l)&&W(l.url)):void 0,r=u(e.facts)?e.facts:{},d=typeof r.eventType=="string"?r.eventType:typeof e.type=="string"&&e.type.startsWith("build.")?e.type.slice(6).toUpperCase():void 0,a=X({id:e.id,at:e.occurredAt??e.detectedAt??e.recordedAt,recordedAt:e.recordedAt,title:e.summary,eventType:d,source:u(o)?o.url:void 0},t,n);return a&&(a.key=`${t.slug}|${String(e.id)}|${String(e.revision)}|upsert`),a}async function de(e,t,n,o){let r=[],d=[],a={},l={},g=!0,i=e.token.toLowerCase(),E={launch_info:null,addresses:null};for(let[_,f,s]of[["launch_info","pons_launch_info",{token:e.token}],["addresses","pons_holders",{token:e.token,limit:1}]])try{let c=await t.oak(f,s);if(_==="addresses"){let C=H(c,e.token);E.addresses=C?.addresses??null,C||r.push({code:"oak_unavailable",detail:"Address figures were not read for this token.",token:i})}else E.launch_info=c}catch{r.push({code:"oak_unavailable",detail:`${f} could not be read for this token; it is unknown, not empty.`,token:i})}let k=await K(t,e);if(k.status==="unavailable")return g=!1,r.push({code:"unavailable",detail:"HEY's scan for this token could not be read.",slug:e.projectSlug,token:i}),o[i]&&(a[i]=o[i]),{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g};if(k.status==="untied")return r.push({code:"tie_not_verified",detail:k.detail,slug:e.projectSlug,token:i,...k.statusLine?{statusLine:k.statusLine,statusNote:"show exactly"}:{}}),{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g};let y={slug:e.projectSlug,name:k.name,status:k.line,reference:n},h=o[i]??e.after??"c1.0",p=new Set([h]);for(let _=0;;_++){if(_>=B){g=!1,a[i]=h;break}let f;try{f=ae(await t.hey("listChanges",{project:e.projectSlug,after:h,limit:M}),e.projectSlug,h)}catch{g=!1,r.push({code:"unavailable",detail:"This project's change ledger could not be read.",slug:e.projectSlug,token:i}),a[i]=h;break}if(p.has(f.next)&&(f.more||f.items.length>0)){g=!1,r.push({code:"bad_pagination",detail:"HEY repeated a continuation cursor.",slug:e.projectSlug,token:i}),a[i]=h;break}for(let s of f.items){let c=ce(s,y,r);c&&d.push(c)}if(!f.more){l[i]=f.next;break}p.add(f.next),h=f.next}return{key:i,facts:E,coverage:r,candidates:d,nextCursors:a,after:l,complete:g}}async function ue(e,t,n){let o=se(e.entries),r=R(e.until);r===void 0&&b("until must be a UTC time such as 2026-11-02T12:00:00.000Z.");let d=oe(e.cursors),a=Object.keys(d).length>0,l=[],g={},i=[],E=new Set,k={},y={},h=!0,p=o.filter(c=>!a||Object.hasOwn(d,c.token.toLowerCase())),_=p.slice(0,x),f=p.slice(x);f.length&&(h=!1,l.push({code:"follow_limit",detail:`At most ${x} followed tokens are read at once; ${f.length} remain.`})),o.length||l.push({code:"no_follows",detail:"The follow list is empty. An empty feed proves nothing."});for(let c=0;c<_.length;c+=$){let C=await Promise.all(_.slice(c,c+$).map(m=>de(m,t,Math.max(r,n()),d)));for(let m of C){g[m.key]=m.facts,l.push(...m.coverage),Object.assign(k,m.nextCursors),Object.assign(y,m.after),m.complete||(h=!1);for(let j of m.candidates)E.has(j.key)||(E.add(j.key),i.push(j))}}let s={};return Object.keys(k).length&&(s.cursors=k),f.length&&(s.remainingTokens=f.map(c=>c.token)),{mode:"updates",items:Z(i),oak:g,coverage:l,complete:h,after:y,continuation:Object.keys(s).length?s:null,checkedThrough:e.until}}async function _e(e,t,n={}){let o=ne(t);return u(e)&&e.mode==="browse"?ie(e,o,n.now??Date.now):u(e)&&e.mode==="updates"?ue(e,o,n.now??Date.now):b("Choose browse or updates.")}export{Ee as UPDATE_TYPES,_e as readBuilderFeed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as D,d as P,e as O,f as J}from"../../../chunks/DMB64UIN.js";import{a as x}from"../../../chunks/TWR7BF72.js";import"../../../chunks/TMVO2DAK.js";import{a as F}from"../../../chunks/WNWRF4HE.js";import{b as C}from"../../../chunks/GQ3XZFRL.js";import{a as K}from"../../../chunks/HOEQVPY7.js";import{f as B}from"../../../chunks/OEZ7FCLF.js";import{b as N}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import{a as U}from"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import{b as R,e as o,g as L}from"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import{b as w}from"../../../chunks/TI727O2H.js";import{a as d,e as q}from"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var I="https://heyresearch.xyz",z=6e4,Q=120,Y=/^[a-z0-9][a-z0-9-]{0,79}$/,G=`${C} HEY Research Lab records public activity. These records are not investment advice, a buy or sell signal, or a safety verdict. Null means not measured.`,X=`${C} Keyed research, not advice. Preserve per-item found/error states and input order. The server key is not returned. Private responses are not cached.`,Z=`${C} Stateless receipt validation. HEY stores nothing and does not endorse the conclusion. Oak does not cache this receipt.`,V=new WeakMap;function g(e){return typeof e=="string"&&e.trim().length>0}function A(e){return g(e)&&Number.isFinite(Date.parse(e))}function S(e){return e===null||typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function $(e){if(!g(e))return!1;try{let r=new URL(e);return r.origin===I&&!r.username&&!r.password}catch{return!1}}function v(){throw new d("HEY returned an unexpected response. Please try again.")}function M(e,r){if((e.schema!=="hey.agent-intelligence-response"||e.schemaVersion!=="1"||e.capability!==r||e.status!=="ok"||!o(e.chain)||e.chain.chainId!==w||!o(e.data)||!o(e.links)||!$(e.links.page)||!o(e.citation)||!g(e.citation.text)||!A(e.citation.asOf)||!A(e.asOf))&&v(),r==="research_project"){(!o(e.subject)||!o(e.subject.project)||!g(e.subject.project.slug)||!o(e.data.builderState)||!g(e.data.builderState.activityStatus)||typeof e.data.builderState.activityMeasured!="boolean"||!S(e.data.builderState.meaningfulEvents30d))&&v();let t=e.subject.project.token;t!=null&&(!o(t)||t.chainId!==w||typeof t.address!="string"||!R.test(t.address))&&v()}else r==="chain_brief"&&(!o(e.data.window)||!A(e.data.window.from)||!A(e.data.window.to)||!o(e.data.shipped)||!S(e.data.shipped.ships)||!S(e.data.shipped.projects))&&v()}function ee(e,r){(e.chain_id!==w||typeof e.contract_address!="string"||e.contract_address.toLowerCase()!==r||!$(e.project_link)||!g(e.hey_status_label)||!g(e.token_verification)||typeof e.activity_applies_to_token!="boolean"||typeof e.activity_measured!="boolean"||!S(e.meaningful_ships_30d)||!A(e.as_of)||!g(e.disclaimer)||e.token_verification==="MISMATCH"&&e.activity_applies_to_token!==!1)&&v()}function te(e){(e.chainId!==w||!Array.isArray(e.days)||e.days.length===0||!e.days.every(r=>o(r)&&typeof r.day=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(r.day)&&S(r.ships)&&S(r.transactions)&&(r.chainObservedAt===null||A(r.chainObservedAt))))&&v()}function ne(e,r){let t=n=>{throw new d(`HEY scan_cards returned an unexpected ${n}. Please try again.`)};(!Array.isArray(e.items)||e.items.length!==r.length)&&t("items"),e.requested!==r.length&&t("requested count"),(typeof e.found_count!="number"||!Number.isSafeInteger(e.found_count)||e.found_count<0)&&t("found_count"),g(e.disclaimer)||t("disclaimer");for(let[n,i]of e.items.entries()){(!o(i)||i.input!==r[n])&&t(`items[${n}].input`);let s=i;typeof s.found!="boolean"&&t(`items[${n}].found`),s.chainId!==w&&t(`items[${n}].chainId`),(typeof s.contractAddress!="string"||!L(s.contractAddress,r[n]))&&t(`items[${n}].contractAddress`),g(s.disclaimer)||t(`items[${n}].disclaimer`),s.found&&(!o(s.project)||!o(s.activity)||!$(s.project_link)||!g(s.status)||!g(s.status_label)||!g(s.status_help)||!g(s.research_level)||typeof s.verified_builder!="boolean"||typeof s.activity_measured!="boolean"||!["VERIFIED","UNVERIFIED","MISMATCH"].includes(String(s.token_verification))||typeof s.activity_applies_to_token!="boolean"||s.token_verification==="MISMATCH"&&s.activity_applies_to_token!==!1||!["measured","no_source","not_researched"].includes(String(s.coverage)))&&t(`items[${n}] scan card`)}}var E=class extends d{constructor(t,n,i){super(i);this.status=t;this.code=n}status;code};function T(e,r,t=""){let n=o(r)?r.error:void 0,i=o(n)?n.code:n;if(e===400&&i==="ambiguous"){let f=(o(n)&&Array.isArray(n.candidates)?n.candidates:[]).flatMap(u=>o(u)&&typeof u.slug=="string"&&Y.test(u.slug)?[u.slug]:[]);return new E(e,i,`The HEY query is ambiguous. Choose a project slug${f.length?`: ${f.join(", ")}`:" or use a contract address"}.`)}if(e===404&&(i==="not_found"||i==="not_published")){if(t.startsWith("/api/evidence/"))return new E(e,i,"The cited HEY evidence receipt is unavailable. Check the exact typed id; missing evidence is not a finding.");let s=o(r)&&$(r.scan_url)?` See ${r.scan_url}.`:"";return new E(e,i,`HEY has not published a matching project. This describes its index, not the token.${s}`)}return new E(e,i,e>=400&&e<500&&e!==429?F(e,t).message:`HEY returned HTTP ${e}. Please try again.`)}async function re(e){let r=e.body?.getReader();if(!r)return"";let t=[],n=0;try{for(;;){let{done:f,value:u}=await r.read();if(f)break;if(n+=u.byteLength,n>2e6)throw await r.cancel(),new d("HEY response exceeds the two-megabyte read limit. Narrow the query.");t.push(u)}}finally{r.releaseLock()}let i=new Uint8Array(n),s=0;for(let f of t)i.set(f,s),s+=f.byteLength;return new TextDecoder().decode(i)}function se(e){let r=V.get(e.http);r||(r={cache:new Map,pending:new Map,requests:[],backoff:K()},V.set(e.http,r));let t=r;return async(n,i,s="json",f,u=!1,p=1)=>{let h=u?e.heyApiKey:void 0;if(u&&!h)throw new d("HEY bulk reads require an operator-configured server API key. Never provide a key in tool arguments.");if(h&&(typeof h!="string"||h.length>4096||[...h].some(a=>a.charCodeAt(0)<33||a.charCodeAt(0)>126)))throw new d("The server HEY API key configuration is invalid. Ask the Oak operator to correct it.");let c=f===void 0&&!u;if(t.backoff.blocked())throw new d(t.backoff.limited()?"HEY received too many requests. Please try again later.":"HEY Research Lab is temporarily unavailable. Please try again later.");let m=Date.now();for(let[a,k]of t.cache)k.expires<=m&&t.cache.delete(a);let _=c?t.cache.get(n):void 0;if(_)return i(_.body),structuredClone(_.body);let b=c?t.pending.get(n):void 0;if(b){let a=await b;return i(a),structuredClone(a)}if(t.requests=t.requests.filter(a=>a>m-z),t.requests.length+p>Q)throw new d("HEY received too many requests. Please try again later.");for(let a=0;a<p;a++)t.requests.push(m);let H=(async()=>{try{let a=await e.http(`${I}${n}`,{method:f===void 0?"GET":"POST",credentials:"omit",redirect:"error",headers:{accept:s==="csv"?"text/csv":"application/json","x-hey-integration":"oak/1.0.0","user-agent":"oak/1.0.0",...f===void 0?{}:{"content-type":"application/json"},...h?{authorization:`Bearer ${h}`}:{}},...f===void 0?{}:{body:JSON.stringify(f)},signal:AbortSignal.timeout(1e4)}).catch(y=>{if(y instanceof U)return y.response;throw t.backoff.defer(null),y});if(a.status===429)throw t.backoff.defer(a.headers.get("retry-after"),!0),await a.body?.cancel(),new d("HEY received too many requests. Please try again later.");if(a.status>=500)throw t.backoff.defer(a.headers.get("retry-after")),await a.body?.cancel(),T(a.status,null,n);let k;try{let y=await re(a);k=s==="csv"&&a.ok?{format:"csv",value:y}:JSON.parse(y)}catch(y){throw y instanceof d?y:a.ok?new d("HEY returned malformed JSON. Please try again."):T(a.status,null,n)}if(u&&[401,403].includes(a.status))throw new d("HEY refused keyed access. Ask the Oak operator to check the server key and allowance.");if(!a.ok)throw T(a.status,k,n);return o(k)||v(),i(k),c&&t.cache.set(n,{body:k,expires:Date.now()+z}),k}catch(a){throw a instanceof d?a:new d(q(a))}})();c&&t.pending.set(n,H);try{return structuredClone(await H)}finally{c&&t.pending.delete(n)}}}function ie(e,r){if(!o(e)||Object.keys(e).some(t=>t!==r))throw new d(`Provide only ${r}; HEY reads are fixed to Robinhood Chain 4663.`)}var ae=e=>{let r=se(e);return{tools:[{name:"heyresearch_research_project",inputSchema:{type:"object",additionalProperties:!1,required:["project"],properties:{...D,project:{type:"string",minLength:1,maxLength:200,description:"A project slug, project name, ticker search, or token contract address on chain 4663."}}},async execute(t){let n=P(t,["project"]);if(!g(t.project)||t.project.trim().length>200)throw new d("Provide a project slug, name, ticker, or token contract address.");let i=t.project.trim();if(/^0x/i.test(i)&&!R.test(i))throw new d("Provide a full token contract address on Robinhood Chain 4663.");let s=R.test(i)?"address":Y.test(i)?"project":"q",f=s==="address"?i.toLowerCase():i,u=l=>r(`/api/agent/research_project?${l}=${encodeURIComponent(f)}`,j=>M(j,"research_project")),p;try{p=await u(s)}catch(l){if(s!=="project"||!(l instanceof E)||l.status!==404||l.code!=="not_found")throw l;p=await u("q")}let h=p.subject.project,c=o(h.token)?h.token.address:void 0,m=s==="address"?f:c?.toLowerCase(),_=m?await r(`/api/v1/builder?chain=${w}&token=${m}&integration=oak/1.0.0`,l=>ee(l,m)):null,b=_?.activity_applies_to_token===!1;s==="address"&&c&&c.toLowerCase()!==m&&!b&&v();let H=p.links,a={chainId:w,research:p,builder:_,freshnessAssessment:x(p),attribution:{page:H.page,citation:p.citation,..._&&!b?{project_link:_.project_link}:{}},warnings:b?["This activity belongs to the project, not this token. The project names a different contract; do not link this token to the project."]:[],notAdvice:!0,disclaimer:G},k=p.data,y={subject:p.subject,answer:p.answer,asOf:p.asOf,boundaries:p.boundaries,data:Object.fromEntries(["identity","builderState","contractIdentity","marketContext","usageContext","unknowns"].filter(l=>Object.hasOwn(k,l)).map(l=>[l,k[l]]))},W=[...Object.entries(k).filter(([l])=>!Object.hasOwn(y.data,l)).map(([l,j])=>[`data.${l}`,j]),...Object.entries(p).filter(([l])=>!Object.hasOwn(y,l))].map(([l,j])=>({name:l,chars:JSON.stringify(j).length,...Array.isArray(j)?{items:j.length}:{}}));return O(a,n,[],{...a,research:{...y,omittedSections:W}})}},{name:"heyresearch_chain_activity",inputSchema:{type:"object",additionalProperties:!1,properties:{...D,days:{type:"integer",minimum:1,maximum:30,default:7,description:"UTC days of chain activity alongside the seven-day builder brief."}}},async execute(t){let n=P(t,["days"]),i=t.days===void 0?7:t.days;if(typeof i!="number"||!Number.isInteger(i)||i<1||i>30)throw new d("Provide a whole number of days from 1 to 30.");let s=await r("/api/agent/chain_brief",h=>M(h,"chain_brief")),f=await r(`/api/chain?days=${i}`,te),u={chainId:w,brief:s,activity:f,freshnessAssessment:x({brief:s,activity:f}),attribution:{page:s.links.page,citation:s.citation,activity:`${I}/api/chain?days=${i}`},notAdvice:!0,disclaimer:G},p=n.detail==="summary"&&!n.fields.length&&JSON.stringify(s).length>3e3?B(s,{maxChars:3e3,keep:["disclaimer"]}).shaped:s;return O(u,n,["brief"],{...u,brief:p})}},J(r,M),{name:"heyresearch_bulk",inputSchema:{type:"object",additionalProperties:!1,required:["operation","items"],properties:{operation:{type:"string",enum:["snapshots","tokens","scan_cards"],description:"Keyed GET reads. Requires an Oak operator-configured server key; one upstream allowance unit per input. Results are not cached."},items:{type:"array",minItems:1,maxItems:30,items:{type:"string"},description:"Up to 10 project slugs for snapshots; up to 30 token addresses for tokens or scan_cards. Repeated inputs and their order are preserved."}}},async execute(t){if(!o(t)||Object.keys(t).some(c=>!["operation","items"].includes(c)))throw new d("Provide only the bulk operation and items; configure credentials on the Oak server.");let n=t.operation;if(!["snapshots","tokens","scan_cards"].includes(String(n))||!Array.isArray(t.items)||!t.items.length||t.items.length>(n==="snapshots"?10:30)||t.items.some(c=>typeof c!="string"||!(n==="snapshots"?Y:R).test(c)))throw new d("Provide up to 10 valid project slugs or up to 30 full token addresses for the chosen bulk operation.");let i=t.items,s=new URLSearchParams(n==="snapshots"?{slugs:i.join(",")}:n==="tokens"?{addresses:i.join(",")}:{chain:String(w),tokens:i.join(",")}),f=`${n==="snapshots"?"/api/snapshots":n==="tokens"?`/api/token/${w}`:"/api/v1/scan"}?${s}`,u=await r(f,c=>{if(n==="scan_cards")return ne(c,i);(!Array.isArray(c.items)||c.items.length!==i.length||c.requested!==i.length||typeof c.found!="number"||!Number.isSafeInteger(c.found)||c.found<0||typeof c.disclaimer!="string"||c.items.some((m,_)=>!o(m)||m.input!==i[_]||typeof m.found!="boolean"||o(m.data)&&m.data.chainId!==void 0&&m.data.chainId!==w))&&v()},"json",void 0,!0,i.length),p=u.items.filter(c=>c.found===!0).length,h=n==="scan_cards"?u.found_count:u.found;return{consistency:{reportedFound:h,countedFound:p,consistent:h===p},warnings:h===p?[]:[`HEY reports ${n==="scan_cards"?"found_count":"found"}=${h}, but ${p} returned items have found=true. Provider data is preserved; check the per-item states.`],chainId:w,operation:n,data:u,attribution:{source:`${I}${f}`,provider:"HEY Research Lab"},notAdvice:!0,untrusted:!0,disclaimer:X}}},{name:"heyresearch_validate_receipt",inputSchema:{type:"object",additionalProperties:!1,required:["receipt"],properties:{receipt:{type:"object",description:"AgentResearchReceipt v1. Sent to HEY for stateless validation; no reasoning trace, wallet credential or API key. Maximum 64 KiB."}}},async execute(t){if(ie(t,"receipt"),!o(t.receipt))throw new d("Provide an AgentResearchReceipt object.");let n=JSON.stringify(t.receipt);if(new TextEncoder().encode(n).length>65536)throw new d("The research receipt exceeds 64 KiB.");if(/"(?:private_key|secret_key|wallet_key|mnemonic|seed|seed_phrase|recovery_phrase)"\s*:/i.test(n))throw new d("Do not include wallet credentials in a research receipt.");let i=await r("/api/receipts/validate",s=>{(!Object.keys(s).length||s.error)&&v()},"json",t.receipt);return{chainId:w,data:i,attribution:{source:`${I}/api/receipts/validate`,provider:"HEY Research Lab"},notAdvice:!0,disclaimer:Z}}}]}},ke=e=>N("heyresearch",[ae(e)]);export{X as HEY_KEYED_DISCLAIMER,Z as HEY_RECEIPT_DISCLAIMER,G as HEY_RECORDS_DISCLAIMER,ke as createModule,ae as createModulePart};
|
|
1
|
+
import{c as D,d as P,e as O,f as J}from"../../../chunks/L76P6WIH.js";import{a as x}from"../../../chunks/TWR7BF72.js";import"../../../chunks/TMVO2DAK.js";import{a as F}from"../../../chunks/YZHJ4BAP.js";import{a as K}from"../../../chunks/HOEQVPY7.js";import{b as C}from"../../../chunks/GQ3XZFRL.js";import{f as B}from"../../../chunks/OEZ7FCLF.js";import{b as N}from"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import{a as U}from"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import{b as R,e as o,g as L}from"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import{b as w}from"../../../chunks/EWZFZUVF.js";import{a as d,e as q}from"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";var I="https://heyresearch.xyz",z=6e4,Q=120,Y=/^[a-z0-9][a-z0-9-]{0,79}$/,G=`${C} HEY Research Lab records public activity. These records are not investment advice, a buy or sell signal, or a safety verdict. Null means not measured.`,X=`${C} Keyed research, not advice. Preserve per-item found/error states and input order. The server key is not returned. Private responses are not cached.`,Z=`${C} Stateless receipt validation. HEY stores nothing and does not endorse the conclusion. Oak does not cache this receipt.`,V=new WeakMap;function g(e){return typeof e=="string"&&e.trim().length>0}function A(e){return g(e)&&Number.isFinite(Date.parse(e))}function S(e){return e===null||typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function $(e){if(!g(e))return!1;try{let r=new URL(e);return r.origin===I&&!r.username&&!r.password}catch{return!1}}function v(){throw new d("HEY returned an unexpected response. Please try again.")}function M(e,r){if((e.schema!=="hey.agent-intelligence-response"||e.schemaVersion!=="1"||e.capability!==r||e.status!=="ok"||!o(e.chain)||e.chain.chainId!==w||!o(e.data)||!o(e.links)||!$(e.links.page)||!o(e.citation)||!g(e.citation.text)||!A(e.citation.asOf)||!A(e.asOf))&&v(),r==="research_project"){(!o(e.subject)||!o(e.subject.project)||!g(e.subject.project.slug)||!o(e.data.builderState)||!g(e.data.builderState.activityStatus)||typeof e.data.builderState.activityMeasured!="boolean"||!S(e.data.builderState.meaningfulEvents30d))&&v();let t=e.subject.project.token;t!=null&&(!o(t)||t.chainId!==w||typeof t.address!="string"||!R.test(t.address))&&v()}else r==="chain_brief"&&(!o(e.data.window)||!A(e.data.window.from)||!A(e.data.window.to)||!o(e.data.shipped)||!S(e.data.shipped.ships)||!S(e.data.shipped.projects))&&v()}function ee(e,r){(e.chain_id!==w||typeof e.contract_address!="string"||e.contract_address.toLowerCase()!==r||!$(e.project_link)||!g(e.hey_status_label)||!g(e.token_verification)||typeof e.activity_applies_to_token!="boolean"||typeof e.activity_measured!="boolean"||!S(e.meaningful_ships_30d)||!A(e.as_of)||!g(e.disclaimer)||e.token_verification==="MISMATCH"&&e.activity_applies_to_token!==!1)&&v()}function te(e){(e.chainId!==w||!Array.isArray(e.days)||e.days.length===0||!e.days.every(r=>o(r)&&typeof r.day=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(r.day)&&S(r.ships)&&S(r.transactions)&&(r.chainObservedAt===null||A(r.chainObservedAt))))&&v()}function ne(e,r){let t=n=>{throw new d(`HEY scan_cards returned an unexpected ${n}. Please try again.`)};(!Array.isArray(e.items)||e.items.length!==r.length)&&t("items"),e.requested!==r.length&&t("requested count"),(typeof e.found_count!="number"||!Number.isSafeInteger(e.found_count)||e.found_count<0)&&t("found_count"),g(e.disclaimer)||t("disclaimer");for(let[n,i]of e.items.entries()){(!o(i)||i.input!==r[n])&&t(`items[${n}].input`);let s=i;typeof s.found!="boolean"&&t(`items[${n}].found`),s.chainId!==w&&t(`items[${n}].chainId`),(typeof s.contractAddress!="string"||!L(s.contractAddress,r[n]))&&t(`items[${n}].contractAddress`),g(s.disclaimer)||t(`items[${n}].disclaimer`),s.found&&(!o(s.project)||!o(s.activity)||!$(s.project_link)||!g(s.status)||!g(s.status_label)||!g(s.status_help)||!g(s.research_level)||typeof s.verified_builder!="boolean"||typeof s.activity_measured!="boolean"||!["VERIFIED","UNVERIFIED","MISMATCH"].includes(String(s.token_verification))||typeof s.activity_applies_to_token!="boolean"||s.token_verification==="MISMATCH"&&s.activity_applies_to_token!==!1||!["measured","no_source","not_researched"].includes(String(s.coverage)))&&t(`items[${n}] scan card`)}}var E=class extends d{constructor(t,n,i){super(i);this.status=t;this.code=n}status;code};function T(e,r,t=""){let n=o(r)?r.error:void 0,i=o(n)?n.code:n;if(e===400&&i==="ambiguous"){let f=(o(n)&&Array.isArray(n.candidates)?n.candidates:[]).flatMap(u=>o(u)&&typeof u.slug=="string"&&Y.test(u.slug)?[u.slug]:[]);return new E(e,i,`The HEY query is ambiguous. Choose a project slug${f.length?`: ${f.join(", ")}`:" or use a contract address"}.`)}if(e===404&&(i==="not_found"||i==="not_published")){if(t.startsWith("/api/evidence/"))return new E(e,i,"The cited HEY evidence receipt is unavailable. Check the exact typed id; missing evidence is not a finding.");let s=o(r)&&$(r.scan_url)?` See ${r.scan_url}.`:"";return new E(e,i,`HEY has not published a matching project. This describes its index, not the token.${s}`)}return new E(e,i,e>=400&&e<500&&e!==429?F(e,t).message:`HEY returned HTTP ${e}. Please try again.`)}async function re(e){let r=e.body?.getReader();if(!r)return"";let t=[],n=0;try{for(;;){let{done:f,value:u}=await r.read();if(f)break;if(n+=u.byteLength,n>2e6)throw await r.cancel(),new d("HEY response exceeds the two-megabyte read limit. Narrow the query.");t.push(u)}}finally{r.releaseLock()}let i=new Uint8Array(n),s=0;for(let f of t)i.set(f,s),s+=f.byteLength;return new TextDecoder().decode(i)}function se(e){let r=V.get(e.http);r||(r={cache:new Map,pending:new Map,requests:[],backoff:K()},V.set(e.http,r));let t=r;return async(n,i,s="json",f,u=!1,p=1)=>{let h=u?e.heyApiKey:void 0;if(u&&!h)throw new d("HEY bulk reads require an operator-configured server API key. Never provide a key in tool arguments.");if(h&&(typeof h!="string"||h.length>4096||[...h].some(a=>a.charCodeAt(0)<33||a.charCodeAt(0)>126)))throw new d("The server HEY API key configuration is invalid. Ask the Oak operator to correct it.");let c=f===void 0&&!u;if(t.backoff.blocked())throw new d(t.backoff.limited()?"HEY received too many requests. Please try again later.":"HEY Research Lab is temporarily unavailable. Please try again later.");let m=Date.now();for(let[a,k]of t.cache)k.expires<=m&&t.cache.delete(a);let _=c?t.cache.get(n):void 0;if(_)return i(_.body),structuredClone(_.body);let b=c?t.pending.get(n):void 0;if(b){let a=await b;return i(a),structuredClone(a)}if(t.requests=t.requests.filter(a=>a>m-z),t.requests.length+p>Q)throw new d("HEY received too many requests. Please try again later.");for(let a=0;a<p;a++)t.requests.push(m);let H=(async()=>{try{let a=await e.http(`${I}${n}`,{method:f===void 0?"GET":"POST",credentials:"omit",redirect:"error",headers:{accept:s==="csv"?"text/csv":"application/json","x-hey-integration":"oak/1.0.0","user-agent":"oak/1.0.0",...f===void 0?{}:{"content-type":"application/json"},...h?{authorization:`Bearer ${h}`}:{}},...f===void 0?{}:{body:JSON.stringify(f)},signal:AbortSignal.timeout(1e4)}).catch(y=>{if(y instanceof U)return y.response;throw t.backoff.defer(null),y});if(a.status===429)throw t.backoff.defer(a.headers.get("retry-after"),!0),await a.body?.cancel(),new d("HEY received too many requests. Please try again later.");if(a.status>=500)throw t.backoff.defer(a.headers.get("retry-after")),await a.body?.cancel(),T(a.status,null,n);let k;try{let y=await re(a);k=s==="csv"&&a.ok?{format:"csv",value:y}:JSON.parse(y)}catch(y){throw y instanceof d?y:a.ok?new d("HEY returned malformed JSON. Please try again."):T(a.status,null,n)}if(u&&[401,403].includes(a.status))throw new d("HEY refused keyed access. Ask the Oak operator to check the server key and allowance.");if(!a.ok)throw T(a.status,k,n);return o(k)||v(),i(k),c&&t.cache.set(n,{body:k,expires:Date.now()+z}),k}catch(a){throw a instanceof d?a:new d(q(a))}})();c&&t.pending.set(n,H);try{return structuredClone(await H)}finally{c&&t.pending.delete(n)}}}function ie(e,r){if(!o(e)||Object.keys(e).some(t=>t!==r))throw new d(`Provide only ${r}; HEY reads are fixed to Robinhood Chain 4663.`)}var ae=e=>{let r=se(e);return{tools:[{name:"heyresearch_research_project",inputSchema:{type:"object",additionalProperties:!1,required:["project"],properties:{...D,project:{type:"string",minLength:1,maxLength:200,description:"A project slug, project name, ticker search, or token contract address on chain 4663."}}},async execute(t){let n=P(t,["project"]);if(!g(t.project)||t.project.trim().length>200)throw new d("Provide a project slug, name, ticker, or token contract address.");let i=t.project.trim();if(/^0x/i.test(i)&&!R.test(i))throw new d("Provide a full token contract address on Robinhood Chain 4663.");let s=R.test(i)?"address":Y.test(i)?"project":"q",f=s==="address"?i.toLowerCase():i,u=l=>r(`/api/agent/research_project?${l}=${encodeURIComponent(f)}`,j=>M(j,"research_project")),p;try{p=await u(s)}catch(l){if(s!=="project"||!(l instanceof E)||l.status!==404||l.code!=="not_found")throw l;p=await u("q")}let h=p.subject.project,c=o(h.token)?h.token.address:void 0,m=s==="address"?f:c?.toLowerCase(),_=m?await r(`/api/v1/builder?chain=${w}&token=${m}&integration=oak/1.0.0`,l=>ee(l,m)):null,b=_?.activity_applies_to_token===!1;s==="address"&&c&&c.toLowerCase()!==m&&!b&&v();let H=p.links,a={chainId:w,research:p,builder:_,freshnessAssessment:x(p),attribution:{page:H.page,citation:p.citation,..._&&!b?{project_link:_.project_link}:{}},warnings:b?["This activity belongs to the project, not this token. The project names a different contract; do not link this token to the project."]:[],notAdvice:!0,disclaimer:G},k=p.data,y={subject:p.subject,answer:p.answer,asOf:p.asOf,boundaries:p.boundaries,data:Object.fromEntries(["identity","builderState","contractIdentity","marketContext","usageContext","unknowns"].filter(l=>Object.hasOwn(k,l)).map(l=>[l,k[l]]))},W=[...Object.entries(k).filter(([l])=>!Object.hasOwn(y.data,l)).map(([l,j])=>[`data.${l}`,j]),...Object.entries(p).filter(([l])=>!Object.hasOwn(y,l))].map(([l,j])=>({name:l,chars:JSON.stringify(j).length,...Array.isArray(j)?{items:j.length}:{}}));return O(a,n,[],{...a,research:{...y,omittedSections:W}})}},{name:"heyresearch_chain_activity",inputSchema:{type:"object",additionalProperties:!1,properties:{...D,days:{type:"integer",minimum:1,maximum:30,default:7,description:"UTC days of chain activity alongside the seven-day builder brief."}}},async execute(t){let n=P(t,["days"]),i=t.days===void 0?7:t.days;if(typeof i!="number"||!Number.isInteger(i)||i<1||i>30)throw new d("Provide a whole number of days from 1 to 30.");let s=await r("/api/agent/chain_brief",h=>M(h,"chain_brief")),f=await r(`/api/chain?days=${i}`,te),u={chainId:w,brief:s,activity:f,freshnessAssessment:x({brief:s,activity:f}),attribution:{page:s.links.page,citation:s.citation,activity:`${I}/api/chain?days=${i}`},notAdvice:!0,disclaimer:G},p=n.detail==="summary"&&!n.fields.length&&JSON.stringify(s).length>3e3?B(s,{maxChars:3e3,keep:["disclaimer"]}).shaped:s;return O(u,n,["brief"],{...u,brief:p})}},J(r,M),{name:"heyresearch_bulk",inputSchema:{type:"object",additionalProperties:!1,required:["operation","items"],properties:{operation:{type:"string",enum:["snapshots","tokens","scan_cards"],description:"Keyed GET reads. Requires an Oak operator-configured server key; one upstream allowance unit per input. Results are not cached."},items:{type:"array",minItems:1,maxItems:30,items:{type:"string"},description:"Up to 10 project slugs for snapshots; up to 30 token addresses for tokens or scan_cards. Repeated inputs and their order are preserved."}}},async execute(t){if(!o(t)||Object.keys(t).some(c=>!["operation","items"].includes(c)))throw new d("Provide only the bulk operation and items; configure credentials on the Oak server.");let n=t.operation;if(!["snapshots","tokens","scan_cards"].includes(String(n))||!Array.isArray(t.items)||!t.items.length||t.items.length>(n==="snapshots"?10:30)||t.items.some(c=>typeof c!="string"||!(n==="snapshots"?Y:R).test(c)))throw new d("Provide up to 10 valid project slugs or up to 30 full token addresses for the chosen bulk operation.");let i=t.items,s=new URLSearchParams(n==="snapshots"?{slugs:i.join(",")}:n==="tokens"?{addresses:i.join(",")}:{chain:String(w),tokens:i.join(",")}),f=`${n==="snapshots"?"/api/snapshots":n==="tokens"?`/api/token/${w}`:"/api/v1/scan"}?${s}`,u=await r(f,c=>{if(n==="scan_cards")return ne(c,i);(!Array.isArray(c.items)||c.items.length!==i.length||c.requested!==i.length||typeof c.found!="number"||!Number.isSafeInteger(c.found)||c.found<0||typeof c.disclaimer!="string"||c.items.some((m,_)=>!o(m)||m.input!==i[_]||typeof m.found!="boolean"||o(m.data)&&m.data.chainId!==void 0&&m.data.chainId!==w))&&v()},"json",void 0,!0,i.length),p=u.items.filter(c=>c.found===!0).length,h=n==="scan_cards"?u.found_count:u.found;return{consistency:{reportedFound:h,countedFound:p,consistent:h===p},warnings:h===p?[]:[`HEY reports ${n==="scan_cards"?"found_count":"found"}=${h}, but ${p} returned items have found=true. Provider data is preserved; check the per-item states.`],chainId:w,operation:n,data:u,attribution:{source:`${I}${f}`,provider:"HEY Research Lab"},notAdvice:!0,untrusted:!0,disclaimer:X}}},{name:"heyresearch_validate_receipt",inputSchema:{type:"object",additionalProperties:!1,required:["receipt"],properties:{receipt:{type:"object",description:"AgentResearchReceipt v1. Sent to HEY for stateless validation; no reasoning trace, wallet credential or API key. Maximum 64 KiB."}}},async execute(t){if(ie(t,"receipt"),!o(t.receipt))throw new d("Provide an AgentResearchReceipt object.");let n=JSON.stringify(t.receipt);if(new TextEncoder().encode(n).length>65536)throw new d("The research receipt exceeds 64 KiB.");if(/"(?:private_key|secret_key|wallet_key|mnemonic|seed|seed_phrase|recovery_phrase)"\s*:/i.test(n))throw new d("Do not include wallet credentials in a research receipt.");let i=await r("/api/receipts/validate",s=>{(!Object.keys(s).length||s.error)&&v()},"json",t.receipt);return{chainId:w,data:i,attribution:{source:`${I}/api/receipts/validate`,provider:"HEY Research Lab"},notAdvice:!0,disclaimer:Z}}}]}},ke=e=>N("heyresearch",[ae(e)]);export{X as HEY_KEYED_DISCLAIMER,Z as HEY_RECEIPT_DISCLAIMER,G as HEY_RECORDS_DISCLAIMER,ke as createModule,ae as createModulePart};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../../../chunks/
|
|
1
|
+
import{a,b,c,d,e,f}from"../../../chunks/L76P6WIH.js";import"../../../chunks/TWR7BF72.js";import"../../../chunks/TMVO2DAK.js";import"../../../chunks/YZHJ4BAP.js";import"../../../chunks/HOEQVPY7.js";import"../../../chunks/GQ3XZFRL.js";import"../../../chunks/OEZ7FCLF.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as HEY_PUBLIC_READ_DISCLAIMER,b as HEY_READ_DEFAULT,c as HEY_READ_PARAMS,d as heyReadArgs,f as publicReadTool,e as shapeHeyRead};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunks/
|
|
1
|
+
import{a,b,c}from"../../../chunks/YZHJ4BAP.js";import"../../../chunks/HOEQVPY7.js";import"../../../chunks/GQ3XZFRL.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{c as createHeyScanner,a as heyRequestError,b as parseHeyScanCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../../../chunks/
|
|
1
|
+
import{a,b}from"../../../chunks/W5GWK72I.js";import"../../../chunks/YZHJ4BAP.js";import"../../../chunks/HOEQVPY7.js";import"../../../chunks/GQ3XZFRL.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as parsePonsAddresses,b as readTokenFacts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as a,m as b}from"../../../chunks/
|
|
1
|
+
import{l as a,m as b}from"../../../chunks/M2SWILNG.js";import"../../../chunks/G2LAO23N.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as chainPageProperties,b as readChainNames};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i}from"../../../chunks/
|
|
1
|
+
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i}from"../../../chunks/M2SWILNG.js";import"../../../chunks/G2LAO23N.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{c as addressValue,i as createModule,h as createModulePart,b as durationSeconds,f as hoodagReferral,g as hoodagReferralSummary,a as nameParts,e as tool,d as uintValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunks/
|
|
1
|
+
import{a}from"../../../chunks/M2SWILNG.js";import"../../../chunks/G2LAO23N.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as createManagementTools};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"../../../chunks/
|
|
1
|
+
import{b as a}from"../../../chunks/M2SWILNG.js";import"../../../chunks/G2LAO23N.js";import"../../../chunks/SPJCSEKP.js";import"../../../chunks/Z25UKUJF.js";import"../../../chunks/43LI5NKJ.js";import"../../../chunks/SCG5HWMN.js";import"../../../chunks/5TUXSOMI.js";import"../../../chunks/66F5ZH34.js";import"../../../chunks/NWNYJ26T.js";import"../../../chunks/IX3GZMTM.js";import"../../../chunks/5RXALTDT.js";import"../../../chunks/EWZFZUVF.js";import"../../../chunks/XSD5NL7J.js";import"../../../chunks/JXOEJPJ4.js";import"../../../chunks/63YRSLDK.js";export{a as createPublicReadTools};
|