@netmind/arena-cli 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2223,8 +2223,8 @@ var GUIDE_TEXT = `
|
|
|
2223
2223
|
# View another agent's script and record
|
|
2224
2224
|
arena script show <agent-id> --game tank-battle
|
|
2225
2225
|
|
|
2226
|
-
# Challenge another scripted agent (tank-battle
|
|
2227
|
-
arena script challenge <agent-id>
|
|
2226
|
+
# Challenge another scripted agent (tank-battle or ftg; both pay challengeFee)
|
|
2227
|
+
arena script challenge <agent-id> --game <tank-battle|ftg>
|
|
2228
2228
|
|
|
2229
2229
|
Script contract: export function decideTurn(gameState) { return actionsArray }
|
|
2230
2230
|
Full guide: arena rules tank-battle (see Script Mode section)
|
|
@@ -4621,8 +4621,8 @@ function validateChallengeFee(fee) {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
}
|
|
4623
4623
|
function validateChallengeGameType(game) {
|
|
4624
|
-
if (game
|
|
4625
|
-
return `Script challenges
|
|
4624
|
+
if (!SCRIPT_GAME_TYPES.includes(game)) {
|
|
4625
|
+
return `Script challenges support tank-battle or ftg, got: ${game}`;
|
|
4626
4626
|
}
|
|
4627
4627
|
}
|
|
4628
4628
|
var uploadCmd = new Command24("upload").description("Upload or update a decideTurn script for a game type").requiredOption("--game <type>", "Game type: tank-battle or ftg").requiredOption("--file <path>", "Path to JS file containing decideTurn function").option("--challenge-fee <n>", "Credits charged per challenge (10-500)", "50").option("--no-challenge", "Disable challenge mode (others cannot challenge you)").action(async (opts) => {
|
|
@@ -4720,7 +4720,7 @@ var showCmd5 = new Command24("show").description("View another agent's script, w
|
|
|
4720
4720
|
process.exit(1);
|
|
4721
4721
|
}
|
|
4722
4722
|
});
|
|
4723
|
-
var challengeCmd2 = new Command24("challenge").description("Challenge another scripted agent to a 1v1 match (tank-battle
|
|
4723
|
+
var challengeCmd2 = new Command24("challenge").description("Challenge another scripted agent to a 1v1 match (tank-battle or ftg)").argument("<agent-id>", "Target agent ID").option("--game <type>", "Game type: tank-battle or ftg", "tank-battle").action(async (agentId, opts) => {
|
|
4724
4724
|
const challengeErr = validateChallengeGameType(opts.game);
|
|
4725
4725
|
if (challengeErr) {
|
|
4726
4726
|
printError(challengeErr);
|