Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c81e5eb
switch from lite-api to api.jup.ag with API key auth
odilitime Feb 11, 2026
5e6e90e
fix dev script to use tsup --watch instead of build.ts
odilitime Feb 11, 2026
345694b
fix getTokenPair and getHistoricalPrices to use real Jupiter endpoints
odilitime Feb 11, 2026
b1d3cca
refuse to start Jupiter service without JUPITER_API_KEY
odilitime Feb 11, 2026
39e6d9e
fix getTokenPrice decimal bug and cache key mismatch
odilitime Feb 11, 2026
15a2f0d
add TTL + size cap to routeCache, defer queue timers to start()
odilitime Feb 11, 2026
c363fe3
service.ts: fix appropriate node
Feb 15, 2026
6a39d05
service.ts: fix any call
Feb 15, 2026
b340047
service.ts: fix in cursor
Feb 15, 2026
eb9b8f7
service.ts: fix in cursor
Feb 15, 2026
3a92fa5
service.ts: improve error handling
Feb 15, 2026
e5f1783
service.ts: fix in cursor
Feb 16, 2026
5e307f3
service.ts: fix in cursor
Feb 16, 2026
3d612d1
docs: add review dismissal comments
Feb 16, 2026
b96c223
service.ts: fix the method
Feb 16, 2026
cc89e9a
service.ts: fix in cursor
Feb 16, 2026
8c5ad9e
docs: add review dismissal comments
Feb 16, 2026
d092fc7
service.ts: fix in cursor
Feb 16, 2026
6e91857
service.ts: simplify implementation
Feb 16, 2026
8d2c795
docs: add review dismissal comments
Feb 16, 2026
e2cc8a7
service.ts: fix in cursor
Feb 16, 2026
0420f53
docs: add review dismissal comments
Feb 16, 2026
a2afcae
service.ts: simplify implementation
Feb 16, 2026
7acad24
service.ts: fix in cursor
odilitime Feb 17, 2026
6635c26
service.ts: simplify implementation
odilitime Feb 17, 2026
a165741
service.ts: simplify implementation
odilitime Feb 17, 2026
23f355b
service.ts: simplify implementation
odilitime Feb 17, 2026
0b483bc
service.ts: simplify implementation
odilitime Feb 17, 2026
e0faefd
service.ts: simplify implementation
odilitime Feb 17, 2026
13c0efc
service.ts: simplify implementation
odilitime Feb 17, 2026
5c48223
service.ts: simplify implementation
odilitime Feb 17, 2026
9165b3b
service.ts: simplify implementation
odilitime Feb 17, 2026
34afa9f
service.ts: simplify implementation
odilitime Feb 17, 2026
dd69ab0
service.ts: simplify implementation
odilitime Feb 17, 2026
3d87234
service.ts: remove duplicate code
odilitime Feb 20, 2026
c5e0291
service.ts: fix if you
odilitime Feb 20, 2026
72918ae
service.ts: remove duplicate code
odilitime Feb 20, 2026
b981558
service.ts: fix in cursor
odilitime Feb 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 43 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,44 @@
# Dependencies
node_modules

# Build outputs
dist
node_modules
build
*.tsbuildinfo
.turbo
.turbo-tsconfig.json

# Environment files
.env
.env.local
.env.production
.env.bak

# IDE
.idea
.vscode
.zed
.DS_Store

# Test coverage
coverage
.nyc_output

# Logs
*.log
logs

# Cache
cache
.cache
tokencache

# Temporary files
*.tmp
*.temp
.tmp

# Bundler artifacts
tsup.config.bundled_*.mjs
# prr state file (auto-generated)
.pr-resolver-state.json
51 changes: 51 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bun
import { $ } from "bun";

async function build() {
const totalStart = Date.now();
const pkg = await Bun.file("package.json").json();
const externalDeps = [
...Object.keys(pkg.dependencies ?? {}),
...Object.keys(pkg.peerDependencies ?? {}),
];

// Use the clean script from package.json
if (pkg.scripts?.clean) {
console.log("🧹 Cleaning...");
await $`bun run clean`.quiet();
}

const esmStart = Date.now();
console.log("🔨 Building @elizaos/plugin-jupiter...");
const esmResult = await Bun.build({
entrypoints: ["src/index.ts"],
outdir: "dist",
target: "node",
format: "esm",
sourcemap: "external",
minify: false,
external: externalDeps,
});
Comment on lines 4 to 30
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev runs bun run build.ts --watch, but build.ts never reads CLI args and doesn’t enable any watch mode for Bun.build. As-is, --watch is ignored and dev mode will just run a single build and exit.

Copilot uses AI. Check for mistakes.
if (!esmResult.success) {
console.error(esmResult.logs);
throw new Error("ESM build failed");
}
console.log(`✅ Build complete in ${((Date.now() - esmStart) / 1000).toFixed(2)}s`);

const dtsStart = Date.now();
console.log("📝 Generating TypeScript declarations...");
try {
await $`tsc --project tsconfig.build.json`;
console.log(`✅ Declarations generated in ${((Date.now() - dtsStart) / 1000).toFixed(2)}s`);
} catch (error) {
console.warn(`⚠️ TypeScript declaration generation had errors (${((Date.now() - dtsStart) / 1000).toFixed(2)}s)`);
console.warn(" Build will continue - fix type errors when possible");
}

console.log(`🎉 All builds finished in ${((Date.now() - totalStart) / 1000).toFixed(2)}s`);
}

build().catch((err) => {
console.error("Build failed:", err);
process.exit(1);
});
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"engines": {
"bun": ">=1.0.0"
},
"dependencies": {
"@elizaos/core": "^1.0.0",
"@elizaos/plugin-solana": "^1.0.0-beta.51"
Expand All @@ -12,7 +15,7 @@
"tsup": "^8.3.5"
},
"scripts": {
"build": "tsup --format esm --dts",
"build": "bun run build.ts",
"dev": "tsup --format esm --dts --watch",
"clean": "rm -rf dist",
"lint": "prettier --write ./src"
Expand Down
Loading