create-message-kit 1.1.9-beta.1 → 1.1.9-beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/index.js +11 -36
  2. package/package.json +2 -2
  3. package/templates/agent/.yarnrc.yml +4 -0
  4. package/templates/agent/package.json +21 -0
  5. package/templates/agent/src/handlers/check.ts +43 -0
  6. package/templates/agent/src/handlers/cool.ts +52 -0
  7. package/templates/agent/src/handlers/info.ts +65 -0
  8. package/templates/agent/src/handlers/register.ts +40 -0
  9. package/templates/agent/src/handlers/renew.ts +52 -0
  10. package/templates/agent/src/handlers/reset.ts +19 -0
  11. package/templates/agent/src/handlers/tip.ts +42 -0
  12. package/templates/agent/src/index.ts +55 -55
  13. package/templates/agent/src/prompt.ts +52 -0
  14. package/templates/gated/.env.example +3 -0
  15. package/templates/gated/.yarnrc.yml +4 -0
  16. package/templates/gated/package.json +24 -0
  17. package/templates/gated/src/index.ts +64 -0
  18. package/templates/gated/src/lib/gated.ts +51 -0
  19. package/templates/gated/src/lib/nft.ts +37 -0
  20. package/templates/gated/src/skills.ts +24 -0
  21. package/templates/gpt/.yarnrc.yml +4 -0
  22. package/templates/gpt/package.json +21 -0
  23. package/templates/gpt/src/index.ts +8 -29
  24. package/templates/gpt/src/prompt.ts +8 -18
  25. package/templates/group/.yarnrc.yml +4 -0
  26. package/templates/group/package.json +21 -0
  27. package/templates/group/src/{handler → handlers}/game.ts +19 -3
  28. package/templates/group/src/{handler → handlers}/helpers.ts +22 -3
  29. package/templates/group/src/handlers/payment.ts +51 -0
  30. package/templates/group/src/handlers/tipping.ts +60 -0
  31. package/templates/group/src/index.ts +34 -21
  32. package/templates/group/src/prompt.ts +21 -16
  33. package/templates/agent/src/handler.ts +0 -174
  34. package/templates/agent/src/skills.ts +0 -88
  35. package/templates/ens-agent-pro/.env.example +0 -2
  36. package/templates/ens-agent-pro/src/index.ts +0 -90
  37. package/templates/ens-agent-pro/src/prompt.ts +0 -19
  38. package/templates/ens-agent-pro/src/skills.ts +0 -233
  39. package/templates/group/src/handler/payment.ts +0 -29
  40. package/templates/group/src/handler/tipping.ts +0 -40
  41. package/templates/group/src/skills.ts +0 -87
@@ -1,87 +0,0 @@
1
- import { handler as tipping } from "./handler/tipping.js";
2
- import { handler as payment } from "./handler/payment.js";
3
- import { handler as games } from "./handler/game.js";
4
- import { handler as help } from "./handler/helpers.js";
5
- import type { SkillGroup } from "@xmtp/message-kit";
6
-
7
- export const skills: SkillGroup[] = [
8
- {
9
- name: "Group bot",
10
- tag: "@bot",
11
- description: "Group agent for tipping and transactions.",
12
- skills: [
13
- {
14
- skill: "/tip [usernames] [amount] [token]",
15
- examples: ["/tip @vitalik 10 usdc"],
16
- description: "Tip users in a specified token.",
17
- handler: tipping,
18
- params: {
19
- username: {
20
- default: "",
21
- plural: true,
22
- type: "username",
23
- },
24
- amount: {
25
- default: 10,
26
- type: "number",
27
- },
28
- token: {
29
- default: "usdc",
30
- type: "string",
31
- values: ["eth", "dai", "usdc", "degen"],
32
- },
33
- },
34
- },
35
- {
36
- skill: "/pay [amount] [token] [username]",
37
- examples: ["/pay 10 usdc vitalik.eth", "/pay 1 @alix"],
38
- description:
39
- "Send a specified amount of a cryptocurrency to a destination address.",
40
- handler: payment,
41
- params: {
42
- amount: {
43
- default: 10,
44
- type: "number",
45
- },
46
- token: {
47
- default: "usdc",
48
- type: "string",
49
- values: ["eth", "dai", "usdc", "degen"], // Accepted tokens
50
- },
51
- username: {
52
- default: "",
53
- type: "username",
54
- },
55
- },
56
- },
57
- {
58
- skill: "/game [game]",
59
- handler: games,
60
- description: "Play a game.",
61
- examples: ["/game wordle", "/game slot", "/game help"],
62
- params: {
63
- game: {
64
- default: "",
65
- type: "string",
66
- values: ["wordle", "slot", "help"],
67
- },
68
- },
69
- },
70
- {
71
- skill: "/help",
72
- examples: ["/help"],
73
- handler: help,
74
- description: "Get help with the bot.",
75
- params: {},
76
- },
77
- {
78
- skill: "/id",
79
- adminOnly: true,
80
- examples: ["/id"],
81
- handler: help,
82
- description: "Get the group ID.",
83
- params: {},
84
- },
85
- ],
86
- },
87
- ];