So the new API only accepts a packed\_trx but there is no RPC call to pack a signed transaction.

How can it be done on system without cleos installed? Is there any implementation in pure Python, NodeJS or PHP?