v4.5.0: Hyperliquid (HypurrClaw) ARIA tools, fee meter, autopilot mandates, explorer auto-refresh#206
Merged
Merged
Conversation
25bps fee (config-driven, 75bps compiled ceiling) rides as an atomic SystemProgram.transfer leg appended at the SolanaExecutionService chokepoint. Devnet always free; meter hard-disabled until a treasury is configured. New transfer_sol ARIA tool routes agent sends through the meter, with the fee quoted on the approval card before anything signs. fee_events ledger (V52) is the local source of truth for routed-volume and wallet-concentration metrics; only aggregates cross IPC.
Add ARIA Autopilot — standing, structured trading mandates that execute
unattended on mainnet on a schedule. A mandate is parsed from natural
language into a strategy (target mint, DCA clip, exposure cap, interval,
TP/SL/liquidity exit rules); arming it authorizes all subsequent
autonomous trades.
Execution reuses the human-swap path: getSwapQuote mints the hash-pinned
review draft server-side, executeSwap signs through the signer guard and
fires the fee meter. No guard is bypassed.
- schema V54: autopilot_mandates + idempotent autopilot_actions ledger
- AutopilotService: CRUD, arm/disarm, kill switch, hard exposure cap,
position valuation via reverse quote, TP/SL/liquidity exits, P&L
- AutopilotScheduler: re-entrancy-guarded 5s sweep, boots with the app
- ARIA tools: create_mandate, autopilot_arm/disarm/list
- IPC + preload + top-level Autopilot panel ("The Desk"): mandate cards
with live unrealized P&L, action tape, kill switch
Also carries the in-progress Flywheel platform-share work staged in the
shared schema/types files, and fixes a latent FlywheelPreview typecheck
gap (missing platformBps).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Watch the active project root in the main process and push fs:changed so the explorer reloads when files are created/added/removed outside DAEMON. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…us work Hidden terminal instances stayed stacked on top of the active one and swallowed wheel/click events. Move visibility to the wrapper and disable pointer-events when not visible. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Drop the agent-first `hyperliquid` CLI into ARIA as a tool domain so the operator can read Hyperliquid markets and trade perps/spot from natural language. Reads auto-run; signing actions are sensitive-gated and dry-run previewable. Network defaults to testnet; the CLI owns its own encrypted wallet so DAEMON never holds a Hyperliquid key. - HyperliquidCliService: binary discovery + execFile-only runner (forces JSON, injects --testnet/--dry-run, maps CLI exit codes), typed wrappers - aria/tools/hyperliquid: hl_* read/preview/trade tools with strict input validation and an [HL-MAINNET]/[HL-TESTNET] marker on sensitive summaries - SettingsService: hyperliquid network setting (testnet default) - ipc/hyperliquid + preload bridge: status + set-network
# Conflicts: # electron/main/index.ts # electron/preload/index.ts # src/panels/AgentWorkbench/ApprovalCard.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v4.5.0. Bundles the unmerged feature work on this branch plus the new Hyperliquid integration.
Hyperliquid (HypurrClaw CLI) ARIA tools
ARIA can now read Hyperliquid markets and trade perps/spot from natural language by driving the agent-first
hyperliquidCLI. Reads auto-run; signing actions are sensitive-gated and dry-run previewable. Network defaults to testnet, and the CLI owns its own encrypted wallet, so DAEMON never holds a Hyperliquid key.HyperliquidCliService: binary discovery + execFile-only runner (forces JSON, injects--testnet/--dry-run, maps CLI exit codes to clean errors), typed read/write wrappersaria/tools/hyperliquid:hl_*read / preview / trade tools with strict input validation and an[HL-MAINNET]/[HL-TESTNET]marker on sensitive summarieshyperliquid:status/set-networkIPC and preload bridgeNo raw-shell tool added: a single known binary invoked with a fixed argv, the same sanctioned pattern as
CheckRunnerService.Also in this release (branch commits)
feat(fees): execution fee meter on agent-routed mainnet executionfeat(autopilot): unattended scheduled trading mandates with exit rulesfeat(explorer): auto-refresh file tree on external filesystem changesfix(terminal): hidden instances inert so scroll and click-to-focus workGate loop
typecheck, 895 tests, and build all green.