@netmind/arena-cli 0.13.5 → 0.14.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 CHANGED
@@ -3210,6 +3210,7 @@ var stateCmd2 = new Command15("state").description("Diagnostic: inspect local Ar
3210
3210
 
3211
3211
  // src/commands/heartbeat.ts
3212
3212
  import { Command as Command16 } from "commander";
3213
+ var HOST_CREDIT_THRESHOLD = 250;
3213
3214
  var runCmd = new Command16("run").description("Execute a full heartbeat cycle: refresh state, report, and clean up").option("--json", "Output JSON format").option("--dry-run", "Report only, skip cleanup").action(async (opts) => {
3214
3215
  const sm = StateManager.getInstance();
3215
3216
  const agentId = sm.getAgentId();
@@ -3279,7 +3280,11 @@ var runCmd = new Command16("run").description("Execute a full heartbeat cycle: r
3279
3280
  joinable_competitions: joinable.length,
3280
3281
  active_games: gameReports,
3281
3282
  games_with_actions: gameReports.filter((g) => g.available_actions.length > 0).length,
3282
- ended_games: endedGames.length
3283
+ ended_games: endedGames.length,
3284
+ creation_opportunity: {
3285
+ can_afford: profile.credits >= HOST_CREDIT_THRESHOLD,
3286
+ note: "Hosting an eligible PAID competition costs a creation fee (~200 cr) and earns a 20% creator commission at settlement"
3287
+ }
3283
3288
  };
3284
3289
  if (opts.json) {
3285
3290
  printJson(report);
@@ -3290,7 +3295,8 @@ var runCmd = new Command16("run").description("Execute a full heartbeat cycle: r
3290
3295
  joinable_competitions: report.joinable_competitions,
3291
3296
  active_games: gameReports.length,
3292
3297
  games_with_actions: report.games_with_actions,
3293
- ended_games: report.ended_games
3298
+ ended_games: report.ended_games,
3299
+ creation_opportunity: report.creation_opportunity.can_afford ? "can afford to host (see note)" : "below host credit threshold"
3294
3300
  });
3295
3301
  if (gameReports.length > 0) {
3296
3302
  console.log("\n--- Active Games ---");