agentlaunch-templates 0.2.9 → 0.3.1
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 +49 -0
- package/dist/claude-context.d.ts.map +1 -1
- package/dist/claude-context.js +447 -2
- package/dist/claude-context.js.map +1 -1
- package/dist/generator.d.ts +2 -0
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +11 -1
- package/dist/generator.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/claude-context.d.ts
CHANGED
|
@@ -12,4 +12,53 @@ export declare function buildPackageJson(name: string): string;
|
|
|
12
12
|
export declare function buildClaudeMd(name: string): string;
|
|
13
13
|
export declare const CURSOR_MCP_CONFIG: string;
|
|
14
14
|
export declare const CURSOR_RULES = "# AgentLaunch Agent Project\n\nThis is an AgentLaunch agent project. Use the MCP tools to build, deploy, and tokenize.\n\n## Quick Commands\n\n- `npm run deploy` - Deploy to Agentverse\n- `npm run tokenize` - Create token + handoff link\n- `npm run status` - Check status\n\n## Key Files\n\n- `agent.py` - Your agent code (edit this!)\n- `CLAUDE.md` - Full context for Claude\n- `docs/` - SDK, CLI, MCP documentation\n- `examples/` - Working code samples\n\n## Genesis Template (Recommended)\n\nUse the genesis template for agents with a full commerce stack:\n- Payment handling, pricing tables, revenue tracking\n- Token-gated tiers, wallet management\n- 7 presets: oracle, brain, analyst, coordinator, sentinel, launcher, scout\n\n## Platform Constants\n\n- Deploy fee: 120 FET\n- Graduation: 30,000 FET liquidity\n- Trading fee: 2% to protocol treasury (NO creator fee)\n";
|
|
15
|
+
export interface SwarmAgent {
|
|
16
|
+
name: string;
|
|
17
|
+
preset: string;
|
|
18
|
+
address: string;
|
|
19
|
+
status: string;
|
|
20
|
+
code?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SwarmContext {
|
|
23
|
+
swarmName: string;
|
|
24
|
+
agents: SwarmAgent[];
|
|
25
|
+
peerAddresses: Record<string, string>;
|
|
26
|
+
deployedAt: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Builds a CLAUDE.md for deployed agents (single or swarm).
|
|
30
|
+
* This gives Claude Code full context about what was deployed.
|
|
31
|
+
*/
|
|
32
|
+
export declare function buildSwarmClaudeMd(ctx: SwarmContext): string;
|
|
33
|
+
/**
|
|
34
|
+
* Builds agentlaunch.config.json for a deployed swarm.
|
|
35
|
+
*/
|
|
36
|
+
export declare function buildSwarmConfig(ctx: SwarmContext): string;
|
|
37
|
+
/**
|
|
38
|
+
* Builds package.json for a deployed swarm.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildSwarmPackageJson(swarmName: string): string;
|
|
41
|
+
export interface AgentSkillContext {
|
|
42
|
+
name: string;
|
|
43
|
+
preset: string;
|
|
44
|
+
address: string;
|
|
45
|
+
symbol?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Generates a tokenize skill specific to an agent.
|
|
49
|
+
*/
|
|
50
|
+
export declare function buildTokenizeSkill(agent: AgentSkillContext): string;
|
|
51
|
+
/**
|
|
52
|
+
* Generates a status skill specific to an agent.
|
|
53
|
+
*/
|
|
54
|
+
export declare function buildStatusSkill(agent: AgentSkillContext): string;
|
|
55
|
+
/**
|
|
56
|
+
* Generates a redeploy skill specific to an agent.
|
|
57
|
+
*/
|
|
58
|
+
export declare function buildRedeploySkill(agent: AgentSkillContext, isSingleAgent: boolean): string;
|
|
59
|
+
/**
|
|
60
|
+
* Generates all project-specific skills for an agent.
|
|
61
|
+
* Returns a map of filepath -> content.
|
|
62
|
+
*/
|
|
63
|
+
export declare function buildProjectSkills(agents: AgentSkillContext[], isSingleAgent: boolean): Record<string, string>;
|
|
15
64
|
//# sourceMappingURL=claude-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-context.d.ts","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"claude-context.d.ts","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6RxC,CAAC;AAMF,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoGzC,CAAC;AAMF,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+IvC,CAAC;AAMF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkQ3C,CAAC;AAMF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsBrD;AAMD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgGlD;AAMD,eAAO,MAAM,iBAAiB,QActB,CAAC;AAET,eAAO,MAAM,YAAY,+2BA6BxB,CAAC;AAMF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAsQ5D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAkB1D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAqB/D;AAMD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CA2CnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAkCjE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,OAAO,GAAG,MAAM,CAuC3F;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EAAE,EAC3B,aAAa,EAAE,OAAO,GACrB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB"}
|
package/dist/claude-context.js
CHANGED
|
@@ -47,11 +47,13 @@ GET /platform/stats Platform statistics
|
|
|
47
47
|
|
|
48
48
|
## Handoff Protocol
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Token deployment requires a human signature:
|
|
51
51
|
1. Agent calls API to create token record
|
|
52
52
|
2. API returns handoff link
|
|
53
53
|
3. Agent shares link with human
|
|
54
54
|
4. Human signs transaction
|
|
55
|
+
|
|
56
|
+
Once deployed, agents CAN trade autonomously via HoldingsManager + BSC_PRIVATE_KEY.
|
|
55
57
|
`,
|
|
56
58
|
"agentverse.md": `# Agentverse Deployment Rules
|
|
57
59
|
|
|
@@ -412,12 +414,14 @@ npm install agentlaunch-sdk
|
|
|
412
414
|
|
|
413
415
|
## The Agent-Human Handoff
|
|
414
416
|
|
|
415
|
-
|
|
417
|
+
Token deployment requires a human signature:
|
|
416
418
|
1. Agent calls API -> gets handoff link
|
|
417
419
|
2. Agent shares link with human
|
|
418
420
|
3. Human opens link, connects wallet, signs
|
|
419
421
|
4. Token goes live
|
|
420
422
|
|
|
423
|
+
Agents CAN trade autonomously after deployment using HoldingsManager + BSC_PRIVATE_KEY.
|
|
424
|
+
|
|
421
425
|
## Platform Constants
|
|
422
426
|
- Deploy fee: 120 FET
|
|
423
427
|
- Graduation: 30,000 FET -> DEX listing
|
|
@@ -950,4 +954,445 @@ Use the genesis template for agents with a full commerce stack:
|
|
|
950
954
|
- Graduation: 30,000 FET liquidity
|
|
951
955
|
- Trading fee: 2% to protocol treasury (NO creator fee)
|
|
952
956
|
`;
|
|
957
|
+
/**
|
|
958
|
+
* Builds a CLAUDE.md for deployed agents (single or swarm).
|
|
959
|
+
* This gives Claude Code full context about what was deployed.
|
|
960
|
+
*/
|
|
961
|
+
export function buildSwarmClaudeMd(ctx) {
|
|
962
|
+
const isSingleAgent = ctx.agents.length === 1;
|
|
963
|
+
const presetDescriptions = {
|
|
964
|
+
oracle: "Market data provider — price feeds, OHLC history, market summaries (0.001 FET/call)",
|
|
965
|
+
brain: "LLM reasoning engine — query classification, summarization, deep analysis (0.01 FET/call)",
|
|
966
|
+
analyst: "Token scoring engine — quality evaluation, risk assessment, ranking (0.005 FET/call)",
|
|
967
|
+
coordinator: "Query router — discovers agents, routes queries to specialists (0.0005 FET/call)",
|
|
968
|
+
sentinel: "Real-time watchdog — monitors tokens, detects anomalies, sends alerts (0.002 FET/call)",
|
|
969
|
+
launcher: "Gap finder — discovers unmet needs, scaffolds new agents (0.02 FET/call)",
|
|
970
|
+
scout: "Agent scout — discovers promising agents, evaluates quality (0.01 FET/call)",
|
|
971
|
+
};
|
|
972
|
+
if (isSingleAgent) {
|
|
973
|
+
const agent = ctx.agents[0];
|
|
974
|
+
const desc = presetDescriptions[agent.preset] || agent.preset;
|
|
975
|
+
return `# ${ctx.swarmName}
|
|
976
|
+
|
|
977
|
+
## Your Agent
|
|
978
|
+
|
|
979
|
+
| Field | Value |
|
|
980
|
+
|-------|-------|
|
|
981
|
+
| **Name** | ${agent.name} |
|
|
982
|
+
| **Type** | ${agent.preset.charAt(0).toUpperCase() + agent.preset.slice(1)} |
|
|
983
|
+
| **Address** | \`${agent.address}\` |
|
|
984
|
+
| **Status** | ${agent.status} |
|
|
985
|
+
|
|
986
|
+
**What it does:** ${desc}
|
|
987
|
+
|
|
988
|
+
## Project Structure
|
|
989
|
+
|
|
990
|
+
\`\`\`
|
|
991
|
+
${ctx.swarmName}/
|
|
992
|
+
agent.py # Your agent code (edit this!)
|
|
993
|
+
CLAUDE.md # This file
|
|
994
|
+
agentlaunch.config.json
|
|
995
|
+
.env # API key (already configured)
|
|
996
|
+
.claude/ # Claude Code settings
|
|
997
|
+
docs/ # Documentation
|
|
998
|
+
\`\`\`
|
|
999
|
+
|
|
1000
|
+
## What's Already Done
|
|
1001
|
+
|
|
1002
|
+
1. **Agent deployed** — Running on Agentverse at \`${agent.address}\`
|
|
1003
|
+
2. **Commerce ready** — Has pricing built in (${desc.split('—')[1]?.trim() || 'charges for services'})
|
|
1004
|
+
3. **API key set** — Your Agentverse API key is in \`.env\`
|
|
1005
|
+
|
|
1006
|
+
## Next Steps
|
|
1007
|
+
|
|
1008
|
+
### 1. Tokenize your agent (so you can earn from trading)
|
|
1009
|
+
\`\`\`bash
|
|
1010
|
+
agentlaunch tokenize --agent ${agent.address} --name "${agent.name}" --symbol "${agent.preset.slice(0, 4).toUpperCase()}"
|
|
1011
|
+
\`\`\`
|
|
1012
|
+
You'll get a handoff link. Share it with someone who has a wallet to pay the 120 FET deploy fee.
|
|
1013
|
+
|
|
1014
|
+
### 2. Customize pricing
|
|
1015
|
+
Edit \`agent.py\` and look for the \`PRICING\` section. Adjust prices based on value you provide.
|
|
1016
|
+
|
|
1017
|
+
### 3. Check status
|
|
1018
|
+
\`\`\`bash
|
|
1019
|
+
agentlaunch status ${agent.address}
|
|
1020
|
+
\`\`\`
|
|
1021
|
+
|
|
1022
|
+
## What Makes an Agent Valuable?
|
|
1023
|
+
|
|
1024
|
+
Agents earn fees when they provide **real value**:
|
|
1025
|
+
- **Data providers** (Oracle): Sell accurate, timely market data
|
|
1026
|
+
- **AI services** (Brain): Sell quality reasoning and analysis
|
|
1027
|
+
- **Infrastructure** (Coordinator): Become the routing layer other agents depend on
|
|
1028
|
+
|
|
1029
|
+
The more agents that depend on yours, the more fees you earn. Consider:
|
|
1030
|
+
1. What unique data or capability do you have?
|
|
1031
|
+
2. Who would pay for it?
|
|
1032
|
+
3. How can you make other agents need your service?
|
|
1033
|
+
|
|
1034
|
+
## Quick Diagnostics
|
|
1035
|
+
|
|
1036
|
+
\`\`\`bash
|
|
1037
|
+
# Is your agent running?
|
|
1038
|
+
agentlaunch status ${agent.address}
|
|
1039
|
+
|
|
1040
|
+
# Verify API key is set
|
|
1041
|
+
echo "Key: $AGENTVERSE_API_KEY" | head -c 20
|
|
1042
|
+
|
|
1043
|
+
# List all your agents
|
|
1044
|
+
agentlaunch list
|
|
1045
|
+
\`\`\`
|
|
1046
|
+
|
|
1047
|
+
## MCP Tools Available
|
|
1048
|
+
|
|
1049
|
+
Type \`/\` in Claude Code to access these skills:
|
|
1050
|
+
- \`/deploy\` — Deploy or redeploy your agent
|
|
1051
|
+
- \`/tokenize\` — Create a tradeable token
|
|
1052
|
+
- \`/status\` — Check agent status
|
|
1053
|
+
- \`/market\` — Browse tokens on AgentLaunch
|
|
1054
|
+
|
|
1055
|
+
Or use MCP tools directly:
|
|
1056
|
+
- \`scaffold_agent\` — Generate agent code
|
|
1057
|
+
- \`deploy_to_agentverse\` — Deploy to Agentverse
|
|
1058
|
+
- \`create_token_record\` — Tokenize an agent
|
|
1059
|
+
- \`calculate_buy\` / \`calculate_sell\` — Preview trades
|
|
1060
|
+
- \`check_agent_commerce\` — Revenue and pricing info
|
|
1061
|
+
|
|
1062
|
+
## Platform Constants
|
|
1063
|
+
|
|
1064
|
+
- Deploy fee: **120 FET** (paid when tokenizing)
|
|
1065
|
+
- Graduation: **30,000 FET** liquidity → auto DEX listing
|
|
1066
|
+
- Trading fee: **2%** → 100% to protocol treasury (no creator fee)
|
|
1067
|
+
`;
|
|
1068
|
+
}
|
|
1069
|
+
// Multi-agent swarm
|
|
1070
|
+
const agentTable = ctx.agents
|
|
1071
|
+
.map((a) => `| ${a.preset} | \`${a.address}\` | ${a.status} |`)
|
|
1072
|
+
.join("\n");
|
|
1073
|
+
const addressList = ctx.agents
|
|
1074
|
+
.map((a) => `${a.preset.toUpperCase()}_ADDRESS=${a.address}`)
|
|
1075
|
+
.join("\n");
|
|
1076
|
+
const roleDetails = ctx.agents
|
|
1077
|
+
.map((a) => {
|
|
1078
|
+
const desc = presetDescriptions[a.preset] || a.preset;
|
|
1079
|
+
return `### ${a.preset.charAt(0).toUpperCase() + a.preset.slice(1)}
|
|
1080
|
+
|
|
1081
|
+
- **Address:** \`${a.address}\`
|
|
1082
|
+
- **Status:** ${a.status}
|
|
1083
|
+
- **Description:** ${desc}
|
|
1084
|
+
- **Code:** \`agents/${a.preset}.py\``;
|
|
1085
|
+
})
|
|
1086
|
+
.join("\n\n");
|
|
1087
|
+
return `# ${ctx.swarmName} — Agent Swarm
|
|
1088
|
+
|
|
1089
|
+
## What This Is
|
|
1090
|
+
|
|
1091
|
+
A deployed multi-agent swarm on the Fetch.ai Agentverse platform.
|
|
1092
|
+
Deployed at: ${ctx.deployedAt}
|
|
1093
|
+
|
|
1094
|
+
## Deployed Agents
|
|
1095
|
+
|
|
1096
|
+
| Role | Address | Status |
|
|
1097
|
+
|------|---------|--------|
|
|
1098
|
+
${agentTable}
|
|
1099
|
+
|
|
1100
|
+
## Agent Roles
|
|
1101
|
+
|
|
1102
|
+
${roleDetails}
|
|
1103
|
+
|
|
1104
|
+
## Peer Addresses
|
|
1105
|
+
|
|
1106
|
+
These environment variables are set as secrets on each agent so they can communicate:
|
|
1107
|
+
|
|
1108
|
+
\`\`\`bash
|
|
1109
|
+
${addressList}
|
|
1110
|
+
\`\`\`
|
|
1111
|
+
|
|
1112
|
+
## Project Structure
|
|
1113
|
+
|
|
1114
|
+
\`\`\`
|
|
1115
|
+
${ctx.swarmName}/
|
|
1116
|
+
CLAUDE.md # This file (swarm context)
|
|
1117
|
+
agentlaunch.config.json # Swarm configuration with all addresses
|
|
1118
|
+
.env # API key (already configured)
|
|
1119
|
+
agents/ # Individual agent code
|
|
1120
|
+
${ctx.agents.map((a) => ` ${a.preset}.py`).join("\n")}
|
|
1121
|
+
.claude/ # Claude Code settings
|
|
1122
|
+
settings.json # MCP server config
|
|
1123
|
+
rules/ # Coding guidelines
|
|
1124
|
+
skills/ # Slash commands
|
|
1125
|
+
docs/ # SDK, CLI, MCP documentation
|
|
1126
|
+
examples/ # Working code samples
|
|
1127
|
+
\`\`\`
|
|
1128
|
+
|
|
1129
|
+
## What's Already Done
|
|
1130
|
+
|
|
1131
|
+
1. **Agents deployed** — All ${ctx.agents.length} agents are running on Agentverse
|
|
1132
|
+
2. **Secrets configured** — Each agent knows its peers' addresses
|
|
1133
|
+
3. **API key set** — Your Agentverse API key is in \`.env\`
|
|
1134
|
+
|
|
1135
|
+
## Next Steps
|
|
1136
|
+
|
|
1137
|
+
### 1. Verify agents are running
|
|
1138
|
+
\`\`\`bash
|
|
1139
|
+
agentlaunch status ${ctx.agents[0]?.address || "<address>"}
|
|
1140
|
+
\`\`\`
|
|
1141
|
+
|
|
1142
|
+
### 2. Tokenize an agent
|
|
1143
|
+
\`\`\`bash
|
|
1144
|
+
agentlaunch tokenize \\
|
|
1145
|
+
--agent ${ctx.agents[0]?.address || "<address>"} \\
|
|
1146
|
+
--name "${ctx.agents[0]?.name || "AgentName"}" \\
|
|
1147
|
+
--symbol "${ctx.agents[0]?.preset?.slice(0, 4).toUpperCase() || "SYMB"}"
|
|
1148
|
+
\`\`\`
|
|
1149
|
+
|
|
1150
|
+
You'll receive a handoff link. Share it with someone who has a wallet to deploy the token on-chain (120 FET fee).
|
|
1151
|
+
|
|
1152
|
+
### 3. Customize agent behavior
|
|
1153
|
+
Edit the code in \`agents/<role>.py\` and redeploy:
|
|
1154
|
+
\`\`\`bash
|
|
1155
|
+
agentlaunch deploy --code agents/oracle.py --address ${ctx.agents.find((a) => a.preset === "oracle")?.address || "<oracle-address>"}
|
|
1156
|
+
\`\`\`
|
|
1157
|
+
|
|
1158
|
+
### 4. Monitor the swarm
|
|
1159
|
+
\`\`\`bash
|
|
1160
|
+
agentlaunch list # See all your tokens
|
|
1161
|
+
\`\`\`
|
|
1162
|
+
|
|
1163
|
+
## Quick Diagnostics
|
|
1164
|
+
|
|
1165
|
+
\`\`\`bash
|
|
1166
|
+
# Check all agents' status
|
|
1167
|
+
${ctx.agents.map((a) => `agentlaunch status ${a.address} # ${a.preset}`).join("\n")}
|
|
1168
|
+
|
|
1169
|
+
# Verify API key
|
|
1170
|
+
echo "Key: $AGENTVERSE_API_KEY" | head -c 20
|
|
1171
|
+
|
|
1172
|
+
# List all tokens you own
|
|
1173
|
+
agentlaunch list
|
|
1174
|
+
\`\`\`
|
|
1175
|
+
|
|
1176
|
+
## What Makes a Swarm Valuable?
|
|
1177
|
+
|
|
1178
|
+
Swarms earn fees when agents **depend on each other**:
|
|
1179
|
+
- **Oracle** sells data → Brain, Analyst, Sentinel buy it
|
|
1180
|
+
- **Brain** sells reasoning → Coordinator, Launcher buy it
|
|
1181
|
+
- **Coordinator** routes queries → Everyone pays routing fees
|
|
1182
|
+
|
|
1183
|
+
The more interconnections, the more fees flow. Your agents should:
|
|
1184
|
+
1. Provide unique, high-quality services
|
|
1185
|
+
2. Consume services from other agents in the swarm
|
|
1186
|
+
3. Become infrastructure that external agents depend on
|
|
1187
|
+
|
|
1188
|
+
## Platform Constants
|
|
1189
|
+
|
|
1190
|
+
- Deploy fee: **120 FET** (paid when tokenizing)
|
|
1191
|
+
- Graduation: **30,000 FET** liquidity → auto DEX listing
|
|
1192
|
+
- Trading fee: **2%** → 100% to protocol treasury (no creator fee)
|
|
1193
|
+
|
|
1194
|
+
## Skills & MCP Tools
|
|
1195
|
+
|
|
1196
|
+
Type \`/\` in Claude Code for skills:
|
|
1197
|
+
- \`/deploy\` — Deploy or redeploy an agent
|
|
1198
|
+
- \`/tokenize\` — Create a tradeable token
|
|
1199
|
+
- \`/status\` — Check agent status
|
|
1200
|
+
- \`/market\` — Browse tokens
|
|
1201
|
+
|
|
1202
|
+
MCP tools available:
|
|
1203
|
+
- \`list_tokens\` — Browse all tokens
|
|
1204
|
+
- \`get_token\` — Get details for a specific token
|
|
1205
|
+
- \`calculate_buy\` / \`calculate_sell\` — Preview trades
|
|
1206
|
+
- \`create_token_record\` — Tokenize an agent
|
|
1207
|
+
- \`deploy_to_agentverse\` — Deploy code updates
|
|
1208
|
+
- \`check_agent_commerce\` — Revenue, pricing, balance
|
|
1209
|
+
- \`network_status\` — Swarm GDP, per-agent health
|
|
1210
|
+
|
|
1211
|
+
## Resources
|
|
1212
|
+
|
|
1213
|
+
- [AgentLaunch Platform](https://agent-launch.ai)
|
|
1214
|
+
- [Agentverse](https://agentverse.ai)
|
|
1215
|
+
- [Your Agents](https://agentverse.ai/agents)
|
|
1216
|
+
`;
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Builds agentlaunch.config.json for a deployed swarm.
|
|
1220
|
+
*/
|
|
1221
|
+
export function buildSwarmConfig(ctx) {
|
|
1222
|
+
const agents = {};
|
|
1223
|
+
for (const a of ctx.agents) {
|
|
1224
|
+
agents[a.preset] = { address: a.address, status: a.status };
|
|
1225
|
+
}
|
|
1226
|
+
return JSON.stringify({
|
|
1227
|
+
name: ctx.swarmName,
|
|
1228
|
+
type: "swarm",
|
|
1229
|
+
chain: 97,
|
|
1230
|
+
deployedAt: ctx.deployedAt,
|
|
1231
|
+
agents,
|
|
1232
|
+
peerAddresses: ctx.peerAddresses,
|
|
1233
|
+
}, null, 2) + "\n";
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Builds package.json for a deployed swarm.
|
|
1237
|
+
*/
|
|
1238
|
+
export function buildSwarmPackageJson(swarmName) {
|
|
1239
|
+
return JSON.stringify({
|
|
1240
|
+
name: swarmName.toLowerCase().replace(/[^a-z0-9-]/g, "-"),
|
|
1241
|
+
version: "1.0.0",
|
|
1242
|
+
description: `${swarmName} - AgentLaunch Swarm`,
|
|
1243
|
+
scripts: {
|
|
1244
|
+
status: "agentlaunch status",
|
|
1245
|
+
list: "agentlaunch list",
|
|
1246
|
+
tokenize: "agentlaunch tokenize",
|
|
1247
|
+
},
|
|
1248
|
+
dependencies: {
|
|
1249
|
+
"agentlaunch-sdk": "^0.2.0",
|
|
1250
|
+
},
|
|
1251
|
+
devDependencies: {
|
|
1252
|
+
"agentlaunch-cli": "^1.1.0",
|
|
1253
|
+
},
|
|
1254
|
+
}, null, 2) + "\n";
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Generates a tokenize skill specific to an agent.
|
|
1258
|
+
*/
|
|
1259
|
+
export function buildTokenizeSkill(agent) {
|
|
1260
|
+
const symbol = agent.symbol || agent.preset.slice(0, 4).toUpperCase();
|
|
1261
|
+
return `# /tokenize-${agent.preset}
|
|
1262
|
+
|
|
1263
|
+
Create a tradeable token for your ${agent.preset} agent.
|
|
1264
|
+
|
|
1265
|
+
## Your Agent
|
|
1266
|
+
|
|
1267
|
+
- **Name:** ${agent.name}
|
|
1268
|
+
- **Address:** \`${agent.address}\`
|
|
1269
|
+
- **Suggested Symbol:** ${symbol}
|
|
1270
|
+
|
|
1271
|
+
## Command
|
|
1272
|
+
|
|
1273
|
+
Run this to create a token:
|
|
1274
|
+
|
|
1275
|
+
\`\`\`bash
|
|
1276
|
+
agentlaunch tokenize \\
|
|
1277
|
+
--agent ${agent.address} \\
|
|
1278
|
+
--name "${agent.name}" \\
|
|
1279
|
+
--symbol "${symbol}"
|
|
1280
|
+
\`\`\`
|
|
1281
|
+
|
|
1282
|
+
## What Happens
|
|
1283
|
+
|
|
1284
|
+
1. CLI creates a token record on AgentLaunch
|
|
1285
|
+
2. You get a **handoff link**
|
|
1286
|
+
3. Share the link with someone who has a wallet
|
|
1287
|
+
4. They pay 120 FET to deploy the token on-chain
|
|
1288
|
+
5. Your agent now has a tradeable token!
|
|
1289
|
+
|
|
1290
|
+
## After Tokenization
|
|
1291
|
+
|
|
1292
|
+
- Token trades on a bonding curve (price goes up as people buy)
|
|
1293
|
+
- At 30,000 FET liquidity, it auto-lists on DEX
|
|
1294
|
+
- 2% trading fee goes to protocol (no creator fee)
|
|
1295
|
+
|
|
1296
|
+
## Pro Tips
|
|
1297
|
+
|
|
1298
|
+
- Pick a memorable symbol (3-5 chars)
|
|
1299
|
+
- Write a good description — it shows on the token page
|
|
1300
|
+
- The first buyers get the best price (bonding curve)
|
|
1301
|
+
`;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Generates a status skill specific to an agent.
|
|
1305
|
+
*/
|
|
1306
|
+
export function buildStatusSkill(agent) {
|
|
1307
|
+
return `# /status-${agent.preset}
|
|
1308
|
+
|
|
1309
|
+
Check the status of your ${agent.preset} agent.
|
|
1310
|
+
|
|
1311
|
+
## Your Agent
|
|
1312
|
+
|
|
1313
|
+
- **Name:** ${agent.name}
|
|
1314
|
+
- **Address:** \`${agent.address}\`
|
|
1315
|
+
|
|
1316
|
+
## Commands
|
|
1317
|
+
|
|
1318
|
+
### Check if running
|
|
1319
|
+
\`\`\`bash
|
|
1320
|
+
agentlaunch status ${agent.address}
|
|
1321
|
+
\`\`\`
|
|
1322
|
+
|
|
1323
|
+
### View logs (if issues)
|
|
1324
|
+
\`\`\`bash
|
|
1325
|
+
# Via Agentverse dashboard
|
|
1326
|
+
open "https://agentverse.ai/agents/local/${agent.address}/logs"
|
|
1327
|
+
\`\`\`
|
|
1328
|
+
|
|
1329
|
+
### Restart if stuck
|
|
1330
|
+
\`\`\`bash
|
|
1331
|
+
agentlaunch deploy --address ${agent.address}
|
|
1332
|
+
\`\`\`
|
|
1333
|
+
|
|
1334
|
+
## Common Issues
|
|
1335
|
+
|
|
1336
|
+
- **"compiling" for >60s** — Check logs for syntax errors
|
|
1337
|
+
- **"stopped"** — Redeploy with \`agentlaunch deploy\`
|
|
1338
|
+
- **No responses** — Verify Chat Protocol handlers are correct
|
|
1339
|
+
`;
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Generates a redeploy skill specific to an agent.
|
|
1343
|
+
*/
|
|
1344
|
+
export function buildRedeploySkill(agent, isSingleAgent) {
|
|
1345
|
+
const codePath = isSingleAgent ? "agent.py" : `agents/${agent.preset}.py`;
|
|
1346
|
+
return `# /redeploy-${agent.preset}
|
|
1347
|
+
|
|
1348
|
+
Redeploy your ${agent.preset} agent after making changes.
|
|
1349
|
+
|
|
1350
|
+
## Your Agent
|
|
1351
|
+
|
|
1352
|
+
- **Name:** ${agent.name}
|
|
1353
|
+
- **Address:** \`${agent.address}\`
|
|
1354
|
+
- **Code:** \`${codePath}\`
|
|
1355
|
+
|
|
1356
|
+
## Command
|
|
1357
|
+
|
|
1358
|
+
After editing ${codePath}, run:
|
|
1359
|
+
|
|
1360
|
+
\`\`\`bash
|
|
1361
|
+
agentlaunch deploy --code ${codePath} --address ${agent.address}
|
|
1362
|
+
\`\`\`
|
|
1363
|
+
|
|
1364
|
+
## What Gets Updated
|
|
1365
|
+
|
|
1366
|
+
- Agent code (the Python file)
|
|
1367
|
+
- Dependencies are reinstalled
|
|
1368
|
+
- Agent restarts automatically
|
|
1369
|
+
|
|
1370
|
+
## What Does NOT Change
|
|
1371
|
+
|
|
1372
|
+
- Agent address (stays the same)
|
|
1373
|
+
- Secrets (already configured)
|
|
1374
|
+
- Token (if tokenized)
|
|
1375
|
+
|
|
1376
|
+
## Workflow
|
|
1377
|
+
|
|
1378
|
+
1. Edit \`${codePath}\`
|
|
1379
|
+
2. Run the deploy command above
|
|
1380
|
+
3. Wait 15-60s for compilation
|
|
1381
|
+
4. Check status: \`agentlaunch status ${agent.address}\`
|
|
1382
|
+
`;
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* Generates all project-specific skills for an agent.
|
|
1386
|
+
* Returns a map of filepath -> content.
|
|
1387
|
+
*/
|
|
1388
|
+
export function buildProjectSkills(agents, isSingleAgent) {
|
|
1389
|
+
const skills = {};
|
|
1390
|
+
for (const agent of agents) {
|
|
1391
|
+
const prefix = agent.preset;
|
|
1392
|
+
skills[`tokenize-${prefix}/SKILL.md`] = buildTokenizeSkill(agent);
|
|
1393
|
+
skills[`status-${prefix}/SKILL.md`] = buildStatusSkill(agent);
|
|
1394
|
+
skills[`redeploy-${prefix}/SKILL.md`] = buildRedeploySkill(agent, isSingleAgent);
|
|
1395
|
+
}
|
|
1396
|
+
return skills;
|
|
1397
|
+
}
|
|
953
1398
|
//# sourceMappingURL=claude-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-context.js","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;AAE9E,MAAM,CAAC,MAAM,KAAK,GAA2B;IAC3C,gBAAgB,EAAE
|
|
1
|
+
{"version":3,"file":"claude-context.js","sourceRoot":"","sources":["../src/claude-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;AAE9E,MAAM,CAAC,MAAM,KAAK,GAA2B;IAC3C,gBAAgB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CnB;IAEC,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB;IAEC,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEvB;IAEC,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CxB;IAEC,oBAAoB,EAAE;;;;;;;;;;;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
package/dist/generator.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface GenerateResult {
|
|
|
17
17
|
claudeSettings: string;
|
|
18
18
|
/** agentlaunch.config.json for CLI auto-detection */
|
|
19
19
|
agentlaunchConfig: string;
|
|
20
|
+
/** Short description for Agentverse directory (max 200 chars) */
|
|
21
|
+
shortDescription: string;
|
|
20
22
|
}
|
|
21
23
|
export interface GenerateOptions {
|
|
22
24
|
/** Variable values to inject into the template */
|
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;
|
|
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;IAC1B,iEAAiE;IACjE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;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;AAueD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,OAAO,GAAE,eAAmC,GAC3C,cAAc,CAqBhB"}
|
package/dist/generator.js
CHANGED
|
@@ -61,6 +61,15 @@ function resolveVariables(templateVars, supplied, strict) {
|
|
|
61
61
|
return resolved;
|
|
62
62
|
}
|
|
63
63
|
// ---------------------------------------------------------------------------
|
|
64
|
+
// Short description generator (for Agentverse directory, max 200 chars)
|
|
65
|
+
// ---------------------------------------------------------------------------
|
|
66
|
+
function buildShortDescription(template, vars) {
|
|
67
|
+
const name = vars["agent_name"] || template.name;
|
|
68
|
+
const description = vars["description"] || template.description;
|
|
69
|
+
const full = `${name} — ${description}`;
|
|
70
|
+
return full.slice(0, 200);
|
|
71
|
+
}
|
|
72
|
+
// ---------------------------------------------------------------------------
|
|
64
73
|
// README generator
|
|
65
74
|
// ---------------------------------------------------------------------------
|
|
66
75
|
function buildReadme(template, vars) {
|
|
@@ -480,6 +489,7 @@ export function generateFromTemplate(templateName, variables, options = { variab
|
|
|
480
489
|
const claudeMd = buildClaudeMd(template, resolved);
|
|
481
490
|
const claudeSettings = buildClaudeSettings();
|
|
482
491
|
const agentlaunchConfig = buildAgentlaunchConfig(template, resolved);
|
|
483
|
-
|
|
492
|
+
const shortDescription = buildShortDescription(template, resolved);
|
|
493
|
+
return { code, readme, envExample, claudeMd, claudeSettings, agentlaunchConfig, shortDescription };
|
|
484
494
|
}
|
|
485
495
|
//# sourceMappingURL=generator.js.map
|
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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,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;IACrE,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;AACrG,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -41,4 +41,6 @@ export { generateFromTemplate } from "./generator.js";
|
|
|
41
41
|
export type { Preset } from "./presets.js";
|
|
42
42
|
export { getPreset, listPresets } from "./presets.js";
|
|
43
43
|
export { RULES, SKILLS, DOCS, EXAMPLES, buildPackageJson, CURSOR_MCP_CONFIG, CURSOR_RULES } from "./claude-context.js";
|
|
44
|
+
export type { SwarmAgent, SwarmContext, AgentSkillContext } from "./claude-context.js";
|
|
45
|
+
export { buildSwarmClaudeMd, buildSwarmConfig, buildSwarmPackageJson, buildProjectSkills } from "./claude-context.js";
|
|
44
46
|
//# 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,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG7E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,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,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG7E,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGtD,YAAY,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGvH,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -39,4 +39,5 @@ export { generateFromTemplate } from "./generator.js";
|
|
|
39
39
|
export { getPreset, listPresets } from "./presets.js";
|
|
40
40
|
// Re-export Claude context (rules, skills, docs, examples, package.json, cursor config)
|
|
41
41
|
export { RULES, SKILLS, DOCS, EXAMPLES, buildPackageJson, CURSOR_MCP_CONFIG, CURSOR_RULES } from "./claude-context.js";
|
|
42
|
+
export { buildSwarmClaudeMd, buildSwarmConfig, buildSwarmPackageJson, buildProjectSkills } from "./claude-context.js";
|
|
42
43
|
//# 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,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAI7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEtD,wFAAwF;AACxF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAI7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEtD,wFAAwF;AACxF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAIvH,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|