Start the asciinema chunker daemon. TRIGGERS - start daemon, resume chunker, enable backup.
Starts the asciinema chunker daemon via launchd for background recording.
/plugin marketplace add terrylica/cc-skills/plugin install asciinema-tools@cc-skillsStart the asciinema chunker daemon via launchd.
/usr/bin/env bash << 'CHECK_EOF'
PLIST_PATH="$HOME/Library/LaunchAgents/com.cc-skills.asciinema-chunker.plist"
if ! [[ -f "$PLIST_PATH" ]]; then
echo "ERROR: Daemon not installed. Run /asciinema-tools:daemon-setup first."
exit 1
fi
if launchctl list 2>/dev/null | grep -q "asciinema-chunker"; then
echo "ALREADY_RUNNING"
cat ~/.asciinema/health.json 2>/dev/null | jq -r '"Status: \(.status) | PID: \(.pid) | Last push: \(.last_push)"' || true
exit 0
fi
echo "NOT_RUNNING"
CHECK_EOF
/usr/bin/env bash << 'START_EOF'
PLIST_PATH="$HOME/Library/LaunchAgents/com.cc-skills.asciinema-chunker.plist"
if launchctl load "$PLIST_PATH"; then
echo "Daemon started"
sleep 2
if launchctl list 2>/dev/null | grep -q "asciinema-chunker"; then
echo ""
echo "Status:"
cat ~/.asciinema/health.json 2>/dev/null | jq . || echo "Waiting for health file..."
else
echo "WARNING: Daemon may not have started correctly. Check logs:"
echo " /asciinema-tools:daemon-logs"
fi
else
echo "ERROR: Failed to start daemon"
exit 1
fi
START_EOF
On success:
Daemon started
Status:
{
"status": "ok",
"message": "Monitoring ~/.asciinema/active",
"pid": 12345,
...
}