Skip to content

Commit

Permalink
update directions
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 9, 2024
1 parent 32a9a13 commit 50871fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/agent/src/providers/directions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const directions: Provider = {
- Don't ask for permission to ask questions, just ask them
- If the conversation seems like it's going to end, try to keep it going by asking them more questions about themselves, especially leading from things they've already said
- Try to be brief, concise and clear, NOT flowery or verbose
- DON'T talk about Cojourney or the app unless the user brings it up first
- Address users by their first name, in a friendly and casual way
- DON'T ask about people's day or anything surface-level like that
- DO make sure to get the user's name, pronouns, location, and age if they haven't already provided it
Expand Down
11 changes: 10 additions & 1 deletion packages/app/src/pages/app/FriendProfile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,23 @@ export default function Profile (): JSX.Element {
const { error: msgsError } = await supabase.from("messages").delete().eq("user_ids", userIdsArray)
if (msgsError) console.error(msgsError)

const { error: memoriesError } = await supabase.from("memories").delete().eq("user_ids", userIdsArray)
if (memoriesError) console.error(memoriesError)

const { error: descriptionsError } = await supabase.from("descriptions").delete().eq("user_ids", userIdsArray)
if (descriptionsError) console.error(descriptionsError)

const { error: memoriesError2 } = await supabase.from("memories").delete().eq("user_id", userId)
if (memoriesError2) console.error(memoriesError2)

const { error: factsError } = await supabase.from("facts").delete().eq("user_ids", userIdsArray)
if (factsError) console.error(factsError)

const { error: goalsError } = await supabase.from("goals").delete().eq("user_ids", userIdsArray)
if (goalsError) console.error(goalsError)
if (goalsError) console.error(goalsError)
// delete all goals where user_id is the current user
const { error: goalsError2 } = await supabase.from("goals").delete().eq("user_id", userId)
if (goalsError2) console.error(goalsError2)

const serverUrl = import.meta?.env?.REACT_APP_SERVER_URL || import.meta?.env?.VITE_SERVER_URL || "https://cojourney.shawmakesmagic.workers.dev/"

Expand Down

0 comments on commit 50871fa

Please sign in to comment.