Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(agents): round-trip skill trial_uses in GET skill_prices

nirholas0a5edbaad1e5
diff --git a/api/agents.js b/api/agents.js
index 6d91b3d6f..ef1b5f6af 100644
--- a/api/agents.js
+++ b/api/agents.js
@@ -338,7 +338,8 @@ export async function handleGetOne(req, res, id) {
jsonb_build_object(
'amount', sp.amount,
'currency_mint', sp.currency_mint,
- 'chain', sp.chain
+ 'chain', sp.chain,
+ 'trial_uses', sp.trial_uses
)
)
FROM agent_skill_prices sp
diff --git a/prompts/monetization/02-creator-ui-set-prices.md b/prompts/monetization/02-creator-ui-set-prices.md
deleted file mode 100644
index 17f4ee89a..000000000
--- a/prompts/monetization/02-creator-ui-set-prices.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-status: completed
----
-
-# Prompt 2: Creator UI to Set Skill Prices
-
-## Objective
-Create a user interface within the agent creation/editing page that allows creators to set and update prices for their agent's skills.
-
-## Explanation
-To enable skill monetization, creators need a way to manage the prices of their skills. This new UI will allow them to assign a price and currency to each skill, which will then be saved to the database.
-
-## Instructions
-1. **Modify the Agent Edit Page:**
- * Locate the agent editing page, likely `agent-edit.html` or a similar file.
- * Find the section where skills are listed or added.
- * For each skill, add input fields for `price` and `currency`. The currency could be a dropdown (e.g., "USDC", "SOL").
-
-2. **Handle Form Submission:**
- * In the corresponding JavaScript file (e.g., `src/agent-edit.js`), update the form submission logic.
- * When the creator saves the agent, collect the pricing information for each skill.
- * Send this data to the backend API.
-
-## Code Example (Frontend - `agent-edit.html`)
-
-This is a conceptual example of what the new skill section might look like.
-
-```html
-<div id="skills-section">
- <!-- Existing skill list -->
- <div class="skill-item">
- <span>Skill Name</span>
- <input type="number" class="skill-price-input" placeholder="Price">
- <select class="skill-currency-select">
- <option value="USDC">USDC</option>
- <option value="SOL">SOL</option>
- </select>
- </div>
-</div>
-```
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "prompts/monetization/02-creator-ui-set-prices.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.