i think one thing you can do is pass on what you've learned of coping strategies etc. to your kids and speak to them openly about your illness (age appropriate info, obv.). then if/when it does hit they're at least prepared in some way. i have a family history too, so it wouldn't surprise me if one of my kids inherited some tendency that way. i've tried to gently introduce some of the things i've found helpful (diet, exercise, yoga/meditation, etc.)
i'm another long term depressive, although not needed inpatient treatment. i find that my episodes last between 6 & 18 months, and it just runs its course, although the meds make it more bearable in that time. i try to manage it inbetween times and prevent recurrences with lifestyle stuff, which i think has made a big difference actually. i have an incredibly supportive partner which has been my real lifeline, and we've made deliberate choices to reduce stress (e.g. to be sahm while kids are small).
had a short course of cbt but didn't get anywhere with it at all and the sessions were so far apart there was no way to build on one session in the next. i've found buddhist meditation techniques more helpful i'd say. i've recently started running too, and that seems to be having a very beneficial effect on my mood (although obv. i'm inbetween episodes right now, can't say what help it might be during).
the focus for me is a) surviving during episodes: reducing ongoing stresses/demands makes biggest difference to this, plus personal support from friends/family and dp's work, and - believe it or not - hobbies! last time i went down i started learning guitar. it helped to have something to obsessively bury myself in and to take myself out of my head at least temporarily.
and then b) extending the length between episodes: this is where i think diet, exercise, meditation, (trying!) not to drink etc. and your cbt type techniques come in.
i'm in a very fortunate position that i have a very supportive family and no financial or other difficulties, plus no lingering issues, it's about 80% chemical for me i'd say. i'm hopeful about my future, although i expect it to involve more episodes, and it's more limited than it might otherwise be. part of that is not really expecting anything to fix me for good, and not having any expectations of the medical establishment.
sorry this ended up a bit longer than planned! hope some of it might be reassuring/helpful to somebody.