You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
update --host tells you to run a script that usually isn't there #27
$ cc-peer update --host web-01
web-01 runs cc-peer 0.3.0; this machine has 0.4.0.
Push it with: ./install.sh --host web-01
Why that's wrong more often than not
install.sh copies cc_peer.py and SKILL.md into the skill directory. It does not install itself. So:
curl -O .../cc_peer.py users never had it
curl | sh users never had it
clone users have it, but only from that directory — the message's ./ is relative to wherever they happen to be
Worse, the suggested command can't carry --ssh-opt, so anyone reaching a host on a non-default port gets advice that is guaranteed to fail even if they do have the file. cc-peer update --host web-01 --ssh-opt=-p --ssh-opt=2222 works; the command it prints does not.
The tool already knows how to do this
run_remote() reads its own source and pipes it to ssh ... python3 -. Pushing a file over the SSH connection is a solved problem in this codebase.
The README justifies not fetching on the remote — "hosts with no route out are one of the reasons this exists" — and that reasoning is sound. It says nothing about refusing to push from here. Right now the tool recommends pushing while withholding the means.
Fix
Add a push branch to cmd_update, reusing the transport in run_remote(). install.sh:112-125 already has the base64-heredoc logic; porting it is roughly 20 lines.
Once that exists, the message can name a command that works — and carry the same --ssh-opt the user already passed.
Acceptance criteria
cc-peer update --host web-01 can actually update it, not just report
Works without install.sh present anywhere
Honours --ssh-opt
Target still needs no internet access — the file comes from here
Activity
fix: make update --host actually push instead of printing instructions (