create-message-kit 1.2.33 → 1.2.35
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/index.js
CHANGED
@@ -7,7 +7,6 @@ import { default as fs } from "fs-extra";
|
|
7
7
|
import { isCancel } from "@clack/prompts";
|
8
8
|
import { detect } from "detect-package-manager";
|
9
9
|
import pc from "picocolors";
|
10
|
-
const defVersion = "1.2.33";
|
11
10
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
12
11
|
|
13
12
|
// Read package.json to get the version
|
@@ -26,13 +25,7 @@ program
|
|
26
25
|
log.info(pc.cyan(`pkgManager detected: ${pkgManager}`));
|
27
26
|
|
28
27
|
log.info(pc.cyan(`Welcome to MessageKit CLI v${version}!`));
|
29
|
-
|
30
|
-
log.warn(
|
31
|
-
pc.red(
|
32
|
-
"You are using a version of the CLI that is not compatible with the latest MessageKit. Please update to the latest version.",
|
33
|
-
),
|
34
|
-
);
|
35
|
-
}
|
28
|
+
|
36
29
|
const coolLogo = `
|
37
30
|
███╗ ███╗███████╗███████╗███████╗ █████╗ ██████╗ ███████╗██╗ ██╗██╗████████╗
|
38
31
|
████╗ ████║██╔════╝██╔════╝██╔════╝██╔══██╗██╔════╝ ██╔════╝██║ ██╔╝██║╚══██╔══╝
|
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { createAgent } from "@xmtp/message-kit";
|
2
2
|
import { checkDomain } from "./skills/check.js";
|
3
3
|
import { cool } from "./skills/cool.js";
|
4
4
|
import { info } from "./skills/info.js";
|
@@ -6,11 +6,9 @@ import { register } from "./skills/register.js";
|
|
6
6
|
import { renew } from "./skills/renew.js";
|
7
7
|
import { pay } from "./skills/pay.js";
|
8
8
|
|
9
|
-
export const agent
|
9
|
+
export const agent = createAgent({
|
10
10
|
name: "Ens Agent",
|
11
11
|
tag: "@bot",
|
12
12
|
description: "A ens agent with a lot of skills.",
|
13
13
|
skills: [checkDomain, cool, info, register, renew, pay],
|
14
|
-
};
|
15
|
-
|
16
|
-
run(agent);
|
14
|
+
}).run();
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { concierge, createAgent } from "@xmtp/message-kit";
|
2
2
|
import { degen } from "./vibes/degen.js";
|
3
3
|
|
4
|
-
const agent
|
4
|
+
export const agent = createAgent({
|
5
5
|
name: "Human Agent",
|
6
6
|
tag: "@bot",
|
7
7
|
description: "An agent that performs payments and transfers in usdc. .",
|
@@ -12,6 +12,4 @@ const agent: Agent = {
|
|
12
12
|
config: {
|
13
13
|
walletService: true,
|
14
14
|
},
|
15
|
-
};
|
16
|
-
|
17
|
-
run(agent);
|
15
|
+
}).run();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// [!region index]
|
2
|
-
import {
|
2
|
+
import { agentReply, Context, createAgent } from "@xmtp/message-kit";
|
3
3
|
|
4
|
-
export const agent
|
4
|
+
export const agent = createAgent({
|
5
5
|
name: "GPT Bot",
|
6
6
|
description: "Use GPT to generate text responses.",
|
7
7
|
tag: "@bot",
|
@@ -10,7 +10,5 @@ export const agent: Agent = {
|
|
10
10
|
await agentReply(context);
|
11
11
|
// [!region final]
|
12
12
|
},
|
13
|
-
};
|
14
|
-
|
15
|
-
run(agent);
|
13
|
+
}).run();
|
16
14
|
// [!endregion final]
|