create-message-kit 1.2.18 → 1.2.19
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
- package/templates/coinbase-agent/.yarnrc.yml +5 -0
- package/templates/ens/.yarnrc.yml +5 -0
- package/templates/ens/package.json +2 -1
- package/templates/faucet/.yarnrc.yml +5 -0
- package/templates/gated-group/.yarnrc.yml +5 -0
- package/templates/gm/.yarnrc.yml +5 -0
- package/templates/playground/.yarnrc.yml +5 -0
- package/templates/playground/src/index.ts +4 -7
- package/templates/simple/.yarnrc.yml +5 -0
- package/templates/thegeneralstore/.yarnrc.yml +5 -0
- package/templates/toss/.yarnrc.yml +5 -0
package/index.js
CHANGED
@@ -7,7 +7,7 @@ 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.
|
10
|
+
const defVersion = "1.2.19";
|
11
11
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
12
12
|
|
13
13
|
// Read package.json to get the version
|
package/package.json
CHANGED
package/templates/gm/.yarnrc.yml
CHANGED
@@ -18,20 +18,17 @@ export const agent: Agent = {
|
|
18
18
|
skills: [...web, ...cryptoPrice, ...search],
|
19
19
|
};
|
20
20
|
|
21
|
-
// [!region gated]
|
22
|
-
const { client } = await xmtpClient({
|
23
|
-
hideInitLogMessage: true,
|
24
|
-
});
|
25
|
-
|
26
21
|
run(
|
27
22
|
async (context: XMTPContext) => {
|
28
23
|
const {
|
29
|
-
message: {
|
24
|
+
message: {
|
25
|
+
sender,
|
26
|
+
content: { text },
|
27
|
+
},
|
30
28
|
agent,
|
31
29
|
} = context;
|
32
30
|
|
33
31
|
let prompt = await replaceVariables(systemPrompt, sender.address, agent);
|
34
|
-
|
35
32
|
//This is only used for to update the docs.
|
36
33
|
fs.writeFileSync("example_prompt.md", prompt);
|
37
34
|
await agentReply(context, prompt);
|