This is an agreement between two groups of people that they will not harm each other but will live in peace and help each other. This could be translated as, “peace agreement.”
The connecting word "But" contrasts God's command that the Israelites not make any treaties with the people of Canaan with the reason Joshua made an agreement with Gibeonites. (See: [[rc://en/ta/man/translate/grammar-connect-logic-contrast]])
The connecting word "Instead" contrasts what Joshua should have done—ask God what they should do, with what he did do—make the treaty God had forbidden out of ignorance. (See: [[rc://en/ta/man/translate/grammar-connect-logic-contrast]])