feat: bug fixes, tests, CI, and --json agent output#7
Merged
Conversation
- Remove MoltBot references from README, CLI, and skill modules - Fix exchangeRate and fee percentage calculations in lendaswap skill - Fix getAvailablePairs with proper type intersection for SDK gap - Fix 'as any' cast in lightning.ts with proper type assertion - Fix README Quick Start (init no longer requires private key) - Add missing CLI commands to README table - Expand .gitignore for full coverage - Add patches/README.md documenting the ESM import patch - Fix VHTL typo to VHTLC in lendaswap skill Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add vitest with 17 unit tests for lendaswap utilities (mapSwapStatus, isTerminalStatus, TOKEN_DECIMALS, exchange rate math) - Export mapSwapStatus, isTerminalStatus, TOKEN_DECIMALS from lendaswap module for testability - Add GitHub Actions CI workflow (Node 20 + 22, lint/build/test) - Add vitest.config.ts to scope test discovery to src/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The pnpm/action-setup@v4 auto-detects the version from the packageManager field in package.json. Specifying version: 10 in the workflow conflicted with pnpm@10.20.0 in package.json. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tiero
approved these changes
Feb 12, 2026
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.
Summary
as anycast in lightning.ts with proper type assertion--jsonflag on every CLI command for machine-readable output--version/-vflagTest plan
pnpm buildpassespnpm testpasses (17 tests)pnpm lintpassesarkade balance --jsonreturns valid JSONarkade --versionprints version