Venezuela is to re-establish diplomatic links with Colombia as tensions ease after a military crisis which brought the region close to a border war.

The government in Caracas said yesterday it would immediately reinstate full ties with its southern neighbour, cut a week earlier when Colombia's military launched a bombing raid on a rebel camp just inside Ecuadorean territory. Ecuador withdrew its ambassador from Colombia in protest, with Venezuela following suit in support.

Venezuela's foreign ministry said it would send diplomats, including a new ambassador, to Bogotá straight away and was ready to receive Colombian diplomats "as soon as possible", Reuters reported.

Ecuador has yet to discuss a return to normal relations, calling for a guarantee first that Colombia will never again carry out a similar raid.

Both countries sent troops to their respective borders with Colombia last week, and exchanges of increasingly vehement and martial rhetoric prompted fears of military conflict. The crisis developed into a test of regional strength between the leftwing governments in Caracas and Bogotá and the heavily US-supported Colombian presidency.

On Friday, at a regional summit in the Dominican Republic, the presidents of Ecuador and Venezuela, Rafael Correa and Hugo Chávez, shook hands with their Colombian counterpart, Alvaro Uribe, who apologised for the raid.

A summit statement committed all parties to jointly fight threats to national stability from "irregular or criminal groups", a reference to rebel groups like the Revolutionary Armed Forces of Colombia, or Farc, targeted by Colombia's bombing raid.

The attack on the Farc jungle hideout killed more than 20 people, including Raúl Reyes, a senior commander from the group and its chief negotiator with the outside world.

Battered by criticism from around the region, Colombia has sought to justify the raid through the release of information it claims was taken from computer files on a laptop belonging to Reyes and seized at the Farc base.

At the weekend, documents leaked by Colombia's security forces gave new details of what the country says are close links between the rebel group and the presidents of Venezuela and Ecuador.

One of a series of documents reprinted in the Colombian news magazine Semana was a letter from October 2006 purporting to outline a discussion among Farc leaders about donating money to Correa's successful election campaign later that year. The Ecuadorean leader denies receiving money from the Marxist group, which makes most of its money from drug trafficking and kidnappping, and is considered to be a terrorist organisation by the US and the EU.

Another document printed by the magazine discusses "secret, confidential relations" with Chávez. He denies any links with Farc, beyond negotiations over hostages.

Another letter supposed to have come from the laptop appears to be a request to Libya's leader, Muammar Gadaffi, asking for $100m (£50m) in loans to buy surface-to-air missiles.

Another discusses an apparent effort by Democrats in the US to have the novelist Gabriel García Márquez mediate in talks with the insurgents, possibly with the involvement of former US president, Bill Clinton.

As with earlier claims supposedly coming from the documents - for example, Colombian suggestions last week that Farc wanted to obtain uranium to build a radioactive "dirty bomb" - there was no supporting evidence to back them up.