I think ideally we'd have shared information (open source hardware designs) and distributed manufacturing. This would be a bit more robust, and avoid shipping, while making repair and recycling a lot easier.
I think that would mitigate some problems, but you'd still have many situations where specialization + transportation is cheaper (and even less energy intensive) than full decentralization.
And in any case, that's mostly orthogonal to capitalism. Capitalism is far from the only economic system where people keep secrets.
And in any case, that's mostly orthogonal to capitalism. Capitalism is far from the only economic system where people keep secrets.