Skip to content

Enable Pump and PumpSwap in the Studio scenario editor - #3

Open
92Infinitus92 wants to merge 4 commits into
developfrom
feat/pump-protocol-ui
Open

Enable Pump and PumpSwap in the Studio scenario editor#3
92Infinitus92 wants to merge 4 commits into
developfrom
feat/pump-protocol-ui

Conversation

@92Infinitus92

@92Infinitus92 92Infinitus92 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Stacked on #2 - review/merge that one first; this branch targets it, not
develop, so the diff stays to just the three UI commits.

What's here:

  • Pump and PumpSwap show up as protocol tiles in the editor and the AI protocol picker,
    with their pump.fun icons.
  • Scenario cards now get their protocol name from the templates list instead of guessing
    from the templateId prefix — so pump-amm-* shows as PumpSwap, not "Pump", and kamino
    stays Kamino.
  • Two example prompts in the AI header: reset a coin's bonding curve, and price-spike a
    migrated pool.

The protocol-resolution logic moved into a small helper (scenarios-data.ts) with unit tests
covering the cases that used to break.

Greptile Summary

The PR extends the Studio scenario editor with Pump and PumpSwap support and centralizes scenario protocol resolution.

  • Adds Pump and PumpSwap protocol metadata and icons.
  • Adds a dedicated Pump graduation workflow and example AI prompts.
  • Moves scenario parsing and protocol resolution into tested helpers.
  • Updates AI-provider streaming and tool-call handling.

Confidence Score: 5/5

The PR appears safe to merge because no eligible blocking failure remains in the available follow-up review context.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/studio/src/lib/ai-client.ts Migrates OpenAI generation to the Responses API and expands multi-round MCP tool-call handling.
apps/studio/src/lib/scenarios-data.ts Centralizes API scenario conversion and resolves protocol labels through template metadata with a prefix fallback.
apps/studio/src/lib/scenarios-api.ts Adds lossless scenario parsing, Pump graduation requests, and scenario import helpers.
apps/studio/src/components/svm/scenarios-bento.tsx Integrates Pump graduation creation, scenario refresh, and editor navigation into the scenario browser.
apps/studio/src/components/svm/scenario-editor.tsx Adds Pump-related editor behavior and consolidates token selector option resolution.
apps/studio/src/components/svm/ai-header.tsx Adds Pump-focused prompts, protocol controls, and model reasoning configuration.

Sequence Diagram

sequenceDiagram
  actor User
  participant Studio as Studio UI
  participant API as Studio API
  participant List as Scenario List
  User->>Studio: Submit Pump token mint
  Studio->>API: POST /v1/scenarios/pump-graduation
  API-->>Studio: Created scenario metadata
  Studio->>List: Refresh scenarios
  List->>API: GET /v1/scenarios
  API-->>List: Scenario collection
  Studio->>Studio: Navigate to scenario editor
Loading

Reviews (2): Last reviewed commit: "feat(studio): Pump Graduation preset and..." | Re-trigger Greptile

@92Infinitus92 92Infinitus92 self-assigned this Aug 10, 2026
@92Infinitus92

Copy link
Copy Markdown
Collaborator Author

@greptileai

@92Infinitus92
92Infinitus92 force-pushed the feat/pump-protocol-ui branch from 3ba4494 to 5b76a33 Compare August 12, 2026 12:49
@92Infinitus92
92Infinitus92 force-pushed the feat/download-scenario branch from a123394 to 433eb90 Compare August 12, 2026 13:08
Build the graduation scenario from a token mint via the graduation endpoint,
through a no-LLM preset dialog and an AI chip. Add custom-mint support in the
override editor so mints outside the verified catalog are shown and preserved.
@92Infinitus92
92Infinitus92 force-pushed the feat/pump-protocol-ui branch from 5b76a33 to 1473c2d Compare August 12, 2026 13:29
@92Infinitus92
92Infinitus92 changed the base branch from feat/download-scenario to develop August 12, 2026 13:29
@92Infinitus92
92Infinitus92 marked this pull request as ready for review August 12, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant