feat(api): add new shim API methods: platform() and arch()