Try it?
I just replaced cli.lua:
Did you implement the camera side code?
For the cli code, you probably would be better off diffing and just adding the code that implements the specific command rather than replacing the whole file.
edit:
Looking at the chdkptp side code, some changes would need to be made, because I changed how error handling works in chdkptp since that was written. This means the con:exec(code,{libs='msg_shell'}) status check should be removed, if it fails, it will throw an error. This explains why you got "failed" since it no longer returns a value.
Same for the write_msg call. I don't see any else that would obviously be a problem, but I haven't looked closely or tested.