agentlaunch-templates 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/claude-context.d.ts +20 -0
- package/dist/claude-context.d.ts.map +1 -0
- package/dist/claude-context.js +331 -0
- package/dist/claude-context.js.map +1 -0
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +67 -0
- package/dist/generator.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* claude-context.ts — Claude Code rules and skills for scaffolded projects
|
|
3
|
+
*
|
|
4
|
+
* These files are copied to every new agent project so Claude has full context
|
|
5
|
+
* to help build, deploy, and tokenize agents.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RULES: {
|
|
8
|
+
"agentlaunch.md": string;
|
|
9
|
+
"agentverse.md": string;
|
|
10
|
+
"uagent-patterns.md": string;
|
|
11
|
+
};
|
|
12
|
+
export declare const SKILLS: {
|
|
13
|
+
"build-agent/SKILL.md": string;
|
|
14
|
+
"deploy/SKILL.md": string;
|
|
15
|
+
"tokenize/SKILL.md": string;
|
|
16
|
+
"status/SKILL.md": string;
|
|
17
|
+
"market/SKILL.md": string;
|
|
18
|
+
};
|
|
19
|
+
export declare function buildPackageJson(name: string): string;
|
|
20
|
+
//# sourceMappingURL=claude-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-context.d.ts","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,KAAK;;;;CA6JjB,CAAC;AAMF,eAAO,MAAM,MAAM;;;;;;CAgJlB,CAAC;AAMF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBrD"}
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* claude-context.ts — Claude Code rules and skills for scaffolded projects
|
|
3
|
+
*
|
|
4
|
+
* These files are copied to every new agent project so Claude has full context
|
|
5
|
+
* to help build, deploy, and tokenize agents.
|
|
6
|
+
*/
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// Rules
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
export const RULES = {
|
|
11
|
+
"agentlaunch.md": `# AgentLaunch Platform Rules
|
|
12
|
+
|
|
13
|
+
When working with AgentLaunch tokens and the platform API:
|
|
14
|
+
|
|
15
|
+
## Constants (from smart contracts -- never change)
|
|
16
|
+
|
|
17
|
+
- Deploy fee: 120 FET (read from contract, can change via multi-sig)
|
|
18
|
+
- Graduation: 30,000 FET liquidity -> auto DEX listing
|
|
19
|
+
- Trading fee: 2% -> 100% to REVENUE_ACCOUNT (protocol treasury)
|
|
20
|
+
- NO creator fee. The 2% fee has NO split. All to protocol.
|
|
21
|
+
- Total buy supply: 800,000,000 tokens per token
|
|
22
|
+
- Default chain: BSC (testnet=97, mainnet=56)
|
|
23
|
+
|
|
24
|
+
## API Authentication
|
|
25
|
+
|
|
26
|
+
- Use \`X-API-Key\` header with Agentverse API key
|
|
27
|
+
- Key is read from \`.env\` AGENTVERSE_API_KEY
|
|
28
|
+
- No wallet signatures needed for API calls
|
|
29
|
+
|
|
30
|
+
## API Base URLs
|
|
31
|
+
|
|
32
|
+
- Production (default): \`https://agent-launch.ai/api\`
|
|
33
|
+
- Dev: set \`AGENT_LAUNCH_ENV=dev\`
|
|
34
|
+
|
|
35
|
+
## Handoff Protocol
|
|
36
|
+
|
|
37
|
+
- Agents NEVER hold private keys
|
|
38
|
+
- All on-chain actions go through handoff links
|
|
39
|
+
- Deploy link: \`https://agent-launch.ai/deploy/{tokenId}\`
|
|
40
|
+
- Trade link: \`https://agent-launch.ai/trade/{tokenAddress}?action=buy&amount=100\`
|
|
41
|
+
|
|
42
|
+
## Key Endpoints
|
|
43
|
+
|
|
44
|
+
\`\`\`
|
|
45
|
+
POST /api/agents/tokenize Create token -> handoff link
|
|
46
|
+
GET /api/agents/tokens List tokens
|
|
47
|
+
GET /api/agents/token/{address} Token details
|
|
48
|
+
GET /api/tokens/calculate-buy Preview buy
|
|
49
|
+
GET /api/tokens/calculate-sell Preview sell
|
|
50
|
+
GET /api/platform/stats Platform stats
|
|
51
|
+
\`\`\`
|
|
52
|
+
|
|
53
|
+
## Token Lifecycle
|
|
54
|
+
|
|
55
|
+
1. Agent calls POST /api/agents/tokenize with name, symbol, description
|
|
56
|
+
2. API returns token record with handoff link
|
|
57
|
+
3. Human visits link, connects wallet, signs transaction (pays 120 FET)
|
|
58
|
+
4. Token deploys on-chain with bonding curve
|
|
59
|
+
5. At 30,000 FET liquidity, auto-lists on DEX
|
|
60
|
+
`,
|
|
61
|
+
"agentverse.md": `# Agentverse Deployment Rules
|
|
62
|
+
|
|
63
|
+
When deploying agents to Agentverse:
|
|
64
|
+
|
|
65
|
+
## API Base URL
|
|
66
|
+
|
|
67
|
+
\`\`\`
|
|
68
|
+
https://agentverse.ai/v1
|
|
69
|
+
\`\`\`
|
|
70
|
+
|
|
71
|
+
## Auth Header
|
|
72
|
+
|
|
73
|
+
\`\`\`
|
|
74
|
+
Authorization: Bearer <AGENTVERSE_API_KEY>
|
|
75
|
+
\`\`\`
|
|
76
|
+
|
|
77
|
+
Note: Capital "Bearer", followed by space, then the raw API key.
|
|
78
|
+
|
|
79
|
+
## CRITICAL: Code Upload Format
|
|
80
|
+
|
|
81
|
+
The code field MUST be double-encoded JSON:
|
|
82
|
+
|
|
83
|
+
\`\`\`python
|
|
84
|
+
code_array = [{"language": "python", "name": "agent.py", "value": source_code}]
|
|
85
|
+
payload = {"code": json.dumps(code_array)}
|
|
86
|
+
\`\`\`
|
|
87
|
+
|
|
88
|
+
## Agent Code Requirements
|
|
89
|
+
|
|
90
|
+
- Use \`Agent()\` with zero params (Agentverse provides config)
|
|
91
|
+
- Use Chat Protocol v0.3.0 from \`uagents_core.contrib.protocols.chat\`
|
|
92
|
+
- Must have \`@chat_proto.on_message(ChatAcknowledgement)\` handler
|
|
93
|
+
- Use \`ctx.logger\`, never \`print()\`
|
|
94
|
+
- Use \`datetime.now()\` not \`datetime.utcnow()\` (deprecated)
|
|
95
|
+
- End sessions with \`EndSessionContent\`
|
|
96
|
+
- Include \`publish_manifest=True\` in \`agent.include()\`
|
|
97
|
+
|
|
98
|
+
## Deployment Flow
|
|
99
|
+
|
|
100
|
+
1. \`POST /v1/hosting/agents\` -- creates agent, returns address
|
|
101
|
+
2. \`PUT /v1/hosting/agents/{addr}/code\` -- upload (double-encoded!)
|
|
102
|
+
3. \`POST /v1/hosting/secrets\` -- set AGENTVERSE_API_KEY etc.
|
|
103
|
+
4. \`POST /v1/hosting/agents/{addr}/start\` -- start agent
|
|
104
|
+
5. \`GET /v1/hosting/agents/{addr}\` -- poll until compiled=true (15-60s)
|
|
105
|
+
|
|
106
|
+
## Common Errors
|
|
107
|
+
|
|
108
|
+
- "Invalid code format" -- code field not json.dumps'd
|
|
109
|
+
- Agent stuck in "compiling" -- wait longer, check logs for syntax errors
|
|
110
|
+
- 401 Unauthorized -- bad API key or missing "Bearer" prefix
|
|
111
|
+
`,
|
|
112
|
+
"uagent-patterns.md": `# uAgent Code Patterns
|
|
113
|
+
|
|
114
|
+
When writing Agentverse agent code:
|
|
115
|
+
|
|
116
|
+
## Minimal Working Agent
|
|
117
|
+
|
|
118
|
+
\`\`\`python
|
|
119
|
+
from uagents import Agent, Context
|
|
120
|
+
from uagents_core.contrib.protocols.chat import (
|
|
121
|
+
ChatMessage, ChatAcknowledgement, TextContent,
|
|
122
|
+
EndSessionContent, chat_protocol_spec
|
|
123
|
+
)
|
|
124
|
+
from datetime import datetime
|
|
125
|
+
|
|
126
|
+
agent = Agent() # Zero params on Agentverse
|
|
127
|
+
chat_proto = agent.create_protocol(spec=chat_protocol_spec)
|
|
128
|
+
|
|
129
|
+
@chat_proto.on_message(ChatMessage)
|
|
130
|
+
async def handle_message(ctx: Context, sender: str, msg: ChatMessage):
|
|
131
|
+
ctx.logger.info(f"Message from {sender}")
|
|
132
|
+
text = msg.content[0].text if msg.content else ""
|
|
133
|
+
|
|
134
|
+
await ctx.send(sender, ChatMessage(
|
|
135
|
+
timestamp=datetime.now(),
|
|
136
|
+
msg_id=msg.msg_id,
|
|
137
|
+
content=[TextContent(text=f"You said: {text}")]
|
|
138
|
+
))
|
|
139
|
+
|
|
140
|
+
await ctx.send(sender, ChatMessage(
|
|
141
|
+
timestamp=datetime.now(),
|
|
142
|
+
msg_id=msg.msg_id,
|
|
143
|
+
content=[EndSessionContent()]
|
|
144
|
+
))
|
|
145
|
+
|
|
146
|
+
@chat_proto.on_message(ChatAcknowledgement)
|
|
147
|
+
async def handle_ack(ctx: Context, sender: str, msg: ChatAcknowledgement):
|
|
148
|
+
ctx.logger.info(f"Ack from {sender}: {msg.acknowledged_msg_id}")
|
|
149
|
+
|
|
150
|
+
agent.include(chat_proto, publish_manifest=True)
|
|
151
|
+
|
|
152
|
+
if __name__ == "__main__":
|
|
153
|
+
agent.run()
|
|
154
|
+
\`\`\`
|
|
155
|
+
|
|
156
|
+
## Rules
|
|
157
|
+
|
|
158
|
+
- Always use \`Agent()\` with zero params on Agentverse
|
|
159
|
+
- Always include \`ChatAcknowledgement\` handler (required by protocol)
|
|
160
|
+
- Always end conversations with \`EndSessionContent\`
|
|
161
|
+
- Always use \`ctx.logger\` (never \`print\`)
|
|
162
|
+
- Always use \`datetime.now()\` (never \`utcnow\`, it is deprecated)
|
|
163
|
+
- Always include \`publish_manifest=True\` in \`agent.include()\`
|
|
164
|
+
`,
|
|
165
|
+
};
|
|
166
|
+
// ---------------------------------------------------------------------------
|
|
167
|
+
// Skills
|
|
168
|
+
// ---------------------------------------------------------------------------
|
|
169
|
+
export const SKILLS = {
|
|
170
|
+
"build-agent/SKILL.md": `# /build-agent -- Full Agent Lifecycle
|
|
171
|
+
|
|
172
|
+
Build, deploy, and tokenize an agent in one guided flow.
|
|
173
|
+
|
|
174
|
+
## Steps
|
|
175
|
+
|
|
176
|
+
1. **Gather requirements**: Ask the user what kind of agent they want to build.
|
|
177
|
+
Get the agent name, ticker symbol, and description.
|
|
178
|
+
|
|
179
|
+
2. **Scaffold the agent code**: Generate agent code based on the description.
|
|
180
|
+
Use the patterns in .claude/rules/uagent-patterns.md as a reference.
|
|
181
|
+
|
|
182
|
+
3. **Review with user**: Show the generated code. Let them request changes.
|
|
183
|
+
|
|
184
|
+
4. **Deploy to Agentverse**:
|
|
185
|
+
- Run: \`agentlaunch deploy\`
|
|
186
|
+
- This creates the agent, uploads code, sets secrets, and starts it
|
|
187
|
+
- Poll until compiled (60s timeout)
|
|
188
|
+
|
|
189
|
+
5. **Tokenize on AgentLaunch**:
|
|
190
|
+
- Run: \`agentlaunch tokenize --agent <address> --name "Name" --symbol SYM\`
|
|
191
|
+
- Returns a handoff link for the human to sign
|
|
192
|
+
|
|
193
|
+
6. **Return results to user**:
|
|
194
|
+
- Agent address (agent1q...)
|
|
195
|
+
- Token handoff link
|
|
196
|
+
- Instructions: "Click this link, connect your wallet, and sign to deploy"
|
|
197
|
+
|
|
198
|
+
## Platform Fee Note
|
|
199
|
+
|
|
200
|
+
The 120 FET deployment fee is paid by the human who signs the transaction.
|
|
201
|
+
The 2% trading fee goes 100% to protocol treasury (no creator fee).
|
|
202
|
+
`,
|
|
203
|
+
"deploy/SKILL.md": `# /deploy -- Deploy Agent to Agentverse
|
|
204
|
+
|
|
205
|
+
Deploy the agent.py file to the Agentverse hosting platform.
|
|
206
|
+
|
|
207
|
+
## Usage
|
|
208
|
+
|
|
209
|
+
\`\`\`
|
|
210
|
+
/deploy
|
|
211
|
+
\`\`\`
|
|
212
|
+
|
|
213
|
+
## What It Does
|
|
214
|
+
|
|
215
|
+
1. Reads agent.py from the current directory
|
|
216
|
+
2. Validates it follows uAgent patterns
|
|
217
|
+
3. Creates agent on Agentverse
|
|
218
|
+
4. Uploads code (handles double-encoding automatically)
|
|
219
|
+
5. Sets secrets from .env
|
|
220
|
+
6. Starts the agent
|
|
221
|
+
7. Polls until compiled (60s timeout)
|
|
222
|
+
8. Shows the agent address and status
|
|
223
|
+
|
|
224
|
+
## CLI Command
|
|
225
|
+
|
|
226
|
+
\`\`\`bash
|
|
227
|
+
agentlaunch deploy
|
|
228
|
+
\`\`\`
|
|
229
|
+
|
|
230
|
+
## Auth
|
|
231
|
+
|
|
232
|
+
Uses AGENTVERSE_API_KEY from \`.env\`
|
|
233
|
+
`,
|
|
234
|
+
"tokenize/SKILL.md": `# /tokenize -- Tokenize an Agent
|
|
235
|
+
|
|
236
|
+
Create a tradeable token for an existing Agentverse agent.
|
|
237
|
+
|
|
238
|
+
## Usage
|
|
239
|
+
|
|
240
|
+
\`\`\`
|
|
241
|
+
/tokenize
|
|
242
|
+
\`\`\`
|
|
243
|
+
|
|
244
|
+
## What It Does
|
|
245
|
+
|
|
246
|
+
1. Reads agent address from agentlaunch.config.json (or prompts)
|
|
247
|
+
2. Creates token record on AgentLaunch
|
|
248
|
+
3. Returns a handoff link for the human to sign
|
|
249
|
+
|
|
250
|
+
## CLI Command
|
|
251
|
+
|
|
252
|
+
\`\`\`bash
|
|
253
|
+
agentlaunch tokenize --agent <address> --name "Name" --symbol SYM
|
|
254
|
+
\`\`\`
|
|
255
|
+
|
|
256
|
+
## Next Steps After Tokenizing
|
|
257
|
+
|
|
258
|
+
1. Human clicks the handoff link
|
|
259
|
+
2. Connects wallet (ASI Wallet recommended)
|
|
260
|
+
3. Signs transaction (pays 120 FET deployment fee)
|
|
261
|
+
4. Token goes live on the bonding curve
|
|
262
|
+
5. At 30,000 FET liquidity, graduates to DEX
|
|
263
|
+
`,
|
|
264
|
+
"status/SKILL.md": `# /status -- Check Agent and Token Status
|
|
265
|
+
|
|
266
|
+
Check the deployment status of agents and tokens.
|
|
267
|
+
|
|
268
|
+
## Usage
|
|
269
|
+
|
|
270
|
+
\`\`\`
|
|
271
|
+
/status
|
|
272
|
+
\`\`\`
|
|
273
|
+
|
|
274
|
+
## What It Does
|
|
275
|
+
|
|
276
|
+
- Shows agent status (running, compiled, address)
|
|
277
|
+
- Shows token status if tokenized (price, holders, progress)
|
|
278
|
+
- Shows platform stats
|
|
279
|
+
|
|
280
|
+
## CLI Command
|
|
281
|
+
|
|
282
|
+
\`\`\`bash
|
|
283
|
+
agentlaunch status <address>
|
|
284
|
+
\`\`\`
|
|
285
|
+
`,
|
|
286
|
+
"market/SKILL.md": `# /market -- Browse Tokens and Prices
|
|
287
|
+
|
|
288
|
+
Browse tokens on AgentLaunch and check market data.
|
|
289
|
+
|
|
290
|
+
## Usage
|
|
291
|
+
|
|
292
|
+
\`\`\`
|
|
293
|
+
/market
|
|
294
|
+
\`\`\`
|
|
295
|
+
|
|
296
|
+
## What It Does
|
|
297
|
+
|
|
298
|
+
- Lists trending tokens with prices
|
|
299
|
+
- Shows token details for a specific address
|
|
300
|
+
- Previews buy/sell amounts
|
|
301
|
+
|
|
302
|
+
## CLI Command
|
|
303
|
+
|
|
304
|
+
\`\`\`bash
|
|
305
|
+
agentlaunch list
|
|
306
|
+
agentlaunch status <token_address>
|
|
307
|
+
\`\`\`
|
|
308
|
+
`,
|
|
309
|
+
};
|
|
310
|
+
// ---------------------------------------------------------------------------
|
|
311
|
+
// Package.json for scaffolded projects
|
|
312
|
+
// ---------------------------------------------------------------------------
|
|
313
|
+
export function buildPackageJson(name) {
|
|
314
|
+
return JSON.stringify({
|
|
315
|
+
name: name.toLowerCase().replace(/[^a-z0-9-]/g, "-"),
|
|
316
|
+
version: "1.0.0",
|
|
317
|
+
description: `${name} - AgentLaunch Agent`,
|
|
318
|
+
scripts: {
|
|
319
|
+
deploy: "agentlaunch deploy",
|
|
320
|
+
tokenize: "agentlaunch tokenize",
|
|
321
|
+
status: "agentlaunch status",
|
|
322
|
+
},
|
|
323
|
+
dependencies: {
|
|
324
|
+
"agentlaunch-sdk": "^0.2.0",
|
|
325
|
+
},
|
|
326
|
+
devDependencies: {
|
|
327
|
+
"agentlaunch-cli": "^1.1.0",
|
|
328
|
+
},
|
|
329
|
+
}, null, 2) + "\n";
|
|
330
|
+
}
|
|
331
|
+
//# sourceMappingURL=claude-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-context.js","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8EAA8E;AAC9E,QAAQ;AACR,8EAA8E;AAE9E,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gBAAgB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDnB;IAEC,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDlB;IAEC,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDvB;CACA,CAAC;AAEF,8EAA8E;AAC9E,SAAS;AACT,8EAA8E;AAE9E,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,sBAAsB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCzB;IAEC,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BpB;IAEC,mBAAmB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BtB;IAEC,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;CAqBpB;IAEC,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;CAsBpB;CACA,CAAC;AAEF,8EAA8E;AAC9E,uCAAuC;AACvC,8EAA8E;AAE9E,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;QACpD,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,GAAG,IAAI,sBAAsB;QAC1C,OAAO,EAAE;YACP,MAAM,EAAE,oBAAoB;YAC5B,QAAQ,EAAE,sBAAsB;YAChC,MAAM,EAAE,oBAAoB;SAC7B;QACD,YAAY,EAAE;YACZ,iBAAiB,EAAE,QAAQ;SAC5B;QACD,eAAe,EAAE;YACf,iBAAiB,EAAE,QAAQ;SAC5B;KACF,EACD,IAAI,EACJ,CAAC,CACF,GAAG,IAAI,CAAC;AACX,CAAC"}
|
package/dist/generator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAudD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,OAAO,GAAE,eAAmC,GAC3C,cAAc,CAoBhB"}
|
package/dist/generator.js
CHANGED
|
@@ -335,6 +335,73 @@ code_array = [{"language": "python", "name": "agent.py", "value": source}]
|
|
|
335
335
|
payload = {"code": json.dumps(code_array)} # json.dumps required!
|
|
336
336
|
\`\`\`
|
|
337
337
|
|
|
338
|
+
## Agent Pattern Examples
|
|
339
|
+
|
|
340
|
+
Use these patterns as inspiration when customizing your agent's business logic.
|
|
341
|
+
|
|
342
|
+
### Research Agent Pattern (AI-powered responses)
|
|
343
|
+
\`\`\`python
|
|
344
|
+
# Use Hugging Face or OpenAI for intelligent responses
|
|
345
|
+
import requests
|
|
346
|
+
|
|
347
|
+
def generate_report(query: str) -> str:
|
|
348
|
+
r = requests.post(
|
|
349
|
+
"https://api-inference.huggingface.co/models/mistralai/Mistral-7B-Instruct-v0.2",
|
|
350
|
+
headers={"Authorization": f"Bearer {os.environ.get('HF_TOKEN')}"},
|
|
351
|
+
json={"inputs": f"Research query: {query}\\n\\nProvide a detailed analysis:"},
|
|
352
|
+
timeout=30
|
|
353
|
+
)
|
|
354
|
+
return r.json()[0]["generated_text"] if r.ok else "Error generating report"
|
|
355
|
+
\`\`\`
|
|
356
|
+
|
|
357
|
+
### Price Monitor Pattern (watch token prices)
|
|
358
|
+
\`\`\`python
|
|
359
|
+
# Fetch token price and check thresholds
|
|
360
|
+
def check_price(token_address: str, threshold: float) -> str:
|
|
361
|
+
r = requests.get(f"{AGENTLAUNCH_API}/agents/token/{token_address}", timeout=5)
|
|
362
|
+
if r.ok:
|
|
363
|
+
data = r.json()
|
|
364
|
+
price = float(data.get("price", 0))
|
|
365
|
+
change = float(data.get("price_change_24h", 0))
|
|
366
|
+
if abs(change) > threshold:
|
|
367
|
+
return f"ALERT: {data['name']} price {'up' if change > 0 else 'down'} {abs(change):.1f}%"
|
|
368
|
+
return None
|
|
369
|
+
\`\`\`
|
|
370
|
+
|
|
371
|
+
### Trading Signal Pattern (buy/sell recommendations)
|
|
372
|
+
\`\`\`python
|
|
373
|
+
# Simple moving average signal
|
|
374
|
+
def compute_signal(prices: list, window: int = 10) -> str:
|
|
375
|
+
if len(prices) < window:
|
|
376
|
+
return "HOLD"
|
|
377
|
+
ma = sum(prices[-window:]) / window
|
|
378
|
+
current = prices[-1]
|
|
379
|
+
pct = (current - ma) / ma * 100
|
|
380
|
+
if pct > 3:
|
|
381
|
+
return "BUY"
|
|
382
|
+
elif pct < -3:
|
|
383
|
+
return "SELL"
|
|
384
|
+
return "HOLD"
|
|
385
|
+
\`\`\`
|
|
386
|
+
|
|
387
|
+
### Data Query Pattern (structured responses)
|
|
388
|
+
\`\`\`python
|
|
389
|
+
# Parse structured queries and return formatted data
|
|
390
|
+
def handle_query(query: str) -> str:
|
|
391
|
+
lower = query.lower()
|
|
392
|
+
if "top" in lower and "tokens" in lower:
|
|
393
|
+
r = requests.get(f"{AGENTLAUNCH_API}/agents/tokens?limit=5&sort=volume", timeout=5)
|
|
394
|
+
if r.ok:
|
|
395
|
+
tokens = r.json().get("tokens", [])
|
|
396
|
+
return "\\n".join([f"{t['name']}: {t['price']} FET" for t in tokens])
|
|
397
|
+
elif "stats" in lower:
|
|
398
|
+
r = requests.get(f"{AGENTLAUNCH_API}/platform/stats", timeout=5)
|
|
399
|
+
if r.ok:
|
|
400
|
+
s = r.json()
|
|
401
|
+
return f"Platform: {s['total_tokens']} tokens, {s['total_volume']} FET volume"
|
|
402
|
+
return "Unknown query. Try: 'top tokens', 'stats'"
|
|
403
|
+
\`\`\`
|
|
404
|
+
|
|
338
405
|
## Resources
|
|
339
406
|
|
|
340
407
|
- [AgentLaunch Platform](${RESOLVED_FRONTEND_URL})
|
package/dist/generator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAA6C,MAAM,eAAe,CAAC;AAEvF,8EAA8E;AAC9E,mCAAmC;AACnC,8EAA8E;AAE9E,MAAM,YAAY,GAAG,6BAA6B,CAAC;AACnD,MAAM,WAAW,GAAG,iEAAiE,CAAC;AACtF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB;IACvD,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAExE,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AACpD,MAAM,gBAAgB,GAAG,kEAAkE,CAAC;AAC5F,MAAM,qBAAqB,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB;IACjE,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;AA+BlF,8EAA8E;AAC9E,oBAAoB;AACpB,8EAA8E;AAE9E;;;GAGG;AACH,SAAS,UAAU,CAAC,IAAY,EAAE,IAA4B;IAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC3D,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAA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AAC,CAAC;IACjD,MAAM,MAAM,GAAG,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,mBAAmB,EAAE,CAAC;IAC7C,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAErE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC;AACnF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -38,4 +38,5 @@ export type { AgentTemplate, TemplateVariable } from "./registry.js";
|
|
|
38
38
|
export { listTemplates, getTemplate } from "./registry.js";
|
|
39
39
|
export type { GenerateResult, GenerateOptions } from "./generator.js";
|
|
40
40
|
export { generateFromTemplate } from "./generator.js";
|
|
41
|
+
export { RULES, SKILLS, buildPackageJson } from "./claude-context.js";
|
|
41
42
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG3D,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG3D,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -36,4 +36,6 @@
|
|
|
36
36
|
*/
|
|
37
37
|
export { listTemplates, getTemplate } from "./registry.js";
|
|
38
38
|
export { generateFromTemplate } from "./generator.js";
|
|
39
|
+
// Re-export Claude context (rules, skills, package.json builder)
|
|
40
|
+
export { RULES, SKILLS, buildPackageJson } from "./claude-context.js";
|
|
39
41
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,iEAAiE;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
|