Beat cream cheese until soft. Add egg, vanilla and brown sugar. Beat until smooth. Set aside.
Mix flour, sugar, cinnamon and pecans.Add butter and cut it in with a fork until crumbly. Set aside.
Heat the oil in a laerge pan, add the sliced onions and cook until softened and golden brown, about 10 minutes. Add the curry leaves and stir-fry until fragrant, about 1 minute. Season the meat lightly with salt. Working in two batches, add the meat to the pot with the curry leaves, and sear on both sides until golden brown, about 3 minutes per side. Add the remaining ingredients, except for the squash, to the pot.
Bring the ingredients to a boil on high heat, then lower the heat to medium-low. Simmer partially covered, stirring occassionally for three hours. Then, add the squash to the pot, stirring the pieces in with the sauce and cook for ten minutes until tender.