From 97add456a7e61e58cf032f7c5d77eb9ac9056f24 Mon Sep 17 00:00:00 2001 From: Raj Sharma Date: Mon, 7 Oct 2024 17:26:33 +0530 Subject: [PATCH] chore: minor refactor --- config/index.ts | 4 ++-- tools/resend.ts | 4 +++- tools/search-user.ts | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/index.ts b/config/index.ts index 2ab9ce1..fcc013d 100644 --- a/config/index.ts +++ b/config/index.ts @@ -13,7 +13,7 @@ interface PlatformIdentity { export interface UserConfig { name: string; identities: PlatformIdentity[]; - relatives?: { + friends?: { related_as: string[]; user: UserConfig; }[]; @@ -30,7 +30,7 @@ const UserConfigSchema: z.ZodType = z.lazy(() => z.object({ name: z.string(), identities: z.array(PlatformIdentitySchema), - relatives: z + friends: z .array( z.object({ related_as: z.array(z.string()), diff --git a/tools/resend.ts b/tools/resend.ts index 9f34e39..c13032d 100644 --- a/tools/resend.ts +++ b/tools/resend.ts @@ -31,6 +31,7 @@ export async function send_email({ to, subject, html }: ResendParams) { from: "anya@tri.raj.how", to, subject, + replyTo: "anya@raj.how", html: (await formatToHtml({ to, @@ -211,7 +212,7 @@ async function formatToHtml({ 1. Vercel Invite Template: ${vercel_invite_template} - 2. Stripe Welcome Template: + 2. Stripe Welcome Template (use this for most simple messages): ${stripe_welcome_template} 3. Linear Login Code Template: @@ -219,6 +220,7 @@ async function formatToHtml({ Pick a template and put the data in it to create the final HTML string. Do not Make up false data, use only the given data. + Make sure to replace all the example data in the template with data relavent to the context. RETURN ONLY HTML STRING `, diff --git a/tools/search-user.ts b/tools/search-user.ts index d588d40..f938265 100644 --- a/tools/search-user.ts +++ b/tools/search-user.ts @@ -20,6 +20,7 @@ export async function search_user( context_message: Message ) { try { + console.log(JSON.stringify(userConfigs)); const res = await ask({ prompt: `You are a Search Tool that takes in a name and platform and returns the user's details. You are searching for ${name} on ${platform}.